@genome-spy/app 0.41.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index--cKb-dKG.js +615 -0
- package/dist/{index-gn8bhQ8w.js → index-d7k3kkin.js} +365 -366
- package/dist/index.es.js +5930 -5809
- package/dist/index.js +272 -238
- package/package.json +3 -3
- package/dist/index-Cbz74kpR.js +0 -638
@@ -1,23 +1,23 @@
|
|
1
1
|
import { b as Q } from "./index-1QVesMzU.js";
|
2
|
-
import { _ as
|
2
|
+
import { _ as Gn, L as Yn } from "./index-LD6yPc3X.js";
|
3
3
|
import { L as nr } from "./__vite-browser-external-ENoMJThg.js";
|
4
4
|
import { R as ir } from "./remoteFile-Ur-gRKsH.js";
|
5
5
|
import "./_commonjsHelpers-QtkX90xp.js";
|
6
|
-
const
|
6
|
+
const st = BigInt(32);
|
7
7
|
function rr(e, n, t) {
|
8
8
|
const i = +!!t, r = +!t;
|
9
|
-
return BigInt(e.getInt32(n, t) * r + e.getInt32(n + 4, t) * i) <<
|
9
|
+
return BigInt(e.getInt32(n, t) * r + e.getInt32(n + 4, t) * i) << st | BigInt(e.getUint32(n, t) * i + e.getUint32(n + 4, t) * r);
|
10
10
|
}
|
11
11
|
function ar(e, n, t) {
|
12
12
|
const i = e.getUint32(n, t), r = e.getUint32(n + 4, t), a = +!!t, o = +!t;
|
13
|
-
return BigInt(i * o + r * a) <<
|
13
|
+
return BigInt(i * o + r * a) << st | BigInt(i * a + r * o);
|
14
14
|
}
|
15
15
|
function or(e, n, t, i) {
|
16
|
-
const r = Number(t >>
|
16
|
+
const r = Number(t >> st), a = Number(t & BigInt(4294967295));
|
17
17
|
i ? (e.setInt32(n + 4, r, i), e.setUint32(n, a, i)) : (e.setInt32(n, r, i), e.setUint32(n + 4, a, i));
|
18
18
|
}
|
19
19
|
function sr(e, n, t, i) {
|
20
|
-
const r = Number(t >>
|
20
|
+
const r = Number(t >> st), a = Number(t & BigInt(4294967295));
|
21
21
|
i ? (e.setUint32(n + 4, r, i), e.setUint32(n, a, i)) : (e.setUint32(n, r, i), e.setUint32(n + 4, a, i));
|
22
22
|
}
|
23
23
|
"getBigInt64" in DataView || (DataView.prototype.getBigInt64 = function(e, n) {
|
@@ -831,13 +831,13 @@ class q {
|
|
831
831
|
}
|
832
832
|
}
|
833
833
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
834
|
-
const fr = 4,
|
834
|
+
const fr = 4, Qt = 0, en = 1, ur = 2;
|
835
835
|
function ye(e) {
|
836
836
|
let n = e.length;
|
837
837
|
for (; --n >= 0; )
|
838
838
|
e[n] = 0;
|
839
839
|
}
|
840
|
-
const hr = 0,
|
840
|
+
const hr = 0, Kn = 1, cr = 2, dr = 3, pr = 258, Zt = 29, Ze = 256, Oe = Ze + 1 + Zt, _e = 30, xt = 19, Wn = 2 * Oe + 1, se = 15, ht = 16, _r = 7, Mt = 256, Xn = 16, qn = 17, Jn = 18, Tt = (
|
841
841
|
/* extra bits for each length code */
|
842
842
|
new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0])
|
843
843
|
), nt = (
|
@@ -846,29 +846,29 @@ const hr = 0, Wn = 1, cr = 2, dr = 3, pr = 258, xt = 29, Ze = 256, Oe = Ze + 1 +
|
|
846
846
|
), br = (
|
847
847
|
/* extra bits for each bit length code */
|
848
848
|
new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7])
|
849
|
-
),
|
849
|
+
), Qn = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), gr = 512, W = new Array((Oe + 2) * 2);
|
850
850
|
ye(W);
|
851
|
-
const
|
852
|
-
ye(
|
851
|
+
const Ie = new Array(_e * 2);
|
852
|
+
ye(Ie);
|
853
853
|
const ze = new Array(gr);
|
854
854
|
ye(ze);
|
855
855
|
const Re = new Array(pr - dr + 1);
|
856
856
|
ye(Re);
|
857
|
-
const
|
858
|
-
ye(
|
857
|
+
const Ht = new Array(Zt);
|
858
|
+
ye(Ht);
|
859
859
|
const it = new Array(_e);
|
860
860
|
ye(it);
|
861
|
-
function
|
861
|
+
function ct(e, n, t, i, r) {
|
862
862
|
this.static_tree = e, this.extra_bits = n, this.extra_base = t, this.elems = i, this.max_length = r, this.has_stree = e && e.length;
|
863
863
|
}
|
864
|
-
let ti, ni
|
865
|
-
function
|
864
|
+
let ei, ti, ni;
|
865
|
+
function dt(e, n) {
|
866
866
|
this.dyn_tree = e, this.max_code = 0, this.stat_desc = n;
|
867
867
|
}
|
868
|
-
const
|
868
|
+
const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
869
869
|
e.pending_buf[e.pending++] = n & 255, e.pending_buf[e.pending++] = n >>> 8 & 255;
|
870
870
|
}, D = (e, n, t) => {
|
871
|
-
e.bi_valid >
|
871
|
+
e.bi_valid > ht - t ? (e.bi_buf |= n << e.bi_valid & 65535, Be(e, e.bi_buf), e.bi_buf = n >> ht - e.bi_valid, e.bi_valid += t - ht) : (e.bi_buf |= n << e.bi_valid & 65535, e.bi_valid += t);
|
872
872
|
}, j = (e, n, t) => {
|
873
873
|
D(
|
874
874
|
e,
|
@@ -876,7 +876,7 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
876
876
|
t[n * 2 + 1]
|
877
877
|
/*.Len*/
|
878
878
|
);
|
879
|
-
},
|
879
|
+
}, ri = (e, n) => {
|
880
880
|
let t = 0;
|
881
881
|
do
|
882
882
|
t |= e & 1, e >>>= 1, t <<= 1;
|
@@ -889,7 +889,7 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
889
889
|
let s, f, d, c, h, _, g = 0;
|
890
890
|
for (c = 0; c <= se; c++)
|
891
891
|
e.bl_count[c] = 0;
|
892
|
-
for (t[e.heap[e.heap_max] * 2 + 1] = 0, s = e.heap_max + 1; s <
|
892
|
+
for (t[e.heap[e.heap_max] * 2 + 1] = 0, s = e.heap_max + 1; s < Wn; s++)
|
893
893
|
f = e.heap[s], c = t[t[f * 2 + 1] * 2 + 1] + 1, c > u && (c = u, g++), t[f * 2 + 1] = c, !(f > i) && (e.bl_count[c]++, h = 0, f >= l && (h = o[f - l]), _ = t[f * 2], e.opt_len += _ * (c + h), a && (e.static_len += _ * (r[f * 2 + 1] + h)));
|
894
894
|
if (g !== 0) {
|
895
895
|
do {
|
@@ -901,20 +901,20 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
901
901
|
for (f = e.bl_count[c]; f !== 0; )
|
902
902
|
d = e.heap[--s], !(d > i) && (t[d * 2 + 1] !== c && (e.opt_len += (c - t[d * 2 + 1]) * t[d * 2], t[d * 2 + 1] = c), f--);
|
903
903
|
}
|
904
|
-
},
|
904
|
+
}, ai = (e, n, t) => {
|
905
905
|
const i = new Array(se + 1);
|
906
906
|
let r = 0, a, o;
|
907
907
|
for (a = 1; a <= se; a++)
|
908
908
|
r = r + t[a - 1] << 1, i[a] = r;
|
909
909
|
for (o = 0; o <= n; o++) {
|
910
910
|
let l = e[o * 2 + 1];
|
911
|
-
l !== 0 && (e[o * 2] =
|
911
|
+
l !== 0 && (e[o * 2] = ri(i[l]++, l));
|
912
912
|
}
|
913
913
|
}, yr = () => {
|
914
914
|
let e, n, t, i, r;
|
915
915
|
const a = new Array(se + 1);
|
916
|
-
for (t = 0, i = 0; i <
|
917
|
-
for (
|
916
|
+
for (t = 0, i = 0; i < Zt - 1; i++)
|
917
|
+
for (Ht[i] = t, e = 0; e < 1 << Tt[i]; e++)
|
918
918
|
Re[t++] = i;
|
919
919
|
for (Re[t - 1] = i, r = 0, i = 0; i < 16; i++)
|
920
920
|
for (it[i] = r, e = 0; e < 1 << nt[i]; e++)
|
@@ -932,45 +932,45 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
932
932
|
W[e * 2 + 1] = 7, e++, a[7]++;
|
933
933
|
for (; e <= 287; )
|
934
934
|
W[e * 2 + 1] = 8, e++, a[8]++;
|
935
|
-
for (
|
936
|
-
|
937
|
-
|
938
|
-
},
|
935
|
+
for (ai(W, Oe + 1, a), e = 0; e < _e; e++)
|
936
|
+
Ie[e * 2 + 1] = 5, Ie[e * 2] = ri(e, 5);
|
937
|
+
ei = new ct(W, Tt, Ze + 1, Oe, se), ti = new ct(Ie, nt, 0, _e, se), ni = new ct(new Array(0), br, 0, xt, _r);
|
938
|
+
}, oi = (e) => {
|
939
939
|
let n;
|
940
940
|
for (n = 0; n < Oe; n++)
|
941
941
|
e.dyn_ltree[n * 2] = 0;
|
942
942
|
for (n = 0; n < _e; n++)
|
943
943
|
e.dyn_dtree[n * 2] = 0;
|
944
|
-
for (n = 0; n <
|
944
|
+
for (n = 0; n < xt; n++)
|
945
945
|
e.bl_tree[n * 2] = 0;
|
946
|
-
e.dyn_ltree[
|
947
|
-
},
|
946
|
+
e.dyn_ltree[Mt * 2] = 1, e.opt_len = e.static_len = 0, e.sym_next = e.matches = 0;
|
947
|
+
}, si = (e) => {
|
948
948
|
e.bi_valid > 8 ? Be(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
949
|
-
},
|
949
|
+
}, tn = (e, n, t, i) => {
|
950
950
|
const r = n * 2, a = t * 2;
|
951
951
|
return e[r] < e[a] || e[r] === e[a] && i[n] <= i[t];
|
952
|
-
},
|
952
|
+
}, pt = (e, n, t) => {
|
953
953
|
const i = e.heap[t];
|
954
954
|
let r = t << 1;
|
955
|
-
for (; r <= e.heap_len && (r < e.heap_len &&
|
955
|
+
for (; r <= e.heap_len && (r < e.heap_len && tn(n, e.heap[r + 1], e.heap[r], e.depth) && r++, !tn(n, i, e.heap[r], e.depth)); )
|
956
956
|
e.heap[t] = e.heap[r], t = r, r <<= 1;
|
957
957
|
e.heap[t] = i;
|
958
|
-
},
|
958
|
+
}, nn = (e, n, t) => {
|
959
959
|
let i, r, a = 0, o, l;
|
960
960
|
if (e.sym_next !== 0)
|
961
961
|
do
|
962
|
-
i = e.pending_buf[e.sym_buf + a++] & 255, i += (e.pending_buf[e.sym_buf + a++] & 255) << 8, r = e.pending_buf[e.sym_buf + a++], i === 0 ? j(e, r, n) : (o = Re[r], j(e, o + Ze + 1, n), l =
|
962
|
+
i = e.pending_buf[e.sym_buf + a++] & 255, i += (e.pending_buf[e.sym_buf + a++] & 255) << 8, r = e.pending_buf[e.sym_buf + a++], i === 0 ? j(e, r, n) : (o = Re[r], j(e, o + Ze + 1, n), l = Tt[o], l !== 0 && (r -= Ht[o], D(e, r, l)), i--, o = ii(i), j(e, o, t), l = nt[o], l !== 0 && (i -= it[o], D(e, i, l)));
|
963
963
|
while (a < e.sym_next);
|
964
|
-
j(e,
|
965
|
-
},
|
964
|
+
j(e, Mt, n);
|
965
|
+
}, At = (e, n) => {
|
966
966
|
const t = n.dyn_tree, i = n.stat_desc.static_tree, r = n.stat_desc.has_stree, a = n.stat_desc.elems;
|
967
967
|
let o, l, u = -1, s;
|
968
|
-
for (e.heap_len = 0, e.heap_max =
|
968
|
+
for (e.heap_len = 0, e.heap_max = Wn, o = 0; o < a; o++)
|
969
969
|
t[o * 2] !== 0 ? (e.heap[++e.heap_len] = u = o, e.depth[o] = 0) : t[o * 2 + 1] = 0;
|
970
970
|
for (; e.heap_len < 2; )
|
971
971
|
s = e.heap[++e.heap_len] = u < 2 ? ++u : 0, t[s * 2] = 1, e.depth[s] = 0, e.opt_len--, r && (e.static_len -= i[s * 2 + 1]);
|
972
972
|
for (n.max_code = u, o = e.heap_len >> 1; o >= 1; o--)
|
973
|
-
|
973
|
+
pt(e, t, o);
|
974
974
|
s = a;
|
975
975
|
do
|
976
976
|
o = e.heap[
|
@@ -979,7 +979,7 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
979
979
|
], e.heap[
|
980
980
|
1
|
981
981
|
/*SMALLEST*/
|
982
|
-
] = e.heap[e.heap_len--],
|
982
|
+
] = e.heap[e.heap_len--], pt(
|
983
983
|
e,
|
984
984
|
t,
|
985
985
|
1
|
@@ -990,7 +990,7 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
990
990
|
], e.heap[--e.heap_max] = o, e.heap[--e.heap_max] = l, t[s * 2] = t[o * 2] + t[l * 2], e.depth[s] = (e.depth[o] >= e.depth[l] ? e.depth[o] : e.depth[l]) + 1, t[o * 2 + 1] = t[l * 2 + 1] = s, e.heap[
|
991
991
|
1
|
992
992
|
/*SMALLEST*/
|
993
|
-
] = s++,
|
993
|
+
] = s++, pt(
|
994
994
|
e,
|
995
995
|
t,
|
996
996
|
1
|
@@ -1000,12 +1000,12 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
1000
1000
|
e.heap[--e.heap_max] = e.heap[
|
1001
1001
|
1
|
1002
1002
|
/*SMALLEST*/
|
1003
|
-
], mr(e, n),
|
1004
|
-
},
|
1003
|
+
], mr(e, n), ai(t, u, e.bl_count);
|
1004
|
+
}, rn = (e, n, t) => {
|
1005
1005
|
let i, r = -1, a, o = n[0 * 2 + 1], l = 0, u = 7, s = 4;
|
1006
1006
|
for (o === 0 && (u = 138, s = 3), n[(t + 1) * 2 + 1] = 65535, i = 0; i <= t; i++)
|
1007
|
-
a = o, o = n[(i + 1) * 2 + 1], !(++l < u && a === o) && (l < s ? e.bl_tree[a * 2] += l : a !== 0 ? (a !== r && e.bl_tree[a * 2]++, e.bl_tree[
|
1008
|
-
},
|
1007
|
+
a = o, o = n[(i + 1) * 2 + 1], !(++l < u && a === o) && (l < s ? e.bl_tree[a * 2] += l : a !== 0 ? (a !== r && e.bl_tree[a * 2]++, e.bl_tree[Xn * 2]++) : l <= 10 ? e.bl_tree[qn * 2]++ : e.bl_tree[Jn * 2]++, l = 0, r = a, o === 0 ? (u = 138, s = 3) : a === o ? (u = 6, s = 3) : (u = 7, s = 4));
|
1008
|
+
}, an = (e, n, t) => {
|
1009
1009
|
let i, r = -1, a, o = n[0 * 2 + 1], l = 0, u = 7, s = 4;
|
1010
1010
|
for (o === 0 && (u = 138, s = 3), i = 0; i <= t; i++)
|
1011
1011
|
if (a = o, o = n[(i + 1) * 2 + 1], !(++l < u && a === o)) {
|
@@ -1014,45 +1014,45 @@ const ri = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
|
|
1014
1014
|
j(e, a, e.bl_tree);
|
1015
1015
|
while (--l !== 0);
|
1016
1016
|
else
|
1017
|
-
a !== 0 ? (a !== r && (j(e, a, e.bl_tree), l--), j(e,
|
1017
|
+
a !== 0 ? (a !== r && (j(e, a, e.bl_tree), l--), j(e, Xn, e.bl_tree), D(e, l - 3, 2)) : l <= 10 ? (j(e, qn, e.bl_tree), D(e, l - 3, 3)) : (j(e, Jn, e.bl_tree), D(e, l - 11, 7));
|
1018
1018
|
l = 0, r = a, o === 0 ? (u = 138, s = 3) : a === o ? (u = 6, s = 3) : (u = 7, s = 4);
|
1019
1019
|
}
|
1020
1020
|
}, vr = (e) => {
|
1021
1021
|
let n;
|
1022
|
-
for (
|
1022
|
+
for (rn(e, e.dyn_ltree, e.l_desc.max_code), rn(e, e.dyn_dtree, e.d_desc.max_code), At(e, e.bl_desc), n = xt - 1; n >= 3 && e.bl_tree[Qn[n] * 2 + 1] === 0; n--)
|
1023
1023
|
;
|
1024
1024
|
return e.opt_len += 3 * (n + 1) + 5 + 5 + 4, n;
|
1025
1025
|
}, kr = (e, n, t, i) => {
|
1026
1026
|
let r;
|
1027
1027
|
for (D(e, n - 257, 5), D(e, t - 1, 5), D(e, i - 4, 4), r = 0; r < i; r++)
|
1028
|
-
D(e, e.bl_tree[
|
1029
|
-
|
1028
|
+
D(e, e.bl_tree[Qn[r] * 2 + 1], 3);
|
1029
|
+
an(e, e.dyn_ltree, n - 1), an(e, e.dyn_dtree, t - 1);
|
1030
1030
|
}, $r = (e) => {
|
1031
1031
|
let n = 4093624447, t;
|
1032
1032
|
for (t = 0; t <= 31; t++, n >>>= 1)
|
1033
1033
|
if (n & 1 && e.dyn_ltree[t * 2] !== 0)
|
1034
|
-
return
|
1034
|
+
return Qt;
|
1035
1035
|
if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0)
|
1036
|
-
return
|
1036
|
+
return en;
|
1037
1037
|
for (t = 32; t < Ze; t++)
|
1038
1038
|
if (e.dyn_ltree[t * 2] !== 0)
|
1039
|
-
return
|
1040
|
-
return
|
1039
|
+
return en;
|
1040
|
+
return Qt;
|
1041
1041
|
};
|
1042
|
-
let
|
1042
|
+
let on = !1;
|
1043
1043
|
const Er = (e) => {
|
1044
|
-
|
1045
|
-
},
|
1046
|
-
D(e, (hr << 1) + (i ? 1 : 0), 3),
|
1044
|
+
on || (yr(), on = !0), e.l_desc = new dt(e.dyn_ltree, ei), e.d_desc = new dt(e.dyn_dtree, ti), e.bl_desc = new dt(e.bl_tree, ni), e.bi_buf = 0, e.bi_valid = 0, oi(e);
|
1045
|
+
}, li = (e, n, t, i) => {
|
1046
|
+
D(e, (hr << 1) + (i ? 1 : 0), 3), si(e), Be(e, t), Be(e, ~t), t && e.pending_buf.set(e.window.subarray(n, n + t), e.pending), e.pending += t;
|
1047
1047
|
}, Cr = (e) => {
|
1048
|
-
D(e,
|
1048
|
+
D(e, Kn << 1, 3), j(e, Mt, W), wr(e);
|
1049
1049
|
}, Sr = (e, n, t, i) => {
|
1050
1050
|
let r, a, o = 0;
|
1051
|
-
e.level > 0 ? (e.strm.data_type === ur && (e.strm.data_type = $r(e)),
|
1052
|
-
}, Nr = (e, n, t) => (e.pending_buf[e.sym_buf + e.sym_next++] = n, e.pending_buf[e.sym_buf + e.sym_next++] = n >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = t, n === 0 ? e.dyn_ltree[t * 2]++ : (e.matches++, n--, e.dyn_ltree[(Re[t] + Ze + 1) * 2]++, e.dyn_dtree[
|
1053
|
-
var
|
1054
|
-
_tr_init:
|
1055
|
-
_tr_stored_block:
|
1051
|
+
e.level > 0 ? (e.strm.data_type === ur && (e.strm.data_type = $r(e)), At(e, e.l_desc), At(e, e.d_desc), o = vr(e), r = e.opt_len + 3 + 7 >>> 3, a = e.static_len + 3 + 7 >>> 3, a <= r && (r = a)) : r = a = t + 5, t + 4 <= r && n !== -1 ? li(e, n, t, i) : e.strategy === fr || a === r ? (D(e, (Kn << 1) + (i ? 1 : 0), 3), nn(e, W, Ie)) : (D(e, (cr << 1) + (i ? 1 : 0), 3), kr(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, o + 1), nn(e, e.dyn_ltree, e.dyn_dtree)), oi(e), i && si(e);
|
1052
|
+
}, Nr = (e, n, t) => (e.pending_buf[e.sym_buf + e.sym_next++] = n, e.pending_buf[e.sym_buf + e.sym_next++] = n >> 8, e.pending_buf[e.sym_buf + e.sym_next++] = t, n === 0 ? e.dyn_ltree[t * 2]++ : (e.matches++, n--, e.dyn_ltree[(Re[t] + Ze + 1) * 2]++, e.dyn_dtree[ii(n) * 2]++), e.sym_next === e.sym_end);
|
1053
|
+
var Ir = Er, Tr = li, Ar = Sr, Or = Nr, zr = Cr, Rr = {
|
1054
|
+
_tr_init: Ir,
|
1055
|
+
_tr_stored_block: Tr,
|
1056
1056
|
_tr_flush_block: Ar,
|
1057
1057
|
_tr_tally: Or,
|
1058
1058
|
_tr_align: zr
|
@@ -1144,17 +1144,17 @@ var R = Vr, ge = {
|
|
1144
1144
|
Z_DEFLATED: 8
|
1145
1145
|
//Z_NULL: null // Use -1 or null inline, depending on var type
|
1146
1146
|
};
|
1147
|
-
const { _tr_init: Lr, _tr_stored_block:
|
1147
|
+
const { _tr_init: Lr, _tr_stored_block: Ot, _tr_flush_block: Fr, _tr_tally: te, _tr_align: Pr } = Rr, {
|
1148
1148
|
Z_NO_FLUSH: ne,
|
1149
1149
|
Z_PARTIAL_FLUSH: Zr,
|
1150
1150
|
Z_FULL_FLUSH: xr,
|
1151
1151
|
Z_FINISH: F,
|
1152
|
-
Z_BLOCK:
|
1152
|
+
Z_BLOCK: sn,
|
1153
1153
|
Z_OK: B,
|
1154
|
-
Z_STREAM_END:
|
1154
|
+
Z_STREAM_END: ln,
|
1155
1155
|
Z_STREAM_ERROR: G,
|
1156
1156
|
Z_DATA_ERROR: Mr,
|
1157
|
-
Z_BUF_ERROR:
|
1157
|
+
Z_BUF_ERROR: _t,
|
1158
1158
|
Z_DEFAULT_COMPRESSION: Hr,
|
1159
1159
|
Z_FILTERED: jr,
|
1160
1160
|
Z_HUFFMAN_ONLY: We,
|
@@ -1162,8 +1162,8 @@ const { _tr_init: Lr, _tr_stored_block: Rt, _tr_flush_block: Fr, _tr_tally: te,
|
|
1162
1162
|
Z_FIXED: Yr,
|
1163
1163
|
Z_DEFAULT_STRATEGY: Kr,
|
1164
1164
|
Z_UNKNOWN: Wr,
|
1165
|
-
Z_DEFLATED:
|
1166
|
-
} = xe, Xr = 9, qr = 15, Jr = 8, Qr = 29, ea = 256,
|
1165
|
+
Z_DEFLATED: lt
|
1166
|
+
} = xe, Xr = 9, qr = 15, Jr = 8, Qr = 29, ea = 256, zt = ea + 1 + Qr, ta = 30, na = 19, ia = 2 * zt + 1, ra = 15, T = 3, ee = 258, Y = ee + T + 1, aa = 32, we = 42, jt = 57, Rt = 69, Bt = 73, Ut = 91, Dt = 103, le = 113, Se = 666, U = 1, ve = 2, ue = 3, ke = 4, oa = 3, fe = (e, n) => (e.msg = ge[n], n), fn = (e) => e * 2 - (e > 4 ? 9 : 0), J = (e) => {
|
1167
1167
|
let n = e.length;
|
1168
1168
|
for (; --n >= 0; )
|
1169
1169
|
e[n] = 0;
|
@@ -1189,10 +1189,10 @@ const V = (e) => {
|
|
1189
1189
|
e.pending_buf[e.pending++] = n;
|
1190
1190
|
}, Ce = (e, n) => {
|
1191
1191
|
e.pending_buf[e.pending++] = n >>> 8 & 255, e.pending_buf[e.pending++] = n & 255;
|
1192
|
-
},
|
1192
|
+
}, Vt = (e, n, t, i) => {
|
1193
1193
|
let r = e.avail_in;
|
1194
1194
|
return r > i && (r = i), r === 0 ? 0 : (e.avail_in -= r, n.set(e.input.subarray(e.next_in, e.next_in + r), t), e.state.wrap === 1 ? e.adler = Ue(e.adler, n, r, t) : e.state.wrap === 2 && (e.adler = R(e.adler, n, r, t)), e.next_in += r, e.total_in += r, r);
|
1195
|
-
},
|
1195
|
+
}, fi = (e, n) => {
|
1196
1196
|
let t = e.max_chain_length, i = e.strstart, r, a, o = e.prev_length, l = e.nice_match;
|
1197
1197
|
const u = e.strstart > e.w_size - Y ? e.strstart - (e.w_size - Y) : 0, s = e.window, f = e.w_mask, d = e.prev, c = e.strstart + ee;
|
1198
1198
|
let h = s[i + o - 1], _ = s[i + o];
|
@@ -1217,19 +1217,19 @@ const V = (e) => {
|
|
1217
1217
|
do {
|
1218
1218
|
if (i = e.window_size - e.lookahead - e.strstart, e.strstart >= n + (n - Y) && (e.window.set(e.window.subarray(n, n + n - i), 0), e.match_start -= n, e.strstart -= n, e.block_start -= n, e.insert > e.strstart && (e.insert = e.strstart), sa(e), i += n), e.strm.avail_in === 0)
|
1219
1219
|
break;
|
1220
|
-
if (t =
|
1221
|
-
for (r = e.strstart - e.insert, e.ins_h = e.window[r], e.ins_h = ie(e, e.ins_h, e.window[r + 1]); e.insert && (e.ins_h = ie(e, e.ins_h, e.window[r +
|
1220
|
+
if (t = Vt(e.strm, e.window, e.strstart + e.lookahead, i), e.lookahead += t, e.lookahead + e.insert >= T)
|
1221
|
+
for (r = e.strstart - e.insert, e.ins_h = e.window[r], e.ins_h = ie(e, e.ins_h, e.window[r + 1]); e.insert && (e.ins_h = ie(e, e.ins_h, e.window[r + T - 1]), e.prev[r & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = r, r++, e.insert--, !(e.lookahead + e.insert < T)); )
|
1222
1222
|
;
|
1223
1223
|
} while (e.lookahead < Y && e.strm.avail_in !== 0);
|
1224
|
-
},
|
1224
|
+
}, ui = (e, n) => {
|
1225
1225
|
let t = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, i, r, a, o = 0, l = e.strm.avail_in;
|
1226
1226
|
do {
|
1227
1227
|
if (i = 65535, a = e.bi_valid + 42 >> 3, e.strm.avail_out < a || (a = e.strm.avail_out - a, r = e.strstart - e.block_start, i > r + e.strm.avail_in && (i = r + e.strm.avail_in), i > a && (i = a), i < t && (i === 0 && n !== F || n === ne || i !== r + e.strm.avail_in)))
|
1228
1228
|
break;
|
1229
|
-
o = n === F && i === r + e.strm.avail_in ? 1 : 0,
|
1229
|
+
o = n === F && i === r + e.strm.avail_in ? 1 : 0, Ot(e, 0, 0, o), e.pending_buf[e.pending - 4] = i, e.pending_buf[e.pending - 3] = i >> 8, e.pending_buf[e.pending - 2] = ~i, e.pending_buf[e.pending - 1] = ~i >> 8, V(e.strm), r && (r > i && (r = i), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + r), e.strm.next_out), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r, e.block_start += r, i -= r), i && (Vt(e.strm, e.strm.output, e.strm.next_out, i), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i);
|
1230
1230
|
} while (o === 0);
|
1231
|
-
return l -= e.strm.avail_in, l && (l >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= l && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - l, e.strm.next_in), e.strstart), e.strstart += l, e.insert += l > e.w_size - e.insert ? e.w_size - e.insert : l), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ke : n !== ne && n !== F && e.strm.avail_in === 0 && e.strstart === e.block_start ? ve : (a = e.window_size - e.strstart, e.strm.avail_in > a && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (
|
1232
|
-
},
|
1231
|
+
return l -= e.strm.avail_in, l && (l >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= l && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - l, e.strm.next_in), e.strstart), e.strstart += l, e.insert += l > e.w_size - e.insert ? e.w_size - e.insert : l), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ke : n !== ne && n !== F && e.strm.avail_in === 0 && e.strstart === e.block_start ? ve : (a = e.window_size - e.strstart, e.strm.avail_in > a && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (Vt(e.strm, e.window, e.strstart, a), e.strstart += a, e.insert += a > e.w_size - e.insert ? e.w_size - e.insert : a), e.high_water < e.strstart && (e.high_water = e.strstart), a = e.bi_valid + 42 >> 3, a = e.pending_buf_size - a > 65535 ? 65535 : e.pending_buf_size - a, t = a > e.w_size ? e.w_size : a, r = e.strstart - e.block_start, (r >= t || (r || n === F) && n !== ne && e.strm.avail_in === 0 && r <= a) && (i = r > a ? a : r, o = n === F && e.strm.avail_in === 0 && i === r ? 1 : 0, Ot(e, e.block_start, i, o), e.block_start += i, V(e.strm)), o ? ue : U);
|
1232
|
+
}, bt = (e, n) => {
|
1233
1233
|
let t, i;
|
1234
1234
|
for (; ; ) {
|
1235
1235
|
if (e.lookahead < Y) {
|
@@ -1238,11 +1238,11 @@ const V = (e) => {
|
|
1238
1238
|
if (e.lookahead === 0)
|
1239
1239
|
break;
|
1240
1240
|
}
|
1241
|
-
if (t = 0, e.lookahead >=
|
1242
|
-
if (i = te(e, e.strstart - e.match_start, e.match_length -
|
1241
|
+
if (t = 0, e.lookahead >= T && (e.ins_h = ie(e, e.ins_h, e.window[e.strstart + T - 1]), t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), t !== 0 && e.strstart - t <= e.w_size - Y && (e.match_length = fi(e, t)), e.match_length >= T)
|
1242
|
+
if (i = te(e, e.strstart - e.match_start, e.match_length - T), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= T) {
|
1243
1243
|
e.match_length--;
|
1244
1244
|
do
|
1245
|
-
e.strstart++, e.ins_h = ie(e, e.ins_h, e.window[e.strstart +
|
1245
|
+
e.strstart++, e.ins_h = ie(e, e.ins_h, e.window[e.strstart + T - 1]), t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
|
1246
1246
|
while (--e.match_length !== 0);
|
1247
1247
|
e.strstart++;
|
1248
1248
|
} else
|
@@ -1252,7 +1252,7 @@ const V = (e) => {
|
|
1252
1252
|
if (i && (L(e, !1), e.strm.avail_out === 0))
|
1253
1253
|
return U;
|
1254
1254
|
}
|
1255
|
-
return e.insert = e.strstart <
|
1255
|
+
return e.insert = e.strstart < T - 1 ? e.strstart : T - 1, n === F ? (L(e, !0), e.strm.avail_out === 0 ? ue : ke) : e.sym_next && (L(e, !1), e.strm.avail_out === 0) ? U : ve;
|
1256
1256
|
}, de = (e, n) => {
|
1257
1257
|
let t, i, r;
|
1258
1258
|
for (; ; ) {
|
@@ -1262,12 +1262,12 @@ const V = (e) => {
|
|
1262
1262
|
if (e.lookahead === 0)
|
1263
1263
|
break;
|
1264
1264
|
}
|
1265
|
-
if (t = 0, e.lookahead >=
|
1266
|
-
r = e.strstart + e.lookahead -
|
1265
|
+
if (t = 0, e.lookahead >= T && (e.ins_h = ie(e, e.ins_h, e.window[e.strstart + T - 1]), t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = T - 1, t !== 0 && e.prev_length < e.max_lazy_match && e.strstart - t <= e.w_size - Y && (e.match_length = fi(e, t), e.match_length <= 5 && (e.strategy === jr || e.match_length === T && e.strstart - e.match_start > 4096) && (e.match_length = T - 1)), e.prev_length >= T && e.match_length <= e.prev_length) {
|
1266
|
+
r = e.strstart + e.lookahead - T, i = te(e, e.strstart - 1 - e.prev_match, e.prev_length - T), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
|
1267
1267
|
do
|
1268
|
-
++e.strstart <= r && (e.ins_h = ie(e, e.ins_h, e.window[e.strstart +
|
1268
|
+
++e.strstart <= r && (e.ins_h = ie(e, e.ins_h, e.window[e.strstart + T - 1]), t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
|
1269
1269
|
while (--e.prev_length !== 0);
|
1270
|
-
if (e.match_available = 0, e.match_length =
|
1270
|
+
if (e.match_available = 0, e.match_length = T - 1, e.strstart++, i && (L(e, !1), e.strm.avail_out === 0))
|
1271
1271
|
return U;
|
1272
1272
|
} else if (e.match_available) {
|
1273
1273
|
if (i = te(e, 0, e.window[e.strstart - 1]), i && L(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
|
@@ -1275,7 +1275,7 @@ const V = (e) => {
|
|
1275
1275
|
} else
|
1276
1276
|
e.match_available = 1, e.strstart++, e.lookahead--;
|
1277
1277
|
}
|
1278
|
-
return e.match_available && (i = te(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart <
|
1278
|
+
return e.match_available && (i = te(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < T - 1 ? e.strstart : T - 1, n === F ? (L(e, !0), e.strm.avail_out === 0 ? ue : ke) : e.sym_next && (L(e, !1), e.strm.avail_out === 0) ? U : ve;
|
1279
1279
|
}, fa = (e, n) => {
|
1280
1280
|
let t, i, r, a;
|
1281
1281
|
const o = e.window;
|
@@ -1286,14 +1286,14 @@ const V = (e) => {
|
|
1286
1286
|
if (e.lookahead === 0)
|
1287
1287
|
break;
|
1288
1288
|
}
|
1289
|
-
if (e.match_length = 0, e.lookahead >=
|
1289
|
+
if (e.match_length = 0, e.lookahead >= T && e.strstart > 0 && (r = e.strstart - 1, i = o[r], i === o[++r] && i === o[++r] && i === o[++r])) {
|
1290
1290
|
a = e.strstart + ee;
|
1291
1291
|
do
|
1292
1292
|
;
|
1293
1293
|
while (i === o[++r] && i === o[++r] && i === o[++r] && i === o[++r] && i === o[++r] && i === o[++r] && i === o[++r] && i === o[++r] && r < a);
|
1294
1294
|
e.match_length = ee - (a - r), e.match_length > e.lookahead && (e.match_length = e.lookahead);
|
1295
1295
|
}
|
1296
|
-
if (e.match_length >=
|
1296
|
+
if (e.match_length >= T ? (t = te(e, 1, e.match_length - T), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (t = te(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), t && (L(e, !1), e.strm.avail_out === 0))
|
1297
1297
|
return U;
|
1298
1298
|
}
|
1299
1299
|
return e.insert = 0, n === F ? (L(e, !0), e.strm.avail_out === 0 ? ue : ke) : e.sym_next && (L(e, !1), e.strm.avail_out === 0) ? U : ve;
|
@@ -1315,13 +1315,13 @@ function H(e, n, t, i, r) {
|
|
1315
1315
|
}
|
1316
1316
|
const Ne = [
|
1317
1317
|
/* good lazy nice chain */
|
1318
|
-
new H(0, 0, 0, 0,
|
1318
|
+
new H(0, 0, 0, 0, ui),
|
1319
1319
|
/* 0 store only */
|
1320
|
-
new H(4, 4, 8, 4,
|
1320
|
+
new H(4, 4, 8, 4, bt),
|
1321
1321
|
/* 1 max speed, no lazy matches */
|
1322
|
-
new H(4, 5, 16, 8,
|
1322
|
+
new H(4, 5, 16, 8, bt),
|
1323
1323
|
/* 2 */
|
1324
|
-
new H(4, 6, 32, 32,
|
1324
|
+
new H(4, 6, 32, 32, bt),
|
1325
1325
|
/* 3 */
|
1326
1326
|
new H(4, 4, 16, 16, de),
|
1327
1327
|
/* 4 lazy matches */
|
@@ -1336,69 +1336,69 @@ const Ne = [
|
|
1336
1336
|
new H(32, 258, 258, 4096, de)
|
1337
1337
|
/* 9 max compression */
|
1338
1338
|
], ha = (e) => {
|
1339
|
-
e.window_size = 2 * e.w_size, J(e.head), e.max_lazy_match = Ne[e.level].max_lazy, e.good_match = Ne[e.level].good_length, e.nice_match = Ne[e.level].nice_length, e.max_chain_length = Ne[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length =
|
1339
|
+
e.window_size = 2 * e.w_size, J(e.head), e.max_lazy_match = Ne[e.level].max_lazy, e.good_match = Ne[e.level].good_length, e.nice_match = Ne[e.level].nice_length, e.max_chain_length = Ne[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = T - 1, e.match_available = 0, e.ins_h = 0;
|
1340
1340
|
};
|
1341
1341
|
function ca() {
|
1342
|
-
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method =
|
1342
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = lt, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(ia * 2), this.dyn_dtree = new Uint16Array((2 * ta + 1) * 2), this.bl_tree = new Uint16Array((2 * na + 1) * 2), J(this.dyn_ltree), J(this.dyn_dtree), J(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(ra + 1), this.heap = new Uint16Array(2 * zt + 1), J(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(2 * zt + 1), J(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
1343
1343
|
}
|
1344
1344
|
const Me = (e) => {
|
1345
1345
|
if (!e)
|
1346
1346
|
return 1;
|
1347
1347
|
const n = e.state;
|
1348
1348
|
return !n || n.strm !== e || n.status !== we && //#ifdef GZIP
|
1349
|
-
n.status !==
|
1350
|
-
n.status !==
|
1351
|
-
},
|
1349
|
+
n.status !== jt && //#endif
|
1350
|
+
n.status !== Rt && n.status !== Bt && n.status !== Ut && n.status !== Dt && n.status !== le && n.status !== Se ? 1 : 0;
|
1351
|
+
}, hi = (e) => {
|
1352
1352
|
if (Me(e))
|
1353
1353
|
return fe(e, G);
|
1354
1354
|
e.total_in = e.total_out = 0, e.data_type = Wr;
|
1355
1355
|
const n = e.state;
|
1356
1356
|
return n.pending = 0, n.pending_out = 0, n.wrap < 0 && (n.wrap = -n.wrap), n.status = //#ifdef GZIP
|
1357
|
-
n.wrap === 2 ?
|
1357
|
+
n.wrap === 2 ? jt : (
|
1358
1358
|
//#endif
|
1359
1359
|
n.wrap ? we : le
|
1360
1360
|
), e.adler = n.wrap === 2 ? 0 : 1, n.last_flush = -2, Lr(n), B;
|
1361
|
-
},
|
1362
|
-
const n =
|
1361
|
+
}, ci = (e) => {
|
1362
|
+
const n = hi(e);
|
1363
1363
|
return n === B && ha(e.state), n;
|
1364
|
-
}, da = (e, n) => Me(e) || e.state.wrap !== 2 ? G : (e.state.gzhead = n, B),
|
1364
|
+
}, da = (e, n) => Me(e) || e.state.wrap !== 2 ? G : (e.state.gzhead = n, B), di = (e, n, t, i, r, a) => {
|
1365
1365
|
if (!e)
|
1366
1366
|
return G;
|
1367
1367
|
let o = 1;
|
1368
|
-
if (n === Hr && (n = 6), i < 0 ? (o = 0, i = -i) : i > 15 && (o = 2, i -= 16), r < 1 || r > Xr || t !==
|
1368
|
+
if (n === Hr && (n = 6), i < 0 ? (o = 0, i = -i) : i > 15 && (o = 2, i -= 16), r < 1 || r > Xr || t !== lt || i < 8 || i > 15 || n < 0 || n > 9 || a < 0 || a > Yr || i === 8 && o !== 1)
|
1369
1369
|
return fe(e, G);
|
1370
1370
|
i === 8 && (i = 9);
|
1371
1371
|
const l = new ca();
|
1372
|
-
return e.state = l, l.strm = e, l.status = we, l.wrap = o, l.gzhead = null, l.w_bits = i, l.w_size = 1 << l.w_bits, l.w_mask = l.w_size - 1, l.hash_bits = r + 7, l.hash_size = 1 << l.hash_bits, l.hash_mask = l.hash_size - 1, l.hash_shift = ~~((l.hash_bits +
|
1373
|
-
}, pa = (e, n) =>
|
1374
|
-
if (Me(e) || n >
|
1372
|
+
return e.state = l, l.strm = e, l.status = we, l.wrap = o, l.gzhead = null, l.w_bits = i, l.w_size = 1 << l.w_bits, l.w_mask = l.w_size - 1, l.hash_bits = r + 7, l.hash_size = 1 << l.hash_bits, l.hash_mask = l.hash_size - 1, l.hash_shift = ~~((l.hash_bits + T - 1) / T), l.window = new Uint8Array(l.w_size * 2), l.head = new Uint16Array(l.hash_size), l.prev = new Uint16Array(l.w_size), l.lit_bufsize = 1 << r + 6, l.pending_buf_size = l.lit_bufsize * 4, l.pending_buf = new Uint8Array(l.pending_buf_size), l.sym_buf = l.lit_bufsize, l.sym_end = (l.lit_bufsize - 1) * 3, l.level = n, l.strategy = a, l.method = t, ci(e);
|
1373
|
+
}, pa = (e, n) => di(e, n, lt, qr, Jr, Kr), _a = (e, n) => {
|
1374
|
+
if (Me(e) || n > sn || n < 0)
|
1375
1375
|
return e ? fe(e, G) : G;
|
1376
1376
|
const t = e.state;
|
1377
1377
|
if (!e.output || e.avail_in !== 0 && !e.input || t.status === Se && n !== F)
|
1378
|
-
return fe(e, e.avail_out === 0 ?
|
1378
|
+
return fe(e, e.avail_out === 0 ? _t : G);
|
1379
1379
|
const i = t.last_flush;
|
1380
1380
|
if (t.last_flush = n, t.pending !== 0) {
|
1381
1381
|
if (V(e), e.avail_out === 0)
|
1382
1382
|
return t.last_flush = -1, B;
|
1383
|
-
} else if (e.avail_in === 0 &&
|
1384
|
-
return fe(e,
|
1383
|
+
} else if (e.avail_in === 0 && fn(n) <= fn(i) && n !== F)
|
1384
|
+
return fe(e, _t);
|
1385
1385
|
if (t.status === Se && e.avail_in !== 0)
|
1386
|
-
return fe(e,
|
1386
|
+
return fe(e, _t);
|
1387
1387
|
if (t.status === we && t.wrap === 0 && (t.status = le), t.status === we) {
|
1388
|
-
let r =
|
1388
|
+
let r = lt + (t.w_bits - 8 << 4) << 8, a = -1;
|
1389
1389
|
if (t.strategy >= We || t.level < 2 ? a = 0 : t.level < 6 ? a = 1 : t.level === 6 ? a = 2 : a = 3, r |= a << 6, t.strstart !== 0 && (r |= aa), r += 31 - r % 31, Ce(t, r), t.strstart !== 0 && (Ce(t, e.adler >>> 16), Ce(t, e.adler & 65535)), e.adler = 1, t.status = le, V(e), t.pending !== 0)
|
1390
1390
|
return t.last_flush = -1, B;
|
1391
1391
|
}
|
1392
|
-
if (t.status ===
|
1392
|
+
if (t.status === jt) {
|
1393
1393
|
if (e.adler = 0, A(t, 31), A(t, 139), A(t, 8), t.gzhead)
|
1394
1394
|
A(
|
1395
1395
|
t,
|
1396
1396
|
(t.gzhead.text ? 1 : 0) + (t.gzhead.hcrc ? 2 : 0) + (t.gzhead.extra ? 4 : 0) + (t.gzhead.name ? 8 : 0) + (t.gzhead.comment ? 16 : 0)
|
1397
|
-
), A(t, t.gzhead.time & 255), A(t, t.gzhead.time >> 8 & 255), A(t, t.gzhead.time >> 16 & 255), A(t, t.gzhead.time >> 24 & 255), A(t, t.level === 9 ? 2 : t.strategy >= We || t.level < 2 ? 4 : 0), A(t, t.gzhead.os & 255), t.gzhead.extra && t.gzhead.extra.length && (A(t, t.gzhead.extra.length & 255), A(t, t.gzhead.extra.length >> 8 & 255)), t.gzhead.hcrc && (e.adler = R(e.adler, t.pending_buf, t.pending, 0)), t.gzindex = 0, t.status =
|
1397
|
+
), A(t, t.gzhead.time & 255), A(t, t.gzhead.time >> 8 & 255), A(t, t.gzhead.time >> 16 & 255), A(t, t.gzhead.time >> 24 & 255), A(t, t.level === 9 ? 2 : t.strategy >= We || t.level < 2 ? 4 : 0), A(t, t.gzhead.os & 255), t.gzhead.extra && t.gzhead.extra.length && (A(t, t.gzhead.extra.length & 255), A(t, t.gzhead.extra.length >> 8 & 255)), t.gzhead.hcrc && (e.adler = R(e.adler, t.pending_buf, t.pending, 0)), t.gzindex = 0, t.status = Rt;
|
1398
1398
|
else if (A(t, 0), A(t, 0), A(t, 0), A(t, 0), A(t, 0), A(t, t.level === 9 ? 2 : t.strategy >= We || t.level < 2 ? 4 : 0), A(t, oa), t.status = le, V(e), t.pending !== 0)
|
1399
1399
|
return t.last_flush = -1, B;
|
1400
1400
|
}
|
1401
|
-
if (t.status ===
|
1401
|
+
if (t.status === Rt) {
|
1402
1402
|
if (t.gzhead.extra) {
|
1403
1403
|
let r = t.pending, a = (t.gzhead.extra.length & 65535) - t.gzindex;
|
1404
1404
|
for (; t.pending + a > t.pending_buf_size; ) {
|
@@ -1410,9 +1410,9 @@ const Me = (e) => {
|
|
1410
1410
|
let o = new Uint8Array(t.gzhead.extra);
|
1411
1411
|
t.pending_buf.set(o.subarray(t.gzindex, t.gzindex + a), t.pending), t.pending += a, t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r)), t.gzindex = 0;
|
1412
1412
|
}
|
1413
|
-
t.status =
|
1413
|
+
t.status = Bt;
|
1414
1414
|
}
|
1415
|
-
if (t.status ===
|
1415
|
+
if (t.status === Bt) {
|
1416
1416
|
if (t.gzhead.name) {
|
1417
1417
|
let r = t.pending, a;
|
1418
1418
|
do {
|
@@ -1425,9 +1425,9 @@ const Me = (e) => {
|
|
1425
1425
|
} while (a !== 0);
|
1426
1426
|
t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r)), t.gzindex = 0;
|
1427
1427
|
}
|
1428
|
-
t.status =
|
1428
|
+
t.status = Ut;
|
1429
1429
|
}
|
1430
|
-
if (t.status ===
|
1430
|
+
if (t.status === Ut) {
|
1431
1431
|
if (t.gzhead.comment) {
|
1432
1432
|
let r = t.pending, a;
|
1433
1433
|
do {
|
@@ -1440,9 +1440,9 @@ const Me = (e) => {
|
|
1440
1440
|
} while (a !== 0);
|
1441
1441
|
t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r));
|
1442
1442
|
}
|
1443
|
-
t.status =
|
1443
|
+
t.status = Dt;
|
1444
1444
|
}
|
1445
|
-
if (t.status ===
|
1445
|
+
if (t.status === Dt) {
|
1446
1446
|
if (t.gzhead.hcrc) {
|
1447
1447
|
if (t.pending + 2 > t.pending_buf_size && (V(e), t.pending !== 0))
|
1448
1448
|
return t.last_flush = -1, B;
|
@@ -1452,13 +1452,13 @@ const Me = (e) => {
|
|
1452
1452
|
return t.last_flush = -1, B;
|
1453
1453
|
}
|
1454
1454
|
if (e.avail_in !== 0 || t.lookahead !== 0 || n !== ne && t.status !== Se) {
|
1455
|
-
let r = t.level === 0 ?
|
1455
|
+
let r = t.level === 0 ? ui(t, n) : t.strategy === We ? ua(t, n) : t.strategy === Gr ? fa(t, n) : Ne[t.level].func(t, n);
|
1456
1456
|
if ((r === ue || r === ke) && (t.status = Se), r === U || r === ue)
|
1457
1457
|
return e.avail_out === 0 && (t.last_flush = -1), B;
|
1458
|
-
if (r === ve && (n === Zr ? Pr(t) : n !==
|
1458
|
+
if (r === ve && (n === Zr ? Pr(t) : n !== sn && (Ot(t, 0, 0, !1), n === xr && (J(t.head), t.lookahead === 0 && (t.strstart = 0, t.block_start = 0, t.insert = 0))), V(e), e.avail_out === 0))
|
1459
1459
|
return t.last_flush = -1, B;
|
1460
1460
|
}
|
1461
|
-
return n !== F ? B : t.wrap <= 0 ?
|
1461
|
+
return n !== F ? B : t.wrap <= 0 ? ln : (t.wrap === 2 ? (A(t, e.adler & 255), A(t, e.adler >> 8 & 255), A(t, e.adler >> 16 & 255), A(t, e.adler >> 24 & 255), A(t, e.total_in & 255), A(t, e.total_in >> 8 & 255), A(t, e.total_in >> 16 & 255), A(t, e.total_in >> 24 & 255)) : (Ce(t, e.adler >>> 16), Ce(t, e.adler & 65535)), V(e), t.wrap > 0 && (t.wrap = -t.wrap), t.pending !== 0 ? B : ln);
|
1462
1462
|
}, ba = (e) => {
|
1463
1463
|
if (Me(e))
|
1464
1464
|
return G;
|
@@ -1477,16 +1477,16 @@ const Me = (e) => {
|
|
1477
1477
|
u.set(n.subarray(t - i.w_size, t), 0), n = u, t = i.w_size;
|
1478
1478
|
}
|
1479
1479
|
const a = e.avail_in, o = e.next_in, l = e.input;
|
1480
|
-
for (e.avail_in = t, e.next_in = 0, e.input = n, me(i); i.lookahead >=
|
1481
|
-
let u = i.strstart, s = i.lookahead - (
|
1480
|
+
for (e.avail_in = t, e.next_in = 0, e.input = n, me(i); i.lookahead >= T; ) {
|
1481
|
+
let u = i.strstart, s = i.lookahead - (T - 1);
|
1482
1482
|
do
|
1483
|
-
i.ins_h = ie(i, i.ins_h, i.window[u +
|
1483
|
+
i.ins_h = ie(i, i.ins_h, i.window[u + T - 1]), i.prev[u & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = u, u++;
|
1484
1484
|
while (--s);
|
1485
|
-
i.strstart = u, i.lookahead =
|
1485
|
+
i.strstart = u, i.lookahead = T - 1, me(i);
|
1486
1486
|
}
|
1487
|
-
return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length =
|
1487
|
+
return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = T - 1, i.match_available = 0, e.next_in = o, e.input = l, e.avail_in = a, i.wrap = r, B;
|
1488
1488
|
};
|
1489
|
-
var wa = pa, ma =
|
1489
|
+
var wa = pa, ma = di, ya = ci, va = hi, ka = da, $a = _a, Ea = ba, Ca = ga, Sa = "pako deflate (from Nodeca project)", Te = {
|
1490
1490
|
deflateInit: wa,
|
1491
1491
|
deflateInit2: ma,
|
1492
1492
|
deflateReset: ya,
|
@@ -1498,7 +1498,7 @@ var wa = pa, ma = pi, ya = di, va = ci, ka = da, $a = _a, Ea = ba, Ca = ga, Sa =
|
|
1498
1498
|
deflateInfo: Sa
|
1499
1499
|
};
|
1500
1500
|
const Na = (e, n) => Object.prototype.hasOwnProperty.call(e, n);
|
1501
|
-
var
|
1501
|
+
var Ia = function(e) {
|
1502
1502
|
const n = Array.prototype.slice.call(arguments, 1);
|
1503
1503
|
for (; n.length; ) {
|
1504
1504
|
const t = n.shift();
|
@@ -1510,7 +1510,7 @@ var Ta = function(e) {
|
|
1510
1510
|
}
|
1511
1511
|
}
|
1512
1512
|
return e;
|
1513
|
-
},
|
1513
|
+
}, Ta = (e) => {
|
1514
1514
|
let n = 0;
|
1515
1515
|
for (let i = 0, r = e.length; i < r; i++)
|
1516
1516
|
n += e[i].length;
|
@@ -1520,15 +1520,15 @@ var Ta = function(e) {
|
|
1520
1520
|
t.set(o, r), r += o.length;
|
1521
1521
|
}
|
1522
1522
|
return t;
|
1523
|
-
},
|
1524
|
-
assign:
|
1525
|
-
flattenChunks:
|
1523
|
+
}, ft = {
|
1524
|
+
assign: Ia,
|
1525
|
+
flattenChunks: Ta
|
1526
1526
|
};
|
1527
|
-
let
|
1527
|
+
let pi = !0;
|
1528
1528
|
try {
|
1529
1529
|
String.fromCharCode.apply(null, new Uint8Array(1));
|
1530
1530
|
} catch {
|
1531
|
-
|
1531
|
+
pi = !1;
|
1532
1532
|
}
|
1533
1533
|
const De = new Uint8Array(256);
|
1534
1534
|
for (let e = 0; e < 256; e++)
|
@@ -1545,7 +1545,7 @@ var Aa = (e) => {
|
|
1545
1545
|
return n;
|
1546
1546
|
};
|
1547
1547
|
const Oa = (e, n) => {
|
1548
|
-
if (n < 65534 && e.subarray &&
|
1548
|
+
if (n < 65534 && e.subarray && pi)
|
1549
1549
|
return String.fromCharCode.apply(null, e.length === n ? e : e.subarray(0, n));
|
1550
1550
|
let t = "";
|
1551
1551
|
for (let i = 0; i < n; i++)
|
@@ -1592,8 +1592,8 @@ var za = (e, n) => {
|
|
1592
1592
|
function Ba() {
|
1593
1593
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
1594
1594
|
}
|
1595
|
-
var
|
1596
|
-
const
|
1595
|
+
var _i = Ba;
|
1596
|
+
const bi = Object.prototype.toString, {
|
1597
1597
|
Z_NO_FLUSH: Ua,
|
1598
1598
|
Z_SYNC_FLUSH: Da,
|
1599
1599
|
Z_FULL_FLUSH: Va,
|
@@ -1604,8 +1604,8 @@ const gi = Object.prototype.toString, {
|
|
1604
1604
|
Z_DEFAULT_STRATEGY: Za,
|
1605
1605
|
Z_DEFLATED: xa
|
1606
1606
|
} = xe;
|
1607
|
-
function
|
1608
|
-
this.options =
|
1607
|
+
function Gt(e) {
|
1608
|
+
this.options = ft.assign({
|
1609
1609
|
level: Pa,
|
1610
1610
|
method: xa,
|
1611
1611
|
chunkSize: 16384,
|
@@ -1614,8 +1614,8 @@ function Yt(e) {
|
|
1614
1614
|
strategy: Za
|
1615
1615
|
}, e || {});
|
1616
1616
|
let n = this.options;
|
1617
|
-
n.raw && n.windowBits > 0 ? n.windowBits = -n.windowBits : n.gzip && n.windowBits > 0 && n.windowBits < 16 && (n.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
1618
|
-
let t =
|
1617
|
+
n.raw && n.windowBits > 0 ? n.windowBits = -n.windowBits : n.gzip && n.windowBits > 0 && n.windowBits < 16 && (n.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _i(), this.strm.avail_out = 0;
|
1618
|
+
let t = Te.deflateInit2(
|
1619
1619
|
this.strm,
|
1620
1620
|
n.level,
|
1621
1621
|
n.method,
|
@@ -1625,25 +1625,25 @@ function Yt(e) {
|
|
1625
1625
|
);
|
1626
1626
|
if (t !== rt)
|
1627
1627
|
throw new Error(ge[t]);
|
1628
|
-
if (n.header &&
|
1628
|
+
if (n.header && Te.deflateSetHeader(this.strm, n.header), n.dictionary) {
|
1629
1629
|
let i;
|
1630
|
-
if (typeof n.dictionary == "string" ? i = Ve.string2buf(n.dictionary) :
|
1630
|
+
if (typeof n.dictionary == "string" ? i = Ve.string2buf(n.dictionary) : bi.call(n.dictionary) === "[object ArrayBuffer]" ? i = new Uint8Array(n.dictionary) : i = n.dictionary, t = Te.deflateSetDictionary(this.strm, i), t !== rt)
|
1631
1631
|
throw new Error(ge[t]);
|
1632
1632
|
this._dict_set = !0;
|
1633
1633
|
}
|
1634
1634
|
}
|
1635
|
-
|
1635
|
+
Gt.prototype.push = function(e, n) {
|
1636
1636
|
const t = this.strm, i = this.options.chunkSize;
|
1637
1637
|
let r, a;
|
1638
1638
|
if (this.ended)
|
1639
1639
|
return !1;
|
1640
|
-
for (n === ~~n ? a = n : a = n === !0 ? La : Ua, typeof e == "string" ? t.input = Ve.string2buf(e) :
|
1640
|
+
for (n === ~~n ? a = n : a = n === !0 ? La : Ua, typeof e == "string" ? t.input = Ve.string2buf(e) : bi.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
|
1641
1641
|
if (t.avail_out === 0 && (t.output = new Uint8Array(i), t.next_out = 0, t.avail_out = i), (a === Da || a === Va) && t.avail_out <= 6) {
|
1642
1642
|
this.onData(t.output.subarray(0, t.next_out)), t.avail_out = 0;
|
1643
1643
|
continue;
|
1644
1644
|
}
|
1645
|
-
if (r =
|
1646
|
-
return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), r =
|
1645
|
+
if (r = Te.deflate(t, a), r === Fa)
|
1646
|
+
return t.next_out > 0 && this.onData(t.output.subarray(0, t.next_out)), r = Te.deflateEnd(this.strm), this.onEnd(r), this.ended = !0, r === rt;
|
1647
1647
|
if (t.avail_out === 0) {
|
1648
1648
|
this.onData(t.output);
|
1649
1649
|
continue;
|
@@ -1657,17 +1657,17 @@ Yt.prototype.push = function(e, n) {
|
|
1657
1657
|
}
|
1658
1658
|
return !0;
|
1659
1659
|
};
|
1660
|
-
|
1660
|
+
Gt.prototype.onData = function(e) {
|
1661
1661
|
this.chunks.push(e);
|
1662
1662
|
};
|
1663
|
-
|
1664
|
-
e === rt && (this.result =
|
1663
|
+
Gt.prototype.onEnd = function(e) {
|
1664
|
+
e === rt && (this.result = ft.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
1665
1665
|
};
|
1666
1666
|
const Xe = 16209, Ma = 16191;
|
1667
1667
|
var Ha = function(n, t) {
|
1668
1668
|
let i, r, a, o, l, u, s, f, d, c, h, _, g, k, y, E, C, p, $, S, b, w, m, v;
|
1669
|
-
const
|
1670
|
-
i = n.next_in, m = n.input, r = i + (n.avail_in - 5), a = n.next_out, v = n.output, o = a - (t - n.avail_out), l = a + (n.avail_out - 257), u =
|
1669
|
+
const I = n.state;
|
1670
|
+
i = n.next_in, m = n.input, r = i + (n.avail_in - 5), a = n.next_out, v = n.output, o = a - (t - n.avail_out), l = a + (n.avail_out - 257), u = I.dmax, s = I.wsize, f = I.whave, d = I.wnext, c = I.window, h = I.hold, _ = I.bits, g = I.lencode, k = I.distcode, y = (1 << I.lenbits) - 1, E = (1 << I.distbits) - 1;
|
1671
1671
|
e:
|
1672
1672
|
do {
|
1673
1673
|
_ < 15 && (h += m[i++] << _, _ += 8, h += m[i++] << _, _ += 8), C = g[h & y];
|
@@ -1681,12 +1681,12 @@ var Ha = function(n, t) {
|
|
1681
1681
|
for (; ; ) {
|
1682
1682
|
if (p = C >>> 24, h >>>= p, _ -= p, p = C >>> 16 & 255, p & 16) {
|
1683
1683
|
if (S = C & 65535, p &= 15, _ < p && (h += m[i++] << _, _ += 8, _ < p && (h += m[i++] << _, _ += 8)), S += h & (1 << p) - 1, S > u) {
|
1684
|
-
n.msg = "invalid distance too far back",
|
1684
|
+
n.msg = "invalid distance too far back", I.mode = Xe;
|
1685
1685
|
break e;
|
1686
1686
|
}
|
1687
1687
|
if (h >>>= p, _ -= p, p = a - o, S > p) {
|
1688
|
-
if (p = S - p, p > f &&
|
1689
|
-
n.msg = "invalid distance too far back",
|
1688
|
+
if (p = S - p, p > f && I.sane) {
|
1689
|
+
n.msg = "invalid distance too far back", I.mode = Xe;
|
1690
1690
|
break e;
|
1691
1691
|
}
|
1692
1692
|
if (b = 0, w = c, d === 0) {
|
@@ -1729,7 +1729,7 @@ var Ha = function(n, t) {
|
|
1729
1729
|
$ && (v[a++] = v[b++], $ > 1 && (v[a++] = v[b++]));
|
1730
1730
|
}
|
1731
1731
|
} else if (p & 64) {
|
1732
|
-
n.msg = "invalid distance code",
|
1732
|
+
n.msg = "invalid distance code", I.mode = Xe;
|
1733
1733
|
break e;
|
1734
1734
|
} else {
|
1735
1735
|
C = k[(C & 65535) + (h & (1 << p) - 1)];
|
@@ -1739,10 +1739,10 @@ var Ha = function(n, t) {
|
|
1739
1739
|
}
|
1740
1740
|
} else if (p & 64)
|
1741
1741
|
if (p & 32) {
|
1742
|
-
|
1742
|
+
I.mode = Ma;
|
1743
1743
|
break e;
|
1744
1744
|
} else {
|
1745
|
-
n.msg = "invalid literal/length code",
|
1745
|
+
n.msg = "invalid literal/length code", I.mode = Xe;
|
1746
1746
|
break e;
|
1747
1747
|
}
|
1748
1748
|
else {
|
@@ -1752,9 +1752,9 @@ var Ha = function(n, t) {
|
|
1752
1752
|
break;
|
1753
1753
|
}
|
1754
1754
|
} while (i < r && a < l);
|
1755
|
-
$ = _ >> 3, i -= $, _ -= $ << 3, h &= (1 << _) - 1, n.next_in = i, n.next_out = a, n.avail_in = i < r ? 5 + (r - i) : 5 - (i - r), n.avail_out = a < l ? 257 + (l - a) : 257 - (a - l),
|
1755
|
+
$ = _ >> 3, i -= $, _ -= $ << 3, h &= (1 << _) - 1, n.next_in = i, n.next_out = a, n.avail_in = i < r ? 5 + (r - i) : 5 - (i - r), n.avail_out = a < l ? 257 + (l - a) : 257 - (a - l), I.hold = h, I.bits = _;
|
1756
1756
|
};
|
1757
|
-
const pe = 15,
|
1757
|
+
const pe = 15, un = 852, hn = 592, cn = 0, gt = 1, dn = 2, ja = new Uint16Array([
|
1758
1758
|
/* Length codes 257..285 base */
|
1759
1759
|
3,
|
1760
1760
|
4,
|
@@ -1891,8 +1891,8 @@ const pe = 15, hn = 852, cn = 592, dn = 0, mt = 1, pn = 2, ja = new Uint16Array(
|
|
1891
1891
|
]), Wa = (e, n, t, i, r, a, o, l) => {
|
1892
1892
|
const u = l.bits;
|
1893
1893
|
let s = 0, f = 0, d = 0, c = 0, h = 0, _ = 0, g = 0, k = 0, y = 0, E = 0, C, p, $, S, b, w = null, m;
|
1894
|
-
const v = new Uint16Array(pe + 1),
|
1895
|
-
let ae = null,
|
1894
|
+
const v = new Uint16Array(pe + 1), I = new Uint16Array(pe + 1);
|
1895
|
+
let ae = null, Jt, je, Ge;
|
1896
1896
|
for (s = 0; s <= pe; s++)
|
1897
1897
|
v[s] = 0;
|
1898
1898
|
for (f = 0; f < i; f++)
|
@@ -1906,18 +1906,18 @@ const pe = 15, hn = 852, cn = 592, dn = 0, mt = 1, pn = 2, ja = new Uint16Array(
|
|
1906
1906
|
for (h < d && (h = d), k = 1, s = 1; s <= pe; s++)
|
1907
1907
|
if (k <<= 1, k -= v[s], k < 0)
|
1908
1908
|
return -1;
|
1909
|
-
if (k > 0 && (e ===
|
1909
|
+
if (k > 0 && (e === cn || c !== 1))
|
1910
1910
|
return -1;
|
1911
|
-
for (
|
1912
|
-
|
1911
|
+
for (I[1] = 0, s = 1; s < pe; s++)
|
1912
|
+
I[s + 1] = I[s] + v[s];
|
1913
1913
|
for (f = 0; f < i; f++)
|
1914
|
-
n[t + f] !== 0 && (o[
|
1915
|
-
if (e ===
|
1914
|
+
n[t + f] !== 0 && (o[I[n[t + f]]++] = f);
|
1915
|
+
if (e === cn ? (w = ae = o, m = 20) : e === gt ? (w = ja, ae = Ga, m = 257) : (w = Ya, ae = Ka, m = 0), E = 0, f = 0, s = d, b = a, _ = h, g = 0, $ = -1, y = 1 << h, S = y - 1, e === gt && y > un || e === dn && y > hn)
|
1916
1916
|
return 1;
|
1917
1917
|
for (; ; ) {
|
1918
|
-
|
1918
|
+
Jt = s - g, o[f] + 1 < m ? (je = 0, Ge = o[f]) : o[f] >= m ? (je = ae[o[f] - m], Ge = w[o[f] - m]) : (je = 32 + 64, Ge = 0), C = 1 << s - g, p = 1 << _, d = p;
|
1919
1919
|
do
|
1920
|
-
p -= C, r[b + (E >> g) + p] =
|
1920
|
+
p -= C, r[b + (E >> g) + p] = Jt << 24 | je << 16 | Ge | 0;
|
1921
1921
|
while (p !== 0);
|
1922
1922
|
for (C = 1 << s - 1; E & C; )
|
1923
1923
|
C >>= 1;
|
@@ -1929,7 +1929,7 @@ const pe = 15, hn = 852, cn = 592, dn = 0, mt = 1, pn = 2, ja = new Uint16Array(
|
|
1929
1929
|
if (s > h && (E & S) !== $) {
|
1930
1930
|
for (g === 0 && (g = h), b += d, _ = s - g, k = 1 << _; _ + g < c && (k -= v[_ + g], !(k <= 0)); )
|
1931
1931
|
_++, k <<= 1;
|
1932
|
-
if (y += 1 << _, e ===
|
1932
|
+
if (y += 1 << _, e === gt && y > un || e === dn && y > hn)
|
1933
1933
|
return 1;
|
1934
1934
|
$ = E & S, r[$] = h << 24 | _ << 16 | b - a | 0;
|
1935
1935
|
}
|
@@ -1937,19 +1937,19 @@ const pe = 15, hn = 852, cn = 592, dn = 0, mt = 1, pn = 2, ja = new Uint16Array(
|
|
1937
1937
|
return E !== 0 && (r[b + E] = s - g << 24 | 64 << 16 | 0), l.bits = h, 0;
|
1938
1938
|
};
|
1939
1939
|
var Ae = Wa;
|
1940
|
-
const Xa = 0,
|
1941
|
-
Z_FINISH:
|
1940
|
+
const Xa = 0, gi = 1, wi = 2, {
|
1941
|
+
Z_FINISH: pn,
|
1942
1942
|
Z_BLOCK: qa,
|
1943
1943
|
Z_TREES: qe,
|
1944
1944
|
Z_OK: he,
|
1945
1945
|
Z_STREAM_END: Ja,
|
1946
1946
|
Z_NEED_DICT: Qa,
|
1947
1947
|
Z_STREAM_ERROR: P,
|
1948
|
-
Z_DATA_ERROR:
|
1949
|
-
Z_MEM_ERROR:
|
1948
|
+
Z_DATA_ERROR: mi,
|
1949
|
+
Z_MEM_ERROR: yi,
|
1950
1950
|
Z_BUF_ERROR: eo,
|
1951
|
-
Z_DEFLATED:
|
1952
|
-
} = xe,
|
1951
|
+
Z_DEFLATED: _n
|
1952
|
+
} = xe, ut = 16180, bn = 16181, gn = 16182, wn = 16183, mn = 16184, yn = 16185, vn = 16186, kn = 16187, $n = 16188, En = 16189, at = 16190, K = 16191, wt = 16192, Cn = 16193, mt = 16194, Sn = 16195, Nn = 16196, In = 16197, Tn = 16198, Je = 16199, Qe = 16200, An = 16201, On = 16202, zn = 16203, Rn = 16204, Bn = 16205, yt = 16206, Un = 16207, Dn = 16208, O = 16209, vi = 16210, ki = 16211, to = 852, no = 592, io = 15, ro = io, Vn = (e) => (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
|
1953
1953
|
function ao() {
|
1954
1954
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
1955
1955
|
}
|
@@ -1957,35 +1957,35 @@ const ce = (e) => {
|
|
1957
1957
|
if (!e)
|
1958
1958
|
return 1;
|
1959
1959
|
const n = e.state;
|
1960
|
-
return !n || n.strm !== e || n.mode <
|
1961
|
-
},
|
1960
|
+
return !n || n.strm !== e || n.mode < ut || n.mode > ki ? 1 : 0;
|
1961
|
+
}, $i = (e) => {
|
1962
1962
|
if (ce(e))
|
1963
1963
|
return P;
|
1964
1964
|
const n = e.state;
|
1965
|
-
return e.total_in = e.total_out = n.total = 0, e.msg = "", n.wrap && (e.adler = n.wrap & 1), n.mode =
|
1966
|
-
},
|
1965
|
+
return e.total_in = e.total_out = n.total = 0, e.msg = "", n.wrap && (e.adler = n.wrap & 1), n.mode = ut, n.last = 0, n.havedict = 0, n.flags = -1, n.dmax = 32768, n.head = null, n.hold = 0, n.bits = 0, n.lencode = n.lendyn = new Int32Array(to), n.distcode = n.distdyn = new Int32Array(no), n.sane = 1, n.back = -1, he;
|
1966
|
+
}, Ei = (e) => {
|
1967
1967
|
if (ce(e))
|
1968
1968
|
return P;
|
1969
1969
|
const n = e.state;
|
1970
|
-
return n.wsize = 0, n.whave = 0, n.wnext = 0,
|
1971
|
-
},
|
1970
|
+
return n.wsize = 0, n.whave = 0, n.wnext = 0, $i(e);
|
1971
|
+
}, Ci = (e, n) => {
|
1972
1972
|
let t;
|
1973
1973
|
if (ce(e))
|
1974
1974
|
return P;
|
1975
1975
|
const i = e.state;
|
1976
|
-
return n < 0 ? (t = 0, n = -n) : (t = (n >> 4) + 5, n < 48 && (n &= 15)), n && (n < 8 || n > 15) ? P : (i.window !== null && i.wbits !== n && (i.window = null), i.wrap = t, i.wbits = n,
|
1977
|
-
},
|
1976
|
+
return n < 0 ? (t = 0, n = -n) : (t = (n >> 4) + 5, n < 48 && (n &= 15)), n && (n < 8 || n > 15) ? P : (i.window !== null && i.wbits !== n && (i.window = null), i.wrap = t, i.wbits = n, Ei(e));
|
1977
|
+
}, Si = (e, n) => {
|
1978
1978
|
if (!e)
|
1979
1979
|
return P;
|
1980
1980
|
const t = new ao();
|
1981
|
-
e.state = t, t.strm = e, t.window = null, t.mode =
|
1982
|
-
const i =
|
1981
|
+
e.state = t, t.strm = e, t.window = null, t.mode = ut;
|
1982
|
+
const i = Ci(e, n);
|
1983
1983
|
return i !== he && (e.state = null), i;
|
1984
|
-
}, oo = (e) =>
|
1985
|
-
let
|
1984
|
+
}, oo = (e) => Si(e, ro);
|
1985
|
+
let Ln = !0, vt, kt;
|
1986
1986
|
const so = (e) => {
|
1987
|
-
if (
|
1988
|
-
|
1987
|
+
if (Ln) {
|
1988
|
+
vt = new Int32Array(512), kt = new Int32Array(32);
|
1989
1989
|
let n = 0;
|
1990
1990
|
for (; n < 144; )
|
1991
1991
|
e.lens[n++] = 8;
|
@@ -1995,32 +1995,32 @@ const so = (e) => {
|
|
1995
1995
|
e.lens[n++] = 7;
|
1996
1996
|
for (; n < 288; )
|
1997
1997
|
e.lens[n++] = 8;
|
1998
|
-
for (Ae(
|
1998
|
+
for (Ae(gi, e.lens, 0, 288, vt, 0, e.work, { bits: 9 }), n = 0; n < 32; )
|
1999
1999
|
e.lens[n++] = 5;
|
2000
|
-
Ae(
|
2000
|
+
Ae(wi, e.lens, 0, 32, kt, 0, e.work, { bits: 5 }), Ln = !1;
|
2001
2001
|
}
|
2002
|
-
e.lencode =
|
2003
|
-
},
|
2002
|
+
e.lencode = vt, e.lenbits = 9, e.distcode = kt, e.distbits = 5;
|
2003
|
+
}, Ni = (e, n, t, i) => {
|
2004
2004
|
let r;
|
2005
2005
|
const a = e.state;
|
2006
2006
|
return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new Uint8Array(a.wsize)), i >= a.wsize ? (a.window.set(n.subarray(t - a.wsize, t), 0), a.wnext = 0, a.whave = a.wsize) : (r = a.wsize - a.wnext, r > i && (r = i), a.window.set(n.subarray(t - i, t - i + r), a.wnext), i -= r, i ? (a.window.set(n.subarray(t - i, t), 0), a.wnext = i, a.whave = a.wsize) : (a.wnext += r, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += r))), 0;
|
2007
2007
|
}, lo = (e, n) => {
|
2008
2008
|
let t, i, r, a, o, l, u, s, f, d, c, h, _, g, k = 0, y, E, C, p, $, S, b, w;
|
2009
2009
|
const m = new Uint8Array(4);
|
2010
|
-
let v,
|
2010
|
+
let v, I;
|
2011
2011
|
const ae = (
|
2012
2012
|
/* permutation of code lengths */
|
2013
2013
|
new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15])
|
2014
2014
|
);
|
2015
2015
|
if (ce(e) || !e.output || !e.input && e.avail_in !== 0)
|
2016
2016
|
return P;
|
2017
|
-
t = e.state, t.mode === K && (t.mode =
|
2017
|
+
t = e.state, t.mode === K && (t.mode = wt), o = e.next_out, r = e.output, u = e.avail_out, a = e.next_in, i = e.input, l = e.avail_in, s = t.hold, f = t.bits, d = l, c = u, w = he;
|
2018
2018
|
e:
|
2019
2019
|
for (; ; )
|
2020
2020
|
switch (t.mode) {
|
2021
|
-
case
|
2021
|
+
case ut:
|
2022
2022
|
if (t.wrap === 0) {
|
2023
|
-
t.mode =
|
2023
|
+
t.mode = wt;
|
2024
2024
|
break;
|
2025
2025
|
}
|
2026
2026
|
for (; f < 16; ) {
|
@@ -2029,7 +2029,7 @@ const so = (e) => {
|
|
2029
2029
|
l--, s += i[a++] << f, f += 8;
|
2030
2030
|
}
|
2031
2031
|
if (t.wrap & 2 && s === 35615) {
|
2032
|
-
t.wbits === 0 && (t.wbits = 15), t.check = 0, m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0), s = 0, f = 0, t.mode =
|
2032
|
+
t.wbits === 0 && (t.wbits = 15), t.check = 0, m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0), s = 0, f = 0, t.mode = bn;
|
2033
2033
|
break;
|
2034
2034
|
}
|
2035
2035
|
if (t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
|
@@ -2037,7 +2037,7 @@ const so = (e) => {
|
|
2037
2037
|
e.msg = "incorrect header check", t.mode = O;
|
2038
2038
|
break;
|
2039
2039
|
}
|
2040
|
-
if ((s & 15) !==
|
2040
|
+
if ((s & 15) !== _n) {
|
2041
2041
|
e.msg = "unknown compression method", t.mode = O;
|
2042
2042
|
break;
|
2043
2043
|
}
|
@@ -2045,15 +2045,15 @@ const so = (e) => {
|
|
2045
2045
|
e.msg = "invalid window size", t.mode = O;
|
2046
2046
|
break;
|
2047
2047
|
}
|
2048
|
-
t.dmax = 1 << t.wbits, t.flags = 0, e.adler = t.check = 1, t.mode = s & 512 ?
|
2048
|
+
t.dmax = 1 << t.wbits, t.flags = 0, e.adler = t.check = 1, t.mode = s & 512 ? En : K, s = 0, f = 0;
|
2049
2049
|
break;
|
2050
|
-
case
|
2050
|
+
case bn:
|
2051
2051
|
for (; f < 16; ) {
|
2052
2052
|
if (l === 0)
|
2053
2053
|
break e;
|
2054
2054
|
l--, s += i[a++] << f, f += 8;
|
2055
2055
|
}
|
2056
|
-
if (t.flags = s, (t.flags & 255) !==
|
2056
|
+
if (t.flags = s, (t.flags & 255) !== _n) {
|
2057
2057
|
e.msg = "unknown compression method", t.mode = O;
|
2058
2058
|
break;
|
2059
2059
|
}
|
@@ -2061,22 +2061,22 @@ const so = (e) => {
|
|
2061
2061
|
e.msg = "unknown header flags set", t.mode = O;
|
2062
2062
|
break;
|
2063
2063
|
}
|
2064
|
-
t.head && (t.head.text = s >> 8 & 1), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode =
|
2065
|
-
case
|
2064
|
+
t.head && (t.head.text = s >> 8 & 1), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode = gn;
|
2065
|
+
case gn:
|
2066
2066
|
for (; f < 32; ) {
|
2067
2067
|
if (l === 0)
|
2068
2068
|
break e;
|
2069
2069
|
l--, s += i[a++] << f, f += 8;
|
2070
2070
|
}
|
2071
|
-
t.head && (t.head.time = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, m[2] = s >>> 16 & 255, m[3] = s >>> 24 & 255, t.check = R(t.check, m, 4, 0)), s = 0, f = 0, t.mode =
|
2072
|
-
case
|
2071
|
+
t.head && (t.head.time = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, m[2] = s >>> 16 & 255, m[3] = s >>> 24 & 255, t.check = R(t.check, m, 4, 0)), s = 0, f = 0, t.mode = wn;
|
2072
|
+
case wn:
|
2073
2073
|
for (; f < 16; ) {
|
2074
2074
|
if (l === 0)
|
2075
2075
|
break e;
|
2076
2076
|
l--, s += i[a++] << f, f += 8;
|
2077
2077
|
}
|
2078
|
-
t.head && (t.head.xflags = s & 255, t.head.os = s >> 8), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode =
|
2079
|
-
case
|
2078
|
+
t.head && (t.head.xflags = s & 255, t.head.os = s >> 8), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode = mn;
|
2079
|
+
case mn:
|
2080
2080
|
if (t.flags & 1024) {
|
2081
2081
|
for (; f < 16; ) {
|
2082
2082
|
if (l === 0)
|
@@ -2086,8 +2086,8 @@ const so = (e) => {
|
|
2086
2086
|
t.length = s, t.head && (t.head.extra_len = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0;
|
2087
2087
|
} else
|
2088
2088
|
t.head && (t.head.extra = null);
|
2089
|
-
t.mode =
|
2090
|
-
case
|
2089
|
+
t.mode = yn;
|
2090
|
+
case yn:
|
2091
2091
|
if (t.flags & 1024 && (h = t.length, h > l && (h = l), h && (t.head && (b = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
|
2092
2092
|
i.subarray(
|
2093
2093
|
a,
|
@@ -2099,8 +2099,8 @@ const so = (e) => {
|
|
2099
2099
|
b
|
2100
2100
|
)), t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), l -= h, a += h, t.length -= h), t.length))
|
2101
2101
|
break e;
|
2102
|
-
t.length = 0, t.mode =
|
2103
|
-
case
|
2102
|
+
t.length = 0, t.mode = vn;
|
2103
|
+
case vn:
|
2104
2104
|
if (t.flags & 2048) {
|
2105
2105
|
if (l === 0)
|
2106
2106
|
break e;
|
@@ -2112,8 +2112,8 @@ const so = (e) => {
|
|
2112
2112
|
break e;
|
2113
2113
|
} else
|
2114
2114
|
t.head && (t.head.name = null);
|
2115
|
-
t.length = 0, t.mode =
|
2116
|
-
case
|
2115
|
+
t.length = 0, t.mode = kn;
|
2116
|
+
case kn:
|
2117
2117
|
if (t.flags & 4096) {
|
2118
2118
|
if (l === 0)
|
2119
2119
|
break e;
|
@@ -2125,8 +2125,8 @@ const so = (e) => {
|
|
2125
2125
|
break e;
|
2126
2126
|
} else
|
2127
2127
|
t.head && (t.head.comment = null);
|
2128
|
-
t.mode =
|
2129
|
-
case
|
2128
|
+
t.mode = $n;
|
2129
|
+
case $n:
|
2130
2130
|
if (t.flags & 512) {
|
2131
2131
|
for (; f < 16; ) {
|
2132
2132
|
if (l === 0)
|
@@ -2141,13 +2141,13 @@ const so = (e) => {
|
|
2141
2141
|
}
|
2142
2142
|
t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), e.adler = t.check = 0, t.mode = K;
|
2143
2143
|
break;
|
2144
|
-
case
|
2144
|
+
case En:
|
2145
2145
|
for (; f < 32; ) {
|
2146
2146
|
if (l === 0)
|
2147
2147
|
break e;
|
2148
2148
|
l--, s += i[a++] << f, f += 8;
|
2149
2149
|
}
|
2150
|
-
e.adler = t.check =
|
2150
|
+
e.adler = t.check = Vn(s), s = 0, f = 0, t.mode = at;
|
2151
2151
|
case at:
|
2152
2152
|
if (t.havedict === 0)
|
2153
2153
|
return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, Qa;
|
@@ -2155,9 +2155,9 @@ const so = (e) => {
|
|
2155
2155
|
case K:
|
2156
2156
|
if (n === qa || n === qe)
|
2157
2157
|
break e;
|
2158
|
-
case
|
2158
|
+
case wt:
|
2159
2159
|
if (t.last) {
|
2160
|
-
s >>>= f & 7, f -= f & 7, t.mode =
|
2160
|
+
s >>>= f & 7, f -= f & 7, t.mode = yt;
|
2161
2161
|
break;
|
2162
2162
|
}
|
2163
2163
|
for (; f < 3; ) {
|
@@ -2167,7 +2167,7 @@ const so = (e) => {
|
|
2167
2167
|
}
|
2168
2168
|
switch (t.last = s & 1, s >>>= 1, f -= 1, s & 3) {
|
2169
2169
|
case 0:
|
2170
|
-
t.mode =
|
2170
|
+
t.mode = Cn;
|
2171
2171
|
break;
|
2172
2172
|
case 1:
|
2173
2173
|
if (so(t), t.mode = Je, n === qe) {
|
@@ -2176,14 +2176,14 @@ const so = (e) => {
|
|
2176
2176
|
}
|
2177
2177
|
break;
|
2178
2178
|
case 2:
|
2179
|
-
t.mode =
|
2179
|
+
t.mode = Nn;
|
2180
2180
|
break;
|
2181
2181
|
case 3:
|
2182
2182
|
e.msg = "invalid block type", t.mode = O;
|
2183
2183
|
}
|
2184
2184
|
s >>>= 2, f -= 2;
|
2185
2185
|
break;
|
2186
|
-
case
|
2186
|
+
case Cn:
|
2187
2187
|
for (s >>>= f & 7, f -= f & 7; f < 32; ) {
|
2188
2188
|
if (l === 0)
|
2189
2189
|
break e;
|
@@ -2193,11 +2193,11 @@ const so = (e) => {
|
|
2193
2193
|
e.msg = "invalid stored block lengths", t.mode = O;
|
2194
2194
|
break;
|
2195
2195
|
}
|
2196
|
-
if (t.length = s & 65535, s = 0, f = 0, t.mode =
|
2196
|
+
if (t.length = s & 65535, s = 0, f = 0, t.mode = mt, n === qe)
|
2197
2197
|
break e;
|
2198
|
-
case
|
2199
|
-
t.mode =
|
2200
|
-
case
|
2198
|
+
case mt:
|
2199
|
+
t.mode = Sn;
|
2200
|
+
case Sn:
|
2201
2201
|
if (h = t.length, h) {
|
2202
2202
|
if (h > l && (h = l), h > u && (h = u), h === 0)
|
2203
2203
|
break e;
|
@@ -2206,7 +2206,7 @@ const so = (e) => {
|
|
2206
2206
|
}
|
2207
2207
|
t.mode = K;
|
2208
2208
|
break;
|
2209
|
-
case
|
2209
|
+
case Nn:
|
2210
2210
|
for (; f < 14; ) {
|
2211
2211
|
if (l === 0)
|
2212
2212
|
break e;
|
@@ -2232,8 +2232,8 @@ const so = (e) => {
|
|
2232
2232
|
e.msg = "invalid code lengths set", t.mode = O;
|
2233
2233
|
break;
|
2234
2234
|
}
|
2235
|
-
t.have = 0, t.mode =
|
2236
|
-
case
|
2235
|
+
t.have = 0, t.mode = Tn;
|
2236
|
+
case Tn:
|
2237
2237
|
for (; t.have < t.nlen + t.ndist; ) {
|
2238
2238
|
for (; k = t.lencode[s & (1 << t.lenbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
|
2239
2239
|
if (l === 0)
|
@@ -2244,7 +2244,7 @@ const so = (e) => {
|
|
2244
2244
|
s >>>= y, f -= y, t.lens[t.have++] = C;
|
2245
2245
|
else {
|
2246
2246
|
if (C === 16) {
|
2247
|
-
for (
|
2247
|
+
for (I = y + 2; f < I; ) {
|
2248
2248
|
if (l === 0)
|
2249
2249
|
break e;
|
2250
2250
|
l--, s += i[a++] << f, f += 8;
|
@@ -2255,14 +2255,14 @@ const so = (e) => {
|
|
2255
2255
|
}
|
2256
2256
|
b = t.lens[t.have - 1], h = 3 + (s & 3), s >>>= 2, f -= 2;
|
2257
2257
|
} else if (C === 17) {
|
2258
|
-
for (
|
2258
|
+
for (I = y + 3; f < I; ) {
|
2259
2259
|
if (l === 0)
|
2260
2260
|
break e;
|
2261
2261
|
l--, s += i[a++] << f, f += 8;
|
2262
2262
|
}
|
2263
2263
|
s >>>= y, f -= y, b = 0, h = 3 + (s & 7), s >>>= 3, f -= 3;
|
2264
2264
|
} else {
|
2265
|
-
for (
|
2265
|
+
for (I = y + 7; f < I; ) {
|
2266
2266
|
if (l === 0)
|
2267
2267
|
break e;
|
2268
2268
|
l--, s += i[a++] << f, f += 8;
|
@@ -2283,11 +2283,11 @@ const so = (e) => {
|
|
2283
2283
|
e.msg = "invalid code -- missing end-of-block", t.mode = O;
|
2284
2284
|
break;
|
2285
2285
|
}
|
2286
|
-
if (t.lenbits = 9, v = { bits: t.lenbits }, w = Ae(
|
2286
|
+
if (t.lenbits = 9, v = { bits: t.lenbits }, w = Ae(gi, t.lens, 0, t.nlen, t.lencode, 0, t.work, v), t.lenbits = v.bits, w) {
|
2287
2287
|
e.msg = "invalid literal/lengths set", t.mode = O;
|
2288
2288
|
break;
|
2289
2289
|
}
|
2290
|
-
if (t.distbits = 6, t.distcode = t.distdyn, v = { bits: t.distbits }, w = Ae(
|
2290
|
+
if (t.distbits = 6, t.distcode = t.distdyn, v = { bits: t.distbits }, w = Ae(wi, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, v), t.distbits = v.bits, w) {
|
2291
2291
|
e.msg = "invalid distances set", t.mode = O;
|
2292
2292
|
break;
|
2293
2293
|
}
|
@@ -2314,7 +2314,7 @@ const so = (e) => {
|
|
2314
2314
|
s >>>= p, f -= p, t.back += p;
|
2315
2315
|
}
|
2316
2316
|
if (s >>>= y, f -= y, t.back += y, t.length = C, E === 0) {
|
2317
|
-
t.mode =
|
2317
|
+
t.mode = Bn;
|
2318
2318
|
break;
|
2319
2319
|
}
|
2320
2320
|
if (E & 32) {
|
@@ -2325,18 +2325,18 @@ const so = (e) => {
|
|
2325
2325
|
e.msg = "invalid literal/length code", t.mode = O;
|
2326
2326
|
break;
|
2327
2327
|
}
|
2328
|
-
t.extra = E & 15, t.mode =
|
2329
|
-
case
|
2328
|
+
t.extra = E & 15, t.mode = An;
|
2329
|
+
case An:
|
2330
2330
|
if (t.extra) {
|
2331
|
-
for (
|
2331
|
+
for (I = t.extra; f < I; ) {
|
2332
2332
|
if (l === 0)
|
2333
2333
|
break e;
|
2334
2334
|
l--, s += i[a++] << f, f += 8;
|
2335
2335
|
}
|
2336
2336
|
t.length += s & (1 << t.extra) - 1, s >>>= t.extra, f -= t.extra, t.back += t.extra;
|
2337
2337
|
}
|
2338
|
-
t.was = t.length, t.mode =
|
2339
|
-
case
|
2338
|
+
t.was = t.length, t.mode = On;
|
2339
|
+
case On:
|
2340
2340
|
for (; k = t.distcode[s & (1 << t.distbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
|
2341
2341
|
if (l === 0)
|
2342
2342
|
break e;
|
@@ -2354,10 +2354,10 @@ const so = (e) => {
|
|
2354
2354
|
e.msg = "invalid distance code", t.mode = O;
|
2355
2355
|
break;
|
2356
2356
|
}
|
2357
|
-
t.offset = C, t.extra = E & 15, t.mode =
|
2358
|
-
case
|
2357
|
+
t.offset = C, t.extra = E & 15, t.mode = zn;
|
2358
|
+
case zn:
|
2359
2359
|
if (t.extra) {
|
2360
|
-
for (
|
2360
|
+
for (I = t.extra; f < I; ) {
|
2361
2361
|
if (l === 0)
|
2362
2362
|
break e;
|
2363
2363
|
l--, s += i[a++] << f, f += 8;
|
@@ -2368,8 +2368,8 @@ const so = (e) => {
|
|
2368
2368
|
e.msg = "invalid distance too far back", t.mode = O;
|
2369
2369
|
break;
|
2370
2370
|
}
|
2371
|
-
t.mode =
|
2372
|
-
case
|
2371
|
+
t.mode = Rn;
|
2372
|
+
case Rn:
|
2373
2373
|
if (u === 0)
|
2374
2374
|
break e;
|
2375
2375
|
if (h = c - u, t.offset > h) {
|
@@ -2386,12 +2386,12 @@ const so = (e) => {
|
|
2386
2386
|
while (--h);
|
2387
2387
|
t.length === 0 && (t.mode = Qe);
|
2388
2388
|
break;
|
2389
|
-
case
|
2389
|
+
case Bn:
|
2390
2390
|
if (u === 0)
|
2391
2391
|
break e;
|
2392
2392
|
r[o++] = t.length, u--, t.mode = Qe;
|
2393
2393
|
break;
|
2394
|
-
case
|
2394
|
+
case yt:
|
2395
2395
|
if (t.wrap) {
|
2396
2396
|
for (; f < 32; ) {
|
2397
2397
|
if (l === 0)
|
@@ -2399,14 +2399,14 @@ const so = (e) => {
|
|
2399
2399
|
l--, s |= i[a++] << f, f += 8;
|
2400
2400
|
}
|
2401
2401
|
if (c -= u, e.total_out += c, t.total += c, t.wrap & 4 && c && (e.adler = t.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
|
2402
|
-
t.flags ? R(t.check, r, c, o - c) : Ue(t.check, r, c, o - c)), c = u, t.wrap & 4 && (t.flags ? s :
|
2402
|
+
t.flags ? R(t.check, r, c, o - c) : Ue(t.check, r, c, o - c)), c = u, t.wrap & 4 && (t.flags ? s : Vn(s)) !== t.check) {
|
2403
2403
|
e.msg = "incorrect data check", t.mode = O;
|
2404
2404
|
break;
|
2405
2405
|
}
|
2406
2406
|
s = 0, f = 0;
|
2407
2407
|
}
|
2408
|
-
t.mode =
|
2409
|
-
case
|
2408
|
+
t.mode = Un;
|
2409
|
+
case Un:
|
2410
2410
|
if (t.wrap && t.flags) {
|
2411
2411
|
for (; f < 32; ) {
|
2412
2412
|
if (l === 0)
|
@@ -2419,21 +2419,21 @@ const so = (e) => {
|
|
2419
2419
|
}
|
2420
2420
|
s = 0, f = 0;
|
2421
2421
|
}
|
2422
|
-
t.mode =
|
2423
|
-
case
|
2422
|
+
t.mode = Dn;
|
2423
|
+
case Dn:
|
2424
2424
|
w = Ja;
|
2425
2425
|
break e;
|
2426
2426
|
case O:
|
2427
|
-
w =
|
2427
|
+
w = mi;
|
2428
2428
|
break e;
|
2429
|
+
case vi:
|
2430
|
+
return yi;
|
2429
2431
|
case ki:
|
2430
|
-
return vi;
|
2431
|
-
case $i:
|
2432
2432
|
default:
|
2433
2433
|
return P;
|
2434
2434
|
}
|
2435
|
-
return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, (t.wsize || c !== e.avail_out && t.mode < O && (t.mode <
|
2436
|
-
t.flags ? R(t.check, r, c, e.next_out - c) : Ue(t.check, r, c, e.next_out - c)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === K ? 128 : 0) + (t.mode === Je || t.mode ===
|
2435
|
+
return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, (t.wsize || c !== e.avail_out && t.mode < O && (t.mode < yt || n !== pn)) && Ni(e, e.output, e.next_out, c - e.avail_out), d -= e.avail_in, c -= e.avail_out, e.total_in += d, e.total_out += c, t.total += c, t.wrap & 4 && c && (e.adler = t.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
2436
|
+
t.flags ? R(t.check, r, c, e.next_out - c) : Ue(t.check, r, c, e.next_out - c)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === K ? 128 : 0) + (t.mode === Je || t.mode === mt ? 256 : 0), (d === 0 && c === 0 || n === pn) && w === he && (w = eo), w;
|
2437
2437
|
}, fo = (e) => {
|
2438
2438
|
if (ce(e))
|
2439
2439
|
return P;
|
@@ -2447,9 +2447,9 @@ const so = (e) => {
|
|
2447
2447
|
}, ho = (e, n) => {
|
2448
2448
|
const t = n.length;
|
2449
2449
|
let i, r, a;
|
2450
|
-
return ce(e) || (i = e.state, i.wrap !== 0 && i.mode !== at) ? P : i.mode === at && (r = 1, r = Ue(r, n, t, 0), r !== i.check) ?
|
2450
|
+
return ce(e) || (i = e.state, i.wrap !== 0 && i.mode !== at) ? P : i.mode === at && (r = 1, r = Ue(r, n, t, 0), r !== i.check) ? mi : (a = Ni(e, n, t, t), a ? (i.mode = vi, yi) : (i.havedict = 1, he));
|
2451
2451
|
};
|
2452
|
-
var co =
|
2452
|
+
var co = Ei, po = Ci, _o = $i, bo = oo, go = Si, wo = lo, mo = fo, yo = uo, vo = ho, ko = "pako inflate (from Nodeca project)", X = {
|
2453
2453
|
inflateReset: co,
|
2454
2454
|
inflateReset2: po,
|
2455
2455
|
inflateResetKeep: _o,
|
@@ -2469,20 +2469,20 @@ const Ii = Object.prototype.toString, {
|
|
2469
2469
|
Z_NO_FLUSH: Co,
|
2470
2470
|
Z_FINISH: So,
|
2471
2471
|
Z_OK: Le,
|
2472
|
-
Z_STREAM_END:
|
2473
|
-
Z_NEED_DICT:
|
2472
|
+
Z_STREAM_END: $t,
|
2473
|
+
Z_NEED_DICT: Et,
|
2474
2474
|
Z_STREAM_ERROR: No,
|
2475
|
-
Z_DATA_ERROR:
|
2476
|
-
Z_MEM_ERROR:
|
2475
|
+
Z_DATA_ERROR: Fn,
|
2476
|
+
Z_MEM_ERROR: Io
|
2477
2477
|
} = xe;
|
2478
2478
|
function He(e) {
|
2479
|
-
this.options =
|
2479
|
+
this.options = ft.assign({
|
2480
2480
|
chunkSize: 1024 * 64,
|
2481
2481
|
windowBits: 15,
|
2482
2482
|
to: ""
|
2483
2483
|
}, e || {});
|
2484
2484
|
const n = this.options;
|
2485
|
-
n.raw && n.windowBits >= 0 && n.windowBits < 16 && (n.windowBits = -n.windowBits, n.windowBits === 0 && (n.windowBits = -15)), n.windowBits >= 0 && n.windowBits < 16 && !(e && e.windowBits) && (n.windowBits += 32), n.windowBits > 15 && n.windowBits < 48 && (n.windowBits & 15 || (n.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new
|
2485
|
+
n.raw && n.windowBits >= 0 && n.windowBits < 16 && (n.windowBits = -n.windowBits, n.windowBits === 0 && (n.windowBits = -15)), n.windowBits >= 0 && n.windowBits < 16 && !(e && e.windowBits) && (n.windowBits += 32), n.windowBits > 15 && n.windowBits < 48 && (n.windowBits & 15 || (n.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new _i(), this.strm.avail_out = 0;
|
2486
2486
|
let t = X.inflateInit2(
|
2487
2487
|
this.strm,
|
2488
2488
|
n.windowBits
|
@@ -2498,23 +2498,23 @@ He.prototype.push = function(e, n) {
|
|
2498
2498
|
if (this.ended)
|
2499
2499
|
return !1;
|
2500
2500
|
for (n === ~~n ? o = n : o = n === !0 ? So : Co, Ii.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
|
2501
|
-
for (t.avail_out === 0 && (t.output = new Uint8Array(i), t.next_out = 0, t.avail_out = i), a = X.inflate(t, o), a ===
|
2501
|
+
for (t.avail_out === 0 && (t.output = new Uint8Array(i), t.next_out = 0, t.avail_out = i), a = X.inflate(t, o), a === Et && r && (a = X.inflateSetDictionary(t, r), a === Le ? a = X.inflate(t, o) : a === Fn && (a = Et)); t.avail_in > 0 && a === $t && t.state.wrap > 0 && e[t.next_in] !== 0; )
|
2502
2502
|
X.inflateReset(t), a = X.inflate(t, o);
|
2503
2503
|
switch (a) {
|
2504
2504
|
case No:
|
2505
|
-
case
|
2506
|
-
case
|
2507
|
-
case
|
2505
|
+
case Fn:
|
2506
|
+
case Et:
|
2507
|
+
case Io:
|
2508
2508
|
return this.onEnd(a), this.ended = !0, !1;
|
2509
2509
|
}
|
2510
|
-
if (l = t.avail_out, t.next_out && (t.avail_out === 0 || a ===
|
2510
|
+
if (l = t.avail_out, t.next_out && (t.avail_out === 0 || a === $t))
|
2511
2511
|
if (this.options.to === "string") {
|
2512
2512
|
let u = Ve.utf8border(t.output, t.next_out), s = t.next_out - u, f = Ve.buf2string(t.output, u);
|
2513
2513
|
t.next_out = s, t.avail_out = i - s, s && t.output.set(t.output.subarray(u, u + s), 0), this.onData(f);
|
2514
2514
|
} else
|
2515
2515
|
this.onData(t.output.length === t.next_out ? t.output : t.output.subarray(0, t.next_out));
|
2516
2516
|
if (!(a === Le && l === 0)) {
|
2517
|
-
if (a ===
|
2517
|
+
if (a === $t)
|
2518
2518
|
return a = X.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, !0;
|
2519
2519
|
if (t.avail_in === 0)
|
2520
2520
|
break;
|
@@ -2526,18 +2526,18 @@ He.prototype.onData = function(e) {
|
|
2526
2526
|
this.chunks.push(e);
|
2527
2527
|
};
|
2528
2528
|
He.prototype.onEnd = function(e) {
|
2529
|
-
e === Le && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result =
|
2529
|
+
e === Le && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = ft.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
2530
2530
|
};
|
2531
|
-
function
|
2531
|
+
function Yt(e, n) {
|
2532
2532
|
const t = new He(n);
|
2533
2533
|
if (t.push(e), t.err)
|
2534
2534
|
throw t.msg || ge[t.err];
|
2535
2535
|
return t.result;
|
2536
2536
|
}
|
2537
|
-
function
|
2538
|
-
return n = n || {}, n.raw = !0,
|
2537
|
+
function To(e, n) {
|
2538
|
+
return n = n || {}, n.raw = !0, Yt(e, n);
|
2539
2539
|
}
|
2540
|
-
var Ao = He, Oo =
|
2540
|
+
var Ao = He, Oo = Yt, zo = To, Ro = Yt, Bo = xe, Uo = {
|
2541
2541
|
Inflate: Ao,
|
2542
2542
|
inflate: Oo,
|
2543
2543
|
inflateRaw: zo,
|
@@ -2575,7 +2575,7 @@ function et(e) {
|
|
2575
2575
|
throw new DOMException("aborted", "AbortError");
|
2576
2576
|
}
|
2577
2577
|
const Zo = 1, xo = 2, Mo = 3;
|
2578
|
-
function
|
2578
|
+
function Ct(e, n, t, i) {
|
2579
2579
|
return e < i && n >= t;
|
2580
2580
|
}
|
2581
2581
|
function Ho(e) {
|
@@ -2617,10 +2617,10 @@ function Ho(e) {
|
|
2617
2617
|
leafParser: i
|
2618
2618
|
};
|
2619
2619
|
}
|
2620
|
-
class
|
2620
|
+
class Ti {
|
2621
2621
|
constructor(n, t, i, r, a, o) {
|
2622
|
-
if (this.bbi = n, this.refsByName = t, this.cirTreeOffset = i, this.isBigEndian = r, this.isCompressed = a, this.blockType = o, this.featureCache = new
|
2623
|
-
cache: new
|
2622
|
+
if (this.bbi = n, this.refsByName = t, this.cirTreeOffset = i, this.isBigEndian = r, this.isCompressed = a, this.blockType = o, this.featureCache = new Gn({
|
2623
|
+
cache: new Yn({ maxSize: 1e3 }),
|
2624
2624
|
fill: async (u, s) => {
|
2625
2625
|
const f = Number(u.length), d = Number(u.offset), { buffer: c } = await this.bbi.read(Q.Buffer.alloc(f), 0, f, d, {
|
2626
2626
|
signal: s
|
@@ -2701,7 +2701,7 @@ class Ai {
|
|
2701
2701
|
const c = o.getFloat32(a, !0);
|
2702
2702
|
a += 4;
|
2703
2703
|
const h = o.getFloat32(a, !0);
|
2704
|
-
a += 4, a += 4, (!i || l === i.chrId &&
|
2704
|
+
a += 4, a += 4, (!i || l === i.chrId && Ct(u, s, i.start, i.end)) && r.push({
|
2705
2705
|
start: u,
|
2706
2706
|
end: s,
|
2707
2707
|
maxScore: c,
|
@@ -2719,7 +2719,7 @@ class Ai {
|
|
2719
2719
|
const l = this.bigBedParser.parse(n.subarray(o));
|
2720
2720
|
a.push({ ...l, uniqueId: `bb-${i + o}` }), o += l.offset;
|
2721
2721
|
}
|
2722
|
-
return r ? a.filter((l) =>
|
2722
|
+
return r ? a.filter((l) => Ct(l.start, l.end, r.start, r.end)) : a;
|
2723
2723
|
}
|
2724
2724
|
parseBigWigBlock(n, t, i) {
|
2725
2725
|
const r = n.subarray(t), a = new DataView(r.buffer, r.byteOffset, r.length);
|
@@ -2767,7 +2767,7 @@ class Ai {
|
|
2767
2767
|
break;
|
2768
2768
|
}
|
2769
2769
|
}
|
2770
|
-
return i ? c.filter((h) =>
|
2770
|
+
return i ? c.filter((h) => Ct(h.start, h.end, i.start, i.end)) : c;
|
2771
2771
|
}
|
2772
2772
|
async readFeatures(n, t, i = {}) {
|
2773
2773
|
try {
|
@@ -2801,18 +2801,18 @@ class Ai {
|
|
2801
2801
|
}
|
2802
2802
|
}
|
2803
2803
|
}
|
2804
|
-
var
|
2805
|
-
return
|
2804
|
+
var Lt = function(e, n) {
|
2805
|
+
return Lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
2806
2806
|
t.__proto__ = i;
|
2807
2807
|
} || function(t, i) {
|
2808
2808
|
for (var r in i)
|
2809
2809
|
Object.prototype.hasOwnProperty.call(i, r) && (t[r] = i[r]);
|
2810
|
-
},
|
2810
|
+
}, Lt(e, n);
|
2811
2811
|
};
|
2812
|
-
function
|
2812
|
+
function Kt(e, n) {
|
2813
2813
|
if (typeof n != "function" && n !== null)
|
2814
2814
|
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
2815
|
-
|
2815
|
+
Lt(e, n);
|
2816
2816
|
function t() {
|
2817
2817
|
this.constructor = e;
|
2818
2818
|
}
|
@@ -2845,7 +2845,7 @@ function jo(e, n, t, i) {
|
|
2845
2845
|
s((i = i.apply(e, n || [])).next());
|
2846
2846
|
});
|
2847
2847
|
}
|
2848
|
-
function
|
2848
|
+
function Ai(e, n) {
|
2849
2849
|
var t = { label: 0, sent: function() {
|
2850
2850
|
if (a[0] & 1)
|
2851
2851
|
throw a[1];
|
@@ -2922,7 +2922,7 @@ function Fe(e) {
|
|
2922
2922
|
};
|
2923
2923
|
throw new TypeError(n ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
2924
2924
|
}
|
2925
|
-
function
|
2925
|
+
function Ft(e, n) {
|
2926
2926
|
var t = typeof Symbol == "function" && e[Symbol.iterator];
|
2927
2927
|
if (!t)
|
2928
2928
|
return e;
|
@@ -2942,7 +2942,7 @@ function ot(e, n) {
|
|
2942
2942
|
}
|
2943
2943
|
return a;
|
2944
2944
|
}
|
2945
|
-
function
|
2945
|
+
function Pt(e, n, t) {
|
2946
2946
|
if (t || arguments.length === 2)
|
2947
2947
|
for (var i = 0, r = n.length, a; i < r; i++)
|
2948
2948
|
(a || !(i in n)) && (a || (a = Array.prototype.slice.call(n, 0, i)), a[i] = n[i]);
|
@@ -3008,13 +3008,13 @@ function Yo(e) {
|
|
3008
3008
|
function z(e) {
|
3009
3009
|
return typeof e == "function";
|
3010
3010
|
}
|
3011
|
-
function
|
3011
|
+
function Oi(e) {
|
3012
3012
|
var n = function(i) {
|
3013
3013
|
Error.call(i), i.stack = new Error().stack;
|
3014
3014
|
}, t = e(n);
|
3015
3015
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
3016
3016
|
}
|
3017
|
-
var
|
3017
|
+
var St = Oi(function(e) {
|
3018
3018
|
return function(t) {
|
3019
3019
|
e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
3020
3020
|
` + t.map(function(i, r) {
|
@@ -3023,13 +3023,13 @@ var Tt = zi(function(e) {
|
|
3023
3023
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
3024
3024
|
};
|
3025
3025
|
});
|
3026
|
-
function
|
3026
|
+
function Pn(e, n) {
|
3027
3027
|
if (e) {
|
3028
3028
|
var t = e.indexOf(n);
|
3029
3029
|
0 <= t && e.splice(t, 1);
|
3030
3030
|
}
|
3031
3031
|
}
|
3032
|
-
var
|
3032
|
+
var Wt = function() {
|
3033
3033
|
function e(n) {
|
3034
3034
|
this.initialTeardown = n, this.closed = !1, this._parentage = null, this._finalizers = null;
|
3035
3035
|
}
|
@@ -3062,7 +3062,7 @@ var Xt = function() {
|
|
3062
3062
|
try {
|
3063
3063
|
f();
|
3064
3064
|
} catch (g) {
|
3065
|
-
a = g instanceof
|
3065
|
+
a = g instanceof St ? g.errors : [g];
|
3066
3066
|
}
|
3067
3067
|
var d = this._finalizers;
|
3068
3068
|
if (d) {
|
@@ -3071,9 +3071,9 @@ var Xt = function() {
|
|
3071
3071
|
for (var c = Fe(d), h = c.next(); !h.done; h = c.next()) {
|
3072
3072
|
var _ = h.value;
|
3073
3073
|
try {
|
3074
|
-
|
3074
|
+
Zn(_);
|
3075
3075
|
} catch (g) {
|
3076
|
-
a = a ?? [], g instanceof
|
3076
|
+
a = a ?? [], g instanceof St ? a = Pt(Pt([], Ft(a)), Ft(g.errors)) : a.push(g);
|
3077
3077
|
}
|
3078
3078
|
}
|
3079
3079
|
} catch (g) {
|
@@ -3088,13 +3088,13 @@ var Xt = function() {
|
|
3088
3088
|
}
|
3089
3089
|
}
|
3090
3090
|
if (a)
|
3091
|
-
throw new
|
3091
|
+
throw new St(a);
|
3092
3092
|
}
|
3093
3093
|
}, e.prototype.add = function(n) {
|
3094
3094
|
var t;
|
3095
3095
|
if (n && n !== this)
|
3096
3096
|
if (this.closed)
|
3097
|
-
|
3097
|
+
Zn(n);
|
3098
3098
|
else {
|
3099
3099
|
if (n instanceof e) {
|
3100
3100
|
if (n.closed || n._hasParent(this))
|
@@ -3111,59 +3111,58 @@ var Xt = function() {
|
|
3111
3111
|
this._parentage = Array.isArray(t) ? (t.push(n), t) : t ? [t, n] : n;
|
3112
3112
|
}, e.prototype._removeParent = function(n) {
|
3113
3113
|
var t = this._parentage;
|
3114
|
-
t === n ? this._parentage = null : Array.isArray(t) &&
|
3114
|
+
t === n ? this._parentage = null : Array.isArray(t) && Pn(t, n);
|
3115
3115
|
}, e.prototype.remove = function(n) {
|
3116
3116
|
var t = this._finalizers;
|
3117
|
-
t &&
|
3117
|
+
t && Pn(t, n), n instanceof e && n._removeParent(this);
|
3118
3118
|
}, e.EMPTY = function() {
|
3119
3119
|
var n = new e();
|
3120
3120
|
return n.closed = !0, n;
|
3121
3121
|
}(), e;
|
3122
3122
|
}();
|
3123
|
-
|
3124
|
-
function
|
3125
|
-
return e instanceof
|
3123
|
+
Wt.EMPTY;
|
3124
|
+
function zi(e) {
|
3125
|
+
return e instanceof Wt || e && "closed" in e && z(e.remove) && z(e.add) && z(e.unsubscribe);
|
3126
3126
|
}
|
3127
|
-
function
|
3127
|
+
function Zn(e) {
|
3128
3128
|
z(e) ? e() : e.unsubscribe();
|
3129
3129
|
}
|
3130
|
-
var
|
3130
|
+
var Ri = {
|
3131
3131
|
onUnhandledError: null,
|
3132
3132
|
onStoppedNotification: null,
|
3133
3133
|
Promise: void 0,
|
3134
3134
|
useDeprecatedSynchronousErrorHandling: !1,
|
3135
3135
|
useDeprecatedNextContext: !1
|
3136
|
-
},
|
3136
|
+
}, Bi = {
|
3137
3137
|
setTimeout: function(e, n) {
|
3138
3138
|
for (var t = [], i = 2; i < arguments.length; i++)
|
3139
3139
|
t[i - 2] = arguments[i];
|
3140
|
-
|
3141
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r, st([e, n], ot(t))) : setTimeout.apply(void 0, st([e, n], ot(t)));
|
3140
|
+
return setTimeout.apply(void 0, Pt([e, n], Ft(t)));
|
3142
3141
|
},
|
3143
3142
|
clearTimeout: function(e) {
|
3144
|
-
var n =
|
3143
|
+
var n = Bi.delegate;
|
3145
3144
|
return ((n == null ? void 0 : n.clearTimeout) || clearTimeout)(e);
|
3146
3145
|
},
|
3147
3146
|
delegate: void 0
|
3148
3147
|
};
|
3149
3148
|
function Ui(e) {
|
3150
|
-
|
3149
|
+
Bi.setTimeout(function() {
|
3151
3150
|
throw e;
|
3152
3151
|
});
|
3153
3152
|
}
|
3154
|
-
function
|
3153
|
+
function xn() {
|
3155
3154
|
}
|
3156
3155
|
function Ko(e) {
|
3157
3156
|
e();
|
3158
3157
|
}
|
3159
|
-
var
|
3160
|
-
|
3158
|
+
var Xt = function(e) {
|
3159
|
+
Kt(n, e);
|
3161
3160
|
function n(t) {
|
3162
3161
|
var i = e.call(this) || this;
|
3163
|
-
return i.isStopped = !1, t ? (i.destination = t,
|
3162
|
+
return i.isStopped = !1, t ? (i.destination = t, zi(t) && t.add(i)) : i.destination = Jo, i;
|
3164
3163
|
}
|
3165
3164
|
return n.create = function(t, i, r) {
|
3166
|
-
return new
|
3165
|
+
return new ot(t, i, r);
|
3167
3166
|
}, n.prototype.next = function(t) {
|
3168
3167
|
this.isStopped || this._next(t);
|
3169
3168
|
}, n.prototype.error = function(t) {
|
@@ -3187,8 +3186,8 @@ var qt = function(e) {
|
|
3187
3186
|
this.unsubscribe();
|
3188
3187
|
}
|
3189
3188
|
}, n;
|
3190
|
-
}(
|
3191
|
-
function
|
3189
|
+
}(Wt), Wo = Function.prototype.bind;
|
3190
|
+
function Nt(e, n) {
|
3192
3191
|
return Wo.call(e, n);
|
3193
3192
|
}
|
3194
3193
|
var Xo = function() {
|
@@ -3222,8 +3221,8 @@ var Xo = function() {
|
|
3222
3221
|
tt(t);
|
3223
3222
|
}
|
3224
3223
|
}, e;
|
3225
|
-
}(),
|
3226
|
-
|
3224
|
+
}(), ot = function(e) {
|
3225
|
+
Kt(n, e);
|
3227
3226
|
function n(t, i, r) {
|
3228
3227
|
var a = e.call(this) || this, o;
|
3229
3228
|
if (z(t) || !t)
|
@@ -3234,18 +3233,18 @@ var Xo = function() {
|
|
3234
3233
|
};
|
3235
3234
|
else {
|
3236
3235
|
var l;
|
3237
|
-
a &&
|
3236
|
+
a && Ri.useDeprecatedNextContext ? (l = Object.create(t), l.unsubscribe = function() {
|
3238
3237
|
return a.unsubscribe();
|
3239
3238
|
}, o = {
|
3240
|
-
next: t.next &&
|
3241
|
-
error: t.error &&
|
3242
|
-
complete: t.complete &&
|
3239
|
+
next: t.next && Nt(t.next, l),
|
3240
|
+
error: t.error && Nt(t.error, l),
|
3241
|
+
complete: t.complete && Nt(t.complete, l)
|
3243
3242
|
}) : o = t;
|
3244
3243
|
}
|
3245
3244
|
return a.destination = new Xo(o), a;
|
3246
3245
|
}
|
3247
3246
|
return n;
|
3248
|
-
}(
|
3247
|
+
}(Xt);
|
3249
3248
|
function tt(e) {
|
3250
3249
|
Ui(e);
|
3251
3250
|
}
|
@@ -3254,10 +3253,10 @@ function qo(e) {
|
|
3254
3253
|
}
|
3255
3254
|
var Jo = {
|
3256
3255
|
closed: !0,
|
3257
|
-
next:
|
3256
|
+
next: xn,
|
3258
3257
|
error: qo,
|
3259
|
-
complete:
|
3260
|
-
},
|
3258
|
+
complete: xn
|
3259
|
+
}, qt = function() {
|
3261
3260
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
3262
3261
|
}();
|
3263
3262
|
function Di(e) {
|
@@ -3278,7 +3277,7 @@ var Z = function() {
|
|
3278
3277
|
var t = new e();
|
3279
3278
|
return t.source = this, t.operator = n, t;
|
3280
3279
|
}, e.prototype.subscribe = function(n, t, i) {
|
3281
|
-
var r = this, a = ts(n) ? n : new
|
3280
|
+
var r = this, a = ts(n) ? n : new ot(n, t, i);
|
3282
3281
|
return Ko(function() {
|
3283
3282
|
var o = r, l = o.operator, u = o.source;
|
3284
3283
|
a.add(l ? l.call(a, u) : u ? r._subscribe(a) : r._trySubscribe(a));
|
@@ -3291,8 +3290,8 @@ var Z = function() {
|
|
3291
3290
|
}
|
3292
3291
|
}, e.prototype.forEach = function(n, t) {
|
3293
3292
|
var i = this;
|
3294
|
-
return t =
|
3295
|
-
var o = new
|
3293
|
+
return t = Mn(t), new t(function(r, a) {
|
3294
|
+
var o = new ot({
|
3296
3295
|
next: function(l) {
|
3297
3296
|
try {
|
3298
3297
|
n(l);
|
@@ -3308,7 +3307,7 @@ var Z = function() {
|
|
3308
3307
|
}, e.prototype._subscribe = function(n) {
|
3309
3308
|
var t;
|
3310
3309
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(n);
|
3311
|
-
}, e.prototype[
|
3310
|
+
}, e.prototype[qt] = function() {
|
3312
3311
|
return this;
|
3313
3312
|
}, e.prototype.pipe = function() {
|
3314
3313
|
for (var n = [], t = 0; t < arguments.length; t++)
|
@@ -3316,7 +3315,7 @@ var Z = function() {
|
|
3316
3315
|
return Qo(n)(this);
|
3317
3316
|
}, e.prototype.toPromise = function(n) {
|
3318
3317
|
var t = this;
|
3319
|
-
return n =
|
3318
|
+
return n = Mn(n), new n(function(i, r) {
|
3320
3319
|
var a;
|
3321
3320
|
t.subscribe(function(o) {
|
3322
3321
|
return a = o;
|
@@ -3330,15 +3329,15 @@ var Z = function() {
|
|
3330
3329
|
return new e(n);
|
3331
3330
|
}, e;
|
3332
3331
|
}();
|
3333
|
-
function
|
3332
|
+
function Mn(e) {
|
3334
3333
|
var n;
|
3335
|
-
return (n = e ??
|
3334
|
+
return (n = e ?? Ri.Promise) !== null && n !== void 0 ? n : Promise;
|
3336
3335
|
}
|
3337
3336
|
function es(e) {
|
3338
3337
|
return e && z(e.next) && z(e.error) && z(e.complete);
|
3339
3338
|
}
|
3340
3339
|
function ts(e) {
|
3341
|
-
return e && e instanceof
|
3340
|
+
return e && e instanceof Xt || es(e) && zi(e);
|
3342
3341
|
}
|
3343
3342
|
function ns(e) {
|
3344
3343
|
return z(e == null ? void 0 : e.lift);
|
@@ -3360,7 +3359,7 @@ function Pe(e, n, t, i, r) {
|
|
3360
3359
|
return new is(e, n, t, i, r);
|
3361
3360
|
}
|
3362
3361
|
var is = function(e) {
|
3363
|
-
|
3362
|
+
Kt(n, e);
|
3364
3363
|
function n(t, i, r, a, o, l) {
|
3365
3364
|
var u = e.call(this, t) || this;
|
3366
3365
|
return u.onFinalize = o, u.shouldUnsubscribe = l, u._next = i ? function(s) {
|
@@ -3394,7 +3393,7 @@ var is = function(e) {
|
|
3394
3393
|
e.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
3395
3394
|
}
|
3396
3395
|
}, n;
|
3397
|
-
}(
|
3396
|
+
}(Xt), rs = new Z(function(e) {
|
3398
3397
|
return e.complete();
|
3399
3398
|
});
|
3400
3399
|
function as(e) {
|
@@ -3416,7 +3415,7 @@ function Fi(e) {
|
|
3416
3415
|
return z(e == null ? void 0 : e.then);
|
3417
3416
|
}
|
3418
3417
|
function Pi(e) {
|
3419
|
-
return z(e[
|
3418
|
+
return z(e[qt]);
|
3420
3419
|
}
|
3421
3420
|
function Zi(e) {
|
3422
3421
|
return Symbol.asyncIterator && z(e == null ? void 0 : e[Symbol.asyncIterator]);
|
@@ -3434,7 +3433,7 @@ function Hi(e) {
|
|
3434
3433
|
function ji(e) {
|
3435
3434
|
return Go(this, arguments, function() {
|
3436
3435
|
var t, i, r, a;
|
3437
|
-
return
|
3436
|
+
return Ai(this, function(o) {
|
3438
3437
|
switch (o.label) {
|
3439
3438
|
case 0:
|
3440
3439
|
t = e.getReader(), o.label = 1;
|
@@ -3486,7 +3485,7 @@ function Ee(e) {
|
|
3486
3485
|
}
|
3487
3486
|
function fs(e) {
|
3488
3487
|
return new Z(function(n) {
|
3489
|
-
var t = e[
|
3488
|
+
var t = e[qt]();
|
3490
3489
|
if (z(t.subscribe))
|
3491
3490
|
return t.subscribe(n);
|
3492
3491
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
@@ -3544,7 +3543,7 @@ function ps(e, n) {
|
|
3544
3543
|
var t, i, r, a;
|
3545
3544
|
return jo(this, void 0, void 0, function() {
|
3546
3545
|
var o, l;
|
3547
|
-
return
|
3546
|
+
return Ai(this, function(u) {
|
3548
3547
|
switch (u.label) {
|
3549
3548
|
case 0:
|
3550
3549
|
u.trys.push([0, 5, 6, 11]), t = Yo(e), u.label = 1;
|
@@ -3682,7 +3681,7 @@ function ys(e, n) {
|
|
3682
3681
|
function vs(e, n) {
|
3683
3682
|
return n ? ys(e, n) : Ee(e);
|
3684
3683
|
}
|
3685
|
-
var ks =
|
3684
|
+
var ks = Oi(function(e) {
|
3686
3685
|
return function() {
|
3687
3686
|
e(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
3688
3687
|
};
|
@@ -3690,7 +3689,7 @@ var ks = zi(function(e) {
|
|
3690
3689
|
function qi(e, n) {
|
3691
3690
|
var t = typeof n == "object";
|
3692
3691
|
return new Promise(function(i, r) {
|
3693
|
-
var a = new
|
3692
|
+
var a = new ot({
|
3694
3693
|
next: function(o) {
|
3695
3694
|
i(o), a.unsubscribe();
|
3696
3695
|
},
|
@@ -3780,16 +3779,16 @@ function er(e, n) {
|
|
3780
3779
|
var Ns = function(e, n) {
|
3781
3780
|
return e.push(n), e;
|
3782
3781
|
};
|
3783
|
-
function
|
3782
|
+
function Is() {
|
3784
3783
|
return $e(function(e, n) {
|
3785
3784
|
er(Ns, [])(e).subscribe(n);
|
3786
3785
|
});
|
3787
3786
|
}
|
3788
|
-
const
|
3789
|
-
function
|
3787
|
+
const Hn = -2003829722, It = -2021002517;
|
3788
|
+
function Ts(e) {
|
3790
3789
|
return new TextDecoder().decode(e);
|
3791
3790
|
}
|
3792
|
-
function
|
3791
|
+
function jn(e) {
|
3793
3792
|
const n = e ? "big" : "little", t = new N().endianess(n).int32("magic").uint16("version").uint16("numZoomLevels").uint64("chromTreeOffset").uint64("unzoomedDataOffset").uint64("unzoomedIndexOffset").uint16("fieldCount").uint16("definedFieldCount").uint64("asOffset").uint64("totalSummaryOffset").uint32("uncompressBufSize").uint64("extHeaderOffset").array("zoomLevels", {
|
3794
3793
|
length: "numZoomLevels",
|
3795
3794
|
type: new N().endianess(n).uint32("reductionLevel").uint32("reserved").uint64("dataOffset").uint64("indexOffset")
|
@@ -3833,12 +3832,12 @@ class tr {
|
|
3833
3832
|
return { ...t, ...i };
|
3834
3833
|
}
|
3835
3834
|
async _getMainHeader(n, t = 2e3) {
|
3836
|
-
const { buffer: i } = await this.bbi.read(Q.Buffer.alloc(t), 0, t, 0, n), r = this._isBigEndian(i), a =
|
3837
|
-
if (o.fileType = l ===
|
3835
|
+
const { buffer: i } = await this.bbi.read(Q.Buffer.alloc(t), 0, t, 0, n), r = this._isBigEndian(i), a = jn(r), o = a.headerParser.parse(i), { magic: l, asOffset: u, totalSummaryOffset: s } = o;
|
3836
|
+
if (o.fileType = l === It ? "bigbed" : "bigwig", u > t || s > t)
|
3838
3837
|
return this._getMainHeader(n, t * 2);
|
3839
3838
|
if (u) {
|
3840
3839
|
const f = Number(o.asOffset);
|
3841
|
-
o.autoSql =
|
3840
|
+
o.autoSql = Ts(i.subarray(f, i.indexOf(0, f)));
|
3842
3841
|
}
|
3843
3842
|
if (o.totalSummaryOffset > t)
|
3844
3843
|
return this._getMainHeader(n, t * 2);
|
@@ -3850,9 +3849,9 @@ class tr {
|
|
3850
3849
|
}
|
3851
3850
|
_isBigEndian(n) {
|
3852
3851
|
let t = n.readInt32LE(0);
|
3853
|
-
if (t ===
|
3852
|
+
if (t === Hn || t === It)
|
3854
3853
|
return !1;
|
3855
|
-
if (t = n.readInt32BE(0), t ===
|
3854
|
+
if (t = n.readInt32BE(0), t === Hn || t === It)
|
3856
3855
|
return !0;
|
3857
3856
|
throw new Error("not a BigWig/BigBed file");
|
3858
3857
|
}
|
@@ -3863,7 +3862,7 @@ class tr {
|
|
3863
3862
|
const u = Number(n.chromTreeOffset);
|
3864
3863
|
for (; l % 4 !== 0; )
|
3865
3864
|
l += 1;
|
3866
|
-
const s = l - u, { buffer: f } = await this.bbi.read(Q.Buffer.alloc(s), 0, s, Number(u), t), d =
|
3865
|
+
const s = l - u, { buffer: f } = await this.bbi.read(Q.Buffer.alloc(s), 0, s, Number(u), t), d = jn(i), { keySize: c } = d.chromTreeParser.parse(f), h = new N().endianess(r).string("key", { stripNull: !0, length: c }).uint32("refId").uint32("refSize").saveOffset("offset"), _ = new N().endianess(r).skip(c).uint64("childOffset").saveOffset("offset"), g = 32, k = async (y) => {
|
3867
3866
|
let E = y;
|
3868
3867
|
if (E >= f.length)
|
3869
3868
|
throw new Error("reading beyond end of buffer");
|
@@ -3872,8 +3871,8 @@ class tr {
|
|
3872
3871
|
for (let S = 0; S < $; S += 1) {
|
3873
3872
|
const b = h.parse(f.subarray(E));
|
3874
3873
|
E += b.offset;
|
3875
|
-
const { key: w, refId: m, refSize: v } = b,
|
3876
|
-
o[this.renameRefSeqs(w)] = m, a[m] =
|
3874
|
+
const { key: w, refId: m, refSize: v } = b, I = { name: w, id: m, length: v };
|
3875
|
+
o[this.renameRefSeqs(w)] = m, a[m] = I;
|
3877
3876
|
}
|
3878
3877
|
else {
|
3879
3878
|
const S = [];
|
@@ -3895,7 +3894,7 @@ class tr {
|
|
3895
3894
|
*/
|
3896
3895
|
async getUnzoomedView(n) {
|
3897
3896
|
const { unzoomedIndexOffset: t, refsByName: i, uncompressBufSize: r, isBigEndian: a, fileType: o } = await this.getHeader(n);
|
3898
|
-
return new
|
3897
|
+
return new Ti(this.bbi, i, t, a, r > 0, o);
|
3899
3898
|
}
|
3900
3899
|
/**
|
3901
3900
|
* Gets features from a BigWig file
|
@@ -3916,7 +3915,7 @@ class tr {
|
|
3916
3915
|
}
|
3917
3916
|
async getFeatures(n, t, i, r) {
|
3918
3917
|
const a = await this.getFeatureStream(n, t, i, r);
|
3919
|
-
return (await qi(a.pipe(
|
3918
|
+
return (await qi(a.pipe(Is()))).flat();
|
3920
3919
|
}
|
3921
3920
|
}
|
3922
3921
|
class Fs extends tr {
|
@@ -3934,7 +3933,7 @@ class Fs extends tr {
|
|
3934
3933
|
const d = i[f];
|
3935
3934
|
if (d && d.reductionLevel <= 2 * u) {
|
3936
3935
|
const c = Number(d.indexOffset);
|
3937
|
-
return new
|
3936
|
+
return new Ti(this.bbi, r, c, o, l > 0, "summary");
|
3938
3937
|
}
|
3939
3938
|
}
|
3940
3939
|
return this.getUnzoomedView(t);
|
@@ -3945,8 +3944,8 @@ function As(e) {
|
|
3945
3944
|
}
|
3946
3945
|
class Ps extends tr {
|
3947
3946
|
constructor() {
|
3948
|
-
super(...arguments), this.readIndicesCache = new
|
3949
|
-
cache: new
|
3947
|
+
super(...arguments), this.readIndicesCache = new Gn({
|
3948
|
+
cache: new Yn({ maxSize: 1 }),
|
3950
3949
|
fill: (n, t) => this._readIndices({ ...n, signal: t })
|
3951
3950
|
});
|
3952
3951
|
}
|