@glasstrace/sdk 1.10.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -8
- package/dist/async-context/index.cjs +1189 -440
- package/dist/async-context/index.cjs.map +1 -1
- package/dist/async-context/index.js +2 -2
- package/dist/{capture-error-BeuEXXJO.d.cts → capture-error-CRQSqKgd.d.cts} +2 -2
- package/dist/{capture-error-D02pzB7q.d.ts → capture-error-CqCbjoMq.d.ts} +2 -2
- package/dist/{chunk-OXM2BZMF.js → chunk-4YRYR32D.js} +2 -2
- package/dist/{chunk-XG6WR2KS.js → chunk-6NKMAKMI.js} +3 -3
- package/dist/{chunk-6RKS3DNA.js → chunk-BN5DVIUO.js} +1176 -424
- package/dist/chunk-BN5DVIUO.js.map +1 -0
- package/dist/{chunk-QS5RZ2TC.js → chunk-CZQN6G4I.js} +28 -22
- package/dist/chunk-CZQN6G4I.js.map +1 -0
- package/dist/{chunk-D54FMQHF.js → chunk-FFNGE5RR.js} +2 -2
- package/dist/{chunk-RL43PU2X.js → chunk-J3ZCVE67.js} +2 -2
- package/dist/{chunk-BSVWJSVX.js → chunk-KBHGPQZ2.js} +2 -2
- package/dist/{chunk-CIKPFJOM.js → chunk-KOYZJN6G.js} +310 -20
- package/dist/chunk-KOYZJN6G.js.map +1 -0
- package/dist/{chunk-M5GO2SSO.js → chunk-M3ZTG4P5.js} +2 -2
- package/dist/{chunk-UMGZJYC4.js → chunk-V75ZB4G4.js} +10 -5
- package/dist/chunk-V75ZB4G4.js.map +1 -0
- package/dist/{chunk-ZBQQXVHD.js → chunk-YIEXKQYP.js} +2 -67
- package/dist/chunk-YIEXKQYP.js.map +1 -0
- package/dist/{chunk-QVTONMVZ.js → chunk-ZIL2IY4C.js} +2 -2
- package/dist/cli/init.cjs +1672 -576
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.js +33 -20
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/mcp-add.cjs +1509 -521
- package/dist/cli/mcp-add.cjs.map +1 -1
- package/dist/cli/mcp-add.js +34 -16
- package/dist/cli/mcp-add.js.map +1 -1
- package/dist/cli/status.cjs +6 -1
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.js +7 -2
- package/dist/cli/status.js.map +1 -1
- package/dist/cli/uninit.cjs +6 -1
- package/dist/cli/uninit.cjs.map +1 -1
- package/dist/cli/uninit.js +4 -4
- package/dist/cli/upgrade-instructions.cjs +383 -112
- package/dist/cli/upgrade-instructions.cjs.map +1 -1
- package/dist/cli/upgrade-instructions.js +72 -20
- package/dist/cli/upgrade-instructions.js.map +1 -1
- package/dist/cli/validate.cjs +1168 -422
- package/dist/cli/validate.cjs.map +1 -1
- package/dist/cli/validate.js +2 -2
- package/dist/{correlation-id-NAapJ5jn.d.cts → correlation-id-CFpyJsKv.d.cts} +1 -1
- package/dist/{correlation-id-B_K8adD6.d.ts → correlation-id-DPXyY9-3.d.ts} +1 -1
- package/dist/edge-entry.cjs +1197 -448
- package/dist/edge-entry.cjs.map +1 -1
- package/dist/edge-entry.d.cts +2 -2
- package/dist/edge-entry.d.ts +2 -2
- package/dist/edge-entry.js +4 -4
- package/dist/index.cjs +1341 -553
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-CkTf_boH.d.cts → index.d-D-jdiIPU.d.cts} +1 -1
- package/dist/{index.d-CkTf_boH.d.ts → index.d-D-jdiIPU.d.ts} +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/middleware/index.cjs +1192 -443
- package/dist/middleware/index.cjs.map +1 -1
- package/dist/middleware/index.js +2 -2
- package/dist/node-entry.cjs +1329 -551
- package/dist/node-entry.cjs.map +1 -1
- package/dist/node-entry.d.cts +3 -3
- package/dist/node-entry.d.ts +3 -3
- package/dist/node-entry.js +8 -8
- package/dist/node-subpath.cjs +1168 -422
- package/dist/node-subpath.cjs.map +1 -1
- package/dist/node-subpath.d.cts +1 -1
- package/dist/node-subpath.d.ts +1 -1
- package/dist/node-subpath.js +3 -3
- package/dist/{source-map-uploader-CLYCE2TZ.js → source-map-uploader-K67LTPBG.js} +3 -3
- package/dist/trpc/index.cjs +1187 -438
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-6RKS3DNA.js.map +0 -1
- package/dist/chunk-CIKPFJOM.js.map +0 -1
- package/dist/chunk-QS5RZ2TC.js.map +0 -1
- package/dist/chunk-UMGZJYC4.js.map +0 -1
- package/dist/chunk-ZBQQXVHD.js.map +0 -1
- /package/dist/{chunk-OXM2BZMF.js.map → chunk-4YRYR32D.js.map} +0 -0
- /package/dist/{chunk-XG6WR2KS.js.map → chunk-6NKMAKMI.js.map} +0 -0
- /package/dist/{chunk-D54FMQHF.js.map → chunk-FFNGE5RR.js.map} +0 -0
- /package/dist/{chunk-RL43PU2X.js.map → chunk-J3ZCVE67.js.map} +0 -0
- /package/dist/{chunk-BSVWJSVX.js.map → chunk-KBHGPQZ2.js.map} +0 -0
- /package/dist/{chunk-M5GO2SSO.js.map → chunk-M3ZTG4P5.js.map} +0 -0
- /package/dist/{chunk-QVTONMVZ.js.map → chunk-ZIL2IY4C.js.map} +0 -0
- /package/dist/{source-map-uploader-CLYCE2TZ.js.map → source-map-uploader-K67LTPBG.js.map} +0 -0
|
@@ -64,6 +64,7 @@ __export(external_exports, {
|
|
|
64
64
|
ZodOptional: () => ZodOptional,
|
|
65
65
|
ZodPipe: () => ZodPipe,
|
|
66
66
|
ZodPrefault: () => ZodPrefault,
|
|
67
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
67
68
|
ZodPromise: () => ZodPromise,
|
|
68
69
|
ZodReadonly: () => ZodReadonly,
|
|
69
70
|
ZodRealError: () => ZodRealError,
|
|
@@ -142,6 +143,7 @@ __export(external_exports, {
|
|
|
142
143
|
int32: () => int32,
|
|
143
144
|
int64: () => int64,
|
|
144
145
|
intersection: () => intersection,
|
|
146
|
+
invertCodec: () => invertCodec,
|
|
145
147
|
ipv4: () => ipv42,
|
|
146
148
|
ipv6: () => ipv62,
|
|
147
149
|
iso: () => iso_exports,
|
|
@@ -323,6 +325,7 @@ __export(core_exports2, {
|
|
|
323
325
|
$ZodOptional: () => $ZodOptional,
|
|
324
326
|
$ZodPipe: () => $ZodPipe,
|
|
325
327
|
$ZodPrefault: () => $ZodPrefault,
|
|
328
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
326
329
|
$ZodPromise: () => $ZodPromise,
|
|
327
330
|
$ZodReadonly: () => $ZodReadonly,
|
|
328
331
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -522,7 +525,8 @@ __export(core_exports2, {
|
|
|
522
525
|
});
|
|
523
526
|
|
|
524
527
|
// ../../node_modules/zod/v4/core/core.js
|
|
525
|
-
var
|
|
528
|
+
var _a;
|
|
529
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
526
530
|
status: "aborted"
|
|
527
531
|
});
|
|
528
532
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -557,10 +561,10 @@ function $constructor(name, initializer3, params) {
|
|
|
557
561
|
}
|
|
558
562
|
Object.defineProperty(Definition, "name", { value: name });
|
|
559
563
|
function _(def) {
|
|
560
|
-
var
|
|
564
|
+
var _a3;
|
|
561
565
|
const inst = params?.Parent ? new Definition() : this;
|
|
562
566
|
init(inst, def);
|
|
563
|
-
(
|
|
567
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
564
568
|
for (const fn of inst._zod.deferred) {
|
|
565
569
|
fn();
|
|
566
570
|
}
|
|
@@ -589,7 +593,8 @@ var $ZodEncodeError = class extends Error {
|
|
|
589
593
|
this.name = "ZodEncodeError";
|
|
590
594
|
}
|
|
591
595
|
};
|
|
592
|
-
|
|
596
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
597
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
593
598
|
function config(newConfig) {
|
|
594
599
|
if (newConfig)
|
|
595
600
|
Object.assign(globalConfig, newConfig);
|
|
@@ -622,6 +627,7 @@ __export(util_exports, {
|
|
|
622
627
|
defineLazy: () => defineLazy,
|
|
623
628
|
esc: () => esc,
|
|
624
629
|
escapeRegex: () => escapeRegex,
|
|
630
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
625
631
|
extend: () => extend,
|
|
626
632
|
finalizeIssue: () => finalizeIssue,
|
|
627
633
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -710,19 +716,12 @@ function cleanRegex(source) {
|
|
|
710
716
|
return source.slice(start, end);
|
|
711
717
|
}
|
|
712
718
|
function floatSafeRemainder(val, step) {
|
|
713
|
-
const
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
if (
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
723
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
724
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
725
|
-
return valInt % stepInt / 10 ** decCount;
|
|
719
|
+
const ratio = val / step;
|
|
720
|
+
const roundedRatio = Math.round(ratio);
|
|
721
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
722
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
723
|
+
return 0;
|
|
724
|
+
return ratio - roundedRatio;
|
|
726
725
|
}
|
|
727
726
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
728
727
|
function defineLazy(object2, key, getter) {
|
|
@@ -804,7 +803,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
804
803
|
function isObject(data) {
|
|
805
804
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
806
805
|
}
|
|
807
|
-
var allowsEval = cached(() => {
|
|
806
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
807
|
+
if (globalConfig.jitless) {
|
|
808
|
+
return false;
|
|
809
|
+
}
|
|
808
810
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
809
811
|
return false;
|
|
810
812
|
}
|
|
@@ -837,6 +839,10 @@ function shallowClone(o) {
|
|
|
837
839
|
return { ...o };
|
|
838
840
|
if (Array.isArray(o))
|
|
839
841
|
return [...o];
|
|
842
|
+
if (o instanceof Map)
|
|
843
|
+
return new Map(o);
|
|
844
|
+
if (o instanceof Set)
|
|
845
|
+
return new Set(o);
|
|
840
846
|
return o;
|
|
841
847
|
}
|
|
842
848
|
function numKeys(data) {
|
|
@@ -893,7 +899,14 @@ var getParsedType = (data) => {
|
|
|
893
899
|
}
|
|
894
900
|
};
|
|
895
901
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
896
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
902
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
903
|
+
"string",
|
|
904
|
+
"number",
|
|
905
|
+
"bigint",
|
|
906
|
+
"boolean",
|
|
907
|
+
"symbol",
|
|
908
|
+
"undefined"
|
|
909
|
+
]);
|
|
897
910
|
function escapeRegex(str) {
|
|
898
911
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
899
912
|
}
|
|
@@ -1062,6 +1075,9 @@ function safeExtend(schema, shape) {
|
|
|
1062
1075
|
return clone(schema, def);
|
|
1063
1076
|
}
|
|
1064
1077
|
function merge(a, b) {
|
|
1078
|
+
if (a._zod.def.checks?.length) {
|
|
1079
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
1080
|
+
}
|
|
1065
1081
|
const def = mergeDefs(a._zod.def, {
|
|
1066
1082
|
get shape() {
|
|
1067
1083
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -1071,8 +1087,7 @@ function merge(a, b) {
|
|
|
1071
1087
|
get catchall() {
|
|
1072
1088
|
return b._zod.def.catchall;
|
|
1073
1089
|
},
|
|
1074
|
-
checks: []
|
|
1075
|
-
// delete existing checks
|
|
1090
|
+
checks: b._zod.def.checks ?? []
|
|
1076
1091
|
});
|
|
1077
1092
|
return clone(a, def);
|
|
1078
1093
|
}
|
|
@@ -1155,10 +1170,20 @@ function aborted(x, startIndex = 0) {
|
|
|
1155
1170
|
}
|
|
1156
1171
|
return false;
|
|
1157
1172
|
}
|
|
1173
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
1174
|
+
if (x.aborted === true)
|
|
1175
|
+
return true;
|
|
1176
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
1177
|
+
if (x.issues[i]?.continue === false) {
|
|
1178
|
+
return true;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
return false;
|
|
1182
|
+
}
|
|
1158
1183
|
function prefixIssues(path, issues) {
|
|
1159
1184
|
return issues.map((iss) => {
|
|
1160
|
-
var
|
|
1161
|
-
(
|
|
1185
|
+
var _a3;
|
|
1186
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
1162
1187
|
iss.path.unshift(path);
|
|
1163
1188
|
return iss;
|
|
1164
1189
|
});
|
|
@@ -1167,17 +1192,14 @@ function unwrapMessage(message) {
|
|
|
1167
1192
|
return typeof message === "string" ? message : message?.message;
|
|
1168
1193
|
}
|
|
1169
1194
|
function finalizeIssue(iss, ctx, config2) {
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1195
|
+
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";
|
|
1196
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
1197
|
+
rest.path ?? (rest.path = []);
|
|
1198
|
+
rest.message = message;
|
|
1199
|
+
if (ctx?.reportInput) {
|
|
1200
|
+
rest.input = _input;
|
|
1174
1201
|
}
|
|
1175
|
-
|
|
1176
|
-
delete full.continue;
|
|
1177
|
-
if (!ctx?.reportInput) {
|
|
1178
|
-
delete full.input;
|
|
1179
|
-
}
|
|
1180
|
-
return full;
|
|
1202
|
+
return rest;
|
|
1181
1203
|
}
|
|
1182
1204
|
function getSizableOrigin(input) {
|
|
1183
1205
|
if (input instanceof Set)
|
|
@@ -1294,10 +1316,10 @@ var initializer = (inst, def) => {
|
|
|
1294
1316
|
};
|
|
1295
1317
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
1296
1318
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
1297
|
-
function flattenError(
|
|
1319
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
1298
1320
|
const fieldErrors = {};
|
|
1299
1321
|
const formErrors = [];
|
|
1300
|
-
for (const sub of
|
|
1322
|
+
for (const sub of error51.issues) {
|
|
1301
1323
|
if (sub.path.length > 0) {
|
|
1302
1324
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
1303
1325
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -1307,50 +1329,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1307
1329
|
}
|
|
1308
1330
|
return { formErrors, fieldErrors };
|
|
1309
1331
|
}
|
|
1310
|
-
function formatError(
|
|
1332
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
1311
1333
|
const fieldErrors = { _errors: [] };
|
|
1312
|
-
const processError = (
|
|
1313
|
-
for (const issue2 of
|
|
1334
|
+
const processError = (error52, path = []) => {
|
|
1335
|
+
for (const issue2 of error52.issues) {
|
|
1314
1336
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1315
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
1337
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1316
1338
|
} else if (issue2.code === "invalid_key") {
|
|
1317
|
-
processError({ issues: issue2.issues });
|
|
1339
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1318
1340
|
} else if (issue2.code === "invalid_element") {
|
|
1319
|
-
processError({ issues: issue2.issues });
|
|
1320
|
-
} else if (issue2.path.length === 0) {
|
|
1321
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
1341
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1322
1342
|
} else {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1343
|
+
const fullpath = [...path, ...issue2.path];
|
|
1344
|
+
if (fullpath.length === 0) {
|
|
1345
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
1346
|
+
} else {
|
|
1347
|
+
let curr = fieldErrors;
|
|
1348
|
+
let i = 0;
|
|
1349
|
+
while (i < fullpath.length) {
|
|
1350
|
+
const el = fullpath[i];
|
|
1351
|
+
const terminal = i === fullpath.length - 1;
|
|
1352
|
+
if (!terminal) {
|
|
1353
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1354
|
+
} else {
|
|
1355
|
+
curr[el] = curr[el] || { _errors: [] };
|
|
1356
|
+
curr[el]._errors.push(mapper(issue2));
|
|
1357
|
+
}
|
|
1358
|
+
curr = curr[el];
|
|
1359
|
+
i++;
|
|
1333
1360
|
}
|
|
1334
|
-
curr = curr[el];
|
|
1335
|
-
i++;
|
|
1336
1361
|
}
|
|
1337
1362
|
}
|
|
1338
1363
|
}
|
|
1339
1364
|
};
|
|
1340
|
-
processError(
|
|
1365
|
+
processError(error51);
|
|
1341
1366
|
return fieldErrors;
|
|
1342
1367
|
}
|
|
1343
|
-
function treeifyError(
|
|
1368
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
1344
1369
|
const result = { errors: [] };
|
|
1345
|
-
const processError = (
|
|
1346
|
-
var
|
|
1347
|
-
for (const issue2 of
|
|
1370
|
+
const processError = (error52, path = []) => {
|
|
1371
|
+
var _a3, _b;
|
|
1372
|
+
for (const issue2 of error52.issues) {
|
|
1348
1373
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
1349
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
1374
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
1350
1375
|
} else if (issue2.code === "invalid_key") {
|
|
1351
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1376
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1352
1377
|
} else if (issue2.code === "invalid_element") {
|
|
1353
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
1378
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
1354
1379
|
} else {
|
|
1355
1380
|
const fullpath = [...path, ...issue2.path];
|
|
1356
1381
|
if (fullpath.length === 0) {
|
|
@@ -1364,7 +1389,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1364
1389
|
const terminal = i === fullpath.length - 1;
|
|
1365
1390
|
if (typeof el === "string") {
|
|
1366
1391
|
curr.properties ?? (curr.properties = {});
|
|
1367
|
-
(
|
|
1392
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
1368
1393
|
curr = curr.properties[el];
|
|
1369
1394
|
} else {
|
|
1370
1395
|
curr.items ?? (curr.items = []);
|
|
@@ -1379,7 +1404,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
1379
1404
|
}
|
|
1380
1405
|
}
|
|
1381
1406
|
};
|
|
1382
|
-
processError(
|
|
1407
|
+
processError(error51);
|
|
1383
1408
|
return result;
|
|
1384
1409
|
}
|
|
1385
1410
|
function toDotPath(_path) {
|
|
@@ -1400,9 +1425,9 @@ function toDotPath(_path) {
|
|
|
1400
1425
|
}
|
|
1401
1426
|
return segs.join("");
|
|
1402
1427
|
}
|
|
1403
|
-
function prettifyError(
|
|
1428
|
+
function prettifyError(error51) {
|
|
1404
1429
|
const lines = [];
|
|
1405
|
-
const issues = [...
|
|
1430
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
1406
1431
|
for (const issue2 of issues) {
|
|
1407
1432
|
lines.push(`\u2716 ${issue2.message}`);
|
|
1408
1433
|
if (issue2.path?.length)
|
|
@@ -1413,7 +1438,7 @@ function prettifyError(error48) {
|
|
|
1413
1438
|
|
|
1414
1439
|
// ../../node_modules/zod/v4/core/parse.js
|
|
1415
1440
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1416
|
-
const ctx = _ctx ?
|
|
1441
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
1417
1442
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1418
1443
|
if (result instanceof Promise) {
|
|
1419
1444
|
throw new $ZodAsyncError();
|
|
@@ -1427,7 +1452,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
1427
1452
|
};
|
|
1428
1453
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
1429
1454
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
1430
|
-
const ctx = _ctx ?
|
|
1455
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1431
1456
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1432
1457
|
if (result instanceof Promise)
|
|
1433
1458
|
result = await result;
|
|
@@ -1452,7 +1477,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
1452
1477
|
};
|
|
1453
1478
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
1454
1479
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1455
|
-
const ctx = _ctx ?
|
|
1480
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
1456
1481
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
1457
1482
|
if (result instanceof Promise)
|
|
1458
1483
|
result = await result;
|
|
@@ -1463,7 +1488,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1463
1488
|
};
|
|
1464
1489
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
1465
1490
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
1466
|
-
const ctx = _ctx ?
|
|
1491
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1467
1492
|
return _parse(_Err)(schema, value, ctx);
|
|
1468
1493
|
};
|
|
1469
1494
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -1472,7 +1497,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
1472
1497
|
};
|
|
1473
1498
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
1474
1499
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1475
|
-
const ctx = _ctx ?
|
|
1500
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1476
1501
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
1477
1502
|
};
|
|
1478
1503
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -1481,7 +1506,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1481
1506
|
};
|
|
1482
1507
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
1483
1508
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
1484
|
-
const ctx = _ctx ?
|
|
1509
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1485
1510
|
return _safeParse(_Err)(schema, value, ctx);
|
|
1486
1511
|
};
|
|
1487
1512
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -1490,7 +1515,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
1490
1515
|
};
|
|
1491
1516
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
1492
1517
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1493
|
-
const ctx = _ctx ?
|
|
1518
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
1494
1519
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
1495
1520
|
};
|
|
1496
1521
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -1523,6 +1548,7 @@ __export(regexes_exports, {
|
|
|
1523
1548
|
hex: () => hex,
|
|
1524
1549
|
hostname: () => hostname,
|
|
1525
1550
|
html5Email: () => html5Email,
|
|
1551
|
+
httpProtocol: () => httpProtocol,
|
|
1526
1552
|
idnEmail: () => idnEmail,
|
|
1527
1553
|
integer: () => integer,
|
|
1528
1554
|
ipv4: () => ipv4,
|
|
@@ -1561,7 +1587,7 @@ __export(regexes_exports, {
|
|
|
1561
1587
|
uuid7: () => uuid7,
|
|
1562
1588
|
xid: () => xid
|
|
1563
1589
|
});
|
|
1564
|
-
var cuid = /^[cC][
|
|
1590
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
1565
1591
|
var cuid2 = /^[0-9a-z]+$/;
|
|
1566
1592
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
1567
1593
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -1600,6 +1626,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
1600
1626
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
1601
1627
|
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])?)*\.?$/;
|
|
1602
1628
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
1629
|
+
var httpProtocol = /^https?$/;
|
|
1603
1630
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
1604
1631
|
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])))`;
|
|
1605
1632
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -1658,10 +1685,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
1658
1685
|
|
|
1659
1686
|
// ../../node_modules/zod/v4/core/checks.js
|
|
1660
1687
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1661
|
-
var
|
|
1688
|
+
var _a3;
|
|
1662
1689
|
inst._zod ?? (inst._zod = {});
|
|
1663
1690
|
inst._zod.def = def;
|
|
1664
|
-
(
|
|
1691
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
1665
1692
|
});
|
|
1666
1693
|
var numericOriginMap = {
|
|
1667
1694
|
number: "number",
|
|
@@ -1727,8 +1754,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
1727
1754
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
1728
1755
|
$ZodCheck.init(inst, def);
|
|
1729
1756
|
inst._zod.onattach.push((inst2) => {
|
|
1730
|
-
var
|
|
1731
|
-
(
|
|
1757
|
+
var _a3;
|
|
1758
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
1732
1759
|
});
|
|
1733
1760
|
inst._zod.check = (payload) => {
|
|
1734
1761
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -1861,9 +1888,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
1861
1888
|
};
|
|
1862
1889
|
});
|
|
1863
1890
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
1864
|
-
var
|
|
1891
|
+
var _a3;
|
|
1865
1892
|
$ZodCheck.init(inst, def);
|
|
1866
|
-
(
|
|
1893
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1867
1894
|
const val = payload.value;
|
|
1868
1895
|
return !nullish(val) && val.size !== void 0;
|
|
1869
1896
|
});
|
|
@@ -1889,9 +1916,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
1889
1916
|
};
|
|
1890
1917
|
});
|
|
1891
1918
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
1892
|
-
var
|
|
1919
|
+
var _a3;
|
|
1893
1920
|
$ZodCheck.init(inst, def);
|
|
1894
|
-
(
|
|
1921
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1895
1922
|
const val = payload.value;
|
|
1896
1923
|
return !nullish(val) && val.size !== void 0;
|
|
1897
1924
|
});
|
|
@@ -1917,9 +1944,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
1917
1944
|
};
|
|
1918
1945
|
});
|
|
1919
1946
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
1920
|
-
var
|
|
1947
|
+
var _a3;
|
|
1921
1948
|
$ZodCheck.init(inst, def);
|
|
1922
|
-
(
|
|
1949
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1923
1950
|
const val = payload.value;
|
|
1924
1951
|
return !nullish(val) && val.size !== void 0;
|
|
1925
1952
|
});
|
|
@@ -1947,9 +1974,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
1947
1974
|
};
|
|
1948
1975
|
});
|
|
1949
1976
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
1950
|
-
var
|
|
1977
|
+
var _a3;
|
|
1951
1978
|
$ZodCheck.init(inst, def);
|
|
1952
|
-
(
|
|
1979
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1953
1980
|
const val = payload.value;
|
|
1954
1981
|
return !nullish(val) && val.length !== void 0;
|
|
1955
1982
|
});
|
|
@@ -1976,9 +2003,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
1976
2003
|
};
|
|
1977
2004
|
});
|
|
1978
2005
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
1979
|
-
var
|
|
2006
|
+
var _a3;
|
|
1980
2007
|
$ZodCheck.init(inst, def);
|
|
1981
|
-
(
|
|
2008
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
1982
2009
|
const val = payload.value;
|
|
1983
2010
|
return !nullish(val) && val.length !== void 0;
|
|
1984
2011
|
});
|
|
@@ -2005,9 +2032,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
2005
2032
|
};
|
|
2006
2033
|
});
|
|
2007
2034
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
2008
|
-
var
|
|
2035
|
+
var _a3;
|
|
2009
2036
|
$ZodCheck.init(inst, def);
|
|
2010
|
-
(
|
|
2037
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
2011
2038
|
const val = payload.value;
|
|
2012
2039
|
return !nullish(val) && val.length !== void 0;
|
|
2013
2040
|
});
|
|
@@ -2036,7 +2063,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
2036
2063
|
};
|
|
2037
2064
|
});
|
|
2038
2065
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
2039
|
-
var
|
|
2066
|
+
var _a3, _b;
|
|
2040
2067
|
$ZodCheck.init(inst, def);
|
|
2041
2068
|
inst._zod.onattach.push((inst2) => {
|
|
2042
2069
|
const bag = inst2._zod.bag;
|
|
@@ -2047,7 +2074,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
2047
2074
|
}
|
|
2048
2075
|
});
|
|
2049
2076
|
if (def.pattern)
|
|
2050
|
-
(
|
|
2077
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
2051
2078
|
def.pattern.lastIndex = 0;
|
|
2052
2079
|
if (def.pattern.test(payload.value))
|
|
2053
2080
|
return;
|
|
@@ -2243,13 +2270,13 @@ var Doc = class {
|
|
|
2243
2270
|
// ../../node_modules/zod/v4/core/versions.js
|
|
2244
2271
|
var version = {
|
|
2245
2272
|
major: 4,
|
|
2246
|
-
minor:
|
|
2247
|
-
patch:
|
|
2273
|
+
minor: 4,
|
|
2274
|
+
patch: 3
|
|
2248
2275
|
};
|
|
2249
2276
|
|
|
2250
2277
|
// ../../node_modules/zod/v4/core/schemas.js
|
|
2251
2278
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2252
|
-
var
|
|
2279
|
+
var _a3;
|
|
2253
2280
|
inst ?? (inst = {});
|
|
2254
2281
|
inst._zod.def = def;
|
|
2255
2282
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -2264,7 +2291,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2264
2291
|
}
|
|
2265
2292
|
}
|
|
2266
2293
|
if (checks.length === 0) {
|
|
2267
|
-
(
|
|
2294
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
2268
2295
|
inst._zod.deferred?.push(() => {
|
|
2269
2296
|
inst._zod.run = inst._zod.parse;
|
|
2270
2297
|
});
|
|
@@ -2274,6 +2301,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
2274
2301
|
let asyncResult;
|
|
2275
2302
|
for (const ch of checks2) {
|
|
2276
2303
|
if (ch._zod.def.when) {
|
|
2304
|
+
if (explicitlyAborted(payload))
|
|
2305
|
+
continue;
|
|
2277
2306
|
const shouldRun = ch._zod.def.when(payload);
|
|
2278
2307
|
if (!shouldRun)
|
|
2279
2308
|
continue;
|
|
@@ -2414,6 +2443,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
2414
2443
|
inst._zod.check = (payload) => {
|
|
2415
2444
|
try {
|
|
2416
2445
|
const trimmed = payload.value.trim();
|
|
2446
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
2447
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
2448
|
+
payload.issues.push({
|
|
2449
|
+
code: "invalid_format",
|
|
2450
|
+
format: "url",
|
|
2451
|
+
note: "Invalid URL format",
|
|
2452
|
+
input: payload.value,
|
|
2453
|
+
inst,
|
|
2454
|
+
continue: !def.abort
|
|
2455
|
+
});
|
|
2456
|
+
return;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2417
2459
|
const url2 = new URL(trimmed);
|
|
2418
2460
|
if (def.hostname) {
|
|
2419
2461
|
def.hostname.lastIndex = 0;
|
|
@@ -2567,6 +2609,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
2567
2609
|
function isValidBase64(data) {
|
|
2568
2610
|
if (data === "")
|
|
2569
2611
|
return true;
|
|
2612
|
+
if (/\s/.test(data))
|
|
2613
|
+
return false;
|
|
2570
2614
|
if (data.length % 4 !== 0)
|
|
2571
2615
|
return false;
|
|
2572
2616
|
try {
|
|
@@ -2759,8 +2803,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
2759
2803
|
$ZodType.init(inst, def);
|
|
2760
2804
|
inst._zod.pattern = _undefined;
|
|
2761
2805
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
2762
|
-
inst._zod.optin = "optional";
|
|
2763
|
-
inst._zod.optout = "optional";
|
|
2764
2806
|
inst._zod.parse = (payload, _ctx) => {
|
|
2765
2807
|
const input = payload.value;
|
|
2766
2808
|
if (typeof input === "undefined")
|
|
@@ -2889,15 +2931,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
2889
2931
|
return payload;
|
|
2890
2932
|
};
|
|
2891
2933
|
});
|
|
2892
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
2934
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
2935
|
+
const isPresent = key in input;
|
|
2893
2936
|
if (result.issues.length) {
|
|
2894
|
-
if (isOptionalOut && !
|
|
2937
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
2895
2938
|
return;
|
|
2896
2939
|
}
|
|
2897
2940
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
2898
2941
|
}
|
|
2942
|
+
if (!isPresent && !isOptionalIn) {
|
|
2943
|
+
if (!result.issues.length) {
|
|
2944
|
+
final.issues.push({
|
|
2945
|
+
code: "invalid_type",
|
|
2946
|
+
expected: "nonoptional",
|
|
2947
|
+
input: void 0,
|
|
2948
|
+
path: [key]
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
return;
|
|
2952
|
+
}
|
|
2899
2953
|
if (result.value === void 0) {
|
|
2900
|
-
if (
|
|
2954
|
+
if (isPresent) {
|
|
2901
2955
|
final.value[key] = void 0;
|
|
2902
2956
|
}
|
|
2903
2957
|
} else {
|
|
@@ -2925,8 +2979,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2925
2979
|
const keySet = def.keySet;
|
|
2926
2980
|
const _catchall = def.catchall._zod;
|
|
2927
2981
|
const t = _catchall.def.type;
|
|
2982
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
2928
2983
|
const isOptionalOut = _catchall.optout === "optional";
|
|
2929
2984
|
for (const key in input) {
|
|
2985
|
+
if (key === "__proto__")
|
|
2986
|
+
continue;
|
|
2930
2987
|
if (keySet.has(key))
|
|
2931
2988
|
continue;
|
|
2932
2989
|
if (t === "never") {
|
|
@@ -2935,9 +2992,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
2935
2992
|
}
|
|
2936
2993
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
2937
2994
|
if (r instanceof Promise) {
|
|
2938
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
2995
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
2939
2996
|
} else {
|
|
2940
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
2997
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
2941
2998
|
}
|
|
2942
2999
|
}
|
|
2943
3000
|
if (unrecognized.length) {
|
|
@@ -3003,12 +3060,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
3003
3060
|
const shape = value.shape;
|
|
3004
3061
|
for (const key of value.keys) {
|
|
3005
3062
|
const el = shape[key];
|
|
3063
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
3006
3064
|
const isOptionalOut = el._zod.optout === "optional";
|
|
3007
3065
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3008
3066
|
if (r instanceof Promise) {
|
|
3009
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
3067
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
3010
3068
|
} else {
|
|
3011
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
3069
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
3012
3070
|
}
|
|
3013
3071
|
}
|
|
3014
3072
|
if (!catchall) {
|
|
@@ -3039,9 +3097,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3039
3097
|
const id = ids[key];
|
|
3040
3098
|
const k = esc(key);
|
|
3041
3099
|
const schema = shape[key];
|
|
3100
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
3042
3101
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
3043
3102
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
3044
|
-
if (isOptionalOut) {
|
|
3103
|
+
if (isOptionalIn && isOptionalOut) {
|
|
3045
3104
|
doc.write(`
|
|
3046
3105
|
if (${id}.issues.length) {
|
|
3047
3106
|
if (${k} in input) {
|
|
@@ -3060,6 +3119,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
3060
3119
|
newResult[${k}] = ${id}.value;
|
|
3061
3120
|
}
|
|
3062
3121
|
|
|
3122
|
+
`);
|
|
3123
|
+
} else if (!isOptionalIn) {
|
|
3124
|
+
doc.write(`
|
|
3125
|
+
const ${id}_present = ${k} in input;
|
|
3126
|
+
if (${id}.issues.length) {
|
|
3127
|
+
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
|
|
3128
|
+
...iss,
|
|
3129
|
+
path: iss.path ? [${k}, ...iss.path] : [${k}]
|
|
3130
|
+
})));
|
|
3131
|
+
}
|
|
3132
|
+
if (!${id}_present && !${id}.issues.length) {
|
|
3133
|
+
payload.issues.push({
|
|
3134
|
+
code: "invalid_type",
|
|
3135
|
+
expected: "nonoptional",
|
|
3136
|
+
input: undefined,
|
|
3137
|
+
path: [${k}]
|
|
3138
|
+
});
|
|
3139
|
+
}
|
|
3140
|
+
|
|
3141
|
+
if (${id}_present) {
|
|
3142
|
+
if (${id}.value === undefined) {
|
|
3143
|
+
newResult[${k}] = undefined;
|
|
3144
|
+
} else {
|
|
3145
|
+
newResult[${k}] = ${id}.value;
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3063
3149
|
`);
|
|
3064
3150
|
} else {
|
|
3065
3151
|
doc.write(`
|
|
@@ -3153,10 +3239,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
3153
3239
|
}
|
|
3154
3240
|
return void 0;
|
|
3155
3241
|
});
|
|
3156
|
-
const
|
|
3157
|
-
const first = def.options[0]._zod.run;
|
|
3242
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3158
3243
|
inst._zod.parse = (payload, ctx) => {
|
|
3159
|
-
if (
|
|
3244
|
+
if (first) {
|
|
3160
3245
|
return first(payload, ctx);
|
|
3161
3246
|
}
|
|
3162
3247
|
let async = false;
|
|
@@ -3209,10 +3294,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
3209
3294
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
3210
3295
|
$ZodUnion.init(inst, def);
|
|
3211
3296
|
def.inclusive = false;
|
|
3212
|
-
const
|
|
3213
|
-
const first = def.options[0]._zod.run;
|
|
3297
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
3214
3298
|
inst._zod.parse = (payload, ctx) => {
|
|
3215
|
-
if (
|
|
3299
|
+
if (first) {
|
|
3216
3300
|
return first(payload, ctx);
|
|
3217
3301
|
}
|
|
3218
3302
|
let async = false;
|
|
@@ -3287,7 +3371,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3287
3371
|
if (opt) {
|
|
3288
3372
|
return opt._zod.run(payload, ctx);
|
|
3289
3373
|
}
|
|
3290
|
-
if (def.unionFallback) {
|
|
3374
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
3291
3375
|
return _super(payload, ctx);
|
|
3292
3376
|
}
|
|
3293
3377
|
payload.issues.push({
|
|
@@ -3295,6 +3379,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
3295
3379
|
errors: [],
|
|
3296
3380
|
note: "No matching discriminator",
|
|
3297
3381
|
discriminator: def.discriminator,
|
|
3382
|
+
options: Array.from(disc.value.keys()),
|
|
3298
3383
|
input,
|
|
3299
3384
|
path: [def.discriminator],
|
|
3300
3385
|
inst
|
|
@@ -3416,64 +3501,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
3416
3501
|
}
|
|
3417
3502
|
payload.value = [];
|
|
3418
3503
|
const proms = [];
|
|
3419
|
-
const
|
|
3420
|
-
const
|
|
3504
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
3505
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
3421
3506
|
if (!def.rest) {
|
|
3422
|
-
|
|
3423
|
-
const tooSmall = input.length < optStart - 1;
|
|
3424
|
-
if (tooBig || tooSmall) {
|
|
3507
|
+
if (input.length < optinStart) {
|
|
3425
3508
|
payload.issues.push({
|
|
3426
|
-
|
|
3509
|
+
code: "too_small",
|
|
3510
|
+
minimum: optinStart,
|
|
3511
|
+
inclusive: true,
|
|
3427
3512
|
input,
|
|
3428
3513
|
inst,
|
|
3429
3514
|
origin: "array"
|
|
3430
3515
|
});
|
|
3431
3516
|
return payload;
|
|
3432
3517
|
}
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3518
|
+
if (input.length > items.length) {
|
|
3519
|
+
payload.issues.push({
|
|
3520
|
+
code: "too_big",
|
|
3521
|
+
maximum: items.length,
|
|
3522
|
+
inclusive: true,
|
|
3523
|
+
input,
|
|
3524
|
+
inst,
|
|
3525
|
+
origin: "array"
|
|
3526
|
+
});
|
|
3440
3527
|
}
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
}, ctx);
|
|
3445
|
-
if (
|
|
3446
|
-
proms.push(
|
|
3528
|
+
}
|
|
3529
|
+
const itemResults = new Array(items.length);
|
|
3530
|
+
for (let i = 0; i < items.length; i++) {
|
|
3531
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
3532
|
+
if (r instanceof Promise) {
|
|
3533
|
+
proms.push(r.then((rr) => {
|
|
3534
|
+
itemResults[i] = rr;
|
|
3535
|
+
}));
|
|
3447
3536
|
} else {
|
|
3448
|
-
|
|
3537
|
+
itemResults[i] = r;
|
|
3449
3538
|
}
|
|
3450
3539
|
}
|
|
3451
3540
|
if (def.rest) {
|
|
3541
|
+
let i = items.length - 1;
|
|
3452
3542
|
const rest = input.slice(items.length);
|
|
3453
3543
|
for (const el of rest) {
|
|
3454
3544
|
i++;
|
|
3455
|
-
const result = def.rest._zod.run({
|
|
3456
|
-
value: el,
|
|
3457
|
-
issues: []
|
|
3458
|
-
}, ctx);
|
|
3545
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
3459
3546
|
if (result instanceof Promise) {
|
|
3460
|
-
proms.push(result.then((
|
|
3547
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
3461
3548
|
} else {
|
|
3462
3549
|
handleTupleResult(result, payload, i);
|
|
3463
3550
|
}
|
|
3464
3551
|
}
|
|
3465
3552
|
}
|
|
3466
|
-
if (proms.length)
|
|
3467
|
-
return Promise.all(proms).then(() => payload);
|
|
3468
|
-
|
|
3553
|
+
if (proms.length) {
|
|
3554
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
3555
|
+
}
|
|
3556
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
3469
3557
|
};
|
|
3470
3558
|
});
|
|
3559
|
+
function getTupleOptStart(items, key) {
|
|
3560
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
3561
|
+
if (items[i]._zod[key] !== "optional")
|
|
3562
|
+
return i + 1;
|
|
3563
|
+
}
|
|
3564
|
+
return 0;
|
|
3565
|
+
}
|
|
3471
3566
|
function handleTupleResult(result, final, index) {
|
|
3472
3567
|
if (result.issues.length) {
|
|
3473
3568
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
3474
3569
|
}
|
|
3475
3570
|
final.value[index] = result.value;
|
|
3476
3571
|
}
|
|
3572
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
3573
|
+
for (let i = 0; i < items.length; i++) {
|
|
3574
|
+
const r = itemResults[i];
|
|
3575
|
+
const isPresent = i < input.length;
|
|
3576
|
+
if (r.issues.length) {
|
|
3577
|
+
if (!isPresent && i >= optoutStart) {
|
|
3578
|
+
final.value.length = i;
|
|
3579
|
+
break;
|
|
3580
|
+
}
|
|
3581
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
3582
|
+
}
|
|
3583
|
+
final.value[i] = r.value;
|
|
3584
|
+
}
|
|
3585
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
3586
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
3587
|
+
final.value.length = i;
|
|
3588
|
+
} else {
|
|
3589
|
+
break;
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
return final;
|
|
3593
|
+
}
|
|
3477
3594
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
3478
3595
|
$ZodType.init(inst, def);
|
|
3479
3596
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3495,19 +3612,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3495
3612
|
for (const key of values) {
|
|
3496
3613
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
3497
3614
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
3615
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3616
|
+
if (keyResult instanceof Promise) {
|
|
3617
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
3618
|
+
}
|
|
3619
|
+
if (keyResult.issues.length) {
|
|
3620
|
+
payload.issues.push({
|
|
3621
|
+
code: "invalid_key",
|
|
3622
|
+
origin: "record",
|
|
3623
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
3624
|
+
input: key,
|
|
3625
|
+
path: [key],
|
|
3626
|
+
inst
|
|
3627
|
+
});
|
|
3628
|
+
continue;
|
|
3629
|
+
}
|
|
3630
|
+
const outKey = keyResult.value;
|
|
3498
3631
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3499
3632
|
if (result instanceof Promise) {
|
|
3500
3633
|
proms.push(result.then((result2) => {
|
|
3501
3634
|
if (result2.issues.length) {
|
|
3502
3635
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
3503
3636
|
}
|
|
3504
|
-
payload.value[
|
|
3637
|
+
payload.value[outKey] = result2.value;
|
|
3505
3638
|
}));
|
|
3506
3639
|
} else {
|
|
3507
3640
|
if (result.issues.length) {
|
|
3508
3641
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
3509
3642
|
}
|
|
3510
|
-
payload.value[
|
|
3643
|
+
payload.value[outKey] = result.value;
|
|
3511
3644
|
}
|
|
3512
3645
|
}
|
|
3513
3646
|
}
|
|
@@ -3531,6 +3664,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
3531
3664
|
for (const key of Reflect.ownKeys(input)) {
|
|
3532
3665
|
if (key === "__proto__")
|
|
3533
3666
|
continue;
|
|
3667
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
3668
|
+
continue;
|
|
3534
3669
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
3535
3670
|
if (keyResult instanceof Promise) {
|
|
3536
3671
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -3735,6 +3870,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
3735
3870
|
});
|
|
3736
3871
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
3737
3872
|
$ZodType.init(inst, def);
|
|
3873
|
+
inst._zod.optin = "optional";
|
|
3738
3874
|
inst._zod.parse = (payload, ctx) => {
|
|
3739
3875
|
if (ctx.direction === "backward") {
|
|
3740
3876
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -3744,6 +3880,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3744
3880
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
3745
3881
|
return output.then((output2) => {
|
|
3746
3882
|
payload.value = output2;
|
|
3883
|
+
payload.fallback = true;
|
|
3747
3884
|
return payload;
|
|
3748
3885
|
});
|
|
3749
3886
|
}
|
|
@@ -3751,11 +3888,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
3751
3888
|
throw new $ZodAsyncError();
|
|
3752
3889
|
}
|
|
3753
3890
|
payload.value = _out;
|
|
3891
|
+
payload.fallback = true;
|
|
3754
3892
|
return payload;
|
|
3755
3893
|
};
|
|
3756
3894
|
});
|
|
3757
3895
|
function handleOptionalResult(result, input) {
|
|
3758
|
-
if (result.issues.length
|
|
3896
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
3759
3897
|
return { issues: [], value: void 0 };
|
|
3760
3898
|
}
|
|
3761
3899
|
return result;
|
|
@@ -3773,10 +3911,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
3773
3911
|
});
|
|
3774
3912
|
inst._zod.parse = (payload, ctx) => {
|
|
3775
3913
|
if (def.innerType._zod.optin === "optional") {
|
|
3914
|
+
const input = payload.value;
|
|
3776
3915
|
const result = def.innerType._zod.run(payload, ctx);
|
|
3777
3916
|
if (result instanceof Promise)
|
|
3778
|
-
return result.then((r) => handleOptionalResult(r,
|
|
3779
|
-
return handleOptionalResult(result,
|
|
3917
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
3918
|
+
return handleOptionalResult(result, input);
|
|
3780
3919
|
}
|
|
3781
3920
|
if (payload.value === void 0) {
|
|
3782
3921
|
return payload;
|
|
@@ -3892,7 +4031,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
3892
4031
|
});
|
|
3893
4032
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
3894
4033
|
$ZodType.init(inst, def);
|
|
3895
|
-
|
|
4034
|
+
inst._zod.optin = "optional";
|
|
3896
4035
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
3897
4036
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
3898
4037
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3912,6 +4051,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3912
4051
|
input: payload.value
|
|
3913
4052
|
});
|
|
3914
4053
|
payload.issues = [];
|
|
4054
|
+
payload.fallback = true;
|
|
3915
4055
|
}
|
|
3916
4056
|
return payload;
|
|
3917
4057
|
});
|
|
@@ -3926,6 +4066,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
3926
4066
|
input: payload.value
|
|
3927
4067
|
});
|
|
3928
4068
|
payload.issues = [];
|
|
4069
|
+
payload.fallback = true;
|
|
3929
4070
|
}
|
|
3930
4071
|
return payload;
|
|
3931
4072
|
};
|
|
@@ -3971,7 +4112,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
3971
4112
|
left.aborted = true;
|
|
3972
4113
|
return left;
|
|
3973
4114
|
}
|
|
3974
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
4115
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
3975
4116
|
}
|
|
3976
4117
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
3977
4118
|
$ZodType.init(inst, def);
|
|
@@ -4023,6 +4164,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
4023
4164
|
}
|
|
4024
4165
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
4025
4166
|
}
|
|
4167
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
4168
|
+
$ZodPipe.init(inst, def);
|
|
4169
|
+
});
|
|
4026
4170
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
4027
4171
|
$ZodType.init(inst, def);
|
|
4028
4172
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -4174,7 +4318,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
4174
4318
|
});
|
|
4175
4319
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
4176
4320
|
$ZodType.init(inst, def);
|
|
4177
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
4321
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
4322
|
+
const d = def;
|
|
4323
|
+
if (!d._cachedInner)
|
|
4324
|
+
d._cachedInner = def.getter();
|
|
4325
|
+
return d._cachedInner;
|
|
4326
|
+
});
|
|
4178
4327
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
4179
4328
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
4180
4329
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -4229,6 +4378,7 @@ __export(locales_exports, {
|
|
|
4229
4378
|
cs: () => cs_default,
|
|
4230
4379
|
da: () => da_default,
|
|
4231
4380
|
de: () => de_default,
|
|
4381
|
+
el: () => el_default,
|
|
4232
4382
|
en: () => en_default,
|
|
4233
4383
|
eo: () => eo_default,
|
|
4234
4384
|
es: () => es_default,
|
|
@@ -4237,6 +4387,7 @@ __export(locales_exports, {
|
|
|
4237
4387
|
fr: () => fr_default,
|
|
4238
4388
|
frCA: () => fr_CA_default,
|
|
4239
4389
|
he: () => he_default,
|
|
4390
|
+
hr: () => hr_default,
|
|
4240
4391
|
hu: () => hu_default,
|
|
4241
4392
|
hy: () => hy_default,
|
|
4242
4393
|
id: () => id_default,
|
|
@@ -4256,6 +4407,7 @@ __export(locales_exports, {
|
|
|
4256
4407
|
pl: () => pl_default,
|
|
4257
4408
|
ps: () => ps_default,
|
|
4258
4409
|
pt: () => pt_default,
|
|
4410
|
+
ro: () => ro_default,
|
|
4259
4411
|
ru: () => ru_default,
|
|
4260
4412
|
sl: () => sl_default,
|
|
4261
4413
|
sv: () => sv_default,
|
|
@@ -5209,8 +5361,118 @@ function de_default() {
|
|
|
5209
5361
|
};
|
|
5210
5362
|
}
|
|
5211
5363
|
|
|
5212
|
-
// ../../node_modules/zod/v4/locales/
|
|
5364
|
+
// ../../node_modules/zod/v4/locales/el.js
|
|
5213
5365
|
var error9 = () => {
|
|
5366
|
+
const Sizable = {
|
|
5367
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5368
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5369
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5370
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
5371
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
5372
|
+
};
|
|
5373
|
+
function getSizing(origin) {
|
|
5374
|
+
return Sizable[origin] ?? null;
|
|
5375
|
+
}
|
|
5376
|
+
const FormatDictionary = {
|
|
5377
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
5378
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
5379
|
+
url: "URL",
|
|
5380
|
+
emoji: "emoji",
|
|
5381
|
+
uuid: "UUID",
|
|
5382
|
+
uuidv4: "UUIDv4",
|
|
5383
|
+
uuidv6: "UUIDv6",
|
|
5384
|
+
nanoid: "nanoid",
|
|
5385
|
+
guid: "GUID",
|
|
5386
|
+
cuid: "cuid",
|
|
5387
|
+
cuid2: "cuid2",
|
|
5388
|
+
ulid: "ULID",
|
|
5389
|
+
xid: "XID",
|
|
5390
|
+
ksuid: "KSUID",
|
|
5391
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
5392
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
5393
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
5394
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
5395
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
5396
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
5397
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
5398
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
5399
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
5400
|
+
base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
|
|
5401
|
+
base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
|
|
5402
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
5403
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
5404
|
+
jwt: "JWT",
|
|
5405
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
5406
|
+
};
|
|
5407
|
+
const TypeDictionary = {
|
|
5408
|
+
nan: "NaN"
|
|
5409
|
+
};
|
|
5410
|
+
return (issue2) => {
|
|
5411
|
+
switch (issue2.code) {
|
|
5412
|
+
case "invalid_type": {
|
|
5413
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
5414
|
+
const receivedType = parsedType(issue2.input);
|
|
5415
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
5416
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
5417
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5418
|
+
}
|
|
5419
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
|
|
5420
|
+
}
|
|
5421
|
+
case "invalid_value":
|
|
5422
|
+
if (issue2.values.length === 1)
|
|
5423
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`;
|
|
5424
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values, "|")}`;
|
|
5425
|
+
case "too_big": {
|
|
5426
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
5427
|
+
const sizing = getSizing(issue2.origin);
|
|
5428
|
+
if (sizing)
|
|
5429
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
|
|
5430
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`;
|
|
5431
|
+
}
|
|
5432
|
+
case "too_small": {
|
|
5433
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
5434
|
+
const sizing = getSizing(issue2.origin);
|
|
5435
|
+
if (sizing) {
|
|
5436
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5437
|
+
}
|
|
5438
|
+
return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`;
|
|
5439
|
+
}
|
|
5440
|
+
case "invalid_format": {
|
|
5441
|
+
const _issue = issue2;
|
|
5442
|
+
if (_issue.format === "starts_with") {
|
|
5443
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
|
|
5444
|
+
}
|
|
5445
|
+
if (_issue.format === "ends_with")
|
|
5446
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
|
|
5447
|
+
if (_issue.format === "includes")
|
|
5448
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
|
|
5449
|
+
if (_issue.format === "regex")
|
|
5450
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
|
|
5451
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
5452
|
+
}
|
|
5453
|
+
case "not_multiple_of":
|
|
5454
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;
|
|
5455
|
+
case "unrecognized_keys":
|
|
5456
|
+
return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue2.keys, ", ")}`;
|
|
5457
|
+
case "invalid_key":
|
|
5458
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5459
|
+
case "invalid_union":
|
|
5460
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
5461
|
+
case "invalid_element":
|
|
5462
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
5463
|
+
default:
|
|
5464
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
5465
|
+
}
|
|
5466
|
+
};
|
|
5467
|
+
};
|
|
5468
|
+
function el_default() {
|
|
5469
|
+
return {
|
|
5470
|
+
localeError: error9()
|
|
5471
|
+
};
|
|
5472
|
+
}
|
|
5473
|
+
|
|
5474
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
5475
|
+
var error10 = () => {
|
|
5214
5476
|
const Sizable = {
|
|
5215
5477
|
string: { unit: "characters", verb: "to have" },
|
|
5216
5478
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -5304,6 +5566,10 @@ var error9 = () => {
|
|
|
5304
5566
|
case "invalid_key":
|
|
5305
5567
|
return `Invalid key in ${issue2.origin}`;
|
|
5306
5568
|
case "invalid_union":
|
|
5569
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
5570
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
5571
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
5572
|
+
}
|
|
5307
5573
|
return "Invalid input";
|
|
5308
5574
|
case "invalid_element":
|
|
5309
5575
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -5314,12 +5580,12 @@ var error9 = () => {
|
|
|
5314
5580
|
};
|
|
5315
5581
|
function en_default() {
|
|
5316
5582
|
return {
|
|
5317
|
-
localeError:
|
|
5583
|
+
localeError: error10()
|
|
5318
5584
|
};
|
|
5319
5585
|
}
|
|
5320
5586
|
|
|
5321
5587
|
// ../../node_modules/zod/v4/locales/eo.js
|
|
5322
|
-
var
|
|
5588
|
+
var error11 = () => {
|
|
5323
5589
|
const Sizable = {
|
|
5324
5590
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
5325
5591
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -5424,12 +5690,12 @@ var error10 = () => {
|
|
|
5424
5690
|
};
|
|
5425
5691
|
function eo_default() {
|
|
5426
5692
|
return {
|
|
5427
|
-
localeError:
|
|
5693
|
+
localeError: error11()
|
|
5428
5694
|
};
|
|
5429
5695
|
}
|
|
5430
5696
|
|
|
5431
5697
|
// ../../node_modules/zod/v4/locales/es.js
|
|
5432
|
-
var
|
|
5698
|
+
var error12 = () => {
|
|
5433
5699
|
const Sizable = {
|
|
5434
5700
|
string: { unit: "caracteres", verb: "tener" },
|
|
5435
5701
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -5557,12 +5823,12 @@ var error11 = () => {
|
|
|
5557
5823
|
};
|
|
5558
5824
|
function es_default() {
|
|
5559
5825
|
return {
|
|
5560
|
-
localeError:
|
|
5826
|
+
localeError: error12()
|
|
5561
5827
|
};
|
|
5562
5828
|
}
|
|
5563
5829
|
|
|
5564
5830
|
// ../../node_modules/zod/v4/locales/fa.js
|
|
5565
|
-
var
|
|
5831
|
+
var error13 = () => {
|
|
5566
5832
|
const Sizable = {
|
|
5567
5833
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
5568
5834
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5672,12 +5938,12 @@ var error12 = () => {
|
|
|
5672
5938
|
};
|
|
5673
5939
|
function fa_default() {
|
|
5674
5940
|
return {
|
|
5675
|
-
localeError:
|
|
5941
|
+
localeError: error13()
|
|
5676
5942
|
};
|
|
5677
5943
|
}
|
|
5678
5944
|
|
|
5679
5945
|
// ../../node_modules/zod/v4/locales/fi.js
|
|
5680
|
-
var
|
|
5946
|
+
var error14 = () => {
|
|
5681
5947
|
const Sizable = {
|
|
5682
5948
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
5683
5949
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -5785,12 +6051,12 @@ var error13 = () => {
|
|
|
5785
6051
|
};
|
|
5786
6052
|
function fi_default() {
|
|
5787
6053
|
return {
|
|
5788
|
-
localeError:
|
|
6054
|
+
localeError: error14()
|
|
5789
6055
|
};
|
|
5790
6056
|
}
|
|
5791
6057
|
|
|
5792
6058
|
// ../../node_modules/zod/v4/locales/fr.js
|
|
5793
|
-
var
|
|
6059
|
+
var error15 = () => {
|
|
5794
6060
|
const Sizable = {
|
|
5795
6061
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5796
6062
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -5831,9 +6097,27 @@ var error14 = () => {
|
|
|
5831
6097
|
template_literal: "entr\xE9e"
|
|
5832
6098
|
};
|
|
5833
6099
|
const TypeDictionary = {
|
|
5834
|
-
|
|
6100
|
+
string: "cha\xEEne",
|
|
5835
6101
|
number: "nombre",
|
|
5836
|
-
|
|
6102
|
+
int: "entier",
|
|
6103
|
+
boolean: "bool\xE9en",
|
|
6104
|
+
bigint: "grand entier",
|
|
6105
|
+
symbol: "symbole",
|
|
6106
|
+
undefined: "ind\xE9fini",
|
|
6107
|
+
null: "null",
|
|
6108
|
+
never: "jamais",
|
|
6109
|
+
void: "vide",
|
|
6110
|
+
date: "date",
|
|
6111
|
+
array: "tableau",
|
|
6112
|
+
object: "objet",
|
|
6113
|
+
tuple: "tuple",
|
|
6114
|
+
record: "enregistrement",
|
|
6115
|
+
map: "carte",
|
|
6116
|
+
set: "ensemble",
|
|
6117
|
+
file: "fichier",
|
|
6118
|
+
nonoptional: "non-optionnel",
|
|
6119
|
+
nan: "NaN",
|
|
6120
|
+
function: "fonction"
|
|
5837
6121
|
};
|
|
5838
6122
|
return (issue2) => {
|
|
5839
6123
|
switch (issue2.code) {
|
|
@@ -5854,16 +6138,15 @@ var error14 = () => {
|
|
|
5854
6138
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
5855
6139
|
const sizing = getSizing(issue2.origin);
|
|
5856
6140
|
if (sizing)
|
|
5857
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
5858
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
6141
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
6142
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
5859
6143
|
}
|
|
5860
6144
|
case "too_small": {
|
|
5861
6145
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
5862
6146
|
const sizing = getSizing(issue2.origin);
|
|
5863
|
-
if (sizing)
|
|
5864
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
5865
|
-
}
|
|
5866
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
6147
|
+
if (sizing)
|
|
6148
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6149
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
5867
6150
|
}
|
|
5868
6151
|
case "invalid_format": {
|
|
5869
6152
|
const _issue = issue2;
|
|
@@ -5894,12 +6177,12 @@ var error14 = () => {
|
|
|
5894
6177
|
};
|
|
5895
6178
|
function fr_default() {
|
|
5896
6179
|
return {
|
|
5897
|
-
localeError:
|
|
6180
|
+
localeError: error15()
|
|
5898
6181
|
};
|
|
5899
6182
|
}
|
|
5900
6183
|
|
|
5901
6184
|
// ../../node_modules/zod/v4/locales/fr-CA.js
|
|
5902
|
-
var
|
|
6185
|
+
var error16 = () => {
|
|
5903
6186
|
const Sizable = {
|
|
5904
6187
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
5905
6188
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -6002,12 +6285,12 @@ var error15 = () => {
|
|
|
6002
6285
|
};
|
|
6003
6286
|
function fr_CA_default() {
|
|
6004
6287
|
return {
|
|
6005
|
-
localeError:
|
|
6288
|
+
localeError: error16()
|
|
6006
6289
|
};
|
|
6007
6290
|
}
|
|
6008
6291
|
|
|
6009
6292
|
// ../../node_modules/zod/v4/locales/he.js
|
|
6010
|
-
var
|
|
6293
|
+
var error17 = () => {
|
|
6011
6294
|
const TypeNames = {
|
|
6012
6295
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
6013
6296
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -6197,24 +6480,24 @@ var error16 = () => {
|
|
|
6197
6480
|
};
|
|
6198
6481
|
function he_default() {
|
|
6199
6482
|
return {
|
|
6200
|
-
localeError:
|
|
6483
|
+
localeError: error17()
|
|
6201
6484
|
};
|
|
6202
6485
|
}
|
|
6203
6486
|
|
|
6204
|
-
// ../../node_modules/zod/v4/locales/
|
|
6205
|
-
var
|
|
6487
|
+
// ../../node_modules/zod/v4/locales/hr.js
|
|
6488
|
+
var error18 = () => {
|
|
6206
6489
|
const Sizable = {
|
|
6207
|
-
string: { unit: "
|
|
6208
|
-
file: { unit: "
|
|
6209
|
-
array: { unit: "
|
|
6210
|
-
set: { unit: "
|
|
6490
|
+
string: { unit: "znakova", verb: "imati" },
|
|
6491
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
6492
|
+
array: { unit: "stavki", verb: "imati" },
|
|
6493
|
+
set: { unit: "stavki", verb: "imati" }
|
|
6211
6494
|
};
|
|
6212
6495
|
function getSizing(origin) {
|
|
6213
6496
|
return Sizable[origin] ?? null;
|
|
6214
6497
|
}
|
|
6215
6498
|
const FormatDictionary = {
|
|
6216
|
-
regex: "
|
|
6217
|
-
email: "email
|
|
6499
|
+
regex: "unos",
|
|
6500
|
+
email: "email adresa",
|
|
6218
6501
|
url: "URL",
|
|
6219
6502
|
emoji: "emoji",
|
|
6220
6503
|
uuid: "UUID",
|
|
@@ -6227,25 +6510,37 @@ var error17 = () => {
|
|
|
6227
6510
|
ulid: "ULID",
|
|
6228
6511
|
xid: "XID",
|
|
6229
6512
|
ksuid: "KSUID",
|
|
6230
|
-
datetime: "ISO
|
|
6231
|
-
date: "ISO
|
|
6232
|
-
time: "ISO
|
|
6233
|
-
duration: "ISO
|
|
6234
|
-
ipv4: "IPv4
|
|
6235
|
-
ipv6: "IPv6
|
|
6236
|
-
cidrv4: "IPv4
|
|
6237
|
-
cidrv6: "IPv6
|
|
6238
|
-
base64: "base64
|
|
6239
|
-
base64url: "base64url
|
|
6240
|
-
json_string: "JSON
|
|
6241
|
-
e164: "E.164
|
|
6513
|
+
datetime: "ISO datum i vrijeme",
|
|
6514
|
+
date: "ISO datum",
|
|
6515
|
+
time: "ISO vrijeme",
|
|
6516
|
+
duration: "ISO trajanje",
|
|
6517
|
+
ipv4: "IPv4 adresa",
|
|
6518
|
+
ipv6: "IPv6 adresa",
|
|
6519
|
+
cidrv4: "IPv4 raspon",
|
|
6520
|
+
cidrv6: "IPv6 raspon",
|
|
6521
|
+
base64: "base64 kodirani tekst",
|
|
6522
|
+
base64url: "base64url kodirani tekst",
|
|
6523
|
+
json_string: "JSON tekst",
|
|
6524
|
+
e164: "E.164 broj",
|
|
6242
6525
|
jwt: "JWT",
|
|
6243
|
-
template_literal: "
|
|
6526
|
+
template_literal: "unos"
|
|
6244
6527
|
};
|
|
6245
6528
|
const TypeDictionary = {
|
|
6246
6529
|
nan: "NaN",
|
|
6247
|
-
|
|
6248
|
-
|
|
6530
|
+
string: "tekst",
|
|
6531
|
+
number: "broj",
|
|
6532
|
+
boolean: "boolean",
|
|
6533
|
+
array: "niz",
|
|
6534
|
+
object: "objekt",
|
|
6535
|
+
set: "skup",
|
|
6536
|
+
file: "datoteka",
|
|
6537
|
+
date: "datum",
|
|
6538
|
+
bigint: "bigint",
|
|
6539
|
+
symbol: "simbol",
|
|
6540
|
+
undefined: "undefined",
|
|
6541
|
+
null: "null",
|
|
6542
|
+
function: "funkcija",
|
|
6543
|
+
map: "mapa"
|
|
6249
6544
|
};
|
|
6250
6545
|
return (issue2) => {
|
|
6251
6546
|
switch (issue2.code) {
|
|
@@ -6254,26 +6549,137 @@ var error17 = () => {
|
|
|
6254
6549
|
const receivedType = parsedType(issue2.input);
|
|
6255
6550
|
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6256
6551
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6257
|
-
return
|
|
6552
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
6258
6553
|
}
|
|
6259
|
-
return
|
|
6554
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
6260
6555
|
}
|
|
6261
6556
|
case "invalid_value":
|
|
6262
6557
|
if (issue2.values.length === 1)
|
|
6263
|
-
return
|
|
6264
|
-
return
|
|
6558
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
6559
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
6265
6560
|
case "too_big": {
|
|
6266
6561
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
6267
6562
|
const sizing = getSizing(issue2.origin);
|
|
6563
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6268
6564
|
if (sizing)
|
|
6269
|
-
return `
|
|
6270
|
-
return `
|
|
6565
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
6566
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
6271
6567
|
}
|
|
6272
6568
|
case "too_small": {
|
|
6273
6569
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
6274
6570
|
const sizing = getSizing(issue2.origin);
|
|
6571
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
6275
6572
|
if (sizing) {
|
|
6276
|
-
return `
|
|
6573
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6574
|
+
}
|
|
6575
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
6576
|
+
}
|
|
6577
|
+
case "invalid_format": {
|
|
6578
|
+
const _issue = issue2;
|
|
6579
|
+
if (_issue.format === "starts_with")
|
|
6580
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
6581
|
+
if (_issue.format === "ends_with")
|
|
6582
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
6583
|
+
if (_issue.format === "includes")
|
|
6584
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
6585
|
+
if (_issue.format === "regex")
|
|
6586
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
6587
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6588
|
+
}
|
|
6589
|
+
case "not_multiple_of":
|
|
6590
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
6591
|
+
case "unrecognized_keys":
|
|
6592
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
6593
|
+
case "invalid_key":
|
|
6594
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6595
|
+
case "invalid_union":
|
|
6596
|
+
return "Neispravan unos";
|
|
6597
|
+
case "invalid_element":
|
|
6598
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
6599
|
+
default:
|
|
6600
|
+
return `Neispravan unos`;
|
|
6601
|
+
}
|
|
6602
|
+
};
|
|
6603
|
+
};
|
|
6604
|
+
function hr_default() {
|
|
6605
|
+
return {
|
|
6606
|
+
localeError: error18()
|
|
6607
|
+
};
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
// ../../node_modules/zod/v4/locales/hu.js
|
|
6611
|
+
var error19 = () => {
|
|
6612
|
+
const Sizable = {
|
|
6613
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
6614
|
+
file: { unit: "byte", verb: "legyen" },
|
|
6615
|
+
array: { unit: "elem", verb: "legyen" },
|
|
6616
|
+
set: { unit: "elem", verb: "legyen" }
|
|
6617
|
+
};
|
|
6618
|
+
function getSizing(origin) {
|
|
6619
|
+
return Sizable[origin] ?? null;
|
|
6620
|
+
}
|
|
6621
|
+
const FormatDictionary = {
|
|
6622
|
+
regex: "bemenet",
|
|
6623
|
+
email: "email c\xEDm",
|
|
6624
|
+
url: "URL",
|
|
6625
|
+
emoji: "emoji",
|
|
6626
|
+
uuid: "UUID",
|
|
6627
|
+
uuidv4: "UUIDv4",
|
|
6628
|
+
uuidv6: "UUIDv6",
|
|
6629
|
+
nanoid: "nanoid",
|
|
6630
|
+
guid: "GUID",
|
|
6631
|
+
cuid: "cuid",
|
|
6632
|
+
cuid2: "cuid2",
|
|
6633
|
+
ulid: "ULID",
|
|
6634
|
+
xid: "XID",
|
|
6635
|
+
ksuid: "KSUID",
|
|
6636
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
6637
|
+
date: "ISO d\xE1tum",
|
|
6638
|
+
time: "ISO id\u0151",
|
|
6639
|
+
duration: "ISO id\u0151intervallum",
|
|
6640
|
+
ipv4: "IPv4 c\xEDm",
|
|
6641
|
+
ipv6: "IPv6 c\xEDm",
|
|
6642
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
6643
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
6644
|
+
base64: "base64-k\xF3dolt string",
|
|
6645
|
+
base64url: "base64url-k\xF3dolt string",
|
|
6646
|
+
json_string: "JSON string",
|
|
6647
|
+
e164: "E.164 sz\xE1m",
|
|
6648
|
+
jwt: "JWT",
|
|
6649
|
+
template_literal: "bemenet"
|
|
6650
|
+
};
|
|
6651
|
+
const TypeDictionary = {
|
|
6652
|
+
nan: "NaN",
|
|
6653
|
+
number: "sz\xE1m",
|
|
6654
|
+
array: "t\xF6mb"
|
|
6655
|
+
};
|
|
6656
|
+
return (issue2) => {
|
|
6657
|
+
switch (issue2.code) {
|
|
6658
|
+
case "invalid_type": {
|
|
6659
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
6660
|
+
const receivedType = parsedType(issue2.input);
|
|
6661
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
6662
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
6663
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6664
|
+
}
|
|
6665
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`;
|
|
6666
|
+
}
|
|
6667
|
+
case "invalid_value":
|
|
6668
|
+
if (issue2.values.length === 1)
|
|
6669
|
+
return `\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`;
|
|
6670
|
+
return `\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values, "|")}`;
|
|
6671
|
+
case "too_big": {
|
|
6672
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
6673
|
+
const sizing = getSizing(issue2.origin);
|
|
6674
|
+
if (sizing)
|
|
6675
|
+
return `T\xFAl nagy: ${issue2.origin ?? "\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elem"}`;
|
|
6676
|
+
return `T\xFAl nagy: a bemeneti \xE9rt\xE9k ${issue2.origin ?? "\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`;
|
|
6677
|
+
}
|
|
6678
|
+
case "too_small": {
|
|
6679
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
6680
|
+
const sizing = getSizing(issue2.origin);
|
|
6681
|
+
if (sizing) {
|
|
6682
|
+
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
6277
6683
|
}
|
|
6278
6684
|
return `T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`;
|
|
6279
6685
|
}
|
|
@@ -6306,7 +6712,7 @@ var error17 = () => {
|
|
|
6306
6712
|
};
|
|
6307
6713
|
function hu_default() {
|
|
6308
6714
|
return {
|
|
6309
|
-
localeError:
|
|
6715
|
+
localeError: error19()
|
|
6310
6716
|
};
|
|
6311
6717
|
}
|
|
6312
6718
|
|
|
@@ -6321,7 +6727,7 @@ function withDefiniteArticle(word) {
|
|
|
6321
6727
|
const lastChar = word[word.length - 1];
|
|
6322
6728
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
6323
6729
|
}
|
|
6324
|
-
var
|
|
6730
|
+
var error20 = () => {
|
|
6325
6731
|
const Sizable = {
|
|
6326
6732
|
string: {
|
|
6327
6733
|
unit: {
|
|
@@ -6454,12 +6860,12 @@ var error18 = () => {
|
|
|
6454
6860
|
};
|
|
6455
6861
|
function hy_default() {
|
|
6456
6862
|
return {
|
|
6457
|
-
localeError:
|
|
6863
|
+
localeError: error20()
|
|
6458
6864
|
};
|
|
6459
6865
|
}
|
|
6460
6866
|
|
|
6461
6867
|
// ../../node_modules/zod/v4/locales/id.js
|
|
6462
|
-
var
|
|
6868
|
+
var error21 = () => {
|
|
6463
6869
|
const Sizable = {
|
|
6464
6870
|
string: { unit: "karakter", verb: "memiliki" },
|
|
6465
6871
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -6561,12 +6967,12 @@ var error19 = () => {
|
|
|
6561
6967
|
};
|
|
6562
6968
|
function id_default() {
|
|
6563
6969
|
return {
|
|
6564
|
-
localeError:
|
|
6970
|
+
localeError: error21()
|
|
6565
6971
|
};
|
|
6566
6972
|
}
|
|
6567
6973
|
|
|
6568
6974
|
// ../../node_modules/zod/v4/locales/is.js
|
|
6569
|
-
var
|
|
6975
|
+
var error22 = () => {
|
|
6570
6976
|
const Sizable = {
|
|
6571
6977
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
6572
6978
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -6671,12 +7077,12 @@ var error20 = () => {
|
|
|
6671
7077
|
};
|
|
6672
7078
|
function is_default() {
|
|
6673
7079
|
return {
|
|
6674
|
-
localeError:
|
|
7080
|
+
localeError: error22()
|
|
6675
7081
|
};
|
|
6676
7082
|
}
|
|
6677
7083
|
|
|
6678
7084
|
// ../../node_modules/zod/v4/locales/it.js
|
|
6679
|
-
var
|
|
7085
|
+
var error23 = () => {
|
|
6680
7086
|
const Sizable = {
|
|
6681
7087
|
string: { unit: "caratteri", verb: "avere" },
|
|
6682
7088
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -6761,7 +7167,7 @@ var error21 = () => {
|
|
|
6761
7167
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
6762
7168
|
if (_issue.format === "regex")
|
|
6763
7169
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
6764
|
-
return `
|
|
7170
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6765
7171
|
}
|
|
6766
7172
|
case "not_multiple_of":
|
|
6767
7173
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -6780,12 +7186,12 @@ var error21 = () => {
|
|
|
6780
7186
|
};
|
|
6781
7187
|
function it_default() {
|
|
6782
7188
|
return {
|
|
6783
|
-
localeError:
|
|
7189
|
+
localeError: error23()
|
|
6784
7190
|
};
|
|
6785
7191
|
}
|
|
6786
7192
|
|
|
6787
7193
|
// ../../node_modules/zod/v4/locales/ja.js
|
|
6788
|
-
var
|
|
7194
|
+
var error24 = () => {
|
|
6789
7195
|
const Sizable = {
|
|
6790
7196
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
6791
7197
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -6888,12 +7294,12 @@ var error22 = () => {
|
|
|
6888
7294
|
};
|
|
6889
7295
|
function ja_default() {
|
|
6890
7296
|
return {
|
|
6891
|
-
localeError:
|
|
7297
|
+
localeError: error24()
|
|
6892
7298
|
};
|
|
6893
7299
|
}
|
|
6894
7300
|
|
|
6895
7301
|
// ../../node_modules/zod/v4/locales/ka.js
|
|
6896
|
-
var
|
|
7302
|
+
var error25 = () => {
|
|
6897
7303
|
const Sizable = {
|
|
6898
7304
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
6899
7305
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -6926,9 +7332,9 @@ var error23 = () => {
|
|
|
6926
7332
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
6927
7333
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6928
7334
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
6929
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6930
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
6931
|
-
json_string: "JSON \
|
|
7335
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7336
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
7337
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
6932
7338
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
6933
7339
|
jwt: "JWT",
|
|
6934
7340
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -6936,7 +7342,7 @@ var error23 = () => {
|
|
|
6936
7342
|
const TypeDictionary = {
|
|
6937
7343
|
nan: "NaN",
|
|
6938
7344
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
6939
|
-
string: "\
|
|
7345
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
6940
7346
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
6941
7347
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
6942
7348
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -6974,14 +7380,14 @@ var error23 = () => {
|
|
|
6974
7380
|
case "invalid_format": {
|
|
6975
7381
|
const _issue = issue2;
|
|
6976
7382
|
if (_issue.format === "starts_with") {
|
|
6977
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7383
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
|
|
6978
7384
|
}
|
|
6979
7385
|
if (_issue.format === "ends_with")
|
|
6980
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7386
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
|
|
6981
7387
|
if (_issue.format === "includes")
|
|
6982
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7388
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
|
|
6983
7389
|
if (_issue.format === "regex")
|
|
6984
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
7390
|
+
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
|
|
6985
7391
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
6986
7392
|
}
|
|
6987
7393
|
case "not_multiple_of":
|
|
@@ -7001,12 +7407,12 @@ var error23 = () => {
|
|
|
7001
7407
|
};
|
|
7002
7408
|
function ka_default() {
|
|
7003
7409
|
return {
|
|
7004
|
-
localeError:
|
|
7410
|
+
localeError: error25()
|
|
7005
7411
|
};
|
|
7006
7412
|
}
|
|
7007
7413
|
|
|
7008
7414
|
// ../../node_modules/zod/v4/locales/km.js
|
|
7009
|
-
var
|
|
7415
|
+
var error26 = () => {
|
|
7010
7416
|
const Sizable = {
|
|
7011
7417
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
7012
7418
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -7112,7 +7518,7 @@ var error24 = () => {
|
|
|
7112
7518
|
};
|
|
7113
7519
|
function km_default() {
|
|
7114
7520
|
return {
|
|
7115
|
-
localeError:
|
|
7521
|
+
localeError: error26()
|
|
7116
7522
|
};
|
|
7117
7523
|
}
|
|
7118
7524
|
|
|
@@ -7122,7 +7528,7 @@ function kh_default() {
|
|
|
7122
7528
|
}
|
|
7123
7529
|
|
|
7124
7530
|
// ../../node_modules/zod/v4/locales/ko.js
|
|
7125
|
-
var
|
|
7531
|
+
var error27 = () => {
|
|
7126
7532
|
const Sizable = {
|
|
7127
7533
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
7128
7534
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -7229,7 +7635,7 @@ var error25 = () => {
|
|
|
7229
7635
|
};
|
|
7230
7636
|
function ko_default() {
|
|
7231
7637
|
return {
|
|
7232
|
-
localeError:
|
|
7638
|
+
localeError: error27()
|
|
7233
7639
|
};
|
|
7234
7640
|
}
|
|
7235
7641
|
|
|
@@ -7247,7 +7653,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
7247
7653
|
return "one";
|
|
7248
7654
|
return "few";
|
|
7249
7655
|
}
|
|
7250
|
-
var
|
|
7656
|
+
var error28 = () => {
|
|
7251
7657
|
const Sizable = {
|
|
7252
7658
|
string: {
|
|
7253
7659
|
unit: {
|
|
@@ -7433,12 +7839,12 @@ var error26 = () => {
|
|
|
7433
7839
|
};
|
|
7434
7840
|
function lt_default() {
|
|
7435
7841
|
return {
|
|
7436
|
-
localeError:
|
|
7842
|
+
localeError: error28()
|
|
7437
7843
|
};
|
|
7438
7844
|
}
|
|
7439
7845
|
|
|
7440
7846
|
// ../../node_modules/zod/v4/locales/mk.js
|
|
7441
|
-
var
|
|
7847
|
+
var error29 = () => {
|
|
7442
7848
|
const Sizable = {
|
|
7443
7849
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
7444
7850
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7543,12 +7949,12 @@ var error27 = () => {
|
|
|
7543
7949
|
};
|
|
7544
7950
|
function mk_default() {
|
|
7545
7951
|
return {
|
|
7546
|
-
localeError:
|
|
7952
|
+
localeError: error29()
|
|
7547
7953
|
};
|
|
7548
7954
|
}
|
|
7549
7955
|
|
|
7550
7956
|
// ../../node_modules/zod/v4/locales/ms.js
|
|
7551
|
-
var
|
|
7957
|
+
var error30 = () => {
|
|
7552
7958
|
const Sizable = {
|
|
7553
7959
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
7554
7960
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -7651,12 +8057,12 @@ var error28 = () => {
|
|
|
7651
8057
|
};
|
|
7652
8058
|
function ms_default() {
|
|
7653
8059
|
return {
|
|
7654
|
-
localeError:
|
|
8060
|
+
localeError: error30()
|
|
7655
8061
|
};
|
|
7656
8062
|
}
|
|
7657
8063
|
|
|
7658
8064
|
// ../../node_modules/zod/v4/locales/nl.js
|
|
7659
|
-
var
|
|
8065
|
+
var error31 = () => {
|
|
7660
8066
|
const Sizable = {
|
|
7661
8067
|
string: { unit: "tekens", verb: "heeft" },
|
|
7662
8068
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -7762,12 +8168,12 @@ var error29 = () => {
|
|
|
7762
8168
|
};
|
|
7763
8169
|
function nl_default() {
|
|
7764
8170
|
return {
|
|
7765
|
-
localeError:
|
|
8171
|
+
localeError: error31()
|
|
7766
8172
|
};
|
|
7767
8173
|
}
|
|
7768
8174
|
|
|
7769
8175
|
// ../../node_modules/zod/v4/locales/no.js
|
|
7770
|
-
var
|
|
8176
|
+
var error32 = () => {
|
|
7771
8177
|
const Sizable = {
|
|
7772
8178
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
7773
8179
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -7871,12 +8277,12 @@ var error30 = () => {
|
|
|
7871
8277
|
};
|
|
7872
8278
|
function no_default() {
|
|
7873
8279
|
return {
|
|
7874
|
-
localeError:
|
|
8280
|
+
localeError: error32()
|
|
7875
8281
|
};
|
|
7876
8282
|
}
|
|
7877
8283
|
|
|
7878
8284
|
// ../../node_modules/zod/v4/locales/ota.js
|
|
7879
|
-
var
|
|
8285
|
+
var error33 = () => {
|
|
7880
8286
|
const Sizable = {
|
|
7881
8287
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
7882
8288
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7981,12 +8387,12 @@ var error31 = () => {
|
|
|
7981
8387
|
};
|
|
7982
8388
|
function ota_default() {
|
|
7983
8389
|
return {
|
|
7984
|
-
localeError:
|
|
8390
|
+
localeError: error33()
|
|
7985
8391
|
};
|
|
7986
8392
|
}
|
|
7987
8393
|
|
|
7988
8394
|
// ../../node_modules/zod/v4/locales/ps.js
|
|
7989
|
-
var
|
|
8395
|
+
var error34 = () => {
|
|
7990
8396
|
const Sizable = {
|
|
7991
8397
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
7992
8398
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -8096,12 +8502,12 @@ var error32 = () => {
|
|
|
8096
8502
|
};
|
|
8097
8503
|
function ps_default() {
|
|
8098
8504
|
return {
|
|
8099
|
-
localeError:
|
|
8505
|
+
localeError: error34()
|
|
8100
8506
|
};
|
|
8101
8507
|
}
|
|
8102
8508
|
|
|
8103
8509
|
// ../../node_modules/zod/v4/locales/pl.js
|
|
8104
|
-
var
|
|
8510
|
+
var error35 = () => {
|
|
8105
8511
|
const Sizable = {
|
|
8106
8512
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
8107
8513
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -8206,12 +8612,12 @@ var error33 = () => {
|
|
|
8206
8612
|
};
|
|
8207
8613
|
function pl_default() {
|
|
8208
8614
|
return {
|
|
8209
|
-
localeError:
|
|
8615
|
+
localeError: error35()
|
|
8210
8616
|
};
|
|
8211
8617
|
}
|
|
8212
8618
|
|
|
8213
8619
|
// ../../node_modules/zod/v4/locales/pt.js
|
|
8214
|
-
var
|
|
8620
|
+
var error36 = () => {
|
|
8215
8621
|
const Sizable = {
|
|
8216
8622
|
string: { unit: "caracteres", verb: "ter" },
|
|
8217
8623
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -8315,7 +8721,127 @@ var error34 = () => {
|
|
|
8315
8721
|
};
|
|
8316
8722
|
function pt_default() {
|
|
8317
8723
|
return {
|
|
8318
|
-
localeError:
|
|
8724
|
+
localeError: error36()
|
|
8725
|
+
};
|
|
8726
|
+
}
|
|
8727
|
+
|
|
8728
|
+
// ../../node_modules/zod/v4/locales/ro.js
|
|
8729
|
+
var error37 = () => {
|
|
8730
|
+
const Sizable = {
|
|
8731
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
8732
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
8733
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8734
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
8735
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
8736
|
+
};
|
|
8737
|
+
function getSizing(origin) {
|
|
8738
|
+
return Sizable[origin] ?? null;
|
|
8739
|
+
}
|
|
8740
|
+
const FormatDictionary = {
|
|
8741
|
+
regex: "intrare",
|
|
8742
|
+
email: "adres\u0103 de email",
|
|
8743
|
+
url: "URL",
|
|
8744
|
+
emoji: "emoji",
|
|
8745
|
+
uuid: "UUID",
|
|
8746
|
+
uuidv4: "UUIDv4",
|
|
8747
|
+
uuidv6: "UUIDv6",
|
|
8748
|
+
nanoid: "nanoid",
|
|
8749
|
+
guid: "GUID",
|
|
8750
|
+
cuid: "cuid",
|
|
8751
|
+
cuid2: "cuid2",
|
|
8752
|
+
ulid: "ULID",
|
|
8753
|
+
xid: "XID",
|
|
8754
|
+
ksuid: "KSUID",
|
|
8755
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
8756
|
+
date: "dat\u0103 ISO",
|
|
8757
|
+
time: "or\u0103 ISO",
|
|
8758
|
+
duration: "durat\u0103 ISO",
|
|
8759
|
+
ipv4: "adres\u0103 IPv4",
|
|
8760
|
+
ipv6: "adres\u0103 IPv6",
|
|
8761
|
+
mac: "adres\u0103 MAC",
|
|
8762
|
+
cidrv4: "interval IPv4",
|
|
8763
|
+
cidrv6: "interval IPv6",
|
|
8764
|
+
base64: "\u0219ir codat base64",
|
|
8765
|
+
base64url: "\u0219ir codat base64url",
|
|
8766
|
+
json_string: "\u0219ir JSON",
|
|
8767
|
+
e164: "num\u0103r E.164",
|
|
8768
|
+
jwt: "JWT",
|
|
8769
|
+
template_literal: "intrare"
|
|
8770
|
+
};
|
|
8771
|
+
const TypeDictionary = {
|
|
8772
|
+
nan: "NaN",
|
|
8773
|
+
string: "\u0219ir",
|
|
8774
|
+
number: "num\u0103r",
|
|
8775
|
+
boolean: "boolean",
|
|
8776
|
+
function: "func\u021Bie",
|
|
8777
|
+
array: "matrice",
|
|
8778
|
+
object: "obiect",
|
|
8779
|
+
undefined: "nedefinit",
|
|
8780
|
+
symbol: "simbol",
|
|
8781
|
+
bigint: "num\u0103r mare",
|
|
8782
|
+
void: "void",
|
|
8783
|
+
never: "never",
|
|
8784
|
+
map: "hart\u0103",
|
|
8785
|
+
set: "set"
|
|
8786
|
+
};
|
|
8787
|
+
return (issue2) => {
|
|
8788
|
+
switch (issue2.code) {
|
|
8789
|
+
case "invalid_type": {
|
|
8790
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
8791
|
+
const receivedType = parsedType(issue2.input);
|
|
8792
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
8793
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
8794
|
+
}
|
|
8795
|
+
case "invalid_value":
|
|
8796
|
+
if (issue2.values.length === 1)
|
|
8797
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
8798
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
8799
|
+
case "too_big": {
|
|
8800
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
8801
|
+
const sizing = getSizing(issue2.origin);
|
|
8802
|
+
if (sizing)
|
|
8803
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
8804
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
8805
|
+
}
|
|
8806
|
+
case "too_small": {
|
|
8807
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
8808
|
+
const sizing = getSizing(issue2.origin);
|
|
8809
|
+
if (sizing) {
|
|
8810
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
8811
|
+
}
|
|
8812
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
8813
|
+
}
|
|
8814
|
+
case "invalid_format": {
|
|
8815
|
+
const _issue = issue2;
|
|
8816
|
+
if (_issue.format === "starts_with") {
|
|
8817
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
8818
|
+
}
|
|
8819
|
+
if (_issue.format === "ends_with")
|
|
8820
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
8821
|
+
if (_issue.format === "includes")
|
|
8822
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
8823
|
+
if (_issue.format === "regex")
|
|
8824
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
8825
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
8826
|
+
}
|
|
8827
|
+
case "not_multiple_of":
|
|
8828
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
8829
|
+
case "unrecognized_keys":
|
|
8830
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
8831
|
+
case "invalid_key":
|
|
8832
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8833
|
+
case "invalid_union":
|
|
8834
|
+
return "Intrare invalid\u0103";
|
|
8835
|
+
case "invalid_element":
|
|
8836
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
8837
|
+
default:
|
|
8838
|
+
return `Intrare invalid\u0103`;
|
|
8839
|
+
}
|
|
8840
|
+
};
|
|
8841
|
+
};
|
|
8842
|
+
function ro_default() {
|
|
8843
|
+
return {
|
|
8844
|
+
localeError: error37()
|
|
8319
8845
|
};
|
|
8320
8846
|
}
|
|
8321
8847
|
|
|
@@ -8335,7 +8861,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
8335
8861
|
}
|
|
8336
8862
|
return many;
|
|
8337
8863
|
}
|
|
8338
|
-
var
|
|
8864
|
+
var error38 = () => {
|
|
8339
8865
|
const Sizable = {
|
|
8340
8866
|
string: {
|
|
8341
8867
|
unit: {
|
|
@@ -8472,12 +8998,12 @@ var error35 = () => {
|
|
|
8472
8998
|
};
|
|
8473
8999
|
function ru_default() {
|
|
8474
9000
|
return {
|
|
8475
|
-
localeError:
|
|
9001
|
+
localeError: error38()
|
|
8476
9002
|
};
|
|
8477
9003
|
}
|
|
8478
9004
|
|
|
8479
9005
|
// ../../node_modules/zod/v4/locales/sl.js
|
|
8480
|
-
var
|
|
9006
|
+
var error39 = () => {
|
|
8481
9007
|
const Sizable = {
|
|
8482
9008
|
string: { unit: "znakov", verb: "imeti" },
|
|
8483
9009
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -8582,12 +9108,12 @@ var error36 = () => {
|
|
|
8582
9108
|
};
|
|
8583
9109
|
function sl_default() {
|
|
8584
9110
|
return {
|
|
8585
|
-
localeError:
|
|
9111
|
+
localeError: error39()
|
|
8586
9112
|
};
|
|
8587
9113
|
}
|
|
8588
9114
|
|
|
8589
9115
|
// ../../node_modules/zod/v4/locales/sv.js
|
|
8590
|
-
var
|
|
9116
|
+
var error40 = () => {
|
|
8591
9117
|
const Sizable = {
|
|
8592
9118
|
string: { unit: "tecken", verb: "att ha" },
|
|
8593
9119
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -8693,12 +9219,12 @@ var error37 = () => {
|
|
|
8693
9219
|
};
|
|
8694
9220
|
function sv_default() {
|
|
8695
9221
|
return {
|
|
8696
|
-
localeError:
|
|
9222
|
+
localeError: error40()
|
|
8697
9223
|
};
|
|
8698
9224
|
}
|
|
8699
9225
|
|
|
8700
9226
|
// ../../node_modules/zod/v4/locales/ta.js
|
|
8701
|
-
var
|
|
9227
|
+
var error41 = () => {
|
|
8702
9228
|
const Sizable = {
|
|
8703
9229
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
8704
9230
|
file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -8804,12 +9330,12 @@ var error38 = () => {
|
|
|
8804
9330
|
};
|
|
8805
9331
|
function ta_default() {
|
|
8806
9332
|
return {
|
|
8807
|
-
localeError:
|
|
9333
|
+
localeError: error41()
|
|
8808
9334
|
};
|
|
8809
9335
|
}
|
|
8810
9336
|
|
|
8811
9337
|
// ../../node_modules/zod/v4/locales/th.js
|
|
8812
|
-
var
|
|
9338
|
+
var error42 = () => {
|
|
8813
9339
|
const Sizable = {
|
|
8814
9340
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
8815
9341
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8915,12 +9441,12 @@ var error39 = () => {
|
|
|
8915
9441
|
};
|
|
8916
9442
|
function th_default() {
|
|
8917
9443
|
return {
|
|
8918
|
-
localeError:
|
|
9444
|
+
localeError: error42()
|
|
8919
9445
|
};
|
|
8920
9446
|
}
|
|
8921
9447
|
|
|
8922
9448
|
// ../../node_modules/zod/v4/locales/tr.js
|
|
8923
|
-
var
|
|
9449
|
+
var error43 = () => {
|
|
8924
9450
|
const Sizable = {
|
|
8925
9451
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
8926
9452
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -9021,12 +9547,12 @@ var error40 = () => {
|
|
|
9021
9547
|
};
|
|
9022
9548
|
function tr_default() {
|
|
9023
9549
|
return {
|
|
9024
|
-
localeError:
|
|
9550
|
+
localeError: error43()
|
|
9025
9551
|
};
|
|
9026
9552
|
}
|
|
9027
9553
|
|
|
9028
9554
|
// ../../node_modules/zod/v4/locales/uk.js
|
|
9029
|
-
var
|
|
9555
|
+
var error44 = () => {
|
|
9030
9556
|
const Sizable = {
|
|
9031
9557
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
9032
9558
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -9130,7 +9656,7 @@ var error41 = () => {
|
|
|
9130
9656
|
};
|
|
9131
9657
|
function uk_default() {
|
|
9132
9658
|
return {
|
|
9133
|
-
localeError:
|
|
9659
|
+
localeError: error44()
|
|
9134
9660
|
};
|
|
9135
9661
|
}
|
|
9136
9662
|
|
|
@@ -9140,7 +9666,7 @@ function ua_default() {
|
|
|
9140
9666
|
}
|
|
9141
9667
|
|
|
9142
9668
|
// ../../node_modules/zod/v4/locales/ur.js
|
|
9143
|
-
var
|
|
9669
|
+
var error45 = () => {
|
|
9144
9670
|
const Sizable = {
|
|
9145
9671
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
9146
9672
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9246,17 +9772,18 @@ var error42 = () => {
|
|
|
9246
9772
|
};
|
|
9247
9773
|
function ur_default() {
|
|
9248
9774
|
return {
|
|
9249
|
-
localeError:
|
|
9775
|
+
localeError: error45()
|
|
9250
9776
|
};
|
|
9251
9777
|
}
|
|
9252
9778
|
|
|
9253
9779
|
// ../../node_modules/zod/v4/locales/uz.js
|
|
9254
|
-
var
|
|
9780
|
+
var error46 = () => {
|
|
9255
9781
|
const Sizable = {
|
|
9256
9782
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
9257
9783
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
9258
9784
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9259
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
9785
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
9786
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
9260
9787
|
};
|
|
9261
9788
|
function getSizing(origin) {
|
|
9262
9789
|
return Sizable[origin] ?? null;
|
|
@@ -9356,12 +9883,12 @@ var error43 = () => {
|
|
|
9356
9883
|
};
|
|
9357
9884
|
function uz_default() {
|
|
9358
9885
|
return {
|
|
9359
|
-
localeError:
|
|
9886
|
+
localeError: error46()
|
|
9360
9887
|
};
|
|
9361
9888
|
}
|
|
9362
9889
|
|
|
9363
9890
|
// ../../node_modules/zod/v4/locales/vi.js
|
|
9364
|
-
var
|
|
9891
|
+
var error47 = () => {
|
|
9365
9892
|
const Sizable = {
|
|
9366
9893
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
9367
9894
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -9465,12 +9992,12 @@ var error44 = () => {
|
|
|
9465
9992
|
};
|
|
9466
9993
|
function vi_default() {
|
|
9467
9994
|
return {
|
|
9468
|
-
localeError:
|
|
9995
|
+
localeError: error47()
|
|
9469
9996
|
};
|
|
9470
9997
|
}
|
|
9471
9998
|
|
|
9472
9999
|
// ../../node_modules/zod/v4/locales/zh-CN.js
|
|
9473
|
-
var
|
|
10000
|
+
var error48 = () => {
|
|
9474
10001
|
const Sizable = {
|
|
9475
10002
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
9476
10003
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -9575,12 +10102,12 @@ var error45 = () => {
|
|
|
9575
10102
|
};
|
|
9576
10103
|
function zh_CN_default() {
|
|
9577
10104
|
return {
|
|
9578
|
-
localeError:
|
|
10105
|
+
localeError: error48()
|
|
9579
10106
|
};
|
|
9580
10107
|
}
|
|
9581
10108
|
|
|
9582
10109
|
// ../../node_modules/zod/v4/locales/zh-TW.js
|
|
9583
|
-
var
|
|
10110
|
+
var error49 = () => {
|
|
9584
10111
|
const Sizable = {
|
|
9585
10112
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
9586
10113
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -9683,12 +10210,12 @@ var error46 = () => {
|
|
|
9683
10210
|
};
|
|
9684
10211
|
function zh_TW_default() {
|
|
9685
10212
|
return {
|
|
9686
|
-
localeError:
|
|
10213
|
+
localeError: error49()
|
|
9687
10214
|
};
|
|
9688
10215
|
}
|
|
9689
10216
|
|
|
9690
10217
|
// ../../node_modules/zod/v4/locales/yo.js
|
|
9691
|
-
var
|
|
10218
|
+
var error50 = () => {
|
|
9692
10219
|
const Sizable = {
|
|
9693
10220
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
9694
10221
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -9791,12 +10318,12 @@ var error47 = () => {
|
|
|
9791
10318
|
};
|
|
9792
10319
|
function yo_default() {
|
|
9793
10320
|
return {
|
|
9794
|
-
localeError:
|
|
10321
|
+
localeError: error50()
|
|
9795
10322
|
};
|
|
9796
10323
|
}
|
|
9797
10324
|
|
|
9798
10325
|
// ../../node_modules/zod/v4/core/registries.js
|
|
9799
|
-
var
|
|
10326
|
+
var _a2;
|
|
9800
10327
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
9801
10328
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
9802
10329
|
var $ZodRegistry = class {
|
|
@@ -9842,7 +10369,7 @@ var $ZodRegistry = class {
|
|
|
9842
10369
|
function registry() {
|
|
9843
10370
|
return new $ZodRegistry();
|
|
9844
10371
|
}
|
|
9845
|
-
(
|
|
10372
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
9846
10373
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
9847
10374
|
|
|
9848
10375
|
// ../../node_modules/zod/v4/core/api.js
|
|
@@ -10760,7 +11287,7 @@ function _refine(Class2, fn, _params) {
|
|
|
10760
11287
|
return schema;
|
|
10761
11288
|
}
|
|
10762
11289
|
// @__NO_SIDE_EFFECTS__
|
|
10763
|
-
function _superRefine(fn) {
|
|
11290
|
+
function _superRefine(fn, params) {
|
|
10764
11291
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
10765
11292
|
payload.addIssue = (issue2) => {
|
|
10766
11293
|
if (typeof issue2 === "string") {
|
|
@@ -10777,7 +11304,7 @@ function _superRefine(fn) {
|
|
|
10777
11304
|
}
|
|
10778
11305
|
};
|
|
10779
11306
|
return fn(payload.value, payload);
|
|
10780
|
-
});
|
|
11307
|
+
}, params);
|
|
10781
11308
|
return ch;
|
|
10782
11309
|
}
|
|
10783
11310
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -10907,7 +11434,7 @@ function initializeContext(params) {
|
|
|
10907
11434
|
};
|
|
10908
11435
|
}
|
|
10909
11436
|
function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
10910
|
-
var
|
|
11437
|
+
var _a3;
|
|
10911
11438
|
const def = schema._zod.def;
|
|
10912
11439
|
const seen = ctx.seen.get(schema);
|
|
10913
11440
|
if (seen) {
|
|
@@ -10954,8 +11481,8 @@ function process(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
10954
11481
|
delete result.schema.examples;
|
|
10955
11482
|
delete result.schema.default;
|
|
10956
11483
|
}
|
|
10957
|
-
if (ctx.io === "input" && result.schema
|
|
10958
|
-
(
|
|
11484
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
11485
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
10959
11486
|
delete result.schema._prefault;
|
|
10960
11487
|
const _result = ctx.seen.get(schema);
|
|
10961
11488
|
return _result.schema;
|
|
@@ -11136,10 +11663,15 @@ function finalize(ctx, schema) {
|
|
|
11136
11663
|
result.$id = ctx.external.uri(id);
|
|
11137
11664
|
}
|
|
11138
11665
|
Object.assign(result, root.def ?? root.schema);
|
|
11666
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
11667
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
11668
|
+
delete result.id;
|
|
11139
11669
|
const defs = ctx.external?.defs ?? {};
|
|
11140
11670
|
for (const entry of ctx.seen.entries()) {
|
|
11141
11671
|
const seen = entry[1];
|
|
11142
11672
|
if (seen.def && seen.defId) {
|
|
11673
|
+
if (seen.def.id === seen.defId)
|
|
11674
|
+
delete seen.def.id;
|
|
11143
11675
|
defs[seen.defId] = seen.def;
|
|
11144
11676
|
}
|
|
11145
11677
|
}
|
|
@@ -11195,6 +11727,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
11195
11727
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
11196
11728
|
}
|
|
11197
11729
|
if (def.type === "pipe") {
|
|
11730
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
11731
|
+
return true;
|
|
11198
11732
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
11199
11733
|
}
|
|
11200
11734
|
if (def.type === "object") {
|
|
@@ -11284,39 +11818,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
11284
11818
|
json2.type = "integer";
|
|
11285
11819
|
else
|
|
11286
11820
|
json2.type = "number";
|
|
11287
|
-
|
|
11288
|
-
|
|
11821
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
11822
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
11823
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
11824
|
+
if (exMin) {
|
|
11825
|
+
if (legacy) {
|
|
11289
11826
|
json2.minimum = exclusiveMinimum;
|
|
11290
11827
|
json2.exclusiveMinimum = true;
|
|
11291
11828
|
} else {
|
|
11292
11829
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
11293
11830
|
}
|
|
11294
|
-
}
|
|
11295
|
-
if (typeof minimum === "number") {
|
|
11831
|
+
} else if (typeof minimum === "number") {
|
|
11296
11832
|
json2.minimum = minimum;
|
|
11297
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
11298
|
-
if (exclusiveMinimum >= minimum)
|
|
11299
|
-
delete json2.minimum;
|
|
11300
|
-
else
|
|
11301
|
-
delete json2.exclusiveMinimum;
|
|
11302
|
-
}
|
|
11303
11833
|
}
|
|
11304
|
-
if (
|
|
11305
|
-
if (
|
|
11834
|
+
if (exMax) {
|
|
11835
|
+
if (legacy) {
|
|
11306
11836
|
json2.maximum = exclusiveMaximum;
|
|
11307
11837
|
json2.exclusiveMaximum = true;
|
|
11308
11838
|
} else {
|
|
11309
11839
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
11310
11840
|
}
|
|
11311
|
-
}
|
|
11312
|
-
if (typeof maximum === "number") {
|
|
11841
|
+
} else if (typeof maximum === "number") {
|
|
11313
11842
|
json2.maximum = maximum;
|
|
11314
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
11315
|
-
if (exclusiveMaximum <= maximum)
|
|
11316
|
-
delete json2.maximum;
|
|
11317
|
-
else
|
|
11318
|
-
delete json2.exclusiveMaximum;
|
|
11319
|
-
}
|
|
11320
11843
|
}
|
|
11321
11844
|
if (typeof multipleOf === "number")
|
|
11322
11845
|
json2.multipleOf = multipleOf;
|
|
@@ -11488,7 +12011,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
11488
12011
|
if (typeof maximum === "number")
|
|
11489
12012
|
json2.maxItems = maximum;
|
|
11490
12013
|
json2.type = "array";
|
|
11491
|
-
json2.items = process(def.element, ctx, {
|
|
12014
|
+
json2.items = process(def.element, ctx, {
|
|
12015
|
+
...params,
|
|
12016
|
+
path: [...params.path, "items"]
|
|
12017
|
+
});
|
|
11492
12018
|
};
|
|
11493
12019
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
11494
12020
|
const json2 = _json;
|
|
@@ -11681,7 +12207,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
11681
12207
|
};
|
|
11682
12208
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
11683
12209
|
const def = schema._zod.def;
|
|
11684
|
-
const
|
|
12210
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
12211
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
11685
12212
|
process(innerType, ctx, params);
|
|
11686
12213
|
const seen = ctx.seen.get(schema);
|
|
11687
12214
|
seen.ref = innerType;
|
|
@@ -11915,6 +12442,7 @@ __export(schemas_exports2, {
|
|
|
11915
12442
|
ZodOptional: () => ZodOptional,
|
|
11916
12443
|
ZodPipe: () => ZodPipe,
|
|
11917
12444
|
ZodPrefault: () => ZodPrefault,
|
|
12445
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
11918
12446
|
ZodPromise: () => ZodPromise,
|
|
11919
12447
|
ZodReadonly: () => ZodReadonly,
|
|
11920
12448
|
ZodRecord: () => ZodRecord,
|
|
@@ -11975,6 +12503,7 @@ __export(schemas_exports2, {
|
|
|
11975
12503
|
int32: () => int32,
|
|
11976
12504
|
int64: () => int64,
|
|
11977
12505
|
intersection: () => intersection,
|
|
12506
|
+
invertCodec: () => invertCodec,
|
|
11978
12507
|
ipv4: () => ipv42,
|
|
11979
12508
|
ipv6: () => ipv62,
|
|
11980
12509
|
json: () => json,
|
|
@@ -12144,8 +12673,8 @@ var initializer2 = (inst, issues) => {
|
|
|
12144
12673
|
}
|
|
12145
12674
|
});
|
|
12146
12675
|
};
|
|
12147
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
12148
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
12676
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
12677
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
12149
12678
|
Parent: Error
|
|
12150
12679
|
});
|
|
12151
12680
|
|
|
@@ -12164,6 +12693,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
12164
12693
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
12165
12694
|
|
|
12166
12695
|
// ../../node_modules/zod/v4/classic/schemas.js
|
|
12696
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
12697
|
+
function _installLazyMethods(inst, group, methods) {
|
|
12698
|
+
const proto = Object.getPrototypeOf(inst);
|
|
12699
|
+
let installed = _installedGroups.get(proto);
|
|
12700
|
+
if (!installed) {
|
|
12701
|
+
installed = /* @__PURE__ */ new Set();
|
|
12702
|
+
_installedGroups.set(proto, installed);
|
|
12703
|
+
}
|
|
12704
|
+
if (installed.has(group))
|
|
12705
|
+
return;
|
|
12706
|
+
installed.add(group);
|
|
12707
|
+
for (const key in methods) {
|
|
12708
|
+
const fn = methods[key];
|
|
12709
|
+
Object.defineProperty(proto, key, {
|
|
12710
|
+
configurable: true,
|
|
12711
|
+
enumerable: false,
|
|
12712
|
+
get() {
|
|
12713
|
+
const bound = fn.bind(this);
|
|
12714
|
+
Object.defineProperty(this, key, {
|
|
12715
|
+
configurable: true,
|
|
12716
|
+
writable: true,
|
|
12717
|
+
enumerable: true,
|
|
12718
|
+
value: bound
|
|
12719
|
+
});
|
|
12720
|
+
return bound;
|
|
12721
|
+
},
|
|
12722
|
+
set(v) {
|
|
12723
|
+
Object.defineProperty(this, key, {
|
|
12724
|
+
configurable: true,
|
|
12725
|
+
writable: true,
|
|
12726
|
+
enumerable: true,
|
|
12727
|
+
value: v
|
|
12728
|
+
});
|
|
12729
|
+
}
|
|
12730
|
+
});
|
|
12731
|
+
}
|
|
12732
|
+
}
|
|
12167
12733
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
12168
12734
|
$ZodType.init(inst, def);
|
|
12169
12735
|
Object.assign(inst["~standard"], {
|
|
@@ -12176,23 +12742,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12176
12742
|
inst.def = def;
|
|
12177
12743
|
inst.type = def.type;
|
|
12178
12744
|
Object.defineProperty(inst, "_def", { value: def });
|
|
12179
|
-
inst.check = (...checks) => {
|
|
12180
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
12181
|
-
checks: [
|
|
12182
|
-
...def.checks ?? [],
|
|
12183
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12184
|
-
]
|
|
12185
|
-
}), {
|
|
12186
|
-
parent: true
|
|
12187
|
-
});
|
|
12188
|
-
};
|
|
12189
|
-
inst.with = inst.check;
|
|
12190
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
12191
|
-
inst.brand = () => inst;
|
|
12192
|
-
inst.register = ((reg, meta3) => {
|
|
12193
|
-
reg.add(inst, meta3);
|
|
12194
|
-
return inst;
|
|
12195
|
-
});
|
|
12196
12745
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
12197
12746
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
12198
12747
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -12206,45 +12755,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
12206
12755
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
12207
12756
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
12208
12757
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
12209
|
-
inst
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12230
|
-
|
|
12758
|
+
_installLazyMethods(inst, "ZodType", {
|
|
12759
|
+
check(...chks) {
|
|
12760
|
+
const def2 = this.def;
|
|
12761
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
12762
|
+
checks: [
|
|
12763
|
+
...def2.checks ?? [],
|
|
12764
|
+
...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
12765
|
+
]
|
|
12766
|
+
}), { parent: true });
|
|
12767
|
+
},
|
|
12768
|
+
with(...chks) {
|
|
12769
|
+
return this.check(...chks);
|
|
12770
|
+
},
|
|
12771
|
+
clone(def2, params) {
|
|
12772
|
+
return clone(this, def2, params);
|
|
12773
|
+
},
|
|
12774
|
+
brand() {
|
|
12775
|
+
return this;
|
|
12776
|
+
},
|
|
12777
|
+
register(reg, meta3) {
|
|
12778
|
+
reg.add(this, meta3);
|
|
12779
|
+
return this;
|
|
12780
|
+
},
|
|
12781
|
+
refine(check2, params) {
|
|
12782
|
+
return this.check(refine(check2, params));
|
|
12783
|
+
},
|
|
12784
|
+
superRefine(refinement, params) {
|
|
12785
|
+
return this.check(superRefine(refinement, params));
|
|
12786
|
+
},
|
|
12787
|
+
overwrite(fn) {
|
|
12788
|
+
return this.check(_overwrite(fn));
|
|
12789
|
+
},
|
|
12790
|
+
optional() {
|
|
12791
|
+
return optional(this);
|
|
12792
|
+
},
|
|
12793
|
+
exactOptional() {
|
|
12794
|
+
return exactOptional(this);
|
|
12795
|
+
},
|
|
12796
|
+
nullable() {
|
|
12797
|
+
return nullable(this);
|
|
12798
|
+
},
|
|
12799
|
+
nullish() {
|
|
12800
|
+
return optional(nullable(this));
|
|
12801
|
+
},
|
|
12802
|
+
nonoptional(params) {
|
|
12803
|
+
return nonoptional(this, params);
|
|
12804
|
+
},
|
|
12805
|
+
array() {
|
|
12806
|
+
return array(this);
|
|
12807
|
+
},
|
|
12808
|
+
or(arg) {
|
|
12809
|
+
return union([this, arg]);
|
|
12810
|
+
},
|
|
12811
|
+
and(arg) {
|
|
12812
|
+
return intersection(this, arg);
|
|
12813
|
+
},
|
|
12814
|
+
transform(tx) {
|
|
12815
|
+
return pipe(this, transform(tx));
|
|
12816
|
+
},
|
|
12817
|
+
default(d) {
|
|
12818
|
+
return _default2(this, d);
|
|
12819
|
+
},
|
|
12820
|
+
prefault(d) {
|
|
12821
|
+
return prefault(this, d);
|
|
12822
|
+
},
|
|
12823
|
+
catch(params) {
|
|
12824
|
+
return _catch2(this, params);
|
|
12825
|
+
},
|
|
12826
|
+
pipe(target) {
|
|
12827
|
+
return pipe(this, target);
|
|
12828
|
+
},
|
|
12829
|
+
readonly() {
|
|
12830
|
+
return readonly(this);
|
|
12831
|
+
},
|
|
12832
|
+
describe(description) {
|
|
12833
|
+
const cl = this.clone();
|
|
12834
|
+
globalRegistry.add(cl, { description });
|
|
12835
|
+
return cl;
|
|
12836
|
+
},
|
|
12837
|
+
meta(...args) {
|
|
12838
|
+
if (args.length === 0)
|
|
12839
|
+
return globalRegistry.get(this);
|
|
12840
|
+
const cl = this.clone();
|
|
12841
|
+
globalRegistry.add(cl, args[0]);
|
|
12842
|
+
return cl;
|
|
12843
|
+
},
|
|
12844
|
+
isOptional() {
|
|
12845
|
+
return this.safeParse(void 0).success;
|
|
12846
|
+
},
|
|
12847
|
+
isNullable() {
|
|
12848
|
+
return this.safeParse(null).success;
|
|
12849
|
+
},
|
|
12850
|
+
apply(fn) {
|
|
12851
|
+
return fn(this);
|
|
12852
|
+
}
|
|
12853
|
+
});
|
|
12231
12854
|
Object.defineProperty(inst, "description", {
|
|
12232
12855
|
get() {
|
|
12233
12856
|
return globalRegistry.get(inst)?.description;
|
|
12234
12857
|
},
|
|
12235
12858
|
configurable: true
|
|
12236
12859
|
});
|
|
12237
|
-
inst.meta = (...args) => {
|
|
12238
|
-
if (args.length === 0) {
|
|
12239
|
-
return globalRegistry.get(inst);
|
|
12240
|
-
}
|
|
12241
|
-
const cl = inst.clone();
|
|
12242
|
-
globalRegistry.add(cl, args[0]);
|
|
12243
|
-
return cl;
|
|
12244
|
-
};
|
|
12245
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
12246
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
12247
|
-
inst.apply = (fn) => fn(inst);
|
|
12248
12860
|
return inst;
|
|
12249
12861
|
});
|
|
12250
12862
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -12255,21 +12867,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
12255
12867
|
inst.format = bag.format ?? null;
|
|
12256
12868
|
inst.minLength = bag.minimum ?? null;
|
|
12257
12869
|
inst.maxLength = bag.maximum ?? null;
|
|
12258
|
-
inst
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12870
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
12871
|
+
regex(...args) {
|
|
12872
|
+
return this.check(_regex(...args));
|
|
12873
|
+
},
|
|
12874
|
+
includes(...args) {
|
|
12875
|
+
return this.check(_includes(...args));
|
|
12876
|
+
},
|
|
12877
|
+
startsWith(...args) {
|
|
12878
|
+
return this.check(_startsWith(...args));
|
|
12879
|
+
},
|
|
12880
|
+
endsWith(...args) {
|
|
12881
|
+
return this.check(_endsWith(...args));
|
|
12882
|
+
},
|
|
12883
|
+
min(...args) {
|
|
12884
|
+
return this.check(_minLength(...args));
|
|
12885
|
+
},
|
|
12886
|
+
max(...args) {
|
|
12887
|
+
return this.check(_maxLength(...args));
|
|
12888
|
+
},
|
|
12889
|
+
length(...args) {
|
|
12890
|
+
return this.check(_length(...args));
|
|
12891
|
+
},
|
|
12892
|
+
nonempty(...args) {
|
|
12893
|
+
return this.check(_minLength(1, ...args));
|
|
12894
|
+
},
|
|
12895
|
+
lowercase(params) {
|
|
12896
|
+
return this.check(_lowercase(params));
|
|
12897
|
+
},
|
|
12898
|
+
uppercase(params) {
|
|
12899
|
+
return this.check(_uppercase(params));
|
|
12900
|
+
},
|
|
12901
|
+
trim() {
|
|
12902
|
+
return this.check(_trim());
|
|
12903
|
+
},
|
|
12904
|
+
normalize(...args) {
|
|
12905
|
+
return this.check(_normalize(...args));
|
|
12906
|
+
},
|
|
12907
|
+
toLowerCase() {
|
|
12908
|
+
return this.check(_toLowerCase());
|
|
12909
|
+
},
|
|
12910
|
+
toUpperCase() {
|
|
12911
|
+
return this.check(_toUpperCase());
|
|
12912
|
+
},
|
|
12913
|
+
slugify() {
|
|
12914
|
+
return this.check(_slugify());
|
|
12915
|
+
}
|
|
12916
|
+
});
|
|
12273
12917
|
});
|
|
12274
12918
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
12275
12919
|
$ZodString.init(inst, def);
|
|
@@ -12348,7 +12992,7 @@ function url(params) {
|
|
|
12348
12992
|
}
|
|
12349
12993
|
function httpUrl(params) {
|
|
12350
12994
|
return _url(ZodURL, {
|
|
12351
|
-
protocol:
|
|
12995
|
+
protocol: regexes_exports.httpProtocol,
|
|
12352
12996
|
hostname: regexes_exports.domain,
|
|
12353
12997
|
...util_exports.normalizeParams(params)
|
|
12354
12998
|
});
|
|
@@ -12490,21 +13134,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
12490
13134
|
$ZodNumber.init(inst, def);
|
|
12491
13135
|
ZodType.init(inst, def);
|
|
12492
13136
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
12493
|
-
inst
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
13137
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
13138
|
+
gt(value, params) {
|
|
13139
|
+
return this.check(_gt(value, params));
|
|
13140
|
+
},
|
|
13141
|
+
gte(value, params) {
|
|
13142
|
+
return this.check(_gte(value, params));
|
|
13143
|
+
},
|
|
13144
|
+
min(value, params) {
|
|
13145
|
+
return this.check(_gte(value, params));
|
|
13146
|
+
},
|
|
13147
|
+
lt(value, params) {
|
|
13148
|
+
return this.check(_lt(value, params));
|
|
13149
|
+
},
|
|
13150
|
+
lte(value, params) {
|
|
13151
|
+
return this.check(_lte(value, params));
|
|
13152
|
+
},
|
|
13153
|
+
max(value, params) {
|
|
13154
|
+
return this.check(_lte(value, params));
|
|
13155
|
+
},
|
|
13156
|
+
int(params) {
|
|
13157
|
+
return this.check(int(params));
|
|
13158
|
+
},
|
|
13159
|
+
safe(params) {
|
|
13160
|
+
return this.check(int(params));
|
|
13161
|
+
},
|
|
13162
|
+
positive(params) {
|
|
13163
|
+
return this.check(_gt(0, params));
|
|
13164
|
+
},
|
|
13165
|
+
nonnegative(params) {
|
|
13166
|
+
return this.check(_gte(0, params));
|
|
13167
|
+
},
|
|
13168
|
+
negative(params) {
|
|
13169
|
+
return this.check(_lt(0, params));
|
|
13170
|
+
},
|
|
13171
|
+
nonpositive(params) {
|
|
13172
|
+
return this.check(_lte(0, params));
|
|
13173
|
+
},
|
|
13174
|
+
multipleOf(value, params) {
|
|
13175
|
+
return this.check(_multipleOf(value, params));
|
|
13176
|
+
},
|
|
13177
|
+
step(value, params) {
|
|
13178
|
+
return this.check(_multipleOf(value, params));
|
|
13179
|
+
},
|
|
13180
|
+
finite() {
|
|
13181
|
+
return this;
|
|
13182
|
+
}
|
|
13183
|
+
});
|
|
12508
13184
|
const bag = inst._zod.bag;
|
|
12509
13185
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
12510
13186
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -12651,11 +13327,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
12651
13327
|
ZodType.init(inst, def);
|
|
12652
13328
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
12653
13329
|
inst.element = def.element;
|
|
12654
|
-
inst
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
13330
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
13331
|
+
min(n, params) {
|
|
13332
|
+
return this.check(_minLength(n, params));
|
|
13333
|
+
},
|
|
13334
|
+
nonempty(params) {
|
|
13335
|
+
return this.check(_minLength(1, params));
|
|
13336
|
+
},
|
|
13337
|
+
max(n, params) {
|
|
13338
|
+
return this.check(_maxLength(n, params));
|
|
13339
|
+
},
|
|
13340
|
+
length(n, params) {
|
|
13341
|
+
return this.check(_length(n, params));
|
|
13342
|
+
},
|
|
13343
|
+
unwrap() {
|
|
13344
|
+
return this.element;
|
|
13345
|
+
}
|
|
13346
|
+
});
|
|
12659
13347
|
});
|
|
12660
13348
|
function array(element, params) {
|
|
12661
13349
|
return _array(ZodArray, element, params);
|
|
@@ -12671,23 +13359,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
12671
13359
|
util_exports.defineLazy(inst, "shape", () => {
|
|
12672
13360
|
return def.shape;
|
|
12673
13361
|
});
|
|
12674
|
-
inst
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
13362
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
13363
|
+
keyof() {
|
|
13364
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
13365
|
+
},
|
|
13366
|
+
catchall(catchall) {
|
|
13367
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
13368
|
+
},
|
|
13369
|
+
passthrough() {
|
|
13370
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13371
|
+
},
|
|
13372
|
+
loose() {
|
|
13373
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
13374
|
+
},
|
|
13375
|
+
strict() {
|
|
13376
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
13377
|
+
},
|
|
13378
|
+
strip() {
|
|
13379
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
13380
|
+
},
|
|
13381
|
+
extend(incoming) {
|
|
13382
|
+
return util_exports.extend(this, incoming);
|
|
13383
|
+
},
|
|
13384
|
+
safeExtend(incoming) {
|
|
13385
|
+
return util_exports.safeExtend(this, incoming);
|
|
13386
|
+
},
|
|
13387
|
+
merge(other) {
|
|
13388
|
+
return util_exports.merge(this, other);
|
|
13389
|
+
},
|
|
13390
|
+
pick(mask) {
|
|
13391
|
+
return util_exports.pick(this, mask);
|
|
13392
|
+
},
|
|
13393
|
+
omit(mask) {
|
|
13394
|
+
return util_exports.omit(this, mask);
|
|
13395
|
+
},
|
|
13396
|
+
partial(...args) {
|
|
13397
|
+
return util_exports.partial(ZodOptional, this, args[0]);
|
|
13398
|
+
},
|
|
13399
|
+
required(...args) {
|
|
13400
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
13401
|
+
}
|
|
13402
|
+
});
|
|
12691
13403
|
});
|
|
12692
13404
|
function object(shape, params) {
|
|
12693
13405
|
const def = {
|
|
@@ -12792,6 +13504,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
12792
13504
|
inst.valueType = def.valueType;
|
|
12793
13505
|
});
|
|
12794
13506
|
function record(keyType, valueType, params) {
|
|
13507
|
+
if (!valueType || !valueType._zod) {
|
|
13508
|
+
return new ZodRecord({
|
|
13509
|
+
type: "record",
|
|
13510
|
+
keyType: string2(),
|
|
13511
|
+
valueType: keyType,
|
|
13512
|
+
...util_exports.normalizeParams(valueType)
|
|
13513
|
+
});
|
|
13514
|
+
}
|
|
12795
13515
|
return new ZodRecord({
|
|
12796
13516
|
type: "record",
|
|
12797
13517
|
keyType,
|
|
@@ -12963,10 +13683,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
12963
13683
|
if (output instanceof Promise) {
|
|
12964
13684
|
return output.then((output2) => {
|
|
12965
13685
|
payload.value = output2;
|
|
13686
|
+
payload.fallback = true;
|
|
12966
13687
|
return payload;
|
|
12967
13688
|
});
|
|
12968
13689
|
}
|
|
12969
13690
|
payload.value = output;
|
|
13691
|
+
payload.fallback = true;
|
|
12970
13692
|
return payload;
|
|
12971
13693
|
};
|
|
12972
13694
|
});
|
|
@@ -13121,6 +13843,20 @@ function codec(in_, out, params) {
|
|
|
13121
13843
|
reverseTransform: params.encode
|
|
13122
13844
|
});
|
|
13123
13845
|
}
|
|
13846
|
+
function invertCodec(codec2) {
|
|
13847
|
+
const def = codec2._zod.def;
|
|
13848
|
+
return new ZodCodec({
|
|
13849
|
+
type: "pipe",
|
|
13850
|
+
in: def.out,
|
|
13851
|
+
out: def.in,
|
|
13852
|
+
transform: def.reverseTransform,
|
|
13853
|
+
reverseTransform: def.transform
|
|
13854
|
+
});
|
|
13855
|
+
}
|
|
13856
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
13857
|
+
ZodPipe.init(inst, def);
|
|
13858
|
+
$ZodPreprocess.init(inst, def);
|
|
13859
|
+
});
|
|
13124
13860
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
13125
13861
|
$ZodReadonly.init(inst, def);
|
|
13126
13862
|
ZodType.init(inst, def);
|
|
@@ -13200,8 +13936,8 @@ function custom(fn, _params) {
|
|
|
13200
13936
|
function refine(fn, _params = {}) {
|
|
13201
13937
|
return _refine(ZodCustom, fn, _params);
|
|
13202
13938
|
}
|
|
13203
|
-
function superRefine(fn) {
|
|
13204
|
-
return _superRefine(fn);
|
|
13939
|
+
function superRefine(fn, params) {
|
|
13940
|
+
return _superRefine(fn, params);
|
|
13205
13941
|
}
|
|
13206
13942
|
var describe2 = describe;
|
|
13207
13943
|
var meta2 = meta;
|
|
@@ -13239,7 +13975,11 @@ function json(params) {
|
|
|
13239
13975
|
return jsonSchema;
|
|
13240
13976
|
}
|
|
13241
13977
|
function preprocess(fn, schema) {
|
|
13242
|
-
return
|
|
13978
|
+
return new ZodPreprocess({
|
|
13979
|
+
type: "pipe",
|
|
13980
|
+
in: transform(fn),
|
|
13981
|
+
out: schema
|
|
13982
|
+
});
|
|
13243
13983
|
}
|
|
13244
13984
|
|
|
13245
13985
|
// ../../node_modules/zod/v4/classic/compat.js
|
|
@@ -13660,12 +14400,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
13660
14400
|
default:
|
|
13661
14401
|
throw new Error(`Unsupported type: ${type}`);
|
|
13662
14402
|
}
|
|
13663
|
-
if (schema.description) {
|
|
13664
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
13665
|
-
}
|
|
13666
|
-
if (schema.default !== void 0) {
|
|
13667
|
-
zodSchema = zodSchema.default(schema.default);
|
|
13668
|
-
}
|
|
13669
14403
|
return zodSchema;
|
|
13670
14404
|
}
|
|
13671
14405
|
function convertSchema(schema, ctx) {
|
|
@@ -13702,6 +14436,9 @@ function convertSchema(schema, ctx) {
|
|
|
13702
14436
|
if (schema.readOnly === true) {
|
|
13703
14437
|
baseSchema = z.readonly(baseSchema);
|
|
13704
14438
|
}
|
|
14439
|
+
if (schema.default !== void 0) {
|
|
14440
|
+
baseSchema = baseSchema.default(schema.default);
|
|
14441
|
+
}
|
|
13705
14442
|
const extraMeta = {};
|
|
13706
14443
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
13707
14444
|
for (const key of coreMetadataKeys) {
|
|
@@ -13723,23 +14460,32 @@ function convertSchema(schema, ctx) {
|
|
|
13723
14460
|
if (Object.keys(extraMeta).length > 0) {
|
|
13724
14461
|
ctx.registry.add(baseSchema, extraMeta);
|
|
13725
14462
|
}
|
|
14463
|
+
if (schema.description) {
|
|
14464
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
14465
|
+
}
|
|
13726
14466
|
return baseSchema;
|
|
13727
14467
|
}
|
|
13728
14468
|
function fromJSONSchema(schema, params) {
|
|
13729
14469
|
if (typeof schema === "boolean") {
|
|
13730
14470
|
return schema ? z.any() : z.never();
|
|
13731
14471
|
}
|
|
13732
|
-
|
|
13733
|
-
|
|
14472
|
+
let normalized;
|
|
14473
|
+
try {
|
|
14474
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
14475
|
+
} catch {
|
|
14476
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
14477
|
+
}
|
|
14478
|
+
const version2 = detectVersion(normalized, params?.defaultTarget);
|
|
14479
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
13734
14480
|
const ctx = {
|
|
13735
14481
|
version: version2,
|
|
13736
14482
|
defs,
|
|
13737
14483
|
refs: /* @__PURE__ */ new Map(),
|
|
13738
14484
|
processing: /* @__PURE__ */ new Set(),
|
|
13739
|
-
rootSchema:
|
|
14485
|
+
rootSchema: normalized,
|
|
13740
14486
|
registry: params?.registry ?? globalRegistry
|
|
13741
14487
|
};
|
|
13742
|
-
return convertSchema(
|
|
14488
|
+
return convertSchema(normalized, ctx);
|
|
13743
14489
|
}
|
|
13744
14490
|
|
|
13745
14491
|
// ../../node_modules/zod/v4/classic/coerce.js
|
|
@@ -13992,6 +14738,9 @@ var GLASSTRACE_ATTRIBUTE_NAMES = {
|
|
|
13992
14738
|
SIDE_EFFECT_FIELD_TIMEZONE: "glasstrace.side_effect.field.timezone",
|
|
13993
14739
|
SIDE_EFFECT_FIELD_STATUS: "glasstrace.side_effect.field.status",
|
|
13994
14740
|
SIDE_EFFECT_FIELD_PHASE: "glasstrace.side_effect.field.phase",
|
|
14741
|
+
SIDE_EFFECT_FIELD_RECIPIENT_CLASS: "glasstrace.side_effect.field.recipientClass",
|
|
14742
|
+
SIDE_EFFECT_FIELD_PARTICIPANT_COUNT: "glasstrace.side_effect.field.participantCount",
|
|
14743
|
+
SIDE_EFFECT_FIELD_ACTIVE_PARTICIPANT_COUNT: "glasstrace.side_effect.field.activeParticipantCount",
|
|
13995
14744
|
// Omission reason attributes — one per allowlisted reason. The
|
|
13996
14745
|
// attribute value carries an integer count; the rejected value is
|
|
13997
14746
|
// never echoed.
|
|
@@ -14292,7 +15041,10 @@ var SIDE_EFFECT_SEMANTIC_FIELD_KEYS = [
|
|
|
14292
15041
|
"locale",
|
|
14293
15042
|
"timezone",
|
|
14294
15043
|
"status",
|
|
14295
|
-
"phase"
|
|
15044
|
+
"phase",
|
|
15045
|
+
"recipientClass",
|
|
15046
|
+
"participantCount",
|
|
15047
|
+
"activeParticipantCount"
|
|
14296
15048
|
];
|
|
14297
15049
|
var SIDE_EFFECT_OMISSION_REASONS = [
|
|
14298
15050
|
"pii",
|
|
@@ -14336,4 +15088,4 @@ export {
|
|
|
14336
15088
|
SIDE_EFFECT_OPERATION_STATUSES,
|
|
14337
15089
|
SIDE_EFFECT_OPERATION_PHASES
|
|
14338
15090
|
};
|
|
14339
|
-
//# sourceMappingURL=chunk-
|
|
15091
|
+
//# sourceMappingURL=chunk-BN5DVIUO.js.map
|