@prose-reader/react-reader 1.294.0 → 1.295.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as a, jsxs as y, Fragment as ve } from "react/jsx-runtime";
2
- import { c as C } from "react/compiler-runtime";
3
- import { Presence as Ye, Button as ue, IconButton as te, Drawer as he, Portal as pt, Box as le, Stack as ee, Text as U, Textarea as _n, Dialog as ae, List as ge, Link as Mt, Tabs as me, useBreakpointValue as vn, createToaster as xn, Toaster as Cn, Toast as je, Spinner as yn, RadioGroup as tt, Slider as fe, HStack as ce, For as In, Fieldset as Ce, Heading as yt, Kbd as Bt, chakra as kn, Popover as qe, Progress as it, Collapsible as It, Field as Je, Input as Tn } from "@chakra-ui/react";
2
+ import { c as x } from "react/compiler-runtime";
3
+ import { Presence as Ye, Button as ue, IconButton as te, Drawer as he, Portal as pt, Box as le, Stack as ee, Text as U, Textarea as _n, Dialog as ae, List as ge, Link as Mt, Tabs as me, useBreakpointValue as vn, createToaster as Cn, Toaster as xn, Toast as je, Spinner as yn, RadioGroup as tt, Slider as fe, HStack as ce, For as In, Fieldset as xe, Heading as yt, Kbd as Bt, chakra as kn, Popover as qe, Progress as it, Collapsible as It, Field as Je, Input as Tn } from "@chakra-ui/react";
4
4
  import * as de from "react";
5
5
  import $n, { createContext as Rn, useContext as Yt, memo as N, useState as ne, useEffect as oe, useRef as _e, useLayoutEffect as Mn } from "react";
6
6
  import { FaEdit as On } from "react-icons/fa";
7
7
  import { LuNotebookPen as lt, LuX as wn, LuBookmark as An, LuCheck as zn, LuArrowBigRight as Pn, LuArrowBigLeft as En, LuPause as Dn, LuPlay as Bn, LuChevronDown as Fn, LuCircleHelp as Ln, LuTableOfContents as Nn, LuSearch as Hn, LuZoomOut as Vn, LuZoomIn as Wn, LuGalleryHorizontal as Gn, LuCircleCheck as Ft } from "react-icons/lu";
8
8
  import { signal as Ke, useObserve as H, useSignalValue as Tt, useSubscribe as pe, isDefined as Zt, useConstant as ot, useMemoCompare as Un, useLiveRef as jn, useSignalState as qn } from "reactjrx";
9
- import { Subject as Kn, EMPTY as $t, switchMap as be, map as J, startWith as Qt, tap as bt, filter as st, of as gt, NEVER as at, withLatestFrom as Ot, distinctUntilChanged as xe, combineLatest as St, throttleTime as Xt, first as Jt, debounceTime as Yn, shareReplay as Zn, mergeMap as Qn, Observable as Xn, skip as Jn, merge as en, timer as tn, finalize as eo, BehaviorSubject as nn, animationFrameScheduler as to } from "rxjs";
9
+ import { Subject as Kn, EMPTY as $t, switchMap as be, map as J, startWith as Qt, tap as bt, filter as st, of as gt, NEVER as at, withLatestFrom as Ot, distinctUntilChanged as Ce, combineLatest as St, throttleTime as Xt, first as Jt, debounceTime as Yn, shareReplay as Zn, mergeMap as Qn, Observable as Xn, skip as Jn, merge as en, timer as tn, finalize as eo, BehaviorSubject as nn, animationFrameScheduler as to } from "rxjs";
10
10
  import { pick as no, watchKeys as on, isShallowEqual as ln, observeIntersection as oo, shouldUseComputedSpreadModeForViewport as io, isHtmlTagElement as lo } from "@prose-reader/core";
11
11
  import { createPortal as wt } from "react-dom";
12
12
  import { isShallowEqual as so } from "@prose-reader/shared";
