@prose-reader/react-reader 1.297.0 → 1.299.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/annotations/useReaderWithAnnotations.d.ts +3 -1
- package/dist/common/useFullscreen.d.ts +1 -0
- package/dist/common/useFullscreen.test.d.ts +1 -0
- package/dist/context/useReader.d.ts +3 -1
- package/dist/index.js +913 -901
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { jsx as a, jsxs as y, Fragment as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Presence as
|
|
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
|
|
6
|
-
import { FaEdit as
|
|
7
|
-
import { LuNotebookPen as
|
|
8
|
-
import { signal as
|
|
9
|
-
import { Subject as
|
|
10
|
-
import { pick as
|
|
11
|
-
import { createPortal as
|
|
12
|
-
import { isShallowEqual as
|
|
13
|
-
import { MdScreenRotation as
|
|
14
|
-
import { BiFontSize as
|
|
15
|
-
import { BsBookmarks as
|
|
16
|
-
import { RiGalleryView2 as
|
|
17
|
-
import { RxDoubleArrowUp as
|
|
18
|
-
import
|
|
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
|
|
21
|
-
import { IoIosArrowBack as
|
|
22
|
-
|
|
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:
|
|
27
|
+
quickMenuBottomBarBoundingBoxSignal: Ye({
|
|
27
28
|
default: void 0
|
|
28
29
|
}),
|
|
29
|
-
notificationsSubject: new
|
|
30
|
+
notificationsSubject: new Qn(),
|
|
30
31
|
refitMenuOpen: !1,
|
|
31
32
|
onRefitMenuOpenChange: () => {
|
|
32
33
|
},
|
|
@@ -38,23 +39,23 @@ const To = "data-bookmark-area", rn = 5, an = () => ({
|
|
|
38
39
|
uncontrolledFontSize: 1,
|
|
39
40
|
enableFloatingProgress: !0,
|
|
40
41
|
selectedHighlight: void 0
|
|
41
|
-
}),
|
|
42
|
-
default:
|
|
43
|
-
})),
|
|
44
|
-
const e =
|
|
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(
|
|
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 =
|
|
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:
|
|
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
|
-
},
|
|
57
|
-
const e =
|
|
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 To = "data-bookmark-area", rn = 5, an = () => ({
|
|
|
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
|
-
} =
|
|
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 To = "data-bookmark-area", rn = 5, an = () => ({
|
|
|
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(
|
|
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 =
|
|
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
|
-
} =
|
|
83
|
+
} = le(e);
|
|
83
84
|
return o;
|
|
84
|
-
},
|
|
85
|
-
const t =
|
|
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 =
|
|
88
|
-
},
|
|
89
|
-
const t =
|
|
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
|
-
} =
|
|
95
|
+
} = le(n);
|
|
95
96
|
let l;
|
|
96
|
-
t[1] !== e ? (l = () => e?.selection.selectionOver$.pipe(Ce(() => e.selection.selectionEnd$.pipe(J(
|
|
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 To = "data-bookmark-area", rn = 5, an = () => ({
|
|
|
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(
|
|
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(
|
|
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(
|
|
125
|
-
/* @__PURE__ */ a(
|
|
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(
|
|
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
|
|
135
|
+
function Ao() {
|
|
135
136
|
return !1;
|
|
136
137
|
}
|
|
137
|
-
const
|
|
138
|
-
const n =
|
|
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(
|
|
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
|
-
}),
|
|
144
|
-
const n =
|
|
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 Oo = (t, e = 50) => t.length <= e ? t : `${t.slice(0, e)}...`, hn = 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(
|
|
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(
|
|
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(
|
|
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 =
|
|
163
|
+
const n = C(5);
|
|
163
164
|
let i;
|
|
164
|
-
n[0] !== o ? (i = /* @__PURE__ */ a(
|
|
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(
|
|
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
|
-
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const
|
|
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 It = [
|
|
|
183
184
|
// Light blue
|
|
184
185
|
"rgba(255, 182, 193, 1)"
|
|
185
186
|
// Light pink
|
|
186
|
-
],
|
|
187
|
-
const t =
|
|
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 It = [
|
|
|
192
193
|
onAnnotationCreate: i,
|
|
193
194
|
onAnnotationUpdate: l,
|
|
194
195
|
onAnnotationDelete: s
|
|
195
|
-
} =
|
|
196
|
+
} = le(o), r = Xe(), {
|
|
196
197
|
highlight: c,
|
|
197
198
|
selection: d
|
|
198
|
-
} = n ?? {}, [u, f] = ne(
|
|
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(
|
|
202
|
+
r.update(Lo);
|
|
202
203
|
}, t[1] = r, t[2] = p) : p = t[2];
|
|
203
204
|
const b = p;
|
|
204
|
-
let
|
|
205
|
-
t[3] !== b ? (
|
|
205
|
+
let _;
|
|
206
|
+
t[3] !== b ? (_ = (B) => {
|
|
206
207
|
B.open || b();
|
|
207
|
-
}, t[3] = b, t[4] =
|
|
208
|
-
const
|
|
208
|
+
}, t[3] = b, t[4] = _) : _ = t[4];
|
|
209
|
+
const S = _, v = c?.highlightColor, x = c?.notes;
|
|
209
210
|
let T;
|
|
210
211
|
t[5] !== m ? (T = () => {
|
|
211
212
|
m("");
|
|
212
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],
|
|
215
|
-
m(
|
|
216
|
-
}, [
|
|
217
|
-
f(v ||
|
|
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
220
|
let k;
|
|
220
221
|
t[9] !== r || t[10] !== e?.annotations.highlightTap$ ? (k = function() {
|
|
221
|
-
return e?.annotations.highlightTap$.pipe(
|
|
222
|
+
return e?.annotations.highlightTap$.pipe(At((se) => {
|
|
222
223
|
const {
|
|
223
224
|
highlight: L
|
|
224
225
|
} = se;
|
|
@@ -229,15 +230,15 @@ const It = [
|
|
|
229
230
|
}
|
|
230
231
|
}));
|
|
231
232
|
}));
|
|
232
|
-
}, t[9] = r, t[10] = e?.annotations.highlightTap$, t[11] = k) : k = t[11],
|
|
233
|
-
const P =
|
|
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(
|
|
236
|
-
const A =
|
|
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
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 =
|
|
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;
|
|
@@ -247,7 +248,7 @@ const It = [
|
|
|
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
250
|
let W;
|
|
250
|
-
t[24] !== h || t[25] !== V ? (W = /* @__PURE__ */ a(
|
|
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];
|
|
251
252
|
let G;
|
|
252
253
|
t[27] !== F || t[28] !== W ? (G = /* @__PURE__ */ y(ee, { children: [
|
|
253
254
|
F,
|
|
@@ -255,7 +256,7 @@ const It = [
|
|
|
255
256
|
W
|
|
256
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(
|
|
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,
|
|
@@ -266,19 +267,19 @@ const It = [
|
|
|
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
268
|
let Y;
|
|
268
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: [
|
|
269
|
-
/* @__PURE__ */ a(
|
|
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(
|
|
277
|
+
/* @__PURE__ */ a(he, { flex: 1, variant: "surface", onClick: () => {
|
|
277
278
|
b(), s?.(c.id);
|
|
278
279
|
}, children: "Remove" })
|
|
279
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] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(
|
|
282
|
+
t[44] !== G || t[45] !== q || t[46] !== Y ? (K = /* @__PURE__ */ y(Do, { gap: 4, display: "flex", flexDirection: "column", pb: 4, children: [
|
|
282
283
|
G,
|
|
283
284
|
q,
|
|
284
285
|
Y
|
|
@@ -289,19 +290,19 @@ const It = [
|
|
|
289
290
|
K
|
|
290
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] !==
|
|
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
295
|
Z
|
|
295
|
-
] }), t[52] = P, t[53] = g, t[54] =
|
|
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
|
|
298
|
+
function Lo(t) {
|
|
298
299
|
return {
|
|
299
300
|
...t,
|
|
300
301
|
selectedHighlight: void 0
|
|
301
302
|
};
|
|
302
303
|
}
|
|
303
|
-
const
|
|
304
|
-
const n =
|
|
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(
|
|
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
|
-
const n =
|
|
324
|
+
}), ke = de.forwardRef(function(e, o) {
|
|
325
|
+
const n = C(6);
|
|
325
326
|
let i;
|
|
326
|
-
n[0] !== e.children || n[1] !== o ? (i = /* @__PURE__ */ a(
|
|
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
|
-
}),
|
|
330
|
+
}), $e = ae.Root, Re = ae.Footer, Me = ae.Header, Oe = ae.Body;
|
|
330
331
|
ae.Backdrop;
|
|
331
|
-
const
|
|
332
|
+
const Ae = ae.Title;
|
|
332
333
|
ae.Description;
|
|
333
334
|
ae.Trigger;
|
|
334
|
-
const
|
|
335
|
-
const e =
|
|
335
|
+
const we = ae.ActionTrigger, No = (t) => {
|
|
336
|
+
const e = C(7), o = j();
|
|
336
337
|
let n;
|
|
337
|
-
e[0] !== o ? (n =
|
|
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)),
|
|
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
|
-
},
|
|
344
|
-
const e =
|
|
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
|
-
} =
|
|
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 Ae = ae.ActionTrigger, Fo = (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(
|
|
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 Ae = ae.ActionTrigger, Fo = (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(
|
|
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
|
-
const t =
|
|
379
|
+
}, _t = () => {
|
|
380
|
+
const t = C(5), e = j();
|
|
380
381
|
let o;
|
|
381
|
-
t[0] !== e ? (o =
|
|
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
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);
|
|
385
|
-
},
|
|
386
|
-
const t =
|
|
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(
|
|
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
|
|
397
|
+
function Vo(t) {
|
|
397
398
|
return t.meta.isCfiRange;
|
|
398
399
|
}
|
|
399
|
-
const
|
|
400
|
-
const e =
|
|
400
|
+
const Wo = (t) => {
|
|
401
|
+
const e = C(5), {
|
|
401
402
|
onNavigate: o
|
|
402
403
|
} = t, {
|
|
403
404
|
data: n
|
|
404
|
-
} =
|
|
405
|
+
} = Ho();
|
|
405
406
|
let i;
|
|
406
|
-
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(
|
|
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(
|
|
409
|
-
},
|
|
410
|
-
const t =
|
|
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(
|
|
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
|
|
421
|
+
function Uo(t) {
|
|
421
422
|
return !t.meta.isCfiRange && !t.resource.notes;
|
|
422
423
|
}
|
|
423
|
-
const
|
|
424
|
-
const e =
|
|
424
|
+
const jo = (t) => {
|
|
425
|
+
const e = C(5), {
|
|
425
426
|
onNavigate: o
|
|
426
427
|
} = t, {
|
|
427
428
|
data: n
|
|
428
|
-
} =
|
|
429
|
+
} = Go();
|
|
429
430
|
let i;
|
|
430
|
-
e[0] !== n || e[1] !== o ? (i = n?.map((s) => /* @__PURE__ */ a(
|
|
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(
|
|
433
|
-
},
|
|
434
|
-
const e =
|
|
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(
|
|
442
|
-
/* @__PURE__ */ a(
|
|
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(
|
|
447
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ y(ge.List, { children: [
|
|
447
448
|
r,
|
|
448
|
-
/* @__PURE__ */ y(
|
|
449
|
-
/* @__PURE__ */ a(
|
|
449
|
+
/* @__PURE__ */ y(ge.Trigger, { value: "annotations", children: [
|
|
450
|
+
/* @__PURE__ */ a(rt, {}),
|
|
450
451
|
"Annotations"
|
|
451
452
|
] }),
|
|
452
|
-
/* @__PURE__ */ a(
|
|
453
|
+
/* @__PURE__ */ a(ge.Indicator, {})
|
|
453
454
|
] }), e[2] = c) : c = e[2];
|
|
454
455
|
let d;
|
|
455
|
-
e[3] !== o ? (d = /* @__PURE__ */ a(
|
|
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(
|
|
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(
|
|
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
|
-
}),
|
|
465
|
-
const e =
|
|
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 Go = (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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
492
|
-
}),
|
|
493
|
-
const e =
|
|
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 ?
|
|
499
|
-
},
|
|
500
|
-
const e =
|
|
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 Go = (t) => {
|
|
|
508
509
|
}, e[0] = o, e[1] = n, e[2] = i) : i = e[2];
|
|
509
510
|
const {
|
|
510
511
|
data: l
|
|
511
|
-
} =
|
|
512
|
+
} = Yo(i);
|
|
512
513
|
let s, r;
|
|
513
|
-
e[3] !== l ? (s = () => l ? l.isReady$ :
|
|
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 Go = (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
|
-
},
|
|
523
|
-
const e =
|
|
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 Go = (t) => {
|
|
|
532
533
|
}, e[0] = o, e[1] = s) : s = e[1];
|
|
533
534
|
const {
|
|
534
535
|
isReady: r
|
|
535
|
-
} =
|
|
536
|
+
} = Zo(s), {
|
|
536
537
|
data: c
|
|
537
|
-
} =
|
|
538
|
+
} = _t();
|
|
538
539
|
let d;
|
|
539
|
-
e[2] !== o || e[3] !== c ? (d = c?.find((
|
|
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 Go = (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
|
|
551
|
-
e[6] !== p || e[7] !== b ? (
|
|
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 Go = (t) => {
|
|
|
557
558
|
height: 0,
|
|
558
559
|
borderTop: p,
|
|
559
560
|
borderLeft: b
|
|
560
|
-
}, e[6] = p, e[7] = b, e[8] =
|
|
561
|
-
let
|
|
562
|
-
e[9] !== f || e[10] !== g || e[11] !==
|
|
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] !==
|
|
565
|
-
}),
|
|
566
|
-
const t =
|
|
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 Go = (t) => {
|
|
|
572
573
|
data: i
|
|
573
574
|
} = H(o, n);
|
|
574
575
|
let l;
|
|
575
|
-
t[4] !== i?.pages ? (l = i?.pages.map(
|
|
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(
|
|
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
|
|
580
|
+
function Jo(t, e) {
|
|
580
581
|
const {
|
|
581
582
|
absoluteLayout: o
|
|
582
583
|
} = t, {
|
|
@@ -584,100 +585,100 @@ function Qo(t, e) {
|
|
|
584
585
|
top: i,
|
|
585
586
|
width: l
|
|
586
587
|
} = o;
|
|
587
|
-
return /* @__PURE__ */ a(
|
|
588
|
+
return /* @__PURE__ */ a(Qo, { absolutePageIndex: e, left: n, top: i, width: l }, e);
|
|
588
589
|
}
|
|
589
|
-
const
|
|
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
|
-
},
|
|
597
|
-
const t =
|
|
597
|
+
}, ni = () => {
|
|
598
|
+
const t = C(5), e = dt(), {
|
|
598
599
|
data: o
|
|
599
|
-
} =
|
|
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(
|
|
606
|
+
return c.pipe(wt(e?.annotations.candidates$), J((d) => {
|
|
606
607
|
const [u, f] = d;
|
|
607
608
|
if (!u.page)
|
|
608
|
-
return
|
|
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 (
|
|
616
|
+
if (ti({
|
|
616
617
|
position: g,
|
|
617
618
|
containerSize: p,
|
|
618
|
-
sizePercent:
|
|
619
|
+
sizePercent: ei
|
|
619
620
|
})) {
|
|
620
|
-
const
|
|
621
|
-
if (!
|
|
622
|
-
return
|
|
623
|
-
const
|
|
624
|
-
if (
|
|
625
|
-
return n.value.onAnnotationDelete?.(
|
|
626
|
-
if (f?.[
|
|
627
|
-
const
|
|
628
|
-
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
|
|
631
|
+
return x && n.value.onAnnotationCreate?.(x), !nt;
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
return
|
|
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]),
|
|
636
|
-
},
|
|
637
|
-
const t =
|
|
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(
|
|
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],
|
|
650
|
-
},
|
|
651
|
-
const t =
|
|
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(
|
|
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],
|
|
661
|
+
}, t[0] = o, t[1] = e, t[2] = n) : n = t[2], be(n);
|
|
661
662
|
};
|
|
662
|
-
function
|
|
663
|
+
function li(t) {
|
|
663
664
|
return t.selectedHighlight?.highlight?.id;
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
+
function si(t) {
|
|
666
667
|
return t.annotations ?? [];
|
|
667
668
|
}
|
|
668
|
-
function
|
|
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
|
|
676
|
-
const t =
|
|
676
|
+
const Je = () => {
|
|
677
|
+
const t = C(2), e = j();
|
|
677
678
|
let o;
|
|
678
|
-
return t[0] !== e ? (o =
|
|
679
|
-
},
|
|
680
|
-
const e =
|
|
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 Xe = () => {
|
|
|
686
687
|
data: s
|
|
687
688
|
} = H(i, l);
|
|
688
689
|
return s;
|
|
689
|
-
},
|
|
690
|
-
const e =
|
|
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 =
|
|
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),
|
|
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
|
-
},
|
|
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 =
|
|
705
|
+
const n = Ie((o - t) / (e - t), 0, 1);
|
|
705
706
|
return n * n * (3 - 2 * n);
|
|
706
|
-
},
|
|
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
|
|
709
|
-
},
|
|
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 -
|
|
713
|
-
return
|
|
714
|
-
}),
|
|
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
|
-
},
|
|
718
|
-
const o =
|
|
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 =
|
|
722
|
-
return
|
|
723
|
-
}), l = i[0] ??
|
|
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
|
-
},
|
|
726
|
+
}, yi = (t, {
|
|
726
727
|
topVariable: e,
|
|
727
728
|
topFallback: o,
|
|
728
729
|
bottomVariable: n,
|
|
@@ -733,7 +734,7 @@ const Xe = () => {
|
|
|
733
734
|
topColor: s,
|
|
734
735
|
bottomColor: r
|
|
735
736
|
};
|
|
736
|
-
},
|
|
737
|
+
}, Ii = ({
|
|
737
738
|
canvas: t,
|
|
738
739
|
size: e,
|
|
739
740
|
visualizer: o,
|
|
@@ -747,43 +748,43 @@ const Xe = () => {
|
|
|
747
748
|
} = e;
|
|
748
749
|
if (!s || r <= 0 || c <= 0) return i;
|
|
749
750
|
s.clearRect(0, 0, r, c);
|
|
750
|
-
const d =
|
|
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((
|
|
753
|
+
}, () => 0) : i, m = o.isActive ? h.map((x, T) => {
|
|
753
754
|
const I = f[T] ?? 0;
|
|
754
|
-
return
|
|
755
|
-
}) : [...f], g = Math.round(
|
|
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 [
|
|
758
|
-
const I =
|
|
759
|
-
s.globalAlpha =
|
|
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
|
-
},
|
|
763
|
+
}, Yt = {
|
|
763
764
|
levels: [],
|
|
764
765
|
isActive: !1,
|
|
765
766
|
trackId: void 0
|
|
766
|
-
},
|
|
767
|
-
const e =
|
|
767
|
+
}, Ti = (t) => {
|
|
768
|
+
const e = C(21), {
|
|
768
769
|
visualizer: o
|
|
769
|
-
} = t, n =
|
|
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 =
|
|
777
|
-
const l = i, s =
|
|
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 =
|
|
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 =
|
|
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 Xe = () => {
|
|
|
795
796
|
const {
|
|
796
797
|
topColor: z,
|
|
797
798
|
bottomColor: D
|
|
798
|
-
} =
|
|
799
|
+
} = yi($, {
|
|
799
800
|
topVariable: "--audio-wave-top-color",
|
|
800
|
-
topFallback:
|
|
801
|
+
topFallback: di,
|
|
801
802
|
bottomVariable: "--audio-wave-bottom-color",
|
|
802
|
-
bottomFallback:
|
|
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
|
|
808
|
-
e[5] !== l ? (
|
|
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 =
|
|
814
|
+
f.current = Ii({
|
|
814
815
|
canvas: $,
|
|
815
816
|
size: g.current,
|
|
816
817
|
visualizer: O,
|
|
@@ -818,29 +819,29 @@ const Xe = () => {
|
|
|
818
819
|
displayedBars: f.current,
|
|
819
820
|
fillStyle: h.current
|
|
820
821
|
});
|
|
821
|
-
}, e[5] = l, e[6] =
|
|
822
|
-
const
|
|
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
|
|
828
|
+
const x = v;
|
|
828
829
|
let T;
|
|
829
|
-
e[8] !==
|
|
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
|
-
|
|
838
|
+
S(), c.current = requestAnimationFrame($);
|
|
838
839
|
};
|
|
839
840
|
c.current = requestAnimationFrame($);
|
|
840
|
-
}, e[8] =
|
|
841
|
+
}, e[8] = S, e[9] = T) : T = e[9];
|
|
841
842
|
const I = T;
|
|
842
843
|
let k;
|
|
843
|
-
e[10] !==
|
|
844
|
+
e[10] !== S ? (k = () => {
|
|
844
845
|
const $ = s.current, O = r.current;
|
|
845
846
|
if (!$ || !O)
|
|
846
847
|
return;
|
|
@@ -848,19 +849,19 @@ const Xe = () => {
|
|
|
848
849
|
g.current = {
|
|
849
850
|
width: z,
|
|
850
851
|
height: D
|
|
851
|
-
},
|
|
852
|
+
}, Vt($, "width", Q), Vt($, "height", V), Wt($.style, "width", `${z}px`), Wt($.style, "height", `${D}px`);
|
|
852
853
|
const W = $.getContext("2d");
|
|
853
|
-
W && W.setTransform(F, 0, 0, F, 0, 0), b(),
|
|
854
|
-
}, e[10] =
|
|
854
|
+
W && W.setTransform(F, 0, 0, F, 0, 0), b(), S();
|
|
855
|
+
}, e[10] = S, e[11] = k) : k = e[11];
|
|
855
856
|
const R = k;
|
|
856
857
|
let P, E;
|
|
857
|
-
e[12] !==
|
|
858
|
-
if (d.current = o ??
|
|
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
|
-
|
|
863
|
-
}, E = [
|
|
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);
|
|
864
865
|
let M, A;
|
|
865
866
|
e[17] !== R ? (M = () => {
|
|
866
867
|
const $ = r.current;
|
|
@@ -871,21 +872,21 @@ const Xe = () => {
|
|
|
871
872
|
R();
|
|
872
873
|
});
|
|
873
874
|
return O.observe($), () => {
|
|
874
|
-
|
|
875
|
+
x(), O.disconnect();
|
|
875
876
|
};
|
|
876
|
-
}, A = [R,
|
|
877
|
+
}, A = [R, x], e[17] = R, e[18] = M, e[19] = A) : (M = e[18], A = e[19]), ie(M, A);
|
|
877
878
|
let w;
|
|
878
|
-
return e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ a(
|
|
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
885
|
}, children: /* @__PURE__ */ a("canvas", { ref: s }) }), e[20] = w) : w = e[20], w;
|
|
885
|
-
},
|
|
886
|
-
const e =
|
|
886
|
+
}, ki = (t) => {
|
|
887
|
+
const e = C(16), {
|
|
887
888
|
item: o
|
|
888
|
-
} = t, n =
|
|
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 Xe = () => {
|
|
|
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 =
|
|
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(
|
|
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 =
|
|
912
|
-
},
|
|
913
|
-
const e =
|
|
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(
|
|
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 =
|
|
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(
|
|
922
|
-
}),
|
|
923
|
-
const e =
|
|
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,56 +941,56 @@ const Xe = () => {
|
|
|
940
941
|
if (!s)
|
|
941
942
|
return null;
|
|
942
943
|
let u;
|
|
943
|
-
e[8] !== d ? (u = d?.map(
|
|
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(
|
|
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 =
|
|
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(
|
|
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
|
|
955
|
-
return /* @__PURE__ */ a(
|
|
955
|
+
function Mi(t) {
|
|
956
|
+
return /* @__PURE__ */ a($i, { item: t }, t.index);
|
|
956
957
|
}
|
|
957
|
-
const
|
|
958
|
+
const Mt = In({
|
|
958
959
|
placement: "bottom-end",
|
|
959
960
|
pauseOnPageIdle: !0
|
|
960
|
-
}),
|
|
961
|
-
const t =
|
|
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(
|
|
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:
|
|
966
|
+
}, children: Ai }) }), t[0] = e) : e = t[0], e;
|
|
966
967
|
};
|
|
967
|
-
function
|
|
968
|
-
return /* @__PURE__ */ y(
|
|
968
|
+
function Ai(t) {
|
|
969
|
+
return /* @__PURE__ */ y(qe.Root, { width: {
|
|
969
970
|
md: "sm"
|
|
970
971
|
}, children: [
|
|
971
|
-
t.type === "loading" ? /* @__PURE__ */ a(
|
|
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(
|
|
974
|
-
t.description && /* @__PURE__ */ a(
|
|
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(
|
|
977
|
-
t.meta?.closable && /* @__PURE__ */ a(
|
|
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
|
|
981
|
-
const e =
|
|
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 =
|
|
988
|
+
const i = lt(Pi);
|
|
988
989
|
let l;
|
|
989
|
-
e[3] !== i.value.fontSizeMenuOpen ? (l = () =>
|
|
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 =
|
|
993
|
+
const s = lt(l), r = kt(s);
|
|
993
994
|
let c;
|
|
994
995
|
e[5] !== s ? (c = (T) => {
|
|
995
996
|
s.update(T);
|
|
@@ -1004,46 +1005,46 @@ const Oi = (t) => {
|
|
|
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 = () =>
|
|
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 =
|
|
1011
|
+
const m = lt(h);
|
|
1011
1012
|
let g;
|
|
1012
1013
|
e[11] !== m ? (g = (T) => {
|
|
1013
1014
|
m.update(T);
|
|
1014
1015
|
}, e[11] = m, e[12] = g) : g = e[12];
|
|
1015
|
-
const p = g, b =
|
|
1016
|
-
let
|
|
1017
|
-
e[13] !== f || e[14] !==
|
|
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 = () => {
|
|
1018
1019
|
i.update((T) => ({
|
|
1019
1020
|
...T,
|
|
1020
|
-
...
|
|
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 = [
|
|
1028
|
-
let
|
|
1029
|
-
return e[22] !== o || e[23] !== i ? (
|
|
1030
|
-
},
|
|
1031
|
-
const e =
|
|
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(
|
|
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
|
|
1041
|
-
return
|
|
1042
|
-
default:
|
|
1041
|
+
function Pi() {
|
|
1042
|
+
return Ye({
|
|
1043
|
+
default: dn()
|
|
1043
1044
|
});
|
|
1044
1045
|
}
|
|
1045
|
-
const
|
|
1046
|
-
const n =
|
|
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,24 +1053,24 @@ const ot = 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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
}),
|
|
1067
|
-
const o =
|
|
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
|
-
...
|
|
1073
|
+
...x
|
|
1073
1074
|
} = e;
|
|
1074
1075
|
l = v;
|
|
1075
1076
|
const {
|
|
@@ -1077,76 +1078,76 @@ const ot = de.forwardRef(function(e, o) {
|
|
|
1077
1078
|
label: I,
|
|
1078
1079
|
showValue: k,
|
|
1079
1080
|
...R
|
|
1080
|
-
} =
|
|
1081
|
-
n = I, r = k, s = R, 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(
|
|
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(
|
|
1090
|
-
/* @__PURE__ */ a(
|
|
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(
|
|
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(
|
|
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(
|
|
1099
|
-
let
|
|
1100
|
-
o[19] !== m || o[20] !== p || o[21] !== b ? (
|
|
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] =
|
|
1105
|
-
let
|
|
1106
|
-
return o[23] !== l || o[24] !== s || o[25] !== f || o[26] !== h || o[27] !==
|
|
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
|
-
|
|
1110
|
-
] }), o[23] = l, o[24] = s, o[25] = f, o[26] = h, o[27] =
|
|
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
|
|
1113
|
-
const e =
|
|
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(
|
|
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
|
|
1120
|
-
return /* @__PURE__ */ a(
|
|
1120
|
+
function Di(t, e) {
|
|
1121
|
+
return /* @__PURE__ */ a(ue.Thumb, { index: e, children: /* @__PURE__ */ a(ue.HiddenInput, {}) }, e);
|
|
1121
1122
|
}
|
|
1122
|
-
const
|
|
1123
|
-
const n =
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
1140
|
+
function Li(t) {
|
|
1140
1141
|
return t.label;
|
|
1141
1142
|
}
|
|
1142
|
-
function
|
|
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(
|
|
1145
|
-
/* @__PURE__ */ a(
|
|
1145
|
+
return /* @__PURE__ */ y(ue.Marker, { value: o, children: [
|
|
1146
|
+
/* @__PURE__ */ a(ue.MarkerIndicator, {}),
|
|
1146
1147
|
n
|
|
1147
1148
|
] }, e);
|
|
1148
1149
|
}
|
|
1149
|
-
const
|
|
1150
|
+
const Dt = [{
|
|
1150
1151
|
value: "global",
|
|
1151
1152
|
references: ["global"]
|
|
1152
1153
|
}, {
|
|
@@ -1155,11 +1156,11 @@ const Et = [{
|
|
|
1155
1156
|
}, {
|
|
1156
1157
|
value: "screen",
|
|
1157
1158
|
references: ["mobile", "tablet", "desktop"]
|
|
1158
|
-
}],
|
|
1159
|
+
}], Hi = Dt.map((t) => t.value), Zt = Dt.flatMap((t) => t.references), Vi = (t) => {
|
|
1159
1160
|
if (t)
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
const t =
|
|
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,18 +1174,18 @@ const Et = [{
|
|
|
1173
1174
|
fontSizeValues: u,
|
|
1174
1175
|
onFontSizeChange: f,
|
|
1175
1176
|
onFontSizeScopeChange: h
|
|
1176
|
-
} =
|
|
1177
|
-
let
|
|
1178
|
-
t[1] !== e || t[2] !== g ? (
|
|
1179
|
-
g.current ? g.current(L, re) : e.update((
|
|
1180
|
-
...
|
|
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] =
|
|
1184
|
-
const
|
|
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
|
|
1188
|
+
const x = v;
|
|
1188
1189
|
let T;
|
|
1189
1190
|
t[7] !== h ? (T = (L) => {
|
|
1190
1191
|
const re = L.value;
|
|
@@ -1197,43 +1198,43 @@ const Et = [{
|
|
|
1197
1198
|
}, t[9] = k) : k = t[9];
|
|
1198
1199
|
const R = k;
|
|
1199
1200
|
let P;
|
|
1200
|
-
t[10] !==
|
|
1201
|
+
t[10] !== S || t[11] !== p ? (P = (L) => {
|
|
1201
1202
|
const re = L.value[0] ?? 0;
|
|
1202
|
-
|
|
1203
|
-
}, t[10] =
|
|
1203
|
+
S(p, re / 100);
|
|
1204
|
+
}, t[10] = S, t[11] = p, t[12] = P) : P = t[12];
|
|
1204
1205
|
const E = P;
|
|
1205
1206
|
let M, A;
|
|
1206
1207
|
t[13] !== d ? (M = function() {
|
|
1207
1208
|
b(d ?? "global");
|
|
1208
|
-
}, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]),
|
|
1209
|
+
}, A = [d], t[13] = d, t[14] = M, t[15] = A) : (M = t[14], A = t[15]), ie(M, A);
|
|
1209
1210
|
let w;
|
|
1210
1211
|
t[16] !== i ? (w = (L) => {
|
|
1211
1212
|
i(L.open);
|
|
1212
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(
|
|
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(
|
|
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 =
|
|
1219
|
+
t[21] !== d ? (D = Vi(d) ?? "global", t[21] = d, t[22] = D) : D = t[22];
|
|
1219
1220
|
const F = !h;
|
|
1220
1221
|
let Q;
|
|
1221
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = /* @__PURE__ */ a(ce, { gap: 2, children:
|
|
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(
|
|
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(
|
|
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
1229
|
let W;
|
|
1229
|
-
t[28] !== d ? (W =
|
|
1230
|
-
d === L && /* @__PURE__ */ a(
|
|
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, {}),
|
|
1231
1232
|
L
|
|
1232
1233
|
] }, L)), t[28] = d, t[29] = W) : W = t[29];
|
|
1233
1234
|
let G;
|
|
1234
|
-
t[30] !== W ? (G = /* @__PURE__ */ a(
|
|
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] !==
|
|
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 Et = [{
|
|
|
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] =
|
|
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];
|
|
1246
1247
|
let Y;
|
|
1247
|
-
t[37] !== G || t[38] !== q || t[39] !== p ? (Y = /* @__PURE__ */ 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: [
|
|
1248
1249
|
G,
|
|
1249
1250
|
q
|
|
1250
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] !== Y ? (K = /* @__PURE__ */ a(
|
|
1253
|
+
t[41] !== V || t[42] !== Y ? (K = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ee, { gap: 4, flex: 1, children: [
|
|
1253
1254
|
V,
|
|
1254
1255
|
Y
|
|
1255
1256
|
] }) }), t[41] = V, t[42] = Y, t[43] = K) : K = t[43];
|
|
1256
1257
|
let Z, X;
|
|
1257
|
-
t[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(
|
|
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(
|
|
1260
|
+
t[46] !== K ? (B = /* @__PURE__ */ y(Te, { maxH: "40vh", overflow: "auto", children: [
|
|
1260
1261
|
$,
|
|
1261
1262
|
K,
|
|
1262
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] !== w ? (se = /* @__PURE__ */ a(
|
|
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
|
|
1269
|
-
return /* @__PURE__ */ a(
|
|
1269
|
+
function Gi(t) {
|
|
1270
|
+
return /* @__PURE__ */ a(it, { value: t, children: t }, t);
|
|
1270
1271
|
}
|
|
1271
|
-
const
|
|
1272
|
-
const t =
|
|
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
|
-
} =
|
|
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 Wi = () => {
|
|
|
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]),
|
|
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(
|
|
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],
|
|
1300
|
+
}, t[5] = o, t[6] = e?.settings.values$, t[7] = d) : d = t[7], be(d), null;
|
|
1300
1301
|
};
|
|
1301
|
-
function
|
|
1302
|
+
function ji(t) {
|
|
1302
1303
|
return t.fontScale;
|
|
1303
1304
|
}
|
|
1304
|
-
const
|
|
1305
|
+
const qi = {
|
|
1305
1306
|
x: 0,
|
|
1306
1307
|
y: 0,
|
|
1307
1308
|
width: 0,
|
|
@@ -1311,8 +1312,8 @@ const Ui = {
|
|
|
1311
1312
|
bottom: 0,
|
|
1312
1313
|
right: 0
|
|
1313
1314
|
};
|
|
1314
|
-
function
|
|
1315
|
-
const t =
|
|
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 ji() {
|
|
|
1323
1324
|
height: g,
|
|
1324
1325
|
top: p,
|
|
1325
1326
|
left: b,
|
|
1326
|
-
bottom:
|
|
1327
|
-
right:
|
|
1327
|
+
bottom: _,
|
|
1328
|
+
right: S
|
|
1328
1329
|
} = u[0].contentRect;
|
|
1329
1330
|
i({
|
|
1330
1331
|
x: f,
|
|
@@ -1333,8 +1334,8 @@ function ji() {
|
|
|
1333
1334
|
height: g,
|
|
1334
1335
|
top: p,
|
|
1335
1336
|
left: b,
|
|
1336
|
-
bottom:
|
|
1337
|
-
right:
|
|
1337
|
+
bottom: _,
|
|
1338
|
+
right: S
|
|
1338
1339
|
});
|
|
1339
1340
|
}
|
|
1340
1341
|
}), t[0] = l) : l = t[0];
|
|
@@ -1345,40 +1346,40 @@ function ji() {
|
|
|
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]),
|
|
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
|
|
1353
|
-
const n =
|
|
1353
|
+
const Yi = (t, e, o) => {
|
|
1354
|
+
const n = C(7), i = j();
|
|
1354
1355
|
let l;
|
|
1355
|
-
n[0] !== i ? (l =
|
|
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
|
|
1361
|
-
const d = e.didLayout$.pipe(
|
|
1361
|
+
return Ze;
|
|
1362
|
+
const d = e.didLayout$.pipe(Rt(e.layoutInfo), Se(an), nn(100, void 0, {
|
|
1362
1363
|
trailing: !0
|
|
1363
|
-
})), u =
|
|
1364
|
-
return
|
|
1364
|
+
})), u = ro(t).pipe(J(Qi), Rt(!1), Se());
|
|
1365
|
+
return ct([d, u]).pipe(Ce((f) => {
|
|
1365
1366
|
const [, h] = f;
|
|
1366
|
-
return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "",
|
|
1367
|
+
return h ? (t.innerHTML = "", s.gallery.snapshot(e, t, o)) : (t.innerHTML = "", Ze);
|
|
1367
1368
|
}));
|
|
1368
|
-
}, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6],
|
|
1369
|
+
}, n[2] = t, n[3] = e, n[4] = o, n[5] = s, n[6] = r) : r = n[6], be(r);
|
|
1369
1370
|
};
|
|
1370
|
-
function
|
|
1371
|
+
function Zi(t) {
|
|
1371
1372
|
return t.isIntersecting;
|
|
1372
1373
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return t.some(
|
|
1374
|
+
function Qi(t) {
|
|
1375
|
+
return t.some(Zi);
|
|
1375
1376
|
}
|
|
1376
|
-
const
|
|
1377
|
-
const e =
|
|
1377
|
+
const Xi = N((t) => {
|
|
1378
|
+
const e = C(17), {
|
|
1378
1379
|
item: o,
|
|
1379
1380
|
onNavigated: n
|
|
1380
|
-
} = t, [i, l, s] =
|
|
1381
|
-
|
|
1381
|
+
} = t, [i, l, s] = Ki(), r = j();
|
|
1382
|
+
Yi(s, o, l);
|
|
1382
1383
|
let c, d;
|
|
1383
1384
|
e[0] !== o || e[1] !== r ? (c = () => r?.locateResource(o, {
|
|
1384
1385
|
mode: "shallow"
|
|
@@ -1393,20 +1394,23 @@ const Zi = N((t) => {
|
|
|
1393
1394
|
});
|
|
1394
1395
|
}, e[4] = o, e[5] = n, e[6] = r?.navigation, e[7] = f) : f = e[7];
|
|
1395
1396
|
let h;
|
|
1396
|
-
e[8] !== i ? (h = /* @__PURE__ */ a(
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
"Page ",
|
|
1401
|
-
m
|
|
1402
|
-
] }), 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;
|
|
1403
1401
|
let p;
|
|
1404
|
-
|
|
1405
|
-
|
|
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 ",
|
|
1406
1404
|
g
|
|
1407
|
-
] }), e[
|
|
1408
|
-
|
|
1409
|
-
|
|
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), {
|
|
1410
1414
|
open: o,
|
|
1411
1415
|
setOpen: n
|
|
1412
1416
|
} = t, i = j();
|
|
@@ -1425,46 +1429,46 @@ const Zi = N((t) => {
|
|
|
1425
1429
|
md: "lg"
|
|
1426
1430
|
}, e[6] = d) : d = e[6];
|
|
1427
1431
|
let u;
|
|
1428
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(
|
|
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];
|
|
1429
1433
|
let f;
|
|
1430
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];
|
|
1431
1435
|
let h;
|
|
1432
1436
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [2, 4], e[9] = h) : h = e[9];
|
|
1433
1437
|
let m;
|
|
1434
|
-
e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(
|
|
1438
|
+
e[10] !== r || e[11] !== n ? (m = r?.map((v) => /* @__PURE__ */ a(Xi, { item: v, onNavigated: () => {
|
|
1435
1439
|
n(!1);
|
|
1436
1440
|
} }, v.item.id)), e[10] = r, e[11] = n, e[12] = m) : m = e[12];
|
|
1437
1441
|
let g;
|
|
1438
|
-
e[13] !== m ? (g = /* @__PURE__ */ a(
|
|
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];
|
|
1439
1443
|
let p, b;
|
|
1440
|
-
e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(
|
|
1441
|
-
let
|
|
1442
|
-
e[17] !== g ? (
|
|
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: [
|
|
1443
1447
|
u,
|
|
1444
1448
|
g,
|
|
1445
1449
|
p,
|
|
1446
1450
|
b
|
|
1447
|
-
] }), e[17] = g, e[18] =
|
|
1448
|
-
let
|
|
1449
|
-
return e[19] !== o || e[20] !==
|
|
1450
|
-
}),
|
|
1451
|
-
const e =
|
|
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.298.0", nl = N((t) => {
|
|
1455
|
+
const e = C(16), {
|
|
1452
1456
|
open: o,
|
|
1453
1457
|
setOpen: n
|
|
1454
1458
|
} = t;
|
|
1455
1459
|
let i;
|
|
1456
|
-
e[0] !== n ? (i = (
|
|
1460
|
+
e[0] !== n ? (i = (_) => n(_.open), e[0] = n, e[1] = i) : i = e[1];
|
|
1457
1461
|
let l;
|
|
1458
1462
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1459
1463
|
mdDown: "full",
|
|
1460
1464
|
md: "lg"
|
|
1461
1465
|
}, e[2] = l) : l = e[2];
|
|
1462
1466
|
let s;
|
|
1463
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ a(
|
|
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];
|
|
1464
1468
|
let r;
|
|
1465
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
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];
|
|
1466
1470
|
let c;
|
|
1467
|
-
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(
|
|
1471
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Bn, {}) }), e[5] = c) : c = e[5];
|
|
1468
1472
|
let d;
|
|
1469
1473
|
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ y(ce, { mb: 1, children: [
|
|
1470
1474
|
c,
|
|
@@ -1472,7 +1476,7 @@ const Zi = N((t) => {
|
|
|
1472
1476
|
/* @__PURE__ */ a(U, { children: "Navigate to right page" })
|
|
1473
1477
|
] }), e[6] = d) : d = e[6];
|
|
1474
1478
|
let u;
|
|
1475
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(
|
|
1479
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ a(Fn, {}) }), e[7] = u) : u = e[7];
|
|
1476
1480
|
let f;
|
|
1477
1481
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ y(ee, { children: [
|
|
1478
1482
|
r,
|
|
@@ -1484,72 +1488,72 @@ const Zi = N((t) => {
|
|
|
1484
1488
|
] })
|
|
1485
1489
|
] }), e[8] = f) : f = e[8];
|
|
1486
1490
|
let h;
|
|
1487
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(
|
|
1491
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }), e[9] = h) : h = e[9];
|
|
1488
1492
|
let m;
|
|
1489
1493
|
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ y(ee, { children: [
|
|
1490
1494
|
h,
|
|
1491
1495
|
/* @__PURE__ */ a(ce, { mb: 1, children: /* @__PURE__ */ a(U, { children: "Tap on the top right corner of a page bookmark it" }) })
|
|
1492
1496
|
] }), e[10] = m) : m = e[10];
|
|
1493
1497
|
let g;
|
|
1494
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ y(
|
|
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: [
|
|
1495
1499
|
f,
|
|
1496
1500
|
m,
|
|
1497
1501
|
/* @__PURE__ */ y(ee, { children: [
|
|
1498
|
-
/* @__PURE__ */ a(
|
|
1502
|
+
/* @__PURE__ */ a(yt, { mb: 2, as: "h3", size: "lg", children: "About" }),
|
|
1499
1503
|
/* @__PURE__ */ y(U, { children: [
|
|
1500
|
-
|
|
1504
|
+
el,
|
|
1501
1505
|
" version: ",
|
|
1502
|
-
|
|
1506
|
+
tl
|
|
1503
1507
|
] })
|
|
1504
1508
|
] })
|
|
1505
1509
|
] }), e[11] = g) : g = e[11];
|
|
1506
1510
|
let p;
|
|
1507
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(
|
|
1511
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ y(Te, { children: [
|
|
1508
1512
|
s,
|
|
1509
1513
|
g,
|
|
1510
|
-
/* @__PURE__ */ a(
|
|
1511
|
-
/* @__PURE__ */ a(
|
|
1514
|
+
/* @__PURE__ */ a(Re, { children: /* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ a(he, { variant: "outline", children: "Cancel" }) }) }),
|
|
1515
|
+
/* @__PURE__ */ a(ke, {})
|
|
1512
1516
|
] }), e[12] = p) : p = e[12];
|
|
1513
1517
|
let b;
|
|
1514
|
-
return e[13] !== o || e[14] !== i ? (b = /* @__PURE__ */ a(
|
|
1515
|
-
}),
|
|
1516
|
-
const t =
|
|
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();
|
|
1517
1521
|
let o, n;
|
|
1518
|
-
return t[0] !== e ? (o = () => e ?
|
|
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;
|
|
1519
1523
|
};
|
|
1520
|
-
function
|
|
1524
|
+
function ol(t) {
|
|
1521
1525
|
return t.mediaType?.startsWith("image/");
|
|
1522
1526
|
}
|
|
1523
|
-
function
|
|
1524
|
-
const [e, o] = t, n = o.manifest?.spineItems.every(
|
|
1527
|
+
function il(t) {
|
|
1528
|
+
const [e, o] = t, n = o.manifest?.spineItems.every(ol);
|
|
1525
1529
|
return {
|
|
1526
1530
|
...e,
|
|
1527
1531
|
hasChapters: !o.isFullyPrePaginated && !n
|
|
1528
1532
|
};
|
|
1529
1533
|
}
|
|
1530
|
-
const
|
|
1534
|
+
const ll = {
|
|
1531
1535
|
_open: "fade-in",
|
|
1532
1536
|
_closed: "fade-out"
|
|
1533
|
-
},
|
|
1534
|
-
const t =
|
|
1537
|
+
}, sl = () => {
|
|
1538
|
+
const t = C(6);
|
|
1535
1539
|
let e;
|
|
1536
1540
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["enableFloatingProgress", "quickMenuOpen"], t[0] = e) : e = t[0];
|
|
1537
1541
|
const {
|
|
1538
1542
|
enableFloatingProgress: o,
|
|
1539
1543
|
quickMenuOpen: n
|
|
1540
|
-
} =
|
|
1544
|
+
} = le(e), i = et(), l = Math.floor((i?.percentageEstimateOfBook ?? 0) * 100), s = l > 0 ? l : 1;
|
|
1541
1545
|
if (i?.percentageEstimateOfBook === void 0 || !o)
|
|
1542
1546
|
return null;
|
|
1543
1547
|
const r = !n;
|
|
1544
1548
|
let c;
|
|
1545
|
-
t[1] !== s ? (c = /* @__PURE__ */ a(
|
|
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: [
|
|
1546
1550
|
s,
|
|
1547
1551
|
" %"
|
|
1548
1552
|
] }) }), t[1] = s, t[2] = c) : c = t[2];
|
|
1549
1553
|
let d;
|
|
1550
|
-
return t[3] !== r || t[4] !== c ? (d = /* @__PURE__ */ a(
|
|
1551
|
-
},
|
|
1552
|
-
const t =
|
|
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);
|
|
1553
1557
|
let e;
|
|
1554
1558
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ new Date(), t[0] = e) : e = t[0];
|
|
1555
1559
|
const [o, n] = ne(e);
|
|
@@ -1559,9 +1563,9 @@ const ol = {
|
|
|
1559
1563
|
n(/* @__PURE__ */ new Date());
|
|
1560
1564
|
}, 6e4);
|
|
1561
1565
|
return () => clearInterval(s);
|
|
1562
|
-
}, l = [], t[1] = i, t[2] = l) : (i = t[1], l = t[2]),
|
|
1563
|
-
},
|
|
1564
|
-
const e =
|
|
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();
|
|
1565
1569
|
let n;
|
|
1566
1570
|
e[0] !== o ? (n = o.toLocaleTimeString(navigator.language, {
|
|
1567
1571
|
hour: "2-digit",
|
|
@@ -1569,12 +1573,12 @@ const ol = {
|
|
|
1569
1573
|
}), e[0] = o, e[1] = n) : n = e[1];
|
|
1570
1574
|
let i;
|
|
1571
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;
|
|
1572
|
-
},
|
|
1573
|
-
const t =
|
|
1576
|
+
}, cl = N(() => {
|
|
1577
|
+
const t = C(1);
|
|
1574
1578
|
let e;
|
|
1575
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ a(
|
|
1576
|
-
}),
|
|
1577
|
-
const o =
|
|
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();
|
|
1578
1582
|
let l, s;
|
|
1579
1583
|
return o[0] !== e || o[1] !== t ? (l = () => {
|
|
1580
1584
|
if (t === void 0) {
|
|
@@ -1588,98 +1592,98 @@ const ol = {
|
|
|
1588
1592
|
return () => {
|
|
1589
1593
|
window.clearTimeout(r);
|
|
1590
1594
|
};
|
|
1591
|
-
}, s = [e, t], o[0] = e, o[1] = t, o[2] = l, o[3] = s) : (l = o[2], s = o[3]),
|
|
1592
|
-
},
|
|
1593
|
-
pulse:
|
|
1594
|
-
},
|
|
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 = {
|
|
1595
1599
|
_open: "fade-in",
|
|
1596
1600
|
_closed: "fade-out",
|
|
1597
1601
|
_motionReduce: "none"
|
|
1598
|
-
},
|
|
1602
|
+
}, pl = {
|
|
1599
1603
|
base: "moderate",
|
|
1600
1604
|
_motionReduce: "0ms"
|
|
1601
|
-
},
|
|
1605
|
+
}, bl = ({
|
|
1602
1606
|
manifest: t,
|
|
1603
1607
|
viewport: e
|
|
1604
|
-
}) => e.width === e.height ? !1 :
|
|
1608
|
+
}) => e.width === e.height ? !1 : ao({
|
|
1605
1609
|
manifest: t,
|
|
1606
1610
|
viewport: {
|
|
1607
1611
|
height: e.width,
|
|
1608
1612
|
width: e.height
|
|
1609
1613
|
}
|
|
1610
|
-
}),
|
|
1614
|
+
}), Sl = ({
|
|
1611
1615
|
manifest: t,
|
|
1612
1616
|
pagination: e,
|
|
1613
1617
|
computedSpreadMode: o,
|
|
1614
1618
|
viewportState: n,
|
|
1615
1619
|
viewport: i
|
|
1616
1620
|
}) => {
|
|
1617
|
-
if (!(n !== "free" || o || !
|
|
1621
|
+
if (!(n !== "free" || o || !bl({
|
|
1618
1622
|
manifest: t,
|
|
1619
1623
|
viewport: i
|
|
1620
1624
|
}) || !(e.beginHasAdjacentSpreadPage || e.endHasAdjacentSpreadPage)))
|
|
1621
1625
|
return [e.beginSpineItemIndex, e.beginPageIndexInSpineItem, e.endSpineItemIndex, e.endPageIndexInSpineItem].map((s) => s ?? "none").join(":");
|
|
1622
|
-
},
|
|
1626
|
+
}, _l = (t) => t.pagination.state$.pipe(rn(["beginHasAdjacentSpreadPage", "beginPageIndexInSpineItem", "beginSpineItemIndex", "endHasAdjacentSpreadPage", "endPageIndexInSpineItem", "endSpineItemIndex"]), Jn({
|
|
1623
1627
|
bufferSize: 1,
|
|
1624
1628
|
refCount: !0
|
|
1625
|
-
})),
|
|
1629
|
+
})), vl = ({
|
|
1626
1630
|
pagination$: t,
|
|
1627
1631
|
reader: e
|
|
1628
|
-
}) =>
|
|
1632
|
+
}) => ct([t, e.spineItemsManager.items$]).pipe(J(([{
|
|
1629
1633
|
beginSpineItemIndex: o
|
|
1630
|
-
}, n]) => o === void 0 ? void 0 : n[o]),
|
|
1631
|
-
const e =
|
|
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({
|
|
1632
1636
|
pagination$: e,
|
|
1633
1637
|
reader: t
|
|
1634
1638
|
});
|
|
1635
|
-
return
|
|
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]) => {
|
|
1636
1640
|
if (c)
|
|
1637
|
-
return
|
|
1641
|
+
return Sl({
|
|
1638
1642
|
manifest: i,
|
|
1639
1643
|
pagination: n,
|
|
1640
1644
|
computedSpreadMode: l.computedSpreadMode ?? !1,
|
|
1641
1645
|
viewportState: s,
|
|
1642
1646
|
viewport: r
|
|
1643
1647
|
});
|
|
1644
|
-
}),
|
|
1645
|
-
},
|
|
1646
|
-
const t =
|
|
1648
|
+
}), Se());
|
|
1649
|
+
}, Cl = () => {
|
|
1650
|
+
const t = C(3), e = j();
|
|
1647
1651
|
let o, n;
|
|
1648
|
-
return t[0] !== e ? (o = () => e ?
|
|
1649
|
-
},
|
|
1650
|
-
const t =
|
|
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;
|
|
1651
1655
|
let i;
|
|
1652
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(
|
|
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];
|
|
1653
1657
|
let l;
|
|
1654
|
-
t[1] !== o ? (l = /* @__PURE__ */ a(
|
|
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];
|
|
1655
1659
|
let s;
|
|
1656
|
-
return t[3] !== n || t[4] !== l ? (s = /* @__PURE__ */ a(
|
|
1657
|
-
}),
|
|
1658
|
-
const t =
|
|
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();
|
|
1659
1663
|
let o;
|
|
1660
|
-
t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(
|
|
1664
|
+
t[0] !== e?.links$ ? (o = () => e?.links$.subscribe(Tl), t[0] = e?.links$, t[1] = o) : o = t[1], be(o);
|
|
1661
1665
|
};
|
|
1662
|
-
function
|
|
1663
|
-
if (t.type === "click" &&
|
|
1666
|
+
function Tl(t) {
|
|
1667
|
+
if (t.type === "click" && co(t.target, "a")) {
|
|
1664
1668
|
if (!t.target.href)
|
|
1665
1669
|
return;
|
|
1666
1670
|
const e = new URL(t.target.href);
|
|
1667
1671
|
window.location.host !== e.host && confirm("You are going to be redirected to external link") && window.open(t.target.href, "__blank");
|
|
1668
1672
|
}
|
|
1669
1673
|
}
|
|
1670
|
-
const
|
|
1671
|
-
const t =
|
|
1674
|
+
const kl = () => {
|
|
1675
|
+
const t = C(3);
|
|
1672
1676
|
let e;
|
|
1673
1677
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["notificationsSubject"], t[0] = e) : e = t[0];
|
|
1674
1678
|
const {
|
|
1675
1679
|
notificationsSubject: o
|
|
1676
|
-
} =
|
|
1680
|
+
} = le(e);
|
|
1677
1681
|
let n;
|
|
1678
|
-
t[1] !== o ? (n = () => o.pipe(
|
|
1679
|
-
const s = l.duration ?? 3e3, r = new
|
|
1682
|
+
t[1] !== o ? (n = () => o.pipe(pt(tn), eo((l) => {
|
|
1683
|
+
const s = l.duration ?? 3e3, r = new to((d) => {
|
|
1680
1684
|
try {
|
|
1681
1685
|
queueMicrotask(() => {
|
|
1682
|
-
const u =
|
|
1686
|
+
const u = Mt.create({
|
|
1683
1687
|
title: l.title,
|
|
1684
1688
|
description: l.description,
|
|
1685
1689
|
duration: s
|
|
@@ -1690,15 +1694,15 @@ const Il = () => {
|
|
|
1690
1694
|
const f = u;
|
|
1691
1695
|
d.error(f);
|
|
1692
1696
|
}
|
|
1693
|
-
}), c = o.pipe(
|
|
1694
|
-
return r.pipe(Ce((d) =>
|
|
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(() => {
|
|
1695
1699
|
queueMicrotask(() => {
|
|
1696
|
-
|
|
1700
|
+
Mt.dismiss(d);
|
|
1697
1701
|
});
|
|
1698
1702
|
}))));
|
|
1699
|
-
})), t[1] = o, t[2] = n) : n = t[2],
|
|
1700
|
-
},
|
|
1701
|
-
const e =
|
|
1703
|
+
})), t[1] = o, t[2] = n) : n = t[2], be(n);
|
|
1704
|
+
}, $l = Rn(yo), _n = N((t) => {
|
|
1705
|
+
const e = C(10);
|
|
1702
1706
|
let o;
|
|
1703
1707
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
1704
1708
|
"--bg": "colors.bg",
|
|
@@ -1759,9 +1763,9 @@ const Il = () => {
|
|
|
1759
1763
|
}
|
|
1760
1764
|
}, e[5] = r, e[6] = c) : c = e[6];
|
|
1761
1765
|
let d;
|
|
1762
|
-
return e[7] !== t || e[8] !== c ? (d = /* @__PURE__ */ a(
|
|
1763
|
-
}),
|
|
1764
|
-
const t =
|
|
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();
|
|
1765
1769
|
let o;
|
|
1766
1770
|
t[0] !== e?.audio.state$ ? (o = () => e?.audio.state$, t[0] = e?.audio.state$, t[1] = o) : o = t[1];
|
|
1767
1771
|
let n;
|
|
@@ -1770,27 +1774,27 @@ const Il = () => {
|
|
|
1770
1774
|
data: i
|
|
1771
1775
|
} = H(o, n);
|
|
1772
1776
|
return i;
|
|
1773
|
-
},
|
|
1777
|
+
}, Qt = (t) => {
|
|
1774
1778
|
if (!Number.isFinite(t) || t < 0) return "00:00";
|
|
1775
1779
|
const e = Math.floor(t), o = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60), i = e % 60;
|
|
1776
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(":");
|
|
1777
|
-
},
|
|
1778
|
-
const e =
|
|
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);
|
|
1779
1783
|
let p;
|
|
1780
|
-
if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(
|
|
1784
|
+
if (e[0] !== o?.audio.state$ || e[1] !== g ? (p = () => o?.audio.state$.pipe(J(Al), At((z) => {
|
|
1781
1785
|
g.value || (m(z), g.next(!1));
|
|
1782
|
-
})), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2],
|
|
1786
|
+
})), e[0] = o?.audio.state$, e[1] = g, e[2] = p) : p = e[2], be(p), !n)
|
|
1783
1787
|
return null;
|
|
1784
|
-
const
|
|
1785
|
-
let
|
|
1786
|
-
e[3] !== o?.audio ? (
|
|
1788
|
+
const _ = n.isPlaying ? "Pause audio" : "Play audio";
|
|
1789
|
+
let S;
|
|
1790
|
+
e[3] !== o?.audio ? (S = () => {
|
|
1787
1791
|
o?.audio.toggle();
|
|
1788
|
-
}, e[3] = o?.audio, e[4] =
|
|
1792
|
+
}, e[3] = o?.audio, e[4] = S) : S = e[4];
|
|
1789
1793
|
const v = !i || n.isLoading;
|
|
1790
|
-
let
|
|
1791
|
-
e[5] !== n.isPlaying ? (
|
|
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];
|
|
1792
1796
|
let T;
|
|
1793
|
-
e[7] !==
|
|
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];
|
|
1794
1798
|
let I;
|
|
1795
1799
|
e[12] !== g ? (I = (z) => {
|
|
1796
1800
|
const D = Array.isArray(z) ? z[0] : z;
|
|
@@ -1806,13 +1810,13 @@ const Il = () => {
|
|
|
1806
1810
|
m(D), o?.audio.setCurrentTime(D), g.next(!1);
|
|
1807
1811
|
}, e[14] = o?.audio, e[15] = g, e[16] = k) : k = e[16];
|
|
1808
1812
|
let R;
|
|
1809
|
-
e[17] !== h || e[18] !== f || e[19] !== d || e[20] !== I || e[21] !== k ? (R = /* @__PURE__ */ a(
|
|
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];
|
|
1810
1814
|
let P;
|
|
1811
|
-
e[23] !== n.isLoading || e[24] !== h ? (P = n.isLoading ? "Loading audio..." :
|
|
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];
|
|
1812
1816
|
let E;
|
|
1813
1817
|
e[26] !== P ? (E = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: P }), e[26] = P, e[27] = E) : E = e[27];
|
|
1814
1818
|
let M;
|
|
1815
|
-
e[28] !== s ? (M =
|
|
1819
|
+
e[28] !== s ? (M = Qt(s), e[28] = s, e[29] = M) : M = e[29];
|
|
1816
1820
|
let A;
|
|
1817
1821
|
e[30] !== M ? (A = /* @__PURE__ */ a(U, { fontSize: "xs", color: "fg.muted", children: M }), e[30] = M, e[31] = A) : A = e[31];
|
|
1818
1822
|
let w;
|
|
@@ -1831,16 +1835,16 @@ const Il = () => {
|
|
|
1831
1835
|
$
|
|
1832
1836
|
] }), e[38] = t, e[39] = $, e[40] = T, e[41] = O) : O = e[41], O;
|
|
1833
1837
|
};
|
|
1834
|
-
function
|
|
1835
|
-
return new
|
|
1838
|
+
function Ol() {
|
|
1839
|
+
return new sn(!1);
|
|
1836
1840
|
}
|
|
1837
|
-
function
|
|
1841
|
+
function Al(t) {
|
|
1838
1842
|
return t.currentTime;
|
|
1839
1843
|
}
|
|
1840
|
-
const
|
|
1841
|
-
const t =
|
|
1844
|
+
const wl = () => {
|
|
1845
|
+
const t = C(4), e = Je();
|
|
1842
1846
|
let o;
|
|
1843
|
-
t[0] !== e?.audio.visibleTrackIds$ ? (o = () => e?.audio.visibleTrackIds$.pipe(J(
|
|
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];
|
|
1844
1848
|
let n;
|
|
1845
1849
|
t[2] !== e ? (n = [e], t[2] = e, t[3] = n) : n = t[3];
|
|
1846
1850
|
const {
|
|
@@ -1848,11 +1852,11 @@ const Ol = () => {
|
|
|
1848
1852
|
} = H(o, n);
|
|
1849
1853
|
return i === void 0 ? !1 : i;
|
|
1850
1854
|
};
|
|
1851
|
-
function
|
|
1855
|
+
function zl(t) {
|
|
1852
1856
|
return t.length > 0;
|
|
1853
1857
|
}
|
|
1854
|
-
const
|
|
1855
|
-
const n =
|
|
1858
|
+
const Pl = de.forwardRef(function(e, o) {
|
|
1859
|
+
const n = C(26);
|
|
1856
1860
|
let i, l, s, r, c, d;
|
|
1857
1861
|
n[0] !== e ? ({
|
|
1858
1862
|
showArrow: c,
|
|
@@ -1869,42 +1873,42 @@ const wl = de.forwardRef(function(e, o) {
|
|
|
1869
1873
|
gutter: 4
|
|
1870
1874
|
}, n[7] = r.positioning, n[8] = f) : f = n[8];
|
|
1871
1875
|
let h;
|
|
1872
|
-
n[9] !== i ? (h = /* @__PURE__ */ a(
|
|
1876
|
+
n[9] !== i ? (h = /* @__PURE__ */ a(Ke.Trigger, { asChild: !0, children: i }), n[9] = i, n[10] = h) : h = n[10];
|
|
1873
1877
|
const m = !u;
|
|
1874
1878
|
let g;
|
|
1875
|
-
n[11] !== c ? (g = c && /* @__PURE__ */ a(
|
|
1879
|
+
n[11] !== c ? (g = c && /* @__PURE__ */ a(Ke.Arrow, { children: /* @__PURE__ */ a(Ke.ArrowTip, {}) }), n[11] = c, n[12] = g) : g = n[12];
|
|
1876
1880
|
let p;
|
|
1877
|
-
n[13] !== l || n[14] !== o || n[15] !== g ? (p = /* @__PURE__ */ a(
|
|
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: [
|
|
1878
1882
|
g,
|
|
1879
1883
|
l
|
|
1880
1884
|
] }) }), n[13] = l, n[14] = o, n[15] = g, n[16] = p) : p = n[16];
|
|
1881
1885
|
let b;
|
|
1882
|
-
n[17] !== s || n[18] !== m || n[19] !== p ? (b = /* @__PURE__ */ a(
|
|
1883
|
-
let
|
|
1884
|
-
return n[21] !== r || n[22] !== f || n[23] !== h || n[24] !== b ? (
|
|
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: [
|
|
1885
1889
|
h,
|
|
1886
1890
|
b
|
|
1887
|
-
] }), n[21] = r, n[22] = f, n[23] = h, n[24] = b, n[25] =
|
|
1888
|
-
}),
|
|
1889
|
-
const n =
|
|
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);
|
|
1890
1894
|
let i, l;
|
|
1891
1895
|
n[0] !== e ? ({
|
|
1892
1896
|
children: i,
|
|
1893
1897
|
...l
|
|
1894
1898
|
} = e, n[0] = e, n[1] = i, n[2] = l) : (i = n[1], l = n[2]);
|
|
1895
1899
|
let s;
|
|
1896
|
-
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(
|
|
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];
|
|
1897
1901
|
let r;
|
|
1898
|
-
return n[4] !== i || n[5] !== o || n[6] !== l ? (r = /* @__PURE__ */ a(
|
|
1899
|
-
}),
|
|
1900
|
-
const n =
|
|
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);
|
|
1901
1905
|
let i;
|
|
1902
|
-
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(
|
|
1906
|
+
n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(st.Range, {}), n[0] = i) : i = n[0];
|
|
1903
1907
|
let l;
|
|
1904
|
-
return n[1] !== e || n[2] !== o ? (l = /* @__PURE__ */ a(
|
|
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;
|
|
1905
1909
|
});
|
|
1906
1910
|
de.forwardRef(function(e, o) {
|
|
1907
|
-
const n =
|
|
1911
|
+
const n = C(11);
|
|
1908
1912
|
let i, l, s;
|
|
1909
1913
|
n[0] !== e ? ({
|
|
1910
1914
|
children: i,
|
|
@@ -1912,15 +1916,15 @@ de.forwardRef(function(e, o) {
|
|
|
1912
1916
|
...s
|
|
1913
1917
|
} = e, n[0] = e, n[1] = i, n[2] = l, n[3] = s) : (i = n[1], l = n[2], s = n[3]);
|
|
1914
1918
|
let r;
|
|
1915
|
-
n[4] !== l ? (r = l && /* @__PURE__ */ a(
|
|
1919
|
+
n[4] !== l ? (r = l && /* @__PURE__ */ a(El, { children: l }), n[4] = l, n[5] = r) : r = n[5];
|
|
1916
1920
|
let c;
|
|
1917
|
-
return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(
|
|
1921
|
+
return n[6] !== i || n[7] !== o || n[8] !== s || n[9] !== r ? (c = /* @__PURE__ */ y(st.Label, { ...s, ref: o, children: [
|
|
1918
1922
|
i,
|
|
1919
1923
|
r
|
|
1920
1924
|
] }), n[6] = i, n[7] = o, n[8] = s, n[9] = r, n[10] = c) : c = n[10], c;
|
|
1921
1925
|
});
|
|
1922
|
-
const
|
|
1923
|
-
const t =
|
|
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;
|
|
1924
1928
|
return {
|
|
1925
1929
|
hasOnlyOnePage: e,
|
|
1926
1930
|
beginPageIndex: i,
|
|
@@ -1932,41 +1936,41 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
1932
1936
|
leftPageIndex: s,
|
|
1933
1937
|
rightPageIndex: r
|
|
1934
1938
|
};
|
|
1935
|
-
},
|
|
1936
|
-
const t =
|
|
1939
|
+
}, Ll = () => {
|
|
1940
|
+
const t = C(24), e = et(), {
|
|
1937
1941
|
hasOnlyOnePage: o,
|
|
1938
1942
|
leftPageIndex: n,
|
|
1939
1943
|
rightPageIndex: i,
|
|
1940
1944
|
totalApproximatePages: l,
|
|
1941
1945
|
beginAndEndAreDifferent: s
|
|
1942
|
-
} =
|
|
1946
|
+
} = Bt();
|
|
1943
1947
|
let r;
|
|
1944
1948
|
t[0] !== e?.percentageEstimateOfBook ? (r = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), t[0] = e?.percentageEstimateOfBook, t[1] = r) : r = t[1];
|
|
1945
1949
|
const c = r;
|
|
1946
1950
|
let d;
|
|
1947
1951
|
if (t[2] !== e?.beginChapterInfo) {
|
|
1948
|
-
const v = (
|
|
1952
|
+
const v = (x) => x?.subChapter ? `${x.title} / ${v(x.subChapter)}` : x?.title || "";
|
|
1949
1953
|
d = v(e?.beginChapterInfo), t[2] = e?.beginChapterInfo, t[3] = d;
|
|
1950
1954
|
} else
|
|
1951
1955
|
d = t[3];
|
|
1952
1956
|
const u = d;
|
|
1953
1957
|
let f;
|
|
1954
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(
|
|
1958
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(Dl, { width: 110 }), t[4] = f) : f = t[4];
|
|
1955
1959
|
const h = `${c}%`;
|
|
1956
1960
|
let m;
|
|
1957
1961
|
t[5] !== h ? (m = /* @__PURE__ */ y(ce, { justifyContent: "space-between", children: [
|
|
1958
1962
|
f,
|
|
1959
|
-
/* @__PURE__ */ a(
|
|
1963
|
+
/* @__PURE__ */ a(Fl, { children: h })
|
|
1960
1964
|
] }), t[5] = h, t[6] = m) : m = t[6];
|
|
1961
1965
|
let g;
|
|
1962
|
-
t[7] !== c || t[8] !== m ? (g = /* @__PURE__ */ a(
|
|
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];
|
|
1963
1967
|
const p = u ? `Chapter: ${u}` : " ";
|
|
1964
1968
|
let b;
|
|
1965
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];
|
|
1966
|
-
let
|
|
1967
|
-
t[12] !== s || t[13] !== o || t[14] !== n || t[15] !== e?.beginAbsolutePageIndex || t[16] !== e?.hasChapters || t[17] !== i || t[18] !== l ? (
|
|
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: [
|
|
1968
1972
|
/* @__PURE__ */ a(U, { fontSize: "xs", children: s ? `${n + 1} - ${i + 1} of ${l}` : `${n + 1} of ${l}` }),
|
|
1969
|
-
!!e?.hasChapters && /* @__PURE__ */ y(
|
|
1973
|
+
!!e?.hasChapters && /* @__PURE__ */ y(xe, { children: [
|
|
1970
1974
|
/* @__PURE__ */ a(U, { children: "-" }),
|
|
1971
1975
|
/* @__PURE__ */ y(U, { fontSize: "xs", children: [
|
|
1972
1976
|
"(",
|
|
@@ -1974,15 +1978,15 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
1974
1978
|
")"
|
|
1975
1979
|
] })
|
|
1976
1980
|
] })
|
|
1977
|
-
] }), 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] =
|
|
1978
|
-
let
|
|
1979
|
-
return t[20] !== g || t[21] !== b || t[22] !==
|
|
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: [
|
|
1980
1984
|
g,
|
|
1981
1985
|
b,
|
|
1982
|
-
|
|
1983
|
-
] }), t[20] = g, t[21] = b, t[22] =
|
|
1984
|
-
},
|
|
1985
|
-
const e =
|
|
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);
|
|
1986
1990
|
let o, n, i;
|
|
1987
1991
|
e[0] !== t ? ({
|
|
1988
1992
|
children: o,
|
|
@@ -2002,21 +2006,21 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2002
2006
|
_closed: "slide-to-top, fade-out"
|
|
2003
2007
|
}, e[4] = n, e[5] = l, e[6] = s) : (l = e[5], s = e[6]);
|
|
2004
2008
|
let r;
|
|
2005
|
-
return e[7] !== o || e[8] !== i || e[9] !== l || e[10] !== s ? (r = /* @__PURE__ */ a(
|
|
2006
|
-
}),
|
|
2007
|
-
const t =
|
|
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, {
|
|
2008
2012
|
beginPageIndex: n,
|
|
2009
2013
|
totalApproximatePages: i
|
|
2010
|
-
} =
|
|
2014
|
+
} = Bt(), l = i === void 0 ? 0 : i, s = o ? Math.floor((n || 0) / 2) : n;
|
|
2011
2015
|
let r;
|
|
2012
|
-
t[0] !== s ? (r = () =>
|
|
2016
|
+
t[0] !== s ? (r = () => Ye({
|
|
2013
2017
|
default: s || 0
|
|
2014
2018
|
}), t[0] = s, t[1] = r) : r = t[1];
|
|
2015
|
-
const [c, d] =
|
|
2019
|
+
const [c, d] = Zn(r), u = Math.max(0, o ? Math.floor((l - 1) / 2) : l - 1);
|
|
2016
2020
|
let f, h;
|
|
2017
2021
|
t[2] !== s || t[3] !== d ? (f = () => {
|
|
2018
2022
|
d.update(s || 0);
|
|
2019
|
-
}, h = [s, d], t[2] = s, t[3] = d, t[4] = f, t[5] = h) : (f = t[4], h = t[5]),
|
|
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);
|
|
2020
2024
|
let m;
|
|
2021
2025
|
return t[6] !== u || t[7] !== c || t[8] !== d ? (m = {
|
|
2022
2026
|
value: c,
|
|
@@ -2024,8 +2028,8 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2024
2028
|
min: 0,
|
|
2025
2029
|
max: u
|
|
2026
2030
|
}, t[6] = u, t[7] = c, t[8] = d, t[9] = m) : m = t[9], m;
|
|
2027
|
-
},
|
|
2028
|
-
const e =
|
|
2031
|
+
}, Hl = (t) => {
|
|
2032
|
+
const e = C(21), o = j(), n = et(), {
|
|
2029
2033
|
data: i
|
|
2030
2034
|
} = H(() => o?.context, [o]) ?? {};
|
|
2031
2035
|
let l;
|
|
@@ -2035,14 +2039,14 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2035
2039
|
} = l, r = s?.readingDirection === "rtl", c = n?.isUsingSpread, {
|
|
2036
2040
|
totalApproximatePages: d,
|
|
2037
2041
|
isBeginWithinChapter: u
|
|
2038
|
-
} =
|
|
2042
|
+
} = Bt(), f = d === void 0 ? 0 : d, h = u, {
|
|
2039
2043
|
value: m,
|
|
2040
2044
|
valueSignal: g,
|
|
2041
2045
|
min: p,
|
|
2042
2046
|
max: b
|
|
2043
|
-
} =
|
|
2044
|
-
let
|
|
2045
|
-
e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (
|
|
2047
|
+
} = Nl();
|
|
2048
|
+
let _;
|
|
2049
|
+
e[2] !== h || e[3] !== c || e[4] !== o || e[5] !== g ? (_ = (R) => {
|
|
2046
2050
|
const [P] = Array.isArray(R) ? R : [R], E = P === void 0 ? 0 : P;
|
|
2047
2051
|
g.update(E);
|
|
2048
2052
|
const M = c ? Math.floor(E) * 2 : Math.floor(E);
|
|
@@ -2054,32 +2058,32 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2054
2058
|
absolutePageIndex: M,
|
|
2055
2059
|
animation: !1
|
|
2056
2060
|
});
|
|
2057
|
-
}, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] =
|
|
2058
|
-
const
|
|
2061
|
+
}, e[2] = h, e[3] = c, e[4] = o, e[5] = g, e[6] = _) : _ = e[6];
|
|
2062
|
+
const S = _;
|
|
2059
2063
|
let v;
|
|
2060
2064
|
if (e[7] !== o?.navigation || e[8] !== g.subject ? (v = () => o?.navigation.throttleLock({
|
|
2061
2065
|
duration: 100,
|
|
2062
2066
|
trigger: g.subject
|
|
2063
|
-
}), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9],
|
|
2067
|
+
}), e[7] = o?.navigation, e[8] = g.subject, e[9] = v) : v = e[9], be(v), f === 1 || c && f === 2) {
|
|
2064
2068
|
let R;
|
|
2065
|
-
return e[10] !== t.style ? (R = /* @__PURE__ */ a(
|
|
2069
|
+
return e[10] !== t.style ? (R = /* @__PURE__ */ a(oe, { style: t.style }), e[10] = t.style, e[11] = R) : R = e[11], R;
|
|
2066
2070
|
}
|
|
2067
2071
|
let I;
|
|
2068
2072
|
e[12] !== m ? (I = [m], e[12] = m, e[13] = I) : I = e[13];
|
|
2069
2073
|
let k;
|
|
2070
|
-
return e[14] !== b || e[15] !== p || e[16] !==
|
|
2071
|
-
},
|
|
2072
|
-
const e =
|
|
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), {
|
|
2073
2077
|
open: o,
|
|
2074
2078
|
onItemClick: n
|
|
2075
|
-
} = t, i =
|
|
2079
|
+
} = t, i = ve(null), l = j();
|
|
2076
2080
|
let s;
|
|
2077
2081
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = ["quickMenuBottomBarBoundingBoxSignal", "onFontSizeMenuOpenChange", "onRefitMenuOpenChange"], e[0] = s) : s = e[0];
|
|
2078
2082
|
const {
|
|
2079
2083
|
quickMenuBottomBarBoundingBoxSignal: r,
|
|
2080
2084
|
onFontSizeMenuOpenChange: c,
|
|
2081
2085
|
onRefitMenuOpenChange: d
|
|
2082
|
-
} =
|
|
2086
|
+
} = le(s);
|
|
2083
2087
|
let u;
|
|
2084
2088
|
e[1] !== l?.navigation.state$ ? (u = () => l?.navigation.state$, e[1] = l?.navigation.state$, e[2] = u) : u = e[2];
|
|
2085
2089
|
let f;
|
|
@@ -2095,39 +2099,39 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2095
2099
|
data: p
|
|
2096
2100
|
} = H(m, g);
|
|
2097
2101
|
let b;
|
|
2098
|
-
e[9] !== l?.zoom.state$ ? (b = () => l?.zoom.state$.pipe(J(
|
|
2099
|
-
let
|
|
2100
|
-
e[11] !== l ? (
|
|
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];
|
|
2101
2105
|
const {
|
|
2102
|
-
data:
|
|
2103
|
-
} = H(b,
|
|
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);
|
|
2104
2108
|
let E, M;
|
|
2105
2109
|
e[13] !== r ? (E = () => {
|
|
2106
2110
|
if (!i.current)
|
|
2107
2111
|
return;
|
|
2108
|
-
const
|
|
2109
|
-
for (const
|
|
2110
|
-
r.update(
|
|
2112
|
+
const mt = new ResizeObserver((Ct) => {
|
|
2113
|
+
for (const xn of Ct)
|
|
2114
|
+
r.update(xn);
|
|
2111
2115
|
});
|
|
2112
|
-
return
|
|
2113
|
-
|
|
2116
|
+
return mt.observe(i.current), () => {
|
|
2117
|
+
mt.disconnect();
|
|
2114
2118
|
};
|
|
2115
|
-
}, M = [r], e[13] = r, e[14] = E, e[15] = M) : (E = e[14], M = e[15]),
|
|
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[16] !== k ? (A = k && /* @__PURE__ */ a(ce, { px: 4, justifyContent: "center", width: "100%", children: /* @__PURE__ */ a(
|
|
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];
|
|
2118
2122
|
let w;
|
|
2119
2123
|
e[18] !== l?.navigation ? (w = () => l?.navigation.goToLeftOrTopSpineItem(), e[18] = l?.navigation, e[19] = w) : w = e[19];
|
|
2120
2124
|
const $ = !h?.canGoLeftSpineItem && !h?.canGoTopSpineItem;
|
|
2121
2125
|
let O;
|
|
2122
|
-
e[20] !== I ? (O = I ? /* @__PURE__ */ a(
|
|
2126
|
+
e[20] !== I ? (O = I ? /* @__PURE__ */ a(_o, {}) : /* @__PURE__ */ a(vo, {}), e[20] = I, e[21] = O) : O = e[21];
|
|
2123
2127
|
let z;
|
|
2124
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];
|
|
2125
2129
|
let D;
|
|
2126
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(
|
|
2130
|
+
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ a(Ll, {}), e[26] = D) : D = e[26];
|
|
2127
2131
|
let F;
|
|
2128
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: [
|
|
2129
2133
|
D,
|
|
2130
|
-
/* @__PURE__ */ a(
|
|
2134
|
+
/* @__PURE__ */ a(Hl, { style: {
|
|
2131
2135
|
width: "100%",
|
|
2132
2136
|
maxWidth: "300px",
|
|
2133
2137
|
height: "35px"
|
|
@@ -2139,7 +2143,7 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2139
2143
|
l?.navigation.goToRightOrBottomSpineItem();
|
|
2140
2144
|
}, e[28] = l?.navigation, e[29] = V) : V = e[29];
|
|
2141
2145
|
let W;
|
|
2142
|
-
e[30] !== I ? (W = I ? /* @__PURE__ */ a(
|
|
2146
|
+
e[30] !== I ? (W = I ? /* @__PURE__ */ a(xo, {}) : /* @__PURE__ */ a(Co, {}), e[30] = I, e[31] = W) : W = e[31];
|
|
2143
2147
|
let G;
|
|
2144
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];
|
|
2145
2149
|
let q;
|
|
@@ -2149,132 +2153,141 @@ const El = lt.Root, Dl = lt.ValueText, Dt = () => {
|
|
|
2149
2153
|
G
|
|
2150
2154
|
] }), e[36] = z, e[37] = G, e[38] = q) : q = e[38];
|
|
2151
2155
|
let Y;
|
|
2152
|
-
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (
|
|
2156
|
+
e[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = (mt) => {
|
|
2153
2157
|
const {
|
|
2154
2158
|
open: Ct
|
|
2155
|
-
} =
|
|
2159
|
+
} = mt;
|
|
2156
2160
|
P(Ct);
|
|
2157
2161
|
}, e[39] = Y) : Y = e[39];
|
|
2158
2162
|
const K = R ? "rotate(0deg)" : "rotate(180deg)";
|
|
2159
2163
|
let Z;
|
|
2160
|
-
e[40] !== K ? (Z = /* @__PURE__ */ a(
|
|
2164
|
+
e[40] !== K ? (Z = /* @__PURE__ */ a(It.Trigger, { paddingY: "3", width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ a(Hn, { style: {
|
|
2161
2165
|
transform: K
|
|
2162
2166
|
} }) }), e[40] = K, e[41] = Z) : Z = e[41];
|
|
2163
2167
|
let X;
|
|
2164
2168
|
e[42] !== n ? (X = () => n("help"), e[42] = n, e[43] = X) : X = e[43];
|
|
2165
2169
|
let B;
|
|
2166
|
-
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(
|
|
2170
|
+
e[44] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ a(Vn, {}), e[44] = B) : B = e[44];
|
|
2167
2171
|
let se;
|
|
2168
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];
|
|
2169
2173
|
let L;
|
|
2170
2174
|
e[47] !== n ? (L = () => n("toc"), e[47] = n, e[48] = L) : L = e[48];
|
|
2171
2175
|
let re;
|
|
2172
|
-
e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ a(
|
|
2173
|
-
let
|
|
2174
|
-
e[50] !== L ? (
|
|
2175
|
-
let we;
|
|
2176
|
-
e[52] !== n || e[53] !== l ? (we = dn(l) && /* @__PURE__ */ a(te, { "aria-label": "Search", size: "lg", variant: "ghost", onClick: () => n("search"), children: /* @__PURE__ */ a(Vn, {}) }), e[52] = n, e[53] = l, e[54] = we) : we = e[54];
|
|
2177
|
-
const _t = 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];
|
|
2178
2179
|
let ze;
|
|
2179
|
-
e[
|
|
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 = () => {
|
|
2180
2184
|
v ? l?.zoom.exit({
|
|
2181
2185
|
animate: !0
|
|
2182
2186
|
}) : l?.zoom.enter({
|
|
2183
2187
|
animate: !0,
|
|
2184
2188
|
scale: 2
|
|
2185
2189
|
});
|
|
2186
|
-
}, e[55] = v, e[56] = l?.zoom, e[57] =
|
|
2187
|
-
let Pe;
|
|
2188
|
-
e[58] !== v ? (Pe = v ? /* @__PURE__ */ a(Wn, {}) : /* @__PURE__ */ a(Gn, {}), e[58] = v, e[59] = Pe) : Pe = e[59];
|
|
2190
|
+
}, e[55] = v, e[56] = l?.zoom, e[57] = Pe) : Pe = e[57];
|
|
2189
2191
|
let Ee;
|
|
2190
|
-
e[
|
|
2192
|
+
e[58] !== v ? (Ee = v ? /* @__PURE__ */ a(Un, {}) : /* @__PURE__ */ a(jn, {}), e[58] = v, e[59] = Ee) : Ee = e[59];
|
|
2191
2193
|
let De;
|
|
2192
|
-
e[
|
|
2193
|
-
c(!0);
|
|
2194
|
-
}, e[64] = c, e[65] = De) : De = e[65];
|
|
2195
|
-
let dt;
|
|
2196
|
-
e[66] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dt = /* @__PURE__ */ a(mo, {}), 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];
|
|
2197
2195
|
let Be;
|
|
2198
|
-
e[
|
|
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];
|
|
2199
2201
|
let Fe;
|
|
2200
|
-
e[
|
|
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];
|
|
2201
2203
|
let Le;
|
|
2202
|
-
e[
|
|
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];
|
|
2203
2205
|
let Ne;
|
|
2204
|
-
e[
|
|
2205
|
-
d(!0);
|
|
2206
|
-
}, disabled: !T, children: /* @__PURE__ */ a(fo, {}) }), e[75] = T, e[76] = d, e[77] = l, e[78] = Ne) : Ne = e[78];
|
|
2207
|
-
const vt = 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];
|
|
2208
2207
|
let He;
|
|
2209
|
-
e[
|
|
2210
|
-
|
|
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({
|
|
2211
2215
|
animate: !0
|
|
2212
2216
|
}) : l?.zoom.enter({
|
|
2213
2217
|
animate: !0,
|
|
2214
2218
|
scale: 0.5
|
|
2215
2219
|
});
|
|
2216
|
-
}, e[79] =
|
|
2217
|
-
let
|
|
2218
|
-
e[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
2219
|
-
let Ve;
|
|
2220
|
-
e[83] !== vt || e[84] !== He ? (Ve = /* @__PURE__ */ a(te, { "aria-label": "Thumbnails", size: "lg", variant: vt, onClick: He, children: ft }), e[83] = vt, 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];
|
|
2221
2223
|
let We;
|
|
2222
|
-
e[
|
|
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];
|
|
2223
2225
|
let Ge;
|
|
2224
|
-
e[
|
|
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: [
|
|
2225
2229
|
se,
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
Be,
|
|
2230
|
+
_e,
|
|
2231
|
+
ze,
|
|
2232
|
+
De,
|
|
2230
2233
|
Fe,
|
|
2231
2234
|
Le,
|
|
2232
2235
|
Ne,
|
|
2233
|
-
|
|
2234
|
-
We
|
|
2235
|
-
] }) }), e[89] = se, e[90] = Se, e[91] = we, 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];
|
|
2236
|
-
let Ue;
|
|
2237
|
-
e[100] !== R || e[101] !== Z || e[102] !== Ge ? (Ue = /* @__PURE__ */ a(ce, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ y(yt.Root, { open: R, flex: 1, onOpenChange: Y, width: "100%", children: [
|
|
2238
|
-
Z,
|
|
2236
|
+
He,
|
|
2237
|
+
We,
|
|
2239
2238
|
Ge
|
|
2240
|
-
] }) }), e[
|
|
2241
|
-
let
|
|
2242
|
-
|
|
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
|
+
Ue
|
|
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: [
|
|
2243
2247
|
A,
|
|
2244
2248
|
q,
|
|
2245
|
-
|
|
2246
|
-
] }), e[104] = o, e[105] = A, e[106] = q, e[107] =
|
|
2249
|
+
je
|
|
2250
|
+
] }), e[104] = o, e[105] = A, e[106] = q, e[107] = je, e[108] = ht) : ht = e[108], ht;
|
|
2247
2251
|
});
|
|
2248
|
-
function
|
|
2252
|
+
function Wl(t) {
|
|
2249
2253
|
return t.currentScale > 1 ? "in" : t.currentScale < 1 ? "out" : void 0;
|
|
2250
2254
|
}
|
|
2251
|
-
const
|
|
2252
|
-
const t =
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
}
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
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), {
|
|
2278
2291
|
open: o,
|
|
2279
2292
|
onItemClick: n
|
|
2280
2293
|
} = t, i = j();
|
|
@@ -2286,40 +2299,39 @@ const Vl = () => {
|
|
|
2286
2299
|
data: r
|
|
2287
2300
|
} = H(l, s), {
|
|
2288
2301
|
isFullscreen: c,
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
e[4] !== n ? (u = () => n("back"), e[4] = n, e[5] = u) : u = e[5];
|
|
2302
|
+
isFullscreenSupported: d,
|
|
2303
|
+
onToggleFullscreenClick: u
|
|
2304
|
+
} = jl();
|
|
2293
2305
|
let f;
|
|
2294
|
-
e[
|
|
2306
|
+
e[4] !== n ? (f = () => n("back"), e[4] = n, e[5] = f) : f = e[5];
|
|
2295
2307
|
let h;
|
|
2296
|
-
e[
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
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;
|
|
2300
2312
|
let p;
|
|
2301
|
-
e[
|
|
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];
|
|
2302
2314
|
let b;
|
|
2303
|
-
e[
|
|
2304
|
-
let S;
|
|
2305
|
-
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];
|
|
2306
2316
|
let _;
|
|
2307
|
-
e[
|
|
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];
|
|
2308
2320
|
let v;
|
|
2309
|
-
e[
|
|
2310
|
-
let
|
|
2311
|
-
e[
|
|
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: [
|
|
2312
2324
|
S,
|
|
2313
2325
|
v
|
|
2314
|
-
] }), e[
|
|
2326
|
+
] }), e[20] = S, e[21] = v, e[22] = x) : x = e[22];
|
|
2315
2327
|
let T;
|
|
2316
|
-
return e[
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
] }), e[
|
|
2321
|
-
}),
|
|
2322
|
-
const 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);
|
|
2323
2335
|
let e;
|
|
2324
2336
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["quickMenuOpen", "onQuickMenuOpenChange", "_quickMenuOpen", "_onQuickMenuOpenChange"], t[0] = e) : e = t[0];
|
|
2325
2337
|
const {
|
|
@@ -2327,46 +2339,46 @@ const Vl = () => {
|
|
|
2327
2339
|
onQuickMenuOpenChange: n,
|
|
2328
2340
|
_quickMenuOpen: i,
|
|
2329
2341
|
_onQuickMenuOpenChange: l
|
|
2330
|
-
} =
|
|
2342
|
+
} = le(e), s = o ?? i, r = n ?? l;
|
|
2331
2343
|
let c;
|
|
2332
2344
|
return t[1] !== s || t[2] !== r ? (c = [s, r], t[1] = s, t[2] = r, t[3] = c) : c = t[3], c;
|
|
2333
|
-
},
|
|
2334
|
-
const e =
|
|
2345
|
+
}, Kl = N((t) => {
|
|
2346
|
+
const e = C(10), {
|
|
2335
2347
|
onItemClick: o
|
|
2336
|
-
} = t, [n] =
|
|
2348
|
+
} = t, [n] = Ft();
|
|
2337
2349
|
let i;
|
|
2338
2350
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = ["refitMenuOpen", "fontSizeMenuOpen", "selectedHighlight"], e[0] = i) : i = e[0];
|
|
2339
2351
|
const {
|
|
2340
2352
|
refitMenuOpen: l,
|
|
2341
2353
|
fontSizeMenuOpen: s,
|
|
2342
2354
|
selectedHighlight: r
|
|
2343
|
-
} =
|
|
2355
|
+
} = le(i), c = n && !l && !s && !r;
|
|
2344
2356
|
let d;
|
|
2345
|
-
e[1] !== o || e[2] !== c ? (d = /* @__PURE__ */ a(
|
|
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];
|
|
2346
2358
|
const u = n && !l && !s;
|
|
2347
2359
|
let f;
|
|
2348
|
-
e[4] !== o || e[5] !== u ? (f = /* @__PURE__ */ a(
|
|
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];
|
|
2349
2361
|
let h;
|
|
2350
|
-
return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(
|
|
2362
|
+
return e[7] !== d || e[8] !== f ? (h = /* @__PURE__ */ y(xe, { children: [
|
|
2351
2363
|
d,
|
|
2352
2364
|
f
|
|
2353
2365
|
] }), e[7] = d, e[8] = f, e[9] = h) : h = e[9], h;
|
|
2354
|
-
}),
|
|
2355
|
-
const t =
|
|
2366
|
+
}), Yl = () => {
|
|
2367
|
+
const t = C(3), [, e] = Ft(), o = j();
|
|
2356
2368
|
let n;
|
|
2357
|
-
t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(
|
|
2369
|
+
t[0] !== e || t[1] !== o ? (n = () => o?.gestures.gestures$.pipe(pt(Zl), wt(o.selection.selection$, o.selection.lastSelectionOnPointerdown$), At((l) => {
|
|
2358
2370
|
const [, s, r] = l;
|
|
2359
|
-
e(s || r ? !1 :
|
|
2360
|
-
})), t[0] = e, t[1] = o, t[2] = n) : n = t[2],
|
|
2371
|
+
e(s || r ? !1 : Ql);
|
|
2372
|
+
})), t[0] = e, t[1] = o, t[2] = n) : n = t[2], be(n);
|
|
2361
2373
|
};
|
|
2362
|
-
function
|
|
2374
|
+
function Zl(t) {
|
|
2363
2375
|
return t.type === "tap" && !t.handled;
|
|
2364
2376
|
}
|
|
2365
|
-
function
|
|
2377
|
+
function Ql(t) {
|
|
2366
2378
|
return !t;
|
|
2367
2379
|
}
|
|
2368
|
-
const
|
|
2369
|
-
const n =
|
|
2380
|
+
const Xl = de.forwardRef(function(e, o) {
|
|
2381
|
+
const n = C(21);
|
|
2370
2382
|
let i, l, s, r, c, d;
|
|
2371
2383
|
n[0] !== e ? ({
|
|
2372
2384
|
label: r,
|
|
@@ -2377,31 +2389,31 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2377
2389
|
...d
|
|
2378
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]);
|
|
2379
2391
|
let u;
|
|
2380
|
-
n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(
|
|
2392
|
+
n[7] !== r || n[8] !== c ? (u = r && /* @__PURE__ */ y(tt.Label, { children: [
|
|
2381
2393
|
r,
|
|
2382
|
-
/* @__PURE__ */ a(
|
|
2394
|
+
/* @__PURE__ */ a(tt.RequiredIndicator, { fallback: c })
|
|
2383
2395
|
] }), n[7] = r, n[8] = c, n[9] = u) : u = n[9];
|
|
2384
2396
|
let f;
|
|
2385
|
-
n[10] !== s ? (f = s && /* @__PURE__ */ a(
|
|
2397
|
+
n[10] !== s ? (f = s && /* @__PURE__ */ a(tt.HelperText, { children: s }), n[10] = s, n[11] = f) : f = n[11];
|
|
2386
2398
|
let h;
|
|
2387
|
-
n[12] !== l ? (h = l && /* @__PURE__ */ a(
|
|
2399
|
+
n[12] !== l ? (h = l && /* @__PURE__ */ a(tt.ErrorText, { children: l }), n[12] = l, n[13] = h) : h = n[13];
|
|
2388
2400
|
let m;
|
|
2389
|
-
return n[14] !== i || n[15] !== o || n[16] !== d || n[17] !== u || n[18] !== f || n[19] !== h ? (m = /* @__PURE__ */ y(
|
|
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: [
|
|
2390
2402
|
u,
|
|
2391
2403
|
i,
|
|
2392
2404
|
f,
|
|
2393
2405
|
h
|
|
2394
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;
|
|
2395
|
-
}),
|
|
2396
|
-
const t =
|
|
2407
|
+
}), Jl = N(() => {
|
|
2408
|
+
const t = C(39);
|
|
2397
2409
|
let e;
|
|
2398
2410
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["refitMenuOpen", "onRefitMenuOpenChange"], t[0] = e) : e = t[0];
|
|
2399
2411
|
const {
|
|
2400
2412
|
refitMenuOpen: o,
|
|
2401
2413
|
onRefitMenuOpenChange: n
|
|
2402
|
-
} =
|
|
2414
|
+
} = le(e), i = j();
|
|
2403
2415
|
let l;
|
|
2404
|
-
t[1] !== i ? (l =
|
|
2416
|
+
t[1] !== i ? (l = mn(i) ? i : void 0, t[1] = i, t[2] = l) : l = t[2];
|
|
2405
2417
|
const s = l;
|
|
2406
2418
|
let r;
|
|
2407
2419
|
t[3] !== s?.refit.settings$ ? (r = () => s?.refit.settings$, t[3] = s?.refit.settings$, t[4] = r) : r = t[4];
|
|
@@ -2413,9 +2425,9 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2413
2425
|
let u;
|
|
2414
2426
|
t[7] !== n ? (u = ($) => n($.open), t[7] = n, t[8] = u) : u = t[8];
|
|
2415
2427
|
let f;
|
|
2416
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ a(
|
|
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];
|
|
2417
2429
|
let h;
|
|
2418
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ a(
|
|
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];
|
|
2419
2431
|
let m;
|
|
2420
2432
|
t[11] !== s?.refit ? (m = ($) => {
|
|
2421
2433
|
const O = $.value;
|
|
@@ -2426,21 +2438,21 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2426
2438
|
}, t[11] = s?.refit, t[12] = m) : m = t[12];
|
|
2427
2439
|
const g = d?.viewportFit ?? "fit";
|
|
2428
2440
|
let p;
|
|
2429
|
-
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(
|
|
2441
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ a(it, { value: "desktop", children: "Desktop" }), t[13] = p) : p = t[13];
|
|
2430
2442
|
let b;
|
|
2431
|
-
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ a(
|
|
2432
|
-
let S;
|
|
2433
|
-
t[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ a(ot, { 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];
|
|
2434
2444
|
let _;
|
|
2435
|
-
t[
|
|
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: [
|
|
2436
2448
|
p,
|
|
2437
2449
|
b,
|
|
2438
|
-
|
|
2439
|
-
/* @__PURE__ */ a(
|
|
2440
|
-
] }), t[16] =
|
|
2450
|
+
_,
|
|
2451
|
+
/* @__PURE__ */ a(it, { value: "custom", children: "Custom" })
|
|
2452
|
+
] }), t[16] = S) : S = t[16];
|
|
2441
2453
|
let v;
|
|
2442
|
-
t[17] !== m || t[18] !== g ? (v = /* @__PURE__ */ a(
|
|
2443
|
-
const
|
|
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;
|
|
2444
2456
|
let I;
|
|
2445
2457
|
t[20] !== T ? (I = [T], t[20] = T, t[21] = I) : I = t[21];
|
|
2446
2458
|
let k;
|
|
@@ -2451,28 +2463,28 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2451
2463
|
});
|
|
2452
2464
|
}, t[22] = s?.refit, t[23] = k) : k = t[23];
|
|
2453
2465
|
let R;
|
|
2454
|
-
t[24] !==
|
|
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];
|
|
2455
2467
|
let P;
|
|
2456
|
-
t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(
|
|
2468
|
+
t[28] !== v || t[29] !== R ? (P = /* @__PURE__ */ a(Oe, { children: /* @__PURE__ */ y(ye.Root, { children: [
|
|
2457
2469
|
h,
|
|
2458
|
-
/* @__PURE__ */ y(
|
|
2470
|
+
/* @__PURE__ */ y(ye.Content, { children: [
|
|
2459
2471
|
v,
|
|
2460
2472
|
R
|
|
2461
2473
|
] })
|
|
2462
2474
|
] }) }), t[28] = v, t[29] = R, t[30] = P) : P = t[30];
|
|
2463
2475
|
let E, M;
|
|
2464
|
-
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ a(
|
|
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]);
|
|
2465
2477
|
let A;
|
|
2466
|
-
t[33] !== P ? (A = /* @__PURE__ */ y(
|
|
2478
|
+
t[33] !== P ? (A = /* @__PURE__ */ y(Te, { children: [
|
|
2467
2479
|
f,
|
|
2468
2480
|
P,
|
|
2469
2481
|
E,
|
|
2470
2482
|
M
|
|
2471
2483
|
] }), t[33] = P, t[34] = A) : A = t[34];
|
|
2472
2484
|
let w;
|
|
2473
|
-
return t[35] !== o || t[36] !== A || t[37] !== u ? (w = /* @__PURE__ */ a(
|
|
2474
|
-
}),
|
|
2475
|
-
const e =
|
|
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), {
|
|
2476
2488
|
contextText: o,
|
|
2477
2489
|
startOffset: n,
|
|
2478
2490
|
text: i,
|
|
@@ -2495,44 +2507,44 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2495
2507
|
e[8] !== u || e[9] !== s ? (b = (R) => {
|
|
2496
2508
|
R.preventDefault(), s(u);
|
|
2497
2509
|
}, e[8] = u, e[9] = s, e[10] = b) : b = e[10];
|
|
2498
|
-
let S;
|
|
2499
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
2500
|
-
display: "block"
|
|
2501
|
-
}, e[11] = S) : S = e[11];
|
|
2502
2510
|
let _;
|
|
2503
|
-
e[
|
|
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];
|
|
2504
2516
|
let v;
|
|
2505
|
-
e[14] !== g || e[15] !== h || e[16] !==
|
|
2517
|
+
e[14] !== g || e[15] !== h || e[16] !== S ? (v = /* @__PURE__ */ y(U, { lineClamp: 1, as: "cite", style: _, children: [
|
|
2506
2518
|
'"',
|
|
2507
2519
|
h,
|
|
2508
|
-
|
|
2520
|
+
S,
|
|
2509
2521
|
g,
|
|
2510
2522
|
'"'
|
|
2511
|
-
] }), e[14] = g, e[15] = h, e[16] =
|
|
2512
|
-
let
|
|
2513
|
-
e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
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 = {
|
|
2514
2526
|
textDecoration: "none"
|
|
2515
|
-
}, e[18] =
|
|
2527
|
+
}, e[18] = x) : x = e[18];
|
|
2516
2528
|
const T = `Book page: ${r !== void 0 ? r + 1 : "unknown (not loaded)"}`;
|
|
2517
2529
|
let I;
|
|
2518
|
-
e[19] !== T ? (I = /* @__PURE__ */ a(U, { fontSize: "sm", color: "gray.500", style:
|
|
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];
|
|
2519
2531
|
let k;
|
|
2520
|
-
return e[21] !== u || e[22] !== v || e[23] !== I || e[24] !== b ? (k = /* @__PURE__ */ y(
|
|
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: [
|
|
2521
2533
|
v,
|
|
2522
2534
|
I
|
|
2523
2535
|
] }), e[21] = u, e[22] = v, e[23] = I, e[24] = b, e[25] = k) : k = e[25], k;
|
|
2524
|
-
}),
|
|
2525
|
-
const t =
|
|
2536
|
+
}), ts = 500, ns = () => {
|
|
2537
|
+
const t = C(13), e = lt(os), {
|
|
2526
2538
|
data: o
|
|
2527
2539
|
} = H(e), n = j();
|
|
2528
2540
|
let i;
|
|
2529
|
-
t[0] !== n ? (i =
|
|
2541
|
+
t[0] !== n ? (i = un(n) ? n : void 0, t[0] = n, t[1] = i) : i = t[1];
|
|
2530
2542
|
const l = i;
|
|
2531
2543
|
let s, r;
|
|
2532
|
-
t[2] !== l || t[3] !== e ? (s = () => e.pipe(
|
|
2544
|
+
t[2] !== l || t[3] !== e ? (s = () => e.pipe(Se(), Ce((m) => m === "" || !l ? bt(void 0) : on(bt({
|
|
2533
2545
|
type: "start",
|
|
2534
2546
|
data: void 0
|
|
2535
|
-
}),
|
|
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]);
|
|
2536
2548
|
const {
|
|
2537
2549
|
data: c
|
|
2538
2550
|
} = H(s, r);
|
|
@@ -2547,24 +2559,24 @@ const Kl = de.forwardRef(function(e, o) {
|
|
|
2547
2559
|
data: f
|
|
2548
2560
|
}, t[8] = o, t[9] = d, t[10] = u, t[11] = f, t[12] = h) : h = t[12], h;
|
|
2549
2561
|
};
|
|
2550
|
-
function
|
|
2551
|
-
return new
|
|
2562
|
+
function os() {
|
|
2563
|
+
return new sn("");
|
|
2552
2564
|
}
|
|
2553
|
-
function
|
|
2565
|
+
function is(t) {
|
|
2554
2566
|
return {
|
|
2555
2567
|
type: "end",
|
|
2556
2568
|
data: t
|
|
2557
2569
|
};
|
|
2558
2570
|
}
|
|
2559
|
-
const
|
|
2560
|
-
const e =
|
|
2571
|
+
const ls = N((t) => {
|
|
2572
|
+
const e = C(31), {
|
|
2561
2573
|
onNavigate: o
|
|
2562
2574
|
} = t, n = j(), {
|
|
2563
2575
|
value: i,
|
|
2564
2576
|
setValue: l,
|
|
2565
2577
|
status: s,
|
|
2566
2578
|
data: r
|
|
2567
|
-
} =
|
|
2579
|
+
} = ns();
|
|
2568
2580
|
let c;
|
|
2569
2581
|
e[0] !== l ? (c = (I) => {
|
|
2570
2582
|
l(I.target.value);
|
|
@@ -2583,37 +2595,37 @@ const ts = N((t) => {
|
|
|
2583
2595
|
data: g
|
|
2584
2596
|
} = H(h, m);
|
|
2585
2597
|
let p;
|
|
2586
|
-
e[10] !== d || e[11] !== i ? (p = /* @__PURE__ */ a(
|
|
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];
|
|
2587
2599
|
let b;
|
|
2588
2600
|
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
2589
2601
|
overflow: "hidden",
|
|
2590
2602
|
overflowY: "auto"
|
|
2591
2603
|
}, e[13] = b) : b = e[13];
|
|
2592
|
-
let S;
|
|
2593
|
-
e[14] !== s ? (S = s === "start" && /* @__PURE__ */ a(U, { children: "Searching ..." }), e[14] = s, e[15] = S) : S = e[15];
|
|
2594
2604
|
let _;
|
|
2595
|
-
e[
|
|
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];
|
|
2596
2608
|
let v;
|
|
2597
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: [
|
|
2598
2610
|
/* @__PURE__ */ y(U, { fontSize: "md", children: [
|
|
2599
2611
|
r?.length,
|
|
2600
2612
|
" result(s)"
|
|
2601
2613
|
] }),
|
|
2602
|
-
/* @__PURE__ */ a(ee, { gap: 0, children: g?.map((I, k) => /* @__PURE__ */ a(
|
|
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)) })
|
|
2603
2615
|
] }), e[18] = g, e[19] = r?.length, e[20] = f, e[21] = i, e[22] = s, e[23] = v) : v = e[23];
|
|
2604
|
-
let
|
|
2605
|
-
e[24] !==
|
|
2606
|
-
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: [
|
|
2607
2618
|
_,
|
|
2619
|
+
S,
|
|
2608
2620
|
v
|
|
2609
|
-
] }), e[24] =
|
|
2621
|
+
] }), e[24] = _, e[25] = S, e[26] = v, e[27] = x) : x = e[27];
|
|
2610
2622
|
let T;
|
|
2611
|
-
return e[28] !==
|
|
2623
|
+
return e[28] !== x || e[29] !== p ? (T = /* @__PURE__ */ y(ee, { flex: 1, height: "100%", gap: 2, children: [
|
|
2612
2624
|
p,
|
|
2613
|
-
|
|
2614
|
-
] }), e[28] =
|
|
2615
|
-
}),
|
|
2616
|
-
const e =
|
|
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), {
|
|
2617
2629
|
open: o,
|
|
2618
2630
|
setOpen: n,
|
|
2619
2631
|
onNavigate: i
|
|
@@ -2626,22 +2638,22 @@ const ts = N((t) => {
|
|
|
2626
2638
|
md: "lg"
|
|
2627
2639
|
}, e[2] = s) : s = e[2];
|
|
2628
2640
|
let r;
|
|
2629
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
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];
|
|
2630
2642
|
let c;
|
|
2631
|
-
e[4] !== i ? (c = /* @__PURE__ */ a(
|
|
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];
|
|
2632
2644
|
let d, u;
|
|
2633
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(
|
|
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]);
|
|
2634
2646
|
let f;
|
|
2635
|
-
e[8] !== c ? (f = /* @__PURE__ */ y(
|
|
2647
|
+
e[8] !== c ? (f = /* @__PURE__ */ y(Te, { height: "100%", children: [
|
|
2636
2648
|
r,
|
|
2637
2649
|
c,
|
|
2638
2650
|
d,
|
|
2639
2651
|
u
|
|
2640
2652
|
] }), e[8] = c, e[9] = f) : f = e[9];
|
|
2641
2653
|
let h;
|
|
2642
|
-
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(
|
|
2643
|
-
}),
|
|
2644
|
-
const e =
|
|
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), {
|
|
2645
2657
|
onNavigate: o
|
|
2646
2658
|
} = t, n = j(), {
|
|
2647
2659
|
data: i
|
|
@@ -2649,7 +2661,7 @@ const ts = N((t) => {
|
|
|
2649
2661
|
manifest: l
|
|
2650
2662
|
} = i === void 0 ? {} : i, {
|
|
2651
2663
|
nav: s
|
|
2652
|
-
} = l ?? {}, r =
|
|
2664
|
+
} = l ?? {}, r = et();
|
|
2653
2665
|
s?.toc;
|
|
2654
2666
|
const c = r?.beginAbsolutePageIndex;
|
|
2655
2667
|
let d;
|
|
@@ -2659,26 +2671,26 @@ const ts = N((t) => {
|
|
|
2659
2671
|
e[0] = r?.beginChapterInfo, e[1] = d;
|
|
2660
2672
|
} else
|
|
2661
2673
|
d = e[1];
|
|
2662
|
-
const u = (
|
|
2663
|
-
/* @__PURE__ */ a(
|
|
2674
|
+
const u = (S, v, x) => /* @__PURE__ */ y(On.Fragment, { children: [
|
|
2675
|
+
/* @__PURE__ */ a(pe.Item, { pl: 4 * (x + 1), style: {
|
|
2664
2676
|
display: "flex",
|
|
2665
2677
|
alignItems: "center"
|
|
2666
|
-
}, children: /* @__PURE__ */ y(
|
|
2667
|
-
o(), n?.navigation.goToUrl(
|
|
2678
|
+
}, children: /* @__PURE__ */ y(Ot, { onClick: () => {
|
|
2679
|
+
o(), n?.navigation.goToUrl(S.href);
|
|
2668
2680
|
}, href: "#", children: [
|
|
2669
|
-
d?.path ===
|
|
2670
|
-
d?.path !==
|
|
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, {}) }),
|
|
2671
2683
|
/* @__PURE__ */ y(ee, { gap: 0, children: [
|
|
2672
|
-
/* @__PURE__ */ a(U, { fontSize: "md", children:
|
|
2673
|
-
d?.path ===
|
|
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}` })
|
|
2674
2686
|
] })
|
|
2675
2687
|
] }) }),
|
|
2676
|
-
|
|
2677
|
-
] }, v), f =
|
|
2678
|
-
let
|
|
2679
|
-
return e[2] !== f.Root || e[3] !== b ? (
|
|
2680
|
-
}),
|
|
2681
|
-
const e =
|
|
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), {
|
|
2682
2694
|
open: o,
|
|
2683
2695
|
setOpen: n,
|
|
2684
2696
|
onNavigate: i
|
|
@@ -2691,49 +2703,49 @@ const ts = N((t) => {
|
|
|
2691
2703
|
md: "lg"
|
|
2692
2704
|
}, e[2] = s) : s = e[2];
|
|
2693
2705
|
let r;
|
|
2694
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ a(
|
|
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];
|
|
2695
2707
|
let c;
|
|
2696
|
-
e[4] !== i ? (c = /* @__PURE__ */ a(
|
|
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];
|
|
2697
2709
|
let d, u;
|
|
2698
|
-
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ a(
|
|
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]);
|
|
2699
2711
|
let f;
|
|
2700
|
-
e[8] !== c ? (f = /* @__PURE__ */ y(
|
|
2712
|
+
e[8] !== c ? (f = /* @__PURE__ */ y(Te, { children: [
|
|
2701
2713
|
r,
|
|
2702
2714
|
c,
|
|
2703
2715
|
d,
|
|
2704
2716
|
u
|
|
2705
2717
|
] }), e[8] = c, e[9] = f) : f = e[9];
|
|
2706
2718
|
let h;
|
|
2707
|
-
return e[10] !== o || e[11] !== l || e[12] !== f ? (h = /* @__PURE__ */ a(
|
|
2708
|
-
}),
|
|
2709
|
-
const t =
|
|
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();
|
|
2710
2722
|
let o;
|
|
2711
2723
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = ["zoomMaxScale"], t[0] = o) : o = t[0];
|
|
2712
2724
|
const {
|
|
2713
2725
|
zoomMaxScale: n
|
|
2714
|
-
} =
|
|
2726
|
+
} = le(o);
|
|
2715
2727
|
let i;
|
|
2716
2728
|
t[1] !== e?.gestures.settings || t[2] !== n ? (i = function() {
|
|
2717
2729
|
e?.gestures.settings.update({
|
|
2718
|
-
zoomMaxScale: n ??
|
|
2730
|
+
zoomMaxScale: n ?? cn
|
|
2719
2731
|
});
|
|
2720
2732
|
}, t[1] = e?.gestures.settings, t[2] = n, t[3] = i) : i = t[3];
|
|
2721
2733
|
let l;
|
|
2722
|
-
t[4] !== e || t[5] !== n ? (l = [e, n], t[4] = e, t[5] = n, t[6] = l) : l = t[6],
|
|
2723
|
-
},
|
|
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) => {
|
|
2724
2736
|
if (t > e && t < e + n)
|
|
2725
2737
|
return e + n;
|
|
2726
2738
|
const i = Math.min(Math.max(t, e), o), l = Math.round((i - e) / n) * n + e;
|
|
2727
2739
|
return Math.round(l * 100) / 100;
|
|
2728
|
-
},
|
|
2729
|
-
const t =
|
|
2740
|
+
}, fs = N(() => {
|
|
2741
|
+
const t = C(23);
|
|
2730
2742
|
let e;
|
|
2731
2743
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = ["zoomMaxScale"], t[0] = e) : e = t[0];
|
|
2732
2744
|
const {
|
|
2733
2745
|
zoomMaxScale: o
|
|
2734
|
-
} =
|
|
2746
|
+
} = le(e), n = o === void 0 ? cn : o, i = j();
|
|
2735
2747
|
let l;
|
|
2736
|
-
t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(
|
|
2748
|
+
t[1] !== i?.zoom.state$ ? (l = () => i?.zoom.state$.pipe(J(us), nn(100, lo, {
|
|
2737
2749
|
leading: !0,
|
|
2738
2750
|
trailing: !0
|
|
2739
2751
|
})), t[1] = i?.zoom.state$, t[2] = l) : l = t[2];
|
|
@@ -2743,48 +2755,48 @@ const ts = N((t) => {
|
|
|
2743
2755
|
data: r
|
|
2744
2756
|
} = H(l, s), c = r === void 0 ? 1 : r;
|
|
2745
2757
|
let d;
|
|
2746
|
-
t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(
|
|
2758
|
+
t[5] !== i?.zoom.state$ ? (d = () => i?.zoom.state$.pipe(J(hs)), t[5] = i?.zoom.state$, t[6] = d) : d = t[6];
|
|
2747
2759
|
let u;
|
|
2748
2760
|
t[7] !== i ? (u = [i], t[7] = i, t[8] = u) : u = t[8];
|
|
2749
2761
|
const {
|
|
2750
2762
|
data: f
|
|
2751
2763
|
} = H(d, u), h = f === void 0 ? !1 : f;
|
|
2752
2764
|
let m;
|
|
2753
|
-
t[9] !== n || t[10] !== c ? (m =
|
|
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];
|
|
2754
2766
|
const g = m, p = h && c > 1;
|
|
2755
2767
|
let b;
|
|
2756
2768
|
t[12] !== g ? (b = [g], t[12] = g, t[13] = b) : b = t[13];
|
|
2757
|
-
let
|
|
2758
|
-
t[14] !== i?.zoom ? (
|
|
2759
|
-
const T =
|
|
2769
|
+
let _;
|
|
2770
|
+
t[14] !== i?.zoom ? (_ = (x) => {
|
|
2771
|
+
const T = x.value?.[0] ?? 1;
|
|
2760
2772
|
T === 1 ? i?.zoom.exit() : i?.zoom.scaleAt(T, {
|
|
2761
2773
|
constrain: "within-viewport"
|
|
2762
2774
|
});
|
|
2763
|
-
}, t[14] = i?.zoom, t[15] =
|
|
2764
|
-
let
|
|
2765
|
-
t[16] !== b || t[17] !==
|
|
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];
|
|
2766
2778
|
let v;
|
|
2767
|
-
return t[20] !==
|
|
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;
|
|
2768
2780
|
});
|
|
2769
|
-
function
|
|
2781
|
+
function us(t) {
|
|
2770
2782
|
return t.currentScale;
|
|
2771
2783
|
}
|
|
2772
|
-
function
|
|
2784
|
+
function hs(t) {
|
|
2773
2785
|
return t.isZooming;
|
|
2774
2786
|
}
|
|
2775
|
-
const
|
|
2787
|
+
const ms = {
|
|
2776
2788
|
_open: "fade-in",
|
|
2777
2789
|
_closed: "fade-out"
|
|
2778
|
-
},
|
|
2779
|
-
const t =
|
|
2780
|
-
|
|
2790
|
+
}, gs = N(() => (ni(), null)), ps = N(() => {
|
|
2791
|
+
const t = C(1);
|
|
2792
|
+
cs(), Il(), kl(), Yl(), oi(), ii();
|
|
2781
2793
|
let e;
|
|
2782
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(
|
|
2783
|
-
/* @__PURE__ */ a(
|
|
2784
|
-
/* @__PURE__ */ a(
|
|
2794
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ y(xe, { children: [
|
|
2795
|
+
/* @__PURE__ */ a(Ui, {}),
|
|
2796
|
+
/* @__PURE__ */ a(gs, {})
|
|
2785
2797
|
] }), t[0] = e) : e = t[0], e;
|
|
2786
|
-
}),
|
|
2787
|
-
const e =
|
|
2798
|
+
}), bs = N((t) => {
|
|
2799
|
+
const e = C(47);
|
|
2788
2800
|
let o, n;
|
|
2789
2801
|
e[0] !== t ? ({
|
|
2790
2802
|
children: o,
|
|
@@ -2795,50 +2807,50 @@ const ds = {
|
|
|
2795
2807
|
const {
|
|
2796
2808
|
enableFloatingTime: l,
|
|
2797
2809
|
onItemClick: s
|
|
2798
|
-
} =
|
|
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();
|
|
2799
2811
|
let v;
|
|
2800
|
-
e[4] !==
|
|
2801
|
-
c(!1), u(!1), h(!1), g(void 0),
|
|
2802
|
-
}, e[4] =
|
|
2803
|
-
const
|
|
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;
|
|
2804
2816
|
let T;
|
|
2805
2817
|
e[6] !== s ? (T = (B) => {
|
|
2806
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);
|
|
2807
2819
|
}, e[6] = s, e[7] = T) : T = e[7];
|
|
2808
2820
|
const I = T;
|
|
2809
2821
|
let k;
|
|
2810
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(
|
|
2822
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(ps, {}), e[8] = k) : k = e[8];
|
|
2811
2823
|
let R, P, E;
|
|
2812
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ a(
|
|
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]);
|
|
2813
2825
|
let M;
|
|
2814
|
-
e[12] !== p ? (M = /* @__PURE__ */ a(
|
|
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[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(
|
|
2828
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ a(Jl, {}), e[14] = A) : A = e[14];
|
|
2817
2829
|
let w;
|
|
2818
|
-
e[15] !== I ? (w = /* @__PURE__ */ a(
|
|
2830
|
+
e[15] !== I ? (w = /* @__PURE__ */ a(Kl, { onItemClick: I }), e[15] = I, e[16] = w) : w = e[16];
|
|
2819
2831
|
let $, O, z, D;
|
|
2820
|
-
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = /* @__PURE__ */ a(
|
|
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]);
|
|
2821
2833
|
let F;
|
|
2822
|
-
e[21] !== d ? (F = /* @__PURE__ */ a(
|
|
2834
|
+
e[21] !== d ? (F = /* @__PURE__ */ a(nl, { open: d, setOpen: u }), e[21] = d, e[22] = F) : F = e[22];
|
|
2823
2835
|
let Q;
|
|
2824
|
-
e[23] !== r || e[24] !==
|
|
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];
|
|
2825
2837
|
let V;
|
|
2826
|
-
e[26] !== f || e[27] !==
|
|
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
2840
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = (B) => g(B ? "annotations" : void 0), e[29] = W) : W = e[29];
|
|
2829
2841
|
let G;
|
|
2830
|
-
e[30] !== m || e[31] !==
|
|
2831
|
-
const q = l ||
|
|
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 || _;
|
|
2832
2844
|
let Y;
|
|
2833
|
-
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(
|
|
2845
|
+
e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ a(cl, {}), e[33] = Y) : Y = e[33];
|
|
2834
2846
|
let K;
|
|
2835
|
-
e[34] !== q ? (K = /* @__PURE__ */ a(
|
|
2847
|
+
e[34] !== q ? (K = /* @__PURE__ */ a(Qe, { present: q, animationName: ms, animationDuration: "slow", children: Y }), e[34] = q, e[35] = K) : K = e[35];
|
|
2836
2848
|
let Z;
|
|
2837
|
-
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(
|
|
2849
|
+
e[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = /* @__PURE__ */ a(Oi, {}), e[36] = Z) : Z = e[36];
|
|
2838
2850
|
let X;
|
|
2839
|
-
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(
|
|
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: [
|
|
2840
2852
|
k,
|
|
2841
|
-
/* @__PURE__ */ y(
|
|
2853
|
+
/* @__PURE__ */ y(oe, { position: "absolute", top: 0, left: 0, height: "100%", width: "100%", overflow: "hidden", "data-prose-react-reader": !0, ...n, children: [
|
|
2842
2854
|
o,
|
|
2843
2855
|
R,
|
|
2844
2856
|
P,
|
|
@@ -2858,8 +2870,8 @@ const ds = {
|
|
|
2858
2870
|
Z
|
|
2859
2871
|
] })
|
|
2860
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;
|
|
2861
|
-
}),
|
|
2862
|
-
const e =
|
|
2873
|
+
}), Ls = N((t) => {
|
|
2874
|
+
const e = C(16);
|
|
2863
2875
|
let o, n, i;
|
|
2864
2876
|
e[0] !== t ? ({
|
|
2865
2877
|
children: o,
|
|
@@ -2880,13 +2892,13 @@ const ds = {
|
|
|
2880
2892
|
e[8] !== c ? (d = c === void 0 ? {} : c, e[8] = c, e[9] = d) : d = e[9];
|
|
2881
2893
|
const u = d;
|
|
2882
2894
|
let f;
|
|
2883
|
-
e[10] !== o || e[11] !== u ? (f = /* @__PURE__ */ a(
|
|
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];
|
|
2884
2896
|
let h;
|
|
2885
|
-
return e[13] !== n || e[14] !== f ? (h = /* @__PURE__ */ a(
|
|
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;
|
|
2886
2898
|
});
|
|
2887
2899
|
export {
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2900
|
+
$o as BOOKMARK_AREA_DATA_ATTRIBUTE,
|
|
2901
|
+
cn as MAX_ZOOM_SCALE,
|
|
2902
|
+
Ls as ReactReader
|
|
2891
2903
|
};
|
|
2892
2904
|
//# sourceMappingURL=index.js.map
|