hoodini-viz 0.2.3 → 0.2.4

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.
@@ -802,7 +802,7 @@ Error generating stack: ` + p.message + `
802
802
  }
803
803
  }
804
804
  var zn = Math.random().toString(36).slice(2), qt = "__reactFiber$" + zn, kn = "__reactProps$" + zn, Vn = "__reactContainer$" + zn, Mi = "__reactEvents$" + zn, $i = "__reactListeners$" + zn, Zn = "__reactHandles$" + zn, Gr = "__reactResources$" + zn, mi = "__reactMarker$" + zn;
805
- function Qi(l) {
805
+ function Ji(l) {
806
806
  delete l[qt], delete l[kn], delete l[Mi], delete l[$i], delete l[Zn];
807
807
  }
808
808
  function _i(l) {
@@ -842,10 +842,10 @@ Error generating stack: ` + p.message + `
842
842
  l[mi] = !0;
843
843
  }
844
844
  var uo = /* @__PURE__ */ new Set(), Io = {};
845
- function Ji(l, c) {
846
- es(l, c), es(l + "Capture", c);
847
- }
848
845
  function es(l, c) {
846
+ ts(l, c), ts(l + "Capture", c);
847
+ }
848
+ function ts(l, c) {
849
849
  for (Io[l] = c, l = 0; l < c.length; l++)
850
850
  uo.add(c[l]);
851
851
  }
@@ -1362,7 +1362,7 @@ Error generating stack: ` + p.message + `
1362
1362
  clipboardData: function(l) {
1363
1363
  return "clipboardData" in l ? l.clipboardData : window.clipboardData;
1364
1364
  }
1365
- }), _r = ut(Yn), xs = g({}, ne, { data: 0 }), ts = ut(xs), bi = {
1365
+ }), _r = ut(Yn), xs = g({}, ne, { data: 0 }), ns = ut(xs), bi = {
1366
1366
  Esc: "Escape",
1367
1367
  Spacebar: " ",
1368
1368
  Left: "ArrowLeft",
@@ -1462,7 +1462,7 @@ Error generating stack: ` + p.message + `
1462
1462
  twist: 0,
1463
1463
  pointerType: 0,
1464
1464
  isPrimary: 0
1465
- }), Fi = ut(jn), ns = g({}, fn, {
1465
+ }), Fi = ut(jn), rs = g({}, fn, {
1466
1466
  touches: 0,
1467
1467
  targetTouches: 0,
1468
1468
  changedTouches: 0,
@@ -1471,7 +1471,7 @@ Error generating stack: ` + p.message + `
1471
1471
  ctrlKey: 0,
1472
1472
  shiftKey: 0,
1473
1473
  getModifierState: ji
1474
- }), Jo = ut(ns), Pr = g({}, ne, {
1474
+ }), Jo = ut(rs), Pr = g({}, ne, {
1475
1475
  propertyName: 0,
1476
1476
  elapsedTime: 0,
1477
1477
  pseudoElement: 0
@@ -1586,8 +1586,8 @@ Error generating stack: ` + p.message + `
1586
1586
  if (qi) {
1587
1587
  var Wr = "oninput" in document;
1588
1588
  if (!Wr) {
1589
- var rs = document.createElement("div");
1590
- rs.setAttribute("oninput", "return;"), Wr = typeof rs.oninput == "function";
1589
+ var is = document.createElement("div");
1590
+ is.setAttribute("oninput", "return;"), Wr = typeof is.oninput == "function";
1591
1591
  }
1592
1592
  ya = Wr;
1593
1593
  } else ya = !1;
@@ -1729,7 +1729,7 @@ Error generating stack: ` + p.message + `
1729
1729
  );
1730
1730
  Ye.push("scrollEnd");
1731
1731
  function He(l, c) {
1732
- Be.set(l, c), Ji(c, [l]);
1732
+ Be.set(l, c), es(c, [l]);
1733
1733
  }
1734
1734
  var Ze = typeof reportError == "function" ? reportError : function(l) {
1735
1735
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
@@ -1885,7 +1885,7 @@ Error generating stack: ` + p.message + `
1885
1885
  }, c;
1886
1886
  }
1887
1887
  var Ws = /* @__PURE__ */ new WeakMap();
1888
- function is(l, c) {
1888
+ function ss(l, c) {
1889
1889
  if (typeof l == "object" && l !== null) {
1890
1890
  var f = Ws.get(l);
1891
1891
  return f !== void 0 ? f : (c = {
@@ -1900,9 +1900,9 @@ Error generating stack: ` + p.message + `
1900
1900
  stack: sn(c)
1901
1901
  };
1902
1902
  }
1903
- var ro = [], Pi = 0, ss = null, ra = 0, qs = [], Fs = 0, Do = null, Bo = 1, So = "";
1903
+ var ro = [], Pi = 0, Gi = null, ra = 0, qs = [], Fs = 0, Do = null, Bo = 1, So = "";
1904
1904
  function Vo(l, c) {
1905
- ro[Pi++] = ra, ro[Pi++] = ss, ss = l, ra = c;
1905
+ ro[Pi++] = ra, ro[Pi++] = Gi, Gi = l, ra = c;
1906
1906
  }
1907
1907
  function Uc(l, c, f) {
1908
1908
  qs[Fs++] = Bo, qs[Fs++] = So, qs[Fs++] = Do, Do = l;
@@ -1921,8 +1921,8 @@ Error generating stack: ` + p.message + `
1921
1921
  l.return !== null && (Vo(l, 1), Uc(l, 1, 0));
1922
1922
  }
1923
1923
  function Te(l) {
1924
- for (; l === ss; )
1925
- ss = ro[--Pi], ro[Pi] = null, ra = ro[--Pi], ro[Pi] = null;
1924
+ for (; l === Gi; )
1925
+ Gi = ro[--Pi], ro[Pi] = null, ra = ro[--Pi], ro[Pi] = null;
1926
1926
  for (; l === Do; )
1927
1927
  Do = qs[--Fs], qs[Fs] = null, So = qs[--Fs], qs[Fs] = null, Bo = qs[--Fs], qs[Fs] = null;
1928
1928
  }
@@ -1938,7 +1938,7 @@ Error generating stack: ` + p.message + `
1938
1938
  ""
1939
1939
  )
1940
1940
  );
1941
- throw en(is(c, l)), ue;
1941
+ throw en(ss(c, l)), ue;
1942
1942
  }
1943
1943
  function De(l) {
1944
1944
  var c = l.stateNode, f = l.type, p = l.memoizedProps;
@@ -2152,7 +2152,7 @@ Error generating stack: ` + p.message + `
2152
2152
  return f();
2153
2153
  });
2154
2154
  };
2155
- }, To = t.unstable_scheduleCallback, Gi = t.unstable_NormalPriority, qr = {
2155
+ }, To = t.unstable_scheduleCallback, Ki = t.unstable_NormalPriority, qr = {
2156
2156
  $$typeof: x,
2157
2157
  Consumer: null,
2158
2158
  Provider: null,
@@ -2168,7 +2168,7 @@ Error generating stack: ` + p.message + `
2168
2168
  };
2169
2169
  }
