@weng-lab/genomebrowser 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import me, { createContext as uu, useContext as St, useMemo as z, useEffect as de, useRef as Ee, useState as ae, useCallback as $e, createElement as Oi, Fragment as lu, useLayoutEffect as fu } from "react";
1
+ import me, { createContext as uu, useContext as St, useMemo as z, useEffect as de, useRef as Ee, useState as ae, useCallback as Ve, createElement as Oi, Fragment as lu, useLayoutEffect as fu } from "react";
2
2
  import sa, { createPortal as aa } from "react-dom";
3
3
  function hu(e, t) {
4
4
  for (var r = 0; r < t.length; r++) {
@@ -321,7 +321,7 @@ var O = function() {
321
321
  return t;
322
322
  }, O.apply(this, arguments);
323
323
  };
324
- function Be(e, t) {
324
+ function $e(e, t) {
325
325
  var r = {};
326
326
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
327
327
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -452,19 +452,19 @@ function Lr(e) {
452
452
  e.debug = Lr("debug"), e.log = Lr("log"), e.warn = Lr("warn"), e.error = Lr("error");
453
453
  })(yt || (yt = {}));
454
454
  var Ci = "3.14.0";
455
- function Ve(e) {
455
+ function qe(e) {
456
456
  try {
457
457
  return e();
458
458
  } catch {
459
459
  }
460
460
  }
461
- const Yr = Ve(function() {
461
+ const Yr = qe(function() {
462
462
  return globalThis;
463
- }) || Ve(function() {
463
+ }) || qe(function() {
464
464
  return window;
465
- }) || Ve(function() {
465
+ }) || qe(function() {
466
466
  return self;
467
- }) || Ve(function() {
467
+ }) || qe(function() {
468
468
  return global;
469
469
  }) || // We don't expect the Function constructor ever to be invoked at runtime, as
470
470
  // long as at least one of globalThis, window, self, or global is defined, so
@@ -472,8 +472,8 @@ const Yr = Ve(function() {
472
472
  // detect syntactic usage of the Function constructor. If you think you can
473
473
  // improve your static analysis to detect this obfuscation, think again. This
474
474
  // is an arms race you cannot win, at least not in JavaScript.
475
- Ve(function() {
476
- return Ve.constructor("return this")();
475
+ qe(function() {
476
+ return qe.constructor("return this")();
477
477
  });
478
478
  var go = /* @__PURE__ */ new Map();
479
479
  function Un(e) {
@@ -2880,7 +2880,7 @@ const nl = 80, il = {
2880
2880
  leave: ({ variable: e, type: t, defaultValue: r, directives: n }) => e + ": " + t + ne(" = ", r) + ne(" ", Q(n, " "))
2881
2881
  },
2882
2882
  SelectionSet: {
2883
- leave: ({ selections: e }) => qe(e)
2883
+ leave: ({ selections: e }) => Fe(e)
2884
2884
  },
2885
2885
  Field: {
2886
2886
  leave({ alias: e, name: t, arguments: r, directives: n, selectionSet: i }) {
@@ -2961,7 +2961,7 @@ const nl = 80, il = {
2961
2961
  // Type System Definitions
2962
2962
  SchemaDefinition: {
2963
2963
  leave: ({ description: e, directives: t, operationTypes: r }) => ne("", e, `
2964
- `) + Q(["schema", Q(t, " "), qe(r)], " ")
2964
+ `) + Q(["schema", Q(t, " "), Fe(r)], " ")
2965
2965
  },
2966
2966
  OperationTypeDefinition: {
2967
2967
  leave: ({ operation: e, type: t }) => e + ": " + t
@@ -2978,7 +2978,7 @@ const nl = 80, il = {
2978
2978
  t,
2979
2979
  ne("implements ", Q(r, " & ")),
2980
2980
  Q(n, " "),
2981
- qe(i)
2981
+ Fe(i)
2982
2982
  ],
2983
2983
  " "
2984
2984
  )
@@ -3005,7 +3005,7 @@ const nl = 80, il = {
3005
3005
  t,
3006
3006
  ne("implements ", Q(r, " & ")),
3007
3007
  Q(n, " "),
3008
- qe(i)
3008
+ Fe(i)
3009
3009
  ],
3010
3010
  " "
3011
3011
  )
@@ -3019,7 +3019,7 @@ const nl = 80, il = {
3019
3019
  },
3020
3020
  EnumTypeDefinition: {
3021
3021
  leave: ({ description: e, name: t, directives: r, values: n }) => ne("", e, `
3022
- `) + Q(["enum", t, Q(r, " "), qe(n)], " ")
3022
+ `) + Q(["enum", t, Q(r, " "), Fe(n)], " ")
3023
3023
  },
3024
3024
  EnumValueDefinition: {
3025
3025
  leave: ({ description: e, name: t, directives: r }) => ne("", e, `
@@ -3027,7 +3027,7 @@ const nl = 80, il = {
3027
3027
  },
3028
3028
  InputObjectTypeDefinition: {
3029
3029
  leave: ({ description: e, name: t, directives: r, fields: n }) => ne("", e, `
3030
- `) + Q(["input", t, Q(r, " "), qe(n)], " ")
3030
+ `) + Q(["input", t, Q(r, " "), Fe(n)], " ")
3031
3031
  },
3032
3032
  DirectiveDefinition: {
3033
3033
  leave: ({ description: e, name: t, arguments: r, repeatable: n, locations: i }) => ne("", e, `
@@ -3038,7 +3038,7 @@ const nl = 80, il = {
3038
3038
  },
3039
3039
  SchemaExtension: {
3040
3040
  leave: ({ directives: e, operationTypes: t }) => Q(
3041
- ["extend schema", Q(e, " "), qe(t)],
3041
+ ["extend schema", Q(e, " "), Fe(t)],
3042
3042
  " "
3043
3043
  )
3044
3044
  },
@@ -3052,7 +3052,7 @@ const nl = 80, il = {
3052
3052
  e,
3053
3053
  ne("implements ", Q(t, " & ")),
3054
3054
  Q(r, " "),
3055
- qe(n)
3055
+ Fe(n)
3056
3056
  ],
3057
3057
  " "
3058
3058
  )
@@ -3064,7 +3064,7 @@ const nl = 80, il = {
3064
3064
  e,
3065
3065
  ne("implements ", Q(t, " & ")),
3066
3066
  Q(r, " "),
3067
- qe(n)
3067
+ Fe(n)
3068
3068
  ],
3069
3069
  " "
3070
3070
  )
@@ -3081,17 +3081,17 @@ const nl = 80, il = {
3081
3081
  )
3082
3082
  },
3083
3083
  EnumTypeExtension: {
3084
- leave: ({ name: e, directives: t, values: r }) => Q(["extend enum", e, Q(t, " "), qe(r)], " ")
3084
+ leave: ({ name: e, directives: t, values: r }) => Q(["extend enum", e, Q(t, " "), Fe(r)], " ")
3085
3085
  },
3086
3086
  InputObjectTypeExtension: {
3087
- leave: ({ name: e, directives: t, fields: r }) => Q(["extend input", e, Q(t, " "), qe(r)], " ")
3087
+ leave: ({ name: e, directives: t, fields: r }) => Q(["extend input", e, Q(t, " "), Fe(r)], " ")
3088
3088
  }
3089
3089
  };
3090
3090
  function Q(e, t = "") {
3091
3091
  var r;
3092
3092
  return (r = e == null ? void 0 : e.filter((n) => n).join(t)) !== null && r !== void 0 ? r : "";
3093
3093
  }
3094
- function qe(e) {
3094
+ function Fe(e) {
3095
3095
  return ne(`{
3096
3096
  `, $r(Q(e, `
3097
3097
  `)), `
@@ -3216,9 +3216,9 @@ function hl(e) {
3216
3216
  }
3217
3217
  return !1;
3218
3218
  }
3219
- var _a = Ve(function() {
3219
+ var _a = qe(function() {
3220
3220
  return navigator.product;
3221
- }) == "ReactNative", Tt = typeof WeakMap == "function" && !(_a && !global.HermesInternal), Ri = typeof WeakSet == "function", Ii = typeof Symbol == "function" && typeof Symbol.for == "function", sn = Ii && Symbol.asyncIterator, Sa = typeof Ve(function() {
3221
+ }) == "ReactNative", Tt = typeof WeakMap == "function" && !(_a && !global.HermesInternal), Ri = typeof WeakSet == "function", Ii = typeof Symbol == "function" && typeof Symbol.for == "function", sn = Ii && Symbol.asyncIterator, Sa = typeof qe(function() {
3222
3222
  return window.document.createElement;
3223
3223
  }) == "function", dl = (
3224
3224
  // Following advice found in this comment from @domenic (maintainer of jsdom):
@@ -3229,11 +3229,11 @@ var _a = Ve(function() {
3229
3229
  // at the end of the user agent string, I believe this case is all we need to
3230
3230
  // check. Testing for "Node.js" was recommended for backwards compatibility
3231
3231
  // with older version of jsdom, but we don't have that problem.
3232
- Ve(function() {
3232
+ qe(function() {
3233
3233
  return navigator.userAgent.indexOf("jsdom") >= 0;
3234
3234
  }) || !1
3235
3235
  ), pl = (Sa || _a) && !dl;
3236
- function ye(e) {
3236
+ function ge(e) {
3237
3237
  return e !== null && typeof e == "object";
3238
3238
  }
3239
3239
  function ml(e, t) {
@@ -3559,7 +3559,7 @@ function fe(e) {
3559
3559
  return !!(e && typeof e == "object" && typeof e.__ref == "string");
3560
3560
  }
3561
3561
  function Il(e) {
3562
- return ye(e) && e.kind === "Document" && Array.isArray(e.definitions);
3562
+ return ge(e) && e.kind === "Document" && Array.isArray(e.definitions);
3563
3563
  }
3564
3564
  function Nl(e) {
3565
3565
  return e.kind === "StringValue";
@@ -4149,8 +4149,8 @@ bt.reset();
4149
4149
  globalThis.__DEV__ !== !1 && Pi("print", function() {
4150
4150
  return dr ? dr.size : 0;
4151
4151
  });
4152
- var be = Array.isArray;
4153
- function Pe(e) {
4152
+ var ye = Array.isArray;
4153
+ function Ne(e) {
4154
4154
  return Array.isArray(e) && e.length > 0;
4155
4155
  }
4156
4156
  var Mo = {
@@ -4198,7 +4198,7 @@ function za(e, t) {
4198
4198
  Xt(t);
4199
4199
  for (var r = jo(""), n = jo(""), i = function(y) {
4200
4200
  for (var b = 0, w = void 0; b < y.length && (w = y[b]); ++b)
4201
- if (!be(w)) {
4201
+ if (!ye(w)) {
4202
4202
  if (w.kind === F.OPERATION_DEFINITION)
4203
4203
  return r(w.name && w.name.value);
4204
4204
  if (w.kind === F.FRAGMENT_DEFINITION)
@@ -4208,7 +4208,7 @@ function za(e, t) {
4208
4208
  }, o = 0, s = t.definitions.length - 1; s >= 0; --s)
4209
4209
  t.definitions[s].kind === F.OPERATION_DEFINITION && ++o;
4210
4210
  var a = af(e), c = function(y) {
4211
- return Pe(y) && y.map(a).some(function(b) {
4211
+ return Ne(y) && y.map(a).some(function(b) {
4212
4212
  return b && b.remove;
4213
4213
  });
4214
4214
  }, u = /* @__PURE__ */ new Map(), l = !1, h = {
@@ -4407,12 +4407,12 @@ var ff = function(e, t, r) {
4407
4407
  /** @class */
4408
4408
  (function() {
4409
4409
  function e(t) {
4410
- t === void 0 && (t = ff), this.reconciler = t, this.isObject = ye, this.pastCopies = /* @__PURE__ */ new Set();
4410
+ t === void 0 && (t = ff), this.reconciler = t, this.isObject = ge, this.pastCopies = /* @__PURE__ */ new Set();
4411
4411
  }
4412
4412
  return e.prototype.merge = function(t, r) {
4413
4413
  for (var n = this, i = [], o = 2; o < arguments.length; o++)
4414
4414
  i[o - 2] = arguments[o];
4415
- return ye(r) && ye(t) ? (Object.keys(r).forEach(function(s) {
4415
+ return ge(r) && ge(t) ? (Object.keys(r).forEach(function(s) {
4416
4416
  if (lf.call(t, s)) {
4417
4417
  var a = t[s];
4418
4418
  if (r[s] !== a) {
@@ -4427,7 +4427,7 @@ var ff = function(e, t, r) {
4427
4427
  t = n.shallowCopyForMerge(t), t[s] = r[s];
4428
4428
  }), t) : r;
4429
4429
  }, e.prototype.shallowCopyForMerge = function(t) {
4430
- return ye(t) && (this.pastCopies.has(t) || (Array.isArray(t) ? t = t.slice(0) : t = O({ __proto__: Object.getPrototypeOf(t) }, t), this.pastCopies.add(t))), t;
4430
+ return ge(t) && (this.pastCopies.has(t) || (Array.isArray(t) ? t = t.slice(0) : t = O({ __proto__: Object.getPrototypeOf(t) }, t), this.pastCopies.add(t))), t;
4431
4431
  }, e;
4432
4432
  })()
4433
4433
  );
@@ -4899,8 +4899,8 @@ function ni(e, t) {
4899
4899
  function Ef(e) {
4900
4900
  var t = /* @__PURE__ */ new Set([e]);
4901
4901
  return t.forEach(function(r) {
4902
- ye(r) && _f(r) === r && Object.getOwnPropertyNames(r).forEach(function(n) {
4903
- ye(r[n]) && t.add(r[n]);
4902
+ ge(r) && _f(r) === r && Object.getOwnPropertyNames(r).forEach(function(n) {
4903
+ ge(r[n]) && t.add(r[n]);
4904
4904
  });
4905
4905
  }), e;
4906
4906
  }
@@ -5054,11 +5054,11 @@ function Tf(e) {
5054
5054
  return Vt(e) || Sf(e);
5055
5055
  }
5056
5056
  function kf(e) {
5057
- return ye(e) && "payload" in e;
5057
+ return ge(e) && "payload" in e;
5058
5058
  }
5059
5059
  function Ka(e, t) {
5060
5060
  var r = e, n = new pt();
5061
- return Vt(t) && Pe(t.incremental) && t.incremental.forEach(function(i) {
5061
+ return Vt(t) && Ne(t.incremental) && t.incremental.forEach(function(i) {
5062
5062
  for (var o = i.data, s = i.path, a = s.length - 1; a >= 0; --a) {
5063
5063
  var c = s[a], u = !isNaN(+c), l = u ? [] : {};
5064
5064
  l[c] = o, o = l;
@@ -5068,11 +5068,11 @@ function Ka(e, t) {
5068
5068
  }
5069
5069
  function Wr(e) {
5070
5070
  var t = ii(e);
5071
- return Pe(t);
5071
+ return Ne(t);
5072
5072
  }
5073
5073
  function ii(e) {
5074
- var t = Pe(e.errors) ? e.errors.slice(0) : [];
5075
- return Vt(e) && Pe(e.incremental) && e.incremental.forEach(function(r) {
5074
+ var t = Ne(e.errors) ? e.errors.slice(0) : [];
5075
+ return Vt(e) && Ne(e.incremental) && e.incremental.forEach(function(r) {
5076
5076
  r.errors && t.push.apply(t, r.errors);
5077
5077
  }), t;
5078
5078
  }
@@ -5356,7 +5356,7 @@ function ec(e) {
5356
5356
  var zf = function(e) {
5357
5357
  var t = Ce(Ce(Ce([], e.graphQLErrors, !0), e.clientErrors, !0), e.protocolErrors, !0);
5358
5358
  return e.networkError && t.push(e.networkError), t.map(function(r) {
5359
- return ye(r) && r.message || "Error message not found.";
5359
+ return ge(r) && r.message || "Error message not found.";
5360
5360
  }).join(`
5361
5361
  `);
5362
5362
  }, Xe = (
@@ -5578,11 +5578,11 @@ function oh(e, t) {
5578
5578
  var u = a.indexOf("?") === -1 ? "?" : "&", l = a + u + r.join("&") + s;
5579
5579
  return { newURI: l };
5580
5580
  }
5581
- var Bo = Ve(function() {
5581
+ var Bo = qe(function() {
5582
5582
  return fetch;
5583
5583
  }), sh = function(e) {
5584
5584
  e === void 0 && (e = {});
5585
- var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ? eh : i, s = e.includeExtensions, a = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, h = Be(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
5585
+ var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ? eh : i, s = e.includeExtensions, a = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, h = $e(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
5586
5586
  globalThis.__DEV__ !== !1 && nh(n || Bo);
5587
5587
  var d = {
5588
5588
  http: { includeExtensions: s, preserveHeaderCase: a },
@@ -5635,7 +5635,7 @@ var Bo = Ve(function() {
5635
5635
  return Sn(W);
5636
5636
  }
5637
5637
  return new pe(function(W) {
5638
- var D = n || Ve(function() {
5638
+ var D = n || qe(function() {
5639
5639
  return fetch;
5640
5640
  }) || Bo, T = W.next.bind(W);
5641
5641
  return D(m, S).then(function(I) {
@@ -5776,7 +5776,7 @@ function Uo(e, t) {
5776
5776
  return r.add(t), !1;
5777
5777
  }
5778
5778
  function rc(e, t, r, n) {
5779
- var i = t.data, o = Be(t, ["data"]), s = r.data, a = Be(r, ["data"]);
5779
+ var i = t.data, o = $e(t, ["data"]), s = r.data, a = $e(r, ["data"]);
5780
5780
  return he(o, a) && Qr(kr(e).selectionSet, i, s, {
5781
5781
  fragmentMap: Gt(Jt(e)),
5782
5782
  variables: n
@@ -5969,7 +5969,7 @@ var cc = (
5969
5969
  return n.read(O(O({}, t), { rootId: t.id || "ROOT_QUERY", optimistic: r }));
5970
5970
  });
5971
5971
  }, e.prototype.watchFragment = function(t) {
5972
- var r = this, n = t.fragment, i = t.fragmentName, o = t.from, s = t.optimistic, a = s === void 0 ? !0 : s, c = Be(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(n, i), l = typeof o > "u" || typeof o == "string" ? o : this.identify(o), h = !!t[Symbol.for("apollo.dataMasking")];
5972
+ var r = this, n = t.fragment, i = t.fragmentName, o = t.from, s = t.optimistic, a = s === void 0 ? !0 : s, c = $e(t, ["fragment", "fragmentName", "from", "optimistic"]), u = this.getFragmentDoc(n, i), l = typeof o > "u" || typeof o == "string" ? o : this.identify(o), h = !!t[Symbol.for("apollo.dataMasking")];
5973
5973
  if (globalThis.__DEV__ !== !1) {
5974
5974
  var d = i || Ma(n).name.value;
5975
5975
  l || globalThis.__DEV__ !== !1 && P.warn(1, d);
@@ -6005,13 +6005,13 @@ var cc = (
6005
6005
  return n.read(O(O({}, t), { query: n.getFragmentDoc(t.fragment, t.fragmentName), rootId: t.id, optimistic: r }));
6006
6006
  });
6007
6007
  }, e.prototype.writeQuery = function(t) {
6008
- var r = t.id, n = t.data, i = Be(t, ["id", "data"]);
6008
+ var r = t.id, n = t.data, i = $e(t, ["id", "data"]);
6009
6009
  return this.write(Object.assign(i, {
6010
6010
  dataId: r || "ROOT_QUERY",
6011
6011
  result: n
6012
6012
  }));
6013
6013
  }, e.prototype.writeFragment = function(t) {
6014
- var r = t.id, n = t.data, i = t.fragment, o = t.fragmentName, s = Be(t, ["id", "data", "fragment", "fragmentName"]);
6014
+ var r = t.id, n = t.data, i = t.fragment, o = t.fragmentName, s = $e(t, ["id", "data", "fragment", "fragmentName"]);
6015
6015
  return this.write(Object.assign(s, {
6016
6016
  query: this.getFragmentDoc(i, o),
6017
6017
  dataId: r,
@@ -6088,7 +6088,7 @@ function mt(e) {
6088
6088
  return t ? t[0] : e;
6089
6089
  }
6090
6090
  function li(e, t, r) {
6091
- return ye(t) ? be(t) ? t.every(function(n) {
6091
+ return ge(t) ? ye(t) ? t.every(function(n) {
6092
6092
  return li(e, n, r);
6093
6093
  }) : e.selections.every(function(n) {
6094
6094
  if (ht(n) && Tr(n, r)) {
@@ -6099,7 +6099,7 @@ function li(e, t, r) {
6099
6099
  }) : !1;
6100
6100
  }
6101
6101
  function Nt(e) {
6102
- return ye(e) && !fe(e) && !be(e);
6102
+ return ge(e) && !fe(e) && !ye(e);
6103
6103
  }
6104
6104
  function yh() {
6105
6105
  return new pt();
@@ -6258,7 +6258,7 @@ var zr = /* @__PURE__ */ Object.create(null), Tn = function() {
6258
6258
  if (Object.keys(this.data).forEach(function(o) {
6259
6259
  t && _e.call(t, o) || r.delete(o);
6260
6260
  }), t) {
6261
- var n = t.__META, i = Be(t, ["__META"]);
6261
+ var n = t.__META, i = $e(t, ["__META"]);
6262
6262
  Object.keys(i).forEach(function(o) {
6263
6263
  r.merge(o, i[o]);
6264
6264
  }), n && n.extraRootIds.forEach(this.retain, this);
@@ -6294,9 +6294,9 @@ var zr = /* @__PURE__ */ Object.create(null), Tn = function() {
6294
6294
  return r;
6295
6295
  var i = /* @__PURE__ */ new Set([n]);
6296
6296
  i.forEach(function(o) {
6297
- fe(o) && (r[o.__ref] = !0), ye(o) && Object.keys(o).forEach(function(s) {
6297
+ fe(o) && (r[o.__ref] = !0), ge(o) && Object.keys(o).forEach(function(s) {
6298
6298
  var a = o[s];
6299
- ye(a) && i.add(a);
6299
+ ge(a) && i.add(a);
6300
6300
  });
6301
6301
  });
6302
6302
  }
@@ -6418,7 +6418,7 @@ function mr(e) {
6418
6418
  return !!(e instanceof _r && e.group.caching);
6419
6419
  }
6420
6420
  function wh(e) {
6421
- return ye(e) ? be(e) ? e.slice(0) : O({ __proto__: Object.getPrototypeOf(e) }, e) : e;
6421
+ return ge(e) ? ye(e) ? e.slice(0) : O({ __proto__: Object.getPrototypeOf(e) }, e) : e;
6422
6422
  }
6423
6423
  var Jo = (
6424
6424
  /** @class */
@@ -6427,16 +6427,16 @@ var Jo = (
6427
6427
  this.known = new (Ri ? WeakSet : Set)(), this.pool = new et(Tt), this.passes = /* @__PURE__ */ new WeakMap(), this.keysByJSON = /* @__PURE__ */ new Map(), this.empty = this.admit({});
6428
6428
  }
6429
6429
  return e.prototype.isKnown = function(t) {
6430
- return ye(t) && this.known.has(t);
6430
+ return ge(t) && this.known.has(t);
6431
6431
  }, e.prototype.pass = function(t) {
6432
- if (ye(t)) {
6432
+ if (ge(t)) {
6433
6433
  var r = wh(t);
6434
6434
  return this.passes.set(r, t), r;
6435
6435
  }
6436
6436
  return t;
6437
6437
  }, e.prototype.admit = function(t) {
6438
6438
  var r = this;
6439
- if (ye(t)) {
6439
+ if (ge(t)) {
6440
6440
  var n = this.passes.get(t);
6441
6441
  if (n)
6442
6442
  return n;
@@ -6587,7 +6587,7 @@ var Eh = (
6587
6587
  variables: s.variables,
6588
6588
  from: i
6589
6589
  }, s), E = Ke(w);
6590
- k === void 0 ? $i.added(w) || (d = p.merge(d, (_ = {}, _[E] = "Can't find field '".concat(w.name.value, "' on ").concat(fe(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), _))) : be(k) ? k.length > 0 && (k = m(r.executeSubSelectedArray({
6590
+ k === void 0 ? $i.added(w) || (d = p.merge(d, (_ = {}, _[E] = "Can't find field '".concat(w.name.value, "' on ").concat(fe(i) ? i.__ref + " object" : "object " + JSON.stringify(i, null, 2)), _))) : ye(k) ? k.length > 0 && (k = m(r.executeSubSelectedArray({
6591
6591
  field: w,
6592
6592
  array: k,
6593
6593
  enclosingRef: o,
@@ -6614,7 +6614,7 @@ var Eh = (
6614
6614
  return l.missing && (a = c.merge(a, (d = {}, d[h] = l.missing, d))), l.result;
6615
6615
  }
6616
6616
  return n.selectionSet && (i = i.filter(s.store.canRead)), i = i.map(function(l, h) {
6617
- return l === null ? null : be(l) ? u(r.executeSubSelectedArray({
6617
+ return l === null ? null : ye(l) ? u(r.executeSubSelectedArray({
6618
6618
  field: n,
6619
6619
  array: l,
6620
6620
  enclosingRef: o,
@@ -6647,7 +6647,7 @@ function Sh(e, t, r) {
6647
6647
  if (!t.selectionSet) {
6648
6648
  var n = /* @__PURE__ */ new Set([r]);
6649
6649
  n.forEach(function(i) {
6650
- ye(i) && (P(
6650
+ ge(i) && (P(
6651
6651
  !fe(i),
6652
6652
  11,
6653
6653
  gh(e, i),
@@ -6737,7 +6737,7 @@ function ns(e) {
6737
6737
  var i = n.field, o = n.variables, s = n.fieldName, a = Xi(e, function(u) {
6738
6738
  var l = u[0], h = l.charAt(0);
6739
6739
  if (h === "@") {
6740
- if (i && Pe(i.directives)) {
6740
+ if (i && Ne(i.directives)) {
6741
6741
  var d = l.slice(1), p = i.directives.find(function(y) {
6742
6742
  return y.name.value === d;
6743
6743
  }), m = p && cn(p, o);
@@ -6782,9 +6782,9 @@ function vc(e) {
6782
6782
  if (!t.paths) {
6783
6783
  var r = t.paths = [], n = [];
6784
6784
  e.forEach(function(i, o) {
6785
- be(i) ? (vc(i).forEach(function(s) {
6785
+ ye(i) ? (vc(i).forEach(function(s) {
6786
6786
  return r.push(n.concat(s));
6787
- }), n.length = 0) : (n.push(i), be(e[o + 1]) || (r.push(n.slice(0)), n.length = 0));
6787
+ }), n.length = 0) : (n.push(i), ye(e[o + 1]) || (r.push(n.slice(0)), n.length = 0));
6788
6788
  });
6789
6789
  }
6790
6790
  return t.paths;
@@ -6794,13 +6794,13 @@ function gc(e, t) {
6794
6794
  }
6795
6795
  function Bt(e, t, r) {
6796
6796
  return r = r || gc, yc(t.reduce(function n(i, o) {
6797
- return be(i) ? i.map(function(s) {
6797
+ return ye(i) ? i.map(function(s) {
6798
6798
  return n(s, o);
6799
6799
  }) : i && r(i, o);
6800
6800
  }, e));
6801
6801
  }
6802
6802
  function yc(e) {
6803
- return ye(e) ? be(e) ? e.map(yc) : Xi(Object.keys(e).sort(), function(t) {
6803
+ return ge(e) ? ye(e) ? e.map(yc) : Xi(Object.keys(e).sort(), function(t) {
6804
6804
  return Bt(e, t);
6805
6805
  }) : e;
6806
6806
  }
@@ -6835,7 +6835,7 @@ var Ch = function() {
6835
6835
  return Hi.withValue(!0, function() {
6836
6836
  for (; l; ) {
6837
6837
  var h = l(O(O({}, t), s), a);
6838
- if (be(h))
6838
+ if (ye(h))
6839
6839
  l = rs(h);
6840
6840
  else {
6841
6841
  c = h;
@@ -6846,7 +6846,7 @@ var Ch = function() {
6846
6846
  }, e.prototype.addTypePolicies = function(t) {
6847
6847
  var r = this;
6848
6848
  Object.keys(t).forEach(function(n) {
6849
- var i = t[n], o = i.queryType, s = i.mutationType, a = i.subscriptionType, c = Be(i, ["queryType", "mutationType", "subscriptionType"]);
6849
+ var i = t[n], o = i.queryType, s = i.mutationType, a = i.subscriptionType, c = $e(i, ["queryType", "mutationType", "subscriptionType"]);
6850
6850
  o && r.setRootTypename("Query", n), s && r.setRootTypename("Mutation", n), a && r.setRootTypename("Subscription", n), _e.call(r.toBeAdded, n) ? r.toBeAdded[n].push(c) : r.toBeAdded[n] = [c];
6851
6851
  });
6852
6852
  }, e.prototype.updateTypePolicy = function(t, r, n) {
@@ -6855,7 +6855,7 @@ var Ch = function() {
6855
6855
  c.merge = typeof u == "function" ? u : u === !0 ? os : u === !1 ? ss : c.merge;
6856
6856
  }
6857
6857
  a(i, r.merge), i.keyFn = // Pass false to disable normalization for this typename.
6858
- o === !1 ? Ch : be(o) ? rs(o) : typeof o == "function" ? o : i.keyFn, s && Object.keys(s).forEach(function(c) {
6858
+ o === !1 ? Ch : ye(o) ? rs(o) : typeof o == "function" ? o : i.keyFn, s && Object.keys(s).forEach(function(c) {
6859
6859
  var u = n[c];
6860
6860
  (!u || (u == null ? void 0 : u.typename) !== t) && (u = n[c] = { typename: t });
6861
6861
  var l = s[c];
@@ -6865,7 +6865,7 @@ var Ch = function() {
6865
6865
  var h = l.keyArgs, d = l.read, p = l.merge;
6866
6866
  u.keyFn = // Pass false to disable argument-based differentiation of
6867
6867
  // field identities.
6868
- h === !1 ? is : be(h) ? ns(h) : typeof h == "function" ? h : u.keyFn, typeof d == "function" && (u.read = d), a(u, p);
6868
+ h === !1 ? is : ye(h) ? ns(h) : typeof h == "function" ? h : u.keyFn, typeof d == "function" && (u.read = d), a(u, p);
6869
6869
  }
6870
6870
  u.read && u.merge && (u.keyFn = u.keyFn || is);
6871
6871
  });
@@ -6896,7 +6896,7 @@ var Ch = function() {
6896
6896
  });
6897
6897
  }
6898
6898
  })), i && i.size && i.forEach(function(s) {
6899
- var a = r.getTypePolicy(s), c = a.fields, u = Be(a, ["fields"]);
6899
+ var a = r.getTypePolicy(s), c = a.fields, u = $e(a, ["fields"]);
6900
6900
  Object.assign(n, u), Object.assign(n.fields, c);
6901
6901
  });
6902
6902
  }
@@ -6952,7 +6952,7 @@ var Ch = function() {
6952
6952
  variables: t.variables
6953
6953
  }, c = fi(t); s; ) {
6954
6954
  var u = s(c, a);
6955
- if (be(u))
6955
+ if (ye(u))
6956
6956
  s = ns(u);
6957
6957
  else {
6958
6958
  o = u || n;
@@ -7045,9 +7045,9 @@ function Ji(e, t, r) {
7045
7045
  }
7046
7046
  function bc(e) {
7047
7047
  return function(r, n) {
7048
- if (be(r) || be(n))
7048
+ if (ye(r) || ye(n))
7049
7049
  throw je(9);
7050
- if (ye(r) && ye(n)) {
7050
+ if (ge(r) && ge(n)) {
7051
7051
  var i = e.getFieldValue(r, "__typename"), o = e.getFieldValue(n, "__typename"), s = i && o && i !== o;
7052
7052
  if (s)
7053
7053
  return n;
@@ -7194,7 +7194,7 @@ var Lh = (
7194
7194
  return u;
7195
7195
  }, e.prototype.processFieldValue = function(t, r, n, i) {
7196
7196
  var o = this;
7197
- return !r.selectionSet || t === null ? globalThis.__DEV__ !== !1 ? Xa(t) : t : be(t) ? t.map(function(s, a) {
7197
+ return !r.selectionSet || t === null ? globalThis.__DEV__ !== !1 ? Xa(t) : t : ye(t) ? t.map(function(s, a) {
7198
7198
  var c = o.processFieldValue(s, r, n, cs(i, a));
7199
7199
  return us(i, a), c;
7200
7200
  }) : this.processSelectionSet({
@@ -7223,7 +7223,7 @@ var Lh = (
7223
7223
  // Since the presence of @client or @defer on this field can only
7224
7224
  // cause clientOnly or deferred to become true, we can skip the
7225
7225
  // forEach loop if both clientOnly and deferred are already true.
7226
- !(p && m) && Pe(d.directives) && d.directives.forEach(function(y) {
7226
+ !(p && m) && Ne(d.directives) && d.directives.forEach(function(y) {
7227
7227
  var b = y.name.value;
7228
7228
  if (b === "client" && (p = !0), b === "defer") {
7229
7229
  var w = cn(y, n.variables);
@@ -7249,14 +7249,14 @@ var Lh = (
7249
7249
  // Items in the same position in different arrays are not
7250
7250
  // necessarily related to each other, so when incoming is an array
7251
7251
  // we process its elements as if there was no existing data.
7252
- !be(n) && // Likewise, existing must be either a Reference or a StoreObject
7252
+ !ye(n) && // Likewise, existing must be either a Reference or a StoreObject
7253
7253
  // in order for its fields to be safe to merge with the fields of
7254
7254
  // the incoming object.
7255
7255
  (fe(r) || Nt(r)) ? r : void 0
7256
7256
  ), u = n;
7257
7257
  c && !o && (o = [fe(c) ? c.__ref : c]);
7258
7258
  var l, h = function(d, p) {
7259
- return be(d) ? typeof p == "number" ? d[p] : void 0 : i.store.getFieldValue(d, String(p));
7259
+ return ye(d) ? typeof p == "number" ? d[p] : void 0 : i.store.getFieldValue(d, String(p));
7260
7260
  };
7261
7261
  t.map.forEach(function(d, p) {
7262
7262
  var m = h(c, p), g = h(u, p);
@@ -7265,7 +7265,7 @@ var Lh = (
7265
7265
  var v = a.applyMerges(d, m, g, i, o);
7266
7266
  v !== g && (l = l || /* @__PURE__ */ new Map(), l.set(p, v)), o && P(o.pop() === p);
7267
7267
  }
7268
- }), l && (n = be(u) ? u.slice(0) : O({}, u), l.forEach(function(d, p) {
7268
+ }), l && (n = ye(u) ? u.slice(0) : O({}, u), l.forEach(function(d, p) {
7269
7269
  n[p] = d;
7270
7270
  }));
7271
7271
  }
@@ -7315,7 +7315,7 @@ function Mh(e, t, r, n) {
7315
7315
  if (!ls.has(u)) {
7316
7316
  ls.add(u);
7317
7317
  var l = [];
7318
- !be(o) && !be(s) && [o, s].forEach(function(h) {
7318
+ !ye(o) && !ye(s) && [o, s].forEach(function(h) {
7319
7319
  var d = n.getFieldValue(h, "__typename");
7320
7320
  typeof d == "string" && !l.includes(d) && l.push(d);
7321
7321
  }), globalThis.__DEV__ !== !1 && P.warn(15, c, a, l.length ? "either ensure all objects of type " + l.join(" and ") + " have an ID or a custom merge function, or " : "", u, O({}, o), O({}, s));
@@ -8010,8 +8010,8 @@ var Ln = (
8010
8010
  // the cache will repair what was evicted.
8011
8011
  n.dmCount === At.get(this.cache) && he(r, n.variables) && he(t.data, n.result.data));
8012
8012
  }, e.prototype.markResult = function(t, r, n, i) {
8013
- var o = this, s, a = new pt(), c = Pe(t.errors) ? t.errors.slice(0) : [];
8014
- if ((s = this.observableQuery) === null || s === void 0 || s.resetNotifications(), "incremental" in t && Pe(t.incremental)) {
8013
+ var o = this, s, a = new pt(), c = Ne(t.errors) ? t.errors.slice(0) : [];
8014
+ if ((s = this.observableQuery) === null || s === void 0 || s.resetNotifications(), "incremental" in t && Ne(t.incremental)) {
8015
8015
  var u = Ka(this.getDiff().result, t);
8016
8016
  t.data = u;
8017
8017
  } else if ("hasNext" in t && t.hasNext) {
@@ -8159,7 +8159,7 @@ var Ih = Object.prototype.hasOwnProperty, hs = /* @__PURE__ */ Object.create(nul
8159
8159
  dataId: "ROOT_MUTATION",
8160
8160
  query: t.document,
8161
8161
  variables: t.variables
8162
- }), Vt(i) && Pe(i.incremental)) {
8162
+ }), Vt(i) && Ne(i.incremental)) {
8163
8163
  var a = r.diff({
8164
8164
  id: "ROOT_MUTATION",
8165
8165
  // The cache complains if passed a mutation where it expects a
@@ -8369,7 +8369,7 @@ var Ih = Object.prototype.hasOwnProperty, hs = /* @__PURE__ */ Object.create(nul
8369
8369
  else if (Il(a)) {
8370
8370
  var c = bt(r.transform(a));
8371
8371
  i.set(c, ur(a)), o.set(c, !1);
8372
- } else ye(a) && a.query && s.add(a);
8372
+ } else ge(a) && a.query && s.add(a);
8373
8373
  }), this.queries.forEach(function(a, c) {
8374
8374
  var u = a.observableQuery, l = a.document;
8375
8375
  if (u) {
@@ -9504,7 +9504,7 @@ function Lc(e, t, r, n) {
9504
9504
  r === void 0 && (r = {});
9505
9505
  var i = r.skip;
9506
9506
  r.ssr, r.onCompleted, r.onError;
9507
- var o = r.defaultOptions, s = Be(r, ["skip", "ssr", "onCompleted", "onError", "defaultOptions"]);
9507
+ var o = r.defaultOptions, s = $e(r, ["skip", "ssr", "onCompleted", "onError", "defaultOptions"]);
9508
9508
  return function(a) {
9509
9509
  var c = Object.assign(s, { query: t });
9510
9510
  return n && (c.fetchPolicy === "network-only" || c.fetchPolicy === "cache-and-network") && (c.fetchPolicy = "cache-first"), c.variables || (c.variables = {}), i ? (c.initialFetchPolicy = c.initialFetchPolicy || c.fetchPolicy || vi(o, e.defaultOptions), c.fetchPolicy = "standby") : c.fetchPolicy || (c.fetchPolicy = (a == null ? void 0 : a.options.initialFetchPolicy) || vi(o, e.defaultOptions)), c;
@@ -9516,7 +9516,7 @@ function Zi(e, t, r, n) {
9516
9516
  }
9517
9517
  function mi(e, t, r, n, i, o, s) {
9518
9518
  var a = t.current;
9519
- a && a.data && (t.previousData = a.data), !e.error && Pe(e.errors) && (e.error = new Xe({ graphQLErrors: e.errors })), t.current = Zr(hd(e, r, i), t.previousData, r, n), o(), ld(e, a == null ? void 0 : a.networkStatus, s);
9519
+ a && a.data && (t.previousData = a.data), !e.error && Ne(e.errors) && (e.error = new Xe({ graphQLErrors: e.errors })), t.current = Zr(hd(e, r, i), t.previousData, r, n), o(), ld(e, a == null ? void 0 : a.networkStatus, s);
9520
9520
  }
9521
9521
  function ld(e, t, r) {
9522
9522
  if (!e.loading) {
@@ -9537,12 +9537,12 @@ function vi(e, t) {
9537
9537
  return (e == null ? void 0 : e.fetchPolicy) || ((r = t == null ? void 0 : t.watchQuery) === null || r === void 0 ? void 0 : r.fetchPolicy) || "cache-first";
9538
9538
  }
9539
9539
  function fd(e) {
9540
- return Pe(e.errors) ? new Xe({ graphQLErrors: e.errors }) : e.error;
9540
+ return Ne(e.errors) ? new Xe({ graphQLErrors: e.errors }) : e.error;
9541
9541
  }
9542
9542
  function Zr(e, t, r, n) {
9543
9543
  var i = e.data;
9544
9544
  e.partial;
9545
- var o = Be(e, ["data", "partial"]), s = O(O({ data: i }, o), { client: n, observable: r, variables: r.variables, called: e !== Mc && e !== jc, previousData: t });
9545
+ var o = $e(e, ["data", "partial"]), s = O(O({ data: i }, o), { client: n, observable: r, variables: r.variables, called: e !== Mc && e !== jc, previousData: t });
9546
9546
  return s;
9547
9547
  }
9548
9548
  function hd(e, t, r) {
@@ -9699,7 +9699,7 @@ function ee(e) {
9699
9699
  throw new Error("useTrackStore must be used within a Browser component");
9700
9700
  return t.trackStore(e);
9701
9701
  }
9702
- function Ne(e) {
9702
+ function Be(e) {
9703
9703
  const t = St(vt);
9704
9704
  if (!t)
9705
9705
  throw new Error("useDataStore must be used within a Browser component");
@@ -10027,7 +10027,7 @@ function Pd(e, t) {
10027
10027
  return r.push(...Dd(e, t.bigData, t.bigError)), r.push(...Ld(e, t.geneData, t.geneError)), r.push(...Md(e, t.motifData, t.motifError)), r.push(...jd(e, t.importanceData, t.importanceError)), r.push(...Rd(e, t.bulkBedData, t.bulkBedError)), r.push(...Id(e, t.methylCData, t.methylCError)), r.push(...Nd(e, t.ldData, t.ldError)), r;
10028
10028
  }
10029
10029
  function Ad() {
10030
- const [e, { data: t, loading: r, error: n }] = Ct(Ir), [i, { data: o, loading: s, error: a }] = Ct(xd), [c, { data: u, loading: l, error: h }] = Ct(bd), [d, { data: p, loading: m, error: g }] = Ct(Ir), [v, { data: y, loading: b, error: w }] = Ct(Ir), [_, { data: x, loading: k, error: E }] = Ct(Ir), S = ee((D) => D.tracks), L = ee((D) => D.editTrack), M = X((D) => D.domain), C = X((D) => D.getExpandedDomain), N = X((D) => D.setDelta), A = Ne((D) => D.setDataById), B = Ne((D) => D.setLoading), K = Ne((D) => D.setFetching), R = X((D) => D.trackWidth), U = X((D) => D.multiplier), H = z(() => R * U, [R, U]), W = z(() => r || l || s || m || b || // snpLoading ||
10030
+ const [e, { data: t, loading: r, error: n }] = Ct(Ir), [i, { data: o, loading: s, error: a }] = Ct(xd), [c, { data: u, loading: l, error: h }] = Ct(bd), [d, { data: p, loading: m, error: g }] = Ct(Ir), [v, { data: y, loading: b, error: w }] = Ct(Ir), [_, { data: x, loading: k, error: E }] = Ct(Ir), S = ee((D) => D.tracks), L = ee((D) => D.editTrack), M = X((D) => D.domain), C = X((D) => D.getExpandedDomain), N = X((D) => D.setDelta), A = Be((D) => D.setDataById), B = Be((D) => D.setLoading), K = Be((D) => D.setFetching), R = X((D) => D.trackWidth), U = X((D) => D.multiplier), H = z(() => R * U, [R, U]), W = z(() => r || l || s || m || b || // snpLoading ||
10031
10031
  k, [r, l, s, m, b, k]);
10032
10032
  return de(() => {
10033
10033
  B(W);
@@ -10173,7 +10173,7 @@ function Ac() {
10173
10173
  }
10174
10174
  }));
10175
10175
  }
10176
- const Ae = Ac();
10176
+ const Pe = Ac();
10177
10177
  function Bd(e) {
10178
10178
  const t = e.slice(1), r = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
10179
10179
  return (0.299 * r + 0.587 * n + 0.114 * i) / 255 > 0.5 ? "#000000" : "#ffffff";
@@ -10190,27 +10190,27 @@ function Wd({ value: e }) {
10190
10190
  /* @__PURE__ */ f.jsx("text", { ref: t, x: 5, y: 1, fill: i, children: e })
10191
10191
  ] });
10192
10192
  }
10193
- function Fe({
10193
+ function Ae({
10194
10194
  onClick: e,
10195
10195
  onHover: t,
10196
10196
  onLeave: r,
10197
10197
  tooltip: n
10198
10198
  }) {
10199
- const i = Ft((u) => u.showTooltip), o = Ft((u) => u.hideTooltip), s = $e(
10199
+ const i = Ft((u) => u.showTooltip), o = Ft((u) => u.hideTooltip), s = Ve(
10200
10200
  (u, l, h) => {
10201
10201
  t && t(u);
10202
10202
  const d = n ? Oi(n, u) : /* @__PURE__ */ f.jsx(Wd, { value: l });
10203
10203
  i(d, h.clientX, h.clientY);
10204
10204
  },
10205
10205
  [t, n, i]
10206
- ), a = $e(
10206
+ ), a = Ve(
10207
10207
  (u) => {
10208
10208
  r && r(u), o();
10209
10209
  },
10210
10210
  [r, o]
10211
10211
  );
10212
10212
  return {
10213
- handleClick: $e(
10213
+ handleClick: Ve(
10214
10214
  (u) => {
10215
10215
  e && e(u);
10216
10216
  },
@@ -10282,7 +10282,7 @@ const Gd = (e) => {
10282
10282
  );
10283
10283
  };
10284
10284
  function Ge(e) {
10285
- const t = X((a) => a.getExpandedDomain), [r, n] = ae(t()), i = Ne((a) => a.fetching);
10285
+ const t = X((a) => a.getExpandedDomain), [r, n] = ae(t()), i = Be((a) => a.fetching);
10286
10286
  de(() => {
10287
10287
  i == !1 && n(t());
10288
10288
  }, [i, t]);
@@ -10359,7 +10359,7 @@ function $c({
10359
10359
  onLeave: c,
10360
10360
  tooltip: u
10361
10361
  }) {
10362
- const { totalWidth: l, sideWidth: h } = i, { x: d, reverseX: p } = Ge(l), m = z(() => Xd(t || [], d), [t, d]), g = De((w) => w.background), { handleClick: v, handleHover: y, handleLeave: b } = Fe({
10362
+ const { totalWidth: l, sideWidth: h } = i, { x: d, reverseX: p } = Ge(l), m = z(() => Xd(t || [], d), [t, d]), g = De((w) => w.background), { handleClick: v, handleHover: y, handleLeave: b } = Ae({
10363
10363
  onClick: s,
10364
10364
  onHover: a,
10365
10365
  onLeave: c,
@@ -10443,14 +10443,14 @@ function G(e, t) {
10443
10443
  return ` L ${e} ${t}`;
10444
10444
  }
10445
10445
  function eo(e, t, r, n) {
10446
- const [i, o] = ae({ pos: null, index: null }), s = $e(
10446
+ const [i, o] = ae({ pos: null, index: null }), s = Ve(
10447
10447
  (c) => {
10448
10448
  if (!e) return;
10449
10449
  const u = e0(c, e, t, r);
10450
10450
  o(u ? { pos: u.pos, index: u.index + n } : { pos: null, index: null });
10451
10451
  },
10452
10452
  [e, t, r]
10453
- ), a = $e(() => {
10453
+ ), a = Ve(() => {
10454
10454
  o({ pos: null, index: null });
10455
10455
  }, []);
10456
10456
  return {
@@ -10484,10 +10484,10 @@ function t0({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o })
10484
10484
  const B = C(A.max);
10485
10485
  return Ze(r, B / 1.25);
10486
10486
  });
10487
- }, [r, y, g]), w = Ae((C) => C.text), { mouseState: _, updateMouseState: x, clearMouseState: k } = eo(m, c, p, s), E = z(() => {
10487
+ }, [r, y, g]), w = Pe((C) => C.text), { mouseState: _, updateMouseState: x, clearMouseState: k } = eo(m, c, p, s), E = z(() => {
10488
10488
  var C;
10489
10489
  return (C = _.pos) != null && C.x ? _.pos.x - p + s : 0;
10490
- }, [(M = _.pos) == null ? void 0 : M.x, p, s]), { handleHover: S, handleLeave: L } = Fe({
10490
+ }, [(M = _.pos) == null ? void 0 : M.x, p, s]), { handleHover: S, handleLeave: L } = Ae({
10491
10491
  onClick: void 0,
10492
10492
  onHover: void 0,
10493
10493
  onLeave: void 0,
@@ -11202,7 +11202,7 @@ function c0() {
11202
11202
  }
11203
11203
  return Ar.exports = t, Ar.exports.clsx = t, Ar.exports;
11204
11204
  }
11205
- var xe = {}, rt = {}, Is;
11205
+ var be = {}, rt = {}, Is;
11206
11206
  function dn() {
11207
11207
  if (Is) return rt;
11208
11208
  Is = 1, Object.defineProperty(rt, "__esModule", {
@@ -11260,10 +11260,10 @@ function u0() {
11260
11260
  }
11261
11261
  var Ps;
11262
11262
  function ro() {
11263
- if (Ps) return xe;
11264
- Ps = 1, Object.defineProperty(xe, "__esModule", {
11263
+ if (Ps) return be;
11264
+ Ps = 1, Object.defineProperty(be, "__esModule", {
11265
11265
  value: !0
11266
- }), xe.addClassName = x, xe.addEvent = s, xe.addUserSelectStyles = b, xe.createCSSTransform = p, xe.createSVGTransform = m, xe.getTouch = v, xe.getTouchIdentifier = y, xe.getTranslation = g, xe.innerHeight = l, xe.innerWidth = h, xe.matchesSelector = i, xe.matchesSelectorAndParentsTo = o, xe.offsetXYFromParent = d, xe.outerHeight = c, xe.outerWidth = u, xe.removeClassName = k, xe.removeEvent = a, xe.scheduleRemoveUserSelectStyles = w;
11266
+ }), be.addClassName = x, be.addEvent = s, be.addUserSelectStyles = b, be.createCSSTransform = p, be.createSVGTransform = m, be.getTouch = v, be.getTouchIdentifier = y, be.getTranslation = g, be.innerHeight = l, be.innerWidth = h, be.matchesSelector = i, be.matchesSelectorAndParentsTo = o, be.offsetXYFromParent = d, be.outerHeight = c, be.outerWidth = u, be.removeClassName = k, be.removeEvent = a, be.scheduleRemoveUserSelectStyles = w;
11267
11267
  var e = dn(), t = r(u0());
11268
11268
  function r(E, S) {
11269
11269
  if (typeof WeakMap == "function") var L = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap();
@@ -11397,7 +11397,7 @@ function ro() {
11397
11397
  function k(E, S) {
11398
11398
  E.classList ? E.classList.remove(S) : E.className = E.className.replace(new RegExp(`(?:^|\\s)${S}(?!\\S)`, "g"), "");
11399
11399
  }
11400
- return xe;
11400
+ return be;
11401
11401
  }
11402
11402
  var ze = {}, As;
11403
11403
  function Uc() {
@@ -12386,9 +12386,9 @@ function Bs({
12386
12386
  /* @__PURE__ */ f.jsx("line", { x1: t * 0.96, x2: t, y1: e, y2: e, stroke: i })
12387
12387
  ] });
12388
12388
  }
12389
- const ge = 80;
12389
+ const xe = 80;
12390
12390
  function y0() {
12391
- const e = X((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = X((h) => h.getExpandedDomain), i = X((h) => h.getDomain), [o, s] = ae(n()), a = Ne((h) => h.fetching), { x: c } = Ge(r);
12391
+ const e = X((h) => h.getTrackDimensions), { sideWidth: t, totalWidth: r } = e(), n = X((h) => h.getExpandedDomain), i = X((h) => h.getDomain), [o, s] = ae(n()), a = Be((h) => h.fetching), { x: c } = Ge(r);
12392
12392
  de(() => {
12393
12393
  a || s(n());
12394
12394
  }, [a, n]);
@@ -12403,8 +12403,8 @@ function y0() {
12403
12403
  {
12404
12404
  x1: c(b * p),
12405
12405
  x2: c(b * p),
12406
- y1: ge * 0.6,
12407
- y2: ge * 0.9,
12406
+ y1: xe * 0.6,
12407
+ y2: xe * 0.9,
12408
12408
  stroke: u,
12409
12409
  strokeWidth: 0.5
12410
12410
  }
@@ -12422,22 +12422,22 @@ function y0() {
12422
12422
  },
12423
12423
  fill: u,
12424
12424
  textAnchor: "end",
12425
- fontSize: ge / 6 + "px",
12425
+ fontSize: xe / 6 + "px",
12426
12426
  x: c(b * p) - 5,
12427
- y: ge * 0.85,
12427
+ y: xe * 0.85,
12428
12428
  children: b * p
12429
12429
  }
12430
12430
  )
12431
12431
  ] }, "ruler_" + b)
12432
12432
  );
12433
- return /* @__PURE__ */ f.jsxs("g", { width: r, height: ge, transform: `translate(-${t}, 0)`, children: [
12433
+ return /* @__PURE__ */ f.jsxs("g", { width: r, height: xe, transform: `translate(-${t}, 0)`, children: [
12434
12434
  /* @__PURE__ */ f.jsx(
12435
12435
  "line",
12436
12436
  {
12437
12437
  x1: c(v.start),
12438
12438
  x2: c(v.start),
12439
- y1: ge * 0.1,
12440
- y2: ge * 0.4,
12439
+ y1: xe * 0.1,
12440
+ y2: xe * 0.4,
12441
12441
  stroke: u,
12442
12442
  strokeWidth: 0.5
12443
12443
  }
@@ -12447,8 +12447,8 @@ function y0() {
12447
12447
  {
12448
12448
  x1: c(v.end),
12449
12449
  x2: c(v.end),
12450
- y1: ge * 0.1,
12451
- y2: ge * 0.4,
12450
+ y1: xe * 0.1,
12451
+ y2: xe * 0.4,
12452
12452
  stroke: u,
12453
12453
  strokeWidth: 0.5
12454
12454
  }
@@ -12458,8 +12458,8 @@ function y0() {
12458
12458
  {
12459
12459
  x1: c(v.start),
12460
12460
  x2: c(v.end),
12461
- y1: ge * 0.25,
12462
- y2: ge * 0.25,
12461
+ y1: xe * 0.25,
12462
+ y2: xe * 0.25,
12463
12463
  stroke: u,
12464
12464
  strokeWidth: 0.5
12465
12465
  }
@@ -12476,8 +12476,8 @@ function y0() {
12476
12476
  userSelect: "none"
12477
12477
  },
12478
12478
  x: c(v.start) - 5,
12479
- y: ge * 0.35,
12480
- fontSize: ge / 6 + "px",
12479
+ y: xe * 0.35,
12480
+ fontSize: xe / 6 + "px",
12481
12481
  textAnchor: "end",
12482
12482
  fill: u,
12483
12483
  children: b0(v.end - v.start)
@@ -12514,7 +12514,7 @@ function x0({
12514
12514
  onStart: y,
12515
12515
  onDrag: g,
12516
12516
  onStop: v,
12517
- children: /* @__PURE__ */ f.jsx("g", { id: `swap-track-${e}`, ref: u, children: o ? /* @__PURE__ */ f.jsx(w0, { position: m + n.y + ge, children: t }) : t })
12517
+ children: /* @__PURE__ */ f.jsx("g", { id: `swap-track-${e}`, ref: u, children: o ? /* @__PURE__ */ f.jsx(w0, { position: m + n.y + xe, children: t }) : t })
12518
12518
  }
12519
12519
  );
12520
12520
  }
@@ -12580,9 +12580,9 @@ function Gc({ children: e, transform: t, id: r, loading: n, error: i }) {
12580
12580
  }) || "", g = ee((C) => {
12581
12581
  var N;
12582
12582
  return (N = C.getTrack(r)) == null ? void 0 : N.title;
12583
- }) || "", { trackMargin: v, titleSize: y, totalVerticalMargin: b, wrapperHeight: w } = d(r), _ = p(r), x = w / 3, k = jt((C) => C.setContextMenu), E = De((C) => C.text), S = De((C) => C.background), L = $e(() => {
12583
+ }) || "", { trackMargin: v, titleSize: y, totalVerticalMargin: b, wrapperHeight: w } = d(r), _ = p(r), x = w / 3, k = jt((C) => C.setContextMenu), E = De((C) => C.text), S = De((C) => C.background), L = Ve(() => {
12584
12584
  c(!0);
12585
- }, []), M = $e(() => {
12585
+ }, []), M = Ve(() => {
12586
12586
  c(!1);
12587
12587
  }, []);
12588
12588
  return /* @__PURE__ */ f.jsx("g", { id: `wrapper-${r}`, transform: t, children: /* @__PURE__ */ f.jsxs(x0, { id: r, setSwapping: s, children: [
@@ -12673,7 +12673,7 @@ function C0({
12673
12673
  const { totalWidth: u, sideWidth: l } = n, h = De((w) => w.background), { x: d, reverseX: p } = Ge(u), m = z(() => {
12674
12674
  const w = t ? [...t] : [];
12675
12675
  return Jd(w, d);
12676
- }, [t, d]), g = mn(m.length, e), { handleClick: v, handleHover: y, handleLeave: b } = Fe({
12676
+ }, [t, d]), g = mn(m.length, e), { handleClick: v, handleHover: y, handleLeave: b } = Ae({
12677
12677
  onClick: o,
12678
12678
  onHover: s,
12679
12679
  onLeave: a,
@@ -12831,7 +12831,7 @@ function P0({
12831
12831
  transcripts: E.map((L) => Xc(L, d, y, l))
12832
12832
  })),
12833
12833
  [v, y, l, d]
12834
- ), w = De((E) => E.background), { handleClick: _, handleHover: x, handleLeave: k } = Fe({
12834
+ ), w = De((E) => E.background), { handleClick: _, handleHover: x, handleLeave: k } = Ae({
12835
12835
  onClick: s,
12836
12836
  onHover: a,
12837
12837
  onLeave: c,
@@ -12906,7 +12906,7 @@ function A0({
12906
12906
  transcripts: k.map((S) => Xc(S, h, v, u))
12907
12907
  })),
12908
12908
  [g, v, u, h]
12909
- ), b = De((k) => k.background), { handleClick: w, handleHover: _, handleLeave: x } = Fe({
12909
+ ), b = De((k) => k.background), { handleClick: w, handleHover: _, handleLeave: x } = Ae({
12910
12910
  onClick: o,
12911
12911
  onHover: s,
12912
12912
  onLeave: a,
@@ -12984,7 +12984,7 @@ function q0(e, t) {
12984
12984
  importance: s
12985
12985
  })) : e,
12986
12986
  [e]
12987
- ), n = z(() => B0(r, (s) => s.importance), [r]), i = $0(n, { start: t, end: 0 }), o = $e(W0(i), [n, t]);
12987
+ ), n = z(() => B0(r, (s) => s.importance), [r]), i = $0(n, { start: t, end: 0 }), o = Ve(W0(i), [n, t]);
12988
12988
  return [r, o, i];
12989
12989
  }
12990
12990
  function V0(e) {
@@ -13873,7 +13873,7 @@ const Xs = /* @__PURE__ */ new Map([
13873
13873
  function Om({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps: i }) {
13874
13874
  if (e.length === 0 || e.importance.length === 0)
13875
13875
  return null;
13876
- const { viewWidth: o } = r, [s] = ae(null), [a, c, u] = q0(e, n), l = F0(t || [], a, u), h = z(() => o / a.length / 100, [o, a.length]), d = $e(c, [c]), p = z(() => l.map((b, w) => {
13876
+ const { viewWidth: o } = r, [s] = ae(null), [a, c, u] = q0(e, n), l = F0(t || [], a, u), h = z(() => o / a.length / 100, [o, a.length]), d = Ve(c, [c]), p = z(() => l.map((b, w) => {
13877
13877
  const _ = 100 * h * Math.abs(b.coordinates[1] - b.coordinates[0]), x = Math.min(...b.coordinates) * h * 100, k = b.y + b.height, E = 80;
13878
13878
  return /* @__PURE__ */ f.jsxs(lu, { children: [
13879
13879
  /* @__PURE__ */ f.jsx(
@@ -13977,7 +13977,7 @@ function Cm({
13977
13977
  onLeave: c,
13978
13978
  tooltip: u
13979
13979
  }) {
13980
- const { totalWidth: l, sideWidth: h } = n, { x: d } = Ge(l), p = z(() => Ks(t.occurrenceRect, d), [t]), m = z(() => Ks(t.peaks, d), [t]), { handleClick: g, handleHover: v, handleLeave: y } = Fe({
13980
+ const { totalWidth: l, sideWidth: h } = n, { x: d } = Ge(l), p = z(() => Ks(t.occurrenceRect, d), [t]), m = z(() => Ks(t.peaks, d), [t]), { handleClick: g, handleHover: v, handleLeave: y } = Ae({
13981
13981
  onClick: s,
13982
13982
  onHover: a,
13983
13983
  onLeave: c,
@@ -14029,7 +14029,7 @@ function Dm({
14029
14029
  onLeave: c,
14030
14030
  tooltip: u
14031
14031
  }) {
14032
- const { totalWidth: l, sideWidth: h } = n, { x: d } = Ge(l), p = z(() => Js(t.occurrenceRect, d), [t, d]), m = z(() => Js(t.peaks, d), [t, d]), g = mn(p.length, e), { handleClick: v, handleHover: y, handleLeave: b } = Fe({
14032
+ const { totalWidth: l, sideWidth: h } = n, { x: d } = Ge(l), p = z(() => Js(t.occurrenceRect, d), [t, d]), m = z(() => Js(t.peaks, d), [t, d]), g = mn(p.length, e), { handleClick: v, handleHover: y, handleLeave: b } = Ae({
14033
14033
  onClick: s,
14034
14034
  onHover: a,
14035
14035
  onLeave: c,
@@ -14239,7 +14239,7 @@ function Nm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
14239
14239
  }, [(k = g.pos) == null ? void 0 : k.x, d, a]), w = z(() => {
14240
14240
  const D = g.index;
14241
14241
  return D === null ? [] : n.map((T) => T[D]);
14242
- }, [n, g.index]), { handleHover: _, handleLeave: x } = Fe({
14242
+ }, [n, g.index]), { handleHover: _, handleLeave: x } = Ae({
14243
14243
  onClick: void 0,
14244
14244
  onHover: void 0,
14245
14245
  onLeave: void 0,
@@ -14291,7 +14291,7 @@ function Pm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o
14291
14291
  }, [e, a, u, r, g]), y = z(() => Am(e, n, i, t || v, p), [e, n, i, t, v]), { mouseState: b, updateMouseState: w, clearMouseState: _ } = eo(l, c, d, a), x = z(() => {
14292
14292
  var C;
14293
14293
  return (C = b.pos) != null && C.x ? b.pos.x - d + a : 0;
14294
- }, [(M = b.pos) == null ? void 0 : M.x, d, a]), k = De((C) => C.background), E = De((C) => C.text), { handleHover: S, handleLeave: L } = Fe({
14294
+ }, [(M = b.pos) == null ? void 0 : M.x, d, a]), k = De((C) => C.background), E = De((C) => C.text), { handleHover: S, handleLeave: L } = Ae({
14295
14295
  onClick: void 0,
14296
14296
  onHover: void 0,
14297
14297
  onLeave: void 0,
@@ -14356,7 +14356,7 @@ const ea = (e, t, r, n, i) => {
14356
14356
  return i >= 0 && i < n.length ? n[i] : n[0] || e.rsquare;
14357
14357
  }, Fm = (e) => e.ldblocksnpid === "Lead" ? e.rsquare : e.rsquare.split(",").map((r) => r.trim())[0] || e.rsquare, lt = (e) => e.rsquare.includes("*") || e.ldblocksnpid.includes("Lead"), qm = (e, t) => lt(e) ? t : Ze(t, 0.3);
14358
14358
  function Vm({ id: e, data: t, height: r, color: n, dimensions: i, show: o, showScore: s = !0, onClick: a, onHover: c, onLeave: u, tooltip: l }) {
14359
- const { totalWidth: h, sideWidth: d } = i, p = Ae((R) => R.background), m = Ae((R) => R.text), g = 4, v = X((R) => R.getExpandedDomain), y = ee((R) => R.editTrack), { x: b } = Ge(h), w = r / 3, _ = 2 * r / 3, x = z(() => {
14359
+ const { totalWidth: h, sideWidth: d } = i, p = Pe((R) => R.background), m = Pe((R) => R.text), g = 4, v = X((R) => R.getExpandedDomain), y = ee((R) => R.editTrack), { x: b } = Ge(h), w = r / 3, _ = 2 * r / 3, x = z(() => {
14360
14360
  const R = v(), U = t == null ? void 0 : t.filter((H) => {
14361
14361
  const W = H.start >= R.start, D = H.stop <= R.end, T = H.chromosome === R.chromosome;
14362
14362
  return W && D && T;
@@ -14366,7 +14366,7 @@ function Vm({ id: e, data: t, height: r, color: n, dimensions: i, show: o, showS
14366
14366
  pixelStart: b(H.start),
14367
14367
  pixelEnd: b(H.stop)
14368
14368
  }))) || [];
14369
- }, [t, b]), { handleClick: k, handleHover: E, handleLeave: S } = Fe({
14369
+ }, [t, b]), { handleClick: k, handleHover: E, handleLeave: S } = Ae({
14370
14370
  onClick: a,
14371
14371
  onHover: c,
14372
14372
  onLeave: u,
@@ -14495,7 +14495,7 @@ function Vm({ id: e, data: t, height: r, color: n, dimensions: i, show: o, showS
14495
14495
  ] });
14496
14496
  }
14497
14497
  function $m(e) {
14498
- const t = Ae((n) => n.text), r = Ae((n) => n.background);
14498
+ const t = Pe((n) => n.text), r = Pe((n) => n.background);
14499
14499
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
14500
14500
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
14501
14501
  /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 5, y: 16, children: e.snpid }),
@@ -14523,7 +14523,7 @@ function Bm({
14523
14523
  onLeave: l,
14524
14524
  tooltip: h
14525
14525
  }) {
14526
- const { totalWidth: d, sideWidth: p } = a, m = Ae((S) => S.background), g = Ae((S) => S.text), v = X((S) => S.getExpandedDomain), y = X((S) => S.marginWidth), { x: b } = Ge(d), w = 4, { handleHover: _ } = Fe({
14526
+ const { totalWidth: d, sideWidth: p } = a, m = Pe((S) => S.background), g = Pe((S) => S.text), v = X((S) => S.getExpandedDomain), y = X((S) => S.marginWidth), { x: b } = Ge(d), w = 4, { handleHover: _ } = Ae({
14527
14527
  onClick: c,
14528
14528
  onHover: u,
14529
14529
  onLeave: l,
@@ -14592,7 +14592,7 @@ function Bm({
14592
14592
  ] });
14593
14593
  }
14594
14594
  function Wm(e) {
14595
- const t = Ae((n) => n.text), r = Ae((n) => n.background);
14595
+ const t = Pe((n) => n.text), r = Pe((n) => n.background);
14596
14596
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
14597
14597
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
14598
14598
  /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 8, y: 16, children: e.snpId }),
@@ -14622,11 +14622,11 @@ function Qm({
14622
14622
  onLeave: u,
14623
14623
  tooltip: l
14624
14624
  }) {
14625
- const { totalWidth: h, sideWidth: d } = s, p = Ae((x) => x.background), { x: m } = Ge(h), g = i / 3, v = 2, y = z(() => t.map((x) => ({
14625
+ const { totalWidth: h, sideWidth: d } = s, p = Pe((x) => x.background), { x: m } = Ge(h), g = i / 3, v = 2, y = z(() => t.map((x) => ({
14626
14626
  ...x,
14627
14627
  pixelStart: m(x.start),
14628
14628
  pixelEnd: m(x.end)
14629
- })), [t, m]), { handleClick: b, handleHover: w, handleLeave: _ } = Fe({
14629
+ })), [t, m]), { handleClick: b, handleHover: w, handleLeave: _ } = Ae({
14630
14630
  onClick: a,
14631
14631
  onHover: c,
14632
14632
  onLeave: u,
@@ -14667,7 +14667,7 @@ function Qm({
14667
14667
  ] });
14668
14668
  }
14669
14669
  function zm(e) {
14670
- const t = Ae((n) => n.text), r = Ae((n) => n.background);
14670
+ const t = Pe((n) => n.text), r = Pe((n) => n.background);
14671
14671
  return /* @__PURE__ */ f.jsxs("g", { style: { filter: `drop-shadow(0 0 2px ${t})` }, children: [
14672
14672
  /* @__PURE__ */ f.jsx("rect", { width: 180, height: 50, y: 0, fill: r }),
14673
14673
  /* @__PURE__ */ f.jsx("text", { fontSize: 14, x: 5, y: 16, children: e.snpId }),
@@ -14682,11 +14682,11 @@ function zm(e) {
14682
14682
  ] });
14683
14683
  }
14684
14684
  function Um({ id: e }) {
14685
- const t = ee((h) => h.getTrack(e)), r = Ne((h) => h.data.get(e)), [n, i] = ae(void 0), o = Ne((h) => h.loading), a = X((h) => h.getTrackDimensions)();
14685
+ const t = ee((h) => h.getTrack(e)), r = Be((h) => h.data.get(e)), [n, i] = ae(void 0), o = Be((h) => h.loading), a = X((h) => h.getTrackDimensions)();
14686
14686
  de(() => {
14687
14687
  o || r != null && r.error || i(r == null ? void 0 : r.error);
14688
14688
  }, [o, r]);
14689
- const c = ee((h) => h.getPrevHeights(e)), u = z(() => `translate(0, ${c + ge})`, [c]), l = z(
14689
+ const c = ee((h) => h.getPrevHeights(e)), u = z(() => `translate(0, ${c + xe})`, [c]), l = z(
14690
14690
  () => t && r ? Hm(t, r, a) : /* @__PURE__ */ f.jsx(f.Fragment, {}),
14691
14691
  [t, r, a]
14692
14692
  );
@@ -14807,7 +14807,7 @@ function tu(e, t, r = !0) {
14807
14807
  c.href = "data:image/svg+xml;base64," + btoa(a), c.download = `${t}.svg`, c.click();
14808
14808
  }
14809
14809
  function Zm() {
14810
- const e = jt((v) => v.open), t = jt((v) => v.id), r = jt((v) => v.x), n = jt((v) => v.y), i = jt((v) => v.setContextMenu), o = Ee(null), s = ee((v) => v.getTrack(t || "")), a = Ne((v) => v.data.get(t || "")), c = ee((v) => v.editTrack), u = ee((v) => v.removeTrack), [l, h] = ae(null);
14810
+ const e = jt((v) => v.open), t = jt((v) => v.id), r = jt((v) => v.x), n = jt((v) => v.y), i = jt((v) => v.setContextMenu), o = Ee(null), s = ee((v) => v.getTrack(t || "")), a = Be((v) => v.data.get(t || "")), c = ee((v) => v.editTrack), u = ee((v) => v.removeTrack), [l, h] = ae(null);
14811
14811
  if (de(() => {
14812
14812
  const v = (y) => {
14813
14813
  o.current && !o.current.contains(y.target) && i(!1, t || "", r, n);
@@ -15025,7 +15025,7 @@ function uv(e, t, r) {
15025
15025
  var u;
15026
15026
  ou(o, a.current.hsva) || e.equal(u = e.fromHsva(o), a.current.color) || (a.current = { hsva: o, color: u }, n(u));
15027
15027
  }, [o, e, n]);
15028
- var c = $e(function(u) {
15028
+ var c = Ve(function(u) {
15029
15029
  s(function(l) {
15030
15030
  return Object.assign({}, l, u);
15031
15031
  });
@@ -15403,7 +15403,7 @@ const Qn = {
15403
15403
  padding: "6px 12px"
15404
15404
  };
15405
15405
  function Dv({ track: e }) {
15406
- const t = X((p) => p.getExpandedDomain), r = Ne((p) => p.data.get(e.id || "")), n = t(), i = e.color || "#ffffff", o = bv(i), s = hr(i, o ? 30 : -30), a = tn(i), c = () => {
15406
+ const t = X((p) => p.getExpandedDomain), r = Be((p) => p.data.get(e.id || "")), n = t(), i = e.color || "#ffffff", o = bv(i), s = hr(i, o ? 30 : -30), a = tn(i), c = () => {
15407
15407
  e.trackType === J.BigWig ? Ym(e.id, r == null ? void 0 : r.data, n) : e.trackType === J.BigBed && Xm(e.id, r == null ? void 0 : r.data, n);
15408
15408
  }, u = () => {
15409
15409
  tu(e.id, e.title, !0);
@@ -15616,7 +15616,7 @@ function Iv({ handleClose: e, color: t }) {
15616
15616
  );
15617
15617
  }
15618
15618
  function Nv() {
15619
- const e = Ft((b) => b.content), t = Ft((b) => b.x), r = Ft((b) => b.y), n = Ft((b) => b.show), [i, o] = ae(0), [s, a] = ae(0), [c, u] = ae({ width: 0, height: 0 }), l = X((b) => b.svgRef), h = Ee(null), d = X((b) => b.delta), p = X((b) => b.browserWidth), g = ee((b) => b.getTotalHeight()) + ge, v = 5, y = $e(() => {
15619
+ const e = Ft((b) => b.content), t = Ft((b) => b.x), r = Ft((b) => b.y), n = Ft((b) => b.show), [i, o] = ae(0), [s, a] = ae(0), [c, u] = ae({ width: 0, height: 0 }), l = X((b) => b.svgRef), h = Ee(null), d = X((b) => b.delta), p = X((b) => b.browserWidth), g = ee((b) => b.getTotalHeight()) + xe, v = 5, y = Ve(() => {
15620
15620
  if (!h.current || !l || !l.current) return;
15621
15621
  const b = Bc(l.current, t, r), w = b[0], _ = b[1], x = h.current.getBBox(), k = x.width, E = x.height;
15622
15622
  (c.width !== k || c.height !== E) && u({ width: k, height: E });
@@ -15638,38 +15638,26 @@ function Nv() {
15638
15638
  }, [n, e, t, r, p, g, l]), !n || d ? null : /* @__PURE__ */ f.jsx("g", { ref: h, id: "tooltip", transform: `translate(${i}, ${s})`, children: e });
15639
15639
  }
15640
15640
  function Pv({ children: e }) {
15641
- const t = X((s) => s.setSvgRef), r = Ee(null), n = ee((s) => s.getTotalHeight()), i = X((s) => s.browserWidth), o = Ne((s) => s.fetching);
15641
+ const t = X((o) => o.setSvgRef), r = Ee(null), n = ee((o) => o.getTotalHeight()), i = X((o) => o.browserWidth);
15642
15642
  return de(() => {
15643
15643
  t(r);
15644
- }, [t]), /* @__PURE__ */ f.jsxs(
15644
+ }, [t]), /* @__PURE__ */ f.jsx(
15645
15645
  "svg",
15646
15646
  {
15647
15647
  id: "browserSVG",
15648
15648
  ref: r,
15649
- viewBox: `0 0 ${i} ${n + ge}`,
15649
+ viewBox: `0 0 ${i} ${n + xe}`,
15650
15650
  width: "100%",
15651
15651
  height: "auto",
15652
15652
  style: {
15653
15653
  border: "1px solid #ccc"
15654
15654
  },
15655
- children: [
15656
- e,
15657
- o && /* @__PURE__ */ f.jsx(
15658
- "rect",
15659
- {
15660
- width: i,
15661
- height: n + ge,
15662
- fill: "#ffffff",
15663
- fillOpacity: 0.35,
15664
- style: { pointerEvents: "all" }
15665
- }
15666
- )
15667
- ]
15655
+ children: e
15668
15656
  }
15669
15657
  );
15670
15658
  }
15671
15659
  function Av() {
15672
- const e = X((m) => m.browserWidth), t = X((m) => m.marginWidth), r = ge, n = ee((m) => m.getTotalHeight()) + ge, [i, o] = ae([0, 0]), [s, a] = ae(!1), c = X((m) => m.svgRef), u = X((m) => m.domain), l = X((m) => m.setDomain), h = (m) => {
15660
+ const e = X((m) => m.browserWidth), t = X((m) => m.marginWidth), r = xe, n = ee((m) => m.getTotalHeight()) + xe, [i, o] = ae([0, 0]), [s, a] = ae(!1), c = X((m) => m.svgRef), u = X((m) => m.domain), l = X((m) => m.setDomain), h = (m) => {
15673
15661
  if (!c || !c.current) return null;
15674
15662
  const g = oa(m, c.current);
15675
15663
  g && (o([g.x, g.x]), a(!0));
@@ -15730,11 +15718,11 @@ function oa(e, t) {
15730
15718
  return n ? r.matrixTransform(n.inverse()) : null;
15731
15719
  }
15732
15720
  function Fv() {
15733
- const e = Ne((m) => m.fetching), t = Ne((m) => m.loading), r = X((m) => m.domain), n = X((m) => m.getExpandedDomain), [i, o] = ae(n()), s = X((m) => m.delta);
15721
+ const e = Be((m) => m.fetching), t = Be((m) => m.loading), r = X((m) => m.domain), n = X((m) => m.getExpandedDomain), [i, o] = ae(n()), s = X((m) => m.delta);
15734
15722
  de(() => {
15735
15723
  e || t || s !== 0 || o(n());
15736
15724
  }, [s, n, e, r, t]);
15737
- const a = X((m) => m.highlights), c = ee((m) => m.getTotalHeight()) + ge, u = X((m) => m.marginWidth), l = X((m) => m.getTrackDimensions), { totalWidth: h, sideWidth: d, viewWidth: p } = l();
15725
+ const a = X((m) => m.highlights), c = ee((m) => m.getTotalHeight()) + xe, u = X((m) => m.marginWidth), l = X((m) => m.getTrackDimensions), { totalWidth: h, sideWidth: d, viewWidth: p } = l();
15738
15726
  return /* @__PURE__ */ f.jsxs("g", { id: "highlights", width: p + u, height: c, transform: `translate(${-d}, 0)`, children: [
15739
15727
  /* @__PURE__ */ f.jsx("defs", { children: /* @__PURE__ */ f.jsx("clipPath", { id: "highlight-clip", children: /* @__PURE__ */ f.jsx("rect", { width: p, height: c, transform: `translate(${p + u}, 0)` }) }) }),
15740
15728
  /* @__PURE__ */ f.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ f.jsx(Yc, { id: "highlights", children: a.map((m) => {
@@ -15937,7 +15925,7 @@ function cu(e = []) {
15937
15925
  trackMargin: 0,
15938
15926
  titleSize: 0,
15939
15927
  totalVerticalMargin: 0,
15940
- wrapperHeight: ge
15928
+ wrapperHeight: xe
15941
15929
  };
15942
15930
  const o = r().getTrack(n);
15943
15931
  if (!o)