@alook/cli 0.0.34 → 0.0.36
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.js +1268 -520
- package/dist/session-runner.js +1266 -518
- package/package.json +1 -1
package/dist/session-runner.js
CHANGED
|
@@ -57,7 +57,7 @@ var TERMINAL_MEETING_STATUSES = [
|
|
|
57
57
|
var DEV_WEB_URL = process.env.ALOOK_SERVER_URL || "http://localhost:3000";
|
|
58
58
|
var DEV_WS_DO_URL = process.env.DEV_WS_DO_URL || "http://localhost:8789";
|
|
59
59
|
var DEV_EMAIL_WORKER_URL = process.env.DEV_EMAIL_WORKER_URL || "http://localhost:8787";
|
|
60
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
60
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
61
61
|
var exports_external = {};
|
|
62
62
|
__export(exports_external, {
|
|
63
63
|
xor: () => xor,
|
|
@@ -159,6 +159,7 @@ __export(exports_external, {
|
|
|
159
159
|
iso: () => exports_iso,
|
|
160
160
|
ipv6: () => ipv62,
|
|
161
161
|
ipv4: () => ipv42,
|
|
162
|
+
invertCodec: () => invertCodec,
|
|
162
163
|
intersection: () => intersection,
|
|
163
164
|
int64: () => int64,
|
|
164
165
|
int32: () => int32,
|
|
@@ -237,6 +238,7 @@ __export(exports_external, {
|
|
|
237
238
|
ZodRealError: () => ZodRealError,
|
|
238
239
|
ZodReadonly: () => ZodReadonly,
|
|
239
240
|
ZodPromise: () => ZodPromise,
|
|
241
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
240
242
|
ZodPrefault: () => ZodPrefault,
|
|
241
243
|
ZodPipe: () => ZodPipe,
|
|
242
244
|
ZodOptional: () => ZodOptional,
|
|
@@ -298,7 +300,7 @@ __export(exports_external, {
|
|
|
298
300
|
$brand: () => $brand
|
|
299
301
|
});
|
|
300
302
|
|
|
301
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
303
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
302
304
|
var exports_core2 = {};
|
|
303
305
|
__export(exports_core2, {
|
|
304
306
|
version: () => version,
|
|
@@ -497,6 +499,7 @@ __export(exports_core2, {
|
|
|
497
499
|
$ZodRealError: () => $ZodRealError,
|
|
498
500
|
$ZodReadonly: () => $ZodReadonly,
|
|
499
501
|
$ZodPromise: () => $ZodPromise,
|
|
502
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
500
503
|
$ZodPrefault: () => $ZodPrefault,
|
|
501
504
|
$ZodPipe: () => $ZodPipe,
|
|
502
505
|
$ZodOptional: () => $ZodOptional,
|
|
@@ -576,8 +579,9 @@ __export(exports_core2, {
|
|
|
576
579
|
$ZodAny: () => $ZodAny
|
|
577
580
|
});
|
|
578
581
|
|
|
579
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
580
|
-
var
|
|
582
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
583
|
+
var _a;
|
|
584
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
581
585
|
status: "aborted"
|
|
582
586
|
});
|
|
583
587
|
function $constructor(name, initializer, params) {
|
|
@@ -612,10 +616,10 @@ function $constructor(name, initializer, params) {
|
|
|
612
616
|
}
|
|
613
617
|
Object.defineProperty(Definition, "name", { value: name });
|
|
614
618
|
function _(def) {
|
|
615
|
-
var
|
|
619
|
+
var _a2;
|
|
616
620
|
const inst = params?.Parent ? new Definition : this;
|
|
617
621
|
init(inst, def);
|
|
618
|
-
(
|
|
622
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
619
623
|
for (const fn of inst._zod.deferred) {
|
|
620
624
|
fn();
|
|
621
625
|
}
|
|
@@ -646,13 +650,14 @@ class $ZodEncodeError extends Error {
|
|
|
646
650
|
this.name = "ZodEncodeError";
|
|
647
651
|
}
|
|
648
652
|
}
|
|
649
|
-
|
|
653
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
654
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
650
655
|
function config(newConfig) {
|
|
651
656
|
if (newConfig)
|
|
652
657
|
Object.assign(globalConfig, newConfig);
|
|
653
658
|
return globalConfig;
|
|
654
659
|
}
|
|
655
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
660
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
656
661
|
var exports_util = {};
|
|
657
662
|
__export(exports_util, {
|
|
658
663
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -694,6 +699,7 @@ __export(exports_util, {
|
|
|
694
699
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
695
700
|
finalizeIssue: () => finalizeIssue,
|
|
696
701
|
extend: () => extend,
|
|
702
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
697
703
|
escapeRegex: () => escapeRegex,
|
|
698
704
|
esc: () => esc,
|
|
699
705
|
defineLazy: () => defineLazy,
|
|
@@ -764,21 +770,14 @@ function cleanRegex(source) {
|
|
|
764
770
|
return source.slice(start, end);
|
|
765
771
|
}
|
|
766
772
|
function floatSafeRemainder(val, step) {
|
|
767
|
-
const
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
if (
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
777
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
778
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
779
|
-
return valInt % stepInt / 10 ** decCount;
|
|
780
|
-
}
|
|
781
|
-
var EVALUATING = Symbol("evaluating");
|
|
773
|
+
const ratio = val / step;
|
|
774
|
+
const roundedRatio = Math.round(ratio);
|
|
775
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
776
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
777
|
+
return 0;
|
|
778
|
+
return ratio - roundedRatio;
|
|
779
|
+
}
|
|
780
|
+
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
782
781
|
function defineLazy(object, key, getter) {
|
|
783
782
|
let value = undefined;
|
|
784
783
|
Object.defineProperty(object, key, {
|
|
@@ -856,7 +855,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
856
855
|
function isObject(data) {
|
|
857
856
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
858
857
|
}
|
|
859
|
-
var allowsEval = cached(() => {
|
|
858
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
859
|
+
if (globalConfig.jitless) {
|
|
860
|
+
return false;
|
|
861
|
+
}
|
|
860
862
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
861
863
|
return false;
|
|
862
864
|
}
|
|
@@ -889,6 +891,10 @@ function shallowClone(o) {
|
|
|
889
891
|
return { ...o };
|
|
890
892
|
if (Array.isArray(o))
|
|
891
893
|
return [...o];
|
|
894
|
+
if (o instanceof Map)
|
|
895
|
+
return new Map(o);
|
|
896
|
+
if (o instanceof Set)
|
|
897
|
+
return new Set(o);
|
|
892
898
|
return o;
|
|
893
899
|
}
|
|
894
900
|
function numKeys(data) {
|
|
@@ -944,8 +950,15 @@ var getParsedType = (data) => {
|
|
|
944
950
|
throw new Error(`Unknown data type: ${t}`);
|
|
945
951
|
}
|
|
946
952
|
};
|
|
947
|
-
var propertyKeyTypes = new Set(["string", "number", "symbol"]);
|
|
948
|
-
var primitiveTypes = new Set([
|
|
953
|
+
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
954
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
955
|
+
"string",
|
|
956
|
+
"number",
|
|
957
|
+
"bigint",
|
|
958
|
+
"boolean",
|
|
959
|
+
"symbol",
|
|
960
|
+
"undefined"
|
|
961
|
+
]);
|
|
949
962
|
function escapeRegex(str) {
|
|
950
963
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
951
964
|
}
|
|
@@ -1114,6 +1127,9 @@ function safeExtend(schema, shape) {
|
|
|
1114
1127
|
return clone(schema, def);
|
|
1115
1128
|
}
|
|
1116
1129
|
function merge(a, b) {
|
|
1130
|
+
if (a._zod.def.checks?.length) {
|
|
1131
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1132
|
+
}
|
|
1117
1133
|
const def = mergeDefs(a._zod.def, {
|
|
1118
1134
|
get shape() {
|
|
1119
1135
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1123,7 +1139,7 @@ function merge(a, b) {
|
|
|
1123
1139
|
get catchall() {
|
|
1124
1140
|
return b._zod.def.catchall;
|
|
1125
1141
|
},
|
|
1126
|
-
checks: []
|
|
1142
|
+
checks: b._zod.def.checks ?? []
|
|
1127
1143
|
});
|
|
1128
1144
|
return clone(a, def);
|
|
1129
1145
|
}
|
|
@@ -1206,10 +1222,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1206
1222
|
}
|
|
1207
1223
|
return false;
|
|
1208
1224
|
}
|
|
1225
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1226
|
+
if (x.aborted === true)
|
|
1227
|
+
return true;
|
|
1228
|
+
for (let i = startIndex;i < x.issues.length; i++) {
|
|
1229
|
+
if (x.issues[i]?.continue === false) {
|
|
1230
|
+
return true;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
return false;
|
|
1234
|
+
}
|
|
1209
1235
|
function prefixIssues(path, issues) {
|
|
1210
1236
|
return issues.map((iss) => {
|
|
1211
|
-
var
|
|
1212
|
-
(
|
|
1237
|
+
var _a2;
|
|
1238
|
+
(_a2 = iss).path ?? (_a2.path = []);
|
|
1213
1239
|
iss.path.unshift(path);
|
|
1214
1240
|
return iss;
|
|
1215
1241
|
});
|
|
@@ -1218,17 +1244,14 @@ function unwrapMessage(message) {
|
|
|
1218
1244
|
return typeof message === "string" ? message : message?.message;
|
|
1219
1245
|
}
|
|
1220
1246
|
function finalizeIssue(iss, ctx, config2) {
|
|
1221
|
-
const
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
delete full.continue;
|
|
1228
|
-
if (!ctx?.reportInput) {
|
|
1229
|
-
delete full.input;
|
|
1247
|
+
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";
|
|
1248
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1249
|
+
rest.path ?? (rest.path = []);
|
|
1250
|
+
rest.message = message;
|
|
1251
|
+
if (ctx?.reportInput) {
|
|
1252
|
+
rest.input = _input;
|
|
1230
1253
|
}
|
|
1231
|
-
return
|
|
1254
|
+
return rest;
|
|
1232
1255
|
}
|
|
1233
1256
|
function getSizableOrigin(input) {
|
|
1234
1257
|
if (input instanceof Set)
|
|
@@ -1326,7 +1349,7 @@ class Class {
|
|
|
1326
1349
|
constructor(..._args) {}
|
|
1327
1350
|
}
|
|
1328
1351
|
|
|
1329
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1352
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
1330
1353
|
var initializer = (inst, def) => {
|
|
1331
1354
|
inst.name = "$ZodError";
|
|
1332
1355
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1360,30 +1383,33 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
1360
1383
|
}
|
|
1361
1384
|
function formatError(error, mapper = (issue2) => issue2.message) {
|
|
1362
1385
|
const fieldErrors = { _errors: [] };
|
|
1363
|
-
const processError = (error2) => {
|
|
1386
|
+
const processError = (error2, path = []) => {
|
|
1364
1387
|
for (const issue2 of error2.issues) {
|
|
1365
1388
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1366
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1389
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1367
1390
|
} else if (issue2.code === "invalid_key") {
|
|
1368
|
-
processError({ issues: issue2.issues });
|
|
1391
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1369
1392
|
} else if (issue2.code === "invalid_element") {
|
|
1370
|
-
processError({ issues: issue2.issues });
|
|
1371
|
-
} else if (issue2.path.length === 0) {
|
|
1372
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1393
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1373
1394
|
} else {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1395
|
+
const fullpath = [...path, ...issue2.path];
|
|
1396
|
+
if (fullpath.length === 0) {
|
|
1397
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1398
|
+
} else {
|
|
1399
|
+
let curr = fieldErrors;
|
|
1400
|
+
let i = 0;
|
|
1401
|
+
while (i < fullpath.length) {
|
|
1402
|
+
const el = fullpath[i];
|
|
1403
|
+
const terminal = i === fullpath.length - 1;
|
|
1404
|
+
if (!terminal) {
|
|
1405
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1406
|
+
} else {
|
|
1407
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1408
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1409
|
+
}
|
|
1410
|
+
curr = curr[el];
|
|
1411
|
+
i++;
|
|
1384
1412
|
}
|
|
1385
|
-
curr = curr[el];
|
|
1386
|
-
i++;
|
|
1387
1413
|
}
|
|
1388
1414
|
}
|
|
1389
1415
|
}
|
|
@@ -1394,14 +1420,14 @@ function formatError(error, mapper = (issue2) => issue2.message) {
|
|
|
1394
1420
|
function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
1395
1421
|
const result = { errors: [] };
|
|
1396
1422
|
const processError = (error2, path = []) => {
|
|
1397
|
-
var
|
|
1423
|
+
var _a2, _b;
|
|
1398
1424
|
for (const issue2 of error2.issues) {
|
|
1399
1425
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1400
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1426
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1401
1427
|
} else if (issue2.code === "invalid_key") {
|
|
1402
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1428
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1403
1429
|
} else if (issue2.code === "invalid_element") {
|
|
1404
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1430
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1405
1431
|
} else {
|
|
1406
1432
|
const fullpath = [...path, ...issue2.path];
|
|
1407
1433
|
if (fullpath.length === 0) {
|
|
@@ -1415,7 +1441,7 @@ function treeifyError(error, mapper = (issue2) => issue2.message) {
|
|
|
1415
1441
|
const terminal = i === fullpath.length - 1;
|
|
1416
1442
|
if (typeof el === "string") {
|
|
1417
1443
|
curr.properties ?? (curr.properties = {});
|
|
1418
|
-
(
|
|
1444
|
+
(_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
|
|
1419
1445
|
curr = curr.properties[el];
|
|
1420
1446
|
} else {
|
|
1421
1447
|
curr.items ?? (curr.items = []);
|
|
@@ -1463,9 +1489,9 @@ function prettifyError(error) {
|
|
|
1463
1489
|
`);
|
|
1464
1490
|
}
|
|
1465
1491
|
|
|
1466
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1492
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
1467
1493
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1468
|
-
const ctx = _ctx ?
|
|
1494
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1469
1495
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1470
1496
|
if (result instanceof Promise) {
|
|
1471
1497
|
throw new $ZodAsyncError;
|
|
@@ -1479,7 +1505,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1479
1505
|
};
|
|
1480
1506
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1481
1507
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1482
|
-
const ctx = _ctx ?
|
|
1508
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1483
1509
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1484
1510
|
if (result instanceof Promise)
|
|
1485
1511
|
result = await result;
|
|
@@ -1504,7 +1530,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1504
1530
|
};
|
|
1505
1531
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1506
1532
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1507
|
-
const ctx = _ctx ?
|
|
1533
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1508
1534
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1509
1535
|
if (result instanceof Promise)
|
|
1510
1536
|
result = await result;
|
|
@@ -1515,7 +1541,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1515
1541
|
};
|
|
1516
1542
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1517
1543
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1518
|
-
const ctx = _ctx ?
|
|
1544
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1519
1545
|
return _parse(_Err)(schema, value, ctx);
|
|
1520
1546
|
};
|
|
1521
1547
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1524,7 +1550,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1524
1550
|
};
|
|
1525
1551
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1526
1552
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1527
|
-
const ctx = _ctx ?
|
|
1553
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1528
1554
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1529
1555
|
};
|
|
1530
1556
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1533,7 +1559,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1533
1559
|
};
|
|
1534
1560
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1535
1561
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1536
|
-
const ctx = _ctx ?
|
|
1562
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1537
1563
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1538
1564
|
};
|
|
1539
1565
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1542,7 +1568,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1542
1568
|
};
|
|
1543
1569
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1544
1570
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1545
|
-
const ctx = _ctx ?
|
|
1571
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1546
1572
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1547
1573
|
};
|
|
1548
1574
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1550,7 +1576,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1550
1576
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1551
1577
|
};
|
|
1552
1578
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1553
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1579
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
1554
1580
|
var exports_regexes = {};
|
|
1555
1581
|
__export(exports_regexes, {
|
|
1556
1582
|
xid: () => xid,
|
|
@@ -1590,6 +1616,7 @@ __export(exports_regexes, {
|
|
|
1590
1616
|
ipv4: () => ipv4,
|
|
1591
1617
|
integer: () => integer,
|
|
1592
1618
|
idnEmail: () => idnEmail,
|
|
1619
|
+
httpProtocol: () => httpProtocol,
|
|
1593
1620
|
html5Email: () => html5Email,
|
|
1594
1621
|
hostname: () => hostname,
|
|
1595
1622
|
hex: () => hex,
|
|
@@ -1612,7 +1639,7 @@ __export(exports_regexes, {
|
|
|
1612
1639
|
base64url: () => base64url,
|
|
1613
1640
|
base64: () => base64
|
|
1614
1641
|
});
|
|
1615
|
-
var cuid = /^[cC][
|
|
1642
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1616
1643
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1617
1644
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1618
1645
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1651,6 +1678,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1651
1678
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1652
1679
|
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])?)*\.?$/;
|
|
1653
1680
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1681
|
+
var httpProtocol = /^https?$/;
|
|
1654
1682
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1655
1683
|
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])))`;
|
|
1656
1684
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1707,12 +1735,12 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1707
1735
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1708
1736
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1709
1737
|
|
|
1710
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
1738
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
1711
1739
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1712
|
-
var
|
|
1740
|
+
var _a2;
|
|
1713
1741
|
inst._zod ?? (inst._zod = {});
|
|
1714
1742
|
inst._zod.def = def;
|
|
1715
|
-
(
|
|
1743
|
+
(_a2 = inst._zod).onattach ?? (_a2.onattach = []);
|
|
1716
1744
|
});
|
|
1717
1745
|
var numericOriginMap = {
|
|
1718
1746
|
number: "number",
|
|
@@ -1778,8 +1806,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1778
1806
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1779
1807
|
$ZodCheck.init(inst, def);
|
|
1780
1808
|
inst._zod.onattach.push((inst2) => {
|
|
1781
|
-
var
|
|
1782
|
-
(
|
|
1809
|
+
var _a2;
|
|
1810
|
+
(_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
|
|
1783
1811
|
});
|
|
1784
1812
|
inst._zod.check = (payload) => {
|
|
1785
1813
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1912,9 +1940,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1912
1940
|
};
|
|
1913
1941
|
});
|
|
1914
1942
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1915
|
-
var
|
|
1943
|
+
var _a2;
|
|
1916
1944
|
$ZodCheck.init(inst, def);
|
|
1917
|
-
(
|
|
1945
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1918
1946
|
const val = payload.value;
|
|
1919
1947
|
return !nullish(val) && val.size !== undefined;
|
|
1920
1948
|
});
|
|
@@ -1940,9 +1968,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1940
1968
|
};
|
|
1941
1969
|
});
|
|
1942
1970
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1943
|
-
var
|
|
1971
|
+
var _a2;
|
|
1944
1972
|
$ZodCheck.init(inst, def);
|
|
1945
|
-
(
|
|
1973
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1946
1974
|
const val = payload.value;
|
|
1947
1975
|
return !nullish(val) && val.size !== undefined;
|
|
1948
1976
|
});
|
|
@@ -1968,9 +1996,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1968
1996
|
};
|
|
1969
1997
|
});
|
|
1970
1998
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1971
|
-
var
|
|
1999
|
+
var _a2;
|
|
1972
2000
|
$ZodCheck.init(inst, def);
|
|
1973
|
-
(
|
|
2001
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
1974
2002
|
const val = payload.value;
|
|
1975
2003
|
return !nullish(val) && val.size !== undefined;
|
|
1976
2004
|
});
|
|
@@ -1998,9 +2026,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1998
2026
|
};
|
|
1999
2027
|
});
|
|
2000
2028
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
2001
|
-
var
|
|
2029
|
+
var _a2;
|
|
2002
2030
|
$ZodCheck.init(inst, def);
|
|
2003
|
-
(
|
|
2031
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
2004
2032
|
const val = payload.value;
|
|
2005
2033
|
return !nullish(val) && val.length !== undefined;
|
|
2006
2034
|
});
|
|
@@ -2027,9 +2055,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
2027
2055
|
};
|
|
2028
2056
|
});
|
|
2029
2057
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
2030
|
-
var
|
|
2058
|
+
var _a2;
|
|
2031
2059
|
$ZodCheck.init(inst, def);
|
|
2032
|
-
(
|
|
2060
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
2033
2061
|
const val = payload.value;
|
|
2034
2062
|
return !nullish(val) && val.length !== undefined;
|
|
2035
2063
|
});
|
|
@@ -2056,9 +2084,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2056
2084
|
};
|
|
2057
2085
|
});
|
|
2058
2086
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2059
|
-
var
|
|
2087
|
+
var _a2;
|
|
2060
2088
|
$ZodCheck.init(inst, def);
|
|
2061
|
-
(
|
|
2089
|
+
(_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
|
|
2062
2090
|
const val = payload.value;
|
|
2063
2091
|
return !nullish(val) && val.length !== undefined;
|
|
2064
2092
|
});
|
|
@@ -2087,7 +2115,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2087
2115
|
};
|
|
2088
2116
|
});
|
|
2089
2117
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2090
|
-
var
|
|
2118
|
+
var _a2, _b;
|
|
2091
2119
|
$ZodCheck.init(inst, def);
|
|
2092
2120
|
inst._zod.onattach.push((inst2) => {
|
|
2093
2121
|
const bag = inst2._zod.bag;
|
|
@@ -2098,7 +2126,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2098
2126
|
}
|
|
2099
2127
|
});
|
|
2100
2128
|
if (def.pattern)
|
|
2101
|
-
(
|
|
2129
|
+
(_a2 = inst._zod).check ?? (_a2.check = (payload) => {
|
|
2102
2130
|
def.pattern.lastIndex = 0;
|
|
2103
2131
|
if (def.pattern.test(payload.value))
|
|
2104
2132
|
return;
|
|
@@ -2254,7 +2282,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2254
2282
|
};
|
|
2255
2283
|
});
|
|
2256
2284
|
|
|
2257
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2285
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2258
2286
|
class Doc {
|
|
2259
2287
|
constructor(args = []) {
|
|
2260
2288
|
this.content = [];
|
|
@@ -2292,16 +2320,16 @@ class Doc {
|
|
|
2292
2320
|
}
|
|
2293
2321
|
}
|
|
2294
2322
|
|
|
2295
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2323
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
2296
2324
|
var version = {
|
|
2297
2325
|
major: 4,
|
|
2298
|
-
minor:
|
|
2299
|
-
patch:
|
|
2326
|
+
minor: 4,
|
|
2327
|
+
patch: 3
|
|
2300
2328
|
};
|
|
2301
2329
|
|
|
2302
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
2330
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
2303
2331
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2304
|
-
var
|
|
2332
|
+
var _a2;
|
|
2305
2333
|
inst ?? (inst = {});
|
|
2306
2334
|
inst._zod.def = def;
|
|
2307
2335
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2316,7 +2344,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2316
2344
|
}
|
|
2317
2345
|
}
|
|
2318
2346
|
if (checks.length === 0) {
|
|
2319
|
-
(
|
|
2347
|
+
(_a2 = inst._zod).deferred ?? (_a2.deferred = []);
|
|
2320
2348
|
inst._zod.deferred?.push(() => {
|
|
2321
2349
|
inst._zod.run = inst._zod.parse;
|
|
2322
2350
|
});
|
|
@@ -2326,6 +2354,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2326
2354
|
let asyncResult;
|
|
2327
2355
|
for (const ch of checks2) {
|
|
2328
2356
|
if (ch._zod.def.when) {
|
|
2357
|
+
if (explicitlyAborted(payload))
|
|
2358
|
+
continue;
|
|
2329
2359
|
const shouldRun = ch._zod.def.when(payload);
|
|
2330
2360
|
if (!shouldRun)
|
|
2331
2361
|
continue;
|
|
@@ -2465,6 +2495,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2465
2495
|
inst._zod.check = (payload) => {
|
|
2466
2496
|
try {
|
|
2467
2497
|
const trimmed = payload.value.trim();
|
|
2498
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2499
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2500
|
+
payload.issues.push({
|
|
2501
|
+
code: "invalid_format",
|
|
2502
|
+
format: "url",
|
|
2503
|
+
note: "Invalid URL format",
|
|
2504
|
+
input: payload.value,
|
|
2505
|
+
inst,
|
|
2506
|
+
continue: !def.abort
|
|
2507
|
+
});
|
|
2508
|
+
return;
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2468
2511
|
const url = new URL(trimmed);
|
|
2469
2512
|
if (def.hostname) {
|
|
2470
2513
|
def.hostname.lastIndex = 0;
|
|
@@ -2618,6 +2661,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2618
2661
|
function isValidBase64(data) {
|
|
2619
2662
|
if (data === "")
|
|
2620
2663
|
return true;
|
|
2664
|
+
if (/\s/.test(data))
|
|
2665
|
+
return false;
|
|
2621
2666
|
if (data.length % 4 !== 0)
|
|
2622
2667
|
return false;
|
|
2623
2668
|
try {
|
|
@@ -2807,8 +2852,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
2807
2852
|
$ZodType.init(inst, def);
|
|
2808
2853
|
inst._zod.pattern = _undefined;
|
|
2809
2854
|
inst._zod.values = new Set([undefined]);
|
|
2810
|
-
inst._zod.optin = "optional";
|
|
2811
|
-
inst._zod.optout = "optional";
|
|
2812
2855
|
inst._zod.parse = (payload, _ctx) => {
|
|
2813
2856
|
const input = payload.value;
|
|
2814
2857
|
if (typeof input === "undefined")
|
|
@@ -2936,15 +2979,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2936
2979
|
return payload;
|
|
2937
2980
|
};
|
|
2938
2981
|
});
|
|
2939
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
2982
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
2983
|
+
const isPresent = key in input;
|
|
2940
2984
|
if (result.issues.length) {
|
|
2941
|
-
if (isOptionalOut && !
|
|
2985
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
2942
2986
|
return;
|
|
2943
2987
|
}
|
|
2944
2988
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2945
2989
|
}
|
|
2990
|
+
if (!isPresent && !isOptionalIn) {
|
|
2991
|
+
if (!result.issues.length) {
|
|
2992
|
+
final.issues.push({
|
|
2993
|
+
code: "invalid_type",
|
|
2994
|
+
expected: "nonoptional",
|
|
2995
|
+
input: undefined,
|
|
2996
|
+
path: [key]
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2999
|
+
return;
|
|
3000
|
+
}
|
|
2946
3001
|
if (result.value === undefined) {
|
|
2947
|
-
if (
|
|
3002
|
+
if (isPresent) {
|
|
2948
3003
|
final.value[key] = undefined;
|
|
2949
3004
|
}
|
|
2950
3005
|
} else {
|
|
@@ -2972,8 +3027,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2972
3027
|
const keySet = def.keySet;
|
|
2973
3028
|
const _catchall = def.catchall._zod;
|
|
2974
3029
|
const t = _catchall.def.type;
|
|
3030
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
2975
3031
|
const isOptionalOut = _catchall.optout === "optional";
|
|
2976
3032
|
for (const key in input) {
|
|
3033
|
+
if (key === "__proto__")
|
|
3034
|
+
continue;
|
|
2977
3035
|
if (keySet.has(key))
|
|
2978
3036
|
continue;
|
|
2979
3037
|
if (t === "never") {
|
|
@@ -2982,9 +3040,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2982
3040
|
}
|
|
2983
3041
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2984
3042
|
if (r instanceof Promise) {
|
|
2985
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3043
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2986
3044
|
} else {
|
|
2987
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3045
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2988
3046
|
}
|
|
2989
3047
|
}
|
|
2990
3048
|
if (unrecognized.length) {
|
|
@@ -3050,12 +3108,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3050
3108
|
const shape = value.shape;
|
|
3051
3109
|
for (const key of value.keys) {
|
|
3052
3110
|
const el = shape[key];
|
|
3111
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3053
3112
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3054
3113
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3055
3114
|
if (r instanceof Promise) {
|
|
3056
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3115
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3057
3116
|
} else {
|
|
3058
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3117
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3059
3118
|
}
|
|
3060
3119
|
}
|
|
3061
3120
|
if (!catchall) {
|
|
@@ -3086,9 +3145,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3086
3145
|
const id = ids[key];
|
|
3087
3146
|
const k = esc(key);
|
|
3088
3147
|
const schema = shape[key];
|
|
3148
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3089
3149
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3090
3150
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3091
|
-
if (isOptionalOut) {
|
|
3151
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3092
3152
|
doc.write(`
|
|
3093
3153
|
if (${id}.issues.length) {
|
|
3094
3154
|
if (${k} in input) {
|
|
@@ -3107,6 +3167,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3107
3167
|
newResult[${k}] = ${id}.value;
|
|
3108
3168
|
}
|
|
3109
3169
|
|
|
3170
|
+
`);
|
|
3171
|
+
} else if (!isOptionalIn) {
|
|
3172
|
+
doc.write(`
|
|
3173
|
+
const ${id}_present = ${k} in input;
|
|
3174
|
+
if (${id}.issues.length) {
|
|
3175
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3176
|
+
...iss,
|
|
3177
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3178
|
+
})));
|
|
3179
|
+
}
|
|
3180
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3181
|
+
payload.issues.push({
|
|
3182
|
+
code: "invalid_type",
|
|
3183
|
+
expected: "nonoptional",
|
|
3184
|
+
input: undefined,
|
|
3185
|
+
path: [${k}]
|
|
3186
|
+
});
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3189
|
+
if (${id}_present) {
|
|
3190
|
+
if (${id}.value === undefined) {
|
|
3191
|
+
newResult[${k}] = undefined;
|
|
3192
|
+
} else {
|
|
3193
|
+
newResult[${k}] = ${id}.value;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3110
3197
|
`);
|
|
3111
3198
|
} else {
|
|
3112
3199
|
doc.write(`
|
|
@@ -3200,10 +3287,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3200
3287
|
}
|
|
3201
3288
|
return;
|
|
3202
3289
|
});
|
|
3203
|
-
const
|
|
3204
|
-
const first = def.options[0]._zod.run;
|
|
3290
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3205
3291
|
inst._zod.parse = (payload, ctx) => {
|
|
3206
|
-
if (
|
|
3292
|
+
if (first) {
|
|
3207
3293
|
return first(payload, ctx);
|
|
3208
3294
|
}
|
|
3209
3295
|
let async = false;
|
|
@@ -3256,10 +3342,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3256
3342
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3257
3343
|
$ZodUnion.init(inst, def);
|
|
3258
3344
|
def.inclusive = false;
|
|
3259
|
-
const
|
|
3260
|
-
const first = def.options[0]._zod.run;
|
|
3345
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3261
3346
|
inst._zod.parse = (payload, ctx) => {
|
|
3262
|
-
if (
|
|
3347
|
+
if (first) {
|
|
3263
3348
|
return first(payload, ctx);
|
|
3264
3349
|
}
|
|
3265
3350
|
let async = false;
|
|
@@ -3334,7 +3419,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3334
3419
|
if (opt) {
|
|
3335
3420
|
return opt._zod.run(payload, ctx);
|
|
3336
3421
|
}
|
|
3337
|
-
if (def.unionFallback) {
|
|
3422
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3338
3423
|
return _super(payload, ctx);
|
|
3339
3424
|
}
|
|
3340
3425
|
payload.issues.push({
|
|
@@ -3342,6 +3427,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3342
3427
|
errors: [],
|
|
3343
3428
|
note: "No matching discriminator",
|
|
3344
3429
|
discriminator: def.discriminator,
|
|
3430
|
+
options: Array.from(disc.value.keys()),
|
|
3345
3431
|
input,
|
|
3346
3432
|
path: [def.discriminator],
|
|
3347
3433
|
inst
|
|
@@ -3463,64 +3549,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3463
3549
|
}
|
|
3464
3550
|
payload.value = [];
|
|
3465
3551
|
const proms = [];
|
|
3466
|
-
const
|
|
3467
|
-
const
|
|
3552
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3553
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3468
3554
|
if (!def.rest) {
|
|
3469
|
-
|
|
3470
|
-
const tooSmall = input.length < optStart - 1;
|
|
3471
|
-
if (tooBig || tooSmall) {
|
|
3555
|
+
if (input.length < optinStart) {
|
|
3472
3556
|
payload.issues.push({
|
|
3473
|
-
|
|
3557
|
+
code: "too_small",
|
|
3558
|
+
minimum: optinStart,
|
|
3559
|
+
inclusive: true,
|
|
3474
3560
|
input,
|
|
3475
3561
|
inst,
|
|
3476
3562
|
origin: "array"
|
|
3477
3563
|
});
|
|
3478
3564
|
return payload;
|
|
3479
3565
|
}
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3566
|
+
if (input.length > items.length) {
|
|
3567
|
+
payload.issues.push({
|
|
3568
|
+
code: "too_big",
|
|
3569
|
+
maximum: items.length,
|
|
3570
|
+
inclusive: true,
|
|
3571
|
+
input,
|
|
3572
|
+
inst,
|
|
3573
|
+
origin: "array"
|
|
3574
|
+
});
|
|
3487
3575
|
}
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
}, ctx);
|
|
3492
|
-
if (
|
|
3493
|
-
proms.push(
|
|
3576
|
+
}
|
|
3577
|
+
const itemResults = new Array(items.length);
|
|
3578
|
+
for (let i = 0;i < items.length; i++) {
|
|
3579
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3580
|
+
if (r instanceof Promise) {
|
|
3581
|
+
proms.push(r.then((rr) => {
|
|
3582
|
+
itemResults[i] = rr;
|
|
3583
|
+
}));
|
|
3494
3584
|
} else {
|
|
3495
|
-
|
|
3585
|
+
itemResults[i] = r;
|
|
3496
3586
|
}
|
|
3497
3587
|
}
|
|
3498
3588
|
if (def.rest) {
|
|
3589
|
+
let i = items.length - 1;
|
|
3499
3590
|
const rest = input.slice(items.length);
|
|
3500
3591
|
for (const el of rest) {
|
|
3501
3592
|
i++;
|
|
3502
|
-
const result = def.rest._zod.run({
|
|
3503
|
-
value: el,
|
|
3504
|
-
issues: []
|
|
3505
|
-
}, ctx);
|
|
3593
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3506
3594
|
if (result instanceof Promise) {
|
|
3507
|
-
proms.push(result.then((
|
|
3595
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3508
3596
|
} else {
|
|
3509
3597
|
handleTupleResult(result, payload, i);
|
|
3510
3598
|
}
|
|
3511
3599
|
}
|
|
3512
3600
|
}
|
|
3513
|
-
if (proms.length)
|
|
3514
|
-
return Promise.all(proms).then(() => payload);
|
|
3515
|
-
|
|
3601
|
+
if (proms.length) {
|
|
3602
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3603
|
+
}
|
|
3604
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3516
3605
|
};
|
|
3517
3606
|
});
|
|
3607
|
+
function getTupleOptStart(items, key) {
|
|
3608
|
+
for (let i = items.length - 1;i >= 0; i--) {
|
|
3609
|
+
if (items[i]._zod[key] !== "optional")
|
|
3610
|
+
return i + 1;
|
|
3611
|
+
}
|
|
3612
|
+
return 0;
|
|
3613
|
+
}
|
|
3518
3614
|
function handleTupleResult(result, final, index) {
|
|
3519
3615
|
if (result.issues.length) {
|
|
3520
3616
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3521
3617
|
}
|
|
3522
3618
|
final.value[index] = result.value;
|
|
3523
3619
|
}
|
|
3620
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3621
|
+
for (let i = 0;i < items.length; i++) {
|
|
3622
|
+
const r = itemResults[i];
|
|
3623
|
+
const isPresent = i < input.length;
|
|
3624
|
+
if (r.issues.length) {
|
|
3625
|
+
if (!isPresent && i >= optoutStart) {
|
|
3626
|
+
final.value.length = i;
|
|
3627
|
+
break;
|
|
3628
|
+
}
|
|
3629
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3630
|
+
}
|
|
3631
|
+
final.value[i] = r.value;
|
|
3632
|
+
}
|
|
3633
|
+
for (let i = final.value.length - 1;i >= input.length; i--) {
|
|
3634
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
|
|
3635
|
+
final.value.length = i;
|
|
3636
|
+
} else {
|
|
3637
|
+
break;
|
|
3638
|
+
}
|
|
3639
|
+
}
|
|
3640
|
+
return final;
|
|
3641
|
+
}
|
|
3524
3642
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3525
3643
|
$ZodType.init(inst, def);
|
|
3526
3644
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3542,19 +3660,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3542
3660
|
for (const key of values) {
|
|
3543
3661
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3544
3662
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3663
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3664
|
+
if (keyResult instanceof Promise) {
|
|
3665
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3666
|
+
}
|
|
3667
|
+
if (keyResult.issues.length) {
|
|
3668
|
+
payload.issues.push({
|
|
3669
|
+
code: "invalid_key",
|
|
3670
|
+
origin: "record",
|
|
3671
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3672
|
+
input: key,
|
|
3673
|
+
path: [key],
|
|
3674
|
+
inst
|
|
3675
|
+
});
|
|
3676
|
+
continue;
|
|
3677
|
+
}
|
|
3678
|
+
const outKey = keyResult.value;
|
|
3545
3679
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3546
3680
|
if (result instanceof Promise) {
|
|
3547
3681
|
proms.push(result.then((result2) => {
|
|
3548
3682
|
if (result2.issues.length) {
|
|
3549
3683
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3550
3684
|
}
|
|
3551
|
-
payload.value[
|
|
3685
|
+
payload.value[outKey] = result2.value;
|
|
3552
3686
|
}));
|
|
3553
3687
|
} else {
|
|
3554
3688
|
if (result.issues.length) {
|
|
3555
3689
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3556
3690
|
}
|
|
3557
|
-
payload.value[
|
|
3691
|
+
payload.value[outKey] = result.value;
|
|
3558
3692
|
}
|
|
3559
3693
|
}
|
|
3560
3694
|
}
|
|
@@ -3578,6 +3712,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3578
3712
|
for (const key of Reflect.ownKeys(input)) {
|
|
3579
3713
|
if (key === "__proto__")
|
|
3580
3714
|
continue;
|
|
3715
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3716
|
+
continue;
|
|
3581
3717
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3582
3718
|
if (keyResult instanceof Promise) {
|
|
3583
3719
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3782,6 +3918,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
3782
3918
|
});
|
|
3783
3919
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3784
3920
|
$ZodType.init(inst, def);
|
|
3921
|
+
inst._zod.optin = "optional";
|
|
3785
3922
|
inst._zod.parse = (payload, ctx) => {
|
|
3786
3923
|
if (ctx.direction === "backward") {
|
|
3787
3924
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3791,6 +3928,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3791
3928
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3792
3929
|
return output.then((output2) => {
|
|
3793
3930
|
payload.value = output2;
|
|
3931
|
+
payload.fallback = true;
|
|
3794
3932
|
return payload;
|
|
3795
3933
|
});
|
|
3796
3934
|
}
|
|
@@ -3798,11 +3936,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3798
3936
|
throw new $ZodAsyncError;
|
|
3799
3937
|
}
|
|
3800
3938
|
payload.value = _out;
|
|
3939
|
+
payload.fallback = true;
|
|
3801
3940
|
return payload;
|
|
3802
3941
|
};
|
|
3803
3942
|
});
|
|
3804
3943
|
function handleOptionalResult(result, input) {
|
|
3805
|
-
if (result.issues.length
|
|
3944
|
+
if (input === undefined && (result.issues.length || result.fallback)) {
|
|
3806
3945
|
return { issues: [], value: undefined };
|
|
3807
3946
|
}
|
|
3808
3947
|
return result;
|
|
@@ -3820,10 +3959,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3820
3959
|
});
|
|
3821
3960
|
inst._zod.parse = (payload, ctx) => {
|
|
3822
3961
|
if (def.innerType._zod.optin === "optional") {
|
|
3962
|
+
const input = payload.value;
|
|
3823
3963
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3824
3964
|
if (result instanceof Promise)
|
|
3825
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3826
|
-
return handleOptionalResult(result,
|
|
3965
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3966
|
+
return handleOptionalResult(result, input);
|
|
3827
3967
|
}
|
|
3828
3968
|
if (payload.value === undefined) {
|
|
3829
3969
|
return payload;
|
|
@@ -3939,7 +4079,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3939
4079
|
});
|
|
3940
4080
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3941
4081
|
$ZodType.init(inst, def);
|
|
3942
|
-
|
|
4082
|
+
inst._zod.optin = "optional";
|
|
3943
4083
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3944
4084
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3945
4085
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3959,6 +4099,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3959
4099
|
input: payload.value
|
|
3960
4100
|
});
|
|
3961
4101
|
payload.issues = [];
|
|
4102
|
+
payload.fallback = true;
|
|
3962
4103
|
}
|
|
3963
4104
|
return payload;
|
|
3964
4105
|
});
|
|
@@ -3973,6 +4114,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3973
4114
|
input: payload.value
|
|
3974
4115
|
});
|
|
3975
4116
|
payload.issues = [];
|
|
4117
|
+
payload.fallback = true;
|
|
3976
4118
|
}
|
|
3977
4119
|
return payload;
|
|
3978
4120
|
};
|
|
@@ -4018,7 +4160,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
4018
4160
|
left.aborted = true;
|
|
4019
4161
|
return left;
|
|
4020
4162
|
}
|
|
4021
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4163
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
4022
4164
|
}
|
|
4023
4165
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
4024
4166
|
$ZodType.init(inst, def);
|
|
@@ -4070,6 +4212,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4070
4212
|
}
|
|
4071
4213
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4072
4214
|
}
|
|
4215
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4216
|
+
$ZodPipe.init(inst, def);
|
|
4217
|
+
});
|
|
4073
4218
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4074
4219
|
$ZodType.init(inst, def);
|
|
4075
4220
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4221,7 +4366,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4221
4366
|
});
|
|
4222
4367
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4223
4368
|
$ZodType.init(inst, def);
|
|
4224
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4369
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4370
|
+
const d = def;
|
|
4371
|
+
if (!d._cachedInner)
|
|
4372
|
+
d._cachedInner = def.getter();
|
|
4373
|
+
return d._cachedInner;
|
|
4374
|
+
});
|
|
4225
4375
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4226
4376
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4227
4377
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? undefined);
|
|
@@ -4261,7 +4411,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
4261
4411
|
payload.issues.push(issue(_iss));
|
|
4262
4412
|
}
|
|
4263
4413
|
}
|
|
4264
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4414
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
4265
4415
|
var exports_locales = {};
|
|
4266
4416
|
__export(exports_locales, {
|
|
4267
4417
|
zhTW: () => zh_TW_default,
|
|
@@ -4278,6 +4428,7 @@ __export(exports_locales, {
|
|
|
4278
4428
|
sv: () => sv_default,
|
|
4279
4429
|
sl: () => sl_default,
|
|
4280
4430
|
ru: () => ru_default,
|
|
4431
|
+
ro: () => ro_default,
|
|
4281
4432
|
pt: () => pt_default,
|
|
4282
4433
|
ps: () => ps_default,
|
|
4283
4434
|
pl: () => pl_default,
|
|
@@ -4297,6 +4448,7 @@ __export(exports_locales, {
|
|
|
4297
4448
|
id: () => id_default,
|
|
4298
4449
|
hy: () => hy_default,
|
|
4299
4450
|
hu: () => hu_default,
|
|
4451
|
+
hr: () => hr_default,
|
|
4300
4452
|
he: () => he_default,
|
|
4301
4453
|
frCA: () => fr_CA_default,
|
|
4302
4454
|
fr: () => fr_default,
|
|
@@ -4305,6 +4457,7 @@ __export(exports_locales, {
|
|
|
4305
4457
|
es: () => es_default,
|
|
4306
4458
|
eo: () => eo_default,
|
|
4307
4459
|
en: () => en_default,
|
|
4460
|
+
el: () => el_default,
|
|
4308
4461
|
de: () => de_default,
|
|
4309
4462
|
da: () => da_default,
|
|
4310
4463
|
cs: () => cs_default,
|
|
@@ -4315,7 +4468,7 @@ __export(exports_locales, {
|
|
|
4315
4468
|
ar: () => ar_default
|
|
4316
4469
|
});
|
|
4317
4470
|
|
|
4318
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4471
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
4319
4472
|
var error = () => {
|
|
4320
4473
|
const Sizable = {
|
|
4321
4474
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -4421,7 +4574,7 @@ function ar_default() {
|
|
|
4421
4574
|
localeError: error()
|
|
4422
4575
|
};
|
|
4423
4576
|
}
|
|
4424
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4577
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
4425
4578
|
var error2 = () => {
|
|
4426
4579
|
const Sizable = {
|
|
4427
4580
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -4526,7 +4679,7 @@ function az_default() {
|
|
|
4526
4679
|
localeError: error2()
|
|
4527
4680
|
};
|
|
4528
4681
|
}
|
|
4529
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4682
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
4530
4683
|
function getBelarusianPlural(count, one, few, many) {
|
|
4531
4684
|
const absCount = Math.abs(count);
|
|
4532
4685
|
const lastDigit = absCount % 10;
|
|
@@ -4682,7 +4835,7 @@ function be_default() {
|
|
|
4682
4835
|
localeError: error3()
|
|
4683
4836
|
};
|
|
4684
4837
|
}
|
|
4685
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4838
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
4686
4839
|
var error4 = () => {
|
|
4687
4840
|
const Sizable = {
|
|
4688
4841
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -4802,7 +4955,7 @@ function bg_default() {
|
|
|
4802
4955
|
localeError: error4()
|
|
4803
4956
|
};
|
|
4804
4957
|
}
|
|
4805
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
4958
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
4806
4959
|
var error5 = () => {
|
|
4807
4960
|
const Sizable = {
|
|
4808
4961
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -4909,7 +5062,7 @@ function ca_default() {
|
|
|
4909
5062
|
localeError: error5()
|
|
4910
5063
|
};
|
|
4911
5064
|
}
|
|
4912
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5065
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
4913
5066
|
var error6 = () => {
|
|
4914
5067
|
const Sizable = {
|
|
4915
5068
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -5020,7 +5173,7 @@ function cs_default() {
|
|
|
5020
5173
|
localeError: error6()
|
|
5021
5174
|
};
|
|
5022
5175
|
}
|
|
5023
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5176
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5024
5177
|
var error7 = () => {
|
|
5025
5178
|
const Sizable = {
|
|
5026
5179
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5135,7 +5288,7 @@ function da_default() {
|
|
|
5135
5288
|
localeError: error7()
|
|
5136
5289
|
};
|
|
5137
5290
|
}
|
|
5138
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5291
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
5139
5292
|
var error8 = () => {
|
|
5140
5293
|
const Sizable = {
|
|
5141
5294
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -5243,8 +5396,117 @@ function de_default() {
|
|
|
5243
5396
|
localeError: error8()
|
|
5244
5397
|
};
|
|
5245
5398
|
}
|
|
5246
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5399
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
5247
5400
|
var error9 = () => {
|
|
5401
|
+
const Sizable = {
|
|
5402
|
+
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
5403
|
+
file: { unit: "bytes", verb: "να έχει" },
|
|
5404
|
+
array: { unit: "στοιχεία", verb: "να έχει" },
|
|
5405
|
+
set: { unit: "στοιχεία", verb: "να έχει" },
|
|
5406
|
+
map: { unit: "καταχωρήσεις", verb: "να έχει" }
|
|
5407
|
+
};
|
|
5408
|
+
function getSizing(origin) {
|
|
5409
|
+
return Sizable[origin] ?? null;
|
|
5410
|
+
}
|
|
5411
|
+
const FormatDictionary = {
|
|
5412
|
+
regex: "είσοδος",
|
|
5413
|
+
email: "διεύθυνση email",
|
|
5414
|
+
url: "URL",
|
|
5415
|
+
emoji: "emoji",
|
|
5416
|
+
uuid: "UUID",
|
|
5417
|
+
uuidv4: "UUIDv4",
|
|
5418
|
+
uuidv6: "UUIDv6",
|
|
5419
|
+
nanoid: "nanoid",
|
|
5420
|
+
guid: "GUID",
|
|
5421
|
+
cuid: "cuid",
|
|
5422
|
+
cuid2: "cuid2",
|
|
5423
|
+
ulid: "ULID",
|
|
5424
|
+
xid: "XID",
|
|
5425
|
+
ksuid: "KSUID",
|
|
5426
|
+
datetime: "ISO ημερομηνία και ώρα",
|
|
5427
|
+
date: "ISO ημερομηνία",
|
|
5428
|
+
time: "ISO ώρα",
|
|
5429
|
+
duration: "ISO διάρκεια",
|
|
5430
|
+
ipv4: "διεύθυνση IPv4",
|
|
5431
|
+
ipv6: "διεύθυνση IPv6",
|
|
5432
|
+
mac: "διεύθυνση MAC",
|
|
5433
|
+
cidrv4: "εύρος IPv4",
|
|
5434
|
+
cidrv6: "εύρος IPv6",
|
|
5435
|
+
base64: "συμβολοσειρά κωδικοποιημένη σε base64",
|
|
5436
|
+
base64url: "συμβολοσειρά κωδικοποιημένη σε base64url",
|
|
5437
|
+
json_string: "συμβολοσειρά JSON",
|
|
5438
|
+
e164: "αριθμός E.164",
|
|
5439
|
+
jwt: "JWT",
|
|
5440
|
+
template_literal: "είσοδος"
|
|
5441
|
+
};
|
|
5442
|
+
const TypeDictionary = {
|
|
5443
|
+
nan: "NaN"
|
|
5444
|
+
};
|
|
5445
|
+
return (issue2) => {
|
|
5446
|
+
switch (issue2.code) {
|
|
5447
|
+
case "invalid_type": {
|
|
5448
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5449
|
+
const receivedType = parsedType(issue2.input);
|
|
5450
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5451
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5452
|
+
return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue2.expected}, λήφθηκε ${received}`;
|
|
5453
|
+
}
|
|
5454
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
|
|
5455
|
+
}
|
|
5456
|
+
case "invalid_value":
|
|
5457
|
+
if (issue2.values.length === 1)
|
|
5458
|
+
return `Μη έγκυρη είσοδος: αναμενόταν ${stringifyPrimitive(issue2.values[0])}`;
|
|
5459
|
+
return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${joinValues(issue2.values, "|")}`;
|
|
5460
|
+
case "too_big": {
|
|
5461
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5462
|
+
const sizing = getSizing(issue2.origin);
|
|
5463
|
+
if (sizing)
|
|
5464
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να έχει ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
|
|
5465
|
+
return `Πολύ μεγάλο: αναμενόταν ${issue2.origin ?? "τιμή"} να είναι ${adj}${issue2.maximum.toString()}`;
|
|
5466
|
+
}
|
|
5467
|
+
case "too_small": {
|
|
5468
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5469
|
+
const sizing = getSizing(issue2.origin);
|
|
5470
|
+
if (sizing) {
|
|
5471
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να έχει ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5472
|
+
}
|
|
5473
|
+
return `Πολύ μικρό: αναμενόταν ${issue2.origin} να είναι ${adj}${issue2.minimum.toString()}`;
|
|
5474
|
+
}
|
|
5475
|
+
case "invalid_format": {
|
|
5476
|
+
const _issue = issue2;
|
|
5477
|
+
if (_issue.format === "starts_with") {
|
|
5478
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
|
|
5479
|
+
}
|
|
5480
|
+
if (_issue.format === "ends_with")
|
|
5481
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
|
|
5482
|
+
if (_issue.format === "includes")
|
|
5483
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
|
|
5484
|
+
if (_issue.format === "regex")
|
|
5485
|
+
return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
|
|
5486
|
+
return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5487
|
+
}
|
|
5488
|
+
case "not_multiple_of":
|
|
5489
|
+
return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue2.divisor}`;
|
|
5490
|
+
case "unrecognized_keys":
|
|
5491
|
+
return `Άγνωστ${issue2.keys.length > 1 ? "α" : "ο"} κλειδ${issue2.keys.length > 1 ? "ιά" : "ί"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5492
|
+
case "invalid_key":
|
|
5493
|
+
return `Μη έγκυρο κλειδί στο ${issue2.origin}`;
|
|
5494
|
+
case "invalid_union":
|
|
5495
|
+
return "Μη έγκυρη είσοδος";
|
|
5496
|
+
case "invalid_element":
|
|
5497
|
+
return `Μη έγκυρη τιμή στο ${issue2.origin}`;
|
|
5498
|
+
default:
|
|
5499
|
+
return `Μη έγκυρη είσοδος`;
|
|
5500
|
+
}
|
|
5501
|
+
};
|
|
5502
|
+
};
|
|
5503
|
+
function el_default() {
|
|
5504
|
+
return {
|
|
5505
|
+
localeError: error9()
|
|
5506
|
+
};
|
|
5507
|
+
}
|
|
5508
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
5509
|
+
var error10 = () => {
|
|
5248
5510
|
const Sizable = {
|
|
5249
5511
|
string: { unit: "characters", verb: "to have" },
|
|
5250
5512
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5336,6 +5598,10 @@ var error9 = () => {
|
|
|
5336
5598
|
case "invalid_key":
|
|
5337
5599
|
return `Invalid key in ${issue2.origin}`;
|
|
5338
5600
|
case "invalid_union":
|
|
5601
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5602
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5603
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5604
|
+
}
|
|
5339
5605
|
return "Invalid input";
|
|
5340
5606
|
case "invalid_element":
|
|
5341
5607
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5346,11 +5612,11 @@ var error9 = () => {
|
|
|
5346
5612
|
};
|
|
5347
5613
|
function en_default() {
|
|
5348
5614
|
return {
|
|
5349
|
-
localeError:
|
|
5615
|
+
localeError: error10()
|
|
5350
5616
|
};
|
|
5351
5617
|
}
|
|
5352
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5353
|
-
var
|
|
5618
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
5619
|
+
var error11 = () => {
|
|
5354
5620
|
const Sizable = {
|
|
5355
5621
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5356
5622
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5455,11 +5721,11 @@ var error10 = () => {
|
|
|
5455
5721
|
};
|
|
5456
5722
|
function eo_default() {
|
|
5457
5723
|
return {
|
|
5458
|
-
localeError:
|
|
5724
|
+
localeError: error11()
|
|
5459
5725
|
};
|
|
5460
5726
|
}
|
|
5461
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5462
|
-
var
|
|
5727
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
5728
|
+
var error12 = () => {
|
|
5463
5729
|
const Sizable = {
|
|
5464
5730
|
string: { unit: "caracteres", verb: "tener" },
|
|
5465
5731
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5587,11 +5853,11 @@ var error11 = () => {
|
|
|
5587
5853
|
};
|
|
5588
5854
|
function es_default() {
|
|
5589
5855
|
return {
|
|
5590
|
-
localeError:
|
|
5856
|
+
localeError: error12()
|
|
5591
5857
|
};
|
|
5592
5858
|
}
|
|
5593
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5594
|
-
var
|
|
5859
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
5860
|
+
var error13 = () => {
|
|
5595
5861
|
const Sizable = {
|
|
5596
5862
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
5597
5863
|
file: { unit: "بایت", verb: "داشته باشد" },
|
|
@@ -5701,11 +5967,11 @@ var error12 = () => {
|
|
|
5701
5967
|
};
|
|
5702
5968
|
function fa_default() {
|
|
5703
5969
|
return {
|
|
5704
|
-
localeError:
|
|
5970
|
+
localeError: error13()
|
|
5705
5971
|
};
|
|
5706
5972
|
}
|
|
5707
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5708
|
-
var
|
|
5973
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
5974
|
+
var error14 = () => {
|
|
5709
5975
|
const Sizable = {
|
|
5710
5976
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
5711
5977
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -5813,11 +6079,11 @@ var error13 = () => {
|
|
|
5813
6079
|
};
|
|
5814
6080
|
function fi_default() {
|
|
5815
6081
|
return {
|
|
5816
|
-
localeError:
|
|
6082
|
+
localeError: error14()
|
|
5817
6083
|
};
|
|
5818
6084
|
}
|
|
5819
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5820
|
-
var
|
|
6085
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6086
|
+
var error15 = () => {
|
|
5821
6087
|
const Sizable = {
|
|
5822
6088
|
string: { unit: "caractères", verb: "avoir" },
|
|
5823
6089
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5858,9 +6124,27 @@ var error14 = () => {
|
|
|
5858
6124
|
template_literal: "entrée"
|
|
5859
6125
|
};
|
|
5860
6126
|
const TypeDictionary = {
|
|
5861
|
-
|
|
6127
|
+
string: "chaîne",
|
|
5862
6128
|
number: "nombre",
|
|
5863
|
-
|
|
6129
|
+
int: "entier",
|
|
6130
|
+
boolean: "booléen",
|
|
6131
|
+
bigint: "grand entier",
|
|
6132
|
+
symbol: "symbole",
|
|
6133
|
+
undefined: "indéfini",
|
|
6134
|
+
null: "null",
|
|
6135
|
+
never: "jamais",
|
|
6136
|
+
void: "vide",
|
|
6137
|
+
date: "date",
|
|
6138
|
+
array: "tableau",
|
|
6139
|
+
object: "objet",
|
|
6140
|
+
tuple: "tuple",
|
|
6141
|
+
record: "enregistrement",
|
|
6142
|
+
map: "carte",
|
|
6143
|
+
set: "ensemble",
|
|
6144
|
+
file: "fichier",
|
|
6145
|
+
nonoptional: "non-optionnel",
|
|
6146
|
+
nan: "NaN",
|
|
6147
|
+
function: "fonction"
|
|
5864
6148
|
};
|
|
5865
6149
|
return (issue2) => {
|
|
5866
6150
|
switch (issue2.code) {
|
|
@@ -5881,16 +6165,15 @@ var error14 = () => {
|
|
|
5881
6165
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5882
6166
|
const sizing = getSizing(issue2.origin);
|
|
5883
6167
|
if (sizing)
|
|
5884
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
5885
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
6168
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
|
|
6169
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.maximum.toString()}`;
|
|
5886
6170
|
}
|
|
5887
6171
|
case "too_small": {
|
|
5888
6172
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5889
6173
|
const sizing = getSizing(issue2.origin);
|
|
5890
|
-
if (sizing)
|
|
5891
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5892
|
-
}
|
|
5893
|
-
return `Trop petit : ${issue2.origin} doit être ${adj}${issue2.minimum.toString()}`;
|
|
6174
|
+
if (sizing)
|
|
6175
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6176
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit être ${adj}${issue2.minimum.toString()}`;
|
|
5894
6177
|
}
|
|
5895
6178
|
case "invalid_format": {
|
|
5896
6179
|
const _issue = issue2;
|
|
@@ -5921,11 +6204,11 @@ var error14 = () => {
|
|
|
5921
6204
|
};
|
|
5922
6205
|
function fr_default() {
|
|
5923
6206
|
return {
|
|
5924
|
-
localeError:
|
|
6207
|
+
localeError: error15()
|
|
5925
6208
|
};
|
|
5926
6209
|
}
|
|
5927
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
5928
|
-
var
|
|
6210
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6211
|
+
var error16 = () => {
|
|
5929
6212
|
const Sizable = {
|
|
5930
6213
|
string: { unit: "caractères", verb: "avoir" },
|
|
5931
6214
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6028,11 +6311,11 @@ var error15 = () => {
|
|
|
6028
6311
|
};
|
|
6029
6312
|
function fr_CA_default() {
|
|
6030
6313
|
return {
|
|
6031
|
-
localeError:
|
|
6314
|
+
localeError: error16()
|
|
6032
6315
|
};
|
|
6033
6316
|
}
|
|
6034
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6035
|
-
var
|
|
6317
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
6318
|
+
var error17 = () => {
|
|
6036
6319
|
const TypeNames = {
|
|
6037
6320
|
string: { label: "מחרוזת", gender: "f" },
|
|
6038
6321
|
number: { label: "מספר", gender: "m" },
|
|
@@ -6221,23 +6504,23 @@ var error16 = () => {
|
|
|
6221
6504
|
};
|
|
6222
6505
|
function he_default() {
|
|
6223
6506
|
return {
|
|
6224
|
-
localeError:
|
|
6507
|
+
localeError: error17()
|
|
6225
6508
|
};
|
|
6226
6509
|
}
|
|
6227
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6228
|
-
var
|
|
6510
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
6511
|
+
var error18 = () => {
|
|
6229
6512
|
const Sizable = {
|
|
6230
|
-
string: { unit: "
|
|
6231
|
-
file: { unit: "
|
|
6232
|
-
array: { unit: "
|
|
6233
|
-
set: { unit: "
|
|
6513
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6514
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6515
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6516
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6234
6517
|
};
|
|
6235
6518
|
function getSizing(origin) {
|
|
6236
6519
|
return Sizable[origin] ?? null;
|
|
6237
6520
|
}
|
|
6238
6521
|
const FormatDictionary = {
|
|
6239
|
-
regex: "
|
|
6240
|
-
email: "email
|
|
6522
|
+
regex: "unos",
|
|
6523
|
+
email: "email adresa",
|
|
6241
6524
|
url: "URL",
|
|
6242
6525
|
emoji: "emoji",
|
|
6243
6526
|
uuid: "UUID",
|
|
@@ -6250,25 +6533,37 @@ var error17 = () => {
|
|
|
6250
6533
|
ulid: "ULID",
|
|
6251
6534
|
xid: "XID",
|
|
6252
6535
|
ksuid: "KSUID",
|
|
6253
|
-
datetime: "ISO
|
|
6254
|
-
date: "ISO
|
|
6255
|
-
time: "ISO
|
|
6256
|
-
duration: "ISO
|
|
6257
|
-
ipv4: "IPv4
|
|
6258
|
-
ipv6: "IPv6
|
|
6259
|
-
cidrv4: "IPv4
|
|
6260
|
-
cidrv6: "IPv6
|
|
6261
|
-
base64: "base64
|
|
6262
|
-
base64url: "base64url
|
|
6263
|
-
json_string: "JSON
|
|
6264
|
-
e164: "E.164
|
|
6536
|
+
datetime: "ISO datum i vrijeme",
|
|
6537
|
+
date: "ISO datum",
|
|
6538
|
+
time: "ISO vrijeme",
|
|
6539
|
+
duration: "ISO trajanje",
|
|
6540
|
+
ipv4: "IPv4 adresa",
|
|
6541
|
+
ipv6: "IPv6 adresa",
|
|
6542
|
+
cidrv4: "IPv4 raspon",
|
|
6543
|
+
cidrv6: "IPv6 raspon",
|
|
6544
|
+
base64: "base64 kodirani tekst",
|
|
6545
|
+
base64url: "base64url kodirani tekst",
|
|
6546
|
+
json_string: "JSON tekst",
|
|
6547
|
+
e164: "E.164 broj",
|
|
6265
6548
|
jwt: "JWT",
|
|
6266
|
-
template_literal: "
|
|
6549
|
+
template_literal: "unos"
|
|
6267
6550
|
};
|
|
6268
6551
|
const TypeDictionary = {
|
|
6269
6552
|
nan: "NaN",
|
|
6270
|
-
|
|
6271
|
-
|
|
6553
|
+
string: "tekst",
|
|
6554
|
+
number: "broj",
|
|
6555
|
+
boolean: "boolean",
|
|
6556
|
+
array: "niz",
|
|
6557
|
+
object: "objekt",
|
|
6558
|
+
set: "skup",
|
|
6559
|
+
file: "datoteka",
|
|
6560
|
+
date: "datum",
|
|
6561
|
+
bigint: "bigint",
|
|
6562
|
+
symbol: "simbol",
|
|
6563
|
+
undefined: "undefined",
|
|
6564
|
+
null: "null",
|
|
6565
|
+
function: "funkcija",
|
|
6566
|
+
map: "mapa"
|
|
6272
6567
|
};
|
|
6273
6568
|
return (issue2) => {
|
|
6274
6569
|
switch (issue2.code) {
|
|
@@ -6277,7 +6572,117 @@ var error17 = () => {
|
|
|
6277
6572
|
const receivedType = parsedType(issue2.input);
|
|
6278
6573
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6279
6574
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6280
|
-
return
|
|
6575
|
+
return `Neispravan unos: očekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6576
|
+
}
|
|
6577
|
+
return `Neispravan unos: očekuje se ${expected}, a primljeno je ${received}`;
|
|
6578
|
+
}
|
|
6579
|
+
case "invalid_value":
|
|
6580
|
+
if (issue2.values.length === 1)
|
|
6581
|
+
return `Neispravna vrijednost: očekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6582
|
+
return `Neispravna opcija: očekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6583
|
+
case "too_big": {
|
|
6584
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6585
|
+
const sizing = getSizing(issue2.origin);
|
|
6586
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6587
|
+
if (sizing)
|
|
6588
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6589
|
+
return `Preveliko: očekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6590
|
+
}
|
|
6591
|
+
case "too_small": {
|
|
6592
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6593
|
+
const sizing = getSizing(issue2.origin);
|
|
6594
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6595
|
+
if (sizing) {
|
|
6596
|
+
return `Premalo: očekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6597
|
+
}
|
|
6598
|
+
return `Premalo: očekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6599
|
+
}
|
|
6600
|
+
case "invalid_format": {
|
|
6601
|
+
const _issue = issue2;
|
|
6602
|
+
if (_issue.format === "starts_with")
|
|
6603
|
+
return `Neispravan tekst: mora započinjati s "${_issue.prefix}"`;
|
|
6604
|
+
if (_issue.format === "ends_with")
|
|
6605
|
+
return `Neispravan tekst: mora završavati s "${_issue.suffix}"`;
|
|
6606
|
+
if (_issue.format === "includes")
|
|
6607
|
+
return `Neispravan tekst: mora sadržavati "${_issue.includes}"`;
|
|
6608
|
+
if (_issue.format === "regex")
|
|
6609
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6610
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6611
|
+
}
|
|
6612
|
+
case "not_multiple_of":
|
|
6613
|
+
return `Neispravan broj: mora biti višekratnik od ${issue2.divisor}`;
|
|
6614
|
+
case "unrecognized_keys":
|
|
6615
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i ključevi" : " ključ"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6616
|
+
case "invalid_key":
|
|
6617
|
+
return `Neispravan ključ u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6618
|
+
case "invalid_union":
|
|
6619
|
+
return "Neispravan unos";
|
|
6620
|
+
case "invalid_element":
|
|
6621
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6622
|
+
default:
|
|
6623
|
+
return `Neispravan unos`;
|
|
6624
|
+
}
|
|
6625
|
+
};
|
|
6626
|
+
};
|
|
6627
|
+
function hr_default() {
|
|
6628
|
+
return {
|
|
6629
|
+
localeError: error18()
|
|
6630
|
+
};
|
|
6631
|
+
}
|
|
6632
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
6633
|
+
var error19 = () => {
|
|
6634
|
+
const Sizable = {
|
|
6635
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6636
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6637
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6638
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6639
|
+
};
|
|
6640
|
+
function getSizing(origin) {
|
|
6641
|
+
return Sizable[origin] ?? null;
|
|
6642
|
+
}
|
|
6643
|
+
const FormatDictionary = {
|
|
6644
|
+
regex: "bemenet",
|
|
6645
|
+
email: "email cím",
|
|
6646
|
+
url: "URL",
|
|
6647
|
+
emoji: "emoji",
|
|
6648
|
+
uuid: "UUID",
|
|
6649
|
+
uuidv4: "UUIDv4",
|
|
6650
|
+
uuidv6: "UUIDv6",
|
|
6651
|
+
nanoid: "nanoid",
|
|
6652
|
+
guid: "GUID",
|
|
6653
|
+
cuid: "cuid",
|
|
6654
|
+
cuid2: "cuid2",
|
|
6655
|
+
ulid: "ULID",
|
|
6656
|
+
xid: "XID",
|
|
6657
|
+
ksuid: "KSUID",
|
|
6658
|
+
datetime: "ISO időbélyeg",
|
|
6659
|
+
date: "ISO dátum",
|
|
6660
|
+
time: "ISO idő",
|
|
6661
|
+
duration: "ISO időintervallum",
|
|
6662
|
+
ipv4: "IPv4 cím",
|
|
6663
|
+
ipv6: "IPv6 cím",
|
|
6664
|
+
cidrv4: "IPv4 tartomány",
|
|
6665
|
+
cidrv6: "IPv6 tartomány",
|
|
6666
|
+
base64: "base64-kódolt string",
|
|
6667
|
+
base64url: "base64url-kódolt string",
|
|
6668
|
+
json_string: "JSON string",
|
|
6669
|
+
e164: "E.164 szám",
|
|
6670
|
+
jwt: "JWT",
|
|
6671
|
+
template_literal: "bemenet"
|
|
6672
|
+
};
|
|
6673
|
+
const TypeDictionary = {
|
|
6674
|
+
nan: "NaN",
|
|
6675
|
+
number: "szám",
|
|
6676
|
+
array: "tömb"
|
|
6677
|
+
};
|
|
6678
|
+
return (issue2) => {
|
|
6679
|
+
switch (issue2.code) {
|
|
6680
|
+
case "invalid_type": {
|
|
6681
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6682
|
+
const receivedType = parsedType(issue2.input);
|
|
6683
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6684
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6685
|
+
return `Érvénytelen bemenet: a várt érték instanceof ${issue2.expected}, a kapott érték ${received}`;
|
|
6281
6686
|
}
|
|
6282
6687
|
return `Érvénytelen bemenet: a várt érték ${expected}, a kapott érték ${received}`;
|
|
6283
6688
|
}
|
|
@@ -6329,10 +6734,10 @@ var error17 = () => {
|
|
|
6329
6734
|
};
|
|
6330
6735
|
function hu_default() {
|
|
6331
6736
|
return {
|
|
6332
|
-
localeError:
|
|
6737
|
+
localeError: error19()
|
|
6333
6738
|
};
|
|
6334
6739
|
}
|
|
6335
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6740
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
6336
6741
|
function getArmenianPlural(count, one, many) {
|
|
6337
6742
|
return Math.abs(count) === 1 ? one : many;
|
|
6338
6743
|
}
|
|
@@ -6343,7 +6748,7 @@ function withDefiniteArticle(word) {
|
|
|
6343
6748
|
const lastChar = word[word.length - 1];
|
|
6344
6749
|
return word + (vowels.includes(lastChar) ? "ն" : "ը");
|
|
6345
6750
|
}
|
|
6346
|
-
var
|
|
6751
|
+
var error20 = () => {
|
|
6347
6752
|
const Sizable = {
|
|
6348
6753
|
string: {
|
|
6349
6754
|
unit: {
|
|
@@ -6476,11 +6881,11 @@ var error18 = () => {
|
|
|
6476
6881
|
};
|
|
6477
6882
|
function hy_default() {
|
|
6478
6883
|
return {
|
|
6479
|
-
localeError:
|
|
6884
|
+
localeError: error20()
|
|
6480
6885
|
};
|
|
6481
6886
|
}
|
|
6482
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6483
|
-
var
|
|
6887
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
6888
|
+
var error21 = () => {
|
|
6484
6889
|
const Sizable = {
|
|
6485
6890
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6486
6891
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6582,11 +6987,11 @@ var error19 = () => {
|
|
|
6582
6987
|
};
|
|
6583
6988
|
function id_default() {
|
|
6584
6989
|
return {
|
|
6585
|
-
localeError:
|
|
6990
|
+
localeError: error21()
|
|
6586
6991
|
};
|
|
6587
6992
|
}
|
|
6588
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6589
|
-
var
|
|
6993
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
6994
|
+
var error22 = () => {
|
|
6590
6995
|
const Sizable = {
|
|
6591
6996
|
string: { unit: "stafi", verb: "að hafa" },
|
|
6592
6997
|
file: { unit: "bæti", verb: "að hafa" },
|
|
@@ -6691,11 +7096,11 @@ var error20 = () => {
|
|
|
6691
7096
|
};
|
|
6692
7097
|
function is_default() {
|
|
6693
7098
|
return {
|
|
6694
|
-
localeError:
|
|
7099
|
+
localeError: error22()
|
|
6695
7100
|
};
|
|
6696
7101
|
}
|
|
6697
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6698
|
-
var
|
|
7102
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7103
|
+
var error23 = () => {
|
|
6699
7104
|
const Sizable = {
|
|
6700
7105
|
string: { unit: "caratteri", verb: "avere" },
|
|
6701
7106
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -6780,7 +7185,7 @@ var error21 = () => {
|
|
|
6780
7185
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
6781
7186
|
if (_issue.format === "regex")
|
|
6782
7187
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
6783
|
-
return `
|
|
7188
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6784
7189
|
}
|
|
6785
7190
|
case "not_multiple_of":
|
|
6786
7191
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -6799,11 +7204,11 @@ var error21 = () => {
|
|
|
6799
7204
|
};
|
|
6800
7205
|
function it_default() {
|
|
6801
7206
|
return {
|
|
6802
|
-
localeError:
|
|
7207
|
+
localeError: error23()
|
|
6803
7208
|
};
|
|
6804
7209
|
}
|
|
6805
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6806
|
-
var
|
|
7210
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7211
|
+
var error24 = () => {
|
|
6807
7212
|
const Sizable = {
|
|
6808
7213
|
string: { unit: "文字", verb: "である" },
|
|
6809
7214
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -6906,11 +7311,11 @@ var error22 = () => {
|
|
|
6906
7311
|
};
|
|
6907
7312
|
function ja_default() {
|
|
6908
7313
|
return {
|
|
6909
|
-
localeError:
|
|
7314
|
+
localeError: error24()
|
|
6910
7315
|
};
|
|
6911
7316
|
}
|
|
6912
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
6913
|
-
var
|
|
7317
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
7318
|
+
var error25 = () => {
|
|
6914
7319
|
const Sizable = {
|
|
6915
7320
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
6916
7321
|
file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" },
|
|
@@ -6943,9 +7348,9 @@ var error23 = () => {
|
|
|
6943
7348
|
ipv6: "IPv6 მისამართი",
|
|
6944
7349
|
cidrv4: "IPv4 დიაპაზონი",
|
|
6945
7350
|
cidrv6: "IPv6 დიაპაზონი",
|
|
6946
|
-
base64: "base64-კოდირებული
|
|
6947
|
-
base64url: "base64url-კოდირებული
|
|
6948
|
-
json_string: "JSON
|
|
7351
|
+
base64: "base64-კოდირებული ველი",
|
|
7352
|
+
base64url: "base64url-კოდირებული ველი",
|
|
7353
|
+
json_string: "JSON ველი",
|
|
6949
7354
|
e164: "E.164 ნომერი",
|
|
6950
7355
|
jwt: "JWT",
|
|
6951
7356
|
template_literal: "შეყვანა"
|
|
@@ -6953,7 +7358,7 @@ var error23 = () => {
|
|
|
6953
7358
|
const TypeDictionary = {
|
|
6954
7359
|
nan: "NaN",
|
|
6955
7360
|
number: "რიცხვი",
|
|
6956
|
-
string: "
|
|
7361
|
+
string: "ველი",
|
|
6957
7362
|
boolean: "ბულეანი",
|
|
6958
7363
|
function: "ფუნქცია",
|
|
6959
7364
|
array: "მასივი"
|
|
@@ -6991,14 +7396,14 @@ var error23 = () => {
|
|
|
6991
7396
|
case "invalid_format": {
|
|
6992
7397
|
const _issue = issue2;
|
|
6993
7398
|
if (_issue.format === "starts_with") {
|
|
6994
|
-
return `არასწორი
|
|
7399
|
+
return `არასწორი ველი: უნდა იწყებოდეს "${_issue.prefix}"-ით`;
|
|
6995
7400
|
}
|
|
6996
7401
|
if (_issue.format === "ends_with")
|
|
6997
|
-
return `არასწორი
|
|
7402
|
+
return `არასწორი ველი: უნდა მთავრდებოდეს "${_issue.suffix}"-ით`;
|
|
6998
7403
|
if (_issue.format === "includes")
|
|
6999
|
-
return `არასწორი
|
|
7404
|
+
return `არასწორი ველი: უნდა შეიცავდეს "${_issue.includes}"-ს`;
|
|
7000
7405
|
if (_issue.format === "regex")
|
|
7001
|
-
return `არასწორი
|
|
7406
|
+
return `არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${_issue.pattern}`;
|
|
7002
7407
|
return `არასწორი ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
7003
7408
|
}
|
|
7004
7409
|
case "not_multiple_of":
|
|
@@ -7018,11 +7423,11 @@ var error23 = () => {
|
|
|
7018
7423
|
};
|
|
7019
7424
|
function ka_default() {
|
|
7020
7425
|
return {
|
|
7021
|
-
localeError:
|
|
7426
|
+
localeError: error25()
|
|
7022
7427
|
};
|
|
7023
7428
|
}
|
|
7024
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7025
|
-
var
|
|
7429
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
7430
|
+
var error26 = () => {
|
|
7026
7431
|
const Sizable = {
|
|
7027
7432
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
7028
7433
|
file: { unit: "បៃ", verb: "គួរមាន" },
|
|
@@ -7128,16 +7533,16 @@ var error24 = () => {
|
|
|
7128
7533
|
};
|
|
7129
7534
|
function km_default() {
|
|
7130
7535
|
return {
|
|
7131
|
-
localeError:
|
|
7536
|
+
localeError: error26()
|
|
7132
7537
|
};
|
|
7133
7538
|
}
|
|
7134
7539
|
|
|
7135
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7540
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
7136
7541
|
function kh_default() {
|
|
7137
7542
|
return km_default();
|
|
7138
7543
|
}
|
|
7139
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7140
|
-
var
|
|
7544
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
7545
|
+
var error27 = () => {
|
|
7141
7546
|
const Sizable = {
|
|
7142
7547
|
string: { unit: "문자", verb: "to have" },
|
|
7143
7548
|
file: { unit: "바이트", verb: "to have" },
|
|
@@ -7244,10 +7649,10 @@ var error25 = () => {
|
|
|
7244
7649
|
};
|
|
7245
7650
|
function ko_default() {
|
|
7246
7651
|
return {
|
|
7247
|
-
localeError:
|
|
7652
|
+
localeError: error27()
|
|
7248
7653
|
};
|
|
7249
7654
|
}
|
|
7250
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7655
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
7251
7656
|
var capitalizeFirstCharacter = (text) => {
|
|
7252
7657
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
7253
7658
|
};
|
|
@@ -7261,7 +7666,7 @@ function getUnitTypeFromNumber(number2) {
|
|
|
7261
7666
|
return "one";
|
|
7262
7667
|
return "few";
|
|
7263
7668
|
}
|
|
7264
|
-
var
|
|
7669
|
+
var error28 = () => {
|
|
7265
7670
|
const Sizable = {
|
|
7266
7671
|
string: {
|
|
7267
7672
|
unit: {
|
|
@@ -7447,11 +7852,11 @@ var error26 = () => {
|
|
|
7447
7852
|
};
|
|
7448
7853
|
function lt_default() {
|
|
7449
7854
|
return {
|
|
7450
|
-
localeError:
|
|
7855
|
+
localeError: error28()
|
|
7451
7856
|
};
|
|
7452
7857
|
}
|
|
7453
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7454
|
-
var
|
|
7858
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
7859
|
+
var error29 = () => {
|
|
7455
7860
|
const Sizable = {
|
|
7456
7861
|
string: { unit: "знаци", verb: "да имаат" },
|
|
7457
7862
|
file: { unit: "бајти", verb: "да имаат" },
|
|
@@ -7556,11 +7961,11 @@ var error27 = () => {
|
|
|
7556
7961
|
};
|
|
7557
7962
|
function mk_default() {
|
|
7558
7963
|
return {
|
|
7559
|
-
localeError:
|
|
7964
|
+
localeError: error29()
|
|
7560
7965
|
};
|
|
7561
7966
|
}
|
|
7562
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7563
|
-
var
|
|
7967
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
7968
|
+
var error30 = () => {
|
|
7564
7969
|
const Sizable = {
|
|
7565
7970
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7566
7971
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7663,11 +8068,11 @@ var error28 = () => {
|
|
|
7663
8068
|
};
|
|
7664
8069
|
function ms_default() {
|
|
7665
8070
|
return {
|
|
7666
|
-
localeError:
|
|
8071
|
+
localeError: error30()
|
|
7667
8072
|
};
|
|
7668
8073
|
}
|
|
7669
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7670
|
-
var
|
|
8074
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8075
|
+
var error31 = () => {
|
|
7671
8076
|
const Sizable = {
|
|
7672
8077
|
string: { unit: "tekens", verb: "heeft" },
|
|
7673
8078
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -7773,11 +8178,11 @@ var error29 = () => {
|
|
|
7773
8178
|
};
|
|
7774
8179
|
function nl_default() {
|
|
7775
8180
|
return {
|
|
7776
|
-
localeError:
|
|
8181
|
+
localeError: error31()
|
|
7777
8182
|
};
|
|
7778
8183
|
}
|
|
7779
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7780
|
-
var
|
|
8184
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8185
|
+
var error32 = () => {
|
|
7781
8186
|
const Sizable = {
|
|
7782
8187
|
string: { unit: "tegn", verb: "å ha" },
|
|
7783
8188
|
file: { unit: "bytes", verb: "å ha" },
|
|
@@ -7881,11 +8286,11 @@ var error30 = () => {
|
|
|
7881
8286
|
};
|
|
7882
8287
|
function no_default() {
|
|
7883
8288
|
return {
|
|
7884
|
-
localeError:
|
|
8289
|
+
localeError: error32()
|
|
7885
8290
|
};
|
|
7886
8291
|
}
|
|
7887
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7888
|
-
var
|
|
8292
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
8293
|
+
var error33 = () => {
|
|
7889
8294
|
const Sizable = {
|
|
7890
8295
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
7891
8296
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
@@ -7990,11 +8395,11 @@ var error31 = () => {
|
|
|
7990
8395
|
};
|
|
7991
8396
|
function ota_default() {
|
|
7992
8397
|
return {
|
|
7993
|
-
localeError:
|
|
8398
|
+
localeError: error33()
|
|
7994
8399
|
};
|
|
7995
8400
|
}
|
|
7996
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
7997
|
-
var
|
|
8401
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
8402
|
+
var error34 = () => {
|
|
7998
8403
|
const Sizable = {
|
|
7999
8404
|
string: { unit: "توکي", verb: "ولري" },
|
|
8000
8405
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -8104,11 +8509,11 @@ var error32 = () => {
|
|
|
8104
8509
|
};
|
|
8105
8510
|
function ps_default() {
|
|
8106
8511
|
return {
|
|
8107
|
-
localeError:
|
|
8512
|
+
localeError: error34()
|
|
8108
8513
|
};
|
|
8109
8514
|
}
|
|
8110
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8111
|
-
var
|
|
8515
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
8516
|
+
var error35 = () => {
|
|
8112
8517
|
const Sizable = {
|
|
8113
8518
|
string: { unit: "znaków", verb: "mieć" },
|
|
8114
8519
|
file: { unit: "bajtów", verb: "mieć" },
|
|
@@ -8213,11 +8618,11 @@ var error33 = () => {
|
|
|
8213
8618
|
};
|
|
8214
8619
|
function pl_default() {
|
|
8215
8620
|
return {
|
|
8216
|
-
localeError:
|
|
8621
|
+
localeError: error35()
|
|
8217
8622
|
};
|
|
8218
8623
|
}
|
|
8219
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8220
|
-
var
|
|
8624
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
8625
|
+
var error36 = () => {
|
|
8221
8626
|
const Sizable = {
|
|
8222
8627
|
string: { unit: "caracteres", verb: "ter" },
|
|
8223
8628
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8321,10 +8726,129 @@ var error34 = () => {
|
|
|
8321
8726
|
};
|
|
8322
8727
|
function pt_default() {
|
|
8323
8728
|
return {
|
|
8324
|
-
localeError:
|
|
8729
|
+
localeError: error36()
|
|
8730
|
+
};
|
|
8731
|
+
}
|
|
8732
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
8733
|
+
var error37 = () => {
|
|
8734
|
+
const Sizable = {
|
|
8735
|
+
string: { unit: "caractere", verb: "să aibă" },
|
|
8736
|
+
file: { unit: "octeți", verb: "să aibă" },
|
|
8737
|
+
array: { unit: "elemente", verb: "să aibă" },
|
|
8738
|
+
set: { unit: "elemente", verb: "să aibă" },
|
|
8739
|
+
map: { unit: "intrări", verb: "să aibă" }
|
|
8740
|
+
};
|
|
8741
|
+
function getSizing(origin) {
|
|
8742
|
+
return Sizable[origin] ?? null;
|
|
8743
|
+
}
|
|
8744
|
+
const FormatDictionary = {
|
|
8745
|
+
regex: "intrare",
|
|
8746
|
+
email: "adresă de email",
|
|
8747
|
+
url: "URL",
|
|
8748
|
+
emoji: "emoji",
|
|
8749
|
+
uuid: "UUID",
|
|
8750
|
+
uuidv4: "UUIDv4",
|
|
8751
|
+
uuidv6: "UUIDv6",
|
|
8752
|
+
nanoid: "nanoid",
|
|
8753
|
+
guid: "GUID",
|
|
8754
|
+
cuid: "cuid",
|
|
8755
|
+
cuid2: "cuid2",
|
|
8756
|
+
ulid: "ULID",
|
|
8757
|
+
xid: "XID",
|
|
8758
|
+
ksuid: "KSUID",
|
|
8759
|
+
datetime: "dată și oră ISO",
|
|
8760
|
+
date: "dată ISO",
|
|
8761
|
+
time: "oră ISO",
|
|
8762
|
+
duration: "durată ISO",
|
|
8763
|
+
ipv4: "adresă IPv4",
|
|
8764
|
+
ipv6: "adresă IPv6",
|
|
8765
|
+
mac: "adresă MAC",
|
|
8766
|
+
cidrv4: "interval IPv4",
|
|
8767
|
+
cidrv6: "interval IPv6",
|
|
8768
|
+
base64: "șir codat base64",
|
|
8769
|
+
base64url: "șir codat base64url",
|
|
8770
|
+
json_string: "șir JSON",
|
|
8771
|
+
e164: "număr E.164",
|
|
8772
|
+
jwt: "JWT",
|
|
8773
|
+
template_literal: "intrare"
|
|
8774
|
+
};
|
|
8775
|
+
const TypeDictionary = {
|
|
8776
|
+
nan: "NaN",
|
|
8777
|
+
string: "șir",
|
|
8778
|
+
number: "număr",
|
|
8779
|
+
boolean: "boolean",
|
|
8780
|
+
function: "funcție",
|
|
8781
|
+
array: "matrice",
|
|
8782
|
+
object: "obiect",
|
|
8783
|
+
undefined: "nedefinit",
|
|
8784
|
+
symbol: "simbol",
|
|
8785
|
+
bigint: "număr mare",
|
|
8786
|
+
void: "void",
|
|
8787
|
+
never: "never",
|
|
8788
|
+
map: "hartă",
|
|
8789
|
+
set: "set"
|
|
8790
|
+
};
|
|
8791
|
+
return (issue2) => {
|
|
8792
|
+
switch (issue2.code) {
|
|
8793
|
+
case "invalid_type": {
|
|
8794
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8795
|
+
const receivedType = parsedType(issue2.input);
|
|
8796
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8797
|
+
return `Intrare invalidă: așteptat ${expected}, primit ${received}`;
|
|
8798
|
+
}
|
|
8799
|
+
case "invalid_value":
|
|
8800
|
+
if (issue2.values.length === 1)
|
|
8801
|
+
return `Intrare invalidă: așteptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8802
|
+
return `Opțiune invalidă: așteptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8803
|
+
case "too_big": {
|
|
8804
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
8805
|
+
const sizing = getSizing(issue2.origin);
|
|
8806
|
+
if (sizing)
|
|
8807
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8808
|
+
return `Prea mare: așteptat ca ${issue2.origin ?? "valoarea"} să fie ${adj}${issue2.maximum.toString()}`;
|
|
8809
|
+
}
|
|
8810
|
+
case "too_small": {
|
|
8811
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
8812
|
+
const sizing = getSizing(issue2.origin);
|
|
8813
|
+
if (sizing) {
|
|
8814
|
+
return `Prea mic: așteptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8815
|
+
}
|
|
8816
|
+
return `Prea mic: așteptat ca ${issue2.origin} să fie ${adj}${issue2.minimum.toString()}`;
|
|
8817
|
+
}
|
|
8818
|
+
case "invalid_format": {
|
|
8819
|
+
const _issue = issue2;
|
|
8820
|
+
if (_issue.format === "starts_with") {
|
|
8821
|
+
return `Șir invalid: trebuie să înceapă cu "${_issue.prefix}"`;
|
|
8822
|
+
}
|
|
8823
|
+
if (_issue.format === "ends_with")
|
|
8824
|
+
return `Șir invalid: trebuie să se termine cu "${_issue.suffix}"`;
|
|
8825
|
+
if (_issue.format === "includes")
|
|
8826
|
+
return `Șir invalid: trebuie să includă "${_issue.includes}"`;
|
|
8827
|
+
if (_issue.format === "regex")
|
|
8828
|
+
return `Șir invalid: trebuie să se potrivească cu modelul ${_issue.pattern}`;
|
|
8829
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8830
|
+
}
|
|
8831
|
+
case "not_multiple_of":
|
|
8832
|
+
return `Număr invalid: trebuie să fie multiplu de ${issue2.divisor}`;
|
|
8833
|
+
case "unrecognized_keys":
|
|
8834
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8835
|
+
case "invalid_key":
|
|
8836
|
+
return `Cheie invalidă în ${issue2.origin}`;
|
|
8837
|
+
case "invalid_union":
|
|
8838
|
+
return "Intrare invalidă";
|
|
8839
|
+
case "invalid_element":
|
|
8840
|
+
return `Valoare invalidă în ${issue2.origin}`;
|
|
8841
|
+
default:
|
|
8842
|
+
return `Intrare invalidă`;
|
|
8843
|
+
}
|
|
8844
|
+
};
|
|
8845
|
+
};
|
|
8846
|
+
function ro_default() {
|
|
8847
|
+
return {
|
|
8848
|
+
localeError: error37()
|
|
8325
8849
|
};
|
|
8326
8850
|
}
|
|
8327
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8851
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
8328
8852
|
function getRussianPlural(count, one, few, many) {
|
|
8329
8853
|
const absCount = Math.abs(count);
|
|
8330
8854
|
const lastDigit = absCount % 10;
|
|
@@ -8340,7 +8864,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8340
8864
|
}
|
|
8341
8865
|
return many;
|
|
8342
8866
|
}
|
|
8343
|
-
var
|
|
8867
|
+
var error38 = () => {
|
|
8344
8868
|
const Sizable = {
|
|
8345
8869
|
string: {
|
|
8346
8870
|
unit: {
|
|
@@ -8477,11 +9001,11 @@ var error35 = () => {
|
|
|
8477
9001
|
};
|
|
8478
9002
|
function ru_default() {
|
|
8479
9003
|
return {
|
|
8480
|
-
localeError:
|
|
9004
|
+
localeError: error38()
|
|
8481
9005
|
};
|
|
8482
9006
|
}
|
|
8483
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8484
|
-
var
|
|
9007
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9008
|
+
var error39 = () => {
|
|
8485
9009
|
const Sizable = {
|
|
8486
9010
|
string: { unit: "znakov", verb: "imeti" },
|
|
8487
9011
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8586,11 +9110,11 @@ var error36 = () => {
|
|
|
8586
9110
|
};
|
|
8587
9111
|
function sl_default() {
|
|
8588
9112
|
return {
|
|
8589
|
-
localeError:
|
|
9113
|
+
localeError: error39()
|
|
8590
9114
|
};
|
|
8591
9115
|
}
|
|
8592
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8593
|
-
var
|
|
9116
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9117
|
+
var error40 = () => {
|
|
8594
9118
|
const Sizable = {
|
|
8595
9119
|
string: { unit: "tecken", verb: "att ha" },
|
|
8596
9120
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8696,11 +9220,11 @@ var error37 = () => {
|
|
|
8696
9220
|
};
|
|
8697
9221
|
function sv_default() {
|
|
8698
9222
|
return {
|
|
8699
|
-
localeError:
|
|
9223
|
+
localeError: error40()
|
|
8700
9224
|
};
|
|
8701
9225
|
}
|
|
8702
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8703
|
-
var
|
|
9226
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9227
|
+
var error41 = () => {
|
|
8704
9228
|
const Sizable = {
|
|
8705
9229
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
8706
9230
|
file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -8806,11 +9330,11 @@ var error38 = () => {
|
|
|
8806
9330
|
};
|
|
8807
9331
|
function ta_default() {
|
|
8808
9332
|
return {
|
|
8809
|
-
localeError:
|
|
9333
|
+
localeError: error41()
|
|
8810
9334
|
};
|
|
8811
9335
|
}
|
|
8812
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8813
|
-
var
|
|
9336
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
9337
|
+
var error42 = () => {
|
|
8814
9338
|
const Sizable = {
|
|
8815
9339
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
8816
9340
|
file: { unit: "ไบต์", verb: "ควรมี" },
|
|
@@ -8916,11 +9440,11 @@ var error39 = () => {
|
|
|
8916
9440
|
};
|
|
8917
9441
|
function th_default() {
|
|
8918
9442
|
return {
|
|
8919
|
-
localeError:
|
|
9443
|
+
localeError: error42()
|
|
8920
9444
|
};
|
|
8921
9445
|
}
|
|
8922
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
8923
|
-
var
|
|
9446
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
9447
|
+
var error43 = () => {
|
|
8924
9448
|
const Sizable = {
|
|
8925
9449
|
string: { unit: "karakter", verb: "olmalı" },
|
|
8926
9450
|
file: { unit: "bayt", verb: "olmalı" },
|
|
@@ -9021,11 +9545,11 @@ var error40 = () => {
|
|
|
9021
9545
|
};
|
|
9022
9546
|
function tr_default() {
|
|
9023
9547
|
return {
|
|
9024
|
-
localeError:
|
|
9548
|
+
localeError: error43()
|
|
9025
9549
|
};
|
|
9026
9550
|
}
|
|
9027
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9028
|
-
var
|
|
9551
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
9552
|
+
var error44 = () => {
|
|
9029
9553
|
const Sizable = {
|
|
9030
9554
|
string: { unit: "символів", verb: "матиме" },
|
|
9031
9555
|
file: { unit: "байтів", verb: "матиме" },
|
|
@@ -9129,16 +9653,16 @@ var error41 = () => {
|
|
|
9129
9653
|
};
|
|
9130
9654
|
function uk_default() {
|
|
9131
9655
|
return {
|
|
9132
|
-
localeError:
|
|
9656
|
+
localeError: error44()
|
|
9133
9657
|
};
|
|
9134
9658
|
}
|
|
9135
9659
|
|
|
9136
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9660
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
9137
9661
|
function ua_default() {
|
|
9138
9662
|
return uk_default();
|
|
9139
9663
|
}
|
|
9140
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9141
|
-
var
|
|
9664
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
9665
|
+
var error45 = () => {
|
|
9142
9666
|
const Sizable = {
|
|
9143
9667
|
string: { unit: "حروف", verb: "ہونا" },
|
|
9144
9668
|
file: { unit: "بائٹس", verb: "ہونا" },
|
|
@@ -9244,16 +9768,17 @@ var error42 = () => {
|
|
|
9244
9768
|
};
|
|
9245
9769
|
function ur_default() {
|
|
9246
9770
|
return {
|
|
9247
|
-
localeError:
|
|
9771
|
+
localeError: error45()
|
|
9248
9772
|
};
|
|
9249
9773
|
}
|
|
9250
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9251
|
-
var
|
|
9774
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
9775
|
+
var error46 = () => {
|
|
9252
9776
|
const Sizable = {
|
|
9253
9777
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
9254
9778
|
file: { unit: "bayt", verb: "bo‘lishi kerak" },
|
|
9255
9779
|
array: { unit: "element", verb: "bo‘lishi kerak" },
|
|
9256
|
-
set: { unit: "element", verb: "bo‘lishi kerak" }
|
|
9780
|
+
set: { unit: "element", verb: "bo‘lishi kerak" },
|
|
9781
|
+
map: { unit: "yozuv", verb: "bo‘lishi kerak" }
|
|
9257
9782
|
};
|
|
9258
9783
|
function getSizing(origin) {
|
|
9259
9784
|
return Sizable[origin] ?? null;
|
|
@@ -9353,11 +9878,11 @@ var error43 = () => {
|
|
|
9353
9878
|
};
|
|
9354
9879
|
function uz_default() {
|
|
9355
9880
|
return {
|
|
9356
|
-
localeError:
|
|
9881
|
+
localeError: error46()
|
|
9357
9882
|
};
|
|
9358
9883
|
}
|
|
9359
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9360
|
-
var
|
|
9884
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
9885
|
+
var error47 = () => {
|
|
9361
9886
|
const Sizable = {
|
|
9362
9887
|
string: { unit: "ký tự", verb: "có" },
|
|
9363
9888
|
file: { unit: "byte", verb: "có" },
|
|
@@ -9461,11 +9986,11 @@ var error44 = () => {
|
|
|
9461
9986
|
};
|
|
9462
9987
|
function vi_default() {
|
|
9463
9988
|
return {
|
|
9464
|
-
localeError:
|
|
9989
|
+
localeError: error47()
|
|
9465
9990
|
};
|
|
9466
9991
|
}
|
|
9467
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9468
|
-
var
|
|
9992
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
9993
|
+
var error48 = () => {
|
|
9469
9994
|
const Sizable = {
|
|
9470
9995
|
string: { unit: "字符", verb: "包含" },
|
|
9471
9996
|
file: { unit: "字节", verb: "包含" },
|
|
@@ -9570,11 +10095,11 @@ var error45 = () => {
|
|
|
9570
10095
|
};
|
|
9571
10096
|
function zh_CN_default() {
|
|
9572
10097
|
return {
|
|
9573
|
-
localeError:
|
|
10098
|
+
localeError: error48()
|
|
9574
10099
|
};
|
|
9575
10100
|
}
|
|
9576
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9577
|
-
var
|
|
10101
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10102
|
+
var error49 = () => {
|
|
9578
10103
|
const Sizable = {
|
|
9579
10104
|
string: { unit: "字元", verb: "擁有" },
|
|
9580
10105
|
file: { unit: "位元組", verb: "擁有" },
|
|
@@ -9677,11 +10202,11 @@ var error46 = () => {
|
|
|
9677
10202
|
};
|
|
9678
10203
|
function zh_TW_default() {
|
|
9679
10204
|
return {
|
|
9680
|
-
localeError:
|
|
10205
|
+
localeError: error49()
|
|
9681
10206
|
};
|
|
9682
10207
|
}
|
|
9683
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9684
|
-
var
|
|
10208
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10209
|
+
var error50 = () => {
|
|
9685
10210
|
const Sizable = {
|
|
9686
10211
|
string: { unit: "àmi", verb: "ní" },
|
|
9687
10212
|
file: { unit: "bytes", verb: "ní" },
|
|
@@ -9784,11 +10309,11 @@ var error47 = () => {
|
|
|
9784
10309
|
};
|
|
9785
10310
|
function yo_default() {
|
|
9786
10311
|
return {
|
|
9787
|
-
localeError:
|
|
10312
|
+
localeError: error50()
|
|
9788
10313
|
};
|
|
9789
10314
|
}
|
|
9790
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
9791
|
-
var
|
|
10315
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
10316
|
+
var _a2;
|
|
9792
10317
|
var $output = Symbol("ZodOutput");
|
|
9793
10318
|
var $input = Symbol("ZodInput");
|
|
9794
10319
|
|
|
@@ -9835,9 +10360,9 @@ class $ZodRegistry {
|
|
|
9835
10360
|
function registry() {
|
|
9836
10361
|
return new $ZodRegistry;
|
|
9837
10362
|
}
|
|
9838
|
-
(
|
|
10363
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
9839
10364
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9840
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
10365
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
9841
10366
|
function _string(Class2, params) {
|
|
9842
10367
|
return new Class2({
|
|
9843
10368
|
type: "string",
|
|
@@ -10641,7 +11166,7 @@ function _refine(Class2, fn, _params) {
|
|
|
10641
11166
|
});
|
|
10642
11167
|
return schema;
|
|
10643
11168
|
}
|
|
10644
|
-
function _superRefine(fn) {
|
|
11169
|
+
function _superRefine(fn, params) {
|
|
10645
11170
|
const ch = _check((payload) => {
|
|
10646
11171
|
payload.addIssue = (issue2) => {
|
|
10647
11172
|
if (typeof issue2 === "string") {
|
|
@@ -10658,7 +11183,7 @@ function _superRefine(fn) {
|
|
|
10658
11183
|
}
|
|
10659
11184
|
};
|
|
10660
11185
|
return fn(payload.value, payload);
|
|
10661
|
-
});
|
|
11186
|
+
}, params);
|
|
10662
11187
|
return ch;
|
|
10663
11188
|
}
|
|
10664
11189
|
function _check(fn, params) {
|
|
@@ -10757,7 +11282,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10757
11282
|
const inst = new Class2(def);
|
|
10758
11283
|
return inst;
|
|
10759
11284
|
}
|
|
10760
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
11285
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
10761
11286
|
function initializeContext(params) {
|
|
10762
11287
|
let target = params?.target ?? "draft-2020-12";
|
|
10763
11288
|
if (target === "draft-4")
|
|
@@ -10779,7 +11304,7 @@ function initializeContext(params) {
|
|
|
10779
11304
|
};
|
|
10780
11305
|
}
|
|
10781
11306
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
10782
|
-
var
|
|
11307
|
+
var _a3;
|
|
10783
11308
|
const def = schema._zod.def;
|
|
10784
11309
|
const seen = ctx.seen.get(schema);
|
|
10785
11310
|
if (seen) {
|
|
@@ -10826,8 +11351,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
10826
11351
|
delete result.schema.examples;
|
|
10827
11352
|
delete result.schema.default;
|
|
10828
11353
|
}
|
|
10829
|
-
if (ctx.io === "input" && result.schema
|
|
10830
|
-
(
|
|
11354
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11355
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
10831
11356
|
delete result.schema._prefault;
|
|
10832
11357
|
const _result = ctx.seen.get(schema);
|
|
10833
11358
|
return _result.schema;
|
|
@@ -11004,10 +11529,15 @@ function finalize(ctx, schema) {
|
|
|
11004
11529
|
result.$id = ctx.external.uri(id);
|
|
11005
11530
|
}
|
|
11006
11531
|
Object.assign(result, root.def ?? root.schema);
|
|
11532
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11533
|
+
if (rootMetaId !== undefined && result.id === rootMetaId)
|
|
11534
|
+
delete result.id;
|
|
11007
11535
|
const defs = ctx.external?.defs ?? {};
|
|
11008
11536
|
for (const entry of ctx.seen.entries()) {
|
|
11009
11537
|
const seen = entry[1];
|
|
11010
11538
|
if (seen.def && seen.defId) {
|
|
11539
|
+
if (seen.def.id === seen.defId)
|
|
11540
|
+
delete seen.def.id;
|
|
11011
11541
|
defs[seen.defId] = seen.def;
|
|
11012
11542
|
}
|
|
11013
11543
|
}
|
|
@@ -11062,6 +11592,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11062
11592
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11063
11593
|
}
|
|
11064
11594
|
if (def.type === "pipe") {
|
|
11595
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11596
|
+
return true;
|
|
11065
11597
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11066
11598
|
}
|
|
11067
11599
|
if (def.type === "object") {
|
|
@@ -11102,7 +11634,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
11102
11634
|
extractDefs(ctx, schema);
|
|
11103
11635
|
return finalize(ctx, schema);
|
|
11104
11636
|
};
|
|
11105
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
11637
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
11106
11638
|
var formatMap = {
|
|
11107
11639
|
guid: "uuid",
|
|
11108
11640
|
url: "uri",
|
|
@@ -11149,39 +11681,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11149
11681
|
json.type = "integer";
|
|
11150
11682
|
else
|
|
11151
11683
|
json.type = "number";
|
|
11152
|
-
|
|
11153
|
-
|
|
11684
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
11685
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
11686
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11687
|
+
if (exMin) {
|
|
11688
|
+
if (legacy) {
|
|
11154
11689
|
json.minimum = exclusiveMinimum;
|
|
11155
11690
|
json.exclusiveMinimum = true;
|
|
11156
11691
|
} else {
|
|
11157
11692
|
json.exclusiveMinimum = exclusiveMinimum;
|
|
11158
11693
|
}
|
|
11159
|
-
}
|
|
11160
|
-
if (typeof minimum === "number") {
|
|
11694
|
+
} else if (typeof minimum === "number") {
|
|
11161
11695
|
json.minimum = minimum;
|
|
11162
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11163
|
-
if (exclusiveMinimum >= minimum)
|
|
11164
|
-
delete json.minimum;
|
|
11165
|
-
else
|
|
11166
|
-
delete json.exclusiveMinimum;
|
|
11167
|
-
}
|
|
11168
11696
|
}
|
|
11169
|
-
if (
|
|
11170
|
-
if (
|
|
11697
|
+
if (exMax) {
|
|
11698
|
+
if (legacy) {
|
|
11171
11699
|
json.maximum = exclusiveMaximum;
|
|
11172
11700
|
json.exclusiveMaximum = true;
|
|
11173
11701
|
} else {
|
|
11174
11702
|
json.exclusiveMaximum = exclusiveMaximum;
|
|
11175
11703
|
}
|
|
11176
|
-
}
|
|
11177
|
-
if (typeof maximum === "number") {
|
|
11704
|
+
} else if (typeof maximum === "number") {
|
|
11178
11705
|
json.maximum = maximum;
|
|
11179
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11180
|
-
if (exclusiveMaximum <= maximum)
|
|
11181
|
-
delete json.maximum;
|
|
11182
|
-
else
|
|
11183
|
-
delete json.exclusiveMaximum;
|
|
11184
|
-
}
|
|
11185
11706
|
}
|
|
11186
11707
|
if (typeof multipleOf === "number")
|
|
11187
11708
|
json.multipleOf = multipleOf;
|
|
@@ -11349,7 +11870,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11349
11870
|
if (typeof maximum === "number")
|
|
11350
11871
|
json.maxItems = maximum;
|
|
11351
11872
|
json.type = "array";
|
|
11352
|
-
json.items = process2(def.element, ctx, {
|
|
11873
|
+
json.items = process2(def.element, ctx, {
|
|
11874
|
+
...params,
|
|
11875
|
+
path: [...params.path, "items"]
|
|
11876
|
+
});
|
|
11353
11877
|
};
|
|
11354
11878
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11355
11879
|
const json = _json;
|
|
@@ -11542,7 +12066,8 @@ var catchProcessor = (schema, ctx, json, params) => {
|
|
|
11542
12066
|
};
|
|
11543
12067
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
11544
12068
|
const def = schema._zod.def;
|
|
11545
|
-
const
|
|
12069
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12070
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11546
12071
|
process2(innerType, ctx, params);
|
|
11547
12072
|
const seen = ctx.seen.get(schema);
|
|
11548
12073
|
seen.ref = innerType;
|
|
@@ -11647,7 +12172,7 @@ function toJSONSchema(input, params) {
|
|
|
11647
12172
|
extractDefs(ctx, input);
|
|
11648
12173
|
return finalize(ctx, input);
|
|
11649
12174
|
}
|
|
11650
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12175
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
11651
12176
|
class JSONSchemaGenerator {
|
|
11652
12177
|
get metadataRegistry() {
|
|
11653
12178
|
return this.ctx.metadataRegistry;
|
|
@@ -11706,9 +12231,9 @@ class JSONSchemaGenerator {
|
|
|
11706
12231
|
return plainResult;
|
|
11707
12232
|
}
|
|
11708
12233
|
}
|
|
11709
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12234
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
11710
12235
|
var exports_json_schema = {};
|
|
11711
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12236
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
11712
12237
|
var exports_schemas2 = {};
|
|
11713
12238
|
__export(exports_schemas2, {
|
|
11714
12239
|
xor: () => xor,
|
|
@@ -11768,6 +12293,7 @@ __export(exports_schemas2, {
|
|
|
11768
12293
|
json: () => json,
|
|
11769
12294
|
ipv6: () => ipv62,
|
|
11770
12295
|
ipv4: () => ipv42,
|
|
12296
|
+
invertCodec: () => invertCodec,
|
|
11771
12297
|
intersection: () => intersection,
|
|
11772
12298
|
int64: () => int64,
|
|
11773
12299
|
int32: () => int32,
|
|
@@ -11828,6 +12354,7 @@ __export(exports_schemas2, {
|
|
|
11828
12354
|
ZodRecord: () => ZodRecord,
|
|
11829
12355
|
ZodReadonly: () => ZodReadonly,
|
|
11830
12356
|
ZodPromise: () => ZodPromise,
|
|
12357
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
11831
12358
|
ZodPrefault: () => ZodPrefault,
|
|
11832
12359
|
ZodPipe: () => ZodPipe,
|
|
11833
12360
|
ZodOptional: () => ZodOptional,
|
|
@@ -11877,7 +12404,7 @@ __export(exports_schemas2, {
|
|
|
11877
12404
|
ZodAny: () => ZodAny
|
|
11878
12405
|
});
|
|
11879
12406
|
|
|
11880
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12407
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
11881
12408
|
var exports_checks2 = {};
|
|
11882
12409
|
__export(exports_checks2, {
|
|
11883
12410
|
uppercase: () => _uppercase,
|
|
@@ -11911,7 +12438,7 @@ __export(exports_checks2, {
|
|
|
11911
12438
|
endsWith: () => _endsWith
|
|
11912
12439
|
});
|
|
11913
12440
|
|
|
11914
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12441
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
11915
12442
|
var exports_iso = {};
|
|
11916
12443
|
__export(exports_iso, {
|
|
11917
12444
|
time: () => time2,
|
|
@@ -11952,7 +12479,7 @@ function duration2(params) {
|
|
|
11952
12479
|
return _isoDuration(ZodISODuration, params);
|
|
11953
12480
|
}
|
|
11954
12481
|
|
|
11955
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12482
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
11956
12483
|
var initializer2 = (inst, issues) => {
|
|
11957
12484
|
$ZodError.init(inst, issues);
|
|
11958
12485
|
inst.name = "ZodError";
|
|
@@ -11982,12 +12509,12 @@ var initializer2 = (inst, issues) => {
|
|
|
11982
12509
|
}
|
|
11983
12510
|
});
|
|
11984
12511
|
};
|
|
11985
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
11986
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
12512
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
12513
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
11987
12514
|
Parent: Error
|
|
11988
12515
|
});
|
|
11989
12516
|
|
|
11990
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12517
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
11991
12518
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
11992
12519
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
11993
12520
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -12001,7 +12528,44 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
12001
12528
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
12002
12529
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12003
12530
|
|
|
12004
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
12531
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
12532
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
12533
|
+
function _installLazyMethods(inst, group, methods) {
|
|
12534
|
+
const proto = Object.getPrototypeOf(inst);
|
|
12535
|
+
let installed = _installedGroups.get(proto);
|
|
12536
|
+
if (!installed) {
|
|
12537
|
+
installed = new Set;
|
|
12538
|
+
_installedGroups.set(proto, installed);
|
|
12539
|
+
}
|
|
12540
|
+
if (installed.has(group))
|
|
12541
|
+
return;
|
|
12542
|
+
installed.add(group);
|
|
12543
|
+
for (const key in methods) {
|
|
12544
|
+
const fn = methods[key];
|
|
12545
|
+
Object.defineProperty(proto, key, {
|
|
12546
|
+
configurable: true,
|
|
12547
|
+
enumerable: false,
|
|
12548
|
+
get() {
|
|
12549
|
+
const bound = fn.bind(this);
|
|
12550
|
+
Object.defineProperty(this, key, {
|
|
12551
|
+
configurable: true,
|
|
12552
|
+
writable: true,
|
|
12553
|
+
enumerable: true,
|
|
12554
|
+
value: bound
|
|
12555
|
+
});
|
|
12556
|
+
return bound;
|
|
12557
|
+
},
|
|
12558
|
+
set(v) {
|
|
12559
|
+
Object.defineProperty(this, key, {
|
|
12560
|
+
configurable: true,
|
|
12561
|
+
writable: true,
|
|
12562
|
+
enumerable: true,
|
|
12563
|
+
value: v
|
|
12564
|
+
});
|
|
12565
|
+
}
|
|
12566
|
+
});
|
|
12567
|
+
}
|
|
12568
|
+
}
|
|
12005
12569
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12006
12570
|
$ZodType.init(inst, def);
|
|
12007
12571
|
Object.assign(inst["~standard"], {
|
|
@@ -12014,23 +12578,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12014
12578
|
inst.def = def;
|
|
12015
12579
|
inst.type = def.type;
|
|
12016
12580
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12017
|
-
inst.check = (...checks2) => {
|
|
12018
|
-
return inst.clone(exports_util.mergeDefs(def, {
|
|
12019
|
-
checks: [
|
|
12020
|
-
...def.checks ?? [],
|
|
12021
|
-
...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12022
|
-
]
|
|
12023
|
-
}), {
|
|
12024
|
-
parent: true
|
|
12025
|
-
});
|
|
12026
|
-
};
|
|
12027
|
-
inst.with = inst.check;
|
|
12028
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12029
|
-
inst.brand = () => inst;
|
|
12030
|
-
inst.register = (reg, meta2) => {
|
|
12031
|
-
reg.add(inst, meta2);
|
|
12032
|
-
return inst;
|
|
12033
|
-
};
|
|
12034
12581
|
inst.parse = (data, params) => parse3(inst, data, params, { callee: inst.parse });
|
|
12035
12582
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12036
12583
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12044,45 +12591,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12044
12591
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12045
12592
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12046
12593
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12047
|
-
inst
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12594
|
+
_installLazyMethods(inst, "ZodType", {
|
|
12595
|
+
check(...chks) {
|
|
12596
|
+
const def2 = this.def;
|
|
12597
|
+
return this.clone(exports_util.mergeDefs(def2, {
|
|
12598
|
+
checks: [
|
|
12599
|
+
...def2.checks ?? [],
|
|
12600
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12601
|
+
]
|
|
12602
|
+
}), { parent: true });
|
|
12603
|
+
},
|
|
12604
|
+
with(...chks) {
|
|
12605
|
+
return this.check(...chks);
|
|
12606
|
+
},
|
|
12607
|
+
clone(def2, params) {
|
|
12608
|
+
return clone(this, def2, params);
|
|
12609
|
+
},
|
|
12610
|
+
brand() {
|
|
12611
|
+
return this;
|
|
12612
|
+
},
|
|
12613
|
+
register(reg, meta2) {
|
|
12614
|
+
reg.add(this, meta2);
|
|
12615
|
+
return this;
|
|
12616
|
+
},
|
|
12617
|
+
refine(check, params) {
|
|
12618
|
+
return this.check(refine(check, params));
|
|
12619
|
+
},
|
|
12620
|
+
superRefine(refinement, params) {
|
|
12621
|
+
return this.check(superRefine(refinement, params));
|
|
12622
|
+
},
|
|
12623
|
+
overwrite(fn) {
|
|
12624
|
+
return this.check(_overwrite(fn));
|
|
12625
|
+
},
|
|
12626
|
+
optional() {
|
|
12627
|
+
return optional(this);
|
|
12628
|
+
},
|
|
12629
|
+
exactOptional() {
|
|
12630
|
+
return exactOptional(this);
|
|
12631
|
+
},
|
|
12632
|
+
nullable() {
|
|
12633
|
+
return nullable(this);
|
|
12634
|
+
},
|
|
12635
|
+
nullish() {
|
|
12636
|
+
return optional(nullable(this));
|
|
12637
|
+
},
|
|
12638
|
+
nonoptional(params) {
|
|
12639
|
+
return nonoptional(this, params);
|
|
12640
|
+
},
|
|
12641
|
+
array() {
|
|
12642
|
+
return array(this);
|
|
12643
|
+
},
|
|
12644
|
+
or(arg) {
|
|
12645
|
+
return union([this, arg]);
|
|
12646
|
+
},
|
|
12647
|
+
and(arg) {
|
|
12648
|
+
return intersection(this, arg);
|
|
12649
|
+
},
|
|
12650
|
+
transform(tx) {
|
|
12651
|
+
return pipe(this, transform(tx));
|
|
12652
|
+
},
|
|
12653
|
+
default(d) {
|
|
12654
|
+
return _default2(this, d);
|
|
12655
|
+
},
|
|
12656
|
+
prefault(d) {
|
|
12657
|
+
return prefault(this, d);
|
|
12658
|
+
},
|
|
12659
|
+
catch(params) {
|
|
12660
|
+
return _catch2(this, params);
|
|
12661
|
+
},
|
|
12662
|
+
pipe(target) {
|
|
12663
|
+
return pipe(this, target);
|
|
12664
|
+
},
|
|
12665
|
+
readonly() {
|
|
12666
|
+
return readonly(this);
|
|
12667
|
+
},
|
|
12668
|
+
describe(description) {
|
|
12669
|
+
const cl = this.clone();
|
|
12670
|
+
globalRegistry.add(cl, { description });
|
|
12671
|
+
return cl;
|
|
12672
|
+
},
|
|
12673
|
+
meta(...args) {
|
|
12674
|
+
if (args.length === 0)
|
|
12675
|
+
return globalRegistry.get(this);
|
|
12676
|
+
const cl = this.clone();
|
|
12677
|
+
globalRegistry.add(cl, args[0]);
|
|
12678
|
+
return cl;
|
|
12679
|
+
},
|
|
12680
|
+
isOptional() {
|
|
12681
|
+
return this.safeParse(undefined).success;
|
|
12682
|
+
},
|
|
12683
|
+
isNullable() {
|
|
12684
|
+
return this.safeParse(null).success;
|
|
12685
|
+
},
|
|
12686
|
+
apply(fn) {
|
|
12687
|
+
return fn(this);
|
|
12688
|
+
}
|
|
12689
|
+
});
|
|
12069
12690
|
Object.defineProperty(inst, "description", {
|
|
12070
12691
|
get() {
|
|
12071
12692
|
return globalRegistry.get(inst)?.description;
|
|
12072
12693
|
},
|
|
12073
12694
|
configurable: true
|
|
12074
12695
|
});
|
|
12075
|
-
inst.meta = (...args) => {
|
|
12076
|
-
if (args.length === 0) {
|
|
12077
|
-
return globalRegistry.get(inst);
|
|
12078
|
-
}
|
|
12079
|
-
const cl = inst.clone();
|
|
12080
|
-
globalRegistry.add(cl, args[0]);
|
|
12081
|
-
return cl;
|
|
12082
|
-
};
|
|
12083
|
-
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
12084
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12085
|
-
inst.apply = (fn) => fn(inst);
|
|
12086
12696
|
return inst;
|
|
12087
12697
|
});
|
|
12088
12698
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12093,21 +12703,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12093
12703
|
inst.format = bag.format ?? null;
|
|
12094
12704
|
inst.minLength = bag.minimum ?? null;
|
|
12095
12705
|
inst.maxLength = bag.maximum ?? null;
|
|
12096
|
-
inst
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12706
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
12707
|
+
regex(...args) {
|
|
12708
|
+
return this.check(_regex(...args));
|
|
12709
|
+
},
|
|
12710
|
+
includes(...args) {
|
|
12711
|
+
return this.check(_includes(...args));
|
|
12712
|
+
},
|
|
12713
|
+
startsWith(...args) {
|
|
12714
|
+
return this.check(_startsWith(...args));
|
|
12715
|
+
},
|
|
12716
|
+
endsWith(...args) {
|
|
12717
|
+
return this.check(_endsWith(...args));
|
|
12718
|
+
},
|
|
12719
|
+
min(...args) {
|
|
12720
|
+
return this.check(_minLength(...args));
|
|
12721
|
+
},
|
|
12722
|
+
max(...args) {
|
|
12723
|
+
return this.check(_maxLength(...args));
|
|
12724
|
+
},
|
|
12725
|
+
length(...args) {
|
|
12726
|
+
return this.check(_length(...args));
|
|
12727
|
+
},
|
|
12728
|
+
nonempty(...args) {
|
|
12729
|
+
return this.check(_minLength(1, ...args));
|
|
12730
|
+
},
|
|
12731
|
+
lowercase(params) {
|
|
12732
|
+
return this.check(_lowercase(params));
|
|
12733
|
+
},
|
|
12734
|
+
uppercase(params) {
|
|
12735
|
+
return this.check(_uppercase(params));
|
|
12736
|
+
},
|
|
12737
|
+
trim() {
|
|
12738
|
+
return this.check(_trim());
|
|
12739
|
+
},
|
|
12740
|
+
normalize(...args) {
|
|
12741
|
+
return this.check(_normalize(...args));
|
|
12742
|
+
},
|
|
12743
|
+
toLowerCase() {
|
|
12744
|
+
return this.check(_toLowerCase());
|
|
12745
|
+
},
|
|
12746
|
+
toUpperCase() {
|
|
12747
|
+
return this.check(_toUpperCase());
|
|
12748
|
+
},
|
|
12749
|
+
slugify() {
|
|
12750
|
+
return this.check(_slugify());
|
|
12751
|
+
}
|
|
12752
|
+
});
|
|
12111
12753
|
});
|
|
12112
12754
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12113
12755
|
$ZodString.init(inst, def);
|
|
@@ -12186,7 +12828,7 @@ function url(params) {
|
|
|
12186
12828
|
}
|
|
12187
12829
|
function httpUrl(params) {
|
|
12188
12830
|
return _url(ZodURL, {
|
|
12189
|
-
protocol:
|
|
12831
|
+
protocol: exports_regexes.httpProtocol,
|
|
12190
12832
|
hostname: exports_regexes.domain,
|
|
12191
12833
|
...exports_util.normalizeParams(params)
|
|
12192
12834
|
});
|
|
@@ -12328,21 +12970,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12328
12970
|
$ZodNumber.init(inst, def);
|
|
12329
12971
|
ZodType.init(inst, def);
|
|
12330
12972
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
12331
|
-
inst
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12973
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
12974
|
+
gt(value, params) {
|
|
12975
|
+
return this.check(_gt(value, params));
|
|
12976
|
+
},
|
|
12977
|
+
gte(value, params) {
|
|
12978
|
+
return this.check(_gte(value, params));
|
|
12979
|
+
},
|
|
12980
|
+
min(value, params) {
|
|
12981
|
+
return this.check(_gte(value, params));
|
|
12982
|
+
},
|
|
12983
|
+
lt(value, params) {
|
|
12984
|
+
return this.check(_lt(value, params));
|
|
12985
|
+
},
|
|
12986
|
+
lte(value, params) {
|
|
12987
|
+
return this.check(_lte(value, params));
|
|
12988
|
+
},
|
|
12989
|
+
max(value, params) {
|
|
12990
|
+
return this.check(_lte(value, params));
|
|
12991
|
+
},
|
|
12992
|
+
int(params) {
|
|
12993
|
+
return this.check(int(params));
|
|
12994
|
+
},
|
|
12995
|
+
safe(params) {
|
|
12996
|
+
return this.check(int(params));
|
|
12997
|
+
},
|
|
12998
|
+
positive(params) {
|
|
12999
|
+
return this.check(_gt(0, params));
|
|
13000
|
+
},
|
|
13001
|
+
nonnegative(params) {
|
|
13002
|
+
return this.check(_gte(0, params));
|
|
13003
|
+
},
|
|
13004
|
+
negative(params) {
|
|
13005
|
+
return this.check(_lt(0, params));
|
|
13006
|
+
},
|
|
13007
|
+
nonpositive(params) {
|
|
13008
|
+
return this.check(_lte(0, params));
|
|
13009
|
+
},
|
|
13010
|
+
multipleOf(value, params) {
|
|
13011
|
+
return this.check(_multipleOf(value, params));
|
|
13012
|
+
},
|
|
13013
|
+
step(value, params) {
|
|
13014
|
+
return this.check(_multipleOf(value, params));
|
|
13015
|
+
},
|
|
13016
|
+
finite() {
|
|
13017
|
+
return this;
|
|
13018
|
+
}
|
|
13019
|
+
});
|
|
12346
13020
|
const bag = inst._zod.bag;
|
|
12347
13021
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12348
13022
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -12489,11 +13163,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
12489
13163
|
ZodType.init(inst, def);
|
|
12490
13164
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
12491
13165
|
inst.element = def.element;
|
|
12492
|
-
inst
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
13166
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13167
|
+
min(n, params) {
|
|
13168
|
+
return this.check(_minLength(n, params));
|
|
13169
|
+
},
|
|
13170
|
+
nonempty(params) {
|
|
13171
|
+
return this.check(_minLength(1, params));
|
|
13172
|
+
},
|
|
13173
|
+
max(n, params) {
|
|
13174
|
+
return this.check(_maxLength(n, params));
|
|
13175
|
+
},
|
|
13176
|
+
length(n, params) {
|
|
13177
|
+
return this.check(_length(n, params));
|
|
13178
|
+
},
|
|
13179
|
+
unwrap() {
|
|
13180
|
+
return this.element;
|
|
13181
|
+
}
|
|
13182
|
+
});
|
|
12497
13183
|
});
|
|
12498
13184
|
function array(element, params) {
|
|
12499
13185
|
return _array(ZodArray, element, params);
|
|
@@ -12509,23 +13195,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
12509
13195
|
exports_util.defineLazy(inst, "shape", () => {
|
|
12510
13196
|
return def.shape;
|
|
12511
13197
|
});
|
|
12512
|
-
inst
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
13198
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13199
|
+
keyof() {
|
|
13200
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13201
|
+
},
|
|
13202
|
+
catchall(catchall) {
|
|
13203
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13204
|
+
},
|
|
13205
|
+
passthrough() {
|
|
13206
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13207
|
+
},
|
|
13208
|
+
loose() {
|
|
13209
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13210
|
+
},
|
|
13211
|
+
strict() {
|
|
13212
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13213
|
+
},
|
|
13214
|
+
strip() {
|
|
13215
|
+
return this.clone({ ...this._zod.def, catchall: undefined });
|
|
13216
|
+
},
|
|
13217
|
+
extend(incoming) {
|
|
13218
|
+
return exports_util.extend(this, incoming);
|
|
13219
|
+
},
|
|
13220
|
+
safeExtend(incoming) {
|
|
13221
|
+
return exports_util.safeExtend(this, incoming);
|
|
13222
|
+
},
|
|
13223
|
+
merge(other) {
|
|
13224
|
+
return exports_util.merge(this, other);
|
|
13225
|
+
},
|
|
13226
|
+
pick(mask) {
|
|
13227
|
+
return exports_util.pick(this, mask);
|
|
13228
|
+
},
|
|
13229
|
+
omit(mask) {
|
|
13230
|
+
return exports_util.omit(this, mask);
|
|
13231
|
+
},
|
|
13232
|
+
partial(...args) {
|
|
13233
|
+
return exports_util.partial(ZodOptional, this, args[0]);
|
|
13234
|
+
},
|
|
13235
|
+
required(...args) {
|
|
13236
|
+
return exports_util.required(ZodNonOptional, this, args[0]);
|
|
13237
|
+
}
|
|
13238
|
+
});
|
|
12529
13239
|
});
|
|
12530
13240
|
function object(shape, params) {
|
|
12531
13241
|
const def = {
|
|
@@ -12630,6 +13340,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
12630
13340
|
inst.valueType = def.valueType;
|
|
12631
13341
|
});
|
|
12632
13342
|
function record(keyType, valueType, params) {
|
|
13343
|
+
if (!valueType || !valueType._zod) {
|
|
13344
|
+
return new ZodRecord({
|
|
13345
|
+
type: "record",
|
|
13346
|
+
keyType: string2(),
|
|
13347
|
+
valueType: keyType,
|
|
13348
|
+
...exports_util.normalizeParams(valueType)
|
|
13349
|
+
});
|
|
13350
|
+
}
|
|
12633
13351
|
return new ZodRecord({
|
|
12634
13352
|
type: "record",
|
|
12635
13353
|
keyType,
|
|
@@ -12801,10 +13519,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
12801
13519
|
if (output instanceof Promise) {
|
|
12802
13520
|
return output.then((output2) => {
|
|
12803
13521
|
payload.value = output2;
|
|
13522
|
+
payload.fallback = true;
|
|
12804
13523
|
return payload;
|
|
12805
13524
|
});
|
|
12806
13525
|
}
|
|
12807
13526
|
payload.value = output;
|
|
13527
|
+
payload.fallback = true;
|
|
12808
13528
|
return payload;
|
|
12809
13529
|
};
|
|
12810
13530
|
});
|
|
@@ -12958,6 +13678,20 @@ function codec(in_, out, params) {
|
|
|
12958
13678
|
reverseTransform: params.encode
|
|
12959
13679
|
});
|
|
12960
13680
|
}
|
|
13681
|
+
function invertCodec(codec2) {
|
|
13682
|
+
const def = codec2._zod.def;
|
|
13683
|
+
return new ZodCodec({
|
|
13684
|
+
type: "pipe",
|
|
13685
|
+
in: def.out,
|
|
13686
|
+
out: def.in,
|
|
13687
|
+
transform: def.reverseTransform,
|
|
13688
|
+
reverseTransform: def.transform
|
|
13689
|
+
});
|
|
13690
|
+
}
|
|
13691
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13692
|
+
ZodPipe.init(inst, def);
|
|
13693
|
+
$ZodPreprocess.init(inst, def);
|
|
13694
|
+
});
|
|
12961
13695
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
12962
13696
|
$ZodReadonly.init(inst, def);
|
|
12963
13697
|
ZodType.init(inst, def);
|
|
@@ -13036,8 +13770,8 @@ function custom(fn, _params) {
|
|
|
13036
13770
|
function refine(fn, _params = {}) {
|
|
13037
13771
|
return _refine(ZodCustom, fn, _params);
|
|
13038
13772
|
}
|
|
13039
|
-
function superRefine(fn) {
|
|
13040
|
-
return _superRefine(fn);
|
|
13773
|
+
function superRefine(fn, params) {
|
|
13774
|
+
return _superRefine(fn, params);
|
|
13041
13775
|
}
|
|
13042
13776
|
var describe2 = describe;
|
|
13043
13777
|
var meta2 = meta;
|
|
@@ -13075,9 +13809,13 @@ function json(params) {
|
|
|
13075
13809
|
return jsonSchema;
|
|
13076
13810
|
}
|
|
13077
13811
|
function preprocess(fn, schema) {
|
|
13078
|
-
return
|
|
13812
|
+
return new ZodPreprocess({
|
|
13813
|
+
type: "pipe",
|
|
13814
|
+
in: transform(fn),
|
|
13815
|
+
out: schema
|
|
13816
|
+
});
|
|
13079
13817
|
}
|
|
13080
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13818
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
13081
13819
|
var ZodIssueCode = {
|
|
13082
13820
|
invalid_type: "invalid_type",
|
|
13083
13821
|
too_big: "too_big",
|
|
@@ -13101,13 +13839,13 @@ function getErrorMap() {
|
|
|
13101
13839
|
}
|
|
13102
13840
|
var ZodFirstPartyTypeKind;
|
|
13103
13841
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
13104
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
13842
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
13105
13843
|
var z = {
|
|
13106
13844
|
...exports_schemas2,
|
|
13107
13845
|
...exports_checks2,
|
|
13108
13846
|
iso: exports_iso
|
|
13109
13847
|
};
|
|
13110
|
-
var RECOGNIZED_KEYS = new Set([
|
|
13848
|
+
var RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
|
|
13111
13849
|
"$schema",
|
|
13112
13850
|
"$ref",
|
|
13113
13851
|
"$defs",
|
|
@@ -13481,12 +14219,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
13481
14219
|
default:
|
|
13482
14220
|
throw new Error(`Unsupported type: ${type}`);
|
|
13483
14221
|
}
|
|
13484
|
-
if (schema.description) {
|
|
13485
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
13486
|
-
}
|
|
13487
|
-
if (schema.default !== undefined) {
|
|
13488
|
-
zodSchema = zodSchema.default(schema.default);
|
|
13489
|
-
}
|
|
13490
14222
|
return zodSchema;
|
|
13491
14223
|
}
|
|
13492
14224
|
function convertSchema(schema, ctx) {
|
|
@@ -13523,6 +14255,9 @@ function convertSchema(schema, ctx) {
|
|
|
13523
14255
|
if (schema.readOnly === true) {
|
|
13524
14256
|
baseSchema = z.readonly(baseSchema);
|
|
13525
14257
|
}
|
|
14258
|
+
if (schema.default !== undefined) {
|
|
14259
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14260
|
+
}
|
|
13526
14261
|
const extraMeta = {};
|
|
13527
14262
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
13528
14263
|
for (const key of coreMetadataKeys) {
|
|
@@ -13544,25 +14279,34 @@ function convertSchema(schema, ctx) {
|
|
|
13544
14279
|
if (Object.keys(extraMeta).length > 0) {
|
|
13545
14280
|
ctx.registry.add(baseSchema, extraMeta);
|
|
13546
14281
|
}
|
|
14282
|
+
if (schema.description) {
|
|
14283
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14284
|
+
}
|
|
13547
14285
|
return baseSchema;
|
|
13548
14286
|
}
|
|
13549
14287
|
function fromJSONSchema(schema, params) {
|
|
13550
14288
|
if (typeof schema === "boolean") {
|
|
13551
14289
|
return schema ? z.any() : z.never();
|
|
13552
14290
|
}
|
|
13553
|
-
|
|
13554
|
-
|
|
14291
|
+
let normalized;
|
|
14292
|
+
try {
|
|
14293
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14294
|
+
} catch {
|
|
14295
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14296
|
+
}
|
|
14297
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14298
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
13555
14299
|
const ctx = {
|
|
13556
14300
|
version: version2,
|
|
13557
14301
|
defs,
|
|
13558
14302
|
refs: new Map,
|
|
13559
14303
|
processing: new Set,
|
|
13560
|
-
rootSchema:
|
|
14304
|
+
rootSchema: normalized,
|
|
13561
14305
|
registry: params?.registry ?? globalRegistry
|
|
13562
14306
|
};
|
|
13563
|
-
return convertSchema(
|
|
14307
|
+
return convertSchema(normalized, ctx);
|
|
13564
14308
|
}
|
|
13565
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14309
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
13566
14310
|
var exports_coerce = {};
|
|
13567
14311
|
__export(exports_coerce, {
|
|
13568
14312
|
string: () => string3,
|
|
@@ -13587,7 +14331,7 @@ function date4(params) {
|
|
|
13587
14331
|
return _coercedDate(ZodDate, params);
|
|
13588
14332
|
}
|
|
13589
14333
|
|
|
13590
|
-
// ../../node_modules/.pnpm/zod@4.3
|
|
14334
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
13591
14335
|
config(en_default());
|
|
13592
14336
|
// ../shared/src/schemas.ts
|
|
13593
14337
|
var TaskStatusSchema = exports_external.enum([
|
|
@@ -13656,7 +14400,8 @@ var TaskApiBaseSchema = exports_external.object({
|
|
|
13656
14400
|
context_key: exports_external.string().nullable().optional(),
|
|
13657
14401
|
context: exports_external.unknown().nullable().optional(),
|
|
13658
14402
|
trace_id: exports_external.string().nullable().optional(),
|
|
13659
|
-
parent_task_id: exports_external.string().nullable().optional()
|
|
14403
|
+
parent_task_id: exports_external.string().nullable().optional(),
|
|
14404
|
+
channel: exports_external.string().nullable().optional()
|
|
13660
14405
|
});
|
|
13661
14406
|
var TaskSenderApiSchema = exports_external.object({
|
|
13662
14407
|
name: exports_external.string(),
|
|
@@ -13959,7 +14704,7 @@ var WorkspaceFileReportSchema = exports_external.object({
|
|
|
13959
14704
|
error: exports_external.string().optional(),
|
|
13960
14705
|
path: exports_external.string()
|
|
13961
14706
|
});
|
|
13962
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14707
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/entity.js
|
|
13963
14708
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
13964
14709
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
13965
14710
|
function is(value, type) {
|
|
@@ -13984,10 +14729,10 @@ function is(value, type) {
|
|
|
13984
14729
|
return false;
|
|
13985
14730
|
}
|
|
13986
14731
|
|
|
13987
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14732
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/table.utils.js
|
|
13988
14733
|
var TableName = Symbol.for("drizzle:Name");
|
|
13989
14734
|
|
|
13990
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14735
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/table.js
|
|
13991
14736
|
var Schema = Symbol.for("drizzle:Schema");
|
|
13992
14737
|
var Columns = Symbol.for("drizzle:Columns");
|
|
13993
14738
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -14025,7 +14770,7 @@ class Table {
|
|
|
14025
14770
|
}
|
|
14026
14771
|
}
|
|
14027
14772
|
|
|
14028
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14773
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/column.js
|
|
14029
14774
|
class Column {
|
|
14030
14775
|
constructor(table, config2) {
|
|
14031
14776
|
this.table = table;
|
|
@@ -14075,7 +14820,7 @@ class Column {
|
|
|
14075
14820
|
}
|
|
14076
14821
|
}
|
|
14077
14822
|
|
|
14078
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14823
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/column-builder.js
|
|
14079
14824
|
class ColumnBuilder {
|
|
14080
14825
|
static [entityKind] = "ColumnBuilder";
|
|
14081
14826
|
config;
|
|
@@ -14131,17 +14876,17 @@ class ColumnBuilder {
|
|
|
14131
14876
|
}
|
|
14132
14877
|
}
|
|
14133
14878
|
|
|
14134
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14879
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/tracing-utils.js
|
|
14135
14880
|
function iife(fn, ...args) {
|
|
14136
14881
|
return fn(...args);
|
|
14137
14882
|
}
|
|
14138
14883
|
|
|
14139
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14884
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
14140
14885
|
function uniqueKeyName(table, columns) {
|
|
14141
14886
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
14142
14887
|
}
|
|
14143
14888
|
|
|
14144
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14889
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
14145
14890
|
class PgColumn extends Column {
|
|
14146
14891
|
constructor(table, config2) {
|
|
14147
14892
|
if (!config2.uniqueName) {
|
|
@@ -14190,7 +14935,7 @@ class ExtraConfigColumn extends PgColumn {
|
|
|
14190
14935
|
}
|
|
14191
14936
|
}
|
|
14192
14937
|
|
|
14193
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14938
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
14194
14939
|
class PgEnumObjectColumn extends PgColumn {
|
|
14195
14940
|
static [entityKind] = "PgEnumObjectColumn";
|
|
14196
14941
|
enum;
|
|
@@ -14220,7 +14965,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
14220
14965
|
}
|
|
14221
14966
|
}
|
|
14222
14967
|
|
|
14223
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14968
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/subquery.js
|
|
14224
14969
|
class Subquery {
|
|
14225
14970
|
static [entityKind] = "Subquery";
|
|
14226
14971
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -14235,10 +14980,10 @@ class Subquery {
|
|
|
14235
14980
|
}
|
|
14236
14981
|
}
|
|
14237
14982
|
|
|
14238
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14983
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/version.js
|
|
14239
14984
|
var version2 = "0.45.2";
|
|
14240
14985
|
|
|
14241
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
14986
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/tracing.js
|
|
14242
14987
|
var otel;
|
|
14243
14988
|
var rawTracer;
|
|
14244
14989
|
var tracer = {
|
|
@@ -14265,10 +15010,10 @@ var tracer = {
|
|
|
14265
15010
|
}
|
|
14266
15011
|
};
|
|
14267
15012
|
|
|
14268
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15013
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/view-common.js
|
|
14269
15014
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
14270
15015
|
|
|
14271
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15016
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sql/sql.js
|
|
14272
15017
|
function isSQLWrapper(value) {
|
|
14273
15018
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
14274
15019
|
}
|
|
@@ -14628,7 +15373,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
14628
15373
|
return new SQL([this]);
|
|
14629
15374
|
};
|
|
14630
15375
|
|
|
14631
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15376
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/utils.js
|
|
14632
15377
|
function getColumnNameAndConfig(a, b) {
|
|
14633
15378
|
return {
|
|
14634
15379
|
name: typeof a === "string" && a.length > 0 ? a : "",
|
|
@@ -14637,7 +15382,7 @@ function getColumnNameAndConfig(a, b) {
|
|
|
14637
15382
|
}
|
|
14638
15383
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
14639
15384
|
|
|
14640
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15385
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/foreign-keys.js
|
|
14641
15386
|
class ForeignKeyBuilder {
|
|
14642
15387
|
static [entityKind] = "SQLiteForeignKeyBuilder";
|
|
14643
15388
|
reference;
|
|
@@ -14705,7 +15450,7 @@ function foreignKey(config2) {
|
|
|
14705
15450
|
return new ForeignKeyBuilder(mappedConfig);
|
|
14706
15451
|
}
|
|
14707
15452
|
|
|
14708
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15453
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/unique-constraint.js
|
|
14709
15454
|
function uniqueKeyName2(table, columns) {
|
|
14710
15455
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
14711
15456
|
}
|
|
@@ -14750,7 +15495,7 @@ class UniqueConstraint {
|
|
|
14750
15495
|
}
|
|
14751
15496
|
}
|
|
14752
15497
|
|
|
14753
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15498
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/common.js
|
|
14754
15499
|
class SQLiteColumnBuilder extends ColumnBuilder {
|
|
14755
15500
|
static [entityKind] = "SQLiteColumnBuilder";
|
|
14756
15501
|
foreignKeyConfigs = [];
|
|
@@ -14801,7 +15546,7 @@ class SQLiteColumn extends Column {
|
|
|
14801
15546
|
static [entityKind] = "SQLiteColumn";
|
|
14802
15547
|
}
|
|
14803
15548
|
|
|
14804
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15549
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/blob.js
|
|
14805
15550
|
class SQLiteBigIntBuilder extends SQLiteColumnBuilder {
|
|
14806
15551
|
static [entityKind] = "SQLiteBigIntBuilder";
|
|
14807
15552
|
constructor(name) {
|
|
@@ -14889,7 +15634,7 @@ function blob(a, b) {
|
|
|
14889
15634
|
return new SQLiteBlobBufferBuilder(name);
|
|
14890
15635
|
}
|
|
14891
15636
|
|
|
14892
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15637
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/custom.js
|
|
14893
15638
|
class SQLiteCustomColumnBuilder extends SQLiteColumnBuilder {
|
|
14894
15639
|
static [entityKind] = "SQLiteCustomColumnBuilder";
|
|
14895
15640
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -14930,7 +15675,7 @@ function customType(customTypeParams) {
|
|
|
14930
15675
|
};
|
|
14931
15676
|
}
|
|
14932
15677
|
|
|
14933
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15678
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/integer.js
|
|
14934
15679
|
class SQLiteBaseIntegerBuilder extends SQLiteColumnBuilder {
|
|
14935
15680
|
static [entityKind] = "SQLiteBaseIntegerBuilder";
|
|
14936
15681
|
constructor(name, dataType, columnType) {
|
|
@@ -15032,7 +15777,7 @@ function integer2(a, b) {
|
|
|
15032
15777
|
return new SQLiteIntegerBuilder(name);
|
|
15033
15778
|
}
|
|
15034
15779
|
|
|
15035
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15780
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/numeric.js
|
|
15036
15781
|
class SQLiteNumericBuilder extends SQLiteColumnBuilder {
|
|
15037
15782
|
static [entityKind] = "SQLiteNumericBuilder";
|
|
15038
15783
|
constructor(name) {
|
|
@@ -15102,7 +15847,7 @@ function numeric(a, b) {
|
|
|
15102
15847
|
return mode === "number" ? new SQLiteNumericNumberBuilder(name) : mode === "bigint" ? new SQLiteNumericBigIntBuilder(name) : new SQLiteNumericBuilder(name);
|
|
15103
15848
|
}
|
|
15104
15849
|
|
|
15105
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15850
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/real.js
|
|
15106
15851
|
class SQLiteRealBuilder extends SQLiteColumnBuilder {
|
|
15107
15852
|
static [entityKind] = "SQLiteRealBuilder";
|
|
15108
15853
|
constructor(name) {
|
|
@@ -15123,7 +15868,7 @@ function real(name) {
|
|
|
15123
15868
|
return new SQLiteRealBuilder(name ?? "");
|
|
15124
15869
|
}
|
|
15125
15870
|
|
|
15126
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15871
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/text.js
|
|
15127
15872
|
class SQLiteTextBuilder extends SQLiteColumnBuilder {
|
|
15128
15873
|
static [entityKind] = "SQLiteTextBuilder";
|
|
15129
15874
|
constructor(name, config2) {
|
|
@@ -15178,7 +15923,7 @@ function text(a, b = {}) {
|
|
|
15178
15923
|
return new SQLiteTextBuilder(name, config2);
|
|
15179
15924
|
}
|
|
15180
15925
|
|
|
15181
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15926
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/columns/all.js
|
|
15182
15927
|
function getSQLiteColumnBuilders() {
|
|
15183
15928
|
return {
|
|
15184
15929
|
blob,
|
|
@@ -15190,7 +15935,7 @@ function getSQLiteColumnBuilders() {
|
|
|
15190
15935
|
};
|
|
15191
15936
|
}
|
|
15192
15937
|
|
|
15193
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15938
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/table.js
|
|
15194
15939
|
var InlineForeignKeys = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
|
15195
15940
|
|
|
15196
15941
|
class SQLiteTable extends Table {
|
|
@@ -15224,7 +15969,7 @@ var sqliteTable = (name, columns, extraConfig) => {
|
|
|
15224
15969
|
return sqliteTableBase(name, columns, extraConfig);
|
|
15225
15970
|
};
|
|
15226
15971
|
|
|
15227
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
15972
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/indexes.js
|
|
15228
15973
|
class IndexBuilderOn {
|
|
15229
15974
|
constructor(name, unique2) {
|
|
15230
15975
|
this.name = name;
|
|
@@ -15267,7 +16012,7 @@ function index(name) {
|
|
|
15267
16012
|
return new IndexBuilderOn(name, false);
|
|
15268
16013
|
}
|
|
15269
16014
|
|
|
15270
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.
|
|
16015
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.45.2_@cloudflare+workers-types@4.20260504.1_@opentelemetry+api@1.9.1_bun-types@1.3.13_kysely@0.28.16/node_modules/drizzle-orm/sqlite-core/primary-keys.js
|
|
15271
16016
|
function primaryKey(...config2) {
|
|
15272
16017
|
if (config2[0].columns) {
|
|
15273
16018
|
return new PrimaryKeyBuilder(config2[0].columns, config2[0].name);
|
|
@@ -15302,17 +16047,19 @@ class PrimaryKey {
|
|
|
15302
16047
|
}
|
|
15303
16048
|
}
|
|
15304
16049
|
|
|
15305
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
16050
|
+
// ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/index.js
|
|
15306
16051
|
import { webcrypto as crypto } from "node:crypto";
|
|
15307
16052
|
|
|
15308
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
16053
|
+
// ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
15309
16054
|
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
15310
16055
|
|
|
15311
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
16056
|
+
// ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/index.js
|
|
15312
16057
|
var POOL_SIZE_MULTIPLIER = 128;
|
|
15313
16058
|
var pool;
|
|
15314
16059
|
var poolOffset;
|
|
15315
16060
|
function fillPool(bytes) {
|
|
16061
|
+
if (bytes < 0 || bytes > 1024)
|
|
16062
|
+
throw new RangeError("Wrong ID size");
|
|
15316
16063
|
if (!pool || pool.length < bytes) {
|
|
15317
16064
|
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
15318
16065
|
crypto.getRandomValues(pool);
|
|
@@ -15849,9 +16596,9 @@ class DaemonClient {
|
|
|
15849
16596
|
completeTask(token, taskId, body) {
|
|
15850
16597
|
return this.request("POST", `/api/daemon/tasks/${taskId}/complete`, token, body);
|
|
15851
16598
|
}
|
|
15852
|
-
failTask(token, taskId,
|
|
16599
|
+
failTask(token, taskId, error51) {
|
|
15853
16600
|
return this.request("POST", `/api/daemon/tasks/${taskId}/fail`, token, {
|
|
15854
|
-
error:
|
|
16601
|
+
error: error51
|
|
15855
16602
|
});
|
|
15856
16603
|
}
|
|
15857
16604
|
supersedeTask(token, taskId) {
|
|
@@ -16160,7 +16907,7 @@ class CodexBackend {
|
|
|
16160
16907
|
this.cliPath = cliPath;
|
|
16161
16908
|
}
|
|
16162
16909
|
execute(prompt, options) {
|
|
16163
|
-
const proc = spawn2(this.cliPath, ["app-server", "--listen", "stdio://", "--
|
|
16910
|
+
const proc = spawn2(this.cliPath, ["app-server", "--listen", "stdio://", "--config", "sandbox_mode=danger-full-access"], {
|
|
16164
16911
|
cwd: options.cwd,
|
|
16165
16912
|
stdio: ["pipe", "pipe", "pipe"],
|
|
16166
16913
|
env: { ...process.env, ...options.env }
|
|
@@ -17161,6 +17908,7 @@ function prepare(config2, task) {
|
|
|
17161
17908
|
ALOOK_TASK_ID: task.id,
|
|
17162
17909
|
ALOOK_CONVERSATION_ID: task.conversationId,
|
|
17163
17910
|
ALOOK_TRACE_ID: task.traceId ?? "",
|
|
17911
|
+
ALOOK_CHANNEL: task.channel ?? "default",
|
|
17164
17912
|
ALOOK_HEALTH_PORT: process.env.ALOOK_HEALTH_PORT || "19514"
|
|
17165
17913
|
};
|
|
17166
17914
|
return { workDir, timelineDir, env };
|