2170
2170
  function hc(l) {
2171
- l.refCount--, l.refCount === 0 && To(Gi, function() {
2171
+ l.refCount--, l.refCount === 0 && To(Ki, function() {
2172
2172
  l.controller.abort();
2173
2173
  });
2174
2174
  }
@@ -4019,18 +4019,18 @@ Error generating stack: ` + p.message + `
4019
4019
  return I2(l, p, F), Dp(), !1;
4020
4020
  }
4021
4021
  if (V)
4022
- return c = va.current, c !== null ? ((c.flags & 65536) === 0 && (c.flags |= 256), c.flags |= 65536, c.lanes = F, p !== ue && (l = Error(r(422), { cause: p }), en(is(l, f)))) : (p !== ue && (c = Error(r(423), {
4022
+ return c = va.current, c !== null ? ((c.flags & 65536) === 0 && (c.flags |= 256), c.flags |= 65536, c.lanes = F, p !== ue && (l = Error(r(422), { cause: p }), en(ss(l, f)))) : (p !== ue && (c = Error(r(423), {
4023
4023
  cause: p
4024
4024
  }), en(
4025
- is(c, f)
4026
- )), l = l.current.alternate, l.flags |= 65536, F &= -F, l.lanes |= F, p = is(p, f), F = u2(
4025
+ ss(c, f)
4026
+ )), l = l.current.alternate, l.flags |= 65536, F &= -F, l.lanes |= F, p = ss(p, f), F = u2(
4027
4027
  l.stateNode,
4028
4028
  p,
4029
4029
  F
4030
4030
  ), Oi(l, F), ys !== 4 && (ys = 2)), !1;
4031
4031
  var v = Error(r(520), { cause: p });
4032
- if (v = is(v, f), mh === null ? mh = [v] : mh.push(v), ys !== 4 && (ys = 2), c === null) return !0;
4033
- p = is(p, f), f = c;
4032
+ if (v = ss(v, f), mh === null ? mh = [v] : mh.push(v), ys !== 4 && (ys = 2), c === null) return !0;
4033
+ p = ss(p, f), f = c;
4034
4034
  do {
4035
4035
  switch (f.tag) {
4036
4036
  case 3:
@@ -4747,7 +4747,7 @@ Error generating stack: ` + p.message + `
4747
4747
  );
4748
4748
  break e;
4749
4749
  } else if (p !== F) {
4750
- F = is(
4750
+ F = ss(
4751
4751
  Error(r(424)),
4752
4752
  c
4753
4753
  ), en(F), c = Y_(
@@ -5656,9 +5656,9 @@ Error generating stack: ` + p.message + `
5656
5656
  }
5657
5657
  function l4(l) {
5658
5658
  var c = l.alternate;
5659
- c !== null && (l.alternate = null, l4(c)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (c = l.stateNode, c !== null && Qi(c)), l.stateNode = null, l.return = null, l.dependencies = null, l.memoizedProps = null, l.memoizedState = null, l.pendingProps = null, l.stateNode = null, l.updateQueue = null;
5659
+ c !== null && (l.alternate = null, l4(c)), l.child = null, l.deletions = null, l.sibling = null, l.tag === 5 && (c = l.stateNode, c !== null && Ji(c)), l.stateNode = null, l.return = null, l.dependencies = null, l.memoizedProps = null, l.memoizedState = null, l.pendingProps = null, l.stateNode = null, l.updateQueue = null;
5660
5660
  }
5661
- var Ki = null, ia = !1;
5661
+ var Zi = null, ia = !1;
5662
5662
  function vc(l, c, f) {
5663
5663
  for (f = f.child; f !== null; )
5664
5664
  c4(l, c, f), f = f.sibling;
@@ -5679,24 +5679,24 @@ Error generating stack: ` + p.message + `
5679
5679
  break;
5680
5680
  case 27:
5681
5681
  ks || Ol(f, c);
5682
- var p = Ki, F = ia;
5683
- eu(f.type) && (Ki = f.stateNode, ia = !1), vc(
5682
+ var p = Zi, F = ia;
5683
+ eu(f.type) && (Zi = f.stateNode, ia = !1), vc(
5684
5684
  l,
5685
5685
  c,
5686
5686
  f
5687
- ), Ah(f.stateNode), Ki = p, ia = F;
5687
+ ), Ah(f.stateNode), Zi = p, ia = F;
5688
5688
  break;
5689
5689
  case 5:
5690
5690
  ks || Ol(f, c);
5691
5691
  case 6:
5692
- if (p = Ki, F = ia, Ki = null, vc(
5692
+ if (p = Zi, F = ia, Zi = null, vc(
5693
5693
  l,
5694
5694
  c,
5695
5695
  f
5696
- ), Ki = p, ia = F, Ki !== null)
5696
+ ), Zi = p, ia = F, Zi !== null)
5697
5697
  if (ia)
5698
5698
  try {
5699
- (Ki.nodeType === 9 ? Ki.body : Ki.nodeName === "HTML" ? Ki.ownerDocument.body : Ki).removeChild(f.stateNode);
5699
+ (Zi.nodeType === 9 ? Zi.body : Zi.nodeName === "HTML" ? Zi.ownerDocument.body : Zi).removeChild(f.stateNode);
5700
5700
  } catch (v) {
5701
5701
  ii(
5702
5702
  f,
@@ -5706,7 +5706,7 @@ Error generating stack: ` + p.message + `
5706
5706
  }
5707
5707
  else
5708
5708
  try {
5709
- Ki.removeChild(f.stateNode);
5709
+ Zi.removeChild(f.stateNode);
5710
5710
  } catch (v) {
5711
5711
  ii(
5712
5712
  f,
@@ -5716,17 +5716,17 @@ Error generating stack: ` + p.message + `
5716
5716
  }
5717
5717
  break;
5718
5718
  case 18:
5719
- Ki !== null && (ia ? (l = Ki, tw(
5719
+ Zi !== null && (ia ? (l = Zi, tw(
5720
5720
  l.nodeType === 9 ? l.body : l.nodeName === "HTML" ? l.ownerDocument.body : l,
5721
5721
  f.stateNode
5722
- ), Kd(l)) : tw(Ki, f.stateNode));
5722
+ ), Kd(l)) : tw(Zi, f.stateNode));
5723
5723
  break;
5724
5724
  case 4:
5725
- p = Ki, F = ia, Ki = f.stateNode.containerInfo, ia = !0, vc(
5725
+ p = Zi, F = ia, Zi = f.stateNode.containerInfo, ia = !0, vc(
5726
5726
  l,
5727
5727
  c,
5728
5728
  f
5729
- ), Ki = p, ia = F;
5729
+ ), Zi = p, ia = F;
5730
5730
  break;
5731
5731
  case 0:
5732
5732
  case 11:
@@ -5821,22 +5821,22 @@ Error generating stack: ` + p.message + `
5821
5821
  switch (se.tag) {
5822
5822
  case 27:
5823
5823
  if (eu(se.type)) {
5824
- Ki = se.stateNode, ia = !1;
5824
+ Zi = se.stateNode, ia = !1;
5825
5825
  break e;
5826
5826
  }
5827
5827
  break;
5828
5828
  case 5:
5829
- Ki = se.stateNode, ia = !1;
5829
+ Zi = se.stateNode, ia = !1;
5830
5830
  break e;
5831
5831
  case 3:
5832
5832
  case 4:
5833
- Ki = se.stateNode.containerInfo, ia = !0;
5833
+ Zi = se.stateNode.containerInfo, ia = !0;
5834
5834
  break e;
5835
5835
  }
5836
5836
  se = se.return;
5837
5837
  }
5838
- if (Ki === null) throw Error(r(160));
5839
- c4(v, z, F), Ki = null, ia = !1, v = F.alternate, v !== null && (v.return = null), F.return = null;
5838
+ if (Zi === null) throw Error(r(160));
5839
+ c4(v, z, F), Zi = null, ia = !1, v = F.alternate, v !== null && (v.return = null), F.return = null;
5840
5840
  }
5841
5841
  if (c.subtreeFlags & 13886)
5842
5842
  for (c = c.child; c !== null; )
@@ -6881,7 +6881,7 @@ Error generating stack: ` + p.message + `
6881
6881
  function _4(l, c) {
6882
6882
  nr = null, R.H = lh, c === qo || c === Mu ? (c = rp(), ri = 3) : c === gc ? (c = rp(), ri = 4) : ri = c === d2 ? 8 : c !== null && typeof c == "object" && typeof c.then == "function" ? 6 : 1, _a = c, br === null && (ys = 1, pp(
6883
6883
  l,
6884
- is(c, l.current)
6884
+ ss(c, l.current)
6885
6885
  ));
6886
6886
  }
6887
6887
  function w4() {
@@ -7071,7 +7071,7 @@ Error generating stack: ` + p.message + `
7071
7071
  )) {
7072
7072
  ys = 1, pp(
7073
7073
  l,
7074
- is(f, l.current)
7074
+ ss(f, l.current)
7075
7075
  ), br = null;
7076
7076
  return;
7077
7077
  }
@@ -7079,7 +7079,7 @@ Error generating stack: ` + p.message + `
7079
7079
  if (F !== null) throw br = F, v;
7080
7080
  ys = 1, pp(
7081
7081
  l,
7082
- is(f, l.current)
7082
+ ss(f, l.current)
7083
7083
  ), br = null;
7084
7084
  return;
7085
7085
  }
@@ -7301,7 +7301,7 @@ Error generating stack: ` + p.message + `
7301
7301
  }
7302
7302
  }
7303
7303
  function O4(l, c, f) {
7304
- c = is(f, c), c = u2(l.stateNode, c, 2), l = pt(l, c, 2), l !== null && (En(l, 2), Ll(l));
7304
+ c = ss(f, c), c = u2(l.stateNode, c, 2), l = pt(l, c, 2), l !== null && (En(l, 2), Ll(l));
7305
7305
  }
7306
7306
  function ii(l, c, f) {
7307
7307
  if (l.tag === 3)
@@ -7318,7 +7318,7 @@ Error generating stack: ` + p.message + `
7318
7318
  } else if (c.tag === 1) {
7319
7319
  var p = c.stateNode;
7320
7320
  if (typeof c.type.getDerivedStateFromError == "function" || typeof p.componentDidCatch == "function" && (Kc === null || !Kc.has(p))) {
7321
- l = is(f, l), f = L_(2), p = pt(c, f, 2), p !== null && (z_(
7321
+ l = ss(f, l), f = L_(2), p = pt(c, f, 2), p !== null && (z_(
7322
7322
  f,
7323
7323
  p,
7324
7324
  c,
@@ -7545,26 +7545,26 @@ Error generating stack: ` + p.message + `
7545
7545
  "on" + bI
7546
7546
  );
7547
7547
  }
7548
- He(K, "onAnimationEnd"), He(ae, "onAnimationIteration"), He(he, "onAnimationStart"), He("dblclick", "onDoubleClick"), He("focusin", "onFocus"), He("focusout", "onBlur"), He(me, "onTransitionRun"), He(ye, "onTransitionStart"), He(Me, "onTransitionCancel"), He(Ue, "onTransitionEnd"), es("onMouseEnter", ["mouseout", "mouseover"]), es("onMouseLeave", ["mouseout", "mouseover"]), es("onPointerEnter", ["pointerout", "pointerover"]), es("onPointerLeave", ["pointerout", "pointerover"]), Ji(
7548
+ He(K, "onAnimationEnd"), He(ae, "onAnimationIteration"), He(he, "onAnimationStart"), He("dblclick", "onDoubleClick"), He("focusin", "onFocus"), He("focusout", "onBlur"), He(me, "onTransitionRun"), He(ye, "onTransitionStart"), He(Me, "onTransitionCancel"), He(Ue, "onTransitionEnd"), ts("onMouseEnter", ["mouseout", "mouseover"]), ts("onMouseLeave", ["mouseout", "mouseover"]), ts("onPointerEnter", ["pointerout", "pointerover"]), ts("onPointerLeave", ["pointerout", "pointerover"]), es(
7549
7549
  "onChange",
7550
7550
  "change click focusin focusout input keydown keyup selectionchange".split(" ")
7551
- ), Ji(
7551
+ ), es(
7552
7552
  "onSelect",
7553
7553
  "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(
7554
7554
  " "
7555
7555
  )
7556
- ), Ji("onBeforeInput", [
7556
+ ), es("onBeforeInput", [
7557
7557
  "compositionend",
7558
7558
  "keypress",
7559
7559
  "textInput",
7560
7560
  "paste"
7561
- ]), Ji(
7561
+ ]), es(
7562
7562
  "onCompositionEnd",
7563
7563
  "compositionend focusout keydown keypress keyup mousedown".split(" ")
7564
- ), Ji(
7564
+ ), es(
7565
7565
  "onCompositionStart",
7566
7566
  "compositionstart focusout keydown keypress keyup mousedown".split(" ")
7567
- ), Ji(
7567
+ ), es(
7568
7568
  "onCompositionUpdate",
7569
7569
  "compositionupdate focusout keydown keypress keyup mousedown".split(" ")
7570
7570
  );
@@ -7901,13 +7901,13 @@ Error generating stack: ` + p.message + `
7901
7901
  }
7902
7902
  else
7903
7903
  ea ? ga(l, f) && (Er = "onCompositionEnd") : l === "keydown" && f.keyCode === 229 && (Er = "onCompositionStart");
7904
- Er && (ha && f.locale !== "ko" && (ea || Er !== "onCompositionStart" ? Er === "onCompositionEnd" && ea && (ar = go()) : (qn = Ft, $s = "value" in qn ? qn.value : qn.textContent, ea = !0)), xn = Mp(et, Er), 0 < xn.length && (Er = new ts(
7904
+ Er && (ha && f.locale !== "ko" && (ea || Er !== "onCompositionStart" ? Er === "onCompositionEnd" && ea && (ar = go()) : (qn = Ft, $s = "value" in qn ? qn.value : qn.textContent, ea = !0)), xn = Mp(et, Er), 0 < xn.length && (Er = new ns(
7905
7905
  Er,
7906
7906
  l,
7907
7907
  null,
7908
7908
  f,
7909
7909
  Ft
7910
- ), Dt.push({ event: Er, listeners: xn }), ar ? Er.data = ar : (ar = cc(f), ar !== null && (Er.data = ar)))), (ar = Xi ? gs(l, f) : uc(l, f)) && (Er = Mp(et, "onBeforeInput"), 0 < Er.length && (xn = new ts(
7910
+ ), Dt.push({ event: Er, listeners: xn }), ar ? Er.data = ar : (ar = cc(f), ar !== null && (Er.data = ar)))), (ar = Xi ? gs(l, f) : uc(l, f)) && (Er = Mp(et, "onBeforeInput"), 0 < Er.length && (xn = new ns(
7911
7911
  "onBeforeInput",
7912
7912
  "beforeinput",
7913
7913
  null,
@@ -8816,7 +8816,7 @@ Error generating stack: ` + p.message + `
8816
8816
  case "HTML":
8817
8817
  case "HEAD":
8818
8818
  case "BODY":
8819
- G2(f), Qi(f);
8819
+ G2(f), Ji(f);
8820
8820
  continue;
8821
8821
  case "SCRIPT":
8822
8822
  case "STYLE":
@@ -8954,7 +8954,7 @@ Error generating stack: ` + p.message + `
8954
8954
  function Ah(l) {
8955
8955
  for (var c = l.attributes; c.length; )
8956
8956
  l.removeAttributeNode(c[0]);
8957
- Qi(l);
8957
+ Ji(l);
8958
8958
  }
8959
8959
  var Ka = /* @__PURE__ */ new Map(), aw = /* @__PURE__ */ new Set();
8960
8960
  function Ip(l) {
@@ -22149,7 +22149,7 @@ const NW = () => {
22149
22149
  })(u.current);
22150
22150
  let oe = window.$3Dmol;
22151
22151
  if (!oe) {
22152
- const Xe = await import("./3Dmol-C30ZsCRh.js").then((ot) => ot._);
22152
+ const Xe = await import("./3Dmol-BWURIyI9.js").then((ot) => ot._);
22153
22153
  oe = Xe.default || Xe, window.$3Dmol = oe;
22154
22154
  }
22155
22155
  if (d) {
@@ -23120,7 +23120,7 @@ function rq({
23120
23120
  scaleExportToFormat: Zn,
23121
23121
  setScaleExportToFormat: Gr,
23122
23122
  cropToGuides: mi,
23123
- setCropToGuides: Qi,
23123
+ setCropToGuides: Ji,
23124
23124
  scaleRulerWithCrop: _i,
23125
23125
  setScaleRulerWithCrop: Kr,
23126
23126
  // New visual settings props
@@ -23129,8 +23129,8 @@ function rq({
23129
23129
  phyloLabelSize: ir,
23130
23130
  setPhyloLabelSize: uo,
23131
23131
  geneLabelSize: Io,
23132
- setGeneLabelSize: Ji,
23133
- strokeLineWidth: es,
23132
+ setGeneLabelSize: es,
23133
+ strokeLineWidth: ts,
23134
23134
  setStrokeLineWidth: tn,
23135
23135
  genomeXScale: Zs,
23136
23136
  setGenomeXScale: Ar,
@@ -23139,7 +23139,7 @@ function rq({
23139
23139
  geneHeight: sr,
23140
23140
  ...Qs
23141
23141
  }) {
23142
- const { resolvedTheme: ni, getThemeColors: yi } = zc(), ci = A.useMemo(() => yi(ni), [ni]), [Hr, wi] = bt("info"), [Ua, Js] = bt(!1), eo = typeof e < "u" ? e : Ua, dr = typeof n == "function" ? n : Js, [No, fo] = bt(!1), Oo = typeof r < "u" ? r : No, Ci = typeof i == "function" ? i : fo, [Hi, ho] = bt(!1), cs = typeof s < "u" ? s : Hi, Zo = typeof o == "function" ? o : ho, [Vi, $a] = bt(!1), Qo = typeof a < "u" ? a : Vi, Sn = typeof u == "function" ? u : $a, [Ha, Gn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Gn, [ws, Us] = bt(!1), Ao = typeof g < "u" ? g : ws, zo = typeof m == "function" ? m : Us, [sl, Va] = bt("start"), Dr = typeof y < "u" ? y : sl, qi = typeof C == "function" ? C : Va, [us, tt] = bt("after-tree"), qn = typeof b < "u" ? b : us, $s = typeof _ == "function" ? _ : tt, [Zr, go] = bt(Kt.gene.arrowheadHeight), [vo, Eo] = bt(Kt.gene.height), [Pn, ut] = bt(Kt.gene.tipWidthMode), ne = Lt ?? Pn, Bt = ft ?? ut, [fn, vn] = bt(xt ?? Kt.gene.tipWidthFactor), [Wt, Gt] = bt(zt ?? Kt.gene.tipWidthFixed), [wn, gn] = bt("bottom"), In = typeof w < "u" ? w : wn, Qn = typeof E == "function" ? E : gn, [xi, Vr] = bt(""), Nn = typeof x < "u" ? x : xi, nn = typeof D == "function" ? D : Vr, [pn, Yn] = bt(""), _r = typeof S < "u" ? S : pn, xs = typeof k == "function" ? k : Yn, [ts, bi] = bt("domainName"), Di = typeof $ < "u" ? $ : ts, Br = typeof L == "function" ? L : bi, [to, ji] = bt(""), fa = typeof O < "u" ? O : to, _o = typeof P == "function" ? P : ji, [jn, Fi] = bt(""), ns = typeof U < "u" ? U : jn, Jo = typeof M == "function" ? M : Fi, [Pr, or] = bt({ enabled: !1 }), ds = typeof j < "u" ? j : Pr, Wa = typeof W == "function" ? W : or, [fs, St] = bt({ enabled: !1 }), Jn = typeof Y < "u" ? Y : fs, cn = typeof R == "function" ? R : St, [hs, Xi] = bt({ enabled: !1 }), ha = typeof H < "u" ? H : hs, Rl = typeof I == "function" ? I : Xi, [Uo, ga] = bt("all"), cc = typeof N < "u" ? N : Uo, ea = typeof q == "function" ? q : ga, [gs, uc] = bt({ enabled: !1 }), Tn = typeof Z < "u" ? Z : gs, pa = typeof ce == "function" ? ce : uc, [dc, kr] = bt({ enabled: !1 }), $o = typeof oe < "u" ? oe : dc, ol = typeof fe == "function" ? fe : kr, [ma, kl] = bt(null), Hs = typeof be < "u" ? be : ma, ya = typeof ge == "function" ? ge : kl, [Wr, rs] = bt(null), Ho = typeof Ae < "u" ? Ae : Wr, Ca = typeof ke == "function" ? ke : rs, [ta, po] = bt(Kt.tree.xScalePercent), [Pe, ba] = bt(null), Qr = typeof Ce < "u" ? Ce : Pe, [Bi, Ds] = bt(null), fc = typeof ot < "u" ? ot : Bi, [Ml, wo] = bt(!1), al = typeof kn < "u" ? kn : Ml, xo = typeof Vn == "function" ? Vn : wo, [qa, Fa] = bt(null), ll = typeof Mi < "u" ? Mi : qa, Si = typeof $i == "function" ? $i : Fa, [wr, T] = bt(!1), Q = typeof Zn < "u" ? Zn : wr, re = typeof Gr == "function" ? Gr : T, [te, X] = bt(!0), G = typeof mi < "u" ? mi : te, K = typeof Qi == "function" ? Qi : X, [ae, he] = bt(!0), me = typeof _i < "u" ? _i : ae, ye = typeof Kr == "function" ? Kr : he, [Me, Ue] = bt(Kt.tree.ySpacing), [Be, Ye] = bt(Kt.tree.ySpacing), He = typeof Wn == "function" ? Wn : Ye, [Ze, Ge] = bt(Kt.text.phyloLabelSize), [at, Nt] = bt(Kt.text.phyloLabelSize), Jt = typeof uo == "function" ? uo : Nt, [hn, On] = bt(Kt.text.geneLabelSize), [_n, Zt] = bt(Kt.text.geneLabelSize), Yt = typeof Ji == "function" ? Ji : Zt, [jt, mr] = bt(Kt.gene.edgeWidth), [Cr, ps] = bt(Kt.gene.edgeWidth), Yi = typeof tn == "function" ? tn : ps, [Jr, Vs] = bt(Kt.genome?.xScalePercent || 30), [Bs, ja] = bt(Kt.genome?.xScalePercent || 30), no = typeof Ar == "function" ? Ar : ja, na = ze || $n(null), [Ws, is] = bt(!0), [ro, Pi] = bt(!0), [ss, ra] = bt(!0), [qs, Fs] = bt(!0), [Do, Bo] = bt(!0), [So, Vo] = bt(!0), [Uc, J] = bt(!0), [Te, Se] = bt(!0), [Ie, je] = bt(!0), [V, ee] = bt(!0), ie = _e !== void 0 ? _e : Ws, ue = ve || is, Fe = rt !== void 0 ? rt : ro, De = Ke || Pi, gt = vt !== void 0 ? vt : ss, nt = $e || ra, yt = ct !== void 0 ? ct : qs, Ot = It || Fs, en = Xt !== void 0 ? Xt : Do, Cn = ln || Bo, Bn = Ln !== void 0 ? Ln : So, xr = mn || Vo, fr = mt !== void 0 ? mt : Uc, hr = on || J, er = $t !== void 0 ? $t : Te, Ir = En || Se, Ii = yn !== void 0 ? yn : Ie, Ni = li || je, os = $r !== void 0 ? $r : V, Mr = Yr || ee, [As, Xa] = bt(null), [Nr, To] = bt("idle"), [Gi, qr] = bt(null), [cl, hc] = bt(null), ul = 400, Ru = "hoodini_nvidia_api_key", [Wo, Pl] = bt(""), [tp, Sd] = bt(!1), [np, th] = bt(null);
23142
+ const { resolvedTheme: ni, getThemeColors: yi } = zc(), ci = A.useMemo(() => yi(ni), [ni]), [Hr, wi] = bt("info"), [Ua, Js] = bt(!1), eo = typeof e < "u" ? e : Ua, dr = typeof n == "function" ? n : Js, [No, fo] = bt(!1), Oo = typeof r < "u" ? r : No, Ci = typeof i == "function" ? i : fo, [Hi, ho] = bt(!1), cs = typeof s < "u" ? s : Hi, Zo = typeof o == "function" ? o : ho, [Vi, $a] = bt(!1), Qo = typeof a < "u" ? a : Vi, Sn = typeof u == "function" ? u : $a, [Ha, Gn] = bt(null), Wi = typeof d < "u" ? d : Ha, Lo = typeof h == "function" ? h : Gn, [ws, Us] = bt(!1), Ao = typeof g < "u" ? g : ws, zo = typeof m == "function" ? m : Us, [sl, Va] = bt("start"), Dr = typeof y < "u" ? y : sl, qi = typeof C == "function" ? C : Va, [us, tt] = bt("after-tree"), qn = typeof b < "u" ? b : us, $s = typeof _ == "function" ? _ : tt, [Zr, go] = bt(Kt.gene.arrowheadHeight), [vo, Eo] = bt(Kt.gene.height), [Pn, ut] = bt(Kt.gene.tipWidthMode), ne = Lt ?? Pn, Bt = ft ?? ut, [fn, vn] = bt(xt ?? Kt.gene.tipWidthFactor), [Wt, Gt] = bt(zt ?? Kt.gene.tipWidthFixed), [wn, gn] = bt("bottom"), In = typeof w < "u" ? w : wn, Qn = typeof E == "function" ? E : gn, [xi, Vr] = bt(""), Nn = typeof x < "u" ? x : xi, nn = typeof D == "function" ? D : Vr, [pn, Yn] = bt(""), _r = typeof S < "u" ? S : pn, xs = typeof k == "function" ? k : Yn, [ns, bi] = bt("domainName"), Di = typeof $ < "u" ? $ : ns, Br = typeof L == "function" ? L : bi, [to, ji] = bt(""), fa = typeof O < "u" ? O : to, _o = typeof P == "function" ? P : ji, [jn, Fi] = bt(""), rs = typeof U < "u" ? U : jn, Jo = typeof M == "function" ? M : Fi, [Pr, or] = bt({ enabled: !1 }), ds = typeof j < "u" ? j : Pr, Wa = typeof W == "function" ? W : or, [fs, St] = bt({ enabled: !1 }), Jn = typeof Y < "u" ? Y : fs, cn = typeof R == "function" ? R : St, [hs, Xi] = bt({ enabled: !1 }), ha = typeof H < "u" ? H : hs, Rl = typeof I == "function" ? I : Xi, [Uo, ga] = bt("all"), cc = typeof N < "u" ? N : Uo, ea = typeof q == "function" ? q : ga, [gs, uc] = bt({ enabled: !1 }), Tn = typeof Z < "u" ? Z : gs, pa = typeof ce == "function" ? ce : uc, [dc, kr] = bt({ enabled: !1 }), $o = typeof oe < "u" ? oe : dc, ol = typeof fe == "function" ? fe : kr, [ma, kl] = bt(null), Hs = typeof be < "u" ? be : ma, ya = typeof ge == "function" ? ge : kl, [Wr, is] = bt(null), Ho = typeof Ae < "u" ? Ae : Wr, Ca = typeof ke == "function" ? ke : is, [ta, po] = bt(Kt.tree.xScalePercent), [Pe, ba] = bt(null), Qr = typeof Ce < "u" ? Ce : Pe, [Bi, Ds] = bt(null), fc = typeof ot < "u" ? ot : Bi, [Ml, wo] = bt(!1), al = typeof kn < "u" ? kn : Ml, xo = typeof Vn == "function" ? Vn : wo, [qa, Fa] = bt(null), ll = typeof Mi < "u" ? Mi : qa, Si = typeof $i == "function" ? $i : Fa, [wr, T] = bt(!1), Q = typeof Zn < "u" ? Zn : wr, re = typeof Gr == "function" ? Gr : T, [te, X] = bt(!0), G = typeof mi < "u" ? mi : te, K = typeof Ji == "function" ? Ji : X, [ae, he] = bt(!0), me = typeof _i < "u" ? _i : ae, ye = typeof Kr == "function" ? Kr : he, [Me, Ue] = bt(Kt.tree.ySpacing), [Be, Ye] = bt(Kt.tree.ySpacing), He = typeof Wn == "function" ? Wn : Ye, [Ze, Ge] = bt(Kt.text.phyloLabelSize), [at, Nt] = bt(Kt.text.phyloLabelSize), Jt = typeof uo == "function" ? uo : Nt, [hn, On] = bt(Kt.text.geneLabelSize), [_n, Zt] = bt(Kt.text.geneLabelSize), Yt = typeof es == "function" ? es : Zt, [jt, mr] = bt(Kt.gene.edgeWidth), [Cr, ps] = bt(Kt.gene.edgeWidth), Yi = typeof tn == "function" ? tn : ps, [Jr, Vs] = bt(Kt.genome?.xScalePercent || 30), [Bs, ja] = bt(Kt.genome?.xScalePercent || 30), no = typeof Ar == "function" ? Ar : ja, na = ze || $n(null), [Ws, ss] = bt(!0), [ro, Pi] = bt(!0), [Gi, ra] = bt(!0), [qs, Fs] = bt(!0), [Do, Bo] = bt(!0), [So, Vo] = bt(!0), [Uc, J] = bt(!0), [Te, Se] = bt(!0), [Ie, je] = bt(!0), [V, ee] = bt(!0), ie = _e !== void 0 ? _e : Ws, ue = ve || ss, Fe = rt !== void 0 ? rt : ro, De = Ke || Pi, gt = vt !== void 0 ? vt : Gi, nt = $e || ra, yt = ct !== void 0 ? ct : qs, Ot = It || Fs, en = Xt !== void 0 ? Xt : Do, Cn = ln || Bo, Bn = Ln !== void 0 ? Ln : So, xr = mn || Vo, fr = mt !== void 0 ? mt : Uc, hr = on || J, er = $t !== void 0 ? $t : Te, Ir = En || Se, Ii = yn !== void 0 ? yn : Ie, Ni = li || je, os = $r !== void 0 ? $r : V, Mr = Yr || ee, [As, Xa] = bt(null), [Nr, To] = bt("idle"), [Ki, qr] = bt(null), [cl, hc] = bt(null), ul = 400, Ru = "hoodini_nvidia_api_key", [Wo, Pl] = bt(""), [tp, Sd] = bt(!1), [np, th] = bt(null);
23143
23143
  Kn(() => {
23144
23144
  const pt = localStorage.getItem(Ru);
23145
23145
  pt && Pl(pt);
@@ -23189,7 +23189,7 @@ function rq({
23189
23189
  To("needsApiKey"), Sd(!0), Xa(pt);
23190
23190
  return;
23191
23191
  }
23192
- if (!(As === pt && Nr === "folding") && !(Gi && As === pt && Nr === "success")) {
23192
+ if (!(As === pt && Nr === "folding") && !(Ki && As === pt && Nr === "success")) {
23193
23193
  Xa(pt), To("folding"), th(Oi), qr(null);
23194
23194
  try {
23195
23195
  const Rn = Dn && Dn.id || Dn && Dn.geneId || null;
@@ -23211,11 +23211,11 @@ function rq({
23211
23211
  qr({ pdb: pt, sequenceLength: yr, confidence: Oi }), To("success"), Iu(null), Xa(null), kd(null);
23212
23212
  }, Md = Dn && Dn.id || Dn && Dn.geneId || null;
23213
23213
  Dn?.metadata?.sequence && Dn.metadata.sequence.length > 0;
23214
- const ih = !!(Md && cl && Md === cl && (mc || Nr === "success" && Gi)), Nl = (pt) => {
23214
+ const ih = !!(Md && cl && Md === cl && (mc || Nr === "success" && Ki)), Nl = (pt) => {
23215
23215
  To("error"), Iu(pt || "Unknown viewer error");
23216
23216
  };
23217
23217
  return Kn(() => {
23218
- }, [mc, Nr, Gi, dl]), /* @__PURE__ */ le(c$, { collapsible: "offcanvas", variant: t, ...Qs, children: [
23218
+ }, [mc, Nr, Ki, dl]), /* @__PURE__ */ le(c$, { collapsible: "offcanvas", variant: t, ...Qs, children: [
23219
23219
  /* @__PURE__ */ B(
23220
23220
  "div",
23221
23221
  {
@@ -23515,7 +23515,7 @@ function rq({
23515
23515
  /* @__PURE__ */ le("div", { className: "flex items-center justify-between mb-2", children: [
23516
23516
  /* @__PURE__ */ B("h5", { className: "font-title text-xs font-medium", children: "3D Structure" }),
23517
23517
  (() => {
23518
- const Rn = Gi && typeof Gi.confidence == "number" ? Gi.confidence : null, ei = Rn !== null ? Rn <= 1 ? Rn * 100 : Rn : null, Li = ei !== null ? nq(ei) : "transparent", Aa = ei !== null && ei > 50 ? "#000" : "#fff";
23518
+ const Rn = Ki && typeof Ki.confidence == "number" ? Ki.confidence : null, ei = Rn !== null ? Rn <= 1 ? Rn * 100 : Rn : null, Li = ei !== null ? nq(ei) : "transparent", Aa = ei !== null && ei > 50 ? "#000" : "#fff";
23519
23519
  return /* @__PURE__ */ le(
23520
23520
  zr,
23521
23521
  {
@@ -23534,9 +23534,9 @@ function rq({
23534
23534
  YW,
23535
23535
  {
23536
23536
  sequence: mc,
23537
- pdbData: Gi?.pdb,
23538
- confidence: Gi?.confidence,
23539
- sequenceLength: Gi?.sequenceLength,
23537
+ pdbData: Ki?.pdb,
23538
+ confidence: Ki?.confidence,
23539
+ sequenceLength: Ki?.sequenceLength,
23540
23540
  onStructureReady: Il,
23541
23541
  onError: Nl,
23542
23542
  themeBackground: ci.background
@@ -23550,7 +23550,7 @@ function rq({
23550
23550
  "Structure predicted using ",
23551
23551
  np === "boltz2" ? "Boltz2" : "ESMFold",
23552
23552
  " • ",
23553
- Gi?.sequenceLength || mc?.length || "...",
23553
+ Ki?.sequenceLength || mc?.length || "...",
23554
23554
  " residues"
23555
23555
  ] })
23556
23556
  ] })
@@ -23845,7 +23845,7 @@ function rq({
23845
23845
  HF,
23846
23846
  {
23847
23847
  options: ["gene_id", ...nh].map((pt) => ({ label: pt, value: pt })),
23848
- value: ns ? ns.split(",").filter(Boolean) : [],
23848
+ value: rs ? rs.split(",").filter(Boolean) : [],
23849
23849
  onValueChange: (pt) => Jo(pt.length > 0 ? pt.join(",") : ""),
23850
23850
  placeholder: "Select columns...",
23851
23851
  maxCount: 2,
@@ -31031,11 +31031,11 @@ let Tm = class extends il {
31031
31031
  };
31032
31032
  Tm.instance = new Tm();
31033
31033
  const BR = /* @__PURE__ */ new Set(["all", "all", "any", "select", "arrayLength", "abs", "acos", "acosh", "asin", "asinh", "atan", "atanh", "atan2", "ceil", "clamp", "cos", "cosh", "countLeadingZeros", "countOneBits", "countTrailingZeros", "cross", "degrees", "determinant", "distance", "dot", "dot4U8Packed", "dot4I8Packed", "exp", "exp2", "extractBits", "faceForward", "firstLeadingBit", "firstTrailingBit", "floor", "fma", "fract", "frexp", "insertBits", "inverseSqrt", "ldexp", "length", "log", "log2", "max", "min", "mix", "modf", "normalize", "pow", "quantizeToF16", "radians", "reflect", "refract", "reverseBits", "round", "saturate", "sign", "sin", "sinh", "smoothStep", "sqrt", "step", "tan", "tanh", "transpose", "trunc", "dpdx", "dpdxCoarse", "dpdxFine", "dpdy", "dpdyCoarse", "dpdyFine", "fwidth", "fwidthCoarse", "fwidthFine", "textureDimensions", "textureGather", "textureGatherCompare", "textureLoad", "textureNumLayers", "textureNumLevels", "textureNumSamples", "textureSample", "textureSampleBias", "textureSampleCompare", "textureSampleCompareLevel", "textureSampleGrad", "textureSampleLevel", "textureSampleBaseClampToEdge", "textureStore", "atomicLoad", "atomicStore", "atomicAdd", "atomicSub", "atomicMax", "atomicMin", "atomicAnd", "atomicOr", "atomicXor", "atomicExchange", "atomicCompareExchangeWeak", "pack4x8snorm", "pack4x8unorm", "pack4xI8", "pack4xU8", "pack4x8Clamp", "pack4xU8Clamp", "pack2x16snorm", "pack2x16unorm", "pack2x16float", "unpack4x8snorm", "unpack4x8unorm", "unpack4xI8", "unpack4xU8", "unpack2x16snorm", "unpack2x16unorm", "unpack2x16float", "storageBarrier", "textureBarrier", "workgroupBarrier", "workgroupUniformLoad", "subgroupAdd", "subgroupExclusiveAdd", "subgroupInclusiveAdd", "subgroupAll", "subgroupAnd", "subgroupAny", "subgroupBallot", "subgroupBroadcast", "subgroupBroadcastFirst", "subgroupElect", "subgroupMax", "subgroupMin", "subgroupMul", "subgroupExclusiveMul", "subgroupInclusiveMul", "subgroupOr", "subgroupShuffle", "subgroupShuffleDown", "subgroupShuffleUp", "subgroupShuffleXor", "subgroupXor", "quadBroadcast", "quadSwapDiagonal", "quadSwapX", "quadSwapY"]);
31034
- let Zi = class extends il {
31034
+ let Qi = class extends il {
31035
31035
  constructor() {
31036
31036
  super();
31037
31037
  }
31038
- }, kg = class extends Zi {
31038
+ }, kg = class extends Qi {
31039
31039
  constructor(e, n, r, i, s, o) {
31040
31040
  super(), this.calls = /* @__PURE__ */ new Set(), this.name = e, this.args = n, this.returnType = r, this.body = i, this.startLine = s, this.endLine = o;
31041
31041
  }
@@ -31048,7 +31048,7 @@ let Zi = class extends il {
31048
31048
  for (const n of this.args) e(n);
31049
31049
  this.searchBlock(this.body, e);
31050
31050
  }
31051
- }, xG = class extends Zi {
31051
+ }, xG = class extends Qi {
31052
31052
  constructor(e) {
31053
31053
  super(), this.expression = e;
31054
31054
  }
@@ -31058,7 +31058,7 @@ let Zi = class extends il {
31058
31058
  search(e) {
31059
31059
  this.expression.search(e);
31060
31060
  }
31061
- }, SR = class extends Zi {
31061
+ }, SR = class extends Qi {
31062
31062
  constructor(e, n) {
31063
31063
  super(), this.condition = e, this.body = n;
31064
31064
  }
@@ -31069,7 +31069,7 @@ let Zi = class extends il {
31069
31069
  this.condition.search(e), this.searchBlock(this.body, e);
31070
31070
  }
31071
31071
  };
31072
- class sA extends Zi {
31072
+ class sA extends Qi {
31073
31073
  constructor(e, n) {
31074
31074
  super(), this.body = e, this.loopId = n;
31075
31075
  }
@@ -31080,7 +31080,7 @@ class sA extends Zi {
31080
31080
  this.searchBlock(this.body, e);
31081
31081
  }
31082
31082
  }
31083
- let TR = class extends Zi {
31083
+ let TR = class extends Qi {
31084
31084
  constructor(e, n, r, i) {
31085
31085
  super(), this.init = e, this.condition = n, this.increment = r, this.body = i;
31086
31086
  }
@@ -31091,7 +31091,7 @@ let TR = class extends Zi {
31091
31091
  var n, r, i;
31092
31092
  (n = this.init) === null || n === void 0 || n.search(e), (r = this.condition) === null || r === void 0 || r.search(e), (i = this.increment) === null || i === void 0 || i.search(e), this.searchBlock(this.body, e);
31093
31093
  }
31094
- }, kc = class extends Zi {
31094
+ }, kc = class extends Qi {
31095
31095
  constructor(e, n, r, i, s) {
31096
31096
  super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
31097
31097
  }
@@ -31102,7 +31102,7 @@ let TR = class extends Zi {
31102
31102
  var n;
31103
31103
  e(this), (n = this.value) === null || n === void 0 || n.search(e);
31104
31104
  }
31105
- }, Ov = class extends Zi {
31105
+ }, Ov = class extends Qi {
31106
31106
  constructor(e, n, r) {
31107
31107
  super(), this.attributes = null, this.name = e, this.type = n, this.value = r;
31108
31108
  }
@@ -31113,7 +31113,7 @@ let TR = class extends Zi {
31113
31113
  var n;
31114
31114
  (n = this.value) === null || n === void 0 || n.search(e);
31115
31115
  }
31116
- }, hg = class extends Zi {
31116
+ }, hg = class extends Qi {
31117
31117
  constructor(e, n, r, i, s) {
31118
31118
  super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
31119
31119
  }
@@ -31124,7 +31124,7 @@ let TR = class extends Zi {
31124
31124
  var n;
31125
31125
  e(this), (n = this.value) === null || n === void 0 || n.search(e);
31126
31126
  }
31127
- }, j0 = class extends Zi {
31127
+ }, j0 = class extends Qi {
31128
31128
  constructor(e, n, r, i, s) {
31129
31129
  super(), this.attributes = null, this.name = e, this.type = n, this.storage = r, this.access = i, this.value = s;
31130
31130
  }
@@ -31149,7 +31149,7 @@ var hf, Jh, Qe, Ne;
31149
31149
  return t[n];
31150
31150
  };
31151
31151
  })(hf || (hf = {}));
31152
- let RR = class extends Zi {
31152
+ let RR = class extends Qi {
31153
31153
  constructor(e, n) {
31154
31154
  super(), this.operator = e, this.variable = n;
31155
31155
  }
@@ -31169,7 +31169,7 @@ let RR = class extends Zi {
31169
31169
  return n;
31170
31170
  };
31171
31171
  })(Jh || (Jh = {}));
31172
- let kR = class extends Zi {
31172
+ let kR = class extends Qi {
31173
31173
  constructor(e, n, r) {
31174
31174
  super(), this.operator = e, this.variable = n, this.value = r;
31175
31175
  }
@@ -31179,7 +31179,7 @@ let kR = class extends Zi {
31179
31179
  search(e) {
31180
31180
  this.variable.search(e), this.value.search(e);
31181
31181
  }
31182
- }, Lv = class extends Zi {
31182
+ }, Lv = class extends Qi {
31183
31183
  constructor(e, n) {
31184
31184
  super(), this.name = e, this.args = n;
31185
31185
  }
@@ -31193,7 +31193,7 @@ let kR = class extends Zi {
31193
31193
  for (const n of this.args) n.search(e);
31194
31194
  e(this);
31195
31195
  }
31196
- }, MR = class extends Zi {
31196
+ }, MR = class extends Qi {
31197
31197
  constructor(e, n) {
31198
31198
  super(), this.body = e, this.continuing = n;
31199
31199
  }
@@ -31205,7 +31205,7 @@ let kR = class extends Zi {
31205
31205
  this.searchBlock(this.body, e), (n = this.continuing) === null || n === void 0 || n.search(e);
31206
31206
  }
31207
31207
  };
31208
- class PR extends Zi {
31208
+ class PR extends Qi {
31209
31209
  constructor(e, n) {
31210
31210
  super(), this.condition = e, this.cases = n;
31211
31211
  }
@@ -31217,7 +31217,7 @@ class PR extends Zi {
31217
31217
  for (const n of this.cases) n.search(e);
31218
31218
  }
31219
31219
  }
31220
- let IR = class extends Zi {
31220
+ let IR = class extends Qi {
31221
31221
  constructor(e, n, r, i) {
31222
31222
  super(), this.condition = e, this.body = n, this.elseif = r, this.else = i;
31223
31223
  }
@@ -31228,7 +31228,7 @@ let IR = class extends Zi {
31228
31228
  this.condition.search(e), this.searchBlock(this.body, e), this.searchBlock(this.elseif, e), this.searchBlock(this.else, e);
31229
31229
  }
31230
31230
  };
31231
- class NR extends Zi {
31231
+ class NR extends Qi {
31232
31232
  constructor(e) {
31233
31233
  super(), this.value = e;
31234
31234
  }
@@ -31240,14 +31240,14 @@ class NR extends Zi {
31240
31240
  (n = this.value) === null || n === void 0 || n.search(e);
31241
31241
  }
31242
31242
  }
31243
- let DG = class extends Zi {
31243
+ let DG = class extends Qi {
31244
31244
  constructor(e) {
31245
31245
  super(), this.name = e;
31246
31246
  }
31247
31247
  get astNodeType() {
31248
31248
  return "enable";
31249
31249
  }
31250
- }, BG = class extends Zi {
31250
+ }, BG = class extends Qi {
31251
31251
  constructor(e) {
31252
31252
  super(), this.extensions = e;
31253
31253
  }
@@ -31255,7 +31255,7 @@ let DG = class extends Zi {
31255
31255
  return "requires";
31256
31256
  }
31257
31257
  };
31258
- class OR extends Zi {
31258
+ class OR extends Qi {
31259
31259
  constructor(e, n) {
31260
31260
  super(), this.severity = e, this.rule = n;
31261
31261
  }
@@ -31263,7 +31263,7 @@ class OR extends Zi {
31263
31263
  return "diagnostic";
31264
31264
  }
31265
31265
  }
31266
- class zv extends Zi {
31266
+ class zv extends Qi {
31267
31267
  constructor(e, n) {
31268
31268
  super(), this.name = e, this.type = n;
31269
31269
  }
@@ -31271,7 +31271,7 @@ class zv extends Zi {
31271
31271
  return "alias";
31272
31272
  }
31273
31273
  }
31274
- class SG extends Zi {
31274
+ class SG extends Qi {
31275
31275
  constructor() {
31276
31276
  super();
31277
31277
  }
@@ -31279,21 +31279,21 @@ class SG extends Zi {
31279
31279
  return "discard";
31280
31280
  }
31281
31281
  }
31282
- let LR = class extends Zi {
31282
+ let LR = class extends Qi {
31283
31283
  constructor() {
31284
31284
  super(), this.condition = null, this.loopId = -1;
31285
31285
  }
31286
31286
  get astNodeType() {
31287
31287
  return "break";
31288
31288
  }
31289
- }, zR = class extends Zi {
31289
+ }, zR = class extends Qi {
31290
31290
  constructor() {
31291
31291
  super(), this.loopId = -1;
31292
31292
  }
31293
31293
  get astNodeType() {
31294
31294
  return "continue";
31295
31295
  }
31296
- }, kt = class X0 extends Zi {
31296
+ }, kt = class X0 extends Qi {
31297
31297
  constructor(e) {
31298
31298
  super(), this.attributes = null, this.name = e;
31299
31299
  }
@@ -57592,7 +57592,7 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
57592
57592
  console.log("🎯 Ruler rendering with rulerScaleFactor:", lt, "base fontSize: 11 -> scaled:", 11 * lt), ht.ruler.height * lt;
57593
57593
  const qt = Ut, kn = ht.ruler.tickHeight * lt, Vn = ht.ruler.labelOffset * lt, Mi = 11 * lt;
57594
57594
  At += "<g id='ruler'>";
57595
- const $i = ft || 0, Gr = (ht.genome && typeof ht.genome.xScalePercent == "number" ? ht.genome.xScalePercent : 100) / 100, mi = (tn) => tn * Gr + $i, Qi = (tn) => {
57595
+ const $i = ft || 0, Gr = (ht.genome && typeof ht.genome.xScalePercent == "number" ? ht.genome.xScalePercent : 100) / 100, mi = (tn) => tn * Gr + $i, Ji = (tn) => {
57596
57596
  const Zs = mi(tn.x), [Ar] = Ee([Zs, 0]);
57597
57597
  return Ar;
57598
57598
  }, _i = zt.slice(0, 3);
@@ -57601,26 +57601,26 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
57601
57601
  worldX: mi(tn.x),
57602
57602
  screenX: tn.screenX,
57603
57603
  type: tn.type,
57604
- computedSvgX: Qi(tn)
57604
+ computedSvgX: Ji(tn)
57605
57605
  }))), console.log("🎯 Ruler debug - bounds:", { min_x: w, max_x: E, svgWidth: S, xOffset: be, contentScale: Ae, useFormatDimensions: b, compactWidth: q, finalWidth: ce, alignmentRef: $i, genomeXScaleValue: Gr });
57606
- const Kr = zt.filter((tn) => tn && typeof tn.x == "number" && isFinite(tn.x)).map((tn) => Qi(tn)), rr = 10, Wn = Math.max(0, Math.min(...Kr) - rr), ir = Math.min(ce, Math.max(...Kr) + rr);
57606
+ const Kr = zt.filter((tn) => tn && typeof tn.x == "number" && isFinite(tn.x)).map((tn) => Ji(tn)), rr = 10, Wn = Math.max(0, Math.min(...Kr) - rr), ir = Math.min(ce, Math.max(...Kr) + rr);
57607
57607
  At += `<line x1='${Wn}' y1='${qt}' x2='${ir}' y2='${qt}' stroke='${Hn}' stroke-width='0.5'/>`;
57608
57608
  const uo = zt.filter((tn) => tn && tn.type && typeof tn.x == "number" && isFinite(tn.x)).map((tn) => ({
57609
57609
  ...tn,
57610
57610
  worldX: mi(tn.x),
57611
- screenX: Qi(tn)
57611
+ screenX: Ji(tn)
57612
57612
  })).filter((tn) => tn.screenX >= 0 && tn.screenX <= ce);
57613
57613
  console.log("🎯 SVG Export: filtered ticks:", uo.length, { contentScale: Ae, useFormatDimensions: b });
57614
- const Ji = i.showTreeLayer === !0 || i.showTreeTextLayer === !0 ? uo.filter((tn) => tn.type === "tree" && tn.isScale) : [], es = uo.filter((tn) => tn.type === "gene");
57614
+ const es = i.showTreeLayer === !0 || i.showTreeTextLayer === !0 ? uo.filter((tn) => tn.type === "tree" && tn.isScale) : [], ts = uo.filter((tn) => tn.type === "gene");
57615
57615
  At += "<g id='ruler-tree'>";
57616
- for (const tn of Ji)
57616
+ for (const tn of es)
57617
57617
  At += `<line x1='${tn.screenX}' y1='${qt}' x2='${tn.screenX}' y2='${qt + kn / 2}' stroke='${zn}' stroke-width='1'/>`, At += `<text x='${tn.screenX}' y='${qt + Vn}' text-anchor='middle' font-size='${Mi}px' fill='${zn}' font-family='Helvetica, Arial, sans-serif' font-weight='bold'>${tn.label}</text>`;
57618
57618
  At += "</g>", At += "<g id='ruler-genes'>";
57619
- for (const tn of es)
57619
+ for (const tn of ts)
57620
57620
  At += `<line x1='${tn.screenX}' y1='${qt}' x2='${tn.screenX}' y2='${qt + kn}' stroke='${Hn}' stroke-width='1'/>`, At += `<text x='${tn.screenX}' y='${qt + Vn}' text-anchor='middle' font-size='${Mi}px' fill='${Ht}' font-family='Helvetica, Arial, sans-serif'>${F5(tn.x)}</text>`;
57621
- if (es.length > 1)
57622
- for (let tn = 0; tn < es.length - 1; tn++) {
57623
- const Zs = es[tn], Ar = es[tn + 1];
57621
+ if (ts.length > 1)
57622
+ for (let tn = 0; tn < ts.length - 1; tn++) {
57623
+ const Zs = ts[tn], Ar = ts[tn + 1];
57624
57624
  if (Ar.x - Zs.x > 20) {
57625
57625
  const sr = Zs.screenX + (Ar.screenX - Zs.screenX) / 2;
57626
57626
  sr >= 0 && sr <= ce && (At += `<line x1='${sr}' y1='${qt}' x2='${sr}' y2='${qt + kn / 2}' stroke='${Hn}' stroke-width='0.5'/>`);
@@ -57649,8 +57649,8 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
57649
57649
  const Hn = pi - Yr, Ht = 60, zn = q - ln, qt = Math.floor(zn / Ht), kn = Math.max(3, Math.min(8, qt)), Vn = Hn / kn, Mi = Math.pow(10, Math.floor(Math.log10(Vn))), $i = Vn / Mi;
57650
57650
  let Zn;
57651
57651
  $i <= 1 ? Zn = 1 : $i <= 2 ? Zn = 2 : $i <= 5 ? Zn = 5 : Zn = 10;
57652
- const Gr = Zn * Mi, mi = Math.floor(Yr / Gr), Qi = Math.ceil(pi / Gr);
57653
- for (let _i = mi; _i <= Qi; _i++) {
57652
+ const Gr = Zn * Mi, mi = Math.floor(Yr / Gr), Ji = Math.ceil(pi / Gr);
57653
+ for (let _i = mi; _i <= Ji; _i++) {
57654
57654
  const Kr = _i * Gr;
57655
57655
  if (Kr < Yr - Gr * 0.1 || Kr > pi + Gr * 0.1) continue;
57656
57656
  const rr = Kr * yn + En, Wn = Xt(rr);
@@ -57660,9 +57660,9 @@ function Hse(t, e, n, r, i, s = {}, o = 5, a = 1, u) {
57660
57660
  if ((i.showTreeLayer === !0 || i.showTreeTextLayer === !0) && It !== null && ln > 30 && Tt && Tt.tree && xt) {
57661
57661
  const Hn = xt.treeOffset || 0, Ht = ht.tree && typeof ht.tree.xScalePercent == "number" ? ht.tree.xScalePercent / 100 : 1, zn = Tt.tree.allNodes.map((Gr) => Gr.y * Ht + Hn), qt = Math.min(...zn), kn = Math.max(...zn), Vn = Tt.tree.maxEvolutionaryDistance || 1, Mi = ht.tree?.fixedCoordinateWidth || 2e3, $i = Math.max(qt, w), Zn = Math.min(kn, It);
57662
57662
  if (Zn > $i) {
57663
- const mi = Math.floor(ln / 60), Qi = Math.min(4, Math.max(2, mi));
57664
- for (let _i = 0; _i < Qi; _i++) {
57665
- const Kr = $i + _i / Math.max(1, Qi - 1) * (Zn - $i), rr = Xt(Kr), Wn = (Kr - Hn) / Ht * (Vn / Mi);
57663
+ const mi = Math.floor(ln / 60), Ji = Math.min(4, Math.max(2, mi));
57664
+ for (let _i = 0; _i < Ji; _i++) {
57665
+ const Kr = $i + _i / Math.max(1, Ji - 1) * (Zn - $i), rr = Xt(Kr), Wn = (Kr - Hn) / Ht * (Vn / Mi);
57666
57666
  let ir;
57667
57667
  Vn < 1e-3 ? ir = Wn.toExponential(1) : Vn < 0.1 || Vn < 1 ? ir = Wn.toFixed(2) : ir = Wn.toFixed(1), rr >= 0 && rr <= ln && (mt.push({ screenX: rr, label: ir }), Ln.push(rr));
57668
57668
  }
@@ -57838,10 +57838,10 @@ const as = !1, xM = it.forwardRef(({
57838
57838
  return te;
57839
57839
  }
57840
57840
  return {};
57841
- }, [Ht, zn] = bt(null), [qt, kn] = bt(0), [Vn, Mi] = bt(!1), $i = it.useRef(null), [Zn, Gr] = it.useState({ width: 0, height: 0 }), [mi, Qi] = it.useState(!0), [_i, Kr] = bt(P?.tree?.xScalePercent || Kt.tree.xScalePercent), rr = ot ?? _i, [Wn, ir] = bt({
57841
+ }, [Ht, zn] = bt(null), [qt, kn] = bt(0), [Vn, Mi] = bt(!1), $i = it.useRef(null), [Zn, Gr] = it.useState({ width: 0, height: 0 }), [mi, Ji] = it.useState(!0), [_i, Kr] = bt(P?.tree?.xScalePercent || Kt.tree.xScalePercent), rr = ot ?? _i, [Wn, ir] = bt({
57842
57842
  target: [0, 0, 0],
57843
57843
  zoom: -2
57844
- }), [uo, Io] = bt(null), [Ji, es] = bt(null), [tn, Zs] = bt(null), [Ar, _s] = bt(null), [sr, Qs] = bt(null), [ni, yi] = bt(null), [ci, Hr] = bt(null), [wi, Ua] = bt(null), Js = $n(!1), eo = $n(null), dr = $n(null), No = $n(0), fo = $n([]), Oo = it.useRef(null);
57844
+ }), [uo, Io] = bt(null), [es, ts] = bt(null), [tn, Zs] = bt(null), [Ar, _s] = bt(null), [sr, Qs] = bt(null), [ni, yi] = bt(null), [ci, Hr] = bt(null), [wi, Ua] = bt(null), Js = $n(!1), eo = $n(null), dr = $n(null), No = $n(0), fo = $n([]), Oo = it.useRef(null);
57845
57845
  it.useEffect(() => {
57846
57846
  try {
57847
57847
  console.debug("[HoodiniViz] mounted; initial selectedNode=", Ht);
@@ -57862,7 +57862,7 @@ const as = !1, xM = it.forwardRef(({
57862
57862
  }, []), ho = it.useCallback(() => {
57863
57863
  Js.current = !1, yi(null);
57864
57864
  }, []), cs = it.useCallback(() => {
57865
- es(null), _s(null);
57865
+ ts(null), _s(null);
57866
57866
  }, []), Zo = it.useCallback(() => {
57867
57867
  Qs(null);
57868
57868
  }, []), Vi = it.useCallback(() => {
@@ -58311,17 +58311,17 @@ const as = !1, xM = it.forwardRef(({
58311
58311
  zoom: K
58312
58312
  })), Yn.current = !0;
58313
58313
  }, [Zn.width, Zn.height, pn.minX, pn.maxX, pn.minY, pn.maxY]);
58314
- const _r = Oo.current || nn, xs = _r.minY, ts = _r.maxY, bi = _r.minX ?? nn.minX, Di = _r.maxX ?? nn.maxX, Br = P?.scrollbar?.panPaddingY ?? 50, to = xs - Br, ji = ts + Br, [fa, _o] = it.useState(0);
58314
+ const _r = Oo.current || nn, xs = _r.minY, ns = _r.maxY, bi = _r.minX ?? nn.minX, Di = _r.maxX ?? nn.maxX, Br = P?.scrollbar?.panPaddingY ?? 50, to = xs - Br, ji = ns + Br, [fa, _o] = it.useState(0);
58315
58315
  it.useEffect(() => {
58316
- if (Wn && isFinite(Wn.target[1]) && isFinite(xs) && isFinite(ts) && ts > xs) {
58317
- const T = (ts - Wn.target[1]) / (ts - xs) * 100;
58316
+ if (Wn && isFinite(Wn.target[1]) && isFinite(xs) && isFinite(ns) && ns > xs) {
58317
+ const T = (ns - Wn.target[1]) / (ns - xs) * 100;
58318
58318
  _o(Math.max(0, Math.min(100, T)));
58319
58319
  }
58320
- }, [Wn?.target?.[1], xs, ts]);
58320
+ }, [Wn?.target?.[1], xs, ns]);
58321
58321
  let jn = 1;
58322
- if (Wn && Zn.height && ts > xs) {
58322
+ if (Wn && Zn.height && ns > xs) {
58323
58323
  const T = Math.pow(2, Wn.zoom || 0), Q = Zn.height / T;
58324
- jn = Math.min(1, Q / (ts - xs));
58324
+ jn = Math.min(1, Q / (ns - xs));
58325
58325
  }
58326
58326
  function Fi(T, Q, re, te, X, G, K = "bottom", ae = null, he = 100, me = 150) {
58327
58327
  const ye = (Ge) => {
@@ -58385,35 +58385,35 @@ const as = !1, xM = it.forwardRef(({
58385
58385
  }
58386
58386
  return T.map((Ge) => {
58387
58387
  if (Ye !== null) {
58388
- const Pi = Ge.id || Ge.uniqueId || "", ss = Pi.indexOf("_");
58389
- if ((ss > 0 ? Pi.substring(0, ss) : "") !== Ye)
58388
+ const Pi = Ge.id || Ge.uniqueId || "", Gi = Pi.indexOf("_");
58389
+ if ((Gi > 0 ? Pi.substring(0, Gi) : "") !== Ye)
58390
58390
  return null;
58391
58391
  }
58392
58392
  const at = Ge;
58393
58393
  let Nt;
58394
58394
  if (Be && Be.length > 0) {
58395
- const Pi = Be.map((ss) => ss === "gene_id" ? at.id || at.geneId || at.metadata?.gene_id : at.metadata?.[ss]).filter((ss) => ss != null && ss !== "");
58395
+ const Pi = Be.map((Gi) => Gi === "gene_id" ? at.id || at.geneId || at.metadata?.gene_id : at.metadata?.[Gi] ?? at.metadata?.attributes?.[Gi]).filter((Gi) => Gi != null && Gi !== "");
58396
58396
  Nt = Pi.length > 0 ? Pi.join(" | ") : null;
58397
58397
  } else
58398
58398
  Nt = at.id || at.geneId || at.metadata?.gene_id || null;
58399
58399
  if (Nt == null) return null;
58400
- const Jt = (at.start + at.end) / 2, hn = at.trackY !== void 0 && at.trackY !== null ? at.trackY : at.polygon && at.polygon.length ? Math.min(...at.polygon.map(([Pi, ss]) => ss)) : 0, _n = (at.geneHeight !== void 0 && at.geneHeight !== null ? at.geneHeight : G && G.gene ? G.gene.height : 60) / 2, Zt = Me(at), Yt = ns(Zt) || ye(X.geneFill), jt = Math.abs(at.end - at.start) * (he / 100), mr = G && G.text && G.text.geneLabelSize ? G.text.geneLabelSize : 12, Cr = Nt == null ? "" : String(Nt), Yi = jt / (mr * 0.4);
58400
+ const Jt = (at.start + at.end) / 2, hn = at.trackY !== void 0 && at.trackY !== null ? at.trackY : at.polygon && at.polygon.length ? Math.min(...at.polygon.map(([Pi, Gi]) => Gi)) : 0, _n = (at.geneHeight !== void 0 && at.geneHeight !== null ? at.geneHeight : G && G.gene ? G.gene.height : 60) / 2, Zt = Me(at), Yt = rs(Zt) || ye(X.geneFill), jt = Math.abs(at.end - at.start) * (he / 100), mr = G && G.text && G.text.geneLabelSize ? G.text.geneLabelSize : 12, Cr = Nt == null ? "" : String(Nt), Yi = jt / (mr * 0.4);
58401
58401
  let Jr = mr;
58402
58402
  if (Cr.length > Yi && Yi > 0) {
58403
58403
  const Pi = Math.min(1, Yi * 2 / Cr.length);
58404
58404
  Jr = Math.max(mr * 0.5, mr * Math.max(0.5, Pi));
58405
58405
  }
58406
58406
  const Vs = at.geneHeight !== void 0 && at.geneHeight !== null ? at.geneHeight : G && G.gene ? G.gene.height : 60, Bs = me - Vs - 10, ja = Jr * 7, no = Math.max(1, Math.floor(Bs / ja)), na = Ue(Cr, jt, Jr, no), Ws = 2;
58407
- let is;
58407
+ let ss;
58408
58408
  switch ((K || "bottom").toLowerCase()) {
58409
58409
  case "top":
58410
- is = hn + _n + Ws;
58410
+ ss = hn + _n + Ws;
58411
58411
  break;
58412
58412
  case "center":
58413
- is = hn;
58413
+ ss = hn;
58414
58414
  break;
58415
58415
  default:
58416
- is = hn - _n - Ws;
58416
+ ss = hn - _n - Ws;
58417
58417
  break;
58418
58418
  }
58419
58419
  let ro = "top";
@@ -58429,7 +58429,7 @@ const as = !1, xM = it.forwardRef(({
58429
58429
  break;
58430
58430
  }
58431
58431
  return {
58432
- position: [Jt, is],
58432
+ position: [Jt, ss],
58433
58433
  text: na,
58434
58434
  color: Yt,
58435
58435
  size: Jr,
@@ -58438,7 +58438,7 @@ const as = !1, xM = it.forwardRef(({
58438
58438
  };
58439
58439
  }).filter(Boolean);
58440
58440
  }
58441
- function ns(T, Q = P.stroke.darkenFactor) {
58441
+ function rs(T, Q = P.stroke.darkenFactor) {
58442
58442
  return !Array.isArray(T) || T.length < 3 ? T : [
58443
58443
  Math.max(0, Math.floor(T[0] * Q)),
58444
58444
  Math.max(0, Math.floor(T[1] * Q)),
@@ -58992,7 +58992,7 @@ const as = !1, xM = it.forwardRef(({
58992
58992
  const te = /* @__PURE__ */ new Set(), X = Array.from(Tn.entries()).filter(([G]) => {
58993
58993
  const K = String(G);
58994
58994
  return te.has(K) ? !1 : (te.add(K), !0);
58995
- }).map(([G, K]) => ({ value: String(G), color: K, stroke: Array.isArray(K) ? ns(K) : null }));
58995
+ }).map(([G, K]) => ({ value: String(G), color: K, stroke: Array.isArray(K) ? rs(K) : null }));
58996
58996
  Q.genes = X;
58997
58997
  } else if (T && T.genesById) {
58998
58998
  const te = /* @__PURE__ */ new Map(), X = ge || S || "cluster", G = (K) => {
@@ -59014,7 +59014,7 @@ const as = !1, xM = it.forwardRef(({
59014
59014
  const he = String(ae);
59015
59015
  if (!te.has(he)) {
59016
59016
  const me = G(K);
59017
- te.set(he, { value: he, color: me, stroke: Array.isArray(me) ? ns(me) : null });
59017
+ te.set(he, { value: he, color: me, stroke: Array.isArray(me) ? rs(me) : null });
59018
59018
  }
59019
59019
  }
59020
59020
  }), Q.genes = Array.from(te.values());
@@ -59048,7 +59048,7 @@ const as = !1, xM = it.forwardRef(({
59048
59048
  const Ue = Me >> 0 & 255, Be = Me >> 8 & 255, Ye = Me >> 16 & 255;
59049
59049
  ye = [Math.abs(Ue), Math.abs(Be), Math.abs(Ye), 255];
59050
59050
  }
59051
- re.set(me, { value: me, color: ye, stroke: Array.isArray(ye) ? ns(ye) : null });
59051
+ re.set(me, { value: me, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
59052
59052
  });
59053
59053
  }
59054
59054
  if (Q.phylo = Array.from(re.values()), T && Array.isArray(T.proteinLinks) && T.proteinLinks.length > 0) {
@@ -59071,14 +59071,14 @@ const as = !1, xM = it.forwardRef(({
59071
59071
  let ye = ae.metadata && ae.metadata[me];
59072
59072
  or(ye) && me === "cluster" && (ye = ae.cluster);
59073
59073
  const Me = Tn && ae && !or(ye) ? ds(Tn, Fl(ye), St?.type) || ae.fillColor : ae.fillColor || mt.geneFill;
59074
- X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: Me, stroke: Array.isArray(Me) ? ns(Me) : null });
59074
+ X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: Me, stroke: Array.isArray(Me) ? rs(Me) : null });
59075
59075
  }
59076
59076
  if (te.colorBy === "target_gene" && he) {
59077
59077
  const me = ge || S || "cluster";
59078
59078
  let ye = he.metadata && he.metadata[me];
59079
59079
  or(ye) && me === "cluster" && (ye = he.cluster);
59080
59080
  const Me = Tn && he && !or(ye) ? ds(Tn, Fl(ye), St?.type) || he.fillColor : he.fillColor || mt.geneFill;
59081
- X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: Me, stroke: Array.isArray(Me) ? ns(Me) : null });
59081
+ X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: Me, stroke: Array.isArray(Me) ? rs(Me) : null });
59082
59082
  }
59083
59083
  });
59084
59084
  const G = /* @__PURE__ */ new Map();
@@ -59105,11 +59105,11 @@ const as = !1, xM = it.forwardRef(({
59105
59105
  const ae = T.genesById && T.genesById[K.gAId], he = T.genesById && T.genesById[K.gBId];
59106
59106
  if (te.colorBy === "source_gene" && ae) {
59107
59107
  const me = ae.metadata && ae.metadata[ge || S] || ae.cluster, ye = Tn && ae && me ? ds(Tn, me, St?.type) || ae.fillColor : ae.fillColor || mt.geneFill;
59108
- X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: ye, stroke: Array.isArray(ye) ? ns(ye) : null });
59108
+ X.push({ id: K.gAId, label: ae.metadata ? ae.metadata[ge || S] : ae.id, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
59109
59109
  }
59110
59110
  if (te.colorBy === "target_gene" && he) {
59111
59111
  const me = he.metadata && he.metadata[ge || S] || he.cluster, ye = Tn && he && me ? ds(Tn, me, St?.type) || he.fillColor : he.fillColor || mt.geneFill;
59112
- X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: ye, stroke: Array.isArray(ye) ? ns(ye) : null });
59112
+ X.push({ id: K.gBId, label: he.metadata ? he.metadata[ge || S] : he.id, color: ye, stroke: Array.isArray(ye) ? rs(ye) : null });
59113
59113
  }
59114
59114
  });
59115
59115
  const G = /* @__PURE__ */ new Map();
@@ -59133,7 +59133,7 @@ const as = !1, xM = it.forwardRef(({
59133
59133
  else {
59134
59134
  const G = {};
59135
59135
  te.forEach((K) => {
59136
- const ae = K.metadata && (K.metadata.region_type || K.metadata.type) ? String(K.metadata.region_type || K.metadata.type) : K.name || K.id || "region", he = K.fillColor || K.color || null, me = K.strokeColor || (Array.isArray(he) ? ns(he) : null);
59136
+ const ae = K.metadata && (K.metadata.region_type || K.metadata.type) ? String(K.metadata.region_type || K.metadata.type) : K.name || K.id || "region", he = K.fillColor || K.color || null, me = K.strokeColor || (Array.isArray(he) ? rs(he) : null);
59137
59137
  G[ae] = { color: he, stroke: me };
59138
59138
  }), Q.regions = G;
59139
59139
  }
@@ -59145,7 +59145,7 @@ const as = !1, xM = it.forwardRef(({
59145
59145
  if (te && te.length > 0) {
59146
59146
  const X = /* @__PURE__ */ new Map();
59147
59147
  te.forEach((G) => {
59148
- const K = G.metadata && G.metadata.type ? String(G.metadata.type) : G.name || G.id || "ncRNA", ae = G.fillColor || G.color || null, he = G.strokeColor || (Array.isArray(ae) ? ns(ae) : null);
59148
+ const K = G.metadata && G.metadata.type ? String(G.metadata.type) : G.name || G.id || "ncRNA", ae = G.fillColor || G.color || null, he = G.strokeColor || (Array.isArray(ae) ? rs(ae) : null);
59149
59149
  X.has(K) || X.set(K, { label: String(K), color: ae, stroke: he });
59150
59150
  }), Q.ncRNAs = Array.from(X.values());
59151
59151
  }
@@ -59433,7 +59433,7 @@ const as = !1, xM = it.forwardRef(({
59433
59433
  }, [ne, Pn, W, P.tree?.phyloLabelPosition, qt, rr, oe, O, $, L, $e]), Wr = it.useMemo(() => {
59434
59434
  const T = JSON.stringify(Z || P?.colorPalettes?.genePalette || {}), Q = JSON.stringify(fe || P?.colorPalettes?.ncRNAPalette || {}), re = JSON.stringify(be || P?.colorPalettes?.regionPalette || {}), te = JSON.stringify(ce || P?.colorPalettes?.domainPalette || {}), X = JSON.stringify(Ee || {}), G = JSON.stringify(Ce || {});
59435
59435
  return `${T}|${Q}|${re}|${te}|${X}|${G}|${qt}`;
59436
- }, [Z, fe, be, Ee, Ce, qt, P]), rs = it.useMemo(() => {
59436
+ }, [Z, fe, be, Ee, Ce, qt, P]), is = it.useMemo(() => {
59437
59437
  const T = /* @__PURE__ */ new Map();
59438
59438
  if (!ne) return T;
59439
59439
  const Q = St?.enabled, re = ge || S || "cluster", te = (X) => {
@@ -59490,7 +59490,7 @@ const as = !1, xM = it.forwardRef(({
59490
59490
  end: G.end,
59491
59491
  strand: G.strand,
59492
59492
  trackY: G.trackY,
59493
- fillColor: rs.get(K) || mt.geneFill || [200, 200, 200, 255]
59493
+ fillColor: is.get(K) || mt.geneFill || [200, 200, 200, 255]
59494
59494
  };
59495
59495
  });
59496
59496
  } catch {
@@ -59502,10 +59502,10 @@ const as = !1, xM = it.forwardRef(({
59502
59502
  end: G.end,
59503
59503
  strand: G.strand,
59504
59504
  trackY: G.trackY,
59505
- fillColor: rs.get(X) || mt.geneFill || [200, 200, 200, 255]
59505
+ fillColor: is.get(X) || mt.geneFill || [200, 200, 200, 255]
59506
59506
  }));
59507
59507
  return te.filter((X) => X.fillColor && X.fillColor[0] !== 200), te;
59508
- }, [ne, ne?._paletteVersion, St?.enabled, rs, mt, Wr, a, yn, En, Ht, qt, $e, _e]);
59508
+ }, [ne, ne?._paletteVersion, St?.enabled, is, mt, Wr, a, yn, En, Ht, qt, $e, _e]);
59509
59509
  const Ho = it.useMemo(() => JSON.stringify(Ee), [Ee]), Ca = it.useMemo(() => JSON.stringify(Ce), [Ce]), ta = it.useMemo(() => {
59510
59510
  if (!ne || !ne.proteinLinks || !Array.isArray(ne.proteinLinks)) return [];
59511
59511
  Ee && ne.applyProteinLinkColors(Ee, mt.geneFill);
@@ -60242,7 +60242,7 @@ const as = !1, xM = it.forwardRef(({
60242
60242
  const Bs = `${Object.keys(ne.genesById).length}:${Pe.gene.height}:${Ht?.id ?? "null"}:${qt}:${Qr.size}:${$t.size}:${yn.size}`, ja = performance.now(), no = (() => {
60243
60243
  if (G && Us.current && Ao.current === Bs)
60244
60244
  return Us.current.forEach((ue) => {
60245
- const Fe = rs.get(ue.uniqueId);
60245
+ const Fe = is.get(ue.uniqueId);
60246
60246
  ue.fillColor = Fe || ue._originalFillColor || mt.geneFill;
60247
60247
  }), Us.current;
60248
60248
  const V = (ue) => {
@@ -60270,7 +60270,7 @@ const as = !1, xM = it.forwardRef(({
60270
60270
  } catch {
60271
60271
  }
60272
60272
  return ie.map(([ue, Fe]) => {
60273
- const gt = rs.get(ue) || Fe.fillColor || mt.geneFill;
60273
+ const gt = is.get(ue) || Fe.fillColor || mt.geneFill;
60274
60274
  return {
60275
60275
  type: "gene",
60276
60276
  id: Fe.id || ue,
@@ -60301,10 +60301,10 @@ const as = !1, xM = it.forwardRef(({
60301
60301
  });
60302
60302
  } catch {
60303
60303
  }
60304
- const is = no.map((V) => {
60304
+ const ss = no.map((V) => {
60305
60305
  const ee = V.geneHeight !== void 0 && V.geneHeight !== null ? V.geneHeight : Pe && Pe.gene ? Pe.gene.height : 0, ie = V.config && V.config.gene && V.config.gene.arrowheadHeight ? V.config.gene.arrowheadHeight : Pe && Pe.gene ? Pe.gene.arrowheadHeight : 0;
60306
60306
  return `${V.uniqueId || ""}:${ee}:${ie}`;
60307
- }).join("|"), ro = 8, Pi = (V, ee = 0, ie = 255) => Math.max(ee, Math.min(ie, V)), ss = (V, ee) => [
60307
+ }).join("|"), ro = 8, Pi = (V, ee = 0, ie = 255) => Math.max(ee, Math.min(ie, V)), Gi = (V, ee) => [
60308
60308
  Pi(Math.round(V[0] * ee)),
60309
60309
  Pi(Math.round(V[1] * ee)),
60310
60310
  Pi(Math.round(V[2] * ee)),
@@ -60335,11 +60335,11 @@ const as = !1, xM = it.forwardRef(({
60335
60335
  nt.push([(hr[0] + er[0]) / 2, (hr[1] + er[1]) / 2]);
60336
60336
  }
60337
60337
  if (nt.length < 2) continue;
60338
- const yt = Fe.metadata && typeof Fe.metadata.similarity == "number" ? Fe.metadata.similarity : 0, Ot = ie.length > 0 ? Math.floor(Math.max(0, Math.min(1, yt / 100)) * (ie.length - 1)) : 0, en = ie.length > 0 ? ie[Ot] : Fe.fillColor || [150, 150, 150, 255], Cn = ss(en.slice(0, 4), 0.9), Bn = ss(en.slice(0, 4), 1.1), xr = Math.max(2, ro);
60338
+ const yt = Fe.metadata && typeof Fe.metadata.similarity == "number" ? Fe.metadata.similarity : 0, Ot = ie.length > 0 ? Math.floor(Math.max(0, Math.min(1, yt / 100)) * (ie.length - 1)) : 0, en = ie.length > 0 ? ie[Ot] : Fe.fillColor || [150, 150, 150, 255], Cn = Gi(en.slice(0, 4), 0.9), Bn = Gi(en.slice(0, 4), 1.1), xr = Math.max(2, ro);
60339
60339
  for (let fr = 0; fr < xr - 1; fr++) {
60340
60340
  const hr = fr / (xr - 1), er = (fr + 1) / (xr - 1), Ir = (Xa) => {
60341
- const Nr = Xa * (nt.length - 1), To = Math.floor(Nr), Gi = nt[To], qr = nt[Math.min(nt.length - 1, To + 1)], cl = Nr - To;
60342
- return [Gi[0] + (qr[0] - Gi[0]) * cl, Gi[1] + (qr[1] - Gi[1]) * cl];
60341
+ const Nr = Xa * (nt.length - 1), To = Math.floor(Nr), Ki = nt[To], qr = nt[Math.min(nt.length - 1, To + 1)], cl = Nr - To;
60342
+ return [Ki[0] + (qr[0] - Ki[0]) * cl, Ki[1] + (qr[1] - Ki[1]) * cl];
60343
60343
  }, Ii = Ir(hr), Ni = Ir(er), os = ra(Cn, Bn, hr), Mr = ra(Cn, Bn, er), As = ra(os, Mr, 0.5);
60344
60344
  ue.push({ path: [Ii, Ni], color: As, width: Math.max(1, ee.strokeWidth || 2) });
60345
60345
  }
@@ -60488,10 +60488,10 @@ const as = !1, xM = it.forwardRef(({
60488
60488
  let ee = mt?.geneFill?.slice(0, 3) || [100, 150, 200], ie = 255;
60489
60489
  const ue = Ee?.colorBy;
60490
60490
  if (ue === "source_gene") {
60491
- const De = rs.get(V.gAId);
60491
+ const De = is.get(V.gAId);
60492
60492
  De && (ee = De.slice(0, 3));
60493
60493
  } else if (ue === "target_gene") {
60494
- const De = rs.get(V.gBId);
60494
+ const De = is.get(V.gBId);
60495
60495
  De && (ee = De.slice(0, 3));
60496
60496
  } else if (ue === "identity_solid")
60497
60497
  Ee?.solidColor && (ee = Ee.solidColor.slice(0, 3));
@@ -60526,7 +60526,7 @@ const as = !1, xM = it.forwardRef(({
60526
60526
  Do,
60527
60527
  Wr,
60528
60528
  Ho,
60529
- rs.size,
60529
+ is.size,
60530
60530
  Tn,
60531
60531
  St?.prevalenceFilter,
60532
60532
  St?.name,
@@ -60548,10 +60548,10 @@ const as = !1, xM = it.forwardRef(({
60548
60548
  if (Ht && Qr.size > 0 && (!Qr.has(V.hoodA) || !Qr.has(V.hoodB)))
60549
60549
  return [];
60550
60550
  if (yn.size > 0 && V.geneA && V.geneB) {
60551
- const Mr = (Gi, qr) => {
60552
- if (!Gi) return qr;
60553
- const cl = typeof Gi.attributes == "string" ? Gi.attributes.match(/ID=([^;]+)/)?.[1] || null : Gi.attributes?.ID || null;
60554
- return Gi.originalGeneId || Gi.gene_id || cl || qr;
60551
+ const Mr = (Ki, qr) => {
60552
+ if (!Ki) return qr;
60553
+ const cl = typeof Ki.attributes == "string" ? Ki.attributes.match(/ID=([^;]+)/)?.[1] || null : Ki.attributes?.ID || null;
60554
+ return Ki.originalGeneId || Ki.gene_id || cl || qr;
60555
60555
  }, As = ee?.genesById?.[V.geneA], Xa = ee?.genesById?.[V.geneB], Nr = Mr(As, V.geneA), To = Mr(Xa, V.geneB);
60556
60556
  if (Nr && yn.has(String(Nr)) || To && yn.has(String(To)))
60557
60557
  return [];
@@ -60742,7 +60742,7 @@ const as = !1, xM = it.forwardRef(({
60742
60742
  // GenomeView data was re-derived (genesData identity changes on recompute).
60743
60743
  getPolygon: [
60744
60744
  no,
60745
- is,
60745
+ ss,
60746
60746
  qt,
60747
60747
  Pe.gene.height,
60748
60748
  Pe.gene.defaultHeight,
@@ -61034,7 +61034,7 @@ const as = !1, xM = it.forwardRef(({
61034
61034
  ta,
61035
61035
  // ===== COLORS =====
61036
61036
  Tn,
61037
- rs,
61037
+ is,
61038
61038
  // Contains custom colors from geneColors prop and metadata color column
61039
61039
  Hs,
61040
61040
  mn,
@@ -62242,7 +62242,7 @@ const as = !1, xM = it.forwardRef(({
62242
62242
  const K = P.tree && typeof P.tree.xScalePercent == "number" ? P.tree.xScalePercent / 100 : 1, ae = nn.treeOffset || 0, he = [X * K + ae, G, 0], me = wr.current && wr.current.zoom !== void 0 ? wr.current.zoom : Wn.zoom || -3;
62243
62243
  ir((Ye) => ({ ...Ye, target: he, zoom: me })), wr.current = { ...wr.current || {}, target: he, zoom: me };
62244
62244
  const ye = String(te.leaf_id || te.metadata?.leaf_id || te.name || re);
62245
- es(null), setTimeout(() => es(ye), 0);
62245
+ ts(null), setTimeout(() => ts(ye), 0);
62246
62246
  const Me = P?.tree?.nodeRadius || { internal: 4, leaf: 2 };
62247
62247
  let Ue = mt.treeEdges || [220, 180, 60, 255];
62248
62248
  if (Dr.current?.nodes) {
@@ -62319,9 +62319,9 @@ const as = !1, xM = it.forwardRef(({
62319
62319
  wr.current = Q;
62320
62320
  return;
62321
62321
  }
62322
- const re = P?.scrollbar?.panPaddingY ?? 50, te = P?.scrollbar?.panPaddingX ?? 500, X = Math.pow(2, Q.zoom || 0), G = Math.max(1, X * 0.5), K = W !== "none" ? In || 200 : 0, ae = re * G, he = (te + K) * G, me = ts - xs || 1e3, ye = Di - bi || 1e4, Me = Zn.height || 600, Ue = Zn.width || 800, Be = Math.log2(Me / (me * 1.5)), Ye = Math.log2(Ue / (ye * 1.5)), He = Math.min(Be, Ye, P?.scrollbar?.minZoom ?? -5), Ze = P?.scrollbar?.maxZoom ?? 2;
62322
+ const re = P?.scrollbar?.panPaddingY ?? 50, te = P?.scrollbar?.panPaddingX ?? 500, X = Math.pow(2, Q.zoom || 0), G = Math.max(1, X * 0.5), K = W !== "none" ? In || 200 : 0, ae = re * G, he = (te + K) * G, me = ns - xs || 1e3, ye = Di - bi || 1e4, Me = Zn.height || 600, Ue = Zn.width || 800, Be = Math.log2(Me / (me * 1.5)), Ye = Math.log2(Ue / (ye * 1.5)), He = Math.min(Be, Ye, P?.scrollbar?.minZoom ?? -5), Ze = P?.scrollbar?.maxZoom ?? 2;
62323
62323
  isFinite(Q.zoom) && (Q.zoom = Math.max(He, Math.min(Ze, Q.zoom)));
62324
- const Ge = xs - ae, at = ts + ae;
62324
+ const Ge = xs - ae, at = ns + ae;
62325
62325
  if (isFinite(Ge) && isFinite(at) && at > Ge) {
62326
62326
  const hn = Q.target[1], On = Math.max(Ge, Math.min(at, hn));
62327
62327
  On !== hn && (Q.target = [Q.target[0], On, Q.target[2] || 0]);
@@ -62357,7 +62357,7 @@ const as = !1, xM = it.forwardRef(({
62357
62357
  if (K) {
62358
62358
  const Be = T.node?.leaf_id || T.node?.metadata?.leaf_id || T.node?.metadata?.leaf_name || T.node?.name || T.node?.id;
62359
62359
  if (Be) {
62360
- es(null), setTimeout(() => es(String(Be)), 0);
62360
+ ts(null), setTimeout(() => ts(String(Be)), 0);
62361
62361
  const Ye = Number.isFinite(Number(T.rawY)) ? Number(T.rawY) : Number.isFinite(Number(T.node?.y)) ? Number(T.node.y) : Number(T.node?.rawY), He = Number.isFinite(Number(T.x)) ? Number(T.x) : Number(T.node?.x), Ze = Pe.tree && typeof Pe.tree.xScalePercent == "number" ? Pe.tree.xScalePercent / 100 : 1;
62362
62362
  Number.isFinite(Ye) && Number.isFinite(He) && _s([{
62363
62363
  id: Be,
@@ -69683,7 +69683,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69683
69683
  let xi = 0, Vr = 0;
69684
69684
  const Nn = typeof PointerEvent < "u" && vn instanceof PointerEvent && vn.pointerType === "mouse" || typeof MouseEvent < "u" && vn instanceof MouseEvent, nn = typeof PointerEvent < "u" && vn instanceof PointerEvent && vn.pointerType === "touch" || typeof TouchEvent < "u" && vn instanceof TouchEvent;
69685
69685
  Nn && (xi = vn.button, Vr = vn.buttons);
69686
- const pn = rle(wn, Qn, Tt), Yn = ile(gn, r, w, u, h, m, g, a, zt, O), _r = vn?.shiftKey === !0, xs = vn?.ctrlKey === !0, ts = vn?.metaKey === !0, bi = [
69686
+ const pn = rle(wn, Qn, Tt), Yn = ile(gn, r, w, u, h, m, g, a, zt, O), _r = vn?.shiftKey === !0, xs = vn?.ctrlKey === !0, ns = vn?.metaKey === !0, bi = [
69687
69687
  wn < 0 ? -1 : n < wn ? 1 : 0,
69688
69688
  gn < pi ? -1 : r < gn ? 1 : 0
69689
69689
  ];
@@ -69704,7 +69704,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69704
69704
  region: [ji, fa],
69705
69705
  shiftKey: _r,
69706
69706
  ctrlKey: xs,
69707
- metaKey: ts,
69707
+ metaKey: ns,
69708
69708
  isEdge: _o,
69709
69709
  isTouch: nn,
69710
69710
  button: xi,
@@ -69725,7 +69725,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69725
69725
  isEdge: to,
69726
69726
  shiftKey: _r,
69727
69727
  ctrlKey: xs,
69728
- metaKey: ts,
69728
+ metaKey: ns,
69729
69729
  isTouch: nn,
69730
69730
  localEventX: Bt - Br.x,
69731
69731
  localEventY: fn - Br.y,
@@ -69740,7 +69740,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69740
69740
  isEdge: to,
69741
69741
  shiftKey: _r,
69742
69742
  ctrlKey: xs,
69743
- metaKey: ts,
69743
+ metaKey: ns,
69744
69744
  isTouch: nn,
69745
69745
  localEventX: Bt - Br.x,
69746
69746
  localEventY: fn - Br.y,
@@ -69754,7 +69754,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69754
69754
  const to = Br !== void 0 && Br.x + Br.width - Bt < In;
69755
69755
  let ji = !1;
69756
69756
  if (d !== !1 && d !== void 0 && k.current !== void 0) {
69757
- const _o = typeof d == "object" ? { ...Gm, ...d } : Gm, jn = _o.size, Fi = jn / 2, ns = iP(k.current.range), Jo = kn(ne, ns[0], ns[1]);
69757
+ const _o = typeof d == "object" ? { ...Gm, ...d } : Gm, jn = _o.size, Fi = jn / 2, rs = iP(k.current.range), Jo = kn(ne, rs[0], rs[1]);
69758
69758
  if (Jo !== void 0) {
69759
69759
  const Pr = Jo.x + Jo.width + _o.offsetX - Fi + 0.5, or = Jo.y + Jo.height + _o.offsetY - Fi + 0.5;
69760
69760
  ji = Math.abs(Pr - Bt) < jn && Math.abs(or - fn) < jn;
@@ -69768,7 +69768,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69768
69768
  shiftKey: _r,
69769
69769
  ctrlKey: xs,
69770
69770
  isFillHandle: ji,
69771
- metaKey: ts,
69771
+ metaKey: ns,
69772
69772
  isTouch: nn,
69773
69773
  localEventX: Bt - Br.x,
69774
69774
  localEventY: fn - Br.y,
@@ -69809,7 +69809,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69809
69809
  Gr.canvas.remove(), mi.canvas.remove();
69810
69810
  };
69811
69811
  }, [Gr, mi]);
69812
- const Qi = A.useMemo(() => new hle(), []), _i = Hn && $e ? 1 : Ht && $e ? 2 : 5, Kr = Lt?.disableMinimumCellWidth === !0 ? 1 : 10, rr = A.useRef(), Wn = A.useRef(null), ir = A.useRef(null), uo = A.useCallback(() => {
69812
+ const Ji = A.useMemo(() => new hle(), []), _i = Hn && $e ? 1 : Ht && $e ? 2 : 5, Kr = Lt?.disableMinimumCellWidth === !0 ? 1 : 10, rr = A.useRef(), Wn = A.useRef(null), ir = A.useRef(null), uo = A.useCallback(() => {
69813
69813
  const ne = _e.current, Bt = on.current;
69814
69814
  if (ne === null || Bt === null || (Wn.current === null && (Wn.current = ne.getContext("2d", { alpha: !1 }), ne.width = 0, ne.height = 0), ir.current === null && (ir.current = Bt.getContext("2d", { alpha: !1 }), Bt.width = 0, Bt.height = 0), Wn.current === null || ir.current === null || Gr === null || mi === null))
69815
69815
  return;
@@ -69865,7 +69865,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69865
69865
  hyperWrapping: Lt?.hyperWrapping ?? !1,
69866
69866
  touchMode: yn,
69867
69867
  enqueue: $i.current,
69868
- renderStateProvider: Qi,
69868
+ renderStateProvider: Ji,
69869
69869
  renderStrategy: Lt?.renderStrategy ?? (Jm.value ? "double-buffer" : "single-buffer"),
69870
69870
  getCellRenderer: ft,
69871
69871
  minimumCellWidth: Kr,
@@ -69914,7 +69914,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69914
69914
  Lt?.hyperWrapping,
69915
69915
  Lt?.renderStrategy,
69916
69916
  yn,
69917
- Qi,
69917
+ Ji,
69918
69918
  ft,
69919
69919
  Kr,
69920
69920
  xt
@@ -69924,14 +69924,14 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
69924
69924
  }, [uo]), A.useLayoutEffect(() => {
69925
69925
  (async () => document?.fonts?.ready !== void 0 && (await document.fonts.ready, rr.current = void 0, Io.current()))();
69926
69926
  }, []);
69927
- const Ji = A.useCallback((ne) => {
69927
+ const es = A.useCallback((ne) => {
69928
69928
  vt.current = ne, Io.current(), vt.current = void 0;
69929
- }, []), es = que(Ji);
69930
- $i.current = es;
69929
+ }, []), ts = que(es);
69930
+ $i.current = ts;
69931
69931
  const tn = A.useCallback((ne) => {
69932
- Ji(new _g(ne.map((Bt) => Bt.cell)));
69933
- }, [Ji]);
69934
- Ke.setCallback(Ji);
69932
+ es(new _g(ne.map((Bt) => Bt.cell)));
69933
+ }, [es]);
69934
+ Ke.setCallback(es);
69935
69935
  const [Zs, Ar] = A.useState(!1), [_s, sr] = Mi ?? [], Qs = _s !== void 0 && sr === -1 && _s >= 0 && _s < zn.length && zn[_s].headerRowMarkerDisabled !== !0, ni = _s !== void 0 && sr === -2;
69936
69936
  let yi = !1, ci = !1, Hr = $t;
69937
69937
  if (Hr === void 0 && _s !== void 0 && sr !== void 0 && sr > -1 && sr < m) {
@@ -70082,7 +70082,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
70082
70082
  } else
70083
70083
  gn = !0;
70084
70084
  const Qn = [Wt.location, [Wt.localEventX, Wt.localEventY]];
70085
- Gt(Qn, In), Zn.current = Qn, gn && Ji(new _g([Wt.location]));
70085
+ Gt(Qn, In), Zn.current = Qn, gn && es(new _g([Wt.location]));
70086
70086
  }
70087
70087
  const wn = Wt.location[0] >= (N ? 0 : 1);
70088
70088
  mt(Wt.kind === gu && Wt.isEdge && wn && Ce === !0), Ar(Wt.kind === "cell" && Wt.isFillHandle), Y?.(ne), R(Wt);
@@ -70096,7 +70096,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
70096
70096
  H,
70097
70097
  y,
70098
70098
  ft,
70099
- Ji
70099
+ es
70100
70100
  ]);
70101
70101
  Go("pointermove", Wi, rt, !0);
70102
70102
  const Lo = A.useCallback((ne) => {
@@ -70185,7 +70185,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
70185
70185
  const Yn = Math.ceil(window.devicePixelRatio ?? 1);
70186
70186
  nn.width = pn.width * Yn, nn.height = pn.height * Yn;
70187
70187
  const _r = nn.getContext("2d");
70188
- _r !== null && (_r.scale(Yn, Yn), _r.textBaseline = "middle", Nn === -1 ? (_r.font = ze.headerFontFull, _r.fillStyle = ze.bgHeader, _r.fillRect(0, 0, nn.width, nn.height), xP(_r, 0, 0, pn.width, pn.height, zn[Vr], !1, ze, !1, void 0, void 0, !1, 0, Yr, wt, !1)) : (_r.font = ze.baseFontFull, _r.fillStyle = ze.bgCell, _r.fillRect(0, 0, nn.width, nn.height), EP(_r, y([Vr, Nn]), 0, Nn, !1, !1, 0, 0, pn.width, pn.height, !1, ze, ze.bgCell, Ke, Yr, 1, void 0, !1, 0, void 0, void 0, void 0, Qi, ft, () => {
70188
+ _r !== null && (_r.scale(Yn, Yn), _r.textBaseline = "middle", Nn === -1 ? (_r.font = ze.headerFontFull, _r.fillStyle = ze.bgHeader, _r.fillRect(0, 0, nn.width, nn.height), xP(_r, 0, 0, pn.width, pn.height, zn[Vr], !1, ze, !1, void 0, void 0, !1, 0, Yr, wt, !1)) : (_r.font = ze.baseFontFull, _r.fillStyle = ze.bgCell, _r.fillRect(0, 0, nn.width, nn.height), EP(_r, y([Vr, Nn]), 0, Nn, !1, !1, 0, 0, pn.width, pn.height, !1, ze, ze.bgCell, Ke, Yr, 1, void 0, !1, 0, void 0, void 0, void 0, Ji, ft, () => {
70189
70189
  }))), nn.style.left = "-100%", nn.style.position = "absolute", nn.style.width = `${pn.width}px`, nn.style.height = `${pn.height}px`, document.body.append(nn), ne.dataTransfer.setDragImage(nn, pn.width / 2, pn.height / 2), window.setTimeout(() => {
70190
70190
  nn.remove();
70191
70191
  }, 0);
@@ -70205,7 +70205,7 @@ const jue = (t, e) => t.kind === dn.Custom ? t.copyData : e?.(t)?.getAccessibili
70205
70205
  wt,
70206
70206
  y,
70207
70207
  Ke,
70208
- Qi,
70208
+ Ji,
70209
70209
  ft
70210
70210
  ]);
70211
70211
  Go("dragstart", Ao, ge?.current ?? null, !1, !1);
@@ -71858,7 +71858,7 @@ function zde(t, e, n, r, i) {
71858
71858
  scrollRef: m
71859
71859
  };
71860
71860
  }
71861
- const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-BXNMfm9z.js"));
71861
+ const Ude = A.lazy(async () => await import("./data-grid-overlay-editor-BGJ8nj3b.js"));
71862
71862
  let $de = 0;
71863
71863
  function Hde(t) {
71864
71864
  return Ple(kB(kB(t).filter((e) => e.span !== void 0).map((e) => Yu((e.span?.[0] ?? 0) + 1, (e.span?.[1] ?? 0) + 1))));
@@ -71888,7 +71888,7 @@ const O0 = {
71888
71888
  rows: ur.empty(),
71889
71889
  current: void 0
71890
71890
  }, Vde = (t, e) => {
71891
- const [n, r] = A.useState(L0), [i, s] = A.useState(), o = A.useRef(null), a = A.useRef(null), [u, d] = A.useState(), h = A.useRef(), g = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: y, markdownDivCreateNode: C, width: b, height: _, columns: w, rows: E, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader: O, drawCell: P, editorBloom: U, onHeaderClicked: M, onColumnProposeMove: j, rangeSelectionColumnSpanning: W = !0, spanRangeBehavior: Y = "default", onGroupHeaderClicked: R, onCellContextMenu: H, className: I, onHeaderContextMenu: N, getCellsForSelection: q, onGroupHeaderContextMenu: Z, onGroupHeaderRenamed: ce, onCellEdited: oe, onCellsEdited: fe, onSearchResultsChanged: be, searchResults: ge, onSearchValueChange: Ae, searchValue: ke, onKeyDown: lt, onKeyUp: Ee, keybindings: Ce, editOnType: Xe = !0, onRowAppended: ot, onColumnAppended: _t, onColumnMoved: ze, validateCell: Mt, highlightRegions: an, rangeSelect: sn = "rect", columnSelect: Ct = "multi", rowSelect: wt = "multi", rangeSelectionBlending: At = "exclusive", columnSelectionBlending: Vt = "exclusive", rowSelectionBlending: Ut = "exclusive", onDelete: Qt, onDragStart: qe, onMouseMove: xe, onPaste: Rt, copyHeaders: Lt = !1, freezeColumns: ft = 0, cellActivationBehavior: xt = "second-click", rowSelectionMode: Tt = "auto", columnSelectionMode: zt = "auto", onHeaderMenuClick: ht, onHeaderIndicatorClick: _e, getGroupDetails: ve, rowGrouping: rt, onSearchClose: Ke, onItemHovered: vt, onSelectionCleared: $e, showSearch: ct, onVisibleRegionChanged: It, gridSelection: Xt, onGridSelectionChange: ln, minColumnWidth: Ln = 50, maxColumnWidth: mn = 500, maxColumnAutoWidth: mt, provideEditor: on, trailingRowOptions: $t, freezeTrailingRows: En = 0, allowedFillDirections: yn = "orthogonal", scrollOffsetX: li, scrollOffsetY: $r, verticalBorder: Yr, onDragOverCell: pi, onDrop: co, onColumnResize: Hn, onColumnResizeEnd: Ht, onColumnResizeStart: zn, customRenderers: qt, fillHandle: kn, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Qi, onDragLeave: _i, onRowMoved: Kr, overscrollX: rr, overscrollY: Wn, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, trapFocus: Ji = !1, smoothScrollX: es, smoothScrollY: tn, scaleToRem: Zs = !1, rowHeight: Ar = 34, headerHeight: _s = 36, groupHeaderHeight: sr = _s, theme: Qs, isOutsideClick: ni, renderers: yi, resizeIndicator: ci, scrollToActiveCell: Hr = !0, drawFocusRing: wi = !0, portalElementRef: Ua } = t, Js = wi === "no-editor" ? i === void 0 : wi, eo = typeof t.rowMarkers == "string" ? void 0 : t.rowMarkers, dr = eo?.kind ?? t.rowMarkers ?? "none", No = eo?.width ?? t.rowMarkerWidth, fo = eo?.startIndex ?? t.rowMarkerStartIndex ?? 1, Oo = eo?.theme ?? t.rowMarkerTheme, Ci = eo?.headerTheme, Hi = eo?.headerAlwaysVisible, ho = wt !== "multi" || eo?.headerDisabled === !0, cs = eo?.checkboxStyle ?? "square", Zo = Math.max(Ln, 20), Vi = Math.max(mn, Zo), $a = Math.max(mt ?? Vi, Zo), Qo = A.useMemo(() => typeof window > "u" ? { fontSize: "16px" } : window.getComputedStyle(document.documentElement), []), { rows: Sn, rowNumberMapper: Ha, rowHeight: Gn, getRowThemeOverride: Wi } = Nde(rt, E, Ar, y), Lo = A.useMemo(() => Number.parseFloat(Qo.fontSize), [Qo]), { rowHeight: ws, headerHeight: Us, groupHeaderHeight: Ao, theme: zo, overscrollX: sl, overscrollY: Va } = Mde({
71891
+ const [n, r] = A.useState(L0), [i, s] = A.useState(), o = A.useRef(null), a = A.useRef(null), [u, d] = A.useState(), h = A.useRef(), g = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: y, markdownDivCreateNode: C, width: b, height: _, columns: w, rows: E, getCellContent: x, onCellClicked: D, onCellActivated: S, onFillPattern: k, onFinishedEditing: $, coercePasteValue: L, drawHeader: O, drawCell: P, editorBloom: U, onHeaderClicked: M, onColumnProposeMove: j, rangeSelectionColumnSpanning: W = !0, spanRangeBehavior: Y = "default", onGroupHeaderClicked: R, onCellContextMenu: H, className: I, onHeaderContextMenu: N, getCellsForSelection: q, onGroupHeaderContextMenu: Z, onGroupHeaderRenamed: ce, onCellEdited: oe, onCellsEdited: fe, onSearchResultsChanged: be, searchResults: ge, onSearchValueChange: Ae, searchValue: ke, onKeyDown: lt, onKeyUp: Ee, keybindings: Ce, editOnType: Xe = !0, onRowAppended: ot, onColumnAppended: _t, onColumnMoved: ze, validateCell: Mt, highlightRegions: an, rangeSelect: sn = "rect", columnSelect: Ct = "multi", rowSelect: wt = "multi", rangeSelectionBlending: At = "exclusive", columnSelectionBlending: Vt = "exclusive", rowSelectionBlending: Ut = "exclusive", onDelete: Qt, onDragStart: qe, onMouseMove: xe, onPaste: Rt, copyHeaders: Lt = !1, freezeColumns: ft = 0, cellActivationBehavior: xt = "second-click", rowSelectionMode: Tt = "auto", columnSelectionMode: zt = "auto", onHeaderMenuClick: ht, onHeaderIndicatorClick: _e, getGroupDetails: ve, rowGrouping: rt, onSearchClose: Ke, onItemHovered: vt, onSelectionCleared: $e, showSearch: ct, onVisibleRegionChanged: It, gridSelection: Xt, onGridSelectionChange: ln, minColumnWidth: Ln = 50, maxColumnWidth: mn = 500, maxColumnAutoWidth: mt, provideEditor: on, trailingRowOptions: $t, freezeTrailingRows: En = 0, allowedFillDirections: yn = "orthogonal", scrollOffsetX: li, scrollOffsetY: $r, verticalBorder: Yr, onDragOverCell: pi, onDrop: co, onColumnResize: Hn, onColumnResizeEnd: Ht, onColumnResizeStart: zn, customRenderers: qt, fillHandle: kn, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Ji, onDragLeave: _i, onRowMoved: Kr, overscrollX: rr, overscrollY: Wn, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, trapFocus: es = !1, smoothScrollX: ts, smoothScrollY: tn, scaleToRem: Zs = !1, rowHeight: Ar = 34, headerHeight: _s = 36, groupHeaderHeight: sr = _s, theme: Qs, isOutsideClick: ni, renderers: yi, resizeIndicator: ci, scrollToActiveCell: Hr = !0, drawFocusRing: wi = !0, portalElementRef: Ua } = t, Js = wi === "no-editor" ? i === void 0 : wi, eo = typeof t.rowMarkers == "string" ? void 0 : t.rowMarkers, dr = eo?.kind ?? t.rowMarkers ?? "none", No = eo?.width ?? t.rowMarkerWidth, fo = eo?.startIndex ?? t.rowMarkerStartIndex ?? 1, Oo = eo?.theme ?? t.rowMarkerTheme, Ci = eo?.headerTheme, Hi = eo?.headerAlwaysVisible, ho = wt !== "multi" || eo?.headerDisabled === !0, cs = eo?.checkboxStyle ?? "square", Zo = Math.max(Ln, 20), Vi = Math.max(mn, Zo), $a = Math.max(mt ?? Vi, Zo), Qo = A.useMemo(() => typeof window > "u" ? { fontSize: "16px" } : window.getComputedStyle(document.documentElement), []), { rows: Sn, rowNumberMapper: Ha, rowHeight: Gn, getRowThemeOverride: Wi } = Nde(rt, E, Ar, y), Lo = A.useMemo(() => Number.parseFloat(Qo.fontSize), [Qo]), { rowHeight: ws, headerHeight: Us, groupHeaderHeight: Ao, theme: zo, overscrollX: sl, overscrollY: Va } = Mde({
71892
71892
  groupHeaderHeight: sr,
71893
71893
  headerHeight: _s,
71894
71894
  overscrollX: rr,
@@ -71920,14 +71920,14 @@ const O0 = {
71920
71920
  return typeof Te == "boolean" ? Te : N0(Te, tt);
71921
71921
  }
71922
71922
  return !0;
71923
- }, [Qt, tt]), [Nn, nn, pn] = mde(ut, Gt, At, Vt, Ut, sn, W), Yn = A.useMemo(() => Ic(UE(), zo), [zo]), [_r, xs] = A.useState([0, 0, 0]), ts = A.useMemo(() => {
71923
+ }, [Qt, tt]), [Nn, nn, pn] = mde(ut, Gt, At, Vt, Ut, sn, W), Yn = A.useMemo(() => Ic(UE(), zo), [zo]), [_r, xs] = A.useState([0, 0, 0]), ns = A.useMemo(() => {
71924
71924
  if (yi === void 0)
71925
71925
  return {};
71926
71926
  const J = {};
71927
71927
  for (const Te of yi)
71928
71928
  J[Te.kind] = Te;
71929
71929
  return J;
71930
- }, [yi]), bi = A.useCallback((J) => J.kind !== dn.Custom ? ts[J.kind] : qt?.find((Te) => Te.isMatch(J)), [qt, ts]);
71930
+ }, [yi]), bi = A.useCallback((J) => J.kind !== dn.Custom ? ns[J.kind] : qt?.find((Te) => Te.isMatch(J)), [qt, ns]);
71931
71931
  let { sizedColumns: Di, nonGrowWidth: Br } = yle(w, Sn, fn, _r[0] - (tt === 0 ? 0 : qi) - _r[2], Zo, $a, Yn, bi, ne.current);
71932
71932
  dr !== "none" && (Br += qi);
71933
71933
  const to = A.useMemo(() => Di.some((J) => J.group !== void 0), [Di]), ji = to ? Us + Ao : Us, fa = ut.rows.length, _o = dr === "none" ? void 0 : fa === 0 ? !1 : fa === Sn ? !0 : void 0, jn = A.useMemo(() => dr === "none" ? Di : [
@@ -71960,7 +71960,7 @@ const O0 = {
71960
71960
  width: 1,
71961
71961
  x: 0,
71962
71962
  y: 0
71963
- }), ns = A.useRef(!1), { setVisibleRegion: Jo, visibleRegion: Pr, scrollRef: or } = zde(li, $r, ws, Fi, () => ns.current = !0);
71963
+ }), rs = A.useRef(!1), { setVisibleRegion: Jo, visibleRegion: Pr, scrollRef: or } = zde(li, $r, ws, Fi, () => rs.current = !0);
71964
71964
  Fi.current = Pr;
71965
71965
  const ds = Pr.x + tt, Wa = Pr.y, fs = A.useRef(null), St = A.useCallback((J) => {
71966
71966
  J === !0 ? fs.current?.focus() : window.requestAnimationFrame(() => {
@@ -72314,7 +72314,7 @@ const O0 = {
72314
72314
  if (Se >= 0)
72315
72315
  return Se + (us ? 1 : 0);
72316
72316
  }
72317
- }, [Di, w, us, $t?.targetColumn]), rs = A.useRef(), Ho = A.useRef(), Ca = A.useCallback((J, Te) => {
72317
+ }, [Di, w, us, $t?.targetColumn]), is = A.useRef(), Ho = A.useRef(), Ca = A.useCallback((J, Te) => {
72318
72318
  const [Se, Ie] = Te;
72319
72319
  return Ic(Yn, jn[Se]?.themeOverride, Wi?.(Ie), J.themeOverride);
72320
72320
  }, [Wi, jn, Yn]), { mapper: ta } = Ode(rt, E), po = rt?.navigationBehavior, Pe = A.useCallback((J) => {
@@ -72343,11 +72343,11 @@ const O0 = {
72343
72343
  return;
72344
72344
  }
72345
72345
  s(void 0), St();
72346
- const De = ee.hasIndex(je), gt = rs.current;
72346
+ const De = ee.hasIndex(je), gt = is.current;
72347
72347
  if (wt === "multi" && (J.shiftKey || J.isLongTouch === !0) && gt !== void 0 && ee.hasIndex(gt)) {
72348
72348
  const nt = [Math.min(gt, je), Math.max(gt, je) + 1];
72349
72349
  Se || Tt === "multi" ? nn(void 0, nt, !0) : nn(ur.fromSingleSelection(nt), void 0, Se);
72350
- } else wt === "multi" && (Se || J.isTouch || Tt === "multi") ? De ? nn(ee.remove(je), void 0, !0) : (nn(void 0, je, !0), rs.current = je) : De && ee.length === 1 ? nn(ur.empty(), void 0, Te) : (nn(ur.fromSingleSelection(je), void 0, Te), rs.current = je);
72350
+ } else wt === "multi" && (Se || J.isTouch || Tt === "multi") ? De ? nn(ee.remove(je), void 0, !0) : (nn(void 0, je, !0), is.current = je) : De && ee.length === 1 ? nn(ur.empty(), void 0, Te) : (nn(ur.fromSingleSelection(je), void 0, Te), is.current = je);
72351
72351
  } else if (Ie >= tt && qn && je === Sn) {
72352
72352
  const Fe = Wr(Ie);
72353
72353
  Hs(Fe ?? Ie);
@@ -72381,25 +72381,25 @@ const O0 = {
72381
72381
  width: Ot - yt + 1,
72382
72382
  height: Cn - en + 1
72383
72383
  }
72384
- }, !0, Te, "click"), rs.current = void 0, St();
72384
+ }, !0, Te, "click"), is.current = void 0, St();
72385
72385
  } else
72386
72386
  Nn({
72387
72387
  cell: [Ie, je],
72388
72388
  range: { x: Ie, y: je, width: 1, height: 1 }
72389
- }, !0, Te, "click"), rs.current = void 0, s(void 0), St();
72389
+ }, !0, Te, "click"), is.current = void 0, s(void 0), St();
72390
72390
  }
72391
72391
  } else if (J.kind === "header")
72392
72392
  if (Qr.current = [Ie, je], s(void 0), us && Ie === 0)
72393
- rs.current = void 0, Ho.current = void 0, !ho && wt === "multi" && (ee.length !== Sn ? nn(ur.fromSingleSelection([0, Sn]), void 0, Te) : nn(ur.empty(), void 0, Te), St());
72393
+ is.current = void 0, Ho.current = void 0, !ho && wt === "multi" && (ee.length !== Sn ? nn(ur.fromSingleSelection([0, Sn]), void 0, Te) : nn(ur.empty(), void 0, Te), St());
72394
72394
  else {
72395
72395
  const Fe = Ho.current;
72396
72396
  if (Ct === "multi" && (J.shiftKey || J.isLongTouch === !0) && Fe !== void 0 && V.hasIndex(Fe)) {
72397
72397
  const De = [Math.min(Fe, Ie), Math.max(Fe, Ie) + 1];
72398
72398
  Te || J.isTouch || zt === "multi" ? pn(void 0, De, Te) : pn(ur.fromSingleSelection(De), void 0, Te);
72399
72399
  } else Ct === "multi" && (Te || J.isTouch || zt === "multi") ? (V.hasIndex(Ie) ? pn(V.remove(Ie), void 0, Te) : pn(void 0, Ie, Te), Ho.current = Ie) : Ct !== "none" && (V.hasIndex(Ie) ? pn(V.remove(Ie), void 0, Te) : pn(ur.fromSingleSelection(Ie), void 0, Te), Ho.current = Ie);
72400
- rs.current = void 0, St();
72400
+ is.current = void 0, St();
72401
72401
  }
72402
- else J.kind === El ? Qr.current = [Ie, je] : J.kind === t1 && !J.isMaybeScrollbar && (Gt(L0, !1), s(void 0), St(), $e?.(), rs.current = void 0, Ho.current = void 0);
72402
+ else J.kind === El ? Qr.current = [Ie, je] : J.kind === t1 && !J.isMaybeScrollbar && (Gt(L0, !1), s(void 0), St(), $e?.(), is.current = void 0, Ho.current = void 0);
72403
72403
  }, [
72404
72404
  wt,
72405
72405
  Ct,
@@ -72703,7 +72703,7 @@ const O0 = {
72703
72703
  }, [ht, tt]), X = A.useCallback((J, Te) => {
72704
72704
  _e?.(J - tt, Te);
72705
72705
  }, [_e, tt]), G = ut?.current?.cell, K = A.useCallback((J, Te, Se, Ie, je, V) => {
72706
- ns.current = !1;
72706
+ rs.current = !1;
72707
72707
  let ee = G;
72708
72708
  ee !== void 0 && (ee = [ee[0] - tt, ee[1]]);
72709
72709
  const ie = ft === 0 ? void 0 : {
@@ -73098,7 +73098,7 @@ const O0 = {
73098
73098
  }
73099
73099
  }
73100
73100
  const yt = Nt(ie, ue, !1, De), Ot = Se.didMatch;
73101
- return Ot && (yt || !gt || Ji) && Te(), Ot;
73101
+ return Ot && (yt || !gt || es) && Te(), Ot;
73102
73102
  }, [
73103
73103
  po,
73104
73104
  _n,
@@ -73115,7 +73115,7 @@ const O0 = {
73115
73115
  $e,
73116
73116
  w.length,
73117
73117
  Vr,
73118
- Ji,
73118
+ es,
73119
73119
  On,
73120
73120
  pn,
73121
73121
  nn,
@@ -73387,7 +73387,7 @@ const O0 = {
73387
73387
  h.current !== void 0 && h.current[0] === Se && h.current[1] === Ie || (h.current = [Se, Ie], Nt(Se, Ie, !1, !1));
73388
73388
  }, [be, tt, Nt]), [Jr, Vs] = Xt?.current?.cell ?? [], Bs = A.useRef(kr);
73389
73389
  Bs.current = kr, A.useLayoutEffect(() => {
73390
- at.current && !ns.current && Jr !== void 0 && Vs !== void 0 && (Jr !== Wt.current?.current?.cell[0] || Vs !== Wt.current?.current?.cell[1]) && Bs.current(Jr, Vs), ns.current = !1;
73390
+ at.current && !rs.current && Jr !== void 0 && Vs !== void 0 && (Jr !== Wt.current?.current?.cell[0] || Vs !== Wt.current?.current?.cell[1]) && Bs.current(Jr, Vs), rs.current = !1;
73391
73391
  }, [Jr, Vs]);
73392
73392
  const ja = ut.current !== void 0 && (ut.current.cell[0] >= jn.length || ut.current.cell[1] >= Jn);
73393
73393
  A.useLayoutEffect(() => {
@@ -73400,7 +73400,7 @@ const O0 = {
73400
73400
  return A.createElement(gde, { bounds: J, group: Te, canvasBounds: Se, onClose: () => wo(void 0), onFinish: (Ie) => {
73401
73401
  wo(void 0), ce?.(Te, Ie);
73402
73402
  } });
73403
- }, [ce, Ml]), is = Math.min(jn.length, ft + (us ? 1 : 0));
73403
+ }, [ce, Ml]), ss = Math.min(jn.length, ft + (us ? 1 : 0));
73404
73404
  A.useImperativeHandle(e, () => ({
73405
73405
  appendRow: (J, Te) => Hs(J + tt, Te),
73406
73406
  appendColumn: (J, Te) => ya(J, Te),
@@ -73513,7 +73513,7 @@ const O0 = {
73513
73513
  tt,
73514
73514
  kr
73515
73515
  ]);
73516
- const [ro, Pi] = G ?? [], ss = A.useCallback((J) => {
73516
+ const [ro, Pi] = G ?? [], Gi = A.useCallback((J) => {
73517
73517
  const [Te, Se] = J;
73518
73518
  if (Se === -1) {
73519
73519
  Ct !== "none" && (pn(ur.fromSingleSelection(Te), void 0, !1), St());
@@ -73559,7 +73559,7 @@ const O0 = {
73559
73559
  A.createElement(
73560
73560
  Sde,
73561
73561
  { style: Uc, className: I, inWidth: b ?? So, inHeight: _ ?? Vo },
73562
- A.createElement(ude, { fillHandle: kn, drawFocusRing: Js, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, getRowThemeOverride: Wi, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Qi, onDragLeave: _i, onRowMoved: Kr, overscrollX: sl, overscrollY: Va, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, smoothScrollX: es, smoothScrollY: tn, className: I, enableGroups: to, onCanvasFocused: Do, onCanvasBlur: Bo, canvasRef: a, onContextMenu: jt, theme: Yn, cellXOffset: ds, cellYOffset: Wa, accessibilityHeight: Pr.height, onDragEnd: Me, columns: jn, nonGrowWidth: Br, drawHeader: Qn, onColumnProposeMove: ae, drawCell: xi, disabledRows: no, freezeColumns: is, lockColumns: tt, firstColAccessible: tt === 0, getCellContent: gs, minColumnWidth: Zo, maxColumnWidth: Vi, searchInputRef: o, showSearch: vo, onSearchClose: Eo, highlightRegions: cc, getCellsForSelection: Bt, getGroupDetails: uc, headerHeight: Us, isFocused: ra, groupHeaderHeight: to ? Ao : 0, freezeTrailingRows: En + (qn && $t?.sticky === !0 ? 1 : 0), hasAppendRow: qn, onColumnResize: wn, onColumnResizeEnd: gn, onColumnResizeStart: In, onCellFocused: ss, onColumnMoved: he, onDragStart: ye, onHeaderMenuClick: te, onHeaderIndicatorClick: X, onItemHovered: He, isFilling: u?.fillHandle === !0, onMouseMove: re, onKeyDown: Yt, onKeyUp: Ee, onMouseDown: fc, onMouseUp: Q, onDragOverCell: pi, onDrop: co, onSearchResultsChanged: Yi, onVisibleRegionChanged: K, clientSize: _r, rowHeight: ws, searchResults: ge, searchValue: ke, onSearchValueChange: Ae, rows: Jn, scrollRef: or, selection: ut, translateX: Pr.tx, translateY: Pr.ty, verticalBorder: na, gridRef: fs, getCellRenderer: bi, resizeIndicator: ci }),
73562
+ A.createElement(ude, { fillHandle: kn, drawFocusRing: Js, experimental: Vn, fixedShadowX: Mi, fixedShadowY: $i, getRowThemeOverride: Wi, headerIcons: Zn, imageWindowLoader: Gr, initialSize: mi, isDraggable: Ji, onDragLeave: _i, onRowMoved: Kr, overscrollX: sl, overscrollY: Va, preventDiagonalScrolling: ir, rightElement: uo, rightElementProps: Io, smoothScrollX: ts, smoothScrollY: tn, className: I, enableGroups: to, onCanvasFocused: Do, onCanvasBlur: Bo, canvasRef: a, onContextMenu: jt, theme: Yn, cellXOffset: ds, cellYOffset: Wa, accessibilityHeight: Pr.height, onDragEnd: Me, columns: jn, nonGrowWidth: Br, drawHeader: Qn, onColumnProposeMove: ae, drawCell: xi, disabledRows: no, freezeColumns: ss, lockColumns: tt, firstColAccessible: tt === 0, getCellContent: gs, minColumnWidth: Zo, maxColumnWidth: Vi, searchInputRef: o, showSearch: vo, onSearchClose: Eo, highlightRegions: cc, getCellsForSelection: Bt, getGroupDetails: uc, headerHeight: Us, isFocused: ra, groupHeaderHeight: to ? Ao : 0, freezeTrailingRows: En + (qn && $t?.sticky === !0 ? 1 : 0), hasAppendRow: qn, onColumnResize: wn, onColumnResizeEnd: gn, onColumnResizeStart: In, onCellFocused: Gi, onColumnMoved: he, onDragStart: ye, onHeaderMenuClick: te, onHeaderIndicatorClick: X, onItemHovered: He, isFilling: u?.fillHandle === !0, onMouseMove: re, onKeyDown: Yt, onKeyUp: Ee, onMouseDown: fc, onMouseUp: Q, onDragOverCell: pi, onDrop: co, onSearchResultsChanged: Yi, onVisibleRegionChanged: K, clientSize: _r, rowHeight: ws, searchResults: ge, searchValue: ke, onSearchValueChange: Ae, rows: Jn, scrollRef: or, selection: ut, translateX: Pr.tx, translateY: Pr.ty, verticalBorder: na, gridRef: fs, getCellRenderer: bi, resizeIndicator: ci }),
73563
73563
  Ws,
73564
73564
  i !== void 0 && A.createElement(
73565
73565
  A.Suspense,
@@ -73998,7 +73998,7 @@ function pfe(t, e, n, r, i) {
73998
73998
  height: d - 1
73999
73999
  };
74000
74000
  }
74001
- const mfe = A.lazy(async () => await import("./number-overlay-editor-6q3QaWsc.js")), yfe = {
74001
+ const mfe = A.lazy(async () => await import("./number-overlay-editor-8SOLFxTU.js")), yfe = {
74002
74002
  getAccessibilityString: (t) => t.data?.toString() ?? "",
74003
74003
  kind: dn.Number,
74004
74004
  needsHover: (t) => t.hoverEffect === !0,