bok-reader 0.4.4 → 0.4.5

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/bok.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsxs as mt, jsx as rt, Fragment as qt } from "react/jsx-runtime";
2
- import Vt, { forwardRef as $t, createElement as Wt, useState as wt, useRef as At, useCallback as re, useEffect as gt, useImperativeHandle as ne } from "react";
1
+ import { jsxs as pt, jsx as rt, Fragment as qt } from "react/jsx-runtime";
2
+ import Vt, { forwardRef as $t, createElement as Wt, useState as wt, useRef as zt, useCallback as re, useEffect as _t, useImperativeHandle as ne } from "react";
3
3
  import './main.css';var Ft = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function ie($) {
5
5
  return $ && $.__esModule && Object.prototype.hasOwnProperty.call($, "default") ? $.default : $;
@@ -51,7 +51,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
51
51
  }()), jt;
52
52
  }
53
53
  process.env.NODE_ENV === "production" ? Mt.exports = se() : Mt.exports = ae();
54
- var zt = Mt.exports;
54
+ var It = Mt.exports;
55
55
  /**
56
56
  * @license lucide-react v0.555.0 - ISC
57
57
  *
@@ -311,7 +311,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
311
311
  return d;
312
312
  }
313
313
  function h(o, m, s, d, a, p) {
314
- var k, E, C = o.file, B = o.compression, F = p !== w.utf8encode, M = i.transformTo("string", p(C.name)), R = i.transformTo("string", w.utf8encode(C.name)), q = C.comment, Q = i.transformTo("string", p(q)), _ = i.transformTo("string", w.utf8encode(q)), S = R.length !== C.name.length, r = _.length !== q.length, N = "", K = "", P = "", Y = C.dir, U = C.date, J = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
314
+ var k, E, C = o.file, B = o.compression, F = p !== w.utf8encode, M = i.transformTo("string", p(C.name)), R = i.transformTo("string", w.utf8encode(C.name)), q = C.comment, Q = i.transformTo("string", p(q)), _ = i.transformTo("string", w.utf8encode(q)), S = R.length !== C.name.length, r = _.length !== q.length, N = "", G = "", P = "", Y = C.dir, U = C.date, J = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
315
315
  m && !s || (J.crc32 = o.crc32, J.compressedSize = o.compressedSize, J.uncompressedSize = o.uncompressedSize);
316
316
  var O = 0;
317
317
  m && (O |= 8), F || !S && !r || (O |= 2048);
@@ -321,7 +321,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
321
321
  return j || (it = st ? 16893 : 33204), (65535 & it) << 16;
322
322
  }(C.unixPermissions, Y)) : (X = 20, z |= function(j) {
323
323
  return 63 & (j || 0);
324
- }(C.dosPermissions)), k = U.getUTCHours(), k <<= 6, k |= U.getUTCMinutes(), k <<= 5, k |= U.getUTCSeconds() / 2, E = U.getUTCFullYear() - 1980, E <<= 4, E |= U.getUTCMonth() + 1, E <<= 5, E |= U.getUTCDate(), S && (K = l(1, 1) + l(b(M), 4) + R, N += "up" + l(K.length, 2) + K), r && (P = l(1, 1) + l(b(Q), 4) + _, N += "uc" + l(P.length, 2) + P);
324
+ }(C.dosPermissions)), k = U.getUTCHours(), k <<= 6, k |= U.getUTCMinutes(), k <<= 5, k |= U.getUTCSeconds() / 2, E = U.getUTCFullYear() - 1980, E <<= 4, E |= U.getUTCMonth() + 1, E <<= 5, E |= U.getUTCDate(), S && (G = l(1, 1) + l(b(M), 4) + R, N += "up" + l(G.length, 2) + G), r && (P = l(1, 1) + l(b(Q), 4) + _, N += "uc" + l(P.length, 2) + P);
325
325
  var Z = "";
326
326
  return Z += `
327
327
  \0`, Z += l(O, 2), Z += B.magic, Z += l(k, 2), Z += l(E, 2), Z += l(J.crc32, 4), Z += l(J.compressedSize, 4), Z += l(J.uncompressedSize, 4), Z += l(M.length, 2), Z += l(N.length, 2), { fileRecord: y.LOCAL_FILE_HEADER + Z + M + N, dirRecord: y.CENTRAL_FILE_HEADER + l(X, 2) + Z + l(Q.length, 2) + "\0\0\0\0" + l(z, 4) + l(d, 4) + M + N + Q };
@@ -1686,7 +1686,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1686
1686
  return -1 ^ h;
1687
1687
  };
1688
1688
  }, {}], 46: [function(n, I, f) {
1689
- var l, h = n("../utils/common"), i = n("./trees"), u = n("./adler32"), w = n("./crc32"), b = n("./messages"), y = 0, v = 4, o = 0, m = -2, s = -1, d = 4, a = 2, p = 8, k = 9, E = 286, C = 30, B = 19, F = 2 * E + 1, M = 15, R = 3, q = 258, Q = q + R + 1, _ = 42, S = 113, r = 1, N = 2, K = 3, P = 4;
1689
+ var l, h = n("../utils/common"), i = n("./trees"), u = n("./adler32"), w = n("./crc32"), b = n("./messages"), y = 0, v = 4, o = 0, m = -2, s = -1, d = 4, a = 2, p = 8, k = 9, E = 286, C = 30, B = 19, F = 2 * E + 1, M = 15, R = 3, q = 258, Q = q + R + 1, _ = 42, S = 113, r = 1, N = 2, G = 3, P = 4;
1690
1690
  function Y(e, D) {
1691
1691
  return e.msg = b[D], D;
1692
1692
  }
@@ -1711,7 +1711,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1711
1711
  e.pending_buf[e.pending++] = D >>> 8 & 255, e.pending_buf[e.pending++] = 255 & D;
1712
1712
  }
1713
1713
  function j(e, D) {
1714
- var T, g, c = e.max_chain_length, x = e.strstart, L = e.prev_length, W = e.nice_match, A = e.strstart > e.w_size - Q ? e.strstart - (e.w_size - Q) : 0, H = e.window, V = e.w_mask, G = e.prev, et = e.strstart + q, lt = H[x + L - 1], at = H[x + L];
1714
+ var T, g, c = e.max_chain_length, x = e.strstart, L = e.prev_length, W = e.nice_match, A = e.strstart > e.w_size - Q ? e.strstart - (e.w_size - Q) : 0, H = e.window, V = e.w_mask, K = e.prev, et = e.strstart + q, lt = H[x + L - 1], at = H[x + L];
1715
1715
  e.prev_length >= e.good_match && (c >>= 2), W > e.lookahead && (W = e.lookahead);
1716
1716
  do
1717
1717
  if (H[(T = D) + L] === at && H[T + L - 1] === lt && H[T] === H[x] && H[++T] === H[x + 1]) {
@@ -1725,18 +1725,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1725
1725
  lt = H[x + L - 1], at = H[x + L];
1726
1726
  }
1727
1727
  }
1728
- while ((D = G[D & V]) > A && --c != 0);
1728
+ while ((D = K[D & V]) > A && --c != 0);
1729
1729
  return L <= e.lookahead ? L : e.lookahead;
1730
1730
  }
1731
1731
  function st(e) {
1732
- var D, T, g, c, x, L, W, A, H, V, G = e.w_size;
1732
+ var D, T, g, c, x, L, W, A, H, V, K = e.w_size;
1733
1733
  do {
1734
- if (c = e.window_size - e.lookahead - e.strstart, e.strstart >= G + (G - Q)) {
1735
- for (h.arraySet(e.window, e.window, G, G, 0), e.match_start -= G, e.strstart -= G, e.block_start -= G, D = T = e.hash_size; g = e.head[--D], e.head[D] = G <= g ? g - G : 0, --T; )
1734
+ if (c = e.window_size - e.lookahead - e.strstart, e.strstart >= K + (K - Q)) {
1735
+ for (h.arraySet(e.window, e.window, K, K, 0), e.match_start -= K, e.strstart -= K, e.block_start -= K, D = T = e.hash_size; g = e.head[--D], e.head[D] = K <= g ? g - K : 0, --T; )
1736
1736
  ;
1737
- for (D = T = G; g = e.prev[--D], e.prev[D] = G <= g ? g - G : 0, --T; )
1737
+ for (D = T = K; g = e.prev[--D], e.prev[D] = K <= g ? g - K : 0, --T; )
1738
1738
  ;
1739
- c += G;
1739
+ c += K;
1740
1740
  }
1741
1741
  if (e.strm.avail_in === 0)
1742
1742
  break;
@@ -1765,7 +1765,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1765
1765
  if (g && (z(e, !1), e.strm.avail_out === 0))
1766
1766
  return r;
1767
1767
  }
1768
- return e.insert = e.strstart < R - 1 ? e.strstart : R - 1, D === v ? (z(e, !0), e.strm.avail_out === 0 ? K : P) : e.last_lit && (z(e, !1), e.strm.avail_out === 0) ? r : N;
1768
+ return e.insert = e.strstart < R - 1 ? e.strstart : R - 1, D === v ? (z(e, !0), e.strm.avail_out === 0 ? G : P) : e.last_lit && (z(e, !1), e.strm.avail_out === 0) ? r : N;
1769
1769
  }
1770
1770
  function nt(e, D) {
1771
1771
  for (var T, g, c; ; ) {
@@ -1786,7 +1786,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1786
1786
  } else
1787
1787
  e.match_available = 1, e.strstart++, e.lookahead--;
1788
1788
  }
1789
- return e.match_available && (g = i._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < R - 1 ? e.strstart : R - 1, D === v ? (z(e, !0), e.strm.avail_out === 0 ? K : P) : e.last_lit && (z(e, !1), e.strm.avail_out === 0) ? r : N;
1789
+ return e.match_available && (g = i._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < R - 1 ? e.strstart : R - 1, D === v ? (z(e, !0), e.strm.avail_out === 0 ? G : P) : e.last_lit && (z(e, !1), e.strm.avail_out === 0) ? r : N;
1790
1790
  }
1791
1791
  function tt(e, D, T, g, c) {
1792
1792
  this.good_length = e, this.max_lazy = D, this.nice_length = T, this.max_chain = g, this.func = c;
@@ -1804,7 +1804,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1804
1804
  T.window_size = 2 * T.w_size, J(T.head), T.max_lazy_match = l[T.level].max_lazy, T.good_match = l[T.level].good_length, T.nice_match = l[T.level].nice_length, T.max_chain_length = l[T.level].max_chain, T.strstart = 0, T.block_start = 0, T.lookahead = 0, T.insert = 0, T.match_length = T.prev_length = R - 1, T.match_available = 0, T.ins_h = 0;
1805
1805
  }(e.state), D;
1806
1806
  }
1807
- function ht(e, D, T, g, c, x) {
1807
+ function ut(e, D, T, g, c, x) {
1808
1808
  if (!e)
1809
1809
  return m;
1810
1810
  var L = 1;
@@ -1828,10 +1828,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1828
1828
  if ((e.strstart === 0 || e.strstart >= g) && (e.lookahead = e.strstart - g, e.strstart = g, z(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - Q && (z(e, !1), e.strm.avail_out === 0))
1829
1829
  return r;
1830
1830
  }
1831
- return e.insert = 0, D === v ? (z(e, !0), e.strm.avail_out === 0 ? K : P) : (e.strstart > e.block_start && (z(e, !1), e.strm.avail_out), r);
1831
+ return e.insert = 0, D === v ? (z(e, !0), e.strm.avail_out === 0 ? G : P) : (e.strstart > e.block_start && (z(e, !1), e.strm.avail_out), r);
1832
1832
  }), new tt(4, 4, 8, 4, it), new tt(4, 5, 16, 8, it), new tt(4, 6, 32, 32, it), new tt(4, 4, 16, 16, nt), new tt(8, 16, 32, 32, nt), new tt(8, 16, 128, 128, nt), new tt(8, 32, 128, 256, nt), new tt(32, 128, 258, 1024, nt), new tt(32, 258, 258, 4096, nt)], f.deflateInit = function(e, D) {
1833
- return ht(e, D, p, 15, 8, 0);
1834
- }, f.deflateInit2 = ht, f.deflateReset = ft, f.deflateResetKeep = ot, f.deflateSetHeader = function(e, D) {
1833
+ return ut(e, D, p, 15, 8, 0);
1834
+ }, f.deflateInit2 = ut, f.deflateReset = ft, f.deflateResetKeep = ot, f.deflateSetHeader = function(e, D) {
1835
1835
  return e && e.state ? e.state.wrap !== 2 ? m : (e.state.gzhead = D, o) : m;
1836
1836
  }, f.deflate = function(e, D) {
1837
1837
  var T, g, c, x;
@@ -1897,28 +1897,28 @@ https://github.com/nodeca/pako/blob/main/LICENSE
1897
1897
  if (A.match_length = 0, V = i._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++, V && (z(A, !1), A.strm.avail_out === 0))
1898
1898
  return r;
1899
1899
  }
1900
- return A.insert = 0, H === v ? (z(A, !0), A.strm.avail_out === 0 ? K : P) : A.last_lit && (z(A, !1), A.strm.avail_out === 0) ? r : N;
1900
+ return A.insert = 0, H === v ? (z(A, !0), A.strm.avail_out === 0 ? G : P) : A.last_lit && (z(A, !1), A.strm.avail_out === 0) ? r : N;
1901
1901
  }(g, D) : g.strategy === 3 ? function(A, H) {
1902
- for (var V, G, et, lt, at = A.window; ; ) {
1902
+ for (var V, K, et, lt, at = A.window; ; ) {
1903
1903
  if (A.lookahead <= q) {
1904
1904
  if (st(A), A.lookahead <= q && H === y)
1905
1905
  return r;
1906
1906
  if (A.lookahead === 0)
1907
1907
  break;
1908
1908
  }
1909
- if (A.match_length = 0, A.lookahead >= R && 0 < A.strstart && (G = at[et = A.strstart - 1]) === at[++et] && G === at[++et] && G === at[++et]) {
1909
+ if (A.match_length = 0, A.lookahead >= R && 0 < A.strstart && (K = at[et = A.strstart - 1]) === at[++et] && K === at[++et] && K === at[++et]) {
1910
1910
  lt = A.strstart + q;
1911
1911
  do
1912
1912
  ;
1913
- while (G === at[++et] && G === at[++et] && G === at[++et] && G === at[++et] && G === at[++et] && G === at[++et] && G === at[++et] && G === at[++et] && et < lt);
1913
+ while (K === at[++et] && K === at[++et] && K === at[++et] && K === at[++et] && K === at[++et] && K === at[++et] && K === at[++et] && K === at[++et] && et < lt);
1914
1914
  A.match_length = q - (lt - et), A.match_length > A.lookahead && (A.match_length = A.lookahead);
1915
1915
  }
1916
1916
  if (A.match_length >= R ? (V = i._tr_tally(A, 1, A.match_length - R), A.lookahead -= A.match_length, A.strstart += A.match_length, A.match_length = 0) : (V = i._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++), V && (z(A, !1), A.strm.avail_out === 0))
1917
1917
  return r;
1918
1918
  }
1919
- return A.insert = 0, H === v ? (z(A, !0), A.strm.avail_out === 0 ? K : P) : A.last_lit && (z(A, !1), A.strm.avail_out === 0) ? r : N;
1919
+ return A.insert = 0, H === v ? (z(A, !0), A.strm.avail_out === 0 ? G : P) : A.last_lit && (z(A, !1), A.strm.avail_out === 0) ? r : N;
1920
1920
  }(g, D) : l[g.level].func(g, D);
1921
- if (W !== K && W !== P || (g.status = 666), W === r || W === K)
1921
+ if (W !== G && W !== P || (g.status = 666), W === r || W === G)
1922
1922
  return e.avail_out === 0 && (g.last_flush = -1), o;
1923
1923
  if (W === N && (D === 1 ? i._tr_align(g) : D !== 5 && (i._tr_stored_block(g, 0, 0, !1), D === 3 && (J(g.head), g.lookahead === 0 && (g.strstart = 0, g.block_start = 0, g.insert = 0))), O(e), e.avail_out === 0))
1924
1924
  return g.last_flush = -1, o;
@@ -2066,16 +2066,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2066
2066
  _.lencode = F, _.lenbits = 9, _.distcode = M, _.distbits = 5;
2067
2067
  }
2068
2068
  function Q(_, S, r, N) {
2069
- var K, P = _.state;
2070
- return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new l.Buf8(P.wsize)), N >= P.wsize ? (l.arraySet(P.window, S, r - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (N < (K = P.wsize - P.wnext) && (K = N), l.arraySet(P.window, S, r - N, K, P.wnext), (N -= K) ? (l.arraySet(P.window, S, r - N, N, 0), P.wnext = N, P.whave = P.wsize) : (P.wnext += K, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += K))), 0;
2069
+ var G, P = _.state;
2070
+ return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new l.Buf8(P.wsize)), N >= P.wsize ? (l.arraySet(P.window, S, r - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : (N < (G = P.wsize - P.wnext) && (G = N), l.arraySet(P.window, S, r - N, G, P.wnext), (N -= G) ? (l.arraySet(P.window, S, r - N, N, 0), P.wnext = N, P.whave = P.wsize) : (P.wnext += G, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += G))), 0;
2071
2071
  }
2072
2072
  f.inflateReset = E, f.inflateReset2 = C, f.inflateResetKeep = k, f.inflateInit = function(_) {
2073
2073
  return B(_, 15);
2074
2074
  }, f.inflateInit2 = B, f.inflate = function(_, S) {
2075
- var r, N, K, P, Y, U, J, O, z, X, Z, j, st, it, nt, tt, ct, ot, ft, ht, e, D, T, g, c = 0, x = new l.Buf8(4), L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
2075
+ var r, N, G, P, Y, U, J, O, z, X, Z, j, st, it, nt, tt, ct, ot, ft, ut, e, D, T, g, c = 0, x = new l.Buf8(4), L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
2076
2076
  if (!_ || !_.state || !_.output || !_.input && _.avail_in !== 0)
2077
2077
  return o;
2078
- (r = _.state).mode === 12 && (r.mode = 13), Y = _.next_out, K = _.output, J = _.avail_out, P = _.next_in, N = _.input, U = _.avail_in, O = r.hold, z = r.bits, X = U, Z = J, D = v;
2078
+ (r = _.state).mode === 12 && (r.mode = 13), Y = _.next_out, G = _.output, J = _.avail_out, P = _.next_in, N = _.input, U = _.avail_in, O = r.hold, z = r.bits, X = U, Z = J, D = v;
2079
2079
  t:
2080
2080
  for (; ; )
2081
2081
  switch (r.mode) {
@@ -2249,7 +2249,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2249
2249
  if (j = r.length) {
2250
2250
  if (U < j && (j = U), J < j && (j = J), j === 0)
2251
2251
  break t;
2252
- l.arraySet(K, N, P, j, Y), U -= j, P += j, J -= j, Y += j, r.length -= j;
2252
+ l.arraySet(G, N, P, j, Y), U -= j, P += j, J -= j, Y += j, r.length -= j;
2253
2253
  break;
2254
2254
  }
2255
2255
  r.mode = 12;
@@ -2345,7 +2345,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2345
2345
  r.mode = 21;
2346
2346
  case 21:
2347
2347
  if (6 <= U && 258 <= J) {
2348
- _.next_out = Y, _.avail_out = J, _.next_in = P, _.avail_in = U, r.hold = O, r.bits = z, u(_, Z), Y = _.next_out, K = _.output, J = _.avail_out, P = _.next_in, N = _.input, U = _.avail_in, O = r.hold, z = r.bits, r.mode === 12 && (r.back = -1);
2348
+ _.next_out = Y, _.avail_out = J, _.next_in = P, _.avail_in = U, r.hold = O, r.bits = z, u(_, Z), Y = _.next_out, G = _.output, J = _.avail_out, P = _.next_in, N = _.input, U = _.avail_in, O = r.hold, z = r.bits, r.mode === 12 && (r.back = -1);
2349
2349
  break;
2350
2350
  }
2351
2351
  for (r.back = 0; tt = (c = r.lencode[O & (1 << r.lenbits) - 1]) >>> 16 & 255, ct = 65535 & c, !((nt = c >>> 24) <= z); ) {
@@ -2354,7 +2354,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2354
2354
  U--, O += N[P++] << z, z += 8;
2355
2355
  }
2356
2356
  if (tt && !(240 & tt)) {
2357
- for (ot = nt, ft = tt, ht = ct; tt = (c = r.lencode[ht + ((O & (1 << ot + ft) - 1) >> ot)]) >>> 16 & 255, ct = 65535 & c, !(ot + (nt = c >>> 24) <= z); ) {
2357
+ for (ot = nt, ft = tt, ut = ct; tt = (c = r.lencode[ut + ((O & (1 << ot + ft) - 1) >> ot)]) >>> 16 & 255, ct = 65535 & c, !(ot + (nt = c >>> 24) <= z); ) {
2358
2358
  if (U === 0)
2359
2359
  break t;
2360
2360
  U--, O += N[P++] << z, z += 8;
@@ -2391,7 +2391,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2391
2391
  U--, O += N[P++] << z, z += 8;
2392
2392
  }
2393
2393
  if (!(240 & tt)) {
2394
- for (ot = nt, ft = tt, ht = ct; tt = (c = r.distcode[ht + ((O & (1 << ot + ft) - 1) >> ot)]) >>> 16 & 255, ct = 65535 & c, !(ot + (nt = c >>> 24) <= z); ) {
2394
+ for (ot = nt, ft = tt, ut = ct; tt = (c = r.distcode[ut + ((O & (1 << ot + ft) - 1) >> ot)]) >>> 16 & 255, ct = 65535 & c, !(ot + (nt = c >>> 24) <= z); ) {
2395
2395
  if (U === 0)
2396
2396
  break t;
2397
2397
  U--, O += N[P++] << z, z += 8;
@@ -2427,15 +2427,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2427
2427
  }
2428
2428
  st = j > r.wnext ? (j -= r.wnext, r.wsize - j) : r.wnext - j, j > r.length && (j = r.length), it = r.window;
2429
2429
  } else
2430
- it = K, st = Y - r.offset, j = r.length;
2431
- for (J < j && (j = J), J -= j, r.length -= j; K[Y++] = it[st++], --j; )
2430
+ it = G, st = Y - r.offset, j = r.length;
2431
+ for (J < j && (j = J), J -= j, r.length -= j; G[Y++] = it[st++], --j; )
2432
2432
  ;
2433
2433
  r.length === 0 && (r.mode = 21);
2434
2434
  break;
2435
2435
  case 26:
2436
2436
  if (J === 0)
2437
2437
  break t;
2438
- K[Y++] = r.length, J--, r.mode = 21;
2438
+ G[Y++] = r.length, J--, r.mode = 21;
2439
2439
  break;
2440
2440
  case 27:
2441
2441
  if (r.wrap) {
@@ -2444,7 +2444,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2444
2444
  break t;
2445
2445
  U--, O |= N[P++] << z, z += 8;
2446
2446
  }
2447
- if (Z -= J, _.total_out += Z, r.total += Z, Z && (_.adler = r.check = r.flags ? i(r.check, K, Z, Y - Z) : h(r.check, K, Z, Y - Z)), Z = J, (r.flags ? O : a(O)) !== r.check) {
2447
+ if (Z -= J, _.total_out += Z, r.total += Z, Z && (_.adler = r.check = r.flags ? i(r.check, G, Z, Y - Z) : h(r.check, G, Z, Y - Z)), Z = J, (r.flags ? O : a(O)) !== r.check) {
2448
2448
  _.msg = "incorrect data check", r.mode = 30;
2449
2449
  break;
2450
2450
  }
@@ -2477,7 +2477,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2477
2477
  default:
2478
2478
  return o;
2479
2479
  }
2480
- return _.next_out = Y, _.avail_out = J, _.next_in = P, _.avail_in = U, r.hold = O, r.bits = z, (r.wsize || Z !== _.avail_out && r.mode < 30 && (r.mode < 27 || S !== 4)) && Q(_, _.output, _.next_out, Z - _.avail_out) ? (r.mode = 31, -4) : (X -= _.avail_in, Z -= _.avail_out, _.total_in += X, _.total_out += Z, r.total += Z, r.wrap && Z && (_.adler = r.check = r.flags ? i(r.check, K, Z, _.next_out - Z) : h(r.check, K, Z, _.next_out - Z)), _.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === 12 ? 128 : 0) + (r.mode === 20 || r.mode === 15 ? 256 : 0), (X == 0 && Z === 0 || S === 4) && D === v && (D = -5), D);
2480
+ return _.next_out = Y, _.avail_out = J, _.next_in = P, _.avail_in = U, r.hold = O, r.bits = z, (r.wsize || Z !== _.avail_out && r.mode < 30 && (r.mode < 27 || S !== 4)) && Q(_, _.output, _.next_out, Z - _.avail_out) ? (r.mode = 31, -4) : (X -= _.avail_in, Z -= _.avail_out, _.total_in += X, _.total_out += Z, r.total += Z, r.wrap && Z && (_.adler = r.check = r.flags ? i(r.check, G, Z, _.next_out - Z) : h(r.check, G, Z, _.next_out - Z)), _.data_type = r.bits + (r.last ? 64 : 0) + (r.mode === 12 ? 128 : 0) + (r.mode === 20 || r.mode === 15 ? 256 : 0), (X == 0 && Z === 0 || S === 4) && D === v && (D = -5), D);
2481
2481
  }, f.inflateEnd = function(_) {
2482
2482
  if (!_ || !_.state)
2483
2483
  return o;
@@ -2493,18 +2493,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2493
2493
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(n, I, f) {
2494
2494
  var l = n("../utils/common"), h = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], i = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], u = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], w = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
2495
2495
  I.exports = function(b, y, v, o, m, s, d, a) {
2496
- var p, k, E, C, B, F, M, R, q, Q = a.bits, _ = 0, S = 0, r = 0, N = 0, K = 0, P = 0, Y = 0, U = 0, J = 0, O = 0, z = null, X = 0, Z = new l.Buf16(16), j = new l.Buf16(16), st = null, it = 0;
2496
+ var p, k, E, C, B, F, M, R, q, Q = a.bits, _ = 0, S = 0, r = 0, N = 0, G = 0, P = 0, Y = 0, U = 0, J = 0, O = 0, z = null, X = 0, Z = new l.Buf16(16), j = new l.Buf16(16), st = null, it = 0;
2497
2497
  for (_ = 0; _ <= 15; _++)
2498
2498
  Z[_] = 0;
2499
2499
  for (S = 0; S < o; S++)
2500
2500
  Z[y[v + S]]++;
2501
- for (K = Q, N = 15; 1 <= N && Z[N] === 0; N--)
2501
+ for (G = Q, N = 15; 1 <= N && Z[N] === 0; N--)
2502
2502
  ;
2503
- if (N < K && (K = N), N === 0)
2503
+ if (N < G && (G = N), N === 0)
2504
2504
  return m[s++] = 20971520, m[s++] = 20971520, a.bits = 1, 0;
2505
2505
  for (r = 1; r < N && Z[r] === 0; r++)
2506
2506
  ;
2507
- for (K < r && (K = r), _ = U = 1; _ <= 15; _++)
2507
+ for (G < r && (G = r), _ = U = 1; _ <= 15; _++)
2508
2508
  if (U <<= 1, (U -= Z[_]) < 0)
2509
2509
  return -1;
2510
2510
  if (0 < U && (b === 0 || N !== 1))
@@ -2513,7 +2513,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2513
2513
  j[_ + 1] = j[_] + Z[_];
2514
2514
  for (S = 0; S < o; S++)
2515
2515
  y[v + S] !== 0 && (d[j[y[v + S]]++] = S);
2516
- if (F = b === 0 ? (z = st = d, 19) : b === 1 ? (z = h, X -= 257, st = i, it -= 257, 256) : (z = u, st = w, -1), _ = r, B = s, Y = S = O = 0, E = -1, C = (J = 1 << (P = K)) - 1, b === 1 && 852 < J || b === 2 && 592 < J)
2516
+ if (F = b === 0 ? (z = st = d, 19) : b === 1 ? (z = h, X -= 257, st = i, it -= 257, 256) : (z = u, st = w, -1), _ = r, B = s, Y = S = O = 0, E = -1, C = (J = 1 << (P = G)) - 1, b === 1 && 852 < J || b === 2 && 592 < J)
2517
2517
  return 1;
2518
2518
  for (; ; ) {
2519
2519
  for (M = _ - Y, q = d[S] < F ? (R = 0, d[S]) : d[S] > F ? (R = st[it + d[S]], z[X + d[S]]) : (R = 96, 0), p = 1 << _ - Y, r = k = 1 << P; m[B + (O >> Y) + (k -= p)] = M << 24 | R << 16 | q | 0, k !== 0; )
@@ -2525,15 +2525,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2525
2525
  break;
2526
2526
  _ = y[v + d[S]];
2527
2527
  }
2528
- if (K < _ && (O & C) !== E) {
2529
- for (Y === 0 && (Y = K), B += r, U = 1 << (P = _ - Y); P + Y < N && !((U -= Z[P + Y]) <= 0); )
2528
+ if (G < _ && (O & C) !== E) {
2529
+ for (Y === 0 && (Y = G), B += r, U = 1 << (P = _ - Y); P + Y < N && !((U -= Z[P + Y]) <= 0); )
2530
2530
  P++, U <<= 1;
2531
2531
  if (J += 1 << P, b === 1 && 852 < J || b === 2 && 592 < J)
2532
2532
  return 1;
2533
- m[E = O & C] = K << 24 | P << 16 | B - s | 0;
2533
+ m[E = O & C] = G << 24 | P << 16 | B - s | 0;
2534
2534
  }
2535
2535
  }
2536
- return O !== 0 && (m[B + O] = _ - Y << 24 | 64 << 16 | 0), a.bits = K, 0;
2536
+ return O !== 0 && (m[B + O] = _ - Y << 24 | 64 << 16 | 0), a.bits = G, 0;
2537
2537
  };
2538
2538
  }, { "../utils/common": 41 }], 51: [function(n, I, f) {
2539
2539
  I.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
@@ -2553,7 +2553,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2553
2553
  u(r);
2554
2554
  var N = new Array(b);
2555
2555
  u(N);
2556
- var K, P, Y, U = new Array(o);
2556
+ var G, P, Y, U = new Array(o);
2557
2557
  function J(c, x, L, W, A) {
2558
2558
  this.static_tree = c, this.extra_bits = x, this.extra_base = L, this.elems = W, this.max_length = A, this.has_stree = c && c.length;
2559
2559
  }
@@ -2582,8 +2582,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2582
2582
  for (W = 1; W <= d; W++)
2583
2583
  H[W] = V = V + L[W - 1] << 1;
2584
2584
  for (A = 0; A <= x; A++) {
2585
- var G = c[2 * A + 1];
2586
- G !== 0 && (c[2 * A] = st(H[G]++, G));
2585
+ var K = c[2 * A + 1];
2586
+ K !== 0 && (c[2 * A] = st(H[K]++, K));
2587
2587
  }
2588
2588
  }
2589
2589
  function nt(c) {
@@ -2609,62 +2609,62 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2609
2609
  c.heap[L] = W;
2610
2610
  }
2611
2611
  function ft(c, x, L) {
2612
- var W, A, H, V, G = 0;
2612
+ var W, A, H, V, K = 0;
2613
2613
  if (c.last_lit !== 0)
2614
- for (; W = c.pending_buf[c.d_buf + 2 * G] << 8 | c.pending_buf[c.d_buf + 2 * G + 1], A = c.pending_buf[c.l_buf + G], G++, W === 0 ? j(c, A, x) : (j(c, (H = r[A]) + y + 1, x), (V = F[H]) !== 0 && Z(c, A -= N[H], V), j(c, H = z(--W), L), (V = M[H]) !== 0 && Z(c, W -= U[H], V)), G < c.last_lit; )
2614
+ for (; W = c.pending_buf[c.d_buf + 2 * K] << 8 | c.pending_buf[c.d_buf + 2 * K + 1], A = c.pending_buf[c.l_buf + K], K++, W === 0 ? j(c, A, x) : (j(c, (H = r[A]) + y + 1, x), (V = F[H]) !== 0 && Z(c, A -= N[H], V), j(c, H = z(--W), L), (V = M[H]) !== 0 && Z(c, W -= U[H], V)), K < c.last_lit; )
2615
2615
  ;
2616
2616
  j(c, k, x);
2617
2617
  }
2618
- function ht(c, x) {
2619
- var L, W, A, H = x.dyn_tree, V = x.stat_desc.static_tree, G = x.stat_desc.has_stree, et = x.stat_desc.elems, lt = -1;
2618
+ function ut(c, x) {
2619
+ var L, W, A, H = x.dyn_tree, V = x.stat_desc.static_tree, K = x.stat_desc.has_stree, et = x.stat_desc.elems, lt = -1;
2620
2620
  for (c.heap_len = 0, c.heap_max = s, L = 0; L < et; L++)
2621
2621
  H[2 * L] !== 0 ? (c.heap[++c.heap_len] = lt = L, c.depth[L] = 0) : H[2 * L + 1] = 0;
2622
2622
  for (; c.heap_len < 2; )
2623
- H[2 * (A = c.heap[++c.heap_len] = lt < 2 ? ++lt : 0)] = 1, c.depth[A] = 0, c.opt_len--, G && (c.static_len -= V[2 * A + 1]);
2623
+ H[2 * (A = c.heap[++c.heap_len] = lt < 2 ? ++lt : 0)] = 1, c.depth[A] = 0, c.opt_len--, K && (c.static_len -= V[2 * A + 1]);
2624
2624
  for (x.max_code = lt, L = c.heap_len >> 1; 1 <= L; L--)
2625
2625
  ot(c, H, L);
2626
2626
  for (A = et; L = c.heap[1], c.heap[1] = c.heap[c.heap_len--], ot(c, H, 1), W = c.heap[1], c.heap[--c.heap_max] = L, c.heap[--c.heap_max] = W, H[2 * A] = H[2 * L] + H[2 * W], c.depth[A] = (c.depth[L] >= c.depth[W] ? c.depth[L] : c.depth[W]) + 1, H[2 * L + 1] = H[2 * W + 1] = A, c.heap[1] = A++, ot(c, H, 1), 2 <= c.heap_len; )
2627
2627
  ;
2628
- c.heap[--c.heap_max] = c.heap[1], function(at, pt) {
2629
- var xt, bt, St, ut, vt, yt, _t = pt.dyn_tree, It = pt.max_code, Nt = pt.stat_desc.static_tree, Rt = pt.stat_desc.has_stree, Et = pt.stat_desc.extra_bits, Tt = pt.stat_desc.extra_base, Ot = pt.stat_desc.max_length, Pt = 0;
2630
- for (ut = 0; ut <= d; ut++)
2631
- at.bl_count[ut] = 0;
2632
- for (_t[2 * at.heap[at.heap_max] + 1] = 0, xt = at.heap_max + 1; xt < s; xt++)
2633
- Ot < (ut = _t[2 * _t[2 * (bt = at.heap[xt]) + 1] + 1] + 1) && (ut = Ot, Pt++), _t[2 * bt + 1] = ut, It < bt || (at.bl_count[ut]++, vt = 0, Tt <= bt && (vt = Et[bt - Tt]), yt = _t[2 * bt], at.opt_len += yt * (ut + vt), Rt && (at.static_len += yt * (Nt[2 * bt + 1] + vt)));
2628
+ c.heap[--c.heap_max] = c.heap[1], function(at, bt) {
2629
+ var Ct, gt, xt, ht, yt, vt, mt = bt.dyn_tree, kt = bt.max_code, Nt = bt.stat_desc.static_tree, Rt = bt.stat_desc.has_stree, At = bt.stat_desc.extra_bits, Tt = bt.stat_desc.extra_base, Ot = bt.stat_desc.max_length, Pt = 0;
2630
+ for (ht = 0; ht <= d; ht++)
2631
+ at.bl_count[ht] = 0;
2632
+ for (mt[2 * at.heap[at.heap_max] + 1] = 0, Ct = at.heap_max + 1; Ct < s; Ct++)
2633
+ Ot < (ht = mt[2 * mt[2 * (gt = at.heap[Ct]) + 1] + 1] + 1) && (ht = Ot, Pt++), mt[2 * gt + 1] = ht, kt < gt || (at.bl_count[ht]++, yt = 0, Tt <= gt && (yt = At[gt - Tt]), vt = mt[2 * gt], at.opt_len += vt * (ht + yt), Rt && (at.static_len += vt * (Nt[2 * gt + 1] + yt)));
2634
2634
  if (Pt !== 0) {
2635
2635
  do {
2636
- for (ut = Ot - 1; at.bl_count[ut] === 0; )
2637
- ut--;
2638
- at.bl_count[ut]--, at.bl_count[ut + 1] += 2, at.bl_count[Ot]--, Pt -= 2;
2636
+ for (ht = Ot - 1; at.bl_count[ht] === 0; )
2637
+ ht--;
2638
+ at.bl_count[ht]--, at.bl_count[ht + 1] += 2, at.bl_count[Ot]--, Pt -= 2;
2639
2639
  } while (0 < Pt);
2640
- for (ut = Ot; ut !== 0; ut--)
2641
- for (bt = at.bl_count[ut]; bt !== 0; )
2642
- It < (St = at.heap[--xt]) || (_t[2 * St + 1] !== ut && (at.opt_len += (ut - _t[2 * St + 1]) * _t[2 * St], _t[2 * St + 1] = ut), bt--);
2640
+ for (ht = Ot; ht !== 0; ht--)
2641
+ for (gt = at.bl_count[ht]; gt !== 0; )
2642
+ kt < (xt = at.heap[--Ct]) || (mt[2 * xt + 1] !== ht && (at.opt_len += (ht - mt[2 * xt + 1]) * mt[2 * xt], mt[2 * xt + 1] = ht), gt--);
2643
2643
  }
2644
2644
  }(c, x), it(H, lt, c.bl_count);
2645
2645
  }
2646
2646
  function e(c, x, L) {
2647
- var W, A, H = -1, V = x[1], G = 0, et = 7, lt = 4;
2647
+ var W, A, H = -1, V = x[1], K = 0, et = 7, lt = 4;
2648
2648
  for (V === 0 && (et = 138, lt = 3), x[2 * (L + 1) + 1] = 65535, W = 0; W <= L; W++)
2649
- A = V, V = x[2 * (W + 1) + 1], ++G < et && A === V || (G < lt ? c.bl_tree[2 * A] += G : A !== 0 ? (A !== H && c.bl_tree[2 * A]++, c.bl_tree[2 * E]++) : G <= 10 ? c.bl_tree[2 * C]++ : c.bl_tree[2 * B]++, H = A, lt = (G = 0) === V ? (et = 138, 3) : A === V ? (et = 6, 3) : (et = 7, 4));
2649
+ A = V, V = x[2 * (W + 1) + 1], ++K < et && A === V || (K < lt ? c.bl_tree[2 * A] += K : A !== 0 ? (A !== H && c.bl_tree[2 * A]++, c.bl_tree[2 * E]++) : K <= 10 ? c.bl_tree[2 * C]++ : c.bl_tree[2 * B]++, H = A, lt = (K = 0) === V ? (et = 138, 3) : A === V ? (et = 6, 3) : (et = 7, 4));
2650
2650
  }
2651
2651
  function D(c, x, L) {
2652
- var W, A, H = -1, V = x[1], G = 0, et = 7, lt = 4;
2652
+ var W, A, H = -1, V = x[1], K = 0, et = 7, lt = 4;
2653
2653
  for (V === 0 && (et = 138, lt = 3), W = 0; W <= L; W++)
2654
- if (A = V, V = x[2 * (W + 1) + 1], !(++G < et && A === V)) {
2655
- if (G < lt)
2656
- for (; j(c, A, c.bl_tree), --G != 0; )
2654
+ if (A = V, V = x[2 * (W + 1) + 1], !(++K < et && A === V)) {
2655
+ if (K < lt)
2656
+ for (; j(c, A, c.bl_tree), --K != 0; )
2657
2657
  ;
2658
2658
  else
2659
- A !== 0 ? (A !== H && (j(c, A, c.bl_tree), G--), j(c, E, c.bl_tree), Z(c, G - 3, 2)) : G <= 10 ? (j(c, C, c.bl_tree), Z(c, G - 3, 3)) : (j(c, B, c.bl_tree), Z(c, G - 11, 7));
2660
- H = A, lt = (G = 0) === V ? (et = 138, 3) : A === V ? (et = 6, 3) : (et = 7, 4);
2659
+ A !== 0 ? (A !== H && (j(c, A, c.bl_tree), K--), j(c, E, c.bl_tree), Z(c, K - 3, 2)) : K <= 10 ? (j(c, C, c.bl_tree), Z(c, K - 3, 3)) : (j(c, B, c.bl_tree), Z(c, K - 11, 7));
2660
+ H = A, lt = (K = 0) === V ? (et = 138, 3) : A === V ? (et = 6, 3) : (et = 7, 4);
2661
2661
  }
2662
2662
  }
2663
2663
  u(U);
2664
2664
  var T = !1;
2665
2665
  function g(c, x, L, W) {
2666
- Z(c, (w << 1) + (W ? 1 : 0), 3), function(A, H, V, G) {
2667
- tt(A), G && (X(A, V), X(A, ~V)), l.arraySet(A.pending_buf, A.window, H, V, A.pending), A.pending += V;
2666
+ Z(c, (w << 1) + (W ? 1 : 0), 3), function(A, H, V, K) {
2667
+ tt(A), K && (X(A, V), X(A, ~V)), l.arraySet(A.pending_buf, A.window, H, V, A.pending), A.pending += V;
2668
2668
  }(c, x, L, !0);
2669
2669
  }
2670
2670
  f._tr_init = function(c) {
@@ -2691,31 +2691,31 @@ https://github.com/nodeca/pako/blob/main/LICENSE
2691
2691
  Q[2 * x + 1] = 8, x++, V[8]++;
2692
2692
  for (it(Q, v + 1, V), x = 0; x < o; x++)
2693
2693
  _[2 * x + 1] = 5, _[2 * x] = st(x, 5);
2694
- K = new J(Q, F, y + 1, v, d), P = new J(_, M, 0, o, d), Y = new J(new Array(0), R, 0, m, p);
2695
- }(), T = !0), c.l_desc = new O(c.dyn_ltree, K), c.d_desc = new O(c.dyn_dtree, P), c.bl_desc = new O(c.bl_tree, Y), c.bi_buf = 0, c.bi_valid = 0, nt(c);
2694
+ G = new J(Q, F, y + 1, v, d), P = new J(_, M, 0, o, d), Y = new J(new Array(0), R, 0, m, p);
2695
+ }(), T = !0), c.l_desc = new O(c.dyn_ltree, G), c.d_desc = new O(c.dyn_dtree, P), c.bl_desc = new O(c.bl_tree, Y), c.bi_buf = 0, c.bi_valid = 0, nt(c);
2696
2696
  }, f._tr_stored_block = g, f._tr_flush_block = function(c, x, L, W) {
2697
2697
  var A, H, V = 0;
2698
- 0 < c.level ? (c.strm.data_type === 2 && (c.strm.data_type = function(G) {
2698
+ 0 < c.level ? (c.strm.data_type === 2 && (c.strm.data_type = function(K) {
2699
2699
  var et, lt = 4093624447;
2700
2700
  for (et = 0; et <= 31; et++, lt >>>= 1)
2701
- if (1 & lt && G.dyn_ltree[2 * et] !== 0)
2701
+ if (1 & lt && K.dyn_ltree[2 * et] !== 0)
2702
2702
  return h;
2703
- if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0)
2703
+ if (K.dyn_ltree[18] !== 0 || K.dyn_ltree[20] !== 0 || K.dyn_ltree[26] !== 0)
2704
2704
  return i;
2705
2705
  for (et = 32; et < y; et++)
2706
- if (G.dyn_ltree[2 * et] !== 0)
2706
+ if (K.dyn_ltree[2 * et] !== 0)
2707
2707
  return i;
2708
2708
  return h;
2709
- }(c)), ht(c, c.l_desc), ht(c, c.d_desc), V = function(G) {
2709
+ }(c)), ut(c, c.l_desc), ut(c, c.d_desc), V = function(K) {
2710
2710
  var et;
2711
- for (e(G, G.dyn_ltree, G.l_desc.max_code), e(G, G.dyn_dtree, G.d_desc.max_code), ht(G, G.bl_desc), et = m - 1; 3 <= et && G.bl_tree[2 * q[et] + 1] === 0; et--)
2711
+ for (e(K, K.dyn_ltree, K.l_desc.max_code), e(K, K.dyn_dtree, K.d_desc.max_code), ut(K, K.bl_desc), et = m - 1; 3 <= et && K.bl_tree[2 * q[et] + 1] === 0; et--)
2712
2712
  ;
2713
- return G.opt_len += 3 * (et + 1) + 5 + 5 + 4, et;
2714
- }(c), A = c.opt_len + 3 + 7 >>> 3, (H = c.static_len + 3 + 7 >>> 3) <= A && (A = H)) : A = H = L + 5, L + 4 <= A && x !== -1 ? g(c, x, L, W) : c.strategy === 4 || H === A ? (Z(c, 2 + (W ? 1 : 0), 3), ft(c, Q, _)) : (Z(c, 4 + (W ? 1 : 0), 3), function(G, et, lt, at) {
2715
- var pt;
2716
- for (Z(G, et - 257, 5), Z(G, lt - 1, 5), Z(G, at - 4, 4), pt = 0; pt < at; pt++)
2717
- Z(G, G.bl_tree[2 * q[pt] + 1], 3);
2718
- D(G, G.dyn_ltree, et - 1), D(G, G.dyn_dtree, lt - 1);
2713
+ return K.opt_len += 3 * (et + 1) + 5 + 5 + 4, et;
2714
+ }(c), A = c.opt_len + 3 + 7 >>> 3, (H = c.static_len + 3 + 7 >>> 3) <= A && (A = H)) : A = H = L + 5, L + 4 <= A && x !== -1 ? g(c, x, L, W) : c.strategy === 4 || H === A ? (Z(c, 2 + (W ? 1 : 0), 3), ft(c, Q, _)) : (Z(c, 4 + (W ? 1 : 0), 3), function(K, et, lt, at) {
2715
+ var bt;
2716
+ for (Z(K, et - 257, 5), Z(K, lt - 1, 5), Z(K, at - 4, 4), bt = 0; bt < at; bt++)
2717
+ Z(K, K.bl_tree[2 * q[bt] + 1], 3);
2718
+ D(K, K.dyn_ltree, et - 1), D(K, K.dyn_dtree, lt - 1);
2719
2719
  }(c, c.l_desc.max_code + 1, c.d_desc.max_code + 1, V + 1), ft(c, c.dyn_ltree, c.dyn_dtree)), nt(c), W && tt(c);
2720
2720
  }, f._tr_tally = function(c, x, L) {
2721
2721
  return c.pending_buf[c.d_buf + 2 * c.last_lit] = x >>> 8 & 255, c.pending_buf[c.d_buf + 2 * c.last_lit + 1] = 255 & x, c.pending_buf[c.l_buf + c.last_lit] = 255 & L, c.last_lit++, x === 0 ? c.dyn_ltree[2 * L]++ : (c.matches++, x--, c.dyn_ltree[2 * (r[L] + y + 1)]++, c.dyn_dtree[2 * z(x)]++), c.last_lit === c.lit_bufsize - 1;
@@ -2822,7 +2822,7 @@ function Kt($, t) {
2822
2822
  function ge() {
2823
2823
  const [$, t] = wt(""), [n, I] = wt(!0), [f, l] = wt(""), [h, i] = wt([]), [u, w] = wt(null);
2824
2824
  let b = "", y = "";
2825
- const v = At(null), o = At(null), m = {}, s = re(async (_) => {
2825
+ const v = zt(null), o = zt(null), m = {}, s = re(async (_) => {
2826
2826
  I(!0), t(""), i([]), l("Loading..."), w(null), o.current && (document.head.removeChild(o.current), URL.revokeObjectURL(o.current.href), o.current = null);
2827
2827
  try {
2828
2828
  let S;
@@ -2846,7 +2846,7 @@ function ge() {
2846
2846
  const _ = v.current.file("META-INF/container.xml");
2847
2847
  if (!_)
2848
2848
  throw new Error("META-INF/container.xml not found.");
2849
- const S = await _.async("text"), r = new DOMParser(), K = r.parseFromString(S, "application/xml").querySelector('rootfile[media-type="application/oebps-package+xml"]'), P = K == null ? void 0 : K.getAttribute("full-path");
2849
+ const S = await _.async("text"), r = new DOMParser(), G = r.parseFromString(S, "application/xml").querySelector('rootfile[media-type="application/oebps-package+xml"]'), P = G == null ? void 0 : G.getAttribute("full-path");
2850
2850
  if (!P)
2851
2851
  throw new Error("OPF file path not found.");
2852
2852
  b = P.substring(0, P.lastIndexOf("/") + 1);
@@ -2878,7 +2878,7 @@ function ge() {
2878
2878
  }
2879
2879
  }), await k(_, S, r);
2880
2880
  const N = Array.from(_.querySelectorAll("spine > itemref")).map((Y) => Y.getAttribute("idref"));
2881
- let K = "";
2881
+ let G = "";
2882
2882
  const P = /* @__PURE__ */ new Set();
