@inkeep/ai-sdk-provider 0.37.2 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +443 -319
- package/dist/index.js +443 -319
- package/package.json +10 -6
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ var __export = (target, all) => {
|
|
|
9
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
13
13
|
var external_exports = {};
|
|
14
14
|
__export(external_exports, {
|
|
15
15
|
$brand: () => $brand,
|
|
@@ -56,6 +56,7 @@ __export(external_exports, {
|
|
|
56
56
|
ZodKSUID: () => ZodKSUID,
|
|
57
57
|
ZodLazy: () => ZodLazy,
|
|
58
58
|
ZodLiteral: () => ZodLiteral,
|
|
59
|
+
ZodMAC: () => ZodMAC,
|
|
59
60
|
ZodMap: () => ZodMap,
|
|
60
61
|
ZodNaN: () => ZodNaN,
|
|
61
62
|
ZodNanoID: () => ZodNanoID,
|
|
@@ -114,6 +115,7 @@ __export(external_exports, {
|
|
|
114
115
|
date: () => date3,
|
|
115
116
|
decode: () => decode2,
|
|
116
117
|
decodeAsync: () => decodeAsync2,
|
|
118
|
+
describe: () => describe2,
|
|
117
119
|
discriminatedUnion: () => discriminatedUnion,
|
|
118
120
|
e164: () => e1642,
|
|
119
121
|
email: () => email2,
|
|
@@ -158,9 +160,11 @@ __export(external_exports, {
|
|
|
158
160
|
lowercase: () => _lowercase,
|
|
159
161
|
lt: () => _lt,
|
|
160
162
|
lte: () => _lte,
|
|
163
|
+
mac: () => mac2,
|
|
161
164
|
map: () => map,
|
|
162
165
|
maxLength: () => _maxLength,
|
|
163
166
|
maxSize: () => _maxSize,
|
|
167
|
+
meta: () => meta2,
|
|
164
168
|
mime: () => _mime,
|
|
165
169
|
minLength: () => _minLength,
|
|
166
170
|
minSize: () => _minSize,
|
|
@@ -206,6 +210,7 @@ __export(external_exports, {
|
|
|
206
210
|
set: () => set,
|
|
207
211
|
setErrorMap: () => setErrorMap,
|
|
208
212
|
size: () => _size,
|
|
213
|
+
slugify: () => _slugify,
|
|
209
214
|
startsWith: () => _startsWith,
|
|
210
215
|
strictObject: () => strictObject,
|
|
211
216
|
string: () => string2,
|
|
@@ -239,7 +244,7 @@ __export(external_exports, {
|
|
|
239
244
|
xid: () => xid2
|
|
240
245
|
});
|
|
241
246
|
|
|
242
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
247
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/index.js
|
|
243
248
|
var core_exports2 = {};
|
|
244
249
|
__export(core_exports2, {
|
|
245
250
|
$ZodAny: () => $ZodAny,
|
|
@@ -303,6 +308,7 @@ __export(core_exports2, {
|
|
|
303
308
|
$ZodKSUID: () => $ZodKSUID,
|
|
304
309
|
$ZodLazy: () => $ZodLazy,
|
|
305
310
|
$ZodLiteral: () => $ZodLiteral,
|
|
311
|
+
$ZodMAC: () => $ZodMAC,
|
|
306
312
|
$ZodMap: () => $ZodMap,
|
|
307
313
|
$ZodNaN: () => $ZodNaN,
|
|
308
314
|
$ZodNanoID: () => $ZodNanoID,
|
|
@@ -403,6 +409,7 @@ __export(core_exports2, {
|
|
|
403
409
|
_lowercase: () => _lowercase,
|
|
404
410
|
_lt: () => _lt,
|
|
405
411
|
_lte: () => _lte,
|
|
412
|
+
_mac: () => _mac,
|
|
406
413
|
_map: () => _map,
|
|
407
414
|
_max: () => _lte,
|
|
408
415
|
_maxLength: () => _maxLength,
|
|
@@ -444,6 +451,7 @@ __export(core_exports2, {
|
|
|
444
451
|
_safeParseAsync: () => _safeParseAsync,
|
|
445
452
|
_set: () => _set,
|
|
446
453
|
_size: () => _size,
|
|
454
|
+
_slugify: () => _slugify,
|
|
447
455
|
_startsWith: () => _startsWith,
|
|
448
456
|
_string: () => _string,
|
|
449
457
|
_stringFormat: () => _stringFormat,
|
|
@@ -475,6 +483,7 @@ __export(core_exports2, {
|
|
|
475
483
|
config: () => config,
|
|
476
484
|
decode: () => decode,
|
|
477
485
|
decodeAsync: () => decodeAsync,
|
|
486
|
+
describe: () => describe,
|
|
478
487
|
encode: () => encode,
|
|
479
488
|
encodeAsync: () => encodeAsync,
|
|
480
489
|
flattenError: () => flattenError,
|
|
@@ -485,6 +494,7 @@ __export(core_exports2, {
|
|
|
485
494
|
isValidBase64URL: () => isValidBase64URL,
|
|
486
495
|
isValidJWT: () => isValidJWT,
|
|
487
496
|
locales: () => locales_exports,
|
|
497
|
+
meta: () => meta,
|
|
488
498
|
parse: () => parse,
|
|
489
499
|
parseAsync: () => parseAsync,
|
|
490
500
|
prettifyError: () => prettifyError,
|
|
@@ -503,37 +513,46 @@ __export(core_exports2, {
|
|
|
503
513
|
version: () => version
|
|
504
514
|
});
|
|
505
515
|
|
|
506
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
516
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/core.js
|
|
507
517
|
var NEVER = Object.freeze({
|
|
508
518
|
status: "aborted"
|
|
509
519
|
});
|
|
510
520
|
// @__NO_SIDE_EFFECTS__
|
|
511
521
|
function $constructor(name, initializer3, params) {
|
|
512
522
|
function init(inst, def) {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
523
|
+
if (!inst._zod) {
|
|
524
|
+
Object.defineProperty(inst, "_zod", {
|
|
525
|
+
value: {
|
|
526
|
+
def,
|
|
527
|
+
constr: _,
|
|
528
|
+
traits: /* @__PURE__ */ new Set()
|
|
529
|
+
},
|
|
530
|
+
enumerable: false
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
if (inst._zod.traits.has(name)) {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
519
536
|
inst._zod.traits.add(name);
|
|
520
537
|
initializer3(inst, def);
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
538
|
+
const proto = _.prototype;
|
|
539
|
+
const keys = Object.keys(proto);
|
|
540
|
+
for (let i = 0; i < keys.length; i++) {
|
|
541
|
+
const k = keys[i];
|
|
542
|
+
if (!(k in inst)) {
|
|
543
|
+
inst[k] = proto[k].bind(inst);
|
|
544
|
+
}
|
|
524
545
|
}
|
|
525
|
-
inst._zod.constr = _;
|
|
526
|
-
inst._zod.def = def;
|
|
527
546
|
}
|
|
528
547
|
const Parent = params?.Parent ?? Object;
|
|
529
548
|
class Definition extends Parent {
|
|
530
549
|
}
|
|
531
550
|
Object.defineProperty(Definition, "name", { value: name });
|
|
532
551
|
function _(def) {
|
|
533
|
-
var
|
|
552
|
+
var _a2;
|
|
534
553
|
const inst = params?.Parent ? new Definition() : this;
|
|
535
554
|
init(inst, def);
|
|
536
|
-
(
|
|
555
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
537
556
|
for (const fn of inst._zod.deferred) {
|
|
538
557
|
fn();
|
|
539
558
|
}
|
|
@@ -569,7 +588,7 @@ function config(newConfig) {
|
|
|
569
588
|
return globalConfig;
|
|
570
589
|
}
|
|
571
590
|
|
|
572
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
591
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
|
|
573
592
|
var util_exports = {};
|
|
574
593
|
__export(util_exports, {
|
|
575
594
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -627,6 +646,7 @@ __export(util_exports, {
|
|
|
627
646
|
required: () => required,
|
|
628
647
|
safeExtend: () => safeExtend,
|
|
629
648
|
shallowClone: () => shallowClone,
|
|
649
|
+
slugify: () => slugify,
|
|
630
650
|
stringifyPrimitive: () => stringifyPrimitive,
|
|
631
651
|
uint8ArrayToBase64: () => uint8ArrayToBase64,
|
|
632
652
|
uint8ArrayToBase64url: () => uint8ArrayToBase64url,
|
|
@@ -765,6 +785,9 @@ function randomString(length = 10) {
|
|
|
765
785
|
function esc(str) {
|
|
766
786
|
return JSON.stringify(str);
|
|
767
787
|
}
|
|
788
|
+
function slugify(input) {
|
|
789
|
+
return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
790
|
+
}
|
|
768
791
|
var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
|
|
769
792
|
};
|
|
770
793
|
function isObject(data) {
|
|
@@ -788,6 +811,8 @@ function isPlainObject(o) {
|
|
|
788
811
|
const ctor = o.constructor;
|
|
789
812
|
if (ctor === void 0)
|
|
790
813
|
return true;
|
|
814
|
+
if (typeof ctor !== "function")
|
|
815
|
+
return true;
|
|
791
816
|
const prot = ctor.prototype;
|
|
792
817
|
if (isObject(prot) === false)
|
|
793
818
|
return false;
|
|
@@ -1104,8 +1129,8 @@ function aborted(x, startIndex = 0) {
|
|
|
1104
1129
|
}
|
|
1105
1130
|
function prefixIssues(path, issues) {
|
|
1106
1131
|
return issues.map((iss) => {
|
|
1107
|
-
var
|
|
1108
|
-
(
|
|
1132
|
+
var _a2;
|
|
1133
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
1109
1134
|
iss.path.unshift(path);
|
|
1110
1135
|
return iss;
|
|
1111
1136
|
});
|
|
@@ -1201,7 +1226,7 @@ var Class = class {
|
|
|
1201
1226
|
}
|
|
1202
1227
|
};
|
|
1203
1228
|
|
|
1204
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1229
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
|
|
1205
1230
|
var initializer = (inst, def) => {
|
|
1206
1231
|
inst.name = "$ZodError";
|
|
1207
1232
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1269,7 +1294,7 @@ function formatError(error46, mapper = (issue2) => issue2.message) {
|
|
|
1269
1294
|
function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
1270
1295
|
const result = { errors: [] };
|
|
1271
1296
|
const processError = (error47, path = []) => {
|
|
1272
|
-
var
|
|
1297
|
+
var _a2, _b;
|
|
1273
1298
|
for (const issue2 of error47.issues) {
|
|
1274
1299
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1275
1300
|
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
@@ -1290,7 +1315,7 @@ function treeifyError(error46, mapper = (issue2) => issue2.message) {
|
|
|
1290
1315
|
const terminal = i === fullpath.length - 1;
|
|
1291
1316
|
if (typeof el === "string") {
|
|
1292
1317
|
curr.properties ?? (curr.properties = {});
|
|
1293
|
-
(
|
|
1318
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
1294
1319
|
curr = curr.properties[el];
|
|
1295
1320
|
} else {
|
|
1296
1321
|
curr.items ?? (curr.items = []);
|
|
@@ -1337,7 +1362,7 @@ function prettifyError(error46) {
|
|
|
1337
1362
|
return lines.join("\n");
|
|
1338
1363
|
}
|
|
1339
1364
|
|
|
1340
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1365
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
|
|
1341
1366
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1342
1367
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1343
1368
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1425,7 +1450,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1425
1450
|
};
|
|
1426
1451
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1427
1452
|
|
|
1428
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1453
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/regexes.js
|
|
1429
1454
|
var regexes_exports = {};
|
|
1430
1455
|
__export(regexes_exports, {
|
|
1431
1456
|
base64: () => base64,
|
|
@@ -1455,6 +1480,7 @@ __export(regexes_exports, {
|
|
|
1455
1480
|
ipv6: () => ipv6,
|
|
1456
1481
|
ksuid: () => ksuid,
|
|
1457
1482
|
lowercase: () => lowercase,
|
|
1483
|
+
mac: () => mac,
|
|
1458
1484
|
md5_base64: () => md5_base64,
|
|
1459
1485
|
md5_base64url: () => md5_base64url,
|
|
1460
1486
|
md5_hex: () => md5_hex,
|
|
@@ -1515,6 +1541,10 @@ function emoji() {
|
|
|
1515
1541
|
}
|
|
1516
1542
|
var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
1517
1543
|
var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
|
|
1544
|
+
var mac = (delimiter) => {
|
|
1545
|
+
const escapedDelim = escapeRegex(delimiter ?? ":");
|
|
1546
|
+
return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`);
|
|
1547
|
+
};
|
|
1518
1548
|
var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
|
|
1519
1549
|
var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
1520
1550
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -1577,12 +1607,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1577
1607
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1578
1608
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1579
1609
|
|
|
1580
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
1610
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
|
|
1581
1611
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1582
|
-
var
|
|
1612
|
+
var _a2;
|
|
1583
1613
|
inst._zod ?? (inst._zod = {});
|
|
1584
1614
|
inst._zod.def = def;
|
|
1585
|
-
(
|
|
1615
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
1586
1616
|
});
|
|
1587
1617
|
var numericOriginMap = {
|
|
1588
1618
|
number: "number",
|
|
@@ -1648,8 +1678,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1648
1678
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1649
1679
|
$ZodCheck.init(inst, def);
|
|
1650
1680
|
inst._zod.onattach.push((inst2) => {
|
|
1651
|
-
var
|
|
1652
|
-
(
|
|
1681
|
+
var _a2;
|
|
1682
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1653
1683
|
});
|
|
1654
1684
|
inst._zod.check = (payload) => {
|
|
1655
1685
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1776,9 +1806,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1776
1806
|
};
|
|
1777
1807
|
});
|
|
1778
1808
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1779
|
-
var
|
|
1809
|
+
var _a2;
|
|
1780
1810
|
$ZodCheck.init(inst, def);
|
|
1781
|
-
(
|
|
1811
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1782
1812
|
const val = payload.value;
|
|
1783
1813
|
return !nullish(val) && val.size !== void 0;
|
|
1784
1814
|
});
|
|
@@ -1804,9 +1834,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1804
1834
|
};
|
|
1805
1835
|
});
|
|
1806
1836
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1807
|
-
var
|
|
1837
|
+
var _a2;
|
|
1808
1838
|
$ZodCheck.init(inst, def);
|
|
1809
|
-
(
|
|
1839
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1810
1840
|
const val = payload.value;
|
|
1811
1841
|
return !nullish(val) && val.size !== void 0;
|
|
1812
1842
|
});
|
|
@@ -1832,9 +1862,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1832
1862
|
};
|
|
1833
1863
|
});
|
|
1834
1864
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1835
|
-
var
|
|
1865
|
+
var _a2;
|
|
1836
1866
|
$ZodCheck.init(inst, def);
|
|
1837
|
-
(
|
|
1867
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1838
1868
|
const val = payload.value;
|
|
1839
1869
|
return !nullish(val) && val.size !== void 0;
|
|
1840
1870
|
});
|
|
@@ -1862,9 +1892,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1862
1892
|
};
|
|
1863
1893
|
});
|
|
1864
1894
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1865
|
-
var
|
|
1895
|
+
var _a2;
|
|
1866
1896
|
$ZodCheck.init(inst, def);
|
|
1867
|
-
(
|
|
1897
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1868
1898
|
const val = payload.value;
|
|
1869
1899
|
return !nullish(val) && val.length !== void 0;
|
|
1870
1900
|
});
|
|
@@ -1891,9 +1921,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
1891
1921
|
};
|
|
1892
1922
|
});
|
|
1893
1923
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1894
|
-
var
|
|
1924
|
+
var _a2;
|
|
1895
1925
|
$ZodCheck.init(inst, def);
|
|
1896
|
-
(
|
|
1926
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1897
1927
|
const val = payload.value;
|
|
1898
1928
|
return !nullish(val) && val.length !== void 0;
|
|
1899
1929
|
});
|
|
@@ -1920,9 +1950,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
1920
1950
|
};
|
|
1921
1951
|
});
|
|
1922
1952
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
1923
|
-
var
|
|
1953
|
+
var _a2;
|
|
1924
1954
|
$ZodCheck.init(inst, def);
|
|
1925
|
-
(
|
|
1955
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1926
1956
|
const val = payload.value;
|
|
1927
1957
|
return !nullish(val) && val.length !== void 0;
|
|
1928
1958
|
});
|
|
@@ -1951,7 +1981,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
1951
1981
|
};
|
|
1952
1982
|
});
|
|
1953
1983
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
1954
|
-
var
|
|
1984
|
+
var _a2, _b;
|
|
1955
1985
|
$ZodCheck.init(inst, def);
|
|
1956
1986
|
inst._zod.onattach.push((inst2) => {
|
|
1957
1987
|
const bag = inst2._zod.bag;
|
|
@@ -1962,7 +1992,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
1962
1992
|
}
|
|
1963
1993
|
});
|
|
1964
1994
|
if (def.pattern)
|
|
1965
|
-
(
|
|
1995
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
1966
1996
|
def.pattern.lastIndex = 0;
|
|
1967
1997
|
if (def.pattern.test(payload.value))
|
|
1968
1998
|
return;
|
|
@@ -2119,7 +2149,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2119
2149
|
};
|
|
2120
2150
|
});
|
|
2121
2151
|
|
|
2122
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2152
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/doc.js
|
|
2123
2153
|
var Doc = class {
|
|
2124
2154
|
constructor(args = []) {
|
|
2125
2155
|
this.content = [];
|
|
@@ -2155,16 +2185,16 @@ var Doc = class {
|
|
|
2155
2185
|
}
|
|
2156
2186
|
};
|
|
2157
2187
|
|
|
2158
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2188
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
|
|
2159
2189
|
var version = {
|
|
2160
2190
|
major: 4,
|
|
2161
2191
|
minor: 1,
|
|
2162
|
-
patch:
|
|
2192
|
+
patch: 13
|
|
2163
2193
|
};
|
|
2164
2194
|
|
|
2165
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
2195
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
|
|
2166
2196
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2167
|
-
var
|
|
2197
|
+
var _a2;
|
|
2168
2198
|
inst ?? (inst = {});
|
|
2169
2199
|
inst._zod.def = def;
|
|
2170
2200
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2179,7 +2209,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2179
2209
|
}
|
|
2180
2210
|
}
|
|
2181
2211
|
if (checks.length === 0) {
|
|
2182
|
-
(
|
|
2212
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
2183
2213
|
inst._zod.deferred?.push(() => {
|
|
2184
2214
|
inst._zod.run = inst._zod.parse;
|
|
2185
2215
|
});
|
|
@@ -2337,7 +2367,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2337
2367
|
code: "invalid_format",
|
|
2338
2368
|
format: "url",
|
|
2339
2369
|
note: "Invalid hostname",
|
|
2340
|
-
pattern: hostname.source,
|
|
2370
|
+
pattern: def.hostname.source,
|
|
2341
2371
|
input: payload.value,
|
|
2342
2372
|
inst,
|
|
2343
2373
|
continue: !def.abort
|
|
@@ -2422,18 +2452,12 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
|
|
|
2422
2452
|
var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
|
|
2423
2453
|
def.pattern ?? (def.pattern = ipv4);
|
|
2424
2454
|
$ZodStringFormat.init(inst, def);
|
|
2425
|
-
inst._zod.
|
|
2426
|
-
const bag = inst2._zod.bag;
|
|
2427
|
-
bag.format = `ipv4`;
|
|
2428
|
-
});
|
|
2455
|
+
inst._zod.bag.format = `ipv4`;
|
|
2429
2456
|
});
|
|
2430
2457
|
var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
2431
2458
|
def.pattern ?? (def.pattern = ipv6);
|
|
2432
2459
|
$ZodStringFormat.init(inst, def);
|
|
2433
|
-
inst._zod.
|
|
2434
|
-
const bag = inst2._zod.bag;
|
|
2435
|
-
bag.format = `ipv6`;
|
|
2436
|
-
});
|
|
2460
|
+
inst._zod.bag.format = `ipv6`;
|
|
2437
2461
|
inst._zod.check = (payload) => {
|
|
2438
2462
|
try {
|
|
2439
2463
|
new URL(`http://[${payload.value}]`);
|
|
@@ -2448,6 +2472,11 @@ var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
|
|
|
2448
2472
|
}
|
|
2449
2473
|
};
|
|
2450
2474
|
});
|
|
2475
|
+
var $ZodMAC = /* @__PURE__ */ $constructor("$ZodMAC", (inst, def) => {
|
|
2476
|
+
def.pattern ?? (def.pattern = mac(def.delimiter));
|
|
2477
|
+
$ZodStringFormat.init(inst, def);
|
|
2478
|
+
inst._zod.bag.format = `mac`;
|
|
2479
|
+
});
|
|
2451
2480
|
var $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
|
|
2452
2481
|
def.pattern ?? (def.pattern = cidrv4);
|
|
2453
2482
|
$ZodStringFormat.init(inst, def);
|
|
@@ -2495,9 +2524,7 @@ function isValidBase64(data) {
|
|
|
2495
2524
|
var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
2496
2525
|
def.pattern ?? (def.pattern = base64);
|
|
2497
2526
|
$ZodStringFormat.init(inst, def);
|
|
2498
|
-
inst._zod.
|
|
2499
|
-
inst2._zod.bag.contentEncoding = "base64";
|
|
2500
|
-
});
|
|
2527
|
+
inst._zod.bag.contentEncoding = "base64";
|
|
2501
2528
|
inst._zod.check = (payload) => {
|
|
2502
2529
|
if (isValidBase64(payload.value))
|
|
2503
2530
|
return;
|
|
@@ -2520,9 +2547,7 @@ function isValidBase64URL(data) {
|
|
|
2520
2547
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
2521
2548
|
def.pattern ?? (def.pattern = base64url);
|
|
2522
2549
|
$ZodStringFormat.init(inst, def);
|
|
2523
|
-
inst._zod.
|
|
2524
|
-
inst2._zod.bag.contentEncoding = "base64url";
|
|
2525
|
-
});
|
|
2550
|
+
inst._zod.bag.contentEncoding = "base64url";
|
|
2526
2551
|
inst._zod.check = (payload) => {
|
|
2527
2552
|
if (isValidBase64URL(payload.value))
|
|
2528
2553
|
return;
|
|
@@ -2611,7 +2636,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
2611
2636
|
return payload;
|
|
2612
2637
|
};
|
|
2613
2638
|
});
|
|
2614
|
-
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$
|
|
2639
|
+
var $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
|
|
2615
2640
|
$ZodCheckNumberFormat.init(inst, def);
|
|
2616
2641
|
$ZodNumber.init(inst, def);
|
|
2617
2642
|
});
|
|
@@ -2656,7 +2681,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
2656
2681
|
return payload;
|
|
2657
2682
|
};
|
|
2658
2683
|
});
|
|
2659
|
-
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$
|
|
2684
|
+
var $ZodBigIntFormat = /* @__PURE__ */ $constructor("$ZodBigIntFormat", (inst, def) => {
|
|
2660
2685
|
$ZodCheckBigIntFormat.init(inst, def);
|
|
2661
2686
|
$ZodBigInt.init(inst, def);
|
|
2662
2687
|
});
|
|
@@ -2842,7 +2867,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2842
2867
|
const keySet = def.keySet;
|
|
2843
2868
|
const _catchall = def.catchall._zod;
|
|
2844
2869
|
const t = _catchall.def.type;
|
|
2845
|
-
for (const key
|
|
2870
|
+
for (const key in input) {
|
|
2846
2871
|
if (keySet.has(key))
|
|
2847
2872
|
continue;
|
|
2848
2873
|
if (t === "never") {
|
|
@@ -3217,7 +3242,6 @@ function handleIntersectionResults(result, left, right) {
|
|
|
3217
3242
|
var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
3218
3243
|
$ZodType.init(inst, def);
|
|
3219
3244
|
const items = def.items;
|
|
3220
|
-
const optStart = items.length - [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
3221
3245
|
inst._zod.parse = (payload, ctx) => {
|
|
3222
3246
|
const input = payload.value;
|
|
3223
3247
|
if (!Array.isArray(input)) {
|
|
@@ -3231,6 +3255,8 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3231
3255
|
}
|
|
3232
3256
|
payload.value = [];
|
|
3233
3257
|
const proms = [];
|
|
3258
|
+
const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
|
|
3259
|
+
const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
|
|
3234
3260
|
if (!def.rest) {
|
|
3235
3261
|
const tooBig = input.length > items.length;
|
|
3236
3262
|
const tooSmall = input.length < optStart - 1;
|
|
@@ -3301,11 +3327,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3301
3327
|
return payload;
|
|
3302
3328
|
}
|
|
3303
3329
|
const proms = [];
|
|
3304
|
-
|
|
3305
|
-
|
|
3330
|
+
const values = def.keyType._zod.values;
|
|
3331
|
+
if (values) {
|
|
3306
3332
|
payload.value = {};
|
|
3333
|
+
const recordKeys = /* @__PURE__ */ new Set();
|
|
3307
3334
|
for (const key of values) {
|
|
3308
3335
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3336
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3309
3337
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3310
3338
|
if (result instanceof Promise) {
|
|
3311
3339
|
proms.push(result.then((result2) => {
|
|
@@ -3324,7 +3352,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3324
3352
|
}
|
|
3325
3353
|
let unrecognized;
|
|
3326
3354
|
for (const key in input) {
|
|
3327
|
-
if (!
|
|
3355
|
+
if (!recordKeys.has(key)) {
|
|
3328
3356
|
unrecognized = unrecognized ?? [];
|
|
3329
3357
|
unrecognized.push(key);
|
|
3330
3358
|
}
|
|
@@ -3499,11 +3527,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
3499
3527
|
if (def.values.length === 0) {
|
|
3500
3528
|
throw new Error("Cannot create literal schema with no valid values");
|
|
3501
3529
|
}
|
|
3502
|
-
|
|
3530
|
+
const values = new Set(def.values);
|
|
3531
|
+
inst._zod.values = values;
|
|
3503
3532
|
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
3504
3533
|
inst._zod.parse = (payload, _ctx) => {
|
|
3505
3534
|
const input = payload.value;
|
|
3506
|
-
if (
|
|
3535
|
+
if (values.has(input)) {
|
|
3507
3536
|
return payload;
|
|
3508
3537
|
}
|
|
3509
3538
|
payload.issues.push({
|
|
@@ -3816,8 +3845,8 @@ var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
|
3816
3845
|
$ZodType.init(inst, def);
|
|
3817
3846
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
3818
3847
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3819
|
-
defineLazy(inst._zod, "optin", () => def.innerType
|
|
3820
|
-
defineLazy(inst._zod, "optout", () => def.innerType
|
|
3848
|
+
defineLazy(inst._zod, "optin", () => def.innerType?._zod?.optin);
|
|
3849
|
+
defineLazy(inst._zod, "optout", () => def.innerType?._zod?.optout);
|
|
3821
3850
|
inst._zod.parse = (payload, ctx) => {
|
|
3822
3851
|
if (ctx.direction === "backward") {
|
|
3823
3852
|
return def.innerType._zod.run(payload, ctx);
|
|
@@ -3964,10 +3993,10 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
3964
3993
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
3965
3994
|
$ZodType.init(inst, def);
|
|
3966
3995
|
defineLazy(inst._zod, "innerType", () => def.getter());
|
|
3967
|
-
defineLazy(inst._zod, "pattern", () => inst._zod.innerType
|
|
3968
|
-
defineLazy(inst._zod, "propValues", () => inst._zod.innerType
|
|
3969
|
-
defineLazy(inst._zod, "optin", () => inst._zod.innerType
|
|
3970
|
-
defineLazy(inst._zod, "optout", () => inst._zod.innerType
|
|
3996
|
+
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
3997
|
+
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
3998
|
+
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
3999
|
+
defineLazy(inst._zod, "optout", () => inst._zod.innerType?._zod?.optout ?? void 0);
|
|
3971
4000
|
inst._zod.parse = (payload, ctx) => {
|
|
3972
4001
|
const inner = inst._zod.innerType;
|
|
3973
4002
|
return inner._zod.run(payload, ctx);
|
|
@@ -4007,7 +4036,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4007
4036
|
}
|
|
4008
4037
|
}
|
|
4009
4038
|
|
|
4010
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4039
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/index.js
|
|
4011
4040
|
var locales_exports = {};
|
|
4012
4041
|
__export(locales_exports, {
|
|
4013
4042
|
ar: () => ar_default,
|
|
@@ -4059,7 +4088,7 @@ __export(locales_exports, {
|
|
|
4059
4088
|
zhTW: () => zh_TW_default
|
|
4060
4089
|
});
|
|
4061
4090
|
|
|
4062
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4091
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ar.js
|
|
4063
4092
|
var error = () => {
|
|
4064
4093
|
const Sizable = {
|
|
4065
4094
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4176,7 +4205,7 @@ function ar_default() {
|
|
|
4176
4205
|
};
|
|
4177
4206
|
}
|
|
4178
4207
|
|
|
4179
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4208
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/az.js
|
|
4180
4209
|
var error2 = () => {
|
|
4181
4210
|
const Sizable = {
|
|
4182
4211
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4292,7 +4321,7 @@ function az_default() {
|
|
|
4292
4321
|
};
|
|
4293
4322
|
}
|
|
4294
4323
|
|
|
4295
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4324
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/be.js
|
|
4296
4325
|
function getBelarusianPlural(count, one, few, many) {
|
|
4297
4326
|
const absCount = Math.abs(count);
|
|
4298
4327
|
const lastDigit = absCount % 10;
|
|
@@ -4457,7 +4486,7 @@ function be_default() {
|
|
|
4457
4486
|
};
|
|
4458
4487
|
}
|
|
4459
4488
|
|
|
4460
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4489
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/bg.js
|
|
4461
4490
|
var parsedType = (data) => {
|
|
4462
4491
|
const t = typeof data;
|
|
4463
4492
|
switch (t) {
|
|
@@ -4586,7 +4615,7 @@ function bg_default() {
|
|
|
4586
4615
|
};
|
|
4587
4616
|
}
|
|
4588
4617
|
|
|
4589
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4618
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ca.js
|
|
4590
4619
|
var error5 = () => {
|
|
4591
4620
|
const Sizable = {
|
|
4592
4621
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4706,7 +4735,7 @@ function ca_default() {
|
|
|
4706
4735
|
};
|
|
4707
4736
|
}
|
|
4708
4737
|
|
|
4709
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4738
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/cs.js
|
|
4710
4739
|
var error6 = () => {
|
|
4711
4740
|
const Sizable = {
|
|
4712
4741
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -4842,7 +4871,7 @@ function cs_default() {
|
|
|
4842
4871
|
};
|
|
4843
4872
|
}
|
|
4844
4873
|
|
|
4845
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
4874
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/da.js
|
|
4846
4875
|
var error7 = () => {
|
|
4847
4876
|
const Sizable = {
|
|
4848
4877
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -4974,7 +5003,7 @@ function da_default() {
|
|
|
4974
5003
|
};
|
|
4975
5004
|
}
|
|
4976
5005
|
|
|
4977
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5006
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/de.js
|
|
4978
5007
|
var error8 = () => {
|
|
4979
5008
|
const Sizable = {
|
|
4980
5009
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5091,7 +5120,7 @@ function de_default() {
|
|
|
5091
5120
|
};
|
|
5092
5121
|
}
|
|
5093
5122
|
|
|
5094
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5123
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/en.js
|
|
5095
5124
|
var parsedType2 = (data) => {
|
|
5096
5125
|
const t = typeof data;
|
|
5097
5126
|
switch (t) {
|
|
@@ -5143,6 +5172,7 @@ var error9 = () => {
|
|
|
5143
5172
|
duration: "ISO duration",
|
|
5144
5173
|
ipv4: "IPv4 address",
|
|
5145
5174
|
ipv6: "IPv6 address",
|
|
5175
|
+
mac: "MAC address",
|
|
5146
5176
|
cidrv4: "IPv4 range",
|
|
5147
5177
|
cidrv6: "IPv6 range",
|
|
5148
5178
|
base64: "base64-encoded string",
|
|
@@ -5209,7 +5239,7 @@ function en_default() {
|
|
|
5209
5239
|
};
|
|
5210
5240
|
}
|
|
5211
5241
|
|
|
5212
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5242
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/eo.js
|
|
5213
5243
|
var parsedType3 = (data) => {
|
|
5214
5244
|
const t = typeof data;
|
|
5215
5245
|
switch (t) {
|
|
@@ -5326,7 +5356,7 @@ function eo_default() {
|
|
|
5326
5356
|
};
|
|
5327
5357
|
}
|
|
5328
5358
|
|
|
5329
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5359
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/es.js
|
|
5330
5360
|
var error11 = () => {
|
|
5331
5361
|
const Sizable = {
|
|
5332
5362
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5476,7 +5506,7 @@ function es_default() {
|
|
|
5476
5506
|
};
|
|
5477
5507
|
}
|
|
5478
5508
|
|
|
5479
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5509
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fa.js
|
|
5480
5510
|
var error12 = () => {
|
|
5481
5511
|
const Sizable = {
|
|
5482
5512
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5599,7 +5629,7 @@ function fa_default() {
|
|
|
5599
5629
|
};
|
|
5600
5630
|
}
|
|
5601
5631
|
|
|
5602
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5632
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fi.js
|
|
5603
5633
|
var error13 = () => {
|
|
5604
5634
|
const Sizable = {
|
|
5605
5635
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -5722,7 +5752,7 @@ function fi_default() {
|
|
|
5722
5752
|
};
|
|
5723
5753
|
}
|
|
5724
5754
|
|
|
5725
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5755
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr.js
|
|
5726
5756
|
var error14 = () => {
|
|
5727
5757
|
const Sizable = {
|
|
5728
5758
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5839,7 +5869,7 @@ function fr_default() {
|
|
|
5839
5869
|
};
|
|
5840
5870
|
}
|
|
5841
5871
|
|
|
5842
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5872
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/fr-CA.js
|
|
5843
5873
|
var error15 = () => {
|
|
5844
5874
|
const Sizable = {
|
|
5845
5875
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5957,113 +5987,203 @@ function fr_CA_default() {
|
|
|
5957
5987
|
};
|
|
5958
5988
|
}
|
|
5959
5989
|
|
|
5960
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
5990
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/he.js
|
|
5961
5991
|
var error16 = () => {
|
|
5962
|
-
const
|
|
5963
|
-
string: {
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5992
|
+
const TypeNames = {
|
|
5993
|
+
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
5994
|
+
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
5995
|
+
boolean: { label: "\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9", gender: "m" },
|
|
5996
|
+
bigint: { label: "BigInt", gender: "m" },
|
|
5997
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA", gender: "m" },
|
|
5998
|
+
array: { label: "\u05DE\u05E2\u05E8\u05DA", gender: "m" },
|
|
5999
|
+
object: { label: "\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8", gender: "m" },
|
|
6000
|
+
null: { label: "\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)", gender: "m" },
|
|
6001
|
+
undefined: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)", gender: "m" },
|
|
6002
|
+
symbol: { label: "\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)", gender: "m" },
|
|
6003
|
+
function: { label: "\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4", gender: "f" },
|
|
6004
|
+
map: { label: "\u05DE\u05E4\u05D4 (Map)", gender: "f" },
|
|
6005
|
+
set: { label: "\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)", gender: "f" },
|
|
6006
|
+
file: { label: "\u05E7\u05D5\u05D1\u05E5", gender: "m" },
|
|
6007
|
+
promise: { label: "Promise", gender: "m" },
|
|
6008
|
+
NaN: { label: "NaN", gender: "m" },
|
|
6009
|
+
unknown: { label: "\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2", gender: "m" },
|
|
6010
|
+
value: { label: "\u05E2\u05E8\u05DA", gender: "m" }
|
|
5967
6011
|
};
|
|
5968
|
-
|
|
6012
|
+
const Sizable = {
|
|
6013
|
+
string: { unit: "\u05EA\u05D5\u05D5\u05D9\u05DD", shortLabel: "\u05E7\u05E6\u05E8", longLabel: "\u05D0\u05E8\u05D5\u05DA" },
|
|
6014
|
+
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6015
|
+
array: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6016
|
+
set: { unit: "\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" },
|
|
6017
|
+
number: { unit: "", shortLabel: "\u05E7\u05D8\u05DF", longLabel: "\u05D2\u05D3\u05D5\u05DC" }
|
|
6018
|
+
// no unit
|
|
6019
|
+
};
|
|
6020
|
+
const typeEntry = (t) => t ? TypeNames[t] : void 0;
|
|
6021
|
+
const typeLabel = (t) => {
|
|
6022
|
+
const e = typeEntry(t);
|
|
6023
|
+
if (e)
|
|
6024
|
+
return e.label;
|
|
6025
|
+
return t ?? TypeNames.unknown.label;
|
|
6026
|
+
};
|
|
6027
|
+
const withDefinite = (t) => `\u05D4${typeLabel(t)}`;
|
|
6028
|
+
const verbFor = (t) => {
|
|
6029
|
+
const e = typeEntry(t);
|
|
6030
|
+
const gender = e?.gender ?? "m";
|
|
6031
|
+
return gender === "f" ? "\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA" : "\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA";
|
|
6032
|
+
};
|
|
6033
|
+
const getSizing = (origin) => {
|
|
6034
|
+
if (!origin)
|
|
6035
|
+
return null;
|
|
5969
6036
|
return Sizable[origin] ?? null;
|
|
5970
|
-
}
|
|
6037
|
+
};
|
|
5971
6038
|
const parsedType8 = (data) => {
|
|
5972
6039
|
const t = typeof data;
|
|
5973
6040
|
switch (t) {
|
|
5974
|
-
case "number":
|
|
6041
|
+
case "number":
|
|
5975
6042
|
return Number.isNaN(data) ? "NaN" : "number";
|
|
5976
|
-
}
|
|
5977
6043
|
case "object": {
|
|
5978
|
-
if (Array.isArray(data))
|
|
6044
|
+
if (Array.isArray(data))
|
|
5979
6045
|
return "array";
|
|
5980
|
-
|
|
5981
|
-
if (data === null) {
|
|
6046
|
+
if (data === null)
|
|
5982
6047
|
return "null";
|
|
5983
|
-
}
|
|
5984
6048
|
if (Object.getPrototypeOf(data) !== Object.prototype && data.constructor) {
|
|
5985
6049
|
return data.constructor.name;
|
|
5986
6050
|
}
|
|
6051
|
+
return "object";
|
|
5987
6052
|
}
|
|
6053
|
+
default:
|
|
6054
|
+
return t;
|
|
5988
6055
|
}
|
|
5989
|
-
return t;
|
|
5990
6056
|
};
|
|
5991
6057
|
const Nouns = {
|
|
5992
|
-
regex: "\u05E7\u05DC\u05D8",
|
|
5993
|
-
email: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",
|
|
5994
|
-
url: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",
|
|
5995
|
-
emoji: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",
|
|
5996
|
-
uuid: "UUID",
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6058
|
+
regex: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6059
|
+
email: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC", gender: "f" },
|
|
6060
|
+
url: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
6061
|
+
emoji: { label: "\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9", gender: "m" },
|
|
6062
|
+
uuid: { label: "UUID", gender: "m" },
|
|
6063
|
+
nanoid: { label: "nanoid", gender: "m" },
|
|
6064
|
+
guid: { label: "GUID", gender: "m" },
|
|
6065
|
+
cuid: { label: "cuid", gender: "m" },
|
|
6066
|
+
cuid2: { label: "cuid2", gender: "m" },
|
|
6067
|
+
ulid: { label: "ULID", gender: "m" },
|
|
6068
|
+
xid: { label: "XID", gender: "m" },
|
|
6069
|
+
ksuid: { label: "KSUID", gender: "m" },
|
|
6070
|
+
datetime: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6071
|
+
date: { label: "\u05EA\u05D0\u05E8\u05D9\u05DA ISO", gender: "m" },
|
|
6072
|
+
time: { label: "\u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6073
|
+
duration: { label: "\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO", gender: "m" },
|
|
6074
|
+
ipv4: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv4", gender: "f" },
|
|
6075
|
+
ipv6: { label: "\u05DB\u05EA\u05D5\u05D1\u05EA IPv6", gender: "f" },
|
|
6076
|
+
cidrv4: { label: "\u05D8\u05D5\u05D5\u05D7 IPv4", gender: "m" },
|
|
6077
|
+
cidrv6: { label: "\u05D8\u05D5\u05D5\u05D7 IPv6", gender: "m" },
|
|
6078
|
+
base64: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64", gender: "f" },
|
|
6079
|
+
base64url: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA", gender: "f" },
|
|
6080
|
+
json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
|
|
6081
|
+
e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
|
|
6082
|
+
jwt: { label: "JWT", gender: "m" },
|
|
6083
|
+
ends_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6084
|
+
includes: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6085
|
+
lowercase: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6086
|
+
starts_with: { label: "\u05E7\u05DC\u05D8", gender: "m" },
|
|
6087
|
+
uppercase: { label: "\u05E7\u05DC\u05D8", gender: "m" }
|
|
6020
6088
|
};
|
|
6021
6089
|
return (issue2) => {
|
|
6022
6090
|
switch (issue2.code) {
|
|
6023
|
-
case "invalid_type":
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6091
|
+
case "invalid_type": {
|
|
6092
|
+
const expectedKey = issue2.expected;
|
|
6093
|
+
const expected = typeLabel(expectedKey);
|
|
6094
|
+
const receivedKey = parsedType8(issue2.input);
|
|
6095
|
+
const received = TypeNames[receivedKey]?.label ?? receivedKey;
|
|
6096
|
+
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`;
|
|
6097
|
+
}
|
|
6098
|
+
case "invalid_value": {
|
|
6099
|
+
if (issue2.values.length === 1) {
|
|
6100
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`;
|
|
6101
|
+
}
|
|
6102
|
+
const stringified = issue2.values.map((v) => stringifyPrimitive(v));
|
|
6103
|
+
if (issue2.values.length === 2) {
|
|
6104
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`;
|
|
6105
|
+
}
|
|
6106
|
+
const lastValue = stringified[stringified.length - 1];
|
|
6107
|
+
const restValues = stringified.slice(0, -1).join(", ");
|
|
6108
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${restValues} \u05D0\u05D5 ${lastValue}`;
|
|
6109
|
+
}
|
|
6030
6110
|
case "too_big": {
|
|
6031
|
-
const adj = issue2.inclusive ? "<=" : "<";
|
|
6032
6111
|
const sizing = getSizing(issue2.origin);
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6112
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
6113
|
+
if (issue2.origin === "string") {
|
|
6114
|
+
return `${sizing?.longLabel ?? "\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA" : "\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();
|
|
6115
|
+
}
|
|
6116
|
+
if (issue2.origin === "number") {
|
|
6117
|
+
const comparison = issue2.inclusive ? `\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}` : `\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;
|
|
6118
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
6119
|
+
}
|
|
6120
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
6121
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
6122
|
+
const comparison = issue2.inclusive ? `${issue2.maximum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA` : `\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${sizing?.unit ?? ""}`;
|
|
6123
|
+
return `\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
6124
|
+
}
|
|
6125
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6126
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
6127
|
+
if (sizing?.unit) {
|
|
6128
|
+
return `${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`;
|
|
6129
|
+
}
|
|
6130
|
+
return `${sizing?.longLabel ?? "\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`;
|
|
6036
6131
|
}
|
|
6037
6132
|
case "too_small": {
|
|
6038
|
-
const adj = issue2.inclusive ? ">=" : ">";
|
|
6039
6133
|
const sizing = getSizing(issue2.origin);
|
|
6040
|
-
|
|
6041
|
-
|
|
6134
|
+
const subject = withDefinite(issue2.origin ?? "value");
|
|
6135
|
+
if (issue2.origin === "string") {
|
|
6136
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${sizing?.unit ?? ""} ${issue2.inclusive ? "\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8" : "\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();
|
|
6137
|
+
}
|
|
6138
|
+
if (issue2.origin === "number") {
|
|
6139
|
+
const comparison = issue2.inclusive ? `\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}` : `\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;
|
|
6140
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`;
|
|
6141
|
+
}
|
|
6142
|
+
if (issue2.origin === "array" || issue2.origin === "set") {
|
|
6143
|
+
const verb = issue2.origin === "set" ? "\u05E6\u05E8\u05D9\u05DB\u05D4" : "\u05E6\u05E8\u05D9\u05DA";
|
|
6144
|
+
if (issue2.minimum === 1 && issue2.inclusive) {
|
|
6145
|
+
const singularPhrase = issue2.origin === "set" ? "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3" : "\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3";
|
|
6146
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`;
|
|
6147
|
+
}
|
|
6148
|
+
const comparison = issue2.inclusive ? `${issue2.minimum} ${sizing?.unit ?? ""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8` : `\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${sizing?.unit ?? ""}`;
|
|
6149
|
+
return `\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim();
|
|
6042
6150
|
}
|
|
6043
|
-
|
|
6151
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6152
|
+
const be = verbFor(issue2.origin ?? "value");
|
|
6153
|
+
if (sizing?.unit) {
|
|
6154
|
+
return `${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6155
|
+
}
|
|
6156
|
+
return `${sizing?.shortLabel ?? "\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`;
|
|
6044
6157
|
}
|
|
6045
6158
|
case "invalid_format": {
|
|
6046
6159
|
const _issue = issue2;
|
|
6047
6160
|
if (_issue.format === "starts_with")
|
|
6048
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6161
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;
|
|
6049
6162
|
if (_issue.format === "ends_with")
|
|
6050
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6163
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;
|
|
6051
6164
|
if (_issue.format === "includes")
|
|
6052
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6165
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;
|
|
6053
6166
|
if (_issue.format === "regex")
|
|
6054
|
-
return `\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \
|
|
6055
|
-
|
|
6167
|
+
return `\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;
|
|
6168
|
+
const nounEntry = Nouns[_issue.format];
|
|
6169
|
+
const noun = nounEntry?.label ?? _issue.format;
|
|
6170
|
+
const gender = nounEntry?.gender ?? "m";
|
|
6171
|
+
const adjective = gender === "f" ? "\u05EA\u05E7\u05D9\u05E0\u05D4" : "\u05EA\u05E7\u05D9\u05DF";
|
|
6172
|
+
return `${noun} \u05DC\u05D0 ${adjective}`;
|
|
6056
6173
|
}
|
|
6057
6174
|
case "not_multiple_of":
|
|
6058
6175
|
return `\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;
|
|
6059
6176
|
case "unrecognized_keys":
|
|
6060
6177
|
return `\u05DE\u05E4\u05EA\u05D7${issue2.keys.length > 1 ? "\u05D5\u05EA" : ""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length > 1 ? "\u05D9\u05DD" : "\u05D4"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6061
|
-
case "invalid_key":
|
|
6062
|
-
return `\
|
|
6178
|
+
case "invalid_key": {
|
|
6179
|
+
return `\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8`;
|
|
6180
|
+
}
|
|
6063
6181
|
case "invalid_union":
|
|
6064
6182
|
return "\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";
|
|
6065
|
-
case "invalid_element":
|
|
6066
|
-
|
|
6183
|
+
case "invalid_element": {
|
|
6184
|
+
const place = withDefinite(issue2.origin ?? "array");
|
|
6185
|
+
return `\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${place}`;
|
|
6186
|
+
}
|
|
6067
6187
|
default:
|
|
6068
6188
|
return `\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF`;
|
|
6069
6189
|
}
|
|
@@ -6075,7 +6195,7 @@ function he_default() {
|
|
|
6075
6195
|
};
|
|
6076
6196
|
}
|
|
6077
6197
|
|
|
6078
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6198
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/hu.js
|
|
6079
6199
|
var error17 = () => {
|
|
6080
6200
|
const Sizable = {
|
|
6081
6201
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6193,7 +6313,7 @@ function hu_default() {
|
|
|
6193
6313
|
};
|
|
6194
6314
|
}
|
|
6195
6315
|
|
|
6196
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6316
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/id.js
|
|
6197
6317
|
var error18 = () => {
|
|
6198
6318
|
const Sizable = {
|
|
6199
6319
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6310,7 +6430,7 @@ function id_default() {
|
|
|
6310
6430
|
};
|
|
6311
6431
|
}
|
|
6312
6432
|
|
|
6313
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6433
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/is.js
|
|
6314
6434
|
var parsedType4 = (data) => {
|
|
6315
6435
|
const t = typeof data;
|
|
6316
6436
|
switch (t) {
|
|
@@ -6428,7 +6548,7 @@ function is_default() {
|
|
|
6428
6548
|
};
|
|
6429
6549
|
}
|
|
6430
6550
|
|
|
6431
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6551
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/it.js
|
|
6432
6552
|
var error20 = () => {
|
|
6433
6553
|
const Sizable = {
|
|
6434
6554
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -6546,7 +6666,7 @@ function it_default() {
|
|
|
6546
6666
|
};
|
|
6547
6667
|
}
|
|
6548
6668
|
|
|
6549
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6669
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ja.js
|
|
6550
6670
|
var error21 = () => {
|
|
6551
6671
|
const Sizable = {
|
|
6552
6672
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -6662,7 +6782,7 @@ function ja_default() {
|
|
|
6662
6782
|
};
|
|
6663
6783
|
}
|
|
6664
6784
|
|
|
6665
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6785
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ka.js
|
|
6666
6786
|
var parsedType5 = (data) => {
|
|
6667
6787
|
const t = typeof data;
|
|
6668
6788
|
switch (t) {
|
|
@@ -6788,7 +6908,7 @@ function ka_default() {
|
|
|
6788
6908
|
};
|
|
6789
6909
|
}
|
|
6790
6910
|
|
|
6791
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
6911
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/km.js
|
|
6792
6912
|
var error23 = () => {
|
|
6793
6913
|
const Sizable = {
|
|
6794
6914
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -6906,12 +7026,12 @@ function km_default() {
|
|
|
6906
7026
|
};
|
|
6907
7027
|
}
|
|
6908
7028
|
|
|
6909
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7029
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/kh.js
|
|
6910
7030
|
function kh_default() {
|
|
6911
7031
|
return km_default();
|
|
6912
7032
|
}
|
|
6913
7033
|
|
|
6914
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7034
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ko.js
|
|
6915
7035
|
var error24 = () => {
|
|
6916
7036
|
const Sizable = {
|
|
6917
7037
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -7033,7 +7153,7 @@ function ko_default() {
|
|
|
7033
7153
|
};
|
|
7034
7154
|
}
|
|
7035
7155
|
|
|
7036
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7156
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/lt.js
|
|
7037
7157
|
var parsedType6 = (data) => {
|
|
7038
7158
|
const t = typeof data;
|
|
7039
7159
|
return parsedTypeFromType(t, data);
|
|
@@ -7264,7 +7384,7 @@ function lt_default() {
|
|
|
7264
7384
|
};
|
|
7265
7385
|
}
|
|
7266
7386
|
|
|
7267
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7387
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/mk.js
|
|
7268
7388
|
var error26 = () => {
|
|
7269
7389
|
const Sizable = {
|
|
7270
7390
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7383,7 +7503,7 @@ function mk_default() {
|
|
|
7383
7503
|
};
|
|
7384
7504
|
}
|
|
7385
7505
|
|
|
7386
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7506
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ms.js
|
|
7387
7507
|
var error27 = () => {
|
|
7388
7508
|
const Sizable = {
|
|
7389
7509
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -7500,13 +7620,13 @@ function ms_default() {
|
|
|
7500
7620
|
};
|
|
7501
7621
|
}
|
|
7502
7622
|
|
|
7503
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7623
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/nl.js
|
|
7504
7624
|
var error28 = () => {
|
|
7505
7625
|
const Sizable = {
|
|
7506
|
-
string: { unit: "tekens" },
|
|
7507
|
-
file: { unit: "bytes" },
|
|
7508
|
-
array: { unit: "elementen" },
|
|
7509
|
-
set: { unit: "elementen" }
|
|
7626
|
+
string: { unit: "tekens", verb: "te hebben" },
|
|
7627
|
+
file: { unit: "bytes", verb: "te hebben" },
|
|
7628
|
+
array: { unit: "elementen", verb: "te hebben" },
|
|
7629
|
+
set: { unit: "elementen", verb: "te hebben" }
|
|
7510
7630
|
};
|
|
7511
7631
|
function getSizing(origin) {
|
|
7512
7632
|
return Sizable[origin] ?? null;
|
|
@@ -7573,16 +7693,16 @@ var error28 = () => {
|
|
|
7573
7693
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
7574
7694
|
const sizing = getSizing(issue2.origin);
|
|
7575
7695
|
if (sizing)
|
|
7576
|
-
return `Te
|
|
7577
|
-
return `Te
|
|
7696
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elementen"}`;
|
|
7697
|
+
return `Te groot: verwacht dat ${issue2.origin ?? "waarde"} ${adj}${issue2.maximum.toString()} is`;
|
|
7578
7698
|
}
|
|
7579
7699
|
case "too_small": {
|
|
7580
7700
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
7581
7701
|
const sizing = getSizing(issue2.origin);
|
|
7582
7702
|
if (sizing) {
|
|
7583
|
-
return `Te
|
|
7703
|
+
return `Te klein: verwacht dat ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
7584
7704
|
}
|
|
7585
|
-
return `Te
|
|
7705
|
+
return `Te klein: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`;
|
|
7586
7706
|
}
|
|
7587
7707
|
case "invalid_format": {
|
|
7588
7708
|
const _issue = issue2;
|
|
@@ -7618,7 +7738,7 @@ function nl_default() {
|
|
|
7618
7738
|
};
|
|
7619
7739
|
}
|
|
7620
7740
|
|
|
7621
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7741
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/no.js
|
|
7622
7742
|
var error29 = () => {
|
|
7623
7743
|
const Sizable = {
|
|
7624
7744
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -7735,7 +7855,7 @@ function no_default() {
|
|
|
7735
7855
|
};
|
|
7736
7856
|
}
|
|
7737
7857
|
|
|
7738
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7858
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ota.js
|
|
7739
7859
|
var error30 = () => {
|
|
7740
7860
|
const Sizable = {
|
|
7741
7861
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7853,7 +7973,7 @@ function ota_default() {
|
|
|
7853
7973
|
};
|
|
7854
7974
|
}
|
|
7855
7975
|
|
|
7856
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
7976
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ps.js
|
|
7857
7977
|
var error31 = () => {
|
|
7858
7978
|
const Sizable = {
|
|
7859
7979
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -7976,7 +8096,7 @@ function ps_default() {
|
|
|
7976
8096
|
};
|
|
7977
8097
|
}
|
|
7978
8098
|
|
|
7979
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8099
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pl.js
|
|
7980
8100
|
var error32 = () => {
|
|
7981
8101
|
const Sizable = {
|
|
7982
8102
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -8094,7 +8214,7 @@ function pl_default() {
|
|
|
8094
8214
|
};
|
|
8095
8215
|
}
|
|
8096
8216
|
|
|
8097
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8217
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/pt.js
|
|
8098
8218
|
var error33 = () => {
|
|
8099
8219
|
const Sizable = {
|
|
8100
8220
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8211,7 +8331,7 @@ function pt_default() {
|
|
|
8211
8331
|
};
|
|
8212
8332
|
}
|
|
8213
8333
|
|
|
8214
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8334
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ru.js
|
|
8215
8335
|
function getRussianPlural(count, one, few, many) {
|
|
8216
8336
|
const absCount = Math.abs(count);
|
|
8217
8337
|
const lastDigit = absCount % 10;
|
|
@@ -8376,7 +8496,7 @@ function ru_default() {
|
|
|
8376
8496
|
};
|
|
8377
8497
|
}
|
|
8378
8498
|
|
|
8379
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8499
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sl.js
|
|
8380
8500
|
var error35 = () => {
|
|
8381
8501
|
const Sizable = {
|
|
8382
8502
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -8494,7 +8614,7 @@ function sl_default() {
|
|
|
8494
8614
|
};
|
|
8495
8615
|
}
|
|
8496
8616
|
|
|
8497
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8617
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/sv.js
|
|
8498
8618
|
var error36 = () => {
|
|
8499
8619
|
const Sizable = {
|
|
8500
8620
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -8613,7 +8733,7 @@ function sv_default() {
|
|
|
8613
8733
|
};
|
|
8614
8734
|
}
|
|
8615
8735
|
|
|
8616
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8736
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ta.js
|
|
8617
8737
|
var error37 = () => {
|
|
8618
8738
|
const Sizable = {
|
|
8619
8739
|
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" },
|
|
@@ -8731,7 +8851,7 @@ function ta_default() {
|
|
|
8731
8851
|
};
|
|
8732
8852
|
}
|
|
8733
8853
|
|
|
8734
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8854
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/th.js
|
|
8735
8855
|
var error38 = () => {
|
|
8736
8856
|
const Sizable = {
|
|
8737
8857
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8849,7 +8969,7 @@ function th_default() {
|
|
|
8849
8969
|
};
|
|
8850
8970
|
}
|
|
8851
8971
|
|
|
8852
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
8972
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/tr.js
|
|
8853
8973
|
var parsedType7 = (data) => {
|
|
8854
8974
|
const t = typeof data;
|
|
8855
8975
|
switch (t) {
|
|
@@ -8965,7 +9085,7 @@ function tr_default() {
|
|
|
8965
9085
|
};
|
|
8966
9086
|
}
|
|
8967
9087
|
|
|
8968
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9088
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/uk.js
|
|
8969
9089
|
var error40 = () => {
|
|
8970
9090
|
const Sizable = {
|
|
8971
9091
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9083,12 +9203,12 @@ function uk_default() {
|
|
|
9083
9203
|
};
|
|
9084
9204
|
}
|
|
9085
9205
|
|
|
9086
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9206
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ua.js
|
|
9087
9207
|
function ua_default() {
|
|
9088
9208
|
return uk_default();
|
|
9089
9209
|
}
|
|
9090
9210
|
|
|
9091
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9211
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/ur.js
|
|
9092
9212
|
var error41 = () => {
|
|
9093
9213
|
const Sizable = {
|
|
9094
9214
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9206,7 +9326,7 @@ function ur_default() {
|
|
|
9206
9326
|
};
|
|
9207
9327
|
}
|
|
9208
9328
|
|
|
9209
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9329
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/vi.js
|
|
9210
9330
|
var error42 = () => {
|
|
9211
9331
|
const Sizable = {
|
|
9212
9332
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -9323,7 +9443,7 @@ function vi_default() {
|
|
|
9323
9443
|
};
|
|
9324
9444
|
}
|
|
9325
9445
|
|
|
9326
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9446
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-CN.js
|
|
9327
9447
|
var error43 = () => {
|
|
9328
9448
|
const Sizable = {
|
|
9329
9449
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -9440,7 +9560,7 @@ function zh_CN_default() {
|
|
|
9440
9560
|
};
|
|
9441
9561
|
}
|
|
9442
9562
|
|
|
9443
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9563
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/zh-TW.js
|
|
9444
9564
|
var error44 = () => {
|
|
9445
9565
|
const Sizable = {
|
|
9446
9566
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -9558,7 +9678,7 @@ function zh_TW_default() {
|
|
|
9558
9678
|
};
|
|
9559
9679
|
}
|
|
9560
9680
|
|
|
9561
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9681
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/locales/yo.js
|
|
9562
9682
|
var error45 = () => {
|
|
9563
9683
|
const Sizable = {
|
|
9564
9684
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -9674,7 +9794,8 @@ function yo_default() {
|
|
|
9674
9794
|
};
|
|
9675
9795
|
}
|
|
9676
9796
|
|
|
9677
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9797
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
|
|
9798
|
+
var _a;
|
|
9678
9799
|
var $output = Symbol("ZodOutput");
|
|
9679
9800
|
var $input = Symbol("ZodInput");
|
|
9680
9801
|
var $ZodRegistry = class {
|
|
@@ -9683,13 +9804,13 @@ var $ZodRegistry = class {
|
|
|
9683
9804
|
this._idmap = /* @__PURE__ */ new Map();
|
|
9684
9805
|
}
|
|
9685
9806
|
add(schema, ..._meta) {
|
|
9686
|
-
const
|
|
9687
|
-
this._map.set(schema,
|
|
9688
|
-
if (
|
|
9689
|
-
if (this._idmap.has(
|
|
9690
|
-
throw new Error(`ID ${
|
|
9807
|
+
const meta3 = _meta[0];
|
|
9808
|
+
this._map.set(schema, meta3);
|
|
9809
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
9810
|
+
if (this._idmap.has(meta3.id)) {
|
|
9811
|
+
throw new Error(`ID ${meta3.id} already exists in the registry`);
|
|
9691
9812
|
}
|
|
9692
|
-
this._idmap.set(
|
|
9813
|
+
this._idmap.set(meta3.id, schema);
|
|
9693
9814
|
}
|
|
9694
9815
|
return this;
|
|
9695
9816
|
}
|
|
@@ -9699,9 +9820,9 @@ var $ZodRegistry = class {
|
|
|
9699
9820
|
return this;
|
|
9700
9821
|
}
|
|
9701
9822
|
remove(schema) {
|
|
9702
|
-
const
|
|
9703
|
-
if (
|
|
9704
|
-
this._idmap.delete(
|
|
9823
|
+
const meta3 = this._map.get(schema);
|
|
9824
|
+
if (meta3 && typeof meta3 === "object" && "id" in meta3) {
|
|
9825
|
+
this._idmap.delete(meta3.id);
|
|
9705
9826
|
}
|
|
9706
9827
|
this._map.delete(schema);
|
|
9707
9828
|
return this;
|
|
@@ -9723,9 +9844,10 @@ var $ZodRegistry = class {
|
|
|
9723
9844
|
function registry() {
|
|
9724
9845
|
return new $ZodRegistry();
|
|
9725
9846
|
}
|
|
9726
|
-
|
|
9847
|
+
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
9848
|
+
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9727
9849
|
|
|
9728
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
9850
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
|
|
9729
9851
|
function _string(Class2, params) {
|
|
9730
9852
|
return new Class2({
|
|
9731
9853
|
type: "string",
|
|
@@ -9886,6 +10008,15 @@ function _ipv6(Class2, params) {
|
|
|
9886
10008
|
...normalizeParams(params)
|
|
9887
10009
|
});
|
|
9888
10010
|
}
|
|
10011
|
+
function _mac(Class2, params) {
|
|
10012
|
+
return new Class2({
|
|
10013
|
+
type: "string",
|
|
10014
|
+
format: "mac",
|
|
10015
|
+
check: "string_format",
|
|
10016
|
+
abort: false,
|
|
10017
|
+
...normalizeParams(params)
|
|
10018
|
+
});
|
|
10019
|
+
}
|
|
9889
10020
|
function _cidrv4(Class2, params) {
|
|
9890
10021
|
return new Class2({
|
|
9891
10022
|
type: "string",
|
|
@@ -10319,6 +10450,9 @@ function _toLowerCase() {
|
|
|
10319
10450
|
function _toUpperCase() {
|
|
10320
10451
|
return _overwrite((input) => input.toUpperCase());
|
|
10321
10452
|
}
|
|
10453
|
+
function _slugify() {
|
|
10454
|
+
return _overwrite((input) => slugify(input));
|
|
10455
|
+
}
|
|
10322
10456
|
function _array(Class2, element, params) {
|
|
10323
10457
|
return new Class2({
|
|
10324
10458
|
type: "array",
|
|
@@ -10540,6 +10674,30 @@ function _check(fn, params) {
|
|
|
10540
10674
|
ch._zod.check = fn;
|
|
10541
10675
|
return ch;
|
|
10542
10676
|
}
|
|
10677
|
+
function describe(description) {
|
|
10678
|
+
const ch = new $ZodCheck({ check: "describe" });
|
|
10679
|
+
ch._zod.onattach = [
|
|
10680
|
+
(inst) => {
|
|
10681
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
10682
|
+
globalRegistry.add(inst, { ...existing, description });
|
|
10683
|
+
}
|
|
10684
|
+
];
|
|
10685
|
+
ch._zod.check = () => {
|
|
10686
|
+
};
|
|
10687
|
+
return ch;
|
|
10688
|
+
}
|
|
10689
|
+
function meta(metadata) {
|
|
10690
|
+
const ch = new $ZodCheck({ check: "meta" });
|
|
10691
|
+
ch._zod.onattach = [
|
|
10692
|
+
(inst) => {
|
|
10693
|
+
const existing = globalRegistry.get(inst) ?? {};
|
|
10694
|
+
globalRegistry.add(inst, { ...existing, ...metadata });
|
|
10695
|
+
}
|
|
10696
|
+
];
|
|
10697
|
+
ch._zod.check = () => {
|
|
10698
|
+
};
|
|
10699
|
+
return ch;
|
|
10700
|
+
}
|
|
10543
10701
|
function _stringbool(Classes, _params) {
|
|
10544
10702
|
const params = normalizeParams(_params);
|
|
10545
10703
|
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
@@ -10607,7 +10765,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10607
10765
|
return inst;
|
|
10608
10766
|
}
|
|
10609
10767
|
|
|
10610
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
10768
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/to-json-schema.js
|
|
10611
10769
|
var JSONSchemaGenerator = class {
|
|
10612
10770
|
constructor(params) {
|
|
10613
10771
|
this.counter = 0;
|
|
@@ -10620,7 +10778,7 @@ var JSONSchemaGenerator = class {
|
|
|
10620
10778
|
this.seen = /* @__PURE__ */ new Map();
|
|
10621
10779
|
}
|
|
10622
10780
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
10623
|
-
var
|
|
10781
|
+
var _a2;
|
|
10624
10782
|
const def = schema._zod.def;
|
|
10625
10783
|
const formatMap = {
|
|
10626
10784
|
guid: "uuid",
|
|
@@ -10836,11 +10994,16 @@ var JSONSchemaGenerator = class {
|
|
|
10836
10994
|
}
|
|
10837
10995
|
case "union": {
|
|
10838
10996
|
const json2 = _json;
|
|
10997
|
+
const isDiscriminated = def.discriminator !== void 0;
|
|
10839
10998
|
const options = def.options.map((x, i) => this.process(x, {
|
|
10840
10999
|
...params,
|
|
10841
|
-
path: [...params.path, "anyOf", i]
|
|
11000
|
+
path: [...params.path, isDiscriminated ? "oneOf" : "anyOf", i]
|
|
10842
11001
|
}));
|
|
10843
|
-
|
|
11002
|
+
if (isDiscriminated) {
|
|
11003
|
+
json2.oneOf = options;
|
|
11004
|
+
} else {
|
|
11005
|
+
json2.anyOf = options;
|
|
11006
|
+
}
|
|
10844
11007
|
break;
|
|
10845
11008
|
}
|
|
10846
11009
|
case "intersection": {
|
|
@@ -11116,15 +11279,15 @@ var JSONSchemaGenerator = class {
|
|
|
11116
11279
|
}
|
|
11117
11280
|
}
|
|
11118
11281
|
}
|
|
11119
|
-
const
|
|
11120
|
-
if (
|
|
11121
|
-
Object.assign(result.schema,
|
|
11282
|
+
const meta3 = this.metadataRegistry.get(schema);
|
|
11283
|
+
if (meta3)
|
|
11284
|
+
Object.assign(result.schema, meta3);
|
|
11122
11285
|
if (this.io === "input" && isTransforming(schema)) {
|
|
11123
11286
|
delete result.schema.examples;
|
|
11124
11287
|
delete result.schema.default;
|
|
11125
11288
|
}
|
|
11126
11289
|
if (this.io === "input" && result.schema._prefault)
|
|
11127
|
-
(
|
|
11290
|
+
(_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
|
|
11128
11291
|
delete result.schema._prefault;
|
|
11129
11292
|
const _result = this.seen.get(schema);
|
|
11130
11293
|
return _result.schema;
|
|
@@ -11322,106 +11485,57 @@ function isTransforming(_schema, _ctx) {
|
|
|
11322
11485
|
if (ctx.seen.has(_schema))
|
|
11323
11486
|
return false;
|
|
11324
11487
|
ctx.seen.add(_schema);
|
|
11325
|
-
const
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
case "object": {
|
|
11350
|
-
for (const key in def.shape) {
|
|
11351
|
-
if (isTransforming(def.shape[key], ctx))
|
|
11352
|
-
return true;
|
|
11353
|
-
}
|
|
11354
|
-
return false;
|
|
11355
|
-
}
|
|
11356
|
-
case "union": {
|
|
11357
|
-
for (const option of def.options) {
|
|
11358
|
-
if (isTransforming(option, ctx))
|
|
11359
|
-
return true;
|
|
11360
|
-
}
|
|
11361
|
-
return false;
|
|
11362
|
-
}
|
|
11363
|
-
case "intersection": {
|
|
11364
|
-
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
11365
|
-
}
|
|
11366
|
-
case "tuple": {
|
|
11367
|
-
for (const item of def.items) {
|
|
11368
|
-
if (isTransforming(item, ctx))
|
|
11369
|
-
return true;
|
|
11370
|
-
}
|
|
11371
|
-
if (def.rest && isTransforming(def.rest, ctx))
|
|
11488
|
+
const def = _schema._zod.def;
|
|
11489
|
+
if (def.type === "transform")
|
|
11490
|
+
return true;
|
|
11491
|
+
if (def.type === "array")
|
|
11492
|
+
return isTransforming(def.element, ctx);
|
|
11493
|
+
if (def.type === "set")
|
|
11494
|
+
return isTransforming(def.valueType, ctx);
|
|
11495
|
+
if (def.type === "lazy")
|
|
11496
|
+
return isTransforming(def.getter(), ctx);
|
|
11497
|
+
if (def.type === "promise" || def.type === "optional" || def.type === "nonoptional" || def.type === "nullable" || def.type === "readonly" || def.type === "default" || def.type === "prefault") {
|
|
11498
|
+
return isTransforming(def.innerType, ctx);
|
|
11499
|
+
}
|
|
11500
|
+
if (def.type === "intersection") {
|
|
11501
|
+
return isTransforming(def.left, ctx) || isTransforming(def.right, ctx);
|
|
11502
|
+
}
|
|
11503
|
+
if (def.type === "record" || def.type === "map") {
|
|
11504
|
+
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11505
|
+
}
|
|
11506
|
+
if (def.type === "pipe") {
|
|
11507
|
+
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11508
|
+
}
|
|
11509
|
+
if (def.type === "object") {
|
|
11510
|
+
for (const key in def.shape) {
|
|
11511
|
+
if (isTransforming(def.shape[key], ctx))
|
|
11372
11512
|
return true;
|
|
11373
|
-
return false;
|
|
11374
11513
|
}
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
case "set": {
|
|
11382
|
-
return isTransforming(def.valueType, ctx);
|
|
11383
|
-
}
|
|
11384
|
-
// inner types
|
|
11385
|
-
case "promise":
|
|
11386
|
-
case "optional":
|
|
11387
|
-
case "nonoptional":
|
|
11388
|
-
case "nullable":
|
|
11389
|
-
case "readonly":
|
|
11390
|
-
return isTransforming(def.innerType, ctx);
|
|
11391
|
-
case "lazy":
|
|
11392
|
-
return isTransforming(def.getter(), ctx);
|
|
11393
|
-
case "default": {
|
|
11394
|
-
return isTransforming(def.innerType, ctx);
|
|
11395
|
-
}
|
|
11396
|
-
case "prefault": {
|
|
11397
|
-
return isTransforming(def.innerType, ctx);
|
|
11514
|
+
return false;
|
|
11515
|
+
}
|
|
11516
|
+
if (def.type === "union") {
|
|
11517
|
+
for (const option of def.options) {
|
|
11518
|
+
if (isTransforming(option, ctx))
|
|
11519
|
+
return true;
|
|
11398
11520
|
}
|
|
11399
|
-
|
|
11400
|
-
|
|
11521
|
+
return false;
|
|
11522
|
+
}
|
|
11523
|
+
if (def.type === "tuple") {
|
|
11524
|
+
for (const item of def.items) {
|
|
11525
|
+
if (isTransforming(item, ctx))
|
|
11526
|
+
return true;
|
|
11401
11527
|
}
|
|
11402
|
-
|
|
11528
|
+
if (def.rest && isTransforming(def.rest, ctx))
|
|
11403
11529
|
return true;
|
|
11404
|
-
|
|
11405
|
-
case "pipe": {
|
|
11406
|
-
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11407
|
-
}
|
|
11408
|
-
case "success": {
|
|
11409
|
-
return false;
|
|
11410
|
-
}
|
|
11411
|
-
case "catch": {
|
|
11412
|
-
return false;
|
|
11413
|
-
}
|
|
11414
|
-
case "function": {
|
|
11415
|
-
return false;
|
|
11416
|
-
}
|
|
11530
|
+
return false;
|
|
11417
11531
|
}
|
|
11418
|
-
|
|
11532
|
+
return false;
|
|
11419
11533
|
}
|
|
11420
11534
|
|
|
11421
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11535
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/json-schema.js
|
|
11422
11536
|
var json_schema_exports = {};
|
|
11423
11537
|
|
|
11424
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11538
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/iso.js
|
|
11425
11539
|
var iso_exports = {};
|
|
11426
11540
|
__export(iso_exports, {
|
|
11427
11541
|
ZodISODate: () => ZodISODate,
|
|
@@ -11462,7 +11576,7 @@ function duration2(params) {
|
|
|
11462
11576
|
return _isoDuration(ZodISODuration, params);
|
|
11463
11577
|
}
|
|
11464
11578
|
|
|
11465
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11579
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/errors.js
|
|
11466
11580
|
var initializer2 = (inst, issues) => {
|
|
11467
11581
|
$ZodError.init(inst, issues);
|
|
11468
11582
|
inst.name = "ZodError";
|
|
@@ -11502,7 +11616,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
11502
11616
|
Parent: Error
|
|
11503
11617
|
});
|
|
11504
11618
|
|
|
11505
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11619
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/parse.js
|
|
11506
11620
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
11507
11621
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
11508
11622
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -11516,7 +11630,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
11516
11630
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
11517
11631
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
11518
11632
|
|
|
11519
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
11633
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/schemas.js
|
|
11520
11634
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
11521
11635
|
$ZodType.init(inst, def);
|
|
11522
11636
|
inst.def = def;
|
|
@@ -11532,8 +11646,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
11532
11646
|
};
|
|
11533
11647
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
11534
11648
|
inst.brand = () => inst;
|
|
11535
|
-
inst.register = ((reg,
|
|
11536
|
-
reg.add(inst,
|
|
11649
|
+
inst.register = ((reg, meta3) => {
|
|
11650
|
+
reg.add(inst, meta3);
|
|
11537
11651
|
return inst;
|
|
11538
11652
|
});
|
|
11539
11653
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
@@ -11609,6 +11723,7 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
11609
11723
|
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
11610
11724
|
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
11611
11725
|
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
11726
|
+
inst.slugify = () => inst.check(_slugify());
|
|
11612
11727
|
});
|
|
11613
11728
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
11614
11729
|
$ZodString.init(inst, def);
|
|
@@ -11748,6 +11863,13 @@ var ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
|
|
|
11748
11863
|
function ipv42(params) {
|
|
11749
11864
|
return _ipv4(ZodIPv4, params);
|
|
11750
11865
|
}
|
|
11866
|
+
var ZodMAC = /* @__PURE__ */ $constructor("ZodMAC", (inst, def) => {
|
|
11867
|
+
$ZodMAC.init(inst, def);
|
|
11868
|
+
ZodStringFormat.init(inst, def);
|
|
11869
|
+
});
|
|
11870
|
+
function mac2(params) {
|
|
11871
|
+
return _mac(ZodMAC, params);
|
|
11872
|
+
}
|
|
11751
11873
|
var ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
|
|
11752
11874
|
$ZodIPv6.init(inst, def);
|
|
11753
11875
|
ZodStringFormat.init(inst, def);
|
|
@@ -12458,6 +12580,8 @@ function refine(fn, _params = {}) {
|
|
|
12458
12580
|
function superRefine(fn) {
|
|
12459
12581
|
return _superRefine(fn);
|
|
12460
12582
|
}
|
|
12583
|
+
var describe2 = describe;
|
|
12584
|
+
var meta2 = meta;
|
|
12461
12585
|
function _instanceof(cls, params = {
|
|
12462
12586
|
error: `Input not instance of ${cls.name}`
|
|
12463
12587
|
}) {
|
|
@@ -12486,7 +12610,7 @@ function preprocess(fn, schema) {
|
|
|
12486
12610
|
return pipe(transform(fn), schema);
|
|
12487
12611
|
}
|
|
12488
12612
|
|
|
12489
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12613
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/compat.js
|
|
12490
12614
|
var ZodIssueCode = {
|
|
12491
12615
|
invalid_type: "invalid_type",
|
|
12492
12616
|
too_big: "too_big",
|
|
@@ -12512,7 +12636,7 @@ var ZodFirstPartyTypeKind;
|
|
|
12512
12636
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
12513
12637
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
12514
12638
|
|
|
12515
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12639
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/coerce.js
|
|
12516
12640
|
var coerce_exports = {};
|
|
12517
12641
|
__export(coerce_exports, {
|
|
12518
12642
|
bigint: () => bigint3,
|
|
@@ -12537,7 +12661,7 @@ function date4(params) {
|
|
|
12537
12661
|
return _coercedDate(ZodDate, params);
|
|
12538
12662
|
}
|
|
12539
12663
|
|
|
12540
|
-
// ../../node_modules/.pnpm/zod@4.1.
|
|
12664
|
+
// ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
|
|
12541
12665
|
config(en_default());
|
|
12542
12666
|
|
|
12543
12667
|
// src/convert-to-inkeep-messages.ts
|