@republicroad/seal-editor 1.12.0 → 1.15.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.js CHANGED
@@ -11544,7 +11544,7 @@ var ah = ({ className: e, ...t }) => /* @__PURE__ */ V("div", {
11544
11544
  children: /* @__PURE__ */ H("div", {
11545
11545
  className: "flex flex-col",
11546
11546
  children: [/* @__PURE__ */ H("div", {
11547
- className: "flex items-center justify-between pl-2.5 bg-[var(--seal-color-primary-bg-fade)] rounded-t-[var(--node-border-radius)] border-b border-b-[var(--border)]",
11547
+ className: "flex items-center justify-between gap-1 p-2 bg-[var(--seal-color-primary-bg-fade)] rounded-t-[var(--node-border-radius)] border-b border-b-[var(--border)]",
11548
11548
  children: [/* @__PURE__ */ V(X.Text, {
11549
11549
  className: "text-xs! text-[var(--muted-foreground)]",
11550
11550
  children: b
@@ -11556,7 +11556,7 @@ var ah = ({ className: e, ...t }) => /* @__PURE__ */ V("div", {
11556
11556
  onClick: x
11557
11557
  })]
11558
11558
  }), /* @__PURE__ */ V("div", {
11559
- className: "flex flex-col p-2.5 gap-0.5 [&_.settings-form_.seal-ce]:text-xs",
11559
+ className: "flex flex-col p-2.5 gap-1 [&_.settings-form_.seal-ce]:text-xs",
11560
11560
  children: v
11561
11561
  })]
11562
11562
  })
@@ -11846,14 +11846,19 @@ function hh({ className: e, ...t }) {
11846
11846
  //#region src/components/decision-graph/nodes/specifications/settings-frame.tsx
11847
11847
  var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
11848
11848
  className: "settings-form w-full",
11849
+ spacing: "xs",
11849
11850
  children: [/* @__PURE__ */ H(mh, { children: [/* @__PURE__ */ V(hh, { children: e }), t ? /* @__PURE__ */ V("p", {
11850
11851
  className: "text-muted-foreground text-xs",
11851
11852
  children: t
11852
11853
  }) : null] }), /* @__PURE__ */ V(ph, {
11853
- className: "flex flex-col gap-3",
11854
+ className: "flex flex-col gap-2",
11854
11855
  children: n
11855
11856
  })]
11856
11857
  }), _h = {
11858
+ fontSize: 12,
11859
+ lineHeight: "20px",
11860
+ width: "100%"
11861
+ }, vh = {
11857
11862
  type: Q.DecisionTable,
11858
11863
  icon: /* @__PURE__ */ V(Dt, { size: "1em" }),
11859
11864
  displayName: "Decision table",
@@ -12032,25 +12037,21 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12032
12037
  title: "Decision table",
12033
12038
  children: [
12034
12039
  /* @__PURE__ */ V(lo.Item, {
12035
- label: "Hit Policy",
12036
- children: /* @__PURE__ */ V(Lo, {
12037
- direction: "vertical",
12038
- size: 2,
12039
- children: /* @__PURE__ */ V(Ap, {
12040
- size: "small",
12041
- previousValue: r?.fields?.hitPolicy?.previousValue,
12042
- displayDiff: r?.fields?.hitPolicy?.status === "modified",
12043
- disabled: a,
12044
- value: i?.hitPolicy,
12045
- onChange: (e) => o({ hitPolicy: e?.target?.value }),
12046
- options: [{
12047
- value: "first",
12048
- label: "First"
12049
- }, {
12050
- value: "collect",
12051
- label: "Collect"
12052
- }]
12053
- })
12040
+ label: "Hit policy",
12041
+ children: /* @__PURE__ */ V(Ap, {
12042
+ size: "small",
12043
+ previousValue: r?.fields?.hitPolicy?.previousValue,
12044
+ displayDiff: r?.fields?.hitPolicy?.status === "modified",
12045
+ disabled: a,
12046
+ value: i?.hitPolicy,
12047
+ onChange: (e) => o({ hitPolicy: e?.target?.value }),
12048
+ options: [{
12049
+ value: "first",
12050
+ label: "First"
12051
+ }, {
12052
+ value: "collect",
12053
+ label: "Collect"
12054
+ }]
12054
12055
  })
12055
12056
  }),
12056
12057
  /* @__PURE__ */ V(lo.Item, {
@@ -12071,11 +12072,7 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12071
12072
  disabled: a,
12072
12073
  displayDiff: r?.fields?.inputField?.status === "modified",
12073
12074
  previousValue: r?.fields?.inputField?.previousValue,
12074
- style: {
12075
- fontSize: 12,
12076
- lineHeight: "20px",
12077
- width: "100%"
12078
- },
12075
+ style: _h,
12079
12076
  expectedVariableType: i?.executionMode === "loop" ? { Array: "Any" } : void 0,
12080
12077
  maxRows: 4,
12081
12078
  value: i?.inputField ?? "",
@@ -12114,7 +12111,7 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12114
12111
  ]
12115
12112
  });
12116
12113
  }
12117
- }, vh = {
12114
+ }, yh = {
12118
12115
  display: "inline-flex",
12119
12116
  alignItems: "center",
12120
12117
  gap: 8,
@@ -12129,22 +12126,22 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12129
12126
  color: "var(--foreground)",
12130
12127
  cursor: "grabbing",
12131
12128
  pointerEvents: "none"
12132
- }, yh = {
12129
+ }, bh = {
12133
12130
  maxWidth: 140,
12134
12131
  overflow: "hidden",
12135
12132
  textOverflow: "ellipsis",
12136
12133
  whiteSpace: "nowrap"
12137
- }, bh = ({ children: e }) => /* @__PURE__ */ V("div", {
12134
+ }, xh = ({ children: e }) => /* @__PURE__ */ V("div", {
12138
12135
  className: "seal-drag-overlay",
12139
- style: vh,
12136
+ style: yh,
12140
12137
  children: e
12141
- }), xh = ({ children: e, width: t }) => /* @__PURE__ */ V("span", {
12138
+ }), Sh = ({ children: e, width: t }) => /* @__PURE__ */ V("span", {
12142
12139
  style: {
12143
- ...yh,
12140
+ ...bh,
12144
12141
  ...t ? { maxWidth: t } : {}
12145
12142
  },
12146
12143
  children: e
12147
- }), Sh = ({ index: e }) => /* @__PURE__ */ V("span", {
12144
+ }), Ch = ({ index: e }) => /* @__PURE__ */ V("span", {
12148
12145
  style: {
12149
12146
  minWidth: 20,
12150
12147
  textAlign: "center",
@@ -12155,20 +12152,20 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12155
12152
  fontWeight: 500
12156
12153
  },
12157
12154
  children: e + 1
12158
- }), Ch = M.createContext({}), wh = (e = {}) => ({
12155
+ }), wh = M.createContext({}), Th = (e = {}) => ({
12159
12156
  id: crypto.randomUUID(),
12160
12157
  key: "",
12161
12158
  value: "",
12162
12159
  ...e
12163
- }), Th = ({ children: e }) => {
12160
+ }), Eh = ({ children: e }) => {
12164
12161
  let t = F(() => Dn((e) => ({
12165
12162
  disabled: !1,
12166
12163
  debugIndex: 0,
12167
12164
  addRowAbove: (t = 0) => {
12168
- e(U((e) => (e.expressions.splice(t, 0, wh()), e)));
12165
+ e(U((e) => (e.expressions.splice(t, 0, Th()), e)));
12169
12166
  },
12170
12167
  addRowBelow: (t) => {
12171
- e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, wh()), e)));
12168
+ e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, Th()), e)));
12172
12169
  },
12173
12170
  expressions: [],
12174
12171
  setExpressions: (t) => {
@@ -12190,15 +12187,15 @@ var gh = ({ title: e, description: t, children: n }) => /* @__PURE__ */ H(fh, {
12190
12187
  }, e)));
12191
12188
  }
12192
12189
  })), []);
12193
- return /* @__PURE__ */ V(Ch.Provider, {
12190
+ return /* @__PURE__ */ V(wh.Provider, {
12194
12191
  value: t,
12195
12192
  children: e
12196
12193
  });
12197
12194
  };
12198
- function Eh(e, t = mc.default) {
12199
- return On(M.useContext(Ch), hc(e, t));
12195
+ function Dh(e, t = mc.default) {
12196
+ return On(M.useContext(wh), hc(e, t));
12200
12197
  }
12201
- var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIndexChange: n, className: r }) => {
12198
+ var Oh = () => M.useContext(wh), kh = ({ debugIndex: e, traceCount: t, onDebugIndexChange: n, className: r }) => {
12202
12199
  let i = Z(), a = F(() => t ? Array.from({ length: t }).map((e, t) => ({
12203
12200
  label: String(t),
12204
12201
  value: t
@@ -12231,8 +12228,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12231
12228
  })]
12232
12229
  })]
12233
12230
  }) : null;
12234
- }, kh = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full" }) => {
12235
- let a = I(!1), o = Dh(), { setExpressions: s, expressions: c } = Eh(({ setExpressions: e, expressions: t }) => ({
12231
+ }, Ah = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full" }) => {
12232
+ let a = I(!1), o = Oh(), { setExpressions: s, expressions: c } = Dh(({ setExpressions: e, expressions: t }) => ({
12236
12233
  setExpressions: e,
12237
12234
  expressions: t
12238
12235
  }));
@@ -12250,10 +12247,10 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12250
12247
  }, [e]), P(() => {
12251
12248
  e ? s(e) : n && s(n), a.current = !0;
12252
12249
  }, []), null;
12253
- }, Ah = (e, t) => !e || !t ? "up" : e.top + e.height / 2 > t.top + t.height / 2 ? "down" : "up", jh = (e, t) => G(e).with(W.array(), (e) => {
12250
+ }, jh = (e, t) => !e || !t ? "up" : e.top + e.height / 2 > t.top + t.height / 2 ? "down" : "up", Mh = (e, t) => G(e).with(W.array(), (e) => {
12254
12251
  let n = e;
12255
12252
  return n[G(t).with(W.number.between(0, n.length - 1), (e) => e).otherwise(() => 0)];
12256
- }).otherwise((e) => e), Mh = ({ index: e, disabled: t, addRowAbove: n, addRowBelow: r, children: i }) => {
12253
+ }).otherwise((e) => e), Nh = ({ index: e, disabled: t, addRowAbove: n, addRowBelow: r, children: i }) => {
12257
12254
  let a = Z();
12258
12255
  return /* @__PURE__ */ V(ao, {
12259
12256
  destroyPopupOnHide: !0,
@@ -12276,8 +12273,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12276
12273
  }] },
12277
12274
  children: i
12278
12275
  });
12279
- }, Nh = ({ expression: e, index: t, variableType: n }) => {
12280
- let [r, i] = L(!1), a = Z(), o = I(null), { updateRow: s, removeRow: c, disabled: l, permission: u, addRowAbove: d, addRowBelow: f } = Eh(({ updateRow: e, removeRow: t, disabled: n, permission: r, addRowAbove: i, addRowBelow: a }) => ({
12276
+ }, Ph = ({ expression: e, index: t, variableType: n }) => {
12277
+ let [r, i] = L(!1), a = Z(), o = I(null), { updateRow: s, removeRow: c, disabled: l, permission: u, addRowAbove: d, addRowBelow: f } = Dh(({ updateRow: e, removeRow: t, disabled: n, permission: r, addRowAbove: i, addRowBelow: a }) => ({
12281
12278
  updateRow: e,
12282
12279
  removeRow: t,
12283
12280
  disabled: n,
@@ -12295,7 +12292,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12295
12292
  }), { setNodeRef: x, isOver: S } = Bn({
12296
12293
  id: `expr-drop-${e.id ?? t}`,
12297
12294
  data: { index: t }
12298
- }), C = Rn(), w = S ? Ah(C.active?.rect.current.translated, o.current?.getBoundingClientRect()) : "up", T = e?._diff?.status;
12295
+ }), C = Rn(), w = S ? jh(C.active?.rect.current.translated, o.current?.getBoundingClientRect()) : "up", T = e?._diff?.status;
12299
12296
  return /* @__PURE__ */ H("div", {
12300
12297
  ref: (e) => {
12301
12298
  o.current = e, x(e), v(e);
@@ -12319,7 +12316,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12319
12316
  }),
12320
12317
  /* @__PURE__ */ V("div", {
12321
12318
  className: "box-border h-full border-r border-[var(--seal-color-border-fade)]",
12322
- children: /* @__PURE__ */ V(Mh, {
12319
+ children: /* @__PURE__ */ V(Nh, {
12323
12320
  index: t,
12324
12321
  disabled: l,
12325
12322
  addRowAbove: d,
@@ -12339,7 +12336,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12339
12336
  }),
12340
12337
  /* @__PURE__ */ V("div", {
12341
12338
  className: "relative box-border h-full text-[13px]",
12342
- children: /* @__PURE__ */ V(Mh, {
12339
+ children: /* @__PURE__ */ V(Nh, {
12343
12340
  index: t,
12344
12341
  disabled: l,
12345
12342
  addRowAbove: d,
@@ -12357,7 +12354,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12357
12354
  onFocus: () => i(!0),
12358
12355
  onBlur: () => i(!1),
12359
12356
  noStyle: !0
12360
- }), /* @__PURE__ */ V(Fh, { expression: e })] })
12357
+ }), /* @__PURE__ */ V(Ih, { expression: e })] })
12361
12358
  })
12362
12359
  }),
12363
12360
  /* @__PURE__ */ H("div", {
@@ -12366,16 +12363,16 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12366
12363
  iconOnly: !0,
12367
12364
  disabled: u !== "edit:full" || l,
12368
12365
  onConfirm: m
12369
- }), r && /* @__PURE__ */ V(Ph, {
12366
+ }), r && /* @__PURE__ */ V(Fh, {
12370
12367
  id: e.id,
12371
12368
  value: e.value
12372
12369
  })]
12373
12370
  })
12374
12371
  ]
12375
12372
  });
12376
- }, Ph = M.memo(({ id: e, value: t }) => {
12377
- let { inputData: n, initial: r } = Eh(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
12378
- let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? jh(t?.trace.traceData, n)?.[i.key] : void 0;
12373
+ }, Fh = M.memo(({ id: e, value: t }) => {
12374
+ let { inputData: n, initial: r } = Dh(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
12375
+ let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? Mh(t?.trace.traceData, n)?.[i.key] : void 0;
12379
12376
  return {
12380
12377
  inputData: r,
12381
12378
  initial: i && a ? {
@@ -12392,8 +12389,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12392
12389
  initial: r
12393
12390
  })
12394
12391
  });
12395
- }), Fh = ({ expression: e }) => {
12396
- let { trace: t } = Eh(({ debug: t, debugIndex: n }) => ({ trace: jh(t?.trace?.traceData, n)?.[e.key]?.result }));
12392
+ }), Ih = ({ expression: e }) => {
12393
+ let { trace: t } = Dh(({ debug: t, debugIndex: n }) => ({ trace: Mh(t?.trace?.traceData, n)?.[e.key]?.result }));
12397
12394
  return t === void 0 ? null : /* @__PURE__ */ V("div", {
12398
12395
  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)]",
12399
12396
  children: /* @__PURE__ */ H(X.Text, {
@@ -12405,8 +12402,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12405
12402
  children: ["= ", JSON.stringify(t)]
12406
12403
  })
12407
12404
  });
12408
- }, Ih = ({}) => {
12409
- let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } = Eh(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
12405
+ }, Lh = ({}) => {
12406
+ let { expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i } = Dh(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
12410
12407
  expressions: e,
12411
12408
  addRowBelow: t,
12412
12409
  permission: n,
@@ -12440,7 +12437,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12440
12437
  }),
12441
12438
  /* @__PURE__ */ V("div", {})
12442
12439
  ]
12443
- }), (e || []).map((e, t) => /* @__PURE__ */ V(Nh, {
12440
+ }), (e || []).map((e, t) => /* @__PURE__ */ V(Ph, {
12444
12441
  expression: e,
12445
12442
  index: t,
12446
12443
  variableType: a
@@ -12454,32 +12451,32 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12454
12451
  children: "Add row"
12455
12452
  })
12456
12453
  })] });
