@genome-spy/app 0.37.4 → 0.39.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.
@@ -0,0 +1,2382 @@
1
+ import { b as Pi } from "./index-1QVesMzU.js";
2
+ import { g as Da } from "./_commonjsHelpers-QtkX90xp.js";
3
+ var re = {};
4
+ (function(e) {
5
+ var i = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
6
+ function t(n, h) {
7
+ return Object.prototype.hasOwnProperty.call(n, h);
8
+ }
9
+ e.assign = function(n) {
10
+ for (var h = Array.prototype.slice.call(arguments, 1); h.length; ) {
11
+ var f = h.shift();
12
+ if (f) {
13
+ if (typeof f != "object")
14
+ throw new TypeError(f + "must be non-object");
15
+ for (var _ in f)
16
+ t(f, _) && (n[_] = f[_]);
17
+ }
18
+ }
19
+ return n;
20
+ }, e.shrinkBuf = function(n, h) {
21
+ return n.length === h ? n : n.subarray ? n.subarray(0, h) : (n.length = h, n);
22
+ };
23
+ var a = {
24
+ arraySet: function(n, h, f, _, l) {
25
+ if (h.subarray && n.subarray) {
26
+ n.set(h.subarray(f, f + _), l);
27
+ return;
28
+ }
29
+ for (var o = 0; o < _; o++)
30
+ n[l + o] = h[f + o];
31
+ },
32
+ // Join array of chunks to single array.
33
+ flattenChunks: function(n) {
34
+ var h, f, _, l, o, v;
35
+ for (_ = 0, h = 0, f = n.length; h < f; h++)
36
+ _ += n[h].length;
37
+ for (v = new Uint8Array(_), l = 0, h = 0, f = n.length; h < f; h++)
38
+ o = n[h], v.set(o, l), l += o.length;
39
+ return v;
40
+ }
41
+ }, r = {
42
+ arraySet: function(n, h, f, _, l) {
43
+ for (var o = 0; o < _; o++)
44
+ n[l + o] = h[f + o];
45
+ },
46
+ // Join array of chunks to single array.
47
+ flattenChunks: function(n) {
48
+ return [].concat.apply([], n);
49
+ }
50
+ };
51
+ e.setTyped = function(n) {
52
+ n ? (e.Buf8 = Uint8Array, e.Buf16 = Uint16Array, e.Buf32 = Int32Array, e.assign(e, a)) : (e.Buf8 = Array, e.Buf16 = Array, e.Buf32 = Array, e.assign(e, r));
53
+ }, e.setTyped(i);
54
+ })(re);
55
+ var qe = {}, ie = {}, Ze = {}, Ra = re, Ba = 4, jt = 0, Vt = 1, Ca = 2;
56
+ function Ie(e) {
57
+ for (var i = e.length; --i >= 0; )
58
+ e[i] = 0;
59
+ }
60
+ var Ua = 0, Ki = 1, $a = 2, Ma = 3, Ha = 258, $t = 29, Ge = 256, He = Ge + 1 + $t, Ne = 30, Mt = 19, Yi = 2 * He + 1, se = 15, bt = 16, Pa = 7, Ht = 256, Xi = 16, qi = 17, Gi = 18, Ot = (
61
+ /* extra bits for each length code */
62
+ [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]
63
+ ), ft = (
64
+ /* extra bits for each distance code */
65
+ [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
66
+ ), Ka = (
67
+ /* extra bits for each bit length code */
68
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
69
+ ), Wi = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Ya = 512, ne = new Array((He + 2) * 2);
70
+ Ie(ne);
71
+ var Be = new Array(Ne * 2);
72
+ Ie(Be);
73
+ var Pe = new Array(Ya);
74
+ Ie(Pe);
75
+ var Ke = new Array(Ha - Ma + 1);
76
+ Ie(Ke);
77
+ var Pt = new Array($t);
78
+ Ie(Pt);
79
+ var ut = new Array(Ne);
80
+ Ie(ut);
81
+ function pt(e, i, t, a, r) {
82
+ this.static_tree = e, this.extra_bits = i, this.extra_base = t, this.elems = a, this.max_length = r, this.has_stree = e && e.length;
83
+ }
84
+ var ji, Vi, Ji;
85
+ function xt(e, i) {
86
+ this.dyn_tree = e, this.max_code = 0, this.stat_desc = i;
87
+ }
88
+ function Qi(e) {
89
+ return e < 256 ? Pe[e] : Pe[256 + (e >>> 7)];
90
+ }
91
+ function Ye(e, i) {
92
+ e.pending_buf[e.pending++] = i & 255, e.pending_buf[e.pending++] = i >>> 8 & 255;
93
+ }
94
+ function C(e, i, t) {
95
+ e.bi_valid > bt - t ? (e.bi_buf |= i << e.bi_valid & 65535, Ye(e, e.bi_buf), e.bi_buf = i >> bt - e.bi_valid, e.bi_valid += t - bt) : (e.bi_buf |= i << e.bi_valid & 65535, e.bi_valid += t);
96
+ }
97
+ function ee(e, i, t) {
98
+ C(
99
+ e,
100
+ t[i * 2],
101
+ t[i * 2 + 1]
102
+ /*.Len*/
103
+ );
104
+ }
105
+ function ea(e, i) {
106
+ var t = 0;
107
+ do
108
+ t |= e & 1, e >>>= 1, t <<= 1;
109
+ while (--i > 0);
110
+ return t >>> 1;
111
+ }
112
+ function Xa(e) {
113
+ e.bi_valid === 16 ? (Ye(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : e.bi_valid >= 8 && (e.pending_buf[e.pending++] = e.bi_buf & 255, e.bi_buf >>= 8, e.bi_valid -= 8);
114
+ }
115
+ function qa(e, i) {
116
+ var t = i.dyn_tree, a = i.max_code, r = i.stat_desc.static_tree, n = i.stat_desc.has_stree, h = i.stat_desc.extra_bits, f = i.stat_desc.extra_base, _ = i.stat_desc.max_length, l, o, v, d, u, g, w = 0;
117
+ for (d = 0; d <= se; d++)
118
+ e.bl_count[d] = 0;
119
+ for (t[e.heap[e.heap_max] * 2 + 1] = 0, l = e.heap_max + 1; l < Yi; l++)
120
+ o = e.heap[l], d = t[t[o * 2 + 1] * 2 + 1] + 1, d > _ && (d = _, w++), t[o * 2 + 1] = d, !(o > a) && (e.bl_count[d]++, u = 0, o >= f && (u = h[o - f]), g = t[o * 2], e.opt_len += g * (d + u), n && (e.static_len += g * (r[o * 2 + 1] + u)));
121
+ if (w !== 0) {
122
+ do {
123
+ for (d = _ - 1; e.bl_count[d] === 0; )
124
+ d--;
125
+ e.bl_count[d]--, e.bl_count[d + 1] += 2, e.bl_count[_]--, w -= 2;
126
+ } while (w > 0);
127
+ for (d = _; d !== 0; d--)
128
+ for (o = e.bl_count[d]; o !== 0; )
129
+ v = e.heap[--l], !(v > a) && (t[v * 2 + 1] !== d && (e.opt_len += (d - t[v * 2 + 1]) * t[v * 2], t[v * 2 + 1] = d), o--);
130
+ }
131
+ }
132
+ function ta(e, i, t) {
133
+ var a = new Array(se + 1), r = 0, n, h;
134
+ for (n = 1; n <= se; n++)
135
+ a[n] = r = r + t[n - 1] << 1;
136
+ for (h = 0; h <= i; h++) {
137
+ var f = e[h * 2 + 1];
138
+ f !== 0 && (e[h * 2] = ea(a[f]++, f));
139
+ }
140
+ }
141
+ function Ga() {
142
+ var e, i, t, a, r, n = new Array(se + 1);
143
+ for (t = 0, a = 0; a < $t - 1; a++)
144
+ for (Pt[a] = t, e = 0; e < 1 << Ot[a]; e++)
145
+ Ke[t++] = a;
146
+ for (Ke[t - 1] = a, r = 0, a = 0; a < 16; a++)
147
+ for (ut[a] = r, e = 0; e < 1 << ft[a]; e++)
148
+ Pe[r++] = a;
149
+ for (r >>= 7; a < Ne; a++)
150
+ for (ut[a] = r << 7, e = 0; e < 1 << ft[a] - 7; e++)
151
+ Pe[256 + r++] = a;
152
+ for (i = 0; i <= se; i++)
153
+ n[i] = 0;
154
+ for (e = 0; e <= 143; )
155
+ ne[e * 2 + 1] = 8, e++, n[8]++;
156
+ for (; e <= 255; )
157
+ ne[e * 2 + 1] = 9, e++, n[9]++;
158
+ for (; e <= 279; )
159
+ ne[e * 2 + 1] = 7, e++, n[7]++;
160
+ for (; e <= 287; )
161
+ ne[e * 2 + 1] = 8, e++, n[8]++;
162
+ for (ta(ne, He + 1, n), e = 0; e < Ne; e++)
163
+ Be[e * 2 + 1] = 5, Be[e * 2] = ea(e, 5);
164
+ ji = new pt(ne, Ot, Ge + 1, He, se), Vi = new pt(Be, ft, 0, Ne, se), Ji = new pt(new Array(0), Ka, 0, Mt, Pa);
165
+ }
166
+ function ia(e) {
167
+ var i;
168
+ for (i = 0; i < He; i++)
169
+ e.dyn_ltree[i * 2] = 0;
170
+ for (i = 0; i < Ne; i++)
171
+ e.dyn_dtree[i * 2] = 0;
172
+ for (i = 0; i < Mt; i++)
173
+ e.bl_tree[i * 2] = 0;
174
+ e.dyn_ltree[Ht * 2] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
175
+ }
176
+ function aa(e) {
177
+ e.bi_valid > 8 ? Ye(e, e.bi_buf) : e.bi_valid > 0 && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
178
+ }
179
+ function Wa(e, i, t, a) {
180
+ aa(e), a && (Ye(e, t), Ye(e, ~t)), Ra.arraySet(e.pending_buf, e.window, i, t, e.pending), e.pending += t;
181
+ }
182
+ function Jt(e, i, t, a) {
183
+ var r = i * 2, n = t * 2;
184
+ return e[r] < e[n] || e[r] === e[n] && a[i] <= a[t];
185
+ }
186
+ function kt(e, i, t) {
187
+ for (var a = e.heap[t], r = t << 1; r <= e.heap_len && (r < e.heap_len && Jt(i, e.heap[r + 1], e.heap[r], e.depth) && r++, !Jt(i, a, e.heap[r], e.depth)); )
188
+ e.heap[t] = e.heap[r], t = r, r <<= 1;
189
+ e.heap[t] = a;
190
+ }
191
+ function Qt(e, i, t) {
192
+ var a, r, n = 0, h, f;
193
+ if (e.last_lit !== 0)
194
+ do
195
+ a = e.pending_buf[e.d_buf + n * 2] << 8 | e.pending_buf[e.d_buf + n * 2 + 1], r = e.pending_buf[e.l_buf + n], n++, a === 0 ? ee(e, r, i) : (h = Ke[r], ee(e, h + Ge + 1, i), f = Ot[h], f !== 0 && (r -= Pt[h], C(e, r, f)), a--, h = Qi(a), ee(e, h, t), f = ft[h], f !== 0 && (a -= ut[h], C(e, a, f)));
196
+ while (n < e.last_lit);
197
+ ee(e, Ht, i);
198
+ }
199
+ function Zt(e, i) {
200
+ var t = i.dyn_tree, a = i.stat_desc.static_tree, r = i.stat_desc.has_stree, n = i.stat_desc.elems, h, f, _ = -1, l;
201
+ for (e.heap_len = 0, e.heap_max = Yi, h = 0; h < n; h++)
202
+ t[h * 2] !== 0 ? (e.heap[++e.heap_len] = _ = h, e.depth[h] = 0) : t[h * 2 + 1] = 0;
203
+ for (; e.heap_len < 2; )
204
+ l = e.heap[++e.heap_len] = _ < 2 ? ++_ : 0, t[l * 2] = 1, e.depth[l] = 0, e.opt_len--, r && (e.static_len -= a[l * 2 + 1]);
205
+ for (i.max_code = _, h = e.heap_len >> 1; h >= 1; h--)
206
+ kt(e, t, h);
207
+ l = n;
208
+ do
209
+ h = e.heap[
210
+ 1
211
+ /*SMALLEST*/
212
+ ], e.heap[
213
+ 1
214
+ /*SMALLEST*/
215
+ ] = e.heap[e.heap_len--], kt(
216
+ e,
217
+ t,
218
+ 1
219
+ /*SMALLEST*/
220
+ ), f = e.heap[
221
+ 1
222
+ /*SMALLEST*/
223
+ ], e.heap[--e.heap_max] = h, e.heap[--e.heap_max] = f, t[l * 2] = t[h * 2] + t[f * 2], e.depth[l] = (e.depth[h] >= e.depth[f] ? e.depth[h] : e.depth[f]) + 1, t[h * 2 + 1] = t[f * 2 + 1] = l, e.heap[
224
+ 1
225
+ /*SMALLEST*/
226
+ ] = l++, kt(
227
+ e,
228
+ t,
229
+ 1
230
+ /*SMALLEST*/
231
+ );
232
+ while (e.heap_len >= 2);
233
+ e.heap[--e.heap_max] = e.heap[
234
+ 1
235
+ /*SMALLEST*/
236
+ ], qa(e, i), ta(t, _, e.bl_count);
237
+ }
238
+ function ei(e, i, t) {
239
+ var a, r = -1, n, h = i[0 * 2 + 1], f = 0, _ = 7, l = 4;
240
+ for (h === 0 && (_ = 138, l = 3), i[(t + 1) * 2 + 1] = 65535, a = 0; a <= t; a++)
241
+ n = h, h = i[(a + 1) * 2 + 1], !(++f < _ && n === h) && (f < l ? e.bl_tree[n * 2] += f : n !== 0 ? (n !== r && e.bl_tree[n * 2]++, e.bl_tree[Xi * 2]++) : f <= 10 ? e.bl_tree[qi * 2]++ : e.bl_tree[Gi * 2]++, f = 0, r = n, h === 0 ? (_ = 138, l = 3) : n === h ? (_ = 6, l = 3) : (_ = 7, l = 4));
242
+ }
243
+ function ti(e, i, t) {
244
+ var a, r = -1, n, h = i[0 * 2 + 1], f = 0, _ = 7, l = 4;
245
+ for (h === 0 && (_ = 138, l = 3), a = 0; a <= t; a++)
246
+ if (n = h, h = i[(a + 1) * 2 + 1], !(++f < _ && n === h)) {
247
+ if (f < l)
248
+ do
249
+ ee(e, n, e.bl_tree);
250
+ while (--f !== 0);
251
+ else
252
+ n !== 0 ? (n !== r && (ee(e, n, e.bl_tree), f--), ee(e, Xi, e.bl_tree), C(e, f - 3, 2)) : f <= 10 ? (ee(e, qi, e.bl_tree), C(e, f - 3, 3)) : (ee(e, Gi, e.bl_tree), C(e, f - 11, 7));
253
+ f = 0, r = n, h === 0 ? (_ = 138, l = 3) : n === h ? (_ = 6, l = 3) : (_ = 7, l = 4);
254
+ }
255
+ }
256
+ function ja(e) {
257
+ var i;
258
+ for (ei(e, e.dyn_ltree, e.l_desc.max_code), ei(e, e.dyn_dtree, e.d_desc.max_code), Zt(e, e.bl_desc), i = Mt - 1; i >= 3 && e.bl_tree[Wi[i] * 2 + 1] === 0; i--)
259
+ ;
260
+ return e.opt_len += 3 * (i + 1) + 5 + 5 + 4, i;
261
+ }
262
+ function Va(e, i, t, a) {
263
+ var r;
264
+ for (C(e, i - 257, 5), C(e, t - 1, 5), C(e, a - 4, 4), r = 0; r < a; r++)
265
+ C(e, e.bl_tree[Wi[r] * 2 + 1], 3);
266
+ ti(e, e.dyn_ltree, i - 1), ti(e, e.dyn_dtree, t - 1);
267
+ }
268
+ function Ja(e) {
269
+ var i = 4093624447, t;
270
+ for (t = 0; t <= 31; t++, i >>>= 1)
271
+ if (i & 1 && e.dyn_ltree[t * 2] !== 0)
272
+ return jt;
273
+ if (e.dyn_ltree[9 * 2] !== 0 || e.dyn_ltree[10 * 2] !== 0 || e.dyn_ltree[13 * 2] !== 0)
274
+ return Vt;
275
+ for (t = 32; t < Ge; t++)
276
+ if (e.dyn_ltree[t * 2] !== 0)
277
+ return Vt;
278
+ return jt;
279
+ }
280
+ var ii = !1;
281
+ function Qa(e) {
282
+ ii || (Ga(), ii = !0), e.l_desc = new xt(e.dyn_ltree, ji), e.d_desc = new xt(e.dyn_dtree, Vi), e.bl_desc = new xt(e.bl_tree, Ji), e.bi_buf = 0, e.bi_valid = 0, ia(e);
283
+ }
284
+ function na(e, i, t, a) {
285
+ C(e, (Ua << 1) + (a ? 1 : 0), 3), Wa(e, i, t, !0);
286
+ }
287
+ function en(e) {
288
+ C(e, Ki << 1, 3), ee(e, Ht, ne), Xa(e);
289
+ }
290
+ function tn(e, i, t, a) {
291
+ var r, n, h = 0;
292
+ e.level > 0 ? (e.strm.data_type === Ca && (e.strm.data_type = Ja(e)), Zt(e, e.l_desc), Zt(e, e.d_desc), h = ja(e), r = e.opt_len + 3 + 7 >>> 3, n = e.static_len + 3 + 7 >>> 3, n <= r && (r = n)) : r = n = t + 5, t + 4 <= r && i !== -1 ? na(e, i, t, a) : e.strategy === Ba || n === r ? (C(e, (Ki << 1) + (a ? 1 : 0), 3), Qt(e, ne, Be)) : (C(e, ($a << 1) + (a ? 1 : 0), 3), Va(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, h + 1), Qt(e, e.dyn_ltree, e.dyn_dtree)), ia(e), a && aa(e);
293
+ }
294
+ function an(e, i, t) {
295
+ return e.pending_buf[e.d_buf + e.last_lit * 2] = i >>> 8 & 255, e.pending_buf[e.d_buf + e.last_lit * 2 + 1] = i & 255, e.pending_buf[e.l_buf + e.last_lit] = t & 255, e.last_lit++, i === 0 ? e.dyn_ltree[t * 2]++ : (e.matches++, i--, e.dyn_ltree[(Ke[t] + Ge + 1) * 2]++, e.dyn_dtree[Qi(i) * 2]++), e.last_lit === e.lit_bufsize - 1;
296
+ }
297
+ Ze._tr_init = Qa;
298
+ Ze._tr_stored_block = na;
299
+ Ze._tr_flush_block = tn;
300
+ Ze._tr_tally = an;
301
+ Ze._tr_align = en;
302
+ function nn(e, i, t, a) {
303
+ for (var r = e & 65535 | 0, n = e >>> 16 & 65535 | 0, h = 0; t !== 0; ) {
304
+ h = t > 2e3 ? 2e3 : t, t -= h;
305
+ do
306
+ r = r + i[a++] | 0, n = n + r | 0;
307
+ while (--h);
308
+ r %= 65521, n %= 65521;
309
+ }
310
+ return r | n << 16 | 0;
311
+ }
312
+ var ra = nn;
313
+ function rn() {
314
+ for (var e, i = [], t = 0; t < 256; t++) {
315
+ e = t;
316
+ for (var a = 0; a < 8; a++)
317
+ e = e & 1 ? 3988292384 ^ e >>> 1 : e >>> 1;
318
+ i[t] = e;
319
+ }
320
+ return i;
321
+ }
322
+ var fn = rn();
323
+ function hn(e, i, t, a) {
324
+ var r = fn, n = a + t;
325
+ e ^= -1;
326
+ for (var h = a; h < n; h++)
327
+ e = e >>> 8 ^ r[(e ^ i[h]) & 255];
328
+ return e ^ -1;
329
+ }
330
+ var fa = hn, Kt = {
331
+ 2: "need dictionary",
332
+ /* Z_NEED_DICT 2 */
333
+ 1: "stream end",
334
+ /* Z_STREAM_END 1 */
335
+ 0: "",
336
+ /* Z_OK 0 */
337
+ "-1": "file error",
338
+ /* Z_ERRNO (-1) */
339
+ "-2": "stream error",
340
+ /* Z_STREAM_ERROR (-2) */
341
+ "-3": "data error",
342
+ /* Z_DATA_ERROR (-3) */
343
+ "-4": "insufficient memory",
344
+ /* Z_MEM_ERROR (-4) */
345
+ "-5": "buffer error",
346
+ /* Z_BUF_ERROR (-5) */
347
+ "-6": "incompatible version"
348
+ /* Z_VERSION_ERROR (-6) */
349
+ }, B = re, Y = Ze, ha = ra, he = fa, ln = Kt, ke = 0, on = 1, _n = 3, de = 4, ai = 5, te = 0, ni = 1, X = -2, un = -3, Et = -5, dn = -1, sn = 1, tt = 2, cn = 3, vn = 4, gn = 0, wn = 2, vt = 8, bn = 9, pn = 15, xn = 8, kn = 29, En = 256, It = En + 1 + kn, Sn = 30, yn = 19, mn = 2 * It + 1, Fn = 15, S = 3, _e = 258, W = _e + S + 1, Tn = 32, gt = 42, Lt = 69, ht = 73, lt = 91, ot = 103, ce = 113, Re = 666, D = 1, We = 2, ge = 3, Le = 4, Nn = 3;
350
+ function ue(e, i) {
351
+ return e.msg = ln[i], i;
352
+ }
353
+ function ri(e) {
354
+ return (e << 1) - (e > 4 ? 9 : 0);
355
+ }
356
+ function oe(e) {
357
+ for (var i = e.length; --i >= 0; )
358
+ e[i] = 0;
359
+ }
360
+ function le(e) {
361
+ var i = e.state, t = i.pending;
362
+ t > e.avail_out && (t = e.avail_out), t !== 0 && (B.arraySet(e.output, i.pending_buf, i.pending_out, t, e.next_out), e.next_out += t, i.pending_out += t, e.total_out += t, e.avail_out -= t, i.pending -= t, i.pending === 0 && (i.pending_out = 0));
363
+ }
364
+ function R(e, i) {
365
+ Y._tr_flush_block(e, e.block_start >= 0 ? e.block_start : -1, e.strstart - e.block_start, i), e.block_start = e.strstart, le(e.strm);
366
+ }
367
+ function F(e, i) {
368
+ e.pending_buf[e.pending++] = i;
369
+ }
370
+ function De(e, i) {
371
+ e.pending_buf[e.pending++] = i >>> 8 & 255, e.pending_buf[e.pending++] = i & 255;
372
+ }
373
+ function zn(e, i, t, a) {
374
+ var r = e.avail_in;
375
+ return r > a && (r = a), r === 0 ? 0 : (e.avail_in -= r, B.arraySet(i, e.input, e.next_in, r, t), e.state.wrap === 1 ? e.adler = ha(e.adler, i, r, t) : e.state.wrap === 2 && (e.adler = he(e.adler, i, r, t)), e.next_in += r, e.total_in += r, r);
376
+ }
377
+ function la(e, i) {
378
+ var t = e.max_chain_length, a = e.strstart, r, n, h = e.prev_length, f = e.nice_match, _ = e.strstart > e.w_size - W ? e.strstart - (e.w_size - W) : 0, l = e.window, o = e.w_mask, v = e.prev, d = e.strstart + _e, u = l[a + h - 1], g = l[a + h];
379
+ e.prev_length >= e.good_match && (t >>= 2), f > e.lookahead && (f = e.lookahead);
380
+ do
381
+ if (r = i, !(l[r + h] !== g || l[r + h - 1] !== u || l[r] !== l[a] || l[++r] !== l[a + 1])) {
382
+ a += 2, r++;
383
+ do
384
+ ;
385
+ while (l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && l[++a] === l[++r] && a < d);
386
+ if (n = _e - (d - a), a = d - _e, n > h) {
387
+ if (e.match_start = i, h = n, n >= f)
388
+ break;
389
+ u = l[a + h - 1], g = l[a + h];
390
+ }
391
+ }
392
+ while ((i = v[i & o]) > _ && --t !== 0);
393
+ return h <= e.lookahead ? h : e.lookahead;
394
+ }
395
+ function we(e) {
396
+ var i = e.w_size, t, a, r, n, h;
397
+ do {
398
+ if (n = e.window_size - e.lookahead - e.strstart, e.strstart >= i + (i - W)) {
399
+ B.arraySet(e.window, e.window, i, i, 0), e.match_start -= i, e.strstart -= i, e.block_start -= i, a = e.hash_size, t = a;
400
+ do
401
+ r = e.head[--t], e.head[t] = r >= i ? r - i : 0;
402
+ while (--a);
403
+ a = i, t = a;
404
+ do
405
+ r = e.prev[--t], e.prev[t] = r >= i ? r - i : 0;
406
+ while (--a);
407
+ n += i;
408
+ }
409
+ if (e.strm.avail_in === 0)
410
+ break;
411
+ if (a = zn(e.strm, e.window, e.strstart + e.lookahead, n), e.lookahead += a, e.lookahead + e.insert >= S)
412
+ for (h = e.strstart - e.insert, e.ins_h = e.window[h], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[h + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[h + S - 1]) & e.hash_mask, e.prev[h & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = h, h++, e.insert--, !(e.lookahead + e.insert < S)); )
413
+ ;
414
+ } while (e.lookahead < W && e.strm.avail_in !== 0);
415
+ }
416
+ function An(e, i) {
417
+ var t = 65535;
418
+ for (t > e.pending_buf_size - 5 && (t = e.pending_buf_size - 5); ; ) {
419
+ if (e.lookahead <= 1) {
420
+ if (we(e), e.lookahead === 0 && i === ke)
421
+ return D;
422
+ if (e.lookahead === 0)
423
+ break;
424
+ }
425
+ e.strstart += e.lookahead, e.lookahead = 0;
426
+ var a = e.block_start + t;
427
+ if ((e.strstart === 0 || e.strstart >= a) && (e.lookahead = e.strstart - a, e.strstart = a, R(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - W && (R(e, !1), e.strm.avail_out === 0))
428
+ return D;
429
+ }
430
+ return e.insert = 0, i === de ? (R(e, !0), e.strm.avail_out === 0 ? ge : Le) : (e.strstart > e.block_start && (R(e, !1), e.strm.avail_out === 0), D);
431
+ }
432
+ function St(e, i) {
433
+ for (var t, a; ; ) {
434
+ if (e.lookahead < W) {
435
+ if (we(e), e.lookahead < W && i === ke)
436
+ return D;
437
+ if (e.lookahead === 0)
438
+ break;
439
+ }
440
+ if (t = 0, e.lookahead >= S && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + S - 1]) & e.hash_mask, 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 - W && (e.match_length = la(e, t)), e.match_length >= S)
441
+ if (a = Y._tr_tally(e, e.strstart - e.match_start, e.match_length - S), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= S) {
442
+ e.match_length--;
443
+ do
444
+ e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + S - 1]) & e.hash_mask, t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart;
445
+ while (--e.match_length !== 0);
446
+ e.strstart++;
447
+ } else
448
+ e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
449
+ else
450
+ a = Y._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
451
+ if (a && (R(e, !1), e.strm.avail_out === 0))
452
+ return D;
453
+ }
454
+ return e.insert = e.strstart < S - 1 ? e.strstart : S - 1, i === de ? (R(e, !0), e.strm.avail_out === 0 ? ge : Le) : e.last_lit && (R(e, !1), e.strm.avail_out === 0) ? D : We;
455
+ }
456
+ function ye(e, i) {
457
+ for (var t, a, r; ; ) {
458
+ if (e.lookahead < W) {
459
+ if (we(e), e.lookahead < W && i === ke)
460
+ return D;
461
+ if (e.lookahead === 0)
462
+ break;
463
+ }
464
+ if (t = 0, e.lookahead >= S && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + S - 1]) & e.hash_mask, 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 = S - 1, t !== 0 && e.prev_length < e.max_lazy_match && e.strstart - t <= e.w_size - W && (e.match_length = la(e, t), e.match_length <= 5 && (e.strategy === sn || e.match_length === S && e.strstart - e.match_start > 4096) && (e.match_length = S - 1)), e.prev_length >= S && e.match_length <= e.prev_length) {
465
+ r = e.strstart + e.lookahead - S, a = Y._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - S), e.lookahead -= e.prev_length - 1, e.prev_length -= 2;
466
+ do
467
+ ++e.strstart <= r && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + S - 1]) & e.hash_mask, t = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart);
468
+ while (--e.prev_length !== 0);
469
+ if (e.match_available = 0, e.match_length = S - 1, e.strstart++, a && (R(e, !1), e.strm.avail_out === 0))
470
+ return D;
471
+ } else if (e.match_available) {
472
+ if (a = Y._tr_tally(e, 0, e.window[e.strstart - 1]), a && R(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0)
473
+ return D;
474
+ } else
475
+ e.match_available = 1, e.strstart++, e.lookahead--;
476
+ }
477
+ return e.match_available && (a = Y._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < S - 1 ? e.strstart : S - 1, i === de ? (R(e, !0), e.strm.avail_out === 0 ? ge : Le) : e.last_lit && (R(e, !1), e.strm.avail_out === 0) ? D : We;
478
+ }
479
+ function On(e, i) {
480
+ for (var t, a, r, n, h = e.window; ; ) {
481
+ if (e.lookahead <= _e) {
482
+ if (we(e), e.lookahead <= _e && i === ke)
483
+ return D;
484
+ if (e.lookahead === 0)
485
+ break;
486
+ }
487
+ if (e.match_length = 0, e.lookahead >= S && e.strstart > 0 && (r = e.strstart - 1, a = h[r], a === h[++r] && a === h[++r] && a === h[++r])) {
488
+ n = e.strstart + _e;
489
+ do
490
+ ;
491
+ while (a === h[++r] && a === h[++r] && a === h[++r] && a === h[++r] && a === h[++r] && a === h[++r] && a === h[++r] && a === h[++r] && r < n);
492
+ e.match_length = _e - (n - r), e.match_length > e.lookahead && (e.match_length = e.lookahead);
493
+ }
494
+ if (e.match_length >= S ? (t = Y._tr_tally(e, 1, e.match_length - S), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (t = Y._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), t && (R(e, !1), e.strm.avail_out === 0))
495
+ return D;
496
+ }
497
+ return e.insert = 0, i === de ? (R(e, !0), e.strm.avail_out === 0 ? ge : Le) : e.last_lit && (R(e, !1), e.strm.avail_out === 0) ? D : We;
498
+ }
499
+ function Zn(e, i) {
500
+ for (var t; ; ) {
501
+ if (e.lookahead === 0 && (we(e), e.lookahead === 0)) {
502
+ if (i === ke)
503
+ return D;
504
+ break;
505
+ }
506
+ if (e.match_length = 0, t = Y._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, t && (R(e, !1), e.strm.avail_out === 0))
507
+ return D;
508
+ }
509
+ return e.insert = 0, i === de ? (R(e, !0), e.strm.avail_out === 0 ? ge : Le) : e.last_lit && (R(e, !1), e.strm.avail_out === 0) ? D : We;
510
+ }
511
+ function J(e, i, t, a, r) {
512
+ this.good_length = e, this.max_lazy = i, this.nice_length = t, this.max_chain = a, this.func = r;
513
+ }
514
+ var Fe;
515
+ Fe = [
516
+ /* good lazy nice chain */
517
+ new J(0, 0, 0, 0, An),
518
+ /* 0 store only */
519
+ new J(4, 4, 8, 4, St),
520
+ /* 1 max speed, no lazy matches */
521
+ new J(4, 5, 16, 8, St),
522
+ /* 2 */
523
+ new J(4, 6, 32, 32, St),
524
+ /* 3 */
525
+ new J(4, 4, 16, 16, ye),
526
+ /* 4 lazy matches */
527
+ new J(8, 16, 32, 32, ye),
528
+ /* 5 */
529
+ new J(8, 16, 128, 128, ye),
530
+ /* 6 */
531
+ new J(8, 32, 128, 256, ye),
532
+ /* 7 */
533
+ new J(32, 128, 258, 1024, ye),
534
+ /* 8 */
535
+ new J(32, 258, 258, 4096, ye)
536
+ /* 9 max compression */
537
+ ];
538
+ function In(e) {
539
+ e.window_size = 2 * e.w_size, oe(e.head), e.max_lazy_match = Fe[e.level].max_lazy, e.good_match = Fe[e.level].good_length, e.nice_match = Fe[e.level].nice_length, e.max_chain_length = Fe[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = S - 1, e.match_available = 0, e.ins_h = 0;
540
+ }
541
+ function Ln() {
542
+ 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 = vt, 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 B.Buf16(mn * 2), this.dyn_dtree = new B.Buf16((2 * Sn + 1) * 2), this.bl_tree = new B.Buf16((2 * yn + 1) * 2), oe(this.dyn_ltree), oe(this.dyn_dtree), oe(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new B.Buf16(Fn + 1), this.heap = new B.Buf16(2 * It + 1), oe(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new B.Buf16(2 * It + 1), oe(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
543
+ }
544
+ function oa(e) {
545
+ var i;
546
+ return !e || !e.state ? ue(e, X) : (e.total_in = e.total_out = 0, e.data_type = wn, i = e.state, i.pending = 0, i.pending_out = 0, i.wrap < 0 && (i.wrap = -i.wrap), i.status = i.wrap ? gt : ce, e.adler = i.wrap === 2 ? 0 : 1, i.last_flush = ke, Y._tr_init(i), te);
547
+ }
548
+ function _a(e) {
549
+ var i = oa(e);
550
+ return i === te && In(e.state), i;
551
+ }
552
+ function Dn(e, i) {
553
+ return !e || !e.state || e.state.wrap !== 2 ? X : (e.state.gzhead = i, te);
554
+ }
555
+ function ua(e, i, t, a, r, n) {
556
+ if (!e)
557
+ return X;
558
+ var h = 1;
559
+ if (i === dn && (i = 6), a < 0 ? (h = 0, a = -a) : a > 15 && (h = 2, a -= 16), r < 1 || r > bn || t !== vt || a < 8 || a > 15 || i < 0 || i > 9 || n < 0 || n > vn)
560
+ return ue(e, X);
561
+ a === 8 && (a = 9);
562
+ var f = new Ln();
563
+ return e.state = f, f.strm = e, f.wrap = h, f.gzhead = null, f.w_bits = a, f.w_size = 1 << f.w_bits, f.w_mask = f.w_size - 1, f.hash_bits = r + 7, f.hash_size = 1 << f.hash_bits, f.hash_mask = f.hash_size - 1, f.hash_shift = ~~((f.hash_bits + S - 1) / S), f.window = new B.Buf8(f.w_size * 2), f.head = new B.Buf16(f.hash_size), f.prev = new B.Buf16(f.w_size), f.lit_bufsize = 1 << r + 6, f.pending_buf_size = f.lit_bufsize * 4, f.pending_buf = new B.Buf8(f.pending_buf_size), f.d_buf = 1 * f.lit_bufsize, f.l_buf = (1 + 2) * f.lit_bufsize, f.level = i, f.strategy = n, f.method = t, _a(e);
564
+ }
565
+ function Rn(e, i) {
566
+ return ua(e, i, vt, pn, xn, gn);
567
+ }
568
+ function Bn(e, i) {
569
+ var t, a, r, n;
570
+ if (!e || !e.state || i > ai || i < 0)
571
+ return e ? ue(e, X) : X;
572
+ if (a = e.state, !e.output || !e.input && e.avail_in !== 0 || a.status === Re && i !== de)
573
+ return ue(e, e.avail_out === 0 ? Et : X);
574
+ if (a.strm = e, t = a.last_flush, a.last_flush = i, a.status === gt)
575
+ if (a.wrap === 2)
576
+ e.adler = 0, F(a, 31), F(a, 139), F(a, 8), a.gzhead ? (F(
577
+ a,
578
+ (a.gzhead.text ? 1 : 0) + (a.gzhead.hcrc ? 2 : 0) + (a.gzhead.extra ? 4 : 0) + (a.gzhead.name ? 8 : 0) + (a.gzhead.comment ? 16 : 0)
579
+ ), F(a, a.gzhead.time & 255), F(a, a.gzhead.time >> 8 & 255), F(a, a.gzhead.time >> 16 & 255), F(a, a.gzhead.time >> 24 & 255), F(a, a.level === 9 ? 2 : a.strategy >= tt || a.level < 2 ? 4 : 0), F(a, a.gzhead.os & 255), a.gzhead.extra && a.gzhead.extra.length && (F(a, a.gzhead.extra.length & 255), F(a, a.gzhead.extra.length >> 8 & 255)), a.gzhead.hcrc && (e.adler = he(e.adler, a.pending_buf, a.pending, 0)), a.gzindex = 0, a.status = Lt) : (F(a, 0), F(a, 0), F(a, 0), F(a, 0), F(a, 0), F(a, a.level === 9 ? 2 : a.strategy >= tt || a.level < 2 ? 4 : 0), F(a, Nn), a.status = ce);
580
+ else {
581
+ var h = vt + (a.w_bits - 8 << 4) << 8, f = -1;
582
+ a.strategy >= tt || a.level < 2 ? f = 0 : a.level < 6 ? f = 1 : a.level === 6 ? f = 2 : f = 3, h |= f << 6, a.strstart !== 0 && (h |= Tn), h += 31 - h % 31, a.status = ce, De(a, h), a.strstart !== 0 && (De(a, e.adler >>> 16), De(a, e.adler & 65535)), e.adler = 1;
583
+ }
584
+ if (a.status === Lt)
585
+ if (a.gzhead.extra) {
586
+ for (r = a.pending; a.gzindex < (a.gzhead.extra.length & 65535) && !(a.pending === a.pending_buf_size && (a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), le(e), r = a.pending, a.pending === a.pending_buf_size)); )
587
+ F(a, a.gzhead.extra[a.gzindex] & 255), a.gzindex++;
588
+ a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), a.gzindex === a.gzhead.extra.length && (a.gzindex = 0, a.status = ht);
589
+ } else
590
+ a.status = ht;
591
+ if (a.status === ht)
592
+ if (a.gzhead.name) {
593
+ r = a.pending;
594
+ do {
595
+ if (a.pending === a.pending_buf_size && (a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), le(e), r = a.pending, a.pending === a.pending_buf_size)) {
596
+ n = 1;
597
+ break;
598
+ }
599
+ a.gzindex < a.gzhead.name.length ? n = a.gzhead.name.charCodeAt(a.gzindex++) & 255 : n = 0, F(a, n);
600
+ } while (n !== 0);
601
+ a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), n === 0 && (a.gzindex = 0, a.status = lt);
602
+ } else
603
+ a.status = lt;
604
+ if (a.status === lt)
605
+ if (a.gzhead.comment) {
606
+ r = a.pending;
607
+ do {
608
+ if (a.pending === a.pending_buf_size && (a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), le(e), r = a.pending, a.pending === a.pending_buf_size)) {
609
+ n = 1;
610
+ break;
611
+ }
612
+ a.gzindex < a.gzhead.comment.length ? n = a.gzhead.comment.charCodeAt(a.gzindex++) & 255 : n = 0, F(a, n);
613
+ } while (n !== 0);
614
+ a.gzhead.hcrc && a.pending > r && (e.adler = he(e.adler, a.pending_buf, a.pending - r, r)), n === 0 && (a.status = ot);
615
+ } else
616
+ a.status = ot;
617
+ if (a.status === ot && (a.gzhead.hcrc ? (a.pending + 2 > a.pending_buf_size && le(e), a.pending + 2 <= a.pending_buf_size && (F(a, e.adler & 255), F(a, e.adler >> 8 & 255), e.adler = 0, a.status = ce)) : a.status = ce), a.pending !== 0) {
618
+ if (le(e), e.avail_out === 0)
619
+ return a.last_flush = -1, te;
620
+ } else if (e.avail_in === 0 && ri(i) <= ri(t) && i !== de)
621
+ return ue(e, Et);
622
+ if (a.status === Re && e.avail_in !== 0)
623
+ return ue(e, Et);
624
+ if (e.avail_in !== 0 || a.lookahead !== 0 || i !== ke && a.status !== Re) {
625
+ var _ = a.strategy === tt ? Zn(a, i) : a.strategy === cn ? On(a, i) : Fe[a.level].func(a, i);
626
+ if ((_ === ge || _ === Le) && (a.status = Re), _ === D || _ === ge)
627
+ return e.avail_out === 0 && (a.last_flush = -1), te;
628
+ if (_ === We && (i === on ? Y._tr_align(a) : i !== ai && (Y._tr_stored_block(a, 0, 0, !1), i === _n && (oe(a.head), a.lookahead === 0 && (a.strstart = 0, a.block_start = 0, a.insert = 0))), le(e), e.avail_out === 0))
629
+ return a.last_flush = -1, te;
630
+ }
631
+ return i !== de ? te : a.wrap <= 0 ? ni : (a.wrap === 2 ? (F(a, e.adler & 255), F(a, e.adler >> 8 & 255), F(a, e.adler >> 16 & 255), F(a, e.adler >> 24 & 255), F(a, e.total_in & 255), F(a, e.total_in >> 8 & 255), F(a, e.total_in >> 16 & 255), F(a, e.total_in >> 24 & 255)) : (De(a, e.adler >>> 16), De(a, e.adler & 65535)), le(e), a.wrap > 0 && (a.wrap = -a.wrap), a.pending !== 0 ? te : ni);
632
+ }
633
+ function Cn(e) {
634
+ var i;
635
+ return !e || !e.state ? X : (i = e.state.status, i !== gt && i !== Lt && i !== ht && i !== lt && i !== ot && i !== ce && i !== Re ? ue(e, X) : (e.state = null, i === ce ? ue(e, un) : te));
636
+ }
637
+ function Un(e, i) {
638
+ var t = i.length, a, r, n, h, f, _, l, o;
639
+ if (!e || !e.state || (a = e.state, h = a.wrap, h === 2 || h === 1 && a.status !== gt || a.lookahead))
640
+ return X;
641
+ for (h === 1 && (e.adler = ha(e.adler, i, t, 0)), a.wrap = 0, t >= a.w_size && (h === 0 && (oe(a.head), a.strstart = 0, a.block_start = 0, a.insert = 0), o = new B.Buf8(a.w_size), B.arraySet(o, i, t - a.w_size, a.w_size, 0), i = o, t = a.w_size), f = e.avail_in, _ = e.next_in, l = e.input, e.avail_in = t, e.next_in = 0, e.input = i, we(a); a.lookahead >= S; ) {
642
+ r = a.strstart, n = a.lookahead - (S - 1);
643
+ do
644
+ a.ins_h = (a.ins_h << a.hash_shift ^ a.window[r + S - 1]) & a.hash_mask, a.prev[r & a.w_mask] = a.head[a.ins_h], a.head[a.ins_h] = r, r++;
645
+ while (--n);
646
+ a.strstart = r, a.lookahead = S - 1, we(a);
647
+ }
648
+ return a.strstart += a.lookahead, a.block_start = a.strstart, a.insert = a.lookahead, a.lookahead = 0, a.match_length = a.prev_length = S - 1, a.match_available = 0, e.next_in = _, e.input = l, e.avail_in = f, a.wrap = h, te;
649
+ }
650
+ ie.deflateInit = Rn;
651
+ ie.deflateInit2 = ua;
652
+ ie.deflateReset = _a;
653
+ ie.deflateResetKeep = oa;
654
+ ie.deflateSetHeader = Dn;
655
+ ie.deflate = Bn;
656
+ ie.deflateEnd = Cn;
657
+ ie.deflateSetDictionary = Un;
658
+ ie.deflateInfo = "pako deflate (from Nodeca project)";
659
+ var Ee = {}, wt = re, da = !0, sa = !0;
660
+ try {
661
+ String.fromCharCode.apply(null, [0]);
662
+ } catch {
663
+ da = !1;
664
+ }
665
+ try {
666
+ String.fromCharCode.apply(null, new Uint8Array(1));
667
+ } catch {
668
+ sa = !1;
669
+ }
670
+ var Xe = new wt.Buf8(256);
671
+ for (var fe = 0; fe < 256; fe++)
672
+ Xe[fe] = fe >= 252 ? 6 : fe >= 248 ? 5 : fe >= 240 ? 4 : fe >= 224 ? 3 : fe >= 192 ? 2 : 1;
673
+ Xe[254] = Xe[254] = 1;
674
+ Ee.string2buf = function(e) {
675
+ var i, t, a, r, n, h = e.length, f = 0;
676
+ for (r = 0; r < h; r++)
677
+ t = e.charCodeAt(r), (t & 64512) === 55296 && r + 1 < h && (a = e.charCodeAt(r + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), r++)), f += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : 4;
678
+ for (i = new wt.Buf8(f), n = 0, r = 0; n < f; r++)
679
+ t = e.charCodeAt(r), (t & 64512) === 55296 && r + 1 < h && (a = e.charCodeAt(r + 1), (a & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (a - 56320), r++)), t < 128 ? i[n++] = t : t < 2048 ? (i[n++] = 192 | t >>> 6, i[n++] = 128 | t & 63) : t < 65536 ? (i[n++] = 224 | t >>> 12, i[n++] = 128 | t >>> 6 & 63, i[n++] = 128 | t & 63) : (i[n++] = 240 | t >>> 18, i[n++] = 128 | t >>> 12 & 63, i[n++] = 128 | t >>> 6 & 63, i[n++] = 128 | t & 63);
680
+ return i;
681
+ };
682
+ function ca(e, i) {
683
+ if (i < 65534 && (e.subarray && sa || !e.subarray && da))
684
+ return String.fromCharCode.apply(null, wt.shrinkBuf(e, i));
685
+ for (var t = "", a = 0; a < i; a++)
686
+ t += String.fromCharCode(e[a]);
687
+ return t;
688
+ }
689
+ Ee.buf2binstring = function(e) {
690
+ return ca(e, e.length);
691
+ };
692
+ Ee.binstring2buf = function(e) {
693
+ for (var i = new wt.Buf8(e.length), t = 0, a = i.length; t < a; t++)
694
+ i[t] = e.charCodeAt(t);
695
+ return i;
696
+ };
697
+ Ee.buf2string = function(e, i) {
698
+ var t, a, r, n, h = i || e.length, f = new Array(h * 2);
699
+ for (a = 0, t = 0; t < h; ) {
700
+ if (r = e[t++], r < 128) {
701
+ f[a++] = r;
702
+ continue;
703
+ }
704
+ if (n = Xe[r], n > 4) {
705
+ f[a++] = 65533, t += n - 1;
706
+ continue;
707
+ }
708
+ for (r &= n === 2 ? 31 : n === 3 ? 15 : 7; n > 1 && t < h; )
709
+ r = r << 6 | e[t++] & 63, n--;
710
+ if (n > 1) {
711
+ f[a++] = 65533;
712
+ continue;
713
+ }
714
+ r < 65536 ? f[a++] = r : (r -= 65536, f[a++] = 55296 | r >> 10 & 1023, f[a++] = 56320 | r & 1023);
715
+ }
716
+ return ca(f, a);
717
+ };
718
+ Ee.utf8border = function(e, i) {
719
+ var t;
720
+ for (i = i || e.length, i > e.length && (i = e.length), t = i - 1; t >= 0 && (e[t] & 192) === 128; )
721
+ t--;
722
+ return t < 0 || t === 0 ? i : t + Xe[e[t]] > i ? t : i;
723
+ };
724
+ function $n() {
725
+ 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;
726
+ }
727
+ var va = $n, Ce = ie, Ue = re, Dt = Ee, Rt = Kt, Mn = va, ga = Object.prototype.toString, Hn = 0, yt = 4, ze = 0, fi = 1, hi = 2, Pn = -1, Kn = 0, Yn = 8;
728
+ function be(e) {
729
+ if (!(this instanceof be))
730
+ return new be(e);
731
+ this.options = Ue.assign({
732
+ level: Pn,
733
+ method: Yn,
734
+ chunkSize: 16384,
735
+ windowBits: 15,
736
+ memLevel: 8,
737
+ strategy: Kn,
738
+ to: ""
739
+ }, e || {});
740
+ var i = this.options;
741
+ i.raw && i.windowBits > 0 ? i.windowBits = -i.windowBits : i.gzip && i.windowBits > 0 && i.windowBits < 16 && (i.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new Mn(), this.strm.avail_out = 0;
742
+ var t = Ce.deflateInit2(
743
+ this.strm,
744
+ i.level,
745
+ i.method,
746
+ i.windowBits,
747
+ i.memLevel,
748
+ i.strategy
749
+ );
750
+ if (t !== ze)
751
+ throw new Error(Rt[t]);
752
+ if (i.header && Ce.deflateSetHeader(this.strm, i.header), i.dictionary) {
753
+ var a;
754
+ if (typeof i.dictionary == "string" ? a = Dt.string2buf(i.dictionary) : ga.call(i.dictionary) === "[object ArrayBuffer]" ? a = new Uint8Array(i.dictionary) : a = i.dictionary, t = Ce.deflateSetDictionary(this.strm, a), t !== ze)
755
+ throw new Error(Rt[t]);
756
+ this._dict_set = !0;
757
+ }
758
+ }
759
+ be.prototype.push = function(e, i) {
760
+ var t = this.strm, a = this.options.chunkSize, r, n;
761
+ if (this.ended)
762
+ return !1;
763
+ n = i === ~~i ? i : i === !0 ? yt : Hn, typeof e == "string" ? t.input = Dt.string2buf(e) : ga.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length;
764
+ do {
765
+ if (t.avail_out === 0 && (t.output = new Ue.Buf8(a), t.next_out = 0, t.avail_out = a), r = Ce.deflate(t, n), r !== fi && r !== ze)
766
+ return this.onEnd(r), this.ended = !0, !1;
767
+ (t.avail_out === 0 || t.avail_in === 0 && (n === yt || n === hi)) && (this.options.to === "string" ? this.onData(Dt.buf2binstring(Ue.shrinkBuf(t.output, t.next_out))) : this.onData(Ue.shrinkBuf(t.output, t.next_out)));
768
+ } while ((t.avail_in > 0 || t.avail_out === 0) && r !== fi);
769
+ return n === yt ? (r = Ce.deflateEnd(this.strm), this.onEnd(r), this.ended = !0, r === ze) : (n === hi && (this.onEnd(ze), t.avail_out = 0), !0);
770
+ };
771
+ be.prototype.onData = function(e) {
772
+ this.chunks.push(e);
773
+ };
774
+ be.prototype.onEnd = function(e) {
775
+ e === ze && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Ue.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
776
+ };
777
+ function Yt(e, i) {
778
+ var t = new be(i);
779
+ if (t.push(e, !0), t.err)
780
+ throw t.msg || Rt[t.err];
781
+ return t.result;
782
+ }
783
+ function Xn(e, i) {
784
+ return i = i || {}, i.raw = !0, Yt(e, i);
785
+ }
786
+ function qn(e, i) {
787
+ return i = i || {}, i.gzip = !0, Yt(e, i);
788
+ }
789
+ qe.Deflate = be;
790
+ qe.deflate = Yt;
791
+ qe.deflateRaw = Xn;
792
+ qe.gzip = qn;
793
+ var je = {}, j = {}, it = 30, Gn = 12, Wn = function(i, t) {
794
+ var a, r, n, h, f, _, l, o, v, d, u, g, w, k, b, N, z, E, c, T, y, p, m, I, x;
795
+ a = i.state, r = i.next_in, I = i.input, n = r + (i.avail_in - 5), h = i.next_out, x = i.output, f = h - (t - i.avail_out), _ = h + (i.avail_out - 257), l = a.dmax, o = a.wsize, v = a.whave, d = a.wnext, u = a.window, g = a.hold, w = a.bits, k = a.lencode, b = a.distcode, N = (1 << a.lenbits) - 1, z = (1 << a.distbits) - 1;
796
+ e:
797
+ do {
798
+ w < 15 && (g += I[r++] << w, w += 8, g += I[r++] << w, w += 8), E = k[g & N];
799
+ t:
800
+ for (; ; ) {
801
+ if (c = E >>> 24, g >>>= c, w -= c, c = E >>> 16 & 255, c === 0)
802
+ x[h++] = E & 65535;
803
+ else if (c & 16) {
804
+ T = E & 65535, c &= 15, c && (w < c && (g += I[r++] << w, w += 8), T += g & (1 << c) - 1, g >>>= c, w -= c), w < 15 && (g += I[r++] << w, w += 8, g += I[r++] << w, w += 8), E = b[g & z];
805
+ i:
806
+ for (; ; ) {
807
+ if (c = E >>> 24, g >>>= c, w -= c, c = E >>> 16 & 255, c & 16) {
808
+ if (y = E & 65535, c &= 15, w < c && (g += I[r++] << w, w += 8, w < c && (g += I[r++] << w, w += 8)), y += g & (1 << c) - 1, y > l) {
809
+ i.msg = "invalid distance too far back", a.mode = it;
810
+ break e;
811
+ }
812
+ if (g >>>= c, w -= c, c = h - f, y > c) {
813
+ if (c = y - c, c > v && a.sane) {
814
+ i.msg = "invalid distance too far back", a.mode = it;
815
+ break e;
816
+ }
817
+ if (p = 0, m = u, d === 0) {
818
+ if (p += o - c, c < T) {
819
+ T -= c;
820
+ do
821
+ x[h++] = u[p++];
822
+ while (--c);
823
+ p = h - y, m = x;
824
+ }
825
+ } else if (d < c) {
826
+ if (p += o + d - c, c -= d, c < T) {
827
+ T -= c;
828
+ do
829
+ x[h++] = u[p++];
830
+ while (--c);
831
+ if (p = 0, d < T) {
832
+ c = d, T -= c;
833
+ do
834
+ x[h++] = u[p++];
835
+ while (--c);
836
+ p = h - y, m = x;
837
+ }
838
+ }
839
+ } else if (p += d - c, c < T) {
840
+ T -= c;
841
+ do
842
+ x[h++] = u[p++];
843
+ while (--c);
844
+ p = h - y, m = x;
845
+ }
846
+ for (; T > 2; )
847
+ x[h++] = m[p++], x[h++] = m[p++], x[h++] = m[p++], T -= 3;
848
+ T && (x[h++] = m[p++], T > 1 && (x[h++] = m[p++]));
849
+ } else {
850
+ p = h - y;
851
+ do
852
+ x[h++] = x[p++], x[h++] = x[p++], x[h++] = x[p++], T -= 3;
853
+ while (T > 2);
854
+ T && (x[h++] = x[p++], T > 1 && (x[h++] = x[p++]));
855
+ }
856
+ } else if (c & 64) {
857
+ i.msg = "invalid distance code", a.mode = it;
858
+ break e;
859
+ } else {
860
+ E = b[(E & 65535) + (g & (1 << c) - 1)];
861
+ continue i;
862
+ }
863
+ break;
864
+ }
865
+ } else if (c & 64)
866
+ if (c & 32) {
867
+ a.mode = Gn;
868
+ break e;
869
+ } else {
870
+ i.msg = "invalid literal/length code", a.mode = it;
871
+ break e;
872
+ }
873
+ else {
874
+ E = k[(E & 65535) + (g & (1 << c) - 1)];
875
+ continue t;
876
+ }
877
+ break;
878
+ }
879
+ } while (r < n && h < _);
880
+ T = w >> 3, r -= T, w -= T << 3, g &= (1 << w) - 1, i.next_in = r, i.next_out = h, i.avail_in = r < n ? 5 + (n - r) : 5 - (r - n), i.avail_out = h < _ ? 257 + (_ - h) : 257 - (h - _), a.hold = g, a.bits = w;
881
+ }, li = re, me = 15, oi = 852, _i = 592, ui = 0, mt = 1, di = 2, jn = [
882
+ /* Length codes 257..285 base */
883
+ 3,
884
+ 4,
885
+ 5,
886
+ 6,
887
+ 7,
888
+ 8,
889
+ 9,
890
+ 10,
891
+ 11,
892
+ 13,
893
+ 15,
894
+ 17,
895
+ 19,
896
+ 23,
897
+ 27,
898
+ 31,
899
+ 35,
900
+ 43,
901
+ 51,
902
+ 59,
903
+ 67,
904
+ 83,
905
+ 99,
906
+ 115,
907
+ 131,
908
+ 163,
909
+ 195,
910
+ 227,
911
+ 258,
912
+ 0,
913
+ 0
914
+ ], Vn = [
915
+ /* Length codes 257..285 extra */
916
+ 16,
917
+ 16,
918
+ 16,
919
+ 16,
920
+ 16,
921
+ 16,
922
+ 16,
923
+ 16,
924
+ 17,
925
+ 17,
926
+ 17,
927
+ 17,
928
+ 18,
929
+ 18,
930
+ 18,
931
+ 18,
932
+ 19,
933
+ 19,
934
+ 19,
935
+ 19,
936
+ 20,
937
+ 20,
938
+ 20,
939
+ 20,
940
+ 21,
941
+ 21,
942
+ 21,
943
+ 21,
944
+ 16,
945
+ 72,
946
+ 78
947
+ ], Jn = [
948
+ /* Distance codes 0..29 base */
949
+ 1,
950
+ 2,
951
+ 3,
952
+ 4,
953
+ 5,
954
+ 7,
955
+ 9,
956
+ 13,
957
+ 17,
958
+ 25,
959
+ 33,
960
+ 49,
961
+ 65,
962
+ 97,
963
+ 129,
964
+ 193,
965
+ 257,
966
+ 385,
967
+ 513,
968
+ 769,
969
+ 1025,
970
+ 1537,
971
+ 2049,
972
+ 3073,
973
+ 4097,
974
+ 6145,
975
+ 8193,
976
+ 12289,
977
+ 16385,
978
+ 24577,
979
+ 0,
980
+ 0
981
+ ], Qn = [
982
+ /* Distance codes 0..29 extra */
983
+ 16,
984
+ 16,
985
+ 16,
986
+ 16,
987
+ 17,
988
+ 17,
989
+ 18,
990
+ 18,
991
+ 19,
992
+ 19,
993
+ 20,
994
+ 20,
995
+ 21,
996
+ 21,
997
+ 22,
998
+ 22,
999
+ 23,
1000
+ 23,
1001
+ 24,
1002
+ 24,
1003
+ 25,
1004
+ 25,
1005
+ 26,
1006
+ 26,
1007
+ 27,
1008
+ 27,
1009
+ 28,
1010
+ 28,
1011
+ 29,
1012
+ 29,
1013
+ 64,
1014
+ 64
1015
+ ], er = function(i, t, a, r, n, h, f, _) {
1016
+ var l = _.bits, o = 0, v = 0, d = 0, u = 0, g = 0, w = 0, k = 0, b = 0, N = 0, z = 0, E, c, T, y, p, m = null, I = 0, x, G = new li.Buf16(me + 1), Ve = new li.Buf16(me + 1), Je = null, Gt = 0, Wt, Qe, et;
1017
+ for (o = 0; o <= me; o++)
1018
+ G[o] = 0;
1019
+ for (v = 0; v < r; v++)
1020
+ G[t[a + v]]++;
1021
+ for (g = l, u = me; u >= 1 && G[u] === 0; u--)
1022
+ ;
1023
+ if (g > u && (g = u), u === 0)
1024
+ return n[h++] = 1 << 24 | 64 << 16 | 0, n[h++] = 1 << 24 | 64 << 16 | 0, _.bits = 1, 0;
1025
+ for (d = 1; d < u && G[d] === 0; d++)
1026
+ ;
1027
+ for (g < d && (g = d), b = 1, o = 1; o <= me; o++)
1028
+ if (b <<= 1, b -= G[o], b < 0)
1029
+ return -1;
1030
+ if (b > 0 && (i === ui || u !== 1))
1031
+ return -1;
1032
+ for (Ve[1] = 0, o = 1; o < me; o++)
1033
+ Ve[o + 1] = Ve[o] + G[o];
1034
+ for (v = 0; v < r; v++)
1035
+ t[a + v] !== 0 && (f[Ve[t[a + v]]++] = v);
1036
+ if (i === ui ? (m = Je = f, x = 19) : i === mt ? (m = jn, I -= 257, Je = Vn, Gt -= 257, x = 256) : (m = Jn, Je = Qn, x = -1), z = 0, v = 0, o = d, p = h, w = g, k = 0, T = -1, N = 1 << g, y = N - 1, i === mt && N > oi || i === di && N > _i)
1037
+ return 1;
1038
+ for (; ; ) {
1039
+ Wt = o - k, f[v] < x ? (Qe = 0, et = f[v]) : f[v] > x ? (Qe = Je[Gt + f[v]], et = m[I + f[v]]) : (Qe = 32 + 64, et = 0), E = 1 << o - k, c = 1 << w, d = c;
1040
+ do
1041
+ c -= E, n[p + (z >> k) + c] = Wt << 24 | Qe << 16 | et | 0;
1042
+ while (c !== 0);
1043
+ for (E = 1 << o - 1; z & E; )
1044
+ E >>= 1;
1045
+ if (E !== 0 ? (z &= E - 1, z += E) : z = 0, v++, --G[o] === 0) {
1046
+ if (o === u)
1047
+ break;
1048
+ o = t[a + f[v]];
1049
+ }
1050
+ if (o > g && (z & y) !== T) {
1051
+ for (k === 0 && (k = g), p += d, w = o - k, b = 1 << w; w + k < u && (b -= G[w + k], !(b <= 0)); )
1052
+ w++, b <<= 1;
1053
+ if (N += 1 << w, i === mt && N > oi || i === di && N > _i)
1054
+ return 1;
1055
+ T = z & y, n[T] = g << 24 | w << 16 | p - h | 0;
1056
+ }
1057
+ }
1058
+ return z !== 0 && (n[p + z] = o - k << 24 | 64 << 16 | 0), _.bits = g, 0;
1059
+ }, M = re, Bt = ra, Q = fa, tr = Wn, $e = er, ir = 0, wa = 1, ba = 2, si = 4, ar = 5, at = 6, pe = 0, nr = 1, rr = 2, q = -2, pa = -3, xa = -4, fr = -5, ci = 8, ka = 1, vi = 2, gi = 3, wi = 4, bi = 5, pi = 6, xi = 7, ki = 8, Ei = 9, Si = 10, dt = 11, ae = 12, Ft = 13, yi = 14, Tt = 15, mi = 16, Fi = 17, Ti = 18, Ni = 19, nt = 20, rt = 21, zi = 22, Ai = 23, Oi = 24, Zi = 25, Ii = 26, Nt = 27, Li = 28, Di = 29, Z = 30, Ea = 31, hr = 32, lr = 852, or = 592, _r = 15, ur = _r;
1060
+ function Ri(e) {
1061
+ return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((e & 65280) << 8) + ((e & 255) << 24);
1062
+ }
1063
+ function dr() {
1064
+ 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 M.Buf16(320), this.work = new M.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
1065
+ }
1066
+ function Sa(e) {
1067
+ var i;
1068
+ return !e || !e.state ? q : (i = e.state, e.total_in = e.total_out = i.total = 0, e.msg = "", i.wrap && (e.adler = i.wrap & 1), i.mode = ka, i.last = 0, i.havedict = 0, i.dmax = 32768, i.head = null, i.hold = 0, i.bits = 0, i.lencode = i.lendyn = new M.Buf32(lr), i.distcode = i.distdyn = new M.Buf32(or), i.sane = 1, i.back = -1, pe);
1069
+ }
1070
+ function ya(e) {
1071
+ var i;
1072
+ return !e || !e.state ? q : (i = e.state, i.wsize = 0, i.whave = 0, i.wnext = 0, Sa(e));
1073
+ }
1074
+ function ma(e, i) {
1075
+ var t, a;
1076
+ return !e || !e.state || (a = e.state, i < 0 ? (t = 0, i = -i) : (t = (i >> 4) + 1, i < 48 && (i &= 15)), i && (i < 8 || i > 15)) ? q : (a.window !== null && a.wbits !== i && (a.window = null), a.wrap = t, a.wbits = i, ya(e));
1077
+ }
1078
+ function Fa(e, i) {
1079
+ var t, a;
1080
+ return e ? (a = new dr(), e.state = a, a.window = null, t = ma(e, i), t !== pe && (e.state = null), t) : q;
1081
+ }
1082
+ function sr(e) {
1083
+ return Fa(e, ur);
1084
+ }
1085
+ var Bi = !0, zt, At;
1086
+ function cr(e) {
1087
+ if (Bi) {
1088
+ var i;
1089
+ for (zt = new M.Buf32(512), At = new M.Buf32(32), i = 0; i < 144; )
1090
+ e.lens[i++] = 8;
1091
+ for (; i < 256; )
1092
+ e.lens[i++] = 9;
1093
+ for (; i < 280; )
1094
+ e.lens[i++] = 7;
1095
+ for (; i < 288; )
1096
+ e.lens[i++] = 8;
1097
+ for ($e(wa, e.lens, 0, 288, zt, 0, e.work, { bits: 9 }), i = 0; i < 32; )
1098
+ e.lens[i++] = 5;
1099
+ $e(ba, e.lens, 0, 32, At, 0, e.work, { bits: 5 }), Bi = !1;
1100
+ }
1101
+ e.lencode = zt, e.lenbits = 9, e.distcode = At, e.distbits = 5;
1102
+ }
1103
+ function Ta(e, i, t, a) {
1104
+ var r, n = e.state;
1105
+ return n.window === null && (n.wsize = 1 << n.wbits, n.wnext = 0, n.whave = 0, n.window = new M.Buf8(n.wsize)), a >= n.wsize ? (M.arraySet(n.window, i, t - n.wsize, n.wsize, 0), n.wnext = 0, n.whave = n.wsize) : (r = n.wsize - n.wnext, r > a && (r = a), M.arraySet(n.window, i, t - a, r, n.wnext), a -= r, a ? (M.arraySet(n.window, i, t - a, a, 0), n.wnext = a, n.whave = n.wsize) : (n.wnext += r, n.wnext === n.wsize && (n.wnext = 0), n.whave < n.wsize && (n.whave += r))), 0;
1106
+ }
1107
+ function vr(e, i) {
1108
+ var t, a, r, n, h, f, _, l, o, v, d, u, g, w, k = 0, b, N, z, E, c, T, y, p, m = new M.Buf8(4), I, x, G = (
1109
+ /* permutation of code lengths */
1110
+ [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
1111
+ );
1112
+ if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0)
1113
+ return q;
1114
+ t = e.state, t.mode === ae && (t.mode = Ft), h = e.next_out, r = e.output, _ = e.avail_out, n = e.next_in, a = e.input, f = e.avail_in, l = t.hold, o = t.bits, v = f, d = _, p = pe;
1115
+ e:
1116
+ for (; ; )
1117
+ switch (t.mode) {
1118
+ case ka:
1119
+ if (t.wrap === 0) {
1120
+ t.mode = Ft;
1121
+ break;
1122
+ }
1123
+ for (; o < 16; ) {
1124
+ if (f === 0)
1125
+ break e;
1126
+ f--, l += a[n++] << o, o += 8;
1127
+ }
1128
+ if (t.wrap & 2 && l === 35615) {
1129
+ t.check = 0, m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = Q(t.check, m, 2, 0), l = 0, o = 0, t.mode = vi;
1130
+ break;
1131
+ }
1132
+ if (t.flags = 0, t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
1133
+ (((l & 255) << 8) + (l >> 8)) % 31) {
1134
+ e.msg = "incorrect header check", t.mode = Z;
1135
+ break;
1136
+ }
1137
+ if ((l & 15) !== ci) {
1138
+ e.msg = "unknown compression method", t.mode = Z;
1139
+ break;
1140
+ }
1141
+ if (l >>>= 4, o -= 4, y = (l & 15) + 8, t.wbits === 0)
1142
+ t.wbits = y;
1143
+ else if (y > t.wbits) {
1144
+ e.msg = "invalid window size", t.mode = Z;
1145
+ break;
1146
+ }
1147
+ t.dmax = 1 << y, e.adler = t.check = 1, t.mode = l & 512 ? Si : ae, l = 0, o = 0;
1148
+ break;
1149
+ case vi:
1150
+ for (; o < 16; ) {
1151
+ if (f === 0)
1152
+ break e;
1153
+ f--, l += a[n++] << o, o += 8;
1154
+ }
1155
+ if (t.flags = l, (t.flags & 255) !== ci) {
1156
+ e.msg = "unknown compression method", t.mode = Z;
1157
+ break;
1158
+ }
1159
+ if (t.flags & 57344) {
1160
+ e.msg = "unknown header flags set", t.mode = Z;
1161
+ break;
1162
+ }
1163
+ t.head && (t.head.text = l >> 8 & 1), t.flags & 512 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = Q(t.check, m, 2, 0)), l = 0, o = 0, t.mode = gi;
1164
+ case gi:
1165
+ for (; o < 32; ) {
1166
+ if (f === 0)
1167
+ break e;
1168
+ f--, l += a[n++] << o, o += 8;
1169
+ }
1170
+ t.head && (t.head.time = l), t.flags & 512 && (m[0] = l & 255, m[1] = l >>> 8 & 255, m[2] = l >>> 16 & 255, m[3] = l >>> 24 & 255, t.check = Q(t.check, m, 4, 0)), l = 0, o = 0, t.mode = wi;
1171
+ case wi:
1172
+ for (; o < 16; ) {
1173
+ if (f === 0)
1174
+ break e;
1175
+ f--, l += a[n++] << o, o += 8;
1176
+ }
1177
+ t.head && (t.head.xflags = l & 255, t.head.os = l >> 8), t.flags & 512 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = Q(t.check, m, 2, 0)), l = 0, o = 0, t.mode = bi;
1178
+ case bi:
1179
+ if (t.flags & 1024) {
1180
+ for (; o < 16; ) {
1181
+ if (f === 0)
1182
+ break e;
1183
+ f--, l += a[n++] << o, o += 8;
1184
+ }
1185
+ t.length = l, t.head && (t.head.extra_len = l), t.flags & 512 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = Q(t.check, m, 2, 0)), l = 0, o = 0;
1186
+ } else
1187
+ t.head && (t.head.extra = null);
1188
+ t.mode = pi;
1189
+ case pi:
1190
+ if (t.flags & 1024 && (u = t.length, u > f && (u = f), u && (t.head && (y = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Array(t.head.extra_len)), M.arraySet(
1191
+ t.head.extra,
1192
+ a,
1193
+ n,
1194
+ // extra field is limited to 65536 bytes
1195
+ // - no need for additional size check
1196
+ u,
1197
+ /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
1198
+ y
1199
+ )), t.flags & 512 && (t.check = Q(t.check, a, u, n)), f -= u, n += u, t.length -= u), t.length))
1200
+ break e;
1201
+ t.length = 0, t.mode = xi;
1202
+ case xi:
1203
+ if (t.flags & 2048) {
1204
+ if (f === 0)
1205
+ break e;
1206
+ u = 0;
1207
+ do
1208
+ y = a[n + u++], t.head && y && t.length < 65536 && (t.head.name += String.fromCharCode(y));
1209
+ while (y && u < f);
1210
+ if (t.flags & 512 && (t.check = Q(t.check, a, u, n)), f -= u, n += u, y)
1211
+ break e;
1212
+ } else
1213
+ t.head && (t.head.name = null);
1214
+ t.length = 0, t.mode = ki;
1215
+ case ki:
1216
+ if (t.flags & 4096) {
1217
+ if (f === 0)
1218
+ break e;
1219
+ u = 0;
1220
+ do
1221
+ y = a[n + u++], t.head && y && t.length < 65536 && (t.head.comment += String.fromCharCode(y));
1222
+ while (y && u < f);
1223
+ if (t.flags & 512 && (t.check = Q(t.check, a, u, n)), f -= u, n += u, y)
1224
+ break e;
1225
+ } else
1226
+ t.head && (t.head.comment = null);
1227
+ t.mode = Ei;
1228
+ case Ei:
1229
+ if (t.flags & 512) {
1230
+ for (; o < 16; ) {
1231
+ if (f === 0)
1232
+ break e;
1233
+ f--, l += a[n++] << o, o += 8;
1234
+ }
1235
+ if (l !== (t.check & 65535)) {
1236
+ e.msg = "header crc mismatch", t.mode = Z;
1237
+ break;
1238
+ }
1239
+ l = 0, o = 0;
1240
+ }
1241
+ t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), e.adler = t.check = 0, t.mode = ae;
1242
+ break;
1243
+ case Si:
1244
+ for (; o < 32; ) {
1245
+ if (f === 0)
1246
+ break e;
1247
+ f--, l += a[n++] << o, o += 8;
1248
+ }
1249
+ e.adler = t.check = Ri(l), l = 0, o = 0, t.mode = dt;
1250
+ case dt:
1251
+ if (t.havedict === 0)
1252
+ return e.next_out = h, e.avail_out = _, e.next_in = n, e.avail_in = f, t.hold = l, t.bits = o, rr;
1253
+ e.adler = t.check = 1, t.mode = ae;
1254
+ case ae:
1255
+ if (i === ar || i === at)
1256
+ break e;
1257
+ case Ft:
1258
+ if (t.last) {
1259
+ l >>>= o & 7, o -= o & 7, t.mode = Nt;
1260
+ break;
1261
+ }
1262
+ for (; o < 3; ) {
1263
+ if (f === 0)
1264
+ break e;
1265
+ f--, l += a[n++] << o, o += 8;
1266
+ }
1267
+ switch (t.last = l & 1, l >>>= 1, o -= 1, l & 3) {
1268
+ case 0:
1269
+ t.mode = yi;
1270
+ break;
1271
+ case 1:
1272
+ if (cr(t), t.mode = nt, i === at) {
1273
+ l >>>= 2, o -= 2;
1274
+ break e;
1275
+ }
1276
+ break;
1277
+ case 2:
1278
+ t.mode = Fi;
1279
+ break;
1280
+ case 3:
1281
+ e.msg = "invalid block type", t.mode = Z;
1282
+ }
1283
+ l >>>= 2, o -= 2;
1284
+ break;
1285
+ case yi:
1286
+ for (l >>>= o & 7, o -= o & 7; o < 32; ) {
1287
+ if (f === 0)
1288
+ break e;
1289
+ f--, l += a[n++] << o, o += 8;
1290
+ }
1291
+ if ((l & 65535) !== (l >>> 16 ^ 65535)) {
1292
+ e.msg = "invalid stored block lengths", t.mode = Z;
1293
+ break;
1294
+ }
1295
+ if (t.length = l & 65535, l = 0, o = 0, t.mode = Tt, i === at)
1296
+ break e;
1297
+ case Tt:
1298
+ t.mode = mi;
1299
+ case mi:
1300
+ if (u = t.length, u) {
1301
+ if (u > f && (u = f), u > _ && (u = _), u === 0)
1302
+ break e;
1303
+ M.arraySet(r, a, n, u, h), f -= u, n += u, _ -= u, h += u, t.length -= u;
1304
+ break;
1305
+ }
1306
+ t.mode = ae;
1307
+ break;
1308
+ case Fi:
1309
+ for (; o < 14; ) {
1310
+ if (f === 0)
1311
+ break e;
1312
+ f--, l += a[n++] << o, o += 8;
1313
+ }
1314
+ if (t.nlen = (l & 31) + 257, l >>>= 5, o -= 5, t.ndist = (l & 31) + 1, l >>>= 5, o -= 5, t.ncode = (l & 15) + 4, l >>>= 4, o -= 4, t.nlen > 286 || t.ndist > 30) {
1315
+ e.msg = "too many length or distance symbols", t.mode = Z;
1316
+ break;
1317
+ }
1318
+ t.have = 0, t.mode = Ti;
1319
+ case Ti:
1320
+ for (; t.have < t.ncode; ) {
1321
+ for (; o < 3; ) {
1322
+ if (f === 0)
1323
+ break e;
1324
+ f--, l += a[n++] << o, o += 8;
1325
+ }
1326
+ t.lens[G[t.have++]] = l & 7, l >>>= 3, o -= 3;
1327
+ }
1328
+ for (; t.have < 19; )
1329
+ t.lens[G[t.have++]] = 0;
1330
+ if (t.lencode = t.lendyn, t.lenbits = 7, I = { bits: t.lenbits }, p = $e(ir, t.lens, 0, 19, t.lencode, 0, t.work, I), t.lenbits = I.bits, p) {
1331
+ e.msg = "invalid code lengths set", t.mode = Z;
1332
+ break;
1333
+ }
1334
+ t.have = 0, t.mode = Ni;
1335
+ case Ni:
1336
+ for (; t.have < t.nlen + t.ndist; ) {
1337
+ for (; k = t.lencode[l & (1 << t.lenbits) - 1], b = k >>> 24, N = k >>> 16 & 255, z = k & 65535, !(b <= o); ) {
1338
+ if (f === 0)
1339
+ break e;
1340
+ f--, l += a[n++] << o, o += 8;
1341
+ }
1342
+ if (z < 16)
1343
+ l >>>= b, o -= b, t.lens[t.have++] = z;
1344
+ else {
1345
+ if (z === 16) {
1346
+ for (x = b + 2; o < x; ) {
1347
+ if (f === 0)
1348
+ break e;
1349
+ f--, l += a[n++] << o, o += 8;
1350
+ }
1351
+ if (l >>>= b, o -= b, t.have === 0) {
1352
+ e.msg = "invalid bit length repeat", t.mode = Z;
1353
+ break;
1354
+ }
1355
+ y = t.lens[t.have - 1], u = 3 + (l & 3), l >>>= 2, o -= 2;
1356
+ } else if (z === 17) {
1357
+ for (x = b + 3; o < x; ) {
1358
+ if (f === 0)
1359
+ break e;
1360
+ f--, l += a[n++] << o, o += 8;
1361
+ }
1362
+ l >>>= b, o -= b, y = 0, u = 3 + (l & 7), l >>>= 3, o -= 3;
1363
+ } else {
1364
+ for (x = b + 7; o < x; ) {
1365
+ if (f === 0)
1366
+ break e;
1367
+ f--, l += a[n++] << o, o += 8;
1368
+ }
1369
+ l >>>= b, o -= b, y = 0, u = 11 + (l & 127), l >>>= 7, o -= 7;
1370
+ }
1371
+ if (t.have + u > t.nlen + t.ndist) {
1372
+ e.msg = "invalid bit length repeat", t.mode = Z;
1373
+ break;
1374
+ }
1375
+ for (; u--; )
1376
+ t.lens[t.have++] = y;
1377
+ }
1378
+ }
1379
+ if (t.mode === Z)
1380
+ break;
1381
+ if (t.lens[256] === 0) {
1382
+ e.msg = "invalid code -- missing end-of-block", t.mode = Z;
1383
+ break;
1384
+ }
1385
+ if (t.lenbits = 9, I = { bits: t.lenbits }, p = $e(wa, t.lens, 0, t.nlen, t.lencode, 0, t.work, I), t.lenbits = I.bits, p) {
1386
+ e.msg = "invalid literal/lengths set", t.mode = Z;
1387
+ break;
1388
+ }
1389
+ if (t.distbits = 6, t.distcode = t.distdyn, I = { bits: t.distbits }, p = $e(ba, t.lens, t.nlen, t.ndist, t.distcode, 0, t.work, I), t.distbits = I.bits, p) {
1390
+ e.msg = "invalid distances set", t.mode = Z;
1391
+ break;
1392
+ }
1393
+ if (t.mode = nt, i === at)
1394
+ break e;
1395
+ case nt:
1396
+ t.mode = rt;
1397
+ case rt:
1398
+ if (f >= 6 && _ >= 258) {
1399
+ e.next_out = h, e.avail_out = _, e.next_in = n, e.avail_in = f, t.hold = l, t.bits = o, tr(e, d), h = e.next_out, r = e.output, _ = e.avail_out, n = e.next_in, a = e.input, f = e.avail_in, l = t.hold, o = t.bits, t.mode === ae && (t.back = -1);
1400
+ break;
1401
+ }
1402
+ for (t.back = 0; k = t.lencode[l & (1 << t.lenbits) - 1], b = k >>> 24, N = k >>> 16 & 255, z = k & 65535, !(b <= o); ) {
1403
+ if (f === 0)
1404
+ break e;
1405
+ f--, l += a[n++] << o, o += 8;
1406
+ }
1407
+ if (N && !(N & 240)) {
1408
+ for (E = b, c = N, T = z; k = t.lencode[T + ((l & (1 << E + c) - 1) >> E)], b = k >>> 24, N = k >>> 16 & 255, z = k & 65535, !(E + b <= o); ) {
1409
+ if (f === 0)
1410
+ break e;
1411
+ f--, l += a[n++] << o, o += 8;
1412
+ }
1413
+ l >>>= E, o -= E, t.back += E;
1414
+ }
1415
+ if (l >>>= b, o -= b, t.back += b, t.length = z, N === 0) {
1416
+ t.mode = Ii;
1417
+ break;
1418
+ }
1419
+ if (N & 32) {
1420
+ t.back = -1, t.mode = ae;
1421
+ break;
1422
+ }
1423
+ if (N & 64) {
1424
+ e.msg = "invalid literal/length code", t.mode = Z;
1425
+ break;
1426
+ }
1427
+ t.extra = N & 15, t.mode = zi;
1428
+ case zi:
1429
+ if (t.extra) {
1430
+ for (x = t.extra; o < x; ) {
1431
+ if (f === 0)
1432
+ break e;
1433
+ f--, l += a[n++] << o, o += 8;
1434
+ }
1435
+ t.length += l & (1 << t.extra) - 1, l >>>= t.extra, o -= t.extra, t.back += t.extra;
1436
+ }
1437
+ t.was = t.length, t.mode = Ai;
1438
+ case Ai:
1439
+ for (; k = t.distcode[l & (1 << t.distbits) - 1], b = k >>> 24, N = k >>> 16 & 255, z = k & 65535, !(b <= o); ) {
1440
+ if (f === 0)
1441
+ break e;
1442
+ f--, l += a[n++] << o, o += 8;
1443
+ }
1444
+ if (!(N & 240)) {
1445
+ for (E = b, c = N, T = z; k = t.distcode[T + ((l & (1 << E + c) - 1) >> E)], b = k >>> 24, N = k >>> 16 & 255, z = k & 65535, !(E + b <= o); ) {
1446
+ if (f === 0)
1447
+ break e;
1448
+ f--, l += a[n++] << o, o += 8;
1449
+ }
1450
+ l >>>= E, o -= E, t.back += E;
1451
+ }
1452
+ if (l >>>= b, o -= b, t.back += b, N & 64) {
1453
+ e.msg = "invalid distance code", t.mode = Z;
1454
+ break;
1455
+ }
1456
+ t.offset = z, t.extra = N & 15, t.mode = Oi;
1457
+ case Oi:
1458
+ if (t.extra) {
1459
+ for (x = t.extra; o < x; ) {
1460
+ if (f === 0)
1461
+ break e;
1462
+ f--, l += a[n++] << o, o += 8;
1463
+ }
1464
+ t.offset += l & (1 << t.extra) - 1, l >>>= t.extra, o -= t.extra, t.back += t.extra;
1465
+ }
1466
+ if (t.offset > t.dmax) {
1467
+ e.msg = "invalid distance too far back", t.mode = Z;
1468
+ break;
1469
+ }
1470
+ t.mode = Zi;
1471
+ case Zi:
1472
+ if (_ === 0)
1473
+ break e;
1474
+ if (u = d - _, t.offset > u) {
1475
+ if (u = t.offset - u, u > t.whave && t.sane) {
1476
+ e.msg = "invalid distance too far back", t.mode = Z;
1477
+ break;
1478
+ }
1479
+ u > t.wnext ? (u -= t.wnext, g = t.wsize - u) : g = t.wnext - u, u > t.length && (u = t.length), w = t.window;
1480
+ } else
1481
+ w = r, g = h - t.offset, u = t.length;
1482
+ u > _ && (u = _), _ -= u, t.length -= u;
1483
+ do
1484
+ r[h++] = w[g++];
1485
+ while (--u);
1486
+ t.length === 0 && (t.mode = rt);
1487
+ break;
1488
+ case Ii:
1489
+ if (_ === 0)
1490
+ break e;
1491
+ r[h++] = t.length, _--, t.mode = rt;
1492
+ break;
1493
+ case Nt:
1494
+ if (t.wrap) {
1495
+ for (; o < 32; ) {
1496
+ if (f === 0)
1497
+ break e;
1498
+ f--, l |= a[n++] << o, o += 8;
1499
+ }
1500
+ if (d -= _, e.total_out += d, t.total += d, d && (e.adler = t.check = /*UPDATE(state.check, put - _out, _out);*/
1501
+ t.flags ? Q(t.check, r, d, h - d) : Bt(t.check, r, d, h - d)), d = _, (t.flags ? l : Ri(l)) !== t.check) {
1502
+ e.msg = "incorrect data check", t.mode = Z;
1503
+ break;
1504
+ }
1505
+ l = 0, o = 0;
1506
+ }
1507
+ t.mode = Li;
1508
+ case Li:
1509
+ if (t.wrap && t.flags) {
1510
+ for (; o < 32; ) {
1511
+ if (f === 0)
1512
+ break e;
1513
+ f--, l += a[n++] << o, o += 8;
1514
+ }
1515
+ if (l !== (t.total & 4294967295)) {
1516
+ e.msg = "incorrect length check", t.mode = Z;
1517
+ break;
1518
+ }
1519
+ l = 0, o = 0;
1520
+ }
1521
+ t.mode = Di;
1522
+ case Di:
1523
+ p = nr;
1524
+ break e;
1525
+ case Z:
1526
+ p = pa;
1527
+ break e;
1528
+ case Ea:
1529
+ return xa;
1530
+ case hr:
1531
+ default:
1532
+ return q;
1533
+ }
1534
+ return e.next_out = h, e.avail_out = _, e.next_in = n, e.avail_in = f, t.hold = l, t.bits = o, (t.wsize || d !== e.avail_out && t.mode < Z && (t.mode < Nt || i !== si)) && Ta(e, e.output, e.next_out, d - e.avail_out), v -= e.avail_in, d -= e.avail_out, e.total_in += v, e.total_out += d, t.total += d, t.wrap && d && (e.adler = t.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
1535
+ t.flags ? Q(t.check, r, d, e.next_out - d) : Bt(t.check, r, d, e.next_out - d)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === ae ? 128 : 0) + (t.mode === nt || t.mode === Tt ? 256 : 0), (v === 0 && d === 0 || i === si) && p === pe && (p = fr), p;
1536
+ }
1537
+ function gr(e) {
1538
+ if (!e || !e.state)
1539
+ return q;
1540
+ var i = e.state;
1541
+ return i.window && (i.window = null), e.state = null, pe;
1542
+ }
1543
+ function wr(e, i) {
1544
+ var t;
1545
+ return !e || !e.state || (t = e.state, !(t.wrap & 2)) ? q : (t.head = i, i.done = !1, pe);
1546
+ }
1547
+ function br(e, i) {
1548
+ var t = i.length, a, r, n;
1549
+ return !e || !e.state || (a = e.state, a.wrap !== 0 && a.mode !== dt) ? q : a.mode === dt && (r = 1, r = Bt(r, i, t, 0), r !== a.check) ? pa : (n = Ta(e, i, t, t), n ? (a.mode = Ea, xa) : (a.havedict = 1, pe));
1550
+ }
1551
+ j.inflateReset = ya;
1552
+ j.inflateReset2 = ma;
1553
+ j.inflateResetKeep = Sa;
1554
+ j.inflateInit = sr;
1555
+ j.inflateInit2 = Fa;
1556
+ j.inflate = vr;
1557
+ j.inflateEnd = gr;
1558
+ j.inflateGetHeader = wr;
1559
+ j.inflateSetDictionary = br;
1560
+ j.inflateInfo = "pako inflate (from Nodeca project)";
1561
+ var Na = {
1562
+ /* Allowed flush values; see deflate() and inflate() below for details */
1563
+ Z_NO_FLUSH: 0,
1564
+ Z_PARTIAL_FLUSH: 1,
1565
+ Z_SYNC_FLUSH: 2,
1566
+ Z_FULL_FLUSH: 3,
1567
+ Z_FINISH: 4,
1568
+ Z_BLOCK: 5,
1569
+ Z_TREES: 6,
1570
+ /* Return codes for the compression/decompression functions. Negative values
1571
+ * are errors, positive values are used for special but normal events.
1572
+ */
1573
+ Z_OK: 0,
1574
+ Z_STREAM_END: 1,
1575
+ Z_NEED_DICT: 2,
1576
+ Z_ERRNO: -1,
1577
+ Z_STREAM_ERROR: -2,
1578
+ Z_DATA_ERROR: -3,
1579
+ //Z_MEM_ERROR: -4,
1580
+ Z_BUF_ERROR: -5,
1581
+ //Z_VERSION_ERROR: -6,
1582
+ /* compression levels */
1583
+ Z_NO_COMPRESSION: 0,
1584
+ Z_BEST_SPEED: 1,
1585
+ Z_BEST_COMPRESSION: 9,
1586
+ Z_DEFAULT_COMPRESSION: -1,
1587
+ Z_FILTERED: 1,
1588
+ Z_HUFFMAN_ONLY: 2,
1589
+ Z_RLE: 3,
1590
+ Z_FIXED: 4,
1591
+ Z_DEFAULT_STRATEGY: 0,
1592
+ /* Possible values of the data_type field (though see inflate()) */
1593
+ Z_BINARY: 0,
1594
+ Z_TEXT: 1,
1595
+ //Z_ASCII: 1, // = Z_TEXT (deprecated)
1596
+ Z_UNKNOWN: 2,
1597
+ /* The deflate compression method */
1598
+ Z_DEFLATED: 8
1599
+ //Z_NULL: null // Use -1 or null inline, depending on var type
1600
+ };
1601
+ function pr() {
1602
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1;
1603
+ }
1604
+ var xr = pr, Ae = j, Me = re, _t = Ee, L = Na, Ct = Kt, kr = va, Er = xr, za = Object.prototype.toString;
1605
+ function xe(e) {
1606
+ if (!(this instanceof xe))
1607
+ return new xe(e);
1608
+ this.options = Me.assign({
1609
+ chunkSize: 16384,
1610
+ windowBits: 0,
1611
+ to: ""
1612
+ }, e || {});
1613
+ var i = this.options;
1614
+ i.raw && i.windowBits >= 0 && i.windowBits < 16 && (i.windowBits = -i.windowBits, i.windowBits === 0 && (i.windowBits = -15)), i.windowBits >= 0 && i.windowBits < 16 && !(e && e.windowBits) && (i.windowBits += 32), i.windowBits > 15 && i.windowBits < 48 && (i.windowBits & 15 || (i.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new kr(), this.strm.avail_out = 0;
1615
+ var t = Ae.inflateInit2(
1616
+ this.strm,
1617
+ i.windowBits
1618
+ );
1619
+ if (t !== L.Z_OK)
1620
+ throw new Error(Ct[t]);
1621
+ if (this.header = new Er(), Ae.inflateGetHeader(this.strm, this.header), i.dictionary && (typeof i.dictionary == "string" ? i.dictionary = _t.string2buf(i.dictionary) : za.call(i.dictionary) === "[object ArrayBuffer]" && (i.dictionary = new Uint8Array(i.dictionary)), i.raw && (t = Ae.inflateSetDictionary(this.strm, i.dictionary), t !== L.Z_OK)))
1622
+ throw new Error(Ct[t]);
1623
+ }
1624
+ xe.prototype.push = function(e, i) {
1625
+ var t = this.strm, a = this.options.chunkSize, r = this.options.dictionary, n, h, f, _, l, o = !1;
1626
+ if (this.ended)
1627
+ return !1;
1628
+ h = i === ~~i ? i : i === !0 ? L.Z_FINISH : L.Z_NO_FLUSH, typeof e == "string" ? t.input = _t.binstring2buf(e) : za.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length;
1629
+ do {
1630
+ if (t.avail_out === 0 && (t.output = new Me.Buf8(a), t.next_out = 0, t.avail_out = a), n = Ae.inflate(t, L.Z_NO_FLUSH), n === L.Z_NEED_DICT && r && (n = Ae.inflateSetDictionary(this.strm, r)), n === L.Z_BUF_ERROR && o === !0 && (n = L.Z_OK, o = !1), n !== L.Z_STREAM_END && n !== L.Z_OK)
1631
+ return this.onEnd(n), this.ended = !0, !1;
1632
+ t.next_out && (t.avail_out === 0 || n === L.Z_STREAM_END || t.avail_in === 0 && (h === L.Z_FINISH || h === L.Z_SYNC_FLUSH)) && (this.options.to === "string" ? (f = _t.utf8border(t.output, t.next_out), _ = t.next_out - f, l = _t.buf2string(t.output, f), t.next_out = _, t.avail_out = a - _, _ && Me.arraySet(t.output, t.output, f, _, 0), this.onData(l)) : this.onData(Me.shrinkBuf(t.output, t.next_out))), t.avail_in === 0 && t.avail_out === 0 && (o = !0);
1633
+ } while ((t.avail_in > 0 || t.avail_out === 0) && n !== L.Z_STREAM_END);
1634
+ return n === L.Z_STREAM_END && (h = L.Z_FINISH), h === L.Z_FINISH ? (n = Ae.inflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === L.Z_OK) : (h === L.Z_SYNC_FLUSH && (this.onEnd(L.Z_OK), t.avail_out = 0), !0);
1635
+ };
1636
+ xe.prototype.onData = function(e) {
1637
+ this.chunks.push(e);
1638
+ };
1639
+ xe.prototype.onEnd = function(e) {
1640
+ e === L.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = Me.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
1641
+ };
1642
+ function Xt(e, i) {
1643
+ var t = new xe(i);
1644
+ if (t.push(e, !0), t.err)
1645
+ throw t.msg || Ct[t.err];
1646
+ return t.result;
1647
+ }
1648
+ function Sr(e, i) {
1649
+ return i = i || {}, i.raw = !0, Xt(e, i);
1650
+ }
1651
+ je.Inflate = xe;
1652
+ je.inflate = Xt;
1653
+ je.inflateRaw = Sr;
1654
+ je.ungzip = Xt;
1655
+ var yr = re.assign, mr = qe, Fr = je, Tr = Na, Aa = {};
1656
+ yr(Aa, mr, Fr, Tr);
1657
+ var st = Aa;
1658
+ async function Zr(e) {
1659
+ try {
1660
+ let i, t = 0, a = 0;
1661
+ const r = [];
1662
+ let n = 0, h;
1663
+ do {
1664
+ const _ = e.subarray(t);
1665
+ if (h = new st.Inflate(), { strm: i } = h, h.push(_, st.Z_SYNC_FLUSH), h.err)
1666
+ throw new Error(h.msg);
1667
+ t += i.next_in, r[a] = h.result, n += r[a].length, a += 1;
1668
+ } while (i.avail_in);
1669
+ const f = new Uint8Array(n);
1670
+ for (let _ = 0, l = 0; _ < r.length; _++)
1671
+ f.set(r[_], l), l += r[_].length;
1672
+ return Pi.Buffer.from(f);
1673
+ } catch (i) {
1674
+ throw `${i}`.match(/incorrect header check/) ? new Error("problem decompressing block: incorrect gzip header check") : i;
1675
+ }
1676
+ }
1677
+ async function Ir(e, i) {
1678
+ try {
1679
+ let t;
1680
+ const { minv: a, maxv: r } = i;
1681
+ let n = a.blockPosition, h = a.dataPosition;
1682
+ const f = [], _ = [], l = [];
1683
+ let o = 0, v = 0;
1684
+ do {
1685
+ const g = e.subarray(n - a.blockPosition), w = new st.Inflate();
1686
+ if ({ strm: t } = w, w.push(g, st.Z_SYNC_FLUSH), w.err)
1687
+ throw new Error(w.msg);
1688
+ const k = w.result;
1689
+ f.push(k);
1690
+ let b = k.length;
1691
+ _.push(n), l.push(h), f.length === 1 && a.dataPosition && (f[0] = f[0].subarray(a.dataPosition), b = f[0].length);
1692
+ const N = n;
1693
+ if (n += t.next_in, h += b, N >= r.blockPosition) {
1694
+ f[v] = f[v].subarray(0, r.blockPosition === a.blockPosition ? r.dataPosition - a.dataPosition + 1 : r.dataPosition + 1), _.push(n), l.push(h), o += f[v].length;
1695
+ break;
1696
+ }
1697
+ o += f[v].length, v++;
1698
+ } while (t.avail_in);
1699
+ const d = new Uint8Array(o);
1700
+ for (let g = 0, w = 0; g < f.length; g++)
1701
+ d.set(f[g], w), w += f[g].length;
1702
+ return { buffer: Pi.Buffer.from(d), cpositions: _, dpositions: l };
1703
+ } catch (t) {
1704
+ throw `${t}`.match(/incorrect header check/) ? new Error("problem decompressing block: incorrect gzip header check") : t;
1705
+ }
1706
+ }
1707
+ var Nr = A, H = null;
1708
+ try {
1709
+ H = new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([
1710
+ 0,
1711
+ 97,
1712
+ 115,
1713
+ 109,
1714
+ 1,
1715
+ 0,
1716
+ 0,
1717
+ 0,
1718
+ 1,
1719
+ 13,
1720
+ 2,
1721
+ 96,
1722
+ 0,
1723
+ 1,
1724
+ 127,
1725
+ 96,
1726
+ 4,
1727
+ 127,
1728
+ 127,
1729
+ 127,
1730
+ 127,
1731
+ 1,
1732
+ 127,
1733
+ 3,
1734
+ 7,
1735
+ 6,
1736
+ 0,
1737
+ 1,
1738
+ 1,
1739
+ 1,
1740
+ 1,
1741
+ 1,
1742
+ 6,
1743
+ 6,
1744
+ 1,
1745
+ 127,
1746
+ 1,
1747
+ 65,
1748
+ 0,
1749
+ 11,
1750
+ 7,
1751
+ 50,
1752
+ 6,
1753
+ 3,
1754
+ 109,
1755
+ 117,
1756
+ 108,
1757
+ 0,
1758
+ 1,
1759
+ 5,
1760
+ 100,
1761
+ 105,
1762
+ 118,
1763
+ 95,
1764
+ 115,
1765
+ 0,
1766
+ 2,
1767
+ 5,
1768
+ 100,
1769
+ 105,
1770
+ 118,
1771
+ 95,
1772
+ 117,
1773
+ 0,
1774
+ 3,
1775
+ 5,
1776
+ 114,
1777
+ 101,
1778
+ 109,
1779
+ 95,
1780
+ 115,
1781
+ 0,
1782
+ 4,
1783
+ 5,
1784
+ 114,
1785
+ 101,
1786
+ 109,
1787
+ 95,
1788
+ 117,
1789
+ 0,
1790
+ 5,
1791
+ 8,
1792
+ 103,
1793
+ 101,
1794
+ 116,
1795
+ 95,
1796
+ 104,
1797
+ 105,
1798
+ 103,
1799
+ 104,
1800
+ 0,
1801
+ 0,
1802
+ 10,
1803
+ 191,
1804
+ 1,
1805
+ 6,
1806
+ 4,
1807
+ 0,
1808
+ 35,
1809
+ 0,
1810
+ 11,
1811
+ 36,
1812
+ 1,
1813
+ 1,
1814
+ 126,
1815
+ 32,
1816
+ 0,
1817
+ 173,
1818
+ 32,
1819
+ 1,
1820
+ 173,
1821
+ 66,
1822
+ 32,
1823
+ 134,
1824
+ 132,
1825
+ 32,
1826
+ 2,
1827
+ 173,
1828
+ 32,
1829
+ 3,
1830
+ 173,
1831
+ 66,
1832
+ 32,
1833
+ 134,
1834
+ 132,
1835
+ 126,
1836
+ 34,
1837
+ 4,
1838
+ 66,
1839
+ 32,
1840
+ 135,
1841
+ 167,
1842
+ 36,
1843
+ 0,
1844
+ 32,
1845
+ 4,
1846
+ 167,
1847
+ 11,
1848
+ 36,
1849
+ 1,
1850
+ 1,
1851
+ 126,
1852
+ 32,
1853
+ 0,
1854
+ 173,
1855
+ 32,
1856
+ 1,
1857
+ 173,
1858
+ 66,
1859
+ 32,
1860
+ 134,
1861
+ 132,
1862
+ 32,
1863
+ 2,
1864
+ 173,
1865
+ 32,
1866
+ 3,
1867
+ 173,
1868
+ 66,
1869
+ 32,
1870
+ 134,
1871
+ 132,
1872
+ 127,
1873
+ 34,
1874
+ 4,
1875
+ 66,
1876
+ 32,
1877
+ 135,
1878
+ 167,
1879
+ 36,
1880
+ 0,
1881
+ 32,
1882
+ 4,
1883
+ 167,
1884
+ 11,
1885
+ 36,
1886
+ 1,
1887
+ 1,
1888
+ 126,
1889
+ 32,
1890
+ 0,
1891
+ 173,
1892
+ 32,
1893
+ 1,
1894
+ 173,
1895
+ 66,
1896
+ 32,
1897
+ 134,
1898
+ 132,
1899
+ 32,
1900
+ 2,
1901
+ 173,
1902
+ 32,
1903
+ 3,
1904
+ 173,
1905
+ 66,
1906
+ 32,
1907
+ 134,
1908
+ 132,
1909
+ 128,
1910
+ 34,
1911
+ 4,
1912
+ 66,
1913
+ 32,
1914
+ 135,
1915
+ 167,
1916
+ 36,
1917
+ 0,
1918
+ 32,
1919
+ 4,
1920
+ 167,
1921
+ 11,
1922
+ 36,
1923
+ 1,
1924
+ 1,
1925
+ 126,
1926
+ 32,
1927
+ 0,
1928
+ 173,
1929
+ 32,
1930
+ 1,
1931
+ 173,
1932
+ 66,
1933
+ 32,
1934
+ 134,
1935
+ 132,
1936
+ 32,
1937
+ 2,
1938
+ 173,
1939
+ 32,
1940
+ 3,
1941
+ 173,
1942
+ 66,
1943
+ 32,
1944
+ 134,
1945
+ 132,
1946
+ 129,
1947
+ 34,
1948
+ 4,
1949
+ 66,
1950
+ 32,
1951
+ 135,
1952
+ 167,
1953
+ 36,
1954
+ 0,
1955
+ 32,
1956
+ 4,
1957
+ 167,
1958
+ 11,
1959
+ 36,
1960
+ 1,
1961
+ 1,
1962
+ 126,
1963
+ 32,
1964
+ 0,
1965
+ 173,
1966
+ 32,
1967
+ 1,
1968
+ 173,
1969
+ 66,
1970
+ 32,
1971
+ 134,
1972
+ 132,
1973
+ 32,
1974
+ 2,
1975
+ 173,
1976
+ 32,
1977
+ 3,
1978
+ 173,
1979
+ 66,
1980
+ 32,
1981
+ 134,
1982
+ 132,
1983
+ 130,
1984
+ 34,
1985
+ 4,
1986
+ 66,
1987
+ 32,
1988
+ 135,
1989
+ 167,
1990
+ 36,
1991
+ 0,
1992
+ 32,
1993
+ 4,
1994
+ 167,
1995
+ 11
1996
+ ])), {}).exports;
1997
+ } catch {
1998
+ }
1999
+ function A(e, i, t) {
2000
+ this.low = e | 0, this.high = i | 0, this.unsigned = !!t;
2001
+ }
2002
+ A.prototype.__isLong__;
2003
+ Object.defineProperty(A.prototype, "__isLong__", { value: !0 });
2004
+ function $(e) {
2005
+ return (e && e.__isLong__) === !0;
2006
+ }
2007
+ A.isLong = $;
2008
+ var Ci = {}, Ui = {};
2009
+ function Se(e, i) {
2010
+ var t, a, r;
2011
+ return i ? (e >>>= 0, (r = 0 <= e && e < 256) && (a = Ui[e], a) ? a : (t = O(e, (e | 0) < 0 ? -1 : 0, !0), r && (Ui[e] = t), t)) : (e |= 0, (r = -128 <= e && e < 128) && (a = Ci[e], a) ? a : (t = O(e, e < 0 ? -1 : 0, !1), r && (Ci[e] = t), t));
2012
+ }
2013
+ A.fromInt = Se;
2014
+ function P(e, i) {
2015
+ if (isNaN(e))
2016
+ return i ? ve : K;
2017
+ if (i) {
2018
+ if (e < 0)
2019
+ return ve;
2020
+ if (e >= Oa)
2021
+ return La;
2022
+ } else {
2023
+ if (e <= -Mi)
2024
+ return U;
2025
+ if (e + 1 >= Mi)
2026
+ return Ia;
2027
+ }
2028
+ return e < 0 ? P(-e, i).neg() : O(e % Oe | 0, e / Oe | 0, i);
2029
+ }
2030
+ A.fromNumber = P;
2031
+ function O(e, i, t) {
2032
+ return new A(e, i, t);
2033
+ }
2034
+ A.fromBits = O;
2035
+ var ct = Math.pow;
2036
+ function qt(e, i, t) {
2037
+ if (e.length === 0)
2038
+ throw Error("empty string");
2039
+ if (e === "NaN" || e === "Infinity" || e === "+Infinity" || e === "-Infinity")
2040
+ return K;
2041
+ if (typeof i == "number" ? (t = i, i = !1) : i = !!i, t = t || 10, t < 2 || 36 < t)
2042
+ throw RangeError("radix");
2043
+ var a;
2044
+ if ((a = e.indexOf("-")) > 0)
2045
+ throw Error("interior hyphen");
2046
+ if (a === 0)
2047
+ return qt(e.substring(1), i, t).neg();
2048
+ for (var r = P(ct(t, 8)), n = K, h = 0; h < e.length; h += 8) {
2049
+ var f = Math.min(8, e.length - h), _ = parseInt(e.substring(h, h + f), t);
2050
+ if (f < 8) {
2051
+ var l = P(ct(t, f));
2052
+ n = n.mul(l).add(P(_));
2053
+ } else
2054
+ n = n.mul(r), n = n.add(P(_));
2055
+ }
2056
+ return n.unsigned = i, n;
2057
+ }
2058
+ A.fromString = qt;
2059
+ function V(e, i) {
2060
+ return typeof e == "number" ? P(e, i) : typeof e == "string" ? qt(e, i) : O(e.low, e.high, typeof i == "boolean" ? i : e.unsigned);
2061
+ }
2062
+ A.fromValue = V;
2063
+ var $i = 65536, zr = 1 << 24, Oe = $i * $i, Oa = Oe * Oe, Mi = Oa / 2, Hi = Se(zr), K = Se(0);
2064
+ A.ZERO = K;
2065
+ var ve = Se(0, !0);
2066
+ A.UZERO = ve;
2067
+ var Te = Se(1);
2068
+ A.ONE = Te;
2069
+ var Za = Se(1, !0);
2070
+ A.UONE = Za;
2071
+ var Ut = Se(-1);
2072
+ A.NEG_ONE = Ut;
2073
+ var Ia = O(-1, 2147483647, !1);
2074
+ A.MAX_VALUE = Ia;
2075
+ var La = O(-1, -1, !0);
2076
+ A.MAX_UNSIGNED_VALUE = La;
2077
+ var U = O(0, -2147483648, !1);
2078
+ A.MIN_VALUE = U;
2079
+ var s = A.prototype;
2080
+ s.toInt = function() {
2081
+ return this.unsigned ? this.low >>> 0 : this.low;
2082
+ };
2083
+ s.toNumber = function() {
2084
+ return this.unsigned ? (this.high >>> 0) * Oe + (this.low >>> 0) : this.high * Oe + (this.low >>> 0);
2085
+ };
2086
+ s.toString = function(i) {
2087
+ if (i = i || 10, i < 2 || 36 < i)
2088
+ throw RangeError("radix");
2089
+ if (this.isZero())
2090
+ return "0";
2091
+ if (this.isNegative())
2092
+ if (this.eq(U)) {
2093
+ var t = P(i), a = this.div(t), r = a.mul(t).sub(this);
2094
+ return a.toString(i) + r.toInt().toString(i);
2095
+ } else
2096
+ return "-" + this.neg().toString(i);
2097
+ for (var n = P(ct(i, 6), this.unsigned), h = this, f = ""; ; ) {
2098
+ var _ = h.div(n), l = h.sub(_.mul(n)).toInt() >>> 0, o = l.toString(i);
2099
+ if (h = _, h.isZero())
2100
+ return o + f;
2101
+ for (; o.length < 6; )
2102
+ o = "0" + o;
2103
+ f = "" + o + f;
2104
+ }
2105
+ };
2106
+ s.getHighBits = function() {
2107
+ return this.high;
2108
+ };
2109
+ s.getHighBitsUnsigned = function() {
2110
+ return this.high >>> 0;
2111
+ };
2112
+ s.getLowBits = function() {
2113
+ return this.low;
2114
+ };
2115
+ s.getLowBitsUnsigned = function() {
2116
+ return this.low >>> 0;
2117
+ };
2118
+ s.getNumBitsAbs = function() {
2119
+ if (this.isNegative())
2120
+ return this.eq(U) ? 64 : this.neg().getNumBitsAbs();
2121
+ for (var i = this.high != 0 ? this.high : this.low, t = 31; t > 0 && !(i & 1 << t); t--)
2122
+ ;
2123
+ return this.high != 0 ? t + 33 : t + 1;
2124
+ };
2125
+ s.isZero = function() {
2126
+ return this.high === 0 && this.low === 0;
2127
+ };
2128
+ s.eqz = s.isZero;
2129
+ s.isNegative = function() {
2130
+ return !this.unsigned && this.high < 0;
2131
+ };
2132
+ s.isPositive = function() {
2133
+ return this.unsigned || this.high >= 0;
2134
+ };
2135
+ s.isOdd = function() {
2136
+ return (this.low & 1) === 1;
2137
+ };
2138
+ s.isEven = function() {
2139
+ return (this.low & 1) === 0;
2140
+ };
2141
+ s.equals = function(i) {
2142
+ return $(i) || (i = V(i)), this.unsigned !== i.unsigned && this.high >>> 31 === 1 && i.high >>> 31 === 1 ? !1 : this.high === i.high && this.low === i.low;
2143
+ };
2144
+ s.eq = s.equals;
2145
+ s.notEquals = function(i) {
2146
+ return !this.eq(
2147
+ /* validates */
2148
+ i
2149
+ );
2150
+ };
2151
+ s.neq = s.notEquals;
2152
+ s.ne = s.notEquals;
2153
+ s.lessThan = function(i) {
2154
+ return this.comp(
2155
+ /* validates */
2156
+ i
2157
+ ) < 0;
2158
+ };
2159
+ s.lt = s.lessThan;
2160
+ s.lessThanOrEqual = function(i) {
2161
+ return this.comp(
2162
+ /* validates */
2163
+ i
2164
+ ) <= 0;
2165
+ };
2166
+ s.lte = s.lessThanOrEqual;
2167
+ s.le = s.lessThanOrEqual;
2168
+ s.greaterThan = function(i) {
2169
+ return this.comp(
2170
+ /* validates */
2171
+ i
2172
+ ) > 0;
2173
+ };
2174
+ s.gt = s.greaterThan;
2175
+ s.greaterThanOrEqual = function(i) {
2176
+ return this.comp(
2177
+ /* validates */
2178
+ i
2179
+ ) >= 0;
2180
+ };
2181
+ s.gte = s.greaterThanOrEqual;
2182
+ s.ge = s.greaterThanOrEqual;
2183
+ s.compare = function(i) {
2184
+ if ($(i) || (i = V(i)), this.eq(i))
2185
+ return 0;
2186
+ var t = this.isNegative(), a = i.isNegative();
2187
+ return t && !a ? -1 : !t && a ? 1 : this.unsigned ? i.high >>> 0 > this.high >>> 0 || i.high === this.high && i.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(i).isNegative() ? -1 : 1;
2188
+ };
2189
+ s.comp = s.compare;
2190
+ s.negate = function() {
2191
+ return !this.unsigned && this.eq(U) ? U : this.not().add(Te);
2192
+ };
2193
+ s.neg = s.negate;
2194
+ s.add = function(i) {
2195
+ $(i) || (i = V(i));
2196
+ var t = this.high >>> 16, a = this.high & 65535, r = this.low >>> 16, n = this.low & 65535, h = i.high >>> 16, f = i.high & 65535, _ = i.low >>> 16, l = i.low & 65535, o = 0, v = 0, d = 0, u = 0;
2197
+ return u += n + l, d += u >>> 16, u &= 65535, d += r + _, v += d >>> 16, d &= 65535, v += a + f, o += v >>> 16, v &= 65535, o += t + h, o &= 65535, O(d << 16 | u, o << 16 | v, this.unsigned);
2198
+ };
2199
+ s.subtract = function(i) {
2200
+ return $(i) || (i = V(i)), this.add(i.neg());
2201
+ };
2202
+ s.sub = s.subtract;
2203
+ s.multiply = function(i) {
2204
+ if (this.isZero())
2205
+ return K;
2206
+ if ($(i) || (i = V(i)), H) {
2207
+ var t = H.mul(
2208
+ this.low,
2209
+ this.high,
2210
+ i.low,
2211
+ i.high
2212
+ );
2213
+ return O(t, H.get_high(), this.unsigned);
2214
+ }
2215
+ if (i.isZero())
2216
+ return K;
2217
+ if (this.eq(U))
2218
+ return i.isOdd() ? U : K;
2219
+ if (i.eq(U))
2220
+ return this.isOdd() ? U : K;
2221
+ if (this.isNegative())
2222
+ return i.isNegative() ? this.neg().mul(i.neg()) : this.neg().mul(i).neg();
2223
+ if (i.isNegative())
2224
+ return this.mul(i.neg()).neg();
2225
+ if (this.lt(Hi) && i.lt(Hi))
2226
+ return P(this.toNumber() * i.toNumber(), this.unsigned);
2227
+ var a = this.high >>> 16, r = this.high & 65535, n = this.low >>> 16, h = this.low & 65535, f = i.high >>> 16, _ = i.high & 65535, l = i.low >>> 16, o = i.low & 65535, v = 0, d = 0, u = 0, g = 0;
2228
+ return g += h * o, u += g >>> 16, g &= 65535, u += n * o, d += u >>> 16, u &= 65535, u += h * l, d += u >>> 16, u &= 65535, d += r * o, v += d >>> 16, d &= 65535, d += n * l, v += d >>> 16, d &= 65535, d += h * _, v += d >>> 16, d &= 65535, v += a * o + r * l + n * _ + h * f, v &= 65535, O(u << 16 | g, v << 16 | d, this.unsigned);
2229
+ };
2230
+ s.mul = s.multiply;
2231
+ s.divide = function(i) {
2232
+ if ($(i) || (i = V(i)), i.isZero())
2233
+ throw Error("division by zero");
2234
+ if (H) {
2235
+ if (!this.unsigned && this.high === -2147483648 && i.low === -1 && i.high === -1)
2236
+ return this;
2237
+ var t = (this.unsigned ? H.div_u : H.div_s)(
2238
+ this.low,
2239
+ this.high,
2240
+ i.low,
2241
+ i.high
2242
+ );
2243
+ return O(t, H.get_high(), this.unsigned);
2244
+ }
2245
+ if (this.isZero())
2246
+ return this.unsigned ? ve : K;
2247
+ var a, r, n;
2248
+ if (this.unsigned) {
2249
+ if (i.unsigned || (i = i.toUnsigned()), i.gt(this))
2250
+ return ve;
2251
+ if (i.gt(this.shru(1)))
2252
+ return Za;
2253
+ n = ve;
2254
+ } else {
2255
+ if (this.eq(U)) {
2256
+ if (i.eq(Te) || i.eq(Ut))
2257
+ return U;
2258
+ if (i.eq(U))
2259
+ return Te;
2260
+ var h = this.shr(1);
2261
+ return a = h.div(i).shl(1), a.eq(K) ? i.isNegative() ? Te : Ut : (r = this.sub(i.mul(a)), n = a.add(r.div(i)), n);
2262
+ } else if (i.eq(U))
2263
+ return this.unsigned ? ve : K;
2264
+ if (this.isNegative())
2265
+ return i.isNegative() ? this.neg().div(i.neg()) : this.neg().div(i).neg();
2266
+ if (i.isNegative())
2267
+ return this.div(i.neg()).neg();
2268
+ n = K;
2269
+ }
2270
+ for (r = this; r.gte(i); ) {
2271
+ a = Math.max(1, Math.floor(r.toNumber() / i.toNumber()));
2272
+ for (var f = Math.ceil(Math.log(a) / Math.LN2), _ = f <= 48 ? 1 : ct(2, f - 48), l = P(a), o = l.mul(i); o.isNegative() || o.gt(r); )
2273
+ a -= _, l = P(a, this.unsigned), o = l.mul(i);
2274
+ l.isZero() && (l = Te), n = n.add(l), r = r.sub(o);
2275
+ }
2276
+ return n;
2277
+ };
2278
+ s.div = s.divide;
2279
+ s.modulo = function(i) {
2280
+ if ($(i) || (i = V(i)), H) {
2281
+ var t = (this.unsigned ? H.rem_u : H.rem_s)(
2282
+ this.low,
2283
+ this.high,
2284
+ i.low,
2285
+ i.high
2286
+ );
2287
+ return O(t, H.get_high(), this.unsigned);
2288
+ }
2289
+ return this.sub(this.div(i).mul(i));
2290
+ };
2291
+ s.mod = s.modulo;
2292
+ s.rem = s.modulo;
2293
+ s.not = function() {
2294
+ return O(~this.low, ~this.high, this.unsigned);
2295
+ };
2296
+ s.and = function(i) {
2297
+ return $(i) || (i = V(i)), O(this.low & i.low, this.high & i.high, this.unsigned);
2298
+ };
2299
+ s.or = function(i) {
2300
+ return $(i) || (i = V(i)), O(this.low | i.low, this.high | i.high, this.unsigned);
2301
+ };
2302
+ s.xor = function(i) {
2303
+ return $(i) || (i = V(i)), O(this.low ^ i.low, this.high ^ i.high, this.unsigned);
2304
+ };
2305
+ s.shiftLeft = function(i) {
2306
+ return $(i) && (i = i.toInt()), (i &= 63) === 0 ? this : i < 32 ? O(this.low << i, this.high << i | this.low >>> 32 - i, this.unsigned) : O(0, this.low << i - 32, this.unsigned);
2307
+ };
2308
+ s.shl = s.shiftLeft;
2309
+ s.shiftRight = function(i) {
2310
+ return $(i) && (i = i.toInt()), (i &= 63) === 0 ? this : i < 32 ? O(this.low >>> i | this.high << 32 - i, this.high >> i, this.unsigned) : O(this.high >> i - 32, this.high >= 0 ? 0 : -1, this.unsigned);
2311
+ };
2312
+ s.shr = s.shiftRight;
2313
+ s.shiftRightUnsigned = function(i) {
2314
+ if ($(i) && (i = i.toInt()), i &= 63, i === 0)
2315
+ return this;
2316
+ var t = this.high;
2317
+ if (i < 32) {
2318
+ var a = this.low;
2319
+ return O(a >>> i | t << 32 - i, t >>> i, this.unsigned);
2320
+ } else
2321
+ return i === 32 ? O(t, 0, this.unsigned) : O(t >>> i - 32, 0, this.unsigned);
2322
+ };
2323
+ s.shru = s.shiftRightUnsigned;
2324
+ s.shr_u = s.shiftRightUnsigned;
2325
+ s.toSigned = function() {
2326
+ return this.unsigned ? O(this.low, this.high, !1) : this;
2327
+ };
2328
+ s.toUnsigned = function() {
2329
+ return this.unsigned ? this : O(this.low, this.high, !0);
2330
+ };
2331
+ s.toBytes = function(i) {
2332
+ return i ? this.toBytesLE() : this.toBytesBE();
2333
+ };
2334
+ s.toBytesLE = function() {
2335
+ var i = this.high, t = this.low;
2336
+ return [
2337
+ t & 255,
2338
+ t >>> 8 & 255,
2339
+ t >>> 16 & 255,
2340
+ t >>> 24,
2341
+ i & 255,
2342
+ i >>> 8 & 255,
2343
+ i >>> 16 & 255,
2344
+ i >>> 24
2345
+ ];
2346
+ };
2347
+ s.toBytesBE = function() {
2348
+ var i = this.high, t = this.low;
2349
+ return [
2350
+ i >>> 24,
2351
+ i >>> 16 & 255,
2352
+ i >>> 8 & 255,
2353
+ i & 255,
2354
+ t >>> 24,
2355
+ t >>> 16 & 255,
2356
+ t >>> 8 & 255,
2357
+ t & 255
2358
+ ];
2359
+ };
2360
+ A.fromBytes = function(i, t, a) {
2361
+ return a ? A.fromBytesLE(i, t) : A.fromBytesBE(i, t);
2362
+ };
2363
+ A.fromBytesLE = function(i, t) {
2364
+ return new A(
2365
+ i[0] | i[1] << 8 | i[2] << 16 | i[3] << 24,
2366
+ i[4] | i[5] << 8 | i[6] << 16 | i[7] << 24,
2367
+ t
2368
+ );
2369
+ };
2370
+ A.fromBytesBE = function(i, t) {
2371
+ return new A(
2372
+ i[4] << 24 | i[5] << 16 | i[6] << 8 | i[7],
2373
+ i[0] << 24 | i[1] << 16 | i[2] << 8 | i[3],
2374
+ t
2375
+ );
2376
+ };
2377
+ const Lr = /* @__PURE__ */ Da(Nr);
2378
+ export {
2379
+ Lr as L,
2380
+ Ir as a,
2381
+ Zr as u
2382
+ };