@opentabs-dev/opentabs-plugin-notebooklm 0.0.108 → 0.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter.iife.js +1172 -426
- package/dist/adapter.iife.js.map +4 -4
- package/dist/tools.json +1 -1
- package/package.json +3 -3
package/dist/adapter.iife.js
CHANGED
|
@@ -123,14 +123,14 @@
|
|
|
123
123
|
...rest,
|
|
124
124
|
signal: combinedSignal
|
|
125
125
|
});
|
|
126
|
-
} catch (
|
|
127
|
-
if (
|
|
126
|
+
} catch (error51) {
|
|
127
|
+
if (error51 instanceof DOMException && error51.name === "TimeoutError") {
|
|
128
128
|
throw ToolError.timeout(`fetchFromPage: request timed out after ${timeout}ms for ${url2}`);
|
|
129
129
|
}
|
|
130
130
|
if (combinedSignal.aborted) {
|
|
131
131
|
throw new ToolError(`fetchFromPage: request aborted for ${url2}`, "aborted");
|
|
132
132
|
}
|
|
133
|
-
throw new ToolError(`fetchFromPage: network error for ${url2}: ${toErrorMessage(
|
|
133
|
+
throw new ToolError(`fetchFromPage: network error for ${url2}: ${toErrorMessage(error51)}`, "network_error", {
|
|
134
134
|
category: "internal",
|
|
135
135
|
retryable: true
|
|
136
136
|
});
|
|
@@ -563,6 +563,7 @@
|
|
|
563
563
|
ZodOptional: () => ZodOptional,
|
|
564
564
|
ZodPipe: () => ZodPipe,
|
|
565
565
|
ZodPrefault: () => ZodPrefault,
|
|
566
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
566
567
|
ZodPromise: () => ZodPromise,
|
|
567
568
|
ZodReadonly: () => ZodReadonly,
|
|
568
569
|
ZodRealError: () => ZodRealError,
|
|
@@ -641,6 +642,7 @@
|
|
|
641
642
|
int32: () => int32,
|
|
642
643
|
int64: () => int64,
|
|
643
644
|
intersection: () => intersection,
|
|
645
|
+
invertCodec: () => invertCodec,
|
|
644
646
|
ipv4: () => ipv42,
|
|
645
647
|
ipv6: () => ipv62,
|
|
646
648
|
iso: () => iso_exports,
|
|
@@ -822,6 +824,7 @@
|
|
|
822
824
|
$ZodOptional: () => $ZodOptional,
|
|
823
825
|
$ZodPipe: () => $ZodPipe,
|
|
824
826
|
$ZodPrefault: () => $ZodPrefault,
|
|
827
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
825
828
|
$ZodPromise: () => $ZodPromise,
|
|
826
829
|
$ZodReadonly: () => $ZodReadonly,
|
|
827
830
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -1021,7 +1024,8 @@
|
|
|
1021
1024
|
});
|
|
1022
1025
|
|
|
1023
1026
|
// node_modules/zod/v4/core/core.js
|
|
1024
|
-
var
|
|
1027
|
+
var _a;
|
|
1028
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1025
1029
|
status: "aborted"
|
|
1026
1030
|
});
|
|
1027
1031
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1056,10 +1060,10 @@
|
|
|
1056
1060
|
}
|
|
1057
1061
|
Object.defineProperty(Definition, "name", { value: name });
|
|
1058
1062
|
function _(def) {
|
|
1059
|
-
var
|
|
1063
|
+
var _a3;
|
|
1060
1064
|
const inst = params?.Parent ? new Definition() : this;
|
|
1061
1065
|
init(inst, def);
|
|
1062
|
-
(
|
|
1066
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
1063
1067
|
for (const fn of inst._zod.deferred) {
|
|
1064
1068
|
fn();
|
|
1065
1069
|
}
|
|
@@ -1088,7 +1092,8 @@
|
|
|
1088
1092
|
this.name = "ZodEncodeError";
|
|
1089
1093
|
}
|
|
1090
1094
|
};
|
|
1091
|
-
|
|
1095
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
1096
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
1092
1097
|
function config(newConfig) {
|
|
1093
1098
|
if (newConfig)
|
|
1094
1099
|
Object.assign(globalConfig, newConfig);
|
|
@@ -1121,6 +1126,7 @@
|
|
|
1121
1126
|
defineLazy: () => defineLazy,
|
|
1122
1127
|
esc: () => esc,
|
|
1123
1128
|
escapeRegex: () => escapeRegex,
|
|
1129
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
1124
1130
|
extend: () => extend,
|
|
1125
1131
|
finalizeIssue: () => finalizeIssue,
|
|
1126
1132
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -1209,19 +1215,12 @@
|
|
|
1209
1215
|
return source.slice(start, end);
|
|
1210
1216
|
}
|
|
1211
1217
|
function floatSafeRemainder(val, step) {
|
|
1212
|
-
const
|
|
1213
|
-
const
|
|
1214
|
-
|
|
1215
|
-
if (
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1222
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1223
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1224
|
-
return valInt % stepInt / 10 ** decCount;
|
|
1218
|
+
const ratio = val / step;
|
|
1219
|
+
const roundedRatio = Math.round(ratio);
|
|
1220
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
1221
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
1222
|
+
return 0;
|
|
1223
|
+
return ratio - roundedRatio;
|
|
1225
1224
|
}
|
|
1226
1225
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
1227
1226
|
function defineLazy(object2, key, getter) {
|
|
@@ -1303,7 +1302,10 @@
|
|
|
1303
1302
|
function isObject(data) {
|
|
1304
1303
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
1305
1304
|
}
|
|
1306
|
-
var allowsEval = cached(() => {
|
|
1305
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
1306
|
+
if (globalConfig.jitless) {
|
|
1307
|
+
return false;
|
|
1308
|
+
}
|
|
1307
1309
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
1308
1310
|
return false;
|
|
1309
1311
|
}
|
|
@@ -1336,6 +1338,10 @@
|
|
|
1336
1338
|
return { ...o };
|
|
1337
1339
|
if (Array.isArray(o))
|
|
1338
1340
|
return [...o];
|
|
1341
|
+
if (o instanceof Map)
|
|
1342
|
+
return new Map(o);
|
|
1343
|
+
if (o instanceof Set)
|
|
1344
|
+
return new Set(o);
|
|
1339
1345
|
return o;
|
|
1340
1346
|
}
|
|
1341
1347
|
function numKeys(data) {
|
|
@@ -1392,7 +1398,14 @@
|
|
|
1392
1398
|
}
|
|
1393
1399
|
};
|
|
1394
1400
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
1395
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1401
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
1402
|
+
"string",
|
|
1403
|
+
"number",
|
|
1404
|
+
"bigint",
|
|
1405
|
+
"boolean",
|
|
1406
|
+
"symbol",
|
|
1407
|
+
"undefined"
|
|
1408
|
+
]);
|
|
1396
1409
|
function escapeRegex(str) {
|
|
1397
1410
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1398
1411
|
}
|
|
@@ -1561,6 +1574,9 @@
|
|
|
1561
1574
|
return clone(schema, def);
|
|
1562
1575
|
}
|
|
1563
1576
|
function merge(a, b) {
|
|
1577
|
+
if (a._zod.def.checks?.length) {
|
|
1578
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1579
|
+
}
|
|
1564
1580
|
const def = mergeDefs(a._zod.def, {
|
|
1565
1581
|
get shape() {
|
|
1566
1582
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1570,8 +1586,7 @@
|
|
|
1570
1586
|
get catchall() {
|
|
1571
1587
|
return b._zod.def.catchall;
|
|
1572
1588
|
},
|
|
1573
|
-
checks: []
|
|
1574
|
-
// delete existing checks
|
|
1589
|
+
checks: b._zod.def.checks ?? []
|
|
1575
1590
|
});
|
|
1576
1591
|
return clone(a, def);
|
|
1577
1592
|
}
|
|
@@ -1654,10 +1669,20 @@
|
|
|
1654
1669
|
}
|
|
1655
1670
|
return false;
|
|
1656
1671
|
}
|
|
1672
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1673
|
+
if (x.aborted === true)
|
|
1674
|
+
return true;
|
|
1675
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1676
|
+
if (x.issues[i]?.continue === false) {
|
|
1677
|
+
return true;
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
return false;
|
|
1681
|
+
}
|
|
1657
1682
|
function prefixIssues(path, issues) {
|
|
1658
1683
|
return issues.map((iss) => {
|
|
1659
|
-
var
|
|
1660
|
-
(
|
|
1684
|
+
var _a3;
|
|
1685
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1661
1686
|
iss.path.unshift(path);
|
|
1662
1687
|
return iss;
|
|
1663
1688
|
});
|
|
@@ -1666,17 +1691,14 @@
|
|
|
1666
1691
|
return typeof message === "string" ? message : message?.message;
|
|
1667
1692
|
}
|
|
1668
1693
|
function finalizeIssue(iss, ctx, config2) {
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1694
|
+
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";
|
|
1695
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1696
|
+
rest.path ?? (rest.path = []);
|
|
1697
|
+
rest.message = message;
|
|
1698
|
+
if (ctx?.reportInput) {
|
|
1699
|
+
rest.input = _input;
|
|
1673
1700
|
}
|
|
1674
|
-
|
|
1675
|
-
delete full.continue;
|
|
1676
|
-
if (!ctx?.reportInput) {
|
|
1677
|
-
delete full.input;
|
|
1678
|
-
}
|
|
1679
|
-
return full;
|
|
1701
|
+
return rest;
|
|
1680
1702
|
}
|
|
1681
1703
|
function getSizableOrigin(input) {
|
|
1682
1704
|
if (input instanceof Set)
|
|
@@ -1793,10 +1815,10 @@
|
|
|
1793
1815
|
};
|
|
1794
1816
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1795
1817
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1796
|
-
function flattenError(
|
|
1818
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1797
1819
|
const fieldErrors = {};
|
|
1798
1820
|
const formErrors = [];
|
|
1799
|
-
for (const sub of
|
|
1821
|
+
for (const sub of error51.issues) {
|
|
1800
1822
|
if (sub.path.length > 0) {
|
|
1801
1823
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1802
1824
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1806,50 +1828,53 @@
|
|
|
1806
1828
|
}
|
|
1807
1829
|
return { formErrors, fieldErrors };
|
|
1808
1830
|
}
|
|
1809
|
-
function formatError(
|
|
1831
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1810
1832
|
const fieldErrors = { _errors: [] };
|
|
1811
|
-
const processError = (
|
|
1812
|
-
for (const issue2 of
|
|
1833
|
+
const processError = (error52, path = []) => {
|
|
1834
|
+
for (const issue2 of error52.issues) {
|
|
1813
1835
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1814
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1836
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1815
1837
|
} else if (issue2.code === "invalid_key") {
|
|
1816
|
-
processError({ issues: issue2.issues });
|
|
1838
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1817
1839
|
} else if (issue2.code === "invalid_element") {
|
|
1818
|
-
processError({ issues: issue2.issues });
|
|
1819
|
-
} else if (issue2.path.length === 0) {
|
|
1820
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1840
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1821
1841
|
} else {
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1842
|
+
const fullpath = [...path, ...issue2.path];
|
|
1843
|
+
if (fullpath.length === 0) {
|
|
1844
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1845
|
+
} else {
|
|
1846
|
+
let curr = fieldErrors;
|
|
1847
|
+
let i = 0;
|
|
1848
|
+
while (i < fullpath.length) {
|
|
1849
|
+
const el = fullpath[i];
|
|
1850
|
+
const terminal = i === fullpath.length - 1;
|
|
1851
|
+
if (!terminal) {
|
|
1852
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1853
|
+
} else {
|
|
1854
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1855
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1856
|
+
}
|
|
1857
|
+
curr = curr[el];
|
|
1858
|
+
i++;
|
|
1832
1859
|
}
|
|
1833
|
-
curr = curr[el];
|
|
1834
|
-
i++;
|
|
1835
1860
|
}
|
|
1836
1861
|
}
|
|
1837
1862
|
}
|
|
1838
1863
|
};
|
|
1839
|
-
processError(
|
|
1864
|
+
processError(error51);
|
|
1840
1865
|
return fieldErrors;
|
|
1841
1866
|
}
|
|
1842
|
-
function treeifyError(
|
|
1867
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1843
1868
|
const result = { errors: [] };
|
|
1844
|
-
const processError = (
|
|
1845
|
-
var
|
|
1846
|
-
for (const issue2 of
|
|
1869
|
+
const processError = (error52, path = []) => {
|
|
1870
|
+
var _a3, _b;
|
|
1871
|
+
for (const issue2 of error52.issues) {
|
|
1847
1872
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1848
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1873
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1849
1874
|
} else if (issue2.code === "invalid_key") {
|
|
1850
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1875
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1851
1876
|
} else if (issue2.code === "invalid_element") {
|
|
1852
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1877
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1853
1878
|
} else {
|
|
1854
1879
|
const fullpath = [...path, ...issue2.path];
|
|
1855
1880
|
if (fullpath.length === 0) {
|
|
@@ -1863,7 +1888,7 @@
|
|
|
1863
1888
|
const terminal = i === fullpath.length - 1;
|
|
1864
1889
|
if (typeof el === "string") {
|
|
1865
1890
|
curr.properties ?? (curr.properties = {});
|
|
1866
|
-
(
|
|
1891
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1867
1892
|
curr = curr.properties[el];
|
|
1868
1893
|
} else {
|
|
1869
1894
|
curr.items ?? (curr.items = []);
|
|
@@ -1878,7 +1903,7 @@
|
|
|
1878
1903
|
}
|
|
1879
1904
|
}
|
|
1880
1905
|
};
|
|
1881
|
-
processError(
|
|
1906
|
+
processError(error51);
|
|
1882
1907
|
return result;
|
|
1883
1908
|
}
|
|
1884
1909
|
function toDotPath(_path) {
|
|
@@ -1899,9 +1924,9 @@
|
|
|
1899
1924
|
}
|
|
1900
1925
|
return segs.join("");
|
|
1901
1926
|
}
|
|
1902
|
-
function prettifyError(
|
|
1927
|
+
function prettifyError(error51) {
|
|
1903
1928
|
const lines = [];
|
|
1904
|
-
const issues = [...
|
|
1929
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1905
1930
|
for (const issue2 of issues) {
|
|
1906
1931
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1907
1932
|
if (issue2.path?.length)
|
|
@@ -1912,7 +1937,7 @@
|
|
|
1912
1937
|
|
|
1913
1938
|
// node_modules/zod/v4/core/parse.js
|
|
1914
1939
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1915
|
-
const ctx = _ctx ?
|
|
1940
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1916
1941
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1917
1942
|
if (result instanceof Promise) {
|
|
1918
1943
|
throw new $ZodAsyncError();
|
|
@@ -1926,7 +1951,7 @@
|
|
|
1926
1951
|
};
|
|
1927
1952
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1928
1953
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1929
|
-
const ctx = _ctx ?
|
|
1954
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1930
1955
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1931
1956
|
if (result instanceof Promise)
|
|
1932
1957
|
result = await result;
|
|
@@ -1951,7 +1976,7 @@
|
|
|
1951
1976
|
};
|
|
1952
1977
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1953
1978
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1954
|
-
const ctx = _ctx ?
|
|
1979
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1955
1980
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1956
1981
|
if (result instanceof Promise)
|
|
1957
1982
|
result = await result;
|
|
@@ -1962,7 +1987,7 @@
|
|
|
1962
1987
|
};
|
|
1963
1988
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1964
1989
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1965
|
-
const ctx = _ctx ?
|
|
1990
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1966
1991
|
return _parse(_Err)(schema, value, ctx);
|
|
1967
1992
|
};
|
|
1968
1993
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1971,7 +1996,7 @@
|
|
|
1971
1996
|
};
|
|
1972
1997
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1973
1998
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1974
|
-
const ctx = _ctx ?
|
|
1999
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1975
2000
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1976
2001
|
};
|
|
1977
2002
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1980,7 +2005,7 @@
|
|
|
1980
2005
|
};
|
|
1981
2006
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1982
2007
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1983
|
-
const ctx = _ctx ?
|
|
2008
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1984
2009
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1985
2010
|
};
|
|
1986
2011
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1989,7 +2014,7 @@
|
|
|
1989
2014
|
};
|
|
1990
2015
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1991
2016
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1992
|
-
const ctx = _ctx ?
|
|
2017
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1993
2018
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1994
2019
|
};
|
|
1995
2020
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -2022,6 +2047,7 @@
|
|
|
2022
2047
|
hex: () => hex,
|
|
2023
2048
|
hostname: () => hostname,
|
|
2024
2049
|
html5Email: () => html5Email,
|
|
2050
|
+
httpProtocol: () => httpProtocol,
|
|
2025
2051
|
idnEmail: () => idnEmail,
|
|
2026
2052
|
integer: () => integer,
|
|
2027
2053
|
ipv4: () => ipv4,
|
|
@@ -2060,7 +2086,7 @@
|
|
|
2060
2086
|
uuid7: () => uuid7,
|
|
2061
2087
|
xid: () => xid
|
|
2062
2088
|
});
|
|
2063
|
-
var cuid = /^[cC][
|
|
2089
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
2064
2090
|
var cuid2 = /^[0-9a-z]+$/;
|
|
2065
2091
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
2066
2092
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -2099,6 +2125,7 @@
|
|
|
2099
2125
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
2100
2126
|
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])?)*\.?$/;
|
|
2101
2127
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
2128
|
+
var httpProtocol = /^https?$/;
|
|
2102
2129
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
2103
2130
|
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])))`;
|
|
2104
2131
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -2157,10 +2184,10 @@
|
|
|
2157
2184
|
|
|
2158
2185
|
// node_modules/zod/v4/core/checks.js
|
|
2159
2186
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2160
|
-
var
|
|
2187
|
+
var _a3;
|
|
2161
2188
|
inst._zod ?? (inst._zod = {});
|
|
2162
2189
|
inst._zod.def = def;
|
|
2163
|
-
(
|
|
2190
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
2164
2191
|
});
|
|
2165
2192
|
var numericOriginMap = {
|
|
2166
2193
|
number: "number",
|
|
@@ -2226,8 +2253,8 @@
|
|
|
2226
2253
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
2227
2254
|
$ZodCheck.init(inst, def);
|
|
2228
2255
|
inst._zod.onattach.push((inst2) => {
|
|
2229
|
-
var
|
|
2230
|
-
(
|
|
2256
|
+
var _a3;
|
|
2257
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
2231
2258
|
});
|
|
2232
2259
|
inst._zod.check = (payload) => {
|
|
2233
2260
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -2360,9 +2387,9 @@
|
|
|
2360
2387
|
};
|
|
2361
2388
|
});
|
|
2362
2389
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
2363
|
-
var
|
|
2390
|
+
var _a3;
|
|
2364
2391
|
$ZodCheck.init(inst, def);
|
|
2365
|
-
(
|
|
2392
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2366
2393
|
const val = payload.value;
|
|
2367
2394
|
return !nullish(val) && val.size !== void 0;
|
|
2368
2395
|
});
|
|
@@ -2388,9 +2415,9 @@
|
|
|
2388
2415
|
};
|
|
2389
2416
|
});
|
|
2390
2417
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
2391
|
-
var
|
|
2418
|
+
var _a3;
|
|
2392
2419
|
$ZodCheck.init(inst, def);
|
|
2393
|
-
(
|
|
2420
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2394
2421
|
const val = payload.value;
|
|
2395
2422
|
return !nullish(val) && val.size !== void 0;
|
|
2396
2423
|
});
|
|
@@ -2416,9 +2443,9 @@
|
|
|
2416
2443
|
};
|
|
2417
2444
|
});
|
|
2418
2445
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
2419
|
-
var
|
|
2446
|
+
var _a3;
|
|
2420
2447
|
$ZodCheck.init(inst, def);
|
|
2421
|
-
(
|
|
2448
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2422
2449
|
const val = payload.value;
|
|
2423
2450
|
return !nullish(val) && val.size !== void 0;
|
|
2424
2451
|
});
|
|
@@ -2446,9 +2473,9 @@
|
|
|
2446
2473
|
};
|
|
2447
2474
|
});
|
|
2448
2475
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2449
|
-
var
|
|
2476
|
+
var _a3;
|
|
2450
2477
|
$ZodCheck.init(inst, def);
|
|
2451
|
-
(
|
|
2478
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2452
2479
|
const val = payload.value;
|
|
2453
2480
|
return !nullish(val) && val.length !== void 0;
|
|
2454
2481
|
});
|
|
@@ -2475,9 +2502,9 @@
|
|
|
2475
2502
|
};
|
|
2476
2503
|
});
|
|
2477
2504
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2478
|
-
var
|
|
2505
|
+
var _a3;
|
|
2479
2506
|
$ZodCheck.init(inst, def);
|
|
2480
|
-
(
|
|
2507
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2481
2508
|
const val = payload.value;
|
|
2482
2509
|
return !nullish(val) && val.length !== void 0;
|
|
2483
2510
|
});
|
|
@@ -2504,9 +2531,9 @@
|
|
|
2504
2531
|
};
|
|
2505
2532
|
});
|
|
2506
2533
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2507
|
-
var
|
|
2534
|
+
var _a3;
|
|
2508
2535
|
$ZodCheck.init(inst, def);
|
|
2509
|
-
(
|
|
2536
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2510
2537
|
const val = payload.value;
|
|
2511
2538
|
return !nullish(val) && val.length !== void 0;
|
|
2512
2539
|
});
|
|
@@ -2535,7 +2562,7 @@
|
|
|
2535
2562
|
};
|
|
2536
2563
|
});
|
|
2537
2564
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2538
|
-
var
|
|
2565
|
+
var _a3, _b;
|
|
2539
2566
|
$ZodCheck.init(inst, def);
|
|
2540
2567
|
inst._zod.onattach.push((inst2) => {
|
|
2541
2568
|
const bag = inst2._zod.bag;
|
|
@@ -2546,7 +2573,7 @@
|
|
|
2546
2573
|
}
|
|
2547
2574
|
});
|
|
2548
2575
|
if (def.pattern)
|
|
2549
|
-
(
|
|
2576
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2550
2577
|
def.pattern.lastIndex = 0;
|
|
2551
2578
|
if (def.pattern.test(payload.value))
|
|
2552
2579
|
return;
|
|
@@ -2742,13 +2769,13 @@
|
|
|
2742
2769
|
// node_modules/zod/v4/core/versions.js
|
|
2743
2770
|
var version = {
|
|
2744
2771
|
major: 4,
|
|
2745
|
-
minor:
|
|
2746
|
-
patch:
|
|
2772
|
+
minor: 4,
|
|
2773
|
+
patch: 3
|
|
2747
2774
|
};
|
|
2748
2775
|
|
|
2749
2776
|
// node_modules/zod/v4/core/schemas.js
|
|
2750
2777
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2751
|
-
var
|
|
2778
|
+
var _a3;
|
|
2752
2779
|
inst ?? (inst = {});
|
|
2753
2780
|
inst._zod.def = def;
|
|
2754
2781
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2763,7 +2790,7 @@
|
|
|
2763
2790
|
}
|
|
2764
2791
|
}
|
|
2765
2792
|
if (checks.length === 0) {
|
|
2766
|
-
(
|
|
2793
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2767
2794
|
inst._zod.deferred?.push(() => {
|
|
2768
2795
|
inst._zod.run = inst._zod.parse;
|
|
2769
2796
|
});
|
|
@@ -2773,6 +2800,8 @@
|
|
|
2773
2800
|
let asyncResult;
|
|
2774
2801
|
for (const ch of checks2) {
|
|
2775
2802
|
if (ch._zod.def.when) {
|
|
2803
|
+
if (explicitlyAborted(payload))
|
|
2804
|
+
continue;
|
|
2776
2805
|
const shouldRun = ch._zod.def.when(payload);
|
|
2777
2806
|
if (!shouldRun)
|
|
2778
2807
|
continue;
|
|
@@ -2913,6 +2942,19 @@
|
|
|
2913
2942
|
inst._zod.check = (payload) => {
|
|
2914
2943
|
try {
|
|
2915
2944
|
const trimmed = payload.value.trim();
|
|
2945
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2946
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2947
|
+
payload.issues.push({
|
|
2948
|
+
code: "invalid_format",
|
|
2949
|
+
format: "url",
|
|
2950
|
+
note: "Invalid URL format",
|
|
2951
|
+
input: payload.value,
|
|
2952
|
+
inst,
|
|
2953
|
+
continue: !def.abort
|
|
2954
|
+
});
|
|
2955
|
+
return;
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2916
2958
|
const url2 = new URL(trimmed);
|
|
2917
2959
|
if (def.hostname) {
|
|
2918
2960
|
def.hostname.lastIndex = 0;
|
|
@@ -3066,6 +3108,8 @@
|
|
|
3066
3108
|
function isValidBase64(data) {
|
|
3067
3109
|
if (data === "")
|
|
3068
3110
|
return true;
|
|
3111
|
+
if (/\s/.test(data))
|
|
3112
|
+
return false;
|
|
3069
3113
|
if (data.length % 4 !== 0)
|
|
3070
3114
|
return false;
|
|
3071
3115
|
try {
|
|
@@ -3258,8 +3302,6 @@
|
|
|
3258
3302
|
$ZodType.init(inst, def);
|
|
3259
3303
|
inst._zod.pattern = _undefined;
|
|
3260
3304
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
3261
|
-
inst._zod.optin = "optional";
|
|
3262
|
-
inst._zod.optout = "optional";
|
|
3263
3305
|
inst._zod.parse = (payload, _ctx) => {
|
|
3264
3306
|
const input = payload.value;
|
|
3265
3307
|
if (typeof input === "undefined")
|
|
@@ -3388,15 +3430,27 @@
|
|
|
3388
3430
|
return payload;
|
|
3389
3431
|
};
|
|
3390
3432
|
});
|
|
3391
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
3433
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
3434
|
+
const isPresent = key in input;
|
|
3392
3435
|
if (result.issues.length) {
|
|
3393
|
-
if (isOptionalOut && !
|
|
3436
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
3394
3437
|
return;
|
|
3395
3438
|
}
|
|
3396
3439
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
3397
3440
|
}
|
|
3441
|
+
if (!isPresent && !isOptionalIn) {
|
|
3442
|
+
if (!result.issues.length) {
|
|
3443
|
+
final.issues.push({
|
|
3444
|
+
code: "invalid_type",
|
|
3445
|
+
expected: "nonoptional",
|
|
3446
|
+
input: void 0,
|
|
3447
|
+
path: [key]
|
|
3448
|
+
});
|
|
3449
|
+
}
|
|
3450
|
+
return;
|
|
3451
|
+
}
|
|
3398
3452
|
if (result.value === void 0) {
|
|
3399
|
-
if (
|
|
3453
|
+
if (isPresent) {
|
|
3400
3454
|
final.value[key] = void 0;
|
|
3401
3455
|
}
|
|
3402
3456
|
} else {
|
|
@@ -3424,8 +3478,11 @@
|
|
|
3424
3478
|
const keySet = def.keySet;
|
|
3425
3479
|
const _catchall = def.catchall._zod;
|
|
3426
3480
|
const t = _catchall.def.type;
|
|
3481
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
3427
3482
|
const isOptionalOut = _catchall.optout === "optional";
|
|
3428
3483
|
for (const key in input) {
|
|
3484
|
+
if (key === "__proto__")
|
|
3485
|
+
continue;
|
|
3429
3486
|
if (keySet.has(key))
|
|
3430
3487
|
continue;
|
|
3431
3488
|
if (t === "never") {
|
|
@@ -3434,9 +3491,9 @@
|
|
|
3434
3491
|
}
|
|
3435
3492
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
3436
3493
|
if (r instanceof Promise) {
|
|
3437
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3494
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3438
3495
|
} else {
|
|
3439
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3496
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3440
3497
|
}
|
|
3441
3498
|
}
|
|
3442
3499
|
if (unrecognized.length) {
|
|
@@ -3502,12 +3559,13 @@
|
|
|
3502
3559
|
const shape = value.shape;
|
|
3503
3560
|
for (const key of value.keys) {
|
|
3504
3561
|
const el = shape[key];
|
|
3562
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3505
3563
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3506
3564
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3507
3565
|
if (r instanceof Promise) {
|
|
3508
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3566
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3509
3567
|
} else {
|
|
3510
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3568
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3511
3569
|
}
|
|
3512
3570
|
}
|
|
3513
3571
|
if (!catchall) {
|
|
@@ -3538,9 +3596,10 @@
|
|
|
3538
3596
|
const id = ids[key];
|
|
3539
3597
|
const k = esc(key);
|
|
3540
3598
|
const schema = shape[key];
|
|
3599
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3541
3600
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3542
3601
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3543
|
-
if (isOptionalOut) {
|
|
3602
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3544
3603
|
doc.write(`
|
|
3545
3604
|
if (${id}.issues.length) {
|
|
3546
3605
|
if (${k} in input) {
|
|
@@ -3559,6 +3618,33 @@
|
|
|
3559
3618
|
newResult[${k}] = ${id}.value;
|
|
3560
3619
|
}
|
|
3561
3620
|
|
|
3621
|
+
`);
|
|
3622
|
+
} else if (!isOptionalIn) {
|
|
3623
|
+
doc.write(`
|
|
3624
|
+
const ${id}_present = ${k} in input;
|
|
3625
|
+
if (${id}.issues.length) {
|
|
3626
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3627
|
+
...iss,
|
|
3628
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3629
|
+
})));
|
|
3630
|
+
}
|
|
3631
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3632
|
+
payload.issues.push({
|
|
3633
|
+
code: "invalid_type",
|
|
3634
|
+
expected: "nonoptional",
|
|
3635
|
+
input: undefined,
|
|
3636
|
+
path: [${k}]
|
|
3637
|
+
});
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
if (${id}_present) {
|
|
3641
|
+
if (${id}.value === undefined) {
|
|
3642
|
+
newResult[${k}] = undefined;
|
|
3643
|
+
} else {
|
|
3644
|
+
newResult[${k}] = ${id}.value;
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3562
3648
|
`);
|
|
3563
3649
|
} else {
|
|
3564
3650
|
doc.write(`
|
|
@@ -3652,10 +3738,9 @@
|
|
|
3652
3738
|
}
|
|
3653
3739
|
return void 0;
|
|
3654
3740
|
});
|
|
3655
|
-
const
|
|
3656
|
-
const first = def.options[0]._zod.run;
|
|
3741
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3657
3742
|
inst._zod.parse = (payload, ctx) => {
|
|
3658
|
-
if (
|
|
3743
|
+
if (first) {
|
|
3659
3744
|
return first(payload, ctx);
|
|
3660
3745
|
}
|
|
3661
3746
|
let async = false;
|
|
@@ -3708,10 +3793,9 @@
|
|
|
3708
3793
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3709
3794
|
$ZodUnion.init(inst, def);
|
|
3710
3795
|
def.inclusive = false;
|
|
3711
|
-
const
|
|
3712
|
-
const first = def.options[0]._zod.run;
|
|
3796
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3713
3797
|
inst._zod.parse = (payload, ctx) => {
|
|
3714
|
-
if (
|
|
3798
|
+
if (first) {
|
|
3715
3799
|
return first(payload, ctx);
|
|
3716
3800
|
}
|
|
3717
3801
|
let async = false;
|
|
@@ -3786,7 +3870,7 @@
|
|
|
3786
3870
|
if (opt) {
|
|
3787
3871
|
return opt._zod.run(payload, ctx);
|
|
3788
3872
|
}
|
|
3789
|
-
if (def.unionFallback) {
|
|
3873
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3790
3874
|
return _super(payload, ctx);
|
|
3791
3875
|
}
|
|
3792
3876
|
payload.issues.push({
|
|
@@ -3794,6 +3878,7 @@
|
|
|
3794
3878
|
errors: [],
|
|
3795
3879
|
note: "No matching discriminator",
|
|
3796
3880
|
discriminator: def.discriminator,
|
|
3881
|
+
options: Array.from(disc.value.keys()),
|
|
3797
3882
|
input,
|
|
3798
3883
|
path: [def.discriminator],
|
|
3799
3884
|
inst
|
|
@@ -3915,64 +4000,96 @@
|
|
|
3915
4000
|
}
|
|
3916
4001
|
payload.value = [];
|
|
3917
4002
|
const proms = [];
|
|
3918
|
-
const
|
|
3919
|
-
const
|
|
4003
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
4004
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3920
4005
|
if (!def.rest) {
|
|
3921
|
-
|
|
3922
|
-
const tooSmall = input.length < optStart - 1;
|
|
3923
|
-
if (tooBig || tooSmall) {
|
|
4006
|
+
if (input.length < optinStart) {
|
|
3924
4007
|
payload.issues.push({
|
|
3925
|
-
|
|
4008
|
+
code: "too_small",
|
|
4009
|
+
minimum: optinStart,
|
|
4010
|
+
inclusive: true,
|
|
3926
4011
|
input,
|
|
3927
4012
|
inst,
|
|
3928
4013
|
origin: "array"
|
|
3929
4014
|
});
|
|
3930
4015
|
return payload;
|
|
3931
4016
|
}
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
4017
|
+
if (input.length > items.length) {
|
|
4018
|
+
payload.issues.push({
|
|
4019
|
+
code: "too_big",
|
|
4020
|
+
maximum: items.length,
|
|
4021
|
+
inclusive: true,
|
|
4022
|
+
input,
|
|
4023
|
+
inst,
|
|
4024
|
+
origin: "array"
|
|
4025
|
+
});
|
|
3939
4026
|
}
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
}, ctx);
|
|
3944
|
-
if (
|
|
3945
|
-
proms.push(
|
|
4027
|
+
}
|
|
4028
|
+
const itemResults = new Array(items.length);
|
|
4029
|
+
for (let i = 0; i < items.length; i++) {
|
|
4030
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
4031
|
+
if (r instanceof Promise) {
|
|
4032
|
+
proms.push(r.then((rr) => {
|
|
4033
|
+
itemResults[i] = rr;
|
|
4034
|
+
}));
|
|
3946
4035
|
} else {
|
|
3947
|
-
|
|
4036
|
+
itemResults[i] = r;
|
|
3948
4037
|
}
|
|
3949
4038
|
}
|
|
3950
4039
|
if (def.rest) {
|
|
4040
|
+
let i = items.length - 1;
|
|
3951
4041
|
const rest = input.slice(items.length);
|
|
3952
4042
|
for (const el of rest) {
|
|
3953
4043
|
i++;
|
|
3954
|
-
const result = def.rest._zod.run({
|
|
3955
|
-
value: el,
|
|
3956
|
-
issues: []
|
|
3957
|
-
}, ctx);
|
|
4044
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3958
4045
|
if (result instanceof Promise) {
|
|
3959
|
-
proms.push(result.then((
|
|
4046
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3960
4047
|
} else {
|
|
3961
4048
|
handleTupleResult(result, payload, i);
|
|
3962
4049
|
}
|
|
3963
4050
|
}
|
|
3964
4051
|
}
|
|
3965
|
-
if (proms.length)
|
|
3966
|
-
return Promise.all(proms).then(() => payload);
|
|
3967
|
-
|
|
4052
|
+
if (proms.length) {
|
|
4053
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
4054
|
+
}
|
|
4055
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3968
4056
|
};
|
|
3969
4057
|
});
|
|
4058
|
+
function getTupleOptStart(items, key) {
|
|
4059
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
4060
|
+
if (items[i]._zod[key] !== "optional")
|
|
4061
|
+
return i + 1;
|
|
4062
|
+
}
|
|
4063
|
+
return 0;
|
|
4064
|
+
}
|
|
3970
4065
|
function handleTupleResult(result, final, index) {
|
|
3971
4066
|
if (result.issues.length) {
|
|
3972
4067
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3973
4068
|
}
|
|
3974
4069
|
final.value[index] = result.value;
|
|
3975
4070
|
}
|
|
4071
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
4072
|
+
for (let i = 0; i < items.length; i++) {
|
|
4073
|
+
const r = itemResults[i];
|
|
4074
|
+
const isPresent = i < input.length;
|
|
4075
|
+
if (r.issues.length) {
|
|
4076
|
+
if (!isPresent && i >= optoutStart) {
|
|
4077
|
+
final.value.length = i;
|
|
4078
|
+
break;
|
|
4079
|
+
}
|
|
4080
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
4081
|
+
}
|
|
4082
|
+
final.value[i] = r.value;
|
|
4083
|
+
}
|
|
4084
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
4085
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
4086
|
+
final.value.length = i;
|
|
4087
|
+
} else {
|
|
4088
|
+
break;
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return final;
|
|
4092
|
+
}
|
|
3976
4093
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3977
4094
|
$ZodType.init(inst, def);
|
|
3978
4095
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3994,19 +4111,35 @@
|
|
|
3994
4111
|
for (const key of values) {
|
|
3995
4112
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3996
4113
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
4114
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
4115
|
+
if (keyResult instanceof Promise) {
|
|
4116
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
4117
|
+
}
|
|
4118
|
+
if (keyResult.issues.length) {
|
|
4119
|
+
payload.issues.push({
|
|
4120
|
+
code: "invalid_key",
|
|
4121
|
+
origin: "record",
|
|
4122
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
4123
|
+
input: key,
|
|
4124
|
+
path: [key],
|
|
4125
|
+
inst
|
|
4126
|
+
});
|
|
4127
|
+
continue;
|
|
4128
|
+
}
|
|
4129
|
+
const outKey = keyResult.value;
|
|
3997
4130
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3998
4131
|
if (result instanceof Promise) {
|
|
3999
4132
|
proms.push(result.then((result2) => {
|
|
4000
4133
|
if (result2.issues.length) {
|
|
4001
4134
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
4002
4135
|
}
|
|
4003
|
-
payload.value[
|
|
4136
|
+
payload.value[outKey] = result2.value;
|
|
4004
4137
|
}));
|
|
4005
4138
|
} else {
|
|
4006
4139
|
if (result.issues.length) {
|
|
4007
4140
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
4008
4141
|
}
|
|
4009
|
-
payload.value[
|
|
4142
|
+
payload.value[outKey] = result.value;
|
|
4010
4143
|
}
|
|
4011
4144
|
}
|
|
4012
4145
|
}
|
|
@@ -4030,6 +4163,8 @@
|
|
|
4030
4163
|
for (const key of Reflect.ownKeys(input)) {
|
|
4031
4164
|
if (key === "__proto__")
|
|
4032
4165
|
continue;
|
|
4166
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
4167
|
+
continue;
|
|
4033
4168
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
4034
4169
|
if (keyResult instanceof Promise) {
|
|
4035
4170
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -4234,6 +4369,7 @@
|
|
|
4234
4369
|
});
|
|
4235
4370
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
4236
4371
|
$ZodType.init(inst, def);
|
|
4372
|
+
inst._zod.optin = "optional";
|
|
4237
4373
|
inst._zod.parse = (payload, ctx) => {
|
|
4238
4374
|
if (ctx.direction === "backward") {
|
|
4239
4375
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -4243,6 +4379,7 @@
|
|
|
4243
4379
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
4244
4380
|
return output.then((output2) => {
|
|
4245
4381
|
payload.value = output2;
|
|
4382
|
+
payload.fallback = true;
|
|
4246
4383
|
return payload;
|
|
4247
4384
|
});
|
|
4248
4385
|
}
|
|
@@ -4250,11 +4387,12 @@
|
|
|
4250
4387
|
throw new $ZodAsyncError();
|
|
4251
4388
|
}
|
|
4252
4389
|
payload.value = _out;
|
|
4390
|
+
payload.fallback = true;
|
|
4253
4391
|
return payload;
|
|
4254
4392
|
};
|
|
4255
4393
|
});
|
|
4256
4394
|
function handleOptionalResult(result, input) {
|
|
4257
|
-
if (result.issues.length
|
|
4395
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
4258
4396
|
return { issues: [], value: void 0 };
|
|
4259
4397
|
}
|
|
4260
4398
|
return result;
|
|
@@ -4272,10 +4410,11 @@
|
|
|
4272
4410
|
});
|
|
4273
4411
|
inst._zod.parse = (payload, ctx) => {
|
|
4274
4412
|
if (def.innerType._zod.optin === "optional") {
|
|
4413
|
+
const input = payload.value;
|
|
4275
4414
|
const result = def.innerType._zod.run(payload, ctx);
|
|
4276
4415
|
if (result instanceof Promise)
|
|
4277
|
-
return result.then((r) => handleOptionalResult(r,
|
|
4278
|
-
return handleOptionalResult(result,
|
|
4416
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
4417
|
+
return handleOptionalResult(result, input);
|
|
4279
4418
|
}
|
|
4280
4419
|
if (payload.value === void 0) {
|
|
4281
4420
|
return payload;
|
|
@@ -4391,7 +4530,7 @@
|
|
|
4391
4530
|
});
|
|
4392
4531
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
4393
4532
|
$ZodType.init(inst, def);
|
|
4394
|
-
|
|
4533
|
+
inst._zod.optin = "optional";
|
|
4395
4534
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
4396
4535
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
4397
4536
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -4411,6 +4550,7 @@
|
|
|
4411
4550
|
input: payload.value
|
|
4412
4551
|
});
|
|
4413
4552
|
payload.issues = [];
|
|
4553
|
+
payload.fallback = true;
|
|
4414
4554
|
}
|
|
4415
4555
|
return payload;
|
|
4416
4556
|
});
|
|
@@ -4425,6 +4565,7 @@
|
|
|
4425
4565
|
input: payload.value
|
|
4426
4566
|
});
|
|
4427
4567
|
payload.issues = [];
|
|
4568
|
+
payload.fallback = true;
|
|
4428
4569
|
}
|
|
4429
4570
|
return payload;
|
|
4430
4571
|
};
|
|
@@ -4470,7 +4611,7 @@
|
|
|
4470
4611
|
left.aborted = true;
|
|
4471
4612
|
return left;
|
|
4472
4613
|
}
|
|
4473
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4614
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4474
4615
|
}
|
|
4475
4616
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4476
4617
|
$ZodType.init(inst, def);
|
|
@@ -4522,6 +4663,9 @@
|
|
|
4522
4663
|
}
|
|
4523
4664
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4524
4665
|
}
|
|
4666
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4667
|
+
$ZodPipe.init(inst, def);
|
|
4668
|
+
});
|
|
4525
4669
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4526
4670
|
$ZodType.init(inst, def);
|
|
4527
4671
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4673,7 +4817,12 @@
|
|
|
4673
4817
|
});
|
|
4674
4818
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4675
4819
|
$ZodType.init(inst, def);
|
|
4676
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4820
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4821
|
+
const d = def;
|
|
4822
|
+
if (!d._cachedInner)
|
|
4823
|
+
d._cachedInner = def.getter();
|
|
4824
|
+
return d._cachedInner;
|
|
4825
|
+
});
|
|
4677
4826
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4678
4827
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4679
4828
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4728,6 +4877,7 @@
|
|
|
4728
4877
|
cs: () => cs_default,
|
|
4729
4878
|
da: () => da_default,
|
|
4730
4879
|
de: () => de_default,
|
|
4880
|
+
el: () => el_default,
|
|
4731
4881
|
en: () => en_default,
|
|
4732
4882
|
eo: () => eo_default,
|
|
4733
4883
|
es: () => es_default,
|
|
@@ -4736,6 +4886,7 @@
|
|
|
4736
4886
|
fr: () => fr_default,
|
|
4737
4887
|
frCA: () => fr_CA_default,
|
|
4738
4888
|
he: () => he_default,
|
|
4889
|
+
hr: () => hr_default,
|
|
4739
4890
|
hu: () => hu_default,
|
|
4740
4891
|
hy: () => hy_default,
|
|
4741
4892
|
id: () => id_default,
|
|
@@ -4755,6 +4906,7 @@
|
|
|
4755
4906
|
pl: () => pl_default,
|
|
4756
4907
|
ps: () => ps_default,
|
|
4757
4908
|
pt: () => pt_default,
|
|
4909
|
+
ro: () => ro_default,
|
|
4758
4910
|
ru: () => ru_default,
|
|
4759
4911
|
sl: () => sl_default,
|
|
4760
4912
|
sv: () => sv_default,
|
|
@@ -5708,8 +5860,118 @@
|
|
|
5708
5860
|
};
|
|
5709
5861
|
}
|
|
5710
5862
|
|
|
5711
|
-
// node_modules/zod/v4/locales/
|
|
5863
|
+
// node_modules/zod/v4/locales/el.js
|
|
5712
5864
|
var error9 = () => {
|
|
5865
|
+
const Sizable = {
|
|
5866
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5867
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5868
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5869
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5870
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5871
|
+
};
|
|
5872
|
+
function getSizing(origin) {
|
|
5873
|
+
return Sizable[origin] ?? null;
|
|
5874
|
+
}
|
|
5875
|
+
const FormatDictionary = {
|
|
5876
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5877
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5878
|
+
url: "URL",
|
|
5879
|
+
emoji: "emoji",
|
|
5880
|
+
uuid: "UUID",
|
|
5881
|
+
uuidv4: "UUIDv4",
|
|
5882
|
+
uuidv6: "UUIDv6",
|
|
5883
|
+
nanoid: "nanoid",
|
|
5884
|
+
guid: "GUID",
|
|
5885
|
+
cuid: "cuid",
|
|
5886
|
+
cuid2: "cuid2",
|
|
5887
|
+
ulid: "ULID",
|
|
5888
|
+
xid: "XID",
|
|
5889
|
+
ksuid: "KSUID",
|
|
5890
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5891
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5892
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5893
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5894
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5895
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5896
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5897
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5898
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5899
|
+
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",
|
|
5900
|
+
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",
|
|
5901
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5902
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5903
|
+
jwt: "JWT",
|
|
5904
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5905
|
+
};
|
|
5906
|
+
const TypeDictionary = {
|
|
5907
|
+
nan: "NaN"
|
|
5908
|
+
};
|
|
5909
|
+
return (issue2) => {
|
|
5910
|
+
switch (issue2.code) {
|
|
5911
|
+
case "invalid_type": {
|
|
5912
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5913
|
+
const receivedType = parsedType(issue2.input);
|
|
5914
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5915
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5916
|
+
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}`;
|
|
5917
|
+
}
|
|
5918
|
+
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}`;
|
|
5919
|
+
}
|
|
5920
|
+
case "invalid_value":
|
|
5921
|
+
if (issue2.values.length === 1)
|
|
5922
|
+
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])}`;
|
|
5923
|
+
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, "|")}`;
|
|
5924
|
+
case "too_big": {
|
|
5925
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5926
|
+
const sizing = getSizing(issue2.origin);
|
|
5927
|
+
if (sizing)
|
|
5928
|
+
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"}`;
|
|
5929
|
+
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()}`;
|
|
5930
|
+
}
|
|
5931
|
+
case "too_small": {
|
|
5932
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5933
|
+
const sizing = getSizing(issue2.origin);
|
|
5934
|
+
if (sizing) {
|
|
5935
|
+
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}`;
|
|
5936
|
+
}
|
|
5937
|
+
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()}`;
|
|
5938
|
+
}
|
|
5939
|
+
case "invalid_format": {
|
|
5940
|
+
const _issue = issue2;
|
|
5941
|
+
if (_issue.format === "starts_with") {
|
|
5942
|
+
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}"`;
|
|
5943
|
+
}
|
|
5944
|
+
if (_issue.format === "ends_with")
|
|
5945
|
+
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}"`;
|
|
5946
|
+
if (_issue.format === "includes")
|
|
5947
|
+
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}"`;
|
|
5948
|
+
if (_issue.format === "regex")
|
|
5949
|
+
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}`;
|
|
5950
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5951
|
+
}
|
|
5952
|
+
case "not_multiple_of":
|
|
5953
|
+
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}`;
|
|
5954
|
+
case "unrecognized_keys":
|
|
5955
|
+
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, ", ")}`;
|
|
5956
|
+
case "invalid_key":
|
|
5957
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5958
|
+
case "invalid_union":
|
|
5959
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5960
|
+
case "invalid_element":
|
|
5961
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5962
|
+
default:
|
|
5963
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5964
|
+
}
|
|
5965
|
+
};
|
|
5966
|
+
};
|
|
5967
|
+
function el_default() {
|
|
5968
|
+
return {
|
|
5969
|
+
localeError: error9()
|
|
5970
|
+
};
|
|
5971
|
+
}
|
|
5972
|
+
|
|
5973
|
+
// node_modules/zod/v4/locales/en.js
|
|
5974
|
+
var error10 = () => {
|
|
5713
5975
|
const Sizable = {
|
|
5714
5976
|
string: { unit: "characters", verb: "to have" },
|
|
5715
5977
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5803,6 +6065,10 @@
|
|
|
5803
6065
|
case "invalid_key":
|
|
5804
6066
|
return `Invalid key in ${issue2.origin}`;
|
|
5805
6067
|
case "invalid_union":
|
|
6068
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
6069
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
6070
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
6071
|
+
}
|
|
5806
6072
|
return "Invalid input";
|
|
5807
6073
|
case "invalid_element":
|
|
5808
6074
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5813,12 +6079,12 @@
|
|
|
5813
6079
|
};
|
|
5814
6080
|
function en_default() {
|
|
5815
6081
|
return {
|
|
5816
|
-
localeError:
|
|
6082
|
+
localeError: error10()
|
|
5817
6083
|
};
|
|
5818
6084
|
}
|
|
5819
6085
|
|
|
5820
6086
|
// node_modules/zod/v4/locales/eo.js
|
|
5821
|
-
var
|
|
6087
|
+
var error11 = () => {
|
|
5822
6088
|
const Sizable = {
|
|
5823
6089
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5824
6090
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5923,12 +6189,12 @@
|
|
|
5923
6189
|
};
|
|
5924
6190
|
function eo_default() {
|
|
5925
6191
|
return {
|
|
5926
|
-
localeError:
|
|
6192
|
+
localeError: error11()
|
|
5927
6193
|
};
|
|
5928
6194
|
}
|
|
5929
6195
|
|
|
5930
6196
|
// node_modules/zod/v4/locales/es.js
|
|
5931
|
-
var
|
|
6197
|
+
var error12 = () => {
|
|
5932
6198
|
const Sizable = {
|
|
5933
6199
|
string: { unit: "caracteres", verb: "tener" },
|
|
5934
6200
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -6056,12 +6322,12 @@
|
|
|
6056
6322
|
};
|
|
6057
6323
|
function es_default() {
|
|
6058
6324
|
return {
|
|
6059
|
-
localeError:
|
|
6325
|
+
localeError: error12()
|
|
6060
6326
|
};
|
|
6061
6327
|
}
|
|
6062
6328
|
|
|
6063
6329
|
// node_modules/zod/v4/locales/fa.js
|
|
6064
|
-
var
|
|
6330
|
+
var error13 = () => {
|
|
6065
6331
|
const Sizable = {
|
|
6066
6332
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
6067
6333
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -6171,12 +6437,12 @@
|
|
|
6171
6437
|
};
|
|
6172
6438
|
function fa_default() {
|
|
6173
6439
|
return {
|
|
6174
|
-
localeError:
|
|
6440
|
+
localeError: error13()
|
|
6175
6441
|
};
|
|
6176
6442
|
}
|
|
6177
6443
|
|
|
6178
6444
|
// node_modules/zod/v4/locales/fi.js
|
|
6179
|
-
var
|
|
6445
|
+
var error14 = () => {
|
|
6180
6446
|
const Sizable = {
|
|
6181
6447
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
6182
6448
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -6284,12 +6550,12 @@
|
|
|
6284
6550
|
};
|
|
6285
6551
|
function fi_default() {
|
|
6286
6552
|
return {
|
|
6287
|
-
localeError:
|
|
6553
|
+
localeError: error14()
|
|
6288
6554
|
};
|
|
6289
6555
|
}
|
|
6290
6556
|
|
|
6291
6557
|
// node_modules/zod/v4/locales/fr.js
|
|
6292
|
-
var
|
|
6558
|
+
var error15 = () => {
|
|
6293
6559
|
const Sizable = {
|
|
6294
6560
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6295
6561
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6330,9 +6596,27 @@
|
|
|
6330
6596
|
template_literal: "entr\xE9e"
|
|
6331
6597
|
};
|
|
6332
6598
|
const TypeDictionary = {
|
|
6333
|
-
|
|
6599
|
+
string: "cha\xEEne",
|
|
6334
6600
|
number: "nombre",
|
|
6335
|
-
|
|
6601
|
+
int: "entier",
|
|
6602
|
+
boolean: "bool\xE9en",
|
|
6603
|
+
bigint: "grand entier",
|
|
6604
|
+
symbol: "symbole",
|
|
6605
|
+
undefined: "ind\xE9fini",
|
|
6606
|
+
null: "null",
|
|
6607
|
+
never: "jamais",
|
|
6608
|
+
void: "vide",
|
|
6609
|
+
date: "date",
|
|
6610
|
+
array: "tableau",
|
|
6611
|
+
object: "objet",
|
|
6612
|
+
tuple: "tuple",
|
|
6613
|
+
record: "enregistrement",
|
|
6614
|
+
map: "carte",
|
|
6615
|
+
set: "ensemble",
|
|
6616
|
+
file: "fichier",
|
|
6617
|
+
nonoptional: "non-optionnel",
|
|
6618
|
+
nan: "NaN",
|
|
6619
|
+
function: "fonction"
|
|
6336
6620
|
};
|
|
6337
6621
|
return (issue2) => {
|
|
6338
6622
|
switch (issue2.code) {
|
|
@@ -6353,16 +6637,15 @@
|
|
|
6353
6637
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6354
6638
|
const sizing = getSizing(issue2.origin);
|
|
6355
6639
|
if (sizing)
|
|
6356
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6357
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6640
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6641
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6358
6642
|
}
|
|
6359
6643
|
case "too_small": {
|
|
6360
6644
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6361
6645
|
const sizing = getSizing(issue2.origin);
|
|
6362
|
-
if (sizing)
|
|
6363
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6364
|
-
}
|
|
6365
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6646
|
+
if (sizing)
|
|
6647
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6648
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6366
6649
|
}
|
|
6367
6650
|
case "invalid_format": {
|
|
6368
6651
|
const _issue = issue2;
|
|
@@ -6393,12 +6676,12 @@
|
|
|
6393
6676
|
};
|
|
6394
6677
|
function fr_default() {
|
|
6395
6678
|
return {
|
|
6396
|
-
localeError:
|
|
6679
|
+
localeError: error15()
|
|
6397
6680
|
};
|
|
6398
6681
|
}
|
|
6399
6682
|
|
|
6400
6683
|
// node_modules/zod/v4/locales/fr-CA.js
|
|
6401
|
-
var
|
|
6684
|
+
var error16 = () => {
|
|
6402
6685
|
const Sizable = {
|
|
6403
6686
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
6404
6687
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6501,12 +6784,12 @@
|
|
|
6501
6784
|
};
|
|
6502
6785
|
function fr_CA_default() {
|
|
6503
6786
|
return {
|
|
6504
|
-
localeError:
|
|
6787
|
+
localeError: error16()
|
|
6505
6788
|
};
|
|
6506
6789
|
}
|
|
6507
6790
|
|
|
6508
6791
|
// node_modules/zod/v4/locales/he.js
|
|
6509
|
-
var
|
|
6792
|
+
var error17 = () => {
|
|
6510
6793
|
const TypeNames = {
|
|
6511
6794
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6512
6795
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6696,24 +6979,24 @@
|
|
|
6696
6979
|
};
|
|
6697
6980
|
function he_default() {
|
|
6698
6981
|
return {
|
|
6699
|
-
localeError:
|
|
6982
|
+
localeError: error17()
|
|
6700
6983
|
};
|
|
6701
6984
|
}
|
|
6702
6985
|
|
|
6703
|
-
// node_modules/zod/v4/locales/
|
|
6704
|
-
var
|
|
6986
|
+
// node_modules/zod/v4/locales/hr.js
|
|
6987
|
+
var error18 = () => {
|
|
6705
6988
|
const Sizable = {
|
|
6706
|
-
string: { unit: "
|
|
6707
|
-
file: { unit: "
|
|
6708
|
-
array: { unit: "
|
|
6709
|
-
set: { unit: "
|
|
6989
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6990
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6991
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6992
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6710
6993
|
};
|
|
6711
6994
|
function getSizing(origin) {
|
|
6712
6995
|
return Sizable[origin] ?? null;
|
|
6713
6996
|
}
|
|
6714
6997
|
const FormatDictionary = {
|
|
6715
|
-
regex: "
|
|
6716
|
-
email: "email
|
|
6998
|
+
regex: "unos",
|
|
6999
|
+
email: "email adresa",
|
|
6717
7000
|
url: "URL",
|
|
6718
7001
|
emoji: "emoji",
|
|
6719
7002
|
uuid: "UUID",
|
|
@@ -6726,25 +7009,37 @@
|
|
|
6726
7009
|
ulid: "ULID",
|
|
6727
7010
|
xid: "XID",
|
|
6728
7011
|
ksuid: "KSUID",
|
|
6729
|
-
datetime: "ISO
|
|
6730
|
-
date: "ISO
|
|
6731
|
-
time: "ISO
|
|
6732
|
-
duration: "ISO
|
|
6733
|
-
ipv4: "IPv4
|
|
6734
|
-
ipv6: "IPv6
|
|
6735
|
-
cidrv4: "IPv4
|
|
6736
|
-
cidrv6: "IPv6
|
|
6737
|
-
base64: "base64
|
|
6738
|
-
base64url: "base64url
|
|
6739
|
-
json_string: "JSON
|
|
6740
|
-
e164: "E.164
|
|
7012
|
+
datetime: "ISO datum i vrijeme",
|
|
7013
|
+
date: "ISO datum",
|
|
7014
|
+
time: "ISO vrijeme",
|
|
7015
|
+
duration: "ISO trajanje",
|
|
7016
|
+
ipv4: "IPv4 adresa",
|
|
7017
|
+
ipv6: "IPv6 adresa",
|
|
7018
|
+
cidrv4: "IPv4 raspon",
|
|
7019
|
+
cidrv6: "IPv6 raspon",
|
|
7020
|
+
base64: "base64 kodirani tekst",
|
|
7021
|
+
base64url: "base64url kodirani tekst",
|
|
7022
|
+
json_string: "JSON tekst",
|
|
7023
|
+
e164: "E.164 broj",
|
|
6741
7024
|
jwt: "JWT",
|
|
6742
|
-
template_literal: "
|
|
7025
|
+
template_literal: "unos"
|
|
6743
7026
|
};
|
|
6744
7027
|
const TypeDictionary = {
|
|
6745
7028
|
nan: "NaN",
|
|
6746
|
-
|
|
6747
|
-
|
|
7029
|
+
string: "tekst",
|
|
7030
|
+
number: "broj",
|
|
7031
|
+
boolean: "boolean",
|
|
7032
|
+
array: "niz",
|
|
7033
|
+
object: "objekt",
|
|
7034
|
+
set: "skup",
|
|
7035
|
+
file: "datoteka",
|
|
7036
|
+
date: "datum",
|
|
7037
|
+
bigint: "bigint",
|
|
7038
|
+
symbol: "simbol",
|
|
7039
|
+
undefined: "undefined",
|
|
7040
|
+
null: "null",
|
|
7041
|
+
function: "funkcija",
|
|
7042
|
+
map: "mapa"
|
|
6748
7043
|
};
|
|
6749
7044
|
return (issue2) => {
|
|
6750
7045
|
switch (issue2.code) {
|
|
@@ -6753,20 +7048,131 @@
|
|
|
6753
7048
|
const receivedType = parsedType(issue2.input);
|
|
6754
7049
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6755
7050
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6756
|
-
return
|
|
7051
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6757
7052
|
}
|
|
6758
|
-
return
|
|
7053
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6759
7054
|
}
|
|
6760
7055
|
case "invalid_value":
|
|
6761
7056
|
if (issue2.values.length === 1)
|
|
6762
|
-
return
|
|
6763
|
-
return
|
|
7057
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
7058
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6764
7059
|
case "too_big": {
|
|
6765
7060
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6766
7061
|
const sizing = getSizing(issue2.origin);
|
|
7062
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6767
7063
|
if (sizing)
|
|
6768
|
-
return `
|
|
6769
|
-
return `
|
|
7064
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
7065
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
7066
|
+
}
|
|
7067
|
+
case "too_small": {
|
|
7068
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
7069
|
+
const sizing = getSizing(issue2.origin);
|
|
7070
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
7071
|
+
if (sizing) {
|
|
7072
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7073
|
+
}
|
|
7074
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
7075
|
+
}
|
|
7076
|
+
case "invalid_format": {
|
|
7077
|
+
const _issue = issue2;
|
|
7078
|
+
if (_issue.format === "starts_with")
|
|
7079
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
7080
|
+
if (_issue.format === "ends_with")
|
|
7081
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
7082
|
+
if (_issue.format === "includes")
|
|
7083
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
7084
|
+
if (_issue.format === "regex")
|
|
7085
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
7086
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7087
|
+
}
|
|
7088
|
+
case "not_multiple_of":
|
|
7089
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
7090
|
+
case "unrecognized_keys":
|
|
7091
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
7092
|
+
case "invalid_key":
|
|
7093
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
7094
|
+
case "invalid_union":
|
|
7095
|
+
return "Neispravan unos";
|
|
7096
|
+
case "invalid_element":
|
|
7097
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
7098
|
+
default:
|
|
7099
|
+
return `Neispravan unos`;
|
|
7100
|
+
}
|
|
7101
|
+
};
|
|
7102
|
+
};
|
|
7103
|
+
function hr_default() {
|
|
7104
|
+
return {
|
|
7105
|
+
localeError: error18()
|
|
7106
|
+
};
|
|
7107
|
+
}
|
|
7108
|
+
|
|
7109
|
+
// node_modules/zod/v4/locales/hu.js
|
|
7110
|
+
var error19 = () => {
|
|
7111
|
+
const Sizable = {
|
|
7112
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
7113
|
+
file: { unit: "byte", verb: "legyen" },
|
|
7114
|
+
array: { unit: "elem", verb: "legyen" },
|
|
7115
|
+
set: { unit: "elem", verb: "legyen" }
|
|
7116
|
+
};
|
|
7117
|
+
function getSizing(origin) {
|
|
7118
|
+
return Sizable[origin] ?? null;
|
|
7119
|
+
}
|
|
7120
|
+
const FormatDictionary = {
|
|
7121
|
+
regex: "bemenet",
|
|
7122
|
+
email: "email c\xEDm",
|
|
7123
|
+
url: "URL",
|
|
7124
|
+
emoji: "emoji",
|
|
7125
|
+
uuid: "UUID",
|
|
7126
|
+
uuidv4: "UUIDv4",
|
|
7127
|
+
uuidv6: "UUIDv6",
|
|
7128
|
+
nanoid: "nanoid",
|
|
7129
|
+
guid: "GUID",
|
|
7130
|
+
cuid: "cuid",
|
|
7131
|
+
cuid2: "cuid2",
|
|
7132
|
+
ulid: "ULID",
|
|
7133
|
+
xid: "XID",
|
|
7134
|
+
ksuid: "KSUID",
|
|
7135
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
7136
|
+
date: "ISO d\xE1tum",
|
|
7137
|
+
time: "ISO id\u0151",
|
|
7138
|
+
duration: "ISO id\u0151intervallum",
|
|
7139
|
+
ipv4: "IPv4 c\xEDm",
|
|
7140
|
+
ipv6: "IPv6 c\xEDm",
|
|
7141
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
7142
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
7143
|
+
base64: "base64-k\xF3dolt string",
|
|
7144
|
+
base64url: "base64url-k\xF3dolt string",
|
|
7145
|
+
json_string: "JSON string",
|
|
7146
|
+
e164: "E.164 sz\xE1m",
|
|
7147
|
+
jwt: "JWT",
|
|
7148
|
+
template_literal: "bemenet"
|
|
7149
|
+
};
|
|
7150
|
+
const TypeDictionary = {
|
|
7151
|
+
nan: "NaN",
|
|
7152
|
+
number: "sz\xE1m",
|
|
7153
|
+
array: "t\xF6mb"
|
|
7154
|
+
};
|
|
7155
|
+
return (issue2) => {
|
|
7156
|
+
switch (issue2.code) {
|
|
7157
|
+
case "invalid_type": {
|
|
7158
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
7159
|
+
const receivedType = parsedType(issue2.input);
|
|
7160
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
7161
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
7162
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7163
|
+
}
|
|
7164
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
7165
|
+
}
|
|
7166
|
+
case "invalid_value":
|
|
7167
|
+
if (issue2.values.length === 1)
|
|
7168
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
7169
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
7170
|
+
case "too_big": {
|
|
7171
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
7172
|
+
const sizing = getSizing(issue2.origin);
|
|
7173
|
+
if (sizing)
|
|
7174
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
7175
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6770
7176
|
}
|
|
6771
7177
|
case "too_small": {
|
|
6772
7178
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
@@ -6805,7 +7211,7 @@
|
|
|
6805
7211
|
};
|
|
6806
7212
|
function hu_default() {
|
|
6807
7213
|
return {
|
|
6808
|
-
localeError:
|
|
7214
|
+
localeError: error19()
|
|
6809
7215
|
};
|
|
6810
7216
|
}
|
|
6811
7217
|
|
|
@@ -6820,7 +7226,7 @@
|
|
|
6820
7226
|
const lastChar = word[word.length - 1];
|
|
6821
7227
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6822
7228
|
}
|
|
6823
|
-
var
|
|
7229
|
+
var error20 = () => {
|
|
6824
7230
|
const Sizable = {
|
|
6825
7231
|
string: {
|
|
6826
7232
|
unit: {
|
|
@@ -6953,12 +7359,12 @@
|
|
|
6953
7359
|
};
|
|
6954
7360
|
function hy_default() {
|
|
6955
7361
|
return {
|
|
6956
|
-
localeError:
|
|
7362
|
+
localeError: error20()
|
|
6957
7363
|
};
|
|
6958
7364
|
}
|
|
6959
7365
|
|
|
6960
7366
|
// node_modules/zod/v4/locales/id.js
|
|
6961
|
-
var
|
|
7367
|
+
var error21 = () => {
|
|
6962
7368
|
const Sizable = {
|
|
6963
7369
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6964
7370
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -7060,12 +7466,12 @@
|
|
|
7060
7466
|
};
|
|
7061
7467
|
function id_default() {
|
|
7062
7468
|
return {
|
|
7063
|
-
localeError:
|
|
7469
|
+
localeError: error21()
|
|
7064
7470
|
};
|
|
7065
7471
|
}
|
|
7066
7472
|
|
|
7067
7473
|
// node_modules/zod/v4/locales/is.js
|
|
7068
|
-
var
|
|
7474
|
+
var error22 = () => {
|
|
7069
7475
|
const Sizable = {
|
|
7070
7476
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
7071
7477
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -7170,12 +7576,12 @@
|
|
|
7170
7576
|
};
|
|
7171
7577
|
function is_default() {
|
|
7172
7578
|
return {
|
|
7173
|
-
localeError:
|
|
7579
|
+
localeError: error22()
|
|
7174
7580
|
};
|
|
7175
7581
|
}
|
|
7176
7582
|
|
|
7177
7583
|
// node_modules/zod/v4/locales/it.js
|
|
7178
|
-
var
|
|
7584
|
+
var error23 = () => {
|
|
7179
7585
|
const Sizable = {
|
|
7180
7586
|
string: { unit: "caratteri", verb: "avere" },
|
|
7181
7587
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -7260,7 +7666,7 @@
|
|
|
7260
7666
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
7261
7667
|
if (_issue.format === "regex")
|
|
7262
7668
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
7263
|
-
return `
|
|
7669
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7264
7670
|
}
|
|
7265
7671
|
case "not_multiple_of":
|
|
7266
7672
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -7279,12 +7685,12 @@
|
|
|
7279
7685
|
};
|
|
7280
7686
|
function it_default() {
|
|
7281
7687
|
return {
|
|
7282
|
-
localeError:
|
|
7688
|
+
localeError: error23()
|
|
7283
7689
|
};
|
|
7284
7690
|
}
|
|
7285
7691
|
|
|
7286
7692
|
// node_modules/zod/v4/locales/ja.js
|
|
7287
|
-
var
|
|
7693
|
+
var error24 = () => {
|
|
7288
7694
|
const Sizable = {
|
|
7289
7695
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
7290
7696
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -7387,12 +7793,12 @@
|
|
|
7387
7793
|
};
|
|
7388
7794
|
function ja_default() {
|
|
7389
7795
|
return {
|
|
7390
|
-
localeError:
|
|
7796
|
+
localeError: error24()
|
|
7391
7797
|
};
|
|
7392
7798
|
}
|
|
7393
7799
|
|
|
7394
7800
|
// node_modules/zod/v4/locales/ka.js
|
|
7395
|
-
var
|
|
7801
|
+
var error25 = () => {
|
|
7396
7802
|
const Sizable = {
|
|
7397
7803
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
7398
7804
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -7425,9 +7831,9 @@
|
|
|
7425
7831
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
7426
7832
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7427
7833
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
7428
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7429
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
7430
|
-
json_string: "JSON \
|
|
7834
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7835
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7836
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
7431
7837
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
7432
7838
|
jwt: "JWT",
|
|
7433
7839
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -7435,7 +7841,7 @@
|
|
|
7435
7841
|
const TypeDictionary = {
|
|
7436
7842
|
nan: "NaN",
|
|
7437
7843
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
7438
|
-
string: "\
|
|
7844
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
7439
7845
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
7440
7846
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
7441
7847
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -7473,14 +7879,14 @@
|
|
|
7473
7879
|
case "invalid_format": {
|
|
7474
7880
|
const _issue = issue2;
|
|
7475
7881
|
if (_issue.format === "starts_with") {
|
|
7476
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7882
|
+
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`;
|
|
7477
7883
|
}
|
|
7478
7884
|
if (_issue.format === "ends_with")
|
|
7479
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7885
|
+
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`;
|
|
7480
7886
|
if (_issue.format === "includes")
|
|
7481
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7887
|
+
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`;
|
|
7482
7888
|
if (_issue.format === "regex")
|
|
7483
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7889
|
+
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}`;
|
|
7484
7890
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7485
7891
|
}
|
|
7486
7892
|
case "not_multiple_of":
|
|
@@ -7500,12 +7906,12 @@
|
|
|
7500
7906
|
};
|
|
7501
7907
|
function ka_default() {
|
|
7502
7908
|
return {
|
|
7503
|
-
localeError:
|
|
7909
|
+
localeError: error25()
|
|
7504
7910
|
};
|
|
7505
7911
|
}
|
|
7506
7912
|
|
|
7507
7913
|
// node_modules/zod/v4/locales/km.js
|
|
7508
|
-
var
|
|
7914
|
+
var error26 = () => {
|
|
7509
7915
|
const Sizable = {
|
|
7510
7916
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7511
7917
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7611,7 +8017,7 @@
|
|
|
7611
8017
|
};
|
|
7612
8018
|
function km_default() {
|
|
7613
8019
|
return {
|
|
7614
|
-
localeError:
|
|
8020
|
+
localeError: error26()
|
|
7615
8021
|
};
|
|
7616
8022
|
}
|
|
7617
8023
|
|
|
@@ -7621,7 +8027,7 @@
|
|
|
7621
8027
|
}
|
|
7622
8028
|
|
|
7623
8029
|
// node_modules/zod/v4/locales/ko.js
|
|
7624
|
-
var
|
|
8030
|
+
var error27 = () => {
|
|
7625
8031
|
const Sizable = {
|
|
7626
8032
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7627
8033
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7728,7 +8134,7 @@
|
|
|
7728
8134
|
};
|
|
7729
8135
|
function ko_default() {
|
|
7730
8136
|
return {
|
|
7731
|
-
localeError:
|
|
8137
|
+
localeError: error27()
|
|
7732
8138
|
};
|
|
7733
8139
|
}
|
|
7734
8140
|
|
|
@@ -7746,7 +8152,7 @@
|
|
|
7746
8152
|
return "one";
|
|
7747
8153
|
return "few";
|
|
7748
8154
|
}
|
|
7749
|
-
var
|
|
8155
|
+
var error28 = () => {
|
|
7750
8156
|
const Sizable = {
|
|
7751
8157
|
string: {
|
|
7752
8158
|
unit: {
|
|
@@ -7932,12 +8338,12 @@
|
|
|
7932
8338
|
};
|
|
7933
8339
|
function lt_default() {
|
|
7934
8340
|
return {
|
|
7935
|
-
localeError:
|
|
8341
|
+
localeError: error28()
|
|
7936
8342
|
};
|
|
7937
8343
|
}
|
|
7938
8344
|
|
|
7939
8345
|
// node_modules/zod/v4/locales/mk.js
|
|
7940
|
-
var
|
|
8346
|
+
var error29 = () => {
|
|
7941
8347
|
const Sizable = {
|
|
7942
8348
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7943
8349
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -8042,12 +8448,12 @@
|
|
|
8042
8448
|
};
|
|
8043
8449
|
function mk_default() {
|
|
8044
8450
|
return {
|
|
8045
|
-
localeError:
|
|
8451
|
+
localeError: error29()
|
|
8046
8452
|
};
|
|
8047
8453
|
}
|
|
8048
8454
|
|
|
8049
8455
|
// node_modules/zod/v4/locales/ms.js
|
|
8050
|
-
var
|
|
8456
|
+
var error30 = () => {
|
|
8051
8457
|
const Sizable = {
|
|
8052
8458
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
8053
8459
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -8150,12 +8556,12 @@
|
|
|
8150
8556
|
};
|
|
8151
8557
|
function ms_default() {
|
|
8152
8558
|
return {
|
|
8153
|
-
localeError:
|
|
8559
|
+
localeError: error30()
|
|
8154
8560
|
};
|
|
8155
8561
|
}
|
|
8156
8562
|
|
|
8157
8563
|
// node_modules/zod/v4/locales/nl.js
|
|
8158
|
-
var
|
|
8564
|
+
var error31 = () => {
|
|
8159
8565
|
const Sizable = {
|
|
8160
8566
|
string: { unit: "tekens", verb: "heeft" },
|
|
8161
8567
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -8261,12 +8667,12 @@
|
|
|
8261
8667
|
};
|
|
8262
8668
|
function nl_default() {
|
|
8263
8669
|
return {
|
|
8264
|
-
localeError:
|
|
8670
|
+
localeError: error31()
|
|
8265
8671
|
};
|
|
8266
8672
|
}
|
|
8267
8673
|
|
|
8268
8674
|
// node_modules/zod/v4/locales/no.js
|
|
8269
|
-
var
|
|
8675
|
+
var error32 = () => {
|
|
8270
8676
|
const Sizable = {
|
|
8271
8677
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
8272
8678
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -8370,12 +8776,12 @@
|
|
|
8370
8776
|
};
|
|
8371
8777
|
function no_default() {
|
|
8372
8778
|
return {
|
|
8373
|
-
localeError:
|
|
8779
|
+
localeError: error32()
|
|
8374
8780
|
};
|
|
8375
8781
|
}
|
|
8376
8782
|
|
|
8377
8783
|
// node_modules/zod/v4/locales/ota.js
|
|
8378
|
-
var
|
|
8784
|
+
var error33 = () => {
|
|
8379
8785
|
const Sizable = {
|
|
8380
8786
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
8381
8787
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8480,12 +8886,12 @@
|
|
|
8480
8886
|
};
|
|
8481
8887
|
function ota_default() {
|
|
8482
8888
|
return {
|
|
8483
|
-
localeError:
|
|
8889
|
+
localeError: error33()
|
|
8484
8890
|
};
|
|
8485
8891
|
}
|
|
8486
8892
|
|
|
8487
8893
|
// node_modules/zod/v4/locales/ps.js
|
|
8488
|
-
var
|
|
8894
|
+
var error34 = () => {
|
|
8489
8895
|
const Sizable = {
|
|
8490
8896
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
8491
8897
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8595,12 +9001,12 @@
|
|
|
8595
9001
|
};
|
|
8596
9002
|
function ps_default() {
|
|
8597
9003
|
return {
|
|
8598
|
-
localeError:
|
|
9004
|
+
localeError: error34()
|
|
8599
9005
|
};
|
|
8600
9006
|
}
|
|
8601
9007
|
|
|
8602
9008
|
// node_modules/zod/v4/locales/pl.js
|
|
8603
|
-
var
|
|
9009
|
+
var error35 = () => {
|
|
8604
9010
|
const Sizable = {
|
|
8605
9011
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8606
9012
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8705,12 +9111,12 @@
|
|
|
8705
9111
|
};
|
|
8706
9112
|
function pl_default() {
|
|
8707
9113
|
return {
|
|
8708
|
-
localeError:
|
|
9114
|
+
localeError: error35()
|
|
8709
9115
|
};
|
|
8710
9116
|
}
|
|
8711
9117
|
|
|
8712
9118
|
// node_modules/zod/v4/locales/pt.js
|
|
8713
|
-
var
|
|
9119
|
+
var error36 = () => {
|
|
8714
9120
|
const Sizable = {
|
|
8715
9121
|
string: { unit: "caracteres", verb: "ter" },
|
|
8716
9122
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8814,7 +9220,127 @@
|
|
|
8814
9220
|
};
|
|
8815
9221
|
function pt_default() {
|
|
8816
9222
|
return {
|
|
8817
|
-
localeError:
|
|
9223
|
+
localeError: error36()
|
|
9224
|
+
};
|
|
9225
|
+
}
|
|
9226
|
+
|
|
9227
|
+
// node_modules/zod/v4/locales/ro.js
|
|
9228
|
+
var error37 = () => {
|
|
9229
|
+
const Sizable = {
|
|
9230
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
9231
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
9232
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9233
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
9234
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
9235
|
+
};
|
|
9236
|
+
function getSizing(origin) {
|
|
9237
|
+
return Sizable[origin] ?? null;
|
|
9238
|
+
}
|
|
9239
|
+
const FormatDictionary = {
|
|
9240
|
+
regex: "intrare",
|
|
9241
|
+
email: "adres\u0103 de email",
|
|
9242
|
+
url: "URL",
|
|
9243
|
+
emoji: "emoji",
|
|
9244
|
+
uuid: "UUID",
|
|
9245
|
+
uuidv4: "UUIDv4",
|
|
9246
|
+
uuidv6: "UUIDv6",
|
|
9247
|
+
nanoid: "nanoid",
|
|
9248
|
+
guid: "GUID",
|
|
9249
|
+
cuid: "cuid",
|
|
9250
|
+
cuid2: "cuid2",
|
|
9251
|
+
ulid: "ULID",
|
|
9252
|
+
xid: "XID",
|
|
9253
|
+
ksuid: "KSUID",
|
|
9254
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
9255
|
+
date: "dat\u0103 ISO",
|
|
9256
|
+
time: "or\u0103 ISO",
|
|
9257
|
+
duration: "durat\u0103 ISO",
|
|
9258
|
+
ipv4: "adres\u0103 IPv4",
|
|
9259
|
+
ipv6: "adres\u0103 IPv6",
|
|
9260
|
+
mac: "adres\u0103 MAC",
|
|
9261
|
+
cidrv4: "interval IPv4",
|
|
9262
|
+
cidrv6: "interval IPv6",
|
|
9263
|
+
base64: "\u0219ir codat base64",
|
|
9264
|
+
base64url: "\u0219ir codat base64url",
|
|
9265
|
+
json_string: "\u0219ir JSON",
|
|
9266
|
+
e164: "num\u0103r E.164",
|
|
9267
|
+
jwt: "JWT",
|
|
9268
|
+
template_literal: "intrare"
|
|
9269
|
+
};
|
|
9270
|
+
const TypeDictionary = {
|
|
9271
|
+
nan: "NaN",
|
|
9272
|
+
string: "\u0219ir",
|
|
9273
|
+
number: "num\u0103r",
|
|
9274
|
+
boolean: "boolean",
|
|
9275
|
+
function: "func\u021Bie",
|
|
9276
|
+
array: "matrice",
|
|
9277
|
+
object: "obiect",
|
|
9278
|
+
undefined: "nedefinit",
|
|
9279
|
+
symbol: "simbol",
|
|
9280
|
+
bigint: "num\u0103r mare",
|
|
9281
|
+
void: "void",
|
|
9282
|
+
never: "never",
|
|
9283
|
+
map: "hart\u0103",
|
|
9284
|
+
set: "set"
|
|
9285
|
+
};
|
|
9286
|
+
return (issue2) => {
|
|
9287
|
+
switch (issue2.code) {
|
|
9288
|
+
case "invalid_type": {
|
|
9289
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
9290
|
+
const receivedType = parsedType(issue2.input);
|
|
9291
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
9292
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
9293
|
+
}
|
|
9294
|
+
case "invalid_value":
|
|
9295
|
+
if (issue2.values.length === 1)
|
|
9296
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
9297
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
9298
|
+
case "too_big": {
|
|
9299
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
9300
|
+
const sizing = getSizing(issue2.origin);
|
|
9301
|
+
if (sizing)
|
|
9302
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
9303
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
9304
|
+
}
|
|
9305
|
+
case "too_small": {
|
|
9306
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
9307
|
+
const sizing = getSizing(issue2.origin);
|
|
9308
|
+
if (sizing) {
|
|
9309
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
9310
|
+
}
|
|
9311
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
9312
|
+
}
|
|
9313
|
+
case "invalid_format": {
|
|
9314
|
+
const _issue = issue2;
|
|
9315
|
+
if (_issue.format === "starts_with") {
|
|
9316
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
9317
|
+
}
|
|
9318
|
+
if (_issue.format === "ends_with")
|
|
9319
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
9320
|
+
if (_issue.format === "includes")
|
|
9321
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
9322
|
+
if (_issue.format === "regex")
|
|
9323
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
9324
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
9325
|
+
}
|
|
9326
|
+
case "not_multiple_of":
|
|
9327
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
9328
|
+
case "unrecognized_keys":
|
|
9329
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
9330
|
+
case "invalid_key":
|
|
9331
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9332
|
+
case "invalid_union":
|
|
9333
|
+
return "Intrare invalid\u0103";
|
|
9334
|
+
case "invalid_element":
|
|
9335
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
9336
|
+
default:
|
|
9337
|
+
return `Intrare invalid\u0103`;
|
|
9338
|
+
}
|
|
9339
|
+
};
|
|
9340
|
+
};
|
|
9341
|
+
function ro_default() {
|
|
9342
|
+
return {
|
|
9343
|
+
localeError: error37()
|
|
8818
9344
|
};
|
|
8819
9345
|
}
|
|
8820
9346
|
|
|
@@ -8834,7 +9360,7 @@
|
|
|
8834
9360
|
}
|
|
8835
9361
|
return many;
|
|
8836
9362
|
}
|
|
8837
|
-
var
|
|
9363
|
+
var error38 = () => {
|
|
8838
9364
|
const Sizable = {
|
|
8839
9365
|
string: {
|
|
8840
9366
|
unit: {
|
|
@@ -8971,12 +9497,12 @@
|
|
|
8971
9497
|
};
|
|
8972
9498
|
function ru_default() {
|
|
8973
9499
|
return {
|
|
8974
|
-
localeError:
|
|
9500
|
+
localeError: error38()
|
|
8975
9501
|
};
|
|
8976
9502
|
}
|
|
8977
9503
|
|
|
8978
9504
|
// node_modules/zod/v4/locales/sl.js
|
|
8979
|
-
var
|
|
9505
|
+
var error39 = () => {
|
|
8980
9506
|
const Sizable = {
|
|
8981
9507
|
string: { unit: "znakov", verb: "imeti" },
|
|
8982
9508
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -9081,12 +9607,12 @@
|
|
|
9081
9607
|
};
|
|
9082
9608
|
function sl_default() {
|
|
9083
9609
|
return {
|
|
9084
|
-
localeError:
|
|
9610
|
+
localeError: error39()
|
|
9085
9611
|
};
|
|
9086
9612
|
}
|
|
9087
9613
|
|
|
9088
9614
|
// node_modules/zod/v4/locales/sv.js
|
|
9089
|
-
var
|
|
9615
|
+
var error40 = () => {
|
|
9090
9616
|
const Sizable = {
|
|
9091
9617
|
string: { unit: "tecken", verb: "att ha" },
|
|
9092
9618
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -9192,12 +9718,12 @@
|
|
|
9192
9718
|
};
|
|
9193
9719
|
function sv_default() {
|
|
9194
9720
|
return {
|
|
9195
|
-
localeError:
|
|
9721
|
+
localeError: error40()
|
|
9196
9722
|
};
|
|
9197
9723
|
}
|
|
9198
9724
|
|
|
9199
9725
|
// node_modules/zod/v4/locales/ta.js
|
|
9200
|
-
var
|
|
9726
|
+
var error41 = () => {
|
|
9201
9727
|
const Sizable = {
|
|
9202
9728
|
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" },
|
|
9203
9729
|
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" },
|
|
@@ -9303,12 +9829,12 @@
|
|
|
9303
9829
|
};
|
|
9304
9830
|
function ta_default() {
|
|
9305
9831
|
return {
|
|
9306
|
-
localeError:
|
|
9832
|
+
localeError: error41()
|
|
9307
9833
|
};
|
|
9308
9834
|
}
|
|
9309
9835
|
|
|
9310
9836
|
// node_modules/zod/v4/locales/th.js
|
|
9311
|
-
var
|
|
9837
|
+
var error42 = () => {
|
|
9312
9838
|
const Sizable = {
|
|
9313
9839
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
9314
9840
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -9414,12 +9940,12 @@
|
|
|
9414
9940
|
};
|
|
9415
9941
|
function th_default() {
|
|
9416
9942
|
return {
|
|
9417
|
-
localeError:
|
|
9943
|
+
localeError: error42()
|
|
9418
9944
|
};
|
|
9419
9945
|
}
|
|
9420
9946
|
|
|
9421
9947
|
// node_modules/zod/v4/locales/tr.js
|
|
9422
|
-
var
|
|
9948
|
+
var error43 = () => {
|
|
9423
9949
|
const Sizable = {
|
|
9424
9950
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
9425
9951
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9520,12 +10046,12 @@
|
|
|
9520
10046
|
};
|
|
9521
10047
|
function tr_default() {
|
|
9522
10048
|
return {
|
|
9523
|
-
localeError:
|
|
10049
|
+
localeError: error43()
|
|
9524
10050
|
};
|
|
9525
10051
|
}
|
|
9526
10052
|
|
|
9527
10053
|
// node_modules/zod/v4/locales/uk.js
|
|
9528
|
-
var
|
|
10054
|
+
var error44 = () => {
|
|
9529
10055
|
const Sizable = {
|
|
9530
10056
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9531
10057
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9629,7 +10155,7 @@
|
|
|
9629
10155
|
};
|
|
9630
10156
|
function uk_default() {
|
|
9631
10157
|
return {
|
|
9632
|
-
localeError:
|
|
10158
|
+
localeError: error44()
|
|
9633
10159
|
};
|
|
9634
10160
|
}
|
|
9635
10161
|
|
|
@@ -9639,7 +10165,7 @@
|
|
|
9639
10165
|
}
|
|
9640
10166
|
|
|
9641
10167
|
// node_modules/zod/v4/locales/ur.js
|
|
9642
|
-
var
|
|
10168
|
+
var error45 = () => {
|
|
9643
10169
|
const Sizable = {
|
|
9644
10170
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9645
10171
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9745,17 +10271,18 @@
|
|
|
9745
10271
|
};
|
|
9746
10272
|
function ur_default() {
|
|
9747
10273
|
return {
|
|
9748
|
-
localeError:
|
|
10274
|
+
localeError: error45()
|
|
9749
10275
|
};
|
|
9750
10276
|
}
|
|
9751
10277
|
|
|
9752
10278
|
// node_modules/zod/v4/locales/uz.js
|
|
9753
|
-
var
|
|
10279
|
+
var error46 = () => {
|
|
9754
10280
|
const Sizable = {
|
|
9755
10281
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9756
10282
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9757
10283
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9758
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
10284
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
10285
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9759
10286
|
};
|
|
9760
10287
|
function getSizing(origin) {
|
|
9761
10288
|
return Sizable[origin] ?? null;
|
|
@@ -9855,12 +10382,12 @@
|
|
|
9855
10382
|
};
|
|
9856
10383
|
function uz_default() {
|
|
9857
10384
|
return {
|
|
9858
|
-
localeError:
|
|
10385
|
+
localeError: error46()
|
|
9859
10386
|
};
|
|
9860
10387
|
}
|
|
9861
10388
|
|
|
9862
10389
|
// node_modules/zod/v4/locales/vi.js
|
|
9863
|
-
var
|
|
10390
|
+
var error47 = () => {
|
|
9864
10391
|
const Sizable = {
|
|
9865
10392
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9866
10393
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9964,12 +10491,12 @@
|
|
|
9964
10491
|
};
|
|
9965
10492
|
function vi_default() {
|
|
9966
10493
|
return {
|
|
9967
|
-
localeError:
|
|
10494
|
+
localeError: error47()
|
|
9968
10495
|
};
|
|
9969
10496
|
}
|
|
9970
10497
|
|
|
9971
10498
|
// node_modules/zod/v4/locales/zh-CN.js
|
|
9972
|
-
var
|
|
10499
|
+
var error48 = () => {
|
|
9973
10500
|
const Sizable = {
|
|
9974
10501
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9975
10502
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -10074,12 +10601,12 @@
|
|
|
10074
10601
|
};
|
|
10075
10602
|
function zh_CN_default() {
|
|
10076
10603
|
return {
|
|
10077
|
-
localeError:
|
|
10604
|
+
localeError: error48()
|
|
10078
10605
|
};
|
|
10079
10606
|
}
|
|
10080
10607
|
|
|
10081
10608
|
// node_modules/zod/v4/locales/zh-TW.js
|
|
10082
|
-
var
|
|
10609
|
+
var error49 = () => {
|
|
10083
10610
|
const Sizable = {
|
|
10084
10611
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
10085
10612
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -10182,12 +10709,12 @@
|
|
|
10182
10709
|
};
|
|
10183
10710
|
function zh_TW_default() {
|
|
10184
10711
|
return {
|
|
10185
|
-
localeError:
|
|
10712
|
+
localeError: error49()
|
|
10186
10713
|
};
|
|
10187
10714
|
}
|
|
10188
10715
|
|
|
10189
10716
|
// node_modules/zod/v4/locales/yo.js
|
|
10190
|
-
var
|
|
10717
|
+
var error50 = () => {
|
|
10191
10718
|
const Sizable = {
|
|
10192
10719
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
10193
10720
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -10290,12 +10817,12 @@
|
|
|
10290
10817
|
};
|
|
10291
10818
|
function yo_default() {
|
|
10292
10819
|
return {
|
|
10293
|
-
localeError:
|
|
10820
|
+
localeError: error50()
|
|
10294
10821
|
};
|
|
10295
10822
|
}
|
|
10296
10823
|
|
|
10297
10824
|
// node_modules/zod/v4/core/registries.js
|
|
10298
|
-
var
|
|
10825
|
+
var _a2;
|
|
10299
10826
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
10300
10827
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
10301
10828
|
var $ZodRegistry = class {
|
|
@@ -10341,7 +10868,7 @@
|
|
|
10341
10868
|
function registry() {
|
|
10342
10869
|
return new $ZodRegistry();
|
|
10343
10870
|
}
|
|
10344
|
-
(
|
|
10871
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
10345
10872
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
10346
10873
|
|
|
10347
10874
|
// node_modules/zod/v4/core/api.js
|
|
@@ -11259,7 +11786,7 @@
|
|
|
11259
11786
|
return schema;
|
|
11260
11787
|
}
|
|
11261
11788
|
// @__NO_SIDE_EFFECTS__
|
|
11262
|
-
function _superRefine(fn) {
|
|
11789
|
+
function _superRefine(fn, params) {
|
|
11263
11790
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
11264
11791
|
payload.addIssue = (issue2) => {
|
|
11265
11792
|
if (typeof issue2 === "string") {
|
|
@@ -11276,7 +11803,7 @@
|
|
|
11276
11803
|
}
|
|
11277
11804
|
};
|
|
11278
11805
|
return fn(payload.value, payload);
|
|
11279
|
-
});
|
|
11806
|
+
}, params);
|
|
11280
11807
|
return ch;
|
|
11281
11808
|
}
|
|
11282
11809
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11406,7 +11933,7 @@
|
|
|
11406
11933
|
};
|
|
11407
11934
|
}
|
|
11408
11935
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
11409
|
-
var
|
|
11936
|
+
var _a3;
|
|
11410
11937
|
const def = schema._zod.def;
|
|
11411
11938
|
const seen = ctx.seen.get(schema);
|
|
11412
11939
|
if (seen) {
|
|
@@ -11453,8 +11980,8 @@
|
|
|
11453
11980
|
delete result.schema.examples;
|
|
11454
11981
|
delete result.schema.default;
|
|
11455
11982
|
}
|
|
11456
|
-
if (ctx.io === "input" && result.schema
|
|
11457
|
-
(
|
|
11983
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11984
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
11458
11985
|
delete result.schema._prefault;
|
|
11459
11986
|
const _result = ctx.seen.get(schema);
|
|
11460
11987
|
return _result.schema;
|
|
@@ -11635,10 +12162,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11635
12162
|
result.$id = ctx.external.uri(id);
|
|
11636
12163
|
}
|
|
11637
12164
|
Object.assign(result, root.def ?? root.schema);
|
|
12165
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
12166
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
12167
|
+
delete result.id;
|
|
11638
12168
|
const defs = ctx.external?.defs ?? {};
|
|
11639
12169
|
for (const entry of ctx.seen.entries()) {
|
|
11640
12170
|
const seen = entry[1];
|
|
11641
12171
|
if (seen.def && seen.defId) {
|
|
12172
|
+
if (seen.def.id === seen.defId)
|
|
12173
|
+
delete seen.def.id;
|
|
11642
12174
|
defs[seen.defId] = seen.def;
|
|
11643
12175
|
}
|
|
11644
12176
|
}
|
|
@@ -11694,6 +12226,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11694
12226
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11695
12227
|
}
|
|
11696
12228
|
if (def.type === "pipe") {
|
|
12229
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
12230
|
+
return true;
|
|
11697
12231
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11698
12232
|
}
|
|
11699
12233
|
if (def.type === "object") {
|
|
@@ -11783,39 +12317,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11783
12317
|
json2.type = "integer";
|
|
11784
12318
|
else
|
|
11785
12319
|
json2.type = "number";
|
|
11786
|
-
|
|
11787
|
-
|
|
12320
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
12321
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
12322
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
12323
|
+
if (exMin) {
|
|
12324
|
+
if (legacy) {
|
|
11788
12325
|
json2.minimum = exclusiveMinimum;
|
|
11789
12326
|
json2.exclusiveMinimum = true;
|
|
11790
12327
|
} else {
|
|
11791
12328
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11792
12329
|
}
|
|
11793
|
-
}
|
|
11794
|
-
if (typeof minimum === "number") {
|
|
12330
|
+
} else if (typeof minimum === "number") {
|
|
11795
12331
|
json2.minimum = minimum;
|
|
11796
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11797
|
-
if (exclusiveMinimum >= minimum)
|
|
11798
|
-
delete json2.minimum;
|
|
11799
|
-
else
|
|
11800
|
-
delete json2.exclusiveMinimum;
|
|
11801
|
-
}
|
|
11802
12332
|
}
|
|
11803
|
-
if (
|
|
11804
|
-
if (
|
|
12333
|
+
if (exMax) {
|
|
12334
|
+
if (legacy) {
|
|
11805
12335
|
json2.maximum = exclusiveMaximum;
|
|
11806
12336
|
json2.exclusiveMaximum = true;
|
|
11807
12337
|
} else {
|
|
11808
12338
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11809
12339
|
}
|
|
11810
|
-
}
|
|
11811
|
-
if (typeof maximum === "number") {
|
|
12340
|
+
} else if (typeof maximum === "number") {
|
|
11812
12341
|
json2.maximum = maximum;
|
|
11813
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11814
|
-
if (exclusiveMaximum <= maximum)
|
|
11815
|
-
delete json2.maximum;
|
|
11816
|
-
else
|
|
11817
|
-
delete json2.exclusiveMaximum;
|
|
11818
|
-
}
|
|
11819
12342
|
}
|
|
11820
12343
|
if (typeof multipleOf === "number")
|
|
11821
12344
|
json2.multipleOf = multipleOf;
|
|
@@ -11987,7 +12510,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
11987
12510
|
if (typeof maximum === "number")
|
|
11988
12511
|
json2.maxItems = maximum;
|
|
11989
12512
|
json2.type = "array";
|
|
11990
|
-
json2.items = process2(def.element, ctx, {
|
|
12513
|
+
json2.items = process2(def.element, ctx, {
|
|
12514
|
+
...params,
|
|
12515
|
+
path: [...params.path, "items"]
|
|
12516
|
+
});
|
|
11991
12517
|
};
|
|
11992
12518
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11993
12519
|
const json2 = _json;
|
|
@@ -12180,7 +12706,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12180
12706
|
};
|
|
12181
12707
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
12182
12708
|
const def = schema._zod.def;
|
|
12183
|
-
const
|
|
12709
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12710
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
12184
12711
|
process2(innerType, ctx, params);
|
|
12185
12712
|
const seen = ctx.seen.get(schema);
|
|
12186
12713
|
seen.ref = innerType;
|
|
@@ -12414,6 +12941,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12414
12941
|
ZodOptional: () => ZodOptional,
|
|
12415
12942
|
ZodPipe: () => ZodPipe,
|
|
12416
12943
|
ZodPrefault: () => ZodPrefault,
|
|
12944
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
12417
12945
|
ZodPromise: () => ZodPromise,
|
|
12418
12946
|
ZodReadonly: () => ZodReadonly,
|
|
12419
12947
|
ZodRecord: () => ZodRecord,
|
|
@@ -12474,6 +13002,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12474
13002
|
int32: () => int32,
|
|
12475
13003
|
int64: () => int64,
|
|
12476
13004
|
intersection: () => intersection,
|
|
13005
|
+
invertCodec: () => invertCodec,
|
|
12477
13006
|
ipv4: () => ipv42,
|
|
12478
13007
|
ipv6: () => ipv62,
|
|
12479
13008
|
json: () => json,
|
|
@@ -12643,8 +13172,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12643
13172
|
}
|
|
12644
13173
|
});
|
|
12645
13174
|
};
|
|
12646
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12647
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
13175
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
13176
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12648
13177
|
Parent: Error
|
|
12649
13178
|
});
|
|
12650
13179
|
|
|
@@ -12663,6 +13192,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12663
13192
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12664
13193
|
|
|
12665
13194
|
// node_modules/zod/v4/classic/schemas.js
|
|
13195
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
13196
|
+
function _installLazyMethods(inst, group, methods) {
|
|
13197
|
+
const proto = Object.getPrototypeOf(inst);
|
|
13198
|
+
let installed = _installedGroups.get(proto);
|
|
13199
|
+
if (!installed) {
|
|
13200
|
+
installed = /* @__PURE__ */ new Set();
|
|
13201
|
+
_installedGroups.set(proto, installed);
|
|
13202
|
+
}
|
|
13203
|
+
if (installed.has(group))
|
|
13204
|
+
return;
|
|
13205
|
+
installed.add(group);
|
|
13206
|
+
for (const key in methods) {
|
|
13207
|
+
const fn = methods[key];
|
|
13208
|
+
Object.defineProperty(proto, key, {
|
|
13209
|
+
configurable: true,
|
|
13210
|
+
enumerable: false,
|
|
13211
|
+
get() {
|
|
13212
|
+
const bound = fn.bind(this);
|
|
13213
|
+
Object.defineProperty(this, key, {
|
|
13214
|
+
configurable: true,
|
|
13215
|
+
writable: true,
|
|
13216
|
+
enumerable: true,
|
|
13217
|
+
value: bound
|
|
13218
|
+
});
|
|
13219
|
+
return bound;
|
|
13220
|
+
},
|
|
13221
|
+
set(v) {
|
|
13222
|
+
Object.defineProperty(this, key, {
|
|
13223
|
+
configurable: true,
|
|
13224
|
+
writable: true,
|
|
13225
|
+
enumerable: true,
|
|
13226
|
+
value: v
|
|
13227
|
+
});
|
|
13228
|
+
}
|
|
13229
|
+
});
|
|
13230
|
+
}
|
|
13231
|
+
}
|
|
12666
13232
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12667
13233
|
$ZodType.init(inst, def);
|
|
12668
13234
|
Object.assign(inst["~standard"], {
|
|
@@ -12675,23 +13241,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12675
13241
|
inst.def = def;
|
|
12676
13242
|
inst.type = def.type;
|
|
12677
13243
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12678
|
-
inst.check = (...checks) => {
|
|
12679
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12680
|
-
checks: [
|
|
12681
|
-
...def.checks ?? [],
|
|
12682
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12683
|
-
]
|
|
12684
|
-
}), {
|
|
12685
|
-
parent: true
|
|
12686
|
-
});
|
|
12687
|
-
};
|
|
12688
|
-
inst.with = inst.check;
|
|
12689
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12690
|
-
inst.brand = () => inst;
|
|
12691
|
-
inst.register = ((reg, meta3) => {
|
|
12692
|
-
reg.add(inst, meta3);
|
|
12693
|
-
return inst;
|
|
12694
|
-
});
|
|
12695
13244
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12696
13245
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12697
13246
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12705,45 +13254,108 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12705
13254
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12706
13255
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12707
13256
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12708
|
-
inst
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
13257
|
+
_installLazyMethods(inst, "ZodType", {
|
|
13258
|
+
check(...chks) {
|
|
13259
|
+
const def2 = this.def;
|
|
13260
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
13261
|
+
checks: [
|
|
13262
|
+
...def2.checks ?? [],
|
|
13263
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
13264
|
+
]
|
|
13265
|
+
}), { parent: true });
|
|
13266
|
+
},
|
|
13267
|
+
with(...chks) {
|
|
13268
|
+
return this.check(...chks);
|
|
13269
|
+
},
|
|
13270
|
+
clone(def2, params) {
|
|
13271
|
+
return clone(this, def2, params);
|
|
13272
|
+
},
|
|
13273
|
+
brand() {
|
|
13274
|
+
return this;
|
|
13275
|
+
},
|
|
13276
|
+
register(reg, meta3) {
|
|
13277
|
+
reg.add(this, meta3);
|
|
13278
|
+
return this;
|
|
13279
|
+
},
|
|
13280
|
+
refine(check2, params) {
|
|
13281
|
+
return this.check(refine(check2, params));
|
|
13282
|
+
},
|
|
13283
|
+
superRefine(refinement, params) {
|
|
13284
|
+
return this.check(superRefine(refinement, params));
|
|
13285
|
+
},
|
|
13286
|
+
overwrite(fn) {
|
|
13287
|
+
return this.check(_overwrite(fn));
|
|
13288
|
+
},
|
|
13289
|
+
optional() {
|
|
13290
|
+
return optional(this);
|
|
13291
|
+
},
|
|
13292
|
+
exactOptional() {
|
|
13293
|
+
return exactOptional(this);
|
|
13294
|
+
},
|
|
13295
|
+
nullable() {
|
|
13296
|
+
return nullable(this);
|
|
13297
|
+
},
|
|
13298
|
+
nullish() {
|
|
13299
|
+
return optional(nullable(this));
|
|
13300
|
+
},
|
|
13301
|
+
nonoptional(params) {
|
|
13302
|
+
return nonoptional(this, params);
|
|
13303
|
+
},
|
|
13304
|
+
array() {
|
|
13305
|
+
return array(this);
|
|
13306
|
+
},
|
|
13307
|
+
or(arg) {
|
|
13308
|
+
return union([this, arg]);
|
|
13309
|
+
},
|
|
13310
|
+
and(arg) {
|
|
13311
|
+
return intersection(this, arg);
|
|
13312
|
+
},
|
|
13313
|
+
transform(tx) {
|
|
13314
|
+
return pipe(this, transform(tx));
|
|
13315
|
+
},
|
|
13316
|
+
default(d) {
|
|
13317
|
+
return _default2(this, d);
|
|
13318
|
+
},
|
|
13319
|
+
prefault(d) {
|
|
13320
|
+
return prefault(this, d);
|
|
13321
|
+
},
|
|
13322
|
+
catch(params) {
|
|
13323
|
+
return _catch2(this, params);
|
|
13324
|
+
},
|
|
13325
|
+
pipe(target) {
|
|
13326
|
+
return pipe(this, target);
|
|
13327
|
+
},
|
|
13328
|
+
readonly() {
|
|
13329
|
+
return readonly(this);
|
|
13330
|
+
},
|
|
13331
|
+
describe(description) {
|
|
13332
|
+
const cl = this.clone();
|
|
13333
|
+
globalRegistry.add(cl, { description });
|
|
13334
|
+
return cl;
|
|
13335
|
+
},
|
|
13336
|
+
meta(...args) {
|
|
13337
|
+
if (args.length === 0)
|
|
13338
|
+
return globalRegistry.get(this);
|
|
13339
|
+
const cl = this.clone();
|
|
13340
|
+
globalRegistry.add(cl, args[0]);
|
|
13341
|
+
return cl;
|
|
13342
|
+
},
|
|
13343
|
+
isOptional() {
|
|
13344
|
+
return this.safeParse(void 0).success;
|
|
13345
|
+
},
|
|
13346
|
+
isNullable() {
|
|
13347
|
+
return this.safeParse(null).success;
|
|
13348
|
+
},
|
|
13349
|
+
apply(fn) {
|
|
13350
|
+
return fn(this);
|
|
13351
|
+
}
|
|
13352
|
+
});
|
|
12730
13353
|
Object.defineProperty(inst, "description", {
|
|
12731
13354
|
get() {
|
|
12732
13355
|
return globalRegistry.get(inst)?.description;
|
|
12733
13356
|
},
|
|
12734
13357
|
configurable: true
|
|
12735
13358
|
});
|
|
12736
|
-
inst.meta = (...args) => {
|
|
12737
|
-
if (args.length === 0) {
|
|
12738
|
-
return globalRegistry.get(inst);
|
|
12739
|
-
}
|
|
12740
|
-
const cl = inst.clone();
|
|
12741
|
-
globalRegistry.add(cl, args[0]);
|
|
12742
|
-
return cl;
|
|
12743
|
-
};
|
|
12744
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12745
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12746
|
-
inst.apply = (fn) => fn(inst);
|
|
12747
13359
|
return inst;
|
|
12748
13360
|
});
|
|
12749
13361
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12754,21 +13366,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12754
13366
|
inst.format = bag.format ?? null;
|
|
12755
13367
|
inst.minLength = bag.minimum ?? null;
|
|
12756
13368
|
inst.maxLength = bag.maximum ?? null;
|
|
12757
|
-
inst
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
13369
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
13370
|
+
regex(...args) {
|
|
13371
|
+
return this.check(_regex(...args));
|
|
13372
|
+
},
|
|
13373
|
+
includes(...args) {
|
|
13374
|
+
return this.check(_includes(...args));
|
|
13375
|
+
},
|
|
13376
|
+
startsWith(...args) {
|
|
13377
|
+
return this.check(_startsWith(...args));
|
|
13378
|
+
},
|
|
13379
|
+
endsWith(...args) {
|
|
13380
|
+
return this.check(_endsWith(...args));
|
|
13381
|
+
},
|
|
13382
|
+
min(...args) {
|
|
13383
|
+
return this.check(_minLength(...args));
|
|
13384
|
+
},
|
|
13385
|
+
max(...args) {
|
|
13386
|
+
return this.check(_maxLength(...args));
|
|
13387
|
+
},
|
|
13388
|
+
length(...args) {
|
|
13389
|
+
return this.check(_length(...args));
|
|
13390
|
+
},
|
|
13391
|
+
nonempty(...args) {
|
|
13392
|
+
return this.check(_minLength(1, ...args));
|
|
13393
|
+
},
|
|
13394
|
+
lowercase(params) {
|
|
13395
|
+
return this.check(_lowercase(params));
|
|
13396
|
+
},
|
|
13397
|
+
uppercase(params) {
|
|
13398
|
+
return this.check(_uppercase(params));
|
|
13399
|
+
},
|
|
13400
|
+
trim() {
|
|
13401
|
+
return this.check(_trim());
|
|
13402
|
+
},
|
|
13403
|
+
normalize(...args) {
|
|
13404
|
+
return this.check(_normalize(...args));
|
|
13405
|
+
},
|
|
13406
|
+
toLowerCase() {
|
|
13407
|
+
return this.check(_toLowerCase());
|
|
13408
|
+
},
|
|
13409
|
+
toUpperCase() {
|
|
13410
|
+
return this.check(_toUpperCase());
|
|
13411
|
+
},
|
|
13412
|
+
slugify() {
|
|
13413
|
+
return this.check(_slugify());
|
|
13414
|
+
}
|
|
13415
|
+
});
|
|
12772
13416
|
});
|
|
12773
13417
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12774
13418
|
$ZodString.init(inst, def);
|
|
@@ -12847,7 +13491,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12847
13491
|
}
|
|
12848
13492
|
function httpUrl(params) {
|
|
12849
13493
|
return _url(ZodURL, {
|
|
12850
|
-
protocol:
|
|
13494
|
+
protocol: regexes_exports.httpProtocol,
|
|
12851
13495
|
hostname: regexes_exports.domain,
|
|
12852
13496
|
...util_exports.normalizeParams(params)
|
|
12853
13497
|
});
|
|
@@ -12989,21 +13633,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
12989
13633
|
$ZodNumber.init(inst, def);
|
|
12990
13634
|
ZodType.init(inst, def);
|
|
12991
13635
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12992
|
-
inst
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13636
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13637
|
+
gt(value, params) {
|
|
13638
|
+
return this.check(_gt(value, params));
|
|
13639
|
+
},
|
|
13640
|
+
gte(value, params) {
|
|
13641
|
+
return this.check(_gte(value, params));
|
|
13642
|
+
},
|
|
13643
|
+
min(value, params) {
|
|
13644
|
+
return this.check(_gte(value, params));
|
|
13645
|
+
},
|
|
13646
|
+
lt(value, params) {
|
|
13647
|
+
return this.check(_lt(value, params));
|
|
13648
|
+
},
|
|
13649
|
+
lte(value, params) {
|
|
13650
|
+
return this.check(_lte(value, params));
|
|
13651
|
+
},
|
|
13652
|
+
max(value, params) {
|
|
13653
|
+
return this.check(_lte(value, params));
|
|
13654
|
+
},
|
|
13655
|
+
int(params) {
|
|
13656
|
+
return this.check(int(params));
|
|
13657
|
+
},
|
|
13658
|
+
safe(params) {
|
|
13659
|
+
return this.check(int(params));
|
|
13660
|
+
},
|
|
13661
|
+
positive(params) {
|
|
13662
|
+
return this.check(_gt(0, params));
|
|
13663
|
+
},
|
|
13664
|
+
nonnegative(params) {
|
|
13665
|
+
return this.check(_gte(0, params));
|
|
13666
|
+
},
|
|
13667
|
+
negative(params) {
|
|
13668
|
+
return this.check(_lt(0, params));
|
|
13669
|
+
},
|
|
13670
|
+
nonpositive(params) {
|
|
13671
|
+
return this.check(_lte(0, params));
|
|
13672
|
+
},
|
|
13673
|
+
multipleOf(value, params) {
|
|
13674
|
+
return this.check(_multipleOf(value, params));
|
|
13675
|
+
},
|
|
13676
|
+
step(value, params) {
|
|
13677
|
+
return this.check(_multipleOf(value, params));
|
|
13678
|
+
},
|
|
13679
|
+
finite() {
|
|
13680
|
+
return this;
|
|
13681
|
+
}
|
|
13682
|
+
});
|
|
13007
13683
|
const bag = inst._zod.bag;
|
|
13008
13684
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
13009
13685
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -13150,11 +13826,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13150
13826
|
ZodType.init(inst, def);
|
|
13151
13827
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
13152
13828
|
inst.element = def.element;
|
|
13153
|
-
inst
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13829
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13830
|
+
min(n, params) {
|
|
13831
|
+
return this.check(_minLength(n, params));
|
|
13832
|
+
},
|
|
13833
|
+
nonempty(params) {
|
|
13834
|
+
return this.check(_minLength(1, params));
|
|
13835
|
+
},
|
|
13836
|
+
max(n, params) {
|
|
13837
|
+
return this.check(_maxLength(n, params));
|
|
13838
|
+
},
|
|
13839
|
+
length(n, params) {
|
|
13840
|
+
return this.check(_length(n, params));
|
|
13841
|
+
},
|
|
13842
|
+
unwrap() {
|
|
13843
|
+
return this.element;
|
|
13844
|
+
}
|
|
13845
|
+
});
|
|
13158
13846
|
});
|
|
13159
13847
|
function array(element, params) {
|
|
13160
13848
|
return _array(ZodArray, element, params);
|
|
@@ -13170,23 +13858,47 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13170
13858
|
util_exports.defineLazy(inst, "shape", () => {
|
|
13171
13859
|
return def.shape;
|
|
13172
13860
|
});
|
|
13173
|
-
inst
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13861
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13862
|
+
keyof() {
|
|
13863
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13864
|
+
},
|
|
13865
|
+
catchall(catchall) {
|
|
13866
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13867
|
+
},
|
|
13868
|
+
passthrough() {
|
|
13869
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13870
|
+
},
|
|
13871
|
+
loose() {
|
|
13872
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13873
|
+
},
|
|
13874
|
+
strict() {
|
|
13875
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13876
|
+
},
|
|
13877
|
+
strip() {
|
|
13878
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13879
|
+
},
|
|
13880
|
+
extend(incoming) {
|
|
13881
|
+
return util_exports.extend(this, incoming);
|
|
13882
|
+
},
|
|
13883
|
+
safeExtend(incoming) {
|
|
13884
|
+
return util_exports.safeExtend(this, incoming);
|
|
13885
|
+
},
|
|
13886
|
+
merge(other) {
|
|
13887
|
+
return util_exports.merge(this, other);
|
|
13888
|
+
},
|
|
13889
|
+
pick(mask) {
|
|
13890
|
+
return util_exports.pick(this, mask);
|
|
13891
|
+
},
|
|
13892
|
+
omit(mask) {
|
|
13893
|
+
return util_exports.omit(this, mask);
|
|
13894
|
+
},
|
|
13895
|
+
partial(...args) {
|
|
13896
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13897
|
+
},
|
|
13898
|
+
required(...args) {
|
|
13899
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13900
|
+
}
|
|
13901
|
+
});
|
|
13190
13902
|
});
|
|
13191
13903
|
function object(shape, params) {
|
|
13192
13904
|
const def = {
|
|
@@ -13291,6 +14003,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13291
14003
|
inst.valueType = def.valueType;
|
|
13292
14004
|
});
|
|
13293
14005
|
function record(keyType, valueType, params) {
|
|
14006
|
+
if (!valueType || !valueType._zod) {
|
|
14007
|
+
return new ZodRecord({
|
|
14008
|
+
type: "record",
|
|
14009
|
+
keyType: string2(),
|
|
14010
|
+
valueType: keyType,
|
|
14011
|
+
...util_exports.normalizeParams(valueType)
|
|
14012
|
+
});
|
|
14013
|
+
}
|
|
13294
14014
|
return new ZodRecord({
|
|
13295
14015
|
type: "record",
|
|
13296
14016
|
keyType,
|
|
@@ -13462,10 +14182,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13462
14182
|
if (output instanceof Promise) {
|
|
13463
14183
|
return output.then((output2) => {
|
|
13464
14184
|
payload.value = output2;
|
|
14185
|
+
payload.fallback = true;
|
|
13465
14186
|
return payload;
|
|
13466
14187
|
});
|
|
13467
14188
|
}
|
|
13468
14189
|
payload.value = output;
|
|
14190
|
+
payload.fallback = true;
|
|
13469
14191
|
return payload;
|
|
13470
14192
|
};
|
|
13471
14193
|
});
|
|
@@ -13620,6 +14342,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13620
14342
|
reverseTransform: params.encode
|
|
13621
14343
|
});
|
|
13622
14344
|
}
|
|
14345
|
+
function invertCodec(codec2) {
|
|
14346
|
+
const def = codec2._zod.def;
|
|
14347
|
+
return new ZodCodec({
|
|
14348
|
+
type: "pipe",
|
|
14349
|
+
in: def.out,
|
|
14350
|
+
out: def.in,
|
|
14351
|
+
transform: def.reverseTransform,
|
|
14352
|
+
reverseTransform: def.transform
|
|
14353
|
+
});
|
|
14354
|
+
}
|
|
14355
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
14356
|
+
ZodPipe.init(inst, def);
|
|
14357
|
+
$ZodPreprocess.init(inst, def);
|
|
14358
|
+
});
|
|
13623
14359
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13624
14360
|
$ZodReadonly.init(inst, def);
|
|
13625
14361
|
ZodType.init(inst, def);
|
|
@@ -13699,8 +14435,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13699
14435
|
function refine(fn, _params = {}) {
|
|
13700
14436
|
return _refine(ZodCustom, fn, _params);
|
|
13701
14437
|
}
|
|
13702
|
-
function superRefine(fn) {
|
|
13703
|
-
return _superRefine(fn);
|
|
14438
|
+
function superRefine(fn, params) {
|
|
14439
|
+
return _superRefine(fn, params);
|
|
13704
14440
|
}
|
|
13705
14441
|
var describe2 = describe;
|
|
13706
14442
|
var meta2 = meta;
|
|
@@ -13738,7 +14474,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
13738
14474
|
return jsonSchema;
|
|
13739
14475
|
}
|
|
13740
14476
|
function preprocess(fn, schema) {
|
|
13741
|
-
return
|
|
14477
|
+
return new ZodPreprocess({
|
|
14478
|
+
type: "pipe",
|
|
14479
|
+
in: transform(fn),
|
|
14480
|
+
out: schema
|
|
14481
|
+
});
|
|
13742
14482
|
}
|
|
13743
14483
|
|
|
13744
14484
|
// node_modules/zod/v4/classic/compat.js
|
|
@@ -14159,12 +14899,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14159
14899
|
default:
|
|
14160
14900
|
throw new Error(`Unsupported type: ${type}`);
|
|
14161
14901
|
}
|
|
14162
|
-
if (schema.description) {
|
|
14163
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
14164
|
-
}
|
|
14165
|
-
if (schema.default !== void 0) {
|
|
14166
|
-
zodSchema = zodSchema.default(schema.default);
|
|
14167
|
-
}
|
|
14168
14902
|
return zodSchema;
|
|
14169
14903
|
}
|
|
14170
14904
|
function convertSchema(schema, ctx) {
|
|
@@ -14201,6 +14935,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14201
14935
|
if (schema.readOnly === true) {
|
|
14202
14936
|
baseSchema = z.readonly(baseSchema);
|
|
14203
14937
|
}
|
|
14938
|
+
if (schema.default !== void 0) {
|
|
14939
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14940
|
+
}
|
|
14204
14941
|
const extraMeta = {};
|
|
14205
14942
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
14206
14943
|
for (const key of coreMetadataKeys) {
|
|
@@ -14222,23 +14959,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14222
14959
|
if (Object.keys(extraMeta).length > 0) {
|
|
14223
14960
|
ctx.registry.add(baseSchema, extraMeta);
|
|
14224
14961
|
}
|
|
14962
|
+
if (schema.description) {
|
|
14963
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14964
|
+
}
|
|
14225
14965
|
return baseSchema;
|
|
14226
14966
|
}
|
|
14227
14967
|
function fromJSONSchema(schema, params) {
|
|
14228
14968
|
if (typeof schema === "boolean") {
|
|
14229
14969
|
return schema ? z.any() : z.never();
|
|
14230
14970
|
}
|
|
14231
|
-
|
|
14232
|
-
|
|
14971
|
+
let normalized;
|
|
14972
|
+
try {
|
|
14973
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14974
|
+
} catch {
|
|
14975
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14976
|
+
}
|
|
14977
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14978
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
14233
14979
|
const ctx = {
|
|
14234
14980
|
version: version2,
|
|
14235
14981
|
defs,
|
|
14236
14982
|
refs: /* @__PURE__ */ new Map(),
|
|
14237
14983
|
processing: /* @__PURE__ */ new Set(),
|
|
14238
|
-
rootSchema:
|
|
14984
|
+
rootSchema: normalized,
|
|
14239
14985
|
registry: params?.registry ?? globalRegistry
|
|
14240
14986
|
};
|
|
14241
|
-
return convertSchema(
|
|
14987
|
+
return convertSchema(normalized, ctx);
|
|
14242
14988
|
}
|
|
14243
14989
|
|
|
14244
14990
|
// node_modules/zod/v4/classic/coerce.js
|
|
@@ -14863,7 +15609,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14863
15609
|
};
|
|
14864
15610
|
var src_default = new NotebookLMPlugin();
|
|
14865
15611
|
|
|
14866
|
-
// dist/
|
|
15612
|
+
// dist/_adapter_entry_bdcddca4-34bc-445e-a8ba-b8e26729c598.ts
|
|
14867
15613
|
if (!globalThis.__openTabs) {
|
|
14868
15614
|
globalThis.__openTabs = {};
|
|
14869
15615
|
} else {
|
|
@@ -15081,5 +15827,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15081
15827
|
};
|
|
15082
15828
|
delete src_default.onDeactivate;
|
|
15083
15829
|
}
|
|
15084
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["notebooklm"]){var a=o.adapters["notebooklm"];a.__adapterHash="
|
|
15830
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["notebooklm"]){var a=o.adapters["notebooklm"];a.__adapterHash="004f8087cf7f176e035370ce4b54343c6ed7b1e34caa9274b8d828113893cbe6";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"notebooklm",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15085
15831
|
//# sourceMappingURL=adapter.iife.js.map
|