2883
2883
  for (const Y of N) {
2884
2884
  if (!Y)
@@ -2889,7 +2889,7 @@ function ge() {
2889
2889
  const J = b + U.href, O = v.current.file(J);
2890
2890
  if (O) {
2891
2891
  const z = await O.async("text"), X = await C(z, U.type, Y, U.href, r);
2892
- K += `<div class="bok-chapter" id="${Y}">${X}</div>`;
2892
+ G += `<div class="bok-chapter" id="${Y}">${X}</div>`;
2893
2893
  }
2894
2894
  } catch (J) {
2895
2895
  console.warn(`Failed to process spine item ${U.href}:`, J);
@@ -2909,47 +2909,47 @@ function ge() {
2909
2909
  }
2910
2910
  }
2911
2911
  }
2912
- Q(), t(K), I(!1);
2912
+ Q(), t(G), I(!1);
2913
2913
  }
2914
2914
  async function k(_, S, r) {
2915
- let N = null, K = null;
2915
+ let N = null, G = null;
2916
2916
  const P = Object.keys(S).find((Z) => {
2917
2917
  var j;
2918
2918
  return S[Z].properties && ((j = S[Z].properties) == null ? void 0 : j.includes("nav"));
2919
2919
  });
2920
2920
  if (P)
2921
- K = S[P];
2921
+ G = S[P];
2922
2922
  else {
2923
2923
  const Z = _.querySelector("spine");
2924
- N = Z == null ? void 0 : Z.getAttribute("toc"), N && S[N] && (K = S[N]);
2924
+ N = Z == null ? void 0 : Z.getAttribute("toc"), N && S[N] && (G = S[N]);
2925
2925
  }
2926
- if (!K || !v.current) {
2926
+ if (!G || !v.current) {
2927
2927
  console.log("No TOC found.");
2928
2928
  return;
2929
2929
  }
2930
- const Y = b + K.href, U = v.current.file(Y);
2930
+ const Y = b + G.href, U = v.current.file(Y);
2931
2931
  if (!U)
2932
2932
  return;
2933
2933
  const J = await U.async("text"), z = new DOMParser().parseFromString(J, "application/xml");
2934
2934
  let X = [];
2935
- if (K.type.includes("ncx")) {
2935
+ if (G.type.includes("ncx")) {
2936
2936
  const Z = Array.from(z.querySelectorAll("navMap > navPoint")), j = (st) => st.map((it) => {
2937
2937
  var ot, ft;
2938
- const nt = ((ot = it.querySelector("navLabel > text")) == null ? void 0 : ot.textContent) || "Unnamed", tt = ((ft = it.querySelector("content")) == null ? void 0 : ft.getAttribute("src")) || "", ct = Array.from(it.children).filter((ht) => ht.tagName.toLowerCase() === "navpoint");
2938
+ const nt = ((ot = it.querySelector("navLabel > text")) == null ? void 0 : ot.textContent) || "Unnamed", tt = ((ft = it.querySelector("content")) == null ? void 0 : ft.getAttribute("src")) || "", ct = Array.from(it.children).filter((ut) => ut.tagName.toLowerCase() === "navpoint");
2939
2939
  return {
2940
2940
  label: nt,
2941
- href: E(tt, K.href, r),
2941
+ href: E(tt, G.href, r),
2942
2942
  subitems: j(ct)
2943
2943
  };
2944
2944
  });
2945
2945
  X = j(Z);
2946
2946
  } else {
2947
2947
  const Z = z.querySelector("nav[epub\\:type='toc']") || z.querySelector("nav"), j = Z == null ? void 0 : Z.querySelector("ol"), st = (it) => it ? Array.from(it.children).filter((nt) => nt.tagName.toLowerCase() === "li").map((nt) => {
2948
- var ht;
2949
- const tt = nt.querySelector(":scope > a") || nt.querySelector(":scope > span"), ct = ((ht = tt == null ? void 0 : tt.textContent) == null ? void 0 : ht.trim()) || "Unnamed", ot = (tt == null ? void 0 : tt.getAttribute("href")) || "", ft = nt.querySelector(":scope > ol");
2948
+ var ut;
2949
+ const tt = nt.querySelector(":scope > a") || nt.querySelector(":scope > span"), ct = ((ut = tt == null ? void 0 : tt.textContent) == null ? void 0 : ut.trim()) || "Unnamed", ot = (tt == null ? void 0 : tt.getAttribute("href")) || "", ft = nt.querySelector(":scope > ol");
2950
2950
  return {
2951
2951
  label: ct,
2952
- href: E(ot, K.href, r),
2952
+ href: E(ot, G.href, r),
2953
2953
  subitems: st(ft)
2954
2954
  };
2955
2955
  }) : [];
@@ -2960,17 +2960,17 @@ function ge() {
2960
2960
  function E(_, S, r) {
2961
2961
  if (!_)
2962
2962
  return "";
2963
- const [N, K] = _.split("#"), P = Kt(S, N), Y = r[P];
2964
- return Y ? K ? `#${Y}_${K}` : `#${Y}` : "";
2963
+ const [N, G] = _.split("#"), P = Kt(S, N), Y = r[P];
2964
+ return Y ? G ? `#${Y}_${G}` : `#${Y}` : "";
2965
2965
  }
2966
- async function C(_, S, r, N, K) {
2966
+ async function C(_, S, r, N, G) {
2967
2967
  let P = [..._.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)].map((U) => U[1]).join(`
2968
2968
  `);
2969
2969
  P = q(P), y += P;
2970
2970
  let Y = _.replace(/<style[^>]*>[\s\S]*?<\/style>/gi, "");
2971
- return Y = Y.replace(/<link[^>]*?>/gi, ""), Y = Y.replace(/<title[^>]*>[\s\S]*?<\/title>/gi, ""), Y = await B(Y, S, r, N, K), Y;
2971
+ return Y = Y.replace(/<link[^>]*?>/gi, ""), Y = Y.replace(/<title[^>]*>[\s\S]*?<\/title>/gi, ""), Y = await B(Y, S, r, N, G), Y;
2972
2972
  }
2973
- async function B(_, S, r, N, K) {
2973
+ async function B(_, S, r, N, G) {
2974
2974
  const Y = new DOMParser().parseFromString(_, S);
2975
2975
  if (Y.querySelector("parsererror"))
2976
2976
  return console.warn("Parser error in manipulateDom"), _;
@@ -2987,7 +2987,7 @@ function ge() {
2987
2987
  const st = j.substring(1);
2988
2988
  Z.setAttribute("href", `#${r}_${st}`);
2989
2989
  } else {
2990
- const [st, it] = j.split("#"), nt = Kt(N, st), tt = K[nt];
2990
+ const [st, it] = j.split("#"), nt = Kt(N, st), tt = G[nt];
2991
2991
  tt && (it ? Z.setAttribute("href", `#${tt}_${it}`) : Z.setAttribute("href", `#${tt}`));
2992
2992
  }
2993
2993
  }
@@ -3018,10 +3018,10 @@ function ge() {
3018
3018
  async function R(_, S, r) {
3019
3019
  var N;
3020
3020
  if (m[r] === void 0) {
3021
- const K = (N = v.current) == null ? void 0 : N.file(r);
3022
- if (K)
3021
+ const G = (N = v.current) == null ? void 0 : N.file(r);
3022
+ if (G)
3023
3023
  try {
3024
- const P = await K.async("blob");
3024
+ const P = await G.async("blob");
3025
3025
  m[r] = URL.createObjectURL(P);
3026
3026
  } catch {
3027
3027
  m[r] = "";
@@ -3036,7 +3036,7 @@ function ge() {
3036
3036
  let r = _.replace(/\/\*[\s\S]*?\*\//g, "");
3037
3037
  r = r.replace(/(^|[^.#\w-])(html|body)(?![\w-])/gi, "butt-sex-masterr");
3038
3038
  for (const N of S) {
3039
- const K = N.replace(/[.*+?^${}()|[\]\\-]/g, "\\$&"), P = new RegExp(`${K}(?:-[\\w-]+)?\\s*:[^;{}]*;?`, "gi");
3039
+ const G = N.replace(/[.*+?^${}()|[\]\\-]/g, "\\$&"), P = new RegExp(`${G}(?:-[\\w-]+)?\\s*:[^;{}]*;?`, "gi");
3040
3040
  r = r.replace(P, "");
3041
3041
  }
3042
3042
  return r = r.replace(/[^{}@]+\{\s*\}/g, ""), r = r.replace(/@media[^{]*\{\s*\}/g, ""), r = r.replace(/\n\s*\n/g, `
@@ -3071,7 +3071,7 @@ function Bt($, t) {
3071
3071
  return console.warn(`Error reading localStorage key "${$}":`, f), t;
3072
3072
  }
3073
3073
  });
3074
- return gt(() => {
3074
+ return _t(() => {
3075
3075
  try {
3076
3076
  n !== void 0 && localStorage.setItem($, JSON.stringify(n));
3077
3077
  } catch (f) {
@@ -3080,7 +3080,7 @@ function Bt($, t) {
3080
3080
  }, [$, n]), [n, I];
3081
3081
  }
3082
3082
  function ee($) {
3083
- const t = zt.c(8);
3083
+ const t = It.c(8);
3084
3084
  let n;
3085
3085
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = {
3086
3086
  width: 0,
@@ -3115,12 +3115,12 @@ function ee($) {
3115
3115
  b.unobserve(u);
3116
3116
  };
3117
3117
  }
3118
- }, h = [$], t[1] = $, t[2] = l, t[3] = h) : (l = t[2], h = t[3]), gt(l, h);
3118
+ }, h = [$], t[1] = $, t[2] = l, t[3] = h) : (l = t[2], h = t[3]), _t(l, h);
3119
3119
  let i;
3120
3120
  return t[4] !== I.height || t[5] !== I.noOfPages || t[6] !== I.width ? (i = [I.width, I.height, I.noOfPages], t[4] = I.height, t[5] = I.noOfPages, t[6] = I.width, t[7] = i) : i = t[7], i;
3121
3121
  }
3122
3122
  function be($) {
3123
- const t = zt.c(8), [n, I] = wt(0);
3123
+ const t = It.c(8), [n, I] = wt(0);
3124
3124
  let f;
3125
3125
  t[0] !== $ ? (f = () => {
3126
3126
  if ($.current) {
@@ -3143,12 +3143,12 @@ function be($) {
3143
3143
  return w.addEventListener("scroll", y), l(), () => {
3144
3144
  b && clearTimeout(b), w.removeEventListener("scroll", y);
3145
3145
  };
3146
- }, i = [l, $], t[2] = $, t[3] = l, t[4] = h, t[5] = i) : (h = t[4], i = t[5]), gt(h, i);
3146
+ }, i = [l, $], t[2] = $, t[3] = l, t[4] = h, t[5] = i) : (h = t[4], i = t[5]), _t(h, i);
3147
3147
  let u;
3148
3148
  return t[6] !== n ? (u = [n, I], t[6] = n, t[7] = u) : u = t[7], u;
3149
3149
  }
3150
3150
  const ve = ($, t, n, I) => {
3151
- const f = zt.c(21), [l, h] = ee(n), i = At(null), u = At("");
3151
+ const f = It.c(21), [l, h] = ee(n), i = zt(null), u = zt("");
3152
3152
  let w;
3153
3153
  f[0] !== $ || f[1] !== t || f[2] !== h || f[3] !== l || f[4] !== I ? (w = (a, p) => {
3154
3154
  !t && !I && (a / l <= 0.4 && p / h < 0.8 && $(-1), a / l > 0.4 && p / h < 0.8 && $(1));
@@ -3164,7 +3164,7 @@ const ve = ($, t, n, I) => {
3164
3164
  return document.addEventListener("selectionchange", a), () => {
3165
3165
  document.removeEventListener("selectionchange", a);
3166
3166
  };
3167
- }, v = [], f[6] = y, f[7] = v) : (y = f[6], v = f[7]), gt(y, v);
3167
+ }, v = [], f[6] = y, f[7] = v) : (y = f[6], v = f[7]), _t(y, v);
3168
3168
  let o;
3169
3169
  f[8] !== b ? (o = () => {
3170
3170
  const a = () => {
@@ -3186,7 +3186,7 @@ const ve = ($, t, n, I) => {
3186
3186
  };
3187
3187
  }, f[8] = b, f[9] = o) : o = f[9];
3188
3188
  let m;
3189
- f[10] !== b || f[11] !== l ? (m = [l, b], f[10] = b, f[11] = l, f[12] = m) : m = f[12], gt(o, m);
3189
+ f[10] !== b || f[11] !== l ? (m = [l, b], f[10] = b, f[11] = l, f[12] = m) : m = f[12], _t(o, m);
3190
3190
  let s;
3191
3191
  f[13] !== n || f[14] !== b ? (s = () => {
3192
3192
  const a = n.current, p = () => {
@@ -3199,17 +3199,17 @@ const ve = ($, t, n, I) => {
3199
3199
  };
3200
3200
  }, f[13] = n, f[14] = b, f[15] = s) : s = f[15];
3201
3201
  let d;
3202
- f[16] !== n || f[17] !== b || f[18] !== t || f[19] !== l ? (d = [l, t, b, n], f[16] = n, f[17] = b, f[18] = t, f[19] = l, f[20] = d) : d = f[20], gt(s, d);
3202
+ f[16] !== n || f[17] !== b || f[18] !== t || f[19] !== l ? (d = [l, t, b, n], f[16] = n, f[17] = b, f[18] = t, f[19] = l, f[20] = d) : d = f[20], _t(s, d);
3203
3203
  };
3204
3204
  function ye() {
3205
3205
  }
3206
3206
  function we($) {
3207
- const t = zt.c(3), {
3207
+ const t = It.c(3), {
3208
3208
  currentPage: n,
3209
3209
  pages: I
3210
3210
  } = $, f = n + 1;
3211
3211
  let l;
3212
- return t[0] !== I || t[1] !== f ? (l = /* @__PURE__ */ mt("div", { className: "page-number", children: [
3212
+ return t[0] !== I || t[1] !== f ? (l = /* @__PURE__ */ pt("div", { className: "page-number", children: [
3213
3213
  f,
3214
3214
  "/",
3215
3215
  I
@@ -3224,7 +3224,7 @@ function Zt($) {
3224
3224
  throw Error;
3225
3225
  }
3226
3226
  const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe = $t(($, t) => {
3227
- const n = zt.c(62), {
3227
+ const n = It.c(62), {
3228
3228
  content: I,
3229
3229
  title: f,
3230
3230
  setIsLoading: l,
@@ -3236,35 +3236,35 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3236
3236
  showTutorial: y,
3237
3237
  onPageChange: v,
3238
3238
  onPageCountChange: o
3239
- } = $, m = At(null), [s, d, a] = ee(b), [p, k] = be(m), [E, C] = wt(1), [B, F] = wt(0), [M, R] = Bt(`bok_progress_${f}`, 0), q = At(p), Q = At(null);
3239
+ } = $, m = zt(null), [s, d, a] = ee(b), [p, k] = be(m), [E, C] = wt(1), [B, F] = wt(0), [M, R] = Bt(`bok_progress_${f}`, 0), q = zt(p), Q = zt(null);
3240
3240
  let _, S;
3241
3241
  n[0] !== o || n[1] !== B ? (_ = () => {
3242
3242
  o && o(B);
3243
- }, S = [B, o], n[0] = o, n[1] = B, n[2] = _, n[3] = S) : (_ = n[2], S = n[3]), gt(_, S);
3243
+ }, S = [B, o], n[0] = o, n[1] = B, n[2] = _, n[3] = S) : (_ = n[2], S = n[3]), _t(_, S);
3244
3244
  let r, N;
3245
3245
  n[4] !== E || n[5] !== v ? (r = () => {
3246
3246
  v && v(E);
3247
- }, N = [E, v], n[4] = E, n[5] = v, n[6] = r, n[7] = N) : (r = n[6], N = n[7]), gt(r, N);
3248
- let K, P;
3249
- n[8] !== p ? (K = () => {
3247
+ }, N = [E, v], n[4] = E, n[5] = v, n[6] = r, n[7] = N) : (r = n[6], N = n[7]), _t(r, N);
3248
+ let G, P;
3249
+ n[8] !== p ? (G = () => {
3250
3250
  q.current = p;
3251
- }, P = [p], n[8] = p, n[9] = K, n[10] = P) : (K = n[9], P = n[10]), gt(K, P);
3251
+ }, P = [p], n[8] = p, n[9] = G, n[10] = P) : (G = n[9], P = n[10]), _t(G, P);
3252
3252
  let Y, U;
3253
3253
  n[11] !== p || n[12] !== R ? (Y = () => {
3254
3254
  p > 0 && R(p);
3255
- }, U = [p, R], n[11] = p, n[12] = R, n[13] = Y, n[14] = U) : (Y = n[13], U = n[14]), gt(Y, U);
3255
+ }, U = [p, R], n[11] = p, n[12] = R, n[13] = Y, n[14] = U) : (Y = n[13], U = n[14]), _t(Y, U);
3256
3256
  let J, O;
3257
3257
  n[15] !== M || n[16] !== k ? (O = () => {
3258
3258
  M > 0 && k(M);
3259
- }, J = [M, k], n[15] = M, n[16] = k, n[17] = J, n[18] = O) : (J = n[17], O = n[18]), gt(O, J);
3259
+ }, J = [M, k], n[15] = M, n[16] = k, n[17] = J, n[18] = O) : (J = n[17], O = n[18]), _t(O, J);
3260
3260
  let z;
3261
3261
  n[19] !== a || n[20] !== s ? (z = (c) => {
3262
3262
  const x = m.current;
3263
3263
  if (!x)
3264
3264
  return;
3265
3265
  Q.current && cancelAnimationFrame(Q.current);
3266
- const L = x.scrollLeft, W = c * s * a, A = W - L, H = performance.now(), V = (G) => {
3267
- const et = G - H;
3266
+ const L = x.scrollLeft, W = c * s * a, A = W - L, H = performance.now(), V = (K) => {
3267
+ const et = K - H;
3268
3268
  if (et < 450) {
3269
3269
  const lt = ke(et / 450);
3270
3270
  x.scrollLeft = L + A * lt, Q.current = requestAnimationFrame(V);
@@ -3312,7 +3312,7 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3312
3312
  const A = L.target.closest("a");
3313
3313
  if (A && ((H = A.getAttribute("href")) != null && H.startsWith("#"))) {
3314
3314
  L.preventDefault();
3315
- const V = A.getAttribute("href"), G = decodeURIComponent(V.substring(1)), et = document.getElementById(G);
3315
+ const V = A.getAttribute("href"), K = decodeURIComponent(V.substring(1)), et = document.getElementById(K);
3316
3316
  if (et)
3317
3317
  try {
3318
3318
  const lt = Zt(et);
@@ -3323,7 +3323,7 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3323
3323
  }
3324
3324
  };
3325
3325
  return c.addEventListener("click", x), () => c.removeEventListener("click", x);
3326
- }, ct = [j], n[30] = j, n[31] = tt, n[32] = ct) : (tt = n[31], ct = n[32]), gt(tt, ct);
3326
+ }, ct = [j], n[30] = j, n[31] = tt, n[32] = ct) : (tt = n[31], ct = n[32]), _t(tt, ct);
3327
3327
  let ot;
3328
3328
  n[33] !== u || n[34] !== h || n[35] !== a || n[36] !== d || n[37] !== s || n[38] !== l || n[39] !== i ? (ot = () => {
3329
3329
  const c = m.current;
@@ -3349,14 +3349,14 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3349
3349
  };
3350
3350
  }, n[33] = u, n[34] = h, n[35] = a, n[36] = d, n[37] = s, n[38] = l, n[39] = i, n[40] = ot) : ot = n[40];
3351
3351
  let ft;
3352
- n[41] !== I || n[42] !== u || n[43] !== h || n[44] !== a || n[45] !== d || n[46] !== s || n[47] !== l || n[48] !== i || n[49] !== f ? (ft = [s, d, i, h, u, a, I, f, l], n[41] = I, n[42] = u, n[43] = h, n[44] = a, n[45] = d, n[46] = s, n[47] = l, n[48] = i, n[49] = f, n[50] = ft) : ft = n[50], gt(ot, ft);
3353
- let ht, e;
3354
- n[51] !== it ? (ht = () => {
3352
+ n[41] !== I || n[42] !== u || n[43] !== h || n[44] !== a || n[45] !== d || n[46] !== s || n[47] !== l || n[48] !== i || n[49] !== f ? (ft = [s, d, i, h, u, a, I, f, l], n[41] = I, n[42] = u, n[43] = h, n[44] = a, n[45] = d, n[46] = s, n[47] = l, n[48] = i, n[49] = f, n[50] = ft) : ft = n[50], _t(ot, ft);
3353
+ let ut, e;
3354
+ n[51] !== it ? (ut = () => {
3355
3355
  const c = (x) => {
3356
3356
  x.key === "ArrowLeft" ? (x.preventDefault(), it(-1)) : x.key === "ArrowRight" && (x.preventDefault(), it(1));
3357
3357
  };
3358
3358
  return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
3359
- }, e = [it], n[51] = it, n[52] = ht, n[53] = e) : (ht = n[52], e = n[53]), gt(ht, e);
3359
+ }, e = [it], n[51] = it, n[52] = ut, n[53] = e) : (ut = n[52], e = n[53]), _t(ut, e);
3360
3360
  let D;
3361
3361
  n[54] !== I ? (D = /* @__PURE__ */ rt("div", { ref: m, dangerouslySetInnerHTML: {
3362
3362
  __html: I
@@ -3364,7 +3364,7 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3364
3364
  let T;
3365
3365
  n[56] !== E || n[57] !== B ? (T = /* @__PURE__ */ rt(we, { pages: B, currentPage: E }), n[56] = E, n[57] = B, n[58] = T) : T = n[58];
3366
3366
  let g;
3367
- return n[59] !== D || n[60] !== T ? (g = /* @__PURE__ */ mt(qt, { children: [
3367
+ return n[59] !== D || n[60] !== T ? (g = /* @__PURE__ */ pt(qt, { children: [
3368
3368
  D,
3369
3369
  T
3370
3370
  ] }), n[59] = D, n[60] = T, n[61] = g) : g = n[61], g;
@@ -3378,7 +3378,7 @@ const ke = ($) => 1 + 2.1 * Math.pow($ - 1, 3) + 1.1 * Math.pow($ - 1, 2), xe =
3378
3378
  pulse: Ee
3379
3379
  };
3380
3380
  function Ae($) {
3381
- const t = zt.c(3), {
3381
+ const t = It.c(3), {
3382
3382
  isLoading: n
3383
3383
  } = $, I = n ? Lt["loading-screen"] : Lt["loading-screen-gon"];
3384
3384
  let f;
@@ -3408,7 +3408,7 @@ const Ie = "_visible_1guvy_63", Oe = "_title_1guvy_94", Ne = "_select_1guvy_214"
3408
3408
  "fullscreen-button": "_fullscreen-button_1guvy_243"
3409
3409
  };
3410
3410
  function Te($) {
3411
- const t = zt.c(94), {
3411
+ const t = It.c(94), {
3412
3412
  onClose: n,
3413
3413
  fontSize: I,
3414
3414
  padding: f,
@@ -3423,7 +3423,7 @@ function Te($) {
3423
3423
  } = $;
3424
3424
  let o;
3425
3425
  t[0] !== y ? (o = y === void 0 ? [] : y, t[0] = y, t[1] = o) : o = t[1];
3426
- const m = o, [s, d] = wt(!1), [a, p] = wt(!1), k = At(null), E = At(null);
3426
+ const m = o, [s, d] = wt(!1), [a, p] = wt(!1), k = zt(null), E = zt(null);
3427
3427
  let C, B, F;
3428
3428
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (C = {
3429
3429
  displayName: "Literata",
@@ -3453,18 +3453,18 @@ function Te($) {
3453
3453
  p(!0);
3454
3454
  });
3455
3455
  });
3456
- }, S = [], t[10] = S, t[11] = r) : (S = t[10], r = t[11]), gt(r, S);
3456
+ }, S = [], t[10] = S, t[11] = r) : (S = t[10], r = t[11]), _t(r, S);
3457
3457
  let N;
3458
3458
  t[12] !== n ? (N = () => {
3459
3459
  requestAnimationFrame(() => {
3460
3460
  p(!1), d(!0);
3461
3461
  }), setTimeout(n, 350);
3462
3462
  }, t[12] = n, t[13] = N) : N = t[13];
3463
- const K = N;
3463
+ const G = N;
3464
3464
  let P;
3465
- t[14] !== K ? (P = () => {
3466
- K();
3467
- }, t[14] = K, t[15] = P) : P = t[15];
3465
+ t[14] !== G ? (P = () => {
3466
+ G();
3467
+ }, t[14] = G, t[15] = P) : P = t[15];
3468
3468
  const Y = P, U = je, J = Ue;
3469
3469
  let O;
3470
3470
  t[16] !== f || t[17] !== u ? (O = () => {
@@ -3488,102 +3488,102 @@ function Te($) {
3488
3488
  const nt = it;
3489
3489
  let tt;
3490
3490
  t[28] !== s || t[29] !== a ? (tt = () => {
3491
- const Et = [dt["options-menu"]];
3492
- return a && Et.push(dt.visible), s && Et.push(dt["slide-down"]), Et.join(" ");
3491
+ const At = [dt["options-menu"]];
3492
+ return a && At.push(dt.visible), s && At.push(dt["slide-down"]), At.join(" ");
3493
3493
  }, t[28] = s, t[29] = a, t[30] = tt) : tt = t[30];
3494
3494
  const ct = tt;
3495
3495
  let ot;
3496
3496
  t[31] !== s ? (ot = () => {
3497
- const Et = [dt["options-menu-overlay"]];
3498
- return s && Et.push(dt["fade-out"]), Et.join(" ");
3497
+ const At = [dt["options-menu-overlay"]];
3498
+ return s && At.push(dt["fade-out"]), At.join(" ");
3499
3499
  }, t[31] = s, t[32] = ot) : ot = t[32];
3500
- const ht = ot(), e = ct();
3500
+ const ut = ot(), e = ct();
3501
3501
  let D;
3502
- t[33] !== K ? (D = /* @__PURE__ */ rt("button", { onClick: K, className: dt["close-button"], "aria-label": "Close menu", children: "✕" }), t[33] = K, t[34] = D) : D = t[34];
3502
+ t[33] !== G ? (D = /* @__PURE__ */ rt("button", { onClick: G, className: dt["close-button"], "aria-label": "Close menu", children: "✕" }), t[33] = G, t[34] = D) : D = t[34];
3503
3503
  let T;
3504
3504
  t[35] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ rt("h2", { className: dt.title, children: "Reader Options" }), t[35] = T) : T = t[35];
3505
3505
  let g;
3506
3506
  t[36] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Font family" }), t[36] = g) : g = t[36];
3507
3507
  let c;
3508
- t[37] !== q || t[38] !== b ? (c = (Et) => {
3509
- const Tt = q.find((Ot) => Ot.name === Et.target.value);
3508
+ t[37] !== q || t[38] !== b ? (c = (At) => {
3509
+ const Tt = q.find((Ot) => Ot.name === At.target.value);
3510
3510
  Tt && b(Tt.name);
3511
3511
  }, t[37] = q, t[38] = b, t[39] = c) : c = t[39];
3512
3512
  let x;
3513
3513
  t[40] !== q ? (x = q.map(Be), t[40] = q, t[41] = x) : x = t[41];
3514
3514
  let L;
3515
- t[42] !== l || t[43] !== c || t[44] !== x ? (L = /* @__PURE__ */ mt("div", { className: dt["option-row"], children: [
3515
+ t[42] !== l || t[43] !== c || t[44] !== x ? (L = /* @__PURE__ */ pt("div", { className: dt["option-row"], children: [
3516
3516
  g,
3517
3517
  /* @__PURE__ */ rt("select", { className: dt.select, value: l, onChange: c, children: x })
3518
3518
  ] }), t[42] = l, t[43] = c, t[44] = x, t[45] = L) : L = t[45];
3519
3519
  let W;
3520
3520
  t[46] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Color Scheme" }), t[46] = W) : W = t[46];
3521
3521
  let A;
3522
- t[47] !== _ || t[48] !== w ? (A = (Et) => {
3523
- const Tt = _.find((Ot) => Ot === Et.target.value);
3522
+ t[47] !== _ || t[48] !== w ? (A = (At) => {
3523
+ const Tt = _.find((Ot) => Ot === At.target.value);
3524
3524
  Tt && w(Tt);
3525
3525
  }, t[47] = _, t[48] = w, t[49] = A) : A = t[49];
3526
3526
  let H;
3527
3527
  t[50] !== _ ? (H = _.map(Re), t[50] = _, t[51] = H) : H = t[51];
3528
3528
  let V;
3529
- t[52] !== A || t[53] !== H || t[54] !== h ? (V = /* @__PURE__ */ mt("div", { className: dt["option-row"], children: [
3529
+ t[52] !== A || t[53] !== H || t[54] !== h ? (V = /* @__PURE__ */ pt("div", { className: dt["option-row"], children: [
3530
3530
  W,
3531
3531
  /* @__PURE__ */ rt("select", { className: dt.select, value: h, onChange: A, children: H })
3532
3532
  ] }), t[52] = A, t[53] = H, t[54] = h, t[55] = V) : V = t[55];
3533
- let G;
3534
- t[56] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Side padding" }), t[56] = G) : G = t[56];
3533
+ let K;
3534
+ t[56] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Side padding" }), t[56] = K) : K = t[56];
3535
3535
  let et;
3536
3536
  t[57] !== Z ? (et = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: Z, children: "-" }), t[57] = Z, t[58] = et) : et = t[58];
3537
3537
  let lt;
3538
3538
  t[59] !== f ? (lt = /* @__PURE__ */ rt("span", { ref: E, className: dt["option-value"], children: f }), t[59] = f, t[60] = lt) : lt = t[60];
3539
3539
  let at;
3540
3540
  t[61] !== z ? (at = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: z, children: "+" }), t[61] = z, t[62] = at) : at = t[62];
3541
- let pt;
3542
- t[63] !== et || t[64] !== lt || t[65] !== at ? (pt = /* @__PURE__ */ mt("div", { className: dt["option-row"], children: [
3543
- G,
3544
- /* @__PURE__ */ mt("div", { className: dt["option-controls"], children: [
3541
+ let bt;
3542
+ t[63] !== et || t[64] !== lt || t[65] !== at ? (bt = /* @__PURE__ */ pt("div", { className: dt["option-row"], children: [
3543
+ K,
3544
+ /* @__PURE__ */ pt("div", { className: dt["option-controls"], children: [
3545
3545
  et,
3546
3546
  lt,
3547
3547
  at
3548
3548
  ] })
3549
- ] }), t[63] = et, t[64] = lt, t[65] = at, t[66] = pt) : pt = t[66];
3549
+ ] }), t[63] = et, t[64] = lt, t[65] = at, t[66] = bt) : bt = t[66];
3550
+ let Ct;
3551
+ t[67] === Symbol.for("react.memo_cache_sentinel") ? (Ct = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Font size" }), t[67] = Ct) : Ct = t[67];
3552
+ let gt;
3553
+ t[68] !== nt ? (gt = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: nt, children: "-" }), t[68] = nt, t[69] = gt) : gt = t[69];
3550
3554
  let xt;
3551
- t[67] === Symbol.for("react.memo_cache_sentinel") ? (xt = /* @__PURE__ */ rt("div", { className: dt["option-label"], children: "Font size" }), t[67] = xt) : xt = t[67];
3552
- let bt;
3553
- t[68] !== nt ? (bt = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: nt, children: "-" }), t[68] = nt, t[69] = bt) : bt = t[69];
3554
- let St;
3555
- t[70] !== I ? (St = Math.round(I * 10), t[70] = I, t[71] = St) : St = t[71];
3556
- let ut;
3557
- t[72] !== St ? (ut = /* @__PURE__ */ rt("span", { ref: k, className: dt["option-value"], children: St }), t[72] = St, t[73] = ut) : ut = t[73];
3558
- let vt;
3559
- t[74] !== st ? (vt = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: st, children: "+" }), t[74] = st, t[75] = vt) : vt = t[75];
3555
+ t[70] !== I ? (xt = Math.round(I * 10), t[70] = I, t[71] = xt) : xt = t[71];
3556
+ let ht;
3557
+ t[72] !== xt ? (ht = /* @__PURE__ */ rt("span", { ref: k, className: dt["option-value"], children: xt }), t[72] = xt, t[73] = ht) : ht = t[73];
3560
3558
  let yt;
3561
- t[76] !== bt || t[77] !== ut || t[78] !== vt ? (yt = /* @__PURE__ */ mt("div", { className: dt["option-row"], children: [
3562
- xt,
3563
- /* @__PURE__ */ mt("div", { className: dt["option-controls"], children: [
3564
- bt,
3565
- ut,
3566
- vt
3559
+ t[74] !== st ? (yt = /* @__PURE__ */ rt("button", { className: dt["stepper-button"], onClick: st, children: "+" }), t[74] = st, t[75] = yt) : yt = t[75];
3560
+ let vt;
3561
+ t[76] !== gt || t[77] !== ht || t[78] !== yt ? (vt = /* @__PURE__ */ pt("div", { className: dt["option-row"], children: [
3562
+ Ct,
3563
+ /* @__PURE__ */ pt("div", { className: dt["option-controls"], children: [
3564
+ gt,
3565
+ ht,
3566
+ yt
3567
3567
  ] })
3568
- ] }), t[76] = bt, t[77] = ut, t[78] = vt, t[79] = yt) : yt = t[79];
3569
- let _t;
3570
- t[80] === Symbol.for("react.memo_cache_sentinel") ? (_t = "requestFullscreen" in document.documentElement ? /* @__PURE__ */ rt("button", { className: dt["fullscreen-button"], onClick: ze, children: "Toggle fullscreen" }) : /* @__PURE__ */ rt(qt, {}), t[80] = _t) : _t = t[80];
3571
- let It;
3572
- t[81] !== L || t[82] !== V || t[83] !== pt || t[84] !== yt ? (It = /* @__PURE__ */ mt("div", { className: dt["options-buttons"], children: [
3568
+ ] }), t[76] = gt, t[77] = ht, t[78] = yt, t[79] = vt) : vt = t[79];
3569
+ let mt;
3570
+ t[80] === Symbol.for("react.memo_cache_sentinel") ? (mt = "requestFullscreen" in document.documentElement ? /* @__PURE__ */ rt("button", { className: dt["fullscreen-button"], onClick: ze, children: "Toggle fullscreen" }) : /* @__PURE__ */ rt(qt, {}), t[80] = mt) : mt = t[80];
3571
+ let kt;
3572
+ t[81] !== L || t[82] !== V || t[83] !== bt || t[84] !== vt ? (kt = /* @__PURE__ */ pt("div", { className: dt["options-buttons"], children: [
3573
3573
  L,
3574
3574
  V,
3575
- pt,
3576
- yt,
3577
- _t
3578
- ] }), t[81] = L, t[82] = V, t[83] = pt, t[84] = yt, t[85] = It) : It = t[85];
3575
+ bt,
3576
+ vt,
3577
+ mt
3578
+ ] }), t[81] = L, t[82] = V, t[83] = bt, t[84] = vt, t[85] = kt) : kt = t[85];
3579
3579
  let Nt;
3580
- t[86] !== e || t[87] !== D || t[88] !== It ? (Nt = /* @__PURE__ */ mt("div", { className: e, onClick: U, children: [
3580
+ t[86] !== e || t[87] !== D || t[88] !== kt ? (Nt = /* @__PURE__ */ pt("div", { className: e, onClick: U, children: [
3581
3581
  D,
3582
3582
  T,
3583
- It
3584
- ] }), t[86] = e, t[87] = D, t[88] = It, t[89] = Nt) : Nt = t[89];
3583
+ kt
3584
+ ] }), t[86] = e, t[87] = D, t[88] = kt, t[89] = Nt) : Nt = t[89];
3585
3585
  let Rt;
3586
- return t[90] !== Y || t[91] !== ht || t[92] !== Nt ? (Rt = /* @__PURE__ */ rt("div", { className: ht, onClick: Y, children: Nt }), t[90] = Y, t[91] = ht, t[92] = Nt, t[93] = Rt) : Rt = t[93], Rt;
3586
+ return t[90] !== Y || t[91] !== ut || t[92] !== Nt ? (Rt = /* @__PURE__ */ rt("div", { className: ut, onClick: Y, children: Nt }), t[90] = Y, t[91] = ut, t[92] = Nt, t[93] = Rt) : Rt = t[93], Rt;
3587
3587
  }
3588
3588
  function Re($) {
3589
3589
  return /* @__PURE__ */ rt("option", { value: $, children: $ }, $);
@@ -3612,7 +3612,7 @@ function Ue($) {
3612
3612
  function je($) {
3613
3613
  $.stopPropagation();
3614
3614
  }
3615
- const We = "_visible_1oftk_66", kt = {
3615
+ const We = "_visible_1oftk_66", St = {
3616
3616
  "nav-menu-overlay": "_nav-menu-overlay_1oftk_1",
3617
3617
  "fade-out": "_fade-out_1oftk_25",
3618
3618
  "nav-menu": "_nav-menu_1oftk_1",
@@ -3631,7 +3631,7 @@ const We = "_visible_1oftk_66", kt = {
3631
3631
  "total-pages": "_total-pages_1oftk_198",
3632
3632
  "go-btn": "_go-btn_1oftk_204"
3633
3633
  }, Me = ($) => {
3634
- const t = zt.c(61), {
3634
+ const t = It.c(61), {
3635
3635
  toc: n,
3636
3636
  currentPage: I,
3637
3637
  totalPages: f,
@@ -3649,30 +3649,30 @@ const We = "_visible_1oftk_66", kt = {
3649
3649
  w(!0);
3650
3650
  });
3651
3651
  });
3652
- }, p = [], t[1] = a, t[2] = p) : (a = t[1], p = t[2]), gt(a, p);
3652
+ }, p = [], t[1] = a, t[2] = p) : (a = t[1], p = t[2]), _t(a, p);
3653
3653
  let k, E;
3654
3654
  t[3] !== n ? (k = () => {
3655
3655
  const tt = {}, ct = (ft) => {
3656
- ft.forEach((ht) => {
3656
+ ft.forEach((ut) => {
3657
3657
  try {
3658
- const e = ht.href.replace("#", ""), D = document.getElementById(e);
3658
+ const e = ut.href.replace("#", ""), D = document.getElementById(e);
3659
3659
  if (D) {
3660
3660
  const T = Zt(D) + 1;
3661
- tt[ht.href] = T;
3661
+ tt[ut.href] = T;
3662
3662
  }
3663
3663
  } catch {
3664
3664
  }
3665
- ht.subitems && ct(ht.subitems);
3665
+ ut.subitems && ct(ut.subitems);
3666
3666
  });
3667
3667
  }, ot = setTimeout(() => {
3668
3668
  ct(n), d(tt);
3669
3669
  }, 100);
3670
3670
  return () => clearTimeout(ot);
3671
- }, E = [n], t[3] = n, t[4] = k, t[5] = E) : (k = t[4], E = t[5]), gt(k, E);
3671
+ }, E = [n], t[3] = n, t[4] = k, t[5] = E) : (k = t[4], E = t[5]), _t(k, E);
3672
3672
  let C, B;
3673
3673
  t[6] !== I ? (C = () => {
3674
3674
  o(I + 1);
3675
- }, B = [I], t[6] = I, t[7] = C, t[8] = B) : (C = t[7], B = t[8]), gt(C, B);
3675
+ }, B = [I], t[6] = I, t[7] = C, t[8] = B) : (C = t[7], B = t[8]), _t(C, B);
3676
3676
  let F;
3677
3677
  t[9] !== l ? (F = () => {
3678
3678
  requestAnimationFrame(() => {
@@ -3691,37 +3691,37 @@ const We = "_visible_1oftk_66", kt = {
3691
3691
  i(tt), M();
3692
3692
  }, t[15] = M, t[16] = i, t[17] = Q) : Q = t[17];
3693
3693
  const _ = Q;
3694
- let S, r, N, K, P, Y, U;
3694
+ let S, r, N, G, P, Y, U;
3695
3695
  if (t[18] !== _ || t[19] !== M || t[20] !== b || t[21] !== u || t[22] !== s || t[23] !== n) {
3696
3696
  const tt = (ot, ft) => {
3697
- const ht = ft === void 0 ? 0 : ft;
3698
- return /* @__PURE__ */ rt("ul", { className: ht === 0 ? kt["toc-list"] : kt["toc-sublist"], children: ot.map((e, D) => {
3697
+ const ut = ft === void 0 ? 0 : ft;
3698
+ return /* @__PURE__ */ rt("ul", { className: ut === 0 ? St["toc-list"] : St["toc-sublist"], children: ot.map((e, D) => {
3699
3699
  const T = s[e.href];
3700
- return /* @__PURE__ */ mt("li", { children: [
3701
- /* @__PURE__ */ mt("div", { className: kt["toc-item"], onClick: () => _(e.href), children: [
3702
- /* @__PURE__ */ rt("span", { className: kt["toc-label"], children: e.label }),
3703
- T !== void 0 && /* @__PURE__ */ rt("span", { className: kt["toc-page-num"], children: T })
3700
+ return /* @__PURE__ */ pt("li", { children: [
3701
+ /* @__PURE__ */ pt("div", { className: St["toc-item"], onClick: () => _(e.href), children: [
3702
+ /* @__PURE__ */ rt("span", { className: St["toc-label"], children: e.label }),
3703
+ T !== void 0 && /* @__PURE__ */ rt("span", { className: St["toc-page-num"], children: T })
3704
3704
  ] }),
3705
- e.subitems && e.subitems.length > 0 && tt(e.subitems, ht + 1)
3705
+ e.subitems && e.subitems.length > 0 && tt(e.subitems, ut + 1)
3706
3706
  ] }, D);
3707
3707
  }) });
3708
3708
  };
3709
- Y = `${kt["nav-menu-overlay"]} ${b ? kt["fade-out"] : ""}`, U = M, N = `
3710
- ${kt["nav-menu"]}
3711
- ${u ? kt.visible : ""}
3712
- ${b ? kt["slide-down"] : ""}
3713
- `, K = Ze;
3709
+ Y = `${St["nav-menu-overlay"]} ${b ? St["fade-out"] : ""}`, U = M, N = `
3710
+ ${St["nav-menu"]}
3711
+ ${u ? St.visible : ""}
3712
+ ${b ? St["slide-down"] : ""}
3713
+ `, G = Ze;
3714
3714
  let ct;
3715
- t[31] === Symbol.for("react.memo_cache_sentinel") ? (ct = /* @__PURE__ */ rt("h2", { children: "Table of Contents" }), t[31] = ct) : ct = t[31], t[32] !== M ? (P = /* @__PURE__ */ mt("div", { className: kt["nav-header"], children: [
3715
+ t[31] === Symbol.for("react.memo_cache_sentinel") ? (ct = /* @__PURE__ */ rt("h2", { children: "Table of Contents" }), t[31] = ct) : ct = t[31], t[32] !== M ? (P = /* @__PURE__ */ pt("div", { className: St["nav-header"], children: [
3716
3716
  ct,
3717
- /* @__PURE__ */ rt("button", { className: kt["close-btn"], onClick: M, children: "×" })
3718
- ] }), t[32] = M, t[33] = P) : P = t[33], S = kt["toc-container"], r = n.length > 0 ? tt(n) : /* @__PURE__ */ rt("div", { style: {
3717
+ /* @__PURE__ */ rt("button", { className: St["close-btn"], onClick: M, children: "×" })
3718
+ ] }), t[32] = M, t[33] = P) : P = t[33], S = St["toc-container"], r = n.length > 0 ? tt(n) : /* @__PURE__ */ rt("div", { style: {
3719
3719
  padding: "20px",
3720
3720
  textAlign: "center",
3721
3721
  opacity: 0.5
3722
- }, children: "No chapters found" }), t[18] = _, t[19] = M, t[20] = b, t[21] = u, t[22] = s, t[23] = n, t[24] = S, t[25] = r, t[26] = N, t[27] = K, t[28] = P, t[29] = Y, t[30] = U;
3722
+ }, children: "No chapters found" }), t[18] = _, t[19] = M, t[20] = b, t[21] = u, t[22] = s, t[23] = n, t[24] = S, t[25] = r, t[26] = N, t[27] = G, t[28] = P, t[29] = Y, t[30] = U;
3723
3723
  } else
3724
- S = t[24], r = t[25], N = t[26], K = t[27], P = t[28], Y = t[29], U = t[30];
3724
+ S = t[24], r = t[25], N = t[26], G = t[27], P = t[28], Y = t[29], U = t[30];
3725
3725
  let J;
3726
3726
  t[34] !== S || t[35] !== r ? (J = /* @__PURE__ */ rt("div", { className: S, children: r }), t[34] = S, t[35] = r, t[36] = J) : J = t[36];
3727
3727
  let O;
@@ -3729,26 +3729,26 @@ const We = "_visible_1oftk_66", kt = {
3729
3729
  let z;
3730
3730
  t[38] !== q ? (z = (tt) => tt.key === "Enter" && q(), t[38] = q, t[39] = z) : z = t[39];
3731
3731
  let X;
3732
- t[40] !== v || t[41] !== z ? (X = /* @__PURE__ */ rt("input", { className: kt["jumper-input"], type: "number", value: v, onChange: O, onKeyDown: z, onClick: qe }), t[40] = v, t[41] = z, t[42] = X) : X = t[42];
3732
+ t[40] !== v || t[41] !== z ? (X = /* @__PURE__ */ rt("input", { className: St["jumper-input"], type: "number", value: v, onChange: O, onKeyDown: z, onClick: qe }), t[40] = v, t[41] = z, t[42] = X) : X = t[42];
3733
3733
  let Z;
3734
- t[43] !== f ? (Z = /* @__PURE__ */ mt("span", { className: kt["total-pages"], children: [
3734
+ t[43] !== f ? (Z = /* @__PURE__ */ pt("span", { className: St["total-pages"], children: [
3735
3735
  "of ",
3736
3736
  f
3737
3737
  ] }), t[43] = f, t[44] = Z) : Z = t[44];
3738
3738
  let j;
3739
- t[45] !== q ? (j = /* @__PURE__ */ rt("button", { className: kt["go-btn"], onClick: q, children: "Go" }), t[45] = q, t[46] = j) : j = t[46];
3739
+ t[45] !== q ? (j = /* @__PURE__ */ rt("button", { className: St["go-btn"], onClick: q, children: "Go" }), t[45] = q, t[46] = j) : j = t[46];
3740
3740
  let st;
3741
- t[47] !== X || t[48] !== Z || t[49] !== j ? (st = /* @__PURE__ */ rt("div", { className: kt["page-jumper"], children: /* @__PURE__ */ mt("div", { className: kt["jumper-controls"], children: [
3741
+ t[47] !== X || t[48] !== Z || t[49] !== j ? (st = /* @__PURE__ */ rt("div", { className: St["page-jumper"], children: /* @__PURE__ */ pt("div", { className: St["jumper-controls"], children: [
3742
3742
  X,
3743
3743
  Z,
3744
3744
  j
3745
3745
  ] }) }), t[47] = X, t[48] = Z, t[49] = j, t[50] = st) : st = t[50];
3746
3746
  let it;
3747
- t[51] !== N || t[52] !== K || t[53] !== P || t[54] !== J || t[55] !== st ? (it = /* @__PURE__ */ mt("div", { className: N, onClick: K, children: [
3747
+ t[51] !== N || t[52] !== G || t[53] !== P || t[54] !== J || t[55] !== st ? (it = /* @__PURE__ */ pt("div", { className: N, onClick: G, children: [
3748
3748
  P,
3749
3749
  J,
3750
3750
  st
3751
- ] }), t[51] = N, t[52] = K, t[53] = P, t[54] = J, t[55] = st, t[56] = it) : it = t[56];
3751
+ ] }), t[51] = N, t[52] = G, t[53] = P, t[54] = J, t[55] = st, t[56] = it) : it = t[56];
3752
3752
  let nt;
3753
3753
  return t[57] !== Y || t[58] !== U || t[59] !== it ? (nt = /* @__PURE__ */ rt("div", { className: Y, onClick: U, children: it }), t[57] = Y, t[58] = U, t[59] = it, t[60] = nt) : nt = t[60], nt;
3754
3754
  };
@@ -3758,7 +3758,7 @@ function Ze($) {
3758
3758
  function qe($) {
3759
3759
  return $.currentTarget.select();
3760
3760
  }
3761
- const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86", Ye = "_interactionZone_qt7kv_92", Ke = "_centerZone_qt7kv_103", Ve = "_iconWrapper_qt7kv_115", Xe = "_pulse_qt7kv_1", Je = "_label_qt7kv_139", Qe = "_bottomIconGroup_qt7kv_151", tr = "_bottomIconWrapper_qt7kv_158", er = "_bounceArrow_qt7kv_181", rr = "_bounce_qt7kv_181", nr = "_dismissButton_qt7kv_191", ir = "_float_qt7kv_1", Ct = {
3761
+ const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86", Ye = "_interactionZone_qt7kv_92", Ke = "_centerZone_qt7kv_103", Ve = "_iconWrapper_qt7kv_115", Xe = "_pulse_qt7kv_1", Je = "_label_qt7kv_139", Qe = "_bottomIconGroup_qt7kv_151", tr = "_bottomIconWrapper_qt7kv_158", er = "_bounceArrow_qt7kv_181", rr = "_bounce_qt7kv_181", nr = "_dismissButton_qt7kv_191", ir = "_float_qt7kv_1", Et = {
3762
3762
  overlay: $e,
3763
3763
  fadeIn: He,
3764
3764
  fadeOut: Ge,
@@ -3774,35 +3774,35 @@ const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86"
3774
3774
  dismissButton: nr,
3775
3775
  float: ir
3776
3776
  }, sr = ($) => {
3777
- const t = zt.c(16), {
3777
+ const t = It.c(16), {
3778
3778
  onDismiss: n
3779
3779
  } = $, [I, f] = wt(!1);
3780
3780
  let l;
3781
3781
  t[0] !== n ? (l = () => {
3782
3782
  f(!0), setTimeout(n, 400);
3783
3783
  }, t[0] = n, t[1] = l) : l = t[1];
3784
- const h = l, i = `${Ct.overlay} ${I ? Ct.fadeOut : ""}`;
3784
+ const h = l, i = `${Et.overlay} ${I ? Et.fadeOut : ""}`;
3785
3785
  let u;
3786
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ mt("div", { className: Ct.interactionZone, children: [
3787
- /* @__PURE__ */ rt("div", { className: Ct.iconWrapper, children: /* @__PURE__ */ rt("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" }) }) }),
3788
- /* @__PURE__ */ rt("div", { className: Ct.label, children: "Previous" })
3786
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ pt("div", { className: Et.interactionZone, children: [
3787
+ /* @__PURE__ */ rt("div", { className: Et.iconWrapper, children: /* @__PURE__ */ rt("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" }) }) }),
3788
+ /* @__PURE__ */ rt("div", { className: Et.label, children: "Previous" })
3789
3789
  ] }), t[2] = u) : u = t[2];
3790
3790
  let w;
3791
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ mt("div", { className: Ct.interactionZone, children: [
3792
- /* @__PURE__ */ rt("div", { className: Ct.iconWrapper, children: /* @__PURE__ */ rt("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) }) }),
3793
- /* @__PURE__ */ rt("div", { className: Ct.label, children: "Next" })
3791
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ pt("div", { className: Et.interactionZone, children: [
3792
+ /* @__PURE__ */ rt("div", { className: Et.iconWrapper, children: /* @__PURE__ */ rt("svg", { viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" }) }) }),
3793
+ /* @__PURE__ */ rt("div", { className: Et.label, children: "Next" })
3794
3794
  ] }), t[3] = w) : w = t[3];
3795
3795
  let b;
3796
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ rt("div", { className: Ct.bottomIconWrapper, children: /* @__PURE__ */ rt(de, { size: 24 }) }), t[4] = b) : b = t[4];
3796
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ rt("div", { className: Et.bottomIconWrapper, children: /* @__PURE__ */ rt(de, { size: 24 }) }), t[4] = b) : b = t[4];
3797
3797
  let y;
3798
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ rt("div", { className: Ct.label, style: {
3798
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ rt("div", { className: Et.label, style: {
3799
3799
  fontSize: "0.9rem"
3800
3800
  }, children: "Navigation" }), t[5] = y) : y = t[5];
3801
3801
  let v;
3802
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ mt("div", { className: Ct.bottomIconGroup, children: [
3802
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ pt("div", { className: Et.bottomIconGroup, children: [
3803
3803
  b,
3804
3804
  y,
3805
- /* @__PURE__ */ rt("div", { className: Ct.bounceArrow, children: /* @__PURE__ */ rt("svg", { width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }) }) })
3805
+ /* @__PURE__ */ rt("div", { className: Et.bounceArrow, children: /* @__PURE__ */ rt("svg", { width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ rt("path", { d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" }) }) })
3806
3806
  ] }), t[6] = v) : v = t[6];
3807
3807
  let o;
3808
3808
  t[7] === Symbol.for("react.memo_cache_sentinel") ? (o = {
@@ -3811,24 +3811,24 @@ const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86"
3811
3811
  bottom: "80px"
3812
3812
  }, t[7] = o) : o = t[7];
3813
3813
  let m;
3814
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ rt("div", { className: Ct.bottomIconWrapper, children: /* @__PURE__ */ rt(Qt, { size: 20 }) }), t[8] = m) : m = t[8];
3814
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ rt("div", { className: Et.bottomIconWrapper, children: /* @__PURE__ */ rt(Qt, { size: 20 }) }), t[8] = m) : m = t[8];
3815
3815
  let s;
3816
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ mt("div", { className: Ct.bottomIconGroup, style: o, children: [
3816
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ pt("div", { className: Et.bottomIconGroup, style: o, children: [
3817
3817
  m,
3818
- /* @__PURE__ */ rt("div", { className: Ct.label, style: {
3818
+ /* @__PURE__ */ rt("div", { className: Et.label, style: {
3819
3819
  fontSize: "0.8rem"
3820
3820
  }, children: "Options" })
3821
3821
  ] }), t[9] = s) : s = t[9];
3822
3822
  let d;
3823
- t[10] !== h ? (d = /* @__PURE__ */ mt("div", { className: Ct.centerZone, children: [
3823
+ t[10] !== h ? (d = /* @__PURE__ */ pt("div", { className: Et.centerZone, children: [
3824
3824
  v,
3825
3825
  s,
3826
- /* @__PURE__ */ rt("button", { className: Ct.dismissButton, onClick: (p) => {
3826
+ /* @__PURE__ */ rt("button", { className: Et.dismissButton, onClick: (p) => {
3827
3827
  p.stopPropagation(), h();
3828
3828
  }, children: "Start Reading" })
3829
3829
  ] }), t[10] = h, t[11] = d) : d = t[11];
3830
3830
  let a;
3831
- return t[12] !== h || t[13] !== d || t[14] !== i ? (a = /* @__PURE__ */ mt("div", { className: i, onClick: h, children: [
3831
+ return t[12] !== h || t[13] !== d || t[14] !== i ? (a = /* @__PURE__ */ pt("div", { className: i, onClick: h, children: [
3832
3832
  u,
3833
3833
  w,
3834
3834
  d
@@ -3851,7 +3851,7 @@ const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86"
3851
3851
  "--color-tint": "#c9f"
3852
3852
  }
3853
3853
  }, ur = ($) => {
3854
- const t = zt.c(81), {
3854
+ const t = It.c(82), {
3855
3855
  epubDataSource: n,
3856
3856
  onTitleChange: I,
3857
3857
  onLoadingChange: f,
@@ -3880,113 +3880,113 @@ const $e = "_overlay_qt7kv_61", He = "_fadeIn_qt7kv_1", Ge = "_fadeOut_qt7kv_86"
3880
3880
  ...ar,
3881
3881
  ...o
3882
3882
  }, t[4] = o, t[5] = C) : C = t[5];
3883
- const B = C, [F, M] = wt("none"), [R, q] = Bt("bok_global_side_padding", 20), [Q, _] = Bt("bok_global_fontsize", 1.4), [S, r] = Bt("bok_global_font_family", "Literata"), [N, K] = Bt("bok_global_theme", "Amoled Dark"), P = At(null), Y = At(null), [U, J] = wt(0), [O, z] = wt(0), [X, Z] = Bt("bok_tutorial_shown", !1), [j, st] = wt(!X);
3884
- let it;
3885
- t[6] !== B || t[7] !== K || t[8] !== N ? (it = () => {
3886
- B[N] || K("Amoled Dark");
3887
- }, t[6] = B, t[7] = K, t[8] = N, t[9] = it) : it = t[9], gt(it);
3888
- let nt, tt;
3889
- t[10] !== X ? (nt = () => {
3883
+ const B = C, [F, M] = wt("none"), [R, q] = Bt("bok_global_side_padding", 20), [Q, _] = Bt("bok_global_fontsize", 1.4), [S, r] = Bt("bok_global_font_family", "Literata"), [N, G] = Bt("bok_global_theme", "Amoled Dark"), P = zt(null), Y = zt(null), [U, J] = wt(0), [O, z] = wt(0), [X, Z] = Bt("bok_tutorial_shown", !1), [j, st] = wt(!X);
3884
+ let it, nt;
3885
+ t[6] !== B || t[7] !== G || t[8] !== N ? (it = () => {
3886
+ B[N] || G("Amoled Dark");
3887
+ }, nt = [B, N, G], t[6] = B, t[7] = G, t[8] = N, t[9] = it, t[10] = nt) : (it = t[9], nt = t[10]), _t(it, nt);
3888
+ let tt, ct;
3889
+ t[11] !== X ? (tt = () => {
3890
3890
  X && st(!1);
3891
- }, tt = [X], t[10] = X, t[11] = nt, t[12] = tt) : (nt = t[11], tt = t[12]), gt(nt, tt);
3892
- let ct;
3893
- t[13] === Symbol.for("react.memo_cache_sentinel") ? (ct = () => {
3894
- const ut = setTimeout(() => {
3891
+ }, ct = [X], t[11] = X, t[12] = tt, t[13] = ct) : (tt = t[12], ct = t[13]), _t(tt, ct);
3892
+ let ot;
3893
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (ot = () => {
3894
+ const yt = setTimeout(() => {
3895
3895
  if (P.current) {
3896
- const yt = getComputedStyle(P.current).getPropertyValue("--bg-color").trim();
3897
- let _t = document.querySelector("meta[name='theme-color']");
3898
- _t || (_t = document.createElement("meta"), _t.setAttribute("name", "theme-color"), document.head.appendChild(_t)), yt && (_t.setAttribute("content", yt), document.body.style.backgroundColor = yt);
3896
+ const mt = getComputedStyle(P.current).getPropertyValue("--bg-color").trim();
3897
+ let kt = document.querySelector("meta[name='theme-color']");
3898
+ kt || (kt = document.createElement("meta"), kt.setAttribute("name", "theme-color"), document.head.appendChild(kt)), mt && (kt.setAttribute("content", mt), document.body.style.backgroundColor = mt);
3899
3899
  }
3900
3900
  }, 50);
3901
- return () => clearTimeout(ut);
3902
- }, t[13] = ct) : ct = t[13];
3903
- let ot;
3904
- t[14] !== N ? (ot = [N], t[14] = N, t[15] = ot) : ot = t[15], gt(ct, ot);
3901
+ return () => clearTimeout(yt);
3902
+ }, t[14] = ot) : ot = t[14];
3905
3903
  let ft;
3906
- t[16] !== Z ? (ft = () => {
3904
+ t[15] !== N ? (ft = [N], t[15] = N, t[16] = ft) : ft = t[16], _t(ot, ft);
3905
+ let ut;
3906
+ t[17] !== Z ? (ut = () => {
3907
3907
  st(!1), Z(!0);
3908
- }, t[16] = Z, t[17] = ft) : ft = t[17];
3909
- const ht = ft;
3910
- let e, D;
3911
- t[18] !== n || t[19] !== k ? (e = () => {
3908
+ }, t[17] = Z, t[18] = ut) : ut = t[18];
3909
+ const e = ut;
3910
+ let D, T;
3911
+ t[19] !== n || t[20] !== k ? (D = () => {
3912
3912
  n && k(n);
3913
- }, D = [n, k], t[18] = n, t[19] = k, t[20] = e, t[21] = D) : (e = t[20], D = t[21]), gt(e, D);
3914
- let T, g;
3915
- t[22] !== I || t[23] !== m ? (T = () => {
3913
+ }, T = [n, k], t[19] = n, t[20] = k, t[21] = D, t[22] = T) : (D = t[21], T = t[22]), _t(D, T);
3914
+ let g, c;
3915
+ t[23] !== I || t[24] !== m ? (g = () => {
3916
3916
  I && I(m);
3917
- }, g = [m, I], t[22] = I, t[23] = m, t[24] = T, t[25] = g) : (T = t[24], g = t[25]), gt(T, g);
3918
- let c, x;
3919
- t[26] !== a || t[27] !== f ? (c = () => {
3917
+ }, c = [m, I], t[23] = I, t[24] = m, t[25] = g, t[26] = c) : (g = t[25], c = t[26]), _t(g, c);
3918
+ let x, L;
3919
+ t[27] !== a || t[28] !== f ? (x = () => {
3920
3920
  f && f(a);
3921
- }, x = [a, f], t[26] = a, t[27] = f, t[28] = c, t[29] = x) : (c = t[28], x = t[29]), gt(c, x);
3922
- let L, W;
3923
- t[30] !== p || t[31] !== l ? (L = () => {
3921
+ }, L = [a, f], t[27] = a, t[28] = f, t[29] = x, t[30] = L) : (x = t[29], L = t[30]), _t(x, L);
3922
+ let W, A;
3923
+ t[31] !== p || t[32] !== l ? (W = () => {
3924
3924
  p && l && l(p);
3925
- }, W = [p, l], t[30] = p, t[31] = l, t[32] = L, t[33] = W) : (L = t[32], W = t[33]), gt(L, W);
3926
- const A = `${R}px`, H = `${Q}em`, V = B[N];
3927
- let G;
3928
- t[34] !== S || t[35] !== A || t[36] !== H || t[37] !== V ? (G = {
3929
- "--side-padding": A,
3925
+ }, A = [p, l], t[31] = p, t[32] = l, t[33] = W, t[34] = A) : (W = t[33], A = t[34]), _t(W, A);
3926
+ const H = `${R}px`, V = `${Q}em`, K = B[N];
3927
+ let et;
3928
+ t[35] !== S || t[36] !== H || t[37] !== V || t[38] !== K ? (et = {
3929
+ "--side-padding": H,
3930
3930
  "--top-padding": "30px",
3931
3931
  "--bottom-padding": "70px",
3932
- "--font-size": H,
3932
+ "--font-size": V,
3933
3933
  "--font-family": S,
3934
- ...V
3935
- }, t[34] = S, t[35] = A, t[36] = H, t[37] = V, t[38] = G) : G = t[38];
3936
- const et = G;
3934
+ ...K
3935
+ }, t[35] = S, t[36] = H, t[37] = V, t[38] = K, t[39] = et) : et = t[39];
3936
+ const lt = et;
3937
3937
  if (p && !a && !s) {
3938
- const ut = `bok-reader-container ${h || ""}`;
3938
+ const yt = `bok-reader-container ${h || ""}`;
3939
3939
  let vt;
3940
- t[39] === Symbol.for("react.memo_cache_sentinel") ? (vt = {
3940
+ t[40] === Symbol.for("react.memo_cache_sentinel") ? (vt = {
3941
3941
  padding: "20px",
3942
3942
  color: "red"
3943
- }, t[39] = vt) : vt = t[39];
3944
- let yt;
3945
- t[40] !== p ? (yt = /* @__PURE__ */ mt("div", { style: vt, children: [
3943
+ }, t[40] = vt) : vt = t[40];
3944
+ let mt;
3945
+ t[41] !== p ? (mt = /* @__PURE__ */ pt("div", { style: vt, children: [
3946
3946
  "Error loading EPUB: ",
3947
3947
  p
3948
- ] }), t[40] = p, t[41] = yt) : yt = t[41];
3949
- let _t;
3950
- return t[42] !== i || t[43] !== ut || t[44] !== yt ? (_t = /* @__PURE__ */ rt("div", { className: ut, style: i, children: yt }), t[42] = i, t[43] = ut, t[44] = yt, t[45] = _t) : _t = t[45], _t;
3948
+ ] }), t[41] = p, t[42] = mt) : mt = t[42];
3949
+ let kt;
3950
+ return t[43] !== i || t[44] !== yt || t[45] !== mt ? (kt = /* @__PURE__ */ rt("div", { className: yt, style: i, children: mt }), t[43] = i, t[44] = yt, t[45] = mt, t[46] = kt) : kt = t[46], kt;
3951
3951
  }
3952
- let lt;
3953
- t[46] !== et || t[47] !== i ? (lt = {
3952
+ let at;
3953
+ t[47] !== lt || t[48] !== i ? (at = {
3954
3954
  ...i,
3955
- ...et
3956
- }, t[46] = et, t[47] = i, t[48] = lt) : lt = t[48];
3957
- const at = lt;
3958
- let pt;
3959
- t[49] !== a ? (pt = /* @__PURE__ */ rt(Ae, { isLoading: a }), t[49] = a, t[50] = pt) : pt = t[50];
3960
- let xt;
3961
- t[51] !== F || t[52] !== B || t[53] !== U || t[54] !== ht || t[55] !== S || t[56] !== Q || t[57] !== a || t[58] !== s || t[59] !== r || t[60] !== _ || t[61] !== E || t[62] !== q || t[63] !== K || t[64] !== j || t[65] !== R || t[66] !== y || t[67] !== N || t[68] !== m || t[69] !== d || t[70] !== O ? (xt = s && /* @__PURE__ */ mt(qt, { children: [
3962
- j && !a && /* @__PURE__ */ rt(sr, { onDismiss: ht }),
3955
+ ...lt
3956
+ }, t[47] = lt, t[48] = i, t[49] = at) : at = t[49];
3957
+ const bt = at;
3958
+ let Ct;
3959
+ t[50] !== a ? (Ct = /* @__PURE__ */ rt(Ae, { isLoading: a }), t[50] = a, t[51] = Ct) : Ct = t[51];
3960
+ let gt;
3961
+ t[52] !== F || t[53] !== B || t[54] !== U || t[55] !== e || t[56] !== S || t[57] !== Q || t[58] !== a || t[59] !== s || t[60] !== r || t[61] !== _ || t[62] !== E || t[63] !== q || t[64] !== G || t[65] !== j || t[66] !== R || t[67] !== y || t[68] !== N || t[69] !== m || t[70] !== d || t[71] !== O ? (gt = s && /* @__PURE__ */ pt(qt, { children: [
3962
+ j && !a && /* @__PURE__ */ rt(sr, { onDismiss: e }),
3963
3963
  /* @__PURE__ */ rt(xe, { ref: Y, content: s, title: m, setIsLoading: E, fontSize: Q, sidePadding: R, fontFamily: S, isOptionMenuVisible: F !== "none", containerElementRef: P, showTutorial: j, onPageChange: J, onPageCountChange: z }),
3964
- F === "options" && /* @__PURE__ */ rt(Te, { onClose: () => M("none"), fontSize: Q, padding: R, fontFamily: S, theme: N, setPadding: q, setFontSize: _, setFontFamily: r, setTheme: K, allThemes: B, supportedFonts: y }),
3965
- F === "navigation" && !a && /* @__PURE__ */ rt(Me, { toc: d, currentPage: U, totalPages: O, onClose: () => M("none"), onGoToPage: (ut) => {
3964
+ F === "options" && /* @__PURE__ */ rt(Te, { onClose: () => M("none"), fontSize: Q, padding: R, fontFamily: S, theme: N, setPadding: q, setFontSize: _, setFontFamily: r, setTheme: G, allThemes: B, supportedFonts: y }),
3965
+ F === "navigation" && !a && /* @__PURE__ */ rt(Me, { toc: d, currentPage: U, totalPages: O, onClose: () => M("none"), onGoToPage: (yt) => {
3966
3966
  var vt;
3967
- return (vt = Y.current) == null ? void 0 : vt.goToPage(ut);
3968
- }, onChapterClick: (ut) => {
3967
+ return (vt = Y.current) == null ? void 0 : vt.goToPage(yt);
3968
+ }, onChapterClick: (yt) => {
3969
3969
  var vt;
3970
- return (vt = Y.current) == null ? void 0 : vt.findAndJumpToHref(ut);
3970
+ return (vt = Y.current) == null ? void 0 : vt.findAndJumpToHref(yt);
3971
3971
  } }),
3972
- F === "none" && !j && !a && /* @__PURE__ */ mt("div", { className: "bottom-interaction-layer", children: [
3972
+ F === "none" && !j && !a && /* @__PURE__ */ pt("div", { className: "bottom-interaction-layer", children: [
3973
3973
  /* @__PURE__ */ rt("div", { className: "trigger-zone", onClick: or }),
3974
3974
  /* @__PURE__ */ rt("div", { className: "trigger-zone", onClick: () => M("navigation"), "aria-label": "Open Navigation" }),
3975
3975
  /* @__PURE__ */ rt("div", { className: "trigger-zone", onClick: () => M("options"), "aria-label": "Open Settings" }),
3976
3976
  /* @__PURE__ */ rt("div", { className: "settings-icon", onClick: () => M("options"), "aria-label": "Open Settings", children: /* @__PURE__ */ rt(Qt, { size: 16 }) })
3977
3977
  ] })
3978
- ] }), t[51] = F, t[52] = B, t[53] = U, t[54] = ht, t[55] = S, t[56] = Q, t[57] = a, t[58] = s, t[59] = r, t[60] = _, t[61] = E, t[62] = q, t[63] = K, t[64] = j, t[65] = R, t[66] = y, t[67] = N, t[68] = m, t[69] = d, t[70] = O, t[71] = xt) : xt = t[71];
3979
- let bt;
3980
- t[72] !== n || t[73] !== p || t[74] !== a ? (bt = !n && !a && !p && /* @__PURE__ */ rt("div", { style: {
3978
+ ] }), t[52] = F, t[53] = B, t[54] = U, t[55] = e, t[56] = S, t[57] = Q, t[58] = a, t[59] = s, t[60] = r, t[61] = _, t[62] = E, t[63] = q, t[64] = G, t[65] = j, t[66] = R, t[67] = y, t[68] = N, t[69] = m, t[70] = d, t[71] = O, t[72] = gt) : gt = t[72];
3979
+ let xt;
3980
+ t[73] !== n || t[74] !== p || t[75] !== a ? (xt = !n && !a && !p && /* @__PURE__ */ rt("div", { style: {
3981
3981
  padding: "20px",
3982
3982
  textAlign: "center"
3983
- }, children: "No EPUB loaded." }), t[72] = n, t[73] = p, t[74] = a, t[75] = bt) : bt = t[75];
3984
- let St;
3985
- return t[76] !== at || t[77] !== pt || t[78] !== xt || t[79] !== bt ? (St = /* @__PURE__ */ mt("div", { className: "bok-reader-container", style: at, ref: P, children: [
3986
- pt,
3987
- xt,
3988
- bt
3989
- ] }), t[76] = at, t[77] = pt, t[78] = xt, t[79] = bt, t[80] = St) : St = t[80], St;
3983
+ }, children: "No EPUB loaded." }), t[73] = n, t[74] = p, t[75] = a, t[76] = xt) : xt = t[76];
3984
+ let ht;
3985
+ return t[77] !== bt || t[78] !== Ct || t[79] !== gt || t[80] !== xt ? (ht = /* @__PURE__ */ pt("div", { className: "bok-reader-container", style: bt, ref: P, children: [
3986
+ Ct,
3987
+ gt,
3988
+ xt
3989
+ ] }), t[77] = bt, t[78] = Ct, t[79] = gt, t[80] = xt, t[81] = ht) : ht = t[81], ht;
3990
3990
  };
3991
3991
  function or() {
3992
3992
  console.log("Left Click - Reserved");