@genome-spy/app 0.42.2 → 0.43.1

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.
@@ -597,19 +597,19 @@ class N {
597
597
  return d;
598
598
  }, a = (f) => (f <= 8 ? (n.pushCode(`${i} = dataView.getUint8(offset);`), f = 8) : f <= 16 ? (n.pushCode(`${i} = dataView.getUint16(offset);`), f = 16) : f <= 24 ? (n.pushCode(`${i} = (dataView.getUint16(offset) << 8) | dataView.getUint8(offset + 2);`), f = 24) : (n.pushCode(`${i} = dataView.getUint32(offset);`), f = 32), n.pushCode(`offset += ${f / 8};`), f);
599
599
  let o = 0;
600
- const l = this.endian === "be";
601
- let u = 0, s = 0;
600
+ const s = this.endian === "be";
601
+ let u = 0, l = 0;
602
602
  n.bitFields.forEach((f, d) => {
603
603
  let c = f.options.length;
604
- if (c > s) {
605
- if (s) {
606
- const g = -1 >>> 32 - s;
607
- n.pushCode(`${f.varName} = (${i} & 0x${g.toString(16)}) << ${c - s};`), c -= s;
604
+ if (c > l) {
605
+ if (l) {
606
+ const g = -1 >>> 32 - l;
607
+ n.pushCode(`${f.varName} = (${i} & 0x${g.toString(16)}) << ${c - l};`), c -= l;
608
608
  }
609
- o = 0, s = u = a(r(d) - s);
609
+ o = 0, l = u = a(r(d) - l);
610
610
  }
611
- const h = l ? u - o - c : o, _ = -1 >>> 32 - c;
612
- n.pushCode(`${f.varName} ${c < f.options.length ? "|=" : "="} ${i} >> ${h} & 0x${_.toString(16)};`), f.options.length === 32 && n.pushCode(`${f.varName} >>>= 0`), f.options.assert && f.generateAssert(n), f.options.formatter && f.generateFormatter(n, f.varName, f.options.formatter), o += c, s -= c;
611
+ const h = s ? u - o - c : o, _ = -1 >>> 32 - c;
612
+ n.pushCode(`${f.varName} ${c < f.options.length ? "|=" : "="} ${i} >> ${h} & 0x${_.toString(16)};`), f.options.length === 32 && n.pushCode(`${f.varName} >>>= 0`), f.options.assert && f.generateAssert(n), f.options.formatter && f.generateFormatter(n, f.varName, f.options.formatter), o += c, l -= c;
613
613
  }), n.bitFields = [];
614
614
  }
615
615
  }
