@weng-lab/genomebrowser 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gbc.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as B, jsx as b, Fragment as an } from "react/jsx-runtime";
2
2
  import * as gi from "react";
3
- import Oe, { createContext as Mn, useRef as We, useContext as Me, useState as ue, useEffect as le, useCallback as Ye, useMemo as Le, useReducer as Ou, useLayoutEffect as yh } from "react";
3
+ import Oe, { createContext as Mn, useRef as Qe, useContext as Me, useState as ue, useEffect as le, useCallback as Ye, useMemo as Le, useReducer as Ou, useLayoutEffect as yh } from "react";
4
4
  import Su, { createPortal as wa } from "react-dom";
5
5
  function bh(e, t) {
6
6
  for (var n = 0; n < t.length; n++) {
@@ -345,10 +345,10 @@ var ho, zs;
345
345
  function Du() {
346
346
  return zs || (zs = 1, ho = Function.call.bind(Object.prototype.hasOwnProperty)), ho;
347
347
  }
348
- var po, Ws;
348
+ var po, Qs;
349
349
  function Mh() {
350
- if (Ws) return po;
351
- Ws = 1;
350
+ if (Qs) return po;
351
+ Qs = 1;
352
352
  var e = function() {
353
353
  };
354
354
  if (process.env.NODE_ENV !== "production") {
@@ -394,10 +394,10 @@ function Mh() {
394
394
  process.env.NODE_ENV !== "production" && (n = {});
395
395
  }, po = i, po;
396
396
  }
397
- var mo, Qs;
397
+ var mo, Ws;
398
398
  function Ih() {
399
- if (Qs) return mo;
400
- Qs = 1;
399
+ if (Ws) return mo;
400
+ Ws = 1;
401
401
  var e = ku(), t = Lh(), n = Ea(), r = Du(), i = Mh(), o = function() {
402
402
  };
403
403
  process.env.NODE_ENV !== "production" && (o = function(s) {
@@ -857,14 +857,14 @@ Je.getTranslation = xa;
857
857
  Je.innerHeight = Xh;
858
858
  Je.innerWidth = Jh;
859
859
  Je.matchesSelector = Nu;
860
- Je.matchesSelectorAndParentsTo = Qh;
860
+ Je.matchesSelectorAndParentsTo = Wh;
861
861
  Je.offsetXYFromParent = Zh;
862
862
  Je.outerHeight = Yh;
863
863
  Je.outerWidth = Kh;
864
864
  Je.removeClassName = Fu;
865
865
  Je.removeEvent = Gh;
866
866
  Je.removeUserSelectStyles = od;
867
- var It = Jt, Ys = Wh(In);
867
+ var It = Jt, Ys = Qh(In);
868
868
  function Pu(e) {
869
869
  if (typeof WeakMap != "function") return null;
870
870
  var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
@@ -872,7 +872,7 @@ function Pu(e) {
872
872
  return r ? n : t;
873
873
  })(e);
874
874
  }
875
- function Wh(e, t) {
875
+ function Qh(e, t) {
876
876
  if (e && e.__esModule)
877
877
  return e;
878
878
  if (e === null || typeof e != "object" && typeof e != "function")
@@ -894,7 +894,7 @@ function Nu(e, t) {
894
894
  return (0, It.isFunction)(e[n]);
895
895
  })), (0, It.isFunction)(e[ui]) ? e[ui](t) : !1;
896
896
  }
897
- function Qh(e, t, n) {
897
+ function Wh(e, t, n) {
898
898
  let r = e;
899
899
  do {
900
900
  if (Nu(r, t)) return !0;
@@ -1012,7 +1012,7 @@ Zt.createDraggableData = hd;
1012
1012
  Zt.getBoundPosition = ad;
1013
1013
  Zt.getControlPosition = ld;
1014
1014
  Zt.snapToGrid = sd;
1015
- var Mt = Jt, Wn = Je;
1015
+ var Mt = Jt, Qn = Je;
1016
1016
  function ad(e, t, n) {
1017
1017
  if (!e.props.bounds) return [t, n];
1018
1018
  let {
@@ -1031,8 +1031,8 @@ function ad(e, t, n) {
1031
1031
  r = {
1032
1032
  left: -i.offsetLeft + (0, Mt.int)(l.paddingLeft) + (0, Mt.int)(u.marginLeft),
1033
1033
  top: -i.offsetTop + (0, Mt.int)(l.paddingTop) + (0, Mt.int)(u.marginTop),
1034
- right: (0, Wn.innerWidth)(c) - (0, Wn.outerWidth)(i) - i.offsetLeft + (0, Mt.int)(l.paddingRight) - (0, Mt.int)(u.marginRight),
1035
- bottom: (0, Wn.innerHeight)(c) - (0, Wn.outerHeight)(i) - i.offsetTop + (0, Mt.int)(l.paddingBottom) - (0, Mt.int)(u.marginBottom)
1034
+ right: (0, Qn.innerWidth)(c) - (0, Qn.outerWidth)(i) - i.offsetLeft + (0, Mt.int)(l.paddingRight) - (0, Mt.int)(u.marginRight),
1035
+ bottom: (0, Qn.innerHeight)(c) - (0, Qn.outerHeight)(i) - i.offsetTop + (0, Mt.int)(l.paddingBottom) - (0, Mt.int)(u.marginBottom)
1036
1036
  };
1037
1037
  }
1038
1038
  return (0, Mt.isNum)(r.right) && (t = Math.min(t, r.right)), (0, Mt.isNum)(r.bottom) && (n = Math.min(n, r.bottom)), (0, Mt.isNum)(r.left) && (t = Math.max(t, r.left)), (0, Mt.isNum)(r.top) && (n = Math.max(n, r.top)), [t, n];
@@ -1048,10 +1048,10 @@ function ud(e) {
1048
1048
  return e.props.axis === "both" || e.props.axis === "y";
1049
1049
  }
1050
1050
  function ld(e, t, n) {
1051
- const r = typeof t == "number" ? (0, Wn.getTouch)(e, t) : null;
1051
+ const r = typeof t == "number" ? (0, Qn.getTouch)(e, t) : null;
1052
1052
  if (typeof t == "number" && !r) return null;
1053
1053
  const i = Oa(n), o = n.props.offsetParent || i.offsetParent || i.ownerDocument.body;
1054
- return (0, Wn.offsetXYFromParent)(r || e, o, n.props.scale);
1054
+ return (0, Qn.offsetXYFromParent)(r || e, o, n.props.scale);
1055
1055
  }
1056
1056
  function fd(e, t, n) {
1057
1057
  const r = !(0, Mt.isNum)(e.lastX), i = Oa(e);
@@ -1737,7 +1737,7 @@ Ai.exports.default = Vu;
1737
1737
  Ai.exports.DraggableCore = bd;
1738
1738
  var wd = Ai.exports;
1739
1739
  const Ci = /* @__PURE__ */ Cu(wd);
1740
- var Qe = /* @__PURE__ */ ((e) => (e.FULL = "full", e.DENSE = "dense", e.SQUISH = "squish", e.PACK = "pack", e.HIDE = "hide", e.DOWNLOAD = "download", e))(Qe || {}), J = /* @__PURE__ */ ((e) => (e.UNDEFINED = "undefined", e.RULER = "ruler", e.BIGWIG = "bigwig", e.BIGBED = "bigbed", e.IMPORTANCE = "importance", e.TRANSCRIPT = "transcript", e.BAM = "bam", e.MOTIF = "motif", e.LDTRACK = "ldtrack", e))(J || {});
1740
+ var We = /* @__PURE__ */ ((e) => (e.FULL = "full", e.DENSE = "dense", e.SQUISH = "squish", e.PACK = "pack", e.HIDE = "hide", e.DOWNLOAD = "download", e))(We || {}), J = /* @__PURE__ */ ((e) => (e.UNDEFINED = "undefined", e.RULER = "ruler", e.BIGWIG = "bigwig", e.BIGBED = "bigbed", e.IMPORTANCE = "importance", e.TRANSCRIPT = "transcript", e.BAM = "bam", e.MOTIF = "motif", e.LDTRACK = "ldtrack", e))(J || {});
1741
1741
  function Vy(e) {
1742
1742
  return null;
1743
1743
  }
@@ -1847,7 +1847,7 @@ function Ed(e, t) {
1847
1847
  const qu = Mn(!1);
1848
1848
  function xd({ canDrag: e, id: t, height: n, children: r }) {
1849
1849
  var Fe;
1850
- const o = We(null), a = Me(Ht), s = Me(Rn), [c, u] = ue(0), [l, d] = ue({ x: 0, y: 0 }), [f, m] = ue(!1), [w, E] = ue({ x: 0, y: 0 }), [S, O] = ue([]), [C, v] = ue([]), [T, x] = ue(-1), [I, P] = ue(null), [F, q] = ue(1);
1850
+ const o = Qe(null), a = Me(Ht), s = Me(Rn), [c, u] = ue(0), [l, d] = ue({ x: 0, y: 0 }), [f, m] = ue(!1), [w, E] = ue({ x: 0, y: 0 }), [S, O] = ue([]), [C, v] = ue([]), [T, x] = ue(-1), [I, P] = ue(null), [F, q] = ue(1);
1851
1851
  le(() => {
1852
1852
  const G = document.getElementById("browserSVG");
1853
1853
  if (P(G), G) {
@@ -1855,7 +1855,7 @@ function xd({ canDrag: e, id: t, height: n, children: r }) {
1855
1855
  q(Z.width / $.viewBox.baseVal.width);
1856
1856
  }
1857
1857
  }, []);
1858
- const j = We(((Fe = s.tracks) == null ? void 0 : Fe.find((G) => G.id === t)) || null);
1858
+ const j = Qe(((Fe = s.tracks) == null ? void 0 : Fe.find((G) => G.id === t)) || null);
1859
1859
  le(() => {
1860
1860
  if (!s.tracks || f) return;
1861
1861
  const G = s.tracks.map((R) => R.actualHeight || R.height), $ = s.tracks.findIndex((R) => R.id === t);
@@ -1886,7 +1886,7 @@ function xd({ canDrag: e, id: t, height: n, children: r }) {
1886
1886
  u($.y), d({ x: 0, y: $.y });
1887
1887
  const Z = we(), R = s.tracks.indexOf(j.current);
1888
1888
  Z == R || s.tracks[Z];
1889
- }, qe = We(null);
1889
+ }, qe = Qe(null);
1890
1890
  return /* @__PURE__ */ b(qu.Provider, { value: f, children: /* @__PURE__ */ b(Ci, { scale: F, nodeRef: o, position: l, axis: "y", handle: ".swap-handle", onStart: e && I ? Ie : () => !1, onStop: be, onDrag: Te, children: /* @__PURE__ */ B("g", { ref: o, "data-track-id": t, children: [
1891
1891
  !f && r,
1892
1892
  f && (I ? wa(
@@ -2247,7 +2247,7 @@ function Pd(e) {
2247
2247
  case J.TRANSCRIPT:
2248
2248
  return ["pack", "squish", "hide", "download"];
2249
2249
  case J.LDTRACK:
2250
- return ["dense", "hide", "download"];
2250
+ return ["full", "hide", "download"];
2251
2251
  case J.MOTIF:
2252
2252
  return ["dense", "squish", "hide", "download"];
2253
2253
  default:
@@ -2290,7 +2290,7 @@ function Gt(e, t, n) {
2290
2290
  i[r + f] = o[f];
2291
2291
  return t || Fd(i);
2292
2292
  }
2293
- function Qn(e, t) {
2293
+ function Wn(e, t) {
2294
2294
  return ` M ${e} ${t}`;
2295
2295
  }
2296
2296
  function ke(e, t) {
@@ -2312,7 +2312,7 @@ function zu(e, t, n) {
2312
2312
  end: i.end > r.end ? i.end : r.end
2313
2313
  }), { start: 1 / 0, end: -1 / 0 }), n);
2314
2314
  }
2315
- function Wr(e, t, n, r = 10) {
2315
+ function Qr(e, t, n, r = 10) {
2316
2316
  return n = n || 0, e.reduce((i, o) => {
2317
2317
  let a = !1;
2318
2318
  for (let s = 0; s < i.length; ++s)
@@ -2336,7 +2336,7 @@ const en = ({ width: e, height: t, id: n }) => /* @__PURE__ */ b("clipPath", { i
2336
2336
  setTooltip: () => {
2337
2337
  }
2338
2338
  });
2339
- var Wu = /* @__PURE__ */ ((e) => (e.ValuedPoint = "valuedPoint", e.BigZoomData = "bigZoomData", e.BigWigData = "bigWigData", e))(Wu || {});
2339
+ var Qu = /* @__PURE__ */ ((e) => (e.ValuedPoint = "valuedPoint", e.BigZoomData = "bigZoomData", e.BigWigData = "bigWigData", e))(Qu || {});
2340
2340
  function Jn(e) {
2341
2341
  return e[0].x !== void 0 ? "valuedPoint" : e[0].minVal !== void 0 ? "bigZoomData" : "bigWigData";
2342
2342
  }
@@ -2397,7 +2397,7 @@ const $d = (e) => {
2397
2397
  { renderPoints: r, range: { max: -1 / 0, min: 1 / 0 } }
2398
2398
  );
2399
2399
  };
2400
- function Qu(e, t) {
2400
+ function Wu(e, t) {
2401
2401
  if (!e) return { renderPoints: [], range: { max: 1, min: 0 } };
2402
2402
  const n = e.reduce((s, c) => ({
2403
2403
  start: c.start < s.start ? c.start : s.start,
@@ -2419,7 +2419,7 @@ function Qu(e, t) {
2419
2419
  }), a;
2420
2420
  }
2421
2421
  function Ft({ canDrag: e, children: t }) {
2422
- const n = We(null), r = Me(Ht), [i, o] = ue(!1), { delta: a, setDelta: s } = Me(Ta), [c, u] = ue({ x: 0, y: 0 }), [l, d] = ue(null), [f, m] = ue(1);
2422
+ const n = Qe(null), r = Me(Ht), [i, o] = ue(!1), { delta: a, setDelta: s } = Me(Ta), [c, u] = ue({ x: 0, y: 0 }), [l, d] = ue(null), [f, m] = ue(1);
2423
2423
  le(() => {
2424
2424
  const S = document.getElementById("browserSVG");
2425
2425
  if (d(S), S) {
@@ -2505,7 +2505,7 @@ const qd = (e) => {
2505
2505
  return;
2506
2506
  }
2507
2507
  }, [t.delta]);
2508
- const w = We(Gt()), E = Le(() => r && r.length && Jn(r) === Wu.ValuedPoint ? { renderPoints: r, range: e.range || vi(r) } : Qu(r, e.width), [r, e.width, e.domain]), S = Le(() => {
2508
+ const w = Qe(Gt()), E = Le(() => r && r.length && Jn(r) === Qu.ValuedPoint ? { renderPoints: r, range: e.range || vi(r) } : Wu(r, e.width), [r, e.width, e.domain]), S = Le(() => {
2509
2509
  const T = Bu(E.range, e.height), x = E.renderPoints.filter((P) => P.min < 1 / 0 && P.max > -1 / 0), I = (P) => Math.max(0, Math.min(e.height, T(P)));
2510
2510
  return {
2511
2511
  maxPath: x.reduce((P, F, q, j) => P + (F.x ? $n(F.x, I(j[q - 1] ? j[q - 1].max : 0)) : "") + $n(F.x, I(F.max)), "M 0 " + I(0) + " ") + $n(e.width, I(0)),
@@ -2535,7 +2535,7 @@ const qd = (e) => {
2535
2535
  } })
2536
2536
  ] }) });
2537
2537
  }, Ud = (e) => {
2538
- const t = We(Gt()), n = Le(() => e.data && e.data.length && e.data[0].x !== void 0 ? $d(e.data) : Qu(e.data, 100), [e.data, e.width, e.domain]);
2538
+ const t = Qe(Gt()), n = Le(() => e.data && e.data.length && e.data[0].x !== void 0 ? $d(e.data) : Wu(e.data, 100), [e.data, e.width, e.domain]);
2539
2539
  n.range || (n.range = vi(n.renderPoints));
2540
2540
  const r = Le(() => {
2541
2541
  const i = Bu(n.range, 1), o = n.renderPoints.filter((s) => s.min < 1 / 0 && s.max > -1 / 0), a = e.color || "#000000";
@@ -2590,7 +2590,7 @@ const qd = (e) => {
2590
2590
  trackType: J.BIGWIG,
2591
2591
  titleSize: 12,
2592
2592
  trackMargin: 12,
2593
- displayMode: Qe.FULL,
2593
+ displayMode: We.FULL,
2594
2594
  canDrag: !0,
2595
2595
  noTransparency: !0,
2596
2596
  color: "#ff5555"
@@ -2602,11 +2602,11 @@ function zd(e) {
2602
2602
  displayMode: e.displayMode
2603
2603
  };
2604
2604
  switch (e.displayMode) {
2605
- case Qe.FULL:
2605
+ case We.FULL:
2606
2606
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BIGWIG, displayMode: e.displayMode, children: /* @__PURE__ */ b(qd, { ...e }) });
2607
- case Qe.DENSE:
2607
+ case We.DENSE:
2608
2608
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BIGWIG, displayMode: e.displayMode, children: /* @__PURE__ */ b(Ud, { ...e }) });
2609
- case Qe.HIDE:
2609
+ case We.HIDE:
2610
2610
  return null;
2611
2611
  default:
2612
2612
  return console.warn(`Display mode "${e.displayMode}" not supported on BigWig`), /* @__PURE__ */ b(ct, { ...n, children: /* @__PURE__ */ b(
@@ -2619,7 +2619,7 @@ function zd(e) {
2619
2619
  ) });
2620
2620
  }
2621
2621
  }
2622
- function Wd(e, t) {
2622
+ function Qd(e, t) {
2623
2623
  const n = [];
2624
2624
  return e.forEach((r, i) => (i === 0 || r.start > e[i - 1].end || r.color != e[i - 1].color ? n.push({
2625
2625
  start: t(r.start) < 0 ? 0 : t(r.start),
@@ -2629,8 +2629,8 @@ function Wd(e, t) {
2629
2629
  score: r.score
2630
2630
  }) : n[n.length - 1].end = t(r.end), n)), n;
2631
2631
  }
2632
- function Qd(e, t) {
2633
- return Wr(
2632
+ function Wd(e, t) {
2633
+ return Qr(
2634
2634
  e.sort((n, r) => n.start - r.start).map(
2635
2635
  (n) => ({ coordinates: { start: n.start, end: n.end }, color: n.color, name: "", score: n.score, rectname: n.name })
2636
2636
  ),
@@ -2673,8 +2673,8 @@ function Gu(e, t, n, r, i) {
2673
2673
  return [a, s];
2674
2674
  }
2675
2675
  const Gd = (e) => {
2676
- const [t, n] = Gu(e.tooltipContent || Hu, e.width, e.svgRef), r = We(Gt()), i = Ye(Rt(e.domain, e.width), [e.data]), o = e.color || "#000000", a = e.id || r.current.toString(), s = Le(
2677
- () => Wd(e.data || [], i),
2676
+ const [t, n] = Gu(e.tooltipContent || Hu, e.width, e.svgRef), r = Qe(Gt()), i = Ye(Rt(e.domain, e.width), [e.data]), o = e.color || "#000000", a = e.id || r.current.toString(), s = Le(
2677
+ () => Qd(e.data || [], i),
2678
2678
  [e.width, e.data, e.domain]
2679
2679
  );
2680
2680
  return le(() => {
@@ -2719,10 +2719,10 @@ const Gd = (e) => {
2719
2719
  }
2720
2720
  ) });
2721
2721
  }, Yd = (e) => {
2722
- const [t, n] = Gu(e.tooltipContent || Hu, e.width, e.svgRef), r = We(Gt()), i = Ye(Rt(e.domain, e.width), [e.data]), o = Le(
2722
+ const [t, n] = Gu(e.tooltipContent || Hu, e.width, e.svgRef), r = Qe(Gt()), i = Ye(Rt(e.domain, e.width), [e.data]), o = Le(
2723
2723
  () => {
2724
2724
  const c = e.data ? [...e.data] : [];
2725
- return Qd(c, i);
2725
+ return Wd(c, i);
2726
2726
  },
2727
2727
  [e.width, e.data, e.domain]
2728
2728
  ), a = e.rowHeight * o.length, s = e.id || r.current.toString();
@@ -2768,7 +2768,7 @@ const Gd = (e) => {
2768
2768
  ) });
2769
2769
  }, Kd = {
2770
2770
  trackType: J.BIGBED,
2771
- displayMode: Qe.SQUISH,
2771
+ displayMode: We.SQUISH,
2772
2772
  rowHeight: 10,
2773
2773
  titleSize: 12,
2774
2774
  trackMargin: 12,
@@ -2781,11 +2781,11 @@ function Xd(e) {
2781
2781
  displayMode: e.displayMode
2782
2782
  };
2783
2783
  switch (e.displayMode) {
2784
- case Qe.DENSE:
2784
+ case We.DENSE:
2785
2785
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BIGBED, displayMode: e.displayMode, children: /* @__PURE__ */ b(Gd, { ...e }) });
2786
- case Qe.SQUISH:
2786
+ case We.SQUISH:
2787
2787
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BIGBED, displayMode: e.displayMode, children: /* @__PURE__ */ b(Yd, { ...e }) });
2788
- case Qe.HIDE:
2788
+ case We.HIDE:
2789
2789
  return null;
2790
2790
  default:
2791
2791
  return console.warn(`Display mode "${e.displayMode}" not supported on BigBed`), /* @__PURE__ */ b(ct, { ...n, children: /* @__PURE__ */ b(
@@ -2868,10 +2868,10 @@ function r0(e, t, n, r, i, o) {
2868
2868
  let a = "";
2869
2869
  if (e = e < 0 ? 0 : e, t = t > o ? o : t, n === "+")
2870
2870
  for (let s = e + 10; s < t - 10; s += 20)
2871
- a += Qn(s - i, r - i) + ke(s, r) + ke(s - i, r + i) + ke(s, r) + ke(s - i, r - i);
2871
+ a += Wn(s - i, r - i) + ke(s, r) + ke(s - i, r + i) + ke(s, r) + ke(s - i, r - i);
2872
2872
  else if (n === "-")
2873
2873
  for (let s = e + 10; s < t - 10; s += 20)
2874
- a += Qn(s + i, r - i) + ke(s, r) + ke(s + i, r + i) + ke(s, r) + ke(s + i, r - i);
2874
+ a += Wn(s + i, r - i) + ke(s, r) + ke(s + i, r + i) + ke(s, r) + ke(s + i, r - i);
2875
2875
  return a + " M " + e + " " + r + " L " + t + " " + r;
2876
2876
  }
2877
2877
  function i0(e, t, n, r) {
@@ -2879,10 +2879,10 @@ function i0(e, t, n, r) {
2879
2879
  if (e.coordinates.start > r || e.coordinates.end < 0) return "";
2880
2880
  const i = ((d = e.UTRs) == null ? void 0 : d.filter((m) => m.coordinates.start === e.coordinates.start)) || [], o = ((f = e.UTRs) == null ? void 0 : f.filter((m) => m.coordinates.end === e.coordinates.end)) || [], a = t - n * 0.2, s = t + n * 0.2, c = t - n * 0.3, u = t + n * 0.3;
2881
2881
  if (!i[0] && !o[0])
2882
- return Qn(e.coordinates.start, c) + ke(e.coordinates.end, c) + ke(e.coordinates.end, u) + ke(e.coordinates.start, u) + ke(e.coordinates.start, c);
2882
+ return Wn(e.coordinates.start, c) + ke(e.coordinates.end, c) + ke(e.coordinates.end, u) + ke(e.coordinates.start, u) + ke(e.coordinates.start, c);
2883
2883
  if (i[0] && i[0].coordinates.end === e.coordinates.end)
2884
- return Qn(i[0].coordinates.start, a) + ke(i[0].coordinates.end, a) + ke(i[0].coordinates.end, s) + ke(i[0].coordinates.start, s) + ke(i[0].coordinates.start, a);
2885
- let l = i[0] ? Qn(i[0].coordinates.start, a) + ke(i[0].coordinates.end, a) + ke(i[0].coordinates.end, c) : Qn(e.coordinates.start, c);
2884
+ return Wn(i[0].coordinates.start, a) + ke(i[0].coordinates.end, a) + ke(i[0].coordinates.end, s) + ke(i[0].coordinates.start, s) + ke(i[0].coordinates.start, a);
2885
+ let l = i[0] ? Wn(i[0].coordinates.start, a) + ke(i[0].coordinates.end, a) + ke(i[0].coordinates.end, c) : Wn(e.coordinates.start, c);
2886
2886
  return l += o[0] ? ke(o[0].coordinates.start, c) + ke(o[0].coordinates.start, a) + ke(o[0].coordinates.end, a) + ke(o[0].coordinates.end, s) + ke(o[0].coordinates.start, s) + ke(o[0].coordinates.start, u) : ke(e.coordinates.end, c) + ke(e.coordinates.end, u), l + (i[0] ? ke(i[0].coordinates.end, u) + ke(i[0].coordinates.end, s) + ke(i[0].coordinates.start, s) + ke(i[0].coordinates.start, a) : ke(e.coordinates.start, u) + ke(e.coordinates.start, c));
2887
2887
  }
2888
2888
  function Yu(e, t, n, r, i) {
@@ -2918,8 +2918,8 @@ const o0 = (e) => {
2918
2918
  }
2919
2919
  }, r = () => {
2920
2920
  t.setTooltip({ show: !1, x: 0, y: 0, content: void 0, width: 0, height: 0 });
2921
- }, i = We(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.color || "#000000", s = _a(e.rowHeight) * 1.25, c = Le(
2922
- () => Wr(Zd(e.data || [], e.domain), o, s).map(
2921
+ }, i = Qe(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.color || "#000000", s = _a(e.rowHeight) * 1.25, c = Le(
2922
+ () => Qr(Zd(e.data || [], e.domain), o, s).map(
2923
2923
  (l, d) => ({
2924
2924
  y: d * e.rowHeight,
2925
2925
  transcripts: l.map(
@@ -2987,10 +2987,10 @@ const o0 = (e) => {
2987
2987
  }
2988
2988
  }, r = () => {
2989
2989
  t.setTooltip({ show: !1, x: 0, y: 0, content: void 0, width: 0, height: 0 });
2990
- }, i = We(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.color || "#000000", s = _a(e.rowHeight) * 1.25, c = Le(
2990
+ }, i = Qe(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.color || "#000000", s = _a(e.rowHeight) * 1.25, c = Le(
2991
2991
  () => {
2992
2992
  var l;
2993
- return Wr(((l = e.data) == null ? void 0 : l.map((d) => t0(d, e.geneName))) || [], o, s).map(
2993
+ return Qr(((l = e.data) == null ? void 0 : l.map((d) => t0(d, e.geneName))) || [], o, s).map(
2994
2994
  (d, f) => ({
2995
2995
  y: f * e.rowHeight,
2996
2996
  transcripts: d.map(
@@ -3046,7 +3046,7 @@ const o0 = (e) => {
3046
3046
  ] }) });
3047
3047
  }, s0 = {
3048
3048
  trackType: J.TRANSCRIPT,
3049
- displayMode: Qe.SQUISH,
3049
+ displayMode: We.SQUISH,
3050
3050
  rowHeight: 14,
3051
3051
  titleSize: 12,
3052
3052
  trackMargin: 12,
@@ -3073,11 +3073,11 @@ function c0(e) {
3073
3073
  i(a.gene), n(s);
3074
3074
  });
3075
3075
  }, [e.version]), e.displayMode) {
3076
- case Qe.PACK:
3076
+ case We.PACK:
3077
3077
  return /* @__PURE__ */ b(ct, { ...o, loading: t, trackType: J.TRANSCRIPT, displayMode: e.displayMode, children: /* @__PURE__ */ b(o0, { ...e, data: r }) });
3078
- case Qe.SQUISH:
3078
+ case We.SQUISH:
3079
3079
  return /* @__PURE__ */ b(ct, { ...o, loading: t, trackType: J.TRANSCRIPT, displayMode: e.displayMode, children: /* @__PURE__ */ b(a0, { ...e, data: r }) });
3080
- case Qe.HIDE:
3080
+ case We.HIDE:
3081
3081
  return null;
3082
3082
  default:
3083
3083
  return console.warn(`Display mode "${e.displayMode}" not supported on BigWig`), /* @__PURE__ */ b(ct, { ...o, children: /* @__PURE__ */ b(
@@ -3095,7 +3095,7 @@ function u0(e, t) {
3095
3095
  return e.sort((r, i) => r.start - i.start).forEach((r, i) => (i === 0 || r.start > e[i - 1].end || r.color != e[i - 1].color ? n.push({ start: t(r.start) < 0 ? 0 : t(r.start), end: t(r.end), color: r.color, cigarOps: r.cigarOps, strand: r.strand, seq: r.seq }) : n[n.length - 1].end = t(r.end), n)), n;
3096
3096
  }
3097
3097
  function l0(e, t, n) {
3098
- return Wr(
3098
+ return Qr(
3099
3099
  e.sort((r, i) => r.start - i.start).map(
3100
3100
  (r) => ({ coordinates: { start: r.start, end: r.end }, color: r.color, name: "", cigarOps: r.cigarOps, strand: r.strand, seq: r.seq })
3101
3101
  ),
@@ -3114,7 +3114,7 @@ function l0(e, t, n) {
3114
3114
  }));
3115
3115
  }
3116
3116
  const f0 = (e) => {
3117
- const t = We(Gt()), n = Rt(e.domain, e.width), r = e.color || "#000000", i = Le(
3117
+ const t = Qe(Gt()), n = Rt(e.domain, e.width), r = e.color || "#000000", i = Le(
3118
3118
  () => l0(e.data, n, e.domain),
3119
3119
  [e.data, e.domain, e.width]
3120
3120
  ), o = e.rowHeight * i.length, a = e.id || t.current.toString();
@@ -3202,7 +3202,7 @@ const f0 = (e) => {
3202
3202
  }
3203
3203
  );
3204
3204
  }, h0 = (e) => {
3205
- const t = We(Gt()), n = Rt(e.domain, e.width), r = e.color || "#000000", i = e.id || t.current.toString(), o = Le(
3205
+ const t = Qe(Gt()), n = Rt(e.domain, e.width), r = e.color || "#000000", i = e.id || t.current.toString(), o = Le(
3206
3206
  () => u0(e.data, n),
3207
3207
  [e.domain, e.width, e.data]
3208
3208
  );
@@ -3232,7 +3232,7 @@ const f0 = (e) => {
3232
3232
  }
3233
3233
  );
3234
3234
  }, Uy = {
3235
- displayMode: Qe.DENSE,
3235
+ displayMode: We.DENSE,
3236
3236
  rowHeight: 10
3237
3237
  };
3238
3238
  function By(e) {
@@ -3242,11 +3242,11 @@ function By(e) {
3242
3242
  displayMode: e.displayMode
3243
3243
  };
3244
3244
  switch (e.displayMode) {
3245
- case Qe.DENSE:
3245
+ case We.DENSE:
3246
3246
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BAM, displayMode: e.displayMode, children: /* @__PURE__ */ b(h0, { ...e }) });
3247
- case Qe.SQUISH:
3247
+ case We.SQUISH:
3248
3248
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.BAM, displayMode: e.displayMode, children: /* @__PURE__ */ b(f0, { ...e }) });
3249
- case Qe.HIDE:
3249
+ case We.HIDE:
3250
3250
  return null;
3251
3251
  default:
3252
3252
  return console.warn(`Display mode "${e.displayMode}" not supported on BigBed`), /* @__PURE__ */ b(ct, { ...n, children: /* @__PURE__ */ b(
@@ -3624,8 +3624,8 @@ var Ku = { exports: {} };
3624
3624
  function Fe(_) {
3625
3625
  return !!be.call(qe, _) || !be.call(Te, _) && (Ie.test(_) ? qe[_] = !0 : (Te[_] = !0, !1));
3626
3626
  }
3627
- function G(_, D, z, V, U, W) {
3628
- this.acceptsBooleans = D === 2 || D === 3 || D === 4, this.attributeName = V, this.attributeNamespace = U, this.mustUseProperty = z, this.propertyName = _, this.type = D, this.sanitizeURL = W;
3627
+ function G(_, D, z, V, U, Q) {
3628
+ this.acceptsBooleans = D === 2 || D === 3 || D === 4, this.attributeName = V, this.attributeNamespace = U, this.mustUseProperty = z, this.propertyName = _, this.type = D, this.sanitizeURL = Q;
3629
3629
  }
3630
3630
  var $ = {};
3631
3631
  "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(_) {
@@ -3701,8 +3701,8 @@ var Ku = { exports: {} };
3701
3701
  }
3702
3702
  function se(_, D) {
3703
3703
  var z, V = $.hasOwnProperty(_) ? $[_] : null;
3704
- return (z = _ !== "style") && (z = V !== null ? V.type === 0 : 2 < _.length && (_[0] === "o" || _[0] === "O") && (_[1] === "n" || _[1] === "N")), z || function(U, W, te, ne) {
3705
- if (W == null || function(Be, et, xe, ut) {
3704
+ return (z = _ !== "style") && (z = V !== null ? V.type === 0 : 2 < _.length && (_[0] === "o" || _[0] === "O") && (_[1] === "n" || _[1] === "N")), z || function(U, Q, te, ne) {
3705
+ if (Q == null || function(Be, et, xe, ut) {
3706
3706
  if (xe !== null && xe.type === 0) return !1;
3707
3707
  switch (typeof et) {
3708
3708
  case "function":
@@ -3713,16 +3713,16 @@ var Ku = { exports: {} };
3713
3713
  default:
3714
3714
  return !1;
3715
3715
  }
3716
- }(U, W, te)) return !0;
3716
+ }(U, Q, te)) return !0;
3717
3717
  if (te !== null) switch (te.type) {
3718
3718
  case 3:
3719
- return !W;
3719
+ return !Q;
3720
3720
  case 4:
3721
- return W === !1;
3721
+ return Q === !1;
3722
3722
  case 5:
3723
- return isNaN(W);
3723
+ return isNaN(Q);
3724
3724
  case 6:
3725
- return isNaN(W) || 1 > W;
3725
+ return isNaN(Q) || 1 > Q;
3726
3726
  }
3727
3727
  return !1;
3728
3728
  }(_, D, V) ? "" : V !== null ? (_ = V.attributeName, (z = V.type) === 3 || z === 4 && D === !0 ? _ + '=""' : (V.sanitizeURL && (D = "" + D), _ + '="' + Y(D) + '"')) : Fe(_) ? _ + '="' + Y(D) + '"' : "";
@@ -3786,8 +3786,8 @@ var Ku = { exports: {} };
3786
3786
  if (V === null) V = !1;
3787
3787
  else {
3788
3788
  for (var U = 0; U < V.length && U < D.length; U++) {
3789
- var W = D[U], te = V[U];
3790
- if ((W !== te || W === 0 && 1 / W != 1 / te) && (W == W || te == te)) {
3789
+ var Q = D[U], te = V[U];
3790
+ if ((Q !== te || Q === 0 && 1 / Q != 1 / te) && (Q == Q || te == te)) {
3791
3791
  V = !1;
3792
3792
  break e;
3793
3793
  }
@@ -3872,9 +3872,9 @@ var Ku = { exports: {} };
3872
3872
  te && (D = o({}, D, te));
3873
3873
  }
3874
3874
  for (; a.isValidElement(_); ) {
3875
- var U = _, W = U.type;
3876
- if (typeof W != "function") break;
3877
- V(U, W);
3875
+ var U = _, Q = U.type;
3876
+ if (typeof Q != "function") break;
3877
+ V(U, Q);
3878
3878
  }
3879
3879
  return { child: _, context: D };
3880
3880
  }
@@ -3884,11 +3884,11 @@ var Ku = { exports: {} };
3884
3884
  a.isValidElement(D) ? D.type !== l ? D = [D] : (D = D.props.children, D = a.isValidElement(D) ? [D] : jt(D)) : D = jt(D), D = { type: null, domNamespace: Tt.html, children: D, childIndex: 0, context: F, footer: "" };
3885
3885
  var V = j[0];
3886
3886
  if (V === 0) {
3887
- var U = j, W = 2 * (V = U.length);
3888
- if (!(65536 >= W)) throw s(Error(304));
3889
- var te = new Uint16Array(W);
3890
- for (te.set(U), (j = te)[0] = V + 1, U = V; U < W - 1; U++) j[U] = U + 1;
3891
- j[W - 1] = 0;
3887
+ var U = j, Q = 2 * (V = U.length);
3888
+ if (!(65536 >= Q)) throw s(Error(304));
3889
+ var te = new Uint16Array(Q);
3890
+ for (te.set(U), (j = te)[0] = V + 1, U = V; U < Q - 1; U++) j[U] = U + 1;
3891
+ j[Q - 1] = 0;
3892
3892
  } else j[0] = j[V];
3893
3893
  this.threadID = V, this.stack = [D], this.exhausted = !1, this.currentSelectValue = null, this.previousWasTextNode = !1, this.makeStaticMarkup = z, this.suspenseDepth = 0, this.contextIndex = -1, this.contextStack = [], this.contextValueStack = [];
3894
3894
  }
@@ -3901,8 +3901,8 @@ var Ku = { exports: {} };
3901
3901
  }, _.prototype.pushProvider = function(D) {
3902
3902
  var z = ++this.contextIndex, V = D.type._context, U = this.threadID;
3903
3903
  q(V, U);
3904
- var W = V[U];
3905
- this.contextStack[z] = V, this.contextValueStack[z] = W, V[U] = D.props.value;
3904
+ var Q = V[U];
3905
+ this.contextStack[z] = V, this.contextValueStack[z] = Q, V[U] = D.props.value;
3906
3906
  }, _.prototype.popProvider = function() {
3907
3907
  var D = this.contextIndex, z = this.contextStack[D], V = this.contextValueStack[D];
3908
3908
  this.contextStack[D] = null, this.contextValueStack[D] = null, this.contextIndex--, z[this.threadID] = V;
@@ -3915,7 +3915,7 @@ var Ku = { exports: {} };
3915
3915
  var V = Pn.current;
3916
3916
  Pn.current = He;
3917
3917
  try {
3918
- for (var U = [""], W = !1; U[0].length < D; ) {
3918
+ for (var U = [""], Q = !1; U[0].length < D; ) {
3919
3919
  if (this.stack.length === 0) {
3920
3920
  this.exhausted = !0;
3921
3921
  var te = this.threadID;
@@ -3923,15 +3923,15 @@ var Ku = { exports: {} };
3923
3923
  break;
3924
3924
  }
3925
3925
  var ne = this.stack[this.stack.length - 1];
3926
- if (W || ne.childIndex >= ne.children.length) {
3926
+ if (Q || ne.childIndex >= ne.children.length) {
3927
3927
  var Be = ne.footer;
3928
3928
  if (Be !== "" && (this.previousWasTextNode = !1), this.stack.pop(), ne.type === "select") this.currentSelectValue = null;
3929
3929
  else if (ne.type != null && ne.type.type != null && ne.type.type.$$typeof === m) this.popProvider(ne.type);
3930
3930
  else if (ne.type === O) {
3931
3931
  this.suspenseDepth--;
3932
3932
  var et = U.pop();
3933
- if (W) {
3934
- W = !1;
3933
+ if (Q) {
3934
+ Q = !1;
3935
3935
  var xe = ne.fallbackFrame;
3936
3936
  if (!xe) throw s(Error(303));
3937
3937
  this.stack.push(xe), U[this.suspenseDepth] += "<!--$!-->";
@@ -3977,16 +3977,16 @@ var Ku = { exports: {} };
3977
3977
  if (typeof U == "object" && U !== null) switch (U.$$typeof) {
3978
3978
  case S:
3979
3979
  ee = {};
3980
- var W = U.render(D.props, D.ref);
3981
- return W = ce(U.render, D.props, W, D.ref), W = jt(W), this.stack.push({ type: null, domNamespace: V, children: W, childIndex: 0, context: z, footer: "" }), "";
3980
+ var Q = U.render(D.props, D.ref);
3981
+ return Q = ce(U.render, D.props, Q, D.ref), Q = jt(Q), this.stack.push({ type: null, domNamespace: V, children: Q, childIndex: 0, context: z, footer: "" }), "";
3982
3982
  case v:
3983
3983
  return D = [a.createElement(U.type, o({ ref: D.ref }, D.props))], this.stack.push({ type: null, domNamespace: V, children: D, childIndex: 0, context: z, footer: "" }), "";
3984
3984
  case m:
3985
3985
  return V = { type: D, domNamespace: V, children: U = jt(D.props.children), childIndex: 0, context: z, footer: "" }, this.pushProvider(D), this.stack.push(V), "";
3986
3986
  case w:
3987
- U = D.type, W = D.props;
3987
+ U = D.type, Q = D.props;
3988
3988
  var te = this.threadID;
3989
- return q(U, te), U = jt(W.children(U[te])), this.stack.push({ type: D, domNamespace: V, children: U, childIndex: 0, context: z, footer: "" }), "";
3989
+ return q(U, te), U = jt(Q.children(U[te])), this.stack.push({ type: D, domNamespace: V, children: U, childIndex: 0, context: z, footer: "" }), "";
3990
3990
  case x:
3991
3991
  throw s(Error(338));
3992
3992
  case T:
@@ -3999,13 +3999,13 @@ var Ku = { exports: {} };
3999
3999
  if (!ni.test(U)) throw s(Error(65), U);
4000
4000
  fr[U] = !0;
4001
4001
  }
4002
- var W = D.props;
4003
- if (U === "input") W = o({ type: void 0 }, W, { defaultChecked: void 0, defaultValue: void 0, value: W.value != null ? W.value : W.defaultValue, checked: W.checked != null ? W.checked : W.defaultChecked });
4002
+ var Q = D.props;
4003
+ if (U === "input") Q = o({ type: void 0 }, Q, { defaultChecked: void 0, defaultValue: void 0, value: Q.value != null ? Q.value : Q.defaultValue, checked: Q.checked != null ? Q.checked : Q.defaultChecked });
4004
4004
  else if (U === "textarea") {
4005
- var te = W.value;
4005
+ var te = Q.value;
4006
4006
  if (te == null) {
4007
- te = W.defaultValue;
4008
- var ne = W.children;
4007
+ te = Q.defaultValue;
4008
+ var ne = Q.children;
4009
4009
  if (ne != null) {
4010
4010
  if (te != null) throw s(Error(92));
4011
4011
  if (Array.isArray(ne)) {
@@ -4016,8 +4016,8 @@ var Ku = { exports: {} };
4016
4016
  }
4017
4017
  te == null && (te = "");
4018
4018
  }
4019
- W = o({}, W, { value: void 0, children: "" + te });
4020
- } else if (U === "select") this.currentSelectValue = W.value != null ? W.value : W.defaultValue, W = o({}, W, { value: void 0 });
4019
+ Q = o({}, Q, { value: void 0, children: "" + te });
4020
+ } else if (U === "select") this.currentSelectValue = Q.value != null ? Q.value : Q.defaultValue, Q = o({}, Q, { value: void 0 });
4021
4021
  else if (U === "option") {
4022
4022
  ne = this.currentSelectValue;
4023
4023
  var Be = function(xt) {
@@ -4026,19 +4026,19 @@ var Ku = { exports: {} };
4026
4026
  return a.Children.forEach(xt, function($t) {
4027
4027
  $t != null && (Vt += $t);
4028
4028
  }), Vt;
4029
- }(W.children);
4029
+ }(Q.children);
4030
4030
  if (ne != null) {
4031
- var et = W.value != null ? W.value + "" : Be;
4031
+ var et = Q.value != null ? Q.value + "" : Be;
4032
4032
  if (te = !1, Array.isArray(ne)) {
4033
4033
  for (var xe = 0; xe < ne.length; xe++) if ("" + ne[xe] === et) {
4034
4034
  te = !0;
4035
4035
  break;
4036
4036
  }
4037
4037
  } else te = "" + ne === et;
4038
- W = o({ selected: void 0, children: void 0 }, W, { selected: te, children: Be });
4038
+ Q = o({ selected: void 0, children: void 0 }, Q, { selected: te, children: Be });
4039
4039
  }
4040
4040
  }
4041
- if (te = W) {
4041
+ if (te = Q) {
4042
4042
  if (Xr[U] && (te.children != null || te.dangerouslySetInnerHTML != null)) throw s(Error(137), U, "");
4043
4043
  if (te.dangerouslySetInnerHTML != null) {
4044
4044
  if (te.children != null) throw s(Error(60));
@@ -4046,7 +4046,7 @@ var Ku = { exports: {} };
4046
4046
  }
4047
4047
  if (te.style != null && typeof te.style != "object") throw s(Error(62), "");
4048
4048
  }
4049
- for (Ge in te = W, ne = this.makeStaticMarkup, Be = this.stack.length === 1, et = "<" + D.type, te) if (ri.call(te, Ge)) {
4049
+ for (Ge in te = Q, ne = this.makeStaticMarkup, Be = this.stack.length === 1, et = "<" + D.type, te) if (ri.call(te, Ge)) {
4050
4050
  var ut = te[Ge];
4051
4051
  if (ut != null) {
4052
4052
  if (Ge === "style") {
@@ -4089,20 +4089,20 @@ var Ku = { exports: {} };
4089
4089
  var Ge = et;
4090
4090
  te = "", lr.hasOwnProperty(U) ? Ge += "/>" : (Ge += ">", te = "</" + D.type + ">");
4091
4091
  e: {
4092
- if ((ne = W.dangerouslySetInnerHTML) != null) {
4092
+ if ((ne = Q.dangerouslySetInnerHTML) != null) {
4093
4093
  if (ne.__html != null) {
4094
4094
  ne = ne.__html;
4095
4095
  break e;
4096
4096
  }
4097
- } else if (typeof (ne = W.children) == "string" || typeof ne == "number") {
4097
+ } else if (typeof (ne = Q.children) == "string" || typeof ne == "number") {
4098
4098
  ne = Y(ne);
4099
4099
  break e;
4100
4100
  }
4101
4101
  ne = null;
4102
4102
  }
4103
- return ne != null ? (W = [], ti[U] && ne.charAt(0) === `
4103
+ return ne != null ? (Q = [], ti[U] && ne.charAt(0) === `
4104
4104
  ` && (Ge += `
4105
- `), Ge += ne) : W = jt(W.children), D = D.type, V = V == null || V === "http://www.w3.org/1999/xhtml" ? Lt(D) : V === "http://www.w3.org/2000/svg" && D === "foreignObject" ? "http://www.w3.org/1999/xhtml" : V, this.stack.push({ domNamespace: V, type: U, children: W, childIndex: 0, context: z, footer: te }), this.previousWasTextNode = !1, Ge;
4105
+ `), Ge += ne) : Q = jt(Q.children), D = D.type, V = V == null || V === "http://www.w3.org/1999/xhtml" ? Lt(D) : V === "http://www.w3.org/2000/svg" && D === "foreignObject" ? "http://www.w3.org/1999/xhtml" : V, this.stack.push({ domNamespace: V, type: U, children: Q, childIndex: 0, context: z, footer: te }), this.previousWasTextNode = !1, Ge;
4106
4106
  }, _;
4107
4107
  }(), gr = { renderToString: function(_) {
4108
4108
  _ = new mr(_, !1);
@@ -4626,8 +4626,8 @@ var Ku = { exports: {} };
4626
4626
  var U = function(h) {
4627
4627
  return a.a.createElement("path", V({ d: "M 0 0 L 0 100 L 20 100 L 20 60 C 20 0 80 0 80 50 L 80 100 L 100 100 L 100 25 C 80 -10 20 -10 20 20 L 20 0 L 0 0" }, h));
4628
4628
  };
4629
- function W() {
4630
- return (W = Object.assign || function(h) {
4629
+ function Q() {
4630
+ return (Q = Object.assign || function(h) {
4631
4631
  for (var p = 1; p < arguments.length; p++) {
4632
4632
  var g = arguments[p];
4633
4633
  for (var y in g) Object.prototype.hasOwnProperty.call(g, y) && (h[y] = g[y]);
@@ -4636,7 +4636,7 @@ var Ku = { exports: {} };
4636
4636
  }).apply(this, arguments);
4637
4637
  }
4638
4638
  var te = function(h) {
4639
- return a.a.createElement("g", null, a.a.createElement("path", W({ d: "M 20 100 L 0 100 L 0 0 L 20 0 L 20 20 C 10 -10 90 -10 100 30 L 100 40 C 90 90 10 90 20 60 L 20 60 L 20 100" }, h)), a.a.createElement("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" }));
4639
+ return a.a.createElement("g", null, a.a.createElement("path", Q({ d: "M 20 100 L 0 100 L 0 0 L 20 0 L 20 20 C 10 -10 90 -10 100 30 L 100 40 C 90 90 10 90 20 60 L 20 60 L 20 100" }, h)), a.a.createElement("path", { d: "M 79 40 C 80 5 20 5 20 35 C 20 70 80 70 79 35", fill: "#ffffff" }));
4640
4640
  };
4641
4641
  function ne() {
4642
4642
  return (ne = Object.assign || function(h) {
@@ -4806,8 +4806,8 @@ var Ku = { exports: {} };
4806
4806
  var hs = function(h) {
4807
4807
  return a.a.createElement("path", fs({}, h, { d: "M 50 100 C 140 30 90 0 50 0 C 10 0 0 20 0 45 C 20 70 70 70 65 50 L 70 40 C 20 50 20 15 50 20 C 90 20 52 90 10 100 L 50 100" }));
4808
4808
  }, to = [{ component: c, regex: "A", color: "red" }, { component: l, regex: "B", color: "maroon" }, { component: f, regex: "C", color: "blue" }, { component: w, regex: "D", color: "green" }, { component: S, regex: "E", color: "olive" }, { component: C, regex: "F", color: "navy" }, { component: T, regex: "G", color: "orange" }, { component: I, regex: "H", color: "teal" }, { component: F, regex: "I", color: "cadetblue" }, { component: j, regex: "J", color: "lavender" }, { component: Ie, regex: "K", color: "chocolate" }, { component: Te, regex: "L", color: "coral" }, { component: Fe, regex: "M", color: "darkolivegreen" }, { component: $, regex: "N", color: "darkorange" }, { component: R, regex: "O", color: "gold" }, { component: Y, regex: "P", color: "darkorchid" }, { component: ee, regex: "Q", color: "darkslateblue" }, { component: H, regex: "R", color: "firebrick" }, { component: re, regex: "S", color: "darkslategrey" }, { component: fe, regex: "T", color: "#228b22" }, { component: M, regex: "U", color: "seagreen" }, { component: oe, regex: "V", color: "indigo" }, { component: ae, regex: "W", color: "mediumseagreen" }, { component: Ze, regex: "X", color: "black" }, { component: Re, regex: "Y", color: "palevioletred" }, { component: Tt, regex: "Z", color: "peru" }, { component: lr, regex: "a", color: "red" }, { component: cn, regex: "b", color: "maroon" }, { component: f, regex: "c", color: "purple" }, { component: Zr, regex: "d", color: "green" }, { component: jt, regex: "e", color: "olive" }, { component: ti, regex: "f", color: "navy" }, { component: fr, regex: "g", color: "orange" }, { component: ri, regex: "h", color: "teal" }, { component: dr, regex: "i", color: "cadetblue" }, { component: mr, regex: "j", color: "lavender" }, { component: vr, regex: "k", color: "chocolate" }, { component: _, regex: "l", color: "coral" }, { component: z, regex: "m", color: "darkolivegreen" }, { component: U, regex: "n", color: "darkorange" }, { component: R, regex: "o", color: "gold" }, { component: te, regex: "p", color: "darkorchid" }, { component: Be, regex: "q", color: "darkslateblue" }, { component: xe, regex: "r", color: "firebrick" }, { component: re, regex: "s", color: "darkslategrey" }, { component: tt, regex: "t", color: "#228b22" }, { component: nt, regex: "u", color: "seagreen" }, { component: oe, regex: "v", color: "indigo" }, { component: ae, regex: "w", color: "mediumseagreen" }, { component: Ze, regex: "x", color: "black" }, { component: lt, regex: "y", color: "palevioletred" }, { component: Tt, regex: "z", color: "peru" }, { component: R, regex: "0", color: "indianred" }, { component: Ge, regex: "1", color: "red" }, { component: Vt, regex: "2", color: "green" }, { component: br, regex: "3", color: "purple" }, { component: rs, regex: "4", color: "navy" }, { component: os, regex: "5", color: "teal" }, { component: ss, regex: "6", color: "gold" }, { component: us, regex: "7", color: "olive" }, { component: ls, regex: "8", color: "slate" }, { component: hs, regex: "9", color: "firebrick" }], _f = a.a.forwardRef(function(h, p) {
4809
- var g = h.ppm, y = h.pfm, Q = h.scale, me = h.startpos, he = h.mode;
4810
- return a.a.createElement(An, { ppm: g, alphabet: to, scale: Q, mode: he, startpos: me, pfm: y, ref: p });
4809
+ var g = h.ppm, y = h.pfm, W = h.scale, me = h.startpos, he = h.mode;
4810
+ return a.a.createElement(An, { ppm: g, alphabet: to, scale: W, mode: he, startpos: me, pfm: y, ref: p });
4811
4811
  });
4812
4812
  function ii(h) {
4813
4813
  return function(p) {
@@ -4829,7 +4829,7 @@ var Ku = { exports: {} };
4829
4829
  }), no), ro = function(h) {
4830
4830
  return h.map(function(p) {
4831
4831
  if (p.regex.length === 1) return Object.assign({}, p, { component: ps[p.regex].component });
4832
- for (var g = (p.color && p.color.map && p.color.length >= 1 ? p.color[0] : p.color) || "#000000", y = Object.assign({}, p, { component: [], color: p.color && p.color.map && p.color.length === p.regex.length ? p.color : [] }), Q = 0; Q < y.regex.length; ++Q) y.component.push(ps[y.regex[Q]].component), y.color.length === Q && y.color.push(g);
4832
+ for (var g = (p.color && p.color.map && p.color.length >= 1 ? p.color[0] : p.color) || "#000000", y = Object.assign({}, p, { component: [], color: p.color && p.color.map && p.color.length === p.regex.length ? p.color : [] }), W = 0; W < y.regex.length; ++W) y.component.push(ps[y.regex[W]].component), y.color.length === W && y.color.push(g);
4833
4833
  return y;
4834
4834
  });
4835
4835
  }, ms = function(h) {
@@ -4849,8 +4849,8 @@ var Ku = { exports: {} };
4849
4849
  }), p;
4850
4850
  }, Df = function(h) {
4851
4851
  return h.reduce(function(p, g) {
4852
- return [].concat(ii(p), ii(h.reduce(function(y, Q) {
4853
- return [].concat(ii(y), [{ component: [g.component, Q.component], color: [g.color, Q.color], regex: g.regex + Q.regex }]);
4852
+ return [].concat(ii(p), ii(h.reduce(function(y, W) {
4853
+ return [].concat(ii(y), [{ component: [g.component, W.component], color: [g.color, W.color], regex: g.regex + W.regex }]);
4854
4854
  }, [])));
4855
4855
  }, []);
4856
4856
  };
@@ -4867,9 +4867,9 @@ var Ku = { exports: {} };
4867
4867
  }();
4868
4868
  }
4869
4869
  var gs = function(h, p, g) {
4870
- for (var y = [], Q = Math.max.apply(Math, Lf(g.map(function(he) {
4870
+ for (var y = [], W = Math.max.apply(Math, Lf(g.map(function(he) {
4871
4871
  return he.length;
4872
- }))), me = 0; me < Q; ++me) y.push(h.map(function(he) {
4872
+ }))), me = 0; me < W; ++me) y.push(h.map(function(he) {
4873
4873
  return 0;
4874
4874
  }));
4875
4875
  return g.forEach(function(he) {
@@ -4877,23 +4877,23 @@ var Ku = { exports: {} };
4877
4877
  }), { count: g.length, pfm: y };
4878
4878
  }, Mf = function(h, p) {
4879
4879
  var g = {}, y = [];
4880
- return h.forEach(function(Q, me) {
4881
- g[Q.regex] = me;
4880
+ return h.forEach(function(W, me) {
4881
+ g[W.regex] = me;
4882
4882
  }), p.split(`
4883
- `).forEach(function(Q) {
4884
- Q[0] === ">" ? y.push("") : y[y.length - 1] += Q.trim();
4883
+ `).forEach(function(W) {
4884
+ W[0] === ">" ? y.push("") : y[y.length - 1] += W.trim();
4885
4885
  }), gs(h, g, y);
4886
4886
  }, If = function(h, p) {
4887
4887
  var g = {};
4888
- return h.forEach(function(y, Q) {
4889
- g[y.regex] = Q;
4888
+ return h.forEach(function(y, W) {
4889
+ g[y.regex] = W;
4890
4890
  }), gs(h, g, p.split(`
4891
4891
  `).map(function(y) {
4892
4892
  return y.trim();
4893
4893
  }));
4894
4894
  }, vs = function(h) {
4895
- var p = h.yscale, g = h.inverted, y = h.xscale, Q = h.children, me = p * (g ? -1 : 1);
4896
- return a.a.createElement("g", { transform: "scale(" + y + "," + me + ")" }, Q);
4895
+ var p = h.yscale, g = h.inverted, y = h.xscale, W = h.children, me = p * (g ? -1 : 1);
4896
+ return a.a.createElement("g", { transform: "scale(" + y + "," + me + ")" }, W);
4897
4897
  };
4898
4898
  function io() {
4899
4899
  return (io = Object.assign || function(h) {
@@ -4905,59 +4905,59 @@ var Ku = { exports: {} };
4905
4905
  }).apply(this, arguments);
4906
4906
  }
4907
4907
  var ys = function(h) {
4908
- var p = h.height, g = h.width, y = h.indices, Q = h.alphabet, me = h.lv, he = h.transform, Ce = h.alpha, at = h.inverted, rt = h.onSymbolMouseOver, st = h.onSymbolMouseOut, ft = h.onSymbolClick, $e = p, mt = g / 100;
4908
+ var p = h.height, g = h.width, y = h.indices, W = h.alphabet, me = h.lv, he = h.transform, Ce = h.alpha, at = h.inverted, rt = h.onSymbolMouseOver, st = h.onSymbolMouseOut, ft = h.onSymbolClick, $e = p, mt = g / 100;
4909
4909
  Ce = Ce || 1;
4910
4910
  var ht = y.map(function(de) {
4911
- if (!Q[de] || !Q[de].component || me[de] === 0) return null;
4911
+ if (!W[de] || !W[de].component || me[de] === 0) return null;
4912
4912
  $e -= 100 * me[de];
4913
4913
  var ze = at ? $e + 100 * me[de] : $e;
4914
- if (!Q[de].component.map) {
4915
- var gt = Q[de].component;
4914
+ if (!W[de].component.map) {
4915
+ var gt = W[de].component;
4916
4916
  return a.a.createElement("g", { transform: "translate(0," + ze + ")", key: de, onMouseOver: rt && function() {
4917
- return rt(Q[de]);
4917
+ return rt(W[de]);
4918
4918
  }, onMouseOut: st && function() {
4919
- return st(Q[de]);
4919
+ return st(W[de]);
4920
4920
  }, onClick: ft && function() {
4921
- return ft(Q[de]);
4922
- } }, a.a.createElement(vs, { xscale: mt, yscale: me[de], inverted: at }, a.a.createElement(gt, io({ fill: Q[de].color, fillOpacity: Ce }, Q[de]))));
4923
- }
4924
- var Nt = 0.8 * mt / Q[de].component.length;
4925
- return Q[de].color.map || (Q[de].color = Q[de].component.map(function(Yt) {
4926
- return Q[de].color;
4927
- })), Q[de].component.map(function(Yt, Kt) {
4928
- return a.a.createElement("g", { transform: "translate(" + (Kt * g * 0.8 / Q[de].component.length + 0.1 * g) + "," + ze + ")", key: de + "_" + Kt, onMouseOver: rt && function() {
4929
- return rt(Q[de]);
4921
+ return ft(W[de]);
4922
+ } }, a.a.createElement(vs, { xscale: mt, yscale: me[de], inverted: at }, a.a.createElement(gt, io({ fill: W[de].color, fillOpacity: Ce }, W[de]))));
4923
+ }
4924
+ var Nt = 0.8 * mt / W[de].component.length;
4925
+ return W[de].color.map || (W[de].color = W[de].component.map(function(Yt) {
4926
+ return W[de].color;
4927
+ })), W[de].component.map(function(Yt, Kt) {
4928
+ return a.a.createElement("g", { transform: "translate(" + (Kt * g * 0.8 / W[de].component.length + 0.1 * g) + "," + ze + ")", key: de + "_" + Kt, onMouseOver: rt && function() {
4929
+ return rt(W[de]);
4930
4930
  }, onMouseOut: st && function() {
4931
- return st(Q[de]);
4931
+ return st(W[de]);
4932
4932
  }, onClick: ft && function() {
4933
- return ft(Q[de]);
4934
- } }, a.a.createElement(vs, { xscale: Nt, yscale: me[de], inverted: at }, a.a.createElement(Yt, io({ fill: Q[de].color[Kt], fillOpacity: Ce }, Q[de]))));
4933
+ return ft(W[de]);
4934
+ } }, a.a.createElement(vs, { xscale: Nt, yscale: me[de], inverted: at }, a.a.createElement(Yt, io({ fill: W[de].color[Kt], fillOpacity: Ce }, W[de]))));
4935
4935
  });
4936
4936
  });
4937
4937
  return a.a.createElement("g", { transform: he }, ht);
4938
4938
  }, bs = function(h) {
4939
- var p = h.n, g = h.transform, y = h.glyphWidth, Q = h.startpos, me = oi(p);
4939
+ var p = h.n, g = h.transform, y = h.glyphWidth, W = h.startpos, me = oi(p);
4940
4940
  return a.a.createElement("g", { transform: g }, a.a.createElement("g", { transform: "rotate(-90)" }, me.map(function(he) {
4941
- return a.a.createElement("text", { x: "0", y: y * (he + 0.66), fontSize: "18", textAnchor: "end", key: he }, he + Q);
4941
+ return a.a.createElement("text", { x: "0", y: y * (he + 0.66), fontSize: "18", textAnchor: "end", key: he }, he + W);
4942
4942
  })));
4943
4943
  }, Rf = function(h) {
4944
- var p = h.bits, g = h.transform, y = h.height, Q = h.width, me = h.zeroPoint, he = oi(p + 1);
4945
- return me === void 0 && (me = 1), a.a.createElement("g", { transform: g }, a.a.createElement("rect", { height: y, width: 4, x: Q + 1, y: 0, fill: "#000000" }), he.map(function(Ce) {
4946
- return a.a.createElement("g", { key: Ce, transform: "translate(0," + (y * me - Math.floor(Ce * (y * me) / p)) + ")" }, a.a.createElement("text", { x: Q - 15, textAnchor: "end", y: "4", fontSize: "18" }, Ce), a.a.createElement("rect", { x: Q - 10, width: "15", height: "4", y: "-2", fill: "#000000" }));
4944
+ var p = h.bits, g = h.transform, y = h.height, W = h.width, me = h.zeroPoint, he = oi(p + 1);
4945
+ return me === void 0 && (me = 1), a.a.createElement("g", { transform: g }, a.a.createElement("rect", { height: y, width: 4, x: W + 1, y: 0, fill: "#000000" }), he.map(function(Ce) {
4946
+ return a.a.createElement("g", { key: Ce, transform: "translate(0," + (y * me - Math.floor(Ce * (y * me) / p)) + ")" }, a.a.createElement("text", { x: W - 15, textAnchor: "end", y: "4", fontSize: "18" }, Ce), a.a.createElement("rect", { x: W - 10, width: "15", height: "4", y: "-2", fill: "#000000" }));
4947
4947
  }), a.a.createElement("g", { transform: "rotate(-90)" }, a.a.createElement("text", { y: "20", x: -y / 2, textAnchor: "middle", fontSize: "18" }, "bits")));
4948
4948
  }, Pf = function(h) {
4949
- var p = h.ticks, g = h.transform, y = h.height, Q = h.width, me = oi(p + 1).map(function(he) {
4949
+ var p = h.ticks, g = h.transform, y = h.height, W = h.width, me = oi(p + 1).map(function(he) {
4950
4950
  return he / p;
4951
4951
  });
4952
- return a.a.createElement("g", { transform: g }, a.a.createElement("rect", { height: y, width: 4, x: Q + 1, y: "0", fill: "#000000" }), me.map(function(he) {
4953
- return a.a.createElement("g", { key: he, transform: "translate(0," + (y - Math.floor(he * y)) + ")" }, a.a.createElement("text", { x: Q - 10, textAnchor: "end", y: "4", fontSize: "18" }, (he + "").substring(0, 4)), a.a.createElement("rect", { x: Q - 5, width: "10", height: "4", y: "-2", fill: "#000000" }));
4952
+ return a.a.createElement("g", { transform: g }, a.a.createElement("rect", { height: y, width: 4, x: W + 1, y: "0", fill: "#000000" }), me.map(function(he) {
4953
+ return a.a.createElement("g", { key: he, transform: "translate(0," + (y - Math.floor(he * y)) + ")" }, a.a.createElement("text", { x: W - 10, textAnchor: "end", y: "4", fontSize: "18" }, (he + "").substring(0, 4)), a.a.createElement("rect", { x: W - 5, width: "10", height: "4", y: "-2", fill: "#000000" }));
4954
4954
  }), a.a.createElement("g", { transform: "rotate(-90)" }, a.a.createElement("text", { y: "15", x: -y / 2, textAnchor: "middle", fontSize: "18" }, "frequency")));
4955
4955
  }, ws = function(h) {
4956
- var p = h.minrange, g = h.maxrange, y = h.xstart, Q = h.width, me = h.height, he = h.xaxis_y, Ce = h.numberofgridlines, at = h.stroke, rt = /* @__PURE__ */ function(de, ze) {
4956
+ var p = h.minrange, g = h.maxrange, y = h.xstart, W = h.width, me = h.height, he = h.xaxis_y, Ce = h.numberofgridlines, at = h.stroke, rt = /* @__PURE__ */ function(de, ze) {
4957
4957
  return function(gt) {
4958
4958
  return ze[0] + (ze[1] - ze[0]) * ((gt - de[0]) / (de[1] - de[0]));
4959
4959
  };
4960
- }([p, g], [y, Q]), st = g - p, ft = he + me, $e = Math.ceil(st) / Ce, mt = Math.ceil(st / $e), ht = Array.from(Array(mt).keys());
4960
+ }([p, g], [y, W]), st = g - p, ft = he + me, $e = Math.ceil(st) / Ce, mt = Math.ceil(st / $e), ht = Array.from(Array(mt).keys());
4961
4961
  return a.a.createElement("g", { stroke: at }, ht.map(function(de) {
4962
4962
  var ze = p + $e * de;
4963
4963
  return a.a.createElement("line", { key: de, x1: rt(ze), x2: rt(ze), y1: he, y2: ft });
@@ -4976,7 +4976,7 @@ var Ku = { exports: {} };
4976
4976
  }();
4977
4977
  }
4978
4978
  var oo = function(h) {
4979
- var p, g, y = h.values, Q = h.glyphWidth, me = h.stackHeight, he = h.alphabet, Ce = h.onSymbolMouseOver, at = h.onSymbolMouseOut, rt = h.onSymbolClick, st = (p = Q, g = me, function($e, mt, ht, de, ze) {
4979
+ var p, g, y = h.values, W = h.glyphWidth, me = h.stackHeight, he = h.alphabet, Ce = h.onSymbolMouseOver, at = h.onSymbolMouseOut, rt = h.onSymbolClick, st = (p = W, g = me, function($e, mt, ht, de, ze) {
4980
4980
  var gt = ms($e), Nt = ze || {}, Yt = Nt.onSymbolMouseOver, Kt = Nt.onSymbolMouseOut, jn = Nt.onSymbolClick;
4981
4981
  return a.a.createElement(ys, { indices: gt, alphabet: de, onSymbolMouseOver: Yt ? function(Ct) {
4982
4982
  return Yt(ht, Ct);
@@ -4991,10 +4991,10 @@ var Ku = { exports: {} };
4991
4991
  break;
4992
4992
  }
4993
4993
  return y.map(function($e, mt) {
4994
- return st($e, "translate(" + Q * mt + ",0)", mt, he, { onSymbolMouseOver: Ce, onSymbolMouseOut: at, onSymbolClick: rt });
4994
+ return st($e, "translate(" + W * mt + ",0)", mt, he, { onSymbolMouseOver: Ce, onSymbolMouseOut: at, onSymbolClick: rt });
4995
4995
  });
4996
4996
  }, An = a.a.forwardRef(function(h, p) {
4997
- var g = h.ppm, y = h.pfm, Q = h.values, me = h.fasta, he = h.mode, Ce = h.height, at = h.width, rt = h.alphabet, st = h.glyphwidth, ft = h.scale, $e = h.startpos, mt = h.showGridLines, ht = h.backgroundFrequencies, de = h.constantPseudocount, ze = h.smallSampleCorrectionOff, gt = h.yAxisMax, Nt = h.onSymbolMouseOver, Yt = h.onSymbolMouseOut, Kt = h.onSymbolClick, jn = h.noFastaNames, Ct = h.countUnaligned, qt = null, Ut = !(!y && !me || de || Ct) && !ze, Vn = Ut ? 0 : (de || 0) / rt.length;
4997
+ var g = h.ppm, y = h.pfm, W = h.values, me = h.fasta, he = h.mode, Ce = h.height, at = h.width, rt = h.alphabet, st = h.glyphwidth, ft = h.scale, $e = h.startpos, mt = h.showGridLines, ht = h.backgroundFrequencies, de = h.constantPseudocount, ze = h.smallSampleCorrectionOff, gt = h.yAxisMax, Nt = h.onSymbolMouseOver, Yt = h.onSymbolMouseOut, Kt = h.onSymbolClick, jn = h.noFastaNames, Ct = h.countUnaligned, qt = null, Ut = !(!y && !me || de || Ct) && !ze, Vn = Ut ? 0 : (de || 0) / rt.length;
4998
4998
  if (!g && !y && me) {
4999
4999
  var Ps = (jn ? If : Mf)(rt, me.toUpperCase());
5000
5000
  y = Ps.pfm, qt = Ps.count || 1;
@@ -5018,7 +5018,7 @@ var Ku = { exports: {} };
5018
5018
  ht || (ht = g[0].map(function(_t) {
5019
5019
  return 1 / ao;
5020
5020
  }));
5021
- var wr = Q || (he !== "FREQUENCY" ? g.map(function(_t, Tn) {
5021
+ var wr = W || (he !== "FREQUENCY" ? g.map(function(_t, Tn) {
5022
5022
  return (/* @__PURE__ */ function(Er) {
5023
5023
  return function(un, uo) {
5024
5024
  var js = 0, vh = uo || 0;
@@ -5041,9 +5041,9 @@ var Ku = { exports: {} };
5041
5041
  var Sn = 100 * ai, so = Sn / 6 * (st || 1), co = wr.length * so + 80, Fs = Sn + 18 * (ds($e, wr.length) + 1);
5042
5042
  return ft && (co > Fs ? at = ft : Ce = ft), a.a.createElement("svg", { width: at, height: Ce, viewBox: "0 0 " + co + " " + Fs, ref: p }, mt && a.a.createElement(ws, { minrange: $e, maxrange: $e + g.length, xstart: 70, width: co, height: Sn, xaxis_y: 10, numberofgridlines: 10 * wr.length }), a.a.createElement(bs, { transform: "translate(80," + (Sn + 20) + ")", n: wr.length, glyphWidth: so, startpos: $e }), he === "FREQUENCY" ? a.a.createElement(Pf, { transform: "translate(0,10)", width: 65, height: Sn, ticks: 2 }) : a.a.createElement(Rf, { transform: "translate(0,10)", width: 65, height: Sn, bits: ai, zeroPoint: gh }), a.a.createElement("g", { transform: "translate(80,10)" }, a.a.createElement(oo, { values: wr, glyphWidth: so, stackHeight: Sn, alphabet: rt, onSymbolMouseOver: Nt, onSymbolMouseOut: Yt, onSymbolClick: Kt })));
5043
5043
  }), Nf = function(h) {
5044
- var p = h.transform, g = h.min, y = h.max, Q = h.width, me = h.height, he = [g, 0, y];
5045
- return a.a.createElement("g", { transform: p }, a.a.createElement("rect", { height: me, width: 4, x: Q + 1, y: "0", fill: "#000000" }), he.map(function(Ce) {
5046
- return a.a.createElement("g", { key: Ce, transform: "translate(0," + (me - Ce / y * me) / 2 + ")" }, a.a.createElement("text", { x: Q - 10, textAnchor: "end", y: "4", fontSize: "18" }, (Ce + "").substring(0, 4)), a.a.createElement("rect", { x: Q - 5, width: "10", height: "4", y: "-2", fill: "#000000" }));
5044
+ var p = h.transform, g = h.min, y = h.max, W = h.width, me = h.height, he = [g, 0, y];
5045
+ return a.a.createElement("g", { transform: p }, a.a.createElement("rect", { height: me, width: 4, x: W + 1, y: "0", fill: "#000000" }), he.map(function(Ce) {
5046
+ return a.a.createElement("g", { key: Ce, transform: "translate(0," + (me - Ce / y * me) / 2 + ")" }, a.a.createElement("text", { x: W - 10, textAnchor: "end", y: "4", fontSize: "18" }, (Ce + "").substring(0, 4)), a.a.createElement("rect", { x: W - 5, width: "10", height: "4", y: "-2", fill: "#000000" }));
5047
5047
  }), a.a.createElement("g", { transform: "rotate(-90)" }, a.a.createElement("text", { y: "15", x: -me / 2, textAnchor: "middle", fontSize: "18" }, "frequency")));
5048
5048
  };
5049
5049
  function xs(h) {
@@ -5059,13 +5059,13 @@ var Ku = { exports: {} };
5059
5059
  }();
5060
5060
  }
5061
5061
  var Os = function(h, p, g, y) {
5062
- return function(Q, me, he, Ce, at, rt) {
5063
- var st, ft = at ? (st = Q).map(function(ze, gt) {
5062
+ return function(W, me, he, Ce, at, rt) {
5063
+ var st, ft = at ? (st = W).map(function(ze, gt) {
5064
5064
  return gt;
5065
5065
  }).sort(function(ze, gt) {
5066
5066
  return st[ze] < st[gt] ? 1 : st[ze] === st[gt] ? 0 : -1;
5067
- }) : ms(Q), $e = rt || {}, mt = $e.onSymbolMouseOver, ht = $e.onSymbolMouseOut, de = $e.onSymbolClick;
5068
- return a.a.createElement(ys, { indices: ft, alphabet: Ce, alpha: g, lv: Q, transform: me, width: h, height: p, onSymbolMouseOver: mt ? function(ze) {
5067
+ }) : ms(W), $e = rt || {}, mt = $e.onSymbolMouseOver, ht = $e.onSymbolMouseOut, de = $e.onSymbolClick;
5068
+ return a.a.createElement(ys, { indices: ft, alphabet: Ce, alpha: g, lv: W, transform: me, width: h, height: p, onSymbolMouseOver: mt ? function(ze) {
5069
5069
  return mt(he, ze);
5070
5070
  } : null, onSymbolClick: de ? function(ze) {
5071
5071
  return de(he, ze);
@@ -5074,7 +5074,7 @@ var Ku = { exports: {} };
5074
5074
  } : null, key: he, inverted: y });
5075
5075
  };
5076
5076
  }, Ss = a.a.forwardRef(function(h, p) {
5077
- var g = h.values, y = h.height, Q = h.width, me = h.alphabet, he = h.scale, Ce = h.startpos, at = h.negativealpha, rt = h.showGridLines, st = h.inverted, ft = h.onSymbolMouseOver, $e = h.onSymbolMouseOut, mt = h.onSymbolClick;
5077
+ var g = h.values, y = h.height, W = h.width, me = h.alphabet, he = h.scale, Ce = h.startpos, at = h.negativealpha, rt = h.showGridLines, st = h.inverted, ft = h.onSymbolMouseOver, $e = h.onSymbolMouseOut, mt = h.onSymbolClick;
5078
5078
  if (g.length === 0 || g[0].length === 0) return a.a.createElement("div", null);
5079
5079
  g[0].length;
5080
5080
  for (var ht in me) if (!ht.component) {
@@ -5092,7 +5092,7 @@ var Ku = { exports: {} };
5092
5092
  }), Ut;
5093
5093
  }(Ct);
5094
5094
  }), gt = Math.max.apply(Math, xs(de).concat(xs(ze))), Nt = g.length * (200 / 6) + 80, Yt = 200 + 18 * (ds(Ce, g.length) + 1), Kt = Os(200 / 6, 200 / 2.05), jn = Os(200 / 6, -200 / 2.05, at / 255, st);
5095
- return he && (Nt > Yt ? Q = he : y = he), a.a.createElement("svg", { ref: p, width: Q, height: y, viewBox: "0 0 " + Nt + " " + Yt }, rt && a.a.createElement(ws, { minrange: Ce, maxrange: Ce + g.length, xstart: 70, width: Nt, height: 200, xaxis_y: 10, numberofgridlines: 10 * g.length }), a.a.createElement(bs, { transform: "translate(80,220)", n: g.length, glyphWidth: 200 / 6, startpos: Ce }), a.a.createElement(Nf, { transform: "translate(0,10)", width: 65, height: 200, min: -gt, max: gt }), a.a.createElement("line", { style: { fill: "none", stroke: "#000000", strokeWidth: 2, strokeLinecap: "butt", strokeLinejoin: "miter", strokeOpacity: 1, strokeMiterlimit: 4, strokeDasharray: "0.53,1.59", strokeDashoffset: 0 }, transform: "translate(80,111)", x1: 0, x2: Nt - 80 }), a.a.createElement("g", { transform: "translate(80,10)" }, g.map(function(Ct, qt) {
5095
+ return he && (Nt > Yt ? W = he : y = he), a.a.createElement("svg", { ref: p, width: W, height: y, viewBox: "0 0 " + Nt + " " + Yt }, rt && a.a.createElement(ws, { minrange: Ce, maxrange: Ce + g.length, xstart: 70, width: Nt, height: 200, xaxis_y: 10, numberofgridlines: 10 * g.length }), a.a.createElement(bs, { transform: "translate(80,220)", n: g.length, glyphWidth: 200 / 6, startpos: Ce }), a.a.createElement(Nf, { transform: "translate(0,10)", width: 65, height: 200, min: -gt, max: gt }), a.a.createElement("line", { style: { fill: "none", stroke: "#000000", strokeWidth: 2, strokeLinecap: "butt", strokeLinejoin: "miter", strokeOpacity: 1, strokeMiterlimit: 4, strokeDasharray: "0.53,1.59", strokeDashoffset: 0 }, transform: "translate(80,111)", x1: 0, x2: Nt - 80 }), a.a.createElement("g", { transform: "translate(80,10)" }, g.map(function(Ct, qt) {
5096
5096
  return Kt(Ct.map(function(Ut) {
5097
5097
  return Ut > 0 ? Ut / gt : 0;
5098
5098
  }), "translate(" + 200 / 6 * qt + ",0)", qt, me, !1, { onSymbolMouseOver: ft, onSymbolMouseOut: $e, onSymbolClick: mt });
@@ -5157,9 +5157,9 @@ var Ku = { exports: {} };
5157
5157
  }), i.d(r, "LC_c", function() {
5158
5158
  return zf;
5159
5159
  }), i.d(r, "LC_d", function() {
5160
- return Wf;
5161
- }), i.d(r, "LC_e", function() {
5162
5160
  return Qf;
5161
+ }), i.d(r, "LC_e", function() {
5162
+ return Wf;
5163
5163
  }), i.d(r, "LC_f", function() {
5164
5164
  return Hf;
5165
5165
  }), i.d(r, "LC_g", function() {
@@ -5319,7 +5319,7 @@ var Ku = { exports: {} };
5319
5319
  }), i.d(r, "N9", function() {
5320
5320
  return hs;
5321
5321
  });
5322
- var Uf = lr, Bf = cn, zf = f, Wf = Zr, Qf = jt, Hf = ti, Gf = fr, Yf = ri, Kf = dr, Xf = mr, Jf = vr, Zf = _, eh = z, th = U, nh = R, rh = te, ih = Be, oh = xe, ah = re, sh = tt, ch = nt, uh = oe, lh = ae, fh = Ze, hh = lt, dh = Tt, ph = R;
5322
+ var Uf = lr, Bf = cn, zf = f, Qf = Zr, Wf = jt, Hf = ti, Gf = fr, Yf = ri, Kf = dr, Xf = mr, Jf = vr, Zf = _, eh = z, th = U, nh = R, rh = te, ih = Be, oh = xe, ah = re, sh = tt, ch = nt, uh = oe, lh = ae, fh = Ze, hh = lt, dh = Tt, ph = R;
5323
5323
  }]);
5324
5324
  });
5325
5325
  })(Ku);
@@ -5452,7 +5452,7 @@ function rc(e, t, n) {
5452
5452
  }), r;
5453
5453
  }
5454
5454
  function ic(e, t, n) {
5455
- return Wr(
5455
+ return Qr(
5456
5456
  e.sort((r, i) => r.start - i.start).map(
5457
5457
  (r) => ({ coordinates: { start: r.start, end: r.end }, pwm: r.pwm, name: "" })
5458
5458
  ),
@@ -5502,7 +5502,7 @@ const T0 = (e) => {
5502
5502
  }
5503
5503
  }, r = () => {
5504
5504
  t.setTooltip({ show: !1, x: 0, y: 0, content: void 0, width: 0, height: 0 });
5505
- }, i = We(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = Le(
5505
+ }, i = Qe(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = Le(
5506
5506
  () => ic(e.data, o, e.domain),
5507
5507
  [e.data, e.domain, e.width]
5508
5508
  ), s = Le(
@@ -5590,7 +5590,7 @@ const T0 = (e) => {
5590
5590
  }
5591
5591
  }, r = () => {
5592
5592
  t.setTooltip({ show: !1, x: 0, y: 0, content: void 0, width: 0, height: 0 });
5593
- }, i = We(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.id || i.current.toString(), s = Le(
5593
+ }, i = Qe(Gt()), o = Ye(Rt(e.domain, e.width), [e.data]), a = e.id || i.current.toString(), s = Le(
5594
5594
  () => rc(e.data, o, e.domain),
5595
5595
  [e.domain, e.width, e.data]
5596
5596
  ), c = Le(
@@ -5646,7 +5646,7 @@ const T0 = (e) => {
5646
5646
  titleSize: 12,
5647
5647
  trackMargin: 12,
5648
5648
  height: 50,
5649
- displayMode: Qe.SQUISH,
5649
+ displayMode: We.SQUISH,
5650
5650
  canDrag: !0
5651
5651
  };
5652
5652
  function k0(e) {
@@ -5656,11 +5656,11 @@ function k0(e) {
5656
5656
  displayMode: e.displayMode
5657
5657
  };
5658
5658
  switch (e.displayMode) {
5659
- case Qe.SQUISH:
5659
+ case We.SQUISH:
5660
5660
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.MOTIF, displayMode: e.displayMode, children: /* @__PURE__ */ b(T0, { ...e }) });
5661
- case Qe.DENSE:
5661
+ case We.DENSE:
5662
5662
  return /* @__PURE__ */ b(ct, { ...n, ...t, trackType: J.MOTIF, displayMode: e.displayMode, children: /* @__PURE__ */ b(C0, { ...e }) });
5663
- case Qe.HIDE:
5663
+ case We.HIDE:
5664
5664
  return null;
5665
5665
  default:
5666
5666
  return console.warn(`Display mode "${e.displayMode}" not supported on BigWig`), /* @__PURE__ */ b(ct, { ...n, children: /* @__PURE__ */ b(
@@ -5775,7 +5775,7 @@ const R0 = (e) => {
5775
5775
  e.onVariantMouseOver && e.onVariantMouseOver(T);
5776
5776
  }, o = () => {
5777
5777
  r.setTooltip({ show: !1, x: 0, y: 0, content: void 0, width: 0, height: 0 });
5778
- }, a = We(Gt()), s = Ye(Rt(e.domain, e.width), [(S = e.data) == null ? void 0 : S.snps]), c = e.color || "#000000", u = e.ldThreshold || 0.7, l = e.highlightColor || "#ff0000", d = e.highlighted || /* @__PURE__ */ new Set(), f = Le(
5778
+ }, a = Qe(Gt()), s = Ye(Rt(e.domain, e.width), [(S = e.data) == null ? void 0 : S.snps]), c = e.color || "#000000", u = e.ldThreshold || 0.7, l = e.highlightColor || "#ff0000", d = e.highlighted || /* @__PURE__ */ new Set(), f = Le(
5779
5779
  () => M0(e.data.snps, d, s, l, c),
5780
5780
  [e.domain, e.width, e.data.snps, e.highlighted, l, c]
5781
5781
  ), m = e.data.ld && Le(
@@ -5869,7 +5869,7 @@ var k = function() {
5869
5869
  return t;
5870
5870
  }, k.apply(this, arguments);
5871
5871
  };
5872
- function Qt(e, t) {
5872
+ function Wt(e, t) {
5873
5873
  var n = {};
5874
5874
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
5875
5875
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -6000,19 +6000,19 @@ function fi(e) {
6000
6000
  e.debug = fi("debug"), e.log = fi("log"), e.warn = fi("warn"), e.error = fi("error");
6001
6001
  })(_n || (_n = {}));
6002
6002
  var Da = "3.11.10";
6003
- function Wt(e) {
6003
+ function Qt(e) {
6004
6004
  try {
6005
6005
  return e();
6006
6006
  } catch {
6007
6007
  }
6008
6008
  }
6009
- const Bo = Wt(function() {
6009
+ const Bo = Qt(function() {
6010
6010
  return globalThis;
6011
- }) || Wt(function() {
6011
+ }) || Qt(function() {
6012
6012
  return window;
6013
- }) || Wt(function() {
6013
+ }) || Qt(function() {
6014
6014
  return self;
6015
- }) || Wt(function() {
6015
+ }) || Qt(function() {
6016
6016
  return global;
6017
6017
  }) || // We don't expect the Function constructor ever to be invoked at runtime, as
6018
6018
  // long as at least one of globalThis, window, self, or global is defined, so
@@ -6020,8 +6020,8 @@ const Bo = Wt(function() {
6020
6020
  // detect syntactic usage of the Function constructor. If you think you can
6021
6021
  // improve your static analysis to detect this obfuscation, think again. This
6022
6022
  // is an arms race you cannot win, at least not in JavaScript.
6023
- Wt(function() {
6024
- return Wt.constructor("return this")();
6023
+ Qt(function() {
6024
+ return Qt.constructor("return this")();
6025
6025
  });
6026
6026
  var sc = /* @__PURE__ */ new Map();
6027
6027
  function zo(e) {
@@ -6097,7 +6097,7 @@ function F0(e, t) {
6097
6097
  );
6098
6098
  }
6099
6099
  const j0 = /\r\n|[\n\r]/g;
6100
- function Wo(e, t) {
6100
+ function Qo(e, t) {
6101
6101
  let n = 0, r = 1;
6102
6102
  for (const i of e.body.matchAll(j0)) {
6103
6103
  if (typeof i.index == "number" || F0(!1), i.index >= t)
@@ -6112,7 +6112,7 @@ function Wo(e, t) {
6112
6112
  function V0(e) {
6113
6113
  return tl(
6114
6114
  e.source,
6115
- Wo(e.source, e.start)
6115
+ Qo(e.source, e.start)
6116
6116
  );
6117
6117
  }
6118
6118
  function tl(e, t) {
@@ -6201,7 +6201,7 @@ class Ia extends Error {
6201
6201
  const f = lc(
6202
6202
  (r = this.nodes) === null || r === void 0 ? void 0 : r.map((w) => w.loc).filter((w) => w != null)
6203
6203
  );
6204
- this.source = s ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? (f == null ? void 0 : f.map((w) => w.start)), this.locations = c && s ? c.map((w) => Wo(s, w)) : f == null ? void 0 : f.map((w) => Wo(w.source, w.start));
6204
+ this.source = s ?? (f == null || (i = f[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? (f == null ? void 0 : f.map((w) => w.start)), this.locations = c && s ? c.map((w) => Qo(s, w)) : f == null ? void 0 : f.map((w) => Qo(w.source, w.start));
6205
6205
  const m = A0(
6206
6206
  l == null ? void 0 : l.extensions
6207
6207
  ) ? l == null ? void 0 : l.extensions : void 0;
@@ -6422,10 +6422,10 @@ var Gn;
6422
6422
  (function(e) {
6423
6423
  e.QUERY = "query", e.MUTATION = "mutation", e.SUBSCRIPTION = "subscription";
6424
6424
  })(Gn || (Gn = {}));
6425
- var Qo;
6425
+ var Wo;
6426
6426
  (function(e) {
6427
6427
  e.QUERY = "QUERY", e.MUTATION = "MUTATION", e.SUBSCRIPTION = "SUBSCRIPTION", e.FIELD = "FIELD", e.FRAGMENT_DEFINITION = "FRAGMENT_DEFINITION", e.FRAGMENT_SPREAD = "FRAGMENT_SPREAD", e.INLINE_FRAGMENT = "INLINE_FRAGMENT", e.VARIABLE_DEFINITION = "VARIABLE_DEFINITION", e.SCHEMA = "SCHEMA", e.SCALAR = "SCALAR", e.OBJECT = "OBJECT", e.FIELD_DEFINITION = "FIELD_DEFINITION", e.ARGUMENT_DEFINITION = "ARGUMENT_DEFINITION", e.INTERFACE = "INTERFACE", e.UNION = "UNION", e.ENUM = "ENUM", e.ENUM_VALUE = "ENUM_VALUE", e.INPUT_OBJECT = "INPUT_OBJECT", e.INPUT_FIELD_DEFINITION = "INPUT_FIELD_DEFINITION";
6428
- })(Qo || (Qo = {}));
6428
+ })(Wo || (Wo = {}));
6429
6429
  var K;
6430
6430
  (function(e) {
6431
6431
  e.NAME = "Name", e.DOCUMENT = "Document", e.OPERATION_DEFINITION = "OperationDefinition", e.VARIABLE_DEFINITION = "VariableDefinition", e.SELECTION_SET = "SelectionSet", e.FIELD = "Field", e.ARGUMENT = "Argument", e.FRAGMENT_SPREAD = "FragmentSpread", e.INLINE_FRAGMENT = "InlineFragment", e.FRAGMENT_DEFINITION = "FragmentDefinition", e.VARIABLE = "Variable", e.INT = "IntValue", e.FLOAT = "FloatValue", e.STRING = "StringValue", e.BOOLEAN = "BooleanValue", e.NULL = "NullValue", e.ENUM = "EnumValue", e.LIST = "ListValue", e.OBJECT = "ObjectValue", e.OBJECT_FIELD = "ObjectField", e.DIRECTIVE = "Directive", e.NAMED_TYPE = "NamedType", e.LIST_TYPE = "ListType", e.NON_NULL_TYPE = "NonNullType", e.SCHEMA_DEFINITION = "SchemaDefinition", e.OPERATION_TYPE_DEFINITION = "OperationTypeDefinition", e.SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition", e.OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition", e.FIELD_DEFINITION = "FieldDefinition", e.INPUT_VALUE_DEFINITION = "InputValueDefinition", e.INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition", e.UNION_TYPE_DEFINITION = "UnionTypeDefinition", e.ENUM_TYPE_DEFINITION = "EnumTypeDefinition", e.ENUM_VALUE_DEFINITION = "EnumValueDefinition", e.INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition", e.DIRECTIVE_DEFINITION = "DirectiveDefinition", e.SCHEMA_EXTENSION = "SchemaExtension", e.SCALAR_TYPE_EXTENSION = "ScalarTypeExtension", e.OBJECT_TYPE_EXTENSION = "ObjectTypeExtension", e.INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension", e.UNION_TYPE_EXTENSION = "UnionTypeExtension", e.ENUM_TYPE_EXTENSION = "EnumTypeExtension", e.INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
@@ -6451,7 +6451,7 @@ function z0(e) {
6451
6451
  let n = Number.MAX_SAFE_INTEGER, r = null, i = -1;
6452
6452
  for (let a = 0; a < e.length; ++a) {
6453
6453
  var o;
6454
- const s = e[a], c = W0(s);
6454
+ const s = e[a], c = Q0(s);
6455
6455
  c !== s.length && (r = (o = r) !== null && o !== void 0 ? o : a, i = a, a !== 0 && c < n && (n = c));
6456
6456
  }
6457
6457
  return e.map((a, s) => s === 0 ? a : a.slice(n)).slice(
@@ -6459,13 +6459,13 @@ function z0(e) {
6459
6459
  i + 1
6460
6460
  );
6461
6461
  }
6462
- function W0(e) {
6462
+ function Q0(e) {
6463
6463
  let t = 0;
6464
6464
  for (; t < e.length && Ho(e.charCodeAt(t)); )
6465
6465
  ++t;
6466
6466
  return t;
6467
6467
  }
6468
- function Q0(e, t) {
6468
+ function W0(e, t) {
6469
6469
  const n = e.replace(/"""/g, '\\"""'), r = n.split(/\r\n|[\n\r]/g), i = r.length === 1, o = r.length > 1 && r.slice(1).every((m) => m.length === 0 || Ho(m.charCodeAt(0))), a = n.endsWith('\\"""'), s = e.endsWith('"') && !a, c = e.endsWith("\\"), u = s || c, l = (
6470
6470
  // add leading and trailing new lines only if it improves readability
6471
6471
  !i || e.length > 70 || u || o || a
@@ -7960,7 +7960,7 @@ class pp {
7960
7960
  */
7961
7961
  parseDirectiveLocation() {
7962
7962
  const t = this._lexer.token, n = this.parseName();
7963
- if (Object.prototype.hasOwnProperty.call(Qo, n.value))
7963
+ if (Object.prototype.hasOwnProperty.call(Wo, n.value))
7964
7964
  return n;
7965
7965
  throw this.unexpected(t);
7966
7966
  }
@@ -8437,7 +8437,7 @@ const Ep = 80, xp = {
8437
8437
  leave: ({ value: e }) => e
8438
8438
  },
8439
8439
  StringValue: {
8440
- leave: ({ value: e, block: t }) => t ? Q0(e) : mp(e)
8440
+ leave: ({ value: e, block: t }) => t ? W0(e) : mp(e)
8441
8441
  },
8442
8442
  BooleanValue: {
8443
8443
  leave: ({ value: e }) => e ? "true" : "false"
@@ -8625,7 +8625,7 @@ function dc(e) {
8625
8625
  function pc(e) {
8626
8626
  return e.kind === K.FIELD || e.kind === K.FRAGMENT_SPREAD || e.kind === K.INLINE_FRAGMENT;
8627
8627
  }
8628
- function Qr(e, t) {
8628
+ function Wr(e, t) {
8629
8629
  var n = e.directives;
8630
8630
  return !n || !n.length ? !0 : Tp(n).every(function(r) {
8631
8631
  var i = r.directive, o = r.ifArgument, a = !1;
@@ -8715,9 +8715,9 @@ function Dp(e) {
8715
8715
  }
8716
8716
  return !1;
8717
8717
  }
8718
- var hl = Wt(function() {
8718
+ var hl = Qt(function() {
8719
8719
  return navigator.product;
8720
- }) == "ReactNative", ur = typeof WeakMap == "function" && !(hl && !global.HermesInternal), dl = typeof WeakSet == "function", Na = typeof Symbol == "function" && typeof Symbol.for == "function", Bi = Na && Symbol.asyncIterator, pl = typeof Wt(function() {
8720
+ }) == "ReactNative", ur = typeof WeakMap == "function" && !(hl && !global.HermesInternal), dl = typeof WeakSet == "function", Na = typeof Symbol == "function" && typeof Symbol.for == "function", Bi = Na && Symbol.asyncIterator, pl = typeof Qt(function() {
8721
8721
  return window.document.createElement;
8722
8722
  }) == "function", Lp = (
8723
8723
  // Following advice found in this comment from @domenic (maintainer of jsdom):
@@ -8728,7 +8728,7 @@ var hl = Wt(function() {
8728
8728
  // at the end of the user agent string, I believe this case is all we need to
8729
8729
  // check. Testing for "Node.js" was recommended for backwards compatibility
8730
8730
  // with older version of jsdom, but we don't have that problem.
8731
- Wt(function() {
8731
+ Qt(function() {
8732
8732
  return navigator.userAgent.indexOf("jsdom") >= 0;
8733
8733
  }) || !1
8734
8734
  ), Mp = (pl || hl) && !Lp;
@@ -8774,7 +8774,7 @@ function zi(e) {
8774
8774
  t[n.name.value] = n;
8775
8775
  }), t;
8776
8776
  }
8777
- function Wi(e, t) {
8777
+ function Qi(e, t) {
8778
8778
  switch (e.kind) {
8779
8779
  case "InlineFragment":
8780
8780
  return e;
@@ -8919,7 +8919,7 @@ var Aa = function(e, t) {
8919
8919
  function Fa(e, t) {
8920
8920
  Cn[e] = t;
8921
8921
  }
8922
- var qp = globalThis.__DEV__ !== !1 ? Wp : void 0, Up = globalThis.__DEV__ !== !1 ? Qp : void 0, Bp = globalThis.__DEV__ !== !1 ? gl : void 0;
8922
+ var qp = globalThis.__DEV__ !== !1 ? Qp : void 0, Up = globalThis.__DEV__ !== !1 ? Wp : void 0, Bp = globalThis.__DEV__ !== !1 ? gl : void 0;
8923
8923
  function zp() {
8924
8924
  var e = {
8925
8925
  parser: 1e3,
@@ -8945,7 +8945,7 @@ function zp() {
8945
8945
  ];
8946
8946
  }));
8947
8947
  }
8948
- function Wp() {
8948
+ function Qp() {
8949
8949
  var e, t, n, r, i;
8950
8950
  if (globalThis.__DEV__ === !1)
8951
8951
  throw new Error("only supported in development mode");
@@ -8964,7 +8964,7 @@ function gl() {
8964
8964
  }
8965
8965
  };
8966
8966
  }
8967
- function Qp() {
8967
+ function Wp() {
8968
8968
  var e = this.config.fragments;
8969
8969
  return k(k({}, gl.apply(this)), { addTypenameDocumentTransform: yl(this.addTypenameTransform), inMemoryCache: {
8970
8970
  executeSelectionSet: mn(this.storeReader.executeSelectionSet),
@@ -9148,7 +9148,7 @@ var sm = [
9148
9148
  return Sr = e, t;
9149
9149
  }
9150
9150
  });
9151
- function Qi(e, t) {
9151
+ function Wi(e, t) {
9152
9152
  if (e.arguments && e.arguments.length) {
9153
9153
  var n = {};
9154
9154
  return e.arguments.forEach(function(r) {
@@ -9173,7 +9173,7 @@ function Jo(e, t, n) {
9173
9173
  return e.__typename;
9174
9174
  if (r)
9175
9175
  for (var s = 0, c = r; s < c.length; s++) {
9176
- var a = c[s], u = Jo(e, Wi(a, n).selectionSet, n);
9176
+ var a = c[s], u = Jo(e, Qi(a, n).selectionSet, n);
9177
9177
  if (typeof u == "string")
9178
9178
  return u;
9179
9179
  }
@@ -9978,14 +9978,14 @@ function Cc(e, t) {
9978
9978
  function za(e, t, n) {
9979
9979
  return t && Cc(e.prototype, t), n && Cc(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
9980
9980
  }
9981
- var Wa = function() {
9981
+ var Qa = function() {
9982
9982
  return typeof Symbol == "function";
9983
- }, Qa = function(e) {
9984
- return Wa() && !!Symbol[e];
9983
+ }, Wa = function(e) {
9984
+ return Qa() && !!Symbol[e];
9985
9985
  }, Ha = function(e) {
9986
- return Qa(e) ? Symbol[e] : "@@" + e;
9986
+ return Wa(e) ? Symbol[e] : "@@" + e;
9987
9987
  };
9988
- Wa() && !Qa("observable") && (Symbol.observable = Symbol("observable"));
9988
+ Qa() && !Wa("observable") && (Symbol.observable = Symbol("observable"));
9989
9989
  var Rm = Ha("iterator"), ea = Ha("observable"), Fl = Ha("species");
9990
9990
  function ki(e, t) {
9991
9991
  var n = e[t];
@@ -10304,7 +10304,7 @@ var Am = /* @__PURE__ */ function() {
10304
10304
  return a.subscribe(s);
10305
10305
  });
10306
10306
  }
10307
- if (Qa("iterator") && (o = ki(r, Rm), o))
10307
+ if (Wa("iterator") && (o = ki(r, Rm), o))
10308
10308
  return new i(function(s) {
10309
10309
  wi(function() {
10310
10310
  if (!s.closed) {
@@ -10347,7 +10347,7 @@ var Am = /* @__PURE__ */ function() {
10347
10347
  }
10348
10348
  }]), e;
10349
10349
  }();
10350
- Wa() && Object.defineProperty(Ue, Symbol("extensions"), {
10350
+ Qa() && Object.defineProperty(Ue, Symbol("extensions"), {
10351
10351
  value: {
10352
10352
  symbol: ea,
10353
10353
  hostReportError: or
@@ -10608,7 +10608,7 @@ var Bl = function(e, t, n) {
10608
10608
  var r = new Error(n);
10609
10609
  throw r.name = "ServerError", r.response = e, r.statusCode = e.status, r.result = t, r;
10610
10610
  };
10611
- function Wm(e) {
10611
+ function Qm(e) {
10612
10612
  for (var t = [
10613
10613
  "query",
10614
10614
  "operationName",
@@ -10622,7 +10622,7 @@ function Wm(e) {
10622
10622
  }
10623
10623
  return e;
10624
10624
  }
10625
- function Qm(e, t) {
10625
+ function Wm(e, t) {
10626
10626
  var n = k({}, e), r = function(o) {
10627
10627
  typeof o == "function" ? n = k(k({}, n), o(n)) : n = k(k({}, n), o);
10628
10628
  }, i = function() {
@@ -10686,7 +10686,7 @@ var Kr = (
10686
10686
  return t(s) ? i.request(s, c) || Ue.of() : o.request(s, c) || Ue.of();
10687
10687
  }), Object.assign(a, { left: i, right: o });
10688
10688
  }, e.execute = function(t, n) {
10689
- return t.request(Qm(n.context, Hm(Wm(n)))) || Ue.of();
10689
+ return t.request(Wm(n.context, Hm(Qm(n)))) || Ue.of();
10690
10690
  }, e.concat = function(t, n) {
10691
10691
  var r = Cr(t);
10692
10692
  if (pi(r))
@@ -10884,7 +10884,7 @@ function sg(e, t) {
10884
10884
  `), C = cg(S.slice(0, O)), v = C["content-type"], v && v.toLowerCase().indexOf("application/json") === -1)
10885
10885
  throw new Error("Unsupported patch content type: application/json is required.");
10886
10886
  if (T = S.slice(O), T) {
10887
- if (x = Wl(e, T), Object.keys(x).length > 1 || "data" in x || "incremental" in x || "errors" in x || "payload" in x)
10887
+ if (x = Ql(e, T), Object.keys(x).length > 1 || "data" in x || "incremental" in x || "errors" in x || "payload" in x)
10888
10888
  if (zm(x)) {
10889
10889
  if (I = {}, "payload" in x) {
10890
10890
  if (Object.keys(x).length === 1 && x.payload === null)
@@ -10930,7 +10930,7 @@ function cg(e) {
10930
10930
  }
10931
10931
  }), t;
10932
10932
  }
10933
- function Wl(e, t) {
10933
+ function Ql(e, t) {
10934
10934
  if (e.status >= 300) {
10935
10935
  var n = function() {
10936
10936
  try {
@@ -10954,7 +10954,7 @@ function ug(e, t) {
10954
10954
  function lg(e) {
10955
10955
  return function(t) {
10956
10956
  return t.text().then(function(n) {
10957
- return Wl(t, n);
10957
+ return Ql(t, n);
10958
10958
  }).then(function(n) {
10959
10959
  return !Array.isArray(n) && !Ic.call(n, "data") && !Ic.call(n, "errors") && Bl(t, n, "Server response was missing for query '".concat(Array.isArray(e) ? e.map(function(r) {
10960
10960
  return r.operationName;
@@ -11066,11 +11066,11 @@ function wg(e, t) {
11066
11066
  var u = s.indexOf("?") === -1 ? "?" : "&", l = s + u + n.join("&") + a;
11067
11067
  return { newURI: l };
11068
11068
  }
11069
- var Rc = Wt(function() {
11069
+ var Rc = Qt(function() {
11070
11070
  return fetch;
11071
11071
  }), Eg = function(e) {
11072
11072
  e === void 0 && (e = {});
11073
- var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, o = i === void 0 ? mg : i, a = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, d = Qt(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
11073
+ var t = e.uri, n = t === void 0 ? "/graphql" : t, r = e.fetch, i = e.print, o = i === void 0 ? mg : i, a = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, d = Wt(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
11074
11074
  globalThis.__DEV__ !== !1 && yg(r || Rc);
11075
11075
  var f = {
11076
11076
  http: { includeExtensions: a, preserveHeaderCase: s },
@@ -11122,7 +11122,7 @@ var Rc = Wt(function() {
11122
11122
  return Io(Z);
11123
11123
  }
11124
11124
  return new Ue(function(Z) {
11125
- var R = r || Wt(function() {
11125
+ var R = r || Qt(function() {
11126
11126
  return fetch;
11127
11127
  }) || Rc, A = Z.next.bind(Z);
11128
11128
  return R(w, F).then(function(Y) {
@@ -11258,8 +11258,8 @@ function Fc(e, t) {
11258
11258
  aa.set(e, n = /* @__PURE__ */ new Set());
11259
11259
  return n.add(t), !1;
11260
11260
  }
11261
- function Ql(e, t, n, r) {
11262
- var i = t.data, o = Qt(t, ["data"]), a = n.data, s = Qt(n, ["data"]);
11261
+ function Wl(e, t, n, r) {
11262
+ var i = t.data, o = Wt(t, ["data"]), a = n.data, s = Wt(n, ["data"]);
11263
11263
  return Ve(o, s) && xi(Yr(e).selectionSet, i, a, {
11264
11264
  fragmentMap: zi(Hi(e)),
11265
11265
  variables: r
@@ -11270,7 +11270,7 @@ function xi(e, t, n, r) {
11270
11270
  return !0;
11271
11271
  var i = /* @__PURE__ */ new Set();
11272
11272
  return e.selections.every(function(o) {
11273
- if (i.has(o) || (i.add(o), !Qr(o, r.variables)) || jc(o))
11273
+ if (i.has(o) || (i.add(o), !Wr(o, r.variables)) || jc(o))
11274
11274
  return !0;
11275
11275
  if (yn(o)) {
11276
11276
  var a = vn(o), s = t && t[a], c = n && n[a], u = o.selectionSet;
@@ -11290,7 +11290,7 @@ function xi(e, t, n, r) {
11290
11290
  }
11291
11291
  return xi(u, s, c, r);
11292
11292
  } else {
11293
- var w = Wi(o, r.fragmentMap);
11293
+ var w = Qi(o, r.fragmentMap);
11294
11294
  if (w)
11295
11295
  return jc(w) ? !0 : xi(
11296
11296
  w.selectionSet,
@@ -11339,7 +11339,7 @@ var Hl = (
11339
11339
  }, e.prototype.readQuery = function(t, n) {
11340
11340
  return n === void 0 && (n = !!t.optimistic), this.read(k(k({}, t), { rootId: t.id || "ROOT_QUERY", optimistic: n }));
11341
11341
  }, e.prototype.watchFragment = function(t) {
11342
- var n = this, r = t.fragment, i = t.fragmentName, o = t.from, a = t.optimistic, s = a === void 0 ? !0 : a, c = Qt(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(r, i), l = k(k({}, c), { returnPartialData: !0, id: (
11342
+ var n = this, r = t.fragment, i = t.fragmentName, o = t.from, a = t.optimistic, s = a === void 0 ? !0 : a, c = Wt(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(r, i), l = k(k({}, c), { returnPartialData: !0, id: (
11343
11343
  // While our TypeScript types do not allow for `undefined` as a valid
11344
11344
  // `from`, its possible `useFragment` gives us an `undefined` since it
11345
11345
  // calls` cache.identify` and provides that value to `from`. We are
@@ -11352,7 +11352,7 @@ var Hl = (
11352
11352
  return n.watch(k(k({}, l), { immediate: !0, callback: function(m) {
11353
11353
  if (
11354
11354
  // Always ensure we deliver the first result
11355
- !(d && Ql(u, { data: d == null ? void 0 : d.result }, { data: m.result }))
11355
+ !(d && Wl(u, { data: d == null ? void 0 : d.result }, { data: m.result }))
11356
11356
  ) {
11357
11357
  var w = {
11358
11358
  data: m.result,
@@ -11367,13 +11367,13 @@ var Hl = (
11367
11367
  }, e.prototype.readFragment = function(t, n) {
11368
11368
  return n === void 0 && (n = !!t.optimistic), this.read(k(k({}, t), { query: this.getFragmentDoc(t.fragment, t.fragmentName), rootId: t.id, optimistic: n }));
11369
11369
  }, e.prototype.writeQuery = function(t) {
11370
- var n = t.id, r = t.data, i = Qt(t, ["id", "data"]);
11370
+ var n = t.id, r = t.data, i = Wt(t, ["id", "data"]);
11371
11371
  return this.write(Object.assign(i, {
11372
11372
  dataId: n || "ROOT_QUERY",
11373
11373
  result: r
11374
11374
  }));
11375
11375
  }, e.prototype.writeFragment = function(t) {
11376
- var n = t.id, r = t.data, i = t.fragment, o = t.fragmentName, a = Qt(t, ["id", "data", "fragment", "fragmentName"]);
11376
+ var n = t.id, r = t.data, i = t.fragment, o = t.fragmentName, a = Wt(t, ["id", "data", "fragment", "fragmentName"]);
11377
11377
  return this.write(Object.assign(a, {
11378
11378
  query: this.getFragmentDoc(i, o),
11379
11379
  dataId: n,
@@ -11449,7 +11449,7 @@ function ca(e, t, n) {
11449
11449
  return Ke(t) ? Xe(t) ? t.every(function(r) {
11450
11450
  return ca(e, r, n);
11451
11451
  }) : e.selections.every(function(r) {
11452
- if (yn(r) && Qr(r, n)) {
11452
+ if (yn(r) && Wr(r, n)) {
11453
11453
  var i = vn(r);
11454
11454
  return dt.call(t, i) && (!r.selectionSet || ca(r.selectionSet, t[i], n));
11455
11455
  }
@@ -11616,7 +11616,7 @@ var Oi = /* @__PURE__ */ Object.create(null), Ro = function() {
11616
11616
  if (Object.keys(this.data).forEach(function(o) {
11617
11617
  t && dt.call(t, o) || n.delete(o);
11618
11618
  }), t) {
11619
- var r = t.__META, i = Qt(t, ["__META"]);
11619
+ var r = t.__META, i = Wt(t, ["__META"]);
11620
11620
  Object.keys(i).forEach(function(o) {
11621
11621
  n.merge(o, i[o]);
11622
11622
  }), r && r.extraRootIds.forEach(this.retain, this);
@@ -11937,7 +11937,7 @@ var Pg = (
11937
11937
  var E = new Set(r.selections);
11938
11938
  E.forEach(function(v) {
11939
11939
  var T, x;
11940
- if (Qr(v, s))
11940
+ if (Wr(v, s))
11941
11941
  if (yn(v)) {
11942
11942
  var I = c.readField({
11943
11943
  fieldName: v.name.value,
@@ -11957,7 +11957,7 @@ var Pg = (
11957
11957
  context: a
11958
11958
  }), P)) : a.canonizeResults && (I = n.canon.pass(I)), I !== void 0 && d.push((x = {}, x[P] = I, x));
11959
11959
  } else {
11960
- var F = Wi(v, a.lookupFragment);
11960
+ var F = Qi(v, a.lookupFragment);
11961
11961
  if (!F && v.kind === K.FRAGMENT_SPREAD)
11962
11962
  throw St(9, v.name.value);
11963
11963
  F && c.fragmentMatches(F, l) && F.selectionSet.selections.forEach(E.add, E);
@@ -12065,12 +12065,12 @@ function jg(e) {
12065
12065
  function Vg(e) {
12066
12066
  e.broadcastWatches && e.broadcastWatches();
12067
12067
  }
12068
- var Wc = /* @__PURE__ */ Object.create(null);
12068
+ var Qc = /* @__PURE__ */ Object.create(null);
12069
12069
  function Ka(e) {
12070
12070
  var t = JSON.stringify(e);
12071
- return Wc[t] || (Wc[t] = /* @__PURE__ */ Object.create(null));
12071
+ return Qc[t] || (Qc[t] = /* @__PURE__ */ Object.create(null));
12072
12072
  }
12073
- function Qc(e) {
12073
+ function Wc(e) {
12074
12074
  var t = Ka(e);
12075
12075
  return t.keyFieldsFn || (t.keyFieldsFn = function(n, r) {
12076
12076
  var i = function(a, s) {
@@ -12098,7 +12098,7 @@ function Hc(e) {
12098
12098
  if (i && At(i.directives)) {
12099
12099
  var f = l.slice(1), m = i.directives.find(function(O) {
12100
12100
  return O.name.value === f;
12101
- }), w = m && Qi(m, o);
12101
+ }), w = m && Wi(m, o);
12102
12102
  return w && nr(
12103
12103
  w,
12104
12104
  // If keyPath.length === 1, this code calls extractKeyPath with an
@@ -12163,7 +12163,7 @@ function rf(e) {
12163
12163
  }) : e;
12164
12164
  }
12165
12165
  function ua(e) {
12166
- return e.args !== void 0 ? e.args : e.field ? Qi(e.field, e.variables) : null;
12166
+ return e.args !== void 0 ? e.args : e.field ? Wi(e.field, e.variables) : null;
12167
12167
  }
12168
12168
  var $g = function() {
12169
12169
  }, Gc = function(e, t) {
@@ -12192,7 +12192,7 @@ var $g = function() {
12192
12192
  } }), c, u = o && this.getTypePolicy(o), l = u && u.keyFn || this.config.dataIdFromObject; l; ) {
12193
12193
  var d = l(k(k({}, t), a), s);
12194
12194
  if (Xe(d))
12195
- l = Qc(d);
12195
+ l = Wc(d);
12196
12196
  else {
12197
12197
  c = d;
12198
12198
  break;
@@ -12202,7 +12202,7 @@ var $g = function() {
12202
12202
  }, e.prototype.addTypePolicies = function(t) {
12203
12203
  var n = this;
12204
12204
  Object.keys(t).forEach(function(r) {
12205
- var i = t[r], o = i.queryType, a = i.mutationType, s = i.subscriptionType, c = Qt(i, ["queryType", "mutationType", "subscriptionType"]);
12205
+ var i = t[r], o = i.queryType, a = i.mutationType, s = i.subscriptionType, c = Wt(i, ["queryType", "mutationType", "subscriptionType"]);
12206
12206
  o && n.setRootTypename("Query", r), a && n.setRootTypename("Mutation", r), s && n.setRootTypename("Subscription", r), dt.call(n.toBeAdded, r) ? n.toBeAdded[r].push(c) : n.toBeAdded[r] = [c];
12207
12207
  });
12208
12208
  }, e.prototype.updateTypePolicy = function(t, n) {
@@ -12211,7 +12211,7 @@ var $g = function() {
12211
12211
  c.merge = typeof u == "function" ? u : u === !0 ? Yc : u === !1 ? Kc : c.merge;
12212
12212
  }
12213
12213
  s(i, n.merge), i.keyFn = // Pass false to disable normalization for this typename.
12214
- o === !1 ? $g : Xe(o) ? Qc(o) : typeof o == "function" ? o : i.keyFn, a && Object.keys(a).forEach(function(c) {
12214
+ o === !1 ? $g : Xe(o) ? Wc(o) : typeof o == "function" ? o : i.keyFn, a && Object.keys(a).forEach(function(c) {
12215
12215
  var u = r.getFieldPolicy(t, c, !0), l = a[c];
12216
12216
  if (typeof l == "function")
12217
12217
  u.read = l;
@@ -12250,7 +12250,7 @@ var $g = function() {
12250
12250
  });
12251
12251
  }
12252
12252
  })), i && i.size && i.forEach(function(a) {
12253
- var s = n.getTypePolicy(a), c = s.fields, u = Qt(s, ["fields"]);
12253
+ var s = n.getTypePolicy(a), c = s.fields, u = Wt(s, ["fields"]);
12254
12254
  Object.assign(r, u), Object.assign(r.fields, c);
12255
12255
  });
12256
12256
  }
@@ -12573,7 +12573,7 @@ var Ug = (
12573
12573
  l.deferred
12574
12574
  );
12575
12575
  d.visited || (d.visited = !0, u.selections.forEach(function(f) {
12576
- if (Qr(f, r.variables)) {
12576
+ if (Wr(f, r.variables)) {
12577
12577
  var m = l.clientOnly, w = l.deferred;
12578
12578
  if (
12579
12579
  // Since the presence of @client or @defer on this field can only
@@ -12582,7 +12582,7 @@ var Ug = (
12582
12582
  !(m && w) && At(f.directives) && f.directives.forEach(function(O) {
12583
12583
  var C = O.name.value;
12584
12584
  if (C === "client" && (m = !0), C === "defer") {
12585
- var v = Qi(O, r.variables);
12585
+ var v = Wi(O, r.variables);
12586
12586
  (!v || v.if !== !1) && (w = !0);
12587
12587
  }
12588
12588
  }), yn(f)
@@ -12590,7 +12590,7 @@ var Ug = (
12590
12590
  var E = o.get(f);
12591
12591
  E && (m = m && E.clientOnly, w = w && E.deferred), o.set(f, No(r, m, w));
12592
12592
  } else {
12593
- var S = Wi(f, r.lookupFragment);
12593
+ var S = Qi(f, r.lookupFragment);
12594
12594
  if (!S && f.kind === K.FRAGMENT_SPREAD)
12595
12595
  throw St(13, f.name.value);
12596
12596
  S && a.fragmentMatches(S, i, n, r.variables) && c(S.selectionSet, No(r, m, w));
@@ -12860,7 +12860,7 @@ var tu = Object.assign, zg = Object.hasOwnProperty, fa = (
12860
12860
  var r = n.queryManager, i = n.queryInfo, o = n.options, a = e.call(this, function(S) {
12861
12861
  try {
12862
12862
  var O = S._subscription._observer;
12863
- O && !O.error && (O.error = Wg);
12863
+ O && !O.error && (O.error = Qg);
12864
12864
  } catch {
12865
12865
  }
12866
12866
  var C = !a.observers.size;
@@ -12941,7 +12941,7 @@ var tu = Object.assign, zg = Object.hasOwnProperty, fa = (
12941
12941
  }, t.prototype.isDifferentFromLastResult = function(n, r) {
12942
12942
  if (!this.last)
12943
12943
  return !0;
12944
- var i = this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective ? !Ql(this.query, this.last.result, n, this.variables) : !Ve(this.last.result, n);
12944
+ var i = this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective ? !Wl(this.query, this.last.result, n, this.variables) : !Ve(this.last.result, n);
12945
12945
  return i || r && !Ve(this.last.variables, r);
12946
12946
  }, t.prototype.getLast = function(n, r) {
12947
12947
  var i = this.last;
@@ -13204,7 +13204,7 @@ function cf(e) {
13204
13204
  }
13205
13205
  }) : e.reobserve();
13206
13206
  }
13207
- function Wg(e) {
13207
+ function Qg(e) {
13208
13208
  globalThis.__DEV__ !== !1 && ie.error(24, e.message, e.stack);
13209
13209
  }
13210
13210
  function uf(e) {
@@ -13365,7 +13365,7 @@ function ha(e, t) {
13365
13365
  var n = t === "ignore" || t === "all", r = !Ei(e);
13366
13366
  return !r && n && e.data && (r = !0), r;
13367
13367
  }
13368
- var Qg = Object.prototype.hasOwnProperty, ru = /* @__PURE__ */ Object.create(null), Hg = (
13368
+ var Wg = Object.prototype.hasOwnProperty, ru = /* @__PURE__ */ Object.create(null), Hg = (
13369
13369
  /** @class */
13370
13370
  function() {
13371
13371
  function e(t) {
@@ -13488,7 +13488,7 @@ var Qg = Object.prototype.hasOwnProperty, ru = /* @__PURE__ */ Object.create(nul
13488
13488
  var u = t.updateQueries;
13489
13489
  u && this.queries.forEach(function(d, f) {
13490
13490
  var m = d.observableQuery, w = m && m.queryName;
13491
- if (!(!w || !Qg.call(u, w))) {
13491
+ if (!(!w || !Wg.call(u, w))) {
13492
13492
  var E = u[w], S = r.queries.get(f), O = S.document, C = S.variables, v = n.diff({
13493
13493
  query: O,
13494
13494
  variables: C,
@@ -14096,7 +14096,7 @@ var Qg = Object.prototype.hasOwnProperty, ru = /* @__PURE__ */ Object.create(nul
14096
14096
  return !n && !i.selectionsToResolve.has(f) ? [
14097
14097
  2
14098
14098
  /*return*/
14099
- ] : Qr(f, s) ? yn(f) ? [2, this.resolveField(f, n, r, i).then(function(S) {
14099
+ ] : Wr(f, s) ? yn(f) ? [2, this.resolveField(f, n, r, i).then(function(S) {
14100
14100
  var O;
14101
14101
  typeof S < "u" && c.push((O = {}, O[vn(f)] = S, O));
14102
14102
  })] : (cm(f) ? m = f : (m = o[f.name.value], ie(m, 18, f.name.value)), m && m.typeCondition && (w = m.typeCondition.name.value, i.fragmentMatcher(r, w, a)) ? [2, this.resolveSelectionSet(m.selectionSet, n, r, i).then(function(S) {
@@ -14124,7 +14124,7 @@ var Qg = Object.prototype.hasOwnProperty, ru = /* @__PURE__ */ Object.create(nul
14124
14124
  // set cacheSlot to the current cache instance.
14125
14125
  Ya.withValue(this.cache, m, [
14126
14126
  r,
14127
- Qi(t, o),
14127
+ Wi(t, o),
14128
14128
  i.context,
14129
14129
  { field: t, fragmentMap: i.fragmentMap }
14130
14130
  ])
@@ -14719,7 +14719,7 @@ function bf(e, t, n, r) {
14719
14719
  n === void 0 && (n = {});
14720
14720
  var i = n.skip;
14721
14721
  n.ssr, n.onCompleted, n.onError;
14722
- var o = n.defaultOptions, a = Qt(n, ["skip", "ssr", "onCompleted", "onError", "defaultOptions"]);
14722
+ var o = n.defaultOptions, a = Wt(n, ["skip", "ssr", "onCompleted", "onError", "defaultOptions"]);
14723
14723
  return function(s) {
14724
14724
  var c = Object.assign(a, { query: t });
14725
14725
  return r && (c.fetchPolicy === "network-only" || c.fetchPolicy === "cache-and-network") && (c.fetchPolicy = "cache-first"), c.variables || (c.variables = {}), i ? (c.initialFetchPolicy = c.initialFetchPolicy || c.fetchPolicy || ma(o, e.defaultOptions), c.fetchPolicy = "standby") : c.fetchPolicy || (c.fetchPolicy = (s == null ? void 0 : s.options.initialFetchPolicy) || ma(o, e.defaultOptions)), c;
@@ -14757,7 +14757,7 @@ function bv(e) {
14757
14757
  function Mi(e, t, n, r) {
14758
14758
  var i = e.data;
14759
14759
  e.partial;
14760
- var o = Qt(e, ["data", "partial"]), a = k(k({ data: i }, o), { client: r, observable: n, variables: n.variables, called: e !== wf && e !== Ef, previousData: t });
14760
+ var o = Wt(e, ["data", "partial"]), a = k(k({ data: i }, o), { client: r, observable: n, variables: n.variables, called: e !== wf && e !== Ef, previousData: t });
14761
14761
  return a;
14762
14762
  }
14763
14763
  function wv(e, t, n) {
@@ -14889,11 +14889,11 @@ query LD($assembly: String!, $snpids: [String!]) {
14889
14889
  `, Cv = {
14890
14890
  titleSize: 12,
14891
14891
  ldThreshold: 0.7,
14892
- displayMode: Qe.FULL,
14892
+ displayMode: We.FULL,
14893
14893
  canDrag: !0
14894
14894
  };
14895
14895
  function _v(e) {
14896
- var c, u;
14896
+ var c, u, l;
14897
14897
  const t = Me(Ht), n = {
14898
14898
  ...e,
14899
14899
  trackType: J.LDTRACK,
@@ -14903,18 +14903,24 @@ function _v(e) {
14903
14903
  assembly: "GRCh38",
14904
14904
  snpids: [e.anchor]
14905
14905
  }
14906
- }), o = (l) => {
14907
- t({ type: pe.UPDATE_PROPS, id: e.id || "", props: { anchor: l.id } });
14908
- }, a = oc.map((l) => {
14909
- var d;
14910
- return {
14911
- ld: ((d = i.data) == null ? void 0 : d.snpQuery[0][`${l.population}_${l.subpopulation || ""}_ld`]) || []
14912
- };
14913
- }), s = { snps: ((c = e.data) == null ? void 0 : c.snps) || [], ld: a && ((u = a[0]) == null ? void 0 : u.ld) || [] };
14906
+ }), o = (d) => {
14907
+ t({ type: pe.UPDATE_PROPS, id: e.id || "", props: { anchor: d.id } });
14908
+ };
14909
+ let a = [];
14910
+ if (i.data) {
14911
+ if (i.data.snpQuery.length === 0) return;
14912
+ a = oc.map((d) => {
14913
+ var f;
14914
+ return {
14915
+ ld: ((f = i.data) == null ? void 0 : f.snpQuery[0][`${d.population}_${d.subpopulation || ""}_ld`]) || []
14916
+ };
14917
+ });
14918
+ }
14919
+ const s = { snps: ((c = e.data) == null ? void 0 : c.snps) || [], ld: a && ((u = a[0]) == null ? void 0 : u.ld) || ((l = e.data) == null ? void 0 : l.ld) || [] };
14914
14920
  switch (e.displayMode) {
14915
- case Qe.FULL:
14916
- return /* @__PURE__ */ b(ct, { ...n, loading: i.loading, trackType: J.LDTRACK, displayMode: e.displayMode, children: /* @__PURE__ */ b(R0, { ...e, onVariantMouseOver: (l) => {
14917
- o(l), e.onVariantMouseOver && e.onVariantMouseOver(l);
14921
+ case We.FULL:
14922
+ return /* @__PURE__ */ b(ct, { ...n, loading: s.snps.length === 0, trackType: J.LDTRACK, displayMode: e.displayMode, children: /* @__PURE__ */ b(R0, { ...e, onVariantMouseOver: (d) => {
14923
+ o(d), e.onVariantMouseOver && e.onVariantMouseOver(d);
14918
14924
  }, data: s }) });
14919
14925
  default:
14920
14926
  return console.warn(`Display mode "${e.displayMode}" not supported on BigWig`), /* @__PURE__ */ b(ct, { ...n, children: /* @__PURE__ */ b(
@@ -14927,7 +14933,7 @@ function _v(e) {
14927
14933
  ) });
14928
14934
  }
14929
14935
  }
14930
- const Wy = (e) => {
14936
+ const Qy = (e) => {
14931
14937
  const t = e.width < 1e3 ? e.width / 8 : 150, n = {
14932
14938
  ...e,
14933
14939
  height: 0,
@@ -15210,7 +15216,7 @@ function Of(e, t) {
15210
15216
  return i;
15211
15217
  }
15212
15218
  function ga(e) {
15213
- var t = We(e), n = We(function(r) {
15219
+ var t = Qe(e), n = Qe(function(r) {
15214
15220
  t.current && t.current(r);
15215
15221
  });
15216
15222
  return t.current = e, n.current;
@@ -15230,7 +15236,7 @@ var zr = function(e, t, n) {
15230
15236
  }, mu = function(e) {
15231
15237
  !Ar(e) && e.preventDefault();
15232
15238
  }, Sf = Oe.memo(function(e) {
15233
- var t = e.onMove, n = e.onKey, r = Of(e, ["onMove", "onKey"]), i = We(null), o = ga(t), a = ga(n), s = We(null), c = We(!1), u = Le(function() {
15239
+ var t = e.onMove, n = e.onKey, r = Of(e, ["onMove", "onKey"]), i = Qe(null), o = ga(t), a = ga(n), s = Qe(null), c = Qe(!1), u = Le(function() {
15234
15240
  var m = function(S) {
15235
15241
  mu(S), (Ar(S) ? S.touches.length > 0 : S.buttons > 0) && i.current ? o(pu(i.current, S, s.current)) : E(!1);
15236
15242
  }, w = function() {
@@ -15268,7 +15274,7 @@ var zr = function(e, t, n) {
15268
15274
  }, bt = function(e, t, n) {
15269
15275
  return t === void 0 && (t = 0), n === void 0 && (n = Math.pow(10, t)), Math.round(n * e) / n;
15270
15276
  }, $v = function(e) {
15271
- return Wv(ya(e));
15277
+ return Qv(ya(e));
15272
15278
  }, ya = function(e) {
15273
15279
  return e[0] === "#" && (e = e.substring(1)), e.length < 6 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? bt(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16), a: e.length === 8 ? bt(parseInt(e.substring(6, 8), 16) / 255, 2) : 1 };
15274
15280
  }, qv = function(e) {
@@ -15290,10 +15296,10 @@ var zr = function(e, t, n) {
15290
15296
  }, zv = function(e) {
15291
15297
  var t = e.r, n = e.g, r = e.b, i = e.a, o = i < 1 ? mi(bt(255 * i)) : "";
15292
15298
  return "#" + mi(t) + mi(n) + mi(r) + o;
15293
- }, Wv = function(e) {
15299
+ }, Qv = function(e) {
15294
15300
  var t = e.r, n = e.g, r = e.b, i = e.a, o = Math.max(t, n, r), a = o - Math.min(t, n, r), s = a ? o === t ? (n - r) / a : o === n ? 2 + (r - t) / a : 4 + (t - n) / a : 0;
15295
15301
  return { h: bt(60 * (s < 0 ? s + 6 : s)), s: bt(o ? a / o * 100 : 0), v: bt(o / 255 * 100), a: i };
15296
- }, Qv = Oe.memo(function(e) {
15302
+ }, Wv = Oe.memo(function(e) {
15297
15303
  var t = e.hue, n = e.onChange, r = ts(["react-colorful__hue", e.className]);
15298
15304
  return Oe.createElement("div", { className: r }, Oe.createElement(Sf, { onMove: function(i) {
15299
15305
  n({ h: 360 * i.left });
@@ -15317,7 +15323,7 @@ var zr = function(e, t, n) {
15317
15323
  function Yv(e, t, n) {
15318
15324
  var r = ga(n), i = ue(function() {
15319
15325
  return e.toHsva(t);
15320
- }), o = i[0], a = i[1], s = We({ color: t, hsva: o });
15326
+ }), o = i[0], a = i[1], s = Qe({ color: t, hsva: o });
15321
15327
  le(function() {
15322
15328
  if (!e.equal(t, s.current.color)) {
15323
15329
  var u = e.toHsva(t);
@@ -15347,10 +15353,10 @@ var Kv = typeof window < "u" ? yh : le, Xv = function() {
15347
15353
  }
15348
15354
  }, []);
15349
15355
  }, Zv = function(e) {
15350
- var t = e.className, n = e.colorModel, r = e.color, i = r === void 0 ? n.defaultColor : r, o = e.onChange, a = Of(e, ["className", "colorModel", "color", "onChange"]), s = We(null);
15356
+ var t = e.className, n = e.colorModel, r = e.color, i = r === void 0 ? n.defaultColor : r, o = e.onChange, a = Of(e, ["className", "colorModel", "color", "onChange"]), s = Qe(null);
15351
15357
  Jv(s);
15352
15358
  var c = Yv(n, i, o), u = c[0], l = c[1], d = ts(["react-colorful", t]);
15353
- return Oe.createElement("div", Zi({}, a, { ref: s, className: d }), Oe.createElement(Hv, { hsva: u, onChange: l }), Oe.createElement(Qv, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
15359
+ return Oe.createElement("div", Zi({}, a, { ref: s, className: d }), Oe.createElement(Hv, { hsva: u, onChange: l }), Oe.createElement(Wv, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
15354
15360
  }, ey = { defaultColor: "000", toHsva: $v, fromHsva: function(e) {
15355
15361
  return qv({ h: e.h, s: e.s, v: e.v, a: 1 });
15356
15362
  }, equal: Gv }, ty = function(e) {
@@ -15420,7 +15426,7 @@ function oy() {
15420
15426
  document.removeEventListener("keydown", l);
15421
15427
  };
15422
15428
  }, [t]);
15423
- const u = We(null);
15429
+ const u = Qe(null);
15424
15430
  return e ? wa(
15425
15431
  /* @__PURE__ */ b("div", { className: "modal", children: /* @__PURE__ */ b(Ci, { nodeRef: u, handle: ".header", onStart: s, onStop: c, children: /* @__PURE__ */ B("div", { ref: u, className: "content", style: { ...Rv, position: "absolute", top: e == null ? void 0 : e.mouseY, left: e == null ? void 0 : e.mouseX, zIndex: 1400 }, children: [
15426
15432
  /* @__PURE__ */ B("div", { className: "header", style: { backgroundColor: o.color || "transparent", color: vu(o.color || "transparent"), cursor: n ? "grabbing" : "grab", display: "flex", flexDirection: "row", justifyContent: "flex-start", alignItems: "center" }, children: [
@@ -15860,17 +15866,22 @@ function wy({ browserState: e, browserDispatch: t }) {
15860
15866
  if (w || I || C || j || Te) return;
15861
15867
  let G = 0;
15862
15868
  e.tracks.forEach(($) => {
15863
- if ($.trackType === J.BIGWIG || $.trackType === J.BIGBED)
15864
- E ? t({
15865
- type: pe.UPDATE_TRACK,
15866
- id: $.id,
15867
- track: { error: E.message || "" }
15868
- }) : m && t({
15869
- type: pe.UPDATE_TRACK,
15870
- id: $.id,
15871
- track: { data: m.bigRequests[G++].data }
15872
- });
15873
- else if ($.trackType === J.TRANSCRIPT)
15869
+ if ($.trackType === J.BIGWIG || $.trackType === J.BIGBED) {
15870
+ if (E)
15871
+ t({
15872
+ type: pe.UPDATE_TRACK,
15873
+ id: $.id,
15874
+ track: { error: E.message || "" }
15875
+ });
15876
+ else if (m) {
15877
+ if (m.bigRequests.length === 0) return;
15878
+ t({
15879
+ type: pe.UPDATE_TRACK,
15880
+ id: $.id,
15881
+ track: { data: m.bigRequests[G++].data }
15882
+ });
15883
+ }
15884
+ } else if ($.trackType === J.TRANSCRIPT)
15874
15885
  P ? t({
15875
15886
  type: pe.UPDATE_TRACK,
15876
15887
  id: $.id,
@@ -15948,17 +15959,17 @@ function bu(e, t) {
15948
15959
  const n = (e.start - t.domain.start) / (t.domain.end - t.domain.start) * t.preRenderedWidth, r = (e.end - t.domain.start) / (t.domain.end - t.domain.start) * t.preRenderedWidth;
15949
15960
  return { start: n, end: r };
15950
15961
  }
15951
- function Qy({ children: e, width: t, browserState: n, browserDispatch: r }) {
15952
- const i = We(null), [o, a] = ue(0), s = Iv(), c = 80, u = 100, l = (w) => {
15962
+ function Wy({ children: e, width: t, browserState: n, browserDispatch: r }) {
15963
+ const i = Qe(null), [o, a] = ue(0), s = Iv(), c = 80, u = 100, l = (w) => {
15953
15964
  m(1), r({ type: pe.SET_LOADING }), r({ type: pe.SET_DOMAIN, domain: w }), m(0);
15954
15965
  }, d = (w, E) => {
15955
- r({ type: pe.UPDATE_TRACK, id: w, track: { displayMode: E } }), E === Qe.HIDE && r({ type: pe.DELETE_TRACK, id: w });
15966
+ r({ type: pe.UPDATE_TRACK, id: w, track: { displayMode: E } }), E === We.HIDE && r({ type: pe.DELETE_TRACK, id: w });
15956
15967
  };
15957
15968
  Mv(() => {
15958
15969
  const w = n.tracks.reduce((E, S) => E + (S.actualHeight ?? S.height), 0);
15959
15970
  a(w);
15960
15971
  }, [n.tracks, n.tracks.length]), n.height = c + o + u, n.menuHeight = u, n.marginSize = n.width < 1e3 ? n.width / 8 : 150;
15961
- const f = We(!1);
15972
+ const f = Qe(!1);
15962
15973
  le(() => {
15963
15974
  var E;
15964
15975
  if (f.current) return;
@@ -15985,7 +15996,7 @@ function Qy({ children: e, width: t, browserState: n, browserDispatch: r }) {
15985
15996
  function xy({ track: e, browserState: t, svgRef: n }) {
15986
15997
  return Le(() => {
15987
15998
  const o = (e.props || {}).transform;
15988
- if (e.displayMode === Qe.HIDE)
15999
+ if (e.displayMode === We.HIDE)
15989
16000
  return null;
15990
16001
  const { width: a, domain: s } = t;
15991
16002
  return /* @__PURE__ */ b("g", { id: "swap-track-" + e.id, transform: o, children: (() => {
@@ -16363,10 +16374,10 @@ export {
16363
16374
  Cv as DefaultLD,
16364
16375
  _0 as DefaultMotif,
16365
16376
  s0 as DefaultTranscript,
16366
- Qe as DisplayMode,
16377
+ We as DisplayMode,
16367
16378
  Gy as GQLCytobands,
16368
16379
  Hy as GQLWrapper,
16369
- Qy as GenomeBrowser,
16380
+ Wy as GenomeBrowser,
16370
16381
  S0 as Importance,
16371
16382
  _v as LD,
16372
16383
  k0 as Motif,
@@ -16375,6 +16386,6 @@ export {
16375
16386
  qo as TranscriptHumanVersion,
16376
16387
  $u as TranscriptMouseVersion,
16377
16388
  qy as TranscriptTrack,
16378
- Wy as useBrowserState
16389
+ Qy as useBrowserState
16379
16390
  };
16380
16391
  //# sourceMappingURL=gbc.es.js.map