12457
- }, Lh = ({ debug: e, hideCommandBar: t, inputVariableType: n, ...r }) => {
12454
+ }, Rh = ({ debug: e, hideCommandBar: t, inputVariableType: n, ...r }) => {
12458
12455
  let [i, a] = L(!1), o = I(null);
12459
12456
  return P(() => {
12460
12457
  a(!0);
12461
12458
  }, []), /* @__PURE__ */ V(uc, { children: /* @__PURE__ */ V("div", {
12462
12459
  ref: o,
12463
- children: o.current && /* @__PURE__ */ V(Th, { children: /* @__PURE__ */ H(zh, { children: [
12464
- /* @__PURE__ */ V(kh, { ...r }),
12465
- !t && /* @__PURE__ */ V(Rh, {}),
12466
- /* @__PURE__ */ V(Ih, {}),
12467
- /* @__PURE__ */ V(Bh, {
12460
+ children: o.current && /* @__PURE__ */ V(Eh, { children: /* @__PURE__ */ H(Bh, { children: [
12461
+ /* @__PURE__ */ V(Ah, { ...r }),
12462
+ !t && /* @__PURE__ */ V(zh, {}),
12463
+ /* @__PURE__ */ V(Lh, {}),
12464
+ /* @__PURE__ */ V(Vh, {
12468
12465
  debug: e,
12469
12466
  inputVariableType: n
12470
12467
  })
12471
12468
  ] }) })
12472
12469
  }) });
12473
- }, Rh = () => {
12474
- let e = Dh(), t = Eh((e) => e.debugIndex), n = Eh((e) => G(e.debug?.trace?.traceData).with(W.array(), (e) => e.length).otherwise(() => null));
12475
- return /* @__PURE__ */ V(Oh, {
12470
+ }, zh = () => {
12471
+ let e = Oh(), t = Dh((e) => e.debugIndex), n = Dh((e) => G(e.debug?.trace?.traceData).with(W.array(), (e) => e.length).otherwise(() => null));
12472
+ return /* @__PURE__ */ V(kh, {
12476
12473
  className: "p-[7px] box-border border-b border-[var(--border)]",
12477
12474
  debugIndex: t,
12478
12475
  traceCount: n,
12479
12476
  onDebugIndexChange: (t) => e.setState({ debugIndex: t })
12480
12477
  });
12481
- }, zh = ({ children: e }) => {
12482
- let t = Hn(Vn(Pn, { activationConstraint: { distance: 4 } })), n = Dh(), [r, i] = L(null), a = r == null ? void 0 : n.getState().expressions[r];
12478
+ }, Bh = ({ children: e }) => {
12479
+ let t = Hn(Vn(Pn, { activationConstraint: { distance: 4 } })), n = Oh(), [r, i] = L(null), a = r == null ? void 0 : n.getState().expressions[r];
12483
12480
  return /* @__PURE__ */ H(kn, {
12484
12481
  sensors: t,
12485
12482
  onDragStart: ({ active: e }) => {
@@ -12494,13 +12491,13 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12494
12491
  onDragCancel: () => i(null),
12495
12492
  children: [e, /* @__PURE__ */ V(An, {
12496
12493
  dropAnimation: null,
12497
- children: a ? /* @__PURE__ */ H(bh, { children: [
12498
- /* @__PURE__ */ V(Sh, { index: r ?? 0 }),
12499
- a.key ? /* @__PURE__ */ V(xh, {
12494
+ children: a ? /* @__PURE__ */ H(xh, { children: [
12495
+ /* @__PURE__ */ V(Ch, { index: r ?? 0 }),
12496
+ a.key ? /* @__PURE__ */ V(Sh, {
12500
12497
  width: 140,
12501
12498
  children: a.key
12502
12499
  }) : null,
12503
- a.value ? /* @__PURE__ */ V(xh, {
12500
+ a.value ? /* @__PURE__ */ V(Sh, {
12504
12501
  width: 180,
12505
12502
  children: /* @__PURE__ */ V("span", {
12506
12503
  style: { color: "var(--seal-color-text-tertiary)" },
@@ -12510,8 +12507,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12510
12507
  ] }) : null
12511
12508
  })]
12512
12509
  });
12513
- }, Bh = ({ debug: e, inputVariableType: t }) => {
12514
- let n = Dh();
12510
+ }, Vh = ({ debug: e, inputVariableType: t }) => {
12511
+ let n = Oh();
12515
12512
  return P(() => {
12516
12513
  n.setState({ inputVariableType: t });
12517
12514
  }, [t]), P(() => {
@@ -12541,7 +12538,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12541
12538
  (e.debugIndex !== n.debugIndex || e.debug !== n.debug) && t(e);
12542
12539
  });
12543
12540
  }, []), null;
12544
- }, Vh = ({ id: e }) => {
12541
+ }, Hh = ({ id: e }) => {
12545
12542
  let t = Mm(), n = I(null);
12546
12543
  Vm(e, "scroll", {
12547
12544
  serialize: () => {
@@ -12584,7 +12581,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12584
12581
  trace: a,
12585
12582
  snapshot: s
12586
12583
  };
12587
- let e = Object.fromEntries(Object.entries(a?.traceData ?? {}).map(([e, t]) => [e, Hh(t.result)])), t = {
12584
+ let e = Object.fromEntries(Object.entries(a?.traceData ?? {}).map(([e, t]) => [e, Uh(t.result)])), t = {
12588
12585
  ...o,
12589
12586
  $: e
12590
12587
  };
@@ -12605,7 +12602,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12605
12602
  overflowY: "auto",
12606
12603
  boxSizing: "border-box"
12607
12604
  },
12608
- children: /* @__PURE__ */ V(Lh, {
12605
+ children: /* @__PURE__ */ V(Rh, {
12609
12606
  value: i?.expressions,
12610
12607
  disabled: r,
12611
12608
  permission: c?.enabled ? c?.permissions?.[e] : "edit:full",
@@ -12615,19 +12612,19 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12615
12612
  }
12616
12613
  })
12617
12614
  });
12618
- }, Hh = (e) => {
12615
+ }, Uh = (e) => {
12619
12616
  try {
12620
12617
  return JSON.parse(e);
12621
12618
  } catch {
12622
12619
  return null;
12623
12620
  }
12624
- }, Uh = {
12621
+ }, Wh = {
12625
12622
  type: Q.Expression,
12626
12623
  icon: /* @__PURE__ */ V(jt, { size: "1em" }),
12627
12624
  displayName: "Expression",
12628
12625
  documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/expression",
12629
12626
  shortDescription: "Mapping utility",
12630
- renderTab: ({ id: e }) => /* @__PURE__ */ V(Vh, { id: e }),
12627
+ renderTab: ({ id: e }) => /* @__PURE__ */ V(Hh, { id: e }),
12631
12628
  getDiffContent: (e, t) => U(e, (n) => {
12632
12629
  let r = {};
12633
12630
  (e.executionMode || !1) !== (t.executionMode || !1) && Qr.set(r, "executionMode", {
@@ -12746,11 +12743,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12746
12743
  disabled: a,
12747
12744
  displayDiff: r?.fields?.inputField?.status === "modified",
12748
12745
  previousValue: r?.fields?.inputField?.previousValue,
12749
- style: {
12750
- fontSize: 12,
12751
- lineHeight: "20px",
12752
- width: "100%"
12753
- },
12746
+ style: _h,
12754
12747
  expectedVariableType: i?.executionMode === "loop" ? { Array: "Any" } : void 0,
12755
12748
  maxRows: 4,
12756
12749
  value: i?.inputField ?? "",
@@ -12791,18 +12784,18 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12791
12784
  ]
12792
12785
  });
12793
12786
  }
12794
- }, Wh = "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", Gh = "/// <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", Kh = "import zen from 'zen';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n return input;\n};\n", qh = "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", Jh = [
12787
+ }, Gh = "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", Kh = "/// <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", qh = "import zen from 'zen';\n\n/** @type {Handler} **/\nexport const handler = async (input) => {\n return input;\n};\n", Jh = "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", Yh = [
12795
12788
  {
12796
12789
  name: "big.js",
12797
12790
  tagline: "Arbitrary-precision decimal arithmetic",
12798
12791
  importName: "Big",
12799
- typeDef: Wh,
12792
+ typeDef: Gh,
12800
12793
  documentationUrl: "https://mikemcl.github.io/big.js/"
12801
12794
  },
12802
12795
  {
12803
12796
  name: "dayjs",
12804
12797
  tagline: "Date utilities",
12805
- typeDef: Gh,
12798
+ typeDef: Kh,
12806
12799
  documentationUrl: "https://day.js.org/docs/en/parse/parse"
12807
12800
  },
12808
12801
  {
@@ -12824,8 +12817,8 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12824
12817
  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",
12825
12818
  documentationUrl: "https://zod.dev/"
12826
12819
  }
12827
- ], Yh = { globals: { "global.d.ts": qh } }, Xh = Kh, Zh = M.lazy(async () => ({ default: (await Promise.resolve().then(() => Sy)).Function })), Qh = ({ id: e }) => {
12828
- let t = tg(e), n = Mm(), r = Am((e) => e.onFunctionReady), [i, a] = L(), o = I(null), s = I(null);
12820
+ ], Xh = { globals: { "global.d.ts": Jh } }, Zh = qh, Qh = M.lazy(async () => ({ default: (await Promise.resolve().then(() => wy)).Function })), $h = ({ id: e }) => {
12821
+ let t = ng(e), n = Mm(), r = Am((e) => e.onFunctionReady), [i, a] = L(), o = I(null), s = I(null);
12829
12822
  Vm(e, "monaco", {
12830
12823
  serialize: () => o.current?.saveViewState() ?? s.current ?? null,
12831
12824
  restore: (e) => {
@@ -12838,7 +12831,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12838
12831
  disabled: n,
12839
12832
  content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
12840
12833
  viewConfig: i
12841
- })), { diff: m, contentDiff: h } = Pm(e), g = F(() => t === eg.Stable ? h?.fields?.source?.previousValue : m?.fields?.content?.previousValue, [m, h]);
12834
+ })), { diff: m, contentDiff: h } = Pm(e), g = F(() => t === tg.Stable ? h?.fields?.source?.previousValue : m?.fields?.content?.previousValue, [m, h]);
12842
12835
  return P(() => {
12843
12836
  if (!i) return;
12844
12837
  let e = i.languages.typescript.javascriptDefaults.getExtraLibs(), t = Object.entries(e).map(([e, t]) => ({
@@ -12848,24 +12841,24 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12848
12841
  i.languages.typescript.javascriptDefaults.setExtraLibs(t), r?.(i);
12849
12842
  }, [i, r]), /* @__PURE__ */ V(me, {
12850
12843
  fallback: /* @__PURE__ */ V(Ro, {}),
12851
- children: /* @__PURE__ */ V(Zh, {
12844
+ children: /* @__PURE__ */ V(Qh, {
12852
12845
  onMonacoReady: (e) => a(e),
12853
12846
  onEditorMount: (e) => {
12854
12847
  o.current = e, s.current &&= (e.restoreViewState(s.current), null);
12855
12848
  },
12856
- value: t === eg.Stable ? d.source : d,
12849
+ value: t === tg.Stable ? d.source : d,
12857
12850
  previousValue: typeof g == "string" ? g : void 0,
12858
12851
  error: f ?? void 0,
12859
12852
  inputData: c,
12860
12853
  permission: p?.enabled ? p?.permissions?.[e] : "edit:full",
12861
12854
  onChange: (r) => {
12862
- n.updateNode(e, (e) => (e.content = t === eg.Stable ? { source: r } : r, e));
12855
+ n.updateNode(e, (e) => (e.content = t === tg.Stable ? { source: r } : r, e));
12863
12856
  },
12864
12857
  disabled: u,
12865
12858
  trace: l
12866
12859
  })
12867
12860
  });
12868
- }, $h = {
12861
+ }, eg = {
12869
12862
  type: Q.Function,
12870
12863
  icon: /* @__PURE__ */ V(X.Text, {
12871
12864
  style: {
@@ -12878,7 +12871,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12878
12871
  documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/functions",
12879
12872
  shortDescription: "Javascript lambda",
12880
12873
  color: oh.Orange,
12881
- renderTab: ({ id: e }) => /* @__PURE__ */ V(Qh, { id: e }),
12874
+ renderTab: ({ id: e }) => /* @__PURE__ */ V($h, { id: e }),
12882
12875
  getDiffContent: (e, t) => {
12883
12876
  let n = {}, r = G(e).with(W.string, () => 0).otherwise(() => 1);
12884
12877
  G([e, t]).with([W.string, W.string], ([e, t]) => {
@@ -12903,19 +12896,19 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12903
12896
  },
12904
12897
  generateNode: ({ index: e }) => ({
12905
12898
  name: `function${e}`,
12906
- content: { source: Xh }
12899
+ content: { source: Zh }
12907
12900
  }),
12908
12901
  renderNode: ({ id: e, data: t, selected: n, specification: r }) => {
12909
- let i = Mm(), a = tg(e);
12902
+ let i = Mm(), a = ng(e);
12910
12903
  return /* @__PURE__ */ V(uh, {
12911
12904
  id: e,
12912
12905
  specification: {
12913
12906
  ...r,
12914
- displayName: a === 1 ? "Function" : /* @__PURE__ */ H("span", { children: ["Function v1 ", /* @__PURE__ */ V(ng, {})] })
12907
+ displayName: a === 1 ? "Function" : /* @__PURE__ */ H("span", { children: ["Function v1 ", /* @__PURE__ */ V(rg, {})] })
12915
12908
  },
12916
12909
  name: t.name,
12917
12910
  isSelected: n,
12918
- helper: [a === 0 && /* @__PURE__ */ V(ng, { size: 16 })],
12911
+ helper: [a === 0 && /* @__PURE__ */ V(rg, { size: 16 })],
12919
12912
  actions: [/* @__PURE__ */ V(J, {
12920
12913
  type: "text",
12921
12914
  onClick: () => i.openTab(e),
@@ -12923,12 +12916,12 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12923
12916
  }, "edit-function")]
12924
12917
  });
12925
12918
  }
12926
- }, eg = /* @__PURE__ */ function(e) {
12919
+ }, tg = /* @__PURE__ */ function(e) {
12927
12920
  return e[e.Deprecated = 0] = "Deprecated", e[e.Stable = 1] = "Stable", e;
12928
- }({}), tg = (e) => {
12921
+ }({}), ng = (e) => {
12929
12922
  let { kind: t } = $((t) => ({ kind: G(t.decisionGraph.nodes.find((t) => t.id === e)?.content).with(W.string, () => 0).otherwise(() => 1) }));
12930
12923
  return t;
12931
- }, ng = ({ size: e }) => /* @__PURE__ */ V(Y, {
12924
+ }, rg = ({ size: e }) => /* @__PURE__ */ V(Y, {
12932
12925
  placement: "top",
12933
12926
  title: "Function v1 will be deprecated in one of the upcoming releases. To use a new Function, drag and drop a new Function Node and copy your logic. For more information click \"Documentation\". ",
12934
12927
  children: /* @__PURE__ */ V(en, { style: {
@@ -12938,7 +12931,7 @@ var Dh = () => M.useContext(Ch), Oh = ({ debugIndex: e, traceCount: t, onDebugIn
12938
12931
  });
12939
12932
  //#endregion
12940
12933
  //#region src/reui/icons/animated/outline/information.tsx
12941
- function rg({ className: e }) {
12934
+ function ig({ className: e }) {
12942
12935
  return /* @__PURE__ */ V("svg", {
12943
12936
  width: "24",
12944
12937
  height: "24",
@@ -12957,10 +12950,10 @@ function rg({ className: e }) {
12957
12950
  self.monaco && Li.config({ monaco: self.monaco });
12958
12951
  //#endregion
12959
12952
  //#region src/components/shared/panel-empty.tsx
12960
- var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
12953
+ var ag = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
12961
12954
  className: "flex flex-col items-center gap-3 py-10 text-xs text-muted-foreground",
12962
12955
  children: [/* @__PURE__ */ V("span", { children: e }), t]
12963
- }), ag = ({ disabled: e, placeholder: t, value: n, onCommit: r, onExit: i, blurBehavior: a = "save", saveLabel: o = "Save", cancelLabel: s = "Cancel", showActions: c = !1 }) => {
12956
+ }), og = ({ disabled: e, placeholder: t, value: n, onCommit: r, onExit: i, blurBehavior: a = "save", saveLabel: o = "Save", cancelLabel: s = "Cancel", showActions: c = !1 }) => {
12964
12957
  let [l, u] = L(n), d = I(n), f = I(null);
12965
12958
  P(() => {
12966
12959
  u(n), d.current = n;
@@ -13015,12 +13008,12 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13015
13008
  })]
13016
13009
  }) : void 0
13017
13010
  });
13018
- }, og = "grid grid-cols-[minmax(120px,200px)_minmax(100px,150px)_minmax(100px,150px)_minmax(180px,320px)_88px] gap-3 items-start", sg = ({ definition: e, childrenMap: t, collapsedPaths: n, disabled: r, definitionTypeOptions: i, definitionIndex: a, onUpdateName: o, onUpdateType: s, onUpdateDescription: c, onUpdateDefaultValue: l, onAddChild: u, onRemove: d, onToggleCollapse: f, getDefinitionIndex: p }) => {
13011
+ }, sg = "grid grid-cols-[minmax(120px,200px)_minmax(100px,150px)_minmax(100px,150px)_minmax(180px,320px)_88px] gap-3 items-start", cg = ({ definition: e, childrenMap: t, collapsedPaths: n, disabled: r, definitionTypeOptions: i, definitionIndex: a, onUpdateName: o, onUpdateType: s, onUpdateDescription: c, onUpdateDefaultValue: l, onAddChild: u, onRemove: d, onToggleCollapse: f, getDefinitionIndex: p }) => {
13019
13012
  let m = Z(), h = t.get(e.path) ?? [], g = h.length > 0, _ = e.type === "object" || g, v = g, y = !!n[e.path], b = `calc(min(${e.depth} * 12px, 24px) + 4px)`, x = e.depth > 0;
13020
13013
  return /* @__PURE__ */ H("div", {
13021
13014
  className: x ? "overflow-visible" : "overflow-hidden rounded-xl border border-border bg-card shadow-sm",
13022
13015
  children: [/* @__PURE__ */ H("div", {
13023
- className: `${og} p-3 ${x ? "!px-0" : ""}`,
13016
+ className: `${sg} p-3 ${x ? "!px-0" : ""}`,
13024
13017
  children: [
13025
13018
  /* @__PURE__ */ V("div", {
13026
13019
  className: "relative min-w-0 pl-[var(--depth-offset)] [--depth-offset:4px]",
@@ -13043,7 +13036,7 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13043
13036
  "aria-hidden": !0,
13044
13037
  className: "h-6 w-6 shrink-0"
13045
13038
  }),
13046
- /* @__PURE__ */ V(ag, {
13039
+ /* @__PURE__ */ V(og, {
13047
13040
  disabled: r,
13048
13041
  placeholder: e.depth > 0 ? m("request.childFieldNamePlaceholder") : m("request.fieldNamePlaceholder"),
13049
13042
  value: e.name,
@@ -13058,13 +13051,13 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13058
13051
  value: e.type,
13059
13052
  onChange: (e) => s(a, e)
13060
13053
  }),
13061
- /* @__PURE__ */ V(ag, {
13054
+ /* @__PURE__ */ V(og, {
13062
13055
  disabled: r,
13063
13056
  placeholder: m("request.fieldDefaultValuePlaceholder"),
13064
13057
  value: e.defaultValue ?? "",
13065
13058
  onCommit: (e) => l(a, e)
13066
13059
  }),
13067
- /* @__PURE__ */ V(ag, {
13060
+ /* @__PURE__ */ V(og, {
13068
13061
  disabled: r,
13069
13062
  placeholder: m("request.fieldDescriptionPlaceholder"),
13070
13063
  value: e.description,
@@ -13101,7 +13094,7 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13101
13094
  children: [/* @__PURE__ */ V("span", {
13102
13095
  "aria-hidden": !0,
13103
13096
  className: "pointer-events-none absolute bottom-2.5 left-2 top-1 w-px bg-border opacity-70"
13104
- }), h.map((e) => /* @__PURE__ */ V(sg, {
13097
+ }), h.map((e) => /* @__PURE__ */ V(cg, {
13105
13098
  definition: e,
13106
13099
  childrenMap: t,
13107
13100
  collapsedPaths: n,
@@ -13119,14 +13112,14 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13119
13112
  }, e.id))]
13120
13113
  })]
13121
13114
  }, e.id);
13122
- }, cg = ({ rootDefinitions: e, childrenMap: t, collapsedPaths: n, disabled: r, definitionTypeOptions: i, onAdd: a, onUpdateName: o, onUpdateType: s, onUpdateDescription: c, onUpdateDefaultValue: l, onAddChild: u, onRemove: d, onToggleCollapse: f, getDefinitionIndex: p }) => {
13115
+ }, lg = ({ rootDefinitions: e, childrenMap: t, collapsedPaths: n, disabled: r, definitionTypeOptions: i, onAdd: a, onUpdateName: o, onUpdateType: s, onUpdateDescription: c, onUpdateDefaultValue: l, onAddChild: u, onRemove: d, onToggleCollapse: f, getDefinitionIndex: p }) => {
13123
13116
  let m = Z();
13124
13117
  return /* @__PURE__ */ H("div", {
13125
13118
  className: "flex h-full min-h-0 flex-col gap-2",
13126
13119
  children: [/* @__PURE__ */ H("div", {
13127
13120
  className: "min-h-0 flex-1 space-y-2.5 overflow-y-auto",
13128
13121
  children: [/* @__PURE__ */ H("div", {
13129
- className: `${og} rounded-xl border border-border bg-muted/40 px-3.5 py-3 text-xs font-semibold uppercase tracking-wide text-foreground opacity-70`,
13122
+ className: `${sg} rounded-xl border border-border bg-muted/40 px-3.5 py-3 text-xs font-semibold uppercase tracking-wide text-foreground opacity-70`,
13130
13123
  children: [
13131
13124
  /* @__PURE__ */ V("span", { children: m("request.key") }),
13132
13125
  /* @__PURE__ */ V("span", { children: m("request.type") }),
@@ -13134,7 +13127,7 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13134
13127
  /* @__PURE__ */ V("span", { children: m("request.description") }),
13135
13128
  /* @__PURE__ */ V("span", {})
13136
13129
  ]
13137
- }), e.length === 0 ? /* @__PURE__ */ V(ig, { message: m("request.noDefinitions") }) : e.map((e) => /* @__PURE__ */ V(sg, {
13130
+ }), e.length === 0 ? /* @__PURE__ */ V(ag, { message: m("request.noDefinitions") }) : e.map((e) => /* @__PURE__ */ V(cg, {
13138
13131
  definition: e,
13139
13132
  childrenMap: t,
13140
13133
  collapsedPaths: n,
@@ -13162,7 +13155,7 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13162
13155
  })
13163
13156
  })]
13164
13157
  });
13165
- }, lg = ({ summary: e, getDefinitionTypeLabel: t }) => {
13158
+ }, ug = ({ summary: e, getDefinitionTypeLabel: t }) => {
13166
13159
  let n = Z();
13167
13160
  if (!e) return null;
13168
13161
  let { definitions: r, conflicts: i, missing: a, extra: o } = e, s = a.length > 0 || o.length > 0 || i.length > 0;
@@ -13281,7 +13274,7 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13281
13274
  children: n("request.exampleFieldSummaryAllMatch")
13282
13275
  })]
13283
13276
  });
13284
- }, ug = (e) => /\s/.test(e), dg = (e) => e === "\"" || e === "'", fg = (e, t, n, r) => {
13277
+ }, dg = (e) => /\s/.test(e), fg = (e) => e === "\"" || e === "'", pg = (e, t, n, r) => {
13285
13278
  let i = e[t], a = "", o = t + 1, s = n, c = r, l = !1;
13286
13279
  for (; o < e.length;) {
13287
13280
  let t = e[o];
@@ -13302,29 +13295,29 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13302
13295
  endLine: s,
13303
13296
  endColumn: c
13304
13297
  };
13305
- }, pg = (e) => {
13298
+ }, mg = (e) => {
13306
13299
  let t = [], n = [], r = 0, i = 1, a = 1, o = [0], s = 1, c = 1, l = 1;
13307
13300
  for (let t = 0; t < e.length; t++) {
13308
13301
  let n = e[t];
13309
- n === "\n" ? (o[s] = l + 1, s++, c = 1, l = 1) : (ug(n) || (l = c), c++);
13302
+ n === "\n" ? (o[s] = l + 1, s++, c = 1, l = 1) : (dg(n) || (l = c), c++);
13310
13303
  }
13311
13304
  o[s] = l + 1;
13312
13305
  let u = () => {
13313
- for (; r < e.length && ug(e[r]);) e[r] === "\n" ? (i++, a = 1) : a++, r++;
13306
+ for (; r < e.length && dg(e[r]);) e[r] === "\n" ? (i++, a = 1) : a++, r++;
13314
13307
  }, d = () => {
13315
13308
  if (u(), r >= e.length) return;
13316
13309
  let t = e[r];
13317
13310
  if (t === "{") f();
13318
13311
  else if (t === "[") p();
13319
- else if (dg(t)) {
13320
- let t = fg(e, r, i, a);
13312
+ else if (fg(t)) {
13313
+ let t = pg(e, r, i, a);
13321
13314
  r = t.endIndex + 1, i = t.endLine, a = t.endColumn;
13322
13315
  } else if (t === "t" || t === "f") for (; r < e.length && /[a-z]/.test(e[r]);) r++, a++;
13323
13316
  else if (t === "n") for (; r < e.length && /[a-z]/.test(e[r]);) r++, a++;
13324
13317
  else if (t === "-" || /[0-9]/.test(t)) for (; r < e.length && /[0-9.eE+\-]/.test(e[r]);) r++, a++;
13325
13318
  }, f = () => {
13326
- for (r++, a++, u(); r < e.length && e[r] !== "}" && (u(), e[r] !== "}" && dg(e[r]));) {
13327
- let s = i, c = a, l = fg(e, r, i, a), m = l.value;
13319
+ for (r++, a++, u(); r < e.length && e[r] !== "}" && (u(), e[r] !== "}" && fg(e[r]));) {
13320
+ let s = i, c = a, l = pg(e, r, i, a), m = l.value;
13328
13321
  r = l.endIndex + 1, i = l.endLine, a = l.endColumn;
13329
13322
  let h = n.length > 0 ? `${n.join(".")}.${m}` : m, g = o[s] ?? 1;
13330
13323
  if (t.push({
@@ -13353,14 +13346,14 @@ var ig = ({ message: e, action: t }) => /* @__PURE__ */ H("div", {
13353
13346
  };
13354
13347
  //#endregion
13355
13348
  //#region src/components/decision-graph/graph/request-inlay-hints.ts
13356
- function mg(e, t, n) {
13349
+ function hg(e, t, n) {
13357
13350
  return e.languages.registerInlayHintsProvider("json", { provideInlayHints: (r) => {
13358
13351
  try {
13359
13352
  if (r !== t) return {
13360
13353
  hints: [],
13361
13354
  dispose: () => {}
13362
13355
  };
13363
- let i = pg(r.getValue()), a = /* @__PURE__ */ new Map();
13356
+ let i = mg(r.getValue()), a = /* @__PURE__ */ new Map();
13364
13357
  n().forEach((e) => {
13365
13358
  e.description && e.description.trim() && a.set(e.path, e.description.trim());
13366
13359
  });
@@ -13390,7 +13383,7 @@ function mg(e, t, n) {
13390
13383
  }
13391
13384
  //#endregion
13392
13385
  //#region src/components/decision-graph/graph/request-examples.tsx
13393
- var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSource: r, activeDescriptionDraft: i, activeJsonDraft: a, disabled: o, definitionDrafts: s, onSourceSelect: c, onSourceAdd: l, onSourceRemove: u, onSourceRename: d, onEnterEditing: f, onSourceRenameExit: p, onDescriptionChange: m, onDescriptionCommit: h, onJsonChange: g, onJsonCommit: _, onFormat: v, onJsonEditorMount: y, summary: b, getDefinitionTypeLabel: x, editorOptions: S }) => {
13386
+ var gg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSource: r, activeDescriptionDraft: i, activeJsonDraft: a, disabled: o, definitionDrafts: s, onSourceSelect: c, onSourceAdd: l, onSourceRemove: u, onSourceRename: d, onEnterEditing: f, onSourceRenameExit: p, onDescriptionChange: m, onDescriptionCommit: h, onJsonChange: g, onJsonCommit: _, onFormat: v, onJsonEditorMount: y, summary: b, getDefinitionTypeLabel: x, editorOptions: S }) => {
13394
13387
  let C = Z(), [w, T] = L(!0), E = I(null), D = I(null), ee = I(w), O = I(null), te = I(null), ne = I(_), re = I(s);
13395
13388
  P(() => {
13396
13389
  ee.current = w;
@@ -13398,7 +13391,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13398
13391
  let k = N(() => {
13399
13392
  D.current?.dispose(), D.current = null;
13400
13393
  let e = te.current, t = O.current;
13401
- ee.current && t && e && (D.current = mg(t, e, () => re.current));
13394
+ ee.current && t && e && (D.current = hg(t, e, () => re.current));
13402
13395
  }, []);
13403
13396
  return P(() => {
13404
13397
  k();
@@ -13412,7 +13405,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13412
13405
  className: "flex h-full min-h-0 flex-col",
13413
13406
  children: /* @__PURE__ */ V(Da, {
13414
13407
  className: "rounded-xl",
13415
- children: /* @__PURE__ */ V(ig, {
13408
+ children: /* @__PURE__ */ V(ag, {
13416
13409
  message: C("request.noDataSources"),
13417
13410
  action: /* @__PURE__ */ V(J, {
13418
13411
  type: "primary",
@@ -13445,7 +13438,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13445
13438
  onDoubleClick: (e) => {
13446
13439
  e.stopPropagation(), o || f(r);
13447
13440
  },
13448
- children: n === r ? /* @__PURE__ */ V(ag, {
13441
+ children: n === r ? /* @__PURE__ */ V(og, {
13449
13442
  disabled: o,
13450
13443
  value: e.name,
13451
13444
  blurBehavior: "cancel",
@@ -13557,7 +13550,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13557
13550
  }
13558
13551
  })
13559
13552
  }),
13560
- /* @__PURE__ */ V(lg, {
13553
+ /* @__PURE__ */ V(ug, {
13561
13554
  summary: b,
13562
13555
  getDefinitionTypeLabel: x
13563
13556
  })
@@ -13565,7 +13558,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13565
13558
  })]
13566
13559
  })
13567
13560
  });
13568
- }, gg = (e) => {
13561
+ }, _g = (e) => {
13569
13562
  let { isOpen: t, onDismiss: n, onSuccess: r, model: i } = e, a = ic(), o = Z(), [s, c] = L("");
13570
13563
  return P(() => {
13571
13564
  t && i && c(i);
@@ -13640,7 +13633,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13640
13633
  }
13641
13634
  })]
13642
13635
  });
13643
- }, _g = ({ schemaDraft: e, disabled: t, onSchemaChange: n, onSchemaCommit: r, jsonToJsonSchemaOpen: i, onConvertSuccess: a, onDismissConvert: o, onEditorMount: s, editorOptions: c, nodeId: l }) => {
13636
+ }, vg = ({ schemaDraft: e, disabled: t, onSchemaChange: n, onSchemaCommit: r, jsonToJsonSchemaOpen: i, onConvertSuccess: a, onDismissConvert: o, onEditorMount: s, editorOptions: c, nodeId: l }) => {
13644
13637
  Z();
13645
13638
  let u = I(null);
13646
13639
  return P(() => () => {
@@ -13665,7 +13658,7 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13665
13658
  readOnly: t
13666
13659
  }
13667
13660
  })
13668
- }), /* @__PURE__ */ V(gg, {
13661
+ }), /* @__PURE__ */ V(_g, {
13669
13662
  isOpen: i,
13670
13663
  onDismiss: o,
13671
13664
  onSuccess: a,
@@ -13675,26 +13668,121 @@ var hg = ({ sources: e, activeSourceIndex: t, editingSourceIndex: n, activeSourc
13675
13668
  };
13676
13669
  //#endregion
13677
13670
  //#region src/components/decision-graph/graph/request-session-draft.ts
13678
- function vg(e) {
13671
+ function yg(e) {
13679
13672
  let t = { activeTab: e.activeTab };
13680
13673
  return e.schemaDraft !== void 0 && (t.schemaDraft = e.schemaDraft), e.activeSourceIndex !== void 0 && (t.activeSourceIndex = e.activeSourceIndex), e.activeExampleJsonDraft !== void 0 && (t.activeExampleJsonDraft = e.activeExampleJsonDraft), e.activeDescriptionDraft !== void 0 && (t.activeDescriptionDraft = e.activeDescriptionDraft), t;
13681
13674
  }
13682
- function yg(e, t) {
13675
+ function bg(e, t) {
13683
13676
  e && (e.activeTab !== void 0 && t.setActiveTab(e.activeTab), e.schemaDraft !== void 0 && t.setSchemaDraft && t.setSchemaDraft(e.schemaDraft), e.activeSourceIndex !== void 0 && t.setActiveSourceIndex && t.setActiveSourceIndex(e.activeSourceIndex), e.activeExampleJsonDraft !== void 0 && t.setActiveExampleJsonDraft && t.setActiveExampleJsonDraft(e.activeExampleJsonDraft), e.activeDescriptionDraft !== void 0 && t.setActiveDescriptionDraft && t.setActiveDescriptionDraft(e.activeDescriptionDraft));
13684
13677
  }
13685
- function bg(e, t, n) {
13678
+ function xg(e, t, n) {
13686
13679
  Vm(e, "request", {
13687
- serialize: () => vg(t),
13688
- restore: (e) => yg(e, n)
13680
+ serialize: () => yg(t),
13681
+ restore: (e) => bg(e, n)
13689
13682
  });
13690
13683
  }
13691
13684
  //#endregion
13692
- //#region src/components/decision-graph/graph/use-request-definitions-editing.ts
13693
- var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e}.__draft_${t}` : `__draft_${t}`, wg = (e, t = 0, n = "") => {
13685
+ //#region src/components/decision-graph/graph/schema-editor-shared.tsx
13686
+ var Sg = {
13687
+ automaticLayout: !0,
13688
+ contextmenu: !1,
13689
+ fontSize: 13,
13690
+ fontFamily: "var(--mono-font-family)",
13691
+ tabSize: 2,
13692
+ minimap: { enabled: !1 },
13693
+ overviewRulerBorder: !1,
13694
+ scrollbar: {
13695
+ verticalSliderSize: 4,
13696
+ verticalScrollbarSize: 4,
13697
+ horizontalScrollbarSize: 4,
13698
+ horizontalSliderSize: 4
13699
+ }
13700
+ }, Cg = () => {
13701
+ let e = ic();
13702
+ return F(() => ({
13703
+ ...Sg,
13704
+ theme: e === "dark" ? "vs-dark" : "light"
13705
+ }), [e]);
13706
+ }, wg = ({ tab: e, disabled: t, onAddSource: n, onUploadJson: r, onDownloadJson: i, hasActiveSource: a, onSimulate: o, simulateDisabled: s, onFormat: c, onConvertFromJson: l }) => {
13707
+ let u = Z();
13708
+ return e === "examples" ? /* @__PURE__ */ H(Lo, {
13709
+ size: "small",
13710
+ className: "mr-2",
13711
+ children: [
13712
+ /* @__PURE__ */ V(J, {
13713
+ type: "text",
13714
+ size: "small",
13715
+ disabled: t,
13716
+ icon: /* @__PURE__ */ V(Ut, {}),
13717
+ onClick: n,
13718
+ children: u("request.addDataSource")
13719
+ }),
13720
+ /* @__PURE__ */ V(Y, {
13721
+ title: u("request.uploadJsonTooltip"),
13722
+ children: /* @__PURE__ */ V(J, {
13723
+ type: "text",
13724
+ size: "small",
13725
+ disabled: t,
13726
+ icon: /* @__PURE__ */ V(vt, {}),
13727
+ onClick: r,
13728
+ children: u("dg.toolbar.uploadJson")
13729
+ })
13730
+ }),
13731
+ /* @__PURE__ */ V(Y, {
13732
+ title: u("request.downloadJsonTooltip"),
13733
+ children: /* @__PURE__ */ V(J, {
13734
+ type: "text",
13735
+ size: "small",
13736
+ disabled: !a,
13737
+ icon: /* @__PURE__ */ V(_t, {}),
13738
+ onClick: i,
13739
+ children: u("dg.toolbar.downloadJson")
13740
+ })
13741
+ }),
13742
+ /* @__PURE__ */ V(Y, {
13743
+ title: u("request.simulateTooltip"),
13744
+ placement: "bottomRight",
13745
+ children: /* @__PURE__ */ V(J, {
13746
+ type: "text",
13747
+ size: "small",
13748
+ icon: /* @__PURE__ */ V(Kc, {}),
13749
+ disabled: t || s,
13750
+ onClick: o
13751
+ })
13752
+ })
13753
+ ]
13754
+ }) : /* @__PURE__ */ H(Lo, {
13755
+ size: "small",
13756
+ className: "mr-2",
13757
+ children: [/* @__PURE__ */ V(Y, {
13758
+ title: u("request.formatSchema"),
13759
+ placement: "bottomRight",
13760
+ children: /* @__PURE__ */ V(J, {
13761
+ type: "text",
13762
+ size: "small",
13763
+ shape: "circle",
13764
+ icon: /* @__PURE__ */ V(Bt, {}),
13765
+ onClick: c,
13766
+ disabled: t
13767
+ })
13768
+ }), /* @__PURE__ */ V(Y, {
13769
+ title: u("dg.jsonSchema.title"),
13770
+ placement: "bottomRight",
13771
+ children: /* @__PURE__ */ V(J, {
13772
+ type: "text",
13773
+ size: "small",
13774
+ shape: "circle",
13775
+ icon: /* @__PURE__ */ V(xt, {}),
13776
+ onClick: l,
13777
+ disabled: t
13778
+ })
13779
+ })]
13780
+ });
13781
+ }, Tg = "__root__", Eg = (e, t) => e ? `${e}.${t}` : t, Dg = (e, t) => e ? `${e}.__draft_${t}` : `__draft_${t}`, Og = (e, t = 0, n = "") => {
13694
13782
  let r = crypto.randomUUID(), i = n.trim();
13695
13783
  return {
13696
13784
  id: r,
13697
- path: i ? Sg(e, i) : Cg(e, r),
13785
+ path: i ? Eg(e, i) : Dg(e, r),
13698
13786
  name: n,
13699
13787
  type: "string",
13700
13788
  description: "",
@@ -13704,7 +13792,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13704
13792
  parentPath: e ?? null,
13705
13793
  source: "schema.properties"
13706
13794
  };
13707
- }, Tg = (e) => JSON.stringify(e.filter((e) => e.name.trim()).map((e) => ({
13795
+ }, kg = (e) => JSON.stringify(e.filter((e) => e.name.trim()).map((e) => ({
13708
13796
  path: e.path,
13709
13797
  name: e.name,
13710
13798
  type: e.type,
@@ -13712,7 +13800,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13712
13800
  format: e.format,
13713
13801
  parentPath: e.parentPath,
13714
13802
  depth: e.depth
13715
- }))), Eg = (e, t) => {
13803
+ }))), Ag = (e, t) => {
13716
13804
  let n = new Map(t.map((e) => [e.path, e])), r = new Set(t.map((e) => e.path)), i = [];
13717
13805
  return e.forEach((e) => {
13718
13806
  if (!e.name.trim()) {
@@ -13725,12 +13813,12 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13725
13813
  id: e.id
13726
13814
  }));
13727
13815
  }), i.push(...n.values()), i;
13728
- }, Dg = ({ id: e, content: t, t: n, sourceSchemaValue: r, updateNodeSchema: i }) => {
13816
+ }, jg = ({ id: e, content: t, t: n, sourceSchemaValue: r, updateNodeSchema: i }) => {
13729
13817
  let o = F(() => l(t), [
13730
13818
  t?.schema,
13731
13819
  t?.schemaUI,
13732
13820
  t?.inputs
13733
- ]), [s, c] = L(o), d = I(s), [f, m] = L({}), h = F(() => Tg(o), [o]), g = I(null), _ = I(e);
13821
+ ]), [s, c] = L(o), d = I(s), [f, m] = L({}), h = F(() => kg(o), [o]), g = I(null), _ = I(e);
13734
13822
  P(() => {
13735
13823
  d.current = s;
13736
13824
  }, [s]), P(() => {
@@ -13738,7 +13826,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13738
13826
  }, [e]), P(() => {
13739
13827
  c((e) => {
13740
13828
  let t = g.current !== null && g.current === h;
13741
- if (g.current = null, t) return Eg(e, o);
13829
+ if (g.current = null, t) return Ag(e, o);
13742
13830
  let n = e.filter((e) => !e.name.trim());
13743
13831
  if (n.length === 0) return o;
13744
13832
  let r = new Set(o.map((e) => e.path)), i = n.filter((e) => e.parentPath === null || r.has(e.parentPath));
@@ -13752,10 +13840,10 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13752
13840
  let v = F(() => {
13753
13841
  let e = /* @__PURE__ */ new Map();
13754
13842
  return s.forEach((t) => {
13755
- let n = t.parentPath ?? xg, r = e.get(n) ?? [];
13843
+ let n = t.parentPath ?? Tg, r = e.get(n) ?? [];
13756
13844
  r.push(t), e.set(n, r);
13757
13845
  }), e;
13758
- }, [s]), y = F(() => v.get(xg) ?? [], [v]), b = F(() => [
13846
+ }, [s]), y = F(() => v.get(Tg) ?? [], [v]), b = F(() => [
13759
13847
  {
13760
13848
  value: "string",
13761
13849
  label: n("request.typeString")
@@ -13782,7 +13870,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13782
13870
  }
13783
13871
  ], [n]), x = (e) => {
13784
13872
  let t = u(e), n = t.some((e) => e.name.trim() && e.path.trim());
13785
- if (g.current = Tg(t), c(t), !n) {
13873
+ if (g.current = kg(t), c(t), !n) {
13786
13874
  let e = a(r), t = e && Array.isArray(e.examples) ? {
13787
13875
  ...e,
13788
13876
  type: "object",
@@ -13811,13 +13899,13 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13811
13899
  });
13812
13900
  },
13813
13901
  addDefinition: () => {
13814
- x([...s, wg(null, 0, "")]);
13902
+ x([...s, Og(null, 0, "")]);
13815
13903
  },
13816
13904
  addChildDefinition: (e) => {
13817
13905
  let t = s[e];
13818
13906
  if (!t || t.type !== "object" || !t.path.trim()) return;
13819
13907
  let n = S(s, t.path), r = [...s];
13820
- r.splice(n, 0, wg(t.path, t.depth + 1, "")), x(r);
13908
+ r.splice(n, 0, Og(t.path, t.depth + 1, "")), x(r);
13821
13909
  },
13822
13910
  removeDefinition: (e) => {
13823
13911
  let t = s[e];
@@ -13828,7 +13916,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13828
13916
  if (!n) return;
13829
13917
  let r = de(t);
13830
13918
  if (s.some((e) => e.parentPath === n.path) && !r) return;
13831
- let i = r ? Sg(n.parentPath, r) : Cg(n.parentPath, n.id), a = s.map((e) => {
13919
+ let i = r ? Eg(n.parentPath, r) : Dg(n.parentPath, n.id), a = s.map((e) => {
13832
13920
  if (e.path !== n.path && !e.path.startsWith(`${n.path}.`)) return e;
13833
13921
  if (e.path === n.path) return {
13834
13922
  ...e,
@@ -13871,7 +13959,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
13871
13959
  getDefinitionIndex: (e) => s.findIndex((t) => t.id === e),
13872
13960
  getDefinitionTypeLabel: (e) => b.find((t) => t.value === e)?.label ?? e
13873
13961
  };
13874
- }, Og = ({ id: t, content: a, t: o, graphActions: s, panels: c, activeGraphTabId: l, simulatorExampleBinding: u, nodeName: f, sourceSchemaValue: p, updateNodeSchema: v, definitionDrafts: y }) => {
13962
+ }, Mg = ({ id: t, content: a, t: o, graphActions: s, panels: c, activeGraphTabId: l, simulatorExampleBinding: u, nodeName: f, sourceSchemaValue: p, updateNodeSchema: v, definitionDrafts: y }) => {
13875
13963
  let b = I(null), x = I(null), [S, C] = L(0), [w, T] = L(null), [E, D] = L({}), [O, te] = L({}), [ne, re] = L({}), k = F(() => r(a, { dataLabel: o("request.dataLabel") }), [a, o]), ie = (e) => h(e, o("request.dataLabel")), A = k[S] ?? null, ae = N((e, t = y) => ee(g(e) ? e : {}, t), [y]), oe = N((e) => ee(d(g(e) ? e : {}, y), y), [y]), se = F(() => A ? d(A.data, y) : null, [A, y]), le = F(() => A ? E[A.id] ?? ce(se) : "", [
13876
13964
  A,
13877
13965
  E,
@@ -14127,7 +14215,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14127
14215
  openSimulatorPanel: fe,
14128
14216
  syncExampleToSimulator: pe
14129
14217
  };
14130
- }, kg = ({ id: e, type: t, content: n, graphActions: r }) => {
14218
+ }, Ng = ({ id: e, type: t, content: n, graphActions: r }) => {
14131
14219
  let [i, l] = L(!1), u = F(() => f(n), [
14132
14220
  n?.schema,
14133
14221
  n?.schemaUI,
@@ -14208,22 +14296,8 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14208
14296
  D.current = s, ee(s, { dirty: !1 }), O(s);
14209
14297
  }
14210
14298
  };
14211
- }, Ag = {
14212
- automaticLayout: !0,
14213
- contextmenu: !1,
14214
- fontSize: 13,
14215
- fontFamily: "var(--mono-font-family)",
14216
- tabSize: 2,
14217
- minimap: { enabled: !1 },
14218
- overviewRulerBorder: !1,
14219
- scrollbar: {
14220
- verticalSliderSize: 4,
14221
- verticalScrollbarSize: 4,
14222
- horizontalScrollbarSize: 4,
14223
- horizontalSliderSize: 4
14224
- }
14225
- }, jg = ({ id: e, type: t }) => {
14226
- let n = Z(), r = ic(), i = Mm(), [a, o] = L("definitions"), s = I(void 0), c = I(void 0), { disabled: l, content: u, nodeName: d, panels: f, activePanel: p, activeGraphTabId: m, simulatorExampleBinding: h } = $(({ disabled: t, decisionGraph: r, panels: i, activePanel: a, activeTab: o, simulatorExampleBinding: s }) => ({
14299
+ }, Pg = ({ id: e, type: t }) => {
14300
+ let n = Z(), r = Mm(), [i, a] = L("definitions"), o = I(void 0), s = I(void 0), { disabled: c, content: l, nodeName: u, panels: d, activePanel: f, activeGraphTabId: p, simulatorExampleBinding: m } = $(({ disabled: t, decisionGraph: r, panels: i, activePanel: a, activeTab: o, simulatorExampleBinding: s }) => ({
14227
14301
  disabled: t,
14228
14302
  content: (r?.nodes ?? []).find((t) => t.id === e)?.content,
14229
14303
  nodeName: (r?.nodes ?? []).find((t) => t.id === e)?.name ?? n("request"),
@@ -14231,121 +14305,60 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14231
14305
  activePanel: a,
14232
14306
  activeGraphTabId: o,
14233
14307
  simulatorExampleBinding: s
14234
- })), g = l ?? !1, { sourceSchemaValue: _, schemaDraft: v, jsonToJsonSchemaOpen: y, setJsonToJsonSchemaOpen: b, updateNodeSchema: x, handleSchemaDraftChange: S, commitSchemaDraft: C, handleConvertToJsonSchemaSuccess: w } = kg({
14308
+ })), h = c ?? !1, { sourceSchemaValue: g, schemaDraft: _, jsonToJsonSchemaOpen: v, setJsonToJsonSchemaOpen: y, updateNodeSchema: b, handleSchemaDraftChange: x, commitSchemaDraft: S, handleConvertToJsonSchemaSuccess: C } = Ng({
14235
14309
  id: e,
14236
14310
  type: t,
14237
- content: u,
14238
- graphActions: i
14239
- }), { definitionDrafts: T, definitionChildrenMap: E, rootDefinitions: D, definitionTypeOptions: ee, collapsedDefinitionPaths: O, toggleDefinitionCollapsed: te, addDefinition: ne, addChildDefinition: re, removeDefinition: k, updateDefinitionName: ie, updateDefinitionType: A, updateDefinitionDescription: ae, updateDefinitionDefaultValue: oe, getDefinitionIndex: se, getDefinitionTypeLabel: ce } = Dg({
14311
+ content: l,
14312
+ graphActions: r
14313
+ }), { definitionDrafts: w, definitionChildrenMap: T, rootDefinitions: E, definitionTypeOptions: D, collapsedDefinitionPaths: ee, toggleDefinitionCollapsed: O, addDefinition: te, addChildDefinition: ne, removeDefinition: re, updateDefinitionName: k, updateDefinitionType: ie, updateDefinitionDescription: A, updateDefinitionDefaultValue: ae, getDefinitionIndex: oe, getDefinitionTypeLabel: se } = jg({
14240
14314
  id: e,
14241
- content: u,
14315
+ content: l,
14242
14316
  t: n,
14243
- sourceSchemaValue: _,
14244
- updateNodeSchema: x
14245
- }), { exampleSources: le, activeSourceIndex: ue, setActiveSourceIndex: de, editingSourceIndex: j, setEditingSourceIndex: fe, activeSource: pe, activeExampleJsonDraft: me, activeDescriptionDraft: he, exampleFieldSummary: ge, fileInputRef: _e, addExampleSource: ve, removeExampleSource: ye, persistExamples: be, handleExampleJsonChange: N, commitExampleJson: xe, handleDescriptionChange: P, commitDescription: Se, handleUploadJson: Ce, handleDownloadJson: we, openSimulatorPanel: Te, syncExampleToSimulator: Ee } = Og({
14317
+ sourceSchemaValue: g,
14318
+ updateNodeSchema: b
14319
+ }), { exampleSources: ce, activeSourceIndex: le, setActiveSourceIndex: ue, editingSourceIndex: de, setEditingSourceIndex: j, activeSource: fe, activeExampleJsonDraft: pe, activeDescriptionDraft: me, exampleFieldSummary: he, fileInputRef: ge, addExampleSource: _e, removeExampleSource: ve, persistExamples: ye, handleExampleJsonChange: be, commitExampleJson: N, handleDescriptionChange: xe, commitDescription: P, handleUploadJson: Se, handleDownloadJson: Ce, openSimulatorPanel: we, syncExampleToSimulator: F } = Mg({
14246
14320
  id: e,
14247
- content: u,
14321
+ content: l,
14248
14322
  t: n,
14249
- graphActions: i,
14250
- panels: f,
14251
- activeGraphTabId: m,
14252
- simulatorExampleBinding: h,
14253
- nodeName: d,
14254
- sourceSchemaValue: _,
14255
- updateNodeSchema: x,
14256
- definitionDrafts: T
14323
+ graphActions: r,
14324
+ panels: d,
14325
+ activeGraphTabId: p,
14326
+ simulatorExampleBinding: m,
14327
+ nodeName: u,
14328
+ sourceSchemaValue: g,
14329
+ updateNodeSchema: b,
14330
+ definitionDrafts: w
14257
14331
  });
14258
- bg(e, {
14259
- activeTab: a,
14260
- schemaDraft: v,
14261
- activeSourceIndex: ue,
14262
- activeExampleJsonDraft: me,
14263
- activeDescriptionDraft: he
14332
+ xg(e, {
14333
+ activeTab: i,
14334
+ schemaDraft: _,
14335
+ activeSourceIndex: le,
14336
+ activeExampleJsonDraft: pe,
14337
+ activeDescriptionDraft: me
14264
14338
  }, {
14265
- setActiveTab: (e) => o(e),
14266
- setSchemaDraft: S,
14267
- setActiveExampleJsonDraft: N,
14268
- setActiveDescriptionDraft: P,
14269
- setActiveSourceIndex: de
14339
+ setActiveTab: (e) => a(e),
14340
+ setSchemaDraft: x,
14341
+ setActiveExampleJsonDraft: be,
14342
+ setActiveDescriptionDraft: xe,
14343
+ setActiveSourceIndex: ue
14270
14344
  });
14271
- let R = () => a === "examples" ? /* @__PURE__ */ H(Lo, {
14272
- size: "small",
14273
- className: "mr-2",
14274
- children: [
14275
- /* @__PURE__ */ V(J, {
14276
- type: "text",
14277
- size: "small",
14278
- disabled: g,
14279
- icon: /* @__PURE__ */ V(Ut, {}),
14280
- onClick: ve,
14281
- children: n("request.addDataSource")
14282
- }),
14283
- /* @__PURE__ */ V(Y, {
14284
- title: n("request.uploadJsonTooltip"),
14285
- children: /* @__PURE__ */ V(J, {
14286
- type: "text",
14287
- size: "small",
14288
- disabled: g,
14289
- icon: /* @__PURE__ */ V(vt, {}),
14290
- onClick: () => _e.current?.click(),
14291
- children: n("dg.toolbar.uploadJson")
14292
- })
14293
- }),
14294
- /* @__PURE__ */ V(Y, {
14295
- title: n("request.downloadJsonTooltip"),
14296
- children: /* @__PURE__ */ V(J, {
14297
- type: "text",
14298
- size: "small",
14299
- disabled: !pe,
14300
- icon: /* @__PURE__ */ V(_t, {}),
14301
- onClick: we,
14302
- children: n("dg.toolbar.downloadJson")
14303
- })
14304
- }),
14305
- /* @__PURE__ */ V(Y, {
14306
- title: n("request.simulateTooltip"),
14307
- placement: "bottomRight",
14308
- children: /* @__PURE__ */ V(J, {
14309
- type: "text",
14310
- size: "small",
14311
- icon: /* @__PURE__ */ V(Kc, {}),
14312
- disabled: g || p === "simulator",
14313
- onClick: Te
14314
- })
14315
- })
14316
- ]
14317
- }) : a === "schema" ? /* @__PURE__ */ H(Lo, {
14318
- size: "small",
14319
- className: "mr-2",
14320
- children: [/* @__PURE__ */ V(Y, {
14321
- title: n("request.formatSchema"),
14322
- placement: "bottomRight",
14323
- children: /* @__PURE__ */ V(J, {
14324
- type: "text",
14325
- size: "small",
14326
- shape: "circle",
14327
- icon: /* @__PURE__ */ V(Bt, {}),
14328
- onClick: () => {
14329
- (s.current?.getAction?.("editor.action.formatDocument"))?.run();
14330
- },
14331
- disabled: g
14332
- })
14333
- }), /* @__PURE__ */ V(Y, {
14334
- title: n("dg.jsonSchema.title"),
14335
- placement: "bottomRight",
14336
- children: /* @__PURE__ */ V(J, {
14337
- type: "text",
14338
- size: "small",
14339
- shape: "circle",
14340
- icon: /* @__PURE__ */ V(xt, {}),
14341
- onClick: () => b(!0),
14342
- disabled: g
14343
- })
14344
- })]
14345
- }) : null, z = F(() => ({
14346
- ...Ag,
14347
- theme: r === "dark" ? "vs-dark" : "light"
14348
- }), [r]);
14345
+ let Te = () => i === "examples" ? /* @__PURE__ */ V(wg, {
14346
+ tab: "examples",
14347
+ disabled: h,
14348
+ onAddSource: _e,
14349
+ onUploadJson: () => ge.current?.click(),
14350
+ onDownloadJson: Ce,
14351
+ hasActiveSource: !!fe,
14352
+ onSimulate: we,
14353
+ simulateDisabled: f === "simulator"
14354
+ }) : i === "schema" ? /* @__PURE__ */ V(wg, {
14355
+ tab: "schema",
14356
+ disabled: h,
14357
+ onFormat: () => {
14358
+ (o.current?.getAction?.("editor.action.formatDocument"))?.run();
14359
+ },
14360
+ onConvertFromJson: () => y(!0)
14361
+ }) : null, Ee = Cg();
14349
14362
  return /* @__PURE__ */ H("div", {
14350
14363
  className: "relative box-border flex h-full flex-col overflow-hidden bg-[var(--card)]",
14351
14364
  children: [/* @__PURE__ */ V("div", {
@@ -14353,9 +14366,9 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14353
14366
  children: /* @__PURE__ */ V(rs, {
14354
14367
  size: "small",
14355
14368
  className: "w-full",
14356
- activeKey: a,
14369
+ activeKey: i,
14357
14370
  onChange: (e) => {
14358
- o(e);
14371
+ a(e);
14359
14372
  },
14360
14373
  items: [
14361
14374
  {
@@ -14372,96 +14385,96 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14372
14385
  title: n("request.schemaPriorityTooltip"),
14373
14386
  children: /* @__PURE__ */ V("span", {
14374
14387
  className: "ml-1 inline-flex align-super opacity-50 [&_svg]:block",
14375
- children: /* @__PURE__ */ V(rg, { className: "size-2.5" })
14388
+ children: /* @__PURE__ */ V(ig, { className: "size-2.5" })
14376
14389
  })
14377
14390
  })] })
14378
14391
  }
14379
14392
  ],
14380
- tabBarExtraContent: R()
14393
+ tabBarExtraContent: Te()
14381
14394
  })
14382
14395
  }), /* @__PURE__ */ H("div", {
14383
14396
  className: "flex min-h-0 flex-1 flex-col overflow-hidden p-3",
14384
14397
  children: [
14385
- a === "definitions" && /* @__PURE__ */ V(cg, {
14386
- rootDefinitions: D,
14387
- childrenMap: E,
14388
- collapsedPaths: O,
14389
- disabled: g,
14390
- definitionTypeOptions: ee,
14391
- onAdd: ne,
14392
- onUpdateName: ie,
14393
- onUpdateType: A,
14394
- onUpdateDescription: ae,
14395
- onUpdateDefaultValue: oe,
14396
- onAddChild: re,
14397
- onRemove: k,
14398
- onToggleCollapse: te,
14399
- getDefinitionIndex: se
14398
+ i === "definitions" && /* @__PURE__ */ V(lg, {
14399
+ rootDefinitions: E,
14400
+ childrenMap: T,
14401
+ collapsedPaths: ee,
14402
+ disabled: h,
14403
+ definitionTypeOptions: D,
14404
+ onAdd: te,
14405
+ onUpdateName: k,
14406
+ onUpdateType: ie,
14407
+ onUpdateDescription: A,
14408
+ onUpdateDefaultValue: ae,
14409
+ onAddChild: ne,
14410
+ onRemove: re,
14411
+ onToggleCollapse: O,
14412
+ getDefinitionIndex: oe
14400
14413
  }),
14401
- a === "examples" && /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V("input", {
14414
+ i === "examples" && /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V("input", {
14402
14415
  hidden: !0,
14403
14416
  accept: "application/json",
14404
14417
  type: "file",
14405
- ref: _e,
14406
- onChange: Ce,
14418
+ ref: ge,
14419
+ onChange: Se,
14407
14420
  onClick: (e) => {
14408
14421
  e.target.value = "";
14409
14422
  }
14410
- }), /* @__PURE__ */ V(hg, {
14411
- sources: le,
14412
- activeSourceIndex: ue,
14413
- editingSourceIndex: j,
14414
- activeSource: pe,
14415
- activeDescriptionDraft: he,
14416
- activeJsonDraft: me,
14417
- disabled: g,
14418
- definitionDrafts: T,
14423
+ }), /* @__PURE__ */ V(gg, {
14424
+ sources: ce,
14425
+ activeSourceIndex: le,
14426
+ editingSourceIndex: de,
14427
+ activeSource: fe,
14428
+ activeDescriptionDraft: me,
14429
+ activeJsonDraft: pe,
14430
+ disabled: h,
14431
+ definitionDrafts: w,
14419
14432
  onSourceSelect: (e) => {
14420
- de(e), Ee(le[e], e);
14433
+ ue(e), F(ce[e], e);
14421
14434
  },
14422
- onSourceAdd: ve,
14423
- onSourceRemove: ye,
14435
+ onSourceAdd: _e,
14436
+ onSourceRemove: ve,
14424
14437
  onSourceRename: (e, t) => {
14425
14438
  let n = t.trim();
14426
- n && be(le.map((t, r) => r === e ? {
14439
+ n && ye(ce.map((t, r) => r === e ? {
14427
14440
  ...t,
14428
14441
  name: n
14429
14442
  } : t), e, { syncToSimulator: !1 });
14430
14443
  },
14431
- onEnterEditing: (e) => fe(e),
14432
- onSourceRenameExit: () => fe(null),
14433
- onDescriptionChange: P,
14434
- onDescriptionCommit: Se,
14435
- onJsonChange: N,
14436
- onJsonCommit: xe,
14444
+ onEnterEditing: (e) => j(e),
14445
+ onSourceRenameExit: () => j(null),
14446
+ onDescriptionChange: xe,
14447
+ onDescriptionCommit: P,
14448
+ onJsonChange: be,
14449
+ onJsonCommit: N,
14437
14450
  onFormat: () => {
14438
- (c.current?.getAction?.("editor.action.formatDocument"))?.run();
14451
+ (s.current?.getAction?.("editor.action.formatDocument"))?.run();
14439
14452
  },
14440
14453
  onJsonEditorMount: (e) => {
14441
- c.current = e;
14454
+ s.current = e;
14442
14455
  },
14443
- summary: ge,
14444
- getDefinitionTypeLabel: ce,
14445
- editorOptions: z
14456
+ summary: he,
14457
+ getDefinitionTypeLabel: se,
14458
+ editorOptions: Ee
14446
14459
  })] }),
14447
- a === "schema" && /* @__PURE__ */ V(_g, {
14448
- schemaDraft: v,
14449
- disabled: g,
14450
- onSchemaChange: S,
14451
- onSchemaCommit: C,
14452
- jsonToJsonSchemaOpen: y,
14453
- onConvertSuccess: w,
14454
- onDismissConvert: () => b(!1),
14460
+ i === "schema" && /* @__PURE__ */ V(vg, {
14461
+ schemaDraft: _,
14462
+ disabled: h,
14463
+ onSchemaChange: x,
14464
+ onSchemaCommit: S,
14465
+ jsonToJsonSchemaOpen: v,
14466
+ onConvertSuccess: C,
14467
+ onDismissConvert: () => y(!1),
14455
14468
  onEditorMount: (e) => {
14456
- s.current = e;
14469
+ o.current = e;
14457
14470
  },
14458
- editorOptions: z,
14471
+ editorOptions: Ee,
14459
14472
  nodeId: e
14460
14473
  })
14461
14474
  ]
14462
14475
  })]
14463
14476
  });
14464
- }, Mg = {
14477
+ }, Fg = {
14465
14478
  type: Q.Input,
14466
14479
  icon: /* @__PURE__ */ V(Ue, { size: "1em" }),
14467
14480
  displayName: "Request",
@@ -14477,7 +14490,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14477
14490
  outputPath: null
14478
14491
  }
14479
14492
  }),
14480
- renderTab: ({ id: e }) => /* @__PURE__ */ V(jg, {
14493
+ renderTab: ({ id: e }) => /* @__PURE__ */ V(Pg, {
14481
14494
  id: e,
14482
14495
  type: "input"
14483
14496
  }),
@@ -14535,24 +14548,10 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14535
14548
  fields: n
14536
14549
  }), r));
14537
14550
  }
14538
- }, Ng = "Provide JSON Schema format. If no JSON Schema is provided, validation will be skipped.", Pg = {
14539
- automaticLayout: !0,
14540
- contextmenu: !1,
14541
- fontSize: 13,
14542
- fontFamily: "var(--mono-font-family)",
14543
- tabSize: 2,
14544
- minimap: { enabled: !1 },
14545
- overviewRulerBorder: !1,
14546
- scrollbar: {
14547
- verticalSliderSize: 4,
14548
- verticalScrollbarSize: 4,
14549
- horizontalScrollbarSize: 4,
14550
- horizontalSliderSize: 4
14551
- }
14552
- }, Fg = /* @__PURE__ */ function(e) {
14551
+ }, Ig = "Provide JSON Schema format. If no JSON Schema is provided, validation will be skipped.", Lg = /* @__PURE__ */ function(e) {
14553
14552
  return e.Schema = "Schema", e;
14554
- }(Fg || {}), Ig = ({ id: e, type: t = "input" }) => {
14555
- let n = Mm(), r = "json", i = ic(), a = Z(), [o, s] = L(!1), [c, l] = L("Schema"), [u, d] = L(), [f, p] = L(), m = I(null), h = mi(() => u?.layout(), 100, { trailing: !0 }), g = mi(() => f?.layout(), 100, { trailing: !0 });
14553
+ }(Lg || {}), Rg = ({ id: e, type: t = "input" }) => {
14554
+ let n = Mm(), r = "json", i = ic(), a = Cg(), [o, s] = L(!1), [c, l] = L("Schema"), [u, d] = L(), [f, p] = L(), m = I(null), h = mi(() => u?.layout(), 100, { trailing: !0 }), g = mi(() => f?.layout(), 100, { trailing: !0 });
14556
14555
  Vm(e, "monaco", {
14557
14556
  serialize: () => u?.saveViewState() ?? m.current ?? null,
14558
14557
  restore: (e) => {
@@ -14591,48 +14590,27 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14591
14590
  rootClassName: "seal-inline-tabs",
14592
14591
  size: "small",
14593
14592
  style: { width: "100%" },
14594
- items: Object.values(Fg).map((e) => ({
14593
+ items: Object.values(Lg).map((e) => ({
14595
14594
  key: e,
14596
14595
  label: /* @__PURE__ */ H("span", { children: [
14597
14596
  e,
14598
14597
  " ",
14599
14598
  /* @__PURE__ */ V(Y, {
14600
- title: Ng,
14599
+ title: Ig,
14601
14600
  children: /* @__PURE__ */ V("span", {
14602
14601
  className: "ml-1 inline-flex align-super opacity-50 [&_svg]:block",
14603
- children: /* @__PURE__ */ V(rg, { className: "size-2.5" })
14602
+ children: /* @__PURE__ */ V(ig, { className: "size-2.5" })
14604
14603
  })
14605
14604
  })
14606
14605
  ] })
14607
14606
  })),
14608
14607
  activeKey: c,
14609
14608
  onChange: (e) => l(e),
14610
- tabBarExtraContent: /* @__PURE__ */ H(Lo, {
14611
- style: { marginRight: 8 },
14612
- size: "small",
14613
- children: [/* @__PURE__ */ V(Y, {
14614
- title: a("dg.schema.formatCode"),
14615
- placement: "bottomRight",
14616
- children: /* @__PURE__ */ V(J, {
14617
- size: "small",
14618
- type: "text",
14619
- disabled: _,
14620
- icon: /* @__PURE__ */ V(Bt, {}),
14621
- onClick: () => u?.getAction?.("editor.action.formatDocument")?.run?.()
14622
- })
14623
- }), /* @__PURE__ */ V(Y, {
14624
- title: a("dg.schema.importFromJson"),
14625
- placement: "bottomRight",
14626
- children: /* @__PURE__ */ V(J, {
14627
- type: "text",
14628
- size: "small",
14629
- disabled: _,
14630
- icon: /* @__PURE__ */ V(xt, {}),
14631
- onClick: () => {
14632
- s(!0);
14633
- }
14634
- })
14635
- })]
14609
+ tabBarExtraContent: /* @__PURE__ */ V(wg, {
14610
+ tab: "schema",
14611
+ disabled: !!_,
14612
+ onFormat: () => u?.getAction?.("editor.action.formatDocument")?.run?.(),
14613
+ onConvertFromJson: () => s(!0)
14636
14614
  })
14637
14615
  })
14638
14616
  }),
@@ -14649,7 +14627,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14649
14627
  theme: i === "dark" ? "vs-dark" : "light",
14650
14628
  height: "100%",
14651
14629
  options: {
14652
- ...Pg,
14630
+ ...a,
14653
14631
  readOnly: _
14654
14632
  }
14655
14633
  }) : /* @__PURE__ */ V(Fi, {
@@ -14661,12 +14639,12 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14661
14639
  theme: i === "dark" ? "vs-dark" : "light",
14662
14640
  height: "100%",
14663
14641
  options: {
14664
- ...Pg,
14642
+ ...a,
14665
14643
  readOnly: !0
14666
14644
  }
14667
14645
  })).exhaustive()
14668
14646
  }),
14669
- /* @__PURE__ */ V(gg, {
14647
+ /* @__PURE__ */ V(_g, {
14670
14648
  isOpen: o,
14671
14649
  onDismiss: () => s(!1),
14672
14650
  onSuccess: ({ schema: t, model: r }) => {
@@ -14679,7 +14657,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14679
14657
  })
14680
14658
  })
14681
14659
  });
14682
- }, Lg = {
14660
+ }, zg = {
14683
14661
  type: Q.Output,
14684
14662
  icon: /* @__PURE__ */ V(Ve, { size: "1em" }),
14685
14663
  color: oh.Green,
@@ -14690,7 +14668,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14690
14668
  name: "response",
14691
14669
  content: { schema: "" }
14692
14670
  }),
14693
- renderTab: ({ id: e }) => /* @__PURE__ */ V(Ig, {
14671
+ renderTab: ({ id: e }) => /* @__PURE__ */ V(Rg, {
14694
14672
  id: e,
14695
14673
  type: "output"
14696
14674
  }),
@@ -14719,7 +14697,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14719
14697
  fields: n
14720
14698
  }), r));
14721
14699
  }
14722
- }, Rg = (e, t) => U(e, (n) => {
14700
+ }, Bg = (e, t) => U(e, (n) => {
14723
14701
  let r = {};
14724
14702
  (e.hitPolicy ?? "") !== (t.hitPolicy ?? "") && Qr.set(r, "hitPolicy", {
14725
14703
  status: "modified",
@@ -14739,16 +14717,16 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14739
14717
  status: "modified",
14740
14718
  fields: r
14741
14719
  }), n;
14742
- }), zg = (e, t, n, r) => e.map((e) => e.sourceId === t && e.sourceHandle === n ? {
14720
+ }), Vg = (e, t, n, r) => e.map((e) => e.sourceId === t && e.sourceHandle === n ? {
14743
14721
  ...e,
14744
14722
  name: r.trim() === "" ? void 0 : r
14745
- } : e), Bg = (e) => {
14723
+ } : e), Hg = (e) => {
14746
14724
  let [t, n] = L(e);
14747
14725
  return we(() => {
14748
14726
  t !== e && n(e);
14749
14727
  }, [e]), [t, n];
14750
- }, Vg = ({ id: e, value: t, name: n, diff: r, onChange: i, onNameChange: a, disabled: o, configurable: s = !0, onDelete: c, isActive: l, index: u = 0, isDefault: d = !1, onSetIsDefault: f, totalStatements: p, hitPolicy: m, variableType: h }) => {
14751
- let g = Z(), [_, v] = Bg(t), [y, b] = Bg(n), x = (e) => {
14728
+ }, Ug = ({ id: e, value: t, name: n, diff: r, onChange: i, onNameChange: a, disabled: o, configurable: s = !0, onDelete: c, isActive: l, index: u = 0, isDefault: d = !1, onSetIsDefault: f, totalStatements: p, hitPolicy: m, variableType: h }) => {
14729
+ let g = Z(), [_, v] = Hg(t), [y, b] = Hg(n), x = (e) => {
14752
14730
  v(e), i?.(e);
14753
14731
  }, S = u === p - 1, C = d && m === "first" && S && u > 0 && (t || "")?.trim?.()?.length === 0;
14754
14732
  return /* @__PURE__ */ H("div", {
@@ -14827,8 +14805,8 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14827
14805
  })
14828
14806
  })]
14829
14807
  });
14830
- }, Hg = ({ id: e, value: t, name: n, diff: r, onChange: i, onNameChange: a, disabled: o, configurable: s = !0, onDelete: c, isActive: l, variableType: u }) => {
14831
- let d = Z(), [f, p] = Bg(t), [m, h] = Bg(n);
14808
+ }, Wg = ({ id: e, value: t, name: n, diff: r, onChange: i, onNameChange: a, disabled: o, configurable: s = !0, onDelete: c, isActive: l, variableType: u }) => {
14809
+ let d = Z(), [f, p] = Hg(t), [m, h] = Hg(n);
14832
14810
  return /* @__PURE__ */ H("div", {
14833
14811
  className: z("group/con", l && "bg-[var(--seal-color-success-bg)]", r?.status === "added" && "bg-[var(--seal-color-success-bg)]", r?.status === "modified" && "bg-[var(--seal-color-warning-bg)]", r?.status === "removed" && "bg-[var(--seal-color-error-bg)]"),
14834
14812
  children: [
@@ -14880,7 +14858,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14880
14858
  })
14881
14859
  ]
14882
14860
  });
14883
- }, Ug = ({ id: e, data: t, selected: n, specification: r }) => {
14861
+ }, Gg = ({ id: e, data: t, selected: n, specification: r }) => {
14884
14862
  let i = Mm(), { ref: a, inView: o } = Ui({ delay: 1e3 }), { content: s, disabled: c, nodeTrace: l, compactMode: u, isGraphActive: d, edges: f } = $(({ decisionGraph: t, disabled: n, simulate: r, compactMode: i, activeTab: a }) => ({
14885
14863
  nodeTrace: G(r).with({ result: W._ }, ({ result: t }) => t?.trace?.[e]).otherwise(() => null),
14886
14864
  content: (t?.nodes || []).find((t) => t?.id === e)?.content,
@@ -14894,8 +14872,8 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14894
14872
  i.updateNode(e, (e) => {
14895
14873
  let r = e.content.statements.find((e) => e.id === t);
14896
14874
  return r && (r.name = n), e;
14897
- }), i.setEdges(zg(f ?? [], e, t, n));
14898
- }, v = F(() => u ? Hg : Vg, [u]);
14875
+ }), i.setEdges(Vg(f ?? [], e, t, n));
14876
+ }, v = F(() => u ? Wg : Ug, [u]);
14899
14877
  return /* @__PURE__ */ V(uh, {
14900
14878
  id: e,
14901
14879
  ref: a,
@@ -14990,14 +14968,14 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
14990
14968
  })
14991
14969
  })
14992
14970
  });
14993
- }, Wg = {
14971
+ }, Kg = {
14994
14972
  type: Q.Switch,
14995
14973
  icon: /* @__PURE__ */ V(qt, { size: "1em" }),
14996
14974
  displayName: "Switch",
14997
14975
  documentationUrl: "https://gorules.io/docs/user-manual/decision-modeling/decisions/switch",
14998
14976
  shortDescription: "Conditional branching",
14999
14977
  color: oh.Purple,
15000
- getDiffContent: (e, t) => Rg(e, t),
14978
+ getDiffContent: (e, t) => Bg(e, t),
15001
14979
  inferTypes: {
15002
14980
  needsUpdate: () => !1,
15003
14981
  determineOutputType: (e) => e.input
@@ -15013,14 +14991,14 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15013
14991
  }]
15014
14992
  }
15015
14993
  }),
15016
- renderNode: ({ specification: e, ...t }) => /* @__PURE__ */ V(Ug, {
14994
+ renderNode: ({ specification: e, ...t }) => /* @__PURE__ */ V(Gg, {
15017
14995
  specification: e,
15018
14996
  ...t
15019
14997
  })
15020
- }, Gg = (e, t, n) => ({
15021
- nodes: Kg(e?.nodes ?? [], t?.nodes ?? [], n),
15022
- edges: qg(e?.edges ?? [], t?.edges ?? [])
15023
- }), Kg = (e, t, n) => {
14998
+ }, qg = (e, t, n) => ({
14999
+ nodes: Jg(e?.nodes ?? [], t?.nodes ?? [], n),
15000
+ edges: Yg(e?.edges ?? [], t?.edges ?? [])
15001
+ }), Jg = (e, t, n) => {
15024
15002
  let r = n?.components || [], i = n?.customNodes || [], a = /* @__PURE__ */ new Map();
15025
15003
  return (e || []).forEach((e) => {
15026
15004
  let n = (t || []).find((t) => t.id === e.id);
@@ -15037,13 +15015,13 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15037
15015
  status: "modified",
15038
15016
  previousValue: n.name
15039
15017
  });
15040
- let o = G([e.type, n.type]).with([Q.Output, Q.Output], () => Lg?.getDiffContent?.(e?.content, n?.content)).with([Q.Input, Q.Input], () => Mg?.getDiffContent?.(e?.content, n?.content)).with([Q.Expression, Q.Expression], () => Uh?.getDiffContent?.(e?.content, n?.content)).with([Q.DecisionTable, Q.DecisionTable], () => _h?.getDiffContent?.(e?.content, n?.content)).with([Q.Function, Q.Function], () => {
15041
- let r = $h?.getDiffContent?.(e?.content, n?.content);
15018
+ let o = G([e.type, n.type]).with([Q.Output, Q.Output], () => zg?.getDiffContent?.(e?.content, n?.content)).with([Q.Input, Q.Input], () => Fg?.getDiffContent?.(e?.content, n?.content)).with([Q.Expression, Q.Expression], () => Wh?.getDiffContent?.(e?.content, n?.content)).with([Q.DecisionTable, Q.DecisionTable], () => vh?.getDiffContent?.(e?.content, n?.content)).with([Q.Function, Q.Function], () => {
15019
+ let r = eg?.getDiffContent?.(e?.content, n?.content);
15042
15020
  return G(e?.content).with(W.string, () => (r?._diff?.fields?.source?.status === "modified" && Qr.set(t, "content", {
15043
15021
  status: "modified",
15044
15022
  previousValue: r?._diff?.fields?.source?.previousValue
15045
15023
  }), r?.source)).otherwise(() => r);
15046
- }).with([Q.Switch, Q.Switch], () => Wg?.getDiffContent?.(e?.content, n?.content)).otherwise(() => {
15024
+ }).with([Q.Switch, Q.Switch], () => Kg?.getDiffContent?.(e?.content, n?.content)).otherwise(() => {
15047
15025
  let t = r.find((t) => t.type === e.type);
15048
15026
  if (t) return t?.getDiffContent?.(e?.content, n?.content);
15049
15027
  let a = i.find((t) => e?.type === "customNode" && e?.content?.kind === t?.kind);
@@ -15074,7 +15052,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15074
15052
  _diff: { status: "removed" }
15075
15053
  });
15076
15054
  }), Array.from(a.values());
15077
- }, qg = (e, t) => {
15055
+ }, Yg = (e, t) => {
15078
15056
  let n = /* @__PURE__ */ new Map();
15079
15057
  return (e || []).forEach((e) => {
15080
15058
  (t || []).find((t) => t.id === e.id) ? n.set(e.id, {
@@ -15090,7 +15068,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15090
15068
  _diff: { status: "removed" }
15091
15069
  });
15092
15070
  }), Array.from(n.values());
15093
- }, Jg = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c, defaultActivePanel: l, hideLeftToolbar: u, panels: d, simulate: f, dictionaries: p, mode: m, viewConfigCta: h, viewConfig: g, onViewConfigCta: _, onPanelsChange: v, onReactFlowInit: y, onCodeExtension: b, onFunctionReady: x }) => {
15071
+ }, Xg = ({ id: e, defaultValue: t, value: n, name: r, disabled: i = !1, diffBaseline: a, onChange: o, components: s, customNodes: c, defaultActivePanel: l, hideLeftToolbar: u, panels: d, simulate: f, dictionaries: p, mode: m, viewConfigCta: h, viewConfig: g, onViewConfigCta: _, onPanelsChange: v, onReactFlowInit: y, onCodeExtension: b, onFunctionReady: x }) => {
15094
15072
  let S = I(!1), C = Mm(), { stateStore: w, listenerStore: T } = Nm(), { decisionGraph: E, openTabs: D, activeTab: ee } = $(({ decisionGraph: e, openTabs: t, activeTab: n }) => ({
15095
15073
  decisionGraph: e,
15096
15074
  openTabs: t,
@@ -15153,7 +15131,7 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15153
15131
  }, [O]), P(() => {
15154
15132
  n === void 0 || a || S.current && !(0, mc.default)(n, E) && C.setDecisionGraph(n);
15155
15133
  }, [n, a]), P(() => {
15156
- n === void 0 ? t !== void 0 && C.setDecisionGraph(t) : C.setDecisionGraph(a ? Gg(n, a, {
15134
+ n === void 0 ? t !== void 0 && C.setDecisionGraph(t) : C.setDecisionGraph(a ? qg(n, a, {
15157
15135
  customNodes: c ?? [],
15158
15136
  components: s ?? []
15159
15137
  }) : n), w.setState({
@@ -15161,21 +15139,21 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15161
15139
  hideLeftToolbar: u
15162
15140
  }), S.current = !0;
15163
15141
  }, []), P(() => {
15164
- n !== void 0 && (a ? C.setDecisionGraph(Gg(n, a, {
15142
+ n !== void 0 && (a ? C.setDecisionGraph(qg(n, a, {
15165
15143
  customNodes: c ?? [],
15166
15144
  components: s ?? []
15167
15145
  })) : S.current && C.setDecisionGraph(n));
15168
15146
  }, [a]), null;
15169
- }, Yg = () => {
15147
+ }, Zg = () => {
15170
15148
  let e = null;
15171
15149
  return { walk: function* (t) {
15172
- let n = Xg(t);
15150
+ let n = Qg(t);
15173
15151
  if (e && (0, mc.default)(n, e.digest)) {
15174
- yield* Qg(t, e.iterator);
15152
+ yield* e_(t, e.iterator);
15175
15153
  return;
15176
15154
  }
15177
15155
  let r = [];
15178
- for (let e of Zg(t)) r.push({
15156
+ for (let e of $g(t)) r.push({
15179
15157
  id: e.node.id,
15180
15158
  incomers: e.incomers.map((e) => e.id)
15181
15159
  }), yield e;
@@ -15184,13 +15162,13 @@ var xg = "__root__", Sg = (e, t) => e ? `${e}.${t}` : t, Cg = (e, t) => e ? `${e
15184
15162
  iterator: r
15185
15163
  };
15186
15164
  } };
15187
- }, Xg = (e) => ({
15165
+ }, Qg = (e) => ({
15188
15166
  nodes: e.nodes.map((e) => e.id),
15189
15167
  edges: e.edges
15190
15168
  });
15191
- function* Zg(e) {
15169
+ function* $g(e) {
15192
15170
  let t = ym(e.nodes), n = xm(e.edges), r = e.nodes.find((e) => e.type === "inputNode"), i = t.find((e) => e.id === r?.id);
15193
- if (!r || !i || $g(i, t, n)) return;
15171
+ if (!r || !i || t_(i, t, n)) return;
15194
15172
  yield {
15195
15173
  node: r,
15196
15174
  incomers: []
@@ -15216,7 +15194,7 @@ function* Zg(e) {
15216
15194
  o.push(...l);
15217
15195
  }
15218
15196
  }
15219
- function* Qg(e, t) {
15197
+ function* e_(e, t) {
15220
15198
  for (let n of t) {
15221
15199
  let t = e.nodes.find((e) => e.id === n.id);
15222
15200
  t && (yield {
@@ -15225,7 +15203,7 @@ function* Qg(e, t) {
15225
15203
  });
15226
15204
  }
15227
15205
  }
15228
- var $g = (e, t, n) => {
15206
+ var t_ = (e, t, n) => {
15229
15207
  let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = (e) => {
15230
15208
  r.add(e.id), i.add(e.id);
15231
15209
  let o = ji(e, t, n);
@@ -15238,17 +15216,17 @@ var $g = (e, t, n) => {
15238
15216
  };
15239
15217
  //#endregion
15240
15218
  //#region src/components/decision-graph/nodes/specifications/specifications.tsx
15241
- function e_(e) {
15219
+ function n_(e) {
15242
15220
  return e;
15243
15221
  }
15244
- var t_ = e_({
15245
- [Q.Input]: Mg,
15246
- [Q.Output]: Lg,
15247
- [Q.DecisionTable]: _h,
15248
- [Q.Expression]: Uh,
15249
- [Q.Function]: $h,
15250
- [Q.Switch]: Wg
15251
- }), n_ = () => {
15222
+ var r_ = n_({
15223
+ [Q.Input]: Fg,
15224
+ [Q.Output]: zg,
15225
+ [Q.DecisionTable]: vh,
15226
+ [Q.Expression]: Wh,
15227
+ [Q.Function]: eg,
15228
+ [Q.Switch]: Kg
15229
+ }), i_ = () => {
15252
15230
  let { stateStore: e } = Nm();
15253
15231
  return P(() => {
15254
15232
  if (_s()) return e.subscribe(({ simulate: t, nodeTypes: n, decisionGraph: r }, i) => {
@@ -15278,12 +15256,12 @@ var t_ = e_({
15278
15256
  });
15279
15257
  }, []), P(() => {
15280
15258
  if (!_s()) return;
15281
- let t = Yg();
15259
+ let t = Zg();
15282
15260
  return e.subscribe((n, r) => {
15283
15261
  try {
15284
- let i = i_(n), a = i_(r), o = a_(n, r);
15262
+ let i = o_(n), a = o_(r), o = s_(n, r);
15285
15263
  if ((0, mc.default)(i, a) && !o) return;
15286
- let s = r_(n, r, t);
15264
+ let s = a_(n, r, t);
15287
15265
  s.isModified && e.setState({ nodeTypes: s.nodeTypes });
15288
15266
  } catch (e) {
15289
15267
  console.error("error occurred during node type inference", e);
@@ -15292,7 +15270,7 @@ var t_ = e_({
15292
15270
  }, []), P(() => {
15293
15271
  if (_s()) return e.subscribe((t, n) => {
15294
15272
  try {
15295
- let r = s_(t), i = s_(n);
15273
+ let r = l_(t), i = l_(n);
15296
15274
  if ((0, mc.default)(r, i)) return;
15297
15275
  let a = bn.fromJson({ Object: {} });
15298
15276
  t.decisionGraph.nodes.forEach((e) => {
@@ -15304,7 +15282,7 @@ var t_ = e_({
15304
15282
  }
15305
15283
  });
15306
15284
  }, []), null;
15307
- }, r_ = ({ decisionGraph: e, nodeTypes: t, customNodes: n }, r, i) => {
15285
+ }, a_ = ({ decisionGraph: e, nodeTypes: t, customNodes: n }, r, i) => {
15308
15286
  let a = !1, o = U(t, (t) => {
15309
15287
  for (let { node: o, incomers: s } of i.walk(e)) {
15310
15288
  if (o.type === "inputNode") return;
@@ -15313,7 +15291,7 @@ var t_ = e_({
15313
15291
  return n[Dm.Output] ?? n[Dm.InferredOutput];
15314
15292
  }).filter((e) => !!e).map((e) => e.clone()), i = G(e.length).with(1, () => e[0]).otherwise(() => bn.fromIncoming(e));
15315
15293
  (t?.[o.id]?.[Dm.InferredInput])?.equal(i) || (a = !0, t[o.id] ??= {}, t[o.id][Dm.InferredInput] = i);
15316
- let c = t_[o.type]?.inferTypes ?? n.find((e) => e.kind === o.type)?.inferTypes;
15294
+ let c = r_[o.type]?.inferTypes ?? n.find((e) => e.kind === o.type)?.inferTypes;
15317
15295
  if (!c) return;
15318
15296
  let l = t?.[o.id]?.[Dm.Input] ?? t?.[o.id]?.[Dm.InferredInput] ?? bn.fromJson("Any"), u = r.nodeTypes?.[o.id]?.[Dm.Input] ?? r.nodeTypes?.[o.id]?.[Dm.InferredInput] ?? bn.fromJson("Any"), d = r.decisionGraph.nodes.find((e) => e.id === o.id)?.content;
15319
15297
  if (!c.needsUpdate(o.content, d) && l.equal(u) && t?.[o.id]?.[Dm.InferredOutput]) return;
@@ -15328,14 +15306,14 @@ var t_ = e_({
15328
15306
  isModified: a,
15329
15307
  nodeTypes: o
15330
15308
  };
15331
- }, i_ = ({ decisionGraph: e, nodeTypes: t, customNodes: n }) => {
15309
+ }, o_ = ({ decisionGraph: e, nodeTypes: t, customNodes: n }) => {
15332
15310
  let r = e.edges, i = e.nodes.map(({ id: e, type: t }) => ({
15333
15311
  id: e,
15334
15312
  type: t
15335
15313
  })), a = n.map((e) => e.kind), o = Object.entries(t).map(([e, t]) => ({
15336
15314
  id: e,
15337
- input: o_(t[Dm.Input]),
15338
- output: o_(t[Dm.Output])
15315
+ input: c_(t[Dm.Input]),
15316
+ output: c_(t[Dm.Output])
15339
15317
  })), s = e.nodes.find((e) => e.type === "inputNode")?.id;
15340
15318
  return {
15341
15319
  edgesData: r,
@@ -15344,27 +15322,35 @@ var t_ = e_({
15344
15322
  customNodesData: a,
15345
15323
  inputNodeType: G(t?.[s ?? ""]?.[Dm.InferredOutput]).with(W.nonNullable, (e) => e.hash()).otherwise(() => null)
15346
15324
  };
15347
- }, a_ = ({ decisionGraph: e, customNodes: t }, n) => e.nodes.map((e) => {
15348
- let r = t_[e.type]?.inferTypes ?? t.find((t) => t.kind === e.type)?.inferTypes;
15325
+ }, s_ = ({ decisionGraph: e, customNodes: t }, n) => e.nodes.map((e) => {
15326
+ let r = r_[e.type]?.inferTypes ?? t.find((t) => t.kind === e.type)?.inferTypes;
15349
15327
  if (!r) return !1;
15350
15328
  let i = n.decisionGraph.nodes.find((t) => t.id === e.id);
15351
15329
  return !i || r.needsUpdate(e.content, i.content);
15352
- }).some((e) => e), o_ = (e) => {
15330
+ }).some((e) => e), c_ = (e) => {
15353
15331
  if (e) return e.__hash ||= e.hash(), e.__hash;
15354
- }, s_ = (e) => ({ nodeInfo: e.decisionGraph.nodes.map((t) => {
15332
+ }, l_ = (e) => ({ nodeInfo: e.decisionGraph.nodes.map((t) => {
15355
15333
  let n = e.nodeTypes[t.id], r = n?.[Dm.Output] ?? n?.[Dm.InferredOutput];
15356
15334
  return {
15357
15335
  id: t.id,
15358
- type: o_(r),
15336
+ type: c_(r),
15359
15337
  name: t.name
15360
15338
  };
15361
- }) }), c_ = "jdmEditor:graphPanel:height", l_ = () => {
15339
+ }) }), u_ = "jdmEditor:graphPanel:height", d_ = () => {
15362
15340
  let e = Z(), t = Mm(), { panels: n, activePanel: r } = $(({ panels: e, activePanel: t }) => ({
15363
15341
  panels: e,
15364
15342
  activePanel: t
15365
- })), i = F(() => r === void 0 ? void 0 : (n || []).find((e) => e.id === r), [r, n]), a = F(() => Number.parseFloat(localStorage.getItem(c_) ?? "") ?? 300, [i]);
15343
+ })), i = F(() => r === void 0 ? void 0 : (n || []).find((e) => e.id === r), [r, n]), a = F(() => Number.parseFloat(localStorage.getItem(u_) ?? "") ?? 300, [i]);
15366
15344
  return i ? /* @__PURE__ */ H(Wi, {
15367
- className: "absolute inset-x-0 bottom-0 z-30 flex w-full flex-col border-t border-t-[var(--border)] bg-[var(--seal-color-primary-bg-fade)] shadow-[0_-8px_24px_rgba(0,0,0,0.12)]",
15345
+ className: "flex w-full flex-col border-t border-t-[var(--border)] bg-[var(--seal-color-primary-bg-fade)]",
15346
+ style: {
15347
+ position: "absolute",
15348
+ left: 0,
15349
+ right: 0,
15350
+ bottom: 0,
15351
+ zIndex: 30,
15352
+ boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.12)"
15353
+ },
15368
15354
  defaultSize: { height: a },
15369
15355
  handleStyles: {
15370
15356
  bottom: { display: "none" },
@@ -15378,7 +15364,7 @@ var t_ = e_({
15378
15364
  maxHeight: 500,
15379
15365
  minHeight: 150,
15380
15366
  onResize: (e, t, n) => {
15381
- localStorage.setItem(c_, n.clientHeight.toString());
15367
+ localStorage.setItem(u_, n.clientHeight.toString());
15382
15368
  },
15383
15369
  children: [!i.hideHeader && /* @__PURE__ */ H("div", {
15384
15370
  className: "flex flex-row items-center justify-start gap-2 border-b border-b-[var(--border)] py-1 pl-2 pr-1 [&>span]:text-[13px]",
@@ -15406,21 +15392,21 @@ var t_ = e_({
15406
15392
  children: i?.renderPanel?.()
15407
15393
  })]
15408
15394
  }) : null;
15409
- }, u_ = () => {
15395
+ }, f_ = () => {
15410
15396
  let e = $(({ components: e }) => e);
15411
- return [...Object.values(t_), ...e ?? []].map((e) => ({
15397
+ return [...Object.values(r_), ...e ?? []].map((e) => ({
15412
15398
  type: e.kind ? "customNode" : e.type ?? "customNode",
15413
15399
  component: e.kind,
15414
15400
  label: e.kind ? e.displayName ?? e.kind : e.displayName ?? "",
15415
15401
  icon: e.icon
15416
15402
  }));
15417
- }, d_ = (e) => {
15403
+ }, p_ = (e) => {
15418
15404
  let t = Mm(), { id: n, source: r, target: i, sourceHandle: a, targetHandle: o, sourceX: s, sourceY: c, targetX: l, targetY: u, sourcePosition: d, targetPosition: f, style: p = {}, markerEnd: m, label: h } = e, { isHovered: g, disabled: _, decisionGraph: y, components: b } = $(({ hoveredEdgeId: e, disabled: t, decisionGraph: r, components: i }) => ({
15419
15405
  isHovered: e === n,
15420
15406
  disabled: t,
15421
15407
  decisionGraph: r,
15422
15408
  components: i
15423
- })), { diff: x } = Fm(n), [S, C] = M.useState(!1), w = u_(), [T, E, D] = ki({
15409
+ })), { diff: x } = Fm(n), [S, C] = M.useState(!1), w = f_(), [T, E, D] = ki({
15424
15410
  sourceX: s,
15425
15411
  sourceY: c,
15426
15412
  sourcePosition: d,
@@ -15437,7 +15423,7 @@ var t_ = e_({
15437
15423
  })
15438
15424
  }) : null, O = async (e) => {
15439
15425
  C(!1);
15440
- let s = (y?.nodes ?? []).filter((t) => e.type === "customNode" ? t.content?.kind === e.component : t.type === e.type).length, c = [...Object.values(t_), ...b], l = e.type === "customNode" ? c.find((t) => t.kind === e.component) : c.find((t) => t.type === e.type);
15426
+ let s = (y?.nodes ?? []).filter((t) => e.type === "customNode" ? t.content?.kind === e.component : t.type === e.type).length, c = [...Object.values(r_), ...b], l = e.type === "customNode" ? c.find((t) => t.kind === e.component) : c.find((t) => t.type === e.type);
15441
15427
  if (!l?.generateNode) return;
15442
15428
  let u = l.generateNode({ index: s + 1 }), d = {
15443
15429
  x: E - 110,
@@ -15520,10 +15506,10 @@ var t_ = e_({
15520
15506
  })
15521
15507
  ]
15522
15508
  })] })] });
15523
- }, f_ = (e) => (t) => /* @__PURE__ */ V(d_, {
15509
+ }, m_ = (e) => (t) => /* @__PURE__ */ V(p_, {
15524
15510
  ...t,
15525
15511
  ...e
15526
- }), p_ = (e) => typeof e == "object" && Array.isArray(e?.nodes), m_ = (e, t) => {
15512
+ }), h_ = (e) => typeof e == "object" && Array.isArray(e?.nodes), g_ = (e, t) => {
15527
15513
  let n = Nm(), r = Mm(), i = N(async (t) => {
15528
15514
  try {
15529
15515
  if (!e.current) return;
@@ -15550,7 +15536,7 @@ var t_ = e_({
15550
15536
  let n = await cm();
15551
15537
  if (!n) return;
15552
15538
  let i = JSON.parse(n);
15553
- if (!p_(i)) throw Error("invalid clipboard");
15539
+ if (!h_(i)) throw Error("invalid clipboard");
15554
15540
  let a = i.nodes.reduce((e, t) => ({
15555
15541
  ...e,
15556
15542
  [t.id]: crypto.randomUUID()
@@ -15594,7 +15580,7 @@ var t_ = e_({
15594
15580
  copyNodes: i,
15595
15581
  pasteNodes: a
15596
15582
  }), [i, a]);
15597
- }, h_ = ({ reactFlowWrapper: e, reactFlowInstance: t, addNodes: n, addNode: r }) => ({
15583
+ }, __ = ({ reactFlowWrapper: e, reactFlowInstance: t, addNodes: n, addNode: r }) => ({
15598
15584
  onDrop: (i) => {
15599
15585
  if (i.preventDefault(), i.stopPropagation(), !e.current || !t.current) return;
15600
15586
  let a;
@@ -15626,7 +15612,7 @@ var t_ = e_({
15626
15612
  onDragOver: (e) => {
15627
15613
  e.preventDefault(), e.dataTransfer.dropEffect = "move";
15628
15614
  }
15629
- }), g_ = "jdm-components-opened", __ = ({ reactFlowInstance: e, onRestoreViewport: t, stateStore: n, componentsOpened: r, setComponentsOpened: i }) => {
15615
+ }), v_ = "jdm-components-opened", y_ = ({ reactFlowInstance: e, onRestoreViewport: t, stateStore: n, componentsOpened: r, setComponentsOpened: i }) => {
15630
15616
  Bm("viewport", {
15631
15617
  serialize: () => e.current?.getViewport() ?? {
15632
15618
  x: 0,
@@ -15656,10 +15642,10 @@ var t_ = e_({
15656
15642
  }), Bm("componentsOpened", {
15657
15643
  serialize: () => r,
15658
15644
  restore: (e) => {
15659
- typeof e == "boolean" && (i(e), localStorage.setItem(g_, `${e}`));
15645
+ typeof e == "boolean" && (i(e), localStorage.setItem(v_, `${e}`));
15660
15646
  }
15661
15647
  });
15662
- }, v_ = ({ reactFlowWrapper: e, reactFlowInstance: t, customNodes: n, components: r, addNodes: i }) => async (a, o, s) => {
15648
+ }, b_ = ({ reactFlowWrapper: e, reactFlowInstance: t, customNodes: n, components: r, addNodes: i }) => async (a, o, s) => {
15663
15649
  if (!e.current || !t.current) return;
15664
15650
  if (!o) {
15665
15651
  let n = e.current.getBoundingClientRect(), r = {
@@ -15668,7 +15654,7 @@ var t_ = e_({
15668
15654
  };
15669
15655
  o = t.current.screenToFlowPosition(r);
15670
15656
  }
15671
- let c = G(a).with("customNode", () => n.find((e) => e.kind === s)).otherwise(() => [...Object.values(t_), ...r].find((e) => e.type === a));
15657
+ let c = G(a).with("customNode", () => n.find((e) => e.kind === s)).otherwise(() => [...Object.values(r_), ...r].find((e) => e.type === a));
15672
15658
  if (!c) {
15673
15659
  R.error(`Unknown node type ${a} - ${s}.`);
15674
15660
  return;
@@ -15706,7 +15692,7 @@ var t_ = e_({
15706
15692
  let u = v.safeParse(l);
15707
15693
  if (u.success) return i([v.parse(l)]);
15708
15694
  R.error(u.error?.message);
15709
- }, y_ = (e, t) => {
15695
+ }, x_ = (e, t) => {
15710
15696
  let n = t.trim().toLowerCase();
15711
15697
  if (!n) return null;
15712
15698
  if ([
@@ -15717,7 +15703,7 @@ var t_ = e_({
15717
15703
  ].filter(Boolean).some((e) => String(e).toLowerCase().includes(n))) return [];
15718
15704
  let r = (e.searchKeywords ?? []).filter((e) => e.toLowerCase().includes(n));
15719
15705
  return r.length > 0 ? r : null;
15720
- }, b_ = M.memo(({ inputDisabled: e, disabled: t, collapsed: n }) => {
15706
+ }, S_ = M.memo(({ inputDisabled: e, disabled: t, collapsed: n }) => {
15721
15707
  let r = $((e) => e.components || []), i = $((e) => e.customNodes || []), [a, o] = L(""), s = N((e, t, n) => {
15722
15708
  let r = e.target;
15723
15709
  if (!r) return;
@@ -15727,7 +15713,7 @@ var t_ = e_({
15727
15713
  };
15728
15714
  e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("nodeType", t), e.dataTransfer.setData("relativePosition", JSON.stringify(c)), n && e.dataTransfer.setData("customNodeComponent", n);
15729
15715
  }, []), c = F(() => {
15730
- let e = { core: Object.values(t_) };
15716
+ let e = { core: Object.values(r_) };
15731
15717
  return r?.length > 0 && (e.extended = r), (i || []).forEach((t) => {
15732
15718
  let n = t.group?.trim?.() || "";
15733
15719
  n.length > 0 && (e?.[n] ? e[n].push({
@@ -15748,7 +15734,7 @@ var t_ = e_({
15748
15734
  }), e;
15749
15735
  }, [r, i]), l = F(() => Object.keys(c).reduce((e, t) => ({
15750
15736
  ...e,
15751
- [t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) || y_(e, a) !== null)
15737
+ [t]: (c[t] || []).filter((e) => !(a?.trim?.().length > 0) || x_(e, a) !== null)
15752
15738
  }), {}), [c, a]), u = r.length + i.length;
15753
15739
  return /* @__PURE__ */ H("div", { children: [u > 5 && /* @__PURE__ */ V(fo, {
15754
15740
  placeholder: "Search components...",
@@ -15759,17 +15745,17 @@ var t_ = e_({
15759
15745
  }), /* @__PURE__ */ V("div", {
15760
15746
  className: "flex grow flex-col",
15761
15747
  children: Object.keys(l).map((r) => G(r).with("core", () => l.core?.length > 0 && /* @__PURE__ */ V(M.Fragment, { children: (l.core || []).map((r) => {
15762
- let i = a?.trim?.() ? y_(r, a) : null;
15763
- return /* @__PURE__ */ V(M.Fragment, { children: /* @__PURE__ */ V(S_, {
15748
+ let i = a?.trim?.() ? x_(r, a) : null;
15749
+ return /* @__PURE__ */ V(M.Fragment, { children: /* @__PURE__ */ V(w_, {
15764
15750
  collapsed: n,
15765
15751
  disabled: G(r.type).with(Q.Input, () => t || e).otherwise(() => t),
15766
15752
  specification: r,
15767
15753
  matchedKeywords: i && i.length > 0 ? i : void 0,
15768
- onDragStart: (e) => t_[r.type] === void 0 ? s(e, "customNode", "kind" in r ? r.kind : "") : s(e, r.type)
15754
+ onDragStart: (e) => r_[r.type] === void 0 ? s(e, "customNode", "kind" in r ? r.kind : "") : s(e, r.type)
15769
15755
  }) }, "kind" in r ? r.kind : r.type);
15770
15756
  }) }, r)).otherwise((e) => l[e]?.length > 0 && /* @__PURE__ */ V(M.Fragment, { children: (l?.[e] || []).map((r) => {
15771
- let i = a?.trim?.() ? y_(r, a) : null;
15772
- return /* @__PURE__ */ V(S_, {
15757
+ let i = a?.trim?.() ? x_(r, a) : null;
15758
+ return /* @__PURE__ */ V(w_, {
15773
15759
  collapsed: n,
15774
15760
  disabled: t,
15775
15761
  specification: r,
@@ -15778,7 +15764,7 @@ var t_ = e_({
15778
15764
  }, "kind" in r ? r.kind : r.type);
15779
15765
  }) }, e)))
15780
15766
  })] });
15781
- }), x_ = {
15767
+ }), C_ = {
15782
15768
  reference: {
15783
15769
  label: "REF",
15784
15770
  title: "Reference domain — ships with zen-udf"
@@ -15791,8 +15777,8 @@ var t_ = e_({
15791
15777
  label: "IND",
15792
15778
  title: "Industry pack (proprietary)"
15793
15779
  }
15794
- }, S_ = ({ specification: e, matchedKeywords: t, disabled: n = !1, collapsed: r, ...i }) => {
15795
- let a = e.meta ? x_[e.meta.origin] : void 0;
15780
+ }, w_ = ({ specification: e, matchedKeywords: t, disabled: n = !1, collapsed: r, ...i }) => {
15781
+ let a = e.meta ? C_[e.meta.origin] : void 0;
15796
15782
  return /* @__PURE__ */ H("div", {
15797
15783
  className: z("draggable-component relative cursor-grab [transform:translate(0)]"),
15798
15784
  draggable: !n,
@@ -15813,7 +15799,7 @@ var t_ = e_({
15813
15799
  })
15814
15800
  })]
15815
15801
  });
15816
- }, C_ = () => {
15802
+ }, T_ = () => {
15817
15803
  let [e, t] = M.useState(null), [n, r] = M.useState(!1), i = $(({ customNodes: e }) => e);
15818
15804
  if (Pi({ onChange: ({ nodes: e }) => {
15819
15805
  let n = e[e.length - 1];
@@ -15828,7 +15814,7 @@ var t_ = e_({
15828
15814
  name: typeof n.data?.name == "string" ? n.data.name : void 0
15829
15815
  }), r(!1);
15830
15816
  } }), !e || n) return null;
15831
- let a = e.type === "customNode" ? i.find((t) => t.kind === e.kind) : t_[e.type], o = a?.renderSettings;
15817
+ let a = e.type === "customNode" ? i.find((t) => t.kind === e.kind) : r_[e.type], o = a?.renderSettings;
15832
15818
  return o ? /* @__PURE__ */ V(wi, {
15833
15819
  position: "top-right",
15834
15820
  style: {
@@ -15875,7 +15861,7 @@ var t_ = e_({
15875
15861
  })]
15876
15862
  })
15877
15863
  }) : null;
15878
- }, w_ = [
15864
+ }, E_ = [
15879
15865
  "[--xy-background-color:transparent]",
15880
15866
  "[--xy-background-pattern-color:var(--border)]",
15881
15867
  "[--xy-edge-stroke:color-mix(in_oklab,var(--muted-foreground)_45%,transparent)]",
@@ -15899,21 +15885,21 @@ var t_ = e_({
15899
15885
  "[--xy-selection-background-color:color-mix(in_oklab,var(--primary)_8%,transparent)]",
15900
15886
  "[--xy-selection-border:1px_dashed_var(--primary)]",
15901
15887
  "[--xy-attribution-background-color:transparent]"
15902
- ].join(" "), T_ = Object.entries(t_).reduce((e, [t, n]) => ({
15888
+ ].join(" "), D_ = Object.entries(r_).reduce((e, [t, n]) => ({
15903
15889
  ...e,
15904
15890
  [t]: M.memo((e) => n.renderNode({
15905
15891
  specification: n,
15906
15892
  ...e
15907
15893
  }), (e, t) => e.id === t.id && e.selected === t.selected && Gi(e.data, t.data))
15908
- }), {}), E_ = { edge: M.memo(f_(null)) }, D_ = ve(function({ reactFlowProOptions: e, className: t }, n) {
15909
- let r = I(null), i = I(null), a = Ni([]), o = Mi([]), [s, c] = L(() => localStorage.getItem("jdm-components-opened") ? localStorage.getItem(g_) === "true" : (localStorage.setItem(g_, "true"), !0)), l = I(void 0), u = Nm(), d = Rm(), f = Mm(), p = jm((e) => e), { onReactFlowInit: m } = Am(({ onReactFlowInit: e }) => ({ onReactFlowInit: e })), { modal: h } = Ta.useApp(), { disabled: g, hasInputNode: _, components: v, customNodes: y, id: b } = $(({ id: e, disabled: t, components: n, customNodes: r, decisionGraph: i }) => ({
15894
+ }), {}), O_ = { edge: M.memo(m_(null)) }, k_ = ve(function({ reactFlowProOptions: e, className: t }, n) {
15895
+ let r = I(null), i = I(null), a = Ni([]), o = Mi([]), [s, c] = L(() => localStorage.getItem("jdm-components-opened") ? localStorage.getItem(v_) === "true" : (localStorage.setItem(v_, "true"), !0)), l = I(void 0), u = Nm(), d = Rm(), f = Mm(), p = jm((e) => e), { onReactFlowInit: m } = Am(({ onReactFlowInit: e }) => ({ onReactFlowInit: e })), { modal: h } = Ta.useApp(), { disabled: g, hasInputNode: _, components: v, customNodes: y, id: b } = $(({ id: e, disabled: t, components: n, customNodes: r, decisionGraph: i }) => ({
15910
15896
  id: e,
15911
15897
  disabled: t,
15912
15898
  components: n,
15913
15899
  customNodes: r,
15914
15900
  hasInputNode: (i?.nodes || []).some((e) => e.type === Q.Input)
15915
15901
  }));
15916
- p.nodesState.current = a, p.edgesState.current = o, p.graphClipboard.current = m_(i, r), p.reactFlowInstance.current = i.current;
15902
+ p.nodesState.current = a, p.edgesState.current = o, p.graphClipboard.current = g_(i, r), p.reactFlowInstance.current = i.current;
15917
15903
  let x = F(() => M.memo((e) => {
15918
15904
  let t = Z(), { openTab: n } = Mm(), r = y.find((t) => t.kind === e?.data?.kind);
15919
15905
  return r ? r.renderNode({
@@ -15945,9 +15931,9 @@ var t_ = e_({
15945
15931
  ...e
15946
15932
  }), (e, t) => e.id === t.id && e.selected === t.selected && Gi(e.data, t.data))
15947
15933
  }), {
15948
- ...T_,
15934
+ ...D_,
15949
15935
  customNode: x
15950
- }), [v, x]), C = v_({
15936
+ }), [v, x]), C = b_({
15951
15937
  reactFlowWrapper: r,
15952
15938
  reactFlowInstance: i,
15953
15939
  customNodes: y,
@@ -15963,13 +15949,13 @@ var t_ = e_({
15963
15949
  for (let a of ji(r, t, n)) if (a.id === e.source || s(a, i)) return !0;
15964
15950
  };
15965
15951
  return !r && !s(i);
15966
- }, { onDrop: T, onDragOver: E } = h_({
15952
+ }, { onDrop: T, onDragOver: E } = __({
15967
15953
  reactFlowWrapper: r,
15968
15954
  reactFlowInstance: i,
15969
15955
  addNodes: f.addNodes,
15970
15956
  addNode: C
15971
15957
  });
15972
- return __({
15958
+ return y_({
15973
15959
  reactFlowInstance: i,
15974
15960
  onRestoreViewport: (e) => {
15975
15961
  l.current = e;
@@ -16035,7 +16021,7 @@ var t_ = e_({
16035
16021
  }
16036
16022
  },
16037
16023
  children: /* @__PURE__ */ V("div", {
16038
- className: z(["react-flow"], w_),
16024
+ className: z(["react-flow"], E_),
16039
16025
  ref: r,
16040
16026
  children: /* @__PURE__ */ H(Ei, {
16041
16027
  deleteKeyCode: null,
@@ -16056,7 +16042,7 @@ var t_ = e_({
16056
16042
  minZoom: .25,
16057
16043
  selectionMode: Oi.Partial,
16058
16044
  nodeTypes: S,
16059
- edgeTypes: E_,
16045
+ edgeTypes: O_,
16060
16046
  onDrop: T,
16061
16047
  onDragOver: E,
16062
16048
  onConnect: (e) => {
@@ -16099,7 +16085,7 @@ var t_ = e_({
16099
16085
  color: "var(--border)",
16100
16086
  gap: 20
16101
16087
  }),
16102
- /* @__PURE__ */ V(C_, {})
16088
+ /* @__PURE__ */ V(T_, {})
16103
16089
  ]
16104
16090
  })
16105
16091
  })
@@ -16136,7 +16122,7 @@ var t_ = e_({
16136
16122
  })]
16137
16123
  }), /* @__PURE__ */ V("div", {
16138
16124
  className: "min-h-0 flex-1 overflow-y-auto",
16139
- children: /* @__PURE__ */ V(b_, {
16125
+ children: /* @__PURE__ */ V(S_, {
16140
16126
  inputDisabled: _,
16141
16127
  collapsed: !s,
16142
16128
  disabled: g
@@ -16145,7 +16131,7 @@ var t_ = e_({
16145
16131
  })]
16146
16132
  })
16147
16133
  });
16148
- }), { Title: O_, Text: k_ } = X, A_ = M.memo(({ className: e }) => {
16134
+ }), { Title: A_, Text: j_ } = X, M_ = M.memo(({ className: e }) => {
16149
16135
  let t = Z(), { decisionGraph: n, customComponents: r, viewConfig: i, viewConfigCta: a } = $((e) => ({
16150
16136
  decisionGraph: e.decisionGraph || [],
16151
16137
  customComponents: e.components,
@@ -16153,7 +16139,7 @@ var t_ = e_({
16153
16139
  viewConfig: e.viewConfig,
16154
16140
  viewConfigCta: e.viewConfigCta
16155
16141
  })), { openTab: o } = Mm(), s = Am((e) => e.onViewConfigCta), c = F(() => (n?.nodes || []).filter((e) => !i?.enabled || !!i?.permissions?.[e.id]).map((e) => {
16156
- let t = e.type, n = t_[e.type] || (r || []).find((t) => t.type === e.type);
16142
+ let t = e.type, n = r_[e.type] || (r || []).find((t) => t.type === e.type);
16157
16143
  return {
16158
16144
  id: e.id,
16159
16145
  type: e.type,
@@ -16164,7 +16150,7 @@ var t_ = e_({
16164
16150
  ...e?._diff ? { _diff: e._diff } : {}
16165
16151
  };
16166
16152
  }), [n, i]), [l, u] = L(""), d = ({ node: e }) => {
16167
- let t = t_?.[e?.type];
16153
+ let t = r_?.[e?.type];
16168
16154
  return /* @__PURE__ */ V("div", {
16169
16155
  className: z("cursor-pointer rounded-(--seal-border-radius) border bg-card text-card-foreground shadow-xs transition-colors hover:border-primary/50", e?._diff?.status),
16170
16156
  onClick: () => o(e.id),
@@ -16184,14 +16170,14 @@ var t_ = e_({
16184
16170
  icon: t?.icon
16185
16171
  }), /* @__PURE__ */ H("div", {
16186
16172
  style: { flex: 1 },
16187
- children: [/* @__PURE__ */ V(k_, {
16173
+ children: [/* @__PURE__ */ V(j_, {
16188
16174
  style: {
16189
16175
  margin: 0,
16190
16176
  fontSize: 14,
16191
16177
  marginBottom: e?.description ? "4px" : 0
16192
16178
  },
16193
16179
  children: e.name
16194
- }), e?.description && /* @__PURE__ */ V(k_, {
16180
+ }), e?.description && /* @__PURE__ */ V(j_, {
16195
16181
  type: "secondary",
16196
16182
  style: { fontSize: "14px" },
16197
16183
  children: e?.description
@@ -16226,7 +16212,7 @@ var t_ = e_({
16226
16212
  className: "mb-8",
16227
16213
  children: [/* @__PURE__ */ H("div", {
16228
16214
  className: "flex justify-between",
16229
- children: [/* @__PURE__ */ V(O_, {
16215
+ children: [/* @__PURE__ */ V(A_, {
16230
16216
  level: 4,
16231
16217
  style: {
16232
16218
  margin: 0,
@@ -16240,13 +16226,13 @@ var t_ = e_({
16240
16226
  },
16241
16227
  children: a
16242
16228
  })]
16243
- }), p ? /* @__PURE__ */ V(B, { children: n?.nodes?.length > 0 ? /* @__PURE__ */ V(k_, {
16229
+ }), p ? /* @__PURE__ */ V(B, { children: n?.nodes?.length > 0 ? /* @__PURE__ */ V(j_, {
16244
16230
  type: "secondary",
16245
16231
  children: "This decision model contains multiple components, but no view has been configured yet."
16246
- }) : /* @__PURE__ */ V(k_, {
16232
+ }) : /* @__PURE__ */ V(j_, {
16247
16233
  type: "secondary",
16248
16234
  children: "This decision model doesn't contain any component."
16249
- }) }) : /* @__PURE__ */ V(k_, {
16235
+ }) }) : /* @__PURE__ */ V(j_, {
16250
16236
  type: "secondary",
16251
16237
  children: i?.description || "Configure business rules for your decision model"
16252
16238
  })]
@@ -16265,7 +16251,7 @@ var t_ = e_({
16265
16251
  icon: /* @__PURE__ */ V(Wc, {}),
16266
16252
  onClick: () => u(""),
16267
16253
  children: "Clear"
16268
- })] }), /* @__PURE__ */ H(k_, {
16254
+ })] }), /* @__PURE__ */ H(j_, {
16269
16255
  type: "secondary",
16270
16256
  style: { whiteSpace: "nowrap" },
16271
16257
  children: [c?.length || 0, " configurable items"]
@@ -16273,7 +16259,7 @@ var t_ = e_({
16273
16259
  }),
16274
16260
  f.filter((e) => e?.nodes?.length > 0).map((e) => /* @__PURE__ */ H("div", {
16275
16261
  className: "mb-8",
16276
- children: [/* @__PURE__ */ V(O_, {
16262
+ children: [/* @__PURE__ */ V(A_, {
16277
16263
  level: 5,
16278
16264
  style: { marginBottom: "16px" },
16279
16265
  children: e.title
@@ -16285,7 +16271,7 @@ var t_ = e_({
16285
16271
  ]
16286
16272
  })
16287
16273
  });
16288
- }), j_ = (e, t) => e.id === t.id || e.value?.toLowerCase() === t.value?.toLowerCase() || e.label?.toLowerCase() === t.label?.toLowerCase(), M_ = (e, t) => t ? {
16274
+ }), N_ = (e, t) => e.id === t.id || e.value?.toLowerCase() === t.value?.toLowerCase() || e.label?.toLowerCase() === t.label?.toLowerCase(), P_ = (e, t) => t ? {
16289
16275
  id: e.id,
16290
16276
  label: e.label || t.label,
16291
16277
  value: e.value || t.value,
@@ -16293,14 +16279,14 @@ var t_ = e_({
16293
16279
  } : {
16294
16280
  ...e,
16295
16281
  value: e.value || e.label
16296
- }, N_ = (e, t) => {
16297
- let n = [...t.map((t) => M_(t, e.find((e) => j_(e, t)))), ...e.filter((e) => !t.some((t) => j_(t, e)))];
16282
+ }, F_ = (e, t) => {
16283
+ let n = [...t.map((t) => P_(t, e.find((e) => N_(e, t)))), ...e.filter((e) => !t.some((t) => N_(t, e)))];
16298
16284
  return n.some((e) => e.id === "_description") || n.push({
16299
16285
  id: "_description",
16300
16286
  label: "DESCRIPTION",
16301
16287
  value: "description"
16302
16288
  }), n;
16303
- }, P_ = (e) => e.reduce((t, n, r) => {
16289
+ }, I_ = (e) => e.reduce((t, n, r) => {
16304
16290
  let i = e.some((e) => e.value === "description"), a = e.slice(0, r).some((e) => e.type === "output"), o;
16305
16291
  return o = i ? r === e.length - 2 && !a : r === e.length - 1 && n.value !== "description" && !a, {
16306
16292
  ...t,
@@ -16311,7 +16297,7 @@ var t_ = e_({
16311
16297
  type: o ? "output" : n.type
16312
16298
  }
16313
16299
  };
16314
- }, {}), F_ = (e, t, n) => Object.keys(t).map((r, i) => {
16300
+ }, {}), L_ = (e, t, n) => Object.keys(t).map((r, i) => {
16315
16301
  let a = t[r], o = n[r] || {}, s = Object.keys(a).map((e) => ({
16316
16302
  ...a[e],
16317
16303
  wrapInQuotes: o[e] || !1,
@@ -16333,7 +16319,7 @@ var t_ = e_({
16333
16319
  passThrough: e[i].existingTableData.passThrough,
16334
16320
  executionMode: e[i].existingTableData.executionMode
16335
16321
  };
16336
- }), I_ = {
16322
+ }), R_ = {
16337
16323
  input: {
16338
16324
  label: "Input",
16339
16325
  color: "var(--seal-color-field-input)"
@@ -16342,7 +16328,7 @@ var t_ = e_({
16342
16328
  label: "Output",
16343
16329
  color: "var(--seal-color-field-output)"
16344
16330
  }
16345
- }, L_ = (e) => `step${e}`, R_ = ({ excelData: e, handleSuccess: t, handleCancel: n }) => {
16331
+ }, z_ = (e) => `step${e}`, B_ = ({ excelData: e, handleSuccess: t, handleCancel: n }) => {
16346
16332
  let r = Z(), [i, a] = L(0), o = F(() => e?.map((e) => ({
16347
16333
  key: e.id,
16348
16334
  title: e.name
@@ -16362,13 +16348,13 @@ var t_ = e_({
16362
16348
  value: e.id === "_description" ? "description" : e.value,
16363
16349
  label: e.name,
16364
16350
  ...e.id !== "_description" && { type: e._type }
16365
- })), r = N_(t, n);
16351
+ })), r = F_(t, n);
16366
16352
  c(r);
16367
16353
  let o = r.filter((e) => n.some((t) => t.id === e.id));
16368
16354
  if (o.length) {
16369
- let e = P_(o);
16355
+ let e = I_(o);
16370
16356
  m((t) => {
16371
- let n = L_(i);
16357
+ let n = z_(i);
16372
16358
  return (t || {})[n] ? t : {
16373
16359
  ...t || {},
16374
16360
  [n]: e
@@ -16376,7 +16362,7 @@ var t_ = e_({
16376
16362
  });
16377
16363
  }
16378
16364
  }, [e, i]);
16379
- let h = e?.[i]?.headers ?? [], g = p?.[L_(i)], _ = M.useMemo(() => [
16365
+ let h = e?.[i]?.headers ?? [], g = p?.[z_(i)], _ = M.useMemo(() => [
16380
16366
  {
16381
16367
  id: "excel",
16382
16368
  header: "Excel columns",
@@ -16404,7 +16390,7 @@ var t_ = e_({
16404
16390
  value: g?.[t.id]?.value,
16405
16391
  allowClear: !0,
16406
16392
  onClear: () => {
16407
- let e = L_(i);
16393
+ let e = z_(i);
16408
16394
  m((n) => {
16409
16395
  let r = { ...(n || {})[e] };
16410
16396
  return delete r[t.id], {
@@ -16412,7 +16398,7 @@ var t_ = e_({
16412
16398
  [e]: r
16413
16399
  };
16414
16400
  }), f((e) => {
16415
- let n = L_(i), r = { ...e[n] };
16401
+ let n = z_(i), r = { ...e[n] };
16416
16402
  return delete r[t.id], {
16417
16403
  ...e,
16418
16404
  [n]: r
@@ -16422,7 +16408,7 @@ var t_ = e_({
16422
16408
  onSelect: (e, n) => {
16423
16409
  let { id: r, label: a, value: o, type: s, wrapInQuotes: c } = n;
16424
16410
  m((e) => {
16425
- let n = L_(i), l = { ...(e || {})[n] }, u = [];
16411
+ let n = z_(i), l = { ...(e || {})[n] }, u = [];
16426
16412
  return Object.keys(l).forEach((e) => {
16427
16413
  e !== t.id && (l[e].value === o || l[e].label === a) && (u.push(e), delete l[e]);
16428
16414
  }), u.length > 0 && f((e) => {
@@ -16500,8 +16486,8 @@ var t_ = e_({
16500
16486
  alignItems: "center"
16501
16487
  },
16502
16488
  children: [/* @__PURE__ */ V("span", { children: e.data.label }), t && /* @__PURE__ */ V(is, {
16503
- style: { background: I_[t].color },
16504
- children: I_[t].label
16489
+ style: { background: R_[t].color },
16490
+ children: R_[t].label
16505
16491
  })]
16506
16492
  });
16507
16493
  },
@@ -16535,7 +16521,7 @@ var t_ = e_({
16535
16521
  value: g?.[t.id]?.type ?? "input",
16536
16522
  onChange: (e) => {
16537
16523
  m((n) => {
16538
- let r = L_(i), a = (n || {})[r];
16524
+ let r = z_(i), a = (n || {})[r];
16539
16525
  return {
16540
16526
  ...n || {},
16541
16527
  [r]: {
@@ -16578,7 +16564,7 @@ var t_ = e_({
16578
16564
  title: r("dg.excel.wrapQuotes"),
16579
16565
  children: /* @__PURE__ */ V("span", {
16580
16566
  className: "inline-flex cursor-pointer text-[var(--muted-foreground)] [&_svg]:block",
16581
- children: /* @__PURE__ */ V(rg, { className: "size-3.5" })
16567
+ children: /* @__PURE__ */ V(ig, { className: "size-3.5" })
16582
16568
  })
16583
16569
  }),
16584
16570
  cell: ({ row: e }) => {
@@ -16590,10 +16576,10 @@ var t_ = e_({
16590
16576
  },
16591
16577
  children: /* @__PURE__ */ V(ka, {
16592
16578
  disabled: !g?.[t.id],
16593
- checked: d[L_(i)]?.[t.id] || !1,
16579
+ checked: d[z_(i)]?.[t.id] || !1,
16594
16580
  onChange: (e) => {
16595
16581
  f((n) => {
16596
- let r = L_(i);
16582
+ let r = z_(i);
16597
16583
  return {
16598
16584
  ...n,
16599
16585
  [r]: {
@@ -16664,7 +16650,7 @@ var t_ = e_({
16664
16650
  children: [
16665
16651
  i < (e || []).length - 1 && /* @__PURE__ */ V(J, {
16666
16652
  type: "primary",
16667
- disabled: !p?.[L_(i)] || ei(p[L_(i)]),
16653
+ disabled: !p?.[z_(i)] || ei(p[z_(i)]),
16668
16654
  onClick: () => {
16669
16655
  a(i + 1);
16670
16656
  },
@@ -16672,9 +16658,9 @@ var t_ = e_({
16672
16658
  }),
16673
16659
  i === (e || []).length - 1 && /* @__PURE__ */ V(J, {
16674
16660
  type: "primary",
16675
- disabled: !p?.[L_(i)] || ei(p[L_(i)]),
16661
+ disabled: !p?.[z_(i)] || ei(p[z_(i)]),
16676
16662
  onClick: () => {
16677
- p && e && t(F_(e, p, d));
16663
+ p && e && t(L_(e, p, d));
16678
16664
  },
16679
16665
  children: "Done"
16680
16666
  }),
@@ -16689,7 +16675,7 @@ var t_ = e_({
16689
16675
  })
16690
16676
  ]
16691
16677
  });
16692
- }, z_ = "application/vnd.gorules.decision", B_ = () => {
16678
+ }, V_ = "application/vnd.gorules.decision", H_ = () => {
16693
16679
  let e = Z(), t = Nm(), n = I(null), r = I(null), [i, a] = L(), { setDecisionGraph: o, setActivePanel: s, autoLayout: c } = Mm(), { disabled: l, panels: u, activePanel: d, viewConfig: f } = $(({ disabled: e, panels: t, activePanel: n, viewConfig: r }) => ({
16694
16680
  disabled: e,
16695
16681
  panels: t,
@@ -16700,7 +16686,7 @@ var t_ = e_({
16700
16686
  n.onload = function(e) {
16701
16687
  try {
16702
16688
  let t = JSON.parse(e?.target?.result);
16703
- if (t?.contentType !== z_) throw Error("Invalid content type");
16689
+ if (t?.contentType !== V_) throw Error("Invalid content type");
16704
16690
  let n = Array.isArray(t?.nodes) ? t.nodes : [], r = n.map((e) => e.id), i = t.edges.filter((e) => r.includes(e?.targetId) && r.includes(e?.sourceId)), a = oe.safeParse({
16705
16691
  nodes: n,
16706
16692
  edges: i,
@@ -16792,7 +16778,7 @@ var t_ = e_({
16792
16778
  }, g = async () => {
16793
16779
  try {
16794
16780
  let { name: e, decisionGraph: n } = t.stateStore.getState(), r = `${e.replaceAll(".json", "")}.json`, i = JSON.stringify({
16795
- contentType: z_,
16781
+ contentType: V_,
16796
16782
  nodes: n.nodes,
16797
16783
  edges: n.edges
16798
16784
  }, null, 2), a = new Blob([i], { type: "application/json" }), o = URL.createObjectURL(a), s = window.document.createElement("a");
@@ -16912,14 +16898,14 @@ var t_ = e_({
16912
16898
  })]
16913
16899
  })
16914
16900
  ]
16915
- }), /* @__PURE__ */ V(R_, {
16901
+ }), /* @__PURE__ */ V(B_, {
16916
16902
  excelData: i,
16917
16903
  handleSuccess: h,
16918
16904
  handleCancel: () => {
16919
16905
  a(null);
16920
16906
  }
16921
16907
  })] });
16922
- }, V_ = ({ disabled: e, tabBarExtraContent: t }) => {
16908
+ }, U_ = ({ disabled: e, tabBarExtraContent: t }) => {
16923
16909
  let n = Mm(), { openNodes: r, activeNodeId: i, viewConfig: a } = $(({ decisionGraph: e, activeTab: t, openTabs: n, viewConfig: r }) => ({
16924
16910
  activeNodeId: (e?.nodes ?? []).find((e) => e.id === t)?.id,
16925
16911
  openNodes: (n || []).map((t) => {
@@ -16934,7 +16920,7 @@ var t_ = e_({
16934
16920
  viewConfig: r
16935
16921
  })), o = F(() => [{
16936
16922
  key: "graph",
16937
- label: /* @__PURE__ */ V(H_, {
16923
+ label: /* @__PURE__ */ V(W_, {
16938
16924
  total: r?.length,
16939
16925
  icon: a?.enabled ? /* @__PURE__ */ V(Mt, {}) : /* @__PURE__ */ V(Et, {}),
16940
16926
  name: a?.enabled ? "Nodes" : "Graph",
@@ -16953,11 +16939,11 @@ var t_ = e_({
16953
16939
  onChange: (e) => n.openTab(e),
16954
16940
  tabBarExtraContent: t,
16955
16941
  items: [...o, ...r.map((t, a) => {
16956
- let o = t_[t.type];
16942
+ let o = r_[t.type];
16957
16943
  return {
16958
16944
  disabled: e,
16959
16945
  key: t.id,
16960
- label: /* @__PURE__ */ V(H_, {
16946
+ label: /* @__PURE__ */ V(W_, {
16961
16947
  onContextClick: (e) => {
16962
16948
  n.closeTab(t.id, e);
16963
16949
  },
@@ -16973,7 +16959,7 @@ var t_ = e_({
16973
16959
  };
16974
16960
  })]
16975
16961
  }) });
16976
- }, H_ = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: o = oh.Blue, onClose: s, onContextClick: c }) => {
16962
+ }, W_ = ({ total: e = 0, index: t = -1, icon: n, name: r, active: i, diffStatus: a, color: o = oh.Blue, onClose: s, onContextClick: c }) => {
16977
16963
  let l = Z(), u = [
16978
16964
  e > 0 && t !== -1 && {
16979
16965
  key: "close",
@@ -17045,17 +17031,17 @@ var t_ = e_({
17045
17031
  trigger: ["contextMenu"],
17046
17032
  children: d
17047
17033
  });
17048
- }, U_ = {}, W_ = (e) => !e || typeof e != "object" || Array.isArray(e) ? U_ : e, G_ = (e, t) => ({
17034
+ }, G_ = {}, K_ = (e) => !e || typeof e != "object" || Array.isArray(e) ? G_ : e, q_ = (e, t) => ({
17049
17035
  ...e,
17050
17036
  namespace: e?.namespace ?? t,
17051
- returns: W_(e?.returns)
17052
- }), K_ = (e) => Array.isArray(e) ? e.flatMap((e) => Array.isArray(e?.tools) ? e.tools.map((t) => G_(t, e?.name)) : e?.name ? [G_(e)] : []) : [], q_ = (e) => W_(e?.returns), J_ = (e) => Array.isArray(e) || typeof e == "string" && e.includes(";;"), Y_ = (e) => e?.type === "function" || J_(e?.value), X_ = (e) => {
17037
+ returns: K_(e?.returns)
17038
+ }), J_ = (e) => Array.isArray(e) ? e.flatMap((e) => Array.isArray(e?.tools) ? e.tools.map((t) => q_(t, e?.name)) : e?.name ? [q_(e)] : []) : [], Y_ = (e) => K_(e?.returns), X_ = (e) => Array.isArray(e) || typeof e == "string" && e.includes(";;"), Z_ = (e) => e?.type === "function" || X_(e?.value), Q_ = (e) => {
17053
17039
  if (Array.isArray(e)) return e[0]?.trim() || null;
17054
17040
  if (typeof e != "string" || !e.trim()) return null;
17055
17041
  let [t] = um(e);
17056
17042
  return t?.trim() || null;
17057
- }, Z_ = (e, t) => {
17058
- let n = Array.isArray(t) ? t.filter(Boolean) : [], r = K_(n);
17043
+ }, $_ = (e, t) => {
17044
+ let n = Array.isArray(t) ? t.filter(Boolean) : [], r = J_(n);
17059
17045
  if (!e) return {
17060
17046
  mode: "free",
17061
17047
  functions: r
@@ -17067,47 +17053,47 @@ var t_ = e_({
17067
17053
  let i = n.find((t) => t?.name === e);
17068
17054
  return i ? {
17069
17055
  mode: "scoped",
17070
- functions: K_([i])
17056
+ functions: J_([i])
17071
17057
  } : {
17072
17058
  mode: "free",
17073
17059
  functions: r
17074
17060
  };
17075
- }, Q_ = (e) => {
17061
+ }, ev = (e) => {
17076
17062
  let t = e?.parameters?.properties ?? {}, n = {}, r = Object.keys(t).map((e) => (n[e] = t[e]?.default ?? "", n[e]));
17077
17063
  return {
17078
17064
  type: "function",
17079
17065
  value: [e?.name ?? "", ...r],
17080
17066
  funcmeta: e,
17081
17067
  arg_exprs: n,
17082
- returnSchema: q_(e)
17068
+ returnSchema: Y_(e)
17083
17069
  };
17084
- }, $_ = (e, t) => {
17070
+ }, tv = (e, t) => {
17085
17071
  if (!t || t.mode !== "scoped" || !Array.isArray(e)) return null;
17086
17072
  let [n] = t.functions;
17087
17073
  if (!n?.name) return null;
17088
17074
  let r = t.functions.map((e) => e?.name).filter(Boolean), i = !1, a = e.map((e) => {
17089
- if (!Y_(e)) return e;
17090
- let t = X_(e.value);
17075
+ if (!Z_(e)) return e;
17076
+ let t = Q_(e.value);
17091
17077
  return !t || r.includes(t) ? e : (i = !0, {
17092
17078
  ...e,
17093
- ...Q_(n)
17079
+ ...ev(n)
17094
17080
  });
17095
17081
  });
17096
17082
  return i ? a : null;
17097
- }, ev = M.createContext({}), tv = (e = {}) => ({
17083
+ }, nv = M.createContext({}), rv = (e = {}) => ({
17098
17084
  id: crypto.randomUUID(),
17099
17085
  key: "",
17100
17086
  value: "",
17101
17087
  ...e
17102
- }), nv = ({ children: e }) => {
17088
+ }), iv = ({ children: e }) => {
17103
17089
  let t = F(() => Dn((e, t) => ({
17104
17090
  disabled: !1,
17105
17091
  debugIndex: 0,
17106
17092
  addRowAbove: (t = 0) => {
17107
- e(U((e) => (e.expressions.splice(t, 0, tv()), e)));
17093
+ e(U((e) => (e.expressions.splice(t, 0, rv()), e)));
17108
17094
  },
17109
17095
  addRowBelow: (t) => {
17110
- e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, tv()), e)));
17096
+ e(U((e) => (t ??= e.expressions.length - 1, e.expressions.splice(t + 1, 0, rv()), e)));
17111
17097
  },
17112
17098
  expressions: [],
17113
17099
  setExpressions: (t) => {
@@ -17132,27 +17118,27 @@ var t_ = e_({
17132
17118
  }, e)));
17133
17119
  }
17134
17120
  })), []);
17135
- return /* @__PURE__ */ V(ev.Provider, {
17121
+ return /* @__PURE__ */ V(nv.Provider, {
17136
17122
  value: t,
17137
17123
  children: e
17138
17124
  });
17139
17125
  };
17140
- function rv(e, t = mc.default) {
17141
- return On(M.useContext(ev), hc(e, t));
17126
+ function av(e, t = mc.default) {
17127
+ return On(M.useContext(nv), hc(e, t));
17142
17128
  }
17143
- var iv = () => M.useContext(ev), av = () => {
17144
- let e = iv(), { debugIndex: t, traceCount: n } = rv(({ debug: e, debugIndex: t }) => ({
17129
+ var ov = () => M.useContext(nv), sv = () => {
17130
+ let e = ov(), { debugIndex: t, traceCount: n } = av(({ debug: e, debugIndex: t }) => ({
17145
17131
  debugIndex: t,
17146
17132
  traceCount: G(e?.trace?.traceData).with(W.array(), (e) => e.length).otherwise(() => null)
17147
17133
  }));
17148
- return /* @__PURE__ */ V(Oh, {
17134
+ return /* @__PURE__ */ V(kh, {
17149
17135
  className: "seal-dt__command-bar",
17150
17136
  debugIndex: t,
17151
17137
  traceCount: n,
17152
17138
  onDebugIndexChange: (t) => e.setState({ debugIndex: t })
17153
17139
  });
17154
- }, ov = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full", functionScope: a }) => {
17155
- let o = I(!1), s = iv(), { setExpressions: c, expressions: l } = rv(({ setExpressions: e, expressions: t }) => ({
17140
+ }, cv = ({ value: e, onChange: t, defaultValue: n = [], disabled: r = !1, permission: i = "edit:full", functionScope: a }) => {
17141
+ let o = I(!1), s = ov(), { setExpressions: c, expressions: l } = av(({ setExpressions: e, expressions: t }) => ({
17156
17142
  setExpressions: e,
17157
17143
  expressions: t
17158
17144
  }));
@@ -17169,52 +17155,52 @@ var iv = () => M.useContext(ev), av = () => {
17169
17155
  o.current && e && !(0, mc.default)(e, l) && c(e);
17170
17156
  }, [e]), P(() => {
17171
17157
  if (e) {
17172
- let t = $_(e, a);
17158
+ let t = tv(e, a);
17173
17159
  c(t ?? e);
17174
17160
  } else n && c(n);
17175
17161
  o.current = !0;
17176
17162
  }, []), null;
17177
- }, sv = (e) => Array.isArray(e.type) ? e.type.find((e) => e !== "null") ?? e.type[0] : e.type, cv = (e) => {
17163
+ }, lv = (e) => Array.isArray(e.type) ? e.type.find((e) => e !== "null") ?? e.type[0] : e.type, uv = (e) => {
17178
17164
  if (!e || typeof e != "object") return bn.fromJson("Any");
17179
- if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return cv(e.oneOf[0]);
17180
- if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return cv(e.anyOf[0]);
17181
- if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(cv(t)), bn.fromJson({ Object: {} }));
17182
- switch (sv(e)) {
17165
+ if (Array.isArray(e.oneOf) && e.oneOf.length > 0) return uv(e.oneOf[0]);
17166
+ if (Array.isArray(e.anyOf) && e.anyOf.length > 0) return uv(e.anyOf[0]);
17167
+ if (Array.isArray(e.allOf) && e.allOf.length > 0) return e.allOf.reduce((e, t) => e.merge(uv(t)), bn.fromJson({ Object: {} }));
17168
+ switch (lv(e)) {
17183
17169
  case "object": {
17184
17170
  let t = bn.fromJson({ Object: {} });
17185
17171
  return Object.entries(e.properties ?? {}).forEach(([e, n]) => {
17186
- t.set(e, cv(n));
17172
+ t.set(e, uv(n));
17187
17173
  }), t;
17188
17174
  }
17189
- case "array": return cv(Array.isArray(e.items) ? e.items[0] : e.items).toArray();
17175
+ case "array": return uv(Array.isArray(e.items) ? e.items[0] : e.items).toArray();
17190
17176
  case "string": return bn.fromJson("String");
17191
17177
  case "boolean": return bn.fromJson("Bool");
17192
17178
  case "number":
17193
17179
  case "integer": return bn.fromJson("Number");
17194
17180
  case "null": return bn.fromJson("Null");
17195
- default: return e.properties ? cv({
17181
+ default: return e.properties ? uv({
17196
17182
  ...e,
17197
17183
  type: "object"
17198
- }) : e.items ? cv({
17184
+ }) : e.items ? uv({
17199
17185
  ...e,
17200
17186
  type: "array"
17201
17187
  }) : e.nullable ? bn.fromJson("Null") : bn.fromJson("Any");
17202
17188
  }
17203
- }, lv = ({ index: e, children: t }) => {
17204
- let { addRowAbove: n, addRowBelow: r, disabled: i } = rv(({ addRowBelow: e, addRowAbove: t, disabled: n }) => ({
17189
+ }, dv = ({ index: e, children: t }) => {
17190
+ let { addRowAbove: n, addRowBelow: r, disabled: i } = av(({ addRowBelow: e, addRowAbove: t, disabled: n }) => ({
17205
17191
  addRowBelow: e,
17206
17192
  addRowAbove: t,
17207
17193
  disabled: n
17208
17194
  }));
17209
- return /* @__PURE__ */ V(Mh, {
17195
+ return /* @__PURE__ */ V(Nh, {
17210
17196
  index: e,
17211
17197
  disabled: i,
17212
17198
  addRowAbove: n,
17213
17199
  addRowBelow: r,
17214
17200
  children: t
17215
17201
  });
17216
- }, uv = U_, dv = ({ expression: e, index: t, variableType: n, customFunctions: r, functionScope: i }) => {
17217
- let a = Z(), [o, s] = L(!1), [c, l] = L("function"), u = I(null), d = i?.mode ?? "free", f = F(() => K_(r), [r]), p = F(() => d === "scoped" ? i?.functions ?? [] : f, [
17202
+ }, fv = G_, pv = ({ expression: e, index: t, variableType: n, customFunctions: r, functionScope: i }) => {
17203
+ let a = Z(), [o, s] = L(!1), [c, l] = L("function"), u = I(null), d = i?.mode ?? "free", f = F(() => J_(r), [r]), p = F(() => d === "scoped" ? i?.functions ?? [] : f, [
17218
17204
  d,
17219
17205
  i,
17220
17206
  f
@@ -17229,7 +17215,7 @@ var iv = () => M.useContext(ev), av = () => {
17229
17215
  if (r.length === i) return r;
17230
17216
  let a = n.split(";;");
17231
17217
  return a.length === i ? a : r.length < i && a.length > i ? [...a.slice(0, i - 1), a.slice(i - 1).join(";;")] : r;
17232
- }, y = (t, n = e.returnSchema ?? uv) => {
17218
+ }, y = (t, n = e.returnSchema ?? fv) => {
17233
17219
  if (!t || typeof t == "string" && !t.trim()) return null;
17234
17220
  let r = dm(t), i = r[0], a = f.find((e) => e.name === i);
17235
17221
  if (!a) {
@@ -17249,7 +17235,7 @@ var iv = () => M.useContext(ev), av = () => {
17249
17235
  type: "object",
17250
17236
  title: i
17251
17237
  },
17252
- returns: W_(n)
17238
+ returns: K_(n)
17253
17239
  },
17254
17240
  arg_exprs: e.reduce((e, t, n) => (e[`arg${n}`] = t, e), {})
17255
17241
  };
@@ -17267,10 +17253,10 @@ var iv = () => M.useContext(ev), av = () => {
17267
17253
  arg_exprs: o
17268
17254
  };
17269
17255
  }, b = F(() => {
17270
- if (!Y_(e)) return null;
17256
+ if (!Z_(e)) return null;
17271
17257
  if (e.funcmeta) {
17272
17258
  if (e.funcmeta.parameters?.properties) {
17273
- let t = {}, n = e.funcmeta.parameters.properties, r = y(e.value, e.returnSchema ?? uv);
17259
+ let t = {}, n = e.funcmeta.parameters.properties, r = y(e.value, e.returnSchema ?? fv);
17274
17260
  return Object.keys(n).forEach((i) => {
17275
17261
  let a = r?.arg_exprs?.[i];
17276
17262
  if (a != null) {
@@ -17289,14 +17275,14 @@ var iv = () => M.useContext(ev), av = () => {
17289
17275
  arg_exprs: e.arg_exprs || {}
17290
17276
  };
17291
17277
  }
17292
- return y(e.value, e.returnSchema ?? uv);
17278
+ return y(e.value, e.returnSchema ?? fv);
17293
17279
  }, [
17294
17280
  e.type,
17295
17281
  e.funcmeta,
17296
17282
  e.arg_exprs,
17297
17283
  e.value,
17298
17284
  f
17299
- ]), { updateRow: x, removeRow: S, disabled: C, permission: w, configurable: T } = rv(({ updateRow: e, removeRow: t, disabled: n, permission: r, configurable: i }) => ({
17285
+ ]), { updateRow: x, removeRow: S, disabled: C, permission: w, configurable: T } = av(({ updateRow: e, removeRow: t, disabled: n, permission: r, configurable: i }) => ({
17300
17286
  updateRow: e,
17301
17287
  removeRow: t,
17302
17288
  disabled: n,
@@ -17304,10 +17290,10 @@ var iv = () => M.useContext(ev), av = () => {
17304
17290
  configurable: i ?? r === "edit:full"
17305
17291
  }));
17306
17292
  P(() => {
17307
- Y_(e) && b?.funcmeta && l("function");
17293
+ Z_(e) && b?.funcmeta && l("function");
17308
17294
  }, [e.type, e.value]), P(() => {
17309
- if (!Y_(e) || !b?.funcmeta) return;
17310
- let n = q_(b.funcmeta);
17295
+ if (!Z_(e) || !b?.funcmeta) return;
17296
+ let n = Y_(b.funcmeta);
17311
17297
  (0, mc.default)(e.returnSchema, n) || x(t, {
17312
17298
  type: "function",
17313
17299
  returnSchema: n
@@ -17334,7 +17320,7 @@ var iv = () => M.useContext(ev), av = () => {
17334
17320
  }), E({
17335
17321
  value: D(n, i),
17336
17322
  type: "function",
17337
- returnSchema: q_(n),
17323
+ returnSchema: Y_(n),
17338
17324
  funcmeta: n,
17339
17325
  arg_exprs: i
17340
17326
  });
@@ -17378,7 +17364,7 @@ var iv = () => M.useContext(ev), av = () => {
17378
17364
  }),
17379
17365
  /* @__PURE__ */ V("div", {
17380
17366
  className: "expression-list-item__key",
17381
- children: /* @__PURE__ */ V(lv, {
17367
+ children: /* @__PURE__ */ V(dv, {
17382
17368
  index: t,
17383
17369
  children: /* @__PURE__ */ V(Ip, {
17384
17370
  noStyle: !0,
@@ -17459,7 +17445,7 @@ var iv = () => M.useContext(ev), av = () => {
17459
17445
  })
17460
17446
  })
17461
17447
  }),
17462
- /* @__PURE__ */ V(pv, {
17448
+ /* @__PURE__ */ V(hv, {
17463
17449
  expression: e,
17464
17450
  placement: "inline"
17465
17451
  })
@@ -17468,7 +17454,7 @@ var iv = () => M.useContext(ev), av = () => {
17468
17454
  }] : [], {
17469
17455
  key: "code",
17470
17456
  label: a("cf.code"),
17471
- children: /* @__PURE__ */ V(lv, {
17457
+ children: /* @__PURE__ */ V(dv, {
17472
17458
  index: t,
17473
17459
  children: /* @__PURE__ */ H("div", {
17474
17460
  className: "code-mode-container",
@@ -17488,7 +17474,7 @@ var iv = () => M.useContext(ev), av = () => {
17488
17474
  onBlur: () => s(!1),
17489
17475
  noStyle: !0
17490
17476
  })
17491
- }), /* @__PURE__ */ V(pv, {
17477
+ }), /* @__PURE__ */ V(hv, {
17492
17478
  expression: e,
17493
17479
  placement: "inline"
17494
17480
  })]
@@ -17503,16 +17489,16 @@ var iv = () => M.useContext(ev), av = () => {
17503
17489
  iconOnly: !0,
17504
17490
  disabled: w !== "edit:full" || C,
17505
17491
  onConfirm: te
17506
- }), o && /* @__PURE__ */ V(fv, {
17492
+ }), o && /* @__PURE__ */ V(mv, {
17507
17493
  id: e.id,
17508
17494
  value: e.value
17509
17495
  })]
17510
17496
  })
17511
17497
  ]
17512
17498
  });
17513
- }, fv = M.memo(({ id: e, value: t }) => {
17514
- let { inputData: n, initial: r } = rv(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
17515
- let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? jh(t?.trace.traceData, n)?.[i.key] : void 0;
17499
+ }, mv = M.memo(({ id: e, value: t }) => {
17500
+ let { inputData: n, initial: r } = av(({ debug: t, debugIndex: n, calculatedInputData: r }) => {
17501
+ let i = (t?.snapshot?.expressions ?? []).find((t) => t.id === e), a = i?.key ? Mh(t?.trace.traceData, n)?.[i.key] : void 0;
17516
17502
  return {
17517
17503
  inputData: r,
17518
17504
  initial: i && a ? {
@@ -17529,15 +17515,15 @@ var iv = () => M.useContext(ev), av = () => {
17529
17515
  initial: r
17530
17516
  })
17531
17517
  });
17532
- }), pv = ({ expression: e, placement: t = "floating" }) => {
17533
- let { trace: n } = rv(({ debug: t, debugIndex: n }) => ({ trace: mv({
17534
- traceData: jh(t?.trace?.traceData, n),
17535
- output: jh(t?.trace?.output, n),
17518
+ }), hv = ({ expression: e, placement: t = "floating" }) => {
17519
+ let { trace: n } = av(({ debug: t, debugIndex: n }) => ({ trace: gv({
17520
+ traceData: Mh(t?.trace?.traceData, n),
17521
+ output: Mh(t?.trace?.output, n),
17536
17522
  outputPath: t?.snapshot?.outputPath,
17537
17523
  key: e.key
17538
17524
  }) }));
17539
17525
  if (n === void 0) return null;
17540
- let r = vv(n);
17526
+ let r = bv(n);
17541
17527
  return /* @__PURE__ */ V("div", {
17542
17528
  className: z("expression-list-item__resultOverlay", t === "inline" && "expression-list-item__resultOverlay--inline"),
17543
17529
  children: /* @__PURE__ */ H(X.Text, {
@@ -17552,20 +17538,20 @@ var iv = () => M.useContext(ev), av = () => {
17552
17538
  children: ["= ", r]
17553
17539
  })
17554
17540
  });
17555
- }, mv = ({ traceData: e, output: t, outputPath: n, key: r }) => {
17541
+ }, gv = ({ traceData: e, output: t, outputPath: n, key: r }) => {
17556
17542
  if (!r) return;
17557
- let i = hv(e, r);
17558
- if (_v(i) && Object.prototype.hasOwnProperty.call(i, "result")) return i.result;
17543
+ let i = _v(e, r);
17544
+ if (yv(i) && Object.prototype.hasOwnProperty.call(i, "result")) return i.result;
17559
17545
  if (i !== void 0) return i;
17560
- let a = hv(n ? gv(t, n) : t, r);
17561
- return a === void 0 ? hv(t, r) : a;
17562
- }, hv = (e, t) => {
17563
- if (_v(e) && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
17564
- }, gv = (e, t) => t.split(".").reduce((e, t) => hv(e, t), e), _v = (e) => !!e && typeof e == "object" && !Array.isArray(e), vv = (e) => {
17546
+ let a = _v(n ? vv(t, n) : t, r);
17547
+ return a === void 0 ? _v(t, r) : a;
17548
+ }, _v = (e, t) => {
17549
+ if (yv(e) && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
17550
+ }, vv = (e, t) => t.split(".").reduce((e, t) => _v(e, t), e), yv = (e) => !!e && typeof e == "object" && !Array.isArray(e), bv = (e) => {
17565
17551
  let t = JSON.stringify(e);
17566
17552
  return t === void 0 ? String(e) : t;
17567
- }, yv = {}, bv = ({ customFunctions: e, functionScope: t }) => {
17568
- let n = Z(), r = t?.mode ?? "free", { expressions: i, addRowBelow: a, permission: o, disabled: s, inputVariableType: c } = rv(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
17553
+ }, xv = {}, Sv = ({ customFunctions: e, functionScope: t }) => {
17554
+ let n = Z(), r = t?.mode ?? "free", { expressions: i, addRowBelow: a, permission: o, disabled: s, inputVariableType: c } = av(({ expressions: e, addRowBelow: t, permission: n, disabled: r, inputVariableType: i }) => ({
17569
17555
  expressions: e,
17570
17556
  addRowBelow: t,
17571
17557
  permission: n,
@@ -17576,7 +17562,7 @@ var iv = () => M.useContext(ev), av = () => {
17576
17562
  if (!_s() || !c) return;
17577
17563
  let e = c.clone();
17578
17564
  i.filter((e) => e.key.length > 0).forEach((t) => {
17579
- let n = t.type === "function" || J_(t.value) ? cv(t.returnSchema ?? yv) : e.calculateType(Array.isArray(t.value) ? t.value.join(";;") : t.value);
17565
+ let n = t.type === "function" || X_(t.value) ? uv(t.returnSchema ?? xv) : e.calculateType(Array.isArray(t.value) ? t.value.join(";;") : t.value);
17580
17566
  e.set(`$.${t.key}`, n);
17581
17567
  }), u(e);
17582
17568
  }, [i, c]), /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("div", {
@@ -17603,7 +17589,7 @@ var iv = () => M.useContext(ev), av = () => {
17603
17589
  children: r === "legacy" && /* @__PURE__ */ V(is, { children: n("cf.legacy") })
17604
17590
  })
17605
17591
  ]
17606
- }), (i || []).map((n, r) => /* @__PURE__ */ V(dv, {
17592
+ }), (i || []).map((n, r) => /* @__PURE__ */ V(pv, {
17607
17593
  expression: n,
17608
17594
  index: r,
17609
17595
  variableType: l,
@@ -17621,28 +17607,28 @@ var iv = () => M.useContext(ev), av = () => {
17621
17607
  children: n("cf.addRow")
17622
17608
  })
17623
17609
  })] });
17624
- }, xv = ({ customFunctions: e, debug: t, hideCommandBar: n, inputVariableType: r, functionScope: i, ...a }) => {
17610
+ }, Cv = ({ customFunctions: e, debug: t, hideCommandBar: n, inputVariableType: r, functionScope: i, ...a }) => {
17625
17611
  let o = Hn(Vn(Pn, { activationConstraint: { distance: 4 } }), Vn(jn, { coordinateGetter: qn }));
17626
- return /* @__PURE__ */ V(nv, { children: /* @__PURE__ */ H(Sv, {
17612
+ return /* @__PURE__ */ V(iv, { children: /* @__PURE__ */ H(wv, {
17627
17613
  sensors: o,
17628
17614
  children: [
17629
- /* @__PURE__ */ V(ov, {
17615
+ /* @__PURE__ */ V(cv, {
17630
17616
  ...a,
17631
17617
  functionScope: i
17632
17618
  }),
17633
- !n && /* @__PURE__ */ V(av, {}),
17634
- /* @__PURE__ */ V(bv, {
17619
+ !n && /* @__PURE__ */ V(sv, {}),
17620
+ /* @__PURE__ */ V(Sv, {
17635
17621
  customFunctions: e,
17636
17622
  functionScope: i
17637
17623
  }),
17638
- /* @__PURE__ */ V(Cv, {
17624
+ /* @__PURE__ */ V(Tv, {
17639
17625
  debug: t,
17640
17626
  inputVariableType: r
17641
17627
  })
17642
17628
  ]
17643
17629
  }) });
17644
- }, Sv = ({ sensors: e, children: t }) => {
17645
- let n = iv(), r = ({ active: e, over: t }) => {
17630
+ }, wv = ({ sensors: e, children: t }) => {
17631
+ let n = ov(), r = ({ active: e, over: t }) => {
17646
17632
  if (!t) return;
17647
17633
  let r = e.data.current?.index, i = t.data.current?.index;
17648
17634
  r !== void 0 && i !== void 0 && r !== i && n.getState().moveRows(r, i);
@@ -17655,8 +17641,8 @@ var iv = () => M.useContext(ev), av = () => {
17655
17641
  onDragEnd: r,
17656
17642
  children: t
17657
17643
  });
17658
- }, Cv = ({ debug: e, inputVariableType: t }) => {
17659
- let n = e, r = iv();
17644
+ }, Tv = ({ debug: e, inputVariableType: t }) => {
17645
+ let n = e, r = ov();
17660
17646
  return P(() => {
17661
17647
  r.setState({ inputVariableType: t });
17662
17648
  }, [t]), P(() => {
@@ -17686,7 +17672,7 @@ var iv = () => M.useContext(ev), av = () => {
17686
17672
  (e.debugIndex !== n.debugIndex || e.debug !== n.debug) && t(e);
17687
17673
  });
17688
17674
  }, []), null;
17689
- }, wv = ({ id: e, user: t, customFunctions: n }) => {
17675
+ }, Ev = ({ id: e, user: t, customFunctions: n }) => {
17690
17676
  let r = Mm(), i = Um(e, { attachGlobals: !1 }), { disabled: a, content: o, globalType: s } = $(({ disabled: t, decisionGraph: n, globalType: r }) => ({
17691
17677
  disabled: t,
17692
17678
  content: (n?.nodes ?? []).find((t) => t.id === e)?.content,
@@ -17699,7 +17685,7 @@ var iv = () => M.useContext(ev), av = () => {
17699
17685
  })).otherwise(() => null),
17700
17686
  nodeSnapshot: G(t).with({ result: W.nonNullable }, ({ result: t }) => t.snapshot?.nodes?.find((t) => t.id === e)?.content).otherwise(() => null),
17701
17687
  viewConfig: r
17702
- })), f = F(() => Z_(o?.kind, n), [o?.kind, n]), p = F(() => {
17688
+ })), f = F(() => $_(o?.kind, n), [o?.kind, n]), p = F(() => {
17703
17689
  if (!i) return;
17704
17690
  let e = i.clone();
17705
17691
  return o?.config?.inputField && (e = e.calculateType(o.config.inputField)), o?.config?.executionMode === "loop" && (e = e.arrayItem()), Object.entries(s ?? {}).forEach(([t, n]) => e.set(t, n)), e;
@@ -17714,7 +17700,7 @@ var iv = () => M.useContext(ev), av = () => {
17714
17700
  trace: c,
17715
17701
  snapshot: u.config
17716
17702
  };
17717
- let e = Object.fromEntries(Object.entries(c.traceData || {}).map(([e, t]) => [e, Tv(t.result)])), t = {
17703
+ let e = Object.fromEntries(Object.entries(c.traceData || {}).map(([e, t]) => [e, Dv(t.result)])), t = {
17718
17704
  ...l,
17719
17705
  $: e
17720
17706
  };
@@ -17734,7 +17720,7 @@ var iv = () => M.useContext(ev), av = () => {
17734
17720
  overflowY: "auto",
17735
17721
  boxSizing: "border-box"
17736
17722
  },
17737
- children: /* @__PURE__ */ V(xv, {
17723
+ children: /* @__PURE__ */ V(Cv, {
17738
17724
  value: o?.config?.expressions,
17739
17725
  disabled: a,
17740
17726
  permission: d?.enabled ? d?.permissions?.[e] : "edit:full",
@@ -17754,13 +17740,13 @@ var iv = () => M.useContext(ev), av = () => {
17754
17740
  }
17755
17741
  })
17756
17742
  });
17757
- }, Tv = (e) => {
17743
+ }, Dv = (e) => {
17758
17744
  try {
17759
17745
  return JSON.parse(e);
17760
17746
  } catch {
17761
17747
  return null;
17762
17748
  }
17763
- }, Ev = (e) => {
17749
+ }, Ov = (e) => {
17764
17750
  let t = [];
17765
17751
  for (let n of e) {
17766
17752
  let e = n.group ?? "", r = t.find((t) => t.group === e);
@@ -17773,10 +17759,10 @@ var iv = () => M.useContext(ev), av = () => {
17773
17759
  item: e,
17774
17760
  index: t
17775
17761
  })).sort((e, t) => (e.item.order ?? 0) - (t.item.order ?? 0) || e.index - t.index).map(({ item: e }) => e));
17776
- }, Dv = ({ item: e, disabled: t }) => /* @__PURE__ */ V(B, { children: e.render({ disabled: t }) }), Ov = ({ items: e }) => {
17762
+ }, kv = ({ item: e, disabled: t }) => /* @__PURE__ */ V(B, { children: e.render({ disabled: t }) }), Av = ({ items: e }) => {
17777
17763
  let { disabled: t = !1 } = $(({ disabled: e }) => ({ disabled: e }));
17778
17764
  if (!e || e.length === 0) return null;
17779
- let n = Ev(e), r = [];
17765
+ let n = Ov(e), r = [];
17780
17766
  for (let e of n) r.includes(e.group ?? "") || r.push(e.group ?? "");
17781
17767
  return /* @__PURE__ */ V("div", {
17782
17768
  "aria-label": "toolbar-items",
@@ -17787,13 +17773,13 @@ var iv = () => M.useContext(ev), av = () => {
17787
17773
  }), n.filter((t) => (t.group ?? "") === e).map((e) => /* @__PURE__ */ V(uc, {
17788
17774
  fallback: null,
17789
17775
  onError: (t) => console.error(`[seal-editor] toolbar item "${e.id}" crashed:`, t),
17790
- children: /* @__PURE__ */ V(Dv, {
17776
+ children: /* @__PURE__ */ V(kv, {
17791
17777
  item: e,
17792
17778
  disabled: t
17793
17779
  })
17794
17780
  }, e.id))] }, e || `__anonymous_${r}`))
17795
17781
  });
17796
- }, kv = ({ userResolver: e }) => {
17782
+ }, jv = ({ userResolver: e }) => {
17797
17783
  let { stateStore: t } = Nm();
17798
17784
  return P(() => {
17799
17785
  if (!e) return;
@@ -17809,35 +17795,35 @@ var iv = () => M.useContext(ev), av = () => {
17809
17795
  n = !0;
17810
17796
  };
17811
17797
  }, [e]), null;
17812
- }, Av = M.memo(ve(function({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, customFunctions: i }, a) {
17798
+ }, Mv = M.memo(ve(function({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, customFunctions: i }, a) {
17813
17799
  let [o, s] = L(!1), { hasActiveNode: c, viewConfig: l, hideLeftToolbar: u } = $(({ decisionGraph: e, activeTab: t, viewConfig: n, hideLeftToolbar: r }) => ({
17814
17800
  hasActiveNode: (e?.nodes ?? []).some((e) => e.id === t),
17815
17801
  viewConfig: n,
17816
17802
  hideLeftToolbar: r
17817
- })), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(Ov, { items: n })] }) : t;
17803
+ })), d = n && n.length > 0 ? /* @__PURE__ */ H(B, { children: [t, /* @__PURE__ */ V(Av, { items: n })] }) : t;
17818
17804
  return /* @__PURE__ */ H(B, { children: [
17819
- /* @__PURE__ */ V(kv, { userResolver: r }),
17820
- !u && /* @__PURE__ */ V(B_, {}),
17805
+ /* @__PURE__ */ V(jv, { userResolver: r }),
17806
+ !u && /* @__PURE__ */ V(H_, {}),
17821
17807
  /* @__PURE__ */ H("div", {
17822
17808
  className: "[grid-area:graph] flex flex-1 flex-col gap-1 overflow-hidden bg-white",
17823
17809
  children: [
17824
- /* @__PURE__ */ V(V_, {
17810
+ /* @__PURE__ */ V(U_, {
17825
17811
  disabled: o,
17826
17812
  tabBarExtraContent: d
17827
17813
  }),
17828
- /* @__PURE__ */ V(D_, {
17814
+ /* @__PURE__ */ V(k_, {
17829
17815
  ref: a,
17830
17816
  className: z([!c && !l?.enabled && "flex flex-col", c && "hidden"]),
17831
17817
  reactFlowProOptions: e,
17832
17818
  onDisableTabs: s
17833
17819
  }),
17834
- /* @__PURE__ */ V(A_, { className: z([!c && l?.enabled && "flex flex-col"]) }),
17835
- /* @__PURE__ */ V(jv, { customFunctions: i })
17820
+ /* @__PURE__ */ V(M_, { className: z([!c && l?.enabled && "flex flex-col"]) }),
17821
+ /* @__PURE__ */ V(Nv, { customFunctions: i })
17836
17822
  ]
17837
17823
  }),
17838
- /* @__PURE__ */ V(l_, {})
17824
+ /* @__PURE__ */ V(d_, {})
17839
17825
  ] });
17840
- })), jv = M.memo(({ customFunctions: e }) => {
17826
+ })), Nv = M.memo(({ customFunctions: e }) => {
17841
17827
  let { openNodes: t, activeNodeId: n, components: r, user: i, customNodes: a } = $(({ decisionGraph: e, openTabs: t, activeTab: n, components: r, user: i, customNodes: a }) => {
17842
17828
  let o = (e?.nodes ?? []).find((e) => e.id === n)?.id;
17843
17829
  return {
@@ -17857,19 +17843,19 @@ var iv = () => M.useContext(ev), av = () => {
17857
17843
  ref: o,
17858
17844
  children: t.map((t) => /* @__PURE__ */ V("div", {
17859
17845
  className: z(["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"]),
17860
- children: G(t?.type).with(Q.DecisionTable, () => _h?.renderTab?.({
17846
+ children: G(t?.type).with(Q.DecisionTable, () => vh?.renderTab?.({
17861
17847
  id: t?.id,
17862
17848
  user: i
17863
- })).with(Q.Function, () => $h?.renderTab?.({
17849
+ })).with(Q.Function, () => eg?.renderTab?.({
17864
17850
  id: t?.id,
17865
17851
  user: i
17866
- })).with(Q.Expression, () => Uh?.renderTab?.({
17852
+ })).with(Q.Expression, () => Wh?.renderTab?.({
17867
17853
  id: t?.id,
17868
17854
  user: i
17869
- })).with(Q.Input, () => Mg?.renderTab?.({
17855
+ })).with(Q.Input, () => Fg?.renderTab?.({
17870
17856
  id: t?.id,
17871
17857
  user: i
17872
- })).with(Q.Output, () => Lg?.renderTab?.({
17858
+ })).with(Q.Output, () => zg?.renderTab?.({
17873
17859
  id: t?.id,
17874
17860
  user: i
17875
17861
  })).otherwise(() => {
@@ -17886,7 +17872,7 @@ var iv = () => M.useContext(ev), av = () => {
17886
17872
  id: t.id,
17887
17873
  user: i,
17888
17874
  customFunctions: e
17889
- }) : /* @__PURE__ */ V(wv, {
17875
+ }) : /* @__PURE__ */ V(Ev, {
17890
17876
  id: t.id,
17891
17877
  user: i,
17892
17878
  customFunctions: e
@@ -17896,10 +17882,10 @@ var iv = () => M.useContext(ev), av = () => {
17896
17882
  })
17897
17883
  }, t?.id))
17898
17884
  });
17899
- }), Mv = ve(({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, ...i }, a) => /* @__PURE__ */ V(uc, { children: /* @__PURE__ */ V("div", {
17885
+ }), Pv = ve(({ reactFlowProOptions: e, tabBarExtraContent: t, toolbarItems: n, userResolver: r, ...i }, a) => /* @__PURE__ */ V(uc, { children: /* @__PURE__ */ V("div", {
17900
17886
  className: z(["seal-dg", i?.hideLeftToolbar && "hidden-left-toolbar"]),
17901
17887
  children: /* @__PURE__ */ V(Di, { children: /* @__PURE__ */ V(km, { children: /* @__PURE__ */ H(Lm, { children: [
17902
- /* @__PURE__ */ V(Av, {
17888
+ /* @__PURE__ */ V(Mv, {
17903
17889
  ref: a,
17904
17890
  reactFlowProOptions: e,
17905
17891
  tabBarExtraContent: t,
@@ -17907,10 +17893,10 @@ var iv = () => M.useContext(ev), av = () => {
17907
17893
  userResolver: r,
17908
17894
  customFunctions: i.customFunctions
17909
17895
  }),
17910
- /* @__PURE__ */ V(n_, {}),
17911
- /* @__PURE__ */ V(Jg, { ...i })
17896
+ /* @__PURE__ */ V(i_, {}),
17897
+ /* @__PURE__ */ V(Xg, { ...i })
17912
17898
  ] }) }) })
17913
- }) })), Nv = (e) => ({
17899
+ }) })), Fv = (e) => ({
17914
17900
  kind: e.kind,
17915
17901
  icon: e.icon,
17916
17902
  color: e.color,
@@ -17970,7 +17956,7 @@ var iv = () => M.useContext(ev), av = () => {
17970
17956
  })
17971
17957
  });
17972
17958
  }
17973
- }), Pv = ({ value: e, onChange: t, readOnly: n }) => {
17959
+ }), Iv = ({ value: e, onChange: t, readOnly: n }) => {
17974
17960
  let r = ic(), i = Z();
17975
17961
  return /* @__PURE__ */ V(Ii, {
17976
17962
  loading: /* @__PURE__ */ V(Ro, { size: "large" }),
@@ -18029,7 +18015,7 @@ var iv = () => M.useContext(ev), av = () => {
18029
18015
  };
18030
18016
  //#endregion
18031
18017
  //#region src/reui/icons/animated/outline/check-circle.tsx
18032
- function Fv({ className: e }) {
18018
+ function Lv({ className: e }) {
18033
18019
  return /* @__PURE__ */ V("svg", {
18034
18020
  width: "24",
18035
18021
  height: "24",
@@ -18045,7 +18031,7 @@ function Fv({ className: e }) {
18045
18031
  }
18046
18032
  //#endregion
18047
18033
  //#region src/reui/icons/animated/outline/cross-circle.tsx
18048
- function Iv({ className: e }) {
18034
+ function Rv({ className: e }) {
18049
18035
  return /* @__PURE__ */ V("svg", {
18050
18036
  width: "24",
18051
18037
  height: "24",
@@ -18061,7 +18047,7 @@ function Iv({ className: e }) {
18061
18047
  }
18062
18048
  //#endregion
18063
18049
  //#region src/components/decision-graph/simulator/simulator-nodes-panel.tsx
18064
- var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeTypes: i, viewConfig: a, selectedNode: o, onSelectNode: s, onClear: c, onGoToNode: l }) => {
18050
+ var zv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeTypes: i, viewConfig: a, selectedNode: o, onSelectNode: s, onClear: c, onGoToNode: l }) => {
18065
18051
  let u = Z(), d = F(() => !r || !("result" in r) ? [] : Object.entries(r.result?.trace ?? {}).filter(([e]) => !a?.enabled || !!a?.permissions?.[e]).map(([e, t]) => ({
18066
18052
  ...t,
18067
18053
  nodeId: e
@@ -18137,7 +18123,7 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
18137
18123
  children: [/* @__PURE__ */ H(X.Text, {
18138
18124
  "data-role": "name",
18139
18125
  className: "flex min-w-0 items-center [&>svg]:align-[-3px]",
18140
- children: [/* @__PURE__ */ V(Rv, { status: G(r).with({ error: W.nonNullable }, () => "error").with({ result: W.nonNullable }, () => "success").otherwise(() => "not-run") }), /* @__PURE__ */ V("span", {
18126
+ children: [/* @__PURE__ */ V(Bv, { status: G(r).with({ error: W.nonNullable }, () => "error").with({ result: W.nonNullable }, () => "success").otherwise(() => "not-run") }), /* @__PURE__ */ V("span", {
18141
18127
  className: "truncate",
18142
18128
  children: "Graph"
18143
18129
  })]
@@ -18155,7 +18141,7 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
18155
18141
  "data-role": "name",
18156
18142
  className: "flex min-w-0 items-center gap-1.5 [&>svg]:align-[-3px]",
18157
18143
  title: e.name,
18158
- children: [/* @__PURE__ */ V(Rv, { status: e.nodeId === r?.error?.data?.nodeId ? "error" : "success" }), /* @__PURE__ */ V("span", {
18144
+ children: [/* @__PURE__ */ V(Bv, { status: e.nodeId === r?.error?.data?.nodeId ? "error" : "success" }), /* @__PURE__ */ V("span", {
18159
18145
  className: "truncate",
18160
18146
  children: e.name
18161
18147
  })]
@@ -18170,10 +18156,10 @@ var Lv = ({ search: e, onSearchChange: t, loading: n = !1, simulate: r, nodeType
18170
18156
  })
18171
18157
  })
18172
18158
  })] });
18173
- }, Rv = ({ status: e }) => e === "not-run" ? null : e === "success" ? /* @__PURE__ */ V(Fv, { className: "mr-1.5 size-3 shrink-0 text-[var(--seal-color-success)] opacity-60" }) : /* @__PURE__ */ V(Iv, { className: "mr-1 size-3 shrink-0 text-[var(--seal-color-error)]" });
18159
+ }, Bv = ({ status: e }) => e === "not-run" ? null : e === "success" ? /* @__PURE__ */ V(Lv, { className: "mr-1.5 size-3 shrink-0 text-[var(--seal-color-success)] opacity-60" }) : /* @__PURE__ */ V(Rv, { className: "mr-1 size-3 shrink-0 text-[var(--seal-color-error)]" });
18174
18160
  //#endregion
18175
18161
  //#region src/reui/icons/animated/outline/link.tsx
18176
- function zv({ className: e, style: t }) {
18162
+ function Vv({ className: e, style: t }) {
18177
18163
  return /* @__PURE__ */ H("svg", {
18178
18164
  width: "24",
18179
18165
  height: "24",
@@ -18195,7 +18181,7 @@ function zv({ className: e, style: t }) {
18195
18181
  }
18196
18182
  //#endregion
18197
18183
  //#region src/components/decision-graph/simulator/simulator-request-toolbar.tsx
18198
- var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n, sourceOptions: r, bindingName: i, hasInputNode: a, loading: o, onSourceChange: s, onFormat: c, onCopy: l, onRun: u }) => /* @__PURE__ */ H("div", {
18184
+ var Hv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n, sourceOptions: r, bindingName: i, hasInputNode: a, loading: o, onSourceChange: s, onFormat: c, onCopy: l, onRun: u }) => /* @__PURE__ */ H("div", {
18199
18185
  className: "flex items-center justify-between gap-2 border-b border-border px-3 py-2",
18200
18186
  children: [
18201
18187
  /* @__PURE__ */ V(Y, {
@@ -18205,7 +18191,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18205
18191
  style: { fontSize: 13 },
18206
18192
  children: [e("request"), /* @__PURE__ */ V("span", {
18207
18193
  className: "ml-1 inline-flex align-super opacity-50 [&_svg]:block",
18208
- children: /* @__PURE__ */ V(rg, { className: "size-2.5" })
18194
+ children: /* @__PURE__ */ V(ig, { className: "size-2.5" })
18209
18195
  })]
18210
18196
  })
18211
18197
  }),
@@ -18213,7 +18199,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18213
18199
  title: e("simulator.currentBinding"),
18214
18200
  children: /* @__PURE__ */ H("div", {
18215
18201
  className: "flex min-w-0 items-center gap-1",
18216
- children: [/* @__PURE__ */ V(zv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" }), /* @__PURE__ */ V(Io, {
18202
+ children: [/* @__PURE__ */ V(Vv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" }), /* @__PURE__ */ V(Io, {
18217
18203
  size: "small",
18218
18204
  value: n,
18219
18205
  options: r,
@@ -18227,7 +18213,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18227
18213
  className: "flex min-w-0 items-center gap-1 text-xs",
18228
18214
  children: [/* @__PURE__ */ V(Y, {
18229
18215
  title: e("simulator.currentBinding"),
18230
- children: /* @__PURE__ */ V(zv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" })
18216
+ children: /* @__PURE__ */ V(Vv, { className: "size-3 shrink-0 text-[var(--muted-foreground)]" })
18231
18217
  }), /* @__PURE__ */ V("span", {
18232
18218
  className: "truncate",
18233
18219
  children: i
@@ -18274,7 +18260,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18274
18260
  ] })
18275
18261
  })
18276
18262
  ]
18277
- }), Vv = ({ t, requestValue: n, resolvedSimulatorExampleBinding: a, onRequestValueChange: o, onMarkEdited: u, onExternalChange: d }) => {
18263
+ }), Uv = ({ t, requestValue: n, resolvedSimulatorExampleBinding: a, onRequestValueChange: o, onMarkEdited: u, onExternalChange: d }) => {
18278
18264
  let { stateStore: f, actions: p } = Nm(), m = ({ activeExampleBinding: n, preparedParsed: i, triggeredBy: a, showSuccessMessage: l = !0 }) => {
18279
18265
  let { decisionGraph: m } = f.getState(), g = m.nodes.find((e) => e.id === n.nodeId);
18280
18266
  if (!g) return R.error(t("simulator.boundRequestNodeNotFound")), null;
@@ -18331,7 +18317,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18331
18317
  return c || R.error(t("request.saveDataSourceFailed")), null;
18332
18318
  }
18333
18319
  } };
18334
- }, Hv = 700, Uv = ({ enabled: e, requestValue: t, requestSourcesSignature: n, boundRequestSourceIndex: r, onSyncToSchema: i, onPushToEditor: a, debounceMs: o = 700 }) => {
18320
+ }, Wv = 700, Gv = ({ enabled: e, requestValue: t, requestSourcesSignature: n, boundRequestSourceIndex: r, onSyncToSchema: i, onPushToEditor: a, debounceMs: o = 700 }) => {
18335
18321
  let s = I(null), c = I(void 0), l = I(t);
18336
18322
  l.current = t;
18337
18323
  let u = I(void 0), d = I({
@@ -18360,7 +18346,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18360
18346
  ]), { flush: () => {
18361
18347
  s.current !== null && (window.clearTimeout(s.current), s.current = null, c.current = l.current, d.current.onSyncToSchema());
18362
18348
  } };
18363
- }, Wv = ({ inputNodeContent: e, inputNodeId: t, simulatorExampleBinding: n, dataLabel: i = "Data" }) => {
18349
+ }, Kv = ({ inputNodeContent: e, inputNodeId: t, simulatorExampleBinding: n, dataLabel: i = "Data" }) => {
18364
18350
  let a = e, o = F(() => r(a, { dataLabel: i }), [a, i]), s = F(() => !n || n.nodeId !== t ? -1 : o[n.sourceIndex] ? n.sourceIndex : -1, [
18365
18351
  t,
18366
18352
  o,
@@ -18389,7 +18375,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18389
18375
  bindingName: h,
18390
18376
  shouldShowSimulatorSourceSelect: !!h && !!t && o.length > 1
18391
18377
  };
18392
- }, Gv = ({ defaultRequest: e, simulatorRequest: t, currentBindingIdentity: n, onExternalChange: r }) => {
18378
+ }, qv = ({ defaultRequest: e, simulatorRequest: t, currentBindingIdentity: n, onExternalChange: r }) => {
18393
18379
  let [i, a] = L(e), [o, s] = L(!1), [c, l] = L(!1), u = I(null), d = I(null), f = I(void 0);
18394
18380
  return P(() => () => {
18395
18381
  u.current !== null && window.clearTimeout(u.current);
@@ -18409,7 +18395,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18409
18395
  setUserHasEdited: s,
18410
18396
  isApplyingExternalRequest: c
18411
18397
  };
18412
- }, Kv = ({ onChange: e, hasInputNode: n, loading: r, onRun: i, defaultRequest: a }) => {
18398
+ }, Jv = ({ onChange: e, hasInputNode: n, loading: r, onRun: i, defaultRequest: a }) => {
18413
18399
  let o = Z(), { stateStore: c, actions: u } = Nm(), { simulatorRequest: f, simulatorExampleBinding: p, inputNodeContent: m, inputNodeId: h } = $(({ simulatorRequest: e, simulatorExampleBinding: t, decisionGraph: n }) => {
18414
18400
  let r = n?.nodes?.find((e) => e.type === "inputNode");
18415
18401
  return {
@@ -18418,12 +18404,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18418
18404
  inputNodeContent: r?.content,
18419
18405
  inputNodeId: r?.id
18420
18406
  };
18421
- }), { requestSources: g, boundRequestSourceIndex: _, defaultRequestSourceIndex: v, defaultRequestSource: y, resolvedSimulatorExampleBinding: b, currentBindingIdentity: x, requestDefinitions: S, sourceOptions: C, bindingName: w, shouldShowSimulatorSourceSelect: T } = Wv({
18407
+ }), { requestSources: g, boundRequestSourceIndex: _, defaultRequestSourceIndex: v, defaultRequestSource: y, resolvedSimulatorExampleBinding: b, currentBindingIdentity: x, requestDefinitions: S, sourceOptions: C, bindingName: w, shouldShowSimulatorSourceSelect: T } = Kv({
18422
18408
  inputNodeContent: m,
18423
18409
  inputNodeId: h,
18424
18410
  simulatorExampleBinding: p,
18425
18411
  dataLabel: o("request.dataLabel")
18426
- }), { requestValue: E, setRequestValue: D, userHasEdited: O, setUserHasEdited: te, isApplyingExternalRequest: ne } = Gv({
18412
+ }), { requestValue: E, setRequestValue: D, userHasEdited: O, setUserHasEdited: te, isApplyingExternalRequest: ne } = qv({
18427
18413
  defaultRequest: a,
18428
18414
  simulatorRequest: f,
18429
18415
  currentBindingIdentity: x,
@@ -18462,14 +18448,14 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18462
18448
  u.setNodeType(t.id, Dm.InferredOutput, new bn(e));
18463
18449
  } catch {}
18464
18450
  }, [E]);
18465
- let { persistRequestToExampleSource: k } = Vv({
18451
+ let { persistRequestToExampleSource: k } = Uv({
18466
18452
  t: o,
18467
18453
  requestValue: E,
18468
18454
  resolvedSimulatorExampleBinding: b,
18469
18455
  onRequestValueChange: D,
18470
18456
  onMarkEdited: () => te(!0),
18471
18457
  onExternalChange: e
18472
- }), ie = JSON.stringify(g.map((e) => e.data)), { flush: A } = Uv({
18458
+ }), ie = JSON.stringify(g.map((e) => e.data)), { flush: A } = Gv({
18473
18459
  enabled: !!(n && b),
18474
18460
  requestValue: E,
18475
18461
  requestSourcesSignature: ie,
@@ -18489,7 +18475,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18489
18475
  u.setSimulatorRequest(JSON.stringify(t, null, 2));
18490
18476
  }
18491
18477
  });
18492
- return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(Bv, {
18478
+ return /* @__PURE__ */ H(M.Fragment, { children: [/* @__PURE__ */ V(Hv, {
18493
18479
  t: o,
18494
18480
  shouldShowSimulatorSourceSelect: T,
18495
18481
  boundRequestSourceIndex: _,
@@ -18537,7 +18523,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18537
18523
  className: "relative min-h-0 flex-1 overflow-hidden",
18538
18524
  children: [/* @__PURE__ */ V("div", {
18539
18525
  className: "absolute inset-0",
18540
- children: /* @__PURE__ */ V(Pv, {
18526
+ children: /* @__PURE__ */ V(Iv, {
18541
18527
  value: E,
18542
18528
  onChange: (t) => {
18543
18529
  D(t), te(!0), u.setSimulatorRequest(t ?? ""), e?.(t ?? "");
@@ -18548,9 +18534,9 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18548
18534
  children: /* @__PURE__ */ V(Ro, { size: "small" })
18549
18535
  })]
18550
18536
  })] });
18551
- }, qv = /* @__PURE__ */ function(e) {
18537
+ }, Yv = /* @__PURE__ */ function(e) {
18552
18538
  return e.Output = "Output", e.Input = "Input", e.Trace = "Trace", e;
18553
- }(qv || {}), Jv = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, leftPanel: o = Kv }) => {
18539
+ }(Yv || {}), Xv = ({ defaultRequest: e, onChange: t, onRun: n, onClear: r, loading: i = !1, simulationFooter: a, leftPanel: o = Jv }) => {
18554
18540
  let s = Z(), [c, l] = eh("simulation.search", ""), [u, d] = eh("simulation.segment", "Output"), { viewConfig: f } = $((e) => ({ viewConfig: e.viewConfig })), { actions: p } = Nm(), { nodeTypes: m, simulate: h, hasInputNode: g } = $(({ decisionGraph: e, simulate: t }) => ({
18555
18541
  simulate: t,
18556
18542
  hasInputNode: e.nodes.some((e) => e.type === Q.Input),
@@ -18583,7 +18569,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18583
18569
  minSize: 20,
18584
18570
  maxSize: 20,
18585
18571
  className: "flex w-[260px] flex-col",
18586
- children: /* @__PURE__ */ V(Lv, {
18572
+ children: /* @__PURE__ */ V(zv, {
18587
18573
  search: c,
18588
18574
  onSearchChange: l,
18589
18575
  loading: i,
@@ -18609,7 +18595,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18609
18595
  size: "small",
18610
18596
  style: { width: "100%" },
18611
18597
  onChange: (e) => d(e),
18612
- items: Object.values(qv).map((e) => ({
18598
+ items: Object.values(Yv).map((e) => ({
18613
18599
  key: e,
18614
18600
  label: e
18615
18601
  })),
@@ -18625,12 +18611,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18625
18611
  })
18626
18612
  }), /* @__PURE__ */ V("div", {
18627
18613
  className: "min-h-0 flex-1 overflow-y-auto",
18628
- children: /* @__PURE__ */ V(Pv, {
18614
+ children: /* @__PURE__ */ V(Iv, {
18629
18615
  readOnly: !0,
18630
- value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () => Yv({
18616
+ value: G(h).with({ result: W._ }, ({ result: e }) => G(_).with("graph", () => Zv({
18631
18617
  traceData: e?.trace,
18632
18618
  output: e?.result
18633
- }, u ?? "Output")).otherwise(() => Yv(e?.trace[_], u ?? "Output"))).otherwise(() => "")
18619
+ }, u ?? "Output")).otherwise(() => Zv(e?.trace[_], u ?? "Output"))).otherwise(() => "")
18634
18620
  })
18635
18621
  })]
18636
18622
  })
@@ -18640,10 +18626,10 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18640
18626
  children: a
18641
18627
  })]
18642
18628
  });
18643
- }, Yv = (e, t) => {
18629
+ }, Zv = (e, t) => {
18644
18630
  let n = G([t, e]).with(["Output", { output: W._ }], ([, { output: e }]) => e).with(["Input", { input: W._ }], ([, { input: e }]) => e).with(["Trace", { trace: W._ }], ([, { trace: e }]) => e).with(["Trace", { traceData: W._ }], ([, { traceData: e }]) => e).otherwise(() => ({}));
18645
18631
  return Ir.stringify(n, void 0, 2);
18646
- }, Xv = /* @__PURE__ */ new Set(["position", "_diff"]), Zv = /* @__PURE__ */ new Set(["_diff"]), Qv = (e) => typeof e != "object" || !e ? JSON.stringify(e) ?? "undefined" : Array.isArray(e) ? `[${e.map(Qv).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${Qv(t)}`).join(",")}}`, $v = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), ey = (e, t, n) => [.../* @__PURE__ */ new Set([...Object.keys($v(e, n)), ...Object.keys($v(t, n))])].filter((n) => Qv(e[n]) !== Qv(t[n])), ty = (e, t, n) => {
18632
+ }, Qv = /* @__PURE__ */ new Set(["position", "_diff"]), $v = /* @__PURE__ */ new Set(["_diff"]), ey = (e) => typeof e != "object" || !e ? JSON.stringify(e) ?? "undefined" : Array.isArray(e) ? `[${e.map(ey).join(",")}]` : `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${ey(t)}`).join(",")}}`, ty = (e, t) => Object.fromEntries(Object.entries(e).filter(([e]) => !t.has(e))), ny = (e, t, n) => [.../* @__PURE__ */ new Set([...Object.keys(ty(e, n)), ...Object.keys(ty(t, n))])].filter((n) => ey(e[n]) !== ey(t[n])), ry = (e, t, n) => {
18647
18633
  let r = new Map(e.map((e) => [e.id, e])), i = new Map(t.map((e) => [e.id, e])), a = [], o = [], s = [];
18648
18634
  for (let [e, t] of i) r.has(e) || a.push({
18649
18635
  id: e,
@@ -18660,7 +18646,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18660
18646
  });
18661
18647
  continue;
18662
18648
  }
18663
- let a = ey(t, r, n);
18649
+ let a = ny(t, r, n);
18664
18650
  a.length > 0 && s.push({
18665
18651
  id: e,
18666
18652
  name: r.name ?? t.name,
@@ -18673,8 +18659,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18673
18659
  removed: o,
18674
18660
  modified: s
18675
18661
  };
18676
- }, ny = (e, t) => {
18677
- let n = ty(e.nodes ?? [], t.nodes ?? [], Xv), r = ty(e.edges ?? [], t.edges ?? [], Zv);
18662
+ }, iy = (e, t) => {
18663
+ let n = ry(e.nodes ?? [], t.nodes ?? [], Qv), r = ry(e.edges ?? [], t.edges ?? [], $v);
18678
18664
  return {
18679
18665
  addedNodes: n.added,
18680
18666
  removedNodes: n.removed,
@@ -18684,7 +18670,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18684
18670
  modifiedEdges: r.modified,
18685
18671
  unchanged: n.added.length + n.removed.length + n.modified.length + r.added.length + r.removed.length + r.modified.length === 0
18686
18672
  };
18687
- }, ry = "data:image/svg+xml,%3csvg%20id='fi_5968381'%20enable-background='new%200%200%20512%20512'%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='m316.939%20407.424v50.061c8.138%204.172%2017.763%207.3%2028.875%209.386s22.823%203.129%2035.135%203.129c21.219%200%2044.448-3.035%2062.602-14.784%2018.064-11.691%2026.449-31.14%2026.449-52.172%200-15.637-4.851-30.684-15.807-42.081-16.429-17.091-39.516-24.022-60.255-34.183-10.389-5.09-24.727-12.992-24.727-26.361%200-3.441.887-6.543%202.661-9.307%207.132-11.113%2022.973-13.376%2035.057-13.376%2013.717%200%2028.189%203.071%2040.926%208.76%204.434%201.982%208.529%204.276%2012.285%206.884v-46.776c-7.616-2.92-15.937-5.084-24.962-6.492s-19.381-2.112-31.066-2.112c-11.895%200-23.163%201.278-33.805%203.833s-20.006%206.544-28.093%2011.967c-8.086%205.424-14.476%2012.333-19.171%2020.729-4.695%208.395-7.043%2018.433-7.043%2030.114%200%2014.914%204.304%2027.638%2012.912%2038.172%208.607%2010.533%2021.675%2019.45%2039.204%2026.751%2011.792%204.822%2024.053%209.581%2034.665%2016.739%207.355%204.96%2014.007%2011.877%2014.007%2021.275%200%206.821-3.856%2012.604-9.468%2016.192-8.303%205.308-18.936%206.492-28.563%206.492-10.851%200-21.597-1.903-32.24-5.71-10.641-3.806-20.501-9.516-29.578-17.13zm-84.159-123.342h64.22v-41.082h-179v41.082h63.906v182.918h50.874z'%20fill='%23fff'%20fill-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", iy = {
18673
+ }, ay = "data:image/svg+xml,%3csvg%20id='fi_5968381'%20enable-background='new%200%200%20512%20512'%20height='512'%20viewBox='0%200%20512%20512'%20width='512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20d='m50%200h412c27.614%200%2050%2022.386%2050%2050v412c0%2027.614-22.386%2050-50%2050h-412c-27.614%200-50-22.386-50-50v-412c0-27.614%2022.386-50%2050-50z'%20fill='%233178c6'%3e%3c/path%3e%3cpath%20clip-rule='evenodd'%20d='m316.939%20407.424v50.061c8.138%204.172%2017.763%207.3%2028.875%209.386s22.823%203.129%2035.135%203.129c21.219%200%2044.448-3.035%2062.602-14.784%2018.064-11.691%2026.449-31.14%2026.449-52.172%200-15.637-4.851-30.684-15.807-42.081-16.429-17.091-39.516-24.022-60.255-34.183-10.389-5.09-24.727-12.992-24.727-26.361%200-3.441.887-6.543%202.661-9.307%207.132-11.113%2022.973-13.376%2035.057-13.376%2013.717%200%2028.189%203.071%2040.926%208.76%204.434%201.982%208.529%204.276%2012.285%206.884v-46.776c-7.616-2.92-15.937-5.084-24.962-6.492s-19.381-2.112-31.066-2.112c-11.895%200-23.163%201.278-33.805%203.833s-20.006%206.544-28.093%2011.967c-8.086%205.424-14.476%2012.333-19.171%2020.729-4.695%208.395-7.043%2018.433-7.043%2030.114%200%2014.914%204.304%2027.638%2012.912%2038.172%208.607%2010.533%2021.675%2019.45%2039.204%2026.751%2011.792%204.822%2024.053%209.581%2034.665%2016.739%207.355%204.96%2014.007%2011.877%2014.007%2021.275%200%206.821-3.856%2012.604-9.468%2016.192-8.303%205.308-18.936%206.492-28.563%206.492-10.851%200-21.597-1.903-32.24-5.71-10.641-3.806-20.501-9.516-29.578-17.13zm-84.159-123.342h64.22v-41.082h-179v41.082h63.906v182.918h50.874z'%20fill='%23fff'%20fill-rule='evenodd'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", oy = {
18688
18674
  dark: {
18689
18675
  string: "#CE9178",
18690
18676
  number: "#B5CEA8",
@@ -18701,8 +18687,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18701
18687
  error: "#E51400",
18702
18688
  info: "rgba(0, 0, 0, 0.65)"
18703
18689
  }
18704
- }, ay = ({ lines: e, msSinceRun: t, filter: n }) => {
18705
- let r = ic(), i = Z(), a = iy[r ?? "light"], o = M.useMemo(() => {
18690
+ }, sy = ({ lines: e, msSinceRun: t, filter: n }) => {
18691
+ let r = ic(), i = Z(), a = oy[r ?? "light"], o = M.useMemo(() => {
18706
18692
  let t = (n ?? "").trim().toLowerCase();
18707
18693
  return t ? e.filter((e) => e.toLowerCase().includes(t)) : e;
18708
18694
  }, [e, n]), s = o.length > 0;
@@ -18736,7 +18722,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18736
18722
  children: /* @__PURE__ */ V("div", {
18737
18723
  className: "seal-function__debugger__log__values",
18738
18724
  children: o.map((e, t) => {
18739
- let n = uy(e);
18725
+ let n = fy(e);
18740
18726
  return /* @__PURE__ */ V(Ki, {
18741
18727
  data: n,
18742
18728
  shouldExpandNodeInitially: () => !1,
@@ -18747,11 +18733,11 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18747
18733
  children: i
18748
18734
  }), ": "] })), e.length >= 1) {
18749
18735
  let i = [...e];
18750
- i.pop(), i = i.reverse(), r.push(oy(a)(ly(n, i), t));
18736
+ i.pop(), i = i.reverse(), r.push(cy(a)(dy(n, i), t));
18751
18737
  }
18752
18738
  return /* @__PURE__ */ V(B, { children: r });
18753
18739
  },
18754
- valueRenderer: cy(a),
18740
+ valueRenderer: uy(a),
18755
18741
  theme: {
18756
18742
  base00: "var(--card)",
18757
18743
  base03: "var(--seal-color-text-base)",
@@ -18784,12 +18770,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18784
18770
  })
18785
18771
  ]
18786
18772
  });
18787
- }, oy = (e) => (t, n) => {
18773
+ }, cy = (e) => (t, n) => {
18788
18774
  if (n === "Object") {
18789
18775
  let n = Object.entries(t), r = n.reduce((t, [r, i], a) => [...t, /* @__PURE__ */ H("span", { children: [
18790
18776
  r,
18791
18777
  ": ",
18792
- cy(e)(sy(i), i),
18778
+ uy(e)(ly(i), i),
18793
18779
  a !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })
18794
18780
  ] }, r)], []);
18795
18781
  return /* @__PURE__ */ H(B, { children: [
@@ -18799,7 +18785,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18799
18785
  ] });
18800
18786
  }
18801
18787
  if (n === "Array") {
18802
- let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [cy(e)(sy(r), r), i !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })] }, i)], []);
18788
+ let n = t, r = n.reduce((t, r, i) => [...t, /* @__PURE__ */ H("span", { children: [uy(e)(ly(r), r), i !== n.length - 1 && /* @__PURE__ */ V(B, { children: ", " })] }, i)], []);
18803
18789
  return /* @__PURE__ */ H(B, { children: [
18804
18790
  n.length > 2 ? `(${n.length})` : "",
18805
18791
  " [",
@@ -18808,13 +18794,13 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18808
18794
  ] });
18809
18795
  }
18810
18796
  return null;
18811
- }, sy = (e) => {
18797
+ }, ly = (e) => {
18812
18798
  switch (!0) {
18813
18799
  case Array.isArray(e): return `Array(${e.length})`;
18814
18800
  case typeof e == "object": return "{...}";
18815
18801
  default: return JSON.stringify(e);
18816
18802
  }
18817
- }, cy = (e) => (t, n) => {
18803
+ }, uy = (e) => (t, n) => {
18818
18804
  let r = t;
18819
18805
  return typeof n == "string" ? r.startsWith("\"Error:") ? /* @__PURE__ */ V("span", {
18820
18806
  style: { color: e.error },
@@ -18832,13 +18818,13 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18832
18818
  style: { color: e.number },
18833
18819
  children: r
18834
18820
  }) : r;
18835
- }, ly = (e, t) => t.reduce((e, t) => e && e[t] ? e[t] : null, e), uy = (e) => {
18821
+ }, dy = (e, t) => t.reduce((e, t) => e && e[t] ? e[t] : null, e), fy = (e) => {
18836
18822
  if (typeof e == "string" && (e = e.trim(), e)) try {
18837
18823
  return JSON.parse(e);
18838
18824
  } catch {
18839
18825
  return `[UNSERIALIZED]: ${e}`;
18840
18826
  }
18841
- }, dy = {
18827
+ }, py = {
18842
18828
  dark: {
18843
18829
  base00: "var(--card)",
18844
18830
  base03: "var(--seal-color-text-base)",
@@ -18851,15 +18837,15 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18851
18837
  base0B: "var(--seal-color-text-base)",
18852
18838
  base0D: "var(--seal-color-text-base)"
18853
18839
  }
18854
- }, fy = (e) => ({
18855
- ...dy[e],
18840
+ }, my = (e) => ({
18841
+ ...py[e],
18856
18842
  base00: "var(--card)",
18857
18843
  base03: "var(--seal-color-text-base)",
18858
18844
  base0B: "var(--seal-color-text-base)",
18859
18845
  base0D: "var(--seal-color-text-base)",
18860
18846
  tree: { display: "inline-block" }
18861
- }), py = ({ input: e, output: t }) => {
18862
- let n = fy(ic() ?? "light"), [r, i] = M.useState(null);
18847
+ }), hy = ({ input: e, output: t }) => {
18848
+ let n = my(ic() ?? "light"), [r, i] = M.useState(null);
18863
18849
  return e == null && t == null ? null : /* @__PURE__ */ V("div", {
18864
18850
  className: "border-b border-[var(--seal-color-border-fade)] text-xs [font-family:var(--mono-font-family)]",
18865
18851
  children: [{
@@ -18896,9 +18882,9 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18896
18882
  }, e);
18897
18883
  })
18898
18884
  });
18899
- }, my = /* @__PURE__ */ function(e) {
18885
+ }, gy = /* @__PURE__ */ function(e) {
18900
18886
  return e.Console = "Console", e.Libraries = "Libraries", e;
18901
- }(my || {}), hy = ({ trace: e, editor: t, libraries: n = [], editorValue: r, disabled: i }) => {
18887
+ }(gy || {}), _y = ({ trace: e, editor: t, libraries: n = [], editorValue: r, disabled: i }) => {
18902
18888
  let a = e?.traceData?.log || [], [o, s] = L("Console"), [c, l] = L(""), u = Z();
18903
18889
  return /* @__PURE__ */ V("div", {
18904
18890
  className: "h-full border-l border-[var(--border)]",
@@ -18910,7 +18896,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18910
18896
  rootClassName: "seal-inline-tabs",
18911
18897
  size: "small",
18912
18898
  style: { width: "100%" },
18913
- items: Object.values(my).map((e) => ({
18899
+ items: Object.values(gy).map((e) => ({
18914
18900
  key: e,
18915
18901
  label: e
18916
18902
  })),
@@ -18933,7 +18919,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18933
18919
  }), /* @__PURE__ */ V("div", {
18934
18920
  className: "grow overflow-y-auto",
18935
18921
  children: G(o).with("Console", () => /* @__PURE__ */ H(B, { children: [
18936
- e && /* @__PURE__ */ V(py, {
18922
+ e && /* @__PURE__ */ V(hy, {
18937
18923
  input: e.input,
18938
18924
  output: e.output
18939
18925
  }),
@@ -18947,18 +18933,18 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18947
18933
  className: "h-7 w-full min-w-0 rounded-md border border-border bg-muted/40 px-2 text-xs outline-none focus:border-primary/50"
18948
18934
  })
18949
18935
  }),
18950
- a.length === 0 && /* @__PURE__ */ V(ay, {
18936
+ a.length === 0 && /* @__PURE__ */ V(sy, {
18951
18937
  lines: ["\"Info: Use console.log and run simulation to debug your code.\""],
18952
18938
  msSinceRun: null
18953
18939
  }),
18954
- a.map((e, t) => /* @__PURE__ */ V(ay, {
18940
+ a.map((e, t) => /* @__PURE__ */ V(sy, {
18955
18941
  lines: e.lines,
18956
18942
  msSinceRun: e.msSinceRun,
18957
18943
  filter: c
18958
18944
  }, t))
18959
18945
  ] })).with("Libraries", () => /* @__PURE__ */ V("div", {
18960
18946
  className: "flex flex-col",
18961
- children: n.map((e) => /* @__PURE__ */ V(gy, {
18947
+ children: n.map((e) => /* @__PURE__ */ V(vy, {
18962
18948
  lib: e,
18963
18949
  disabled: i,
18964
18950
  editorValue: r,
@@ -18972,14 +18958,14 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
18972
18958
  })]
18973
18959
  })
18974
18960
  });
18975
- }, gy = ({ lib: e, onImport: t, editorValue: n, disabled: r }) => {
18961
+ }, vy = ({ lib: e, onImport: t, editorValue: n, disabled: r }) => {
18976
18962
  let i = Z(), a = F(() => !n || !n.includes(`from "${e.name}"`) && !n.includes(`from '${e.name}'`), [e.name, n]);
18977
18963
  return /* @__PURE__ */ H("div", {
18978
18964
  className: "flex items-center gap-2 border-b border-[var(--seal-color-border-fade)] p-2 no-underline",
18979
18965
  children: [
18980
18966
  /* @__PURE__ */ V("img", {
18981
18967
  alt: "TypeScript Library",
18982
- src: ry,
18968
+ src: ay,
18983
18969
  height: 18
18984
18970
  }),
18985
18971
  /* @__PURE__ */ V(X.Text, {
@@ -19021,12 +19007,12 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19021
19007
  })
19022
19008
  ]
19023
19009
  }, e.name);
19024
- }, _y = (e) => vy(e.toJson()), vy = (e) => G(e).with("String", () => "string").with("Bool", () => "boolean").with("Number", () => "number").with("Null", () => "null").with("Any", () => "any").with({ Object: W.select() }, (e) => `{${Object.entries(e).map(([e, t]) => [e, vy(t)].join(":")).join(",")}}`).with({ Array: W.select() }, (e) => `${vy(e)}[]`).with({ Const: W.select() }, (e) => `"${e}"`).with({ Enum: [W._, W.select()] }, (e) => e.map((e) => `"${e}"`).join(" | ")).exhaustive(), yy = {
19010
+ }, yy = (e) => by(e.toJson()), by = (e) => G(e).with("String", () => "string").with("Bool", () => "boolean").with("Number", () => "number").with("Null", () => "null").with("Any", () => "any").with({ Object: W.select() }, (e) => `{${Object.entries(e).map(([e, t]) => [e, by(t)].join(":")).join(",")}}`).with({ Array: W.select() }, (e) => `${by(e)}[]`).with({ Const: W.select() }, (e) => `"${e}"`).with({ Enum: [W._, W.select()] }, (e) => e.map((e) => `"${e}"`).join(" | ")).exhaustive(), xy = {
19025
19011
  Hint: 1,
19026
19012
  Info: 2,
19027
19013
  Warning: 4,
19028
19014
  Error: 8
19029
- }, by = ({ 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 = Jh }) => {
19015
+ }, Sy = ({ 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 = Yh }) => {
19030
19016
  let m = Ri(), h = I(!1), g = ic(), [_, v] = L(), [y, b] = L(), x = pi((e) => {
19031
19017
  a?.(e);
19032
19018
  }, 100), [S, C] = L(), [w, T] = L(), E = mi(() => S?.layout(), 100, { trailing: !0 }), D = mi(() => w?.layout(), 100, { trailing: !0 });
@@ -19045,10 +19031,10 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19045
19031
  noSemanticValidation: !1,
19046
19032
  noSuggestionDiagnostics: !1,
19047
19033
  onlyVisible: !1
19048
- }), m.languages.typescript.javascriptDefaults.setExtraLibs(Jh.map((e) => ({
19034
+ }), m.languages.typescript.javascriptDefaults.setExtraLibs(Yh.map((e) => ({
19049
19035
  content: `declare module '${e.name}' { ${e.typeDef} }`,
19050
19036
  filePath: e.name
19051
- }))), Object.entries(Yh.globals).forEach(([e, t]) => {
19037
+ }))), Object.entries(Xh.globals).forEach(([e, t]) => {
19052
19038
  m.languages.typescript.javascriptDefaults.addExtraLib(t, `ts:${e}`);
19053
19039
  }), s?.(m));
19054
19040
  }, [m, p]), P(() => {
@@ -19058,7 +19044,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19058
19044
  }, []), P(() => {
19059
19045
  if (!m) return;
19060
19046
  let e = "any";
19061
- _s() && (e = _y(xn(u))), m.languages.typescript.javascriptDefaults.addExtraLib(`
19047
+ _s() && (e = yy(xn(u))), m.languages.typescript.javascriptDefaults.addExtraLib(`
19062
19048
  type Input = ${e};
19063
19049
  type Output = Promise<any>;
19064
19050
 
@@ -19081,7 +19067,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19081
19067
  if (!r) return;
19082
19068
  let i = new m.Range(t, r.getLineFirstNonWhitespaceColumn(t), t, r.getLineLastNonWhitespaceColumn(t));
19083
19069
  m.editor.setModelMarkers(r, "gorules", [{
19084
- severity: yy.Error,
19070
+ severity: xy.Error,
19085
19071
  message: n,
19086
19072
  startLineNumber: i.startLineNumber,
19087
19073
  endLineNumber: i.endLineNumber,
@@ -19125,7 +19111,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19125
19111
  theme: g === "dark" ? "vs-dark" : "light",
19126
19112
  height: "100%",
19127
19113
  options: {
19128
- ...xy,
19114
+ ...Cy,
19129
19115
  readOnly: !0
19130
19116
  }
19131
19117
  }) : /* @__PURE__ */ V(Ii, {
@@ -19141,14 +19127,14 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19141
19127
  theme: g === "dark" ? "vs-dark" : "light",
19142
19128
  height: "100%",
19143
19129
  options: {
19144
- ...xy,
19130
+ ...Cy,
19145
19131
  readOnly: e || f !== "edit:full"
19146
19132
  }
19147
19133
  })
19148
19134
  }), !t && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(Hi, {}), /* @__PURE__ */ V(Bi, {
19149
19135
  minSize: 25,
19150
- children: !t && /* @__PURE__ */ V(hy, {
19151
- libraries: Jh,
19136
+ children: !t && /* @__PURE__ */ V(_y, {
19137
+ libraries: Yh,
19152
19138
  trace: o,
19153
19139
  editor: S,
19154
19140
  editorValue: i,
@@ -19157,7 +19143,7 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19157
19143
  })] })]
19158
19144
  })
19159
19145
  }) });
19160
- }, xy = {
19146
+ }, Cy = {
19161
19147
  automaticLayout: !0,
19162
19148
  contextmenu: !1,
19163
19149
  fontSize: 13,
@@ -19171,8 +19157,8 @@ var Bv = ({ t: e, shouldShowSimulatorSourceSelect: t, boundRequestSourceIndex: n
19171
19157
  horizontalScrollbarSize: 4,
19172
19158
  horizontalSliderSize: 4
19173
19159
  }
19174
- }, Sy = /* @__PURE__ */ ea({ Function: () => by });
19160
+ }, wy = /* @__PURE__ */ ea({ Function: () => Sy });
19175
19161
  //#endregion
19176
- export { Hv as AUTO_SYNC_DEBOUNCE_MS, ae as COLUMN_FIELD_TYPE_OPTIONS, Hd as CodeEditor, wv as CustomFunctionTable, ne as CustomKind, ie as DECISION_GRAPH_CONTENT_TYPE, Mv as DecisionGraph, nm as DecisionTable, sc as DictionaryProvider, Ip as DiffAutosizeTextArea, Fp as DiffCodeEditor, Vp as DiffIcon, Np as DiffInput, Ap as DiffRadio, Pp as DiffSelect, Mp as DiffSwitch, Lh as Expression, Cf as ExpressionBuilder, by as Function, sh as GraphDecisionNode, uh as GraphNode, Jv as GraphSimulator, nc as I18nProvider, cc as JdmConfigProvider, Ms as MODE_EXTRAS, oh as NodeColor, E as NodeKind, Dm as NodeTypeKind, y as OUTPUT_FIELD_TYPE_OPTIONS, Pv as SimulatorEditor, jg as TabRequest, Ov as ToolbarAnchor, Wm as addStrikethrough, re as anyNodeSchema, Gm as buildDiffString, m as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, Gg as calculateDiffGraph, Ev as clusterToolbarItems, td as codemirror, A as columnEnumSchema, x as columnFieldTypeSchema, qm as compareAndUnifyLists, Km as compareStringFields, ny as computeGraphDiff, Nv as createJdmNode, tc as createT, O as customNodeSchema, Ps as darkTokens, oe as decisionModelSchema, S as decisionNodeSchema, C as decisionTableSchema, k as edgeSchema, vs as ensureWasmLoaded, te as expressionNodeSchema, T as functionNodeSchema, l as getRequestDefinitions, r as getRequestExampleSources, f as getRequestSchemaSourceValue, w as inputNodeSchema, cv as jsonSchemaToVariableType, Ns as lightTokens, v as nodeSchema, t_ as nodeSpecification, u as normalizeRequestDefinitionOrders, de as normalizeRequestFieldKey, t as normalizeRequestJsonKeys, se as outputFieldTypeSchema, ue as outputNodeSchema, qg as processEdges, Kg as processNodes, s as resolveRequestSchemaValue, Zu as setUdfCompletions, p as stringifyRequestSchemaValue, b as switchNodeSchema, e as updateRequestSchemaExamples, Mm as useDecisionGraphActions, Am as useDecisionGraphListeners, Nm as useDecisionGraphRaw, jm as useDecisionGraphReferences, $ as useDecisionGraphState, oc as useDictionaries, Fm as useEdgeDiff, Bm as useGraphSerializer, Pm as useNodeDiff, Um as useNodeType, eh as usePersistentState, Uv as useSimulatorAutoSync, Z as useT, Vm as useTabSerializer, ic as useThemeMode, ys as useWasmReady, le as validationSchema };
19162
+ export { Wv as AUTO_SYNC_DEBOUNCE_MS, ae as COLUMN_FIELD_TYPE_OPTIONS, Hd as CodeEditor, Ev as CustomFunctionTable, ne as CustomKind, ie as DECISION_GRAPH_CONTENT_TYPE, Pv as DecisionGraph, nm as DecisionTable, sc as DictionaryProvider, Ip as DiffAutosizeTextArea, Fp as DiffCodeEditor, Vp as DiffIcon, Np as DiffInput, Ap as DiffRadio, Pp as DiffSelect, Mp as DiffSwitch, Rh as Expression, Cf as ExpressionBuilder, Sy as Function, sh as GraphDecisionNode, uh as GraphNode, Xv as GraphSimulator, nc as I18nProvider, cc as JdmConfigProvider, Ms as MODE_EXTRAS, oh as NodeColor, E as NodeKind, Dm as NodeTypeKind, y as OUTPUT_FIELD_TYPE_OPTIONS, Iv as SimulatorEditor, Pg as TabRequest, Av as ToolbarAnchor, Wm as addStrikethrough, re as anyNodeSchema, Gm as buildDiffString, m as buildRequestExampleTemplateFromDefinitions, D as buildRequestSchemaFromDefinitions, qg as calculateDiffGraph, Ov as clusterToolbarItems, td as codemirror, A as columnEnumSchema, x as columnFieldTypeSchema, qm as compareAndUnifyLists, Km as compareStringFields, iy as computeGraphDiff, Fv as createJdmNode, tc as createT, O as customNodeSchema, Ps as darkTokens, oe as decisionModelSchema, S as decisionNodeSchema, C as decisionTableSchema, k as edgeSchema, vs as ensureWasmLoaded, te as expressionNodeSchema, T as functionNodeSchema, l as getRequestDefinitions, r as getRequestExampleSources, f as getRequestSchemaSourceValue, w as inputNodeSchema, uv as jsonSchemaToVariableType, Ns as lightTokens, v as nodeSchema, r_ as nodeSpecification, u as normalizeRequestDefinitionOrders, de as normalizeRequestFieldKey, t as normalizeRequestJsonKeys, se as outputFieldTypeSchema, ue as outputNodeSchema, Yg as processEdges, Jg as processNodes, s as resolveRequestSchemaValue, Zu as setUdfCompletions, p as stringifyRequestSchemaValue, b as switchNodeSchema, e as updateRequestSchemaExamples, Mm as useDecisionGraphActions, Am as useDecisionGraphListeners, Nm as useDecisionGraphRaw, jm as useDecisionGraphReferences, $ as useDecisionGraphState, oc as useDictionaries, Fm as useEdgeDiff, Bm as useGraphSerializer, Pm as useNodeDiff, Um as useNodeType, eh as usePersistentState, Gv as useSimulatorAutoSync, Z as useT, Vm as useTabSerializer, ic as useThemeMode, ys as useWasmReady, le as validationSchema };
19177
19163
 
19178
19164
  //# sourceMappingURL=index.js.map