@pdf-viewer/react 1.9.2-rc.5 → 1.9.2

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.
Files changed (54) hide show
  1. package/dist/{ToolbarLayout.module-edecdc4e.js → ToolbarLayout.module-1143bd56.js} +585 -584
  2. package/dist/assets/ToolbarLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  19. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  20. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  21. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  22. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  24. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  25. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  31. package/dist/components/page/AnnotationLayer.js +1 -1
  32. package/dist/components/page/CanvasLayer.js +1 -1
  33. package/dist/components/page/DualPage.js +1 -1
  34. package/dist/components/page/RPPage.js +1 -1
  35. package/dist/components/page/SinglePage.js +1 -1
  36. package/dist/components/page/TextHighlightLayer.js +1 -1
  37. package/dist/components/page/TextLayer.js +1 -1
  38. package/dist/components/ui/LoadingIndicator.js +1 -1
  39. package/dist/contexts/PaginationContext.js +1 -1
  40. package/dist/contexts/PrintContext.js +1 -1
  41. package/dist/contexts/RenderQueueProvider.js +1 -1
  42. package/dist/contexts/SearchContext.js +1 -1
  43. package/dist/contexts/ThumbnailsContext.js +1 -1
  44. package/dist/main.js +1 -1
  45. package/dist/utils/hooks/useFileDownload.js +1 -1
  46. package/dist/utils/hooks/useLicense.js +1 -1
  47. package/dist/utils/hooks/usePaginate.js +1 -1
  48. package/dist/utils/hooks/usePresentPage.js +1 -1
  49. package/dist/utils/hooks/usePrint.js +1 -1
  50. package/dist/utils/hooks/useScrollToPage.js +1 -1
  51. package/dist/utils/hooks/useSearch.js +1 -1
  52. package/dist/utils/hooks/useThumbnail.js +1 -1
  53. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { jsx as a, Fragment as pe, jsxs as H } from "react/jsx-runtime";
1
+ import { jsx as s, Fragment as pe, jsxs as H } from "react/jsx-runtime";
2
2
  import * as X from "react";
3
3
  import { useRef as k, useEffect as D, useCallback as E, useState as q, useMemo as W, createContext as He, useContext as $e, useImperativeHandle as tn, createElement as Ve, PureComponent as to, Component as no, memo as nn, forwardRef as oo } from "react";
4
4
  import { ChevronUpIcon as Ze } from "./components/icons/ChevronUpIcon.js";
@@ -7,8 +7,8 @@ import { UIInput as on } from "./components/ui/Input.js";
7
7
  import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Nt, SelectionMode as ro, ErrorType as io } from "./utils/types.js";
8
8
  import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
9
9
  import { useDocumentContext as oe } from "./contexts/RPDocumentContext.js";
10
- import { useDocumentPasswordContext as ao } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as so } from "./contexts/DarkModeContext.js";
10
+ import { useDocumentPasswordContext as so } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as ao } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
13
  import { useLayerContext as co } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as wt } from "./contexts/ZoomContext.js";
@@ -27,23 +27,23 @@ import { useLocalizationContext as he } from "./contexts/LocalizationContext.js"
27
27
  import { useHighlightContext as vo } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
29
  import { useDownloadContext as wo } from "./contexts/DownloadContext.js";
30
- import { useSmoothScrollContext as an } from "./contexts/SmoothScrollContext.js";
30
+ import { useSmoothScrollContext as sn } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as Je } from "./contexts/PagesRotateContext.js";
33
33
  import { Queue as _o } from "./utils/Queue.js";
34
34
  import { renderPage as bo } from "./utils/renderPage.js";
35
35
  import { useGlobalCurrentPage as To } from "./contexts/GlobalCurrentPage.js";
36
- import { useLoaderContext as sn } from "./contexts/LoaderContext.js";
36
+ import { useLoaderContext as an } from "./contexts/LoaderContext.js";
37
37
  import { useToolComponentContext as Ne } from "./contexts/ToolComponentContext.js";
38
38
  import { useIconToolContext as be } from "./contexts/IconToolContext.js";
39
39
  import { useOtherToolContext as Co, OtherToolProvider as Po } from "./contexts/OtherToolContext.js";
40
40
  import "./components/RPConfig.js";
41
- import { ThumbnailIcon as xo } from "./components/icons/Thumbnail.js";
42
- import { c as se } from "./clsx-0c6e471a.js";
41
+ import { ThumbnailIcon as yo } from "./components/icons/Thumbnail.js";
42
+ import { c as ce } from "./clsx-0c6e471a.js";
43
43
  import { LoaderIcon as _t } from "./components/icons/LoaderIcon.js";
44
- import { Container as yo } from "./components/layout/Container.js";
45
- import { useViewportContext as Oe, ViewportProvider as So } from "./contexts/ViewportContext.js";
46
- import { useToolbarComponentContext as Te, ToolbarComponentProvider as Io } from "./contexts/ToolbarComponentContext.js";
44
+ import { Container as So } from "./components/layout/Container.js";
45
+ import { useViewportContext as Oe, ViewportProvider as Io } from "./contexts/ViewportContext.js";
46
+ import { useToolbarComponentContext as Te, ToolbarComponentProvider as xo } from "./contexts/ToolbarComponentContext.js";
47
47
  import { RPSplitter as Ro } from "./components/layout/sidebar/RPSplitter.js";
48
48
  import { WrapperLayout as Lo } from "./components/layout/WrapperLayout.js";
49
49
  import { c as we, L as Eo } from "./LayoutWrapper-e99afee2.js";
@@ -77,37 +77,37 @@ import nr from "./components/ui/PasswordModal.js";
77
77
  import { getPositionFromPage as or, getPageFromPosition as rr } from "./utils/calculatePage.js";
78
78
  import { getScrollDistance as ze } from "./utils/getScrollDistance.js";
79
79
  import { getWordPositionInPage as ir } from "./utils/getWordPositionInPage.js";
80
- import { getThumbnailViewport as ar } from "./utils/getThumbnailViewport.js";
80
+ import { getThumbnailViewport as sr } from "./utils/getThumbnailViewport.js";
81
81
  import { smoothScrollTo as it } from "./utils/smoothScrollTo.js";
82
- import { appConsole as sr } from "./utils/appConsole.js";
82
+ import { appConsole as ar } from "./utils/appConsole.js";
83
83
  import { FileUploadTool as dn } from "./components/layout/toolbar/FileUploadTool.js";
84
84
  import { DarkModeTool as cr } from "./components/layout/toolbar/DarkModeTool.js";
85
85
  import { ThreeDotIcon as lr } from "./components/icons/ThreeDotIcon.js";
86
86
  import { c as dr, u as Tt, P as Ge, b as We, d as Ct, i as ur, k as pr, a as hr } from "./index-48ca3f30.js";
87
- import { D as fr, d as at } from "./floating-ui.react-dom-88a86594.js";
87
+ import { D as fr, d as st } from "./floating-ui.react-dom-88a86594.js";
88
88
  import { a as mr, h as gr, u as vr, F as wr, b as _r, G as un } from "./index-4ba3ab9a.js";
89
89
  import { CloseIcon as br } from "./components/icons/CloseIcon.js";
90
90
  import { DocumentProperties as Tr } from "./components/layout/toolbar/DocumentProperties.js";
91
91
  import { ViewModeTool as Cr } from "./components/layout/toolbar/ViewModeTool.js";
92
92
  import { ScrollModeTool as Pr } from "./components/layout/toolbar/ScrollModeTool.js";
93
- import { FileDownloadDefaultIcon as xr } from "./components/icons/FileDownloadDefaultIcon.js";
94
- import { PrintDefaultTool as yr } from "./components/icons/PrintDefaultIcon.js";
93
+ import { FileDownloadDefaultIcon as yr } from "./components/icons/FileDownloadDefaultIcon.js";
94
+ import { PrintDefaultTool as Sr } from "./components/icons/PrintDefaultIcon.js";
95
95
  import { FullScreenTool as pn } from "./components/layout/toolbar/FullScreenTool.js";
96
96
  import { GoToDownIcon as hn } from "./components/icons/GoToDownIcon.js";
97
- import { SelectionModeTool as Sr } from "./components/layout/toolbar/SelectionModeTool.js";
98
- import { ZoomTool as Ir } from "./components/layout/toolbar/ZoomTool.js";
97
+ import { SelectionModeTool as Ir } from "./components/layout/toolbar/SelectionModeTool.js";
98
+ import { ZoomTool as xr } from "./components/layout/toolbar/ZoomTool.js";
99
99
  import { SearchIcon as fn } from "./components/icons/SearchIcon.js";
100
100
  import { ClearIcon as Rr } from "./components/icons/ClearIcon.js";
101
101
  import { InfoIcon as Mt } from "./components/icons/InfoIcon.js";
102
102
  import './assets/ToolbarLayout.css';const mn = () => {
103
- const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Ye(), { setFocusedPage: i } = le(), c = k(), { columnCount: l } = rn(), { widths: d, heights: f } = qe(), m = k(e), P = k(t), p = k(l), { targetScrollPage: v } = an();
103
+ const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: r, pageScrollElementRef: o } = Ye(), { setFocusedPage: i } = de(), c = k(), { columnCount: l } = rn(), { widths: d, heights: f } = qe(), m = k(e), P = k(t), p = k(l), { targetScrollPage: v } = sn();
104
104
  D(() => {
105
105
  n != null && n.scrollToItem && (c.current = n);
106
106
  }, [n]), D(() => {
107
107
  m.current = e, P.current = t;
108
108
  }, [e, t]);
109
109
  const b = E(
110
- (T, x) => {
110
+ (T, y) => {
111
111
  if (!o)
112
112
  return;
113
113
  const g = Math.ceil(T / 2) * 2 - 1;
@@ -117,7 +117,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
117
117
  top: 0
118
118
  };
119
119
  return new Promise(
120
- (s) => it(o, u, s)
120
+ (a) => it(o, u, a)
121
121
  );
122
122
  }
123
123
  const h = {
@@ -126,7 +126,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
126
126
  };
127
127
  return o == null ? void 0 : o.scrollTo({
128
128
  ...h,
129
- behavior: x
129
+ behavior: y
130
130
  });
131
131
  },
132
132
  [o, d, it]
