@republicroad/seal-editor 1.35.1 → 1.36.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 +382 -372
- package/dist/index.js.map +1 -1
- package/dist/style.css +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 O, U as k, V as ee, W as A, X as te, Y 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 O, U as k, V as ee, W as A, X as te, Y as ne, 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";
|
|
@@ -847,7 +847,7 @@ var _o = (e, t, n) => (e ?? []).filter((e) => !!e).map((e, r) => {
|
|
|
847
847
|
}), /* @__PURE__ */ U(n.SubContent, { children: _o(e.children, t, n) })] }, i) : /* @__PURE__ */ W(n.Item, {
|
|
848
848
|
disabled: e.disabled,
|
|
849
849
|
variant: e.danger ? "destructive" : "default",
|
|
850
|
-
|
|
850
|
+
onClick: () => (e.onClick ?? t)?.({ key: i }),
|
|
851
851
|
children: [e.icon, e.label]
|
|
852
852
|
}, i);
|
|
853
853
|
}) ?? null, vo = {
|
|
@@ -1136,13 +1136,16 @@ function Bo({ className: e, align: t = "center", alignOffset: n, side: i = "bott
|
|
|
1136
1136
|
}
|
|
1137
1137
|
//#endregion
|
|
1138
1138
|
//#region src/components/primitives/popover.tsx
|
|
1139
|
-
var Vo = ({ open: e, onOpenChange: t, content: n,
|
|
1139
|
+
var Vo = ({ open: e, onOpenChange: t, content: n, overlayClassName: r, children: i }) => /* @__PURE__ */ W(Ro, {
|
|
1140
1140
|
open: e,
|
|
1141
1141
|
onOpenChange: t,
|
|
1142
1142
|
children: [/* @__PURE__ */ U(zo, { render: /* @__PURE__ */ U("span", {
|
|
1143
1143
|
className: "inline-flex",
|
|
1144
|
-
children:
|
|
1145
|
-
}) }), /* @__PURE__ */ U(Bo, {
|
|
1144
|
+
children: i
|
|
1145
|
+
}) }), /* @__PURE__ */ U(Bo, {
|
|
1146
|
+
className: r,
|
|
1147
|
+
children: n
|
|
1148
|
+
})]
|
|
1146
1149
|
}), Ho = Oe.createContext({ setValue: () => {} }), Uo = Object.assign(({ value: e, disabled: t, className: n, style: i, children: a }) => {
|
|
1147
1150
|
let { value: o, setValue: s } = Oe.useContext(Ho), c = o !== void 0 && String(o) === String(e);
|
|
1148
1151
|
return /* @__PURE__ */ W("label", {
|
|
@@ -3498,10 +3501,10 @@ function Ll(e, t, n, r = !1) {
|
|
|
3498
3501
|
E(S);
|
|
3499
3502
|
}, te = () => {
|
|
3500
3503
|
E(S);
|
|
3501
|
-
},
|
|
3502
|
-
return a ? (o.addEventListener("touchmove", k,
|
|
3504
|
+
}, ne = { passive: !1 };
|
|
3505
|
+
return a ? (o.addEventListener("touchmove", k, ne), o.addEventListener("touchend", ee, ne), o.addEventListener("touchcancel", A), w.push(() => {
|
|
3503
3506
|
o.removeEventListener("touchmove", k), o.removeEventListener("touchend", ee), o.removeEventListener("touchcancel", A);
|
|
3504
|
-
})) : (o.addEventListener("mousemove", D,
|
|
3507
|
+
})) : (o.addEventListener("mousemove", D, ne), o.addEventListener("mouseup", O, ne), w.push(() => {
|
|
3505
3508
|
o.removeEventListener("mousemove", D), o.removeEventListener("mouseup", O);
|
|
3506
3509
|
})), s && (s.addEventListener("blur", te), w.push(() => s.removeEventListener("blur", te))), n.setColumnResizing((e) => ({
|
|
3507
3510
|
...e,
|
|
@@ -4237,32 +4240,32 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4237
4240
|
};
|
|
4238
4241
|
};
|
|
4239
4242
|
return [...i ?? [Xr], e];
|
|
4240
|
-
}, [i]), { estimateSize: D = 38, overscan: O = 8, minRows: k = 1, scrollElementRef: ee } = f ?? {}, A = m.getRowModel().rows.length, te = f != null && A >= k, [
|
|
4243
|
+
}, [i]), { estimateSize: D = 38, overscan: O = 8, minRows: k = 1, scrollElementRef: ee } = f ?? {}, A = m.getRowModel().rows.length, te = f != null && A >= k, [ne, re] = z(null);
|
|
4241
4244
|
I(() => {
|
|
4242
|
-
f &&
|
|
4245
|
+
f && re(ee?.current ?? yu(g.current));
|
|
4243
4246
|
}, [
|
|
4244
4247
|
f,
|
|
4245
4248
|
ee,
|
|
4246
4249
|
te
|
|
4247
4250
|
]);
|
|
4248
|
-
let [
|
|
4251
|
+
let [j, M] = z(0);
|
|
4249
4252
|
I(() => {
|
|
4250
|
-
if (!te || !
|
|
4253
|
+
if (!te || !ne || ne.offsetHeight > 0) return;
|
|
4251
4254
|
let e, t = 0, n = () => {
|
|
4252
|
-
if (
|
|
4255
|
+
if (ne.offsetHeight > 0) {
|
|
4253
4256
|
M((e) => e + 1);
|
|
4254
4257
|
return;
|
|
4255
4258
|
}
|
|
4256
4259
|
++t > 100 || (e = setTimeout(n, 120));
|
|
4257
4260
|
};
|
|
4258
4261
|
return e = setTimeout(n, 120), () => clearTimeout(e);
|
|
4259
|
-
}, [te,
|
|
4260
|
-
if (
|
|
4261
|
-
|
|
4262
|
-
let e = setTimeout(() => ne
|
|
4262
|
+
}, [te, ne]), I(() => {
|
|
4263
|
+
if (j > 0 && ne) {
|
|
4264
|
+
re(null);
|
|
4265
|
+
let e = setTimeout(() => re(ne), 0);
|
|
4263
4266
|
return () => clearTimeout(e);
|
|
4264
4267
|
}
|
|
4265
|
-
}, [
|
|
4268
|
+
}, [j]);
|
|
4266
4269
|
let ie = F((e, t, n) => {
|
|
4267
4270
|
if (t?.borderBoxSize?.[0] && t.borderBoxSize[0].blockSize === 0) {
|
|
4268
4271
|
let t = n.indexFromElement(e), r = n.options.getItemKey(t);
|
|
@@ -4273,7 +4276,7 @@ function Eu({ handleDragEnd: e, dataIds: t, footerContent: n, collisionDetection
|
|
|
4273
4276
|
oe.current = N;
|
|
4274
4277
|
let se = $r({
|
|
4275
4278
|
count: te ? A : 0,
|
|
4276
|
-
getScrollElement: () =>
|
|
4279
|
+
getScrollElement: () => ne,
|
|
4277
4280
|
getItemKey: (e) => String(t[e] ?? e),
|
|
4278
4281
|
estimateSize: () => D,
|
|
4279
4282
|
overscan: O,
|
|
@@ -4723,7 +4726,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4723
4726
|
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, O] = z({
|
|
4724
4727
|
containerElement: null,
|
|
4725
4728
|
scrollElement: null
|
|
4726
|
-
}), { estimateSize: k, getItemKey: ee, getScrollElement: A, measureElement: te, overscan:
|
|
4729
|
+
}), { estimateSize: k, getItemKey: ee, getScrollElement: A, measureElement: te, overscan: ne, ...re } = h ?? {}, j = h?.enabled !== !1, M = v.fetchingMoreMessage || v.loadingMessage || g.labels.loading, ie = v.allRowsLoadedMessage || g.labels.allRowsLoaded, N = F((e) => {
|
|
4727
4730
|
O({
|
|
4728
4731
|
containerElement: e,
|
|
4729
4732
|
scrollElement: e ? Nl(e) ?? e : null
|
|
@@ -4743,9 +4746,9 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4743
4746
|
getScrollElement: oe,
|
|
4744
4747
|
getItemKey: se,
|
|
4745
4748
|
estimateSize: ce,
|
|
4746
|
-
overscan:
|
|
4749
|
+
overscan: ne ?? n,
|
|
4747
4750
|
measureElement: te,
|
|
4748
|
-
...
|
|
4751
|
+
...re
|
|
4749
4752
|
}), 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
4753
|
horizontal: !0,
|
|
4751
4754
|
isRtl: ue,
|
|
@@ -4768,7 +4771,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4768
4771
|
let me = S ? pe.getVirtualItems() : [], he = S && me.length > 0 ? {
|
|
4769
4772
|
start: me[0].index,
|
|
4770
4773
|
end: me[me.length - 1].index
|
|
4771
|
-
} : void 0, ge =
|
|
4774
|
+
} : void 0, ge = j ? le.getVirtualItems() : [], _e = j ? le.getTotalSize() : 0, ve = j && te ? 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
4775
|
I(() => {
|
|
4773
4776
|
if (!S || c === void 0 || c < 0 || c >= x.length || !D.scrollElement) return;
|
|
4774
4777
|
let e = {
|
|
@@ -4799,7 +4802,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4799
4802
|
behavior: "auto",
|
|
4800
4803
|
scrollElement: e,
|
|
4801
4804
|
targetTop: e.scrollTop,
|
|
4802
|
-
virtualizer:
|
|
4805
|
+
virtualizer: j ? le : void 0
|
|
4803
4806
|
});
|
|
4804
4807
|
}
|
|
4805
4808
|
return;
|
|
@@ -4811,7 +4814,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4811
4814
|
behavior: r,
|
|
4812
4815
|
containerElement: n,
|
|
4813
4816
|
headerSticky: o,
|
|
4814
|
-
isVirtualizationEnabled:
|
|
4817
|
+
isVirtualizationEnabled: j,
|
|
4815
4818
|
rowId: be,
|
|
4816
4819
|
rowIndex: a,
|
|
4817
4820
|
scrollElement: t
|
|
@@ -4825,18 +4828,18 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4825
4828
|
headerSticky: o,
|
|
4826
4829
|
rowIndex: a,
|
|
4827
4830
|
scrollElement: t,
|
|
4828
|
-
virtualizer:
|
|
4831
|
+
virtualizer: j ? le : void 0
|
|
4829
4832
|
})) {
|
|
4830
4833
|
Ce.current = s;
|
|
4831
4834
|
return;
|
|
4832
4835
|
}
|
|
4833
|
-
|
|
4836
|
+
j && (Se.current = a, Ce.current = s, le.scrollToIndex(a, {
|
|
4834
4837
|
align: i,
|
|
4835
4838
|
behavior: r
|
|
4836
4839
|
}));
|
|
4837
4840
|
}
|
|
4838
4841
|
}), I(() => {
|
|
4839
|
-
|
|
4842
|
+
j && a !== void 0 && Se.current === a && xe && Hu({
|
|
4840
4843
|
align: i,
|
|
4841
4844
|
behavior: "auto",
|
|
4842
4845
|
cancelPendingScroll: !0,
|
|
@@ -4847,7 +4850,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4847
4850
|
virtualizer: le
|
|
4848
4851
|
}) && (Se.current = null);
|
|
4849
4852
|
}, [
|
|
4850
|
-
|
|
4853
|
+
j,
|
|
4851
4854
|
v.tableLayout?.headerSticky,
|
|
4852
4855
|
u,
|
|
4853
4856
|
oe,
|
|
@@ -4857,7 +4860,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4857
4860
|
le,
|
|
4858
4861
|
D.containerElement
|
|
4859
4862
|
]), I(() => {
|
|
4860
|
-
if (!
|
|
4863
|
+
if (!j || !E || p === !1 || f) return;
|
|
4861
4864
|
let e = ge[ge.length - 1];
|
|
4862
4865
|
e && we.current !== w.length && e.index >= w.length - 1 - ye && (we.current = w.length, d?.());
|
|
4863
4866
|
}, [
|
|
@@ -4865,7 +4868,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4865
4868
|
p,
|
|
4866
4869
|
f,
|
|
4867
4870
|
E,
|
|
4868
|
-
|
|
4871
|
+
j,
|
|
4869
4872
|
d,
|
|
4870
4873
|
ye,
|
|
4871
4874
|
ge
|
|
@@ -4937,7 +4940,7 @@ function Xu({ height: e, estimateSize: t = 48, overscan: n = 10, scrollBehavior:
|
|
|
4937
4940
|
bottomRows: T,
|
|
4938
4941
|
virtualItems: ge,
|
|
4939
4942
|
totalSize: _e,
|
|
4940
|
-
isVirtualizationEnabled:
|
|
4943
|
+
isVirtualizationEnabled: j,
|
|
4941
4944
|
isInfiniteMode: E,
|
|
4942
4945
|
isFetchingMore: f,
|
|
4943
4946
|
hasMore: p,
|
|
@@ -7341,6 +7344,7 @@ var Xd = (e, t) => {
|
|
|
7341
7344
|
});
|
|
7342
7345
|
}, lp = ({ value: e, onSubmit: t, onRemove: n, disabled: r, open: i, onOpenChange: a, triggerClassName: o, children: s, mode: c = "edit", trigger: l }) => /* @__PURE__ */ U(Vo, {
|
|
7343
7346
|
placement: "bottomLeft",
|
|
7347
|
+
overlayClassName: "z-[60]",
|
|
7344
7348
|
trigger: ["click"],
|
|
7345
7349
|
destroyTooltipOnHide: !0,
|
|
7346
7350
|
arrow: !1,
|
|
@@ -7408,16 +7412,16 @@ var Xd = (e, t) => {
|
|
|
7408
7412
|
className: "mb-1.5 block text-xs font-medium text-muted-foreground",
|
|
7409
7413
|
children: e
|
|
7410
7414
|
}), 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"), O = c?.type === "string" ? c.enum : void 0, [k, ee] = z(ap(O)), [A, te] = z(O?.type === "inline" ? sp(O.values) : ""), [
|
|
7415
|
+
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"), O = c?.type === "string" ? c.enum : void 0, [k, ee] = z(ap(O)), [A, te] = z(O?.type === "inline" ? sp(O.values) : ""), [ne, re] = z(O?.type === "ref" ? O.ref : ""), [j, M] = z(O?.loose ?? !1), ie = R(null), N = R(null);
|
|
7412
7416
|
I(() => {
|
|
7413
7417
|
if (y) {
|
|
7414
|
-
if (l === "create") C(""), T(""), D("any"), ee("none"), te(""),
|
|
7418
|
+
if (l === "create") C(""), T(""), D("any"), ee("none"), te(""), re(""), M(!1), setTimeout(() => {
|
|
7415
7419
|
ie.current?.codeMirror?.focus();
|
|
7416
7420
|
});
|
|
7417
7421
|
else {
|
|
7418
7422
|
T(e), D(c?.type ?? "any");
|
|
7419
7423
|
let t = c?.type === "string" ? c.enum : void 0;
|
|
7420
|
-
if (ee(ap(t)), te(t?.type === "inline" ? sp(t.values) : ""),
|
|
7424
|
+
if (ee(ap(t)), te(t?.type === "inline" ? sp(t.values) : ""), re(t?.type === "ref" ? t.ref : ""), M(t?.loose ?? !1), !ie.current) return;
|
|
7421
7425
|
setTimeout(() => {
|
|
7422
7426
|
ie.current.codeMirror?.focus();
|
|
7423
7427
|
let e = ie.current.querySelector(".cm-content"), t = window.getSelection();
|
|
@@ -7436,12 +7440,12 @@ var Xd = (e, t) => {
|
|
|
7436
7440
|
t.length && (e = {
|
|
7437
7441
|
type: "inline",
|
|
7438
7442
|
values: t,
|
|
7439
|
-
...
|
|
7443
|
+
...j ? { loose: !0 } : {}
|
|
7440
7444
|
});
|
|
7441
|
-
} else k === "ref" &&
|
|
7445
|
+
} else k === "ref" && ne && (e = {
|
|
7442
7446
|
type: "ref",
|
|
7443
|
-
ref:
|
|
7444
|
-
...
|
|
7447
|
+
ref: ne,
|
|
7448
|
+
...j ? { loose: !0 } : {}
|
|
7445
7449
|
});
|
|
7446
7450
|
return {
|
|
7447
7451
|
type: "string",
|
|
@@ -7557,8 +7561,8 @@ var Xd = (e, t) => {
|
|
|
7557
7561
|
]
|
|
7558
7562
|
})] }),
|
|
7559
7563
|
k === "ref" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Zo, {
|
|
7560
|
-
value:
|
|
7561
|
-
onChange:
|
|
7564
|
+
value: ne || void 0,
|
|
7565
|
+
onChange: re,
|
|
7562
7566
|
placeholder: x("dt.field.selectDictionary"),
|
|
7563
7567
|
disabled: r,
|
|
7564
7568
|
className: "w-full",
|
|
@@ -7569,7 +7573,7 @@ var Xd = (e, t) => {
|
|
|
7569
7573
|
}))
|
|
7570
7574
|
}) }),
|
|
7571
7575
|
k !== "none" && /* @__PURE__ */ U("div", { children: /* @__PURE__ */ U(Wa, {
|
|
7572
|
-
checked:
|
|
7576
|
+
checked: j,
|
|
7573
7577
|
onChange: (e) => M(e.target.checked),
|
|
7574
7578
|
disabled: r,
|
|
7575
7579
|
children: /* @__PURE__ */ U("span", {
|
|
@@ -9231,16 +9235,16 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9231
9235
|
e.preventDefault();
|
|
9232
9236
|
let r = p(), i = zp(r, Ep(n), f);
|
|
9233
9237
|
i && (t(i.details), h() && Bp(r, i.target));
|
|
9234
|
-
},
|
|
9235
|
-
if (
|
|
9236
|
-
let t =
|
|
9238
|
+
}, ne = !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) => {
|
|
9239
|
+
if (ne = !1, e.button !== 0 || e.shiftKey || e.ctrlKey || e.metaKey || r.props.tableLayout?.cellEditMode === "click") return;
|
|
9240
|
+
let t = re(e.target), n = t?.closest("td[data-col-id]");
|
|
9237
9241
|
if (!t || !n || !f.contains(n) || n.hasAttribute("data-cell-focused")) return;
|
|
9238
9242
|
let i = p().getColumn(n.getAttribute("data-col-id") ?? "");
|
|
9239
|
-
i && i.columnDef.enableCellSelection !== !1 && (
|
|
9243
|
+
i && i.columnDef.enableCellSelection !== !1 && (ne = !0, e.stopPropagation());
|
|
9240
9244
|
}, M = (e) => {
|
|
9241
|
-
|
|
9245
|
+
ne && (ne = !1, e.preventDefault(), e.stopPropagation());
|
|
9242
9246
|
}, ie = (e) => {
|
|
9243
|
-
if (!
|
|
9247
|
+
if (!ne) return;
|
|
9244
9248
|
e.stopPropagation(), e.preventDefault();
|
|
9245
9249
|
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
9250
|
if (!n || !r) return;
|
|
@@ -9270,7 +9274,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9270
9274
|
}, ue = (e) => {
|
|
9271
9275
|
Wp(e.target) || (e.target?.closest?.("td"))?.hasAttribute("data-cell-focused") && b();
|
|
9272
9276
|
}, 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", ee), f.addEventListener("cut", A), f.addEventListener("paste", te)), f.addEventListener("pointerdown",
|
|
9277
|
+
n && (g.tabIndex = 0, g.style.outline = "none", f.addEventListener("keydown", D)), t && (f.addEventListener("copy", ee), f.addEventListener("cut", A), f.addEventListener("paste", te)), 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
9278
|
let pe = (e) => ({
|
|
9275
9279
|
minRowIndex: e.minRowIndex,
|
|
9276
9280
|
maxRowIndex: e.maxRowIndex,
|
|
@@ -9291,7 +9295,7 @@ function Gp({ apiRef: e, clipboard: t = !0, keyboard: n = !0 }) {
|
|
|
9291
9295
|
});
|
|
9292
9296
|
});
|
|
9293
9297
|
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", ee), f.removeEventListener("cut", A), f.removeEventListener("paste", te)), f.removeEventListener("pointerdown",
|
|
9298
|
+
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", ee), f.removeEventListener("cut", A), f.removeEventListener("paste", te)), 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
9299
|
};
|
|
9296
9300
|
}, [
|
|
9297
9301
|
u,
|
|
@@ -10324,13 +10328,13 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10324
10328
|
v?.y,
|
|
10325
10329
|
a
|
|
10326
10330
|
]);
|
|
10327
|
-
let te = L(() => E.map((e) => e._id), [E]),
|
|
10331
|
+
let te = L(() => E.map((e) => e._id), [E]), ne = F((e) => {
|
|
10328
10332
|
let { active: t, over: n } = e;
|
|
10329
10333
|
if (t && n && t.id !== n.id) {
|
|
10330
10334
|
let e = te.indexOf(String(t.id)), r = te.indexOf(String(n.id));
|
|
10331
10335
|
e >= 0 && r >= 0 && a.swapRows(e, r);
|
|
10332
10336
|
}
|
|
10333
|
-
}, [te, a]),
|
|
10337
|
+
}, [te, 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
10338
|
v?.y,
|
|
10335
10339
|
D,
|
|
10336
10340
|
p
|
|
@@ -10437,8 +10441,8 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10437
10441
|
table: A,
|
|
10438
10442
|
recordCount: E.length,
|
|
10439
10443
|
i18n: c,
|
|
10440
|
-
getRowStatus:
|
|
10441
|
-
getRowClassName:
|
|
10444
|
+
getRowStatus: re,
|
|
10445
|
+
getRowClassName: j,
|
|
10442
10446
|
getCellClassName: M,
|
|
10443
10447
|
onCellsChange: (e) => {
|
|
10444
10448
|
e.rejected.length > 0 && (w(e.rejected.length), T.current && clearTimeout(T.current), T.current = setTimeout(() => w(0), 2600));
|
|
@@ -10466,7 +10470,7 @@ var Yp = ({ left: e, right: t, gap: n = 16 }) => /* @__PURE__ */ W(cl, {
|
|
|
10466
10470
|
},
|
|
10467
10471
|
children: [
|
|
10468
10472
|
/* @__PURE__ */ U(Xp, { children: /* @__PURE__ */ U(Eu, {
|
|
10469
|
-
handleDragEnd:
|
|
10473
|
+
handleDragEnd: ne,
|
|
10470
10474
|
dataIds: te,
|
|
10471
10475
|
virtual: ae,
|
|
10472
10476
|
virtualizerRef: N
|
|
@@ -10752,6 +10756,7 @@ var Zm = /* @__PURE__ */ function(e) {
|
|
|
10752
10756
|
disabled: !1,
|
|
10753
10757
|
components: [],
|
|
10754
10758
|
customNodes: [],
|
|
10759
|
+
functionLibraries: [],
|
|
10755
10760
|
activePanel: void 0,
|
|
10756
10761
|
panels: [],
|
|
10757
10762
|
user: "",
|
|
@@ -11263,16 +11268,49 @@ function dh(e, t, n, r = []) {
|
|
|
11263
11268
|
]);
|
|
11264
11269
|
}
|
|
11265
11270
|
//#endregion
|
|
11266
|
-
//#region
|
|
11267
|
-
var fh = () => {
|
|
11271
|
+
//#region ../../node_modules/.pnpm/@types+big.js@6.2.2/node_modules/@types/big.js/index.d.ts?raw
|
|
11272
|
+
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 = [
|
|
11273
|
+
{
|
|
11274
|
+
name: "big.js",
|
|
11275
|
+
tagline: "Arbitrary-precision decimal arithmetic",
|
|
11276
|
+
importName: "Big",
|
|
11277
|
+
typeDef: fh,
|
|
11278
|
+
documentationUrl: "https://mikemcl.github.io/big.js/"
|
|
11279
|
+
},
|
|
11280
|
+
{
|
|
11281
|
+
name: "dayjs",
|
|
11282
|
+
tagline: "Date utilities",
|
|
11283
|
+
typeDef: ph,
|
|
11284
|
+
documentationUrl: "https://day.js.org/docs/en/parse/parse"
|
|
11285
|
+
},
|
|
11286
|
+
{
|
|
11287
|
+
name: "http",
|
|
11288
|
+
tagline: "Promise based HTTP client",
|
|
11289
|
+
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",
|
|
11290
|
+
documentationUrl: "https://docs.gorules.io/reference/http"
|
|
11291
|
+
},
|
|
11292
|
+
{
|
|
11293
|
+
name: "zen",
|
|
11294
|
+
tagline: "Rules engine utilities",
|
|
11295
|
+
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",
|
|
11296
|
+
documentationUrl: "https://docs.gorules.io/reference/zen"
|
|
11297
|
+
},
|
|
11298
|
+
{
|
|
11299
|
+
name: "zod",
|
|
11300
|
+
tagline: "Schema validation",
|
|
11301
|
+
importName: "z",
|
|
11302
|
+
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",
|
|
11303
|
+
documentationUrl: "https://zod.dev/"
|
|
11304
|
+
}
|
|
11305
|
+
], _h = { globals: { "global.d.ts": hh } }, vh = mh, yh = () => {
|
|
11268
11306
|
try {
|
|
11269
11307
|
return !1;
|
|
11270
11308
|
} catch {
|
|
11271
11309
|
return !1;
|
|
11272
11310
|
}
|
|
11273
|
-
},
|
|
11311
|
+
}, bh = (e, t) => {
|
|
11274
11312
|
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
|
-
},
|
|
11313
|
+
}, xh = (e, t) => (t.rank ?? 0) - (e.rank ?? 0), Sh = (e, t) => {
|
|
11276
11314
|
if (typeof e.tester != "function") return !0;
|
|
11277
11315
|
try {
|
|
11278
11316
|
return !!e.tester(t);
|
|
@@ -11280,7 +11318,7 @@ var fh = () => {
|
|
|
11280
11318
|
return !1;
|
|
11281
11319
|
}
|
|
11282
11320
|
};
|
|
11283
|
-
function
|
|
11321
|
+
function Ch(e, t) {
|
|
11284
11322
|
let n = Array.isArray(e) ? e : [];
|
|
11285
11323
|
if (n.length === 0) return;
|
|
11286
11324
|
let r = typeof t.kind == "string" && t.kind ? t.kind : void 0, i = {
|
|
@@ -11292,15 +11330,15 @@ function gh(e, t) {
|
|
|
11292
11330
|
if (r) {
|
|
11293
11331
|
let e = n.filter((e) => e.kind === r);
|
|
11294
11332
|
if (e.length > 0) {
|
|
11295
|
-
e.length > 1 && (e.sort(
|
|
11296
|
-
let t = e.find((e) =>
|
|
11333
|
+
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}"`));
|
|
11334
|
+
let t = e.find((e) => Sh(e, i));
|
|
11297
11335
|
if (t) return t;
|
|
11298
11336
|
}
|
|
11299
11337
|
}
|
|
11300
|
-
let a = n.filter((e) => e.kind !== r && typeof e.tester == "function" &&
|
|
11301
|
-
if (a.length !== 0) return a.length > 1 && (a.sort(
|
|
11338
|
+
let a = n.filter((e) => e.kind !== r && typeof e.tester == "function" && Sh(e, i));
|
|
11339
|
+
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
11340
|
}
|
|
11303
|
-
function
|
|
11341
|
+
function wh(e) {
|
|
11304
11342
|
return {
|
|
11305
11343
|
namespace: e.namespace,
|
|
11306
11344
|
version: e.version,
|
|
@@ -11319,7 +11357,7 @@ function _h(e) {
|
|
|
11319
11357
|
}
|
|
11320
11358
|
//#endregion
|
|
11321
11359
|
//#region src/helpers/node-type.ts
|
|
11322
|
-
var
|
|
11360
|
+
var Th = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({ Object: {} }), Eh = (e, { attachGlobals: t = !0, disabled: n = !1 } = {}) => {
|
|
11323
11361
|
let r = $(({ nodeTypes: e, globalType: t }) => {
|
|
11324
11362
|
if (Ms() && !n) return {
|
|
11325
11363
|
nodeTypes: e,
|
|
@@ -11328,18 +11366,18 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11328
11366
|
});
|
|
11329
11367
|
return L(() => {
|
|
11330
11368
|
if (!r?.nodeTypes) return;
|
|
11331
|
-
let n =
|
|
11369
|
+
let n = Th(r.nodeTypes, e);
|
|
11332
11370
|
return t && Object.entries(r?.globalType ?? {}).forEach(([e, t]) => n.set(e, t)), n;
|
|
11333
11371
|
}, [
|
|
11334
11372
|
r?.globalType,
|
|
11335
11373
|
r?.nodeTypes,
|
|
11336
11374
|
t
|
|
11337
11375
|
]);
|
|
11338
|
-
},
|
|
11339
|
-
|
|
11376
|
+
}, Dh = (e) => e ? Array.from(e).map((e) => e + "̶").join("") : "", Oh = (e, t) => [
|
|
11377
|
+
Dh(t),
|
|
11340
11378
|
"->",
|
|
11341
11379
|
e
|
|
11342
|
-
].join(" "),
|
|
11380
|
+
].join(" "), kh = (e, t) => (e ?? "").trim() === (t ?? "").trim(), Ah = (e, t, n = {}) => {
|
|
11343
11381
|
let { idField: r = "id", compareFields: i } = n, a = (e) => e[r] || e._id, o = new Map(t.map((e, t) => [a(e), {
|
|
11344
11382
|
...e,
|
|
11345
11383
|
index: t
|
|
@@ -11399,7 +11437,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11399
11437
|
});
|
|
11400
11438
|
}
|
|
11401
11439
|
}), c.map(({ originalIndex: e, isRemoved: t, ...n }) => n);
|
|
11402
|
-
},
|
|
11440
|
+
}, jh = (e, t) => {
|
|
11403
11441
|
if (!e) return [];
|
|
11404
11442
|
let n = (e.inputs ?? []).map((e) => e?.id).filter((e) => !!e);
|
|
11405
11443
|
if (n.length === 0 || t.length === 0) return [];
|
|
@@ -11414,13 +11452,13 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11414
11452
|
return typeof n == "string" ? n.trim().length > 0 : n != null;
|
|
11415
11453
|
}).length
|
|
11416
11454
|
}));
|
|
11417
|
-
},
|
|
11455
|
+
}, Mh = (e, { trace: t, decisionGraph: n }) => ({
|
|
11418
11456
|
data: Object.values(t).find((t) => t.id === e)?.input,
|
|
11419
11457
|
$nodes: Object.fromEntries(Object.values(t).map((e) => {
|
|
11420
11458
|
let t = n.nodes.find((t) => t.id === e.id);
|
|
11421
11459
|
return !t || t.type === "outputNode" ? null : [e.name, e.output];
|
|
11422
11460
|
}).filter((e) => !!e))
|
|
11423
|
-
}),
|
|
11461
|
+
}), Nh = ({ id: e }) => {
|
|
11424
11462
|
let t = nh(), n = R(null), r = R(null);
|
|
11425
11463
|
dh(e, "scroll", {
|
|
11426
11464
|
serialize: () => ({
|
|
@@ -11443,7 +11481,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11443
11481
|
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
11482
|
nodeName: n.nodes.find((t) => t.id === e)?.name,
|
|
11445
11483
|
nodeTrace: q(t).with({ result: K.nonNullable }, ({ result: t }) => t.trace[e]).otherwise(() => null),
|
|
11446
|
-
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) =>
|
|
11484
|
+
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) => Mh(e, {
|
|
11447
11485
|
trace: t.trace,
|
|
11448
11486
|
decisionGraph: n
|
|
11449
11487
|
})).otherwise(() => null),
|
|
@@ -11476,7 +11514,7 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11476
11514
|
if (t.length === 0) return;
|
|
11477
11515
|
let n = (e) => [...f?.inputs ?? [], ...f?.outputs ?? []].find((t) => t.id === e)?.name ?? e;
|
|
11478
11516
|
return {
|
|
11479
|
-
entries:
|
|
11517
|
+
entries: jh(f, t).map((e) => ({
|
|
11480
11518
|
name: n(e.columnId),
|
|
11481
11519
|
count: e.count
|
|
11482
11520
|
})),
|
|
@@ -11504,16 +11542,16 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11504
11542
|
t.updateNode(e, (e) => (Object.assign(e.content, n), e));
|
|
11505
11543
|
}
|
|
11506
11544
|
});
|
|
11507
|
-
},
|
|
11545
|
+
}, Ph = navigator.platform.includes("Mac"), Fh = {
|
|
11508
11546
|
Ctrl: "⌘",
|
|
11509
11547
|
Backspace: "⌫",
|
|
11510
11548
|
Alt: "⌥"
|
|
11511
|
-
},
|
|
11512
|
-
let [n, r] = z(() =>
|
|
11549
|
+
}, Ih = { shortcut: (e) => Ph ? Object.keys(Fh).reduce((e, t) => e.replaceAll(t, Fh[t]), e) : e }, Lh = {}, Rh = (e, t) => {
|
|
11550
|
+
let [n, r] = z(() => Lh?.[e] ?? t);
|
|
11513
11551
|
return I(() => {
|
|
11514
|
-
|
|
11552
|
+
Lh[e] = n;
|
|
11515
11553
|
}, [n]), [n, r];
|
|
11516
|
-
},
|
|
11554
|
+
}, zh = Ge([
|
|
11517
11555
|
"relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow",
|
|
11518
11556
|
"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
11557
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3"
|
|
@@ -11543,10 +11581,10 @@ var vh = (e, t) => e[t]?.[Zm.Input] ?? e[t]?.[Zm.InferredInput] ?? zn.fromJson({
|
|
|
11543
11581
|
radius: "default"
|
|
11544
11582
|
}
|
|
11545
11583
|
});
|
|
11546
|
-
function
|
|
11584
|
+
function Bh({ className: e, variant: t, size: n, radius: i, render: a, ...o }) {
|
|
11547
11585
|
let s = {
|
|
11548
11586
|
"data-slot": "badge",
|
|
11549
|
-
className: r(
|
|
11587
|
+
className: r(zh({
|
|
11550
11588
|
variant: t,
|
|
11551
11589
|
size: n,
|
|
11552
11590
|
radius: i,
|
|
@@ -11561,7 +11599,7 @@ function Nh({ className: e, variant: t, size: n, radius: i, render: a, ...o }) {
|
|
|
11561
11599
|
}
|
|
11562
11600
|
//#endregion
|
|
11563
11601
|
//#region src/reui/icon-tile.tsx
|
|
11564
|
-
var
|
|
11602
|
+
var Vh = Ge([
|
|
11565
11603
|
"relative inline-flex shrink-0 items-center justify-center align-middle",
|
|
11566
11604
|
"size-(--icon-tile-size) rounded-(--icon-tile-radius)",
|
|
11567
11605
|
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-(--icon-tile-icon-size)"
|
|
@@ -11593,12 +11631,12 @@ var Ph = Ge([
|
|
|
11593
11631
|
radius: "default"
|
|
11594
11632
|
}
|
|
11595
11633
|
});
|
|
11596
|
-
function
|
|
11634
|
+
function Hh({ className: e, variant: t = "outline", size: n = "default", radius: i = "default", render: a, ...o }) {
|
|
11597
11635
|
let s = {
|
|
11598
11636
|
"data-slot": "icon-tile",
|
|
11599
11637
|
"data-variant": t,
|
|
11600
11638
|
"data-size": n,
|
|
11601
|
-
className: r(
|
|
11639
|
+
className: r(Vh({
|
|
11602
11640
|
variant: t,
|
|
11603
11641
|
size: n,
|
|
11604
11642
|
radius: i,
|
|
@@ -11613,20 +11651,20 @@ function Fh({ className: e, variant: t = "outline", size: n = "default", radius:
|
|
|
11613
11651
|
}
|
|
11614
11652
|
//#endregion
|
|
11615
11653
|
//#region src/components/decision-graph/nodes/graph-card.tsx
|
|
11616
|
-
var
|
|
11654
|
+
var Uh = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
11617
11655
|
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
11656
|
...t
|
|
11619
|
-
}),
|
|
11657
|
+
}), Wh = /* @__PURE__ */ function(e) {
|
|
11620
11658
|
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", () =>
|
|
11659
|
+
}({}), 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 }) => {
|
|
11660
|
+
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
11661
|
return /* @__PURE__ */ W("div", {
|
|
11624
11662
|
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
11663
|
style: { "--node-color": S },
|
|
11626
11664
|
onKeyDown: (e) => e.stopPropagation(),
|
|
11627
11665
|
"data-diff": m,
|
|
11628
11666
|
"data-compact": h || void 0,
|
|
11629
|
-
children: [/* @__PURE__ */ W(
|
|
11667
|
+
children: [/* @__PURE__ */ W(Uh, {
|
|
11630
11668
|
className: V(C, w),
|
|
11631
11669
|
children: [
|
|
11632
11670
|
/* @__PURE__ */ W("div", {
|
|
@@ -11653,7 +11691,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11653
11691
|
/* @__PURE__ */ W("div", {
|
|
11654
11692
|
className: "grid p-2 gap-1.5 grid-cols-[min-content_1fr_min-content] items-center box-border min-h-10",
|
|
11655
11693
|
children: [
|
|
11656
|
-
/* @__PURE__ */ U(
|
|
11694
|
+
/* @__PURE__ */ U(Hh, {
|
|
11657
11695
|
variant: "solid",
|
|
11658
11696
|
size: "xs",
|
|
11659
11697
|
className: "bg-[var(--node-color)] text-white",
|
|
@@ -11666,7 +11704,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11666
11704
|
onChange: l,
|
|
11667
11705
|
disabled: a,
|
|
11668
11706
|
value: t
|
|
11669
|
-
}), n != null && n !== "" && /* @__PURE__ */ U(
|
|
11707
|
+
}), n != null && n !== "" && /* @__PURE__ */ U(Bh, {
|
|
11670
11708
|
variant: "secondary",
|
|
11671
11709
|
size: "xs",
|
|
11672
11710
|
className: "w-fit max-w-full truncate",
|
|
@@ -11713,10 +11751,10 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11713
11751
|
})]
|
|
11714
11752
|
})
|
|
11715
11753
|
]
|
|
11716
|
-
}), /* @__PURE__ */ U(
|
|
11754
|
+
}), /* @__PURE__ */ U(qh, {
|
|
11717
11755
|
state: y,
|
|
11718
11756
|
timeout: 100,
|
|
11719
|
-
children: (e, t) => t && /* @__PURE__ */ U(
|
|
11757
|
+
children: (e, t) => t && /* @__PURE__ */ U(Uh, {
|
|
11720
11758
|
className: "nodrag",
|
|
11721
11759
|
style: {
|
|
11722
11760
|
transition: "0.1s ease-in-out",
|
|
@@ -11745,7 +11783,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11745
11783
|
})
|
|
11746
11784
|
})]
|
|
11747
11785
|
});
|
|
11748
|
-
},
|
|
11786
|
+
}, Kh = 100, qh = ({ state: e, timeout: t = Kh, children: n }) => {
|
|
11749
11787
|
let [r, i] = z(e), [a, o] = z(e ? "enter" : "leave");
|
|
11750
11788
|
return I(() => {
|
|
11751
11789
|
if (e) {
|
|
@@ -11757,8 +11795,8 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11757
11795
|
let n = setTimeout(() => i(!1), t);
|
|
11758
11796
|
return () => clearTimeout(n);
|
|
11759
11797
|
}, [e, t]), /* @__PURE__ */ U(H, { children: n(a, r) });
|
|
11760
|
-
},
|
|
11761
|
-
let p = o(), [m, h] = P.useState(!1), [g, _] =
|
|
11798
|
+
}, 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) => {
|
|
11799
|
+
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
11800
|
disabled: n,
|
|
11763
11801
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
11764
11802
|
nodeError: t?.error?.data?.nodeId === e ? t.error : null,
|
|
@@ -11795,7 +11833,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11795
11833
|
key: "copy-clipboard",
|
|
11796
11834
|
label: /* @__PURE__ */ U(Yp, {
|
|
11797
11835
|
left: p("func.debugger.copy"),
|
|
11798
|
-
right:
|
|
11836
|
+
right: Ih.shortcut("Ctrl + C")
|
|
11799
11837
|
}),
|
|
11800
11838
|
onClick: () => b.copyNodes([e])
|
|
11801
11839
|
},
|
|
@@ -11804,7 +11842,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11804
11842
|
disabled: w,
|
|
11805
11843
|
label: /* @__PURE__ */ U(Yp, {
|
|
11806
11844
|
left: p("dg.node.duplicate"),
|
|
11807
|
-
right:
|
|
11845
|
+
right: Ih.shortcut("Ctrl + D")
|
|
11808
11846
|
}),
|
|
11809
11847
|
onClick: () => b.duplicateNodes([e])
|
|
11810
11848
|
},
|
|
@@ -11817,7 +11855,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11817
11855
|
danger: !0,
|
|
11818
11856
|
label: /* @__PURE__ */ U(Yp, {
|
|
11819
11857
|
left: p("common.delete"),
|
|
11820
|
-
right:
|
|
11858
|
+
right: Ih.shortcut("Backspace")
|
|
11821
11859
|
}),
|
|
11822
11860
|
disabled: w,
|
|
11823
11861
|
onClick: k
|
|
@@ -11887,7 +11925,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11887
11925
|
position: Wi.Left,
|
|
11888
11926
|
...typeof t == "boolean" ? {} : t
|
|
11889
11927
|
}),
|
|
11890
|
-
/* @__PURE__ */ U(
|
|
11928
|
+
/* @__PURE__ */ U(Gh, {
|
|
11891
11929
|
menuItems: ee,
|
|
11892
11930
|
...d,
|
|
11893
11931
|
disabled: w,
|
|
@@ -11943,7 +11981,7 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11943
11981
|
})
|
|
11944
11982
|
]
|
|
11945
11983
|
});
|
|
11946
|
-
}),
|
|
11984
|
+
}), Yh = Ge([
|
|
11947
11985
|
"relative flex flex-col bg-muted/50 gap-(--frame-gap) px-(--frame-px) py-(--frame-py) rounded-(--frame-radius)",
|
|
11948
11986
|
"[--frame-radius:var(--radius-xl)]",
|
|
11949
11987
|
"[--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 +12028,9 @@ var Ih = ({ className: e, ...t }) => /* @__PURE__ */ U("div", {
|
|
|
11990
12028
|
dense: !1
|
|
11991
12029
|
}
|
|
11992
12030
|
});
|
|
11993
|
-
function
|
|
12031
|
+
function Xh({ className: e, variant: t, spacing: n, stacked: i, dense: a, ...o }) {
|
|
11994
12032
|
return /* @__PURE__ */ U("div", {
|
|
11995
|
-
className: r(
|
|
12033
|
+
className: r(Yh({
|
|
11996
12034
|
variant: t,
|
|
11997
12035
|
spacing: n,
|
|
11998
12036
|
stacked: i,
|
|
@@ -12003,21 +12041,21 @@ function Uh({ className: e, variant: t, spacing: n, stacked: i, dense: a, ...o }
|
|
|
12003
12041
|
...o
|
|
12004
12042
|
});
|
|
12005
12043
|
}
|
|
12006
|
-
function
|
|
12044
|
+
function Zh({ className: e, fit: t, ...n }) {
|
|
12007
12045
|
return /* @__PURE__ */ U("div", {
|
|
12008
12046
|
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
12047
|
"data-slot": "frame-panel",
|
|
12010
12048
|
...n
|
|
12011
12049
|
});
|
|
12012
12050
|
}
|
|
12013
|
-
function
|
|
12051
|
+
function Qh({ className: e, ...t }) {
|
|
12014
12052
|
return /* @__PURE__ */ U("header", {
|
|
12015
12053
|
className: r("flex flex-col gap-(--frame-panel-header-gap) px-(--frame-panel-header-px) py-(--frame-panel-header-py)", e),
|
|
12016
12054
|
"data-slot": "frame-panel-header",
|
|
12017
12055
|
...t
|
|
12018
12056
|
});
|
|
12019
12057
|
}
|
|
12020
|
-
function
|
|
12058
|
+
function $h({ className: e, ...t }) {
|
|
12021
12059
|
return /* @__PURE__ */ U("div", {
|
|
12022
12060
|
className: r("text-sm font-semibold", e),
|
|
12023
12061
|
"data-slot": "frame-panel-title",
|
|
@@ -12026,27 +12064,27 @@ function Kh({ className: e, ...t }) {
|
|
|
12026
12064
|
}
|
|
12027
12065
|
//#endregion
|
|
12028
12066
|
//#region src/components/decision-graph/nodes/specifications/settings-frame.tsx
|
|
12029
|
-
var
|
|
12067
|
+
var eg = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Xh, {
|
|
12030
12068
|
className: "settings-form w-full",
|
|
12031
12069
|
spacing: "xs",
|
|
12032
|
-
children: [/* @__PURE__ */ W(
|
|
12070
|
+
children: [/* @__PURE__ */ W(Qh, { children: [/* @__PURE__ */ U($h, { children: e }), t ? /* @__PURE__ */ U("p", {
|
|
12033
12071
|
className: "text-muted-foreground text-xs",
|
|
12034
12072
|
children: t
|
|
12035
|
-
}) : null] }), /* @__PURE__ */ U(
|
|
12073
|
+
}) : null] }), /* @__PURE__ */ U(Zh, {
|
|
12036
12074
|
className: "flex flex-col gap-2",
|
|
12037
12075
|
children: n
|
|
12038
12076
|
})]
|
|
12039
|
-
}),
|
|
12077
|
+
}), tg = {
|
|
12040
12078
|
fontSize: 12,
|
|
12041
12079
|
lineHeight: "20px",
|
|
12042
12080
|
width: "100%"
|
|
12043
|
-
},
|
|
12081
|
+
}, ng = {
|
|
12044
12082
|
type: Q.DecisionTable,
|
|
12045
12083
|
icon: /* @__PURE__ */ U(Ut, { size: "1em" }),
|
|
12046
12084
|
displayName: "Decision table",
|
|
12047
12085
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/decision-tables",
|
|
12048
12086
|
shortDescription: "Rules spreadsheet",
|
|
12049
|
-
renderTab: ({ id: e }) => /* @__PURE__ */ U(
|
|
12087
|
+
renderTab: ({ id: e }) => /* @__PURE__ */ U(Nh, { id: e }),
|
|
12050
12088
|
getDiffContent: (e, t) => G(e, (n) => {
|
|
12051
12089
|
let r = {};
|
|
12052
12090
|
(e.executionMode ?? "single") !== (t.executionMode ?? "single") && _i.set(r, "executionMode", {
|
|
@@ -12065,7 +12103,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12065
12103
|
status: "modified",
|
|
12066
12104
|
previousValue: t.passThrough
|
|
12067
12105
|
});
|
|
12068
|
-
let i =
|
|
12106
|
+
let i = Ah(e?.inputs || [], t?.inputs || [], { compareFields: (e, t) => {
|
|
12069
12107
|
let n = (e.name ?? "") !== (t.name ?? ""), r = (e.field ?? "") !== (t.field ?? ""), i = (e.defaultValue ?? "") !== (t.defaultValue ?? "");
|
|
12070
12108
|
return {
|
|
12071
12109
|
hasChanges: n || r || i,
|
|
@@ -12084,7 +12122,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12084
12122
|
} }
|
|
12085
12123
|
}
|
|
12086
12124
|
};
|
|
12087
|
-
} }), a =
|
|
12125
|
+
} }), a = Ah(e?.outputs || [], t?.outputs || [], { compareFields: (e, t) => {
|
|
12088
12126
|
let n = (e.name ?? "") !== (t.name ?? ""), r = (e.field ?? "") !== (t.field ?? ""), i = (e.defaultValue ?? "") !== (t.defaultValue ?? "");
|
|
12089
12127
|
return {
|
|
12090
12128
|
hasChanges: n || r || i,
|
|
@@ -12103,7 +12141,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12103
12141
|
} }
|
|
12104
12142
|
}
|
|
12105
12143
|
};
|
|
12106
|
-
} }), o =
|
|
12144
|
+
} }), o = Ah(e?.rules || [], t?.rules || [], {
|
|
12107
12145
|
idField: "_id",
|
|
12108
12146
|
compareFields: (e, t) => {
|
|
12109
12147
|
let n = (e._description ?? "") !== (t._description ?? ""), r = {};
|
|
@@ -12186,7 +12224,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12186
12224
|
executionMode: n?.executionMode
|
|
12187
12225
|
};
|
|
12188
12226
|
});
|
|
12189
|
-
return /* @__PURE__ */ U(
|
|
12227
|
+
return /* @__PURE__ */ U(Jh, {
|
|
12190
12228
|
id: e,
|
|
12191
12229
|
specification: r,
|
|
12192
12230
|
name: t.name,
|
|
@@ -12200,7 +12238,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12200
12238
|
});
|
|
12201
12239
|
},
|
|
12202
12240
|
renderSettings: ({ id: e }) => {
|
|
12203
|
-
let t = o(), n = nh(), r =
|
|
12241
|
+
let t = o(), n = nh(), r = Eh(e), { contentDiff: i } = ih(e), { fields: a, disabled: s } = $(({ decisionGraph: t, disabled: n }) => {
|
|
12204
12242
|
let r = (t?.nodes ?? []).find((t) => t.id === e)?.content;
|
|
12205
12243
|
return {
|
|
12206
12244
|
disabled: n,
|
|
@@ -12215,7 +12253,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12215
12253
|
}), c = (t) => {
|
|
12216
12254
|
n.updateNode(e, (e) => (Object.assign(e.content, t), e));
|
|
12217
12255
|
};
|
|
12218
|
-
return /* @__PURE__ */ W(
|
|
12256
|
+
return /* @__PURE__ */ W(eg, {
|
|
12219
12257
|
title: t("spec.dt.title"),
|
|
12220
12258
|
children: [
|
|
12221
12259
|
/* @__PURE__ */ U(To.Item, {
|
|
@@ -12254,7 +12292,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12254
12292
|
disabled: s,
|
|
12255
12293
|
displayDiff: i?.fields?.inputField?.status === "modified",
|
|
12256
12294
|
previousValue: i?.fields?.inputField?.previousValue,
|
|
12257
|
-
style:
|
|
12295
|
+
style: tg,
|
|
12258
12296
|
expectedVariableType: a?.executionMode === "loop" ? { Array: "Any" } : void 0,
|
|
12259
12297
|
maxRows: 4,
|
|
12260
12298
|
value: a?.inputField ?? "",
|
|
@@ -12293,7 +12331,7 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12293
12331
|
]
|
|
12294
12332
|
});
|
|
12295
12333
|
}
|
|
12296
|
-
},
|
|
12334
|
+
}, rg = {
|
|
12297
12335
|
display: "inline-flex",
|
|
12298
12336
|
alignItems: "center",
|
|
12299
12337
|
gap: 8,
|
|
@@ -12308,22 +12346,22 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12308
12346
|
color: "var(--foreground)",
|
|
12309
12347
|
cursor: "grabbing",
|
|
12310
12348
|
pointerEvents: "none"
|
|
12311
|
-
},
|
|
12349
|
+
}, ig = {
|
|
12312
12350
|
maxWidth: 140,
|
|
12313
12351
|
overflow: "hidden",
|
|
12314
12352
|
textOverflow: "ellipsis",
|
|
12315
12353
|
whiteSpace: "nowrap"
|
|
12316
|
-
},
|
|
12354
|
+
}, ag = ({ children: e }) => /* @__PURE__ */ U("div", {
|
|
12317
12355
|
className: "seal-drag-overlay",
|
|
12318
|
-
style:
|
|
12356
|
+
style: rg,
|
|
12319
12357
|
children: e
|
|
12320
|
-
}),
|
|
12358
|
+
}), og = ({ children: e, width: t }) => /* @__PURE__ */ U("span", {
|
|
12321
12359
|
style: {
|
|
12322
|
-
...
|
|
12360
|
+
...ig,
|
|
12323
12361
|
...t ? { maxWidth: t } : {}
|
|
12324
12362
|
},
|
|
12325
12363
|
children: e
|
|
12326
|
-
}),
|
|
12364
|
+
}), sg = ({ index: e }) => /* @__PURE__ */ U("span", {
|
|
12327
12365
|
style: {
|
|
12328
12366
|
minWidth: 20,
|
|
12329
12367
|
textAlign: "center",
|
|
@@ -12334,20 +12372,20 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12334
12372
|
fontWeight: 500
|
|
12335
12373
|
},
|
|
12336
12374
|
children: e + 1
|
|
12337
|
-
}),
|
|
12375
|
+
}), cg = P.createContext({}), lg = (e = {}) => ({
|
|
12338
12376
|
id: crypto.randomUUID(),
|
|
12339
12377
|
key: "",
|
|
12340
12378
|
value: "",
|
|
12341
12379
|
...e
|
|
12342
|
-
}),
|
|
12380
|
+
}), ug = ({ children: e }) => {
|
|
12343
12381
|
let t = L(() => Kn((e) => ({
|
|
12344
12382
|
disabled: !1,
|
|
12345
12383
|
debugIndex: 0,
|
|
12346
12384
|
addRowAbove: (t = 0) => {
|
|
12347
|
-
e(G((e) => (e.expressions.splice(t, 0,
|
|
12385
|
+
e(G((e) => (e.expressions.splice(t, 0, lg()), e)));
|
|
12348
12386
|
},
|
|
12349
12387
|
addRowBelow: (t) => {
|
|
12350
|
-
e(G((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0,
|
|
12388
|
+
e(G((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, lg()), e)));
|
|
12351
12389
|
},
|
|
12352
12390
|
expressions: [],
|
|
12353
12391
|
setExpressions: (t) => {
|
|
@@ -12369,15 +12407,15 @@ var qh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ W(Uh, {
|
|
|
12369
12407
|
}, e)));
|
|
12370
12408
|
}
|
|
12371
12409
|
})), []);
|
|
12372
|
-
return /* @__PURE__ */ U(
|
|
12410
|
+
return /* @__PURE__ */ U(cg.Provider, {
|
|
12373
12411
|
value: t,
|
|
12374
12412
|
children: e
|
|
12375
12413
|
});
|
|
12376
12414
|
};
|
|
12377
|
-
function
|
|
12378
|
-
return qn(P.useContext(
|
|
12415
|
+
function dg(e, t = Sc.default) {
|
|
12416
|
+
return qn(P.useContext(cg), Cc(e, t));
|
|
12379
12417
|
}
|
|
12380
|
-
var
|
|
12418
|
+
var fg = () => P.useContext(cg), pg = ({ debugIndex: e, traceCount: t, onDebugIndexChange: n, className: r }) => {
|
|
12381
12419
|
let i = o(), a = L(() => t ? Array.from({ length: t }).map((e, t) => ({
|
|
12382
12420
|
label: String(t),
|
|
12383
12421
|
value: t
|
|
@@ -12410,8 +12448,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12410
12448
|
})]
|
|
12411
12449
|
})]
|
|
12412
12450
|
}) : null;
|
|
12413
|
-
},
|
|
12414
|
-
let a = R(!1), o =
|
|
12451
|
+
}, mg = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full" }) => {
|
|
12452
|
+
let a = R(!1), o = fg(), { setExpressions: s, expressions: c } = dg(({ setExpressions: e, expressions: t }) => ({
|
|
12415
12453
|
setExpressions: e,
|
|
12416
12454
|
expressions: t
|
|
12417
12455
|
}));
|
|
@@ -12429,10 +12467,10 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12429
12467
|
}, [e]), I(() => {
|
|
12430
12468
|
e ? s(e) : n && s(n), a.current = !0;
|
|
12431
12469
|
}, []), null;
|
|
12432
|
-
},
|
|
12470
|
+
}, 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
12471
|
let n = e;
|
|
12434
12472
|
return n[q(t).with(K.number.between(0, n.length - 1), (e) => e).otherwise(() => 0)];
|
|
12435
|
-
}).otherwise((e) => e),
|
|
12473
|
+
}).otherwise((e) => e), _g = ({ index: e, disabled: t, addRowAbove: n, addRowBelow: r, children: i }) => {
|
|
12436
12474
|
let a = o();
|
|
12437
12475
|
return /* @__PURE__ */ U(xo, {
|
|
12438
12476
|
destroyPopupOnHide: !0,
|
|
@@ -12455,15 +12493,15 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12455
12493
|
}] },
|
|
12456
12494
|
children: i
|
|
12457
12495
|
});
|
|
12458
|
-
},
|
|
12459
|
-
let [r, i] = z(!1), a = o(), s = R(null), { updateRow: c, removeRow: l, disabled: u, permission: d, addRowAbove: f, addRowBelow: p } =
|
|
12496
|
+
}, vg = ({ expression: e, index: t, variableType: n }) => {
|
|
12497
|
+
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
12498
|
updateRow: e,
|
|
12461
12499
|
removeRow: t,
|
|
12462
12500
|
disabled: n,
|
|
12463
12501
|
permission: r,
|
|
12464
12502
|
addRowAbove: i,
|
|
12465
12503
|
addRowBelow: a
|
|
12466
|
-
})), m =
|
|
12504
|
+
})), m = dg(({ expressions: t, inputVariableType: n }) => {
|
|
12467
12505
|
let r = ed(n).filter((e) => !e.includes(".")), i = t.map((e) => e.key?.trim() ?? "").filter(Boolean);
|
|
12468
12506
|
return {
|
|
12469
12507
|
keyShadow: va(e.key, r),
|
|
@@ -12488,7 +12526,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12488
12526
|
}), { setNodeRef: C, isOver: w } = ar({
|
|
12489
12527
|
id: `expr-drop-${e.id ?? t}`,
|
|
12490
12528
|
data: { index: t }
|
|
12491
|
-
}), T = rr(), E = w ?
|
|
12529
|
+
}), T = rr(), E = w ? hg(T.active?.rect.current.translated, s.current?.getBoundingClientRect()) : "up", D = e?._diff?.status;
|
|
12492
12530
|
return /* @__PURE__ */ W("div", {
|
|
12493
12531
|
ref: (e) => {
|
|
12494
12532
|
s.current = e, C(e), b(e);
|
|
@@ -12512,7 +12550,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12512
12550
|
}),
|
|
12513
12551
|
/* @__PURE__ */ U("div", {
|
|
12514
12552
|
className: "box-border h-full border-r border-[var(--seal-color-border-fade)]",
|
|
12515
|
-
children: /* @__PURE__ */ W(
|
|
12553
|
+
children: /* @__PURE__ */ W(_g, {
|
|
12516
12554
|
index: t,
|
|
12517
12555
|
disabled: u,
|
|
12518
12556
|
addRowAbove: f,
|
|
@@ -12535,7 +12573,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12535
12573
|
}),
|
|
12536
12574
|
/* @__PURE__ */ U("div", {
|
|
12537
12575
|
className: "relative box-border h-full text-[13px]",
|
|
12538
|
-
children: /* @__PURE__ */ U(
|
|
12576
|
+
children: /* @__PURE__ */ U(_g, {
|
|
12539
12577
|
index: t,
|
|
12540
12578
|
disabled: u,
|
|
12541
12579
|
addRowAbove: f,
|
|
@@ -12556,8 +12594,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12556
12594
|
onBlur: () => i(!1),
|
|
12557
12595
|
noStyle: !0
|
|
12558
12596
|
}),
|
|
12559
|
-
/* @__PURE__ */ U(
|
|
12560
|
-
m.valueHints.map((e) => /* @__PURE__ */ U(
|
|
12597
|
+
/* @__PURE__ */ U(xg, { expression: e }),
|
|
12598
|
+
m.valueHints.map((e) => /* @__PURE__ */ U(yg, { hint: e }, e.name))
|
|
12561
12599
|
] })
|
|
12562
12600
|
})
|
|
12563
12601
|
}),
|
|
@@ -12567,14 +12605,14 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12567
12605
|
iconOnly: !0,
|
|
12568
12606
|
disabled: d !== "edit:full" || u,
|
|
12569
12607
|
onConfirm: g
|
|
12570
|
-
}), r && /* @__PURE__ */ U(
|
|
12608
|
+
}), r && /* @__PURE__ */ U(bg, {
|
|
12571
12609
|
id: e.id,
|
|
12572
12610
|
value: e.value
|
|
12573
12611
|
})]
|
|
12574
12612
|
})
|
|
12575
12613
|
]
|
|
12576
12614
|
});
|
|
12577
|
-
},
|
|
12615
|
+
}, yg = ({ hint: e }) => {
|
|
12578
12616
|
let t = o();
|
|
12579
12617
|
return /* @__PURE__ */ U("span", {
|
|
12580
12618
|
className: "block px-3 pb-2 text-xs leading-snug text-[color:var(--seal-color-warning-text)]",
|
|
@@ -12583,9 +12621,9 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12583
12621
|
suggestion: e.suggestion ?? ""
|
|
12584
12622
|
})
|
|
12585
12623
|
});
|
|
12586
|
-
},
|
|
12587
|
-
let { inputData: n, initial: r } =
|
|
12588
|
-
let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ?
|
|
12624
|
+
}, bg = P.memo(({ id: e, value: t }) => {
|
|
12625
|
+
let { inputData: n, initial: r } = dg(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
|
|
12626
|
+
let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? gg(t?.trace.traceData, n)?.[i.key] : void 0;
|
|
12589
12627
|
return {
|
|
12590
12628
|
inputData: r,
|
|
12591
12629
|
initial: i && a ? {
|
|
@@ -12602,8 +12640,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12602
12640
|
initial: r
|
|
12603
12641
|
})
|
|
12604
12642
|
});
|
|
12605
|
-
}),
|
|
12606
|
-
let { trace: t } =
|
|
12643
|
+
}), xg = ({ expression: e }) => {
|
|
12644
|
+
let { trace: t } = dg(({ debug: t, debugIndex: n }) => ({ trace: gg(t?.trace?.traceData, n)?.[e.key]?.result }));
|
|
12607
12645
|
return t === void 0 ? null : /* @__PURE__ */ U("div", {
|
|
12608
12646
|
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
12647
|
children: /* @__PURE__ */ W(Z.Text, {
|
|
@@ -12615,8 +12653,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12615
12653
|
children: ["= ", JSON.stringify(t)]
|
|
12616
12654
|
})
|
|
12617
12655
|
});
|
|
12618
|
-
},
|
|
12619
|
-
let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } =
|
|
12656
|
+
}, Sg = ({}) => {
|
|
12657
|
+
let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } = dg(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
|
|
12620
12658
|
expressions: e,
|
|
12621
12659
|
addRowBelow: t,
|
|
12622
12660
|
permission: n,
|
|
@@ -12650,7 +12688,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12650
12688
|
}),
|
|
12651
12689
|
/* @__PURE__ */ U("div", {})
|
|
12652
12690
|
]
|
|
12653
|
-
}), (e || []).map((e, t) => /* @__PURE__ */ U(
|
|
12691
|
+
}), (e || []).map((e, t) => /* @__PURE__ */ U(vg, {
|
|
12654
12692
|
expression: e,
|
|
12655
12693
|
index: t,
|
|
12656
12694
|
variableType: a
|
|
@@ -12664,32 +12702,32 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12664
12702
|
children: "Add row"
|
|
12665
12703
|
})
|
|
12666
12704
|
})] });
|
|
12667
|
-
},
|
|
12705
|
+
}, Cg = ({ debug: e, hideCommandBar: t, inputVariableType: n, ...r }) => {
|
|
12668
12706
|
let [i, a] = z(!1), o = R(null);
|
|
12669
12707
|
return I(() => {
|
|
12670
12708
|
a(!0);
|
|
12671
12709
|
}, []), /* @__PURE__ */ U(vc, { children: /* @__PURE__ */ U("div", {
|
|
12672
12710
|
ref: o,
|
|
12673
|
-
children: o.current && /* @__PURE__ */ U(
|
|
12674
|
-
/* @__PURE__ */ U(
|
|
12675
|
-
!t && /* @__PURE__ */ U(
|
|
12676
|
-
/* @__PURE__ */ U(
|
|
12677
|
-
/* @__PURE__ */ U(
|
|
12711
|
+
children: o.current && /* @__PURE__ */ U(ug, { children: /* @__PURE__ */ W(Tg, { children: [
|
|
12712
|
+
/* @__PURE__ */ U(mg, { ...r }),
|
|
12713
|
+
!t && /* @__PURE__ */ U(wg, {}),
|
|
12714
|
+
/* @__PURE__ */ U(Sg, {}),
|
|
12715
|
+
/* @__PURE__ */ U(Eg, {
|
|
12678
12716
|
debug: e,
|
|
12679
12717
|
inputVariableType: n
|
|
12680
12718
|
})
|
|
12681
12719
|
] }) })
|
|
12682
12720
|
}) });
|
|
12683
|
-
},
|
|
12684
|
-
let e =
|
|
12685
|
-
return /* @__PURE__ */ U(
|
|
12721
|
+
}, wg = () => {
|
|
12722
|
+
let e = fg(), t = dg((e) => e.debugIndex), n = dg((e) => q(e.debug?.trace?.traceData).with(K.array(), (e) => e.length).otherwise(() => null));
|
|
12723
|
+
return /* @__PURE__ */ U(pg, {
|
|
12686
12724
|
className: "p-[7px] box-border border-b border-[var(--border)]",
|
|
12687
12725
|
debugIndex: t,
|
|
12688
12726
|
traceCount: n,
|
|
12689
12727
|
onDebugIndexChange: (t) => e.setState({ debugIndex: t })
|
|
12690
12728
|
});
|
|
12691
|
-
},
|
|
12692
|
-
let t = sr(or($n, { activationConstraint: { distance: 4 } })), n =
|
|
12729
|
+
}, Tg = ({ children: e }) => {
|
|
12730
|
+
let t = sr(or($n, { activationConstraint: { distance: 4 } })), n = fg(), [r, i] = z(null), a = r == null ? void 0 : n.getState().expressions[r];
|
|
12693
12731
|
return /* @__PURE__ */ W(Jn, {
|
|
12694
12732
|
sensors: t,
|
|
12695
12733
|
onDragStart: ({ active: e }) => {
|
|
@@ -12704,13 +12742,13 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12704
12742
|
onDragCancel: () => i(null),
|
|
12705
12743
|
children: [e, /* @__PURE__ */ U(Yn, {
|
|
12706
12744
|
dropAnimation: null,
|
|
12707
|
-
children: a ? /* @__PURE__ */ W(
|
|
12708
|
-
/* @__PURE__ */ U(
|
|
12709
|
-
a.key ? /* @__PURE__ */ U(
|
|
12745
|
+
children: a ? /* @__PURE__ */ W(ag, { children: [
|
|
12746
|
+
/* @__PURE__ */ U(sg, { index: r ?? 0 }),
|
|
12747
|
+
a.key ? /* @__PURE__ */ U(og, {
|
|
12710
12748
|
width: 140,
|
|
12711
12749
|
children: a.key
|
|
12712
12750
|
}) : null,
|
|
12713
|
-
a.value ? /* @__PURE__ */ U(
|
|
12751
|
+
a.value ? /* @__PURE__ */ U(og, {
|
|
12714
12752
|
width: 180,
|
|
12715
12753
|
children: /* @__PURE__ */ U("span", {
|
|
12716
12754
|
style: { color: "var(--seal-color-text-tertiary)" },
|
|
@@ -12720,8 +12758,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12720
12758
|
] }) : null
|
|
12721
12759
|
})]
|
|
12722
12760
|
});
|
|
12723
|
-
},
|
|
12724
|
-
let n =
|
|
12761
|
+
}, Eg = ({ debug: e, inputVariableType: t }) => {
|
|
12762
|
+
let n = fg();
|
|
12725
12763
|
return I(() => {
|
|
12726
12764
|
n.setState({ inputVariableType: t });
|
|
12727
12765
|
}, [t]), I(() => {
|
|
@@ -12751,8 +12789,8 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12751
12789
|
(e.debugIndex !== n.debugIndex || e.debug !== n.debug) && t(e);
|
|
12752
12790
|
});
|
|
12753
12791
|
}, []), null;
|
|
12754
|
-
},
|
|
12755
|
-
let t = nh(), n = R(null), r =
|
|
12792
|
+
}, Dg = ({ id: e }) => {
|
|
12793
|
+
let t = nh(), n = R(null), r = Eh(e);
|
|
12756
12794
|
dh(e, "scroll", {
|
|
12757
12795
|
serialize: () => {
|
|
12758
12796
|
let e = n.current;
|
|
@@ -12782,7 +12820,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12782
12820
|
content: (n?.nodes ?? []).find((t) => t.id === e)?.content
|
|
12783
12821
|
})), { nodeTrace: o, inputData: s, nodeSnapshot: c, viewConfig: l } = $(({ simulate: t, decisionGraph: n, viewConfig: r }) => ({
|
|
12784
12822
|
nodeTrace: q(t).with({ result: K.nonNullable }, ({ result: t }) => t.trace[e]).otherwise(() => null),
|
|
12785
|
-
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) =>
|
|
12823
|
+
inputData: q(t).with({ result: K.nonNullable }, ({ result: t }) => Mh(e, {
|
|
12786
12824
|
trace: t.trace,
|
|
12787
12825
|
decisionGraph: n
|
|
12788
12826
|
})).otherwise(() => null),
|
|
@@ -12794,7 +12832,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12794
12832
|
trace: o,
|
|
12795
12833
|
snapshot: c
|
|
12796
12834
|
};
|
|
12797
|
-
let e = Object.fromEntries(Object.entries(o?.traceData ?? {}).map(([e, t]) => [e,
|
|
12835
|
+
let e = Object.fromEntries(Object.entries(o?.traceData ?? {}).map(([e, t]) => [e, Og(t.result)])), t = {
|
|
12798
12836
|
...s,
|
|
12799
12837
|
$: e
|
|
12800
12838
|
};
|
|
@@ -12823,7 +12861,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12823
12861
|
overflowY: "auto",
|
|
12824
12862
|
boxSizing: "border-box"
|
|
12825
12863
|
},
|
|
12826
|
-
children: /* @__PURE__ */ U(
|
|
12864
|
+
children: /* @__PURE__ */ U(Cg, {
|
|
12827
12865
|
value: a?.expressions,
|
|
12828
12866
|
disabled: i,
|
|
12829
12867
|
inputVariableType: d,
|
|
@@ -12834,36 +12872,36 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12834
12872
|
}
|
|
12835
12873
|
})
|
|
12836
12874
|
});
|
|
12837
|
-
},
|
|
12875
|
+
}, Og = (e) => {
|
|
12838
12876
|
try {
|
|
12839
12877
|
return JSON.parse(e);
|
|
12840
12878
|
} catch {
|
|
12841
12879
|
return null;
|
|
12842
12880
|
}
|
|
12843
|
-
},
|
|
12881
|
+
}, kg = {
|
|
12844
12882
|
type: Q.Expression,
|
|
12845
12883
|
icon: /* @__PURE__ */ U(qt, { size: "1em" }),
|
|
12846
12884
|
displayName: "Expression",
|
|
12847
12885
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/expression",
|
|
12848
12886
|
shortDescription: "Mapping utility",
|
|
12849
|
-
renderTab: ({ id: e }) => /* @__PURE__ */ U(
|
|
12887
|
+
renderTab: ({ id: e }) => /* @__PURE__ */ U(Dg, { id: e }),
|
|
12850
12888
|
getDiffContent: (e, t) => G(e, (n) => {
|
|
12851
12889
|
let r = {};
|
|
12852
12890
|
(e.executionMode || !1) !== (t.executionMode || !1) && _i.set(r, "executionMode", {
|
|
12853
12891
|
status: "modified",
|
|
12854
12892
|
previousValue: t.executionMode
|
|
12855
|
-
}),
|
|
12893
|
+
}), kh(e.inputField, t.inputField) || _i.set(r, "inputField", {
|
|
12856
12894
|
status: "modified",
|
|
12857
12895
|
previousValue: t.inputField
|
|
12858
|
-
}),
|
|
12896
|
+
}), kh(e.outputPath, t.outputPath) || _i.set(r, "outputPath", {
|
|
12859
12897
|
status: "modified",
|
|
12860
12898
|
previousValue: t.outputPath
|
|
12861
12899
|
}), (e.passThrough || !1) !== (t.passThrough || !1) && _i.set(r, "passThrough", {
|
|
12862
12900
|
status: "modified",
|
|
12863
12901
|
previousValue: t.passThrough
|
|
12864
12902
|
});
|
|
12865
|
-
let i =
|
|
12866
|
-
let n = !
|
|
12903
|
+
let i = Ah(e?.expressions || [], t?.expressions || [], { compareFields: (e, t) => {
|
|
12904
|
+
let n = !kh(e.key, t.key), r = !kh(e.value, t.value);
|
|
12867
12905
|
return {
|
|
12868
12906
|
hasChanges: n || r,
|
|
12869
12907
|
fields: {
|
|
@@ -12916,7 +12954,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12916
12954
|
executionMode: n?.executionMode
|
|
12917
12955
|
};
|
|
12918
12956
|
});
|
|
12919
|
-
return /* @__PURE__ */ U(
|
|
12957
|
+
return /* @__PURE__ */ U(Jh, {
|
|
12920
12958
|
id: e,
|
|
12921
12959
|
specification: r,
|
|
12922
12960
|
name: t.name,
|
|
@@ -12930,7 +12968,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12930
12968
|
});
|
|
12931
12969
|
},
|
|
12932
12970
|
renderSettings: ({ id: e }) => {
|
|
12933
|
-
let t = o(), n = nh(), r =
|
|
12971
|
+
let t = o(), n = nh(), r = Eh(e), { contentDiff: i } = ih(e), { fields: a, disabled: s } = $(({ decisionGraph: t, disabled: n }) => {
|
|
12934
12972
|
let r = (t?.nodes ?? []).find((t) => t.id === e)?.content;
|
|
12935
12973
|
return {
|
|
12936
12974
|
disabled: n,
|
|
@@ -12944,7 +12982,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12944
12982
|
}), c = (t) => {
|
|
12945
12983
|
n.updateNode(e, (e) => (Object.assign(e.content, t), e));
|
|
12946
12984
|
};
|
|
12947
|
-
return /* @__PURE__ */ W(
|
|
12985
|
+
return /* @__PURE__ */ W(eg, {
|
|
12948
12986
|
title: t("spec.expression.title"),
|
|
12949
12987
|
children: [
|
|
12950
12988
|
/* @__PURE__ */ U(To.Item, {
|
|
@@ -12965,7 +13003,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
12965
13003
|
disabled: s,
|
|
12966
13004
|
displayDiff: i?.fields?.inputField?.status === "modified",
|
|
12967
13005
|
previousValue: i?.fields?.inputField?.previousValue,
|
|
12968
|
-
style:
|
|
13006
|
+
style: tg,
|
|
12969
13007
|
expectedVariableType: a?.executionMode === "loop" ? { Array: "Any" } : void 0,
|
|
12970
13008
|
maxRows: 4,
|
|
12971
13009
|
value: a?.inputField ?? "",
|
|
@@ -13006,40 +13044,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13006
13044
|
]
|
|
13007
13045
|
});
|
|
13008
13046
|
}
|
|
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 }) => {
|
|
13047
|
+
}, Ag = P.lazy(async () => ({ default: (await Promise.resolve().then(() => Tb)).Function })), jg = ({ id: e }) => {
|
|
13043
13048
|
let t = Pg(e), n = nh(), r = eh((e) => e.onFunctionReady), [i, a] = z(), o = R(null), s = R(null);
|
|
13044
13049
|
dh(e, "monaco", {
|
|
13045
13050
|
serialize: () => o.current?.saveViewState() ?? s.current ?? null,
|
|
@@ -13047,13 +13052,14 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13047
13052
|
e && (o.current ? o.current.restoreViewState(e) : s.current = e);
|
|
13048
13053
|
}
|
|
13049
13054
|
});
|
|
13050
|
-
let c =
|
|
13055
|
+
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
13056
|
nodeTrace: q(t).with({ result: K._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
|
|
13052
13057
|
nodeError: q(t).with({ error: { data: { nodeId: e } } }, ({ error: e }) => e).otherwise(() => null),
|
|
13053
13058
|
disabled: n,
|
|
13054
13059
|
content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
|
|
13055
|
-
viewConfig: i
|
|
13056
|
-
|
|
13060
|
+
viewConfig: i,
|
|
13061
|
+
functionLibraries: a
|
|
13062
|
+
})), { diff: h, contentDiff: g } = ih(e), _ = L(() => t === Ng.Stable ? g?.fields?.source?.previousValue : h?.fields?.content?.previousValue, [h, g]);
|
|
13057
13063
|
return I(() => {
|
|
13058
13064
|
if (!i) return;
|
|
13059
13065
|
let e = i.languages.typescript.javascriptDefaults.getExtraLibs(), t = Object.entries(e).map(([e, t]) => ({
|
|
@@ -13064,12 +13070,13 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13064
13070
|
}, [i, r]), /* @__PURE__ */ U(je, {
|
|
13065
13071
|
fallback: /* @__PURE__ */ U($o, {}),
|
|
13066
13072
|
children: /* @__PURE__ */ U(Ag, {
|
|
13073
|
+
libraries: m?.length ? m : void 0,
|
|
13067
13074
|
onMonacoReady: (e) => a(e),
|
|
13068
13075
|
onEditorMount: (e) => {
|
|
13069
13076
|
o.current = e, s.current &&= (e.restoreViewState(s.current), null);
|
|
13070
13077
|
},
|
|
13071
13078
|
value: t === Ng.Stable ? d.source : d,
|
|
13072
|
-
previousValue: typeof
|
|
13079
|
+
previousValue: typeof _ == "string" ? _ : void 0,
|
|
13073
13080
|
error: f ?? void 0,
|
|
13074
13081
|
inputData: c,
|
|
13075
13082
|
permission: p?.enabled ? p?.permissions?.[e] : "edit:full",
|
|
@@ -13092,7 +13099,7 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13092
13099
|
displayName: "Function",
|
|
13093
13100
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/functions",
|
|
13094
13101
|
shortDescription: "Javascript lambda",
|
|
13095
|
-
color:
|
|
13102
|
+
color: Wh.Orange,
|
|
13096
13103
|
renderTab: ({ id: e }) => /* @__PURE__ */ U(jg, { id: e }),
|
|
13097
13104
|
getDiffContent: (e, t) => {
|
|
13098
13105
|
let n = {}, r = q(e).with(K.string, () => 0).otherwise(() => 1);
|
|
@@ -13118,11 +13125,11 @@ var ag = () => P.useContext(tg), og = ({ debugIndex: e, traceCount: t, onDebugIn
|
|
|
13118
13125
|
},
|
|
13119
13126
|
generateNode: ({ index: e }) => ({
|
|
13120
13127
|
name: `function${e}`,
|
|
13121
|
-
content: { source:
|
|
13128
|
+
content: { source: vh }
|
|
13122
13129
|
}),
|
|
13123
13130
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
13124
13131
|
let i = nh(), a = Pg(e), s = o();
|
|
13125
|
-
return /* @__PURE__ */ U(
|
|
13132
|
+
return /* @__PURE__ */ U(Jh, {
|
|
13126
13133
|
id: e,
|
|
13127
13134
|
specification: {
|
|
13128
13135
|
...r,
|
|
@@ -14057,7 +14064,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14057
14064
|
type: "object",
|
|
14058
14065
|
properties: {}
|
|
14059
14066
|
} : null;
|
|
14060
|
-
i(t ?
|
|
14067
|
+
i(t ? ne(t) : "");
|
|
14061
14068
|
return;
|
|
14062
14069
|
}
|
|
14063
14070
|
i(D(r, t));
|
|
@@ -14141,12 +14148,12 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14141
14148
|
getDefinitionTypeLabel: (e) => _.find((t) => t.value === e)?.label ?? e
|
|
14142
14149
|
};
|
|
14143
14150
|
}, 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({}), [te,
|
|
14151
|
+
let l = R(null), d = R(null), [f, p] = z(0), [h, g] = z(null), [v, y] = z({}), [S, D] = z({}), [te, ne] = z({}), re = L(() => w(t).contract, [
|
|
14145
14152
|
t?.schema,
|
|
14146
14153
|
t?.schemaUI,
|
|
14147
14154
|
t?.inputs,
|
|
14148
14155
|
t?.inputContract
|
|
14149
|
-
]),
|
|
14156
|
+
]), 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) => A(oe(e) ? e : {}, t), [c]), se = F((e) => A(k(oe(e) ? e : {}, c), c), [c]), ce = L(() => N ? k(N.data, c) : null, [N, c]), le = L(() => N ? v[N.id] ?? De(ce) : "", [
|
|
14150
14157
|
N,
|
|
14151
14158
|
v,
|
|
14152
14159
|
ce
|
|
@@ -14166,35 +14173,35 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14166
14173
|
]), [me, he] = z({});
|
|
14167
14174
|
I(() => {
|
|
14168
14175
|
let e = !1;
|
|
14169
|
-
return O(
|
|
14176
|
+
return O(re.examples.map((e) => e.data), re.schema).then((t) => {
|
|
14170
14177
|
if (e) return;
|
|
14171
14178
|
let n = {};
|
|
14172
|
-
|
|
14179
|
+
re.examples.forEach((e, r) => {
|
|
14173
14180
|
n[e.id] = t[r] ?? [];
|
|
14174
14181
|
}), he(n);
|
|
14175
14182
|
}), () => {
|
|
14176
14183
|
e = !0;
|
|
14177
14184
|
};
|
|
14178
|
-
}, [
|
|
14185
|
+
}, [re]);
|
|
14179
14186
|
let ge = L(() => {
|
|
14180
14187
|
let e = {};
|
|
14181
|
-
return
|
|
14188
|
+
return re.examples.forEach((t, n) => {
|
|
14182
14189
|
e[t.id] = {
|
|
14183
14190
|
drift: C(M[n]?.data ?? t.data, c),
|
|
14184
|
-
schemaChanged: t.schemaFingerprint !==
|
|
14191
|
+
schemaChanged: t.schemaFingerprint !== j,
|
|
14185
14192
|
constraintIssues: me[t.id] ?? []
|
|
14186
14193
|
};
|
|
14187
14194
|
}), e;
|
|
14188
14195
|
}, [
|
|
14189
14196
|
me,
|
|
14190
|
-
|
|
14197
|
+
j,
|
|
14191
14198
|
c,
|
|
14192
14199
|
M,
|
|
14193
|
-
|
|
14194
|
-
]), _e = L(() =>
|
|
14200
|
+
re.examples
|
|
14201
|
+
]), _e = L(() => re.examples.some((e) => {
|
|
14195
14202
|
let t = ge[e.id];
|
|
14196
14203
|
return !!(t && (t.schemaChanged || de(t.drift) || t.constraintIssues.length > 0));
|
|
14197
|
-
}), [ge,
|
|
14204
|
+
}), [ge, re.examples]), ve = R(re), ye = R(c), be = R(me), xe = F((t, n, i) => {
|
|
14198
14205
|
r.emitContractEvent({
|
|
14199
14206
|
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
14200
14207
|
nodeId: e,
|
|
@@ -14217,8 +14224,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14217
14224
|
};
|
|
14218
14225
|
}, []);
|
|
14219
14226
|
I(() => {
|
|
14220
|
-
ve.current =
|
|
14221
|
-
}, [
|
|
14227
|
+
ve.current = re;
|
|
14228
|
+
}, [re]), I(() => {
|
|
14222
14229
|
ye.current = c;
|
|
14223
14230
|
}, [c]), I(() => {
|
|
14224
14231
|
be.current = me;
|
|
@@ -14226,8 +14233,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14226
14233
|
let Ce = R(null);
|
|
14227
14234
|
I(() => {
|
|
14228
14235
|
let e = Ce.current;
|
|
14229
|
-
if (Ce.current =
|
|
14230
|
-
let t = ve.current.examples.filter((e) => typeof e.schemaFingerprint == "string" && e.schemaFingerprint !==
|
|
14236
|
+
if (Ce.current = j, !e || e === j) return;
|
|
14237
|
+
let t = ve.current.examples.filter((e) => typeof e.schemaFingerprint == "string" && e.schemaFingerprint !== j);
|
|
14231
14238
|
if (t.length === 0) return;
|
|
14232
14239
|
let n = t.reduce((e, t) => {
|
|
14233
14240
|
let n = Se(t.data, t.id);
|
|
@@ -14245,7 +14252,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14245
14252
|
});
|
|
14246
14253
|
xe("drift-detected", t.map((e) => e.name), n);
|
|
14247
14254
|
}, [
|
|
14248
|
-
|
|
14255
|
+
j,
|
|
14249
14256
|
Se,
|
|
14250
14257
|
xe
|
|
14251
14258
|
]);
|
|
@@ -14348,13 +14355,13 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14348
14355
|
...e,
|
|
14349
14356
|
data: ae(e.data)
|
|
14350
14357
|
})), o = a.map((e, t) => {
|
|
14351
|
-
let n = !de(C(e.data, c)), r =
|
|
14358
|
+
let n = !de(C(e.data, c)), r = re.examples[t];
|
|
14352
14359
|
return {
|
|
14353
14360
|
id: e.id || r?.id || crypto.randomUUID(),
|
|
14354
14361
|
name: e.name,
|
|
14355
14362
|
description: e.description,
|
|
14356
14363
|
data: e.data,
|
|
14357
|
-
schemaFingerprint: n ?
|
|
14364
|
+
schemaFingerprint: n ? j : r?.schemaFingerprint
|
|
14358
14365
|
};
|
|
14359
14366
|
});
|
|
14360
14367
|
r.updateNode(e, (e) => {
|
|
@@ -14436,7 +14443,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14436
14443
|
}));
|
|
14437
14444
|
}, Pe = (e) => {
|
|
14438
14445
|
let t = d.current ?? N?.id;
|
|
14439
|
-
t &&
|
|
14446
|
+
t && ne((n) => ({
|
|
14440
14447
|
...n,
|
|
14441
14448
|
[t]: e
|
|
14442
14449
|
}));
|
|
@@ -14471,8 +14478,8 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14471
14478
|
return `${(t.length > 0 ? t : s || n("request")).replace(/\.json$/i, "").replace(/[\\/:*?"<>|]/g, "-").trim() || n("request")}.json`;
|
|
14472
14479
|
}, [s, n]);
|
|
14473
14480
|
return {
|
|
14474
|
-
inputContract:
|
|
14475
|
-
currentSchemaFingerprint:
|
|
14481
|
+
inputContract: re,
|
|
14482
|
+
currentSchemaFingerprint: j,
|
|
14476
14483
|
exampleSources: M,
|
|
14477
14484
|
exampleDriftStates: ge,
|
|
14478
14485
|
hasAnyDriftedExample: _e,
|
|
@@ -14545,7 +14552,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14545
14552
|
n?.inputs,
|
|
14546
14553
|
n?.inputContract
|
|
14547
14554
|
]), s = o.schema, l = L(() => {
|
|
14548
|
-
let e =
|
|
14555
|
+
let e = ne(o.schema);
|
|
14549
14556
|
return e === "{}" ? "" : e;
|
|
14550
14557
|
}, [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
14558
|
y.current = e, g.current = e, p(e), t?.dirty !== void 0 && h(t.dirty);
|
|
@@ -14607,7 +14614,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14607
14614
|
let e = g.current;
|
|
14608
14615
|
if (!e.trim()) {
|
|
14609
14616
|
C.current = null;
|
|
14610
|
-
let e =
|
|
14617
|
+
let e = ne(x.current);
|
|
14611
14618
|
e.trim() && e !== "{}" && (C.current = "", E("")), T("", { dirty: !1 });
|
|
14612
14619
|
return;
|
|
14613
14620
|
}
|
|
@@ -14634,7 +14641,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14634
14641
|
simulatorExampleBinding: s,
|
|
14635
14642
|
fixturesRunner: c,
|
|
14636
14643
|
fixturesRun: l
|
|
14637
|
-
})), E = h ?? !1, { contract: D, sourceSchemaValue: O, schemaDraft: k, jsonToJsonSchemaOpen: ee, setJsonToJsonSchemaOpen: A, updateNodeSchema: te, handleSchemaDraftChange:
|
|
14644
|
+
})), E = h ?? !1, { contract: D, sourceSchemaValue: O, schemaDraft: k, jsonToJsonSchemaOpen: ee, setJsonToJsonSchemaOpen: A, updateNodeSchema: te, handleSchemaDraftChange: ne, commitSchemaDraft: re, handleConvertToJsonSchemaSuccess: j } = c_({
|
|
14638
14645
|
id: e,
|
|
14639
14646
|
type: t,
|
|
14640
14647
|
content: g,
|
|
@@ -14664,7 +14671,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14664
14671
|
activeDescriptionDraft: xe
|
|
14665
14672
|
}, {
|
|
14666
14673
|
setActiveTab: (e) => a(l_(e)),
|
|
14667
|
-
setSchemaDraft:
|
|
14674
|
+
setSchemaDraft: ne,
|
|
14668
14675
|
setActiveExampleJsonDraft: Ae,
|
|
14669
14676
|
setActiveDescriptionDraft: Me,
|
|
14670
14677
|
setActiveSourceIndex: ve
|
|
@@ -14849,10 +14856,10 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14849
14856
|
children: i === "code" ? /* @__PURE__ */ U(Rg, {
|
|
14850
14857
|
schemaDraft: k,
|
|
14851
14858
|
disabled: E,
|
|
14852
|
-
onSchemaChange:
|
|
14853
|
-
onSchemaCommit:
|
|
14859
|
+
onSchemaChange: ne,
|
|
14860
|
+
onSchemaCommit: re,
|
|
14854
14861
|
jsonToJsonSchemaOpen: ee,
|
|
14855
|
-
onConvertSuccess:
|
|
14862
|
+
onConvertSuccess: j,
|
|
14856
14863
|
onDismissConvert: () => A(!1),
|
|
14857
14864
|
onEditorMount: (e) => {
|
|
14858
14865
|
f.current = e;
|
|
@@ -14928,7 +14935,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14928
14935
|
type: Q.Input,
|
|
14929
14936
|
icon: /* @__PURE__ */ U(it, { size: "1em" }),
|
|
14930
14937
|
displayName: "Request",
|
|
14931
|
-
color:
|
|
14938
|
+
color: Wh.Green,
|
|
14932
14939
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions",
|
|
14933
14940
|
shortDescription: "Provides input context",
|
|
14934
14941
|
generateNode: () => ({
|
|
@@ -14946,7 +14953,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14946
14953
|
}),
|
|
14947
14954
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
14948
14955
|
let i = nh(), { disabled: a } = $(({ disabled: e }) => ({ disabled: e })), { modal: s } = Va.useApp(), c = o();
|
|
14949
|
-
return /* @__PURE__ */ U(
|
|
14956
|
+
return /* @__PURE__ */ U(Jh, {
|
|
14950
14957
|
id: e,
|
|
14951
14958
|
specification: r,
|
|
14952
14959
|
name: t.name,
|
|
@@ -14968,7 +14975,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
14968
14975
|
danger: !0,
|
|
14969
14976
|
label: /* @__PURE__ */ U(Yp, {
|
|
14970
14977
|
left: c("common.delete"),
|
|
14971
|
-
right:
|
|
14978
|
+
right: Ih.shortcut("Backspace")
|
|
14972
14979
|
}),
|
|
14973
14980
|
disabled: a,
|
|
14974
14981
|
onClick: () => s.confirm({
|
|
@@ -15110,7 +15117,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15110
15117
|
}, h_ = {
|
|
15111
15118
|
type: Q.Output,
|
|
15112
15119
|
icon: /* @__PURE__ */ U(nt, { size: "1em" }),
|
|
15113
|
-
color:
|
|
15120
|
+
color: Wh.Green,
|
|
15114
15121
|
displayName: "Response",
|
|
15115
15122
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions",
|
|
15116
15123
|
shortDescription: "Outputs the context",
|
|
@@ -15124,7 +15131,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15124
15131
|
}),
|
|
15125
15132
|
renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
|
|
15126
15133
|
let i = nh(), a = o();
|
|
15127
|
-
return /* @__PURE__ */ U(
|
|
15134
|
+
return /* @__PURE__ */ U(Jh, {
|
|
15128
15135
|
id: e,
|
|
15129
15136
|
specification: r,
|
|
15130
15137
|
name: t.name,
|
|
@@ -15153,7 +15160,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15153
15160
|
status: "modified",
|
|
15154
15161
|
previousValue: e.hitPolicy
|
|
15155
15162
|
});
|
|
15156
|
-
let i =
|
|
15163
|
+
let i = Ah(e?.statements || [], t?.statements || [], { compareFields: (e, t) => {
|
|
15157
15164
|
let n = (e.condition ?? "") !== t.condition;
|
|
15158
15165
|
return {
|
|
15159
15166
|
hasChanges: n,
|
|
@@ -15316,7 +15323,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15316
15323
|
disabled: n,
|
|
15317
15324
|
compactMode: i,
|
|
15318
15325
|
isGraphActive: a === "graph"
|
|
15319
|
-
})), p =
|
|
15326
|
+
})), p = Eh(e, { disabled: !d || !o }), m = s?.statements || [], h = s?.hitPolicy || "first", g = (t) => {
|
|
15320
15327
|
i.updateNode(e, (e) => (e.content.hitPolicy = t, e));
|
|
15321
15328
|
}, _ = (t, n) => {
|
|
15322
15329
|
i.updateNode(e, (e) => {
|
|
@@ -15324,7 +15331,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15324
15331
|
return r && (r.name = n), e;
|
|
15325
15332
|
}), i.setEdges(__(f ?? [], e, t, n));
|
|
15326
15333
|
}, v = L(() => u ? b_ : y_, [u]);
|
|
15327
|
-
return /* @__PURE__ */ U(
|
|
15334
|
+
return /* @__PURE__ */ U(Jh, {
|
|
15328
15335
|
id: e,
|
|
15329
15336
|
ref: a,
|
|
15330
15337
|
className: V(["h-auto w-[220px] rounded p-0"]),
|
|
@@ -15424,7 +15431,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15424
15431
|
displayName: "Switch",
|
|
15425
15432
|
documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/switch",
|
|
15426
15433
|
shortDescription: "Conditional branching",
|
|
15427
|
-
color:
|
|
15434
|
+
color: Wh.Purple,
|
|
15428
15435
|
getDiffContent: (e, t) => g_(e, t),
|
|
15429
15436
|
inferTypes: {
|
|
15430
15437
|
needsUpdate: () => !1,
|
|
@@ -15465,7 +15472,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15465
15472
|
status: "modified",
|
|
15466
15473
|
previousValue: n.name
|
|
15467
15474
|
});
|
|
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], () =>
|
|
15475
|
+
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
15476
|
let r = Mg?.getDiffContent?.(e?.content, n?.content);
|
|
15470
15477
|
return q(e?.content).with(K.string, () => (r?._diff?.fields?.source?.status === "modified" && _i.set(t, "content", {
|
|
15471
15478
|
status: "modified",
|
|
@@ -15474,7 +15481,7 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15474
15481
|
}).with([Q.Switch, Q.Switch], () => S_?.getDiffContent?.(e?.content, n?.content)).otherwise(() => {
|
|
15475
15482
|
let t = r.find((t) => t.type === e.type);
|
|
15476
15483
|
if (t) return t?.getDiffContent?.(e?.content, n?.content);
|
|
15477
|
-
let a =
|
|
15484
|
+
let a = Ch(i, {
|
|
15478
15485
|
kind: e?.content?.kind,
|
|
15479
15486
|
type: e?.type,
|
|
15480
15487
|
config: e?.content?.config,
|
|
@@ -15523,93 +15530,95 @@ var Hg = ({ message: e, action: t }) => /* @__PURE__ */ W("div", {
|
|
|
15523
15530
|
_diff: { status: "removed" }
|
|
15524
15531
|
});
|
|
15525
15532
|
}), 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
|
|
15533
|
+
}, 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 }) => {
|
|
15534
|
+
let D = R(!1), O = nh(), { stateStore: k, listenerStore: ee } = rh(), { decisionGraph: A, openTabs: te, activeTab: ne } = $(({ decisionGraph: e, openTabs: t, activeTab: n }) => ({
|
|
15528
15535
|
decisionGraph: e,
|
|
15529
15536
|
openTabs: t,
|
|
15530
15537
|
activeTab: n
|
|
15531
|
-
})),
|
|
15538
|
+
})), re = Mi((e) => {
|
|
15532
15539
|
o?.(e);
|
|
15533
15540
|
}, 100);
|
|
15534
15541
|
I(() => {
|
|
15535
|
-
if (
|
|
15536
|
-
let e =
|
|
15537
|
-
|
|
15542
|
+
if (y?.enabled) {
|
|
15543
|
+
let e = te.filter((e) => !!y?.permissions?.[e]);
|
|
15544
|
+
k.setState({
|
|
15538
15545
|
openTabs: e,
|
|
15539
|
-
activeTab:
|
|
15546
|
+
activeTab: y?.permissions?.[ne] ? ne : "graph"
|
|
15540
15547
|
});
|
|
15541
15548
|
}
|
|
15542
|
-
}, [
|
|
15543
|
-
let
|
|
15549
|
+
}, [y]);
|
|
15550
|
+
let j = L(() => {
|
|
15544
15551
|
let e = Array.isArray(c) ? c : [];
|
|
15545
|
-
return !
|
|
15546
|
-
}, [c,
|
|
15552
|
+
return !u || u.size === 0 ? e : e.filter((e) => u.has(e.kind));
|
|
15553
|
+
}, [c, u]);
|
|
15547
15554
|
return I(() => {
|
|
15548
|
-
|
|
15555
|
+
k.setState({
|
|
15549
15556
|
id: e,
|
|
15550
15557
|
disabled: i,
|
|
15551
15558
|
components: Array.isArray(s) ? s : [],
|
|
15552
|
-
customNodes: Array.isArray(
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15559
|
+
customNodes: Array.isArray(j) ? j : [],
|
|
15560
|
+
functionLibraries: l && l.length > 0 ? l : gh,
|
|
15561
|
+
extraCommands: Array.isArray(d) ? d : [],
|
|
15562
|
+
panels: m,
|
|
15563
|
+
viewConfig: y,
|
|
15564
|
+
viewConfigCta: v,
|
|
15565
|
+
hideLeftToolbar: p,
|
|
15566
|
+
dictionaries: g,
|
|
15567
|
+
mode: _
|
|
15560
15568
|
});
|
|
15561
15569
|
}, [
|
|
15562
15570
|
e,
|
|
15563
15571
|
i,
|
|
15564
15572
|
s,
|
|
15565
|
-
|
|
15573
|
+
j,
|
|
15566
15574
|
l,
|
|
15567
15575
|
u,
|
|
15568
|
-
|
|
15576
|
+
d,
|
|
15577
|
+
m,
|
|
15578
|
+
y,
|
|
15569
15579
|
v,
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
g
|
|
15580
|
+
p,
|
|
15581
|
+
g,
|
|
15582
|
+
_
|
|
15574
15583
|
]), I(() => {
|
|
15575
|
-
|
|
15584
|
+
k.setState({ name: r ?? "graph.json" });
|
|
15576
15585
|
}, [r]), I(() => {
|
|
15577
|
-
|
|
15578
|
-
}, [
|
|
15579
|
-
|
|
15580
|
-
}, [
|
|
15581
|
-
|
|
15582
|
-
onReactFlowInit:
|
|
15583
|
-
onPanelsChange:
|
|
15584
|
-
onCodeExtension:
|
|
15585
|
-
onFunctionReady:
|
|
15586
|
-
onViewConfigCta:
|
|
15587
|
-
onContractEvent:
|
|
15586
|
+
k.setState({ simulate: h });
|
|
15587
|
+
}, [h]), I(() => {
|
|
15588
|
+
k.setState({ fixturesRunner: T ?? null });
|
|
15589
|
+
}, [T]), I(() => {
|
|
15590
|
+
ee.setState({
|
|
15591
|
+
onReactFlowInit: S,
|
|
15592
|
+
onPanelsChange: x,
|
|
15593
|
+
onCodeExtension: C,
|
|
15594
|
+
onFunctionReady: w,
|
|
15595
|
+
onViewConfigCta: b,
|
|
15596
|
+
onContractEvent: E
|
|
15588
15597
|
});
|
|
15589
15598
|
}, [
|
|
15590
|
-
x,
|
|
15591
|
-
b,
|
|
15592
15599
|
S,
|
|
15600
|
+
x,
|
|
15593
15601
|
C,
|
|
15594
|
-
|
|
15595
|
-
|
|
15602
|
+
w,
|
|
15603
|
+
b,
|
|
15604
|
+
E
|
|
15596
15605
|
]), I(() => {
|
|
15597
|
-
|
|
15598
|
-
}, [
|
|
15599
|
-
n === void 0 || a ||
|
|
15606
|
+
ee.setState({ onChange: re });
|
|
15607
|
+
}, [re]), I(() => {
|
|
15608
|
+
n === void 0 || a || D.current && !(0, Sc.default)(n, A) && O.setDecisionGraph(n);
|
|
15600
15609
|
}, [n, a]), I(() => {
|
|
15601
|
-
n === void 0 ? t !== void 0 &&
|
|
15610
|
+
n === void 0 ? t !== void 0 && O.setDecisionGraph(t) : O.setDecisionGraph(a ? C_(n, a, {
|
|
15602
15611
|
customNodes: c ?? [],
|
|
15603
15612
|
components: s ?? []
|
|
15604
|
-
}) : n),
|
|
15605
|
-
activePanel:
|
|
15606
|
-
hideLeftToolbar:
|
|
15607
|
-
}),
|
|
15613
|
+
}) : n), k.setState({
|
|
15614
|
+
activePanel: f,
|
|
15615
|
+
hideLeftToolbar: p
|
|
15616
|
+
}), D.current = !0;
|
|
15608
15617
|
}, []), I(() => {
|
|
15609
|
-
n !== void 0 && (a ?
|
|
15618
|
+
n !== void 0 && (a ? O.setDecisionGraph(C_(n, a, {
|
|
15610
15619
|
customNodes: c ?? [],
|
|
15611
15620
|
components: s ?? []
|
|
15612
|
-
})) :
|
|
15621
|
+
})) : D.current && O.setDecisionGraph(n));
|
|
15613
15622
|
}, [a]), null;
|
|
15614
15623
|
}, D_ = () => {
|
|
15615
15624
|
let e = null;
|
|
@@ -15689,8 +15698,8 @@ function M_(e) {
|
|
|
15689
15698
|
var N_ = M_({
|
|
15690
15699
|
[Q.Input]: d_,
|
|
15691
15700
|
[Q.Output]: h_,
|
|
15692
|
-
[Q.DecisionTable]:
|
|
15693
|
-
[Q.Expression]:
|
|
15701
|
+
[Q.DecisionTable]: ng,
|
|
15702
|
+
[Q.Expression]: kg,
|
|
15694
15703
|
[Q.Function]: Mg,
|
|
15695
15704
|
[Q.Switch]: S_
|
|
15696
15705
|
}), P_ = () => {
|
|
@@ -15758,7 +15767,7 @@ var N_ = M_({
|
|
|
15758
15767
|
return n[Zm.Output] ?? n[Zm.InferredOutput];
|
|
15759
15768
|
}).filter((e) => !!e).map((e) => e.clone()), i = q(e.length).with(1, () => e[0]).otherwise(() => zn.fromIncoming(e));
|
|
15760
15769
|
(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 ??
|
|
15770
|
+
let c = N_[o.type]?.inferTypes ?? Ch(n, {
|
|
15762
15771
|
kind: o.content?.kind,
|
|
15763
15772
|
type: o.type,
|
|
15764
15773
|
config: o.content?.config,
|
|
@@ -15795,7 +15804,7 @@ var N_ = M_({
|
|
|
15795
15804
|
inputNodeType: q(t?.[s ?? ""]?.[Zm.InferredOutput]).with(K.nonNullable, (e) => e.hash()).otherwise(() => null)
|
|
15796
15805
|
};
|
|
15797
15806
|
}, L_ = ({ decisionGraph: e, customNodes: t }, n) => e.nodes.map((e) => {
|
|
15798
|
-
let r = N_[e.type]?.inferTypes ??
|
|
15807
|
+
let r = N_[e.type]?.inferTypes ?? Ch(t, {
|
|
15799
15808
|
kind: e.content?.kind,
|
|
15800
15809
|
type: e.type,
|
|
15801
15810
|
config: e.content?.config,
|
|
@@ -15937,7 +15946,7 @@ var N_ = M_({
|
|
|
15937
15946
|
type: e.type,
|
|
15938
15947
|
position: d,
|
|
15939
15948
|
...u
|
|
15940
|
-
}, p =
|
|
15949
|
+
}, p = j.safeParse(f);
|
|
15941
15950
|
p.success && (t.addNodes([p.data]), t.addEdges([{
|
|
15942
15951
|
id: crypto.randomUUID(),
|
|
15943
15952
|
sourceId: r,
|
|
@@ -16093,7 +16102,7 @@ var N_ = M_({
|
|
|
16093
16102
|
if (s) {
|
|
16094
16103
|
try {
|
|
16095
16104
|
let e = JSON.parse(s);
|
|
16096
|
-
n([
|
|
16105
|
+
n([j.parse({
|
|
16097
16106
|
...e,
|
|
16098
16107
|
position: o
|
|
16099
16108
|
})]);
|
|
@@ -16149,7 +16158,7 @@ var N_ = M_({
|
|
|
16149
16158
|
};
|
|
16150
16159
|
o = t.current.screenToFlowPosition(r);
|
|
16151
16160
|
}
|
|
16152
|
-
let c = q(a).with("customNode", () =>
|
|
16161
|
+
let c = q(a).with("customNode", () => Ch(n, {
|
|
16153
16162
|
kind: s,
|
|
16154
16163
|
type: a
|
|
16155
16164
|
})).otherwise(() => [...Object.values(N_), ...r].find((e) => e.type === a));
|
|
@@ -16187,8 +16196,8 @@ var N_ = M_({
|
|
|
16187
16196
|
} catch {
|
|
16188
16197
|
return;
|
|
16189
16198
|
}
|
|
16190
|
-
let u =
|
|
16191
|
-
if (u.success) return i([
|
|
16199
|
+
let u = j.safeParse(l);
|
|
16200
|
+
if (u.success) return i([j.parse(l)]);
|
|
16192
16201
|
B.error(u.error?.message);
|
|
16193
16202
|
}, Z_ = ({ addNode: e, specifications: t }) => {
|
|
16194
16203
|
let n = o(), r = nh(), { commandMenuOpen: i, panels: a, activePanelId: s, nodes: c, extraCommands: l } = $(({ commandMenuOpen: e, panels: t, activePanel: n, decisionGraph: r, extraCommands: i }) => ({
|
|
@@ -16429,7 +16438,7 @@ var N_ = M_({
|
|
|
16429
16438
|
children: a.label
|
|
16430
16439
|
}), /* @__PURE__ */ U("div", {
|
|
16431
16440
|
style: { pointerEvents: "none" },
|
|
16432
|
-
children: /* @__PURE__ */ U(
|
|
16441
|
+
children: /* @__PURE__ */ U(Gh, {
|
|
16433
16442
|
listMode: !0,
|
|
16434
16443
|
compactMode: !0,
|
|
16435
16444
|
color: e.color,
|
|
@@ -16454,7 +16463,7 @@ var N_ = M_({
|
|
|
16454
16463
|
name: typeof t.data?.name == "string" ? t.data.name : void 0
|
|
16455
16464
|
}), i(!1);
|
|
16456
16465
|
} }), !t || r) return null;
|
|
16457
|
-
let s = t.type === "customNode" ?
|
|
16466
|
+
let s = t.type === "customNode" ? Ch(a, {
|
|
16458
16467
|
kind: t.kind,
|
|
16459
16468
|
type: t.type
|
|
16460
16469
|
}) : N_[t.type], c = s?.renderSettings;
|
|
@@ -16471,7 +16480,7 @@ var N_ = M_({
|
|
|
16471
16480
|
children: [/* @__PURE__ */ W("div", {
|
|
16472
16481
|
className: "flex items-center gap-2 border-b border-b-[var(--border)] p-2",
|
|
16473
16482
|
children: [
|
|
16474
|
-
/* @__PURE__ */ U(
|
|
16483
|
+
/* @__PURE__ */ U(Hh, {
|
|
16475
16484
|
variant: "soft",
|
|
16476
16485
|
size: "xs",
|
|
16477
16486
|
"aria-hidden": !0,
|
|
@@ -16482,7 +16491,7 @@ var N_ = M_({
|
|
|
16482
16491
|
children: [/* @__PURE__ */ U("span", {
|
|
16483
16492
|
className: "truncate text-xs font-medium",
|
|
16484
16493
|
children: t.name
|
|
16485
|
-
}), t.type !== "customNode" && /* @__PURE__ */ U(
|
|
16494
|
+
}), t.type !== "customNode" && /* @__PURE__ */ U(Bh, {
|
|
16486
16495
|
variant: "secondary",
|
|
16487
16496
|
size: "xs",
|
|
16488
16497
|
className: "w-fit max-w-full truncate",
|
|
@@ -16544,7 +16553,7 @@ var N_ = M_({
|
|
|
16544
16553
|
}));
|
|
16545
16554
|
m.nodesState.current = a, m.edgesState.current = s, m.graphClipboard.current = K_(i, r), m.reactFlowInstance.current = i.current;
|
|
16546
16555
|
let S = L(() => P.memo((e) => {
|
|
16547
|
-
let t = o(), { openTab: n } = nh(), r =
|
|
16556
|
+
let t = o(), { openTab: n } = nh(), r = Ch(b, {
|
|
16548
16557
|
kind: e?.data?.kind,
|
|
16549
16558
|
type: "customNode",
|
|
16550
16559
|
config: e?.data?.config,
|
|
@@ -16553,7 +16562,7 @@ var N_ = M_({
|
|
|
16553
16562
|
return r ? r.renderNode({
|
|
16554
16563
|
specification: r,
|
|
16555
16564
|
...e
|
|
16556
|
-
}) : (console.warn("node not found", e, b), /* @__PURE__ */ U(
|
|
16565
|
+
}) : (console.warn("node not found", e, b), /* @__PURE__ */ U(Jh, {
|
|
16557
16566
|
id: e.id,
|
|
16558
16567
|
specification: {
|
|
16559
16568
|
displayName: `${e.data?.kind}`,
|
|
@@ -16821,7 +16830,7 @@ var N_ = M_({
|
|
|
16821
16830
|
size: 24,
|
|
16822
16831
|
shape: "square",
|
|
16823
16832
|
style: {
|
|
16824
|
-
background: t?.color ||
|
|
16833
|
+
background: t?.color || Wh.Blue,
|
|
16825
16834
|
fontSize: 16,
|
|
16826
16835
|
lineHeight: "22px",
|
|
16827
16836
|
borderRadius: 3
|
|
@@ -17633,7 +17642,7 @@ var N_ = M_({
|
|
|
17633
17642
|
};
|
|
17634
17643
|
})]
|
|
17635
17644
|
}) });
|
|
17636
|
-
}, Sv = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: s =
|
|
17645
|
+
}, Sv = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: s = Wh.Blue, onClose: c, onContextClick: l }) => {
|
|
17637
17646
|
let u = o(), d = [
|
|
17638
17647
|
e > 0 && t !== -1 && {
|
|
17639
17648
|
key: "close",
|
|
@@ -18131,18 +18140,18 @@ var oy = (e, t = 42) => {
|
|
|
18131
18140
|
value: e.key,
|
|
18132
18141
|
label: e.key
|
|
18133
18142
|
}));
|
|
18134
|
-
}, [e, m]), [A, te] = z(null), [
|
|
18143
|
+
}, [e, m]), [A, te] = z(null), [ne, re] = z(null), j = (e) => {
|
|
18135
18144
|
navigator.clipboard?.writeText(e).catch(() => {}), te(e), window.setTimeout(() => te((t) => t === e ? null : t), 1200);
|
|
18136
18145
|
}, M = (e) => {
|
|
18137
|
-
if (!m || !
|
|
18138
|
-
|
|
18146
|
+
if (!m || !ne) {
|
|
18147
|
+
j(e);
|
|
18139
18148
|
return;
|
|
18140
18149
|
}
|
|
18141
18150
|
g(m.id, { call: {
|
|
18142
18151
|
...m.call,
|
|
18143
18152
|
kwargs: {
|
|
18144
18153
|
...m.call.kwargs,
|
|
18145
|
-
[
|
|
18154
|
+
[ne]: {
|
|
18146
18155
|
mode: "expression",
|
|
18147
18156
|
value: e
|
|
18148
18157
|
}
|
|
@@ -18403,7 +18412,7 @@ var oy = (e, t = 42) => {
|
|
|
18403
18412
|
className: "flex flex-wrap gap-1",
|
|
18404
18413
|
children: ie.map((e) => /* @__PURE__ */ W("button", {
|
|
18405
18414
|
type: "button",
|
|
18406
|
-
title:
|
|
18415
|
+
title: ne ? u("cf.referenceInsert", { param: ne }) : u("cf.referenceCopy"),
|
|
18407
18416
|
"data-testid": `reference-chip-${e.ref}`,
|
|
18408
18417
|
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
18418
|
onClick: () => M(e.ref),
|
|
@@ -18443,8 +18452,8 @@ var oy = (e, t = 42) => {
|
|
|
18443
18452
|
let t = y.parameters?.properties?.[e], i = typeof t?.type == "string" ? t.type : "string", a = Qf(m.call.kwargs[e]);
|
|
18444
18453
|
return /* @__PURE__ */ W("div", {
|
|
18445
18454
|
"data-testid": `param-row-${e}`,
|
|
18446
|
-
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md",
|
|
18447
|
-
onClick: () =>
|
|
18455
|
+
className: V("grid grid-cols-[120px_minmax(0,1fr)] items-center gap-2 rounded-md", ne === e && "bg-[var(--seal-color-warning-bg)]"),
|
|
18456
|
+
onClick: () => re(e),
|
|
18448
18457
|
children: [/* @__PURE__ */ W("div", {
|
|
18449
18458
|
className: "flex min-w-0 items-center gap-1",
|
|
18450
18459
|
children: [
|
|
@@ -18564,21 +18573,21 @@ var oy = (e, t = 42) => {
|
|
|
18564
18573
|
user: t ?? "",
|
|
18565
18574
|
proj: t ?? ""
|
|
18566
18575
|
}, e));
|
|
18567
|
-
}, [k, ee] = z("table"), [A, te] = z(null), [
|
|
18568
|
-
te(JSON.stringify(f ?? [], null, 2)),
|
|
18576
|
+
}, [k, ee] = z("table"), [A, te] = z(null), [ne, re] = z(null), j = () => {
|
|
18577
|
+
te(JSON.stringify(f ?? [], null, 2)), re(null), ee("code");
|
|
18569
18578
|
}, M = () => {
|
|
18570
18579
|
if (A !== null) try {
|
|
18571
18580
|
let e = JSON.parse(A);
|
|
18572
18581
|
if (!Array.isArray(e)) {
|
|
18573
|
-
|
|
18582
|
+
re("Expected an array");
|
|
18574
18583
|
return;
|
|
18575
18584
|
}
|
|
18576
|
-
ee("table"),
|
|
18585
|
+
ee("table"), re(null), E(e);
|
|
18577
18586
|
} catch {
|
|
18578
|
-
|
|
18587
|
+
re("Invalid JSON");
|
|
18579
18588
|
}
|
|
18580
18589
|
}, ie = () => {
|
|
18581
|
-
ee("table"), te(null),
|
|
18590
|
+
ee("table"), te(null), re(null);
|
|
18582
18591
|
};
|
|
18583
18592
|
return /* @__PURE__ */ W("div", {
|
|
18584
18593
|
className: "flex h-full flex-col overflow-hidden",
|
|
@@ -18656,7 +18665,7 @@ var oy = (e, t = 42) => {
|
|
|
18656
18665
|
size: "small",
|
|
18657
18666
|
type: k === "code" ? "primary" : "default",
|
|
18658
18667
|
className: "!px-2",
|
|
18659
|
-
onClick:
|
|
18668
|
+
onClick: j,
|
|
18660
18669
|
children: u("cf.modeCode")
|
|
18661
18670
|
})]
|
|
18662
18671
|
})
|
|
@@ -18671,9 +18680,9 @@ var oy = (e, t = 42) => {
|
|
|
18671
18680
|
onBlur: M,
|
|
18672
18681
|
disabled: i,
|
|
18673
18682
|
spellCheck: !1
|
|
18674
|
-
}),
|
|
18683
|
+
}), ne && /* @__PURE__ */ U("div", {
|
|
18675
18684
|
className: "border-t border-destructive/40 bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
18676
|
-
children:
|
|
18685
|
+
children: ne
|
|
18677
18686
|
})]
|
|
18678
18687
|
}),
|
|
18679
18688
|
k === "table" && /* @__PURE__ */ W(H, { children: [
|
|
@@ -18882,7 +18891,7 @@ var oy = (e, t = 42) => {
|
|
|
18882
18891
|
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
18892
|
children: /* @__PURE__ */ U("div", {
|
|
18884
18893
|
className: "flex min-h-0 w-full flex-1 flex-col overflow-hidden [&>*]:h-full",
|
|
18885
|
-
children: q(t?.type).with(Q.DecisionTable, () =>
|
|
18894
|
+
children: q(t?.type).with(Q.DecisionTable, () => ng?.renderTab?.({
|
|
18886
18895
|
id: t?.id,
|
|
18887
18896
|
user: i,
|
|
18888
18897
|
disabled: a,
|
|
@@ -18892,7 +18901,7 @@ var oy = (e, t = 42) => {
|
|
|
18892
18901
|
user: i,
|
|
18893
18902
|
disabled: a,
|
|
18894
18903
|
node: t
|
|
18895
|
-
})).with(Q.Expression, () =>
|
|
18904
|
+
})).with(Q.Expression, () => kg?.renderTab?.({
|
|
18896
18905
|
id: t?.id,
|
|
18897
18906
|
user: i,
|
|
18898
18907
|
disabled: a,
|
|
@@ -18917,7 +18926,7 @@ var oy = (e, t = 42) => {
|
|
|
18917
18926
|
node: t
|
|
18918
18927
|
});
|
|
18919
18928
|
if (t.kind) {
|
|
18920
|
-
let n =
|
|
18929
|
+
let n = Ch(o, t);
|
|
18921
18930
|
return n?.renderTab ? n.renderTab({
|
|
18922
18931
|
id: t.id,
|
|
18923
18932
|
user: i,
|
|
@@ -18960,6 +18969,7 @@ var oy = (e, t = 42) => {
|
|
|
18960
18969
|
color: e.color,
|
|
18961
18970
|
displayName: e.displayName,
|
|
18962
18971
|
group: e.group,
|
|
18972
|
+
documentationUrl: e.documentationUrl,
|
|
18963
18973
|
shortDescription: e.shortDescription,
|
|
18964
18974
|
searchKeywords: e.searchKeywords,
|
|
18965
18975
|
meta: e.meta,
|
|
@@ -18970,7 +18980,7 @@ var oy = (e, t = 42) => {
|
|
|
18970
18980
|
onNodeAdd: e.onNodeAdd,
|
|
18971
18981
|
renderNode: e.renderNode ? e.renderNode : ({ id: t, specification: n, data: r, selected: i }) => {
|
|
18972
18982
|
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(
|
|
18983
|
+
return /* @__PURE__ */ U(Jh, {
|
|
18974
18984
|
id: t,
|
|
18975
18985
|
specification: n,
|
|
18976
18986
|
name: r.name,
|
|
@@ -19158,7 +19168,7 @@ var Oy = Le(() => import("./simulate-run-detail-qZE4KheI.js").then((e) => ({ def
|
|
|
19158
19168
|
className: "font-mono opacity-70",
|
|
19159
19169
|
children: new Date(t.ts).toLocaleTimeString("en-GB")
|
|
19160
19170
|
}),
|
|
19161
|
-
/* @__PURE__ */ U(
|
|
19171
|
+
/* @__PURE__ */ U(Bh, {
|
|
19162
19172
|
size: "xs",
|
|
19163
19173
|
variant: t.ok ? "outline" : "destructive",
|
|
19164
19174
|
className: t.ok ? "border-success/40 text-success" : void 0,
|
|
@@ -19713,20 +19723,20 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19713
19723
|
c.setNodeType(t.id, Zm.InferredOutput, new zn(e));
|
|
19714
19724
|
} catch {}
|
|
19715
19725
|
}, [T]);
|
|
19716
|
-
let { persistRequestToExampleSource:
|
|
19726
|
+
let { persistRequestToExampleSource: ne } = By({
|
|
19717
19727
|
t: a,
|
|
19718
19728
|
requestValue: T,
|
|
19719
19729
|
resolvedSimulatorExampleBinding: y,
|
|
19720
19730
|
onRequestValueChange: E,
|
|
19721
19731
|
onMarkEdited: () => O(!0),
|
|
19722
19732
|
onExternalChange: e
|
|
19723
|
-
}),
|
|
19733
|
+
}), j = JSON.stringify(m.map((e) => e.data)), { flush: M } = Hy({
|
|
19724
19734
|
enabled: !!(t && y),
|
|
19725
19735
|
requestValue: T,
|
|
19726
|
-
requestSourcesSignature:
|
|
19736
|
+
requestSourcesSignature: j,
|
|
19727
19737
|
boundRequestSourceIndex: h,
|
|
19728
19738
|
onSyncToSchema: () => {
|
|
19729
|
-
|
|
19739
|
+
ne({
|
|
19730
19740
|
validateDefinitionTypes: !1,
|
|
19731
19741
|
silentWhenUnbound: !0,
|
|
19732
19742
|
showSuccessMessage: !1,
|
|
@@ -19751,7 +19761,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19751
19761
|
onSourceChange: te,
|
|
19752
19762
|
onFormat: () => {
|
|
19753
19763
|
try {
|
|
19754
|
-
let t = ti.parse(T || ""), n =
|
|
19764
|
+
let t = ti.parse(T || ""), n = re(t), r = JSON.stringify(n, null, 2);
|
|
19755
19765
|
E(r), O(!0), c.setSimulatorRequest(r), e?.(r), B.success(a("simulator.formatSuccess"));
|
|
19756
19766
|
} catch {
|
|
19757
19767
|
B.error(a("simulator.formatFailed"));
|
|
@@ -19802,7 +19812,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
19802
19812
|
}, Ky = /* @__PURE__ */ function(e) {
|
|
19803
19813
|
return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e.Runs = "Runs", e;
|
|
19804
19814
|
}(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] =
|
|
19815
|
+
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
19816
|
simulate: t,
|
|
19807
19817
|
hasInputNode: e.nodes.some((e) => e.type === Q.Input),
|
|
19808
19818
|
nodeTypes: (e.nodes ?? []).reduce((e, t) => ({
|
|
@@ -20448,7 +20458,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20448
20458
|
Info: 2,
|
|
20449
20459
|
Warning: 4,
|
|
20450
20460
|
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 =
|
|
20461
|
+
}, 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
20462
|
let m = ra(), h = R(!1), g = fc(), [_, v] = z(), [y, b] = z(), x = Mi((e) => {
|
|
20453
20463
|
a?.(e);
|
|
20454
20464
|
}, 100), [S, C] = z(), [w, T] = z(), E = Ni(() => S?.layout(), 100, { trailing: !0 }), D = Ni(() => w?.layout(), 100, { trailing: !0 });
|
|
@@ -20467,10 +20477,10 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20467
20477
|
noSemanticValidation: !1,
|
|
20468
20478
|
noSuggestionDiagnostics: !1,
|
|
20469
20479
|
onlyVisible: !1
|
|
20470
|
-
}), m.languages.typescript.javascriptDefaults.setExtraLibs(
|
|
20480
|
+
}), m.languages.typescript.javascriptDefaults.setExtraLibs(gh.map((e) => ({
|
|
20471
20481
|
content: `declare module '${e.name}' { ${e.typeDef} }`,
|
|
20472
20482
|
filePath: e.name
|
|
20473
|
-
}))), Object.entries(
|
|
20483
|
+
}))), Object.entries(_h.globals).forEach(([e, t]) => {
|
|
20474
20484
|
m.languages.typescript.javascriptDefaults.addExtraLib(t, `ts:${e}`);
|
|
20475
20485
|
}), s?.(m));
|
|
20476
20486
|
}, [m, p]), I(() => {
|
|
@@ -20570,7 +20580,7 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20570
20580
|
}), !t && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(sa, {}), /* @__PURE__ */ U(aa, {
|
|
20571
20581
|
minSize: 25,
|
|
20572
20582
|
children: !t && /* @__PURE__ */ U(vb, {
|
|
20573
|
-
libraries:
|
|
20583
|
+
libraries: p,
|
|
20574
20584
|
trace: o,
|
|
20575
20585
|
editor: S,
|
|
20576
20586
|
editorValue: i,
|
|
@@ -20598,6 +20608,6 @@ var zy = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
|
|
|
20598
20608
|
//#region src/index.ts
|
|
20599
20609
|
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
20610
|
//#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,
|
|
20611
|
+
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, te 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, ne 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
20612
|
|
|
20603
20613
|
//# sourceMappingURL=index.js.map
|