@@ -620,13 +620,13 @@ class N {
620
620
  generateString(n) {
621
621
  const t = n.generateVariable(this.varName), i = n.generateTmpVariable(), r = this.options.encoding, a = r.toLowerCase() === "hex", o = 'b => b.toString(16).padStart(2, "0")';
622
622
  if (this.options.length && this.options.zeroTerminated) {
623
- const l = this.options.length;
624
- n.pushCode(`var ${i} = offset;`), n.pushCode(`while(dataView.getUint8(offset++) !== 0 && offset - ${i} < ${l});`);
625
- const u = `offset - ${i} < ${l} ? offset - 1 : offset`;
623
+ const s = this.options.length;
624
+ n.pushCode(`var ${i} = offset;`), n.pushCode(`while(dataView.getUint8(offset++) !== 0 && offset - ${i} < ${s});`);
625
+ const u = `offset - ${i} < ${s} ? offset - 1 : offset`;
626
626
  n.pushCode(a ? `${t} = Array.from(buffer.subarray(${i}, ${u}), ${o}).join('');` : `${t} = new TextDecoder('${r}').decode(buffer.subarray(${i}, ${u}));`);
627
627
  } else if (this.options.length) {
628
- const l = n.generateOption(this.options.length);
629
- n.pushCode(a ? `${t} = Array.from(buffer.subarray(offset, offset + ${l}), ${o}).join('');` : `${t} = new TextDecoder('${r}').decode(buffer.subarray(offset, offset + ${l}));`), n.pushCode(`offset += ${l};`);
628
+ const s = n.generateOption(this.options.length);
629
+ n.pushCode(a ? `${t} = Array.from(buffer.subarray(offset, offset + ${s}), ${o}).join('');` : `${t} = new TextDecoder('${r}').decode(buffer.subarray(offset, offset + ${s}));`), n.pushCode(`offset += ${s};`);
630
630
  } else
631
631
  this.options.zeroTerminated ? (n.pushCode(`var ${i} = offset;`), n.pushCode("while(dataView.getUint8(offset++) !== 0);"), n.pushCode(a ? `${t} = Array.from(buffer.subarray(${i}, offset - 1), ${o}).join('');` : `${t} = new TextDecoder('${r}').decode(buffer.subarray(${i}, offset - 1));`)) : this.options.greedy && (n.pushCode(`var ${i} = offset;`), n.pushCode("while(buffer.length > offset++);"), n.pushCode(a ? `${t} = Array.from(buffer.subarray(${i}, offset), ${o}).join('');` : `${t} = new TextDecoder('${r}').decode(buffer.subarray(${i}, offset));`));
632
632
  this.options.stripNull && n.pushCode(`${t} = ${t}.replace(/\\x00+$/g, '')`);
@@ -647,27 +647,27 @@ class N {
647
647
  this.options.clone && n.pushCode(`${t} = buffer.constructor.from(${t});`);
648
648
  }
649
649
  generateArray(n) {
650
- const t = n.generateOption(this.options.length), i = n.generateOption(this.options.lengthInBytes), r = this.options.type, a = n.generateTmpVariable(), o = n.generateVariable(this.varName), l = n.generateTmpVariable(), u = this.options.key, s = typeof u == "string";
651
- if (s ? n.pushCode(`${o} = {};`) : n.pushCode(`${o} = [];`), typeof this.options.readUntil == "function" ? n.pushCode("do {") : this.options.readUntil === "eof" ? n.pushCode(`for (var ${a} = 0; offset < buffer.length; ${a}++) {`) : i !== void 0 ? n.pushCode(`for (var ${a} = offset + ${i}; offset < ${a}; ) {`) : n.pushCode(`for (var ${a} = ${t}; ${a} > 0; ${a}--) {`), typeof r == "string")
650
+ const t = n.generateOption(this.options.length), i = n.generateOption(this.options.lengthInBytes), r = this.options.type, a = n.generateTmpVariable(), o = n.generateVariable(this.varName), s = n.generateTmpVariable(), u = this.options.key, l = typeof u == "string";
651
+ if (l ? n.pushCode(`${o} = {};`) : n.pushCode(`${o} = [];`), typeof this.options.readUntil == "function" ? n.pushCode("do {") : this.options.readUntil === "eof" ? n.pushCode(`for (var ${a} = 0; offset < buffer.length; ${a}++) {`) : i !== void 0 ? n.pushCode(`for (var ${a} = offset + ${i}; offset < ${a}; ) {`) : n.pushCode(`for (var ${a} = ${t}; ${a} > 0; ${a}--) {`), typeof r == "string")
652
652
  if (x.get(r)) {
653
653
  const f = n.generateTmpVariable();
654
654
  if (n.pushCode(`var ${f} = ${oe + r}(offset, {`), n.useContextVariables) {
655
655
  const d = n.generateVariable();
656
656
  n.pushCode(`$parent: ${d},`), n.pushCode(`$root: ${d}.$root,`), !this.options.readUntil && i === void 0 && n.pushCode(`$index: ${t} - ${a},`);
657
657
  }
658
- n.pushCode("});"), n.pushCode(`var ${l} = ${f}.result; offset = ${f}.offset;`), r !== this.alias && n.addReference(r);
658
+ n.pushCode("});"), n.pushCode(`var ${s} = ${f}.result; offset = ${f}.offset;`), r !== this.alias && n.addReference(r);
659
659
  } else {
660
660
  const f = Ye[r], d = Ke[r];
661
- n.pushCode(`var ${l} = dataView.get${f}(offset, ${d});`), n.pushCode(`offset += ${M[r]};`);
661
+ n.pushCode(`var ${s} = dataView.get${f}(offset, ${d});`), n.pushCode(`offset += ${M[r]};`);
662
662
  }
663
663
  else if (r instanceof N) {
664
- n.pushCode(`var ${l} = {};`);
664
+ n.pushCode(`var ${s} = {};`);
665
665
  const f = n.generateVariable();
666
- n.pushScope(l), n.useContextVariables && (n.pushCode(`${l}.$parent = ${f};`), n.pushCode(`${l}.$root = ${f}.$root;`), !this.options.readUntil && i === void 0 && n.pushCode(`${l}.$index = ${t} - ${a};`)), r.generate(n), n.useContextVariables && (n.pushCode(`delete ${l}.$parent;`), n.pushCode(`delete ${l}.$root;`), n.pushCode(`delete ${l}.$index;`)), n.popScope();
666
+ n.pushScope(s), n.useContextVariables && (n.pushCode(`${s}.$parent = ${f};`), n.pushCode(`${s}.$root = ${f}.$root;`), !this.options.readUntil && i === void 0 && n.pushCode(`${s}.$index = ${t} - ${a};`)), r.generate(n), n.useContextVariables && (n.pushCode(`delete ${s}.$parent;`), n.pushCode(`delete ${s}.$root;`), n.pushCode(`delete ${s}.$index;`)), n.popScope();
667
667
  }
668
- if (s ? n.pushCode(`${o}[${l}.${u}] = ${l};`) : n.pushCode(`${o}.push(${l});`), n.pushCode("}"), typeof this.options.readUntil == "function") {
668
+ if (l ? n.pushCode(`${o}[${s}.${u}] = ${s};`) : n.pushCode(`${o}.push(${s});`), n.pushCode("}"), typeof this.options.readUntil == "function") {
669
669
  const f = this.options.readUntil, d = n.addImport(f);
670
- n.pushCode(`while (!${d}.call(${n.generateVariable()}, ${l}, buffer.subarray(offset)));`);
670
+ n.pushCode(`while (!${d}.call(${n.generateVariable()}, ${s}, buffer.subarray(offset)));`);
671
671
  }
672
672
  }
673
673
  generateChoiceCase(n, t, i) {
@@ -716,10 +716,10 @@ class N {
716
716
  generateWrapper(n) {
717
717
  const t = n.generateVariable(this.varName), i = n.generateTmpVariable();
718
718
  if (typeof this.options.readUntil == "function") {
719
- const u = this.options.readUntil, s = n.generateTmpVariable(), f = n.generateTmpVariable();
720
- n.pushCode(`var ${s} = offset;`), n.pushCode(`var ${f} = 0;`), n.pushCode("while (offset < buffer.length) {"), n.pushCode(`${f} = dataView.getUint8(offset);`);
719
+ const u = this.options.readUntil, l = n.generateTmpVariable(), f = n.generateTmpVariable();
720
+ n.pushCode(`var ${l} = offset;`), n.pushCode(`var ${f} = 0;`), n.pushCode("while (offset < buffer.length) {"), n.pushCode(`${f} = dataView.getUint8(offset);`);
721
721
  const d = n.addImport(u);
722
- n.pushCode(`if (${d}.call(${n.generateVariable()}, ${f}, buffer.subarray(offset))) break;`), n.pushCode("offset += 1;"), n.pushCode("}"), n.pushCode(`${i} = buffer.subarray(${s}, offset);`);
722
+ n.pushCode(`if (${d}.call(${n.generateVariable()}, ${f}, buffer.subarray(offset))) break;`), n.pushCode("offset += 1;"), n.pushCode("}"), n.pushCode(`${i} = buffer.subarray(${l}, offset);`);
723
723
  } else if (this.options.readUntil === "eof")
724
724
  n.pushCode(`${i} = buffer.subarray(offset);`);
725
725
  else {
@@ -727,8 +727,8 @@ class N {
727
727
  n.pushCode(`${i} = buffer.subarray(offset, offset + ${u});`), n.pushCode(`offset += ${u};`);
728
728
  }
729
729
  this.options.clone && n.pushCode(`${i} = buffer.constructor.from(${i});`);
730
- const r = n.generateTmpVariable(), a = n.generateTmpVariable(), o = n.generateTmpVariable(), l = n.addImport(this.options.wrapper);
731
- if (n.pushCode(`${i} = ${l}.call(this, ${i}).subarray(0);`), n.pushCode(`var ${r} = buffer;`), n.pushCode(`var ${a} = offset;`), n.pushCode(`var ${o} = dataView;`), n.pushCode(`buffer = ${i};`), n.pushCode("offset = 0;"), n.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"), this.options.type instanceof N)
730
+ const r = n.generateTmpVariable(), a = n.generateTmpVariable(), o = n.generateTmpVariable(), s = n.addImport(this.options.wrapper);
731
+ if (n.pushCode(`${i} = ${s}.call(this, ${i}).subarray(0);`), n.pushCode(`var ${r} = buffer;`), n.pushCode(`var ${a} = offset;`), n.pushCode(`var ${o} = dataView;`), n.pushCode(`buffer = ${i};`), n.pushCode("offset = 0;"), n.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"), this.options.type instanceof N)
732
732
  this.varName && n.pushCode(`${t} = {};`), n.pushPath(this.varName), this.options.type.generate(n), n.popPath(this.varName);
733
733
  else if (x.has(this.options.type)) {
734
734
  const u = n.generateTmpVariable();
@@ -753,13 +753,13 @@ class N {
753
753
  } else if (x.has(this.options.type)) {
754
754
  const o = n.generateTmpVariable();
755
755
  if (n.pushCode(`var ${o} = ${oe + this.options.type}(offset, {`), n.useContextVariables) {
756
- const l = n.generateVariable();
757
- n.pushCode(`$parent: ${l},`), n.pushCode(`$root: ${l}.$root,`);
756
+ const s = n.generateVariable();
757
+ n.pushCode(`$parent: ${s},`), n.pushCode(`$root: ${s}.$root,`);
758
758
  }
759
759
  n.pushCode("});"), n.pushCode(`${a} = ${o}.result; offset = ${o}.offset;`), this.options.type !== this.alias && n.addReference(this.options.type);
760
760
  } else if (Object.keys(M).indexOf(this.options.type) >= 0) {
761
- const o = Ye[t], l = Ke[t];
762
- n.pushCode(`${a} = dataView.get${o}(offset, ${l});`), n.pushCode(`offset += ${M[t]};`);
761
+ const o = Ye[t], s = Ke[t];
762
+ n.pushCode(`${a} = dataView.get${o}(offset, ${s});`), n.pushCode(`offset += ${M[t]};`);
763
763
  }
764
764
  n.pushCode(`offset = ${r};`);
765
765
  }
@@ -806,13 +806,13 @@ class q {
806
806
  }
807
807
  intersection(n) {
808
808
  let t = this, i = n;
809
- const r = this.ranges(), a = i.ranges(), o = r.length, l = a.length;
810
- let u = 0, s = 0;
809
+ const r = this.ranges(), a = i.ranges(), o = r.length, s = a.length;
810
+ let u = 0, l = 0;
811
811
  const f = [];
812
- for (; u < o && s < l; ) {
813
- t = r[u], i = a[s];
812
+ for (; u < o && l < s; ) {
813
+ t = r[u], i = a[l];
814
814
  const d = Math.max(t.min(), i.min()), c = Math.min(t.max(), i.max());
815
- c >= d && f.push(new q(d, c)), t.max() > i.max() ? s += 1 : u += 1;
815
+ c >= d && f.push(new q(d, c)), t.max() > i.max() ? l += 1 : u += 1;
816
816
  }
817
817
  if (f.length === 0)
818
818
  throw new Error("found range of length 0");
@@ -885,12 +885,12 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
885
885
  }, wr = (e) => {
886
886
  e.bi_valid === 16 ? (Be(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);
887
887
  }, mr = (e, n) => {
888
- const t = n.dyn_tree, i = n.max_code, r = n.stat_desc.static_tree, a = n.stat_desc.has_stree, o = n.stat_desc.extra_bits, l = n.stat_desc.extra_base, u = n.stat_desc.max_length;
889
- let s, f, d, c, h, _, g = 0;
888
+ const t = n.dyn_tree, i = n.max_code, r = n.stat_desc.static_tree, a = n.stat_desc.has_stree, o = n.stat_desc.extra_bits, s = n.stat_desc.extra_base, u = n.stat_desc.max_length;
889
+ let l, f, d, c, h, _, g = 0;
890
890
  for (c = 0; c <= se; c++)
891
891
  e.bl_count[c] = 0;
892
- for (t[e.heap[e.heap_max] * 2 + 1] = 0, s = e.heap_max + 1; s < Wn; s++)
893
- f = e.heap[s], c = t[t[f * 2 + 1] * 2 + 1] + 1, c > u && (c = u, g++), t[f * 2 + 1] = c, !(f > i) && (e.bl_count[c]++, h = 0, f >= l && (h = o[f - l]), _ = t[f * 2], e.opt_len += _ * (c + h), a && (e.static_len += _ * (r[f * 2 + 1] + h)));
892
+ for (t[e.heap[e.heap_max] * 2 + 1] = 0, l = e.heap_max + 1; l < Wn; l++)
893
+ f = e.heap[l], c = t[t[f * 2 + 1] * 2 + 1] + 1, c > u && (c = u, g++), t[f * 2 + 1] = c, !(f > i) && (e.bl_count[c]++, h = 0, f >= s && (h = o[f - s]), _ = t[f * 2], e.opt_len += _ * (c + h), a && (e.static_len += _ * (r[f * 2 + 1] + h)));
894
894
  if (g !== 0) {
895
895
  do {
896
896
  for (c = u - 1; e.bl_count[c] === 0; )
@@ -899,7 +899,7 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
899
899
  } while (g > 0);
900
900
  for (c = u; c !== 0; c--)
901
901
  for (f = e.bl_count[c]; f !== 0; )
902
- d = e.heap[--s], !(d > i) && (t[d * 2 + 1] !== c && (e.opt_len += (c - t[d * 2 + 1]) * t[d * 2], t[d * 2 + 1] = c), f--);
902
+ d = e.heap[--l], !(d > i) && (t[d * 2 + 1] !== c && (e.opt_len += (c - t[d * 2 + 1]) * t[d * 2], t[d * 2 + 1] = c), f--);
903
903
  }
904
904
  }, ai = (e, n, t) => {
905
905
  const i = new Array(se + 1);
@@ -907,8 +907,8 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
907
907
  for (a = 1; a <= se; a++)
908
908
  r = r + t[a - 1] << 1, i[a] = r;
909
909
  for (o = 0; o <= n; o++) {
910
- let l = e[o * 2 + 1];
911
- l !== 0 && (e[o * 2] = ri(i[l]++, l));
910
+ let s = e[o * 2 + 1];
911
+ s !== 0 && (e[o * 2] = ri(i[s]++, s));
912
912
  }
913
913
  }, yr = () => {
914
914
  let e, n, t, i, r;
@@ -956,22 +956,22 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
956
956
  e.heap[t] = e.heap[r], t = r, r <<= 1;
957
957
  e.heap[t] = i;
958
958
  }, nn = (e, n, t) => {
959
- let i, r, a = 0, o, l;
959
+ let i, r, a = 0, o, s;
960
960
  if (e.sym_next !== 0)
961
961
  do
962
- i = e.pending_buf[e.sym_buf + a++] & 255, i += (e.pending_buf[e.sym_buf + a++] & 255) << 8, r = e.pending_buf[e.sym_buf + a++], i === 0 ? j(e, r, n) : (o = Re[r], j(e, o + Ze + 1, n), l = Tt[o], l !== 0 && (r -= Ht[o], D(e, r, l)), i--, o = ii(i), j(e, o, t), l = nt[o], l !== 0 && (i -= it[o], D(e, i, l)));
962
+ i = e.pending_buf[e.sym_buf + a++] & 255, i += (e.pending_buf[e.sym_buf + a++] & 255) << 8, r = e.pending_buf[e.sym_buf + a++], i === 0 ? j(e, r, n) : (o = Re[r], j(e, o + Ze + 1, n), s = Tt[o], s !== 0 && (r -= Ht[o], D(e, r, s)), i--, o = ii(i), j(e, o, t), s = nt[o], s !== 0 && (i -= it[o], D(e, i, s)));
963
963
  while (a < e.sym_next);
964
964
  j(e, Mt, n);
965
965
  }, At = (e, n) => {
966
966
  const t = n.dyn_tree, i = n.stat_desc.static_tree, r = n.stat_desc.has_stree, a = n.stat_desc.elems;
967
- let o, l, u = -1, s;
967
+ let o, s, u = -1, l;
968
968
  for (e.heap_len = 0, e.heap_max = Wn, o = 0; o < a; o++)
969
969
  t[o * 2] !== 0 ? (e.heap[++e.heap_len] = u = o, e.depth[o] = 0) : t[o * 2 + 1] = 0;
970
970
  for (; e.heap_len < 2; )
971
- s = e.heap[++e.heap_len] = u < 2 ? ++u : 0, t[s * 2] = 1, e.depth[s] = 0, e.opt_len--, r && (e.static_len -= i[s * 2 + 1]);
971
+ l = e.heap[++e.heap_len] = u < 2 ? ++u : 0, t[l * 2] = 1, e.depth[l] = 0, e.opt_len--, r && (e.static_len -= i[l * 2 + 1]);
972
972
  for (n.max_code = u, o = e.heap_len >> 1; o >= 1; o--)
973
973
  pt(e, t, o);
974
- s = a;
974
+ l = a;
975
975
  do
976
976
  o = e.heap[
977
977
  1
@@ -984,13 +984,13 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
984
984
  t,
985
985
  1
986
986
  /*SMALLEST*/
987
- ), l = e.heap[
987
+ ), s = e.heap[
988
988
  1
989
989
  /*SMALLEST*/
990
- ], e.heap[--e.heap_max] = o, e.heap[--e.heap_max] = l, t[s * 2] = t[o * 2] + t[l * 2], e.depth[s] = (e.depth[o] >= e.depth[l] ? e.depth[o] : e.depth[l]) + 1, t[o * 2 + 1] = t[l * 2 + 1] = s, e.heap[
990
+ ], e.heap[--e.heap_max] = o, e.heap[--e.heap_max] = s, t[l * 2] = t[o * 2] + t[s * 2], e.depth[l] = (e.depth[o] >= e.depth[s] ? e.depth[o] : e.depth[s]) + 1, t[o * 2 + 1] = t[s * 2 + 1] = l, e.heap[
991
991
  1
992
992
  /*SMALLEST*/
993
- ] = s++, pt(
993
+ ] = l++, pt(
994
994
  e,
995
995
  t,
996
996
  1
@@ -1002,20 +1002,20 @@ const ii = (e) => e < 256 ? ze[e] : ze[256 + (e >>> 7)], Be = (e, n) => {
1002
1002
  /*SMALLEST*/
1003
1003
  ], mr(e, n), ai(t, u, e.bl_count);
1004
1004
  }, rn = (e, n, t) => {
1005
- let i, r = -1, a, o = n[0 * 2 + 1], l = 0, u = 7, s = 4;
1006
- for (o === 0 && (u = 138, s = 3), n[(t + 1) * 2 + 1] = 65535, i = 0; i <= t; i++)
1007
- a = o, o = n[(i + 1) * 2 + 1], !(++l < u && a === o) && (l < s ? e.bl_tree[a * 2] += l : a !== 0 ? (a !== r && e.bl_tree[a * 2]++, e.bl_tree[Xn * 2]++) : l <= 10 ? e.bl_tree[qn * 2]++ : e.bl_tree[Jn * 2]++, l = 0, r = a, o === 0 ? (u = 138, s = 3) : a === o ? (u = 6, s = 3) : (u = 7, s = 4));
1005
+ let i, r = -1, a, o = n[0 * 2 + 1], s = 0, u = 7, l = 4;
1006
+ for (o === 0 && (u = 138, l = 3), n[(t + 1) * 2 + 1] = 65535, i = 0; i <= t; i++)
1007
+ a = o, o = n[(i + 1) * 2 + 1], !(++s < u && a === o) && (s < l ? e.bl_tree[a * 2] += s : a !== 0 ? (a !== r && e.bl_tree[a * 2]++, e.bl_tree[Xn * 2]++) : s <= 10 ? e.bl_tree[qn * 2]++ : e.bl_tree[Jn * 2]++, s = 0, r = a, o === 0 ? (u = 138, l = 3) : a === o ? (u = 6, l = 3) : (u = 7, l = 4));
1008
1008
  }, an = (e, n, t) => {
1009
- let i, r = -1, a, o = n[0 * 2 + 1], l = 0, u = 7, s = 4;
1010
- for (o === 0 && (u = 138, s = 3), i = 0; i <= t; i++)
1011
- if (a = o, o = n[(i + 1) * 2 + 1], !(++l < u && a === o)) {
1012
- if (l < s)
1009
+ let i, r = -1, a, o = n[0 * 2 + 1], s = 0, u = 7, l = 4;
1010
+ for (o === 0 && (u = 138, l = 3), i = 0; i <= t; i++)
1011
+ if (a = o, o = n[(i + 1) * 2 + 1], !(++s < u && a === o)) {
1012
+ if (s < l)
1013
1013
  do
1014
1014
  j(e, a, e.bl_tree);
1015
- while (--l !== 0);
1015
+ while (--s !== 0);
1016
1016
  else
1017
- a !== 0 ? (a !== r && (j(e, a, e.bl_tree), l--), j(e, Xn, e.bl_tree), D(e, l - 3, 2)) : l <= 10 ? (j(e, qn, e.bl_tree), D(e, l - 3, 3)) : (j(e, Jn, e.bl_tree), D(e, l - 11, 7));
1018
- l = 0, r = a, o === 0 ? (u = 138, s = 3) : a === o ? (u = 6, s = 3) : (u = 7, s = 4);
1017
+ a !== 0 ? (a !== r && (j(e, a, e.bl_tree), s--), j(e, Xn, e.bl_tree), D(e, s - 3, 2)) : s <= 10 ? (j(e, qn, e.bl_tree), D(e, s - 3, 3)) : (j(e, Jn, e.bl_tree), D(e, s - 11, 7));
1018
+ s = 0, r = a, o === 0 ? (u = 138, l = 3) : a === o ? (u = 6, l = 3) : (u = 7, l = 4);
1019
1019
  }
1020
1020
  }, vr = (e) => {
1021
1021
  let n;
@@ -1193,20 +1193,20 @@ const V = (e) => {
1193
1193
  let r = e.avail_in;
1194
1194
  return r > i && (r = i), r === 0 ? 0 : (e.avail_in -= r, n.set(e.input.subarray(e.next_in, e.next_in + r), t), e.state.wrap === 1 ? e.adler = Ue(e.adler, n, r, t) : e.state.wrap === 2 && (e.adler = R(e.adler, n, r, t)), e.next_in += r, e.total_in += r, r);
1195
1195
  }, fi = (e, n) => {
1196
- let t = e.max_chain_length, i = e.strstart, r, a, o = e.prev_length, l = e.nice_match;
1197
- const u = e.strstart > e.w_size - Y ? e.strstart - (e.w_size - Y) : 0, s = e.window, f = e.w_mask, d = e.prev, c = e.strstart + ee;
1198
- let h = s[i + o - 1], _ = s[i + o];
1199
- e.prev_length >= e.good_match && (t >>= 2), l > e.lookahead && (l = e.lookahead);
1196
+ let t = e.max_chain_length, i = e.strstart, r, a, o = e.prev_length, s = e.nice_match;
1197
+ const u = e.strstart > e.w_size - Y ? e.strstart - (e.w_size - Y) : 0, l = e.window, f = e.w_mask, d = e.prev, c = e.strstart + ee;
1198
+ let h = l[i + o - 1], _ = l[i + o];
1199
+ e.prev_length >= e.good_match && (t >>= 2), s > e.lookahead && (s = e.lookahead);
1200
1200
  do
1201
- if (r = n, !(s[r + o] !== _ || s[r + o - 1] !== h || s[r] !== s[i] || s[++r] !== s[i + 1])) {
1201
+ if (r = n, !(l[r + o] !== _ || l[r + o - 1] !== h || l[r] !== l[i] || l[++r] !== l[i + 1])) {
1202
1202
  i += 2, r++;
1203
1203
  do
1204
1204
  ;
1205
- while (s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && s[++i] === s[++r] && i < c);
1205
+ while (l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && l[++i] === l[++r] && i < c);
1206
1206
  if (a = ee - (c - i), i = c - ee, a > o) {
1207
- if (e.match_start = n, o = a, a >= l)
1207
+ if (e.match_start = n, o = a, a >= s)
1208
1208
  break;
1209
- h = s[i + o - 1], _ = s[i + o];
1209
+ h = l[i + o - 1], _ = l[i + o];
1210
1210
  }
1211
1211
  }
1212
1212
  while ((n = d[n & f]) > u && --t !== 0);
@@ -1222,13 +1222,13 @@ const V = (e) => {
1222
1222
  ;
1223
1223
  } while (e.lookahead < Y && e.strm.avail_in !== 0);
1224
1224
  }, ui = (e, n) => {
1225
- let t = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, i, r, a, o = 0, l = e.strm.avail_in;
1225
+ let t = e.pending_buf_size - 5 > e.w_size ? e.w_size : e.pending_buf_size - 5, i, r, a, o = 0, s = e.strm.avail_in;
1226
1226
  do {
1227
1227
  if (i = 65535, a = e.bi_valid + 42 >> 3, e.strm.avail_out < a || (a = e.strm.avail_out - a, r = e.strstart - e.block_start, i > r + e.strm.avail_in && (i = r + e.strm.avail_in), i > a && (i = a), i < t && (i === 0 && n !== F || n === ne || i !== r + e.strm.avail_in)))
1228
1228
  break;
1229
1229
  o = n === F && i === r + e.strm.avail_in ? 1 : 0, Ot(e, 0, 0, o), e.pending_buf[e.pending - 4] = i, e.pending_buf[e.pending - 3] = i >> 8, e.pending_buf[e.pending - 2] = ~i, e.pending_buf[e.pending - 1] = ~i >> 8, V(e.strm), r && (r > i && (r = i), e.strm.output.set(e.window.subarray(e.block_start, e.block_start + r), e.strm.next_out), e.strm.next_out += r, e.strm.avail_out -= r, e.strm.total_out += r, e.block_start += r, i -= r), i && (Vt(e.strm, e.strm.output, e.strm.next_out, i), e.strm.next_out += i, e.strm.avail_out -= i, e.strm.total_out += i);
1230
1230
  } while (o === 0);
1231
- return l -= e.strm.avail_in, l && (l >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= l && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - l, e.strm.next_in), e.strstart), e.strstart += l, e.insert += l > e.w_size - e.insert ? e.w_size - e.insert : l), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ke : n !== ne && n !== F && e.strm.avail_in === 0 && e.strstart === e.block_start ? ve : (a = e.window_size - e.strstart, e.strm.avail_in > a && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (Vt(e.strm, e.window, e.strstart, a), e.strstart += a, e.insert += a > e.w_size - e.insert ? e.w_size - e.insert : a), e.high_water < e.strstart && (e.high_water = e.strstart), a = e.bi_valid + 42 >> 3, a = e.pending_buf_size - a > 65535 ? 65535 : e.pending_buf_size - a, t = a > e.w_size ? e.w_size : a, r = e.strstart - e.block_start, (r >= t || (r || n === F) && n !== ne && e.strm.avail_in === 0 && r <= a) && (i = r > a ? a : r, o = n === F && e.strm.avail_in === 0 && i === r ? 1 : 0, Ot(e, e.block_start, i, o), e.block_start += i, V(e.strm)), o ? ue : U);
1231
+ return s -= e.strm.avail_in, s && (s >= e.w_size ? (e.matches = 2, e.window.set(e.strm.input.subarray(e.strm.next_in - e.w_size, e.strm.next_in), 0), e.strstart = e.w_size, e.insert = e.strstart) : (e.window_size - e.strstart <= s && (e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, e.insert > e.strstart && (e.insert = e.strstart)), e.window.set(e.strm.input.subarray(e.strm.next_in - s, e.strm.next_in), e.strstart), e.strstart += s, e.insert += s > e.w_size - e.insert ? e.w_size - e.insert : s), e.block_start = e.strstart), e.high_water < e.strstart && (e.high_water = e.strstart), o ? ke : n !== ne && n !== F && e.strm.avail_in === 0 && e.strstart === e.block_start ? ve : (a = e.window_size - e.strstart, e.strm.avail_in > a && e.block_start >= e.w_size && (e.block_start -= e.w_size, e.strstart -= e.w_size, e.window.set(e.window.subarray(e.w_size, e.w_size + e.strstart), 0), e.matches < 2 && e.matches++, a += e.w_size, e.insert > e.strstart && (e.insert = e.strstart)), a > e.strm.avail_in && (a = e.strm.avail_in), a && (Vt(e.strm, e.window, e.strstart, a), e.strstart += a, e.insert += a > e.w_size - e.insert ? e.w_size - e.insert : a), e.high_water < e.strstart && (e.high_water = e.strstart), a = e.bi_valid + 42 >> 3, a = e.pending_buf_size - a > 65535 ? 65535 : e.pending_buf_size - a, t = a > e.w_size ? e.w_size : a, r = e.strstart - e.block_start, (r >= t || (r || n === F) && n !== ne && e.strm.avail_in === 0 && r <= a) && (i = r > a ? a : r, o = n === F && e.strm.avail_in === 0 && i === r ? 1 : 0, Ot(e, e.block_start, i, o), e.block_start += i, V(e.strm)), o ? ue : U);
1232
1232
  }, bt = (e, n) => {
1233
1233
  let t, i;
1234
1234
  for (; ; ) {
@@ -1368,8 +1368,8 @@ const Me = (e) => {
1368
1368
  if (n === Hr && (n = 6), i < 0 ? (o = 0, i = -i) : i > 15 && (o = 2, i -= 16), r < 1 || r > Xr || t !== lt || i < 8 || i > 15 || n < 0 || n > 9 || a < 0 || a > Yr || i === 8 && o !== 1)
1369
1369
  return fe(e, G);
1370
1370
  i === 8 && (i = 9);
1371
- const l = new ca();
1372
- return e.state = l, l.strm = e, l.status = we, l.wrap = o, l.gzhead = null, l.w_bits = i, l.w_size = 1 << l.w_bits, l.w_mask = l.w_size - 1, l.hash_bits = r + 7, l.hash_size = 1 << l.hash_bits, l.hash_mask = l.hash_size - 1, l.hash_shift = ~~((l.hash_bits + T - 1) / T), l.window = new Uint8Array(l.w_size * 2), l.head = new Uint16Array(l.hash_size), l.prev = new Uint16Array(l.w_size), l.lit_bufsize = 1 << r + 6, l.pending_buf_size = l.lit_bufsize * 4, l.pending_buf = new Uint8Array(l.pending_buf_size), l.sym_buf = l.lit_bufsize, l.sym_end = (l.lit_bufsize - 1) * 3, l.level = n, l.strategy = a, l.method = t, ci(e);
1371
+ const s = new ca();
1372
+ return e.state = s, s.strm = e, s.status = we, s.wrap = o, s.gzhead = null, s.w_bits = i, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = r + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + T - 1) / T), s.window = new Uint8Array(s.w_size * 2), s.head = new Uint16Array(s.hash_size), s.prev = new Uint16Array(s.w_size), s.lit_bufsize = 1 << r + 6, s.pending_buf_size = s.lit_bufsize * 4, s.pending_buf = new Uint8Array(s.pending_buf_size), s.sym_buf = s.lit_bufsize, s.sym_end = (s.lit_bufsize - 1) * 3, s.level = n, s.strategy = a, s.method = t, ci(e);
1373
1373
  }, pa = (e, n) => di(e, n, lt, qr, Jr, Kr), _a = (e, n) => {
1374
1374
  if (Me(e) || n > sn || n < 0)
1375
1375
  return e ? fe(e, G) : G;
@@ -1402,10 +1402,10 @@ const Me = (e) => {
1402
1402
  if (t.gzhead.extra) {
1403
1403
  let r = t.pending, a = (t.gzhead.extra.length & 65535) - t.gzindex;
1404
1404
  for (; t.pending + a > t.pending_buf_size; ) {
1405
- let l = t.pending_buf_size - t.pending;
1406
- if (t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex, t.gzindex + l), t.pending), t.pending = t.pending_buf_size, t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r)), t.gzindex += l, V(e), t.pending !== 0)
1405
+ let s = t.pending_buf_size - t.pending;
1406
+ if (t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex, t.gzindex + s), t.pending), t.pending = t.pending_buf_size, t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r)), t.gzindex += s, V(e), t.pending !== 0)
1407
1407
  return t.last_flush = -1, B;
1408
- r = 0, a -= l;
1408
+ r = 0, a -= s;
1409
1409
  }
1410
1410
  let o = new Uint8Array(t.gzhead.extra);
1411
1411
  t.pending_buf.set(o.subarray(t.gzindex, t.gzindex + a), t.pending), t.pending += a, t.gzhead.hcrc && t.pending > r && (e.adler = R(e.adler, t.pending_buf, t.pending - r, r)), t.gzindex = 0;
@@ -1476,15 +1476,15 @@ const Me = (e) => {
1476
1476
  let u = new Uint8Array(i.w_size);
1477
1477
  u.set(n.subarray(t - i.w_size, t), 0), n = u, t = i.w_size;
1478
1478
  }
1479
- const a = e.avail_in, o = e.next_in, l = e.input;
1479
+ const a = e.avail_in, o = e.next_in, s = e.input;
1480
1480
  for (e.avail_in = t, e.next_in = 0, e.input = n, me(i); i.lookahead >= T; ) {
1481
- let u = i.strstart, s = i.lookahead - (T - 1);
1481
+ let u = i.strstart, l = i.lookahead - (T - 1);
1482
1482
  do
1483
1483
  i.ins_h = ie(i, i.ins_h, i.window[u + T - 1]), i.prev[u & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = u, u++;
1484
- while (--s);
1484
+ while (--l);
1485
1485
  i.strstart = u, i.lookahead = T - 1, me(i);
1486
1486
  }
1487
- return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = T - 1, i.match_available = 0, e.next_in = o, e.input = l, e.avail_in = a, i.wrap = r, B;
1487
+ return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = T - 1, i.match_available = 0, e.next_in = o, e.input = s, e.avail_in = a, i.wrap = r, B;
1488
1488
  };
1489
1489
  var wa = pa, ma = di, ya = ci, va = hi, ka = da, $a = _a, Ea = ba, Ca = ga, Sa = "pako deflate (from Nodeca project)", Te = {
1490
1490
  deflateInit: wa,
@@ -1537,10 +1537,10 @@ De[254] = De[254] = 1;
1537
1537
  var Aa = (e) => {
1538
1538
  if (typeof TextEncoder == "function" && TextEncoder.prototype.encode)
1539
1539
  return new TextEncoder().encode(e);
1540
- let n, t, i, r, a, o = e.length, l = 0;
1540
+ let n, t, i, r, a, o = e.length, s = 0;
1541
1541
  for (r = 0; r < o; r++)
1542
- t = e.charCodeAt(r), (t & 64512) === 55296 && r + 1 < o && (i = e.charCodeAt(r + 1), (i & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (i - 56320), r++)), l += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : 4;
1543
- for (n = new Uint8Array(l), a = 0, r = 0; a < l; r++)
1542
+ t = e.charCodeAt(r), (t & 64512) === 55296 && r + 1 < o && (i = e.charCodeAt(r + 1), (i & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (i - 56320), r++)), s += t < 128 ? 1 : t < 2048 ? 2 : t < 65536 ? 3 : 4;
1543
+ for (n = new Uint8Array(s), a = 0, r = 0; a < s; r++)
1544
1544
  t = e.charCodeAt(r), (t & 64512) === 55296 && r + 1 < o && (i = e.charCodeAt(r + 1), (i & 64512) === 56320 && (t = 65536 + (t - 55296 << 10) + (i - 56320), r++)), t < 128 ? n[a++] = t : t < 2048 ? (n[a++] = 192 | t >>> 6, n[a++] = 128 | t & 63) : t < 65536 ? (n[a++] = 224 | t >>> 12, n[a++] = 128 | t >>> 6 & 63, n[a++] = 128 | t & 63) : (n[a++] = 240 | t >>> 18, n[a++] = 128 | t >>> 12 & 63, n[a++] = 128 | t >>> 6 & 63, n[a++] = 128 | t & 63);
1545
1545
  return n;
1546
1546
  };
@@ -1564,14 +1564,14 @@ var za = (e, n) => {
1564
1564
  a[r++] = o;
1565
1565
  continue;
1566
1566
  }
1567
- let l = De[o];
1568
- if (l > 4) {
1569
- a[r++] = 65533, i += l - 1;
1567
+ let s = De[o];
1568
+ if (s > 4) {
1569
+ a[r++] = 65533, i += s - 1;
1570
1570
  continue;
1571
1571
  }
1572
- for (o &= l === 2 ? 31 : l === 3 ? 15 : 7; l > 1 && i < t; )
1573
- o = o << 6 | e[i++] & 63, l--;
1574
- if (l > 1) {
1572
+ for (o &= s === 2 ? 31 : s === 3 ? 15 : 7; s > 1 && i < t; )
1573
+ o = o << 6 | e[i++] & 63, s--;
1574
+ if (s > 1) {
1575
1575
  a[r++] = 65533;
1576
1576
  continue;
1577
1577
  }
@@ -1665,9 +1665,9 @@ Gt.prototype.onEnd = function(e) {
1665
1665
  };
1666
1666
  const Xe = 16209, Ma = 16191;
1667
1667
  var Ha = function(n, t) {
1668
- let i, r, a, o, l, u, s, f, d, c, h, _, g, k, y, E, C, p, $, S, b, w, m, v;
1668
+ let i, r, a, o, s, u, l, f, d, c, h, _, g, k, y, E, C, p, $, S, b, w, m, v;
1669
1669
  const I = n.state;
1670
- i = n.next_in, m = n.input, r = i + (n.avail_in - 5), a = n.next_out, v = n.output, o = a - (t - n.avail_out), l = a + (n.avail_out - 257), u = I.dmax, s = I.wsize, f = I.whave, d = I.wnext, c = I.window, h = I.hold, _ = I.bits, g = I.lencode, k = I.distcode, y = (1 << I.lenbits) - 1, E = (1 << I.distbits) - 1;
1670
+ i = n.next_in, m = n.input, r = i + (n.avail_in - 5), a = n.next_out, v = n.output, o = a - (t - n.avail_out), s = a + (n.avail_out - 257), u = I.dmax, l = I.wsize, f = I.whave, d = I.wnext, c = I.window, h = I.hold, _ = I.bits, g = I.lencode, k = I.distcode, y = (1 << I.lenbits) - 1, E = (1 << I.distbits) - 1;
1671
1671
  e:
1672
1672
  do {
1673
1673
  _ < 15 && (h += m[i++] << _, _ += 8, h += m[i++] << _, _ += 8), C = g[h & y];
@@ -1690,7 +1690,7 @@ var Ha = function(n, t) {
1690
1690
  break e;
1691
1691
  }
1692
1692
  if (b = 0, w = c, d === 0) {
1693
- if (b += s - p, p < $) {
1693
+ if (b += l - p, p < $) {
1694
1694
  $ -= p;
1695
1695
  do
1696
1696
  v[a++] = c[b++];
@@ -1698,7 +1698,7 @@ var Ha = function(n, t) {
1698
1698
  b = a - S, w = v;
1699
1699
  }
1700
1700
  } else if (d < p) {
1701
- if (b += s + d - p, p -= d, p < $) {
1701
+ if (b += l + d - p, p -= d, p < $) {
1702
1702
  $ -= p;
1703
1703
  do
1704
1704
  v[a++] = c[b++];
@@ -1751,8 +1751,8 @@ var Ha = function(n, t) {
1751
1751
  }
1752
1752
  break;
1753
1753
  }
1754
- } while (i < r && a < l);
1755
- $ = _ >> 3, i -= $, _ -= $ << 3, h &= (1 << _) - 1, n.next_in = i, n.next_out = a, n.avail_in = i < r ? 5 + (r - i) : 5 - (i - r), n.avail_out = a < l ? 257 + (l - a) : 257 - (a - l), I.hold = h, I.bits = _;
1754
+ } while (i < r && a < s);
1755
+ $ = _ >> 3, i -= $, _ -= $ << 3, h &= (1 << _) - 1, n.next_in = i, n.next_out = a, n.avail_in = i < r ? 5 + (r - i) : 5 - (i - r), n.avail_out = a < s ? 257 + (s - a) : 257 - (a - s), I.hold = h, I.bits = _;
1756
1756
  };
1757
1757
  const pe = 15, un = 852, hn = 592, cn = 0, gt = 1, dn = 2, ja = new Uint16Array([
1758
1758
  /* Length codes 257..285 base */
@@ -1888,53 +1888,53 @@ const pe = 15, un = 852, hn = 592, cn = 0, gt = 1, dn = 2, ja = new Uint16Array(
1888
1888
  29,
1889
1889
  64,
1890
1890
  64
1891
- ]), Wa = (e, n, t, i, r, a, o, l) => {
1892
- const u = l.bits;
1893
- let s = 0, f = 0, d = 0, c = 0, h = 0, _ = 0, g = 0, k = 0, y = 0, E = 0, C, p, $, S, b, w = null, m;
1891
+ ]), Wa = (e, n, t, i, r, a, o, s) => {
1892
+ const u = s.bits;
1893
+ let l = 0, f = 0, d = 0, c = 0, h = 0, _ = 0, g = 0, k = 0, y = 0, E = 0, C, p, $, S, b, w = null, m;
1894
1894
  const v = new Uint16Array(pe + 1), I = new Uint16Array(pe + 1);
1895
1895
  let ae = null, Jt, je, Ge;
1896
- for (s = 0; s <= pe; s++)
1897
- v[s] = 0;
1896
+ for (l = 0; l <= pe; l++)
1897
+ v[l] = 0;
1898
1898
  for (f = 0; f < i; f++)
1899
1899
  v[n[t + f]]++;
1900
1900
  for (h = u, c = pe; c >= 1 && v[c] === 0; c--)
1901
1901
  ;
1902
1902
  if (h > c && (h = c), c === 0)
1903
- return r[a++] = 1 << 24 | 64 << 16 | 0, r[a++] = 1 << 24 | 64 << 16 | 0, l.bits = 1, 0;
1903
+ return r[a++] = 1 << 24 | 64 << 16 | 0, r[a++] = 1 << 24 | 64 << 16 | 0, s.bits = 1, 0;
1904
1904
  for (d = 1; d < c && v[d] === 0; d++)
1905
1905
  ;
1906
- for (h < d && (h = d), k = 1, s = 1; s <= pe; s++)
1907
- if (k <<= 1, k -= v[s], k < 0)
1906
+ for (h < d && (h = d), k = 1, l = 1; l <= pe; l++)
1907
+ if (k <<= 1, k -= v[l], k < 0)
1908
1908
  return -1;
1909
1909
  if (k > 0 && (e === cn || c !== 1))
1910
1910
  return -1;
1911
- for (I[1] = 0, s = 1; s < pe; s++)
1912
- I[s + 1] = I[s] + v[s];
1911
+ for (I[1] = 0, l = 1; l < pe; l++)
1912
+ I[l + 1] = I[l] + v[l];
1913
1913
  for (f = 0; f < i; f++)
1914
1914
  n[t + f] !== 0 && (o[I[n[t + f]]++] = f);
1915
- if (e === cn ? (w = ae = o, m = 20) : e === gt ? (w = ja, ae = Ga, m = 257) : (w = Ya, ae = Ka, m = 0), E = 0, f = 0, s = d, b = a, _ = h, g = 0, $ = -1, y = 1 << h, S = y - 1, e === gt && y > un || e === dn && y > hn)
1915
+ if (e === cn ? (w = ae = o, m = 20) : e === gt ? (w = ja, ae = Ga, m = 257) : (w = Ya, ae = Ka, m = 0), E = 0, f = 0, l = d, b = a, _ = h, g = 0, $ = -1, y = 1 << h, S = y - 1, e === gt && y > un || e === dn && y > hn)
1916
1916
  return 1;
1917
1917
  for (; ; ) {
1918
- Jt = s - g, o[f] + 1 < m ? (je = 0, Ge = o[f]) : o[f] >= m ? (je = ae[o[f] - m], Ge = w[o[f] - m]) : (je = 32 + 64, Ge = 0), C = 1 << s - g, p = 1 << _, d = p;
1918
+ Jt = l - g, o[f] + 1 < m ? (je = 0, Ge = o[f]) : o[f] >= m ? (je = ae[o[f] - m], Ge = w[o[f] - m]) : (je = 32 + 64, Ge = 0), C = 1 << l - g, p = 1 << _, d = p;
1919
1919
  do
1920
1920
  p -= C, r[b + (E >> g) + p] = Jt << 24 | je << 16 | Ge | 0;
1921
1921
  while (p !== 0);
1922
- for (C = 1 << s - 1; E & C; )
1922
+ for (C = 1 << l - 1; E & C; )
1923
1923
  C >>= 1;
1924
- if (C !== 0 ? (E &= C - 1, E += C) : E = 0, f++, --v[s] === 0) {
1925
- if (s === c)
1924
+ if (C !== 0 ? (E &= C - 1, E += C) : E = 0, f++, --v[l] === 0) {
1925
+ if (l === c)
1926
1926
  break;
1927
- s = n[t + o[f]];
1927
+ l = n[t + o[f]];
1928
1928
  }
1929
- if (s > h && (E & S) !== $) {
1930
- for (g === 0 && (g = h), b += d, _ = s - g, k = 1 << _; _ + g < c && (k -= v[_ + g], !(k <= 0)); )
1929
+ if (l > h && (E & S) !== $) {
1930
+ for (g === 0 && (g = h), b += d, _ = l - g, k = 1 << _; _ + g < c && (k -= v[_ + g], !(k <= 0)); )
1931
1931
  _++, k <<= 1;
1932
1932
  if (y += 1 << _, e === gt && y > un || e === dn && y > hn)
1933
1933
  return 1;
1934
1934
  $ = E & S, r[$] = h << 24 | _ << 16 | b - a | 0;
1935
1935
  }
1936
1936
  }
1937
- return E !== 0 && (r[b + E] = s - g << 24 | 64 << 16 | 0), l.bits = h, 0;
1937
+ return E !== 0 && (r[b + E] = l - g << 24 | 64 << 16 | 0), s.bits = h, 0;
1938
1938
  };
1939
1939
  var Ae = Wa;
1940
1940
  const Xa = 0, gi = 1, wi = 2, {
@@ -2005,7 +2005,7 @@ const so = (e) => {
2005
2005
  const a = e.state;
2006
2006
  return a.window === null && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new Uint8Array(a.wsize)), i >= a.wsize ? (a.window.set(n.subarray(t - a.wsize, t), 0), a.wnext = 0, a.whave = a.wsize) : (r = a.wsize - a.wnext, r > i && (r = i), a.window.set(n.subarray(t - i, t - i + r), a.wnext), i -= r, i ? (a.window.set(n.subarray(t - i, t), 0), a.wnext = i, a.whave = a.wsize) : (a.wnext += r, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += r))), 0;
2007
2007
  }, lo = (e, n) => {
2008
- let t, i, r, a, o, l, u, s, f, d, c, h, _, g, k = 0, y, E, C, p, $, S, b, w;
2008
+ let t, i, r, a, o, s, u, l, f, d, c, h, _, g, k = 0, y, E, C, p, $, S, b, w;
2009
2009
  const m = new Uint8Array(4);
2010
2010
  let v, I;
2011
2011
  const ae = (
@@ -2014,7 +2014,7 @@ const so = (e) => {
2014
2014
  );
2015
2015
  if (ce(e) || !e.output || !e.input && e.avail_in !== 0)
2016
2016
  return P;
2017
- t = e.state, t.mode === K && (t.mode = wt), o = e.next_out, r = e.output, u = e.avail_out, a = e.next_in, i = e.input, l = e.avail_in, s = t.hold, f = t.bits, d = l, c = u, w = he;
2017
+ t = e.state, t.mode === K && (t.mode = wt), o = e.next_out, r = e.output, u = e.avail_out, a = e.next_in, i = e.input, s = e.avail_in, l = t.hold, f = t.bits, d = s, c = u, w = he;
2018
2018
  e:
2019
2019
  for (; ; )
2020
2020
  switch (t.mode) {
@@ -2024,36 +2024,36 @@ const so = (e) => {
2024
2024
  break;
2025
2025
  }
2026
2026
  for (; f < 16; ) {
2027
- if (l === 0)
2027
+ if (s === 0)
2028
2028
  break e;
2029
- l--, s += i[a++] << f, f += 8;
2029
+ s--, l += i[a++] << f, f += 8;
2030
2030
  }
2031
- if (t.wrap & 2 && s === 35615) {
2032
- t.wbits === 0 && (t.wbits = 15), t.check = 0, m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0), s = 0, f = 0, t.mode = bn;
2031
+ if (t.wrap & 2 && l === 35615) {
2032
+ t.wbits === 0 && (t.wbits = 15), t.check = 0, m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = R(t.check, m, 2, 0), l = 0, f = 0, t.mode = bn;
2033
2033
  break;
2034
2034
  }
2035
2035
  if (t.head && (t.head.done = !1), !(t.wrap & 1) || /* check if zlib header allowed */
2036
- (((s & 255) << 8) + (s >> 8)) % 31) {
2036
+ (((l & 255) << 8) + (l >> 8)) % 31) {
2037
2037
  e.msg = "incorrect header check", t.mode = O;
2038
2038
  break;
2039
2039
  }
2040
- if ((s & 15) !== _n) {
2040
+ if ((l & 15) !== _n) {
2041
2041
  e.msg = "unknown compression method", t.mode = O;
2042
2042
  break;
2043
2043
  }
2044
- if (s >>>= 4, f -= 4, b = (s & 15) + 8, t.wbits === 0 && (t.wbits = b), b > 15 || b > t.wbits) {
2044
+ if (l >>>= 4, f -= 4, b = (l & 15) + 8, t.wbits === 0 && (t.wbits = b), b > 15 || b > t.wbits) {
2045
2045
  e.msg = "invalid window size", t.mode = O;
2046
2046
  break;
2047
2047
  }
2048
- t.dmax = 1 << t.wbits, t.flags = 0, e.adler = t.check = 1, t.mode = s & 512 ? En : K, s = 0, f = 0;
2048
+ t.dmax = 1 << t.wbits, t.flags = 0, e.adler = t.check = 1, t.mode = l & 512 ? En : K, l = 0, f = 0;
2049
2049
  break;
2050
2050
  case bn:
2051
2051
  for (; f < 16; ) {
2052
- if (l === 0)
2052
+ if (s === 0)
2053
2053
  break e;
2054
- l--, s += i[a++] << f, f += 8;
2054
+ s--, l += i[a++] << f, f += 8;
2055
2055
  }
2056
- if (t.flags = s, (t.flags & 255) !== _n) {
2056
+ if (t.flags = l, (t.flags & 255) !== _n) {
2057
2057
  e.msg = "unknown compression method", t.mode = O;
2058
2058
  break;
2059
2059
  }
@@ -2061,34 +2061,34 @@ const so = (e) => {
2061
2061
  e.msg = "unknown header flags set", t.mode = O;
2062
2062
  break;
2063
2063
  }
2064
- t.head && (t.head.text = s >> 8 & 1), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode = gn;
2064
+ t.head && (t.head.text = l >> 8 & 1), t.flags & 512 && t.wrap & 4 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = R(t.check, m, 2, 0)), l = 0, f = 0, t.mode = gn;
2065
2065
  case gn:
2066
2066
  for (; f < 32; ) {
2067
- if (l === 0)
2067
+ if (s === 0)
2068
2068
  break e;
2069
- l--, s += i[a++] << f, f += 8;
2069
+ s--, l += i[a++] << f, f += 8;
2070
2070
  }
2071
- t.head && (t.head.time = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, m[2] = s >>> 16 & 255, m[3] = s >>> 24 & 255, t.check = R(t.check, m, 4, 0)), s = 0, f = 0, t.mode = wn;
2071
+ t.head && (t.head.time = l), t.flags & 512 && t.wrap & 4 && (m[0] = l & 255, m[1] = l >>> 8 & 255, m[2] = l >>> 16 & 255, m[3] = l >>> 24 & 255, t.check = R(t.check, m, 4, 0)), l = 0, f = 0, t.mode = wn;
2072
2072
  case wn:
2073
2073
  for (; f < 16; ) {
2074
- if (l === 0)
2074
+ if (s === 0)
2075
2075
  break e;
2076
- l--, s += i[a++] << f, f += 8;
2076
+ s--, l += i[a++] << f, f += 8;
2077
2077
  }
2078
- t.head && (t.head.xflags = s & 255, t.head.os = s >> 8), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0, t.mode = mn;
2078
+ t.head && (t.head.xflags = l & 255, t.head.os = l >> 8), t.flags & 512 && t.wrap & 4 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = R(t.check, m, 2, 0)), l = 0, f = 0, t.mode = mn;
2079
2079
  case mn:
2080
2080
  if (t.flags & 1024) {
2081
2081
  for (; f < 16; ) {
2082
- if (l === 0)
2082
+ if (s === 0)
2083
2083
  break e;
2084
- l--, s += i[a++] << f, f += 8;
2084
+ s--, l += i[a++] << f, f += 8;
2085
2085
  }
2086
- t.length = s, t.head && (t.head.extra_len = s), t.flags & 512 && t.wrap & 4 && (m[0] = s & 255, m[1] = s >>> 8 & 255, t.check = R(t.check, m, 2, 0)), s = 0, f = 0;
2086
+ t.length = l, t.head && (t.head.extra_len = l), t.flags & 512 && t.wrap & 4 && (m[0] = l & 255, m[1] = l >>> 8 & 255, t.check = R(t.check, m, 2, 0)), l = 0, f = 0;
2087
2087
  } else
2088
2088
  t.head && (t.head.extra = null);
2089
2089
  t.mode = yn;
2090
2090
  case yn:
2091
- if (t.flags & 1024 && (h = t.length, h > l && (h = l), h && (t.head && (b = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
2091
+ if (t.flags & 1024 && (h = t.length, h > s && (h = s), h && (t.head && (b = t.head.extra_len - t.length, t.head.extra || (t.head.extra = new Uint8Array(t.head.extra_len)), t.head.extra.set(
2092
2092
  i.subarray(
2093
2093
  a,
2094
2094
  // extra field is limited to 65536 bytes
@@ -2097,31 +2097,31 @@ const so = (e) => {
2097
2097
  ),
2098
2098
  /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
2099
2099
  b
2100
- )), t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), l -= h, a += h, t.length -= h), t.length))
2100
+ )), t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), s -= h, a += h, t.length -= h), t.length))
2101
2101
  break e;
2102
2102
  t.length = 0, t.mode = vn;
2103
2103
  case vn:
2104
2104
  if (t.flags & 2048) {
2105
- if (l === 0)
2105
+ if (s === 0)
2106
2106
  break e;
2107
2107
  h = 0;
2108
2108
  do
2109
2109
  b = i[a + h++], t.head && b && t.length < 65536 && (t.head.name += String.fromCharCode(b));
2110
- while (b && h < l);
2111
- if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), l -= h, a += h, b)
2110
+ while (b && h < s);
2111
+ if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), s -= h, a += h, b)
2112
2112
  break e;
2113
2113
  } else
2114
2114
  t.head && (t.head.name = null);
2115
2115
  t.length = 0, t.mode = kn;
2116
2116
  case kn:
2117
2117
  if (t.flags & 4096) {
2118
- if (l === 0)
2118
+ if (s === 0)
2119
2119
  break e;
2120
2120
  h = 0;
2121
2121
  do
2122
2122
  b = i[a + h++], t.head && b && t.length < 65536 && (t.head.comment += String.fromCharCode(b));
2123
- while (b && h < l);
2124
- if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), l -= h, a += h, b)
2123
+ while (b && h < s);
2124
+ if (t.flags & 512 && t.wrap & 4 && (t.check = R(t.check, i, h, a)), s -= h, a += h, b)
2125
2125
  break e;
2126
2126
  } else
2127
2127
  t.head && (t.head.comment = null);
@@ -2129,49 +2129,49 @@ const so = (e) => {
2129
2129
  case $n:
2130
2130
  if (t.flags & 512) {
2131
2131
  for (; f < 16; ) {
2132
- if (l === 0)
2132
+ if (s === 0)
2133
2133
  break e;
2134
- l--, s += i[a++] << f, f += 8;
2134
+ s--, l += i[a++] << f, f += 8;
2135
2135
  }
2136
- if (t.wrap & 4 && s !== (t.check & 65535)) {
2136
+ if (t.wrap & 4 && l !== (t.check & 65535)) {
2137
2137
  e.msg = "header crc mismatch", t.mode = O;
2138
2138
  break;
2139
2139
  }
2140
- s = 0, f = 0;
2140
+ l = 0, f = 0;
2141
2141
  }
2142
2142
  t.head && (t.head.hcrc = t.flags >> 9 & 1, t.head.done = !0), e.adler = t.check = 0, t.mode = K;
2143
2143
  break;
2144
2144
  case En:
2145
2145
  for (; f < 32; ) {
2146
- if (l === 0)
2146
+ if (s === 0)
2147
2147
  break e;
2148
- l--, s += i[a++] << f, f += 8;
2148
+ s--, l += i[a++] << f, f += 8;
2149
2149
  }
2150
- e.adler = t.check = Vn(s), s = 0, f = 0, t.mode = at;
2150
+ e.adler = t.check = Vn(l), l = 0, f = 0, t.mode = at;
2151
2151
  case at:
2152
2152
  if (t.havedict === 0)
2153
- return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, Qa;
2153
+ return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = s, t.hold = l, t.bits = f, Qa;
2154
2154
  e.adler = t.check = 1, t.mode = K;
2155
2155
  case K:
2156
2156
  if (n === qa || n === qe)
2157
2157
  break e;
2158
2158
  case wt:
2159
2159
  if (t.last) {
2160
- s >>>= f & 7, f -= f & 7, t.mode = yt;
2160
+ l >>>= f & 7, f -= f & 7, t.mode = yt;
2161
2161
  break;
2162
2162
  }
2163
2163
  for (; f < 3; ) {
2164
- if (l === 0)
2164
+ if (s === 0)
2165
2165
  break e;
2166
- l--, s += i[a++] << f, f += 8;
2166
+ s--, l += i[a++] << f, f += 8;
2167
2167
  }
2168
- switch (t.last = s & 1, s >>>= 1, f -= 1, s & 3) {
2168
+ switch (t.last = l & 1, l >>>= 1, f -= 1, l & 3) {
2169
2169
  case 0:
2170
2170
  t.mode = Cn;
2171
2171
  break;
2172
2172
  case 1:
2173
2173
  if (so(t), t.mode = Je, n === qe) {
2174
- s >>>= 2, f -= 2;
2174
+ l >>>= 2, f -= 2;
2175
2175
  break e;
2176
2176
  }
2177
2177
  break;
@@ -2181,38 +2181,38 @@ const so = (e) => {
2181
2181
  case 3:
2182
2182
  e.msg = "invalid block type", t.mode = O;
2183
2183
  }
2184
- s >>>= 2, f -= 2;
2184
+ l >>>= 2, f -= 2;
2185
2185
  break;
2186
2186
  case Cn:
2187
- for (s >>>= f & 7, f -= f & 7; f < 32; ) {
2188
- if (l === 0)
2187
+ for (l >>>= f & 7, f -= f & 7; f < 32; ) {
2188
+ if (s === 0)
2189
2189
  break e;
2190
- l--, s += i[a++] << f, f += 8;
2190
+ s--, l += i[a++] << f, f += 8;
2191
2191
  }
2192
- if ((s & 65535) !== (s >>> 16 ^ 65535)) {
2192
+ if ((l & 65535) !== (l >>> 16 ^ 65535)) {
2193
2193
  e.msg = "invalid stored block lengths", t.mode = O;
2194
2194
  break;
2195
2195
  }
2196
- if (t.length = s & 65535, s = 0, f = 0, t.mode = mt, n === qe)
2196
+ if (t.length = l & 65535, l = 0, f = 0, t.mode = mt, n === qe)
2197
2197
  break e;
2198
2198
  case mt:
2199
2199
  t.mode = Sn;
2200
2200
  case Sn:
2201
2201
  if (h = t.length, h) {
2202
- if (h > l && (h = l), h > u && (h = u), h === 0)
2202
+ if (h > s && (h = s), h > u && (h = u), h === 0)
2203
2203
  break e;
2204
- r.set(i.subarray(a, a + h), o), l -= h, a += h, u -= h, o += h, t.length -= h;
2204
+ r.set(i.subarray(a, a + h), o), s -= h, a += h, u -= h, o += h, t.length -= h;
2205
2205
  break;
2206
2206
  }
2207
2207
  t.mode = K;
2208
2208
  break;
2209
2209
  case Nn:
2210
2210
  for (; f < 14; ) {
2211
- if (l === 0)
2211
+ if (s === 0)
2212
2212
  break e;
2213
- l--, s += i[a++] << f, f += 8;
2213
+ s--, l += i[a++] << f, f += 8;
2214
2214
  }
2215
- if (t.nlen = (s & 31) + 257, s >>>= 5, f -= 5, t.ndist = (s & 31) + 1, s >>>= 5, f -= 5, t.ncode = (s & 15) + 4, s >>>= 4, f -= 4, t.nlen > 286 || t.ndist > 30) {
2215
+ if (t.nlen = (l & 31) + 257, l >>>= 5, f -= 5, t.ndist = (l & 31) + 1, l >>>= 5, f -= 5, t.ncode = (l & 15) + 4, l >>>= 4, f -= 4, t.nlen > 286 || t.ndist > 30) {
2216
2216
  e.msg = "too many length or distance symbols", t.mode = O;
2217
2217
  break;
2218
2218
  }
@@ -2220,11 +2220,11 @@ const so = (e) => {
2220
2220
  case In:
2221
2221
  for (; t.have < t.ncode; ) {
2222
2222
  for (; f < 3; ) {
2223
- if (l === 0)
2223
+ if (s === 0)
2224
2224
  break e;
2225
- l--, s += i[a++] << f, f += 8;
2225
+ s--, l += i[a++] << f, f += 8;
2226
2226
  }
2227
- t.lens[ae[t.have++]] = s & 7, s >>>= 3, f -= 3;
2227
+ t.lens[ae[t.have++]] = l & 7, l >>>= 3, f -= 3;
2228
2228
  }
2229
2229
  for (; t.have < 19; )
2230
2230
  t.lens[ae[t.have++]] = 0;
@@ -2235,39 +2235,39 @@ const so = (e) => {
2235
2235
  t.have = 0, t.mode = Tn;
2236
2236
  case Tn:
2237
2237
  for (; t.have < t.nlen + t.ndist; ) {
2238
- for (; k = t.lencode[s & (1 << t.lenbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2239
- if (l === 0)
2238
+ for (; k = t.lencode[l & (1 << t.lenbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2239
+ if (s === 0)
2240
2240
  break e;
2241
- l--, s += i[a++] << f, f += 8;
2241
+ s--, l += i[a++] << f, f += 8;
2242
2242
  }
2243
2243
  if (C < 16)
2244
- s >>>= y, f -= y, t.lens[t.have++] = C;
2244
+ l >>>= y, f -= y, t.lens[t.have++] = C;
2245
2245
  else {
2246
2246
  if (C === 16) {
2247
2247
  for (I = y + 2; f < I; ) {
2248
- if (l === 0)
2248
+ if (s === 0)
2249
2249
  break e;
2250
- l--, s += i[a++] << f, f += 8;
2250
+ s--, l += i[a++] << f, f += 8;
2251
2251
  }
2252
- if (s >>>= y, f -= y, t.have === 0) {
2252
+ if (l >>>= y, f -= y, t.have === 0) {
2253
2253
  e.msg = "invalid bit length repeat", t.mode = O;
2254
2254
  break;
2255
2255
  }
2256
- b = t.lens[t.have - 1], h = 3 + (s & 3), s >>>= 2, f -= 2;
2256
+ b = t.lens[t.have - 1], h = 3 + (l & 3), l >>>= 2, f -= 2;
2257
2257
  } else if (C === 17) {
2258
2258
  for (I = y + 3; f < I; ) {
2259
- if (l === 0)
2259
+ if (s === 0)
2260
2260
  break e;
2261
- l--, s += i[a++] << f, f += 8;
2261
+ s--, l += i[a++] << f, f += 8;
2262
2262
  }
2263
- s >>>= y, f -= y, b = 0, h = 3 + (s & 7), s >>>= 3, f -= 3;
2263
+ l >>>= y, f -= y, b = 0, h = 3 + (l & 7), l >>>= 3, f -= 3;
2264
2264
  } else {
2265
2265
  for (I = y + 7; f < I; ) {
2266
- if (l === 0)
2266
+ if (s === 0)
2267
2267
  break e;
2268
- l--, s += i[a++] << f, f += 8;
2268
+ s--, l += i[a++] << f, f += 8;
2269
2269
  }
2270
- s >>>= y, f -= y, b = 0, h = 11 + (s & 127), s >>>= 7, f -= 7;
2270
+ l >>>= y, f -= y, b = 0, h = 11 + (l & 127), l >>>= 7, f -= 7;
2271
2271
  }
2272
2272
  if (t.have + h > t.nlen + t.ndist) {
2273
2273
  e.msg = "invalid bit length repeat", t.mode = O;
@@ -2296,24 +2296,24 @@ const so = (e) => {
2296
2296
  case Je:
2297
2297
  t.mode = Qe;
2298
2298
  case Qe:
2299
- if (l >= 6 && u >= 258) {
2300
- e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, Ha(e, c), o = e.next_out, r = e.output, u = e.avail_out, a = e.next_in, i = e.input, l = e.avail_in, s = t.hold, f = t.bits, t.mode === K && (t.back = -1);
2299
+ if (s >= 6 && u >= 258) {
2300
+ e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = s, t.hold = l, t.bits = f, Ha(e, c), o = e.next_out, r = e.output, u = e.avail_out, a = e.next_in, i = e.input, s = e.avail_in, l = t.hold, f = t.bits, t.mode === K && (t.back = -1);
2301
2301
  break;
2302
2302
  }
2303
- for (t.back = 0; k = t.lencode[s & (1 << t.lenbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2304
- if (l === 0)
2303
+ for (t.back = 0; k = t.lencode[l & (1 << t.lenbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2304
+ if (s === 0)
2305
2305
  break e;
2306
- l--, s += i[a++] << f, f += 8;
2306
+ s--, l += i[a++] << f, f += 8;
2307
2307
  }
2308
2308
  if (E && !(E & 240)) {
2309
- for (p = y, $ = E, S = C; k = t.lencode[S + ((s & (1 << p + $) - 1) >> p)], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(p + y <= f); ) {
2310
- if (l === 0)
2309
+ for (p = y, $ = E, S = C; k = t.lencode[S + ((l & (1 << p + $) - 1) >> p)], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(p + y <= f); ) {
2310
+ if (s === 0)
2311
2311
  break e;
2312
- l--, s += i[a++] << f, f += 8;
2312
+ s--, l += i[a++] << f, f += 8;
2313
2313
  }
2314
- s >>>= p, f -= p, t.back += p;
2314
+ l >>>= p, f -= p, t.back += p;
2315
2315
  }
2316
- if (s >>>= y, f -= y, t.back += y, t.length = C, E === 0) {
2316
+ if (l >>>= y, f -= y, t.back += y, t.length = C, E === 0) {
2317
2317
  t.mode = Bn;
2318
2318
  break;
2319
2319
  }
@@ -2329,28 +2329,28 @@ const so = (e) => {
2329
2329
  case An:
2330
2330
  if (t.extra) {
2331
2331
  for (I = t.extra; f < I; ) {
2332
- if (l === 0)
2332
+ if (s === 0)
2333
2333
  break e;
2334
- l--, s += i[a++] << f, f += 8;
2334
+ s--, l += i[a++] << f, f += 8;
2335
2335
  }
2336
- t.length += s & (1 << t.extra) - 1, s >>>= t.extra, f -= t.extra, t.back += t.extra;
2336
+ t.length += l & (1 << t.extra) - 1, l >>>= t.extra, f -= t.extra, t.back += t.extra;
2337
2337
  }
2338
2338
  t.was = t.length, t.mode = On;
2339
2339
  case On:
2340
- for (; k = t.distcode[s & (1 << t.distbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2341
- if (l === 0)
2340
+ for (; k = t.distcode[l & (1 << t.distbits) - 1], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(y <= f); ) {
2341
+ if (s === 0)
2342
2342
  break e;
2343
- l--, s += i[a++] << f, f += 8;
2343
+ s--, l += i[a++] << f, f += 8;
2344
2344
  }
2345
2345
  if (!(E & 240)) {
2346
- for (p = y, $ = E, S = C; k = t.distcode[S + ((s & (1 << p + $) - 1) >> p)], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(p + y <= f); ) {
2347
- if (l === 0)
2346
+ for (p = y, $ = E, S = C; k = t.distcode[S + ((l & (1 << p + $) - 1) >> p)], y = k >>> 24, E = k >>> 16 & 255, C = k & 65535, !(p + y <= f); ) {
2347
+ if (s === 0)
2348
2348
  break e;
2349
- l--, s += i[a++] << f, f += 8;
2349
+ s--, l += i[a++] << f, f += 8;
2350
2350
  }
2351
- s >>>= p, f -= p, t.back += p;
2351
+ l >>>= p, f -= p, t.back += p;
2352
2352
  }
2353
- if (s >>>= y, f -= y, t.back += y, E & 64) {
2353
+ if (l >>>= y, f -= y, t.back += y, E & 64) {
2354
2354
  e.msg = "invalid distance code", t.mode = O;
2355
2355
  break;
2356
2356
  }
@@ -2358,11 +2358,11 @@ const so = (e) => {
2358
2358
  case zn:
2359
2359
  if (t.extra) {
2360
2360
  for (I = t.extra; f < I; ) {
2361
- if (l === 0)
2361
+ if (s === 0)
2362
2362
  break e;
2363
- l--, s += i[a++] << f, f += 8;
2363
+ s--, l += i[a++] << f, f += 8;
2364
2364
  }
2365
- t.offset += s & (1 << t.extra) - 1, s >>>= t.extra, f -= t.extra, t.back += t.extra;
2365
+ t.offset += l & (1 << t.extra) - 1, l >>>= t.extra, f -= t.extra, t.back += t.extra;
2366
2366
  }
2367
2367
  if (t.offset > t.dmax) {
2368
2368
  e.msg = "invalid distance too far back", t.mode = O;
@@ -2394,30 +2394,30 @@ const so = (e) => {
2394
2394
  case yt:
2395
2395
  if (t.wrap) {
2396
2396
  for (; f < 32; ) {
2397
- if (l === 0)
2397
+ if (s === 0)
2398
2398
  break e;
2399
- l--, s |= i[a++] << f, f += 8;
2399
+ s--, l |= i[a++] << f, f += 8;
2400
2400
  }
2401
2401
  if (c -= u, e.total_out += c, t.total += c, t.wrap & 4 && c && (e.adler = t.check = /*UPDATE_CHECK(state.check, put - _out, _out);*/
2402
- t.flags ? R(t.check, r, c, o - c) : Ue(t.check, r, c, o - c)), c = u, t.wrap & 4 && (t.flags ? s : Vn(s)) !== t.check) {
2402
+ t.flags ? R(t.check, r, c, o - c) : Ue(t.check, r, c, o - c)), c = u, t.wrap & 4 && (t.flags ? l : Vn(l)) !== t.check) {
2403
2403
  e.msg = "incorrect data check", t.mode = O;
2404
2404
  break;
2405
2405
  }
2406
- s = 0, f = 0;
2406
+ l = 0, f = 0;
2407
2407
  }
2408
2408
  t.mode = Un;
2409
2409
  case Un:
2410
2410
  if (t.wrap && t.flags) {
2411
2411
  for (; f < 32; ) {
2412
- if (l === 0)
2412
+ if (s === 0)
2413
2413
  break e;
2414
- l--, s += i[a++] << f, f += 8;
2414
+ s--, l += i[a++] << f, f += 8;
2415
2415
  }
2416
- if (t.wrap & 4 && s !== (t.total & 4294967295)) {
2416
+ if (t.wrap & 4 && l !== (t.total & 4294967295)) {
2417
2417
  e.msg = "incorrect length check", t.mode = O;
2418
2418
  break;
2419
2419
  }
2420
- s = 0, f = 0;
2420
+ l = 0, f = 0;
2421
2421
  }
2422
2422
  t.mode = Dn;
2423
2423
  case Dn:
@@ -2432,7 +2432,7 @@ const so = (e) => {
2432
2432
  default:
2433
2433
  return P;
2434
2434
  }
2435
- return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = l, t.hold = s, t.bits = f, (t.wsize || c !== e.avail_out && t.mode < O && (t.mode < yt || n !== pn)) && Ni(e, e.output, e.next_out, c - e.avail_out), d -= e.avail_in, c -= e.avail_out, e.total_in += d, e.total_out += c, t.total += c, t.wrap & 4 && c && (e.adler = t.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
2435
+ return e.next_out = o, e.avail_out = u, e.next_in = a, e.avail_in = s, t.hold = l, t.bits = f, (t.wsize || c !== e.avail_out && t.mode < O && (t.mode < yt || n !== pn)) && Ni(e, e.output, e.next_out, c - e.avail_out), d -= e.avail_in, c -= e.avail_out, e.total_in += d, e.total_out += c, t.total += c, t.wrap & 4 && c && (e.adler = t.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
2436
2436
  t.flags ? R(t.check, r, c, e.next_out - c) : Ue(t.check, r, c, e.next_out - c)), e.data_type = t.bits + (t.last ? 64 : 0) + (t.mode === K ? 128 : 0) + (t.mode === Je || t.mode === mt ? 256 : 0), (d === 0 && c === 0 || n === pn) && w === he && (w = eo), w;
2437
2437
  }, fo = (e) => {
2438
2438
  if (ce(e))
@@ -2494,7 +2494,7 @@ function He(e) {
2494
2494
  }
2495
2495
  He.prototype.push = function(e, n) {
2496
2496
  const t = this.strm, i = this.options.chunkSize, r = this.options.dictionary;
2497
- let a, o, l;
2497
+ let a, o, s;
2498
2498
  if (this.ended)
2499
2499
  return !1;
2500
2500
  for (n === ~~n ? o = n : o = n === !0 ? So : Co, Ii.call(e) === "[object ArrayBuffer]" ? t.input = new Uint8Array(e) : t.input = e, t.next_in = 0, t.avail_in = t.input.length; ; ) {
@@ -2507,13 +2507,13 @@ He.prototype.push = function(e, n) {
2507
2507
  case Io:
2508
2508
  return this.onEnd(a), this.ended = !0, !1;
2509
2509
  }
2510
- if (l = t.avail_out, t.next_out && (t.avail_out === 0 || a === $t))
2510
+ if (s = t.avail_out, t.next_out && (t.avail_out === 0 || a === $t))
2511
2511
  if (this.options.to === "string") {
2512
- let u = Ve.utf8border(t.output, t.next_out), s = t.next_out - u, f = Ve.buf2string(t.output, u);
2513
- t.next_out = s, t.avail_out = i - s, s && t.output.set(t.output.subarray(u, u + s), 0), this.onData(f);
2512
+ let u = Ve.utf8border(t.output, t.next_out), l = t.next_out - u, f = Ve.buf2string(t.output, u);
2513
+ t.next_out = l, t.avail_out = i - l, l && t.output.set(t.output.subarray(u, u + l), 0), this.onData(f);
2514
2514
  } else
2515
2515
  this.onData(t.output.length === t.next_out ? t.output : t.output.subarray(0, t.next_out));
2516
- if (!(a === Le && l === 0)) {
2516
+ if (!(a === Le && s === 0)) {
2517
2517
  if (a === $t)
2518
2518
  return a = X.inflateEnd(this.strm), this.onEnd(a), this.ended = !0, !0;
2519
2519
  if (t.avail_in === 0)
@@ -2621,24 +2621,24 @@ class Ti {
2621
2621
  constructor(n, t, i, r, a, o) {
2622
2622
  if (this.bbi = n, this.refsByName = t, this.cirTreeOffset = i, this.isBigEndian = r, this.isCompressed = a, this.blockType = o, this.featureCache = new Gn({
2623
2623
  cache: new Yn({ maxSize: 1e3 }),
2624
- fill: async (u, s) => {
2624
+ fill: async (u, l) => {
2625
2625
  const f = Number(u.length), d = Number(u.offset), { buffer: c } = await this.bbi.read(Q.Buffer.alloc(f), 0, f, d, {
2626
- signal: s
2626
+ signal: l
2627
2627
  });
2628
2628
  return c;
2629
2629
  }
2630
2630
  }), !(i >= 0))
2631
2631
  throw new Error("invalid cirTreeOffset!");
2632
- const l = Ho(r);
2633
- this.leafParser = l.leafParser, this.bigBedParser = l.bigBedParser;
2632
+ const s = Ho(r);
2633
+ this.leafParser = s.leafParser, this.bigBedParser = s.bigBedParser;
2634
2634
  }
2635
2635
  async readWigData(n, t, i, r, a) {
2636
2636
  try {
2637
- const { refsByName: o, bbi: l, cirTreeOffset: u, isBigEndian: s } = this, f = o[n];
2637
+ const { refsByName: o, bbi: s, cirTreeOffset: u, isBigEndian: l } = this, f = o[n];
2638
2638
  f === void 0 && r.complete();
2639
2639
  const d = { chrId: f, start: t, end: i };
2640
- this.cirTreePromise || (this.cirTreePromise = l.read(Q.Buffer.alloc(48), 0, 48, Number(u), a));
2641
- const { buffer: c } = await this.cirTreePromise, h = s ? c.readUInt32BE(4) : c.readUInt32LE(4);
2640
+ this.cirTreePromise || (this.cirTreePromise = s.read(Q.Buffer.alloc(48), 0, 48, Number(u), a));
2641
+ const { buffer: c } = await this.cirTreePromise, h = l ? c.readUInt32BE(4) : c.readUInt32LE(4);
2642
2642
  let _ = [], g = 0;
2643
2643
  const k = (p, $, S) => {
2644
2644
  try {
@@ -2688,11 +2688,11 @@ class Ti {
2688
2688
  let a = t;
2689
2689
  const o = new DataView(n.buffer, n.byteOffset, n.length);
2690
2690
  for (; a < n.byteLength; ) {
2691
- const l = o.getUint32(a, !0);
2691
+ const s = o.getUint32(a, !0);
2692
2692
  a += 4;
2693
2693
  const u = o.getUint32(a, !0);
2694
2694
  a += 4;
2695
- const s = o.getUint32(a, !0);
2695
+ const l = o.getUint32(a, !0);
2696
2696
  a += 4;
2697
2697
  const f = o.getUint32(a, !0);
2698
2698
  a += 4;
@@ -2701,9 +2701,9 @@ class Ti {
2701
2701
  const c = o.getFloat32(a, !0);
2702
2702
  a += 4;
2703
2703
  const h = o.getFloat32(a, !0);
2704
- a += 4, a += 4, (!i || l === i.chrId && Ct(u, s, i.start, i.end)) && r.push({
2704
+ a += 4, a += 4, (!i || s === i.chrId && Ct(u, l, i.start, i.end)) && r.push({
2705
2705
  start: u,
2706
- end: s,
2706
+ end: l,
2707
2707
  maxScore: c,
2708
2708
  minScore: d,
2709
2709
  summary: !0,
@@ -2716,20 +2716,20 @@ class Ti {
2716
2716
  const a = [];
2717
2717
  let o = t;
2718
2718
  for (; o < n.byteLength; ) {
2719
- const l = this.bigBedParser.parse(n.subarray(o));
2720
- a.push({ ...l, uniqueId: `bb-${i + o}` }), o += l.offset;
2719
+ const s = this.bigBedParser.parse(n.subarray(o));
2720
+ s.uniqueId = `bb-${i + o}`, a.push(s), o += s.offset;
2721
2721
  }
2722
- return r ? a.filter((l) => Ct(l.start, l.end, r.start, r.end)) : a;
2722
+ return r ? a.filter((s) => Ct(s.start, s.end, r.start, r.end)) : a;
2723
2723
  }
2724
2724
  parseBigWigBlock(n, t, i) {
2725
2725
  const r = n.subarray(t), a = new DataView(r.buffer, r.byteOffset, r.length);
2726
2726
  let o = 0;
2727
2727
  o += 4;
2728
- const l = a.getInt32(o, !0);
2728
+ const s = a.getInt32(o, !0);
2729
2729
  o += 8;
2730
2730
  const u = a.getUint32(o, !0);
2731
2731
  o += 4;
2732
- const s = a.getUint32(o, !0);
2732
+ const l = a.getUint32(o, !0);
2733
2733
  o += 4;
2734
2734
  const f = a.getUint8(o);
2735
2735
  o += 2;
@@ -2753,7 +2753,7 @@ class Ti {
2753
2753
  const _ = a.getInt32(o, !0);
2754
2754
  o += 4;
2755
2755
  const g = a.getFloat32(o, !0);
2756
- o += 4, c[h] = { score: g, start: _, end: _ + s };
2756
+ o += 4, c[h] = { score: g, start: _, end: _ + l };
2757
2757
  }
2758
2758
  break;
2759
2759
  }
@@ -2761,8 +2761,8 @@ class Ti {
2761
2761
  for (let h = 0; h < d; h++) {
2762
2762
  const _ = a.getFloat32(o, !0);
2763
2763
  o += 4;
2764
- const g = l + h * u;
2765
- c[h] = { score: _, start: g, end: g + s };
2764
+ const g = s + h * u;
2765
+ c[h] = { score: _, start: g, end: g + l };
2766
2766
  }
2767
2767
  break;
2768
2768
  }
@@ -2771,24 +2771,24 @@ class Ti {
2771
2771
  }
2772
2772
  async readFeatures(n, t, i = {}) {
2773
2773
  try {
2774
- const { blockType: r, isCompressed: a } = this, { signal: o, request: l } = i, u = Po(t);
2775
- et(o), await Promise.all(u.map(async (s) => {
2774
+ const { blockType: r, isCompressed: a } = this, { signal: o, request: s } = i, u = Po(t);
2775
+ et(o), await Promise.all(u.map(async (l) => {
2776
2776
  et(o);
2777
- const { length: f, offset: d } = s, c = await this.featureCache.get(`${f}_${d}`, s, o);
2778
- for (const h of s.blocks) {
2777
+ const { length: f, offset: d } = l, c = await this.featureCache.get(`${f}_${d}`, l, o);
2778
+ for (const h of l.blocks) {
2779
2779
  et(o);
2780
- let _ = Number(h.offset) - Number(s.offset), g = c;
2780
+ let _ = Number(h.offset) - Number(l.offset), g = c;
2781
2781
  switch (a && (g = Lo(c.subarray(_)), _ = 0), et(o), r) {
2782
2782
  case "summary": {
2783
- n.next(this.parseSummaryBlock(g, _, l));
2783
+ n.next(this.parseSummaryBlock(g, _, s));
2784
2784
  break;
2785
2785
  }
2786
2786
  case "bigwig": {
2787
- n.next(this.parseBigWigBlock(g, _, l));
2787
+ n.next(this.parseBigWigBlock(g, _, s));
2788
2788
  break;
2789
2789
  }
2790
2790
  case "bigbed": {
2791
- n.next(this.parseBigBedBlock(g, _, Number(h.offset) * 256, l));
2791
+ n.next(this.parseBigBedBlock(g, _, Number(h.offset) * 256, s));
2792
2792
  break;
2793
2793
  }
2794
2794
  default:
@@ -2825,24 +2825,24 @@ function jo(e, n, t, i) {
2825
2825
  });
2826
2826
  }
2827
2827
  return new (t || (t = Promise))(function(a, o) {
2828
- function l(f) {
2828
+ function s(f) {
2829
2829
  try {
2830
- s(i.next(f));
2830
+ l(i.next(f));
2831
2831
  } catch (d) {
2832
2832
  o(d);
2833
2833
  }
2834
2834
  }
2835
2835
  function u(f) {
2836
2836
  try {
2837
- s(i.throw(f));
2837
+ l(i.throw(f));
2838
2838
  } catch (d) {
2839
2839
  o(d);
2840
2840
  }
2841
2841
  }
2842
- function s(f) {
2843
- f.done ? a(f.value) : r(f.value).then(l, u);
2842
+ function l(f) {
2843
+ f.done ? a(f.value) : r(f.value).then(s, u);
2844
2844
  }
2845
- s((i = i.apply(e, n || [])).next());
2845
+ l((i = i.apply(e, n || [])).next());
2846
2846
  });
2847
2847
  }
2848
2848
  function Ai(e, n) {
@@ -2851,63 +2851,63 @@ function Ai(e, n) {
2851
2851
  throw a[1];
2852
2852
  return a[1];
2853
2853
  }, trys: [], ops: [] }, i, r, a, o;
2854
- return o = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
2854
+ return o = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
2855
2855
  return this;
2856
2856
  }), o;
2857
- function l(s) {
2857
+ function s(l) {
2858
2858
  return function(f) {
2859
- return u([s, f]);
2859
+ return u([l, f]);
2860
2860
  };
2861
2861
  }
2862
- function u(s) {
2862
+ function u(l) {
2863
2863
  if (i)
2864
2864
  throw new TypeError("Generator is already executing.");
2865
- for (; o && (o = 0, s[0] && (t = 0)), t; )
2865
+ for (; o && (o = 0, l[0] && (t = 0)), t; )
2866
2866
  try {
2867
- if (i = 1, r && (a = s[0] & 2 ? r.return : s[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, s[1])).done)
2867
+ if (i = 1, r && (a = l[0] & 2 ? r.return : l[0] ? r.throw || ((a = r.return) && a.call(r), 0) : r.next) && !(a = a.call(r, l[1])).done)
2868
2868
  return a;
2869
- switch (r = 0, a && (s = [s[0] & 2, a.value]), s[0]) {
2869
+ switch (r = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
2870
2870
  case 0:
2871
2871
  case 1:
2872
- a = s;
2872
+ a = l;
2873
2873
  break;
2874
2874
  case 4:
2875
- return t.label++, { value: s[1], done: !1 };
2875
+ return t.label++, { value: l[1], done: !1 };
2876
2876
  case 5:
2877
- t.label++, r = s[1], s = [0];
2877
+ t.label++, r = l[1], l = [0];
2878
2878
  continue;
2879
2879
  case 7:
2880
- s = t.ops.pop(), t.trys.pop();
2880
+ l = t.ops.pop(), t.trys.pop();
2881
2881
  continue;
2882
2882
  default:
2883
- if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (s[0] === 6 || s[0] === 2)) {
2883
+ if (a = t.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
2884
2884
  t = 0;
2885
2885
  continue;
2886
2886
  }
2887
- if (s[0] === 3 && (!a || s[1] > a[0] && s[1] < a[3])) {
2888
- t.label = s[1];
2887
+ if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
2888
+ t.label = l[1];
2889
2889
  break;
2890
2890
  }
2891
- if (s[0] === 6 && t.label < a[1]) {
2892
- t.label = a[1], a = s;
2891
+ if (l[0] === 6 && t.label < a[1]) {
2892
+ t.label = a[1], a = l;
2893
2893
  break;
2894
2894
  }
2895
2895
  if (a && t.label < a[2]) {
2896
- t.label = a[2], t.ops.push(s);
2896
+ t.label = a[2], t.ops.push(l);
2897
2897
  break;
2898
2898
  }
2899
2899
  a[2] && t.ops.pop(), t.trys.pop();
2900
2900
  continue;
2901
2901
  }
2902
- s = n.call(e, t);
2902
+ l = n.call(e, t);
2903
2903
  } catch (f) {
2904
- s = [6, f], r = 0;
2904
+ l = [6, f], r = 0;
2905
2905
  } finally {
2906
2906
  i = a = 0;
2907
2907
  }
2908
- if (s[0] & 5)
2909
- throw s[1];
2910
- return { value: s[0] ? s[1] : void 0, done: !0 };
2908
+ if (l[0] & 5)
2909
+ throw l[1];
2910
+ return { value: l[0] ? l[1] : void 0, done: !0 };
2911
2911
  }
2912
2912
  }
2913
2913
  function Fe(e) {
@@ -2930,8 +2930,8 @@ function Ft(e, n) {
2930
2930
  try {
2931
2931
  for (; (n === void 0 || n-- > 0) && !(r = i.next()).done; )
2932
2932
  a.push(r.value);
2933
- } catch (l) {
2934
- o = { error: l };
2933
+ } catch (s) {
2934
+ o = { error: s };
2935
2935
  } finally {
2936
2936
  try {
2937
2937
  r && !r.done && (t = i.return) && t.call(i);
@@ -2961,11 +2961,11 @@ function Go(e, n, t) {
2961
2961
  function o(c) {
2962
2962
  i[c] && (r[c] = function(h) {
2963
2963
  return new Promise(function(_, g) {
2964
- a.push([c, h, _, g]) > 1 || l(c, h);
2964
+ a.push([c, h, _, g]) > 1 || s(c, h);
2965
2965
  });
2966
2966
  });
2967
2967
  }
2968
- function l(c, h) {
2968
+ function s(c, h) {
2969
2969
  try {
2970
2970
  u(i[c](h));
2971
2971
  } catch (_) {
@@ -2973,16 +2973,16 @@ function Go(e, n, t) {
2973
2973
  }
2974
2974
  }
2975
2975
  function u(c) {
2976
- c.value instanceof be ? Promise.resolve(c.value.v).then(s, f) : d(a[0][2], c);
2976
+ c.value instanceof be ? Promise.resolve(c.value.v).then(l, f) : d(a[0][2], c);
2977
2977
  }
2978
- function s(c) {
2979
- l("next", c);
2978
+ function l(c) {
2979
+ s("next", c);
2980
2980
  }
2981
2981
  function f(c) {
2982
- l("throw", c);
2982
+ s("throw", c);
2983
2983
  }
2984
2984
  function d(c, h) {
2985
- c(h), a.shift(), a.length && l(a[0][0], a[0][1]);
2985
+ c(h), a.shift(), a.length && s(a[0][0], a[0][1]);
2986
2986
  }
2987
2987
  }
2988
2988
  function Yo(e) {
@@ -2994,14 +2994,14 @@ function Yo(e) {
2994
2994
  }, t);
2995
2995
  function i(a) {
2996
2996
  t[a] = e[a] && function(o) {
2997
- return new Promise(function(l, u) {
2998
- o = e[a](o), r(l, u, o.done, o.value);
2997
+ return new Promise(function(s, u) {
2998
+ o = e[a](o), r(s, u, o.done, o.value);
2999
2999
  });
3000
3000
  };
3001
3001
  }
3002
- function r(a, o, l, u) {
3003
- Promise.resolve(u).then(function(s) {
3004
- a({ value: s, done: l });
3002
+ function r(a, o, s, u) {
3003
+ Promise.resolve(u).then(function(l) {
3004
+ a({ value: l, done: s });
3005
3005
  }, o);
3006
3006
  }
3007
3007
  }
@@ -3041,15 +3041,15 @@ var Wt = function() {
3041
3041
  if (o)
3042
3042
  if (this._parentage = null, Array.isArray(o))
3043
3043
  try {
3044
- for (var l = Fe(o), u = l.next(); !u.done; u = l.next()) {
3045
- var s = u.value;
3046
- s.remove(this);
3044
+ for (var s = Fe(o), u = s.next(); !u.done; u = s.next()) {
3045
+ var l = u.value;
3046
+ l.remove(this);
3047
3047
  }
3048
3048
  } catch (g) {
3049
3049
  n = { error: g };
3050
3050
  } finally {
3051
3051
  try {
3052
- u && !u.done && (t = l.return) && t.call(l);
3052
+ u && !u.done && (t = s.return) && t.call(s);
3053
3053
  } finally {
3054
3054
  if (n)
3055
3055
  throw n.error;
@@ -3232,13 +3232,13 @@ var Xo = function() {
3232
3232
  complete: r ?? void 0
3233
3233
  };
3234
3234
  else {
3235
- var l;
3236
- a && Ri.useDeprecatedNextContext ? (l = Object.create(t), l.unsubscribe = function() {
3235
+ var s;
3236
+ a && Ri.useDeprecatedNextContext ? (s = Object.create(t), s.unsubscribe = function() {
3237
3237
  return a.unsubscribe();
3238
3238
  }, o = {
3239
- next: t.next && Nt(t.next, l),
3240
- error: t.error && Nt(t.error, l),
3241
- complete: t.complete && Nt(t.complete, l)
3239
+ next: t.next && Nt(t.next, s),
3240
+ error: t.error && Nt(t.error, s),
3241
+ complete: t.complete && Nt(t.complete, s)
3242
3242
  }) : o = t;
3243
3243
  }
3244
3244
  return a.destination = new Xo(o), a;
@@ -3279,8 +3279,8 @@ var Z = function() {
3279
3279
  }, e.prototype.subscribe = function(n, t, i) {
3280
3280
  var r = this, a = ts(n) ? n : new ot(n, t, i);
3281
3281
  return Ko(function() {
3282
- var o = r, l = o.operator, u = o.source;
3283
- a.add(l ? l.call(a, u) : u ? r._subscribe(a) : r._trySubscribe(a));
3282
+ var o = r, s = o.operator, u = o.source;
3283
+ a.add(s ? s.call(a, u) : u ? r._subscribe(a) : r._trySubscribe(a));
3284
3284
  }), a;
3285
3285
  }, e.prototype._trySubscribe = function(n) {
3286
3286
  try {
@@ -3292,9 +3292,9 @@ var Z = function() {
3292
3292
  var i = this;
3293
3293
  return t = Mn(t), new t(function(r, a) {
3294
3294
  var o = new ot({
3295
- next: function(l) {
3295
+ next: function(s) {
3296
3296
  try {
3297
- n(l);
3297
+ n(s);
3298
3298
  } catch (u) {
3299
3299
  a(u), o.unsubscribe();
3300
3300
  }
@@ -3360,17 +3360,17 @@ function Pe(e, n, t, i, r) {
3360
3360
  }
3361
3361
  var is = function(e) {
3362
3362
  Kt(n, e);
3363
- function n(t, i, r, a, o, l) {
3363
+ function n(t, i, r, a, o, s) {
3364
3364
  var u = e.call(this, t) || this;
3365
- return u.onFinalize = o, u.shouldUnsubscribe = l, u._next = i ? function(s) {
3365
+ return u.onFinalize = o, u.shouldUnsubscribe = s, u._next = i ? function(l) {
3366
3366
  try {
3367
- i(s);
3367
+ i(l);
3368
3368
  } catch (f) {
3369
3369
  t.error(f);
3370
3370
  }
3371
- } : e.prototype._next, u._error = a ? function(s) {
3371
+ } : e.prototype._next, u._error = a ? function(l) {
3372
3372
  try {
3373
- a(s);
3373
+ a(l);
3374
3374
  } catch (f) {
3375
3375
  t.error(f);
3376
3376
  } finally {
@@ -3379,8 +3379,8 @@ var is = function(e) {
3379
3379
  } : e.prototype._error, u._complete = r ? function() {
3380
3380
  try {
3381
3381
  r();
3382
- } catch (s) {
3383
- t.error(s);
3382
+ } catch (l) {
3383
+ t.error(l);
3384
3384
  } finally {
3385
3385
  this.unsubscribe();
3386
3386
  }
@@ -3516,8 +3516,8 @@ function cs(e) {
3516
3516
  if (n.next(o), n.closed)
3517
3517
  return;
3518
3518
  }
3519
- } catch (l) {
3520
- t = { error: l };
3519
+ } catch (s) {
3520
+ t = { error: s };
3521
3521
  } finally {
3522
3522
  try {
3523
3523
  a && !a.done && (i = r.return) && i.call(r);
@@ -3542,7 +3542,7 @@ function ds(e) {
3542
3542
  function ps(e, n) {
3543
3543
  var t, i, r, a;
3544
3544
  return jo(this, void 0, void 0, function() {
3545
- var o, l;
3545
+ var o, s;
3546
3546
  return Ai(this, function(u) {
3547
3547
  switch (u.label) {
3548
3548
  case 0:
@@ -3560,7 +3560,7 @@ function ps(e, n) {
3560
3560
  case 4:
3561
3561
  return [3, 11];
3562
3562
  case 5:
3563
- return l = u.sent(), r = { error: l }, [3, 11];
3563
+ return s = u.sent(), r = { error: s }, [3, 11];
3564
3564
  case 6:
3565
3565
  return u.trys.push([6, , 9, 10]), i && !i.done && (a = t.return) ? [4, a.call(t)] : [3, 8];
3566
3566
  case 7:
@@ -3633,8 +3633,8 @@ function ws(e, n) {
3633
3633
  var r, a, o;
3634
3634
  try {
3635
3635
  r = i.next(), a = r.value, o = r.done;
3636
- } catch (l) {
3637
- t.error(l);
3636
+ } catch (s) {
3637
+ t.error(s);
3638
3638
  return;
3639
3639
  }
3640
3640
  o ? t.complete() : t.next(a);
@@ -3709,13 +3709,13 @@ function Ji(e, n) {
3709
3709
  }));
3710
3710
  });
3711
3711
  }
3712
- function $s(e, n, t, i, r, a, o, l) {
3713
- var u = [], s = 0, f = 0, d = !1, c = function() {
3714
- d && !u.length && !s && n.complete();
3712
+ function $s(e, n, t, i, r, a, o, s) {
3713
+ var u = [], l = 0, f = 0, d = !1, c = function() {
3714
+ d && !u.length && !l && n.complete();
3715
3715
  }, h = function(g) {
3716
- return s < i ? _(g) : u.push(g);
3716
+ return l < i ? _(g) : u.push(g);
3717
3717
  }, _ = function(g) {
3718
- a && n.next(g), s++;
3718
+ a && n.next(g), l++;
3719
3719
  var k = !1;
3720
3720
  Ee(t(g, f++)).subscribe(Pe(n, function(y) {
3721
3721
  r == null || r(y), a ? h(y) : n.next(y);
@@ -3724,13 +3724,13 @@ function $s(e, n, t, i, r, a, o, l) {
3724
3724
  }, void 0, function() {
3725
3725
  if (k)
3726
3726
  try {
3727
- s--;
3727
+ l--;
3728
3728
  for (var y = function() {
3729
3729
  var E = u.shift();
3730
3730
  o ? re(n, o, function() {
3731
3731
  return _(E);
3732
3732
  }) : _(E);
3733
- }; u.length && s < i; )
3733
+ }; u.length && l < i; )
3734
3734
  y();
3735
3735
  c();
3736
3736
  } catch (E) {
@@ -3741,7 +3741,7 @@ function $s(e, n, t, i, r, a, o, l) {
3741
3741
  return e.subscribe(Pe(n, h, function() {
3742
3742
  d = !0, c();
3743
3743
  })), function() {
3744
- l == null || l();
3744
+ s == null || s();
3745
3745
  };
3746
3746
  }
3747
3747
  function Qi(e, n, t) {
@@ -3764,12 +3764,12 @@ function Cs() {
3764
3764
  }
3765
3765
  function Ss(e, n, t, i, r) {
3766
3766
  return function(a, o) {
3767
- var l = t, u = n, s = 0;
3767
+ var s = t, u = n, l = 0;
3768
3768
  a.subscribe(Pe(o, function(f) {
3769
- var d = s++;
3770
- u = l ? e(u, f, d) : (l = !0, f), i && o.next(u);
3769
+ var d = l++;
3770
+ u = s ? e(u, f, d) : (s = !0, f), i && o.next(u);
3771
3771
  }, r && function() {
3772
- l && o.next(u), o.complete();
3772
+ s && o.next(u), o.complete();
3773
3773
  }));
3774
3774
  };
3775
3775
  }
@@ -3812,9 +3812,13 @@ class tr {
3812
3812
  }
3813
3813
  /*
3814
3814
  * @param filehandle - a filehandle from generic-filehandle or implementing something similar to the node10 fs.promises API
3815
+ *
3815
3816
  * @param path - a Local file path as a string
3817
+ *
3816
3818
  * @param url - a URL string
3817
- * @param renameRefSeqs - an optional method to rename the internal reference sequences using a mapping function
3819
+ *
3820
+ * @param renameRefSeqs - an optional method to rename the internal reference
3821
+ * sequences using a mapping function
3818
3822
  */
3819
3823
  constructor(n) {
3820
3824
  const { filehandle: t, renameRefSeqs: i = (o) => o, path: r, url: a } = n;
@@ -3832,14 +3836,14 @@ class tr {
3832
3836
  return { ...t, ...i };
3833
3837
  }
3834
3838
  async _getMainHeader(n, t = 2e3) {
3835
- const { buffer: i } = await this.bbi.read(Q.Buffer.alloc(t), 0, t, 0, n), r = this._isBigEndian(i), a = jn(r), o = a.headerParser.parse(i), { magic: l, asOffset: u, totalSummaryOffset: s } = o;
3836
- if (o.fileType = l === It ? "bigbed" : "bigwig", u > t || s > t)
3839
+ const { buffer: i } = await this.bbi.read(Q.Buffer.alloc(t), 0, t, 0, n), r = this._isBigEndian(i), a = jn(r), o = a.headerParser.parse(i), { magic: s, asOffset: u, totalSummaryOffset: l } = o;
3840
+ if (o.fileType = s === It ? "bigbed" : "bigwig", u > t || l > t)
3837
3841
  return this._getMainHeader(n, t * 2);
3838
3842
  if (u) {
3839
3843
  const f = Number(o.asOffset);
3840
3844
  o.autoSql = Ts(i.subarray(f, i.indexOf(0, f)));
3841
3845
  }
3842
- if (o.totalSummaryOffset > t)
3846
+ if (o.totalSummaryOffset > t - 8 * 5)
3843
3847
  return this._getMainHeader(n, t * 2);
3844
3848
  if (o.totalSummaryOffset) {
3845
3849
  const f = i.subarray(Number(o.totalSummaryOffset)), d = a.totalSummaryParser.parse(f);
@@ -3858,11 +3862,11 @@ class tr {
3858
3862
  // todo: add progress if long running
3859
3863
  async _readChromTree(n, t) {
3860
3864
  const i = n.isBigEndian, r = i ? "big" : "little", a = [], o = {};
3861
- let l = Number(n.unzoomedDataOffset);
3865
+ let s = Number(n.unzoomedDataOffset);
3862
3866
  const u = Number(n.chromTreeOffset);
3863
- for (; l % 4 !== 0; )
3864
- l += 1;
3865
- const s = l - u, { buffer: f } = await this.bbi.read(Q.Buffer.alloc(s), 0, s, Number(u), t), d = jn(i), { keySize: c } = d.chromTreeParser.parse(f), h = new N().endianess(r).string("key", { stripNull: !0, length: c }).uint32("refId").uint32("refSize").saveOffset("offset"), _ = new N().endianess(r).skip(c).uint64("childOffset").saveOffset("offset"), g = 32, k = async (y) => {
3867
+ for (; s % 4 !== 0; )
3868
+ s += 1;
3869
+ const l = s - u, { buffer: f } = await this.bbi.read(Q.Buffer.alloc(l), 0, l, Number(u), t), d = jn(i), { keySize: c } = d.chromTreeParser.parse(f), h = new N().endianess(r).string("key", { stripNull: !0, length: c }).uint32("refId").uint32("refSize").saveOffset("offset"), _ = new N().endianess(r).skip(c).uint64("childOffset").saveOffset("offset"), g = 32, k = async (y) => {
3866
3870
  let E = y;
3867
3871
  if (E >= f.length)
3868
3872
  throw new Error("reading beyond end of buffer");
@@ -3908,9 +3912,9 @@ class tr {
3908
3912
  await this.getHeader(r);
3909
3913
  const a = this.renameRefSeqs(n);
3910
3914
  let o;
3911
- const { basesPerSpan: l, scale: u } = r || {};
3912
- return l ? o = await this.getView(1 / l, r) : u ? o = await this.getView(u, r) : o = await this.getView(1, r), new Z((s) => {
3913
- o.readWigData(a, t, i, s, r);
3915
+ const { basesPerSpan: s, scale: u } = r || {};
3916
+ return s ? o = await this.getView(1 / s, r) : u ? o = await this.getView(u, r) : o = await this.getView(1, r), new Z((l) => {
3917
+ o.readWigData(a, t, i, l, r);
3914
3918
  });
3915
3919
  }
3916
3920
  async getFeatures(n, t, i, r) {
@@ -3926,14 +3930,14 @@ class Fs extends tr {
3926
3930
  * @param opts - An object containing basesPerSpan (e.g. pixels per basepair) or scale used to infer the zoomLevel to use
3927
3931
  */
3928
3932
  async getView(n, t) {
3929
- const { zoomLevels: i, refsByName: r, fileSize: a, isBigEndian: o, uncompressBufSize: l } = await this.getHeader(t), u = 1 / n;
3930
- let s = i.length;
3931
- a || (s -= 1);
3932
- for (let f = s; f >= 0; f -= 1) {
3933
+ const { zoomLevels: i, refsByName: r, fileSize: a, isBigEndian: o, uncompressBufSize: s } = await this.getHeader(t), u = 1 / n;
3934
+ let l = i.length;
3935
+ a || (l -= 1);
3936
+ for (let f = l; f >= 0; f -= 1) {
3933
3937
  const d = i[f];
3934
3938
  if (d && d.reductionLevel <= 2 * u) {
3935
3939
  const c = Number(d.indexOffset);
3936
- return new Ti(this.bbi, r, c, o, l > 0, "summary");
3940
+ return new Ti(this.bbi, r, c, o, s > 0, "summary");
3937
3941
  }
3938
3942
  }
3939
3943
  return this.getUnzoomedView(t);
@@ -3965,12 +3969,12 @@ class Ps extends tr {
3965
3969
  * @return a Promise for an array of Index data structure since there can be multiple extraIndexes in a bigbed, see bedToBigBed documentation
3966
3970
  */
3967
3971
  async _readIndices(n) {
3968
- const { extHeaderOffset: t, isBigEndian: i } = await this.getHeader(n), { buffer: r } = await this.bbi.read(Q.Buffer.alloc(64), 0, 64, Number(t)), a = i ? "big" : "little", o = new N().endianess(a).uint16("size").uint16("count").uint64("offset").parse(r), { count: l, offset: u } = o;
3969
- if (l === 0)
3972
+ const { extHeaderOffset: t, isBigEndian: i } = await this.getHeader(n), { buffer: r } = await this.bbi.read(Q.Buffer.alloc(64), 0, 64, Number(t)), a = i ? "big" : "little", o = new N().endianess(a).uint16("size").uint16("count").uint64("offset").parse(r), { count: s, offset: u } = o;
3973
+ if (s === 0)
3970
3974
  return [];
3971
- const s = 20, f = s * l, { buffer: d } = await this.bbi.read(Q.Buffer.alloc(f), 0, f, Number(u)), c = new N().endianess(a).int16("type").int16("fieldcount").uint64("offset").skip(4).int16("field"), h = [];
3972
- for (let _ = 0; _ < l; _ += 1)
3973
- h.push(c.parse(d.subarray(_ * s)));
3975
+ const l = 20, f = l * s, { buffer: d } = await this.bbi.read(Q.Buffer.alloc(f), 0, f, Number(u)), c = new N().endianess(a).int16("type").int16("fieldcount").uint64("offset").skip(4).int16("field"), h = [];
3976
+ for (let _ = 0; _ < s; _ += 1)
3977
+ h.push(c.parse(d.subarray(_ * l)));
3974
3978
  return h;
3975
3979
  }
3976
3980
  /*
@@ -3986,7 +3990,7 @@ class Ps extends tr {
3986
3990
  if (r.length === 0)
3987
3991
  return [];
3988
3992
  const a = r.map(async (o) => {
3989
- const { offset: l, field: u } = o, { buffer: s } = await this.bbi.read(Q.Buffer.alloc(32), 0, 32, Number(l), t), f = i ? "big" : "little", d = new N().endianess(f).int32("magic").int32("blockSize").int32("keySize").int32("valSize").uint64("itemCount"), { blockSize: c, keySize: h, valSize: _ } = d.parse(s), g = new N().endianess(f).int8("nodeType").skip(1).int16("cnt").choice({
3993
+ const { offset: s, field: u } = o, { buffer: l } = await this.bbi.read(Q.Buffer.alloc(32), 0, 32, Number(s), t), f = i ? "big" : "little", d = new N().endianess(f).int32("magic").int32("blockSize").int32("keySize").int32("valSize").uint64("itemCount"), { blockSize: c, keySize: h, valSize: _ } = d.parse(l), g = new N().endianess(f).int8("nodeType").skip(1).int16("cnt").choice({
3990
3994
  tag: "nodeType",
3991
3995
  choices: {
3992
3996
  0: new N().array("leafkeys", {
@@ -4014,7 +4018,7 @@ class Ps extends tr {
4014
4018
  if (S.keys[b].key === n)
4015
4019
  return { ...S.keys[b], field: u };
4016
4020
  }, y = 32;
4017
- return k(Number(l) + y);
4021
+ return k(Number(s) + y);
4018
4022
  });
4019
4023
  return As(await Promise.all(a));
4020
4024
  }
@@ -4030,16 +4034,16 @@ class Ps extends tr {
4030
4034
  const i = await this.searchExtraIndexBlocks(n, t);
4031
4035
  if (i.length === 0)
4032
4036
  return [];
4033
- const r = await this.getUnzoomedView(t), a = i.map((l) => new Z((u) => {
4034
- r.readFeatures(u, [l], t);
4035
- }).pipe(er((u, s) => u.concat(s)), Ji((u) => {
4036
- for (const s of u)
4037
- s.field = l.field;
4037
+ const r = await this.getUnzoomedView(t), a = i.map((s) => new Z((u) => {
4038
+ r.readFeatures(u, [s], t);
4039
+ }).pipe(er((u, l) => u.concat(l)), Ji((u) => {
4040
+ for (const l of u)
4041
+ l.field = s.field;
4038
4042
  return u;
4039
4043
  })));
4040
- return (await qi(Cs(...a))).filter((l) => {
4044
+ return (await qi(Cs(...a))).filter((s) => {
4041
4045
  var u;
4042
- return ((u = l.rest) === null || u === void 0 ? void 0 : u.split(" ")[(l.field || 0) - 3]) === n;
4046
+ return ((u = s.rest) === null || u === void 0 ? void 0 : u.split(" ")[(s.field || 0) - 3]) === n;
4043
4047
  });
4044
4048
  }
4045
4049
  }