@weng-lab/genomebrowser 1.8.5-beta.2 → 1.8.5-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/fetchers.d.ts +2 -3
- package/dist/components/browser/GQLWrapper.d.ts +4 -0
- package/dist/components/tracks/transcript/types.d.ts +10 -3
- package/dist/genomebrowser.es.js +6649 -17155
- package/dist/genomebrowser.es.js.map +1 -1
- package/dist/hooks/useCustomData.d.ts +5 -2
- package/dist/index-CrNHPzF1.js +1046 -0
- package/dist/index-CrNHPzF1.js.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
function Tr(y, c) {
|
|
2
|
+
for (var F = 0; F < c.length; F++) {
|
|
3
|
+
const m = c[F];
|
|
4
|
+
if (typeof m != "string" && !Array.isArray(m)) {
|
|
5
|
+
for (const a in m)
|
|
6
|
+
if (a !== "default" && !(a in y)) {
|
|
7
|
+
const E = Object.getOwnPropertyDescriptor(m, a);
|
|
8
|
+
E && Object.defineProperty(y, a, E.get ? E : {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: () => m[a]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return Object.freeze(Object.defineProperty(y, Symbol.toStringTag, { value: "Module" }));
|
|
16
|
+
}
|
|
17
|
+
var V = {}, j = {}, ur;
|
|
18
|
+
function Cr() {
|
|
19
|
+
if (ur) return j;
|
|
20
|
+
ur = 1, j.byteLength = u, j.toByteArray = N, j.fromByteArray = M;
|
|
21
|
+
for (var y = [], c = [], F = typeof Uint8Array < "u" ? Uint8Array : Array, m = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = 0, E = m.length; a < E; ++a)
|
|
22
|
+
y[a] = m[a], c[m.charCodeAt(a)] = a;
|
|
23
|
+
c[45] = 62, c[95] = 63;
|
|
24
|
+
function p(f) {
|
|
25
|
+
var l = f.length;
|
|
26
|
+
if (l % 4 > 0)
|
|
27
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
28
|
+
var w = f.indexOf("=");
|
|
29
|
+
w === -1 && (w = l);
|
|
30
|
+
var C = w === l ? 0 : 4 - w % 4;
|
|
31
|
+
return [w, C];
|
|
32
|
+
}
|
|
33
|
+
function u(f) {
|
|
34
|
+
var l = p(f), w = l[0], C = l[1];
|
|
35
|
+
return (w + C) * 3 / 4 - C;
|
|
36
|
+
}
|
|
37
|
+
function L(f, l, w) {
|
|
38
|
+
return (l + w) * 3 / 4 - w;
|
|
39
|
+
}
|
|
40
|
+
function N(f) {
|
|
41
|
+
var l, w = p(f), C = w[0], _ = w[1], R = new F(L(f, C, _)), S = 0, P = _ > 0 ? C - 4 : C, I;
|
|
42
|
+
for (I = 0; I < P; I += 4)
|
|
43
|
+
l = c[f.charCodeAt(I)] << 18 | c[f.charCodeAt(I + 1)] << 12 | c[f.charCodeAt(I + 2)] << 6 | c[f.charCodeAt(I + 3)], R[S++] = l >> 16 & 255, R[S++] = l >> 8 & 255, R[S++] = l & 255;
|
|
44
|
+
return _ === 2 && (l = c[f.charCodeAt(I)] << 2 | c[f.charCodeAt(I + 1)] >> 4, R[S++] = l & 255), _ === 1 && (l = c[f.charCodeAt(I)] << 10 | c[f.charCodeAt(I + 1)] << 4 | c[f.charCodeAt(I + 2)] >> 2, R[S++] = l >> 8 & 255, R[S++] = l & 255), R;
|
|
45
|
+
}
|
|
46
|
+
function A(f) {
|
|
47
|
+
return y[f >> 18 & 63] + y[f >> 12 & 63] + y[f >> 6 & 63] + y[f & 63];
|
|
48
|
+
}
|
|
49
|
+
function U(f, l, w) {
|
|
50
|
+
for (var C, _ = [], R = l; R < w; R += 3)
|
|
51
|
+
C = (f[R] << 16 & 16711680) + (f[R + 1] << 8 & 65280) + (f[R + 2] & 255), _.push(A(C));
|
|
52
|
+
return _.join("");
|
|
53
|
+
}
|
|
54
|
+
function M(f) {
|
|
55
|
+
for (var l, w = f.length, C = w % 3, _ = [], R = 16383, S = 0, P = w - C; S < P; S += R)
|
|
56
|
+
_.push(U(f, S, S + R > P ? P : S + R));
|
|
57
|
+
return C === 1 ? (l = f[w - 1], _.push(
|
|
58
|
+
y[l >> 2] + y[l << 4 & 63] + "=="
|
|
59
|
+
)) : C === 2 && (l = (f[w - 2] << 8) + f[w - 1], _.push(
|
|
60
|
+
y[l >> 10] + y[l >> 4 & 63] + y[l << 2 & 63] + "="
|
|
61
|
+
)), _.join("");
|
|
62
|
+
}
|
|
63
|
+
return j;
|
|
64
|
+
}
|
|
65
|
+
var Y = {};
|
|
66
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
67
|
+
var hr;
|
|
68
|
+
function _r() {
|
|
69
|
+
return hr || (hr = 1, Y.read = function(y, c, F, m, a) {
|
|
70
|
+
var E, p, u = a * 8 - m - 1, L = (1 << u) - 1, N = L >> 1, A = -7, U = F ? a - 1 : 0, M = F ? -1 : 1, f = y[c + U];
|
|
71
|
+
for (U += M, E = f & (1 << -A) - 1, f >>= -A, A += u; A > 0; E = E * 256 + y[c + U], U += M, A -= 8)
|
|
72
|
+
;
|
|
73
|
+
for (p = E & (1 << -A) - 1, E >>= -A, A += m; A > 0; p = p * 256 + y[c + U], U += M, A -= 8)
|
|
74
|
+
;
|
|
75
|
+
if (E === 0)
|
|
76
|
+
E = 1 - N;
|
|
77
|
+
else {
|
|
78
|
+
if (E === L)
|
|
79
|
+
return p ? NaN : (f ? -1 : 1) * (1 / 0);
|
|
80
|
+
p = p + Math.pow(2, m), E = E - N;
|
|
81
|
+
}
|
|
82
|
+
return (f ? -1 : 1) * p * Math.pow(2, E - m);
|
|
83
|
+
}, Y.write = function(y, c, F, m, a, E) {
|
|
84
|
+
var p, u, L, N = E * 8 - a - 1, A = (1 << N) - 1, U = A >> 1, M = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f = m ? 0 : E - 1, l = m ? 1 : -1, w = c < 0 || c === 0 && 1 / c < 0 ? 1 : 0;
|
|
85
|
+
for (c = Math.abs(c), isNaN(c) || c === 1 / 0 ? (u = isNaN(c) ? 1 : 0, p = A) : (p = Math.floor(Math.log(c) / Math.LN2), c * (L = Math.pow(2, -p)) < 1 && (p--, L *= 2), p + U >= 1 ? c += M / L : c += M * Math.pow(2, 1 - U), c * L >= 2 && (p++, L /= 2), p + U >= A ? (u = 0, p = A) : p + U >= 1 ? (u = (c * L - 1) * Math.pow(2, a), p = p + U) : (u = c * Math.pow(2, U - 1) * Math.pow(2, a), p = 0)); a >= 8; y[F + f] = u & 255, f += l, u /= 256, a -= 8)
|
|
86
|
+
;
|
|
87
|
+
for (p = p << a | u, N += a; N > 0; y[F + f] = p & 255, f += l, p /= 256, N -= 8)
|
|
88
|
+
;
|
|
89
|
+
y[F + f - l] |= w * 128;
|
|
90
|
+
}), Y;
|
|
91
|
+
}
|
|
92
|
+
/*!
|
|
93
|
+
* The buffer module from node.js, for the browser.
|
|
94
|
+
*
|
|
95
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
96
|
+
* @license MIT
|
|
97
|
+
*/
|
|
98
|
+
var fr;
|
|
99
|
+
function Sr() {
|
|
100
|
+
return fr || (fr = 1, (function(y) {
|
|
101
|
+
const c = Cr(), F = _r(), m = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
102
|
+
y.Buffer = u, y.SlowBuffer = R, y.INSPECT_MAX_BYTES = 50;
|
|
103
|
+
const a = 2147483647;
|
|
104
|
+
y.kMaxLength = a, u.TYPED_ARRAY_SUPPORT = E(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
105
|
+
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
106
|
+
);
|
|
107
|
+
function E() {
|
|
108
|
+
try {
|
|
109
|
+
const i = new Uint8Array(1), r = { foo: function() {
|
|
110
|
+
return 42;
|
|
111
|
+
} };
|
|
112
|
+
return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(i, r), i.foo() === 42;
|
|
113
|
+
} catch {
|
|
114
|
+
return !1;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
Object.defineProperty(u.prototype, "parent", {
|
|
118
|
+
enumerable: !0,
|
|
119
|
+
get: function() {
|
|
120
|
+
if (u.isBuffer(this))
|
|
121
|
+
return this.buffer;
|
|
122
|
+
}
|
|
123
|
+
}), Object.defineProperty(u.prototype, "offset", {
|
|
124
|
+
enumerable: !0,
|
|
125
|
+
get: function() {
|
|
126
|
+
if (u.isBuffer(this))
|
|
127
|
+
return this.byteOffset;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
function p(i) {
|
|
131
|
+
if (i > a)
|
|
132
|
+
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
133
|
+
const r = new Uint8Array(i);
|
|
134
|
+
return Object.setPrototypeOf(r, u.prototype), r;
|
|
135
|
+
}
|
|
136
|
+
function u(i, r, t) {
|
|
137
|
+
if (typeof i == "number") {
|
|
138
|
+
if (typeof r == "string")
|
|
139
|
+
throw new TypeError(
|
|
140
|
+
'The "string" argument must be of type string. Received type number'
|
|
141
|
+
);
|
|
142
|
+
return U(i);
|
|
143
|
+
}
|
|
144
|
+
return L(i, r, t);
|
|
145
|
+
}
|
|
146
|
+
u.poolSize = 8192;
|
|
147
|
+
function L(i, r, t) {
|
|
148
|
+
if (typeof i == "string")
|
|
149
|
+
return M(i, r);
|
|
150
|
+
if (ArrayBuffer.isView(i))
|
|
151
|
+
return l(i);
|
|
152
|
+
if (i == null)
|
|
153
|
+
throw new TypeError(
|
|
154
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
155
|
+
);
|
|
156
|
+
if (k(i, ArrayBuffer) || i && k(i.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (k(i, SharedArrayBuffer) || i && k(i.buffer, SharedArrayBuffer)))
|
|
157
|
+
return w(i, r, t);
|
|
158
|
+
if (typeof i == "number")
|
|
159
|
+
throw new TypeError(
|
|
160
|
+
'The "value" argument must not be of type number. Received type number'
|
|
161
|
+
);
|
|
162
|
+
const e = i.valueOf && i.valueOf();
|
|
163
|
+
if (e != null && e !== i)
|
|
164
|
+
return u.from(e, r, t);
|
|
165
|
+
const n = C(i);
|
|
166
|
+
if (n) return n;
|
|
167
|
+
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
|
|
168
|
+
return u.from(i[Symbol.toPrimitive]("string"), r, t);
|
|
169
|
+
throw new TypeError(
|
|
170
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
u.from = function(i, r, t) {
|
|
174
|
+
return L(i, r, t);
|
|
175
|
+
}, Object.setPrototypeOf(u.prototype, Uint8Array.prototype), Object.setPrototypeOf(u, Uint8Array);
|
|
176
|
+
function N(i) {
|
|
177
|
+
if (typeof i != "number")
|
|
178
|
+
throw new TypeError('"size" argument must be of type number');
|
|
179
|
+
if (i < 0)
|
|
180
|
+
throw new RangeError('The value "' + i + '" is invalid for option "size"');
|
|
181
|
+
}
|
|
182
|
+
function A(i, r, t) {
|
|
183
|
+
return N(i), i <= 0 ? p(i) : r !== void 0 ? typeof t == "string" ? p(i).fill(r, t) : p(i).fill(r) : p(i);
|
|
184
|
+
}
|
|
185
|
+
u.alloc = function(i, r, t) {
|
|
186
|
+
return A(i, r, t);
|
|
187
|
+
};
|
|
188
|
+
function U(i) {
|
|
189
|
+
return N(i), p(i < 0 ? 0 : _(i) | 0);
|
|
190
|
+
}
|
|
191
|
+
u.allocUnsafe = function(i) {
|
|
192
|
+
return U(i);
|
|
193
|
+
}, u.allocUnsafeSlow = function(i) {
|
|
194
|
+
return U(i);
|
|
195
|
+
};
|
|
196
|
+
function M(i, r) {
|
|
197
|
+
if ((typeof r != "string" || r === "") && (r = "utf8"), !u.isEncoding(r))
|
|
198
|
+
throw new TypeError("Unknown encoding: " + r);
|
|
199
|
+
const t = S(i, r) | 0;
|
|
200
|
+
let e = p(t);
|
|
201
|
+
const n = e.write(i, r);
|
|
202
|
+
return n !== t && (e = e.slice(0, n)), e;
|
|
203
|
+
}
|
|
204
|
+
function f(i) {
|
|
205
|
+
const r = i.length < 0 ? 0 : _(i.length) | 0, t = p(r);
|
|
206
|
+
for (let e = 0; e < r; e += 1)
|
|
207
|
+
t[e] = i[e] & 255;
|
|
208
|
+
return t;
|
|
209
|
+
}
|
|
210
|
+
function l(i) {
|
|
211
|
+
if (k(i, Uint8Array)) {
|
|
212
|
+
const r = new Uint8Array(i);
|
|
213
|
+
return w(r.buffer, r.byteOffset, r.byteLength);
|
|
214
|
+
}
|
|
215
|
+
return f(i);
|
|
216
|
+
}
|
|
217
|
+
function w(i, r, t) {
|
|
218
|
+
if (r < 0 || i.byteLength < r)
|
|
219
|
+
throw new RangeError('"offset" is outside of buffer bounds');
|
|
220
|
+
if (i.byteLength < r + (t || 0))
|
|
221
|
+
throw new RangeError('"length" is outside of buffer bounds');
|
|
222
|
+
let e;
|
|
223
|
+
return r === void 0 && t === void 0 ? e = new Uint8Array(i) : t === void 0 ? e = new Uint8Array(i, r) : e = new Uint8Array(i, r, t), Object.setPrototypeOf(e, u.prototype), e;
|
|
224
|
+
}
|
|
225
|
+
function C(i) {
|
|
226
|
+
if (u.isBuffer(i)) {
|
|
227
|
+
const r = _(i.length) | 0, t = p(r);
|
|
228
|
+
return t.length === 0 || i.copy(t, 0, 0, r), t;
|
|
229
|
+
}
|
|
230
|
+
if (i.length !== void 0)
|
|
231
|
+
return typeof i.length != "number" || H(i.length) ? p(0) : f(i);
|
|
232
|
+
if (i.type === "Buffer" && Array.isArray(i.data))
|
|
233
|
+
return f(i.data);
|
|
234
|
+
}
|
|
235
|
+
function _(i) {
|
|
236
|
+
if (i >= a)
|
|
237
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes");
|
|
238
|
+
return i | 0;
|
|
239
|
+
}
|
|
240
|
+
function R(i) {
|
|
241
|
+
return +i != i && (i = 0), u.alloc(+i);
|
|
242
|
+
}
|
|
243
|
+
u.isBuffer = function(r) {
|
|
244
|
+
return r != null && r._isBuffer === !0 && r !== u.prototype;
|
|
245
|
+
}, u.compare = function(r, t) {
|
|
246
|
+
if (k(r, Uint8Array) && (r = u.from(r, r.offset, r.byteLength)), k(t, Uint8Array) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(r) || !u.isBuffer(t))
|
|
247
|
+
throw new TypeError(
|
|
248
|
+
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
249
|
+
);
|
|
250
|
+
if (r === t) return 0;
|
|
251
|
+
let e = r.length, n = t.length;
|
|
252
|
+
for (let o = 0, h = Math.min(e, n); o < h; ++o)
|
|
253
|
+
if (r[o] !== t[o]) {
|
|
254
|
+
e = r[o], n = t[o];
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
return e < n ? -1 : n < e ? 1 : 0;
|
|
258
|
+
}, u.isEncoding = function(r) {
|
|
259
|
+
switch (String(r).toLowerCase()) {
|
|
260
|
+
case "hex":
|
|
261
|
+
case "utf8":
|
|
262
|
+
case "utf-8":
|
|
263
|
+
case "ascii":
|
|
264
|
+
case "latin1":
|
|
265
|
+
case "binary":
|
|
266
|
+
case "base64":
|
|
267
|
+
case "ucs2":
|
|
268
|
+
case "ucs-2":
|
|
269
|
+
case "utf16le":
|
|
270
|
+
case "utf-16le":
|
|
271
|
+
return !0;
|
|
272
|
+
default:
|
|
273
|
+
return !1;
|
|
274
|
+
}
|
|
275
|
+
}, u.concat = function(r, t) {
|
|
276
|
+
if (!Array.isArray(r))
|
|
277
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
278
|
+
if (r.length === 0)
|
|
279
|
+
return u.alloc(0);
|
|
280
|
+
let e;
|
|
281
|
+
if (t === void 0)
|
|
282
|
+
for (t = 0, e = 0; e < r.length; ++e)
|
|
283
|
+
t += r[e].length;
|
|
284
|
+
const n = u.allocUnsafe(t);
|
|
285
|
+
let o = 0;
|
|
286
|
+
for (e = 0; e < r.length; ++e) {
|
|
287
|
+
let h = r[e];
|
|
288
|
+
if (k(h, Uint8Array))
|
|
289
|
+
o + h.length > n.length ? (u.isBuffer(h) || (h = u.from(h)), h.copy(n, o)) : Uint8Array.prototype.set.call(
|
|
290
|
+
n,
|
|
291
|
+
h,
|
|
292
|
+
o
|
|
293
|
+
);
|
|
294
|
+
else if (u.isBuffer(h))
|
|
295
|
+
h.copy(n, o);
|
|
296
|
+
else
|
|
297
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
298
|
+
o += h.length;
|
|
299
|
+
}
|
|
300
|
+
return n;
|
|
301
|
+
};
|
|
302
|
+
function S(i, r) {
|
|
303
|
+
if (u.isBuffer(i))
|
|
304
|
+
return i.length;
|
|
305
|
+
if (ArrayBuffer.isView(i) || k(i, ArrayBuffer))
|
|
306
|
+
return i.byteLength;
|
|
307
|
+
if (typeof i != "string")
|
|
308
|
+
throw new TypeError(
|
|
309
|
+
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof i
|
|
310
|
+
);
|
|
311
|
+
const t = i.length, e = arguments.length > 2 && arguments[2] === !0;
|
|
312
|
+
if (!e && t === 0) return 0;
|
|
313
|
+
let n = !1;
|
|
314
|
+
for (; ; )
|
|
315
|
+
switch (r) {
|
|
316
|
+
case "ascii":
|
|
317
|
+
case "latin1":
|
|
318
|
+
case "binary":
|
|
319
|
+
return t;
|
|
320
|
+
case "utf8":
|
|
321
|
+
case "utf-8":
|
|
322
|
+
return J(i).length;
|
|
323
|
+
case "ucs2":
|
|
324
|
+
case "ucs-2":
|
|
325
|
+
case "utf16le":
|
|
326
|
+
case "utf-16le":
|
|
327
|
+
return t * 2;
|
|
328
|
+
case "hex":
|
|
329
|
+
return t >>> 1;
|
|
330
|
+
case "base64":
|
|
331
|
+
return or(i).length;
|
|
332
|
+
default:
|
|
333
|
+
if (n)
|
|
334
|
+
return e ? -1 : J(i).length;
|
|
335
|
+
r = ("" + r).toLowerCase(), n = !0;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
u.byteLength = S;
|
|
339
|
+
function P(i, r, t) {
|
|
340
|
+
let e = !1;
|
|
341
|
+
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, r >>>= 0, t <= r))
|
|
342
|
+
return "";
|
|
343
|
+
for (i || (i = "utf8"); ; )
|
|
344
|
+
switch (i) {
|
|
345
|
+
case "hex":
|
|
346
|
+
return Er(this, r, t);
|
|
347
|
+
case "utf8":
|
|
348
|
+
case "utf-8":
|
|
349
|
+
return K(this, r, t);
|
|
350
|
+
case "ascii":
|
|
351
|
+
return xr(this, r, t);
|
|
352
|
+
case "latin1":
|
|
353
|
+
case "binary":
|
|
354
|
+
return Br(this, r, t);
|
|
355
|
+
case "base64":
|
|
356
|
+
return yr(this, r, t);
|
|
357
|
+
case "ucs2":
|
|
358
|
+
case "ucs-2":
|
|
359
|
+
case "utf16le":
|
|
360
|
+
case "utf-16le":
|
|
361
|
+
return dr(this, r, t);
|
|
362
|
+
default:
|
|
363
|
+
if (e) throw new TypeError("Unknown encoding: " + i);
|
|
364
|
+
i = (i + "").toLowerCase(), e = !0;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
u.prototype._isBuffer = !0;
|
|
368
|
+
function I(i, r, t) {
|
|
369
|
+
const e = i[r];
|
|
370
|
+
i[r] = i[t], i[t] = e;
|
|
371
|
+
}
|
|
372
|
+
u.prototype.swap16 = function() {
|
|
373
|
+
const r = this.length;
|
|
374
|
+
if (r % 2 !== 0)
|
|
375
|
+
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
376
|
+
for (let t = 0; t < r; t += 2)
|
|
377
|
+
I(this, t, t + 1);
|
|
378
|
+
return this;
|
|
379
|
+
}, u.prototype.swap32 = function() {
|
|
380
|
+
const r = this.length;
|
|
381
|
+
if (r % 4 !== 0)
|
|
382
|
+
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
383
|
+
for (let t = 0; t < r; t += 4)
|
|
384
|
+
I(this, t, t + 3), I(this, t + 1, t + 2);
|
|
385
|
+
return this;
|
|
386
|
+
}, u.prototype.swap64 = function() {
|
|
387
|
+
const r = this.length;
|
|
388
|
+
if (r % 8 !== 0)
|
|
389
|
+
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
390
|
+
for (let t = 0; t < r; t += 8)
|
|
391
|
+
I(this, t, t + 7), I(this, t + 1, t + 6), I(this, t + 2, t + 5), I(this, t + 3, t + 4);
|
|
392
|
+
return this;
|
|
393
|
+
}, u.prototype.toString = function() {
|
|
394
|
+
const r = this.length;
|
|
395
|
+
return r === 0 ? "" : arguments.length === 0 ? K(this, 0, r) : P.apply(this, arguments);
|
|
396
|
+
}, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(r) {
|
|
397
|
+
if (!u.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
|
|
398
|
+
return this === r ? !0 : u.compare(this, r) === 0;
|
|
399
|
+
}, u.prototype.inspect = function() {
|
|
400
|
+
let r = "";
|
|
401
|
+
const t = y.INSPECT_MAX_BYTES;
|
|
402
|
+
return r = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (r += " ... "), "<Buffer " + r + ">";
|
|
403
|
+
}, m && (u.prototype[m] = u.prototype.inspect), u.prototype.compare = function(r, t, e, n, o) {
|
|
404
|
+
if (k(r, Uint8Array) && (r = u.from(r, r.offset, r.byteLength)), !u.isBuffer(r))
|
|
405
|
+
throw new TypeError(
|
|
406
|
+
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
|
|
407
|
+
);
|
|
408
|
+
if (t === void 0 && (t = 0), e === void 0 && (e = r ? r.length : 0), n === void 0 && (n = 0), o === void 0 && (o = this.length), t < 0 || e > r.length || n < 0 || o > this.length)
|
|
409
|
+
throw new RangeError("out of range index");
|
|
410
|
+
if (n >= o && t >= e)
|
|
411
|
+
return 0;
|
|
412
|
+
if (n >= o)
|
|
413
|
+
return -1;
|
|
414
|
+
if (t >= e)
|
|
415
|
+
return 1;
|
|
416
|
+
if (t >>>= 0, e >>>= 0, n >>>= 0, o >>>= 0, this === r) return 0;
|
|
417
|
+
let h = o - n, s = e - t;
|
|
418
|
+
const d = Math.min(h, s), B = this.slice(n, o), g = r.slice(t, e);
|
|
419
|
+
for (let x = 0; x < d; ++x)
|
|
420
|
+
if (B[x] !== g[x]) {
|
|
421
|
+
h = B[x], s = g[x];
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
return h < s ? -1 : s < h ? 1 : 0;
|
|
425
|
+
};
|
|
426
|
+
function X(i, r, t, e, n) {
|
|
427
|
+
if (i.length === 0) return -1;
|
|
428
|
+
if (typeof t == "string" ? (e = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, H(t) && (t = n ? 0 : i.length - 1), t < 0 && (t = i.length + t), t >= i.length) {
|
|
429
|
+
if (n) return -1;
|
|
430
|
+
t = i.length - 1;
|
|
431
|
+
} else if (t < 0)
|
|
432
|
+
if (n) t = 0;
|
|
433
|
+
else return -1;
|
|
434
|
+
if (typeof r == "string" && (r = u.from(r, e)), u.isBuffer(r))
|
|
435
|
+
return r.length === 0 ? -1 : z(i, r, t, e, n);
|
|
436
|
+
if (typeof r == "number")
|
|
437
|
+
return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? n ? Uint8Array.prototype.indexOf.call(i, r, t) : Uint8Array.prototype.lastIndexOf.call(i, r, t) : z(i, [r], t, e, n);
|
|
438
|
+
throw new TypeError("val must be string, number or Buffer");
|
|
439
|
+
}
|
|
440
|
+
function z(i, r, t, e, n) {
|
|
441
|
+
let o = 1, h = i.length, s = r.length;
|
|
442
|
+
if (e !== void 0 && (e = String(e).toLowerCase(), e === "ucs2" || e === "ucs-2" || e === "utf16le" || e === "utf-16le")) {
|
|
443
|
+
if (i.length < 2 || r.length < 2)
|
|
444
|
+
return -1;
|
|
445
|
+
o = 2, h /= 2, s /= 2, t /= 2;
|
|
446
|
+
}
|
|
447
|
+
function d(g, x) {
|
|
448
|
+
return o === 1 ? g[x] : g.readUInt16BE(x * o);
|
|
449
|
+
}
|
|
450
|
+
let B;
|
|
451
|
+
if (n) {
|
|
452
|
+
let g = -1;
|
|
453
|
+
for (B = t; B < h; B++)
|
|
454
|
+
if (d(i, B) === d(r, g === -1 ? 0 : B - g)) {
|
|
455
|
+
if (g === -1 && (g = B), B - g + 1 === s) return g * o;
|
|
456
|
+
} else
|
|
457
|
+
g !== -1 && (B -= B - g), g = -1;
|
|
458
|
+
} else
|
|
459
|
+
for (t + s > h && (t = h - s), B = t; B >= 0; B--) {
|
|
460
|
+
let g = !0;
|
|
461
|
+
for (let x = 0; x < s; x++)
|
|
462
|
+
if (d(i, B + x) !== d(r, x)) {
|
|
463
|
+
g = !1;
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
if (g) return B;
|
|
467
|
+
}
|
|
468
|
+
return -1;
|
|
469
|
+
}
|
|
470
|
+
u.prototype.includes = function(r, t, e) {
|
|
471
|
+
return this.indexOf(r, t, e) !== -1;
|
|
472
|
+
}, u.prototype.indexOf = function(r, t, e) {
|
|
473
|
+
return X(this, r, t, e, !0);
|
|
474
|
+
}, u.prototype.lastIndexOf = function(r, t, e) {
|
|
475
|
+
return X(this, r, t, e, !1);
|
|
476
|
+
};
|
|
477
|
+
function cr(i, r, t, e) {
|
|
478
|
+
t = Number(t) || 0;
|
|
479
|
+
const n = i.length - t;
|
|
480
|
+
e ? (e = Number(e), e > n && (e = n)) : e = n;
|
|
481
|
+
const o = r.length;
|
|
482
|
+
e > o / 2 && (e = o / 2);
|
|
483
|
+
let h;
|
|
484
|
+
for (h = 0; h < e; ++h) {
|
|
485
|
+
const s = parseInt(r.substr(h * 2, 2), 16);
|
|
486
|
+
if (H(s)) return h;
|
|
487
|
+
i[t + h] = s;
|
|
488
|
+
}
|
|
489
|
+
return h;
|
|
490
|
+
}
|
|
491
|
+
function pr(i, r, t, e) {
|
|
492
|
+
return G(J(r, i.length - t), i, t, e);
|
|
493
|
+
}
|
|
494
|
+
function sr(i, r, t, e) {
|
|
495
|
+
return G(Fr(r), i, t, e);
|
|
496
|
+
}
|
|
497
|
+
function lr(i, r, t, e) {
|
|
498
|
+
return G(or(r), i, t, e);
|
|
499
|
+
}
|
|
500
|
+
function ar(i, r, t, e) {
|
|
501
|
+
return G(Ar(r, i.length - t), i, t, e);
|
|
502
|
+
}
|
|
503
|
+
u.prototype.write = function(r, t, e, n) {
|
|
504
|
+
if (t === void 0)
|
|
505
|
+
n = "utf8", e = this.length, t = 0;
|
|
506
|
+
else if (e === void 0 && typeof t == "string")
|
|
507
|
+
n = t, e = this.length, t = 0;
|
|
508
|
+
else if (isFinite(t))
|
|
509
|
+
t = t >>> 0, isFinite(e) ? (e = e >>> 0, n === void 0 && (n = "utf8")) : (n = e, e = void 0);
|
|
510
|
+
else
|
|
511
|
+
throw new Error(
|
|
512
|
+
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
513
|
+
);
|
|
514
|
+
const o = this.length - t;
|
|
515
|
+
if ((e === void 0 || e > o) && (e = o), r.length > 0 && (e < 0 || t < 0) || t > this.length)
|
|
516
|
+
throw new RangeError("Attempt to write outside buffer bounds");
|
|
517
|
+
n || (n = "utf8");
|
|
518
|
+
let h = !1;
|
|
519
|
+
for (; ; )
|
|
520
|
+
switch (n) {
|
|
521
|
+
case "hex":
|
|
522
|
+
return cr(this, r, t, e);
|
|
523
|
+
case "utf8":
|
|
524
|
+
case "utf-8":
|
|
525
|
+
return pr(this, r, t, e);
|
|
526
|
+
case "ascii":
|
|
527
|
+
case "latin1":
|
|
528
|
+
case "binary":
|
|
529
|
+
return sr(this, r, t, e);
|
|
530
|
+
case "base64":
|
|
531
|
+
return lr(this, r, t, e);
|
|
532
|
+
case "ucs2":
|
|
533
|
+
case "ucs-2":
|
|
534
|
+
case "utf16le":
|
|
535
|
+
case "utf-16le":
|
|
536
|
+
return ar(this, r, t, e);
|
|
537
|
+
default:
|
|
538
|
+
if (h) throw new TypeError("Unknown encoding: " + n);
|
|
539
|
+
n = ("" + n).toLowerCase(), h = !0;
|
|
540
|
+
}
|
|
541
|
+
}, u.prototype.toJSON = function() {
|
|
542
|
+
return {
|
|
543
|
+
type: "Buffer",
|
|
544
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
function yr(i, r, t) {
|
|
548
|
+
return r === 0 && t === i.length ? c.fromByteArray(i) : c.fromByteArray(i.slice(r, t));
|
|
549
|
+
}
|
|
550
|
+
function K(i, r, t) {
|
|
551
|
+
t = Math.min(i.length, t);
|
|
552
|
+
const e = [];
|
|
553
|
+
let n = r;
|
|
554
|
+
for (; n < t; ) {
|
|
555
|
+
const o = i[n];
|
|
556
|
+
let h = null, s = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
557
|
+
if (n + s <= t) {
|
|
558
|
+
let d, B, g, x;
|
|
559
|
+
switch (s) {
|
|
560
|
+
case 1:
|
|
561
|
+
o < 128 && (h = o);
|
|
562
|
+
break;
|
|
563
|
+
case 2:
|
|
564
|
+
d = i[n + 1], (d & 192) === 128 && (x = (o & 31) << 6 | d & 63, x > 127 && (h = x));
|
|
565
|
+
break;
|
|
566
|
+
case 3:
|
|
567
|
+
d = i[n + 1], B = i[n + 2], (d & 192) === 128 && (B & 192) === 128 && (x = (o & 15) << 12 | (d & 63) << 6 | B & 63, x > 2047 && (x < 55296 || x > 57343) && (h = x));
|
|
568
|
+
break;
|
|
569
|
+
case 4:
|
|
570
|
+
d = i[n + 1], B = i[n + 2], g = i[n + 3], (d & 192) === 128 && (B & 192) === 128 && (g & 192) === 128 && (x = (o & 15) << 18 | (d & 63) << 12 | (B & 63) << 6 | g & 63, x > 65535 && x < 1114112 && (h = x));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
h === null ? (h = 65533, s = 1) : h > 65535 && (h -= 65536, e.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), e.push(h), n += s;
|
|
574
|
+
}
|
|
575
|
+
return wr(e);
|
|
576
|
+
}
|
|
577
|
+
const Z = 4096;
|
|
578
|
+
function wr(i) {
|
|
579
|
+
const r = i.length;
|
|
580
|
+
if (r <= Z)
|
|
581
|
+
return String.fromCharCode.apply(String, i);
|
|
582
|
+
let t = "", e = 0;
|
|
583
|
+
for (; e < r; )
|
|
584
|
+
t += String.fromCharCode.apply(
|
|
585
|
+
String,
|
|
586
|
+
i.slice(e, e += Z)
|
|
587
|
+
);
|
|
588
|
+
return t;
|
|
589
|
+
}
|
|
590
|
+
function xr(i, r, t) {
|
|
591
|
+
let e = "";
|
|
592
|
+
t = Math.min(i.length, t);
|
|
593
|
+
for (let n = r; n < t; ++n)
|
|
594
|
+
e += String.fromCharCode(i[n] & 127);
|
|
595
|
+
return e;
|
|
596
|
+
}
|
|
597
|
+
function Br(i, r, t) {
|
|
598
|
+
let e = "";
|
|
599
|
+
t = Math.min(i.length, t);
|
|
600
|
+
for (let n = r; n < t; ++n)
|
|
601
|
+
e += String.fromCharCode(i[n]);
|
|
602
|
+
return e;
|
|
603
|
+
}
|
|
604
|
+
function Er(i, r, t) {
|
|
605
|
+
const e = i.length;
|
|
606
|
+
(!r || r < 0) && (r = 0), (!t || t < 0 || t > e) && (t = e);
|
|
607
|
+
let n = "";
|
|
608
|
+
for (let o = r; o < t; ++o)
|
|
609
|
+
n += Ur[i[o]];
|
|
610
|
+
return n;
|
|
611
|
+
}
|
|
612
|
+
function dr(i, r, t) {
|
|
613
|
+
const e = i.slice(r, t);
|
|
614
|
+
let n = "";
|
|
615
|
+
for (let o = 0; o < e.length - 1; o += 2)
|
|
616
|
+
n += String.fromCharCode(e[o] + e[o + 1] * 256);
|
|
617
|
+
return n;
|
|
618
|
+
}
|
|
619
|
+
u.prototype.slice = function(r, t) {
|
|
620
|
+
const e = this.length;
|
|
621
|
+
r = ~~r, t = t === void 0 ? e : ~~t, r < 0 ? (r += e, r < 0 && (r = 0)) : r > e && (r = e), t < 0 ? (t += e, t < 0 && (t = 0)) : t > e && (t = e), t < r && (t = r);
|
|
622
|
+
const n = this.subarray(r, t);
|
|
623
|
+
return Object.setPrototypeOf(n, u.prototype), n;
|
|
624
|
+
};
|
|
625
|
+
function T(i, r, t) {
|
|
626
|
+
if (i % 1 !== 0 || i < 0) throw new RangeError("offset is not uint");
|
|
627
|
+
if (i + r > t) throw new RangeError("Trying to access beyond buffer length");
|
|
628
|
+
}
|
|
629
|
+
u.prototype.readUintLE = u.prototype.readUIntLE = function(r, t, e) {
|
|
630
|
+
r = r >>> 0, t = t >>> 0, e || T(r, t, this.length);
|
|
631
|
+
let n = this[r], o = 1, h = 0;
|
|
632
|
+
for (; ++h < t && (o *= 256); )
|
|
633
|
+
n += this[r + h] * o;
|
|
634
|
+
return n;
|
|
635
|
+
}, u.prototype.readUintBE = u.prototype.readUIntBE = function(r, t, e) {
|
|
636
|
+
r = r >>> 0, t = t >>> 0, e || T(r, t, this.length);
|
|
637
|
+
let n = this[r + --t], o = 1;
|
|
638
|
+
for (; t > 0 && (o *= 256); )
|
|
639
|
+
n += this[r + --t] * o;
|
|
640
|
+
return n;
|
|
641
|
+
}, u.prototype.readUint8 = u.prototype.readUInt8 = function(r, t) {
|
|
642
|
+
return r = r >>> 0, t || T(r, 1, this.length), this[r];
|
|
643
|
+
}, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(r, t) {
|
|
644
|
+
return r = r >>> 0, t || T(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
645
|
+
}, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(r, t) {
|
|
646
|
+
return r = r >>> 0, t || T(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
647
|
+
}, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(r, t) {
|
|
648
|
+
return r = r >>> 0, t || T(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
649
|
+
}, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(r, t) {
|
|
650
|
+
return r = r >>> 0, t || T(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
651
|
+
}, u.prototype.readBigUInt64LE = D(function(r) {
|
|
652
|
+
r = r >>> 0, $(r, "offset");
|
|
653
|
+
const t = this[r], e = this[r + 7];
|
|
654
|
+
(t === void 0 || e === void 0) && q(r, this.length - 8);
|
|
655
|
+
const n = t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, o = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + e * 2 ** 24;
|
|
656
|
+
return BigInt(n) + (BigInt(o) << BigInt(32));
|
|
657
|
+
}), u.prototype.readBigUInt64BE = D(function(r) {
|
|
658
|
+
r = r >>> 0, $(r, "offset");
|
|
659
|
+
const t = this[r], e = this[r + 7];
|
|
660
|
+
(t === void 0 || e === void 0) && q(r, this.length - 8);
|
|
661
|
+
const n = t * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], o = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + e;
|
|
662
|
+
return (BigInt(n) << BigInt(32)) + BigInt(o);
|
|
663
|
+
}), u.prototype.readIntLE = function(r, t, e) {
|
|
664
|
+
r = r >>> 0, t = t >>> 0, e || T(r, t, this.length);
|
|
665
|
+
let n = this[r], o = 1, h = 0;
|
|
666
|
+
for (; ++h < t && (o *= 256); )
|
|
667
|
+
n += this[r + h] * o;
|
|
668
|
+
return o *= 128, n >= o && (n -= Math.pow(2, 8 * t)), n;
|
|
669
|
+
}, u.prototype.readIntBE = function(r, t, e) {
|
|
670
|
+
r = r >>> 0, t = t >>> 0, e || T(r, t, this.length);
|
|
671
|
+
let n = t, o = 1, h = this[r + --n];
|
|
672
|
+
for (; n > 0 && (o *= 256); )
|
|
673
|
+
h += this[r + --n] * o;
|
|
674
|
+
return o *= 128, h >= o && (h -= Math.pow(2, 8 * t)), h;
|
|
675
|
+
}, u.prototype.readInt8 = function(r, t) {
|
|
676
|
+
return r = r >>> 0, t || T(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
677
|
+
}, u.prototype.readInt16LE = function(r, t) {
|
|
678
|
+
r = r >>> 0, t || T(r, 2, this.length);
|
|
679
|
+
const e = this[r] | this[r + 1] << 8;
|
|
680
|
+
return e & 32768 ? e | 4294901760 : e;
|
|
681
|
+
}, u.prototype.readInt16BE = function(r, t) {
|
|
682
|
+
r = r >>> 0, t || T(r, 2, this.length);
|
|
683
|
+
const e = this[r + 1] | this[r] << 8;
|
|
684
|
+
return e & 32768 ? e | 4294901760 : e;
|
|
685
|
+
}, u.prototype.readInt32LE = function(r, t) {
|
|
686
|
+
return r = r >>> 0, t || T(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
687
|
+
}, u.prototype.readInt32BE = function(r, t) {
|
|
688
|
+
return r = r >>> 0, t || T(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
689
|
+
}, u.prototype.readBigInt64LE = D(function(r) {
|
|
690
|
+
r = r >>> 0, $(r, "offset");
|
|
691
|
+
const t = this[r], e = this[r + 7];
|
|
692
|
+
(t === void 0 || e === void 0) && q(r, this.length - 8);
|
|
693
|
+
const n = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (e << 24);
|
|
694
|
+
return (BigInt(n) << BigInt(32)) + BigInt(t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
|
|
695
|
+
}), u.prototype.readBigInt64BE = D(function(r) {
|
|
696
|
+
r = r >>> 0, $(r, "offset");
|
|
697
|
+
const t = this[r], e = this[r + 7];
|
|
698
|
+
(t === void 0 || e === void 0) && q(r, this.length - 8);
|
|
699
|
+
const n = (t << 24) + // Overflow
|
|
700
|
+
this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
|
|
701
|
+
return (BigInt(n) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + e);
|
|
702
|
+
}), u.prototype.readFloatLE = function(r, t) {
|
|
703
|
+
return r = r >>> 0, t || T(r, 4, this.length), F.read(this, r, !0, 23, 4);
|
|
704
|
+
}, u.prototype.readFloatBE = function(r, t) {
|
|
705
|
+
return r = r >>> 0, t || T(r, 4, this.length), F.read(this, r, !1, 23, 4);
|
|
706
|
+
}, u.prototype.readDoubleLE = function(r, t) {
|
|
707
|
+
return r = r >>> 0, t || T(r, 8, this.length), F.read(this, r, !0, 52, 8);
|
|
708
|
+
}, u.prototype.readDoubleBE = function(r, t) {
|
|
709
|
+
return r = r >>> 0, t || T(r, 8, this.length), F.read(this, r, !1, 52, 8);
|
|
710
|
+
};
|
|
711
|
+
function b(i, r, t, e, n, o) {
|
|
712
|
+
if (!u.isBuffer(i)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
713
|
+
if (r > n || r < o) throw new RangeError('"value" argument is out of bounds');
|
|
714
|
+
if (t + e > i.length) throw new RangeError("Index out of range");
|
|
715
|
+
}
|
|
716
|
+
u.prototype.writeUintLE = u.prototype.writeUIntLE = function(r, t, e, n) {
|
|
717
|
+
if (r = +r, t = t >>> 0, e = e >>> 0, !n) {
|
|
718
|
+
const s = Math.pow(2, 8 * e) - 1;
|
|
719
|
+
b(this, r, t, e, s, 0);
|
|
720
|
+
}
|
|
721
|
+
let o = 1, h = 0;
|
|
722
|
+
for (this[t] = r & 255; ++h < e && (o *= 256); )
|
|
723
|
+
this[t + h] = r / o & 255;
|
|
724
|
+
return t + e;
|
|
725
|
+
}, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(r, t, e, n) {
|
|
726
|
+
if (r = +r, t = t >>> 0, e = e >>> 0, !n) {
|
|
727
|
+
const s = Math.pow(2, 8 * e) - 1;
|
|
728
|
+
b(this, r, t, e, s, 0);
|
|
729
|
+
}
|
|
730
|
+
let o = e - 1, h = 1;
|
|
731
|
+
for (this[t + o] = r & 255; --o >= 0 && (h *= 256); )
|
|
732
|
+
this[t + o] = r / h & 255;
|
|
733
|
+
return t + e;
|
|
734
|
+
}, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(r, t, e) {
|
|
735
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
|
|
736
|
+
}, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(r, t, e) {
|
|
737
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 2, 65535, 0), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
|
|
738
|
+
}, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(r, t, e) {
|
|
739
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 2, 65535, 0), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
|
|
740
|
+
}, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(r, t, e) {
|
|
741
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 4, 4294967295, 0), this[t + 3] = r >>> 24, this[t + 2] = r >>> 16, this[t + 1] = r >>> 8, this[t] = r & 255, t + 4;
|
|
742
|
+
}, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(r, t, e) {
|
|
743
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
|
|
744
|
+
};
|
|
745
|
+
function Q(i, r, t, e, n) {
|
|
746
|
+
nr(r, e, n, i, t, 7);
|
|
747
|
+
let o = Number(r & BigInt(4294967295));
|
|
748
|
+
i[t++] = o, o = o >> 8, i[t++] = o, o = o >> 8, i[t++] = o, o = o >> 8, i[t++] = o;
|
|
749
|
+
let h = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
750
|
+
return i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, t;
|
|
751
|
+
}
|
|
752
|
+
function v(i, r, t, e, n) {
|
|
753
|
+
nr(r, e, n, i, t, 7);
|
|
754
|
+
let o = Number(r & BigInt(4294967295));
|
|
755
|
+
i[t + 7] = o, o = o >> 8, i[t + 6] = o, o = o >> 8, i[t + 5] = o, o = o >> 8, i[t + 4] = o;
|
|
756
|
+
let h = Number(r >> BigInt(32) & BigInt(4294967295));
|
|
757
|
+
return i[t + 3] = h, h = h >> 8, i[t + 2] = h, h = h >> 8, i[t + 1] = h, h = h >> 8, i[t] = h, t + 8;
|
|
758
|
+
}
|
|
759
|
+
u.prototype.writeBigUInt64LE = D(function(r, t = 0) {
|
|
760
|
+
return Q(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
761
|
+
}), u.prototype.writeBigUInt64BE = D(function(r, t = 0) {
|
|
762
|
+
return v(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
763
|
+
}), u.prototype.writeIntLE = function(r, t, e, n) {
|
|
764
|
+
if (r = +r, t = t >>> 0, !n) {
|
|
765
|
+
const d = Math.pow(2, 8 * e - 1);
|
|
766
|
+
b(this, r, t, e, d - 1, -d);
|
|
767
|
+
}
|
|
768
|
+
let o = 0, h = 1, s = 0;
|
|
769
|
+
for (this[t] = r & 255; ++o < e && (h *= 256); )
|
|
770
|
+
r < 0 && s === 0 && this[t + o - 1] !== 0 && (s = 1), this[t + o] = (r / h >> 0) - s & 255;
|
|
771
|
+
return t + e;
|
|
772
|
+
}, u.prototype.writeIntBE = function(r, t, e, n) {
|
|
773
|
+
if (r = +r, t = t >>> 0, !n) {
|
|
774
|
+
const d = Math.pow(2, 8 * e - 1);
|
|
775
|
+
b(this, r, t, e, d - 1, -d);
|
|
776
|
+
}
|
|
777
|
+
let o = e - 1, h = 1, s = 0;
|
|
778
|
+
for (this[t + o] = r & 255; --o >= 0 && (h *= 256); )
|
|
779
|
+
r < 0 && s === 0 && this[t + o + 1] !== 0 && (s = 1), this[t + o] = (r / h >> 0) - s & 255;
|
|
780
|
+
return t + e;
|
|
781
|
+
}, u.prototype.writeInt8 = function(r, t, e) {
|
|
782
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
|
|
783
|
+
}, u.prototype.writeInt16LE = function(r, t, e) {
|
|
784
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 2, 32767, -32768), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
|
|
785
|
+
}, u.prototype.writeInt16BE = function(r, t, e) {
|
|
786
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 2, 32767, -32768), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
|
|
787
|
+
}, u.prototype.writeInt32LE = function(r, t, e) {
|
|
788
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 4, 2147483647, -2147483648), this[t] = r & 255, this[t + 1] = r >>> 8, this[t + 2] = r >>> 16, this[t + 3] = r >>> 24, t + 4;
|
|
789
|
+
}, u.prototype.writeInt32BE = function(r, t, e) {
|
|
790
|
+
return r = +r, t = t >>> 0, e || b(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
|
|
791
|
+
}, u.prototype.writeBigInt64LE = D(function(r, t = 0) {
|
|
792
|
+
return Q(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
793
|
+
}), u.prototype.writeBigInt64BE = D(function(r, t = 0) {
|
|
794
|
+
return v(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
795
|
+
});
|
|
796
|
+
function rr(i, r, t, e, n, o) {
|
|
797
|
+
if (t + e > i.length) throw new RangeError("Index out of range");
|
|
798
|
+
if (t < 0) throw new RangeError("Index out of range");
|
|
799
|
+
}
|
|
800
|
+
function tr(i, r, t, e, n) {
|
|
801
|
+
return r = +r, t = t >>> 0, n || rr(i, r, t, 4), F.write(i, r, t, e, 23, 4), t + 4;
|
|
802
|
+
}
|
|
803
|
+
u.prototype.writeFloatLE = function(r, t, e) {
|
|
804
|
+
return tr(this, r, t, !0, e);
|
|
805
|
+
}, u.prototype.writeFloatBE = function(r, t, e) {
|
|
806
|
+
return tr(this, r, t, !1, e);
|
|
807
|
+
};
|
|
808
|
+
function ir(i, r, t, e, n) {
|
|
809
|
+
return r = +r, t = t >>> 0, n || rr(i, r, t, 8), F.write(i, r, t, e, 52, 8), t + 8;
|
|
810
|
+
}
|
|
811
|
+
u.prototype.writeDoubleLE = function(r, t, e) {
|
|
812
|
+
return ir(this, r, t, !0, e);
|
|
813
|
+
}, u.prototype.writeDoubleBE = function(r, t, e) {
|
|
814
|
+
return ir(this, r, t, !1, e);
|
|
815
|
+
}, u.prototype.copy = function(r, t, e, n) {
|
|
816
|
+
if (!u.isBuffer(r)) throw new TypeError("argument should be a Buffer");
|
|
817
|
+
if (e || (e = 0), !n && n !== 0 && (n = this.length), t >= r.length && (t = r.length), t || (t = 0), n > 0 && n < e && (n = e), n === e || r.length === 0 || this.length === 0) return 0;
|
|
818
|
+
if (t < 0)
|
|
819
|
+
throw new RangeError("targetStart out of bounds");
|
|
820
|
+
if (e < 0 || e >= this.length) throw new RangeError("Index out of range");
|
|
821
|
+
if (n < 0) throw new RangeError("sourceEnd out of bounds");
|
|
822
|
+
n > this.length && (n = this.length), r.length - t < n - e && (n = r.length - t + e);
|
|
823
|
+
const o = n - e;
|
|
824
|
+
return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, e, n) : Uint8Array.prototype.set.call(
|
|
825
|
+
r,
|
|
826
|
+
this.subarray(e, n),
|
|
827
|
+
t
|
|
828
|
+
), o;
|
|
829
|
+
}, u.prototype.fill = function(r, t, e, n) {
|
|
830
|
+
if (typeof r == "string") {
|
|
831
|
+
if (typeof t == "string" ? (n = t, t = 0, e = this.length) : typeof e == "string" && (n = e, e = this.length), n !== void 0 && typeof n != "string")
|
|
832
|
+
throw new TypeError("encoding must be a string");
|
|
833
|
+
if (typeof n == "string" && !u.isEncoding(n))
|
|
834
|
+
throw new TypeError("Unknown encoding: " + n);
|
|
835
|
+
if (r.length === 1) {
|
|
836
|
+
const h = r.charCodeAt(0);
|
|
837
|
+
(n === "utf8" && h < 128 || n === "latin1") && (r = h);
|
|
838
|
+
}
|
|
839
|
+
} else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
|
|
840
|
+
if (t < 0 || this.length < t || this.length < e)
|
|
841
|
+
throw new RangeError("Out of range index");
|
|
842
|
+
if (e <= t)
|
|
843
|
+
return this;
|
|
844
|
+
t = t >>> 0, e = e === void 0 ? this.length : e >>> 0, r || (r = 0);
|
|
845
|
+
let o;
|
|
846
|
+
if (typeof r == "number")
|
|
847
|
+
for (o = t; o < e; ++o)
|
|
848
|
+
this[o] = r;
|
|
849
|
+
else {
|
|
850
|
+
const h = u.isBuffer(r) ? r : u.from(r, n), s = h.length;
|
|
851
|
+
if (s === 0)
|
|
852
|
+
throw new TypeError('The value "' + r + '" is invalid for argument "value"');
|
|
853
|
+
for (o = 0; o < e - t; ++o)
|
|
854
|
+
this[o + t] = h[o % s];
|
|
855
|
+
}
|
|
856
|
+
return this;
|
|
857
|
+
};
|
|
858
|
+
const O = {};
|
|
859
|
+
function W(i, r, t) {
|
|
860
|
+
O[i] = class extends t {
|
|
861
|
+
constructor() {
|
|
862
|
+
super(), Object.defineProperty(this, "message", {
|
|
863
|
+
value: r.apply(this, arguments),
|
|
864
|
+
writable: !0,
|
|
865
|
+
configurable: !0
|
|
866
|
+
}), this.name = `${this.name} [${i}]`, this.stack, delete this.name;
|
|
867
|
+
}
|
|
868
|
+
get code() {
|
|
869
|
+
return i;
|
|
870
|
+
}
|
|
871
|
+
set code(n) {
|
|
872
|
+
Object.defineProperty(this, "code", {
|
|
873
|
+
configurable: !0,
|
|
874
|
+
enumerable: !0,
|
|
875
|
+
value: n,
|
|
876
|
+
writable: !0
|
|
877
|
+
});
|
|
878
|
+
}
|
|
879
|
+
toString() {
|
|
880
|
+
return `${this.name} [${i}]: ${this.message}`;
|
|
881
|
+
}
|
|
882
|
+
};
|
|
883
|
+
}
|
|
884
|
+
W(
|
|
885
|
+
"ERR_BUFFER_OUT_OF_BOUNDS",
|
|
886
|
+
function(i) {
|
|
887
|
+
return i ? `${i} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
|
|
888
|
+
},
|
|
889
|
+
RangeError
|
|
890
|
+
), W(
|
|
891
|
+
"ERR_INVALID_ARG_TYPE",
|
|
892
|
+
function(i, r) {
|
|
893
|
+
return `The "${i}" argument must be of type number. Received type ${typeof r}`;
|
|
894
|
+
},
|
|
895
|
+
TypeError
|
|
896
|
+
), W(
|
|
897
|
+
"ERR_OUT_OF_RANGE",
|
|
898
|
+
function(i, r, t) {
|
|
899
|
+
let e = `The value of "${i}" is out of range.`, n = t;
|
|
900
|
+
return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? n = er(String(t)) : typeof t == "bigint" && (n = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (n = er(n)), n += "n"), e += ` It must be ${r}. Received ${n}`, e;
|
|
901
|
+
},
|
|
902
|
+
RangeError
|
|
903
|
+
);
|
|
904
|
+
function er(i) {
|
|
905
|
+
let r = "", t = i.length;
|
|
906
|
+
const e = i[0] === "-" ? 1 : 0;
|
|
907
|
+
for (; t >= e + 4; t -= 3)
|
|
908
|
+
r = `_${i.slice(t - 3, t)}${r}`;
|
|
909
|
+
return `${i.slice(0, t)}${r}`;
|
|
910
|
+
}
|
|
911
|
+
function gr(i, r, t) {
|
|
912
|
+
$(r, "offset"), (i[r] === void 0 || i[r + t] === void 0) && q(r, i.length - (t + 1));
|
|
913
|
+
}
|
|
914
|
+
function nr(i, r, t, e, n, o) {
|
|
915
|
+
if (i > t || i < r) {
|
|
916
|
+
const h = typeof r == "bigint" ? "n" : "";
|
|
917
|
+
let s;
|
|
918
|
+
throw r === 0 || r === BigInt(0) ? s = `>= 0${h} and < 2${h} ** ${(o + 1) * 8}${h}` : s = `>= -(2${h} ** ${(o + 1) * 8 - 1}${h}) and < 2 ** ${(o + 1) * 8 - 1}${h}`, new O.ERR_OUT_OF_RANGE("value", s, i);
|
|
919
|
+
}
|
|
920
|
+
gr(e, n, o);
|
|
921
|
+
}
|
|
922
|
+
function $(i, r) {
|
|
923
|
+
if (typeof i != "number")
|
|
924
|
+
throw new O.ERR_INVALID_ARG_TYPE(r, "number", i);
|
|
925
|
+
}
|
|
926
|
+
function q(i, r, t) {
|
|
927
|
+
throw Math.floor(i) !== i ? ($(i, t), new O.ERR_OUT_OF_RANGE("offset", "an integer", i)) : r < 0 ? new O.ERR_BUFFER_OUT_OF_BOUNDS() : new O.ERR_OUT_OF_RANGE(
|
|
928
|
+
"offset",
|
|
929
|
+
`>= 0 and <= ${r}`,
|
|
930
|
+
i
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
const mr = /[^+/0-9A-Za-z-_]/g;
|
|
934
|
+
function Ir(i) {
|
|
935
|
+
if (i = i.split("=")[0], i = i.trim().replace(mr, ""), i.length < 2) return "";
|
|
936
|
+
for (; i.length % 4 !== 0; )
|
|
937
|
+
i = i + "=";
|
|
938
|
+
return i;
|
|
939
|
+
}
|
|
940
|
+
function J(i, r) {
|
|
941
|
+
r = r || 1 / 0;
|
|
942
|
+
let t;
|
|
943
|
+
const e = i.length;
|
|
944
|
+
let n = null;
|
|
945
|
+
const o = [];
|
|
946
|
+
for (let h = 0; h < e; ++h) {
|
|
947
|
+
if (t = i.charCodeAt(h), t > 55295 && t < 57344) {
|
|
948
|
+
if (!n) {
|
|
949
|
+
if (t > 56319) {
|
|
950
|
+
(r -= 3) > -1 && o.push(239, 191, 189);
|
|
951
|
+
continue;
|
|
952
|
+
} else if (h + 1 === e) {
|
|
953
|
+
(r -= 3) > -1 && o.push(239, 191, 189);
|
|
954
|
+
continue;
|
|
955
|
+
}
|
|
956
|
+
n = t;
|
|
957
|
+
continue;
|
|
958
|
+
}
|
|
959
|
+
if (t < 56320) {
|
|
960
|
+
(r -= 3) > -1 && o.push(239, 191, 189), n = t;
|
|
961
|
+
continue;
|
|
962
|
+
}
|
|
963
|
+
t = (n - 55296 << 10 | t - 56320) + 65536;
|
|
964
|
+
} else n && (r -= 3) > -1 && o.push(239, 191, 189);
|
|
965
|
+
if (n = null, t < 128) {
|
|
966
|
+
if ((r -= 1) < 0) break;
|
|
967
|
+
o.push(t);
|
|
968
|
+
} else if (t < 2048) {
|
|
969
|
+
if ((r -= 2) < 0) break;
|
|
970
|
+
o.push(
|
|
971
|
+
t >> 6 | 192,
|
|
972
|
+
t & 63 | 128
|
|
973
|
+
);
|
|
974
|
+
} else if (t < 65536) {
|
|
975
|
+
if ((r -= 3) < 0) break;
|
|
976
|
+
o.push(
|
|
977
|
+
t >> 12 | 224,
|
|
978
|
+
t >> 6 & 63 | 128,
|
|
979
|
+
t & 63 | 128
|
|
980
|
+
);
|
|
981
|
+
} else if (t < 1114112) {
|
|
982
|
+
if ((r -= 4) < 0) break;
|
|
983
|
+
o.push(
|
|
984
|
+
t >> 18 | 240,
|
|
985
|
+
t >> 12 & 63 | 128,
|
|
986
|
+
t >> 6 & 63 | 128,
|
|
987
|
+
t & 63 | 128
|
|
988
|
+
);
|
|
989
|
+
} else
|
|
990
|
+
throw new Error("Invalid code point");
|
|
991
|
+
}
|
|
992
|
+
return o;
|
|
993
|
+
}
|
|
994
|
+
function Fr(i) {
|
|
995
|
+
const r = [];
|
|
996
|
+
for (let t = 0; t < i.length; ++t)
|
|
997
|
+
r.push(i.charCodeAt(t) & 255);
|
|
998
|
+
return r;
|
|
999
|
+
}
|
|
1000
|
+
function Ar(i, r) {
|
|
1001
|
+
let t, e, n;
|
|
1002
|
+
const o = [];
|
|
1003
|
+
for (let h = 0; h < i.length && !((r -= 2) < 0); ++h)
|
|
1004
|
+
t = i.charCodeAt(h), e = t >> 8, n = t % 256, o.push(n), o.push(e);
|
|
1005
|
+
return o;
|
|
1006
|
+
}
|
|
1007
|
+
function or(i) {
|
|
1008
|
+
return c.toByteArray(Ir(i));
|
|
1009
|
+
}
|
|
1010
|
+
function G(i, r, t, e) {
|
|
1011
|
+
let n;
|
|
1012
|
+
for (n = 0; n < e && !(n + t >= r.length || n >= i.length); ++n)
|
|
1013
|
+
r[n + t] = i[n];
|
|
1014
|
+
return n;
|
|
1015
|
+
}
|
|
1016
|
+
function k(i, r) {
|
|
1017
|
+
return i instanceof r || i != null && i.constructor != null && i.constructor.name != null && i.constructor.name === r.name;
|
|
1018
|
+
}
|
|
1019
|
+
function H(i) {
|
|
1020
|
+
return i !== i;
|
|
1021
|
+
}
|
|
1022
|
+
const Ur = (function() {
|
|
1023
|
+
const i = "0123456789abcdef", r = new Array(256);
|
|
1024
|
+
for (let t = 0; t < 16; ++t) {
|
|
1025
|
+
const e = t * 16;
|
|
1026
|
+
for (let n = 0; n < 16; ++n)
|
|
1027
|
+
r[e + n] = i[t] + i[n];
|
|
1028
|
+
}
|
|
1029
|
+
return r;
|
|
1030
|
+
})();
|
|
1031
|
+
function D(i) {
|
|
1032
|
+
return typeof BigInt > "u" ? Rr : i;
|
|
1033
|
+
}
|
|
1034
|
+
function Rr() {
|
|
1035
|
+
throw new Error("BigInt not supported");
|
|
1036
|
+
}
|
|
1037
|
+
})(V)), V;
|
|
1038
|
+
}
|
|
1039
|
+
var Lr = Sr();
|
|
1040
|
+
const Nr = /* @__PURE__ */ Tr({
|
|
1041
|
+
__proto__: null
|
|
1042
|
+
}, [Lr]);
|
|
1043
|
+
export {
|
|
1044
|
+
Nr as i
|
|
1045
|
+
};
|
|
1046
|
+
//# sourceMappingURL=index-CrNHPzF1.js.map
|