@republicroad/seal-editor 1.35.1 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +637 -625
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
2
|
import { t as r } from "./utils-CX-Pz5p6.js";
|
|
3
3
|
import { i, n as a, r as o, t as s } from "./i18n-DI2s8YGH.js";
|
|
4
|
-
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as
|
|
4
|
+
import { $ as c, A as l, B as u, C as d, D as f, E as p, F as m, G as h, H as g, I as _, J as v, K as y, L as b, M as x, N as S, O as C, P as w, Q as T, R as E, S as D, T as ee, U as O, V as te, W as k, X as ne, Y as A, Z as re, _ as j, a as M, b as ie, c as N, d as ae, et as oe, f as se, g as ce, h as le, i as ue, j as de, k as fe, l as pe, m as me, n as he, o as ge, p as _e, q as ve, r as ye, s as be, t as xe, u as Se, v as Ce, w as we, x as Te, y as Ee, z as De } from "./schema-BDvVbmiV.js";
|
|
5
5
|
import * as Oe from "react";
|
|
6
6
|
import P, { Children as ke, Fragment as Ae, Suspense as je, cloneElement as Me, createContext as Ne, createRef as Pe, forwardRef as Fe, isValidElement as Ie, lazy as Le, memo as Re, useCallback as F, useContext as ze, useEffect as I, useId as Be, useImperativeHandle as Ve, useLayoutEffect as He, useMemo as L, useRef as R, useState as z, useSyncExternalStore as Ue } from "react";
|
|
7
7
|
import { Toaster as We, toast as B } from "sonner";
|
|
@@ -669,6 +669,7 @@ var $a = Oe.forwardRef(({ className: e, side: t, sideOffset: n = 0, align: i, al
|
|
|
669
669
|
return /* @__PURE__ */ U(En.Portal, {
|
|
670
670
|
container: c,
|
|
671
671
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
672
|
+
className: "z-50",
|
|
672
673
|
side: t,
|
|
673
674
|
sideOffset: n,
|
|
674
675
|
align: i,
|
|
@@ -718,6 +719,7 @@ var io = Oe.forwardRef(({ className: e, side: t = "right", sideOffset: n = 0, al
|
|
|
718
719
|
return /* @__PURE__ */ U(En.Portal, {
|
|
719
720
|
container: c,
|
|
720
721
|
children: /* @__PURE__ */ U(En.Positioner, {
|
|
722
|
+
className: "z-50",
|
|
721
723
|
side: t,
|
|
722
724
|
sideOffset: n,
|
|
723
725
|
align: i,
|
|
@@ -751,6 +753,7 @@ function so({ className: e, side: t, sideOffset: n = 4, align: i, alignOffset: a
|
|
|
751
753
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
752
754
|
container: s,
|
|
753
755
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
756
|
+
className: "z-50",
|
|
754
757
|
side: t,
|
|
755
758
|
sideOffset: n,
|
|
756
759
|
align: i,
|
|
@@ -825,6 +828,7 @@ function go({ className: e, side: t, sideOffset: n = 0, align: i, alignOffset: a
|
|
|
825
828
|
return /* @__PURE__ */ U(Dn.Portal, {
|
|
826
829
|
container: s,
|
|
827
830
|
children: /* @__PURE__ */ U(Dn.Positioner, {
|
|
831
|
+
className: "z-50",
|
|
828
832
|
side: t,
|
|
829
833
|
sideOffset: n,
|
|
830
834
|
align: i,
|
|
@@ -847,7 +851,7 @@ var _o = (e, t, n) => (e ?? []).filter((e) => !!e).map((e, r) => {
|
|
|
847
851
|
}), /* @__PURE__ */ U(n.SubContent, { children: _o(e.children, t, n) })] }, i) : /* @__PURE__ */ W(n.Item, {
|
|
848
852
|
disabled: e.disabled,
|
|
849
853
|
variant: e.danger ? "destructive" : "default",
|
|
850
|
-
|
|
854
|
+
onClick: () => (e.onClick ?? t)?.({ key: i }),
|
|
851
855
|
children: [e.icon, e.label]
|
|
852
856
|
}, i);
|
|
853
857
|
}) ?? null, vo = {
|
|
@@ -1117,32 +1121,36 @@ function zo({ ...e }) {
|
|
|
1117
1121
|
...e
|
|
1118
1122
|
});
|
|
1119
1123
|
}
|
|
1120
|
-
function Bo({ className: e,
|
|
1121
|
-
let
|
|
1124
|
+
function Bo({ className: e, positionerClassName: t, align: n = "center", alignOffset: i, side: a = "bottom", sideOffset: o = 4, ...s }) {
|
|
1125
|
+
let c = Ca();
|
|
1122
1126
|
return /* @__PURE__ */ U(kn.Portal, {
|
|
1123
|
-
container:
|
|
1127
|
+
container: c,
|
|
1124
1128
|
children: /* @__PURE__ */ U(kn.Positioner, {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
+
className: r("z-50", t),
|
|
1130
|
+
side: a,
|
|
1131
|
+
sideOffset: o,
|
|
1132
|
+
align: n,
|
|
1133
|
+
alignOffset: i,
|
|
1129
1134
|
children: /* @__PURE__ */ U(kn.Popup, {
|
|
1130
1135
|
"data-slot": "popover-content",
|
|
1131
1136
|
className: r("box-border z-50 w-fit min-w-[18rem] origin-(--transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1132
|
-
...
|
|
1137
|
+
...s
|
|
1133
1138
|
})
|
|
1134
1139
|
})
|
|
1135
1140
|
});
|
|
1136
1141
|
}
|
|
1137
1142
|
//#endregion
|
|
1138
1143
|
//#region src/components/primitives/popover.tsx
|
|
1139
|
-
var Vo = ({ open: e, onOpenChange: t, content: n,
|
|
1144
|
+
var Vo = ({ open: e, onOpenChange: t, content: n, overlayClassName: r, children: i }) => /* @__PURE__ */ W(Ro, {
|
|
1140
1145
|
open: e,
|
|
1141
1146
|
onOpenChange: t,
|
|
1142
1147
|
children: [/* @__PURE__ */ U(zo, { render: /* @__PURE__ */ U("span", {
|
|
1143
1148
|
className: "inline-flex",
|
|
1144
|
-
children:
|
|
1145
|
-
}) }), /* @__PURE__ */ U(Bo, {
|
|
1149
|
+
children: i
|
|
1150
|
+
}) }), /* @__PURE__ */ U(Bo, {
|
|
1151
|
+
positionerClassName: r,
|
|
1152
|
+
children: n
|
|
1153
|
+
})]
|
|
1146
1154
|
}), Ho = Oe.createContext({ setValue: () => {} }), Uo = Object.assign(({ value: e, disabled: t, className: n, style: i, children: a }) => {
|
|
1147
1155
|
let { value: o, setValue: s } = Oe.useContext(Ho), c = o !== void 0 && String(o) === String(e);
|
|
1148
1156
|
return /* @__PURE__ */ W("label", {
|
|
@@ -1213,25 +1221,26 @@ function Ko({ className: e, size: t = "default", children: n, ...i }) {
|
|
|
1213
1221
|
children: [n, /* @__PURE__ */ U(An.Icon, { render: /* @__PURE__ */ U(vt, { className: "size-4 opacity-50" }) })]
|
|
1214
1222
|
});
|
|
1215
1223
|
}
|
|
1216
|
-
function qo({ className: e,
|
|
1217
|
-
let
|
|
1224
|
+
function qo({ className: e, positionerClassName: t, children: n, alignItemWithTrigger: i = !0, align: a = "center", side: o = "bottom", sideOffset: s = 0, alignOffset: c, ...l }) {
|
|
1225
|
+
let u = Ca();
|
|
1218
1226
|
return /* @__PURE__ */ U(An.Portal, {
|
|
1219
|
-
container:
|
|
1227
|
+
container: u,
|
|
1220
1228
|
children: /* @__PURE__ */ U(An.Positioner, {
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1229
|
+
className: r("z-50", t),
|
|
1230
|
+
alignItemWithTrigger: i,
|
|
1231
|
+
side: o,
|
|
1232
|
+
sideOffset: s,
|
|
1233
|
+
align: a,
|
|
1234
|
+
alignOffset: c,
|
|
1226
1235
|
children: /* @__PURE__ */ W(An.Popup, {
|
|
1227
1236
|
"data-slot": "select-content",
|
|
1228
1237
|
className: r("box-border relative z-50 max-h-(--available-height) min-w-[8rem] origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md transition-[opacity,transform] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0", e),
|
|
1229
|
-
...
|
|
1238
|
+
...l,
|
|
1230
1239
|
children: [
|
|
1231
1240
|
/* @__PURE__ */ U(Yo, {}),
|
|
1232
1241
|
/* @__PURE__ */ U(An.List, {
|
|
1233
|
-
className: r("p-1",
|
|
1234
|
-
children:
|
|
1242
|
+
className: r("p-1", i && "h-(--anchor-height) w-full min-w-(--anchor-width) scroll-my-1"),
|
|
1243
|
+
children: n
|
|
1235
1244
|
}),
|
|
1236
1245
|
/* @__PURE__ */ U(Xo, {})
|
|
1237
1246
|
]
|
|
@@ -1269,17 +1278,17 @@ function Xo({ className: e, ...t }) {
|
|
|
1269
1278
|
}
|
|
1270
1279
|
//#endregion
|
|
1271
1280
|
//#region src/components/primitives/select.tsx
|
|
1272
|
-
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S,
|
|
1273
|
-
let
|
|
1281
|
+
var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onClear: o, dropdownRender: s, optionRender: c, placeholder: l, disabled: u, size: d, allowClear: f, loading: p, mode: m, tokenSeparators: h, suffixIcon: g, popupMatchSelectWidth: _, variant: v, showSearch: y, filterOption: b, optionLabelProp: x, maxCount: S, overlayClassName: C, className: w, style: T }) => {
|
|
1282
|
+
let E = e ?? [], D = t == null ? void 0 : String(t), ee = E.find((e) => String(e.value) === D);
|
|
1274
1283
|
if (m === "multiple" || m === "tags") return /* @__PURE__ */ U("input", {
|
|
1275
1284
|
value: (Array.isArray(t) ? t : []).join(", "),
|
|
1276
1285
|
placeholder: l,
|
|
1277
1286
|
disabled: u || p,
|
|
1278
1287
|
onChange: (e) => i?.(e.target.value.split(",").map((e) => e.trim()).filter(Boolean)),
|
|
1279
|
-
className: r(Ka, "w-full rounded-md border border-input shadow-xs",
|
|
1280
|
-
style:
|
|
1288
|
+
className: r(Ka, "w-full rounded-md border border-input shadow-xs", w),
|
|
1289
|
+
style: T
|
|
1281
1290
|
});
|
|
1282
|
-
let O = /* @__PURE__ */ U(H, { children:
|
|
1291
|
+
let O = /* @__PURE__ */ U(H, { children: E.map((e) => /* @__PURE__ */ U(Jo, {
|
|
1283
1292
|
value: String(e.value),
|
|
1284
1293
|
disabled: e.disabled,
|
|
1285
1294
|
children: c ? c({ data: e }) : e.label ?? String(e.value)
|
|
@@ -1287,23 +1296,24 @@ var Zo = ({ options: e, value: t, defaultValue: n, onChange: i, onSelect: a, onC
|
|
|
1287
1296
|
return /* @__PURE__ */ W("div", {
|
|
1288
1297
|
className: "relative inline-flex w-full items-center",
|
|
1289
1298
|
children: [/* @__PURE__ */ W(Wo, {
|
|
1290
|
-
value:
|
|
1299
|
+
value: D,
|
|
1291
1300
|
defaultValue: n === void 0 ? void 0 : String(n),
|
|
1292
1301
|
onValueChange: (e) => {
|
|
1293
|
-
if (f && e ===
|
|
1294
|
-
let t =
|
|
1302
|
+
if (f && e === D) return;
|
|
1303
|
+
let t = E.find((t) => String(t.value) === e) ?? {}, n = t.value ?? e;
|
|
1295
1304
|
a?.(n, t), i?.(n, t);
|
|
1296
1305
|
},
|
|
1297
1306
|
disabled: u || p,
|
|
1298
1307
|
children: [/* @__PURE__ */ U(Ko, {
|
|
1299
|
-
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!
|
|
1300
|
-
style:
|
|
1301
|
-
children: /* @__PURE__ */ U(Go, { children:
|
|
1308
|
+
className: r("w-full justify-between", d === "large" ? "h-10 text-base" : d === "small" ? "h-8 text-xs" : void 0, f && !!D && "[&>svg:last-child]:hidden", g === null && "[&>svg:last-child]:hidden", w),
|
|
1309
|
+
style: T,
|
|
1310
|
+
children: /* @__PURE__ */ U(Go, { children: ee?.label })
|
|
1302
1311
|
}), /* @__PURE__ */ U(qo, {
|
|
1303
1312
|
alignItemWithTrigger: !1,
|
|
1313
|
+
positionerClassName: C,
|
|
1304
1314
|
children: s ? s(O) : O
|
|
1305
1315
|
})]
|
|
1306
|
-
}), f &&
|
|
1316
|
+
}), f && D ? /* @__PURE__ */ W("button", {
|
|
1307
1317
|
type: "button",
|
|
1308
1318
|
"aria-label": "Clear",
|
|
1309
1319
|
onClick: () => {
|
|
@@ -1644,6 +1654,7 @@ function Cs({ className: e, sideOffset: t = 0, side: n, align: i, alignOffset: a
|
|
|
1644
1654
|
return /* @__PURE__ */ U(Fn.Portal, {
|
|
1645
1655
|
container: c,
|
|
1646
1656
|
children: /* @__PURE__ */ U(Fn.Positioner, {
|
|
1657
|
+
className: "z-50",
|
|
1647
1658
|
side: n,
|
|
1648
1659
|
sideOffset: t,
|
|
1649
1660
|
align: i,
|
|
@@ -3487,23 +3498,23 @@ function Ll(e, t, n, r = !1) {
|
|
|
3487
3498
|
})), o.body.style.cursor = c, o.documentElement.style.cursor = l);
|
|
3488
3499
|
}, D = (e) => {
|
|
3489
3500
|
T(e.clientX);
|
|
3490
|
-
},
|
|
3501
|
+
}, ee = (e) => {
|
|
3491
3502
|
E(e.clientX);
|
|
3492
|
-
},
|
|
3503
|
+
}, O = (e) => {
|
|
3493
3504
|
e.cancelable && (e.preventDefault(), e.stopPropagation()), T(Il(e, d));
|
|
3494
|
-
},
|
|
3505
|
+
}, te = (e) => {
|
|
3495
3506
|
let t = typeof d == "number" ? Fl(e.changedTouches, d) : Il(e);
|
|
3496
3507
|
typeof t == "number" && (e.cancelable && (e.preventDefault(), e.stopPropagation()), E(t));
|
|
3497
|
-
},
|
|
3508
|
+
}, k = () => {
|
|
3498
3509
|
E(S);
|
|
3499
|
-
},
|
|
3510
|
+
}, ne = () => {
|
|
3500
3511
|
E(S);
|
|
3501
|
-
},
|
|
3502
|
-
return a ? (o.addEventListener("touchmove",
|
|
3503
|
-
o.removeEventListener("touchmove",
|
|
3504
|
-
})) : (o.addEventListener("mousemove", D,
|
|
3505
|
-
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup",
|
|
3506
|
-
})), s && (s.addEventListener("blur",
|
|
3512
|
+
}, A = { passive: !1 };
|
|
3513
|
+
return a ? (o.addEventListener("touchmove", O, A), o.addEventListener("touchend", te, A), o.addEventListener("touchcancel", k), w.push(() => {
|
|
3514
|
+
o.removeEventListener("touchmove", O), o.removeEventListener("touchend", te), o.removeEventListener("touchcancel", k);
|
|
3515
|
+
})) : (o.addEventListener("mousemove", D, A), o.addEventListener("mouseup", ee, A), w.push(() => {
|
|
3516
|
+
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup", ee);
|
|
3517
|
+
})), s && (s.addEventListener("blur", ne), w.push(() => s.removeEventListener("blur", ne))), n.setColumnResizing((e) => ({
|
|
3507
3518
|
...e,
|
|
3508
3519
|
startOffset: _,
|
|
3509
3520
|
startSize: u,
|
|
@@ -4038,7 +4049,7 @@ function _u({ footerContent: e, renderHeader: t = !0 }) {
|
|
|
4038
4049
|
r.tableLayout?.columnsResizable && !a ? /* @__PURE__ */ U(Kl, {}) : null
|
|
4039
4050
|
]
|
|
4040
4051
|
}, e.id)) }),
|
|
4041
|
-
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4052
|
+
t && (r.tableLayout?.stripped || !r.tableLayout?.rowBorder) && !r.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4042
4053
|
/* @__PURE__ */ W(au, { children: [
|
|
4043
4054
|
/* @__PURE__ */ U(gu, { table: n }),
|
|
4044
4055
|
r.appendRow,
|
|
@@ -4237,32 +4248,32 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4237
4248
|
};
|
|
4238
4249
|
};
|
|
4239
4250
|
return [...i ?? [Xr], e];
|
|
4240
|
-
}, [i]), { estimateSize: D = 38, overscan:
|
|
4251
|
+
}, [i]), { estimateSize: D = 38, overscan: ee = 8, minRows: O = 1, scrollElementRef: te } = f ?? {}, k = m.getRowModel().rows.length, ne = f != null && k >= O, [A, re] = z(null);
|
|
4241
4252
|
I(() => {
|
|
4242
|
-
f &&
|
|
4253
|
+
f && re(te?.current ?? yu(g.current));
|
|
4243
4254
|
}, [
|
|
4244
4255
|
f,
|
|
4245
|
-
|
|
4246
|
-
|
|
4256
|
+
te,
|
|
4257
|
+
ne
|
|
4247
4258
|
]);
|
|
4248
|
-
let [
|
|
4259
|
+
let [j, M] = z(0);
|
|
4249
4260
|
I(() => {
|
|
4250
|
-
if (!
|
|
4261
|
+
if (!ne || !A || A.offsetHeight > 0) return;
|
|
4251
4262
|
let e, t = 0, n = () => {
|
|
4252
|
-
if (
|
|
4263
|
+
if (A.offsetHeight > 0) {
|
|
4253
4264
|
M((e) => e + 1);
|
|
4254
4265
|
return;
|
|
4255
4266
|
}
|
|
4256
4267
|
++t > 100 || (e = setTimeout(n, 120));
|
|
4257
4268
|
};
|
|
4258
4269
|
return e = setTimeout(n, 120), () => clearTimeout(e);
|
|
4259
|
-
}, [
|
|
4260
|
-
if (
|
|
4261
|
-
|
|
4262
|
-
let e = setTimeout(() =>
|
|
4270
|
+
}, [ne, A]), I(() => {
|
|
4271
|
+
if (j > 0 && A) {
|
|
4272
|
+
re(null);
|
|
4273
|
+
let e = setTimeout(() => re(A), 0);
|
|
4263
4274
|
return () => clearTimeout(e);
|
|
4264
4275
|
}
|
|
4265
|
-
}, [
|
|
4276
|
+
}, [j]);
|
|
4266
4277
|
let ie = F((e, t, n) => {
|
|
4267
4278
|
if (t?.borderBoxSize?.[0] && t.borderBoxSize[0].blockSize === 0) {
|
|
4268
4279
|
let t = n.indexFromElement(e), r = n.options.getItemKey(t);
|
|
@@ -4272,20 +4283,20 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4272
4283
|
}, []), [N, ae] = z(null), oe = R(null);
|
|
4273
4284
|
oe.current = N;
|
|
4274
4285
|
let se = $r({
|
|
4275
|
-
count:
|
|
4276
|
-
getScrollElement: () =>
|
|
4286
|
+
count: ne ? k : 0,
|
|
4287
|
+
getScrollElement: () => A,
|
|
4277
4288
|
getItemKey: (e) => String(t[e] ?? e),
|
|
4278
4289
|
estimateSize: () => D,
|
|
4279
|
-
overscan:
|
|
4290
|
+
overscan: ee,
|
|
4280
4291
|
measureElement: ie,
|
|
4281
4292
|
rangeExtractor: F((e) => bu(e, Zr, oe.current), [])
|
|
4282
4293
|
});
|
|
4283
4294
|
return I(() => {
|
|
4284
|
-
if (p) return p.current =
|
|
4295
|
+
if (p) return p.current = ne ? se : null, () => {
|
|
4285
4296
|
p.current = null;
|
|
4286
4297
|
};
|
|
4287
4298
|
}, [
|
|
4288
|
-
|
|
4299
|
+
ne,
|
|
4289
4300
|
se,
|
|
4290
4301
|
p
|
|
4291
4302
|
]), /* @__PURE__ */ W(Jn, {
|
|
@@ -4320,14 +4331,14 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4320
4331
|
}, t);
|
|
4321
4332
|
}), /* @__PURE__ */ U(Kl, {})]
|
|
4322
4333
|
}, t)) }),
|
|
4323
|
-
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4334
|
+
(h.tableLayout?.stripped || !h.tableLayout?.rowBorder) && !h.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4324
4335
|
/* @__PURE__ */ U(au, { children: /* @__PURE__ */ U(Tu, {
|
|
4325
4336
|
table: m,
|
|
4326
4337
|
dataIds: t,
|
|
4327
4338
|
renderRowDecoration: o,
|
|
4328
4339
|
dropIndicator: s,
|
|
4329
4340
|
sortingStrategy: a,
|
|
4330
|
-
virtualWindow:
|
|
4341
|
+
virtualWindow: ne ? {
|
|
4331
4342
|
items: se.getVirtualItems(),
|
|
4332
4343
|
totalSize: se.getTotalSize(),
|
|
4333
4344
|
measureRowRef: (e) => se.measureElement(e)
|
|
@@ -4483,9 +4494,9 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4483
4494
|
if (a === 0 || o === 0) return;
|
|
4484
4495
|
let s = e.clientY - n.startY;
|
|
4485
4496
|
t.scrollTop = Mu(n.startScrollTop + s / a * o, 0, o);
|
|
4486
|
-
},
|
|
4497
|
+
}, ee = (e) => {
|
|
4487
4498
|
u.current?.pointerId === e.pointerId && x();
|
|
4488
|
-
},
|
|
4499
|
+
}, O = (e) => {
|
|
4489
4500
|
let { thumbHeight: t } = d.current;
|
|
4490
4501
|
if (e.target !== e.currentTarget) return;
|
|
4491
4502
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -4541,14 +4552,14 @@ function Iu({ children: e, className: t, orientation: n = "both", ...i }) {
|
|
|
4541
4552
|
className: "pointer-events-none absolute inset-e-0 top-(--data-grid-scrollbar-header-height) z-20 h-(--data-grid-scrollbar-track-height)",
|
|
4542
4553
|
children: /* @__PURE__ */ U("div", {
|
|
4543
4554
|
className: "pointer-events-auto relative h-full w-1.5 touch-none p-px",
|
|
4544
|
-
onPointerDown:
|
|
4555
|
+
onPointerDown: O,
|
|
4545
4556
|
children: /* @__PURE__ */ U("div", {
|
|
4546
4557
|
className: r("bg-border absolute end-px w-1.5", "top-(--data-grid-scrollbar-thumb-top) h-(--data-grid-scrollbar-thumb-height)", "rounded-full"),
|
|
4547
4558
|
onLostPointerCapture: x,
|
|
4548
|
-
onPointerCancel:
|
|
4559
|
+
onPointerCancel: ee,
|
|
4549
4560
|
onPointerDown: E,
|
|
4550
4561
|
onPointerMove: D,
|
|
4551
|
-
onPointerUp:
|
|
4562
|
+
onPointerUp: ee
|
|
4552
4563
|
})
|
|
4553
4564
|
})
|
|
4554
4565
|
})]
|
|
@@ -4720,32 +4731,32 @@ function Ju({ table: e, topRows: t, centerRows: n, bottomRows: r, virtualItems:
|
|
|
4720
4731
|
}
|
|
4721
4732
|
var Yu = Re(Ju, (e, t) => !!t.table.state.columnResizing.isResizingColumn || t.table._isSelectingCells === !0);
|
|
4722
4733
|
function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior: r = "auto", scrollToRowAlign: i = "auto", scrollToRowIndex: a, columnVirtualizerOptions: o, scrollToColumnAlign: s = "auto", scrollToColumnIndex: c, footerContent: l, renderHeader: u = !0, onFetchMore: d, isFetchingMore: f = !1, hasMore: p, fetchMoreOffset: m = 0, virtualizerOptions: h }) {
|
|
4723
|
-
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D,
|
|
4734
|
+
let { i18n: g, table: _, props: v } = xl(), y = Hl(_), b = Ul(_), x = _.getCenterVisibleLeafColumns(), S = o?.enabled === !0 && v.tableLayout?.width !== "auto" && y.length === 1 && (y[0]?.headers.every((e) => e.colSpan <= 1) ?? !1), { topRows: C, centerRows: w, bottomRows: T } = Rl(_, v.tableLayout?.rowsPinnable), E = typeof d == "function", [D, ee] = z({
|
|
4724
4735
|
containerElement: null,
|
|
4725
4736
|
scrollElement: null
|
|
4726
|
-
}), { estimateSize:
|
|
4727
|
-
|
|
4737
|
+
}), { estimateSize: O, getItemKey: te, getScrollElement: k, measureElement: ne, overscan: A, ...re } = h ?? {}, j = h?.enabled !== !1, M = v.fetchingMoreMessage || v.loadingMessage || g.labels.loading, ie = v.allRowsLoadedMessage || g.labels.allRowsLoaded, N = F((e) => {
|
|
4738
|
+
ee({
|
|
4728
4739
|
containerElement: e,
|
|
4729
4740
|
scrollElement: e ? Nl(e) ?? e : null
|
|
4730
4741
|
});
|
|
4731
|
-
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() =>
|
|
4742
|
+
}, []), ae = D.scrollElement !== null && D.scrollElement !== D.containerElement, oe = F(() => k ? k(D) : D.scrollElement, [k, D]), se = F((e) => {
|
|
4732
4743
|
let t = w[e];
|
|
4733
|
-
return t ?
|
|
4734
|
-
}, [w,
|
|
4744
|
+
return t ? te?.(e, t) ?? t.id ?? e : e;
|
|
4745
|
+
}, [w, te]), ce = F((e) => {
|
|
4735
4746
|
let n = w[e];
|
|
4736
|
-
return n ?
|
|
4747
|
+
return n ? O?.(e, n) ?? t : t;
|
|
4737
4748
|
}, [
|
|
4738
4749
|
w,
|
|
4739
|
-
|
|
4750
|
+
O,
|
|
4740
4751
|
t
|
|
4741
4752
|
]), le = $r({
|
|
4742
4753
|
count: w.length,
|
|
4743
4754
|
getScrollElement: oe,
|
|
4744
4755
|
getItemKey: se,
|
|
4745
4756
|
estimateSize: ce,
|
|
4746
|
-
overscan:
|
|
4747
|
-
measureElement:
|
|
4748
|
-
...
|
|
4757
|
+
overscan: A ?? n,
|
|
4758
|
+
measureElement: ne,
|
|
4759
|
+
...re
|
|
4749
4760
|
}), ue = L(() => D.containerElement ? getComputedStyle(D.containerElement).direction === "rtl" : !1, [D.containerElement]), de = F((e) => x[e]?.id ?? e, [x]), fe = F((e) => x[e]?.getSize() ?? 0, [x]), pe = $r({
|
|
4750
4761
|
horizontal: !0,
|
|
4751
4762
|
isRtl: ue,
|
|
@@ -4768,7 +4779,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4768
4779
|
let me = S ? pe.getVirtualItems() : [], he = S && me.length > 0 ? {
|
|
4769
4780
|
start: me[0].index,
|
|
4770
4781
|
end: me[me.length - 1].index
|
|
4771
|
-
} : void 0, ge =
|
|
4782
|
+
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j && ne ? le.measureElement : void 0, ye = Math.max(0, m), be = a === void 0 ? void 0 : w[a]?.id, xe = j && a !== void 0 ? ge.find((e) => e.index === a) : void 0, Se = R(null), Ce = R(null), we = R(null), Te = R(null);
|
|
4772
4783
|
I(() => {
|
|
4773
4784
|
if (!S || c === void 0 || c < 0 || c >= x.length || !D.scrollElement) return;
|
|
4774
4785
|
let e = {
|
|
@@ -4799,7 +4810,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4799
4810
|
behavior: "auto",
|
|
4800
4811
|
scrollElement: e,
|
|
4801
4812
|
targetTop: e.scrollTop,
|
|
4802
|
-
virtualizer:
|
|
4813
|
+
virtualizer: j ? le : void 0
|
|
4803
4814
|
});
|
|
4804
4815
|
}
|
|
4805
4816
|
return;
|
|
@@ -4811,7 +4822,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4811
4822
|
behavior: r,
|
|
4812
4823
|
containerElement: n,
|
|
4813
4824
|
headerSticky: o,
|
|
4814
|
-
isVirtualizationEnabled:
|
|
4825
|
+
isVirtualizationEnabled: j,
|
|
4815
4826
|
rowId: be,
|
|
4816
4827
|
rowIndex: a,
|
|
4817
4828
|
scrollElement: t
|
|
@@ -4825,18 +4836,18 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4825
4836
|
headerSticky: o,
|
|
4826
4837
|
rowIndex: a,
|
|
4827
4838
|
scrollElement: t,
|
|
4828
|
-
virtualizer:
|
|
4839
|
+
virtualizer: j ? le : void 0
|
|
4829
4840
|
})) {
|
|
4830
4841
|
Ce.current = s;
|
|
4831
4842
|
return;
|
|
4832
4843
|
}
|
|
4833
|
-
|
|
4844
|
+
j && (Se.current = a, Ce.current = s, le.scrollToIndex(a, {
|
|
4834
4845
|
align: i,
|
|
4835
4846
|
behavior: r
|
|
4836
4847
|
}));
|
|
4837
4848
|
}
|
|
4838
4849
|
}), I(() => {
|
|
4839
|
-
|
|
4850
|
+
j && a !== void 0 && Se.current === a && xe && Hu({
|
|
4840
4851
|
align: i,
|
|
4841
4852
|
behavior: "auto",
|
|
4842
4853
|
cancelPendingScroll: !0,
|
|
@@ -4847,7 +4858,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4847
4858
|
virtualizer: le
|
|
4848
4859
|
}) && (Se.current = null);
|
|
4849
4860
|
}, [
|
|
4850
|
-
|
|
4861
|
+
j,
|
|
4851
4862
|
v.tableLayout?.headerSticky,
|
|
4852
4863
|
u,
|
|
4853
4864
|
oe,
|
|
@@ -4857,7 +4868,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4857
4868
|
le,
|
|
4858
4869
|
D.containerElement
|
|
4859
4870
|
]), I(() => {
|
|
4860
|
-
if (!
|
|
4871
|
+
if (!j || !E || p === !1 || f) return;
|
|
4861
4872
|
let e = ge[ge.length - 1];
|
|
4862
4873
|
e && we.current !== w.length && e.index >= w.length - 1 - ye && (we.current = w.length, d?.());
|
|
4863
4874
|
}, [
|
|
@@ -4865,7 +4876,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4865
4876
|
p,
|
|
4866
4877
|
f,
|
|
4867
4878
|
E,
|
|
4868
|
-
|
|
4879
|
+
j,
|
|
4869
4880
|
d,
|
|
4870
4881
|
ye,
|
|
4871
4882
|
ge
|
|
@@ -4928,7 +4939,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4928
4939
|
},
|
|
4929
4940
|
children: /* @__PURE__ */ W(Yl, { children: [
|
|
4930
4941
|
Ee,
|
|
4931
|
-
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && /* @__PURE__ */ U(iu, {}),
|
|
4942
|
+
u && (v.tableLayout?.stripped || !v.tableLayout?.rowBorder) && !v.tableLayout?.headerSticky && /* @__PURE__ */ U(iu, {}),
|
|
4932
4943
|
/* @__PURE__ */ W(au, { children: [
|
|
4933
4944
|
/* @__PURE__ */ U(Yu, {
|
|
4934
4945
|
table: _,
|
|
@@ -4937,7 +4948,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4937
4948
|
bottomRows: T,
|
|
4938
4949
|
virtualItems: ge,
|
|
4939
4950
|
totalSize: _e,
|
|
4940
|
-
isVirtualizationEnabled:
|
|
4951
|
+
isVirtualizationEnabled: j,
|
|
4941
4952
|
isInfiniteMode: E,
|
|
4942
4953
|
isFetchingMore: f,
|
|
4943
4954
|
hasMore: p,
|
|
@@ -6818,7 +6829,7 @@ var Xd = (e, t) => {
|
|
|
6818
6829
|
operator: { type: t },
|
|
6819
6830
|
value: yf(t, e)
|
|
6820
6831
|
});
|
|
6821
|
-
}, [_]),
|
|
6832
|
+
}, [_]), ee = F((e) => {
|
|
6822
6833
|
let t = g.kind === "simple" ? g.value : null, n = (e) => t?.type === e, r = q(e).with(K.when((e) => mf.includes(e)), () => null).with("between", () => n("interval") ? t : yf(e, T)).with("in", "notIn", () => n("stringArray") || n("numberArray") ? t : yf(e, T)).with("dateAfter", "dateBefore", "dateSame", "dateSameOrAfter", "dateSameOrBefore", () => n("date") ? t : yf(e, T)).with("timeGt", "timeGte", "timeLt", "timeLte", () => n("time") ? t : yf(e, T)).with("dayOfWeekIn", "quarterIn", () => n("intArray") ? t : yf(e, T)).with("startsWith", "endsWith", "contains", () => n("string") ? t : yf(e, T)).otherwise(() => n(T === "number" ? "number" : T === "boolean" ? "boolean" : "string") ? t : yf(e, T));
|
|
6823
6834
|
_({
|
|
6824
6835
|
kind: "simple",
|
|
@@ -6829,12 +6840,12 @@ var Xd = (e, t) => {
|
|
|
6829
6840
|
g,
|
|
6830
6841
|
T,
|
|
6831
6842
|
_
|
|
6832
|
-
]),
|
|
6833
|
-
b(!1),
|
|
6834
|
-
}, [
|
|
6843
|
+
]), O = F((e) => {
|
|
6844
|
+
b(!1), ee(e);
|
|
6845
|
+
}, [ee, b]), te = {
|
|
6835
6846
|
kind: T,
|
|
6836
6847
|
operator: g.kind === "simple" ? g.operator.type : "eq",
|
|
6837
|
-
onSelect:
|
|
6848
|
+
onSelect: O,
|
|
6838
6849
|
onKindChange: h ? D : void 0,
|
|
6839
6850
|
onCustomToggle: x,
|
|
6840
6851
|
disabled: n
|
|
@@ -6844,7 +6855,7 @@ var Xd = (e, t) => {
|
|
|
6844
6855
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6845
6856
|
style: l,
|
|
6846
6857
|
children: [/* @__PURE__ */ U(xf, {
|
|
6847
|
-
...
|
|
6858
|
+
...te,
|
|
6848
6859
|
isCustom: !0
|
|
6849
6860
|
}), /* @__PURE__ */ U(qd, {
|
|
6850
6861
|
className: "min-w-[40px] flex-1 max-h-[var(--b-max-height)] overflow-y-auto",
|
|
@@ -6862,28 +6873,28 @@ var Xd = (e, t) => {
|
|
|
6862
6873
|
placeholder: w("expression.placeholder")
|
|
6863
6874
|
})]
|
|
6864
6875
|
});
|
|
6865
|
-
let
|
|
6876
|
+
let k = g.operator.type;
|
|
6866
6877
|
return /* @__PURE__ */ W("div", {
|
|
6867
6878
|
ref: s,
|
|
6868
6879
|
className: "flex items-start gap-1 min-h-[var(--b-height)] text-[var(--b-font-size)] leading-[var(--b-line-height)]",
|
|
6869
6880
|
style: l,
|
|
6870
6881
|
children: [/* @__PURE__ */ U(xf, {
|
|
6871
|
-
...
|
|
6872
|
-
operator:
|
|
6873
|
-
}), mf.includes(
|
|
6882
|
+
...te,
|
|
6883
|
+
operator: k
|
|
6884
|
+
}), mf.includes(k) ? k !== "any" && /* @__PURE__ */ U("span", {
|
|
6874
6885
|
className: "text-xs leading-[var(--b-height)] text-[var(--muted-foreground)]",
|
|
6875
|
-
children: df(
|
|
6886
|
+
children: df(k).label
|
|
6876
6887
|
}) : m ? /* @__PURE__ */ U(If, {
|
|
6877
6888
|
value: g.value,
|
|
6878
6889
|
onChange: v,
|
|
6879
|
-
operator:
|
|
6890
|
+
operator: k,
|
|
6880
6891
|
options: d,
|
|
6881
6892
|
loose: f,
|
|
6882
6893
|
disabled: n
|
|
6883
6894
|
}) : /* @__PURE__ */ U(Tf, {
|
|
6884
6895
|
value: g.value,
|
|
6885
6896
|
onChange: v,
|
|
6886
|
-
operator:
|
|
6897
|
+
operator: k,
|
|
6887
6898
|
kind: T,
|
|
6888
6899
|
disabled: n
|
|
6889
6900
|
})]
|
|
@@ -7408,16 +7419,16 @@ var Xd = (e, t) => {
|
|
|
7408
7419
|
className: "mb-1.5 block text-xs font-medium text-muted-foreground",
|
|
7409
7420
|
children: e
|
|
7410
7421
|
}), pp = ({ value: e, onChange: t, onRemove: n, disabled: r, variableType: i, inputData: a, referenceData: s, fieldType: c, mode: l = "edit", trigger: u, onCreate: d }) => {
|
|
7411
|
-
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"),
|
|
7422
|
+
let f = Ac((e) => e.dictionaries) ?? {}, p = Ac((e) => e.mode) === "business", m = Ac((e) => e.inputVariableType), h = L(() => ed(m), [m]), g = L(() => ep(h), [h]), [_, v] = z(!1), [y, b] = z(!1), x = o(), [S, C] = z(""), [w, T] = z(e), [E, D] = z(c?.type ?? "any"), ee = c?.type === "string" ? c.enum : void 0, [O, te] = z(ap(ee)), [k, ne] = z(ee?.type === "inline" ? sp(ee.values) : ""), [A, re] = z(ee?.type === "ref" ? ee.ref : ""), [j, M] = z(ee?.loose ?? !1), ie = R(null), N = R(null);
|
|
7412
7423
|
I(() => {
|
|
7413
7424
|
if (y) {
|
|
7414
|
-
if (l === "create") C(""), T(""), D("any"),
|
|
7425
|
+
if (l === "create") C(""), T(""), D("any"), te("none"), ne(""), re(""), M(!1), setTimeout(() => {
|
|
7415
7426
|
ie.current?.codeMirror?.focus();
|
|
7416
7427
|
});
|
|
7417
7428
|
else {
|
|
7418
7429
|
T(e), D(c?.type ?? "any");
|
|
7419
7430
|
let t = c?.type === "string" ? c.enum : void 0;
|
|
7420
|
-
if (
|
|
7431
|
+
if (te(ap(t)), ne(t?.type === "inline" ? sp(t.values) : ""), re(t?.type === "ref" ? t.ref : ""), M(t?.loose ?? !1), !ie.current) return;
|
|
7421
7432
|
setTimeout(() => {
|
|
7422
7433
|
ie.current.codeMirror?.focus();
|
|
7423
7434
|
let e = ie.current.querySelector(".cm-content"), t = window.getSelection();
|
|
@@ -7431,17 +7442,17 @@ var Xd = (e, t) => {
|
|
|
7431
7442
|
if (E !== "any") {
|
|
7432
7443
|
if (E === "string") {
|
|
7433
7444
|
let e;
|
|
7434
|
-
if (
|
|
7435
|
-
let t = op(
|
|
7445
|
+
if (O === "inline") {
|
|
7446
|
+
let t = op(k);
|
|
7436
7447
|
t.length && (e = {
|
|
7437
7448
|
type: "inline",
|
|
7438
7449
|
values: t,
|
|
7439
|
-
...
|
|
7450
|
+
...j ? { loose: !0 } : {}
|
|
7440
7451
|
});
|
|
7441
|
-
} else
|
|
7452
|
+
} else O === "ref" && A && (e = {
|
|
7442
7453
|
type: "ref",
|
|
7443
|
-
ref:
|
|
7444
|
-
...
|
|
7454
|
+
ref: A,
|
|
7455
|
+
...j ? { loose: !0 } : {}
|
|
7445
7456
|
});
|
|
7446
7457
|
return {
|
|
7447
7458
|
type: "string",
|
|
@@ -7537,15 +7548,15 @@ var Xd = (e, t) => {
|
|
|
7537
7548
|
/* @__PURE__ */ U(fp, { children: "Enum" }),
|
|
7538
7549
|
/* @__PURE__ */ U(up, {
|
|
7539
7550
|
options: Object.keys(f).length ? ip : ip.filter((e) => e.value !== "ref"),
|
|
7540
|
-
value:
|
|
7541
|
-
onChange:
|
|
7551
|
+
value: O,
|
|
7552
|
+
onChange: te,
|
|
7542
7553
|
disabled: r
|
|
7543
7554
|
}),
|
|
7544
|
-
|
|
7555
|
+
O === "inline" && /* @__PURE__ */ W("div", { children: [/* @__PURE__ */ U(od, {
|
|
7545
7556
|
maxRows: 6,
|
|
7546
7557
|
placeholder: "United States;us\nCanada;ca\nMexico",
|
|
7547
|
-
value:
|
|
7548
|
-
onChange: (e) =>
|
|
7558
|
+
value: k,
|
|
7559
|
+
onChange: (e) => ne(e.target.value),
|
|
7549
7560
|
disabled: r,
|
|
7550
7561
|
className: "text-xs"
|
|
7551
7562
|
}), /* @__PURE__ */ W("span", {
|
|
@@ -7556,9 +7567,9 @@ var Xd = (e, t) => {
|
|
|
7556
7567
|
" format."
|
|
7557
7568
|
]
|
|
7558
7569
|
})] }),
|
|
7559
|
-
|
|
7560
|
-
value:
|
|
7561
|
-
onChange:
|
|
7570
|
+
O === "ref" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Zo, {
|
|
7571
|
+
value: A || void 0,
|
|
7572
|
+
onChange: re,
|
|
7562
7573
|
placeholder: x("dt.field.selectDictionary"),
|
|
7563
7574
|
disabled: r,
|
|
7564
7575
|
className: "w-full",
|
|
@@ -7568,8 +7579,8 @@ var Xd = (e, t) => {
|
|
|
7568
7579
|
value: e
|
|
7569
7580
|
}))
|
|
7570
7581
|
}) }),
|
|
7571
|
-
|
|
7572
|
-
checked:
|
|
7582
|
+
O !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7583
|
+
checked: j,
|
|
7573
7584
|
onChange: (e) => M(e.target.checked),
|
|
7574
7585
|
disabled: r,
|
|
7575
7586
|
children: /* @__PURE__ */ U("span", {
|
|
@@ -7587,21 +7598,21 @@ var Xd = (e, t) => {
|
|
|
7587
7598
|
}), hp = (e) => {
|
|
7588
7599
|
if (e && (e.type === "string" || e.type === "string-array")) return e.enum;
|
|
7589
7600
|
}, gp = ({ disabled: e, value: t, onChange: n, onRemove: r, fieldType: i, mode: a = "edit", trigger: s, onCreate: c }) => {
|
|
7590
|
-
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D,
|
|
7601
|
+
let l = Ac((e) => e.dictionaries) ?? {}, u = Ac((e) => e.mode) === "business", [d, f] = z(!1), p = o(), [m, h] = z(""), [g, _] = z(t), [v, y] = z(i?.type ?? "auto"), b = hp(i), [x, S] = z(ap(b)), [C, w] = z(b?.type === "inline" ? sp(b.values) : ""), [T, E] = z(b?.type === "ref" ? b.ref : ""), [D, ee] = z(b?.loose ?? !1), O = R(null), te = R(null);
|
|
7591
7602
|
I(() => {
|
|
7592
7603
|
if (d) {
|
|
7593
|
-
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""),
|
|
7594
|
-
|
|
7604
|
+
if (a === "create") h(""), _(""), y("auto"), S("none"), w(""), E(""), ee(!1), setTimeout(() => {
|
|
7605
|
+
O.current?.focus();
|
|
7595
7606
|
});
|
|
7596
7607
|
else {
|
|
7597
7608
|
_(t), y(i?.type ?? "auto");
|
|
7598
7609
|
let e = hp(i);
|
|
7599
|
-
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""),
|
|
7600
|
-
|
|
7610
|
+
if (S(ap(e)), w(e?.type === "inline" ? sp(e.values) : ""), E(e?.type === "ref" ? e.ref : ""), ee(e?.loose ?? !1), !O.current) return;
|
|
7611
|
+
O.current.focus(), O.current.select();
|
|
7601
7612
|
}
|
|
7602
7613
|
}
|
|
7603
7614
|
}, [d]);
|
|
7604
|
-
let
|
|
7615
|
+
let k = v === "string" || v === "string-array", ne = () => {
|
|
7605
7616
|
if (!u) return i?.type === "auto" ? void 0 : i;
|
|
7606
7617
|
if (v !== "auto") {
|
|
7607
7618
|
if (v === "string" || v === "string-array") {
|
|
@@ -7629,7 +7640,7 @@ var Xd = (e, t) => {
|
|
|
7629
7640
|
return /* @__PURE__ */ W(lp, {
|
|
7630
7641
|
value: t,
|
|
7631
7642
|
onSubmit: () => {
|
|
7632
|
-
a === "create" ? c?.(m || "Output", g ?? "output",
|
|
7643
|
+
a === "create" ? c?.(m || "Output", g ?? "output", ne()) : n?.(g ?? "", ne()), f(!1);
|
|
7633
7644
|
},
|
|
7634
7645
|
onRemove: r,
|
|
7635
7646
|
disabled: e,
|
|
@@ -7642,7 +7653,7 @@ var Xd = (e, t) => {
|
|
|
7642
7653
|
/* @__PURE__ */ W("div", {
|
|
7643
7654
|
className: "space-y-1.5",
|
|
7644
7655
|
children: [/* @__PURE__ */ U(mp, { children: p("dt.field.output.label") }), /* @__PURE__ */ U(Do, {
|
|
7645
|
-
ref:
|
|
7656
|
+
ref: O,
|
|
7646
7657
|
value: g,
|
|
7647
7658
|
onChange: (e) => _(e.target.value),
|
|
7648
7659
|
readOnly: e,
|
|
@@ -7652,7 +7663,7 @@ var Xd = (e, t) => {
|
|
|
7652
7663
|
a === "create" && /* @__PURE__ */ W("div", {
|
|
7653
7664
|
className: "space-y-1.5",
|
|
7654
7665
|
children: [/* @__PURE__ */ U(mp, { children: "Label" }), /* @__PURE__ */ U(Do, {
|
|
7655
|
-
ref:
|
|
7666
|
+
ref: te,
|
|
7656
7667
|
value: m,
|
|
7657
7668
|
onChange: (e) => h(e.target.value),
|
|
7658
7669
|
placeholder: p("dt.field.label"),
|
|
@@ -7669,7 +7680,7 @@ var Xd = (e, t) => {
|
|
|
7669
7680
|
disabled: e
|
|
7670
7681
|
})]
|
|
7671
7682
|
}),
|
|
7672
|
-
u &&
|
|
7683
|
+
u && k && /* @__PURE__ */ W("div", {
|
|
7673
7684
|
className: "space-y-2",
|
|
7674
7685
|
children: [
|
|
7675
7686
|
/* @__PURE__ */ U(mp, { children: "Enum" }),
|
|
@@ -7708,7 +7719,7 @@ var Xd = (e, t) => {
|
|
|
7708
7719
|
}) }),
|
|
7709
7720
|
x !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7710
7721
|
checked: D,
|
|
7711
|
-
onChange: (e) =>
|
|
7722
|
+
onChange: (e) => ee(e.target.checked),
|
|
7712
7723
|
disabled: e,
|
|
7713
7724
|
children: /* @__PURE__ */ U("span", {
|
|
7714
7725
|
className: "text-xs",
|
|
@@ -7994,7 +8005,7 @@ var Xd = (e, t) => {
|
|
|
7994
8005
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
7995
8006
|
});
|
|
7996
8007
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
7997
|
-
}, [c, v]),
|
|
8008
|
+
}, [c, v]), ee = F((e, t, n) => {
|
|
7998
8009
|
let r = {
|
|
7999
8010
|
id: crypto.randomUUID(),
|
|
8000
8011
|
name: e,
|
|
@@ -8007,7 +8018,7 @@ var Xd = (e, t) => {
|
|
|
8007
8018
|
return r === e.toLowerCase() || r === t.toLowerCase();
|
|
8008
8019
|
});
|
|
8009
8020
|
a && (r.excelHeaderId = a.id), l((e) => [...e, r]);
|
|
8010
|
-
}, [c, v]),
|
|
8021
|
+
}, [c, v]), O = F(() => {
|
|
8011
8022
|
i && t(yp({
|
|
8012
8023
|
spreadSheetData: i,
|
|
8013
8024
|
columns: c,
|
|
@@ -8024,12 +8035,12 @@ var Xd = (e, t) => {
|
|
|
8024
8035
|
g,
|
|
8025
8036
|
m,
|
|
8026
8037
|
t
|
|
8027
|
-
]),
|
|
8038
|
+
]), te = /* @__PURE__ */ U(Y, {
|
|
8028
8039
|
type: "text",
|
|
8029
8040
|
size: "small",
|
|
8030
8041
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
8031
8042
|
children: "Add Input"
|
|
8032
|
-
}),
|
|
8043
|
+
}), k = /* @__PURE__ */ U(Y, {
|
|
8033
8044
|
type: "text",
|
|
8034
8045
|
size: "small",
|
|
8035
8046
|
icon: /* @__PURE__ */ U(sn, {}),
|
|
@@ -8041,7 +8052,7 @@ var Xd = (e, t) => {
|
|
|
8041
8052
|
centered: !0,
|
|
8042
8053
|
open: !!i,
|
|
8043
8054
|
okButtonProps: { disabled: C },
|
|
8044
|
-
onOk:
|
|
8055
|
+
onOk: O,
|
|
8045
8056
|
onCancel: n,
|
|
8046
8057
|
destroyOnClose: !0,
|
|
8047
8058
|
width: 900,
|
|
@@ -8064,7 +8075,7 @@ var Xd = (e, t) => {
|
|
|
8064
8075
|
mode: "create",
|
|
8065
8076
|
variableType: s,
|
|
8066
8077
|
onCreate: D,
|
|
8067
|
-
trigger:
|
|
8078
|
+
trigger: te
|
|
8068
8079
|
})]
|
|
8069
8080
|
}),
|
|
8070
8081
|
/* @__PURE__ */ U("div", {
|
|
@@ -8112,8 +8123,8 @@ var Xd = (e, t) => {
|
|
|
8112
8123
|
children: "Outputs"
|
|
8113
8124
|
}), /* @__PURE__ */ U(gp, {
|
|
8114
8125
|
mode: "create",
|
|
8115
|
-
onCreate:
|
|
8116
|
-
trigger:
|
|
8126
|
+
onCreate: ee,
|
|
8127
|
+
trigger: k
|
|
8117
8128
|
})]
|
|
8118
8129
|
}),
|
|
8119
8130
|
/* @__PURE__ */ U("div", {
|
|
@@ -9071,7 +9082,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9071
9082
|
if ((e.metaKey || e.ctrlKey) && !e.altKey && t) {
|
|
9072
9083
|
let t = e.key === "c" || e.key === "C" || e.code === "KeyC", n = e.key === "x" || e.key === "X" || e.code === "KeyX";
|
|
9073
9084
|
if (t || n) {
|
|
9074
|
-
e.preventDefault(),
|
|
9085
|
+
e.preventDefault(), ee().then((e) => {
|
|
9075
9086
|
if (!e || (r.props.onCellsCopy?.({
|
|
9076
9087
|
...e,
|
|
9077
9088
|
cut: n
|
|
@@ -9175,7 +9186,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9175
9186
|
return;
|
|
9176
9187
|
}
|
|
9177
9188
|
e.key === " " && i.getFocusedCell() && e.preventDefault();
|
|
9178
|
-
},
|
|
9189
|
+
}, ee = async () => {
|
|
9179
9190
|
let e = Lp(p(), f);
|
|
9180
9191
|
if (!e) return null;
|
|
9181
9192
|
let t = Tp(e);
|
|
@@ -9204,7 +9215,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9204
9215
|
text: t,
|
|
9205
9216
|
grid: e
|
|
9206
9217
|
} : null;
|
|
9207
|
-
},
|
|
9218
|
+
}, O = (e, t) => {
|
|
9208
9219
|
let n = Lp(p(), f);
|
|
9209
9220
|
if (!n || !e.clipboardData) return !1;
|
|
9210
9221
|
e.preventDefault();
|
|
@@ -9214,15 +9225,15 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9214
9225
|
grid: n,
|
|
9215
9226
|
cut: t
|
|
9216
9227
|
}), !0;
|
|
9217
|
-
},
|
|
9218
|
-
Up(e.target) ||
|
|
9219
|
-
},
|
|
9220
|
-
if (Up(e.target) || !
|
|
9228
|
+
}, te = (e) => {
|
|
9229
|
+
Up(e.target) || O(e, !1);
|
|
9230
|
+
}, k = (e) => {
|
|
9231
|
+
if (Up(e.target) || !O(e, !0)) return;
|
|
9221
9232
|
let t = m();
|
|
9222
9233
|
if (!t) return;
|
|
9223
9234
|
let n = Rp(p(), "cut", !0, f);
|
|
9224
9235
|
n && t(n);
|
|
9225
|
-
},
|
|
9236
|
+
}, ne = (e) => {
|
|
9226
9237
|
if (Up(e.target)) return;
|
|
9227
9238
|
let t = m();
|
|
9228
9239
|
if (!t) return;
|
|
@@ -9231,16 +9242,16 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9231
9242
|
e.preventDefault();
|
|
9232
9243
|
let r = p(), i = zp(r, Ep(n), f);
|
|
9233
9244
|
i && (t(i.details), h() && Bp(r, i.target));
|
|
9234
|
-
},
|
|
9235
|
-
if (
|
|
9236
|
-
let t =
|
|
9245
|
+
}, A = !1, re = (e) => !(e instanceof Element) || e.closest("[data-cell-interactive]") || e.closest("[role=\"checkbox\"], input[type=\"checkbox\"]") ? null : e.closest("[data-cell-control]") || e.closest("button, a, select, input, textarea, [contenteditable], [role=\"combobox\"]"), j = (e) => {
|
|
9246
|
+
if (A = !1, e.button !== 0 || e.shiftKey || e.ctrlKey || e.metaKey || r.props.tableLayout?.cellEditMode === "click") return;
|
|
9247
|
+
let t = re(e.target), n = t?.closest("td[data-col-id]");
|
|
9237
9248
|
if (!t || !n || !f.contains(n) || n.hasAttribute("data-cell-focused")) return;
|
|
9238
9249
|
let i = p().getColumn(n.getAttribute("data-col-id") ?? "");
|
|
9239
|
-
i && i.columnDef.enableCellSelection !== !1 && (
|
|
9250
|
+
i && i.columnDef.enableCellSelection !== !1 && (A = !0, e.stopPropagation());
|
|
9240
9251
|
}, M = (e) => {
|
|
9241
|
-
|
|
9252
|
+
A && (A = !1, e.preventDefault(), e.stopPropagation());
|
|
9242
9253
|
}, ie = (e) => {
|
|
9243
|
-
if (!
|
|
9254
|
+
if (!A) return;
|
|
9244
9255
|
e.stopPropagation(), e.preventDefault();
|
|
9245
9256
|
let t = e.target?.closest?.("td[data-col-id]"), n = t?.closest("tr[data-row-id]")?.getAttribute("data-row-id"), r = t?.getAttribute("data-col-id");
|
|
9246
9257
|
if (!n || !r) return;
|
|
@@ -9270,7 +9281,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9270
9281
|
}, ue = (e) => {
|
|
9271
9282
|
Wp(e.target) || (e.target?.closest?.("td"))?.hasAttribute("data-cell-focused") && b();
|
|
9272
9283
|
}, de = g.getAttribute("tabindex"), fe = g.style.outline;
|
|
9273
|
-
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy",
|
|
9284
|
+
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy", te), f.addEventListener("cut", k), f.addEventListener("paste", ne)), f.addEventListener("pointerdown", j), f.addEventListener("mousedown", ie), f.addEventListener("click", M), f.addEventListener("mousedown", ce), f.addEventListener("click", le), f.addEventListener("dblclick", ue), f.ownerDocument.addEventListener("mouseup", se);
|
|
9274
9285
|
let pe = (e) => ({
|
|
9275
9286
|
minRowIndex: e.minRowIndex,
|
|
9276
9287
|
maxRowIndex: e.maxRowIndex,
|
|
@@ -9291,7 +9302,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9291
9302
|
});
|
|
9292
9303
|
});
|
|
9293
9304
|
return o(f), () => {
|
|
9294
|
-
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy",
|
|
9305
|
+
n && (de === null ? g.removeAttribute("tabindex") : g.setAttribute("tabindex", de), g.style.outline = fe, g.removeAttribute("aria-activedescendant"), f.removeEventListener("keydown", D)), t && (f.removeEventListener("copy", te), f.removeEventListener("cut", k), f.removeEventListener("paste", ne)), f.removeEventListener("pointerdown", j), f.removeEventListener("mousedown", ie), f.removeEventListener("click", M), f.removeEventListener("mousedown", ce), f.removeEventListener("click", le), f.removeEventListener("dblclick", ue), f.ownerDocument.removeEventListener("mouseup", se), f.removeAttribute("data-cell-selecting"), me?.unsubscribe(), clearTimeout(x), e && (e.current = null), o(null), c(null);
|
|
9295
9306
|
};
|
|
9296
9307
|
}, [
|
|
9297
9308
|
u,
|
|
@@ -10209,7 +10220,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10209
10220
|
})), { cellUndoLen: x, cellRedoLen: S } = Ac(({ cellUndoStack: e, cellRedoStack: t }) => ({
|
|
10210
10221
|
cellUndoLen: e.length,
|
|
10211
10222
|
cellRedoLen: t.length
|
|
10212
|
-
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id),
|
|
10223
|
+
})), [C, w] = z(0), T = R(null), { rules: E } = Ac(({ decisionTable: e }) => ({ rules: e.rules }), (e, t) => (0, Sc.default)(e.rules.map((e) => e?._id), t.rules.map((e) => e?._id))), D = q(y?.trace.traceData).with(K.array(), (e) => e?.[b]?.rule?._id).otherwise((e) => e?.rule?._id), ee = P.useMemo(() => [
|
|
10213
10224
|
{
|
|
10214
10225
|
id: "__index",
|
|
10215
10226
|
header: () => null,
|
|
@@ -10291,26 +10302,26 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10291
10302
|
h,
|
|
10292
10303
|
_,
|
|
10293
10304
|
g
|
|
10294
|
-
]), [
|
|
10305
|
+
]), [O, te] = z([]), k = Yr({
|
|
10295
10306
|
data: E,
|
|
10296
10307
|
features: bm,
|
|
10297
10308
|
columnResizeMode: "onChange",
|
|
10298
10309
|
getRowId: (e) => e._id,
|
|
10299
|
-
columns:
|
|
10310
|
+
columns: ee,
|
|
10300
10311
|
defaultColumn: { cell: (e) => /* @__PURE__ */ U(am, { context: e }) },
|
|
10301
10312
|
meta: { getCell: l },
|
|
10302
10313
|
state: {
|
|
10303
|
-
cellSelection:
|
|
10314
|
+
cellSelection: O,
|
|
10304
10315
|
...e ? { columnSizing: u } : {}
|
|
10305
10316
|
},
|
|
10306
|
-
onCellSelectionChange:
|
|
10317
|
+
onCellSelectionChange: te,
|
|
10307
10318
|
initialState: { columnVisibility: ym(e) },
|
|
10308
10319
|
...e ? { onColumnSizingChange: d } : {}
|
|
10309
10320
|
});
|
|
10310
10321
|
I(() => {
|
|
10311
|
-
let e =
|
|
10322
|
+
let e = O[O.length - 1];
|
|
10312
10323
|
if (!e) return;
|
|
10313
|
-
let t =
|
|
10324
|
+
let t = k.getRow(e.focusRowId);
|
|
10314
10325
|
if (!t) return;
|
|
10315
10326
|
let n = e.focusColumnId === "__index" ? "id" : e.focusColumnId;
|
|
10316
10327
|
(v?.y !== t.index || v?.x !== n) && a.setCursor({
|
|
@@ -10318,19 +10329,19 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10318
10329
|
y: t.index
|
|
10319
10330
|
});
|
|
10320
10331
|
}, [
|
|
10332
|
+
O,
|
|
10321
10333
|
k,
|
|
10322
|
-
A,
|
|
10323
10334
|
v?.x,
|
|
10324
10335
|
v?.y,
|
|
10325
10336
|
a
|
|
10326
10337
|
]);
|
|
10327
|
-
let
|
|
10338
|
+
let ne = L(() => E.map((e) => e._id), [E]), A = F((e) => {
|
|
10328
10339
|
let { active: t, over: n } = e;
|
|
10329
10340
|
if (t && n && t.id !== n.id) {
|
|
10330
|
-
let e =
|
|
10341
|
+
let e = ne.indexOf(String(t.id)), r = ne.indexOf(String(n.id));
|
|
10331
10342
|
e >= 0 && r >= 0 && a.swapRows(e, r);
|
|
10332
10343
|
}
|
|
10333
|
-
}, [
|
|
10344
|
+
}, [ne, a]), re = F((e) => e?._diff?.status === "added" ? "new" : e?._diff?.status === "removed" ? "deleted" : e?._diff?.status === "modified" ? "dirty" : void 0, []), j = F((e, t) => V(!p && v?.y === t && "bg-[var(--seal-color-primary-bg-fade)]!", !e?._diff?.status && D && e?._id === D && "bg-[var(--seal-color-success-bg)]!", !e?._diff?.status && p && "bg-black/[0.02]"), [
|
|
10334
10345
|
v?.y,
|
|
10335
10346
|
D,
|
|
10336
10347
|
p
|
|
@@ -10434,11 +10445,11 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10434
10445
|
},
|
|
10435
10446
|
onKeyDown: oe,
|
|
10436
10447
|
children: /* @__PURE__ */ W(Cl, {
|
|
10437
|
-
table:
|
|
10448
|
+
table: k,
|
|
10438
10449
|
recordCount: E.length,
|
|
10439
10450
|
i18n: c,
|
|
10440
|
-
getRowStatus:
|
|
10441
|
-
getRowClassName:
|
|
10451
|
+
getRowStatus: re,
|
|
10452
|
+
getRowClassName: j,
|
|
10442
10453
|
getCellClassName: M,
|
|
10443
10454
|
onCellsChange: (e) => {
|
|
10444
10455
|
e.rejected.length > 0 && (w(e.rejected.length), T.current && clearTimeout(T.current), T.current = setTimeout(() => w(0), 2600));
|
|
@@ -10466,8 +10477,8 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10466
10477
|
},
|
|
10467
10478
|
children: [
|
|
10468
10479
|
/* @__PURE__ */ U(Xp, { children: /* @__PURE__ */ U(Eu, {
|
|
10469
|
-
handleDragEnd:
|
|
10470
|
-
dataIds:
|
|
10480
|
+
handleDragEnd: A,
|
|
10481
|
+
dataIds: ne,
|
|
10471
10482
|
virtual: ae,
|
|
10472
10483
|
virtualizerRef: N
|
|
10473
10484
|
}) }),
|
|
@@ -10505,7 +10516,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10505
10516
|
children: s("dt.cellsSkipped", { count: C })
|
|
10506
10517
|
}),
|
|
10507
10518
|
/* @__PURE__ */ U(Jp, {
|
|
10508
|
-
table:
|
|
10519
|
+
table: k,
|
|
10509
10520
|
onColumnVisibilityChange: (t) => {
|
|
10510
10521
|
e && localStorage.setItem(vm(e), JSON.stringify(t));
|
|
10511
10522
|
},
|
|
@@ -10677,7 +10688,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10677
10688
|
if (r.examples.length === 0) return null;
|
|
10678
10689
|
let i = d(n.content);
|
|
10679
10690
|
return r.examples.map((e, t) => {
|
|
10680
|
-
let n =
|
|
10691
|
+
let n = k(O(e.data, i), i);
|
|
10681
10692
|
return {
|
|
10682
10693
|
name: e.name.trim() || `#${t + 1}`,
|
|
10683
10694
|
input: n
|
|
@@ -10752,6 +10763,7 @@ var Zm = /* @__PURE__ */ function(e) {
|
|
|
10752
10763
|
disabled: !1,
|
|
10753
10764
|
components: [],
|
|
10754
10765
|
customNodes: [],
|
|
10766
|
+
functionLibraries: [],
|
|
10755
10767
|
activePanel: void 0,
|
|
10756
10768
|
panels: [],
|
|
10757
10769
|
user: "",
|
|
@@ -11263,16 +11275,49 @@ function dh(e, t, n, r = []) {
|
|
|
11263
11275
|
]);
|
|
11264
11276
|
}
|
|
11265
11277
|
//#endregion
|
|
11266
|
-
//#region
|
|
11267
|
-
var fh = () => {
|
|
11278
|
+
//#region ../../node_modules/.pnpm/@types+big.js@6.2.2/node_modules/@types/big.js/index.d.ts?raw
|
|
11279
|
+
var fh = "declare namespace Big {\n type BigSource = number | string | Big;\n\n /**\n * GT = 1, EQ = 0, LT = -1\n */\n type Comparison = -1 | 0 | 1;\n\n /**\n * RoundDown = 0, RoundHalfUp = 1, RoundHalfEven = 2, RoundUp = 3\n */\n type RoundingMode = 0 | 1 | 2 | 3;\n\n interface BigConstructor {\n /**\n * Returns a new instance of a Big number object\n *\n * String values may be in exponential, as well as normal (non-exponential) notation.\n * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.\n * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.\n * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.\n *\n * @throws `NaN` on an invalid value.\n */\n new(value: BigSource): Big;\n\n /**\n * Returns a new instance of a Big number object\n *\n * String values may be in exponential, as well as normal (non-exponential) notation.\n * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.\n * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.\n * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.\n *\n * @throws `NaN` on an invalid value.\n */\n (value: BigSource): Big;\n\n /**\n * Create an additional Big number constructor\n *\n * Values created with the returned constructor will have a separate set of configuration values.\n * This can be used to create Big objects with different DP and RM values.\n * Big numbers created by different constructors can be used together in operations, and it is the DP and RM setting of the Big number that an operation is called upon that will apply.\n * In the interest of memory efficiency, all Big number constructors share the same prototype object,\n * so while the DP and RM (and any other own properties) of a constructor are isolated and untouchable by another, its prototype methods are not.\n */\n (): BigConstructor;\n\n /**\n * The maximum number of decimal places of the results of operations involving division.\n * It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative.\n *\n * 0 to 1e+6 inclusive\n * Default value: 20\n */\n DP: number;\n /**\n * The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision.\n * Default value: 1\n */\n RM: number;\n /**\n * The negative exponent value at and below which toString returns exponential notation.\n *\n * -1e+6 to 0 inclusive\n * Default value: -7\n */\n NE: number;\n /**\n * The positive exponent value at and above which toString returns exponential notation.\n *\n * 0 to 1e+6 inclusive\n * Default value: 21\n */\n PE: number;\n /**\n * When set to true, an error will be thrown if a primitive number is passed to the Big constructor,\n * or if valueOf is called, or if toNumber is called on a Big which cannot be converted to a primitive number without a loss of precision.\n *\n * true|false\n * Default value: false\n */\n strict: boolean;\n\n /** Readonly rounding modes */\n\n /**\n * Rounds towards zero.\n * I.e. truncate, no rounding.\n */\n readonly roundDown: 0;\n /**\n * Rounds towards nearest neighbour.\n * If equidistant, rounds away from zero.\n */\n readonly roundHalfUp: 1;\n /**\n * Rounds towards nearest neighbour.\n * If equidistant, rounds towards even neighbour.\n */\n readonly roundHalfEven: 2;\n /**\n * Rounds away from zero.\n */\n readonly roundUp: 3;\n\n readonly Big: BigConstructor;\n }\n\n interface Big {\n /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */\n abs(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number plus n - alias for .plus().\n *\n * @throws `NaN` if n is invalid.\n */\n add(n: BigSource): Big;\n /**\n * Compare the values.\n *\n * @throws `NaN` if n is invalid.\n */\n cmp(n: BigSource): Comparison;\n /**\n * Returns a Big number whose value is the value of this Big number divided by n.\n *\n * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @throws `NaN` if n is invalid.\n * @throws `±Infinity` on division by zero.\n * @throws `NaN` on division of zero by zero.\n */\n div(n: BigSource): Big;\n /**\n * Returns true if the value of this Big equals the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n eq(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is greater than the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n gt(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n gte(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is less than the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n lt(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n lte(n: BigSource): boolean;\n /**\n * Returns a Big number whose value is the value of this Big number minus n.\n *\n * @throws `NaN` if n is invalid.\n */\n minus(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n.\n *\n * The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method.\n *\n * @throws `NaN` if n is negative or otherwise invalid.\n */\n mod(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number times n - alias for .times().\n *\n * @throws `NaN` if n is invalid.\n */\n mul(n: BigSource): Big;\n /**\n * Return a new Big whose value is the value of this Big negated.\n */\n neg(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number plus n.\n *\n * @throws `NaN` if n is invalid.\n */\n plus(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number raised to the power exp.\n *\n * If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @param exp The power to raise the number to, -1e+6 to 1e+6 inclusive\n * @throws `!pow!` if exp is invalid.\n *\n * Note: High value exponents may cause this method to be slow to return.\n */\n pow(exp: number): Big;\n /**\n * Return a new Big whose value is the value of this Big rounded to a maximum precision of sd\n * significant digits using rounding mode rm, or Big.RM if rm is not specified.\n *\n * @param sd Significant digits: integer, 1 to MAX_DP inclusive.\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!prec!` if sd is invalid.\n * @throws `!Big.RM!` if rm is invalid.\n */\n prec(sd: number, rm?: RoundingMode): Big;\n /**\n * Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!round!` if dp is invalid.\n * @throws `!Big.RM!` if rm is invalid.\n */\n round(dp?: number, rm?: RoundingMode): Big;\n /**\n * Returns a Big number whose value is the square root of this Big number.\n *\n * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @throws `NaN` if this Big number is negative.\n */\n sqrt(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number minus n - alias for .minus().\n *\n * @throws `NaN` if n is invalid.\n */\n sub(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number times n.\n *\n * @throws `NaN` if n is invalid.\n */\n times(n: BigSource): Big;\n /**\n * Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp.\n *\n * If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp,\n * the return value will be rounded to dp decimal places using rounding mode Big.RM.\n *\n * If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly.\n *\n * If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toFix!` if dp is invalid.\n */\n toExponential(dp?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp.\n *\n * If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp,\n * the return value will be rounded to dp decimal places using rounding mode Big.RM.\n *\n * If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly.\n *\n * Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation.\n *\n * If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation.\n * This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toFix!` if dp is invalid.\n */\n toFixed(dp?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number to the specified number of significant digits sd.\n *\n * If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM.\n *\n * If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly.\n *\n * If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used.\n *\n * If sd is omitted, or is null or undefined, then the return value is the same as .toString().\n *\n * @param sd Significant digits, 1 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toPre!` if sd is invalid.\n */\n toPrecision(sd?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n toString(): string;\n /**\n * Returns a primitive number representing the value of this Big number.\n *\n * If Big.strict is true an error will be thrown if toNumber is called on a Big number which cannot be converted to a primitive number without a loss of precision.\n *\n * @since 6.0\n */\n toNumber(): number;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n valueOf(): string;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n toJSON(): string;\n /**\n * Returns an array of single digits\n */\n c: number[];\n /**\n * Returns the exponent, Integer, -1e+6 to 1e+6 inclusive\n */\n e: number;\n /**\n * Returns the sign, -1 or 1\n */\n s: number;\n }\n}\n\n// We want the exported symbol 'Big' to represent two things:\n// - The Big interface, when used in a type context.\n// - The BigConstructor instance, when used in a value context.\ndeclare const Big: Big.BigConstructor;\ntype Big = Big.Big;\n\n// The export is the same as type/value combo symbol 'Big'.\nexport = Big;\nexport as namespace Big;\n", ph = "/// <reference path=\"./locale/index.d.ts\" />\n\nexport = dayjs;\n\ndeclare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs\n\ndeclare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs\n\ndeclare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs\n\ndeclare namespace dayjs {\n interface ConfigTypeMap {\n default: string | number | Date | Dayjs | null | undefined\n }\n\n export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]\n\n export interface FormatObject { locale?: string, format?: string, utc?: boolean }\n\n export type OptionType = FormatObject | string | string[]\n\n export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'\n\n export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'\n\n export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'\n \n export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;\n\n export type OpUnitType = UnitType | \"week\" | \"weeks\" | 'w';\n export type QUnitType = UnitType | \"quarter\" | \"quarters\" | 'Q';\n export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;\n class Dayjs {\n constructor (config?: ConfigType)\n /**\n * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.\n * ```\n * dayjs().clone()// => Dayjs\n * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it\n * ```\n * Docs: https://day.js.org/docs/en/parse/dayjs-clone\n */\n clone(): Dayjs\n /**\n * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.\n * ```\n * dayjs().isValid()// => boolean\n * ```\n * Docs: https://day.js.org/docs/en/parse/is-valid\n */\n isValid(): boolean\n /**\n * Get the year.\n * ```\n * dayjs().year()// => 2020\n * ```\n * Docs: https://day.js.org/docs/en/get-set/year\n */\n year(): number\n /**\n * Set the year.\n * ```\n * dayjs().year(2000)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/year\n */\n year(value: number): Dayjs\n /**\n * Get the month.\n *\n * Months are zero indexed, so January is month 0.\n * ```\n * dayjs().month()// => 0-11\n * ```\n * Docs: https://day.js.org/docs/en/get-set/month\n */\n month(): number\n /**\n * Set the month.\n *\n * Months are zero indexed, so January is month 0.\n *\n * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.\n * ```\n * dayjs().month(0)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/month\n */\n month(value: number): Dayjs\n /**\n * Get the date of the month.\n * ```\n * dayjs().date()// => 1-31\n * ```\n * Docs: https://day.js.org/docs/en/get-set/date\n */\n date(): number\n /**\n * Set the date of the month.\n *\n * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.\n * ```\n * dayjs().date(1)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/date\n */\n date(value: number): Dayjs\n /**\n * Get the day of the week.\n *\n * Returns numbers from 0 (Sunday) to 6 (Saturday).\n * ```\n * dayjs().day()// 0-6\n * ```\n * Docs: https://day.js.org/docs/en/get-set/day\n */\n day(): 0 | 1 | 2 | 3 | 4 | 5 | 6\n /**\n * Set the day of the week.\n *\n * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.\n * ```\n * dayjs().day(0)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/day\n */\n day(value: number): Dayjs\n /**\n * Get the hour.\n * ```\n * dayjs().hour()// => 0-23\n * ```\n * Docs: https://day.js.org/docs/en/get-set/hour\n */\n hour(): number\n /**\n * Set the hour.\n *\n * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.\n * ```\n * dayjs().hour(12)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/hour\n */\n hour(value: number): Dayjs\n /**\n * Get the minutes.\n * ```\n * dayjs().minute()// => 0-59\n * ```\n * Docs: https://day.js.org/docs/en/get-set/minute\n */\n minute(): number\n /**\n * Set the minutes.\n *\n * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.\n * ```\n * dayjs().minute(59)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/minute\n */\n minute(value: number): Dayjs\n /**\n * Get the seconds.\n * ```\n * dayjs().second()// => 0-59\n * ```\n * Docs: https://day.js.org/docs/en/get-set/second\n */\n second(): number\n /**\n * Set the seconds.\n *\n * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.\n * ```\n * dayjs().second(1)// Dayjs\n * ```\n */\n second(value: number): Dayjs\n /**\n * Get the milliseconds.\n * ```\n * dayjs().millisecond()// => 0-999\n * ```\n * Docs: https://day.js.org/docs/en/get-set/millisecond\n */\n millisecond(): number\n /**\n * Set the milliseconds.\n *\n * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.\n * ```\n * dayjs().millisecond(1)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/millisecond\n */\n millisecond(value: number): Dayjs\n /**\n * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.\n *\n * In general:\n * ```\n * dayjs().set(unit, value) === dayjs()[unit](value)\n * ```\n * Units are case insensitive, and support plural and short forms.\n * ```\n * dayjs().set('date', 1)\n * dayjs().set('month', 3) // April\n * dayjs().set('second', 30)\n * ```\n * Docs: https://day.js.org/docs/en/get-set/set\n */\n set(unit: UnitType, value: number): Dayjs\n /**\n * String getter, returns the corresponding information getting from Day.js object.\n *\n * In general:\n * ```\n * dayjs().get(unit) === dayjs()[unit]()\n * ```\n * Units are case insensitive, and support plural and short forms.\n * ```\n * dayjs().get('year')\n * dayjs().get('month') // start 0\n * dayjs().get('date')\n * ```\n * Docs: https://day.js.org/docs/en/get-set/get\n */\n get(unit: UnitType): number\n /**\n * Returns a cloned Day.js object with a specified amount of time added.\n * ```\n * dayjs().add(7, 'day')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/add\n */\n add(value: number, unit?: ManipulateType): Dayjs\n /**\n * Returns a cloned Day.js object with a specified amount of time subtracted.\n * ```\n * dayjs().subtract(7, 'year')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/subtract\n */\n subtract(value: number, unit?: ManipulateType): Dayjs\n /**\n * Returns a cloned Day.js object and set it to the start of a unit of time.\n * ```\n * dayjs().startOf('year')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/start-of\n */\n startOf(unit: OpUnitType): Dayjs\n /**\n * Returns a cloned Day.js object and set it to the end of a unit of time.\n * ```\n * dayjs().endOf('month')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/end-of\n */\n endOf(unit: OpUnitType): Dayjs\n /**\n * Get the formatted date according to the string of tokens passed in.\n *\n * To escape characters, wrap them in square brackets (e.g. [MM]).\n * ```\n * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'\n * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'\n * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'\n * ```\n * Docs: https://day.js.org/docs/en/display/format\n */\n format(template?: string): string\n /**\n * This indicates the difference between two date-time in the specified unit.\n *\n * To get the difference in milliseconds, use `dayjs#diff`\n * ```\n * const date1 = dayjs('2019-01-25')\n * const date2 = dayjs('2018-06-05')\n * date1.diff(date2) // 20214000000 default milliseconds\n * date1.diff() // milliseconds to current time\n * ```\n *\n * To get the difference in another unit of measurement, pass that measurement as the second argument.\n * ```\n * const date1 = dayjs('2019-01-25')\n * date1.diff('2018-06-05', 'month') // 7\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/display/difference\n */\n diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number\n /**\n * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.\n * ```\n * dayjs('2019-01-25').valueOf() // 1548381600000\n * +dayjs(1548381600000) // 1548381600000\n * ```\n * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.\n *\n * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds\n */\n valueOf(): number\n /**\n * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.\n * ```\n * dayjs('2019-01-25').unix() // 1548381600\n * ```\n * This value is floored to the nearest second, and does not include a milliseconds component.\n *\n * Docs: https://day.js.org/docs/en/display/unix-timestamp\n */\n unix(): number\n /**\n * Get the number of days in the current month.\n * ```\n * dayjs('2019-01-25').daysInMonth() // 31\n * ```\n * Docs: https://day.js.org/docs/en/display/days-in-month\n */\n daysInMonth(): number\n /**\n * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.\n * ```\n * dayjs('2019-01-25').toDate()// => Date\n * ```\n */\n toDate(): Date\n /**\n * To serialize as an ISO 8601 string.\n * ```\n * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-json\n */\n toJSON(): string\n /**\n * To format as an ISO 8601 string.\n * ```\n * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-iso-string\n */\n toISOString(): string\n /**\n * Returns a string representation of the date.\n * ```\n * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-string\n */\n toString(): string\n /**\n * Get the UTC offset in minutes.\n * ```\n * dayjs().utcOffset()\n * ```\n * Docs: https://day.js.org/docs/en/manipulate/utc-offset\n */\n utcOffset(): number\n /**\n * This indicates whether the Day.js object is before the other supplied date-time.\n * ```\n * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isBefore('2011-01-01', 'year')// => boolean\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/query/is-before\n */\n isBefore(date?: ConfigType, unit?: OpUnitType): boolean\n /**\n * This indicates whether the Day.js object is the same as the other supplied date-time.\n * ```\n * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isSame('2011-01-01', 'year')// => boolean\n * ```\n * Docs: https://day.js.org/docs/en/query/is-same\n */\n isSame(date?: ConfigType, unit?: OpUnitType): boolean\n /**\n * This indicates whether the Day.js object is after the other supplied date-time.\n * ```\n * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isAfter('2011-01-01', 'year')// => boolean\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/query/is-after\n */\n isAfter(date?: ConfigType, unit?: OpUnitType): boolean\n\n locale(): string\n\n locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs\n }\n\n export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void\n\n export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs\n\n export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string\n\n export function isDayjs(d: any): d is Dayjs\n\n export function unix(t: number): Dayjs\n\n const Ls : { [key: string] : ILocale }\n}\n", mh = "import zen from 'zen';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n return input;\n};\n", hh = "declare namespace console {\n function log(...args: any[]): void;\n async function sleep(durationMs: number): Promise<void>;\n}\n\ninterface Config {\n readonly maxDepth: number;\n readonly iteration: number;\n readonly trace: boolean;\n}\n\ndeclare const config: Config;\n", gh = [
|
|
11280
|
+
{
|
|
11281
|
+
name: "big.js",
|
|
11282
|
+
tagline: "Arbitrary-precision decimal arithmetic",
|
|
11283
|
+
importName: "Big",
|
|
11284
|
+
typeDef: fh,
|
|
11285
|
+
documentationUrl: "https://mikemcl.github.io/big.js/"
|
|
11286
|
+
},
|
|
11287
|
+
{
|
|
11288
|
+
name: "dayjs",
|
|
11289
|
+
tagline: "Date utilities",
|
|
11290
|
+
typeDef: ph,
|
|
11291
|
+
documentationUrl: "https://day.js.org/docs/en/parse/parse"
|
|
11292
|
+
},
|
|
11293
|
+
{
|
|
11294
|
+
name: "http",
|
|
11295
|
+
tagline: "Promise based HTTP client",
|
|
11296
|
+
typeDef: "declare class HttpResponse {\n readonly data: any;\n readonly headers: Record<string, string>;\n readonly status: number;\n}\n\ninterface HttpConfig {\n headers?: Record<string, string | number | boolean>;\n params?: Record<string, string | number | boolean>;\n data?: any;\n auth?: HttpIamAuth;\n}\n\ntype HttpIamAuth = { type: 'iam' } & (\n { provider: 'aws'; service: string; region?: string } | { provider: 'gcp'; service: string } | { provider: 'azure' }\n);\n\nclass Http {\n head(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n get(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n delete(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n post(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n\n patch(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n\n put(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n}\n\nexport interface HttpStatic extends Http {}\n\ndeclare const http: HttpStatic;\nexport default http;\n",
|
|
11297
|
+
documentationUrl: "https://docs.gorules.io/reference/http"
|
|
11298
|
+
},
|
|
11299
|
+
{
|
|
11300
|
+
name: "zen",
|
|
11301
|
+
tagline: "Rules engine utilities",
|
|
11302
|
+
typeDef: "interface EvaluateOptions {\n trace?: boolean;\n}\n\ninterface EvaluateResponse {\n performance: string;\n result: any;\n trace?: any;\n}\n\ninterface ZenModule {\n /**\n * Evaluates ZEN expression\n * @param expression\n * @param context Must contain '$' key\n */\n evaluateExpression(expression: string, context: any): any;\n\n /**\n * Evaluates ZEN unary expression\n * @param expression\n * @param context Must contain '$' key\n */\n evaluateUnaryExpression(expression: string, context: any): boolean;\n\n /**\n * Evaluates ZEN unary expression\n * @param key File key to be evaluated through DecisionLoader\n * @param context\n * @param opts\n */\n evaluate(key: string, context: any, opts?: EvaluateOptions): Promise<EvaluateResponse>;\n}\n\ndeclare const zenModule: ZenModule;\n\nexport default zenModule;\n",
|
|
11303
|
+
documentationUrl: "https://docs.gorules.io/reference/zen"
|
|
11304
|
+
},
|
|
11305
|
+
{
|
|
11306
|
+
name: "zod",
|
|
11307
|
+
tagline: "Schema validation",
|
|
11308
|
+
importName: "z",
|
|
11309
|
+
typeDef: "declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;\ndeclare type Scalars = Primitive | Primitive[];\n\ndeclare namespace util {\n type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\n export type isAny<T> = 0 extends 1 & T ? true : false;\n export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;\n export function assertIs<T>(_arg: T): void;\n export function assertNever(_x: never): never;\n export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\n export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\n export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };\n export const getValidEnumValues: (obj: any) => any[];\n export const objectValues: (obj: any) => any[];\n export const objectKeys: ObjectConstructor['keys'];\n export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;\n export type identity<T> = objectUtil.identity<T>;\n export type flatten<T> = objectUtil.flatten<T>;\n export type noUndefined<T> = T extends undefined ? never : T;\n export const isInteger: NumberConstructor['isInteger'];\n export function joinValues<T extends any[]>(array: T, separator?: string): string;\n export const jsonStringifyReplacer: (_: string, value: any) => any;\n export {};\n}\ndeclare namespace objectUtil {\n export type MergeShapes<U, V> = {\n [k in Exclude<keyof U, keyof V>]: U[k];\n } & V;\n type optionalKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? k : never;\n }[keyof T];\n type requiredKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? never : k;\n }[keyof T];\n export type addQuestionMarks<T extends object, _O = any> = {\n [K in requiredKeys<T>]: T[K];\n } & {\n [K in optionalKeys<T>]?: T[K];\n } & {\n [k in keyof T]?: unknown;\n };\n export type identity<T> = T;\n export type flatten<T> = identity<{\n [k in keyof T]: T[k];\n }>;\n export type noNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n }[keyof T];\n export type noNever<T> = identity<{\n [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;\n }>;\n export const mergeShapes: <U, T>(first: U, second: T) => T & U;\n export type extendShape<A extends object, B extends object> = {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n } & {\n [K in keyof B]: B[K];\n };\n export {};\n}\ndeclare const ZodParsedType: {\n function: 'function';\n number: 'number';\n string: 'string';\n nan: 'nan';\n integer: 'integer';\n float: 'float';\n boolean: 'boolean';\n date: 'date';\n bigint: 'bigint';\n symbol: 'symbol';\n undefined: 'undefined';\n null: 'null';\n array: 'array';\n object: 'object';\n unknown: 'unknown';\n promise: 'promise';\n void: 'void';\n never: 'never';\n map: 'map';\n set: 'set';\n};\ndeclare type ZodParsedType = keyof typeof ZodParsedType;\ndeclare const getParsedType: (data: any) => ZodParsedType;\n\ndeclare type allKeys<T> = T extends any ? keyof T : never;\ndeclare type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;\ndeclare type typeToFlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in allKeys<T>]?: U[];\n };\n};\ndeclare const ZodIssueCode: {\n invalid_type: 'invalid_type';\n invalid_literal: 'invalid_literal';\n custom: 'custom';\n invalid_union: 'invalid_union';\n invalid_union_discriminator: 'invalid_union_discriminator';\n invalid_enum_value: 'invalid_enum_value';\n unrecognized_keys: 'unrecognized_keys';\n invalid_arguments: 'invalid_arguments';\n invalid_return_type: 'invalid_return_type';\n invalid_date: 'invalid_date';\n invalid_string: 'invalid_string';\n too_small: 'too_small';\n too_big: 'too_big';\n invalid_intersection_types: 'invalid_intersection_types';\n not_multiple_of: 'not_multiple_of';\n not_finite: 'not_finite';\n};\ndeclare type ZodIssueCode = keyof typeof ZodIssueCode;\ndeclare type ZodIssueBase = {\n path: (string | number)[];\n message?: string;\n};\ninterface ZodInvalidTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_type;\n expected: ZodParsedType;\n received: ZodParsedType;\n}\ninterface ZodInvalidLiteralIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_literal;\n expected: unknown;\n received: unknown;\n}\ninterface ZodUnrecognizedKeysIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.unrecognized_keys;\n keys: string[];\n}\ninterface ZodInvalidUnionIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union;\n unionErrors: ZodError[];\n}\ninterface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union_discriminator;\n options: Primitive[];\n}\ninterface ZodInvalidEnumValueIssue extends ZodIssueBase {\n received: string | number;\n code: typeof ZodIssueCode.invalid_enum_value;\n options: (string | number)[];\n}\ninterface ZodInvalidArgumentsIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_arguments;\n argumentsError: ZodError;\n}\ninterface ZodInvalidReturnTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_return_type;\n returnTypeError: ZodError;\n}\ninterface ZodInvalidDateIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_date;\n}\ndeclare type StringValidation =\n | 'email'\n | 'url'\n | 'emoji'\n | 'uuid'\n | 'nanoid'\n | 'regex'\n | 'cuid'\n | 'cuid2'\n | 'ulid'\n | 'datetime'\n | 'date'\n | 'time'\n | 'duration'\n | 'ip'\n | 'base64'\n | {\n includes: string;\n position?: number;\n }\n | {\n startsWith: string;\n }\n | {\n endsWith: string;\n };\ninterface ZodInvalidStringIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_string;\n validation: StringValidation;\n}\ninterface ZodTooSmallIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_small;\n minimum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodTooBigIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_big;\n maximum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_intersection_types;\n}\ninterface ZodNotMultipleOfIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_multiple_of;\n multipleOf: number | bigint;\n}\ninterface ZodNotFiniteIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_finite;\n}\ninterface ZodCustomIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.custom;\n params?: {\n [k: string]: any;\n };\n}\ndeclare type DenormalizedError = {\n [k: string]: DenormalizedError | string[];\n};\ndeclare type ZodIssueOptionalMessage =\n | ZodInvalidTypeIssue\n | ZodInvalidLiteralIssue\n | ZodUnrecognizedKeysIssue\n | ZodInvalidUnionIssue\n | ZodInvalidUnionDiscriminatorIssue\n | ZodInvalidEnumValueIssue\n | ZodInvalidArgumentsIssue\n | ZodInvalidReturnTypeIssue\n | ZodInvalidDateIssue\n | ZodInvalidStringIssue\n | ZodTooSmallIssue\n | ZodTooBigIssue\n | ZodInvalidIntersectionTypesIssue\n | ZodNotMultipleOfIssue\n | ZodNotFiniteIssue\n | ZodCustomIssue;\ndeclare type ZodIssue = ZodIssueOptionalMessage & {\n fatal?: boolean;\n message: string;\n};\ndeclare const quotelessJson: (obj: any) => string;\ndeclare type recursiveZodFormattedError<T> = T extends [any, ...any[]]\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : T extends any[]\n ? {\n [k: number]: ZodFormattedError<T[number]>;\n }\n : T extends object\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : unknown;\ndeclare type ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & recursiveZodFormattedError<NonNullable<T>>;\ndeclare type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;\ndeclare class ZodError<T = any> extends Error {\n issues: ZodIssue[];\n get errors(): ZodIssue[];\n constructor(issues: ZodIssue[]);\n format(): ZodFormattedError<T>;\n format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;\n static create: (issues: ZodIssue[]) => ZodError<any>;\n static assert(value: unknown): asserts value is ZodError;\n toString(): string;\n get message(): string;\n get isEmpty(): boolean;\n addIssue: (sub: ZodIssue) => void;\n addIssues: (subs?: ZodIssue[]) => void;\n flatten(): typeToFlattenedError<T>;\n flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;\n get formErrors(): typeToFlattenedError<T, string>;\n}\ndeclare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, 'path'> : never;\ndeclare type IssueData = stripPath<ZodIssueOptionalMessage> & {\n path?: (string | number)[];\n fatal?: boolean;\n};\ndeclare type ErrorMapCtx = {\n defaultError: string;\n data: any;\n};\ndeclare type ZodErrorMap = (\n issue: ZodIssueOptionalMessage,\n _ctx: ErrorMapCtx,\n) => {\n message: string;\n};\n\ndeclare const errorMap: ZodErrorMap;\n//# sourceMappingURL=en.d.ts.map\n\ndeclare function setErrorMap(map: ZodErrorMap): void;\ndeclare function getErrorMap(): ZodErrorMap;\n\ndeclare const makeIssue: (params: {\n data: any;\n path: (string | number)[];\n errorMaps: ZodErrorMap[];\n issueData: IssueData;\n}) => ZodIssue;\ndeclare type ParseParams = {\n path: (string | number)[];\n errorMap: ZodErrorMap;\n async: boolean;\n};\ndeclare type ParsePathComponent = string | number;\ndeclare type ParsePath = ParsePathComponent[];\ndeclare const EMPTY_PATH: ParsePath;\ninterface ParseContext {\n readonly common: {\n readonly issues: ZodIssue[];\n readonly contextualErrorMap?: ZodErrorMap;\n readonly async: boolean;\n };\n readonly path: ParsePath;\n readonly schemaErrorMap?: ZodErrorMap;\n readonly parent: ParseContext | null;\n readonly data: any;\n readonly parsedType: ZodParsedType;\n}\ndeclare type ParseInput = {\n data: any;\n path: (string | number)[];\n parent: ParseContext;\n};\ndeclare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;\ndeclare type ObjectPair = {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n};\ndeclare class ParseStatus {\n value: 'aborted' | 'dirty' | 'valid';\n dirty(): void;\n abort(): void;\n static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;\n static mergeObjectAsync(\n status: ParseStatus,\n pairs: {\n key: ParseReturnType<any>;\n value: ParseReturnType<any>;\n }[],\n ): Promise<SyncParseReturnType<any>>;\n static mergeObjectSync(\n status: ParseStatus,\n pairs: {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n alwaysSet?: boolean;\n }[],\n ): SyncParseReturnType;\n}\ninterface ParseResult {\n status: 'aborted' | 'dirty' | 'valid';\n data: any;\n}\ndeclare type INVALID = {\n status: 'aborted';\n};\ndeclare const INVALID: INVALID;\ndeclare type DIRTY<T> = {\n status: 'dirty';\n value: T;\n};\ndeclare const DIRTY: <T>(value: T) => DIRTY<T>;\ndeclare type OK<T> = {\n status: 'valid';\n value: T;\n};\ndeclare const OK: <T>(value: T) => OK<T>;\ndeclare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;\ndeclare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;\ndeclare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;\ndeclare const isAborted: (x: ParseReturnType<any>) => x is INVALID;\ndeclare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;\ndeclare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;\ndeclare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;\n\ndeclare namespace enumUtil {\n type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (\n k: infer Intersection,\n ) => void\n ? Intersection\n : never;\n type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;\n type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never]\n ? Tuple\n : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;\n type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;\n export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;\n export {};\n}\n\ndeclare namespace errorUtil {\n type ErrMessage =\n | string\n | {\n message?: string;\n };\n const errToObj: (message?: ErrMessage | undefined) => {\n message?: string | undefined;\n };\n const toString: (message?: ErrMessage | undefined) => string | undefined;\n}\n\ndeclare namespace partialUtil {\n type DeepPartial<T extends ZodTypeAny> =\n T extends ZodObject<ZodRawShape>\n ? ZodObject<\n {\n [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>>;\n },\n T['_def']['unknownKeys'],\n T['_def']['catchall']\n >\n : T extends ZodArray<infer Type, infer Card>\n ? ZodArray<DeepPartial<Type>, Card>\n : T extends ZodOptional<infer Type>\n ? ZodOptional<DeepPartial<Type>>\n : T extends ZodNullable<infer Type>\n ? ZodNullable<DeepPartial<Type>>\n : T extends ZodTuple<infer Items>\n ? {\n [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;\n } extends infer PI\n ? PI extends ZodTupleItems\n ? ZodTuple<PI>\n : never\n : never\n : T;\n}\n\ninterface RefinementCtx {\n addIssue: (arg: IssueData) => void;\n path: (string | number)[];\n}\ndeclare type ZodRawShape = {\n [k: string]: ZodTypeAny;\n};\ndeclare type ZodTypeAny = ZodType<any, any, any>;\ndeclare type TypeOf<T extends ZodType<any, any, any>> = T['_output'];\ndeclare type input<T extends ZodType<any, any, any>> = T['_input'];\ndeclare type output<T extends ZodType<any, any, any>> = T['_output'];\n\ndeclare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, 'code'>>;\ninterface ZodTypeDef {\n errorMap?: ZodErrorMap;\n description?: string;\n}\ndeclare type RawCreateParams =\n | {\n errorMap?: ZodErrorMap;\n invalid_type_error?: string;\n required_error?: string;\n message?: string;\n description?: string;\n }\n | undefined;\ndeclare type ProcessedCreateParams = {\n errorMap?: ZodErrorMap;\n description?: string;\n};\ndeclare type SafeParseSuccess<Output> = {\n success: true;\n data: Output;\n error?: never;\n};\ndeclare type SafeParseError<Input> = {\n success: false;\n error: ZodError<Input>;\n data?: never;\n};\ndeclare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;\ndeclare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {\n readonly _type: Output;\n readonly _output: Output;\n readonly _input: Input;\n readonly _def: Def;\n get description(): string | undefined;\n abstract _parse(input: ParseInput): ParseReturnType<Output>;\n _getType(input: ParseInput): string;\n _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;\n _processInputParams(input: ParseInput): {\n status: ParseStatus;\n ctx: ParseContext;\n };\n _parseSync(input: ParseInput): SyncParseReturnType<Output>;\n _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;\n parse(data: unknown, params?: Partial<ParseParams>): Output;\n safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;\n parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;\n safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;\n /** Alias of safeParseAsync */\n spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;\n refine<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, RefinedOutput, Input>;\n refine(\n check: (arg: Output) => unknown | Promise<unknown>,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, Output, Input>;\n refinement<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, RefinedOutput, Input>;\n refinement(\n check: (arg: Output) => boolean,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, Output, Input>;\n _refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input>;\n superRefine<RefinedOutput extends Output>(\n refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput,\n ): ZodEffects<this, RefinedOutput, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;\n constructor(def: Def);\n optional(): ZodOptional<this>;\n nullable(): ZodNullable<this>;\n nullish(): ZodOptional<ZodNullable<this>>;\n array(): ZodArray<this>;\n promise(): ZodPromise<this>;\n or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;\n and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;\n transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;\n default(def: util.noUndefined<Input>): ZodDefault<this>;\n default(def: () => util.noUndefined<Input>): ZodDefault<this>;\n brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;\n catch(def: Output): ZodCatch<this>;\n catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this>;\n describe(description: string): this;\n pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;\n readonly(): ZodReadonly<this>;\n isOptional(): boolean;\n isNullable(): boolean;\n}\ndeclare type IpVersion = 'v4' | 'v6';\ndeclare type ZodStringCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n }\n | {\n kind: 'length';\n value: number;\n message?: string;\n }\n | {\n kind: 'email';\n message?: string;\n }\n | {\n kind: 'url';\n message?: string;\n }\n | {\n kind: 'emoji';\n message?: string;\n }\n | {\n kind: 'uuid';\n message?: string;\n }\n | {\n kind: 'nanoid';\n message?: string;\n }\n | {\n kind: 'cuid';\n message?: string;\n }\n | {\n kind: 'includes';\n value: string;\n position?: number;\n message?: string;\n }\n | {\n kind: 'cuid2';\n message?: string;\n }\n | {\n kind: 'ulid';\n message?: string;\n }\n | {\n kind: 'startsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'endsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'regex';\n regex: RegExp;\n message?: string;\n }\n | {\n kind: 'trim';\n message?: string;\n }\n | {\n kind: 'toLowerCase';\n message?: string;\n }\n | {\n kind: 'toUpperCase';\n message?: string;\n }\n | {\n kind: 'datetime';\n offset: boolean;\n local: boolean;\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'date';\n message?: string;\n }\n | {\n kind: 'time';\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'duration';\n message?: string;\n }\n | {\n kind: 'ip';\n version?: IpVersion;\n message?: string;\n }\n | {\n kind: 'base64';\n message?: string;\n };\ninterface ZodStringDef extends ZodTypeDef {\n checks: ZodStringCheck[];\n typeName: ZodFirstPartyTypeKind.ZodString;\n coerce: boolean;\n}\ndeclare function datetimeRegex(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp;\ndeclare class ZodString extends ZodType<string, ZodStringDef, string> {\n _parse(input: ParseInput): ParseReturnType<string>;\n protected _regex(\n regex: RegExp,\n validation: StringValidation,\n message?: errorUtil.ErrMessage,\n ): ZodEffects<this, string, string>;\n _addCheck(check: ZodStringCheck): ZodString;\n email(message?: errorUtil.ErrMessage): ZodString;\n url(message?: errorUtil.ErrMessage): ZodString;\n emoji(message?: errorUtil.ErrMessage): ZodString;\n uuid(message?: errorUtil.ErrMessage): ZodString;\n nanoid(message?: errorUtil.ErrMessage): ZodString;\n cuid(message?: errorUtil.ErrMessage): ZodString;\n cuid2(message?: errorUtil.ErrMessage): ZodString;\n ulid(message?: errorUtil.ErrMessage): ZodString;\n base64(message?: errorUtil.ErrMessage): ZodString;\n ip(\n options?:\n | string\n | {\n version?: 'v4' | 'v6';\n message?: string;\n },\n ): ZodString;\n datetime(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n },\n ): ZodString;\n date(message?: string): ZodString;\n time(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n },\n ): ZodString;\n duration(message?: errorUtil.ErrMessage): ZodString;\n regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;\n includes(\n value: string,\n options?: {\n message?: string;\n position?: number;\n },\n ): ZodString;\n startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n min(minLength: number, message?: errorUtil.ErrMessage): ZodString;\n max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;\n length(len: number, message?: errorUtil.ErrMessage): ZodString;\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message?: errorUtil.ErrMessage): ZodString;\n trim(): ZodString;\n toLowerCase(): ZodString;\n toUpperCase(): ZodString;\n get isDatetime(): boolean;\n get isDate(): boolean;\n get isTime(): boolean;\n get isDuration(): boolean;\n get isEmail(): boolean;\n get isURL(): boolean;\n get isEmoji(): boolean;\n get isUUID(): boolean;\n get isNANOID(): boolean;\n get isCUID(): boolean;\n get isCUID2(): boolean;\n get isULID(): boolean;\n get isIP(): boolean;\n get isBase64(): boolean;\n get minLength(): number | null;\n get maxLength(): number | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n}\ndeclare type ZodNumberCheck =\n | {\n kind: 'min';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'int';\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: number;\n message?: string;\n }\n | {\n kind: 'finite';\n message?: string;\n };\ninterface ZodNumberDef extends ZodTypeDef {\n checks: ZodNumberCheck[];\n typeName: ZodFirstPartyTypeKind.ZodNumber;\n coerce: boolean;\n}\ndeclare class ZodNumber extends ZodType<number, ZodNumberDef, number> {\n _parse(input: ParseInput): ParseReturnType<number>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n protected setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodNumber;\n _addCheck(check: ZodNumberCheck): ZodNumber;\n int(message?: errorUtil.ErrMessage): ZodNumber;\n positive(message?: errorUtil.ErrMessage): ZodNumber;\n negative(message?: errorUtil.ErrMessage): ZodNumber;\n nonpositive(message?: errorUtil.ErrMessage): ZodNumber;\n nonnegative(message?: errorUtil.ErrMessage): ZodNumber;\n multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n finite(message?: errorUtil.ErrMessage): ZodNumber;\n safe(message?: errorUtil.ErrMessage): ZodNumber;\n get minValue(): number | null;\n get maxValue(): number | null;\n get isInt(): boolean;\n get isFinite(): boolean;\n}\ndeclare type ZodBigIntCheck =\n | {\n kind: 'min';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: bigint;\n message?: string;\n };\ninterface ZodBigIntDef extends ZodTypeDef {\n checks: ZodBigIntCheck[];\n typeName: ZodFirstPartyTypeKind.ZodBigInt;\n coerce: boolean;\n}\ndeclare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {\n _parse(input: ParseInput): ParseReturnType<bigint>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n min: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n max: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n protected setLimit(kind: 'min' | 'max', value: bigint, inclusive: boolean, message?: string): ZodBigInt;\n _addCheck(check: ZodBigIntCheck): ZodBigInt;\n positive(message?: errorUtil.ErrMessage): ZodBigInt;\n negative(message?: errorUtil.ErrMessage): ZodBigInt;\n nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;\n nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;\n multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n get minValue(): bigint | null;\n get maxValue(): bigint | null;\n}\ninterface ZodBooleanDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodBoolean;\n coerce: boolean;\n}\ndeclare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {\n _parse(input: ParseInput): ParseReturnType<boolean>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n}\ndeclare type ZodDateCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n };\ninterface ZodDateDef extends ZodTypeDef {\n checks: ZodDateCheck[];\n coerce: boolean;\n typeName: ZodFirstPartyTypeKind.ZodDate;\n}\ndeclare class ZodDate extends ZodType<Date, ZodDateDef, Date> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n _addCheck(check: ZodDateCheck): ZodDate;\n min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n get minDate(): Date | null;\n get maxDate(): Date | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n}\ninterface ZodSymbolDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodSymbol;\n}\ndeclare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodSymbol;\n}\ninterface ZodUndefinedDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUndefined;\n}\ndeclare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n params?: RawCreateParams;\n static create: (params?: RawCreateParams) => ZodUndefined;\n}\ninterface ZodNullDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNull;\n}\ndeclare class ZodNull extends ZodType<null, ZodNullDef, null> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNull;\n}\ninterface ZodAnyDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodAny;\n}\ndeclare class ZodAny extends ZodType<any, ZodAnyDef, any> {\n _any: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodAny;\n}\ninterface ZodUnknownDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUnknown;\n}\ndeclare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {\n _unknown: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodUnknown;\n}\ninterface ZodNeverDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNever;\n}\ndeclare class ZodNever extends ZodType<never, ZodNeverDef, never> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNever;\n}\ninterface ZodVoidDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodVoid;\n}\ndeclare class ZodVoid extends ZodType<void, ZodVoidDef, void> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodVoid;\n}\ninterface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodArray;\n exactLength: {\n value: number;\n message?: string;\n } | null;\n minLength: {\n value: number;\n message?: string;\n } | null;\n maxLength: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare type ArrayCardinality = 'many' | 'atleastone';\ndeclare type arrayOutputType<\n T extends ZodTypeAny,\n Cardinality extends ArrayCardinality = 'many',\n> = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][];\ndeclare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> extends ZodType<\n arrayOutputType<T, Cardinality>,\n ZodArrayDef<T>,\n Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): T;\n min(minLength: number, message?: errorUtil.ErrMessage): this;\n max(maxLength: number, message?: errorUtil.ErrMessage): this;\n length(len: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodArray<T, 'atleastone'>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, 'many'>;\n}\ndeclare type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, 'atleastone'>;\ndeclare type UnknownKeysParam = 'passthrough' | 'strict' | 'strip';\ninterface ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodObject;\n shape: () => T;\n catchall: Catchall;\n unknownKeys: UnknownKeys;\n}\ndeclare type mergeTypes<A, B> = {\n [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never;\n};\ndeclare type objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> &\n CatchallOutput<Catchall> &\n PassthroughType<UnknownKeys>;\ndeclare type baseObjectOutputType<Shape extends ZodRawShape> = {\n [k in keyof Shape]: Shape[k]['_output'];\n};\ndeclare type objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;\ndeclare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{\n [k in keyof Shape]: Shape[k]['_input'];\n}>;\ndeclare type CatchallOutput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_output'];\n };\ndeclare type CatchallInput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_input'];\n };\ndeclare type PassthroughType<T extends UnknownKeysParam> = T extends 'passthrough'\n ? {\n [k: string]: unknown;\n }\n : unknown;\ndeclare type deoptional<T extends ZodTypeAny> =\n T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;\ndeclare type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;\ndeclare type noUnrecognized<Obj extends object, Shape extends object> = {\n [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;\n};\ndeclare class ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {\n private _cached;\n _getCached(): {\n shape: T;\n keys: string[];\n };\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get shape(): T;\n strict(message?: errorUtil.ErrMessage): ZodObject<T, 'strict', Catchall>;\n strip(): ZodObject<T, 'strip', Catchall>;\n passthrough(): ZodObject<T, 'passthrough', Catchall>;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n nonstrict: () => ZodObject<T, 'passthrough', Catchall>;\n extend<Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;\n /**\n * @deprecated Use `.extend` instead\n * */\n augment: <Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ) => ZodObject<\n objectUtil.extendShape<T, Augmentation>,\n UnknownKeys,\n Catchall,\n objectOutputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>,\n objectInputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>\n >;\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge<Incoming extends AnyZodObject, Augmentation extends Incoming['shape']>(\n merging: Incoming,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming['_def']['unknownKeys'], Incoming['_def']['catchall']>;\n setKey<Key extends string, Schema extends ZodTypeAny>(\n key: Key,\n schema: Schema,\n ): ZodObject<\n T & {\n [k in Key]: Schema;\n },\n UnknownKeys,\n Catchall\n >;\n catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;\n pick<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;\n omit<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;\n /**\n * @deprecated\n */\n deepPartial(): partialUtil.DeepPartial<this>;\n partial(): ZodObject<\n {\n [k in keyof T]: ZodOptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n partial<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n required(): ZodObject<\n {\n [k in keyof T]: deoptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n required<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;\n static create: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static strictCreate: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static lazycreate: <T_1 extends ZodRawShape>(\n shape: () => T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n}\ndeclare type AnyZodObject = ZodObject<any, any, any>;\ndeclare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;\ninterface ZodUnionDef<\n T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>,\n> extends ZodTypeDef {\n options: T;\n typeName: ZodFirstPartyTypeKind.ZodUnion;\n}\ndeclare class ZodUnion<T extends ZodUnionOptions> extends ZodType<\n T[number]['_output'],\n ZodUnionDef<T>,\n T[number]['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T_1,\n params?: RawCreateParams,\n ) => ZodUnion<T_1>;\n}\ndeclare type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<\n {\n [key in Discriminator]: ZodTypeAny;\n } & ZodRawShape,\n UnknownKeysParam,\n ZodTypeAny\n>;\ninterface ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> extends ZodTypeDef {\n discriminator: Discriminator;\n options: Options;\n optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;\n}\ndeclare class ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get discriminator(): Discriminator;\n get options(): Options;\n get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create<\n Discriminator extends string,\n Types extends [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]],\n >(\n discriminator: Discriminator,\n options: Types,\n params?: RawCreateParams,\n ): ZodDiscriminatedUnion<Discriminator, Types>;\n}\ninterface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n left: T;\n right: U;\n typeName: ZodFirstPartyTypeKind.ZodIntersection;\n}\ndeclare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<\n T['_output'] & U['_output'],\n ZodIntersectionDef<T, U>,\n T['_input'] & U['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(\n left: T_1,\n right: U_1,\n params?: RawCreateParams,\n ) => ZodIntersection<T_1, U_1>;\n}\ndeclare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\ndeclare type AssertArray<T> = T extends any[] ? T : never;\ndeclare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_output'] : never;\n}>;\ndeclare type OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['_output'][]] : OutputTypeOfTuple<T>;\ndeclare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_input'] : never;\n}>;\ndeclare type InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest['_input'][]] : InputTypeOfTuple<T>;\ninterface ZodTupleDef<\n T extends ZodTupleItems | [] = ZodTupleItems,\n Rest extends ZodTypeAny | null = null,\n> extends ZodTypeDef {\n items: T;\n rest: Rest;\n typeName: ZodFirstPartyTypeKind.ZodTuple;\n}\ndeclare type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;\ndeclare class ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get items(): T;\n rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;\n static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T_1,\n params?: RawCreateParams,\n ) => ZodTuple<T_1, null>;\n}\ninterface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodRecord;\n}\ndeclare type KeySchema = ZodType<string | number | symbol, any, any>;\ndeclare type RecordType<K extends string | number | symbol, V> = [string] extends [K]\n ? Record<K, V>\n : [number] extends [K]\n ? Record<K, V>\n : [symbol] extends [K]\n ? Record<K, V>\n : [BRAND<string | number | symbol>] extends [K]\n ? Record<K, V>\n : Partial<Record<K, V>>;\ndeclare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n RecordType<Key['_output'], Value['_output']>,\n ZodRecordDef<Key, Value>,\n RecordType<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): Value;\n static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;\n static create<Keys extends KeySchema, Value extends ZodTypeAny>(\n keySchema: Keys,\n valueType: Value,\n params?: RawCreateParams,\n ): ZodRecord<Keys, Value>;\n}\ninterface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodMap;\n}\ndeclare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Map<Key['_output'], Value['_output']>,\n ZodMapDef<Key, Value>,\n Map<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(\n keyType: Key_1,\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodMap<Key_1, Value_1>;\n}\ninterface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n typeName: ZodFirstPartyTypeKind.ZodSet;\n minSize: {\n value: number;\n message?: string;\n } | null;\n maxSize: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Set<Value['_output']>,\n ZodSetDef<Value>,\n Set<Value['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n min(minSize: number, message?: errorUtil.ErrMessage): this;\n max(maxSize: number, message?: errorUtil.ErrMessage): this;\n size(size: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;\n static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodSet<Value_1>;\n}\ninterface ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n args: Args;\n returns: Returns;\n typeName: ZodFirstPartyTypeKind.ZodFunction;\n}\ndeclare type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_input'] extends Array<any> ? (...args: Args['_input']) => Returns['_output'] : never;\ndeclare type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_output'] extends Array<any> ? (...args: Args['_output']) => Returns['_input'] : never;\ndeclare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<\n OuterTypeOfFunction<Args, Returns>,\n ZodFunctionDef<Args, Returns>,\n InnerTypeOfFunction<Args, Returns>\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n parameters(): Args;\n returnType(): Returns;\n args<Items extends Parameters<(typeof ZodTuple)['create']>[0]>(\n ...items: Items\n ): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;\n returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;\n implement<F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ): ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;\n validate: <F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ) => ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;\n static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(\n args: T,\n returns: U,\n params?: RawCreateParams,\n ): ZodFunction<T, U>;\n}\ninterface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n getter: () => T;\n typeName: ZodFirstPartyTypeKind.ZodLazy;\n}\ndeclare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {\n get schema(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;\n}\ninterface ZodLiteralDef<T = any> extends ZodTypeDef {\n value: T;\n typeName: ZodFirstPartyTypeKind.ZodLiteral;\n}\ndeclare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get value(): T;\n static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;\n}\ndeclare type ArrayKeys = keyof any[];\ndeclare type Indices<T> = Exclude<keyof T, ArrayKeys>;\ndeclare type EnumValues<T extends string = string> = readonly [T, ...T[]];\ndeclare type Values<T extends EnumValues> = {\n [k in T[number]]: k;\n};\ninterface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodEnum;\n}\ndeclare type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n};\ndeclare type FilterEnum<Values, ToExclude> = Values extends []\n ? []\n : Values extends [infer Head, ...infer Rest]\n ? Head extends ToExclude\n ? FilterEnum<Rest, ToExclude>\n : [Head, ...FilterEnum<Rest, ToExclude>]\n : never;\ndeclare type typecast<A, T> = A extends T ? A : never;\ndeclare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<Writeable<T>>;\ndeclare function createZodEnum<U extends string, T extends [U, ...U[]]>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<T>;\ndeclare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n get enum(): Values<T>;\n get Values(): Values<T>;\n get Enum(): Values<T>;\n extract<ToExtract extends readonly [T[number], ...T[number][]]>(\n values: ToExtract,\n newDef?: RawCreateParams,\n ): ZodEnum<Writeable<ToExtract>>;\n exclude<ToExclude extends readonly [T[number], ...T[number][]]>(\n values: ToExclude,\n newDef?: RawCreateParams,\n ): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;\n static create: typeof createZodEnum;\n}\ninterface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum;\n}\ndeclare type EnumLike = {\n [k: string]: string | number;\n [nu: number]: string;\n};\ndeclare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<T[keyof T]>;\n get enum(): T;\n static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;\n}\ninterface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodPromise;\n}\ndeclare class ZodPromise<T extends ZodTypeAny> extends ZodType<\n Promise<T['_output']>,\n ZodPromiseDef<T>,\n Promise<T['_input']>\n> {\n unwrap(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;\n}\ndeclare type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;\ndeclare type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;\ndeclare type RefinementEffect<T> = {\n type: 'refinement';\n refinement: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type TransformEffect<T> = {\n type: 'transform';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type PreprocessEffect<T> = {\n type: 'preprocess';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;\ninterface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n schema: T;\n typeName: ZodFirstPartyTypeKind.ZodEffects;\n effect: Effect<any>;\n}\ndeclare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<\n Output,\n ZodEffectsDef<T>,\n Input\n> {\n innerType(): T;\n sourceType(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], input<I>>;\n static createWithPreprocess: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], unknown>;\n}\n\ninterface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodOptional;\n}\ndeclare type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare class ZodOptional<T extends ZodTypeAny> extends ZodType<\n T['_output'] | undefined,\n ZodOptionalDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;\n}\ninterface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodNullable;\n}\ndeclare type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare class ZodNullable<T extends ZodTypeAny> extends ZodType<\n T['_output'] | null,\n ZodNullableDef<T>,\n T['_input'] | null\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;\n}\ninterface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n defaultValue: () => util.noUndefined<T['_input']>;\n typeName: ZodFirstPartyTypeKind.ZodDefault;\n}\ndeclare class ZodDefault<T extends ZodTypeAny> extends ZodType<\n util.noUndefined<T['_output']>,\n ZodDefaultDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeDefault(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n default: T_1['_input'] | (() => util.noUndefined<T_1['_input']>);\n },\n ) => ZodDefault<T_1>;\n}\ninterface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n catchValue: (ctx: { error: ZodError; input: unknown }) => T['_input'];\n typeName: ZodFirstPartyTypeKind.ZodCatch;\n}\ndeclare class ZodCatch<T extends ZodTypeAny> extends ZodType<T['_output'], ZodCatchDef<T>, unknown> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeCatch(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n catch: T_1['_output'] | (() => T_1['_output']);\n },\n ) => ZodCatch<T_1>;\n}\ninterface ZodNaNDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNaN;\n}\ndeclare class ZodNaN extends ZodType<number, ZodNaNDef, number> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create: (params?: RawCreateParams) => ZodNaN;\n}\ninterface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodBranded;\n}\ndeclare const BRAND: unique symbol;\ndeclare type BRAND<T extends string | number | symbol> = {\n [BRAND]: {\n [k in T]: true;\n };\n};\ndeclare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<\n T['_output'] & BRAND<B>,\n ZodBrandedDef<T>,\n T['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n unwrap(): T;\n}\ninterface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {\n in: A;\n out: B;\n typeName: ZodFirstPartyTypeKind.ZodPipeline;\n}\ndeclare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<\n B['_output'],\n ZodPipelineDef<A, B>,\n A['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;\n}\ndeclare type BuiltIn =\n | (((...args: any[]) => any) | (new (...args: any[]) => any))\n | {\n readonly [Symbol.toStringTag]: string;\n }\n | Date\n | Error\n | Generator\n | Promise<unknown>\n | RegExp;\ndeclare type MakeReadonly<T> =\n T extends Map<infer K, infer V>\n ? ReadonlyMap<K, V>\n : T extends Set<infer V>\n ? ReadonlySet<V>\n : T extends [infer Head, ...infer Tail]\n ? readonly [Head, ...Tail]\n : T extends Array<infer V>\n ? ReadonlyArray<V>\n : T extends BuiltIn\n ? T\n : Readonly<T>;\ninterface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodReadonly;\n}\ndeclare class ZodReadonly<T extends ZodTypeAny> extends ZodType<\n MakeReadonly<T['_output']>,\n ZodReadonlyDef<T>,\n MakeReadonly<T['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;\n unwrap(): T;\n}\ndeclare type CustomParams = CustomErrorParams & {\n fatal?: boolean;\n};\ndeclare function custom<T>(\n check?: (data: any) => any,\n params?: string | CustomParams | ((input: any) => CustomParams),\n /**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\n fatal?: boolean,\n): ZodType<T, ZodTypeDef, T>;\n\ndeclare const late: {\n object: <T extends ZodRawShape>(\n shape: () => T,\n params?: RawCreateParams,\n ) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n >;\n};\ndeclare enum ZodFirstPartyTypeKind {\n ZodString = 'ZodString',\n ZodNumber = 'ZodNumber',\n ZodNaN = 'ZodNaN',\n ZodBigInt = 'ZodBigInt',\n ZodBoolean = 'ZodBoolean',\n ZodDate = 'ZodDate',\n ZodSymbol = 'ZodSymbol',\n ZodUndefined = 'ZodUndefined',\n ZodNull = 'ZodNull',\n ZodAny = 'ZodAny',\n ZodUnknown = 'ZodUnknown',\n ZodNever = 'ZodNever',\n ZodVoid = 'ZodVoid',\n ZodArray = 'ZodArray',\n ZodObject = 'ZodObject',\n ZodUnion = 'ZodUnion',\n ZodDiscriminatedUnion = 'ZodDiscriminatedUnion',\n ZodIntersection = 'ZodIntersection',\n ZodTuple = 'ZodTuple',\n ZodRecord = 'ZodRecord',\n ZodMap = 'ZodMap',\n ZodSet = 'ZodSet',\n ZodFunction = 'ZodFunction',\n ZodLazy = 'ZodLazy',\n ZodLiteral = 'ZodLiteral',\n ZodEnum = 'ZodEnum',\n ZodEffects = 'ZodEffects',\n ZodNativeEnum = 'ZodNativeEnum',\n ZodOptional = 'ZodOptional',\n ZodNullable = 'ZodNullable',\n ZodDefault = 'ZodDefault',\n ZodCatch = 'ZodCatch',\n ZodPromise = 'ZodPromise',\n ZodBranded = 'ZodBranded',\n ZodPipeline = 'ZodPipeline',\n ZodReadonly = 'ZodReadonly',\n}\ndeclare type ZodFirstPartySchemaTypes =\n | ZodString\n | ZodNumber\n | ZodNaN\n | ZodBigInt\n | ZodBoolean\n | ZodDate\n | ZodUndefined\n | ZodNull\n | ZodAny\n | ZodUnknown\n | ZodNever\n | ZodVoid\n | ZodArray<any, any>\n | ZodObject<any, any, any>\n | ZodUnion<any>\n | ZodDiscriminatedUnion<any, any>\n | ZodIntersection<any, any>\n | ZodTuple<any, any>\n | ZodRecord<any, any>\n | ZodMap<any>\n | ZodSet<any>\n | ZodFunction<any, any>\n | ZodLazy<any>\n | ZodLiteral<any>\n | ZodEnum<any>\n | ZodEffects<any, any, any>\n | ZodNativeEnum<any>\n | ZodOptional<any>\n | ZodNullable<any>\n | ZodDefault<any>\n | ZodCatch<any>\n | ZodPromise<any>\n | ZodBranded<any, any>\n | ZodPipeline<any, any>\n | ZodReadonly<any>\n | ZodSymbol;\ndeclare abstract class Class {\n constructor(..._: any[]);\n}\ndeclare const instanceOfType: <T extends typeof Class>(\n cls: T,\n params?: CustomParams,\n) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;\ndeclare const stringType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n) => ZodString;\ndeclare const numberType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodNumber;\ndeclare const nanType: (params?: RawCreateParams) => ZodNaN;\ndeclare const bigIntType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBigInt;\ndeclare const booleanType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBoolean;\ndeclare const dateType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodDate;\ndeclare const symbolType: (params?: RawCreateParams) => ZodSymbol;\ndeclare const undefinedType: (params?: RawCreateParams) => ZodUndefined;\ndeclare const nullType: (params?: RawCreateParams) => ZodNull;\ndeclare const anyType: (params?: RawCreateParams) => ZodAny;\ndeclare const unknownType: (params?: RawCreateParams) => ZodUnknown;\ndeclare const neverType: (params?: RawCreateParams) => ZodNever;\ndeclare const voidType: (params?: RawCreateParams) => ZodVoid;\ndeclare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, 'many'>;\ndeclare const objectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const strictObjectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T,\n params?: RawCreateParams,\n) => ZodUnion<T>;\ndeclare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;\ndeclare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(\n left: T,\n right: U,\n params?: RawCreateParams,\n) => ZodIntersection<T, U>;\ndeclare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T,\n params?: RawCreateParams,\n) => ZodTuple<T, null>;\ndeclare const recordType: typeof ZodRecord.create;\ndeclare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(\n keyType: Key,\n valueType: Value,\n params?: RawCreateParams,\n) => ZodMap<Key, Value>;\ndeclare const setType: <Value extends ZodTypeAny = ZodTypeAny>(\n valueType: Value,\n params?: RawCreateParams,\n) => ZodSet<Value>;\ndeclare const functionType: typeof ZodFunction.create;\ndeclare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;\ndeclare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;\ndeclare const enumType: typeof createZodEnum;\ndeclare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;\ndeclare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;\ndeclare const effectsType: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], input<I>>;\ndeclare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;\ndeclare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;\ndeclare const preprocessType: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], unknown>;\ndeclare const pipelineType: typeof ZodPipeline.create;\ndeclare const ostring: () => ZodOptional<ZodString>;\ndeclare const onumber: () => ZodOptional<ZodNumber>;\ndeclare const oboolean: () => ZodOptional<ZodBoolean>;\ndeclare const coerce: {\n string: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n number: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n boolean: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n bigint: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n date: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n};\n\ndeclare const NEVER: never;\n\n//# sourceMappingURL=external.d.ts.map\n\ndeclare const z_setErrorMap: typeof setErrorMap;\ndeclare const z_getErrorMap: typeof getErrorMap;\ndeclare const z_makeIssue: typeof makeIssue;\ntype z_ParseParams = ParseParams;\ntype z_ParsePathComponent = ParsePathComponent;\ntype z_ParsePath = ParsePath;\ndeclare const z_EMPTY_PATH: typeof EMPTY_PATH;\ntype z_ParseContext = ParseContext;\ntype z_ParseInput = ParseInput;\ndeclare const z_addIssueToContext: typeof addIssueToContext;\ntype z_ObjectPair = ObjectPair;\ntype z_ParseStatus = ParseStatus;\ndeclare const z_ParseStatus: typeof ParseStatus;\ntype z_ParseResult = ParseResult;\ndeclare const z_INVALID: typeof INVALID;\ndeclare const z_DIRTY: typeof DIRTY;\ndeclare const z_OK: typeof OK;\ntype z_SyncParseReturnType<T = any> = SyncParseReturnType<T>;\ntype z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;\ntype z_ParseReturnType<T> = ParseReturnType<T>;\ndeclare const z_isAborted: typeof isAborted;\ndeclare const z_isDirty: typeof isDirty;\ndeclare const z_isValid: typeof isValid;\ndeclare const z_isAsync: typeof isAsync;\ntype z_Primitive = Primitive;\ntype z_Scalars = Scalars;\ndeclare const z_util: typeof util;\ndeclare const z_objectUtil: typeof objectUtil;\ntype z_ZodParsedType = ZodParsedType;\ndeclare const z_getParsedType: typeof getParsedType;\ndeclare const z_oboolean: typeof oboolean;\ndeclare const z_onumber: typeof onumber;\ndeclare const z_ostring: typeof ostring;\ntype z_RefinementCtx = RefinementCtx;\ntype z_ZodRawShape = ZodRawShape;\ntype z_ZodTypeAny = ZodTypeAny;\ntype z_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;\ntype z_input<T extends ZodType<any, any, any>> = input<T>;\ntype z_output<T extends ZodType<any, any, any>> = output<T>;\ntype z_CustomErrorParams = CustomErrorParams;\ntype z_ZodTypeDef = ZodTypeDef;\ntype z_RawCreateParams = RawCreateParams;\ntype z_ProcessedCreateParams = ProcessedCreateParams;\ntype z_SafeParseSuccess<Output> = SafeParseSuccess<Output>;\ntype z_SafeParseError<Input> = SafeParseError<Input>;\ntype z_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;\ntype z_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;\ndeclare const z_ZodType: typeof ZodType;\ntype z_IpVersion = IpVersion;\ntype z_ZodStringCheck = ZodStringCheck;\ntype z_ZodStringDef = ZodStringDef;\ndeclare const z_datetimeRegex: typeof datetimeRegex;\ntype z_ZodString = ZodString;\ndeclare const z_ZodString: typeof ZodString;\ntype z_ZodNumberCheck = ZodNumberCheck;\ntype z_ZodNumberDef = ZodNumberDef;\ntype z_ZodNumber = ZodNumber;\ndeclare const z_ZodNumber: typeof ZodNumber;\ntype z_ZodBigIntCheck = ZodBigIntCheck;\ntype z_ZodBigIntDef = ZodBigIntDef;\ntype z_ZodBigInt = ZodBigInt;\ndeclare const z_ZodBigInt: typeof ZodBigInt;\ntype z_ZodBooleanDef = ZodBooleanDef;\ntype z_ZodBoolean = ZodBoolean;\ndeclare const z_ZodBoolean: typeof ZodBoolean;\ntype z_ZodDateCheck = ZodDateCheck;\ntype z_ZodDateDef = ZodDateDef;\ntype z_ZodDate = ZodDate;\ndeclare const z_ZodDate: typeof ZodDate;\ntype z_ZodSymbolDef = ZodSymbolDef;\ntype z_ZodSymbol = ZodSymbol;\ndeclare const z_ZodSymbol: typeof ZodSymbol;\ntype z_ZodUndefinedDef = ZodUndefinedDef;\ntype z_ZodUndefined = ZodUndefined;\ndeclare const z_ZodUndefined: typeof ZodUndefined;\ntype z_ZodNullDef = ZodNullDef;\ntype z_ZodNull = ZodNull;\ndeclare const z_ZodNull: typeof ZodNull;\ntype z_ZodAnyDef = ZodAnyDef;\ntype z_ZodAny = ZodAny;\ndeclare const z_ZodAny: typeof ZodAny;\ntype z_ZodUnknownDef = ZodUnknownDef;\ntype z_ZodUnknown = ZodUnknown;\ndeclare const z_ZodUnknown: typeof ZodUnknown;\ntype z_ZodNeverDef = ZodNeverDef;\ntype z_ZodNever = ZodNever;\ndeclare const z_ZodNever: typeof ZodNever;\ntype z_ZodVoidDef = ZodVoidDef;\ntype z_ZodVoid = ZodVoid;\ndeclare const z_ZodVoid: typeof ZodVoid;\ntype z_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;\ntype z_ArrayCardinality = ArrayCardinality;\ntype z_arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = arrayOutputType<\n T,\n Cardinality\n>;\ntype z_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = ZodArray<T, Cardinality>;\ndeclare const z_ZodArray: typeof ZodArray;\ntype z_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;\ntype z_UnknownKeysParam = UnknownKeysParam;\ntype z_ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> = ZodObjectDef<T, UnknownKeys, Catchall>;\ntype z_mergeTypes<A, B> = mergeTypes<A, B>;\ntype z_objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectOutputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;\ntype z_objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectInputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;\ntype z_CatchallOutput<T extends ZodType> = CatchallOutput<T>;\ntype z_CatchallInput<T extends ZodType> = CatchallInput<T>;\ntype z_PassthroughType<T extends UnknownKeysParam> = PassthroughType<T>;\ntype z_deoptional<T extends ZodTypeAny> = deoptional<T>;\ntype z_SomeZodObject = SomeZodObject;\ntype z_noUnrecognized<Obj extends object, Shape extends object> = noUnrecognized<Obj, Shape>;\ntype z_ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;\ndeclare const z_ZodObject: typeof ZodObject;\ntype z_AnyZodObject = AnyZodObject;\ntype z_ZodUnionOptions = ZodUnionOptions;\ntype z_ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> = ZodUnionDef<T>;\ntype z_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;\ndeclare const z_ZodUnion: typeof ZodUnion;\ntype z_ZodDiscriminatedUnionOption<Discriminator extends string> = ZodDiscriminatedUnionOption<Discriminator>;\ntype z_ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> = ZodDiscriminatedUnionDef<Discriminator, Options>;\ntype z_ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> = ZodDiscriminatedUnion<Discriminator, Options>;\ndeclare const z_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;\ntype z_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<\n T,\n U\n>;\ntype z_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;\ndeclare const z_ZodIntersection: typeof ZodIntersection;\ntype z_ZodTupleItems = ZodTupleItems;\ntype z_AssertArray<T> = AssertArray<T>;\ntype z_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;\ntype z_OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = OutputTypeOfTupleWithRest<T, Rest>;\ntype z_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;\ntype z_InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = InputTypeOfTupleWithRest<T, Rest>;\ntype z_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<\n T,\n Rest\n>;\ntype z_AnyZodTuple = AnyZodTuple;\ntype z_ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> = ZodTuple<T, Rest>;\ndeclare const z_ZodTuple: typeof ZodTuple;\ntype z_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<\n Key,\n Value\n>;\ntype z_KeySchema = KeySchema;\ntype z_RecordType<K extends string | number | symbol, V> = RecordType<K, V>;\ntype z_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;\ndeclare const z_ZodRecord: typeof ZodRecord;\ntype z_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;\ntype z_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;\ndeclare const z_ZodMap: typeof ZodMap;\ntype z_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;\ntype z_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;\ndeclare const z_ZodSet: typeof ZodSet;\ntype z_ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> = ZodFunctionDef<Args, Returns>;\ntype z_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<\n Args,\n Returns\n>;\ntype z_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<\n Args,\n Returns\n>;\ntype z_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;\ndeclare const z_ZodFunction: typeof ZodFunction;\ntype z_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;\ntype z_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;\ndeclare const z_ZodLazy: typeof ZodLazy;\ntype z_ZodLiteralDef<T = any> = ZodLiteralDef<T>;\ntype z_ZodLiteral<T> = ZodLiteral<T>;\ndeclare const z_ZodLiteral: typeof ZodLiteral;\ntype z_ArrayKeys = ArrayKeys;\ntype z_Indices<T> = Indices<T>;\ntype z_EnumValues<T extends string = string> = EnumValues<T>;\ntype z_Values<T extends EnumValues> = Values<T>;\ntype z_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;\ntype z_Writeable<T> = Writeable<T>;\ntype z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;\ntype z_typecast<A, T> = typecast<A, T>;\ntype z_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;\ndeclare const z_ZodEnum: typeof ZodEnum;\ntype z_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;\ntype z_EnumLike = EnumLike;\ntype z_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;\ndeclare const z_ZodNativeEnum: typeof ZodNativeEnum;\ntype z_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;\ntype z_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;\ndeclare const z_ZodPromise: typeof ZodPromise;\ntype z_Refinement<T> = Refinement<T>;\ntype z_SuperRefinement<T> = SuperRefinement<T>;\ntype z_RefinementEffect<T> = RefinementEffect<T>;\ntype z_TransformEffect<T> = TransformEffect<T>;\ntype z_PreprocessEffect<T> = PreprocessEffect<T>;\ntype z_Effect<T> = Effect<T>;\ntype z_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;\ntype z_ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> = ZodEffects<T, Output, Input>;\ndeclare const z_ZodEffects: typeof ZodEffects;\ntype z_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;\ntype z_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;\ntype z_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare const z_ZodOptional: typeof ZodOptional;\ntype z_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;\ntype z_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;\ntype z_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare const z_ZodNullable: typeof ZodNullable;\ntype z_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;\ntype z_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;\ndeclare const z_ZodDefault: typeof ZodDefault;\ntype z_ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> = ZodCatchDef<T>;\ntype z_ZodCatch<T extends ZodTypeAny> = ZodCatch<T>;\ndeclare const z_ZodCatch: typeof ZodCatch;\ntype z_ZodNaNDef = ZodNaNDef;\ntype z_ZodNaN = ZodNaN;\ndeclare const z_ZodNaN: typeof ZodNaN;\ntype z_ZodBrandedDef<T extends ZodTypeAny> = ZodBrandedDef<T>;\ntype z_BRAND<T extends string | number | symbol> = BRAND<T>;\ntype z_ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> = ZodBranded<T, B>;\ndeclare const z_ZodBranded: typeof ZodBranded;\ntype z_ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipelineDef<A, B>;\ntype z_ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipeline<A, B>;\ndeclare const z_ZodPipeline: typeof ZodPipeline;\ntype z_ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> = ZodReadonlyDef<T>;\ntype z_ZodReadonly<T extends ZodTypeAny> = ZodReadonly<T>;\ndeclare const z_ZodReadonly: typeof ZodReadonly;\ndeclare const z_custom: typeof custom;\ndeclare const z_late: typeof late;\ntype z_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;\ndeclare const z_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;\ntype z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;\ndeclare const z_coerce: typeof coerce;\ndeclare const z_NEVER: typeof NEVER;\ntype z_inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = inferFlattenedErrors<T, U>;\ntype z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;\ntype z_ZodIssueCode = ZodIssueCode;\ntype z_ZodIssueBase = ZodIssueBase;\ntype z_ZodInvalidTypeIssue = ZodInvalidTypeIssue;\ntype z_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue;\ntype z_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;\ntype z_ZodInvalidUnionIssue = ZodInvalidUnionIssue;\ntype z_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;\ntype z_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;\ntype z_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;\ntype z_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;\ntype z_ZodInvalidDateIssue = ZodInvalidDateIssue;\ntype z_StringValidation = StringValidation;\ntype z_ZodInvalidStringIssue = ZodInvalidStringIssue;\ntype z_ZodTooSmallIssue = ZodTooSmallIssue;\ntype z_ZodTooBigIssue = ZodTooBigIssue;\ntype z_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;\ntype z_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;\ntype z_ZodNotFiniteIssue = ZodNotFiniteIssue;\ntype z_ZodCustomIssue = ZodCustomIssue;\ntype z_DenormalizedError = DenormalizedError;\ntype z_ZodIssueOptionalMessage = ZodIssueOptionalMessage;\ntype z_ZodIssue = ZodIssue;\ndeclare const z_quotelessJson: typeof quotelessJson;\ntype z_ZodFormattedError<T, U = string> = ZodFormattedError<T, U>;\ntype z_inferFormattedError<T extends ZodType<any, any, any>, U = string> = inferFormattedError<T, U>;\ntype z_ZodError<T = any> = ZodError<T>;\ndeclare const z_ZodError: typeof ZodError;\ntype z_IssueData = IssueData;\ntype z_ErrorMapCtx = ErrorMapCtx;\ntype z_ZodErrorMap = ZodErrorMap;\ndeclare namespace z {\n export {\n errorMap as defaultErrorMap,\n z_setErrorMap as setErrorMap,\n z_getErrorMap as getErrorMap,\n z_makeIssue as makeIssue,\n type z_ParseParams as ParseParams,\n type z_ParsePathComponent as ParsePathComponent,\n type z_ParsePath as ParsePath,\n z_EMPTY_PATH as EMPTY_PATH,\n type z_ParseContext as ParseContext,\n type z_ParseInput as ParseInput,\n z_addIssueToContext as addIssueToContext,\n type z_ObjectPair as ObjectPair,\n z_ParseStatus as ParseStatus,\n type z_ParseResult as ParseResult,\n z_INVALID as INVALID,\n z_DIRTY as DIRTY,\n z_OK as OK,\n type z_SyncParseReturnType as SyncParseReturnType,\n type z_AsyncParseReturnType as AsyncParseReturnType,\n type z_ParseReturnType as ParseReturnType,\n z_isAborted as isAborted,\n z_isDirty as isDirty,\n z_isValid as isValid,\n z_isAsync as isAsync,\n type z_Primitive as Primitive,\n type z_Scalars as Scalars,\n z_util as util,\n z_objectUtil as objectUtil,\n type z_ZodParsedType as ZodParsedType,\n z_getParsedType as getParsedType,\n type TypeOf as infer,\n ZodEffects as ZodTransformer,\n ZodType as Schema,\n ZodType as ZodSchema,\n anyType as any,\n arrayType as array,\n bigIntType as bigint,\n booleanType as boolean,\n dateType as date,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n instanceOfType as instanceof,\n intersectionType as intersection,\n lazyType as lazy,\n literalType as literal,\n mapType as map,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n z_oboolean as oboolean,\n z_onumber as onumber,\n optionalType as optional,\n z_ostring as ostring,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n recordType as record,\n setType as set,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n voidType as void,\n type z_RefinementCtx as RefinementCtx,\n type z_ZodRawShape as ZodRawShape,\n type z_ZodTypeAny as ZodTypeAny,\n type z_TypeOf as TypeOf,\n type z_input as input,\n type z_output as output,\n type z_CustomErrorParams as CustomErrorParams,\n type z_ZodTypeDef as ZodTypeDef,\n type z_RawCreateParams as RawCreateParams,\n type z_ProcessedCreateParams as ProcessedCreateParams,\n type z_SafeParseSuccess as SafeParseSuccess,\n type z_SafeParseError as SafeParseError,\n type z_SafeParseReturnType as SafeParseReturnType,\n z_ZodType as ZodType,\n type z_IpVersion as IpVersion,\n type z_ZodStringCheck as ZodStringCheck,\n type z_ZodStringDef as ZodStringDef,\n z_datetimeRegex as datetimeRegex,\n z_ZodString as ZodString,\n type z_ZodNumberCheck as ZodNumberCheck,\n type z_ZodNumberDef as ZodNumberDef,\n z_ZodNumber as ZodNumber,\n type z_ZodBigIntCheck as ZodBigIntCheck,\n type z_ZodBigIntDef as ZodBigIntDef,\n z_ZodBigInt as ZodBigInt,\n type z_ZodBooleanDef as ZodBooleanDef,\n z_ZodBoolean as ZodBoolean,\n type z_ZodDateCheck as ZodDateCheck,\n type z_ZodDateDef as ZodDateDef,\n z_ZodDate as ZodDate,\n type z_ZodSymbolDef as ZodSymbolDef,\n z_ZodSymbol as ZodSymbol,\n type z_ZodUndefinedDef as ZodUndefinedDef,\n z_ZodUndefined as ZodUndefined,\n type z_ZodNullDef as ZodNullDef,\n z_ZodNull as ZodNull,\n type z_ZodAnyDef as ZodAnyDef,\n z_ZodAny as ZodAny,\n type z_ZodUnknownDef as ZodUnknownDef,\n z_ZodUnknown as ZodUnknown,\n type z_ZodNeverDef as ZodNeverDef,\n z_ZodNever as ZodNever,\n type z_ZodVoidDef as ZodVoidDef,\n z_ZodVoid as ZodVoid,\n type z_ZodArrayDef as ZodArrayDef,\n type z_ArrayCardinality as ArrayCardinality,\n type z_arrayOutputType as arrayOutputType,\n z_ZodArray as ZodArray,\n type z_ZodNonEmptyArray as ZodNonEmptyArray,\n type z_UnknownKeysParam as UnknownKeysParam,\n type z_ZodObjectDef as ZodObjectDef,\n type z_mergeTypes as mergeTypes,\n type z_objectOutputType as objectOutputType,\n type z_baseObjectOutputType as baseObjectOutputType,\n type z_objectInputType as objectInputType,\n type z_baseObjectInputType as baseObjectInputType,\n type z_CatchallOutput as CatchallOutput,\n type z_CatchallInput as CatchallInput,\n type z_PassthroughType as PassthroughType,\n type z_deoptional as deoptional,\n type z_SomeZodObject as SomeZodObject,\n type z_noUnrecognized as noUnrecognized,\n z_ZodObject as ZodObject,\n type z_AnyZodObject as AnyZodObject,\n type z_ZodUnionOptions as ZodUnionOptions,\n type z_ZodUnionDef as ZodUnionDef,\n z_ZodUnion as ZodUnion,\n type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption,\n type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef,\n z_ZodDiscriminatedUnion as ZodDiscriminatedUnion,\n type z_ZodIntersectionDef as ZodIntersectionDef,\n z_ZodIntersection as ZodIntersection,\n type z_ZodTupleItems as ZodTupleItems,\n type z_AssertArray as AssertArray,\n type z_OutputTypeOfTuple as OutputTypeOfTuple,\n type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest,\n type z_InputTypeOfTuple as InputTypeOfTuple,\n type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest,\n type z_ZodTupleDef as ZodTupleDef,\n type z_AnyZodTuple as AnyZodTuple,\n z_ZodTuple as ZodTuple,\n type z_ZodRecordDef as ZodRecordDef,\n type z_KeySchema as KeySchema,\n type z_RecordType as RecordType,\n z_ZodRecord as ZodRecord,\n type z_ZodMapDef as ZodMapDef,\n z_ZodMap as ZodMap,\n type z_ZodSetDef as ZodSetDef,\n z_ZodSet as ZodSet,\n type z_ZodFunctionDef as ZodFunctionDef,\n type z_OuterTypeOfFunction as OuterTypeOfFunction,\n type z_InnerTypeOfFunction as InnerTypeOfFunction,\n z_ZodFunction as ZodFunction,\n type z_ZodLazyDef as ZodLazyDef,\n z_ZodLazy as ZodLazy,\n type z_ZodLiteralDef as ZodLiteralDef,\n z_ZodLiteral as ZodLiteral,\n type z_ArrayKeys as ArrayKeys,\n type z_Indices as Indices,\n type z_EnumValues as EnumValues,\n type z_Values as Values,\n type z_ZodEnumDef as ZodEnumDef,\n type z_Writeable as Writeable,\n type z_FilterEnum as FilterEnum,\n type z_typecast as typecast,\n z_ZodEnum as ZodEnum,\n type z_ZodNativeEnumDef as ZodNativeEnumDef,\n type z_EnumLike as EnumLike,\n z_ZodNativeEnum as ZodNativeEnum,\n type z_ZodPromiseDef as ZodPromiseDef,\n z_ZodPromise as ZodPromise,\n type z_Refinement as Refinement,\n type z_SuperRefinement as SuperRefinement,\n type z_RefinementEffect as RefinementEffect,\n type z_TransformEffect as TransformEffect,\n type z_PreprocessEffect as PreprocessEffect,\n type z_Effect as Effect,\n type z_ZodEffectsDef as ZodEffectsDef,\n z_ZodEffects as ZodEffects,\n type z_ZodOptionalDef as ZodOptionalDef,\n type z_ZodOptionalType as ZodOptionalType,\n z_ZodOptional as ZodOptional,\n type z_ZodNullableDef as ZodNullableDef,\n type z_ZodNullableType as ZodNullableType,\n z_ZodNullable as ZodNullable,\n type z_ZodDefaultDef as ZodDefaultDef,\n z_ZodDefault as ZodDefault,\n type z_ZodCatchDef as ZodCatchDef,\n z_ZodCatch as ZodCatch,\n type z_ZodNaNDef as ZodNaNDef,\n z_ZodNaN as ZodNaN,\n type z_ZodBrandedDef as ZodBrandedDef,\n type z_BRAND as BRAND,\n z_ZodBranded as ZodBranded,\n type z_ZodPipelineDef as ZodPipelineDef,\n z_ZodPipeline as ZodPipeline,\n type z_ZodReadonlyDef as ZodReadonlyDef,\n z_ZodReadonly as ZodReadonly,\n z_custom as custom,\n z_late as late,\n z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind,\n type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes,\n z_coerce as coerce,\n z_NEVER as NEVER,\n type z_inferFlattenedErrors as inferFlattenedErrors,\n type z_typeToFlattenedError as typeToFlattenedError,\n type z_ZodIssueCode as ZodIssueCode,\n type z_ZodIssueBase as ZodIssueBase,\n type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue,\n type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue,\n type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue,\n type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue,\n type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue,\n type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue,\n type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue,\n type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue,\n type z_ZodInvalidDateIssue as ZodInvalidDateIssue,\n type z_StringValidation as StringValidation,\n type z_ZodInvalidStringIssue as ZodInvalidStringIssue,\n type z_ZodTooSmallIssue as ZodTooSmallIssue,\n type z_ZodTooBigIssue as ZodTooBigIssue,\n type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue,\n type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue,\n type z_ZodNotFiniteIssue as ZodNotFiniteIssue,\n type z_ZodCustomIssue as ZodCustomIssue,\n type z_DenormalizedError as DenormalizedError,\n type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage,\n type z_ZodIssue as ZodIssue,\n z_quotelessJson as quotelessJson,\n type z_ZodFormattedError as ZodFormattedError,\n type z_inferFormattedError as inferFormattedError,\n z_ZodError as ZodError,\n type z_IssueData as IssueData,\n type z_ErrorMapCtx as ErrorMapCtx,\n type z_ZodErrorMap as ZodErrorMap,\n };\n}\n\n//# sourceMappingURL=index.d.ts.map\n\nexport {\n type AnyZodObject,\n type AnyZodTuple,\n type ArrayCardinality,\n type ArrayKeys,\n type AssertArray,\n type AsyncParseReturnType,\n BRAND,\n type CatchallInput,\n type CatchallOutput,\n type CustomErrorParams,\n DIRTY,\n type DenormalizedError,\n EMPTY_PATH,\n type Effect,\n type EnumLike,\n type EnumValues,\n type ErrorMapCtx,\n type FilterEnum,\n INVALID,\n type Indices,\n type InnerTypeOfFunction,\n type InputTypeOfTuple,\n type InputTypeOfTupleWithRest,\n type IpVersion,\n type IssueData,\n type KeySchema,\n NEVER,\n OK,\n type ObjectPair,\n type OuterTypeOfFunction,\n type OutputTypeOfTuple,\n type OutputTypeOfTupleWithRest,\n type ParseContext,\n type ParseInput,\n type ParseParams,\n type ParsePath,\n type ParsePathComponent,\n type ParseResult,\n type ParseReturnType,\n ParseStatus,\n type PassthroughType,\n type PreprocessEffect,\n type Primitive,\n type ProcessedCreateParams,\n type RawCreateParams,\n type RecordType,\n type Refinement,\n type RefinementCtx,\n type RefinementEffect,\n type SafeParseError,\n type SafeParseReturnType,\n type SafeParseSuccess,\n type Scalars,\n ZodType as Schema,\n type SomeZodObject,\n type StringValidation,\n type SuperRefinement,\n type SyncParseReturnType,\n type TransformEffect,\n type TypeOf,\n type UnknownKeysParam,\n type Values,\n type Writeable,\n ZodAny,\n type ZodAnyDef,\n ZodArray,\n type ZodArrayDef,\n ZodBigInt,\n type ZodBigIntCheck,\n type ZodBigIntDef,\n ZodBoolean,\n type ZodBooleanDef,\n ZodBranded,\n type ZodBrandedDef,\n ZodCatch,\n type ZodCatchDef,\n type ZodCustomIssue,\n ZodDate,\n type ZodDateCheck,\n type ZodDateDef,\n ZodDefault,\n type ZodDefaultDef,\n ZodDiscriminatedUnion,\n type ZodDiscriminatedUnionDef,\n type ZodDiscriminatedUnionOption,\n ZodEffects,\n type ZodEffectsDef,\n ZodEnum,\n type ZodEnumDef,\n ZodError,\n type ZodErrorMap,\n type ZodFirstPartySchemaTypes,\n ZodFirstPartyTypeKind,\n type ZodFormattedError,\n ZodFunction,\n type ZodFunctionDef,\n ZodIntersection,\n type ZodIntersectionDef,\n type ZodInvalidArgumentsIssue,\n type ZodInvalidDateIssue,\n type ZodInvalidEnumValueIssue,\n type ZodInvalidIntersectionTypesIssue,\n type ZodInvalidLiteralIssue,\n type ZodInvalidReturnTypeIssue,\n type ZodInvalidStringIssue,\n type ZodInvalidTypeIssue,\n type ZodInvalidUnionDiscriminatorIssue,\n type ZodInvalidUnionIssue,\n type ZodIssue,\n type ZodIssueBase,\n ZodIssueCode,\n type ZodIssueOptionalMessage,\n ZodLazy,\n type ZodLazyDef,\n ZodLiteral,\n type ZodLiteralDef,\n ZodMap,\n type ZodMapDef,\n ZodNaN,\n type ZodNaNDef,\n ZodNativeEnum,\n type ZodNativeEnumDef,\n ZodNever,\n type ZodNeverDef,\n type ZodNonEmptyArray,\n type ZodNotFiniteIssue,\n type ZodNotMultipleOfIssue,\n ZodNull,\n type ZodNullDef,\n ZodNullable,\n type ZodNullableDef,\n type ZodNullableType,\n ZodNumber,\n type ZodNumberCheck,\n type ZodNumberDef,\n ZodObject,\n type ZodObjectDef,\n ZodOptional,\n type ZodOptionalDef,\n type ZodOptionalType,\n ZodParsedType,\n ZodPipeline,\n type ZodPipelineDef,\n ZodPromise,\n type ZodPromiseDef,\n type ZodRawShape,\n ZodReadonly,\n type ZodReadonlyDef,\n ZodRecord,\n type ZodRecordDef,\n ZodType as ZodSchema,\n ZodSet,\n type ZodSetDef,\n ZodString,\n type ZodStringCheck,\n type ZodStringDef,\n ZodSymbol,\n type ZodSymbolDef,\n type ZodTooBigIssue,\n type ZodTooSmallIssue,\n ZodEffects as ZodTransformer,\n ZodTuple,\n type ZodTupleDef,\n type ZodTupleItems,\n ZodType,\n type ZodTypeAny,\n type ZodTypeDef,\n ZodUndefined,\n type ZodUndefinedDef,\n ZodUnion,\n type ZodUnionDef,\n type ZodUnionOptions,\n ZodUnknown,\n type ZodUnknownDef,\n type ZodUnrecognizedKeysIssue,\n ZodVoid,\n type ZodVoidDef,\n addIssueToContext,\n anyType as any,\n arrayType as array,\n type arrayOutputType,\n type baseObjectInputType,\n type baseObjectOutputType,\n bigIntType as bigint,\n booleanType as boolean,\n coerce,\n custom,\n dateType as date,\n datetimeRegex,\n z as default,\n errorMap as defaultErrorMap,\n type deoptional,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n getErrorMap,\n getParsedType,\n type TypeOf as infer,\n type inferFlattenedErrors,\n type inferFormattedError,\n type input,\n instanceOfType as instanceof,\n intersectionType as intersection,\n isAborted,\n isAsync,\n isDirty,\n isValid,\n late,\n lazyType as lazy,\n literalType as literal,\n makeIssue,\n mapType as map,\n type mergeTypes,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n type noUnrecognized,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n type objectInputType,\n type objectOutputType,\n objectUtil,\n oboolean,\n onumber,\n optionalType as optional,\n ostring,\n type output,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n quotelessJson,\n recordType as record,\n setType as set,\n setErrorMap,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n type typeToFlattenedError,\n type typecast,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n util,\n voidType as void,\n z,\n};\n",
|
|
11310
|
+
documentationUrl: "https://zod.dev/"
|
|
11311
|
+
}
|
|
11312
|
+
], _h = { globals: { "global.d.ts": hh } }, vh = mh, yh = () => {
|
|
11268
11313
|
try {
|
|
11269
11314
|
return !1;
|
|
11270
11315
|
} catch {
|
|
11271
11316
|
return !1;
|
|
11272
11317
|
}
|
|
11273
|
-
},
|
|
11318
|
+
}, bh = (e, t) => {
|
|
11274
11319
|
console.warn(`[seal-editor] resolveCustomNode: ${e.length} specs tie on rank for ${t} (kinds: ${e.map((e) => e.kind).join(", ")}) — declaration order wins; declare explicit \`rank\` to make precedence deterministic.`);
|
|
11275
|
-
},
|
|
11320
|
+
}, xh = (e, t) => (t.rank ?? 0) - (e.rank ?? 0), Sh = (e, t) => {
|
|
11276
11321
|
if (typeof e.tester != "function") return !0;
|
|
11277
11322
|
try {
|
|
11278
11323
|
return !!e.tester(t);
|
|
@@ -11280,7 +11325,7 @@ var fh = () => {
|
|
|
11280
11325
|
return !1;
|
|
11281
11326
|
}
|
|
11282
11327
|
};
|
|
11283
|
-
function
|
|
11328
|
+
function Ch(e, t) {
|
|
11284
11329
|
let n = Array.isArray(e) ? e : [];
|
|
11285
11330
|
if (n.length === 0) return;
|
|
11286
11331
|
let r = typeof t.kind == "string" && t.kind ? t.kind : void 0, i = {
|
|
@@ -11292,15 +11337,15 @@ function gh(e, t) {
|
|
|
11292
11337
|
if (r) {
|
|
11293
11338
|
let e = n.filter((e) => e.kind === r);
|
|
11294
11339
|
if (e.length > 0) {
|
|
11295
|
-
e.length > 1 && (e.sort(
|
|
11296
|
-
let t = e.find((e) =>
|
|
11340
|
+
e.length > 1 && (e.sort(xh), yh() && e[0].rank === e[1].rank && Sh(e[0], i) === Sh(e[1], i) && bh(e, `kind "${r}"`));
|
|
11341
|
+
let t = e.find((e) => Sh(e, i));
|
|
11297
11342
|
if (t) return t;
|
|
11298
11343
|
}
|
|
11299
11344
|
}
|
|
11300
|
-
let a = n.filter((e) => e.kind !== r && typeof e.tester == "function" &&
|
|
11301
|
-
if (a.length !== 0) return a.length > 1 && (a.sort(
|
|
11345
|
+
let a = n.filter((e) => e.kind !== r && typeof e.tester == "function" && Sh(e, i));
|
|
11346
|
+
if (a.length !== 0) return a.length > 1 && (a.sort(xh), yh() && a[0].rank === a[1].rank && bh(a, `tester match on kind "${r}"`)), a[0];
|
|
11302
11347
|
}
|
|
11303
|
-
function
|
|
11348
|
+
function wh(e) {
|
|
11304
11349
|
return {
|
|
11305
11350
|
namespace: e.namespace,
|
|
11306
11351
|
version: e.version,
|
|
@@ -11319,7 +11364,7 @@ function _h(e) {
|
|
|
11319
11364
|
}
|
|
11320
11365
|
//#endregion
|
|
11321
11366
|
//#region src/helpers/node-type.ts
|
|
11322
|
-
var
|
|
11367
|
+
var Th = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({ Object: {} }), Eh = (e, { attachGlobals: t = !0, disabled: n = !1 } = {}) => {
|
|
11323
11368
|
let r = $(({ nodeTypes: e, globalType: t }) => {
|
|
11324
11369
|
if (Ms() && !n) return {
|
|
11325
11370
|
nodeTypes: e,
|
|
@@ -11328,18 +11373,18 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11328
11373
|
});
|
|
11329
11374
|
return L(() => {
|
|
11330
11375
|
if (!r?.nodeTypes) return;
|
|
11331
|
-
let n =
|
|
11376
|
+
let n = Th(r.nodeTypes, e);
|
|
11332
11377
|
return t && Object.entries(r?.globalType ?? {}).forEach(([e, t]) => n.set(e, t)), n;
|
|
11333
11378
|
}, [
|
|
11334
11379
|
r?.globalType,
|
|
11335
11380
|
r?.nodeTypes,
|
|
11336
11381
|
t
|
|
11337
11382
|
]);
|
|
11338
|
-
},
|
|
11339
|
-
|
|
11383
|
+
}, Dh = (e) => e ? Array.from(e).map((e) => e + "̶").join("") : "", Oh = (e, t) => [
|
|
11384
|
+
Dh(t),
|
|
11340
11385
|
"->",
|
|
11341
11386
|
e
|
|
11342
|
-
].join(" "),
|
|
11387
|
+
].join(" "), kh = (e, t) => (e ?? "").trim() === (t ?? "").trim(), Ah = (e, t, n = {}) => {
|
|
11343
11388
|
let { idField: r = "id", compareFields: i } = n, a = (e) => e[r] || e._id, o = new Map(t.map((e, t) => [a(e), {
|
|
11344
11389
|
...e,
|
|
11345
11390
|
index: t
|
|
@@ -11399,7 +11444,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11399
11444
|
});
|
|
11400
11445
|
}
|
|
11401
11446
|
}), c.map(({ originalIndex: e, isRemoved: t, ...n }) => n);
|
|
11402
|
-
},
|
|
11447
|
+
}, jh = (e, t) => {
|
|
11403
11448
|
if (!e) return [];
|
|
11404
11449
|
let n = (e.inputs ?? []).map((e) => e?.id).filter((e) => !!e);
|
|
11405
11450
|
if (n.length === 0 || t.length === 0) return [];
|
|
@@ -11414,13 +11459,13 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11414
11459
|
return typeof n == "string" ? n.trim().length > 0 : n != null;
|
|
11415
11460
|
}).length
|
|
11416
11461
|
}));
|
|
11417
|
-
},
|
|
11462
|
+
}, Mh = (e, { trace: t, decisionGraph: n }) => ({
|
|
11418
11463
|
data: Object.values(t).find((t) => t.id === e)?.input,
|
|
11419
11464
|
$nodes: Object.fromEntries(Object.values(t).map((e) => {
|
|
11420
11465
|
let t = n.nodes.find((t) => t.id === e.id);
|
|
11421
11466
|
return !t || t.type === "outputNode" ? null : [e.name, e.output];
|
|
11422
11467
|
}).filter((e) => !!e))
|
|
11423
|
-
}),
|
|
11468
|
+
}), Nh = ({ id: e }) => {
|
|
11424
11469
|
let t = nh(), n = R(null), r = R(null);
|
|
11425
11470
|
dh(e, "scroll", {
|
|
11426
11471
|
serialize: () => ({
|
|
@@ -11443,7 +11488,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11443
11488
|
let { nodeName: i, nodeTrace: a, inputData: o, nodeSnapshot: s, viewConfig: c, dictionaries: l, mode: u } = $(({ simulate: t, decisionGraph: n, viewConfig: r, dictionaries: i, mode: a }) => ({
|
|
11444
11489
|
nodeName: n.nodes.find((t) => t.id === e)?.name,
|
|
11445
11490
|
nodeTrace: q(t).with({ result: K.nonNullable }, ({ result: t }) => t.trace[e]).otherwise(() => null),
|
|
11446
|
-
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) =>
|
|
11491
|
+
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) => Mh(e, {
|
|
11447
11492
|
trace: t.trace,
|
|
11448
11493
|
decisionGraph: n
|
|
11449
11494
|
})).otherwise(() => null),
|
|
@@ -11476,7 +11521,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11476
11521
|
if (t.length === 0) return;
|
|
11477
11522
|
let n = (e) => [...f?.inputs ?? [], ...f?.outputs ?? []].find((t) => t.id === e)?.name ?? e;
|
|
11478
11523
|
return {
|
|
11479
|
-
entries:
|
|
11524
|
+
entries: jh(f, t).map((e) => ({
|
|
11480
11525
|
name: n(e.columnId),
|
|
11481
11526
|
count: e.count
|
|
11482
11527
|
})),
|
|
@@ -11504,16 +11549,16 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11504
11549
|
t.updateNode(e, (e) => (Object.assign(e.content, n), e));
|
|
11505
11550
|
}
|
|
11506
11551
|
});
|
|
11507
|
-
},
|
|
11552
|
+
}, Ph = navigator.platform.includes("Mac"), Fh = {
|
|
11508
11553
|
Ctrl: "⌘",
|
|
11509
11554
|
Backspace: "⌫",
|
|
11510
11555
|
Alt: "⌥"
|
|
11511
|
-
},
|
|
11512
|
-
let [n, r] = z(() =>
|
|
11556
|
+
}, Ih = { shortcut: (e) => Ph ? Object.keys(Fh).reduce((e, t) => e.replaceAll(t, Fh[t]), e) : e }, Lh = {}, Rh = (e, t) => {
|
|
11557
|
+
let [n, r] = z(() => Lh?.[e] ?? t);
|
|
11513
11558
|
return I(() => {
|
|
11514
|
-
|
|
11559
|
+
Lh[e] = n;
|
|
11515
11560
|
}, [n]), [n, r];
|
|
11516
|
-
},
|
|
11561
|
+
}, zh = Ge([
|
|
11517
11562
|
"relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow",
|
|
11518
11563
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
11519
11564
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3"
|
|
@@ -11543,10 +11588,10 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11543
11588
|
radius: "default"
|
|
11544
11589
|
}
|
|
11545
11590
|
});
|
|
11546
|
-
function
|
|
11591
|
+
function Bh({ className: e, variant: t, size: n, radius: i, render: a, ...o }) {
|
|
11547
11592
|
let s = {
|
|
11548
11593
|
"data-slot": "badge",
|
|
11549
|
-
className: r(
|
|
11594
|
+
className: r(zh({
|
|
11550
11595
|
variant: t,
|
|
11551
11596
|
size: n,
|
|
11552
11597
|
radius: i,
|
|
@@ -11561,7 +11606,7 @@ function Nh({ className: e, variant: t, size: n, radius: i, render: a, ...o }) {
|
|
|
11561
11606
|
}
|
|
11562
11607
|
//#endregion
|
|
11563
11608
|
//#region src/reui/icon-tile.tsx
|
|
11564
|
-
var
|
|
11609
|
+
var Vh = Ge([
|
|
11565
11610
|
"relative inline-flex shrink-0 items-center justify-center align-middle",
|
|
11566
11611
|
"size-(--icon-tile-size) rounded-(--icon-tile-radius)",
|
|
11567
11612
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-(--icon-tile-icon-size)"
|
|
@@ -11593,12 +11638,12 @@ var Ph = Ge([
|
|
|
11593
11638
|
radius: "default"
|
|
11594
11639
|
}
|
|
11595
11640
|
});
|
|
11596
|
-
function
|
|
11641
|
+
function Hh({ className: e, variant: t = "outline", size: n = "default", radius: i = "default", render: a, ...o }) {
|
|
11597
11642
|
let s = {
|
|
11598
11643
|
"data-slot": "icon-tile",
|
|
11599
11644
|
"data-variant": t,
|
|
11600
11645
|
"data-size": n,
|
|
11601
|
-
className: r(
|
|
11646
|
+
className: r(Vh({
|
|
11602
11647
|
variant: t,
|
|
11603
11648
|
size: n,
|
|
11604
11649
|
radius: i,
|
|
@@ -11613,20 +11658,20 @@ function Fh({ className: e, variant: t = "outline", size: n = "default", radius:
|
|
|
11613
11658
|
}
|
|
11614
11659
|
//#endregion
|
|
11615
11660
|
//#region src/components/decision-graph/nodes/graph-card.tsx
|
|
11616
|
-
var
|
|
11661
|
+
var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
11617
11662
|
className: r("relative flex flex-col border border-[var(--border)] bg-[var(--node-background)]", "cursor-grab rounded-[var(--node-border-radius)] [transition:var(--seal-transition)]", "group-hover/dn:border-[var(--seal-color-border-hover)]", e),
|
|
11618
11663
|
...t
|
|
11619
|
-
}),
|
|
11664
|
+
}), Wh = /* @__PURE__ */ function(e) {
|
|
11620
11665
|
return e.Blue = "var(--node-color-blue)", e.Purple = "var(--node-color-purple)", e.Orange = "var(--node-color-orange)", e.Green = "var(--node-color-green)", e;
|
|
11621
|
-
}({}),
|
|
11622
|
-
let S = q(c).with("primary", () =>
|
|
11666
|
+
}({}), Gh = ({ icon: e, name: t, type: n, children: r, actions: i = [], disabled: a = !1, isSelected: o = !1, noBodyPadding: s = !1, color: c = "primary", onNameChange: l, menuItems: u = [], status: d, trace: f, traceError: p, diffStatus: m, compactMode: h, listMode: g, helper: _, details: v, detailsOpen: y = !1, detailsTitle: b = "Details", onDetailsClose: x }) => {
|
|
11667
|
+
let S = q(c).with("primary", () => Wh.Blue).otherwise((e) => e), C = m === "added" ? "border-[var(--seal-color-success)] group-hover/dn:border-[var(--seal-color-success)]" : m === "moved" ? "border-[var(--seal-color-info)] group-hover/dn:border-[var(--seal-color-info)]" : m === "modified" ? "border-[var(--seal-color-warning)] group-hover/dn:border-[var(--seal-color-warning)]" : m === "removed" ? "border-[var(--destructive)] group-hover/dn:border-[var(--destructive)]" : o ? "border-[var(--seal-color-primary-active)] group-hover/dn:border-[var(--seal-color-primary-active)]" : "", w = g ? "rounded-none border-0 border-b border-b-[var(--seal-color-border-fade)]" : "";
|
|
11623
11668
|
return /* @__PURE__ */ W("div", {
|
|
11624
11669
|
className: V("group/dn flex flex-col gap-2", "[--node-border-radius:8px] [--node-horizontal-padding:8px] [--node-small-text:12px]", "[--node-color:var(--primary)] [--node-background:var(--seal-color-bg-container)]", d === "success" ? "[--node-background:var(--seal-color-success-bg)]" : d === "error" ? "[--node-background:var(--seal-color-error-bg)]" : d === "warning" ? "[--node-background:var(--seal-color-warning-bg)]" : ""),
|
|
11625
11670
|
style: { "--node-color": S },
|
|
11626
11671
|
onKeyDown: (e) => e.stopPropagation(),
|
|
11627
11672
|
"data-diff": m,
|
|
11628
11673
|
"data-compact": h || void 0,
|
|
11629
|
-
children: [/* @__PURE__ */ W(
|
|
11674
|
+
children: [/* @__PURE__ */ W(Uh, {
|
|
11630
11675
|
className: V(C, w),
|
|
11631
11676
|
children: [
|
|
11632
11677
|
/* @__PURE__ */ W("div", {
|
|
@@ -11653,7 +11698,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11653
11698
|
/* @__PURE__ */ W("div", {
|
|
11654
11699
|
className: "grid p-2 gap-1.5 grid-cols-[min-content_1fr_min-content] items-center box-border min-h-10",
|
|
11655
11700
|
children: [
|
|
11656
|
-
/* @__PURE__ */ U(
|
|
11701
|
+
/* @__PURE__ */ U(Hh, {
|
|
11657
11702
|
variant: "solid",
|
|
11658
11703
|
size: "xs",
|
|
11659
11704
|
className: "bg-[var(--node-color)] text-white",
|
|
@@ -11666,7 +11711,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11666
11711
|
onChange: l,
|
|
11667
11712
|
disabled: a,
|
|
11668
11713
|
value: t
|
|
11669
|
-
}), n != null && n !== "" && /* @__PURE__ */ U(
|
|
11714
|
+
}), n != null && n !== "" && /* @__PURE__ */ U(Bh, {
|
|
11670
11715
|
variant: "secondary",
|
|
11671
11716
|
size: "xs",
|
|
11672
11717
|
className: "w-fit max-w-full truncate",
|
|
@@ -11713,10 +11758,10 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11713
11758
|
})]
|
|
11714
11759
|
})
|
|
11715
11760
|
]
|
|
11716
|
-
}), /* @__PURE__ */ U(
|
|
11761
|
+
}), /* @__PURE__ */ U(qh, {
|
|
11717
11762
|
state: y,
|
|
11718
11763
|
timeout: 100,
|
|
11719
|
-
children: (e, t) => t && /* @__PURE__ */ U(
|
|
11764
|
+
children: (e, t) => t && /* @__PURE__ */ U(Uh, {
|
|
11720
11765
|
className: "nodrag",
|
|
11721
11766
|
style: {
|
|
11722
11767
|
transition: "0.1s ease-in-out",
|
|
@@ -11745,7 +11790,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11745
11790
|
})
|
|
11746
11791
|
})]
|
|
11747
11792
|
});
|
|
11748
|
-
},
|
|
11793
|
+
}, Kh = 100, qh = ({ state: e, timeout: t = Kh, children: n }) => {
|
|
11749
11794
|
let [r, i] = z(e), [a, o] = z(e ? "enter" : "leave");
|
|
11750
11795
|
return I(() => {
|
|
11751
11796
|
if (e) {
|
|
@@ -11757,15 +11802,15 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11757
11802
|
let n = setTimeout(() => i(!1), t);
|
|
11758
11803
|
return () => clearTimeout(n);
|
|
11759
11804
|
}, [e, t]), /* @__PURE__ */ U(H, { children: n(a, r) });
|
|
11760
|
-
},
|
|
11761
|
-
let p = o(), [m, h] = P.useState(!1), [g, _] =
|
|
11805
|
+
}, Jh = P.forwardRef(({ id: e, handleLeft: t = !0, handleRight: n = !0, className: r, specification: i, name: a, displayError: s, isSelected: c, helper: l, actions: u, ...d }, f) => {
|
|
11806
|
+
let p = o(), [m, h] = P.useState(!1), [g, _] = Rh(`node:details:${e}`, 0), [v, y] = Rh(`node:detailsOpen:${e}`, !1), b = nh(), { modal: x } = Va.useApp(), { nodeError: S, nodeTrace: C, disabled: w, compactMode: T } = $(({ simulate: t, disabled: n, compactMode: r }) => ({
|
|
11762
11807
|
disabled: n,
|
|
11763
11808
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
11764
11809
|
nodeError: t?.error?.data?.nodeId === e ? t.error : null,
|
|
11765
11810
|
compactMode: r
|
|
11766
|
-
})), { diff: E } = ih(e), D = i.renderSettings,
|
|
11811
|
+
})), { diff: E } = ih(e), D = i.renderSettings, ee = () => {
|
|
11767
11812
|
y(g !== 0 || !v), _(0);
|
|
11768
|
-
},
|
|
11813
|
+
}, O = () => x.confirm({
|
|
11769
11814
|
icon: null,
|
|
11770
11815
|
title: p("dg.node.deleteNode"),
|
|
11771
11816
|
content: /* @__PURE__ */ W(Z.Text, { children: [
|
|
@@ -11778,7 +11823,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11778
11823
|
] }),
|
|
11779
11824
|
okButtonProps: { danger: !0 },
|
|
11780
11825
|
onOk: () => b.removeNodes([e])
|
|
11781
|
-
}),
|
|
11826
|
+
}), te = [
|
|
11782
11827
|
i.documentationUrl ? {
|
|
11783
11828
|
key: "documentation",
|
|
11784
11829
|
label: /* @__PURE__ */ U(Yp, {
|
|
@@ -11795,7 +11840,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11795
11840
|
key: "copy-clipboard",
|
|
11796
11841
|
label: /* @__PURE__ */ U(Yp, {
|
|
11797
11842
|
left: p("func.debugger.copy"),
|
|
11798
|
-
right:
|
|
11843
|
+
right: Ih.shortcut("Ctrl + C")
|
|
11799
11844
|
}),
|
|
11800
11845
|
onClick: () => b.copyNodes([e])
|
|
11801
11846
|
},
|
|
@@ -11804,7 +11849,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11804
11849
|
disabled: w,
|
|
11805
11850
|
label: /* @__PURE__ */ U(Yp, {
|
|
11806
11851
|
left: p("dg.node.duplicate"),
|
|
11807
|
-
right:
|
|
11852
|
+
right: Ih.shortcut("Ctrl + D")
|
|
11808
11853
|
}),
|
|
11809
11854
|
onClick: () => b.duplicateNodes([e])
|
|
11810
11855
|
},
|
|
@@ -11817,10 +11862,10 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11817
11862
|
danger: !0,
|
|
11818
11863
|
label: /* @__PURE__ */ U(Yp, {
|
|
11819
11864
|
left: p("common.delete"),
|
|
11820
|
-
right:
|
|
11865
|
+
right: Ih.shortcut("Backspace")
|
|
11821
11866
|
}),
|
|
11822
11867
|
disabled: w,
|
|
11823
|
-
onClick:
|
|
11868
|
+
onClick: O
|
|
11824
11869
|
}
|
|
11825
11870
|
].filter((e) => e !== null && e !== !1);
|
|
11826
11871
|
return /* @__PURE__ */ W("div", {
|
|
@@ -11850,7 +11895,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11850
11895
|
className: "h-6 w-6 p-0",
|
|
11851
11896
|
"aria-label": p("spec.common.settings"),
|
|
11852
11897
|
icon: /* @__PURE__ */ U(el, {}),
|
|
11853
|
-
onClick:
|
|
11898
|
+
onClick: ee
|
|
11854
11899
|
}),
|
|
11855
11900
|
/* @__PURE__ */ U(Y, {
|
|
11856
11901
|
type: "text",
|
|
@@ -11876,7 +11921,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11876
11921
|
"aria-label": p("node.delete"),
|
|
11877
11922
|
disabled: w,
|
|
11878
11923
|
icon: /* @__PURE__ */ U(rl, {}),
|
|
11879
|
-
onClick:
|
|
11924
|
+
onClick: O
|
|
11880
11925
|
})
|
|
11881
11926
|
]
|
|
11882
11927
|
})
|
|
@@ -11887,8 +11932,8 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11887
11932
|
position: Wi.Left,
|
|
11888
11933
|
...typeof t == "boolean" ? {} : t
|
|
11889
11934
|
}),
|
|
11890
|
-
/* @__PURE__ */ U(
|
|
11891
|
-
menuItems:
|
|
11935
|
+
/* @__PURE__ */ U(Gh, {
|
|
11936
|
+
menuItems: te,
|
|
11892
11937
|
...d,
|
|
11893
11938
|
disabled: w,
|
|
11894
11939
|
icon: i.icon,
|
|
@@ -11903,7 +11948,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11903
11948
|
actions: D ? [...u ?? [], /* @__PURE__ */ U(Y, {
|
|
11904
11949
|
type: "text",
|
|
11905
11950
|
style: { marginLeft: "auto" },
|
|
11906
|
-
onClick:
|
|
11951
|
+
onClick: ee,
|
|
11907
11952
|
children: "Settings"
|
|
11908
11953
|
}, "settings")] : u,
|
|
11909
11954
|
status: q([
|
|
@@ -11943,7 +11988,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11943
11988
|
})
|
|
11944
11989
|
]
|
|
11945
11990
|
});
|
|
11946
|
-
}),
|
|
11991
|
+
}), Yh = Ge([
|
|
11947
11992
|
"relative flex flex-col bg-muted/50 gap-(--frame-gap) px-(--frame-px) py-(--frame-py) rounded-(--frame-radius)",
|
|
11948
11993
|
"[--frame-radius:var(--radius-xl)]",
|
|
11949
11994
|
"[--frame-gap:--spacing(0.75)] [--frame-px:--spacing(0.75)] [--frame-py:--spacing(0.75)] [--frame-panel-header-gap:0rem] [--frame-panel-footer-gap:--spacing(1)]",
|
|
@@ -11990,9 +12035,9 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11990
12035
|
dense: !1
|
|
11991
12036
|
}
|
|
11992
12037
|
});
|
|
11993
|
-
function
|
|
12038
|
+
function Xh({ className: e, variant: t, spacing: n, stacked: i, dense: a, ...o }) {
|
|
11994
12039
|
return /* @__PURE__ */ U("div", {
|
|
11995
|
-
className: r(
|
|
12040
|
+
className: r(Yh({
|
|
11996
12041
|
variant: t,
|
|
11997
12042
|
spacing: n,
|
|
11998
12043
|
stacked: i,
|
|
@@ -12003,21 +12048,21 @@ function Uh({ className: e, variant: t, spacing: n, stacked: i, dense: a, ...o }
|
|
|
12003
12048
|
...o
|
|
12004
12049
|
});
|
|
12005
12050
|
}
|
|
12006
|
-
function
|
|
12051
|
+
function Zh({ className: e, fit: t, ...n }) {
|
|
12007
12052
|
return /* @__PURE__ */ U("div", {
|
|
12008
12053
|
className: r("relative overflow-hidden rounded-(--frame-panel-radius) border border-(--frame-panel-border-color) bg-(--frame-panel-bg) bg-clip-padding shadow-xs", !t && "grow", "before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--frame-panel-radius)-1px)] before:shadow-black/5", "dark:bg-clip-border dark:before:shadow-white/5", "px-(--frame-panel-px) py-(--frame-panel-py)", e),
|
|
12009
12054
|
"data-slot": "frame-panel",
|
|
12010
12055
|
...n
|
|
12011
12056
|
});
|
|
12012
12057
|
}
|
|
12013
|
-
function
|
|
12058
|
+
function Qh({ className: e, ...t }) {
|
|
12014
12059
|
return /* @__PURE__ */ U("header", {
|
|
12015
12060
|
className: r("flex flex-col gap-(--frame-panel-header-gap) px-(--frame-panel-header-px) py-(--frame-panel-header-py)", e),
|
|
12016
12061
|
"data-slot": "frame-panel-header",
|
|
12017
12062
|
...t
|
|
12018
12063
|
});
|
|
12019
12064
|
}
|
|
12020
|
-
function
|
|
12065
|
+
function $h({ className: e, ...t }) {
|
|
12021
12066
|
return /* @__PURE__ */ U("div", {
|
|
12022
12067
|
className: r("text-sm font-semibold", e),
|
|
12023
12068
|
"data-slot": "frame-panel-title",
|
|
@@ -12026,27 +12071,27 @@ function Kh({ className: e, ...t }) {
|
|
|
12026
12071
|
}
|
|
12027
12072
|
//#endregion
|
|
12028
12073
|
//#region src/components/decision-graph/nodes/specifications/settings-frame.tsx
|
|
12029
|
-
var
|
|
12074
|
+
var eg = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Xh, {
|
|
12030
12075
|
className: "settings-form w-full",
|
|
12031
12076
|
spacing: "xs",
|
|
12032
|
-
children: [/* @__PURE__ */ W(
|
|
12077
|
+
children: [/* @__PURE__ */ W(Qh, { children: [/* @__PURE__ */ U($h, { children: e }), t ? /* @__PURE__ */ U("p", {
|
|
12033
12078
|
className: "text-muted-foreground text-xs",
|
|
12034
12079
|
children: t
|
|
12035
|
-
}) : null] }), /* @__PURE__ */ U(
|
|
12080
|
+
}) : null] }), /* @__PURE__ */ U(Zh, {
|
|
12036
12081
|
className: "flex flex-col gap-2",
|
|
12037
12082
|
children: n
|
|
12038
12083
|
})]
|
|
12039
|
-
}),
|
|
12084
|
+
}), tg = {
|
|
12040
12085
|
fontSize: 12,
|
|
12041
12086
|
lineHeight: "20px",
|
|
12042
12087
|
width: "100%"
|
|
12043
|
-
},
|
|
12088
|
+
}, ng = {
|
|
12044
12089
|
type: Q.DecisionTable,
|
|
12045
12090
|
icon: /* @__PURE__ */ U(Ut, { size: "1em" }),
|
|
12046
12091
|
displayName: "Decision table",
|
|
12047
12092
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/decision-tables",
|
|
12048
12093
|
shortDescription: "Rules spreadsheet",
|
|
12049
|
-
renderTab: ({ id: e }) => /* @__PURE__ */ U(
|
|
12094
|
+
renderTab: ({ id: e }) => /* @__PURE__ */ U(Nh, { id: e }),
|
|
12050
12095
|
getDiffContent: (e, t) => G(e, (n) => {
|
|
12051
12096
|
let r = {};
|
|
12052
12097
|
(e.executionMode ?? "single") !== (t.executionMode ?? "single") && _i.set(r, "executionMode", {
|
|
@@ -12065,7 +12110,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12065
12110
|
status: "modified",
|
|
12066
12111
|
previousValue: t.passThrough
|
|
12067
12112
|
});
|
|
12068
|
-
let i =
|
|
12113
|
+
let i = Ah(e?.inputs || [], t?.inputs || [], { compareFields: (e, t) => {
|
|
12069
12114
|
let n = (e.name ?? "") !== (t.name ?? ""), r = (e.field ?? "") !== (t.field ?? ""), i = (e.defaultValue ?? "") !== (t.defaultValue ?? "");
|
|
12070
12115
|
return {
|
|
12071
12116
|
hasChanges: n || r || i,
|
|
@@ -12084,7 +12129,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12084
12129
|
} }
|
|
12085
12130
|
}
|
|
12086
12131
|
};
|
|
12087
|
-
} }), a =
|
|
12132
|
+
} }), a = Ah(e?.outputs || [], t?.outputs || [], { compareFields: (e, t) => {
|
|
12088
12133
|
let n = (e.name ?? "") !== (t.name ?? ""), r = (e.field ?? "") !== (t.field ?? ""), i = (e.defaultValue ?? "") !== (t.defaultValue ?? "");
|
|
12089
12134
|
return {
|
|
12090
12135
|
hasChanges: n || r || i,
|
|
@@ -12103,7 +12148,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12103
12148
|
} }
|
|
12104
12149
|
}
|
|
12105
12150
|
};
|
|
12106
|
-
} }), o =
|
|
12151
|
+
} }), o = Ah(e?.rules || [], t?.rules || [], {
|
|
12107
12152
|
idField: "_id",
|
|
12108
12153
|
compareFields: (e, t) => {
|
|
12109
12154
|
let n = (e._description ?? "") !== (t._description ?? ""), r = {};
|
|
@@ -12186,7 +12231,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12186
12231
|
executionMode: n?.executionMode
|
|
12187
12232
|
};
|
|
12188
12233
|
});
|
|
12189
|
-
return /* @__PURE__ */ U(
|
|
12234
|
+
return /* @__PURE__ */ U(Jh, {
|
|
12190
12235
|
id: e,
|
|
12191
12236
|
specification: r,
|
|
12192
12237
|
name: t.name,
|
|
@@ -12200,7 +12245,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12200
12245
|
});
|
|
12201
12246
|
},
|
|
12202
12247
|
renderSettings: ({ id: e }) => {
|
|
12203
|
-
let t = o(), n = nh(), r =
|
|
12248
|
+
let t = o(), n = nh(), r = Eh(e), { contentDiff: i } = ih(e), { fields: a, disabled: s } = $(({ decisionGraph: t, disabled: n }) => {
|
|
12204
12249
|
let r = (t?.nodes ?? []).find((t) => t.id === e)?.content;
|
|
12205
12250
|
return {
|
|
12206
12251
|
disabled: n,
|
|
@@ -12215,7 +12260,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12215
12260
|
}), c = (t) => {
|
|
12216
12261
|
n.updateNode(e, (e) => (Object.assign(e.content, t), e));
|
|
12217
12262
|
};
|
|
12218
|
-
return /* @__PURE__ */ W(
|
|
12263
|
+
return /* @__PURE__ */ W(eg, {
|
|
12219
12264
|
title: t("spec.dt.title"),
|
|
12220
12265
|
children: [
|
|
12221
12266
|
/* @__PURE__ */ U(To.Item, {
|
|
@@ -12254,7 +12299,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12254
12299
|
disabled: s,
|
|
12255
12300
|
displayDiff: i?.fields?.inputField?.status === "modified",
|
|
12256
12301
|
previousValue: i?.fields?.inputField?.previousValue,
|
|
12257
|
-
style:
|
|
12302
|
+
style: tg,
|
|
12258
12303
|
expectedVariableType: a?.executionMode === "loop" ? { Array: "Any" } : void 0,
|
|
12259
12304
|
maxRows: 4,
|
|
12260
12305
|
value: a?.inputField ?? "",
|
|
@@ -12293,7 +12338,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12293
12338
|
]
|
|
12294
12339
|
});
|
|
12295
12340
|
}
|
|
12296
|
-
},
|
|
12341
|
+
}, rg = {
|
|
12297
12342
|
display: "inline-flex",
|
|
12298
12343
|
alignItems: "center",
|
|
12299
12344
|
gap: 8,
|
|
@@ -12308,22 +12353,22 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12308
12353
|
color: "var(--foreground)",
|
|
12309
12354
|
cursor: "grabbing",
|
|
12310
12355
|
pointerEvents: "none"
|
|
12311
|
-
},
|
|
12356
|
+
}, ig = {
|
|
12312
12357
|
maxWidth: 140,
|
|
12313
12358
|
overflow: "hidden",
|
|
12314
12359
|
textOverflow: "ellipsis",
|
|
12315
12360
|
whiteSpace: "nowrap"
|
|
12316
|
-
},
|
|
12361
|
+
}, ag = ({ children: e }) => /* @__PURE__ */ U("div", {
|
|
12317
12362
|
className: "seal-drag-overlay",
|
|
12318
|
-
style:
|
|
12363
|
+
style: rg,
|
|
12319
12364
|
children: e
|
|
12320
|
-
}),
|
|
12365
|
+
}), og = ({ children: e, width: t }) => /* @__PURE__ */ U("span", {
|
|
12321
12366
|
style: {
|
|
12322
|
-
...
|
|
12367
|
+
...ig,
|
|
12323
12368
|
...t ? { maxWidth: t } : {}
|
|
12324
12369
|
},
|
|
12325
12370
|
children: e
|
|
12326
|
-
}),
|
|
12371
|
+
}), sg = ({ index: e }) => /* @__PURE__ */ U("span", {
|
|
12327
12372
|
style: {
|
|
12328
12373
|
minWidth: 20,
|
|
12329
12374
|
textAlign: "center",
|
|
@@ -12334,20 +12379,20 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12334
12379
|
fontWeight: 500
|
|
12335
12380
|
},
|
|
12336
12381
|
children: e + 1
|
|
12337
|
-
}),
|
|
12382
|
+
}), cg = P.createContext({}), lg = (e = {}) => ({
|
|
12338
12383
|
id: crypto.randomUUID(),
|
|
12339
12384
|
key: "",
|
|
12340
12385
|
value: "",
|
|
12341
12386
|
...e
|
|
12342
|
-
}),
|
|
12387
|
+
}), ug = ({ children: e }) => {
|
|
12343
12388
|
let t = L(() => Kn((e) => ({
|
|
12344
12389
|
disabled: !1,
|
|
12345
12390
|
debugIndex: 0,
|
|
12346
12391
|
addRowAbove: (t = 0) => {
|
|
12347
|
-
e(G((e) => (e.expressions.splice(t, 0,
|
|
12392
|
+
e(G((e) => (e.expressions.splice(t, 0, lg()), e)));
|
|
12348
12393
|
},
|
|
12349
12394
|
addRowBelow: (t) => {
|
|
12350
|
-
e(G((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0,
|
|
12395
|
+
e(G((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, lg()), e)));
|
|
12351
12396
|
},
|
|
12352
12397
|
expressions: [],
|
|
12353
12398
|
setExpressions: (t) => {
|
|
@@ -12369,15 +12414,15 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12369
12414
|
}, e)));
|
|
12370
12415
|
}
|
|
12371
12416
|
})), []);
|
|
12372
|
-
return /* @__PURE__ */ U(
|
|
12417
|
+
return /* @__PURE__ */ U(cg.Provider, {
|
|
12373
12418
|
value: t,
|
|
12374
12419
|
children: e
|
|
12375
12420
|
});
|
|
12376
12421
|
};
|
|
12377
|
-
function
|
|
12378
|
-
return qn(P.useContext(
|
|
12422
|
+
function dg(e, t = Sc.default) {
|
|
12423
|
+
return qn(P.useContext(cg), Cc(e, t));
|
|
12379
12424
|
}
|
|
12380
|
-
var
|
|
12425
|
+
var fg = () => P.useContext(cg), pg = ({ debugIndex: e, traceCount: t, onDebugIndexChange: n, className: r }) => {
|
|
12381
12426
|
let i = o(), a = L(() => t ? Array.from({ length: t }).map((e, t) => ({
|
|
12382
12427
|
label: String(t),
|
|
12383
12428
|
value: t
|
|
@@ -12410,8 +12455,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12410
12455
|
})]
|
|
12411
12456
|
})]
|
|
12412
12457
|
}) : null;
|
|
12413
|
-
},
|
|
12414
|
-
let a = R(!1), o =
|
|
12458
|
+
}, mg = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full" }) => {
|
|
12459
|
+
let a = R(!1), o = fg(), { setExpressions: s, expressions: c } = dg(({ setExpressions: e, expressions: t }) => ({
|
|
12415
12460
|
setExpressions: e,
|
|
12416
12461
|
expressions: t
|
|
12417
12462
|
}));
|
|
@@ -12429,10 +12474,10 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12429
12474
|
}, [e]), I(() => {
|
|
12430
12475
|
e ? s(e) : n && s(n), a.current = !0;
|
|
12431
12476
|
}, []), null;
|
|
12432
|
-
},
|
|
12477
|
+
}, hg = (e, t) => !e || !t ? "up" : e.top + e.height / 2 > t.top + t.height / 2 ? "down" : "up", gg = (e, t) => q(e).with(K.array(), (e) => {
|
|
12433
12478
|
let n = e;
|
|
12434
12479
|
return n[q(t).with(K.number.between(0, n.length - 1), (e) => e).otherwise(() => 0)];
|
|
12435
|
-
}).otherwise((e) => e),
|
|
12480
|
+
}).otherwise((e) => e), _g = ({ index: e, disabled: t, addRowAbove: n, addRowBelow: r, children: i }) => {
|
|
12436
12481
|
let a = o();
|
|
12437
12482
|
return /* @__PURE__ */ U(xo, {
|
|
12438
12483
|
destroyPopupOnHide: !0,
|
|
@@ -12455,15 +12500,15 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12455
12500
|
}] },
|
|
12456
12501
|
children: i
|
|
12457
12502
|
});
|
|
12458
|
-
},
|
|
12459
|
-
let [r, i] = z(!1), a = o(), s = R(null), { updateRow: c, removeRow: l, disabled: u, permission: d, addRowAbove: f, addRowBelow: p } =
|
|
12503
|
+
}, vg = ({ expression: e, index: t, variableType: n }) => {
|
|
12504
|
+
let [r, i] = z(!1), a = o(), s = R(null), { updateRow: c, removeRow: l, disabled: u, permission: d, addRowAbove: f, addRowBelow: p } = dg(({ updateRow: e, removeRow: t, disabled: n, permission: r, addRowAbove: i, addRowBelow: a }) => ({
|
|
12460
12505
|
updateRow: e,
|
|
12461
12506
|
removeRow: t,
|
|
12462
12507
|
disabled: n,
|
|
12463
12508
|
permission: r,
|
|
12464
12509
|
addRowAbove: i,
|
|
12465
12510
|
addRowBelow: a
|
|
12466
|
-
})), m =
|
|
12511
|
+
})), m = dg(({ expressions: t, inputVariableType: n }) => {
|
|
12467
12512
|
let r = ed(n).filter((e) => !e.includes(".")), i = t.map((e) => e.key?.trim() ?? "").filter(Boolean);
|
|
12468
12513
|
return {
|
|
12469
12514
|
keyShadow: va(e.key, r),
|
|
@@ -12488,7 +12533,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12488
12533
|
}), { setNodeRef: C, isOver: w } = ar({
|
|
12489
12534
|
id: `expr-drop-${e.id ?? t}`,
|
|
12490
12535
|
data: { index: t }
|
|
12491
|
-
}), T = rr(), E = w ?
|
|
12536
|
+
}), T = rr(), E = w ? hg(T.active?.rect.current.translated, s.current?.getBoundingClientRect()) : "up", D = e?._diff?.status;
|
|
12492
12537
|
return /* @__PURE__ */ W("div", {
|
|
12493
12538
|
ref: (e) => {
|
|
12494
12539
|
s.current = e, C(e), b(e);
|
|
@@ -12512,7 +12557,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12512
12557
|
}),
|
|
12513
12558
|
/* @__PURE__ */ U("div", {
|
|
12514
12559
|
className: "box-border h-full border-r border-[var(--seal-color-border-fade)]",
|
|
12515
|
-
children: /* @__PURE__ */ W(
|
|
12560
|
+
children: /* @__PURE__ */ W(_g, {
|
|
12516
12561
|
index: t,
|
|
12517
12562
|
disabled: u,
|
|
12518
12563
|
addRowAbove: f,
|
|
@@ -12535,7 +12580,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12535
12580
|
}),
|
|
12536
12581
|
/* @__PURE__ */ U("div", {
|
|
12537
12582
|
className: "relative box-border h-full text-[13px]",
|
|
12538
|
-
children: /* @__PURE__ */ U(
|
|
12583
|
+
children: /* @__PURE__ */ U(_g, {
|
|
12539
12584
|
index: t,
|
|
12540
12585
|
disabled: u,
|
|
12541
12586
|
addRowAbove: f,
|
|
@@ -12556,8 +12601,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12556
12601
|
onBlur: () => i(!1),
|
|
12557
12602
|
noStyle: !0
|
|
12558
12603
|
}),
|
|
12559
|
-
/* @__PURE__ */ U(
|
|
12560
|
-
m.valueHints.map((e) => /* @__PURE__ */ U(
|
|
12604
|
+
/* @__PURE__ */ U(xg, { expression: e }),
|
|
12605
|
+
m.valueHints.map((e) => /* @__PURE__ */ U(yg, { hint: e }, e.name))
|
|
12561
12606
|
] })
|
|
12562
12607
|
})
|
|
12563
12608
|
}),
|
|
@@ -12567,14 +12612,14 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12567
12612
|
iconOnly: !0,
|
|
12568
12613
|
disabled: d !== "edit:full" || u,
|
|
12569
12614
|
onConfirm: g
|
|
12570
|
-
}), r && /* @__PURE__ */ U(
|
|
12615
|
+
}), r && /* @__PURE__ */ U(bg, {
|
|
12571
12616
|
id: e.id,
|
|
12572
12617
|
value: e.value
|
|
12573
12618
|
})]
|
|
12574
12619
|
})
|
|
12575
12620
|
]
|
|
12576
12621
|
});
|
|
12577
|
-
},
|
|
12622
|
+
}, yg = ({ hint: e }) => {
|
|
12578
12623
|
let t = o();
|
|
12579
12624
|
return /* @__PURE__ */ U("span", {
|
|
12580
12625
|
className: "block px-3 pb-2 text-xs leading-snug text-[color:var(--seal-color-warning-text)]",
|
|
@@ -12583,9 +12628,9 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12583
12628
|
suggestion: e.suggestion ?? ""
|
|
12584
12629
|
})
|
|
12585
12630
|
});
|
|
12586
|
-
},
|
|
12587
|
-
let { inputData: n, initial: r } =
|
|
12588
|
-
let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ?
|
|
12631
|
+
}, bg = P.memo(({ id: e, value: t }) => {
|
|
12632
|
+
let { inputData: n, initial: r } = dg(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
|
|
12633
|
+
let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? gg(t?.trace.traceData, n)?.[i.key] : void 0;
|
|
12589
12634
|
return {
|
|
12590
12635
|
inputData: r,
|
|
12591
12636
|
initial: i && a ? {
|
|
@@ -12602,8 +12647,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12602
12647
|
initial: r
|
|
12603
12648
|
})
|
|
12604
12649
|
});
|
|
12605
|
-
}),
|
|
12606
|
-
let { trace: t } =
|
|
12650
|
+
}), xg = ({ expression: e }) => {
|
|
12651
|
+
let { trace: t } = dg(({ debug: t, debugIndex: n }) => ({ trace: gg(t?.trace?.traceData, n)?.[e.key]?.result }));
|
|
12607
12652
|
return t === void 0 ? null : /* @__PURE__ */ U("div", {
|
|
12608
12653
|
className: "absolute top-1/2 right-[3px] -translate-y-1/2 rounded border border-[var(--seal-color-success-border)] bg-[var(--seal-color-success-bg)] px-1.5 py-0.5 max-h-[calc(100%-5px)] max-w-[50%] overflow-x-auto whitespace-nowrap [&>span]:text-xs [&>span]:[font-family:var(--mono-font-family)]",
|
|
12609
12654
|
children: /* @__PURE__ */ W(Z.Text, {
|
|
@@ -12615,8 +12660,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12615
12660
|
children: ["= ", JSON.stringify(t)]
|
|
12616
12661
|
})
|
|
12617
12662
|
});
|
|
12618
|
-
},
|
|
12619
|
-
let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } =
|
|
12663
|
+
}, Sg = ({}) => {
|
|
12664
|
+
let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } = dg(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
|
|
12620
12665
|
expressions: e,
|
|
12621
12666
|
addRowBelow: t,
|
|
12622
12667
|
permission: n,
|
|
@@ -12650,7 +12695,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12650
12695
|
}),
|
|
12651
12696
|
/* @__PURE__ */ U("div", {})
|
|
12652
12697
|
]
|
|
12653
|
-
}), (e || []).map((e, t) => /* @__PURE__ */ U(
|
|
12698
|
+
}), (e || []).map((e, t) => /* @__PURE__ */ U(vg, {
|
|
12654
12699
|
expression: e,
|
|
12655
12700
|
index: t,
|
|
12656
12701
|
variableType: a
|
|
@@ -12664,32 +12709,32 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12664
12709
|
children: "Add row"
|
|
12665
12710
|
})
|
|
12666
12711
|
})] });
|
|
12667
|
-
},
|
|
12712
|
+
}, Cg = ({ debug: e, hideCommandBar: t, inputVariableType: n, ...r }) => {
|
|
12668
12713
|
let [i, a] = z(!1), o = R(null);
|
|
12669
12714
|
return I(() => {
|
|
12670
12715
|
a(!0);
|
|
12671
12716
|
}, []), /* @__PURE__ */ U(vc, { children: /* @__PURE__ */ U("div", {
|
|
12672
12717
|
ref: o,
|
|
12673
|
-
children: o.current && /* @__PURE__ */ U(
|
|
12674
|
-
/* @__PURE__ */ U(
|
|
12675
|
-
!t && /* @__PURE__ */ U(
|
|
12676
|
-
/* @__PURE__ */ U(
|
|
12677
|
-
/* @__PURE__ */ U(
|
|
12718
|
+
children: o.current && /* @__PURE__ */ U(ug, { children: /* @__PURE__ */ W(Tg, { children: [
|
|
12719
|
+
/* @__PURE__ */ U(mg, { ...r }),
|
|
12720
|
+
!t && /* @__PURE__ */ U(wg, {}),
|
|
12721
|
+
/* @__PURE__ */ U(Sg, {}),
|
|
12722
|
+
/* @__PURE__ */ U(Eg, {
|
|
12678
12723
|
debug: e,
|
|
12679
12724
|
inputVariableType: n
|
|
12680
12725
|
})
|
|
12681
12726
|
] }) })
|
|
12682
12727
|
}) });
|
|
12683
|
-
},
|
|
12684
|
-
let e =
|
|
12685
|
-
return /* @__PURE__ */ U(
|
|
12728
|
+
}, wg = () => {
|
|
12729
|
+
let e = fg(), t = dg((e) => e.debugIndex), n = dg((e) => q(e.debug?.trace?.traceData).with(K.array(), (e) => e.length).otherwise(() => null));
|
|
12730
|
+
return /* @__PURE__ */ U(pg, {
|
|
12686
12731
|
className: "p-[7px] box-border border-b border-[var(--border)]",
|
|
12687
12732
|
debugIndex: t,
|
|
12688
12733
|
traceCount: n,
|
|
12689
12734
|
onDebugIndexChange: (t) => e.setState({ debugIndex: t })
|
|
12690
12735
|
});
|
|
12691
|
-
},
|
|
12692
|
-
let t = sr(or($n, { activationConstraint: { distance: 4 } })), n =
|
|
12736
|
+
}, Tg = ({ children: e }) => {
|
|
12737
|
+
let t = sr(or($n, { activationConstraint: { distance: 4 } })), n = fg(), [r, i] = z(null), a = r == null ? void 0 : n.getState().expressions[r];
|
|
12693
12738
|
return /* @__PURE__ */ W(Jn, {
|
|
12694
12739
|
sensors: t,
|
|
12695
12740
|
onDragStart: ({ active: e }) => {
|
|
@@ -12704,13 +12749,13 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12704
12749
|
onDragCancel: () => i(null),
|
|
12705
12750
|
children: [e, /* @__PURE__ */ U(Yn, {
|
|
12706
12751
|
dropAnimation: null,
|
|
12707
|
-
children: a ? /* @__PURE__ */ W(
|
|
12708
|
-
/* @__PURE__ */ U(
|
|
12709
|
-
a.key ? /* @__PURE__ */ U(
|
|
12752
|
+
children: a ? /* @__PURE__ */ W(ag, { children: [
|
|
12753
|
+
/* @__PURE__ */ U(sg, { index: r ?? 0 }),
|
|
12754
|
+
a.key ? /* @__PURE__ */ U(og, {
|
|
12710
12755
|
width: 140,
|
|
12711
12756
|
children: a.key
|
|
12712
12757
|
}) : null,
|
|
12713
|
-
a.value ? /* @__PURE__ */ U(
|
|
12758
|
+
a.value ? /* @__PURE__ */ U(og, {
|
|
12714
12759
|
width: 180,
|
|
12715
12760
|
children: /* @__PURE__ */ U("span", {
|
|
12716
12761
|
style: { color: "var(--seal-color-text-tertiary)" },
|
|
@@ -12720,8 +12765,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12720
12765
|
] }) : null
|
|
12721
12766
|
})]
|
|
12722
12767
|
});
|
|
12723
|
-
},
|
|
12724
|
-
let n =
|
|
12768
|
+
}, Eg = ({ debug: e, inputVariableType: t }) => {
|
|
12769
|
+
let n = fg();
|
|
12725
12770
|
return I(() => {
|
|
12726
12771
|
n.setState({ inputVariableType: t });
|
|
12727
12772
|
}, [t]), I(() => {
|
|
@@ -12751,8 +12796,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12751
12796
|
(e.debugIndex !== n.debugIndex || e.debug !== n.debug) && t(e);
|
|
12752
12797
|
});
|
|
12753
12798
|
}, []), null;
|
|
12754
|
-
},
|
|
12755
|
-
let t = nh(), n = R(null), r =
|
|
12799
|
+
}, Dg = ({ id: e }) => {
|
|
12800
|
+
let t = nh(), n = R(null), r = Eh(e);
|
|
12756
12801
|
dh(e, "scroll", {
|
|
12757
12802
|
serialize: () => {
|
|
12758
12803
|
let e = n.current;
|
|
@@ -12782,7 +12827,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12782
12827
|
content: (n?.nodes ?? []).find((t) => t.id === e)?.content
|
|
12783
12828
|
})), { nodeTrace: o, inputData: s, nodeSnapshot: c, viewConfig: l } = $(({ simulate: t, decisionGraph: n, viewConfig: r }) => ({
|
|
12784
12829
|
nodeTrace: q(t).with({ result: K.nonNullable }, ({ result: t }) => t.trace[e]).otherwise(() => null),
|
|
12785
|
-
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) =>
|
|
12830
|
+
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) => Mh(e, {
|
|
12786
12831
|
trace: t.trace,
|
|
12787
12832
|
decisionGraph: n
|
|
12788
12833
|
})).otherwise(() => null),
|
|
@@ -12794,7 +12839,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12794
12839
|
trace: o,
|
|
12795
12840
|
snapshot: c
|
|
12796
12841
|
};
|
|
12797
|
-
let e = Object.fromEntries(Object.entries(o?.traceData ?? {}).map(([e, t]) => [e,
|
|
12842
|
+
let e = Object.fromEntries(Object.entries(o?.traceData ?? {}).map(([e, t]) => [e, Og(t.result)])), t = {
|
|
12798
12843
|
...s,
|
|
12799
12844
|
$: e
|
|
12800
12845
|
};
|
|
@@ -12823,7 +12868,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12823
12868
|
overflowY: "auto",
|
|
12824
12869
|
boxSizing: "border-box"
|
|
12825
12870
|
},
|
|
12826
|
-
children: /* @__PURE__ */ U(
|
|
12871
|
+
children: /* @__PURE__ */ U(Cg, {
|
|
12827
12872
|
value: a?.expressions,
|
|
12828
12873
|
disabled: i,
|
|
12829
12874
|
inputVariableType: d,
|
|
@@ -12834,36 +12879,36 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12834
12879
|
}
|
|
12835
12880
|
})
|
|
12836
12881
|
});
|
|
12837
|
-
},
|
|
12882
|
+
}, Og = (e) => {
|
|
12838
12883
|
try {
|
|
12839
12884
|
return JSON.parse(e);
|
|
12840
12885
|
} catch {
|
|
12841
12886
|
return null;
|
|
12842
12887
|
}
|
|
12843
|
-
},
|
|
12888
|
+
}, kg = {
|
|
12844
12889
|
type: Q.Expression,
|
|
12845
12890
|
icon: /* @__PURE__ */ U(qt, { size: "1em" }),
|
|
12846
12891
|
displayName: "Expression",
|
|
12847
12892
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/expression",
|
|
12848
12893
|
shortDescription: "Mapping utility",
|
|
12849
|
-
renderTab: ({ id: e }) => /* @__PURE__ */ U(
|
|
12894
|
+
renderTab: ({ id: e }) => /* @__PURE__ */ U(Dg, { id: e }),
|
|
12850
12895
|
getDiffContent: (e, t) => G(e, (n) => {
|
|
12851
12896
|
let r = {};
|
|
12852
12897
|
(e.executionMode || !1) !== (t.executionMode || !1) && _i.set(r, "executionMode", {
|
|
12853
12898
|
status: "modified",
|
|
12854
12899
|
previousValue: t.executionMode
|
|
12855
|
-
}),
|
|
12900
|
+
}), kh(e.inputField, t.inputField) || _i.set(r, "inputField", {
|
|
12856
12901
|
status: "modified",
|
|
12857
12902
|
previousValue: t.inputField
|
|
12858
|
-
}),
|
|
12903
|
+
}), kh(e.outputPath, t.outputPath) || _i.set(r, "outputPath", {
|
|
12859
12904
|
status: "modified",
|
|
12860
12905
|
previousValue: t.outputPath
|
|
12861
12906
|
}), (e.passThrough || !1) !== (t.passThrough || !1) && _i.set(r, "passThrough", {
|
|
12862
12907
|
status: "modified",
|
|
12863
12908
|
previousValue: t.passThrough
|
|
12864
12909
|
});
|
|
12865
|
-
let i =
|
|
12866
|
-
let n = !
|
|
12910
|
+
let i = Ah(e?.expressions || [], t?.expressions || [], { compareFields: (e, t) => {
|
|
12911
|
+
let n = !kh(e.key, t.key), r = !kh(e.value, t.value);
|
|
12867
12912
|
return {
|
|
12868
12913
|
hasChanges: n || r,
|
|
12869
12914
|
fields: {
|
|
@@ -12916,7 +12961,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12916
12961
|
executionMode: n?.executionMode
|
|
12917
12962
|
};
|
|
12918
12963
|
});
|
|
12919
|
-
return /* @__PURE__ */ U(
|
|
12964
|
+
return /* @__PURE__ */ U(Jh, {
|
|
12920
12965
|
id: e,
|
|
12921
12966
|
specification: r,
|
|
12922
12967
|
name: t.name,
|
|
@@ -12930,7 +12975,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12930
12975
|
});
|
|
12931
12976
|
},
|
|
12932
12977
|
renderSettings: ({ id: e }) => {
|
|
12933
|
-
let t = o(), n = nh(), r =
|
|
12978
|
+
let t = o(), n = nh(), r = Eh(e), { contentDiff: i } = ih(e), { fields: a, disabled: s } = $(({ decisionGraph: t, disabled: n }) => {
|
|
12934
12979
|
let r = (t?.nodes ?? []).find((t) => t.id === e)?.content;
|
|
12935
12980
|
return {
|
|
12936
12981
|
disabled: n,
|
|
@@ -12944,7 +12989,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12944
12989
|
}), c = (t) => {
|
|
12945
12990
|
n.updateNode(e, (e) => (Object.assign(e.content, t), e));
|
|
12946
12991
|
};
|
|
12947
|
-
return /* @__PURE__ */ W(
|
|
12992
|
+
return /* @__PURE__ */ W(eg, {
|
|
12948
12993
|
title: t("spec.expression.title"),
|
|
12949
12994
|
children: [
|
|
12950
12995
|
/* @__PURE__ */ U(To.Item, {
|
|
@@ -12965,7 +13010,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12965
13010
|
disabled: s,
|
|
12966
13011
|
displayDiff: i?.fields?.inputField?.status === "modified",
|
|
12967
13012
|
previousValue: i?.fields?.inputField?.previousValue,
|
|
12968
|
-
style:
|
|
13013
|
+
style: tg,
|
|
12969
13014
|
expectedVariableType: a?.executionMode === "loop" ? { Array: "Any" } : void 0,
|
|
12970
13015
|
maxRows: 4,
|
|
12971
13016
|
value: a?.inputField ?? "",
|
|
@@ -13006,40 +13051,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13006
13051
|
]
|
|
13007
13052
|
});
|
|
13008
13053
|
}
|
|
13009
|
-
}, Cg = "declare namespace Big {\n type BigSource = number | string | Big;\n\n /**\n * GT = 1, EQ = 0, LT = -1\n */\n type Comparison = -1 | 0 | 1;\n\n /**\n * RoundDown = 0, RoundHalfUp = 1, RoundHalfEven = 2, RoundUp = 3\n */\n type RoundingMode = 0 | 1 | 2 | 3;\n\n interface BigConstructor {\n /**\n * Returns a new instance of a Big number object\n *\n * String values may be in exponential, as well as normal (non-exponential) notation.\n * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.\n * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.\n * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.\n *\n * @throws `NaN` on an invalid value.\n */\n new(value: BigSource): Big;\n\n /**\n * Returns a new instance of a Big number object\n *\n * String values may be in exponential, as well as normal (non-exponential) notation.\n * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6.\n * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid.\n * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9.\n *\n * @throws `NaN` on an invalid value.\n */\n (value: BigSource): Big;\n\n /**\n * Create an additional Big number constructor\n *\n * Values created with the returned constructor will have a separate set of configuration values.\n * This can be used to create Big objects with different DP and RM values.\n * Big numbers created by different constructors can be used together in operations, and it is the DP and RM setting of the Big number that an operation is called upon that will apply.\n * In the interest of memory efficiency, all Big number constructors share the same prototype object,\n * so while the DP and RM (and any other own properties) of a constructor are isolated and untouchable by another, its prototype methods are not.\n */\n (): BigConstructor;\n\n /**\n * The maximum number of decimal places of the results of operations involving division.\n * It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative.\n *\n * 0 to 1e+6 inclusive\n * Default value: 20\n */\n DP: number;\n /**\n * The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision.\n * Default value: 1\n */\n RM: number;\n /**\n * The negative exponent value at and below which toString returns exponential notation.\n *\n * -1e+6 to 0 inclusive\n * Default value: -7\n */\n NE: number;\n /**\n * The positive exponent value at and above which toString returns exponential notation.\n *\n * 0 to 1e+6 inclusive\n * Default value: 21\n */\n PE: number;\n /**\n * When set to true, an error will be thrown if a primitive number is passed to the Big constructor,\n * or if valueOf is called, or if toNumber is called on a Big which cannot be converted to a primitive number without a loss of precision.\n *\n * true|false\n * Default value: false\n */\n strict: boolean;\n\n /** Readonly rounding modes */\n\n /**\n * Rounds towards zero.\n * I.e. truncate, no rounding.\n */\n readonly roundDown: 0;\n /**\n * Rounds towards nearest neighbour.\n * If equidistant, rounds away from zero.\n */\n readonly roundHalfUp: 1;\n /**\n * Rounds towards nearest neighbour.\n * If equidistant, rounds towards even neighbour.\n */\n readonly roundHalfEven: 2;\n /**\n * Rounds away from zero.\n */\n readonly roundUp: 3;\n\n readonly Big: BigConstructor;\n }\n\n interface Big {\n /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */\n abs(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number plus n - alias for .plus().\n *\n * @throws `NaN` if n is invalid.\n */\n add(n: BigSource): Big;\n /**\n * Compare the values.\n *\n * @throws `NaN` if n is invalid.\n */\n cmp(n: BigSource): Comparison;\n /**\n * Returns a Big number whose value is the value of this Big number divided by n.\n *\n * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @throws `NaN` if n is invalid.\n * @throws `±Infinity` on division by zero.\n * @throws `NaN` on division of zero by zero.\n */\n div(n: BigSource): Big;\n /**\n * Returns true if the value of this Big equals the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n eq(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is greater than the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n gt(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n gte(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is less than the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n lt(n: BigSource): boolean;\n /**\n * Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false.\n *\n * @throws `NaN` if n is invalid.\n */\n lte(n: BigSource): boolean;\n /**\n * Returns a Big number whose value is the value of this Big number minus n.\n *\n * @throws `NaN` if n is invalid.\n */\n minus(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n.\n *\n * The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method.\n *\n * @throws `NaN` if n is negative or otherwise invalid.\n */\n mod(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number times n - alias for .times().\n *\n * @throws `NaN` if n is invalid.\n */\n mul(n: BigSource): Big;\n /**\n * Return a new Big whose value is the value of this Big negated.\n */\n neg(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number plus n.\n *\n * @throws `NaN` if n is invalid.\n */\n plus(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number raised to the power exp.\n *\n * If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @param exp The power to raise the number to, -1e+6 to 1e+6 inclusive\n * @throws `!pow!` if exp is invalid.\n *\n * Note: High value exponents may cause this method to be slow to return.\n */\n pow(exp: number): Big;\n /**\n * Return a new Big whose value is the value of this Big rounded to a maximum precision of sd\n * significant digits using rounding mode rm, or Big.RM if rm is not specified.\n *\n * @param sd Significant digits: integer, 1 to MAX_DP inclusive.\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!prec!` if sd is invalid.\n * @throws `!Big.RM!` if rm is invalid.\n */\n prec(sd: number, rm?: RoundingMode): Big;\n /**\n * Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!round!` if dp is invalid.\n * @throws `!Big.RM!` if rm is invalid.\n */\n round(dp?: number, rm?: RoundingMode): Big;\n /**\n * Returns a Big number whose value is the square root of this Big number.\n *\n * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM.\n *\n * @throws `NaN` if this Big number is negative.\n */\n sqrt(): Big;\n /**\n * Returns a Big number whose value is the value of this Big number minus n - alias for .minus().\n *\n * @throws `NaN` if n is invalid.\n */\n sub(n: BigSource): Big;\n /**\n * Returns a Big number whose value is the value of this Big number times n.\n *\n * @throws `NaN` if n is invalid.\n */\n times(n: BigSource): Big;\n /**\n * Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp.\n *\n * If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp,\n * the return value will be rounded to dp decimal places using rounding mode Big.RM.\n *\n * If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly.\n *\n * If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toFix!` if dp is invalid.\n */\n toExponential(dp?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp.\n *\n * If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp,\n * the return value will be rounded to dp decimal places using rounding mode Big.RM.\n *\n * If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly.\n *\n * Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation.\n *\n * If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation.\n * This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places.\n *\n * @param dp Decimal places, 0 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toFix!` if dp is invalid.\n */\n toFixed(dp?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number to the specified number of significant digits sd.\n *\n * If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM.\n *\n * If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly.\n *\n * If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used.\n *\n * If sd is omitted, or is null or undefined, then the return value is the same as .toString().\n *\n * @param sd Significant digits, 1 to 1e+6 inclusive\n * @param rm Rounding mode: 0 (down), 1 (half-up), 2 (half-even) or 3 (up).\n * @throws `!toPre!` if sd is invalid.\n */\n toPrecision(sd?: number, rm?: RoundingMode): string;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n toString(): string;\n /**\n * Returns a primitive number representing the value of this Big number.\n *\n * If Big.strict is true an error will be thrown if toNumber is called on a Big number which cannot be converted to a primitive number without a loss of precision.\n *\n * @since 6.0\n */\n toNumber(): number;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n valueOf(): string;\n /**\n * Returns a string representing the value of this Big number.\n *\n * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned.\n *\n * The point at which toString returns exponential rather than normal notation can be adjusted by changing\n * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard.\n */\n toJSON(): string;\n /**\n * Returns an array of single digits\n */\n c: number[];\n /**\n * Returns the exponent, Integer, -1e+6 to 1e+6 inclusive\n */\n e: number;\n /**\n * Returns the sign, -1 or 1\n */\n s: number;\n }\n}\n\n// We want the exported symbol 'Big' to represent two things:\n// - The Big interface, when used in a type context.\n// - The BigConstructor instance, when used in a value context.\ndeclare const Big: Big.BigConstructor;\ntype Big = Big.Big;\n\n// The export is the same as type/value combo symbol 'Big'.\nexport = Big;\nexport as namespace Big;\n", wg = "/// <reference path=\"./locale/index.d.ts\" />\n\nexport = dayjs;\n\ndeclare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs\n\ndeclare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs\n\ndeclare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs\n\ndeclare namespace dayjs {\n interface ConfigTypeMap {\n default: string | number | Date | Dayjs | null | undefined\n }\n\n export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]\n\n export interface FormatObject { locale?: string, format?: string, utc?: boolean }\n\n export type OptionType = FormatObject | string | string[]\n\n export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'\n\n export type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date'\n\n export type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates'\n \n export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort;\n\n export type OpUnitType = UnitType | \"week\" | \"weeks\" | 'w';\n export type QUnitType = UnitType | \"quarter\" | \"quarters\" | 'Q';\n export type ManipulateType = Exclude<OpUnitType, 'date' | 'dates'>;\n class Dayjs {\n constructor (config?: ConfigType)\n /**\n * All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.\n * ```\n * dayjs().clone()// => Dayjs\n * dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it\n * ```\n * Docs: https://day.js.org/docs/en/parse/dayjs-clone\n */\n clone(): Dayjs\n /**\n * This returns a `boolean` indicating whether the Day.js object contains a valid date or not.\n * ```\n * dayjs().isValid()// => boolean\n * ```\n * Docs: https://day.js.org/docs/en/parse/is-valid\n */\n isValid(): boolean\n /**\n * Get the year.\n * ```\n * dayjs().year()// => 2020\n * ```\n * Docs: https://day.js.org/docs/en/get-set/year\n */\n year(): number\n /**\n * Set the year.\n * ```\n * dayjs().year(2000)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/year\n */\n year(value: number): Dayjs\n /**\n * Get the month.\n *\n * Months are zero indexed, so January is month 0.\n * ```\n * dayjs().month()// => 0-11\n * ```\n * Docs: https://day.js.org/docs/en/get-set/month\n */\n month(): number\n /**\n * Set the month.\n *\n * Months are zero indexed, so January is month 0.\n *\n * Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the next year.\n * ```\n * dayjs().month(0)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/month\n */\n month(value: number): Dayjs\n /**\n * Get the date of the month.\n * ```\n * dayjs().date()// => 1-31\n * ```\n * Docs: https://day.js.org/docs/en/get-set/date\n */\n date(): number\n /**\n * Set the date of the month.\n *\n * Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the next months.\n * ```\n * dayjs().date(1)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/date\n */\n date(value: number): Dayjs\n /**\n * Get the day of the week.\n *\n * Returns numbers from 0 (Sunday) to 6 (Saturday).\n * ```\n * dayjs().day()// 0-6\n * ```\n * Docs: https://day.js.org/docs/en/get-set/day\n */\n day(): 0 | 1 | 2 | 3 | 4 | 5 | 6\n /**\n * Set the day of the week.\n *\n * Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to next weeks.\n * ```\n * dayjs().day(0)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/day\n */\n day(value: number): Dayjs\n /**\n * Get the hour.\n * ```\n * dayjs().hour()// => 0-23\n * ```\n * Docs: https://day.js.org/docs/en/get-set/hour\n */\n hour(): number\n /**\n * Set the hour.\n *\n * Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the next day.\n * ```\n * dayjs().hour(12)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/hour\n */\n hour(value: number): Dayjs\n /**\n * Get the minutes.\n * ```\n * dayjs().minute()// => 0-59\n * ```\n * Docs: https://day.js.org/docs/en/get-set/minute\n */\n minute(): number\n /**\n * Set the minutes.\n *\n * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next hour.\n * ```\n * dayjs().minute(59)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/minute\n */\n minute(value: number): Dayjs\n /**\n * Get the seconds.\n * ```\n * dayjs().second()// => 0-59\n * ```\n * Docs: https://day.js.org/docs/en/get-set/second\n */\n second(): number\n /**\n * Set the seconds.\n *\n * Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the next minutes.\n * ```\n * dayjs().second(1)// Dayjs\n * ```\n */\n second(value: number): Dayjs\n /**\n * Get the milliseconds.\n * ```\n * dayjs().millisecond()// => 0-999\n * ```\n * Docs: https://day.js.org/docs/en/get-set/millisecond\n */\n millisecond(): number\n /**\n * Set the milliseconds.\n *\n * Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the next seconds.\n * ```\n * dayjs().millisecond(1)// => Dayjs\n * ```\n * Docs: https://day.js.org/docs/en/get-set/millisecond\n */\n millisecond(value: number): Dayjs\n /**\n * Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.\n *\n * In general:\n * ```\n * dayjs().set(unit, value) === dayjs()[unit](value)\n * ```\n * Units are case insensitive, and support plural and short forms.\n * ```\n * dayjs().set('date', 1)\n * dayjs().set('month', 3) // April\n * dayjs().set('second', 30)\n * ```\n * Docs: https://day.js.org/docs/en/get-set/set\n */\n set(unit: UnitType, value: number): Dayjs\n /**\n * String getter, returns the corresponding information getting from Day.js object.\n *\n * In general:\n * ```\n * dayjs().get(unit) === dayjs()[unit]()\n * ```\n * Units are case insensitive, and support plural and short forms.\n * ```\n * dayjs().get('year')\n * dayjs().get('month') // start 0\n * dayjs().get('date')\n * ```\n * Docs: https://day.js.org/docs/en/get-set/get\n */\n get(unit: UnitType): number\n /**\n * Returns a cloned Day.js object with a specified amount of time added.\n * ```\n * dayjs().add(7, 'day')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/add\n */\n add(value: number, unit?: ManipulateType): Dayjs\n /**\n * Returns a cloned Day.js object with a specified amount of time subtracted.\n * ```\n * dayjs().subtract(7, 'year')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/subtract\n */\n subtract(value: number, unit?: ManipulateType): Dayjs\n /**\n * Returns a cloned Day.js object and set it to the start of a unit of time.\n * ```\n * dayjs().startOf('year')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/start-of\n */\n startOf(unit: OpUnitType): Dayjs\n /**\n * Returns a cloned Day.js object and set it to the end of a unit of time.\n * ```\n * dayjs().endOf('month')// => Dayjs\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/manipulate/end-of\n */\n endOf(unit: OpUnitType): Dayjs\n /**\n * Get the formatted date according to the string of tokens passed in.\n *\n * To escape characters, wrap them in square brackets (e.g. [MM]).\n * ```\n * dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'\n * dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'\n * dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'\n * ```\n * Docs: https://day.js.org/docs/en/display/format\n */\n format(template?: string): string\n /**\n * This indicates the difference between two date-time in the specified unit.\n *\n * To get the difference in milliseconds, use `dayjs#diff`\n * ```\n * const date1 = dayjs('2019-01-25')\n * const date2 = dayjs('2018-06-05')\n * date1.diff(date2) // 20214000000 default milliseconds\n * date1.diff() // milliseconds to current time\n * ```\n *\n * To get the difference in another unit of measurement, pass that measurement as the second argument.\n * ```\n * const date1 = dayjs('2019-01-25')\n * date1.diff('2018-06-05', 'month') // 7\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/display/difference\n */\n diff(date?: ConfigType, unit?: QUnitType | OpUnitType, float?: boolean): number\n /**\n * This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.\n * ```\n * dayjs('2019-01-25').valueOf() // 1548381600000\n * +dayjs(1548381600000) // 1548381600000\n * ```\n * To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.\n *\n * Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds\n */\n valueOf(): number\n /**\n * This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.\n * ```\n * dayjs('2019-01-25').unix() // 1548381600\n * ```\n * This value is floored to the nearest second, and does not include a milliseconds component.\n *\n * Docs: https://day.js.org/docs/en/display/unix-timestamp\n */\n unix(): number\n /**\n * Get the number of days in the current month.\n * ```\n * dayjs('2019-01-25').daysInMonth() // 31\n * ```\n * Docs: https://day.js.org/docs/en/display/days-in-month\n */\n daysInMonth(): number\n /**\n * To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.\n * ```\n * dayjs('2019-01-25').toDate()// => Date\n * ```\n */\n toDate(): Date\n /**\n * To serialize as an ISO 8601 string.\n * ```\n * dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-json\n */\n toJSON(): string\n /**\n * To format as an ISO 8601 string.\n * ```\n * dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-iso-string\n */\n toISOString(): string\n /**\n * Returns a string representation of the date.\n * ```\n * dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'\n * ```\n * Docs: https://day.js.org/docs/en/display/as-string\n */\n toString(): string\n /**\n * Get the UTC offset in minutes.\n * ```\n * dayjs().utcOffset()\n * ```\n * Docs: https://day.js.org/docs/en/manipulate/utc-offset\n */\n utcOffset(): number\n /**\n * This indicates whether the Day.js object is before the other supplied date-time.\n * ```\n * dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isBefore('2011-01-01', 'year')// => boolean\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/query/is-before\n */\n isBefore(date?: ConfigType, unit?: OpUnitType): boolean\n /**\n * This indicates whether the Day.js object is the same as the other supplied date-time.\n * ```\n * dayjs().isSame(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isSame('2011-01-01', 'year')// => boolean\n * ```\n * Docs: https://day.js.org/docs/en/query/is-same\n */\n isSame(date?: ConfigType, unit?: OpUnitType): boolean\n /**\n * This indicates whether the Day.js object is after the other supplied date-time.\n * ```\n * dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds\n * ```\n * If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.\n * ```\n * dayjs().isAfter('2011-01-01', 'year')// => boolean\n * ```\n * Units are case insensitive, and support plural and short forms.\n *\n * Docs: https://day.js.org/docs/en/query/is-after\n */\n isAfter(date?: ConfigType, unit?: OpUnitType): boolean\n\n locale(): string\n\n locale(preset: string | ILocale, object?: Partial<ILocale>): Dayjs\n }\n\n export type PluginFunc<T = unknown> = (option: T, c: typeof Dayjs, d: typeof dayjs) => void\n\n export function extend<T = unknown>(plugin: PluginFunc<T>, option?: T): Dayjs\n\n export function locale(preset?: string | ILocale, object?: Partial<ILocale>, isLocal?: boolean): string\n\n export function isDayjs(d: any): d is Dayjs\n\n export function unix(t: number): Dayjs\n\n const Ls : { [key: string] : ILocale }\n}\n", Tg = "import zen from 'zen';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n return input;\n};\n", Eg = "declare namespace console {\n function log(...args: any[]): void;\n async function sleep(durationMs: number): Promise<void>;\n}\n\ninterface Config {\n readonly maxDepth: number;\n readonly iteration: number;\n readonly trace: boolean;\n}\n\ndeclare const config: Config;\n", Dg = [
|
|
13010
|
-
{
|
|
13011
|
-
name: "big.js",
|
|
13012
|
-
tagline: "Arbitrary-precision decimal arithmetic",
|
|
13013
|
-
importName: "Big",
|
|
13014
|
-
typeDef: Cg,
|
|
13015
|
-
documentationUrl: "https://mikemcl.github.io/big.js/"
|
|
13016
|
-
},
|
|
13017
|
-
{
|
|
13018
|
-
name: "dayjs",
|
|
13019
|
-
tagline: "Date utilities",
|
|
13020
|
-
typeDef: wg,
|
|
13021
|
-
documentationUrl: "https://day.js.org/docs/en/parse/parse"
|
|
13022
|
-
},
|
|
13023
|
-
{
|
|
13024
|
-
name: "http",
|
|
13025
|
-
tagline: "Promise based HTTP client",
|
|
13026
|
-
typeDef: "declare class HttpResponse {\n readonly data: any;\n readonly headers: Record<string, string>;\n readonly status: number;\n}\n\ninterface HttpConfig {\n headers?: Record<string, string | number | boolean>;\n params?: Record<string, string | number | boolean>;\n data?: any;\n auth?: HttpIamAuth;\n}\n\ntype HttpIamAuth = { type: 'iam' } & (\n { provider: 'aws'; service: string; region?: string } | { provider: 'gcp'; service: string } | { provider: 'azure' }\n);\n\nclass Http {\n head(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n get(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n delete(url: string, config?: HttpConfig): Promise<HttpResponse>;\n\n post(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n\n patch(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n\n put(url: string, data: any, config?: HttpConfig): Promise<HttpResponse>;\n}\n\nexport interface HttpStatic extends Http {}\n\ndeclare const http: HttpStatic;\nexport default http;\n",
|
|
13027
|
-
documentationUrl: "https://docs.gorules.io/reference/http"
|
|
13028
|
-
},
|
|
13029
|
-
{
|
|
13030
|
-
name: "zen",
|
|
13031
|
-
tagline: "Rules engine utilities",
|
|
13032
|
-
typeDef: "interface EvaluateOptions {\n trace?: boolean;\n}\n\ninterface EvaluateResponse {\n performance: string;\n result: any;\n trace?: any;\n}\n\ninterface ZenModule {\n /**\n * Evaluates ZEN expression\n * @param expression\n * @param context Must contain '$' key\n */\n evaluateExpression(expression: string, context: any): any;\n\n /**\n * Evaluates ZEN unary expression\n * @param expression\n * @param context Must contain '$' key\n */\n evaluateUnaryExpression(expression: string, context: any): boolean;\n\n /**\n * Evaluates ZEN unary expression\n * @param key File key to be evaluated through DecisionLoader\n * @param context\n * @param opts\n */\n evaluate(key: string, context: any, opts?: EvaluateOptions): Promise<EvaluateResponse>;\n}\n\ndeclare const zenModule: ZenModule;\n\nexport default zenModule;\n",
|
|
13033
|
-
documentationUrl: "https://docs.gorules.io/reference/zen"
|
|
13034
|
-
},
|
|
13035
|
-
{
|
|
13036
|
-
name: "zod",
|
|
13037
|
-
tagline: "Schema validation",
|
|
13038
|
-
importName: "z",
|
|
13039
|
-
typeDef: "declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;\ndeclare type Scalars = Primitive | Primitive[];\n\ndeclare namespace util {\n type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;\n export type isAny<T> = 0 extends 1 & T ? true : false;\n export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;\n export function assertIs<T>(_arg: T): void;\n export function assertNever(_x: never): never;\n export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\n export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;\n export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;\n export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;\n export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };\n export const getValidEnumValues: (obj: any) => any[];\n export const objectValues: (obj: any) => any[];\n export const objectKeys: ObjectConstructor['keys'];\n export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;\n export type identity<T> = objectUtil.identity<T>;\n export type flatten<T> = objectUtil.flatten<T>;\n export type noUndefined<T> = T extends undefined ? never : T;\n export const isInteger: NumberConstructor['isInteger'];\n export function joinValues<T extends any[]>(array: T, separator?: string): string;\n export const jsonStringifyReplacer: (_: string, value: any) => any;\n export {};\n}\ndeclare namespace objectUtil {\n export type MergeShapes<U, V> = {\n [k in Exclude<keyof U, keyof V>]: U[k];\n } & V;\n type optionalKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? k : never;\n }[keyof T];\n type requiredKeys<T extends object> = {\n [k in keyof T]: undefined extends T[k] ? never : k;\n }[keyof T];\n export type addQuestionMarks<T extends object, _O = any> = {\n [K in requiredKeys<T>]: T[K];\n } & {\n [K in optionalKeys<T>]?: T[K];\n } & {\n [k in keyof T]?: unknown;\n };\n export type identity<T> = T;\n export type flatten<T> = identity<{\n [k in keyof T]: T[k];\n }>;\n export type noNeverKeys<T> = {\n [k in keyof T]: [T[k]] extends [never] ? never : k;\n }[keyof T];\n export type noNever<T> = identity<{\n [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;\n }>;\n export const mergeShapes: <U, T>(first: U, second: T) => T & U;\n export type extendShape<A extends object, B extends object> = {\n [K in keyof A as K extends keyof B ? never : K]: A[K];\n } & {\n [K in keyof B]: B[K];\n };\n export {};\n}\ndeclare const ZodParsedType: {\n function: 'function';\n number: 'number';\n string: 'string';\n nan: 'nan';\n integer: 'integer';\n float: 'float';\n boolean: 'boolean';\n date: 'date';\n bigint: 'bigint';\n symbol: 'symbol';\n undefined: 'undefined';\n null: 'null';\n array: 'array';\n object: 'object';\n unknown: 'unknown';\n promise: 'promise';\n void: 'void';\n never: 'never';\n map: 'map';\n set: 'set';\n};\ndeclare type ZodParsedType = keyof typeof ZodParsedType;\ndeclare const getParsedType: (data: any) => ZodParsedType;\n\ndeclare type allKeys<T> = T extends any ? keyof T : never;\ndeclare type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;\ndeclare type typeToFlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in allKeys<T>]?: U[];\n };\n};\ndeclare const ZodIssueCode: {\n invalid_type: 'invalid_type';\n invalid_literal: 'invalid_literal';\n custom: 'custom';\n invalid_union: 'invalid_union';\n invalid_union_discriminator: 'invalid_union_discriminator';\n invalid_enum_value: 'invalid_enum_value';\n unrecognized_keys: 'unrecognized_keys';\n invalid_arguments: 'invalid_arguments';\n invalid_return_type: 'invalid_return_type';\n invalid_date: 'invalid_date';\n invalid_string: 'invalid_string';\n too_small: 'too_small';\n too_big: 'too_big';\n invalid_intersection_types: 'invalid_intersection_types';\n not_multiple_of: 'not_multiple_of';\n not_finite: 'not_finite';\n};\ndeclare type ZodIssueCode = keyof typeof ZodIssueCode;\ndeclare type ZodIssueBase = {\n path: (string | number)[];\n message?: string;\n};\ninterface ZodInvalidTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_type;\n expected: ZodParsedType;\n received: ZodParsedType;\n}\ninterface ZodInvalidLiteralIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_literal;\n expected: unknown;\n received: unknown;\n}\ninterface ZodUnrecognizedKeysIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.unrecognized_keys;\n keys: string[];\n}\ninterface ZodInvalidUnionIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union;\n unionErrors: ZodError[];\n}\ninterface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_union_discriminator;\n options: Primitive[];\n}\ninterface ZodInvalidEnumValueIssue extends ZodIssueBase {\n received: string | number;\n code: typeof ZodIssueCode.invalid_enum_value;\n options: (string | number)[];\n}\ninterface ZodInvalidArgumentsIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_arguments;\n argumentsError: ZodError;\n}\ninterface ZodInvalidReturnTypeIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_return_type;\n returnTypeError: ZodError;\n}\ninterface ZodInvalidDateIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_date;\n}\ndeclare type StringValidation =\n | 'email'\n | 'url'\n | 'emoji'\n | 'uuid'\n | 'nanoid'\n | 'regex'\n | 'cuid'\n | 'cuid2'\n | 'ulid'\n | 'datetime'\n | 'date'\n | 'time'\n | 'duration'\n | 'ip'\n | 'base64'\n | {\n includes: string;\n position?: number;\n }\n | {\n startsWith: string;\n }\n | {\n endsWith: string;\n };\ninterface ZodInvalidStringIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_string;\n validation: StringValidation;\n}\ninterface ZodTooSmallIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_small;\n minimum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodTooBigIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.too_big;\n maximum: number | bigint;\n inclusive: boolean;\n exact?: boolean;\n type: 'array' | 'string' | 'number' | 'set' | 'date' | 'bigint';\n}\ninterface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.invalid_intersection_types;\n}\ninterface ZodNotMultipleOfIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_multiple_of;\n multipleOf: number | bigint;\n}\ninterface ZodNotFiniteIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.not_finite;\n}\ninterface ZodCustomIssue extends ZodIssueBase {\n code: typeof ZodIssueCode.custom;\n params?: {\n [k: string]: any;\n };\n}\ndeclare type DenormalizedError = {\n [k: string]: DenormalizedError | string[];\n};\ndeclare type ZodIssueOptionalMessage =\n | ZodInvalidTypeIssue\n | ZodInvalidLiteralIssue\n | ZodUnrecognizedKeysIssue\n | ZodInvalidUnionIssue\n | ZodInvalidUnionDiscriminatorIssue\n | ZodInvalidEnumValueIssue\n | ZodInvalidArgumentsIssue\n | ZodInvalidReturnTypeIssue\n | ZodInvalidDateIssue\n | ZodInvalidStringIssue\n | ZodTooSmallIssue\n | ZodTooBigIssue\n | ZodInvalidIntersectionTypesIssue\n | ZodNotMultipleOfIssue\n | ZodNotFiniteIssue\n | ZodCustomIssue;\ndeclare type ZodIssue = ZodIssueOptionalMessage & {\n fatal?: boolean;\n message: string;\n};\ndeclare const quotelessJson: (obj: any) => string;\ndeclare type recursiveZodFormattedError<T> = T extends [any, ...any[]]\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : T extends any[]\n ? {\n [k: number]: ZodFormattedError<T[number]>;\n }\n : T extends object\n ? {\n [K in keyof T]?: ZodFormattedError<T[K]>;\n }\n : unknown;\ndeclare type ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & recursiveZodFormattedError<NonNullable<T>>;\ndeclare type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;\ndeclare class ZodError<T = any> extends Error {\n issues: ZodIssue[];\n get errors(): ZodIssue[];\n constructor(issues: ZodIssue[]);\n format(): ZodFormattedError<T>;\n format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;\n static create: (issues: ZodIssue[]) => ZodError<any>;\n static assert(value: unknown): asserts value is ZodError;\n toString(): string;\n get message(): string;\n get isEmpty(): boolean;\n addIssue: (sub: ZodIssue) => void;\n addIssues: (subs?: ZodIssue[]) => void;\n flatten(): typeToFlattenedError<T>;\n flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;\n get formErrors(): typeToFlattenedError<T, string>;\n}\ndeclare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, 'path'> : never;\ndeclare type IssueData = stripPath<ZodIssueOptionalMessage> & {\n path?: (string | number)[];\n fatal?: boolean;\n};\ndeclare type ErrorMapCtx = {\n defaultError: string;\n data: any;\n};\ndeclare type ZodErrorMap = (\n issue: ZodIssueOptionalMessage,\n _ctx: ErrorMapCtx,\n) => {\n message: string;\n};\n\ndeclare const errorMap: ZodErrorMap;\n//# sourceMappingURL=en.d.ts.map\n\ndeclare function setErrorMap(map: ZodErrorMap): void;\ndeclare function getErrorMap(): ZodErrorMap;\n\ndeclare const makeIssue: (params: {\n data: any;\n path: (string | number)[];\n errorMaps: ZodErrorMap[];\n issueData: IssueData;\n}) => ZodIssue;\ndeclare type ParseParams = {\n path: (string | number)[];\n errorMap: ZodErrorMap;\n async: boolean;\n};\ndeclare type ParsePathComponent = string | number;\ndeclare type ParsePath = ParsePathComponent[];\ndeclare const EMPTY_PATH: ParsePath;\ninterface ParseContext {\n readonly common: {\n readonly issues: ZodIssue[];\n readonly contextualErrorMap?: ZodErrorMap;\n readonly async: boolean;\n };\n readonly path: ParsePath;\n readonly schemaErrorMap?: ZodErrorMap;\n readonly parent: ParseContext | null;\n readonly data: any;\n readonly parsedType: ZodParsedType;\n}\ndeclare type ParseInput = {\n data: any;\n path: (string | number)[];\n parent: ParseContext;\n};\ndeclare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;\ndeclare type ObjectPair = {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n};\ndeclare class ParseStatus {\n value: 'aborted' | 'dirty' | 'valid';\n dirty(): void;\n abort(): void;\n static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;\n static mergeObjectAsync(\n status: ParseStatus,\n pairs: {\n key: ParseReturnType<any>;\n value: ParseReturnType<any>;\n }[],\n ): Promise<SyncParseReturnType<any>>;\n static mergeObjectSync(\n status: ParseStatus,\n pairs: {\n key: SyncParseReturnType<any>;\n value: SyncParseReturnType<any>;\n alwaysSet?: boolean;\n }[],\n ): SyncParseReturnType;\n}\ninterface ParseResult {\n status: 'aborted' | 'dirty' | 'valid';\n data: any;\n}\ndeclare type INVALID = {\n status: 'aborted';\n};\ndeclare const INVALID: INVALID;\ndeclare type DIRTY<T> = {\n status: 'dirty';\n value: T;\n};\ndeclare const DIRTY: <T>(value: T) => DIRTY<T>;\ndeclare type OK<T> = {\n status: 'valid';\n value: T;\n};\ndeclare const OK: <T>(value: T) => OK<T>;\ndeclare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;\ndeclare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;\ndeclare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;\ndeclare const isAborted: (x: ParseReturnType<any>) => x is INVALID;\ndeclare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;\ndeclare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;\ndeclare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;\n\ndeclare namespace enumUtil {\n type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends (\n k: infer Intersection,\n ) => void\n ? Intersection\n : never;\n type GetUnionLast<T> = UnionToIntersectionFn<T> extends () => infer Last ? Last : never;\n type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never]\n ? Tuple\n : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;\n type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;\n export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;\n export {};\n}\n\ndeclare namespace errorUtil {\n type ErrMessage =\n | string\n | {\n message?: string;\n };\n const errToObj: (message?: ErrMessage | undefined) => {\n message?: string | undefined;\n };\n const toString: (message?: ErrMessage | undefined) => string | undefined;\n}\n\ndeclare namespace partialUtil {\n type DeepPartial<T extends ZodTypeAny> =\n T extends ZodObject<ZodRawShape>\n ? ZodObject<\n {\n [k in keyof T['shape']]: ZodOptional<DeepPartial<T['shape'][k]>>;\n },\n T['_def']['unknownKeys'],\n T['_def']['catchall']\n >\n : T extends ZodArray<infer Type, infer Card>\n ? ZodArray<DeepPartial<Type>, Card>\n : T extends ZodOptional<infer Type>\n ? ZodOptional<DeepPartial<Type>>\n : T extends ZodNullable<infer Type>\n ? ZodNullable<DeepPartial<Type>>\n : T extends ZodTuple<infer Items>\n ? {\n [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;\n } extends infer PI\n ? PI extends ZodTupleItems\n ? ZodTuple<PI>\n : never\n : never\n : T;\n}\n\ninterface RefinementCtx {\n addIssue: (arg: IssueData) => void;\n path: (string | number)[];\n}\ndeclare type ZodRawShape = {\n [k: string]: ZodTypeAny;\n};\ndeclare type ZodTypeAny = ZodType<any, any, any>;\ndeclare type TypeOf<T extends ZodType<any, any, any>> = T['_output'];\ndeclare type input<T extends ZodType<any, any, any>> = T['_input'];\ndeclare type output<T extends ZodType<any, any, any>> = T['_output'];\n\ndeclare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, 'code'>>;\ninterface ZodTypeDef {\n errorMap?: ZodErrorMap;\n description?: string;\n}\ndeclare type RawCreateParams =\n | {\n errorMap?: ZodErrorMap;\n invalid_type_error?: string;\n required_error?: string;\n message?: string;\n description?: string;\n }\n | undefined;\ndeclare type ProcessedCreateParams = {\n errorMap?: ZodErrorMap;\n description?: string;\n};\ndeclare type SafeParseSuccess<Output> = {\n success: true;\n data: Output;\n error?: never;\n};\ndeclare type SafeParseError<Input> = {\n success: false;\n error: ZodError<Input>;\n data?: never;\n};\ndeclare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;\ndeclare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {\n readonly _type: Output;\n readonly _output: Output;\n readonly _input: Input;\n readonly _def: Def;\n get description(): string | undefined;\n abstract _parse(input: ParseInput): ParseReturnType<Output>;\n _getType(input: ParseInput): string;\n _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;\n _processInputParams(input: ParseInput): {\n status: ParseStatus;\n ctx: ParseContext;\n };\n _parseSync(input: ParseInput): SyncParseReturnType<Output>;\n _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;\n parse(data: unknown, params?: Partial<ParseParams>): Output;\n safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;\n parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;\n safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;\n /** Alias of safeParseAsync */\n spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;\n refine<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, RefinedOutput, Input>;\n refine(\n check: (arg: Output) => unknown | Promise<unknown>,\n message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams),\n ): ZodEffects<this, Output, Input>;\n refinement<RefinedOutput extends Output>(\n check: (arg: Output) => arg is RefinedOutput,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, RefinedOutput, Input>;\n refinement(\n check: (arg: Output) => boolean,\n refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData),\n ): ZodEffects<this, Output, Input>;\n _refinement(refinement: RefinementEffect<Output>['refinement']): ZodEffects<this, Output, Input>;\n superRefine<RefinedOutput extends Output>(\n refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput,\n ): ZodEffects<this, RefinedOutput, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;\n superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;\n constructor(def: Def);\n optional(): ZodOptional<this>;\n nullable(): ZodNullable<this>;\n nullish(): ZodOptional<ZodNullable<this>>;\n array(): ZodArray<this>;\n promise(): ZodPromise<this>;\n or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;\n and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;\n transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;\n default(def: util.noUndefined<Input>): ZodDefault<this>;\n default(def: () => util.noUndefined<Input>): ZodDefault<this>;\n brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;\n catch(def: Output): ZodCatch<this>;\n catch(def: (ctx: { error: ZodError; input: Input }) => Output): ZodCatch<this>;\n describe(description: string): this;\n pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;\n readonly(): ZodReadonly<this>;\n isOptional(): boolean;\n isNullable(): boolean;\n}\ndeclare type IpVersion = 'v4' | 'v6';\ndeclare type ZodStringCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n }\n | {\n kind: 'length';\n value: number;\n message?: string;\n }\n | {\n kind: 'email';\n message?: string;\n }\n | {\n kind: 'url';\n message?: string;\n }\n | {\n kind: 'emoji';\n message?: string;\n }\n | {\n kind: 'uuid';\n message?: string;\n }\n | {\n kind: 'nanoid';\n message?: string;\n }\n | {\n kind: 'cuid';\n message?: string;\n }\n | {\n kind: 'includes';\n value: string;\n position?: number;\n message?: string;\n }\n | {\n kind: 'cuid2';\n message?: string;\n }\n | {\n kind: 'ulid';\n message?: string;\n }\n | {\n kind: 'startsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'endsWith';\n value: string;\n message?: string;\n }\n | {\n kind: 'regex';\n regex: RegExp;\n message?: string;\n }\n | {\n kind: 'trim';\n message?: string;\n }\n | {\n kind: 'toLowerCase';\n message?: string;\n }\n | {\n kind: 'toUpperCase';\n message?: string;\n }\n | {\n kind: 'datetime';\n offset: boolean;\n local: boolean;\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'date';\n message?: string;\n }\n | {\n kind: 'time';\n precision: number | null;\n message?: string;\n }\n | {\n kind: 'duration';\n message?: string;\n }\n | {\n kind: 'ip';\n version?: IpVersion;\n message?: string;\n }\n | {\n kind: 'base64';\n message?: string;\n };\ninterface ZodStringDef extends ZodTypeDef {\n checks: ZodStringCheck[];\n typeName: ZodFirstPartyTypeKind.ZodString;\n coerce: boolean;\n}\ndeclare function datetimeRegex(args: { precision?: number | null; offset?: boolean; local?: boolean }): RegExp;\ndeclare class ZodString extends ZodType<string, ZodStringDef, string> {\n _parse(input: ParseInput): ParseReturnType<string>;\n protected _regex(\n regex: RegExp,\n validation: StringValidation,\n message?: errorUtil.ErrMessage,\n ): ZodEffects<this, string, string>;\n _addCheck(check: ZodStringCheck): ZodString;\n email(message?: errorUtil.ErrMessage): ZodString;\n url(message?: errorUtil.ErrMessage): ZodString;\n emoji(message?: errorUtil.ErrMessage): ZodString;\n uuid(message?: errorUtil.ErrMessage): ZodString;\n nanoid(message?: errorUtil.ErrMessage): ZodString;\n cuid(message?: errorUtil.ErrMessage): ZodString;\n cuid2(message?: errorUtil.ErrMessage): ZodString;\n ulid(message?: errorUtil.ErrMessage): ZodString;\n base64(message?: errorUtil.ErrMessage): ZodString;\n ip(\n options?:\n | string\n | {\n version?: 'v4' | 'v6';\n message?: string;\n },\n ): ZodString;\n datetime(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n offset?: boolean;\n local?: boolean;\n },\n ): ZodString;\n date(message?: string): ZodString;\n time(\n options?:\n | string\n | {\n message?: string | undefined;\n precision?: number | null;\n },\n ): ZodString;\n duration(message?: errorUtil.ErrMessage): ZodString;\n regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;\n includes(\n value: string,\n options?: {\n message?: string;\n position?: number;\n },\n ): ZodString;\n startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;\n min(minLength: number, message?: errorUtil.ErrMessage): ZodString;\n max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;\n length(len: number, message?: errorUtil.ErrMessage): ZodString;\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message?: errorUtil.ErrMessage): ZodString;\n trim(): ZodString;\n toLowerCase(): ZodString;\n toUpperCase(): ZodString;\n get isDatetime(): boolean;\n get isDate(): boolean;\n get isTime(): boolean;\n get isDuration(): boolean;\n get isEmail(): boolean;\n get isURL(): boolean;\n get isEmoji(): boolean;\n get isUUID(): boolean;\n get isNANOID(): boolean;\n get isCUID(): boolean;\n get isCUID2(): boolean;\n get isULID(): boolean;\n get isIP(): boolean;\n get isBase64(): boolean;\n get minLength(): number | null;\n get maxLength(): number | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n}\ndeclare type ZodNumberCheck =\n | {\n kind: 'min';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'int';\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: number;\n message?: string;\n }\n | {\n kind: 'finite';\n message?: string;\n };\ninterface ZodNumberDef extends ZodTypeDef {\n checks: ZodNumberCheck[];\n typeName: ZodFirstPartyTypeKind.ZodNumber;\n coerce: boolean;\n}\ndeclare class ZodNumber extends ZodType<number, ZodNumberDef, number> {\n _parse(input: ParseInput): ParseReturnType<number>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n protected setLimit(kind: 'min' | 'max', value: number, inclusive: boolean, message?: string): ZodNumber;\n _addCheck(check: ZodNumberCheck): ZodNumber;\n int(message?: errorUtil.ErrMessage): ZodNumber;\n positive(message?: errorUtil.ErrMessage): ZodNumber;\n negative(message?: errorUtil.ErrMessage): ZodNumber;\n nonpositive(message?: errorUtil.ErrMessage): ZodNumber;\n nonnegative(message?: errorUtil.ErrMessage): ZodNumber;\n multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;\n step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;\n finite(message?: errorUtil.ErrMessage): ZodNumber;\n safe(message?: errorUtil.ErrMessage): ZodNumber;\n get minValue(): number | null;\n get maxValue(): number | null;\n get isInt(): boolean;\n get isFinite(): boolean;\n}\ndeclare type ZodBigIntCheck =\n | {\n kind: 'min';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'max';\n value: bigint;\n inclusive: boolean;\n message?: string;\n }\n | {\n kind: 'multipleOf';\n value: bigint;\n message?: string;\n };\ninterface ZodBigIntDef extends ZodTypeDef {\n checks: ZodBigIntCheck[];\n typeName: ZodFirstPartyTypeKind.ZodBigInt;\n coerce: boolean;\n}\ndeclare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {\n _parse(input: ParseInput): ParseReturnType<bigint>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n min: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n max: (value: bigint, message?: errorUtil.ErrMessage | undefined) => ZodBigInt;\n lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n protected setLimit(kind: 'min' | 'max', value: bigint, inclusive: boolean, message?: string): ZodBigInt;\n _addCheck(check: ZodBigIntCheck): ZodBigInt;\n positive(message?: errorUtil.ErrMessage): ZodBigInt;\n negative(message?: errorUtil.ErrMessage): ZodBigInt;\n nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;\n nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;\n multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;\n get minValue(): bigint | null;\n get maxValue(): bigint | null;\n}\ninterface ZodBooleanDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodBoolean;\n coerce: boolean;\n}\ndeclare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {\n _parse(input: ParseInput): ParseReturnType<boolean>;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n}\ndeclare type ZodDateCheck =\n | {\n kind: 'min';\n value: number;\n message?: string;\n }\n | {\n kind: 'max';\n value: number;\n message?: string;\n };\ninterface ZodDateDef extends ZodTypeDef {\n checks: ZodDateCheck[];\n coerce: boolean;\n typeName: ZodFirstPartyTypeKind.ZodDate;\n}\ndeclare class ZodDate extends ZodType<Date, ZodDateDef, Date> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n _addCheck(check: ZodDateCheck): ZodDate;\n min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;\n get minDate(): Date | null;\n get maxDate(): Date | null;\n static create: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n}\ninterface ZodSymbolDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodSymbol;\n}\ndeclare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodSymbol;\n}\ninterface ZodUndefinedDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUndefined;\n}\ndeclare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n params?: RawCreateParams;\n static create: (params?: RawCreateParams) => ZodUndefined;\n}\ninterface ZodNullDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNull;\n}\ndeclare class ZodNull extends ZodType<null, ZodNullDef, null> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNull;\n}\ninterface ZodAnyDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodAny;\n}\ndeclare class ZodAny extends ZodType<any, ZodAnyDef, any> {\n _any: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodAny;\n}\ninterface ZodUnknownDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodUnknown;\n}\ndeclare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {\n _unknown: true;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodUnknown;\n}\ninterface ZodNeverDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNever;\n}\ndeclare class ZodNever extends ZodType<never, ZodNeverDef, never> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodNever;\n}\ninterface ZodVoidDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodVoid;\n}\ndeclare class ZodVoid extends ZodType<void, ZodVoidDef, void> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: (params?: RawCreateParams) => ZodVoid;\n}\ninterface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodArray;\n exactLength: {\n value: number;\n message?: string;\n } | null;\n minLength: {\n value: number;\n message?: string;\n } | null;\n maxLength: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare type ArrayCardinality = 'many' | 'atleastone';\ndeclare type arrayOutputType<\n T extends ZodTypeAny,\n Cardinality extends ArrayCardinality = 'many',\n> = Cardinality extends 'atleastone' ? [T['_output'], ...T['_output'][]] : T['_output'][];\ndeclare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> extends ZodType<\n arrayOutputType<T, Cardinality>,\n ZodArrayDef<T>,\n Cardinality extends 'atleastone' ? [T['_input'], ...T['_input'][]] : T['_input'][]\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): T;\n min(minLength: number, message?: errorUtil.ErrMessage): this;\n max(maxLength: number, message?: errorUtil.ErrMessage): this;\n length(len: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodArray<T, 'atleastone'>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, 'many'>;\n}\ndeclare type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, 'atleastone'>;\ndeclare type UnknownKeysParam = 'passthrough' | 'strict' | 'strip';\ninterface ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodObject;\n shape: () => T;\n catchall: Catchall;\n unknownKeys: UnknownKeys;\n}\ndeclare type mergeTypes<A, B> = {\n [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never;\n};\ndeclare type objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> &\n CatchallOutput<Catchall> &\n PassthroughType<UnknownKeys>;\ndeclare type baseObjectOutputType<Shape extends ZodRawShape> = {\n [k in keyof Shape]: Shape[k]['_output'];\n};\ndeclare type objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;\ndeclare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{\n [k in keyof Shape]: Shape[k]['_input'];\n}>;\ndeclare type CatchallOutput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_output'];\n };\ndeclare type CatchallInput<T extends ZodType> = ZodType extends T\n ? unknown\n : {\n [k: string]: T['_input'];\n };\ndeclare type PassthroughType<T extends UnknownKeysParam> = T extends 'passthrough'\n ? {\n [k: string]: unknown;\n }\n : unknown;\ndeclare type deoptional<T extends ZodTypeAny> =\n T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;\ndeclare type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;\ndeclare type noUnrecognized<Obj extends object, Shape extends object> = {\n [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never;\n};\ndeclare class ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {\n private _cached;\n _getCached(): {\n shape: T;\n keys: string[];\n };\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get shape(): T;\n strict(message?: errorUtil.ErrMessage): ZodObject<T, 'strict', Catchall>;\n strip(): ZodObject<T, 'strip', Catchall>;\n passthrough(): ZodObject<T, 'passthrough', Catchall>;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n nonstrict: () => ZodObject<T, 'passthrough', Catchall>;\n extend<Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;\n /**\n * @deprecated Use `.extend` instead\n * */\n augment: <Augmentation extends ZodRawShape>(\n augmentation: Augmentation,\n ) => ZodObject<\n objectUtil.extendShape<T, Augmentation>,\n UnknownKeys,\n Catchall,\n objectOutputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>,\n objectInputType<objectUtil.extendShape<T, Augmentation>, Catchall, UnknownKeys>\n >;\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge<Incoming extends AnyZodObject, Augmentation extends Incoming['shape']>(\n merging: Incoming,\n ): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming['_def']['unknownKeys'], Incoming['_def']['catchall']>;\n setKey<Key extends string, Schema extends ZodTypeAny>(\n key: Key,\n schema: Schema,\n ): ZodObject<\n T & {\n [k in Key]: Schema;\n },\n UnknownKeys,\n Catchall\n >;\n catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;\n pick<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;\n omit<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;\n /**\n * @deprecated\n */\n deepPartial(): partialUtil.DeepPartial<this>;\n partial(): ZodObject<\n {\n [k in keyof T]: ZodOptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n partial<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n required(): ZodObject<\n {\n [k in keyof T]: deoptional<T[k]>;\n },\n UnknownKeys,\n Catchall\n >;\n required<\n Mask extends util.Exactly<\n {\n [k in keyof T]?: true;\n },\n Mask\n >,\n >(\n mask: Mask,\n ): ZodObject<\n objectUtil.noNever<{\n [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];\n }>,\n UnknownKeys,\n Catchall\n >;\n keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;\n static create: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static strictCreate: <T_1 extends ZodRawShape>(\n shape: T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n static lazycreate: <T_1 extends ZodRawShape>(\n shape: () => T_1,\n params?: RawCreateParams,\n ) => ZodObject<\n T_1,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T_1>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_1] }\n >;\n}\ndeclare type AnyZodObject = ZodObject<any, any, any>;\ndeclare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;\ninterface ZodUnionDef<\n T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>,\n> extends ZodTypeDef {\n options: T;\n typeName: ZodFirstPartyTypeKind.ZodUnion;\n}\ndeclare class ZodUnion<T extends ZodUnionOptions> extends ZodType<\n T[number]['_output'],\n ZodUnionDef<T>,\n T[number]['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T_1,\n params?: RawCreateParams,\n ) => ZodUnion<T_1>;\n}\ndeclare type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<\n {\n [key in Discriminator]: ZodTypeAny;\n } & ZodRawShape,\n UnknownKeysParam,\n ZodTypeAny\n>;\ninterface ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> extends ZodTypeDef {\n discriminator: Discriminator;\n options: Options;\n optionsMap: Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;\n}\ndeclare class ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get discriminator(): Discriminator;\n get options(): Options;\n get optionsMap(): Map<Primitive, ZodDiscriminatedUnionOption<any>>;\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create<\n Discriminator extends string,\n Types extends [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]],\n >(\n discriminator: Discriminator,\n options: Types,\n params?: RawCreateParams,\n ): ZodDiscriminatedUnion<Discriminator, Types>;\n}\ninterface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n left: T;\n right: U;\n typeName: ZodFirstPartyTypeKind.ZodIntersection;\n}\ndeclare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<\n T['_output'] & U['_output'],\n ZodIntersectionDef<T, U>,\n T['_input'] & U['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(\n left: T_1,\n right: U_1,\n params?: RawCreateParams,\n ) => ZodIntersection<T_1, U_1>;\n}\ndeclare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];\ndeclare type AssertArray<T> = T extends any[] ? T : never;\ndeclare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_output'] : never;\n}>;\ndeclare type OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest['_output'][]] : OutputTypeOfTuple<T>;\ndeclare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{\n [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]['_input'] : never;\n}>;\ndeclare type InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest['_input'][]] : InputTypeOfTuple<T>;\ninterface ZodTupleDef<\n T extends ZodTupleItems | [] = ZodTupleItems,\n Rest extends ZodTypeAny | null = null,\n> extends ZodTypeDef {\n items: T;\n rest: Rest;\n typeName: ZodFirstPartyTypeKind.ZodTuple;\n}\ndeclare type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;\ndeclare class ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get items(): T;\n rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;\n static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T_1,\n params?: RawCreateParams,\n ) => ZodTuple<T_1, null>;\n}\ninterface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodRecord;\n}\ndeclare type KeySchema = ZodType<string | number | symbol, any, any>;\ndeclare type RecordType<K extends string | number | symbol, V> = [string] extends [K]\n ? Record<K, V>\n : [number] extends [K]\n ? Record<K, V>\n : [symbol] extends [K]\n ? Record<K, V>\n : [BRAND<string | number | symbol>] extends [K]\n ? Record<K, V>\n : Partial<Record<K, V>>;\ndeclare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n RecordType<Key['_output'], Value['_output']>,\n ZodRecordDef<Key, Value>,\n RecordType<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get element(): Value;\n static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;\n static create<Keys extends KeySchema, Value extends ZodTypeAny>(\n keySchema: Keys,\n valueType: Value,\n params?: RawCreateParams,\n ): ZodRecord<Keys, Value>;\n}\ninterface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n keyType: Key;\n typeName: ZodFirstPartyTypeKind.ZodMap;\n}\ndeclare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Map<Key['_output'], Value['_output']>,\n ZodMapDef<Key, Value>,\n Map<Key['_input'], Value['_input']>\n> {\n get keySchema(): Key;\n get valueSchema(): Value;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <Key_1 extends ZodTypeAny = ZodTypeAny, Value_1 extends ZodTypeAny = ZodTypeAny>(\n keyType: Key_1,\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodMap<Key_1, Value_1>;\n}\ninterface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n valueType: Value;\n typeName: ZodFirstPartyTypeKind.ZodSet;\n minSize: {\n value: number;\n message?: string;\n } | null;\n maxSize: {\n value: number;\n message?: string;\n } | null;\n}\ndeclare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<\n Set<Value['_output']>,\n ZodSetDef<Value>,\n Set<Value['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n min(minSize: number, message?: errorUtil.ErrMessage): this;\n max(maxSize: number, message?: errorUtil.ErrMessage): this;\n size(size: number, message?: errorUtil.ErrMessage): this;\n nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;\n static create: <Value_1 extends ZodTypeAny = ZodTypeAny>(\n valueType: Value_1,\n params?: RawCreateParams,\n ) => ZodSet<Value_1>;\n}\ninterface ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> extends ZodTypeDef {\n args: Args;\n returns: Returns;\n typeName: ZodFirstPartyTypeKind.ZodFunction;\n}\ndeclare type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_input'] extends Array<any> ? (...args: Args['_input']) => Returns['_output'] : never;\ndeclare type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> =\n Args['_output'] extends Array<any> ? (...args: Args['_output']) => Returns['_input'] : never;\ndeclare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<\n OuterTypeOfFunction<Args, Returns>,\n ZodFunctionDef<Args, Returns>,\n InnerTypeOfFunction<Args, Returns>\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n parameters(): Args;\n returnType(): Returns;\n args<Items extends Parameters<(typeof ZodTuple)['create']>[0]>(\n ...items: Items\n ): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;\n returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;\n implement<F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ): ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;\n validate: <F extends InnerTypeOfFunction<Args, Returns>>(\n func: F,\n ) => ReturnType<F> extends Returns['_output']\n ? (...args: Args['_input']) => ReturnType<F>\n : OuterTypeOfFunction<Args, Returns>;\n static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;\n static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;\n static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(\n args: T,\n returns: U,\n params?: RawCreateParams,\n ): ZodFunction<T, U>;\n}\ninterface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n getter: () => T;\n typeName: ZodFirstPartyTypeKind.ZodLazy;\n}\ndeclare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {\n get schema(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(getter: () => T_1, params?: RawCreateParams) => ZodLazy<T_1>;\n}\ninterface ZodLiteralDef<T = any> extends ZodTypeDef {\n value: T;\n typeName: ZodFirstPartyTypeKind.ZodLiteral;\n}\ndeclare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get value(): T;\n static create: <T_1 extends Primitive>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;\n}\ndeclare type ArrayKeys = keyof any[];\ndeclare type Indices<T> = Exclude<keyof T, ArrayKeys>;\ndeclare type EnumValues<T extends string = string> = readonly [T, ...T[]];\ndeclare type Values<T extends EnumValues> = {\n [k in T[number]]: k;\n};\ninterface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodEnum;\n}\ndeclare type Writeable<T> = {\n -readonly [P in keyof T]: T[P];\n};\ndeclare type FilterEnum<Values, ToExclude> = Values extends []\n ? []\n : Values extends [infer Head, ...infer Rest]\n ? Head extends ToExclude\n ? FilterEnum<Rest, ToExclude>\n : [Head, ...FilterEnum<Rest, ToExclude>]\n : never;\ndeclare type typecast<A, T> = A extends T ? A : never;\ndeclare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<Writeable<T>>;\ndeclare function createZodEnum<U extends string, T extends [U, ...U[]]>(\n values: T,\n params?: RawCreateParams,\n): ZodEnum<T>;\ndeclare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n get options(): T;\n get enum(): Values<T>;\n get Values(): Values<T>;\n get Enum(): Values<T>;\n extract<ToExtract extends readonly [T[number], ...T[number][]]>(\n values: ToExtract,\n newDef?: RawCreateParams,\n ): ZodEnum<Writeable<ToExtract>>;\n exclude<ToExclude extends readonly [T[number], ...T[number][]]>(\n values: ToExclude,\n newDef?: RawCreateParams,\n ): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;\n static create: typeof createZodEnum;\n}\ninterface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {\n values: T;\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum;\n}\ndeclare type EnumLike = {\n [k: string]: string | number;\n [nu: number]: string;\n};\ndeclare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {\n #private;\n _parse(input: ParseInput): ParseReturnType<T[keyof T]>;\n get enum(): T;\n static create: <T_1 extends EnumLike>(values: T_1, params?: RawCreateParams) => ZodNativeEnum<T_1>;\n}\ninterface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodPromise;\n}\ndeclare class ZodPromise<T extends ZodTypeAny> extends ZodType<\n Promise<T['_output']>,\n ZodPromiseDef<T>,\n Promise<T['_input']>\n> {\n unwrap(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;\n}\ndeclare type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;\ndeclare type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;\ndeclare type RefinementEffect<T> = {\n type: 'refinement';\n refinement: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type TransformEffect<T> = {\n type: 'transform';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type PreprocessEffect<T> = {\n type: 'preprocess';\n transform: (arg: T, ctx: RefinementCtx) => any;\n};\ndeclare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;\ninterface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n schema: T;\n typeName: ZodFirstPartyTypeKind.ZodEffects;\n effect: Effect<any>;\n}\ndeclare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<\n Output,\n ZodEffectsDef<T>,\n Input\n> {\n innerType(): T;\n sourceType(): T;\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], input<I>>;\n static createWithPreprocess: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n ) => ZodEffects<I, I['_output'], unknown>;\n}\n\ninterface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodOptional;\n}\ndeclare type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare class ZodOptional<T extends ZodTypeAny> extends ZodType<\n T['_output'] | undefined,\n ZodOptionalDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;\n}\ninterface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodNullable;\n}\ndeclare type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare class ZodNullable<T extends ZodTypeAny> extends ZodType<\n T['_output'] | null,\n ZodNullableDef<T>,\n T['_input'] | null\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n unwrap(): T;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;\n}\ninterface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n defaultValue: () => util.noUndefined<T['_input']>;\n typeName: ZodFirstPartyTypeKind.ZodDefault;\n}\ndeclare class ZodDefault<T extends ZodTypeAny> extends ZodType<\n util.noUndefined<T['_output']>,\n ZodDefaultDef<T>,\n T['_input'] | undefined\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeDefault(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n default: T_1['_input'] | (() => util.noUndefined<T_1['_input']>);\n },\n ) => ZodDefault<T_1>;\n}\ninterface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n catchValue: (ctx: { error: ZodError; input: unknown }) => T['_input'];\n typeName: ZodFirstPartyTypeKind.ZodCatch;\n}\ndeclare class ZodCatch<T extends ZodTypeAny> extends ZodType<T['_output'], ZodCatchDef<T>, unknown> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n removeCatch(): T;\n static create: <T_1 extends ZodTypeAny>(\n type: T_1,\n params: {\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n catch: T_1['_output'] | (() => T_1['_output']);\n },\n ) => ZodCatch<T_1>;\n}\ninterface ZodNaNDef extends ZodTypeDef {\n typeName: ZodFirstPartyTypeKind.ZodNaN;\n}\ndeclare class ZodNaN extends ZodType<number, ZodNaNDef, number> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create: (params?: RawCreateParams) => ZodNaN;\n}\ninterface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {\n type: T;\n typeName: ZodFirstPartyTypeKind.ZodBranded;\n}\ndeclare const BRAND: unique symbol;\ndeclare type BRAND<T extends string | number | symbol> = {\n [BRAND]: {\n [k in T]: true;\n };\n};\ndeclare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<\n T['_output'] & BRAND<B>,\n ZodBrandedDef<T>,\n T['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n unwrap(): T;\n}\ninterface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {\n in: A;\n out: B;\n typeName: ZodFirstPartyTypeKind.ZodPipeline;\n}\ndeclare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<\n B['_output'],\n ZodPipelineDef<A, B>,\n A['_input']\n> {\n _parse(input: ParseInput): ParseReturnType<any>;\n static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;\n}\ndeclare type BuiltIn =\n | (((...args: any[]) => any) | (new (...args: any[]) => any))\n | {\n readonly [Symbol.toStringTag]: string;\n }\n | Date\n | Error\n | Generator\n | Promise<unknown>\n | RegExp;\ndeclare type MakeReadonly<T> =\n T extends Map<infer K, infer V>\n ? ReadonlyMap<K, V>\n : T extends Set<infer V>\n ? ReadonlySet<V>\n : T extends [infer Head, ...infer Tail]\n ? readonly [Head, ...Tail]\n : T extends Array<infer V>\n ? ReadonlyArray<V>\n : T extends BuiltIn\n ? T\n : Readonly<T>;\ninterface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {\n innerType: T;\n typeName: ZodFirstPartyTypeKind.ZodReadonly;\n}\ndeclare class ZodReadonly<T extends ZodTypeAny> extends ZodType<\n MakeReadonly<T['_output']>,\n ZodReadonlyDef<T>,\n MakeReadonly<T['_input']>\n> {\n _parse(input: ParseInput): ParseReturnType<this['_output']>;\n static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;\n unwrap(): T;\n}\ndeclare type CustomParams = CustomErrorParams & {\n fatal?: boolean;\n};\ndeclare function custom<T>(\n check?: (data: any) => any,\n params?: string | CustomParams | ((input: any) => CustomParams),\n /**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\n fatal?: boolean,\n): ZodType<T, ZodTypeDef, T>;\n\ndeclare const late: {\n object: <T extends ZodRawShape>(\n shape: () => T,\n params?: RawCreateParams,\n ) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n >;\n};\ndeclare enum ZodFirstPartyTypeKind {\n ZodString = 'ZodString',\n ZodNumber = 'ZodNumber',\n ZodNaN = 'ZodNaN',\n ZodBigInt = 'ZodBigInt',\n ZodBoolean = 'ZodBoolean',\n ZodDate = 'ZodDate',\n ZodSymbol = 'ZodSymbol',\n ZodUndefined = 'ZodUndefined',\n ZodNull = 'ZodNull',\n ZodAny = 'ZodAny',\n ZodUnknown = 'ZodUnknown',\n ZodNever = 'ZodNever',\n ZodVoid = 'ZodVoid',\n ZodArray = 'ZodArray',\n ZodObject = 'ZodObject',\n ZodUnion = 'ZodUnion',\n ZodDiscriminatedUnion = 'ZodDiscriminatedUnion',\n ZodIntersection = 'ZodIntersection',\n ZodTuple = 'ZodTuple',\n ZodRecord = 'ZodRecord',\n ZodMap = 'ZodMap',\n ZodSet = 'ZodSet',\n ZodFunction = 'ZodFunction',\n ZodLazy = 'ZodLazy',\n ZodLiteral = 'ZodLiteral',\n ZodEnum = 'ZodEnum',\n ZodEffects = 'ZodEffects',\n ZodNativeEnum = 'ZodNativeEnum',\n ZodOptional = 'ZodOptional',\n ZodNullable = 'ZodNullable',\n ZodDefault = 'ZodDefault',\n ZodCatch = 'ZodCatch',\n ZodPromise = 'ZodPromise',\n ZodBranded = 'ZodBranded',\n ZodPipeline = 'ZodPipeline',\n ZodReadonly = 'ZodReadonly',\n}\ndeclare type ZodFirstPartySchemaTypes =\n | ZodString\n | ZodNumber\n | ZodNaN\n | ZodBigInt\n | ZodBoolean\n | ZodDate\n | ZodUndefined\n | ZodNull\n | ZodAny\n | ZodUnknown\n | ZodNever\n | ZodVoid\n | ZodArray<any, any>\n | ZodObject<any, any, any>\n | ZodUnion<any>\n | ZodDiscriminatedUnion<any, any>\n | ZodIntersection<any, any>\n | ZodTuple<any, any>\n | ZodRecord<any, any>\n | ZodMap<any>\n | ZodSet<any>\n | ZodFunction<any, any>\n | ZodLazy<any>\n | ZodLiteral<any>\n | ZodEnum<any>\n | ZodEffects<any, any, any>\n | ZodNativeEnum<any>\n | ZodOptional<any>\n | ZodNullable<any>\n | ZodDefault<any>\n | ZodCatch<any>\n | ZodPromise<any>\n | ZodBranded<any, any>\n | ZodPipeline<any, any>\n | ZodReadonly<any>\n | ZodSymbol;\ndeclare abstract class Class {\n constructor(..._: any[]);\n}\ndeclare const instanceOfType: <T extends typeof Class>(\n cls: T,\n params?: CustomParams,\n) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;\ndeclare const stringType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n) => ZodString;\ndeclare const numberType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodNumber;\ndeclare const nanType: (params?: RawCreateParams) => ZodNaN;\ndeclare const bigIntType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBigInt;\ndeclare const booleanType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodBoolean;\ndeclare const dateType: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n) => ZodDate;\ndeclare const symbolType: (params?: RawCreateParams) => ZodSymbol;\ndeclare const undefinedType: (params?: RawCreateParams) => ZodUndefined;\ndeclare const nullType: (params?: RawCreateParams) => ZodNull;\ndeclare const anyType: (params?: RawCreateParams) => ZodAny;\ndeclare const unknownType: (params?: RawCreateParams) => ZodUnknown;\ndeclare const neverType: (params?: RawCreateParams) => ZodNever;\ndeclare const voidType: (params?: RawCreateParams) => ZodVoid;\ndeclare const arrayType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodArray<T, 'many'>;\ndeclare const objectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strip',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const strictObjectType: <T extends ZodRawShape>(\n shape: T,\n params?: RawCreateParams,\n) => ZodObject<\n T,\n 'strict',\n ZodTypeAny,\n {\n [k in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T>, any>]: objectUtil.addQuestionMarks<\n baseObjectOutputType<T>,\n any\n >[k];\n },\n { [k_1 in keyof baseObjectInputType<T>]: baseObjectInputType<T>[k_1] }\n>;\ndeclare const unionType: <T extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(\n types: T,\n params?: RawCreateParams,\n) => ZodUnion<T>;\ndeclare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;\ndeclare const intersectionType: <T extends ZodTypeAny, U extends ZodTypeAny>(\n left: T,\n right: U,\n params?: RawCreateParams,\n) => ZodIntersection<T, U>;\ndeclare const tupleType: <T extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(\n schemas: T,\n params?: RawCreateParams,\n) => ZodTuple<T, null>;\ndeclare const recordType: typeof ZodRecord.create;\ndeclare const mapType: <Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny>(\n keyType: Key,\n valueType: Value,\n params?: RawCreateParams,\n) => ZodMap<Key, Value>;\ndeclare const setType: <Value extends ZodTypeAny = ZodTypeAny>(\n valueType: Value,\n params?: RawCreateParams,\n) => ZodSet<Value>;\ndeclare const functionType: typeof ZodFunction.create;\ndeclare const lazyType: <T extends ZodTypeAny>(getter: () => T, params?: RawCreateParams) => ZodLazy<T>;\ndeclare const literalType: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>;\ndeclare const enumType: typeof createZodEnum;\ndeclare const nativeEnumType: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>;\ndeclare const promiseType: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>;\ndeclare const effectsType: <I extends ZodTypeAny>(\n schema: I,\n effect: Effect<I['_output']>,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], input<I>>;\ndeclare const optionalType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodOptional<T>;\ndeclare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>;\ndeclare const preprocessType: <I extends ZodTypeAny>(\n preprocess: (arg: unknown, ctx: RefinementCtx) => unknown,\n schema: I,\n params?: RawCreateParams,\n) => ZodEffects<I, I['_output'], unknown>;\ndeclare const pipelineType: typeof ZodPipeline.create;\ndeclare const ostring: () => ZodOptional<ZodString>;\ndeclare const onumber: () => ZodOptional<ZodNumber>;\ndeclare const oboolean: () => ZodOptional<ZodBoolean>;\ndeclare const coerce: {\n string: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: true | undefined;\n })\n | undefined,\n ) => ZodString;\n number: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodNumber;\n boolean: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBoolean;\n bigint: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodBigInt;\n date: (\n params?:\n | ({\n errorMap?: ZodErrorMap | undefined;\n invalid_type_error?: string | undefined;\n required_error?: string | undefined;\n message?: string | undefined;\n description?: string | undefined;\n } & {\n coerce?: boolean | undefined;\n })\n | undefined,\n ) => ZodDate;\n};\n\ndeclare const NEVER: never;\n\n//# sourceMappingURL=external.d.ts.map\n\ndeclare const z_setErrorMap: typeof setErrorMap;\ndeclare const z_getErrorMap: typeof getErrorMap;\ndeclare const z_makeIssue: typeof makeIssue;\ntype z_ParseParams = ParseParams;\ntype z_ParsePathComponent = ParsePathComponent;\ntype z_ParsePath = ParsePath;\ndeclare const z_EMPTY_PATH: typeof EMPTY_PATH;\ntype z_ParseContext = ParseContext;\ntype z_ParseInput = ParseInput;\ndeclare const z_addIssueToContext: typeof addIssueToContext;\ntype z_ObjectPair = ObjectPair;\ntype z_ParseStatus = ParseStatus;\ndeclare const z_ParseStatus: typeof ParseStatus;\ntype z_ParseResult = ParseResult;\ndeclare const z_INVALID: typeof INVALID;\ndeclare const z_DIRTY: typeof DIRTY;\ndeclare const z_OK: typeof OK;\ntype z_SyncParseReturnType<T = any> = SyncParseReturnType<T>;\ntype z_AsyncParseReturnType<T> = AsyncParseReturnType<T>;\ntype z_ParseReturnType<T> = ParseReturnType<T>;\ndeclare const z_isAborted: typeof isAborted;\ndeclare const z_isDirty: typeof isDirty;\ndeclare const z_isValid: typeof isValid;\ndeclare const z_isAsync: typeof isAsync;\ntype z_Primitive = Primitive;\ntype z_Scalars = Scalars;\ndeclare const z_util: typeof util;\ndeclare const z_objectUtil: typeof objectUtil;\ntype z_ZodParsedType = ZodParsedType;\ndeclare const z_getParsedType: typeof getParsedType;\ndeclare const z_oboolean: typeof oboolean;\ndeclare const z_onumber: typeof onumber;\ndeclare const z_ostring: typeof ostring;\ntype z_RefinementCtx = RefinementCtx;\ntype z_ZodRawShape = ZodRawShape;\ntype z_ZodTypeAny = ZodTypeAny;\ntype z_TypeOf<T extends ZodType<any, any, any>> = TypeOf<T>;\ntype z_input<T extends ZodType<any, any, any>> = input<T>;\ntype z_output<T extends ZodType<any, any, any>> = output<T>;\ntype z_CustomErrorParams = CustomErrorParams;\ntype z_ZodTypeDef = ZodTypeDef;\ntype z_RawCreateParams = RawCreateParams;\ntype z_ProcessedCreateParams = ProcessedCreateParams;\ntype z_SafeParseSuccess<Output> = SafeParseSuccess<Output>;\ntype z_SafeParseError<Input> = SafeParseError<Input>;\ntype z_SafeParseReturnType<Input, Output> = SafeParseReturnType<Input, Output>;\ntype z_ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> = ZodType<Output, Def, Input>;\ndeclare const z_ZodType: typeof ZodType;\ntype z_IpVersion = IpVersion;\ntype z_ZodStringCheck = ZodStringCheck;\ntype z_ZodStringDef = ZodStringDef;\ndeclare const z_datetimeRegex: typeof datetimeRegex;\ntype z_ZodString = ZodString;\ndeclare const z_ZodString: typeof ZodString;\ntype z_ZodNumberCheck = ZodNumberCheck;\ntype z_ZodNumberDef = ZodNumberDef;\ntype z_ZodNumber = ZodNumber;\ndeclare const z_ZodNumber: typeof ZodNumber;\ntype z_ZodBigIntCheck = ZodBigIntCheck;\ntype z_ZodBigIntDef = ZodBigIntDef;\ntype z_ZodBigInt = ZodBigInt;\ndeclare const z_ZodBigInt: typeof ZodBigInt;\ntype z_ZodBooleanDef = ZodBooleanDef;\ntype z_ZodBoolean = ZodBoolean;\ndeclare const z_ZodBoolean: typeof ZodBoolean;\ntype z_ZodDateCheck = ZodDateCheck;\ntype z_ZodDateDef = ZodDateDef;\ntype z_ZodDate = ZodDate;\ndeclare const z_ZodDate: typeof ZodDate;\ntype z_ZodSymbolDef = ZodSymbolDef;\ntype z_ZodSymbol = ZodSymbol;\ndeclare const z_ZodSymbol: typeof ZodSymbol;\ntype z_ZodUndefinedDef = ZodUndefinedDef;\ntype z_ZodUndefined = ZodUndefined;\ndeclare const z_ZodUndefined: typeof ZodUndefined;\ntype z_ZodNullDef = ZodNullDef;\ntype z_ZodNull = ZodNull;\ndeclare const z_ZodNull: typeof ZodNull;\ntype z_ZodAnyDef = ZodAnyDef;\ntype z_ZodAny = ZodAny;\ndeclare const z_ZodAny: typeof ZodAny;\ntype z_ZodUnknownDef = ZodUnknownDef;\ntype z_ZodUnknown = ZodUnknown;\ndeclare const z_ZodUnknown: typeof ZodUnknown;\ntype z_ZodNeverDef = ZodNeverDef;\ntype z_ZodNever = ZodNever;\ndeclare const z_ZodNever: typeof ZodNever;\ntype z_ZodVoidDef = ZodVoidDef;\ntype z_ZodVoid = ZodVoid;\ndeclare const z_ZodVoid: typeof ZodVoid;\ntype z_ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> = ZodArrayDef<T>;\ntype z_ArrayCardinality = ArrayCardinality;\ntype z_arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = arrayOutputType<\n T,\n Cardinality\n>;\ntype z_ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = 'many'> = ZodArray<T, Cardinality>;\ndeclare const z_ZodArray: typeof ZodArray;\ntype z_ZodNonEmptyArray<T extends ZodTypeAny> = ZodNonEmptyArray<T>;\ntype z_UnknownKeysParam = UnknownKeysParam;\ntype z_ZodObjectDef<\n T extends ZodRawShape = ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n> = ZodObjectDef<T, UnknownKeys, Catchall>;\ntype z_mergeTypes<A, B> = mergeTypes<A, B>;\ntype z_objectOutputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectOutputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectOutputType<Shape extends ZodRawShape> = baseObjectOutputType<Shape>;\ntype z_objectInputType<\n Shape extends ZodRawShape,\n Catchall extends ZodTypeAny,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n> = objectInputType<Shape, Catchall, UnknownKeys>;\ntype z_baseObjectInputType<Shape extends ZodRawShape> = baseObjectInputType<Shape>;\ntype z_CatchallOutput<T extends ZodType> = CatchallOutput<T>;\ntype z_CatchallInput<T extends ZodType> = CatchallInput<T>;\ntype z_PassthroughType<T extends UnknownKeysParam> = PassthroughType<T>;\ntype z_deoptional<T extends ZodTypeAny> = deoptional<T>;\ntype z_SomeZodObject = SomeZodObject;\ntype z_noUnrecognized<Obj extends object, Shape extends object> = noUnrecognized<Obj, Shape>;\ntype z_ZodObject<\n T extends ZodRawShape,\n UnknownKeys extends UnknownKeysParam = UnknownKeysParam,\n Catchall extends ZodTypeAny = ZodTypeAny,\n Output = objectOutputType<T, Catchall, UnknownKeys>,\n Input = objectInputType<T, Catchall, UnknownKeys>,\n> = ZodObject<T, UnknownKeys, Catchall, Output, Input>;\ndeclare const z_ZodObject: typeof ZodObject;\ntype z_AnyZodObject = AnyZodObject;\ntype z_ZodUnionOptions = ZodUnionOptions;\ntype z_ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> = ZodUnionDef<T>;\ntype z_ZodUnion<T extends ZodUnionOptions> = ZodUnion<T>;\ndeclare const z_ZodUnion: typeof ZodUnion;\ntype z_ZodDiscriminatedUnionOption<Discriminator extends string> = ZodDiscriminatedUnionOption<Discriminator>;\ntype z_ZodDiscriminatedUnionDef<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[],\n> = ZodDiscriminatedUnionDef<Discriminator, Options>;\ntype z_ZodDiscriminatedUnion<\n Discriminator extends string,\n Options extends ZodDiscriminatedUnionOption<Discriminator>[],\n> = ZodDiscriminatedUnion<Discriminator, Options>;\ndeclare const z_ZodDiscriminatedUnion: typeof ZodDiscriminatedUnion;\ntype z_ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> = ZodIntersectionDef<\n T,\n U\n>;\ntype z_ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> = ZodIntersection<T, U>;\ndeclare const z_ZodIntersection: typeof ZodIntersection;\ntype z_ZodTupleItems = ZodTupleItems;\ntype z_AssertArray<T> = AssertArray<T>;\ntype z_OutputTypeOfTuple<T extends ZodTupleItems | []> = OutputTypeOfTuple<T>;\ntype z_OutputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = OutputTypeOfTupleWithRest<T, Rest>;\ntype z_InputTypeOfTuple<T extends ZodTupleItems | []> = InputTypeOfTuple<T>;\ntype z_InputTypeOfTupleWithRest<\n T extends ZodTupleItems | [],\n Rest extends ZodTypeAny | null = null,\n> = InputTypeOfTupleWithRest<T, Rest>;\ntype z_ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> = ZodTupleDef<\n T,\n Rest\n>;\ntype z_AnyZodTuple = AnyZodTuple;\ntype z_ZodTuple<\n T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]],\n Rest extends ZodTypeAny | null = null,\n> = ZodTuple<T, Rest>;\ndeclare const z_ZodTuple: typeof ZodTuple;\ntype z_ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecordDef<\n Key,\n Value\n>;\ntype z_KeySchema = KeySchema;\ntype z_RecordType<K extends string | number | symbol, V> = RecordType<K, V>;\ntype z_ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> = ZodRecord<Key, Value>;\ndeclare const z_ZodRecord: typeof ZodRecord;\ntype z_ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMapDef<Key, Value>;\ntype z_ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> = ZodMap<Key, Value>;\ndeclare const z_ZodMap: typeof ZodMap;\ntype z_ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> = ZodSetDef<Value>;\ntype z_ZodSet<Value extends ZodTypeAny = ZodTypeAny> = ZodSet<Value>;\ndeclare const z_ZodSet: typeof ZodSet;\ntype z_ZodFunctionDef<\n Args extends ZodTuple<any, any> = ZodTuple<any, any>,\n Returns extends ZodTypeAny = ZodTypeAny,\n> = ZodFunctionDef<Args, Returns>;\ntype z_OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = OuterTypeOfFunction<\n Args,\n Returns\n>;\ntype z_InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = InnerTypeOfFunction<\n Args,\n Returns\n>;\ntype z_ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = ZodFunction<Args, Returns>;\ndeclare const z_ZodFunction: typeof ZodFunction;\ntype z_ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> = ZodLazyDef<T>;\ntype z_ZodLazy<T extends ZodTypeAny> = ZodLazy<T>;\ndeclare const z_ZodLazy: typeof ZodLazy;\ntype z_ZodLiteralDef<T = any> = ZodLiteralDef<T>;\ntype z_ZodLiteral<T> = ZodLiteral<T>;\ndeclare const z_ZodLiteral: typeof ZodLiteral;\ntype z_ArrayKeys = ArrayKeys;\ntype z_Indices<T> = Indices<T>;\ntype z_EnumValues<T extends string = string> = EnumValues<T>;\ntype z_Values<T extends EnumValues> = Values<T>;\ntype z_ZodEnumDef<T extends EnumValues = EnumValues> = ZodEnumDef<T>;\ntype z_Writeable<T> = Writeable<T>;\ntype z_FilterEnum<Values, ToExclude> = FilterEnum<Values, ToExclude>;\ntype z_typecast<A, T> = typecast<A, T>;\ntype z_ZodEnum<T extends [string, ...string[]]> = ZodEnum<T>;\ndeclare const z_ZodEnum: typeof ZodEnum;\ntype z_ZodNativeEnumDef<T extends EnumLike = EnumLike> = ZodNativeEnumDef<T>;\ntype z_EnumLike = EnumLike;\ntype z_ZodNativeEnum<T extends EnumLike> = ZodNativeEnum<T>;\ndeclare const z_ZodNativeEnum: typeof ZodNativeEnum;\ntype z_ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> = ZodPromiseDef<T>;\ntype z_ZodPromise<T extends ZodTypeAny> = ZodPromise<T>;\ndeclare const z_ZodPromise: typeof ZodPromise;\ntype z_Refinement<T> = Refinement<T>;\ntype z_SuperRefinement<T> = SuperRefinement<T>;\ntype z_RefinementEffect<T> = RefinementEffect<T>;\ntype z_TransformEffect<T> = TransformEffect<T>;\ntype z_PreprocessEffect<T> = PreprocessEffect<T>;\ntype z_Effect<T> = Effect<T>;\ntype z_ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> = ZodEffectsDef<T>;\ntype z_ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> = ZodEffects<T, Output, Input>;\ndeclare const z_ZodEffects: typeof ZodEffects;\ntype z_ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> = ZodOptionalDef<T>;\ntype z_ZodOptionalType<T extends ZodTypeAny> = ZodOptionalType<T>;\ntype z_ZodOptional<T extends ZodTypeAny> = ZodOptional<T>;\ndeclare const z_ZodOptional: typeof ZodOptional;\ntype z_ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> = ZodNullableDef<T>;\ntype z_ZodNullableType<T extends ZodTypeAny> = ZodNullableType<T>;\ntype z_ZodNullable<T extends ZodTypeAny> = ZodNullable<T>;\ndeclare const z_ZodNullable: typeof ZodNullable;\ntype z_ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> = ZodDefaultDef<T>;\ntype z_ZodDefault<T extends ZodTypeAny> = ZodDefault<T>;\ndeclare const z_ZodDefault: typeof ZodDefault;\ntype z_ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> = ZodCatchDef<T>;\ntype z_ZodCatch<T extends ZodTypeAny> = ZodCatch<T>;\ndeclare const z_ZodCatch: typeof ZodCatch;\ntype z_ZodNaNDef = ZodNaNDef;\ntype z_ZodNaN = ZodNaN;\ndeclare const z_ZodNaN: typeof ZodNaN;\ntype z_ZodBrandedDef<T extends ZodTypeAny> = ZodBrandedDef<T>;\ntype z_BRAND<T extends string | number | symbol> = BRAND<T>;\ntype z_ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> = ZodBranded<T, B>;\ndeclare const z_ZodBranded: typeof ZodBranded;\ntype z_ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipelineDef<A, B>;\ntype z_ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> = ZodPipeline<A, B>;\ndeclare const z_ZodPipeline: typeof ZodPipeline;\ntype z_ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> = ZodReadonlyDef<T>;\ntype z_ZodReadonly<T extends ZodTypeAny> = ZodReadonly<T>;\ndeclare const z_ZodReadonly: typeof ZodReadonly;\ndeclare const z_custom: typeof custom;\ndeclare const z_late: typeof late;\ntype z_ZodFirstPartyTypeKind = ZodFirstPartyTypeKind;\ndeclare const z_ZodFirstPartyTypeKind: typeof ZodFirstPartyTypeKind;\ntype z_ZodFirstPartySchemaTypes = ZodFirstPartySchemaTypes;\ndeclare const z_coerce: typeof coerce;\ndeclare const z_NEVER: typeof NEVER;\ntype z_inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = inferFlattenedErrors<T, U>;\ntype z_typeToFlattenedError<T, U = string> = typeToFlattenedError<T, U>;\ntype z_ZodIssueCode = ZodIssueCode;\ntype z_ZodIssueBase = ZodIssueBase;\ntype z_ZodInvalidTypeIssue = ZodInvalidTypeIssue;\ntype z_ZodInvalidLiteralIssue = ZodInvalidLiteralIssue;\ntype z_ZodUnrecognizedKeysIssue = ZodUnrecognizedKeysIssue;\ntype z_ZodInvalidUnionIssue = ZodInvalidUnionIssue;\ntype z_ZodInvalidUnionDiscriminatorIssue = ZodInvalidUnionDiscriminatorIssue;\ntype z_ZodInvalidEnumValueIssue = ZodInvalidEnumValueIssue;\ntype z_ZodInvalidArgumentsIssue = ZodInvalidArgumentsIssue;\ntype z_ZodInvalidReturnTypeIssue = ZodInvalidReturnTypeIssue;\ntype z_ZodInvalidDateIssue = ZodInvalidDateIssue;\ntype z_StringValidation = StringValidation;\ntype z_ZodInvalidStringIssue = ZodInvalidStringIssue;\ntype z_ZodTooSmallIssue = ZodTooSmallIssue;\ntype z_ZodTooBigIssue = ZodTooBigIssue;\ntype z_ZodInvalidIntersectionTypesIssue = ZodInvalidIntersectionTypesIssue;\ntype z_ZodNotMultipleOfIssue = ZodNotMultipleOfIssue;\ntype z_ZodNotFiniteIssue = ZodNotFiniteIssue;\ntype z_ZodCustomIssue = ZodCustomIssue;\ntype z_DenormalizedError = DenormalizedError;\ntype z_ZodIssueOptionalMessage = ZodIssueOptionalMessage;\ntype z_ZodIssue = ZodIssue;\ndeclare const z_quotelessJson: typeof quotelessJson;\ntype z_ZodFormattedError<T, U = string> = ZodFormattedError<T, U>;\ntype z_inferFormattedError<T extends ZodType<any, any, any>, U = string> = inferFormattedError<T, U>;\ntype z_ZodError<T = any> = ZodError<T>;\ndeclare const z_ZodError: typeof ZodError;\ntype z_IssueData = IssueData;\ntype z_ErrorMapCtx = ErrorMapCtx;\ntype z_ZodErrorMap = ZodErrorMap;\ndeclare namespace z {\n export {\n errorMap as defaultErrorMap,\n z_setErrorMap as setErrorMap,\n z_getErrorMap as getErrorMap,\n z_makeIssue as makeIssue,\n type z_ParseParams as ParseParams,\n type z_ParsePathComponent as ParsePathComponent,\n type z_ParsePath as ParsePath,\n z_EMPTY_PATH as EMPTY_PATH,\n type z_ParseContext as ParseContext,\n type z_ParseInput as ParseInput,\n z_addIssueToContext as addIssueToContext,\n type z_ObjectPair as ObjectPair,\n z_ParseStatus as ParseStatus,\n type z_ParseResult as ParseResult,\n z_INVALID as INVALID,\n z_DIRTY as DIRTY,\n z_OK as OK,\n type z_SyncParseReturnType as SyncParseReturnType,\n type z_AsyncParseReturnType as AsyncParseReturnType,\n type z_ParseReturnType as ParseReturnType,\n z_isAborted as isAborted,\n z_isDirty as isDirty,\n z_isValid as isValid,\n z_isAsync as isAsync,\n type z_Primitive as Primitive,\n type z_Scalars as Scalars,\n z_util as util,\n z_objectUtil as objectUtil,\n type z_ZodParsedType as ZodParsedType,\n z_getParsedType as getParsedType,\n type TypeOf as infer,\n ZodEffects as ZodTransformer,\n ZodType as Schema,\n ZodType as ZodSchema,\n anyType as any,\n arrayType as array,\n bigIntType as bigint,\n booleanType as boolean,\n dateType as date,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n instanceOfType as instanceof,\n intersectionType as intersection,\n lazyType as lazy,\n literalType as literal,\n mapType as map,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n z_oboolean as oboolean,\n z_onumber as onumber,\n optionalType as optional,\n z_ostring as ostring,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n recordType as record,\n setType as set,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n voidType as void,\n type z_RefinementCtx as RefinementCtx,\n type z_ZodRawShape as ZodRawShape,\n type z_ZodTypeAny as ZodTypeAny,\n type z_TypeOf as TypeOf,\n type z_input as input,\n type z_output as output,\n type z_CustomErrorParams as CustomErrorParams,\n type z_ZodTypeDef as ZodTypeDef,\n type z_RawCreateParams as RawCreateParams,\n type z_ProcessedCreateParams as ProcessedCreateParams,\n type z_SafeParseSuccess as SafeParseSuccess,\n type z_SafeParseError as SafeParseError,\n type z_SafeParseReturnType as SafeParseReturnType,\n z_ZodType as ZodType,\n type z_IpVersion as IpVersion,\n type z_ZodStringCheck as ZodStringCheck,\n type z_ZodStringDef as ZodStringDef,\n z_datetimeRegex as datetimeRegex,\n z_ZodString as ZodString,\n type z_ZodNumberCheck as ZodNumberCheck,\n type z_ZodNumberDef as ZodNumberDef,\n z_ZodNumber as ZodNumber,\n type z_ZodBigIntCheck as ZodBigIntCheck,\n type z_ZodBigIntDef as ZodBigIntDef,\n z_ZodBigInt as ZodBigInt,\n type z_ZodBooleanDef as ZodBooleanDef,\n z_ZodBoolean as ZodBoolean,\n type z_ZodDateCheck as ZodDateCheck,\n type z_ZodDateDef as ZodDateDef,\n z_ZodDate as ZodDate,\n type z_ZodSymbolDef as ZodSymbolDef,\n z_ZodSymbol as ZodSymbol,\n type z_ZodUndefinedDef as ZodUndefinedDef,\n z_ZodUndefined as ZodUndefined,\n type z_ZodNullDef as ZodNullDef,\n z_ZodNull as ZodNull,\n type z_ZodAnyDef as ZodAnyDef,\n z_ZodAny as ZodAny,\n type z_ZodUnknownDef as ZodUnknownDef,\n z_ZodUnknown as ZodUnknown,\n type z_ZodNeverDef as ZodNeverDef,\n z_ZodNever as ZodNever,\n type z_ZodVoidDef as ZodVoidDef,\n z_ZodVoid as ZodVoid,\n type z_ZodArrayDef as ZodArrayDef,\n type z_ArrayCardinality as ArrayCardinality,\n type z_arrayOutputType as arrayOutputType,\n z_ZodArray as ZodArray,\n type z_ZodNonEmptyArray as ZodNonEmptyArray,\n type z_UnknownKeysParam as UnknownKeysParam,\n type z_ZodObjectDef as ZodObjectDef,\n type z_mergeTypes as mergeTypes,\n type z_objectOutputType as objectOutputType,\n type z_baseObjectOutputType as baseObjectOutputType,\n type z_objectInputType as objectInputType,\n type z_baseObjectInputType as baseObjectInputType,\n type z_CatchallOutput as CatchallOutput,\n type z_CatchallInput as CatchallInput,\n type z_PassthroughType as PassthroughType,\n type z_deoptional as deoptional,\n type z_SomeZodObject as SomeZodObject,\n type z_noUnrecognized as noUnrecognized,\n z_ZodObject as ZodObject,\n type z_AnyZodObject as AnyZodObject,\n type z_ZodUnionOptions as ZodUnionOptions,\n type z_ZodUnionDef as ZodUnionDef,\n z_ZodUnion as ZodUnion,\n type z_ZodDiscriminatedUnionOption as ZodDiscriminatedUnionOption,\n type z_ZodDiscriminatedUnionDef as ZodDiscriminatedUnionDef,\n z_ZodDiscriminatedUnion as ZodDiscriminatedUnion,\n type z_ZodIntersectionDef as ZodIntersectionDef,\n z_ZodIntersection as ZodIntersection,\n type z_ZodTupleItems as ZodTupleItems,\n type z_AssertArray as AssertArray,\n type z_OutputTypeOfTuple as OutputTypeOfTuple,\n type z_OutputTypeOfTupleWithRest as OutputTypeOfTupleWithRest,\n type z_InputTypeOfTuple as InputTypeOfTuple,\n type z_InputTypeOfTupleWithRest as InputTypeOfTupleWithRest,\n type z_ZodTupleDef as ZodTupleDef,\n type z_AnyZodTuple as AnyZodTuple,\n z_ZodTuple as ZodTuple,\n type z_ZodRecordDef as ZodRecordDef,\n type z_KeySchema as KeySchema,\n type z_RecordType as RecordType,\n z_ZodRecord as ZodRecord,\n type z_ZodMapDef as ZodMapDef,\n z_ZodMap as ZodMap,\n type z_ZodSetDef as ZodSetDef,\n z_ZodSet as ZodSet,\n type z_ZodFunctionDef as ZodFunctionDef,\n type z_OuterTypeOfFunction as OuterTypeOfFunction,\n type z_InnerTypeOfFunction as InnerTypeOfFunction,\n z_ZodFunction as ZodFunction,\n type z_ZodLazyDef as ZodLazyDef,\n z_ZodLazy as ZodLazy,\n type z_ZodLiteralDef as ZodLiteralDef,\n z_ZodLiteral as ZodLiteral,\n type z_ArrayKeys as ArrayKeys,\n type z_Indices as Indices,\n type z_EnumValues as EnumValues,\n type z_Values as Values,\n type z_ZodEnumDef as ZodEnumDef,\n type z_Writeable as Writeable,\n type z_FilterEnum as FilterEnum,\n type z_typecast as typecast,\n z_ZodEnum as ZodEnum,\n type z_ZodNativeEnumDef as ZodNativeEnumDef,\n type z_EnumLike as EnumLike,\n z_ZodNativeEnum as ZodNativeEnum,\n type z_ZodPromiseDef as ZodPromiseDef,\n z_ZodPromise as ZodPromise,\n type z_Refinement as Refinement,\n type z_SuperRefinement as SuperRefinement,\n type z_RefinementEffect as RefinementEffect,\n type z_TransformEffect as TransformEffect,\n type z_PreprocessEffect as PreprocessEffect,\n type z_Effect as Effect,\n type z_ZodEffectsDef as ZodEffectsDef,\n z_ZodEffects as ZodEffects,\n type z_ZodOptionalDef as ZodOptionalDef,\n type z_ZodOptionalType as ZodOptionalType,\n z_ZodOptional as ZodOptional,\n type z_ZodNullableDef as ZodNullableDef,\n type z_ZodNullableType as ZodNullableType,\n z_ZodNullable as ZodNullable,\n type z_ZodDefaultDef as ZodDefaultDef,\n z_ZodDefault as ZodDefault,\n type z_ZodCatchDef as ZodCatchDef,\n z_ZodCatch as ZodCatch,\n type z_ZodNaNDef as ZodNaNDef,\n z_ZodNaN as ZodNaN,\n type z_ZodBrandedDef as ZodBrandedDef,\n type z_BRAND as BRAND,\n z_ZodBranded as ZodBranded,\n type z_ZodPipelineDef as ZodPipelineDef,\n z_ZodPipeline as ZodPipeline,\n type z_ZodReadonlyDef as ZodReadonlyDef,\n z_ZodReadonly as ZodReadonly,\n z_custom as custom,\n z_late as late,\n z_ZodFirstPartyTypeKind as ZodFirstPartyTypeKind,\n type z_ZodFirstPartySchemaTypes as ZodFirstPartySchemaTypes,\n z_coerce as coerce,\n z_NEVER as NEVER,\n type z_inferFlattenedErrors as inferFlattenedErrors,\n type z_typeToFlattenedError as typeToFlattenedError,\n type z_ZodIssueCode as ZodIssueCode,\n type z_ZodIssueBase as ZodIssueBase,\n type z_ZodInvalidTypeIssue as ZodInvalidTypeIssue,\n type z_ZodInvalidLiteralIssue as ZodInvalidLiteralIssue,\n type z_ZodUnrecognizedKeysIssue as ZodUnrecognizedKeysIssue,\n type z_ZodInvalidUnionIssue as ZodInvalidUnionIssue,\n type z_ZodInvalidUnionDiscriminatorIssue as ZodInvalidUnionDiscriminatorIssue,\n type z_ZodInvalidEnumValueIssue as ZodInvalidEnumValueIssue,\n type z_ZodInvalidArgumentsIssue as ZodInvalidArgumentsIssue,\n type z_ZodInvalidReturnTypeIssue as ZodInvalidReturnTypeIssue,\n type z_ZodInvalidDateIssue as ZodInvalidDateIssue,\n type z_StringValidation as StringValidation,\n type z_ZodInvalidStringIssue as ZodInvalidStringIssue,\n type z_ZodTooSmallIssue as ZodTooSmallIssue,\n type z_ZodTooBigIssue as ZodTooBigIssue,\n type z_ZodInvalidIntersectionTypesIssue as ZodInvalidIntersectionTypesIssue,\n type z_ZodNotMultipleOfIssue as ZodNotMultipleOfIssue,\n type z_ZodNotFiniteIssue as ZodNotFiniteIssue,\n type z_ZodCustomIssue as ZodCustomIssue,\n type z_DenormalizedError as DenormalizedError,\n type z_ZodIssueOptionalMessage as ZodIssueOptionalMessage,\n type z_ZodIssue as ZodIssue,\n z_quotelessJson as quotelessJson,\n type z_ZodFormattedError as ZodFormattedError,\n type z_inferFormattedError as inferFormattedError,\n z_ZodError as ZodError,\n type z_IssueData as IssueData,\n type z_ErrorMapCtx as ErrorMapCtx,\n type z_ZodErrorMap as ZodErrorMap,\n };\n}\n\n//# sourceMappingURL=index.d.ts.map\n\nexport {\n type AnyZodObject,\n type AnyZodTuple,\n type ArrayCardinality,\n type ArrayKeys,\n type AssertArray,\n type AsyncParseReturnType,\n BRAND,\n type CatchallInput,\n type CatchallOutput,\n type CustomErrorParams,\n DIRTY,\n type DenormalizedError,\n EMPTY_PATH,\n type Effect,\n type EnumLike,\n type EnumValues,\n type ErrorMapCtx,\n type FilterEnum,\n INVALID,\n type Indices,\n type InnerTypeOfFunction,\n type InputTypeOfTuple,\n type InputTypeOfTupleWithRest,\n type IpVersion,\n type IssueData,\n type KeySchema,\n NEVER,\n OK,\n type ObjectPair,\n type OuterTypeOfFunction,\n type OutputTypeOfTuple,\n type OutputTypeOfTupleWithRest,\n type ParseContext,\n type ParseInput,\n type ParseParams,\n type ParsePath,\n type ParsePathComponent,\n type ParseResult,\n type ParseReturnType,\n ParseStatus,\n type PassthroughType,\n type PreprocessEffect,\n type Primitive,\n type ProcessedCreateParams,\n type RawCreateParams,\n type RecordType,\n type Refinement,\n type RefinementCtx,\n type RefinementEffect,\n type SafeParseError,\n type SafeParseReturnType,\n type SafeParseSuccess,\n type Scalars,\n ZodType as Schema,\n type SomeZodObject,\n type StringValidation,\n type SuperRefinement,\n type SyncParseReturnType,\n type TransformEffect,\n type TypeOf,\n type UnknownKeysParam,\n type Values,\n type Writeable,\n ZodAny,\n type ZodAnyDef,\n ZodArray,\n type ZodArrayDef,\n ZodBigInt,\n type ZodBigIntCheck,\n type ZodBigIntDef,\n ZodBoolean,\n type ZodBooleanDef,\n ZodBranded,\n type ZodBrandedDef,\n ZodCatch,\n type ZodCatchDef,\n type ZodCustomIssue,\n ZodDate,\n type ZodDateCheck,\n type ZodDateDef,\n ZodDefault,\n type ZodDefaultDef,\n ZodDiscriminatedUnion,\n type ZodDiscriminatedUnionDef,\n type ZodDiscriminatedUnionOption,\n ZodEffects,\n type ZodEffectsDef,\n ZodEnum,\n type ZodEnumDef,\n ZodError,\n type ZodErrorMap,\n type ZodFirstPartySchemaTypes,\n ZodFirstPartyTypeKind,\n type ZodFormattedError,\n ZodFunction,\n type ZodFunctionDef,\n ZodIntersection,\n type ZodIntersectionDef,\n type ZodInvalidArgumentsIssue,\n type ZodInvalidDateIssue,\n type ZodInvalidEnumValueIssue,\n type ZodInvalidIntersectionTypesIssue,\n type ZodInvalidLiteralIssue,\n type ZodInvalidReturnTypeIssue,\n type ZodInvalidStringIssue,\n type ZodInvalidTypeIssue,\n type ZodInvalidUnionDiscriminatorIssue,\n type ZodInvalidUnionIssue,\n type ZodIssue,\n type ZodIssueBase,\n ZodIssueCode,\n type ZodIssueOptionalMessage,\n ZodLazy,\n type ZodLazyDef,\n ZodLiteral,\n type ZodLiteralDef,\n ZodMap,\n type ZodMapDef,\n ZodNaN,\n type ZodNaNDef,\n ZodNativeEnum,\n type ZodNativeEnumDef,\n ZodNever,\n type ZodNeverDef,\n type ZodNonEmptyArray,\n type ZodNotFiniteIssue,\n type ZodNotMultipleOfIssue,\n ZodNull,\n type ZodNullDef,\n ZodNullable,\n type ZodNullableDef,\n type ZodNullableType,\n ZodNumber,\n type ZodNumberCheck,\n type ZodNumberDef,\n ZodObject,\n type ZodObjectDef,\n ZodOptional,\n type ZodOptionalDef,\n type ZodOptionalType,\n ZodParsedType,\n ZodPipeline,\n type ZodPipelineDef,\n ZodPromise,\n type ZodPromiseDef,\n type ZodRawShape,\n ZodReadonly,\n type ZodReadonlyDef,\n ZodRecord,\n type ZodRecordDef,\n ZodType as ZodSchema,\n ZodSet,\n type ZodSetDef,\n ZodString,\n type ZodStringCheck,\n type ZodStringDef,\n ZodSymbol,\n type ZodSymbolDef,\n type ZodTooBigIssue,\n type ZodTooSmallIssue,\n ZodEffects as ZodTransformer,\n ZodTuple,\n type ZodTupleDef,\n type ZodTupleItems,\n ZodType,\n type ZodTypeAny,\n type ZodTypeDef,\n ZodUndefined,\n type ZodUndefinedDef,\n ZodUnion,\n type ZodUnionDef,\n type ZodUnionOptions,\n ZodUnknown,\n type ZodUnknownDef,\n type ZodUnrecognizedKeysIssue,\n ZodVoid,\n type ZodVoidDef,\n addIssueToContext,\n anyType as any,\n arrayType as array,\n type arrayOutputType,\n type baseObjectInputType,\n type baseObjectOutputType,\n bigIntType as bigint,\n booleanType as boolean,\n coerce,\n custom,\n dateType as date,\n datetimeRegex,\n z as default,\n errorMap as defaultErrorMap,\n type deoptional,\n discriminatedUnionType as discriminatedUnion,\n effectsType as effect,\n enumType as enum,\n functionType as function,\n getErrorMap,\n getParsedType,\n type TypeOf as infer,\n type inferFlattenedErrors,\n type inferFormattedError,\n type input,\n instanceOfType as instanceof,\n intersectionType as intersection,\n isAborted,\n isAsync,\n isDirty,\n isValid,\n late,\n lazyType as lazy,\n literalType as literal,\n makeIssue,\n mapType as map,\n type mergeTypes,\n nanType as nan,\n nativeEnumType as nativeEnum,\n neverType as never,\n type noUnrecognized,\n nullType as null,\n nullableType as nullable,\n numberType as number,\n objectType as object,\n type objectInputType,\n type objectOutputType,\n objectUtil,\n oboolean,\n onumber,\n optionalType as optional,\n ostring,\n type output,\n pipelineType as pipeline,\n preprocessType as preprocess,\n promiseType as promise,\n quotelessJson,\n recordType as record,\n setType as set,\n setErrorMap,\n strictObjectType as strictObject,\n stringType as string,\n symbolType as symbol,\n effectsType as transformer,\n tupleType as tuple,\n type typeToFlattenedError,\n type typecast,\n undefinedType as undefined,\n unionType as union,\n unknownType as unknown,\n util,\n voidType as void,\n z,\n};\n",
|
|
13040
|
-
documentationUrl: "https://zod.dev/"
|
|
13041
|
-
}
|
|
13042
|
-
], Og = { globals: { "global.d.ts": Eg } }, kg = Tg, Ag = P.lazy(async () => ({ default: (await Promise.resolve().then(() => Tb)).Function })), jg = ({ id: e }) => {
|
|
13054
|
+
}, Ag = P.lazy(async () => ({ default: (await Promise.resolve().then(() => Tb)).Function })), jg = ({ id: e }) => {
|
|
13043
13055
|
let t = Pg(e), n = nh(), r = eh((e) => e.onFunctionReady), [i, a] = z(), o = R(null), s = R(null);
|
|
13044
13056
|
dh(e, "monaco", {
|
|
13045
13057
|
serialize: () => o.current?.saveViewState() ?? s.current ?? null,
|
|
@@ -13047,13 +13059,14 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13047
13059
|
e && (o.current ? o.current.restoreViewState(e) : s.current = e);
|
|
13048
13060
|
}
|
|
13049
13061
|
});
|
|
13050
|
-
let c =
|
|
13062
|
+
let c = Eh(e), { nodeTrace: l, disabled: u, content: d, nodeError: f, viewConfig: p, functionLibraries: m } = $(({ simulate: t, disabled: n, decisionGraph: r, viewConfig: i, functionLibraries: a }) => ({
|
|
13051
13063
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
13052
13064
|
nodeError: q(t).with({ error: { data: { nodeId: e } } }, ({ error: e }) => e).otherwise(() => null),
|
|
13053
13065
|
disabled: n,
|
|
13054
13066
|
content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
|
|
13055
|
-
viewConfig: i
|
|
13056
|
-
|
|
13067
|
+
viewConfig: i,
|
|
13068
|
+
functionLibraries: a
|
|
13069
|
+
})), { diff: h, contentDiff: g } = ih(e), _ = L(() => t === Ng.Stable ? g?.fields?.source?.previousValue : h?.fields?.content?.previousValue, [h, g]);
|
|
13057
13070
|
return I(() => {
|
|
13058
13071
|
if (!i) return;
|
|
13059
13072
|
let e = i.languages.typescript.javascriptDefaults.getExtraLibs(), t = Object.entries(e).map(([e, t]) => ({
|
|
@@ -13064,12 +13077,13 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13064
13077
|
}, [i, r]), /* @__PURE__ */ U(je, {
|
|
13065
13078
|
fallback: /* @__PURE__ */ U($o, {}),
|
|
13066
13079
|
children: /* @__PURE__ */ U(Ag, {
|
|
13080
|
+
libraries: m?.length ? m : void 0,
|
|
13067
13081
|
onMonacoReady: (e) => a(e),
|
|
13068
13082
|
onEditorMount: (e) => {
|
|
13069
13083
|
o.current = e, s.current &&= (e.restoreViewState(s.current), null);
|
|
13070
13084
|
},
|
|
13071
13085
|
value: t === Ng.Stable ? d.source : d,
|
|
13072
|
-
previousValue: typeof
|
|
13086
|
+
previousValue: typeof _ == "string" ? _ : void 0,
|
|
13073
13087
|
error: f ?? void 0,
|
|
13074
13088
|
inputData: c,
|
|
13075
13089
|
permission: p?.enabled ? p?.permissions?.[e] : "edit:full",
|
|
@@ -13092,7 +13106,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13092
13106
|
displayName: "Function",
|
|
13093
13107
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/functions",
|
|
13094
13108
|
shortDescription: "Javascript lambda",
|
|
13095
|
-
color:
|
|
13109
|
+
color: Wh.Orange,
|
|
13096
13110
|
renderTab: ({ id: e }) => /* @__PURE__ */ U(jg, { id: e }),
|
|
13097
13111
|
getDiffContent: (e, t) => {
|
|
13098
13112
|
let n = {}, r = q(e).with(K.string, () => 0).otherwise(() => 1);
|
|
@@ -13118,11 +13132,11 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13118
13132
|
},
|
|
13119
13133
|
generateNode: ({ index: e }) => ({
|
|
13120
13134
|
name: `function${e}`,
|
|
13121
|
-
content: { source:
|
|
13135
|
+
content: { source: vh }
|
|
13122
13136
|
}),
|
|
13123
13137
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
13124
13138
|
let i = nh(), a = Pg(e), s = o();
|
|
13125
|
-
return /* @__PURE__ */ U(
|
|
13139
|
+
return /* @__PURE__ */ U(Jh, {
|
|
13126
13140
|
id: e,
|
|
13127
13141
|
specification: {
|
|
13128
13142
|
...r,
|
|
@@ -14057,7 +14071,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14057
14071
|
type: "object",
|
|
14058
14072
|
properties: {}
|
|
14059
14073
|
} : null;
|
|
14060
|
-
i(t ?
|
|
14074
|
+
i(t ? A(t) : "");
|
|
14061
14075
|
return;
|
|
14062
14076
|
}
|
|
14063
14077
|
i(D(r, t));
|
|
@@ -14095,7 +14109,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14095
14109
|
updateDefinitionName: (e, t) => {
|
|
14096
14110
|
let n = o[e];
|
|
14097
14111
|
if (!n) return;
|
|
14098
|
-
let r =
|
|
14112
|
+
let r = ne(t);
|
|
14099
14113
|
if (o.some((e) => e.parentPath === n.path) && !r) return;
|
|
14100
14114
|
let i = r ? t_(n.parentPath, r) : n_(n.parentPath, n.id), a = o.map((e) => {
|
|
14101
14115
|
if (e.path !== n.path && !e.path.startsWith(`${n.path}.`)) return e;
|
|
@@ -14141,18 +14155,18 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14141
14155
|
getDefinitionTypeLabel: (e) => _.find((t) => t.value === e)?.label ?? e
|
|
14142
14156
|
};
|
|
14143
14157
|
}, s_ = ({ id: e, content: t, t: n, graphActions: r, panels: i, activeGraphTabId: a, simulatorExampleBinding: o, nodeName: s, definitionDrafts: c }) => {
|
|
14144
|
-
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [
|
|
14158
|
+
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [ne, A] = z({}), re = L(() => w(t).contract, [
|
|
14145
14159
|
t?.schema,
|
|
14146
14160
|
t?.schemaUI,
|
|
14147
14161
|
t?.inputs,
|
|
14148
14162
|
t?.inputContract
|
|
14149
|
-
]),
|
|
14163
|
+
]), j = L(() => m(re.schema), [re.schema]), M = L(() => fe(re, { dataLabel: n("request.dataLabel") }), [re, n]), ie = (e) => u(e, n("request.dataLabel")), N = M[f] ?? null, ae = F((e, t = c) => k(oe(e) ? e : {}, t), [c]), se = F((e) => k(O(oe(e) ? e : {}, c), c), [c]), ce = L(() => N ? O(N.data, c) : null, [N, c]), le = L(() => N ? v[N.id] ?? De(ce) : "", [
|
|
14150
14164
|
N,
|
|
14151
14165
|
v,
|
|
14152
14166
|
ce
|
|
14153
|
-
]), ue = L(() => N ?
|
|
14167
|
+
]), ue = L(() => N ? ne[N.id] ?? N.description ?? "" : "", [N, ne]), pe = L(() => {
|
|
14154
14168
|
if (!N || !ce) return null;
|
|
14155
|
-
let e = c.filter((e) => e.name.trim() && e.path.trim()), t =
|
|
14169
|
+
let e = c.filter((e) => e.name.trim() && e.path.trim()), t = te(ce, e), n = e.filter((e) => T(ce, e.path.trim()) === void 0), r = E(ce), i = e.map((e) => e.path.trim());
|
|
14156
14170
|
return {
|
|
14157
14171
|
definitions: e,
|
|
14158
14172
|
conflicts: t,
|
|
@@ -14166,35 +14180,35 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14166
14180
|
]), [me, he] = z({});
|
|
14167
14181
|
I(() => {
|
|
14168
14182
|
let e = !1;
|
|
14169
|
-
return
|
|
14183
|
+
return ee(re.examples.map((e) => e.data), re.schema).then((t) => {
|
|
14170
14184
|
if (e) return;
|
|
14171
14185
|
let n = {};
|
|
14172
|
-
|
|
14186
|
+
re.examples.forEach((e, r) => {
|
|
14173
14187
|
n[e.id] = t[r] ?? [];
|
|
14174
14188
|
}), he(n);
|
|
14175
14189
|
}), () => {
|
|
14176
14190
|
e = !0;
|
|
14177
14191
|
};
|
|
14178
|
-
}, [
|
|
14192
|
+
}, [re]);
|
|
14179
14193
|
let ge = L(() => {
|
|
14180
14194
|
let e = {};
|
|
14181
|
-
return
|
|
14195
|
+
return re.examples.forEach((t, n) => {
|
|
14182
14196
|
e[t.id] = {
|
|
14183
14197
|
drift: C(M[n]?.data ?? t.data, c),
|
|
14184
|
-
schemaChanged: t.schemaFingerprint !==
|
|
14198
|
+
schemaChanged: t.schemaFingerprint !== j,
|
|
14185
14199
|
constraintIssues: me[t.id] ?? []
|
|
14186
14200
|
};
|
|
14187
14201
|
}), e;
|
|
14188
14202
|
}, [
|
|
14189
14203
|
me,
|
|
14190
|
-
|
|
14204
|
+
j,
|
|
14191
14205
|
c,
|
|
14192
14206
|
M,
|
|
14193
|
-
|
|
14194
|
-
]), _e = L(() =>
|
|
14207
|
+
re.examples
|
|
14208
|
+
]), _e = L(() => re.examples.some((e) => {
|
|
14195
14209
|
let t = ge[e.id];
|
|
14196
14210
|
return !!(t && (t.schemaChanged || de(t.drift) || t.constraintIssues.length > 0));
|
|
14197
|
-
}), [ge,
|
|
14211
|
+
}), [ge, re.examples]), ve = R(re), ye = R(c), be = R(me), xe = F((t, n, i) => {
|
|
14198
14212
|
r.emitContractEvent({
|
|
14199
14213
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14200
14214
|
nodeId: e,
|
|
@@ -14217,8 +14231,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14217
14231
|
};
|
|
14218
14232
|
}, []);
|
|
14219
14233
|
I(() => {
|
|
14220
|
-
ve.current =
|
|
14221
|
-
}, [
|
|
14234
|
+
ve.current = re;
|
|
14235
|
+
}, [re]), I(() => {
|
|
14222
14236
|
ye.current = c;
|
|
14223
14237
|
}, [c]), I(() => {
|
|
14224
14238
|
be.current = me;
|
|
@@ -14226,8 +14240,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14226
14240
|
let Ce = R(null);
|
|
14227
14241
|
I(() => {
|
|
14228
14242
|
let e = Ce.current;
|
|
14229
|
-
if (Ce.current =
|
|
14230
|
-
let t = ve.current.examples.filter((e) => typeof e.schemaFingerprint == "string" && e.schemaFingerprint !==
|
|
14243
|
+
if (Ce.current = j, !e || e === j) return;
|
|
14244
|
+
let t = ve.current.examples.filter((e) => typeof e.schemaFingerprint == "string" && e.schemaFingerprint !== j);
|
|
14231
14245
|
if (t.length === 0) return;
|
|
14232
14246
|
let n = t.reduce((e, t) => {
|
|
14233
14247
|
let n = Se(t.data, t.id);
|
|
@@ -14245,7 +14259,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14245
14259
|
});
|
|
14246
14260
|
xe("drift-detected", t.map((e) => e.name), n);
|
|
14247
14261
|
}, [
|
|
14248
|
-
|
|
14262
|
+
j,
|
|
14249
14263
|
Se,
|
|
14250
14264
|
xe
|
|
14251
14265
|
]);
|
|
@@ -14294,7 +14308,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14294
14308
|
M.forEach((e) => {
|
|
14295
14309
|
y((t) => {
|
|
14296
14310
|
if (S[e.id] === !0) return t;
|
|
14297
|
-
let n = De(
|
|
14311
|
+
let n = De(O(e.data, c));
|
|
14298
14312
|
return t[e.id] === n ? t : {
|
|
14299
14313
|
...t,
|
|
14300
14314
|
[e.id]: n
|
|
@@ -14348,13 +14362,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14348
14362
|
...e,
|
|
14349
14363
|
data: ae(e.data)
|
|
14350
14364
|
})), o = a.map((e, t) => {
|
|
14351
|
-
let n = !de(C(e.data, c)), r =
|
|
14365
|
+
let n = !de(C(e.data, c)), r = re.examples[t];
|
|
14352
14366
|
return {
|
|
14353
14367
|
id: e.id || r?.id || crypto.randomUUID(),
|
|
14354
14368
|
name: e.name,
|
|
14355
14369
|
description: e.description,
|
|
14356
14370
|
data: e.data,
|
|
14357
|
-
schemaFingerprint: n ?
|
|
14371
|
+
schemaFingerprint: n ? j : r?.schemaFingerprint
|
|
14358
14372
|
};
|
|
14359
14373
|
});
|
|
14360
14374
|
r.updateNode(e, (e) => {
|
|
@@ -14436,14 +14450,14 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14436
14450
|
}));
|
|
14437
14451
|
}, Pe = (e) => {
|
|
14438
14452
|
let t = d.current ?? N?.id;
|
|
14439
|
-
t &&
|
|
14453
|
+
t && A((n) => ({
|
|
14440
14454
|
...n,
|
|
14441
14455
|
[t]: e
|
|
14442
14456
|
}));
|
|
14443
14457
|
}, Fe = () => {
|
|
14444
14458
|
let e = d.current ?? N?.id;
|
|
14445
14459
|
if (!e) return;
|
|
14446
|
-
let t = M.find((t) => t.id === e), n =
|
|
14460
|
+
let t = M.find((t) => t.id === e), n = ne[e] ?? t?.description ?? "";
|
|
14447
14461
|
if (n === (t?.description ?? "")) return;
|
|
14448
14462
|
let r = M.findIndex((t) => t.id === e), i = M.map((t) => t.id === e ? {
|
|
14449
14463
|
...t,
|
|
@@ -14454,7 +14468,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14454
14468
|
let e = M, t = [...e, {
|
|
14455
14469
|
id: crypto.randomUUID(),
|
|
14456
14470
|
name: ie(e.length),
|
|
14457
|
-
data:
|
|
14471
|
+
data: k(b(c), c),
|
|
14458
14472
|
source: "schema.examples"
|
|
14459
14473
|
}];
|
|
14460
14474
|
P(t, t.length - 1);
|
|
@@ -14471,8 +14485,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14471
14485
|
return `${(t.length > 0 ? t : s || n("request")).replace(/\.json$/i, "").replace(/[\\/:*?"<>|]/g, "-").trim() || n("request")}.json`;
|
|
14472
14486
|
}, [s, n]);
|
|
14473
14487
|
return {
|
|
14474
|
-
inputContract:
|
|
14475
|
-
currentSchemaFingerprint:
|
|
14488
|
+
inputContract: re,
|
|
14489
|
+
currentSchemaFingerprint: j,
|
|
14476
14490
|
exampleSources: M,
|
|
14477
14491
|
exampleDriftStates: ge,
|
|
14478
14492
|
hasAnyDriftedExample: _e,
|
|
@@ -14545,7 +14559,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14545
14559
|
n?.inputs,
|
|
14546
14560
|
n?.inputContract
|
|
14547
14561
|
]), s = o.schema, l = L(() => {
|
|
14548
|
-
let e =
|
|
14562
|
+
let e = A(o.schema);
|
|
14549
14563
|
return e === "{}" ? "" : e;
|
|
14550
14564
|
}, [o.schema]), u = l, [d, p] = z(u), [m, h] = z(!1), g = R(d), v = R(u), y = R(null), b = R(/* @__PURE__ */ new Set()), x = R(s), S = R(e), C = R(null), T = (e, t) => {
|
|
14551
14565
|
y.current = e, g.current = e, p(e), t?.dirty !== void 0 && h(t.dirty);
|
|
@@ -14607,7 +14621,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14607
14621
|
let e = g.current;
|
|
14608
14622
|
if (!e.trim()) {
|
|
14609
14623
|
C.current = null;
|
|
14610
|
-
let e =
|
|
14624
|
+
let e = A(x.current);
|
|
14611
14625
|
e.trim() && e !== "{}" && (C.current = "", E("")), T("", { dirty: !1 });
|
|
14612
14626
|
return;
|
|
14613
14627
|
}
|
|
@@ -14634,7 +14648,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14634
14648
|
simulatorExampleBinding: s,
|
|
14635
14649
|
fixturesRunner: c,
|
|
14636
14650
|
fixturesRun: l
|
|
14637
|
-
})), E = h ?? !1, { contract: D, sourceSchemaValue:
|
|
14651
|
+
})), E = h ?? !1, { contract: D, sourceSchemaValue: ee, schemaDraft: O, jsonToJsonSchemaOpen: te, setJsonToJsonSchemaOpen: k, updateNodeSchema: ne, handleSchemaDraftChange: A, commitSchemaDraft: re, handleConvertToJsonSchemaSuccess: j } = c_({
|
|
14638
14652
|
id: e,
|
|
14639
14653
|
type: t,
|
|
14640
14654
|
content: g,
|
|
@@ -14643,8 +14657,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14643
14657
|
id: e,
|
|
14644
14658
|
content: g,
|
|
14645
14659
|
t: n,
|
|
14646
|
-
sourceSchemaValue:
|
|
14647
|
-
updateNodeSchema:
|
|
14660
|
+
sourceSchemaValue: ee,
|
|
14661
|
+
updateNodeSchema: ne
|
|
14648
14662
|
}), { exampleSources: he, exampleDriftStates: ge, activeSourceIndex: _e, setActiveSourceIndex: ve, activeSource: ye, activeExampleJsonDraft: be, activeDescriptionDraft: xe, exampleFieldSummary: Se, fileInputRef: Ce, addExampleSource: we, removeExampleSource: Te, persistExamples: Ee, migrateExample: De, migrateAllExamples: Oe, confirmExampleValid: ke, handleExampleJsonChange: Ae, commitExampleJson: je, handleDescriptionChange: Me, commitDescription: Ne, handleUploadJson: Pe, handleDownloadJson: Fe, openSimulatorPanel: Ie, syncExampleToSimulator: Le } = s_({
|
|
14649
14663
|
id: e,
|
|
14650
14664
|
content: g,
|
|
@@ -14658,13 +14672,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14658
14672
|
});
|
|
14659
14673
|
Vg(e, {
|
|
14660
14674
|
activeTab: i,
|
|
14661
|
-
schemaDraft:
|
|
14675
|
+
schemaDraft: O,
|
|
14662
14676
|
activeSourceIndex: _e,
|
|
14663
14677
|
activeExampleJsonDraft: be,
|
|
14664
14678
|
activeDescriptionDraft: xe
|
|
14665
14679
|
}, {
|
|
14666
14680
|
setActiveTab: (e) => a(l_(e)),
|
|
14667
|
-
setSchemaDraft:
|
|
14681
|
+
setSchemaDraft: A,
|
|
14668
14682
|
setActiveExampleJsonDraft: Ae,
|
|
14669
14683
|
setActiveDescriptionDraft: Me,
|
|
14670
14684
|
setActiveSourceIndex: ve
|
|
@@ -14826,7 +14840,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14826
14840
|
onFormat: () => {
|
|
14827
14841
|
(f.current?.getAction?.("editor.action.formatDocument"))?.run();
|
|
14828
14842
|
},
|
|
14829
|
-
onConvertFromJson: () =>
|
|
14843
|
+
onConvertFromJson: () => k(!0)
|
|
14830
14844
|
}) : /* @__PURE__ */ U($g, {
|
|
14831
14845
|
tab: "examples",
|
|
14832
14846
|
disabled: E,
|
|
@@ -14847,13 +14861,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14847
14861
|
/* @__PURE__ */ U("div", {
|
|
14848
14862
|
className: "flex min-h-0 flex-1 flex-col overflow-hidden p-3",
|
|
14849
14863
|
children: i === "code" ? /* @__PURE__ */ U(Rg, {
|
|
14850
|
-
schemaDraft:
|
|
14864
|
+
schemaDraft: O,
|
|
14851
14865
|
disabled: E,
|
|
14852
|
-
onSchemaChange:
|
|
14853
|
-
onSchemaCommit:
|
|
14854
|
-
jsonToJsonSchemaOpen:
|
|
14855
|
-
onConvertSuccess:
|
|
14856
|
-
onDismissConvert: () =>
|
|
14866
|
+
onSchemaChange: A,
|
|
14867
|
+
onSchemaCommit: re,
|
|
14868
|
+
jsonToJsonSchemaOpen: te,
|
|
14869
|
+
onConvertSuccess: j,
|
|
14870
|
+
onDismissConvert: () => k(!1),
|
|
14857
14871
|
onEditorMount: (e) => {
|
|
14858
14872
|
f.current = e;
|
|
14859
14873
|
},
|
|
@@ -14928,7 +14942,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14928
14942
|
type: Q.Input,
|
|
14929
14943
|
icon: /* @__PURE__ */ U(it, { size: "1em" }),
|
|
14930
14944
|
displayName: "Request",
|
|
14931
|
-
color:
|
|
14945
|
+
color: Wh.Green,
|
|
14932
14946
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions",
|
|
14933
14947
|
shortDescription: "Provides input context",
|
|
14934
14948
|
generateNode: () => ({
|
|
@@ -14946,7 +14960,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14946
14960
|
}),
|
|
14947
14961
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
14948
14962
|
let i = nh(), { disabled: a } = $(({ disabled: e }) => ({ disabled: e })), { modal: s } = Va.useApp(), c = o();
|
|
14949
|
-
return /* @__PURE__ */ U(
|
|
14963
|
+
return /* @__PURE__ */ U(Jh, {
|
|
14950
14964
|
id: e,
|
|
14951
14965
|
specification: r,
|
|
14952
14966
|
name: t.name,
|
|
@@ -14968,7 +14982,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14968
14982
|
danger: !0,
|
|
14969
14983
|
label: /* @__PURE__ */ U(Yp, {
|
|
14970
14984
|
left: c("common.delete"),
|
|
14971
|
-
right:
|
|
14985
|
+
right: Ih.shortcut("Backspace")
|
|
14972
14986
|
}),
|
|
14973
14987
|
disabled: a,
|
|
14974
14988
|
onClick: () => s.confirm({
|
|
@@ -15110,7 +15124,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15110
15124
|
}, h_ = {
|
|
15111
15125
|
type: Q.Output,
|
|
15112
15126
|
icon: /* @__PURE__ */ U(nt, { size: "1em" }),
|
|
15113
|
-
color:
|
|
15127
|
+
color: Wh.Green,
|
|
15114
15128
|
displayName: "Response",
|
|
15115
15129
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions",
|
|
15116
15130
|
shortDescription: "Outputs the context",
|
|
@@ -15124,7 +15138,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15124
15138
|
}),
|
|
15125
15139
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
15126
15140
|
let i = nh(), a = o();
|
|
15127
|
-
return /* @__PURE__ */ U(
|
|
15141
|
+
return /* @__PURE__ */ U(Jh, {
|
|
15128
15142
|
id: e,
|
|
15129
15143
|
specification: r,
|
|
15130
15144
|
name: t.name,
|
|
@@ -15153,7 +15167,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15153
15167
|
status: "modified",
|
|
15154
15168
|
previousValue: e.hitPolicy
|
|
15155
15169
|
});
|
|
15156
|
-
let i =
|
|
15170
|
+
let i = Ah(e?.statements || [], t?.statements || [], { compareFields: (e, t) => {
|
|
15157
15171
|
let n = (e.condition ?? "") !== t.condition;
|
|
15158
15172
|
return {
|
|
15159
15173
|
hasChanges: n,
|
|
@@ -15316,7 +15330,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15316
15330
|
disabled: n,
|
|
15317
15331
|
compactMode: i,
|
|
15318
15332
|
isGraphActive: a === "graph"
|
|
15319
|
-
})), p =
|
|
15333
|
+
})), p = Eh(e, { disabled: !d || !o }), m = s?.statements || [], h = s?.hitPolicy || "first", g = (t) => {
|
|
15320
15334
|
i.updateNode(e, (e) => (e.content.hitPolicy = t, e));
|
|
15321
15335
|
}, _ = (t, n) => {
|
|
15322
15336
|
i.updateNode(e, (e) => {
|
|
@@ -15324,7 +15338,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15324
15338
|
return r && (r.name = n), e;
|
|
15325
15339
|
}), i.setEdges(__(f ?? [], e, t, n));
|
|
15326
15340
|
}, v = L(() => u ? b_ : y_, [u]);
|
|
15327
|
-
return /* @__PURE__ */ U(
|
|
15341
|
+
return /* @__PURE__ */ U(Jh, {
|
|
15328
15342
|
id: e,
|
|
15329
15343
|
ref: a,
|
|
15330
15344
|
className: V(["h-auto w-[220px] rounded p-0"]),
|
|
@@ -15424,7 +15438,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15424
15438
|
displayName: "Switch",
|
|
15425
15439
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/switch",
|
|
15426
15440
|
shortDescription: "Conditional branching",
|
|
15427
|
-
color:
|
|
15441
|
+
color: Wh.Purple,
|
|
15428
15442
|
getDiffContent: (e, t) => g_(e, t),
|
|
15429
15443
|
inferTypes: {
|
|
15430
15444
|
needsUpdate: () => !1,
|
|
@@ -15465,7 +15479,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15465
15479
|
status: "modified",
|
|
15466
15480
|
previousValue: n.name
|
|
15467
15481
|
});
|
|
15468
|
-
let o = q([e.type, n.type]).with([Q.Output, Q.Output], () => h_?.getDiffContent?.(e?.content, n?.content)).with([Q.Input, Q.Input], () => d_?.getDiffContent?.(e?.content, n?.content)).with([Q.Expression, Q.Expression], () =>
|
|
15482
|
+
let o = q([e.type, n.type]).with([Q.Output, Q.Output], () => h_?.getDiffContent?.(e?.content, n?.content)).with([Q.Input, Q.Input], () => d_?.getDiffContent?.(e?.content, n?.content)).with([Q.Expression, Q.Expression], () => kg?.getDiffContent?.(e?.content, n?.content)).with([Q.DecisionTable, Q.DecisionTable], () => ng?.getDiffContent?.(e?.content, n?.content)).with([Q.Function, Q.Function], () => {
|
|
15469
15483
|
let r = Mg?.getDiffContent?.(e?.content, n?.content);
|
|
15470
15484
|
return q(e?.content).with(K.string, () => (r?._diff?.fields?.source?.status === "modified" && _i.set(t, "content", {
|
|
15471
15485
|
status: "modified",
|
|
@@ -15474,7 +15488,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15474
15488
|
}).with([Q.Switch, Q.Switch], () => S_?.getDiffContent?.(e?.content, n?.content)).otherwise(() => {
|
|
15475
15489
|
let t = r.find((t) => t.type === e.type);
|
|
15476
15490
|
if (t) return t?.getDiffContent?.(e?.content, n?.content);
|
|
15477
|
-
let a =
|
|
15491
|
+
let a = Ch(i, {
|
|
15478
15492
|
kind: e?.content?.kind,
|
|
15479
15493
|
type: e?.type,
|
|
15480
15494
|
config: e?.content?.config,
|
|
@@ -15523,93 +15537,95 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15523
15537
|
_diff: { status: "removed" }
|
|
15524
15538
|
});
|
|
15525
15539
|
}), Array.from(n.values());
|
|
15526
|
-
}, E_ = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c,
|
|
15527
|
-
let
|
|
15540
|
+
}, E_ = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c, functionLibraries: l, allowedNamespaces: u, extraCommands: d, defaultActivePanel: f, hideLeftToolbar: p, panels: m, simulate: h, dictionaries: g, mode: _, viewConfigCta: v, viewConfig: y, onViewConfigCta: b, onPanelsChange: x, onReactFlowInit: S, onCodeExtension: C, onFunctionReady: w, fixturesRunner: T, onContractEvent: E }) => {
|
|
15541
|
+
let D = R(!1), ee = nh(), { stateStore: O, listenerStore: te } = rh(), { decisionGraph: k, openTabs: ne, activeTab: A } = $(({ decisionGraph: e, openTabs: t, activeTab: n }) => ({
|
|
15528
15542
|
decisionGraph: e,
|
|
15529
15543
|
openTabs: t,
|
|
15530
15544
|
activeTab: n
|
|
15531
|
-
})),
|
|
15545
|
+
})), re = Mi((e) => {
|
|
15532
15546
|
o?.(e);
|
|
15533
15547
|
}, 100);
|
|
15534
15548
|
I(() => {
|
|
15535
|
-
if (
|
|
15536
|
-
let e =
|
|
15549
|
+
if (y?.enabled) {
|
|
15550
|
+
let e = ne.filter((e) => !!y?.permissions?.[e]);
|
|
15537
15551
|
O.setState({
|
|
15538
15552
|
openTabs: e,
|
|
15539
|
-
activeTab:
|
|
15553
|
+
activeTab: y?.permissions?.[A] ? A : "graph"
|
|
15540
15554
|
});
|
|
15541
15555
|
}
|
|
15542
|
-
}, [
|
|
15543
|
-
let
|
|
15556
|
+
}, [y]);
|
|
15557
|
+
let j = L(() => {
|
|
15544
15558
|
let e = Array.isArray(c) ? c : [];
|
|
15545
|
-
return !
|
|
15546
|
-
}, [c,
|
|
15559
|
+
return !u || u.size === 0 ? e : e.filter((e) => u.has(e.kind));
|
|
15560
|
+
}, [c, u]);
|
|
15547
15561
|
return I(() => {
|
|
15548
15562
|
O.setState({
|
|
15549
15563
|
id: e,
|
|
15550
15564
|
disabled: i,
|
|
15551
15565
|
components: Array.isArray(s) ? s : [],
|
|
15552
|
-
customNodes: Array.isArray(
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15566
|
+
customNodes: Array.isArray(j) ? j : [],
|
|
15567
|
+
functionLibraries: l && l.length > 0 ? l : gh,
|
|
15568
|
+
extraCommands: Array.isArray(d) ? d : [],
|
|
15569
|
+
panels: m,
|
|
15570
|
+
viewConfig: y,
|
|
15571
|
+
viewConfigCta: v,
|
|
15572
|
+
hideLeftToolbar: p,
|
|
15573
|
+
dictionaries: g,
|
|
15574
|
+
mode: _
|
|
15560
15575
|
});
|
|
15561
15576
|
}, [
|
|
15562
15577
|
e,
|
|
15563
15578
|
i,
|
|
15564
15579
|
s,
|
|
15565
|
-
|
|
15580
|
+
j,
|
|
15566
15581
|
l,
|
|
15567
15582
|
u,
|
|
15568
|
-
|
|
15583
|
+
d,
|
|
15584
|
+
m,
|
|
15585
|
+
y,
|
|
15569
15586
|
v,
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
g
|
|
15587
|
+
p,
|
|
15588
|
+
g,
|
|
15589
|
+
_
|
|
15574
15590
|
]), I(() => {
|
|
15575
15591
|
O.setState({ name: r ?? "graph.json" });
|
|
15576
15592
|
}, [r]), I(() => {
|
|
15577
|
-
O.setState({ simulate:
|
|
15578
|
-
}, [
|
|
15579
|
-
O.setState({ fixturesRunner:
|
|
15580
|
-
}, [
|
|
15581
|
-
|
|
15582
|
-
onReactFlowInit:
|
|
15583
|
-
onPanelsChange:
|
|
15584
|
-
onCodeExtension:
|
|
15585
|
-
onFunctionReady:
|
|
15586
|
-
onViewConfigCta:
|
|
15587
|
-
onContractEvent:
|
|
15593
|
+
O.setState({ simulate: h });
|
|
15594
|
+
}, [h]), I(() => {
|
|
15595
|
+
O.setState({ fixturesRunner: T ?? null });
|
|
15596
|
+
}, [T]), I(() => {
|
|
15597
|
+
te.setState({
|
|
15598
|
+
onReactFlowInit: S,
|
|
15599
|
+
onPanelsChange: x,
|
|
15600
|
+
onCodeExtension: C,
|
|
15601
|
+
onFunctionReady: w,
|
|
15602
|
+
onViewConfigCta: b,
|
|
15603
|
+
onContractEvent: E
|
|
15588
15604
|
});
|
|
15589
15605
|
}, [
|
|
15590
|
-
x,
|
|
15591
|
-
b,
|
|
15592
15606
|
S,
|
|
15607
|
+
x,
|
|
15593
15608
|
C,
|
|
15594
|
-
|
|
15595
|
-
|
|
15609
|
+
w,
|
|
15610
|
+
b,
|
|
15611
|
+
E
|
|
15596
15612
|
]), I(() => {
|
|
15597
|
-
|
|
15598
|
-
}, [
|
|
15599
|
-
n === void 0 || a ||
|
|
15613
|
+
te.setState({ onChange: re });
|
|
15614
|
+
}, [re]), I(() => {
|
|
15615
|
+
n === void 0 || a || D.current && !(0, Sc.default)(n, k) && ee.setDecisionGraph(n);
|
|
15600
15616
|
}, [n, a]), I(() => {
|
|
15601
|
-
n === void 0 ? t !== void 0 &&
|
|
15617
|
+
n === void 0 ? t !== void 0 && ee.setDecisionGraph(t) : ee.setDecisionGraph(a ? C_(n, a, {
|
|
15602
15618
|
customNodes: c ?? [],
|
|
15603
15619
|
components: s ?? []
|
|
15604
15620
|
}) : n), O.setState({
|
|
15605
|
-
activePanel:
|
|
15606
|
-
hideLeftToolbar:
|
|
15607
|
-
}),
|
|
15621
|
+
activePanel: f,
|
|
15622
|
+
hideLeftToolbar: p
|
|
15623
|
+
}), D.current = !0;
|
|
15608
15624
|
}, []), I(() => {
|
|
15609
|
-
n !== void 0 && (a ?
|
|
15625
|
+
n !== void 0 && (a ? ee.setDecisionGraph(C_(n, a, {
|
|
15610
15626
|
customNodes: c ?? [],
|
|
15611
15627
|
components: s ?? []
|
|
15612
|
-
})) :
|
|
15628
|
+
})) : D.current && ee.setDecisionGraph(n));
|
|
15613
15629
|
}, [a]), null;
|
|
15614
15630
|
}, D_ = () => {
|
|
15615
15631
|
let e = null;
|
|
@@ -15689,8 +15705,8 @@ function M_(e) {
|
|
|
15689
15705
|
var N_ = M_({
|
|
15690
15706
|
[Q.Input]: d_,
|
|
15691
15707
|
[Q.Output]: h_,
|
|
15692
|
-
[Q.DecisionTable]:
|
|
15693
|
-
[Q.Expression]:
|
|
15708
|
+
[Q.DecisionTable]: ng,
|
|
15709
|
+
[Q.Expression]: kg,
|
|
15694
15710
|
[Q.Function]: Mg,
|
|
15695
15711
|
[Q.Switch]: S_
|
|
15696
15712
|
}), P_ = () => {
|
|
@@ -15758,7 +15774,7 @@ var N_ = M_({
|
|
|
15758
15774
|
return n[Zm.Output] ?? n[Zm.InferredOutput];
|
|
15759
15775
|
}).filter((e) => !!e).map((e) => e.clone()), i = q(e.length).with(1, () => e[0]).otherwise(() => zn.fromIncoming(e));
|
|
15760
15776
|
(t?.[o.id]?.[Zm.InferredInput])?.equal(i) || (a = !0, t[o.id] ??= {}, t[o.id][Zm.InferredInput] = i);
|
|
15761
|
-
let c = N_[o.type]?.inferTypes ??
|
|
15777
|
+
let c = N_[o.type]?.inferTypes ?? Ch(n, {
|
|
15762
15778
|
kind: o.content?.kind,
|
|
15763
15779
|
type: o.type,
|
|
15764
15780
|
config: o.content?.config,
|
|
@@ -15795,7 +15811,7 @@ var N_ = M_({
|
|
|
15795
15811
|
inputNodeType: q(t?.[s ?? ""]?.[Zm.InferredOutput]).with(K.nonNullable, (e) => e.hash()).otherwise(() => null)
|
|
15796
15812
|
};
|
|
15797
15813
|
}, L_ = ({ decisionGraph: e, customNodes: t }, n) => e.nodes.map((e) => {
|
|
15798
|
-
let r = N_[e.type]?.inferTypes ??
|
|
15814
|
+
let r = N_[e.type]?.inferTypes ?? Ch(t, {
|
|
15799
15815
|
kind: e.content?.kind,
|
|
15800
15816
|
type: e.type,
|
|
15801
15817
|
config: e.content?.config,
|
|
@@ -15916,7 +15932,7 @@ var N_ = M_({
|
|
|
15916
15932
|
className: "whitespace-nowrap rounded-sm border border-[var(--border)] bg-[var(--seal-color-bg-container)] px-1.5 py-0.5 text-[10px] text-[var(--muted-foreground)]",
|
|
15917
15933
|
children: h
|
|
15918
15934
|
})
|
|
15919
|
-
}) : null,
|
|
15935
|
+
}) : null, ee = async (e) => {
|
|
15920
15936
|
S(!1);
|
|
15921
15937
|
let s = (v?.nodes ?? []).filter((t) => e.type === "customNode" ? t.content?.kind === e.component : t.type === e.type).length, c = [...Object.values(N_), ...y], l = e.type === "customNode" ? c.find((t) => t.kind === e.component) : c.find((t) => t.type === e.type);
|
|
15922
15938
|
if (!l?.generateNode) return;
|
|
@@ -15937,7 +15953,7 @@ var N_ = M_({
|
|
|
15937
15953
|
type: e.type,
|
|
15938
15954
|
position: d,
|
|
15939
15955
|
...u
|
|
15940
|
-
}, p =
|
|
15956
|
+
}, p = j.safeParse(f);
|
|
15941
15957
|
p.success && (t.addNodes([p.data]), t.addEdges([{
|
|
15942
15958
|
id: crypto.randomUUID(),
|
|
15943
15959
|
sourceId: r,
|
|
@@ -15972,7 +15988,7 @@ var N_ = M_({
|
|
|
15972
15988
|
children: C.map((e) => /* @__PURE__ */ W("button", {
|
|
15973
15989
|
type: "button",
|
|
15974
15990
|
className: "flex w-full items-center gap-2 rounded-sm px-2 py-1 text-left text-xs hover:bg-[var(--accent)]",
|
|
15975
|
-
onClick: () => void
|
|
15991
|
+
onClick: () => void ee(e),
|
|
15976
15992
|
children: [/* @__PURE__ */ U("span", {
|
|
15977
15993
|
className: "flex h-4 w-4 items-center justify-center",
|
|
15978
15994
|
children: e.icon
|
|
@@ -16093,7 +16109,7 @@ var N_ = M_({
|
|
|
16093
16109
|
if (s) {
|
|
16094
16110
|
try {
|
|
16095
16111
|
let e = JSON.parse(s);
|
|
16096
|
-
n([
|
|
16112
|
+
n([j.parse({
|
|
16097
16113
|
...e,
|
|
16098
16114
|
position: o
|
|
16099
16115
|
})]);
|
|
@@ -16149,7 +16165,7 @@ var N_ = M_({
|
|
|
16149
16165
|
};
|
|
16150
16166
|
o = t.current.screenToFlowPosition(r);
|
|
16151
16167
|
}
|
|
16152
|
-
let c = q(a).with("customNode", () =>
|
|
16168
|
+
let c = q(a).with("customNode", () => Ch(n, {
|
|
16153
16169
|
kind: s,
|
|
16154
16170
|
type: a
|
|
16155
16171
|
})).otherwise(() => [...Object.values(N_), ...r].find((e) => e.type === a));
|
|
@@ -16187,27 +16203,27 @@ var N_ = M_({
|
|
|
16187
16203
|
} catch {
|
|
16188
16204
|
return;
|
|
16189
16205
|
}
|
|
16190
|
-
let u =
|
|
16191
|
-
if (u.success) return i([
|
|
16206
|
+
let u = j.safeParse(l);
|
|
16207
|
+
if (u.success) return i([j.parse(l)]);
|
|
16192
16208
|
B.error(u.error?.message);
|
|
16193
16209
|
}, Z_ = ({ addNode: e, specifications: t }) => {
|
|
16194
|
-
let n = o(), r = nh(), { commandMenuOpen:
|
|
16210
|
+
let n = o(), r = Ca(), i = nh(), { commandMenuOpen: a, panels: s, activePanelId: c, nodes: l, extraCommands: u } = $(({ commandMenuOpen: e, panels: t, activePanel: n, decisionGraph: r, extraCommands: i }) => ({
|
|
16195
16211
|
commandMenuOpen: e,
|
|
16196
16212
|
panels: t ?? [],
|
|
16197
16213
|
extraCommands: i ?? [],
|
|
16198
16214
|
activePanelId: n,
|
|
16199
16215
|
nodes: (r.nodes ?? []).filter((e) => e.type !== "inputNode")
|
|
16200
|
-
})), [
|
|
16216
|
+
})), [d, f] = z("");
|
|
16201
16217
|
I(() => {
|
|
16202
16218
|
let e = (e) => {
|
|
16203
16219
|
if ((e.ctrlKey || e.metaKey) && e.code === "KeyK") {
|
|
16204
16220
|
if (e.target?.closest?.("input, textarea, select, [contenteditable], .cm-editor")) return;
|
|
16205
|
-
e.preventDefault(),
|
|
16221
|
+
e.preventDefault(), i.setCommandMenuOpen(!a);
|
|
16206
16222
|
}
|
|
16207
16223
|
};
|
|
16208
16224
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
16209
|
-
}, [
|
|
16210
|
-
let
|
|
16225
|
+
}, [a, i]);
|
|
16226
|
+
let p = L(() => {
|
|
16211
16227
|
let n = t.map((t) => {
|
|
16212
16228
|
let n = !("type" in t), r = n ? "customNode" : t.type, i = n ? t.kind : void 0;
|
|
16213
16229
|
return {
|
|
@@ -16220,25 +16236,25 @@ var N_ = M_({
|
|
|
16220
16236
|
e(r, void 0, i);
|
|
16221
16237
|
}
|
|
16222
16238
|
};
|
|
16223
|
-
}),
|
|
16239
|
+
}), r = s.map((e) => ({
|
|
16224
16240
|
id: `panel:${e.id}`,
|
|
16225
16241
|
group: "panel",
|
|
16226
16242
|
label: e.title,
|
|
16227
16243
|
icon: e.icon,
|
|
16228
16244
|
keywords: `panel ${e.title}`,
|
|
16229
|
-
run: () =>
|
|
16230
|
-
})),
|
|
16245
|
+
run: () => i.setActivePanel(c === e.id ? void 0 : e.id)
|
|
16246
|
+
})), a = l.map((e) => ({
|
|
16231
16247
|
id: `goto:${e.id}`,
|
|
16232
16248
|
group: "goto",
|
|
16233
16249
|
label: e.name ?? e.id,
|
|
16234
16250
|
icon: null,
|
|
16235
16251
|
keywords: `goto ${e.type ?? ""} ${e.name ?? ""}`,
|
|
16236
16252
|
run: () => {
|
|
16237
|
-
|
|
16253
|
+
i.goToNode(e.id), i.openTab(e.id);
|
|
16238
16254
|
}
|
|
16239
16255
|
}));
|
|
16240
16256
|
return [
|
|
16241
|
-
...
|
|
16257
|
+
...u.map((e) => ({
|
|
16242
16258
|
id: e.id,
|
|
16243
16259
|
group: e.group,
|
|
16244
16260
|
label: e.label,
|
|
@@ -16246,91 +16262,86 @@ var N_ = M_({
|
|
|
16246
16262
|
keywords: e.keywords,
|
|
16247
16263
|
run: e.run
|
|
16248
16264
|
})),
|
|
16249
|
-
...
|
|
16250
|
-
...
|
|
16265
|
+
...r,
|
|
16266
|
+
...a,
|
|
16251
16267
|
...n
|
|
16252
16268
|
];
|
|
16253
16269
|
}, [
|
|
16254
|
-
a,
|
|
16255
16270
|
s,
|
|
16256
16271
|
c,
|
|
16257
|
-
t,
|
|
16258
16272
|
l,
|
|
16273
|
+
t,
|
|
16274
|
+
u,
|
|
16259
16275
|
e,
|
|
16260
|
-
|
|
16261
|
-
]),
|
|
16262
|
-
let e =
|
|
16263
|
-
return e ?
|
|
16264
|
-
}, [
|
|
16276
|
+
i
|
|
16277
|
+
]), m = L(() => {
|
|
16278
|
+
let e = d.trim().toLowerCase();
|
|
16279
|
+
return e ? p.filter((t) => `${t.label} ${t.keywords}`.toLowerCase().includes(e)) : p;
|
|
16280
|
+
}, [p, d]), h = {
|
|
16265
16281
|
add: n("dg.command.groupAdd"),
|
|
16266
16282
|
panel: n("dg.command.groupPanels"),
|
|
16267
16283
|
goto: n("dg.command.groupNodes")
|
|
16268
16284
|
};
|
|
16269
|
-
return /* @__PURE__ */
|
|
16270
|
-
items:
|
|
16271
|
-
filteredItems:
|
|
16285
|
+
return /* @__PURE__ */ U(da.Root, {
|
|
16286
|
+
items: m,
|
|
16287
|
+
filteredItems: m,
|
|
16272
16288
|
filter: null,
|
|
16273
|
-
open:
|
|
16274
|
-
onOpenChange: (e) =>
|
|
16275
|
-
inputValue:
|
|
16276
|
-
onInputValueChange: (e) =>
|
|
16289
|
+
open: a,
|
|
16290
|
+
onOpenChange: (e) => i.setCommandMenuOpen(e),
|
|
16291
|
+
inputValue: d,
|
|
16292
|
+
onInputValueChange: (e) => f(e),
|
|
16277
16293
|
multiple: !1,
|
|
16278
16294
|
onValueChange: (e) => {
|
|
16279
|
-
let t = (Array.isArray(
|
|
16280
|
-
t && (
|
|
16295
|
+
let t = (Array.isArray(m) ? m : []).find((t) => t === e);
|
|
16296
|
+
t && (i.setCommandMenuOpen(!1), f(""), queueMicrotask(() => t.run()));
|
|
16281
16297
|
},
|
|
16282
|
-
children:
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
})
|
|
16326
|
-
]
|
|
16327
|
-
}, e.id)), p.length === 0 && /* @__PURE__ */ U("div", {
|
|
16328
|
-
className: "px-3 py-6 text-center text-xs opacity-50",
|
|
16329
|
-
children: n("dg.command.empty")
|
|
16298
|
+
children: /* @__PURE__ */ U(da.Portal, {
|
|
16299
|
+
container: r,
|
|
16300
|
+
children: /* @__PURE__ */ U(da.Positioner, {
|
|
16301
|
+
anchor: { getBoundingClientRect: () => new DOMRect(window.innerWidth / 2, 10, 0, 0) },
|
|
16302
|
+
side: "bottom",
|
|
16303
|
+
align: "center",
|
|
16304
|
+
sideOffset: 6,
|
|
16305
|
+
className: "z-50",
|
|
16306
|
+
children: /* @__PURE__ */ W(da.Popup, {
|
|
16307
|
+
"data-testid": "graph-command-menu",
|
|
16308
|
+
className: "z-50 w-[460px] max-w-[90vw] overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--card)] shadow-[0_16px_40px_rgba(0,0,0,0.18)]",
|
|
16309
|
+
children: [/* @__PURE__ */ U(da.Input, {
|
|
16310
|
+
"data-testid": "graph-command-input",
|
|
16311
|
+
onKeyDown: (e) => {
|
|
16312
|
+
if (e.key === "Enter" && m.length > 0) {
|
|
16313
|
+
e.preventDefault();
|
|
16314
|
+
let t = m[0];
|
|
16315
|
+
i.setCommandMenuOpen(!1), f(""), queueMicrotask(() => t.run());
|
|
16316
|
+
}
|
|
16317
|
+
},
|
|
16318
|
+
placeholder: n("dg.command.placeholder"),
|
|
16319
|
+
className: "h-10 w-full border-b border-[var(--border)] bg-transparent px-3 text-sm outline-none"
|
|
16320
|
+
}), /* @__PURE__ */ W(da.List, {
|
|
16321
|
+
className: "max-h-[320px] overflow-y-auto p-1",
|
|
16322
|
+
children: [m.map((e) => /* @__PURE__ */ W(da.Item, {
|
|
16323
|
+
value: e,
|
|
16324
|
+
"data-testid": "graph-command-item",
|
|
16325
|
+
className: "flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-xs outline-none data-highlighted:bg-accent data-highlighted:text-accent-foreground",
|
|
16326
|
+
children: [
|
|
16327
|
+
e.icon,
|
|
16328
|
+
/* @__PURE__ */ U("span", {
|
|
16329
|
+
className: "min-w-0 flex-1 truncate",
|
|
16330
|
+
children: e.label
|
|
16331
|
+
}),
|
|
16332
|
+
/* @__PURE__ */ U("span", {
|
|
16333
|
+
className: "shrink-0 text-[10px] opacity-50",
|
|
16334
|
+
children: h[e.group]
|
|
16335
|
+
})
|
|
16336
|
+
]
|
|
16337
|
+
}, e.id)), m.length === 0 && /* @__PURE__ */ U("div", {
|
|
16338
|
+
className: "px-3 py-6 text-center text-xs opacity-50",
|
|
16339
|
+
children: n("dg.command.empty")
|
|
16340
|
+
})]
|
|
16330
16341
|
})]
|
|
16331
|
-
})
|
|
16342
|
+
})
|
|
16332
16343
|
})
|
|
16333
|
-
})
|
|
16344
|
+
})
|
|
16334
16345
|
});
|
|
16335
16346
|
}, Q_ = (e, t) => {
|
|
16336
16347
|
let n = t.trim().toLowerCase();
|
|
@@ -16375,8 +16386,8 @@ var N_ = M_({
|
|
|
16375
16386
|
}, [r, i]), l = L(() => Object.keys(c).reduce((e, t) => ({
|
|
16376
16387
|
...e,
|
|
16377
16388
|
[t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) || Q_(e, a) !== null)
|
|
16378
|
-
}), {}), [c, a]), u = r.length + i.length;
|
|
16379
|
-
return /* @__PURE__ */ W("div", { children: [
|
|
16389
|
+
}), {}), [c, a]), u = r.length + i.length, d = (c.core?.length ?? 0) + u;
|
|
16390
|
+
return /* @__PURE__ */ W("div", { children: [d > 5 && /* @__PURE__ */ U(Do, {
|
|
16380
16391
|
placeholder: "Search components...",
|
|
16381
16392
|
value: a,
|
|
16382
16393
|
onChange: (e) => o(e.target.value || ""),
|
|
@@ -16429,7 +16440,7 @@ var N_ = M_({
|
|
|
16429
16440
|
children: a.label
|
|
16430
16441
|
}), /* @__PURE__ */ U("div", {
|
|
16431
16442
|
style: { pointerEvents: "none" },
|
|
16432
|
-
children: /* @__PURE__ */ U(
|
|
16443
|
+
children: /* @__PURE__ */ U(Gh, {
|
|
16433
16444
|
listMode: !0,
|
|
16434
16445
|
compactMode: !0,
|
|
16435
16446
|
color: e.color,
|
|
@@ -16454,7 +16465,7 @@ var N_ = M_({
|
|
|
16454
16465
|
name: typeof t.data?.name == "string" ? t.data.name : void 0
|
|
16455
16466
|
}), i(!1);
|
|
16456
16467
|
} }), !t || r) return null;
|
|
16457
|
-
let s = t.type === "customNode" ?
|
|
16468
|
+
let s = t.type === "customNode" ? Ch(a, {
|
|
16458
16469
|
kind: t.kind,
|
|
16459
16470
|
type: t.type
|
|
16460
16471
|
}) : N_[t.type], c = s?.renderSettings;
|
|
@@ -16471,7 +16482,7 @@ var N_ = M_({
|
|
|
16471
16482
|
children: [/* @__PURE__ */ W("div", {
|
|
16472
16483
|
className: "flex items-center gap-2 border-b border-b-[var(--border)] p-2",
|
|
16473
16484
|
children: [
|
|
16474
|
-
/* @__PURE__ */ U(
|
|
16485
|
+
/* @__PURE__ */ U(Hh, {
|
|
16475
16486
|
variant: "soft",
|
|
16476
16487
|
size: "xs",
|
|
16477
16488
|
"aria-hidden": !0,
|
|
@@ -16482,7 +16493,7 @@ var N_ = M_({
|
|
|
16482
16493
|
children: [/* @__PURE__ */ U("span", {
|
|
16483
16494
|
className: "truncate text-xs font-medium",
|
|
16484
16495
|
children: t.name
|
|
16485
|
-
}), t.type !== "customNode" && /* @__PURE__ */ U(
|
|
16496
|
+
}), t.type !== "customNode" && /* @__PURE__ */ U(Bh, {
|
|
16486
16497
|
variant: "secondary",
|
|
16487
16498
|
size: "xs",
|
|
16488
16499
|
className: "w-fit max-w-full truncate",
|
|
@@ -16544,7 +16555,7 @@ var N_ = M_({
|
|
|
16544
16555
|
}));
|
|
16545
16556
|
m.nodesState.current = a, m.edgesState.current = s, m.graphClipboard.current = K_(i, r), m.reactFlowInstance.current = i.current;
|
|
16546
16557
|
let S = L(() => P.memo((e) => {
|
|
16547
|
-
let t = o(), { openTab: n } = nh(), r =
|
|
16558
|
+
let t = o(), { openTab: n } = nh(), r = Ch(b, {
|
|
16548
16559
|
kind: e?.data?.kind,
|
|
16549
16560
|
type: "customNode",
|
|
16550
16561
|
config: e?.data?.config,
|
|
@@ -16553,7 +16564,7 @@ var N_ = M_({
|
|
|
16553
16564
|
return r ? r.renderNode({
|
|
16554
16565
|
specification: r,
|
|
16555
16566
|
...e
|
|
16556
|
-
}) : (console.warn("node not found", e, b), /* @__PURE__ */ U(
|
|
16567
|
+
}) : (console.warn("node not found", e, b), /* @__PURE__ */ U(Jh, {
|
|
16557
16568
|
id: e.id,
|
|
16558
16569
|
specification: {
|
|
16559
16570
|
displayName: `${e.data?.kind}`,
|
|
@@ -16821,7 +16832,7 @@ var N_ = M_({
|
|
|
16821
16832
|
size: 24,
|
|
16822
16833
|
shape: "square",
|
|
16823
16834
|
style: {
|
|
16824
|
-
background: t?.color ||
|
|
16835
|
+
background: t?.color || Wh.Blue,
|
|
16825
16836
|
fontSize: 16,
|
|
16826
16837
|
lineHeight: "22px",
|
|
16827
16838
|
borderRadius: 3
|
|
@@ -17633,7 +17644,7 @@ var N_ = M_({
|
|
|
17633
17644
|
};
|
|
17634
17645
|
})]
|
|
17635
17646
|
}) });
|
|
17636
|
-
}, Sv = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: s =
|
|
17647
|
+
}, Sv = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: s = Wh.Blue, onClose: c, onContextClick: l }) => {
|
|
17637
17648
|
let u = o(), d = [
|
|
17638
17649
|
e > 0 && t !== -1 && {
|
|
17639
17650
|
key: "close",
|
|
@@ -18124,25 +18135,25 @@ var oy = (e, t = 42) => {
|
|
|
18124
18135
|
}, y = m ? p.find((e) => e.name === m.call.$call) : void 0, b = t.orphanKind, x = !!m && !y, S = L(() => !m || !m.call.$call || h.some((e) => e.value === m.call.$call) ? h : [{
|
|
18125
18136
|
value: m.call.$call,
|
|
18126
18137
|
label: m.call.$call
|
|
18127
|
-
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() => ey(e), [e]),
|
|
18138
|
+
}, ...h], [h, m]), C = L(() => y ? Object.keys(y.parameters?.properties ?? {}) : [], [y]), w = L(() => new Set(y?.parameters?.required ?? []), [y]), T = m ? i?.[m.id] : void 0, E = m ? a?.includes(m.key) ?? !1 : !1, D = L(() => ey(e), [e]), ee = L(() => m ? D.danglingDependsOn.filter((e) => e.instanceId === m.id) : [], [D, m]), O = L(() => m ? D.declaredUnused.filter((e) => e.instanceId === m.id) : [], [D, m]), te = L(() => {
|
|
18128
18139
|
if (!m) return [];
|
|
18129
18140
|
let t = new Set(m.dependsOn ?? []);
|
|
18130
18141
|
return e.filter((e) => e.id !== m.id && e.key && !t.has(e.key)).map((e) => ({
|
|
18131
18142
|
value: e.key,
|
|
18132
18143
|
label: e.key
|
|
18133
18144
|
}));
|
|
18134
|
-
}, [e, m]), [
|
|
18135
|
-
navigator.clipboard?.writeText(e).catch(() => {}),
|
|
18145
|
+
}, [e, m]), [k, ne] = z(null), [A, re] = z(null), j = (e) => {
|
|
18146
|
+
navigator.clipboard?.writeText(e).catch(() => {}), ne(e), window.setTimeout(() => ne((t) => t === e ? null : t), 1200);
|
|
18136
18147
|
}, M = (e) => {
|
|
18137
|
-
if (!m || !
|
|
18138
|
-
|
|
18148
|
+
if (!m || !A) {
|
|
18149
|
+
j(e);
|
|
18139
18150
|
return;
|
|
18140
18151
|
}
|
|
18141
18152
|
g(m.id, { call: {
|
|
18142
18153
|
...m.call,
|
|
18143
18154
|
kwargs: {
|
|
18144
18155
|
...m.call.kwargs,
|
|
18145
|
-
[
|
|
18156
|
+
[A]: {
|
|
18146
18157
|
mode: "expression",
|
|
18147
18158
|
value: e
|
|
18148
18159
|
}
|
|
@@ -18349,7 +18360,7 @@ var oy = (e, t = 42) => {
|
|
|
18349
18360
|
className: "flex flex-wrap gap-1",
|
|
18350
18361
|
"data-testid": "instance-depends-on-tags",
|
|
18351
18362
|
children: m.dependsOn.map((e) => {
|
|
18352
|
-
let t =
|
|
18363
|
+
let t = ee.some((t) => t.dep === e);
|
|
18353
18364
|
return /* @__PURE__ */ W(ys, {
|
|
18354
18365
|
className: `border font-mono text-[10px] ${t ? "border-destructive/50 bg-destructive/10 text-destructive" : "border-border bg-muted/60"}`,
|
|
18355
18366
|
children: [e, !n && /* @__PURE__ */ U("button", {
|
|
@@ -18370,17 +18381,17 @@ var oy = (e, t = 42) => {
|
|
|
18370
18381
|
onChange: (e) => {
|
|
18371
18382
|
g(m.id, { dependsOn: [...m.dependsOn ?? [], e] });
|
|
18372
18383
|
},
|
|
18373
|
-
options:
|
|
18384
|
+
options: te
|
|
18374
18385
|
}),
|
|
18375
|
-
|
|
18386
|
+
ee.map((e) => /* @__PURE__ */ U(Z.Text, {
|
|
18376
18387
|
"data-testid": `instance-depends-on-dangling-${e.dep}`,
|
|
18377
18388
|
className: "text-[11px] text-destructive",
|
|
18378
18389
|
children: u("cf.dependsOnDangling", { dep: e.dep })
|
|
18379
18390
|
}, e.dep)),
|
|
18380
|
-
|
|
18391
|
+
O.length > 0 && /* @__PURE__ */ U(Z.Text, {
|
|
18381
18392
|
"data-testid": "instance-depends-on-unused",
|
|
18382
18393
|
className: "text-[11px] opacity-60",
|
|
18383
|
-
children: u("cf.dependsOnUnused", { deps:
|
|
18394
|
+
children: u("cf.dependsOnUnused", { deps: O.map((e) => e.dep).join(", ") })
|
|
18384
18395
|
})
|
|
18385
18396
|
]
|
|
18386
18397
|
})]
|
|
@@ -18403,11 +18414,11 @@ var oy = (e, t = 42) => {
|
|
|
18403
18414
|
className: "flex flex-wrap gap-1",
|
|
18404
18415
|
children: ie.map((e) => /* @__PURE__ */ W("button", {
|
|
18405
18416
|
type: "button",
|
|
18406
|
-
title:
|
|
18417
|
+
title: A ? u("cf.referenceInsert", { param: A }) : u("cf.referenceCopy"),
|
|
18407
18418
|
"data-testid": `reference-chip-${e.ref}`,
|
|
18408
18419
|
className: "cursor-pointer rounded-sm border border-border bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] hover:bg-muted/80",
|
|
18409
18420
|
onClick: () => M(e.ref),
|
|
18410
|
-
children: [e.ref,
|
|
18421
|
+
children: [e.ref, k === e.ref && /* @__PURE__ */ U("span", {
|
|
18411
18422
|
className: "ml-1 opacity-60",
|
|
18412
18423
|
children: u("cf.referenceCopied")
|
|
18413
18424
|
})]
|
|
@@ -18443,8 +18454,8 @@ var oy = (e, t = 42) => {
|
|
|
18443
18454
|
let t = y.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a = Qf(m.call.kwargs[e]);
|
|
18444
18455
|
return /* @__PURE__ */ W("div", {
|
|
18445
18456
|
"data-testid": `param-row-${e}`,
|
|
18446
|
-
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md",
|
|
18447
|
-
onClick: () =>
|
|
18457
|
+
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md", A === e && "bg-[var(--seal-color-warning-bg)]"),
|
|
18458
|
+
onClick: () => re(e),
|
|
18448
18459
|
children: [/* @__PURE__ */ W("div", {
|
|
18449
18460
|
className: "flex min-w-0 items-center gap-1",
|
|
18450
18461
|
children: [
|
|
@@ -18553,7 +18564,7 @@ var oy = (e, t = 42) => {
|
|
|
18553
18564
|
}),
|
|
18554
18565
|
...e?.dependsOn ? { dependsOn: e.dependsOn } : {}
|
|
18555
18566
|
};
|
|
18556
|
-
}), [f, l]),
|
|
18567
|
+
}), [f, l]), ee = (n) => {
|
|
18557
18568
|
r.updateNode(e, (e) => (e.content.config.expressions = n.map((e) => ({
|
|
18558
18569
|
id: e.id,
|
|
18559
18570
|
key: e.key,
|
|
@@ -18564,21 +18575,21 @@ var oy = (e, t = 42) => {
|
|
|
18564
18575
|
user: t ?? "",
|
|
18565
18576
|
proj: t ?? ""
|
|
18566
18577
|
}, e));
|
|
18567
|
-
}, [
|
|
18568
|
-
|
|
18578
|
+
}, [O, te] = z("table"), [k, ne] = z(null), [A, re] = z(null), j = () => {
|
|
18579
|
+
ne(JSON.stringify(f ?? [], null, 2)), re(null), te("code");
|
|
18569
18580
|
}, M = () => {
|
|
18570
|
-
if (
|
|
18571
|
-
let e = JSON.parse(
|
|
18581
|
+
if (k !== null) try {
|
|
18582
|
+
let e = JSON.parse(k);
|
|
18572
18583
|
if (!Array.isArray(e)) {
|
|
18573
|
-
|
|
18584
|
+
re("Expected an array");
|
|
18574
18585
|
return;
|
|
18575
18586
|
}
|
|
18576
|
-
|
|
18587
|
+
te("table"), re(null), E(e);
|
|
18577
18588
|
} catch {
|
|
18578
|
-
|
|
18589
|
+
re("Invalid JSON");
|
|
18579
18590
|
}
|
|
18580
18591
|
}, ie = () => {
|
|
18581
|
-
|
|
18592
|
+
te("table"), ne(null), re(null);
|
|
18582
18593
|
};
|
|
18583
18594
|
return /* @__PURE__ */ W("div", {
|
|
18584
18595
|
className: "flex h-full flex-col overflow-hidden",
|
|
@@ -18648,35 +18659,35 @@ var oy = (e, t = 42) => {
|
|
|
18648
18659
|
className: "flex items-center gap-1",
|
|
18649
18660
|
children: [/* @__PURE__ */ U(Y, {
|
|
18650
18661
|
size: "small",
|
|
18651
|
-
type:
|
|
18662
|
+
type: O === "table" ? "primary" : "default",
|
|
18652
18663
|
className: "!px-2",
|
|
18653
18664
|
onClick: () => ie(),
|
|
18654
18665
|
children: u("cf.modeTable")
|
|
18655
18666
|
}), /* @__PURE__ */ U(Y, {
|
|
18656
18667
|
size: "small",
|
|
18657
|
-
type:
|
|
18668
|
+
type: O === "code" ? "primary" : "default",
|
|
18658
18669
|
className: "!px-2",
|
|
18659
|
-
onClick:
|
|
18670
|
+
onClick: j,
|
|
18660
18671
|
children: u("cf.modeCode")
|
|
18661
18672
|
})]
|
|
18662
18673
|
})
|
|
18663
18674
|
}),
|
|
18664
|
-
|
|
18675
|
+
O === "code" && /* @__PURE__ */ W("div", {
|
|
18665
18676
|
className: "mx-3 mt-2 flex min-h-[320px] flex-1 flex-col overflow-hidden rounded-md border border-border",
|
|
18666
18677
|
children: [/* @__PURE__ */ U("textarea", {
|
|
18667
18678
|
"data-testid": "function-code-editor",
|
|
18668
18679
|
className: "min-h-0 flex-1 resize-none bg-[var(--card)] p-3 font-mono text-xs text-foreground",
|
|
18669
|
-
value:
|
|
18670
|
-
onChange: (e) =>
|
|
18680
|
+
value: k ?? JSON.stringify(f ?? [], null, 2),
|
|
18681
|
+
onChange: (e) => ne(e.target.value),
|
|
18671
18682
|
onBlur: M,
|
|
18672
18683
|
disabled: i,
|
|
18673
18684
|
spellCheck: !1
|
|
18674
|
-
}),
|
|
18685
|
+
}), A && /* @__PURE__ */ U("div", {
|
|
18675
18686
|
className: "border-t border-destructive/40 bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
18676
|
-
children:
|
|
18687
|
+
children: A
|
|
18677
18688
|
})]
|
|
18678
18689
|
}),
|
|
18679
|
-
|
|
18690
|
+
O === "table" && /* @__PURE__ */ W(H, { children: [
|
|
18680
18691
|
C.length > 0 && /* @__PURE__ */ W(wv, {
|
|
18681
18692
|
variant: "warning",
|
|
18682
18693
|
"data-testid": "dollar-form-band",
|
|
@@ -18774,7 +18785,7 @@ var oy = (e, t = 42) => {
|
|
|
18774
18785
|
duplicateKeys: y,
|
|
18775
18786
|
outputsByKey: c,
|
|
18776
18787
|
schedule: T,
|
|
18777
|
-
onChange:
|
|
18788
|
+
onChange: ee
|
|
18778
18789
|
})
|
|
18779
18790
|
})
|
|
18780
18791
|
] })
|
|
@@ -18882,7 +18893,7 @@ var oy = (e, t = 42) => {
|
|
|
18882
18893
|
className: V(["relative h-full w-full flex-1 min-h-0 bg-[var(--seal-color-bg-container)] outline-none focus:outline-none focus-within:outline-none", n === t?.id ? "flex flex-col" : "hidden"]),
|
|
18883
18894
|
children: /* @__PURE__ */ U("div", {
|
|
18884
18895
|
className: "flex min-h-0 w-full flex-1 flex-col overflow-hidden [&>*]:h-full",
|
|
18885
|
-
children: q(t?.type).with(Q.DecisionTable, () =>
|
|
18896
|
+
children: q(t?.type).with(Q.DecisionTable, () => ng?.renderTab?.({
|
|
18886
18897
|
id: t?.id,
|
|
18887
18898
|
user: i,
|
|
18888
18899
|
disabled: a,
|
|
@@ -18892,7 +18903,7 @@ var oy = (e, t = 42) => {
|
|
|
18892
18903
|
user: i,
|
|
18893
18904
|
disabled: a,
|
|
18894
18905
|
node: t
|
|
18895
|
-
})).with(Q.Expression, () =>
|
|
18906
|
+
})).with(Q.Expression, () => kg?.renderTab?.({
|
|
18896
18907
|
id: t?.id,
|
|
18897
18908
|
user: i,
|
|
18898
18909
|
disabled: a,
|
|
@@ -18917,7 +18928,7 @@ var oy = (e, t = 42) => {
|
|
|
18917
18928
|
node: t
|
|
18918
18929
|
});
|
|
18919
18930
|
if (t.kind) {
|
|
18920
|
-
let n =
|
|
18931
|
+
let n = Ch(o, t);
|
|
18921
18932
|
return n?.renderTab ? n.renderTab({
|
|
18922
18933
|
id: t.id,
|
|
18923
18934
|
user: i,
|
|
@@ -18960,6 +18971,7 @@ var oy = (e, t = 42) => {
|
|
|
18960
18971
|
color: e.color,
|
|
18961
18972
|
displayName: e.displayName,
|
|
18962
18973
|
group: e.group,
|
|
18974
|
+
documentationUrl: e.documentationUrl,
|
|
18963
18975
|
shortDescription: e.shortDescription,
|
|
18964
18976
|
searchKeywords: e.searchKeywords,
|
|
18965
18977
|
meta: e.meta,
|
|
@@ -18970,7 +18982,7 @@ var oy = (e, t = 42) => {
|
|
|
18970
18982
|
onNodeAdd: e.onNodeAdd,
|
|
18971
18983
|
renderNode: e.renderNode ? e.renderNode : ({ id: t, specification: n, data: r, selected: i }) => {
|
|
18972
18984
|
let [a, s] = z(!1), c = o(), { updateNode: l, openTab: u } = nh(), d = $((e) => (e.decisionGraph?.nodes || []).find((e) => e.id === t))?.content?.config;
|
|
18973
|
-
return /* @__PURE__ */ U(
|
|
18985
|
+
return /* @__PURE__ */ U(Jh, {
|
|
18974
18986
|
id: t,
|
|
18975
18987
|
specification: n,
|
|
18976
18988
|
name: r.name,
|
|
@@ -19158,7 +19170,7 @@ var Oy = Le(() => import("./simulate-run-detail-qZE4KheI.js").then((e) => ({ def
|
|
|
19158
19170
|
className: "font-mono opacity-70",
|
|
19159
19171
|
children: new Date(t.ts).toLocaleTimeString("en-GB")
|
|
19160
19172
|
}),
|
|
19161
|
-
/* @__PURE__ */ U(
|
|
19173
|
+
/* @__PURE__ */ U(Bh, {
|
|
19162
19174
|
size: "xs",
|
|
19163
19175
|
variant: t.ok ? "outline" : "destructive",
|
|
19164
19176
|
className: t.ok ? "border-success/40 text-success" : void 0,
|
|
@@ -19570,8 +19582,8 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19570
19582
|
let { decisionGraph: i } = o.getState(), m = i.nodes.find((e) => e.id === p.nodeId);
|
|
19571
19583
|
if (!m) return l || B.error(e("simulator.boundRequestNodeNotFound")), null;
|
|
19572
19584
|
let h = d(m.content), g = r;
|
|
19573
|
-
if ((u ?
|
|
19574
|
-
let _ =
|
|
19585
|
+
if ((u ? te(g, h) : []).length > 0) return l || B.warning(e("request.dataTypeMismatchWarning")), null;
|
|
19586
|
+
let _ = k(g, h);
|
|
19575
19587
|
return c({
|
|
19576
19588
|
activeExampleBinding: p,
|
|
19577
19589
|
preparedParsed: _,
|
|
@@ -19674,16 +19686,16 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19674
19686
|
inputNodeId: p,
|
|
19675
19687
|
simulatorExampleBinding: u,
|
|
19676
19688
|
dataLabel: a("request.dataLabel")
|
|
19677
|
-
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited:
|
|
19689
|
+
}), { requestValue: T, setRequestValue: E, userHasEdited: D, setUserHasEdited: ee, isApplyingExternalRequest: te } = Wy({
|
|
19678
19690
|
defaultRequest: i,
|
|
19679
19691
|
simulatorRequest: l,
|
|
19680
19692
|
currentBindingIdentity: b,
|
|
19681
19693
|
onExternalChange: e
|
|
19682
|
-
}),
|
|
19694
|
+
}), ne = (e) => {
|
|
19683
19695
|
let t = m[e];
|
|
19684
19696
|
if (!p || !t) return;
|
|
19685
19697
|
M();
|
|
19686
|
-
let n =
|
|
19698
|
+
let n = O(t.data, x), r = k(n, x), i = JSON.stringify(r, null, 2);
|
|
19687
19699
|
c.setSimulatorRequest(i), c.setSimulatorExampleBinding({
|
|
19688
19700
|
nodeId: p,
|
|
19689
19701
|
sourceIndex: e,
|
|
@@ -19692,7 +19704,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19692
19704
|
};
|
|
19693
19705
|
I(() => {
|
|
19694
19706
|
if (!_ || (p && g >= 0 && y && (u?.nodeId !== p || u.sourceIndex !== g || u.sourceName !== _.name) && c.setSimulatorExampleBinding(y), D)) return;
|
|
19695
|
-
let t =
|
|
19707
|
+
let t = O(_.data, x), n = JSON.stringify(k(t, x), null, 2);
|
|
19696
19708
|
n && n !== T && (E(n), c.setSimulatorRequest(n), e?.(n));
|
|
19697
19709
|
}, [
|
|
19698
19710
|
c,
|
|
@@ -19713,20 +19725,20 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19713
19725
|
c.setNodeType(t.id, Zm.InferredOutput, new zn(e));
|
|
19714
19726
|
} catch {}
|
|
19715
19727
|
}, [T]);
|
|
19716
|
-
let { persistRequestToExampleSource:
|
|
19728
|
+
let { persistRequestToExampleSource: A } = By({
|
|
19717
19729
|
t: a,
|
|
19718
19730
|
requestValue: T,
|
|
19719
19731
|
resolvedSimulatorExampleBinding: y,
|
|
19720
19732
|
onRequestValueChange: E,
|
|
19721
|
-
onMarkEdited: () =>
|
|
19733
|
+
onMarkEdited: () => ee(!0),
|
|
19722
19734
|
onExternalChange: e
|
|
19723
|
-
}),
|
|
19735
|
+
}), j = JSON.stringify(m.map((e) => e.data)), { flush: M } = Hy({
|
|
19724
19736
|
enabled: !!(t && y),
|
|
19725
19737
|
requestValue: T,
|
|
19726
|
-
requestSourcesSignature:
|
|
19738
|
+
requestSourcesSignature: j,
|
|
19727
19739
|
boundRequestSourceIndex: h,
|
|
19728
19740
|
onSyncToSchema: () => {
|
|
19729
|
-
|
|
19741
|
+
A({
|
|
19730
19742
|
validateDefinitionTypes: !1,
|
|
19731
19743
|
silentWhenUnbound: !0,
|
|
19732
19744
|
showSuccessMessage: !1,
|
|
@@ -19736,7 +19748,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19736
19748
|
},
|
|
19737
19749
|
onPushToEditor: () => {
|
|
19738
19750
|
if (h < 0 || !m[h]) return;
|
|
19739
|
-
let e =
|
|
19751
|
+
let e = O(m[h].data, x), t = k(e, x);
|
|
19740
19752
|
c.setSimulatorRequest(JSON.stringify(t, null, 2));
|
|
19741
19753
|
}
|
|
19742
19754
|
});
|
|
@@ -19748,11 +19760,11 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19748
19760
|
bindingName: C,
|
|
19749
19761
|
hasInputNode: t,
|
|
19750
19762
|
loading: n,
|
|
19751
|
-
onSourceChange:
|
|
19763
|
+
onSourceChange: ne,
|
|
19752
19764
|
onFormat: () => {
|
|
19753
19765
|
try {
|
|
19754
|
-
let t = ti.parse(T || ""), n =
|
|
19755
|
-
E(r),
|
|
19766
|
+
let t = ti.parse(T || ""), n = re(t), r = JSON.stringify(n, null, 2);
|
|
19767
|
+
E(r), ee(!0), c.setSimulatorRequest(r), e?.(r), B.success(a("simulator.formatSuccess"));
|
|
19756
19768
|
} catch {
|
|
19757
19769
|
B.error(a("simulator.formatFailed"));
|
|
19758
19770
|
}
|
|
@@ -19791,10 +19803,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19791
19803
|
children: /* @__PURE__ */ U(Py, {
|
|
19792
19804
|
value: T,
|
|
19793
19805
|
onChange: (t) => {
|
|
19794
|
-
E(t),
|
|
19806
|
+
E(t), ee(!0), c.setSimulatorRequest(t ?? ""), e?.(t ?? "");
|
|
19795
19807
|
}
|
|
19796
19808
|
})
|
|
19797
|
-
}),
|
|
19809
|
+
}), te && /* @__PURE__ */ U("div", {
|
|
19798
19810
|
className: "absolute inset-0 z-10 flex items-center justify-center bg-background/40",
|
|
19799
19811
|
children: /* @__PURE__ */ U($o, { size: "small" })
|
|
19800
19812
|
})]
|
|
@@ -19802,7 +19814,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19802
19814
|
}, Ky = /* @__PURE__ */ function(e) {
|
|
19803
19815
|
return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e.Runs = "Runs", e;
|
|
19804
19816
|
}(Ky || {}), qy = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, runsPersistenceKey: s, leftPanel: c = Gy }) => {
|
|
19805
|
-
let l = o(), [u, d] =
|
|
19817
|
+
let l = o(), [u, d] = Rh("simulation.search", ""), [f, p] = Rh("simulation.segment", "Output"), { viewConfig: m } = $((e) => ({ viewConfig: e.viewConfig })), { actions: h } = rh(), { nodeTypes: g, simulate: _, hasInputNode: v } = $(({ decisionGraph: e, simulate: t }) => ({
|
|
19806
19818
|
simulate: t,
|
|
19807
19819
|
hasInputNode: e.nodes.some((e) => e.type === Q.Input),
|
|
19808
19820
|
nodeTypes: (e.nodes ?? []).reduce((e, t) => ({
|
|
@@ -20448,7 +20460,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20448
20460
|
Info: 2,
|
|
20449
20461
|
Warning: 4,
|
|
20450
20462
|
Error: 8
|
|
20451
|
-
}, Cb = ({ disabled: e = !1, disableDebug: t, language: n = "javascript", defaultValue: r, value: i, onChange: a, trace: o, onMonacoReady: s, onEditorMount: c, error: l, inputData: u, previousValue: d, permission: f = "edit:full", libraries: p =
|
|
20463
|
+
}, Cb = ({ disabled: e = !1, disableDebug: t, language: n = "javascript", defaultValue: r, value: i, onChange: a, trace: o, onMonacoReady: s, onEditorMount: c, error: l, inputData: u, previousValue: d, permission: f = "edit:full", libraries: p = gh }) => {
|
|
20452
20464
|
let m = ra(), h = R(!1), g = fc(), [_, v] = z(), [y, b] = z(), x = Mi((e) => {
|
|
20453
20465
|
a?.(e);
|
|
20454
20466
|
}, 100), [S, C] = z(), [w, T] = z(), E = Ni(() => S?.layout(), 100, { trailing: !0 }), D = Ni(() => w?.layout(), 100, { trailing: !0 });
|
|
@@ -20467,10 +20479,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20467
20479
|
noSemanticValidation: !1,
|
|
20468
20480
|
noSuggestionDiagnostics: !1,
|
|
20469
20481
|
onlyVisible: !1
|
|
20470
|
-
}), m.languages.typescript.javascriptDefaults.setExtraLibs(
|
|
20482
|
+
}), m.languages.typescript.javascriptDefaults.setExtraLibs(gh.map((e) => ({
|
|
20471
20483
|
content: `declare module '${e.name}' { ${e.typeDef} }`,
|
|
20472
20484
|
filePath: e.name
|
|
20473
|
-
}))), Object.entries(
|
|
20485
|
+
}))), Object.entries(_h.globals).forEach(([e, t]) => {
|
|
20474
20486
|
m.languages.typescript.javascriptDefaults.addExtraLib(t, `ts:${e}`);
|
|
20475
20487
|
}), s?.(m));
|
|
20476
20488
|
}, [m, p]), I(() => {
|
|
@@ -20570,7 +20582,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20570
20582
|
}), !t && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(sa, {}), /* @__PURE__ */ U(aa, {
|
|
20571
20583
|
minSize: 25,
|
|
20572
20584
|
children: !t && /* @__PURE__ */ U(vb, {
|
|
20573
|
-
libraries:
|
|
20585
|
+
libraries: p,
|
|
20574
20586
|
trace: o,
|
|
20575
20587
|
editor: S,
|
|
20576
20588
|
editorValue: i,
|
|
@@ -20598,6 +20610,6 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20598
20610
|
//#region src/index.ts
|
|
20599
20611
|
typeof document < "u" && !document.querySelector(".seal-root") && console.warn("[seal-editor] LEGACY token injection is active (no .seal-root wrapper found) — wrap your app in .seal-root before v2.0. See ADR-023.");
|
|
20600
20612
|
//#endregion
|
|
20601
|
-
export { Vy as AUTO_SYNC_DEBOUNCE_MS, xe as COLUMN_FIELD_TYPE_OPTIONS, nf as CodeEditor, ly as CustomFunctionTable, he as CustomKind, ye as DECISION_GRAPH_CONTENT_TYPE, gy as DecisionGraph, Cm as DecisionTable, hc as DictionaryProvider, rm as DiffAutosizeTextArea, nm as DiffCodeEditor, cm as DiffIcon, em as DiffInput, Zp as DiffRadio, tm as DiffSelect, $p as DiffSwitch,
|
|
20613
|
+
export { Vy as AUTO_SYNC_DEBOUNCE_MS, xe as COLUMN_FIELD_TYPE_OPTIONS, nf as CodeEditor, ly as CustomFunctionTable, he as CustomKind, ye as DECISION_GRAPH_CONTENT_TYPE, gy as DecisionGraph, Cm as DecisionTable, hc as DictionaryProvider, rm as DiffAutosizeTextArea, nm as DiffCodeEditor, cm as DiffIcon, em as DiffInput, Zp as DiffRadio, tm as DiffSelect, $p as DiffSwitch, Cg as Expression, Lf as ExpressionBuilder, rb as FixturesPanel, Cb as Function, Gh as GraphDecisionNode, Jh as GraphNode, qy as GraphSimulator, s as I18nProvider, p as INPUT_CONTRACT_VERSION, cy as InstanceEditor, gc as JdmConfigProvider, qs as MODE_EXTRAS, Wh as NodeColor, ue as NodeKind, Zm as NodeTypeKind, M as OUTPUT_FIELD_TYPE_OPTIONS, Py as SimulatorEditor, u_ as TabRequest, fy as ToolbarAnchor, $f as TypedInput, Dh as addStrikethrough, ge as anyNodeSchema, f as applySchemaTextToInputContract, Oh as buildDiffString, b as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, C_ as calculateDiffGraph, uy as clusterToolbarItems, pd as codemirror, Qf as coerceToTypedValue, be as columnEnumSchema, N as columnFieldTypeSchema, Ah as compareAndUnifyLists, kh as compareStringFields, C as computeExampleDrift, tb as computeGraphDiff, fe as contractExamplesToSources, _y as createJdmNode, a as createT, pe as customNodeSchema, Ys as darkTokens, Se as decisionModelSchema, ae as decisionNodeSchema, se as decisionTableSchema, wh as definePack, _e as edgeSchema, Ns as ensureWasmLoaded, me as expressionNodeSchema, le as functionNodeSchema, d as getRequestDefinitions, g as getRequestExampleSources, y as getRequestSchemaSourceValue, de as hasExampleDrift, ce as inputNodeSchema, ab as jsonSchemaToVariableType, Js as lightTokens, x as migrateRequestExampleDataByDefinitions, j as nodeSchema, N_ as nodeSpecification, we as normalizeRequestDefinitionOrders, ne as normalizeRequestFieldKey, re as normalizeRequestJsonKeys, Ce as outputFieldTypeSchema, Ee as outputNodeSchema, T_ as processEdges, w_ as processNodes, w as readRequestInputContract, m as requestSchemaFingerprint, Ch as resolveCustomNode, v as resolveRequestSchemaValue, ld as setUdfCompletions, A as stringifyRequestSchemaValue, ie as switchNodeSchema, h as updateRequestSchemaExamples, nh as useDecisionGraphActions, eh as useDecisionGraphListeners, rh as useDecisionGraphRaw, th as useDecisionGraphReferences, $ as useDecisionGraphState, mc as useDictionaries, ah as useEdgeDiff, uh as useGraphSerializer, ih as useNodeDiff, Eh as useNodeType, Rh as usePersistentState, Hy as useSimulatorAutoSync, o as useT, dh as useTabSerializer, fc as useThemeMode, Ps as useWasmReady, Te as validationSchema, _ as writeRequestInputContract };
|
|
20602
20614
|
|
|
20603
20615
|
//# sourceMappingURL=index.js.map
|