@@ -18,7 +18,7 @@ import { RxDoubleArrowUp as go, RxDoubleArrowLeft as po, RxDoubleArrowDown as bo
18
18
  import _o from "rc-slider";
19
19
  import "rc-slider/assets/index.css";
20
20
  import { HiOutlineInformationCircle as vo } from "react-icons/hi";
21
- import { IoIosArrowBack as xo, IoMdMore as Co } from "react-icons/io";
21
+ import { IoIosArrowBack as Co, IoMdMore as xo } from "react-icons/io";
22
22
  const yo = "data-bookmark-area", sn = 5, rn = () => ({
23
23
  _quickMenuOpen: !1,
24
24
  _onQuickMenuOpenChange: (t) => t,
@@ -41,7 +41,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
41
41
  }), At = Rn(Ke({
42
42
  default: rn()
43
43
  })), ie = (t) => {
44
- const e = C(9), o = Yt(At);
44
+ const e = x(9), o = Yt(At);
45
45
  let n;
46
46
  e[0] !== o || e[1] !== t ? (n = () => o.pipe(on(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
47
47
  let i;
@@ -54,7 +54,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
54
54
  let s;
55
55
  return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], H(n, l, s).data;
56
56
  }, Ze = () => Yt(At), Io = 24, an = N((t) => {
57
- const e = C(9);
57
+ const e = x(9);
58
58
  let o, n;
59
59
  e[0] !== t ? ({
60
60
  children: o,
@@ -74,7 +74,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
74
74
  let u;
75
75
  return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Ye, { animationName: c, animationDuration: "moderate", position: "absolute", bottom: d, right: 4, backgroundColor: "bg.panel", shadow: "sm", borderRadius: "md", p: 2, display: "flex", flexDirection: "row", gap: 2, ...n, children: o }), e[5] = o, e[6] = n, e[7] = d, e[8] = u) : u = e[8], u;
76
76
  }), j = () => {
77
- const t = C(1);
77
+ const t = x(1);
78
78
  let e;
79
79
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["reader"], t[0] = e) : e = t[0];
80
80
  const {
@@ -82,11 +82,11 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
82
82
  } = ie(e);
83
83
  return o;
84
84
  }, cn = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, ko = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, rt = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, dn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, fn = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, ct = () => {
85
- const t = C(2), e = j();
85
+ const t = x(2), e = j();
86
86
  let o;
87
87
  return t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
88
88
  }, To = () => {
89
- const t = C(16), e = ct(), o = Ze();
89
+ const t = x(16), e = ct(), o = Ze();
90
90
  let n;
91
91
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["selectedHighlight"], t[0] = n) : n = t[0];
92
92
  const {
@@ -135,13 +135,13 @@ function $o() {
135
135
  return !1;
136
136
  }
137
137
  const Ro = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, un = de.forwardRef(function(e, o) {
138
- const n = C(6);
138
+ const n = x(6);
139
139
  let i;
140
140
  n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(wn, {}), n[0] = e.children, n[1] = i) : i = n[1];
141
141
  let l;
142
142
  return n[2] !== e || n[3] !== o || n[4] !== i ? (l = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "Close", ref: o, ...e, children: i }), n[2] = e, n[3] = o, n[4] = i, n[5] = l) : l = n[5], l;
143
143
  }), Mo = de.forwardRef(function(e, o) {
144
- const n = C(17);
144
+ const n = x(17);
145
145
  let i, l, s, r, c;
146
146
  n[0] !== e ? ({
147
147
  children: i,
@@ -159,7 +159,7 @@ const Ro = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, un = de.for
159
159
  return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(pt, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
160
160
  });
161
161
  de.forwardRef(function(e, o) {
162
- const n = C(5);
162
+ const n = x(5);
163
163
  let i;
164
164
  n[0] !== o ? (i = /* @__PURE__ */ a(un, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
165
  let l;
@@ -184,7 +184,7 @@ const kt = [
184
184
  "rgba(255, 182, 193, 1)"
185
185
  // Light pink
186
186
  ], Po = N(() => {
187
- const t = C(58), e = ct();
187
+ const t = x(58), e = ct();
188
188
  let o;
189
189
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["selectedHighlight", "onAnnotationCreate", "onAnnotationUpdate", "onAnnotationDelete"], t[0] = o) : o = t[0];
190
190
  const {
@@ -205,15 +205,15 @@ const kt = [
205
205
  t[3] !== b ? (S = (B) => {
206
206
  B.open || b();
207
207
  }, t[3] = b, t[4] = S) : S = t[4];
208
- const _ = S, v = c?.highlightColor, x = c?.notes;
208
+ const _ = S, v = c?.highlightColor, C = c?.notes;
209
209
  let k;
210
210
  t[5] !== m ? (k = () => {
211
211
  m("");
212
212
  }, t[5] = m, t[6] = k) : k = t[6];
213
213
  let I;
214
214
  t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(k, I), oe(() => {
215
- m(x ?? "");
216
- }, [x]), oe(() => {
215
+ m(C ?? "");
216
+ }, [C]), oe(() => {
217
217
  f(v || kt[0]);
218
218
  }, [v, g]);
219
219
  let T;
@@ -301,7 +301,7 @@ function Eo(t) {
301
301
  };
302
302
  }
303
303
  const Ie = de.forwardRef(function(e, o) {
304
- const n = C(17);
304
+ const n = x(17);
305
305
  let i, l, s, r, c;
306
306
  n[0] !== e ? ({
307
307
  children: i,
@@ -321,7 +321,7 @@ const Ie = de.forwardRef(function(e, o) {
321
321
  m
322
322
  ] }), n[12] = l, n[13] = f, n[14] = h, n[15] = m, n[16] = g) : g = n[16], g;
323
323
  }), ke = de.forwardRef(function(e, o) {
324
- const n = C(6);
324
+ const n = x(6);
325
325
  let i;
326
326
  n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(un, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
327
327
  let l;
@@ -332,7 +332,7 @@ const Oe = ae.Title;
332
332
  ae.Description;
333
333
  ae.Trigger;
334
334
  const we = ae.ActionTrigger, Do = (t) => {
335
- const e = C(7), o = j();
335
+ const e = x(7), o = j();
336
336
  let n;
337
337
  e[0] !== o ? (n = rt(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
338
338
  const i = n;
@@ -341,7 +341,7 @@ const we = ae.ActionTrigger, Do = (t) => {
341
341
  let s;
342
342
  return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], H(l, s);
343
343
  }, hn = (t) => {
344
- const e = C(22), {
344
+ const e = x(22), {
345
345
  id: o,
346
346
  onNavigate: n,
347
347
  allowLeftIcon: i
@@ -376,14 +376,14 @@ const we = ae.ActionTrigger, Do = (t) => {
376
376
  p
377
377
  ] }) }), e[18] = u, e[19] = f, e[20] = p, e[21] = b) : b = e[21], b;
378
378
  }, _t = () => {
379
- const t = C(5), e = j();
379
+ const t = x(5), e = j();
380
380
  let o;
381
381
  t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
382
382
  const n = o;
383
383
  let i, l;
384
384
  return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(be((s) => n.locateResource(s))), l = [n], t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), H(i, l);
385
385
  }, Bo = () => {
386
- const t = C(4), {
386
+ const t = x(4), {
387
387
  data: e
388
388
  } = _t();
389
389
  let o;
@@ -397,7 +397,7 @@ function Fo(t) {
397
397
  return t.meta.isCfiRange;
398
398
  }
399
399
  const Lo = (t) => {
400
- const e = C(5), {
400
+ const e = x(5), {
401
401
  onNavigate: o
402
402
  } = t, {
403
403
  data: n
@@ -407,7 +407,7 @@ const Lo = (t) => {
407
407
  let l;
408
408
  return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
409
409
  }, No = () => {
410
- const t = C(4), {
410
+ const t = x(4), {
411
411
  data: e
412
412
  } = _t();
413
413
  let o;
@@ -421,7 +421,7 @@ function Ho(t) {
421
421
  return !t.meta.isCfiRange && !t.resource.notes;
422
422
  }
423
423
  const Vo = (t) => {
424
- const e = C(5), {
424
+ const e = x(5), {
425
425
  onNavigate: o
426
426
  } = t, {
427
427
  data: n
@@ -431,7 +431,7 @@ const Vo = (t) => {
431
431
  let l;
432
432
  return e[3] !== i ? (l = /* @__PURE__ */ a(ge.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
433
433
  }, Wo = N((t) => {
434
- const e = C(11), {
434
+ const e = x(11), {
435
435
  onNavigate: o,
436
436
  defaultTab: n
437
437
  } = t, [i, l] = ne(n ?? "bookmarks");
@@ -462,7 +462,7 @@ const Vo = (t) => {
462
462
  u
463
463
  ] }), e[7] = d, e[8] = u, e[9] = i, e[10] = f) : f = e[10], f;
464
464
  }), Go = N((t) => {
465
- const e = C(15), {
465
+ const e = x(15), {
466
466
  openWith: o,
467
467
  setOpen: n,
468
468
  onNavigate: i
@@ -490,14 +490,14 @@ const Vo = (t) => {
490
490
  let m;
491
491
  return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a(Te, { lazyMount: !0, placement: "center", open: l, onOpenChange: s, size: r, scrollBehavior: "inside", children: h }), e[11] = l, e[12] = s, e[13] = h, e[14] = m) : m = e[14], m;
492
492
  }), Uo = (t) => {
493
- const e = C(5), {
493
+ const e = x(5), {
494
494
  absolutePageIndex: o,
495
495
  itemIndex: n
496
496
  } = t, i = j();
497
497
  let l, s;
498
498
  return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? gt(i.spine.spineItemsManager.get(n)) : o !== void 0 ? i.spine.pages.observeFromAbsolutePageIndex(o).pipe(J((r) => i.spine.spineItemsManager.get(r?.itemIndex))) : $t : $t, s = [n, o, i], e[0] = o, e[1] = n, e[2] = i, e[3] = l, e[4] = s) : (l = e[3], s = e[4]), H(l, s);
499
499
  }, jo = (t) => {
500
- const e = C(9), {
500
+ const e = x(9), {
501
501
  absolutePageIndex: o,
502
502
  itemIndex: n
503
503
  } = t;
@@ -520,7 +520,7 @@ const Vo = (t) => {
520
520
  isReady: c
521
521
  }, e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
522
522
  }, qo = N((t) => {
523
- const e = C(17), {
523
+ const e = x(17), {
524
524
  absolutePageIndex: o,
525
525
  left: n,
526
526
  top: i,
@@ -536,7 +536,7 @@ const Vo = (t) => {
536
536
  data: c
537
537
  } = _t();
538
538
  let d;
539
- e[2] !== o || e[3] !== c ? (d = c?.find((x) => x?.meta?.absolutePageIndex === o && !x.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
539
+ e[2] !== o || e[3] !== c ? (d = c?.find((C) => C?.meta?.absolutePageIndex === o && !C.meta.isCfiRange), e[2] = o, e[3] = c, e[4] = d) : d = e[4];
540
540
  const u = d;
541
541
  if (!r)
542
542
  return null;
@@ -563,7 +563,7 @@ const Vo = (t) => {
563
563
  let v;
564
564
  return e[14] !== h || e[15] !== _ ? (v = /* @__PURE__ */ a(Ye, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: _ }), e[14] = h, e[15] = _, e[16] = v) : v = e[16], v;
565
565
  }), Ko = N(() => {
566
- const t = C(8), e = j();
566
+ const t = x(8), e = j();
567
567
  let o;
568
568
  t[0] !== e?.layoutInfo$ ? (o = () => e?.layoutInfo$, t[0] = e?.layoutInfo$, t[1] = o) : o = t[1];
569
569
  let n;
@@ -594,7 +594,7 @@ const et = !0, Zo = 10, Qo = ({
594
594
  const n = Math.min(e.width, e.height) * (o / 100);
595
595
  return t.x > e.width - n && t.y < n;
596
596
  }, Xo = () => {
597
- const t = C(5), e = ct(), {
597
+ const t = x(5), e = ct(), {
598
598
  data: o
599
599
  } = _t(), n = Ze();
600
600
  let i, l;
@@ -620,21 +620,21 @@ const et = !0, Zo = 10, Qo = ({
620
620
  const S = e.spine.pages.fromSpineItemPageIndex(h, m);
621
621
  if (!S)
622
622
  return et;
623
- const _ = o?.find((x) => x?.meta?.absolutePageIndex === S.absolutePageIndex && x.meta.range === void 0);
623
+ const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
624
624
  if (_)
625
625
  return n.value.onAnnotationDelete?.(_.resource.id), !et;
626
626
  if (f?.[S.absolutePageIndex]) {
627
- const x = e?.annotations.createAnnotation({
627
+ const C = e?.annotations.createAnnotation({
628
628
  absolutePageIndex: S.absolutePageIndex
629
629
  });
630
- return x && n.value.onAnnotationCreate?.(x), !et;
630
+ return C && n.value.onAnnotationCreate?.(C), !et;
631
631
  }
632
632
  }
633
633
  return et;
634
634
  }));
635
635
  }) : void 0, l = [e, o, n], t[0] = o, t[1] = e, t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), oe(i, l);
636
636
  }, Jo = () => {
637
- const t = C(2), e = ct();
637
+ const t = x(2), e = ct();
638
638
  let o;
639
639
  t[0] !== e ? (o = () => e?.gestures.hooks.register("beforeTapGesture", (i) => {
640
640
  const {
@@ -648,11 +648,11 @@ const et = !0, Zo = 10, Qo = ({
648
648
  }));
649
649
  }), t[0] = e, t[1] = o) : o = t[1], pe(o);
650
650
  }, ei = () => {
651
- const t = C(3), e = ct(), o = Ze();
651
+ const t = x(3), e = ct(), o = Ze();
652
652
  let n;
653
653
  t[0] !== o || t[1] !== e ? (n = () => {
654
654
  if (e) {
655
- const l = o.pipe(J(ti), xe()), s = o.pipe(J(ni), xe()), r = St([s, l]).pipe(J(oi));
655
+ const l = o.pipe(J(ti), Ce()), s = o.pipe(J(ni), Ce()), r = St([s, l]).pipe(J(oi));
656
656
  e.annotations.update({
657
657
  annotations$: r
658
658
  });
@@ -673,11 +673,11 @@ function oi(t) {
673
673
  }));
674
674
  }
675
675
  const Qe = () => {
676
- const t = C(2), e = j();
676
+ const t = x(2), e = j();
677
677
  let o;
678
678
  return t[0] !== e ? (o = ko(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
679
679
  }, ii = (t) => {
680
- const e = C(6), o = t === void 0 ? !0 : t, n = Qe();
680
+ const e = x(6), o = t === void 0 ? !0 : t, n = Qe();
681
681
  let i;
682
682
  e[0] !== n?.audio || e[1] !== o ? (i = () => o ? n?.audio.visualizer$ : void 0, e[0] = n?.audio, e[1] = o, e[2] = i) : i = e[2];
683
683
  let l;
@@ -687,12 +687,12 @@ const Qe = () => {
687
687
  } = H(i, l);
688
688
  return s;
689
689
  }, li = (t) => {
690
- const e = C(8), {
690
+ const e = x(8), {
691
691
  enabled: o,
692
692
  trackId: n
693
693
  } = t, i = o === void 0 ? !0 : o, l = Qe();
694
694
  let s;
695
- e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), xe()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
695
+ e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), Ce()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
696
696
  let r;
697
697
  e[4] !== l || e[5] !== i || e[6] !== n ? (r = [i, n, l], e[4] = l, e[5] = i, e[6] = n, e[7] = r) : r = e[7];
698
698
  const {
@@ -749,13 +749,13 @@ const Qe = () => {
749
749
  s.clearRect(0, 0, r, c);
750
750
  const d = bi(o.levels), u = !o.isActive && !d, f = u ? gi(n) : Si(o.levels, n), h = i.length !== f.length ? Array.from({
751
751
  length: f.length
752
- }, () => 0) : i, m = o.isActive ? h.map((x, k) => {
752
+ }, () => 0) : i, m = o.isActive ? h.map((C, k) => {
753
753
  const I = f[k] ?? 0;
754
- return x + (I - x) * 0.28;
754
+ return C + (I - C) * 0.28;
755
755
  }) : [...f], g = Math.round(ye(r / Math.max(m.length, 1) / 2.8, 1, 4)), p = Math.max(2, Math.floor((r - g * (m.length - 1)) / m.length)), b = p * m.length + g * (m.length - 1), S = Math.max(0, (r - b) / 2), _ = c / 2, v = Math.max(Nt, c * (u ? ui : ri));
756
756
  s.fillStyle = l;
757
- for (const [x, k] of m.entries()) {
758
- const I = ye(k, 0, 1), T = m.length === 1 ? 0.5 : x / (m.length - 1), R = Math.abs(T - 0.5) * 2, P = 1 - mt(0, 1, R), E = I * (1 + Vt * P) / (1 + Vt * P * I), M = u ? I : E ** 1.15, w = Math.max(Nt, M * v), A = Math.min(p / 2, w / 2), $ = Math.round(S + x * (p + g)), O = _ - w / 2, z = mt(0, Ht, T) * (1 - mt(1 - Ht, 1, T));
757
+ for (const [C, k] of m.entries()) {
758
+ const I = ye(k, 0, 1), T = m.length === 1 ? 0.5 : C / (m.length - 1), R = Math.abs(T - 0.5) * 2, P = 1 - mt(0, 1, R), E = I * (1 + Vt * P) / (1 + Vt * P * I), M = u ? I : E ** 1.15, w = Math.max(Nt, M * v), A = Math.min(p / 2, w / 2), $ = Math.round(S + C * (p + g)), O = _ - w / 2, z = mt(0, Ht, T) * (1 - mt(1 - Ht, 1, T));
759
759
  s.globalAlpha = ye((u ? hi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, w, A), s.fill();
760
760
  }
761
761
  return s.globalAlpha = 1, m;
@@ -763,8 +763,8 @@ const Qe = () => {
763
763
  levels: [],
764
764
  isActive: !1,
765
765
  trackId: void 0
766
- }, xi = (t) => {
767
- const e = C(21), {
766
+ }, Ci = (t) => {
767
+ const e = x(21), {
768
768
  visualizer: o
769
769
  } = t, n = vn({
770
770
  base: 29,
@@ -824,7 +824,7 @@ const Qe = () => {
824
824
  e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
825
825
  c.current !== void 0 && (cancelAnimationFrame(c.current), c.current = void 0);
826
826
  }, e[7] = v) : v = e[7];
827
- const x = v;
827
+ const C = v;
828
828
  let k;
829
829
  e[8] !== _ ? (k = () => {
830
830
  if (c.current !== void 0)
@@ -859,8 +859,8 @@ const Qe = () => {
859
859
  I();
860
860
  return;
861
861
  }
862
- x(), _();
863
- }, E = [_, I, x, o], e[12] = _, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), oe(P, E);
862
+ C(), _();
863
+ }, E = [_, I, C, o], e[12] = _, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), oe(P, E);
864
864
  let M, w;
865
865
  e[17] !== R ? (M = () => {
866
866
  const $ = r.current;
@@ -871,9 +871,9 @@ const Qe = () => {
871
871
  R();
872
872
  });
873
873
  return O.observe($), () => {
874
- x(), O.disconnect();
874
+ C(), O.disconnect();
875
875
  };
876
- }, w = [R, x], e[17] = R, e[18] = M, e[19] = w) : (M = e[18], w = e[19]), oe(M, w);
876
+ }, w = [R, C], e[17] = R, e[18] = M, e[19] = w) : (M = e[18], w = e[19]), oe(M, w);
877
877
  let A;
878
878
  return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(le, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
879
879
  "--audio-wave-top-color": "colors.colorPalette.emphasized",
@@ -882,8 +882,8 @@ const Qe = () => {
882
882
  WebkitMaskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)",
883
883
  maskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)"
884
884
  }, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = A) : A = e[20], A;
885
- }, Ci = (t) => {
886
- const e = C(16), {
885
+ }, xi = (t) => {
886
+ const e = x(16), {
887
887
  item: o
888
888
  } = t, n = Qe();
889
889
  let i;
@@ -906,21 +906,21 @@ const Qe = () => {
906
906
  return null;
907
907
  const g = h ? m : void 0;
908
908
  let p;
909
- e[11] !== g ? (p = /* @__PURE__ */ a(xi, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
909
+ e[11] !== g ? (p = /* @__PURE__ */ a(Ci, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
910
  let b;
911
911
  return e[13] !== d || e[14] !== p ? (b = wt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
912
912
  }, yi = N((t) => {
913
- const e = C(7), {
913
+ const e = x(7), {
914
914
  item: o
915
915
  } = t, n = o.containerElement;
916
916
  let i;
917
- e[0] !== o ? (i = /* @__PURE__ */ a(Ci, { item: o }), e[0] = o, e[1] = i) : i = e[1];
917
+ e[0] !== o ? (i = /* @__PURE__ */ a(xi, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
918
  let l;
919
919
  e[2] !== n || e[3] !== i ? (l = wt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
920
920
  let s;
921
921
  return e[5] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
922
922
  }), Ii = N((t) => {
923
- const e = C(18), {
923
+ const e = x(18), {
924
924
  children: o
925
925
  } = t, n = j();
926
926
  let i;
@@ -954,13 +954,13 @@ const Qe = () => {
954
954
  function ki(t) {
955
955
  return /* @__PURE__ */ a(yi, { item: t }, t.index);
956
956
  }
957
- const Rt = xn({
957
+ const Rt = Cn({
958
958
  placement: "bottom-end",
959
959
  pauseOnPageIdle: !0
960
960
  }), Ti = () => {
961
- const t = C(1);
961
+ const t = x(1);
962
962
  let e;
963
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(pt, { children: /* @__PURE__ */ a(Cn, { toaster: Rt, insetInline: {
963
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(pt, { children: /* @__PURE__ */ a(xn, { toaster: Rt, insetInline: {
964
964
  mdDown: "4"
965
965
  }, children: $i }) }), t[0] = e) : e = t[0], e;
966
966
  };
@@ -978,7 +978,7 @@ function $i(t) {
978
978
  ] });
979
979
  }
980
980
  const Ri = (t) => {
981
- const e = C(25);
981
+ const e = x(25);
982
982
  let o, n;
983
983
  e[0] !== t ? ({
984
984
  children: o,
@@ -1025,10 +1025,10 @@ const Ri = (t) => {
1025
1025
  _onQuickMenuOpenChange: f
1026
1026
  }));
1027
1027
  }, v = [S, f, i, r, d, b, p], e[13] = f, e[14] = S, e[15] = r, e[16] = d, e[17] = p, e[18] = b, e[19] = i, e[20] = _, e[21] = v) : (_ = e[20], v = e[21]), oe(_, v);
1028
- let x;
1029
- return e[22] !== o || e[23] !== i ? (x = /* @__PURE__ */ a(At.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = x) : x = e[24], x;
1028
+ let C;
1029
+ return e[22] !== o || e[23] !== i ? (C = /* @__PURE__ */ a(At.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = C) : C = e[24], C;
1030
1030
  }, Mi = N((t) => {
1031
- const e = C(6);
1031
+ const e = x(6);
1032
1032
  let o, n;
1033
1033
  e[0] !== t ? ({
1034
1034
  children: o,
@@ -1043,7 +1043,7 @@ function Oi() {
1043
1043
  });
1044
1044
  }
1045
1045
  const nt = de.forwardRef(function(e, o) {
1046
- const n = C(16);
1046
+ const n = x(16);
1047
1047
  let i, l, s, r;
1048
1048
  n[0] !== e ? ({
1049
1049
  children: i,
@@ -1064,12 +1064,12 @@ const nt = de.forwardRef(function(e, o) {
1064
1064
  u
1065
1065
  ] }), n[11] = s, n[12] = r, n[13] = c, n[14] = u, n[15] = f) : f = n[15], f;
1066
1066
  }), gn = tt.Root, zt = de.memo(function(e) {
1067
- const o = C(29);
1067
+ const o = x(29);
1068
1068
  let n, i, l, s, r, c, d;
1069
1069
  if (o[0] !== e) {
1070
1070
  const {
1071
1071
  ref: v,
1072
- ...x
1072
+ ...C
1073
1073
  } = e;
1074
1074
  l = v;
1075
1075
  const {
@@ -1077,8 +1077,8 @@ const nt = de.forwardRef(function(e, o) {
1077
1077
  label: I,
1078
1078
  showValue: T,
1079
1079
  ...R
1080
- } = x;
1081
- n = I, r = T, s = R, d = x.defaultValue ?? x.value, i = k?.map(Pi), c = i?.some(Ei), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
1080
+ } = C;
1081
+ n = I, r = T, s = R, d = C.defaultValue ?? C.value, i = k?.map(Pi), c = i?.some(Ei), o[0] = e, o[1] = n, o[2] = i, o[3] = l, o[4] = s, o[5] = r, o[6] = c, o[7] = d;
1082
1082
  } else
1083
1083
  n = o[1], i = o[2], l = o[3], s = o[4], r = o[5], c = o[6], d = o[7];
1084
1084
  const u = !!c;
@@ -1110,7 +1110,7 @@ const nt = de.forwardRef(function(e, o) {
1110
1110
  ] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = S, o[28] = _) : _ = o[28], _;
1111
1111
  });
1112
1112
  function wi(t) {
1113
- const e = C(2), {
1113
+ const e = x(2), {
1114
1114
  value: o
1115
1115
  } = t;
1116
1116
  let n;
@@ -1120,7 +1120,7 @@ function Ai(t, e) {
1120
1120
  return /* @__PURE__ */ a(fe.Thumb, { index: e, children: /* @__PURE__ */ a(fe.HiddenInput, {}) }, e);
1121
1121
  }
1122
1122
  const zi = de.forwardRef(function(e, o) {
1123
- const n = C(5), {
1123
+ const n = x(5), {
1124
1124
  marks: i
1125
1125
  } = e;
1126
1126
  if (!i?.length)
@@ -1159,7 +1159,7 @@ const Pt = [{
1159
1159
  if (t)
1160
1160
  return Pt.find((e) => e.references.includes(t))?.value;
1161
1161
  }, Li = N(() => {
1162
- const t = C(52), e = Ze();
1162
+ const t = x(52), e = Ze();
1163
1163
  let o;
1164
1164
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["fontSizeMenuOpen", "onFontSizeMenuOpenChange", "fontSize", "fontSizeMin", "fontSizeMax", "fontSizeScope", "onFontSizeChange", "onFontSizeScopeChange", "uncontrolledFontSize", "fontSizeValues"], t[0] = o) : o = t[0];
1165
1165
  const {
@@ -1184,7 +1184,7 @@ const Pt = [{
1184
1184
  const _ = S;
1185
1185
  let v;
1186
1186
  t[4] !== m || t[5] !== u ? (v = (L) => u?.[L] ?? m, t[4] = m, t[5] = u, t[6] = v) : v = t[6];
1187
- const x = v;
1187
+ const C = v;
1188
1188
  let k;
1189
1189
  t[7] !== h ? (k = (L) => {
1190
1190
  const re = L.value;
@@ -1213,17 +1213,17 @@ const Pt = [{
1213
1213
  let $;
1214
1214
  t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Font size" }) }), t[18] = $) : $ = t[18];
1215
1215
  let O, z;
1216
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(Ce.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(Ce.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = O, t[20] = z) : (O = t[19], z = t[20]);
1216
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(xe.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(xe.HelperText, { children: "The scope to which apply the font size for this book." }), t[19] = O, t[20] = z) : (O = t[19], z = t[20]);
1217
1217
  let D;
1218
1218
  t[21] !== d ? (D = Fi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
1219
  const F = !h;
1220
1220
  let Y;
1221
1221
  t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(ce, { gap: 2, children: Bi.map(Ni) }), t[23] = Y) : Y = t[23];
1222
1222
  let V;
1223
- t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(Ce.Root, { children: [
1223
+ t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(xe.Root, { children: [
1224
1224
  O,
1225
1225
  z,
1226
- /* @__PURE__ */ a(Ce.Content, { children: /* @__PURE__ */ a(gn, { onValueChange: I, value: D, disabled: F, children: Y }) })
1226
+ /* @__PURE__ */ a(xe.Content, { children: /* @__PURE__ */ a(gn, { onValueChange: I, value: D, disabled: F, children: Y }) })
1227
1227
  ] }), t[24] = I, t[25] = D, t[26] = F, t[27] = V) : V = t[27];
1228
1228
  let G;
1229
1229
  t[28] !== d ? (G = Ut.map((L) => /* @__PURE__ */ y(me.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
@@ -1233,7 +1233,7 @@ const Pt = [{
1233
1233
  let W;
1234
1234
  t[30] !== G ? (W = /* @__PURE__ */ a(me.List, { children: G }), t[30] = G, t[31] = W) : W = t[31];
1235
1235
  let q;
1236
- t[32] !== c || t[33] !== r || t[34] !== x || t[35] !== E ? (q = Ut.map((L) => /* @__PURE__ */ a(me.Content, { value: L, children: /* @__PURE__ */ a(zt, { label: "%", value: [(x(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1236
+ t[32] !== c || t[33] !== r || t[34] !== C || t[35] !== E ? (q = Ut.map((L) => /* @__PURE__ */ a(me.Content, { value: L, children: /* @__PURE__ */ a(zt, { label: "%", value: [(C(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1237
1237
  value: 100,
1238
1238
  label: "Publisher"
1239
1239
  }, {
@@ -1242,7 +1242,7 @@ const Pt = [{
1242
1242
  }, {
1243
1243
  value: c * 100,
1244
1244
  label: `${c * 100}%`
1245
- }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = x, t[35] = E, t[36] = q) : q = t[36];
1245
+ }], max: c * 100, min: r * 100, width: "100%", step: 10 }) }, L)), t[32] = c, t[33] = r, t[34] = C, t[35] = E, t[36] = q) : q = t[36];
1246
1246
  let Z;
1247
1247
  t[37] !== W || t[38] !== q || t[39] !== p ? (Z = /* @__PURE__ */ y(me.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1248
1248
  W,
@@ -1269,7 +1269,7 @@ function Ni(t) {
1269
1269
  return /* @__PURE__ */ a(nt, { value: t, children: t }, t);
1270
1270
  }
1271
1271
  const Hi = () => {
1272
- const t = C(8), e = j(), o = Ze();
1272
+ const t = x(8), e = j(), o = Ze();
1273
1273
  let n;
1274
1274
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["fontSize", "uncontrolledFontSize", "onFontSizeChange"], t[0] = n) : n = t[0];
1275
1275
  const {
@@ -1312,7 +1312,7 @@ const Wi = {
1312
1312
  right: 0
1313
1313
  };
1314
1314
  function Gi() {
1315
- const t = C(7), [e, o] = ne(null), [n, i] = ne(Wi);
1315
+ const t = x(7), [e, o] = ne(null), [n, i] = ne(Wi);
1316
1316
  let l;
1317
1317
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = new ResizeObserver((u) => {
1318
1318
  if (u[0]) {
@@ -1350,7 +1350,7 @@ function Gi() {
1350
1350
  return t[4] !== e || t[5] !== n ? (d = [o, n, e], t[4] = e, t[5] = n, t[6] = d) : d = t[6], d;
1351
1351
  }
1352
1352
  const Ui = (t, e, o) => {
1353
- const n = C(7), i = j();
1353
+ const n = x(7), i = j();
1354
1354
  let l;
1355
1355
  n[0] !== i ? (l = dn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1356
1356
  const s = l;
@@ -1358,7 +1358,7 @@ const Ui = (t, e, o) => {
1358
1358
  n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (r = () => {
1359
1359
  if (!s || !t)
1360
1360
  return at;
1361
- const d = e.didLayout$.pipe(Qt(e.layoutInfo), xe(ln)), u = oo(t).pipe(J(qi));
1361
+ const d = e.didLayout$.pipe(Qt(e.layoutInfo), Ce(ln)), u = oo(t).pipe(J(qi));
1362
1362
  return d.pipe(Xt(100, void 0, {
1363
1363
  trailing: !0
1364
1364
  }), be(() => u.pipe(bt((f) => {
@@ -1376,7 +1376,7 @@ function Ki(t) {
1376
1376
  return t;
1377
1377
  }
1378
1378
  const Yi = N((t) => {
1379
- const e = C(16), {
1379
+ const e = x(16), {
1380
1380
  item: o,
1381
1381
  onNavigated: n
1382
1382
  } = t, [i, l, s] = Gi(), r = j();
@@ -1408,7 +1408,7 @@ const Yi = N((t) => {
1408
1408
  g
1409
1409
  ] }), e[12] = f, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
1410
1410
  }), Zi = N((t) => {
1411
- const e = C(23), {
1411
+ const e = x(23), {
1412
1412
  open: o,
1413
1413
  setOpen: n
1414
1414
  } = t, i = j();
@@ -1449,8 +1449,8 @@ const Yi = N((t) => {
1449
1449
  ] }), e[17] = g, e[18] = S) : S = e[18];
1450
1450
  let _;
1451
1451
  return e[19] !== o || e[20] !== S || e[21] !== c ? (_ = /* @__PURE__ */ a(Te, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: d, scrollBehavior: "inside", children: S }), e[19] = o, e[20] = S, e[21] = c, e[22] = _) : _ = e[22], _;
1452
- }), Qi = "@prose-reader/react-reader", Xi = "1.293.0", Ji = N((t) => {
1453
- const e = C(16), {
1452
+ }), Qi = "@prose-reader/react-reader", Xi = "1.294.0", Ji = N((t) => {
1453
+ const e = x(16), {
1454
1454
  open: o,
1455
1455
  setOpen: n
1456
1456
  } = t;
@@ -1515,7 +1515,7 @@ const Yi = N((t) => {
1515
1515
  let b;
1516
1516
  return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(Te, { lazyMount: !0, placement: "center", open: o, onOpenChange: i, size: l, scrollBehavior: "inside", children: p }), e[13] = o, e[14] = i, e[15] = b) : b = e[15], b;
1517
1517
  }), Xe = () => {
1518
- const t = C(3), e = j();
1518
+ const t = x(3), e = j();
1519
1519
  let o, n;
1520
1520
  return t[0] !== e ? (o = () => e ? St([e.pagination.state$, e.context]).pipe(J(tl)) : at, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1521
1521
  };
@@ -1533,7 +1533,7 @@ const nl = {
1533
1533
  _open: "fade-in",
1534
1534
  _closed: "fade-out"
1535
1535
  }, ol = () => {
1536
- const t = C(6);
1536
+ const t = x(6);
1537
1537
  let e;
1538
1538
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
1539
1539
  const {
@@ -1551,7 +1551,7 @@ const nl = {
1551
1551
  let d;
1552
1552
  return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Ye, { present: r, animationName: nl, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1553
1553
  }, il = () => {
1554
- const t = C(3);
1554
+ const t = x(3);
1555
1555
  let e;
1556
1556
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
1557
1557
  const [o, n] = ne(e);
@@ -1563,7 +1563,7 @@ const nl = {
1563
1563
  return () => clearInterval(s);
1564
1564
  }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), oe(i, l), o;
1565
1565
  }, ll = (t) => {
1566
- const e = C(5), o = il();
1566
+ const e = x(5), o = il();
1567
1567
  let n;
1568
1568
  e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
1569
1569
  hour: "2-digit",
@@ -1572,11 +1572,11 @@ const nl = {
1572
1572
  let i;
1573
1573
  return e[2] !== t || e[3] !== n ? (i = /* @__PURE__ */ a(U, { fontSize: "sm", ...t, children: n }), e[2] = t, e[3] = n, e[4] = i) : i = e[4], i;
1574
1574
  }, sl = N(() => {
1575
- const t = C(1);
1575
+ const t = x(1);
1576
1576
  let e;
1577
1577
  return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(le, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(ll, {}) }), t[0] = e) : e = t[0], e;
1578
1578
  }), rl = (t, e) => {
1579
- const o = C(4), [n, i] = ne();
1579
+ const o = x(4), [n, i] = ne();
1580
1580
  let l, s;
1581
1581
  return o[0] !== e || o[1] !== t ? (l = () => {
1582
1582
  if (t === void 0) {
@@ -1625,7 +1625,7 @@ const nl = {
1625
1625
  reader: e
1626
1626
  }) => St([t, e.spineItemsManager.items$]).pipe(J(([{
1627
1627
  beginSpineItemIndex: o
1628
- }, n]) => o === void 0 ? void 0 : n[o]), xe(), be((o) => o?.isReady$ ?? gt(!1))), bl = (t) => {
1628
+ }, n]) => o === void 0 ? void 0 : n[o]), Ce(), be((o) => o?.isReady$ ?? gt(!1))), bl = (t) => {
1629
1629
  const e = gl(t), o = pl({
1630
1630
  pagination$: e,
1631
1631
  reader: t
@@ -1639,25 +1639,25 @@ const nl = {
1639
1639
  viewportState: s,
1640
1640
  viewport: r
1641
1641
  });
1642
- }), xe());
1642
+ }), Ce());
1643
1643
  }, Sl = () => {
1644
- const t = C(3), e = j();
1644
+ const t = x(3), e = j();
1645
1645
  let o, n;
1646
1646
  return t[0] !== e ? (o = () => e ? bl(e) : at, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1647
1647
  }, _l = N(() => {
1648
- const t = C(6), e = Sl(), o = rl(e, fl), n = o !== void 0;
1648
+ const t = x(6), e = Sl(), o = rl(e, fl), n = o !== void 0;
1649
1649
  let i;
1650
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "rgba(12, 12, 12, 0.56)", borderRadius: "full", boxShadow: "0 16px 40px rgba(0, 0, 0, 0.24)", className: cl.pulse, color: "white", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(ro, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1650
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(le, { alignItems: "center", bg: "rgba(12, 12, 12, 0.56)", borderRadius: "full", shadow: "2xl", className: cl.pulse, color: "white", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(ro, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1651
1651
  let l;
1652
1652
  t[1] !== o ? (l = /* @__PURE__ */ a(le, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, children: i }, o), t[1] = o, t[2] = l) : l = t[2];
1653
1653
  let s;
1654
1654
  return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Ye, { present: n, lazyMount: !0, animationName: ul, animationDuration: "moderate", children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
1655
1655
  }), vl = () => {
1656
- const t = C(2), e = j();
1656
+ const t = x(2), e = j();
1657
1657
  let o;
1658
- t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(xl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1658
+ t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Cl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1659
1659
  };
1660
- function xl(t) {
1660
+ function Cl(t) {
1661
1661
  if (t.type === "click" && lo(t.target, "a")) {
1662
1662
  if (!t.target.href)
1663
1663
  return;
@@ -1665,8 +1665,8 @@ function xl(t) {
1665
1665
  window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
1666
1666
  }
1667
1667
  }
1668
- const Cl = () => {
1669
- const t = C(3);
1668
+ const xl = () => {
1669
+ const t = x(3);
1670
1670
  let e;
1671
1671
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
1672
1672
  const {
@@ -1696,7 +1696,7 @@ const Cl = () => {
1696
1696
  }))));
1697
1697
  })), t[1] = o, t[2] = n) : n = t[2], pe(n);
1698
1698
  }, yl = kn(_o), pn = N((t) => {
1699
- const e = C(10);
1699
+ const e = x(10);
1700
1700
  let o;
1701
1701
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1702
1702
  "--bg": "colors.bg",
@@ -1759,7 +1759,7 @@ const Cl = () => {
1759
1759
  let d;
1760
1760
  return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(le, { display: "contents", css: o, children: /* @__PURE__ */ a(yl, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1761
1761
  }), Il = () => {
1762
- const t = C(4), e = Qe();
1762
+ const t = x(4), e = Qe();
1763
1763
  let o;
1764
1764
  t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
1765
1765
  let n;
@@ -1773,7 +1773,7 @@ const Cl = () => {
1773
1773
  const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
1774
1774
  return o > 0 ? [o, n, i].map((l) => String(l).padStart(2, "0")).join(":") : [n, i].map((l) => String(l).padStart(2, "0")).join(":");
1775
1775
  }, kl = (t) => {
1776
- const e = C(42), o = Qe(), n = Il(), i = !!n?.currentTrack || (n?.tracks.length ?? 0) > 0, l = n?.duration, s = Math.max(0, l ?? 0), r = typeof l == "number" && l > 0 ? l : void 0, c = r !== void 0, d = r ?? 1, u = c ? Math.min(Math.max(0, n?.currentTime ?? 0), r) : 0, f = !i || !!n?.isLoading || !c, [h, m] = ne(u), g = ot(Tl);
1776
+ const e = x(42), o = Qe(), n = Il(), i = !!n?.currentTrack || (n?.tracks.length ?? 0) > 0, l = n?.duration, s = Math.max(0, l ?? 0), r = typeof l == "number" && l > 0 ? l : void 0, c = r !== void 0, d = r ?? 1, u = c ? Math.min(Math.max(0, n?.currentTime ?? 0), r) : 0, f = !i || !!n?.isLoading || !c, [h, m] = ne(u), g = ot(Tl);
1777
1777
  let p;
1778
1778
  if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J($l), bt((z) => {
1779
1779
  g.value || (m(z), g.next(!1));
@@ -1785,10 +1785,10 @@ const Cl = () => {
1785
1785
  o?.audio.toggle();
1786
1786
  }, e[3] = o?.audio, e[4] = _) : _ = e[4];
1787
1787
  const v = !i || n.isLoading;
1788
- let x;
1789
- e[5] !== n.isPlaying ? (x = n.isPlaying ? /* @__PURE__ */ a(Dn, {}) : /* @__PURE__ */ a(Bn, {}), e[5] = n.isPlaying, e[6] = x) : x = e[6];
1788
+ let C;
1789
+ e[5] !== n.isPlaying ? (C = n.isPlaying ? /* @__PURE__ */ a(Dn, {}) : /* @__PURE__ */ a(Bn, {}), e[5] = n.isPlaying, e[6] = C) : C = e[6];
1790
1790
  let k;
1791
- e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== x ? (k = /* @__PURE__ */ a(te, { "aria-label": S, size: "sm", variant: "ghost", onClick: _, disabled: v, children: x }), e[7] = S, e[8] = _, e[9] = v, e[10] = x, e[11] = k) : k = e[11];
1791
+ e[7] !== S || e[8] !== _ || e[9] !== v || e[10] !== C ? (k = /* @__PURE__ */ a(te, { "aria-label": S, size: "sm", variant: "ghost", onClick: _, disabled: v, children: C }), e[7] = S, e[8] = _, e[9] = v, e[10] = C, e[11] = k) : k = e[11];
1792
1792
  let I;
1793
1793
  e[12] !== g ? (I = (z) => {
1794
1794
  const D = Array.isArray(z) ? z[0] : z;
@@ -1836,9 +1836,9 @@ function $l(t) {
1836
1836
  return t.currentTime;
1837
1837
  }
1838
1838
  const Rl = () => {
1839
- const t = C(4), e = Qe();
1839
+ const t = x(4), e = Qe();
1840
1840
  let o;
1841
- t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(Ml), xe()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1841
+ t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(Ml), Ce()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1842
1842
  let n;
1843
1843
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
1844
1844
  const {
@@ -1850,7 +1850,7 @@ function Ml(t) {
1850
1850
  return t.length > 0;
1851
1851
  }
1852
1852
  const Ol = de.forwardRef(function(e, o) {
1853
- const n = C(26);
1853
+ const n = x(26);
1854
1854
  let i, l, s, r, c, d;
1855
1855
  n[0] !== e ? ({
1856
1856
  showArrow: c,
@@ -1884,7 +1884,7 @@ const Ol = de.forwardRef(function(e, o) {
1884
1884
  b
1885
1885
  ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
1886
1886
  }), wl = de.forwardRef(function(e, o) {
1887
- const n = C(8);
1887
+ const n = x(8);
1888
1888
  let i, l;
1889
1889
  n[0] !== e ? ({
1890
1890
  children: i,
@@ -1895,14 +1895,14 @@ const Ol = de.forwardRef(function(e, o) {
1895
1895
  let r;
1896
1896
  return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(Ol, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1897
1897
  }), Al = de.forwardRef(function(e, o) {
1898
- const n = C(4);
1898
+ const n = x(4);
1899
1899
  let i;
1900
1900
  n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(it.Range, {}), n[0] = i) : i = n[0];
1901
1901
  let l;
1902
1902
  return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(it.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1903
1903
  });
1904
1904
  de.forwardRef(function(e, o) {
1905
- const n = C(11);
1905
+ const n = x(11);
1906
1906
  let i, l, s;
1907
1907
  n[0] !== e ? ({
1908
1908
  children: i,
@@ -1931,7 +1931,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
1931
1931
  rightPageIndex: r
1932
1932
  };
1933
1933
  }, El = () => {
1934
- const t = C(24), e = Xe(), {
1934
+ const t = x(24), e = Xe(), {
1935
1935
  hasOnlyOnePage: o,
1936
1936
  leftPageIndex: n,
1937
1937
  rightPageIndex: i,
@@ -1943,7 +1943,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
1943
1943
  const c = r;
1944
1944
  let d;
1945
1945
  if (t[2] !== e?.beginChapterInfo) {
1946
- const v = (x) => x?.subChapter ? `${x.title} / ${v(x.subChapter)}` : x?.title || "";
1946
+ const v = (C) => C?.subChapter ? `${C.title} / ${v(C.subChapter)}` : C?.title || "";
1947
1947
  d = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = d;
1948
1948
  } else
1949
1949
  d = t[3];
@@ -1980,7 +1980,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
1980
1980
  S
1981
1981
  ] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
1982
1982
  }, bn = N((t) => {
1983
- const e = C(12);
1983
+ const e = x(12);
1984
1984
  let o, n, i;
1985
1985
  e[0] !== t ? ({
1986
1986
  children: o,
@@ -2002,7 +2002,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2002
2002
  let r;
2003
2003
  return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Ye, { display: "flex", flexDirection: "row", width: "100%", position: "absolute", ...l, animationName: s, animationDuration: "moderate", bgColor: "bg.panel", alignItems: "center", justifyContent: "center", shadow: "md", p: 4, ...i, children: o }), e[7] = o, e[8] = i, e[9] = l, e[10] = s, e[11] = r) : r = e[11], r;
2004
2004
  }), Dl = () => {
2005
- const t = C(10), o = Xe()?.isUsingSpread, {
2005
+ const t = x(10), o = Xe()?.isUsingSpread, {
2006
2006
  beginPageIndex: n,
2007
2007
  totalApproximatePages: i
2008
2008
  } = Et(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
@@ -2023,7 +2023,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2023
2023
  max: u
2024
2024
  }, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
2025
2025
  }, Bl = (t) => {
2026
- const e = C(21), o = j(), n = Xe(), {
2026
+ const e = x(21), o = j(), n = Xe(), {
2027
2027
  data: i
2028
2028
  } = H(() => o?.context, [o]) ?? {};
2029
2029
  let l;
@@ -2067,7 +2067,7 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2067
2067
  let T;
2068
2068
  return e[14] !== b || e[15] !== p || e[16] !== _ || e[17] !== t || e[18] !== r || e[19] !== I ? (T = /* @__PURE__ */ a(pn, { value: I, max: b, min: p, reverse: r, step: 1, onChange: _, ...t }), e[14] = b, e[15] = p, e[16] = _, e[17] = t, e[18] = r, e[19] = I, e[20] = T) : T = e[20], T;
2069
2069
  }, Fl = N((t) => {
2070
- const e = C(109), {
2070
+ const e = x(109), {
2071
2071
  open: o,
2072
2072
  onItemClick: n
2073
2073
  } = t, i = _e(null), l = j();
@@ -2098,13 +2098,13 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2098
2098
  e[11] !== l ? (S = [l], e[11] = l, e[12] = S) : S = e[12];
2099
2099
  const {
2100
2100
  data: _
2101
- } = H(b, S), v = _ === "in", x = _ === "out", k = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", T = Rl(), [R, P] = ne(!0);
2101
+ } = H(b, S), v = _ === "in", C = _ === "out", k = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", T = Rl(), [R, P] = ne(!0);
2102
2102
  let E, M;
2103
2103
  e[13] !== r ? (E = () => {
2104
2104
  if (!i.current)
2105
2105
  return;
2106
- const ht = new ResizeObserver((Ct) => {
2107
- for (const Sn of Ct)
2106
+ const ht = new ResizeObserver((xt) => {
2107
+ for (const Sn of xt)
2108
2108
  r.update(Sn);
2109
2109
  });
2110
2110
  return ht.observe(i.current), () => {
@@ -2149,9 +2149,9 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2149
2149
  let Z;
2150
2150
  e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = (ht) => {
2151
2151
  const {
2152
- open: Ct
2152
+ open: xt
2153
2153
  } = ht;
2154
- P(Ct);
2154
+ P(xt);
2155
2155
  }, e[39] = Z) : Z = e[39];
2156
2156
  const K = R ? "rotate(0deg)" : "rotate(180deg)";
2157
2157
  let Q;
@@ -2202,20 +2202,20 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2202
2202
  e[75] !== k || e[76] !== d || e[77] !== l ? (Ne = fn(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2203
2203
  d(!0);
2204
2204
  }, disabled: !k, children: /* @__PURE__ */ a(ao, {}) }), e[75] = k, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
2205
- const xt = x ? "solid" : "ghost";
2205
+ const Ct = C ? "solid" : "ghost";
2206
2206
  let He;
2207
- e[79] !== x || e[80] !== l?.zoom ? (He = () => {
2208
- x ? l?.zoom.exit({
2207
+ e[79] !== C || e[80] !== l?.zoom ? (He = () => {
2208
+ C ? l?.zoom.exit({
2209
2209
  animate: !0
2210
2210
  }) : l?.zoom.enter({
2211
2211
  animate: !0,
2212
2212
  scale: 0.5
2213
2213
  });
2214
- }, e[79] = x, e[80] = l?.zoom, e[81] = He) : He = e[81];
2214
+ }, e[79] = C, e[80] = l?.zoom, e[81] = He) : He = e[81];
2215
2215
  let ft;
2216
2216
  e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(Gn, {}), e[82] = ft) : ft = e[82];
2217
2217
  let Ve;
2218
- e[83] !== xt || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: xt, onClick: He, children: ft }), e[83] = xt, e[84] = He, e[85] = Ve) : Ve = e[85];
2218
+ e[83] !== Ct || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: Ct, onClick: He, children: ft }), e[83] = Ct, e[84] = He, e[85] = Ve) : Ve = e[85];
2219
2219
  let We;
2220
2220
  e[86] !== n || e[87] !== l ? (We = dn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(mo, {}) }), e[86] = n, e[87] = l, e[88] = We) : We = e[88];
2221
2221
  let Ge;
@@ -2247,7 +2247,7 @@ function Ll(t) {
2247
2247
  return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
2248
2248
  }
2249
2249
  const Nl = () => {
2250
- const t = C(5), [e, o] = ne(!1);
2250
+ const t = x(5), [e, o] = ne(!1);
2251
2251
  let n;
2252
2252
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
2253
2253
  o(!1);
@@ -2272,7 +2272,7 @@ const Nl = () => {
2272
2272
  onToggleFullscreenClick: i
2273
2273
  }, t[3] = e, t[4] = r) : r = t[4], r;
2274
2274
  }, Hl = N((t) => {
2275
- const e = C(29), {
2275
+ const e = x(29), {
2276
2276
  open: o,
2277
2277
  onItemClick: n
2278
2278
  } = t, i = j();
@@ -2289,7 +2289,7 @@ const Nl = () => {
2289
2289
  let u;
2290
2290
  e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
2291
2291
  let f;
2292
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(xo, {}), e[6] = f) : f = e[6];
2292
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Co, {}), e[6] = f) : f = e[6];
2293
2293
  let h;
2294
2294
  e[7] !== u ? (h = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: u, children: f }), e[7] = u, e[8] = h) : h = e[8];
2295
2295
  const m = r?.title;
@@ -2298,26 +2298,26 @@ const Nl = () => {
2298
2298
  let p;
2299
2299
  e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
2300
2300
  let b;
2301
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(Co, {}), e[13] = b) : b = e[13];
2301
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(xo, {}), e[13] = b) : b = e[13];
2302
2302
  let S;
2303
2303
  e[14] !== p ? (S = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: p, children: b }), e[14] = p, e[15] = S) : S = e[15];
2304
2304
  let _;
2305
2305
  e[16] !== c ? (_ = c ? /* @__PURE__ */ a(co, {}) : /* @__PURE__ */ a(fo, {}), e[16] = c, e[17] = _) : _ = e[17];
2306
2306
  let v;
2307
2307
  e[18] !== d || e[19] !== _ ? (v = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: d, children: _ }), e[18] = d, e[19] = _, e[20] = v) : v = e[20];
2308
- let x;
2309
- e[21] !== S || e[22] !== v ? (x = /* @__PURE__ */ y(ce, { children: [
2308
+ let C;
2309
+ e[21] !== S || e[22] !== v ? (C = /* @__PURE__ */ y(ce, { children: [
2310
2310
  S,
2311
2311
  v
2312
- ] }), e[21] = S, e[22] = v, e[23] = x) : x = e[23];
2312
+ ] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
2313
2313
  let k;
2314
- return e[24] !== o || e[25] !== x || e[26] !== h || e[27] !== g ? (k = /* @__PURE__ */ y(bn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2314
+ return e[24] !== o || e[25] !== C || e[26] !== h || e[27] !== g ? (k = /* @__PURE__ */ y(bn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2315
2315
  h,
2316
2316
  g,
2317
- x
2318
- ] }), e[24] = o, e[25] = x, e[26] = h, e[27] = g, e[28] = k) : k = e[28], k;
2317
+ C
2318
+ ] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = k) : k = e[28], k;
2319
2319
  }), Dt = () => {
2320
- const t = C(4);
2320
+ const t = x(4);
2321
2321
  let e;
2322
2322
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
2323
2323
  const {
@@ -2329,7 +2329,7 @@ const Nl = () => {
2329
2329
  let c;
2330
2330
  return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
2331
2331
  }, Vl = N((t) => {
2332
- const e = C(10), {
2332
+ const e = x(10), {
2333
2333
  onItemClick: o
2334
2334
  } = t, [n] = Dt();
2335
2335
  let i;
@@ -2350,7 +2350,7 @@ const Nl = () => {
2350
2350
  f
2351
2351
  ] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
2352
2352
  }), Wl = () => {
2353
- const t = C(3), [, e] = Dt(), o = j();
2353
+ const t = x(3), [, e] = Dt(), o = j();
2354
2354
  let n;
2355
2355
  t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(st(Gl), Ot(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), bt((l) => {
2356
2356
  const [, s, r] = l;
@@ -2364,7 +2364,7 @@ function Ul(t) {
2364
2364
  return !t;
2365
2365
  }
2366
2366
  const jl = de.forwardRef(function(e, o) {
2367
- const n = C(21);
2367
+ const n = x(21);
2368
2368
  let i, l, s, r, c, d;
2369
2369
  n[0] !== e ? ({
2370
2370
  label: r,
@@ -2391,7 +2391,7 @@ const jl = de.forwardRef(function(e, o) {
2391
2391
  h
2392
2392
  ] }), n[14] = i, n[15] = o, n[16] = d, n[17] = u, n[18] = f, n[19] = h, n[20] = m) : m = n[20], m;
2393
2393
  }), ql = N(() => {
2394
- const t = C(39);
2394
+ const t = x(39);
2395
2395
  let e;
2396
2396
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
2397
2397
  const {
@@ -2413,7 +2413,7 @@ const jl = de.forwardRef(function(e, o) {
2413
2413
  let f;
2414
2414
  t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2415
2415
  let h;
2416
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(Ce.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2416
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(xe.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2417
2417
  let m;
2418
2418
  t[11] !== s?.refit ? (m = ($) => {
2419
2419
  const O = $.value;
@@ -2438,7 +2438,7 @@ const jl = de.forwardRef(function(e, o) {
2438
2438
  ] }), t[16] = _) : _ = t[16];
2439
2439
  let v;
2440
2440
  t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(jl, { label: "Profile", children: /* @__PURE__ */ a(gn, { defaultValue: "fit", onValueChange: m, value: g, children: _ }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2441
- const x = d?.viewportFit !== "custom", k = d?.customWidth ?? 60;
2441
+ const C = d?.viewportFit !== "custom", k = d?.customWidth ?? 60;
2442
2442
  let I;
2443
2443
  t[20] !== k ? (I = [k], t[20] = k, t[21] = I) : I = t[21];
2444
2444
  let T;
@@ -2449,11 +2449,11 @@ const jl = de.forwardRef(function(e, o) {
2449
2449
  });
2450
2450
  }, t[22] = s?.refit, t[23] = T) : T = t[23];
2451
2451
  let R;
2452
- t[24] !== x || t[25] !== I || t[26] !== T ? (R = /* @__PURE__ */ a(zt, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: x, value: I, onValueChange: T }), t[24] = x, t[25] = I, t[26] = T, t[27] = R) : R = t[27];
2452
+ t[24] !== C || t[25] !== I || t[26] !== T ? (R = /* @__PURE__ */ a(zt, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: C, value: I, onValueChange: T }), t[24] = C, t[25] = I, t[26] = T, t[27] = R) : R = t[27];
2453
2453
  let P;
2454
- t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(Ce.Root, { children: [
2454
+ t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(xe.Root, { children: [
2455
2455
  h,
2456
- /* @__PURE__ */ y(Ce.Content, { children: [
2456
+ /* @__PURE__ */ y(xe.Content, { children: [
2457
2457
  v,
2458
2458
  R
2459
2459
  ] })
@@ -2470,7 +2470,7 @@ const jl = de.forwardRef(function(e, o) {
2470
2470
  let A;
2471
2471
  return t[35] !== o || t[36] !== w || t[37] !== u ? (A = /* @__PURE__ */ a(Te, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: w }), t[35] = o, t[36] = w, t[37] = u, t[38] = A) : A = t[38], A;
2472
2472
  }), Kl = N((t) => {
2473
- const e = C(26), {
2473
+ const e = x(26), {
2474
2474
  contextText: o,
2475
2475
  startOffset: n,
2476
2476
  text: i,
@@ -2507,27 +2507,27 @@ const jl = de.forwardRef(function(e, o) {
2507
2507
  g,
2508
2508
  '"'
2509
2509
  ] }), e[14] = g, e[15] = h, e[16] = _, e[17] = v) : v = e[17];
2510
- let x;
2511
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
2510
+ let C;
2511
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2512
2512
  textDecoration: "none"
2513
- }, e[18] = x) : x = e[18];
2513
+ }, e[18] = C) : C = e[18];
2514
2514
  const k = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2515
2515
  let I;
2516
- e[19] !== k ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: x, children: k }), e[19] = k, e[20] = I) : I = e[20];
2516
+ e[19] !== k ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: C, children: k }), e[19] = k, e[20] = I) : I = e[20];
2517
2517
  let T;
2518
2518
  return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (T = /* @__PURE__ */ y(Mt, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2519
2519
  v,
2520
2520
  I
2521
2521
  ] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = T) : T = e[25], T;
2522
2522
  }), Yl = 500, Zl = () => {
2523
- const t = C(13), e = ot(Ql), {
2523
+ const t = x(13), e = ot(Ql), {
2524
2524
  data: o
2525
2525
  } = H(e), n = j();
2526
2526
  let i;
2527
2527
  t[0] !== n ? (i = cn(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2528
2528
  const l = i;
2529
2529
  let s, r;
2530
- t[2] !== l || t[3] !== e ? (s = () => e.pipe(xe(), be((m) => m === "" || !l ? gt(void 0) : en(gt({
2530
+ t[2] !== l || t[3] !== e ? (s = () => e.pipe(Ce(), be((m) => m === "" || !l ? gt(void 0) : en(gt({
2531
2531
  type: "start",
2532
2532
  data: void 0
2533
2533
  }), tn(Yl).pipe(be(() => l.search.search(m)), J(Xl))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
@@ -2555,7 +2555,7 @@ function Xl(t) {
2555
2555
  };
2556
2556
  }
2557
2557
  const Jl = N((t) => {
2558
- const e = C(31), {
2558
+ const e = x(31), {
2559
2559
  onNavigate: o
2560
2560
  } = t, n = j(), {
2561
2561
  value: i,
@@ -2599,19 +2599,19 @@ const Jl = N((t) => {
2599
2599
  ] }),
2600
2600
  /* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, T) => /* @__PURE__ */ a(Kl, { contextText: I.meta?.range?.startContainer.parentElement?.textContent ?? "", pageIndex: I.meta?.itemPageIndex, startOffset: I.meta?.range?.startOffset ?? 0, text: i, cfi: I.meta.cfi, onClick: f, absolutePageIndex: I.meta?.absolutePageIndex }, T)) })
2601
2601
  ] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
2602
- let x;
2603
- e[24] !== S || e[25] !== _ || e[26] !== v ? (x = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2602
+ let C;
2603
+ e[24] !== S || e[25] !== _ || e[26] !== v ? (C = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2604
2604
  S,
2605
2605
  _,
2606
2606
  v
2607
- ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = x) : x = e[27];
2607
+ ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
2608
2608
  let k;
2609
- return e[28] !== x || e[29] !== p ? (k = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2609
+ return e[28] !== C || e[29] !== p ? (k = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2610
2610
  p,
2611
- x
2612
- ] }), e[28] = x, e[29] = p, e[30] = k) : k = e[30], k;
2611
+ C
2612
+ ] }), e[28] = C, e[29] = p, e[30] = k) : k = e[30], k;
2613
2613
  }), es = N((t) => {
2614
- const e = C(14), {
2614
+ const e = x(14), {
2615
2615
  open: o,
2616
2616
  setOpen: n,
2617
2617
  onNavigate: i
@@ -2639,7 +2639,7 @@ const Jl = N((t) => {
2639
2639
  let h;
2640
2640
  return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(Te, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2641
2641
  }), ts = N((t) => {
2642
- const e = C(5), {
2642
+ const e = x(5), {
2643
2643
  onNavigate: o
2644
2644
  } = t, n = j(), {
2645
2645
  data: i
@@ -2657,8 +2657,8 @@ const Jl = N((t) => {
2657
2657
  e[0] = r?.beginChapterInfo, e[1] = d;
2658
2658
  } else
2659
2659
  d = e[1];
2660
- const u = (_, v, x) => /* @__PURE__ */ y($n.Fragment, { children: [
2661
- /* @__PURE__ */ a(ge.Item, { pl: 4 * (x + 1), style: {
2660
+ const u = (_, v, C) => /* @__PURE__ */ y($n.Fragment, { children: [
2661
+ /* @__PURE__ */ a(ge.Item, { pl: 4 * (C + 1), style: {
2662
2662
  display: "flex",
2663
2663
  alignItems: "center"
2664
2664
  }, children: /* @__PURE__ */ y(Mt, { onClick: () => {
@@ -2671,12 +2671,12 @@ const Jl = N((t) => {
2671
2671
  d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2672
2672
  ] })
2673
2673
  ] }) }),
2674
- _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((k, I) => u(k, I, x + 1)) })
2674
+ _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((k, I) => u(k, I, C + 1)) })
2675
2675
  ] }, v), f = ge, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((_, v) => u(_, v, 0));
2676
2676
  let S;
2677
2677
  return e[2] !== f.Root || e[3] !== b ? (S = /* @__PURE__ */ a(f.Root, { gap: h, overflowY: m, py: g, flex: p, children: b }), e[2] = f.Root, e[3] = b, e[4] = S) : S = e[4], S;
2678
2678
  }), ns = N((t) => {
2679
- const e = C(14), {
2679
+ const e = x(14), {
2680
2680
  open: o,
2681
2681
  setOpen: n,
2682
2682
  onNavigate: i
@@ -2704,7 +2704,7 @@ const Jl = N((t) => {
2704
2704
  let h;
2705
2705
  return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(Te, { lazyMount: !0, placement: "center", open: o, onOpenChange: l, size: s, scrollBehavior: "inside", children: f }), e[10] = o, e[11] = l, e[12] = f, e[13] = h) : h = e[13], h;
2706
2706
  }), os = () => {
2707
- const t = C(7), e = j();
2707
+ const t = x(7), e = j();
2708
2708
  let o;
2709
2709
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
2710
2710
  const {
@@ -2724,7 +2724,7 @@ const Jl = N((t) => {
2724
2724
  const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
2725
2725
  return Math.round(l * 100) / 100;
2726
2726
  }, ls = N(() => {
2727
- const t = C(23);
2727
+ const t = x(23);
2728
2728
  let e;
2729
2729
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
2730
2730
  const {
@@ -2753,8 +2753,8 @@ const Jl = N((t) => {
2753
2753
  let b;
2754
2754
  t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
2755
2755
  let S;
2756
- t[14] !== i?.zoom ? (S = (x) => {
2757
- const k = x.value?.[0] ?? 1;
2756
+ t[14] !== i?.zoom ? (S = (C) => {
2757
+ const k = C.value?.[0] ?? 1;
2758
2758
  k === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(k, {
2759
2759
  constrain: "within-viewport"
2760
2760
  });
@@ -2774,15 +2774,15 @@ const as = {
2774
2774
  _open: "fade-in",
2775
2775
  _closed: "fade-out"
2776
2776
  }, cs = N(() => (Xo(), null)), ds = N(() => {
2777
- const t = C(1);
2778
- os(), vl(), Cl(), Wl(), Jo(), ei();
2777
+ const t = x(1);
2778
+ os(), vl(), xl(), Wl(), Jo(), ei();
2779
2779
  let e;
2780
2780
  return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(ve, { children: [
2781
2781
  /* @__PURE__ */ a(Hi, {}),
2782
2782
  /* @__PURE__ */ a(cs, {})
2783
2783
  ] }), t[0] = e) : e = t[0], e;
2784
2784
  }), fs = N((t) => {
2785
- const e = C(47);
2785
+ const e = x(47);
2786
2786
  let o, n;
2787
2787
  e[0] !== t ? ({
2788
2788
  children: o,
@@ -2798,7 +2798,7 @@ const as = {
2798
2798
  e[4] !== _ ? (v = () => {
2799
2799
  c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
2800
2800
  }, e[4] = _, e[5] = v) : v = e[5];
2801
- const x = v;
2801
+ const C = v;
2802
2802
  let k;
2803
2803
  e[6] !== s ? (k = (B) => {
2804
2804
  B === "annotations" ? g("annotations") : B === "search" ? h(!0) : B === "help" ? u(!0) : B === "toc" ? c(!0) : B === "bookmarks" ? g("bookmarks") : B === "gallery" && b(!0), s?.(B);
@@ -2819,13 +2819,13 @@ const as = {
2819
2819
  let F;
2820
2820
  e[21] !== d ? (F = /* @__PURE__ */ a(Ji, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2821
2821
  let Y;
2822
- e[23] !== r || e[24] !== x ? (Y = /* @__PURE__ */ a(ns, { open: r, setOpen: c, onNavigate: x }), e[23] = r, e[24] = x, e[25] = Y) : Y = e[25];
2822
+ e[23] !== r || e[24] !== C ? (Y = /* @__PURE__ */ a(ns, { open: r, setOpen: c, onNavigate: C }), e[23] = r, e[24] = C, e[25] = Y) : Y = e[25];
2823
2823
  let V;
2824
- e[26] !== f || e[27] !== x ? (V = /* @__PURE__ */ a(es, { open: f, setOpen: h, onNavigate: x }), e[26] = f, e[27] = x, e[28] = V) : V = e[28];
2824
+ e[26] !== f || e[27] !== C ? (V = /* @__PURE__ */ a(es, { open: f, setOpen: h, onNavigate: C }), e[26] = f, e[27] = C, e[28] = V) : V = e[28];
2825
2825
  let G;
2826
2826
  e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (B) => g(B ? "annotations" : void 0), e[29] = G) : G = e[29];
2827
2827
  let W;
2828
- e[30] !== m || e[31] !== x ? (W = /* @__PURE__ */ a(Go, { openWith: m, setOpen: G, onNavigate: x }), e[30] = m, e[31] = x, e[32] = W) : W = e[32];
2828
+ e[30] !== m || e[31] !== C ? (W = /* @__PURE__ */ a(Go, { openWith: m, setOpen: G, onNavigate: C }), e[30] = m, e[31] = C, e[32] = W) : W = e[32];
2829
2829
  const q = l || S;
2830
2830
  let Z;
2831
2831
  e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(sl, {}), e[33] = Z) : Z = e[33];
@@ -2857,7 +2857,7 @@ const as = {
2857
2857
  ] })
2858
2858
  ] }), e[37] = o, e[38] = n, e[39] = A, e[40] = F, e[41] = Y, e[42] = V, e[43] = W, e[44] = K, e[45] = M, e[46] = X) : X = e[46], X;
2859
2859
  }), As = N((t) => {
2860
- const e = C(16);
2860
+ const e = x(16);
2861
2861
  let o, n, i;
2862
2862
  e[0] !== t ? ({
2863
2863
  children: o,