@prose-reader/react-reader 1.296.0 → 1.298.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,32 +1,33 @@
1
- import { jsx as a, jsxs as y, Fragment as ve } from "react/jsx-runtime";
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";
1
+ import { jsx as a, jsxs as y, Fragment as xe } from "react/jsx-runtime";
2
+ import { c as C } from "react/compiler-runtime";
3
+ import { Presence as Qe, Button as he, IconButton as te, Drawer as me, Portal as St, Box as oe, Stack as ee, Text as U, Textarea as Cn, Dialog as ae, List as pe, Link as Ot, Tabs as ge, useBreakpointValue as yn, createToaster as In, Toaster as Tn, Toast as qe, Spinner as kn, RadioGroup as ot, Slider as ue, HStack as ce, For as $n, Fieldset as ye, Heading as yt, Kbd as Lt, chakra as Rn, Popover as Ke, Progress as st, Collapsible as It, Field as tt, Input as Mn } from "@chakra-ui/react";
4
4
  import * as de from "react";
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
- import { FaEdit as On } from "react-icons/fa";
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
- 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 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
- import { pick as no, watchKeys as on, isShallowEqual as ln, observeIntersection as oo, shouldUseComputedSpreadModeForViewport as io, isHtmlTagElement as lo } from "@prose-reader/core";
11
- import { createPortal as wt } from "react-dom";
12
- import { isShallowEqual as so } from "@prose-reader/shared";
13
- import { MdScreenRotation as ro, MdOutlineFitScreen as ao, MdFullscreenExit as co, MdFullscreen as fo } from "react-icons/md";
14
- import { BiFontSize as uo } from "react-icons/bi";
15
- import { BsBookmarks as ho } from "react-icons/bs";
16
- import { RiGalleryView2 as mo } from "react-icons/ri";
17
- import { RxDoubleArrowUp as go, RxDoubleArrowLeft as po, RxDoubleArrowDown as bo, RxDoubleArrowRight as So } from "react-icons/rx";
18
- import _o from "rc-slider";
5
+ import On, { createContext as An, useContext as en, memo as N, useState as ne, useEffect as ie, useRef as ve, useLayoutEffect as wn, useCallback as Nt } from "react";
6
+ import { FaEdit as zn } from "react-icons/fa";
7
+ import { LuNotebookPen as rt, LuX as Pn, LuBookmark as En, LuCheck as Dn, LuArrowBigRight as Bn, LuArrowBigLeft as Fn, LuPause as Ln, LuPlay as Nn, LuChevronDown as Hn, LuCircleHelp as Vn, LuTableOfContents as Wn, LuSearch as Gn, LuZoomOut as Un, LuZoomIn as jn, LuGalleryHorizontal as qn, LuCircleCheck as Ht } from "react-icons/lu";
8
+ import { signal as Ye, useObserve as H, useSignalValue as kt, useSubscribe as be, isDefined as tn, useConstant as lt, useMemoCompare as Kn, useLiveRef as Yn, useSignalState as Zn } from "reactjrx";
9
+ import { Subject as Qn, EMPTY as $t, switchMap as Ce, map as J, startWith as Rt, tap as At, filter as pt, of as bt, NEVER as Ze, withLatestFrom as wt, distinctUntilChanged as Se, combineLatest as ct, throttleTime as nn, debounceTime as Xn, shareReplay as Jn, mergeMap as eo, Observable as to, skip as no, merge as on, timer as ln, first as oo, finalize as io, BehaviorSubject as sn, animationFrameScheduler as lo } from "rxjs";
10
+ import { pick as so, watchKeys as rn, isShallowEqual as an, setPropertyIfChanged as Vt, setStylePropertyIfChanged as Wt, observeIntersection as ro, shouldUseComputedSpreadModeForViewport as ao, isHtmlTagElement as co } from "@prose-reader/core";
11
+ import { createPortal as zt } from "react-dom";
12
+ import { isShallowEqual as fo } from "@prose-reader/shared";
13
+ import { MdScreenRotation as uo, MdOutlineFitScreen as ho, MdFullscreenExit as mo, MdFullscreen as go } from "react-icons/md";
14
+ import { BiFontSize as po } from "react-icons/bi";
15
+ import { BsBookmarks as bo } from "react-icons/bs";
16
+ import { RiGalleryView2 as So } from "react-icons/ri";
17
+ import { RxDoubleArrowUp as _o, RxDoubleArrowLeft as vo, RxDoubleArrowDown as xo, RxDoubleArrowRight as Co } from "react-icons/rx";
18
+ import yo from "rc-slider";
19
19
  import "rc-slider/assets/index.css";
20
- import { HiOutlineInformationCircle as vo } from "react-icons/hi";
21
- import { IoIosArrowBack as Co, IoMdMore as xo } from "react-icons/io";
22
- const yo = "data-bookmark-area", sn = 5, rn = () => ({
20
+ import { HiOutlineInformationCircle as Io } from "react-icons/hi";
21
+ import { IoIosArrowBack as To, IoMdMore as ko } from "react-icons/io";
22
+ import fe from "screenfull";
23
+ const $o = "data-bookmark-area", cn = 5, dn = () => ({
23
24
  _quickMenuOpen: !1,
24
25
  _onQuickMenuOpenChange: (t) => t,
25
26
  reader: void 0,
26
- quickMenuBottomBarBoundingBoxSignal: Ke({
27
+ quickMenuBottomBarBoundingBoxSignal: Ye({
27
28
  default: void 0
28
29
  }),
29
- notificationsSubject: new Kn(),
30
+ notificationsSubject: new Qn(),
30
31
  refitMenuOpen: !1,
31
32
  onRefitMenuOpenChange: () => {
32
33
  },
@@ -38,23 +39,23 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
38
39
  uncontrolledFontSize: 1,
39
40
  enableFloatingProgress: !0,
40
41
  selectedHighlight: void 0
41
- }), At = Rn(Ke({
42
- default: rn()
43
- })), ie = (t) => {
44
- const e = x(9), o = Yt(At);
42
+ }), Pt = An(Ye({
43
+ default: dn()
44
+ })), le = (t) => {
45
+ const e = C(9), o = en(Pt);
45
46
  let n;
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
+ e[0] !== o || e[1] !== t ? (n = () => o.pipe(rn(t)), e[0] = o, e[1] = t, e[2] = n) : n = e[2];
47
48
  let i;
48
- e[3] !== o.value || e[4] !== t ? (i = no(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
49
+ e[3] !== o.value || e[4] !== t ? (i = so(o.value, t), e[3] = o.value, e[4] = t, e[5] = i) : i = e[5];
49
50
  let l;
50
51
  e[6] !== i ? (l = {
51
- compareFn: ln,
52
+ compareFn: an,
52
53
  defaultValue: i
53
54
  }, e[6] = i, e[7] = l) : l = e[7];
54
55
  let s;
55
56
  return e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = [], e[8] = s) : s = e[8], H(n, l, s).data;
56
- }, Ze = () => Yt(At), Io = 24, an = N((t) => {
57
- const e = x(9);
57
+ }, Xe = () => en(Pt), Ro = 24, fn = N((t) => {
58
+ const e = C(9);
58
59
  let o, n;
59
60
  e[0] !== t ? ({
60
61
  children: o,
@@ -64,7 +65,7 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
64
65
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["quickMenuBottomBarBoundingBoxSignal", "zoomMaxScale"], e[3] = i) : i = e[3];
65
66
  const {
66
67
  quickMenuBottomBarBoundingBoxSignal: l
67
- } = ie(i), r = Tt(l)?.borderBoxSize?.[0]?.blockSize || Io;
68
+ } = le(i), r = kt(l)?.borderBoxSize?.[0]?.blockSize || Ro;
68
69
  let c;
69
70
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
70
71
  _open: "fade-in",
@@ -72,28 +73,28 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
72
73
  }, e[4] = c) : c = e[4];
73
74
  const d = `calc(${r}px + var(--chakra-spacing-4))`;
74
75
  let u;
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
+ return e[5] !== o || e[6] !== n || e[7] !== d ? (u = /* @__PURE__ */ a(Qe, { 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
77
  }), j = () => {
77
- const t = x(1);
78
+ const t = C(1);
78
79
  let e;
79
80
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["reader"], t[0] = e) : e = t[0];
80
81
  const {
81
82
  reader: o
82
- } = ie(e);
83
+ } = le(e);
83
84
  return o;
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 = x(2), e = j();
85
+ }, un = (t) => !!t && "__PROSE_READER_ENHANCER_SEARCH" in t, Mo = (t) => !!t && "__PROSE_READER_ENHANCER_AUDIO" in t, at = (t) => !!t && "__PROSE_READER_ENHANCER_ANNOTATIONS" in t, hn = (t) => !!t && "__PROSE_READER_ENHANCER_GALLERY" in t, mn = (t) => !!t && "__PROSE_READER_ENHANCER_REFIT" in t, dt = () => {
86
+ const t = C(2), e = j();
86
87
  let o;
87
- return t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
88
- }, To = () => {
89
- const t = x(16), e = ct(), o = Ze();
88
+ return t[0] !== e ? (o = at(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
89
+ }, Oo = () => {
90
+ const t = C(16), e = dt(), o = Xe();
90
91
  let n;
91
92
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["selectedHighlight"], t[0] = n) : n = t[0];
92
93
  const {
93
94
  selectedHighlight: i
94
- } = ie(n);
95
+ } = le(n);
95
96
  let l;
96
- t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(be(() => e.selection.selectionEnd$.pipe(J($o), Qt(!0)))) ?? $t, t[1] = e, t[2] = l) : l = t[2];
97
+ t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(Ce(() => e.selection.selectionEnd$.pipe(J(Ao), Rt(!0)))) ?? $t, t[1] = e, t[2] = l) : l = t[2];
97
98
  let s;
98
99
  t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
99
100
  defaultValue: !1
@@ -114,34 +115,34 @@ const yo = "data-bookmark-area", sn = 5, rn = () => ({
114
115
  }));
115
116
  }, t[6] = o, t[7] = e?.selection, t[8] = u) : u = t[8];
116
117
  let f;
117
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(On, {}), t[9] = f) : f = t[9];
118
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(zn, {}), t[9] = f) : f = t[9];
118
119
  let h;
