@digo-labs/ws 0.1.6 → 0.1.8
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 +11 -0
- package/dist/client.js +97 -79
- package/dist/client.js.map +1 -1
- package/dist/server.js +149 -141
- package/dist/server.js.map +1 -1
- package/dist/start-hub.cjs +1199 -455
- package/dist/start-hub.cjs.map +1 -1
- package/dist/start-hub.css +6 -3
- package/dist/start-hub.css.map +1 -1
- package/package.json +9 -4
package/dist/start-hub.cjs
CHANGED
|
@@ -6,7 +6,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
9
|
var __esm = (fn2, res) => function __init() {
|
|
11
10
|
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
|
12
11
|
};
|
|
@@ -33,7 +32,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
32
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
33
|
mod
|
|
35
34
|
));
|
|
36
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
37
35
|
|
|
38
36
|
// ../../node_modules/onnxruntime-web/dist/ort.webgpu.bundle.min.mjs
|
|
39
37
|
var ort_webgpu_bundle_min_exports = {};
|
|
@@ -1092,8 +1090,8 @@ var init_ort_webgpu_bundle_min = __esm({
|
|
|
1092
1090
|
return typeof wasmOffsetConverter < "u";
|
|
1093
1091
|
}
|
|
1094
1092
|
class gn {
|
|
1093
|
+
name = "ExitStatus";
|
|
1095
1094
|
constructor(u) {
|
|
1096
|
-
__publicField(this, "name", "ExitStatus");
|
|
1097
1095
|
this.message = `Program terminated with exit(${u})`, this.status = u;
|
|
1098
1096
|
}
|
|
1099
1097
|
}
|
|
@@ -1962,7 +1960,7 @@ var init_ort_webgpu_bundle_min = __esm({
|
|
|
1962
1960
|
})();
|
|
1963
1961
|
var Bi = (i) => (Bi = U.Cb)(i), Mi = () => (Mi = U.Db)();
|
|
1964
1962
|
r._OrtInit = (i, u) => (r._OrtInit = U.Eb)(i, u), r._OrtGetLastError = (i, u) => (r._OrtGetLastError = U.Fb)(i, u), r._OrtCreateSessionOptions = (i, u, c, m, g2, x, I, z4, B, L) => (r._OrtCreateSessionOptions = U.Gb)(i, u, c, m, g2, x, I, z4, B, L), r._OrtAppendExecutionProvider = (i, u) => (r._OrtAppendExecutionProvider = U.Hb)(i, u), r._OrtAddFreeDimensionOverride = (i, u, c) => (r._OrtAddFreeDimensionOverride = U.Ib)(i, u, c), r._OrtAddSessionConfigEntry = (i, u, c) => (r._OrtAddSessionConfigEntry = U.Jb)(i, u, c), r._OrtReleaseSessionOptions = (i) => (r._OrtReleaseSessionOptions = U.Kb)(i), r._OrtCreateSession = (i, u, c) => (r._OrtCreateSession = U.Lb)(i, u, c), r._OrtReleaseSession = (i) => (r._OrtReleaseSession = U.Mb)(i), r._OrtGetInputOutputCount = (i, u, c) => (r._OrtGetInputOutputCount = U.Nb)(i, u, c), r._OrtGetInputName = (i, u) => (r._OrtGetInputName = U.Ob)(i, u), r._OrtGetOutputName = (i, u) => (r._OrtGetOutputName = U.Pb)(i, u), r._OrtFree = (i) => (r._OrtFree = U.Qb)(i), r._OrtCreateTensor = (i, u, c, m, g2, x) => (r._OrtCreateTensor = U.Rb)(i, u, c, m, g2, x), r._OrtGetTensorData = (i, u, c, m, g2) => (r._OrtGetTensorData = U.Sb)(i, u, c, m, g2), r._OrtReleaseTensor = (i) => (r._OrtReleaseTensor = U.Tb)(i), r._OrtCreateRunOptions = (i, u, c, m) => (r._OrtCreateRunOptions = U.Ub)(i, u, c, m), r._OrtAddRunConfigEntry = (i, u, c) => (r._OrtAddRunConfigEntry = U.Vb)(i, u, c), r._OrtReleaseRunOptions = (i) => (r._OrtReleaseRunOptions = U.Wb)(i), r._OrtCreateBinding = (i) => (r._OrtCreateBinding = U.Xb)(i), r._OrtBindInput = (i, u, c) => (r._OrtBindInput = U.Yb)(i, u, c), r._OrtBindOutput = (i, u, c, m) => (r._OrtBindOutput = U.Zb)(i, u, c, m), r._OrtClearBoundOutputs = (i) => (r._OrtClearBoundOutputs = U._b)(i), r._OrtReleaseBinding = (i) => (r._OrtReleaseBinding = U.$b)(i), r._OrtRunWithBinding = (i, u, c, m, g2) => (r._OrtRunWithBinding = U.ac)(i, u, c, m, g2), r._OrtRun = (i, u, c, m, g2, x, I, z4) => (r._OrtRun = U.bc)(i, u, c, m, g2, x, I, z4), r._OrtEndProfiling = (i) => (r._OrtEndProfiling = U.cc)(i), r._JsepOutput = (i, u, c) => (r._JsepOutput = U.dc)(i, u, c), r._JsepGetNodeName = (i) => (r._JsepGetNodeName = U.ec)(i);
|
|
1965
|
-
var gr = () => (gr = U.fc)(), et2 = r._free = (i) => (et2 = r._free = U.gc)(i), yr = r._malloc = (i) => (yr = r._malloc = U.ic)(i), Dn = (i, u, c, m, g2, x) => (Dn = U.kc)(i, u, c, m, g2, x), Ri = () => (Ri = U.lc)(), Ui = (i, u, c, m, g2) => (Ui = U.mc)(i, u, c, m, g2), Ni = (i) => (Ni = U.nc)(i), Bn = (i) => (Bn = U.oc)(i), Vi = (i, u) => (Vi = U.pc)(i, u), Wi = () => (Wi = U.qc)(), se2 = (i, u) => (se2 = U.rc)(i, u), Kt = (i) => (Kt = U.sc)(i), Li = (i, u) => (Li = U.tc)(i, u), oe2 = (i) => (oe2 = U.uc)(i), Mn = (i) => (Mn = U.vc)(i), ie = () => (ie = U.wc)(), Gi = (i) => (Gi = U.xc)(i), Hi = (i) => (Hi = U.yc)(i), Fi = (i, u, c) => (Fi = U.zc)(i, u, c), qi = (i) => (qi = U.Ac)(i), Ki = r.dynCall_iii = (i, u, c) => (Ki = r.dynCall_iii = U.Bc)(i, u, c), ji = r.dynCall_vi = (i, u) => (ji = r.dynCall_vi = U.Cc)(i, u), Rn = r.dynCall_ii = (i, u) => (Rn = r.dynCall_ii = U.Dc)(i, u), Zi = r.dynCall_vii = (i, u, c) => (Zi = r.dynCall_vii = U.Ec)(i, u, c), Qi = r.dynCall_iiii = (i, u, c, m) => (Qi = r.dynCall_iiii = U.Fc)(i, u, c, m), Yi = r.dynCall_viii = (i, u, c, m) => (Yi = r.dynCall_viii = U.Gc)(i, u, c, m), Xi = r.dynCall_iiiii = (i, u, c, m, g2) => (Xi = r.dynCall_iiiii = U.Hc)(i, u, c, m, g2), Ji = r.dynCall_viiii = (i, u, c, m, g2) => (Ji = r.dynCall_viiii = U.Ic)(i, u, c, m, g2), ea = r.dynCall_viiiiii = (i, u, c, m, g2, x, I) => (ea = r.dynCall_viiiiii = U.Jc)(i, u, c, m, g2, x, I), ta = r.dynCall_viiiiiii = (i, u, c, m, g2, x, I, z4) => (ta = r.dynCall_viiiiiii = U.Kc)(i, u, c, m, g2, x, I, z4), ra = r.dynCall_ji = (i, u) => (ra = r.dynCall_ji = U.Lc)(i, u), na = r.dynCall_v = (i) => (na = r.dynCall_v = U.Mc)(i), oa = r.dynCall_viiiii = (i, u, c, m, g2, x) => (oa = r.dynCall_viiiii = U.Nc)(i, u, c, m, g2, x), ia = r.dynCall_i = (i) => (ia = r.dynCall_i = U.Oc)(i), aa = r.dynCall_fii = (i, u, c) => (aa = r.dynCall_fii = U.Pc)(i, u, c), sa = r.dynCall_viiiiiiii = (i, u, c, m, g2, x, I, z4, B) => (sa = r.dynCall_viiiiiiii = U.Qc)(i, u, c, m, g2, x, I, z4, B), ua = r.dynCall_viiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q) => (ua = r.dynCall_viiiiiiiiii = U.Rc)(i, u, c, m, g2, x, I, z4, B, L, q), da = r.dynCall_jiii = (i, u, c, m) => (da = r.dynCall_jiii = U.Sc)(i, u, c, m), la = r.dynCall_dii = (i, u, c) => (la = r.dynCall_dii = U.Tc)(i, u, c), ca = r.dynCall_viiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L) => (ca = r.dynCall_viiiiiiiii = U.Uc)(i, u, c, m, g2, x, I, z4, B, L), pa = r.dynCall_viiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q, X) => (pa = r.dynCall_viiiiiiiiiii = U.Vc)(i, u, c, m, g2, x, I, z4, B, L, q, X), ma = r.dynCall_iiiiii = (i, u, c, m, g2, x) => (ma = r.dynCall_iiiiii = U.Wc)(i, u, c, m, g2, x), fa = r.dynCall_iij = (i, u, c) => (fa = r.dynCall_iij = U.Xc)(i, u, c), ha = r.dynCall_iiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L) => (ha = r.dynCall_iiiiiiiiii = U.Yc)(i, u, c, m, g2, x, I, z4, B, L), ga = r.dynCall_iiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q) => (ga = r.dynCall_iiiiiiiiiii = U.Zc)(i, u, c, m, g2, x, I, z4, B, L, q), ya = r.dynCall_vij = (i, u, c) => (ya = r.dynCall_vij = U._c)(i, u, c), ba = r.dynCall_iiif = (i, u, c, m) => (ba = r.dynCall_iiif = U.$c)(i, u, c, m),
|
|
1963
|
+
var gr = () => (gr = U.fc)(), et2 = r._free = (i) => (et2 = r._free = U.gc)(i), yr = r._malloc = (i) => (yr = r._malloc = U.ic)(i), Dn = (i, u, c, m, g2, x) => (Dn = U.kc)(i, u, c, m, g2, x), Ri = () => (Ri = U.lc)(), Ui = (i, u, c, m, g2) => (Ui = U.mc)(i, u, c, m, g2), Ni = (i) => (Ni = U.nc)(i), Bn = (i) => (Bn = U.oc)(i), Vi = (i, u) => (Vi = U.pc)(i, u), Wi = () => (Wi = U.qc)(), se2 = (i, u) => (se2 = U.rc)(i, u), Kt = (i) => (Kt = U.sc)(i), Li = (i, u) => (Li = U.tc)(i, u), oe2 = (i) => (oe2 = U.uc)(i), Mn = (i) => (Mn = U.vc)(i), ie = () => (ie = U.wc)(), Gi = (i) => (Gi = U.xc)(i), Hi = (i) => (Hi = U.yc)(i), Fi = (i, u, c) => (Fi = U.zc)(i, u, c), qi = (i) => (qi = U.Ac)(i), Ki = r.dynCall_iii = (i, u, c) => (Ki = r.dynCall_iii = U.Bc)(i, u, c), ji = r.dynCall_vi = (i, u) => (ji = r.dynCall_vi = U.Cc)(i, u), Rn = r.dynCall_ii = (i, u) => (Rn = r.dynCall_ii = U.Dc)(i, u), Zi = r.dynCall_vii = (i, u, c) => (Zi = r.dynCall_vii = U.Ec)(i, u, c), Qi = r.dynCall_iiii = (i, u, c, m) => (Qi = r.dynCall_iiii = U.Fc)(i, u, c, m), Yi = r.dynCall_viii = (i, u, c, m) => (Yi = r.dynCall_viii = U.Gc)(i, u, c, m), Xi = r.dynCall_iiiii = (i, u, c, m, g2) => (Xi = r.dynCall_iiiii = U.Hc)(i, u, c, m, g2), Ji = r.dynCall_viiii = (i, u, c, m, g2) => (Ji = r.dynCall_viiii = U.Ic)(i, u, c, m, g2), ea = r.dynCall_viiiiii = (i, u, c, m, g2, x, I) => (ea = r.dynCall_viiiiii = U.Jc)(i, u, c, m, g2, x, I), ta = r.dynCall_viiiiiii = (i, u, c, m, g2, x, I, z4) => (ta = r.dynCall_viiiiiii = U.Kc)(i, u, c, m, g2, x, I, z4), ra = r.dynCall_ji = (i, u) => (ra = r.dynCall_ji = U.Lc)(i, u), na = r.dynCall_v = (i) => (na = r.dynCall_v = U.Mc)(i), oa = r.dynCall_viiiii = (i, u, c, m, g2, x) => (oa = r.dynCall_viiiii = U.Nc)(i, u, c, m, g2, x), ia = r.dynCall_i = (i) => (ia = r.dynCall_i = U.Oc)(i), aa = r.dynCall_fii = (i, u, c) => (aa = r.dynCall_fii = U.Pc)(i, u, c), sa = r.dynCall_viiiiiiii = (i, u, c, m, g2, x, I, z4, B) => (sa = r.dynCall_viiiiiiii = U.Qc)(i, u, c, m, g2, x, I, z4, B), ua = r.dynCall_viiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q) => (ua = r.dynCall_viiiiiiiiii = U.Rc)(i, u, c, m, g2, x, I, z4, B, L, q), da = r.dynCall_jiii = (i, u, c, m) => (da = r.dynCall_jiii = U.Sc)(i, u, c, m), la = r.dynCall_dii = (i, u, c) => (la = r.dynCall_dii = U.Tc)(i, u, c), ca = r.dynCall_viiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L) => (ca = r.dynCall_viiiiiiiii = U.Uc)(i, u, c, m, g2, x, I, z4, B, L), pa = r.dynCall_viiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q, X) => (pa = r.dynCall_viiiiiiiiiii = U.Vc)(i, u, c, m, g2, x, I, z4, B, L, q, X), ma = r.dynCall_iiiiii = (i, u, c, m, g2, x) => (ma = r.dynCall_iiiiii = U.Wc)(i, u, c, m, g2, x), fa = r.dynCall_iij = (i, u, c) => (fa = r.dynCall_iij = U.Xc)(i, u, c), ha = r.dynCall_iiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L) => (ha = r.dynCall_iiiiiiiiii = U.Yc)(i, u, c, m, g2, x, I, z4, B, L), ga = r.dynCall_iiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q) => (ga = r.dynCall_iiiiiiiiiii = U.Zc)(i, u, c, m, g2, x, I, z4, B, L, q), ya = r.dynCall_vij = (i, u, c) => (ya = r.dynCall_vij = U._c)(i, u, c), ba = r.dynCall_iiif = (i, u, c, m) => (ba = r.dynCall_iiif = U.$c)(i, u, c, m), _a3 = r.dynCall_iiij = (i, u, c, m) => (_a3 = r.dynCall_iiij = U.ad)(i, u, c, m), wa = r.dynCall_fiii = (i, u, c, m) => (wa = r.dynCall_fiii = U.bd)(i, u, c, m), va = r.dynCall_viiiiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q, X, ue2, $e2) => (va = r.dynCall_viiiiiiiiiiiii = U.cd)(i, u, c, m, g2, x, I, z4, B, L, q, X, ue2, $e2), $a = r.dynCall_vjiii = (i, u, c, m, g2) => ($a = r.dynCall_vjiii = U.dd)(i, u, c, m, g2), xa = r.dynCall_vif = (i, u, c) => (xa = r.dynCall_vif = U.ed)(i, u, c), Sa = r.dynCall_iiiiiii = (i, u, c, m, g2, x, I) => (Sa = r.dynCall_iiiiiii = U.fd)(i, u, c, m, g2, x, I), Ta = r.dynCall_iiiij = (i, u, c, m, g2) => (Ta = r.dynCall_iiiij = U.gd)(i, u, c, m, g2), Ca = r.dynCall_iiiiiiii = (i, u, c, m, g2, x, I, z4) => (Ca = r.dynCall_iiiiiiii = U.hd)(i, u, c, m, g2, x, I, z4), Ia = r.dynCall_viiiiiiiiiiii = (i, u, c, m, g2, x, I, z4, B, L, q, X, ue2) => (Ia = r.dynCall_viiiiiiiiiiii = U.id)(i, u, c, m, g2, x, I, z4, B, L, q, X, ue2), Aa = r.dynCall_diii = (i, u, c, m) => (Aa = r.dynCall_diii = U.jd)(i, u, c, m), ka = r.dynCall_jiiii = (i, u, c, m, g2) => (ka = r.dynCall_jiiii = U.kd)(i, u, c, m, g2), Ea = r.dynCall_viiij = (i, u, c, m, g2) => (Ea = r.dynCall_viiij = U.ld)(i, u, c, m, g2), Pa = r.dynCall_fiiii = (i, u, c, m, g2) => (Pa = r.dynCall_fiiii = U.md)(i, u, c, m, g2), za = r.dynCall_viiif = (i, u, c, m, g2) => (za = r.dynCall_viiif = U.nd)(i, u, c, m, g2), Oa = r.dynCall_diiii = (i, u, c, m, g2) => (Oa = r.dynCall_diiii = U.od)(i, u, c, m, g2), Da = r.dynCall_viiid = (i, u, c, m, g2) => (Da = r.dynCall_viiid = U.pd)(i, u, c, m, g2), Ba = r.dynCall_iiiijii = (i, u, c, m, g2, x, I) => (Ba = r.dynCall_iiiijii = U.qd)(i, u, c, m, g2, x, I), Ma = r.dynCall_iiiiiij = (i, u, c, m, g2, x, I) => (Ma = r.dynCall_iiiiiij = U.rd)(i, u, c, m, g2, x, I), Ra = (i) => (Ra = U.sd)(i), Ua = () => (Ua = U.td)(), Na = (i) => (Na = U.ud)(i), Va = () => (Va = U.vd)();
|
|
1966
1964
|
function Mm(i, u, c) {
|
|
1967
1965
|
var m = ie();
|
|
1968
1966
|
try {
|
|
@@ -2218,7 +2216,7 @@ var init_ort_webgpu_bundle_min = __esm({
|
|
|
2218
2216
|
function cf(i, u, c, m) {
|
|
2219
2217
|
var g2 = ie();
|
|
2220
2218
|
try {
|
|
2221
|
-
return
|
|
2219
|
+
return _a3(i, u, c, m);
|
|
2222
2220
|
} catch (x) {
|
|
2223
2221
|
if (oe2(g2), x !== x + 0) throw x;
|
|
2224
2222
|
se2(1, 0);
|
|
@@ -13269,8 +13267,8 @@ var ZodError = class _ZodError extends Error {
|
|
|
13269
13267
|
return issue2.message;
|
|
13270
13268
|
};
|
|
13271
13269
|
const fieldErrors = { _errors: [] };
|
|
13272
|
-
const processError = (
|
|
13273
|
-
for (const issue2 of
|
|
13270
|
+
const processError = (error51) => {
|
|
13271
|
+
for (const issue2 of error51.issues) {
|
|
13274
13272
|
if (issue2.code === "invalid_union") {
|
|
13275
13273
|
issue2.unionErrors.map(processError);
|
|
13276
13274
|
} else if (issue2.code === "invalid_return_type") {
|
|
@@ -13332,8 +13330,8 @@ var ZodError = class _ZodError extends Error {
|
|
|
13332
13330
|
}
|
|
13333
13331
|
};
|
|
13334
13332
|
ZodError.create = (issues) => {
|
|
13335
|
-
const
|
|
13336
|
-
return
|
|
13333
|
+
const error51 = new ZodError(issues);
|
|
13334
|
+
return error51;
|
|
13337
13335
|
};
|
|
13338
13336
|
var errorMap = (issue2, _ctx) => {
|
|
13339
13337
|
let message;
|
|
@@ -13602,8 +13600,8 @@ var handleResult = (ctx, result) => {
|
|
|
13602
13600
|
get error() {
|
|
13603
13601
|
if (this._error)
|
|
13604
13602
|
return this._error;
|
|
13605
|
-
const
|
|
13606
|
-
this._error =
|
|
13603
|
+
const error51 = new ZodError(ctx.common.issues);
|
|
13604
|
+
this._error = error51;
|
|
13607
13605
|
return this._error;
|
|
13608
13606
|
}
|
|
13609
13607
|
};
|
|
@@ -13619,13 +13617,13 @@ function processCreateParams(params) {
|
|
|
13619
13617
|
if (errorMap2)
|
|
13620
13618
|
return { errorMap: errorMap2, description };
|
|
13621
13619
|
const customMap = (iss, ctx) => {
|
|
13622
|
-
var
|
|
13620
|
+
var _a3, _b;
|
|
13623
13621
|
const { message } = params;
|
|
13624
13622
|
if (iss.code === "invalid_enum_value") {
|
|
13625
13623
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
|
13626
13624
|
}
|
|
13627
13625
|
if (typeof ctx.data === "undefined") {
|
|
13628
|
-
return { message: (
|
|
13626
|
+
return { message: (_a3 = message !== null && message !== void 0 ? message : required_error) !== null && _a3 !== void 0 ? _a3 : ctx.defaultError };
|
|
13629
13627
|
}
|
|
13630
13628
|
if (iss.code !== "invalid_type")
|
|
13631
13629
|
return { message: ctx.defaultError };
|
|
@@ -13681,11 +13679,11 @@ var ZodType = class {
|
|
|
13681
13679
|
throw result.error;
|
|
13682
13680
|
}
|
|
13683
13681
|
safeParse(data, params) {
|
|
13684
|
-
var
|
|
13682
|
+
var _a3;
|
|
13685
13683
|
const ctx = {
|
|
13686
13684
|
common: {
|
|
13687
13685
|
issues: [],
|
|
13688
|
-
async: (
|
|
13686
|
+
async: (_a3 = params === null || params === void 0 ? void 0 : params.async) !== null && _a3 !== void 0 ? _a3 : false,
|
|
13689
13687
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
|
13690
13688
|
},
|
|
13691
13689
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
|
@@ -13698,7 +13696,7 @@ var ZodType = class {
|
|
|
13698
13696
|
return handleResult(ctx, result);
|
|
13699
13697
|
}
|
|
13700
13698
|
"~validate"(data) {
|
|
13701
|
-
var
|
|
13699
|
+
var _a3, _b;
|
|
13702
13700
|
const ctx = {
|
|
13703
13701
|
common: {
|
|
13704
13702
|
issues: [],
|
|
@@ -13719,7 +13717,7 @@ var ZodType = class {
|
|
|
13719
13717
|
issues: ctx.common.issues
|
|
13720
13718
|
};
|
|
13721
13719
|
} catch (err) {
|
|
13722
|
-
if ((_b = (
|
|
13720
|
+
if ((_b = (_a3 = err === null || err === void 0 ? void 0 : err.message) === null || _a3 === void 0 ? void 0 : _a3.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
|
|
13723
13721
|
this["~standard"].async = true;
|
|
13724
13722
|
}
|
|
13725
13723
|
ctx.common = {
|
|
@@ -13980,7 +13978,7 @@ function isValidJWT(jwt2, alg) {
|
|
|
13980
13978
|
if (alg && decoded.alg !== alg)
|
|
13981
13979
|
return false;
|
|
13982
13980
|
return true;
|
|
13983
|
-
} catch (
|
|
13981
|
+
} catch (_a3) {
|
|
13984
13982
|
return false;
|
|
13985
13983
|
}
|
|
13986
13984
|
}
|
|
@@ -14139,7 +14137,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
14139
14137
|
} else if (check2.kind === "url") {
|
|
14140
14138
|
try {
|
|
14141
14139
|
new URL(input.data);
|
|
14142
|
-
} catch (
|
|
14140
|
+
} catch (_a3) {
|
|
14143
14141
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
14144
14142
|
addIssueToContext(ctx, {
|
|
14145
14143
|
validation: "url",
|
|
@@ -14351,7 +14349,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
14351
14349
|
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
14352
14350
|
}
|
|
14353
14351
|
datetime(options) {
|
|
14354
|
-
var
|
|
14352
|
+
var _a3, _b;
|
|
14355
14353
|
if (typeof options === "string") {
|
|
14356
14354
|
return this._addCheck({
|
|
14357
14355
|
kind: "datetime",
|
|
@@ -14364,7 +14362,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
14364
14362
|
return this._addCheck({
|
|
14365
14363
|
kind: "datetime",
|
|
14366
14364
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
|
14367
|
-
offset: (
|
|
14365
|
+
offset: (_a3 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a3 !== void 0 ? _a3 : false,
|
|
14368
14366
|
local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,
|
|
14369
14367
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
|
14370
14368
|
});
|
|
@@ -14533,11 +14531,11 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
14533
14531
|
}
|
|
14534
14532
|
};
|
|
14535
14533
|
ZodString.create = (params) => {
|
|
14536
|
-
var
|
|
14534
|
+
var _a3;
|
|
14537
14535
|
return new ZodString({
|
|
14538
14536
|
checks: [],
|
|
14539
14537
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
14540
|
-
coerce: (
|
|
14538
|
+
coerce: (_a3 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a3 !== void 0 ? _a3 : false,
|
|
14541
14539
|
...processCreateParams(params)
|
|
14542
14540
|
});
|
|
14543
14541
|
};
|
|
@@ -14790,7 +14788,7 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
14790
14788
|
if (this._def.coerce) {
|
|
14791
14789
|
try {
|
|
14792
14790
|
input.data = BigInt(input.data);
|
|
14793
|
-
} catch (
|
|
14791
|
+
} catch (_a3) {
|
|
14794
14792
|
return this._getInvalidInput(input);
|
|
14795
14793
|
}
|
|
14796
14794
|
}
|
|
@@ -14945,11 +14943,11 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
14945
14943
|
}
|
|
14946
14944
|
};
|
|
14947
14945
|
ZodBigInt.create = (params) => {
|
|
14948
|
-
var
|
|
14946
|
+
var _a3;
|
|
14949
14947
|
return new ZodBigInt({
|
|
14950
14948
|
checks: [],
|
|
14951
14949
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
14952
|
-
coerce: (
|
|
14950
|
+
coerce: (_a3 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a3 !== void 0 ? _a3 : false,
|
|
14953
14951
|
...processCreateParams(params)
|
|
14954
14952
|
});
|
|
14955
14953
|
};
|
|
@@ -15456,8 +15454,8 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
15456
15454
|
unknownKeys: "strict",
|
|
15457
15455
|
...message !== void 0 ? {
|
|
15458
15456
|
errorMap: (issue2, ctx) => {
|
|
15459
|
-
var
|
|
15460
|
-
const defaultError = (_c2 = (_b = (
|
|
15457
|
+
var _a3, _b, _c2, _d2;
|
|
15458
|
+
const defaultError = (_c2 = (_b = (_a3 = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a3, issue2, ctx).message) !== null && _c2 !== void 0 ? _c2 : ctx.defaultError;
|
|
15461
15459
|
if (issue2.code === "unrecognized_keys")
|
|
15462
15460
|
return {
|
|
15463
15461
|
message: (_d2 = errorUtil.errToObj(message).message) !== null && _d2 !== void 0 ? _d2 : defaultError
|
|
@@ -16259,7 +16257,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
16259
16257
|
});
|
|
16260
16258
|
return INVALID;
|
|
16261
16259
|
}
|
|
16262
|
-
function makeArgsIssue(args,
|
|
16260
|
+
function makeArgsIssue(args, error51) {
|
|
16263
16261
|
return makeIssue({
|
|
16264
16262
|
data: args,
|
|
16265
16263
|
path: ctx.path,
|
|
@@ -16271,11 +16269,11 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
16271
16269
|
].filter((x) => !!x),
|
|
16272
16270
|
issueData: {
|
|
16273
16271
|
code: ZodIssueCode.invalid_arguments,
|
|
16274
|
-
argumentsError:
|
|
16272
|
+
argumentsError: error51
|
|
16275
16273
|
}
|
|
16276
16274
|
});
|
|
16277
16275
|
}
|
|
16278
|
-
function makeReturnsIssue(returns,
|
|
16276
|
+
function makeReturnsIssue(returns, error51) {
|
|
16279
16277
|
return makeIssue({
|
|
16280
16278
|
data: returns,
|
|
16281
16279
|
path: ctx.path,
|
|
@@ -16287,7 +16285,7 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
16287
16285
|
].filter((x) => !!x),
|
|
16288
16286
|
issueData: {
|
|
16289
16287
|
code: ZodIssueCode.invalid_return_type,
|
|
16290
|
-
returnTypeError:
|
|
16288
|
+
returnTypeError: error51
|
|
16291
16289
|
}
|
|
16292
16290
|
});
|
|
16293
16291
|
}
|
|
@@ -16296,15 +16294,15 @@ var ZodFunction = class _ZodFunction extends ZodType {
|
|
|
16296
16294
|
if (this._def.returns instanceof ZodPromise) {
|
|
16297
16295
|
const me3 = this;
|
|
16298
16296
|
return OK(async function(...args) {
|
|
16299
|
-
const
|
|
16297
|
+
const error51 = new ZodError([]);
|
|
16300
16298
|
const parsedArgs = await me3._def.args.parseAsync(args, params).catch((e) => {
|
|
16301
|
-
|
|
16302
|
-
throw
|
|
16299
|
+
error51.addIssue(makeArgsIssue(args, e));
|
|
16300
|
+
throw error51;
|
|
16303
16301
|
});
|
|
16304
16302
|
const result = await Reflect.apply(fn2, this, parsedArgs);
|
|
16305
16303
|
const parsedReturns = await me3._def.returns._def.type.parseAsync(result, params).catch((e) => {
|
|
16306
|
-
|
|
16307
|
-
throw
|
|
16304
|
+
error51.addIssue(makeReturnsIssue(result, e));
|
|
16305
|
+
throw error51;
|
|
16308
16306
|
});
|
|
16309
16307
|
return parsedReturns;
|
|
16310
16308
|
});
|
|
@@ -16923,7 +16921,7 @@ function cleanParams(params, data) {
|
|
|
16923
16921
|
function custom(check2, _params = {}, fatal) {
|
|
16924
16922
|
if (check2)
|
|
16925
16923
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
16926
|
-
var
|
|
16924
|
+
var _a3, _b;
|
|
16927
16925
|
const r = check2(data);
|
|
16928
16926
|
if (r instanceof Promise) {
|
|
16929
16927
|
return r.then((r2) => {
|
|
@@ -16937,7 +16935,7 @@ function custom(check2, _params = {}, fatal) {
|
|
|
16937
16935
|
}
|
|
16938
16936
|
if (!r) {
|
|
16939
16937
|
const params = cleanParams(_params, data);
|
|
16940
|
-
const _fatal = (_b = (
|
|
16938
|
+
const _fatal = (_b = (_a3 = params.fatal) !== null && _a3 !== void 0 ? _a3 : fatal) !== null && _b !== void 0 ? _b : true;
|
|
16941
16939
|
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
16942
16940
|
}
|
|
16943
16941
|
return;
|
|
@@ -17423,6 +17421,7 @@ __export(external_exports, {
|
|
|
17423
17421
|
ZodOptional: () => ZodOptional2,
|
|
17424
17422
|
ZodPipe: () => ZodPipe,
|
|
17425
17423
|
ZodPrefault: () => ZodPrefault,
|
|
17424
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
17426
17425
|
ZodPromise: () => ZodPromise2,
|
|
17427
17426
|
ZodReadonly: () => ZodReadonly2,
|
|
17428
17427
|
ZodRealError: () => ZodRealError,
|
|
@@ -17501,6 +17500,7 @@ __export(external_exports, {
|
|
|
17501
17500
|
int32: () => int32,
|
|
17502
17501
|
int64: () => int64,
|
|
17503
17502
|
intersection: () => intersection,
|
|
17503
|
+
invertCodec: () => invertCodec,
|
|
17504
17504
|
ipv4: () => ipv42,
|
|
17505
17505
|
ipv6: () => ipv62,
|
|
17506
17506
|
iso: () => iso_exports,
|
|
@@ -17682,6 +17682,7 @@ __export(core_exports2, {
|
|
|
17682
17682
|
$ZodOptional: () => $ZodOptional,
|
|
17683
17683
|
$ZodPipe: () => $ZodPipe,
|
|
17684
17684
|
$ZodPrefault: () => $ZodPrefault,
|
|
17685
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
17685
17686
|
$ZodPromise: () => $ZodPromise,
|
|
17686
17687
|
$ZodReadonly: () => $ZodReadonly,
|
|
17687
17688
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -17881,7 +17882,8 @@ __export(core_exports2, {
|
|
|
17881
17882
|
});
|
|
17882
17883
|
|
|
17883
17884
|
// ../../node_modules/zod/v4/core/core.js
|
|
17884
|
-
var
|
|
17885
|
+
var _a;
|
|
17886
|
+
var NEVER2 = /* @__PURE__ */ Object.freeze({
|
|
17885
17887
|
status: "aborted"
|
|
17886
17888
|
});
|
|
17887
17889
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -17916,10 +17918,10 @@ function $constructor(name, initializer3, params) {
|
|
|
17916
17918
|
}
|
|
17917
17919
|
Object.defineProperty(Definition, "name", { value: name });
|
|
17918
17920
|
function _(def) {
|
|
17919
|
-
var
|
|
17921
|
+
var _a3;
|
|
17920
17922
|
const inst = params?.Parent ? new Definition() : this;
|
|
17921
17923
|
init2(inst, def);
|
|
17922
|
-
(
|
|
17924
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
17923
17925
|
for (const fn2 of inst._zod.deferred) {
|
|
17924
17926
|
fn2();
|
|
17925
17927
|
}
|
|
@@ -17948,7 +17950,8 @@ var $ZodEncodeError = class extends Error {
|
|
|
17948
17950
|
this.name = "ZodEncodeError";
|
|
17949
17951
|
}
|
|
17950
17952
|
};
|
|
17951
|
-
|
|
17953
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
17954
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
17952
17955
|
function config(newConfig) {
|
|
17953
17956
|
if (newConfig)
|
|
17954
17957
|
Object.assign(globalConfig, newConfig);
|
|
@@ -17981,6 +17984,7 @@ __export(util_exports, {
|
|
|
17981
17984
|
defineLazy: () => defineLazy,
|
|
17982
17985
|
esc: () => esc,
|
|
17983
17986
|
escapeRegex: () => escapeRegex,
|
|
17987
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
17984
17988
|
extend: () => extend,
|
|
17985
17989
|
finalizeIssue: () => finalizeIssue,
|
|
17986
17990
|
floatSafeRemainder: () => floatSafeRemainder2,
|
|
@@ -18069,19 +18073,12 @@ function cleanRegex(source) {
|
|
|
18069
18073
|
return source.slice(start, end);
|
|
18070
18074
|
}
|
|
18071
18075
|
function floatSafeRemainder2(val, step) {
|
|
18072
|
-
const
|
|
18073
|
-
const
|
|
18074
|
-
|
|
18075
|
-
if (
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
stepDecCount = Number.parseInt(match[1]);
|
|
18079
|
-
}
|
|
18080
|
-
}
|
|
18081
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
18082
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
18083
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
18084
|
-
return valInt % stepInt / 10 ** decCount;
|
|
18076
|
+
const ratio = val / step;
|
|
18077
|
+
const roundedRatio = Math.round(ratio);
|
|
18078
|
+
const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
|
|
18079
|
+
if (Math.abs(ratio - roundedRatio) < tolerance)
|
|
18080
|
+
return 0;
|
|
18081
|
+
return ratio - roundedRatio;
|
|
18085
18082
|
}
|
|
18086
18083
|
var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
|
|
18087
18084
|
function defineLazy(object2, key, getter) {
|
|
@@ -18163,7 +18160,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
18163
18160
|
function isObject2(data) {
|
|
18164
18161
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
18165
18162
|
}
|
|
18166
|
-
var allowsEval = cached(() => {
|
|
18163
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
18164
|
+
if (globalConfig.jitless) {
|
|
18165
|
+
return false;
|
|
18166
|
+
}
|
|
18167
18167
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
18168
18168
|
return false;
|
|
18169
18169
|
}
|
|
@@ -18196,6 +18196,10 @@ function shallowClone(o) {
|
|
|
18196
18196
|
return { ...o };
|
|
18197
18197
|
if (Array.isArray(o))
|
|
18198
18198
|
return [...o];
|
|
18199
|
+
if (o instanceof Map)
|
|
18200
|
+
return new Map(o);
|
|
18201
|
+
if (o instanceof Set)
|
|
18202
|
+
return new Set(o);
|
|
18199
18203
|
return o;
|
|
18200
18204
|
}
|
|
18201
18205
|
function numKeys(data) {
|
|
@@ -18252,7 +18256,14 @@ var getParsedType2 = (data) => {
|
|
|
18252
18256
|
}
|
|
18253
18257
|
};
|
|
18254
18258
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
18255
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
18259
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
18260
|
+
"string",
|
|
18261
|
+
"number",
|
|
18262
|
+
"bigint",
|
|
18263
|
+
"boolean",
|
|
18264
|
+
"symbol",
|
|
18265
|
+
"undefined"
|
|
18266
|
+
]);
|
|
18256
18267
|
function escapeRegex(str) {
|
|
18257
18268
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
18258
18269
|
}
|
|
@@ -18421,6 +18432,9 @@ function safeExtend(schema, shape) {
|
|
|
18421
18432
|
return clone(schema, def);
|
|
18422
18433
|
}
|
|
18423
18434
|
function merge(a, b) {
|
|
18435
|
+
if (a._zod.def.checks?.length) {
|
|
18436
|
+
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
18437
|
+
}
|
|
18424
18438
|
const def = mergeDefs(a._zod.def, {
|
|
18425
18439
|
get shape() {
|
|
18426
18440
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -18430,8 +18444,7 @@ function merge(a, b) {
|
|
|
18430
18444
|
get catchall() {
|
|
18431
18445
|
return b._zod.def.catchall;
|
|
18432
18446
|
},
|
|
18433
|
-
checks: []
|
|
18434
|
-
// delete existing checks
|
|
18447
|
+
checks: b._zod.def.checks ?? []
|
|
18435
18448
|
});
|
|
18436
18449
|
return clone(a, def);
|
|
18437
18450
|
}
|
|
@@ -18514,10 +18527,20 @@ function aborted(x, startIndex = 0) {
|
|
|
18514
18527
|
}
|
|
18515
18528
|
return false;
|
|
18516
18529
|
}
|
|
18530
|
+
function explicitlyAborted(x, startIndex = 0) {
|
|
18531
|
+
if (x.aborted === true)
|
|
18532
|
+
return true;
|
|
18533
|
+
for (let i = startIndex; i < x.issues.length; i++) {
|
|
18534
|
+
if (x.issues[i]?.continue === false) {
|
|
18535
|
+
return true;
|
|
18536
|
+
}
|
|
18537
|
+
}
|
|
18538
|
+
return false;
|
|
18539
|
+
}
|
|
18517
18540
|
function prefixIssues(path, issues) {
|
|
18518
18541
|
return issues.map((iss) => {
|
|
18519
|
-
var
|
|
18520
|
-
(
|
|
18542
|
+
var _a3;
|
|
18543
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
18521
18544
|
iss.path.unshift(path);
|
|
18522
18545
|
return iss;
|
|
18523
18546
|
});
|
|
@@ -18526,17 +18549,14 @@ function unwrapMessage(message) {
|
|
|
18526
18549
|
return typeof message === "string" ? message : message?.message;
|
|
18527
18550
|
}
|
|
18528
18551
|
function finalizeIssue(iss, ctx, config2) {
|
|
18529
|
-
const
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18535
|
-
delete full.continue;
|
|
18536
|
-
if (!ctx?.reportInput) {
|
|
18537
|
-
delete full.input;
|
|
18552
|
+
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";
|
|
18553
|
+
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
18554
|
+
rest.path ?? (rest.path = []);
|
|
18555
|
+
rest.message = message;
|
|
18556
|
+
if (ctx?.reportInput) {
|
|
18557
|
+
rest.input = _input;
|
|
18538
18558
|
}
|
|
18539
|
-
return
|
|
18559
|
+
return rest;
|
|
18540
18560
|
}
|
|
18541
18561
|
function getSizableOrigin(input) {
|
|
18542
18562
|
if (input instanceof Set)
|
|
@@ -18653,10 +18673,10 @@ var initializer = (inst, def) => {
|
|
|
18653
18673
|
};
|
|
18654
18674
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
18655
18675
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
18656
|
-
function flattenError(
|
|
18676
|
+
function flattenError(error51, mapper = (issue2) => issue2.message) {
|
|
18657
18677
|
const fieldErrors = {};
|
|
18658
18678
|
const formErrors = [];
|
|
18659
|
-
for (const sub of
|
|
18679
|
+
for (const sub of error51.issues) {
|
|
18660
18680
|
if (sub.path.length > 0) {
|
|
18661
18681
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
18662
18682
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -18666,50 +18686,53 @@ function flattenError(error48, mapper = (issue2) => issue2.message) {
|
|
|
18666
18686
|
}
|
|
18667
18687
|
return { formErrors, fieldErrors };
|
|
18668
18688
|
}
|
|
18669
|
-
function formatError(
|
|
18689
|
+
function formatError(error51, mapper = (issue2) => issue2.message) {
|
|
18670
18690
|
const fieldErrors = { _errors: [] };
|
|
18671
|
-
const processError = (
|
|
18672
|
-
for (const issue2 of
|
|
18691
|
+
const processError = (error52, path = []) => {
|
|
18692
|
+
for (const issue2 of error52.issues) {
|
|
18673
18693
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
18674
|
-
issue2.errors.map((issues) => processError({ issues }));
|
|
18694
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
18675
18695
|
} else if (issue2.code === "invalid_key") {
|
|
18676
|
-
processError({ issues: issue2.issues });
|
|
18696
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
18677
18697
|
} else if (issue2.code === "invalid_element") {
|
|
18678
|
-
processError({ issues: issue2.issues });
|
|
18679
|
-
} else if (issue2.path.length === 0) {
|
|
18680
|
-
fieldErrors._errors.push(mapper(issue2));
|
|
18698
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
18681
18699
|
} else {
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18700
|
+
const fullpath = [...path, ...issue2.path];
|
|
18701
|
+
if (fullpath.length === 0) {
|
|
18702
|
+
fieldErrors._errors.push(mapper(issue2));
|
|
18703
|
+
} else {
|
|
18704
|
+
let curr = fieldErrors;
|
|
18705
|
+
let i = 0;
|
|
18706
|
+
while (i < fullpath.length) {
|
|
18707
|
+
const el2 = fullpath[i];
|
|
18708
|
+
const terminal = i === fullpath.length - 1;
|
|
18709
|
+
if (!terminal) {
|
|
18710
|
+
curr[el2] = curr[el2] || { _errors: [] };
|
|
18711
|
+
} else {
|
|
18712
|
+
curr[el2] = curr[el2] || { _errors: [] };
|
|
18713
|
+
curr[el2]._errors.push(mapper(issue2));
|
|
18714
|
+
}
|
|
18715
|
+
curr = curr[el2];
|
|
18716
|
+
i++;
|
|
18692
18717
|
}
|
|
18693
|
-
curr = curr[el2];
|
|
18694
|
-
i++;
|
|
18695
18718
|
}
|
|
18696
18719
|
}
|
|
18697
18720
|
}
|
|
18698
18721
|
};
|
|
18699
|
-
processError(
|
|
18722
|
+
processError(error51);
|
|
18700
18723
|
return fieldErrors;
|
|
18701
18724
|
}
|
|
18702
|
-
function treeifyError(
|
|
18725
|
+
function treeifyError(error51, mapper = (issue2) => issue2.message) {
|
|
18703
18726
|
const result = { errors: [] };
|
|
18704
|
-
const processError = (
|
|
18705
|
-
var
|
|
18706
|
-
for (const issue2 of
|
|
18727
|
+
const processError = (error52, path = []) => {
|
|
18728
|
+
var _a3, _b;
|
|
18729
|
+
for (const issue2 of error52.issues) {
|
|
18707
18730
|
if (issue2.code === "invalid_union" && issue2.errors.length) {
|
|
18708
|
-
issue2.errors.map((issues) => processError({ issues }, issue2.path));
|
|
18731
|
+
issue2.errors.map((issues) => processError({ issues }, [...path, ...issue2.path]));
|
|
18709
18732
|
} else if (issue2.code === "invalid_key") {
|
|
18710
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
18733
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
18711
18734
|
} else if (issue2.code === "invalid_element") {
|
|
18712
|
-
processError({ issues: issue2.issues }, issue2.path);
|
|
18735
|
+
processError({ issues: issue2.issues }, [...path, ...issue2.path]);
|
|
18713
18736
|
} else {
|
|
18714
18737
|
const fullpath = [...path, ...issue2.path];
|
|
18715
18738
|
if (fullpath.length === 0) {
|
|
@@ -18723,7 +18746,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
18723
18746
|
const terminal = i === fullpath.length - 1;
|
|
18724
18747
|
if (typeof el2 === "string") {
|
|
18725
18748
|
curr.properties ?? (curr.properties = {});
|
|
18726
|
-
(
|
|
18749
|
+
(_a3 = curr.properties)[el2] ?? (_a3[el2] = { errors: [] });
|
|
18727
18750
|
curr = curr.properties[el2];
|
|
18728
18751
|
} else {
|
|
18729
18752
|
curr.items ?? (curr.items = []);
|
|
@@ -18738,7 +18761,7 @@ function treeifyError(error48, mapper = (issue2) => issue2.message) {
|
|
|
18738
18761
|
}
|
|
18739
18762
|
}
|
|
18740
18763
|
};
|
|
18741
|
-
processError(
|
|
18764
|
+
processError(error51);
|
|
18742
18765
|
return result;
|
|
18743
18766
|
}
|
|
18744
18767
|
function toDotPath(_path) {
|
|
@@ -18759,9 +18782,9 @@ function toDotPath(_path) {
|
|
|
18759
18782
|
}
|
|
18760
18783
|
return segs.join("");
|
|
18761
18784
|
}
|
|
18762
|
-
function prettifyError(
|
|
18785
|
+
function prettifyError(error51) {
|
|
18763
18786
|
const lines = [];
|
|
18764
|
-
const issues = [...
|
|
18787
|
+
const issues = [...error51.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
18765
18788
|
for (const issue2 of issues) {
|
|
18766
18789
|
lines.push(`\u2716 ${issue2.message}`);
|
|
18767
18790
|
if (issue2.path?.length)
|
|
@@ -18772,7 +18795,7 @@ function prettifyError(error48) {
|
|
|
18772
18795
|
|
|
18773
18796
|
// ../../node_modules/zod/v4/core/parse.js
|
|
18774
18797
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
18775
|
-
const ctx = _ctx ?
|
|
18798
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
18776
18799
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
18777
18800
|
if (result instanceof Promise) {
|
|
18778
18801
|
throw new $ZodAsyncError();
|
|
@@ -18786,7 +18809,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
18786
18809
|
};
|
|
18787
18810
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
18788
18811
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
18789
|
-
const ctx = _ctx ?
|
|
18812
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
18790
18813
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
18791
18814
|
if (result instanceof Promise)
|
|
18792
18815
|
result = await result;
|
|
@@ -18811,7 +18834,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
18811
18834
|
};
|
|
18812
18835
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
18813
18836
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
18814
|
-
const ctx = _ctx ?
|
|
18837
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
18815
18838
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
18816
18839
|
if (result instanceof Promise)
|
|
18817
18840
|
result = await result;
|
|
@@ -18822,7 +18845,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
18822
18845
|
};
|
|
18823
18846
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
18824
18847
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
18825
|
-
const ctx = _ctx ?
|
|
18848
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
18826
18849
|
return _parse(_Err)(schema, value, ctx);
|
|
18827
18850
|
};
|
|
18828
18851
|
var encode2 = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -18831,7 +18854,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
18831
18854
|
};
|
|
18832
18855
|
var decode2 = /* @__PURE__ */ _decode($ZodRealError);
|
|
18833
18856
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
18834
|
-
const ctx = _ctx ?
|
|
18857
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
18835
18858
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
18836
18859
|
};
|
|
18837
18860
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -18840,7 +18863,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
18840
18863
|
};
|
|
18841
18864
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
18842
18865
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
18843
|
-
const ctx = _ctx ?
|
|
18866
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
18844
18867
|
return _safeParse(_Err)(schema, value, ctx);
|
|
18845
18868
|
};
|
|
18846
18869
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -18849,7 +18872,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
18849
18872
|
};
|
|
18850
18873
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
18851
18874
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
18852
|
-
const ctx = _ctx ?
|
|
18875
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
18853
18876
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
18854
18877
|
};
|
|
18855
18878
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -18882,6 +18905,7 @@ __export(regexes_exports, {
|
|
|
18882
18905
|
hex: () => hex,
|
|
18883
18906
|
hostname: () => hostname,
|
|
18884
18907
|
html5Email: () => html5Email,
|
|
18908
|
+
httpProtocol: () => httpProtocol,
|
|
18885
18909
|
idnEmail: () => idnEmail,
|
|
18886
18910
|
integer: () => integer,
|
|
18887
18911
|
ipv4: () => ipv4,
|
|
@@ -18920,7 +18944,7 @@ __export(regexes_exports, {
|
|
|
18920
18944
|
uuid7: () => uuid7,
|
|
18921
18945
|
xid: () => xid
|
|
18922
18946
|
});
|
|
18923
|
-
var cuid = /^[cC][
|
|
18947
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
18924
18948
|
var cuid2 = /^[0-9a-z]+$/;
|
|
18925
18949
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
18926
18950
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -18959,6 +18983,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
18959
18983
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
18960
18984
|
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])?)*\.?$/;
|
|
18961
18985
|
var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
|
|
18986
|
+
var httpProtocol = /^https?$/;
|
|
18962
18987
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
18963
18988
|
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])))`;
|
|
18964
18989
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -19017,10 +19042,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
19017
19042
|
|
|
19018
19043
|
// ../../node_modules/zod/v4/core/checks.js
|
|
19019
19044
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
19020
|
-
var
|
|
19045
|
+
var _a3;
|
|
19021
19046
|
inst._zod ?? (inst._zod = {});
|
|
19022
19047
|
inst._zod.def = def;
|
|
19023
|
-
(
|
|
19048
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
19024
19049
|
});
|
|
19025
19050
|
var numericOriginMap = {
|
|
19026
19051
|
number: "number",
|
|
@@ -19086,8 +19111,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
19086
19111
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
19087
19112
|
$ZodCheck.init(inst, def);
|
|
19088
19113
|
inst._zod.onattach.push((inst2) => {
|
|
19089
|
-
var
|
|
19090
|
-
(
|
|
19114
|
+
var _a3;
|
|
19115
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
19091
19116
|
});
|
|
19092
19117
|
inst._zod.check = (payload) => {
|
|
19093
19118
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -19220,9 +19245,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
19220
19245
|
};
|
|
19221
19246
|
});
|
|
19222
19247
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
19223
|
-
var
|
|
19248
|
+
var _a3;
|
|
19224
19249
|
$ZodCheck.init(inst, def);
|
|
19225
|
-
(
|
|
19250
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19226
19251
|
const val = payload.value;
|
|
19227
19252
|
return !nullish(val) && val.size !== void 0;
|
|
19228
19253
|
});
|
|
@@ -19248,9 +19273,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
19248
19273
|
};
|
|
19249
19274
|
});
|
|
19250
19275
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
19251
|
-
var
|
|
19276
|
+
var _a3;
|
|
19252
19277
|
$ZodCheck.init(inst, def);
|
|
19253
|
-
(
|
|
19278
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19254
19279
|
const val = payload.value;
|
|
19255
19280
|
return !nullish(val) && val.size !== void 0;
|
|
19256
19281
|
});
|
|
@@ -19276,9 +19301,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
19276
19301
|
};
|
|
19277
19302
|
});
|
|
19278
19303
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
19279
|
-
var
|
|
19304
|
+
var _a3;
|
|
19280
19305
|
$ZodCheck.init(inst, def);
|
|
19281
|
-
(
|
|
19306
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19282
19307
|
const val = payload.value;
|
|
19283
19308
|
return !nullish(val) && val.size !== void 0;
|
|
19284
19309
|
});
|
|
@@ -19306,9 +19331,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
19306
19331
|
};
|
|
19307
19332
|
});
|
|
19308
19333
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
19309
|
-
var
|
|
19334
|
+
var _a3;
|
|
19310
19335
|
$ZodCheck.init(inst, def);
|
|
19311
|
-
(
|
|
19336
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19312
19337
|
const val = payload.value;
|
|
19313
19338
|
return !nullish(val) && val.length !== void 0;
|
|
19314
19339
|
});
|
|
@@ -19335,9 +19360,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
19335
19360
|
};
|
|
19336
19361
|
});
|
|
19337
19362
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
19338
|
-
var
|
|
19363
|
+
var _a3;
|
|
19339
19364
|
$ZodCheck.init(inst, def);
|
|
19340
|
-
(
|
|
19365
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19341
19366
|
const val = payload.value;
|
|
19342
19367
|
return !nullish(val) && val.length !== void 0;
|
|
19343
19368
|
});
|
|
@@ -19364,9 +19389,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
19364
19389
|
};
|
|
19365
19390
|
});
|
|
19366
19391
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
19367
|
-
var
|
|
19392
|
+
var _a3;
|
|
19368
19393
|
$ZodCheck.init(inst, def);
|
|
19369
|
-
(
|
|
19394
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
19370
19395
|
const val = payload.value;
|
|
19371
19396
|
return !nullish(val) && val.length !== void 0;
|
|
19372
19397
|
});
|
|
@@ -19395,7 +19420,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
19395
19420
|
};
|
|
19396
19421
|
});
|
|
19397
19422
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
19398
|
-
var
|
|
19423
|
+
var _a3, _b;
|
|
19399
19424
|
$ZodCheck.init(inst, def);
|
|
19400
19425
|
inst._zod.onattach.push((inst2) => {
|
|
19401
19426
|
const bag = inst2._zod.bag;
|
|
@@ -19406,7 +19431,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
19406
19431
|
}
|
|
19407
19432
|
});
|
|
19408
19433
|
if (def.pattern)
|
|
19409
|
-
(
|
|
19434
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
19410
19435
|
def.pattern.lastIndex = 0;
|
|
19411
19436
|
if (def.pattern.test(payload.value))
|
|
19412
19437
|
return;
|
|
@@ -19602,13 +19627,13 @@ var Doc = class {
|
|
|
19602
19627
|
// ../../node_modules/zod/v4/core/versions.js
|
|
19603
19628
|
var version2 = {
|
|
19604
19629
|
major: 4,
|
|
19605
|
-
minor:
|
|
19606
|
-
patch:
|
|
19630
|
+
minor: 4,
|
|
19631
|
+
patch: 3
|
|
19607
19632
|
};
|
|
19608
19633
|
|
|
19609
19634
|
// ../../node_modules/zod/v4/core/schemas.js
|
|
19610
19635
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
19611
|
-
var
|
|
19636
|
+
var _a3;
|
|
19612
19637
|
inst ?? (inst = {});
|
|
19613
19638
|
inst._zod.def = def;
|
|
19614
19639
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -19623,7 +19648,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
19623
19648
|
}
|
|
19624
19649
|
}
|
|
19625
19650
|
if (checks.length === 0) {
|
|
19626
|
-
(
|
|
19651
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
19627
19652
|
inst._zod.deferred?.push(() => {
|
|
19628
19653
|
inst._zod.run = inst._zod.parse;
|
|
19629
19654
|
});
|
|
@@ -19633,6 +19658,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
19633
19658
|
let asyncResult;
|
|
19634
19659
|
for (const ch2 of checks2) {
|
|
19635
19660
|
if (ch2._zod.def.when) {
|
|
19661
|
+
if (explicitlyAborted(payload))
|
|
19662
|
+
continue;
|
|
19636
19663
|
const shouldRun = ch2._zod.def.when(payload);
|
|
19637
19664
|
if (!shouldRun)
|
|
19638
19665
|
continue;
|
|
@@ -19773,6 +19800,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
19773
19800
|
inst._zod.check = (payload) => {
|
|
19774
19801
|
try {
|
|
19775
19802
|
const trimmed = payload.value.trim();
|
|
19803
|
+
if (!def.normalize && def.protocol?.source === httpProtocol.source) {
|
|
19804
|
+
if (!/^https?:\/\//i.test(trimmed)) {
|
|
19805
|
+
payload.issues.push({
|
|
19806
|
+
code: "invalid_format",
|
|
19807
|
+
format: "url",
|
|
19808
|
+
note: "Invalid URL format",
|
|
19809
|
+
input: payload.value,
|
|
19810
|
+
inst,
|
|
19811
|
+
continue: !def.abort
|
|
19812
|
+
});
|
|
19813
|
+
return;
|
|
19814
|
+
}
|
|
19815
|
+
}
|
|
19776
19816
|
const url2 = new URL(trimmed);
|
|
19777
19817
|
if (def.hostname) {
|
|
19778
19818
|
def.hostname.lastIndex = 0;
|
|
@@ -19926,6 +19966,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
19926
19966
|
function isValidBase64(data) {
|
|
19927
19967
|
if (data === "")
|
|
19928
19968
|
return true;
|
|
19969
|
+
if (/\s/.test(data))
|
|
19970
|
+
return false;
|
|
19929
19971
|
if (data.length % 4 !== 0)
|
|
19930
19972
|
return false;
|
|
19931
19973
|
try {
|
|
@@ -20118,8 +20160,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
20118
20160
|
$ZodType.init(inst, def);
|
|
20119
20161
|
inst._zod.pattern = _undefined;
|
|
20120
20162
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
20121
|
-
inst._zod.optin = "optional";
|
|
20122
|
-
inst._zod.optout = "optional";
|
|
20123
20163
|
inst._zod.parse = (payload, _ctx) => {
|
|
20124
20164
|
const input = payload.value;
|
|
20125
20165
|
if (typeof input === "undefined")
|
|
@@ -20248,15 +20288,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
20248
20288
|
return payload;
|
|
20249
20289
|
};
|
|
20250
20290
|
});
|
|
20251
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
20291
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
20292
|
+
const isPresent = key in input;
|
|
20252
20293
|
if (result.issues.length) {
|
|
20253
|
-
if (isOptionalOut && !
|
|
20294
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
20254
20295
|
return;
|
|
20255
20296
|
}
|
|
20256
20297
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
20257
20298
|
}
|
|
20299
|
+
if (!isPresent && !isOptionalIn) {
|
|
20300
|
+
if (!result.issues.length) {
|
|
20301
|
+
final.issues.push({
|
|
20302
|
+
code: "invalid_type",
|
|
20303
|
+
expected: "nonoptional",
|
|
20304
|
+
input: void 0,
|
|
20305
|
+
path: [key]
|
|
20306
|
+
});
|
|
20307
|
+
}
|
|
20308
|
+
return;
|
|
20309
|
+
}
|
|
20258
20310
|
if (result.value === void 0) {
|
|
20259
|
-
if (
|
|
20311
|
+
if (isPresent) {
|
|
20260
20312
|
final.value[key] = void 0;
|
|
20261
20313
|
}
|
|
20262
20314
|
} else {
|
|
@@ -20284,8 +20336,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
20284
20336
|
const keySet = def.keySet;
|
|
20285
20337
|
const _catchall = def.catchall._zod;
|
|
20286
20338
|
const t = _catchall.def.type;
|
|
20339
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
20287
20340
|
const isOptionalOut = _catchall.optout === "optional";
|
|
20288
20341
|
for (const key in input) {
|
|
20342
|
+
if (key === "__proto__")
|
|
20343
|
+
continue;
|
|
20289
20344
|
if (keySet.has(key))
|
|
20290
20345
|
continue;
|
|
20291
20346
|
if (t === "never") {
|
|
@@ -20294,9 +20349,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
20294
20349
|
}
|
|
20295
20350
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
20296
20351
|
if (r instanceof Promise) {
|
|
20297
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
20352
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
20298
20353
|
} else {
|
|
20299
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
20354
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
20300
20355
|
}
|
|
20301
20356
|
}
|
|
20302
20357
|
if (unrecognized.length) {
|
|
@@ -20362,12 +20417,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
20362
20417
|
const shape = value.shape;
|
|
20363
20418
|
for (const key of value.keys) {
|
|
20364
20419
|
const el2 = shape[key];
|
|
20420
|
+
const isOptionalIn = el2._zod.optin === "optional";
|
|
20365
20421
|
const isOptionalOut = el2._zod.optout === "optional";
|
|
20366
20422
|
const r = el2._zod.run({ value: input[key], issues: [] }, ctx);
|
|
20367
20423
|
if (r instanceof Promise) {
|
|
20368
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
20424
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
20369
20425
|
} else {
|
|
20370
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
20426
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
20371
20427
|
}
|
|
20372
20428
|
}
|
|
20373
20429
|
if (!catchall) {
|
|
@@ -20398,9 +20454,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
20398
20454
|
const id2 = ids[key];
|
|
20399
20455
|
const k2 = esc(key);
|
|
20400
20456
|
const schema = shape[key];
|
|
20457
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
20401
20458
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
20402
20459
|
doc.write(`const ${id2} = ${parseStr(key)};`);
|
|
20403
|
-
if (isOptionalOut) {
|
|
20460
|
+
if (isOptionalIn && isOptionalOut) {
|
|
20404
20461
|
doc.write(`
|
|
20405
20462
|
if (${id2}.issues.length) {
|
|
20406
20463
|
if (${k2} in input) {
|
|
@@ -20419,6 +20476,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
20419
20476
|
newResult[${k2}] = ${id2}.value;
|
|
20420
20477
|
}
|
|
20421
20478
|
|
|
20479
|
+
`);
|
|
20480
|
+
} else if (!isOptionalIn) {
|
|
20481
|
+
doc.write(`
|
|
20482
|
+
const ${id2}_present = ${k2} in input;
|
|
20483
|
+
if (${id2}.issues.length) {
|
|
20484
|
+
payload.issues = payload.issues.concat(${id2}.issues.map(iss => ({
|
|
20485
|
+
...iss,
|
|
20486
|
+
path: iss.path ? [${k2}, ...iss.path] : [${k2}]
|
|
20487
|
+
})));
|
|
20488
|
+
}
|
|
20489
|
+
if (!${id2}_present && !${id2}.issues.length) {
|
|
20490
|
+
payload.issues.push({
|
|
20491
|
+
code: "invalid_type",
|
|
20492
|
+
expected: "nonoptional",
|
|
20493
|
+
input: undefined,
|
|
20494
|
+
path: [${k2}]
|
|
20495
|
+
});
|
|
20496
|
+
}
|
|
20497
|
+
|
|
20498
|
+
if (${id2}_present) {
|
|
20499
|
+
if (${id2}.value === undefined) {
|
|
20500
|
+
newResult[${k2}] = undefined;
|
|
20501
|
+
} else {
|
|
20502
|
+
newResult[${k2}] = ${id2}.value;
|
|
20503
|
+
}
|
|
20504
|
+
}
|
|
20505
|
+
|
|
20422
20506
|
`);
|
|
20423
20507
|
} else {
|
|
20424
20508
|
doc.write(`
|
|
@@ -20512,10 +20596,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
20512
20596
|
}
|
|
20513
20597
|
return void 0;
|
|
20514
20598
|
});
|
|
20515
|
-
const
|
|
20516
|
-
const first = def.options[0]._zod.run;
|
|
20599
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
20517
20600
|
inst._zod.parse = (payload, ctx) => {
|
|
20518
|
-
if (
|
|
20601
|
+
if (first) {
|
|
20519
20602
|
return first(payload, ctx);
|
|
20520
20603
|
}
|
|
20521
20604
|
let async = false;
|
|
@@ -20568,10 +20651,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
20568
20651
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
20569
20652
|
$ZodUnion.init(inst, def);
|
|
20570
20653
|
def.inclusive = false;
|
|
20571
|
-
const
|
|
20572
|
-
const first = def.options[0]._zod.run;
|
|
20654
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
20573
20655
|
inst._zod.parse = (payload, ctx) => {
|
|
20574
|
-
if (
|
|
20656
|
+
if (first) {
|
|
20575
20657
|
return first(payload, ctx);
|
|
20576
20658
|
}
|
|
20577
20659
|
let async = false;
|
|
@@ -20646,7 +20728,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
20646
20728
|
if (opt) {
|
|
20647
20729
|
return opt._zod.run(payload, ctx);
|
|
20648
20730
|
}
|
|
20649
|
-
if (def.unionFallback) {
|
|
20731
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
20650
20732
|
return _super(payload, ctx);
|
|
20651
20733
|
}
|
|
20652
20734
|
payload.issues.push({
|
|
@@ -20654,6 +20736,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
20654
20736
|
errors: [],
|
|
20655
20737
|
note: "No matching discriminator",
|
|
20656
20738
|
discriminator: def.discriminator,
|
|
20739
|
+
options: Array.from(disc.value.keys()),
|
|
20657
20740
|
input,
|
|
20658
20741
|
path: [def.discriminator],
|
|
20659
20742
|
inst
|
|
@@ -20775,64 +20858,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
20775
20858
|
}
|
|
20776
20859
|
payload.value = [];
|
|
20777
20860
|
const proms = [];
|
|
20778
|
-
const
|
|
20779
|
-
const
|
|
20861
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
20862
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
20780
20863
|
if (!def.rest) {
|
|
20781
|
-
|
|
20782
|
-
const tooSmall = input.length < optStart - 1;
|
|
20783
|
-
if (tooBig || tooSmall) {
|
|
20864
|
+
if (input.length < optinStart) {
|
|
20784
20865
|
payload.issues.push({
|
|
20785
|
-
|
|
20866
|
+
code: "too_small",
|
|
20867
|
+
minimum: optinStart,
|
|
20868
|
+
inclusive: true,
|
|
20786
20869
|
input,
|
|
20787
20870
|
inst,
|
|
20788
20871
|
origin: "array"
|
|
20789
20872
|
});
|
|
20790
20873
|
return payload;
|
|
20791
20874
|
}
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20798
|
-
|
|
20875
|
+
if (input.length > items.length) {
|
|
20876
|
+
payload.issues.push({
|
|
20877
|
+
code: "too_big",
|
|
20878
|
+
maximum: items.length,
|
|
20879
|
+
inclusive: true,
|
|
20880
|
+
input,
|
|
20881
|
+
inst,
|
|
20882
|
+
origin: "array"
|
|
20883
|
+
});
|
|
20799
20884
|
}
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
}, ctx);
|
|
20804
|
-
if (
|
|
20805
|
-
proms.push(
|
|
20885
|
+
}
|
|
20886
|
+
const itemResults = new Array(items.length);
|
|
20887
|
+
for (let i = 0; i < items.length; i++) {
|
|
20888
|
+
const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
|
|
20889
|
+
if (r instanceof Promise) {
|
|
20890
|
+
proms.push(r.then((rr2) => {
|
|
20891
|
+
itemResults[i] = rr2;
|
|
20892
|
+
}));
|
|
20806
20893
|
} else {
|
|
20807
|
-
|
|
20894
|
+
itemResults[i] = r;
|
|
20808
20895
|
}
|
|
20809
20896
|
}
|
|
20810
20897
|
if (def.rest) {
|
|
20898
|
+
let i = items.length - 1;
|
|
20811
20899
|
const rest = input.slice(items.length);
|
|
20812
20900
|
for (const el2 of rest) {
|
|
20813
20901
|
i++;
|
|
20814
|
-
const result = def.rest._zod.run({
|
|
20815
|
-
value: el2,
|
|
20816
|
-
issues: []
|
|
20817
|
-
}, ctx);
|
|
20902
|
+
const result = def.rest._zod.run({ value: el2, issues: [] }, ctx);
|
|
20818
20903
|
if (result instanceof Promise) {
|
|
20819
|
-
proms.push(result.then((
|
|
20904
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
20820
20905
|
} else {
|
|
20821
20906
|
handleTupleResult(result, payload, i);
|
|
20822
20907
|
}
|
|
20823
20908
|
}
|
|
20824
20909
|
}
|
|
20825
|
-
if (proms.length)
|
|
20826
|
-
return Promise.all(proms).then(() => payload);
|
|
20827
|
-
|
|
20910
|
+
if (proms.length) {
|
|
20911
|
+
return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
|
|
20912
|
+
}
|
|
20913
|
+
return handleTupleResults(itemResults, payload, items, input, optoutStart);
|
|
20828
20914
|
};
|
|
20829
20915
|
});
|
|
20916
|
+
function getTupleOptStart(items, key) {
|
|
20917
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
20918
|
+
if (items[i]._zod[key] !== "optional")
|
|
20919
|
+
return i + 1;
|
|
20920
|
+
}
|
|
20921
|
+
return 0;
|
|
20922
|
+
}
|
|
20830
20923
|
function handleTupleResult(result, final, index) {
|
|
20831
20924
|
if (result.issues.length) {
|
|
20832
20925
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
20833
20926
|
}
|
|
20834
20927
|
final.value[index] = result.value;
|
|
20835
20928
|
}
|
|
20929
|
+
function handleTupleResults(itemResults, final, items, input, optoutStart) {
|
|
20930
|
+
for (let i = 0; i < items.length; i++) {
|
|
20931
|
+
const r = itemResults[i];
|
|
20932
|
+
const isPresent = i < input.length;
|
|
20933
|
+
if (r.issues.length) {
|
|
20934
|
+
if (!isPresent && i >= optoutStart) {
|
|
20935
|
+
final.value.length = i;
|
|
20936
|
+
break;
|
|
20937
|
+
}
|
|
20938
|
+
final.issues.push(...prefixIssues(i, r.issues));
|
|
20939
|
+
}
|
|
20940
|
+
final.value[i] = r.value;
|
|
20941
|
+
}
|
|
20942
|
+
for (let i = final.value.length - 1; i >= input.length; i--) {
|
|
20943
|
+
if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
|
|
20944
|
+
final.value.length = i;
|
|
20945
|
+
} else {
|
|
20946
|
+
break;
|
|
20947
|
+
}
|
|
20948
|
+
}
|
|
20949
|
+
return final;
|
|
20950
|
+
}
|
|
20836
20951
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
20837
20952
|
$ZodType.init(inst, def);
|
|
20838
20953
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -20854,19 +20969,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
20854
20969
|
for (const key of values) {
|
|
20855
20970
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
20856
20971
|
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
20972
|
+
const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
20973
|
+
if (keyResult instanceof Promise) {
|
|
20974
|
+
throw new Error("Async schemas not supported in object keys currently");
|
|
20975
|
+
}
|
|
20976
|
+
if (keyResult.issues.length) {
|
|
20977
|
+
payload.issues.push({
|
|
20978
|
+
code: "invalid_key",
|
|
20979
|
+
origin: "record",
|
|
20980
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
20981
|
+
input: key,
|
|
20982
|
+
path: [key],
|
|
20983
|
+
inst
|
|
20984
|
+
});
|
|
20985
|
+
continue;
|
|
20986
|
+
}
|
|
20987
|
+
const outKey = keyResult.value;
|
|
20857
20988
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
20858
20989
|
if (result instanceof Promise) {
|
|
20859
20990
|
proms.push(result.then((result2) => {
|
|
20860
20991
|
if (result2.issues.length) {
|
|
20861
20992
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
20862
20993
|
}
|
|
20863
|
-
payload.value[
|
|
20994
|
+
payload.value[outKey] = result2.value;
|
|
20864
20995
|
}));
|
|
20865
20996
|
} else {
|
|
20866
20997
|
if (result.issues.length) {
|
|
20867
20998
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
20868
20999
|
}
|
|
20869
|
-
payload.value[
|
|
21000
|
+
payload.value[outKey] = result.value;
|
|
20870
21001
|
}
|
|
20871
21002
|
}
|
|
20872
21003
|
}
|
|
@@ -20890,6 +21021,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
20890
21021
|
for (const key of Reflect.ownKeys(input)) {
|
|
20891
21022
|
if (key === "__proto__")
|
|
20892
21023
|
continue;
|
|
21024
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
21025
|
+
continue;
|
|
20893
21026
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
20894
21027
|
if (keyResult instanceof Promise) {
|
|
20895
21028
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -21094,6 +21227,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
21094
21227
|
});
|
|
21095
21228
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
21096
21229
|
$ZodType.init(inst, def);
|
|
21230
|
+
inst._zod.optin = "optional";
|
|
21097
21231
|
inst._zod.parse = (payload, ctx) => {
|
|
21098
21232
|
if (ctx.direction === "backward") {
|
|
21099
21233
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -21103,6 +21237,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
21103
21237
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
21104
21238
|
return output.then((output2) => {
|
|
21105
21239
|
payload.value = output2;
|
|
21240
|
+
payload.fallback = true;
|
|
21106
21241
|
return payload;
|
|
21107
21242
|
});
|
|
21108
21243
|
}
|
|
@@ -21110,11 +21245,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
21110
21245
|
throw new $ZodAsyncError();
|
|
21111
21246
|
}
|
|
21112
21247
|
payload.value = _out;
|
|
21248
|
+
payload.fallback = true;
|
|
21113
21249
|
return payload;
|
|
21114
21250
|
};
|
|
21115
21251
|
});
|
|
21116
21252
|
function handleOptionalResult(result, input) {
|
|
21117
|
-
if (result.issues.length
|
|
21253
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
21118
21254
|
return { issues: [], value: void 0 };
|
|
21119
21255
|
}
|
|
21120
21256
|
return result;
|
|
@@ -21132,10 +21268,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
21132
21268
|
});
|
|
21133
21269
|
inst._zod.parse = (payload, ctx) => {
|
|
21134
21270
|
if (def.innerType._zod.optin === "optional") {
|
|
21271
|
+
const input = payload.value;
|
|
21135
21272
|
const result = def.innerType._zod.run(payload, ctx);
|
|
21136
21273
|
if (result instanceof Promise)
|
|
21137
|
-
return result.then((r) => handleOptionalResult(r,
|
|
21138
|
-
return handleOptionalResult(result,
|
|
21274
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
21275
|
+
return handleOptionalResult(result, input);
|
|
21139
21276
|
}
|
|
21140
21277
|
if (payload.value === void 0) {
|
|
21141
21278
|
return payload;
|
|
@@ -21251,7 +21388,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
21251
21388
|
});
|
|
21252
21389
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
21253
21390
|
$ZodType.init(inst, def);
|
|
21254
|
-
|
|
21391
|
+
inst._zod.optin = "optional";
|
|
21255
21392
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
21256
21393
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
21257
21394
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -21271,6 +21408,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
21271
21408
|
input: payload.value
|
|
21272
21409
|
});
|
|
21273
21410
|
payload.issues = [];
|
|
21411
|
+
payload.fallback = true;
|
|
21274
21412
|
}
|
|
21275
21413
|
return payload;
|
|
21276
21414
|
});
|
|
@@ -21285,6 +21423,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
21285
21423
|
input: payload.value
|
|
21286
21424
|
});
|
|
21287
21425
|
payload.issues = [];
|
|
21426
|
+
payload.fallback = true;
|
|
21288
21427
|
}
|
|
21289
21428
|
return payload;
|
|
21290
21429
|
};
|
|
@@ -21330,7 +21469,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
21330
21469
|
left.aborted = true;
|
|
21331
21470
|
return left;
|
|
21332
21471
|
}
|
|
21333
|
-
return next._zod.run({ value: left.value, issues: left.issues }, ctx);
|
|
21472
|
+
return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
|
|
21334
21473
|
}
|
|
21335
21474
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
21336
21475
|
$ZodType.init(inst, def);
|
|
@@ -21382,6 +21521,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
21382
21521
|
}
|
|
21383
21522
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
21384
21523
|
}
|
|
21524
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
21525
|
+
$ZodPipe.init(inst, def);
|
|
21526
|
+
});
|
|
21385
21527
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
21386
21528
|
$ZodType.init(inst, def);
|
|
21387
21529
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -21533,7 +21675,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
21533
21675
|
});
|
|
21534
21676
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
21535
21677
|
$ZodType.init(inst, def);
|
|
21536
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
21678
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
21679
|
+
const d = def;
|
|
21680
|
+
if (!d._cachedInner)
|
|
21681
|
+
d._cachedInner = def.getter();
|
|
21682
|
+
return d._cachedInner;
|
|
21683
|
+
});
|
|
21537
21684
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
21538
21685
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
21539
21686
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -21588,6 +21735,7 @@ __export(locales_exports, {
|
|
|
21588
21735
|
cs: () => cs_default,
|
|
21589
21736
|
da: () => da_default,
|
|
21590
21737
|
de: () => de_default,
|
|
21738
|
+
el: () => el_default,
|
|
21591
21739
|
en: () => en_default,
|
|
21592
21740
|
eo: () => eo_default,
|
|
21593
21741
|
es: () => es_default,
|
|
@@ -21596,6 +21744,7 @@ __export(locales_exports, {
|
|
|
21596
21744
|
fr: () => fr_default,
|
|
21597
21745
|
frCA: () => fr_CA_default,
|
|
21598
21746
|
he: () => he_default,
|
|
21747
|
+
hr: () => hr_default,
|
|
21599
21748
|
hu: () => hu_default,
|
|
21600
21749
|
hy: () => hy_default,
|
|
21601
21750
|
id: () => id_default,
|
|
@@ -21615,6 +21764,7 @@ __export(locales_exports, {
|
|
|
21615
21764
|
pl: () => pl_default,
|
|
21616
21765
|
ps: () => ps_default,
|
|
21617
21766
|
pt: () => pt_default,
|
|
21767
|
+
ro: () => ro_default,
|
|
21618
21768
|
ru: () => ru_default,
|
|
21619
21769
|
sl: () => sl_default,
|
|
21620
21770
|
sv: () => sv_default,
|
|
@@ -22568,8 +22718,118 @@ function de_default() {
|
|
|
22568
22718
|
};
|
|
22569
22719
|
}
|
|
22570
22720
|
|
|
22571
|
-
// ../../node_modules/zod/v4/locales/
|
|
22721
|
+
// ../../node_modules/zod/v4/locales/el.js
|
|
22572
22722
|
var error9 = () => {
|
|
22723
|
+
const Sizable = {
|
|
22724
|
+
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
22725
|
+
file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
22726
|
+
array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
22727
|
+
set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
22728
|
+
map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
|
|
22729
|
+
};
|
|
22730
|
+
function getSizing(origin) {
|
|
22731
|
+
return Sizable[origin] ?? null;
|
|
22732
|
+
}
|
|
22733
|
+
const FormatDictionary = {
|
|
22734
|
+
regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
|
|
22735
|
+
email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
|
|
22736
|
+
url: "URL",
|
|
22737
|
+
emoji: "emoji",
|
|
22738
|
+
uuid: "UUID",
|
|
22739
|
+
uuidv4: "UUIDv4",
|
|
22740
|
+
uuidv6: "UUIDv6",
|
|
22741
|
+
nanoid: "nanoid",
|
|
22742
|
+
guid: "GUID",
|
|
22743
|
+
cuid: "cuid",
|
|
22744
|
+
cuid2: "cuid2",
|
|
22745
|
+
ulid: "ULID",
|
|
22746
|
+
xid: "XID",
|
|
22747
|
+
ksuid: "KSUID",
|
|
22748
|
+
datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
|
|
22749
|
+
date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
|
22750
|
+
time: "ISO \u03CE\u03C1\u03B1",
|
|
22751
|
+
duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
|
|
22752
|
+
ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
|
|
22753
|
+
ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
|
|
22754
|
+
mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
|
|
22755
|
+
cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
|
|
22756
|
+
cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
|
|
22757
|
+
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",
|
|
22758
|
+
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",
|
|
22759
|
+
json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
|
|
22760
|
+
e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
|
|
22761
|
+
jwt: "JWT",
|
|
22762
|
+
template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
|
|
22763
|
+
};
|
|
22764
|
+
const TypeDictionary = {
|
|
22765
|
+
nan: "NaN"
|
|
22766
|
+
};
|
|
22767
|
+
return (issue2) => {
|
|
22768
|
+
switch (issue2.code) {
|
|
22769
|
+
case "invalid_type": {
|
|
22770
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
22771
|
+
const receivedType = parsedType(issue2.input);
|
|
22772
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
22773
|
+
if (typeof issue2.expected === "string" && /^[A-Z]/.test(issue2.expected)) {
|
|
22774
|
+
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}`;
|
|
22775
|
+
}
|
|
22776
|
+
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}`;
|
|
22777
|
+
}
|
|
22778
|
+
case "invalid_value":
|
|
22779
|
+
if (issue2.values.length === 1)
|
|
22780
|
+
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])}`;
|
|
22781
|
+
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, "|")}`;
|
|
22782
|
+
case "too_big": {
|
|
22783
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
22784
|
+
const sizing = getSizing(issue2.origin);
|
|
22785
|
+
if (sizing)
|
|
22786
|
+
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"}`;
|
|
22787
|
+
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()}`;
|
|
22788
|
+
}
|
|
22789
|
+
case "too_small": {
|
|
22790
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
22791
|
+
const sizing = getSizing(issue2.origin);
|
|
22792
|
+
if (sizing) {
|
|
22793
|
+
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}`;
|
|
22794
|
+
}
|
|
22795
|
+
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()}`;
|
|
22796
|
+
}
|
|
22797
|
+
case "invalid_format": {
|
|
22798
|
+
const _issue = issue2;
|
|
22799
|
+
if (_issue.format === "starts_with") {
|
|
22800
|
+
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}"`;
|
|
22801
|
+
}
|
|
22802
|
+
if (_issue.format === "ends_with")
|
|
22803
|
+
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}"`;
|
|
22804
|
+
if (_issue.format === "includes")
|
|
22805
|
+
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}"`;
|
|
22806
|
+
if (_issue.format === "regex")
|
|
22807
|
+
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}`;
|
|
22808
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
22809
|
+
}
|
|
22810
|
+
case "not_multiple_of":
|
|
22811
|
+
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}`;
|
|
22812
|
+
case "unrecognized_keys":
|
|
22813
|
+
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, ", ")}`;
|
|
22814
|
+
case "invalid_key":
|
|
22815
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
22816
|
+
case "invalid_union":
|
|
22817
|
+
return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
|
|
22818
|
+
case "invalid_element":
|
|
22819
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;
|
|
22820
|
+
default:
|
|
22821
|
+
return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
|
|
22822
|
+
}
|
|
22823
|
+
};
|
|
22824
|
+
};
|
|
22825
|
+
function el_default() {
|
|
22826
|
+
return {
|
|
22827
|
+
localeError: error9()
|
|
22828
|
+
};
|
|
22829
|
+
}
|
|
22830
|
+
|
|
22831
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
22832
|
+
var error10 = () => {
|
|
22573
22833
|
const Sizable = {
|
|
22574
22834
|
string: { unit: "characters", verb: "to have" },
|
|
22575
22835
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -22663,6 +22923,10 @@ var error9 = () => {
|
|
|
22663
22923
|
case "invalid_key":
|
|
22664
22924
|
return `Invalid key in ${issue2.origin}`;
|
|
22665
22925
|
case "invalid_union":
|
|
22926
|
+
if (issue2.options && Array.isArray(issue2.options) && issue2.options.length > 0) {
|
|
22927
|
+
const opts = issue2.options.map((o) => `'${o}'`).join(" | ");
|
|
22928
|
+
return `Invalid discriminator value. Expected ${opts}`;
|
|
22929
|
+
}
|
|
22666
22930
|
return "Invalid input";
|
|
22667
22931
|
case "invalid_element":
|
|
22668
22932
|
return `Invalid value in ${issue2.origin}`;
|
|
@@ -22673,12 +22937,12 @@ var error9 = () => {
|
|
|
22673
22937
|
};
|
|
22674
22938
|
function en_default() {
|
|
22675
22939
|
return {
|
|
22676
|
-
localeError:
|
|
22940
|
+
localeError: error10()
|
|
22677
22941
|
};
|
|
22678
22942
|
}
|
|
22679
22943
|
|
|
22680
22944
|
// ../../node_modules/zod/v4/locales/eo.js
|
|
22681
|
-
var
|
|
22945
|
+
var error11 = () => {
|
|
22682
22946
|
const Sizable = {
|
|
22683
22947
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
22684
22948
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -22783,12 +23047,12 @@ var error10 = () => {
|
|
|
22783
23047
|
};
|
|
22784
23048
|
function eo_default() {
|
|
22785
23049
|
return {
|
|
22786
|
-
localeError:
|
|
23050
|
+
localeError: error11()
|
|
22787
23051
|
};
|
|
22788
23052
|
}
|
|
22789
23053
|
|
|
22790
23054
|
// ../../node_modules/zod/v4/locales/es.js
|
|
22791
|
-
var
|
|
23055
|
+
var error12 = () => {
|
|
22792
23056
|
const Sizable = {
|
|
22793
23057
|
string: { unit: "caracteres", verb: "tener" },
|
|
22794
23058
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -22916,12 +23180,12 @@ var error11 = () => {
|
|
|
22916
23180
|
};
|
|
22917
23181
|
function es_default() {
|
|
22918
23182
|
return {
|
|
22919
|
-
localeError:
|
|
23183
|
+
localeError: error12()
|
|
22920
23184
|
};
|
|
22921
23185
|
}
|
|
22922
23186
|
|
|
22923
23187
|
// ../../node_modules/zod/v4/locales/fa.js
|
|
22924
|
-
var
|
|
23188
|
+
var error13 = () => {
|
|
22925
23189
|
const Sizable = {
|
|
22926
23190
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
22927
23191
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -23031,12 +23295,12 @@ var error12 = () => {
|
|
|
23031
23295
|
};
|
|
23032
23296
|
function fa_default() {
|
|
23033
23297
|
return {
|
|
23034
|
-
localeError:
|
|
23298
|
+
localeError: error13()
|
|
23035
23299
|
};
|
|
23036
23300
|
}
|
|
23037
23301
|
|
|
23038
23302
|
// ../../node_modules/zod/v4/locales/fi.js
|
|
23039
|
-
var
|
|
23303
|
+
var error14 = () => {
|
|
23040
23304
|
const Sizable = {
|
|
23041
23305
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
23042
23306
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -23144,12 +23408,12 @@ var error13 = () => {
|
|
|
23144
23408
|
};
|
|
23145
23409
|
function fi_default() {
|
|
23146
23410
|
return {
|
|
23147
|
-
localeError:
|
|
23411
|
+
localeError: error14()
|
|
23148
23412
|
};
|
|
23149
23413
|
}
|
|
23150
23414
|
|
|
23151
23415
|
// ../../node_modules/zod/v4/locales/fr.js
|
|
23152
|
-
var
|
|
23416
|
+
var error15 = () => {
|
|
23153
23417
|
const Sizable = {
|
|
23154
23418
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
23155
23419
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -23190,9 +23454,27 @@ var error14 = () => {
|
|
|
23190
23454
|
template_literal: "entr\xE9e"
|
|
23191
23455
|
};
|
|
23192
23456
|
const TypeDictionary = {
|
|
23193
|
-
|
|
23457
|
+
string: "cha\xEEne",
|
|
23194
23458
|
number: "nombre",
|
|
23195
|
-
|
|
23459
|
+
int: "entier",
|
|
23460
|
+
boolean: "bool\xE9en",
|
|
23461
|
+
bigint: "grand entier",
|
|
23462
|
+
symbol: "symbole",
|
|
23463
|
+
undefined: "ind\xE9fini",
|
|
23464
|
+
null: "null",
|
|
23465
|
+
never: "jamais",
|
|
23466
|
+
void: "vide",
|
|
23467
|
+
date: "date",
|
|
23468
|
+
array: "tableau",
|
|
23469
|
+
object: "objet",
|
|
23470
|
+
tuple: "tuple",
|
|
23471
|
+
record: "enregistrement",
|
|
23472
|
+
map: "carte",
|
|
23473
|
+
set: "ensemble",
|
|
23474
|
+
file: "fichier",
|
|
23475
|
+
nonoptional: "non-optionnel",
|
|
23476
|
+
nan: "NaN",
|
|
23477
|
+
function: "fonction"
|
|
23196
23478
|
};
|
|
23197
23479
|
return (issue2) => {
|
|
23198
23480
|
switch (issue2.code) {
|
|
@@ -23213,16 +23495,15 @@ var error14 = () => {
|
|
|
23213
23495
|
const adj = issue2.inclusive ? "<=" : "<";
|
|
23214
23496
|
const sizing = getSizing(issue2.origin);
|
|
23215
23497
|
if (sizing)
|
|
23216
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
23217
|
-
return `Trop grand : ${issue2.origin ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
23498
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
23499
|
+
return `Trop grand : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`;
|
|
23218
23500
|
}
|
|
23219
23501
|
case "too_small": {
|
|
23220
23502
|
const adj = issue2.inclusive ? ">=" : ">";
|
|
23221
23503
|
const sizing = getSizing(issue2.origin);
|
|
23222
|
-
if (sizing)
|
|
23223
|
-
return `Trop petit : ${issue2.origin} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
23224
|
-
}
|
|
23225
|
-
return `Trop petit : ${issue2.origin} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
23504
|
+
if (sizing)
|
|
23505
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
23506
|
+
return `Trop petit : ${TypeDictionary[issue2.origin] ?? "valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`;
|
|
23226
23507
|
}
|
|
23227
23508
|
case "invalid_format": {
|
|
23228
23509
|
const _issue = issue2;
|
|
@@ -23253,12 +23534,12 @@ var error14 = () => {
|
|
|
23253
23534
|
};
|
|
23254
23535
|
function fr_default() {
|
|
23255
23536
|
return {
|
|
23256
|
-
localeError:
|
|
23537
|
+
localeError: error15()
|
|
23257
23538
|
};
|
|
23258
23539
|
}
|
|
23259
23540
|
|
|
23260
23541
|
// ../../node_modules/zod/v4/locales/fr-CA.js
|
|
23261
|
-
var
|
|
23542
|
+
var error16 = () => {
|
|
23262
23543
|
const Sizable = {
|
|
23263
23544
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
23264
23545
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -23361,12 +23642,12 @@ var error15 = () => {
|
|
|
23361
23642
|
};
|
|
23362
23643
|
function fr_CA_default() {
|
|
23363
23644
|
return {
|
|
23364
|
-
localeError:
|
|
23645
|
+
localeError: error16()
|
|
23365
23646
|
};
|
|
23366
23647
|
}
|
|
23367
23648
|
|
|
23368
23649
|
// ../../node_modules/zod/v4/locales/he.js
|
|
23369
|
-
var
|
|
23650
|
+
var error17 = () => {
|
|
23370
23651
|
const TypeNames = {
|
|
23371
23652
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
23372
23653
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -23556,24 +23837,24 @@ var error16 = () => {
|
|
|
23556
23837
|
};
|
|
23557
23838
|
function he_default() {
|
|
23558
23839
|
return {
|
|
23559
|
-
localeError:
|
|
23840
|
+
localeError: error17()
|
|
23560
23841
|
};
|
|
23561
23842
|
}
|
|
23562
23843
|
|
|
23563
|
-
// ../../node_modules/zod/v4/locales/
|
|
23564
|
-
var
|
|
23844
|
+
// ../../node_modules/zod/v4/locales/hr.js
|
|
23845
|
+
var error18 = () => {
|
|
23565
23846
|
const Sizable = {
|
|
23566
|
-
string: { unit: "
|
|
23567
|
-
file: { unit: "
|
|
23568
|
-
array: { unit: "
|
|
23569
|
-
set: { unit: "
|
|
23847
|
+
string: { unit: "znakova", verb: "imati" },
|
|
23848
|
+
file: { unit: "bajtova", verb: "imati" },
|
|
23849
|
+
array: { unit: "stavki", verb: "imati" },
|
|
23850
|
+
set: { unit: "stavki", verb: "imati" }
|
|
23570
23851
|
};
|
|
23571
23852
|
function getSizing(origin) {
|
|
23572
23853
|
return Sizable[origin] ?? null;
|
|
23573
23854
|
}
|
|
23574
23855
|
const FormatDictionary = {
|
|
23575
|
-
regex: "
|
|
23576
|
-
email: "email
|
|
23856
|
+
regex: "unos",
|
|
23857
|
+
email: "email adresa",
|
|
23577
23858
|
url: "URL",
|
|
23578
23859
|
emoji: "emoji",
|
|
23579
23860
|
uuid: "UUID",
|
|
@@ -23586,15 +23867,138 @@ var error17 = () => {
|
|
|
23586
23867
|
ulid: "ULID",
|
|
23587
23868
|
xid: "XID",
|
|
23588
23869
|
ksuid: "KSUID",
|
|
23589
|
-
datetime: "ISO
|
|
23590
|
-
date: "ISO
|
|
23591
|
-
time: "ISO
|
|
23592
|
-
duration: "ISO
|
|
23593
|
-
ipv4: "IPv4
|
|
23594
|
-
ipv6: "IPv6
|
|
23595
|
-
cidrv4: "IPv4
|
|
23596
|
-
cidrv6: "IPv6
|
|
23597
|
-
base64: "base64
|
|
23870
|
+
datetime: "ISO datum i vrijeme",
|
|
23871
|
+
date: "ISO datum",
|
|
23872
|
+
time: "ISO vrijeme",
|
|
23873
|
+
duration: "ISO trajanje",
|
|
23874
|
+
ipv4: "IPv4 adresa",
|
|
23875
|
+
ipv6: "IPv6 adresa",
|
|
23876
|
+
cidrv4: "IPv4 raspon",
|
|
23877
|
+
cidrv6: "IPv6 raspon",
|
|
23878
|
+
base64: "base64 kodirani tekst",
|
|
23879
|
+
base64url: "base64url kodirani tekst",
|
|
23880
|
+
json_string: "JSON tekst",
|
|
23881
|
+
e164: "E.164 broj",
|
|
23882
|
+
jwt: "JWT",
|
|
23883
|
+
template_literal: "unos"
|
|
23884
|
+
};
|
|
23885
|
+
const TypeDictionary = {
|
|
23886
|
+
nan: "NaN",
|
|
23887
|
+
string: "tekst",
|
|
23888
|
+
number: "broj",
|
|
23889
|
+
boolean: "boolean",
|
|
23890
|
+
array: "niz",
|
|
23891
|
+
object: "objekt",
|
|
23892
|
+
set: "skup",
|
|
23893
|
+
file: "datoteka",
|
|
23894
|
+
date: "datum",
|
|
23895
|
+
bigint: "bigint",
|
|
23896
|
+
symbol: "simbol",
|
|
23897
|
+
undefined: "undefined",
|
|
23898
|
+
null: "null",
|
|
23899
|
+
function: "funkcija",
|
|
23900
|
+
map: "mapa"
|
|
23901
|
+
};
|
|
23902
|
+
return (issue2) => {
|
|
23903
|
+
switch (issue2.code) {
|
|
23904
|
+
case "invalid_type": {
|
|
23905
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
23906
|
+
const receivedType = parsedType(issue2.input);
|
|
23907
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
23908
|
+
if (/^[A-Z]/.test(issue2.expected)) {
|
|
23909
|
+
return `Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`;
|
|
23910
|
+
}
|
|
23911
|
+
return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
|
|
23912
|
+
}
|
|
23913
|
+
case "invalid_value":
|
|
23914
|
+
if (issue2.values.length === 1)
|
|
23915
|
+
return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`;
|
|
23916
|
+
return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values, "|")}`;
|
|
23917
|
+
case "too_big": {
|
|
23918
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
23919
|
+
const sizing = getSizing(issue2.origin);
|
|
23920
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
23921
|
+
if (sizing)
|
|
23922
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
|
|
23923
|
+
return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue2.maximum.toString()}`;
|
|
23924
|
+
}
|
|
23925
|
+
case "too_small": {
|
|
23926
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
23927
|
+
const sizing = getSizing(issue2.origin);
|
|
23928
|
+
const origin = TypeDictionary[issue2.origin] ?? issue2.origin;
|
|
23929
|
+
if (sizing) {
|
|
23930
|
+
return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
23931
|
+
}
|
|
23932
|
+
return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue2.minimum.toString()}`;
|
|
23933
|
+
}
|
|
23934
|
+
case "invalid_format": {
|
|
23935
|
+
const _issue = issue2;
|
|
23936
|
+
if (_issue.format === "starts_with")
|
|
23937
|
+
return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
|
|
23938
|
+
if (_issue.format === "ends_with")
|
|
23939
|
+
return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
|
|
23940
|
+
if (_issue.format === "includes")
|
|
23941
|
+
return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
|
|
23942
|
+
if (_issue.format === "regex")
|
|
23943
|
+
return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
|
|
23944
|
+
return `Neispravna ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
23945
|
+
}
|
|
23946
|
+
case "not_multiple_of":
|
|
23947
|
+
return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;
|
|
23948
|
+
case "unrecognized_keys":
|
|
23949
|
+
return `Neprepoznat${issue2.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue2.keys, ", ")}`;
|
|
23950
|
+
case "invalid_key":
|
|
23951
|
+
return `Neispravan klju\u010D u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
23952
|
+
case "invalid_union":
|
|
23953
|
+
return "Neispravan unos";
|
|
23954
|
+
case "invalid_element":
|
|
23955
|
+
return `Neispravna vrijednost u ${TypeDictionary[issue2.origin] ?? issue2.origin}`;
|
|
23956
|
+
default:
|
|
23957
|
+
return `Neispravan unos`;
|
|
23958
|
+
}
|
|
23959
|
+
};
|
|
23960
|
+
};
|
|
23961
|
+
function hr_default() {
|
|
23962
|
+
return {
|
|
23963
|
+
localeError: error18()
|
|
23964
|
+
};
|
|
23965
|
+
}
|
|
23966
|
+
|
|
23967
|
+
// ../../node_modules/zod/v4/locales/hu.js
|
|
23968
|
+
var error19 = () => {
|
|
23969
|
+
const Sizable = {
|
|
23970
|
+
string: { unit: "karakter", verb: "legyen" },
|
|
23971
|
+
file: { unit: "byte", verb: "legyen" },
|
|
23972
|
+
array: { unit: "elem", verb: "legyen" },
|
|
23973
|
+
set: { unit: "elem", verb: "legyen" }
|
|
23974
|
+
};
|
|
23975
|
+
function getSizing(origin) {
|
|
23976
|
+
return Sizable[origin] ?? null;
|
|
23977
|
+
}
|
|
23978
|
+
const FormatDictionary = {
|
|
23979
|
+
regex: "bemenet",
|
|
23980
|
+
email: "email c\xEDm",
|
|
23981
|
+
url: "URL",
|
|
23982
|
+
emoji: "emoji",
|
|
23983
|
+
uuid: "UUID",
|
|
23984
|
+
uuidv4: "UUIDv4",
|
|
23985
|
+
uuidv6: "UUIDv6",
|
|
23986
|
+
nanoid: "nanoid",
|
|
23987
|
+
guid: "GUID",
|
|
23988
|
+
cuid: "cuid",
|
|
23989
|
+
cuid2: "cuid2",
|
|
23990
|
+
ulid: "ULID",
|
|
23991
|
+
xid: "XID",
|
|
23992
|
+
ksuid: "KSUID",
|
|
23993
|
+
datetime: "ISO id\u0151b\xE9lyeg",
|
|
23994
|
+
date: "ISO d\xE1tum",
|
|
23995
|
+
time: "ISO id\u0151",
|
|
23996
|
+
duration: "ISO id\u0151intervallum",
|
|
23997
|
+
ipv4: "IPv4 c\xEDm",
|
|
23998
|
+
ipv6: "IPv6 c\xEDm",
|
|
23999
|
+
cidrv4: "IPv4 tartom\xE1ny",
|
|
24000
|
+
cidrv6: "IPv6 tartom\xE1ny",
|
|
24001
|
+
base64: "base64-k\xF3dolt string",
|
|
23598
24002
|
base64url: "base64url-k\xF3dolt string",
|
|
23599
24003
|
json_string: "JSON string",
|
|
23600
24004
|
e164: "E.164 sz\xE1m",
|
|
@@ -23665,7 +24069,7 @@ var error17 = () => {
|
|
|
23665
24069
|
};
|
|
23666
24070
|
function hu_default() {
|
|
23667
24071
|
return {
|
|
23668
|
-
localeError:
|
|
24072
|
+
localeError: error19()
|
|
23669
24073
|
};
|
|
23670
24074
|
}
|
|
23671
24075
|
|
|
@@ -23680,7 +24084,7 @@ function withDefiniteArticle(word) {
|
|
|
23680
24084
|
const lastChar = word[word.length - 1];
|
|
23681
24085
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
23682
24086
|
}
|
|
23683
|
-
var
|
|
24087
|
+
var error20 = () => {
|
|
23684
24088
|
const Sizable = {
|
|
23685
24089
|
string: {
|
|
23686
24090
|
unit: {
|
|
@@ -23813,12 +24217,12 @@ var error18 = () => {
|
|
|
23813
24217
|
};
|
|
23814
24218
|
function hy_default() {
|
|
23815
24219
|
return {
|
|
23816
|
-
localeError:
|
|
24220
|
+
localeError: error20()
|
|
23817
24221
|
};
|
|
23818
24222
|
}
|
|
23819
24223
|
|
|
23820
24224
|
// ../../node_modules/zod/v4/locales/id.js
|
|
23821
|
-
var
|
|
24225
|
+
var error21 = () => {
|
|
23822
24226
|
const Sizable = {
|
|
23823
24227
|
string: { unit: "karakter", verb: "memiliki" },
|
|
23824
24228
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -23920,12 +24324,12 @@ var error19 = () => {
|
|
|
23920
24324
|
};
|
|
23921
24325
|
function id_default() {
|
|
23922
24326
|
return {
|
|
23923
|
-
localeError:
|
|
24327
|
+
localeError: error21()
|
|
23924
24328
|
};
|
|
23925
24329
|
}
|
|
23926
24330
|
|
|
23927
24331
|
// ../../node_modules/zod/v4/locales/is.js
|
|
23928
|
-
var
|
|
24332
|
+
var error22 = () => {
|
|
23929
24333
|
const Sizable = {
|
|
23930
24334
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
23931
24335
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -24030,12 +24434,12 @@ var error20 = () => {
|
|
|
24030
24434
|
};
|
|
24031
24435
|
function is_default() {
|
|
24032
24436
|
return {
|
|
24033
|
-
localeError:
|
|
24437
|
+
localeError: error22()
|
|
24034
24438
|
};
|
|
24035
24439
|
}
|
|
24036
24440
|
|
|
24037
24441
|
// ../../node_modules/zod/v4/locales/it.js
|
|
24038
|
-
var
|
|
24442
|
+
var error23 = () => {
|
|
24039
24443
|
const Sizable = {
|
|
24040
24444
|
string: { unit: "caratteri", verb: "avere" },
|
|
24041
24445
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -24120,7 +24524,7 @@ var error21 = () => {
|
|
|
24120
24524
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
24121
24525
|
if (_issue.format === "regex")
|
|
24122
24526
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
24123
|
-
return `
|
|
24527
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
24124
24528
|
}
|
|
24125
24529
|
case "not_multiple_of":
|
|
24126
24530
|
return `Numero non valido: deve essere un multiplo di ${issue2.divisor}`;
|
|
@@ -24139,12 +24543,12 @@ var error21 = () => {
|
|
|
24139
24543
|
};
|
|
24140
24544
|
function it_default() {
|
|
24141
24545
|
return {
|
|
24142
|
-
localeError:
|
|
24546
|
+
localeError: error23()
|
|
24143
24547
|
};
|
|
24144
24548
|
}
|
|
24145
24549
|
|
|
24146
24550
|
// ../../node_modules/zod/v4/locales/ja.js
|
|
24147
|
-
var
|
|
24551
|
+
var error24 = () => {
|
|
24148
24552
|
const Sizable = {
|
|
24149
24553
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
24150
24554
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -24247,12 +24651,12 @@ var error22 = () => {
|
|
|
24247
24651
|
};
|
|
24248
24652
|
function ja_default() {
|
|
24249
24653
|
return {
|
|
24250
|
-
localeError:
|
|
24654
|
+
localeError: error24()
|
|
24251
24655
|
};
|
|
24252
24656
|
}
|
|
24253
24657
|
|
|
24254
24658
|
// ../../node_modules/zod/v4/locales/ka.js
|
|
24255
|
-
var
|
|
24659
|
+
var error25 = () => {
|
|
24256
24660
|
const Sizable = {
|
|
24257
24661
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
24258
24662
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -24285,9 +24689,9 @@ var error23 = () => {
|
|
|
24285
24689
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
24286
24690
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
24287
24691
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
24288
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
24289
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
24290
|
-
json_string: "JSON \
|
|
24692
|
+
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
24693
|
+
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
|
|
24694
|
+
json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
|
|
24291
24695
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
24292
24696
|
jwt: "JWT",
|
|
24293
24697
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -24295,7 +24699,7 @@ var error23 = () => {
|
|
|
24295
24699
|
const TypeDictionary = {
|
|
24296
24700
|
nan: "NaN",
|
|
24297
24701
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
24298
|
-
string: "\
|
|
24702
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
24299
24703
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
24300
24704
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
24301
24705
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -24333,14 +24737,14 @@ var error23 = () => {
|
|
|
24333
24737
|
case "invalid_format": {
|
|
24334
24738
|
const _issue = issue2;
|
|
24335
24739
|
if (_issue.format === "starts_with") {
|
|
24336
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
24740
|
+
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`;
|
|
24337
24741
|
}
|
|
24338
24742
|
if (_issue.format === "ends_with")
|
|
24339
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
24743
|
+
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`;
|
|
24340
24744
|
if (_issue.format === "includes")
|
|
24341
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
24745
|
+
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`;
|
|
24342
24746
|
if (_issue.format === "regex")
|
|
24343
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
24747
|
+
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}`;
|
|
24344
24748
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
24345
24749
|
}
|
|
24346
24750
|
case "not_multiple_of":
|
|
@@ -24360,12 +24764,12 @@ var error23 = () => {
|
|
|
24360
24764
|
};
|
|
24361
24765
|
function ka_default() {
|
|
24362
24766
|
return {
|
|
24363
|
-
localeError:
|
|
24767
|
+
localeError: error25()
|
|
24364
24768
|
};
|
|
24365
24769
|
}
|
|
24366
24770
|
|
|
24367
24771
|
// ../../node_modules/zod/v4/locales/km.js
|
|
24368
|
-
var
|
|
24772
|
+
var error26 = () => {
|
|
24369
24773
|
const Sizable = {
|
|
24370
24774
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
24371
24775
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -24471,7 +24875,7 @@ var error24 = () => {
|
|
|
24471
24875
|
};
|
|
24472
24876
|
function km_default() {
|
|
24473
24877
|
return {
|
|
24474
|
-
localeError:
|
|
24878
|
+
localeError: error26()
|
|
24475
24879
|
};
|
|
24476
24880
|
}
|
|
24477
24881
|
|
|
@@ -24481,7 +24885,7 @@ function kh_default() {
|
|
|
24481
24885
|
}
|
|
24482
24886
|
|
|
24483
24887
|
// ../../node_modules/zod/v4/locales/ko.js
|
|
24484
|
-
var
|
|
24888
|
+
var error27 = () => {
|
|
24485
24889
|
const Sizable = {
|
|
24486
24890
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
24487
24891
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -24588,7 +24992,7 @@ var error25 = () => {
|
|
|
24588
24992
|
};
|
|
24589
24993
|
function ko_default() {
|
|
24590
24994
|
return {
|
|
24591
|
-
localeError:
|
|
24995
|
+
localeError: error27()
|
|
24592
24996
|
};
|
|
24593
24997
|
}
|
|
24594
24998
|
|
|
@@ -24606,7 +25010,7 @@ function getUnitTypeFromNumber(number4) {
|
|
|
24606
25010
|
return "one";
|
|
24607
25011
|
return "few";
|
|
24608
25012
|
}
|
|
24609
|
-
var
|
|
25013
|
+
var error28 = () => {
|
|
24610
25014
|
const Sizable = {
|
|
24611
25015
|
string: {
|
|
24612
25016
|
unit: {
|
|
@@ -24792,12 +25196,12 @@ var error26 = () => {
|
|
|
24792
25196
|
};
|
|
24793
25197
|
function lt_default() {
|
|
24794
25198
|
return {
|
|
24795
|
-
localeError:
|
|
25199
|
+
localeError: error28()
|
|
24796
25200
|
};
|
|
24797
25201
|
}
|
|
24798
25202
|
|
|
24799
25203
|
// ../../node_modules/zod/v4/locales/mk.js
|
|
24800
|
-
var
|
|
25204
|
+
var error29 = () => {
|
|
24801
25205
|
const Sizable = {
|
|
24802
25206
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
24803
25207
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -24902,12 +25306,12 @@ var error27 = () => {
|
|
|
24902
25306
|
};
|
|
24903
25307
|
function mk_default() {
|
|
24904
25308
|
return {
|
|
24905
|
-
localeError:
|
|
25309
|
+
localeError: error29()
|
|
24906
25310
|
};
|
|
24907
25311
|
}
|
|
24908
25312
|
|
|
24909
25313
|
// ../../node_modules/zod/v4/locales/ms.js
|
|
24910
|
-
var
|
|
25314
|
+
var error30 = () => {
|
|
24911
25315
|
const Sizable = {
|
|
24912
25316
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
24913
25317
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -25010,12 +25414,12 @@ var error28 = () => {
|
|
|
25010
25414
|
};
|
|
25011
25415
|
function ms_default() {
|
|
25012
25416
|
return {
|
|
25013
|
-
localeError:
|
|
25417
|
+
localeError: error30()
|
|
25014
25418
|
};
|
|
25015
25419
|
}
|
|
25016
25420
|
|
|
25017
25421
|
// ../../node_modules/zod/v4/locales/nl.js
|
|
25018
|
-
var
|
|
25422
|
+
var error31 = () => {
|
|
25019
25423
|
const Sizable = {
|
|
25020
25424
|
string: { unit: "tekens", verb: "heeft" },
|
|
25021
25425
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -25121,12 +25525,12 @@ var error29 = () => {
|
|
|
25121
25525
|
};
|
|
25122
25526
|
function nl_default() {
|
|
25123
25527
|
return {
|
|
25124
|
-
localeError:
|
|
25528
|
+
localeError: error31()
|
|
25125
25529
|
};
|
|
25126
25530
|
}
|
|
25127
25531
|
|
|
25128
25532
|
// ../../node_modules/zod/v4/locales/no.js
|
|
25129
|
-
var
|
|
25533
|
+
var error32 = () => {
|
|
25130
25534
|
const Sizable = {
|
|
25131
25535
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
25132
25536
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -25230,12 +25634,12 @@ var error30 = () => {
|
|
|
25230
25634
|
};
|
|
25231
25635
|
function no_default() {
|
|
25232
25636
|
return {
|
|
25233
|
-
localeError:
|
|
25637
|
+
localeError: error32()
|
|
25234
25638
|
};
|
|
25235
25639
|
}
|
|
25236
25640
|
|
|
25237
25641
|
// ../../node_modules/zod/v4/locales/ota.js
|
|
25238
|
-
var
|
|
25642
|
+
var error33 = () => {
|
|
25239
25643
|
const Sizable = {
|
|
25240
25644
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
25241
25645
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -25340,12 +25744,12 @@ var error31 = () => {
|
|
|
25340
25744
|
};
|
|
25341
25745
|
function ota_default() {
|
|
25342
25746
|
return {
|
|
25343
|
-
localeError:
|
|
25747
|
+
localeError: error33()
|
|
25344
25748
|
};
|
|
25345
25749
|
}
|
|
25346
25750
|
|
|
25347
25751
|
// ../../node_modules/zod/v4/locales/ps.js
|
|
25348
|
-
var
|
|
25752
|
+
var error34 = () => {
|
|
25349
25753
|
const Sizable = {
|
|
25350
25754
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
25351
25755
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -25455,12 +25859,12 @@ var error32 = () => {
|
|
|
25455
25859
|
};
|
|
25456
25860
|
function ps_default() {
|
|
25457
25861
|
return {
|
|
25458
|
-
localeError:
|
|
25862
|
+
localeError: error34()
|
|
25459
25863
|
};
|
|
25460
25864
|
}
|
|
25461
25865
|
|
|
25462
25866
|
// ../../node_modules/zod/v4/locales/pl.js
|
|
25463
|
-
var
|
|
25867
|
+
var error35 = () => {
|
|
25464
25868
|
const Sizable = {
|
|
25465
25869
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
25466
25870
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -25565,12 +25969,12 @@ var error33 = () => {
|
|
|
25565
25969
|
};
|
|
25566
25970
|
function pl_default() {
|
|
25567
25971
|
return {
|
|
25568
|
-
localeError:
|
|
25972
|
+
localeError: error35()
|
|
25569
25973
|
};
|
|
25570
25974
|
}
|
|
25571
25975
|
|
|
25572
25976
|
// ../../node_modules/zod/v4/locales/pt.js
|
|
25573
|
-
var
|
|
25977
|
+
var error36 = () => {
|
|
25574
25978
|
const Sizable = {
|
|
25575
25979
|
string: { unit: "caracteres", verb: "ter" },
|
|
25576
25980
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -25674,7 +26078,127 @@ var error34 = () => {
|
|
|
25674
26078
|
};
|
|
25675
26079
|
function pt_default() {
|
|
25676
26080
|
return {
|
|
25677
|
-
localeError:
|
|
26081
|
+
localeError: error36()
|
|
26082
|
+
};
|
|
26083
|
+
}
|
|
26084
|
+
|
|
26085
|
+
// ../../node_modules/zod/v4/locales/ro.js
|
|
26086
|
+
var error37 = () => {
|
|
26087
|
+
const Sizable = {
|
|
26088
|
+
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
26089
|
+
file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
|
|
26090
|
+
array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
26091
|
+
set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
|
|
26092
|
+
map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
|
|
26093
|
+
};
|
|
26094
|
+
function getSizing(origin) {
|
|
26095
|
+
return Sizable[origin] ?? null;
|
|
26096
|
+
}
|
|
26097
|
+
const FormatDictionary = {
|
|
26098
|
+
regex: "intrare",
|
|
26099
|
+
email: "adres\u0103 de email",
|
|
26100
|
+
url: "URL",
|
|
26101
|
+
emoji: "emoji",
|
|
26102
|
+
uuid: "UUID",
|
|
26103
|
+
uuidv4: "UUIDv4",
|
|
26104
|
+
uuidv6: "UUIDv6",
|
|
26105
|
+
nanoid: "nanoid",
|
|
26106
|
+
guid: "GUID",
|
|
26107
|
+
cuid: "cuid",
|
|
26108
|
+
cuid2: "cuid2",
|
|
26109
|
+
ulid: "ULID",
|
|
26110
|
+
xid: "XID",
|
|
26111
|
+
ksuid: "KSUID",
|
|
26112
|
+
datetime: "dat\u0103 \u0219i or\u0103 ISO",
|
|
26113
|
+
date: "dat\u0103 ISO",
|
|
26114
|
+
time: "or\u0103 ISO",
|
|
26115
|
+
duration: "durat\u0103 ISO",
|
|
26116
|
+
ipv4: "adres\u0103 IPv4",
|
|
26117
|
+
ipv6: "adres\u0103 IPv6",
|
|
26118
|
+
mac: "adres\u0103 MAC",
|
|
26119
|
+
cidrv4: "interval IPv4",
|
|
26120
|
+
cidrv6: "interval IPv6",
|
|
26121
|
+
base64: "\u0219ir codat base64",
|
|
26122
|
+
base64url: "\u0219ir codat base64url",
|
|
26123
|
+
json_string: "\u0219ir JSON",
|
|
26124
|
+
e164: "num\u0103r E.164",
|
|
26125
|
+
jwt: "JWT",
|
|
26126
|
+
template_literal: "intrare"
|
|
26127
|
+
};
|
|
26128
|
+
const TypeDictionary = {
|
|
26129
|
+
nan: "NaN",
|
|
26130
|
+
string: "\u0219ir",
|
|
26131
|
+
number: "num\u0103r",
|
|
26132
|
+
boolean: "boolean",
|
|
26133
|
+
function: "func\u021Bie",
|
|
26134
|
+
array: "matrice",
|
|
26135
|
+
object: "obiect",
|
|
26136
|
+
undefined: "nedefinit",
|
|
26137
|
+
symbol: "simbol",
|
|
26138
|
+
bigint: "num\u0103r mare",
|
|
26139
|
+
void: "void",
|
|
26140
|
+
never: "never",
|
|
26141
|
+
map: "hart\u0103",
|
|
26142
|
+
set: "set"
|
|
26143
|
+
};
|
|
26144
|
+
return (issue2) => {
|
|
26145
|
+
switch (issue2.code) {
|
|
26146
|
+
case "invalid_type": {
|
|
26147
|
+
const expected = TypeDictionary[issue2.expected] ?? issue2.expected;
|
|
26148
|
+
const receivedType = parsedType(issue2.input);
|
|
26149
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
26150
|
+
return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
|
|
26151
|
+
}
|
|
26152
|
+
case "invalid_value":
|
|
26153
|
+
if (issue2.values.length === 1)
|
|
26154
|
+
return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`;
|
|
26155
|
+
return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values, "|")}`;
|
|
26156
|
+
case "too_big": {
|
|
26157
|
+
const adj = issue2.inclusive ? "<=" : "<";
|
|
26158
|
+
const sizing = getSizing(issue2.origin);
|
|
26159
|
+
if (sizing)
|
|
26160
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elemente"}`;
|
|
26161
|
+
return `Prea mare: a\u0219teptat ca ${issue2.origin ?? "valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`;
|
|
26162
|
+
}
|
|
26163
|
+
case "too_small": {
|
|
26164
|
+
const adj = issue2.inclusive ? ">=" : ">";
|
|
26165
|
+
const sizing = getSizing(issue2.origin);
|
|
26166
|
+
if (sizing) {
|
|
26167
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
|
|
26168
|
+
}
|
|
26169
|
+
return `Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`;
|
|
26170
|
+
}
|
|
26171
|
+
case "invalid_format": {
|
|
26172
|
+
const _issue = issue2;
|
|
26173
|
+
if (_issue.format === "starts_with") {
|
|
26174
|
+
return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
|
|
26175
|
+
}
|
|
26176
|
+
if (_issue.format === "ends_with")
|
|
26177
|
+
return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
|
|
26178
|
+
if (_issue.format === "includes")
|
|
26179
|
+
return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
|
|
26180
|
+
if (_issue.format === "regex")
|
|
26181
|
+
return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
|
|
26182
|
+
return `Format invalid: ${FormatDictionary[_issue.format] ?? issue2.format}`;
|
|
26183
|
+
}
|
|
26184
|
+
case "not_multiple_of":
|
|
26185
|
+
return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;
|
|
26186
|
+
case "unrecognized_keys":
|
|
26187
|
+
return `Chei nerecunoscute: ${joinValues(issue2.keys, ", ")}`;
|
|
26188
|
+
case "invalid_key":
|
|
26189
|
+
return `Cheie invalid\u0103 \xEEn ${issue2.origin}`;
|
|
26190
|
+
case "invalid_union":
|
|
26191
|
+
return "Intrare invalid\u0103";
|
|
26192
|
+
case "invalid_element":
|
|
26193
|
+
return `Valoare invalid\u0103 \xEEn ${issue2.origin}`;
|
|
26194
|
+
default:
|
|
26195
|
+
return `Intrare invalid\u0103`;
|
|
26196
|
+
}
|
|
26197
|
+
};
|
|
26198
|
+
};
|
|
26199
|
+
function ro_default() {
|
|
26200
|
+
return {
|
|
26201
|
+
localeError: error37()
|
|
25678
26202
|
};
|
|
25679
26203
|
}
|
|
25680
26204
|
|
|
@@ -25694,7 +26218,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
25694
26218
|
}
|
|
25695
26219
|
return many;
|
|
25696
26220
|
}
|
|
25697
|
-
var
|
|
26221
|
+
var error38 = () => {
|
|
25698
26222
|
const Sizable = {
|
|
25699
26223
|
string: {
|
|
25700
26224
|
unit: {
|
|
@@ -25831,12 +26355,12 @@ var error35 = () => {
|
|
|
25831
26355
|
};
|
|
25832
26356
|
function ru_default() {
|
|
25833
26357
|
return {
|
|
25834
|
-
localeError:
|
|
26358
|
+
localeError: error38()
|
|
25835
26359
|
};
|
|
25836
26360
|
}
|
|
25837
26361
|
|
|
25838
26362
|
// ../../node_modules/zod/v4/locales/sl.js
|
|
25839
|
-
var
|
|
26363
|
+
var error39 = () => {
|
|
25840
26364
|
const Sizable = {
|
|
25841
26365
|
string: { unit: "znakov", verb: "imeti" },
|
|
25842
26366
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -25941,12 +26465,12 @@ var error36 = () => {
|
|
|
25941
26465
|
};
|
|
25942
26466
|
function sl_default() {
|
|
25943
26467
|
return {
|
|
25944
|
-
localeError:
|
|
26468
|
+
localeError: error39()
|
|
25945
26469
|
};
|
|
25946
26470
|
}
|
|
25947
26471
|
|
|
25948
26472
|
// ../../node_modules/zod/v4/locales/sv.js
|
|
25949
|
-
var
|
|
26473
|
+
var error40 = () => {
|
|
25950
26474
|
const Sizable = {
|
|
25951
26475
|
string: { unit: "tecken", verb: "att ha" },
|
|
25952
26476
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -26052,12 +26576,12 @@ var error37 = () => {
|
|
|
26052
26576
|
};
|
|
26053
26577
|
function sv_default() {
|
|
26054
26578
|
return {
|
|
26055
|
-
localeError:
|
|
26579
|
+
localeError: error40()
|
|
26056
26580
|
};
|
|
26057
26581
|
}
|
|
26058
26582
|
|
|
26059
26583
|
// ../../node_modules/zod/v4/locales/ta.js
|
|
26060
|
-
var
|
|
26584
|
+
var error41 = () => {
|
|
26061
26585
|
const Sizable = {
|
|
26062
26586
|
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" },
|
|
26063
26587
|
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" },
|
|
@@ -26163,12 +26687,12 @@ var error38 = () => {
|
|
|
26163
26687
|
};
|
|
26164
26688
|
function ta_default() {
|
|
26165
26689
|
return {
|
|
26166
|
-
localeError:
|
|
26690
|
+
localeError: error41()
|
|
26167
26691
|
};
|
|
26168
26692
|
}
|
|
26169
26693
|
|
|
26170
26694
|
// ../../node_modules/zod/v4/locales/th.js
|
|
26171
|
-
var
|
|
26695
|
+
var error42 = () => {
|
|
26172
26696
|
const Sizable = {
|
|
26173
26697
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
26174
26698
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -26274,12 +26798,12 @@ var error39 = () => {
|
|
|
26274
26798
|
};
|
|
26275
26799
|
function th_default() {
|
|
26276
26800
|
return {
|
|
26277
|
-
localeError:
|
|
26801
|
+
localeError: error42()
|
|
26278
26802
|
};
|
|
26279
26803
|
}
|
|
26280
26804
|
|
|
26281
26805
|
// ../../node_modules/zod/v4/locales/tr.js
|
|
26282
|
-
var
|
|
26806
|
+
var error43 = () => {
|
|
26283
26807
|
const Sizable = {
|
|
26284
26808
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
26285
26809
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -26380,12 +26904,12 @@ var error40 = () => {
|
|
|
26380
26904
|
};
|
|
26381
26905
|
function tr_default() {
|
|
26382
26906
|
return {
|
|
26383
|
-
localeError:
|
|
26907
|
+
localeError: error43()
|
|
26384
26908
|
};
|
|
26385
26909
|
}
|
|
26386
26910
|
|
|
26387
26911
|
// ../../node_modules/zod/v4/locales/uk.js
|
|
26388
|
-
var
|
|
26912
|
+
var error44 = () => {
|
|
26389
26913
|
const Sizable = {
|
|
26390
26914
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
26391
26915
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -26489,7 +27013,7 @@ var error41 = () => {
|
|
|
26489
27013
|
};
|
|
26490
27014
|
function uk_default() {
|
|
26491
27015
|
return {
|
|
26492
|
-
localeError:
|
|
27016
|
+
localeError: error44()
|
|
26493
27017
|
};
|
|
26494
27018
|
}
|
|
26495
27019
|
|
|
@@ -26499,7 +27023,7 @@ function ua_default() {
|
|
|
26499
27023
|
}
|
|
26500
27024
|
|
|
26501
27025
|
// ../../node_modules/zod/v4/locales/ur.js
|
|
26502
|
-
var
|
|
27026
|
+
var error45 = () => {
|
|
26503
27027
|
const Sizable = {
|
|
26504
27028
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
26505
27029
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -26605,17 +27129,18 @@ var error42 = () => {
|
|
|
26605
27129
|
};
|
|
26606
27130
|
function ur_default() {
|
|
26607
27131
|
return {
|
|
26608
|
-
localeError:
|
|
27132
|
+
localeError: error45()
|
|
26609
27133
|
};
|
|
26610
27134
|
}
|
|
26611
27135
|
|
|
26612
27136
|
// ../../node_modules/zod/v4/locales/uz.js
|
|
26613
|
-
var
|
|
27137
|
+
var error46 = () => {
|
|
26614
27138
|
const Sizable = {
|
|
26615
27139
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
26616
27140
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
26617
27141
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
26618
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
27142
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
27143
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
26619
27144
|
};
|
|
26620
27145
|
function getSizing(origin) {
|
|
26621
27146
|
return Sizable[origin] ?? null;
|
|
@@ -26715,12 +27240,12 @@ var error43 = () => {
|
|
|
26715
27240
|
};
|
|
26716
27241
|
function uz_default() {
|
|
26717
27242
|
return {
|
|
26718
|
-
localeError:
|
|
27243
|
+
localeError: error46()
|
|
26719
27244
|
};
|
|
26720
27245
|
}
|
|
26721
27246
|
|
|
26722
27247
|
// ../../node_modules/zod/v4/locales/vi.js
|
|
26723
|
-
var
|
|
27248
|
+
var error47 = () => {
|
|
26724
27249
|
const Sizable = {
|
|
26725
27250
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
26726
27251
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -26824,12 +27349,12 @@ var error44 = () => {
|
|
|
26824
27349
|
};
|
|
26825
27350
|
function vi_default() {
|
|
26826
27351
|
return {
|
|
26827
|
-
localeError:
|
|
27352
|
+
localeError: error47()
|
|
26828
27353
|
};
|
|
26829
27354
|
}
|
|
26830
27355
|
|
|
26831
27356
|
// ../../node_modules/zod/v4/locales/zh-CN.js
|
|
26832
|
-
var
|
|
27357
|
+
var error48 = () => {
|
|
26833
27358
|
const Sizable = {
|
|
26834
27359
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
26835
27360
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -26934,12 +27459,12 @@ var error45 = () => {
|
|
|
26934
27459
|
};
|
|
26935
27460
|
function zh_CN_default() {
|
|
26936
27461
|
return {
|
|
26937
|
-
localeError:
|
|
27462
|
+
localeError: error48()
|
|
26938
27463
|
};
|
|
26939
27464
|
}
|
|
26940
27465
|
|
|
26941
27466
|
// ../../node_modules/zod/v4/locales/zh-TW.js
|
|
26942
|
-
var
|
|
27467
|
+
var error49 = () => {
|
|
26943
27468
|
const Sizable = {
|
|
26944
27469
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
26945
27470
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -27042,12 +27567,12 @@ var error46 = () => {
|
|
|
27042
27567
|
};
|
|
27043
27568
|
function zh_TW_default() {
|
|
27044
27569
|
return {
|
|
27045
|
-
localeError:
|
|
27570
|
+
localeError: error49()
|
|
27046
27571
|
};
|
|
27047
27572
|
}
|
|
27048
27573
|
|
|
27049
27574
|
// ../../node_modules/zod/v4/locales/yo.js
|
|
27050
|
-
var
|
|
27575
|
+
var error50 = () => {
|
|
27051
27576
|
const Sizable = {
|
|
27052
27577
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
27053
27578
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -27150,12 +27675,12 @@ var error47 = () => {
|
|
|
27150
27675
|
};
|
|
27151
27676
|
function yo_default() {
|
|
27152
27677
|
return {
|
|
27153
|
-
localeError:
|
|
27678
|
+
localeError: error50()
|
|
27154
27679
|
};
|
|
27155
27680
|
}
|
|
27156
27681
|
|
|
27157
27682
|
// ../../node_modules/zod/v4/core/registries.js
|
|
27158
|
-
var
|
|
27683
|
+
var _a2;
|
|
27159
27684
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
27160
27685
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
27161
27686
|
var $ZodRegistry = class {
|
|
@@ -27201,7 +27726,7 @@ var $ZodRegistry = class {
|
|
|
27201
27726
|
function registry() {
|
|
27202
27727
|
return new $ZodRegistry();
|
|
27203
27728
|
}
|
|
27204
|
-
(
|
|
27729
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
27205
27730
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
27206
27731
|
|
|
27207
27732
|
// ../../node_modules/zod/v4/core/api.js
|
|
@@ -28119,7 +28644,7 @@ function _refine(Class2, fn2, _params) {
|
|
|
28119
28644
|
return schema;
|
|
28120
28645
|
}
|
|
28121
28646
|
// @__NO_SIDE_EFFECTS__
|
|
28122
|
-
function _superRefine(fn2) {
|
|
28647
|
+
function _superRefine(fn2, params) {
|
|
28123
28648
|
const ch2 = /* @__PURE__ */ _check((payload) => {
|
|
28124
28649
|
payload.addIssue = (issue2) => {
|
|
28125
28650
|
if (typeof issue2 === "string") {
|
|
@@ -28136,7 +28661,7 @@ function _superRefine(fn2) {
|
|
|
28136
28661
|
}
|
|
28137
28662
|
};
|
|
28138
28663
|
return fn2(payload.value, payload);
|
|
28139
|
-
});
|
|
28664
|
+
}, params);
|
|
28140
28665
|
return ch2;
|
|
28141
28666
|
}
|
|
28142
28667
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -28266,7 +28791,7 @@ function initializeContext(params) {
|
|
|
28266
28791
|
};
|
|
28267
28792
|
}
|
|
28268
28793
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
28269
|
-
var
|
|
28794
|
+
var _a3;
|
|
28270
28795
|
const def = schema._zod.def;
|
|
28271
28796
|
const seen = ctx.seen.get(schema);
|
|
28272
28797
|
if (seen) {
|
|
@@ -28313,8 +28838,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
28313
28838
|
delete result.schema.examples;
|
|
28314
28839
|
delete result.schema.default;
|
|
28315
28840
|
}
|
|
28316
|
-
if (ctx.io === "input" && result.schema
|
|
28317
|
-
(
|
|
28841
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
28842
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
28318
28843
|
delete result.schema._prefault;
|
|
28319
28844
|
const _result = ctx.seen.get(schema);
|
|
28320
28845
|
return _result.schema;
|
|
@@ -28495,10 +29020,15 @@ function finalize(ctx, schema) {
|
|
|
28495
29020
|
result.$id = ctx.external.uri(id2);
|
|
28496
29021
|
}
|
|
28497
29022
|
Object.assign(result, root2.def ?? root2.schema);
|
|
29023
|
+
const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
|
|
29024
|
+
if (rootMetaId !== void 0 && result.id === rootMetaId)
|
|
29025
|
+
delete result.id;
|
|
28498
29026
|
const defs = ctx.external?.defs ?? {};
|
|
28499
29027
|
for (const entry of ctx.seen.entries()) {
|
|
28500
29028
|
const seen = entry[1];
|
|
28501
29029
|
if (seen.def && seen.defId) {
|
|
29030
|
+
if (seen.def.id === seen.defId)
|
|
29031
|
+
delete seen.def.id;
|
|
28502
29032
|
defs[seen.defId] = seen.def;
|
|
28503
29033
|
}
|
|
28504
29034
|
}
|
|
@@ -28554,6 +29084,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
28554
29084
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
28555
29085
|
}
|
|
28556
29086
|
if (def.type === "pipe") {
|
|
29087
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
29088
|
+
return true;
|
|
28557
29089
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
28558
29090
|
}
|
|
28559
29091
|
if (def.type === "object") {
|
|
@@ -28643,39 +29175,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
28643
29175
|
json2.type = "integer";
|
|
28644
29176
|
else
|
|
28645
29177
|
json2.type = "number";
|
|
28646
|
-
|
|
28647
|
-
|
|
29178
|
+
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
29179
|
+
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
29180
|
+
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
29181
|
+
if (exMin) {
|
|
29182
|
+
if (legacy) {
|
|
28648
29183
|
json2.minimum = exclusiveMinimum;
|
|
28649
29184
|
json2.exclusiveMinimum = true;
|
|
28650
29185
|
} else {
|
|
28651
29186
|
json2.exclusiveMinimum = exclusiveMinimum;
|
|
28652
29187
|
}
|
|
28653
|
-
}
|
|
28654
|
-
if (typeof minimum === "number") {
|
|
29188
|
+
} else if (typeof minimum === "number") {
|
|
28655
29189
|
json2.minimum = minimum;
|
|
28656
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
28657
|
-
if (exclusiveMinimum >= minimum)
|
|
28658
|
-
delete json2.minimum;
|
|
28659
|
-
else
|
|
28660
|
-
delete json2.exclusiveMinimum;
|
|
28661
|
-
}
|
|
28662
29190
|
}
|
|
28663
|
-
if (
|
|
28664
|
-
if (
|
|
29191
|
+
if (exMax) {
|
|
29192
|
+
if (legacy) {
|
|
28665
29193
|
json2.maximum = exclusiveMaximum;
|
|
28666
29194
|
json2.exclusiveMaximum = true;
|
|
28667
29195
|
} else {
|
|
28668
29196
|
json2.exclusiveMaximum = exclusiveMaximum;
|
|
28669
29197
|
}
|
|
28670
|
-
}
|
|
28671
|
-
if (typeof maximum === "number") {
|
|
29198
|
+
} else if (typeof maximum === "number") {
|
|
28672
29199
|
json2.maximum = maximum;
|
|
28673
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
28674
|
-
if (exclusiveMaximum <= maximum)
|
|
28675
|
-
delete json2.maximum;
|
|
28676
|
-
else
|
|
28677
|
-
delete json2.exclusiveMaximum;
|
|
28678
|
-
}
|
|
28679
29200
|
}
|
|
28680
29201
|
if (typeof multipleOf === "number")
|
|
28681
29202
|
json2.multipleOf = multipleOf;
|
|
@@ -28847,7 +29368,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
28847
29368
|
if (typeof maximum === "number")
|
|
28848
29369
|
json2.maxItems = maximum;
|
|
28849
29370
|
json2.type = "array";
|
|
28850
|
-
json2.items = process2(def.element, ctx, {
|
|
29371
|
+
json2.items = process2(def.element, ctx, {
|
|
29372
|
+
...params,
|
|
29373
|
+
path: [...params.path, "items"]
|
|
29374
|
+
});
|
|
28851
29375
|
};
|
|
28852
29376
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
28853
29377
|
const json2 = _json;
|
|
@@ -29040,7 +29564,8 @@ var catchProcessor = (schema, ctx, json2, params) => {
|
|
|
29040
29564
|
};
|
|
29041
29565
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
29042
29566
|
const def = schema._zod.def;
|
|
29043
|
-
const
|
|
29567
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
29568
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
29044
29569
|
process2(innerType, ctx, params);
|
|
29045
29570
|
const seen = ctx.seen.get(schema);
|
|
29046
29571
|
seen.ref = innerType;
|
|
@@ -29274,6 +29799,7 @@ __export(schemas_exports2, {
|
|
|
29274
29799
|
ZodOptional: () => ZodOptional2,
|
|
29275
29800
|
ZodPipe: () => ZodPipe,
|
|
29276
29801
|
ZodPrefault: () => ZodPrefault,
|
|
29802
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
29277
29803
|
ZodPromise: () => ZodPromise2,
|
|
29278
29804
|
ZodReadonly: () => ZodReadonly2,
|
|
29279
29805
|
ZodRecord: () => ZodRecord2,
|
|
@@ -29334,6 +29860,7 @@ __export(schemas_exports2, {
|
|
|
29334
29860
|
int32: () => int32,
|
|
29335
29861
|
int64: () => int64,
|
|
29336
29862
|
intersection: () => intersection,
|
|
29863
|
+
invertCodec: () => invertCodec,
|
|
29337
29864
|
ipv4: () => ipv42,
|
|
29338
29865
|
ipv6: () => ipv62,
|
|
29339
29866
|
json: () => json,
|
|
@@ -29503,8 +30030,8 @@ var initializer2 = (inst, issues) => {
|
|
|
29503
30030
|
}
|
|
29504
30031
|
});
|
|
29505
30032
|
};
|
|
29506
|
-
var ZodError2 = $constructor("ZodError", initializer2);
|
|
29507
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
30033
|
+
var ZodError2 = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
30034
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
29508
30035
|
Parent: Error
|
|
29509
30036
|
});
|
|
29510
30037
|
|
|
@@ -29523,6 +30050,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
29523
30050
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
29524
30051
|
|
|
29525
30052
|
// ../../node_modules/zod/v4/classic/schemas.js
|
|
30053
|
+
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
30054
|
+
function _installLazyMethods(inst, group, methods) {
|
|
30055
|
+
const proto = Object.getPrototypeOf(inst);
|
|
30056
|
+
let installed = _installedGroups.get(proto);
|
|
30057
|
+
if (!installed) {
|
|
30058
|
+
installed = /* @__PURE__ */ new Set();
|
|
30059
|
+
_installedGroups.set(proto, installed);
|
|
30060
|
+
}
|
|
30061
|
+
if (installed.has(group))
|
|
30062
|
+
return;
|
|
30063
|
+
installed.add(group);
|
|
30064
|
+
for (const key in methods) {
|
|
30065
|
+
const fn2 = methods[key];
|
|
30066
|
+
Object.defineProperty(proto, key, {
|
|
30067
|
+
configurable: true,
|
|
30068
|
+
enumerable: false,
|
|
30069
|
+
get() {
|
|
30070
|
+
const bound = fn2.bind(this);
|
|
30071
|
+
Object.defineProperty(this, key, {
|
|
30072
|
+
configurable: true,
|
|
30073
|
+
writable: true,
|
|
30074
|
+
enumerable: true,
|
|
30075
|
+
value: bound
|
|
30076
|
+
});
|
|
30077
|
+
return bound;
|
|
30078
|
+
},
|
|
30079
|
+
set(v) {
|
|
30080
|
+
Object.defineProperty(this, key, {
|
|
30081
|
+
configurable: true,
|
|
30082
|
+
writable: true,
|
|
30083
|
+
enumerable: true,
|
|
30084
|
+
value: v
|
|
30085
|
+
});
|
|
30086
|
+
}
|
|
30087
|
+
});
|
|
30088
|
+
}
|
|
30089
|
+
}
|
|
29526
30090
|
var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
29527
30091
|
$ZodType.init(inst, def);
|
|
29528
30092
|
Object.assign(inst["~standard"], {
|
|
@@ -29535,23 +30099,6 @@ var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
29535
30099
|
inst.def = def;
|
|
29536
30100
|
inst.type = def.type;
|
|
29537
30101
|
Object.defineProperty(inst, "_def", { value: def });
|
|
29538
|
-
inst.check = (...checks) => {
|
|
29539
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
29540
|
-
checks: [
|
|
29541
|
-
...def.checks ?? [],
|
|
29542
|
-
...checks.map((ch2) => typeof ch2 === "function" ? { _zod: { check: ch2, def: { check: "custom" }, onattach: [] } } : ch2)
|
|
29543
|
-
]
|
|
29544
|
-
}), {
|
|
29545
|
-
parent: true
|
|
29546
|
-
});
|
|
29547
|
-
};
|
|
29548
|
-
inst.with = inst.check;
|
|
29549
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
29550
|
-
inst.brand = () => inst;
|
|
29551
|
-
inst.register = ((reg, meta3) => {
|
|
29552
|
-
reg.add(inst, meta3);
|
|
29553
|
-
return inst;
|
|
29554
|
-
});
|
|
29555
30102
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
29556
30103
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
29557
30104
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -29565,45 +30112,108 @@ var ZodType2 = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
29565
30112
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
29566
30113
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
29567
30114
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
29568
|
-
inst
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
29576
|
-
|
|
29577
|
-
|
|
29578
|
-
|
|
29579
|
-
|
|
29580
|
-
|
|
29581
|
-
|
|
29582
|
-
|
|
29583
|
-
|
|
29584
|
-
|
|
29585
|
-
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
|
|
30115
|
+
_installLazyMethods(inst, "ZodType", {
|
|
30116
|
+
check(...chks) {
|
|
30117
|
+
const def2 = this.def;
|
|
30118
|
+
return this.clone(util_exports.mergeDefs(def2, {
|
|
30119
|
+
checks: [
|
|
30120
|
+
...def2.checks ?? [],
|
|
30121
|
+
...chks.map((ch2) => typeof ch2 === "function" ? { _zod: { check: ch2, def: { check: "custom" }, onattach: [] } } : ch2)
|
|
30122
|
+
]
|
|
30123
|
+
}), { parent: true });
|
|
30124
|
+
},
|
|
30125
|
+
with(...chks) {
|
|
30126
|
+
return this.check(...chks);
|
|
30127
|
+
},
|
|
30128
|
+
clone(def2, params) {
|
|
30129
|
+
return clone(this, def2, params);
|
|
30130
|
+
},
|
|
30131
|
+
brand() {
|
|
30132
|
+
return this;
|
|
30133
|
+
},
|
|
30134
|
+
register(reg, meta3) {
|
|
30135
|
+
reg.add(this, meta3);
|
|
30136
|
+
return this;
|
|
30137
|
+
},
|
|
30138
|
+
refine(check2, params) {
|
|
30139
|
+
return this.check(refine(check2, params));
|
|
30140
|
+
},
|
|
30141
|
+
superRefine(refinement, params) {
|
|
30142
|
+
return this.check(superRefine(refinement, params));
|
|
30143
|
+
},
|
|
30144
|
+
overwrite(fn2) {
|
|
30145
|
+
return this.check(_overwrite(fn2));
|
|
30146
|
+
},
|
|
30147
|
+
optional() {
|
|
30148
|
+
return optional(this);
|
|
30149
|
+
},
|
|
30150
|
+
exactOptional() {
|
|
30151
|
+
return exactOptional(this);
|
|
30152
|
+
},
|
|
30153
|
+
nullable() {
|
|
30154
|
+
return nullable(this);
|
|
30155
|
+
},
|
|
30156
|
+
nullish() {
|
|
30157
|
+
return optional(nullable(this));
|
|
30158
|
+
},
|
|
30159
|
+
nonoptional(params) {
|
|
30160
|
+
return nonoptional(this, params);
|
|
30161
|
+
},
|
|
30162
|
+
array() {
|
|
30163
|
+
return array(this);
|
|
30164
|
+
},
|
|
30165
|
+
or(arg) {
|
|
30166
|
+
return union([this, arg]);
|
|
30167
|
+
},
|
|
30168
|
+
and(arg) {
|
|
30169
|
+
return intersection(this, arg);
|
|
30170
|
+
},
|
|
30171
|
+
transform(tx) {
|
|
30172
|
+
return pipe(this, transform(tx));
|
|
30173
|
+
},
|
|
30174
|
+
default(d) {
|
|
30175
|
+
return _default2(this, d);
|
|
30176
|
+
},
|
|
30177
|
+
prefault(d) {
|
|
30178
|
+
return prefault(this, d);
|
|
30179
|
+
},
|
|
30180
|
+
catch(params) {
|
|
30181
|
+
return _catch2(this, params);
|
|
30182
|
+
},
|
|
30183
|
+
pipe(target) {
|
|
30184
|
+
return pipe(this, target);
|
|
30185
|
+
},
|
|
30186
|
+
readonly() {
|
|
30187
|
+
return readonly(this);
|
|
30188
|
+
},
|
|
30189
|
+
describe(description) {
|
|
30190
|
+
const cl2 = this.clone();
|
|
30191
|
+
globalRegistry.add(cl2, { description });
|
|
30192
|
+
return cl2;
|
|
30193
|
+
},
|
|
30194
|
+
meta(...args) {
|
|
30195
|
+
if (args.length === 0)
|
|
30196
|
+
return globalRegistry.get(this);
|
|
30197
|
+
const cl2 = this.clone();
|
|
30198
|
+
globalRegistry.add(cl2, args[0]);
|
|
30199
|
+
return cl2;
|
|
30200
|
+
},
|
|
30201
|
+
isOptional() {
|
|
30202
|
+
return this.safeParse(void 0).success;
|
|
30203
|
+
},
|
|
30204
|
+
isNullable() {
|
|
30205
|
+
return this.safeParse(null).success;
|
|
30206
|
+
},
|
|
30207
|
+
apply(fn2) {
|
|
30208
|
+
return fn2(this);
|
|
30209
|
+
}
|
|
30210
|
+
});
|
|
29590
30211
|
Object.defineProperty(inst, "description", {
|
|
29591
30212
|
get() {
|
|
29592
30213
|
return globalRegistry.get(inst)?.description;
|
|
29593
30214
|
},
|
|
29594
30215
|
configurable: true
|
|
29595
30216
|
});
|
|
29596
|
-
inst.meta = (...args) => {
|
|
29597
|
-
if (args.length === 0) {
|
|
29598
|
-
return globalRegistry.get(inst);
|
|
29599
|
-
}
|
|
29600
|
-
const cl2 = inst.clone();
|
|
29601
|
-
globalRegistry.add(cl2, args[0]);
|
|
29602
|
-
return cl2;
|
|
29603
|
-
};
|
|
29604
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
29605
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
29606
|
-
inst.apply = (fn2) => fn2(inst);
|
|
29607
30217
|
return inst;
|
|
29608
30218
|
});
|
|
29609
30219
|
var _ZodString2 = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -29614,21 +30224,53 @@ var _ZodString2 = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
29614
30224
|
inst.format = bag.format ?? null;
|
|
29615
30225
|
inst.minLength = bag.minimum ?? null;
|
|
29616
30226
|
inst.maxLength = bag.maximum ?? null;
|
|
29617
|
-
inst
|
|
29618
|
-
|
|
29619
|
-
|
|
29620
|
-
|
|
29621
|
-
|
|
29622
|
-
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
|
-
|
|
29626
|
-
|
|
29627
|
-
|
|
29628
|
-
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
30227
|
+
_installLazyMethods(inst, "_ZodString", {
|
|
30228
|
+
regex(...args) {
|
|
30229
|
+
return this.check(_regex(...args));
|
|
30230
|
+
},
|
|
30231
|
+
includes(...args) {
|
|
30232
|
+
return this.check(_includes(...args));
|
|
30233
|
+
},
|
|
30234
|
+
startsWith(...args) {
|
|
30235
|
+
return this.check(_startsWith(...args));
|
|
30236
|
+
},
|
|
30237
|
+
endsWith(...args) {
|
|
30238
|
+
return this.check(_endsWith(...args));
|
|
30239
|
+
},
|
|
30240
|
+
min(...args) {
|
|
30241
|
+
return this.check(_minLength(...args));
|
|
30242
|
+
},
|
|
30243
|
+
max(...args) {
|
|
30244
|
+
return this.check(_maxLength(...args));
|
|
30245
|
+
},
|
|
30246
|
+
length(...args) {
|
|
30247
|
+
return this.check(_length(...args));
|
|
30248
|
+
},
|
|
30249
|
+
nonempty(...args) {
|
|
30250
|
+
return this.check(_minLength(1, ...args));
|
|
30251
|
+
},
|
|
30252
|
+
lowercase(params) {
|
|
30253
|
+
return this.check(_lowercase(params));
|
|
30254
|
+
},
|
|
30255
|
+
uppercase(params) {
|
|
30256
|
+
return this.check(_uppercase(params));
|
|
30257
|
+
},
|
|
30258
|
+
trim() {
|
|
30259
|
+
return this.check(_trim());
|
|
30260
|
+
},
|
|
30261
|
+
normalize(...args) {
|
|
30262
|
+
return this.check(_normalize(...args));
|
|
30263
|
+
},
|
|
30264
|
+
toLowerCase() {
|
|
30265
|
+
return this.check(_toLowerCase());
|
|
30266
|
+
},
|
|
30267
|
+
toUpperCase() {
|
|
30268
|
+
return this.check(_toUpperCase());
|
|
30269
|
+
},
|
|
30270
|
+
slugify() {
|
|
30271
|
+
return this.check(_slugify());
|
|
30272
|
+
}
|
|
30273
|
+
});
|
|
29632
30274
|
});
|
|
29633
30275
|
var ZodString2 = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
29634
30276
|
$ZodString.init(inst, def);
|
|
@@ -29707,7 +30349,7 @@ function url(params) {
|
|
|
29707
30349
|
}
|
|
29708
30350
|
function httpUrl(params) {
|
|
29709
30351
|
return _url(ZodURL, {
|
|
29710
|
-
protocol:
|
|
30352
|
+
protocol: regexes_exports.httpProtocol,
|
|
29711
30353
|
hostname: regexes_exports.domain,
|
|
29712
30354
|
...util_exports.normalizeParams(params)
|
|
29713
30355
|
});
|
|
@@ -29849,21 +30491,53 @@ var ZodNumber2 = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
29849
30491
|
$ZodNumber.init(inst, def);
|
|
29850
30492
|
ZodType2.init(inst, def);
|
|
29851
30493
|
inst._zod.processJSONSchema = (ctx, json2, params) => numberProcessor(inst, ctx, json2, params);
|
|
29852
|
-
inst
|
|
29853
|
-
|
|
29854
|
-
|
|
29855
|
-
|
|
29856
|
-
|
|
29857
|
-
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29862
|
-
|
|
29863
|
-
|
|
29864
|
-
|
|
29865
|
-
|
|
29866
|
-
|
|
30494
|
+
_installLazyMethods(inst, "ZodNumber", {
|
|
30495
|
+
gt(value, params) {
|
|
30496
|
+
return this.check(_gt(value, params));
|
|
30497
|
+
},
|
|
30498
|
+
gte(value, params) {
|
|
30499
|
+
return this.check(_gte(value, params));
|
|
30500
|
+
},
|
|
30501
|
+
min(value, params) {
|
|
30502
|
+
return this.check(_gte(value, params));
|
|
30503
|
+
},
|
|
30504
|
+
lt(value, params) {
|
|
30505
|
+
return this.check(_lt(value, params));
|
|
30506
|
+
},
|
|
30507
|
+
lte(value, params) {
|
|
30508
|
+
return this.check(_lte(value, params));
|
|
30509
|
+
},
|
|
30510
|
+
max(value, params) {
|
|
30511
|
+
return this.check(_lte(value, params));
|
|
30512
|
+
},
|
|
30513
|
+
int(params) {
|
|
30514
|
+
return this.check(int(params));
|
|
30515
|
+
},
|
|
30516
|
+
safe(params) {
|
|
30517
|
+
return this.check(int(params));
|
|
30518
|
+
},
|
|
30519
|
+
positive(params) {
|
|
30520
|
+
return this.check(_gt(0, params));
|
|
30521
|
+
},
|
|
30522
|
+
nonnegative(params) {
|
|
30523
|
+
return this.check(_gte(0, params));
|
|
30524
|
+
},
|
|
30525
|
+
negative(params) {
|
|
30526
|
+
return this.check(_lt(0, params));
|
|
30527
|
+
},
|
|
30528
|
+
nonpositive(params) {
|
|
30529
|
+
return this.check(_lte(0, params));
|
|
30530
|
+
},
|
|
30531
|
+
multipleOf(value, params) {
|
|
30532
|
+
return this.check(_multipleOf(value, params));
|
|
30533
|
+
},
|
|
30534
|
+
step(value, params) {
|
|
30535
|
+
return this.check(_multipleOf(value, params));
|
|
30536
|
+
},
|
|
30537
|
+
finite() {
|
|
30538
|
+
return this;
|
|
30539
|
+
}
|
|
30540
|
+
});
|
|
29867
30541
|
const bag = inst._zod.bag;
|
|
29868
30542
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
29869
30543
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -30010,11 +30684,23 @@ var ZodArray2 = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
30010
30684
|
ZodType2.init(inst, def);
|
|
30011
30685
|
inst._zod.processJSONSchema = (ctx, json2, params) => arrayProcessor(inst, ctx, json2, params);
|
|
30012
30686
|
inst.element = def.element;
|
|
30013
|
-
inst
|
|
30014
|
-
|
|
30015
|
-
|
|
30016
|
-
|
|
30017
|
-
|
|
30687
|
+
_installLazyMethods(inst, "ZodArray", {
|
|
30688
|
+
min(n, params) {
|
|
30689
|
+
return this.check(_minLength(n, params));
|
|
30690
|
+
},
|
|
30691
|
+
nonempty(params) {
|
|
30692
|
+
return this.check(_minLength(1, params));
|
|
30693
|
+
},
|
|
30694
|
+
max(n, params) {
|
|
30695
|
+
return this.check(_maxLength(n, params));
|
|
30696
|
+
},
|
|
30697
|
+
length(n, params) {
|
|
30698
|
+
return this.check(_length(n, params));
|
|
30699
|
+
},
|
|
30700
|
+
unwrap() {
|
|
30701
|
+
return this.element;
|
|
30702
|
+
}
|
|
30703
|
+
});
|
|
30018
30704
|
});
|
|
30019
30705
|
function array(element, params) {
|
|
30020
30706
|
return _array(ZodArray2, element, params);
|
|
@@ -30030,23 +30716,47 @@ var ZodObject2 = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
30030
30716
|
util_exports.defineLazy(inst, "shape", () => {
|
|
30031
30717
|
return def.shape;
|
|
30032
30718
|
});
|
|
30033
|
-
inst
|
|
30034
|
-
|
|
30035
|
-
|
|
30036
|
-
|
|
30037
|
-
|
|
30038
|
-
|
|
30039
|
-
|
|
30040
|
-
|
|
30041
|
-
|
|
30042
|
-
|
|
30043
|
-
|
|
30044
|
-
|
|
30045
|
-
|
|
30046
|
-
|
|
30047
|
-
|
|
30048
|
-
|
|
30049
|
-
|
|
30719
|
+
_installLazyMethods(inst, "ZodObject", {
|
|
30720
|
+
keyof() {
|
|
30721
|
+
return _enum2(Object.keys(this._zod.def.shape));
|
|
30722
|
+
},
|
|
30723
|
+
catchall(catchall) {
|
|
30724
|
+
return this.clone({ ...this._zod.def, catchall });
|
|
30725
|
+
},
|
|
30726
|
+
passthrough() {
|
|
30727
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
30728
|
+
},
|
|
30729
|
+
loose() {
|
|
30730
|
+
return this.clone({ ...this._zod.def, catchall: unknown() });
|
|
30731
|
+
},
|
|
30732
|
+
strict() {
|
|
30733
|
+
return this.clone({ ...this._zod.def, catchall: never() });
|
|
30734
|
+
},
|
|
30735
|
+
strip() {
|
|
30736
|
+
return this.clone({ ...this._zod.def, catchall: void 0 });
|
|
30737
|
+
},
|
|
30738
|
+
extend(incoming) {
|
|
30739
|
+
return util_exports.extend(this, incoming);
|
|
30740
|
+
},
|
|
30741
|
+
safeExtend(incoming) {
|
|
30742
|
+
return util_exports.safeExtend(this, incoming);
|
|
30743
|
+
},
|
|
30744
|
+
merge(other) {
|
|
30745
|
+
return util_exports.merge(this, other);
|
|
30746
|
+
},
|
|
30747
|
+
pick(mask) {
|
|
30748
|
+
return util_exports.pick(this, mask);
|
|
30749
|
+
},
|
|
30750
|
+
omit(mask) {
|
|
30751
|
+
return util_exports.omit(this, mask);
|
|
30752
|
+
},
|
|
30753
|
+
partial(...args) {
|
|
30754
|
+
return util_exports.partial(ZodOptional2, this, args[0]);
|
|
30755
|
+
},
|
|
30756
|
+
required(...args) {
|
|
30757
|
+
return util_exports.required(ZodNonOptional, this, args[0]);
|
|
30758
|
+
}
|
|
30759
|
+
});
|
|
30050
30760
|
});
|
|
30051
30761
|
function object(shape, params) {
|
|
30052
30762
|
const def = {
|
|
@@ -30151,6 +30861,14 @@ var ZodRecord2 = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
30151
30861
|
inst.valueType = def.valueType;
|
|
30152
30862
|
});
|
|
30153
30863
|
function record(keyType, valueType, params) {
|
|
30864
|
+
if (!valueType || !valueType._zod) {
|
|
30865
|
+
return new ZodRecord2({
|
|
30866
|
+
type: "record",
|
|
30867
|
+
keyType: string2(),
|
|
30868
|
+
valueType: keyType,
|
|
30869
|
+
...util_exports.normalizeParams(valueType)
|
|
30870
|
+
});
|
|
30871
|
+
}
|
|
30154
30872
|
return new ZodRecord2({
|
|
30155
30873
|
type: "record",
|
|
30156
30874
|
keyType,
|
|
@@ -30322,10 +31040,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
30322
31040
|
if (output instanceof Promise) {
|
|
30323
31041
|
return output.then((output2) => {
|
|
30324
31042
|
payload.value = output2;
|
|
31043
|
+
payload.fallback = true;
|
|
30325
31044
|
return payload;
|
|
30326
31045
|
});
|
|
30327
31046
|
}
|
|
30328
31047
|
payload.value = output;
|
|
31048
|
+
payload.fallback = true;
|
|
30329
31049
|
return payload;
|
|
30330
31050
|
};
|
|
30331
31051
|
});
|
|
@@ -30480,6 +31200,20 @@ function codec(in_, out, params) {
|
|
|
30480
31200
|
reverseTransform: params.encode
|
|
30481
31201
|
});
|
|
30482
31202
|
}
|
|
31203
|
+
function invertCodec(codec2) {
|
|
31204
|
+
const def = codec2._zod.def;
|
|
31205
|
+
return new ZodCodec({
|
|
31206
|
+
type: "pipe",
|
|
31207
|
+
in: def.out,
|
|
31208
|
+
out: def.in,
|
|
31209
|
+
transform: def.reverseTransform,
|
|
31210
|
+
reverseTransform: def.transform
|
|
31211
|
+
});
|
|
31212
|
+
}
|
|
31213
|
+
var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
|
|
31214
|
+
ZodPipe.init(inst, def);
|
|
31215
|
+
$ZodPreprocess.init(inst, def);
|
|
31216
|
+
});
|
|
30483
31217
|
var ZodReadonly2 = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
30484
31218
|
$ZodReadonly.init(inst, def);
|
|
30485
31219
|
ZodType2.init(inst, def);
|
|
@@ -30559,8 +31293,8 @@ function custom2(fn2, _params) {
|
|
|
30559
31293
|
function refine(fn2, _params = {}) {
|
|
30560
31294
|
return _refine(ZodCustom, fn2, _params);
|
|
30561
31295
|
}
|
|
30562
|
-
function superRefine(fn2) {
|
|
30563
|
-
return _superRefine(fn2);
|
|
31296
|
+
function superRefine(fn2, params) {
|
|
31297
|
+
return _superRefine(fn2, params);
|
|
30564
31298
|
}
|
|
30565
31299
|
var describe2 = describe;
|
|
30566
31300
|
var meta2 = meta;
|
|
@@ -30598,7 +31332,11 @@ function json(params) {
|
|
|
30598
31332
|
return jsonSchema;
|
|
30599
31333
|
}
|
|
30600
31334
|
function preprocess(fn2, schema) {
|
|
30601
|
-
return
|
|
31335
|
+
return new ZodPreprocess({
|
|
31336
|
+
type: "pipe",
|
|
31337
|
+
in: transform(fn2),
|
|
31338
|
+
out: schema
|
|
31339
|
+
});
|
|
30602
31340
|
}
|
|
30603
31341
|
|
|
30604
31342
|
// ../../node_modules/zod/v4/classic/compat.js
|
|
@@ -31019,12 +31757,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
31019
31757
|
default:
|
|
31020
31758
|
throw new Error(`Unsupported type: ${type}`);
|
|
31021
31759
|
}
|
|
31022
|
-
if (schema.description) {
|
|
31023
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
31024
|
-
}
|
|
31025
|
-
if (schema.default !== void 0) {
|
|
31026
|
-
zodSchema = zodSchema.default(schema.default);
|
|
31027
|
-
}
|
|
31028
31760
|
return zodSchema;
|
|
31029
31761
|
}
|
|
31030
31762
|
function convertSchema(schema, ctx) {
|
|
@@ -31061,6 +31793,9 @@ function convertSchema(schema, ctx) {
|
|
|
31061
31793
|
if (schema.readOnly === true) {
|
|
31062
31794
|
baseSchema = z3.readonly(baseSchema);
|
|
31063
31795
|
}
|
|
31796
|
+
if (schema.default !== void 0) {
|
|
31797
|
+
baseSchema = baseSchema.default(schema.default);
|
|
31798
|
+
}
|
|
31064
31799
|
const extraMeta = {};
|
|
31065
31800
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
31066
31801
|
for (const key of coreMetadataKeys) {
|
|
@@ -31082,23 +31817,32 @@ function convertSchema(schema, ctx) {
|
|
|
31082
31817
|
if (Object.keys(extraMeta).length > 0) {
|
|
31083
31818
|
ctx.registry.add(baseSchema, extraMeta);
|
|
31084
31819
|
}
|
|
31820
|
+
if (schema.description) {
|
|
31821
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
31822
|
+
}
|
|
31085
31823
|
return baseSchema;
|
|
31086
31824
|
}
|
|
31087
31825
|
function fromJSONSchema(schema, params) {
|
|
31088
31826
|
if (typeof schema === "boolean") {
|
|
31089
31827
|
return schema ? z3.any() : z3.never();
|
|
31090
31828
|
}
|
|
31091
|
-
|
|
31092
|
-
|
|
31829
|
+
let normalized;
|
|
31830
|
+
try {
|
|
31831
|
+
normalized = JSON.parse(JSON.stringify(schema));
|
|
31832
|
+
} catch {
|
|
31833
|
+
throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
|
|
31834
|
+
}
|
|
31835
|
+
const version3 = detectVersion(normalized, params?.defaultTarget);
|
|
31836
|
+
const defs = normalized.$defs || normalized.definitions || {};
|
|
31093
31837
|
const ctx = {
|
|
31094
31838
|
version: version3,
|
|
31095
31839
|
defs,
|
|
31096
31840
|
refs: /* @__PURE__ */ new Map(),
|
|
31097
31841
|
processing: /* @__PURE__ */ new Set(),
|
|
31098
|
-
rootSchema:
|
|
31842
|
+
rootSchema: normalized,
|
|
31099
31843
|
registry: params?.registry ?? globalRegistry
|
|
31100
31844
|
};
|
|
31101
|
-
return convertSchema(
|
|
31845
|
+
return convertSchema(normalized, ctx);
|
|
31102
31846
|
}
|
|
31103
31847
|
|
|
31104
31848
|
// ../../node_modules/zod/v4/classic/coerce.js
|
|
@@ -31322,14 +32066,14 @@ var WEBSOCKET_HUB_CHANNEL = "_hub";
|
|
|
31322
32066
|
|
|
31323
32067
|
// src/server.ts
|
|
31324
32068
|
var WebsocketHub = class {
|
|
32069
|
+
httpServer;
|
|
32070
|
+
wss;
|
|
32071
|
+
clients = /* @__PURE__ */ new Set();
|
|
32072
|
+
state = /* @__PURE__ */ new Map();
|
|
32073
|
+
logs = [];
|
|
32074
|
+
messageHandlers = [];
|
|
32075
|
+
heartbeatInterval;
|
|
31325
32076
|
constructor(config2) {
|
|
31326
|
-
__publicField(this, "httpServer");
|
|
31327
|
-
__publicField(this, "wss");
|
|
31328
|
-
__publicField(this, "clients", /* @__PURE__ */ new Set());
|
|
31329
|
-
__publicField(this, "state", /* @__PURE__ */ new Map());
|
|
31330
|
-
__publicField(this, "logs", []);
|
|
31331
|
-
__publicField(this, "messageHandlers", []);
|
|
31332
|
-
__publicField(this, "heartbeatInterval");
|
|
31333
32077
|
this.httpServer = import_node_http.default.createServer((req, res) => {
|
|
31334
32078
|
if (req.method === "GET" && req.url === "/health") {
|
|
31335
32079
|
res.writeHead(200, { "Content-Type": "application/json" });
|