@weng-lab/visualization 1.3.0-beta.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -161,7 +161,7 @@ function pM() {
161
161
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
162
162
  )), D = this.props.ref, D !== void 0 ? D : null;
163
163
  }
164
- function l(D, k, V, K, j, R, X, z) {
164
+ function l(D, k, V, K, j, R, X, G) {
165
165
  return V = R.ref, D = {
166
166
  $$typeof: d,
167
167
  type: D,
@@ -190,10 +190,10 @@ function pM() {
190
190
  configurable: !1,
191
191
  enumerable: !1,
192
192
  writable: !0,
193
- value: z
193
+ value: G
194
194
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
195
195
  }
196
- function u(D, k, V, K, j, R, X, z) {
196
+ function u(D, k, V, K, j, R, X, G) {
197
197
  var W = k.children;
198
198
  if (W !== void 0)
199
199
  if (K)
@@ -226,8 +226,8 @@ React keys must be passed directly to JSX without using spread:
226
226
  }
227
227
  if (W = null, V !== void 0 && (r(V), W = "" + V), o(k) && (r(k.key), W = "" + k.key), "key" in k) {
228
228
  V = {};
229
- for (var G in k)
230
- G !== "key" && (V[G] = k[G]);
229
+ for (var z in k)
230
+ z !== "key" && (V[z] = k[z]);
231
231
  } else V = k;
232
232
  return W && s(
233
233
  V,
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
240
240
  a(),
241
241
  V,
242
242
  X,
243
- z
243
+ G
244
244
  );
245
245
  }
246
246
  function c(D) {
@@ -438,7 +438,7 @@ function mM() {
438
438
  function X(Y) {
439
439
  return w(Y) === h;
440
440
  }
441
- function z(Y) {
441
+ function G(Y) {
442
442
  return w(Y) === d;
443
443
  }
444
444
  function W(Y) {
@@ -447,13 +447,13 @@ function mM() {
447
447
  function Z(Y) {
448
448
  return w(Y) === i;
449
449
  }
450
- function G(Y) {
450
+ function z(Y) {
451
451
  return w(Y) === a;
452
452
  }
453
453
  function J(Y) {
454
454
  return w(Y) === c;
455
455
  }
456
- Je.AsyncMode = C, Je.ConcurrentMode = T, Je.ContextConsumer = b, Je.ContextProvider = E, Je.Element = x, Je.ForwardRef = B, Je.Fragment = F, Je.Lazy = U, Je.Memo = S, Je.Portal = Q, Je.Profiler = L, Je.StrictMode = O, Je.Suspense = M, Je.isAsyncMode = _, Je.isConcurrentMode = D, Je.isContextConsumer = k, Je.isContextProvider = V, Je.isElement = K, Je.isForwardRef = j, Je.isFragment = R, Je.isLazy = X, Je.isMemo = z, Je.isPortal = W, Je.isProfiler = Z, Je.isStrictMode = G, Je.isSuspense = J, Je.isValidElementType = m, Je.typeOf = w;
456
+ Je.AsyncMode = C, Je.ConcurrentMode = T, Je.ContextConsumer = b, Je.ContextProvider = E, Je.Element = x, Je.ForwardRef = B, Je.Fragment = F, Je.Lazy = U, Je.Memo = S, Je.Portal = Q, Je.Profiler = L, Je.StrictMode = O, Je.Suspense = M, Je.isAsyncMode = _, Je.isConcurrentMode = D, Je.isContextConsumer = k, Je.isContextProvider = V, Je.isElement = K, Je.isForwardRef = j, Je.isFragment = R, Je.isLazy = X, Je.isMemo = G, Je.isPortal = W, Je.isProfiler = Z, Je.isStrictMode = z, Je.isSuspense = J, Je.isValidElementType = m, Je.typeOf = w;
457
457
  }()), Je;
458
458
  }
459
459
  var vB;
@@ -626,33 +626,33 @@ function BM() {
626
626
  function g(D) {
627
627
  if (process.env.NODE_ENV !== "production")
628
628
  var k = {}, V = 0;
629
- function K(R, X, z, W, Z, G, J) {
630
- if (W = W || f, G = G || z, J !== r) {
629
+ function K(R, X, G, W, Z, z, J) {
630
+ if (W = W || f, z = z || G, J !== r) {
631
631
  if (A) {
632
632
  var Y = new Error(
633
633
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
634
634
  );
635
635
  throw Y.name = "Invariant Violation", Y;
636
636
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
637
- var q = W + ":" + z;
637
+ var q = W + ":" + G;
638
638
  !k[q] && // Avoid spamming the console because they are often not actionable except for lib authors
639
639
  V < 3 && (i(
640
- "You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
640
+ "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
641
641
  ), k[q] = !0, V++);
642
642
  }
643
643
  }
644
- return X[z] == null ? R ? X[z] === null ? new p("The " + Z + " `" + G + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new p("The " + Z + " `" + G + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : D(X, z, W, Z, G);
644
+ return X[G] == null ? R ? X[G] === null ? new p("The " + Z + " `" + z + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new p("The " + Z + " `" + z + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : D(X, G, W, Z, z);
645
645
  }
646
646
  var j = K.bind(null, !1);
647
647
  return j.isRequired = K.bind(null, !0), j;
648
648
  }
649
649
  function v(D) {
650
- function k(V, K, j, R, X, z) {
650
+ function k(V, K, j, R, X, G) {
651
651
  var W = V[K], Z = O(W);
652
652
  if (Z !== D) {
653
- var G = M(W);
653
+ var z = M(W);
654
654
  return new p(
655
- "Invalid " + R + " `" + X + "` of type " + ("`" + G + "` supplied to `" + j + "`, expected ") + ("`" + D + "`."),
655
+ "Invalid " + R + " `" + X + "` of type " + ("`" + z + "` supplied to `" + j + "`, expected ") + ("`" + D + "`."),
656
656
  { expectedType: D }
657
657
  );
658
658
  }
@@ -667,15 +667,15 @@ function BM() {
667
667
  function k(V, K, j, R, X) {
668
668
  if (typeof D != "function")
669
669
  return new p("Property `" + X + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
670
- var z = V[K];
671
- if (!Array.isArray(z)) {
672
- var W = O(z);
670
+ var G = V[K];
671
+ if (!Array.isArray(G)) {
672
+ var W = O(G);
673
673
  return new p("Invalid " + R + " `" + X + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
674
674
  }
675
- for (var Z = 0; Z < z.length; Z++) {
676
- var G = D(z, Z, j, R, X + "[" + Z + "]", r);
677
- if (G instanceof Error)
678
- return G;
675
+ for (var Z = 0; Z < G.length; Z++) {
676
+ var z = D(G, Z, j, R, X + "[" + Z + "]", r);
677
+ if (z instanceof Error)
678
+ return z;
679
679
  }
680
680
  return null;
681
681
  }
@@ -685,8 +685,8 @@ function BM() {
685
685
  function D(k, V, K, j, R) {
686
686
  var X = k[V];
687
687
  if (!s(X)) {
688
- var z = O(X);
689
- return new p("Invalid " + j + " `" + R + "` of type " + ("`" + z + "` supplied to `" + K + "`, expected a single ReactElement."));
688
+ var G = O(X);
689
+ return new p("Invalid " + j + " `" + R + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement."));
690
690
  }
691
691
  return null;
692
692
  }
@@ -696,8 +696,8 @@ function BM() {
696
696
  function D(k, V, K, j, R) {
697
697
  var X = k[V];
698
698
  if (!t.isValidElementType(X)) {
699
- var z = O(X);
700
- return new p("Invalid " + j + " `" + R + "` of type " + ("`" + z + "` supplied to `" + K + "`, expected a single ReactElement type."));
699
+ var G = O(X);
700
+ return new p("Invalid " + j + " `" + R + "` of type " + ("`" + G + "` supplied to `" + K + "`, expected a single ReactElement type."));
701
701
  }
702
702
  return null;
703
703
  }
@@ -706,8 +706,8 @@ function BM() {
706
706
  function T(D) {
707
707
  function k(V, K, j, R, X) {
708
708
  if (!(V[K] instanceof D)) {
709
- var z = D.name || f, W = _(V[K]);
710
- return new p("Invalid " + R + " `" + X + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + z + "`."));
709
+ var G = D.name || f, W = _(V[K]);
710
+ return new p("Invalid " + R + " `" + X + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + G + "`."));
711
711
  }
712
712
  return null;
713
713
  }
@@ -719,14 +719,14 @@ function BM() {
719
719
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
720
720
  ) : i("Invalid argument supplied to oneOf, expected an array.")), o;
721
721
  function k(V, K, j, R, X) {
722
- for (var z = V[K], W = 0; W < D.length; W++)
723
- if (h(z, D[W]))
722
+ for (var G = V[K], W = 0; W < D.length; W++)
723
+ if (h(G, D[W]))
724
724
  return null;
725
725
  var Z = JSON.stringify(D, function(J, Y) {
726
726
  var q = M(Y);
727
727
  return q === "symbol" ? String(Y) : Y;
728
728
  });
729
- return new p("Invalid " + R + " `" + X + "` of value `" + String(z) + "` " + ("supplied to `" + j + "`, expected one of " + Z + "."));
729
+ return new p("Invalid " + R + " `" + X + "` of value `" + String(G) + "` " + ("supplied to `" + j + "`, expected one of " + Z + "."));
730
730
  }
731
731
  return g(k);
732
732
  }
@@ -734,14 +734,14 @@ function BM() {
734
734
  function k(V, K, j, R, X) {
735
735
  if (typeof D != "function")
736
736
  return new p("Property `" + X + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
737
- var z = V[K], W = O(z);
737
+ var G = V[K], W = O(G);
738
738
  if (W !== "object")
739
739
  return new p("Invalid " + R + " `" + X + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
740
- for (var Z in z)
741
- if (n(z, Z)) {
742
- var G = D(z, Z, j, R, X + "." + Z, r);
743
- if (G instanceof Error)
744
- return G;
740
+ for (var Z in G)
741
+ if (n(G, Z)) {
742
+ var z = D(G, Z, j, R, X + "." + Z, r);
743
+ if (z instanceof Error)
744
+ return z;
745
745
  }
746
746
  return null;
747
747
  }
@@ -757,15 +757,15 @@ function BM() {
757
757
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + P(V) + " at index " + k + "."
758
758
  ), o;
759
759
  }
760
- function K(j, R, X, z, W) {
761
- for (var Z = [], G = 0; G < D.length; G++) {
762
- var J = D[G], Y = J(j, R, X, z, W, r);
760
+ function K(j, R, X, G, W) {
761
+ for (var Z = [], z = 0; z < D.length; z++) {
762
+ var J = D[z], Y = J(j, R, X, G, W, r);
763
763
  if (Y == null)
764
764
  return null;
765
765
  Y.data && n(Y.data, "expectedType") && Z.push(Y.data.expectedType);
766
766
  }
767
767
  var q = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
768
- return new p("Invalid " + z + " `" + W + "` supplied to " + ("`" + X + "`" + q + "."));
768
+ return new p("Invalid " + G + " `" + W + "` supplied to " + ("`" + X + "`" + q + "."));
769
769
  }
770
770
  return g(K);
771
771
  }
@@ -782,14 +782,14 @@ function BM() {
782
782
  }
783
783
  function U(D) {
784
784
  function k(V, K, j, R, X) {
785
- var z = V[K], W = O(z);
785
+ var G = V[K], W = O(G);
786
786
  if (W !== "object")
787
787
  return new p("Invalid " + R + " `" + X + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
788
788
  for (var Z in D) {
789
- var G = D[Z];
790
- if (typeof G != "function")
791
- return F(j, R, X, Z, M(G));
792
- var J = G(z, Z, j, R, X + "." + Z, r);
789
+ var z = D[Z];
790
+ if (typeof z != "function")
791
+ return F(j, R, X, Z, M(z));
792
+ var J = z(G, Z, j, R, X + "." + Z, r);
793
793
  if (J)
794
794
  return J;
795
795
  }
@@ -799,20 +799,20 @@ function BM() {
799
799
  }
800
800
  function S(D) {
801
801
  function k(V, K, j, R, X) {
802
- var z = V[K], W = O(z);
802
+ var G = V[K], W = O(G);
803
803
  if (W !== "object")
804
804
  return new p("Invalid " + R + " `" + X + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
805
805
  var Z = e({}, V[K], D);
806
- for (var G in Z) {
807
- var J = D[G];
808
- if (n(D, G) && typeof J != "function")
809
- return F(j, R, X, G, M(J));
806
+ for (var z in Z) {
807
+ var J = D[z];
808
+ if (n(D, z) && typeof J != "function")
809
+ return F(j, R, X, z, M(J));
810
810
  if (!J)
811
811
  return new p(
812
- "Invalid " + R + " `" + X + "` key `" + G + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(V[K], null, " ") + `
812
+ "Invalid " + R + " `" + X + "` key `" + z + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(V[K], null, " ") + `
813
813
  Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
814
814
  );
815
- var Y = J(z, G, j, R, X + "." + G, r);
815
+ var Y = J(G, z, j, R, X + "." + z, r);
816
816
  if (Y)
817
817
  return Y;
818
818
  }
@@ -5704,7 +5704,7 @@ function y0(t) {
5704
5704
  });
5705
5705
  }, [j, T]), X = Ve(function() {
5706
5706
  return dU(T);
5707
- }, [T]), z = Ve(function() {
5707
+ }, [T]), G = Ve(function() {
5708
5708
  var ue = X(), ne = ue.translateX, le = ue.translateY, he = ue.scaleX, de = ue.scaleY, se = ue.skewX, me = ue.skewY;
5709
5709
  return "matrix(" + he + ", " + me + ", " + se + ", " + de + ", " + ne + ", " + le + ")";
5710
5710
  }, [X]), W = Ve(function(ue) {
@@ -5724,7 +5724,7 @@ function y0(t) {
5724
5724
  translateY: Ue
5725
5725
  });
5726
5726
  }
5727
- }, [x, j, L, U]), G = Ve(function() {
5727
+ }, [x, j, L, U]), z = Ve(function() {
5728
5728
  O(void 0), S(void 0), B(!1);
5729
5729
  }, []), J = Ve(function(ue) {
5730
5730
  ue.preventDefault();
@@ -5775,9 +5775,9 @@ function y0(t) {
5775
5775
  },
5776
5776
  onDrag: function(ne) {
5777
5777
  var le = ne.event, he = ne.pinching, de = ne.cancel;
5778
- he ? (de(), G()) : le instanceof KeyboardEvent || Z(le);
5778
+ he ? (de(), z()) : le instanceof KeyboardEvent || Z(le);
5779
5779
  },
5780
- onDragEnd: G,
5780
+ onDragEnd: z,
5781
5781
  onPinch: Y,
5782
5782
  onWheel: function(ne) {
5783
5783
  var le = ne.event, he = ne.active, de = ne.pinching;
@@ -5809,12 +5809,12 @@ function y0(t) {
5809
5809
  reset: k,
5810
5810
  handleWheel: J,
5811
5811
  handlePinch: Y,
5812
- dragEnd: G,
5812
+ dragEnd: z,
5813
5813
  dragMove: Z,
5814
5814
  dragStart: W,
5815
5815
  toString: q,
5816
5816
  invert: X,
5817
- toStringInvert: z,
5817
+ toStringInvert: G,
5818
5818
  applyToPoint: _,
5819
5819
  applyInverseToPoint: D,
5820
5820
  containerRef: m
@@ -10527,9 +10527,9 @@ function T5() {
10527
10527
  Q.className = Q.className + " " + K;
10528
10528
  var j = document.createElement("style");
10529
10529
  j.appendChild(R(K, D, k)), Q.appendChild(j);
10530
- function R(X, z, W) {
10531
- var Z = "." + X + ":" + z, G = W.cssText ? J(W) : Y(W);
10532
- return document.createTextNode(Z + "{" + G + "}");
10530
+ function R(X, G, W) {
10531
+ var Z = "." + X + ":" + G, z = W.cssText ? J(W) : Y(W);
10532
+ return document.createTextNode(Z + "{" + z + "}");
10533
10533
  function J(q) {
10534
10534
  var ie = q.getPropertyValue("content");
10535
10535
  return q.cssText + " content: " + ie + ";";
@@ -10622,8 +10622,8 @@ function T5() {
10622
10622
  }
10623
10623
  function F(R) {
10624
10624
  return new Promise(function(X) {
10625
- for (var z = window.atob(R.toDataURL().split(",")[1]), W = z.length, Z = new Uint8Array(W), G = 0; G < W; G++)
10626
- Z[G] = z.charCodeAt(G);
10625
+ for (var G = window.atob(R.toDataURL().split(",")[1]), W = G.length, Z = new Uint8Array(W), z = 0; z < W; z++)
10626
+ Z[z] = G.charCodeAt(z);
10627
10627
  X(new Blob([Z], {
10628
10628
  type: "image/png"
10629
10629
  }));
@@ -10635,10 +10635,10 @@ function T5() {
10635
10635
  }) : F(R);
10636
10636
  }
10637
10637
  function S(R, X) {
10638
- var z = document.implementation.createHTMLDocument(), W = z.createElement("base");
10639
- z.head.appendChild(W);
10640
- var Z = z.createElement("a");
10641
- return z.body.appendChild(Z), W.href = X, Z.href = R, Z.href;
10638
+ var G = document.implementation.createHTMLDocument(), W = G.createElement("base");
10639
+ G.head.appendChild(W);
10640
+ var Z = G.createElement("a");
10641
+ return G.body.appendChild(Z), W.href = X, Z.href = R, Z.href;
10642
10642
  }
10643
10643
  function Q() {
10644
10644
  var R = 0;
@@ -10650,41 +10650,41 @@ function T5() {
10650
10650
  };
10651
10651
  }
10652
10652
  function L(R) {
10653
- return new Promise(function(X, z) {
10653
+ return new Promise(function(X, G) {
10654
10654
  var W = new Image();
10655
10655
  W.onload = function() {
10656
10656
  X(W);
10657
- }, W.onerror = z, W.src = R;
10657
+ }, W.onerror = G, W.src = R;
10658
10658
  });
10659
10659
  }
10660
10660
  function O(R) {
10661
10661
  var X = 3e4;
10662
- return s.impl.options.cacheBust && (R += (/\?/.test(R) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), new Promise(function(z) {
10662
+ return s.impl.options.cacheBust && (R += (/\?/.test(R) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime()), new Promise(function(G) {
10663
10663
  var W = new XMLHttpRequest();
10664
10664
  W.onreadystatechange = J, W.ontimeout = Y, W.responseType = "blob", W.timeout = X, W.open("GET", R, !0), W.send();
10665
10665
  var Z;
10666
10666
  if (s.impl.options.imagePlaceholder) {
10667
- var G = s.impl.options.imagePlaceholder.split(/,/);
10668
- G && G[1] && (Z = G[1]);
10667
+ var z = s.impl.options.imagePlaceholder.split(/,/);
10668
+ z && z[1] && (Z = z[1]);
10669
10669
  }
10670
10670
  function J() {
10671
10671
  if (W.readyState === 4) {
10672
10672
  if (W.status !== 200) {
10673
- Z ? z(Z) : q("cannot fetch resource: " + R + ", status: " + W.status);
10673
+ Z ? G(Z) : q("cannot fetch resource: " + R + ", status: " + W.status);
10674
10674
  return;
10675
10675
  }
10676
10676
  var ie = new FileReader();
10677
10677
  ie.onloadend = function() {
10678
10678
  var ge = ie.result.split(/,/)[1];
10679
- z(ge);
10679
+ G(ge);
10680
10680
  }, ie.readAsDataURL(W.response);
10681
10681
  }
10682
10682
  }
10683
10683
  function Y() {
10684
- Z ? z(Z) : q("timeout of " + X + "ms occured while fetching resource: " + R);
10684
+ Z ? G(Z) : q("timeout of " + X + "ms occured while fetching resource: " + R);
10685
10685
  }
10686
10686
  function q(ie) {
10687
- console.error(ie), z("");
10687
+ console.error(ie), G("");
10688
10688
  }
10689
10689
  });
10690
10690
  }
@@ -10696,31 +10696,31 @@ function T5() {
10696
10696
  }
10697
10697
  function _(R) {
10698
10698
  return function(X) {
10699
- return new Promise(function(z) {
10699
+ return new Promise(function(G) {
10700
10700
  setTimeout(function() {
10701
- z(X);
10701
+ G(X);
10702
10702
  }, R);
10703
10703
  });
10704
10704
  };
10705
10705
  }
10706
10706
  function D(R) {
10707
- for (var X = [], z = R.length, W = 0; W < z; W++) X.push(R[W]);
10707
+ for (var X = [], G = R.length, W = 0; W < G; W++) X.push(R[W]);
10708
10708
  return X;
10709
10709
  }
10710
10710
  function k(R) {
10711
10711
  return R.replace(/#/g, "%23").replace(/\n/g, "%0A");
10712
10712
  }
10713
10713
  function V(R) {
10714
- var X = j(R, "border-left-width"), z = j(R, "border-right-width");
10715
- return R.scrollWidth + X + z;
10714
+ var X = j(R, "border-left-width"), G = j(R, "border-right-width");
10715
+ return R.scrollWidth + X + G;
10716
10716
  }
10717
10717
  function K(R) {
10718
- var X = j(R, "border-top-width"), z = j(R, "border-bottom-width");
10719
- return R.scrollHeight + X + z;
10718
+ var X = j(R, "border-top-width"), G = j(R, "border-bottom-width");
10719
+ return R.scrollHeight + X + G;
10720
10720
  }
10721
10721
  function j(R, X) {
10722
- var z = window.getComputedStyle(R).getPropertyValue(X);
10723
- return parseFloat(z.replace("px", ""));
10722
+ var G = window.getComputedStyle(R).getPropertyValue(X);
10723
+ return parseFloat(G.replace("px", ""));
10724
10724
  }
10725
10725
  }
10726
10726
  function w() {
@@ -15661,7 +15661,7 @@ const md = (t, e, r = 0.03) => {
15661
15661
  translateY: 0,
15662
15662
  skewX: 0,
15663
15663
  skewY: 0
15664
- }, Lie = (t) => {
15664
+ }, Oie = (t) => {
15665
15665
  const e = y0, r = Ql, n = {
15666
15666
  minimap: {
15667
15667
  open: t.initialState?.minimap?.open ?? !1
@@ -15748,7 +15748,7 @@ const md = (t, e, r = 0.03) => {
15748
15748
  return Fe[oe] = [...Fe[oe] || [], ve], Fe;
15749
15749
  });
15750
15750
  }
15751
- }, [g, x.left, x.top]), z = (ae, ye) => {
15751
+ }, [g, x.left, x.top]), G = (ae, ye) => {
15752
15752
  let Be = !1;
15753
15753
  for (let Ce = 0, Fe = ye.length - 1; Ce < ye.length; Fe = Ce++) {
15754
15754
  const ve = ye[Ce].x, oe = ye[Ce].y, H = ye[Fe].x, $ = ye[Fe].y;
@@ -15764,14 +15764,14 @@ const md = (t, e, r = 0.03) => {
15764
15764
  x: Be(ve.x),
15765
15765
  y: Ce(ve.y)
15766
15766
  };
15767
- return z(oe, ye);
15767
+ return G(oe, ye);
15768
15768
  });
15769
15769
  t.onSelectionChange && t.onSelectionChange(Fe), p([]);
15770
15770
  } else
15771
15771
  p([]);
15772
15772
  }, [g, h, K, j, t]), {
15773
15773
  x: Z = 0,
15774
- y: G = 0,
15774
+ y: z = 0,
15775
15775
  dx: J,
15776
15776
  dy: Y,
15777
15777
  isDragging: q,
@@ -15933,9 +15933,9 @@ const md = (t, e, r = 0.03) => {
15933
15933
  g === "select" && /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
15934
15934
  h.map((H, $) => /* @__PURE__ */ N.jsx(T_, { fill: "transparent", stroke: "black", strokeWidth: 3, data: H, curve: iI, x: (te) => te.x, y: (te) => te.y }, `line-${$}`)),
15935
15935
  q && /* @__PURE__ */ N.jsxs("g", { children: [
15936
- /* @__PURE__ */ N.jsx("line", { x1: Z - x.left + J - 6, y1: G - x.top + Y, x2: Z - x.left + J + 6, y2: G - x.top + Y, stroke: "black", strokeWidth: 1 }),
15937
- /* @__PURE__ */ N.jsx("line", { x1: Z - x.left + J, y1: G - x.top + Y - 6, x2: Z - x.left + J, y2: G - x.top + Y + 6, stroke: "black", strokeWidth: 1 }),
15938
- /* @__PURE__ */ N.jsx("circle", { cx: Z - x.left, cy: G - x.top, r: 4, fill: "transparent", stroke: "black", pointerEvents: "none" })
15936
+ /* @__PURE__ */ N.jsx("line", { x1: Z - x.left + J - 6, y1: z - x.top + Y, x2: Z - x.left + J + 6, y2: z - x.top + Y, stroke: "black", strokeWidth: 1 }),
15937
+ /* @__PURE__ */ N.jsx("line", { x1: Z - x.left + J, y1: z - x.top + Y - 6, x2: Z - x.left + J, y2: z - x.top + Y + 6, stroke: "black", strokeWidth: 1 }),
15938
+ /* @__PURE__ */ N.jsx("circle", { cx: Z - x.left, cy: z - x.top, r: 4, fill: "transparent", stroke: "black", pointerEvents: "none" })
15939
15939
  ] })
15940
15940
  ] }),
15941
15941
  /* @__PURE__ */ N.jsx("rect", { ref: A, fill: "transparent", width: B, height: F, style: {
@@ -17340,14 +17340,14 @@ var AX = sX(), Kl = /* @__PURE__ */ Nl(AX), lX = lr({
17340
17340
  return h[R * u + X];
17341
17341
  },
17342
17342
  path: function(K, j) {
17343
- var R = D(K), X = D(j), z = d(R);
17343
+ var R = D(K), X = D(j), G = d(R);
17344
17344
  if (R === X)
17345
- return z.collection();
17345
+ return G.collection();
17346
17346
  if (y[R * u + X] == null)
17347
17347
  return r.collection();
17348
- var W = r.collection(), Z = R, G;
17349
- for (W.merge(z); R !== X; )
17350
- Z = R, R = y[R * u + X], G = m[Z * u + R], W.merge(G), W.merge(d(R));
17348
+ var W = r.collection(), Z = R, z;
17349
+ for (W.merge(G); R !== X; )
17350
+ Z = R, R = y[R * u + X], z = m[Z * u + R], W.merge(z), W.merge(d(R));
17351
17351
  return W;
17352
17352
  }
17353
17353
  };
@@ -17405,12 +17405,12 @@ var AX = sX(), Kl = /* @__PURE__ */ Nl(AX), lX = lr({
17405
17405
  var k = c[D], V = k.source(), K = k.target(), j = s(k), R = y(V).dist, X = y(K).dist;
17406
17406
  if (R + j < X || !i && X + j < R)
17407
17407
  if (p || (rt("Graph contains a negative weight cycle for Bellman-Ford"), p = !0), e.findNegativeWeightCycles !== !1) {
17408
- var z = [];
17409
- R + j < X && z.push(V), !i && X + j < R && z.push(K);
17410
- for (var W = z.length, Z = 0; Z < W; Z++) {
17411
- var G = z[Z], J = [G];
17412
- J.push(y(G).edge);
17413
- for (var Y = y(G).pred; J.indexOf(Y) === -1; )
17408
+ var G = [];
17409
+ R + j < X && G.push(V), !i && X + j < R && G.push(K);
17410
+ for (var W = G.length, Z = 0; Z < W; Z++) {
17411
+ var z = G[Z], J = [z];
17412
+ J.push(y(z).edge);
17413
+ for (var Y = y(z).pred; J.indexOf(Y) === -1; )
17414
17414
  J.push(Y), J.push(y(Y).edge), Y = y(Y).pred;
17415
17415
  J = J.slice(J.indexOf(Y));
17416
17416
  for (var q = J[0].id(), ie = 0, ge = 2; ge < J.length; ge += 2)
@@ -18078,19 +18078,19 @@ var jX = lr({
18078
18078
  _[j] += h[X] * P[R];
18079
18079
  }
18080
18080
  FX(_), D = P, P = _, _ = D;
18081
- for (var z = 0, W = 0; W < c; W++) {
18081
+ for (var G = 0, W = 0; W < c; W++) {
18082
18082
  var Z = D[W] - P[W];
18083
- z += Z * Z;
18083
+ G += Z * Z;
18084
18084
  }
18085
- if (z < a)
18085
+ if (G < a)
18086
18086
  break;
18087
18087
  }
18088
- var G = {
18088
+ var z = {
18089
18089
  rank: function(Y) {
18090
18090
  return Y = s.collection(Y)[0], P[l.indexOf(Y)];
18091
18091
  }
18092
18092
  };
18093
- return G;
18093
+ return z;
18094
18094
  }
18095
18095
  // pageRank
18096
18096
  }, _x = lr({
@@ -18817,14 +18817,14 @@ var dY = lr({
18817
18817
  break;
18818
18818
  }
18819
18819
  }
18820
- for (var z = QY(s, c, f), W = DY(s, l, z), Z = {}, G = 0; G < z.length; G++)
18821
- Z[z[G]] = [];
18820
+ for (var G = QY(s, c, f), W = DY(s, l, G), Z = {}, z = 0; z < G.length; z++)
18821
+ Z[G[z]] = [];
18822
18822
  for (var J = 0; J < n.length; J++) {
18823
18823
  var Y = i[n[J].id()], q = W[Y];
18824
18824
  q != null && Z[q].push(n[J]);
18825
18825
  }
18826
- for (var ie = new Array(z.length), ge = 0; ge < z.length; ge++)
18827
- ie[ge] = r.collection(Z[z[ge]]);
18826
+ for (var ie = new Array(G.length), ge = 0; ge < G.length; ge++)
18827
+ ie[ge] = r.collection(Z[G[ge]]);
18828
18828
  return ie;
18829
18829
  }, LY = {
18830
18830
  affinityPropagation: Zx,
@@ -21533,14 +21533,14 @@ var tn = function(e) {
21533
21533
  k.x1 = F, k.y1 = S, k.x2 = U, k.y2 = Q, k.w = U - F, k.h = Q - S, k.leftPad = L, k.rightPad = O, k.topPad = M, k.botPad = P;
21534
21534
  var V = g && v.strValue === "autorotate", K = v.pfValue != null && v.pfValue !== 0;
21535
21535
  if (V || K) {
21536
- var j = V ? js(i.rstyle, "labelAngle", n) : v.pfValue, R = Math.cos(j), X = Math.sin(j), z = (F + U) / 2, W = (S + Q) / 2;
21536
+ var j = V ? js(i.rstyle, "labelAngle", n) : v.pfValue, R = Math.cos(j), X = Math.sin(j), G = (F + U) / 2, W = (S + Q) / 2;
21537
21537
  if (!g) {
21538
21538
  switch (A.value) {
21539
21539
  case "left":
21540
- z = U;
21540
+ G = U;
21541
21541
  break;
21542
21542
  case "right":
21543
- z = F;
21543
+ G = F;
21544
21544
  break;
21545
21545
  }
21546
21546
  switch (l.value) {
@@ -21553,12 +21553,12 @@ var tn = function(e) {
21553
21553
  }
21554
21554
  }
21555
21555
  var Z = function(ue, ne) {
21556
- return ue = ue - z, ne = ne - W, {
21557
- x: ue * R - ne * X + z,
21556
+ return ue = ue - G, ne = ne - W, {
21557
+ x: ue * R - ne * X + G,
21558
21558
  y: ue * X + ne * R + W
21559
21559
  };
21560
- }, G = Z(F, S), J = Z(F, Q), Y = Z(U, S), q = Z(U, Q);
21561
- F = Math.min(G.x, J.x, Y.x, q.x), U = Math.max(G.x, J.x, Y.x, q.x), S = Math.min(G.y, J.y, Y.y, q.y), Q = Math.max(G.y, J.y, Y.y, q.y);
21560
+ }, z = Z(F, S), J = Z(F, Q), Y = Z(U, S), q = Z(U, Q);
21561
+ F = Math.min(z.x, J.x, Y.x, q.x), U = Math.max(z.x, J.x, Y.x, q.x), S = Math.min(z.y, J.y, Y.y, q.y), Q = Math.max(z.y, J.y, Y.y, q.y);
21562
21562
  }
21563
21563
  var ie = _ + "Rot", ge = D[ie] = D[ie] || {};
21564
21564
  ge.x1 = F, ge.y1 = S, ge.x2 = U, ge.y2 = Q, ge.w = U - F, ge.h = Q - S, yn(e, F, S, U, Q), yn(i.labelBounds.all, F, S, U, Q);
@@ -21638,8 +21638,8 @@ var tn = function(e) {
21638
21638
  } else {
21639
21639
  var K = e.source(), j = K.position(), R = e.target(), X = R.position();
21640
21640
  if (u = j.x, c = X.x, f = j.y, d = X.y, u > c) {
21641
- var z = u;
21642
- u = c, c = z;
21641
+ var G = u;
21642
+ u = c, c = G;
21643
21643
  }
21644
21644
  if (f > d) {
21645
21645
  var W = f;
@@ -21650,8 +21650,8 @@ var tn = function(e) {
21650
21650
  if (a && r.includeEdges && l && (Cu(o, e, "mid-source"), Cu(o, e, "mid-target"), Cu(o, e, "source"), Cu(o, e, "target")), a) {
21651
21651
  var Z = e.pstyle("ghost").value === "yes";
21652
21652
  if (Z) {
21653
- var G = e.pstyle("ghost-offset-x").pfValue, J = e.pstyle("ghost-offset-y").pfValue;
21654
- yn(o, o.x1 + G, o.y1 + J, o.x2 + G, o.y2 + J);
21653
+ var z = e.pstyle("ghost-offset-x").pfValue, J = e.pstyle("ghost-offset-y").pfValue;
21654
+ yn(o, o.x1 + z, o.y1 + J, o.x2 + z, o.y2 + J);
21655
21655
  }
21656
21656
  }
21657
21657
  var Y = s.bodyBounds = s.bodyBounds || {};
@@ -24203,10 +24203,10 @@ tr.updateStyleHints = function(t) {
24203
24203
  e.targetLabelKey = Fa(k), e.targetLabelStyleKey = Fa(mu(P.commonLabel, k));
24204
24204
  }
24205
24205
  if (s) {
24206
- var V = e.styleKeys, K = V.nodeBody, j = V.nodeBorder, R = V.nodeOutline, X = V.backgroundImage, z = V.compound, W = V.pie, Z = V.stripe, G = [K, j, R, X, z, W, Z].filter(function(J) {
24206
+ var V = e.styleKeys, K = V.nodeBody, j = V.nodeBorder, R = V.nodeOutline, X = V.backgroundImage, G = V.compound, W = V.pie, Z = V.stripe, z = [K, j, R, X, G, W, Z].filter(function(J) {
24207
24207
  return J != null;
24208
24208
  }).reduce(mu, [Ti, Qo]);
24209
- e.nodeKey = Fa(G), e.hasPie = W != null && W[0] !== Ti && W[1] !== Qo, e.hasStripe = Z != null && Z[0] !== Ti && Z[1] !== Qo;
24209
+ e.nodeKey = Fa(z), e.hasPie = W != null && W[0] !== Ti && W[1] !== Qo, e.hasStripe = Z != null && Z[0] !== Ti && Z[1] !== Qo;
24210
24210
  }
24211
24211
  return o !== e.styleKey;
24212
24212
  };
@@ -25656,9 +25656,9 @@ var kt = {};
25656
25656
  }, {
25657
25657
  name: "arrow-width",
25658
25658
  type: l.arrowWidth
25659
- }].forEach(function(G) {
25659
+ }].forEach(function(z) {
25660
25660
  P.forEach(function(J) {
25661
- var Y = J + "-" + G.name, q = G.type, ie = G.triggersBounds;
25661
+ var Y = J + "-" + z.name, q = z.type, ie = z.triggersBounds;
25662
25662
  M.push({
25663
25663
  name: Y,
25664
25664
  type: q,
@@ -25693,11 +25693,11 @@ var kt = {};
25693
25693
  edgeArrow: M,
25694
25694
  core: U
25695
25695
  }, k = kt.propertyGroupNames = {}, V = kt.propertyGroupKeys = Object.keys(D);
25696
- V.forEach(function(G) {
25697
- k[G] = D[G].map(function(J) {
25696
+ V.forEach(function(z) {
25697
+ k[z] = D[z].map(function(J) {
25698
25698
  return J.name;
25699
- }), D[G].forEach(function(J) {
25700
- return J.groupKey = G;
25699
+ }), D[z].forEach(function(J) {
25700
+ return J.groupKey = z;
25701
25701
  });
25702
25702
  });
25703
25703
  var K = kt.aliases = [{
@@ -25734,20 +25734,20 @@ var kt = {};
25734
25734
  name: "padding-bottom",
25735
25735
  pointsTo: "padding"
25736
25736
  }];
25737
- kt.propertyNames = _.map(function(G) {
25738
- return G.name;
25737
+ kt.propertyNames = _.map(function(z) {
25738
+ return z.name;
25739
25739
  });
25740
25740
  for (var j = 0; j < _.length; j++) {
25741
25741
  var R = _[j];
25742
25742
  _[R.name] = R;
25743
25743
  }
25744
25744
  for (var X = 0; X < K.length; X++) {
25745
- var z = K[X], W = _[z.pointsTo], Z = {
25746
- name: z.name,
25745
+ var G = K[X], W = _[G.pointsTo], Z = {
25746
+ name: G.name,
25747
25747
  alias: !0,
25748
25748
  pointsTo: W
25749
25749
  };
25750
- _.push(Z), _[z.name] = Z;
25750
+ _.push(Z), _[G.name] = Z;
25751
25751
  }
25752
25752
  })();
25753
25753
  kt.getDefaultProperty = function(t) {
@@ -26135,8 +26135,8 @@ Ld.parseImpl = function(t, e, r, n) {
26135
26135
  }
26136
26136
  var F = function() {
26137
26137
  for (var Z = 0; Z < l.enums.length; Z++) {
26138
- var G = l.enums[Z];
26139
- if (G === e)
26138
+ var z = l.enums[Z];
26139
+ if (z === e)
26140
26140
  return {
26141
26141
  name: t,
26142
26142
  value: e,
@@ -26202,11 +26202,11 @@ Ld.parseImpl = function(t, e, r, n) {
26202
26202
  return K;
26203
26203
  }
26204
26204
  for (var j = l.regexes ? l.regexes : [l.regex], R = 0; R < j.length; R++) {
26205
- var X = new RegExp(j[R]), z = X.exec(e);
26206
- if (z)
26205
+ var X = new RegExp(j[R]), G = X.exec(e);
26206
+ if (G)
26207
26207
  return {
26208
26208
  name: t,
26209
- value: l.singleRegexMatchValue ? z[1] : z,
26209
+ value: l.singleRegexMatchValue ? G[1] : G,
26210
26210
  strValue: "" + e,
26211
26211
  bypass: r
26212
26212
  };
@@ -27063,15 +27063,15 @@ ZD.prototype.run = function() {
27063
27063
  return me === 0 ? eD(le.id(), he.id()) : me;
27064
27064
  };
27065
27065
  t.depthSort !== void 0 && (R = t.depthSort);
27066
- for (var X = y.length, z = 0; z < X; z++)
27067
- y[z].sort(R), x(z);
27066
+ for (var X = y.length, G = 0; G < X; G++)
27067
+ y[G].sort(R), x(G);
27068
27068
  for (var W = [], Z = 0; Z < T.length; Z++)
27069
27069
  W.push(T[Z]);
27070
- var G = function() {
27070
+ var z = function() {
27071
27071
  for (var le = 0; le < X; le++)
27072
27072
  x(le);
27073
27073
  };
27074
- W.length && (y.unshift(W), X = y.length, G());
27074
+ W.length && (y.unshift(W), X = y.length, z());
27075
27075
  for (var J = 0, Y = 0; Y < X; Y++)
27076
27076
  J = Math.max(y[Y].length, J);
27077
27077
  var q = {
@@ -27311,8 +27311,8 @@ eL.prototype.run = function() {
27311
27311
  }
27312
27312
  }
27313
27313
  for (var R = {}, X = 0; X < v.length; X++)
27314
- for (var z = v[X], W = z.dTheta, Z = z.r, G = 0; G < z.length; G++) {
27315
- var J = z[G], Y = e.startAngle + (r ? 1 : -1) * W * G, q = {
27314
+ for (var G = v[X], W = G.dTheta, Z = G.r, z = 0; z < G.length; z++) {
27315
+ var J = G[z], Y = e.startAngle + (r ? 1 : -1) * W * z, q = {
27316
27316
  x: s.x + Z * Math.cos(Y),
27317
27317
  y: s.y + Z * Math.sin(Y)
27318
27318
  };
@@ -27834,20 +27834,20 @@ aL.prototype.run = function() {
27834
27834
  }
27835
27835
  }
27836
27836
  var V = function(j, R) {
27837
- var X, z;
27837
+ var X, G;
27838
27838
  if (j.locked() || j.isParent())
27839
27839
  return !1;
27840
27840
  var W = M[j.id()];
27841
27841
  if (W)
27842
- X = W.col * y + y / 2 + i.x1, z = W.row * m + m / 2 + i.y1;
27842
+ X = W.col * y + y / 2 + i.x1, G = W.row * m + m / 2 + i.y1;
27843
27843
  else {
27844
27844
  for (; U(Q, L); )
27845
27845
  O();
27846
- X = L * y + y / 2 + i.x1, z = Q * m + m / 2 + i.y1, S(Q, L), O();
27846
+ X = L * y + y / 2 + i.x1, G = Q * m + m / 2 + i.y1, S(Q, L), O();
27847
27847
  }
27848
27848
  return {
27849
27849
  x: X,
27850
- y: z
27850
+ y: G
27851
27851
  };
27852
27852
  };
27853
27853
  a.layoutPositions(this, e, V);
@@ -28285,14 +28285,14 @@ ao.findNearestElements = function(t, e, r, n) {
28285
28285
  x: q * j - ie * R + L,
28286
28286
  y: q * R + ie * j + O
28287
28287
  };
28288
- }, z = X(D, V), W = X(D, K), Z = X(k, V), G = X(k, K), J = [
28288
+ }, G = X(D, V), W = X(D, K), Z = X(k, V), z = X(k, K), J = [
28289
28289
  // with the margin added after the rotation is applied
28290
- z.x + P,
28291
- z.y + _,
28292
- Z.x + P,
28293
- Z.y + _,
28294
28290
  G.x + P,
28295
28291
  G.y + _,
28292
+ Z.x + P,
28293
+ Z.y + _,
28294
+ z.x + P,
28295
+ z.y + _,
28296
28296
  W.x + P,
28297
28297
  W.y + _
28298
28298
  ];
@@ -28326,15 +28326,15 @@ ao.getAllInBox = function(t, e, r, n) {
28326
28326
  var P = L.labelBounds.main;
28327
28327
  if (!P)
28328
28328
  return null;
28329
- var _ = d(L.rscratch, "labelX", Q), D = d(L.rscratch, "labelY", Q), k = d(L.rscratch, "labelAngle", Q), V = S.pstyle(M + "text-margin-x").pfValue, K = S.pstyle(M + "text-margin-y").pfValue, j = P.x1 - O - V, R = P.x2 + O - V, X = P.y1 - O - K, z = P.y2 + O - K;
28329
+ var _ = d(L.rscratch, "labelX", Q), D = d(L.rscratch, "labelY", Q), k = d(L.rscratch, "labelAngle", Q), V = S.pstyle(M + "text-margin-x").pfValue, K = S.pstyle(M + "text-margin-y").pfValue, j = P.x1 - O - V, R = P.x2 + O - V, X = P.y1 - O - K, G = P.y2 + O - K;
28330
28330
  if (k) {
28331
- var W = Math.cos(k), Z = Math.sin(k), G = function(Y, q) {
28331
+ var W = Math.cos(k), Z = Math.sin(k), z = function(Y, q) {
28332
28332
  return Y = Y - _, q = q - D, {
28333
28333
  x: Y * W - q * Z + _,
28334
28334
  y: Y * Z + q * W + D
28335
28335
  };
28336
28336
  };
28337
- return [G(j, X), G(R, X), G(R, z), G(j, z)];
28337
+ return [z(j, X), z(R, X), z(R, G), z(j, G)];
28338
28338
  } else
28339
28339
  return [{
28340
28340
  x: j,
@@ -28344,10 +28344,10 @@ ao.getAllInBox = function(t, e, r, n) {
28344
28344
  y: X
28345
28345
  }, {
28346
28346
  x: R,
28347
- y: z
28347
+ y: G
28348
28348
  }, {
28349
28349
  x: j,
28350
- y: z
28350
+ y: G
28351
28351
  }];
28352
28352
  }
28353
28353
  for (var p = 0; p < a.length; p++) {
@@ -28609,13 +28609,13 @@ yr.findTaxiPoints = function(t, e) {
28609
28609
  }
28610
28610
  var j = function(H) {
28611
28611
  return Math.abs(H) < b || Math.abs(H) >= Math.abs(M);
28612
- }, R = j(k), X = j(Math.abs(M) - Math.abs(k)), z = R || X;
28613
- if (z && !D)
28612
+ }, R = j(k), X = j(Math.abs(M) - Math.abs(k)), G = R || X;
28613
+ if (G && !D)
28614
28614
  if (O) {
28615
28615
  var W = Math.abs(P) <= f / 2, Z = Math.abs(B) <= d / 2;
28616
28616
  if (W) {
28617
- var G = (u.x1 + u.x2) / 2, J = u.y1, Y = u.y2;
28618
- r.segpts = [G, J, G, Y];
28617
+ var z = (u.x1 + u.x2) / 2, J = u.y1, Y = u.y2;
28618
+ r.segpts = [z, J, z, Y];
28619
28619
  } else if (Z) {
28620
28620
  var q = (u.y1 + u.y2) / 2, ie = u.x1, ge = u.x2;
28621
28621
  r.segpts = [ie, q, ge, q];
@@ -28796,7 +28796,7 @@ yr.findEdgeControlPoints = function(t) {
28796
28796
  var _ = M;
28797
28797
  M = P, P = _;
28798
28798
  }
28799
- var D = S.srcPos = M.position(), k = S.tgtPos = P.position(), V = S.srcW = M.outerWidth(), K = S.srcH = M.outerHeight(), j = S.tgtW = P.outerWidth(), R = S.tgtH = P.outerHeight(), X = S.srcShape = r.nodeShapes[e.getNodeShape(M)], z = S.tgtShape = r.nodeShapes[e.getNodeShape(P)], W = S.srcCornerRadius = M.pstyle("corner-radius").value === "auto" ? "auto" : M.pstyle("corner-radius").pfValue, Z = S.tgtCornerRadius = P.pstyle("corner-radius").value === "auto" ? "auto" : P.pstyle("corner-radius").pfValue, G = S.tgtRs = P._private.rscratch, J = S.srcRs = M._private.rscratch;
28799
+ var D = S.srcPos = M.position(), k = S.tgtPos = P.position(), V = S.srcW = M.outerWidth(), K = S.srcH = M.outerHeight(), j = S.tgtW = P.outerWidth(), R = S.tgtH = P.outerHeight(), X = S.srcShape = r.nodeShapes[e.getNodeShape(M)], G = S.tgtShape = r.nodeShapes[e.getNodeShape(P)], W = S.srcCornerRadius = M.pstyle("corner-radius").value === "auto" ? "auto" : M.pstyle("corner-radius").pfValue, Z = S.tgtCornerRadius = P.pstyle("corner-radius").value === "auto" ? "auto" : P.pstyle("corner-radius").pfValue, z = S.tgtRs = P._private.rscratch, J = S.srcRs = M._private.rscratch;
28800
28800
  S.dirCounts = {
28801
28801
  north: 0,
28802
28802
  west: 0,
@@ -28811,7 +28811,7 @@ yr.findEdgeControlPoints = function(t) {
28811
28811
  var q = S.eles[Y], ie = q[0]._private.rscratch, ge = q.pstyle("curve-style").value, Oe = ge === "unbundled-bezier" || Ra(ge, "segments") || Ra(ge, "taxi"), ue = !M.same(q.source());
28812
28812
  if (!S.calculatedIntersection && M !== P && (S.hasBezier || S.hasUnbundled)) {
28813
28813
  S.calculatedIntersection = !0;
28814
- var ne = X.intersectLine(D.x, D.y, V, K, k.x, k.y, 0, W, J), le = S.srcIntn = ne, he = z.intersectLine(k.x, k.y, j, R, D.x, D.y, 0, Z, G), de = S.tgtIntn = he, se = S.intersectionPts = {
28814
+ var ne = X.intersectLine(D.x, D.y, V, K, k.x, k.y, 0, W, J), le = S.srcIntn = ne, he = G.intersectLine(k.x, k.y, j, R, D.x, D.y, 0, Z, z), de = S.tgtIntn = he, se = S.intersectionPts = {
28815
28815
  x1: ne[0],
28816
28816
  x2: he[0],
28817
28817
  y1: ne[1],
@@ -28833,7 +28833,7 @@ yr.findEdgeControlPoints = function(t) {
28833
28833
  x: -Be.y,
28834
28834
  y: Be.x
28835
28835
  };
28836
- S.nodesOverlap = !xe(ae) || z.checkPoint(ne[0], ne[1], 0, j, R, k.x, k.y, Z, G) || X.checkPoint(he[0], he[1], 0, V, K, D.x, D.y, W, J), S.vectorNormInverse = Ce, Q = {
28836
+ S.nodesOverlap = !xe(ae) || G.checkPoint(ne[0], ne[1], 0, j, R, k.x, k.y, Z, z) || X.checkPoint(he[0], he[1], 0, V, K, D.x, D.y, W, J), S.vectorNormInverse = Ce, Q = {
28837
28837
  nodesOverlap: S.nodesOverlap,
28838
28838
  dirCounts: S.dirCounts,
28839
28839
  calculatedIntersection: !0,
@@ -28841,7 +28841,7 @@ yr.findEdgeControlPoints = function(t) {
28841
28841
  hasUnbundled: S.hasUnbundled,
28842
28842
  eles: S.eles,
28843
28843
  srcPos: k,
28844
- srcRs: G,
28844
+ srcRs: z,
28845
28845
  tgtPos: D,
28846
28846
  tgtRs: J,
28847
28847
  srcW: j,
@@ -28850,7 +28850,7 @@ yr.findEdgeControlPoints = function(t) {
28850
28850
  tgtH: K,
28851
28851
  srcIntn: de,
28852
28852
  tgtIntn: le,
28853
- srcShape: z,
28853
+ srcShape: G,
28854
28854
  tgtShape: X,
28855
28855
  posPts: {
28856
28856
  x1: me.x2,
@@ -28941,8 +28941,8 @@ zl.findEndpoints = function(t) {
28941
28941
  var j = [y.ctrlpts[0], y.ctrlpts[1]], R = b ? [y.ctrlpts[y.ctrlpts.length - 2], y.ctrlpts[y.ctrlpts.length - 1]] : j;
28942
28942
  P = R, _ = j;
28943
28943
  } else if (E) {
28944
- var X = x ? y.segpts.slice(0, 2) : [u.x + V[0], u.y + V[1]], z = x ? y.segpts.slice(y.segpts.length - 2) : [l.x + K[0], l.y + K[1]];
28945
- P = z, _ = X;
28944
+ var X = x ? y.segpts.slice(0, 2) : [u.x + V[0], u.y + V[1]], G = x ? y.segpts.slice(y.segpts.length - 2) : [l.x + K[0], l.y + K[1]];
28945
+ P = G, _ = X;
28946
28946
  }
28947
28947
  if (O === "inside-to-node")
28948
28948
  o = [u.x, u.y];
@@ -28951,7 +28951,7 @@ zl.findEndpoints = function(t) {
28951
28951
  else if (O === "outside-to-line")
28952
28952
  o = y.tgtIntn;
28953
28953
  else if (O === "outside-to-node" || O === "outside-to-node-or-label" ? D = P : (O === "outside-to-line" || O === "outside-to-line-or-label") && (D = [l.x, l.y]), o = i.nodeShapes[this.getNodeShape(A)].intersectLine(u.x, u.y, A.outerWidth(), A.outerHeight(), D[0], D[1], 0, M, g), O === "outside-to-node-or-label" || O === "outside-to-line-or-label") {
28954
- var W = A._private.rscratch, Z = W.labelWidth, G = W.labelHeight, J = W.labelX, Y = W.labelY, q = Z / 2, ie = G / 2, ge = A.pstyle("text-valign").value;
28954
+ var W = A._private.rscratch, Z = W.labelWidth, z = W.labelHeight, J = W.labelX, Y = W.labelY, q = Z / 2, ie = z / 2, ge = A.pstyle("text-valign").value;
28955
28955
  ge === "top" ? Y -= ie : ge === "bottom" && (Y += ie);
28956
28956
  var Oe = A.pstyle("text-halign").value;
28957
28957
  Oe === "left" ? J -= q : Oe === "right" && (J += q);
@@ -29951,7 +29951,7 @@ ks.load = function() {
29951
29951
  }
29952
29952
  });
29953
29953
  }, !1);
29954
- var V, K, j, R, X, z, W, Z, G, J, Y, q, ie, ge = function(H, $, te, ee) {
29954
+ var V, K, j, R, X, G, W, Z, z, J, Y, q, ie, ge = function(H, $, te, ee) {
29955
29955
  return Math.sqrt((te - H) * (te - H) + (ee - $) * (ee - $));
29956
29956
  }, Oe = function(H, $, te, ee) {
29957
29957
  return (te - H) * (te - H) + (ee - $) * (ee - $);
@@ -29985,11 +29985,11 @@ ks.load = function() {
29985
29985
  if (H.touches[1]) {
29986
29986
  t.touchData.singleTouchMoved = !0, v(t.dragData.touchDragEles);
29987
29987
  var Ae = t.findContainerClientCoords();
29988
- G = Ae[0], J = Ae[1], Y = Ae[2], q = Ae[3], V = H.touches[0].clientX - G, K = H.touches[0].clientY - J, j = H.touches[1].clientX - G, R = H.touches[1].clientY - J, ie = 0 <= V && V <= Y && 0 <= j && j <= Y && 0 <= K && K <= q && 0 <= R && R <= q;
29988
+ z = Ae[0], J = Ae[1], Y = Ae[2], q = Ae[3], V = H.touches[0].clientX - z, K = H.touches[0].clientY - J, j = H.touches[1].clientX - z, R = H.touches[1].clientY - J, ie = 0 <= V && V <= Y && 0 <= j && j <= Y && 0 <= K && K <= q && 0 <= R && R <= q;
29989
29989
  var we = $.pan(), Te = $.zoom();
29990
- X = ge(V, K, j, R), z = Oe(V, K, j, R), W = [(V + j) / 2, (K + R) / 2], Z = [(W[0] - we.x) / Te, (W[1] - we.y) / Te];
29990
+ X = ge(V, K, j, R), G = Oe(V, K, j, R), W = [(V + j) / 2, (K + R) / 2], Z = [(W[0] - we.x) / Te, (W[1] - we.y) / Te];
29991
29991
  var Me = 200, ke = Me * Me;
29992
- if (z < ke && !H.touches[2]) {
29992
+ if (G < ke && !H.touches[2]) {
29993
29993
  var He = t.findNearestElement(te[0], te[1], !0, !0), Qe = t.findNearestElement(te[2], te[3], !0, !0);
29994
29994
  He && He.isNode() ? (He.activate().emit(fe("cxttapstart")), t.touchData.start = He) : Qe && Qe.isNode() ? (Qe.activate().emit(fe("cxttapstart")), t.touchData.start = Qe) : $.emit(fe("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
29995
29995
  return;
@@ -30069,7 +30069,7 @@ ks.load = function() {
30069
30069
  }
30070
30070
  if ($ && t.touchData.cxt) {
30071
30071
  H.preventDefault();
30072
- var Rt = H.touches[0].clientX - G, jt = H.touches[0].clientY - J, Vt = H.touches[1].clientX - G, rr = H.touches[1].clientY - J, Ea = Oe(Rt, jt, Vt, rr), Pt = Ea / z, qn = 150, Zn = qn * qn, oo = 1.5, eu = oo * oo;
30072
+ var Rt = H.touches[0].clientX - z, jt = H.touches[0].clientY - J, Vt = H.touches[1].clientX - z, rr = H.touches[1].clientY - J, Ea = Oe(Rt, jt, Vt, rr), Pt = Ea / G, qn = 150, Zn = qn * qn, oo = 1.5, eu = oo * oo;
30073
30073
  if (Pt >= eu || Ea >= Zn) {
30074
30074
  t.touchData.cxt = !1, t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
30075
30075
  var fi = Te("cxttapend");
@@ -30093,7 +30093,7 @@ ks.load = function() {
30093
30093
  _s.grabbed = !1, _s.rscratch.inDragLayer = !1;
30094
30094
  }
30095
30095
  }
30096
- var Gr = t.touchData.start, Rt = H.touches[0].clientX - G, jt = H.touches[0].clientY - J, Vt = H.touches[1].clientX - G, rr = H.touches[1].clientY - J, sB = ge(Rt, jt, Vt, rr), RO = sB / X;
30096
+ var Gr = t.touchData.start, Rt = H.touches[0].clientX - z, jt = H.touches[0].clientY - J, Vt = H.touches[1].clientX - z, rr = H.touches[1].clientY - J, sB = ge(Rt, jt, Vt, rr), RO = sB / X;
30097
30097
  if (ie) {
30098
30098
  var PO = Rt - V, kO = jt - K, NO = Vt - j, HO = rr - R, _O = (PO + NO) / 2, VO = (kO + HO) / 2, Vs = ee.zoom(), Jd = Vs * RO, tu = ee.pan(), AB = Z[0] * Vs + tu.x, lB = Z[1] * Vs + tu.y, KO = {
30099
30099
  x: -Jd / Vs * (AB - tu.x - _O) + AB,
@@ -31742,8 +31742,8 @@ io.drawText = function(t, e, r) {
31742
31742
  }
31743
31743
  var j = 2 * e.pstyle("text-outline-width").pfValue;
31744
31744
  if (j > 0 && (t.lineWidth = j), e.pstyle("text-wrap").value === "wrap") {
31745
- var R = Qr(o, "labelWrapCachedLines", r), X = Qr(o, "labelLineHeight", r), z = h / 2, W = this.getLabelJustification(e);
31746
- switch (W === "auto" || (m === "left" ? W === "left" ? A += -h : W === "center" && (A += -z) : m === "center" ? W === "left" ? A += -z : W === "right" && (A += z) : m === "right" && (W === "center" ? A += z : W === "right" && (A += h))), w) {
31745
+ var R = Qr(o, "labelWrapCachedLines", r), X = Qr(o, "labelLineHeight", r), G = h / 2, W = this.getLabelJustification(e);
31746
+ switch (W === "auto" || (m === "left" ? W === "left" ? A += -h : W === "center" && (A += -G) : m === "center" ? W === "left" ? A += -G : W === "right" && (A += G) : m === "right" && (W === "center" ? A += G : W === "right" && (A += h))), w) {
31747
31747
  case "top":
31748
31748
  l -= (R.length - 1) * X;
31749
31749
  break;
@@ -31777,19 +31777,19 @@ li.drawNode = function(t, e, r) {
31777
31777
  });
31778
31778
  }
31779
31779
  }
31780
- var F = e.pstyle("background-blacken").value, U = e.pstyle("border-width").pfValue, S = e.pstyle("background-opacity").value * f, Q = e.pstyle("border-color").value, L = e.pstyle("border-style").value, O = e.pstyle("border-join").value, M = e.pstyle("border-cap").value, P = e.pstyle("border-position").value, _ = e.pstyle("border-dash-pattern").pfValue, D = e.pstyle("border-dash-offset").pfValue, k = e.pstyle("border-opacity").value * f, V = e.pstyle("outline-width").pfValue, K = e.pstyle("outline-color").value, j = e.pstyle("outline-style").value, R = e.pstyle("outline-opacity").value * f, X = e.pstyle("outline-offset").value, z = e.pstyle("corner-radius").value;
31781
- z !== "auto" && (z = e.pstyle("corner-radius").pfValue);
31780
+ var F = e.pstyle("background-blacken").value, U = e.pstyle("border-width").pfValue, S = e.pstyle("background-opacity").value * f, Q = e.pstyle("border-color").value, L = e.pstyle("border-style").value, O = e.pstyle("border-join").value, M = e.pstyle("border-cap").value, P = e.pstyle("border-position").value, _ = e.pstyle("border-dash-pattern").pfValue, D = e.pstyle("border-dash-offset").pfValue, k = e.pstyle("border-opacity").value * f, V = e.pstyle("outline-width").pfValue, K = e.pstyle("outline-color").value, j = e.pstyle("outline-style").value, R = e.pstyle("outline-opacity").value * f, X = e.pstyle("outline-offset").value, G = e.pstyle("corner-radius").value;
31781
+ G !== "auto" && (G = e.pstyle("corner-radius").pfValue);
31782
31782
  var W = function() {
31783
31783
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : S;
31784
31784
  o.eleFillStyle(t, e, ve);
31785
31785
  }, Z = function() {
31786
31786
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : k;
31787
31787
  o.colorStrokeStyle(t, Q[0], Q[1], Q[2], ve);
31788
- }, G = function() {
31788
+ }, z = function() {
31789
31789
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : R;
31790
31790
  o.colorStrokeStyle(t, K[0], K[1], K[2], ve);
31791
31791
  }, J = function(ve, oe, H, $) {
31792
- var te = o.nodePathCache = o.nodePathCache || [], ee = AD(H === "polygon" ? H + "," + $.join(",") : H, "" + oe, "" + ve, "" + z), re = te[ee], fe, Ae = !1;
31792
+ var te = o.nodePathCache = o.nodePathCache || [], ee = AD(H === "polygon" ? H + "," + $.join(",") : H, "" + oe, "" + ve, "" + G), re = te[ee], fe, Ae = !1;
31793
31793
  return re != null ? (fe = re, Ae = !0, u.pathCache = fe) : (fe = new Path2D(), te[ee] = u.pathCache = fe), {
31794
31794
  path: fe,
31795
31795
  cacheHit: Ae
@@ -31806,7 +31806,7 @@ li.drawNode = function(t, e, r) {
31806
31806
  d && (ve = {
31807
31807
  x: 0,
31808
31808
  y: 0
31809
- }), o.nodeShapes[o.getNodeShape(e)].draw(h || t, ve.x, ve.y, s, A, z, u);
31809
+ }), o.nodeShapes[o.getNodeShape(e)].draw(h || t, ve.x, ve.y, s, A, G, u);
31810
31810
  }
31811
31811
  d ? t.fill(h) : t.fill();
31812
31812
  }, Oe = function() {
@@ -31821,10 +31821,10 @@ li.drawNode = function(t, e, r) {
31821
31821
  l.backgrounding = $ !== T, H !== l.backgrounding && e.updateStyle(!1);
31822
31822
  }, ue = function() {
31823
31823
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
31824
- o.hasPie(e) && (o.drawPie(t, e, oe), ve && (d || o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, z, u)));
31824
+ o.hasPie(e) && (o.drawPie(t, e, oe), ve && (d || o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, G, u)));
31825
31825
  }, ne = function() {
31826
31826
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, oe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : f;
31827
- o.hasStripe(e) && (t.save(), d ? t.clip(u.pathCache) : (o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, z, u), t.clip()), o.drawStripe(t, e, oe), t.restore(), ve && (d || o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, z, u)));
31827
+ o.hasStripe(e) && (t.save(), d ? t.clip(u.pathCache) : (o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, G, u), t.clip()), o.drawStripe(t, e, oe), t.restore(), ve && (d || o.nodeShapes[o.getNodeShape(e)].draw(t, c.x, c.y, s, A, G, u)));
31828
31828
  }, le = function() {
31829
31829
  var ve = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : f, oe = (F > 0 ? F : -F) * ve, H = F > 0 ? 0 : 255;
31830
31830
  F !== 0 && (o.colorFillStyle(t, H, H, H, oe), d ? t.fill(h) : t.fill());
@@ -31891,8 +31891,8 @@ li.drawNode = function(t, e, r) {
31891
31891
  o.drawEllipsePath(Ae || t, ve.x, ve.y, ee, re);
31892
31892
  else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(oe)) {
31893
31893
  var Te = 0, Me = 0, ke = 0;
31894
- oe === "round-diamond" ? Te = (H + X + V) * 1.4 : oe === "round-heptagon" ? (Te = (H + X + V) * 1.075, ke = -(H / 2 + X + V) / 35) : oe === "round-hexagon" ? Te = (H + X + V) * 1.12 : oe === "round-pentagon" ? (Te = (H + X + V) * 1.13, ke = -(H / 2 + X + V) / 15) : oe === "round-tag" ? (Te = (H + X + V) * 1.12, Me = (H / 2 + V + X) * 0.07) : oe === "round-triangle" && (Te = (H + X + V) * (Math.PI / 2), ke = -(H + X / 2 + V) / Math.PI), Te !== 0 && ($ = (s + Te) / s, ee = s * $, ["round-hexagon", "round-tag"].includes(oe) || (te = (A + Te) / A, re = A * te)), z = z === "auto" ? vD(ee, re) : z;
31895
- for (var He = ee / 2, Qe = re / 2, _e = z + (H + V + X) / 2, be = new Array(fe.length / 2), We = new Array(fe.length / 2), At = 0; At < fe.length / 2; At++)
31894
+ oe === "round-diamond" ? Te = (H + X + V) * 1.4 : oe === "round-heptagon" ? (Te = (H + X + V) * 1.075, ke = -(H / 2 + X + V) / 35) : oe === "round-hexagon" ? Te = (H + X + V) * 1.12 : oe === "round-pentagon" ? (Te = (H + X + V) * 1.13, ke = -(H / 2 + X + V) / 15) : oe === "round-tag" ? (Te = (H + X + V) * 1.12, Me = (H / 2 + V + X) * 0.07) : oe === "round-triangle" && (Te = (H + X + V) * (Math.PI / 2), ke = -(H + X / 2 + V) / Math.PI), Te !== 0 && ($ = (s + Te) / s, ee = s * $, ["round-hexagon", "round-tag"].includes(oe) || (te = (A + Te) / A, re = A * te)), G = G === "auto" ? vD(ee, re) : G;
31895
+ for (var He = ee / 2, Qe = re / 2, _e = G + (H + V + X) / 2, be = new Array(fe.length / 2), We = new Array(fe.length / 2), At = 0; At < fe.length / 2; At++)
31896
31896
  be[At] = {
31897
31897
  x: ve.x + Me + He * fe[At * 2],
31898
31898
  y: ve.y + ke + Qe * fe[At * 2 + 1]
@@ -31902,11 +31902,11 @@ li.drawNode = function(t, e, r) {
31902
31902
  jt = be[wr % rr], Vt = be[(wr + 1) % rr], We[wr] = Ow(Rt, jt, Vt, _e), Rt = jt, jt = Vt;
31903
31903
  o.drawRoundPolygonPath(Ae || t, ve.x + Me, ve.y + ke, s * $, A * te, fe, We);
31904
31904
  } else if (["roundrectangle", "round-rectangle"].includes(oe))
31905
- z = z === "auto" ? Za(ee, re) : z, o.drawRoundRectanglePath(Ae || t, ve.x, ve.y, ee, re, z + (H + V + X) / 2);
31905
+ G = G === "auto" ? Za(ee, re) : G, o.drawRoundRectanglePath(Ae || t, ve.x, ve.y, ee, re, G + (H + V + X) / 2);
31906
31906
  else if (["cutrectangle", "cut-rectangle"].includes(oe))
31907
- z = z === "auto" ? Cw() : z, o.drawCutRectanglePath(Ae || t, ve.x, ve.y, ee, re, null, z + (H + V + X) / 4);
31907
+ G = G === "auto" ? Cw() : G, o.drawCutRectanglePath(Ae || t, ve.x, ve.y, ee, re, null, G + (H + V + X) / 4);
31908
31908
  else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(oe))
31909
- z = z === "auto" ? Za(ee, re) : z, o.drawBottomRoundRectanglePath(Ae || t, ve.x, ve.y, ee, re, z + (H + V + X) / 2);
31909
+ G = G === "auto" ? Za(ee, re) : G, o.drawBottomRoundRectanglePath(Ae || t, ve.x, ve.y, ee, re, G + (H + V + X) / 2);
31910
31910
  else if (oe === "barrel")
31911
31911
  o.drawBarrelPath(Ae || t, ve.x, ve.y, ee, re);
31912
31912
  else if (oe.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(oe)) {
@@ -31932,9 +31932,9 @@ li.drawNode = function(t, e, r) {
31932
31932
  }, Ue = e.pstyle("ghost").value === "yes";
31933
31933
  if (Ue) {
31934
31934
  var ae = e.pstyle("ghost-offset-x").pfValue, ye = e.pstyle("ghost-offset-y").pfValue, Be = e.pstyle("ghost-opacity").value, Ce = Be * f;
31935
- t.translate(ae, ye), G(), de(), W(Be * S), ge(), Oe(Ce, !0), Z(Be * k), he(), ue(F !== 0 || U !== 0), ne(F !== 0 || U !== 0), Oe(Ce, !1), le(Ce), t.translate(-ae, -ye);
31935
+ t.translate(ae, ye), z(), de(), W(Be * S), ge(), Oe(Ce, !0), Z(Be * k), he(), ue(F !== 0 || U !== 0), ne(F !== 0 || U !== 0), Oe(Ce, !1), le(Ce), t.translate(-ae, -ye);
31936
31936
  }
31937
- d && t.translate(-c.x, -c.y), me(), d && t.translate(c.x, c.y), G(), de(), W(), ge(), Oe(f, !0), Z(), he(), ue(F !== 0 || U !== 0), ne(F !== 0 || U !== 0), Oe(f, !1), le(), d && t.translate(-c.x, -c.y), Ee(), se(), r && t.translate(v.x1, v.y1);
31937
+ d && t.translate(-c.x, -c.y), me(), d && t.translate(c.x, c.y), z(), de(), W(), ge(), Oe(f, !0), Z(), he(), ue(F !== 0 || U !== 0), ne(F !== 0 || U !== 0), Oe(f, !1), le(), d && t.translate(-c.x, -c.y), Ee(), se(), r && t.translate(v.x1, v.y1);
31938
31938
  }
31939
31939
  };
31940
31940
  var CL = function(e) {
@@ -32155,16 +32155,16 @@ Fr.render = function(t) {
32155
32155
  }, E = e.prevViewport, x = E === void 0 || b.zoom !== E.zoom || b.pan.x !== E.pan.x || b.pan.y !== E.pan.y;
32156
32156
  !x && !(p && !h) && (e.motionBlurPxRatio = 1), s && (T = s), w *= A, T.x *= A, T.y *= A;
32157
32157
  var B = e.getCachedZSortedEles();
32158
- function F(Z, G, J, Y, q) {
32158
+ function F(Z, z, J, Y, q) {
32159
32159
  var ie = Z.globalCompositeOperation;
32160
- Z.globalCompositeOperation = "destination-out", e.colorFillStyle(Z, 255, 255, 255, e.motionBlurTransparency), Z.fillRect(G, J, Y, q), Z.globalCompositeOperation = ie;
32160
+ Z.globalCompositeOperation = "destination-out", e.colorFillStyle(Z, 255, 255, 255, e.motionBlurTransparency), Z.fillRect(z, J, Y, q), Z.globalCompositeOperation = ie;
32161
32161
  }
32162
- function U(Z, G) {
32162
+ function U(Z, z) {
32163
32163
  var J, Y, q, ie;
32164
32164
  !e.clearingMotionBlur && (Z === l.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] || Z === l.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG]) ? (J = {
32165
32165
  x: C.x * d,
32166
32166
  y: C.y * d
32167
- }, Y = m * d, q = e.canvasWidth * d, ie = e.canvasHeight * d) : (J = T, Y = w, q = e.canvasWidth, ie = e.canvasHeight), Z.setTransform(1, 0, 0, 1, 0, 0), G === "motionBlur" ? F(Z, 0, 0, q, ie) : !n && (G === void 0 || G) && Z.clearRect(0, 0, q, ie), a || (Z.translate(J.x, J.y), Z.scale(Y, Y)), s && Z.translate(s.x, s.y), o && Z.scale(o, o);
32167
+ }, Y = m * d, q = e.canvasWidth * d, ie = e.canvasHeight * d) : (J = T, Y = w, q = e.canvasWidth, ie = e.canvasHeight), Z.setTransform(1, 0, 0, 1, 0, 0), z === "motionBlur" ? F(Z, 0, 0, q, ie) : !n && (z === void 0 || z) && Z.clearRect(0, 0, q, ie), a || (Z.translate(J.x, J.y), Z.scale(Y, Y)), s && Z.translate(s.x, s.y), o && Z.scale(o, o);
32168
32168
  }
32169
32169
  if (c || (e.textureDrawLastFrame = !1), c) {
32170
32170
  if (e.textureDrawLastFrame = !0, !e.textureCache) {
@@ -32204,10 +32204,10 @@ Fr.render = function(t) {
32204
32204
  U(Q, f && !V ? "motionBlur" : void 0), D ? e.drawCachedNodes(Q, B.drag, A, P) : e.drawCachedElements(Q, B.drag, A, P), e.debug && e.drawDebugPoints(Q, B.drag), !a && !f && (u[e.DRAG] = !1);
32205
32205
  }
32206
32206
  if (this.drawSelectionRectangle(t, U), f && d !== 1) {
32207
- var j = l.contexts[e.NODE], R = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], X = l.contexts[e.DRAG], z = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], W = function(G, J, Y) {
32208
- G.setTransform(1, 0, 0, 1, 0, 0), Y || !v ? G.clearRect(0, 0, e.canvasWidth, e.canvasHeight) : F(G, 0, 0, e.canvasWidth, e.canvasHeight);
32207
+ var j = l.contexts[e.NODE], R = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], X = l.contexts[e.DRAG], G = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], W = function(z, J, Y) {
32208
+ z.setTransform(1, 0, 0, 1, 0, 0), Y || !v ? z.clearRect(0, 0, e.canvasWidth, e.canvasHeight) : F(z, 0, 0, e.canvasWidth, e.canvasHeight);
32209
32209
  var q = d;
32210
- G.drawImage(
32210
+ z.drawImage(
32211
32211
  J,
32212
32212
  // img
32213
32213
  0,
@@ -32224,7 +32224,7 @@ Fr.render = function(t) {
32224
32224
  // w, h
32225
32225
  );
32226
32226
  };
32227
- (u[e.NODE] || k[e.NODE]) && (W(j, R, k[e.NODE]), u[e.NODE] = !1), (u[e.DRAG] || k[e.DRAG]) && (W(X, z, k[e.DRAG]), u[e.DRAG] = !1);
32227
+ (u[e.NODE] || k[e.NODE]) && (W(j, R, k[e.NODE]), u[e.NODE] = !1), (u[e.DRAG] || k[e.DRAG]) && (W(X, G, k[e.DRAG]), u[e.DRAG] = !1);
32228
32228
  }
32229
32229
  e.prevViewport = b, e.clearingMotionBlur && (e.clearingMotionBlur = !1, e.motionBlurCleared = !0, e.motionBlur = !0), f && (e.motionBlurTimeout = setTimeout(function() {
32230
32230
  e.motionBlurTimeout = null, e.clearedForMotionBlur[e.NODE] = !1, e.clearedForMotionBlur[e.DRAG] = !1, e.motionBlur = !1, e.clearingMotionBlur = !c, e.mbFrames = 0, u[e.NODE] = !0, u[e.DRAG] = !0, e.redraw();
@@ -34185,75 +34185,75 @@ function LL(t) {
34185
34185
  for (var l = 0; l < Ke.BUFFER_COUNT; l++)
34186
34186
  e.data.bufferCanvases[l] = n.createElement("canvas"), e.data.bufferContexts[l] = e.data.bufferCanvases[l].getContext("2d"), e.data.bufferCanvases[l].style.position = "absolute", e.data.bufferCanvases[l].setAttribute("data-id", "buffer" + l), e.data.bufferCanvases[l].style.zIndex = String(-l - 1), e.data.bufferCanvases[l].style.visibility = "hidden";
34187
34187
  e.pathsEnabled = !0;
34188
- var f = Tr(), d = function(G) {
34188
+ var f = Tr(), d = function(z) {
34189
34189
  return {
34190
- x: (G.x1 + G.x2) / 2,
34191
- y: (G.y1 + G.y2) / 2
34190
+ x: (z.x1 + z.x2) / 2,
34191
+ y: (z.y1 + z.y2) / 2
34192
34192
  };
34193
- }, h = function(G) {
34193
+ }, h = function(z) {
34194
34194
  return {
34195
- x: -G.w / 2,
34196
- y: -G.h / 2
34195
+ x: -z.w / 2,
34196
+ y: -z.h / 2
34197
34197
  };
34198
- }, p = function(G) {
34199
- var J = G[0]._private, Y = J.oldBackgroundTimestamp === J.backgroundTimestamp;
34198
+ }, p = function(z) {
34199
+ var J = z[0]._private, Y = J.oldBackgroundTimestamp === J.backgroundTimestamp;
34200
34200
  return !Y;
34201
- }, g = function(G) {
34202
- return G[0]._private.nodeKey;
34203
- }, v = function(G) {
34204
- return G[0]._private.labelStyleKey;
34205
- }, y = function(G) {
34206
- return G[0]._private.sourceLabelStyleKey;
34207
- }, m = function(G) {
34208
- return G[0]._private.targetLabelStyleKey;
34209
- }, w = function(G, J, Y, q, ie) {
34210
- return e.drawElement(G, J, Y, !1, !1, ie);
34211
- }, C = function(G, J, Y, q, ie) {
34212
- return e.drawElementText(G, J, Y, q, "main", ie);
34213
- }, T = function(G, J, Y, q, ie) {
34214
- return e.drawElementText(G, J, Y, q, "source", ie);
34215
- }, b = function(G, J, Y, q, ie) {
34216
- return e.drawElementText(G, J, Y, q, "target", ie);
34217
- }, E = function(G) {
34218
- return G.boundingBox(), G[0]._private.bodyBounds;
34219
- }, x = function(G) {
34220
- return G.boundingBox(), G[0]._private.labelBounds.main || f;
34221
- }, B = function(G) {
34222
- return G.boundingBox(), G[0]._private.labelBounds.source || f;
34223
- }, F = function(G) {
34224
- return G.boundingBox(), G[0]._private.labelBounds.target || f;
34225
- }, U = function(G, J) {
34201
+ }, g = function(z) {
34202
+ return z[0]._private.nodeKey;
34203
+ }, v = function(z) {
34204
+ return z[0]._private.labelStyleKey;
34205
+ }, y = function(z) {
34206
+ return z[0]._private.sourceLabelStyleKey;
34207
+ }, m = function(z) {
34208
+ return z[0]._private.targetLabelStyleKey;
34209
+ }, w = function(z, J, Y, q, ie) {
34210
+ return e.drawElement(z, J, Y, !1, !1, ie);
34211
+ }, C = function(z, J, Y, q, ie) {
34212
+ return e.drawElementText(z, J, Y, q, "main", ie);
34213
+ }, T = function(z, J, Y, q, ie) {
34214
+ return e.drawElementText(z, J, Y, q, "source", ie);
34215
+ }, b = function(z, J, Y, q, ie) {
34216
+ return e.drawElementText(z, J, Y, q, "target", ie);
34217
+ }, E = function(z) {
34218
+ return z.boundingBox(), z[0]._private.bodyBounds;
34219
+ }, x = function(z) {
34220
+ return z.boundingBox(), z[0]._private.labelBounds.main || f;
34221
+ }, B = function(z) {
34222
+ return z.boundingBox(), z[0]._private.labelBounds.source || f;
34223
+ }, F = function(z) {
34224
+ return z.boundingBox(), z[0]._private.labelBounds.target || f;
34225
+ }, U = function(z, J) {
34226
34226
  return J;
34227
- }, S = function(G) {
34228
- return d(E(G));
34229
- }, Q = function(G, J, Y) {
34230
- var q = G ? G + "-" : "";
34227
+ }, S = function(z) {
34228
+ return d(E(z));
34229
+ }, Q = function(z, J, Y) {
34230
+ var q = z ? z + "-" : "";
34231
34231
  return {
34232
34232
  x: J.x + Y.pstyle(q + "text-margin-x").pfValue,
34233
34233
  y: J.y + Y.pstyle(q + "text-margin-y").pfValue
34234
34234
  };
34235
- }, L = function(G, J, Y) {
34236
- var q = G[0]._private.rscratch;
34235
+ }, L = function(z, J, Y) {
34236
+ var q = z[0]._private.rscratch;
34237
34237
  return {
34238
34238
  x: q[J],
34239
34239
  y: q[Y]
34240
34240
  };
34241
- }, O = function(G) {
34242
- return Q("", L(G, "labelX", "labelY"), G);
34243
- }, M = function(G) {
34244
- return Q("source", L(G, "sourceLabelX", "sourceLabelY"), G);
34245
- }, P = function(G) {
34246
- return Q("target", L(G, "targetLabelX", "targetLabelY"), G);
34247
- }, _ = function(G) {
34248
- return h(E(G));
34249
- }, D = function(G) {
34250
- return h(B(G));
34251
- }, k = function(G) {
34252
- return h(F(G));
34253
- }, V = function(G) {
34254
- var J = x(G), Y = h(x(G));
34255
- if (G.isNode()) {
34256
- switch (G.pstyle("text-halign").value) {
34241
+ }, O = function(z) {
34242
+ return Q("", L(z, "labelX", "labelY"), z);
34243
+ }, M = function(z) {
34244
+ return Q("source", L(z, "sourceLabelX", "sourceLabelY"), z);
34245
+ }, P = function(z) {
34246
+ return Q("target", L(z, "targetLabelX", "targetLabelY"), z);
34247
+ }, _ = function(z) {
34248
+ return h(E(z));
34249
+ }, D = function(z) {
34250
+ return h(B(z));
34251
+ }, k = function(z) {
34252
+ return h(F(z));
34253
+ }, V = function(z) {
34254
+ var J = x(z), Y = h(x(z));
34255
+ if (z.isNode()) {
34256
+ switch (z.pstyle("text-halign").value) {
34257
34257
  case "left":
34258
34258
  Y.x = -J.w - (J.leftPad || 0);
34259
34259
  break;
@@ -34261,7 +34261,7 @@ function LL(t) {
34261
34261
  Y.x = -(J.rightPad || 0);
34262
34262
  break;
34263
34263
  }
34264
- switch (G.pstyle("text-valign").value) {
34264
+ switch (z.pstyle("text-valign").value) {
34265
34265
  case "top":
34266
34266
  Y.y = -J.h - (J.topPad || 0);
34267
34267
  break;
@@ -34301,17 +34301,17 @@ function LL(t) {
34301
34301
  getRotationPoint: P,
34302
34302
  getRotationOffset: k,
34303
34303
  isVisible: U
34304
- }), z = e.data.lyrTxrCache = new wL(e);
34305
- e.onUpdateEleCalcs(function(G, J) {
34306
- K.invalidateElements(J), j.invalidateElements(J), R.invalidateElements(J), X.invalidateElements(J), z.invalidateElements(J);
34304
+ }), G = e.data.lyrTxrCache = new wL(e);
34305
+ e.onUpdateEleCalcs(function(z, J) {
34306
+ K.invalidateElements(J), j.invalidateElements(J), R.invalidateElements(J), X.invalidateElements(J), G.invalidateElements(J);
34307
34307
  for (var Y = 0; Y < J.length; Y++) {
34308
34308
  var q = J[Y]._private;
34309
34309
  q.oldBackgroundTimestamp = q.backgroundTimestamp;
34310
34310
  }
34311
34311
  });
34312
- var W = function(G) {
34313
- for (var J = 0; J < G.length; J++)
34314
- z.enqueueElementRefinement(G[J].ele);
34312
+ var W = function(z) {
34313
+ for (var J = 0; J < z.length; J++)
34314
+ G.enqueueElementRefinement(z[J].ele);
34315
34315
  };
34316
34316
  K.onDequeue(W), j.onDequeue(W), R.onDequeue(W), X.onDequeue(W), t.webgl && e.initWebgl(t, {
34317
34317
  getStyleKey: g,
@@ -36516,11 +36516,11 @@ function N8() {
36516
36516
  R >= 0 && P.splice(R, 1), k--, _--;
36517
36517
  }
36518
36518
  E != null ? V = (P.indexOf(K[0]) + 1) % k : V = 0;
36519
- for (var X = Math.abs(B - x) / _, z = V; D != _; z = ++z % k) {
36520
- var W = P[z].getOtherEnd(b);
36519
+ for (var X = Math.abs(B - x) / _, G = V; D != _; G = ++G % k) {
36520
+ var W = P[G].getOtherEnd(b);
36521
36521
  if (W != E) {
36522
- var Z = (x + D * X) % 360, G = (Z + X) % 360;
36523
- C.branchRadialLayout(W, b, Z, G, F + U, U), D++;
36522
+ var Z = (x + D * X) % 360, z = (Z + X) % 360;
36523
+ C.branchRadialLayout(W, b, Z, z, F + U, U), D++;
36524
36524
  }
36525
36525
  }
36526
36526
  }, C.maxDiagonalInTree = function(b) {
@@ -36928,7 +36928,7 @@ function _8() {
36928
36928
  var V = T.layout.getPositionsData();
36929
36929
  w.eles.nodes().positions(function(K, j) {
36930
36930
  if (typeof K == "number" && (K = j), !K.isParent()) {
36931
- for (var R = K.id(), X = V[R], z = K; X == null && (X = V[z.data("parent")] || V["DummyCompound_" + z.data("parent")], V[R] = X, z = z.parent()[0], z != null); )
36931
+ for (var R = K.id(), X = V[R], G = K; X == null && (X = V[G.data("parent")] || V["DummyCompound_" + G.data("parent")], V[R] = X, G = G.parent()[0], G != null); )
36932
36932
  ;
36933
36933
  return X != null ? {
36934
36934
  x: X.x,
@@ -41770,14 +41770,14 @@ var yt = function(t, e, r, n, a) {
41770
41770
  c.width / c.height
41771
41771
  ]), B = d[0], O = d[1], M = d[2], S = d[3], Q = d[4], E = i.ctx.createPattern(i.resizeImage(c, S, Q), "repeat"), i.renderRepeat(B, E, O, M)), [3, 6];
41772
41772
  case 5:
41773
- z9(u) ? (h = $v(r, n, [null, null, null]), B = h[0], O = h[1], M = h[2], S = h[3], Q = h[4], p = _9(u.angle, S, Q), g = p[0], v = p[1], y = p[2], m = p[3], w = p[4], C = document.createElement("canvas"), C.width = S, C.height = Q, T = C.getContext("2d"), b = T.createLinearGradient(v, m, y, w), hF(u.stops, g).forEach(function(z) {
41774
- return b.addColorStop(z.stop, Wt(z.color));
41773
+ z9(u) ? (h = $v(r, n, [null, null, null]), B = h[0], O = h[1], M = h[2], S = h[3], Q = h[4], p = _9(u.angle, S, Q), g = p[0], v = p[1], y = p[2], m = p[3], w = p[4], C = document.createElement("canvas"), C.width = S, C.height = Q, T = C.getContext("2d"), b = T.createLinearGradient(v, m, y, w), hF(u.stops, g).forEach(function(G) {
41774
+ return b.addColorStop(G.stop, Wt(G.color));
41775
41775
  }), T.fillStyle = b, T.fillRect(0, 0, S, Q), S > 0 && Q > 0 && (E = i.ctx.createPattern(C, "repeat"), i.renderRepeat(B, E, O, M))) : X9(u) && (x = $v(r, n, [
41776
41776
  null,
41777
41777
  null,
41778
41778
  null
41779
- ]), B = x[0], F = x[1], U = x[2], S = x[3], Q = x[4], L = u.position.length === 0 ? [Nw] : u.position, O = dt(L[0], S), M = dt(L[L.length - 1], Q), P = V9(u, O, M, S, Q), _ = P[0], D = P[1], _ > 0 && D > 0 && (k = i.ctx.createRadialGradient(F + O, U + M, 0, F + O, U + M, _), hF(u.stops, _ * 2).forEach(function(z) {
41780
- return k.addColorStop(z.stop, Wt(z.color));
41779
+ ]), B = x[0], F = x[1], U = x[2], S = x[3], Q = x[4], L = u.position.length === 0 ? [Nw] : u.position, O = dt(L[0], S), M = dt(L[L.length - 1], Q), P = V9(u, O, M, S, Q), _ = P[0], D = P[1], _ > 0 && D > 0 && (k = i.ctx.createRadialGradient(F + O, U + M, 0, F + O, U + M, _), hF(u.stops, _ * 2).forEach(function(G) {
41780
+ return k.addColorStop(G.stop, Wt(G.color));
41781
41781
  }), i.path(B), i.ctx.fillStyle = k, _ !== D ? (V = r.bounds.left + 0.5 * r.bounds.width, K = r.bounds.top + 0.5 * r.bounds.height, j = D / _, R = 1 / j, i.ctx.save(), i.ctx.translate(V, K), i.ctx.transform(1, 0, 0, j, 0, 0), i.ctx.translate(-V, -K), i.ctx.fillRect(F, R * (U - K) + K, S, Q * R), i.ctx.restore()) : i.ctx.fill())), X.label = 6;
41782
41782
  case 6:
41783
41783
  return n--, [
@@ -42684,8 +42684,8 @@ function ote(t) {
42684
42684
  }
42685
42685
  if (E)
42686
42686
  for (var D = h ? 3 : 1, k = function(R) {
42687
- var X = w.find(function(z) {
42688
- var W = b.get(z);
42687
+ var X = w.find(function(G) {
42688
+ var W = b.get(G);
42689
42689
  if (W)
42690
42690
  return W.slice(0, R).every(function(Z) {
42691
42691
  return Z;
@@ -42815,7 +42815,7 @@ function gte(t) {
42815
42815
  var S, Q = w === "y" ? Pr : kr, L = w === "y" ? fn : dn, O = w === "y" ? "height" : "width", M = T[w], P = M + g[Q], _ = M - g[L], D = d ? -E[O] / 2 : 0, k = y === Bs ? b[O] : E[O], V = y === Bs ? -E[O] : -b[O], K = e.elements.arrow, j = d && K ? Xw(K) : {
42816
42816
  width: 0,
42817
42817
  height: 0
42818
- }, R = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : z2(), X = R[Q], z = R[L], W = _A(0, b[O], j[O]), Z = m ? b[O] / 2 - D - W - X - B.mainAxis : k - W - X - B.mainAxis, G = m ? -b[O] / 2 + D + W + z + B.mainAxis : V + W + z + B.mainAxis, J = e.elements.arrow && Zl(e.elements.arrow), Y = J ? w === "y" ? J.clientTop || 0 : J.clientLeft || 0 : 0, q = (S = F?.[w]) != null ? S : 0, ie = M + Z - q - Y, ge = M + G - q, Oe = _A(d ? Qf(P, ie) : P, M, d ? $i(_, ge) : _);
42818
+ }, R = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : z2(), X = R[Q], G = R[L], W = _A(0, b[O], j[O]), Z = m ? b[O] / 2 - D - W - X - B.mainAxis : k - W - X - B.mainAxis, z = m ? -b[O] / 2 + D + W + G + B.mainAxis : V + W + G + B.mainAxis, J = e.elements.arrow && Zl(e.elements.arrow), Y = J ? w === "y" ? J.clientTop || 0 : J.clientLeft || 0 : 0, q = (S = F?.[w]) != null ? S : 0, ie = M + Z - q - Y, ge = M + z - q, Oe = _A(d ? Qf(P, ie) : P, M, d ? $i(_, ge) : _);
42819
42819
  T[w] = Oe, U[w] = Oe - M;
42820
42820
  }
42821
42821
  if (s) {
@@ -43525,7 +43525,7 @@ function tre(t, e) {
43525
43525
  var $ = Q();
43526
43526
  $.removeEventListener("mousedown", V, !0), $.removeEventListener("touchend", V, Ci), $.removeEventListener("touchstart", j, Ci), $.removeEventListener("touchmove", K, Ci);
43527
43527
  }
43528
- function z($, te) {
43528
+ function G($, te) {
43529
43529
  Z($, function() {
43530
43530
  !w.state.isVisible && T.parentNode && T.parentNode.contains(T) && te();
43531
43531
  });
@@ -43542,7 +43542,7 @@ function tre(t, e) {
43542
43542
  return te();
43543
43543
  Xv(ee, "remove", c), Xv(ee, "add", re), c = re;
43544
43544
  }
43545
- function G($, te, ee) {
43545
+ function z($, te, ee) {
43546
43546
  ee === void 0 && (ee = !1);
43547
43547
  var re = Oo(w.props.triggerTarget || t);
43548
43548
  re.forEach(function(fe) {
@@ -43555,21 +43555,21 @@ function tre(t, e) {
43555
43555
  });
43556
43556
  }
43557
43557
  function J() {
43558
- F() && (G("touchstart", q, {
43558
+ F() && (z("touchstart", q, {
43559
43559
  passive: !0
43560
- }), G("touchend", ge, {
43560
+ }), z("touchend", ge, {
43561
43561
  passive: !0
43562
43562
  })), Dte(w.props.trigger).forEach(function($) {
43563
43563
  if ($ !== "manual")
43564
- switch (G($, q), $) {
43564
+ switch (z($, q), $) {
43565
43565
  case "mouseenter":
43566
- G("mouseleave", ge);
43566
+ z("mouseleave", ge);
43567
43567
  break;
43568
43568
  case "focus":
43569
- G(Gte ? "focusout" : "blur", Oe);
43569
+ z(Gte ? "focusout" : "blur", Oe);
43570
43570
  break;
43571
43571
  case "focusin":
43572
- G("focusout", Oe);
43572
+ z("focusout", Oe);
43573
43573
  break;
43574
43574
  }
43575
43575
  });
@@ -43770,7 +43770,7 @@ function tre(t, e) {
43770
43770
  var fe = L(), Ae = fe.box, we = fe.content;
43771
43771
  w.props.animation && (zv([Ae, we], re), sS([Ae, we], "hidden"));
43772
43772
  }
43773
- _(), D(), w.props.animation ? U() && z(re, w.unmount) : w.unmount();
43773
+ _(), D(), w.props.animation ? U() && G(re, w.unmount) : w.unmount();
43774
43774
  }
43775
43775
  }
43776
43776
  function ve($) {
@@ -45238,9 +45238,9 @@ const Ure = Tn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ire = (t)
45238
45238
  pe.useEffect(() => {
45239
45239
  k && f && !u && _.pulsate();
45240
45240
  }, [u, f, k, _]);
45241
- const j = na(_, "start", b, c), R = na(_, "stop", v, c), X = na(_, "stop", y, c), z = na(_, "stop", x, c), W = na(_, "stop", (se) => {
45241
+ const j = na(_, "start", b, c), R = na(_, "stop", v, c), X = na(_, "stop", y, c), G = na(_, "stop", x, c), W = na(_, "stop", (se) => {
45242
45242
  k && se.preventDefault(), E && E(se);
45243
- }, c), Z = na(_, "start", U, c), G = na(_, "stop", B, c), J = na(_, "stop", F, c), Y = na(_, "stop", (se) => {
45243
+ }, c), Z = na(_, "start", U, c), z = na(_, "stop", B, c), J = na(_, "stop", F, c), Y = na(_, "stop", (se) => {
45244
45244
  Of(se.target) || V(!1), p && p(se);
45245
45245
  }, !1), q = ss((se) => {
45246
45246
  P.current || (P.current = se.currentTarget), Of(se.target) && (V(!0), w && w(se)), m && m(se);
@@ -45283,9 +45283,9 @@ const Ure = Tn("MuiButtonBase", ["root", "disabled", "focusVisible"]), Ire = (t)
45283
45283
  onKeyUp: Oe,
45284
45284
  onMouseDown: j,
45285
45285
  onMouseLeave: W,
45286
- onMouseUp: z,
45286
+ onMouseUp: G,
45287
45287
  onDragLeave: X,
45288
- onTouchEnd: G,
45288
+ onTouchEnd: z,
45289
45289
  onTouchMove: J,
45290
45290
  onTouchStart: Z,
45291
45291
  ref: le,
@@ -48277,13 +48277,13 @@ const qo = /* @__PURE__ */ pe.forwardRef(function(e, r) {
48277
48277
  ...O
48278
48278
  } = n, M = /* @__PURE__ */ pe.isValidElement(i) ? i : /* @__PURE__ */ N.jsx("span", {
48279
48279
  children: i
48280
- }), P = rd(), _ = YS(), [D, k] = pe.useState(), [V, K] = pe.useState(null), j = pe.useRef(!1), R = f || v, X = Wo(), z = Wo(), W = Wo(), Z = Wo(), [G, J] = lO({
48280
+ }), P = rd(), _ = YS(), [D, k] = pe.useState(), [V, K] = pe.useState(null), j = pe.useRef(!1), R = f || v, X = Wo(), G = Wo(), W = Wo(), Z = Wo(), [z, J] = lO({
48281
48281
  controlled: b,
48282
48282
  default: !1,
48283
48283
  name: "Tooltip",
48284
48284
  state: "open"
48285
48285
  });
48286
- let Y = G;
48286
+ let Y = z;
48287
48287
  if (process.env.NODE_ENV !== "production") {
48288
48288
  const {
48289
48289
  current: be
@@ -48311,11 +48311,11 @@ const qo = /* @__PURE__ */ pe.forwardRef(function(e, r) {
48311
48311
  });
48312
48312
  }
48313
48313
  ), ne = (be) => {
48314
- j.current && be.type !== "touchstart" || (D && D.removeAttribute("title"), z.clear(), W.clear(), h || tc && p ? z.start(tc ? p : h, () => {
48314
+ j.current && be.type !== "touchstart" || (D && D.removeAttribute("title"), G.clear(), W.clear(), h || tc && p ? G.start(tc ? p : h, () => {
48315
48315
  Oe(be);
48316
48316
  }) : Oe(be));
48317
48317
  }, le = (be) => {
48318
- z.clear(), W.start(m, () => {
48318
+ G.clear(), W.start(m, () => {
48319
48319
  ue(be);
48320
48320
  });
48321
48321
  }, [, he] = pe.useState(!1), de = (be) => {
@@ -49185,7 +49185,7 @@ const Hne = (t, {
49185
49185
  } = {}) => {
49186
49186
  const n = document.createElement("a");
49187
49187
  n.href = t, n.download = `${e}.${r}`, n.click();
49188
- }, _ne = (t) => 10 * Math.log(t * 4 + 1), Oie = ({
49188
+ }, _ne = (t) => 10 * Math.log(t * 4 + 1), Mie = ({
49189
49189
  data: t,
49190
49190
  title: e,
49191
49191
  id: r,
@@ -49235,7 +49235,7 @@ const Hne = (t, {
49235
49235
  }, [t]);
49236
49236
  let R = m.map((q) => q.category), X = Array.from(new Set(R));
49237
49237
  c && (X = X.sort((q, ie) => c.indexOf(q) - c.indexOf(ie)));
49238
- const z = m.map((q) => A && !c ? A(q) : q.category), W = m.map((q) => A ? A(q) : q.category), Z = (q) => m[q].id;
49238
+ const G = m.map((q) => A && !c ? A(q) : q.category), W = m.map((q) => A ? A(q) : q.category), Z = (q) => m[q].id;
49239
49239
  wt(() => {
49240
49240
  if (m.length === 0 || C.length === 0 || b.length === 0 || x.length === 0) return;
49241
49241
  const q = m.map((de) => de.id);
@@ -49281,7 +49281,7 @@ const Hne = (t, {
49281
49281
  </svg>
49282
49282
  `)}`;
49283
49283
  for (var ne = 0; ne < m.length; ne++)
49284
- S[z[ne]] !== !1 && (t?.centered && m[ne].id === t.centered.id ? ge.add({
49284
+ S[G[ne]] !== !1 && (t?.centered && m[ne].id === t.centered.id ? ge.add({
49285
49285
  data: {
49286
49286
  id: Z(ne)
49287
49287
  },
@@ -49323,11 +49323,11 @@ const Hne = (t, {
49323
49323
  }));
49324
49324
  let le = 0;
49325
49325
  for (var he = 0; he < m.length; he++)
49326
- if (S[z[he]] !== !1) {
49326
+ if (S[G[he]] !== !1) {
49327
49327
  let de = ie[he].length;
49328
49328
  for (let se = 0; se < de; se++) {
49329
49329
  const me = x[le]?.category;
49330
- if (S[z[ie[he][se]]] !== !1 && (!me || S[b[le]] !== !1)) {
49330
+ if (S[G[ie[he][se]]] !== !1 && (!me || S[b[le]] !== !1)) {
49331
49331
  let Ee = t.edge.every((Ue) => Ue.category);
49332
49332
  ge.add({
49333
49333
  data: {
@@ -49399,7 +49399,7 @@ const Hne = (t, {
49399
49399
  }), q++;
49400
49400
  });
49401
49401
  }, [F]);
49402
- const G = () => {
49402
+ const z = () => {
49403
49403
  const q = v.current;
49404
49404
  if (q) {
49405
49405
  const ie = {
@@ -49450,7 +49450,7 @@ const Hne = (t, {
49450
49450
  y && /* @__PURE__ */ N.jsx("div", { style: {
49451
49451
  backgroundColor: "white",
49452
49452
  boxShadow: "0 0 10px rgba(0,0,0,0.5)"
49453
- }, children: /* @__PURE__ */ N.jsx(Nne, { toggles: S, onToggle: Y, simpleCategories: W, edgeType: t.edge.every((q) => q.category), elements: m, edges: x, scales: C, scaleWidth: i, downloadScreenshot: V, randomize: G, organize: J, toggleLabels: () => U(!F), labelsOn: F, colorFunc: s, legendToggle: A, legendNodeLabel: l, legendEdgeLabel: u, uniqueCat: c ? X : void 0, scaleLabel: g }) })
49453
+ }, children: /* @__PURE__ */ N.jsx(Nne, { toggles: S, onToggle: Y, simpleCategories: W, edgeType: t.edge.every((q) => q.category), elements: m, edges: x, scales: C, scaleWidth: i, downloadScreenshot: V, randomize: z, organize: J, toggleLabels: () => U(!F), labelsOn: F, colorFunc: s, legendToggle: A, legendNodeLabel: l, legendEdgeLabel: u, uniqueCat: c ? X : void 0, scaleLabel: g }) })
49454
49454
  ] })
49455
49455
  ] });
49456
49456
  }, CS = (t, e, r) => {
@@ -49643,18 +49643,18 @@ const Zne = ({
49643
49643
  ...R,
49644
49644
  outlier: !0
49645
49645
  })), U = t.data.filter((R) => !B.includes(R.value)), S = $e(() => {
49646
- const R = (T - C) / Math.max(100, w.length), X = wU(C, T, R), z = typeof r?.bandwidth == "number" ? r.bandwidth : typeof r?.bandwidth == "function" ? r.bandwidth(w) : r?.bandwidth === "scott" ? Gne(w) : zne(w);
49647
- return [...Kne($ne(z), X)(w)].sort((G, J) => G.value - J.value);
49646
+ const R = (T - C) / Math.max(100, w.length), X = wU(C, T, R), G = typeof r?.bandwidth == "number" ? r.bandwidth : typeof r?.bandwidth == "function" ? r.bandwidth(w) : r?.bandwidth === "scott" ? Gne(w) : zne(w);
49647
+ return [...Kne($ne(G), X)(w)].sort((z, J) => z.value - J.value);
49648
49648
  }, [w, T, C, r]), Q = Math.min(i.bandwidth(), 50), L = n?.medianWidth ?? Q * 0.25, O = $e(() => ({
49649
49649
  label: t.label,
49650
49650
  sampleSize: t.data.length,
49651
49651
  median: x.toFixed(2),
49652
49652
  firstQuartile: b.toFixed(2),
49653
49653
  thirdQuartile: E.toFixed(2)
49654
- }), [t.label, t.data.length, x, b, E]), M = Ve((R, X, z) => {
49654
+ }), [t.label, t.data.length, x, b, E]), M = Ve((R, X, G) => {
49655
49655
  y({
49656
- tooltipData: z && c ? {
49657
- point: z
49656
+ tooltipData: G && c ? {
49657
+ point: G
49658
49658
  } : X,
49659
49659
  tooltipLeft: R.pageX,
49660
49660
  tooltipTop: R.pageY
@@ -49683,32 +49683,32 @@ const Zne = ({
49683
49683
  t.data.length >= (r?.pointDisplayThreshold ?? 3) && !l && j && /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("path", { d: j, fill: t.violinColor ?? "none", fillOpacity: t.opacity ?? 0.3, stroke: t.violinColor ?? "black", strokeOpacity: t.opacity ?? 1, strokeWidth: h === O ? (r?.stroke ?? 1) + 1 : r?.stroke ?? 1, pointerEvents: "all", onMouseMove: (R) => M(R, O), onClick: P }) }),
49684
49684
  t.data.length >= (r?.pointDisplayThreshold ?? 3) && !A && /* @__PURE__ */ N.jsx(Yne, { crossProps: n, left: u ? 0 : D, top: u ? D : 0, median: x, firstQuartile: b, thirdQuartile: E, valueScale: a, medianWidth: L, tooltipData: h ?? {}, handleMouseMove: M, handleCrossClick: P, disableViolinPlot: l, tooltip: O, horizontal: u }),
49685
49685
  F.map((R, X) => {
49686
- const z = a(R.value), W = a(R.value), Z = u ? W : D, G = u ? D : z, J = {
49686
+ const G = a(R.value), W = a(R.value), Z = u ? W : D, z = u ? D : G, J = {
49687
49687
  outlier: !0,
49688
49688
  label: t.label,
49689
49689
  value: R.value.toFixed(2)
49690
49690
  }, Y = c ? h?.point === R : h?.label === J.label && h?.value === J.value, q = R.radius ?? 4;
49691
- return /* @__PURE__ */ N.jsx("circle", { cx: Z, cy: G, r: Y ? q + 1 : q, stroke: Y ? "#000000" : "none", fill: R.color ?? t.violinColor ?? "#000000", opacity: R.opacity ?? t.opacity ?? 1, pointerEvents: "all", onMouseMove: (ie) => M(ie, J, R), onClick: () => _(R) }, `outlier-${X}`);
49691
+ return /* @__PURE__ */ N.jsx("circle", { cx: Z, cy: z, r: Y ? q + 1 : q, stroke: Y ? "#000000" : "none", fill: R.color ?? t.violinColor ?? "#000000", opacity: R.opacity ?? t.opacity ?? 1, pointerEvents: "all", onMouseMove: (ie) => M(ie, J, R), onClick: () => _(R) }, `outlier-${X}`);
49692
49692
  }),
49693
49693
  t.data.length >= (r?.pointDisplayThreshold ?? 3) && r?.showAllPoints && U.map((R, X) => {
49694
- const z = a(R.value), W = a(R.value), Z = r?.jitter ?? 0, G = `${t.label}-${R}-${X}`, J = Z > 0 ? (Xne(G) - 0.5) * 2 * Z : 0, Y = u ? W : D + J, q = u ? D + J : z, ie = {
49694
+ const G = a(R.value), W = a(R.value), Z = r?.jitter ?? 0, z = `${t.label}-${R}-${X}`, J = Z > 0 ? (Xne(z) - 0.5) * 2 * Z : 0, Y = u ? W : D + J, q = u ? D + J : G, ie = {
49695
49695
  label: t.label,
49696
49696
  value: R.value.toFixed(2)
49697
49697
  }, ge = c ? h?.point === R : h?.label === ie.label && h?.value === ie.value, Oe = R.radius ?? 2, ue = ge ? Oe + 1 : Oe;
49698
49698
  return /* @__PURE__ */ N.jsx("path", { d: `M ${Y},${q} m -${ue},0 a ${ue},${ue} 0 1,0 ${2 * ue},0 a ${ue},${ue} 0 1,0 -${2 * ue},0`, stroke: ge ? "black" : "none", fill: R.color ?? t.violinColor ?? "black", opacity: R.opacity ?? t.opacity ?? 1, pointerEvents: "all", onMouseMove: (ne) => M(ne, ie, R), onClick: () => _(R) }, `${e}-point-${X}`);
49699
49699
  }),
49700
49700
  t.data.length < (r?.pointDisplayThreshold ?? 3) && t.data.map((R, X) => {
49701
- const z = a(R.value), W = a(R.value), Z = u ? W : D, G = u ? D : z, J = R.radius ?? 2, Y = {
49701
+ const G = a(R.value), W = a(R.value), Z = u ? W : D, z = u ? D : G, J = R.radius ?? 2, Y = {
49702
49702
  label: t.label,
49703
49703
  value: R.value.toFixed(2)
49704
49704
  }, q = c ? h?.point === R : h?.label === Y.label && h?.value === Y.value;
49705
- return /* @__PURE__ */ N.jsx("circle", { cx: Z, cy: G, r: q ? J + 1 : J, stroke: q ? "black" : "none", fill: R.color ?? t.violinColor ?? "black", opacity: R.opacity ?? t.opacity ?? 1, pointerEvents: "all", onMouseMove: (ie) => M(ie, Y, R), onClick: () => _(R) }, `thresh-${X}`);
49705
+ return /* @__PURE__ */ N.jsx("circle", { cx: Z, cy: z, r: q ? J + 1 : J, stroke: q ? "black" : "none", fill: R.color ?? t.violinColor ?? "black", opacity: R.opacity ?? t.opacity ?? 1, pointerEvents: "all", onMouseMove: (ie) => M(ie, Y, R), onClick: () => _(R) }, `thresh-${X}`);
49706
49706
  })
49707
49707
  ] }, `group-${e}`),
49708
49708
  v && h && /* @__PURE__ */ N.jsx(Fs, { children: /* @__PURE__ */ N.jsx(jne, { left: p ?? 0, top: g ?? 0, data: h, open: v, pointTooltipBody: c }, `${p}-${g}`) })
49709
49709
  ]
49710
49710
  }, `frag-${e}`);
49711
- }, Mie = (t) => {
49711
+ }, Rie = (t) => {
49712
49712
  const {
49713
49713
  parentRef: e,
49714
49714
  width: r,
@@ -49912,13 +49912,13 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
49912
49912
  const Q = S, L = n.id.split("-")[0] === "spacer" ? c : u, O = U > 0 ? A(0) : A(U), M = Q ?? 0, P = Math.abs(A(U) - A(0)), _ = n.id.split("-")[0] === "spacer" ? c : u, D = -f, k = (Q ?? 0) + L / 2, V = O + P + f + (n.lollipopValue && n.value >= 0 ? d(n.lollipopValue) : 0), K = M + _ / 2, j = h && p ? Ls.g : "g", R = g ?? 0.03;
49913
49913
  let X;
49914
49914
  e[6] !== h || e[7] !== r || e[8] !== R ? (X = md(h, r, R), e[6] = h, e[7] = r, e[8] = R, e[9] = X) : X = e[9];
49915
- const z = X, W = `frag-${r}`;
49915
+ const G = X, W = `frag-${r}`;
49916
49916
  let Z;
49917
49917
  e[10] !== n || e[11] !== a ? (Z = () => a?.(n), e[10] = n, e[11] = a, e[12] = Z) : Z = e[12];
49918
- let G;
49919
- e[13] !== a ? (G = a && {
49918
+ let z;
49919
+ e[13] !== a ? (z = a && {
49920
49920
  cursor: "pointer"
49921
- }, e[13] = a, e[14] = G) : G = e[14];
49921
+ }, e[13] = a, e[14] = z) : z = e[14];
49922
49922
  let J;
49923
49923
  e[15] !== n || e[16] !== B ? (J = (Be) => B(Be, n), e[15] = n, e[16] = B, e[17] = J) : J = e[17];
49924
49924
  let Y;
@@ -49943,12 +49943,12 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
49943
49943
  se
49944
49944
  ] }), e[48] = le, e[49] = he, e[50] = se, e[51] = me) : me = e[51];
49945
49945
  let Ee;
49946
- e[52] !== j || e[53] !== z || e[54] !== ie || e[55] !== me ? (Ee = /* @__PURE__ */ N.jsx(j, { ...z, children: me }, ie), e[52] = j, e[53] = z, e[54] = ie, e[55] = me, e[56] = Ee) : Ee = e[56];
49946
+ e[52] !== j || e[53] !== G || e[54] !== ie || e[55] !== me ? (Ee = /* @__PURE__ */ N.jsx(j, { ...G, children: me }, ie), e[52] = j, e[53] = G, e[54] = ie, e[55] = me, e[56] = Ee) : Ee = e[56];
49947
49947
  let Ue;
49948
- e[57] !== r || e[58] !== Y || e[59] !== q || e[60] !== Ee || e[61] !== Z || e[62] !== G || e[63] !== J ? (Ue = /* @__PURE__ */ N.jsxs(pr, { onClick: Z, style: G, onMouseMove: J, onMouseLeave: Y, fontFamily: rae, children: [
49948
+ e[57] !== r || e[58] !== Y || e[59] !== q || e[60] !== Ee || e[61] !== Z || e[62] !== z || e[63] !== J ? (Ue = /* @__PURE__ */ N.jsxs(pr, { onClick: Z, style: z, onMouseMove: J, onMouseLeave: Y, fontFamily: rae, children: [
49949
49949
  q,
49950
49950
  Ee
49951
- ] }, r), e[57] = r, e[58] = Y, e[59] = q, e[60] = Ee, e[61] = Z, e[62] = G, e[63] = J, e[64] = Ue) : Ue = e[64];
49951
+ ] }, r), e[57] = r, e[58] = Y, e[59] = q, e[60] = Ee, e[61] = Z, e[62] = z, e[63] = J, e[64] = Ue) : Ue = e[64];
49952
49952
  let ae;
49953
49953
  e[65] !== i || e[66] !== T || e[67] !== w || e[68] !== m || e[69] !== C ? (ae = i && m && /* @__PURE__ */ N.jsx(Fs, { children: /* @__PURE__ */ N.jsx(id, { top: C, left: w, style: {
49954
49954
  ...Il,
@@ -49966,7 +49966,7 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
49966
49966
  n.style.position = "absolute", n.style.visibility = "hidden", n.style.fontSize = `${e}px`, n.style.fontFamily = r, n.style.whiteSpace = "nowrap", n.textContent = t, document.body.appendChild(n);
49967
49967
  const a = n.getBoundingClientRect().width;
49968
49968
  return document.body.removeChild(n), a + 10;
49969
- }, Rie = ({
49969
+ }, Pie = ({
49970
49970
  data: t,
49971
49971
  ref: e,
49972
49972
  topAxisLabel: r,
@@ -49991,25 +49991,25 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
49991
49991
  debounceTime: 150
49992
49992
  });
49993
49993
  wt(() => {
49994
- const G = E.current;
49995
- if (!G) return;
49994
+ const z = E.current;
49995
+ if (!z) return;
49996
49996
  const J = () => w(!1);
49997
- return G.addEventListener("scroll", J, {
49997
+ return z.addEventListener("scroll", J, {
49998
49998
  once: !0
49999
- }), () => G.removeEventListener("scroll", J);
49999
+ }), () => z.removeEventListener("scroll", J);
50000
50000
  }, []);
50001
- const F = t.map((G) => G.lollipopValue).filter((G) => G !== void 0), U = 5e-3, S = $e(() => e_({
50001
+ const F = t.map((z) => z.lollipopValue).filter((z) => z !== void 0), U = 5e-3, S = $e(() => e_({
50002
50002
  base: 10,
50003
50003
  domain: [U, 1],
50004
50004
  // Min/Max of fdr values in data
50005
50005
  range: [10, 2],
50006
50006
  round: !0
50007
- }), []), Q = Ve((G) => S(Math.max(U, G)), [S]), L = 50, O = 20, M = F.length > 0 ? 30 : 0, _ = Math.max(...t.map((G) => SO(G.category ?? "", 12, "Arial"))), D = 10, k = $e(() => Math.max(...t.map((G) => G.value)), [t]), V = $e(() => Math.min(...t.map((G) => G.value)), [t]), K = -0.5, j = t.flatMap((G, J) => [G, {
50007
+ }), []), Q = Ve((z) => S(Math.max(U, z)), [S]), L = 50, O = 20, M = F.length > 0 ? 30 : 0, _ = Math.max(...t.map((z) => SO(z.category ?? "", 12, "Arial"))), D = 10, k = $e(() => Math.max(...t.map((z) => z.value)), [t]), V = $e(() => Math.min(...t.map((z) => z.value)), [t]), K = -0.5, j = t.flatMap((z, J) => [z, {
50008
50008
  id: `spacer-${J}`,
50009
50009
  value: 0,
50010
50010
  color: "transparent"
50011
- }]).slice(0, -1), R = t.length * s + (t.length - 1) * A, X = l ? B - L - O - M : R, z = $e(() => Yc({
50012
- domain: j.map((G) => G.id),
50011
+ }]).slice(0, -1), R = t.length * s + (t.length - 1) * A, X = l ? B - L - O - M : R, G = $e(() => Yc({
50012
+ domain: j.map((z) => z.id),
50013
50013
  range: [0, X],
50014
50014
  paddingOuter: 0.5
50015
50015
  }), [j, X]), W = $e(() => kn({
@@ -50025,14 +50025,14 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
50025
50025
  wt(() => {
50026
50026
  if (!x)
50027
50027
  return;
50028
- let G = 0, J = null;
50028
+ let z = 0, J = null;
50029
50029
  j.forEach((Y, q) => {
50030
50030
  const ie = document.getElementById(`label-${q}-${C}`);
50031
50031
  if (ie) {
50032
50032
  const ge = ie.getBBox().width, Oe = W(0), ue = W(Y.value), le = _ + Math.max(Oe, ue) + D + ge - x;
50033
- G = Math.max(le, G), le < 0 && (J === null ? J = Math.abs(le) : J = Math.min(Math.abs(le), J));
50033
+ z = Math.max(le, z), le < 0 && (J === null ? J = Math.abs(le) : J = Math.min(Math.abs(le), J));
50034
50034
  }
50035
- }), G > 0 ? (y(!1), g((Y) => Y + 25)) : J && J > 30 ? (y(!1), g((Y) => Y - 25)) : y(!0);
50035
+ }), z > 0 ? (y(!1), g((Y) => Y + 25)) : J && J > 30 ? (y(!1), g((Y) => Y - 25)) : y(!0);
50036
50036
  }, [t, W, p, v, T, x, r, C]);
50037
50037
  const Z = (W.range()[0] + W.range()[1]) / 2;
50038
50038
  return Kf(e, () => ({
@@ -50052,8 +50052,8 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
50052
50052
  t.length === 0 ? /* @__PURE__ */ N.jsx("p", { children: "No Data To Display" }) : /* @__PURE__ */ N.jsx(
50053
50053
  "svg",
50054
50054
  {
50055
- ref: (G) => {
50056
- T && G && (T.current = G), b.current = G;
50055
+ ref: (z) => {
50056
+ T && z && (T.current = z), b.current = z;
50057
50057
  },
50058
50058
  width: x,
50059
50059
  height: l ? B && B - M : X + L + O,
@@ -50063,11 +50063,11 @@ const rae = "Roboto,Helvetica,Arial,sans-serif", nae = (t) => {
50063
50063
  dy: -5,
50064
50064
  fontSize: 14,
50065
50065
  fontFamily: aae
50066
- }, numTicks: x < 700 ? 4 : void 0, tickFormat: (G, J) => {
50067
- const Y = typeof G == "number" ? G : G.valueOf();
50066
+ }, numTicks: x < 700 ? 4 : void 0, tickFormat: (z, J) => {
50067
+ const Y = typeof z == "number" ? z : z.valueOf();
50068
50068
  return J === 0 && Y < 0 && o && t.some((q) => q.value <= K) ? "Low Signal" : Y.toString();
50069
50069
  } }),
50070
- j.map((G, J) => /* @__PURE__ */ N.jsx(nae, { bar: G, index: J, onBarClicked: n, TooltipContents: a, cutoffNegativeValues: o, negativeCutoff: K, xScale: W, yScale: z, barSize: s, barSpacing: A, gapBetweenTextAndBar: D, getLollipopRadius: Q, animation: d, animationEnabled: m, animationBuffer: h, uniqueID: C })),
50070
+ j.map((z, J) => /* @__PURE__ */ N.jsx(nae, { bar: z, index: J, onBarClicked: n, TooltipContents: a, cutoffNegativeValues: o, negativeCutoff: K, xScale: W, yScale: G, barSize: s, barSpacing: A, gapBetweenTextAndBar: D, getLollipopRadius: Q, animation: d, animationEnabled: m, animationBuffer: h, uniqueID: C })),
50071
50071
  /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("line", { x1: W(0), x2: W(0), y1: 0, y2: X, stroke: "#000000" }) }),
50072
50072
  i && W.domain()[1] > 1.645 && /* @__PURE__ */ N.jsx("line", { x1: W(1.645), x2: W(1.645), y1: 0, y2: X, stroke: "black", strokeDasharray: "5 7" })
50073
50073
  ] }, m ? "animating" : "static")
@@ -50510,7 +50510,7 @@ const Qae = (t) => {
50510
50510
  ] }),
50511
50511
  t.tooltipBody && B && b && /* @__PURE__ */ N.jsx(Fs, { children: /* @__PURE__ */ N.jsx(id, { left: (E ?? 0) + 10, top: x, children: b }) })
50512
50512
  ] }, `frag-${t.node.data.label}`);
50513
- }, Pie = (t) => {
50513
+ }, kie = (t) => {
50514
50514
  const {
50515
50515
  parentRef: e,
50516
50516
  width: r,
@@ -50553,7 +50553,7 @@ const Qae = (t) => {
50553
50553
  return /* @__PURE__ */ N.jsx(y, { ...m, children: /* @__PURE__ */ N.jsx(Dae, { node: p, isHovered: a === v, onHover: (w) => i(w ? v : null), strokeWidth: l.strokeWidth ?? 0, opacity: l.opacity ?? 0.3, borderRadius: l.borderRadius ?? 0, fontSize: l.fontSize ?? 16, labelPlacement: t.labelPlacement ?? "topLeft", tooltipBody: t.tooltipBody, onNodeClicked: t.onNodeClicked }) }, `node-${g}`);
50554
50554
  });
50555
50555
  } }) }) });
50556
- }, kie = (t, e, r) => {
50556
+ }, Nie = (t, e, r) => {
50557
50557
  const n = {};
50558
50558
  return r && r.forEach((a) => n[a] = 0), t?.forEach((a) => {
50559
50559
  n[a[e]] ? n[a[e]]++ : n[a[e]] = 1;
@@ -50562,7 +50562,7 @@ const Qae = (t) => {
50562
50562
  function Lae(t) {
50563
50563
  return Object.fromEntries(Object.entries(t).sort(([, e], [, r]) => r - e));
50564
50564
  }
50565
- const Nie = ({
50565
+ const Hie = ({
50566
50566
  data: t,
50567
50567
  tooltipTitle: e,
50568
50568
  label: r,
@@ -50989,14 +50989,14 @@ const cie = eo(function({
50989
50989
  leafFontSize: o,
50990
50990
  onNodeMouseMove: s,
50991
50991
  onNodeMouseLeave: A,
50992
- onLeafClick: l
50992
+ onBranchClick: l
50993
50993
  } = t;
50994
50994
  let u;
50995
50995
  e[0] !== r || e[1] !== s ? (u = (y) => s(y, r), e[0] = r, e[1] = s, e[2] = u) : u = e[2];
50996
50996
  let c;
50997
50997
  e[3] !== r || e[4] !== A ? (c = (y) => A(y, r), e[3] = r, e[4] = A, e[5] = c) : c = e[5];
50998
50998
  let f;
50999
- e[6] !== r.data.id || e[7] !== l ? (f = () => l && l(r.data.id), e[6] = r.data.id, e[7] = l, e[8] = f) : f = e[8];
50999
+ e[6] !== r || e[7] !== l ? (f = () => l(r.leaves().map(gie)), e[6] = r, e[7] = l, e[8] = f) : f = e[8];
51000
51000
  const d = n ? 0.2 : 1;
51001
51001
  let h;
51002
51002
  e[9] === Symbol.for("react.memo_cache_sentinel") ? (h = {
@@ -51021,7 +51021,7 @@ const cie = eo(function({
51021
51021
  useBranchLengths: i,
51022
51022
  onNodeMouseMove: o,
51023
51023
  onNodeMouseLeave: s,
51024
- onLeafClick: A,
51024
+ onBranchClick: A,
51025
51025
  leafFontSize: l,
51026
51026
  leafFontFamily: u
51027
51027
  } = e;
@@ -51030,37 +51030,41 @@ const cie = eo(function({
51030
51030
  if (!d.parent)
51031
51031
  return;
51032
51032
  const p = !!a.length && !a.some((g) => d.descendantIds?.has(g) || d.ancestorIds?.has(g));
51033
- return /* @__PURE__ */ N.jsx(hie, { onLeafClick: A, node: d, dimmed: p, useBranchLengths: i, leafFontSize: l, leafFontFamily: u, onNodeMouseMove: o, onNodeMouseLeave: s }, h);
51033
+ return /* @__PURE__ */ N.jsx(hie, { node: d, dimmed: p, useBranchLengths: i, leafFontSize: l, leafFontFamily: u, onBranchClick: A, onNodeMouseMove: o, onNodeMouseLeave: s }, h);
51034
51034
  }), r[0] = a, r[1] = u, r[2] = l, r[3] = n, r[4] = A, r[5] = s, r[6] = o, r[7] = i, r[8] = c) : c = r[8];
51035
51035
  let f;
51036
51036
  return r[9] !== c ? (f = /* @__PURE__ */ N.jsx("g", { id: "tree-root", children: c }), r[9] = c, r[10] = f) : f = r[10], f;
51037
- }), OO = {
51037
+ });
51038
+ function gie(t) {
51039
+ return t.data.id;
51040
+ }
51041
+ const OO = {
51038
51042
  duration: 0.3,
51039
51043
  ease: "easeInOut"
51040
- }, gie = () => 1, vie = (t, e, r) => e === 0 ? 0 : t / e * r, mie = (t) => {
51044
+ }, vie = () => 1, mie = (t, e, r) => e === 0 ? 0 : t / e * r, yie = (t) => {
51041
51045
  const e = /-?\d*\.?\d+[eE][+-]?\d+/g;
51042
51046
  return t.replace(e, (r) => Number(r).toFixed(10).replace(/\.?0+$/, ""));
51043
51047
  }, MO = (t) => (e) => {
51044
51048
  const r = t(e);
51045
- return r ? mie(r) : "";
51046
- }, yie = MO(uI({
51049
+ return r ? yie(r) : "";
51050
+ }, wie = MO(uI({
51047
51051
  source: (t) => t.source,
51048
51052
  target: (t) => t.target,
51049
51053
  x: (t) => t?.x || 0,
51050
51054
  y: (t) => t?.y || 0
51051
- })), wie = MO(uI({
51055
+ })), Bie = MO(uI({
51052
51056
  source: (t) => t.source,
51053
51057
  target: (t) => t.target,
51054
51058
  x: (t) => t?.x || 0,
51055
51059
  y: (t) => t?.branchLengthScaledRadius || 0
51056
- })), Bie = (t, e) => {
51060
+ })), bie = (t, e) => {
51057
51061
  t = t.replace(/^#/, "");
51058
51062
  let r = parseInt(t.substring(0, 2), 16), n = parseInt(t.substring(2, 4), 16), a = parseInt(t.substring(4, 6), 16);
51059
51063
  r = Math.round(r + (255 - r) * e), n = Math.round(n + (255 - n) * e), a = Math.round(a + (255 - a) * e);
51060
51064
  const i = (o) => o.toString(16).padStart(2, "0");
51061
51065
  return `#${i(r)}${i(n)}${i(a)}`;
51062
51066
  }, Rc = 500, xS = Rc * 2;
51063
- function Hie({
51067
+ function _ie({
51064
51068
  width: t,
51065
51069
  height: e,
51066
51070
  data: r,
@@ -51071,7 +51075,7 @@ function Hie({
51071
51075
  linkStrokeWidth: s = 1,
51072
51076
  getColor: A = () => "black",
51073
51077
  getLabel: l = (p) => p,
51074
- onLeafClick: u,
51078
+ onBranchClick: u = () => null,
51075
51079
  onLeafHoverChange: c,
51076
51080
  labelPadding: f = 135,
51077
51081
  defaultScaling: d = "scaled",
@@ -51105,9 +51109,12 @@ function Hie({
51105
51109
  tooltipTop: j.y
51106
51110
  }) : b(), c && c(R ? R.leaves().map((X) => X.data.id) : []), F.current = !1;
51107
51111
  }));
51108
- }, S = Math.max(0, Rc - f), Q = $e(() => [2 * Math.PI, S], [S]), L = $e(() => oB(r, (K) => K.children).sum((K) => K.children ? 0 : 1).sort((K, j) => (K.value || 0) - (j.value || 0) || TA(K.data.branch_length ?? void 0, j.data.branch_length ?? void 0)), [r, A, S]), O = $e(() => {
51112
+ }, S = Math.max(0, Rc - f), Q = $e(() => [2 * Math.PI, S], [S]), L = $e(() => oB(r, (K) => K.children).sum((K) => K.children ? 0 : 1).sort((K, j) => {
51113
+ const R = K.leaves().some((G) => G.data.id === "Homo_sapiens"), X = j.leaves().some((G) => G.data.id === "Homo_sapiens");
51114
+ return R !== X ? R ? -1 : 1 : (K.value || 0) - (j.value || 0) || TA(K.data.branch_length ?? void 0, j.data.branch_length ?? void 0);
51115
+ }), [r, A, S]), O = $e(() => {
51109
51116
  const V = _ae();
51110
- V.size(Q), V.separation(gie);
51117
+ V.size(Q), V.separation(vie);
51111
51118
  const K = V(L.copy());
51112
51119
  let j = 0;
51113
51120
  return K.each((R) => {
@@ -51116,28 +51123,28 @@ function Hie({
51116
51123
  if (!R.children)
51117
51124
  R.color = A(R.data.id);
51118
51125
  else {
51119
- const X = R.children.map((Z) => Z.color), z = R.children[0].color, W = z !== null && X.every((Z) => Z === z);
51120
- R.color = W ? z : "#666";
51126
+ const X = R.children.map((Z) => Z.color), G = R.children[0].color, W = G !== null && X.every((Z) => Z === G);
51127
+ R.color = W ? G : "#666";
51121
51128
  }
51122
51129
  }), K.eachBefore((R) => {
51123
- const z = (R.parent?.cumulativeBranchLength ?? 0) + (R.data.branch_length ?? 0);
51124
- z > j && (j = z), R.cumulativeBranchLength = z;
51130
+ const G = (R.parent?.cumulativeBranchLength ?? 0) + (R.data.branch_length ?? 0);
51131
+ G > j && (j = G), R.cumulativeBranchLength = G;
51125
51132
  }), K.descendants().forEach((R) => {
51126
- const X = vie(R.cumulativeBranchLength ?? 0, j, S);
51133
+ const X = mie(R.cumulativeBranchLength ?? 0, j, S);
51127
51134
  R.branchLengthScaledRadius = X;
51128
51135
  }), K.descendants().forEach((R) => {
51129
- const [X, z] = nc(R.x, R.y), [W, Z] = nc(R.x, R.branchLengthScaledRadius ?? 0);
51130
- R.baseNodeX = X, R.baseNodeY = z, R.scaledNodeX = W, R.scaledNodeY = Z;
51136
+ const [X, G] = nc(R.x, R.y), [W, Z] = nc(R.x, R.branchLengthScaledRadius ?? 0);
51137
+ R.baseNodeX = X, R.baseNodeY = G, R.scaledNodeX = W, R.scaledNodeY = Z;
51131
51138
  }), K.descendants().forEach((R) => {
51132
- const [X, z] = nc(R.x, R.y), [W, Z] = nc(R.x, R.branchLengthScaledRadius ?? 0);
51133
- R.baseNodeX = X, R.baseNodeY = z, R.scaledNodeX = W, R.scaledNodeY = Z;
51139
+ const [X, G] = nc(R.x, R.y), [W, Z] = nc(R.x, R.branchLengthScaledRadius ?? 0);
51140
+ R.baseNodeX = X, R.baseNodeY = G, R.scaledNodeX = W, R.scaledNodeY = Z;
51134
51141
  }), K.descendants().forEach((R) => {
51135
51142
  if (R.parent) {
51136
51143
  const X = {
51137
51144
  source: R.parent,
51138
51145
  target: R
51139
- }, z = yie(X), W = wie(X);
51140
- R.baseLinkPath = z, R.scaledLinkPath = W;
51146
+ }, G = wie(X), W = Bie(X);
51147
+ R.baseLinkPath = G, R.scaledLinkPath = W;
51141
51148
  }
51142
51149
  }), K.leaves().forEach((R) => {
51143
51150
  R.baseLeafLinkExtension = {
@@ -51150,13 +51157,13 @@ function Hie({
51150
51157
  x2: R.baseNodeX ?? 0,
51151
51158
  y1: R.scaledNodeY ?? 0,
51152
51159
  y2: R.baseNodeY ?? 0
51153
- }, R.lightenedLinkExtColor = Bie(R.color ?? "#000000", 0.7);
51160
+ }, R.lightenedLinkExtColor = bie(R.color ?? "#000000", 0.7);
51154
51161
  }), K.each((R) => {
51155
- const z = !R.children ? n.includes(R.data.id) : R.leaves().some((W) => n.includes(W.data.id));
51156
- R.linkStrokeWidth = z ? s * 2 : s, R.labelStrokeWidth = z ? 0.7 : 0;
51162
+ const G = !R.children ? n.includes(R.data.id) : R.leaves().some((W) => n.includes(W.data.id));
51163
+ R.linkStrokeWidth = G ? s * 2 : s, R.labelStrokeWidth = G ? 0.7 : 0;
51157
51164
  }), K.each((R) => {
51158
- const X = new Set(R.ancestors().map((W) => W.data.id)), z = new Set(R.descendants().map((W) => W.data.id));
51159
- R.ancestorIds = X, R.descendantIds = z;
51165
+ const X = new Set(R.ancestors().map((W) => W.data.id)), G = new Set(R.descendants().map((W) => W.data.id));
51166
+ R.ancestorIds = X, R.descendantIds = G;
51160
51167
  }), K;
51161
51168
  }, [r, Q, S, L, n, s]), M = Ve(() => g((V) => !V), []), P = Ve((V, K) => {
51162
51169
  U(V, K), !K.children && T({
@@ -51166,19 +51173,19 @@ function Hie({
51166
51173
  }), c && c(K.leaves().map((j) => j.data.id));
51167
51174
  }, []), _ = Ve((V, K) => {
51168
51175
  U(V, null), b(), c && c([]);
51169
- }, []), D = $e(() => /* @__PURE__ */ N.jsx(pr, { top: Rc, left: Rc, children: /* @__PURE__ */ N.jsx(pie, { node: O, hovered: E, leafFontFamily: o, leafFontSize: i, useBranchLengths: p, onNodeMouseMove: P, onNodeMouseLeave: _, onLeafClick: u }) }), [O, E, o, i, p, P, _, u]), k = Ve((V) => /* @__PURE__ */ N.jsx(uie, { zoom: V, totalWidth: t, totalHeight: e, toggleBranchLength: M, children: D }), [t, e, M, D]);
51176
+ }, []), D = $e(() => /* @__PURE__ */ N.jsx(pr, { top: Rc, left: Rc, children: /* @__PURE__ */ N.jsx(pie, { node: O, hovered: E, leafFontFamily: o, leafFontSize: i, useBranchLengths: p, onNodeMouseMove: P, onNodeMouseLeave: _, onBranchClick: u }) }), [O, E, o, i, p, P, _, u]), k = Ve((V) => /* @__PURE__ */ N.jsx(uie, { zoom: V, totalWidth: t, totalHeight: e, toggleBranchLength: M, children: D }), [t, e, M, D]);
51170
51177
  return t < 10 ? null : /* @__PURE__ */ N.jsxs("div", { children: [
51171
51178
  /* @__PURE__ */ N.jsx(y0, { width: t, height: e, scaleXMin: 0.8, scaleXMax: 4, scaleYMin: 0.8, scaleYMax: 4, children: k }),
51172
51179
  m && h && /* @__PURE__ */ N.jsx(x, { left: w, top: C, children: h(m.id) })
51173
51180
  ] });
51174
51181
  }
51175
- const bie = {
51182
+ const Cie = {
51176
51183
  A: "#228b22",
51177
51184
  C: "blue",
51178
51185
  G: "orange",
51179
51186
  T: "red",
51180
51187
  "-": "white"
51181
- }, ac = 50, l0 = 30, CA = 10, Vf = 10, ic = CA + Vf + l0 + Vf, Cie = 1, xie = 50, ES = 1.15, qv = 5, TS = (t, e, r) => Math.min(0, Math.max(r * (1 - e), t)), _ie = ({
51188
+ }, ac = 50, l0 = 30, CA = 10, Vf = 10, ic = CA + Vf + l0 + Vf, xie = 1, Eie = 50, ES = 1.15, qv = 5, TS = (t, e, r) => Math.min(0, Math.max(r * (1 - e), t)), Vie = ({
51182
51189
  data: t,
51183
51190
  width: e,
51184
51191
  height: r,
@@ -51197,8 +51204,8 @@ const bie = {
51197
51204
  wt(() => {
51198
51205
  g.current = f;
51199
51206
  }, [f]);
51200
- const m = Ve((z) => {
51201
- z !== u && (c(z), A(z));
51207
+ const m = Ve((G) => {
51208
+ G !== u && (c(G), A(G));
51202
51209
  }, [u, A]), w = $e(() => u ? [u, ...o] : o, [u, o]), {
51203
51210
  tooltipData: C,
51204
51211
  tooltipLeft: T,
@@ -51210,82 +51217,82 @@ const bie = {
51210
51217
  } = w0({
51211
51218
  scroll: !0,
51212
51219
  detectBounds: !0
51213
- }), F = Object.keys(t).length, U = Object.values(t)[0].length ?? 0, S = e - ic, Q = r - ac, L = $e(() => {
51214
- const z = Object.keys(t).map((W) => [W, {
51220
+ }), F = Object.keys(t).length, U = Object.values(t)[0]?.length ?? 0, S = e - ic, Q = r - ac, L = $e(() => {
51221
+ const G = Object.keys(t).map((W) => [W, {
51215
51222
  id: W,
51216
51223
  label: n(W),
51217
51224
  order: i(W),
51218
51225
  color: a(W)
51219
51226
  }]);
51220
- return new Map(z);
51227
+ return new Map(G);
51221
51228
  }, [t]), O = st(null);
51222
51229
  wt(() => {
51223
- const z = O.current;
51224
- if (!z) return;
51230
+ const G = O.current;
51231
+ if (!G) return;
51225
51232
  const W = (Z) => {
51226
51233
  Z.preventDefault();
51227
- const G = z.getBoundingClientRect(), J = Z.clientX - G.left, {
51234
+ const z = G.getBoundingClientRect(), J = Z.clientX - z.left, {
51228
51235
  scaleX: Y,
51229
51236
  translateX: q
51230
- } = g.current, ie = Z.deltaY < 0 ? ES : 1 / ES, ge = Math.max(Cie, Math.min(xie, Y * ie)), Oe = J - (J - q) * (ge / Y), ue = TS(Oe, ge, S);
51237
+ } = g.current, ie = Z.deltaY < 0 ? ES : 1 / ES, ge = Math.max(xie, Math.min(Eie, Y * ie)), Oe = J - (J - q) * (ge / Y), ue = TS(Oe, ge, S);
51231
51238
  d({
51232
51239
  scaleX: ge,
51233
51240
  translateX: ue
51234
51241
  });
51235
51242
  };
51236
- return z.addEventListener("wheel", W, {
51243
+ return G.addEventListener("wheel", W, {
51237
51244
  passive: !1
51238
- }), () => z.removeEventListener("wheel", W);
51245
+ }), () => G.removeEventListener("wheel", W);
51239
51246
  }, [S]), wt(() => {
51240
- const z = O.current;
51241
- if (!z) return;
51247
+ const G = O.current;
51248
+ if (!G) return;
51242
51249
  const W = (Z) => {
51243
51250
  Z.touches.length === 1 && Z.preventDefault();
51244
51251
  };
51245
- return z.addEventListener("touchstart", W, {
51252
+ return G.addEventListener("touchstart", W, {
51246
51253
  passive: !1
51247
- }), z.addEventListener("touchmove", W, {
51254
+ }), G.addEventListener("touchmove", W, {
51248
51255
  passive: !1
51249
51256
  }), () => {
51250
- z.removeEventListener("touchstart", W), z.removeEventListener("touchmove", W);
51257
+ G.removeEventListener("touchstart", W), G.removeEventListener("touchmove", W);
51251
51258
  };
51252
51259
  }, []), wt(() => {
51253
- const z = O.current;
51254
- if (!z) return;
51255
- const W = z.getContext("2d");
51260
+ const G = O.current;
51261
+ if (!G) return;
51262
+ const W = G.getContext("2d");
51256
51263
  if (!W) return;
51257
51264
  const Z = window.devicePixelRatio || 1;
51258
- z.width = S * Z, z.height = Q * Z, z.style.width = `${S}px`, z.style.height = `${Q}px`, W.setTransform(1, 0, 0, 1, 0, 0), W.clearRect(0, 0, z.width, z.height);
51259
- const G = z.width / U * f.scaleX, J = z.height / F, Y = f.translateX * Z;
51260
- W.setTransform(G, 0, 0, J, Y, 0), Object.entries(t).forEach(([q, ie], ge) => {
51265
+ G.width = S * Z, G.height = Q * Z, G.style.width = `${S}px`, G.style.height = `${Q}px`, W.setTransform(1, 0, 0, 1, 0, 0), W.clearRect(0, 0, G.width, G.height);
51266
+ const z = G.width / U * f.scaleX, J = G.height / F, Y = f.translateX * Z;
51267
+ W.setTransform(z, 0, 0, J, Y, 0), Object.entries(t).forEach(([q, ie], ge) => {
51261
51268
  ie.forEach((Oe, ue) => {
51262
- W.fillStyle = bie[Oe], W.globalAlpha = w.length && !w.includes(q) ? 0.3 : 1, W.fillRect(ue, ge, 1, 1), W.globalAlpha = 1;
51269
+ W.fillStyle = Cie[Oe], W.globalAlpha = w.length && !w.includes(q) ? 0.3 : 1, W.fillRect(ue, ge, 1, 1), W.globalAlpha = 1;
51263
51270
  });
51264
51271
  });
51265
51272
  }, [t, S, Q, U, F, w, f]);
51266
- const M = Ve((z) => {
51273
+ const M = Ve((G) => {
51267
51274
  const {
51268
51275
  scaleX: W,
51269
51276
  translateX: Z
51270
51277
  } = g.current;
51271
- return Math.floor((z - Z) / S * (U / W));
51272
- }, [S, U]), P = (z) => {
51273
- p(!0), v.current = z.clientX, y.current = g.current.translateX, z.currentTarget.setPointerCapture(z.pointerId);
51274
- }, _ = (z) => {
51278
+ return Math.floor((G - Z) / S * (U / W));
51279
+ }, [S, U]), P = (G) => {
51280
+ p(!0), v.current = G.clientX, y.current = g.current.translateX, G.currentTarget.setPointerCapture(G.pointerId);
51281
+ }, _ = (G) => {
51275
51282
  const W = O.current;
51276
51283
  if (!W) return;
51277
51284
  if (h) {
51278
- const Oe = z.clientX - v.current, ue = TS(y.current + Oe, g.current.scaleX, S);
51285
+ const Oe = G.clientX - v.current, ue = TS(y.current + Oe, g.current.scaleX, S);
51279
51286
  d((ne) => ({
51280
51287
  ...ne,
51281
51288
  translateX: ue
51282
51289
  }));
51283
51290
  return;
51284
51291
  }
51285
- const Z = W.getBoundingClientRect(), G = z.clientX - Z.left, J = z.clientY - Z.top, Y = M(G), q = Math.floor(J / Z.height * F), ie = Object.keys(t)[q], ge = t[ie]?.[Y];
51292
+ const Z = W.getBoundingClientRect(), z = G.clientX - Z.left, J = G.clientY - Z.top, Y = M(z), q = Math.floor(J / Z.height * F), ie = Object.keys(t)[q], ge = t[ie]?.[Y];
51286
51293
  Y >= 0 && Y < U && q >= 0 && q < F ? (m(ie), E({
51287
- tooltipTop: z.clientY,
51288
- tooltipLeft: z.clientX,
51294
+ tooltipTop: G.clientY,
51295
+ tooltipLeft: G.clientX,
51289
51296
  tooltipData: {
51290
51297
  position: Y,
51291
51298
  basePair: ge,
@@ -51296,13 +51303,13 @@ const bie = {
51296
51303
  p(!1);
51297
51304
  }, k = () => {
51298
51305
  p(!1), m(null), x();
51299
- }, V = (z, W) => {
51306
+ }, V = (G, W) => {
51300
51307
  m(W.id), E({
51301
- tooltipLeft: z.clientX,
51302
- tooltipTop: z.clientY,
51308
+ tooltipLeft: G.clientX,
51309
+ tooltipTop: G.clientY,
51303
51310
  tooltipData: W
51304
51311
  });
51305
- }, K = (z, W) => {
51312
+ }, K = (G, W) => {
51306
51313
  m(null), x();
51307
51314
  }, j = $e(() => kn({
51308
51315
  domain: [0, U - 1],
@@ -51318,11 +51325,11 @@ const bie = {
51318
51325
  left: 0,
51319
51326
  position: "absolute"
51320
51327
  }, children: [
51321
- R.map((z, W) => {
51328
+ R.map((G, W) => {
51322
51329
  const Z = Q / R.length;
51323
- return /* @__PURE__ */ N.jsxs("g", { onMouseMove: (G) => V(G, z), onMouseLeave: (G) => K(), opacity: w.length && !w.includes(z.id) ? 0.3 : 1, children: [
51324
- s.includes(z.id) && /* @__PURE__ */ N.jsx("rect", { width: CA, height: Z, x: 0, y: Z * W, fill: z.color, shapeRendering: "crispEdges" }),
51325
- /* @__PURE__ */ N.jsx("rect", { width: l0, height: Z, x: CA + Vf, y: Z * W, fill: z.color, shapeRendering: "crispEdges" })
51330
+ return /* @__PURE__ */ N.jsxs("g", { onMouseMove: (z) => V(z, G), onMouseLeave: (z) => K(), opacity: w.length && !w.includes(G.id) ? 0.3 : 1, children: [
51331
+ s.includes(G.id) && /* @__PURE__ */ N.jsx("rect", { width: CA, height: Z, x: 0, y: Z * W, fill: G.color, shapeRendering: "crispEdges" }),
51332
+ /* @__PURE__ */ N.jsx("rect", { width: l0, height: Z, x: CA + Vf, y: Z * W, fill: G.color, shapeRendering: "crispEdges" })
51326
51333
  ] }, W);
51327
51334
  }),
51328
51335
  /* @__PURE__ */ N.jsx(an, { angle: 270, textAnchor: "end", verticalAnchor: "middle", fontSize: 12, x: 0.5 * CA, y: Q + 2, children: "Highlight" }),
@@ -51350,14 +51357,14 @@ const bie = {
51350
51357
  ] });
51351
51358
  };
51352
51359
  export {
51353
- Rie as BarPlot,
51354
- Oie as Graph,
51355
- Hie as PhyloTree,
51356
- Nie as ProportionsBar,
51357
- Lie as ScatterPlot,
51358
- _ie as SequenceAlignmentPlot,
51359
- Pie as Treemap,
51360
- Mie as ViolinPlot,
51361
- kie as getProportionsFromArray
51360
+ Pie as BarPlot,
51361
+ Mie as Graph,
51362
+ _ie as PhyloTree,
51363
+ Hie as ProportionsBar,
51364
+ Oie as ScatterPlot,
51365
+ Vie as SequenceAlignmentPlot,
51366
+ kie as Treemap,
51367
+ Rie as ViolinPlot,
51368
+ Nie as getProportionsFromArray
51362
51369
  };
51363
51370
  //# sourceMappingURL=visualization.es.js.map