119
- t[10] !== u ? (h = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", onClick: u, children: [
120
+ t[10] !== u ? (h = /* @__PURE__ */ y(he, { variant: "outline", size: "sm", onClick: u, children: [
120
121
  f,
121
122
  "Annotate"
122
123
  ] }), t[10] = u, t[11] = h) : h = t[11];
123
124
  let m;
124
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ue, { variant: "outline", size: "sm", disabled: !0, children: [
125
- /* @__PURE__ */ a(lt, {}),
125
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(he, { variant: "outline", size: "sm", disabled: !0, children: [
126
+ /* @__PURE__ */ a(rt, {}),
126
127
  "Bookmark"
127
128
  ] }), t[12] = m) : m = t[12];
128
129
  let g;
129
- return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(an, { present: d, children: [
130
+ return t[13] !== d || t[14] !== h ? (g = /* @__PURE__ */ y(fn, { present: d, children: [
130
131
  h,
131
132
  m
132
133
  ] }), t[13] = d, t[14] = h, t[15] = g) : g = t[15], g;
133
134
  };
134
- function $o() {
135
+ function Ao() {
135
136
  return !1;
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 = x(6);
138
+ const wo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, gn = de.forwardRef(function(e, o) {
139
+ const n = C(6);
139
140
  let i;
140
- n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(wn, {}), n[0] = e.children, n[1] = i) : i = n[1];
141
+ n[0] !== e.children ? (i = e.children ?? /* @__PURE__ */ a(Pn, {}), n[0] = e.children, n[1] = i) : i = n[1];
141
142
  let l;
142
143
  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
- }), Mo = de.forwardRef(function(e, o) {
144
- const n = x(17);
144
+ }), zo = de.forwardRef(function(e, o) {
145
+ const n = C(17);
145
146
  let i, l, s, r, c;
146
147
  n[0] !== e ? ({
147
148
  children: i,
@@ -152,27 +153,27 @@ const Ro = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, un = de.for
152
153
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5]);
153
154
  const u = !(c === void 0 ? !0 : c);
154
155
  let f;
155
- n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(he.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
156
+ n[6] !== i || n[7] !== o || n[8] !== r ? (f = /* @__PURE__ */ a(me.Content, { ref: o, ...r, asChild: !1, children: i }), n[6] = i, n[7] = o, n[8] = r, n[9] = f) : f = n[9];
156
157
  let h;
157
- n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(he.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
158
+ n[10] !== l || n[11] !== f ? (h = /* @__PURE__ */ a(me.Positioner, { padding: l, children: f }), n[10] = l, n[11] = f, n[12] = h) : h = n[12];
158
159
  let m;
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
+ return n[13] !== s || n[14] !== u || n[15] !== h ? (m = /* @__PURE__ */ a(St, { disabled: u, container: s, children: h }), n[13] = s, n[14] = u, n[15] = h, n[16] = m) : m = n[16], m;
160
161
  });
161
162
  de.forwardRef(function(e, o) {
162
- const n = x(5);
163
+ const n = C(5);
163
164
  let i;
164
- n[0] !== o ? (i = /* @__PURE__ */ a(un, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
+ n[0] !== o ? (i = /* @__PURE__ */ a(gn, { size: "sm", ref: o }), n[0] = o, n[1] = i) : i = n[1];
165
166
  let l;
166
- return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(he.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[2] = e, n[3] = i, n[4] = l) : l = n[4], l;
167
+ return n[2] !== e || n[3] !== i ? (l = /* @__PURE__ */ a(me.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[2] = e, n[3] = i, n[4] = l) : l = n[4], l;
167
168
  });
168
- he.Trigger;
169
- const Oo = he.Root;
170
- he.Footer;
171
- const wo = he.Header, Ao = he.Body, zo = he.Backdrop;
172
- he.Description;
173
- he.Title;
174
- he.ActionTrigger;
175
- const kt = [
169
+ me.Trigger;
170
+ const Po = me.Root;
171
+ me.Footer;
172
+ const Eo = me.Header, Do = me.Body, Bo = me.Backdrop;
173
+ me.Description;
174
+ me.Title;
175
+ me.ActionTrigger;
176
+ const Tt = [
176
177
  "rgba(216, 191, 216, 1)",
177
178
  // Light purple
178
179
  "rgba(255, 225, 125, 1)",
@@ -183,8 +184,8 @@ const kt = [
183
184
  // Light blue
184
185
  "rgba(255, 182, 193, 1)"
185
186
  // Light pink
186
- ], Po = N(() => {
187
- const t = x(58), e = ct();
187
+ ], Fo = N(() => {
188
+ const t = C(58), e = dt();
188
189
  let o;
189
190
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["selectedHighlight", "onAnnotationCreate", "onAnnotationUpdate", "onAnnotationDelete"], t[0] = o) : o = t[0];
190
191
  const {
@@ -192,33 +193,33 @@ const kt = [
192
193
  onAnnotationCreate: i,
193
194
  onAnnotationUpdate: l,
194
195
  onAnnotationDelete: s
195
- } = ie(o), r = Ze(), {
196
+ } = le(o), r = Xe(), {
196
197
  highlight: c,
197
198
  selection: d
198
- } = n ?? {}, [u, f] = ne(kt[0]), [h, m] = ne(""), g = !!(d ?? c);
199
+ } = n ?? {}, [u, f] = ne(Tt[0]), [h, m] = ne(""), g = !!(d ?? c);
199
200
  let p;
200
201
  t[1] !== r ? (p = () => {
201
- r.update(Eo);
202
+ r.update(Lo);
202
203
  }, t[1] = r, t[2] = p) : p = t[2];
203
204
  const b = p;
204
- let S;
205
- t[3] !== b ? (S = (B) => {
205
+ let _;
206
+ t[3] !== b ? (_ = (B) => {
206
207
  B.open || b();
207
- }, t[3] = b, t[4] = S) : S = t[4];
208
- const _ = S, v = c?.highlightColor, C = c?.notes;
209
- let k;
210
- t[5] !== m ? (k = () => {
208
+ }, t[3] = b, t[4] = _) : _ = t[4];
209
+ const S = _, v = c?.highlightColor, x = c?.notes;
210
+ let T;
211
+ t[5] !== m ? (T = () => {
211
212
  m("");
212
- }, t[5] = m, t[6] = k) : k = t[6];
213
+ }, t[5] = m, t[6] = T) : T = t[6];
213
214
  let I;
214
- t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], oe(k, I), oe(() => {
215
- m(C ?? "");
216
- }, [C]), oe(() => {
217
- f(v || kt[0]);
215
+ t[7] !== g ? (I = [g], t[7] = g, t[8] = I) : I = t[8], ie(T, I), ie(() => {
216
+ m(x ?? "");
217
+ }, [x]), ie(() => {
218
+ f(v || Tt[0]);
218
219
  }, [v, g]);
219
- let T;
220
- t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (T = function() {
221
- return e?.annotations.highlightTap$.pipe(bt((se) => {
220
+ let k;
221
+ t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (k = function() {
222
+ return e?.annotations.highlightTap$.pipe(At((se) => {
222
223
  const {
223
224
  highlight: L
224
225
  } = se;
@@ -229,33 +230,33 @@ const kt = [
229
230
  }
230
231
  }));
231
232
  }));
232
- }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = T) : T = t[11], pe(T);
233
- const P = Oo, E = "bottom";
233
+ }, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = k) : k = t[11], be(k);
234
+ const P = Po, E = "bottom";
234
235
  let M;
235
- t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(zo, {}), t[12] = M) : M = t[12];
236
- const w = Mo, A = wo, $ = "1px", O = c ? "Highlight" : `Selection: "${Ro(d?.selection?.toString() ?? "", 10)}"`;
236
+ t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ a(Bo, {}), t[12] = M) : M = t[12];
237
+ const A = zo, w = Eo, $ = "1px", O = c ? "Highlight" : `Selection: "${wo(d?.selection?.toString() ?? "", 10)}"`;
237
238
  let z;
238
- t[13] !== A || t[14] !== O ? (z = /* @__PURE__ */ a(A, { borderBottomWidth: $, children: O }), t[13] = A, t[14] = O, t[15] = z) : z = t[15];
239
+ t[13] !== w || t[14] !== O ? (z = /* @__PURE__ */ a(w, { borderBottomWidth: $, children: O }), t[13] = w, t[14] = O, t[15] = z) : z = t[15];
239
240
  let D;
240
- t[16] !== u || t[17] !== f ? (D = kt.map((B) => /* @__PURE__ */ a(le, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
241
+ t[16] !== u || t[17] !== f ? (D = Tt.map((B) => /* @__PURE__ */ a(oe, { bgColor: B, height: 10, width: 10, borderRadius: "50%", cursor: "pointer", ...u === B && {
241
242
  border: "4px solid white"
242
243
  }, onClick: () => f(B) }, B)), t[16] = u, t[17] = f, t[18] = D) : D = t[18];
243
244
  let F;
244
245
  t[19] !== D ? (F = /* @__PURE__ */ a(ee, { gap: 2, flexDirection: "row", children: D }), t[19] = D, t[20] = F) : F = t[20];
245
- let Y;
246
- t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(U, { children: "Annotation:" }), t[21] = Y) : Y = t[21];
246
+ let Q;
247
+ t[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(U, { children: "Annotation:" }), t[21] = Q) : Q = t[21];
247
248
  let V;
248
249
  t[22] !== m ? (V = (B) => m(B.target.value), t[22] = m, t[23] = V) : V = t[23];
249
- let G;
250
- t[24] !== h || t[25] !== V ? (G = /* @__PURE__ */ a(_n, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = G) : G = t[26];
251
250
  let W;
252
- t[27] !== F || t[28] !== G ? (W = /* @__PURE__ */ y(ee, { children: [
251
+ t[24] !== h || t[25] !== V ? (W = /* @__PURE__ */ a(Cn, { value: h, onChange: V }), t[24] = h, t[25] = V, t[26] = W) : W = t[26];
252
+ let G;
253
+ t[27] !== F || t[28] !== W ? (G = /* @__PURE__ */ y(ee, { children: [
253
254
  F,
254
- Y,
255
- G
256
- ] }), t[27] = F, t[28] = G, t[29] = W) : W = t[29];
255
+ Q,
256
+ W
257
+ ] }), t[27] = F, t[28] = W, t[29] = G) : G = t[29];
257
258
  let q;
258
- t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (q = !!d && /* @__PURE__ */ a(ue, { onClick: () => {
259
+ t[30] !== h || t[31] !== i || t[32] !== b || t[33] !== e?.annotations || t[34] !== u || t[35] !== d ? (q = !!d && /* @__PURE__ */ a(he, { onClick: () => {
259
260
  b();
260
261
  const B = e?.annotations.createAnnotation({
261
262
  ...d,
@@ -264,44 +265,44 @@ const kt = [
264
265
  });
265
266
  B && i?.(B);
266
267
  }, children: "Highlight" }), t[30] = h, t[31] = i, t[32] = b, t[33] = e?.annotations, t[34] = u, t[35] = d, t[36] = q) : q = t[36];
267
- let Z;
268
- t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (Z = !!c && /* @__PURE__ */ y(ee, { direction: "row", children: [
269
- /* @__PURE__ */ a(ue, { flex: 1, onClick: () => {
268
+ let Y;
269
+ t[37] !== h || t[38] !== c || t[39] !== s || t[40] !== l || t[41] !== b || t[42] !== u ? (Y = !!c && /* @__PURE__ */ y(ee, { direction: "row", children: [
270
+ /* @__PURE__ */ a(he, { flex: 1, onClick: () => {
270
271
  b(), l?.({
271
272
  id: c.id,
272
273
  highlightColor: u,
273
274
  notes: h
274
275
  });
275
276
  }, children: "Update" }),
276
- /* @__PURE__ */ a(ue, { flex: 1, variant: "surface", onClick: () => {
277
+ /* @__PURE__ */ a(he, { flex: 1, variant: "surface", onClick: () => {
277
278
  b(), s?.(c.id);
278
279
  }, children: "Remove" })
279
- ] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] = Z) : Z = t[43];
280
+ ] }), t[37] = h, t[38] = c, t[39] = s, t[40] = l, t[41] = b, t[42] = u, t[43] = Y) : Y = t[43];
280
281
  let K;
281
- t[44] !== W || t[45] !== q || t[46] !== Z ? (K = /* @__PURE__ */ y(Ao, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
282
- W,
282
+ t[44] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(Do, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
283
+ G,
283
284
  q,
284
- Z
285
- ] }), t[44] = W, t[45] = q, t[46] = Z, t[47] = K) : K = t[47];
286
- let Q;
287
- t[48] !== w || t[49] !== z || t[50] !== K ? (Q = /* @__PURE__ */ y(w, { children: [
285
+ Y
286
+ ] }), t[44] = G, t[45] = q, t[46] = Y, t[47] = K) : K = t[47];
287
+ let Z;
288
+ t[48] !== A || t[49] !== z || t[50] !== K ? (Z = /* @__PURE__ */ y(A, { children: [
288
289
  z,
289
290
  K
290
- ] }), t[48] = w, t[49] = z, t[50] = K, t[51] = Q) : Q = t[51];
291
+ ] }), t[48] = A, t[49] = z, t[50] = K, t[51] = Z) : Z = t[51];
291
292
  let X;
292
- return t[52] !== P || t[53] !== g || t[54] !== _ || t[55] !== Q || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: _, open: g, children: [
293
+ return t[52] !== P || t[53] !== g || t[54] !== S || t[55] !== Z || t[56] !== M ? (X = /* @__PURE__ */ y(P, { placement: E, onOpenChange: S, open: g, children: [
293
294
  M,
294
- Q
295
- ] }), t[52] = P, t[53] = g, t[54] = _, t[55] = Q, t[56] = M, t[57] = X) : X = t[57], X;
295
+ Z
296
+ ] }), t[52] = P, t[53] = g, t[54] = S, t[55] = Z, t[56] = M, t[57] = X) : X = t[57], X;
296
297
  });
297
- function Eo(t) {
298
+ function Lo(t) {
298
299
  return {
299
300
  ...t,
300
301
  selectedHighlight: void 0
301
302
  };
302
303
  }
303
- const Ie = de.forwardRef(function(e, o) {
304
- const n = x(17);
304
+ const Te = de.forwardRef(function(e, o) {
305
+ const n = C(17);
305
306
  let i, l, s, r, c;
306
307
  n[0] !== e ? ({
307
308
  children: i,
@@ -316,38 +317,38 @@ const Ie = de.forwardRef(function(e, o) {
316
317
  let m;
317
318
  n[8] !== i || n[9] !== o || n[10] !== s ? (m = /* @__PURE__ */ a(ae.Positioner, { children: /* @__PURE__ */ a(ae.Content, { ref: o, ...s, asChild: !1, children: i }) }), n[8] = i, n[9] = o, n[10] = s, n[11] = m) : m = n[11];
318
319
  let g;
319
- return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(pt, { disabled: f, container: l, children: [
320
+ return n[12] !== l || n[13] !== f || n[14] !== h || n[15] !== m ? (g = /* @__PURE__ */ y(St, { disabled: f, container: l, children: [
320
321
  h,
321
322
  m
322
323
  ] }), n[12] = l, n[13] = f, n[14] = h, n[15] = m, n[16] = g) : g = n[16], g;
323
324
  }), ke = de.forwardRef(function(e, o) {
324
- const n = x(6);
325
+ const n = C(6);
325
326
  let i;
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
+ n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(gn, { size: "sm", ref: o, children: e.children }), n[0] = e.children, n[1] = o, n[2] = i) : i = n[2];
327
328
  let l;
328
329
  return n[3] !== e || n[4] !== i ? (l = /* @__PURE__ */ a(ae.CloseTrigger, { position: "absolute", top: "2", insetEnd: "2", ...e, asChild: !0, children: i }), n[3] = e, n[4] = i, n[5] = l) : l = n[5], l;
329
- }), Te = ae.Root, $e = ae.Footer, Re = ae.Header, Me = ae.Body;
330
+ }), $e = ae.Root, Re = ae.Footer, Me = ae.Header, Oe = ae.Body;
330
331
  ae.Backdrop;
331
- const Oe = ae.Title;
332
+ const Ae = ae.Title;
332
333
  ae.Description;
333
334
  ae.Trigger;
334
- const we = ae.ActionTrigger, Do = (t) => {
335
- const e = x(7), o = j();
335
+ const we = ae.ActionTrigger, No = (t) => {
336
+ const e = C(7), o = j();
336
337
  let n;
337
- e[0] !== o ? (n = rt(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
338
+ e[0] !== o ? (n = at(o) ? o : void 0, e[0] = o, e[1] = n) : n = e[1];
338
339
  const i = n;
339
340
  let l;
340
- e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), st(Zt), be((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
341
+ e[2] !== t || e[3] !== i ? (l = () => i?.annotations.annotations$.pipe(J((r) => r.find((c) => c.id === t)), pt(tn), Ce((r) => i.locateResource(r))), e[2] = t, e[3] = i, e[4] = l) : l = e[4];
341
342
  let s;
342
343
  return e[5] !== i ? (s = [i], e[5] = i, e[6] = s) : s = e[6], H(l, s);
343
- }, hn = (t) => {
344
- const e = x(22), {
344
+ }, pn = (t) => {
345
+ const e = C(22), {
345
346
  id: o,
346
347
  onNavigate: n,
347
348
  allowLeftIcon: i
348
349
  } = t, l = i === void 0 ? !0 : i, s = j(), {
349
350
  data: r
350
- } = Do(o);
351
+ } = No(o);
351
352
  let c;
352
353
  e[0] !== r?.meta.node?.textContent || e[1] !== r?.meta.range ? (c = r?.meta.range?.toString() || r?.meta.node?.textContent, e[0] = r?.meta.node?.textContent, e[1] = r?.meta.range, e[2] = c) : c = e[2];
353
354
  const d = c;
@@ -356,7 +357,7 @@ const we = ae.ActionTrigger, Do = (t) => {
356
357
  n(), s?.navigation.goToCfi(r?.meta.cfi ?? "");
357
358
  }, e[3] = r?.meta, e[4] = n, e[5] = s?.navigation, e[6] = u) : u = e[6];
358
359
  let f;
359
- e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(lt, {}) }) : l ? /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(lt, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
360
+ e[7] !== l || e[8] !== r?.resource?.notes ? (f = r?.resource?.notes ? /* @__PURE__ */ a(pe.Indicator, { asChild: !0, children: /* @__PURE__ */ a(rt, {}) }) : l ? /* @__PURE__ */ a(pe.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(rt, {}) }) : null, e[7] = l, e[8] = r?.resource?.notes, e[9] = f) : f = e[9];
360
361
  let h;
361
362
  e[10] !== r?.meta || e[11] !== d ? (h = d ? /* @__PURE__ */ a(U, { lineClamp: 2, fontSize: "md", children: d }) : /* @__PURE__ */ y(U, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
362
363
  "Page ",
@@ -371,98 +372,98 @@ const we = ae.ActionTrigger, Do = (t) => {
371
372
  g
372
373
  ] }), e[15] = h, e[16] = g, e[17] = p) : p = e[17];
373
374
  let b;
374
- return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(ge.Item, { children: /* @__PURE__ */ y(Mt, { href: "#", onClick: u, children: [
375
+ return e[18] !== u || e[19] !== f || e[20] !== p ? (b = /* @__PURE__ */ a(pe.Item, { children: /* @__PURE__ */ y(Ot, { href: "#", onClick: u, children: [
375
376
  f,
376
377
  p
377
378
  ] }) }), e[18] = u, e[19] = f, e[20] = p, e[21] = b) : b = e[21], b;
378
379
  }, _t = () => {
379
- const t = x(5), e = j();
380
+ const t = C(5), e = j();
380
381
  let o;
381
- t[0] !== e ? (o = rt(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
382
+ t[0] !== e ? (o = at(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1];
382
383
  const n = o;
383
384
  let i, l;
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
- }, Bo = () => {
386
- const t = x(4), {
385
+ return t[2] !== n ? (i = () => n?.annotations.annotations$.pipe(Ce((s) => n.locateResource(s))), l = [n], t[2] = n, t[3] = i, t[4] = l) : (i = t[3], l = t[4]), H(i, l);
386
+ }, Ho = () => {
387
+ const t = C(4), {
387
388
  data: e
388
389
  } = _t();
389
390
  let o;
390
- t[0] !== e ? (o = e?.filter(Fo), t[0] = e, t[1] = o) : o = t[1];
391
+ t[0] !== e ? (o = e?.filter(Vo), t[0] = e, t[1] = o) : o = t[1];
391
392
  let n;
392
393
  return t[2] !== o ? (n = {
393
394
  data: o
394
395
  }, t[2] = o, t[3] = n) : n = t[3], n;
395
396
  };
396
- function Fo(t) {
397
+ function Vo(t) {
397
398
  return t.meta.isCfiRange;
398
399
  }
399
- const Lo = (t) => {
400
- const e = x(5), {
400
+ const Wo = (t) => {
401
+ const e = C(5), {
401
402
  onNavigate: o
402
403
  } = t, {
403
404
  data: n
404
- } = Bo();
405
+ } = Ho();
405
406
  let i;
406
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(hn, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
407
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(pn, { id: s.resource.id, onNavigate: o }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
407
408
  let l;
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
- }, No = () => {
410
- const t = x(4), {
409
+ return e[3] !== i ? (l = /* @__PURE__ */ a(pe.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
410
+ }, Go = () => {
411
+ const t = C(4), {
411
412
  data: e
412
413
  } = _t();
413
414
  let o;
414
- t[0] !== e ? (o = e?.filter(Ho), t[0] = e, t[1] = o) : o = t[1];
415
+ t[0] !== e ? (o = e?.filter(Uo), t[0] = e, t[1] = o) : o = t[1];
415
416
  let n;
416
417
  return t[2] !== o ? (n = {
417
418
  data: o
418
419
  }, t[2] = o, t[3] = n) : n = t[3], n;
419
420
  };
420
- function Ho(t) {
421
+ function Uo(t) {
421
422
  return !t.meta.isCfiRange && !t.resource.notes;
422
423
  }
423
- const Vo = (t) => {
424
- const e = x(5), {
424
+ const jo = (t) => {
425
+ const e = C(5), {
425
426
  onNavigate: o
426
427
  } = t, {
427
428
  data: n
428
- } = No();
429
+ } = Go();
429
430
  let i;
430
- e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(hn, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
431
+ e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(pn, { id: s.resource.id, onNavigate: o, allowLeftIcon: !1 }, s.resource.id)), e[0] = n, e[1] = o, e[2] = i) : i = e[2];
431
432
  let l;
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
- }, Wo = N((t) => {
434
- const e = x(11), {
433
+ return e[3] !== i ? (l = /* @__PURE__ */ a(pe.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: i }), e[3] = i, e[4] = l) : l = e[4], l;
434
+ }, qo = N((t) => {
435
+ const e = C(11), {
435
436
  onNavigate: o,
436
437
  defaultTab: n
437
438
  } = t, [i, l] = ne(n ?? "bookmarks");
438
439
  let s;
439
440
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (h) => l(h.value), e[0] = s) : s = e[0];
440
441
  let r;
441
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(me.Trigger, { value: "bookmarks", children: [
442
- /* @__PURE__ */ a(An, {}),
442
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ y(ge.Trigger, { value: "bookmarks", children: [
443
+ /* @__PURE__ */ a(En, {}),
443
444
  "Bookmarks"
444
445
  ] }), e[1] = r) : r = e[1];
445
446
  let c;
446
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(me.List, { children: [
447
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(ge.List, { children: [
447
448
  r,
448
- /* @__PURE__ */ y(me.Trigger, { value: "annotations", children: [
449
- /* @__PURE__ */ a(lt, {}),
449
+ /* @__PURE__ */ y(ge.Trigger, { value: "annotations", children: [
450
+ /* @__PURE__ */ a(rt, {}),
450
451
  "Annotations"
451
452
  ] }),
452
- /* @__PURE__ */ a(me.Indicator, {})
453
+ /* @__PURE__ */ a(ge.Indicator, {})
453
454
  ] }), e[2] = c) : c = e[2];
454
455
  let d;
455
- e[3] !== o ? (d = /* @__PURE__ */ a(me.Content, { value: "bookmarks", children: /* @__PURE__ */ a(Vo, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
456
+ e[3] !== o ? (d = /* @__PURE__ */ a(ge.Content, { value: "bookmarks", children: /* @__PURE__ */ a(jo, { onNavigate: o }) }), e[3] = o, e[4] = d) : d = e[4];
456
457
  let u;
457
- e[5] !== o ? (u = /* @__PURE__ */ a(me.Content, { value: "annotations", children: /* @__PURE__ */ a(Lo, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
458
+ e[5] !== o ? (u = /* @__PURE__ */ a(ge.Content, { value: "annotations", children: /* @__PURE__ */ a(Wo, { onNavigate: o }) }), e[5] = o, e[6] = u) : u = e[6];
458
459
  let f;
459
- return e[7] !== d || e[8] !== u || e[9] !== i ? (f = /* @__PURE__ */ y(me.Root, { value: i, onValueChange: s, children: [
460
+ return e[7] !== d || e[8] !== u || e[9] !== i ? (f = /* @__PURE__ */ y(ge.Root, { value: i, onValueChange: s, children: [
460
461
  c,
461
462
  d,
462
463
  u
463
464
  ] }), e[7] = d, e[8] = u, e[9] = i, e[10] = f) : f = e[10], f;
464
- }), Go = N((t) => {
465
- const e = x(15), {
465
+ }), Ko = N((t) => {
466
+ const e = C(15), {
466
467
  openWith: o,
467
468
  setOpen: n,
468
469
  onNavigate: i
@@ -475,29 +476,29 @@ const Vo = (t) => {
475
476
  md: "lg"
476
477
  }, e[2] = r) : r = e[2];
477
478
  let c;
478
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Annotations" }) }), e[3] = c) : c = e[3];
479
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Annotations" }) }), e[3] = c) : c = e[3];
479
480
  let d;
480
- e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Me, { flex: 1, children: /* @__PURE__ */ a(Wo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
481
+ e[4] !== i || e[5] !== o ? (d = /* @__PURE__ */ a(Oe, { flex: 1, children: /* @__PURE__ */ a(qo, { onNavigate: i, defaultTab: o }) }), e[4] = i, e[5] = o, e[6] = d) : d = e[6];
481
482
  let u, f;
482
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(ke, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
483
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), f = /* @__PURE__ */ a(ke, {}), e[7] = u, e[8] = f) : (u = e[7], f = e[8]);
483
484
  let h;
484
- e[9] !== d ? (h = /* @__PURE__ */ y(Ie, { height: "100%", children: [
485
+ e[9] !== d ? (h = /* @__PURE__ */ y(Te, { height: "100%", children: [
485
486
  c,
486
487
  d,
487
488
  u,
488
489
  f
489
490
  ] }), e[9] = d, e[10] = h) : h = e[10];
490
491
  let m;
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
- }), Uo = (t) => {
493
- const e = x(5), {
492
+ return e[11] !== l || e[12] !== s || e[13] !== h ? (m = /* @__PURE__ */ a($e, { 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;
493
+ }), Yo = (t) => {
494
+ const e = C(5), {
494
495
  absolutePageIndex: o,
495
496
  itemIndex: n
496
497
  } = t, i = j();
497
498
  let l, s;
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
- }, jo = (t) => {
500
- const e = x(9), {
499
+ return e[0] !== o || e[1] !== n || e[2] !== i ? (l = () => i ? n !== void 0 ? bt(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);
500
+ }, Zo = (t) => {
501
+ const e = C(9), {
501
502
  absolutePageIndex: o,
502
503
  itemIndex: n
503
504
  } = t;
@@ -508,9 +509,9 @@ const Vo = (t) => {
508
509
  }, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
509
510
  const {
510
511
  data: l
511
- } = Uo(i);
512
+ } = Yo(i);
512
513
  let s, r;
513
- e[3] !== l ? (s = () => l ? l.isReady$ : at, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
514
+ e[3] !== l ? (s = () => l ? l.isReady$ : Ze, r = [l], e[3] = l, e[4] = s, e[5] = r) : (s = e[4], r = e[5]);
514
515
  const {
515
516
  data: c
516
517
  } = H(s, r);
@@ -519,8 +520,8 @@ const Vo = (t) => {
519
520
  spineItem: l,
520
521
  isReady: c
521
522
  }, e[6] = c, e[7] = l, e[8] = d) : d = e[8], d;
522
- }, qo = N((t) => {
523
- const e = x(17), {
523
+ }, Qo = N((t) => {
524
+ const e = C(17), {
524
525
  absolutePageIndex: o,
525
526
  left: n,
526
527
  top: i,
@@ -532,11 +533,11 @@ const Vo = (t) => {
532
533
  }, e[0] = o, e[1] = s) : s = e[1];
533
534
  const {
534
535
  isReady: r
535
- } = jo(s), {
536
+ } = Zo(s), {
536
537
  data: c
537
538
  } = _t();
538
539
  let d;
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
+ 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];
540
541
  const u = d;
541
542
  if (!r)
542
543
  return null;
@@ -547,8 +548,8 @@ const Vo = (t) => {
547
548
  _closed: "fade-out"
548
549
  }, e[5] = m) : m = e[5];
549
550
  const g = n + l, p = `${f}px solid #03030373`, b = `${f}px solid transparent`;
550
- let S;
551
- e[6] !== p || e[7] !== b ? (S = {
551
+ let _;
552
+ e[6] !== p || e[7] !== b ? (_ = {
552
553
  content: '""',
553
554
  position: "absolute",
554
555
  top: 0,
@@ -557,13 +558,13 @@ const Vo = (t) => {
557
558
  height: 0,
558
559
  borderTop: p,
559
560
  borderLeft: b
560
- }, e[6] = p, e[7] = b, e[8] = S) : S = e[8];
561
- let _;
562
- e[9] !== f || e[10] !== g || e[11] !== S || e[12] !== i ? (_ = /* @__PURE__ */ a(le, { "data-bookmark-area": yo, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: i, width: f, height: f, _before: S }), e[9] = f, e[10] = g, e[11] = S, e[12] = i, e[13] = _) : _ = e[13];
561
+ }, e[6] = p, e[7] = b, e[8] = _) : _ = e[8];
562
+ let S;
563
+ e[9] !== f || e[10] !== g || e[11] !== _ || e[12] !== i ? (S = /* @__PURE__ */ a(oe, { "data-bookmark-area": $o, position: "absolute", left: g, transform: "translateX(-100%)", pointerEvents: "none", top: i, width: f, height: f, _before: _ }), e[9] = f, e[10] = g, e[11] = _, e[12] = i, e[13] = S) : S = e[13];
563
564
  let v;
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
- }), Ko = N(() => {
566
- const t = x(8), e = j();
565
+ return e[14] !== h || e[15] !== S ? (v = /* @__PURE__ */ a(Qe, { present: h, lazyMount: !0, animationName: m, animationDuration: "moderate", children: S }), e[14] = h, e[15] = S, e[16] = v) : v = e[16], v;
566
+ }), Xo = N(() => {
567
+ const t = C(8), e = j();
567
568
  let o;
568
569
  t[0] !== e?.layoutInfo$ ? (o = () => e?.layoutInfo$, t[0] = e?.layoutInfo$, t[1] = o) : o = t[1];
569
570
  let n;
@@ -572,11 +573,11 @@ const Vo = (t) => {
572
573
  data: i
573
574
  } = H(o, n);
574
575
  let l;
575
- t[4] !== i?.pages ? (l = i?.pages.map(Yo), t[4] = i?.pages, t[5] = l) : l = t[5];
576
+ t[4] !== i?.pages ? (l = i?.pages.map(Jo), t[4] = i?.pages, t[5] = l) : l = t[5];
576
577
  let s;
577
- return t[6] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
578
+ return t[6] !== l ? (s = /* @__PURE__ */ a(xe, { children: l }), t[6] = l, t[7] = s) : s = t[7], s;
578
579
  });
579
- function Yo(t, e) {
580
+ function Jo(t, e) {
580
581
  const {
581
582
  absoluteLayout: o
582
583
  } = t, {
@@ -584,100 +585,100 @@ function Yo(t, e) {
584
585
  top: i,
585
586
  width: l
586
587
  } = o;
587
- return /* @__PURE__ */ a(qo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
588
+ return /* @__PURE__ */ a(Qo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
588
589
  }
589
- const et = !0, Zo = 10, Qo = ({
590
+ const nt = !0, ei = 10, ti = ({
590
591
  position: t,
591
592
  containerSize: e,
592
593
  sizePercent: o
593
594
  }) => {
594
595
  const n = Math.min(e.width, e.height) * (o / 100);
595
596
  return t.x > e.width - n && t.y < n;
596
- }, Xo = () => {
597
- const t = x(5), e = ct(), {
597
+ }, ni = () => {
598
+ const t = C(5), e = dt(), {
598
599
  data: o
599
- } = _t(), n = Ze();
600
+ } = _t(), n = Xe();
600
601
  let i, l;
601
602
  t[0] !== o || t[1] !== e || t[2] !== n ? (i = () => e ? e.gestures.hooks.register("beforeTapGesture", (r) => {
602
603
  const {
603
604
  event$: c
604
605
  } = r;
605
- return c.pipe(Ot(e?.annotations.candidates$), J((d) => {
606
+ return c.pipe(wt(e?.annotations.candidates$), J((d) => {
606
607
  const [u, f] = d;
607
608
  if (!u.page)
608
- return et;
609
+ return nt;
609
610
  const {
610
611
  spineItem: h,
611
612
  spineItemPageIndex: m,
612
613
  spineItemPagePosition: g,
613
614
  pageSize: p
614
615
  } = u.page;
615
- if (Qo({
616
+ if (ti({
616
617
  position: g,
617
618
  containerSize: p,
618
- sizePercent: Zo
619
+ sizePercent: ei
619
620
  })) {
620
- const S = e.spine.pages.fromSpineItemPageIndex(h, m);
621
- if (!S)
622
- return et;
623
- const _ = o?.find((C) => C?.meta?.absolutePageIndex === S.absolutePageIndex && C.meta.range === void 0);
624
- if (_)
625
- return n.value.onAnnotationDelete?.(_.resource.id), !et;
626
- if (f?.[S.absolutePageIndex]) {
627
- const C = e?.annotations.createAnnotation({
628
- absolutePageIndex: S.absolutePageIndex
621
+ const _ = e.spine.pages.fromSpineItemPageIndex(h, m);
622
+ if (!_)
623
+ return nt;
624
+ const S = o?.find((x) => x?.meta?.absolutePageIndex === _.absolutePageIndex && x.meta.range === void 0);
625
+ if (S)
626
+ return n.value.onAnnotationDelete?.(S.resource.id), !nt;
627
+ if (f?.[_.absolutePageIndex]) {
628
+ const x = e?.annotations.createAnnotation({
629
+ absolutePageIndex: _.absolutePageIndex
629
630
  });
630
- return C && n.value.onAnnotationCreate?.(C), !et;
631
+ return x && n.value.onAnnotationCreate?.(x), !nt;
631
632
  }
632
633
  }
633
- return et;
634
+ return nt;
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
- }, Jo = () => {
637
- const t = x(2), e = ct();
636
+ }) : 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]), ie(i, l);
637
+ }, oi = () => {
638
+ const t = C(2), e = dt();
638
639
  let o;
639
640
  t[0] !== e ? (o = () => e?.gestures.hooks.register("beforeTapGesture", (i) => {
640
641
  const {
641
642
  event$: l
642
643
  } = i;
643
- return l.pipe(Ot(e.selection.lastSelectionOnPointerdown$), J((s) => {
644
+ return l.pipe(wt(e.selection.lastSelectionOnPointerdown$), J((s) => {
644
645
  const [r, c] = s, {
645
646
  event: d
646
647
  } = r, u = d.event.target;
647
648
  return !(u && e.annotations.isTargetWithinHighlight(u) || c);
648
649
  }));
649
- }), t[0] = e, t[1] = o) : o = t[1], pe(o);
650
- }, ei = () => {
651
- const t = x(3), e = ct(), o = Ze();
650
+ }), t[0] = e, t[1] = o) : o = t[1], be(o);
651
+ }, ii = () => {
652
+ const t = C(3), e = dt(), o = Xe();
652
653
  let n;
653
654
  t[0] !== o || t[1] !== e ? (n = () => {
654
655
  if (e) {
655
- const l = o.pipe(J(ti), Ce()), s = o.pipe(J(ni), Ce()), r = St([s, l]).pipe(J(oi));
656
+ const l = o.pipe(J(li), Se()), s = o.pipe(J(si), Se()), r = ct([s, l]).pipe(J(ri));
656
657
  e.annotations.update({
657
658
  annotations$: r
658
659
  });
659
660
  }
660
- }, t[0] = o, t[1] = e, t[2] = n) : n = t[2], pe(n);
661
+ }, t[0] = o, t[1] = e, t[2] = n) : n = t[2], be(n);
661
662
  };
662
- function ti(t) {
663
+ function li(t) {
663
664
  return t.selectedHighlight?.highlight?.id;
664
665
  }
665
- function ni(t) {
666
+ function si(t) {
666
667
  return t.annotations ?? [];
667
668
  }
668
- function oi(t) {
669
+ function ri(t) {
669
670
  const [e, o] = t;
670
671
  return e.map((n) => ({
671
672
  ...n,
672
673
  selected: n.id === o
673
674
  }));
674
675
  }
675
- const Qe = () => {
676
- const t = x(2), e = j();
676
+ const Je = () => {
677
+ const t = C(2), e = j();
677
678
  let o;
678
- return t[0] !== e ? (o = ko(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
679
- }, ii = (t) => {
680
- const e = x(6), o = t === void 0 ? !0 : t, n = Qe();
679
+ return t[0] !== e ? (o = Mo(e) ? e : void 0, t[0] = e, t[1] = o) : o = t[1], o;
680
+ }, ai = (t) => {
681
+ const e = C(6), o = t === void 0 ? !0 : t, n = Je();
681
682
  let i;
682
683
  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
684
  let l;
@@ -686,43 +687,43 @@ const Qe = () => {
686
687
  data: s
687
688
  } = H(i, l);
688
689
  return s;
689
- }, li = (t) => {
690
- const e = x(8), {
690
+ }, ci = (t) => {
691
+ const e = C(8), {
691
692
  enabled: o,
692
693
  trackId: n
693
- } = t, i = o === void 0 ? !0 : o, l = Qe();
694
+ } = t, i = o === void 0 ? !0 : o, l = Je();
694
695
  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), Ce()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
696
+ e[0] !== l?.audio || e[1] !== i || e[2] !== n ? (s = () => i ? l?.audio.state$.pipe(J((u) => u.currentTrack?.id === n), Se()) : void 0, e[0] = l?.audio, e[1] = i, e[2] = n, e[3] = s) : s = e[3];
696
697
  let r;
697
698
  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
699
  const {
699
700
  data: c
700
701
  } = H(s, r);
701
702
  return c === void 0 ? !1 : c;
702
- }, si = "#93c5fd", Lt = "#3b82f6", Nt = 1, ri = 0.1, ai = 0.08, Ht = 0.25, Vt = 0.15, ci = 0.02, di = 0.145, fi = 0.52, ui = 0.16, hi = 0.5, Wt = 0.34, ye = (t, e, o) => Math.min(Math.max(t, e), o), mt = (t, e, o) => {
703
+ }, di = "#93c5fd", Gt = "#3b82f6", Ut = 1, fi = 0.1, ui = 0.08, jt = 0.25, qt = 0.15, hi = 0.02, mi = 0.145, gi = 0.52, pi = 0.16, bi = 0.5, Kt = 0.34, Ie = (t, e, o) => Math.min(Math.max(t, e), o), gt = (t, e, o) => {
703
704
  if (t === e) return +(o >= e);
704
- const n = ye((o - t) / (e - t), 0, 1);
705
+ const n = Ie((o - t) / (e - t), 0, 1);
705
706
  return n * n * (3 - 2 * n);
706
- }, mi = (t) => {
707
+ }, Si = (t) => {
707
708
  const e = Math.sin(t * Math.PI * 6 + 0.8), o = Math.sin(t * Math.PI * 14 + 1.7);
708
- return ye(0.5 + e * 0.3 + o * 0.2, 0, 1);
709
- }, gi = (t) => Array.from({
709
+ return Ie(0.5 + e * 0.3 + o * 0.2, 0, 1);
710
+ }, _i = (t) => Array.from({
710
711
  length: t
711
712
  }, (e, o) => {
712
- const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - mt(fi, 1, i), s = mi(n), r = l * (1 - Wt + s * Wt);
713
- return ye(ci + di * r, 0, 1);
714
- }), pi = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, bi = (t) => t.some((e) => e > 1e-3), mn = (t) => {
713
+ const n = t === 1 ? 0.5 : o / (t - 1), i = Math.abs(n - 0.5) * 2, l = 1 - gt(gi, 1, i), s = Si(n), r = l * (1 - Kt + s * Kt);
714
+ return Ie(hi + mi * r, 0, 1);
715
+ }), vi = (t) => t.length === 0 ? 0 : t.reduce((e, o) => e + o, 0) / t.length, xi = (t) => t.some((e) => e > 1e-3), bn = (t) => {
715
716
  const e = Math.max(1, Math.floor(t));
716
717
  return e % 2 === 0 ? e + 1 : e;
717
- }, Si = (t, e) => {
718
- const o = mn(e), n = Math.floor(o / 2) + 1, i = Array.from({
718
+ }, Ci = (t, e) => {
719
+ const o = bn(e), n = Math.floor(o / 2) + 1, i = Array.from({
719
720
  length: n
720
721
  }, (r, c) => {
721
- const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = pi(t.slice(d, u));
722
- return ye(f, 0, 1);
723
- }), l = i[0] ?? ai, s = i.slice(1);
722
+ const d = Math.floor(c * t.length / n), u = Math.max(d + 1, Math.floor((c + 1) * t.length / n)), f = vi(t.slice(d, u));
723
+ return Ie(f, 0, 1);
724
+ }), l = i[0] ?? ui, s = i.slice(1);
724
725
  return [...s.slice().reverse(), l, ...s];
725
- }, _i = (t, {
726
+ }, yi = (t, {
726
727
  topVariable: e,
727
728
  topFallback: o,
728
729
  bottomVariable: n,
@@ -733,7 +734,7 @@ const Qe = () => {
733
734
  topColor: s,
734
735
  bottomColor: r
735
736
  };
736
- }, vi = ({
737
+ }, Ii = ({
737
738
  canvas: t,
738
739
  size: e,
739
740
  visualizer: o,
@@ -747,43 +748,43 @@ const Qe = () => {
747
748
  } = e;
748
749
  if (!s || r <= 0 || c <= 0) return i;
749
750
  s.clearRect(0, 0, r, c);
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
+ const d = xi(o.levels), u = !o.isActive && !d, f = u ? _i(n) : Ci(o.levels, n), h = i.length !== f.length ? Array.from({
751
752
  length: f.length
752
- }, () => 0) : i, m = o.isActive ? h.map((C, k) => {
753
- const I = f[k] ?? 0;
754
- return C + (I - C) * 0.28;
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));
753
+ }, () => 0) : i, m = o.isActive ? h.map((x, T) => {
754
+ const I = f[T] ?? 0;
755
+ return x + (I - x) * 0.28;
756
+ }) : [...f], g = Math.round(Ie(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), _ = Math.max(0, (r - b) / 2), S = c / 2, v = Math.max(Ut, c * (u ? pi : fi));
756
757
  s.fillStyle = l;
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
- s.globalAlpha = ye((u ? hi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, w, A), s.fill();
758
+ for (const [x, T] of m.entries()) {
759
+ const I = Ie(T, 0, 1), k = m.length === 1 ? 0.5 : x / (m.length - 1), R = Math.abs(k - 0.5) * 2, P = 1 - gt(0, 1, R), E = I * (1 + qt * P) / (1 + qt * P * I), M = u ? I : E ** 1.15, A = Math.max(Ut, M * v), w = Math.min(p / 2, A / 2), $ = Math.round(_ + x * (p + g)), O = S - A / 2, z = gt(0, jt, k) * (1 - gt(1 - jt, 1, k));
760
+ s.globalAlpha = Ie((u ? bi : o.isActive ? 0.95 : 0.75) * z, 0, 1), s.beginPath(), s.roundRect($, O, p, A, w), s.fill();
760
761
  }
761
762
  return s.globalAlpha = 1, m;
762
- }, Gt = {
763
+ }, Yt = {
763
764
  levels: [],
764
765
  isActive: !1,
765
766
  trackId: void 0
766
- }, Ci = (t) => {
767
- const e = x(21), {
767
+ }, Ti = (t) => {
768
+ const e = C(21), {
768
769
  visualizer: o
769
- } = t, n = vn({
770
+ } = t, n = yn({
770
771
  base: 29,
771
772
  md: 35,
772
773
  lg: 41,
773
774
  xl: 49
774
775
  }) ?? 29;
775
776
  let i;
776
- e[0] !== n ? (i = mn(n), e[0] = n, e[1] = i) : i = e[1];
777
- const l = i, s = _e(null), r = _e(null), c = _e(void 0), d = _e(o ?? Gt);
777
+ e[0] !== n ? (i = bn(n), e[0] = n, e[1] = i) : i = e[1];
778
+ const l = i, s = ve(null), r = ve(null), c = ve(void 0), d = ve(o ?? Yt);
778
779
  let u;
779
780
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = [], e[2] = u) : u = e[2];
780
- const f = _e(u), h = _e(Lt);
781
+ const f = ve(u), h = ve(Gt);
781
782
  let m;
782
783
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
783
784
  width: 0,
784
785
  height: 0
785
786
  }, e[3] = m) : m = e[3];
786
- const g = _e(m);
787
+ const g = ve(m);
787
788
  let p;
788
789
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = () => {
789
790
  const $ = s.current;
@@ -795,22 +796,22 @@ const Qe = () => {
795
796
  const {
796
797
  topColor: z,
797
798
  bottomColor: D
798
- } = _i($, {
799
+ } = yi($, {
799
800
  topVariable: "--audio-wave-top-color",
800
- topFallback: si,
801
+ topFallback: di,
801
802
  bottomVariable: "--audio-wave-bottom-color",
802
- bottomFallback: Lt
803
+ bottomFallback: Gt
803
804
  }), F = O.createLinearGradient(0, 0, 0, g.current.height);
804
805
  F.addColorStop(0, z), F.addColorStop(1, D), h.current = F;
805
806
  }, e[4] = p) : p = e[4];
806
807
  const b = p;
807
- let S;
808
- e[5] !== l ? (S = () => {
808
+ let _;
809
+ e[5] !== l ? (_ = () => {
809
810
  const $ = s.current;
810
811
  if (!$)
811
812
  return;
812
813
  const O = d.current;
813
- f.current = vi({
814
+ f.current = Ii({
814
815
  canvas: $,
815
816
  size: g.current,
816
817
  visualizer: O,
@@ -818,50 +819,50 @@ const Qe = () => {
818
819
  displayedBars: f.current,
819
820
  fillStyle: h.current
820
821
  });
821
- }, e[5] = l, e[6] = S) : S = e[6];
822
- const _ = S;
822
+ }, e[5] = l, e[6] = _) : _ = e[6];
823
+ const S = _;
823
824
  let v;
824
825
  e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => {
825
826
  c.current !== void 0 && (cancelAnimationFrame(c.current), c.current = void 0);
826
827
  }, e[7] = v) : v = e[7];
827
- const C = v;
828
- let k;
829
- e[8] !== _ ? (k = () => {
828
+ const x = v;
829
+ let T;
830
+ e[8] !== S ? (T = () => {
830
831
  if (c.current !== void 0)
831
832
  return;
832
833
  const $ = () => {
833
834
  if (!d.current.isActive) {
834
- c.current = void 0, _();
835
+ c.current = void 0, S();
835
836
  return;
836
837
  }
837
- _(), c.current = requestAnimationFrame($);
838
+ S(), c.current = requestAnimationFrame($);
838
839
  };
839
840
  c.current = requestAnimationFrame($);
840
- }, e[8] = _, e[9] = k) : k = e[9];
841
- const I = k;
842
- let T;
843
- e[10] !== _ ? (T = () => {
841
+ }, e[8] = S, e[9] = T) : T = e[9];
842
+ const I = T;
843
+ let k;
844
+ e[10] !== S ? (k = () => {
844
845
  const $ = s.current, O = r.current;
845
846
  if (!$ || !O)
846
847
  return;
847
- const z = Math.max(1, O.clientWidth), D = Math.max(1, O.clientHeight), F = window.devicePixelRatio || 1;
848
+ const z = Math.max(1, O.clientWidth), D = Math.max(1, O.clientHeight), F = window.devicePixelRatio || 1, Q = Math.round(z * F), V = Math.round(D * F);
848
849
  g.current = {
849
850
  width: z,
850
851
  height: D
851
- }, $.width = Math.round(z * F), $.height = Math.round(D * F), $.style.width = `${z}px`, $.style.height = `${D}px`;
852
- const Y = $.getContext("2d");
853
- Y && Y.setTransform(F, 0, 0, F, 0, 0), b(), _();
854
- }, e[10] = _, e[11] = T) : T = e[11];
855
- const R = T;
852
+ }, Vt($, "width", Q), Vt($, "height", V), Wt($.style, "width", `${z}px`), Wt($.style, "height", `${D}px`);
853
+ const W = $.getContext("2d");
854
+ W && W.setTransform(F, 0, 0, F, 0, 0), b(), S();
855
+ }, e[10] = S, e[11] = k) : k = e[11];
856
+ const R = k;
856
857
  let P, E;
857
- e[12] !== _ || e[13] !== I || e[14] !== o ? (P = () => {
858
- if (d.current = o ?? Gt, d.current.isActive) {
858
+ e[12] !== S || e[13] !== I || e[14] !== o ? (P = () => {
859
+ if (d.current = o ?? Yt, d.current.isActive) {
859
860
  I();
860
861
  return;
861
862
  }
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
- let M, w;
863
+ x(), S();
864
+ }, E = [S, I, x, o], e[12] = S, e[13] = I, e[14] = o, e[15] = P, e[16] = E) : (P = e[15], E = e[16]), ie(P, E);
865
+ let M, A;
865
866
  e[17] !== R ? (M = () => {
866
867
  const $ = r.current;
867
868
  if (!$)
@@ -871,21 +872,21 @@ const Qe = () => {
871
872
  R();
872
873
  });
873
874
  return O.observe($), () => {
874
- C(), O.disconnect();
875
+ x(), O.disconnect();
875
876
  };
876
- }, w = [R, C], e[17] = R, e[18] = M, e[19] = w) : (M = e[18], w = e[19]), oe(M, w);
877
- let A;
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: {
877
+ }, A = [R, x], e[17] = R, e[18] = M, e[19] = A) : (M = e[18], A = e[19]), ie(M, A);
878
+ let w;
879
+ return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(oe, { ref: r, position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", px: 8, py: 12, pointerEvents: "none", css: {
879
880
  "--audio-wave-top-color": "colors.colorPalette.emphasized",
880
881
  "--audio-wave-bottom-color": "colors.colorPalette.solid"
881
882
  }, style: {
882
883
  WebkitMaskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)",
883
884
  maskImage: "linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%)"
884
- }, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = A) : A = e[20], A;
885
- }, xi = (t) => {
886
- const e = x(16), {
885
+ }, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = w) : w = e[20], w;
886
+ }, ki = (t) => {
887
+ const e = C(16), {
887
888
  item: o
888
- } = t, n = Qe();
889
+ } = t, n = Je();
889
890
  let i;
890
891
  e[0] !== n?.audio || e[1] !== o.renderer ? (i = n?.audio.isAudioRenderer(o.renderer), e[0] = n?.audio, e[1] = o.renderer, e[2] = i) : i = e[2];
891
892
  const l = i, s = l ? o.renderer : void 0;
@@ -901,26 +902,26 @@ const Qe = () => {
901
902
  enabled: u,
902
903
  trackId: o.item.id
903
904
  }, e[8] = o.item.id, e[9] = u, e[10] = f) : f = e[10];
904
- const h = li(f), m = ii(h);
905
+ const h = ci(f), m = ai(h);
905
906
  if (!d)
906
907
  return null;
907
908
  const g = h ? m : void 0;
908
909
  let p;
909
- e[11] !== g ? (p = /* @__PURE__ */ a(Ci, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
+ e[11] !== g ? (p = /* @__PURE__ */ a(Ti, { visualizer: g }), e[11] = g, e[12] = p) : p = e[12];
910
911
  let b;
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
- }, yi = N((t) => {
913
- const e = x(7), {
912
+ return e[13] !== d || e[14] !== p ? (b = zt(p, d), e[13] = d, e[14] = p, e[15] = b) : b = e[15], b;
913
+ }, $i = N((t) => {
914
+ const e = C(7), {
914
915
  item: o
915
916
  } = t, n = o.containerElement;
916
917
  let i;
917
- e[0] !== o ? (i = /* @__PURE__ */ a(xi, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
+ e[0] !== o ? (i = /* @__PURE__ */ a(ki, { item: o }), e[0] = o, e[1] = i) : i = e[1];
918
919
  let l;
919
- e[2] !== n || e[3] !== i ? (l = wt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
920
+ e[2] !== n || e[3] !== i ? (l = zt(i, n), e[2] = n, e[3] = i, e[4] = l) : l = e[4];
920
921
  let s;
921
- return e[5] !== l ? (s = /* @__PURE__ */ a(ve, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
922
- }), Ii = N((t) => {
923
- const e = x(18), {
922
+ return e[5] !== l ? (s = /* @__PURE__ */ a(xe, { children: l }), e[5] = l, e[6] = s) : s = e[6], s;
923
+ }), Ri = N((t) => {
924
+ const e = C(18), {
924
925
  children: o
925
926
  } = t, n = j();
926
927
  let i;
@@ -940,110 +941,110 @@ const Qe = () => {
940
941
  if (!s)
941
942
  return null;
942
943
  let u;
943
- e[8] !== d ? (u = d?.map(ki), e[8] = d, e[9] = u) : u = e[9];
944
+ e[8] !== d ? (u = d?.map(Mi), e[8] = d, e[9] = u) : u = e[9];
944
945
  let f;
945
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(ve, { children: [
946
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ y(xe, { children: [
946
947
  o,
947
948
  u
948
949
  ] }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
949
950
  let h;
950
- e[13] !== s || e[14] !== f ? (h = wt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
951
+ e[13] !== s || e[14] !== f ? (h = zt(f, s), e[13] = s, e[14] = f, e[15] = h) : h = e[15];
951
952
  let m;
952
- return e[16] !== h ? (m = /* @__PURE__ */ a(ve, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
953
+ return e[16] !== h ? (m = /* @__PURE__ */ a(xe, { children: h }), e[16] = h, e[17] = m) : m = e[17], m;
953
954
  });
954
- function ki(t) {
955
- return /* @__PURE__ */ a(yi, { item: t }, t.index);
955
+ function Mi(t) {
956
+ return /* @__PURE__ */ a($i, { item: t }, t.index);
956
957
  }
957
- const Rt = Cn({
958
+ const Mt = In({
958
959
  placement: "bottom-end",
959
960
  pauseOnPageIdle: !0
960
- }), Ti = () => {
961
- const t = x(1);
961
+ }), Oi = () => {
962
+ const t = C(1);
962
963
  let e;
963
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(pt, { children: /* @__PURE__ */ a(xn, { toaster: Rt, insetInline: {
964
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(St, { children: /* @__PURE__ */ a(Tn, { toaster: Mt, insetInline: {
964
965
  mdDown: "4"
965
- }, children: $i }) }), t[0] = e) : e = t[0], e;
966
+ }, children: Ai }) }), t[0] = e) : e = t[0], e;
966
967
  };
967
- function $i(t) {
968
- return /* @__PURE__ */ y(je.Root, { width: {
968
+ function Ai(t) {
969
+ return /* @__PURE__ */ y(qe.Root, { width: {
969
970
  md: "sm"
970
971
  }, children: [
971
- t.type === "loading" ? /* @__PURE__ */ a(yn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(je.Indicator, {}),
972
+ t.type === "loading" ? /* @__PURE__ */ a(kn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ a(qe.Indicator, {}),
972
973
  /* @__PURE__ */ y(ee, { gap: "1", flex: "1", maxWidth: "100%", children: [
973
- t.title && /* @__PURE__ */ a(je.Title, { children: t.title }),
974
- t.description && /* @__PURE__ */ a(je.Description, { children: t.description })
974
+ t.title && /* @__PURE__ */ a(qe.Title, { children: t.title }),
975
+ t.description && /* @__PURE__ */ a(qe.Description, { children: t.description })
975
976
  ] }),
976
- t.action && /* @__PURE__ */ a(je.ActionTrigger, { children: t.action.label }),
977
- t.meta?.closable && /* @__PURE__ */ a(je.CloseTrigger, {})
977
+ t.action && /* @__PURE__ */ a(qe.ActionTrigger, { children: t.action.label }),
978
+ t.meta?.closable && /* @__PURE__ */ a(qe.CloseTrigger, {})
978
979
  ] });
979
980
  }
980
- const Ri = (t) => {
981
- const e = x(25);
981
+ const wi = (t) => {
982
+ const e = C(25);
982
983
  let o, n;
983
984
  e[0] !== t ? ({
984
985
  children: o,
985
986
  ...n
986
987
  } = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
987
- const i = ot(Oi);
988
+ const i = lt(Pi);
988
989
  let l;
989
- e[3] !== i.value.fontSizeMenuOpen ? (l = () => Ke({
990
+ e[3] !== i.value.fontSizeMenuOpen ? (l = () => Ye({
990
991
  default: i.value.fontSizeMenuOpen
991
992
  }), e[3] = i.value.fontSizeMenuOpen, e[4] = l) : l = e[4];
992
- const s = ot(l), r = Tt(s);
993
+ const s = lt(l), r = kt(s);
993
994
  let c;
994
- e[5] !== s ? (c = (k) => {
995
- s.update(k);
995
+ e[5] !== s ? (c = (T) => {
996
+ s.update(T);
996
997
  }, e[5] = s, e[6] = c) : c = e[6];
997
998
  const d = c;
998
999
  let u;
999
- e[7] !== i ? (u = (k) => {
1000
+ e[7] !== i ? (u = (T) => {
1000
1001
  i.update((I) => ({
1001
1002
  ...I,
1002
- _quickMenuOpen: typeof k == "function" ? k(I._quickMenuOpen) : k
1003
+ _quickMenuOpen: typeof T == "function" ? T(I._quickMenuOpen) : T
1003
1004
  }));
1004
1005
  }, e[7] = i, e[8] = u) : u = e[8];
1005
1006
  const f = u;
1006
1007
  let h;
1007
- e[9] !== i.value.refitMenuOpen ? (h = () => Ke({
1008
+ e[9] !== i.value.refitMenuOpen ? (h = () => Ye({
1008
1009
  default: i.value.refitMenuOpen
1009
1010
  }), e[9] = i.value.refitMenuOpen, e[10] = h) : h = e[10];
1010
- const m = ot(h);
1011
+ const m = lt(h);
1011
1012
  let g;
1012
- e[11] !== m ? (g = (k) => {
1013
- m.update(k);
1013
+ e[11] !== m ? (g = (T) => {
1014
+ m.update(T);
1014
1015
  }, e[11] = m, e[12] = g) : g = e[12];
1015
- const p = g, b = Tt(m), S = Un(n, so);
1016
- let _, v;
1017
- e[13] !== f || e[14] !== S || e[15] !== r || e[16] !== d || e[17] !== p || e[18] !== b || e[19] !== i ? (_ = () => {
1018
- i.update((k) => ({
1019
- ...k,
1020
- ...S,
1016
+ const p = g, b = kt(m), _ = Kn(n, fo);
1017
+ let S, v;
1018
+ e[13] !== f || e[14] !== _ || e[15] !== r || e[16] !== d || e[17] !== p || e[18] !== b || e[19] !== i ? (S = () => {
1019
+ i.update((T) => ({
1020
+ ...T,
1021
+ ..._,
1021
1022
  onFontSizeMenuOpenChange: d,
1022
1023
  fontSizeMenuOpen: r,
1023
1024
  onRefitMenuOpenChange: p,
1024
1025
  refitMenuOpen: b,
1025
1026
  _onQuickMenuOpenChange: f
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 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
- }, Mi = N((t) => {
1031
- const e = x(6);
1028
+ }, v = [_, f, i, r, d, b, p], e[13] = f, e[14] = _, e[15] = r, e[16] = d, e[17] = p, e[18] = b, e[19] = i, e[20] = S, e[21] = v) : (S = e[20], v = e[21]), ie(S, v);
1029
+ let x;
1030
+ return e[22] !== o || e[23] !== i ? (x = /* @__PURE__ */ a(Pt.Provider, { value: i, children: o }), e[22] = o, e[23] = i, e[24] = x) : x = e[24], x;
1031
+ }, zi = N((t) => {
1032
+ const e = C(6);
1032
1033
  let o, n;
1033
1034
  e[0] !== t ? ({
1034
1035
  children: o,
1035
1036
  ...n
1036
1037
  } = t, e[0] = t, e[1] = o, e[2] = n) : (o = e[1], n = e[2]);
1037
1038
  let i;
1038
- return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(Ri, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1039
+ return e[3] !== o || e[4] !== n ? (i = /* @__PURE__ */ a(wi, { ...n, children: o }), e[3] = o, e[4] = n, e[5] = i) : i = e[5], i;
1039
1040
  });
1040
- function Oi() {
1041
- return Ke({
1042
- default: rn()
1041
+ function Pi() {
1042
+ return Ye({
1043
+ default: dn()
1043
1044
  });
1044
1045
  }
1045
- const nt = de.forwardRef(function(e, o) {
1046
- const n = x(16);
1046
+ const it = de.forwardRef(function(e, o) {
1047
+ const n = C(16);
1047
1048
  let i, l, s, r;
1048
1049
  n[0] !== e ? ({
1049
1050
  children: i,
@@ -1052,101 +1053,101 @@ const nt = de.forwardRef(function(e, o) {
1052
1053
  ...s
1053
1054
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r) : (i = n[1], l = n[2], s = n[3], r = n[4]);
1054
1055
  let c;
1055
- n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(tt.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
1056
+ n[5] !== l || n[6] !== o ? (c = /* @__PURE__ */ a(ot.ItemHiddenInput, { ref: o, ...l }), n[5] = l, n[6] = o, n[7] = c) : c = n[7];
1056
1057
  let d;
1057
- n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(tt.ItemIndicator, {}), n[8] = d) : d = n[8];
1058
+ n[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(ot.ItemIndicator, {}), n[8] = d) : d = n[8];
1058
1059
  let u;
1059
- n[9] !== i ? (u = i && /* @__PURE__ */ a(tt.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
1060
+ n[9] !== i ? (u = i && /* @__PURE__ */ a(ot.ItemText, { children: i }), n[9] = i, n[10] = u) : u = n[10];
1060
1061
  let f;
1061
- return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(tt.Item, { ref: r, ...s, children: [
1062
+ return n[11] !== s || n[12] !== r || n[13] !== c || n[14] !== u ? (f = /* @__PURE__ */ y(ot.Item, { ref: r, ...s, children: [
1062
1063
  c,
1063
1064
  d,
1064
1065
  u
1065
1066
  ] }), n[11] = s, n[12] = r, n[13] = c, n[14] = u, n[15] = f) : f = n[15], f;
1066
- }), gn = tt.Root, zt = de.memo(function(e) {
1067
- const o = x(29);
1067
+ }), Sn = ot.Root, Et = de.memo(function(e) {
1068
+ const o = C(29);
1068
1069
  let n, i, l, s, r, c, d;
1069
1070
  if (o[0] !== e) {
1070
1071
  const {
1071
1072
  ref: v,
1072
- ...C
1073
+ ...x
1073
1074
  } = e;
1074
1075
  l = v;
1075
1076
  const {
1076
- marks: k,
1077
+ marks: T,
1077
1078
  label: I,
1078
- showValue: T,
1079
+ showValue: k,
1079
1080
  ...R
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;
1081
+ } = x;
1082
+ n = I, r = k, s = R, d = x.defaultValue ?? x.value, i = T?.map(Fi), c = i?.some(Li), 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
1083
  } else
1083
1084
  n = o[1], i = o[2], l = o[3], s = o[4], r = o[5], c = o[6], d = o[7];
1084
1085
  const u = !!c;
1085
1086
  let f;
1086
- o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(fe.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1087
+ o[8] !== n || o[9] !== r ? (f = n && !r && /* @__PURE__ */ a(ue.Label, { children: n }), o[8] = n, o[9] = r, o[10] = f) : f = o[10];
1087
1088
  let h;
1088
1089
  o[11] !== n || o[12] !== r ? (h = n && r && /* @__PURE__ */ y(ce, { justify: "space-between", children: [
1089
- /* @__PURE__ */ a(fe.Label, { children: n }),
1090
- /* @__PURE__ */ a(fe.ValueText, {})
1090
+ /* @__PURE__ */ a(ue.Label, { children: n }),
1091
+ /* @__PURE__ */ a(ue.ValueText, {})
1091
1092
  ] }), o[11] = n, o[12] = r, o[13] = h) : h = o[13];
1092
1093
  const m = u || void 0;
1093
1094
  let g;
1094
- o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(fe.Track, { children: /* @__PURE__ */ a(fe.Range, {}) }), o[14] = g) : g = o[14];
1095
+ o[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ a(ue.Track, { children: /* @__PURE__ */ a(ue.Range, {}) }), o[14] = g) : g = o[14];
1095
1096
  let p;
1096
- o[15] !== d ? (p = /* @__PURE__ */ a(wi, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1097
+ o[15] !== d ? (p = /* @__PURE__ */ a(Ei, { value: d }), o[15] = d, o[16] = p) : p = o[16];
1097
1098
  let b;
1098
- o[17] !== i ? (b = /* @__PURE__ */ a(zi, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1099
- let S;
1100
- o[19] !== m || o[20] !== p || o[21] !== b ? (S = /* @__PURE__ */ y(fe.Control, { "data-has-mark-label": m, children: [
1099
+ o[17] !== i ? (b = /* @__PURE__ */ a(Bi, { marks: i }), o[17] = i, o[18] = b) : b = o[18];
1100
+ let _;
1101
+ o[19] !== m || o[20] !== p || o[21] !== b ? (_ = /* @__PURE__ */ y(ue.Control, { "data-has-mark-label": m, children: [
1101
1102
  g,
1102
1103
  p,
1103
1104
  b
1104
- ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = S) : S = o[22];
1105
- let _;
1106
- return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== S ? (_ = /* @__PURE__ */ y(fe.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1105
+ ] }), o[19] = m, o[20] = p, o[21] = b, o[22] = _) : _ = o[22];
1106
+ let S;
1107
+ return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !== _ ? (S = /* @__PURE__ */ y(ue.Root, { ref: l, thumbAlignment: "center", ...s, children: [
1107
1108
  f,
1108
1109
  h,
1109
- S
1110
- ] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = S, o[28] = _) : _ = o[28], _;
1110
+ _
1111
+ ] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] = _, o[28] = S) : S = o[28], S;
1111
1112
  });
1112
- function wi(t) {
1113
- const e = x(2), {
1113
+ function Ei(t) {
1114
+ const e = C(2), {
1114
1115
  value: o
1115
1116
  } = t;
1116
1117
  let n;
1117
- return e[0] !== o ? (n = /* @__PURE__ */ a(In, { each: o, children: Ai }), e[0] = o, e[1] = n) : n = e[1], n;
1118
+ return e[0] !== o ? (n = /* @__PURE__ */ a($n, { each: o, children: Di }), e[0] = o, e[1] = n) : n = e[1], n;
1118
1119
  }
1119
- function Ai(t, e) {
1120
- return /* @__PURE__ */ a(fe.Thumb, { index: e, children: /* @__PURE__ */ a(fe.HiddenInput, {}) }, e);
1120
+ function Di(t, e) {
1121
+ return /* @__PURE__ */ a(ue.Thumb, { index: e, children: /* @__PURE__ */ a(ue.HiddenInput, {}) }, e);
1121
1122
  }
1122
- const zi = de.forwardRef(function(e, o) {
1123
- const n = x(5), {
1123
+ const Bi = de.forwardRef(function(e, o) {
1124
+ const n = C(5), {
1124
1125
  marks: i
1125
1126
  } = e;
1126
1127
  if (!i?.length)
1127
1128
  return null;
1128
1129
  let l;
1129
- n[0] !== i ? (l = i.map(Di), n[0] = i, n[1] = l) : l = n[1];
1130
+ n[0] !== i ? (l = i.map(Ni), n[0] = i, n[1] = l) : l = n[1];
1130
1131
  let s;
1131
- return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(fe.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
1132
+ return n[2] !== o || n[3] !== l ? (s = /* @__PURE__ */ a(ue.MarkerGroup, { ref: o, children: l }), n[2] = o, n[3] = l, n[4] = s) : s = n[4], s;
1132
1133
  });
1133
- function Pi(t) {
1134
+ function Fi(t) {
1134
1135
  return typeof t == "number" ? {
1135
1136
  value: t,
1136
1137
  label: void 0
1137
1138
  } : t;
1138
1139
  }
1139
- function Ei(t) {
1140
+ function Li(t) {
1140
1141
  return t.label;
1141
1142
  }
1142
- function Di(t, e) {
1143
+ function Ni(t, e) {
1143
1144
  const o = typeof t == "number" ? t : t.value, n = typeof t == "number" ? void 0 : t.label;
1144
- return /* @__PURE__ */ y(fe.Marker, { value: o, children: [
1145
- /* @__PURE__ */ a(fe.MarkerIndicator, {}),
1145
+ return /* @__PURE__ */ y(ue.Marker, { value: o, children: [
1146
+ /* @__PURE__ */ a(ue.MarkerIndicator, {}),
1146
1147
  n
1147
1148
  ] }, e);
1148
1149
  }
1149
- const Pt = [{
1150
+ const Dt = [{
1150
1151
  value: "global",
1151
1152
  references: ["global"]
1152
1153
  }, {
@@ -1155,11 +1156,11 @@ const Pt = [{
1155
1156
  }, {
1156
1157
  value: "screen",
1157
1158
  references: ["mobile", "tablet", "desktop"]
1158
- }], Bi = Pt.map((t) => t.value), Ut = Pt.flatMap((t) => t.references), Fi = (t) => {
1159
+ }], Hi = Dt.map((t) => t.value), Zt = Dt.flatMap((t) => t.references), Vi = (t) => {
1159
1160
  if (t)
1160
- return Pt.find((e) => e.references.includes(t))?.value;
1161
- }, Li = N(() => {
1162
- const t = x(52), e = Ze();
1161
+ return Dt.find((e) => e.references.includes(t))?.value;
1162
+ }, Wi = N(() => {
1163
+ const t = C(52), e = Xe();
1163
1164
  let o;
1164
1165
  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
1166
  const {
@@ -1173,67 +1174,67 @@ const Pt = [{
1173
1174
  fontSizeValues: u,
1174
1175
  onFontSizeChange: f,
1175
1176
  onFontSizeScopeChange: h
1176
- } = ie(o), m = s === void 0 ? l : s, g = jn(f), [p, b] = ne(d ?? "global");
1177
- let S;
1178
- t[1] !== e || t[2] !== g ? (S = (L, re) => {
1179
- g.current ? g.current(L, re) : e.update((Se) => ({
1180
- ...Se,
1177
+ } = le(o), m = s === void 0 ? l : s, g = Yn(f), [p, b] = ne(d ?? "global");
1178
+ let _;
1179
+ t[1] !== e || t[2] !== g ? (_ = (L, re) => {
1180
+ g.current ? g.current(L, re) : e.update((_e) => ({
1181
+ ..._e,
1181
1182
  uncontrolledFontSize: re
1182
1183
  }));
1183
- }, t[1] = e, t[2] = g, t[3] = S) : S = t[3];
1184
- const _ = S;
1184
+ }, t[1] = e, t[2] = g, t[3] = _) : _ = t[3];
1185
+ const S = _;
1185
1186
  let v;
1186
1187
  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 C = v;
1188
- let k;
1189
- t[7] !== h ? (k = (L) => {
1188
+ const x = v;
1189
+ let T;
1190
+ t[7] !== h ? (T = (L) => {
1190
1191
  const re = L.value;
1191
1192
  h?.(re);
1192
- }, t[7] = h, t[8] = k) : k = t[8];
1193
- const I = k;
1194
- let T;
1195
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = (L) => {
1193
+ }, t[7] = h, t[8] = T) : T = t[8];
1194
+ const I = T;
1195
+ let k;
1196
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (L) => {
1196
1197
  b(L.value);
1197
- }, t[9] = T) : T = t[9];
1198
- const R = T;
1198
+ }, t[9] = k) : k = t[9];
1199
+ const R = k;
1199
1200
  let P;
1200
- t[10] !== _ || t[11] !== p ? (P = (L) => {
1201
+ t[10] !== S || t[11] !== p ? (P = (L) => {
1201
1202
  const re = L.value[0] ?? 0;
1202
- _(p, re / 100);
1203
- }, t[10] = _, t[11] = p, t[12] = P) : P = t[12];
1203
+ S(p, re / 100);
1204
+ }, t[10] = S, t[11] = p, t[12] = P) : P = t[12];
1204
1205
  const E = P;
1205
- let M, w;
1206
+ let M, A;
1206
1207
  t[13] !== d ? (M = function() {
1207
1208
  b(d ?? "global");
1208
- }, w = [d], t[13] = d, t[14] = M, t[15] = w) : (M = t[14], w = t[15]), oe(M, w);
1209
- let A;
1210
- t[16] !== i ? (A = (L) => {
1209
+ }, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]), ie(M, A);
1210
+ let w;
1211
+ t[16] !== i ? (w = (L) => {
1211
1212
  i(L.open);
1212
- }, t[16] = i, t[17] = A) : A = t[17];
1213
+ }, t[16] = i, t[17] = w) : w = t[17];
1213
1214
  let $;
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
+ t[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Font size" }) }), t[18] = $) : $ = t[18];
1215
1216
  let O, z;
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
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ a(ye.Legend, { children: "Scope" }), z = /* @__PURE__ */ a(ye.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
1218
  let D;
1218
- t[21] !== d ? (D = Fi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
+ t[21] !== d ? (D = Vi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
1219
1220
  const F = !h;
1220
- let Y;
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];
1221
+ let Q;
1222
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ce, { gap: 2, children: Hi.map(Gi) }), t[23] = Q) : Q = t[23];
1222
1223
  let V;
1223
- t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(xe.Root, { children: [
1224
+ t[24] !== I || t[25] !== D || t[26] !== F ? (V = /* @__PURE__ */ y(ye.Root, { children: [
1224
1225
  O,
1225
1226
  z,
1226
- /* @__PURE__ */ a(xe.Content, { children: /* @__PURE__ */ a(gn, { onValueChange: I, value: D, disabled: F, children: Y }) })
1227
+ /* @__PURE__ */ a(ye.Content, { children: /* @__PURE__ */ a(Sn, { onValueChange: I, value: D, disabled: F, children: Q }) })
1227
1228
  ] }), t[24] = I, t[25] = D, t[26] = F, t[27] = V) : V = t[27];
1228
- let G;
1229
- t[28] !== d ? (G = Ut.map((L) => /* @__PURE__ */ y(me.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
1230
- d === L && /* @__PURE__ */ a(zn, {}),
1231
- L
1232
- ] }, L)), t[28] = d, t[29] = G) : G = t[29];
1233
1229
  let W;
1234
- t[30] !== G ? (W = /* @__PURE__ */ a(me.List, { children: G }), t[30] = G, t[31] = W) : W = t[31];
1230
+ t[28] !== d ? (W = Zt.map((L) => /* @__PURE__ */ y(ge.Trigger, { value: L, textTransform: "capitalize", disabled: L !== "global" && !d, children: [
1231
+ d === L && /* @__PURE__ */ a(Dn, {}),
1232
+ L
1233
+ ] }, L)), t[28] = d, t[29] = W) : W = t[29];
1234
+ let G;
1235
+ t[30] !== W ? (G = /* @__PURE__ */ a(ge.List, { children: W }), t[30] = W, t[31] = G) : G = t[31];
1235
1236
  let q;
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
+ t[32] !== c || t[33] !== r || t[34] !== x || t[35] !== E ? (q = Zt.map((L) => /* @__PURE__ */ a(ge.Content, { value: L, children: /* @__PURE__ */ a(Et, { label: "%", value: [(x(L) ?? 1) * 100], onValueChange: E, showValue: !0, marks: [{
1237
1238
  value: 100,
1238
1239
  label: "Publisher"
1239
1240
  }, {
@@ -1242,40 +1243,40 @@ const Pt = [{
1242
1243
  }, {
1243
1244
  value: c * 100,
1244
1245
  label: `${c * 100}%`
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
- let Z;
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
- W,
1246
+ }], 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];
1247
+ let Y;
1248
+ t[37] !== G || t[38] !== q || t[39] !== p ? (Y = /* @__PURE__ */ y(ge.Root, { value: p, onValueChange: R, fitted: !1, size: "sm", children: [
1249
+ G,
1249
1250
  q
1250
- ] }), t[37] = W, t[38] = q, t[39] = p, t[40] = Z) : Z = t[40];
1251
+ ] }), t[37] = G, t[38] = q, t[39] = p, t[40] = Y) : Y = t[40];
1251
1252
  let K;
1252
- t[41] !== V || t[42] !== Z ? (K = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
1253
+ t[41] !== V || t[42] !== Y ? (K = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
1253
1254
  V,
1254
- Z
1255
- ] }) }), t[41] = V, t[42] = Z, t[43] = K) : K = t[43];
1256
- let Q, X;
1257
- t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(ke, {}), t[44] = Q, t[45] = X) : (Q = t[44], X = t[45]);
1255
+ Y
1256
+ ] }) }), t[41] = V, t[42] = Y, t[43] = K) : K = t[43];
1257
+ let Z, X;
1258
+ t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Close" }) }) }), X = /* @__PURE__ */ a(ke, {}), t[44] = Z, t[45] = X) : (Z = t[44], X = t[45]);
1258
1259
  let B;
1259
- t[46] !== K ? (B = /* @__PURE__ */ y(Ie, { maxH: "40vh", overflow: "auto", children: [
1260
+ t[46] !== K ? (B = /* @__PURE__ */ y(Te, { maxH: "40vh", overflow: "auto", children: [
1260
1261
  $,
1261
1262
  K,
1262
- Q,
1263
+ Z,
1263
1264
  X
1264
1265
  ] }), t[46] = K, t[47] = B) : B = t[47];
1265
1266
  let se;
1266
- return t[48] !== n || t[49] !== B || t[50] !== A ? (se = /* @__PURE__ */ a(Te, { lazyMount: !0, open: n, onOpenChange: A, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = A, t[51] = se) : se = t[51], se;
1267
+ return t[48] !== n || t[49] !== B || t[50] !== w ? (se = /* @__PURE__ */ a($e, { lazyMount: !0, open: n, onOpenChange: w, placement: "center", children: B }), t[48] = n, t[49] = B, t[50] = w, t[51] = se) : se = t[51], se;
1267
1268
  });
1268
- function Ni(t) {
1269
- return /* @__PURE__ */ a(nt, { value: t, children: t }, t);
1269
+ function Gi(t) {
1270
+ return /* @__PURE__ */ a(it, { value: t, children: t }, t);
1270
1271
  }
1271
- const Hi = () => {
1272
- const t = x(8), e = j(), o = Ze();
1272
+ const Ui = () => {
1273
+ const t = C(8), e = j(), o = Xe();
1273
1274
  let n;
1274
1275
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = ["fontSize", "uncontrolledFontSize", "onFontSizeChange"], t[0] = n) : n = t[0];
1275
1276
  const {
1276
1277
  fontSize: i,
1277
1278
  uncontrolledFontSize: l
1278
- } = ie(n), s = i ?? l;
1279
+ } = le(n), s = i ?? l;
1279
1280
  let r, c;
1280
1281
  t[1] !== s || t[2] !== e ? (r = function() {
1281
1282
  if (e && s) {
@@ -1286,22 +1287,22 @@ const Hi = () => {
1286
1287
  }, 200);
1287
1288
  return () => clearTimeout(h);
1288
1289
  }
1289
- }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), oe(r, c);
1290
+ }, c = [e, s], t[1] = s, t[2] = e, t[3] = r, t[4] = c) : (r = t[3], c = t[4]), ie(r, c);
1290
1291
  let d;
1291
1292
  return t[5] !== o || t[6] !== e?.settings.values$ ? (d = function() {
1292
- return e?.settings.values$.pipe(J(Vi)).subscribe((h) => {
1293
+ return e?.settings.values$.pipe(J(ji)).subscribe((h) => {
1293
1294
  const m = o.value.fontSize ?? o.value.uncontrolledFontSize;
1294
1295
  h !== m && (o.value.onFontSizeChange?.("internal", h), o.update((g) => ({
1295
1296
  ...g,
1296
1297
  uncontrolledFontSize: h
1297
1298
  })));
1298
1299
  });
1299
- }, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], pe(d), null;
1300
+ }, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], be(d), null;
1300
1301
  };
1301
- function Vi(t) {
1302
+ function ji(t) {
1302
1303
  return t.fontScale;
1303
1304
  }
1304
- const Wi = {
1305
+ const qi = {
1305
1306
  x: 0,
1306
1307
  y: 0,
1307
1308
  width: 0,
@@ -1311,8 +1312,8 @@ const Wi = {
1311
1312
  bottom: 0,
1312
1313
  right: 0
1313
1314
  };
1314
- function Gi() {
1315
- const t = x(7), [e, o] = ne(null), [n, i] = ne(Wi);
1315
+ function Ki() {
1316
+ const t = C(7), [e, o] = ne(null), [n, i] = ne(qi);
1316
1317
  let l;
1317
1318
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = new ResizeObserver((u) => {
1318
1319
  if (u[0]) {
@@ -1323,8 +1324,8 @@ function Gi() {
1323
1324
  height: g,
1324
1325
  top: p,
1325
1326
  left: b,
1326
- bottom: S,
1327
- right: _
1327
+ bottom: _,
1328
+ right: S
1328
1329
  } = u[0].contentRect;
1329
1330
  i({
1330
1331
  x: f,
@@ -1333,8 +1334,8 @@ function Gi() {
1333
1334
  height: g,
1334
1335
  top: p,
1335
1336
  left: b,
1336
- bottom: S,
1337
- right: _
1337
+ bottom: _,
1338
+ right: S
1338
1339
  });
1339
1340
  }
1340
1341
  }), t[0] = l) : l = t[0];
@@ -1345,42 +1346,40 @@ function Gi() {
1345
1346
  return s.observe(e), () => {
1346
1347
  s.disconnect();
1347
1348
  };
1348
- }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), Mn(r, c);
1349
+ }, c = [e, s], t[1] = e, t[2] = r, t[3] = c) : (r = t[2], c = t[3]), wn(r, c);
1349
1350
  let d;
1350
1351
  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
1352
  }
1352
- const Ui = (t, e, o) => {
1353
- const n = x(7), i = j();
1353
+ const Yi = (t, e, o) => {
1354
+ const n = C(7), i = j();
1354
1355
  let l;
1355
- n[0] !== i ? (l = dn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1356
+ n[0] !== i ? (l = hn(i) ? i : void 0, n[0] = i, n[1] = l) : l = n[1];
1356
1357
  const s = l;
1357
1358
  let r;
1358
1359
  n[2] !== t || n[3] !== e || n[4] !== o || n[5] !== s ? (r = () => {
1359
1360
  if (!s || !t)
1360
- return at;
1361
- const d = e.didLayout$.pipe(Qt(e.layoutInfo), Ce(ln)), u = oo(t).pipe(J(qi));
1362
- return d.pipe(Xt(100, void 0, {
1361
+ return Ze;
1362
+ const d = e.didLayout$.pipe(Rt(e.layoutInfo), Se(an), nn(100, void 0, {
1363
1363
  trailing: !0
1364
- }), be(() => u.pipe(bt((f) => {
1365
- f || (t.innerHTML = "");
1366
- }), st(Ki), Jt()).pipe(be(() => (t.innerHTML = "", s?.gallery.snapshot(e, t, o))))));
1367
- }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], pe(r);
1364
+ })), u = ro(t).pipe(J(Qi), Rt(!1), Se());
1365
+ return ct([d, u]).pipe(Ce((f) => {
1366
+ const [, h] = f;
1367
+ return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "", Ze);
1368
+ }));
1369
+ }, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], be(r);
1368
1370
  };
1369
- function ji(t) {
1371
+ function Zi(t) {
1370
1372
  return t.isIntersecting;
1371
1373
  }
1372
- function qi(t) {
1373
- return t.some(ji);
1374
- }
1375
- function Ki(t) {
1376
- return t;
1374
+ function Qi(t) {
1375
+ return t.some(Zi);
1377
1376
  }
1378
- const Yi = N((t) => {
1379
- const e = x(16), {
1377
+ const Xi = N((t) => {
1378
+ const e = C(17), {
1380
1379
  item: o,
1381
1380
  onNavigated: n
1382
- } = t, [i, l, s] = Gi(), r = j();
1383
- Ui(s, o, l);
1381
+ } = t, [i, l, s] = Ki(), r = j();
1382
+ Yi(s, o, l);
1384
1383
  let c, d;
1385
1384
  e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
1386
1385
  mode: "shallow"
@@ -1395,20 +1394,23 @@ const Yi = N((t) => {
1395
1394
  });
1396
1395
  }, e[4] = o, e[5] = n, e[6] = r?.navigation, e[7] = f) : f = e[7];
1397
1396
  let h;
1398
- e[8] !== i ? (h = /* @__PURE__ */ a(le, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1399
- const m = (u?.meta?.absolutePageIndex ?? 0) + 1;
1400
- let g;
1401
- e[10] !== m ? (g = /* @__PURE__ */ y(U, { position: "absolute", bottom: 0, left: "0", right: "0", textAlign: "center", bgColor: "bg.panel", color: "fg", p: 4, fontSize: "xs", children: [
1402
- "Page ",
1403
- m
1404
- ] }), e[10] = m, e[11] = g) : g = e[11];
1397
+ e[8] !== i ? (h = /* @__PURE__ */ a(oe, { height: "100%", width: "100%", overflow: "hidden", pointerEvents: "none", ref: i }), e[8] = i, e[9] = h) : h = e[9];
1398
+ let m;
1399
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(oe, { position: "absolute", inset: 0, zIndex: 1, "aria-hidden": "true" }), e[10] = m) : m = e[10];
1400
+ const g = (u?.meta?.absolutePageIndex ?? 0) + 1;
1405
1401
  let p;
1406
- return e[12] !== f || e[13] !== h || e[14] !== g ? (p = /* @__PURE__ */ y(le, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1407
- h,
1402
+ e[11] !== g ? (p = /* @__PURE__ */ y(U, { position: "absolute", bottom: 0, left: "0", right: "0", zIndex: 2, textAlign: "center", bgColor: "bg.panel", color: "fg", p: 4, fontSize: "xs", children: [
1403
+ "Page ",
1408
1404
  g
1409
- ] }), e[12] = f, e[13] = h, e[14] = g, e[15] = p) : p = e[15], p;
1410
- }), Zi = N((t) => {
1411
- const e = x(23), {
1405
+ ] }), e[11] = g, e[12] = p) : p = e[12];
1406
+ let b;
1407
+ return e[13] !== f || e[14] !== h || e[15] !== p ? (b = /* @__PURE__ */ y(oe, { width: "100%", aspectRatio: "2/3", border: "1px solid", borderColor: "border", borderRadius: "md", "data-grid-item": !0, cursor: "pointer", position: "relative", overflow: "hidden", onClick: f, children: [
1408
+ h,
1409
+ m,
1410
+ p
1411
+ ] }), e[13] = f, e[14] = h, e[15] = p, e[16] = b) : b = e[16], b;
1412
+ }), Ji = N((t) => {
1413
+ const e = C(23), {
1412
1414
  open: o,
1413
1415
  setOpen: n
1414
1416
  } = t, i = j();
@@ -1427,46 +1429,46 @@ const Yi = N((t) => {
1427
1429
  md: "lg"
1428
1430
  }, e[6] = d) : d = e[6];
1429
1431
  let u;
1430
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1432
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Gallery" }) }), e[7] = u) : u = e[7];
1431
1433
  let f;
1432
1434
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = ["repeat(2, minmax(0, 1fr))", "repeat(3, minmax(0, 1fr))"], e[8] = f) : f = e[8];
1433
1435
  let h;
1434
1436
  e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
1435
1437
  let m;
1436
- e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Yi, { item: v, onNavigated: () => {
1438
+ e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Xi, { item: v, onNavigated: () => {
1437
1439
  n(!1);
1438
1440
  } }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
1439
1441
  let g;
1440
- e[13] !== m ? (g = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(le, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1442
+ e[13] !== m ? (g = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ a(oe, { gridTemplateColumns: f, display: "grid", gap: h, pt: 2, "data-grid": !0, children: m }) }), e[13] = m, e[14] = g) : g = e[14];
1441
1443
  let p, b;
1442
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ke, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1443
- let S;
1444
- e[17] !== g ? (S = /* @__PURE__ */ y(Ie, { height: "100%", children: [
1444
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), b = /* @__PURE__ */ a(ke, {}), e[15] = p, e[16] = b) : (p = e[15], b = e[16]);
1445
+ let _;
1446
+ e[17] !== g ? (_ = /* @__PURE__ */ y(Te, { height: "100%", children: [
1445
1447
  u,
1446
1448
  g,
1447
1449
  p,
1448
1450
  b
1449
- ] }), e[17] = g, e[18] = S) : S = e[18];
1450
- let _;
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.295.0", Ji = N((t) => {
1453
- const e = x(16), {
1451
+ ] }), e[17] = g, e[18] = _) : _ = e[18];
1452
+ let S;
1453
+ return e[19] !== o || e[20] !== _ || e[21] !== c ? (S = /* @__PURE__ */ a($e, { lazyMount: !0, placement: "center", open: o, onOpenChange: c, size: d, scrollBehavior: "inside", children: _ }), e[19] = o, e[20] = _, e[21] = c, e[22] = S) : S = e[22], S;
1454
+ }), el = "@prose-reader/react-reader", tl = "1.297.0", nl = N((t) => {
1455
+ const e = C(16), {
1454
1456
  open: o,
1455
1457
  setOpen: n
1456
1458
  } = t;
1457
1459
  let i;
1458
- e[0] !== n ? (i = (S) => n(S.open), e[0] = n, e[1] = i) : i = e[1];
1460
+ e[0] !== n ? (i = (_) => n(_.open), e[0] = n, e[1] = i) : i = e[1];
1459
1461
  let l;
1460
1462
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
1461
1463
  mdDown: "full",
1462
1464
  md: "lg"
1463
1465
  }, e[2] = l) : l = e[2];
1464
1466
  let s;
1465
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Help" }) }), e[3] = s) : s = e[3];
1467
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Help" }) }), e[3] = s) : s = e[3];
1466
1468
  let r;
1467
1469
  e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }), e[4] = r) : r = e[4];
1468
1470
  let c;
1469
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(Pn, {}) }), e[5] = c) : c = e[5];
1471
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Bn, {}) }), e[5] = c) : c = e[5];
1470
1472
  let d;
1471
1473
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ce, { mb: 1, children: [
1472
1474
  c,
@@ -1474,7 +1476,7 @@ const Yi = N((t) => {
1474
1476
  /* @__PURE__ */ a(U, { children: "Navigate to right page" })
1475
1477
  ] }), e[6] = d) : d = e[6];
1476
1478
  let u;
1477
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Bt, { children: /* @__PURE__ */ a(En, {}) }), e[7] = u) : u = e[7];
1479
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Fn, {}) }), e[7] = u) : u = e[7];
1478
1480
  let f;
1479
1481
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(ee, { children: [
1480
1482
  r,
@@ -1493,65 +1495,65 @@ const Yi = N((t) => {
1493
1495
  /* @__PURE__ */ a(ce, { mb: 1, children: /* @__PURE__ */ a(U, { children: "Tap on the top right corner of a page bookmark it" }) })
1494
1496
  ] }), e[10] = m) : m = e[10];
1495
1497
  let g;
1496
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Me, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1498
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(Oe, { overflowY: "auto", flex: 1, display: "flex", flexDirection: "column", gap: 4, children: [
1497
1499
  f,
1498
1500
  m,
1499
1501
  /* @__PURE__ */ y(ee, { children: [
1500
1502
  /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "About" }),
1501
1503
  /* @__PURE__ */ y(U, { children: [
1502
- Qi,
1504
+ el,
1503
1505
  " version: ",
1504
- Xi
1506
+ tl
1505
1507
  ] })
1506
1508
  ] })
1507
1509
  ] }), e[11] = g) : g = e[11];
1508
1510
  let p;
1509
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Ie, { children: [
1511
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Te, { children: [
1510
1512
  s,
1511
1513
  g,
1512
- /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }),
1514
+ /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }),
1513
1515
  /* @__PURE__ */ a(ke, {})
1514
1516
  ] }), e[12] = p) : p = e[12];
1515
1517
  let b;
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
- }), Xe = () => {
1518
- const t = x(3), e = j();
1518
+ return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a($e, { 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;
1519
+ }), et = () => {
1520
+ const t = C(3), e = j();
1519
1521
  let o, n;
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;
1522
+ return t[0] !== e ? (o = () => e ? ct([e.pagination.state$, e.context]).pipe(J(il)) : Ze, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1521
1523
  };
1522
- function el(t) {
1524
+ function ol(t) {
1523
1525
  return t.mediaType?.startsWith("image/");
1524
1526
  }
1525
- function tl(t) {
1526
- const [e, o] = t, n = o.manifest?.spineItems.every(el);
1527
+ function il(t) {
1528
+ const [e, o] = t, n = o.manifest?.spineItems.every(ol);
1527
1529
  return {
1528
1530
  ...e,
1529
1531
  hasChapters: !o.isFullyPrePaginated && !n
1530
1532
  };
1531
1533
  }
1532
- const nl = {
1534
+ const ll = {
1533
1535
  _open: "fade-in",
1534
1536
  _closed: "fade-out"
1535
- }, ol = () => {
1536
- const t = x(6);
1537
+ }, sl = () => {
1538
+ const t = C(6);
1537
1539
  let e;
1538
1540
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
1539
1541
  const {
1540
1542
  enableFloatingProgress: o,
1541
1543
  quickMenuOpen: n
1542
- } = ie(e), i = Xe(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1544
+ } = le(e), i = et(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
1543
1545
  if (i?.percentageEstimateOfBook === void 0 || !o)
1544
1546
  return null;
1545
1547
  const r = !n;
1546
1548
  let c;
1547
- t[1] !== s ? (c = /* @__PURE__ */ a(le, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(U, { fontSize: "sm", children: [
1549
+ t[1] !== s ? (c = /* @__PURE__ */ a(oe, { position: "absolute", right: 0, bottom: 0, p: 2, WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, color: "white", children: /* @__PURE__ */ y(U, { fontSize: "sm", children: [
1548
1550
  s,
1549
1551
  " %"
1550
1552
  ] }) }), t[1] = s, t[2] = c) : c = t[2];
1551
1553
  let d;
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
- }, il = () => {
1554
- const t = x(3);
1554
+ return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(Qe, { present: r, animationName: ll, animationDuration: "moderate", children: c }), t[3] = r, t[4] = c, t[5] = d) : d = t[5], d;
1555
+ }, rl = () => {
1556
+ const t = C(3);
1555
1557
  let e;
1556
1558
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
1557
1559
  const [o, n] = ne(e);
@@ -1561,9 +1563,9 @@ const nl = {
1561
1563
  n(/* @__PURE__ */ new Date());
1562
1564
  }, 6e4);
1563
1565
  return () => clearInterval(s);
1564
- }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), oe(i, l), o;
1565
- }, ll = (t) => {
1566
- const e = x(5), o = il();
1566
+ }, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]), ie(i, l), o;
1567
+ }, al = (t) => {
1568
+ const e = C(5), o = rl();
1567
1569
  let n;
1568
1570
  e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
1569
1571
  hour: "2-digit",
@@ -1571,12 +1573,12 @@ const nl = {
1571
1573
  }), e[0] = o, e[1] = n) : n = e[1];
1572
1574
  let i;
1573
1575
  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
- }, sl = N(() => {
1575
- const t = x(1);
1576
+ }, cl = N(() => {
1577
+ const t = C(1);
1576
1578
  let e;
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
- }), rl = (t, e) => {
1579
- const o = x(4), [n, i] = ne();
1579
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(oe, { position: "absolute", left: 0, bottom: 0, p: 2, color: "white", WebkitTextStroke: "2px black", paintOrder: "stroke fill", pointerEvents: "none", letterSpacing: 1, children: /* @__PURE__ */ a(al, {}) }), t[0] = e) : e = t[0], e;
1580
+ }), dl = (t, e) => {
1581
+ const o = C(4), [n, i] = ne();
1580
1582
  let l, s;
1581
1583
  return o[0] !== e || o[1] !== t ? (l = () => {
1582
1584
  if (t === void 0) {
@@ -1590,94 +1592,98 @@ const nl = {
1590
1592
  return () => {
1591
1593
  window.clearTimeout(r);
1592
1594
  };
1593
- }, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]), oe(l, s), n;
1594
- }, al = "_pulse_1detk_1", cl = {
1595
- pulse: al
1596
- }, dl = 100, fl = 900, ul = {
1595
+ }, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]), ie(l, s), n;
1596
+ }, fl = "_pulse_1detk_1", ul = {
1597
+ pulse: fl
1598
+ }, hl = 100, ml = 900, gl = {
1597
1599
  _open: "fade-in",
1598
- _closed: "fade-out"
1599
- }, hl = ({
1600
+ _closed: "fade-out",
1601
+ _motionReduce: "none"
1602
+ }, pl = {
1603
+ base: "moderate",
1604
+ _motionReduce: "0ms"
1605
+ }, bl = ({
1600
1606
  manifest: t,
1601
1607
  viewport: e
1602
- }) => e.width === e.height ? !1 : io({
1608
+ }) => e.width === e.height ? !1 : ao({
1603
1609
  manifest: t,
1604
1610
  viewport: {
1605
1611
  height: e.width,
1606
1612
  width: e.height
1607
1613
  }
1608
- }), ml = ({
1614
+ }), Sl = ({
1609
1615
  manifest: t,
1610
1616
  pagination: e,
1611
1617
  computedSpreadMode: o,
1612
1618
  viewportState: n,
1613
1619
  viewport: i
1614
1620
  }) => {
1615
- if (!(n !== "free" || o || !hl({
1621
+ if (!(n !== "free" || o || !bl({
1616
1622
  manifest: t,
1617
1623
  viewport: i
1618
1624
  }) || !(e.beginHasAdjacentSpreadPage || e.endHasAdjacentSpreadPage)))
1619
1625
  return [e.beginSpineItemIndex, e.beginPageIndexInSpineItem, e.endSpineItemIndex, e.endPageIndexInSpineItem].map((s) => s ?? "none").join(":");
1620
- }, gl = (t) => t.pagination.state$.pipe(on(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Zn({
1626
+ }, _l = (t) => t.pagination.state$.pipe(rn(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Jn({
1621
1627
  bufferSize: 1,
1622
1628
  refCount: !0
1623
- })), pl = ({
1629
+ })), vl = ({
1624
1630
  pagination$: t,
1625
1631
  reader: e
1626
- }) => St([t, e.spineItemsManager.items$]).pipe(J(([{
1632
+ }) => ct([t, e.spineItemsManager.items$]).pipe(J(([{
1627
1633
  beginSpineItemIndex: o
1628
- }, n]) => o === void 0 ? void 0 : n[o]), Ce(), be((o) => o?.isReady$ ?? gt(!1))), bl = (t) => {
1629
- const e = gl(t), o = pl({
1634
+ }, n]) => o === void 0 ? void 0 : n[o]), Se(), Ce((o) => o?.isReady$ ?? bt(!1))), xl = (t) => {
1635
+ const e = _l(t), o = vl({
1630
1636
  pagination$: e,
1631
1637
  reader: t
1632
1638
  });
1633
- return St([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Yn(dl), J(([n, i, l, s, r, c]) => {
1639
+ return ct([e, t.context.manifest$, t.settings.watch(["computedSpreadMode"]), t.viewportState$, t.viewport.watch(["width", "height"]), o]).pipe(Xn(hl), J(([n, i, l, s, r, c]) => {
1634
1640
  if (c)
1635
- return ml({
1641
+ return Sl({
1636
1642
  manifest: i,
1637
1643
  pagination: n,
1638
1644
  computedSpreadMode: l.computedSpreadMode ?? !1,
1639
1645
  viewportState: s,
1640
1646
  viewport: r
1641
1647
  });
1642
- }), Ce());
1643
- }, Sl = () => {
1644
- const t = x(3), e = j();
1648
+ }), Se());
1649
+ }, Cl = () => {
1650
+ const t = C(3), e = j();
1645
1651
  let o, n;
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
- }, _l = N(() => {
1648
- const t = x(6), e = Sl(), o = rl(e, fl), n = o !== void 0;
1652
+ return t[0] !== e ? (o = () => e ? xl(e) : Ze, n = [e], t[0] = e, t[1] = o, t[2] = n) : (o = t[1], n = t[2]), H(o, n).data;
1653
+ }, yl = N(() => {
1654
+ const t = C(6), e = Cl(), o = dl(e, ml), n = o !== void 0;
1649
1655
  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", 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];
1656
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(oe, { alignItems: "center", bg: "bg.inverted/72", borderRadius: "full", className: ul.pulse, color: "fg.inverted", display: "flex", height: "68px", justifyContent: "center", width: "68px", children: /* @__PURE__ */ a(uo, { focusable: !1, size: 34 }) }), t[0] = i) : i = t[0];
1651
1657
  let l;
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];
1658
+ t[1] !== o ? (l = /* @__PURE__ */ a(oe, { "aria-hidden": !0, position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)", pointerEvents: "none", zIndex: 2, "data-spread-rotation-hint": "true", children: i }, o), t[1] = o, t[2] = l) : l = t[2];
1653
1659
  let s;
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
- }), vl = () => {
1656
- const t = x(2), e = j();
1660
+ return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(Qe, { present: n, lazyMount: !0, unmountOnExit: !0, animationName: gl, animationDuration: pl, children: l }), t[3] = n, t[4] = l, t[5] = s) : s = t[5], s;
1661
+ }), Il = () => {
1662
+ const t = C(2), e = j();
1657
1663
  let o;
1658
- t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Cl), t[0] = e?.links$, t[1] = o) : o = t[1], pe(o);
1664
+ t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Tl), t[0] = e?.links$, t[1] = o) : o = t[1], be(o);
1659
1665
  };
1660
- function Cl(t) {
1661
- if (t.type === "click" && lo(t.target, "a")) {
1666
+ function Tl(t) {
1667
+ if (t.type === "click" && co(t.target, "a")) {
1662
1668
  if (!t.target.href)
1663
1669
  return;
1664
1670
  const e = new URL(t.target.href);
1665
1671
  window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
1666
1672
  }
1667
1673
  }
1668
- const xl = () => {
1669
- const t = x(3);
1674
+ const kl = () => {
1675
+ const t = C(3);
1670
1676
  let e;
1671
1677
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
1672
1678
  const {
1673
1679
  notificationsSubject: o
1674
- } = ie(e);
1680
+ } = le(e);
1675
1681
  let n;
1676
- t[1] !== o ? (n = () => o.pipe(st(Zt), Qn((l) => {
1677
- const s = l.duration ?? 3e3, r = new Xn((d) => {
1682
+ t[1] !== o ? (n = () => o.pipe(pt(tn), eo((l) => {
1683
+ const s = l.duration ?? 3e3, r = new to((d) => {
1678
1684
  try {
1679
1685
  queueMicrotask(() => {
1680
- const u = Rt.create({
1686
+ const u = Mt.create({
1681
1687
  title: l.title,
1682
1688
  description: l.description,
1683
1689
  duration: s
@@ -1688,15 +1694,15 @@ const xl = () => {
1688
1694
  const f = u;
1689
1695
  d.error(f);
1690
1696
  }
1691
- }), c = o.pipe(Jn(1), st((d) => !!l.key && d?.key === l.key));
1692
- return r.pipe(be((d) => en(tn(s), l.abort ?? at, c).pipe(Jt(), eo(() => {
1697
+ }), c = o.pipe(no(1), pt((d) => !!l.key && d?.key === l.key));
1698
+ return r.pipe(Ce((d) => on(ln(s), l.abort ?? Ze, c).pipe(oo(), io(() => {
1693
1699
  queueMicrotask(() => {
1694
- Rt.dismiss(d);
1700
+ Mt.dismiss(d);
1695
1701
  });
1696
1702
  }))));
1697
- })), t[1] = o, t[2] = n) : n = t[2], pe(n);
1698
- }, yl = kn(_o), pn = N((t) => {
1699
- const e = x(10);
1703
+ })), t[1] = o, t[2] = n) : n = t[2], be(n);
1704
+ }, $l = Rn(yo), _n = N((t) => {
1705
+ const e = C(10);
1700
1706
  let o;
1701
1707
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
1702
1708
  "--bg": "colors.bg",
@@ -1757,9 +1763,9 @@ const xl = () => {
1757
1763
  }
1758
1764
  }, e[5] = r, e[6] = c) : c = e[6];
1759
1765
  let d;
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
- }), Il = () => {
1762
- const t = x(4), e = Qe();
1766
+ return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(oe, { display: "contents", css: o, children: /* @__PURE__ */ a($l, { keyboard: !1, style: n, css: i, styles: c, ...t }) }), e[7] = t, e[8] = c, e[9] = d) : d = e[9], d;
1767
+ }), Rl = () => {
1768
+ const t = C(4), e = Je();
1763
1769
  let o;
1764
1770
  t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
1765
1771
  let n;
@@ -1768,77 +1774,77 @@ const xl = () => {
1768
1774
  data: i
1769
1775
  } = H(o, n);
1770
1776
  return i;
1771
- }, jt = (t) => {
1777
+ }, Qt = (t) => {
1772
1778
  if (!Number.isFinite(t) || t < 0) return "00:00";
1773
1779
  const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
1774
1780
  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
- }, kl = (t) => {
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);
1781
+ }, Ml = (t) => {
1782
+ const e = C(42), o = Je(), n = Rl(), 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 = lt(Ol);
1777
1783
  let p;
1778
- if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J($l), bt((z) => {
1784
+ if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(Al), At((z) => {
1779
1785
  g.value || (m(z), g.next(!1));
1780
- })), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], pe(p), !n)
1786
+ })), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], be(p), !n)
1781
1787
  return null;
1782
- const S = n.isPlaying ? "Pause audio" : "Play audio";
1783
- let _;
1784
- e[3] !== o?.audio ? (_ = () => {
1788
+ const _ = n.isPlaying ? "Pause audio" : "Play audio";
1789
+ let S;
1790
+ e[3] !== o?.audio ? (S = () => {
1785
1791
  o?.audio.toggle();
1786
- }, e[3] = o?.audio, e[4] = _) : _ = e[4];
1792
+ }, e[3] = o?.audio, e[4] = S) : S = e[4];
1787
1793
  const v = !i || n.isLoading;
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
- let k;
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];
1794
+ let x;
1795
+ e[5] !== n.isPlaying ? (x = n.isPlaying ? /* @__PURE__ */ a(Ln, {}) : /* @__PURE__ */ a(Nn, {}), e[5] = n.isPlaying, e[6] = x) : x = e[6];
1796
+ let T;
1797
+ e[7] !== _ || e[8] !== S || e[9] !== v || e[10] !== x ? (T = /* @__PURE__ */ a(te, { "aria-label": _, size: "sm", variant: "ghost", onClick: S, disabled: v, children: x }), e[7] = _, e[8] = S, e[9] = v, e[10] = x, e[11] = T) : T = e[11];
1792
1798
  let I;
1793
1799
  e[12] !== g ? (I = (z) => {
1794
1800
  const D = Array.isArray(z) ? z[0] : z;
1795
1801
  typeof D == "number" && (g.next(!0), m(D));
1796
1802
  }, e[12] = g, e[13] = I) : I = e[13];
1797
- let T;
1798
- e[14] !== o?.audio || e[15] !== g ? (T = (z) => {
1803
+ let k;
1804
+ e[14] !== o?.audio || e[15] !== g ? (k = (z) => {
1799
1805
  const D = Array.isArray(z) ? z[0] : z;
1800
1806
  if (typeof D != "number") {
1801
1807
  g.next(!1);
1802
1808
  return;
1803
1809
  }
1804
1810
  m(D), o?.audio.setCurrentTime(D), g.next(!1);
1805
- }, e[14] = o?.audio, e[15] = g, e[16] = T) : T = e[16];
1811
+ }, e[14] = o?.audio, e[15] = g, e[16] = k) : k = e[16];
1806
1812
  let R;
1807
- e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== T ? (R = /* @__PURE__ */ a(pn, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: T }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = T, e[22] = R) : R = e[22];
1813
+ e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== k ? (R = /* @__PURE__ */ a(_n, { value: h, min: 0, max: d, disabled: f, onChange: I, onChangeComplete: k }), e[17] = h, e[18] = f, e[19] = d, e[20] = I, e[21] = k, e[22] = R) : R = e[22];
1808
1814
  let P;
1809
- e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : jt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1815
+ e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." : Qt(h), e[23] = n.isLoading, e[24] = h, e[25] = P) : P = e[25];
1810
1816
  let E;
1811
1817
  e[26] !== P ? (E = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
1812
1818
  let M;
1813
- e[28] !== s ? (M = jt(s), e[28] = s, e[29] = M) : M = e[29];
1814
- let w;
1815
- e[30] !== M ? (w = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = w) : w = e[31];
1819
+ e[28] !== s ? (M = Qt(s), e[28] = s, e[29] = M) : M = e[29];
1816
1820
  let A;
1817
- e[32] !== E || e[33] !== w ? (A = /* @__PURE__ */ y(ce, { justifyContent: "space-between", mt: 1, children: [
1821
+ e[30] !== M ? (A = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = A) : A = e[31];
1822
+ let w;
1823
+ e[32] !== E || e[33] !== A ? (w = /* @__PURE__ */ y(ce, { justifyContent: "space-between", mt: 1, children: [
1818
1824
  E,
1819
- w
1820
- ] }), e[32] = E, e[33] = w, e[34] = A) : A = e[34];
1825
+ A
1826
+ ] }), e[32] = E, e[33] = A, e[34] = w) : w = e[34];
1821
1827
  let $;
1822
- e[35] !== A || e[36] !== R ? ($ = /* @__PURE__ */ y(ee, { gap: 0, minW: 0, flex: 1, children: [
1828
+ e[35] !== w || e[36] !== R ? ($ = /* @__PURE__ */ y(ee, { gap: 0, minW: 0, flex: 1, children: [
1823
1829
  R,
1824
- A
1825
- ] }), e[35] = A, e[36] = R, e[37] = $) : $ = e[37];
1830
+ w
1831
+ ] }), e[35] = w, e[36] = R, e[37] = $) : $ = e[37];
1826
1832
  let O;
1827
- return e[38] !== t || e[39] !== $ || e[40] !== k ? (O = /* @__PURE__ */ y(ce, { width: "100%", maxW: "100%", gap: 3, borderRadius: "md", bg: "bg.muted", px: 3, py: 2, ...t, children: [
1828
- k,
1833
+ return e[38] !== t || e[39] !== $ || e[40] !== T ? (O = /* @__PURE__ */ y(ce, { width: "100%", maxW: "100%", gap: 3, borderRadius: "md", bg: "bg.muted", px: 3, py: 2, ...t, children: [
1834
+ T,
1829
1835
  $
1830
- ] }), e[38] = t, e[39] = $, e[40] = k, e[41] = O) : O = e[41], O;
1836
+ ] }), e[38] = t, e[39] = $, e[40] = T, e[41] = O) : O = e[41], O;
1831
1837
  };
1832
- function Tl() {
1833
- return new nn(!1);
1838
+ function Ol() {
1839
+ return new sn(!1);
1834
1840
  }
1835
- function $l(t) {
1841
+ function Al(t) {
1836
1842
  return t.currentTime;
1837
1843
  }
1838
- const Rl = () => {
1839
- const t = x(4), e = Qe();
1844
+ const wl = () => {
1845
+ const t = C(4), e = Je();
1840
1846
  let o;
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];
1847
+ t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(zl), Se()), t[0] = e?.audio.visibleTrackIds$, t[1] = o) : o = t[1];
1842
1848
  let n;
1843
1849
  t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
1844
1850
  const {
@@ -1846,11 +1852,11 @@ const Rl = () => {
1846
1852
  } = H(o, n);
1847
1853
  return i === void 0 ? !1 : i;
1848
1854
  };
1849
- function Ml(t) {
1855
+ function zl(t) {
1850
1856
  return t.length > 0;
1851
1857
  }
1852
- const Ol = de.forwardRef(function(e, o) {
1853
- const n = x(26);
1858
+ const Pl = de.forwardRef(function(e, o) {
1859
+ const n = C(26);
1854
1860
  let i, l, s, r, c, d;
1855
1861
  n[0] !== e ? ({
1856
1862
  showArrow: c,
@@ -1867,42 +1873,42 @@ const Ol = de.forwardRef(function(e, o) {
1867
1873
  gutter: 4
1868
1874
  }, n[7] = r.positioning, n[8] = f) : f = n[8];
1869
1875
  let h;
1870
- n[9] !== i ? (h = /* @__PURE__ */ a(qe.Trigger, { asChild: !0, children: i }), n[9] = i, n[10] = h) : h = n[10];
1876
+ n[9] !== i ? (h = /* @__PURE__ */ a(Ke.Trigger, { asChild: !0, children: i }), n[9] = i, n[10] = h) : h = n[10];
1871
1877
  const m = !u;
1872
1878
  let g;
1873
- n[11] !== c ? (g = c && /* @__PURE__ */ a(qe.Arrow, { children: /* @__PURE__ */ a(qe.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1879
+ n[11] !== c ? (g = c && /* @__PURE__ */ a(Ke.Arrow, { children: /* @__PURE__ */ a(Ke.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
1874
1880
  let p;
1875
- n[13] !== l || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(qe.Positioner, { children: /* @__PURE__ */ y(qe.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1881
+ n[13] !== l || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(Ke.Positioner, { children: /* @__PURE__ */ y(Ke.Content, { width: "auto", px: "2", py: "1", textStyle: "xs", rounded: "sm", ref: o, children: [
1876
1882
  g,
1877
1883
  l
1878
1884
  ] }) }), n[13] = l, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
1879
1885
  let b;
1880
- n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(pt, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1881
- let S;
1882
- return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (S = /* @__PURE__ */ y(qe.Root, { ...r, positioning: f, children: [
1886
+ n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(St, { disabled: m, container: s, children: p }), n[17] = s, n[18] = m, n[19] = p, n[20] = b) : b = n[20];
1887
+ let _;
1888
+ return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (_ = /* @__PURE__ */ y(Ke.Root, { ...r, positioning: f, children: [
1883
1889
  h,
1884
1890
  b
1885
- ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = S) : S = n[25], S;
1886
- }), wl = de.forwardRef(function(e, o) {
1887
- const n = x(8);
1891
+ ] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] = _) : _ = n[25], _;
1892
+ }), El = de.forwardRef(function(e, o) {
1893
+ const n = C(8);
1888
1894
  let i, l;
1889
1895
  n[0] !== e ? ({
1890
1896
  children: i,
1891
1897
  ...l
1892
1898
  } = e, n[0] = e, n[1] = i, n[2] = l) : (i = n[1], l = n[2]);
1893
1899
  let s;
1894
- n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(vo, {}) }), n[3] = s) : s = n[3];
1900
+ n[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(te, { variant: "ghost", "aria-label": "info", size: "2xs", colorPalette: "gray", children: /* @__PURE__ */ a(Io, {}) }), n[3] = s) : s = n[3];
1895
1901
  let r;
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
- }), Al = de.forwardRef(function(e, o) {
1898
- const n = x(4);
1902
+ return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(Pl, { content: i, ...l, ref: o, children: s }), n[4] = i, n[5] = o, n[6] = l, n[7] = r) : r = n[7], r;
1903
+ }), Dl = de.forwardRef(function(e, o) {
1904
+ const n = C(4);
1899
1905
  let i;
1900
- n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(it.Range, {}), n[0] = i) : i = n[0];
1906
+ n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(st.Range, {}), n[0] = i) : i = n[0];
1901
1907
  let l;
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;
1908
+ return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(st.Track, { ...e, ref: o, children: i }), n[1] = e, n[2] = o, n[3] = l) : l = n[3], l;
1903
1909
  });
1904
1910
  de.forwardRef(function(e, o) {
1905
- const n = x(11);
1911
+ const n = C(11);
1906
1912
  let i, l, s;
1907
1913
  n[0] !== e ? ({
1908
1914
  children: i,
@@ -1910,15 +1916,15 @@ de.forwardRef(function(e, o) {
1910
1916
  ...s
1911
1917
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s) : (i = n[1], l = n[2], s = n[3]);
1912
1918
  let r;
1913
- n[4] !== l ? (r = l && /* @__PURE__ */ a(wl, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1919
+ n[4] !== l ? (r = l && /* @__PURE__ */ a(El, { children: l }), n[4] = l, n[5] = r) : r = n[5];
1914
1920
  let c;
1915
- return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(it.Label, { ...s, ref: o, children: [
1921
+ return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(st.Label, { ...s, ref: o, children: [
1916
1922
  i,
1917
1923
  r
1918
1924
  ] }), n[6] = i, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
1919
1925
  });
1920
- const zl = it.Root, Pl = it.ValueText, Et = () => {
1921
- const t = Xe(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, l = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [i, l].sort((u, f) => u - f), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, d = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1926
+ const Bl = st.Root, Fl = st.ValueText, Bt = () => {
1927
+ const t = et(), e = t?.numberOfTotalPages === 1, o = (t?.beginNumberOfPagesInSpineItem ?? 0) > 1, n = (t?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (t?.hasChapters ? t?.beginPageIndexInSpineItem : t?.beginAbsolutePageIndex) ?? 0, l = (t?.hasChapters ? t?.endPageIndexInSpineItem : t?.endAbsolutePageIndex) ?? 0, [s = 0, r = 0] = [i, l].sort((u, f) => u - f), c = t?.beginPageIndexInSpineItem !== t?.endPageIndexInSpineItem || t?.beginSpineItemIndex !== t?.endSpineItemIndex, d = t?.hasChapters ? t?.beginNumberOfPagesInSpineItem : t?.numberOfTotalPages;
1922
1928
  return {
1923
1929
  hasOnlyOnePage: e,
1924
1930
  beginPageIndex: i,
@@ -1930,41 +1936,41 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
1930
1936
  leftPageIndex: s,
1931
1937
  rightPageIndex: r
1932
1938
  };
1933
- }, El = () => {
1934
- const t = x(24), e = Xe(), {
1939
+ }, Ll = () => {
1940
+ const t = C(24), e = et(), {
1935
1941
  hasOnlyOnePage: o,
1936
1942
  leftPageIndex: n,
1937
1943
  rightPageIndex: i,
1938
1944
  totalApproximatePages: l,
1939
1945
  beginAndEndAreDifferent: s
1940
- } = Et();
1946
+ } = Bt();
1941
1947
  let r;
1942
1948
  t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
1943
1949
  const c = r;
1944
1950
  let d;
1945
1951
  if (t[2] !== e?.beginChapterInfo) {
1946
- const v = (C) => C?.subChapter ? `${C.title} / ${v(C.subChapter)}` : C?.title || "";
1952
+ const v = (x) => x?.subChapter ? `${x.title} / ${v(x.subChapter)}` : x?.title || "";
1947
1953
  d = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = d;
1948
1954
  } else
1949
1955
  d = t[3];
1950
1956
  const u = d;
1951
1957
  let f;
1952
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Al, { width: 110 }), t[4] = f) : f = t[4];
1958
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Dl, { width: 110 }), t[4] = f) : f = t[4];
1953
1959
  const h = `${c}%`;
1954
1960
  let m;
1955
1961
  t[5] !== h ? (m = /* @__PURE__ */ y(ce, { justifyContent: "space-between", children: [
1956
1962
  f,
1957
- /* @__PURE__ */ a(Pl, { children: h })
1963
+ /* @__PURE__ */ a(Fl, { children: h })
1958
1964
  ] }), t[5] = h, t[6] = m) : m = t[6];
1959
1965
  let g;
1960
- t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(zl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1966
+ t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(Bl, { value: c, size: "xs", width: 150, children: m }), t[7] = c, t[8] = m, t[9] = g) : g = t[9];
1961
1967
  const p = u ? `Chapter: ${u}` : " ";
1962
1968
  let b;
1963
1969
  t[10] !== p ? (b = /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: p }), t[10] = p, t[11] = b) : b = t[11];
1964
- let S;
1965
- t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (S = !o && /* @__PURE__ */ y(ce, { children: [
1970
+ let _;
1971
+ t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (_ = !o && /* @__PURE__ */ y(ce, { children: [
1966
1972
  /* @__PURE__ */ a(U, { fontSize: "xs", children: s ? `${n + 1} - ${i + 1} of ${l}` : `${n + 1} of ${l}` }),
1967
- !!e?.hasChapters && /* @__PURE__ */ y(ve, { children: [
1973
+ !!e?.hasChapters && /* @__PURE__ */ y(xe, { children: [
1968
1974
  /* @__PURE__ */ a(U, { children: "-" }),
1969
1975
  /* @__PURE__ */ y(U, { fontSize: "xs", children: [
1970
1976
  "(",
@@ -1972,15 +1978,15 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
1972
1978
  ")"
1973
1979
  ] })
1974
1980
  ] })
1975
- ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = i, t[18] = l, t[19] = S) : S = t[19];
1976
- let _;
1977
- return t[20] !== g || t[21] !== b || t[22] !== S ? (_ = /* @__PURE__ */ y(ee, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1981
+ ] }), t[12] = s, t[13] = o, t[14] = n, t[15] = e?.beginAbsolutePageIndex, t[16] = e?.hasChapters, t[17] = i, t[18] = l, t[19] = _) : _ = t[19];
1982
+ let S;
1983
+ return t[20] !== g || t[21] !== b || t[22] !== _ ? (S = /* @__PURE__ */ y(ee, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
1978
1984
  g,
1979
1985
  b,
1980
- S
1981
- ] }), t[20] = g, t[21] = b, t[22] = S, t[23] = _) : _ = t[23], _;
1982
- }, bn = N((t) => {
1983
- const e = x(12);
1986
+ _
1987
+ ] }), t[20] = g, t[21] = b, t[22] = _, t[23] = S) : S = t[23], S;
1988
+ }, vn = N((t) => {
1989
+ const e = C(12);
1984
1990
  let o, n, i;
1985
1991
  e[0] !== t ? ({
1986
1992
  children: o,
@@ -2000,21 +2006,21 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2000
2006
  _closed: "slide-to-top, fade-out"
2001
2007
  }, e[4] = n, e[5] = l, e[6] = s) : (l = e[5], s = e[6]);
2002
2008
  let r;
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
- }), Dl = () => {
2005
- const t = x(10), o = Xe()?.isUsingSpread, {
2009
+ return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(Qe, { 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;
2010
+ }), Nl = () => {
2011
+ const t = C(10), o = et()?.isUsingSpread, {
2006
2012
  beginPageIndex: n,
2007
2013
  totalApproximatePages: i
2008
- } = Et(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
2014
+ } = Bt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
2009
2015
  let r;
2010
- t[0] !== s ? (r = () => Ke({
2016
+ t[0] !== s ? (r = () => Ye({
2011
2017
  default: s || 0
2012
2018
  }), t[0] = s, t[1] = r) : r = t[1];
2013
- const [c, d] = qn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
2019
+ const [c, d] = Zn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
2014
2020
  let f, h;
2015
2021
  t[2] !== s || t[3] !== d ? (f = () => {
2016
2022
  d.update(s || 0);
2017
- }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), oe(f, h);
2023
+ }, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]), ie(f, h);
2018
2024
  let m;
2019
2025
  return t[6] !== u || t[7] !== c || t[8] !== d ? (m = {
2020
2026
  value: c,
@@ -2022,8 +2028,8 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2022
2028
  min: 0,
2023
2029
  max: u
2024
2030
  }, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
2025
- }, Bl = (t) => {
2026
- const e = x(21), o = j(), n = Xe(), {
2031
+ }, Hl = (t) => {
2032
+ const e = C(21), o = j(), n = et(), {
2027
2033
  data: i
2028
2034
  } = H(() => o?.context, [o]) ?? {};
2029
2035
  let l;
@@ -2033,14 +2039,14 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2033
2039
  } = l, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
2034
2040
  totalApproximatePages: d,
2035
2041
  isBeginWithinChapter: u
2036
- } = Et(), f = d === void 0 ? 0 : d, h = u, {
2042
+ } = Bt(), f = d === void 0 ? 0 : d, h = u, {
2037
2043
  value: m,
2038
2044
  valueSignal: g,
2039
2045
  min: p,
2040
2046
  max: b
2041
- } = Dl();
2042
- let S;
2043
- e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (S = (R) => {
2047
+ } = Nl();
2048
+ let _;
2049
+ e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (_ = (R) => {
2044
2050
  const [P] = Array.isArray(R) ? R : [R], E = P === void 0 ? 0 : P;
2045
2051
  g.update(E);
2046
2052
  const M = c ? Math.floor(E) * 2 : Math.floor(E);
@@ -2052,32 +2058,32 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2052
2058
  absolutePageIndex: M,
2053
2059
  animation: !1
2054
2060
  });
2055
- }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = S) : S = e[6];
2056
- const _ = S;
2061
+ }, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = _) : _ = e[6];
2062
+ const S = _;
2057
2063
  let v;
2058
2064
  if (e[7] !== o?.navigation || e[8] !== g.subject ? (v = () => o?.navigation.throttleLock({
2059
2065
  duration: 100,
2060
2066
  trigger: g.subject
2061
- }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], pe(v), f === 1 || c && f === 2) {
2067
+ }), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], be(v), f === 1 || c && f === 2) {
2062
2068
  let R;
2063
- return e[10] !== t.style ? (R = /* @__PURE__ */ a(le, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
2069
+ return e[10] !== t.style ? (R = /* @__PURE__ */ a(oe, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
2064
2070
  }
2065
2071
  let I;
2066
2072
  e[12] !== m ? (I = [m], e[12] = m, e[13] = I) : I = e[13];
2067
- let T;
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
- }, Fl = N((t) => {
2070
- const e = x(109), {
2073
+ let k;
2074
+ return e[14] !== b || e[15] !== p || e[16] !== S || e[17] !== t || e[18] !== r || e[19] !== I ? (k = /* @__PURE__ */ a(_n, { value: I, max: b, min: p, reverse: r, step: 1, onChange: S, ...t }), e[14] = b, e[15] = p, e[16] = S, e[17] = t, e[18] = r, e[19] = I, e[20] = k) : k = e[20], k;
2075
+ }, Vl = N((t) => {
2076
+ const e = C(109), {
2071
2077
  open: o,
2072
2078
  onItemClick: n
2073
- } = t, i = _e(null), l = j();
2079
+ } = t, i = ve(null), l = j();
2074
2080
  let s;
2075
2081
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = ["quickMenuBottomBarBoundingBoxSignal", "onFontSizeMenuOpenChange", "onRefitMenuOpenChange"], e[0] = s) : s = e[0];
2076
2082
  const {
2077
2083
  quickMenuBottomBarBoundingBoxSignal: r,
2078
2084
  onFontSizeMenuOpenChange: c,
2079
2085
  onRefitMenuOpenChange: d
2080
- } = ie(s);
2086
+ } = le(s);
2081
2087
  let u;
2082
2088
  e[1] !== l?.navigation.state$ ? (u = () => l?.navigation.state$, e[1] = l?.navigation.state$, e[2] = u) : u = e[2];
2083
2089
  let f;
@@ -2093,186 +2099,195 @@ const zl = it.Root, Pl = it.ValueText, Et = () => {
2093
2099
  data: p
2094
2100
  } = H(m, g);
2095
2101
  let b;
2096
- e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Ll)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2097
- let S;
2098
- e[11] !== l ? (S = [l], e[11] = l, e[12] = S) : S = e[12];
2102
+ e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(Wl)), e[9] = l?.zoom.state$, e[10] = b) : b = e[10];
2103
+ let _;
2104
+ e[11] !== l ? (_ = [l], e[11] = l, e[12] = _) : _ = e[12];
2099
2105
  const {
2100
- data: _
2101
- } = H(b, S), v = _ === "in", C = _ === "out", k = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", T = Rl(), [R, P] = ne(!0);
2106
+ data: S
2107
+ } = H(b, _), v = S === "in", x = S === "out", T = p?.computedPageTurnMode === "scrollable", I = p?.computedPageTurnDirection === "vertical", k = wl(), [R, P] = ne(!0);
2102
2108
  let E, M;
2103
2109
  e[13] !== r ? (E = () => {
2104
2110
  if (!i.current)
2105
2111
  return;
2106
- const ht = new ResizeObserver((xt) => {
2107
- for (const Sn of xt)
2108
- r.update(Sn);
2112
+ const mt = new ResizeObserver((Ct) => {
2113
+ for (const xn of Ct)
2114
+ r.update(xn);
2109
2115
  });
2110
- return ht.observe(i.current), () => {
2111
- ht.disconnect();
2116
+ return mt.observe(i.current), () => {
2117
+ mt.disconnect();
2112
2118
  };
2113
- }, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]), oe(E, M);
2114
- let w;
2115
- e[16] !== T ? (w = T && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(kl, { maxW: 400 }) }), e[16] = T, e[17] = w) : w = e[17];
2119
+ }, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]), ie(E, M);
2116
2120
  let A;
2117
- e[18] !== l?.navigation ? (A = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = A) : A = e[19];
2121
+ e[16] !== k ? (A = k && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(Ml, { maxW: 400 }) }), e[16] = k, e[17] = A) : A = e[17];
2122
+ let w;
2123
+ e[18] !== l?.navigation ? (w = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = w) : w = e[19];
2118
2124
  const $ = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
2119
2125
  let O;
2120
- e[20] !== I ? (O = I ? /* @__PURE__ */ a(go, {}) : /* @__PURE__ */ a(po, {}), e[20] = I, e[21] = O) : O = e[21];
2126
+ e[20] !== I ? (O = I ? /* @__PURE__ */ a(_o, {}) : /* @__PURE__ */ a(vo, {}), e[20] = I, e[21] = O) : O = e[21];
2121
2127
  let z;
2122
- e[22] !== A || e[23] !== $ || e[24] !== O ? (z = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: A, disabled: $, children: O }), e[22] = A, e[23] = $, e[24] = O, e[25] = z) : z = e[25];
2128
+ e[22] !== w || e[23] !== $ || e[24] !== O ? (z = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: w, disabled: $, children: O }), e[22] = w, e[23] = $, e[24] = O, e[25] = z) : z = e[25];
2123
2129
  let D;
2124
- e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(El, {}), e[26] = D) : D = e[26];
2130
+ e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Ll, {}), e[26] = D) : D = e[26];
2125
2131
  let F;
2126
2132
  e[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ y(ee, { flex: 1, maxW: 400, gap: 2, alignItems: "center", overflow: "auto", px: 4, children: [
2127
2133
  D,
2128
- /* @__PURE__ */ a(Bl, { style: {
2134
+ /* @__PURE__ */ a(Hl, { style: {
2129
2135
  width: "100%",
2130
2136
  maxWidth: "300px",
2131
2137
  height: "35px"
2132
2138
  } })
2133
2139
  ] }), e[27] = F) : F = e[27];
2134
- const Y = !h?.canGoRightSpineItem && !h?.canGoBottomSpineItem;
2140
+ const Q = !h?.canGoRightSpineItem && !h?.canGoBottomSpineItem;
2135
2141
  let V;
2136
2142
  e[28] !== l?.navigation ? (V = () => {
2137
2143
  l?.navigation.goToRightOrBottomSpineItem();
2138
2144
  }, e[28] = l?.navigation, e[29] = V) : V = e[29];
2139
- let G;
2140
- e[30] !== I ? (G = I ? /* @__PURE__ */ a(bo, {}) : /* @__PURE__ */ a(So, {}), e[30] = I, e[31] = G) : G = e[31];
2141
2145
  let W;
2142
- e[32] !== Y || e[33] !== V || e[34] !== G ? (W = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Y, onClick: V, children: G }), e[32] = Y, e[33] = V, e[34] = G, e[35] = W) : W = e[35];
2146
+ e[30] !== I ? (W = I ? /* @__PURE__ */ a(xo, {}) : /* @__PURE__ */ a(Co, {}), e[30] = I, e[31] = W) : W = e[31];
2147
+ let G;
2148
+ e[32] !== Q || e[33] !== V || e[34] !== W ? (G = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", disabled: Q, onClick: V, children: W }), e[32] = Q, e[33] = V, e[34] = W, e[35] = G) : G = e[35];
2143
2149
  let q;
2144
- e[36] !== z || e[37] !== W ? (q = /* @__PURE__ */ y(ce, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
2150
+ e[36] !== z || e[37] !== G ? (q = /* @__PURE__ */ y(ce, { flex: 1, alignItems: "center", justifyContent: "center", maxWidth: "100%", px: 4, children: [
2145
2151
  z,
2146
2152
  F,
2147
- W
2148
- ] }), e[36] = z, e[37] = W, e[38] = q) : q = e[38];
2149
- let Z;
2150
- e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = (ht) => {
2153
+ G
2154
+ ] }), e[36] = z, e[37] = G, e[38] = q) : q = e[38];
2155
+ let Y;
2156
+ e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (mt) => {
2151
2157
  const {
2152
- open: xt
2153
- } = ht;
2154
- P(xt);
2155
- }, e[39] = Z) : Z = e[39];
2158
+ open: Ct
2159
+ } = mt;
2160
+ P(Ct);
2161
+ }, e[39] = Y) : Y = e[39];
2156
2162
  const K = R ? "rotate(0deg)" : "rotate(180deg)";
2157
- let Q;
2158
- e[40] !== K ? (Q = /* @__PURE__ */ a(It.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Fn, { style: {
2163
+ let Z;
2164
+ e[40] !== K ? (Z = /* @__PURE__ */ a(It.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Hn, { style: {
2159
2165
  transform: K
2160
- } }) }), e[40] = K, e[41] = Q) : Q = e[41];
2166
+ } }) }), e[40] = K, e[41] = Z) : Z = e[41];
2161
2167
  let X;
2162
2168
  e[42] !== n ? (X = () => n("help"), e[42] = n, e[43] = X) : X = e[43];
2163
2169
  let B;
2164
- e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Ln, {}), e[44] = B) : B = e[44];
2170
+ e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Vn, {}), e[44] = B) : B = e[44];
2165
2171
  let se;
2166
2172
  e[45] !== X ? (se = /* @__PURE__ */ a(te, { "aria-label": "Help", size: "lg", variant: "ghost", onClick: X, children: B }), e[45] = X, e[46] = se) : se = e[46];
2167
2173
  let L;
2168
2174
  e[47] !== n ? (L = () => n("toc"), e[47] = n, e[48] = L) : L = e[48];
2169
2175
  let re;
2170
- e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Nn, {}), e[49] = re) : re = e[49];
2171
- let Se;
2172
- e[50] !== L ? (Se = /* @__PURE__ */ a(te, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: L, children: re }), e[50] = L, e[51] = Se) : Se = e[51];
2173
- let Ae;
2174
- e[52] !== n || e[53] !== l ? (Ae = cn(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Hn, {}) }), e[52] = n, e[53] = l, e[54] = Ae) : Ae = e[54];
2175
- const vt = v ? "solid" : "ghost";
2176
+ e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(Wn, {}), e[49] = re) : re = e[49];
2177
+ let _e;
2178
+ e[50] !== L ? (_e = /* @__PURE__ */ a(te, { "aria-label": "Table of contents", size: "lg", variant: "ghost", onClick: L, children: re }), e[50] = L, e[51] = _e) : _e = e[51];
2176
2179
  let ze;
2177
- e[55] !== v || e[56] !== l?.zoom ? (ze = () => {
2180
+ e[52] !== n || e[53] !== l ? (ze = un(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Gn, {}) }), e[52] = n, e[53] = l, e[54] = ze) : ze = e[54];
2181
+ const vt = v ? "solid" : "ghost";
2182
+ let Pe;
2183
+ e[55] !== v || e[56] !== l?.zoom ? (Pe = () => {
2178
2184
  v ? l?.zoom.exit({
2179
2185
  animate: !0
2180
2186
  }) : l?.zoom.enter({
2181
2187
  animate: !0,
2182
2188
  scale: 2
2183
2189
  });
2184
- }, e[55] = v, e[56] = l?.zoom, e[57] = ze) : ze = e[57];
2185
- let Pe;
2186
- e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(Vn, {}) : /* @__PURE__ */ a(Wn, {}), e[58] = v, e[59] = Pe) : Pe = e[59];
2190
+ }, e[55] = v, e[56] = l?.zoom, e[57] = Pe) : Pe = e[57];
2187
2191
  let Ee;
2188
- e[60] !== vt || e[61] !== ze || e[62] !== Pe ? (Ee = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: vt, onClick: ze, children: Pe }), e[60] = vt, e[61] = ze, e[62] = Pe, e[63] = Ee) : Ee = e[63];
2192
+ e[58] !== v ? (Ee = v ? /* @__PURE__ */ a(Un, {}) : /* @__PURE__ */ a(jn, {}), e[58] = v, e[59] = Ee) : Ee = e[59];
2189
2193
  let De;
2190
- e[64] !== c ? (De = () => {
2191
- c(!0);
2192
- }, e[64] = c, e[65] = De) : De = e[65];
2193
- let dt;
2194
- e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(uo, {}), e[66] = dt) : dt = e[66];
2194
+ e[60] !== vt || e[61] !== Pe || e[62] !== Ee ? (De = /* @__PURE__ */ a(te, { "aria-label": "Zoom", size: "lg", variant: vt, onClick: Pe, children: Ee }), e[60] = vt, e[61] = Pe, e[62] = Ee, e[63] = De) : De = e[63];
2195
2195
  let Be;
2196
- e[67] !== De ? (Be = /* @__PURE__ */ a(te, { "aria-label": "font size", size: "lg", onClick: De, variant: "ghost", children: dt }), e[67] = De, e[68] = Be) : Be = e[68];
2196
+ e[64] !== c ? (Be = () => {
2197
+ c(!0);
2198
+ }, e[64] = c, e[65] = Be) : Be = e[65];
2199
+ let ft;
2200
+ e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(po, {}), e[66] = ft) : ft = e[66];
2197
2201
  let Fe;
2198
- e[69] !== n || e[70] !== l ? (Fe = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(ho, {}) }), e[69] = n, e[70] = l, e[71] = Fe) : Fe = e[71];
2202
+ e[67] !== Be ? (Fe = /* @__PURE__ */ a(te, { "aria-label": "font size", size: "lg", onClick: Be, variant: "ghost", children: ft }), e[67] = Be, e[68] = Fe) : Fe = e[68];
2199
2203
  let Le;
2200
- e[72] !== n || e[73] !== l ? (Le = rt(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(lt, {}) }), e[72] = n, e[73] = l, e[74] = Le) : Le = e[74];
2204
+ e[69] !== n || e[70] !== l ? (Le = at(l) && /* @__PURE__ */ a(te, { "aria-label": "Bookmarks", size: "lg", variant: "ghost", onClick: () => n("bookmarks"), children: /* @__PURE__ */ a(bo, {}) }), e[69] = n, e[70] = l, e[71] = Le) : Le = e[71];
2201
2205
  let Ne;
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
- d(!0);
2204
- }, disabled: !k, children: /* @__PURE__ */ a(ao, {}) }), e[75] = k, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
2205
- const Ct = C ? "solid" : "ghost";
2206
+ e[72] !== n || e[73] !== l ? (Ne = at(l) && /* @__PURE__ */ a(te, { "aria-label": "Annotations", size: "lg", variant: "ghost", onClick: () => n("annotations"), children: /* @__PURE__ */ a(rt, {}) }), e[72] = n, e[73] = l, e[74] = Ne) : Ne = e[74];
2206
2207
  let He;
2207
- e[79] !== C || e[80] !== l?.zoom ? (He = () => {
2208
- C ? l?.zoom.exit({
2208
+ e[75] !== T || e[76] !== d || e[77] !== l ? (He = mn(l) && /* @__PURE__ */ a(te, { "aria-label": "Refit", size: "lg", variant: "ghost", onClick: () => {
2209
+ d(!0);
2210
+ }, disabled: !T, children: /* @__PURE__ */ a(ho, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = He) : He = e[78];
2211
+ const xt = x ? "solid" : "ghost";
2212
+ let Ve;
2213
+ e[79] !== x || e[80] !== l?.zoom ? (Ve = () => {
2214
+ x ? l?.zoom.exit({
2209
2215
  animate: !0
2210
2216
  }) : l?.zoom.enter({
2211
2217
  animate: !0,
2212
2218
  scale: 0.5
2213
2219
  });
2214
- }, e[79] = C, e[80] = l?.zoom, e[81] = He) : He = e[81];
2215
- let ft;
2216
- e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ft = /* @__PURE__ */ a(Gn, {}), e[82] = ft) : ft = e[82];
2217
- let Ve;
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];
2220
+ }, e[79] = x, e[80] = l?.zoom, e[81] = Ve) : Ve = e[81];
2221
+ let ut;
2222
+ e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ut = /* @__PURE__ */ a(qn, {}), e[82] = ut) : ut = e[82];
2219
2223
  let We;
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];
2224
+ e[83] !== xt || e[84] !== Ve ? (We = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: xt, onClick: Ve, children: ut }), e[83] = xt, e[84] = Ve, e[85] = We) : We = e[85];
2221
2225
  let Ge;
2222
- e[89] !== se || e[90] !== Se || e[91] !== Ae || e[92] !== Ee || e[93] !== Be || e[94] !== Fe || e[95] !== Le || e[96] !== Ne || e[97] !== Ve || e[98] !== We ? (Ge = /* @__PURE__ */ a(It.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(le, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2226
+ e[86] !== n || e[87] !== l ? (Ge = hn(l) && /* @__PURE__ */ a(te, { "aria-label": "Gallery", size: "lg", variant: "ghost", onClick: () => n("gallery"), children: /* @__PURE__ */ a(So, {}) }), e[86] = n, e[87] = l, e[88] = Ge) : Ge = e[88];
2227
+ let Ue;
2228
+ e[89] !== se || e[90] !== _e || e[91] !== ze || e[92] !== De || e[93] !== Fe || e[94] !== Le || e[95] !== Ne || e[96] !== He || e[97] !== We || e[98] !== Ge ? (Ue = /* @__PURE__ */ a(It.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ y(oe, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
2223
2229
  se,
2224
- Se,
2225
- Ae,
2226
- Ee,
2227
- Be,
2230
+ _e,
2231
+ ze,
2232
+ De,
2228
2233
  Fe,
2229
2234
  Le,
2230
2235
  Ne,
2231
- Ve,
2232
- We
2233
- ] }) }), e[89] = se, e[90] = Se, e[91] = Ae, e[92] = Ee, e[93] = Be, e[94] = Fe, e[95] = Le, e[96] = Ne, e[97] = Ve, e[98] = We, e[99] = Ge) : Ge = e[99];
2234
- let Ue;
2235
- e[100] !== R || e[101] !== Q || e[102] !== Ge ? (Ue = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(It.Root, { open: R, flex: 1, onOpenChange: Z, width: "100%", children: [
2236
- Q,
2236
+ He,
2237
+ We,
2237
2238
  Ge
2238
- ] }) }), e[100] = R, e[101] = Q, e[102] = Ge, e[103] = Ue) : Ue = e[103];
2239
- let ut;
2240
- return e[104] !== o || e[105] !== w || e[106] !== q || e[107] !== Ue ? (ut = /* @__PURE__ */ y(bn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2241
- w,
2242
- q,
2239
+ ] }) }), e[89] = se, e[90] = _e, e[91] = ze, e[92] = De, e[93] = Fe, e[94] = Le, e[95] = Ne, e[96] = He, e[97] = We, e[98] = Ge, e[99] = Ue) : Ue = e[99];
2240
+ let je;
2241
+ e[100] !== R || e[101] !== Z || e[102] !== Ue ? (je = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(It.Root, { open: R, flex: 1, onOpenChange: Y, width: "100%", children: [
2242
+ Z,
2243
2243
  Ue
2244
- ] }), e[104] = o, e[105] = w, e[106] = q, e[107] = Ue, e[108] = ut) : ut = e[108], ut;
2244
+ ] }) }), e[100] = R, e[101] = Z, e[102] = Ue, e[103] = je) : je = e[103];
2245
+ let ht;
2246
+ return e[104] !== o || e[105] !== A || e[106] !== q || e[107] !== je ? (ht = /* @__PURE__ */ y(vn, { present: o, position: "bottom", display: "flex", flexDirection: "column", overflow: "auto", pb: 8, px: 0, ref: i, gap: 4, children: [
2247
+ A,
2248
+ q,
2249
+ je
2250
+ ] }), e[104] = o, e[105] = A, e[106] = q, e[107] = je, e[108] = ht) : ht = e[108], ht;
2245
2251
  });
2246
- function Ll(t) {
2252
+ function Wl(t) {
2247
2253
  return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
2248
2254
  }
2249
- const Nl = () => {
2250
- const t = x(5), [e, o] = ne(!1);
2251
- let n;
2252
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = () => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
2253
- o(!1);
2254
- }) : document.documentElement.requestFullscreen({
2255
- navigationUI: "hide"
2256
- }).catch(console.error).then(() => {
2257
- o(!0);
2258
- }), t[0] = n) : n = t[0];
2259
- const i = n;
2260
- let l, s;
2261
- t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = () => {
2262
- const c = function() {
2263
- o(!!document.fullscreenElement);
2264
- };
2265
- return document.addEventListener("fullscreenchange", c), () => {
2266
- document.removeEventListener("fullscreenchange", c);
2267
- };
2268
- }, s = [], t[1] = l, t[2] = s) : (l = t[1], s = t[2]), oe(l, s);
2269
- let r;
2270
- return t[3] !== e ? (r = {
2271
- isFullscreen: e,
2272
- onToggleFullscreenClick: i
2273
- }, t[3] = e, t[4] = r) : r = t[4], r;
2274
- }, Hl = N((t) => {
2275
- const e = x(29), {
2255
+ const Gl = () => fe.isEnabled, Ul = () => fe.isEnabled ? fe.isFullscreen : !1, jl = () => {
2256
+ const [t, e] = ne(!1), [o, n] = ne(!1), i = Nt(() => {
2257
+ e((s) => {
2258
+ const r = Ul();
2259
+ return s === r ? s : r;
2260
+ }), n((s) => {
2261
+ const r = Gl();
2262
+ return s === r ? s : r;
2263
+ });
2264
+ }, []), l = Nt(async () => {
2265
+ if (!fe.isEnabled) {
2266
+ i();
2267
+ return;
2268
+ }
2269
+ try {
2270
+ fe.isFullscreen ? await fe.exit() : await fe.request(document.documentElement, {
2271
+ navigationUI: "hide"
2272
+ });
2273
+ } catch (s) {
2274
+ console.error(s);
2275
+ } finally {
2276
+ i();
2277
+ }
2278
+ }, [i]);
2279
+ return ie(() => {
2280
+ if (i(), !!fe.isEnabled)
2281
+ return fe.on("change", i), fe.on("error", i), () => {
2282
+ fe.off("change", i), fe.off("error", i);
2283
+ };
2284
+ }, [i]), {
2285
+ isFullscreen: t,
2286
+ isFullscreenSupported: o,
2287
+ onToggleFullscreenClick: l
2288
+ };
2289
+ }, ql = N((t) => {
2290
+ const e = C(28), {
2276
2291
  open: o,
2277
2292
  onItemClick: n
2278
2293
  } = t, i = j();
@@ -2284,40 +2299,39 @@ const Nl = () => {
2284
2299
  data: r
2285
2300
  } = H(l, s), {
2286
2301
  isFullscreen: c,
2287
- onToggleFullscreenClick: d
2288
- } = Nl();
2289
- let u;
2290
- e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
2302
+ isFullscreenSupported: d,
2303
+ onToggleFullscreenClick: u
2304
+ } = jl();
2291
2305
  let f;
2292
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Co, {}), e[6] = f) : f = e[6];
2306
+ e[4] !== n ? (f = () => n("back"), e[4] = n, e[5] = f) : f = e[5];
2293
2307
  let h;
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
- const m = r?.title;
2296
- let g;
2297
- e[9] !== m ? (g = /* @__PURE__ */ a(ee, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", children: m }) }), e[9] = m, e[10] = g) : g = e[10];
2308
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(To, {}), e[6] = h) : h = e[6];
2309
+ let m;
2310
+ e[7] !== f ? (m = /* @__PURE__ */ a(te, { "aria-label": "left", size: "lg", variant: "ghost", flexShrink: 0, onClick: f, children: h }), e[7] = f, e[8] = m) : m = e[8];
2311
+ const g = r?.title;
2298
2312
  let p;
2299
- e[11] !== n ? (p = () => n("more"), e[11] = n, e[12] = p) : p = e[12];
2313
+ e[9] !== g ? (p = /* @__PURE__ */ a(ee, { flex: 1, maxW: 600, gap: 1, alignItems: "center", overflow: "auto", px: 4, children: /* @__PURE__ */ a(U, { truncate: !0, maxWidth: "100%", children: g }) }), e[9] = g, e[10] = p) : p = e[10];
2300
2314
  let b;
2301
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(xo, {}), e[13] = b) : b = e[13];
2302
- let S;
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];
2315
+ e[11] !== n ? (b = () => n("more"), e[11] = n, e[12] = b) : b = e[12];
2304
2316
  let _;
2305
- e[16] !== c ? (_ = c ? /* @__PURE__ */ a(co, {}) : /* @__PURE__ */ a(fo, {}), e[16] = c, e[17] = _) : _ = e[17];
2317
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a(ko, {}), e[13] = _) : _ = e[13];
2318
+ let S;
2319
+ e[14] !== b ? (S = /* @__PURE__ */ a(te, { "aria-label": "right", size: "lg", flexShrink: 0, variant: "ghost", onClick: b, children: _ }), e[14] = b, e[15] = S) : S = e[15];
2306
2320
  let v;
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 C;
2309
- e[21] !== S || e[22] !== v ? (C = /* @__PURE__ */ y(ce, { children: [
2321
+ e[16] !== c || e[17] !== d || e[18] !== u ? (v = d && /* @__PURE__ */ a(te, { "aria-label": c ? "Exit fullscreen" : "Enter fullscreen", size: "lg", flexShrink: 0, variant: "ghost", onClick: u, children: c ? /* @__PURE__ */ a(mo, {}) : /* @__PURE__ */ a(go, {}) }), e[16] = c, e[17] = d, e[18] = u, e[19] = v) : v = e[19];
2322
+ let x;
2323
+ e[20] !== S || e[21] !== v ? (x = /* @__PURE__ */ y(ce, { children: [
2310
2324
  S,
2311
2325
  v
2312
- ] }), e[21] = S, e[22] = v, e[23] = C) : C = e[23];
2313
- let k;
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
- h,
2316
- g,
2317
- C
2318
- ] }), e[24] = o, e[25] = C, e[26] = h, e[27] = g, e[28] = k) : k = e[28], k;
2319
- }), Dt = () => {
2320
- const t = x(4);
2326
+ ] }), e[20] = S, e[21] = v, e[22] = x) : x = e[22];
2327
+ let T;
2328
+ return e[23] !== o || e[24] !== x || e[25] !== m || e[26] !== p ? (T = /* @__PURE__ */ y(vn, { present: o, position: "top", height: "80px", justifyContent: "space-between", children: [
2329
+ m,
2330
+ p,
2331
+ x
2332
+ ] }), e[23] = o, e[24] = x, e[25] = m, e[26] = p, e[27] = T) : T = e[27], T;
2333
+ }), Ft = () => {
2334
+ const t = C(4);
2321
2335
  let e;
2322
2336
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
2323
2337
  const {
@@ -2325,46 +2339,46 @@ const Nl = () => {
2325
2339
  onQuickMenuOpenChange: n,
2326
2340
  _quickMenuOpen: i,
2327
2341
  _onQuickMenuOpenChange: l
2328
- } = ie(e), s = o ?? i, r = n ?? l;
2342
+ } = le(e), s = o ?? i, r = n ?? l;
2329
2343
  let c;
2330
2344
  return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
2331
- }, Vl = N((t) => {
2332
- const e = x(10), {
2345
+ }, Kl = N((t) => {
2346
+ const e = C(10), {
2333
2347
  onItemClick: o
2334
- } = t, [n] = Dt();
2348
+ } = t, [n] = Ft();
2335
2349
  let i;
2336
2350
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["refitMenuOpen", "fontSizeMenuOpen", "selectedHighlight"], e[0] = i) : i = e[0];
2337
2351
  const {
2338
2352
  refitMenuOpen: l,
2339
2353
  fontSizeMenuOpen: s,
2340
2354
  selectedHighlight: r
2341
- } = ie(i), c = n && !l && !s && !r;
2355
+ } = le(i), c = n && !l && !s && !r;
2342
2356
  let d;
2343
- e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(Hl, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2357
+ e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(ql, { open: c, onItemClick: o }), e[1] = o, e[2] = c, e[3] = d) : d = e[3];
2344
2358
  const u = n && !l && !s;
2345
2359
  let f;
2346
- e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Fl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2360
+ e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(Vl, { open: u, onItemClick: o }), e[4] = o, e[5] = u, e[6] = f) : f = e[6];
2347
2361
  let h;
2348
- return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(ve, { children: [
2362
+ return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(xe, { children: [
2349
2363
  d,
2350
2364
  f
2351
2365
  ] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
2352
- }), Wl = () => {
2353
- const t = x(3), [, e] = Dt(), o = j();
2366
+ }), Yl = () => {
2367
+ const t = C(3), [, e] = Ft(), o = j();
2354
2368
  let n;
2355
- t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(st(Gl), Ot(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), bt((l) => {
2369
+ t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(pt(Zl), wt(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), At((l) => {
2356
2370
  const [, s, r] = l;
2357
- e(s || r ? !1 : Ul);
2358
- })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], pe(n);
2371
+ e(s || r ? !1 : Ql);
2372
+ })), t[0] = e, t[1] = o, t[2] = n) : n = t[2], be(n);
2359
2373
  };
2360
- function Gl(t) {
2374
+ function Zl(t) {
2361
2375
  return t.type === "tap" && !t.handled;
2362
2376
  }
2363
- function Ul(t) {
2377
+ function Ql(t) {
2364
2378
  return !t;
2365
2379
  }
2366
- const jl = de.forwardRef(function(e, o) {
2367
- const n = x(21);
2380
+ const Xl = de.forwardRef(function(e, o) {
2381
+ const n = C(21);
2368
2382
  let i, l, s, r, c, d;
2369
2383
  n[0] !== e ? ({
2370
2384
  label: r,
@@ -2375,31 +2389,31 @@ const jl = de.forwardRef(function(e, o) {
2375
2389
  ...d
2376
2390
  } = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s, n[4] = r, n[5] = c, n[6] = d) : (i = n[1], l = n[2], s = n[3], r = n[4], c = n[5], d = n[6]);
2377
2391
  let u;
2378
- n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(Je.Label, { children: [
2392
+ n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(tt.Label, { children: [
2379
2393
  r,
2380
- /* @__PURE__ */ a(Je.RequiredIndicator, { fallback: c })
2394
+ /* @__PURE__ */ a(tt.RequiredIndicator, { fallback: c })
2381
2395
  ] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
2382
2396
  let f;
2383
- n[10] !== s ? (f = s && /* @__PURE__ */ a(Je.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2397
+ n[10] !== s ? (f = s && /* @__PURE__ */ a(tt.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
2384
2398
  let h;
2385
- n[12] !== l ? (h = l && /* @__PURE__ */ a(Je.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2399
+ n[12] !== l ? (h = l && /* @__PURE__ */ a(tt.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
2386
2400
  let m;
2387
- return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(Je.Root, { ref: o, ...d, children: [
2401
+ return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(tt.Root, { ref: o, ...d, children: [
2388
2402
  u,
2389
2403
  i,
2390
2404
  f,
2391
2405
  h
2392
2406
  ] }), 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
- }), ql = N(() => {
2394
- const t = x(39);
2407
+ }), Jl = N(() => {
2408
+ const t = C(39);
2395
2409
  let e;
2396
2410
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
2397
2411
  const {
2398
2412
  refitMenuOpen: o,
2399
2413
  onRefitMenuOpenChange: n
2400
- } = ie(e), i = j();
2414
+ } = le(e), i = j();
2401
2415
  let l;
2402
- t[1] !== i ? (l = fn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2416
+ t[1] !== i ? (l = mn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
2403
2417
  const s = l;
2404
2418
  let r;
2405
2419
  t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
@@ -2411,9 +2425,9 @@ const jl = de.forwardRef(function(e, o) {
2411
2425
  let u;
2412
2426
  t[7] !== n ? (u = ($) => n($.open), t[7] = n, t[8] = u) : u = t[8];
2413
2427
  let f;
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];
2428
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Viewport fit" }) }), t[9] = f) : f = t[9];
2415
2429
  let h;
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];
2430
+ t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(ye.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }), t[10] = h) : h = t[10];
2417
2431
  let m;
2418
2432
  t[11] !== s?.refit ? (m = ($) => {
2419
2433
  const O = $.value;
@@ -2424,53 +2438,53 @@ const jl = de.forwardRef(function(e, o) {
2424
2438
  }, t[11] = s?.refit, t[12] = m) : m = t[12];
2425
2439
  const g = d?.viewportFit ?? "fit";
2426
2440
  let p;
2427
- t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(nt, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2441
+ t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(it, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
2428
2442
  let b;
2429
- t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(nt, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2430
- let S;
2431
- t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(nt, { value: "fit", children: "Full width (default)" }), t[15] = S) : S = t[15];
2443
+ t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(it, { value: "tablet", children: "Tablet" }), t[14] = b) : b = t[14];
2432
2444
  let _;
2433
- t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ y(ee, { gap: 2, children: [
2445
+ t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ a(it, { value: "fit", children: "Full width (default)" }), t[15] = _) : _ = t[15];
2446
+ let S;
2447
+ t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ y(ee, { gap: 2, children: [
2434
2448
  p,
2435
2449
  b,
2436
- S,
2437
- /* @__PURE__ */ a(nt, { value: "custom", children: "Custom" })
2438
- ] }), t[16] = _) : _ = t[16];
2450
+ _,
2451
+ /* @__PURE__ */ a(it, { value: "custom", children: "Custom" })
2452
+ ] }), t[16] = S) : S = t[16];
2439
2453
  let v;
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 C = d?.viewportFit !== "custom", k = d?.customWidth ?? 60;
2454
+ t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(Xl, { label: "Profile", children: /* @__PURE__ */ a(Sn, { defaultValue: "fit", onValueChange: m, value: g, children: S }) }), t[17] = m, t[18] = g, t[19] = v) : v = t[19];
2455
+ const x = d?.viewportFit !== "custom", T = d?.customWidth ?? 60;
2442
2456
  let I;
2443
- t[20] !== k ? (I = [k], t[20] = k, t[21] = I) : I = t[21];
2444
- let T;
2445
- t[22] !== s?.refit ? (T = ($) => {
2457
+ t[20] !== T ? (I = [T], t[20] = T, t[21] = I) : I = t[21];
2458
+ let k;
2459
+ t[22] !== s?.refit ? (k = ($) => {
2446
2460
  const O = $.value[0] ?? 0;
2447
2461
  s?.refit.update({
2448
2462
  customWidth: O
2449
2463
  });
2450
- }, t[22] = s?.refit, t[23] = T) : T = t[23];
2464
+ }, t[22] = s?.refit, t[23] = k) : k = t[23];
2451
2465
  let R;
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];
2466
+ t[24] !== x || t[25] !== I || t[26] !== k ? (R = /* @__PURE__ */ a(Et, { label: "Maximum width (%)", showValue: !0, max: 100, min: 10, step: 1, disabled: x, value: I, onValueChange: k }), t[24] = x, t[25] = I, t[26] = k, t[27] = R) : R = t[27];
2453
2467
  let P;
2454
- t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ y(xe.Root, { children: [
2468
+ t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ye.Root, { children: [
2455
2469
  h,
2456
- /* @__PURE__ */ y(xe.Content, { children: [
2470
+ /* @__PURE__ */ y(ye.Content, { children: [
2457
2471
  v,
2458
2472
  R
2459
2473
  ] })
2460
2474
  ] }) }), t[28] = v, t[29] = R, t[30] = P) : P = t[30];
2461
2475
  let E, M;
2462
- t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(ke, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
2463
- let w;
2464
- t[33] !== P ? (w = /* @__PURE__ */ y(Ie, { children: [
2476
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Close" }) }) }), M = /* @__PURE__ */ a(ke, {}), t[31] = E, t[32] = M) : (E = t[31], M = t[32]);
2477
+ let A;
2478
+ t[33] !== P ? (A = /* @__PURE__ */ y(Te, { children: [
2465
2479
  f,
2466
2480
  P,
2467
2481
  E,
2468
2482
  M
2469
- ] }), t[33] = P, t[34] = w) : w = t[34];
2470
- let A;
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
- }), Kl = N((t) => {
2473
- const e = x(26), {
2483
+ ] }), t[33] = P, t[34] = A) : A = t[34];
2484
+ let w;
2485
+ return t[35] !== o || t[36] !== A || t[37] !== u ? (w = /* @__PURE__ */ a($e, { lazyMount: !0, open: o, onOpenChange: u, placement: "center", children: A }), t[35] = o, t[36] = A, t[37] = u, t[38] = w) : w = t[38], w;
2486
+ }), es = N((t) => {
2487
+ const e = C(26), {
2474
2488
  contextText: o,
2475
2489
  startOffset: n,
2476
2490
  text: i,
@@ -2493,44 +2507,44 @@ const jl = de.forwardRef(function(e, o) {
2493
2507
  e[8] !== u || e[9] !== s ? (b = (R) => {
2494
2508
  R.preventDefault(), s(u);
2495
2509
  }, e[8] = u, e[9] = s, e[10] = b) : b = e[10];
2496
- let S;
2497
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
2498
- display: "block"
2499
- }, e[11] = S) : S = e[11];
2500
2510
  let _;
2501
- e[12] !== i ? (_ = /* @__PURE__ */ a("b", { children: i }), e[12] = i, e[13] = _) : _ = e[13];
2511
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
2512
+ display: "block"
2513
+ }, e[11] = _) : _ = e[11];
2514
+ let S;
2515
+ e[12] !== i ? (S = /* @__PURE__ */ a("b", { children: i }), e[12] = i, e[13] = S) : S = e[13];
2502
2516
  let v;
2503
- e[14] !== g || e[15] !== h || e[16] !== _ ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: S, children: [
2517
+ e[14] !== g || e[15] !== h || e[16] !== S ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: _, children: [
2504
2518
  '"',
2505
2519
  h,
2506
- _,
2520
+ S,
2507
2521
  g,
2508
2522
  '"'
2509
- ] }), e[14] = g, e[15] = h, e[16] = _, e[17] = v) : v = e[17];
2510
- let C;
2511
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = {
2523
+ ] }), e[14] = g, e[15] = h, e[16] = S, e[17] = v) : v = e[17];
2524
+ let x;
2525
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
2512
2526
  textDecoration: "none"
2513
- }, e[18] = C) : C = e[18];
2514
- const k = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2527
+ }, e[18] = x) : x = e[18];
2528
+ const T = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
2515
2529
  let I;
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
- let T;
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: [
2530
+ e[19] !== T ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style: x, children: T }), e[19] = T, e[20] = I) : I = e[20];
2531
+ let k;
2532
+ return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (k = /* @__PURE__ */ y(Ot, { href: u, style: p, onClick: b, display: "flex", flexDirection: "column", alignItems: "flex-start", gap: 0, children: [
2519
2533
  v,
2520
2534
  I
2521
- ] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = T) : T = e[25], T;
2522
- }), Yl = 500, Zl = () => {
2523
- const t = x(13), e = ot(Ql), {
2535
+ ] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = k) : k = e[25], k;
2536
+ }), ts = 500, ns = () => {
2537
+ const t = C(13), e = lt(os), {
2524
2538
  data: o
2525
2539
  } = H(e), n = j();
2526
2540
  let i;
2527
- t[0] !== n ? (i = cn(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2541
+ t[0] !== n ? (i = un(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
2528
2542
  const l = i;
2529
2543
  let s, r;
2530
- t[2] !== l || t[3] !== e ? (s = () => e.pipe(Ce(), be((m) => m === "" || !l ? gt(void 0) : en(gt({
2544
+ t[2] !== l || t[3] !== e ? (s = () => e.pipe(Se(), Ce((m) => m === "" || !l ? bt(void 0) : on(bt({
2531
2545
  type: "start",
2532
2546
  data: void 0
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]);
2547
+ }), ln(ts).pipe(Ce(() => l.search.search(m)), J(is))))), r = [l, e], t[2] = l, t[3] = e, t[4] = s, t[5] = r) : (s = t[4], r = t[5]);
2534
2548
  const {
2535
2549
  data: c
2536
2550
  } = H(s, r);
@@ -2545,24 +2559,24 @@ const jl = de.forwardRef(function(e, o) {
2545
2559
  data: f
2546
2560
  }, t[8] = o, t[9] = d, t[10] = u, t[11] = f, t[12] = h) : h = t[12], h;
2547
2561
  };
2548
- function Ql() {
2549
- return new nn("");
2562
+ function os() {
2563
+ return new sn("");
2550
2564
  }
2551
- function Xl(t) {
2565
+ function is(t) {
2552
2566
  return {
2553
2567
  type: "end",
2554
2568
  data: t
2555
2569
  };
2556
2570
  }
2557
- const Jl = N((t) => {
2558
- const e = x(31), {
2571
+ const ls = N((t) => {
2572
+ const e = C(31), {
2559
2573
  onNavigate: o
2560
2574
  } = t, n = j(), {
2561
2575
  value: i,
2562
2576
  setValue: l,
2563
2577
  status: s,
2564
2578
  data: r
2565
- } = Zl();
2579
+ } = ns();
2566
2580
  let c;
2567
2581
  e[0] !== l ? (c = (I) => {
2568
2582
  l(I.target.value);
@@ -2581,37 +2595,37 @@ const Jl = N((t) => {
2581
2595
  data: g
2582
2596
  } = H(h, m);
2583
2597
  let p;
2584
- e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(Tn, { placeholder: "Type something...", value: i, onChange: d, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = d, e[11] = i, e[12] = p) : p = e[12];
2598
+ e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(Mn, { placeholder: "Type something...", value: i, onChange: d, flexShrink: 0, variant: "subtle", name: "search", focusRing: "none", focusVisibleRing: "none", outline: "none", focusRingColor: "transparent" }), e[10] = d, e[11] = i, e[12] = p) : p = e[12];
2585
2599
  let b;
2586
2600
  e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
2587
2601
  overflow: "hidden",
2588
2602
  overflowY: "auto"
2589
2603
  }, e[13] = b) : b = e[13];
2590
- let S;
2591
- e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
2592
2604
  let _;
2593
- e[16] !== r?.length ? (_ = r?.length === 0 && /* @__PURE__ */ a(U, { children: "No results" }), e[16] = r?.length, e[17] = _) : _ = e[17];
2605
+ e[14] !== s ? (_ = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = _) : _ = e[15];
2606
+ let S;
2607
+ e[16] !== r?.length ? (S = r?.length === 0 && /* @__PURE__ */ a(U, { children: "No results" }), e[16] = r?.length, e[17] = S) : S = e[17];
2594
2608
  let v;
2595
2609
  e[18] !== g || e[19] !== r?.length || e[20] !== f || e[21] !== i || e[22] !== s ? (v = s === "end" && (r?.length ?? 0) > 0 && /* @__PURE__ */ y(ee, { children: [
2596
2610
  /* @__PURE__ */ y(U, { fontSize: "md", children: [
2597
2611
  r?.length,
2598
2612
  " result(s)"
2599
2613
  ] }),
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)) })
2614
+ /* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, k) => /* @__PURE__ */ a(es, { 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 }, k)) })
2601
2615
  ] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
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
- S,
2616
+ let x;
2617
+ e[24] !== _ || e[25] !== S || e[26] !== v ? (x = /* @__PURE__ */ y(ee, { style: b, overflow: "auto", px: 4, flex: 1, children: [
2605
2618
  _,
2619
+ S,
2606
2620
  v
2607
- ] }), e[24] = S, e[25] = _, e[26] = v, e[27] = C) : C = e[27];
2608
- let k;
2609
- return e[28] !== C || e[29] !== p ? (k = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2621
+ ] }), e[24] = _, e[25] = S, e[26] = v, e[27] = x) : x = e[27];
2622
+ let T;
2623
+ return e[28] !== x || e[29] !== p ? (T = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
2610
2624
  p,
2611
- C
2612
- ] }), e[28] = C, e[29] = p, e[30] = k) : k = e[30], k;
2613
- }), es = N((t) => {
2614
- const e = x(14), {
2625
+ x
2626
+ ] }), e[28] = x, e[29] = p, e[30] = T) : T = e[30], T;
2627
+ }), ss = N((t) => {
2628
+ const e = C(14), {
2615
2629
  open: o,
2616
2630
  setOpen: n,
2617
2631
  onNavigate: i
@@ -2624,22 +2638,22 @@ const Jl = N((t) => {
2624
2638
  md: "lg"
2625
2639
  }, e[2] = s) : s = e[2];
2626
2640
  let r;
2627
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Search" }) }), e[3] = r) : r = e[3];
2641
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Search" }) }), e[3] = r) : r = e[3];
2628
2642
  let c;
2629
- e[4] !== i ? (c = /* @__PURE__ */ a(Me, { flex: 1, p: 0, children: /* @__PURE__ */ a(Jl, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2643
+ e[4] !== i ? (c = /* @__PURE__ */ a(Oe, { flex: 1, p: 0, children: /* @__PURE__ */ a(ls, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2630
2644
  let d, u;
2631
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2645
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2632
2646
  let f;
2633
- e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { height: "100%", children: [
2647
+ e[8] !== c ? (f = /* @__PURE__ */ y(Te, { height: "100%", children: [
2634
2648
  r,
2635
2649
  c,
2636
2650
  d,
2637
2651
  u
2638
2652
  ] }), e[8] = c, e[9] = f) : f = e[9];
2639
2653
  let h;
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
- }), ts = N((t) => {
2642
- const e = x(5), {
2654
+ return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a($e, { 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;
2655
+ }), rs = N((t) => {
2656
+ const e = C(5), {
2643
2657
  onNavigate: o
2644
2658
  } = t, n = j(), {
2645
2659
  data: i
@@ -2647,7 +2661,7 @@ const Jl = N((t) => {
2647
2661
  manifest: l
2648
2662
  } = i === void 0 ? {} : i, {
2649
2663
  nav: s
2650
- } = l ?? {}, r = Xe();
2664
+ } = l ?? {}, r = et();
2651
2665
  s?.toc;
2652
2666
  const c = r?.beginAbsolutePageIndex;
2653
2667
  let d;
@@ -2657,26 +2671,26 @@ const Jl = N((t) => {
2657
2671
  e[0] = r?.beginChapterInfo, e[1] = d;
2658
2672
  } else
2659
2673
  d = e[1];
2660
- const u = (_, v, C) => /* @__PURE__ */ y($n.Fragment, { children: [
2661
- /* @__PURE__ */ a(ge.Item, { pl: 4 * (C + 1), style: {
2674
+ const u = (S, v, x) => /* @__PURE__ */ y(On.Fragment, { children: [
2675
+ /* @__PURE__ */ a(pe.Item, { pl: 4 * (x + 1), style: {
2662
2676
  display: "flex",
2663
2677
  alignItems: "center"
2664
- }, children: /* @__PURE__ */ y(Mt, { onClick: () => {
2665
- o(), n?.navigation.goToUrl(_.href);
2678
+ }, children: /* @__PURE__ */ y(Ot, { onClick: () => {
2679
+ o(), n?.navigation.goToUrl(S.href);
2666
2680
  }, href: "#", children: [
2667
- d?.path === _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Ft, {}) }),
2668
- d?.path !== _.path && /* @__PURE__ */ a(ge.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Ft, {}) }),
2681
+ d?.path === S.path && /* @__PURE__ */ a(pe.Indicator, { asChild: !0, children: /* @__PURE__ */ a(Ht, {}) }),
2682
+ d?.path !== S.path && /* @__PURE__ */ a(pe.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ a(Ht, {}) }),
2669
2683
  /* @__PURE__ */ y(ee, { gap: 0, children: [
2670
- /* @__PURE__ */ a(U, { fontSize: "md", children: _.title || _.path }),
2671
- d?.path === _.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2684
+ /* @__PURE__ */ a(U, { fontSize: "md", children: S.title || S.path }),
2685
+ d?.path === S.path && c !== void 0 && /* @__PURE__ */ a(U, { fontStyle: "italic", fontWeight: "bold", fontSize: "sm", children: `Currently on page ${c + 1}` })
2672
2686
  ] })
2673
2687
  ] }) }),
2674
- _.contents.length > 0 && /* @__PURE__ */ a(ge.Root, { as: "div", gap: 2, children: _.contents.map((k, I) => u(k, I, C + 1)) })
2675
- ] }, v), f = ge, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((_, v) => u(_, v, 0));
2676
- let S;
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
- }), ns = N((t) => {
2679
- const e = x(14), {
2688
+ S.contents.length > 0 && /* @__PURE__ */ a(pe.Root, { as: "div", gap: 2, children: S.contents.map((T, I) => u(T, I, x + 1)) })
2689
+ ] }, v), f = pe, h = 3, m = "auto", g = 4, p = 1, b = s?.toc.map((S, v) => u(S, v, 0));
2690
+ let _;
2691
+ return e[2] !== f.Root || e[3] !== b ? (_ = /* @__PURE__ */ a(f.Root, { gap: h, overflowY: m, py: g, flex: p, children: b }), e[2] = f.Root, e[3] = b, e[4] = _) : _ = e[4], _;
2692
+ }), as = N((t) => {
2693
+ const e = C(14), {
2680
2694
  open: o,
2681
2695
  setOpen: n,
2682
2696
  onNavigate: i
@@ -2689,49 +2703,49 @@ const Jl = N((t) => {
2689
2703
  md: "lg"
2690
2704
  }, e[2] = s) : s = e[2];
2691
2705
  let r;
2692
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(Oe, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2706
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(Me, { children: /* @__PURE__ */ a(Ae, { children: "Table of Contents" }) }), e[3] = r) : r = e[3];
2693
2707
  let c;
2694
- e[4] !== i ? (c = /* @__PURE__ */ a(Me, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(ts, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2708
+ e[4] !== i ? (c = /* @__PURE__ */ a(Oe, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ a(rs, { onNavigate: i }) }), e[4] = i, e[5] = c) : c = e[5];
2695
2709
  let d, u;
2696
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a($e, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(ue, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2710
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }), u = /* @__PURE__ */ a(ke, {}), e[6] = d, e[7] = u) : (d = e[6], u = e[7]);
2697
2711
  let f;
2698
- e[8] !== c ? (f = /* @__PURE__ */ y(Ie, { children: [
2712
+ e[8] !== c ? (f = /* @__PURE__ */ y(Te, { children: [
2699
2713
  r,
2700
2714
  c,
2701
2715
  d,
2702
2716
  u
2703
2717
  ] }), e[8] = c, e[9] = f) : f = e[9];
2704
2718
  let h;
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
- }), os = () => {
2707
- const t = x(7), e = j();
2719
+ return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a($e, { 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;
2720
+ }), cs = () => {
2721
+ const t = C(7), e = j();
2708
2722
  let o;
2709
2723
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
2710
2724
  const {
2711
2725
  zoomMaxScale: n
2712
- } = ie(o);
2726
+ } = le(o);
2713
2727
  let i;
2714
2728
  t[1] !== e?.gestures.settings || t[2] !== n ? (i = function() {
2715
2729
  e?.gestures.settings.update({
2716
- zoomMaxScale: n ?? sn
2730
+ zoomMaxScale: n ?? cn
2717
2731
  });
2718
2732
  }, t[1] = e?.gestures.settings, t[2] = n, t[3] = i) : i = t[3];
2719
2733
  let l;
2720
- t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], oe(i, l);
2721
- }, qt = 0.5, Kt = 1, is = (t, e, o, n) => {
2734
+ t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6], ie(i, l);
2735
+ }, Xt = 0.5, Jt = 1, ds = (t, e, o, n) => {
2722
2736
  if (t > e && t < e + n)
2723
2737
  return e + n;
2724
2738
  const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
2725
2739
  return Math.round(l * 100) / 100;
2726
- }, ls = N(() => {
2727
- const t = x(23);
2740
+ }, fs = N(() => {
2741
+ const t = C(23);
2728
2742
  let e;
2729
2743
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
2730
2744
  const {
2731
2745
  zoomMaxScale: o
2732
- } = ie(e), n = o === void 0 ? sn : o, i = j();
2746
+ } = le(e), n = o === void 0 ? cn : o, i = j();
2733
2747
  let l;
2734
- t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(ss), Xt(100, to, {
2748
+ t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(us), nn(100, lo, {
2735
2749
  leading: !0,
2736
2750
  trailing: !0
2737
2751
  })), t[1] = i?.zoom.state$, t[2] = l) : l = t[2];
@@ -2741,48 +2755,48 @@ const Jl = N((t) => {
2741
2755
  data: r
2742
2756
  } = H(l, s), c = r === void 0 ? 1 : r;
2743
2757
  let d;
2744
- t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(rs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2758
+ t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(hs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
2745
2759
  let u;
2746
2760
  t[7] !== i ? (u = [i], t[7] = i, t[8] = u) : u = t[8];
2747
2761
  const {
2748
2762
  data: f
2749
2763
  } = H(d, u), h = f === void 0 ? !1 : f;
2750
2764
  let m;
2751
- t[9] !== n || t[10] !== c ? (m = is(c, Kt, n, qt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2765
+ t[9] !== n || t[10] !== c ? (m = ds(c, Jt, n, Xt), t[9] = n, t[10] = c, t[11] = m) : m = t[11];
2752
2766
  const g = m, p = h && c > 1;
2753
2767
  let b;
2754
2768
  t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
2755
- let S;
2756
- t[14] !== i?.zoom ? (S = (C) => {
2757
- const k = C.value?.[0] ?? 1;
2758
- k === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(k, {
2769
+ let _;
2770
+ t[14] !== i?.zoom ? (_ = (x) => {
2771
+ const T = x.value?.[0] ?? 1;
2772
+ T === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(T, {
2759
2773
  constrain: "within-viewport"
2760
2774
  });
2761
- }, t[14] = i?.zoom, t[15] = S) : S = t[15];
2762
- let _;
2763
- t[16] !== b || t[17] !== S || t[18] !== n ? (_ = /* @__PURE__ */ a(zt, { value: b, min: Kt, max: n, step: qt, minWidth: 200, onValueChange: S }), t[16] = b, t[17] = S, t[18] = n, t[19] = _) : _ = t[19];
2775
+ }, t[14] = i?.zoom, t[15] = _) : _ = t[15];
2776
+ let S;
2777
+ t[16] !== b || t[17] !== _ || t[18] !== n ? (S = /* @__PURE__ */ a(Et, { value: b, min: Jt, max: n, step: Xt, minWidth: 200, onValueChange: _ }), t[16] = b, t[17] = _, t[18] = n, t[19] = S) : S = t[19];
2764
2778
  let v;
2765
- return t[20] !== _ || t[21] !== p ? (v = /* @__PURE__ */ a(an, { present: p, children: _ }), t[20] = _, t[21] = p, t[22] = v) : v = t[22], v;
2779
+ return t[20] !== S || t[21] !== p ? (v = /* @__PURE__ */ a(fn, { present: p, children: S }), t[20] = S, t[21] = p, t[22] = v) : v = t[22], v;
2766
2780
  });
2767
- function ss(t) {
2781
+ function us(t) {
2768
2782
  return t.currentScale;
2769
2783
  }
2770
- function rs(t) {
2784
+ function hs(t) {
2771
2785
  return t.isZooming;
2772
2786
  }
2773
- const as = {
2787
+ const ms = {
2774
2788
  _open: "fade-in",
2775
2789
  _closed: "fade-out"
2776
- }, cs = N(() => (Xo(), null)), ds = N(() => {
2777
- const t = x(1);
2778
- os(), vl(), xl(), Wl(), Jo(), ei();
2790
+ }, gs = N(() => (ni(), null)), ps = N(() => {
2791
+ const t = C(1);
2792
+ cs(), Il(), kl(), Yl(), oi(), ii();
2779
2793
  let e;
2780
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(ve, { children: [
2781
- /* @__PURE__ */ a(Hi, {}),
2782
- /* @__PURE__ */ a(cs, {})
2794
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(xe, { children: [
2795
+ /* @__PURE__ */ a(Ui, {}),
2796
+ /* @__PURE__ */ a(gs, {})
2783
2797
  ] }), t[0] = e) : e = t[0], e;
2784
- }), fs = N((t) => {
2785
- const e = x(47);
2798
+ }), bs = N((t) => {
2799
+ const e = C(47);
2786
2800
  let o, n;
2787
2801
  e[0] !== t ? ({
2788
2802
  children: o,
@@ -2793,71 +2807,71 @@ const as = {
2793
2807
  const {
2794
2808
  enableFloatingTime: l,
2795
2809
  onItemClick: s
2796
- } = ie(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [S, _] = Dt();
2810
+ } = le(i), [r, c] = ne(!1), [d, u] = ne(!1), [f, h] = ne(!1), [m, g] = ne(void 0), [p, b] = ne(!1), [_, S] = Ft();
2797
2811
  let v;
2798
- e[4] !== _ ? (v = () => {
2799
- c(!1), u(!1), h(!1), g(void 0), _(!1), b(!1);
2800
- }, e[4] = _, e[5] = v) : v = e[5];
2801
- const C = v;
2802
- let k;
2803
- e[6] !== s ? (k = (B) => {
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);
2805
- }, e[6] = s, e[7] = k) : k = e[7];
2806
- const I = k;
2812
+ e[4] !== S ? (v = () => {
2813
+ c(!1), u(!1), h(!1), g(void 0), S(!1), b(!1);
2814
+ }, e[4] = S, e[5] = v) : v = e[5];
2815
+ const x = v;
2807
2816
  let T;
2808
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ a(ds, {}), e[8] = T) : T = e[8];
2817
+ e[6] !== s ? (T = (B) => {
2818
+ 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
+ }, e[6] = s, e[7] = T) : T = e[7];
2820
+ const I = T;
2821
+ let k;
2822
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(ps, {}), e[8] = k) : k = e[8];
2809
2823
  let R, P, E;
2810
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(Ii, { children: /* @__PURE__ */ a(Ko, {}) }), P = /* @__PURE__ */ a(ol, {}), E = /* @__PURE__ */ a(_l, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
2824
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(Ri, { children: /* @__PURE__ */ a(Xo, {}) }), P = /* @__PURE__ */ a(sl, {}), E = /* @__PURE__ */ a(yl, {}), e[9] = R, e[10] = P, e[11] = E) : (R = e[9], P = e[10], E = e[11]);
2811
2825
  let M;
2812
- e[12] !== p ? (M = /* @__PURE__ */ a(Zi, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
2813
- let w;
2814
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(ql, {}), e[14] = w) : w = e[14];
2826
+ e[12] !== p ? (M = /* @__PURE__ */ a(Ji, { open: p, setOpen: b }), e[12] = p, e[13] = M) : M = e[13];
2815
2827
  let A;
2816
- e[15] !== I ? (A = /* @__PURE__ */ a(Vl, { onItemClick: I }), e[15] = I, e[16] = A) : A = e[16];
2828
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Jl, {}), e[14] = A) : A = e[14];
2829
+ let w;
2830
+ e[15] !== I ? (w = /* @__PURE__ */ a(Kl, { onItemClick: I }), e[15] = I, e[16] = w) : w = e[16];
2817
2831
  let $, O, z, D;
2818
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(ls, {}), O = /* @__PURE__ */ a(To, {}), z = /* @__PURE__ */ a(Po, {}), D = /* @__PURE__ */ a(Li, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
2832
+ e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(fs, {}), O = /* @__PURE__ */ a(Oo, {}), z = /* @__PURE__ */ a(Fo, {}), D = /* @__PURE__ */ a(Wi, {}), e[17] = $, e[18] = O, e[19] = z, e[20] = D) : ($ = e[17], O = e[18], z = e[19], D = e[20]);
2819
2833
  let F;
2820
- e[21] !== d ? (F = /* @__PURE__ */ a(Ji, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2821
- let Y;
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];
2834
+ e[21] !== d ? (F = /* @__PURE__ */ a(nl, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
2835
+ let Q;
2836
+ e[23] !== r || e[24] !== x ? (Q = /* @__PURE__ */ a(as, { open: r, setOpen: c, onNavigate: x }), e[23] = r, e[24] = x, e[25] = Q) : Q = e[25];
2823
2837
  let V;
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
- let G;
2826
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (B) => g(B ? "annotations" : void 0), e[29] = G) : G = e[29];
2838
+ e[26] !== f || e[27] !== x ? (V = /* @__PURE__ */ a(ss, { open: f, setOpen: h, onNavigate: x }), e[26] = f, e[27] = x, e[28] = V) : V = e[28];
2827
2839
  let W;
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
- const q = l || S;
2830
- let Z;
2831
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(sl, {}), e[33] = Z) : Z = e[33];
2840
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (B) => g(B ? "annotations" : void 0), e[29] = W) : W = e[29];
2841
+ let G;
2842
+ e[30] !== m || e[31] !== x ? (G = /* @__PURE__ */ a(Ko, { openWith: m, setOpen: W, onNavigate: x }), e[30] = m, e[31] = x, e[32] = G) : G = e[32];
2843
+ const q = l || _;
2844
+ let Y;
2845
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(cl, {}), e[33] = Y) : Y = e[33];
2832
2846
  let K;
2833
- e[34] !== q ? (K = /* @__PURE__ */ a(Ye, { present: q, animationName: as, animationDuration: "slow", overflow: "hidden", children: Z }), e[34] = q, e[35] = K) : K = e[35];
2834
- let Q;
2835
- e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(Ti, {}), e[36] = Q) : Q = e[36];
2847
+ e[34] !== q ? (K = /* @__PURE__ */ a(Qe, { present: q, animationName: ms, animationDuration: "slow", overflow: "hidden", children: Y }), e[34] = q, e[35] = K) : K = e[35];
2848
+ let Z;
2849
+ e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Oi, {}), e[36] = Z) : Z = e[36];
2836
2850
  let X;
2837
- return 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 ? (X = /* @__PURE__ */ y(ve, { children: [
2838
- T,
2839
- /* @__PURE__ */ y(le, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2851
+ return e[37] !== o || e[38] !== n || e[39] !== w || e[40] !== F || e[41] !== Q || e[42] !== V || e[43] !== G || e[44] !== K || e[45] !== M ? (X = /* @__PURE__ */ y(xe, { children: [
2852
+ k,
2853
+ /* @__PURE__ */ y(oe, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
2840
2854
  o,
2841
2855
  R,
2842
2856
  P,
2843
2857
  E,
2844
2858
  M,
2845
- w,
2846
2859
  A,
2860
+ w,
2847
2861
  $,
2848
2862
  O,
2849
2863
  z,
2850
2864
  D,
2851
2865
  F,
2852
- Y,
2866
+ Q,
2853
2867
  V,
2854
- W,
2868
+ G,
2855
2869
  K,
2856
- Q
2870
+ Z
2857
2871
  ] })
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
- }), As = N((t) => {
2860
- const e = x(16);
2872
+ ] }), e[37] = o, e[38] = n, e[39] = w, e[40] = F, e[41] = Q, e[42] = V, e[43] = G, e[44] = K, e[45] = M, e[46] = X) : X = e[46], X;
2873
+ }), Ls = N((t) => {
2874
+ const e = C(16);
2861
2875
  let o, n, i;
2862
2876
  e[0] !== t ? ({
2863
2877
  children: o,
@@ -2878,13 +2892,13 @@ const as = {
2878
2892
  e[8] !== c ? (d = c === void 0 ? {} : c, e[8] = c, e[9] = d) : d = e[9];
2879
2893
  const u = d;
2880
2894
  let f;
2881
- e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(fs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2895
+ e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(bs, { ...u, children: o }), e[10] = o, e[11] = u, e[12] = f) : f = e[12];
2882
2896
  let h;
2883
- return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(Mi, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2897
+ return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(zi, { ...n, children: f }), e[13] = n, e[14] = f, e[15] = h) : h = e[15], h;
2884
2898
  });
2885
2899
  export {
2886
- yo as BOOKMARK_AREA_DATA_ATTRIBUTE,
2887
- sn as MAX_ZOOM_SCALE,
2888
- As as ReactReader
2900
+ $o as BOOKMARK_AREA_DATA_ATTRIBUTE,
2901
+ cn as MAX_ZOOM_SCALE,
2902
+ Ls as ReactReader
2889
2903
  };
2890
2904
  //# sourceMappingURL=index.js.map