@digitalsee-ai/rcs 1.0.2 → 1.0.3

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/rcs.es.js CHANGED
@@ -5879,7 +5879,7 @@ const zn = /* @__PURE__ */ sa(dR), fR = (t, e, n, r) => (t.edges || []).some((i)
5879
5879
  )
5880
5880
  ), D = m(n, e, ((R) => R === "source" ? Dm.OUTPUT : Dm.INPUT)(t)), N = x || D.length > 0, T = D.length >= h, I = LT(E), A = t === Je.SOURCE && (!N || !T) && !I && C, F = w(n, e), P = l || F && F || "default", j = V(
5881
5881
  (R) => {
5882
- var ne, ie;
5882
+ var ne, se;
5883
5883
  const U = g.find((we) => we.id === R.target), X = U == null ? void 0 : U.data, G = X == null ? void 0 : X.protocol;
5884
5884
  if (hR.includes(R.sourceHandle) || pR.includes(G))
5885
5885
  switch (G) {
@@ -5890,7 +5890,7 @@ const zn = /* @__PURE__ */ sa(dR), fR = (t, e, n, r) => (t.edges || []).some((i)
5890
5890
  case $e.AI_LANGUAGE_MODEL:
5891
5891
  return R.sourceHandle === ze.CHAT_MODEL;
5892
5892
  case $e.BUILTIN_MCP:
5893
- return R.sourceHandle === ze.BUILTIN_MCP || ((ie = (ne = X == null ? void 0 : X.protocol) == null ? void 0 : ne.toUpperCase) == null ? void 0 : ie.call(ne)) === "BUILTIN_MCP";
5893
+ return R.sourceHandle === ze.BUILTIN_MCP || ((se = (ne = X == null ? void 0 : X.protocol) == null ? void 0 : ne.toUpperCase) == null ? void 0 : se.call(ne)) === "BUILTIN_MCP";
5894
5894
  case $e.MCP_SERVER:
5895
5895
  return R.sourceHandle === ze.TOOLS;
5896
5896
  default:
@@ -5900,10 +5900,10 @@ const zn = /* @__PURE__ */ sa(dR), fR = (t, e, n, r) => (t.edges || []).some((i)
5900
5900
  },
5901
5901
  [T, i, g, C]
5902
5902
  ), H = V(() => {
5903
- var ne, ie;
5903
+ var ne, se;
5904
5904
  const R = v(n);
5905
5905
  if (!R) return { x: 0, y: 0 };
5906
- const U = ((ne = R.measured) == null ? void 0 : ne.width) || 240, X = ((ie = R.measured) == null ? void 0 : ie.height) || 240;
5906
+ const U = ((ne = R.measured) == null ? void 0 : ne.width) || 240, X = ((se = R.measured) == null ? void 0 : se.height) || 240;
5907
5907
  let G = { x: 0, y: 0 };
5908
5908
  switch (r) {
5909
5909
  case Ie.Right:
@@ -5983,7 +5983,7 @@ const zn = /* @__PURE__ */ sa(dR), fR = (t, e, n, r) => (t.edges || []).some((i)
5983
5983
  },
5984
5984
  `workflow-handle-target-${r}`,
5985
5985
  `workflow-handle-shape-${f}`
5986
- ), se = () => {
5986
+ ), ie = () => {
5987
5987
  let R = {
5988
5988
  position: "absolute",
5989
5989
  zIndex: 5,
@@ -6077,7 +6077,7 @@ const zn = /* @__PURE__ */ sa(dR), fR = (t, e, n, r) => (t.edges || []).some((i)
6077
6077
  return { containerStyle: R, extenderStyle: U, btnStyle: X };
6078
6078
  }, Q = () => {
6079
6079
  if (!A) return null;
6080
- const R = se();
6080
+ const R = ie();
6081
6081
  return /* @__PURE__ */ M(
6082
6082
  "div",
6083
6083
  {
@@ -8310,8 +8310,8 @@ var S2 = {
8310
8310
  var ne = j[G];
8311
8311
  ne == null ? delete X[G] : X[G] = ne;
8312
8312
  }
8313
- for (var ie in P)
8314
- j.hasOwnProperty(ie) || delete X[ie];
8313
+ for (var se in P)
8314
+ j.hasOwnProperty(se) || delete X[se];
8315
8315
  return X;
8316
8316
  });
8317
8317
  break;
@@ -8348,15 +8348,15 @@ var S2 = {
8348
8348
  path: L,
8349
8349
  position: z,
8350
8350
  properties: K
8351
- } = e, se = L[L.length - 1];
8351
+ } = e, ie = L[L.length - 1];
8352
8352
  if (L.length === 0)
8353
8353
  throw new Error('Cannot apply a "split_node" operation at path ['.concat(L, "] because the root node cannot be split."));
8354
8354
  bi(t, W.parent(L), (U) => {
8355
- var X = U[se], G, ne;
8355
+ var X = U[ie], G, ne;
8356
8356
  if (Te.isText(X)) {
8357
- var ie = X.text.slice(0, z), we = X.text.slice(z);
8357
+ var se = X.text.slice(0, z), we = X.text.slice(z);
8358
8358
  G = Lt(Lt({}, X), {}, {
8359
- text: ie
8359
+ text: se
8360
8360
  }), ne = Lt(Lt({}, K), {}, {
8361
8361
  text: we
8362
8362
  });
@@ -8368,7 +8368,7 @@ var S2 = {
8368
8368
  children: Le
8369
8369
  });
8370
8370
  }
8371
- return ol(U, se, 1, G, ne);
8371
+ return ol(U, ie, 1, G, ne);
8372
8372
  }), n = !0;
8373
8373
  break;
8374
8374
  }
@@ -9586,11 +9586,11 @@ var IM = (t, e) => {
9586
9586
  }));
9587
9587
  }
9588
9588
  var [g, C] = oe.edges(c), S = B.above(e, {
9589
- match: (ie) => Be.isElement(ie) && B.isBlock(e, ie),
9589
+ match: (se) => Be.isElement(se) && B.isBlock(e, se),
9590
9590
  at: g,
9591
9591
  voids: l
9592
9592
  }), b = B.above(e, {
9593
- match: (ie) => Be.isElement(ie) && B.isBlock(e, ie),
9593
+ match: (se) => Be.isElement(se) && B.isBlock(e, se),
9594
9594
  at: C,
9595
9595
  voids: l
9596
9596
  }), k = S && b && !W.equals(S[1], b[1]), E = W.equals(g.path, C.path), x = l ? null : (r = B.void(e, {
@@ -9622,8 +9622,8 @@ var IM = (t, e) => {
9622
9622
  var [A, F] = I;
9623
9623
  T && W.compare(F, T) === 0 || (!l && Be.isElement(A) && (B.isVoid(e, A) || B.isElementReadOnly(e, A)) || !W.isCommon(F, g.path) && !W.isCommon(F, C.path)) && (_.push(I), T = F);
9624
9624
  }
9625
- var P = Array.from(_, (ie) => {
9626
- var [, we] = ie;
9625
+ var P = Array.from(_, (se) => {
9626
+ var [, we] = se;
9627
9627
  return B.pathRef(e, we);
9628
9628
  }), j = B.pointRef(e, g), H = B.pointRef(e, C), Y = "";
9629
9629
  if (!E && !x) {
@@ -9639,13 +9639,13 @@ var IM = (t, e) => {
9639
9639
  text: K
9640
9640
  }), Y = K);
9641
9641
  }
9642
- if (P.reverse().map((ie) => ie.unref()).filter((ie) => ie !== null).forEach((ie) => de.removeNodes(e, {
9643
- at: ie,
9642
+ if (P.reverse().map((se) => se.unref()).filter((se) => se !== null).forEach((se) => de.removeNodes(e, {
9643
+ at: se,
9644
9644
  voids: l
9645
9645
  })), !O) {
9646
- var se = H.current, [Q] = B.leaf(e, se), {
9646
+ var ie = H.current, [Q] = B.leaf(e, ie), {
9647
9647
  path: ce
9648
- } = se, R = E ? g.offset : 0, U = Q.text.slice(R, C.offset);
9648
+ } = ie, R = E ? g.offset : 0, U = Q.text.slice(R, C.offset);
9649
9649
  U.length > 0 && (e.apply({
9650
9650
  type: "remove_text",
9651
9651
  path: ce,
@@ -9719,8 +9719,8 @@ var IM = (t, e) => {
9719
9719
  }, []), [, S] = be.last({
9720
9720
  children: n
9721
9721
  }, []), b = (L) => {
9722
- var [z, K] = L, se = K.length === 0;
9723
- return se ? !1 : g ? !0 : !(!v && W.isAncestor(K, C) && Be.isElement(z) && !e.isVoid(z) && !e.isInline(z) || !y && W.isAncestor(K, S) && Be.isElement(z) && !e.isVoid(z) && !e.isInline(z));
9722
+ var [z, K] = L, ie = K.length === 0;
9723
+ return ie ? !1 : g ? !0 : !(!v && W.isAncestor(K, C) && Be.isElement(z) && !e.isVoid(z) && !e.isInline(z) || !y && W.isAncestor(K, S) && Be.isElement(z) && !e.isVoid(z) && !e.isInline(z));
9724
9724
  }, k = !0, E = [], x = [], O = [];
9725
9725
  for (var D of be.nodes({
9726
9726
  children: n
@@ -11338,14 +11338,14 @@ const OP = /* @__PURE__ */ sa(AP), Cy = (t) => typeof t == "object" && t != null
11338
11338
  for (let F = 0; F < h.length; F++) {
11339
11339
  const P = h[F], { height: j, width: H, top: Y, right: q, bottom: te, left: L } = P.getBoundingClientRect();
11340
11340
  if (s === "if-needed" && b >= 0 && x >= 0 && E <= v && k <= w && (P === f && !pc(P) || b >= Y && E <= te && x >= L && k <= q)) return A;
11341
- const z = getComputedStyle(P), K = parseInt(z.borderLeftWidth, 10), se = parseInt(z.borderTopWidth, 10), Q = parseInt(z.borderRightWidth, 10), ce = parseInt(z.borderBottomWidth, 10);
11341
+ const z = getComputedStyle(P), K = parseInt(z.borderLeftWidth, 10), ie = parseInt(z.borderTopWidth, 10), Q = parseInt(z.borderRightWidth, 10), ce = parseInt(z.borderBottomWidth, 10);
11342
11342
  let R = 0, U = 0;
11343
- const X = "offsetWidth" in P ? P.offsetWidth - P.clientWidth - K - Q : 0, G = "offsetHeight" in P ? P.offsetHeight - P.clientHeight - se - ce : 0, ne = "offsetWidth" in P ? P.offsetWidth === 0 ? 0 : H / P.offsetWidth : 0, ie = "offsetHeight" in P ? P.offsetHeight === 0 ? 0 : j / P.offsetHeight : 0;
11344
- if (f === P) R = a === "start" ? T : a === "end" ? T - v : a === "nearest" ? mc(g, g + v, v, se, ce, g + T, g + T + C, C) : T - v / 2, U = l === "start" ? I : l === "center" ? I - w / 2 : l === "end" ? I - w : mc(y, y + w, w, K, Q, y + I, y + I + S, S), R = Math.max(0, R + g), U = Math.max(0, U + y);
11343
+ const X = "offsetWidth" in P ? P.offsetWidth - P.clientWidth - K - Q : 0, G = "offsetHeight" in P ? P.offsetHeight - P.clientHeight - ie - ce : 0, ne = "offsetWidth" in P ? P.offsetWidth === 0 ? 0 : H / P.offsetWidth : 0, se = "offsetHeight" in P ? P.offsetHeight === 0 ? 0 : j / P.offsetHeight : 0;
11344
+ if (f === P) R = a === "start" ? T : a === "end" ? T - v : a === "nearest" ? mc(g, g + v, v, ie, ce, g + T, g + T + C, C) : T - v / 2, U = l === "start" ? I : l === "center" ? I - w / 2 : l === "end" ? I - w : mc(y, y + w, w, K, Q, y + I, y + I + S, S), R = Math.max(0, R + g), U = Math.max(0, U + y);
11345
11345
  else {
11346
- R = a === "start" ? T - Y - se : a === "end" ? T - te + ce + G : a === "nearest" ? mc(Y, te, j, se, ce + G, T, T + C, C) : T - (Y + j / 2) + G / 2, U = l === "start" ? I - L - K : l === "center" ? I - (L + H / 2) + X / 2 : l === "end" ? I - q + Q + X : mc(L, q, H, K, Q + X, I, I + S, S);
11346
+ R = a === "start" ? T - Y - ie : a === "end" ? T - te + ce + G : a === "nearest" ? mc(Y, te, j, ie, ce + G, T, T + C, C) : T - (Y + j / 2) + G / 2, U = l === "start" ? I - L - K : l === "center" ? I - (L + H / 2) + X / 2 : l === "end" ? I - q + Q + X : mc(L, q, H, K, Q + X, I, I + S, S);
11347
11347
  const { scrollLeft: we, scrollTop: Se } = P;
11348
- R = ie === 0 ? 0 : Math.max(0, Math.min(Se + R / ie, P.scrollHeight - j / ie + G)), U = ne === 0 ? 0 : Math.max(0, Math.min(we + U / ne, P.scrollWidth - H / ne + X)), T += Se - R, I += we - U;
11348
+ R = se === 0 ? 0 : Math.max(0, Math.min(Se + R / se, P.scrollHeight - j / se + G)), U = ne === 0 ? 0 : Math.max(0, Math.min(we + U / ne, P.scrollWidth - H / ne + X)), T += Se - R, I += we - U;
11349
11349
  }
11350
11350
  A.push({ el: P, top: R, left: U });
11351
11351
  }
@@ -13102,14 +13102,14 @@ function VL(t) {
13102
13102
  if (I.startsWith("delete")) {
13103
13103
  var q = I.endsWith("Backward") ? "backward" : "forward", [te, L] = oe.edges(A), [z, K] = B.leaf(e, te.path);
13104
13104
  if (oe.isExpanded(A) && z.text.length === te.offset && L.offset === 0) {
13105
- var se = B.next(e, {
13105
+ var ie = B.next(e, {
13106
13106
  at: te.path,
13107
13107
  match: Te.isText
13108
13108
  });
13109
- se && W.equals(se[1], L.path) && (q === "backward" ? (A = {
13109
+ ie && W.equals(ie[1], L.path) && (q === "backward" ? (A = {
13110
13110
  anchor: L,
13111
13111
  focus: L
13112
- }, te = L, [z, K] = se) : (A = {
13112
+ }, te = L, [z, K] = ie) : (A = {
13113
13113
  anchor: te,
13114
13114
  focus: te
13115
13115
  }, L = te));
@@ -13148,15 +13148,15 @@ function VL(t) {
13148
13148
  case "deleteContent":
13149
13149
  case "deleteContentForward": {
13150
13150
  var {
13151
- anchor: ie
13151
+ anchor: se
13152
13152
  } = A;
13153
13153
  if (Y && oe.isCollapsed(A)) {
13154
- var we = be.leaf(e, ie.path);
13155
- if (ie.offset < we.text.length)
13156
- return v(ie.path, {
13154
+ var we = be.leaf(e, se.path);
13155
+ if (se.offset < we.text.length)
13156
+ return v(se.path, {
13157
13157
  text: "",
13158
- start: ie.offset,
13159
- end: ie.offset + 1
13158
+ start: se.offset,
13159
+ end: se.offset + 1
13160
13160
  });
13161
13161
  }
13162
13162
  return y(() => B.deleteForward(e), {
@@ -14490,9 +14490,9 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14490
14490
  var G = I.current;
14491
14491
  if ((En || !ve.isComposing(g)) && (!T.isUpdatingSelection || G != null && G.isFlushing()) && !T.isDraggingInternally) {
14492
14492
  var ne = ve.findDocumentOrShadowRoot(g), {
14493
- activeElement: ie
14493
+ activeElement: se
14494
14494
  } = ne, we = ve.toDOMNode(g, g), Se = Ra(ne);
14495
- if (ie === we ? (T.latestElement = ie, Yo.set(g, !0)) : Yo.delete(g), !Se)
14495
+ if (se === we ? (T.latestElement = se, Yo.set(g, !0)) : Yo.delete(g), !Se)
14496
14496
  return de.deselect(g);
14497
14497
  var {
14498
14498
  anchorNode: Le,
@@ -14517,20 +14517,20 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14517
14517
  b.current && (X = xw(b.current)) ? (pS.set(g, X), Pa.set(g, b.current), Mi.set(g, b.current), sl.set(b.current, g)) : Mi.delete(g);
14518
14518
  var {
14519
14519
  selection: G
14520
- } = g, ne = ve.findDocumentOrShadowRoot(g), ie = Ra(ne);
14521
- if (!(!ie || !ve.isFocused(g) || (R = I.current) !== null && R !== void 0 && R.hasPendingAction())) {
14520
+ } = g, ne = ve.findDocumentOrShadowRoot(g), se = Ra(ne);
14521
+ if (!(!se || !ve.isFocused(g) || (R = I.current) !== null && R !== void 0 && R.hasPendingAction())) {
14522
14522
  var we = (je) => {
14523
- var ge = ie.type !== "None";
14523
+ var ge = se.type !== "None";
14524
14524
  if (!(!G && !ge)) {
14525
- var Re = ie.focusNode, Me;
14526
- if (gs && ie.rangeCount > 1) {
14527
- var ut = ie.getRangeAt(0), gn = ie.getRangeAt(ie.rangeCount - 1);
14525
+ var Re = se.focusNode, Me;
14526
+ if (gs && se.rangeCount > 1) {
14527
+ var ut = se.getRangeAt(0), gn = se.getRangeAt(se.rangeCount - 1);
14528
14528
  ut.startContainer === Re ? Me = gn.endContainer : Me = ut.startContainer;
14529
14529
  } else
14530
- Me = ie.anchorNode;
14530
+ Me = se.anchorNode;
14531
14531
  var Qn = Pa.get(g), sn = !1;
14532
14532
  if (Ri(Qn, Me) && Ri(Qn, Re) && (sn = !0), ge && sn && G && !je) {
14533
- var Rt = ve.toSlateRange(g, ie, {
14533
+ var Rt = ve.toSlateRange(g, se, {
14534
14534
  exactMatch: !0,
14535
14535
  // domSelection is not necessarily a valid Slate range
14536
14536
  // (e.g. when clicking on contentEditable:false element)
@@ -14543,7 +14543,7 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14543
14543
  }
14544
14544
  }
14545
14545
  if (G && !ve.hasRange(g, G)) {
14546
- g.selection = ve.toSlateRange(g, ie, {
14546
+ g.selection = ve.toSlateRange(g, se, {
14547
14547
  exactMatch: !1,
14548
14548
  suppressThrow: !0
14549
14549
  });
@@ -14555,10 +14555,10 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14555
14555
  pt = G && ve.toDOMRange(g, G);
14556
14556
  } catch {
14557
14557
  }
14558
- return pt ? (ve.isComposing(g) && !En ? ie.collapseToEnd() : oe.isBackward(G) ? ie.setBaseAndExtent(pt.endContainer, pt.endOffset, pt.startContainer, pt.startOffset) : ie.setBaseAndExtent(pt.startContainer, pt.startOffset, pt.endContainer, pt.endOffset), h(g, pt)) : ie.removeAllRanges(), pt;
14558
+ return pt ? (ve.isComposing(g) && !En ? se.collapseToEnd() : oe.isBackward(G) ? se.setBaseAndExtent(pt.endContainer, pt.endOffset, pt.startContainer, pt.startOffset) : se.setBaseAndExtent(pt.startContainer, pt.startOffset, pt.endContainer, pt.endOffset), h(g, pt)) : se.removeAllRanges(), pt;
14559
14559
  }
14560
14560
  };
14561
- ie.rangeCount <= 1 && we();
14561
+ se.rangeCount <= 1 && we();
14562
14562
  var Se = ((U = I.current) === null || U === void 0 ? void 0 : U.isFlushing()) === "action";
14563
14563
  if (!En || !Se) {
14564
14564
  setTimeout(() => {
@@ -14589,9 +14589,9 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14589
14589
  rb(g, R);
14590
14590
  var U = ve.toDOMNode(g, g), X = U.getRootNode();
14591
14591
  if (O != null && O.current && Ci && X instanceof ShadowRoot) {
14592
- var G = R.getTargetRanges(), ne = G[0], ie = new window.Range();
14593
- ie.setStart(ne.startContainer, ne.startOffset), ie.setEnd(ne.endContainer, ne.endOffset);
14594
- var we = ve.toSlateRange(g, ie, {
14592
+ var G = R.getTargetRanges(), ne = G[0], se = new window.Range();
14593
+ se.setStart(ne.startContainer, ne.startOffset), se.setEnd(ne.endContainer, ne.endOffset);
14594
+ var we = ve.toSlateRange(g, se, {
14595
14595
  exactMatch: !1,
14596
14596
  suppressThrow: !1
14597
14597
  });
@@ -14743,7 +14743,7 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14743
14743
  var R = ve.getWindow(g), U = (G) => {
14744
14744
  var {
14745
14745
  target: ne
14746
- } = G, ie = ne instanceof HTMLElement ? ne : null, we = ie == null ? void 0 : ie.tagName;
14746
+ } = G, se = ne instanceof HTMLElement ? ne : null, we = se == null ? void 0 : se.tagName;
14747
14747
  we === "INPUT" || we === "TEXTAREA" || F();
14748
14748
  };
14749
14749
  R.document.addEventListener("selectionchange", U);
@@ -14777,8 +14777,8 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14777
14777
  if (T.hasMarkPlaceholder = !1, g.selection && oe.isCollapsed(g.selection) && z) {
14778
14778
  var {
14779
14779
  anchor: K
14780
- } = g.selection, se = be.leaf(g, K.path), Q = Gu(se, R3);
14781
- if (!Te.equals(se, z, {
14780
+ } = g.selection, ie = be.leaf(g, K.path), Q = Gu(ie, R3);
14781
+ if (!Te.equals(ie, z, {
14782
14782
  loose: !0
14783
14783
  })) {
14784
14784
  T.hasMarkPlaceholder = !0;
@@ -14882,8 +14882,8 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14882
14882
  return;
14883
14883
  }
14884
14884
  if (Ci) {
14885
- var ie = Ra(U);
14886
- ie == null || ie.removeAllRanges();
14885
+ var se = Ra(U);
14886
+ se == null || se.removeAllRanges();
14887
14887
  }
14888
14888
  Yo.delete(g);
14889
14889
  }
@@ -14898,11 +14898,11 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
14898
14898
  if (R.detail === sL && X.length >= 1) {
14899
14899
  var G = X;
14900
14900
  if (!(Be.isElement(U) && B.isBlock(g, U))) {
14901
- var ne, ie = B.above(g, {
14901
+ var ne, se = B.above(g, {
14902
14902
  match: (Re) => Be.isElement(Re) && B.isBlock(g, Re),
14903
14903
  at: X
14904
14904
  });
14905
- G = (ne = ie == null ? void 0 : ie[1]) !== null && ne !== void 0 ? ne : X.slice(0, 1);
14905
+ G = (ne = se == null ? void 0 : se[1]) !== null && ne !== void 0 ? ne : X.slice(0, 1);
14906
14906
  }
14907
14907
  var we = B.range(g, G);
14908
14908
  de.select(g, we);
@@ -15027,7 +15027,7 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
15027
15027
  return;
15028
15028
  var {
15029
15029
  selection: G
15030
- } = g, ne = g.children[G !== null ? G.focus.path[0] : 0], ie = oS(be.string(ne)) === "rtl";
15030
+ } = g, ne = g.children[G !== null ? G.focus.path[0] : 0], se = oS(be.string(ne)) === "rtl";
15031
15031
  if (Bt.isRedo(X)) {
15032
15032
  R.preventDefault();
15033
15033
  var we = g;
@@ -15070,17 +15070,17 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
15070
15070
  }
15071
15071
  if (Bt.isMoveBackward(X)) {
15072
15072
  R.preventDefault(), G && oe.isCollapsed(G) ? de.move(g, {
15073
- reverse: !ie
15073
+ reverse: !se
15074
15074
  }) : de.collapse(g, {
15075
- edge: ie ? "end" : "start"
15075
+ edge: se ? "end" : "start"
15076
15076
  });
15077
15077
  return;
15078
15078
  }
15079
15079
  if (Bt.isMoveForward(X)) {
15080
15080
  R.preventDefault(), G && oe.isCollapsed(G) ? de.move(g, {
15081
- reverse: ie
15081
+ reverse: se
15082
15082
  }) : de.collapse(g, {
15083
- edge: ie ? "start" : "end"
15083
+ edge: se ? "start" : "end"
15084
15084
  });
15085
15085
  return;
15086
15086
  }
@@ -15089,7 +15089,7 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
15089
15089
  edge: "focus"
15090
15090
  }), de.move(g, {
15091
15091
  unit: "word",
15092
- reverse: !ie
15092
+ reverse: !se
15093
15093
  });
15094
15094
  return;
15095
15095
  }
@@ -15098,7 +15098,7 @@ var M3 = (t) => /* @__PURE__ */ Ne.createElement(Ne.Fragment, null, MS(t)), $S =
15098
15098
  edge: "focus"
15099
15099
  }), de.move(g, {
15100
15100
  unit: "word",
15101
- reverse: ie
15101
+ reverse: se
15102
15102
  });
15103
15103
  return;
15104
15104
  }
@@ -17213,7 +17213,7 @@ function jl({
17213
17213
  maxExecutionDepth: E,
17214
17214
  debugEvents: x
17215
17215
  }) {
17216
- var se;
17216
+ var ie;
17217
17217
  const [O] = he.useForm(), D = l || O, N = St.useMemo(() => {
17218
17218
  const Q = {};
17219
17219
  for (const ce of t.fields)
@@ -17318,7 +17318,7 @@ function jl({
17318
17318
  Q.name
17319
17319
  );
17320
17320
  }),
17321
- z && /* @__PURE__ */ p(he.Item, { wrapperCol: { offset: ((se = t.labelCol) == null ? void 0 : se.span) || 0 }, children: /* @__PURE__ */ M(Ye, { children: [
17321
+ z && /* @__PURE__ */ p(he.Item, { wrapperCol: { offset: ((ie = t.labelCol) == null ? void 0 : ie.span) || 0 }, children: /* @__PURE__ */ M(Ye, { children: [
17322
17322
  i && /* @__PURE__ */ p(
17323
17323
  ae,
17324
17324
  {
@@ -17508,7 +17508,7 @@ function u8() {
17508
17508
  return H ? X : X.endOf(c);
17509
17509
  }, te = function(R, U) {
17510
17510
  return N.w(j.toDate()[R].apply(j.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), j);
17511
- }, L = this.$W, z = this.$M, K = this.$D, se = "set" + (this.$u ? "UTC" : "");
17511
+ }, L = this.$W, z = this.$M, K = this.$D, ie = "set" + (this.$u ? "UTC" : "");
17512
17512
  switch (Y) {
17513
17513
  case h:
17514
17514
  return H ? q(1, 0) : q(31, 11);
@@ -17519,13 +17519,13 @@ function u8() {
17519
17519
  return q(H ? K - ce : K + (6 - ce), z);
17520
17520
  case c:
17521
17521
  case m:
17522
- return te(se + "Hours", 0);
17522
+ return te(ie + "Hours", 0);
17523
17523
  case l:
17524
- return te(se + "Minutes", 1);
17524
+ return te(ie + "Minutes", 1);
17525
17525
  case a:
17526
- return te(se + "Seconds", 2);
17526
+ return te(ie + "Seconds", 2);
17527
17527
  case s:
17528
- return te(se + "Milliseconds", 3);
17528
+ return te(ie + "Milliseconds", 3);
17529
17529
  default:
17530
17530
  return this.clone();
17531
17531
  }
@@ -17560,11 +17560,11 @@ function u8() {
17560
17560
  }, A.format = function(F) {
17561
17561
  var P = this, j = this.$locale();
17562
17562
  if (!this.isValid()) return j.invalidDate || w;
17563
- var H = F || "YYYY-MM-DDTHH:mm:ssZ", Y = N.z(this), q = this.$H, te = this.$m, L = this.$M, z = j.weekdays, K = j.months, se = j.meridiem, Q = function(U, X, G, ne) {
17563
+ var H = F || "YYYY-MM-DDTHH:mm:ssZ", Y = N.z(this), q = this.$H, te = this.$m, L = this.$M, z = j.weekdays, K = j.months, ie = j.meridiem, Q = function(U, X, G, ne) {
17564
17564
  return U && (U[X] || U(P, H)) || G[X].slice(0, ne);
17565
17565
  }, ce = function(U) {
17566
17566
  return N.s(q % 12 || 12, U, "0");
17567
- }, R = se || function(U, X, G) {
17567
+ }, R = ie || function(U, X, G) {
17568
17568
  var ne = U < 12 ? "AM" : "PM";
17569
17569
  return G ? ne.toLowerCase() : ne;
17570
17570
  };
@@ -18882,10 +18882,10 @@ function C8(t) {
18882
18882
  } else {
18883
18883
  let q = a.pos - I;
18884
18884
  a.next();
18885
- let te = [], L = [], z = N >= s ? N : -1, K = 0, se = T;
18885
+ let te = [], L = [], z = N >= s ? N : -1, K = 0, ie = T;
18886
18886
  for (; a.pos > q; )
18887
- z >= 0 && a.id == z && a.size >= 0 ? (a.end <= se - o && (m(te, L, _, K, a.end, se, z, A, F), K = te.length, se = a.end), a.next()) : D > 2500 ? f(_, q, te, L) : d(_, q, te, L, z, D + 1);
18888
- if (z >= 0 && K > 0 && K < te.length && m(te, L, _, K, _, se, z, A, F), te.reverse(), L.reverse(), z > -1 && K > 0) {
18887
+ z >= 0 && a.id == z && a.size >= 0 ? (a.end <= ie - o && (m(te, L, _, K, a.end, ie, z, A, F), K = te.length, ie = a.end), a.next()) : D > 2500 ? f(_, q, te, L) : d(_, q, te, L, z, D + 1);
18888
+ if (z >= 0 && K > 0 && K < te.length && m(te, L, _, K, _, ie, z, A, F), te.reverse(), L.reverse(), z > -1 && K > 0) {
18889
18889
  let Q = h(P, F);
18890
18890
  j = Fw(P, te, L, 0, te.length, 0, T - _, Q, Q);
18891
18891
  } else
@@ -40388,7 +40388,7 @@ const nU = [
40388
40388
  (x == null ? void 0 : x.credentials) ?? []
40389
40389
  ), N = !!(!v && h && !x && ((E == null ? void 0 : E.loading) ?? !(E != null && E.finished)));
40390
40390
  le(() => {
40391
- var ne, ie;
40391
+ var ne, se;
40392
40392
  !b || b.identity === y || console.info(`${Yc} classic renderer ignore stale next schema state`, {
40393
40393
  nodeId: o,
40394
40394
  nodeKey: h,
@@ -40397,7 +40397,7 @@ const nU = [
40397
40397
  staleIdentity: b.identity,
40398
40398
  staleLoading: b.loading,
40399
40399
  staleFinished: b.finished,
40400
- staleInputFields: ((ie = (ne = b.schema) == null ? void 0 : ne.input_fields) == null ? void 0 : ie.length) ?? 0
40400
+ staleInputFields: ((se = (ne = b.schema) == null ? void 0 : ne.input_fields) == null ? void 0 : se.length) ?? 0
40401
40401
  });
40402
40402
  }, [y, b, o, h, m]), le(() => {
40403
40403
  d && (c.proxyId = d);
@@ -40406,11 +40406,11 @@ const nU = [
40406
40406
  if (le(() => {
40407
40407
  I(C);
40408
40408
  }, [g, C]), v) {
40409
- const ne = (X = u.sub_params) == null ? void 0 : X.reduce((ie, we) => {
40409
+ const ne = (X = u.sub_params) == null ? void 0 : X.reduce((se, we) => {
40410
40410
  let Se = we.value;
40411
40411
  we.page_control === xe.EXTEND_OBJ && (Se = z7(Se));
40412
40412
  const Le = _.getFieldValue(we.name);
40413
- return ie[we.name] = Le ?? Se ?? oU(we), ie;
40413
+ return se[we.name] = Le ?? Se ?? oU(we), se;
40414
40414
  }, {});
40415
40415
  _.setFieldsValue({ ...ne });
40416
40416
  }
@@ -40439,20 +40439,20 @@ const nU = [
40439
40439
  nodeId: o,
40440
40440
  nodeKey: h,
40441
40441
  nodeVersion: m
40442
- }), tU(h, m).then((ie) => {
40442
+ }), tU(h, m).then((se) => {
40443
40443
  var we;
40444
40444
  ne || (k({
40445
40445
  identity: y,
40446
- schema: ie,
40446
+ schema: se,
40447
40447
  loading: !1,
40448
40448
  finished: !0
40449
40449
  }), console.info(`${Yc} classic renderer next schema loaded`, {
40450
40450
  nodeId: o,
40451
40451
  nodeKey: h,
40452
40452
  nodeVersion: m,
40453
- inputFields: ((we = ie == null ? void 0 : ie.input_fields) == null ? void 0 : we.length) ?? 0
40453
+ inputFields: ((we = se == null ? void 0 : se.input_fields) == null ? void 0 : we.length) ?? 0
40454
40454
  }));
40455
- }).catch((ie) => {
40455
+ }).catch((se) => {
40456
40456
  ne || (k({
40457
40457
  identity: y,
40458
40458
  schema: null,
@@ -40462,7 +40462,7 @@ const nU = [
40462
40462
  nodeId: o,
40463
40463
  nodeKey: h,
40464
40464
  nodeVersion: m,
40465
- err: ie
40465
+ err: se
40466
40466
  }));
40467
40467
  }), () => {
40468
40468
  ne = !0;
@@ -40487,10 +40487,10 @@ const nU = [
40487
40487
  ]);
40488
40488
  const q = V(
40489
40489
  (ne) => {
40490
- const ie = ne.trim().match(rU);
40491
- if (!ie)
40490
+ const se = ne.trim().match(rU);
40491
+ if (!se)
40492
40492
  return null;
40493
- const we = ie[1], Se = ie[2];
40493
+ const we = se[1], Se = se[2];
40494
40494
  if (we === "global")
40495
40495
  return null;
40496
40496
  const Le = we.startsWith("N") ? we.slice(1) : we, Ze = l.getState().nodes.find((je) => je.id === Le);
@@ -40503,24 +40503,24 @@ const nU = [
40503
40503
  [l]
40504
40504
  ), te = V(
40505
40505
  (ne) => {
40506
- var ie;
40507
- return ((ie = q(ne)) == null ? void 0 : ie.fieldPath) ?? ne.replace(/^\{\{|\}\}$/g, "");
40506
+ var se;
40507
+ return ((se = q(ne)) == null ? void 0 : se.fieldPath) ?? ne.replace(/^\{\{|\}\}$/g, "");
40508
40508
  },
40509
40509
  [q]
40510
40510
  ), L = V(
40511
40511
  (ne) => {
40512
40512
  var Ze;
40513
- const ie = q(ne);
40514
- if (!ie)
40513
+ const se = q(ne);
40514
+ if (!se)
40515
40515
  return ne;
40516
- const we = (Ze = ie.node) == null ? void 0 : Ze.data, Se = (we == null ? void 0 : we.label) || (we == null ? void 0 : we.name) || (we == null ? void 0 : we.action_name) || ie.variableNodeId, Le = we != null && we.note ? ` (${we.note})` : "";
40517
- return `${Se}${Le}.${ie.fieldPath}`;
40516
+ const we = (Ze = se.node) == null ? void 0 : Ze.data, Se = (we == null ? void 0 : we.label) || (we == null ? void 0 : we.name) || (we == null ? void 0 : we.action_name) || se.variableNodeId, Le = we != null && we.note ? ` (${we.note})` : "";
40517
+ return `${Se}${Le}.${se.fieldPath}`;
40518
40518
  },
40519
40519
  [q]
40520
- ), z = (ne, ie) => _.validateFields().then(async (we) => {
40520
+ ), z = (ne, se) => _.validateFields().then(async (we) => {
40521
40521
  var Le, Ze, je, ge, Re;
40522
40522
  if (j)
40523
- return ie && ((Ze = (Le = A == null ? void 0 : A.current) == null ? void 0 : Le.onIgnoreNodeStart) == null || Ze.call(Le)), t.onSubmit(
40523
+ return se && ((Ze = (Le = A == null ? void 0 : A.current) == null ? void 0 : Le.onIgnoreNodeStart) == null || Ze.call(Le)), t.onSubmit(
40524
40524
  {
40525
40525
  params: we,
40526
40526
  account_id: T,
@@ -40532,12 +40532,12 @@ const nU = [
40532
40532
  return Se.sub_params.forEach((Me) => {
40533
40533
  let ut = we[Me.name];
40534
40534
  Me.page_control === xe.EXTEND_OBJ && ut !== "{{$fromAI}}" && (ut = Pg(ut)), Me.value = ut;
40535
- }), ie && ((ge = (je = A == null ? void 0 : A.current) == null ? void 0 : je.onIgnoreNodeStart) == null || ge.call(je)), !i && f === "HTTP" && (r == null ? void 0 : r.deployment_type) !== "SaasApp" && (Se.proxy_id = (Re = F.current) == null ? void 0 : Re.getProxyId()), t.onSubmit(Se, ne);
40535
+ }), se && ((ge = (je = A == null ? void 0 : A.current) == null ? void 0 : je.onIgnoreNodeStart) == null || ge.call(je)), !i && f === "HTTP" && (r == null ? void 0 : r.deployment_type) !== "SaasApp" && (Se.proxy_id = (Re = F.current) == null ? void 0 : Re.getProxyId()), t.onSubmit(Se, ne);
40536
40536
  }).catch((we) => (console.log("err", we), pe.warning(J("link.flow.missing_configuration")), !1));
40537
40537
  hn(e, () => ({
40538
40538
  saveConfig: (ne) => z(ne, !1)
40539
40539
  }));
40540
- const K = Ft(), se = f === "WEBHOOK" ? {
40540
+ const K = Ft(), ie = f === "WEBHOOK" ? {
40541
40541
  webhookField: {
40542
40542
  enabled: !0,
40543
40543
  form: _,
@@ -40545,7 +40545,7 @@ const nU = [
40545
40545
  disabled: !K
40546
40546
  }
40547
40547
  } : void 0, Q = (ne) => {
40548
- const ie = ne.page_control !== xe.HIDDEN ? /* @__PURE__ */ p("div", { style: { minHeight: 10 }, children: /* @__PURE__ */ p(
40548
+ const se = ne.page_control !== xe.HIDDEN ? /* @__PURE__ */ p("div", { style: { minHeight: 10 }, children: /* @__PURE__ */ p(
40549
40549
  "p",
40550
40550
  {
40551
40551
  style: {
@@ -40563,10 +40563,10 @@ const nU = [
40563
40563
  ne,
40564
40564
  o,
40565
40565
  s,
40566
- se,
40566
+ ie,
40567
40567
  a.canvas.registerComponents
40568
40568
  ),
40569
- ie
40569
+ se
40570
40570
  ] }, ne.ui_id);
40571
40571
  const we = iU(ne);
40572
40572
  return /* @__PURE__ */ p(
@@ -40581,10 +40581,10 @@ const nU = [
40581
40581
  ne,
40582
40582
  o,
40583
40583
  s,
40584
- se,
40584
+ ie,
40585
40585
  a.canvas.registerComponents
40586
40586
  ),
40587
- ie
40587
+ se
40588
40588
  ] }) : null;
40589
40589
  }
40590
40590
  },
@@ -41424,7 +41424,7 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
41424
41424
  });
41425
41425
  const s = (l, c, u = "") => o.validateFields().then(async (d) => i && i === "NUMBER" && d.start > d.end ? pe.warning(J("link.flow.loop_start_end_check")) : t({ properties: d }, l)).catch(() => (pe.warning(J("link.flow.missing_configuration")), !1));
41426
41426
  hn(r, () => ({
41427
- saveConfig: () => s(!0)
41427
+ saveConfig: (l) => s(l)
41428
41428
  }));
41429
41429
  const a = Ft();
41430
41430
  return /* @__PURE__ */ M("div", { style: { width: "100%", position: "relative", height: "100%" }, children: [
@@ -42379,7 +42379,7 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
42379
42379
  var H;
42380
42380
  t && ((H = l.current) == null || H.loadVariables());
42381
42381
  }, [t]);
42382
- const b = (n == null ? void 0 : n.action_id) || null, k = Array.isArray((F = n == null ? void 0 : n.config_schema) == null ? void 0 : F.sub_params), E = !!(n != null && n.action_key || n != null && n.nodeKey) && !k, x = (n == null ? void 0 : n.action_key) || (n == null ? void 0 : n.nodeKey), O = (n == null ? void 0 : n.action_ver) ?? (n == null ? void 0 : n.nodeVersion) ?? ((P = n == null ? void 0 : n.node_schema) == null ? void 0 : P.version), { handleNodeDataUpdate: D } = mo();
42382
+ const b = (n == null ? void 0 : n.action_id) || null, k = Array.isArray((F = n == null ? void 0 : n.config_schema) == null ? void 0 : F.sub_params), E = r === Z.ACTION && !!(n != null && n.action_key || n != null && n.nodeKey) && !k, x = (n == null ? void 0 : n.action_key) || (n == null ? void 0 : n.nodeKey), O = (n == null ? void 0 : n.action_ver) ?? (n == null ? void 0 : n.nodeVersion) ?? ((P = n == null ? void 0 : n.node_schema) == null ? void 0 : P.version), { handleNodeDataUpdate: D } = mo();
42383
42383
  le(() => {
42384
42384
  var H;
42385
42385
  t && console.info(`${Jc} node config modal opened`, {
@@ -42417,9 +42417,9 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
42417
42417
  async (H, Y) => {
42418
42418
  const q = v.flowId;
42419
42419
  try {
42420
- const te = w.getState().nodes.find((K) => K.id === o), L = E ? {
42420
+ const te = w.getState().nodes.find((ie) => ie.id === o), L = E ? H.params || H.properties || {} : H.properties, z = E ? {
42421
42421
  flow_id: q,
42422
- properties: H.params || {},
42422
+ properties: L,
42423
42423
  position: te == null ? void 0 : te.position,
42424
42424
  action_id: b,
42425
42425
  account_id: H.account_id ?? null,
@@ -42444,22 +42444,15 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
42444
42444
  propertiesKeys: Object.keys((H == null ? void 0 : H.properties) || {}),
42445
42445
  ignoreDebugResult: g.ignore
42446
42446
  });
42447
- const z = g.ignore ? await wE(
42448
- o,
42449
- "",
42450
- "",
42451
- "",
42452
- E ? H.params : H.properties,
42453
- g.output
42454
- ) : await Kd(o, L);
42455
- if (z)
42447
+ const K = g.ignore ? await wE(o, "", "", "", L, g.output) : await Kd(o, z);
42448
+ if (K)
42456
42449
  if (console.info(`${Jc} save node config success`, {
42457
42450
  nodeId: o,
42458
42451
  nodeType: r,
42459
42452
  isNextCompatibleNode: E,
42460
42453
  nextNodeKey: x,
42461
42454
  nextNodeVersion: O,
42462
- status: z.status
42455
+ status: K.status
42463
42456
  }), g.ignore)
42464
42457
  m.current.finishNodeTest(), D({
42465
42458
  id: o,
@@ -42469,8 +42462,8 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
42469
42462
  }), pe.success("已忽略调试结果");
42470
42463
  else {
42471
42464
  pe.success("节点配置已保存");
42472
- const K = E ? {
42473
- params: H.params,
42465
+ const ie = E ? {
42466
+ params: L,
42474
42467
  account_id: H.account_id,
42475
42468
  action_key: x,
42476
42469
  action_ver: O,
@@ -42480,11 +42473,11 @@ const x0 = (t) => t === ot.is_null || t === ot.is_not_null, lU = (t, e = "") =>
42480
42473
  D({
42481
42474
  id: o,
42482
42475
  data: {
42483
- config_schema: E ? H.params : H.properties,
42476
+ config_schema: L,
42484
42477
  account_id: H.account_id,
42485
- ...K,
42478
+ ...ie,
42486
42479
  position: te == null ? void 0 : te.position,
42487
- status: z.status
42480
+ status: K.status
42488
42481
  }
42489
42482
  });
42490
42483
  }
@@ -46914,7 +46907,7 @@ const jg = () => {
46914
46907
  // sourceNode,
46915
46908
  // targetNode
46916
46909
  });
46917
- }, se = (U) => {
46910
+ }, ie = (U) => {
46918
46911
  U.stopPropagation(), !(P || N && N.allowDeleteEdge === !1) && (v([t]), DE(w, [t]));
46919
46912
  }, Q = [
46920
46913
  // 边的路径
@@ -46966,7 +46959,7 @@ const jg = () => {
46966
46959
  "button",
46967
46960
  {
46968
46961
  type: "button",
46969
- onClick: se,
46962
+ onClick: ie,
46970
46963
  style: {
46971
46964
  ...lc.default,
46972
46965
  ...lc.delete
@@ -47272,7 +47265,7 @@ const oY = Vt.getEdgeTypes(), iY = {
47272
47265
  content: "确定启用当前流程吗?"
47273
47266
  }) && I() : A();
47274
47267
  }, H = async () => {
47275
- var se;
47268
+ var ie;
47276
47269
  const z = d === rt.ONLINE || d === rt.ON_WARN, K = () => {
47277
47270
  var Q, ce;
47278
47271
  if ((Q = x == null ? void 0 : x.nav) != null && Q.onBack) {
@@ -47285,7 +47278,7 @@ const oY = Vt.getEdgeTypes(), iY = {
47285
47278
  }
47286
47279
  s ? D.go(-1) : D.push("/link/ai-flow");
47287
47280
  };
47288
- if (!z && ((se = x == null ? void 0 : x.nav) != null && se.confirmOnBackWhenOffline) && i) {
47281
+ if (!z && ((ie = x == null ? void 0 : x.nav) != null && ie.confirmOnBackWhenOffline) && i) {
47289
47282
  await F.confirm({
47290
47283
  title: J("link.flow.operation_title"),
47291
47284
  content: x.nav.backConfirmMessage || "当前流程未保存,是否确认返回?"
@@ -47314,7 +47307,7 @@ const oY = Vt.getEdgeTypes(), iY = {
47314
47307
  return /* @__PURE__ */ M("div", { className: "workflow-canvas-header", children: [
47315
47308
  P,
47316
47309
  /* @__PURE__ */ p("div", { className: "workflow-heder-left-area", children: (() => {
47317
- var K, se, Q, ce;
47310
+ var K, ie, Q, ce;
47318
47311
  const z = [];
47319
47312
  return ((K = x == null ? void 0 : x.nav) == null ? void 0 : K.showBack) !== !1 && z.push(
47320
47313
  /* @__PURE__ */ p(
@@ -47357,7 +47350,7 @@ const oY = Vt.getEdgeTypes(), iY = {
47357
47350
  },
47358
47351
  children: u ? /* @__PURE__ */ M(Ot, { children: [
47359
47352
  /* @__PURE__ */ p(dY, { level: 4, className: "workflow-name-text", children: u }),
47360
- !e && !n && ((se = x == null ? void 0 : x.flowName) == null ? void 0 : se.editable) && /* @__PURE__ */ p(gk, { className: "edit-icon" })
47353
+ !e && !n && ((ie = x == null ? void 0 : x.flowName) == null ? void 0 : ie.editable) && /* @__PURE__ */ p(gk, { className: "edit-icon" })
47361
47354
  ] }) : /* @__PURE__ */ p(Hd.Input, { active: !0, size: "small" })
47362
47355
  },
47363
47356
  "name-display"
@@ -50393,8 +50386,8 @@ function lX() {
50393
50386
  function h(L, z) {
50394
50387
  let K = z && z.debugTiming ? d.time : d.notime;
50395
50388
  K("layout", () => {
50396
- let se = K(" buildLayoutGraph", () => x(L));
50397
- K(" runLayout", () => m(se, K, z)), K(" updateInputGraph", () => w(L, se));
50389
+ let ie = K(" buildLayoutGraph", () => x(L));
50390
+ K(" runLayout", () => m(ie, K, z)), K(" updateInputGraph", () => w(L, ie));
50398
50391
  });
50399
50392
  }
50400
50393
  function m(L, z, K) {
@@ -50402,11 +50395,11 @@ function lX() {
50402
50395
  }
50403
50396
  function w(L, z) {
50404
50397
  L.nodes().forEach((K) => {
50405
- let se = L.node(K), Q = z.node(K);
50406
- se && (se.x = Q.x, se.y = Q.y, se.rank = Q.rank, z.children(K).length && (se.width = Q.width, se.height = Q.height));
50398
+ let ie = L.node(K), Q = z.node(K);
50399
+ ie && (ie.x = Q.x, ie.y = Q.y, ie.rank = Q.rank, z.children(K).length && (ie.width = Q.width, ie.height = Q.height));
50407
50400
  }), L.edges().forEach((K) => {
50408
- let se = L.edge(K), Q = z.edge(K);
50409
- se.points = Q.points, Object.hasOwn(Q, "x") && (se.x = Q.x, se.y = Q.y);
50401
+ let ie = L.edge(K), Q = z.edge(K);
50402
+ ie.points = Q.points, Object.hasOwn(Q, "x") && (ie.x = Q.x, ie.y = Q.y);
50410
50403
  }), L.graph().width = z.graph().width, L.graph().height = z.graph().height;
50411
50404
  }
50412
50405
  let v = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], y = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, g = ["acyclicer", "ranker", "rankdir", "align"], C = ["width", "height", "rank"], S = { width: 0, height: 0 }, b = ["minlen", "weight", "width", "height", "labeloffset"], k = {
@@ -50424,15 +50417,15 @@ function lX() {
50424
50417
  y,
50425
50418
  q(K, v),
50426
50419
  d.pick(K, g)
50427
- )), L.nodes().forEach((se) => {
50428
- let Q = te(L.node(se));
50420
+ )), L.nodes().forEach((ie) => {
50421
+ let Q = te(L.node(ie));
50429
50422
  const ce = q(Q, C);
50430
50423
  Object.keys(S).forEach((R) => {
50431
50424
  ce[R] === void 0 && (ce[R] = S[R]);
50432
- }), z.setNode(se, ce), z.setParent(se, L.parent(se));
50433
- }), L.edges().forEach((se) => {
50434
- let Q = te(L.edge(se));
50435
- z.setEdge(se, Object.assign(
50425
+ }), z.setNode(ie, ce), z.setParent(ie, L.parent(ie));
50426
+ }), L.edges().forEach((ie) => {
50427
+ let Q = te(L.edge(ie));
50428
+ z.setEdge(ie, Object.assign(
50436
50429
  {},
50437
50430
  k,
50438
50431
  q(Q, b),
@@ -50443,15 +50436,15 @@ function lX() {
50443
50436
  function O(L) {
50444
50437
  let z = L.graph();
50445
50438
  z.ranksep /= 2, L.edges().forEach((K) => {
50446
- let se = L.edge(K);
50447
- se.minlen *= 2, se.labelpos.toLowerCase() !== "c" && (z.rankdir === "TB" || z.rankdir === "BT" ? se.width += se.labeloffset : se.height += se.labeloffset);
50439
+ let ie = L.edge(K);
50440
+ ie.minlen *= 2, ie.labelpos.toLowerCase() !== "c" && (z.rankdir === "TB" || z.rankdir === "BT" ? ie.width += ie.labeloffset : ie.height += ie.labeloffset);
50448
50441
  });
50449
50442
  }
50450
50443
  function D(L) {
50451
50444
  L.edges().forEach((z) => {
50452
50445
  let K = L.edge(z);
50453
50446
  if (K.width && K.height) {
50454
- let se = L.node(z.v), ce = { rank: (L.node(z.w).rank - se.rank) / 2 + se.rank, e: z };
50447
+ let ie = L.node(z.v), ce = { rank: (L.node(z.w).rank - ie.rank) / 2 + ie.rank, e: z };
50455
50448
  d.addDummyNode(L, "edge-proxy", ce, "_ep");
50456
50449
  }
50457
50450
  });
@@ -50459,8 +50452,8 @@ function lX() {
50459
50452
  function N(L) {
50460
50453
  let z = 0;
50461
50454
  L.nodes().forEach((K) => {
50462
- let se = L.node(K);
50463
- se.borderTop && (se.minRank = L.node(se.borderTop).rank, se.maxRank = L.node(se.borderBottom).rank, z = Math.max(z, se.maxRank));
50455
+ let ie = L.node(K);
50456
+ ie.borderTop && (ie.minRank = L.node(ie.borderTop).rank, ie.maxRank = L.node(ie.borderBottom).rank, z = Math.max(z, ie.maxRank));
50464
50457
  }), L.graph().maxRank = z;
50465
50458
  }
50466
50459
  function _(L) {
@@ -50470,28 +50463,28 @@ function lX() {
50470
50463
  });
50471
50464
  }
50472
50465
  function T(L) {
50473
- let z = Number.POSITIVE_INFINITY, K = 0, se = Number.POSITIVE_INFINITY, Q = 0, ce = L.graph(), R = ce.marginx || 0, U = ce.marginy || 0;
50466
+ let z = Number.POSITIVE_INFINITY, K = 0, ie = Number.POSITIVE_INFINITY, Q = 0, ce = L.graph(), R = ce.marginx || 0, U = ce.marginy || 0;
50474
50467
  function X(G) {
50475
- let ne = G.x, ie = G.y, we = G.width, Se = G.height;
50476
- z = Math.min(z, ne - we / 2), K = Math.max(K, ne + we / 2), se = Math.min(se, ie - Se / 2), Q = Math.max(Q, ie + Se / 2);
50468
+ let ne = G.x, se = G.y, we = G.width, Se = G.height;
50469
+ z = Math.min(z, ne - we / 2), K = Math.max(K, ne + we / 2), ie = Math.min(ie, se - Se / 2), Q = Math.max(Q, se + Se / 2);
50477
50470
  }
50478
50471
  L.nodes().forEach((G) => X(L.node(G))), L.edges().forEach((G) => {
50479
50472
  let ne = L.edge(G);
50480
50473
  Object.hasOwn(ne, "x") && X(ne);
50481
- }), z -= R, se -= U, L.nodes().forEach((G) => {
50474
+ }), z -= R, ie -= U, L.nodes().forEach((G) => {
50482
50475
  let ne = L.node(G);
50483
- ne.x -= z, ne.y -= se;
50476
+ ne.x -= z, ne.y -= ie;
50484
50477
  }), L.edges().forEach((G) => {
50485
50478
  let ne = L.edge(G);
50486
- ne.points.forEach((ie) => {
50487
- ie.x -= z, ie.y -= se;
50488
- }), Object.hasOwn(ne, "x") && (ne.x -= z), Object.hasOwn(ne, "y") && (ne.y -= se);
50489
- }), ce.width = K - z + R, ce.height = Q - se + U;
50479
+ ne.points.forEach((se) => {
50480
+ se.x -= z, se.y -= ie;
50481
+ }), Object.hasOwn(ne, "x") && (ne.x -= z), Object.hasOwn(ne, "y") && (ne.y -= ie);
50482
+ }), ce.width = K - z + R, ce.height = Q - ie + U;
50490
50483
  }
50491
50484
  function I(L) {
50492
50485
  L.edges().forEach((z) => {
50493
- let K = L.edge(z), se = L.node(z.v), Q = L.node(z.w), ce, R;
50494
- K.points ? (ce = K.points[0], R = K.points[K.points.length - 1]) : (K.points = [], ce = Q, R = se), K.points.unshift(d.intersectRect(se, ce)), K.points.push(d.intersectRect(Q, R));
50486
+ let K = L.edge(z), ie = L.node(z.v), Q = L.node(z.w), ce, R;
50487
+ K.points ? (ce = K.points[0], R = K.points[K.points.length - 1]) : (K.points = [], ce = Q, R = ie), K.points.unshift(d.intersectRect(ie, ce)), K.points.push(d.intersectRect(Q, R));
50495
50488
  });
50496
50489
  }
50497
50490
  function A(L) {
@@ -50517,8 +50510,8 @@ function lX() {
50517
50510
  function P(L) {
50518
50511
  L.nodes().forEach((z) => {
50519
50512
  if (L.children(z).length) {
50520
- let K = L.node(z), se = L.node(K.borderTop), Q = L.node(K.borderBottom), ce = L.node(K.borderLeft[K.borderLeft.length - 1]), R = L.node(K.borderRight[K.borderRight.length - 1]);
50521
- K.width = Math.abs(R.x - ce.x), K.height = Math.abs(Q.y - se.y), K.x = ce.x + K.width / 2, K.y = se.y + K.height / 2;
50513
+ let K = L.node(z), ie = L.node(K.borderTop), Q = L.node(K.borderBottom), ce = L.node(K.borderLeft[K.borderLeft.length - 1]), R = L.node(K.borderRight[K.borderRight.length - 1]);
50514
+ K.width = Math.abs(R.x - ce.x), K.height = Math.abs(Q.y - ie.y), K.x = ce.x + K.width / 2, K.y = ie.y + K.height / 2;
50522
50515
  }
50523
50516
  }), L.nodes().forEach((z) => {
50524
50517
  L.node(z).dummy === "border" && L.removeNode(z);
@@ -50535,15 +50528,15 @@ function lX() {
50535
50528
  function H(L) {
50536
50529
  var z = d.buildLayerMatrix(L);
50537
50530
  z.forEach((K) => {
50538
- var se = 0;
50531
+ var ie = 0;
50539
50532
  K.forEach((Q, ce) => {
50540
50533
  var R = L.node(Q);
50541
- R.order = ce + se, (R.selfEdges || []).forEach((U) => {
50534
+ R.order = ce + ie, (R.selfEdges || []).forEach((U) => {
50542
50535
  d.addDummyNode(L, "selfedge", {
50543
50536
  width: U.label.width,
50544
50537
  height: U.label.height,
50545
50538
  rank: R.rank,
50546
- order: ce + ++se,
50539
+ order: ce + ++ie,
50547
50540
  e: U.e,
50548
50541
  label: U.label
50549
50542
  }, "_se");
@@ -50555,7 +50548,7 @@ function lX() {
50555
50548
  L.nodes().forEach((z) => {
50556
50549
  var K = L.node(z);
50557
50550
  if (K.dummy === "selfedge") {
50558
- var se = L.node(K.e.v), Q = se.x + se.width / 2, ce = se.y, R = K.x - Q, U = se.height / 2;
50551
+ var ie = L.node(K.e.v), Q = ie.x + ie.width / 2, ce = ie.y, R = K.x - Q, U = ie.height / 2;
50559
50552
  L.setEdge(K.e, K.label), L.removeNode(z), K.label.points = [
50560
50553
  { x: Q + 2 * R / 3, y: ce - U },
50561
50554
  { x: Q + 5 * R / 6, y: ce - U },
@@ -50571,8 +50564,8 @@ function lX() {
50571
50564
  }
50572
50565
  function te(L) {
50573
50566
  var z = {};
50574
- return L && Object.entries(L).forEach(([K, se]) => {
50575
- typeof K == "string" && (K = K.toLowerCase()), z[K] = se;
50567
+ return L && Object.entries(L).forEach(([K, ie]) => {
50568
+ typeof K == "string" && (K = K.toLowerCase()), z[K] = ie;
50576
50569
  }), z;
50577
50570
  }
50578
50571
  return Qp;
@@ -50858,7 +50851,7 @@ function gX(t, e, n) {
50858
50851
  });
50859
50852
  const j = P.y + nt + Es, H = I.length * nt + (I.length - 1) * ks, Y = A + (N - H) / 2;
50860
50853
  I.forEach((q, te) => {
50861
- var K, se;
50854
+ var K, ie;
50862
50855
  const z = {
50863
50856
  x: Y + te * (nt + ks),
50864
50857
  y: j,
@@ -50866,7 +50859,7 @@ function gX(t, e, n) {
50866
50859
  height: nt
50867
50860
  };
50868
50861
  console.log(
50869
- `水平布局子节点 ${q.id}: 从 (${(K = q.position) == null ? void 0 : K.x}, ${(se = q.position) == null ? void 0 : se.y}) 移动到 (${z.x}, ${z.y})`
50862
+ `水平布局子节点 ${q.id}: 从 (${(K = q.position) == null ? void 0 : K.x}, ${(ie = q.position) == null ? void 0 : ie.y}) 移动到 (${z.x}, ${z.y})`
50870
50863
  ), u.push({ id: q.id, boundingBox: z }), d.push(z.y), f.push(z.x), c.push({
50871
50864
  id: q.id,
50872
50865
  x: z.x,
@@ -51045,7 +51038,7 @@ function bX(t, e) {
51045
51038
  removeEdges: q,
51046
51039
  onConnect: te,
51047
51040
  handleEdgesChange: L
51048
- } = jg(), z = xr(), K = z.getState().edges, se = ci((Oe) => Oe.workflow.refreshWorkFlowNum), [Q, ce] = UT([]), [R, U] = qT([]), [X, G] = ee(void 0), [ne, ie] = ee(void 0), we = V(
51041
+ } = jg(), z = xr(), K = z.getState().edges, ie = ci((Oe) => Oe.workflow.refreshWorkFlowNum), [Q, ce] = UT([]), [R, U] = qT([]), [X, G] = ee(void 0), [ne, se] = ee(void 0), we = V(
51049
51042
  (Oe) => {
51050
51043
  var jt, Rn;
51051
51044
  if (!Oe) return !0;
@@ -51061,9 +51054,9 @@ function bX(t, e) {
51061
51054
  },
51062
51055
  [(vn = w.canvas) == null ? void 0 : vn.selectable, z]
51063
51056
  ), Se = V((Oe, Pe) => {
51064
- if (G(void 0), ie(void 0), Oe.length === 1 && Oe[0].type === "position" && Oe[0].dragging && Oe[0].position) {
51057
+ if (G(void 0), se(void 0), Oe.length === 1 && Oe[0].type === "position" && Oe[0].dragging && Oe[0].position) {
51065
51058
  const et = AY(Oe[0], Pe);
51066
- Oe[0].position.x = et.snapPosition.x ?? Oe[0].position.x, Oe[0].position.y = et.snapPosition.y ?? Oe[0].position.y, G(et.horizontal), ie(et.vertical);
51059
+ Oe[0].position.x = et.snapPosition.x ?? Oe[0].position.x, Oe[0].position.y = et.snapPosition.y ?? Oe[0].position.y, G(et.horizontal), se(et.vertical);
51067
51060
  }
51068
51061
  return Oe;
51069
51062
  }, []), Le = V(
@@ -51251,7 +51244,7 @@ function bX(t, e) {
51251
51244
  dispatch: a,
51252
51245
  store: z,
51253
51246
  storeEdges: K,
51254
- refreshWorkFlowNum: se,
51247
+ refreshWorkFlowNum: ie,
51255
51248
  addNodes: H,
51256
51249
  addEdges: Y,
51257
51250
  removeEdges: q,
@@ -51506,7 +51499,7 @@ ${n}` : ""}`;
51506
51499
  ), H && K.push(
51507
51500
  `连线 +${P.added.length} -${P.removed.length} ~${P.changed.length}`
51508
51501
  );
51509
- const se = {
51502
+ const ie = {
51510
51503
  id: `${Date.now()}-${Math.random()}`,
51511
51504
  time: FN(),
51512
51505
  message: K.join(" | "),
@@ -51525,7 +51518,7 @@ ${n}` : ""}`;
51525
51518
  detail: z,
51526
51519
  expanded: !1
51527
51520
  };
51528
- i((Q) => [se, ...Q].slice(0, kX)), console.log("[WorkflowDebugPanel]", se.message, z);
51521
+ i((Q) => [ie, ...Q].slice(0, kX)), console.log("[WorkflowDebugPanel]", ie.message, z);
51529
51522
  }, [n, e, t]);
51530
51523
  const w = ue(
51531
51524
  () => e.map((A) => ({
@@ -53830,7 +53823,7 @@ const { Text: im } = un, bJ = () => {
53830
53823
  appFlowMode: s = !1,
53831
53824
  canvasApi: a
53832
53825
  }) => {
53833
- var K, se;
53826
+ var K, ie;
53834
53827
  const l = ha(), c = Ft(), u = ci((Q) => Q.workflow.workflowName), d = ci((Q) => Q.workflow.op_status), [f, h] = ee(!1), [m, w] = ee(u), [v, y] = ee(!1), g = me(null), { getNodes: C } = kr(), S = pn(), b = S.toolbar, k = Po(), E = ((K = C().filter((Q) => Q.type !== Z.START)) == null ? void 0 : K.length) > 0;
53835
53828
  le(() => {
53836
53829
  w(u);
@@ -53869,19 +53862,19 @@ const { Text: im } = un, bJ = () => {
53869
53862
  const ne = Object.keys(G ?? {});
53870
53863
  if (ne.length === 0)
53871
53864
  return ce(R, "loop config schema is empty");
53872
- if (ne.some((ie) => typeof G[ie] > "u"))
53865
+ if (ne.some((se) => typeof G[se] > "u"))
53873
53866
  return ce(R, "loop config contains undefined values", {
53874
- undefinedKeys: ne.filter((ie) => typeof G[ie] > "u")
53867
+ undefinedKeys: ne.filter((se) => typeof G[se] > "u")
53875
53868
  });
53876
53869
  } else if (X === Z.CONDITION) {
53877
53870
  if (!(G != null && G.or_list) || !G.or_list.length)
53878
53871
  return ce(R, "condition config is missing or_list");
53879
- if (!G.or_list.every((ie) => ie.and_list.every((we) => we.query && we.operator)))
53872
+ if (!G.or_list.every((se) => se.and_list.every((we) => we.query && we.operator)))
53880
53873
  return ce(R, "condition config contains incomplete rules");
53881
53874
  } else if (X === Z.SWITCH) {
53882
53875
  if (!(G != null && G.branches) || !G.branches.length)
53883
53876
  return ce(R, "switch config is missing branches");
53884
- if (!G.branches.every((ie) => ie.or_list.every(
53877
+ if (!G.branches.every((se) => se.or_list.every(
53885
53878
  (we) => we.and_list.every((Se) => Se.query && Se.operator)
53886
53879
  )))
53887
53880
  return ce(R, "switch config contains incomplete branch rules");
@@ -53889,8 +53882,8 @@ const { Text: im } = un, bJ = () => {
53889
53882
  const ne = G == null ? void 0 : G.sub_params;
53890
53883
  if (!Array.isArray(ne))
53891
53884
  return ce(R, "config_schema.sub_params is missing or invalid");
53892
- const ie = ne.every((Se) => (console.log("subParams :", ne), Se.required ? typeof Se.value < "u" && Se.value !== null : !0));
53893
- if (!ie)
53885
+ const se = ne.every((Se) => (console.log("subParams :", ne), Se.required ? typeof Se.value < "u" && Se.value !== null : !0));
53886
+ if (!se)
53894
53887
  return ce(R, "required parameters are missing", {
53895
53888
  missingParams: ne.filter(
53896
53889
  (Se) => Se.required && (typeof Se.value > "u" || Se.value === null)
@@ -53901,7 +53894,7 @@ const { Text: im } = un, bJ = () => {
53901
53894
  }))
53902
53895
  });
53903
53896
  const we = G != null && G.account_schema_id ? !!G.account_id : !0;
53904
- if (!ie || !we)
53897
+ if (!se || !we)
53905
53898
  return ce(R, "account is required but account_id is missing", {
53906
53899
  accountSchemaId: G == null ? void 0 : G.account_schema_id,
53907
53900
  accountId: G == null ? void 0 : G.account_id
@@ -54091,7 +54084,7 @@ const { Text: im } = un, bJ = () => {
54091
54084
  }
54092
54085
  ) }),
54093
54086
  /* @__PURE__ */ M(Ye, { style: { marginLeft: 16 }, children: [
54094
- (se = b == null ? void 0 : b.buttons) == null ? void 0 : se.map((Q) => /* @__PURE__ */ p(
54087
+ (ie = b == null ? void 0 : b.buttons) == null ? void 0 : ie.map((Q) => /* @__PURE__ */ p(
54095
54088
  ae,
54096
54089
  {
54097
54090
  style: Q.style,
@@ -54561,7 +54554,7 @@ const { Text: im } = un, bJ = () => {
54561
54554
  }), L = ue(
54562
54555
  () => E ? x : I,
54563
54556
  [E, x, I]
54564
- ), z = ue(() => (g == null ? void 0 : g.protocol) === $e.AI_LANGUAGE_MODEL ? "选择模型" : "选择动作", [g == null ? void 0 : g.protocol]), K = ue(() => (g == null ? void 0 : g.protocol) === $e.AI_LANGUAGE_MODEL || (g == null ? void 0 : g.protocol) === $e.AI_MEMORY ? "按模型名称搜索" : "按节点/动作名称搜索", [g == null ? void 0 : g.protocol]), se = E, Q = ue(() => {
54557
+ ), z = ue(() => (g == null ? void 0 : g.protocol) === $e.AI_LANGUAGE_MODEL ? "选择模型" : "选择动作", [g == null ? void 0 : g.protocol]), K = ue(() => (g == null ? void 0 : g.protocol) === $e.AI_LANGUAGE_MODEL || (g == null ? void 0 : g.protocol) === $e.AI_MEMORY ? "按模型名称搜索" : "按节点/动作名称搜索", [g == null ? void 0 : g.protocol]), ie = E, Q = ue(() => {
54565
54558
  const ge = g == null ? void 0 : g.protocol;
54566
54559
  if (ge) {
54567
54560
  if (ge === $e.AI_TOOL)
@@ -54622,7 +54615,7 @@ const { Text: im } = un, bJ = () => {
54622
54615
  c((ut) => [...ut, ge.id]);
54623
54616
  const Me = u[ge.id];
54624
54617
  (!Me || Me.actions.length === 0 || Me.source === "search-partial") && await G(ge);
54625
- }, ie = async (ge) => {
54618
+ }, se = async (ge) => {
54626
54619
  await G(ge);
54627
54620
  }, we = (ge, Re) => {
54628
54621
  const Me = {
@@ -54696,7 +54689,7 @@ const { Text: im } = un, bJ = () => {
54696
54689
  hasPartialActions: ((ut = u[ge.id]) == null ? void 0 : ut.source) === "search-partial",
54697
54690
  onToggle: ne,
54698
54691
  onActionSelect: we,
54699
- onLoadAllActions: ie
54692
+ onLoadAllActions: se
54700
54693
  },
54701
54694
  ge.id
54702
54695
  );
@@ -54732,7 +54725,7 @@ const { Text: im } = un, bJ = () => {
54732
54725
  placeholder: K,
54733
54726
  prefix: /* @__PURE__ */ p(pk, { style: { color: "#007aff" } }),
54734
54727
  allowClear: !0,
54735
- value: se,
54728
+ value: ie,
54736
54729
  onChange: (ge) => Le(ge.target.value)
54737
54730
  }
54738
54731
  ) }),
@@ -57198,17 +57191,17 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57198
57191
  dragging: k,
57199
57192
  dependencies: [O.x, O.y],
57200
57193
  config: te.droppable
57201
- }), se = HQ(x, E), Q = ue(() => P ? qg(P) : null, [P]), ce = Mf(), R = WQ(se, te.draggable.measure);
57194
+ }), ie = HQ(x, E), Q = ue(() => P ? qg(P) : null, [P]), ce = Mf(), R = WQ(ie, te.draggable.measure);
57202
57195
  uZ({
57203
57196
  activeNode: E != null ? x.get(E) : null,
57204
57197
  config: ce.layoutShiftCompensation,
57205
57198
  initialRect: R,
57206
57199
  measure: te.draggable.measure
57207
57200
  });
57208
- const U = Kx(se, te.draggable.measure, R), X = Kx(se ? se.parentElement : null), G = me({
57201
+ const U = Kx(ie, te.draggable.measure, R), X = Kx(ie ? ie.parentElement : null), G = me({
57209
57202
  activatorEvent: null,
57210
57203
  active: null,
57211
- activeNode: se,
57204
+ activeNode: ie,
57212
57205
  collisionRect: null,
57213
57206
  collisions: null,
57214
57207
  droppableRects: L,
@@ -57219,9 +57212,9 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57219
57212
  over: null,
57220
57213
  scrollableAncestors: [],
57221
57214
  scrollAdjustedTranslate: null
57222
- }), ne = D.getNodeFor((n = G.current.over) == null ? void 0 : n.id), ie = eZ({
57215
+ }), ne = D.getNodeFor((n = G.current.over) == null ? void 0 : n.id), se = eZ({
57223
57216
  measure: te.dragOverlay.measure
57224
- }), we = (r = ie.nodeRef.current) != null ? r : se, Se = k ? (o = ie.rect) != null ? o : U : null, Le = !!(ie.nodeRef.current && ie.rect), Ze = GQ(Le ? null : U), je = nT(we ? Jn(we) : null), ge = KQ(k ? ne ?? se : null), Re = QQ(ge), Me = lZ(h, {
57217
+ }), we = (r = se.nodeRef.current) != null ? r : ie, Se = k ? (o = se.rect) != null ? o : U : null, Le = !!(se.nodeRef.current && se.rect), Ze = GQ(Le ? null : U), je = nT(we ? Jn(we) : null), ge = KQ(k ? ne ?? ie : null), Re = QQ(ge), Me = lZ(h, {
57225
57218
  transform: {
57226
57219
  x: O.x - Ze.x,
57227
57220
  y: O.y - Ze.y,
@@ -57234,7 +57227,7 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57234
57227
  containerNodeRect: X,
57235
57228
  draggingNodeRect: Se,
57236
57229
  over: G.current.over,
57237
- overlayNodeRect: ie.rect,
57230
+ overlayNodeRect: se.rect,
57238
57231
  scrollableAncestors: ge,
57239
57232
  scrollableAncestorRects: Re,
57240
57233
  windowRect: je
@@ -57459,7 +57452,7 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57459
57452
  G.current = {
57460
57453
  activatorEvent: P,
57461
57454
  active: T,
57462
- activeNode: se,
57455
+ activeNode: ie,
57463
57456
  collisionRect: Ct,
57464
57457
  collisions: pt,
57465
57458
  droppableRects: L,
@@ -57474,7 +57467,7 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57474
57467
  initial: Se,
57475
57468
  translated: Ct
57476
57469
  };
57477
- }, [T, se, pt, Ct, x, we, Se, L, D, Zn, ge, Rt]), LQ({
57470
+ }, [T, ie, pt, Ct, x, we, Se, L, D, Zn, ge, Rt]), LQ({
57478
57471
  ...ce,
57479
57472
  delta: O,
57480
57473
  draggingRect: Ct,
@@ -57484,12 +57477,12 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57484
57477
  });
57485
57478
  const ns = ue(() => ({
57486
57479
  active: T,
57487
- activeNode: se,
57480
+ activeNode: ie,
57488
57481
  activeNodeRect: U,
57489
57482
  activatorEvent: P,
57490
57483
  collisions: pt,
57491
57484
  containerNodeRect: X,
57492
- dragOverlay: ie,
57485
+ dragOverlay: se,
57493
57486
  draggableNodes: x,
57494
57487
  droppableContainers: D,
57495
57488
  droppableRects: L,
@@ -57500,7 +57493,7 @@ const dZ = /* @__PURE__ */ Cr(function(e) {
57500
57493
  measuringConfiguration: te,
57501
57494
  measuringScheduled: K,
57502
57495
  windowRect: je
57503
- }), [T, se, U, P, pt, X, ie, x, D, L, Zn, z, ge, Re, te, K, je]), Rf = ue(() => ({
57496
+ }), [T, ie, U, P, pt, X, se, x, D, L, Zn, z, ge, Re, te, K, je]), Rf = ue(() => ({
57504
57497
  activatorEvent: P,
57505
57498
  activators: mi,
57506
57499
  active: T,
@@ -58010,9 +58003,9 @@ function BZ(t) {
58010
58003
  setDroppableNodeRef: D,
58011
58004
  setDraggableNodeRef: A,
58012
58005
  transform: ne ?? Q,
58013
- transition: ie()
58006
+ transition: se()
58014
58007
  };
58015
- function ie() {
58008
+ function se() {
58016
58009
  if (
58017
58010
  // Temporarily disable transitions for a single frame to set up derived transforms
58018
58011
  ne || // Or to prevent items jumping to back to their "new" position when items change