@iterms/tinyflow-ai-vue 0.2.20 → 0.2.22

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
@@ -5453,8 +5453,8 @@ function cd() {
5453
5453
  return function(ne) {
5454
5454
  if (ne === 1) ne = X;
5455
5455
  else {
5456
- var we = re(ne), Pe = q / we[2];
5457
- ne = new Bn(Pe, J[0] - we[0] * Pe, J[1] - we[1] * Pe);
5456
+ var xe = re(ne), Pe = q / xe[2];
5457
+ ne = new Bn(Pe, J[0] - xe[0] * Pe, J[1] - xe[1] * Pe);
5458
5458
  }
5459
5459
  B.zoom(null, ne);
5460
5460
  };
@@ -5545,8 +5545,8 @@ function cd() {
5545
5545
  for (Vo(k), H = 0; H < M; ++H)
5546
5546
  B = T[H], W = vn(B, this), P.touch0 && P.touch0[2] === B.identifier ? P.touch0[0] = W : P.touch1 && P.touch1[2] === B.identifier && (P.touch1[0] = W);
5547
5547
  if (B = P.that.__zoom, P.touch1) {
5548
- var q = P.touch0[0], G = P.touch0[1], X = P.touch1[0], re = P.touch1[1], ne = (ne = X[0] - q[0]) * ne + (ne = X[1] - q[1]) * ne, we = (we = re[0] - G[0]) * we + (we = re[1] - G[1]) * we;
5549
- B = p(B, Math.sqrt(ne / we)), W = [(q[0] + X[0]) / 2, (q[1] + X[1]) / 2], J = [(G[0] + re[0]) / 2, (G[1] + re[1]) / 2];
5548
+ var q = P.touch0[0], G = P.touch0[1], X = P.touch1[0], re = P.touch1[1], ne = (ne = X[0] - q[0]) * ne + (ne = X[1] - q[1]) * ne, xe = (xe = re[0] - G[0]) * xe + (xe = re[1] - G[1]) * xe;
5549
+ B = p(B, Math.sqrt(ne / xe)), W = [(q[0] + X[0]) / 2, (q[1] + X[1]) / 2], J = [(G[0] + re[0]) / 2, (G[1] + re[1]) / 2];
5550
5550
  } else if (P.touch0) W = P.touch0[0], J = P.touch0[1];
5551
5551
  else return;
5552
5552
  P.zoom("touch", n(x(B, W, J), P.extent, s));
@@ -6563,13 +6563,13 @@ function $p({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
6563
6563
  [k[1][0], k[1][1]]
6564
6564
  ];
6565
6565
  if (a.size > 1 && k && !X.extent) {
6566
- const { positionAbsolute: Ae } = X.internals, _e = Ae.x - q.x + k[0][0], be = Ae.x + X.measured.width - q.x2 + k[1][0], ce = Ae.y - q.y + k[0][1], Q = Ae.y + X.measured.height - q.y2 + k[1][1];
6566
+ const { positionAbsolute: Ae } = X.internals, we = Ae.x - q.x + k[0][0], be = Ae.x + X.measured.width - q.x2 + k[1][0], ce = Ae.y - q.y + k[0][1], Q = Ae.y + X.measured.height - q.y2 + k[1][1];
6567
6567
  ne = [
6568
- [_e, ce],
6568
+ [we, ce],
6569
6569
  [be, Q]
6570
6570
  ];
6571
6571
  }
6572
- const { position: we, positionAbsolute: Pe } = q2({
6572
+ const { position: xe, positionAbsolute: Pe } = q2({
6573
6573
  nodeId: G,
6574
6574
  nextPosition: re,
6575
6575
  nodeLookup: Y,
@@ -6577,7 +6577,7 @@ function $p({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: r, o
6577
6577
  nodeOrigin: T,
6578
6578
  onError: B
6579
6579
  });
6580
- J = J || X.position.x !== we.x || X.position.y !== we.y, X.position = we, X.internals.positionAbsolute = Pe;
6580
+ J = J || X.position.x !== xe.x || X.position.y !== xe.y, X.position = xe, X.internals.positionAbsolute = Pe;
6581
6581
  }
6582
6582
  if (J && (W(a, !0), F && (r || M || !m && H))) {
6583
6583
  const [G, X] = Xs({
@@ -6740,12 +6740,12 @@ function Np(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
6740
6740
  v == null || v(e, { nodeId: o, handleId: r, handleType: Y });
6741
6741
  function ne(Pe) {
6742
6742
  if (!E() || !J) {
6743
- we(Pe);
6743
+ xe(Pe);
6744
6744
  return;
6745
6745
  }
6746
6746
  const Ae = m();
6747
6747
  P = jn(Pe, k), O = Sp(gi(P, Ae, !1, [1, 1]), n, l, J), T || (W(), T = !0);
6748
- const _e = Sd(Pe, {
6748
+ const we = Sd(Pe, {
6749
6749
  handle: O,
6750
6750
  connectionMode: t,
6751
6751
  fromNodeId: o,
@@ -6757,27 +6757,27 @@ function Np(e, { connectionMode: t, connectionRadius: n, handleId: r, nodeId: o,
6757
6757
  flowId: g,
6758
6758
  nodeLookup: l
6759
6759
  });
6760
- B = _e.handleDomNode, M = _e.connection, H = Pp(!!O, _e.isValid);
6760
+ B = we.handleDomNode, M = we.connection, H = Pp(!!O, we.isValid);
6761
6761
  const be = {
6762
6762
  // from stays the same
6763
6763
  ...re,
6764
6764
  isValid: H,
6765
6765
  to: O && H ? Qi({ x: O.x, y: O.y }, Ae) : P,
6766
- toHandle: _e.toHandle,
6767
- toPosition: H && _e.toHandle ? _e.toHandle.position : au[J.position],
6768
- toNode: _e.toHandle ? l.get(_e.toHandle.nodeId) : null
6766
+ toHandle: we.toHandle,
6767
+ toPosition: H && we.toHandle ? we.toHandle.position : au[J.position],
6768
+ toNode: we.toHandle ? l.get(we.toHandle.nodeId) : null
6769
6769
  };
6770
6770
  H && O && re.toHandle && be.toHandle && re.toHandle.type === be.toHandle.type && re.toHandle.nodeId === be.toHandle.nodeId && re.toHandle.id === be.toHandle.id && re.to.x === be.to.x && re.to.y === be.to.y || (x(be), re = be);
6771
6771
  }
6772
- function we(Pe) {
6772
+ function xe(Pe) {
6773
6773
  (O || B) && M && H && (y == null || y(M));
6774
- const { inProgress: Ae, ..._e } = re, be = {
6775
- ..._e,
6774
+ const { inProgress: Ae, ...we } = re, be = {
6775
+ ...we,
6776
6776
  toPosition: re.toHandle ? re.toPosition : null
6777
6777
  };
6778
- C == null || C(Pe, be), i && (p == null || p(Pe, be)), h(), cancelAnimationFrame(L), T = !1, H = !1, M = null, B = null, S.removeEventListener("mousemove", ne), S.removeEventListener("mouseup", we), S.removeEventListener("touchmove", ne), S.removeEventListener("touchend", we);
6778
+ C == null || C(Pe, be), i && (p == null || p(Pe, be)), h(), cancelAnimationFrame(L), T = !1, H = !1, M = null, B = null, S.removeEventListener("mousemove", ne), S.removeEventListener("mouseup", xe), S.removeEventListener("touchmove", ne), S.removeEventListener("touchend", xe);
6779
6779
  }
6780
- S.addEventListener("mousemove", ne), S.addEventListener("mouseup", we), S.addEventListener("touchmove", ne), S.addEventListener("touchend", we);
6780
+ S.addEventListener("mousemove", ne), S.addEventListener("mouseup", xe), S.addEventListener("touchmove", ne), S.addEventListener("touchend", xe);
6781
6781
  }
6782
6782
  function Sd(e, { handle: t, connectionMode: n, fromNodeId: r, fromHandleId: o, fromType: i, doc: s, lib: a, flowId: l, isValidConnection: u = Ed, nodeLookup: c }) {
6783
6783
  const g = i === "target", f = t ? s.querySelector(`.${a}-flow__handle[data-id="${l}-${t == null ? void 0 : t.nodeId}-${t == null ? void 0 : t.id}-${t == null ? void 0 : t.type}"]`) : null, { x: h, y: v } = jn(e), y = s.elementFromPoint(h, v), C = y != null && y.classList.contains(`${a}-flow__handle`) ? y : f, b = {
@@ -6974,7 +6974,7 @@ function zp({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
6974
6974
  }
6975
6975
  function b({ noWheelClassName: F, noPanClassName: Y, onPaneContextMenu: k, userSelectionActive: $, panOnScroll: P, panOnDrag: T, panOnScrollMode: M, panOnScrollSpeed: H, preventScrolling: B, zoomOnPinch: W, zoomOnScroll: J, zoomOnDoubleClick: q, zoomActivationKeyPressed: G, lib: X, onTransformChange: re }) {
6976
6976
  $ && !c.isZoomingOrPanning && p();
6977
- const we = P && !G && !$ ? Vp({
6977
+ const xe = P && !G && !$ ? Vp({
6978
6978
  zoomPanValues: c,
6979
6979
  noWheelClassName: F,
6980
6980
  d3Selection: h,
@@ -6990,21 +6990,21 @@ function zp({ domNode: e, minZoom: t, maxZoom: n, paneClickDistance: r, translat
6990
6990
  preventScrolling: B,
6991
6991
  d3ZoomHandler: v
6992
6992
  });
6993
- if (h.on("wheel.zoom", we, { passive: !1 }), !$) {
6993
+ if (h.on("wheel.zoom", xe, { passive: !1 }), !$) {
6994
6994
  const Ae = Ap({
6995
6995
  zoomPanValues: c,
6996
6996
  onDraggingChange: u,
6997
6997
  onPanZoomStart: a
6998
6998
  });
6999
6999
  f.on("start", Ae);
7000
- const _e = Lp({
7000
+ const we = Lp({
7001
7001
  zoomPanValues: c,
7002
7002
  panOnDrag: T,
7003
7003
  onPaneContextMenu: !!k,
7004
7004
  onPanZoom: s,
7005
7005
  onTransformChange: re
7006
7006
  });
7007
- f.on("zoom", _e);
7007
+ f.on("zoom", we);
7008
7008
  const be = Op({
7009
7009
  zoomPanValues: c,
7010
7010
  panOnDrag: T,
@@ -7091,16 +7091,16 @@ var xu;
7091
7091
  var Rp = /* @__PURE__ */ se('<div role="button" tabindex="-1"><!></div>');
7092
7092
  function fr(e, t) {
7093
7093
  ge(t, !1);
7094
- const [n, r] = ut(), o = () => ie(q, "$connectable", n), i = () => ie(we, "$connectionRadius", n), s = () => ie(re, "$domNode", n), a = () => ie(ne, "$nodeLookup", n), l = () => ie(X, "$connectionMode", n), u = () => ie(_e, "$lib", n), c = () => ie(ve, "$autoPanOnConnect", n), g = () => ie(ze, "$flowId", n), f = () => ie(Ae, "$isValidConnectionStore", n), h = () => ie(ce, "$onedgecreate", n), v = () => ie(Be, "$onConnectAction", n), y = () => ie(Le, "$onConnectStartAction", n), C = () => ie(xe, "$onConnectEndAction", n), b = () => ie(Pe, "$viewport", n), p = () => ie(qe, "$connection", n), x = () => ie(pe, "$edges", n), m = () => ie(ae, "$connectionLookup", n), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue(), O = /* @__PURE__ */ ue(), D = /* @__PURE__ */ ue(), R = /* @__PURE__ */ ue(), F = /* @__PURE__ */ ue();
7094
+ const [n, r] = ut(), o = () => ie(q, "$connectable", n), i = () => ie(xe, "$connectionRadius", n), s = () => ie(re, "$domNode", n), a = () => ie(ne, "$nodeLookup", n), l = () => ie(X, "$connectionMode", n), u = () => ie(we, "$lib", n), c = () => ie(ve, "$autoPanOnConnect", n), g = () => ie(ze, "$flowId", n), f = () => ie(Ae, "$isValidConnectionStore", n), h = () => ie(ce, "$onedgecreate", n), v = () => ie(Be, "$onConnectAction", n), y = () => ie(Le, "$onConnectStartAction", n), C = () => ie(_e, "$onConnectEndAction", n), b = () => ie(Pe, "$viewport", n), p = () => ie(qe, "$connection", n), x = () => ie(pe, "$edges", n), m = () => ie(ae, "$connectionLookup", n), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue(), O = /* @__PURE__ */ ue(), D = /* @__PURE__ */ ue(), R = /* @__PURE__ */ ue(), F = /* @__PURE__ */ ue();
7095
7095
  let Y = _(t, "id", 12, void 0), k = _(t, "type", 12, "source"), $ = _(t, "position", 28, () => Me.Top), P = _(t, "style", 12, void 0), T = _(t, "isValidConnection", 12, void 0), M = _(t, "onconnect", 12, void 0), H = _(t, "ondisconnect", 12, void 0), B = _(t, "isConnectable", 12, void 0), W = _(t, "class", 12, void 0);
7096
7096
  const J = Pr("svelteflow__node_id"), q = Pr("svelteflow__node_connectable"), G = ot(), {
7097
7097
  connectionMode: X,
7098
7098
  domNode: re,
7099
7099
  nodeLookup: ne,
7100
- connectionRadius: we,
7100
+ connectionRadius: xe,
7101
7101
  viewport: Pe,
7102
7102
  isValidConnection: Ae,
7103
- lib: _e,
7103
+ lib: we,
7104
7104
  addEdge: be,
7105
7105
  onedgecreate: ce,
7106
7106
  panBy: Q,
@@ -7111,7 +7111,7 @@ function fr(e, t) {
7111
7111
  connectionLookup: ae,
7112
7112
  onconnect: Be,
7113
7113
  onconnectstart: Le,
7114
- onconnectend: xe,
7114
+ onconnectend: _e,
7115
7115
  flowId: ze,
7116
7116
  connection: qe
7117
7117
  } = G;
@@ -8914,10 +8914,10 @@ function Yd(e, t) {
8914
8914
  y: Q.y < Z ? Q.y : Z,
8915
8915
  width: Math.abs(Q.x - le),
8916
8916
  height: Math.abs(Q.y - Z)
8917
- }, pe = B.map((xe) => xe.id), ae = _a(B, c()).map((xe) => xe.id);
8917
+ }, pe = B.map((_e) => _e.id), ae = _a(B, c()).map((_e) => _e.id);
8918
8918
  B = dd(g(), ve, [f().x, f().y, f().zoom], h() === Ui.Partial, !0);
8919
- const Be = _a(B, c()).map((xe) => xe.id), Le = B.map((xe) => xe.id);
8920
- (pe.length !== Le.length || Le.some((xe) => !pe.includes(xe))) && E.update((xe) => xe.map($u(Le))), (ae.length !== Be.length || Be.some((xe) => !ae.includes(xe))) && S.update((xe) => xe.map($u(Be))), F.set("user"), R.set(ve);
8919
+ const Be = _a(B, c()).map((_e) => _e.id), Le = B.map((_e) => _e.id);
8920
+ (pe.length !== Le.length || Le.some((_e) => !pe.includes(_e))) && E.update((_e) => _e.map($u(Le))), (ae.length !== Be.length || Be.some((_e) => !ae.includes(_e))) && S.update((_e) => _e.map($u(Be))), F.set("user"), R.set(ve);
8921
8921
  }
8922
8922
  function X(ce) {
8923
8923
  var Q, le;
@@ -8944,10 +8944,10 @@ function Yd(e, t) {
8944
8944
  oe(b, a() && (d(C) || l() === "user"));
8945
8945
  }
8946
8946
  ), Mt(), Fe();
8947
- var ne = im(), we = /* @__PURE__ */ $e(() => d(b) ? void 0 : Cu(J, d(M))), Pe = /* @__PURE__ */ $e(() => Cu(re, d(M)));
8947
+ var ne = im(), xe = /* @__PURE__ */ $e(() => d(b) ? void 0 : Cu(J, d(M))), Pe = /* @__PURE__ */ $e(() => Cu(re, d(M)));
8948
8948
  let Ae;
8949
- var _e = z(ne);
8950
- Dt(_e, t, "default", {}), I(ne), wn(ne, (ce) => oe(M, ce), () => d(M)), He((ce) => Ae = Tt(ne, 1, "svelte-flow__pane svelte-1esy7hx", null, Ae, ce), [
8949
+ var we = z(ne);
8950
+ Dt(we, t, "default", {}), I(ne), wn(ne, (ce) => oe(M, ce), () => d(M)), He((ce) => Ae = Tt(ne, 1, "svelte-flow__pane svelte-1esy7hx", null, Ae, ce), [
8951
8951
  () => ({
8952
8952
  draggable: p() === !0 || Array.isArray(p()) && p().includes(0),
8953
8953
  dragging: v(),
@@ -8955,7 +8955,7 @@ function Yd(e, t) {
8955
8955
  })
8956
8956
  ]), dt("click", ne, function(...ce) {
8957
8957
  var Q;
8958
- (Q = d(we)) == null || Q.apply(this, ce);
8958
+ (Q = d(xe)) == null || Q.apply(this, ce);
8959
8959
  }), dt("pointerdown", ne, function(...ce) {
8960
8960
  var Q;
8961
8961
  (Q = d(b) ? q : void 0) == null || Q.apply(this, ce);
@@ -9071,10 +9071,10 @@ function Xd(e, t) {
9071
9071
  let f = _(t, "node", 13), h = _(t, "id", 13), v = _(t, "data", 29, () => ({})), y = _(t, "selected", 13, !1), C = _(t, "draggable", 13, void 0), b = _(t, "selectable", 13, void 0), p = _(t, "connectable", 13, !0), x = _(t, "deletable", 13, !0), m = _(t, "hidden", 13, !1), E = _(t, "dragging", 13, !1), N = _(t, "resizeObserver", 13, null), S = _(t, "style", 13, void 0), L = _(t, "type", 13, "default"), O = _(t, "isParent", 13, !1), D = _(t, "positionX", 13), R = _(t, "positionY", 13), F = _(t, "sourcePosition", 13, void 0), Y = _(t, "targetPosition", 13, void 0), k = _(t, "zIndex", 13), $ = _(t, "measuredWidth", 13, void 0), P = _(t, "measuredHeight", 13, void 0), T = _(t, "initialWidth", 13, void 0), M = _(t, "initialHeight", 13, void 0), H = _(t, "width", 13, void 0), B = _(t, "height", 13, void 0), W = _(t, "dragHandle", 13, void 0), J = _(t, "initialized", 13, !1), q = _(t, "parentId", 13, void 0), G = _(t, "nodeClickDistance", 13, void 0), X = _(t, "class", 13, "");
9072
9072
  const re = ot(), {
9073
9073
  nodeTypes: ne,
9074
- nodeDragThreshold: we,
9074
+ nodeDragThreshold: xe,
9075
9075
  selectNodesOnDrag: Pe,
9076
9076
  handleNodeSelection: Ae,
9077
- updateNodeInternals: _e,
9077
+ updateNodeInternals: we,
9078
9078
  elementsSelectable: be,
9079
9079
  nodesDraggable: ce
9080
9080
  } = re;
@@ -9086,7 +9086,7 @@ function Xd(e, t) {
9086
9086
  d(le) && ((U = N()) == null || U.unobserve(d(le)));
9087
9087
  });
9088
9088
  function Le(U) {
9089
- b() && (!te(Pe) || !C() || te(we) > 0) && Ae(h()), Z("nodeclick", { node: f().internals.userNode, event: U });
9089
+ b() && (!te(Pe) || !C() || te(xe) > 0) && Ae(h()), Z("nodeclick", { node: f().internals.userNode, event: U });
9090
9090
  }
9091
9091
  me(() => j(L()), () => {
9092
9092
  oe(l, L() || "default");
@@ -9116,7 +9116,7 @@ function Xd(e, t) {
9116
9116
  }), me(
9117
9117
  () => (d(pe), d(l), d(ae), j(F()), d(Be), j(Y()), j(h()), d(Q)),
9118
9118
  () => {
9119
- (d(pe) && d(l) !== d(pe) || d(ae) && F() !== d(ae) || d(Be) && Y() !== d(Be)) && requestAnimationFrame(() => _e(/* @__PURE__ */ new Map([
9119
+ (d(pe) && d(l) !== d(pe) || d(ae) && F() !== d(ae) || d(Be) && Y() !== d(Be)) && requestAnimationFrame(() => we(/* @__PURE__ */ new Map([
9120
9120
  [h(), { id: h(), nodeElement: d(Q), force: !0 }]
9121
9121
  ]))), oe(pe, d(l)), oe(ae, F()), oe(Be, Y());
9122
9122
  }
@@ -9126,7 +9126,7 @@ function Xd(e, t) {
9126
9126
  N() && (d(Q) !== d(le) || !J()) && (d(le) && N().unobserve(d(le)), d(Q) && N().observe(d(Q)), oe(le, d(Q)));
9127
9127
  }
9128
9128
  ), Mt(), Fe(!0);
9129
- var xe = Xe(), ze = fe(xe);
9129
+ var _e = Xe(), ze = fe(_e);
9130
9130
  {
9131
9131
  var qe = (U) => {
9132
9132
  var Ke = cm();
@@ -9247,7 +9247,7 @@ function Xd(e, t) {
9247
9247
  m() || U(qe);
9248
9248
  });
9249
9249
  }
9250
- V(e, xe);
9250
+ V(e, _e);
9251
9251
  var it = he({
9252
9252
  get node() {
9253
9253
  return f();
@@ -9637,14 +9637,14 @@ function Wd(e, t) {
9637
9637
  const [n, r] = ut(), o = () => ie(X, "$edgeTypes", n), i = () => ie(re, "$flowId", n), s = () => ie(ne, "$elementsSelectable", n), a = () => ie(G, "$edgeLookup", n), l = /* @__PURE__ */ ue(void 0, !0), u = /* @__PURE__ */ ue(void 0, !0), c = /* @__PURE__ */ ue(void 0, !0), g = /* @__PURE__ */ ue(void 0, !0), f = /* @__PURE__ */ ue(void 0, !0);
9638
9638
  let h = _(t, "id", 13), v = _(t, "type", 13, "default"), y = _(t, "source", 13, ""), C = _(t, "target", 13, ""), b = _(t, "data", 29, () => ({})), p = _(t, "style", 13, void 0), x = _(t, "zIndex", 13, void 0), m = _(t, "animated", 13, !1), E = _(t, "selected", 13, !1), N = _(t, "selectable", 13, void 0), S = _(t, "deletable", 13, void 0), L = _(t, "hidden", 13, !1), O = _(t, "label", 13, void 0), D = _(t, "labelStyle", 13, void 0), R = _(t, "markerStart", 13, void 0), F = _(t, "markerEnd", 13, void 0), Y = _(t, "sourceHandle", 13, void 0), k = _(t, "targetHandle", 13, void 0), $ = _(t, "sourceX", 13), P = _(t, "sourceY", 13), T = _(t, "targetX", 13), M = _(t, "targetY", 13), H = _(t, "sourcePosition", 13), B = _(t, "targetPosition", 13), W = _(t, "ariaLabel", 13, void 0), J = _(t, "interactionWidth", 13, void 0), q = _(t, "class", 13, "");
9639
9639
  lo("svelteflow__edge_id", h());
9640
- const { edgeLookup: G, edgeTypes: X, flowId: re, elementsSelectable: ne } = ot(), we = ys(), Pe = Dd();
9640
+ const { edgeLookup: G, edgeTypes: X, flowId: re, elementsSelectable: ne } = ot(), xe = ys(), Pe = Dd();
9641
9641
  function Ae(Z) {
9642
9642
  const ve = a().get(h());
9643
- ve && (Pe(h()), we("edgeclick", { event: Z, edge: ve }));
9643
+ ve && (Pe(h()), xe("edgeclick", { event: Z, edge: ve }));
9644
9644
  }
9645
- function _e(Z, ve) {
9645
+ function we(Z, ve) {
9646
9646
  const pe = a().get(h());
9647
- pe && we(ve, { event: Z, edge: pe });
9647
+ pe && xe(ve, { event: Z, edge: pe });
9648
9648
  }
9649
9649
  me(() => j(v()), () => {
9650
9650
  oe(l, v() || "default");
@@ -9666,7 +9666,7 @@ function Wd(e, t) {
9666
9666
  let Be;
9667
9667
  var Le = z(ae);
9668
9668
  {
9669
- let xe = /* @__PURE__ */ Ve(() => S() ?? !0);
9669
+ let _e = /* @__PURE__ */ Ve(() => S() ?? !0);
9670
9670
  Pc(Le, () => d(u), (ze, qe) => {
9671
9671
  qe(ze, {
9672
9672
  get id() {
@@ -9721,7 +9721,7 @@ function Wd(e, t) {
9721
9721
  return d(f);
9722
9722
  },
9723
9723
  get deletable() {
9724
- return d(xe);
9724
+ return d(_e);
9725
9725
  },
9726
9726
  get type() {
9727
9727
  return d(l);
@@ -9742,8 +9742,8 @@ function Wd(e, t) {
9742
9742
  });
9743
9743
  }
9744
9744
  I(ae), I(ve), He(
9745
- (xe, ze, qe) => {
9746
- pe = pt(ve, "", pe, xe), Be = Tt(ae, 0, ze, null, Be, qe), Ce(ae, "data-id", h()), Ce(ae, "aria-label", W() === null ? void 0 : W() ? W() : `Edge from ${y()} to ${C()}`);
9745
+ (_e, ze, qe) => {
9746
+ pe = pt(ve, "", pe, _e), Be = Tt(ae, 0, ze, null, Be, qe), Ce(ae, "data-id", h()), Ce(ae, "aria-label", W() === null ? void 0 : W() ? W() : `Edge from ${y()} to ${C()}`);
9747
9747
  },
9748
9748
  [
9749
9749
  () => ({ "z-index": x() }),
@@ -9754,12 +9754,12 @@ function Wd(e, t) {
9754
9754
  selectable: d(f)
9755
9755
  })
9756
9756
  ]
9757
- ), dt("click", ae, Ae), dt("contextmenu", ae, (xe) => {
9758
- _e(xe, "edgecontextmenu");
9759
- }), dt("mouseenter", ae, (xe) => {
9760
- _e(xe, "edgemouseenter");
9761
- }), dt("mouseleave", ae, (xe) => {
9762
- _e(xe, "edgemouseleave");
9757
+ ), dt("click", ae, Ae), dt("contextmenu", ae, (_e) => {
9758
+ we(_e, "edgecontextmenu");
9759
+ }), dt("mouseenter", ae, (_e) => {
9760
+ we(_e, "edgemouseenter");
9761
+ }), dt("mouseleave", ae, (_e) => {
9762
+ we(_e, "edgemouseleave");
9763
9763
  }), V(Z, ve);
9764
9764
  };
9765
9765
  ye(ce, (Z) => {
@@ -10843,7 +10843,7 @@ function rf(e, t) {
10843
10843
  ]);
10844
10844
  ge(t, !1), rt(e, Vm);
10845
10845
  const [i, s] = ut(), a = () => ie(x(), "$viewport", i), l = () => ie(Vs, "$initialized", i), u = () => ie(d(c), "$colorModeClass", i), c = /* @__PURE__ */ ue();
10846
- let g = _(t, "id", 12, "1"), f = _(t, "nodes", 12), h = _(t, "edges", 12), v = _(t, "fitView", 12, void 0), y = _(t, "fitViewOptions", 12, void 0), C = _(t, "minZoom", 12, void 0), b = _(t, "maxZoom", 12, void 0), p = _(t, "initialViewport", 12, void 0), x = _(t, "viewport", 12, void 0), m = _(t, "nodeTypes", 12, void 0), E = _(t, "edgeTypes", 12, void 0), N = _(t, "selectionKey", 12, void 0), S = _(t, "selectionMode", 12, void 0), L = _(t, "panActivationKey", 12, void 0), O = _(t, "multiSelectionKey", 12, void 0), D = _(t, "zoomActivationKey", 12, void 0), R = _(t, "nodesDraggable", 12, void 0), F = _(t, "nodesConnectable", 12, void 0), Y = _(t, "nodeDragThreshold", 12, void 0), k = _(t, "elementsSelectable", 12, void 0), $ = _(t, "snapGrid", 12, void 0), P = _(t, "deleteKey", 12, void 0), T = _(t, "connectionRadius", 12, void 0), M = _(t, "connectionLineType", 12, void 0), H = _(t, "connectionMode", 28, () => Mr.Strict), B = _(t, "connectionLineStyle", 12, ""), W = _(t, "connectionLineContainerStyle", 12, ""), J = _(t, "onMoveStart", 12, void 0), q = _(t, "onMove", 12, void 0), G = _(t, "onMoveEnd", 12, void 0), X = _(t, "isValidConnection", 12, void 0), re = _(t, "translateExtent", 12, void 0), ne = _(t, "nodeExtent", 12, void 0), we = _(t, "onlyRenderVisibleElements", 12, void 0), Pe = _(t, "panOnScrollMode", 28, () => Yn.Free), Ae = _(t, "preventScrolling", 12, !0), _e = _(t, "zoomOnScroll", 12, !0), be = _(t, "zoomOnDoubleClick", 12, !0), ce = _(t, "zoomOnPinch", 12, !0), Q = _(t, "panOnScroll", 12, !1), le = _(t, "panOnDrag", 12, !0), Z = _(t, "selectionOnDrag", 12, void 0), ve = _(t, "autoPanOnConnect", 12, !0), pe = _(t, "autoPanOnNodeDrag", 12, !0), ae = _(t, "onerror", 12, void 0), Be = _(t, "ondelete", 12, void 0), Le = _(t, "onedgecreate", 12, void 0), xe = _(t, "attributionPosition", 12, void 0), ze = _(t, "proOptions", 12, void 0), qe = _(t, "defaultEdgeOptions", 12, void 0), it = _(t, "width", 12, void 0), U = _(t, "height", 12, void 0), Ke = _(t, "colorMode", 12, "light"), Je = _(t, "onconnect", 12, void 0), ft = _(t, "onconnectstart", 12, void 0), Ut = _(t, "onconnectend", 12, void 0), et = _(t, "onbeforedelete", 12, void 0), Se = _(t, "oninit", 12, void 0), je = _(t, "nodeOrigin", 12, void 0), Oe = _(t, "paneClickDistance", 12, 0), St = _(t, "nodeClickDistance", 12, 0), wt = _(t, "defaultMarkerColor", 12, "#b1b1b7"), Eo = _(t, "style", 12, void 0), pr = _(t, "class", 12, void 0), So = /* @__PURE__ */ ue(), Pt = /* @__PURE__ */ ue(), Lt = /* @__PURE__ */ ue();
10846
+ let g = _(t, "id", 12, "1"), f = _(t, "nodes", 12), h = _(t, "edges", 12), v = _(t, "fitView", 12, void 0), y = _(t, "fitViewOptions", 12, void 0), C = _(t, "minZoom", 12, void 0), b = _(t, "maxZoom", 12, void 0), p = _(t, "initialViewport", 12, void 0), x = _(t, "viewport", 12, void 0), m = _(t, "nodeTypes", 12, void 0), E = _(t, "edgeTypes", 12, void 0), N = _(t, "selectionKey", 12, void 0), S = _(t, "selectionMode", 12, void 0), L = _(t, "panActivationKey", 12, void 0), O = _(t, "multiSelectionKey", 12, void 0), D = _(t, "zoomActivationKey", 12, void 0), R = _(t, "nodesDraggable", 12, void 0), F = _(t, "nodesConnectable", 12, void 0), Y = _(t, "nodeDragThreshold", 12, void 0), k = _(t, "elementsSelectable", 12, void 0), $ = _(t, "snapGrid", 12, void 0), P = _(t, "deleteKey", 12, void 0), T = _(t, "connectionRadius", 12, void 0), M = _(t, "connectionLineType", 12, void 0), H = _(t, "connectionMode", 28, () => Mr.Strict), B = _(t, "connectionLineStyle", 12, ""), W = _(t, "connectionLineContainerStyle", 12, ""), J = _(t, "onMoveStart", 12, void 0), q = _(t, "onMove", 12, void 0), G = _(t, "onMoveEnd", 12, void 0), X = _(t, "isValidConnection", 12, void 0), re = _(t, "translateExtent", 12, void 0), ne = _(t, "nodeExtent", 12, void 0), xe = _(t, "onlyRenderVisibleElements", 12, void 0), Pe = _(t, "panOnScrollMode", 28, () => Yn.Free), Ae = _(t, "preventScrolling", 12, !0), we = _(t, "zoomOnScroll", 12, !0), be = _(t, "zoomOnDoubleClick", 12, !0), ce = _(t, "zoomOnPinch", 12, !0), Q = _(t, "panOnScroll", 12, !1), le = _(t, "panOnDrag", 12, !0), Z = _(t, "selectionOnDrag", 12, void 0), ve = _(t, "autoPanOnConnect", 12, !0), pe = _(t, "autoPanOnNodeDrag", 12, !0), ae = _(t, "onerror", 12, void 0), Be = _(t, "ondelete", 12, void 0), Le = _(t, "onedgecreate", 12, void 0), _e = _(t, "attributionPosition", 12, void 0), ze = _(t, "proOptions", 12, void 0), qe = _(t, "defaultEdgeOptions", 12, void 0), it = _(t, "width", 12, void 0), U = _(t, "height", 12, void 0), Ke = _(t, "colorMode", 12, "light"), Je = _(t, "onconnect", 12, void 0), ft = _(t, "onconnectstart", 12, void 0), Ut = _(t, "onconnectend", 12, void 0), et = _(t, "onbeforedelete", 12, void 0), Se = _(t, "oninit", 12, void 0), je = _(t, "nodeOrigin", 12, void 0), Oe = _(t, "paneClickDistance", 12, 0), St = _(t, "nodeClickDistance", 12, 0), wt = _(t, "defaultMarkerColor", 12, "#b1b1b7"), Eo = _(t, "style", 12, void 0), pr = _(t, "class", 12, void 0), So = /* @__PURE__ */ ue(), Pt = /* @__PURE__ */ ue(), Lt = /* @__PURE__ */ ue();
10847
10847
  const Br = a() || p(), Qe = ig(Ps) ? ot() : nm({
10848
10848
  nodes: te(f()),
10849
10849
  edges: te(h()),
@@ -10874,7 +10874,7 @@ function rf(e, t) {
10874
10874
  !d(Po) && l() && ((K = Se()) == null || K(), oe(Po, !0));
10875
10875
  }
10876
10876
  ), me(
10877
- () => (j(g()), j(M()), j(T()), j(S()), j($()), j(wt()), j(R()), j(F()), j(k()), j(we()), j(X()), j(ve()), j(pe()), j(ae()), j(Be()), j(Le()), j(H()), j(Y()), j(Je()), j(ft()), j(Ut()), j(et()), j(je()), Eu),
10877
+ () => (j(g()), j(M()), j(T()), j(S()), j($()), j(wt()), j(R()), j(F()), j(k()), j(xe()), j(X()), j(ve()), j(pe()), j(ae()), j(Be()), j(Le()), j(H()), j(Y()), j(Je()), j(ft()), j(Ut()), j(et()), j(je()), Eu),
10878
10878
  () => {
10879
10879
  const K = {
10880
10880
  flowId: g(),
@@ -10886,7 +10886,7 @@ function rf(e, t) {
10886
10886
  nodesDraggable: R(),
10887
10887
  nodesConnectable: F(),
10888
10888
  elementsSelectable: k(),
10889
- onlyRenderVisibleElements: we(),
10889
+ onlyRenderVisibleElements: xe(),
10890
10890
  isValidConnection: X(),
10891
10891
  autoPanOnConnect: ve(),
10892
10892
  autoPanOnNodeDrag: pe(),
@@ -10954,7 +10954,7 @@ function rf(e, t) {
10954
10954
  });
10955
10955
  var _i = A(wi, 2);
10956
10956
  {
10957
- let K = /* @__PURE__ */ Ve(() => (j(Pe()), j(Yn), ee(() => Pe() === void 0 ? Yn.Free : Pe()))), r1 = /* @__PURE__ */ Ve(() => Ae() === void 0 ? !0 : Ae()), o1 = /* @__PURE__ */ Ve(() => _e() === void 0 ? !0 : _e()), i1 = /* @__PURE__ */ Ve(() => be() === void 0 ? !0 : be()), s1 = /* @__PURE__ */ Ve(() => ce() === void 0 ? !0 : ce()), a1 = /* @__PURE__ */ Ve(() => Q() === void 0 ? !1 : Q()), l1 = /* @__PURE__ */ Ve(() => le() === void 0 ? !0 : le()), u1 = /* @__PURE__ */ Ve(() => Oe() === void 0 ? 0 : Oe());
10957
+ let K = /* @__PURE__ */ Ve(() => (j(Pe()), j(Yn), ee(() => Pe() === void 0 ? Yn.Free : Pe()))), r1 = /* @__PURE__ */ Ve(() => Ae() === void 0 ? !0 : Ae()), o1 = /* @__PURE__ */ Ve(() => we() === void 0 ? !0 : we()), i1 = /* @__PURE__ */ Ve(() => be() === void 0 ? !0 : be()), s1 = /* @__PURE__ */ Ve(() => ce() === void 0 ? !0 : ce()), a1 = /* @__PURE__ */ Ve(() => Q() === void 0 ? !1 : Q()), l1 = /* @__PURE__ */ Ve(() => le() === void 0 ? !0 : le()), u1 = /* @__PURE__ */ Ve(() => Oe() === void 0 ? 0 : Oe());
10958
10958
  Fd(_i, {
10959
10959
  get initialViewport() {
10960
10960
  return Br;
@@ -11121,7 +11121,7 @@ function rf(e, t) {
11121
11121
  return ze();
11122
11122
  },
11123
11123
  get position() {
11124
- return xe();
11124
+ return _e();
11125
11125
  }
11126
11126
  });
11127
11127
  var Ds = A(xi, 2);
@@ -11330,10 +11330,10 @@ function rf(e, t) {
11330
11330
  ne(K), w();
11331
11331
  },
11332
11332
  get onlyRenderVisibleElements() {
11333
- return we();
11333
+ return xe();
11334
11334
  },
11335
11335
  set onlyRenderVisibleElements(K) {
11336
- we(K), w();
11336
+ xe(K), w();
11337
11337
  },
11338
11338
  get panOnScrollMode() {
11339
11339
  return Pe();
@@ -11348,10 +11348,10 @@ function rf(e, t) {
11348
11348
  Ae(K), w();
11349
11349
  },
11350
11350
  get zoomOnScroll() {
11351
- return _e();
11351
+ return we();
11352
11352
  },
11353
11353
  set zoomOnScroll(K) {
11354
- _e(K), w();
11354
+ we(K), w();
11355
11355
  },
11356
11356
  get zoomOnDoubleClick() {
11357
11357
  return be();
@@ -11414,10 +11414,10 @@ function rf(e, t) {
11414
11414
  Le(K), w();
11415
11415
  },
11416
11416
  get attributionPosition() {
11417
- return xe();
11417
+ return _e();
11418
11418
  },
11419
11419
  set attributionPosition(K) {
11420
- xe(K), w();
11420
+ _e(K), w();
11421
11421
  },
11422
11422
  get proOptions() {
11423
11423
  return ze();
@@ -11815,7 +11815,7 @@ function df(e, t) {
11815
11815
  "svelte-flow__controls",
11816
11816
  d(h),
11817
11817
  R()
11818
- ])))), we = /* @__PURE__ */ Ve(() => S() ?? "Svelte Flow controls");
11818
+ ])))), xe = /* @__PURE__ */ Ve(() => S() ?? "Svelte Flow controls");
11819
11819
  vi(e, {
11820
11820
  get class() {
11821
11821
  return d(ne);
@@ -11825,18 +11825,18 @@ function df(e, t) {
11825
11825
  },
11826
11826
  "data-testid": "svelte-flow__controls",
11827
11827
  get "aria-label"() {
11828
- return d(we);
11828
+ return d(xe);
11829
11829
  },
11830
11830
  get style() {
11831
11831
  return L();
11832
11832
  },
11833
11833
  children: (Pe, Ae) => {
11834
- var _e = Bm(), be = fe(_e);
11834
+ var we = Bm(), be = fe(we);
11835
11835
  Dt(be, t, "before", {});
11836
11836
  var ce = A(be, 2);
11837
11837
  {
11838
11838
  var Q = (Le) => {
11839
- var xe = Rm(), ze = fe(xe);
11839
+ var _e = Rm(), ze = fe(_e);
11840
11840
  Oo(ze, gt(
11841
11841
  {
11842
11842
  class: "svelte-flow__controls-zoomin",
@@ -11873,7 +11873,7 @@ function df(e, t) {
11873
11873
  },
11874
11874
  $$slots: { default: !0 }
11875
11875
  }
11876
- )), V(Le, xe);
11876
+ )), V(Le, _e);
11877
11877
  };
11878
11878
  ye(ce, (Le) => {
11879
11879
  y() && Le(Q);
@@ -11891,8 +11891,8 @@ function df(e, t) {
11891
11891
  () => W,
11892
11892
  {
11893
11893
  $$events: { click: G },
11894
- children: (xe, ze) => {
11895
- lf(xe);
11894
+ children: (_e, ze) => {
11895
+ lf(_e);
11896
11896
  },
11897
11897
  $$slots: { default: !0 }
11898
11898
  }
@@ -11914,7 +11914,7 @@ function df(e, t) {
11914
11914
  () => W,
11915
11915
  {
11916
11916
  $$events: { click: X },
11917
- children: (xe, ze) => {
11917
+ children: (_e, ze) => {
11918
11918
  var qe = Xe(), it = fe(qe);
11919
11919
  {
11920
11920
  var U = (Je) => {
@@ -11926,7 +11926,7 @@ function df(e, t) {
11926
11926
  d(c) ? Je(U) : Je(Ke, !1);
11927
11927
  });
11928
11928
  }
11929
- V(xe, qe);
11929
+ V(_e, qe);
11930
11930
  },
11931
11931
  $$slots: { default: !0 }
11932
11932
  }
@@ -11939,7 +11939,7 @@ function df(e, t) {
11939
11939
  var ae = A(ve, 2);
11940
11940
  Dt(ae, t, "default", {});
11941
11941
  var Be = A(ae, 2);
11942
- Dt(Be, t, "after", {}), V(Pe, _e);
11942
+ Dt(Be, t, "after", {}), V(Pe, we);
11943
11943
  },
11944
11944
  $$slots: { default: !0 }
11945
11945
  });
@@ -12420,11 +12420,11 @@ const Gs = (e) => e instanceof Function ? e : () => e;
12420
12420
  var qm = /* @__PURE__ */ Ee("<title> </title>"), Km = /* @__PURE__ */ Ee('<svg class="svelte-flow__minimap-svg" role="img"><!><!><path class="svelte-flow__minimap-mask" fill-rule="evenodd" pointer-events="none"></path></svg>');
12421
12421
  function pf(e, t) {
12422
12422
  ge(t, !1);
12423
- const [n, r] = ut(), o = () => ie(le, "$flowId", n), i = () => ie(be, "$viewport", n), s = () => ie(ce, "$containerWidth", n), a = () => ie(Q, "$containerHeight", n), l = () => ie(_e, "$nodeLookup", n), u = () => ie(Ae, "$nodes", n), c = () => ie(Z, "$panZoom", n), g = () => ie(ve, "$translateExtent", n), f = /* @__PURE__ */ ue(), h = /* @__PURE__ */ ue(), v = /* @__PURE__ */ ue(), y = /* @__PURE__ */ ue(), C = /* @__PURE__ */ ue(), b = /* @__PURE__ */ ue(), p = /* @__PURE__ */ ue(), x = /* @__PURE__ */ ue(), m = /* @__PURE__ */ ue(), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue();
12423
+ const [n, r] = ut(), o = () => ie(le, "$flowId", n), i = () => ie(be, "$viewport", n), s = () => ie(ce, "$containerWidth", n), a = () => ie(Q, "$containerHeight", n), l = () => ie(we, "$nodeLookup", n), u = () => ie(Ae, "$nodes", n), c = () => ie(Z, "$panZoom", n), g = () => ie(ve, "$translateExtent", n), f = /* @__PURE__ */ ue(), h = /* @__PURE__ */ ue(), v = /* @__PURE__ */ ue(), y = /* @__PURE__ */ ue(), C = /* @__PURE__ */ ue(), b = /* @__PURE__ */ ue(), p = /* @__PURE__ */ ue(), x = /* @__PURE__ */ ue(), m = /* @__PURE__ */ ue(), E = /* @__PURE__ */ ue(), N = /* @__PURE__ */ ue(), S = /* @__PURE__ */ ue(), L = /* @__PURE__ */ ue();
12424
12424
  let O = _(t, "position", 12, "bottom-right"), D = _(t, "ariaLabel", 12, "Mini map"), R = _(t, "nodeStrokeColor", 12, "transparent"), F = _(t, "nodeColor", 12, void 0), Y = _(t, "nodeClass", 12, ""), k = _(t, "nodeBorderRadius", 12, 5), $ = _(t, "nodeStrokeWidth", 12, 2), P = _(t, "bgColor", 12, void 0), T = _(t, "maskColor", 12, void 0), M = _(t, "maskStrokeColor", 12, void 0), H = _(t, "maskStrokeWidth", 12, void 0), B = _(t, "width", 12, void 0), W = _(t, "height", 12, void 0), J = _(t, "pannable", 12, !0), q = _(t, "zoomable", 12, !0), G = _(t, "inversePan", 12, void 0), X = _(t, "zoomStep", 12, void 0), re = _(t, "style", 12, ""), ne = _(t, "class", 12, "");
12425
- const we = 200, Pe = 150, {
12425
+ const xe = 200, Pe = 150, {
12426
12426
  nodes: Ae,
12427
- nodeLookup: _e,
12427
+ nodeLookup: we,
12428
12428
  viewport: be,
12429
12429
  width: ce,
12430
12430
  height: Q,
@@ -12434,7 +12434,7 @@ function pf(e, t) {
12434
12434
  } = ot(), pe = F() === void 0 ? void 0 : Gs(F()), ae = Gs(R()), Be = Gs(Y()), Le = (
12435
12435
  // @ts-expect-error - TS doesn't know about chrome
12436
12436
  typeof window > "u" || window.chrome ? "crispEdges" : "geometricPrecision"
12437
- ), xe = `svelte-flow__minimap-desc-${o()}`;
12437
+ ), _e = `svelte-flow__minimap-desc-${o()}`;
12438
12438
  let ze = /* @__PURE__ */ ue(d(f));
12439
12439
  const qe = () => d(b);
12440
12440
  me(() => (i(), s(), a()), () => {
@@ -12450,7 +12450,7 @@ function pf(e, t) {
12450
12450
  oe(ze, l().size > 0 ? vd(fi(l(), { filter: (U) => !U.hidden }), d(f)) : d(f)), u();
12451
12451
  }
12452
12452
  ), me(() => j(B()), () => {
12453
- oe(h, B() ?? we);
12453
+ oe(h, B() ?? xe);
12454
12454
  }), me(() => j(W()), () => {
12455
12455
  oe(v, W() ?? Pe);
12456
12456
  }), me(() => (d(ze), d(h)), () => {
@@ -12498,7 +12498,7 @@ function pf(e, t) {
12498
12498
  var Eo = (Pt) => {
12499
12499
  var Lt = qm(), Br = z(Lt, !0);
12500
12500
  I(Lt), He(() => {
12501
- Ce(Lt, "id", xe), tt(Br, D());
12501
+ Ce(Lt, "id", _e), tt(Br, D());
12502
12502
  }), V(Pt, Lt);
12503
12503
  };
12504
12504
  ye(wt, (Pt) => {
@@ -12571,7 +12571,7 @@ function pf(e, t) {
12571
12571
  zoomable: q()
12572
12572
  })), He(
12573
12573
  (Pt) => {
12574
- Ce(Oe, "width", d(h)), Ce(Oe, "height", d(v)), Ce(Oe, "viewBox", `${d(E) ?? ""} ${d(N) ?? ""} ${d(S) ?? ""} ${d(L) ?? ""}`), Ce(Oe, "aria-labelledby", xe), St = pt(Oe, "", St, Pt), Ce(So, "d", `M${d(E) - d(m)},${d(N) - d(m)}h${d(S) + d(m) * 2}v${d(L) + d(m) * 2}h${-d(S) - d(m) * 2}z
12574
+ Ce(Oe, "width", d(h)), Ce(Oe, "height", d(v)), Ce(Oe, "viewBox", `${d(E) ?? ""} ${d(N) ?? ""} ${d(S) ?? ""} ${d(L) ?? ""}`), Ce(Oe, "aria-labelledby", _e), St = pt(Oe, "", St, Pt), Ce(So, "d", `M${d(E) - d(m)},${d(N) - d(m)}h${d(S) + d(m) * 2}v${d(L) + d(m) * 2}h${-d(S) - d(m) * 2}z
12575
12575
  M${d(f), ee(() => d(f).x) ?? ""},${d(f), ee(() => d(f).y) ?? ""}h${d(f), ee(() => d(f).width) ?? ""}v${d(f), ee(() => d(f).height) ?? ""}h${d(f), ee(() => -d(f).width) ?? ""}z`);
12576
12576
  },
12577
12577
  [
@@ -14998,8 +14998,8 @@ function hn(e, t) {
14998
14998
  children: (B, W) => {
14999
14999
  var J = Lw(), q = z(J);
15000
15000
  {
15001
- var G = (_e) => {
15002
- Ue(_e, {
15001
+ var G = (we) => {
15002
+ Ue(we, {
15003
15003
  class: "tf-node-toolbar-item",
15004
15004
  onclick: () => {
15005
15005
  x(r());
@@ -15011,14 +15011,14 @@ function hn(e, t) {
15011
15011
  $$slots: { default: !0 }
15012
15012
  });
15013
15013
  };
15014
- ye(q, (_e) => {
15015
- u() && _e(G);
15014
+ ye(q, (we) => {
15015
+ u() && we(G);
15016
15016
  });
15017
15017
  }
15018
15018
  var X = A(q, 2);
15019
15019
  {
15020
- var re = (_e) => {
15021
- Ue(_e, {
15020
+ var re = (we) => {
15021
+ Ue(we, {
15022
15022
  class: "tf-node-toolbar-item",
15023
15023
  onclick: () => {
15024
15024
  m(r());
@@ -15030,14 +15030,14 @@ function hn(e, t) {
15030
15030
  $$slots: { default: !0 }
15031
15031
  });
15032
15032
  };
15033
- ye(X, (_e) => {
15034
- l() && _e(re);
15033
+ ye(X, (we) => {
15034
+ l() && we(re);
15035
15035
  });
15036
15036
  }
15037
15037
  var ne = A(X, 2);
15038
15038
  {
15039
- var we = (_e) => {
15040
- Ue(_e, {
15039
+ var xe = (we) => {
15040
+ Ue(we, {
15041
15041
  class: "tf-node-toolbar-item",
15042
15042
  onclick: N,
15043
15043
  children: (be, ce) => {
@@ -15047,14 +15047,14 @@ function hn(e, t) {
15047
15047
  $$slots: { default: !0 }
15048
15048
  });
15049
15049
  };
15050
- ye(ne, (_e) => {
15051
- a() && _e(we);
15050
+ ye(ne, (we) => {
15051
+ a() && we(xe);
15052
15052
  });
15053
15053
  }
15054
15054
  var Pe = A(ne, 2);
15055
15055
  {
15056
- var Ae = (_e) => {
15057
- ko(_e, {
15056
+ var Ae = (we) => {
15057
+ ko(we, {
15058
15058
  placement: "bottom",
15059
15059
  floating: (ce) => {
15060
15060
  var Q = Dw(), le = z(Q), Z = A(z(le));
@@ -15100,11 +15100,11 @@ function hn(e, t) {
15100
15100
  g() && qe(Be);
15101
15101
  });
15102
15102
  }
15103
- var Le = A(ae, 2), xe = A(z(Le), 2);
15104
- dr(xe), xe.__change = [Hw, C, S];
15105
- var ze = A(xe, 4);
15103
+ var Le = A(ae, 2), _e = A(z(Le), 2);
15104
+ dr(_e), _e.__change = [Hw, C, S];
15105
+ var ze = A(_e, 4);
15106
15106
  dr(ze), ze.__change = [Vw, C, S], I(Le), I(Q), He(() => {
15107
- Il(xe, !!n().async), Il(ze, !!n().loop);
15107
+ Il(_e, !!n().async), Il(ze, !!n().loop);
15108
15108
  }), V(ce, Q);
15109
15109
  },
15110
15110
  children: (ce, Q) => {
@@ -15120,8 +15120,8 @@ function hn(e, t) {
15120
15120
  $$slots: { floating: !0, default: !0 }
15121
15121
  });
15122
15122
  };
15123
- ye(Pe, (_e) => {
15124
- c() && _e(Ae);
15123
+ ye(Pe, (we) => {
15124
+ c() && we(Ae);
15125
15125
  });
15126
15126
  }
15127
15127
  I(J), V(B, J);
@@ -15805,8 +15805,8 @@ function Bf(e, t) {
15805
15805
  onclick: x,
15806
15806
  children: (re, ne) => {
15807
15807
  Te();
15808
- var we = Ie("删除");
15809
- V(re, we);
15808
+ var xe = Ie("删除");
15809
+ V(re, xe);
15810
15810
  },
15811
15811
  $$slots: { default: !0 }
15812
15812
  }), I(G), I(T), V(P, T);
@@ -16171,8 +16171,8 @@ function Yf(e, t) {
16171
16171
  onclick: C,
16172
16172
  children: (re, ne) => {
16173
16173
  Te();
16174
- var we = Ie("删除");
16175
- V(re, we);
16174
+ var xe = Ie("删除");
16175
+ V(re, xe);
16176
16176
  },
16177
16177
  $$slots: { default: !0 }
16178
16178
  }), I(G), V(q, G);
@@ -16329,8 +16329,8 @@ function jf(e, t) {
16329
16329
  let a = /* @__PURE__ */ xt(dn([])), l = /* @__PURE__ */ xt(dn([]));
16330
16330
  Gt(async () => {
16331
16331
  var y, C, b, p;
16332
- const h = await ((C = (y = s.provider) == null ? void 0 : y.llm) == null ? void 0 : C.call(y, "0")), v = await ((p = (b = s.provider) == null ? void 0 : b.llmGroup) == null ? void 0 : p.call(b, "0"));
16333
- d(a).push(...h || []), d(l).push(...v || []), n() && (n().enableThinking = n().enableThinking !== void 0 ? n().enableThinking : !1);
16332
+ const h = await ((C = (y = s.provider) == null ? void 0 : y.llmGroup) == null ? void 0 : C.call(y, "0")), v = await ((p = (b = s.provider) == null ? void 0 : b.llm) == null ? void 0 : p.call(b, "0", n().modelGroupId));
16333
+ d(a).push(...v || []), d(l).push(...h || []), n() && (n().enableThinking = n().enableThinking !== void 0 ? n().enableThinking : !1);
16334
16334
  });
16335
16335
  const { updateNodeData: u } = Yt(), c = (h) => {
16336
16336
  u(o, () => ({ outType: h })), h === "text" ? u(o, {
@@ -16414,7 +16414,7 @@ function jf(e, t) {
16414
16414
  ae >= -2 && ae <= 2 ? u(o, { presencePenalty: ae }) : ar.warning("Presence Penalty的范围是[-2.0, 2.0]");
16415
16415
  }
16416
16416
  }), I(q), I(B), I(H);
16417
- var X = A(H, 2), re = z(X), ne = z(re), we = z(ne);
16417
+ var X = A(H, 2), re = z(X), ne = z(re), xe = z(ne);
16418
16418
  I(ne);
16419
16419
  var Pe = A(ne, 2), Ae = z(Pe);
16420
16420
  ct(Ae, {
@@ -16428,11 +16428,11 @@ function jf(e, t) {
16428
16428
  ae >= -2 && ae <= 2 ? u(o, { frequencyPenalty: ae }) : ar.warning("Frequency Penalty的范围是[-2.0, 2.0]");
16429
16429
  }
16430
16430
  }), I(Pe), I(re), I(X);
16431
- var _e = A(X, 2), be = z(_e), ce = z(be), Q = z(ce);
16431
+ var we = A(X, 2), be = z(we), ce = z(be), Q = z(ce);
16432
16432
  I(ce);
16433
16433
  var le = A(ce, 2), Z = z(le), ve = z(Z);
16434
- dr(ve), ve.__change = [x_, u, o, n], Te(2), I(Z), I(le), I(be), I(_e), He(() => {
16435
- tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(we, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16434
+ dr(ve), ve.__change = [x_, u, o, n], Te(2), I(Z), I(le), I(be), I(we), He(() => {
16435
+ tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(xe, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16436
16436
  }), Vc(ve, () => n().enableThinking, (pe) => n().enableThinking = pe), V(y, C);
16437
16437
  };
16438
16438
  hn(e, gt(
@@ -16493,7 +16493,7 @@ function jf(e, t) {
16493
16493
  placeholder: "请选择模型组",
16494
16494
  onSelect: (X) => {
16495
16495
  const re = X.value;
16496
- f(re), u(o, (ne) => ({ ...ne, modelGroupId: re, modelId: null }));
16496
+ f(re), u(o, () => ({ modelGroupId: re })), u(o, () => ({ modelId: void 0 }));
16497
16497
  },
16498
16498
  get value() {
16499
16499
  return d(G);
@@ -16513,7 +16513,10 @@ function jf(e, t) {
16513
16513
  placeholder: "请选择模型",
16514
16514
  onSelect: (X) => {
16515
16515
  const re = X.value;
16516
- u(o, () => ({ modelId: re }));
16516
+ u(o, () => ({
16517
+ // llmId: newValue,
16518
+ modelId: re
16519
+ }));
16517
16520
  },
16518
16521
  get value() {
16519
16522
  return d(G);
@@ -16667,8 +16670,8 @@ function Xf(e, t) {
16667
16670
  let a = /* @__PURE__ */ xt(dn([])), l = /* @__PURE__ */ xt(dn([]));
16668
16671
  Gt(async () => {
16669
16672
  var y, C, b, p;
16670
- const h = await ((C = (y = s.provider) == null ? void 0 : y.llm) == null ? void 0 : C.call(y, "2")), v = await ((p = (b = s.provider) == null ? void 0 : b.llmGroup) == null ? void 0 : p.call(b, "2"));
16671
- d(a).push(...h || []), d(l).push(...v || []), n() && (n().enableThinking = n().enableThinking !== void 0 ? n().enableThinking : !1);
16673
+ const h = await ((C = (y = s.provider) == null ? void 0 : y.llmGroup) == null ? void 0 : C.call(y, "2")), v = await ((p = (b = s.provider) == null ? void 0 : b.llm) == null ? void 0 : p.call(b, "2", n().modelGroupId));
16674
+ d(a).push(...v || []), d(l).push(...h || []), n() && (n().enableThinking = n().enableThinking !== void 0 ? n().enableThinking : !1);
16672
16675
  });
16673
16676
  const { updateNodeData: u } = Yt(), c = (h) => {
16674
16677
  u(o, () => ({ outType: h })), u(o, {
@@ -16761,7 +16764,7 @@ function Xf(e, t) {
16761
16764
  ae >= -2 && ae <= 2 ? u(o, { presencePenalty: ae }) : ar.warning("Presence Penalty的范围是[-2.0, 2.0]");
16762
16765
  }
16763
16766
  }), I(q), I(B), I(H);
16764
- var X = A(H, 2), re = z(X), ne = z(re), we = z(ne);
16767
+ var X = A(H, 2), re = z(X), ne = z(re), xe = z(ne);
16765
16768
  I(ne);
16766
16769
  var Pe = A(ne, 2), Ae = z(Pe);
16767
16770
  ct(Ae, {
@@ -16775,11 +16778,11 @@ function Xf(e, t) {
16775
16778
  ae >= -2 && ae <= 2 ? u(o, { frequencyPenalty: ae }) : ar.warning("Frequency Penalty的范围是[-2.0, 2.0]");
16776
16779
  }
16777
16780
  }), I(Pe), I(re), I(X);
16778
- var _e = A(X, 2), be = z(_e), ce = z(be), Q = z(ce);
16781
+ var we = A(X, 2), be = z(we), ce = z(be), Q = z(ce);
16779
16782
  I(ce);
16780
16783
  var le = A(ce, 2), Z = z(le), ve = z(Z);
16781
- dr(ve), ve.__change = [P_, u, o, n], Te(2), I(Z), I(le), I(be), I(_e), He(() => {
16782
- tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(we, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16784
+ dr(ve), ve.__change = [P_, u, o, n], Te(2), I(Z), I(le), I(be), I(we), He(() => {
16785
+ tt(m, `Temperature: ${n().temperature ?? ""}`), tt(D, `Top P: ${n().topP ?? ""}`), tt(P, `Max Tokens: ${n().maxTokens ?? ""}`), tt(J, `Presence Penalty: ${n().presencePenalty ?? ""}`), tt(xe, `Frequency Penalty: ${n().frequencyPenalty ?? ""}`), tt(Q, `Enable Thinking: ${n().enableThinking ?? ""}`);
16783
16786
  }), Vc(ve, () => n().enableThinking, (pe) => n().enableThinking = pe), V(y, C);
16784
16787
  };
16785
16788
  hn(e, gt(
@@ -17456,8 +17459,8 @@ function qf(e, t) {
17456
17459
  level: 3,
17457
17460
  children: (Be, Le) => {
17458
17461
  Te();
17459
- var xe = Ie("参数");
17460
- V(Be, xe);
17462
+ var _e = Ie("参数");
17463
+ V(Be, _e);
17461
17464
  },
17462
17465
  $$slots: { default: !0 }
17463
17466
  });
@@ -17469,8 +17472,8 @@ function qf(e, t) {
17469
17472
  s(i, "formData");
17470
17473
  },
17471
17474
  children: (Be, Le) => {
17472
- var xe = Z_();
17473
- V(Be, xe);
17475
+ var _e = Z_();
17476
+ V(Be, _e);
17474
17477
  },
17475
17478
  $$slots: { default: !0 }
17476
17479
  }), I(Z);
@@ -17489,8 +17492,8 @@ function qf(e, t) {
17489
17492
  level: 3,
17490
17493
  children: (Be, Le) => {
17491
17494
  Te();
17492
- var xe = Ie("Body 参数");
17493
- V(Be, xe);
17495
+ var _e = Ie("Body 参数");
17496
+ V(Be, _e);
17494
17497
  },
17495
17498
  $$slots: { default: !0 }
17496
17499
  });
@@ -17502,8 +17505,8 @@ function qf(e, t) {
17502
17505
  s(i, "formUrlencoded");
17503
17506
  },
17504
17507
  children: (Be, Le) => {
17505
- var xe = q_();
17506
- V(Be, xe);
17508
+ var _e = q_();
17509
+ V(Be, _e);
17507
17510
  },
17508
17511
  $$slots: { default: !0 }
17509
17512
  }), I(Z);
@@ -17534,7 +17537,7 @@ function qf(e, t) {
17534
17537
  n().bodyType === "json" && Q(ne);
17535
17538
  });
17536
17539
  }
17537
- var we = A(re, 2);
17540
+ var xe = A(re, 2);
17538
17541
  {
17539
17542
  var Pe = (Q) => {
17540
17543
  var le = U_(), Z = z(le);
@@ -17550,12 +17553,12 @@ function qf(e, t) {
17550
17553
  }
17551
17554
  }), I(le), V(Q, le);
17552
17555
  };
17553
- ye(we, (Q) => {
17556
+ ye(xe, (Q) => {
17554
17557
  n().bodyType === "raw" && Q(Pe);
17555
17558
  });
17556
17559
  }
17557
- var Ae = A(we, 2), _e = z(Ae);
17558
- nt(_e, {
17560
+ var Ae = A(xe, 2), we = z(Ae);
17561
+ nt(we, {
17559
17562
  level: 3,
17560
17563
  mt: "10px",
17561
17564
  children: (Q, le) => {
@@ -17565,7 +17568,7 @@ function qf(e, t) {
17565
17568
  },
17566
17569
  $$slots: { default: !0 }
17567
17570
  });
17568
- var be = A(_e, 2);
17571
+ var be = A(we, 2);
17569
17572
  Ue(be, {
17570
17573
  class: "input-btn-more",
17571
17574
  style: "margin-left: auto",
@@ -18312,7 +18315,7 @@ function e1(e, t) {
18312
18315
  I(G);
18313
18316
  var re = A(G, 2), ne = z(re);
18314
18317
  {
18315
- let we = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18318
+ let xe = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18316
18319
  ct(ne, gt(
18317
18320
  {
18318
18321
  get placeholder() {
@@ -18320,7 +18323,7 @@ function e1(e, t) {
18320
18323
  },
18321
18324
  style: "width: 100%",
18322
18325
  get value() {
18323
- return d(we);
18326
+ return d(xe);
18324
18327
  }
18325
18328
  },
18326
18329
  () => d(T).attrs,
@@ -18336,9 +18339,9 @@ function e1(e, t) {
18336
18339
  var q = Xe(), G = fe(q);
18337
18340
  {
18338
18341
  var X = (ne) => {
18339
- var we = bx(), Pe = fe(we), Ae = z(Pe, !0);
18342
+ var xe = bx(), Pe = fe(xe), Ae = z(Pe, !0);
18340
18343
  I(Pe);
18341
- var _e = A(Pe, 2), be = z(_e);
18344
+ var we = A(Pe, 2), be = z(we);
18342
18345
  {
18343
18346
  let ce = /* @__PURE__ */ $e(() => n()[d(T).name] || d(T).defaultValue);
18344
18347
  mt(be, gt(
@@ -18360,9 +18363,9 @@ function e1(e, t) {
18360
18363
  }
18361
18364
  ));
18362
18365
  }
18363
- I(_e), He(() => tt(Ae, d(T).label)), V(ne, we);
18366
+ I(we), He(() => tt(Ae, d(T).label)), V(ne, xe);
18364
18367
  }, re = (ne) => {
18365
- var we = Xe(), Pe = fe(we);
18368
+ var xe = Xe(), Pe = fe(xe);
18366
18369
  {
18367
18370
  var Ae = (be) => {
18368
18371
  var ce = Cx(), Q = fe(ce), le = z(Q, !0);
@@ -18371,7 +18374,7 @@ function e1(e, t) {
18371
18374
  I(pe);
18372
18375
  var Be = A(pe, 2);
18373
18376
  dr(Be);
18374
- var Le = (xe) => l({ [d(T).name]: parseFloat(xe.target.value) });
18377
+ var Le = (_e) => l({ [d(T).name]: parseFloat(_e.target.value) });
18375
18378
  on(
18376
18379
  Be,
18377
18380
  () => ({
@@ -18387,16 +18390,16 @@ function e1(e, t) {
18387
18390
  ), I(ve), I(Z), He(() => {
18388
18391
  tt(le, d(T).label), tt(ae, `${d(T).description ?? ""}: ${n()[d(T).name] ?? d(T).defaultValue ?? ""}`);
18389
18392
  }), V(be, ce);
18390
- }, _e = (be) => {
18393
+ }, we = (be) => {
18391
18394
  var ce = Xe(), Q = fe(ce);
18392
18395
  {
18393
18396
  var le = (ve) => {
18394
18397
  var pe = $x(), ae = fe(pe), Be = z(ae, !0);
18395
18398
  I(ae);
18396
- var Le = A(ae, 2), xe = z(Le);
18399
+ var Le = A(ae, 2), _e = z(Le);
18397
18400
  {
18398
18401
  let ze = /* @__PURE__ */ $e(() => d(T).options || []), qe = /* @__PURE__ */ $e(() => n()[d(T).name] ? [n()[d(T).name]] : [d(T).defaultValue]);
18399
- Kt(xe, {
18402
+ Kt(_e, {
18400
18403
  get items() {
18401
18404
  return d(ze);
18402
18405
  },
@@ -18417,7 +18420,7 @@ function e1(e, t) {
18417
18420
  }, Z = (ve) => {
18418
18421
  var pe = Xe(), ae = fe(pe);
18419
18422
  {
18420
- var Be = (xe) => {
18423
+ var Be = (_e) => {
18421
18424
  var ze = kx(), qe = fe(ze), it = z(qe, !0);
18422
18425
  I(qe);
18423
18426
  var U = A(qe, 2), Ke = z(U);
@@ -18448,8 +18451,8 @@ function e1(e, t) {
18448
18451
  }
18449
18452
  });
18450
18453
  }
18451
- I(U), He(() => tt(it, d(T).label)), V(xe, ze);
18452
- }, Le = (xe) => {
18454
+ I(U), He(() => tt(it, d(T).label)), V(_e, ze);
18455
+ }, Le = (_e) => {
18453
18456
  var ze = Xe(), qe = fe(ze);
18454
18457
  {
18455
18458
  var it = (U) => {
@@ -18470,12 +18473,12 @@ function e1(e, t) {
18470
18473
  !0
18471
18474
  );
18472
18475
  }
18473
- V(xe, ze);
18476
+ V(_e, ze);
18474
18477
  };
18475
18478
  ye(
18476
18479
  ae,
18477
- (xe) => {
18478
- d(T).type === "chosen" ? xe(Be) : xe(Le, !1);
18480
+ (_e) => {
18481
+ d(T).type === "chosen" ? _e(Be) : _e(Le, !1);
18479
18482
  },
18480
18483
  !0
18481
18484
  );
@@ -18495,12 +18498,12 @@ function e1(e, t) {
18495
18498
  ye(
18496
18499
  Pe,
18497
18500
  (be) => {
18498
- d(T).type === "slider" ? be(Ae) : be(_e, !1);
18501
+ d(T).type === "slider" ? be(Ae) : be(we, !1);
18499
18502
  },
18500
18503
  !0
18501
18504
  );
18502
18505
  }
18503
- V(ne, we);
18506
+ V(ne, xe);
18504
18507
  };
18505
18508
  ye(
18506
18509
  G,
@@ -18670,8 +18673,8 @@ function t1(e, t) {
18670
18673
  else {
18671
18674
  let X = !1;
18672
18675
  for (let re = 0; re < q.length; re++) {
18673
- const ne = q[re], we = v(ne.source);
18674
- if (we.parentId || we.type === "loopNode") {
18676
+ const ne = q[re], xe = v(ne.source);
18677
+ if (xe.parentId || xe.type === "loopNode") {
18675
18678
  X = !0;
18676
18679
  break;
18677
18680
  }
@@ -18746,10 +18749,10 @@ function t1(e, t) {
18746
18749
  pf(X, {});
18747
18750
  var re = A(X, 2);
18748
18751
  {
18749
- var ne = (we) => {
18750
- vi(we, {
18752
+ var ne = (xe) => {
18753
+ vi(xe, {
18751
18754
  children: (Pe, Ae) => {
18752
- var _e = Hx(), be = A(z(_e), 4), ce = z(be);
18755
+ var we = Hx(), be = A(z(we), 4), ce = z(be);
18753
18756
  {
18754
18757
  let ve = /* @__PURE__ */ $e(() => {
18755
18758
  var pe, ae;
@@ -18794,13 +18797,13 @@ function t1(e, t) {
18794
18797
  V(ve, ae);
18795
18798
  },
18796
18799
  $$slots: { default: !0 }
18797
- }), I(Q), I(_e), V(Pe, _e);
18800
+ }), I(Q), I(we), V(Pe, we);
18798
18801
  },
18799
18802
  $$slots: { default: !0 }
18800
18803
  });
18801
18804
  };
18802
- ye(re, (we) => {
18803
- d(u) && we(ne);
18805
+ ye(re, (xe) => {
18806
+ d(u) && xe(ne);
18804
18807
  });
18805
18808
  }
18806
18809
  V(B, J);