@@ -136,12 +136,12 @@ import './assets/ToolbarLayout.css';const mn = () => {
136
136
  }, [e, t]), D(() => {
137
137
  p.current = l;
138
138
  }, [l]), { scrollToPage: E(
139
- (T, x = "smooth") => {
139
+ (T, y = "smooth") => {
140
140
  i(T);
141
141
  const g = T - 1;
142
142
  let h = g, u = 0;
143
143
  if (P.current === Re.DUAL_PAGE && m.current === ne.PAGE_SCROLLING) {
144
- b(T, x);
144
+ b(T, y);
145
145
  return;
146
146
  }
147
147
  if (m.current === ne.PAGE_SCROLLING) {
@@ -150,36 +150,36 @@ import './assets/ToolbarLayout.css';const mn = () => {
150
150
  }
151
151
  if (!c.current || !r)
152
152
  return;
153
- const s = r;
154
- if (x === "smooth" && (v.current = T), m.current === ne.HORIZONTAL_SCROLLING) {
153
+ const a = r;
154
+ if (y === "smooth" && (v.current = T), m.current === ne.HORIZONTAL_SCROLLING) {
155
155
  u = g;
156
- const y = {
156
+ const S = {
157
157
  left: ze(d, u),
158
158
  top: 0
159
159
  };
160
- return s.scrollTo({
161
- ...y,
162
- behavior: x
160
+ return a.scrollTo({
161
+ ...S,
162
+ behavior: y
163
163
  });
164
164
  }
165
165
  if (P.current === Re.DUAL_PAGE) {
166
166
  u = g % 2, h = Math.floor(g / 2);
167
- const y = {
167
+ const S = {
168
168
  left: ze(d, u),
169
169
  top: ze(f, h)
170
170
  };
171
- return s.scrollTo({
172
- ...y,
173
- behavior: x
171
+ return a.scrollTo({
172
+ ...S,
173
+ behavior: y
174
174
  });
175
175
  }
176
176
  const _ = {
177
177
  left: 0,
178
178
  top: ze(f, h)
179
179
  };
180
- return s.scrollTo({
180
+ return a.scrollTo({
181
181
  ..._,
182
- behavior: x
182
+ behavior: y
183
183
  });
184
184
  },
185
185
  [
@@ -197,8 +197,8 @@ import './assets/ToolbarLayout.css';const mn = () => {
197
197
  (h) => {
198
198
  if (!/^[0-9]*$/g.test(h.toString()) || !h)
199
199
  return { success: !1, currentPage: c.current };
200
- const s = +h;
201
- return s < 0 || s > r ? { success: !1, currentPage: c.current } : (n(s), c.current = s, { success: !0, currentPage: +h });
200
+ const a = +h;
201
+ return a < 0 || a > r ? { success: !1, currentPage: c.current } : (n(a), c.current = a, { success: !0, currentPage: +h });
202
202
  },
203
203
  [r]
204
204
  ), v = E(p, [p]), b = E(
@@ -211,17 +211,17 @@ import './assets/ToolbarLayout.css';const mn = () => {
211
211
  const u = h % 2 === 1;
212
212
  if (!m || u)
213
213
  return !1;
214
- const s = u ? f[h] : f[h - 1], _ = u ? f[h + 1] : f[h];
215
- return l === Re.DUAL_PAGE && s + _ < m.clientWidth;
214
+ const a = u ? f[h] : f[h - 1], _ = u ? f[h + 1] : f[h];
215
+ return l === Re.DUAL_PAGE && a + _ < m.clientWidth;
216
216
  }, [l, f, m, r]), T = E(() => {
217
217
  let h = e - 1;
218
218
  C(h) && (h = e - 2), b(h);
219
- }, [b, e, l, d, C]), x = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = E(() => {
220
- if (x)
219
+ }, [b, e, l, d, C]), y = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = E(() => {
220
+ if (y)
221
221
  return;
222
222
  let h = e + 1;
223
223
  C(h) && (h = e + 2), b(h);
224
- }, [b, e, C, l, d, x]);
224
+ }, [b, e, C, l, d, y]);
225
225
  return {
226
226
  focusedPage: P,
227
227
  totalPages: r,
@@ -243,16 +243,16 @@ import './assets/ToolbarLayout.css';const mn = () => {
243
243
  },
244
244
  nextPage: () => {
245
245
  }
246
- }), le = () => {
246
+ }), de = () => {
247
247
  const t = $e(gn);
248
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && sr.error("Please use this hooks inside children component of RPProvider"), t;
249
- }, Bs = ({ children: t }) => {
248
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && ar.error("Please use this hooks inside children component of RPProvider"), t;
249
+ }, Ba = ({ children: t }) => {
250
250
  const { pdf: e } = oe(), { setCurrentPage: n } = To(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Lr();
251
251
  return D(() => {
252
252
  e != null && e.numPages && (c(e.numPages), i(1));
253
253
  }, [e, c, i]), D(() => {
254
254
  n(r);
255
- }, [r, n]), /* @__PURE__ */ a(
255
+ }, [r, n]), /* @__PURE__ */ s(
256
256
  gn.Provider,
257
257
  {
258
258
  value: {
@@ -292,22 +292,22 @@ const Er = () => {
292
292
  }, b = async ({
293
293
  scratchCanvas: h,
294
294
  pdfDocument: u,
295
- pageNumber: s,
295
+ pageNumber: a,
296
296
  viewerPdfPage: _,
297
297
  printResolution: w,
298
- optionalContentConfigPromise: y,
298
+ optionalContentConfigPromise: S,
299
299
  printAnnotationStoragePromise: R
300
300
  }) => {
301
301
  if (m.current) {
302
302
  p();
303
303
  return;
304
304
  }
305
- const S = w / Wo.PDF;
306
- h.width = Math.floor(_.width * S), h.height = Math.floor(_.height * S);
307
- const I = h.getContext("2d");
308
- I.save(), I.fillStyle = "rgb(255, 255, 255)", I.fillRect(0, 0, h.width, h.height), I.restore();
305
+ const I = w / Wo.PDF;
306
+ h.width = Math.floor(_.width * I), h.height = Math.floor(_.height * I);
307
+ const x = h.getContext("2d");
308
+ x.save(), x.fillStyle = "rgb(255, 255, 255)", x.fillRect(0, 0, h.width, h.height), x.restore();
309
309
  const [N, A] = await Promise.all([
310
- u.getPage(s),
310
+ u.getPage(a),
311
311
  R
312
312
  ]);
313
313
  if (m.current) {
@@ -315,12 +315,12 @@ const Er = () => {
315
315
  return;
316
316
  }
317
317
  const z = {
318
- canvasContext: I,
319
- transform: [S, 0, 0, S, 0, 0],
318
+ canvasContext: x,
319
+ transform: [I, 0, 0, I, 0, 0],
320
320
  viewport: N.getViewport({ scale: 1, rotation: _.rotation }),
321
321
  intent: "print",
322
322
  annotationMode: Ho.ENABLE_STORAGE,
323
- optionalContentConfigPromise: y,
323
+ optionalContentConfigPromise: S,
324
324
  printAnnotationStorage: A
325
325
  };
326
326
  try {
@@ -331,39 +331,39 @@ const Er = () => {
331
331
  }, C = E(() => {
332
332
  const h = window.print;
333
333
  return new Promise((u) => {
334
- const s = (y) => {
334
+ const a = (S) => {
335
335
  setTimeout(() => {
336
- h.call(window), setTimeout(() => y(), 20);
336
+ h.call(window), setTimeout(() => S(), 20);
337
337
  }, 0);
338
338
  };
339
339
  if (document.querySelector(".rp-print-zone")) {
340
- s(u);
340
+ a(u);
341
341
  return;
342
342
  }
343
343
  const w = new MutationObserver(() => {
344
- document.querySelector(".rp-print-zone") && (s(u), w.disconnect());
344
+ document.querySelector(".rp-print-zone") && (a(u), w.disconnect());
345
345
  });
346
346
  w.observe(document.body, { childList: !0, subtree: !0 });
347
347
  });
348
348
  }, []), T = async (h) => {
349
- const u = document.createElement("img"), s = document.createElement("div");
350
- return s.classList.add("rp-print-page"), await new Promise((_, w) => {
351
- h.toBlob((y) => {
352
- y ? (u.src = URL.createObjectURL(y), u.onload = () => {
349
+ const u = document.createElement("img"), a = document.createElement("div");
350
+ return a.classList.add("rp-print-page"), await new Promise((_, w) => {
351
+ h.toBlob((S) => {
352
+ S ? (u.src = URL.createObjectURL(S), u.onload = () => {
353
353
  URL.revokeObjectURL(u.src), _();
354
354
  }, u.onerror = w) : w(new Error("Failed to create blob"));
355
355
  });
356
356
  }).catch(() => {
357
- }), s.appendChild(u), s;
358
- }, x = (h, u) => {
359
- const s = document.createElement("div");
360
- s.classList.add("rp-print-zone");
357
+ }), a.appendChild(u), a;
358
+ }, y = (h, u) => {
359
+ const a = document.createElement("div");
360
+ a.classList.add("rp-print-zone");
361
361
  const _ = document.createElement("style"), w = u.get(1);
362
362
  if (w) {
363
- const { width: y, height: R } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
364
- _.innerHTML = `@page { size: ${y}px ${R}px }`;
363
+ const { width: S, height: R } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
364
+ _.innerHTML = `@page { size: ${S}px ${R}px }`;
365
365
  }
366
- return s.appendChild(_), s.append(...h), s;
366
+ return a.appendChild(_), a.append(...h), a;
367
367
  }, g = E(async () => {
368
368
  if (!t)
369
369
  return;
@@ -373,17 +373,17 @@ const Er = () => {
373
373
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
374
374
  const _ = t.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
375
375
  t.annotationStorage.print ?? void 0
376
- ), y = e.size;
377
- for (const [S, I] of e) {
376
+ ), S = e.size;
377
+ for (const [I, x] of e) {
378
378
  if (m.current) {
379
379
  p();
380
380
  return;
381
381
  }
382
- const N = I.page.getViewport({ scale: 1 });
382
+ const N = x.page.getViewport({ scale: 1 });
383
383
  if (await b({
384
384
  scratchCanvas: h,
385
385
  pdfDocument: t,
386
- pageNumber: S,
386
+ pageNumber: I,
387
387
  viewerPdfPage: N,
388
388
  printResolution: 150,
389
389
  optionalContentConfigPromise: _,
@@ -394,10 +394,10 @@ const Er = () => {
394
394
  }
395
395
  const A = await T(h);
396
396
  u.push(A);
397
- const z = parseFloat((u.length / y * 100).toFixed(2));
397
+ const z = parseFloat((u.length / S * 100).toFixed(2));
398
398
  r({
399
- loadedPages: S,
400
- totalPages: y,
399
+ loadedPages: I,
400
+ totalPages: S,
401
401
  percentage: z
402
402
  });
403
403
  }
@@ -405,10 +405,10 @@ const Er = () => {
405
405
  p();
406
406
  return;
407
407
  }
408
- const R = x(u, e);
408
+ const R = y(u, e);
409
409
  document.body.appendChild(R), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await C();
410
- } catch (s) {
411
- l(!0), s instanceof Error && f(s);
410
+ } catch (a) {
411
+ l(!0), a instanceof Error && f(a);
412
412
  } finally {
413
413
  h.height = 0, h.width = 0;
414
414
  }
@@ -445,7 +445,7 @@ const Er = () => {
445
445
  console.error("Error in setOnError callback:", e);
446
446
  }
447
447
  }
448
- }), js = ({ children: t }) => {
448
+ }), ja = ({ children: t }) => {
449
449
  const [e, n] = q(null), [r, o] = q(null), { print: i, cancel: c, progress: l, isComplete: d, isError: f, error: m } = Er(), P = E((T) => {
450
450
  T && typeof T == "function" && o(() => T);
451
451
  }, []), p = (T) => {
@@ -475,7 +475,7 @@ const Er = () => {
475
475
  setOnError: p,
476
476
  progress: l
477
477
  };
478
- return /* @__PURE__ */ a(vn.Provider, { value: C, children: t });
478
+ return /* @__PURE__ */ s(vn.Provider, { value: C, children: t });
479
479
  }, tt = () => {
480
480
  const t = $e(vn);
481
481
  if (!t)
@@ -487,7 +487,7 @@ const Er = () => {
487
487
  if (!n.size)
488
488
  return;
489
489
  const l = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, l).map((m) => {
490
- const { thumbnailViewport: P, scale: p } = ar(m.page, m.defaultRotation);
490
+ const { thumbnailViewport: P, scale: p } = sr(m.page, m.defaultRotation);
491
491
  return {
492
492
  scale: p,
493
493
  page: m.page,
@@ -532,12 +532,12 @@ const Er = () => {
532
532
  setActive: (t) => {
533
533
  },
534
534
  active: !1
535
- }), _n = () => $e(wn), Ks = ({
535
+ }), _n = () => $e(wn), Ka = ({
536
536
  children: t,
537
537
  initialThumbnailsVisible: e
538
538
  }) => {
539
539
  const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = Nr(), [c, l] = q(e);
540
- return /* @__PURE__ */ a(
540
+ return /* @__PURE__ */ s(
541
541
  wn.Provider,
542
542
  {
543
543
  value: { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i, active: c, setActive: l },
@@ -545,32 +545,32 @@ const Er = () => {
545
545
  }
546
546
  );
547
547
  }, Or = (t = {}, e = "") => {
548
- const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = le(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [x, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: s } = Ee(), { pagesRef: _ } = _e(), [w, y] = q(null), R = k({}), S = W(() => x === 0 ? null : p[x - 1], [x, p]), I = W(() => p.length, [p]);
548
+ const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = de(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [y, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: a } = Ee(), { pagesRef: _ } = _e(), [w, S] = q(null), R = k({}), I = W(() => y === 0 ? null : p[y - 1], [y, p]), x = W(() => p.length, [p]);
549
549
  D(() => {
550
- if (!S || !l)
550
+ if (!I || !l)
551
551
  return;
552
552
  const L = u || h;
553
553
  if (!L || !_)
554
554
  return;
555
- const O = l.get(S.page);
556
- if (s === ne.PAGE_SCROLLING && b(S.page), !O)
555
+ const O = l.get(I.page);
556
+ if (a === ne.PAGE_SCROLLING && b(I.page), !O)
557
557
  return;
558
558
  let F = 0, $ = 0;
559
- if (s === ne.VERTICAL_SCROLLING) {
560
- const J = S.page - 1, ee = C, ie = J % ee, ae = Math.floor(J / ee);
561
- F = ze(f, ae), $ = ze(d, ie);
559
+ if (a === ne.VERTICAL_SCROLLING) {
560
+ const J = I.page - 1, ee = C, ie = J % ee, se = Math.floor(J / ee);
561
+ F = ze(f, se), $ = ze(d, ie);
562
562
  }
563
- s === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, S.page - 1).reduce((J, ee) => J + ee, 0));
563
+ a === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
564
564
  const M = {
565
- height: f[S.page - 1],
566
- width: d[S.page - 1]
565
+ height: f[I.page - 1],
566
+ width: d[I.page - 1]
567
567
  }, B = {
568
568
  top: M.height / 2,
569
569
  left: M.width / 2
570
- }, K = T[S.page], { leftInPage: U, topInPage: re } = ir(
570
+ }, K = T[I.page], { leftInPage: U, topInPage: re } = ir(
571
571
  M,
572
572
  B,
573
- S.rect,
573
+ I.rect,
574
574
  P,
575
575
  K
576
576
  ), G = $ + U, Z = F + re, Y = {
@@ -586,17 +586,17 @@ const Er = () => {
586
586
  b,
587
587
  d,
588
588
  f,
589
- S,
590
- s,
589
+ I,
590
+ a,
591
591
  u,
592
592
  h,
593
593
  _
594
594
  ]);
595
595
  const N = E(() => {
596
- g((L) => I ? L + 1 > I ? 1 : L + 1 : 0);
597
- }, [I]), A = E(() => {
598
- g((L) => I ? L - 1 <= 0 ? I : L - 1 : 0);
599
- }, [I]), z = E(async (L) => {
596
+ g((L) => x ? L + 1 > x ? 1 : L + 1 : 0);
597
+ }, [x]), A = E(() => {
598
+ g((L) => x ? L - 1 <= 0 ? x : L - 1 : 0);
599
+ }, [x]), z = E(async (L) => {
600
600
  if (!L)
601
601
  return {};
602
602
  const O = L.numPages, F = {};
@@ -633,13 +633,13 @@ const Er = () => {
633
633
  setSearch: r,
634
634
  loading: o,
635
635
  matches: p,
636
- totalMatches: I,
637
- currentMatchPosition: x,
638
- currentMatch: S,
636
+ totalMatches: x,
637
+ currentMatchPosition: y,
638
+ currentMatch: I,
639
639
  nextMatch: N,
640
640
  prevMatch: A,
641
641
  currentMatchElement: w,
642
- setCurrentMatchElement: y
642
+ setCurrentMatchElement: S
643
643
  };
644
644
  }, bn = He({
645
645
  search: "",
@@ -659,7 +659,7 @@ const Er = () => {
659
659
  currentMatchElement: null,
660
660
  setCurrentMatchElement: (t) => {
661
661
  }
662
- }), Zs = ({
662
+ }), Za = ({
663
663
  children: t,
664
664
  initialSearch: e
665
665
  }) => {
@@ -676,7 +676,7 @@ const Er = () => {
676
676
  currentMatchElement: v,
677
677
  setCurrentMatchElement: b
678
678
  } = Or(n, e);
679
- return /* @__PURE__ */ a(
679
+ return /* @__PURE__ */ s(
680
680
  bn.Provider,
681
681
  {
682
682
  value: {
@@ -697,10 +697,10 @@ const Er = () => {
697
697
  children: t
698
698
  }
699
699
  );
700
- }, Pt = () => $e(bn), Tn = He(null), Xs = ({ children: t }) => {
700
+ }, Pt = () => $e(bn), Tn = He(null), Xa = ({ children: t }) => {
701
701
  const e = k(!1), [n, r] = q([]), o = E((d) => {
702
702
  r((f) => [...f, { id: d.page.pageNumber.toString(), data: d, priority: 0 }]);
703
- }, []), i = W(() => new _o(o), [o]), { focusedPage: c } = le(), l = E((d) => (e.current = !0, bo(
703
+ }, []), i = W(() => new _o(o), [o]), { focusedPage: c } = de(), l = E((d) => (e.current = !0, bo(
704
704
  d.data.page,
705
705
  d.data.canvasElem,
706
706
  d.data.options
@@ -721,23 +721,24 @@ const Er = () => {
721
721
  }) : (e.current = !1, r(i.peekAll()));
722
722
  };
723
723
  d();
724
- }, [i, l, n]), /* @__PURE__ */ a(Tn.Provider, { value: i, children: t });
724
+ }, [i, l, n]), /* @__PURE__ */ s(Tn.Provider, { value: i, children: t });
725
725
  }, Cn = () => {
726
726
  const t = $e(Tn);
727
727
  if (!t)
728
728
  throw new Error("RenderQueue not found");
729
729
  return t;
730
- }, de = {
731
- "rp-pages": "_rp-pages_x8ox4_1",
732
- "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_x8ox4_6",
733
- "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_x8ox4_11",
734
- "rp-pages-container": "_rp-pages-container_x8ox4_15",
735
- "rp-viewer": "_rp-viewer_x8ox4_57",
736
- "rp-cursor-grab": "_rp-cursor-grab_x8ox4_62",
737
- "rp-cursor-grabbing": "_rp-cursor-grabbing_x8ox4_70",
738
- "rp-loader": "_rp-loader_x8ox4_78",
739
- "rp-not-supported": "_rp-not-supported_x8ox4_86"
740
- }, st = {
730
+ }, ae = {
731
+ "rp-pages": "_rp-pages_s7sew_1",
732
+ "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_s7sew_6",
733
+ "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_s7sew_11",
734
+ "rp-pages-container": "_rp-pages-container_s7sew_15",
735
+ "rp-viewer": "_rp-viewer_s7sew_57",
736
+ "rp-cursor-grab": "_rp-cursor-grab_s7sew_62",
737
+ "rp-cursor-grabbing": "_rp-cursor-grabbing_s7sew_70",
738
+ "rp-loader": "_rp-loader_s7sew_78",
739
+ "rp-not-supported": "_rp-not-supported_s7sew_86",
740
+ "rp-not-supported-content": "_rp-not-supported-content_s7sew_102"
741
+ }, at = {
741
742
  "rp-page-wrapper": "_rp-page-wrapper_14ohm_1",
742
743
  "rp-page": "_rp-page_14ohm_1",
743
744
  "rp-loader-wrapper": "_rp-loader-wrapper_14ohm_15"
@@ -769,7 +770,7 @@ const Er = () => {
769
770
  return () => {
770
771
  f.removeQueue(m.current);
771
772
  };
772
- }, [i, e, c, d, r, n, f]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
+ }, [i, e, c, d, r, n, f]), /* @__PURE__ */ s("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
774
  }, Ar = "_selecting_1uik2_10", zr = "_markedContent_1uik2_33", me = {
774
775
  "rp-text-layer": "_rp-text-layer_1uik2_1",
775
776
  selecting: Ar,
@@ -779,8 +780,8 @@ const Er = () => {
779
780
  const { pageNumber: e } = t, { pages: n } = oe(), r = k(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = q(
780
781
  []
781
782
  ), f = k(), m = k(), P = k([]), p = W(() => o.filter((h) => h.pageIndex === e - 1), [o, e]), v = E(
782
- (h, u, s = !1) => {
783
- if (s && fo(h, u), !p.length) {
783
+ (h, u, a = !1) => {
784
+ if (a && fo(h, u), !p.length) {
784
785
  P.current = [], d([]);
785
786
  return;
786
787
  }
@@ -793,10 +794,10 @@ const Er = () => {
793
794
  if (b.current)
794
795
  return;
795
796
  b.current = new AbortController();
796
- const { signal: u } = b.current, s = () => {
797
+ const { signal: u } = b.current, a = () => {
797
798
  T().forEach((w) => {
798
- const y = w.querySelector(".endOfContent");
799
- y && (w.appendChild(y), y.style.width = "", y.style.height = "", w.classList.remove(me.selecting));
799
+ const S = w.querySelector(".endOfContent");
800
+ S && (w.appendChild(S), S.style.width = "", S.style.height = "", w.classList.remove(me.selecting));
800
801
  });
801
802
  };
802
803
  document.addEventListener(
@@ -808,19 +809,19 @@ const Er = () => {
808
809
  ), document.addEventListener(
809
810
  "pointerup",
810
811
  () => {
811
- C.current = !1, s();
812
+ C.current = !1, a();
812
813
  },
813
814
  { signal: u }
814
815
  ), window.addEventListener(
815
816
  "blur",
816
817
  () => {
817
- C.current = !1, s();
818
+ C.current = !1, a();
818
819
  },
819
820
  { signal: u }
820
821
  ), document.addEventListener(
821
822
  "keyup",
822
823
  () => {
823
- C.current || s();
824
+ C.current || a();
824
825
  },
825
826
  { signal: u }
826
827
  );
@@ -833,18 +834,18 @@ const Er = () => {
833
834
  if (!w)
834
835
  return;
835
836
  if (w.rangeCount === 0) {
836
- s();
837
+ a();
837
838
  return;
838
839
  }
839
- const y = /* @__PURE__ */ new Set();
840
+ const S = /* @__PURE__ */ new Set();
840
841
  for (let O = 0; O < w.rangeCount; O++) {
841
842
  const F = w.getRangeAt(O);
842
843
  T().forEach(($) => {
843
- F.intersectsNode($) && !y.has($) && y.add($);
844
+ F.intersectsNode($) && !S.has($) && S.add($);
844
845
  });
845
846
  }
846
847
  T().forEach((O) => {
847
- if (y.has(O))
848
+ if (S.has(O))
848
849
  O.classList.add(me.selecting);
849
850
  else {
850
851
  const F = O.querySelector(".endOfContent");
@@ -852,12 +853,12 @@ const Er = () => {
852
853
  }
853
854
  });
854
855
  const R = w.getRangeAt(0);
855
- let I = _ && (R.compareBoundaryPoints(Range.END_TO_END, _) === 0 || R.compareBoundaryPoints(Range.START_TO_END, _) === 0) ? R.startContainer : R.endContainer;
856
- I.nodeType === Node.TEXT_NODE && (I = I.parentNode);
857
- const N = (z = I.parentElement) == null ? void 0 : z.closest(
856
+ let x = _ && (R.compareBoundaryPoints(Range.END_TO_END, _) === 0 || R.compareBoundaryPoints(Range.START_TO_END, _) === 0) ? R.startContainer : R.endContainer;
857
+ x.nodeType === Node.TEXT_NODE && (x = x.parentNode);
858
+ const N = (z = x.parentElement) == null ? void 0 : z.closest(
858
859
  me["rp-text-layer"]
859
860
  ), A = N == null ? void 0 : N.querySelector(".endOfContent");
860
- A && N && (A.style.width = N.style.width, A.style.height = N.style.height, (L = I.parentElement) == null || L.insertBefore(A, I.nextSibling)), _ = R.cloneRange();
861
+ A && N && (A.style.width = N.style.width, A.style.height = N.style.height, (L = x.parentElement) == null || L.insertBefore(A, x.nextSibling)), _ = R.cloneRange();
861
862
  },
862
863
  { signal: u }
863
864
  );
@@ -865,66 +866,66 @@ const Er = () => {
865
866
  var u;
866
867
  (u = b.current) == null || u.abort(), b.current = void 0;
867
868
  }), [T]);
868
- const x = E(() => {
869
+ const y = E(() => {
869
870
  r.current && r.current.classList.add(me.selecting);
870
871
  }, []), g = E(() => {
871
872
  r.current && r.current.classList.remove(me.selecting);
872
873
  }, []);
873
874
  return D(() => {
874
- if (P.current.forEach((s) => {
875
- s.classList.remove("selected");
875
+ if (P.current.forEach((a) => {
876
+ a.classList.remove("selected");
876
877
  }), !l.length || !i || i.pageIndex !== e - 1)
877
878
  return;
878
879
  const h = p.findIndex(
879
- (s) => JSON.stringify(s) === JSON.stringify(i)
880
+ (a) => JSON.stringify(a) === JSON.stringify(i)
880
881
  );
881
882
  if (h === -1)
882
883
  return;
883
- const u = l.filter((s) => s.index === h);
884
- u.length && (P.current = u.map((s) => s.element), c(u[0].element), u.forEach((s) => {
885
- s.element.classList.add("selected");
884
+ const u = l.filter((a) => a.index === h);
885
+ u.length && (P.current = u.map((a) => a.element), c(u[0].element), u.forEach((a) => {
886
+ a.element.classList.add("selected");
886
887
  }));
887
888
  }, [i, l, p]), D(() => {
888
889
  const h = n.get(e);
889
890
  if (!h || !r.current)
890
891
  return;
891
892
  const u = r.current;
892
- return f.current && f.current.cancel(), h.page.getTextContent().then((s) => {
893
+ return f.current && f.current.cancel(), h.page.getTextContent().then((a) => {
893
894
  const _ = h.page.getViewport({ scale: 1 });
894
895
  return f.current = new ko.TextLayer({
895
896
  viewport: _,
896
- textContentSource: s,
897
+ textContentSource: a,
897
898
  container: u
898
- }), m.current = s, u && (u.innerText = ""), f.current.render();
899
+ }), m.current = a, u && (u.innerText = ""), f.current.render();
899
900
  }).then(() => {
900
- var y, R;
901
- [].slice.call(u.children).forEach((S) => {
902
- S.classList.add(me["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
901
+ var S, R;
902
+ [].slice.call(u.children).forEach((I) => {
903
+ I.classList.add(me["rp-text-layer-text"]), I.setAttribute("data-rp", "rp-text-layer-text");
903
904
  });
904
- const _ = (y = f.current) == null ? void 0 : y.textDivs;
905
+ const _ = (S = f.current) == null ? void 0 : S.textDivs;
905
906
  _ && m.current && v(m.current, _);
906
907
  const w = document.createElement("div");
907
908
  w.className = "endOfContent", (R = r.current) == null || R.appendChild(w);
908
909
  }).catch(() => {
909
910
  }), () => {
910
- var s;
911
- (s = f.current) == null || s.cancel();
911
+ var a;
912
+ (a = f.current) == null || a.cancel();
912
913
  };
913
914
  }, [n, e]), D(() => {
914
- var s;
915
+ var a;
915
916
  [].slice.call(r.current.children).forEach((_) => {
916
917
  _.classList.add(me["rp-text-layer-text"]);
917
918
  });
918
- const u = (s = f.current) == null ? void 0 : s.textDivs;
919
+ const u = (a = f.current) == null ? void 0 : a.textDivs;
919
920
  u && m.current && v(m.current, u, !0);
920
- }, [v]), /* @__PURE__ */ a(
921
+ }, [v]), /* @__PURE__ */ s(
921
922
  "div",
922
923
  {
923
924
  "data-rp-text-layer": !0,
924
925
  "data-rp": `page-${e}-textLayer`,
925
926
  className: me["rp-text-layer"],
926
927
  ref: r,
927
- onMouseDown: x,
928
+ onMouseDown: y,
928
929
  onMouseUp: g
929
930
  }
930
931
  );
@@ -933,7 +934,7 @@ const Er = () => {
933
934
  };
934
935
  let kr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
935
936
  const Wr = (t) => {
936
- const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = le(), { scrollMode: m } = Ee(), { print: P } = tt(), { download: p } = $n(), v = W(() => r.get(e), [r, e]), b = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
937
+ const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = de(), { scrollMode: m } = Ee(), { print: P } = tt(), { download: p } = $n(), v = W(() => r.get(e), [r, e]), b = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
937
938
  D(() => {
938
939
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
939
940
  }, [o]), D(() => {
@@ -943,10 +944,10 @@ const Wr = (t) => {
943
944
  }, [v]);
944
945
  const C = E(
945
946
  (T) => {
946
- !c || !o || (Uo(T), Vo(T, o, c).then((x) => {
947
+ !c || !o || (Uo(T), Vo(T, o, c).then((y) => {
947
948
  var g, h;
948
- ((g = x == null ? void 0 : x.data) == null ? void 0 : g.action) === "Print" ? P() : ((h = x == null ? void 0 : x.data) == null ? void 0 : h.action) === "SaveAs" && p();
949
- }), m === ne.PAGE_SCROLLING ? zt(T, c, o, (x) => d(x.pageIndex + 1)) : zt(T, c, o, (x) => f(x.pageIndex + 1)));
949
+ ((g = y == null ? void 0 : y.data) == null ? void 0 : g.action) === "Print" ? P() : ((h = y == null ? void 0 : y.data) == null ? void 0 : h.action) === "SaveAs" && p();
950
+ }), m === ne.PAGE_SCROLLING ? zt(T, c, o, (y) => d(y.pageIndex + 1)) : zt(T, c, o, (y) => f(y.pageIndex + 1)));
950
951
  },
951
952
  [o, c, f, d, m, P, p]
952
953
  );
@@ -960,15 +961,15 @@ const Wr = (t) => {
960
961
  });
961
962
  return;
962
963
  }
963
- const x = /* @__PURE__ */ new Map([]);
964
+ const y = /* @__PURE__ */ new Map([]);
964
965
  for (const u of c) {
965
- const { annotationType: s } = u;
966
- switch (s) {
966
+ const { annotationType: a } = u;
967
+ switch (a) {
967
968
  case Nt.Link:
968
969
  jo(u);
969
970
  break;
970
971
  case Nt.Widget:
971
- Bo(u, T, x);
972
+ Bo(u, T, y);
972
973
  break;
973
974
  }
974
975
  }
@@ -984,14 +985,14 @@ const Wr = (t) => {
984
985
  page: v.page,
985
986
  viewport: T.clone({ dontFlip: !0 })
986
987
  }), n.current && Ft(n.current, C);
987
- const u = await (o == null ? void 0 : o.hasJSActions()), s = await (o == null ? void 0 : o.getFieldObjects());
988
+ const u = await (o == null ? void 0 : o.hasJSActions()), a = await (o == null ? void 0 : o.getFieldObjects());
988
989
  if (g.signal.aborted)
989
990
  throw "abort";
990
991
  return (_ = i.current) == null ? void 0 : _.render({
991
992
  annotations: c,
992
993
  annotationStorage: o == null ? void 0 : o.annotationStorage,
993
994
  hasJSActions: u,
994
- fieldObjects: s,
995
+ fieldObjects: a,
995
996
  div: n.current,
996
997
  viewport: T.clone({ dontFlip: !0 }),
997
998
  page: v.page,
@@ -1009,7 +1010,7 @@ const Wr = (t) => {
1009
1010
  }), () => {
1010
1011
  g.abort("clear"), n.current && Ft(n.current, C);
1011
1012
  };
1012
- }, [o, c, C]), /* @__PURE__ */ a(
1013
+ }, [o, c, C]), /* @__PURE__ */ s(
1013
1014
  "div",
1014
1015
  {
1015
1016
  "data-rp": `page-${e}-annotationLayer`,
@@ -1044,15 +1045,15 @@ const Wr = (t) => {
1044
1045
  if (!g)
1045
1046
  return;
1046
1047
  const u = `[data-rp="page-${h}-textLayer"]`;
1047
- return new Promise((s) => {
1048
+ return new Promise((a) => {
1048
1049
  const _ = g.querySelector(u);
1049
1050
  if (_) {
1050
- s(_);
1051
+ a(_);
1051
1052
  return;
1052
1053
  }
1053
- new MutationObserver((y, R) => {
1054
- const S = g.querySelector(u);
1055
- S && (s(S), R.disconnect());
1054
+ new MutationObserver((S, R) => {
1055
+ const I = g.querySelector(u);
1056
+ I && (a(I), R.disconnect());
1056
1057
  }).observe(g, { childList: !0, subtree: !0 });
1057
1058
  });
1058
1059
  }
@@ -1066,26 +1067,26 @@ const Wr = (t) => {
1066
1067
  return;
1067
1068
  }
1068
1069
  new MutationObserver((_, w) => {
1069
- const y = g.querySelectorAll(
1070
+ const S = g.querySelectorAll(
1070
1071
  ".rp-text-layer-text"
1071
1072
  );
1072
- y.length && (h(Array.from(y)), w.disconnect());
1073
+ S.length && (h(Array.from(S)), w.disconnect());
1073
1074
  }).observe(g, { childList: !0, subtree: !0 });
1074
1075
  });
1075
1076
  }
1076
- const C = (g, h, u, s) => {
1077
+ const C = (g, h, u, a) => {
1077
1078
  var B;
1078
1079
  const _ = document.createRange(), w = u.firstChild;
1079
1080
  if (!w || w.nodeType !== Node.TEXT_NODE)
1080
1081
  return null;
1081
- const y = ((B = w.textContent) == null ? void 0 : B.length) ?? 0, R = s[0].charIdxInSpan, S = s.length === 1 ? R : s[s.length - 1].charIdxInSpan;
1082
- if (R > y || S + 1 > y)
1082
+ const S = ((B = w.textContent) == null ? void 0 : B.length) ?? 0, R = a[0].charIdxInSpan, I = a.length === 1 ? R : a[a.length - 1].charIdxInSpan;
1083
+ if (R > S || I + 1 > S)
1083
1084
  return null;
1084
- _.setStart(w, R), _.setEnd(w, S + 1);
1085
- const I = document.createElement("span");
1086
- I.style.width = "auto", _.surroundContents(I);
1087
- const N = I.getBoundingClientRect(), A = g.getBoundingClientRect(), z = A.height, L = A.width, O = 100 * (N.left - A.left) / L, F = 100 * (N.top - A.top) / z, $ = 100 * N.height / z, M = 100 * N.width / L;
1088
- return Qo(I), {
1085
+ _.setStart(w, R), _.setEnd(w, I + 1);
1086
+ const x = document.createElement("span");
1087
+ x.style.width = "auto", _.surroundContents(x);
1088
+ const N = x.getBoundingClientRect(), A = g.getBoundingClientRect(), z = A.height, L = A.width, O = 100 * (N.left - A.left) / L, F = 100 * (N.top - A.top) / z, $ = 100 * N.height / z, M = 100 * N.width / L;
1089
+ return Qo(x), {
1089
1090
  keywordStr: h,
1090
1091
  left: O,
1091
1092
  top: F,
@@ -1099,14 +1100,14 @@ const Wr = (t) => {
1099
1100
  const u = await v(d, g);
1100
1101
  if (!u)
1101
1102
  return;
1102
- const s = await b(u);
1103
- if (s.length) {
1104
- const _ = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
1105
- (y, R, S) => y.concat(
1106
- R.split("").map((I, N) => ({
1107
- char: I,
1103
+ const a = await b(u);
1104
+ if (a.length) {
1105
+ const _ = a.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1106
+ (S, R, I) => S.concat(
1107
+ R.split("").map((x, N) => ({
1108
+ char: x,
1108
1109
  charIdxInSpan: N,
1109
- spanIdx: S
1110
+ spanIdx: I
1110
1111
  }))
1111
1112
  ),
1112
1113
  [
@@ -1116,31 +1117,31 @@ const Wr = (t) => {
1116
1117
  spanIdx: 0
1117
1118
  }
1118
1119
  ]
1119
- ).slice(1), w = x(u, h, s, _);
1120
+ ).slice(1), w = y(u, h, a, _);
1120
1121
  P(w);
1121
1122
  }
1122
1123
  }
1123
- const x = (g, h, u, s) => {
1124
+ const y = (g, h, u, a) => {
1124
1125
  const _ = h.length;
1125
- if (!s.length || !_)
1126
+ if (!a.length || !_)
1126
1127
  return [];
1127
- const w = [], y = s.map((R) => R.char).join("");
1128
+ const w = [], S = a.map((R) => R.char).join("");
1128
1129
  return p.forEach((R) => {
1129
- const { keyword: S, regExp: I, wholeWords: N, color: A } = R, z = S;
1130
+ const { keyword: I, regExp: x, wholeWords: N, color: A } = R, z = I;
1130
1131
  if (!z.trim())
1131
1132
  return;
1132
- const L = I.flags.indexOf("g") === -1 ? new RegExp(I, `${I.flags}g`) : I;
1133
+ const L = x.flags.indexOf("g") === -1 ? new RegExp(x, `${x.flags}g`) : x;
1133
1134
  let O;
1134
1135
  const F = [];
1135
- for (; (O = L.exec(y)) !== null; )
1136
- N && !go(y, O.index, O[0].length) || F.push({
1136
+ for (; (O = L.exec(S)) !== null; )
1137
+ N && !go(S, O.index, O[0].length) || F.push({
1137
1138
  keyword: L,
1138
1139
  startIndex: O.index,
1139
1140
  endIndex: L.lastIndex
1140
1141
  });
1141
1142
  const $ = F.map((M) => ({
1142
1143
  keyword: M.keyword,
1143
- indexes: s.slice(M.startIndex, M.endIndex),
1144
+ indexes: a.slice(M.startIndex, M.endIndex),
1144
1145
  color: A
1145
1146
  }));
1146
1147
  for (const M of $) {
@@ -1175,7 +1176,7 @@ const Wr = (t) => {
1175
1176
  console.error(h);
1176
1177
  }
1177
1178
  })();
1178
- }, [c, i, t, n, e]), /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ a(
1179
+ }, [c, i, t, n, e]), /* @__PURE__ */ s(pe, { children: /* @__PURE__ */ s("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ s(
1179
1180
  "div",
1180
1181
  {
1181
1182
  className: Hr["rp-text-highlight"],
@@ -1189,7 +1190,7 @@ const Wr = (t) => {
1189
1190
  },
1190
1191
  h
1191
1192
  )) }) });
1192
- }, xt = et((t, e) => {
1193
+ }, yt = et((t, e) => {
1193
1194
  const { pageNumber: n, style: r, ...o } = t, { pages: i } = oe(), { pageRotate: c } = Je(), { textLayer: l } = co(), { currentZoom: d } = wt(), f = k(i.get(n)), [m, P] = q(!1), p = k(null), [v, b] = q({
1194
1195
  width: 0,
1195
1196
  height: 0
@@ -1215,12 +1216,12 @@ const Wr = (t) => {
1215
1216
  default:
1216
1217
  return "center";
1217
1218
  }
1218
- }, [C, v]), x = E(() => {
1219
+ }, [C, v]), y = E(() => {
1219
1220
  P(!0);
1220
1221
  }, []), g = E(() => {
1221
1222
  P(!1);
1222
1223
  }, []);
1223
- return /* @__PURE__ */ a(
1224
+ return /* @__PURE__ */ s(
1224
1225
  "div",
1225
1226
  {
1226
1227
  ref: p,
@@ -1233,7 +1234,7 @@ const Wr = (t) => {
1233
1234
  "--rp-page-rotate-translate": `${T}`,
1234
1235
  "--scale-factor": d
1235
1236
  },
1236
- className: st["rp-page-wrapper"],
1237
+ className: at["rp-page-wrapper"],
1237
1238
  children: /* @__PURE__ */ H(
1238
1239
  "div",
1239
1240
  {
@@ -1241,14 +1242,14 @@ const Wr = (t) => {
1241
1242
  width: `${v.width}px`,
1242
1243
  height: `${v.height}px`
1243
1244
  },
1244
- className: st["rp-page"],
1245
+ className: at["rp-page"],
1245
1246
  children: [
1246
- /* @__PURE__ */ a(Dr, { onLoading: x, onLoaded: g, pageNumber: n }),
1247
- m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1248
- /* @__PURE__ */ a(Yo, { pageNumber: n }),
1249
- l && /* @__PURE__ */ a(Fr, { pageNumber: n }),
1250
- /* @__PURE__ */ a($r, { pageNumber: n, viewport: v }),
1251
- /* @__PURE__ */ a(Wr, { pageNumber: n })
1247
+ /* @__PURE__ */ s(Dr, { onLoading: y, onLoaded: g, pageNumber: n }),
1248
+ m && /* @__PURE__ */ s("div", { className: at["rp-loader-wrapper"], children: /* @__PURE__ */ s(_t, {}) }),
1249
+ /* @__PURE__ */ s(Yo, { pageNumber: n }),
1250
+ l && /* @__PURE__ */ s(Fr, { pageNumber: n }),
1251
+ /* @__PURE__ */ s($r, { pageNumber: n, viewport: v }),
1252
+ /* @__PURE__ */ s(Wr, { pageNumber: n })
1252
1253
  ]
1253
1254
  }
1254
1255
  )
@@ -1359,154 +1360,154 @@ var Kr = 150, Zr = function(e) {
1359
1360
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1360
1361
  function Xr(t) {
1361
1362
  var e, n = t.getColumnOffset, r = t.getColumnStartIndexForOffset, o = t.getColumnStopIndexForStartIndex, i = t.getColumnWidth, c = t.getEstimatedTotalHeight, l = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, P = t.getRowOffset, p = t.getRowStartIndexForOffset, v = t.getRowStopIndexForStartIndex, b = t.initInstanceProps, C = t.shouldResetStyleCacheOnItemSizeChange, T = t.validateProps;
1362
- return e = /* @__PURE__ */ function(x) {
1363
- qr(g, x);
1363
+ return e = /* @__PURE__ */ function(y) {
1364
+ qr(g, y);
1364
1365
  function g(u) {
1365
- var s;
1366
- return s = x.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1367
- instance: kt(s),
1366
+ var a;
1367
+ return a = y.call(this, u) || this, a._instanceProps = b(a.props, kt(a)), a._resetIsScrollingTimeoutId = null, a._outerRef = void 0, a.state = {
1368
+ instance: kt(a),
1368
1369
  isScrolling: !1,
1369
1370
  horizontalScrollDirection: "forward",
1370
- scrollLeft: typeof s.props.initialScrollLeft == "number" ? s.props.initialScrollLeft : 0,
1371
- scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1371
+ scrollLeft: typeof a.props.initialScrollLeft == "number" ? a.props.initialScrollLeft : 0,
1372
+ scrollTop: typeof a.props.initialScrollTop == "number" ? a.props.initialScrollTop : 0,
1372
1373
  scrollUpdateWasRequested: !1,
1373
1374
  verticalScrollDirection: "forward"
1374
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(_, w, y, R, S, I, N, A) {
1375
- return s.props.onItemsRendered({
1375
+ }, a._callOnItemsRendered = void 0, a._callOnItemsRendered = ct(function(_, w, S, R, I, x, N, A) {
1376
+ return a.props.onItemsRendered({
1376
1377
  overscanColumnStartIndex: _,
1377
1378
  overscanColumnStopIndex: w,
1378
- overscanRowStartIndex: y,
1379
+ overscanRowStartIndex: S,
1379
1380
  overscanRowStopIndex: R,
1380
- visibleColumnStartIndex: S,
1381
- visibleColumnStopIndex: I,
1381
+ visibleColumnStartIndex: I,
1382
+ visibleColumnStopIndex: x,
1382
1383
  visibleRowStartIndex: N,
1383
1384
  visibleRowStopIndex: A
1384
1385
  });
1385
- }), s._callOnScroll = void 0, s._callOnScroll = ct(function(_, w, y, R, S) {
1386
- return s.props.onScroll({
1387
- horizontalScrollDirection: y,
1386
+ }), a._callOnScroll = void 0, a._callOnScroll = ct(function(_, w, S, R, I) {
1387
+ return a.props.onScroll({
1388
+ horizontalScrollDirection: S,
1388
1389
  scrollLeft: _,
1389
1390
  scrollTop: w,
1390
1391
  verticalScrollDirection: R,
1391
- scrollUpdateWasRequested: S
1392
+ scrollUpdateWasRequested: I
1392
1393
  });
1393
- }), s._getItemStyle = void 0, s._getItemStyle = function(_, w) {
1394
- var y = s.props, R = y.columnWidth, S = y.direction, I = y.rowHeight, N = s._getItemStyleCache(C && R, C && S, C && I), A = _ + ":" + w, z;
1394
+ }), a._getItemStyle = void 0, a._getItemStyle = function(_, w) {
1395
+ var S = a.props, R = S.columnWidth, I = S.direction, x = S.rowHeight, N = a._getItemStyleCache(C && R, C && I, C && x), A = _ + ":" + w, z;
1395
1396
  if (N.hasOwnProperty(A))
1396
1397
  z = N[A];
1397
1398
  else {
1398
- var L = n(s.props, w, s._instanceProps), O = S === "rtl";
1399
+ var L = n(a.props, w, a._instanceProps), O = I === "rtl";
1399
1400
  N[A] = z = {
1400
1401
  position: "absolute",
1401
1402
  left: O ? void 0 : L,
1402
1403
  right: O ? L : void 0,
1403
- top: P(s.props, _, s._instanceProps),
1404
- height: m(s.props, _, s._instanceProps),
1405
- width: i(s.props, w, s._instanceProps)
1404
+ top: P(a.props, _, a._instanceProps),
1405
+ height: m(a.props, _, a._instanceProps),
1406
+ width: i(a.props, w, a._instanceProps)
1406
1407
  };
1407
1408
  }
1408
1409
  return z;
1409
- }, s._getItemStyleCache = void 0, s._getItemStyleCache = ct(function(_, w, y) {
1410
+ }, a._getItemStyleCache = void 0, a._getItemStyleCache = ct(function(_, w, S) {
1410
1411
  return {};
1411
- }), s._onScroll = function(_) {
1412
- var w = _.currentTarget, y = w.clientHeight, R = w.clientWidth, S = w.scrollLeft, I = w.scrollTop, N = w.scrollHeight, A = w.scrollWidth;
1413
- s.setState(function(z) {
1414
- if (z.scrollLeft === S && z.scrollTop === I)
1412
+ }), a._onScroll = function(_) {
1413
+ var w = _.currentTarget, S = w.clientHeight, R = w.clientWidth, I = w.scrollLeft, x = w.scrollTop, N = w.scrollHeight, A = w.scrollWidth;
1414
+ a.setState(function(z) {
1415
+ if (z.scrollLeft === I && z.scrollTop === x)
1415
1416
  return null;
1416
- var L = s.props.direction, O = S;
1417
+ var L = a.props.direction, O = I;
1417
1418
  if (L === "rtl")
1418
1419
  switch (Gt()) {
1419
1420
  case "negative":
1420
- O = -S;
1421
+ O = -I;
1421
1422
  break;
1422
1423
  case "positive-descending":
1423
- O = A - R - S;
1424
+ O = A - R - I;
1424
1425
  break;
1425
1426
  }
1426
1427
  O = Math.max(0, Math.min(O, A - R));
1427
- var F = Math.max(0, Math.min(I, N - y));
1428
+ var F = Math.max(0, Math.min(x, N - S));
1428
1429
  return {
1429
1430
  isScrolling: !0,
1430
- horizontalScrollDirection: z.scrollLeft < S ? "forward" : "backward",
1431
+ horizontalScrollDirection: z.scrollLeft < I ? "forward" : "backward",
1431
1432
  scrollLeft: O,
1432
1433
  scrollTop: F,
1433
- verticalScrollDirection: z.scrollTop < I ? "forward" : "backward",
1434
+ verticalScrollDirection: z.scrollTop < x ? "forward" : "backward",
1434
1435
  scrollUpdateWasRequested: !1
1435
1436
  };
1436
- }, s._resetIsScrollingDebounced);
1437
- }, s._outerRefSetter = function(_) {
1438
- var w = s.props.outerRef;
1439
- s._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1440
- }, s._resetIsScrollingDebounced = function() {
1441
- s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Br(s._resetIsScrolling, Kr);
1442
- }, s._resetIsScrolling = function() {
1443
- s._resetIsScrollingTimeoutId = null, s.setState({
1437
+ }, a._resetIsScrollingDebounced);
1438
+ }, a._outerRefSetter = function(_) {
1439
+ var w = a.props.outerRef;
1440
+ a._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1441
+ }, a._resetIsScrollingDebounced = function() {
1442
+ a._resetIsScrollingTimeoutId !== null && qt(a._resetIsScrollingTimeoutId), a._resetIsScrollingTimeoutId = Br(a._resetIsScrolling, Kr);
1443
+ }, a._resetIsScrolling = function() {
1444
+ a._resetIsScrollingTimeoutId = null, a.setState({
1444
1445
  isScrolling: !1
1445
1446
  }, function() {
1446
- s._getItemStyleCache(-1);
1447
+ a._getItemStyleCache(-1);
1447
1448
  });
1448
- }, s;
1449
+ }, a;
1449
1450
  }
1450
- g.getDerivedStateFromProps = function(s, _) {
1451
- return Qr(s, _), T(s), null;
1451
+ g.getDerivedStateFromProps = function(a, _) {
1452
+ return Qr(a, _), T(a), null;
1452
1453
  };
1453
1454
  var h = g.prototype;
1454
- return h.scrollTo = function(s) {
1455
- var _ = s.scrollLeft, w = s.scrollTop;
1456
- _ !== void 0 && (_ = Math.max(0, _)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(y) {
1457
- return _ === void 0 && (_ = y.scrollLeft), w === void 0 && (w = y.scrollTop), y.scrollLeft === _ && y.scrollTop === w ? null : {
1458
- horizontalScrollDirection: y.scrollLeft < _ ? "forward" : "backward",
1455
+ return h.scrollTo = function(a) {
1456
+ var _ = a.scrollLeft, w = a.scrollTop;
1457
+ _ !== void 0 && (_ = Math.max(0, _)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(S) {
1458
+ return _ === void 0 && (_ = S.scrollLeft), w === void 0 && (w = S.scrollTop), S.scrollLeft === _ && S.scrollTop === w ? null : {
1459
+ horizontalScrollDirection: S.scrollLeft < _ ? "forward" : "backward",
1459
1460
  scrollLeft: _,
1460
1461
  scrollTop: w,
1461
1462
  scrollUpdateWasRequested: !0,
1462
- verticalScrollDirection: y.scrollTop < w ? "forward" : "backward"
1463
+ verticalScrollDirection: S.scrollTop < w ? "forward" : "backward"
1463
1464
  };
1464
1465
  }, this._resetIsScrollingDebounced);
1465
- }, h.scrollToItem = function(s) {
1466
- var _ = s.align, w = _ === void 0 ? "auto" : _, y = s.columnIndex, R = s.rowIndex, S = this.props, I = S.columnCount, N = S.height, A = S.rowCount, z = S.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, $ = jr();
1467
- y !== void 0 && (y = Math.max(0, Math.min(y, I - 1))), R !== void 0 && (R = Math.max(0, Math.min(R, A - 1)));
1466
+ }, h.scrollToItem = function(a) {
1467
+ var _ = a.align, w = _ === void 0 ? "auto" : _, S = a.columnIndex, R = a.rowIndex, I = this.props, x = I.columnCount, N = I.height, A = I.rowCount, z = I.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, $ = jr();
1468
+ S !== void 0 && (S = Math.max(0, Math.min(S, x - 1))), R !== void 0 && (R = Math.max(0, Math.min(R, A - 1)));
1468
1469
  var M = c(this.props, this._instanceProps), B = l(this.props, this._instanceProps), K = B > z ? $ : 0, U = M > N ? $ : 0;
1469
1470
  this.scrollTo({
1470
- scrollLeft: y !== void 0 ? d(this.props, y, w, O, this._instanceProps, U) : O,
1471
+ scrollLeft: S !== void 0 ? d(this.props, S, w, O, this._instanceProps, U) : O,
1471
1472
  scrollTop: R !== void 0 ? f(this.props, R, w, F, this._instanceProps, K) : F
1472
1473
  });
1473
1474
  }, h.componentDidMount = function() {
1474
- var s = this.props, _ = s.initialScrollLeft, w = s.initialScrollTop;
1475
+ var a = this.props, _ = a.initialScrollLeft, w = a.initialScrollTop;
1475
1476
  if (this._outerRef != null) {
1476
- var y = this._outerRef;
1477
- typeof _ == "number" && (y.scrollLeft = _), typeof w == "number" && (y.scrollTop = w);
1477
+ var S = this._outerRef;
1478
+ typeof _ == "number" && (S.scrollLeft = _), typeof w == "number" && (S.scrollTop = w);
1478
1479
  }
1479
1480
  this._callPropsCallbacks();
1480
1481
  }, h.componentDidUpdate = function() {
1481
- var s = this.props.direction, _ = this.state, w = _.scrollLeft, y = _.scrollTop, R = _.scrollUpdateWasRequested;
1482
+ var a = this.props.direction, _ = this.state, w = _.scrollLeft, S = _.scrollTop, R = _.scrollUpdateWasRequested;
1482
1483
  if (R && this._outerRef != null) {
1483
- var S = this._outerRef;
1484
- if (s === "rtl")
1484
+ var I = this._outerRef;
1485
+ if (a === "rtl")
1485
1486
  switch (Gt()) {
1486
1487
  case "negative":
1487
- S.scrollLeft = -w;
1488
+ I.scrollLeft = -w;
1488
1489
  break;
1489
1490
  case "positive-ascending":
1490
- S.scrollLeft = w;
1491
+ I.scrollLeft = w;
1491
1492
  break;
1492
1493
  default:
1493
- var I = S.clientWidth, N = S.scrollWidth;
1494
- S.scrollLeft = N - I - w;
1494
+ var x = I.clientWidth, N = I.scrollWidth;
1495
+ I.scrollLeft = N - x - w;
1495
1496
  break;
1496
1497
  }
1497
1498
  else
1498
- S.scrollLeft = Math.max(0, w);
1499
- S.scrollTop = Math.max(0, y);
1499
+ I.scrollLeft = Math.max(0, w);
1500
+ I.scrollTop = Math.max(0, S);
1500
1501
  }
1501
1502
  this._callPropsCallbacks();
1502
1503
  }, h.componentWillUnmount = function() {
1503
1504
  this._resetIsScrollingTimeoutId !== null && qt(this._resetIsScrollingTimeoutId);
1504
1505
  }, h.render = function() {
1505
- var s = this.props, _ = s.children, w = s.className, y = s.columnCount, R = s.direction, S = s.height, I = s.innerRef, N = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, O = L === void 0 ? Zr : L, F = s.outerElementType, $ = s.outerTagName, M = s.rowCount, B = s.style, K = s.useIsScrolling, U = s.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], ae = [];
1506
- if (y > 0 && M)
1506
+ var a = this.props, _ = a.children, w = a.className, S = a.columnCount, R = a.direction, I = a.height, x = a.innerRef, N = a.innerElementType, A = a.innerTagName, z = a.itemData, L = a.itemKey, O = L === void 0 ? Zr : L, F = a.outerElementType, $ = a.outerTagName, M = a.rowCount, B = a.style, K = a.useIsScrolling, U = a.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], se = [];
1507
+ if (S > 0 && M)
1507
1508
  for (var Pe = ee; Pe <= ie; Pe++)
1508
1509
  for (var fe = Z; fe <= Y; fe++)
1509
- ae.push(Ve(_, {
1510
+ se.push(Ve(_, {
1510
1511
  columnIndex: fe,
1511
1512
  data: z,
1512
1513
  isScrolling: K ? re : void 0,
@@ -1525,7 +1526,7 @@ function Xr(t) {
1525
1526
  ref: this._outerRefSetter,
1526
1527
  style: ft({
1527
1528
  position: "relative",
1528
- height: S,
1529
+ height: I,
1529
1530
  width: U,
1530
1531
  overflow: "auto",
1531
1532
  WebkitOverflowScrolling: "touch",
@@ -1533,8 +1534,8 @@ function Xr(t) {
1533
1534
  direction: R
1534
1535
  }, B)
1535
1536
  }, Ve(N || A || "div", {
1536
- children: ae,
1537
- ref: I,
1537
+ children: se,
1538
+ ref: x,
1538
1539
  style: {
1539
1540
  height: nt,
1540
1541
  pointerEvents: re ? "none" : void 0,
@@ -1542,27 +1543,27 @@ function Xr(t) {
1542
1543
  }
1543
1544
  }));
1544
1545
  }, h._callPropsCallbacks = function() {
1545
- var s = this.props, _ = s.columnCount, w = s.onItemsRendered, y = s.onScroll, R = s.rowCount;
1546
+ var a = this.props, _ = a.columnCount, w = a.onItemsRendered, S = a.onScroll, R = a.rowCount;
1546
1547
  if (typeof w == "function" && _ > 0 && R > 0) {
1547
- var S = this._getHorizontalRangeToRender(), I = S[0], N = S[1], A = S[2], z = S[3], L = this._getVerticalRangeToRender(), O = L[0], F = L[1], $ = L[2], M = L[3];
1548
- this._callOnItemsRendered(I, N, O, F, A, z, $, M);
1548
+ var I = this._getHorizontalRangeToRender(), x = I[0], N = I[1], A = I[2], z = I[3], L = this._getVerticalRangeToRender(), O = L[0], F = L[1], $ = L[2], M = L[3];
1549
+ this._callOnItemsRendered(x, N, O, F, A, z, $, M);
1549
1550
  }
1550
- if (typeof y == "function") {
1551
+ if (typeof S == "function") {
1551
1552
  var B = this.state, K = B.horizontalScrollDirection, U = B.scrollLeft, re = B.scrollTop, G = B.scrollUpdateWasRequested, Z = B.verticalScrollDirection;
1552
1553
  this._callOnScroll(U, re, K, Z, G);
1553
1554
  }
1554
1555
  }, h._getHorizontalRangeToRender = function() {
1555
- var s = this.props, _ = s.columnCount, w = s.overscanColumnCount, y = s.overscanColumnsCount, R = s.overscanCount, S = s.rowCount, I = this.state, N = I.horizontalScrollDirection, A = I.isScrolling, z = I.scrollLeft, L = w || y || R || 1;
1556
- if (_ === 0 || S === 0)
1556
+ var a = this.props, _ = a.columnCount, w = a.overscanColumnCount, S = a.overscanColumnsCount, R = a.overscanCount, I = a.rowCount, x = this.state, N = x.horizontalScrollDirection, A = x.isScrolling, z = x.scrollLeft, L = w || S || R || 1;
1557
+ if (_ === 0 || I === 0)
1557
1558
  return [0, 0, 0, 0];
1558
1559
  var O = r(this.props, z, this._instanceProps), F = o(this.props, O, z, this._instanceProps), $ = !A || N === "backward" ? Math.max(1, L) : 1, M = !A || N === "forward" ? Math.max(1, L) : 1;
1559
1560
  return [Math.max(0, O - $), Math.max(0, Math.min(_ - 1, F + M)), O, F];
1560
1561
  }, h._getVerticalRangeToRender = function() {
1561
- var s = this.props, _ = s.columnCount, w = s.overscanCount, y = s.overscanRowCount, R = s.overscanRowsCount, S = s.rowCount, I = this.state, N = I.isScrolling, A = I.verticalScrollDirection, z = I.scrollTop, L = y || R || w || 1;
1562
- if (_ === 0 || S === 0)
1562
+ var a = this.props, _ = a.columnCount, w = a.overscanCount, S = a.overscanRowCount, R = a.overscanRowsCount, I = a.rowCount, x = this.state, N = x.isScrolling, A = x.verticalScrollDirection, z = x.scrollTop, L = S || R || w || 1;
1563
+ if (_ === 0 || I === 0)
1563
1564
  return [0, 0, 0, 0];
1564
1565
  var O = p(this.props, z, this._instanceProps), F = v(this.props, O, z, this._instanceProps), $ = !N || A === "backward" ? Math.max(1, L) : 1, M = !N || A === "forward" ? Math.max(1, L) : 1;
1565
- return [Math.max(0, O - $), Math.max(0, Math.min(S - 1, F + M)), O, F];
1566
+ return [Math.max(0, O - $), Math.max(0, Math.min(I - 1, F + M)), O, F];
1566
1567
  }, g;
1567
1568
  }(to), e.defaultProps = {
1568
1569
  direction: "ltr",
@@ -1595,7 +1596,7 @@ var Qr = function(e, n) {
1595
1596
  }
1596
1597
  var f = r - c - 1, m = f * i;
1597
1598
  return l + m;
1598
- }, xn = function(e, n) {
1599
+ }, yn = function(e, n) {
1599
1600
  var r = e.columnCount, o = n.columnMetadataMap, i = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, l = 0;
1600
1601
  if (c >= r && (c = r - 1), c >= 0) {
1601
1602
  var d = o[c];
@@ -1625,8 +1626,8 @@ var Qr = function(e, n) {
1625
1626
  var i, c;
1626
1627
  e === "column" ? (i = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1627
1628
  var l = c > 0 ? i[c].offset : 0;
1628
- return l >= o ? yn(e, n, r, c, 0, o) : Yr(e, n, r, Math.max(0, c), o);
1629
- }, yn = function(e, n, r, o, i, c) {
1629
+ return l >= o ? Sn(e, n, r, c, 0, o) : Yr(e, n, r, Math.max(0, c), o);
1630
+ }, Sn = function(e, n, r, o, i, c) {
1630
1631
  for (; i <= o; ) {
1631
1632
  var l = i + Math.floor((o - i) / 2), d = ge(e, n, l, r).offset;
1632
1633
  if (d === c)
@@ -1637,9 +1638,9 @@ var Qr = function(e, n) {
1637
1638
  }, Yr = function(e, n, r, o, i) {
1638
1639
  for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; o < c && ge(e, n, o, r).offset < i; )
1639
1640
  o += l, l *= 2;
1640
- return yn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
1641
+ return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
1641
1642
  }, Bt = function(e, n, r, o, i, c, l) {
1642
- var d = e === "column" ? n.width : n.height, f = ge(e, n, r, c), m = e === "column" ? xn(n, c) : Pn(n, c), P = Math.max(0, Math.min(m - d, f.offset)), p = Math.max(0, f.offset - d + l + f.size);
1643
+ var d = e === "column" ? n.width : n.height, f = ge(e, n, r, c), m = e === "column" ? yn(n, c) : Pn(n, c), P = Math.max(0, Math.min(m - d, f.offset)), p = Math.max(0, f.offset - d + l + f.size);
1643
1644
  switch (o === "smart" && (i >= p - d && i <= P + d ? o = "auto" : o = "center"), o) {
1644
1645
  case "start":
1645
1646
  return P;
@@ -1667,7 +1668,7 @@ var Qr = function(e, n) {
1667
1668
  return r.columnMetadataMap[n].size;
1668
1669
  },
1669
1670
  getEstimatedTotalHeight: Pn,
1670
- getEstimatedTotalWidth: xn,
1671
+ getEstimatedTotalWidth: yn,
1671
1672
  getOffsetForColumnAndAlignment: function(e, n, r, o, i, c) {
1672
1673
  return Bt("column", e, n, r, o, i, c);
1673
1674
  },
@@ -1740,8 +1741,8 @@ function ni(t, e) {
1740
1741
  }
1741
1742
  const oi = () => {
1742
1743
  const { viewMode: t } = Fe(), { scrollMode: e } = Ee(), { setColumnCount: n } = rn(), { virtualScrollableElementRef: r } = Ye(), o = qe(), i = W(() => o.heights.length, [o.heights]), c = W(() => e === ne.HORIZONTAL_SCROLLING ? i : t === Re.DUAL_PAGE ? 2 : 1, [t, e, e, i, r]), l = W(() => o.widths.reduce((b, C, T) => {
1743
- const x = T % c;
1744
- return (!b[x] || C > b[x]) && (b[x] = C), b;
1744
+ const y = T % c;
1745
+ return (!b[y] || C > b[y]) && (b[y] = C), b;
1745
1746
  }, []), [o.widths, c]), d = E(
1746
1747
  (v) => {
1747
1748
  const b = v % l.length;
@@ -1751,8 +1752,8 @@ const oi = () => {
1751
1752
  ), f = E(
1752
1753
  (v) => {
1753
1754
  const b = Array.from({ length: c }, (C, T) => {
1754
- const x = v * c + T;
1755
- return o.heights[x] || 0;
1755
+ const y = v * c + T;
1756
+ return o.heights[y] || 0;
1756
1757
  });
1757
1758
  return Math.max(...b);
1758
1759
  },
@@ -1772,10 +1773,10 @@ const oi = () => {
1772
1773
  estimatedColumnWidth: p
1773
1774
  };
1774
1775
  };
1775
- let ce;
1776
- typeof window < "u" ? ce = window : typeof self < "u" ? ce = self : ce = global;
1776
+ let le;
1777
+ typeof window < "u" ? le = window : typeof self < "u" ? le = self : le = global;
1777
1778
  let gt = null, vt = null;
1778
- const Kt = 20, dt = ce.clearTimeout, Zt = ce.setTimeout, ut = ce.cancelAnimationFrame || ce.mozCancelAnimationFrame || ce.webkitCancelAnimationFrame, Xt = ce.requestAnimationFrame || ce.mozRequestAnimationFrame || ce.webkitRequestAnimationFrame;
1779
+ const Kt = 20, dt = le.clearTimeout, Zt = le.setTimeout, ut = le.cancelAnimationFrame || le.mozCancelAnimationFrame || le.webkitCancelAnimationFrame, Xt = le.requestAnimationFrame || le.mozRequestAnimationFrame || le.webkitRequestAnimationFrame;
1779
1780
  ut == null || Xt == null ? (gt = dt, vt = function(e) {
1780
1781
  return Zt(e, Kt);
1781
1782
  }) : (gt = function([e, n]) {
@@ -1792,18 +1793,18 @@ function ri(t) {
1792
1793
  let e, n, r, o, i, c, l;
1793
1794
  const d = typeof document < "u" && document.attachEvent;
1794
1795
  if (!d) {
1795
- c = function(x) {
1796
- const g = x.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, s = h.firstElementChild;
1797
- u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight, s.style.width = h.offsetWidth + 1 + "px", s.style.height = h.offsetHeight + 1 + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight;
1798
- }, i = function(x) {
1799
- return x.offsetWidth !== x.__resizeLast__.width || x.offsetHeight !== x.__resizeLast__.height;
1800
- }, l = function(x) {
1801
- if (x.target.className && typeof x.target.className.indexOf == "function" && x.target.className.indexOf("contract-trigger") < 0 && x.target.className.indexOf("expand-trigger") < 0)
1796
+ c = function(y) {
1797
+ const g = y.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, a = h.firstElementChild;
1798
+ u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight, a.style.width = h.offsetWidth + 1 + "px", a.style.height = h.offsetHeight + 1 + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight;
1799
+ }, i = function(y) {
1800
+ return y.offsetWidth !== y.__resizeLast__.width || y.offsetHeight !== y.__resizeLast__.height;
1801
+ }, l = function(y) {
1802
+ if (y.target.className && typeof y.target.className.indexOf == "function" && y.target.className.indexOf("contract-trigger") < 0 && y.target.className.indexOf("expand-trigger") < 0)
1802
1803
  return;
1803
1804
  const g = this;
1804
1805
  c(this), this.__resizeRAF__ && gt(this.__resizeRAF__), this.__resizeRAF__ = vt(function() {
1805
- i(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(s) {
1806
- s.call(g, x);
1806
+ i(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(a) {
1807
+ a.call(g, y);
1807
1808
  }));
1808
1809
  });
1809
1810
  };
@@ -1812,10 +1813,10 @@ function ri(t) {
1812
1813
  const b = "Webkit Moz O ms".split(" ");
1813
1814
  let C = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), T = "";
1814
1815
  {
1815
- const x = document.createElement("fakeelement");
1816
- if (x.style.animationName !== void 0 && (p = !0), p === !1) {
1816
+ const y = document.createElement("fakeelement");
1817
+ if (y.style.animationName !== void 0 && (p = !0), p === !1) {
1817
1818
  for (let g = 0; g < b.length; g++)
1818
- if (x.style[b[g] + "AnimationName"] !== void 0) {
1819
+ if (y.style[b[g] + "AnimationName"] !== void 0) {
1819
1820
  T = b[g], v = "-" + T.toLowerCase() + "-", r = C[g], p = !0;
1820
1821
  break;
1821
1822
  }
@@ -1835,12 +1836,12 @@ function ri(t) {
1835
1836
  p.attachEvent("onresize", v);
1836
1837
  else {
1837
1838
  if (!p.__resizeTriggers__) {
1838
- const b = p.ownerDocument, C = ce.getComputedStyle(p);
1839
+ const b = p.ownerDocument, C = le.getComputedStyle(p);
1839
1840
  C && C.position === "static" && (p.style.position = "relative"), f(b), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1840
1841
  const T = b.createElement("div");
1841
1842
  T.className = "expand-trigger", T.appendChild(b.createElement("div"));
1842
- const x = b.createElement("div");
1843
- x.className = "contract-trigger", p.__resizeTriggers__.appendChild(T), p.__resizeTriggers__.appendChild(x), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(h) {
1843
+ const y = b.createElement("div");
1844
+ y.className = "contract-trigger", p.__resizeTriggers__.appendChild(T), p.__resizeTriggers__.appendChild(y), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(h) {
1844
1845
  h.animationName === n && c(p);
1845
1846
  }, p.__resizeTriggers__.addEventListener(r, p.__resizeTriggers__.__animationListener__));
1846
1847
  }
@@ -1927,20 +1928,20 @@ class ii extends no {
1927
1928
  width: C
1928
1929
  } = this.state, T = {
1929
1930
  overflow: "visible"
1930
- }, x = {};
1931
+ }, y = {};
1931
1932
  let g = !1;
1932
- return o || (p === 0 && (g = !0), T.height = 0, x.height = p, x.scaledHeight = v), i || (C === 0 && (g = !0), T.width = 0, x.width = C, x.scaledWidth = b), c && (g = !1), Ve(m, {
1933
+ return o || (p === 0 && (g = !0), T.height = 0, y.height = p, y.scaledHeight = v), i || (C === 0 && (g = !0), T.width = 0, y.width = C, y.scaledWidth = b), c && (g = !1), Ve(m, {
1933
1934
  ref: this._setRef,
1934
1935
  style: {
1935
1936
  ...T,
1936
1937
  ...f
1937
1938
  },
1938
1939
  ...P
1939
- }, !g && e(x));
1940
+ }, !g && e(y));
1940
1941
  }
1941
1942
  }
1942
- const ai = nn(({ widths: t, heights: e }) => {
1943
- const { focusedPage: n, totalPages: r } = le(), o = W(() => {
1943
+ const si = nn(({ widths: t, heights: e }) => {
1944
+ const { focusedPage: n, totalPages: r } = de(), o = W(() => {
1944
1945
  const l = [], d = Math.ceil(n / 2) * 2 - 1;
1945
1946
  if (l.push(d), d + 1 <= r) {
1946
1947
  const f = d + 1;
@@ -1964,35 +1965,35 @@ const ai = nn(({ widths: t, heights: e }) => {
1964
1965
  }
1965
1966
  ];
1966
1967
  }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1967
- return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(xt, { style: i[d], pageNumber: l }, l)) });
1968
- }), si = ({ widths: t, heights: e }) => {
1969
- const { focusedPage: n } = le(), r = W(() => ({
1968
+ return /* @__PURE__ */ s("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ s(yt, { style: i[d], pageNumber: l }, l)) });
1969
+ }), ai = ({ widths: t, heights: e }) => {
1970
+ const { focusedPage: n } = de(), r = W(() => ({
1970
1971
  position: "absolute",
1971
1972
  width: t(n - 1),
1972
1973
  height: e(n - 1)
1973
1974
  }), [t, e, n]), o = W(() => t(n - 1), [t]);
1974
- return /* @__PURE__ */ a(
1975
+ return /* @__PURE__ */ s(
1975
1976
  "div",
1976
1977
  {
1977
1978
  style: {
1978
1979
  width: o,
1979
1980
  position: "relative"
1980
1981
  },
1981
- children: /* @__PURE__ */ a(xt, { style: r, pageNumber: n }, n)
1982
+ children: /* @__PURE__ */ s(yt, { style: r, pageNumber: n }, n)
1982
1983
  }
1983
1984
  );
1984
1985
  }, ci = (t, e, n) => {
1985
- const r = k(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = le(), [d, f] = q([]), { targetScrollPage: m } = an(), P = bt(d, 0, 500), p = W(() => i.map((b, C) => {
1986
- const T = c[C], x = or(C + 1, t), g = T * x.columnIndex, h = b * x.rowIndex, u = g + T, s = h + b;
1986
+ const r = k(), { contentRef: o } = _e(), { heights: i, widths: c } = qe(), { setFocusedPage: l } = de(), [d, f] = q([]), { targetScrollPage: m } = sn(), P = bt(d, 0, 500), p = W(() => i.map((b, C) => {
1987
+ const T = c[C], y = or(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, a = h + b;
1987
1988
  return {
1988
1989
  pageNumber: C + 1,
1989
- ...x,
1990
+ ...y,
1990
1991
  width: T,
1991
1992
  height: b,
1992
1993
  startX: g,
1993
1994
  startY: h,
1994
1995
  endX: u,
1995
- endY: s
1996
+ endY: a
1996
1997
  };
1997
1998
  }), [i, c, t, e]);
1998
1999
  D(() => {
@@ -2009,17 +2010,17 @@ const ai = nn(({ widths: t, heights: e }) => {
2009
2010
  startLeft: C.scrollLeft,
2010
2011
  endTop: C.scrollTop + C.clientHeight,
2011
2012
  endLeft: C.scrollLeft + C.clientWidth
2012
- }, x = p.filter((g) => {
2013
+ }, y = p.filter((g) => {
2013
2014
  const h = g.endX >= T.startLeft && g.endY >= T.startTop, u = g.startX <= T.endLeft && g.startY <= T.endTop;
2014
2015
  return h && u;
2015
2016
  }).map((g) => {
2016
- const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, s = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = s - h, y = _ - u, S = +(w * y / (g.width * g.height) * 100).toFixed(2);
2017
+ const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, a = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = a - h, S = _ - u, I = +(w * S / (g.width * g.height) * 100).toFixed(2);
2017
2018
  return {
2018
2019
  pageNumber: g.pageNumber,
2019
- ratio: S
2020
+ ratio: I
2020
2021
  };
2021
2022
  }).sort((g, h) => h.ratio - g.ratio);
2022
- f(x);
2023
+ f(y);
2023
2024
  });
2024
2025
  },
2025
2026
  [o, p]
@@ -2030,14 +2031,14 @@ const ai = nn(({ widths: t, heights: e }) => {
2030
2031
  n == null || n.removeEventListener("scroll", v);
2031
2032
  };
2032
2033
  }, [n, v]);
2033
- }, Sn = et((t, e) => {
2034
- const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = No(), { darkMode: f } = so();
2035
- return /* @__PURE__ */ a(
2034
+ }, In = et((t, e) => {
2035
+ const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = No(), { darkMode: f } = ao();
2036
+ return /* @__PURE__ */ s(
2036
2037
  "div",
2037
2038
  {
2038
2039
  ref: e,
2039
2040
  ...c,
2040
- className: se(
2041
+ className: ce(
2041
2042
  we["rp-theme-variables"],
2042
2043
  we["rp-container"],
2043
2044
  f ? we["rp-dark-mode"] : "",
@@ -2054,8 +2055,8 @@ const ai = nn(({ widths: t, heights: e }) => {
2054
2055
  );
2055
2056
  }), li = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2056
2057
  const o = rr(e, t, n.columnCount);
2057
- return /* @__PURE__ */ a(xt, { style: r, pageNumber: o }, o);
2058
- }, ni), Qs = () => {
2058
+ return /* @__PURE__ */ s(yt, { style: r, pageNumber: o }, o);
2059
+ }, ni), Qa = () => {
2059
2060
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = uo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2060
2061
  virtualScrollRef: l,
2061
2062
  getVirtualScrollRef: d,
@@ -2065,10 +2066,10 @@ const ai = nn(({ widths: t, heights: e }) => {
2065
2066
  virtualScrollableElementRef: p,
2066
2067
  totalInnerDimensions: v,
2067
2068
  pageScrollElementRef: b
2068
- } = Ye(), C = k(!0), { nextPage: T, prevPage: x, setFocusedPage: g, focusedPage: h } = le(), { scrollMode: u } = Ee(), { viewMode: s } = Fe(), _ = k(null), { loading: w, error: y } = oe(), { passwordRequired: R } = ao(), { LoaderImageComponent: S } = sn(), I = k(
2069
+ } = Ye(), C = k(!0), { nextPage: T, prevPage: y, setFocusedPage: g, focusedPage: h } = de(), { scrollMode: u } = Ee(), { viewMode: a } = Fe(), _ = k(null), { loading: w, error: S } = oe(), { passwordRequired: R } = so(), { LoaderImageComponent: I } = an(), x = k(
2069
2070
  v
2070
2071
  ), N = k({
2071
- viewMode: s,
2072
+ viewMode: a,
2072
2073
  scrollMode: u
2073
2074
  }), A = k(!1), z = k(), { isFullScreen: L } = po(), {
2074
2075
  pageDimension: O,
@@ -2087,14 +2088,14 @@ const ai = nn(({ widths: t, heights: e }) => {
2087
2088
  tr(r);
2088
2089
  const { isPressed: Y } = Jo(), { selectionMode: J } = lo(), { initializeGrabScroll: ee, resetGrabState: ie } = er({
2089
2090
  isPressed: Y
2090
- }), ae = W(() => J === ro.HAND, [J]), Pe = W(() => ({
2091
+ }), se = W(() => J === ro.HAND, [J]), Pe = W(() => ({
2091
2092
  columnCount: M
2092
2093
  }), [M]), fe = E(
2093
2094
  (V) => {
2094
2095
  const j = document.activeElement !== r;
2095
- !L && j || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), x()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2096
+ !L && j || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), y()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2096
2097
  },
2097
- [T, x, L, u]
2098
+ [T, y, L, u]
2098
2099
  );
2099
2100
  D(() => (window.addEventListener("keydown", fe), () => {
2100
2101
  window.removeEventListener("keydown", fe);
@@ -2112,8 +2113,8 @@ const ai = nn(({ widths: t, heights: e }) => {
2112
2113
  (V, j) => {
2113
2114
  if (!p)
2114
2115
  return { scrollTop: 0, scrollLeft: 0 };
2115
- const xe = Z.current.scrollTop > j, ye = Z.current.scrollLeft > V;
2116
- return xe || ye ? Z.current : {
2116
+ const ye = Z.current.scrollTop > j, Se = Z.current.scrollLeft > V;
2117
+ return ye || Se ? Z.current : {
2117
2118
  scrollTop: p.scrollTop,
2118
2119
  scrollLeft: p.scrollLeft
2119
2120
  };
@@ -2121,22 +2122,22 @@ const ai = nn(({ widths: t, heights: e }) => {
2121
2122
  [p]
2122
2123
  ), Ue = E(
2123
2124
  (V, j) => {
2124
- if (N.current.viewMode !== s || N.current.scrollMode !== u) {
2125
+ if (N.current.viewMode !== a || N.current.scrollMode !== u) {
2125
2126
  G.current && clearTimeout(G.current), A.current = !0, c(h, "auto"), G.current = setTimeout(() => {
2126
2127
  requestAnimationFrame(() => {
2127
- N.current = { viewMode: s, scrollMode: u };
2128
+ N.current = { viewMode: a, scrollMode: u };
2128
2129
  });
2129
2130
  }, 100);
2130
2131
  return;
2131
2132
  }
2132
- const ye = V.scrollTop, ot = V.scrollLeft;
2133
+ const Se = V.scrollTop, ot = V.scrollLeft;
2133
2134
  if (!j.height || !j.width)
2134
2135
  return;
2135
2136
  A.current = !0;
2136
- const { height: Se, width: rt } = j, { height: Lt, width: Et } = I.current;
2137
- if (Lt === Se && Et === rt)
2137
+ const { height: Ie, width: rt } = j, { height: Lt, width: Et } = x.current;
2138
+ if (Lt === Ie && Et === rt)
2138
2139
  return;
2139
- const Qn = ye / Lt * Se, Yn = ot / Et * rt, Jn = Math.round(Math.min(Qn, Se)) || 0, eo = Math.round(Math.min(Yn, rt)) || 0;
2140
+ const Qn = Se / Lt * Ie, Yn = ot / Et * rt, Jn = Math.round(Math.min(Qn, Ie)) || 0, eo = Math.round(Math.min(Yn, rt)) || 0;
2140
2141
  z.current = setTimeout(() => {
2141
2142
  requestAnimationFrame(() => {
2142
2143
  l == null || l.scrollTo({
@@ -2144,23 +2145,23 @@ const ai = nn(({ widths: t, heights: e }) => {
2144
2145
  scrollLeft: eo
2145
2146
  });
2146
2147
  });
2147
- }, 0), I.current = {
2148
+ }, 0), x.current = {
2148
2149
  height: j.height,
2149
2150
  width: j.width
2150
2151
  };
2151
2152
  },
2152
- [l, s, u, c]
2153
+ [l, a, u, c]
2153
2154
  );
2154
2155
  D(() => {
2155
2156
  clearTimeout(z.current);
2156
2157
  const V = Array.from({ length: F }).reduce(
2157
- (ye, ot, Se) => ye + $(Se),
2158
+ (Se, ot, Ie) => Se + $(Ie),
2158
2159
  0
2159
2160
  ), j = Array.from({ length: M }).reduce(
2160
- (ye, ot, Se) => ye + B(Se),
2161
+ (Se, ot, Ie) => Se + B(Ie),
2161
2162
  0
2162
- ), xe = nt(j, V);
2163
- Z.current = xe, Ue(xe, { height: V, width: j }), P({
2163
+ ), ye = nt(j, V);
2164
+ Z.current = ye, Ue(ye, { height: V, width: j }), P({
2164
2165
  height: V,
2165
2166
  width: j
2166
2167
  });
@@ -2177,17 +2178,17 @@ const ai = nn(({ widths: t, heights: e }) => {
2177
2178
  D(() => () => {
2178
2179
  G.current && clearTimeout(G.current);
2179
2180
  }, []);
2180
- const Zn = W(() => se(de["rp-pages-container"], {
2181
- [de["rp-cursor-grab"]]: ae && !Y,
2182
- [de["rp-cursor-grabbing"]]: ae && Y
2183
- }), [ae, Y]), Xn = E(
2181
+ const Zn = W(() => ce(ae["rp-pages-container"], {
2182
+ [ae["rp-cursor-grab"]]: se && !Y,
2183
+ [ae["rp-cursor-grabbing"]]: se && Y
2184
+ }), [se, Y]), Xn = E(
2184
2185
  (V) => {
2185
- if (ae && V) {
2186
- const j = se(de["rp-pages"]), xe = document.querySelector(`.${j}`);
2187
- ee(xe);
2186
+ if (se && V) {
2187
+ const j = ce(ae["rp-pages"]), ye = document.querySelector(`.${j}`);
2188
+ ee(ye);
2188
2189
  }
2189
2190
  },
2190
- [ae, ee, de]
2191
+ [se, ee, ae]
2191
2192
  );
2192
2193
  return D(() => {
2193
2194
  w && ie();
@@ -2206,22 +2207,22 @@ const ai = nn(({ widths: t, heights: e }) => {
2206
2207
  g,
2207
2208
  re
2208
2209
  ]), /* @__PURE__ */ H(pe, { children: [
2209
- /* @__PURE__ */ a(Eo, { ref: i, children: /* @__PURE__ */ a(
2210
- Sn,
2210
+ /* @__PURE__ */ s(Eo, { ref: i, children: /* @__PURE__ */ s(
2211
+ In,
2211
2212
  {
2212
2213
  id: n,
2213
2214
  ref: o,
2214
2215
  tabIndex: -1,
2215
2216
  className: Zn,
2216
- children: /* @__PURE__ */ a(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: j }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: j }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2217
+ children: /* @__PURE__ */ s(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: j }) => /* @__PURE__ */ s("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: j }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ s(
2217
2218
  "div",
2218
2219
  {
2219
2220
  ref: f,
2220
2221
  style: { width: V, height: j },
2221
- className: se(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
2222
- children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ai, { widths: B, heights: $ }) : /* @__PURE__ */ a(si, { widths: B, heights: $ })
2222
+ className: ce(ae["rp-pages"], ae["rp-page-scrolling-wrapper"]),
2223
+ children: a === Re.DUAL_PAGE ? /* @__PURE__ */ s(si, { widths: B, heights: $ }) : /* @__PURE__ */ s(ai, { widths: B, heights: $ })
2223
2224
  }
2224
- ) : U ? /* @__PURE__ */ a(
2225
+ ) : U ? /* @__PURE__ */ s(
2225
2226
  Jr,
2226
2227
  {
2227
2228
  ref: d,
@@ -2237,9 +2238,9 @@ const ai = nn(({ widths: t, heights: e }) => {
2237
2238
  estimatedColumnWidth: K,
2238
2239
  estimatedRowHeight: U,
2239
2240
  rowCount: F,
2240
- className: se(
2241
- de["rp-pages"],
2242
- u === ne.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
2241
+ className: ce(
2242
+ ae["rp-pages"],
2243
+ u === ne.HORIZONTAL_SCROLLING ? ae["rp-pages-horizontal-scroll"] : ""
2243
2244
  ),
2244
2245
  style: {
2245
2246
  "--rp-page-height": `${U}px`,
@@ -2249,10 +2250,10 @@ const ai = nn(({ widths: t, heights: e }) => {
2249
2250
  },
2250
2251
  children: li
2251
2252
  }
2252
- ) : !w && !y ? /* @__PURE__ */ a(
2253
+ ) : !w && !S ? /* @__PURE__ */ s(
2253
2254
  "div",
2254
2255
  {
2255
- className: de["rp-loader"],
2256
+ className: ae["rp-loader"],
2256
2257
  style: {
2257
2258
  display: "flex",
2258
2259
  justifyContent: "center",
@@ -2260,22 +2261,22 @@ const ai = nn(({ widths: t, heights: e }) => {
2260
2261
  height: "100%",
2261
2262
  width: "100%"
2262
2263
  },
2263
- children: S && /* @__PURE__ */ a(S, {})
2264
+ children: I && /* @__PURE__ */ s(I, {})
2264
2265
  }
2265
- ) : y === io.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: de["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2266
+ ) : S === io.NOT_SUPPORTED ? /* @__PURE__ */ s("div", { className: ae["rp-not-supported"], children: /* @__PURE__ */ H("div", { className: ae["rp-not-supported-content"], children: [
2266
2267
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2267
- /* @__PURE__ */ H("ul", { children: [
2268
- /* @__PURE__ */ a("li", { children: "Chrome 110+" }),
2269
- /* @__PURE__ */ a("li", { children: "Edge 115+" }),
2270
- /* @__PURE__ */ a("li", { children: "Firefox 115+" }),
2271
- /* @__PURE__ */ a("li", { children: "Safari 16.5+" }),
2272
- /* @__PURE__ */ a("li", { children: "Safari iOS 16.5+" }),
2273
- /* @__PURE__ */ a("li", { children: "Chrome Android 126+" })
2274
- ] })
2268
+ /* @__PURE__ */ s("div", { children: /* @__PURE__ */ H("ul", { children: [
2269
+ /* @__PURE__ */ s("li", { children: "Chrome 110+" }),
2270
+ /* @__PURE__ */ s("li", { children: "Edge 115+" }),
2271
+ /* @__PURE__ */ s("li", { children: "Firefox 115+" }),
2272
+ /* @__PURE__ */ s("li", { children: "Safari 16.5+" }),
2273
+ /* @__PURE__ */ s("li", { children: "Safari iOS 16.5+" }),
2274
+ /* @__PURE__ */ s("li", { children: "Chrome Android 126+" })
2275
+ ] }) })
2275
2276
  ] }) }) : null }) })
2276
2277
  }
2277
2278
  ) }),
2278
- R && /* @__PURE__ */ a(nr, {})
2279
+ R && /* @__PURE__ */ s(nr, {})
2279
2280
  ] });
2280
2281
  }, Me = {
2281
2282
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2289,12 +2290,12 @@ const ai = nn(({ widths: t, heights: e }) => {
2289
2290
  "rp-total-page": "_rp-total-page_1gck0_18"
2290
2291
  }, di = () => {
2291
2292
  const { prevIcon: t } = Ce(), { prevIcon: e } = be();
2292
- return t || e || /* @__PURE__ */ a(Ze, {});
2293
+ return t || e || /* @__PURE__ */ s(Ze, {});
2293
2294
  }, ui = () => {
2294
2295
  const { nextIcon: t } = Ce(), { nextIcon: e } = be();
2295
- return t || e || /* @__PURE__ */ a(Ze, { style: { transform: "rotate(180deg" } });
2296
+ return t || e || /* @__PURE__ */ s(Ze, { style: { transform: "rotate(180deg" } });
2296
2297
  }, pi = () => {
2297
- const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = le(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = Fe(), { scrollMode: p } = Ee(), { localeMessages: v } = he();
2298
+ const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = de(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = Fe(), { scrollMode: p } = Ee(), { localeMessages: v } = he();
2298
2299
  D(() => {
2299
2300
  l(t.toString());
2300
2301
  }, [t]);
@@ -2306,13 +2307,13 @@ const ai = nn(({ widths: t, heights: e }) => {
2306
2307
  h.success || l(h.currentPage.toString());
2307
2308
  }, [i, c, e]), T = E(() => {
2308
2309
  l(t.toString());
2309
- }, [t]), x = E(
2310
+ }, [t]), y = E(
2310
2311
  (h) => {
2311
2312
  h.key === "Enter" && C();
2312
2313
  },
2313
2314
  [C]
2314
2315
  ), g = W(() => P === Re.DUAL_PAGE && p === ne.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, P, p]);
2315
- return !d || !f ? null : typeof d != "boolean" ? /* @__PURE__ */ a(
2316
+ return !d || !f ? null : typeof d != "boolean" ? /* @__PURE__ */ s(
2316
2317
  d,
2317
2318
  {
2318
2319
  total: e,
@@ -2322,7 +2323,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2322
2323
  goToPage: i,
2323
2324
  changePage: n
2324
2325
  }
2325
- ) : typeof f != "boolean" ? /* @__PURE__ */ a(
2326
+ ) : typeof f != "boolean" ? /* @__PURE__ */ s(
2326
2327
  f,
2327
2328
  {
2328
2329
  total: e,
@@ -2333,19 +2334,19 @@ const ai = nn(({ widths: t, heights: e }) => {
2333
2334
  changePage: n
2334
2335
  }
2335
2336
  ) : /* @__PURE__ */ H("div", { className: pt["rp-paginate"], children: [
2336
- !m && /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.previousPageTooltip, children: /* @__PURE__ */ a(
2337
+ !m && /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.previousPageTooltip, children: /* @__PURE__ */ s(
2337
2338
  ve,
2338
2339
  {
2339
2340
  onClick: o,
2340
2341
  "aria-label": v == null ? void 0 : v.previousPageTooltip,
2341
2342
  "aria-disabled": t === 1,
2342
- children: /* @__PURE__ */ a(di, {})
2343
+ children: /* @__PURE__ */ s(di, {})
2343
2344
  }
2344
2345
  ) }),
2345
- /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
2346
+ /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ s(
2346
2347
  on,
2347
2348
  {
2348
- onKeyDown: x,
2349
+ onKeyDown: y,
2349
2350
  onBlur: T,
2350
2351
  onChange: b,
2351
2352
  value: c,
@@ -2358,18 +2359,18 @@ const ai = nn(({ widths: t, heights: e }) => {
2358
2359
  "/",
2359
2360
  e
2360
2361
  ] }),
2361
- !m && /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.nextPageTooltip, children: /* @__PURE__ */ a(
2362
+ !m && /* @__PURE__ */ s(Q, { content: v == null ? void 0 : v.nextPageTooltip, children: /* @__PURE__ */ s(
2362
2363
  ve,
2363
2364
  {
2364
2365
  onClick: r,
2365
2366
  "aria-label": v == null ? void 0 : v.nextPageTooltip,
2366
2367
  "aria-disabled": g,
2367
- children: /* @__PURE__ */ a(ui, {})
2368
+ children: /* @__PURE__ */ s(ui, {})
2368
2369
  }
2369
2370
  ) })
2370
2371
  ] });
2371
2372
  };
2372
- var yt = "Dialog", [In, Ys] = dr(yt), [hi, ue] = In(yt), Rn = (t) => {
2373
+ var St = "Dialog", [xn, Ya] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2373
2374
  const {
2374
2375
  __scopeDialog: e,
2375
2376
  children: n,
@@ -2382,15 +2383,15 @@ var yt = "Dialog", [In, Ys] = dr(yt), [hi, ue] = In(yt), Rn = (t) => {
2382
2383
  defaultProp: o,
2383
2384
  onChange: i
2384
2385
  });
2385
- return /* @__PURE__ */ a(
2386
+ return /* @__PURE__ */ s(
2386
2387
  hi,
2387
2388
  {
2388
2389
  scope: e,
2389
2390
  triggerRef: l,
2390
2391
  contentRef: d,
2391
- contentId: at(),
2392
- titleId: at(),
2393
- descriptionId: at(),
2392
+ contentId: st(),
2393
+ titleId: st(),
2394
+ descriptionId: st(),
2394
2395
  open: f,
2395
2396
  onOpenChange: m,
2396
2397
  onOpenToggle: X.useCallback(() => m((P) => !P), [m]),
@@ -2399,11 +2400,11 @@ var yt = "Dialog", [In, Ys] = dr(yt), [hi, ue] = In(yt), Rn = (t) => {
2399
2400
  }
2400
2401
  );
2401
2402
  };
2402
- Rn.displayName = yt;
2403
+ Rn.displayName = St;
2403
2404
  var Ln = "DialogTrigger", fi = X.forwardRef(
2404
2405
  (t, e) => {
2405
2406
  const { __scopeDialog: n, ...r } = t, o = ue(Ln, n), i = Tt(e, o.triggerRef);
2406
- return /* @__PURE__ */ a(
2407
+ return /* @__PURE__ */ s(
2407
2408
  Ge.button,
2408
2409
  {
2409
2410
  type: "button",
@@ -2419,17 +2420,17 @@ var Ln = "DialogTrigger", fi = X.forwardRef(
2419
2420
  }
2420
2421
  );
2421
2422
  fi.displayName = Ln;
2422
- var St = "DialogPortal", [mi, En] = In(St, {
2423
+ var It = "DialogPortal", [mi, En] = xn(It, {
2423
2424
  forceMount: void 0
2424
2425
  }), Nn = (t) => {
2425
- const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(St, e);
2426
- return /* @__PURE__ */ a(mi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(_r, { asChild: !0, container: o, children: c }) })) });
2426
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(It, e);
2427
+ return /* @__PURE__ */ s(mi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ s(Ct, { present: n || i.open, children: /* @__PURE__ */ s(_r, { asChild: !0, container: o, children: c }) })) });
2427
2428
  };
2428
- Nn.displayName = St;
2429
+ Nn.displayName = It;
2429
2430
  var Qe = "DialogOverlay", On = X.forwardRef(
2430
2431
  (t, e) => {
2431
2432
  const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = ue(Qe, t.__scopeDialog);
2432
- return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(gi, { ...o, ref: e }) }) : null;
2433
+ return i.modal ? /* @__PURE__ */ s(Ct, { present: r || i.open, children: /* @__PURE__ */ s(gi, { ...o, ref: e }) }) : null;
2433
2434
  }
2434
2435
  );
2435
2436
  On.displayName = Qe;
@@ -2439,7 +2440,7 @@ var gi = X.forwardRef(
2439
2440
  return (
2440
2441
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2441
2442
  // ie. when `Overlay` and `Content` are siblings
2442
- /* @__PURE__ */ a(mr, { as: ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2443
+ /* @__PURE__ */ s(mr, { as: ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
2443
2444
  Ge.div,
2444
2445
  {
2445
2446
  "data-state": Rt(o.open),
@@ -2453,7 +2454,7 @@ var gi = X.forwardRef(
2453
2454
  ), Le = "DialogContent", Dn = X.forwardRef(
2454
2455
  (t, e) => {
2455
2456
  const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = ue(Le, t.__scopeDialog);
2456
- return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(vi, { ...o, ref: e }) : /* @__PURE__ */ a(wi, { ...o, ref: e }) });
2457
+ return /* @__PURE__ */ s(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ s(vi, { ...o, ref: e }) : /* @__PURE__ */ s(wi, { ...o, ref: e }) });
2457
2458
  }
2458
2459
  );
2459
2460
  Dn.displayName = Le;
@@ -2464,7 +2465,7 @@ var vi = X.forwardRef(
2464
2465
  const i = r.current;
2465
2466
  if (i)
2466
2467
  return gr(i);
2467
- }, []), /* @__PURE__ */ a(
2468
+ }, []), /* @__PURE__ */ s(
2468
2469
  An,
2469
2470
  {
2470
2471
  ...t,
@@ -2489,7 +2490,7 @@ var vi = X.forwardRef(
2489
2490
  ), wi = X.forwardRef(
2490
2491
  (t, e) => {
2491
2492
  const n = ue(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2492
- return /* @__PURE__ */ a(
2493
+ return /* @__PURE__ */ s(
2493
2494
  An,
2494
2495
  {
2495
2496
  ...t,
@@ -2513,7 +2514,7 @@ var vi = X.forwardRef(
2513
2514
  (t, e) => {
2514
2515
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = ue(Le, n), d = X.useRef(null), f = Tt(e, d);
2515
2516
  return vr(), /* @__PURE__ */ H(pe, { children: [
2516
- /* @__PURE__ */ a(
2517
+ /* @__PURE__ */ s(
2517
2518
  wr,
2518
2519
  {
2519
2520
  asChild: !0,
@@ -2521,7 +2522,7 @@ var vi = X.forwardRef(
2521
2522
  trapped: r,
2522
2523
  onMountAutoFocus: o,
2523
2524
  onUnmountAutoFocus: i,
2524
- children: /* @__PURE__ */ a(
2525
+ children: /* @__PURE__ */ s(
2525
2526
  fr,
2526
2527
  {
2527
2528
  role: "dialog",
@@ -2537,29 +2538,29 @@ var vi = X.forwardRef(
2537
2538
  }
2538
2539
  ),
2539
2540
  /* @__PURE__ */ H(pe, { children: [
2540
- /* @__PURE__ */ a(bi, { titleId: l.titleId }),
2541
- /* @__PURE__ */ a(Ci, { contentRef: d, descriptionId: l.descriptionId })
2541
+ /* @__PURE__ */ s(bi, { titleId: l.titleId }),
2542
+ /* @__PURE__ */ s(Ci, { contentRef: d, descriptionId: l.descriptionId })
2542
2543
  ] })
2543
2544
  ] });
2544
2545
  }
2545
- ), It = "DialogTitle", zn = X.forwardRef(
2546
+ ), xt = "DialogTitle", zn = X.forwardRef(
2546
2547
  (t, e) => {
2547
- const { __scopeDialog: n, ...r } = t, o = ue(It, n);
2548
- return /* @__PURE__ */ a(Ge.h2, { id: o.titleId, ...r, ref: e });
2548
+ const { __scopeDialog: n, ...r } = t, o = ue(xt, n);
2549
+ return /* @__PURE__ */ s(Ge.h2, { id: o.titleId, ...r, ref: e });
2549
2550
  }
2550
2551
  );
2551
- zn.displayName = It;
2552
+ zn.displayName = xt;
2552
2553
  var Fn = "DialogDescription", _i = X.forwardRef(
2553
2554
  (t, e) => {
2554
2555
  const { __scopeDialog: n, ...r } = t, o = ue(Fn, n);
2555
- return /* @__PURE__ */ a(Ge.p, { id: o.descriptionId, ...r, ref: e });
2556
+ return /* @__PURE__ */ s(Ge.p, { id: o.descriptionId, ...r, ref: e });
2556
2557
  }
2557
2558
  );
2558
2559
  _i.displayName = Fn;
2559
2560
  var Mn = "DialogClose", kn = X.forwardRef(
2560
2561
  (t, e) => {
2561
2562
  const { __scopeDialog: n, ...r } = t, o = ue(Mn, n);
2562
- return /* @__PURE__ */ a(
2563
+ return /* @__PURE__ */ s(
2563
2564
  Ge.button,
2564
2565
  {
2565
2566
  type: "button",
@@ -2574,9 +2575,9 @@ kn.displayName = Mn;
2574
2575
  function Rt(t) {
2575
2576
  return t ? "open" : "closed";
2576
2577
  }
2577
- var Wn = "DialogTitleWarning", [Js, Hn] = pr(Wn, {
2578
+ var Wn = "DialogTitleWarning", [Ja, Hn] = pr(Wn, {
2578
2579
  contentName: Le,
2579
- titleName: It,
2580
+ titleName: xt,
2580
2581
  docsSlug: "dialog"
2581
2582
  }), bi = ({ titleId: t }) => {
2582
2583
  const e = Hn(Wn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
@@ -2594,8 +2595,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2594
2595
  const o = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
2595
2596
  e && o && (document.getElementById(e) || console.warn(r));
2596
2597
  }, [r, t, e]), null;
2597
- }, Pi = Rn, xi = Nn, yi = On, Si = Dn, Ii = zn, Ri = kn;
2598
- const Ie = {
2598
+ }, Pi = Rn, yi = Nn, Si = On, Ii = Dn, xi = zn, Ri = kn;
2599
+ const xe = {
2599
2600
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2600
2601
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
2601
2602
  "rp-document-dialog": "_rp-document-dialog_slqo7_13",
@@ -2619,7 +2620,7 @@ const Ie = {
2619
2620
  modifiedOn: b,
2620
2621
  pdfProducer: C,
2621
2622
  pdfVersion: T,
2622
- pageCount: x
2623
+ pageCount: y
2623
2624
  } = t;
2624
2625
  return [
2625
2626
  { label: o == null ? void 0 : o.propertiesFilenameLabel, value: l },
@@ -2641,15 +2642,15 @@ const Ie = {
2641
2642
  { separate: !0 },
2642
2643
  { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: C },
2643
2644
  { label: o == null ? void 0 : o.propertiesPDFVersionLabel, value: T },
2644
- { label: o == null ? void 0 : o.propertiesPageCountLabel, value: x }
2645
+ { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2645
2646
  ];
2646
2647
  }, [t, o]);
2647
- return /* @__PURE__ */ a(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(xi, { container: e, children: /* @__PURE__ */ H("div", { className: Ie["rp-dialog-wrapper"], children: [
2648
- /* @__PURE__ */ a(yi, { className: Ie["rp-dialog-overlay"] }),
2649
- /* @__PURE__ */ H(Si, { className: Ie["rp-document-dialog"], children: [
2650
- /* @__PURE__ */ a(Ii, { className: Ie["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2651
- /* @__PURE__ */ a("div", { className: Ie["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Ie["rp-properties-divider"] }) : /* @__PURE__ */ a(Ao, { label: c.label, value: c.value }) }, l)) }),
2652
- /* @__PURE__ */ a(Ri, { asChild: !0, className: Ie["rp-dialog-close"], children: /* @__PURE__ */ a(br, {}) })
2648
+ return /* @__PURE__ */ s(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ s(yi, { container: e, children: /* @__PURE__ */ H("div", { className: xe["rp-dialog-wrapper"], children: [
2649
+ /* @__PURE__ */ s(Si, { className: xe["rp-dialog-overlay"] }),
2650
+ /* @__PURE__ */ H(Ii, { className: xe["rp-document-dialog"], children: [
2651
+ /* @__PURE__ */ s(xi, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2652
+ /* @__PURE__ */ s("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ s("div", { children: c.separate ? /* @__PURE__ */ s("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ s(Ao, { label: c.label, value: c.value }) }, l)) }),
2653
+ /* @__PURE__ */ s(Ri, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ s(br, {}) })
2653
2654
  ] })
2654
2655
  ] }) }) });
2655
2656
  }, Ei = {
@@ -2670,22 +2671,22 @@ const Ie = {
2670
2671
  }, [t, e]) };
2671
2672
  }, qn = () => {
2672
2673
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2673
- return t || e || /* @__PURE__ */ a(xr, {});
2674
- }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Ai = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2675
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2674
+ return t || e || /* @__PURE__ */ s(yr, {});
2675
+ }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ s(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ s(Gn, { localeMessages: e, children: /* @__PURE__ */ s(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ s(qn, {}) }) }), Ai = ({ download: t, localeMessages: e }) => /* @__PURE__ */ s(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2676
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(qn, {}) }),
2676
2677
  e == null ? void 0 : e.downloadFileLabel
2677
2678
  ] }) }), Un = () => {
2678
2679
  const { download: t } = $n(), { downloadTool: e = !0 } = Te(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: r } = Oe(), { localeMessages: o } = he(), i = o == null ? void 0 : o.downloadFileTooltip;
2679
- return !e || !n ? null : r ? /* @__PURE__ */ a(Ai, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Di, { download: t, localeMessages: o });
2680
+ return !e || !n ? null : r ? /* @__PURE__ */ s(Ai, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ s(Q, { content: i, children: /* @__PURE__ */ s(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ s(Q, { content: i, children: /* @__PURE__ */ s(n, { download: t }) }) : /* @__PURE__ */ s(Di, { download: t, localeMessages: o });
2680
2681
  }, Vn = () => {
2681
2682
  const { printIcon: t } = Ce(), { printIcon: e } = be();
2682
- return t || e || /* @__PURE__ */ a(yr, {});
2683
- }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Bn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), Fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2684
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2683
+ return t || e || /* @__PURE__ */ s(Sr, {});
2684
+ }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ s(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ s(Bn, { localeMessages: e, children: /* @__PURE__ */ s(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ s(Vn, {}) }) }), Fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ s(Xe, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2685
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Vn, {}) }),
2685
2686
  e == null ? void 0 : e.printLabel
2686
2687
  ] }) }), jn = () => {
2687
2688
  const { print: t, cancel: e, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = tt(), { printTool: c = !0 } = Te(), { printTool: l = !0 } = Ne(), { isSmallScreen: d } = Oe(), { localeMessages: f } = he(), m = f == null ? void 0 : f.printTooltip;
2688
- return !c || !l ? null : d ? /* @__PURE__ */ a(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2689
+ return !c || !l ? null : d ? /* @__PURE__ */ s(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ s(Q, { content: m, children: /* @__PURE__ */ s(
2689
2690
  c,
2690
2691
  {
2691
2692
  print: t,
@@ -2695,7 +2696,7 @@ const Ie = {
2695
2696
  setOnComplete: r,
2696
2697
  progress: i
2697
2698
  }
2698
- ) }) : typeof l == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2699
+ ) }) : typeof l == "function" ? /* @__PURE__ */ s(Q, { content: m, children: /* @__PURE__ */ s(
2699
2700
  l,
2700
2701
  {
2701
2702
  print: t,
@@ -2705,31 +2706,31 @@ const Ie = {
2705
2706
  setOnComplete: r,
2706
2707
  progress: i
2707
2708
  }
2708
- ) }) : /* @__PURE__ */ a(zi, { print: t, localeMessages: f });
2709
+ ) }) : /* @__PURE__ */ s(zi, { print: t, localeMessages: f });
2709
2710
  }, Mi = {
2710
2711
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2711
2712
  }, ki = () => {
2712
2713
  const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2713
- return t || e || /* @__PURE__ */ a(hn, { className: Mi["rp-go-to-Top"] });
2714
+ return t || e || /* @__PURE__ */ s(hn, { className: Mi["rp-go-to-Top"] });
2714
2715
  }, Wi = () => {
2715
2716
  const { goToLastPageIcon: t } = Ce(), { goToLastPageIcon: e } = be();
2716
- return t || e || /* @__PURE__ */ a(hn, {});
2717
+ return t || e || /* @__PURE__ */ s(hn, {});
2717
2718
  }, Yt = { width: "100%" }, Hi = () => {
2718
- const { goToPage: t, totalPages: e, focusedPage: n } = le(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
2719
+ const { goToPage: t, totalPages: e, focusedPage: n } = de(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
2719
2720
  t(1);
2720
2721
  }, [t]), f = E(() => {
2721
2722
  t(e);
2722
2723
  }, [t, e]);
2723
2724
  return !r || !o ? null : /* @__PURE__ */ H(un, { children: [
2724
- /* @__PURE__ */ a(Xe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2725
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ki, {}) }),
2726
- /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
2725
+ /* @__PURE__ */ s(Xe, { onClick: d, children: /* @__PURE__ */ s(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2726
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(ki, {}) }),
2727
+ /* @__PURE__ */ s("span", { children: i == null ? void 0 : i.firstPageLabel })
2727
2728
  ] }) }) }),
2728
- /* @__PURE__ */ a(Xe, { onClick: f, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2729
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Wi, {}) }),
2730
- /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.lastPageLabel })
2729
+ /* @__PURE__ */ s(Xe, { onClick: f, children: /* @__PURE__ */ s(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ H("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2730
+ /* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Wi, {}) }),
2731
+ /* @__PURE__ */ s("span", { children: i == null ? void 0 : i.lastPageLabel })
2731
2732
  ] }) }) }),
2732
- /* @__PURE__ */ a(ln, {})
2733
+ /* @__PURE__ */ s(ln, {})
2733
2734
  ] });
2734
2735
  }, $i = () => {
2735
2736
  const [t, e] = q(!1), { container: n, pagesRef: r } = _e(), { isSmallScreen: o } = Oe(), {
@@ -2746,17 +2747,17 @@ const Ie = {
2746
2747
  } = Te(), {
2747
2748
  openFileTool: C,
2748
2749
  downloadTool: T,
2749
- documentProperties: x,
2750
+ documentProperties: y,
2750
2751
  scrollModeTool: g,
2751
2752
  rotateTool: h,
2752
2753
  selectionModeTool: u,
2753
- jumpNavigationTool: s,
2754
+ jumpNavigationTool: a,
2754
2755
  printTool: _,
2755
2756
  fullscreenTool: w,
2756
- viewModeTool: y
2757
- } = Ne(), { localeMessages: R } = he(), [S, I] = q(0), N = k(
2757
+ viewModeTool: S
2758
+ } = Ne(), { localeMessages: R } = he(), [I, x] = q(0), N = k(
2758
2759
  new ResizeObserver((L) => {
2759
- I(L[0].contentRect.height);
2760
+ x(L[0].contentRect.height);
2760
2761
  })
2761
2762
  ), A = W(() => P || f || m || d || l || b || o && (i || c || p || v), [
2762
2763
  i,
@@ -2769,77 +2770,77 @@ const Ie = {
2769
2770
  m,
2770
2771
  P,
2771
2772
  o
2772
- ]), z = W(() => s || h || u || g || x || y || o && (C || T || _ || w), [
2773
+ ]), z = W(() => a || h || u || g || y || S || o && (C || T || _ || w), [
2773
2774
  C,
2774
2775
  T,
2775
2776
  _,
2776
2777
  w,
2777
- x,
2778
+ y,
2778
2779
  g,
2779
2780
  h,
2780
2781
  u,
2781
- s,
2782
+ a,
2782
2783
  o
2783
2784
  ]);
2784
2785
  return D(() => (r && N.current.observe(r), () => {
2785
2786
  N.current.disconnect();
2786
2787
  }), [r]), !A || !z ? null : /* @__PURE__ */ H(pe, { children: [
2787
- /* @__PURE__ */ a(
2788
+ /* @__PURE__ */ s(
2788
2789
  cn,
2789
2790
  {
2790
2791
  container: n,
2791
2792
  onOpenChange: e,
2792
- triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(ve, { active: t, "aria-label": R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ a(lr, {}) }) }) }),
2793
+ triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(Q, { content: R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ s(ve, { active: t, "aria-label": R == null ? void 0 : R.moreOptionTooltip, children: /* @__PURE__ */ s(lr, {}) }) }) }),
2793
2794
  side: "bottom",
2794
2795
  avoidCollisions: !1,
2795
2796
  children: /* @__PURE__ */ H(
2796
2797
  "div",
2797
2798
  {
2798
- style: { maxHeight: `${S}px`, overflow: "auto" },
2799
+ style: { maxHeight: `${I}px`, overflow: "auto" },
2799
2800
  className: Ei["rp-other-tool-content"],
2800
2801
  "data-rp": "moreOptionsDropdown",
2801
2802
  children: [
2802
2803
  o && /* @__PURE__ */ H(un, { children: [
2803
- /* @__PURE__ */ a(dn, {}),
2804
- /* @__PURE__ */ a(Un, {}),
2805
- /* @__PURE__ */ a(jn, {}),
2806
- /* @__PURE__ */ a(pn, {}),
2807
- /* @__PURE__ */ a(ln, {})
2804
+ /* @__PURE__ */ s(dn, {}),
2805
+ /* @__PURE__ */ s(Un, {}),
2806
+ /* @__PURE__ */ s(jn, {}),
2807
+ /* @__PURE__ */ s(pn, {}),
2808
+ /* @__PURE__ */ s(ln, {})
2808
2809
  ] }),
2809
- /* @__PURE__ */ a(Hi, {}),
2810
- /* @__PURE__ */ a(zo, {}),
2811
- /* @__PURE__ */ a(Sr, {}),
2812
- /* @__PURE__ */ a(Cr, {}),
2813
- /* @__PURE__ */ a(Pr, {}),
2814
- /* @__PURE__ */ a(Tr, {})
2810
+ /* @__PURE__ */ s(Hi, {}),
2811
+ /* @__PURE__ */ s(zo, {}),
2812
+ /* @__PURE__ */ s(Ir, {}),
2813
+ /* @__PURE__ */ s(Cr, {}),
2814
+ /* @__PURE__ */ s(Pr, {}),
2815
+ /* @__PURE__ */ s(Tr, {})
2815
2816
  ]
2816
2817
  }
2817
2818
  )
2818
2819
  }
2819
2820
  ),
2820
- /* @__PURE__ */ a(Li, {})
2821
+ /* @__PURE__ */ s(Li, {})
2821
2822
  ] });
2822
2823
  }, qi = () => {
2823
2824
  const { isSmallScreen: t } = Oe();
2824
2825
  return /* @__PURE__ */ H(pe, { children: [
2825
- /* @__PURE__ */ a(cr, {}),
2826
+ /* @__PURE__ */ s(cr, {}),
2826
2827
  !t && /* @__PURE__ */ H(pe, { children: [
2827
- /* @__PURE__ */ a(dn, {}),
2828
- /* @__PURE__ */ a(Un, {}),
2829
- /* @__PURE__ */ a(jn, {}),
2830
- /* @__PURE__ */ a(pn, {})
2828
+ /* @__PURE__ */ s(dn, {}),
2829
+ /* @__PURE__ */ s(Un, {}),
2830
+ /* @__PURE__ */ s(jn, {}),
2831
+ /* @__PURE__ */ s(pn, {})
2831
2832
  ] }),
2832
- /* @__PURE__ */ a($i, {})
2833
+ /* @__PURE__ */ s($i, {})
2833
2834
  ] });
2834
2835
  }, Jt = () => {
2835
2836
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = he();
2836
2837
  return /* @__PURE__ */ H(pe, { children: [
2837
- /* @__PURE__ */ a(
2838
+ /* @__PURE__ */ s(
2838
2839
  Q,
2839
2840
  {
2840
2841
  content: r == null ? void 0 : r.searchPrevTooltip,
2841
2842
  className: te["rp-search-tool-result-navigator"],
2842
- children: /* @__PURE__ */ a(ve, { tabIndex: 0, onClick: n, "aria-label": r == null ? void 0 : r.searchPrevTooltip, children: /* @__PURE__ */ a(
2843
+ children: /* @__PURE__ */ s(ve, { tabIndex: 0, onClick: n, "aria-label": r == null ? void 0 : r.searchPrevTooltip, children: /* @__PURE__ */ s(
2843
2844
  Ze,
2844
2845
  {
2845
2846
  className: te["rp-search-tool-input-icon"],
@@ -2848,12 +2849,12 @@ const Ie = {
2848
2849
  ) })
2849
2850
  }
2850
2851
  ),
2851
- /* @__PURE__ */ a(
2852
+ /* @__PURE__ */ s(
2852
2853
  Q,
2853
2854
  {
2854
2855
  content: r == null ? void 0 : r.searchNextTooltip,
2855
2856
  className: te["rp-search-tool-result-navigator"],
2856
- children: /* @__PURE__ */ a(ve, { tabIndex: 0, onClick: e, "aria-label": r == null ? void 0 : r.searchNextTooltip, children: /* @__PURE__ */ a(
2857
+ children: /* @__PURE__ */ s(ve, { tabIndex: 0, onClick: e, "aria-label": r == null ? void 0 : r.searchNextTooltip, children: /* @__PURE__ */ s(
2857
2858
  Ze,
2858
2859
  {
2859
2860
  style: { transform: "rotate(180deg" },
@@ -2866,7 +2867,7 @@ const Ie = {
2866
2867
  ] });
2867
2868
  }, Gi = () => {
2868
2869
  const { searchIcon: t } = Ce(), { searchIcon: e } = be();
2869
- return t || e || /* @__PURE__ */ a(fn, {});
2870
+ return t || e || /* @__PURE__ */ s(fn, {});
2870
2871
  }, Ui = ({ icon: t }) => {
2871
2872
  const { container: e } = _e(), [n, r] = q(!1), { pdf: o } = oe(), [i, c] = q(null), {
2872
2873
  searchOptions: l,
@@ -2878,16 +2879,16 @@ const Ie = {
2878
2879
  nextMatch: v,
2879
2880
  prevMatch: b,
2880
2881
  search: C
2881
- } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: x = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: s } = Oe(), [_, w] = q(null), [y, R] = q(!1), S = E(() => {
2882
+ } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: a } = Oe(), [_, w] = q(null), [S, R] = q(!1), I = E(() => {
2882
2883
  r(!0);
2883
- }, []), I = E(() => {
2884
+ }, []), x = E(() => {
2884
2885
  m(""), h(""), r(!1);
2885
2886
  }, [m]), N = (G) => {
2886
2887
  const Z = G.key === "Enter", Y = G.key === " ";
2887
- (Z || Y) && I();
2888
+ (Z || Y) && x();
2888
2889
  }, A = E(
2889
2890
  (G) => {
2890
- G.key === "Escape" && n && I();
2891
+ G.key === "Escape" && n && x();
2891
2892
  },
2892
2893
  [n]
2893
2894
  ), z = E(
@@ -2925,15 +2926,15 @@ const Ie = {
2925
2926
  [d]
2926
2927
  );
2927
2928
  D(() => {
2928
- o && y && I();
2929
- }, [o, I]);
2929
+ o && S && x();
2930
+ }, [o, x]);
2930
2931
  const U = W(() => (_ == null ? void 0 : _.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [_]), re = E(
2931
2932
  (G) => {
2932
2933
  if (G.key === "Tab") {
2933
2934
  const Z = document.activeElement;
2934
2935
  let Y = 0;
2935
- U.forEach((ie, ae) => {
2936
- ie === Z && (Y = ae);
2936
+ U.forEach((ie, se) => {
2937
+ ie === Z && (Y = se);
2937
2938
  });
2938
2939
  let J = Y + 1;
2939
2940
  G.shiftKey && (J = Y - 1);
@@ -2951,7 +2952,7 @@ const Ie = {
2951
2952
  },
2952
2953
  [U]
2953
2954
  );
2954
- return !T || !x ? null : /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a(
2955
+ return !T || !y ? null : /* @__PURE__ */ s(pe, { children: /* @__PURE__ */ s(
2955
2956
  cn,
2956
2957
  {
2957
2958
  open: n,
@@ -2960,13 +2961,13 @@ const Ie = {
2960
2961
  align: "start",
2961
2962
  tabIndex: 0,
2962
2963
  avoidCollisions: !1,
2963
- triggerComponent: /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchButtonTooltip, children: /* @__PURE__ */ a(
2964
+ triggerComponent: /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchButtonTooltip, children: /* @__PURE__ */ s(
2964
2965
  ve,
2965
2966
  {
2966
2967
  active: n,
2967
- onClick: S,
2968
+ onClick: I,
2968
2969
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2969
- children: t || /* @__PURE__ */ a(Gi, {})
2970
+ children: t || /* @__PURE__ */ s(Gi, {})
2970
2971
  }
2971
2972
  ) }),
2972
2973
  children: /* @__PURE__ */ H(
@@ -2979,28 +2980,28 @@ const Ie = {
2979
2980
  children: [
2980
2981
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-wrapper"], children: [
2981
2982
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input"], children: [
2982
- /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ a(
2983
+ /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ s(
2983
2984
  on,
2984
2985
  {
2985
2986
  value: g,
2986
2987
  onKeyDown: z,
2987
2988
  onChange: L,
2988
- icon: /* @__PURE__ */ a(fn, {}),
2989
+ icon: /* @__PURE__ */ s(fn, {}),
2989
2990
  placeholder: u == null ? void 0 : u.searchInputPlaceholder,
2990
2991
  className: te["rp-search-input"],
2991
2992
  ref: c,
2992
2993
  id: "search-input",
2993
2994
  name: "search-input",
2994
2995
  tabIndex: 0,
2995
- children: !!g && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ a(Rr, {}) })
2996
+ children: !!g && /* @__PURE__ */ s("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ s(Rr, {}) })
2996
2997
  }
2997
2998
  ) }),
2998
- f ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: F }),
2999
- s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: I }) })
2999
+ f ? /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ s("span", { children: F }),
3000
+ a && /* @__PURE__ */ s("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ s(Ot, { onKeyPress: N, handleClose: x }) })
3000
3001
  ] }),
3001
3002
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-checkboxes"], children: [
3002
- s && /* @__PURE__ */ a(Jt, {}),
3003
- /* @__PURE__ */ a(
3003
+ a && /* @__PURE__ */ s(Jt, {}),
3004
+ /* @__PURE__ */ s(
3004
3005
  Dt,
3005
3006
  {
3006
3007
  tabIndex: 0,
@@ -3010,8 +3011,8 @@ const Ie = {
3010
3011
  children: u == null ? void 0 : u.searchMatchCaseLabel
3011
3012
  }
3012
3013
  ),
3013
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ a("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ a(Mt, {}) }) }),
3014
- /* @__PURE__ */ a(
3014
+ !a && /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchMatchCaseTooltip, children: /* @__PURE__ */ s("div", { className: te["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ s(Mt, {}) }) }),
3015
+ /* @__PURE__ */ s(
3015
3016
  Dt,
3016
3017
  {
3017
3018
  tabIndex: 0,
@@ -3021,12 +3022,12 @@ const Ie = {
3021
3022
  children: u == null ? void 0 : u.searchWholeWordsLabel
3022
3023
  }
3023
3024
  ),
3024
- !s && /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ a("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ a(Mt, {}) }) })
3025
+ !a && /* @__PURE__ */ s(Q, { content: u == null ? void 0 : u.searchWholeWordsTooltip, children: /* @__PURE__ */ s("div", { tabIndex: 0, className: te["rp-search-icon-info"], children: /* @__PURE__ */ s(Mt, {}) }) })
3025
3026
  ] })
3026
3027
  ] }),
3027
- !s && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3028
- /* @__PURE__ */ a(Jt, {}),
3029
- /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: I })
3028
+ !a && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3029
+ /* @__PURE__ */ s(Jt, {}),
3030
+ /* @__PURE__ */ s(Ot, { onKeyPress: N, handleClose: x })
3030
3031
  ] })
3031
3032
  ]
3032
3033
  }
@@ -3043,35 +3044,35 @@ const Ie = {
3043
3044
  loading: Vi
3044
3045
  }, Bi = ({ percentage: t }) => {
3045
3046
  const { cancel: e } = tt(), { localeMessages: n } = he();
3046
- return t < 1 ? null : /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ H("div", { className: se(Ae["rp-loading-modal"]), children: [
3047
- /* @__PURE__ */ H("div", { className: se(Ae["rp-loading-title"]), children: [
3047
+ return t < 1 ? null : /* @__PURE__ */ s("div", { className: ce(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ H("div", { className: ce(Ae["rp-loading-modal"]), children: [
3048
+ /* @__PURE__ */ H("div", { className: ce(Ae["rp-loading-title"]), children: [
3048
3049
  n == null ? void 0 : n.printLoadingMessage,
3049
3050
  "..."
3050
3051
  ] }),
3051
- /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-progress-bar"]), children: /* @__PURE__ */ a(
3052
+ /* @__PURE__ */ s("div", { className: ce(Ae["rp-loading-progress-bar"]), children: /* @__PURE__ */ s(
3052
3053
  "div",
3053
3054
  {
3054
- className: se(Ae["rp-loading-progress"]),
3055
+ className: ce(Ae["rp-loading-progress"]),
3055
3056
  style: { width: `${t}%` }
3056
3057
  }
3057
3058
  ) }),
3058
- /* @__PURE__ */ a("button", { className: se(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3059
+ /* @__PURE__ */ s("button", { className: ce(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3059
3060
  ] }) });
3060
3061
  }, ji = et((t, e) => {
3061
3062
  const { showPrintProgress: n = !0 } = Te(), { showPrintProgress: r = !0 } = Ne(), { progress: o } = tt(), { isSmallScreen: i } = Oe(), { percentage: c } = o || {}, l = () => i ? { gridTemplateColumns: "25% 60% 15%" } : void 0, d = () => {
3062
3063
  if (!(!n || !r || !c))
3063
- return /* @__PURE__ */ a(Bi, { percentage: c });
3064
+ return /* @__PURE__ */ s(Bi, { percentage: c });
3064
3065
  };
3065
3066
  return /* @__PURE__ */ H("div", { children: [
3066
- /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ H("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3067
+ /* @__PURE__ */ s("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ H("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3067
3068
  /* @__PURE__ */ H("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3068
- /* @__PURE__ */ a(Ui, {}),
3069
- /* @__PURE__ */ a(pi, {})
3069
+ /* @__PURE__ */ s(Ui, {}),
3070
+ /* @__PURE__ */ s(pi, {})
3070
3071
  ] }),
3071
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ir, {}) }),
3072
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(qi, {}) })
3072
+ /* @__PURE__ */ s("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ s(xr, {}) }),
3073
+ /* @__PURE__ */ s("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ s(qi, {}) })
3073
3074
  ] }) }),
3074
- /* @__PURE__ */ a(d, {})
3075
+ /* @__PURE__ */ s(d, {})
3075
3076
  ] });
3076
3077
  }), ht = {
3077
3078
  "rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_1bqgz_1",
@@ -3084,7 +3085,7 @@ const Ie = {
3084
3085
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3085
3086
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3086
3087
  }, Ki = (t) => {
3087
- const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = le(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [f, m] = q(null), P = k(!1), p = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3088
+ const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = de(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [f, m] = q(null), P = k(!1), p = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3088
3089
  width: Math.round(r.width),
3089
3090
  height: Math.round(r.height)
3090
3091
  }), [r]), C = E(() => {
@@ -3097,7 +3098,7 @@ const Ie = {
3097
3098
  const T = d.get(e);
3098
3099
  if (!c.current || !e || !T || f)
3099
3100
  return;
3100
- const x = new IntersectionObserver((g) => {
3101
+ const y = new IntersectionObserver((g) => {
3101
3102
  g.forEach((h) => {
3102
3103
  if (P.current) {
3103
3104
  P.current = !1, l.removeQueue(`thumbnail-${e}`);
@@ -3114,10 +3115,10 @@ const Ie = {
3114
3115
  scale: 1
3115
3116
  },
3116
3117
  onLoaded: () => {
3117
- u.toBlob((s) => {
3118
- if (!s)
3118
+ u.toBlob((a) => {
3119
+ if (!a)
3119
3120
  return;
3120
- const _ = URL.createObjectURL(s);
3121
+ const _ = URL.createObjectURL(a);
3121
3122
  m(_);
3122
3123
  });
3123
3124
  }
@@ -3127,8 +3128,8 @@ const Ie = {
3127
3128
  }
3128
3129
  });
3129
3130
  });
3130
- return c.current && x.observe(c.current), () => {
3131
- x.disconnect(), l.removeQueue(`thumbnail-${e}`);
3131
+ return c.current && y.observe(c.current), () => {
3132
+ y.disconnect(), l.removeQueue(`thumbnail-${e}`);
3132
3133
  };
3133
3134
  }, [l, e, d, f]), /* @__PURE__ */ H(
3134
3135
  "div",
@@ -3138,14 +3139,14 @@ const Ie = {
3138
3139
  className: ke["rp-thumbnail-wrapper"],
3139
3140
  ref: c,
3140
3141
  children: [
3141
- /* @__PURE__ */ a(
3142
+ /* @__PURE__ */ s(
3142
3143
  "div",
3143
3144
  {
3144
3145
  style: {
3145
3146
  transform: `rotate(${i[e || 0]}deg)`
3146
3147
  },
3147
- className: se(v, ke["rp-thumbnail"]),
3148
- children: f ? /* @__PURE__ */ a(
3148
+ className: ce(v, ke["rp-thumbnail"]),
3149
+ children: f ? /* @__PURE__ */ s(
3149
3150
  "img",
3150
3151
  {
3151
3152
  src: f,
@@ -3153,7 +3154,7 @@ const Ie = {
3153
3154
  height: b.height,
3154
3155
  alt: "thumbnail"
3155
3156
  }
3156
- ) : /* @__PURE__ */ a(
3157
+ ) : /* @__PURE__ */ s(
3157
3158
  "div",
3158
3159
  {
3159
3160
  className: ke["rp-thumbnail-loader"],
@@ -3161,12 +3162,12 @@ const Ie = {
3161
3162
  width: `${b.width}px`,
3162
3163
  height: `${b.height}px`
3163
3164
  },
3164
- children: /* @__PURE__ */ a(_t, {})
3165
+ children: /* @__PURE__ */ s(_t, {})
3165
3166
  }
3166
3167
  )
3167
3168
  }
3168
3169
  ),
3169
- /* @__PURE__ */ a("div", { className: ke["rp-thumbnail-text"], children: e })
3170
+ /* @__PURE__ */ s("div", { className: ke["rp-thumbnail-text"], children: e })
3170
3171
  ]
3171
3172
  }
3172
3173
  );
@@ -3177,7 +3178,7 @@ const Ie = {
3177
3178
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3178
3179
  t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Zi);
3179
3180
  }, Qi = et((t, e) => {
3180
- const { show: n, width: r } = t, { focusedPage: o, totalPages: i } = le(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = _n(), m = k(null), P = k(1);
3181
+ const { show: n, width: r } = t, { focusedPage: o, totalPages: i } = de(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = _n(), m = k(null), P = k(1);
3181
3182
  tn(e, () => m.current);
3182
3183
  const p = W(() => Object.values(c), [c]), v = E(() => {
3183
3184
  const b = d + 1;
@@ -3185,13 +3186,13 @@ const Ie = {
3185
3186
  }, [l, i, d]);
3186
3187
  return D(() => {
3187
3188
  o > d && i > d ? f(o) : n && P.current !== o && (Xi(m.current, o), P.current = o);
3188
- }, [o, d, f, n, p]), Fo(m.current, v), /* @__PURE__ */ a("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3189
- var T, x;
3190
- return /* @__PURE__ */ a(
3189
+ }, [o, d, f, n, p]), Fo(m.current, v), /* @__PURE__ */ s("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ s("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3190
+ var T, y;
3191
+ return /* @__PURE__ */ s(
3191
3192
  Ki,
3192
3193
  {
3193
3194
  isFocused: o === ((T = b.page) == null ? void 0 : T.pageNumber),
3194
- pageNumber: (x = b.page) == null ? void 0 : x.pageNumber,
3195
+ pageNumber: (y = b.page) == null ? void 0 : y.pageNumber,
3195
3196
  loading: b.loading,
3196
3197
  viewport: b.viewport,
3197
3198
  defaultRotation: b.defaultRotation
@@ -3201,27 +3202,27 @@ const Ie = {
3201
3202
  }) : null }) });
3202
3203
  }), Yi = () => {
3203
3204
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3204
- return t || e || /* @__PURE__ */ a(xo, {});
3205
+ return t || e || /* @__PURE__ */ s(yo, {});
3205
3206
  }, Ji = () => {
3206
3207
  const { active: t, setActive: e } = _n(), [n, r] = q(Mo), o = k(null), i = k(null), { thumbnailTool: c, sidebarEnable: l } = Te(), { localeMessages: d } = he(), f = E(() => {
3207
3208
  e((P) => !P);
3208
- }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ a(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ a(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ a(
3209
+ }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ s(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ s(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ s(
3209
3210
  ve,
3210
3211
  {
3211
3212
  onClick: f,
3212
3213
  active: t,
3213
3214
  "aria-label": d == null ? void 0 : d.thumbnailTooltip,
3214
- children: /* @__PURE__ */ a(Yi, {})
3215
+ children: /* @__PURE__ */ s(Yi, {})
3215
3216
  }
3216
3217
  ) }) : null, [c, t, f, d]);
3217
- return /* @__PURE__ */ a(pe, { children: l && /* @__PURE__ */ H(
3218
+ return /* @__PURE__ */ s(pe, { children: l && /* @__PURE__ */ H(
3218
3219
  "div",
3219
3220
  {
3220
3221
  style: { "--rp-thumbnail-width": `${n}px` },
3221
3222
  className: ht["rp-sidebar-content-wrapper"],
3222
3223
  "data-rp": "sidebar",
3223
3224
  children: [
3224
- /* @__PURE__ */ a("div", { ref: i, className: ht["rp-sidebar-content"], children: m }),
3225
+ /* @__PURE__ */ s("div", { ref: i, className: ht["rp-sidebar-content"], children: m }),
3225
3226
  /* @__PURE__ */ H(
3226
3227
  "div",
3227
3228
  {
@@ -3229,8 +3230,8 @@ const Ie = {
3229
3230
  hidden: !t,
3230
3231
  className: ht["rp-thumbnails-wrapper"],
3231
3232
  children: [
3232
- /* @__PURE__ */ a(Qi, { show: t, ref: o }),
3233
- /* @__PURE__ */ a(
3233
+ /* @__PURE__ */ s(Qi, { show: t, ref: o }),
3234
+ /* @__PURE__ */ s(
3234
3235
  Ro,
3235
3236
  {
3236
3237
  onWidthChange: r,
@@ -3255,27 +3256,27 @@ const Ie = {
3255
3256
  onLoaded: d,
3256
3257
  cleanupOnLoaded: f,
3257
3258
  onLayoutWidthChange: m
3258
- } = t, [P, p] = q(null), { setContainer: v } = _e(), { loading: b } = oe(), { LoaderImageComponent: C } = sn();
3259
+ } = t, [P, p] = q(null), { setContainer: v } = _e(), { loading: b } = oe(), { LoaderImageComponent: C } = an();
3259
3260
  return D(() => (d && d(), () => {
3260
3261
  f && f();
3261
3262
  }), [d, f]), // TODO: deprecated in v2.0.0, remove later ~
3262
- /* @__PURE__ */ a(Sn, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(So, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(Io, { slots: r, children: /* @__PURE__ */ a(Do, { icons: o, children: /* @__PURE__ */ a(Po, { children: /* @__PURE__ */ H(yo, { getContainerRef: v, style: i, className: c, children: [
3263
+ /* @__PURE__ */ s(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ s(Io, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ s(xo, { slots: r, children: /* @__PURE__ */ s(Do, { icons: o, children: /* @__PURE__ */ s(Po, { children: /* @__PURE__ */ H(So, { getContainerRef: v, style: i, className: c, children: [
3263
3264
  /* @__PURE__ */ H(Lo, { children: [
3264
3265
  /* @__PURE__ */ H("div", { className: we["rp-layout"], children: [
3265
- /* @__PURE__ */ a(
3266
+ /* @__PURE__ */ s(
3266
3267
  ji,
3267
3268
  {
3268
3269
  ref: p
3269
3270
  }
3270
3271
  ),
3271
3272
  /* @__PURE__ */ H("div", { className: we["rp-content"], children: [
3272
- /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Ji, {}) }),
3273
- /* @__PURE__ */ a("div", { className: we["rp-pages"], children: n })
3273
+ /* @__PURE__ */ s("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ s(Ji, {}) }),
3274
+ /* @__PURE__ */ s("div", { className: we["rp-pages"], children: n })
3274
3275
  ] })
3275
3276
  ] }),
3276
- /* @__PURE__ */ a(Oo, {})
3277
+ /* @__PURE__ */ s(Oo, {})
3277
3278
  ] }),
3278
- b ? /* @__PURE__ */ a(
3279
+ b ? /* @__PURE__ */ s(
3279
3280
  "div",
3280
3281
  {
3281
3282
  className: we["rp-loader"],
@@ -3288,7 +3289,7 @@ const Ie = {
3288
3289
  width: "100%",
3289
3290
  height: "100%"
3290
3291
  },
3291
- children: /* @__PURE__ */ a(
3292
+ children: /* @__PURE__ */ s(
3292
3293
  "div",
3293
3294
  {
3294
3295
  style: {
@@ -3298,7 +3299,7 @@ const Ie = {
3298
3299
  height: "100%",
3299
3300
  width: "100%"
3300
3301
  },
3301
- children: C && /* @__PURE__ */ a(C, {})
3302
+ children: C && /* @__PURE__ */ s(C, {})
3302
3303
  }
3303
3304
  )
3304
3305
  }
@@ -3318,21 +3319,21 @@ export {
3318
3319
  Dr as C,
3319
3320
  Wr as D,
3320
3321
  $r as E,
3321
- xt as F,
3322
+ yt as F,
3322
3323
  oi as G,
3323
- ai as H,
3324
- si as I,
3324
+ si as H,
3325
+ ai as I,
3325
3326
  ci as J,
3326
3327
  Li as K,
3327
- Sn as L,
3328
+ In as L,
3328
3329
  Un as M,
3329
3330
  jn as N,
3330
3331
  Hi as O,
3331
- Bs as P,
3332
+ Ba as P,
3332
3333
  $i as Q,
3333
- Qs as R,
3334
+ Qa as R,
3334
3335
  Ui as S,
3335
- Ks as T,
3336
+ Ka as T,
3336
3337
  Jt as U,
3337
3338
  ji as V,
3338
3339
  Ki as W,
@@ -3341,9 +3342,9 @@ export {
3341
3342
  $n as b,
3342
3343
  tt as c,
3343
3344
  Pt as d,
3344
- Zs as e,
3345
- Xs as f,
3346
- js as g,
3345
+ Za as e,
3346
+ Xa as f,
3347
+ ja as g,
3347
3348
  _n as h,
3348
3349
  pt as i,
3349
3350
  Me as j,
@@ -3357,7 +3358,7 @@ export {
3357
3358
  gn as r,
3358
3359
  Er as s,
3359
3360
  vn as t,
3360
- le as u,
3361
+ de as u,
3361
3362
  Nr as v,
3362
3363
  wn as w,
3363
3364
  Or as x,