UNPKG

577 BJavaScriptView Raw
1import { B as i } from "./index.a9498574.mjs";
2import "react";
3import "react-dom";
4class p extends i {
5 decodeBlock(s) {
6 const r = new DataView(s), n = [];
7 for (let e = 0; e < s.byteLength; ++e) {
8 let t = r.getInt8(e);
9 if (t < 0) {
10 const o = r.getUint8(e + 1);
11 t = -t;
12 for (let a = 0; a <= t; ++a)
13 n.push(o);
14 e += 1;
15 } else {
16 for (let o = 0; o <= t; ++o)
17 n.push(r.getUint8(e + o + 1));
18 e += t + 1;
19 }
20 }
21 return new Uint8Array(n).buffer;
22 }
23}
24export {
25 p as default
26};