@weng-lab/genomebrowser 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genomebrowser.es.js +824 -821
- package/dist/genomebrowser.es.js.map +1 -1
- package/package.json +1 -1
package/dist/genomebrowser.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import de, { createContext as
|
|
1
|
+
import de, { createContext as tu, useContext as Et, useMemo as z, useEffect as pe, useRef as Te, useState as le, useCallback as Be, createElement as wi, Fragment as ru, useLayoutEffect as nu } from "react";
|
|
2
2
|
import Ka, { createPortal as Za } from "react-dom";
|
|
3
|
-
function
|
|
3
|
+
function iu(e, t) {
|
|
4
4
|
for (var r = 0; r < t.length; r++) {
|
|
5
5
|
const n = t[r];
|
|
6
6
|
if (typeof n != "string" && !Array.isArray(n)) {
|
|
@@ -30,7 +30,7 @@ var kr = { exports: {} }, Gt = {};
|
|
|
30
30
|
* LICENSE file in the root directory of this source tree.
|
|
31
31
|
*/
|
|
32
32
|
var ao;
|
|
33
|
-
function
|
|
33
|
+
function ou() {
|
|
34
34
|
if (ao) return Gt;
|
|
35
35
|
ao = 1;
|
|
36
36
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -62,7 +62,7 @@ var Xt = {};
|
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
63
|
*/
|
|
64
64
|
var so;
|
|
65
|
-
function
|
|
65
|
+
function au() {
|
|
66
66
|
return so || (so = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
67
67
|
function e(T) {
|
|
68
68
|
if (T == null) return null;
|
|
@@ -80,7 +80,7 @@ function ou() {
|
|
|
80
80
|
return "Suspense";
|
|
81
81
|
case O:
|
|
82
82
|
return "SuspenseList";
|
|
83
|
-
case
|
|
83
|
+
case D:
|
|
84
84
|
return "Activity";
|
|
85
85
|
}
|
|
86
86
|
if (typeof T == "object")
|
|
@@ -139,7 +139,7 @@ function ou() {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
function i() {
|
|
142
|
-
var T =
|
|
142
|
+
var T = C.A;
|
|
143
143
|
return T === null ? null : T.getOwner();
|
|
144
144
|
}
|
|
145
145
|
function o() {
|
|
@@ -206,7 +206,7 @@ function ou() {
|
|
|
206
206
|
var U = L.children;
|
|
207
207
|
if (U !== void 0)
|
|
208
208
|
if ($)
|
|
209
|
-
if (
|
|
209
|
+
if (F(U)) {
|
|
210
210
|
for ($ = 0; $ < U.length; $++)
|
|
211
211
|
f(U[$]);
|
|
212
212
|
Object.freeze && Object.freeze(U);
|
|
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
255
255
|
function f(T) {
|
|
256
256
|
typeof T == "object" && T !== null && T.$$typeof === p && T._store && (T._store.validated = 1);
|
|
257
257
|
}
|
|
258
|
-
var h = de, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"),
|
|
258
|
+
var h = de, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), E = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), C = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, I = Object.prototype.hasOwnProperty, F = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
259
259
|
return null;
|
|
260
260
|
};
|
|
261
261
|
h = {
|
|
@@ -268,7 +268,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
268
268
|
o
|
|
269
269
|
)(), ye = B(n(o)), H = {};
|
|
270
270
|
Xt.Fragment = y, Xt.jsx = function(T, L, P, $, N) {
|
|
271
|
-
var Q = 1e4 >
|
|
271
|
+
var Q = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
272
272
|
return l(
|
|
273
273
|
T,
|
|
274
274
|
L,
|
|
@@ -280,7 +280,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
280
280
|
Q ? B(n(T)) : ye
|
|
281
281
|
);
|
|
282
282
|
}, Xt.jsxs = function(T, L, P, $, N) {
|
|
283
|
-
var Q = 1e4 >
|
|
283
|
+
var Q = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
284
284
|
return l(
|
|
285
285
|
T,
|
|
286
286
|
L,
|
|
@@ -295,10 +295,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
295
295
|
})()), Xt;
|
|
296
296
|
}
|
|
297
297
|
var co;
|
|
298
|
-
function
|
|
299
|
-
return co || (co = 1, process.env.NODE_ENV === "production" ? kr.exports =
|
|
298
|
+
function su() {
|
|
299
|
+
return co || (co = 1, process.env.NODE_ENV === "production" ? kr.exports = ou() : kr.exports = au()), kr.exports;
|
|
300
300
|
}
|
|
301
|
-
var d =
|
|
301
|
+
var d = su(), Qn = function(e, t) {
|
|
302
302
|
return Qn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
303
303
|
r.__proto__ = n;
|
|
304
304
|
} || function(r, n) {
|
|
@@ -423,7 +423,7 @@ function Ce(e, t, r) {
|
|
|
423
423
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
424
424
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
425
425
|
}
|
|
426
|
-
var mn = "Invariant Violation", uo = Object.setPrototypeOf,
|
|
426
|
+
var mn = "Invariant Violation", uo = Object.setPrototypeOf, cu = uo === void 0 ? function(e, t) {
|
|
427
427
|
return e.__proto__ = t, e;
|
|
428
428
|
} : uo, ts = (
|
|
429
429
|
/** @class */
|
|
@@ -432,7 +432,7 @@ var mn = "Invariant Violation", uo = Object.setPrototypeOf, su = uo === void 0 ?
|
|
|
432
432
|
function t(r) {
|
|
433
433
|
r === void 0 && (r = mn);
|
|
434
434
|
var n = e.call(this, typeof r == "number" ? mn + ": " + r + " (see https://github.com/apollographql/invariant-packages)" : r) || this;
|
|
435
|
-
return n.framesToPop = 1, n.name = mn,
|
|
435
|
+
return n.framesToPop = 1, n.name = mn, cu(n, t.prototype), n;
|
|
436
436
|
}
|
|
437
437
|
return t;
|
|
438
438
|
})(Error)
|
|
@@ -441,10 +441,10 @@ function mt(e, t) {
|
|
|
441
441
|
if (!e)
|
|
442
442
|
throw new ts(t);
|
|
443
443
|
}
|
|
444
|
-
var rs = ["debug", "log", "warn", "error", "silent"],
|
|
444
|
+
var rs = ["debug", "log", "warn", "error", "silent"], uu = rs.indexOf("log");
|
|
445
445
|
function Or(e) {
|
|
446
446
|
return function() {
|
|
447
|
-
if (rs.indexOf(e) >=
|
|
447
|
+
if (rs.indexOf(e) >= uu) {
|
|
448
448
|
var t = console[e] || console.log;
|
|
449
449
|
return t.apply(console, arguments);
|
|
450
450
|
}
|
|
@@ -541,20 +541,20 @@ function Ar(e, t) {
|
|
|
541
541
|
if (!!!e)
|
|
542
542
|
throw new Error(t);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function lu(e) {
|
|
545
545
|
return typeof e == "object" && e !== null;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function fu(e, t) {
|
|
548
548
|
if (!!!e)
|
|
549
549
|
throw new Error(
|
|
550
550
|
"Unexpected invariant triggered."
|
|
551
551
|
);
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const hu = /\r\n|[\n\r]/g;
|
|
554
554
|
function Un(e, t) {
|
|
555
555
|
let r = 0, n = 1;
|
|
556
|
-
for (const i of e.body.matchAll(
|
|
557
|
-
if (typeof i.index == "number" ||
|
|
556
|
+
for (const i of e.body.matchAll(hu)) {
|
|
557
|
+
if (typeof i.index == "number" || fu(!1), i.index >= t)
|
|
558
558
|
break;
|
|
559
559
|
r = i.index + i[0].length, n += 1;
|
|
560
560
|
}
|
|
@@ -563,7 +563,7 @@ function Un(e, t) {
|
|
|
563
563
|
column: t + 1 - r
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function du(e) {
|
|
567
567
|
return os(
|
|
568
568
|
e.source,
|
|
569
569
|
Un(e.source, e.start)
|
|
@@ -596,7 +596,7 @@ function ho(e) {
|
|
|
596
596
|
return t.map(([n, i]) => n.padStart(r) + (i ? " " + i : "")).join(`
|
|
597
597
|
`);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function pu(e) {
|
|
600
600
|
const t = e[0];
|
|
601
601
|
return t == null || "kind" in t || "length" in t ? {
|
|
602
602
|
nodes: t,
|
|
@@ -648,7 +648,7 @@ class ki extends Error {
|
|
|
648
648
|
*/
|
|
649
649
|
constructor(t, ...r) {
|
|
650
650
|
var n, i, o;
|
|
651
|
-
const { nodes: a, source: s, positions: c, path: u, originalError: l, extensions: f } =
|
|
651
|
+
const { nodes: a, source: s, positions: c, path: u, originalError: l, extensions: f } = pu(r);
|
|
652
652
|
super(t), this.name = "GraphQLError", this.path = u ?? void 0, this.originalError = l ?? void 0, this.nodes = po(
|
|
653
653
|
Array.isArray(a) ? a : a ? [a] : void 0
|
|
654
654
|
);
|
|
@@ -656,7 +656,7 @@ class ki extends Error {
|
|
|
656
656
|
(n = this.nodes) === null || n === void 0 ? void 0 : n.map((m) => m.loc).filter((m) => m != null)
|
|
657
657
|
);
|
|
658
658
|
this.source = s ?? (h == null || (i = h[0]) === null || i === void 0 ? void 0 : i.source), this.positions = c ?? (h == null ? void 0 : h.map((m) => m.start)), this.locations = c && s ? c.map((m) => Un(s, m)) : h == null ? void 0 : h.map((m) => Un(m.source, m.start));
|
|
659
|
-
const p =
|
|
659
|
+
const p = lu(
|
|
660
660
|
l == null ? void 0 : l.extensions
|
|
661
661
|
) ? l == null ? void 0 : l.extensions : void 0;
|
|
662
662
|
this.extensions = (o = f ?? p) !== null && o !== void 0 ? o : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
@@ -698,7 +698,7 @@ class ki extends Error {
|
|
|
698
698
|
for (const r of this.nodes)
|
|
699
699
|
r.loc && (t += `
|
|
700
700
|
|
|
701
|
-
` +
|
|
701
|
+
` + du(r.loc));
|
|
702
702
|
else if (this.source && this.locations)
|
|
703
703
|
for (const r of this.locations)
|
|
704
704
|
t += `
|
|
@@ -722,7 +722,7 @@ function _e(e, t, r) {
|
|
|
722
722
|
positions: [t]
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
class
|
|
725
|
+
class mu {
|
|
726
726
|
/**
|
|
727
727
|
* The character offset at which this Node begins.
|
|
728
728
|
*/
|
|
@@ -867,10 +867,10 @@ const ss = {
|
|
|
867
867
|
UnionTypeExtension: ["name", "directives", "types"],
|
|
868
868
|
EnumTypeExtension: ["name", "directives", "values"],
|
|
869
869
|
InputObjectTypeExtension: ["name", "directives", "fields"]
|
|
870
|
-
},
|
|
870
|
+
}, vu = new Set(Object.keys(ss));
|
|
871
871
|
function mo(e) {
|
|
872
872
|
const t = e == null ? void 0 : e.kind;
|
|
873
|
-
return typeof t == "string" &&
|
|
873
|
+
return typeof t == "string" && vu.has(t);
|
|
874
874
|
}
|
|
875
875
|
var Lt;
|
|
876
876
|
(function(e) {
|
|
@@ -897,15 +897,15 @@ function cs(e) {
|
|
|
897
897
|
function us(e) {
|
|
898
898
|
return cs(e) || e === 95;
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function gu(e) {
|
|
901
901
|
return cs(e) || mr(e) || e === 95;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function yu(e) {
|
|
904
904
|
var t;
|
|
905
905
|
let r = Number.MAX_SAFE_INTEGER, n = null, i = -1;
|
|
906
906
|
for (let a = 0; a < e.length; ++a) {
|
|
907
907
|
var o;
|
|
908
|
-
const s = e[a], c =
|
|
908
|
+
const s = e[a], c = bu(s);
|
|
909
909
|
c !== s.length && (n = (o = n) !== null && o !== void 0 ? o : a, i = a, a !== 0 && c < r && (r = c));
|
|
910
910
|
}
|
|
911
911
|
return e.map((a, s) => s === 0 ? a : a.slice(r)).slice(
|
|
@@ -913,13 +913,13 @@ function gu(e) {
|
|
|
913
913
|
i + 1
|
|
914
914
|
);
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function bu(e) {
|
|
917
917
|
let t = 0;
|
|
918
918
|
for (; t < e.length && Yn(e.charCodeAt(t)); )
|
|
919
919
|
++t;
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function xu(e, t) {
|
|
923
923
|
const r = e.replace(/"""/g, '\\"""'), n = r.split(/\r\n|[\n\r]/g), i = n.length === 1, o = n.length > 1 && n.slice(1).every((p) => p.length === 0 || Yn(p.charCodeAt(0))), a = r.endsWith('\\"""'), s = e.endsWith('"') && !a, c = e.endsWith("\\"), u = s || c, l = (
|
|
924
924
|
// add leading and trailing new lines only if it improves readability
|
|
925
925
|
!i || e.length > 70 || u || o || a
|
|
@@ -934,7 +934,7 @@ var M;
|
|
|
934
934
|
(function(e) {
|
|
935
935
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
936
936
|
})(M || (M = {}));
|
|
937
|
-
class
|
|
937
|
+
class Eu {
|
|
938
938
|
/**
|
|
939
939
|
* The previously focused non-ignored token.
|
|
940
940
|
*/
|
|
@@ -971,14 +971,14 @@ class xu {
|
|
|
971
971
|
if (t.next)
|
|
972
972
|
t = t.next;
|
|
973
973
|
else {
|
|
974
|
-
const r =
|
|
974
|
+
const r = _u(this, t.end);
|
|
975
975
|
t.next = r, r.prev = t, t = r;
|
|
976
976
|
}
|
|
977
977
|
while (t.kind === M.COMMENT);
|
|
978
978
|
return t;
|
|
979
979
|
}
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function wu(e) {
|
|
982
982
|
return e === M.BANG || e === M.DOLLAR || e === M.AMP || e === M.PAREN_L || e === M.PAREN_R || e === M.SPREAD || e === M.COLON || e === M.EQUALS || e === M.AT || e === M.BRACKET_L || e === M.BRACKET_R || e === M.BRACE_L || e === M.PIPE || e === M.BRACE_R;
|
|
983
983
|
}
|
|
984
984
|
function Qt(e) {
|
|
@@ -1007,7 +1007,7 @@ function Ee(e, t, r, n, i) {
|
|
|
1007
1007
|
const o = e.line, a = 1 + r - e.lineStart;
|
|
1008
1008
|
return new as(t, r, n, o, a, i);
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function _u(e, t) {
|
|
1011
1011
|
const r = e.source.body, n = r.length;
|
|
1012
1012
|
let i = t;
|
|
1013
1013
|
for (; i < n; ) {
|
|
@@ -1048,7 +1048,7 @@ function wu(e, t) {
|
|
|
1048
1048
|
continue;
|
|
1049
1049
|
// Comment
|
|
1050
1050
|
case 35:
|
|
1051
|
-
return
|
|
1051
|
+
return Su(e, i);
|
|
1052
1052
|
// Token ::
|
|
1053
1053
|
// - Punctuator
|
|
1054
1054
|
// - Name
|
|
@@ -1089,12 +1089,12 @@ function wu(e, t) {
|
|
|
1089
1089
|
return Ee(e, M.BRACE_R, i, i + 1);
|
|
1090
1090
|
// StringValue
|
|
1091
1091
|
case 34:
|
|
1092
|
-
return r.charCodeAt(i + 1) === 34 && r.charCodeAt(i + 2) === 34 ?
|
|
1092
|
+
return r.charCodeAt(i + 1) === 34 && r.charCodeAt(i + 2) === 34 ? Lu(e, i) : ku(e, i);
|
|
1093
1093
|
}
|
|
1094
1094
|
if (mr(o) || o === 45)
|
|
1095
|
-
return
|
|
1095
|
+
return Tu(e, i, o);
|
|
1096
1096
|
if (us(o))
|
|
1097
|
-
return
|
|
1097
|
+
return Mu(e, i);
|
|
1098
1098
|
throw _e(
|
|
1099
1099
|
e.source,
|
|
1100
1100
|
i,
|
|
@@ -1103,7 +1103,7 @@ function wu(e, t) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
return Ee(e, M.EOF, n, n);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function Su(e, t) {
|
|
1107
1107
|
const r = e.source.body, n = r.length;
|
|
1108
1108
|
let i = t + 1;
|
|
1109
1109
|
for (; i < n; ) {
|
|
@@ -1125,7 +1125,7 @@ function _u(e, t) {
|
|
|
1125
1125
|
r.slice(t + 1, i)
|
|
1126
1126
|
);
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function Tu(e, t, r) {
|
|
1129
1129
|
const n = e.source.body;
|
|
1130
1130
|
let i = t, o = r, a = !1;
|
|
1131
1131
|
if (o === 45 && (o = n.charCodeAt(++i)), o === 48) {
|
|
@@ -1173,7 +1173,7 @@ function vn(e, t, r) {
|
|
|
1173
1173
|
++i;
|
|
1174
1174
|
return i;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function ku(e, t) {
|
|
1177
1177
|
const r = e.source.body, n = r.length;
|
|
1178
1178
|
let i = t + 1, o = i, a = "";
|
|
1179
1179
|
for (; i < n; ) {
|
|
@@ -1182,7 +1182,7 @@ function Tu(e, t) {
|
|
|
1182
1182
|
return a += r.slice(o, i), Ee(e, M.STRING, t, i + 1, a);
|
|
1183
1183
|
if (s === 92) {
|
|
1184
1184
|
a += r.slice(o, i);
|
|
1185
|
-
const c = r.charCodeAt(i + 1) === 117 ? r.charCodeAt(i + 2) === 123 ?
|
|
1185
|
+
const c = r.charCodeAt(i + 1) === 117 ? r.charCodeAt(i + 2) === 123 ? Ou(e, i) : Cu(e, i) : Du(e, i);
|
|
1186
1186
|
a += c.value, i += c.size, o = i;
|
|
1187
1187
|
continue;
|
|
1188
1188
|
}
|
|
@@ -1204,7 +1204,7 @@ function Tu(e, t) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
throw _e(e.source, i, "Unterminated string.");
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1207
|
+
function Ou(e, t) {
|
|
1208
1208
|
const r = e.source.body;
|
|
1209
1209
|
let n = 0, i = 3;
|
|
1210
1210
|
for (; i < 12; ) {
|
|
@@ -1229,7 +1229,7 @@ function ku(e, t) {
|
|
|
1229
1229
|
)}".`
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Cu(e, t) {
|
|
1233
1233
|
const r = e.source.body, n = vo(r, t + 2);
|
|
1234
1234
|
if (Qt(n))
|
|
1235
1235
|
return {
|
|
@@ -1256,7 +1256,7 @@ function vo(e, t) {
|
|
|
1256
1256
|
function ir(e) {
|
|
1257
1257
|
return e >= 48 && e <= 57 ? e - 48 : e >= 65 && e <= 70 ? e - 55 : e >= 97 && e <= 102 ? e - 87 : -1;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function Du(e, t) {
|
|
1260
1260
|
const r = e.source.body;
|
|
1261
1261
|
switch (r.charCodeAt(t + 1)) {
|
|
1262
1262
|
case 34:
|
|
@@ -1310,7 +1310,7 @@ function Cu(e, t) {
|
|
|
1310
1310
|
)}".`
|
|
1311
1311
|
);
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Lu(e, t) {
|
|
1314
1314
|
const r = e.source.body, n = r.length;
|
|
1315
1315
|
let i = e.lineStart, o = t + 3, a = o, s = "";
|
|
1316
1316
|
const c = [];
|
|
@@ -1324,7 +1324,7 @@ function Du(e, t) {
|
|
|
1324
1324
|
t,
|
|
1325
1325
|
o + 3,
|
|
1326
1326
|
// Return a string of the lines joined with U+000A.
|
|
1327
|
-
|
|
1327
|
+
yu(c).join(`
|
|
1328
1328
|
`)
|
|
1329
1329
|
);
|
|
1330
1330
|
return e.line += c.length - 1, e.lineStart = i, l;
|
|
@@ -1353,12 +1353,12 @@ function Du(e, t) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
throw _e(e.source, o, "Unterminated string.");
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Mu(e, t) {
|
|
1357
1357
|
const r = e.source.body, n = r.length;
|
|
1358
1358
|
let i = t + 1;
|
|
1359
1359
|
for (; i < n; ) {
|
|
1360
1360
|
const o = r.charCodeAt(i);
|
|
1361
|
-
if (
|
|
1361
|
+
if (gu(o))
|
|
1362
1362
|
++i;
|
|
1363
1363
|
else
|
|
1364
1364
|
break;
|
|
@@ -1371,7 +1371,7 @@ function Lu(e, t) {
|
|
|
1371
1371
|
r.slice(t, i)
|
|
1372
1372
|
);
|
|
1373
1373
|
}
|
|
1374
|
-
const
|
|
1374
|
+
const ju = 10, hs = 2;
|
|
1375
1375
|
function Oi(e) {
|
|
1376
1376
|
return tn(e, []);
|
|
1377
1377
|
}
|
|
@@ -1382,45 +1382,45 @@ function tn(e, t) {
|
|
|
1382
1382
|
case "function":
|
|
1383
1383
|
return e.name ? `[function ${e.name}]` : "[function]";
|
|
1384
1384
|
case "object":
|
|
1385
|
-
return
|
|
1385
|
+
return Ru(e, t);
|
|
1386
1386
|
default:
|
|
1387
1387
|
return String(e);
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Ru(e, t) {
|
|
1391
1391
|
if (e === null)
|
|
1392
1392
|
return "null";
|
|
1393
1393
|
if (t.includes(e))
|
|
1394
1394
|
return "[Circular]";
|
|
1395
1395
|
const r = [...t, e];
|
|
1396
|
-
if (
|
|
1396
|
+
if (Iu(e)) {
|
|
1397
1397
|
const n = e.toJSON();
|
|
1398
1398
|
if (n !== e)
|
|
1399
1399
|
return typeof n == "string" ? n : tn(n, r);
|
|
1400
1400
|
} else if (Array.isArray(e))
|
|
1401
|
-
return
|
|
1402
|
-
return
|
|
1401
|
+
return Pu(e, r);
|
|
1402
|
+
return Nu(e, r);
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Iu(e) {
|
|
1405
1405
|
return typeof e.toJSON == "function";
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function Nu(e, t) {
|
|
1408
1408
|
const r = Object.entries(e);
|
|
1409
|
-
return r.length === 0 ? "{}" : t.length > hs ? "[" +
|
|
1409
|
+
return r.length === 0 ? "{}" : t.length > hs ? "[" + Au(e) + "]" : "{ " + r.map(
|
|
1410
1410
|
([i, o]) => i + ": " + tn(o, t)
|
|
1411
1411
|
).join(", ") + " }";
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Pu(e, t) {
|
|
1414
1414
|
if (e.length === 0)
|
|
1415
1415
|
return "[]";
|
|
1416
1416
|
if (t.length > hs)
|
|
1417
1417
|
return "[Array]";
|
|
1418
|
-
const r = Math.min(
|
|
1418
|
+
const r = Math.min(ju, e.length), n = e.length - r, i = [];
|
|
1419
1419
|
for (let o = 0; o < r; ++o)
|
|
1420
1420
|
i.push(tn(e[o], t));
|
|
1421
1421
|
return n === 1 ? i.push("... 1 more item") : n > 1 && i.push(`... ${n} more items`), "[" + i.join(", ") + "]";
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Au(e) {
|
|
1424
1424
|
const t = Object.prototype.toString.call(e).replace(/^\[object /, "").replace(/]$/, "");
|
|
1425
1425
|
if (t === "Object" && typeof e.constructor == "function") {
|
|
1426
1426
|
const r = e.constructor.name;
|
|
@@ -1429,11 +1429,11 @@ function Pu(e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
return t;
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
process.env.NODE_ENV === "production",
|
|
1432
|
+
const Fu = globalThis.process && // eslint-disable-next-line no-undef
|
|
1433
|
+
process.env.NODE_ENV === "production", qu = (
|
|
1434
1434
|
/* c8 ignore next 6 */
|
|
1435
1435
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
1436
|
-
|
|
1436
|
+
Fu ? function(t, r) {
|
|
1437
1437
|
return t instanceof r;
|
|
1438
1438
|
} : function(t, r) {
|
|
1439
1439
|
if (t instanceof r)
|
|
@@ -1480,20 +1480,20 @@ class ds {
|
|
|
1480
1480
|
return "Source";
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
return
|
|
1483
|
+
function Vu(e) {
|
|
1484
|
+
return qu(e, ds);
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1487
|
-
const r = new
|
|
1486
|
+
function $u(e, t) {
|
|
1487
|
+
const r = new Bu(e, t), n = r.parseDocument();
|
|
1488
1488
|
return Object.defineProperty(n, "tokenCount", {
|
|
1489
1489
|
enumerable: !1,
|
|
1490
1490
|
value: r.tokenCount
|
|
1491
1491
|
}), n;
|
|
1492
1492
|
}
|
|
1493
|
-
class
|
|
1493
|
+
class Bu {
|
|
1494
1494
|
constructor(t, r = {}) {
|
|
1495
|
-
const n =
|
|
1496
|
-
this._lexer = new
|
|
1495
|
+
const n = Vu(t) ? t : new ds(t);
|
|
1496
|
+
this._lexer = new Eu(n), this._options = r, this._tokenCounter = 0;
|
|
1497
1497
|
}
|
|
1498
1498
|
get tokenCount() {
|
|
1499
1499
|
return this._tokenCounter;
|
|
@@ -2463,7 +2463,7 @@ class $u {
|
|
|
2463
2463
|
* given parsed object.
|
|
2464
2464
|
*/
|
|
2465
2465
|
node(t, r) {
|
|
2466
|
-
return this._options.noLocation !== !0 && (r.loc = new
|
|
2466
|
+
return this._options.noLocation !== !0 && (r.loc = new mu(
|
|
2467
2467
|
t,
|
|
2468
2468
|
this._lexer.lastToken,
|
|
2469
2469
|
this._lexer.source
|
|
@@ -2599,16 +2599,16 @@ function Dr(e) {
|
|
|
2599
2599
|
return ps(e.kind) + (t != null ? ` "${t}"` : "");
|
|
2600
2600
|
}
|
|
2601
2601
|
function ps(e) {
|
|
2602
|
-
return
|
|
2602
|
+
return wu(e) ? `"${e}"` : e;
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
return `"${e.replace(
|
|
2604
|
+
function Wu(e) {
|
|
2605
|
+
return `"${e.replace(Qu, zu)}"`;
|
|
2606
2606
|
}
|
|
2607
|
-
const
|
|
2608
|
-
function
|
|
2609
|
-
return
|
|
2607
|
+
const Qu = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
2608
|
+
function zu(e) {
|
|
2609
|
+
return Uu[e.charCodeAt(0)];
|
|
2610
2610
|
}
|
|
2611
|
-
const
|
|
2611
|
+
const Uu = [
|
|
2612
2612
|
"\\u0000",
|
|
2613
2613
|
"\\u0001",
|
|
2614
2614
|
"\\u0002",
|
|
@@ -2778,7 +2778,7 @@ const zu = [
|
|
|
2778
2778
|
function qe(e, t, r = ss) {
|
|
2779
2779
|
const n = /* @__PURE__ */ new Map();
|
|
2780
2780
|
for (const g of Object.values(A))
|
|
2781
|
-
n.set(g,
|
|
2781
|
+
n.set(g, Hu(t, g));
|
|
2782
2782
|
let i, o = Array.isArray(e), a = [e], s = -1, c = [], u = e, l, f;
|
|
2783
2783
|
const h = [], p = [];
|
|
2784
2784
|
do {
|
|
@@ -2839,7 +2839,7 @@ function qe(e, t, r = ss) {
|
|
|
2839
2839
|
} while (i !== void 0);
|
|
2840
2840
|
return c.length !== 0 ? c[c.length - 1][1] : e;
|
|
2841
2841
|
}
|
|
2842
|
-
function
|
|
2842
|
+
function Hu(e, t) {
|
|
2843
2843
|
const r = e[t];
|
|
2844
2844
|
return typeof r == "object" ? r : typeof r == "function" ? {
|
|
2845
2845
|
enter: r,
|
|
@@ -2849,10 +2849,10 @@ function Uu(e, t) {
|
|
|
2849
2849
|
leave: e.leave
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2853
|
-
return qe(e,
|
|
2852
|
+
function Yu(e) {
|
|
2853
|
+
return qe(e, Xu);
|
|
2854
2854
|
}
|
|
2855
|
-
const
|
|
2855
|
+
const Gu = 80, Xu = {
|
|
2856
2856
|
Name: {
|
|
2857
2857
|
leave: (e) => e.value
|
|
2858
2858
|
},
|
|
@@ -2888,7 +2888,7 @@ const Yu = 80, Gu = {
|
|
|
2888
2888
|
leave({ alias: e, name: t, arguments: r, directives: n, selectionSet: i }) {
|
|
2889
2889
|
const o = te("", e, ": ") + t;
|
|
2890
2890
|
let a = o + te("(", V(r, ", "), ")");
|
|
2891
|
-
return a.length >
|
|
2891
|
+
return a.length > Gu && (a = o + te(`(
|
|
2892
2892
|
`, Fr(V(r, `
|
|
2893
2893
|
`)), `
|
|
2894
2894
|
)`)), V([a, V(n, " "), i], " ");
|
|
@@ -2926,7 +2926,7 @@ const Yu = 80, Gu = {
|
|
|
2926
2926
|
leave: ({ value: e }) => e
|
|
2927
2927
|
},
|
|
2928
2928
|
StringValue: {
|
|
2929
|
-
leave: ({ value: e, block: t }) => t ?
|
|
2929
|
+
leave: ({ value: e, block: t }) => t ? xu(e) : Wu(e)
|
|
2930
2930
|
},
|
|
2931
2931
|
BooleanValue: {
|
|
2932
2932
|
leave: ({ value: e }) => e ? "true" : "false"
|
|
@@ -3116,7 +3116,7 @@ function yo(e) {
|
|
|
3116
3116
|
}
|
|
3117
3117
|
function Er(e, t) {
|
|
3118
3118
|
var r = e.directives;
|
|
3119
|
-
return !r || !r.length ? !0 :
|
|
3119
|
+
return !r || !r.length ? !0 : Zu(r).every(function(n) {
|
|
3120
3120
|
var i = n.directive, o = n.ifArgument, a = !1;
|
|
3121
3121
|
return o.value.kind === "Variable" ? (a = t && t[o.value.name.value], R(a !== void 0, 106, i.name.value)) : a = o.value.value, i.name.value === "skip" ? !a : a;
|
|
3122
3122
|
});
|
|
@@ -3130,17 +3130,17 @@ function vr(e, t, r) {
|
|
|
3130
3130
|
}
|
|
3131
3131
|
}), r ? !n.size : n.size < i;
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function Ju(e) {
|
|
3134
3134
|
return e && vr(["client", "export"], e, !0);
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3136
|
+
function Ku(e) {
|
|
3137
3137
|
var t = e.name.value;
|
|
3138
3138
|
return t === "skip" || t === "include";
|
|
3139
3139
|
}
|
|
3140
|
-
function
|
|
3140
|
+
function Zu(e) {
|
|
3141
3141
|
var t = [];
|
|
3142
3142
|
return e && e.length && e.forEach(function(r) {
|
|
3143
|
-
if (
|
|
3143
|
+
if (Ku(r)) {
|
|
3144
3144
|
var n = r.arguments, i = r.name.value;
|
|
3145
3145
|
R(n && n.length === 1, 107, i);
|
|
3146
3146
|
var o = n[0];
|
|
@@ -3150,7 +3150,7 @@ function Ku(e) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
}), t;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function el(e) {
|
|
3154
3154
|
var t, r, n = (t = e.directives) === null || t === void 0 ? void 0 : t.find(function(o) {
|
|
3155
3155
|
var a = o.name;
|
|
3156
3156
|
return a.value === "unmask";
|
|
@@ -3163,9 +3163,9 @@ function Zu(e) {
|
|
|
3163
3163
|
});
|
|
3164
3164
|
return globalThis.__DEV__ !== !1 && i && (i.value.kind === A.VARIABLE ? globalThis.__DEV__ !== !1 && R.warn(110) : i.value.kind !== A.STRING ? globalThis.__DEV__ !== !1 && R.warn(111) : i.value.value !== "migrate" && globalThis.__DEV__ !== !1 && R.warn(112, i.value.value)), i && "value" in i.value && i.value.value === "migrate" ? "migrate" : "unmask";
|
|
3165
3165
|
}
|
|
3166
|
-
const
|
|
3166
|
+
const tl = () => /* @__PURE__ */ Object.create(null), { forEach: rl, slice: bo } = Array.prototype, { hasOwnProperty: nl } = Object.prototype;
|
|
3167
3167
|
class Xe {
|
|
3168
|
-
constructor(t = !0, r =
|
|
3168
|
+
constructor(t = !0, r = tl) {
|
|
3169
3169
|
this.weakness = t, this.makeData = r;
|
|
3170
3170
|
}
|
|
3171
3171
|
lookup() {
|
|
@@ -3173,7 +3173,7 @@ class Xe {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
lookupArray(t) {
|
|
3175
3175
|
let r = this;
|
|
3176
|
-
return
|
|
3176
|
+
return rl.call(t, (n) => r = r.getChildTrie(n)), nl.call(r, "data") ? r.data : r.data = this.makeData(bo.call(t));
|
|
3177
3177
|
}
|
|
3178
3178
|
peek() {
|
|
3179
3179
|
return this.peekArray(arguments);
|
|
@@ -3204,10 +3204,10 @@ class Xe {
|
|
|
3204
3204
|
return n || r.set(t, n = new Xe(this.weakness, this.makeData)), n;
|
|
3205
3205
|
}
|
|
3206
3206
|
mapFor(t, r) {
|
|
3207
|
-
return this.weakness &&
|
|
3207
|
+
return this.weakness && il(t) ? this.weak || (r ? this.weak = /* @__PURE__ */ new WeakMap() : void 0) : this.strong || (r ? this.strong = /* @__PURE__ */ new Map() : void 0);
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
|
-
function
|
|
3210
|
+
function il(e) {
|
|
3211
3211
|
switch (typeof e) {
|
|
3212
3212
|
case "object":
|
|
3213
3213
|
if (e === null)
|
|
@@ -3222,7 +3222,7 @@ var ms = Ae(function() {
|
|
|
3222
3222
|
return navigator.product;
|
|
3223
3223
|
}) == "ReactNative", wt = typeof WeakMap == "function" && !(ms && !global.HermesInternal), Ci = typeof WeakSet == "function", Di = typeof Symbol == "function" && typeof Symbol.for == "function", nn = Di && Symbol.asyncIterator, vs = typeof Ae(function() {
|
|
3224
3224
|
return window.document.createElement;
|
|
3225
|
-
}) == "function",
|
|
3225
|
+
}) == "function", ol = (
|
|
3226
3226
|
// Following advice found in this comment from @domenic (maintainer of jsdom):
|
|
3227
3227
|
// https://github.com/jsdom/jsdom/issues/1537#issuecomment-229405327
|
|
3228
3228
|
//
|
|
@@ -3234,11 +3234,11 @@ var ms = Ae(function() {
|
|
|
3234
3234
|
Ae(function() {
|
|
3235
3235
|
return navigator.userAgent.indexOf("jsdom") >= 0;
|
|
3236
3236
|
}) || !1
|
|
3237
|
-
),
|
|
3237
|
+
), al = (vs || ms) && !ol;
|
|
3238
3238
|
function ve(e) {
|
|
3239
3239
|
return e !== null && typeof e == "object";
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function sl(e, t) {
|
|
3242
3242
|
var r = t, n = [];
|
|
3243
3243
|
e.definitions.forEach(function(o) {
|
|
3244
3244
|
if (o.kind === "OperationDefinition")
|
|
@@ -3292,7 +3292,7 @@ function on(e, t) {
|
|
|
3292
3292
|
return null;
|
|
3293
3293
|
}
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function cl(e) {
|
|
3296
3296
|
var t = !0;
|
|
3297
3297
|
return qe(e, {
|
|
3298
3298
|
FragmentSpread: function(r) {
|
|
@@ -3303,10 +3303,10 @@ function sl(e) {
|
|
|
3303
3303
|
}
|
|
3304
3304
|
}), t;
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function ul() {
|
|
3307
3307
|
}
|
|
3308
3308
|
class Gn {
|
|
3309
|
-
constructor(t = 1 / 0, r =
|
|
3309
|
+
constructor(t = 1 / 0, r = ul) {
|
|
3310
3310
|
this.max = t, this.dispose = r, this.map = /* @__PURE__ */ new Map(), this.newest = null, this.oldest = null;
|
|
3311
3311
|
}
|
|
3312
3312
|
has(t) {
|
|
@@ -3347,28 +3347,28 @@ class Gn {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
function Xn() {
|
|
3349
3349
|
}
|
|
3350
|
-
const
|
|
3350
|
+
const ll = Xn, fl = typeof WeakRef < "u" ? WeakRef : function(e) {
|
|
3351
3351
|
return { deref: () => e };
|
|
3352
|
-
},
|
|
3352
|
+
}, hl = typeof WeakMap < "u" ? WeakMap : Map, dl = typeof FinalizationRegistry < "u" ? FinalizationRegistry : function() {
|
|
3353
3353
|
return {
|
|
3354
3354
|
register: Xn,
|
|
3355
3355
|
unregister: Xn
|
|
3356
3356
|
};
|
|
3357
|
-
},
|
|
3357
|
+
}, pl = 10024;
|
|
3358
3358
|
class Ur {
|
|
3359
|
-
constructor(t = 1 / 0, r =
|
|
3360
|
-
this.max = t, this.dispose = r, this.map = new
|
|
3359
|
+
constructor(t = 1 / 0, r = ll) {
|
|
3360
|
+
this.max = t, this.dispose = r, this.map = new hl(), this.newest = null, this.oldest = null, this.unfinalizedNodes = /* @__PURE__ */ new Set(), this.finalizationScheduled = !1, this.size = 0, this.finalize = () => {
|
|
3361
3361
|
const n = this.unfinalizedNodes.values();
|
|
3362
|
-
for (let i = 0; i <
|
|
3362
|
+
for (let i = 0; i < pl; i++) {
|
|
3363
3363
|
const o = n.next().value;
|
|
3364
3364
|
if (!o)
|
|
3365
3365
|
break;
|
|
3366
3366
|
this.unfinalizedNodes.delete(o);
|
|
3367
3367
|
const a = o.key;
|
|
3368
|
-
delete o.key, o.keyRef = new
|
|
3368
|
+
delete o.key, o.keyRef = new fl(a), this.registry.register(a, o, o);
|
|
3369
3369
|
}
|
|
3370
3370
|
this.unfinalizedNodes.size > 0 ? queueMicrotask(this.finalize) : this.finalizationScheduled = !1;
|
|
3371
|
-
}, this.registry = new
|
|
3371
|
+
}, this.registry = new dl(this.deleteNode.bind(this));
|
|
3372
3372
|
}
|
|
3373
3373
|
has(t) {
|
|
3374
3374
|
return this.map.has(t);
|
|
@@ -3423,18 +3423,18 @@ var Li = function(e, t) {
|
|
|
3423
3423
|
var o = Ur.prototype.set.call(this, n, i);
|
|
3424
3424
|
return gs(this), o;
|
|
3425
3425
|
}, r;
|
|
3426
|
-
},
|
|
3426
|
+
}, ml = function(e, t) {
|
|
3427
3427
|
var r = new Gn(e, t);
|
|
3428
3428
|
return r.set = function(n, i) {
|
|
3429
3429
|
var o = Gn.prototype.set.call(this, n, i);
|
|
3430
3430
|
return gs(this), o;
|
|
3431
3431
|
}, r;
|
|
3432
|
-
},
|
|
3432
|
+
}, vl = Symbol.for("apollo.cacheSize"), Qe = k({}, zr[vl]), pt = {};
|
|
3433
3433
|
function Mi(e, t) {
|
|
3434
3434
|
pt[e] = t;
|
|
3435
3435
|
}
|
|
3436
|
-
var
|
|
3437
|
-
function
|
|
3436
|
+
var gl = globalThis.__DEV__ !== !1 ? El : void 0, yl = globalThis.__DEV__ !== !1 ? wl : void 0, bl = globalThis.__DEV__ !== !1 ? ys : void 0;
|
|
3437
|
+
function xl() {
|
|
3438
3438
|
var e = {
|
|
3439
3439
|
parser: 1e3,
|
|
3440
3440
|
canonicalStringify: 1e3,
|
|
@@ -3459,12 +3459,12 @@ function bl() {
|
|
|
3459
3459
|
];
|
|
3460
3460
|
}));
|
|
3461
3461
|
}
|
|
3462
|
-
function
|
|
3462
|
+
function El() {
|
|
3463
3463
|
var e, t, r, n, i;
|
|
3464
3464
|
if (globalThis.__DEV__ === !1)
|
|
3465
3465
|
throw new Error("only supported in development mode");
|
|
3466
3466
|
return {
|
|
3467
|
-
limits:
|
|
3467
|
+
limits: xl(),
|
|
3468
3468
|
sizes: k({ print: (e = pt.print) === null || e === void 0 ? void 0 : e.call(pt), parser: (t = pt.parser) === null || t === void 0 ? void 0 : t.call(pt), canonicalStringify: (r = pt.canonicalStringify) === null || r === void 0 ? void 0 : r.call(pt), links: Kn(this.link), queryManager: {
|
|
3469
3469
|
getDocumentInfo: this.queryManager.transformCache.size,
|
|
3470
3470
|
documentTransforms: xs(this.queryManager.documentTransform)
|
|
@@ -3478,7 +3478,7 @@ function ys() {
|
|
|
3478
3478
|
}
|
|
3479
3479
|
};
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3481
|
+
function wl() {
|
|
3482
3482
|
var e = this.config.fragments;
|
|
3483
3483
|
return k(k({}, ys.apply(this)), { addTypenameDocumentTransform: xs(this.addTypenameTransform), inMemoryCache: {
|
|
3484
3484
|
executeSelectionSet: ot(this.storeReader.executeSelectionSet),
|
|
@@ -3490,11 +3490,11 @@ function El() {
|
|
|
3490
3490
|
transform: ot(e == null ? void 0 : e.transform)
|
|
3491
3491
|
} });
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function _l(e) {
|
|
3494
3494
|
return !!e && "dirtyKey" in e;
|
|
3495
3495
|
}
|
|
3496
3496
|
function ot(e) {
|
|
3497
|
-
return
|
|
3497
|
+
return _l(e) ? e.size : void 0;
|
|
3498
3498
|
}
|
|
3499
3499
|
function bs(e) {
|
|
3500
3500
|
return e != null;
|
|
@@ -3516,10 +3516,10 @@ function Kn(e) {
|
|
|
3516
3516
|
], Kn(e == null ? void 0 : e.left), !0), Kn(e == null ? void 0 : e.right), !0).filter(bs) : [];
|
|
3517
3517
|
}
|
|
3518
3518
|
var st = Object.assign(function(t) {
|
|
3519
|
-
return JSON.stringify(t,
|
|
3519
|
+
return JSON.stringify(t, Sl);
|
|
3520
3520
|
}, {
|
|
3521
3521
|
reset: function() {
|
|
3522
|
-
Mt = new
|
|
3522
|
+
Mt = new ml(
|
|
3523
3523
|
Qe.canonicalStringify || 1e3
|
|
3524
3524
|
/* defaultCacheSizes.canonicalStringify */
|
|
3525
3525
|
);
|
|
@@ -3530,12 +3530,12 @@ globalThis.__DEV__ !== !1 && Mi("canonicalStringify", function() {
|
|
|
3530
3530
|
});
|
|
3531
3531
|
var Mt;
|
|
3532
3532
|
st.reset();
|
|
3533
|
-
function
|
|
3533
|
+
function Sl(e, t) {
|
|
3534
3534
|
if (t && typeof t == "object") {
|
|
3535
3535
|
var r = Object.getPrototypeOf(t);
|
|
3536
3536
|
if (r === Object.prototype || r === null) {
|
|
3537
3537
|
var n = Object.keys(t);
|
|
3538
|
-
if (n.every(
|
|
3538
|
+
if (n.every(Tl))
|
|
3539
3539
|
return t;
|
|
3540
3540
|
var i = JSON.stringify(n), o = Mt.get(i);
|
|
3541
3541
|
if (!o) {
|
|
@@ -3551,7 +3551,7 @@ function _l(e, t) {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
return t;
|
|
3553
3553
|
}
|
|
3554
|
-
function
|
|
3554
|
+
function Tl(e, t, r) {
|
|
3555
3555
|
return t === 0 || r[t - 1] <= e;
|
|
3556
3556
|
}
|
|
3557
3557
|
function Pt(e) {
|
|
@@ -3560,62 +3560,62 @@ function Pt(e) {
|
|
|
3560
3560
|
function se(e) {
|
|
3561
3561
|
return !!(e && typeof e == "object" && typeof e.__ref == "string");
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function kl(e) {
|
|
3564
3564
|
return ve(e) && e.kind === "Document" && Array.isArray(e.definitions);
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function Ol(e) {
|
|
3567
3567
|
return e.kind === "StringValue";
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function Cl(e) {
|
|
3570
3570
|
return e.kind === "BooleanValue";
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3572
|
+
function Dl(e) {
|
|
3573
3573
|
return e.kind === "IntValue";
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Ll(e) {
|
|
3576
3576
|
return e.kind === "FloatValue";
|
|
3577
3577
|
}
|
|
3578
|
-
function
|
|
3578
|
+
function Ml(e) {
|
|
3579
3579
|
return e.kind === "Variable";
|
|
3580
3580
|
}
|
|
3581
|
-
function
|
|
3581
|
+
function jl(e) {
|
|
3582
3582
|
return e.kind === "ObjectValue";
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function Rl(e) {
|
|
3585
3585
|
return e.kind === "ListValue";
|
|
3586
3586
|
}
|
|
3587
|
-
function
|
|
3587
|
+
function Il(e) {
|
|
3588
3588
|
return e.kind === "EnumValue";
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3590
|
+
function Nl(e) {
|
|
3591
3591
|
return e.kind === "NullValue";
|
|
3592
3592
|
}
|
|
3593
3593
|
function Vt(e, t, r, n) {
|
|
3594
|
-
if (
|
|
3594
|
+
if (Dl(r) || Ll(r))
|
|
3595
3595
|
e[t.value] = Number(r.value);
|
|
3596
|
-
else if (
|
|
3596
|
+
else if (Cl(r) || Ol(r))
|
|
3597
3597
|
e[t.value] = r.value;
|
|
3598
|
-
else if (
|
|
3598
|
+
else if (jl(r)) {
|
|
3599
3599
|
var i = {};
|
|
3600
3600
|
r.fields.map(function(a) {
|
|
3601
3601
|
return Vt(i, a.name, a.value, n);
|
|
3602
3602
|
}), e[t.value] = i;
|
|
3603
|
-
} else if (
|
|
3603
|
+
} else if (Ml(r)) {
|
|
3604
3604
|
var o = (n || {})[r.name.value];
|
|
3605
3605
|
e[t.value] = o;
|
|
3606
|
-
} else if (
|
|
3606
|
+
} else if (Rl(r))
|
|
3607
3607
|
e[t.value] = r.values.map(function(a) {
|
|
3608
3608
|
var s = {};
|
|
3609
3609
|
return Vt(s, t, a, n), s[t.value];
|
|
3610
3610
|
});
|
|
3611
|
-
else if (Rl(r))
|
|
3612
|
-
e[t.value] = r.value;
|
|
3613
3611
|
else if (Il(r))
|
|
3612
|
+
e[t.value] = r.value;
|
|
3613
|
+
else if (Nl(r))
|
|
3614
3614
|
e[t.value] = null;
|
|
3615
3615
|
else
|
|
3616
3616
|
throw je(124, t.value, r.kind);
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function Pl(e, t) {
|
|
3619
3619
|
var r = null;
|
|
3620
3620
|
e.directives && (r = {}, e.directives.forEach(function(i) {
|
|
3621
3621
|
r[i.name.value] = {}, i.arguments && i.arguments.forEach(function(o) {
|
|
@@ -3629,7 +3629,7 @@ function Nl(e, t) {
|
|
|
3629
3629
|
return Vt(n, o, a, t);
|
|
3630
3630
|
})), Es(e.name.value, n, r);
|
|
3631
3631
|
}
|
|
3632
|
-
var
|
|
3632
|
+
var Al = [
|
|
3633
3633
|
"connection",
|
|
3634
3634
|
"include",
|
|
3635
3635
|
"skip",
|
|
@@ -3654,7 +3654,7 @@ var Pl = [
|
|
|
3654
3654
|
o += "(".concat(a, ")");
|
|
3655
3655
|
}
|
|
3656
3656
|
return r && Object.keys(r).forEach(function(s) {
|
|
3657
|
-
|
|
3657
|
+
Al.indexOf(s) === -1 && (r[s] && Object.keys(r[s]).length ? o += "@".concat(s, "(").concat(Jt(r[s]), ")") : o += "@".concat(s));
|
|
3658
3658
|
}), o;
|
|
3659
3659
|
}, {
|
|
3660
3660
|
setStringify: function(e) {
|
|
@@ -3695,7 +3695,7 @@ function Zn(e, t, r) {
|
|
|
3695
3695
|
function ct(e) {
|
|
3696
3696
|
return e.kind === "Field";
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Fl(e) {
|
|
3699
3699
|
return e.kind === "InlineFragment";
|
|
3700
3700
|
}
|
|
3701
3701
|
function Ut(e) {
|
|
@@ -3758,12 +3758,12 @@ function ji(e) {
|
|
|
3758
3758
|
}
|
|
3759
3759
|
let ke = null;
|
|
3760
3760
|
const xo = {};
|
|
3761
|
-
let
|
|
3762
|
-
const
|
|
3761
|
+
let ql = 1;
|
|
3762
|
+
const Vl = () => class {
|
|
3763
3763
|
constructor() {
|
|
3764
3764
|
this.id = [
|
|
3765
3765
|
"slot",
|
|
3766
|
-
|
|
3766
|
+
ql++,
|
|
3767
3767
|
Date.now(),
|
|
3768
3768
|
Math.random().toString(36).slice(2)
|
|
3769
3769
|
].join(":");
|
|
@@ -3826,7 +3826,7 @@ function Eo(e) {
|
|
|
3826
3826
|
} catch {
|
|
3827
3827
|
}
|
|
3828
3828
|
}
|
|
3829
|
-
const yn = "@wry/context:Slot",
|
|
3829
|
+
const yn = "@wry/context:Slot", $l = (
|
|
3830
3830
|
// Prefer globalThis when available.
|
|
3831
3831
|
// https://github.com/benjamn/wryware/issues/347
|
|
3832
3832
|
Eo(() => globalThis) || // Fall back to global, which works in Node.js and may be converted by some
|
|
@@ -3836,7 +3836,7 @@ const yn = "@wry/context:Slot", Vl = (
|
|
|
3836
3836
|
// back to using the Array constructor as a namespace, but that was flagged in
|
|
3837
3837
|
// https://github.com/benjamn/wryware/issues/347, and can be avoided.
|
|
3838
3838
|
/* @__PURE__ */ Object.create(null)
|
|
3839
|
-
), wo =
|
|
3839
|
+
), wo = $l, Yt = wo[yn] || // Earlier versions of this package stored the globalKey property on the Array
|
|
3840
3840
|
// constructor, so we check there as well, to prevent Slot class duplication.
|
|
3841
3841
|
Array[yn] || (function(e) {
|
|
3842
3842
|
try {
|
|
@@ -3855,7 +3855,7 @@ Array[yn] || (function(e) {
|
|
|
3855
3855
|
} finally {
|
|
3856
3856
|
return e;
|
|
3857
3857
|
}
|
|
3858
|
-
})(
|
|
3858
|
+
})(Vl()), { bind: Fv, noContext: qv } = Yt, sn = new Yt(), { hasOwnProperty: Bl } = Object.prototype, Ri = Array.from || function(e) {
|
|
3859
3859
|
const t = [];
|
|
3860
3860
|
return e.forEach((r) => t.push(r)), t;
|
|
3861
3861
|
};
|
|
@@ -3863,7 +3863,7 @@ function Ii(e) {
|
|
|
3863
3863
|
const { unsubscribe: t } = e;
|
|
3864
3864
|
typeof t == "function" && (e.unsubscribe = void 0, t());
|
|
3865
3865
|
}
|
|
3866
|
-
const gr = [],
|
|
3866
|
+
const gr = [], Wl = 100;
|
|
3867
3867
|
function $t(e, t) {
|
|
3868
3868
|
if (!e)
|
|
3869
3869
|
throw new Error(t || "assertion failure");
|
|
@@ -3905,7 +3905,7 @@ class cn {
|
|
|
3905
3905
|
// usually false, (2) this.dirtyChildren is usually null/empty, and thus
|
|
3906
3906
|
// (3) valueGet(this.value) is usually returned without recomputation.
|
|
3907
3907
|
recompute(t) {
|
|
3908
|
-
return $t(!this.recomputing, "already recomputing"), _o(this), ut(this) ?
|
|
3908
|
+
return $t(!this.recomputing, "already recomputing"), _o(this), ut(this) ? Ql(this, t) : Ts(this.value);
|
|
3909
3909
|
}
|
|
3910
3910
|
setDirty() {
|
|
3911
3911
|
this.dirty || (this.dirty = !0, Os(this), Ii(this));
|
|
@@ -3931,10 +3931,10 @@ function _o(e) {
|
|
|
3931
3931
|
if (t)
|
|
3932
3932
|
return e.parents.add(t), t.childValues.has(e) || t.childValues.set(e, []), ut(e) ? Ds(t, e) : Ls(t, e), t;
|
|
3933
3933
|
}
|
|
3934
|
-
function Wl(e, t) {
|
|
3935
|
-
return js(e), sn.withValue(e, Ql, [e, t]), Ul(e, t) && zl(e), Ts(e.value);
|
|
3936
|
-
}
|
|
3937
3934
|
function Ql(e, t) {
|
|
3935
|
+
return js(e), sn.withValue(e, zl, [e, t]), Hl(e, t) && Ul(e), Ts(e.value);
|
|
3936
|
+
}
|
|
3937
|
+
function zl(e, t) {
|
|
3938
3938
|
e.recomputing = !0;
|
|
3939
3939
|
const { normalizeResult: r } = e;
|
|
3940
3940
|
let n;
|
|
@@ -3953,7 +3953,7 @@ function Ql(e, t) {
|
|
|
3953
3953
|
function ut(e) {
|
|
3954
3954
|
return e.dirty || !!(e.dirtyChildren && e.dirtyChildren.size);
|
|
3955
3955
|
}
|
|
3956
|
-
function
|
|
3956
|
+
function Ul(e) {
|
|
3957
3957
|
e.dirty = !1, !ut(e) && Cs(e);
|
|
3958
3958
|
}
|
|
3959
3959
|
function Os(e) {
|
|
@@ -3986,7 +3986,7 @@ function Ls(e, t) {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
function Ms(e, t) {
|
|
3988
3988
|
const r = e.dirtyChildren;
|
|
3989
|
-
r && (r.delete(t), r.size === 0 && (gr.length <
|
|
3989
|
+
r && (r.delete(t), r.size === 0 && (gr.length < Wl && gr.push(r), e.dirtyChildren = null));
|
|
3990
3990
|
}
|
|
3991
3991
|
function js(e) {
|
|
3992
3992
|
e.childValues.size > 0 && e.childValues.forEach((t, r) => {
|
|
@@ -3996,7 +3996,7 @@ function js(e) {
|
|
|
3996
3996
|
function Rs(e, t) {
|
|
3997
3997
|
t.parents.delete(e), e.childValues.delete(t), Ms(e, t);
|
|
3998
3998
|
}
|
|
3999
|
-
function
|
|
3999
|
+
function Hl(e, t) {
|
|
4000
4000
|
if (typeof e.subscribe == "function")
|
|
4001
4001
|
try {
|
|
4002
4002
|
Ii(e), e.unsubscribe = e.subscribe.apply(null, t);
|
|
@@ -4005,7 +4005,7 @@ function Ul(e, t) {
|
|
|
4005
4005
|
}
|
|
4006
4006
|
return !0;
|
|
4007
4007
|
}
|
|
4008
|
-
const
|
|
4008
|
+
const Yl = {
|
|
4009
4009
|
setDirty: !0,
|
|
4010
4010
|
dispose: !0,
|
|
4011
4011
|
forget: !0
|
|
@@ -4023,17 +4023,17 @@ function Is(e) {
|
|
|
4023
4023
|
return r.dirty = function(i, o) {
|
|
4024
4024
|
const a = t.get(i);
|
|
4025
4025
|
if (a) {
|
|
4026
|
-
const s = o &&
|
|
4026
|
+
const s = o && Bl.call(Yl, o) ? o : "setDirty";
|
|
4027
4027
|
Ri(a).forEach((c) => c[s]()), t.delete(i), Ii(a);
|
|
4028
4028
|
}
|
|
4029
4029
|
}, r;
|
|
4030
4030
|
}
|
|
4031
4031
|
let So;
|
|
4032
|
-
function
|
|
4032
|
+
function Gl(...e) {
|
|
4033
4033
|
return (So || (So = new Xe(typeof WeakMap == "function"))).lookupArray(e);
|
|
4034
4034
|
}
|
|
4035
4035
|
const bn = /* @__PURE__ */ new Set();
|
|
4036
|
-
function yr(e, { max: t = Math.pow(2, 16), keyArgs: r, makeCacheKey: n =
|
|
4036
|
+
function yr(e, { max: t = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = Gl, normalizeResult: i, subscribe: o, cache: a = Gn } = /* @__PURE__ */ Object.create(null)) {
|
|
4037
4037
|
const s = typeof a == "function" ? new a(t, (h) => h.dispose()) : a, c = function() {
|
|
4038
4038
|
const h = n.apply(null, r ? r.apply(null, arguments) : arguments);
|
|
4039
4039
|
if (h === void 0)
|
|
@@ -4079,7 +4079,7 @@ function yr(e, { max: t = Math.pow(2, 16), keyArgs: r, makeCacheKey: n = Yl, nor
|
|
|
4079
4079
|
return n.apply(null, r.apply(null, arguments));
|
|
4080
4080
|
} : n, Object.freeze(c);
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function Xl(e) {
|
|
4083
4083
|
return e;
|
|
4084
4084
|
}
|
|
4085
4085
|
var Ns = (
|
|
@@ -4091,7 +4091,7 @@ var Ns = (
|
|
|
4091
4091
|
return e.prototype.getCacheKey = function(t) {
|
|
4092
4092
|
return [t];
|
|
4093
4093
|
}, e.identity = function() {
|
|
4094
|
-
return new e(
|
|
4094
|
+
return new e(Xl, { cache: !1 });
|
|
4095
4095
|
}, e.split = function(t, r, n) {
|
|
4096
4096
|
return n === void 0 && (n = e.identity()), Object.assign(new e(
|
|
4097
4097
|
function(i) {
|
|
@@ -4138,7 +4138,7 @@ var Ns = (
|
|
|
4138
4138
|
})()
|
|
4139
4139
|
), ur, vt = Object.assign(function(e) {
|
|
4140
4140
|
var t = ur.get(e);
|
|
4141
|
-
return t || (t =
|
|
4141
|
+
return t || (t = Yu(e), ur.set(e, t)), t;
|
|
4142
4142
|
}, {
|
|
4143
4143
|
reset: function() {
|
|
4144
4144
|
ur = new Li(
|
|
@@ -4167,10 +4167,10 @@ function Ps(e, t) {
|
|
|
4167
4167
|
return r.kind === A.FRAGMENT_SPREAD && Ps(t[r.name.value], t);
|
|
4168
4168
|
});
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function Jl(e) {
|
|
4171
4171
|
return Ps(bt(e) || _s(e), zt(Ht(e))) ? null : e;
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function Kl(e) {
|
|
4174
4174
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
4175
4175
|
return e.forEach(function(n) {
|
|
4176
4176
|
n && (n.name ? t.set(n.name, n) : n.test && r.set(n.test, n));
|
|
@@ -4209,7 +4209,7 @@ function As(e, t) {
|
|
|
4209
4209
|
return globalThis.__DEV__ !== !1 && R.error(125), null;
|
|
4210
4210
|
}, o = 0, a = t.definitions.length - 1; a >= 0; --a)
|
|
4211
4211
|
t.definitions[a].kind === A.OPERATION_DEFINITION && ++o;
|
|
4212
|
-
var s =
|
|
4212
|
+
var s = Kl(e), c = function(g) {
|
|
4213
4213
|
return Ne(g) && g.map(s).some(function(b) {
|
|
4214
4214
|
return b && b.remove;
|
|
4215
4215
|
});
|
|
@@ -4300,7 +4300,7 @@ function As(e, t) {
|
|
|
4300
4300
|
return null;
|
|
4301
4301
|
}
|
|
4302
4302
|
};
|
|
4303
|
-
return
|
|
4303
|
+
return Jl(qe(h, {
|
|
4304
4304
|
// If the fragment is going to be removed, then leaving any dangling
|
|
4305
4305
|
// FragmentSpread nodes with the same name would be a mistake.
|
|
4306
4306
|
FragmentSpread: v,
|
|
@@ -4349,7 +4349,7 @@ var Pi = Object.assign(function(e) {
|
|
|
4349
4349
|
return e === To;
|
|
4350
4350
|
}
|
|
4351
4351
|
});
|
|
4352
|
-
function
|
|
4352
|
+
function Zl(e) {
|
|
4353
4353
|
var t = wr(e), r = t.operation;
|
|
4354
4354
|
if (r === "query")
|
|
4355
4355
|
return e;
|
|
@@ -4374,7 +4374,7 @@ function Fs(e) {
|
|
|
4374
4374
|
], e);
|
|
4375
4375
|
return t;
|
|
4376
4376
|
}
|
|
4377
|
-
function
|
|
4377
|
+
function ef(e) {
|
|
4378
4378
|
return Ut(e), qe(e, {
|
|
4379
4379
|
FragmentSpread: function(t) {
|
|
4380
4380
|
var r;
|
|
@@ -4390,7 +4390,7 @@ function Zl(e) {
|
|
|
4390
4390
|
}
|
|
4391
4391
|
});
|
|
4392
4392
|
}
|
|
4393
|
-
var
|
|
4393
|
+
var tf = Object.prototype.hasOwnProperty;
|
|
4394
4394
|
function Oo() {
|
|
4395
4395
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
4396
4396
|
e[t] = arguments[t];
|
|
@@ -4403,19 +4403,19 @@ function un(e) {
|
|
|
4403
4403
|
t = n.merge(t, e[i]);
|
|
4404
4404
|
return t;
|
|
4405
4405
|
}
|
|
4406
|
-
var
|
|
4406
|
+
var rf = function(e, t, r) {
|
|
4407
4407
|
return this.merge(e[r], t[r]);
|
|
4408
4408
|
}, lt = (
|
|
4409
4409
|
/** @class */
|
|
4410
4410
|
(function() {
|
|
4411
4411
|
function e(t) {
|
|
4412
|
-
t === void 0 && (t =
|
|
4412
|
+
t === void 0 && (t = rf), this.reconciler = t, this.isObject = ve, this.pastCopies = /* @__PURE__ */ new Set();
|
|
4413
4413
|
}
|
|
4414
4414
|
return e.prototype.merge = function(t, r) {
|
|
4415
4415
|
for (var n = this, i = [], o = 2; o < arguments.length; o++)
|
|
4416
4416
|
i[o - 2] = arguments[o];
|
|
4417
4417
|
return ve(r) && ve(t) ? (Object.keys(r).forEach(function(a) {
|
|
4418
|
-
if (
|
|
4418
|
+
if (tf.call(t, a)) {
|
|
4419
4419
|
var s = t[a];
|
|
4420
4420
|
if (r[a] !== s) {
|
|
4421
4421
|
var c = n.reconciler.apply(n, Ce([
|
|
@@ -4433,10 +4433,10 @@ var tf = function(e, t, r) {
|
|
|
4433
4433
|
}, e;
|
|
4434
4434
|
})()
|
|
4435
4435
|
);
|
|
4436
|
-
function
|
|
4436
|
+
function nf(e, t) {
|
|
4437
4437
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
4438
4438
|
if (r) return (r = r.call(e)).next.bind(r);
|
|
4439
|
-
if (Array.isArray(e) || (r =
|
|
4439
|
+
if (Array.isArray(e) || (r = of(e)) || t) {
|
|
4440
4440
|
r && (e = r);
|
|
4441
4441
|
var n = 0;
|
|
4442
4442
|
return function() {
|
|
@@ -4446,7 +4446,7 @@ function rf(e, t) {
|
|
|
4446
4446
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4447
4447
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function of(e, t) {
|
|
4450
4450
|
if (e) {
|
|
4451
4451
|
if (typeof e == "string") return Co(e, t);
|
|
4452
4452
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
@@ -4477,7 +4477,7 @@ var Fi = function() {
|
|
|
4477
4477
|
return qi(e) ? Symbol[e] : "@@" + e;
|
|
4478
4478
|
};
|
|
4479
4479
|
Fi() && !qi("observable") && (Symbol.observable = Symbol("observable"));
|
|
4480
|
-
var
|
|
4480
|
+
var af = Vi("iterator"), ei = Vi("observable"), qs = Vi("species");
|
|
4481
4481
|
function Hr(e, t) {
|
|
4482
4482
|
var r = e[t];
|
|
4483
4483
|
if (r != null) {
|
|
@@ -4489,7 +4489,7 @@ function Kt(e) {
|
|
|
4489
4489
|
var t = e.constructor;
|
|
4490
4490
|
return t !== void 0 && (t = t[qs], t === null && (t = void 0)), t !== void 0 ? t : he;
|
|
4491
4491
|
}
|
|
4492
|
-
function
|
|
4492
|
+
function sf(e) {
|
|
4493
4493
|
return e instanceof he;
|
|
4494
4494
|
}
|
|
4495
4495
|
function Bt(e) {
|
|
@@ -4523,7 +4523,7 @@ function Vs(e) {
|
|
|
4523
4523
|
function ti(e) {
|
|
4524
4524
|
e._observer = void 0, e._queue = void 0, e._state = "closed";
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4526
|
+
function cf(e) {
|
|
4527
4527
|
var t = e._queue;
|
|
4528
4528
|
if (t) {
|
|
4529
4529
|
e._queue = void 0, e._state = "ready";
|
|
@@ -4567,17 +4567,17 @@ function xn(e, t, r) {
|
|
|
4567
4567
|
type: t,
|
|
4568
4568
|
value: r
|
|
4569
4569
|
}], qr(function() {
|
|
4570
|
-
return
|
|
4570
|
+
return cf(e);
|
|
4571
4571
|
});
|
|
4572
4572
|
return;
|
|
4573
4573
|
}
|
|
4574
4574
|
$s(e, t, r);
|
|
4575
4575
|
}
|
|
4576
4576
|
}
|
|
4577
|
-
var
|
|
4577
|
+
var uf = /* @__PURE__ */ (function() {
|
|
4578
4578
|
function e(r, n) {
|
|
4579
4579
|
this._cleanup = void 0, this._observer = r, this._queue = void 0, this._state = "initializing";
|
|
4580
|
-
var i = new
|
|
4580
|
+
var i = new lf(this);
|
|
4581
4581
|
try {
|
|
4582
4582
|
this._cleanup = n.call(void 0, i);
|
|
4583
4583
|
} catch (o) {
|
|
@@ -4594,7 +4594,7 @@ var cf = /* @__PURE__ */ (function() {
|
|
|
4594
4594
|
return this._state === "closed";
|
|
4595
4595
|
}
|
|
4596
4596
|
}]), e;
|
|
4597
|
-
})(),
|
|
4597
|
+
})(), lf = /* @__PURE__ */ (function() {
|
|
4598
4598
|
function e(r) {
|
|
4599
4599
|
this._subscription = r;
|
|
4600
4600
|
}
|
|
@@ -4623,7 +4623,7 @@ var cf = /* @__PURE__ */ (function() {
|
|
|
4623
4623
|
next: n,
|
|
4624
4624
|
error: arguments[1],
|
|
4625
4625
|
complete: arguments[2]
|
|
4626
|
-
}), new
|
|
4626
|
+
}), new uf(n, this._subscriber);
|
|
4627
4627
|
}, t.forEach = function(n) {
|
|
4628
4628
|
var i = this;
|
|
4629
4629
|
return new Promise(function(o, a) {
|
|
@@ -4791,15 +4791,15 @@ var cf = /* @__PURE__ */ (function() {
|
|
|
4791
4791
|
if (o) {
|
|
4792
4792
|
var a = o.call(n);
|
|
4793
4793
|
if (Object(a) !== a) throw new TypeError(a + " is not an object");
|
|
4794
|
-
return
|
|
4794
|
+
return sf(a) && a.constructor === i ? a : new i(function(s) {
|
|
4795
4795
|
return a.subscribe(s);
|
|
4796
4796
|
});
|
|
4797
4797
|
}
|
|
4798
|
-
if (qi("iterator") && (o = Hr(n,
|
|
4798
|
+
if (qi("iterator") && (o = Hr(n, af), o))
|
|
4799
4799
|
return new i(function(s) {
|
|
4800
4800
|
qr(function() {
|
|
4801
4801
|
if (!s.closed) {
|
|
4802
|
-
for (var c =
|
|
4802
|
+
for (var c = nf(o.call(n)), u; !(u = c()).done; ) {
|
|
4803
4803
|
var l = u.value;
|
|
4804
4804
|
if (s.next(l), s.closed) return;
|
|
4805
4805
|
}
|
|
@@ -4845,7 +4845,7 @@ Fi() && Object.defineProperty(he, Symbol("extensions"), {
|
|
|
4845
4845
|
},
|
|
4846
4846
|
configurable: !0
|
|
4847
4847
|
});
|
|
4848
|
-
function
|
|
4848
|
+
function ff(e) {
|
|
4849
4849
|
var t, r = e.Symbol;
|
|
4850
4850
|
if (typeof r == "function")
|
|
4851
4851
|
if (r.observable)
|
|
@@ -4863,21 +4863,21 @@ function lf(e) {
|
|
|
4863
4863
|
}
|
|
4864
4864
|
var Ot;
|
|
4865
4865
|
typeof self < "u" ? Ot = self : typeof window < "u" ? Ot = window : typeof global < "u" ? Ot = global : typeof module < "u" ? Ot = module : Ot = Function("return this")();
|
|
4866
|
-
|
|
4866
|
+
ff(Ot);
|
|
4867
4867
|
var Lo = he.prototype, Mo = "@@observable";
|
|
4868
4868
|
Lo[Mo] || (Lo[Mo] = function() {
|
|
4869
4869
|
return this;
|
|
4870
4870
|
});
|
|
4871
|
-
function
|
|
4871
|
+
function hf(e) {
|
|
4872
4872
|
return e.catch(function() {
|
|
4873
4873
|
}), e;
|
|
4874
4874
|
}
|
|
4875
|
-
var
|
|
4875
|
+
var df = Object.prototype.toString;
|
|
4876
4876
|
function Bs(e) {
|
|
4877
4877
|
return ri(e);
|
|
4878
4878
|
}
|
|
4879
4879
|
function ri(e, t) {
|
|
4880
|
-
switch (
|
|
4880
|
+
switch (df.call(e)) {
|
|
4881
4881
|
case "[object Array]": {
|
|
4882
4882
|
if (t = t || /* @__PURE__ */ new Map(), t.has(e))
|
|
4883
4883
|
return t.get(e);
|
|
@@ -4898,15 +4898,15 @@ function ri(e, t) {
|
|
|
4898
4898
|
return e;
|
|
4899
4899
|
}
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function pf(e) {
|
|
4902
4902
|
var t = /* @__PURE__ */ new Set([e]);
|
|
4903
4903
|
return t.forEach(function(r) {
|
|
4904
|
-
ve(r) &&
|
|
4904
|
+
ve(r) && mf(r) === r && Object.getOwnPropertyNames(r).forEach(function(n) {
|
|
4905
4905
|
ve(r[n]) && t.add(r[n]);
|
|
4906
4906
|
});
|
|
4907
4907
|
}), e;
|
|
4908
4908
|
}
|
|
4909
|
-
function
|
|
4909
|
+
function mf(e) {
|
|
4910
4910
|
if (globalThis.__DEV__ !== !1 && !Object.isFrozen(e))
|
|
4911
4911
|
try {
|
|
4912
4912
|
Object.freeze(e);
|
|
@@ -4918,7 +4918,7 @@ function pf(e) {
|
|
|
4918
4918
|
return e;
|
|
4919
4919
|
}
|
|
4920
4920
|
function Wt(e) {
|
|
4921
|
-
return globalThis.__DEV__ !== !1 &&
|
|
4921
|
+
return globalThis.__DEV__ !== !1 && pf(e), e;
|
|
4922
4922
|
}
|
|
4923
4923
|
function lr(e, t, r) {
|
|
4924
4924
|
var n = [];
|
|
@@ -5049,13 +5049,13 @@ Ws(Ct);
|
|
|
5049
5049
|
function At(e) {
|
|
5050
5050
|
return "incremental" in e;
|
|
5051
5051
|
}
|
|
5052
|
-
function mf(e) {
|
|
5053
|
-
return "hasNext" in e && "data" in e;
|
|
5054
|
-
}
|
|
5055
5052
|
function vf(e) {
|
|
5056
|
-
return
|
|
5053
|
+
return "hasNext" in e && "data" in e;
|
|
5057
5054
|
}
|
|
5058
5055
|
function gf(e) {
|
|
5056
|
+
return At(e) || vf(e);
|
|
5057
|
+
}
|
|
5058
|
+
function yf(e) {
|
|
5059
5059
|
return ve(e) && "payload" in e;
|
|
5060
5060
|
}
|
|
5061
5061
|
function Qs(e, t) {
|
|
@@ -5103,7 +5103,7 @@ var zs = function(e, t, r) {
|
|
|
5103
5103
|
var n = new Error(r);
|
|
5104
5104
|
throw n.name = "ServerError", n.response = e, n.statusCode = e.status, n.result = t, n;
|
|
5105
5105
|
};
|
|
5106
|
-
function
|
|
5106
|
+
function bf(e) {
|
|
5107
5107
|
for (var t = [
|
|
5108
5108
|
"query",
|
|
5109
5109
|
"operationName",
|
|
@@ -5117,7 +5117,7 @@ function yf(e) {
|
|
|
5117
5117
|
}
|
|
5118
5118
|
return e;
|
|
5119
5119
|
}
|
|
5120
|
-
function
|
|
5120
|
+
function xf(e, t) {
|
|
5121
5121
|
var r = k({}, e), n = function(o) {
|
|
5122
5122
|
typeof o == "function" ? r = k(k({}, r), o(r)) : r = k(k({}, r), o);
|
|
5123
5123
|
}, i = function() {
|
|
@@ -5131,7 +5131,7 @@ function bf(e, t) {
|
|
|
5131
5131
|
value: i
|
|
5132
5132
|
}), t;
|
|
5133
5133
|
}
|
|
5134
|
-
function
|
|
5134
|
+
function Ef(e) {
|
|
5135
5135
|
var t = {
|
|
5136
5136
|
variables: e.variables || {},
|
|
5137
5137
|
extensions: e.extensions || {},
|
|
@@ -5140,7 +5140,7 @@ function xf(e) {
|
|
|
5140
5140
|
};
|
|
5141
5141
|
return t.operationName || (t.operationName = typeof t.query != "string" ? or(t.query) || void 0 : ""), t;
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function wf(e, t) {
|
|
5144
5144
|
var r = k({}, e), n = new Set(Object.keys(e));
|
|
5145
5145
|
return qe(t, {
|
|
5146
5146
|
Variable: function(i, o, a) {
|
|
@@ -5150,9 +5150,9 @@ function Ef(e, t) {
|
|
|
5150
5150
|
delete r[i];
|
|
5151
5151
|
}), r;
|
|
5152
5152
|
}
|
|
5153
|
-
var
|
|
5154
|
-
function
|
|
5155
|
-
return _f
|
|
5153
|
+
var _f = Symbol.for("apollo.deprecations"), Sf = zr, ii = new Yt();
|
|
5154
|
+
function Tf(e) {
|
|
5155
|
+
return Sf[_f] || (ii.getValue() || []).includes(e);
|
|
5156
5156
|
}
|
|
5157
5157
|
function Se(e) {
|
|
5158
5158
|
for (var t = [], r = 1; r < arguments.length; r++)
|
|
@@ -5165,7 +5165,7 @@ function me(e, t, r, n) {
|
|
|
5165
5165
|
});
|
|
5166
5166
|
}
|
|
5167
5167
|
function at(e, t) {
|
|
5168
|
-
|
|
5168
|
+
Tf(e) || t();
|
|
5169
5169
|
}
|
|
5170
5170
|
function Ro(e, t) {
|
|
5171
5171
|
return t ? t(e) : he.of();
|
|
@@ -5198,7 +5198,7 @@ var _r = (
|
|
|
5198
5198
|
return t(s) ? i.request(s, c) || he.of() : o.request(s, c) || he.of();
|
|
5199
5199
|
}), Object.assign(a, { left: i, right: o });
|
|
5200
5200
|
}, e.execute = function(t, r) {
|
|
5201
|
-
return t.request(
|
|
5201
|
+
return t.request(xf(r.context, Ef(bf(r)))) || he.of();
|
|
5202
5202
|
}, e.concat = function(t, r) {
|
|
5203
5203
|
var n = Zt(t);
|
|
5204
5204
|
if (Lr(n))
|
|
@@ -5230,7 +5230,7 @@ var _r = (
|
|
|
5230
5230
|
}, e;
|
|
5231
5231
|
})()
|
|
5232
5232
|
), oi = _r.execute;
|
|
5233
|
-
function
|
|
5233
|
+
function kf(e) {
|
|
5234
5234
|
var t, r = e[Symbol.asyncIterator]();
|
|
5235
5235
|
return t = {
|
|
5236
5236
|
next: function() {
|
|
@@ -5240,7 +5240,7 @@ function Tf(e) {
|
|
|
5240
5240
|
return this;
|
|
5241
5241
|
}, t;
|
|
5242
5242
|
}
|
|
5243
|
-
function
|
|
5243
|
+
function Of(e) {
|
|
5244
5244
|
var t = null, r = null, n = !1, i = [], o = [];
|
|
5245
5245
|
function a(f) {
|
|
5246
5246
|
if (!r) {
|
|
@@ -5289,7 +5289,7 @@ function kf(e) {
|
|
|
5289
5289
|
return this;
|
|
5290
5290
|
}), l;
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function Cf(e) {
|
|
5293
5293
|
var t = !1, r = {
|
|
5294
5294
|
next: function() {
|
|
5295
5295
|
return t ? Promise.resolve({
|
|
@@ -5316,46 +5316,46 @@ function Io(e) {
|
|
|
5316
5316
|
return this;
|
|
5317
5317
|
}), t;
|
|
5318
5318
|
}
|
|
5319
|
-
function
|
|
5319
|
+
function Df(e) {
|
|
5320
5320
|
return !!e.body;
|
|
5321
5321
|
}
|
|
5322
|
-
function
|
|
5322
|
+
function Lf(e) {
|
|
5323
5323
|
return !!e.getReader;
|
|
5324
5324
|
}
|
|
5325
|
-
function
|
|
5325
|
+
function Mf(e) {
|
|
5326
5326
|
return !!(nn && e[Symbol.asyncIterator]);
|
|
5327
5327
|
}
|
|
5328
|
-
function
|
|
5328
|
+
function jf(e) {
|
|
5329
5329
|
return !!e.stream;
|
|
5330
5330
|
}
|
|
5331
|
-
function
|
|
5331
|
+
function Rf(e) {
|
|
5332
5332
|
return !!e.arrayBuffer;
|
|
5333
5333
|
}
|
|
5334
|
-
function
|
|
5334
|
+
function If(e) {
|
|
5335
5335
|
return !!e.pipe;
|
|
5336
5336
|
}
|
|
5337
|
-
function
|
|
5337
|
+
function Nf(e) {
|
|
5338
5338
|
var t = e;
|
|
5339
|
-
if (
|
|
5340
|
-
return
|
|
5341
|
-
if (
|
|
5339
|
+
if (Df(e) && (t = e.body), Mf(t))
|
|
5340
|
+
return kf(t);
|
|
5341
|
+
if (Lf(t))
|
|
5342
5342
|
return Io(t.getReader());
|
|
5343
|
-
if (Mf(t))
|
|
5344
|
-
return Io(t.stream().getReader());
|
|
5345
5343
|
if (jf(t))
|
|
5346
|
-
return
|
|
5344
|
+
return Io(t.stream().getReader());
|
|
5347
5345
|
if (Rf(t))
|
|
5348
|
-
return
|
|
5346
|
+
return Cf(t.arrayBuffer());
|
|
5347
|
+
if (If(t))
|
|
5348
|
+
return Of(t);
|
|
5349
5349
|
throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
5350
5350
|
}
|
|
5351
5351
|
var $i = Symbol();
|
|
5352
|
-
function
|
|
5352
|
+
function Pf(e) {
|
|
5353
5353
|
return e.extensions ? Array.isArray(e.extensions[$i]) : !1;
|
|
5354
5354
|
}
|
|
5355
5355
|
function Us(e) {
|
|
5356
5356
|
return e.hasOwnProperty("graphQLErrors");
|
|
5357
5357
|
}
|
|
5358
|
-
var
|
|
5358
|
+
var Af = function(e) {
|
|
5359
5359
|
var t = Ce(Ce(Ce([], e.graphQLErrors, !0), e.clientErrors, !0), e.protocolErrors, !0);
|
|
5360
5360
|
return e.networkError && t.push(e.networkError), t.map(function(r) {
|
|
5361
5361
|
return ve(r) && r.message || "Error message not found.";
|
|
@@ -5367,7 +5367,7 @@ var Pf = function(e) {
|
|
|
5367
5367
|
Ue(t, e);
|
|
5368
5368
|
function t(r) {
|
|
5369
5369
|
var n = r.graphQLErrors, i = r.protocolErrors, o = r.clientErrors, a = r.networkError, s = r.errorMessage, c = r.extraInfo, u = e.call(this, s) || this;
|
|
5370
|
-
return u.name = "ApolloError", u.graphQLErrors = n || [], u.protocolErrors = i || [], u.clientErrors = o || [], u.networkError = a || null, u.message = s ||
|
|
5370
|
+
return u.name = "ApolloError", u.graphQLErrors = n || [], u.protocolErrors = i || [], u.clientErrors = o || [], u.networkError = a || null, u.message = s || Af(u), u.extraInfo = c, u.cause = Ce(Ce(Ce([
|
|
5371
5371
|
a
|
|
5372
5372
|
], n || [], !0), i || [], !0), o || [], !0).find(function(l) {
|
|
5373
5373
|
return !!l;
|
|
@@ -5376,16 +5376,16 @@ var Pf = function(e) {
|
|
|
5376
5376
|
return t;
|
|
5377
5377
|
})(Error)
|
|
5378
5378
|
), No = Object.prototype.hasOwnProperty;
|
|
5379
|
-
function
|
|
5379
|
+
function Ff(e, t) {
|
|
5380
5380
|
return nt(this, void 0, void 0, function() {
|
|
5381
|
-
var r, n, i, o, a, s, c, u, l, f, h, p, m, y, v, g, b, E, _, x, O, w, S,
|
|
5381
|
+
var r, n, i, o, a, s, c, u, l, f, h, p, m, y, v, g, b, E, _, x, O, w, S, D;
|
|
5382
5382
|
return it(this, function(j) {
|
|
5383
5383
|
switch (j.label) {
|
|
5384
5384
|
case 0:
|
|
5385
5385
|
if (TextDecoder === void 0)
|
|
5386
5386
|
throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");
|
|
5387
|
-
r = new TextDecoder("utf-8"), n = (
|
|
5388
|
-
--`.concat(o), s = "", c =
|
|
5387
|
+
r = new TextDecoder("utf-8"), n = (D = e.headers) === null || D === void 0 ? void 0 : D.get("content-type"), i = "boundary=", o = n != null && n.includes(i) ? n == null ? void 0 : n.substring((n == null ? void 0 : n.indexOf(i)) + i.length).replace(/['"]/g, "").replace(/\;(.*)/gm, "").trim() : "-", a = `\r
|
|
5388
|
+
--`.concat(o), s = "", c = Nf(e), u = !0, j.label = 1;
|
|
5389
5389
|
case 1:
|
|
5390
5390
|
return u ? [4, c.next()] : [3, 3];
|
|
5391
5391
|
case 2:
|
|
@@ -5395,11 +5395,11 @@ function Af(e, t) {
|
|
|
5395
5395
|
s.slice(y + a.length)
|
|
5396
5396
|
], v = w[0], s = w[1], g = v.indexOf(`\r
|
|
5397
5397
|
\r
|
|
5398
|
-
`), b =
|
|
5398
|
+
`), b = qf(v.slice(0, g)), E = b["content-type"], E && E.toLowerCase().indexOf("application/json") === -1)
|
|
5399
5399
|
throw new Error("Unsupported patch content type: application/json is required.");
|
|
5400
5400
|
if (_ = v.slice(g), _) {
|
|
5401
5401
|
if (x = Hs(e, _), Object.keys(x).length > 1 || "data" in x || "incremental" in x || "errors" in x || "payload" in x)
|
|
5402
|
-
if (
|
|
5402
|
+
if (yf(x)) {
|
|
5403
5403
|
if (O = {}, "payload" in x) {
|
|
5404
5404
|
if (Object.keys(x).length === 1 && x.payload === null)
|
|
5405
5405
|
return [
|
|
@@ -5433,7 +5433,7 @@ function Af(e, t) {
|
|
|
5433
5433
|
});
|
|
5434
5434
|
});
|
|
5435
5435
|
}
|
|
5436
|
-
function
|
|
5436
|
+
function qf(e) {
|
|
5437
5437
|
var t = {};
|
|
5438
5438
|
return e.split(`
|
|
5439
5439
|
`).forEach(function(r) {
|
|
@@ -5462,10 +5462,10 @@ function Hs(e, t) {
|
|
|
5462
5462
|
throw n.name = "ServerParseError", n.response = e, n.statusCode = e.status, n.bodyText = t, n;
|
|
5463
5463
|
}
|
|
5464
5464
|
}
|
|
5465
|
-
function
|
|
5465
|
+
function Vf(e, t) {
|
|
5466
5466
|
e.result && e.result.errors && e.result.data && t.next(e.result), t.error(e);
|
|
5467
5467
|
}
|
|
5468
|
-
function
|
|
5468
|
+
function $f(e) {
|
|
5469
5469
|
return function(t) {
|
|
5470
5470
|
return t.text().then(function(r) {
|
|
5471
5471
|
return Hs(t, r);
|
|
@@ -5485,11 +5485,11 @@ var ai = function(e, t) {
|
|
|
5485
5485
|
throw n.parseError = i, n;
|
|
5486
5486
|
}
|
|
5487
5487
|
return r;
|
|
5488
|
-
},
|
|
5488
|
+
}, Bf = {
|
|
5489
5489
|
includeQuery: !0,
|
|
5490
5490
|
includeExtensions: !1,
|
|
5491
5491
|
preserveHeaderCase: !1
|
|
5492
|
-
},
|
|
5492
|
+
}, Wf = {
|
|
5493
5493
|
// headers are case insensitive (https://stackoverflow.com/a/5259004)
|
|
5494
5494
|
accept: "*/*",
|
|
5495
5495
|
// The content-type header describes the type of the body of the request, and
|
|
@@ -5505,29 +5505,29 @@ var ai = function(e, t) {
|
|
|
5505
5505
|
// https://www.apollographql.com/docs/apollo-server/security/cors/#preventing-cross-site-request-forgery-csrf
|
|
5506
5506
|
// for more details.
|
|
5507
5507
|
"content-type": "application/json"
|
|
5508
|
-
}, Wf = {
|
|
5509
|
-
method: "POST"
|
|
5510
5508
|
}, Qf = {
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5509
|
+
method: "POST"
|
|
5510
|
+
}, zf = {
|
|
5511
|
+
http: Bf,
|
|
5512
|
+
headers: Wf,
|
|
5513
|
+
options: Qf
|
|
5514
|
+
}, Uf = function(e, t) {
|
|
5515
5515
|
return t(e);
|
|
5516
5516
|
};
|
|
5517
|
-
function
|
|
5517
|
+
function Hf(e, t) {
|
|
5518
5518
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
5519
5519
|
r[n - 2] = arguments[n];
|
|
5520
5520
|
var i = {}, o = {};
|
|
5521
5521
|
r.forEach(function(f) {
|
|
5522
5522
|
i = k(k(k({}, i), f.options), { headers: k(k({}, i.headers), f.headers) }), f.credentials && (i.credentials = f.credentials), o = k(k({}, o), f.http);
|
|
5523
|
-
}), i.headers && (i.headers =
|
|
5523
|
+
}), i.headers && (i.headers = Yf(i.headers, o.preserveHeaderCase));
|
|
5524
5524
|
var a = e.operationName, s = e.extensions, c = e.variables, u = e.query, l = { operationName: a, variables: c };
|
|
5525
5525
|
return o.includeExtensions && (l.extensions = s), o.includeQuery && (l.query = t(u, vt)), {
|
|
5526
5526
|
options: i,
|
|
5527
5527
|
body: l
|
|
5528
5528
|
};
|
|
5529
5529
|
}
|
|
5530
|
-
function
|
|
5530
|
+
function Yf(e, t) {
|
|
5531
5531
|
if (!t) {
|
|
5532
5532
|
var r = {};
|
|
5533
5533
|
return Object.keys(Object(e)).forEach(function(o) {
|
|
@@ -5546,14 +5546,14 @@ function Hf(e, t) {
|
|
|
5546
5546
|
i[n[o].originalName] = n[o].value;
|
|
5547
5547
|
}), i;
|
|
5548
5548
|
}
|
|
5549
|
-
var
|
|
5549
|
+
var Gf = function(e) {
|
|
5550
5550
|
if (!e && typeof fetch > "u")
|
|
5551
5551
|
throw je(51);
|
|
5552
|
-
},
|
|
5552
|
+
}, Xf = function(e, t) {
|
|
5553
5553
|
var r = e.getContext(), n = r.uri;
|
|
5554
5554
|
return n || (typeof t == "function" ? t(e) : t || "/graphql");
|
|
5555
5555
|
};
|
|
5556
|
-
function
|
|
5556
|
+
function Jf(e, t) {
|
|
5557
5557
|
var r = [], n = function(f, h) {
|
|
5558
5558
|
r.push("".concat(f, "=").concat(encodeURIComponent(h)));
|
|
5559
5559
|
};
|
|
@@ -5582,10 +5582,10 @@ function Xf(e, t) {
|
|
|
5582
5582
|
}
|
|
5583
5583
|
var Po = Ae(function() {
|
|
5584
5584
|
return fetch;
|
|
5585
|
-
}),
|
|
5585
|
+
}), Kf = function(e) {
|
|
5586
5586
|
e === void 0 && (e = {});
|
|
5587
|
-
var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ?
|
|
5588
|
-
globalThis.__DEV__ !== !1 &&
|
|
5587
|
+
var t = e.uri, r = t === void 0 ? "/graphql" : t, n = e.fetch, i = e.print, o = i === void 0 ? Uf : i, a = e.includeExtensions, s = e.preserveHeaderCase, c = e.useGETForQueries, u = e.includeUnusedVariables, l = u === void 0 ? !1 : u, f = Fe(e, ["uri", "fetch", "print", "includeExtensions", "preserveHeaderCase", "useGETForQueries", "includeUnusedVariables"]);
|
|
5588
|
+
globalThis.__DEV__ !== !1 && Gf(n || Po);
|
|
5589
5589
|
var h = {
|
|
5590
5590
|
http: { includeExtensions: a, preserveHeaderCase: s },
|
|
5591
5591
|
options: f.fetchOptions,
|
|
@@ -5593,7 +5593,7 @@ var Po = Ae(function() {
|
|
|
5593
5593
|
headers: f.headers
|
|
5594
5594
|
};
|
|
5595
5595
|
return new _r(function(p) {
|
|
5596
|
-
var m =
|
|
5596
|
+
var m = Xf(p, r), y = p.getContext(), v = {};
|
|
5597
5597
|
if (y.clientAwareness) {
|
|
5598
5598
|
var g = y.clientAwareness, b = g.name, E = g.version;
|
|
5599
5599
|
b && (v["apollographql-client-name"] = b), E && (v["apollographql-client-version"] = E);
|
|
@@ -5611,28 +5611,28 @@ var Po = Ae(function() {
|
|
|
5611
5611
|
return wn(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));
|
|
5612
5612
|
p.query = O;
|
|
5613
5613
|
}
|
|
5614
|
-
var w =
|
|
5615
|
-
|
|
5614
|
+
var w = Hf(p, o, zf, h, x), S = w.options, D = w.body;
|
|
5615
|
+
D.variables && !l && (D.variables = wf(D.variables, p.query));
|
|
5616
5616
|
var j;
|
|
5617
5617
|
!S.signal && typeof AbortController < "u" && (j = new AbortController(), S.signal = j.signal);
|
|
5618
|
-
var
|
|
5618
|
+
var C = function(H) {
|
|
5619
5619
|
return H.kind === "OperationDefinition" && H.operation === "mutation";
|
|
5620
5620
|
}, I = function(H) {
|
|
5621
5621
|
return H.kind === "OperationDefinition" && H.operation === "subscription";
|
|
5622
|
-
},
|
|
5623
|
-
if (c && !p.query.definitions.some(
|
|
5622
|
+
}, F = I(wr(p.query)), B = vr(["defer"], p.query);
|
|
5623
|
+
if (c && !p.query.definitions.some(C) && (S.method = "GET"), B || F) {
|
|
5624
5624
|
S.headers = S.headers || {};
|
|
5625
5625
|
var ce = "multipart/mixed;";
|
|
5626
|
-
|
|
5626
|
+
F && B && globalThis.__DEV__ !== !1 && R.warn(53), F ? ce += "boundary=graphql;subscriptionSpec=1.0,application/json" : B && (ce += "deferSpec=20220824,application/json"), S.headers.accept = ce;
|
|
5627
5627
|
}
|
|
5628
5628
|
if (S.method === "GET") {
|
|
5629
|
-
var G =
|
|
5629
|
+
var G = Jf(m, D), fe = G.newURI, ye = G.parseError;
|
|
5630
5630
|
if (ye)
|
|
5631
5631
|
return wn(ye);
|
|
5632
5632
|
m = fe;
|
|
5633
5633
|
} else
|
|
5634
5634
|
try {
|
|
5635
|
-
S.body = ai(
|
|
5635
|
+
S.body = ai(D, "Payload");
|
|
5636
5636
|
} catch (H) {
|
|
5637
5637
|
return wn(H);
|
|
5638
5638
|
}
|
|
@@ -5644,29 +5644,29 @@ var Po = Ae(function() {
|
|
|
5644
5644
|
var $;
|
|
5645
5645
|
p.setContext({ response: P });
|
|
5646
5646
|
var N = ($ = P.headers) === null || $ === void 0 ? void 0 : $.get("content-type");
|
|
5647
|
-
return N !== null && /^multipart\/mixed/i.test(N) ?
|
|
5647
|
+
return N !== null && /^multipart\/mixed/i.test(N) ? Ff(P, L) : $f(p)(P).then(L);
|
|
5648
5648
|
}).then(function() {
|
|
5649
5649
|
j = void 0, H.complete();
|
|
5650
5650
|
}).catch(function(P) {
|
|
5651
|
-
j = void 0,
|
|
5651
|
+
j = void 0, Vf(P, H);
|
|
5652
5652
|
}), function() {
|
|
5653
5653
|
j && j.abort();
|
|
5654
5654
|
};
|
|
5655
5655
|
});
|
|
5656
5656
|
});
|
|
5657
|
-
},
|
|
5657
|
+
}, Zf = (
|
|
5658
5658
|
/** @class */
|
|
5659
5659
|
(function(e) {
|
|
5660
5660
|
Ue(t, e);
|
|
5661
5661
|
function t(r) {
|
|
5662
5662
|
r === void 0 && (r = {});
|
|
5663
|
-
var n = e.call(this,
|
|
5663
|
+
var n = e.call(this, Kf(r).request) || this;
|
|
5664
5664
|
return n.options = r, n;
|
|
5665
5665
|
}
|
|
5666
5666
|
return t;
|
|
5667
5667
|
})(_r)
|
|
5668
5668
|
);
|
|
5669
|
-
const { toString: Ao, hasOwnProperty:
|
|
5669
|
+
const { toString: Ao, hasOwnProperty: eh } = Object.prototype, Fo = Function.prototype.toString, si = /* @__PURE__ */ new Map();
|
|
5670
5670
|
function ue(e, t) {
|
|
5671
5671
|
try {
|
|
5672
5672
|
return ci(e, t);
|
|
@@ -5692,7 +5692,7 @@ function ci(e, t) {
|
|
|
5692
5692
|
if (a !== o.length)
|
|
5693
5693
|
return !1;
|
|
5694
5694
|
for (let s = 0; s < a; ++s)
|
|
5695
|
-
if (!
|
|
5695
|
+
if (!eh.call(t, i[s]))
|
|
5696
5696
|
return !1;
|
|
5697
5697
|
for (let s = 0; s < a; ++s) {
|
|
5698
5698
|
const c = i[s];
|
|
@@ -5752,19 +5752,19 @@ function ci(e, t) {
|
|
|
5752
5752
|
case "[object AsyncGeneratorFunction]":
|
|
5753
5753
|
case "[object Function]": {
|
|
5754
5754
|
const i = Fo.call(e);
|
|
5755
|
-
return i !== Fo.call(t) ? !1 : !
|
|
5755
|
+
return i !== Fo.call(t) ? !1 : !nh(i, rh);
|
|
5756
5756
|
}
|
|
5757
5757
|
}
|
|
5758
5758
|
return !1;
|
|
5759
5759
|
}
|
|
5760
5760
|
function qo(e) {
|
|
5761
|
-
return Object.keys(e).filter(
|
|
5761
|
+
return Object.keys(e).filter(th, e);
|
|
5762
5762
|
}
|
|
5763
|
-
function
|
|
5763
|
+
function th(e) {
|
|
5764
5764
|
return this[e] !== void 0;
|
|
5765
5765
|
}
|
|
5766
|
-
const
|
|
5767
|
-
function
|
|
5766
|
+
const rh = "{ [native code] }";
|
|
5767
|
+
function nh(e, t) {
|
|
5768
5768
|
const r = e.length - t.length;
|
|
5769
5769
|
return r >= 0 && e.indexOf(t, r) === r;
|
|
5770
5770
|
}
|
|
@@ -5825,9 +5825,9 @@ function $r(e, t, r, n) {
|
|
|
5825
5825
|
});
|
|
5826
5826
|
}
|
|
5827
5827
|
function $o(e) {
|
|
5828
|
-
return !!e.directives && e.directives.some(
|
|
5828
|
+
return !!e.directives && e.directives.some(ih);
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function ih(e) {
|
|
5831
5831
|
return e.name.value === "nonreactive";
|
|
5832
5832
|
}
|
|
5833
5833
|
var Gs = wt ? WeakMap : Map, Xs = Ci ? WeakSet : Set, Bi = new Yt(), Bo = !1;
|
|
@@ -5840,14 +5840,14 @@ function Ks(e, t, r) {
|
|
|
5840
5840
|
return Object.isFrozen(e) && Wt(n), n;
|
|
5841
5841
|
});
|
|
5842
5842
|
}
|
|
5843
|
-
function
|
|
5843
|
+
function oh(e, t) {
|
|
5844
5844
|
if (t.has(e))
|
|
5845
5845
|
return t.get(e);
|
|
5846
5846
|
var r = Array.isArray(e) ? [] : /* @__PURE__ */ Object.create(null);
|
|
5847
5847
|
return t.set(e, r), r;
|
|
5848
5848
|
}
|
|
5849
5849
|
function ar(e, t, r, n, i) {
|
|
5850
|
-
var o, a = r.knownChanged, s =
|
|
5850
|
+
var o, a = r.knownChanged, s = oh(e, r.mutableTargets);
|
|
5851
5851
|
if (Array.isArray(e)) {
|
|
5852
5852
|
for (var c = 0, u = Array.from(e.entries()); c < u.length; c++) {
|
|
5853
5853
|
var l = u[c], f = l[0], h = l[1];
|
|
@@ -5874,19 +5874,19 @@ function ar(e, t, r, n, i) {
|
|
|
5874
5874
|
// or it has a `get` descriptor, not a `value` descriptor
|
|
5875
5875
|
// => it is a warning accessor and we can overwrite it
|
|
5876
5876
|
// with another accessor
|
|
5877
|
-
!(!((o = Object.getOwnPropertyDescriptor(s, b)) === null || o === void 0) && o.value) ? Object.defineProperty(s, b,
|
|
5877
|
+
!(!((o = Object.getOwnPropertyDescriptor(s, b)) === null || o === void 0) && o.value) ? Object.defineProperty(s, b, ah(b, g, i || "", r.operationName, r.operationType)) : (delete s[b], s[b] = g));
|
|
5878
5878
|
}
|
|
5879
5879
|
if (v.kind === A.INLINE_FRAGMENT && (!v.typeCondition || r.cache.fragmentMatches(v, e.__typename)) && (g = ar(e, v.selectionSet, r, n, i)), v.kind === A.FRAGMENT_SPREAD) {
|
|
5880
5880
|
var _ = v.name.value, x = r.fragmentMap[_] || (r.fragmentMap[_] = r.cache.lookupFragment(_));
|
|
5881
5881
|
R(x, 59, _);
|
|
5882
|
-
var O =
|
|
5882
|
+
var O = el(v);
|
|
5883
5883
|
O !== "mask" && (g = ar(e, x.selectionSet, r, O === "migrate", i));
|
|
5884
5884
|
}
|
|
5885
5885
|
a.has(g) && a.add(s);
|
|
5886
5886
|
}
|
|
5887
5887
|
return "__typename" in e && !("__typename" in s) && (s.__typename = e.__typename), Object.keys(s).length !== Object.keys(e).length && a.add(s), a.has(s) ? s : e;
|
|
5888
5888
|
}
|
|
5889
|
-
function
|
|
5889
|
+
function ah(e, t, r, n, i) {
|
|
5890
5890
|
var o = function() {
|
|
5891
5891
|
return Bi.getValue() || (globalThis.__DEV__ !== !1 && R.warn(60, n ? "".concat(i, " '").concat(n, "'") : "anonymous ".concat(i), "".concat(r, ".").concat(e).replace(/^\./, "")), o = function() {
|
|
5892
5892
|
return t;
|
|
@@ -5924,7 +5924,7 @@ function Zs(e, t, r, n) {
|
|
|
5924
5924
|
knownChanged: new Xs()
|
|
5925
5925
|
});
|
|
5926
5926
|
}
|
|
5927
|
-
function
|
|
5927
|
+
function sh(e, t, r) {
|
|
5928
5928
|
var n;
|
|
5929
5929
|
if (!r.fragmentMatches)
|
|
5930
5930
|
return globalThis.__DEV__ !== !1 && Js(), e;
|
|
@@ -5942,7 +5942,7 @@ var ec = (
|
|
|
5942
5942
|
/** @class */
|
|
5943
5943
|
(function() {
|
|
5944
5944
|
function e() {
|
|
5945
|
-
this.assumeImmutableResults = !1, this.getFragmentDoc = yr(
|
|
5945
|
+
this.assumeImmutableResults = !1, this.getFragmentDoc = yr(sl, {
|
|
5946
5946
|
max: Qe["cache.fragmentQueryDocuments"] || 1e3,
|
|
5947
5947
|
cache: Ur
|
|
5948
5948
|
});
|
|
@@ -6040,7 +6040,7 @@ var ec = (
|
|
|
6040
6040
|
}, e;
|
|
6041
6041
|
})()
|
|
6042
6042
|
);
|
|
6043
|
-
globalThis.__DEV__ !== !1 && (ec.prototype.getMemoryInternals =
|
|
6043
|
+
globalThis.__DEV__ !== !1 && (ec.prototype.getMemoryInternals = bl);
|
|
6044
6044
|
var tc = (
|
|
6045
6045
|
/** @class */
|
|
6046
6046
|
(function(e) {
|
|
@@ -6074,14 +6074,14 @@ var nc = {
|
|
|
6074
6074
|
// you have to change to reenable canonization by default in the future.
|
|
6075
6075
|
canonizeResults: !1
|
|
6076
6076
|
};
|
|
6077
|
-
function
|
|
6077
|
+
function ch(e) {
|
|
6078
6078
|
return xt(nc, e);
|
|
6079
6079
|
}
|
|
6080
6080
|
function ic(e) {
|
|
6081
6081
|
var t = e.canonizeResults;
|
|
6082
6082
|
return t === void 0 ? nc.canonizeResults : t;
|
|
6083
6083
|
}
|
|
6084
|
-
function
|
|
6084
|
+
function uh(e, t) {
|
|
6085
6085
|
return se(t) ? e.get(t.__ref, "__typename") : t && t.__typename;
|
|
6086
6086
|
}
|
|
6087
6087
|
var oc = /^[_a-z][_0-9a-z]*/i;
|
|
@@ -6103,7 +6103,7 @@ function ui(e, t, r) {
|
|
|
6103
6103
|
function jt(e) {
|
|
6104
6104
|
return ve(e) && !se(e) && !ge(e);
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function lh() {
|
|
6107
6107
|
return new lt();
|
|
6108
6108
|
}
|
|
6109
6109
|
function ac(e, t) {
|
|
@@ -6166,7 +6166,7 @@ var Br = /* @__PURE__ */ Object.create(null), _n = function() {
|
|
|
6166
6166
|
var o = typeof t == "string" ? this.lookup(i = t) : t, a = typeof r == "string" ? this.lookup(i = r) : r;
|
|
6167
6167
|
if (a) {
|
|
6168
6168
|
R(typeof i == "string", 2);
|
|
6169
|
-
var s = new lt(
|
|
6169
|
+
var s = new lt(hh).merge(o, a);
|
|
6170
6170
|
if (this.data[i] = s, s !== o && (delete this.refs[i], this.group.caching)) {
|
|
6171
6171
|
var c = /* @__PURE__ */ Object.create(null);
|
|
6172
6172
|
o || (c.__exists = 1), Object.keys(a).forEach(function(u) {
|
|
@@ -6349,7 +6349,7 @@ function Qo(e, t) {
|
|
|
6349
6349
|
Ue(n, r);
|
|
6350
6350
|
function n(i) {
|
|
6351
6351
|
var o = i.policies, a = i.resultCaching, s = a === void 0 ? !0 : a, c = i.seed, u = r.call(this, o, new sc(s)) || this;
|
|
6352
|
-
return u.stump = new
|
|
6352
|
+
return u.stump = new fh(u), u.storageTrie = new Xe(wt), c && u.replace(c), u;
|
|
6353
6353
|
}
|
|
6354
6354
|
return n.prototype.addLayer = function(i, o) {
|
|
6355
6355
|
return this.stump.addLayer(i, o);
|
|
@@ -6397,7 +6397,7 @@ var rt = (
|
|
|
6397
6397
|
);
|
|
6398
6398
|
}, t;
|
|
6399
6399
|
})(br)
|
|
6400
|
-
),
|
|
6400
|
+
), fh = (
|
|
6401
6401
|
/** @class */
|
|
6402
6402
|
(function(e) {
|
|
6403
6403
|
Ue(t, e);
|
|
@@ -6412,14 +6412,14 @@ var rt = (
|
|
|
6412
6412
|
}, t;
|
|
6413
6413
|
})(rt)
|
|
6414
6414
|
);
|
|
6415
|
-
function
|
|
6415
|
+
function hh(e, t, r) {
|
|
6416
6416
|
var n = e[r], i = t[r];
|
|
6417
6417
|
return ue(n, i) ? n : i;
|
|
6418
6418
|
}
|
|
6419
6419
|
function fr(e) {
|
|
6420
6420
|
return !!(e instanceof br && e.group.caching);
|
|
6421
6421
|
}
|
|
6422
|
-
function
|
|
6422
|
+
function dh(e) {
|
|
6423
6423
|
return ve(e) ? ge(e) ? e.slice(0) : k({ __proto__: Object.getPrototypeOf(e) }, e) : e;
|
|
6424
6424
|
}
|
|
6425
6425
|
var zo = (
|
|
@@ -6432,7 +6432,7 @@ var zo = (
|
|
|
6432
6432
|
return ve(t) && this.known.has(t);
|
|
6433
6433
|
}, e.prototype.pass = function(t) {
|
|
6434
6434
|
if (ve(t)) {
|
|
6435
|
-
var r =
|
|
6435
|
+
var r = dh(t);
|
|
6436
6436
|
return this.passes.set(r, t), r;
|
|
6437
6437
|
}
|
|
6438
6438
|
return t;
|
|
@@ -6493,7 +6493,7 @@ function Uo(e) {
|
|
|
6493
6493
|
e.context.canonizeResults
|
|
6494
6494
|
];
|
|
6495
6495
|
}
|
|
6496
|
-
var
|
|
6496
|
+
var ph = (
|
|
6497
6497
|
/** @class */
|
|
6498
6498
|
(function() {
|
|
6499
6499
|
function e(t) {
|
|
@@ -6542,7 +6542,7 @@ var dh = (
|
|
|
6542
6542
|
context: k({ store: r, query: n, policies: f, variables: a, varString: st(a), canonizeResults: l }, ac(n, this.config.fragments))
|
|
6543
6543
|
}), m;
|
|
6544
6544
|
if (p.missing && (m = [
|
|
6545
|
-
new tc(
|
|
6545
|
+
new tc(mh(p.missing), p.missing, n, a)
|
|
6546
6546
|
], !c))
|
|
6547
6547
|
throw m[0];
|
|
6548
6548
|
return {
|
|
@@ -6626,7 +6626,7 @@ var dh = (
|
|
|
6626
6626
|
objectOrReference: l,
|
|
6627
6627
|
enclosingRef: se(l) ? l : o,
|
|
6628
6628
|
context: a
|
|
6629
|
-
}), f) : (globalThis.__DEV__ !== !1 &&
|
|
6629
|
+
}), f) : (globalThis.__DEV__ !== !1 && vh(a.store, n, l), l);
|
|
6630
6630
|
}), {
|
|
6631
6631
|
result: a.canonizeResults ? this.canon.admit(i) : i,
|
|
6632
6632
|
missing: s
|
|
@@ -6634,7 +6634,7 @@ var dh = (
|
|
|
6634
6634
|
}, e;
|
|
6635
6635
|
})()
|
|
6636
6636
|
);
|
|
6637
|
-
function
|
|
6637
|
+
function mh(e) {
|
|
6638
6638
|
try {
|
|
6639
6639
|
JSON.stringify(e, function(t, r) {
|
|
6640
6640
|
if (typeof r == "string")
|
|
@@ -6645,14 +6645,14 @@ function ph(e) {
|
|
|
6645
6645
|
return t;
|
|
6646
6646
|
}
|
|
6647
6647
|
}
|
|
6648
|
-
function
|
|
6648
|
+
function vh(e, t, r) {
|
|
6649
6649
|
if (!t.selectionSet) {
|
|
6650
6650
|
var n = /* @__PURE__ */ new Set([r]);
|
|
6651
6651
|
n.forEach(function(i) {
|
|
6652
6652
|
ve(i) && (R(
|
|
6653
6653
|
!se(i),
|
|
6654
6654
|
11,
|
|
6655
|
-
|
|
6655
|
+
uh(e, i),
|
|
6656
6656
|
t.name.value
|
|
6657
6657
|
), Object.values(i).forEach(n.add, n));
|
|
6658
6658
|
});
|
|
@@ -6671,17 +6671,17 @@ function Yo(e) {
|
|
|
6671
6671
|
return t.forgetCache(e);
|
|
6672
6672
|
});
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function gh(e) {
|
|
6675
6675
|
hr(e).vars.forEach(function(t) {
|
|
6676
6676
|
return t.attachCache(e);
|
|
6677
6677
|
});
|
|
6678
6678
|
}
|
|
6679
|
-
function
|
|
6679
|
+
function yh(e) {
|
|
6680
6680
|
var t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = function(o) {
|
|
6681
6681
|
if (arguments.length > 0) {
|
|
6682
6682
|
if (e !== o) {
|
|
6683
6683
|
e = o, t.forEach(function(c) {
|
|
6684
|
-
hr(c).dep.dirty(n),
|
|
6684
|
+
hr(c).dep.dirty(n), bh(c);
|
|
6685
6685
|
});
|
|
6686
6686
|
var a = Array.from(r);
|
|
6687
6687
|
r.clear(), a.forEach(function(c) {
|
|
@@ -6706,7 +6706,7 @@ function gh(e) {
|
|
|
6706
6706
|
return t.delete(o);
|
|
6707
6707
|
}, n;
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function bh(e) {
|
|
6710
6710
|
e.broadcastWatches && e.broadcastWatches();
|
|
6711
6711
|
}
|
|
6712
6712
|
var Go = /* @__PURE__ */ Object.create(null);
|
|
@@ -6809,7 +6809,7 @@ function lc(e) {
|
|
|
6809
6809
|
function li(e) {
|
|
6810
6810
|
return e.args !== void 0 ? e.args : e.field ? an(e.field, e.variables) : null;
|
|
6811
6811
|
}
|
|
6812
|
-
var
|
|
6812
|
+
var xh = function() {
|
|
6813
6813
|
}, Ko = function(e, t) {
|
|
6814
6814
|
return t.fieldName;
|
|
6815
6815
|
}, Zo = function(e, t, r) {
|
|
@@ -6817,7 +6817,7 @@ var bh = function() {
|
|
|
6817
6817
|
return n(e, t);
|
|
6818
6818
|
}, ea = function(e, t) {
|
|
6819
6819
|
return t;
|
|
6820
|
-
},
|
|
6820
|
+
}, Eh = (
|
|
6821
6821
|
/** @class */
|
|
6822
6822
|
(function() {
|
|
6823
6823
|
function e(t) {
|
|
@@ -6857,7 +6857,7 @@ var bh = function() {
|
|
|
6857
6857
|
c.merge = typeof u == "function" ? u : u === !0 ? Zo : u === !1 ? ea : c.merge;
|
|
6858
6858
|
}
|
|
6859
6859
|
s(i, r.merge), i.keyFn = // Pass false to disable normalization for this typename.
|
|
6860
|
-
o === !1 ?
|
|
6860
|
+
o === !1 ? xh : ge(o) ? Xo(o) : typeof o == "function" ? o : i.keyFn, a && Object.keys(a).forEach(function(c) {
|
|
6861
6861
|
var u = n[c];
|
|
6862
6862
|
(!u || (u == null ? void 0 : u.typename) !== t) && (u = n[c] = { typename: t });
|
|
6863
6863
|
var l = a[c];
|
|
@@ -6961,7 +6961,7 @@ var bh = function() {
|
|
|
6961
6961
|
break;
|
|
6962
6962
|
}
|
|
6963
6963
|
}
|
|
6964
|
-
return o === void 0 && (o = t.field ?
|
|
6964
|
+
return o === void 0 && (o = t.field ? Pl(t.field, t.variables) : Es(n, li(t))), o === !1 ? n : n === ft(o) ? o : n + ":" + o;
|
|
6965
6965
|
}, e.prototype.readField = function(t, r) {
|
|
6966
6966
|
var n = t.from;
|
|
6967
6967
|
if (n) {
|
|
@@ -7067,14 +7067,14 @@ function Tn(e, t, r) {
|
|
|
7067
7067
|
var n = "".concat(t).concat(r), i = e.flavors.get(n);
|
|
7068
7068
|
return i || e.flavors.set(n, i = e.clientOnly === t && e.deferred === r ? e : k(k({}, e), { clientOnly: t, deferred: r })), i;
|
|
7069
7069
|
}
|
|
7070
|
-
var
|
|
7070
|
+
var wh = (
|
|
7071
7071
|
/** @class */
|
|
7072
7072
|
(function() {
|
|
7073
7073
|
function e(t, r, n) {
|
|
7074
7074
|
this.cache = t, this.reader = r, this.fragments = n;
|
|
7075
7075
|
}
|
|
7076
7076
|
return e.prototype.writeToStore = function(t, r) {
|
|
7077
|
-
var n = this, i = r.query, o = r.result, a = r.dataId, s = r.variables, c = r.overwrite, u = bt(i), l =
|
|
7077
|
+
var n = this, i = r.query, o = r.result, a = r.dataId, s = r.variables, c = r.overwrite, u = bt(i), l = lh();
|
|
7078
7078
|
s = k(k({}, ji(u)), s);
|
|
7079
7079
|
var f = k(k({ store: t, written: /* @__PURE__ */ Object.create(null), merge: function(p, m) {
|
|
7080
7080
|
return l.merge(p, m);
|
|
@@ -7107,7 +7107,7 @@ var Eh = (
|
|
|
7107
7107
|
return !!(S && S.info && S.info.merge);
|
|
7108
7108
|
};
|
|
7109
7109
|
Object.keys(y).forEach(function(w) {
|
|
7110
|
-
x(w) && !O(w) &&
|
|
7110
|
+
x(w) && !O(w) && _h(b, y, w, f.store);
|
|
7111
7111
|
});
|
|
7112
7112
|
}
|
|
7113
7113
|
t.merge(m, y);
|
|
@@ -7143,17 +7143,17 @@ var Eh = (
|
|
|
7143
7143
|
fieldName: _.name.value,
|
|
7144
7144
|
field: _,
|
|
7145
7145
|
variables: E.variables
|
|
7146
|
-
}),
|
|
7146
|
+
}), D = ra(s, S), j = r.processFieldValue(
|
|
7147
7147
|
w,
|
|
7148
7148
|
_,
|
|
7149
7149
|
// Reset context.clientOnly and context.deferred to their default
|
|
7150
7150
|
// values before processing nested selection sets.
|
|
7151
7151
|
_.selectionSet ? Tn(E, !1, !1) : E,
|
|
7152
|
-
|
|
7153
|
-
),
|
|
7154
|
-
_.selectionSet && (se(j) || jt(j)) && (
|
|
7155
|
-
var I = c.getMergeFunction(l, _.name.value,
|
|
7156
|
-
I ?
|
|
7152
|
+
D
|
|
7153
|
+
), C = void 0;
|
|
7154
|
+
_.selectionSet && (se(j) || jt(j)) && (C = f("__typename", j));
|
|
7155
|
+
var I = c.getMergeFunction(l, _.name.value, C);
|
|
7156
|
+
I ? D.info = {
|
|
7157
7157
|
// TODO Check compatibility against any existing childTree.field?
|
|
7158
7158
|
field: _,
|
|
7159
7159
|
typename: l,
|
|
@@ -7303,7 +7303,7 @@ function na(e, t) {
|
|
|
7303
7303
|
n && Yr(n) && (hc.push(n), r.delete(t));
|
|
7304
7304
|
}
|
|
7305
7305
|
var ia = /* @__PURE__ */ new Set();
|
|
7306
|
-
function
|
|
7306
|
+
function _h(e, t, r, n) {
|
|
7307
7307
|
var i = function(f) {
|
|
7308
7308
|
var h = n.getFieldValue(f, r);
|
|
7309
7309
|
return typeof h == "object" && h;
|
|
@@ -7332,7 +7332,7 @@ var dc = (
|
|
|
7332
7332
|
function t(r) {
|
|
7333
7333
|
r === void 0 && (r = {});
|
|
7334
7334
|
var n = e.call(this) || this;
|
|
7335
|
-
return n.watches = /* @__PURE__ */ new Set(), n.addTypenameTransform = new Ns(Pi), n.assumeImmutableResults = !0, n.makeVar =
|
|
7335
|
+
return n.watches = /* @__PURE__ */ new Set(), n.addTypenameTransform = new Ns(Pi), n.assumeImmutableResults = !0, n.makeVar = yh, n.txCount = 0, globalThis.__DEV__ !== !1 && (me(r, "addTypename", "InMemoryCache", "Please remove the `addTypename` option when initializing `InMemoryCache`."), me(r, "canonizeResults", "InMemoryCache", "Please remove the `canonizeResults` option when initializing `InMemoryCache`.")), n.config = ch(r), n.addTypename = !!n.config.addTypename, n.policies = new Eh({
|
|
7336
7336
|
cache: n,
|
|
7337
7337
|
dataIdFromObject: n.config.dataIdFromObject,
|
|
7338
7338
|
possibleTypes: n.config.possibleTypes,
|
|
@@ -7347,7 +7347,7 @@ var dc = (
|
|
|
7347
7347
|
this.optimisticData = r.stump, this.resetResultCache();
|
|
7348
7348
|
}, t.prototype.resetResultCache = function(r) {
|
|
7349
7349
|
var n = this, i = this.storeReader, o = this.config.fragments;
|
|
7350
|
-
this.addTypenameTransform.resetCache(), o == null || o.resetCaches(), this.storeWriter = new
|
|
7350
|
+
this.addTypenameTransform.resetCache(), o == null || o.resetCaches(), this.storeWriter = new wh(this, this.storeReader = new ph({
|
|
7351
7351
|
cache: this,
|
|
7352
7352
|
addTypename: this.addTypename,
|
|
7353
7353
|
resultCacheMaxSize: this.config.resultCacheMaxSize,
|
|
@@ -7411,7 +7411,7 @@ var dc = (
|
|
|
7411
7411
|
return globalThis.__DEV__ !== !1 && me(r, "canonizeResults", "cache.diff"), this.storeReader.diffQueryAgainstStore(k(k({}, r), { store: r.optimistic ? this.optimisticData : this.data, rootId: r.id || "ROOT_QUERY", config: this.config }));
|
|
7412
7412
|
}, t.prototype.watch = function(r) {
|
|
7413
7413
|
var n = this;
|
|
7414
|
-
return this.watches.size ||
|
|
7414
|
+
return this.watches.size || gh(this), this.watches.add(r), r.immediate && this.maybeBroadcastWatch(r), function() {
|
|
7415
7415
|
n.watches.delete(r) && !n.watches.size && Yo(n), n.maybeBroadcastWatch.forget(r);
|
|
7416
7416
|
};
|
|
7417
7417
|
}, t.prototype.gc = function(r) {
|
|
@@ -7497,15 +7497,15 @@ var dc = (
|
|
|
7497
7497
|
}, t;
|
|
7498
7498
|
})(ec)
|
|
7499
7499
|
);
|
|
7500
|
-
globalThis.__DEV__ !== !1 && (dc.prototype.getMemoryInternals =
|
|
7501
|
-
var
|
|
7500
|
+
globalThis.__DEV__ !== !1 && (dc.prototype.getMemoryInternals = yl);
|
|
7501
|
+
var ie;
|
|
7502
7502
|
(function(e) {
|
|
7503
7503
|
e[e.loading = 1] = "loading", e[e.setVariables = 2] = "setVariables", e[e.fetchMore = 3] = "fetchMore", e[e.refetch = 4] = "refetch", e[e.poll = 6] = "poll", e[e.ready = 7] = "ready", e[e.error = 8] = "error";
|
|
7504
|
-
})(
|
|
7504
|
+
})(ie || (ie = {}));
|
|
7505
7505
|
function Rt(e) {
|
|
7506
7506
|
return e ? e < 7 : !1;
|
|
7507
7507
|
}
|
|
7508
|
-
var oa = Object.assign,
|
|
7508
|
+
var oa = Object.assign, Sh = Object.hasOwnProperty, dr = (
|
|
7509
7509
|
/** @class */
|
|
7510
7510
|
(function(e) {
|
|
7511
7511
|
Ue(t, e);
|
|
@@ -7515,7 +7515,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7515
7515
|
a._getOrCreateQuery();
|
|
7516
7516
|
try {
|
|
7517
7517
|
var b = g._subscription._observer;
|
|
7518
|
-
b && !b.error && (b.error =
|
|
7518
|
+
b && !b.error && (b.error = Th);
|
|
7519
7519
|
} catch {
|
|
7520
7520
|
}
|
|
7521
7521
|
var E = !a.observers.size;
|
|
@@ -7583,7 +7583,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7583
7583
|
r === void 0 && (r = !0);
|
|
7584
7584
|
var i = Se("getLastResult", function() {
|
|
7585
7585
|
return n.getLastResult(!0);
|
|
7586
|
-
}), o = this.queryInfo.networkStatus || i && i.networkStatus ||
|
|
7586
|
+
}), o = this.queryInfo.networkStatus || i && i.networkStatus || ie.ready, a = k(k({}, i), { loading: Rt(o), networkStatus: o }), s = this.options.fetchPolicy, c = s === void 0 ? "cache-first" : s;
|
|
7587
7587
|
if (
|
|
7588
7588
|
// These fetch policies should never deliver data from the cache, unless
|
|
7589
7589
|
// redelivering a previously delivered result.
|
|
@@ -7596,7 +7596,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7596
7596
|
this.queryInfo.updateWatch();
|
|
7597
7597
|
else {
|
|
7598
7598
|
var u = this.queryInfo.getDiff();
|
|
7599
|
-
(u.complete || this.options.returnPartialData) && (a.data = u.result), ue(a.data, {}) && (a.data = void 0), u.complete ? (delete a.partial, u.complete && a.networkStatus ===
|
|
7599
|
+
(u.complete || this.options.returnPartialData) && (a.data = u.result), ue(a.data, {}) && (a.data = void 0), u.complete ? (delete a.partial, u.complete && a.networkStatus === ie.loading && (c === "cache-first" || c === "cache-only") && (a.networkStatus = ie.ready, a.loading = !1)) : a.partial = !0, a.networkStatus === ie.ready && (a.error || a.errors) && (a.networkStatus = ie.error), globalThis.__DEV__ !== !1 && !u.complete && !this.options.partialRefetch && !a.loading && !a.data && !a.error && pc(u.missing);
|
|
7600
7600
|
}
|
|
7601
7601
|
return r && this.updateLastResult(a), a;
|
|
7602
7602
|
}, t.prototype.getCurrentResult = function(r) {
|
|
@@ -7629,7 +7629,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7629
7629
|
// Always disable polling for refetches.
|
|
7630
7630
|
pollInterval: 0
|
|
7631
7631
|
}, o = this.options.fetchPolicy;
|
|
7632
|
-
if (o === "no-cache" ? i.fetchPolicy = "no-cache" : i.fetchPolicy = "network-only", globalThis.__DEV__ !== !1 && r &&
|
|
7632
|
+
if (o === "no-cache" ? i.fetchPolicy = "no-cache" : i.fetchPolicy = "network-only", globalThis.__DEV__ !== !1 && r && Sh.call(r, "variables")) {
|
|
7633
7633
|
var a = ws(this.query), s = a.variableDefinitions;
|
|
7634
7634
|
(!s || !s.some(function(c) {
|
|
7635
7635
|
return c.variable.name.value === "variables";
|
|
@@ -7639,7 +7639,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7639
7639
|
((n = a.name) === null || n === void 0 ? void 0 : n.value) || a
|
|
7640
7640
|
);
|
|
7641
7641
|
}
|
|
7642
|
-
return r && !ue(this.options.variables, r) && (i.variables = this.options.variables = k(k({}, this.options.variables), r)), this.queryInfo.resetLastWrite(), this.reobserve(i,
|
|
7642
|
+
return r && !ue(this.options.variables, r) && (i.variables = this.options.variables = k(k({}, this.options.variables), r)), this.queryInfo.resetLastWrite(), this.reobserve(i, ie.refetch);
|
|
7643
7643
|
}, t.prototype.fetchMore = function(r) {
|
|
7644
7644
|
var n = this, i = k(k({}, r.query ? r : k(k(k(k({}, this.options), { query: this.options.query }), r), { variables: k(k({}, this.options.variables), r.variables) })), {
|
|
7645
7645
|
// The fetchMore request goes immediately to the network and does
|
|
@@ -7653,10 +7653,10 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7653
7653
|
var o = this.queryManager.generateQueryId();
|
|
7654
7654
|
this.lastQuery = r.query ? this.transformDocument(this.options.query) : i.query;
|
|
7655
7655
|
var a = this.queryInfo, s = a.networkStatus;
|
|
7656
|
-
a.networkStatus =
|
|
7656
|
+
a.networkStatus = ie.fetchMore, i.notifyOnNetworkStatusChange && this.observe();
|
|
7657
7657
|
var c = /* @__PURE__ */ new Set(), u = r == null ? void 0 : r.updateQuery, l = this.options.fetchPolicy !== "no-cache";
|
|
7658
|
-
return l || R(u, 29), this.queryManager.fetchQuery(o, i,
|
|
7659
|
-
if (n.queryManager.removeQuery(o), a.networkStatus ===
|
|
7658
|
+
return l || R(u, 29), this.queryManager.fetchQuery(o, i, ie.fetchMore).then(function(f) {
|
|
7659
|
+
if (n.queryManager.removeQuery(o), a.networkStatus === ie.fetchMore && (a.networkStatus = s), l)
|
|
7660
7660
|
n.queryManager.cache.batch({
|
|
7661
7661
|
update: function(m) {
|
|
7662
7662
|
var y = r.updateQuery;
|
|
@@ -7729,7 +7729,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7729
7729
|
// Reset options.fetchPolicy to its original value.
|
|
7730
7730
|
fetchPolicy: this.options.initialFetchPolicy,
|
|
7731
7731
|
variables: r
|
|
7732
|
-
},
|
|
7732
|
+
}, ie.setVariables) : Promise.resolve());
|
|
7733
7733
|
}, t.prototype.updateQuery = function(r) {
|
|
7734
7734
|
var n = this.queryManager, i = n.cache.diff({
|
|
7735
7735
|
query: this.options.query,
|
|
@@ -7784,7 +7784,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7784
7784
|
// no-cache are both useful for when the user wants to control whether or not the
|
|
7785
7785
|
// polled results are written to the cache.
|
|
7786
7786
|
fetchPolicy: r.options.initialFetchPolicy === "no-cache" ? "no-cache" : "network-only"
|
|
7787
|
-
},
|
|
7787
|
+
}, ie.poll).then(c, c) : c());
|
|
7788
7788
|
}, c = function() {
|
|
7789
7789
|
var u = r.pollingInfo;
|
|
7790
7790
|
u && (clearTimeout(u.timeout), u.timeout = setTimeout(s, u.interval));
|
|
@@ -7806,11 +7806,11 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7806
7806
|
// Refetching uses a disposable Concast to allow refetches using different
|
|
7807
7807
|
// options/variables, without permanently altering the options of the
|
|
7808
7808
|
// original ObservableQuery.
|
|
7809
|
-
n ===
|
|
7809
|
+
n === ie.refetch || // The fetchMore method does not actually call the reobserve method, but,
|
|
7810
7810
|
// if it did, it would definitely use a disposable Concast.
|
|
7811
|
-
n ===
|
|
7811
|
+
n === ie.fetchMore || // Polling uses a disposable Concast so the polling options (which force
|
|
7812
7812
|
// fetchPolicy to be "network-only" or "no-cache") won't override the original options.
|
|
7813
|
-
n ===
|
|
7813
|
+
n === ie.poll
|
|
7814
7814
|
), a = this.options.variables, s = this.options.fetchPolicy, c = xt(this.options, r || {}), u = o ? (
|
|
7815
7815
|
// Disposable Concast fetches receive a shallow copy of this.options
|
|
7816
7816
|
// (merged with newOptions), leaving this.options unmodified.
|
|
@@ -7821,7 +7821,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7821
7821
|
// using applyNextFetchPolicy. The explicit options.fetchPolicy wins.
|
|
7822
7822
|
(u.fetchPolicy === s || // A `nextFetchPolicy` function has even higher priority, though,
|
|
7823
7823
|
// so in that case `applyNextFetchPolicy` must be called.
|
|
7824
|
-
typeof u.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", u), n === void 0 && (n =
|
|
7824
|
+
typeof u.nextFetchPolicy == "function") && (this.applyNextFetchPolicy("variables-changed", u), n === void 0 && (n = ie.setVariables))), this.waitForOwnResult && (this.waitForOwnResult = kn(u.fetchPolicy));
|
|
7825
7825
|
var f = function() {
|
|
7826
7826
|
i.concast === m && (i.waitForOwnResult = !1);
|
|
7827
7827
|
}, h = u.variables && k({}, u.variables), p = this.fetch(u, n, l), m = p.concast, y = p.fromLink, v = {
|
|
@@ -7834,7 +7834,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7834
7834
|
};
|
|
7835
7835
|
return !o && (y || !this.concast) && (this.concast && this.observer && this.concast.removeObserver(this.observer), this.concast = m, this.observer = v), m.addObserver(v), m;
|
|
7836
7836
|
}, t.prototype.reobserve = function(r, n) {
|
|
7837
|
-
return
|
|
7837
|
+
return hf(this.reobserveAsConcast(r, n).promise.then(this.maskResult));
|
|
7838
7838
|
}, t.prototype.resubscribeAfterError = function() {
|
|
7839
7839
|
for (var r = this, n = [], i = 0; i < arguments.length; i++)
|
|
7840
7840
|
n[i] = arguments[i];
|
|
@@ -7861,7 +7861,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7861
7861
|
}, t.prototype.reportError = function(r, n) {
|
|
7862
7862
|
var i = this, o = k(k({}, Se("getLastResult", function() {
|
|
7863
7863
|
return i.getLastResult();
|
|
7864
|
-
})), { error: r, errors: r.graphQLErrors, networkStatus:
|
|
7864
|
+
})), { error: r, errors: r.graphQLErrors, networkStatus: ie.error, loading: !1 });
|
|
7865
7865
|
this.updateLastResult(o, n), lr(this.observers, "error", this.last.error = r);
|
|
7866
7866
|
}, t.prototype.hasObservers = function() {
|
|
7867
7867
|
return this.observers.size > 0;
|
|
@@ -7907,7 +7907,7 @@ var oa = Object.assign, _h = Object.hasOwnProperty, dr = (
|
|
|
7907
7907
|
})(he)
|
|
7908
7908
|
);
|
|
7909
7909
|
Ws(dr);
|
|
7910
|
-
function
|
|
7910
|
+
function Th(e) {
|
|
7911
7911
|
globalThis.__DEV__ !== !1 && R.error(33, e.message, e.stack);
|
|
7912
7912
|
}
|
|
7913
7913
|
function pc(e) {
|
|
@@ -7939,8 +7939,8 @@ var Cn = (
|
|
|
7939
7939
|
It.has(n) || (It.set(n, 0), On(n, "evict"), On(n, "modify"), On(n, "reset"));
|
|
7940
7940
|
}
|
|
7941
7941
|
return e.prototype.init = function(t) {
|
|
7942
|
-
var r = t.networkStatus ||
|
|
7943
|
-
return this.variables && this.networkStatus !==
|
|
7942
|
+
var r = t.networkStatus || ie.loading;
|
|
7943
|
+
return this.variables && this.networkStatus !== ie.loading && !ue(this.variables, t.variables) && (r = ie.setVariables), ue(t.variables, this.variables) || (this.lastDiff = void 0, this.cancel()), Object.assign(this, {
|
|
7944
7944
|
document: t.document,
|
|
7945
7945
|
variables: t.variables,
|
|
7946
7946
|
networkError: null,
|
|
@@ -8042,10 +8042,10 @@ var Cn = (
|
|
|
8042
8042
|
!o.stopped && ue(o.variables, n.variables) && o.updateWatch(n.variables), o.updateLastDiff(p, h), p.complete && (t.data = p.result);
|
|
8043
8043
|
}) : this.lastWrite = void 0);
|
|
8044
8044
|
}, e.prototype.markReady = function() {
|
|
8045
|
-
return this.networkError = null, this.networkStatus =
|
|
8045
|
+
return this.networkError = null, this.networkStatus = ie.ready;
|
|
8046
8046
|
}, e.prototype.markError = function(t) {
|
|
8047
8047
|
var r;
|
|
8048
|
-
return this.networkStatus =
|
|
8048
|
+
return this.networkStatus = ie.error, this.lastWrite = void 0, (r = this.observableQuery) === null || r === void 0 || r.resetNotifications(), t.graphQLErrors && (this.graphQLErrors = t.graphQLErrors), t.networkError && (this.networkError = t.networkError), t;
|
|
8049
8049
|
}, e;
|
|
8050
8050
|
})()
|
|
8051
8051
|
);
|
|
@@ -8054,7 +8054,7 @@ function hi(e, t) {
|
|
|
8054
8054
|
var r = t === "ignore" || t === "all", n = !Vr(e);
|
|
8055
8055
|
return !n && r && e.data && (n = !0), n;
|
|
8056
8056
|
}
|
|
8057
|
-
var
|
|
8057
|
+
var kh = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(null), Oh = (
|
|
8058
8058
|
/** @class */
|
|
8059
8059
|
(function() {
|
|
8060
8060
|
function e(t) {
|
|
@@ -8085,11 +8085,11 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8085
8085
|
}), this.fetchCancelFns.clear();
|
|
8086
8086
|
}, e.prototype.mutate = function(t) {
|
|
8087
8087
|
return nt(this, arguments, void 0, function(r) {
|
|
8088
|
-
var n, i, o, a, s, c, u, l = r.mutation, f = r.variables, h = r.optimisticResponse, p = r.updateQueries, m = r.refetchQueries, y = m === void 0 ? [] : m, v = r.awaitRefetchQueries, g = v === void 0 ? !1 : v, b = r.update, E = r.onQueryUpdated, _ = r.fetchPolicy, x = _ === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : _, O = r.errorPolicy, w = O === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : O, S = r.keepRootFields,
|
|
8088
|
+
var n, i, o, a, s, c, u, l = r.mutation, f = r.variables, h = r.optimisticResponse, p = r.updateQueries, m = r.refetchQueries, y = m === void 0 ? [] : m, v = r.awaitRefetchQueries, g = v === void 0 ? !1 : v, b = r.update, E = r.onQueryUpdated, _ = r.fetchPolicy, x = _ === void 0 ? ((c = this.defaultOptions.mutate) === null || c === void 0 ? void 0 : c.fetchPolicy) || "network-only" : _, O = r.errorPolicy, w = O === void 0 ? ((u = this.defaultOptions.mutate) === null || u === void 0 ? void 0 : u.errorPolicy) || "none" : O, S = r.keepRootFields, D = r.context;
|
|
8089
8089
|
return it(this, function(j) {
|
|
8090
8090
|
switch (j.label) {
|
|
8091
8091
|
case 0:
|
|
8092
|
-
return R(l, 36), R(x === "network-only" || x === "no-cache", 37), n = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports, f = this.getVariables(l, f), i ? [4, this.localState.addExportedVariables(l, f,
|
|
8092
|
+
return R(l, 36), R(x === "network-only" || x === "no-cache", 37), n = this.generateMutationId(), l = this.cache.transformForLink(this.transform(l)), i = this.getDocumentInfo(l).hasClientExports, f = this.getVariables(l, f), i ? [4, this.localState.addExportedVariables(l, f, D)] : [3, 2];
|
|
8093
8093
|
case 1:
|
|
8094
8094
|
f = j.sent(), j.label = 2;
|
|
8095
8095
|
case 2:
|
|
@@ -8104,18 +8104,18 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8104
8104
|
variables: f,
|
|
8105
8105
|
fetchPolicy: x,
|
|
8106
8106
|
errorPolicy: w,
|
|
8107
|
-
context:
|
|
8107
|
+
context: D,
|
|
8108
8108
|
updateQueries: p,
|
|
8109
8109
|
update: b,
|
|
8110
8110
|
keepRootFields: S
|
|
8111
|
-
}), this.broadcastQueries(), s = this, [2, new Promise(function(
|
|
8112
|
-
return En(s.getObservableFromLink(l, k(k({},
|
|
8113
|
-
if (Vr(
|
|
8111
|
+
}), this.broadcastQueries(), s = this, [2, new Promise(function(C, I) {
|
|
8112
|
+
return En(s.getObservableFromLink(l, k(k({}, D), { optimisticResponse: a ? h : void 0 }), f, {}, !1), function(F) {
|
|
8113
|
+
if (Vr(F) && w === "none")
|
|
8114
8114
|
throw new He({
|
|
8115
|
-
graphQLErrors: ni(
|
|
8115
|
+
graphQLErrors: ni(F)
|
|
8116
8116
|
});
|
|
8117
8117
|
o && (o.loading = !1, o.error = null);
|
|
8118
|
-
var B = k({},
|
|
8118
|
+
var B = k({}, F);
|
|
8119
8119
|
return typeof y == "function" && (y = y(B)), w === "ignore" && Vr(B) && delete B.errors, s.markMutationResult({
|
|
8120
8120
|
mutationId: n,
|
|
8121
8121
|
result: B,
|
|
@@ -8123,7 +8123,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8123
8123
|
variables: f,
|
|
8124
8124
|
fetchPolicy: x,
|
|
8125
8125
|
errorPolicy: w,
|
|
8126
|
-
context:
|
|
8126
|
+
context: D,
|
|
8127
8127
|
update: b,
|
|
8128
8128
|
updateQueries: p,
|
|
8129
8129
|
awaitRefetchQueries: g,
|
|
@@ -8133,17 +8133,17 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8133
8133
|
keepRootFields: S
|
|
8134
8134
|
});
|
|
8135
8135
|
}).subscribe({
|
|
8136
|
-
next: function(
|
|
8137
|
-
s.broadcastQueries(), (!("hasNext" in
|
|
8136
|
+
next: function(F) {
|
|
8137
|
+
s.broadcastQueries(), (!("hasNext" in F) || F.hasNext === !1) && C(k(k({}, F), { data: s.maskOperation({
|
|
8138
8138
|
document: l,
|
|
8139
|
-
data:
|
|
8139
|
+
data: F.data,
|
|
8140
8140
|
fetchPolicy: x,
|
|
8141
8141
|
id: n
|
|
8142
8142
|
}) }));
|
|
8143
8143
|
},
|
|
8144
|
-
error: function(
|
|
8145
|
-
o && (o.loading = !1, o.error =
|
|
8146
|
-
networkError:
|
|
8144
|
+
error: function(F) {
|
|
8145
|
+
o && (o.loading = !1, o.error = F), a && s.cache.removeOptimistic(n), s.broadcastQueries(), I(F instanceof He ? F : new He({
|
|
8146
|
+
networkError: F
|
|
8147
8147
|
}));
|
|
8148
8148
|
}
|
|
8149
8149
|
});
|
|
@@ -8182,7 +8182,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8182
8182
|
var u = t.updateQueries;
|
|
8183
8183
|
u && this.queries.forEach(function(f, h) {
|
|
8184
8184
|
var p = f.observableQuery, m = p && p.queryName;
|
|
8185
|
-
if (!(!m || !
|
|
8185
|
+
if (!(!m || !kh.call(u, m))) {
|
|
8186
8186
|
var y = u[m], v = n.queries.get(h), g = v.document, b = v.variables, E = r.diff({
|
|
8187
8187
|
query: g,
|
|
8188
8188
|
variables: b,
|
|
@@ -8212,7 +8212,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8212
8212
|
a || o.forEach(function(y) {
|
|
8213
8213
|
return f.write(y);
|
|
8214
8214
|
});
|
|
8215
|
-
var h = t.update, p = !
|
|
8215
|
+
var h = t.update, p = !gf(i) || At(i) && !i.hasNext;
|
|
8216
8216
|
if (h) {
|
|
8217
8217
|
if (!a) {
|
|
8218
8218
|
var m = f.diff({
|
|
@@ -8294,10 +8294,10 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8294
8294
|
// of the transformed document. We should consider merging these
|
|
8295
8295
|
// traversals into a single pass in the future, though the work is
|
|
8296
8296
|
// cached after the first time.
|
|
8297
|
-
hasClientExports:
|
|
8297
|
+
hasClientExports: Ju(t),
|
|
8298
8298
|
hasForcedResolvers: this.localState.shouldForceResolvers(t),
|
|
8299
8299
|
hasNonreactiveDirective: vr(["nonreactive"], t),
|
|
8300
|
-
nonReactiveQuery:
|
|
8300
|
+
nonReactiveQuery: ef(t),
|
|
8301
8301
|
clientQuery: this.localState.clientQuery(t),
|
|
8302
8302
|
serverQuery: As([
|
|
8303
8303
|
{ name: "client", remove: !0 },
|
|
@@ -8359,7 +8359,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8359
8359
|
return t === void 0 && (t = {
|
|
8360
8360
|
discardWatches: !0
|
|
8361
8361
|
}), this.cancelPendingFetches(je(42)), this.queries.forEach(function(r) {
|
|
8362
|
-
r.observableQuery ? r.networkStatus =
|
|
8362
|
+
r.observableQuery ? r.networkStatus = ie.loading : r.stop();
|
|
8363
8363
|
}), this.mutationStore && (this.mutationStore = /* @__PURE__ */ Object.create(null)), this.cache.reset(t);
|
|
8364
8364
|
}, e.prototype.getObservableQueries = function(t) {
|
|
8365
8365
|
var r = this;
|
|
@@ -8368,7 +8368,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8368
8368
|
return Array.isArray(t) && t.forEach(function(s) {
|
|
8369
8369
|
if (typeof s == "string")
|
|
8370
8370
|
i.set(s, s), o.set(s, !1);
|
|
8371
|
-
else if (
|
|
8371
|
+
else if (kl(s)) {
|
|
8372
8372
|
var c = vt(r.transform(s));
|
|
8373
8373
|
i.set(c, or(s)), o.set(c, !1);
|
|
8374
8374
|
} else ve(s) && s.query && a.add(s);
|
|
@@ -8421,7 +8421,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8421
8421
|
dataId: "ROOT_SUBSCRIPTION",
|
|
8422
8422
|
variables: m
|
|
8423
8423
|
}), r.broadcastQueries());
|
|
8424
|
-
var v = Vr(y), g =
|
|
8424
|
+
var v = Vr(y), g = Pf(y);
|
|
8425
8425
|
if (v || g) {
|
|
8426
8426
|
var b = {};
|
|
8427
8427
|
if (v && (b.graphQLErrors = y.errors), g && (b.protocolErrors = y.extensions[$i]), s === "none" || g)
|
|
@@ -8506,16 +8506,16 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8506
8506
|
var l = {
|
|
8507
8507
|
data: a.data,
|
|
8508
8508
|
loading: !1,
|
|
8509
|
-
networkStatus:
|
|
8509
|
+
networkStatus: ie.ready
|
|
8510
8510
|
};
|
|
8511
|
-
return c && u === "none" && (l.data = void 0), c && u !== "ignore" && (l.errors = s, l.networkStatus =
|
|
8511
|
+
return c && u === "none" && (l.data = void 0), c && u !== "ignore" && (l.errors = s, l.networkStatus = ie.error), l;
|
|
8512
8512
|
}, function(a) {
|
|
8513
8513
|
var s = Us(a) ? a : new He({ networkError: a });
|
|
8514
8514
|
throw i >= t.lastRequestId && t.markError(s), s;
|
|
8515
8515
|
});
|
|
8516
8516
|
}, e.prototype.fetchConcastWithInfo = function(t, r, n, i) {
|
|
8517
8517
|
var o = this;
|
|
8518
|
-
n === void 0 && (n =
|
|
8518
|
+
n === void 0 && (n = ie.loading), i === void 0 && (i = r.query);
|
|
8519
8519
|
var a = this.getVariables(i, r.variables), s = this.defaultOptions.watchQuery, c = r.fetchPolicy, u = c === void 0 ? s && s.fetchPolicy || "cache-first" : c, l = r.errorPolicy, f = l === void 0 ? s && s.errorPolicy || "none" : l, h = r.returnPartialData, p = h === void 0 ? !1 : h, m = r.notifyOnNetworkStatusChange, y = m === void 0 ? !1 : m, v = r.context, g = v === void 0 ? {} : v, b = Object.assign({}, r, {
|
|
8520
8520
|
query: i,
|
|
8521
8521
|
variables: a,
|
|
@@ -8526,13 +8526,13 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8526
8526
|
context: g
|
|
8527
8527
|
}), E = function(S) {
|
|
8528
8528
|
b.variables = S;
|
|
8529
|
-
var
|
|
8529
|
+
var D = o.fetchQueryByPolicy(t, b, n);
|
|
8530
8530
|
return (
|
|
8531
8531
|
// If we're in standby, postpone advancing options.fetchPolicy using
|
|
8532
8532
|
// applyNextFetchPolicy.
|
|
8533
8533
|
b.fetchPolicy !== "standby" && // The "standby" policy currently returns [] from fetchQueryByPolicy, so
|
|
8534
8534
|
// this is another way to detect when nothing was done/fetched.
|
|
8535
|
-
|
|
8535
|
+
D.sources.length > 0 && t.observableQuery && t.observableQuery.applyNextFetchPolicy("after-fetch", r), D
|
|
8536
8536
|
);
|
|
8537
8537
|
}, _ = function() {
|
|
8538
8538
|
return o.fetchCancelFns.delete(t.queryId);
|
|
@@ -8625,12 +8625,12 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8625
8625
|
var r, n, i, o = t.document, a = t.data;
|
|
8626
8626
|
if (globalThis.__DEV__ !== !1) {
|
|
8627
8627
|
var s = t.fetchPolicy, c = t.id, u = (r = bt(o)) === null || r === void 0 ? void 0 : r.operation, l = ((n = u == null ? void 0 : u[0]) !== null && n !== void 0 ? n : "o") + c;
|
|
8628
|
-
this.dataMasking && s === "no-cache" && !
|
|
8628
|
+
this.dataMasking && s === "no-cache" && !cl(o) && !this.noCacheWarningsByQueryId.has(l) && (this.noCacheWarningsByQueryId.add(l), globalThis.__DEV__ !== !1 && R.warn(
|
|
8629
8629
|
45,
|
|
8630
8630
|
(i = or(o)) !== null && i !== void 0 ? i : "Unnamed ".concat(u ?? "operation")
|
|
8631
8631
|
));
|
|
8632
8632
|
}
|
|
8633
|
-
return this.dataMasking ?
|
|
8633
|
+
return this.dataMasking ? sh(a, o, this.cache) : a;
|
|
8634
8634
|
}, e.prototype.maskFragment = function(t) {
|
|
8635
8635
|
var r = t.data, n = t.fragment, i = t.fragmentName;
|
|
8636
8636
|
return this.dataMasking ? Zs(r, n, this.cache, i) : r;
|
|
@@ -8644,7 +8644,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8644
8644
|
var m = function() {
|
|
8645
8645
|
return t.getDiff();
|
|
8646
8646
|
}, y = function(_, x) {
|
|
8647
|
-
x === void 0 && (x = t.networkStatus ||
|
|
8647
|
+
x === void 0 && (x = t.networkStatus || ie.loading);
|
|
8648
8648
|
var O = _.result;
|
|
8649
8649
|
globalThis.__DEV__ !== !1 && !l && !ue(O, {}) && pc(_.missing);
|
|
8650
8650
|
var w = function(S) {
|
|
@@ -8658,8 +8658,8 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8658
8658
|
onlyRunForcedResolvers: !0
|
|
8659
8659
|
}).then(function(S) {
|
|
8660
8660
|
return w(S.data || void 0);
|
|
8661
|
-
}) : u === "none" && x ===
|
|
8662
|
-
}, v = s === "no-cache" ? 0 : n ===
|
|
8661
|
+
}) : u === "none" && x === ie.refetch && Array.isArray(_.missing) ? w(void 0) : w(O);
|
|
8662
|
+
}, v = s === "no-cache" ? 0 : n === ie.refetch && c !== "merge" ? 1 : 2, g = function() {
|
|
8663
8663
|
return i.getResultsFromLink(t, v, {
|
|
8664
8664
|
query: o,
|
|
8665
8665
|
variables: a,
|
|
@@ -8716,7 +8716,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8716
8716
|
return k(k(k({}, this.defaultContext), r), { clientAwareness: this.clientAwareness });
|
|
8717
8717
|
}, e;
|
|
8718
8718
|
})()
|
|
8719
|
-
),
|
|
8719
|
+
), Ch = (
|
|
8720
8720
|
/** @class */
|
|
8721
8721
|
(function() {
|
|
8722
8722
|
function e(t) {
|
|
@@ -8780,7 +8780,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8780
8780
|
}), r;
|
|
8781
8781
|
}, e.prototype.buildRootValueFromCache = function(t, r) {
|
|
8782
8782
|
return this.cache.diff({
|
|
8783
|
-
query:
|
|
8783
|
+
query: Zl(t),
|
|
8784
8784
|
variables: r,
|
|
8785
8785
|
returnPartialData: !0,
|
|
8786
8786
|
optimistic: !1
|
|
@@ -8822,7 +8822,7 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8822
8822
|
] : Er(h, s) ? ct(h) ? [2, this.resolveField(h, r, n, i).then(function(v) {
|
|
8823
8823
|
var g;
|
|
8824
8824
|
typeof v < "u" && c.push((g = {}, g[Ge(h)] = v, g));
|
|
8825
|
-
})] : (
|
|
8825
|
+
})] : (Fl(h) ? p = h : (p = o[h.name.value], R(p, 21, h.name.value)), p && p.typeCondition && (m = p.typeCondition.name.value, i.fragmentMatcher(n, m, a)) ? [2, this.resolveSelectionSet(p.selectionSet, r, n, i).then(function(v) {
|
|
8826
8826
|
c.push(v);
|
|
8827
8827
|
})] : [
|
|
8828
8828
|
2
|
|
@@ -8916,17 +8916,17 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8916
8916
|
var r = this, n, i, o;
|
|
8917
8917
|
if (this.resetStoreCallbacks = [], this.clearStoreCallbacks = [], !t.cache)
|
|
8918
8918
|
throw je(16);
|
|
8919
|
-
var a = t.uri, s = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform, f = t.ssrMode, h = f === void 0 ? !1 : f, p = t.ssrForceFetchDelay, m = p === void 0 ? 0 : p, y = t.connectToDevTools, v = t.queryDeduplication, g = v === void 0 ? !0 : v, b = t.defaultOptions, E = t.defaultContext, _ = t.assumeImmutableResults, x = _ === void 0 ? u.assumeImmutableResults : _, O = t.resolvers, w = t.typeDefs, S = t.fragmentMatcher,
|
|
8919
|
+
var a = t.uri, s = t.credentials, c = t.headers, u = t.cache, l = t.documentTransform, f = t.ssrMode, h = f === void 0 ? !1 : f, p = t.ssrForceFetchDelay, m = p === void 0 ? 0 : p, y = t.connectToDevTools, v = t.queryDeduplication, g = v === void 0 ? !0 : v, b = t.defaultOptions, E = t.defaultContext, _ = t.assumeImmutableResults, x = _ === void 0 ? u.assumeImmutableResults : _, O = t.resolvers, w = t.typeDefs, S = t.fragmentMatcher, D = t.clientAwareness, j = t.name, C = t.version, I = t.devtools, F = t.dataMasking;
|
|
8920
8920
|
globalThis.__DEV__ !== !1 && (me(t, "connectToDevTools", "ApolloClient", "Please use `devtools.enabled` instead."), me(t, "uri", "ApolloClient", "Please initialize an instance of `HttpLink` with `uri` instead."), me(t, "credentials", "ApolloClient", "Please initialize an instance of `HttpLink` with `credentials` instead."), me(t, "headers", "ApolloClient", "Please initialize an instance of `HttpLink` with `headers` instead."), me(t, "name", "ApolloClient", "Please use the `clientAwareness.name` option instead."), me(t, "version", "ApolloClient", "Please use the `clientAwareness.version` option instead."), me(t, "typeDefs", "ApolloClient"), t.link || globalThis.__DEV__ !== !1 && R.warn(17));
|
|
8921
8921
|
var B = t.link;
|
|
8922
|
-
B || (B = a ? new
|
|
8922
|
+
B || (B = a ? new Zf({ uri: a, credentials: s, headers: c }) : _r.empty()), this.link = B, this.cache = u, this.disableNetworkFetches = h || m > 0, this.queryDeduplication = g, this.defaultOptions = b || /* @__PURE__ */ Object.create(null), this.typeDefs = w, this.devtoolsConfig = k(k({}, I), { enabled: (n = I == null ? void 0 : I.enabled) !== null && n !== void 0 ? n : y }), this.devtoolsConfig.enabled === void 0 && (this.devtoolsConfig.enabled = globalThis.__DEV__ !== !1), m && setTimeout(function() {
|
|
8923
8923
|
return r.disableNetworkFetches = !1;
|
|
8924
|
-
}, m), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = _i, this.localState = new
|
|
8924
|
+
}, m), this.watchQuery = this.watchQuery.bind(this), this.query = this.query.bind(this), this.mutate = this.mutate.bind(this), this.watchFragment = this.watchFragment.bind(this), this.resetStore = this.resetStore.bind(this), this.reFetchObservableQueries = this.reFetchObservableQueries.bind(this), this.version = _i, this.localState = new Ch({
|
|
8925
8925
|
cache: u,
|
|
8926
8926
|
client: this,
|
|
8927
8927
|
resolvers: O,
|
|
8928
8928
|
fragmentMatcher: S
|
|
8929
|
-
}), this.queryManager = new
|
|
8929
|
+
}), this.queryManager = new Oh({
|
|
8930
8930
|
cache: this.cache,
|
|
8931
8931
|
link: this.link,
|
|
8932
8932
|
defaultOptions: this.defaultOptions,
|
|
@@ -8934,10 +8934,10 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
8934
8934
|
documentTransform: l,
|
|
8935
8935
|
queryDeduplication: g,
|
|
8936
8936
|
ssrMode: h,
|
|
8937
|
-
dataMasking: !!
|
|
8937
|
+
dataMasking: !!F,
|
|
8938
8938
|
clientAwareness: {
|
|
8939
|
-
name: (i =
|
|
8940
|
-
version: (o =
|
|
8939
|
+
name: (i = D == null ? void 0 : D.name) !== null && i !== void 0 ? i : j,
|
|
8940
|
+
version: (o = D == null ? void 0 : D.version) !== null && o !== void 0 ? o : C
|
|
8941
8941
|
},
|
|
8942
8942
|
localState: this.localState,
|
|
8943
8943
|
assumeImmutableResults: x,
|
|
@@ -9099,19 +9099,19 @@ var Th = Object.prototype.hasOwnProperty, aa = /* @__PURE__ */ Object.create(nul
|
|
|
9099
9099
|
}), e;
|
|
9100
9100
|
})()
|
|
9101
9101
|
);
|
|
9102
|
-
globalThis.__DEV__ !== !1 && (mc.prototype.getMemoryInternals =
|
|
9102
|
+
globalThis.__DEV__ !== !1 && (mc.prototype.getMemoryInternals = gl);
|
|
9103
9103
|
var Wr = /* @__PURE__ */ new Map(), di = /* @__PURE__ */ new Map(), vc = !0, Gr = !1;
|
|
9104
9104
|
function gc(e) {
|
|
9105
9105
|
return e.replace(/[\s,]+/g, " ").trim();
|
|
9106
9106
|
}
|
|
9107
|
-
function
|
|
9107
|
+
function Dh(e) {
|
|
9108
9108
|
return gc(e.source.body.substring(e.start, e.end));
|
|
9109
9109
|
}
|
|
9110
|
-
function
|
|
9110
|
+
function Lh(e) {
|
|
9111
9111
|
var t = /* @__PURE__ */ new Set(), r = [];
|
|
9112
9112
|
return e.definitions.forEach(function(n) {
|
|
9113
9113
|
if (n.kind === "FragmentDefinition") {
|
|
9114
|
-
var i = n.name.value, o =
|
|
9114
|
+
var i = n.name.value, o = Dh(n.loc), a = di.get(i);
|
|
9115
9115
|
a && !a.has(o) ? vc && console.warn("Warning: fragment with name " + i + ` already exists.
|
|
9116
9116
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
9117
9117
|
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) : a || di.set(i, a = /* @__PURE__ */ new Set()), a.add(o), t.has(o) || (t.add(o), r.push(n));
|
|
@@ -9119,7 +9119,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`) :
|
|
|
9119
9119
|
r.push(n);
|
|
9120
9120
|
}), k(k({}, e), { definitions: r });
|
|
9121
9121
|
}
|
|
9122
|
-
function
|
|
9122
|
+
function Mh(e) {
|
|
9123
9123
|
var t = new Set(e.definitions);
|
|
9124
9124
|
t.forEach(function(n) {
|
|
9125
9125
|
n.loc && delete n.loc, Object.keys(n).forEach(function(i) {
|
|
@@ -9130,16 +9130,16 @@ function Lh(e) {
|
|
|
9130
9130
|
var r = e.loc;
|
|
9131
9131
|
return r && (delete r.startToken, delete r.endToken), e;
|
|
9132
9132
|
}
|
|
9133
|
-
function
|
|
9133
|
+
function jh(e) {
|
|
9134
9134
|
var t = gc(e);
|
|
9135
9135
|
if (!Wr.has(t)) {
|
|
9136
|
-
var r =
|
|
9136
|
+
var r = $u(e, {
|
|
9137
9137
|
experimentalFragmentVariables: Gr,
|
|
9138
9138
|
allowLegacyFragmentVariables: Gr
|
|
9139
9139
|
});
|
|
9140
9140
|
if (!r || r.kind !== "Document")
|
|
9141
9141
|
throw new Error("Not a valid GraphQL document.");
|
|
9142
|
-
Wr.set(t, Lh(
|
|
9142
|
+
Wr.set(t, Mh(Lh(r)));
|
|
9143
9143
|
}
|
|
9144
9144
|
return Wr.get(t);
|
|
9145
9145
|
}
|
|
@@ -9150,41 +9150,41 @@ function ze(e) {
|
|
|
9150
9150
|
var n = e[0];
|
|
9151
9151
|
return t.forEach(function(i, o) {
|
|
9152
9152
|
i && i.kind === "Document" ? n += i.loc.source.body : n += i, n += e[o + 1];
|
|
9153
|
-
}),
|
|
9153
|
+
}), jh(n);
|
|
9154
9154
|
}
|
|
9155
|
-
function
|
|
9155
|
+
function Rh() {
|
|
9156
9156
|
Wr.clear(), di.clear();
|
|
9157
9157
|
}
|
|
9158
|
-
function
|
|
9158
|
+
function Ih() {
|
|
9159
9159
|
vc = !1;
|
|
9160
9160
|
}
|
|
9161
|
-
function
|
|
9161
|
+
function Nh() {
|
|
9162
9162
|
Gr = !0;
|
|
9163
9163
|
}
|
|
9164
|
-
function
|
|
9164
|
+
function Ph() {
|
|
9165
9165
|
Gr = !1;
|
|
9166
9166
|
}
|
|
9167
9167
|
var tr = {
|
|
9168
9168
|
gql: ze,
|
|
9169
|
-
resetCaches:
|
|
9170
|
-
disableFragmentWarnings:
|
|
9171
|
-
enableExperimentalFragmentVariables:
|
|
9172
|
-
disableExperimentalFragmentVariables:
|
|
9169
|
+
resetCaches: Rh,
|
|
9170
|
+
disableFragmentWarnings: Ih,
|
|
9171
|
+
enableExperimentalFragmentVariables: Nh,
|
|
9172
|
+
disableExperimentalFragmentVariables: Ph
|
|
9173
9173
|
};
|
|
9174
9174
|
(function(e) {
|
|
9175
9175
|
e.gql = tr.gql, e.resetCaches = tr.resetCaches, e.disableFragmentWarnings = tr.disableFragmentWarnings, e.enableExperimentalFragmentVariables = tr.enableExperimentalFragmentVariables, e.disableExperimentalFragmentVariables = tr.disableExperimentalFragmentVariables;
|
|
9176
9176
|
})(ze || (ze = {}));
|
|
9177
9177
|
ze.default = ze;
|
|
9178
9178
|
var Dn = { exports: {} }, ca;
|
|
9179
|
-
function
|
|
9179
|
+
function Ah() {
|
|
9180
9180
|
return ca || (ca = 1, (function(e) {
|
|
9181
9181
|
e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = void 0, e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = void 0, Object.assign(e.exports, de);
|
|
9182
9182
|
})(Dn)), Dn.exports;
|
|
9183
9183
|
}
|
|
9184
|
-
var re =
|
|
9185
|
-
const
|
|
9184
|
+
var re = Ah();
|
|
9185
|
+
const Fh = /* @__PURE__ */ es(re), yc = /* @__PURE__ */ iu({
|
|
9186
9186
|
__proto__: null,
|
|
9187
|
-
default:
|
|
9187
|
+
default: Fh
|
|
9188
9188
|
}, [re]);
|
|
9189
9189
|
var ua = Di ? Symbol.for("__APOLLO_CONTEXT__") : "__APOLLO_CONTEXT__";
|
|
9190
9190
|
function Hi() {
|
|
@@ -9197,7 +9197,7 @@ function Hi() {
|
|
|
9197
9197
|
configurable: !0
|
|
9198
9198
|
}), e.displayName = "ApolloContext"), e;
|
|
9199
9199
|
}
|
|
9200
|
-
var
|
|
9200
|
+
var qh = function(e) {
|
|
9201
9201
|
var t = e.client, r = e.children, n = Hi(), i = re.useContext(n), o = re.useMemo(function() {
|
|
9202
9202
|
return k(k({}, i), { client: t || i.client });
|
|
9203
9203
|
}, [i, t]);
|
|
@@ -9207,7 +9207,7 @@ function bc(e) {
|
|
|
9207
9207
|
var t = re.useContext(Hi()), r = e || t.client;
|
|
9208
9208
|
return R(!!r, 79), r;
|
|
9209
9209
|
}
|
|
9210
|
-
var la = !1,
|
|
9210
|
+
var la = !1, Vh = "useSyncExternalStore", $h = yc[Vh], Bh = $h || (function(e, t, r) {
|
|
9211
9211
|
var n = t();
|
|
9212
9212
|
// DEVIATION: Using __DEV__
|
|
9213
9213
|
globalThis.__DEV__ !== !1 && !la && // DEVIATION: Not using Object.is because we know our snapshots will never
|
|
@@ -9216,7 +9216,7 @@ var la = !1, qh = "useSyncExternalStore", Vh = yc[qh], $h = Vh || (function(e, t
|
|
|
9216
9216
|
var i = re.useState({
|
|
9217
9217
|
inst: { value: n, getSnapshot: t }
|
|
9218
9218
|
}), o = i[0].inst, a = i[1];
|
|
9219
|
-
return
|
|
9219
|
+
return al ? re.useLayoutEffect(function() {
|
|
9220
9220
|
Object.assign(o, { value: n, getSnapshot: t }), Ln(o) && a({ inst: o });
|
|
9221
9221
|
}, [e, n, t]) : Object.assign(o, { value: n, getSnapshot: t }), re.useEffect(function() {
|
|
9222
9222
|
return Ln(o) && a({ inst: o }), e(function() {
|
|
@@ -9304,7 +9304,7 @@ xc.resetCache = function() {
|
|
|
9304
9304
|
globalThis.__DEV__ !== !1 && Mi("parser", function() {
|
|
9305
9305
|
return gt ? gt.size : 0;
|
|
9306
9306
|
});
|
|
9307
|
-
function
|
|
9307
|
+
function Wh(e, t) {
|
|
9308
9308
|
var r = Se("parser", xc, [e]), n = fa(t), i = fa(r.type);
|
|
9309
9309
|
R(
|
|
9310
9310
|
r.type === t,
|
|
@@ -9314,10 +9314,10 @@ function Bh(e, t) {
|
|
|
9314
9314
|
i
|
|
9315
9315
|
);
|
|
9316
9316
|
}
|
|
9317
|
-
var
|
|
9318
|
-
function Qh() {
|
|
9319
|
-
}
|
|
9317
|
+
var Qh = vs ? re.useLayoutEffect : re.useEffect, Mn;
|
|
9320
9318
|
function zh() {
|
|
9319
|
+
}
|
|
9320
|
+
function Uh() {
|
|
9321
9321
|
return Mn || (Mn = re.createContext(null)), re.useCallback(
|
|
9322
9322
|
/**
|
|
9323
9323
|
* @returns true if the hook was called during render
|
|
@@ -9325,7 +9325,7 @@ function zh() {
|
|
|
9325
9325
|
function() {
|
|
9326
9326
|
var e = console.error;
|
|
9327
9327
|
try {
|
|
9328
|
-
return console.error =
|
|
9328
|
+
return console.error = zh, re.useContext(Mn), !0;
|
|
9329
9329
|
} catch {
|
|
9330
9330
|
return !1;
|
|
9331
9331
|
} finally {
|
|
@@ -9341,29 +9341,29 @@ function Ie(e, t, r, n) {
|
|
|
9341
9341
|
var i = re.useRef(!1);
|
|
9342
9342
|
t in e && !i.current && (globalThis.__DEV__ !== !1 && R.warn(78, r, t, n), i.current = !0);
|
|
9343
9343
|
}
|
|
9344
|
-
var
|
|
9345
|
-
function
|
|
9346
|
-
var n = r.queryManager, i = n && n[
|
|
9344
|
+
var Hh = Symbol.for("apollo.hook.wrappers");
|
|
9345
|
+
function Yh(e, t, r) {
|
|
9346
|
+
var n = r.queryManager, i = n && n[Hh], o = i && i[e];
|
|
9347
9347
|
return o ? o(t) : t;
|
|
9348
9348
|
}
|
|
9349
|
-
var
|
|
9349
|
+
var Gh = Object.prototype.hasOwnProperty;
|
|
9350
9350
|
function ha() {
|
|
9351
9351
|
}
|
|
9352
9352
|
var Qr = Symbol();
|
|
9353
|
-
function Gh(e, t) {
|
|
9354
|
-
return t === void 0 && (t = /* @__PURE__ */ Object.create(null)), Hh("useQuery", Xh, bc(t && t.client))(e, t);
|
|
9355
|
-
}
|
|
9356
9353
|
function Xh(e, t) {
|
|
9354
|
+
return t === void 0 && (t = /* @__PURE__ */ Object.create(null)), Yh("useQuery", Jh, bc(t && t.client))(e, t);
|
|
9355
|
+
}
|
|
9356
|
+
function Jh(e, t) {
|
|
9357
9357
|
globalThis.__DEV__ !== !1 && (Ie(t, "canonizeResults", "useQuery"), Ie(t, "partialRefetch", "useQuery"), Ie(t, "defaultOptions", "useQuery", "Pass the options directly to the hook instead."), Ie(t, "onCompleted", "useQuery", "If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."), Ie(t, "onError", "useQuery", "If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));
|
|
9358
9358
|
var r = Ec(e, t), n = r.result, i = r.obsQueryFields;
|
|
9359
9359
|
return re.useMemo(function() {
|
|
9360
9360
|
return k(k({}, n), i);
|
|
9361
9361
|
}, [n, i]);
|
|
9362
9362
|
}
|
|
9363
|
-
function
|
|
9363
|
+
function Kh(e, t, r, n, i) {
|
|
9364
9364
|
function o(f) {
|
|
9365
9365
|
var h;
|
|
9366
|
-
|
|
9366
|
+
Wh(t, Ye.Query);
|
|
9367
9367
|
var p = {
|
|
9368
9368
|
client: e,
|
|
9369
9369
|
query: t,
|
|
@@ -9408,8 +9408,8 @@ function Jh(e, t, r, n, i) {
|
|
|
9408
9408
|
return [s, u];
|
|
9409
9409
|
}
|
|
9410
9410
|
function Ec(e, t) {
|
|
9411
|
-
var r = bc(t.client), n = re.useContext(Hi()).renderPromises, i = !!n, o = r.disableNetworkFetches, a = t.ssr !== !1 && !t.skip, s = t.partialRefetch, c = wc(r, e, t, i), u =
|
|
9412
|
-
|
|
9411
|
+
var r = bc(t.client), n = re.useContext(Hi()).renderPromises, i = !!n, o = r.disableNetworkFetches, a = t.ssr !== !1 && !t.skip, s = t.partialRefetch, c = wc(r, e, t, i), u = Kh(r, e, t, n, c), l = u[0], f = l.observable, h = l.resultData, p = u[1], m = c(f);
|
|
9412
|
+
td(
|
|
9413
9413
|
h,
|
|
9414
9414
|
// might get mutated during render
|
|
9415
9415
|
f,
|
|
@@ -9419,10 +9419,10 @@ function Ec(e, t) {
|
|
|
9419
9419
|
m
|
|
9420
9420
|
);
|
|
9421
9421
|
var y = re.useMemo(function() {
|
|
9422
|
-
return
|
|
9422
|
+
return od(f);
|
|
9423
9423
|
}, [f]);
|
|
9424
|
-
|
|
9425
|
-
var v =
|
|
9424
|
+
ed(f, n, a);
|
|
9425
|
+
var v = Zh(h, f, r, t, m, o, s, i, {
|
|
9426
9426
|
onCompleted: t.onCompleted || ha,
|
|
9427
9427
|
onError: t.onError || ha
|
|
9428
9428
|
});
|
|
@@ -9435,7 +9435,7 @@ function Ec(e, t) {
|
|
|
9435
9435
|
onQueryExecuted: p
|
|
9436
9436
|
};
|
|
9437
9437
|
}
|
|
9438
|
-
function
|
|
9438
|
+
function Zh(e, t, r, n, i, o, a, s, c) {
|
|
9439
9439
|
var u = re.useRef(c);
|
|
9440
9440
|
re.useEffect(function() {
|
|
9441
9441
|
u.current = c;
|
|
@@ -9459,7 +9459,7 @@ function Kh(e, t, r, n, i, o, a, s, c) {
|
|
|
9459
9459
|
) : void 0, f = e.previousData, h = re.useMemo(function() {
|
|
9460
9460
|
return l && Xr(l, f, t, r);
|
|
9461
9461
|
}, [r, t, l, f]);
|
|
9462
|
-
return
|
|
9462
|
+
return Bh(re.useCallback(function(p) {
|
|
9463
9463
|
if (s)
|
|
9464
9464
|
return function() {
|
|
9465
9465
|
};
|
|
@@ -9467,14 +9467,14 @@ function Kh(e, t, r, n, i, o, a, s, c) {
|
|
|
9467
9467
|
var g = e.current, b = t.getCurrentResult();
|
|
9468
9468
|
g && g.loading === b.loading && g.networkStatus === b.networkStatus && ue(g.data, b.data) || pi(b, e, t, r, a, p, u.current);
|
|
9469
9469
|
}, y = function(g) {
|
|
9470
|
-
if (v.current.unsubscribe(), v.current = t.resubscribeAfterError(m, y), !
|
|
9470
|
+
if (v.current.unsubscribe(), v.current = t.resubscribeAfterError(m, y), !Gh.call(g, "graphQLErrors"))
|
|
9471
9471
|
throw g;
|
|
9472
9472
|
var b = e.current;
|
|
9473
9473
|
(!b || b && b.loading || !ue(g, b.error)) && pi({
|
|
9474
9474
|
data: b && b.data,
|
|
9475
9475
|
error: g,
|
|
9476
9476
|
loading: !1,
|
|
9477
|
-
networkStatus:
|
|
9477
|
+
networkStatus: ie.error
|
|
9478
9478
|
}, e, t, r, a, p, u.current);
|
|
9479
9479
|
}, v = { current: t.subscribe(m, y) };
|
|
9480
9480
|
return function() {
|
|
@@ -9495,10 +9495,10 @@ function Kh(e, t, r, n, i, o, a, s, c) {
|
|
|
9495
9495
|
return h || da(e, t, u.current, a, r);
|
|
9496
9496
|
});
|
|
9497
9497
|
}
|
|
9498
|
-
function
|
|
9498
|
+
function ed(e, t, r) {
|
|
9499
9499
|
t && r && (t.registerSSRObservable(e), e.getCurrentResult().loading && t.addObservableQueryPromise(e));
|
|
9500
9500
|
}
|
|
9501
|
-
function
|
|
9501
|
+
function td(e, t, r, n, i) {
|
|
9502
9502
|
var o;
|
|
9503
9503
|
t[Qr] && !ue(t[Qr], i) && (t.reobserve(Yi(t, r, n, i)), e.previousData = ((o = e.current) === null || o === void 0 ? void 0 : o.data) || e.previousData, e.current = void 0), t[Qr] = i;
|
|
9504
9504
|
}
|
|
@@ -9518,13 +9518,13 @@ function Yi(e, t, r, n) {
|
|
|
9518
9518
|
}
|
|
9519
9519
|
function pi(e, t, r, n, i, o, a) {
|
|
9520
9520
|
var s = t.current;
|
|
9521
|
-
s && s.data && (t.previousData = s.data), !e.error && Ne(e.errors) && (e.error = new He({ graphQLErrors: e.errors })), t.current = Xr(
|
|
9521
|
+
s && s.data && (t.previousData = s.data), !e.error && Ne(e.errors) && (e.error = new He({ graphQLErrors: e.errors })), t.current = Xr(id(e, r, i), t.previousData, r, n), o(), rd(e, s == null ? void 0 : s.networkStatus, a);
|
|
9522
9522
|
}
|
|
9523
|
-
function
|
|
9523
|
+
function rd(e, t, r) {
|
|
9524
9524
|
if (!e.loading) {
|
|
9525
|
-
var n =
|
|
9525
|
+
var n = nd(e);
|
|
9526
9526
|
Promise.resolve().then(function() {
|
|
9527
|
-
n ? r.onError(n) : e.data && t !== e.networkStatus && e.networkStatus ===
|
|
9527
|
+
n ? r.onError(n) : e.data && t !== e.networkStatus && e.networkStatus === ie.ready && r.onCompleted(e.data);
|
|
9528
9528
|
}).catch(function(i) {
|
|
9529
9529
|
globalThis.__DEV__ !== !1 && R.warn(i);
|
|
9530
9530
|
});
|
|
@@ -9538,7 +9538,7 @@ function mi(e, t) {
|
|
|
9538
9538
|
var r;
|
|
9539
9539
|
return (e == null ? void 0 : e.fetchPolicy) || ((r = t == null ? void 0 : t.watchQuery) === null || r === void 0 ? void 0 : r.fetchPolicy) || "cache-first";
|
|
9540
9540
|
}
|
|
9541
|
-
function
|
|
9541
|
+
function nd(e) {
|
|
9542
9542
|
return Ne(e.errors) ? new He({ graphQLErrors: e.errors }) : e.error;
|
|
9543
9543
|
}
|
|
9544
9544
|
function Xr(e, t, r, n) {
|
|
@@ -9547,21 +9547,21 @@ function Xr(e, t, r, n) {
|
|
|
9547
9547
|
var o = Fe(e, ["data", "partial"]), a = k(k({ data: i }, o), { client: n, observable: r, variables: r.variables, called: e !== _c && e !== Sc, previousData: t });
|
|
9548
9548
|
return a;
|
|
9549
9549
|
}
|
|
9550
|
-
function
|
|
9551
|
-
return e.partial && r && !e.loading && (!e.data || Object.keys(e.data).length === 0) && t.options.fetchPolicy !== "cache-only" ? (t.refetch(), k(k({}, e), { loading: !0, networkStatus:
|
|
9550
|
+
function id(e, t, r) {
|
|
9551
|
+
return e.partial && r && !e.loading && (!e.data || Object.keys(e.data).length === 0) && t.options.fetchPolicy !== "cache-only" ? (t.refetch(), k(k({}, e), { loading: !0, networkStatus: ie.refetch })) : e;
|
|
9552
9552
|
}
|
|
9553
9553
|
var _c = Wt({
|
|
9554
9554
|
loading: !0,
|
|
9555
9555
|
data: void 0,
|
|
9556
9556
|
error: void 0,
|
|
9557
|
-
networkStatus:
|
|
9557
|
+
networkStatus: ie.loading
|
|
9558
9558
|
}), Sc = Wt({
|
|
9559
9559
|
loading: !1,
|
|
9560
9560
|
data: void 0,
|
|
9561
9561
|
error: void 0,
|
|
9562
|
-
networkStatus:
|
|
9562
|
+
networkStatus: ie.ready
|
|
9563
9563
|
});
|
|
9564
|
-
function
|
|
9564
|
+
function od(e) {
|
|
9565
9565
|
return {
|
|
9566
9566
|
refetch: e.refetch.bind(e),
|
|
9567
9567
|
reobserve: function() {
|
|
@@ -9576,7 +9576,7 @@ function id(e) {
|
|
|
9576
9576
|
subscribeToMore: e.subscribeToMore.bind(e)
|
|
9577
9577
|
};
|
|
9578
9578
|
}
|
|
9579
|
-
var
|
|
9579
|
+
var ad = [
|
|
9580
9580
|
"refetch",
|
|
9581
9581
|
"reobserve",
|
|
9582
9582
|
"fetchMore",
|
|
@@ -9584,14 +9584,14 @@ var od = [
|
|
|
9584
9584
|
"startPolling",
|
|
9585
9585
|
"stopPolling",
|
|
9586
9586
|
"subscribeToMore"
|
|
9587
|
-
],
|
|
9587
|
+
], sd = [
|
|
9588
9588
|
"initialFetchPolicy",
|
|
9589
9589
|
"onCompleted",
|
|
9590
9590
|
"onError",
|
|
9591
9591
|
"defaultOptions",
|
|
9592
9592
|
"partialRefetch",
|
|
9593
9593
|
"canonizeResults"
|
|
9594
|
-
],
|
|
9594
|
+
], cd = [
|
|
9595
9595
|
"query",
|
|
9596
9596
|
"ssr",
|
|
9597
9597
|
"client",
|
|
@@ -9612,37 +9612,37 @@ function dt(e, t) {
|
|
|
9612
9612
|
}
|
|
9613
9613
|
var i = re.useRef(void 0), o = re.useRef(void 0), a = re.useRef(void 0), s = Ft(t, i.current || {}), c = (r = s == null ? void 0 : s.query) !== null && r !== void 0 ? r : e;
|
|
9614
9614
|
o.current = t, a.current = c;
|
|
9615
|
-
var u = k(k({}, s), { skip: !i.current }), l = Ec(c, u), f = l.obsQueryFields, h = l.result, p = l.client, m = l.resultData, y = l.observable, v = l.onQueryExecuted, g = y.options.initialFetchPolicy || mi(u.defaultOptions, p.defaultOptions), b = re.useReducer(function(
|
|
9616
|
-
return
|
|
9615
|
+
var u = k(k({}, s), { skip: !i.current }), l = Ec(c, u), f = l.obsQueryFields, h = l.result, p = l.client, m = l.resultData, y = l.observable, v = l.onQueryExecuted, g = y.options.initialFetchPolicy || mi(u.defaultOptions, p.defaultOptions), b = re.useReducer(function(C) {
|
|
9616
|
+
return C + 1;
|
|
9617
9617
|
}, 0)[1], E = re.useMemo(function() {
|
|
9618
|
-
for (var
|
|
9618
|
+
for (var C = {}, I = function(G) {
|
|
9619
9619
|
var fe = f[G];
|
|
9620
|
-
|
|
9620
|
+
C[G] = function() {
|
|
9621
9621
|
return globalThis.__DEV__ !== !1 && G === "reobserve" && globalThis.__DEV__ !== !1 && R.warn(80), i.current || (i.current = /* @__PURE__ */ Object.create(null), b()), fe.apply(this, arguments);
|
|
9622
9622
|
};
|
|
9623
|
-
},
|
|
9624
|
-
var ce = B[
|
|
9623
|
+
}, F = 0, B = ad; F < B.length; F++) {
|
|
9624
|
+
var ce = B[F];
|
|
9625
9625
|
I(ce);
|
|
9626
9626
|
}
|
|
9627
|
-
return
|
|
9627
|
+
return C;
|
|
9628
9628
|
}, [b, f]), _ = !!i.current, x = re.useMemo(function() {
|
|
9629
9629
|
return k(k(k({}, h), E), { called: _ });
|
|
9630
|
-
}, [h, E, _]), O =
|
|
9630
|
+
}, [h, E, _]), O = Uh(), w = re.useRef(/* @__PURE__ */ new Set()), S = re.useCallback(function(C) {
|
|
9631
9631
|
if (globalThis.__DEV__ !== !1) {
|
|
9632
9632
|
O() && globalThis.__DEV__ !== !1 && R.warn(81);
|
|
9633
|
-
for (var I = 0,
|
|
9634
|
-
var B =
|
|
9635
|
-
w.current.has(B) || (me(
|
|
9633
|
+
for (var I = 0, F = sd; I < F.length; I++) {
|
|
9634
|
+
var B = F[I];
|
|
9635
|
+
w.current.has(B) || (me(C || {}, B, "useLazyQuery.execute"), w.current.add(B));
|
|
9636
9636
|
}
|
|
9637
|
-
for (var ce = 0, G =
|
|
9637
|
+
for (var ce = 0, G = cd; ce < G.length; ce++) {
|
|
9638
9638
|
var fe = G[ce];
|
|
9639
|
-
w.current.has(fe) || (me(
|
|
9639
|
+
w.current.has(fe) || (me(C || {}, fe, "useLazyQuery.execute", "Please pass the option to the `useLazyQuery` hook instead."), w.current.add(fe));
|
|
9640
9640
|
}
|
|
9641
9641
|
}
|
|
9642
|
-
i.current =
|
|
9642
|
+
i.current = C ? k(k({}, C), { fetchPolicy: C.fetchPolicy || g }) : {
|
|
9643
9643
|
fetchPolicy: g
|
|
9644
9644
|
};
|
|
9645
|
-
var ye = Ft(o.current, k({ query: a.current }, i.current)), H =
|
|
9645
|
+
var ye = Ft(o.current, k({ query: a.current }, i.current)), H = ud(m, y, p, c, k(k({}, ye), { skip: !1 }), v).then(function(T) {
|
|
9646
9646
|
return Object.assign(T, E);
|
|
9647
9647
|
});
|
|
9648
9648
|
return H.catch(function() {
|
|
@@ -9656,18 +9656,18 @@ function dt(e, t) {
|
|
|
9656
9656
|
y,
|
|
9657
9657
|
m,
|
|
9658
9658
|
v
|
|
9659
|
-
]),
|
|
9660
|
-
|
|
9661
|
-
|
|
9659
|
+
]), D = re.useRef(S);
|
|
9660
|
+
Qh(function() {
|
|
9661
|
+
D.current = S;
|
|
9662
9662
|
});
|
|
9663
9663
|
var j = re.useCallback(function() {
|
|
9664
|
-
for (var
|
|
9665
|
-
|
|
9666
|
-
return
|
|
9664
|
+
for (var C = [], I = 0; I < arguments.length; I++)
|
|
9665
|
+
C[I] = arguments[I];
|
|
9666
|
+
return D.current.apply(D, C);
|
|
9667
9667
|
}, []);
|
|
9668
9668
|
return [j, x];
|
|
9669
9669
|
}
|
|
9670
|
-
function
|
|
9670
|
+
function ud(e, t, r, n, i, o) {
|
|
9671
9671
|
var a = i.query || n, s = wc(r, a, i, !1)(t), c = t.reobserveAsConcast(Yi(t, r, i, s));
|
|
9672
9672
|
return o(s), new Promise(function(u) {
|
|
9673
9673
|
var l;
|
|
@@ -9685,8 +9685,8 @@ function cd(e, t, r, n, i, o) {
|
|
|
9685
9685
|
});
|
|
9686
9686
|
}
|
|
9687
9687
|
var K = /* @__PURE__ */ ((e) => (e.BigWig = "bigwig", e.BigBed = "bigbed", e.Transcript = "transcript", e.Motif = "motif", e.Importance = "importance", e.LDTrack = "ldtrack", e.BulkBed = "bulkbed", e.MethylC = "methylc", e))(K || {}), Re = /* @__PURE__ */ ((e) => (e.Full = "full", e.Dense = "dense", e.Squish = "squish", e.Pack = "pack", e.Combined = "combined", e.Split = "split", e))(Re || {});
|
|
9688
|
-
const ht =
|
|
9689
|
-
function
|
|
9688
|
+
const ht = tu(null);
|
|
9689
|
+
function ld({ children: e, value: t }) {
|
|
9690
9690
|
return /* @__PURE__ */ d.jsx(ht.Provider, { value: t, children: e });
|
|
9691
9691
|
}
|
|
9692
9692
|
function Y(e) {
|
|
@@ -9695,7 +9695,7 @@ function Y(e) {
|
|
|
9695
9695
|
throw new Error("useBrowserStore must be used within a Browser component");
|
|
9696
9696
|
return t.browserStore(e);
|
|
9697
9697
|
}
|
|
9698
|
-
function
|
|
9698
|
+
function ne(e) {
|
|
9699
9699
|
const t = Et(ht);
|
|
9700
9700
|
if (!t)
|
|
9701
9701
|
throw new Error("useTrackStore must be used within a Browser component");
|
|
@@ -9741,7 +9741,7 @@ const Mr = ze`
|
|
|
9741
9741
|
}
|
|
9742
9742
|
}
|
|
9743
9743
|
}
|
|
9744
|
-
`,
|
|
9744
|
+
`, fd = ze`
|
|
9745
9745
|
query Gene($chromosome: String, $assembly: String!, $start: Int, $end: Int, $version: Int) {
|
|
9746
9746
|
gene(assembly: $assembly, chromosome: $chromosome, start: $start, end: $end, version: $version) {
|
|
9747
9747
|
strand
|
|
@@ -9769,7 +9769,7 @@ const Mr = ze`
|
|
|
9769
9769
|
}
|
|
9770
9770
|
}
|
|
9771
9771
|
}
|
|
9772
|
-
`,
|
|
9772
|
+
`, hd = ze`
|
|
9773
9773
|
query occurrences(
|
|
9774
9774
|
$prange: [ChromosomeRangeInput]!
|
|
9775
9775
|
$range: [GenomicRegionInput!]
|
|
@@ -9808,7 +9808,7 @@ const Mr = ze`
|
|
|
9808
9808
|
}
|
|
9809
9809
|
}
|
|
9810
9810
|
}
|
|
9811
|
-
`,
|
|
9811
|
+
`, dd = `
|
|
9812
9812
|
query SNP($assembly: String!, $coordinates: [GenomicRangeInput]) {
|
|
9813
9813
|
snpQuery(assembly: $assembly, coordinates: $coordinates, common: true) {
|
|
9814
9814
|
id
|
|
@@ -9820,7 +9820,7 @@ const Mr = ze`
|
|
|
9820
9820
|
}
|
|
9821
9821
|
}
|
|
9822
9822
|
`;
|
|
9823
|
-
function
|
|
9823
|
+
function pd(e, t, r) {
|
|
9824
9824
|
return e.filter((n) => n.trackType === K.BigWig || n.trackType === K.BigBed).map((n) => ({
|
|
9825
9825
|
url: n.url || "",
|
|
9826
9826
|
chr1: t.chromosome,
|
|
@@ -9829,7 +9829,7 @@ function dd(e, t, r) {
|
|
|
9829
9829
|
preRenderedWidth: r
|
|
9830
9830
|
}));
|
|
9831
9831
|
}
|
|
9832
|
-
function
|
|
9832
|
+
function md(e, t) {
|
|
9833
9833
|
return e.filter((r) => r.trackType === K.BulkBed).flatMap((r) => r.datasets.map((i, o) => ({
|
|
9834
9834
|
name: `Dataset ${o + 1}`,
|
|
9835
9835
|
url: i.url
|
|
@@ -9840,7 +9840,7 @@ function pd(e, t) {
|
|
|
9840
9840
|
end: t.end
|
|
9841
9841
|
})));
|
|
9842
9842
|
}
|
|
9843
|
-
function
|
|
9843
|
+
function vd(e, t) {
|
|
9844
9844
|
const r = e.find((n) => n.trackType === K.Transcript);
|
|
9845
9845
|
if (r)
|
|
9846
9846
|
return {
|
|
@@ -9851,7 +9851,7 @@ function md(e, t) {
|
|
|
9851
9851
|
version: r.version
|
|
9852
9852
|
};
|
|
9853
9853
|
}
|
|
9854
|
-
function
|
|
9854
|
+
function gd(e, t) {
|
|
9855
9855
|
const r = e.find((n) => n.trackType === K.Motif);
|
|
9856
9856
|
if (r)
|
|
9857
9857
|
return {
|
|
@@ -9870,7 +9870,7 @@ function vd(e, t) {
|
|
|
9870
9870
|
peaks_accession: r.peaksAccession
|
|
9871
9871
|
};
|
|
9872
9872
|
}
|
|
9873
|
-
function
|
|
9873
|
+
function yd(e, t) {
|
|
9874
9874
|
const r = e.find((n) => n.trackType === K.Importance);
|
|
9875
9875
|
return r ? [
|
|
9876
9876
|
{
|
|
@@ -9887,7 +9887,7 @@ function gd(e, t) {
|
|
|
9887
9887
|
}
|
|
9888
9888
|
] : [];
|
|
9889
9889
|
}
|
|
9890
|
-
function
|
|
9890
|
+
function bd(e, t) {
|
|
9891
9891
|
const r = e.find((n) => n.trackType === K.LDTrack);
|
|
9892
9892
|
if (r)
|
|
9893
9893
|
return {
|
|
@@ -9899,7 +9899,7 @@ function yd(e, t) {
|
|
|
9899
9899
|
}
|
|
9900
9900
|
};
|
|
9901
9901
|
}
|
|
9902
|
-
function
|
|
9902
|
+
function xd(e, t, r) {
|
|
9903
9903
|
const n = e.filter((a) => a.trackType === K.MethylC);
|
|
9904
9904
|
if (n.length === 0) return;
|
|
9905
9905
|
const i = (a, s, c) => ({
|
|
@@ -9920,22 +9920,22 @@ function bd(e, t, r) {
|
|
|
9920
9920
|
i(a.urls.minusStrand.depth.url, t, r)
|
|
9921
9921
|
]);
|
|
9922
9922
|
}
|
|
9923
|
-
function
|
|
9923
|
+
function Ed(e, t, r, n) {
|
|
9924
9924
|
return {
|
|
9925
|
-
bigRequests:
|
|
9926
|
-
transcriptRequest:
|
|
9927
|
-
motifRequest:
|
|
9928
|
-
importanceRequests:
|
|
9929
|
-
bulkBedRequests:
|
|
9930
|
-
ldRequest:
|
|
9931
|
-
methylCRequest:
|
|
9925
|
+
bigRequests: pd(e, t, n),
|
|
9926
|
+
transcriptRequest: vd(e, t),
|
|
9927
|
+
motifRequest: gd(e, t),
|
|
9928
|
+
importanceRequests: yd(e, r),
|
|
9929
|
+
bulkBedRequests: md(e, t),
|
|
9930
|
+
ldRequest: bd(e, t),
|
|
9931
|
+
methylCRequest: xd(e, t, n)
|
|
9932
9932
|
};
|
|
9933
9933
|
}
|
|
9934
|
-
async function
|
|
9934
|
+
async function wd(e, t) {
|
|
9935
9935
|
const r = [];
|
|
9936
9936
|
e.bigRequests.length > 0 && r.push(t.fetchBigData({ variables: { bigRequests: e.bigRequests } })), e.transcriptRequest && r.push(t.fetchGene({ variables: e.transcriptRequest })), e.motifRequest && r.push(t.fetchMotif({ variables: e.motifRequest })), e.importanceRequests.length > 0 && r.push(t.fetchImportance({ variables: { bigRequests: e.importanceRequests } })), e.bulkBedRequests.length > 0 && r.push(t.fetchBulkBed({ variables: { bigRequests: e.bulkBedRequests } })), e.ldRequest && r.push(t.fetchSnps({ variables: e.ldRequest })), e.methylCRequest && r.push(t.fetchMethylC({ variables: { bigRequests: e.methylCRequest } })), await Promise.allSettled(r);
|
|
9937
9937
|
}
|
|
9938
|
-
function
|
|
9938
|
+
function _d(e, t, r) {
|
|
9939
9939
|
return e.filter(
|
|
9940
9940
|
(i) => i.trackType === K.BigWig || i.trackType === K.BigBed
|
|
9941
9941
|
).map((i, o) => {
|
|
@@ -9947,14 +9947,14 @@ function wd(e, t, r) {
|
|
|
9947
9947
|
};
|
|
9948
9948
|
});
|
|
9949
9949
|
}
|
|
9950
|
-
function
|
|
9950
|
+
function Sd(e, t, r) {
|
|
9951
9951
|
return e.filter((i) => i.trackType === K.Transcript).map((i) => ({
|
|
9952
9952
|
trackId: i.id,
|
|
9953
9953
|
data: r ? null : (t == null ? void 0 : t.gene) || null,
|
|
9954
9954
|
error: r
|
|
9955
9955
|
}));
|
|
9956
9956
|
}
|
|
9957
|
-
function
|
|
9957
|
+
function Td(e, t, r) {
|
|
9958
9958
|
var o, a, s;
|
|
9959
9959
|
const n = e.filter((c) => c.trackType === K.Motif);
|
|
9960
9960
|
if (n.length === 0) return [];
|
|
@@ -9979,7 +9979,7 @@ function Sd(e, t, r) {
|
|
|
9979
9979
|
error: r
|
|
9980
9980
|
}));
|
|
9981
9981
|
}
|
|
9982
|
-
function
|
|
9982
|
+
function kd(e, t, r) {
|
|
9983
9983
|
var o, a, s, c, u, l;
|
|
9984
9984
|
const n = e.filter((f) => f.trackType === K.Importance);
|
|
9985
9985
|
if (n.length === 0) return [];
|
|
@@ -9993,7 +9993,7 @@ function Td(e, t, r) {
|
|
|
9993
9993
|
error: r
|
|
9994
9994
|
}));
|
|
9995
9995
|
}
|
|
9996
|
-
function
|
|
9996
|
+
function Od(e, t, r) {
|
|
9997
9997
|
const n = e.filter((o) => o.trackType === K.BulkBed);
|
|
9998
9998
|
if (n.length === 0) return [];
|
|
9999
9999
|
let i = 0;
|
|
@@ -10013,7 +10013,7 @@ function kd(e, t, r) {
|
|
|
10013
10013
|
};
|
|
10014
10014
|
});
|
|
10015
10015
|
}
|
|
10016
|
-
function
|
|
10016
|
+
function Cd(e, t, r) {
|
|
10017
10017
|
const n = e.filter((i) => i.trackType === K.MethylC);
|
|
10018
10018
|
return n.length === 0 ? [] : n.map((i, o) => {
|
|
10019
10019
|
var s, c;
|
|
@@ -10025,7 +10025,7 @@ function Od(e, t, r) {
|
|
|
10025
10025
|
};
|
|
10026
10026
|
});
|
|
10027
10027
|
}
|
|
10028
|
-
function
|
|
10028
|
+
function Dd(e, t, r) {
|
|
10029
10029
|
var o;
|
|
10030
10030
|
const n = e.filter((a) => a.trackType === K.LDTrack);
|
|
10031
10031
|
if (n.length === 0) return [];
|
|
@@ -10039,19 +10039,19 @@ function Cd(e, t, r) {
|
|
|
10039
10039
|
error: r
|
|
10040
10040
|
}));
|
|
10041
10041
|
}
|
|
10042
|
-
function
|
|
10042
|
+
function Ld(e, t) {
|
|
10043
10043
|
const r = [];
|
|
10044
|
-
return r.push(...
|
|
10044
|
+
return r.push(..._d(e, t.bigData, t.bigError)), r.push(...Sd(e, t.geneData, t.geneError)), r.push(...Td(e, t.motifData, t.motifError)), r.push(...kd(e, t.importanceData, t.importanceError)), r.push(...Od(e, t.bulkBedData, t.bulkBedError)), r.push(...Dd(e, t.snpData, t.snpError)), r.push(...Cd(e, t.methylCData, t.methylCError)), r;
|
|
10045
10045
|
}
|
|
10046
|
-
function
|
|
10047
|
-
const [e, { data: t, loading: r, error: n }] = dt(Mr), [i, { data: o, loading: a, error: s }] = dt(
|
|
10046
|
+
function Md() {
|
|
10047
|
+
const [e, { data: t, loading: r, error: n }] = dt(Mr), [i, { data: o, loading: a, error: s }] = dt(hd), [c, { data: u, loading: l, error: f }] = dt(fd), [h, { data: p, loading: m, error: y }] = dt(Mr), [v, { data: g, loading: b, error: E }] = dt(Mr), [_, { data: x, loading: O, error: w }] = dt(ze(dd)), [S, { data: D, loading: j, error: C }] = dt(Mr), I = ne((N) => N.tracks), F = ne((N) => N.editTrack), B = Y((N) => N.domain), ce = Y((N) => N.getExpandedDomain), G = Y((N) => N.setDelta), fe = We((N) => N.setDataById), ye = We((N) => N.setLoading), H = We((N) => N.setFetching), T = Y((N) => N.trackWidth), L = Y((N) => N.multiplier), P = z(() => T * L, [T, L]), $ = z(() => r || l || a || m || b || O || j, [r, l, a, m, b, O, j]);
|
|
10048
10048
|
return pe(() => {
|
|
10049
10049
|
if (I.length === 0 || $)
|
|
10050
10050
|
return;
|
|
10051
10051
|
(async () => {
|
|
10052
10052
|
H(!0);
|
|
10053
|
-
const Q =
|
|
10054
|
-
X && Q.transcriptRequest &&
|
|
10053
|
+
const Q = Ed(I, ce(), B, P - 1), X = I.find((J) => J.trackType === K.Transcript);
|
|
10054
|
+
X && Q.transcriptRequest && F(X.id, { refetch: c }), await wd(Q, {
|
|
10055
10055
|
fetchBigData: e,
|
|
10056
10056
|
fetchGene: c,
|
|
10057
10057
|
fetchMotif: i,
|
|
@@ -10065,20 +10065,20 @@ function Ld() {
|
|
|
10065
10065
|
});
|
|
10066
10066
|
}, [B.chromosome, B.start, B.end, I.length]), pe(() => {
|
|
10067
10067
|
if ($) return;
|
|
10068
|
-
|
|
10068
|
+
Ld(I, {
|
|
10069
10069
|
bigData: t,
|
|
10070
10070
|
geneData: u,
|
|
10071
10071
|
importanceData: p,
|
|
10072
10072
|
bulkBedData: g,
|
|
10073
10073
|
snpData: x,
|
|
10074
|
-
methylCData:
|
|
10074
|
+
methylCData: D,
|
|
10075
10075
|
bigError: n,
|
|
10076
10076
|
geneError: f,
|
|
10077
10077
|
motifError: s,
|
|
10078
10078
|
importanceError: y,
|
|
10079
10079
|
bulkBedError: E,
|
|
10080
10080
|
snpError: w,
|
|
10081
|
-
methylCError:
|
|
10081
|
+
methylCError: C,
|
|
10082
10082
|
motifData: o
|
|
10083
10083
|
}).forEach((Q) => {
|
|
10084
10084
|
fe(Q.trackId, Q.data, Q.error);
|
|
@@ -10090,14 +10090,14 @@ function Ld() {
|
|
|
10090
10090
|
p,
|
|
10091
10091
|
g,
|
|
10092
10092
|
x,
|
|
10093
|
-
|
|
10093
|
+
D,
|
|
10094
10094
|
n,
|
|
10095
10095
|
f,
|
|
10096
10096
|
s,
|
|
10097
10097
|
y,
|
|
10098
10098
|
E,
|
|
10099
10099
|
w,
|
|
10100
|
-
|
|
10100
|
+
C,
|
|
10101
10101
|
$,
|
|
10102
10102
|
fe,
|
|
10103
10103
|
G,
|
|
@@ -10115,8 +10115,8 @@ const pa = (e) => {
|
|
|
10115
10115
|
}
|
|
10116
10116
|
}, i = () => t, s = { setState: n, getState: i, getInitialState: () => c, subscribe: (u) => (r.add(u), () => r.delete(u)) }, c = t = e(n, i, s);
|
|
10117
10117
|
return s;
|
|
10118
|
-
},
|
|
10119
|
-
function
|
|
10118
|
+
}, jd = ((e) => e ? pa(e) : pa), Rd = (e) => e;
|
|
10119
|
+
function Id(e, t = Rd) {
|
|
10120
10120
|
const r = de.useSyncExternalStore(
|
|
10121
10121
|
e.subscribe,
|
|
10122
10122
|
de.useCallback(() => t(e.getState()), [e, t]),
|
|
@@ -10125,7 +10125,7 @@ function Rd(e, t = jd) {
|
|
|
10125
10125
|
return de.useDebugValue(r), r;
|
|
10126
10126
|
}
|
|
10127
10127
|
const ma = (e) => {
|
|
10128
|
-
const t =
|
|
10128
|
+
const t = jd(e), r = (n) => Id(t, n);
|
|
10129
10129
|
return Object.assign(r, t), r;
|
|
10130
10130
|
}, _t = ((e) => e ? ma(e) : ma);
|
|
10131
10131
|
function Tc() {
|
|
@@ -10138,7 +10138,7 @@ function Tc() {
|
|
|
10138
10138
|
setFetching: (t) => e({ fetching: t })
|
|
10139
10139
|
}));
|
|
10140
10140
|
}
|
|
10141
|
-
const
|
|
10141
|
+
const Nd = Tc();
|
|
10142
10142
|
function kc() {
|
|
10143
10143
|
return _t((e) => ({
|
|
10144
10144
|
open: !1,
|
|
@@ -10177,16 +10177,16 @@ function Dc() {
|
|
|
10177
10177
|
background: "#ffffff",
|
|
10178
10178
|
text: "#000000",
|
|
10179
10179
|
setBackground: (t) => {
|
|
10180
|
-
e({ background: t }), e({ text:
|
|
10180
|
+
e({ background: t }), e({ text: Ad(t) });
|
|
10181
10181
|
}
|
|
10182
10182
|
}));
|
|
10183
10183
|
}
|
|
10184
|
-
const
|
|
10185
|
-
function
|
|
10184
|
+
const Pd = Dc();
|
|
10185
|
+
function Ad(e) {
|
|
10186
10186
|
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);
|
|
10187
10187
|
return (0.299 * r + 0.587 * n + 0.114 * i) / 255 > 0.5 ? "#000000" : "#ffffff";
|
|
10188
10188
|
}
|
|
10189
|
-
function
|
|
10189
|
+
function Fd({ value: e }) {
|
|
10190
10190
|
const t = Te(null), [r, n] = le(0), i = De((a) => a.text), o = De((a) => a.background);
|
|
10191
10191
|
return pe(() => {
|
|
10192
10192
|
if (t.current) {
|
|
@@ -10207,7 +10207,7 @@ function Je({
|
|
|
10207
10207
|
const i = Nt((u) => u.showTooltip), o = Nt((u) => u.hideTooltip), a = Be(
|
|
10208
10208
|
(u, l, f) => {
|
|
10209
10209
|
t && t(u);
|
|
10210
|
-
const h = n ? wi(n, u) : /* @__PURE__ */ d.jsx(
|
|
10210
|
+
const h = n ? wi(n, u) : /* @__PURE__ */ d.jsx(Fd, { value: l });
|
|
10211
10211
|
i(h, f.clientX, f.clientY);
|
|
10212
10212
|
},
|
|
10213
10213
|
[t, n, i]
|
|
@@ -10229,21 +10229,21 @@ function Je({
|
|
|
10229
10229
|
};
|
|
10230
10230
|
}
|
|
10231
10231
|
var Lc = /* @__PURE__ */ ((e) => (e.ValuedPoint = "valuedPoint", e.BigZoomData = "bigZoomData", e.BigWigData = "bigWigData", e))(Lc || {});
|
|
10232
|
-
function
|
|
10232
|
+
function qd(e) {
|
|
10233
10233
|
return e[0].x !== void 0 ? "valuedPoint" : e[0].minVal !== void 0 ? "bigZoomData" : "bigWigData";
|
|
10234
10234
|
}
|
|
10235
|
-
const
|
|
10235
|
+
const Vd = (e, t) => ({
|
|
10236
10236
|
min: Math.min(...e.map(t)),
|
|
10237
10237
|
max: Math.max(...e.map(t))
|
|
10238
|
-
}),
|
|
10238
|
+
}), Mc = (e) => {
|
|
10239
10239
|
if (!e.length) return { min: 0, max: 0 };
|
|
10240
|
-
switch (
|
|
10240
|
+
switch (qd(e)) {
|
|
10241
10241
|
// case DataType.BigWigData:
|
|
10242
10242
|
// return calculateRange(data as BigWigData[], (d) => d.value);
|
|
10243
10243
|
// case DataType.BigZoomData:
|
|
10244
10244
|
// return calculateRange(data as BigZoomData[], (d) => d.maxVal);
|
|
10245
10245
|
case Lc.ValuedPoint:
|
|
10246
|
-
return
|
|
10246
|
+
return Vd(e, (t) => t.max);
|
|
10247
10247
|
default:
|
|
10248
10248
|
return { min: 0, max: 0 };
|
|
10249
10249
|
}
|
|
@@ -10341,7 +10341,7 @@ function Ud(e, t) {
|
|
|
10341
10341
|
}))
|
|
10342
10342
|
);
|
|
10343
10343
|
}
|
|
10344
|
-
const
|
|
10344
|
+
const jc = (e, t) => {
|
|
10345
10345
|
const r = t(e.start), n = t(e.end);
|
|
10346
10346
|
return {
|
|
10347
10347
|
...e,
|
|
@@ -10349,7 +10349,7 @@ const Mc = (e, t) => {
|
|
|
10349
10349
|
end: Math.round(n)
|
|
10350
10350
|
};
|
|
10351
10351
|
};
|
|
10352
|
-
function
|
|
10352
|
+
function Rc({
|
|
10353
10353
|
id: e,
|
|
10354
10354
|
data: t,
|
|
10355
10355
|
height: r,
|
|
@@ -10371,7 +10371,7 @@ function jc({
|
|
|
10371
10371
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: y }),
|
|
10372
10372
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: l, height: r }) }),
|
|
10373
10373
|
m.map((E, _) => {
|
|
10374
|
-
const x =
|
|
10374
|
+
const x = jc(E, p), O = r * (1 - 2 * o), w = r * o;
|
|
10375
10375
|
return /* @__PURE__ */ d.jsx(
|
|
10376
10376
|
"rect",
|
|
10377
10377
|
{
|
|
@@ -10424,7 +10424,7 @@ function Sr(e, t) {
|
|
|
10424
10424
|
}
|
|
10425
10425
|
return r;
|
|
10426
10426
|
}
|
|
10427
|
-
const
|
|
10427
|
+
const Ic = (e, t, r) => {
|
|
10428
10428
|
if (e.createSVGPoint && e) {
|
|
10429
10429
|
let i = e.createSVGPoint();
|
|
10430
10430
|
return i.x = t, i.y = r, i = i.matrixTransform(e.getScreenCTM().inverse()), [i.x, i.y];
|
|
@@ -10457,40 +10457,40 @@ function Gi(e, t, r, n) {
|
|
|
10457
10457
|
}
|
|
10458
10458
|
function Gd(e, t, r, n) {
|
|
10459
10459
|
if (!t || !t.current || !r) return;
|
|
10460
|
-
const i =
|
|
10460
|
+
const i = Ic(t.current, e.clientX, e.clientY), o = Math.round(i[0] - n), a = Math.max(0, Math.min(o, r - 1));
|
|
10461
10461
|
return { pos: { x: i[0], y: i[1] }, index: a };
|
|
10462
10462
|
}
|
|
10463
10463
|
function Xd({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o }) {
|
|
10464
10464
|
var j;
|
|
10465
|
-
const { sideWidth: a, viewWidth: s, totalWidth: c } = i, u = (c / s - 1) / 2, l = Y((
|
|
10466
|
-
const I = ((t == null ? void 0 : t.length) ?? 0) / l,
|
|
10467
|
-
return
|
|
10465
|
+
const { sideWidth: a, viewWidth: s, totalWidth: c } = i, u = (c / s - 1) / 2, l = Y((C) => C.multiplier), f = ne((C) => C.editTrack), h = Y((C) => C.delta), p = Y((C) => C.marginWidth), m = Y((C) => C.svgRef), y = z(() => {
|
|
10466
|
+
const I = ((t == null ? void 0 : t.length) ?? 0) / l, F = Math.floor(u * I), B = Math.floor((u + 1) * I), ce = t == null ? void 0 : t.slice(F, B);
|
|
10467
|
+
return Mc(ce ?? []);
|
|
10468
10468
|
}, [t, l, u]);
|
|
10469
10469
|
pe(() => {
|
|
10470
10470
|
f(e, { range: y });
|
|
10471
10471
|
}, [y, e, f]);
|
|
10472
|
-
const v = z(() => t.some((
|
|
10472
|
+
const v = z(() => t.some((C) => C.min < 0), [t]), g = z(
|
|
10473
10473
|
() => Qd(t),
|
|
10474
10474
|
// data && data.length && dataType(data) === DataType.ValuedPoint ?
|
|
10475
10475
|
// : renderBigWig(data as BigWigData[] | BigZoomData[], 100),
|
|
10476
10476
|
[t]
|
|
10477
10477
|
), b = z(() => {
|
|
10478
|
-
const
|
|
10479
|
-
return g.renderPoints.filter((
|
|
10480
|
-
const B =
|
|
10478
|
+
const C = Bd(y, 1);
|
|
10479
|
+
return g.renderPoints.filter((F) => F.min < 1 / 0 && F.max > -1 / 0).map((F) => {
|
|
10480
|
+
const B = C(F.max);
|
|
10481
10481
|
return Sr(r, B / 1.25);
|
|
10482
10482
|
});
|
|
10483
|
-
}, [r, g, y]), E =
|
|
10484
|
-
var
|
|
10485
|
-
return (
|
|
10486
|
-
}, [(j = _.pos) == null ? void 0 : j.x, p, a]), { handleHover: S, handleLeave:
|
|
10483
|
+
}, [r, g, y]), E = Pd((C) => C.text), { mouseState: _, updateMouseState: x, clearMouseState: O } = Gi(m, c, p, a), w = z(() => {
|
|
10484
|
+
var C;
|
|
10485
|
+
return (C = _.pos) != null && C.x ? _.pos.x - p + a : 0;
|
|
10486
|
+
}, [(j = _.pos) == null ? void 0 : j.x, p, a]), { handleHover: S, handleLeave: D } = Je({
|
|
10487
10487
|
onClick: void 0,
|
|
10488
10488
|
onHover: void 0,
|
|
10489
10489
|
onLeave: void 0,
|
|
10490
10490
|
tooltip: o
|
|
10491
10491
|
});
|
|
10492
10492
|
return /* @__PURE__ */ d.jsxs("g", { width: c, height: n, transform: `translate(-${a}, 0)`, children: [
|
|
10493
|
-
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("linearGradient", { id: e, children: b.map((
|
|
10493
|
+
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("linearGradient", { id: e, children: b.map((C, I) => /* @__PURE__ */ d.jsx("stop", { offset: `${I}%`, stopColor: C }, `${e}_pt_${I}`)) }) }),
|
|
10494
10494
|
/* @__PURE__ */ d.jsx("rect", { width: c, x: 0, y: n / 3, height: n / 3, fill: `url('#${e}')` }),
|
|
10495
10495
|
!h && w && /* @__PURE__ */ d.jsx("line", { stroke: E, x1: w, x2: w, y1: 0, y2: n }),
|
|
10496
10496
|
/* @__PURE__ */ d.jsx(
|
|
@@ -10500,19 +10500,19 @@ function Xd({ id: e, data: t, color: r, height: n, dimensions: i, tooltip: o })
|
|
|
10500
10500
|
height: n,
|
|
10501
10501
|
transform: `translate(${a}, 0)`,
|
|
10502
10502
|
fill: "transparent",
|
|
10503
|
-
onMouseMove: (
|
|
10504
|
-
if (x(
|
|
10505
|
-
const I = t[_.index],
|
|
10506
|
-
if (!(!
|
|
10507
|
-
if (
|
|
10508
|
-
S(I, String(
|
|
10503
|
+
onMouseMove: (C) => {
|
|
10504
|
+
if (x(C), _.index === null) return;
|
|
10505
|
+
const I = t[_.index], F = I.max, B = I.min;
|
|
10506
|
+
if (!(!F || !B)) {
|
|
10507
|
+
if (F === B || !v) {
|
|
10508
|
+
S(I, String(F.toFixed(2)), C);
|
|
10509
10509
|
return;
|
|
10510
10510
|
}
|
|
10511
|
-
S(I, "max: " + String(
|
|
10511
|
+
S(I, "max: " + String(F.toFixed(2)) + " min: " + String(B.toFixed(2)), C);
|
|
10512
10512
|
}
|
|
10513
10513
|
},
|
|
10514
10514
|
onMouseOut: () => {
|
|
10515
|
-
O(),
|
|
10515
|
+
O(), D({ x: 0, min: 0, max: 0 });
|
|
10516
10516
|
}
|
|
10517
10517
|
}
|
|
10518
10518
|
)
|
|
@@ -10606,16 +10606,16 @@ var ya;
|
|
|
10606
10606
|
function Kd() {
|
|
10607
10607
|
return ya || (ya = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
10608
10608
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
|
|
10609
|
-
function E(
|
|
10610
|
-
return typeof
|
|
10611
|
-
|
|
10609
|
+
function E(q) {
|
|
10610
|
+
return typeof q == "string" || typeof q == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
10611
|
+
q === n || q === u || q === o || q === i || q === f || q === h || typeof q == "object" && q !== null && (q.$$typeof === m || q.$$typeof === p || q.$$typeof === a || q.$$typeof === s || q.$$typeof === l || q.$$typeof === v || q.$$typeof === g || q.$$typeof === b || q.$$typeof === y);
|
|
10612
10612
|
}
|
|
10613
|
-
function _(
|
|
10614
|
-
if (typeof
|
|
10615
|
-
var Ve =
|
|
10613
|
+
function _(q) {
|
|
10614
|
+
if (typeof q == "object" && q !== null) {
|
|
10615
|
+
var Ve = q.$$typeof;
|
|
10616
10616
|
switch (Ve) {
|
|
10617
10617
|
case t:
|
|
10618
|
-
var Tr =
|
|
10618
|
+
var Tr = q.type;
|
|
10619
10619
|
switch (Tr) {
|
|
10620
10620
|
case c:
|
|
10621
10621
|
case u:
|
|
@@ -10642,51 +10642,51 @@ function Kd() {
|
|
|
10642
10642
|
}
|
|
10643
10643
|
}
|
|
10644
10644
|
}
|
|
10645
|
-
var x = c, O = u, w = s, S = a,
|
|
10646
|
-
function H(
|
|
10647
|
-
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(
|
|
10645
|
+
var x = c, O = u, w = s, S = a, D = t, j = l, C = n, I = m, F = p, B = r, ce = o, G = i, fe = f, ye = !1;
|
|
10646
|
+
function H(q) {
|
|
10647
|
+
return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(q) || _(q) === c;
|
|
10648
10648
|
}
|
|
10649
|
-
function T(
|
|
10650
|
-
return _(
|
|
10649
|
+
function T(q) {
|
|
10650
|
+
return _(q) === u;
|
|
10651
10651
|
}
|
|
10652
|
-
function L(
|
|
10653
|
-
return _(
|
|
10652
|
+
function L(q) {
|
|
10653
|
+
return _(q) === s;
|
|
10654
10654
|
}
|
|
10655
|
-
function P(
|
|
10656
|
-
return _(
|
|
10655
|
+
function P(q) {
|
|
10656
|
+
return _(q) === a;
|
|
10657
10657
|
}
|
|
10658
|
-
function $(
|
|
10659
|
-
return typeof
|
|
10658
|
+
function $(q) {
|
|
10659
|
+
return typeof q == "object" && q !== null && q.$$typeof === t;
|
|
10660
10660
|
}
|
|
10661
|
-
function N(
|
|
10662
|
-
return _(
|
|
10661
|
+
function N(q) {
|
|
10662
|
+
return _(q) === l;
|
|
10663
10663
|
}
|
|
10664
|
-
function Q(
|
|
10665
|
-
return _(
|
|
10664
|
+
function Q(q) {
|
|
10665
|
+
return _(q) === n;
|
|
10666
10666
|
}
|
|
10667
|
-
function X(
|
|
10668
|
-
return _(
|
|
10667
|
+
function X(q) {
|
|
10668
|
+
return _(q) === m;
|
|
10669
10669
|
}
|
|
10670
|
-
function J(
|
|
10671
|
-
return _(
|
|
10670
|
+
function J(q) {
|
|
10671
|
+
return _(q) === p;
|
|
10672
10672
|
}
|
|
10673
|
-
function U(
|
|
10674
|
-
return _(
|
|
10673
|
+
function U(q) {
|
|
10674
|
+
return _(q) === r;
|
|
10675
10675
|
}
|
|
10676
|
-
function Z(
|
|
10677
|
-
return _(
|
|
10676
|
+
function Z(q) {
|
|
10677
|
+
return _(q) === o;
|
|
10678
10678
|
}
|
|
10679
|
-
function ee(
|
|
10680
|
-
return _(
|
|
10679
|
+
function ee(q) {
|
|
10680
|
+
return _(q) === i;
|
|
10681
10681
|
}
|
|
10682
|
-
function Le(
|
|
10683
|
-
return _(
|
|
10682
|
+
function Le(q) {
|
|
10683
|
+
return _(q) === f;
|
|
10684
10684
|
}
|
|
10685
|
-
ae.AsyncMode = x, ae.ConcurrentMode = O, ae.ContextConsumer = w, ae.ContextProvider = S, ae.Element =
|
|
10685
|
+
ae.AsyncMode = x, ae.ConcurrentMode = O, ae.ContextConsumer = w, ae.ContextProvider = S, ae.Element = D, ae.ForwardRef = j, ae.Fragment = C, ae.Lazy = I, ae.Memo = F, ae.Portal = B, ae.Profiler = ce, ae.StrictMode = G, ae.Suspense = fe, ae.isAsyncMode = H, ae.isConcurrentMode = T, ae.isContextConsumer = L, ae.isContextProvider = P, ae.isElement = $, ae.isForwardRef = N, ae.isFragment = Q, ae.isLazy = X, ae.isMemo = J, ae.isPortal = U, ae.isProfiler = Z, ae.isStrictMode = ee, ae.isSuspense = Le, ae.isValidElementType = E, ae.typeOf = _;
|
|
10686
10686
|
})()), ae;
|
|
10687
10687
|
}
|
|
10688
10688
|
var ba;
|
|
10689
|
-
function
|
|
10689
|
+
function Nc() {
|
|
10690
10690
|
return ba || (ba = 1, process.env.NODE_ENV === "production" ? Rr.exports = Jd() : Rr.exports = Kd()), Rr.exports;
|
|
10691
10691
|
}
|
|
10692
10692
|
/*
|
|
@@ -10748,7 +10748,7 @@ function Xi() {
|
|
|
10748
10748
|
return In = e, In;
|
|
10749
10749
|
}
|
|
10750
10750
|
var Nn, wa;
|
|
10751
|
-
function
|
|
10751
|
+
function Pc() {
|
|
10752
10752
|
return wa || (wa = 1, Nn = Function.call.bind(Object.prototype.hasOwnProperty)), Nn;
|
|
10753
10753
|
}
|
|
10754
10754
|
var Pn, _a;
|
|
@@ -10758,7 +10758,7 @@ function e0() {
|
|
|
10758
10758
|
var e = function() {
|
|
10759
10759
|
};
|
|
10760
10760
|
if (process.env.NODE_ENV !== "production") {
|
|
10761
|
-
var t = /* @__PURE__ */ Xi(), r = {}, n = /* @__PURE__ */
|
|
10761
|
+
var t = /* @__PURE__ */ Xi(), r = {}, n = /* @__PURE__ */ Pc();
|
|
10762
10762
|
e = function(o) {
|
|
10763
10763
|
var a = "Warning: " + o;
|
|
10764
10764
|
typeof console < "u" && console.error(a);
|
|
@@ -10804,7 +10804,7 @@ var An, Sa;
|
|
|
10804
10804
|
function t0() {
|
|
10805
10805
|
if (Sa) return An;
|
|
10806
10806
|
Sa = 1;
|
|
10807
|
-
var e =
|
|
10807
|
+
var e = Nc(), t = Zd(), r = /* @__PURE__ */ Xi(), n = /* @__PURE__ */ Pc(), i = /* @__PURE__ */ e0(), o = function() {
|
|
10808
10808
|
};
|
|
10809
10809
|
process.env.NODE_ENV !== "production" && (o = function(s) {
|
|
10810
10810
|
var c = "Warning: " + s;
|
|
@@ -10841,9 +10841,9 @@ function t0() {
|
|
|
10841
10841
|
node: j(),
|
|
10842
10842
|
objectOf: S,
|
|
10843
10843
|
oneOf: w,
|
|
10844
|
-
oneOfType:
|
|
10844
|
+
oneOfType: D,
|
|
10845
10845
|
shape: I,
|
|
10846
|
-
exact:
|
|
10846
|
+
exact: F
|
|
10847
10847
|
};
|
|
10848
10848
|
function m(T, L) {
|
|
10849
10849
|
return T === L ? T !== 0 || 1 / T === 1 / L : T !== T && L !== L;
|
|
@@ -10858,10 +10858,10 @@ function t0() {
|
|
|
10858
10858
|
function $(Q, X, J, U, Z, ee, Le) {
|
|
10859
10859
|
if (U = U || h, ee = ee || J, Le !== r) {
|
|
10860
10860
|
if (c) {
|
|
10861
|
-
var
|
|
10861
|
+
var q = new Error(
|
|
10862
10862
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
10863
10863
|
);
|
|
10864
|
-
throw
|
|
10864
|
+
throw q.name = "Invariant Violation", q;
|
|
10865
10865
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
10866
10866
|
var Ve = U + ":" + J;
|
|
10867
10867
|
!L[Ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -10951,9 +10951,9 @@ function t0() {
|
|
|
10951
10951
|
for (var J = P[$], U = 0; U < T.length; U++)
|
|
10952
10952
|
if (m(J, T[U]))
|
|
10953
10953
|
return null;
|
|
10954
|
-
var Z = JSON.stringify(T, function(Le,
|
|
10955
|
-
var Ve = fe(
|
|
10956
|
-
return Ve === "symbol" ? String(
|
|
10954
|
+
var Z = JSON.stringify(T, function(Le, q) {
|
|
10955
|
+
var Ve = fe(q);
|
|
10956
|
+
return Ve === "symbol" ? String(q) : q;
|
|
10957
10957
|
});
|
|
10958
10958
|
return new y("Invalid " + Q + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + N + "`, expected one of " + Z + "."));
|
|
10959
10959
|
}
|
|
@@ -10976,7 +10976,7 @@ function t0() {
|
|
|
10976
10976
|
}
|
|
10977
10977
|
return v(L);
|
|
10978
10978
|
}
|
|
10979
|
-
function
|
|
10979
|
+
function D(T) {
|
|
10980
10980
|
if (!Array.isArray(T))
|
|
10981
10981
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
10982
10982
|
for (var L = 0; L < T.length; L++) {
|
|
@@ -10988,10 +10988,10 @@ function t0() {
|
|
|
10988
10988
|
}
|
|
10989
10989
|
function $(N, Q, X, J, U) {
|
|
10990
10990
|
for (var Z = [], ee = 0; ee < T.length; ee++) {
|
|
10991
|
-
var Le = T[ee],
|
|
10992
|
-
if (
|
|
10991
|
+
var Le = T[ee], q = Le(N, Q, X, J, U, r);
|
|
10992
|
+
if (q == null)
|
|
10993
10993
|
return null;
|
|
10994
|
-
|
|
10994
|
+
q.data && n(q.data, "expectedType") && Z.push(q.data.expectedType);
|
|
10995
10995
|
}
|
|
10996
10996
|
var Ve = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
10997
10997
|
return new y("Invalid " + J + " `" + U + "` supplied to " + ("`" + X + "`" + Ve + "."));
|
|
@@ -11004,7 +11004,7 @@ function t0() {
|
|
|
11004
11004
|
}
|
|
11005
11005
|
return v(T);
|
|
11006
11006
|
}
|
|
11007
|
-
function
|
|
11007
|
+
function C(T, L, P, $, N) {
|
|
11008
11008
|
return new y(
|
|
11009
11009
|
(T || "React class") + ": " + L + " type `" + P + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
|
|
11010
11010
|
);
|
|
@@ -11017,7 +11017,7 @@ function t0() {
|
|
|
11017
11017
|
for (var Z in T) {
|
|
11018
11018
|
var ee = T[Z];
|
|
11019
11019
|
if (typeof ee != "function")
|
|
11020
|
-
return
|
|
11020
|
+
return C(N, Q, X, Z, fe(ee));
|
|
11021
11021
|
var Le = ee(J, Z, N, Q, X + "." + Z, r);
|
|
11022
11022
|
if (Le)
|
|
11023
11023
|
return Le;
|
|
@@ -11026,7 +11026,7 @@ function t0() {
|
|
|
11026
11026
|
}
|
|
11027
11027
|
return v(L);
|
|
11028
11028
|
}
|
|
11029
|
-
function
|
|
11029
|
+
function F(T) {
|
|
11030
11030
|
function L(P, $, N, Q, X) {
|
|
11031
11031
|
var J = P[$], U = G(J);
|
|
11032
11032
|
if (U !== "object")
|
|
@@ -11035,15 +11035,15 @@ function t0() {
|
|
|
11035
11035
|
for (var ee in Z) {
|
|
11036
11036
|
var Le = T[ee];
|
|
11037
11037
|
if (n(T, ee) && typeof Le != "function")
|
|
11038
|
-
return
|
|
11038
|
+
return C(N, Q, X, ee, fe(Le));
|
|
11039
11039
|
if (!Le)
|
|
11040
11040
|
return new y(
|
|
11041
11041
|
"Invalid " + Q + " `" + X + "` key `" + ee + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(P[$], null, " ") + `
|
|
11042
11042
|
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
11043
11043
|
);
|
|
11044
|
-
var
|
|
11045
|
-
if (
|
|
11046
|
-
return
|
|
11044
|
+
var q = Le(J, ee, N, Q, X + "." + ee, r);
|
|
11045
|
+
if (q)
|
|
11046
|
+
return q;
|
|
11047
11047
|
}
|
|
11048
11048
|
return null;
|
|
11049
11049
|
}
|
|
@@ -11170,10 +11170,10 @@ function r0() {
|
|
|
11170
11170
|
}, Fn;
|
|
11171
11171
|
}
|
|
11172
11172
|
var ka;
|
|
11173
|
-
function
|
|
11173
|
+
function Ac() {
|
|
11174
11174
|
if (ka) return jr.exports;
|
|
11175
11175
|
if (ka = 1, process.env.NODE_ENV !== "production") {
|
|
11176
|
-
var e =
|
|
11176
|
+
var e = Nc(), t = !0;
|
|
11177
11177
|
jr.exports = /* @__PURE__ */ t0()(e.isElement, t);
|
|
11178
11178
|
} else
|
|
11179
11179
|
jr.exports = /* @__PURE__ */ r0()();
|
|
@@ -11262,102 +11262,102 @@ function Ji() {
|
|
|
11262
11262
|
}), be.addClassName = x, be.addEvent = a, be.addUserSelectStyles = b, be.createCSSTransform = p, be.createSVGTransform = m, be.getTouch = v, be.getTouchIdentifier = g, be.getTranslation = y, be.innerHeight = l, be.innerWidth = f, be.matchesSelector = i, be.matchesSelectorAndParentsTo = o, be.offsetXYFromParent = h, be.outerHeight = c, be.outerWidth = u, be.removeClassName = O, be.removeEvent = s, be.scheduleRemoveUserSelectStyles = E;
|
|
11263
11263
|
var e = fn(), t = r(i0());
|
|
11264
11264
|
function r(w, S) {
|
|
11265
|
-
if (typeof WeakMap == "function") var
|
|
11266
|
-
return (r = function(
|
|
11267
|
-
if (!I &&
|
|
11268
|
-
var
|
|
11269
|
-
if (
|
|
11270
|
-
if (
|
|
11271
|
-
if (
|
|
11272
|
-
|
|
11273
|
-
}
|
|
11274
|
-
for (const G in
|
|
11265
|
+
if (typeof WeakMap == "function") var D = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap();
|
|
11266
|
+
return (r = function(C, I) {
|
|
11267
|
+
if (!I && C && C.__esModule) return C;
|
|
11268
|
+
var F, B, ce = { __proto__: null, default: C };
|
|
11269
|
+
if (C === null || typeof C != "object" && typeof C != "function") return ce;
|
|
11270
|
+
if (F = I ? j : D) {
|
|
11271
|
+
if (F.has(C)) return F.get(C);
|
|
11272
|
+
F.set(C, ce);
|
|
11273
|
+
}
|
|
11274
|
+
for (const G in C) G !== "default" && {}.hasOwnProperty.call(C, G) && ((B = (F = Object.defineProperty) && Object.getOwnPropertyDescriptor(C, G)) && (B.get || B.set) ? F(ce, G, B) : ce[G] = C[G]);
|
|
11275
11275
|
return ce;
|
|
11276
11276
|
})(w, S);
|
|
11277
11277
|
}
|
|
11278
11278
|
let n = "";
|
|
11279
11279
|
function i(w, S) {
|
|
11280
|
-
return n || (n = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(
|
|
11281
|
-
return (0, e.isFunction)(w[
|
|
11280
|
+
return n || (n = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(D) {
|
|
11281
|
+
return (0, e.isFunction)(w[D]);
|
|
11282
11282
|
})), (0, e.isFunction)(w[n]) ? w[n](S) : !1;
|
|
11283
11283
|
}
|
|
11284
|
-
function o(w, S,
|
|
11284
|
+
function o(w, S, D) {
|
|
11285
11285
|
let j = w;
|
|
11286
11286
|
do {
|
|
11287
11287
|
if (i(j, S)) return !0;
|
|
11288
|
-
if (j ===
|
|
11288
|
+
if (j === D) return !1;
|
|
11289
11289
|
j = j.parentNode;
|
|
11290
11290
|
} while (j);
|
|
11291
11291
|
return !1;
|
|
11292
11292
|
}
|
|
11293
|
-
function a(w, S,
|
|
11293
|
+
function a(w, S, D, j) {
|
|
11294
11294
|
if (!w) return;
|
|
11295
|
-
const
|
|
11295
|
+
const C = {
|
|
11296
11296
|
capture: !0,
|
|
11297
11297
|
...j
|
|
11298
11298
|
};
|
|
11299
|
-
w.addEventListener ? w.addEventListener(S,
|
|
11299
|
+
w.addEventListener ? w.addEventListener(S, D, C) : w.attachEvent ? w.attachEvent("on" + S, D) : w["on" + S] = D;
|
|
11300
11300
|
}
|
|
11301
|
-
function s(w, S,
|
|
11301
|
+
function s(w, S, D, j) {
|
|
11302
11302
|
if (!w) return;
|
|
11303
|
-
const
|
|
11303
|
+
const C = {
|
|
11304
11304
|
capture: !0,
|
|
11305
11305
|
...j
|
|
11306
11306
|
};
|
|
11307
|
-
w.removeEventListener ? w.removeEventListener(S,
|
|
11307
|
+
w.removeEventListener ? w.removeEventListener(S, D, C) : w.detachEvent ? w.detachEvent("on" + S, D) : w["on" + S] = null;
|
|
11308
11308
|
}
|
|
11309
11309
|
function c(w) {
|
|
11310
11310
|
let S = w.clientHeight;
|
|
11311
|
-
const
|
|
11312
|
-
return S += (0, e.int)(
|
|
11311
|
+
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11312
|
+
return S += (0, e.int)(D.borderTopWidth), S += (0, e.int)(D.borderBottomWidth), S;
|
|
11313
11313
|
}
|
|
11314
11314
|
function u(w) {
|
|
11315
11315
|
let S = w.clientWidth;
|
|
11316
|
-
const
|
|
11317
|
-
return S += (0, e.int)(
|
|
11316
|
+
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11317
|
+
return S += (0, e.int)(D.borderLeftWidth), S += (0, e.int)(D.borderRightWidth), S;
|
|
11318
11318
|
}
|
|
11319
11319
|
function l(w) {
|
|
11320
11320
|
let S = w.clientHeight;
|
|
11321
|
-
const
|
|
11322
|
-
return S -= (0, e.int)(
|
|
11321
|
+
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11322
|
+
return S -= (0, e.int)(D.paddingTop), S -= (0, e.int)(D.paddingBottom), S;
|
|
11323
11323
|
}
|
|
11324
11324
|
function f(w) {
|
|
11325
11325
|
let S = w.clientWidth;
|
|
11326
|
-
const
|
|
11327
|
-
return S -= (0, e.int)(
|
|
11326
|
+
const D = w.ownerDocument.defaultView.getComputedStyle(w);
|
|
11327
|
+
return S -= (0, e.int)(D.paddingLeft), S -= (0, e.int)(D.paddingRight), S;
|
|
11328
11328
|
}
|
|
11329
|
-
function h(w, S,
|
|
11330
|
-
const
|
|
11329
|
+
function h(w, S, D) {
|
|
11330
|
+
const C = S === S.ownerDocument.body ? {
|
|
11331
11331
|
left: 0,
|
|
11332
11332
|
top: 0
|
|
11333
|
-
} : S.getBoundingClientRect(), I = (w.clientX + S.scrollLeft -
|
|
11333
|
+
} : S.getBoundingClientRect(), I = (w.clientX + S.scrollLeft - C.left) / D, F = (w.clientY + S.scrollTop - C.top) / D;
|
|
11334
11334
|
return {
|
|
11335
11335
|
x: I,
|
|
11336
|
-
y:
|
|
11336
|
+
y: F
|
|
11337
11337
|
};
|
|
11338
11338
|
}
|
|
11339
11339
|
function p(w, S) {
|
|
11340
|
-
const
|
|
11340
|
+
const D = y(w, S, "px");
|
|
11341
11341
|
return {
|
|
11342
|
-
[(0, t.browserPrefixToKey)("transform", t.default)]:
|
|
11342
|
+
[(0, t.browserPrefixToKey)("transform", t.default)]: D
|
|
11343
11343
|
};
|
|
11344
11344
|
}
|
|
11345
11345
|
function m(w, S) {
|
|
11346
11346
|
return y(w, S, "");
|
|
11347
11347
|
}
|
|
11348
|
-
function y(w, S,
|
|
11348
|
+
function y(w, S, D) {
|
|
11349
11349
|
let {
|
|
11350
11350
|
x: j,
|
|
11351
|
-
y:
|
|
11352
|
-
} = w, I = `translate(${j}${
|
|
11351
|
+
y: C
|
|
11352
|
+
} = w, I = `translate(${j}${D},${C}${D})`;
|
|
11353
11353
|
if (S) {
|
|
11354
|
-
const
|
|
11355
|
-
I = `translate(${
|
|
11354
|
+
const F = `${typeof S.x == "string" ? S.x : S.x + D}`, B = `${typeof S.y == "string" ? S.y : S.y + D}`;
|
|
11355
|
+
I = `translate(${F}, ${B})` + I;
|
|
11356
11356
|
}
|
|
11357
11357
|
return I;
|
|
11358
11358
|
}
|
|
11359
11359
|
function v(w, S) {
|
|
11360
|
-
return w.targetTouches && (0, e.findInArray)(w.targetTouches, (
|
|
11360
|
+
return w.targetTouches && (0, e.findInArray)(w.targetTouches, (D) => S === D.identifier) || w.changedTouches && (0, e.findInArray)(w.changedTouches, (D) => S === D.identifier);
|
|
11361
11361
|
}
|
|
11362
11362
|
function g(w) {
|
|
11363
11363
|
if (w.targetTouches && w.targetTouches[0]) return w.targetTouches[0].identifier;
|
|
@@ -11396,7 +11396,7 @@ function Ji() {
|
|
|
11396
11396
|
return be;
|
|
11397
11397
|
}
|
|
11398
11398
|
var $e = {}, Ma;
|
|
11399
|
-
function
|
|
11399
|
+
function Fc() {
|
|
11400
11400
|
if (Ma) return $e;
|
|
11401
11401
|
Ma = 1, Object.defineProperty($e, "__esModule", {
|
|
11402
11402
|
value: !0
|
|
@@ -11491,7 +11491,7 @@ function Ac() {
|
|
|
11491
11491
|
return $e;
|
|
11492
11492
|
}
|
|
11493
11493
|
var nr = {}, Nr = {}, ja;
|
|
11494
|
-
function
|
|
11494
|
+
function qc() {
|
|
11495
11495
|
if (ja) return Nr;
|
|
11496
11496
|
ja = 1, Object.defineProperty(Nr, "__esModule", {
|
|
11497
11497
|
value: !0
|
|
@@ -11506,7 +11506,7 @@ function o0() {
|
|
|
11506
11506
|
Ra = 1, Object.defineProperty(nr, "__esModule", {
|
|
11507
11507
|
value: !0
|
|
11508
11508
|
}), nr.default = void 0;
|
|
11509
|
-
var e = c(de), t = s(/* @__PURE__ */
|
|
11509
|
+
var e = c(de), t = s(/* @__PURE__ */ Ac()), r = s(Ka), n = Ji(), i = Fc(), o = fn(), a = s(qc());
|
|
11510
11510
|
function s(y) {
|
|
11511
11511
|
return y && y.__esModule ? y : { default: y };
|
|
11512
11512
|
}
|
|
@@ -11812,7 +11812,7 @@ function a0() {
|
|
|
11812
11812
|
return c.default;
|
|
11813
11813
|
}
|
|
11814
11814
|
}), e.default = void 0;
|
|
11815
|
-
var t = f(de), r = l(/* @__PURE__ */
|
|
11815
|
+
var t = f(de), r = l(/* @__PURE__ */ Ac()), n = l(Ka), i = n0(), o = Ji(), a = Fc(), s = fn(), c = l(o0()), u = l(qc());
|
|
11816
11816
|
function l(g) {
|
|
11817
11817
|
return g && g.__esModule ? g : { default: g };
|
|
11818
11818
|
}
|
|
@@ -11820,14 +11820,14 @@ function a0() {
|
|
|
11820
11820
|
if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
11821
11821
|
return (f = function(x, O) {
|
|
11822
11822
|
if (!O && x && x.__esModule) return x;
|
|
11823
|
-
var w, S,
|
|
11824
|
-
if (x === null || typeof x != "object" && typeof x != "function") return
|
|
11823
|
+
var w, S, D = { __proto__: null, default: x };
|
|
11824
|
+
if (x === null || typeof x != "object" && typeof x != "function") return D;
|
|
11825
11825
|
if (w = O ? _ : E) {
|
|
11826
11826
|
if (w.has(x)) return w.get(x);
|
|
11827
|
-
w.set(x,
|
|
11827
|
+
w.set(x, D);
|
|
11828
11828
|
}
|
|
11829
|
-
for (const j in x) j !== "default" && {}.hasOwnProperty.call(x, j) && ((S = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(x, j)) && (S.get || S.set) ? w(
|
|
11830
|
-
return
|
|
11829
|
+
for (const j in x) j !== "default" && {}.hasOwnProperty.call(x, j) && ((S = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(x, j)) && (S.get || S.set) ? w(D, j, S) : D[j] = x[j]);
|
|
11830
|
+
return D;
|
|
11831
11831
|
})(g, b);
|
|
11832
11832
|
}
|
|
11833
11833
|
function h() {
|
|
@@ -11895,11 +11895,11 @@ function a0() {
|
|
|
11895
11895
|
if (this.props.bounds) {
|
|
11896
11896
|
const {
|
|
11897
11897
|
x: S,
|
|
11898
|
-
y:
|
|
11898
|
+
y: D
|
|
11899
11899
|
} = O;
|
|
11900
11900
|
O.x += this.state.slackX, O.y += this.state.slackY;
|
|
11901
|
-
const [j,
|
|
11902
|
-
O.x = j, O.y =
|
|
11901
|
+
const [j, C] = (0, a.getBoundPosition)(this, O.x, O.y);
|
|
11902
|
+
O.x = j, O.y = C, O.slackX = this.state.slackX + (S - O.x), O.slackY = this.state.slackY + (D - O.y), x.x = O.x, x.y = O.y, x.deltaX = O.x - this.state.x, x.deltaY = O.y - this.state.y;
|
|
11903
11903
|
}
|
|
11904
11904
|
if (this.props.onDrag(E, x) === !1) return !1;
|
|
11905
11905
|
this.setState(O);
|
|
@@ -11914,9 +11914,9 @@ function a0() {
|
|
|
11914
11914
|
if (!!this.props.position) {
|
|
11915
11915
|
const {
|
|
11916
11916
|
x: S,
|
|
11917
|
-
y:
|
|
11917
|
+
y: D
|
|
11918
11918
|
} = this.props.position;
|
|
11919
|
-
O.x = S, O.y =
|
|
11919
|
+
O.x = S, O.y = D;
|
|
11920
11920
|
}
|
|
11921
11921
|
this.setState(O);
|
|
11922
11922
|
}), this.state = {
|
|
@@ -11962,19 +11962,19 @@ function a0() {
|
|
|
11962
11962
|
defaultClassName: O,
|
|
11963
11963
|
defaultClassNameDragging: w,
|
|
11964
11964
|
defaultClassNameDragged: S,
|
|
11965
|
-
position:
|
|
11965
|
+
position: D,
|
|
11966
11966
|
positionOffset: j,
|
|
11967
|
-
scale:
|
|
11967
|
+
scale: C,
|
|
11968
11968
|
...I
|
|
11969
11969
|
} = this.props;
|
|
11970
|
-
let
|
|
11971
|
-
const G = !!!
|
|
11970
|
+
let F = {}, B = null;
|
|
11971
|
+
const G = !!!D || this.state.dragging, fe = D || x, ye = {
|
|
11972
11972
|
// Set left if horizontal drag is enabled
|
|
11973
11973
|
x: (0, a.canDragX)(this) && G ? this.state.x : fe.x,
|
|
11974
11974
|
// Set top if vertical drag is enabled
|
|
11975
11975
|
y: (0, a.canDragY)(this) && G ? this.state.y : fe.y
|
|
11976
11976
|
};
|
|
11977
|
-
this.state.isElementSVG ? B = (0, o.createSVGTransform)(ye, j) :
|
|
11977
|
+
this.state.isElementSVG ? B = (0, o.createSVGTransform)(ye, j) : F = (0, o.createCSSTransform)(ye, j);
|
|
11978
11978
|
const H = (0, i.clsx)(_.props.className || "", O, {
|
|
11979
11979
|
[w]: this.state.dragging,
|
|
11980
11980
|
[S]: this.state.dragged
|
|
@@ -11987,7 +11987,7 @@ function a0() {
|
|
|
11987
11987
|
className: H,
|
|
11988
11988
|
style: {
|
|
11989
11989
|
..._.props.style,
|
|
11990
|
-
...
|
|
11990
|
+
...F
|
|
11991
11991
|
},
|
|
11992
11992
|
transform: B
|
|
11993
11993
|
}));
|
|
@@ -12135,7 +12135,7 @@ function Ki() {
|
|
|
12135
12135
|
t(n.width / r.current.viewBox.baseVal.width);
|
|
12136
12136
|
}, [r]), e;
|
|
12137
12137
|
}
|
|
12138
|
-
function
|
|
12138
|
+
function Vc({ children: e, id: t }) {
|
|
12139
12139
|
const [r, n] = le(!1), [i, o] = le({ x: 0, y: 0 }), a = Te(null), s = Y((y) => y.delta), c = Y((y) => y.setDelta), u = Y((y) => y.shiftDomain), l = Ki();
|
|
12140
12140
|
pe(() => {
|
|
12141
12141
|
r || o({ x: s, y: 0 });
|
|
@@ -12233,9 +12233,9 @@ function l0(e) {
|
|
|
12233
12233
|
"path",
|
|
12234
12234
|
{
|
|
12235
12235
|
stroke: e.fill || "#000000",
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12236
|
+
strokeLinecap: "round",
|
|
12237
|
+
strokeLinejoin: "round",
|
|
12238
|
+
strokeWidth: "2",
|
|
12239
12239
|
d: "M20 4H4m8 3v11m0-11l3 3m-3-3l-3 3"
|
|
12240
12240
|
}
|
|
12241
12241
|
)
|
|
@@ -12257,9 +12257,9 @@ function f0(e) {
|
|
|
12257
12257
|
"path",
|
|
12258
12258
|
{
|
|
12259
12259
|
stroke: e.fill || "#000000",
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12260
|
+
strokeLinecap: "round",
|
|
12261
|
+
strokeLinejoin: "round",
|
|
12262
|
+
strokeWidth: "2",
|
|
12263
12263
|
d: "M20 20H4m8-3V6m0 11l3-3m-3 3l-3-3"
|
|
12264
12264
|
}
|
|
12265
12265
|
)
|
|
@@ -12276,11 +12276,11 @@ function h0({
|
|
|
12276
12276
|
onLeave: a,
|
|
12277
12277
|
verticalMargin: s
|
|
12278
12278
|
}) {
|
|
12279
|
-
const c = Y((j) => j.marginWidth), u = 10, l = sr((j) => j.showModal), f = Te(null), h =
|
|
12279
|
+
const c = Y((j) => j.marginWidth), u = 10, l = sr((j) => j.showModal), f = Te(null), h = ne((j) => j.getTrackIndex), p = ne((j) => j.tracks.length), m = ne((j) => j.shiftTracks), y = h(t), v = y > 0, g = y < p - 1, b = (j) => {
|
|
12280
12280
|
if (j.stopPropagation(), f.current) {
|
|
12281
|
-
const
|
|
12282
|
-
x:
|
|
12283
|
-
y:
|
|
12281
|
+
const C = f.current.getBoundingClientRect(), I = {
|
|
12282
|
+
x: C.left,
|
|
12283
|
+
y: C.top - 100
|
|
12284
12284
|
};
|
|
12285
12285
|
l(t, I);
|
|
12286
12286
|
}
|
|
@@ -12288,13 +12288,13 @@ function h0({
|
|
|
12288
12288
|
j.stopPropagation(), m(t, 0);
|
|
12289
12289
|
}, _ = (j) => {
|
|
12290
12290
|
j.stopPropagation(), m(t, -1);
|
|
12291
|
-
}, x =
|
|
12292
|
-
var
|
|
12293
|
-
return (
|
|
12294
|
-
}), w =
|
|
12295
|
-
var
|
|
12296
|
-
return (
|
|
12297
|
-
}) || x, S = De((j) => j.background),
|
|
12291
|
+
}, x = ne((j) => {
|
|
12292
|
+
var C;
|
|
12293
|
+
return (C = j.getTrack(t)) == null ? void 0 : C.range;
|
|
12294
|
+
}), w = ne((j) => {
|
|
12295
|
+
var C;
|
|
12296
|
+
return (C = j.getTrack(t)) == null ? void 0 : C.customRange;
|
|
12297
|
+
}) || x, S = De((j) => j.background), D = De((j) => j.text);
|
|
12298
12298
|
return /* @__PURE__ */ d.jsxs(
|
|
12299
12299
|
"g",
|
|
12300
12300
|
{
|
|
@@ -12317,10 +12317,10 @@ function h0({
|
|
|
12317
12317
|
}
|
|
12318
12318
|
),
|
|
12319
12319
|
/* @__PURE__ */ d.jsx("rect", { x: 0, y: 0, width: c / 15, height: r, stroke: "#000000", strokeWidth: 0.5, fill: n }),
|
|
12320
|
-
/* @__PURE__ */ d.jsx("text", { fill:
|
|
12320
|
+
/* @__PURE__ */ d.jsx("text", { fill: D, fontSize: `${u}px`, y: r / 2, x: c / 10, alignmentBaseline: "middle", children: e }),
|
|
12321
12321
|
/* @__PURE__ */ d.jsxs("g", { id: `margin-buttons-${t}`, children: [
|
|
12322
12322
|
t !== "ruler" && /* @__PURE__ */ d.jsxs("g", { ref: f, onClick: b, style: { cursor: "pointer" }, children: [
|
|
12323
|
-
/* @__PURE__ */ d.jsx(u0, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill:
|
|
12323
|
+
/* @__PURE__ */ d.jsx(u0, { x: c / 10, y: r / 2 + 2, height: 15, width: 15, fill: D }),
|
|
12324
12324
|
/* @__PURE__ */ d.jsx("circle", { cx: c / 10 + 7.5, cy: r / 2 + 10, r: 7.5, strokeWidth: 0, fill: "transparent" })
|
|
12325
12325
|
] }),
|
|
12326
12326
|
t !== "ruler" && /* @__PURE__ */ d.jsxs("g", { onClick: v ? E : void 0, style: { cursor: "pointer" }, children: [
|
|
@@ -12332,7 +12332,7 @@ function h0({
|
|
|
12332
12332
|
y: r / 2 + 3,
|
|
12333
12333
|
height: 15,
|
|
12334
12334
|
width: 15,
|
|
12335
|
-
fill: v ?
|
|
12335
|
+
fill: v ? D : "#ccc"
|
|
12336
12336
|
}
|
|
12337
12337
|
)
|
|
12338
12338
|
] }),
|
|
@@ -12345,14 +12345,14 @@ function h0({
|
|
|
12345
12345
|
y: r / 2 + 2,
|
|
12346
12346
|
height: 15,
|
|
12347
12347
|
width: 15,
|
|
12348
|
-
fill: g ?
|
|
12348
|
+
fill: g ? D : "#ccc"
|
|
12349
12349
|
}
|
|
12350
12350
|
)
|
|
12351
12351
|
] })
|
|
12352
12352
|
] }),
|
|
12353
12353
|
w && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
12354
|
-
/* @__PURE__ */ d.jsx(Pa, { color:
|
|
12355
|
-
/* @__PURE__ */ d.jsx(Pa, { color:
|
|
12354
|
+
/* @__PURE__ */ d.jsx(Pa, { color: D, position: r, width: c, fontSize: 8, children: w.min.toFixed(2) }),
|
|
12355
|
+
/* @__PURE__ */ d.jsx(Pa, { color: D, position: s, width: c, fontSize: 8, children: w.max.toFixed(2) })
|
|
12356
12356
|
] }),
|
|
12357
12357
|
/* @__PURE__ */ d.jsx("line", { stroke: "#ccc", x1: c, x2: c, y1: 0, y2: r })
|
|
12358
12358
|
]
|
|
@@ -12491,7 +12491,7 @@ function m0({
|
|
|
12491
12491
|
children: t,
|
|
12492
12492
|
setSwapping: r
|
|
12493
12493
|
}) {
|
|
12494
|
-
const [n, i] = le({ x: 0, y: 0 }), [o, a] = le(!1), [s, c] = le(0), u = Te(null), l = Ki(), f =
|
|
12494
|
+
const [n, i] = le({ x: 0, y: 0 }), [o, a] = le(!1), [s, c] = le(0), u = Te(null), l = Ki(), f = ne((b) => b.shiftTracks), h = ne((b) => b.getDistances), p = ne((b) => b.getTrackIndex), m = ne((b) => b.getPrevHeights(e)), y = (b, E) => {
|
|
12495
12495
|
b.preventDefault(), a(!0), r(!0), i({ x: 0, y: E.y }), c(E.y);
|
|
12496
12496
|
}, v = () => {
|
|
12497
12497
|
if (i({ x: 0, y: 0 }), a(!1), r(!1), Math.abs(s) <= 5) return;
|
|
@@ -12569,14 +12569,14 @@ function w0({
|
|
|
12569
12569
|
] })
|
|
12570
12570
|
] });
|
|
12571
12571
|
}
|
|
12572
|
-
function
|
|
12573
|
-
const [o, a] = le(!1), [s, c] = le(!1), u = Y((
|
|
12572
|
+
function $c({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
12573
|
+
const [o, a] = le(!1), [s, c] = le(!1), u = Y((C) => C.marginWidth), l = Y((C) => C.browserWidth), f = z(() => l - u, [l, u]), h = ne((C) => C.getDimensions), p = ne((C) => C.createShortLabel), m = ne((C) => {
|
|
12574
12574
|
var I;
|
|
12575
|
-
return (I =
|
|
12576
|
-
}) || "", y =
|
|
12575
|
+
return (I = C.getTrack(r)) == null ? void 0 : I.color;
|
|
12576
|
+
}) || "", y = ne((C) => {
|
|
12577
12577
|
var I;
|
|
12578
|
-
return (I =
|
|
12579
|
-
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } = h(r), _ = p(r), x = E / 3, O = Dt((
|
|
12578
|
+
return (I = C.getTrack(r)) == null ? void 0 : I.title;
|
|
12579
|
+
}) || "", { trackMargin: v, titleSize: g, totalVerticalMargin: b, wrapperHeight: E } = h(r), _ = p(r), x = E / 3, O = Dt((C) => C.setContextMenu), w = De((C) => C.text), S = De((C) => C.background), D = Be(() => {
|
|
12580
12580
|
c(!0);
|
|
12581
12581
|
}, []), j = Be(() => {
|
|
12582
12582
|
c(!1);
|
|
@@ -12600,12 +12600,12 @@ function Vc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12600
12600
|
]
|
|
12601
12601
|
}
|
|
12602
12602
|
),
|
|
12603
|
-
!n && !i && /* @__PURE__ */ d.jsx(
|
|
12603
|
+
!n && !i && /* @__PURE__ */ d.jsx(Vc, { id: r, children: /* @__PURE__ */ d.jsx(
|
|
12604
12604
|
"g",
|
|
12605
12605
|
{
|
|
12606
12606
|
transform: `translate(${u},${b})`,
|
|
12607
|
-
onContextMenu: (
|
|
12608
|
-
|
|
12607
|
+
onContextMenu: (C) => {
|
|
12608
|
+
C.preventDefault(), O(!0, r, C.pageX, C.pageY);
|
|
12609
12609
|
},
|
|
12610
12610
|
children: e
|
|
12611
12611
|
}
|
|
@@ -12632,7 +12632,7 @@ function Vc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12632
12632
|
color: m || S,
|
|
12633
12633
|
swapping: o,
|
|
12634
12634
|
verticalMargin: b,
|
|
12635
|
-
onHover:
|
|
12635
|
+
onHover: D,
|
|
12636
12636
|
onLeave: j
|
|
12637
12637
|
}
|
|
12638
12638
|
),
|
|
@@ -12649,7 +12649,7 @@ function Vc({ children: e, transform: t, id: r, loading: n, error: i }) {
|
|
|
12649
12649
|
] }) });
|
|
12650
12650
|
}
|
|
12651
12651
|
function dn(e, t, r = 12) {
|
|
12652
|
-
const n =
|
|
12652
|
+
const n = ne((i) => i.editTrack);
|
|
12653
12653
|
return pe(() => {
|
|
12654
12654
|
const i = Math.max(r * e, 30);
|
|
12655
12655
|
n(t, { height: i });
|
|
@@ -12679,7 +12679,7 @@ function _0({
|
|
|
12679
12679
|
/* @__PURE__ */ d.jsx("rect", { width: u, height: r, fill: f }),
|
|
12680
12680
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: e, width: u, height: r }) }),
|
|
12681
12681
|
m.map((E, _) => /* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${_ * y})`, children: E.map((x, O) => {
|
|
12682
|
-
const w =
|
|
12682
|
+
const w = jc(x, p);
|
|
12683
12683
|
return /* @__PURE__ */ d.jsx(
|
|
12684
12684
|
"rect",
|
|
12685
12685
|
{
|
|
@@ -12732,7 +12732,7 @@ function k0(e) {
|
|
|
12732
12732
|
) : t.push({ coordinates: { ...r.coordinates } });
|
|
12733
12733
|
}), t;
|
|
12734
12734
|
}
|
|
12735
|
-
function
|
|
12735
|
+
function Bc(e, t, r, n) {
|
|
12736
12736
|
var a;
|
|
12737
12737
|
const i = O0(e, t), o = {
|
|
12738
12738
|
exons: ((a = i.exons) == null ? void 0 : a.reduce((s, c) => s + L0(c, r / 2, r, n), "")) || "",
|
|
@@ -12799,7 +12799,7 @@ function L0(e, t, r, n) {
|
|
|
12799
12799
|
let l = i[0] ? Me(i[0].coordinates.start, a) + W(i[0].coordinates.end, a) + W(i[0].coordinates.end, c) : Me(e.coordinates.start, c);
|
|
12800
12800
|
return l += o[0] ? W(o[0].coordinates.start, c) + W(o[0].coordinates.start, a) + W(o[0].coordinates.end, a) + W(o[0].coordinates.end, s) + W(o[0].coordinates.start, s) + W(o[0].coordinates.start, u) : W(e.coordinates.end, c) + W(e.coordinates.end, u), l + (i[0] ? W(i[0].coordinates.end, u) + W(i[0].coordinates.end, s) + W(i[0].coordinates.start, s) + W(i[0].coordinates.start, a) : W(e.coordinates.start, u) + W(e.coordinates.start, c));
|
|
12801
12801
|
}
|
|
12802
|
-
const
|
|
12802
|
+
const Wc = (e, t) => {
|
|
12803
12803
|
const r = t(e.coordinates.start), n = t(e.coordinates.end), i = {
|
|
12804
12804
|
start: Math.round(r),
|
|
12805
12805
|
end: Math.round(n)
|
|
@@ -12824,7 +12824,7 @@ function M0({
|
|
|
12824
12824
|
const { totalWidth: l, sideWidth: f } = i, { x: h, reverseX: p } = St(l), m = 10, y = z(() => t == null ? void 0 : t.map((w) => T0(w, r)), [t, r]), v = z(() => ln(y, h, m), [y, h, m]), g = dn(v.length, e), b = z(
|
|
12825
12825
|
() => v.map((w, S) => ({
|
|
12826
12826
|
y: S * g,
|
|
12827
|
-
transcripts: w.map((
|
|
12827
|
+
transcripts: w.map((D) => Bc(D, h, g, l))
|
|
12828
12828
|
})),
|
|
12829
12829
|
[v, g, l, h]
|
|
12830
12830
|
), E = De((w) => w.background), { handleClick: _, handleHover: x, handleLeave: O } = Je({
|
|
@@ -12843,28 +12843,28 @@ function M0({
|
|
|
12843
12843
|
transform: `translate(0,${w.y})`,
|
|
12844
12844
|
height: g,
|
|
12845
12845
|
width: l,
|
|
12846
|
-
children: w.transcripts.map((
|
|
12847
|
-
const
|
|
12846
|
+
children: w.transcripts.map((D, j) => {
|
|
12847
|
+
const C = Wc(D.transcript, p);
|
|
12848
12848
|
return /* @__PURE__ */ d.jsxs("g", { children: [
|
|
12849
12849
|
/* @__PURE__ */ d.jsx(
|
|
12850
12850
|
"path",
|
|
12851
12851
|
{
|
|
12852
|
-
stroke:
|
|
12853
|
-
fill:
|
|
12852
|
+
stroke: D.transcript.color || o,
|
|
12853
|
+
fill: D.transcript.color || o,
|
|
12854
12854
|
strokeWidth: g / 16,
|
|
12855
|
-
d:
|
|
12855
|
+
d: D.paths.introns + D.paths.exons,
|
|
12856
12856
|
style: { cursor: a ? "pointer" : "default" },
|
|
12857
|
-
onClick: () => _(
|
|
12858
|
-
onMouseOver: (I) => x(
|
|
12859
|
-
onMouseOut: () => O(
|
|
12857
|
+
onClick: () => _(C),
|
|
12858
|
+
onMouseOver: (I) => x(C, C.name || "", I),
|
|
12859
|
+
onMouseOut: () => O(C)
|
|
12860
12860
|
}
|
|
12861
12861
|
),
|
|
12862
12862
|
/* @__PURE__ */ d.jsx(
|
|
12863
12863
|
"text",
|
|
12864
12864
|
{
|
|
12865
|
-
fill:
|
|
12865
|
+
fill: D.transcript.color || o,
|
|
12866
12866
|
fontSize: m,
|
|
12867
|
-
x:
|
|
12867
|
+
x: D.transcript.coordinates.end + 5,
|
|
12868
12868
|
y: g / 2,
|
|
12869
12869
|
dominantBaseline: "middle",
|
|
12870
12870
|
style: {
|
|
@@ -12875,7 +12875,7 @@ function M0({
|
|
|
12875
12875
|
msUserSelect: "none",
|
|
12876
12876
|
userSelect: "none"
|
|
12877
12877
|
},
|
|
12878
|
-
children:
|
|
12878
|
+
children: D.transcript.name
|
|
12879
12879
|
}
|
|
12880
12880
|
)
|
|
12881
12881
|
] }, `transcript_${j}`);
|
|
@@ -12899,7 +12899,7 @@ function j0({
|
|
|
12899
12899
|
const { totalWidth: u, sideWidth: l } = n, { x: f, reverseX: h } = St(u), p = 10, m = z(() => C0(t || []), [t]), y = z(() => ln(m, f, p), [m, f, p]), v = dn(y.length, e), g = z(
|
|
12900
12900
|
() => y.map((O, w) => ({
|
|
12901
12901
|
y: w * v,
|
|
12902
|
-
transcripts: O.map((S) =>
|
|
12902
|
+
transcripts: O.map((S) => Bc(S, f, v, u))
|
|
12903
12903
|
})),
|
|
12904
12904
|
[y, v, u, f]
|
|
12905
12905
|
), b = De((O) => O.background), { handleClick: E, handleHover: _, handleLeave: x } = Je({
|
|
@@ -12918,8 +12918,8 @@ function j0({
|
|
|
12918
12918
|
transform: `translate(0,${O.y})`,
|
|
12919
12919
|
height: v,
|
|
12920
12920
|
width: u,
|
|
12921
|
-
children: O.transcripts.map((S,
|
|
12922
|
-
const j =
|
|
12921
|
+
children: O.transcripts.map((S, D) => {
|
|
12922
|
+
const j = Wc(S.transcript, h);
|
|
12923
12923
|
return /* @__PURE__ */ d.jsxs("g", { children: [
|
|
12924
12924
|
/* @__PURE__ */ d.jsx(
|
|
12925
12925
|
"path",
|
|
@@ -12930,7 +12930,7 @@ function j0({
|
|
|
12930
12930
|
d: S.paths.introns + S.paths.exons,
|
|
12931
12931
|
style: { cursor: o ? "pointer" : "default" },
|
|
12932
12932
|
onClick: () => E(j),
|
|
12933
|
-
onMouseOver: (
|
|
12933
|
+
onMouseOver: (C) => _(j, j.name || "", C),
|
|
12934
12934
|
onMouseOut: () => x(j)
|
|
12935
12935
|
}
|
|
12936
12936
|
),
|
|
@@ -12953,7 +12953,7 @@ function j0({
|
|
|
12953
12953
|
children: S.transcript.name
|
|
12954
12954
|
}
|
|
12955
12955
|
)
|
|
12956
|
-
] }, `transcript_${
|
|
12956
|
+
] }, `transcript_${D}`);
|
|
12957
12957
|
})
|
|
12958
12958
|
},
|
|
12959
12959
|
`row_${w}`
|
|
@@ -13671,7 +13671,7 @@ const tm = ({
|
|
|
13671
13671
|
"translate(" + t * u + ",0)"
|
|
13672
13672
|
)
|
|
13673
13673
|
);
|
|
13674
|
-
},
|
|
13674
|
+
}, Qc = (e, t, r) => {
|
|
13675
13675
|
const n = [], i = Math.max(...r.map((o) => o.length));
|
|
13676
13676
|
for (let o = 0; o < i; ++o)
|
|
13677
13677
|
n.push(e.map((a) => 0));
|
|
@@ -13691,14 +13691,14 @@ const tm = ({
|
|
|
13691
13691
|
}), t.split(`
|
|
13692
13692
|
`).forEach((i) => {
|
|
13693
13693
|
i[0] === ">" ? n.push("") : n[n.length - 1] += i.trim();
|
|
13694
|
-
}),
|
|
13694
|
+
}), Qc(e, r, n);
|
|
13695
13695
|
}, mm = (e, t) => {
|
|
13696
13696
|
const r = {};
|
|
13697
13697
|
return e.forEach((n, i) => {
|
|
13698
13698
|
n.regex.forEach((o) => {
|
|
13699
13699
|
r[o] = i;
|
|
13700
13700
|
});
|
|
13701
|
-
}),
|
|
13701
|
+
}), Qc(
|
|
13702
13702
|
e,
|
|
13703
13703
|
r,
|
|
13704
13704
|
t.split(`
|
|
@@ -13737,7 +13737,7 @@ const tm = ({
|
|
|
13737
13737
|
);
|
|
13738
13738
|
t = H.pfm, O = H.count || 1;
|
|
13739
13739
|
}
|
|
13740
|
-
const
|
|
13740
|
+
const D = w && t && t.map(
|
|
13741
13741
|
(H) => H.reduce(
|
|
13742
13742
|
(T, L, P) => P === void 0 ? T : L + T,
|
|
13743
13743
|
0
|
|
@@ -13752,16 +13752,16 @@ const tm = ({
|
|
|
13752
13752
|
return /* @__PURE__ */ d.jsx("div", {});
|
|
13753
13753
|
let j = e[0].length;
|
|
13754
13754
|
h || (h = e[0].map((H) => 1 / j));
|
|
13755
|
-
let
|
|
13756
|
-
(H, T) => am(h)(H,
|
|
13755
|
+
let C = r || (i !== Vn ? e.map(
|
|
13756
|
+
(H, T) => am(h)(H, D ? D[T] : void 0)
|
|
13757
13757
|
) : e.map(
|
|
13758
13758
|
(H) => H.map((T) => T * Math.log2(j))
|
|
13759
13759
|
));
|
|
13760
|
-
const I = i === Vn ? [Math.log2(j)] : h.map((H) => Math.log2(1 / (H || 0.01))),
|
|
13760
|
+
const I = i === Vn ? [Math.log2(j)] : h.map((H) => Math.log2(1 / (H || 0.01))), F = y || Math.max(...I), B = Math.min(...I), ce = B < 0 ? F / (F - B) : 1;
|
|
13761
13761
|
l = l && !isNaN(parseFloat(l.toString())) && isFinite(l) ? l : 1;
|
|
13762
|
-
let G = 100 *
|
|
13762
|
+
let G = 100 * F;
|
|
13763
13763
|
c = G / 6 * (c || 1);
|
|
13764
|
-
let fe =
|
|
13764
|
+
let fe = C.length * c + 80, ye = G + 18 * (im(l, C.length) + 1);
|
|
13765
13765
|
return u && (fe > ye ? a = u : o = u), /* @__PURE__ */ d.jsxs(
|
|
13766
13766
|
"svg",
|
|
13767
13767
|
{
|
|
@@ -13779,14 +13779,14 @@ const tm = ({
|
|
|
13779
13779
|
width: fe,
|
|
13780
13780
|
height: G,
|
|
13781
13781
|
xaxis_y: 10,
|
|
13782
|
-
numberofgridlines: 10 *
|
|
13782
|
+
numberofgridlines: 10 * C.length
|
|
13783
13783
|
}
|
|
13784
13784
|
),
|
|
13785
13785
|
/* @__PURE__ */ d.jsx(
|
|
13786
13786
|
um,
|
|
13787
13787
|
{
|
|
13788
13788
|
transform: "translate(80," + (G + 20) + ")",
|
|
13789
|
-
n:
|
|
13789
|
+
n: C.length,
|
|
13790
13790
|
glyphWidth: c,
|
|
13791
13791
|
startPos: l
|
|
13792
13792
|
}
|
|
@@ -13805,14 +13805,14 @@ const tm = ({
|
|
|
13805
13805
|
transform: "translate(0,10)",
|
|
13806
13806
|
width: 65,
|
|
13807
13807
|
height: G,
|
|
13808
|
-
bits:
|
|
13808
|
+
bits: F,
|
|
13809
13809
|
zeroPoint: ce
|
|
13810
13810
|
}
|
|
13811
13811
|
),
|
|
13812
13812
|
/* @__PURE__ */ d.jsx("g", { transform: "translate(80,10)", children: /* @__PURE__ */ d.jsx(
|
|
13813
13813
|
dm,
|
|
13814
13814
|
{
|
|
13815
|
-
values:
|
|
13815
|
+
values: C,
|
|
13816
13816
|
glyphWidth: c,
|
|
13817
13817
|
stackHeight: G,
|
|
13818
13818
|
alphabet: s,
|
|
@@ -13869,7 +13869,7 @@ const Qa = /* @__PURE__ */ new Map([
|
|
|
13869
13869
|
function wm({ data: e, annotations: t, dimensions: r, height: n, zeroLineProps: i }) {
|
|
13870
13870
|
const { viewWidth: o } = r, [a] = le(null), [s, c, u] = I0(e, n), l = R0(t || [], s, u), f = z(() => o / s.length / 100, [o, s.length]), h = Be(c, [c]), p = z(() => l.map((b, E) => {
|
|
13871
13871
|
const _ = 100 * f * Math.abs(b.coordinates[1] - b.coordinates[0]), x = Math.min(...b.coordinates) * f * 100, O = b.y + b.height, w = 80;
|
|
13872
|
-
return /* @__PURE__ */ d.jsxs(
|
|
13872
|
+
return /* @__PURE__ */ d.jsxs(ru, { children: [
|
|
13873
13873
|
/* @__PURE__ */ d.jsx(
|
|
13874
13874
|
"rect",
|
|
13875
13875
|
{
|
|
@@ -13947,7 +13947,7 @@ function Ua(e, t) {
|
|
|
13947
13947
|
}) : r[r.length - 1].end = t(i.end);
|
|
13948
13948
|
}), r;
|
|
13949
13949
|
}
|
|
13950
|
-
const
|
|
13950
|
+
const zc = (e) => /* @__PURE__ */ d.jsxs("g", { transform: "translate(0, -150)", children: [
|
|
13951
13951
|
/* @__PURE__ */ d.jsx(
|
|
13952
13952
|
"rect",
|
|
13953
13953
|
{
|
|
@@ -13975,7 +13975,7 @@ function _m({
|
|
|
13975
13975
|
onClick: a,
|
|
13976
13976
|
onHover: s,
|
|
13977
13977
|
onLeave: c,
|
|
13978
|
-
tooltip: u ||
|
|
13978
|
+
tooltip: u || zc
|
|
13979
13979
|
});
|
|
13980
13980
|
return /* @__PURE__ */ d.jsxs("g", { id: e, height: r, width: l, clipPath: `url(#${e})`, transform: `translate(-${f}, 0)`, children: [
|
|
13981
13981
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: "white" }),
|
|
@@ -14027,7 +14027,7 @@ function Sm({
|
|
|
14027
14027
|
onClick: a,
|
|
14028
14028
|
onHover: s,
|
|
14029
14029
|
onLeave: c,
|
|
14030
|
-
tooltip: u ||
|
|
14030
|
+
tooltip: u || zc
|
|
14031
14031
|
});
|
|
14032
14032
|
return /* @__PURE__ */ d.jsxs("g", { width: l, height: r, clipPath: `url(#${e})`, transform: `translate(-${f}, 0)`, children: [
|
|
14033
14033
|
/* @__PURE__ */ d.jsx("rect", { width: l, height: r, fill: "white" }),
|
|
@@ -14095,7 +14095,7 @@ function Tm({
|
|
|
14095
14095
|
return l(w);
|
|
14096
14096
|
} : void 0;
|
|
14097
14097
|
return /* @__PURE__ */ d.jsx("g", { transform: `translate(0, ${y})`, children: /* @__PURE__ */ d.jsx(
|
|
14098
|
-
|
|
14098
|
+
Rc,
|
|
14099
14099
|
{
|
|
14100
14100
|
data: p,
|
|
14101
14101
|
id: `${v}`,
|
|
@@ -14112,12 +14112,12 @@ function Tm({
|
|
|
14112
14112
|
}) });
|
|
14113
14113
|
}
|
|
14114
14114
|
function kt(e, t, r, n = !1, i) {
|
|
14115
|
-
const o =
|
|
14115
|
+
const o = Uc(e, i);
|
|
14116
14116
|
if (!o) return null;
|
|
14117
14117
|
const { range: a, rangeSize: s } = o, c = n ? 0 : t;
|
|
14118
14118
|
let u = Me(0, c), l = Me(0, c);
|
|
14119
14119
|
return e.forEach((f) => {
|
|
14120
|
-
const h =
|
|
14120
|
+
const h = Hc(f, a, s, t, n), p = n ? 0 : t;
|
|
14121
14121
|
(f.max !== null || f.min !== null) && (l += W(h.x, p) + W(h.x, n ? t : 0) + W(h.x + 1, n ? t : 0) + W(h.x + 1, p)), u += W(h.x, p) + W(h.x, h.y) + W(h.x + 1, h.y) + W(h.x + 1, p);
|
|
14122
14122
|
}), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
14123
14123
|
/* @__PURE__ */ d.jsx("path", { d: l, fill: Sr(r, 0.5), fillOpacity: 0.2 }),
|
|
@@ -14125,21 +14125,21 @@ function kt(e, t, r, n = !1, i) {
|
|
|
14125
14125
|
] });
|
|
14126
14126
|
}
|
|
14127
14127
|
function Ha(e, t, r, n = !1, i) {
|
|
14128
|
-
const o =
|
|
14128
|
+
const o = Uc(e, i);
|
|
14129
14129
|
if (!o) return null;
|
|
14130
14130
|
const { range: a, rangeSize: s } = o;
|
|
14131
14131
|
let c = "";
|
|
14132
14132
|
return e.forEach((u, l) => {
|
|
14133
|
-
const f =
|
|
14133
|
+
const f = Hc(u, a, s, t, n);
|
|
14134
14134
|
l === 0 ? c += Me(f.x, f.y) : c += W(f.x, f.y);
|
|
14135
14135
|
}), /* @__PURE__ */ d.jsx("path", { d: c, stroke: r, fill: "none", strokeWidth: "1" });
|
|
14136
14136
|
}
|
|
14137
|
-
function
|
|
14137
|
+
function Uc(e, t) {
|
|
14138
14138
|
if (!e || e.length === 0) return null;
|
|
14139
14139
|
const r = t || { min: Om(e), max: km(e) }, n = r.max - r.min;
|
|
14140
14140
|
return n <= 0 ? null : { range: r, rangeSize: n };
|
|
14141
14141
|
}
|
|
14142
|
-
function
|
|
14142
|
+
function Hc(e, t, r, n, i) {
|
|
14143
14143
|
const s = (Math.max(t.min, Math.min(t.max, e.max)) - t.min) / r * n;
|
|
14144
14144
|
return {
|
|
14145
14145
|
x: e.x,
|
|
@@ -14222,7 +14222,7 @@ function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14222
14222
|
return (S = y.pos) != null && S.x ? y.pos.x - h + s : 0;
|
|
14223
14223
|
}, [(O = y.pos) == null ? void 0 : O.x, h, s]), E = z(() => {
|
|
14224
14224
|
const S = y.index;
|
|
14225
|
-
return S === null ? [] : n.map((
|
|
14225
|
+
return S === null ? [] : n.map((D) => D[S]);
|
|
14226
14226
|
}, [n, y.index]), { handleHover: _, handleLeave: x } = Je({
|
|
14227
14227
|
onClick: void 0,
|
|
14228
14228
|
onHover: void 0,
|
|
@@ -14262,21 +14262,24 @@ function Dm({ id: e, height: t, colors: r, data: n, dimensions: i, range: o, too
|
|
|
14262
14262
|
] });
|
|
14263
14263
|
}
|
|
14264
14264
|
function Lm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o, tooltip: a }) {
|
|
14265
|
-
var
|
|
14266
|
-
const { sideWidth: s, totalWidth: c, viewWidth: u } = o, l = Y((C) => C.svgRef), f = Y((C) => C.delta), h = Y((C) => C.marginWidth), p = De((C) => C.background), m = z(() => e.some((C) => C.min < 0), [e]), y =
|
|
14265
|
+
var j;
|
|
14266
|
+
const { sideWidth: s, totalWidth: c, viewWidth: u } = o, l = Y((C) => C.svgRef), f = Y((C) => C.delta), h = Y((C) => C.marginWidth), p = De((C) => C.background), m = z(() => e.some((C) => C.min < 0), [e]), y = ne((C) => C.editTrack), v = z(() => {
|
|
14267
|
+
const C = e.slice(s, s + u), I = Mc(C);
|
|
14268
|
+
return y(r, { range: I }), I;
|
|
14269
|
+
}, [e, s, u, r, y]), g = z(() => Mm(e, n, i, t || v, p), [e, n, i, t, v]), { mouseState: b, updateMouseState: E, clearMouseState: _ } = Gi(l, c, h, s), x = z(() => {
|
|
14267
14270
|
var C;
|
|
14268
|
-
return (C =
|
|
14269
|
-
}, [(
|
|
14271
|
+
return (C = b.pos) != null && C.x ? b.pos.x - h + s : 0;
|
|
14272
|
+
}, [(j = b.pos) == null ? void 0 : j.x, h, s]), O = De((C) => C.background), w = De((C) => C.text), { handleHover: S, handleLeave: D } = Je({
|
|
14270
14273
|
onClick: void 0,
|
|
14271
14274
|
onHover: void 0,
|
|
14272
14275
|
onLeave: void 0,
|
|
14273
14276
|
tooltip: a
|
|
14274
14277
|
});
|
|
14275
14278
|
return /* @__PURE__ */ d.jsxs("g", { width: c, height: n, clipPath: `url(#${r})`, transform: `translate(-${s}, 0)`, children: [
|
|
14276
|
-
/* @__PURE__ */ d.jsx("rect", { width: c, height: n, fill:
|
|
14279
|
+
/* @__PURE__ */ d.jsx("rect", { width: c, height: n, fill: O }),
|
|
14277
14280
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx(Tt, { id: r, width: c, height: n }) }),
|
|
14278
|
-
|
|
14279
|
-
!f &&
|
|
14281
|
+
g,
|
|
14282
|
+
!f && x && /* @__PURE__ */ d.jsx("line", { stroke: w, x1: x, x2: x, y1: 0, y2: n }),
|
|
14280
14283
|
/* @__PURE__ */ d.jsx(
|
|
14281
14284
|
"rect",
|
|
14282
14285
|
{
|
|
@@ -14285,18 +14288,18 @@ function Lm({ data: e, customRange: t, id: r, height: n, color: i, dimensions: o
|
|
|
14285
14288
|
transform: `translate(${s}, 0)`,
|
|
14286
14289
|
fill: "transparent",
|
|
14287
14290
|
onMouseMove: (C) => {
|
|
14288
|
-
if (
|
|
14289
|
-
const
|
|
14290
|
-
if (!(!
|
|
14291
|
-
if (
|
|
14292
|
-
|
|
14291
|
+
if (E(C), b.index === null) return;
|
|
14292
|
+
const I = e[b.index], F = I.max, B = I.min;
|
|
14293
|
+
if (!(!F || !B)) {
|
|
14294
|
+
if (F === B || !m) {
|
|
14295
|
+
S(I, String(F.toFixed(2)), C);
|
|
14293
14296
|
return;
|
|
14294
14297
|
}
|
|
14295
|
-
|
|
14298
|
+
S(I, "max: " + String(F.toFixed(2)) + " min: " + String(B.toFixed(2)), C);
|
|
14296
14299
|
}
|
|
14297
14300
|
},
|
|
14298
14301
|
onMouseOut: () => {
|
|
14299
|
-
|
|
14302
|
+
_(), D({});
|
|
14300
14303
|
}
|
|
14301
14304
|
}
|
|
14302
14305
|
)
|
|
@@ -14326,15 +14329,15 @@ function $n(e, t, r) {
|
|
|
14326
14329
|
return r.min + o * i;
|
|
14327
14330
|
}
|
|
14328
14331
|
function jm({ id: e }) {
|
|
14329
|
-
const t =
|
|
14332
|
+
const t = ne((f) => f.getTrack(e)), r = We((f) => f.data.get(e)), [n, i] = le(void 0), o = We((f) => f.loading), s = Y((f) => f.getTrackDimensions)();
|
|
14330
14333
|
pe(() => {
|
|
14331
14334
|
o || !r || i(r.error);
|
|
14332
14335
|
}, [o, r]);
|
|
14333
|
-
const c =
|
|
14336
|
+
const c = ne((f) => f.getPrevHeights(e)), u = z(() => `translate(0, ${c + xe})`, [c]), l = z(
|
|
14334
14337
|
() => t && r ? Rm(t, r, s) : /* @__PURE__ */ d.jsx(d.Fragment, {}),
|
|
14335
14338
|
[t, r, s]
|
|
14336
14339
|
);
|
|
14337
|
-
return /* @__PURE__ */ d.jsx(
|
|
14340
|
+
return /* @__PURE__ */ d.jsx($c, { id: e, transform: u, error: n == null ? void 0 : n.message, loading: !(r != null && r.data) || r.data.length === 0, children: l });
|
|
14338
14341
|
}
|
|
14339
14342
|
const no = {
|
|
14340
14343
|
[K.BigWig]: {
|
|
@@ -14342,7 +14345,7 @@ const no = {
|
|
|
14342
14345
|
[Re.Dense]: Xd
|
|
14343
14346
|
},
|
|
14344
14347
|
[K.BigBed]: {
|
|
14345
|
-
[Re.Dense]:
|
|
14348
|
+
[Re.Dense]: Rc,
|
|
14346
14349
|
[Re.Squish]: _0
|
|
14347
14350
|
},
|
|
14348
14351
|
[K.Transcript]: {
|
|
@@ -14426,7 +14429,7 @@ function Fm(e) {
|
|
|
14426
14429
|
const t = document.getElementById("browserSVG");
|
|
14427
14430
|
return t ? t.querySelector(`g#wrapper-${e}`) : null;
|
|
14428
14431
|
}
|
|
14429
|
-
function
|
|
14432
|
+
function Yc(e, t, r = !0) {
|
|
14430
14433
|
const n = Fm(e);
|
|
14431
14434
|
if (!n) return;
|
|
14432
14435
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
@@ -14447,7 +14450,7 @@ function Hc(e, t, r = !0) {
|
|
|
14447
14450
|
c.href = "data:image/svg+xml;base64," + btoa(s), c.download = `${t}.svg`, c.click();
|
|
14448
14451
|
}
|
|
14449
14452
|
function qm() {
|
|
14450
|
-
const e = Dt((v) => v.open), t = Dt((v) => v.id), r = Dt((v) => v.x), n = Dt((v) => v.y), i = Dt((v) => v.setContextMenu), o = Te(null), a =
|
|
14453
|
+
const e = Dt((v) => v.open), t = Dt((v) => v.id), r = Dt((v) => v.x), n = Dt((v) => v.y), i = Dt((v) => v.setContextMenu), o = Te(null), a = ne((v) => v.getTrack(t || "")), s = We((v) => v.data.get(t || "")), c = ne((v) => v.editTrack), u = ne((v) => v.removeTrack), [l, f] = le(null);
|
|
14451
14454
|
if (pe(() => {
|
|
14452
14455
|
const v = (g) => {
|
|
14453
14456
|
o.current && !o.current.contains(g.target) && i(!1, t || "", r, n);
|
|
@@ -14457,7 +14460,7 @@ function qm() {
|
|
|
14457
14460
|
};
|
|
14458
14461
|
}, [e, i, t, r, n]), !a || !s) return null;
|
|
14459
14462
|
const h = a.displayMode, p = no[a.trackType], m = Object.keys(p), y = (v) => {
|
|
14460
|
-
t && (i(!1, t, r, n), v === "remove" ? u(t) : v === "download" ?
|
|
14463
|
+
t && (i(!1, t, r, n), v === "remove" ? u(t) : v === "download" ? Yc(t, a.title, !0) : c(t, { displayMode: v }));
|
|
14461
14464
|
};
|
|
14462
14465
|
return /* @__PURE__ */ d.jsxs(
|
|
14463
14466
|
"div",
|
|
@@ -14541,7 +14544,7 @@ function pn() {
|
|
|
14541
14544
|
return e;
|
|
14542
14545
|
}).apply(this, arguments);
|
|
14543
14546
|
}
|
|
14544
|
-
function
|
|
14547
|
+
function Gc(e, t) {
|
|
14545
14548
|
if (e == null) return {};
|
|
14546
14549
|
var r, n, i = {}, o = Object.keys(e);
|
|
14547
14550
|
for (n = 0; n < o.length; n++) t.indexOf(r = o[n]) >= 0 || (i[r] = e[r]);
|
|
@@ -14567,8 +14570,8 @@ var xr = function(e, t, r) {
|
|
|
14567
14570
|
return { left: xr((i.pageX - (n.left + yi(e).pageXOffset)) / n.width), top: xr((i.pageY - (n.top + yi(e).pageYOffset)) / n.height) };
|
|
14568
14571
|
}, Ga = function(e) {
|
|
14569
14572
|
!pr(e) && e.preventDefault();
|
|
14570
|
-
},
|
|
14571
|
-
var t = e.onMove, r = e.onKey, n =
|
|
14573
|
+
}, Xc = de.memo(function(e) {
|
|
14574
|
+
var t = e.onMove, r = e.onKey, n = Gc(e, ["onMove", "onKey"]), i = Te(null), o = gi(t), a = gi(r), s = Te(null), c = Te(!1), u = z(function() {
|
|
14572
14575
|
var p = function(v) {
|
|
14573
14576
|
Ga(v), (pr(v) ? v.touches.length > 0 : v.buttons > 0) && i.current ? o(Ya(i.current, v, s.current)) : y(!1);
|
|
14574
14577
|
}, m = function() {
|
|
@@ -14600,7 +14603,7 @@ var xr = function(e, t, r) {
|
|
|
14600
14603
|
}, [h]), de.createElement("div", pn({}, n, { onTouchStart: l, onMouseDown: l, className: "react-colorful__interactive", ref: i, onKeyDown: f, tabIndex: 0, role: "slider" }));
|
|
14601
14604
|
}), io = function(e) {
|
|
14602
14605
|
return e.filter(Boolean).join(" ");
|
|
14603
|
-
},
|
|
14606
|
+
}, Jc = function(e) {
|
|
14604
14607
|
var t = e.color, r = e.left, n = e.top, i = n === void 0 ? 0.5 : n, o = io(["react-colorful__pointer", e.className]);
|
|
14605
14608
|
return de.createElement("div", { className: o, style: { top: 100 * i + "%", left: 100 * r + "%" } }, de.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: t } }));
|
|
14606
14609
|
}, Oe = function(e, t, r) {
|
|
@@ -14633,24 +14636,24 @@ var xr = function(e, t, r) {
|
|
|
14633
14636
|
return { h: Oe(60 * (s < 0 ? s + 6 : s)), s: Oe(o ? a / o * 100 : 0), v: Oe(o / 255 * 100), a: i };
|
|
14634
14637
|
}, Um = de.memo(function(e) {
|
|
14635
14638
|
var t = e.hue, r = e.onChange, n = io(["react-colorful__hue", e.className]);
|
|
14636
|
-
return de.createElement("div", { className: n }, de.createElement(
|
|
14639
|
+
return de.createElement("div", { className: n }, de.createElement(Xc, { onMove: function(i) {
|
|
14637
14640
|
r({ h: 360 * i.left });
|
|
14638
14641
|
}, onKey: function(i) {
|
|
14639
14642
|
r({ h: xr(t + 360 * i.left, 0, 360) });
|
|
14640
|
-
}, "aria-label": "Hue", "aria-valuenow": Oe(t), "aria-valuemax": "360", "aria-valuemin": "0" }, de.createElement(
|
|
14643
|
+
}, "aria-label": "Hue", "aria-valuenow": Oe(t), "aria-valuemax": "360", "aria-valuemin": "0" }, de.createElement(Jc, { className: "react-colorful__hue-pointer", left: t / 360, color: xi({ h: t, s: 100, v: 100, a: 1 }) })));
|
|
14641
14644
|
}), Hm = de.memo(function(e) {
|
|
14642
14645
|
var t = e.hsva, r = e.onChange, n = { backgroundColor: xi({ h: t.h, s: 100, v: 100, a: 1 }) };
|
|
14643
|
-
return de.createElement("div", { className: "react-colorful__saturation", style: n }, de.createElement(
|
|
14646
|
+
return de.createElement("div", { className: "react-colorful__saturation", style: n }, de.createElement(Xc, { onMove: function(i) {
|
|
14644
14647
|
r({ s: 100 * i.left, v: 100 - 100 * i.top });
|
|
14645
14648
|
}, onKey: function(i) {
|
|
14646
14649
|
r({ s: xr(t.s + 100 * i.left, 0, 100), v: xr(t.v - 100 * i.top, 0, 100) });
|
|
14647
|
-
}, "aria-label": "Color", "aria-valuetext": "Saturation " + Oe(t.s) + "%, Brightness " + Oe(t.v) + "%" }, de.createElement(
|
|
14648
|
-
}),
|
|
14650
|
+
}, "aria-label": "Color", "aria-valuetext": "Saturation " + Oe(t.s) + "%, Brightness " + Oe(t.v) + "%" }, de.createElement(Jc, { className: "react-colorful__saturation-pointer", top: 1 - t.v / 100, left: t.s / 100, color: xi(t) })));
|
|
14651
|
+
}), Kc = function(e, t) {
|
|
14649
14652
|
if (e === t) return !0;
|
|
14650
14653
|
for (var r in e) if (e[r] !== t[r]) return !1;
|
|
14651
14654
|
return !0;
|
|
14652
14655
|
}, Ym = function(e, t) {
|
|
14653
|
-
return e.toLowerCase() === t.toLowerCase() ||
|
|
14656
|
+
return e.toLowerCase() === t.toLowerCase() || Kc(bi(e), bi(t));
|
|
14654
14657
|
};
|
|
14655
14658
|
function Gm(e, t, r) {
|
|
14656
14659
|
var n = gi(r), i = le(function() {
|
|
@@ -14663,7 +14666,7 @@ function Gm(e, t, r) {
|
|
|
14663
14666
|
}
|
|
14664
14667
|
}, [t, e]), pe(function() {
|
|
14665
14668
|
var u;
|
|
14666
|
-
|
|
14669
|
+
Kc(o, s.current.hsva) || e.equal(u = e.fromHsva(o), s.current.color) || (s.current = { hsva: o, color: u }, n(u));
|
|
14667
14670
|
}, [o, e, n]);
|
|
14668
14671
|
var c = Be(function(u) {
|
|
14669
14672
|
a(function(l) {
|
|
@@ -14672,7 +14675,7 @@ function Gm(e, t, r) {
|
|
|
14672
14675
|
}, []);
|
|
14673
14676
|
return [o, c];
|
|
14674
14677
|
}
|
|
14675
|
-
var Xm = typeof window < "u" ?
|
|
14678
|
+
var Xm = typeof window < "u" ? nu : pe, Jm = function() {
|
|
14676
14679
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
14677
14680
|
}, Xa = /* @__PURE__ */ new Map(), Km = function(e) {
|
|
14678
14681
|
Xm(function() {
|
|
@@ -14685,7 +14688,7 @@ var Xm = typeof window < "u" ? ru : pe, Jm = function() {
|
|
|
14685
14688
|
}
|
|
14686
14689
|
}, []);
|
|
14687
14690
|
}, Zm = function(e) {
|
|
14688
|
-
var t = e.className, r = e.colorModel, n = e.color, i = n === void 0 ? r.defaultColor : n, o = e.onChange, a =
|
|
14691
|
+
var t = e.className, r = e.colorModel, n = e.color, i = n === void 0 ? r.defaultColor : n, o = e.onChange, a = Gc(e, ["className", "colorModel", "color", "onChange"]), s = Te(null);
|
|
14689
14692
|
Km(s);
|
|
14690
14693
|
var c = Gm(r, i, o), u = c[0], l = c[1], f = io(["react-colorful", t]);
|
|
14691
14694
|
return de.createElement("div", pn({}, a, { ref: s, className: f }), de.createElement(Hm, { hsva: u, onChange: l }), de.createElement(Um, { hue: u.h, onChange: l, className: "react-colorful__last-control" }));
|
|
@@ -14726,7 +14729,7 @@ function Ke({ title: e, children: t }) {
|
|
|
14726
14729
|
);
|
|
14727
14730
|
}
|
|
14728
14731
|
function nv({ track: e }) {
|
|
14729
|
-
const [t, r] = le(e.title), n =
|
|
14732
|
+
const [t, r] = le(e.title), n = ne((a) => a.editTrack), i = rv(t, 500);
|
|
14730
14733
|
pe(() => {
|
|
14731
14734
|
n(e.id, { title: i });
|
|
14732
14735
|
}, [i, n, e.id]);
|
|
@@ -14784,7 +14787,7 @@ const ov = (e) => {
|
|
|
14784
14787
|
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);
|
|
14785
14788
|
return (0.299 * r + 0.587 * n + 0.114 * i) / 255 < 0.5;
|
|
14786
14789
|
};
|
|
14787
|
-
function
|
|
14790
|
+
function Zc(e, t) {
|
|
14788
14791
|
const r = e.slice(1), n = parseInt(r.slice(0, 2), 16), i = parseInt(r.slice(2, 4), 16), o = parseInt(r.slice(4, 6), 16), a = (0.299 * n + 0.587 * i + 0.114 * o) / 255;
|
|
14789
14792
|
let s;
|
|
14790
14793
|
return t ? a < 0.1 ? s = "#555555" : s = e : a < 0.1 ? s = "#999999" : a < 0.2 ? s = cr(e, 80) : a < 0.5 ? s = cr(e, 60) : a > 0.8 ? s = cr(e, -30) : s = cr(e, -20), {
|
|
@@ -14793,8 +14796,8 @@ function Kc(e, t) {
|
|
|
14793
14796
|
};
|
|
14794
14797
|
}
|
|
14795
14798
|
function av({ id: e, trackType: t }) {
|
|
14796
|
-
const r = no[t], n = Object.keys(r), i =
|
|
14797
|
-
...
|
|
14799
|
+
const r = no[t], n = Object.keys(r), i = ne((l) => l.getTrack(e)), o = i == null ? void 0 : i.displayMode, a = i == null ? void 0 : i.color, s = ne((l) => l.editTrack), c = (l) => ({
|
|
14800
|
+
...Zc(a || "#000000", l),
|
|
14798
14801
|
marginRight: "5px",
|
|
14799
14802
|
padding: "10px",
|
|
14800
14803
|
border: "none",
|
|
@@ -14836,7 +14839,7 @@ function sv(e) {
|
|
|
14836
14839
|
return Number.isNaN(e) || Number(e) === 0 ? "" : Number.isInteger(e) ? e.toString() : Number(e.toFixed(2)).toString();
|
|
14837
14840
|
}
|
|
14838
14841
|
function cv({ id: e, defaultHeight: t }) {
|
|
14839
|
-
const r =
|
|
14842
|
+
const r = ne((s) => s.editTrack), n = 20, i = 300, o = (s) => {
|
|
14840
14843
|
const c = Number(s) < n ? n : Number(s) > i ? i : Number(s);
|
|
14841
14844
|
r(e, { height: c });
|
|
14842
14845
|
}, a = (s) => {
|
|
@@ -14848,9 +14851,9 @@ function cv({ id: e, defaultHeight: t }) {
|
|
|
14848
14851
|
};
|
|
14849
14852
|
return /* @__PURE__ */ d.jsx(Ke, { title: "Height", children: /* @__PURE__ */ d.jsx(Zr, { defaultValue: t, validate: a, callback: o }) });
|
|
14850
14853
|
}
|
|
14851
|
-
var Ei = /* @__PURE__ */ ((e) => (e[e.V29 = 29] = "V29", e[e.V40 = 40] = "V40", e[e.V47 = 47] = "V47", e))(Ei || {}),
|
|
14854
|
+
var Ei = /* @__PURE__ */ ((e) => (e[e.V29 = 29] = "V29", e[e.V40 = 40] = "V40", e[e.V47 = 47] = "V47", e))(Ei || {}), eu = /* @__PURE__ */ ((e) => (e[e.V21 = 21] = "V21", e[e.V25 = 25] = "V25", e))(eu || {});
|
|
14852
14855
|
function uv({ track: e }) {
|
|
14853
|
-
const t =
|
|
14856
|
+
const t = ne((u) => u.editTrack), [r, n] = le(e.version), o = Y((u) => u.getExpandedDomain)(), a = (u) => {
|
|
14854
14857
|
n(u);
|
|
14855
14858
|
const l = Object.values(Ei).includes(u);
|
|
14856
14859
|
t(e.id, { version: u, assembly: l ? "GRCH38" : "mm10" }), e.refetch && e.refetch({
|
|
@@ -14865,7 +14868,7 @@ function uv({ track: e }) {
|
|
|
14865
14868
|
}, s = (u) => {
|
|
14866
14869
|
const l = e.color || "#000000";
|
|
14867
14870
|
return {
|
|
14868
|
-
...
|
|
14871
|
+
...Zc(l, u),
|
|
14869
14872
|
marginRight: "5px",
|
|
14870
14873
|
padding: "10px",
|
|
14871
14874
|
border: "none",
|
|
@@ -14873,7 +14876,7 @@ function uv({ track: e }) {
|
|
|
14873
14876
|
cursor: "pointer"
|
|
14874
14877
|
};
|
|
14875
14878
|
}, c = e.assembly.toLowerCase() === "grch38";
|
|
14876
|
-
return /* @__PURE__ */ d.jsx(Ke, { title: c ? "Human Assembly Version" : "Mouse Assembly Version", children: /* @__PURE__ */ d.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: Object.values(c ? Ei :
|
|
14879
|
+
return /* @__PURE__ */ d.jsx(Ke, { title: c ? "Human Assembly Version" : "Mouse Assembly Version", children: /* @__PURE__ */ d.jsx("div", { style: { display: "flex", flexDirection: "row", gap: "5px" }, children: Object.values(c ? Ei : eu).filter((u) => !isNaN(Number(u))).map((u, l) => /* @__PURE__ */ d.jsx(
|
|
14877
14880
|
"button",
|
|
14878
14881
|
{
|
|
14879
14882
|
onClick: () => a(Number(u)),
|
|
@@ -14900,7 +14903,7 @@ function fv({
|
|
|
14900
14903
|
defaultRange: t,
|
|
14901
14904
|
customRange: r
|
|
14902
14905
|
}) {
|
|
14903
|
-
const n =
|
|
14906
|
+
const n = ne((c) => c.editTrack), i = (c) => {
|
|
14904
14907
|
const u = Number(c);
|
|
14905
14908
|
if (Number.isNaN(u)) return "Invalid number";
|
|
14906
14909
|
const l = (r == null ? void 0 : r.max) || (t == null ? void 0 : t.max);
|
|
@@ -14948,7 +14951,7 @@ function fv({
|
|
|
14948
14951
|
] }) });
|
|
14949
14952
|
}
|
|
14950
14953
|
function hv({ id: e, name: t }) {
|
|
14951
|
-
const r =
|
|
14954
|
+
const r = ne((i) => i.editTrack), n = (i) => {
|
|
14952
14955
|
r(e, { geneName: i.target.value });
|
|
14953
14956
|
};
|
|
14954
14957
|
return /* @__PURE__ */ d.jsx(Ke, { title: "Highlight Gene", children: /* @__PURE__ */ d.jsx("input", { value: t, onChange: n, className: "w-full" }) });
|
|
@@ -14965,10 +14968,10 @@ const Wn = {
|
|
|
14965
14968
|
padding: "6px 12px"
|
|
14966
14969
|
};
|
|
14967
14970
|
function dv({ track: e }) {
|
|
14968
|
-
const t = Y((p) => p.getExpandedDomain), r =
|
|
14971
|
+
const t = Y((p) => p.getExpandedDomain), r = Nd((p) => p.data.get(e.id || "")), n = t(), i = e.color || "#ffffff", o = ov(i), a = cr(i, o ? 30 : -30), s = Kr(i), c = () => {
|
|
14969
14972
|
e.trackType === K.BigWig ? Im(e.id, r == null ? void 0 : r.data, n) : e.trackType === K.BigBed && Pm(e.id, r == null ? void 0 : r.data, n);
|
|
14970
14973
|
}, u = () => {
|
|
14971
|
-
|
|
14974
|
+
Yc(e.id, e.title, !0);
|
|
14972
14975
|
}, l = () => {
|
|
14973
14976
|
e.trackType === K.BigWig && (navigator.clipboard.writeText(e.url || ""), alert("Copied URL to clipboard!"));
|
|
14974
14977
|
}, [f, h] = le(-1);
|
|
@@ -15030,7 +15033,7 @@ function dv({ track: e }) {
|
|
|
15030
15033
|
] }) }) });
|
|
15031
15034
|
}
|
|
15032
15035
|
function pv({ id: e, defaultGap: t }) {
|
|
15033
|
-
const r =
|
|
15036
|
+
const r = ne((s) => s.editTrack), n = 0, i = 20, o = (s) => {
|
|
15034
15037
|
const c = Number(s) < n ? n : Number(s) > i ? i : Number(s);
|
|
15035
15038
|
r(e, { gap: c });
|
|
15036
15039
|
}, a = (s) => {
|
|
@@ -15059,7 +15062,7 @@ function vv() {
|
|
|
15059
15062
|
document.removeEventListener("keydown", f);
|
|
15060
15063
|
};
|
|
15061
15064
|
}, [r]);
|
|
15062
|
-
const u =
|
|
15065
|
+
const u = ne((f) => f.getTrack(e)), l = Te(null);
|
|
15063
15066
|
return !u || !t ? null : /* @__PURE__ */ d.jsx(
|
|
15064
15067
|
hn,
|
|
15065
15068
|
{
|
|
@@ -15114,7 +15117,7 @@ function vv() {
|
|
|
15114
15117
|
);
|
|
15115
15118
|
}
|
|
15116
15119
|
function gv({ id: e }) {
|
|
15117
|
-
const t =
|
|
15120
|
+
const t = ne((n) => n.getTrack(e));
|
|
15118
15121
|
if (!t) return "no configuration available";
|
|
15119
15122
|
const r = (() => {
|
|
15120
15123
|
switch (t.trackType) {
|
|
@@ -15180,12 +15183,12 @@ function bv() {
|
|
|
15180
15183
|
const e = Nt((p) => p.content), t = Nt((p) => p.x), r = Nt((p) => p.y), n = Nt((p) => p.show), [i, o] = le(0), [a, s] = le(0), c = Y((p) => p.svgRef), u = Te(null), l = Y((p) => p.delta), f = Y((p) => p.browserWidth), h = 15;
|
|
15181
15184
|
return pe(() => {
|
|
15182
15185
|
if (!u.current || !c || !c.current) return;
|
|
15183
|
-
const p =
|
|
15186
|
+
const p = Ic(c.current, t, r), m = p[0], y = p[1], v = u.current.getBoundingClientRect().width, g = m > f - v - h ? m - v - h : m + h, b = y;
|
|
15184
15187
|
o(g), s(b);
|
|
15185
15188
|
}, [n, e, t, r, f, c]), !n || l ? null : /* @__PURE__ */ d.jsx("g", { ref: u, id: "tooltip", transform: `translate(${i}, ${a})`, children: e });
|
|
15186
15189
|
}
|
|
15187
15190
|
function xv({ children: e }) {
|
|
15188
|
-
const t = Y((a) => a.setSvgRef), r = Te(null), n =
|
|
15191
|
+
const t = Y((a) => a.setSvgRef), r = Te(null), n = ne((a) => a.getTotalHeight()), i = Y((a) => a.browserWidth), o = We((a) => a.fetching);
|
|
15189
15192
|
return pe(() => {
|
|
15190
15193
|
t(r);
|
|
15191
15194
|
}, [t]), /* @__PURE__ */ d.jsxs(
|
|
@@ -15216,7 +15219,7 @@ function xv({ children: e }) {
|
|
|
15216
15219
|
);
|
|
15217
15220
|
}
|
|
15218
15221
|
function Ev() {
|
|
15219
|
-
const e = Y((m) => m.browserWidth), t = Y((m) => m.marginWidth), r = xe, n =
|
|
15222
|
+
const e = Y((m) => m.browserWidth), t = Y((m) => m.marginWidth), r = xe, n = ne((m) => m.getTotalHeight()) + xe, [i, o] = le([0, 0]), [a, s] = le(!1), c = Y((m) => m.svgRef), u = Y((m) => m.domain), l = Y((m) => m.setDomain), f = (m) => {
|
|
15220
15223
|
if (!c || !c.current) return null;
|
|
15221
15224
|
const y = Ja(m, c.current);
|
|
15222
15225
|
y && (o([y.x, y.x]), s(!0));
|
|
@@ -15281,10 +15284,10 @@ function wv() {
|
|
|
15281
15284
|
pe(() => {
|
|
15282
15285
|
i !== 0 || e || n(t());
|
|
15283
15286
|
}, [i, t, e]);
|
|
15284
|
-
const o = Y((h) => h.highlights), a =
|
|
15287
|
+
const o = Y((h) => h.highlights), a = ne((h) => h.getTotalHeight()) + xe, s = Y((h) => h.marginWidth), c = Y((h) => h.getTrackDimensions), { totalWidth: u, sideWidth: l, viewWidth: f } = c();
|
|
15285
15288
|
return /* @__PURE__ */ d.jsxs("g", { id: "highlights", width: f + s, height: a, transform: `translate(${-l}, 0)`, children: [
|
|
15286
15289
|
/* @__PURE__ */ d.jsx("defs", { children: /* @__PURE__ */ d.jsx("clipPath", { id: "highlight-clip", children: /* @__PURE__ */ d.jsx("rect", { width: f, height: a, transform: `translate(${f + s}, 0)` }) }) }),
|
|
15287
|
-
/* @__PURE__ */ d.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ d.jsx(
|
|
15290
|
+
/* @__PURE__ */ d.jsx("g", { id: "highlights-clipped", clipPath: "url(#highlight-clip)", children: /* @__PURE__ */ d.jsx(Vc, { id: "highlights", children: o.map((h) => {
|
|
15288
15291
|
let p = h.domain.chromosome;
|
|
15289
15292
|
return p || (p = r.chromosome), p !== r.chromosome ? null : /* @__PURE__ */ d.jsx(
|
|
15290
15293
|
_v,
|
|
@@ -15338,11 +15341,11 @@ function Wv({ browserStore: e, trackStore: t }) {
|
|
|
15338
15341
|
}),
|
|
15339
15342
|
[e, t, r, n, i, o, a]
|
|
15340
15343
|
), c = t((u) => u.ids);
|
|
15341
|
-
return /* @__PURE__ */ d.jsxs(
|
|
15342
|
-
/* @__PURE__ */ d.jsx(
|
|
15344
|
+
return /* @__PURE__ */ d.jsxs(ld, { value: s, children: [
|
|
15345
|
+
/* @__PURE__ */ d.jsx(Md, {}),
|
|
15343
15346
|
/* @__PURE__ */ d.jsxs(xv, { children: [
|
|
15344
15347
|
/* @__PURE__ */ d.jsx(Ev, {}),
|
|
15345
|
-
/* @__PURE__ */ d.jsx(
|
|
15348
|
+
/* @__PURE__ */ d.jsx($c, { id: "ruler", transform: "translate(0, 0)", loading: !1, error: void 0, children: /* @__PURE__ */ d.jsx(d0, {}) }),
|
|
15346
15349
|
c.map((u) => /* @__PURE__ */ d.jsx(jm, { id: u }, u)),
|
|
15347
15350
|
/* @__PURE__ */ d.jsx(wv, {}),
|
|
15348
15351
|
/* @__PURE__ */ d.jsx(bv, {})
|
|
@@ -15498,7 +15501,7 @@ const Tv = new mc({
|
|
|
15498
15501
|
connectToDevTools: !0
|
|
15499
15502
|
});
|
|
15500
15503
|
function Uv({ children: e }) {
|
|
15501
|
-
return /* @__PURE__ */ d.jsx(
|
|
15504
|
+
return /* @__PURE__ */ d.jsx(qh, { client: Tv, children: e });
|
|
15502
15505
|
}
|
|
15503
15506
|
function kv(e, t, r, n) {
|
|
15504
15507
|
return n ? `M ${e} ${r * 0.1} L ${e + t} ${r / 2} L ${e} ${r * 0.9}` : `M ${e + t} ${r * 0.1} L ${e} ${r / 2} L ${e + t} ${r * 0.9}`;
|
|
@@ -15568,7 +15571,7 @@ function Hv({
|
|
|
15568
15571
|
assembly: e,
|
|
15569
15572
|
currentDomain: t
|
|
15570
15573
|
}) {
|
|
15571
|
-
const i = { ...t, color: "rgba(50,50,255,0.75)" }, o = "translate(0,0)", { data: a, loading: s, error: c } =
|
|
15574
|
+
const i = { ...t, color: "rgba(50,50,255,0.75)" }, o = "translate(0,0)", { data: a, loading: s, error: c } = Xh(jv, {
|
|
15572
15575
|
variables: {
|
|
15573
15576
|
assembly: e,
|
|
15574
15577
|
chromosome: t.chromosome || ""
|