@pdf-viewer/react 1.9.2-rc.1 → 1.9.2-rc.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 (53) hide show
  1. package/dist/{ToolbarLayout.module-5f4b7b49.js → ToolbarLayout.module-95e678ab.js} +382 -372
  2. package/dist/components/RPController.js +1 -1
  3. package/dist/components/RPPages.js +1 -1
  4. package/dist/components/layout/LayoutContainer.js +1 -1
  5. package/dist/components/layout/RPDefaultLayout.js +1 -1
  6. package/dist/components/layout/RPLayout.js +1 -1
  7. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  8. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  10. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  11. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  12. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  13. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  14. package/dist/components/layout/toolbar/Paginate.js +1 -1
  15. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  16. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  18. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  19. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  20. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  21. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  22. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  23. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  24. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  25. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  30. package/dist/components/page/AnnotationLayer.js +1 -1
  31. package/dist/components/page/CanvasLayer.js +1 -1
  32. package/dist/components/page/DualPage.js +1 -1
  33. package/dist/components/page/RPPage.js +1 -1
  34. package/dist/components/page/SinglePage.js +1 -1
  35. package/dist/components/page/TextHighlightLayer.js +1 -1
  36. package/dist/components/page/TextLayer.js +1 -1
  37. package/dist/components/ui/LoadingIndicator.js +1 -1
  38. package/dist/contexts/PaginationContext.js +1 -1
  39. package/dist/contexts/PrintContext.js +1 -1
  40. package/dist/contexts/RenderQueueProvider.js +1 -1
  41. package/dist/contexts/SearchContext.js +1 -1
  42. package/dist/contexts/ThumbnailsContext.js +1 -1
  43. package/dist/main.js +1 -1
  44. package/dist/utils/hooks/useFileDownload.js +1 -1
  45. package/dist/utils/hooks/useLicense.js +1 -1
  46. package/dist/utils/hooks/usePaginate.js +1 -1
  47. package/dist/utils/hooks/usePresentPage.js +1 -1
  48. package/dist/utils/hooks/usePrint.js +1 -1
  49. package/dist/utils/hooks/useScrollToPage.js +1 -1
  50. package/dist/utils/hooks/useSearch.js +1 -1
  51. package/dist/utils/hooks/useThumbnail.js +1 -1
  52. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  53. package/package.json +1 -1
@@ -1,103 +1,103 @@
1
- import { jsx as a, Fragment as pe, jsxs as $ } from "react/jsx-runtime";
1
+ import { jsx as a, 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";
5
5
  import { UIButton as ve } from "./components/ui/Button.js";
6
6
  import { UIInput as on } from "./components/ui/Input.js";
7
- import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Nt, SelectionMode as ro } from "./utils/types.js";
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 io } from "./contexts/DocumentPasswordContext.js";
11
- import { useDarkModeContext as ao } from "./contexts/DarkModeContext.js";
10
+ import { useDocumentPasswordContext as ao } from "./contexts/DocumentPasswordContext.js";
11
+ import { useDarkModeContext as so } from "./contexts/DarkModeContext.js";
12
12
  import "./contexts/RotationContext.js";
13
- import { useLayerContext as so } from "./contexts/LayerContext.js";
13
+ import { useLayerContext as co } from "./contexts/LayerContext.js";
14
14
  import { useZoomContext as wt } from "./contexts/ZoomContext.js";
15
15
  import { useViewModeContext as Fe } from "./contexts/ViewModeContext.js";
16
16
  import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
17
17
  import { useVirtualGridContext as rn } from "./contexts/VirtualGridContext.js";
18
- import { useSelectionModeContext as co } from "./contexts/SelectionModeContext.js";
19
- import { useInitialStateContext as lo } from "./contexts/InitialStateContext.js";
20
- import { useFullScreenContext as uo } from "./contexts/FullScreenContext.js";
18
+ import { useSelectionModeContext as lo } from "./contexts/SelectionModeContext.js";
19
+ import { useInitialStateContext as uo } from "./contexts/InitialStateContext.js";
20
+ import { useFullScreenContext as po } from "./contexts/FullScreenContext.js";
21
21
  import "./contexts/FileInputContext.js";
22
22
  import "./contexts/DropFileZoneContext.js";
23
- import { findMatches as po, resetDivs as ho, highlightMatches as fo, isMatchEntireWord as mo } from "./utils/highlight.js";
23
+ import { findMatches as ho, resetDivs as fo, highlightMatches as mo, isMatchEntireWord as go } from "./utils/highlight.js";
24
24
  import { useLayoutContainer as _e } from "./contexts/LayoutContainerContext.js";
25
25
  import { useDimensionPagesContext as qe } from "./contexts/DimensionPagesContext.js";
26
26
  import { useLocalizationContext as he } from "./contexts/LocalizationContext.js";
27
- import { useHighlightContext as go } from "./contexts/HighlightContext.js";
27
+ import { useHighlightContext as vo } from "./contexts/HighlightContext.js";
28
28
  import "./contexts/LicenseContext.js";
29
- import { useDownloadContext as vo } from "./contexts/DownloadContext.js";
29
+ import { useDownloadContext as wo } from "./contexts/DownloadContext.js";
30
30
  import { useSmoothScrollContext as an } from "./contexts/SmoothScrollContext.js";
31
31
  import "./contexts/ElementPageContext.js";
32
32
  import { usePagesRotateContext as Je } from "./contexts/PagesRotateContext.js";
33
- import { Queue as wo } from "./utils/Queue.js";
34
- import { renderPage as _o } from "./utils/renderPage.js";
35
- import { useGlobalCurrentPage as bo } from "./contexts/GlobalCurrentPage.js";
33
+ import { Queue as _o } from "./utils/Queue.js";
34
+ import { renderPage as bo } from "./utils/renderPage.js";
35
+ import { useGlobalCurrentPage as To } from "./contexts/GlobalCurrentPage.js";
36
36
  import { useLoaderContext as sn } 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
- import { useOtherToolContext as To, OtherToolProvider as Co } from "./contexts/OtherToolContext.js";
39
+ import { useOtherToolContext as Co, OtherToolProvider as Po } from "./contexts/OtherToolContext.js";
40
40
  import "./components/RPConfig.js";
41
- import { ThumbnailIcon as Po } from "./components/icons/Thumbnail.js";
41
+ import { ThumbnailIcon as yo } from "./components/icons/Thumbnail.js";
42
42
  import { c as se } 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";
47
- import { RPSplitter as xo } from "./components/layout/sidebar/RPSplitter.js";
48
- import { WrapperLayout as Ro } from "./components/layout/WrapperLayout.js";
49
- import { c as we, L as Lo } from "./LayoutWrapper-e99afee2.js";
50
- import { useThemeContext as Eo } from "./contexts/ThemeContext.js";
51
- import { RPDropFileZone as No } from "./components/RPDropFileZone.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
+ import { RPSplitter as Ro } from "./components/layout/sidebar/RPSplitter.js";
48
+ import { WrapperLayout as Lo } from "./components/layout/WrapperLayout.js";
49
+ import { c as we, L as Eo } from "./LayoutWrapper-e99afee2.js";
50
+ import { useThemeContext as No } from "./contexts/ThemeContext.js";
51
+ import { RPDropFileZone as Oo } from "./components/RPDropFileZone.js";
52
52
  import { c as te, S as Ot } from "./SearchCloseButton-cbf182aa.js";
53
53
  import { UICheckbox as Dt } from "./components/ui/Checkbox.js";
54
- import { useIconContext as Ce, IconProvider as Oo } from "./contexts/IconContext.js";
54
+ import { useIconContext as Ce, IconProvider as Do } from "./contexts/IconContext.js";
55
55
  import Q from "./components/ui/RPTooltip.js";
56
56
  import { UIDropDown as cn } from "./components/ui/DropDown.js";
57
57
  import "./ZoomTool.module-6c5eabbb.js";
58
58
  import { MenuItem as Xe } from "./components/layout/toolbar/MenuItem.js";
59
59
  import { MenuSeparator as ln } from "./components/layout/toolbar/MenuSeparator.js";
60
60
  import { dateFormatter as At } from "./utils/dateFormatter.js";
61
- import { PropertyItem as Do } from "./components/layout/toolbar/PropertyItem.js";
62
- import { RotateTool as Ao } from "./components/layout/toolbar/RotateTool.js";
61
+ import { PropertyItem as Ao } from "./components/layout/toolbar/PropertyItem.js";
62
+ import { RotateTool as zo } from "./components/layout/toolbar/RotateTool.js";
63
63
  import { withRef as et } from "./utils/withRef.js";
64
- import { useInfiniteScroll as zo } from "./utils/hooks/useInfiniteScroll.js";
65
- import { THUMBNAIL_MIN_WIDTH as Fo } from "./utils/constants.js";
66
- import * as Mo from "pdfjs-dist";
67
- import { PixelsPerInch as ko, AnnotationMode as Wo, RenderingCancelledException as Ho, AnnotationLayer as $o } from "pdfjs-dist";
68
- import { SimpleLinkService as qo } from "./utils/link_service.js";
69
- import { annotationsEvents as Go, annotationEventsHandler as Uo, handleClick as zt, handleAnnotationWidget as Vo, handleAnnotationLink as jo, bindLayerEvents as Bo, unbindLayerEvents as Ft } from "./utils/annotations.js";
70
- import { normalizeSingleKeyword as Ko, sortHighlightPosition as Zo, unwrap as Xo } from "./components/page/searchHighlight.js";
71
- import { CustomElement as Qo } from "./components/page/CustomElement.js";
72
- import { useMousePressed as Yo } from "./utils/hooks/useMousePressed.js";
73
- import { useGrabScroll as Jo } from "./utils/hooks/useGrabScroll.js";
74
- import { usePinch as er } from "./utils/hooks/usePinch.js";
64
+ import { useInfiniteScroll as Fo } from "./utils/hooks/useInfiniteScroll.js";
65
+ import { THUMBNAIL_MIN_WIDTH as Mo } from "./utils/constants.js";
66
+ import * as ko from "pdfjs-dist";
67
+ import { PixelsPerInch as Wo, AnnotationMode as Ho, RenderingCancelledException as $o, AnnotationLayer as qo } from "pdfjs-dist";
68
+ import { SimpleLinkService as Go } from "./utils/link_service.js";
69
+ import { annotationsEvents as Uo, annotationEventsHandler as Vo, handleClick as zt, handleAnnotationWidget as jo, handleAnnotationLink as Bo, bindLayerEvents as Ko, unbindLayerEvents as Ft } from "./utils/annotations.js";
70
+ import { normalizeSingleKeyword as Zo, sortHighlightPosition as Xo, unwrap as Qo } from "./components/page/searchHighlight.js";
71
+ import { CustomElement as Yo } from "./components/page/CustomElement.js";
72
+ import { useMousePressed as Jo } from "./utils/hooks/useMousePressed.js";
73
+ import { useGrabScroll as er } from "./utils/hooks/useGrabScroll.js";
74
+ import { usePinch as tr } from "./utils/hooks/usePinch.js";
75
75
  import { useDebounce as bt } from "./utils/hooks/useDebounce.js";
76
- import tr from "./components/ui/PasswordModal.js";
77
- import { getPositionFromPage as nr, getPageFromPosition as or } from "./utils/calculatePage.js";
76
+ import nr from "./components/ui/PasswordModal.js";
77
+ import { getPositionFromPage as or, getPageFromPosition as rr } from "./utils/calculatePage.js";
78
78
  import { getScrollDistance as ze } from "./utils/getScrollDistance.js";
79
- import { getWordPositionInPage as rr } from "./utils/getWordPositionInPage.js";
80
- import { getThumbnailViewport as ir } from "./utils/getThumbnailViewport.js";
79
+ import { getWordPositionInPage as ir } from "./utils/getWordPositionInPage.js";
80
+ import { getThumbnailViewport as ar } from "./utils/getThumbnailViewport.js";
81
81
  import { smoothScrollTo as it } from "./utils/smoothScrollTo.js";
82
- import { appConsole as ar } from "./utils/appConsole.js";
82
+ import { appConsole as sr } from "./utils/appConsole.js";
83
83
  import { FileUploadTool as dn } from "./components/layout/toolbar/FileUploadTool.js";
84
- import { DarkModeTool as sr } from "./components/layout/toolbar/DarkModeTool.js";
85
- import { ThreeDotIcon as cr } from "./components/icons/ThreeDotIcon.js";
86
- import { c as lr, u as Tt, P as Ge, b as We, d as Ct, i as dr, k as ur, a as pr } from "./index-5908484b.js";
87
- import { D as hr, u as at } from "./index-18b0454c.js";
88
- import { a as fr, h as mr, u as gr, F as vr, b as wr, G as un } from "./index-f4a9ae4d.js";
89
- import { CloseIcon as _r } from "./components/icons/CloseIcon.js";
90
- import { DocumentProperties as br } from "./components/layout/toolbar/DocumentProperties.js";
91
- import { ViewModeTool as Tr } from "./components/layout/toolbar/ViewModeTool.js";
92
- import { ScrollModeTool as Cr } from "./components/layout/toolbar/ScrollModeTool.js";
93
- import { FileDownloadDefaultIcon as Pr } from "./components/icons/FileDownloadDefaultIcon.js";
94
- import { PrintDefaultTool as yr } from "./components/icons/PrintDefaultIcon.js";
84
+ import { DarkModeTool as cr } from "./components/layout/toolbar/DarkModeTool.js";
85
+ import { ThreeDotIcon as lr } from "./components/icons/ThreeDotIcon.js";
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-5908484b.js";
87
+ import { D as fr, u as at } from "./index-18b0454c.js";
88
+ import { a as mr, h as gr, u as vr, F as wr, b as _r, G as un } from "./index-f4a9ae4d.js";
89
+ import { CloseIcon as br } from "./components/icons/CloseIcon.js";
90
+ import { DocumentProperties as Tr } from "./components/layout/toolbar/DocumentProperties.js";
91
+ import { ViewModeTool as Cr } from "./components/layout/toolbar/ViewModeTool.js";
92
+ import { ScrollModeTool as Pr } from "./components/layout/toolbar/ScrollModeTool.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
- import { ClearIcon as xr } from "./components/icons/ClearIcon.js";
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
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();
@@ -192,7 +192,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
192
192
  d
193
193
  ]
194
194
  ) };
195
- }, Rr = (t = 1) => {
195
+ }, Lr = (t = 1) => {
196
196
  const [e, n] = q(t), [r, o] = q(0), { scrollToPage: i } = mn(), c = k(1), { viewMode: l } = Fe(), { scrollMode: d } = Ee(), { widths: f } = qe(), { pagesRef: m } = _e(), P = bt(e, 100), p = E(
197
197
  (h) => {
198
198
  if (!/^[0-9]*$/g.test(h.toString()) || !h)
@@ -245,9 +245,9 @@ import './assets/ToolbarLayout.css';const mn = () => {
245
245
  }
246
246
  }), le = () => {
247
247
  const t = $e(gn);
248
- return typeof (t == null ? void 0 : t.focusedPage) > "u" && ar.error("Please use this hooks inside children component of RPProvider"), t;
249
- }, Vs = ({ children: t }) => {
250
- const { pdf: e } = oe(), { setCurrentPage: n } = bo(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Rr();
248
+ return typeof (t == null ? void 0 : t.focusedPage) > "u" && sr.error("Please use this hooks inside children component of RPProvider"), t;
249
+ }, js = ({ children: t }) => {
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(() => {
@@ -268,7 +268,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
268
268
  }
269
269
  );
270
270
  };
271
- const Lr = () => {
271
+ const Er = () => {
272
272
  const { pdf: t, pages: e } = oe(), [n, r] = q({
273
273
  loadedPages: 0,
274
274
  totalPages: 0,
@@ -302,7 +302,7 @@ const Lr = () => {
302
302
  p();
303
303
  return;
304
304
  }
305
- const I = w / ko.PDF;
305
+ const I = w / Wo.PDF;
306
306
  h.width = Math.floor(_.width * I), h.height = Math.floor(_.height * I);
307
307
  const x = h.getContext("2d");
308
308
  x.save(), x.fillStyle = "rgb(255, 255, 255)", x.fillRect(0, 0, h.width, h.height), x.restore();
@@ -319,14 +319,14 @@ const Lr = () => {
319
319
  transform: [I, 0, 0, I, 0, 0],
320
320
  viewport: N.getViewport({ scale: 1, rotation: _.rotation }),
321
321
  intent: "print",
322
- annotationMode: Wo.ENABLE_STORAGE,
322
+ annotationMode: Ho.ENABLE_STORAGE,
323
323
  optionalContentConfigPromise: S,
324
324
  printAnnotationStorage: A
325
325
  };
326
326
  try {
327
327
  return N.render(z).promise;
328
328
  } catch (L) {
329
- throw L instanceof Ho || console.error(L), L;
329
+ throw L instanceof $o || console.error(L), L;
330
330
  }
331
331
  }, C = E(() => {
332
332
  const h = window.print;
@@ -445,8 +445,8 @@ const Lr = () => {
445
445
  console.error("Error in setOnError callback:", e);
446
446
  }
447
447
  }
448
- }), js = ({ children: t }) => {
449
- const [e, n] = q(null), [r, o] = q(null), { print: i, cancel: c, progress: l, isComplete: d, isError: f, error: m } = Lr(), P = E((T) => {
448
+ }), Bs = ({ children: t }) => {
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) => {
452
452
  m && T(m);
@@ -481,13 +481,13 @@ const Lr = () => {
481
481
  if (!t)
482
482
  throw new Error("usePrintContext must be used within a PrintProvider");
483
483
  return t;
484
- }, Er = () => {
484
+ }, Nr = () => {
485
485
  const [t, e] = q({}), { pages: n } = oe(), r = W(() => Object.keys(t).length, [t]), o = E(
486
486
  (c) => {
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 } = ir(m.page, m.defaultRotation);
490
+ const { thumbnailViewport: P, scale: p } = ar(m.page, m.defaultRotation);
491
491
  return {
492
492
  scale: p,
493
493
  page: m.page,
@@ -532,11 +532,11 @@ const Lr = () => {
532
532
  setActive: (t) => {
533
533
  },
534
534
  active: !1
535
- }), _n = () => $e(wn), Bs = ({
535
+ }), _n = () => $e(wn), Ks = ({
536
536
  children: t,
537
537
  initialThumbnailsVisible: e
538
538
  }) => {
539
- const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = Er(), [c, l] = q(e);
539
+ const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: i } = Nr(), [c, l] = q(e);
540
540
  return /* @__PURE__ */ a(
541
541
  wn.Provider,
542
542
  {
@@ -544,7 +544,7 @@ const Lr = () => {
544
544
  children: t
545
545
  }
546
546
  );
547
- }, Nr = (t = {}, e = "") => {
547
+ }, Or = (t = {}, e = "") => {
548
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(), [y, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: s } = 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
550
  if (!I || !l)
@@ -555,25 +555,25 @@ const Lr = () => {
555
555
  const O = l.get(I.page);
556
556
  if (s === ne.PAGE_SCROLLING && b(I.page), !O)
557
557
  return;
558
- let F = 0, H = 0;
558
+ let F = 0, $ = 0;
559
559
  if (s === ne.VERTICAL_SCROLLING) {
560
560
  const J = I.page - 1, ee = C, ie = J % ee, ae = Math.floor(J / ee);
561
- F = ze(f, ae), H = ze(d, ie);
561
+ F = ze(f, ae), $ = ze(d, ie);
562
562
  }
563
- s === ne.HORIZONTAL_SCROLLING && (H = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
563
+ s === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
564
564
  const M = {
565
565
  height: f[I.page - 1],
566
566
  width: d[I.page - 1]
567
567
  }, j = {
568
568
  top: M.height / 2,
569
569
  left: M.width / 2
570
- }, K = T[I.page], { leftInPage: U, topInPage: re } = rr(
570
+ }, K = T[I.page], { leftInPage: U, topInPage: re } = ir(
571
571
  M,
572
572
  j,
573
573
  I.rect,
574
574
  P,
575
575
  K
576
- ), G = H + U, Z = F + re, Y = {
576
+ ), G = $ + U, Z = F + re, Y = {
577
577
  left: Math.max(G, 0),
578
578
  top: Math.max(Z, 0)
579
579
  };
@@ -600,11 +600,11 @@ const Lr = () => {
600
600
  if (!L)
601
601
  return {};
602
602
  const O = L.numPages, F = {};
603
- for (let H = 1; H <= O; H++) {
603
+ for (let $ = 1; $ <= O; $++) {
604
604
  if (m.current)
605
605
  throw "close pop over";
606
- const M = await L.getPage(H);
607
- F[H.toString()] = await M.getTextContent();
606
+ const M = await L.getPage($);
607
+ F[$.toString()] = await M.getTextContent();
608
608
  }
609
609
  return F;
610
610
  }, []);
@@ -615,14 +615,14 @@ const Lr = () => {
615
615
  }
616
616
  m.current = !1, i(!0), v([]), g(0), z(c).then((L) => {
617
617
  R.current = L;
618
- const F = Object.keys(L).reduce((H, M) => {
619
- const j = po(
618
+ const F = Object.keys(L).reduce(($, M) => {
619
+ const j = ho(
620
620
  [n],
621
621
  L[M],
622
622
  Number(M) - 1,
623
623
  t
624
624
  ).map((K, U) => ({ ...K, page: Number(M), pageMatchIdx: U }));
625
- return [...H, ...j];
625
+ return [...$, ...j];
626
626
  }, []);
627
627
  v(F), g(F.length ? 1 : 0);
628
628
  }).catch(() => {
@@ -659,7 +659,7 @@ const Lr = () => {
659
659
  currentMatchElement: null,
660
660
  setCurrentMatchElement: (t) => {
661
661
  }
662
- }), Ks = ({
662
+ }), Zs = ({
663
663
  children: t,
664
664
  initialSearch: e
665
665
  }) => {
@@ -675,7 +675,7 @@ const Lr = () => {
675
675
  prevMatch: p,
676
676
  currentMatchElement: v,
677
677
  setCurrentMatchElement: b
678
- } = Nr(n, e);
678
+ } = Or(n, e);
679
679
  return /* @__PURE__ */ a(
680
680
  bn.Provider,
681
681
  {
@@ -697,10 +697,10 @@ const Lr = () => {
697
697
  children: t
698
698
  }
699
699
  );
700
- }, Pt = () => $e(bn), Tn = He(null), Zs = ({ children: t }) => {
700
+ }, Pt = () => $e(bn), Tn = He(null), Xs = ({ 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 wo(o), [o]), { focusedPage: c } = le(), l = E((d) => (e.current = !0, _o(
703
+ }, []), i = W(() => new _o(o), [o]), { focusedPage: c } = le(), l = E((d) => (e.current = !0, bo(
704
704
  d.data.page,
705
705
  d.data.canvasElem,
706
706
  d.data.options
@@ -727,7 +727,7 @@ const Lr = () => {
727
727
  if (!t)
728
728
  throw new Error("RenderQueue not found");
729
729
  return t;
730
- }, ue = {
730
+ }, de = {
731
731
  "rp-pages": "_rp-pages_1i1lj_1",
732
732
  "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_1i1lj_6",
733
733
  "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1i1lj_11",
@@ -741,7 +741,7 @@ const Lr = () => {
741
741
  "rp-page-wrapper": "_rp-page-wrapper_14ohm_1",
742
742
  "rp-page": "_rp-page_14ohm_1",
743
743
  "rp-loader-wrapper": "_rp-loader-wrapper_14ohm_15"
744
- }, Or = (t) => {
744
+ }, Dr = (t) => {
745
745
  const { pageNumber: e, onLoaded: n, onLoading: r } = t, o = k(null), { pages: i } = oe(), { pageRotate: c } = Je(), l = k(), { currentZoom: d } = wt(), f = Cn(), m = k(`page-${e}`);
746
746
  return D(() => {
747
747
  if (!i || d === 0)
@@ -770,21 +770,21 @@ const Lr = () => {
770
770
  f.removeQueue(m.current);
771
771
  };
772
772
  }, [i, e, c, d, r, n, f]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
- }, Dr = "_selecting_1uik2_10", Ar = "_markedContent_1uik2_33", me = {
773
+ }, Ar = "_selecting_1uik2_10", zr = "_markedContent_1uik2_33", me = {
774
774
  "rp-text-layer": "_rp-text-layer_1uik2_1",
775
- selecting: Dr,
776
- markedContent: Ar,
775
+ selecting: Ar,
776
+ markedContent: zr,
777
777
  "rp-text-layer-text": "_rp-text-layer-text_1uik2_52"
778
- }, zr = (t) => {
778
+ }, Fr = (t) => {
779
779
  const { pageNumber: e } = t, { pages: n } = oe(), r = k(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = q(
780
780
  []
781
781
  ), f = k(), m = k(), P = k([]), p = W(() => o.filter((h) => h.pageIndex === e - 1), [o, e]), v = E(
782
782
  (h, u, s = !1) => {
783
- if (s && ho(h, u), !p.length) {
783
+ if (s && fo(h, u), !p.length) {
784
784
  P.current = [], d([]);
785
785
  return;
786
786
  }
787
- const _ = fo(p, h, u);
787
+ const _ = mo(p, h, u);
788
788
  d(_);
789
789
  },
790
790
  [p]
@@ -839,8 +839,8 @@ const Lr = () => {
839
839
  const S = /* @__PURE__ */ new Set();
840
840
  for (let O = 0; O < w.rangeCount; O++) {
841
841
  const F = w.getRangeAt(O);
842
- T().forEach((H) => {
843
- F.intersectsNode(H) && !S.has(H) && S.add(H);
842
+ T().forEach(($) => {
843
+ F.intersectsNode($) && !S.has($) && S.add($);
844
844
  });
845
845
  }
846
846
  T().forEach((O) => {
@@ -891,7 +891,7 @@ const Lr = () => {
891
891
  const u = r.current;
892
892
  return f.current && f.current.cancel(), h.page.getTextContent().then((s) => {
893
893
  const _ = h.page.getViewport({ scale: 1 });
894
- return f.current = new Mo.TextLayer({
894
+ return f.current = new ko.TextLayer({
895
895
  viewport: _,
896
896
  textContentSource: s,
897
897
  container: u
@@ -928,11 +928,11 @@ const Lr = () => {
928
928
  onMouseUp: g
929
929
  }
930
930
  );
931
- }, Fr = {
931
+ }, Mr = {
932
932
  "rp-annotation-layer": "_rp-annotation-layer_1udza_1"
933
933
  };
934
- let Mr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
935
- const kr = (t) => {
934
+ let kr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
935
+ const Wr = (t) => {
936
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
937
  D(() => {
938
938
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
@@ -943,7 +943,7 @@ const kr = (t) => {
943
943
  }, [v]);
944
944
  const C = E(
945
945
  (T) => {
946
- !c || !o || (Go(T), Uo(T, o, c).then((y) => {
946
+ !c || !o || (Uo(T), Vo(T, o, c).then((y) => {
947
947
  var g, h;
948
948
  ((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();
949
949
  }), m === ne.PAGE_SCROLLING ? zt(T, c, o, (y) => d(y.pageIndex + 1)) : zt(T, c, o, (y) => f(y.pageIndex + 1)));
@@ -965,17 +965,17 @@ const kr = (t) => {
965
965
  const { annotationType: s } = u;
966
966
  switch (s) {
967
967
  case Nt.Link:
968
- jo(u);
968
+ Bo(u);
969
969
  break;
970
970
  case Nt.Widget:
971
- Vo(u, T, y);
971
+ jo(u, T, y);
972
972
  break;
973
973
  }
974
974
  }
975
975
  const g = new AbortController();
976
976
  return (async () => {
977
977
  var _;
978
- i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new $o({
978
+ i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new qo({
979
979
  div: n.current,
980
980
  accessibilityManager: void 0,
981
981
  annotationCanvasMap: void 0,
@@ -995,14 +995,14 @@ const kr = (t) => {
995
995
  div: n.current,
996
996
  viewport: T.clone({ dontFlip: !0 }),
997
997
  page: v.page,
998
- imageResourcesPath: Mr,
998
+ imageResourcesPath: kr,
999
999
  renderForms: !0,
1000
- linkService: new qo(),
1000
+ linkService: new Go(),
1001
1001
  downloadManager: null,
1002
1002
  enableScripting: !1
1003
1003
  });
1004
1004
  })().then(() => {
1005
- n.current && Bo(n.current, C);
1005
+ n.current && Ko(n.current, C);
1006
1006
  }).catch((u) => {
1007
1007
  if (u !== "abort")
1008
1008
  throw u;
@@ -1014,14 +1014,14 @@ const kr = (t) => {
1014
1014
  {
1015
1015
  "data-rp": `page-${e}-annotationLayer`,
1016
1016
  style: { width: `${b == null ? void 0 : b.width}px`, height: `${b == null ? void 0 : b.height}px` },
1017
- className: Fr["rp-annotation-layer"],
1017
+ className: Mr["rp-annotation-layer"],
1018
1018
  ref: n
1019
1019
  }
1020
1020
  );
1021
- }, Wr = {
1021
+ }, Hr = {
1022
1022
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1023
- }, Hr = ({ pageNumber: t, viewport: e }) => {
1024
- const [n, r] = q(), { pages: o } = oe(), { highlightKeywords: i } = go(), c = !0, l = k(null), [d, f] = q(null), [m, P] = q([]);
1023
+ }, $r = ({ pageNumber: t, viewport: e }) => {
1024
+ const [n, r] = q(), { pages: o } = oe(), { highlightKeywords: i } = vo(), c = !0, l = k(null), [d, f] = q(null), [m, P] = q([]);
1025
1025
  D(() => {
1026
1026
  l.current && f(l.current.parentElement);
1027
1027
  }, [l]), D(() => {
@@ -1036,7 +1036,7 @@ const kr = (t) => {
1036
1036
  const p = W(() => i ? i.map((g) => {
1037
1037
  var h, u;
1038
1038
  return {
1039
- ...Ko(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (u = g.options) == null ? void 0 : u.wholeWords),
1039
+ ...Zo(g.keyword, (h = g.options) == null ? void 0 : h.matchCase, (u = g.options) == null ? void 0 : u.wholeWords),
1040
1040
  color: g.highlightColor
1041
1041
  };
1042
1042
  }) : [], [i]);
@@ -1084,12 +1084,12 @@ const kr = (t) => {
1084
1084
  _.setStart(w, R), _.setEnd(w, I + 1);
1085
1085
  const x = document.createElement("span");
1086
1086
  x.style.width = "auto", _.surroundContents(x);
1087
- 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, H = 100 * N.height / z, M = 100 * N.width / L;
1088
- return Xo(x), {
1087
+ 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;
1088
+ return Qo(x), {
1089
1089
  keywordStr: h,
1090
1090
  left: O,
1091
1091
  top: F,
1092
- height: H,
1092
+ height: $,
1093
1093
  width: M,
1094
1094
  pageHeight: z,
1095
1095
  pageWidth: L
@@ -1133,17 +1133,17 @@ const kr = (t) => {
1133
1133
  let O;
1134
1134
  const F = [];
1135
1135
  for (; (O = L.exec(S)) !== null; )
1136
- N && !mo(S, O.index, O[0].length) || F.push({
1136
+ N && !go(S, O.index, O[0].length) || F.push({
1137
1137
  keyword: L,
1138
1138
  startIndex: O.index,
1139
1139
  endIndex: L.lastIndex
1140
1140
  });
1141
- const H = F.map((M) => ({
1141
+ const $ = F.map((M) => ({
1142
1142
  keyword: M.keyword,
1143
1143
  indexes: s.slice(M.startIndex, M.endIndex),
1144
1144
  color: A
1145
1145
  }));
1146
- for (const M of H) {
1146
+ for (const M of $) {
1147
1147
  const j = M.indexes.reduce(
1148
1148
  (K, U) => (K[U.spanIdx] = (K[U.spanIdx] || []).concat([U]), K),
1149
1149
  {}
@@ -1164,7 +1164,7 @@ const kr = (t) => {
1164
1164
  }
1165
1165
  }
1166
1166
  }
1167
- }), w.sort(Zo), w;
1167
+ }), w.sort(Xo), w;
1168
1168
  };
1169
1169
  return D(() => {
1170
1170
  (async () => {
@@ -1178,7 +1178,7 @@ const kr = (t) => {
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
1179
  "div",
1180
1180
  {
1181
- className: Wr["rp-text-highlight"],
1181
+ className: Hr["rp-text-highlight"],
1182
1182
  style: {
1183
1183
  top: `${g.top}%`,
1184
1184
  left: `${g.left}%`,
@@ -1190,7 +1190,7 @@ const kr = (t) => {
1190
1190
  h
1191
1191
  )) }) });
1192
1192
  }, yt = et((t, e) => {
1193
- const { pageNumber: n, style: r, ...o } = t, { pages: i } = oe(), { pageRotate: c } = Je(), { textLayer: l } = so(), { currentZoom: d } = wt(), f = k(i.get(n)), [m, P] = q(!1), p = k(null), [v, b] = q({
1193
+ 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
1194
  width: 0,
1195
1195
  height: 0
1196
1196
  });
@@ -1234,7 +1234,7 @@ const kr = (t) => {
1234
1234
  "--scale-factor": d
1235
1235
  },
1236
1236
  className: st["rp-page-wrapper"],
1237
- children: /* @__PURE__ */ $(
1237
+ children: /* @__PURE__ */ H(
1238
1238
  "div",
1239
1239
  {
1240
1240
  style: {
@@ -1243,12 +1243,12 @@ const kr = (t) => {
1243
1243
  },
1244
1244
  className: st["rp-page"],
1245
1245
  children: [
1246
- /* @__PURE__ */ a(Or, { onLoading: y, onLoaded: g, pageNumber: n }),
1246
+ /* @__PURE__ */ a(Dr, { onLoading: y, onLoaded: g, pageNumber: n }),
1247
1247
  m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1248
- /* @__PURE__ */ a(Qo, { pageNumber: n }),
1249
- l && /* @__PURE__ */ a(zr, { pageNumber: n }),
1250
- /* @__PURE__ */ a(Hr, { pageNumber: n, viewport: v }),
1251
- /* @__PURE__ */ a(kr, { pageNumber: n })
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 })
1252
1252
  ]
1253
1253
  }
1254
1254
  )
@@ -1275,25 +1275,25 @@ function mt(t, e) {
1275
1275
  return n.__proto__ = r, n;
1276
1276
  }, mt(t, e);
1277
1277
  }
1278
- function $r(t, e) {
1278
+ function qr(t, e) {
1279
1279
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, mt(t, e);
1280
1280
  }
1281
1281
  var Wt = Number.isNaN || function(e) {
1282
1282
  return typeof e == "number" && e !== e;
1283
1283
  };
1284
- function qr(t, e) {
1284
+ function Gr(t, e) {
1285
1285
  return !!(t === e || Wt(t) && Wt(e));
1286
1286
  }
1287
- function Gr(t, e) {
1287
+ function Ur(t, e) {
1288
1288
  if (t.length !== e.length)
1289
1289
  return !1;
1290
1290
  for (var n = 0; n < t.length; n++)
1291
- if (!qr(t[n], e[n]))
1291
+ if (!Gr(t[n], e[n]))
1292
1292
  return !1;
1293
1293
  return !0;
1294
1294
  }
1295
1295
  function ct(t, e) {
1296
- e === void 0 && (e = Gr);
1296
+ e === void 0 && (e = Ur);
1297
1297
  var n, r = [], o, i = !1;
1298
1298
  function c() {
1299
1299
  for (var l = [], d = 0; d < arguments.length; d++)
@@ -1314,7 +1314,7 @@ function Ht(t, e) {
1314
1314
  }
1315
1315
  return n;
1316
1316
  }
1317
- var Ur = typeof performance == "object" && typeof performance.now == "function", $t = Ur ? function() {
1317
+ var Vr = typeof performance == "object" && typeof performance.now == "function", $t = Vr ? function() {
1318
1318
  return performance.now();
1319
1319
  } : function() {
1320
1320
  return Date.now();
@@ -1322,7 +1322,7 @@ var Ur = typeof performance == "object" && typeof performance.now == "function",
1322
1322
  function qt(t) {
1323
1323
  cancelAnimationFrame(t.id);
1324
1324
  }
1325
- function Vr(t, e) {
1325
+ function jr(t, e) {
1326
1326
  var n = $t();
1327
1327
  function r() {
1328
1328
  $t() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
@@ -1333,7 +1333,7 @@ function Vr(t, e) {
1333
1333
  return o;
1334
1334
  }
1335
1335
  var lt = -1;
1336
- function jr(t) {
1336
+ function Br(t) {
1337
1337
  if (t === void 0 && (t = !1), lt === -1 || t) {
1338
1338
  var e = document.createElement("div"), n = e.style;
1339
1339
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), lt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1350,17 +1350,17 @@ function Gt(t) {
1350
1350
  }
1351
1351
  return De;
1352
1352
  }
1353
- var Br = 150, Kr = function(e) {
1353
+ var Kr = 150, Zr = function(e) {
1354
1354
  var n = e.columnIndex;
1355
1355
  e.data;
1356
1356
  var r = e.rowIndex;
1357
1357
  return r + ":" + n;
1358
1358
  }, je = null, Be = null, Ke = null;
1359
1359
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (je = /* @__PURE__ */ new WeakSet(), Be = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1360
- function Zr(t) {
1360
+ function Xr(t) {
1361
1361
  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
1362
  return e = /* @__PURE__ */ function(y) {
1363
- $r(g, y);
1363
+ qr(g, y);
1364
1364
  function g(u) {
1365
1365
  var s;
1366
1366
  return s = y.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
@@ -1438,7 +1438,7 @@ function Zr(t) {
1438
1438
  var w = s.props.outerRef;
1439
1439
  s._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1440
1440
  }, s._resetIsScrollingDebounced = function() {
1441
- s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Vr(s._resetIsScrolling, Br);
1441
+ s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = jr(s._resetIsScrolling, Kr);
1442
1442
  }, s._resetIsScrolling = function() {
1443
1443
  s._resetIsScrollingTimeoutId = null, s.setState({
1444
1444
  isScrolling: !1
@@ -1448,7 +1448,7 @@ function Zr(t) {
1448
1448
  }, s;
1449
1449
  }
1450
1450
  g.getDerivedStateFromProps = function(s, _) {
1451
- return Xr(s, _), T(s), null;
1451
+ return Qr(s, _), T(s), null;
1452
1452
  };
1453
1453
  var h = g.prototype;
1454
1454
  return h.scrollTo = function(s) {
@@ -1463,9 +1463,9 @@ function Zr(t) {
1463
1463
  };
1464
1464
  }, this._resetIsScrollingDebounced);
1465
1465
  }, h.scrollToItem = function(s) {
1466
- var _ = s.align, w = _ === void 0 ? "auto" : _, S = s.columnIndex, R = s.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, H = jr();
1466
+ var _ = s.align, w = _ === void 0 ? "auto" : _, S = s.columnIndex, R = s.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, $ = Br();
1467
1467
  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
- var M = c(this.props, this._instanceProps), j = l(this.props, this._instanceProps), K = j > z ? H : 0, U = M > N ? H : 0;
1468
+ var M = c(this.props, this._instanceProps), j = l(this.props, this._instanceProps), K = j > z ? $ : 0, U = M > N ? $ : 0;
1469
1469
  this.scrollTo({
1470
1470
  scrollLeft: S !== void 0 ? d(this.props, S, w, O, this._instanceProps, U) : O,
1471
1471
  scrollTop: R !== void 0 ? f(this.props, R, w, F, this._instanceProps, K) : F
@@ -1502,7 +1502,7 @@ function Zr(t) {
1502
1502
  }, h.componentWillUnmount = function() {
1503
1503
  this._resetIsScrollingTimeoutId !== null && qt(this._resetIsScrollingTimeoutId);
1504
1504
  }, h.render = function() {
1505
- var s = this.props, _ = s.children, w = s.className, S = s.columnCount, R = s.direction, I = s.height, x = s.innerRef, N = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, O = L === void 0 ? Kr : L, F = s.outerElementType, H = s.outerTagName, M = s.rowCount, j = 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 = [];
1505
+ var s = this.props, _ = s.children, w = s.className, S = s.columnCount, R = s.direction, I = s.height, x = 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, j = 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
1506
  if (S > 0 && M)
1507
1507
  for (var Pe = ee; Pe <= ie; Pe++)
1508
1508
  for (var fe = Z; fe <= Y; fe++)
@@ -1519,7 +1519,7 @@ function Zr(t) {
1519
1519
  style: this._getItemStyle(Pe, fe)
1520
1520
  }));
1521
1521
  var nt = c(this.props, this._instanceProps), Ue = l(this.props, this._instanceProps);
1522
- return Ve(F || H || "div", {
1522
+ return Ve(F || $ || "div", {
1523
1523
  className: w,
1524
1524
  onScroll: this._onScroll,
1525
1525
  ref: this._outerRefSetter,
@@ -1544,8 +1544,8 @@ function Zr(t) {
1544
1544
  }, h._callPropsCallbacks = function() {
1545
1545
  var s = this.props, _ = s.columnCount, w = s.onItemsRendered, S = s.onScroll, R = s.rowCount;
1546
1546
  if (typeof w == "function" && _ > 0 && R > 0) {
1547
- 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], H = L[2], M = L[3];
1548
- this._callOnItemsRendered(x, N, O, F, A, z, H, M);
1547
+ 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];
1548
+ this._callOnItemsRendered(x, N, O, F, A, z, $, M);
1549
1549
  }
1550
1550
  if (typeof S == "function") {
1551
1551
  var j = this.state, K = j.horizontalScrollDirection, U = j.scrollLeft, re = j.scrollTop, G = j.scrollUpdateWasRequested, Z = j.verticalScrollDirection;
@@ -1555,14 +1555,14 @@ function Zr(t) {
1555
1555
  var s = this.props, _ = s.columnCount, w = s.overscanColumnCount, S = s.overscanColumnsCount, R = s.overscanCount, I = s.rowCount, x = this.state, N = x.horizontalScrollDirection, A = x.isScrolling, z = x.scrollLeft, L = w || S || R || 1;
1556
1556
  if (_ === 0 || I === 0)
1557
1557
  return [0, 0, 0, 0];
1558
- var O = r(this.props, z, this._instanceProps), F = o(this.props, O, z, this._instanceProps), H = !A || N === "backward" ? Math.max(1, L) : 1, M = !A || N === "forward" ? Math.max(1, L) : 1;
1559
- return [Math.max(0, O - H), Math.max(0, Math.min(_ - 1, F + M)), O, F];
1558
+ 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
+ return [Math.max(0, O - $), Math.max(0, Math.min(_ - 1, F + M)), O, F];
1560
1560
  }, h._getVerticalRangeToRender = function() {
1561
1561
  var s = this.props, _ = s.columnCount, w = s.overscanCount, S = s.overscanRowCount, R = s.overscanRowsCount, I = s.rowCount, x = this.state, N = x.isScrolling, A = x.verticalScrollDirection, z = x.scrollTop, L = S || R || w || 1;
1562
1562
  if (_ === 0 || I === 0)
1563
1563
  return [0, 0, 0, 0];
1564
- var O = p(this.props, z, this._instanceProps), F = v(this.props, O, z, this._instanceProps), H = !N || A === "backward" ? Math.max(1, L) : 1, M = !N || A === "forward" ? Math.max(1, L) : 1;
1565
- return [Math.max(0, O - H), Math.max(0, Math.min(I - 1, F + M)), O, F];
1564
+ 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(I - 1, F + M)), O, F];
1566
1566
  }, g;
1567
1567
  }(to), e.defaultProps = {
1568
1568
  direction: "ltr",
@@ -1570,7 +1570,7 @@ function Zr(t) {
1570
1570
  useIsScrolling: !1
1571
1571
  }, e;
1572
1572
  }
1573
- var Xr = function(e, n) {
1573
+ var Qr = function(e, n) {
1574
1574
  var r = e.children, o = e.direction, i = e.height, c = e.innerTagName, l = e.outerTagName, d = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, P = e.width, p = n.instance;
1575
1575
  if (process.env.NODE_ENV !== "production") {
1576
1576
  if (typeof f == "number" && je && !je.has(p) && (je.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && Be && !Be.has(p) && (Be.add(p), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ke && !Ke.has(p) && (Ke.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
@@ -1625,7 +1625,7 @@ var Xr = function(e, n) {
1625
1625
  var i, c;
1626
1626
  e === "column" ? (i = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1627
1627
  var l = c > 0 ? i[c].offset : 0;
1628
- return l >= o ? Sn(e, n, r, c, 0, o) : Qr(e, n, r, Math.max(0, c), o);
1628
+ return l >= o ? Sn(e, n, r, c, 0, o) : Yr(e, n, r, Math.max(0, c), o);
1629
1629
  }, Sn = function(e, n, r, o, i, c) {
1630
1630
  for (; i <= o; ) {
1631
1631
  var l = i + Math.floor((o - i) / 2), d = ge(e, n, l, r).offset;
@@ -1634,7 +1634,7 @@ var Xr = function(e, n) {
1634
1634
  d < c ? i = l + 1 : d > c && (o = l - 1);
1635
1635
  }
1636
1636
  return i > 0 ? i - 1 : 0;
1637
- }, Qr = function(e, n, r, o, i) {
1637
+ }, Yr = function(e, n, r, o, i) {
1638
1638
  for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; o < c && ge(e, n, o, r).offset < i; )
1639
1639
  o += l, l *= 2;
1640
1640
  return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
@@ -1651,7 +1651,7 @@ var Xr = function(e, n) {
1651
1651
  default:
1652
1652
  return i >= p && i <= P ? i : p > P || i < p ? p : P;
1653
1653
  }
1654
- }, Yr = /* @__PURE__ */ Zr({
1654
+ }, Jr = /* @__PURE__ */ Xr({
1655
1655
  getColumnOffset: function(e, n, r) {
1656
1656
  return ge("column", e, n, r).offset;
1657
1657
  },
@@ -1733,12 +1733,12 @@ function Bt(t, e) {
1733
1733
  return !0;
1734
1734
  return !1;
1735
1735
  }
1736
- var Jr = ["style"], ei = ["style"];
1737
- function ti(t, e) {
1738
- var n = t.style, r = Ht(t, Jr), o = e.style, i = Ht(e, ei);
1736
+ var ei = ["style"], ti = ["style"];
1737
+ function ni(t, e) {
1738
+ var n = t.style, r = Ht(t, ei), o = e.style, i = Ht(e, ti);
1739
1739
  return !Bt(n, o) && !Bt(r, i);
1740
1740
  }
1741
- const ni = () => {
1741
+ const oi = () => {
1742
1742
  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
1743
  const y = T % c;
1744
1744
  return (!b[y] || C > b[y]) && (b[y] = C), b;
@@ -1788,7 +1788,7 @@ ut == null || Xt == null ? (gt = dt, vt = function(e) {
1788
1788
  }, Kt);
1789
1789
  return [n, r];
1790
1790
  });
1791
- function oi(t) {
1791
+ function ri(t) {
1792
1792
  let e, n, r, o, i, c, l;
1793
1793
  const d = typeof document < "u" && document.attachEvent;
1794
1794
  if (!d) {
@@ -1860,7 +1860,7 @@ function oi(t) {
1860
1860
  }
1861
1861
  };
1862
1862
  }
1863
- class ri extends no {
1863
+ class ii extends no {
1864
1864
  constructor(...e) {
1865
1865
  super(...e), this.state = {
1866
1866
  height: this.props.defaultHeight || 0,
@@ -1901,7 +1901,7 @@ class ri extends no {
1901
1901
  const r = n.ownerDocument.defaultView.ResizeObserver;
1902
1902
  r != null ? (this._resizeObserver = new r(() => {
1903
1903
  this._timeoutId = setTimeout(this._onResize, 0);
1904
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = oi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1904
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = ri(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1905
1905
  }
1906
1906
  }
1907
1907
  componentWillUnmount() {
@@ -1939,7 +1939,7 @@ class ri extends no {
1939
1939
  }, !g && e(y));
1940
1940
  }
1941
1941
  }
1942
- const ii = nn(({ widths: t, heights: e }) => {
1942
+ const ai = nn(({ widths: t, heights: e }) => {
1943
1943
  const { focusedPage: n, totalPages: r } = le(), o = W(() => {
1944
1944
  const l = [], d = Math.ceil(n / 2) * 2 - 1;
1945
1945
  if (l.push(d), d + 1 <= r) {
@@ -1965,7 +1965,7 @@ const ii = nn(({ widths: t, heights: e }) => {
1965
1965
  ];
1966
1966
  }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1967
1967
  return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(yt, { style: i[d], pageNumber: l }, l)) });
1968
- }), ai = ({ widths: t, heights: e }) => {
1968
+ }), si = ({ widths: t, heights: e }) => {
1969
1969
  const { focusedPage: n } = le(), r = W(() => ({
1970
1970
  position: "absolute",
1971
1971
  width: t(n - 1),
@@ -1981,9 +1981,9 @@ const ii = nn(({ widths: t, heights: e }) => {
1981
1981
  children: /* @__PURE__ */ a(yt, { style: r, pageNumber: n }, n)
1982
1982
  }
1983
1983
  );
1984
- }, si = (t, e, n) => {
1984
+ }, ci = (t, e, n) => {
1985
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], y = nr(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, s = h + b;
1986
+ const T = c[C], y = or(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, s = h + b;
1987
1987
  return {
1988
1988
  pageNumber: C + 1,
1989
1989
  ...y,
@@ -2031,7 +2031,7 @@ const ii = nn(({ widths: t, heights: e }) => {
2031
2031
  };
2032
2032
  }, [n, v]);
2033
2033
  }, In = et((t, e) => {
2034
- const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = Eo(), { darkMode: f } = ao();
2034
+ const { children: n, toolbarRef: r, style: o, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = No(), { darkMode: f } = so();
2035
2035
  return /* @__PURE__ */ a(
2036
2036
  "div",
2037
2037
  {
@@ -2052,11 +2052,11 @@ const ii = nn(({ widths: t, heights: e }) => {
2052
2052
  children: n
2053
2053
  }
2054
2054
  );
2055
- }), ci = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2056
- const o = or(e, t, n.columnCount);
2055
+ }), li = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2056
+ const o = rr(e, t, n.columnCount);
2057
2057
  return /* @__PURE__ */ a(yt, { style: r, pageNumber: o }, o);
2058
- }, ti), Xs = () => {
2059
- const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = lo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2058
+ }, ni), Qs = () => {
2059
+ const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = uo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2060
2060
  virtualScrollRef: l,
2061
2061
  getVirtualScrollRef: d,
2062
2062
  getPageScrollElementRef: f,
@@ -2065,27 +2065,27 @@ const ii = nn(({ widths: t, heights: e }) => {
2065
2065
  virtualScrollableElementRef: p,
2066
2066
  totalInnerDimensions: v,
2067
2067
  pageScrollElementRef: b
2068
- } = Ye(), C = k(!0), { nextPage: T, prevPage: y, setFocusedPage: g, focusedPage: h } = le(), { scrollMode: u } = Ee(), { viewMode: s } = Fe(), _ = k(null), { loading: w, error: S } = oe(), { passwordRequired: R } = io(), { LoaderImageComponent: I } = sn(), x = k(
2068
+ } = Ye(), C = k(!0), { nextPage: T, prevPage: y, setFocusedPage: g, focusedPage: h } = le(), { scrollMode: u } = Ee(), { viewMode: s } = Fe(), _ = k(null), { loading: w, error: S } = oe(), { passwordRequired: R } = ao(), { LoaderImageComponent: I } = sn(), x = k(
2069
2069
  v
2070
2070
  ), N = k({
2071
2071
  viewMode: s,
2072
2072
  scrollMode: u
2073
- }), A = k(!1), z = k(), { isFullScreen: L } = uo(), {
2073
+ }), A = k(!1), z = k(), { isFullScreen: L } = po(), {
2074
2074
  pageDimension: O,
2075
2075
  rowCount: F,
2076
- rowHeight: H,
2076
+ rowHeight: $,
2077
2077
  columnCount: M,
2078
2078
  columnWidth: j,
2079
2079
  estimatedColumnWidth: K,
2080
2080
  estimatedRowHeight: U
2081
- } = ni(), re = bt(v, 100), G = k();
2082
- si(M, F, p);
2081
+ } = oi(), re = bt(v, 100), G = k();
2082
+ ci(M, F, p);
2083
2083
  const Z = k({
2084
2084
  scrollTop: 0,
2085
2085
  scrollLeft: 0
2086
2086
  });
2087
- er(r);
2088
- const { isPressed: Y } = Yo(), { selectionMode: J } = co(), { initializeGrabScroll: ee, resetGrabState: ie } = Jo({
2087
+ tr(r);
2088
+ const { isPressed: Y } = Jo(), { selectionMode: J } = lo(), { initializeGrabScroll: ee, resetGrabState: ie } = er({
2089
2089
  isPressed: Y
2090
2090
  }), ae = W(() => J === ro.HAND, [J]), Pe = W(() => ({
2091
2091
  columnCount: M
@@ -2154,7 +2154,7 @@ const ii = nn(({ widths: t, heights: e }) => {
2154
2154
  D(() => {
2155
2155
  clearTimeout(z.current);
2156
2156
  const V = Array.from({ length: F }).reduce(
2157
- (Se, ot, Ie) => Se + H(Ie),
2157
+ (Se, ot, Ie) => Se + $(Ie),
2158
2158
  0
2159
2159
  ), B = Array.from({ length: M }).reduce(
2160
2160
  (Se, ot, Ie) => Se + j(Ie),
@@ -2177,17 +2177,17 @@ const ii = nn(({ widths: t, heights: e }) => {
2177
2177
  D(() => () => {
2178
2178
  G.current && clearTimeout(G.current);
2179
2179
  }, []);
2180
- const Zn = W(() => se(ue["rp-pages-container"], {
2181
- [ue["rp-cursor-grab"]]: ae && !Y,
2182
- [ue["rp-cursor-grabbing"]]: ae && Y
2180
+ const Zn = W(() => se(de["rp-pages-container"], {
2181
+ [de["rp-cursor-grab"]]: ae && !Y,
2182
+ [de["rp-cursor-grabbing"]]: ae && Y
2183
2183
  }), [ae, Y]), Xn = E(
2184
2184
  (V) => {
2185
2185
  if (ae && V) {
2186
- const B = se(ue["rp-pages"]), ye = document.querySelector(`.${B}`);
2186
+ const B = se(de["rp-pages"]), ye = document.querySelector(`.${B}`);
2187
2187
  ee(ye);
2188
2188
  }
2189
2189
  },
2190
- [ae, ee, ue]
2190
+ [ae, ee, de]
2191
2191
  );
2192
2192
  return D(() => {
2193
2193
  w && ie();
@@ -2205,24 +2205,24 @@ const ii = nn(({ widths: t, heights: e }) => {
2205
2205
  b,
2206
2206
  g,
2207
2207
  re
2208
- ]), /* @__PURE__ */ $(pe, { children: [
2209
- /* @__PURE__ */ a(Lo, { ref: i, children: /* @__PURE__ */ a(
2208
+ ]), /* @__PURE__ */ H(pe, { children: [
2209
+ /* @__PURE__ */ a(Eo, { ref: i, children: /* @__PURE__ */ a(
2210
2210
  In,
2211
2211
  {
2212
2212
  id: n,
2213
2213
  ref: o,
2214
2214
  tabIndex: -1,
2215
2215
  className: Zn,
2216
- children: /* @__PURE__ */ a(ri, { style: { minHeight: "50px" }, children: ({ width: V, height: B }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: B }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2216
+ children: /* @__PURE__ */ a(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: B }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: B }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2217
2217
  "div",
2218
2218
  {
2219
2219
  ref: f,
2220
2220
  style: { width: V, height: B },
2221
- className: se(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
2222
- children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ii, { widths: j, heights: H }) : /* @__PURE__ */ a(ai, { widths: j, heights: H })
2221
+ className: se(de["rp-pages"], de["rp-page-scrolling-wrapper"]),
2222
+ children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ai, { widths: j, heights: $ }) : /* @__PURE__ */ a(si, { widths: j, heights: $ })
2223
2223
  }
2224
2224
  ) : U ? /* @__PURE__ */ a(
2225
- Yr,
2225
+ Jr,
2226
2226
  {
2227
2227
  ref: d,
2228
2228
  itemData: Pe,
@@ -2231,15 +2231,15 @@ const ii = nn(({ widths: t, heights: e }) => {
2231
2231
  onScroll: Kn,
2232
2232
  columnCount: M,
2233
2233
  columnWidth: j,
2234
- rowHeight: H,
2234
+ rowHeight: $,
2235
2235
  height: B,
2236
2236
  width: V,
2237
2237
  estimatedColumnWidth: K,
2238
2238
  estimatedRowHeight: U,
2239
2239
  rowCount: F,
2240
2240
  className: se(
2241
- ue["rp-pages"],
2242
- u === ne.HORIZONTAL_SCROLLING ? ue["rp-pages-horizontal-scroll"] : ""
2241
+ de["rp-pages"],
2242
+ u === ne.HORIZONTAL_SCROLLING ? de["rp-pages-horizontal-scroll"] : ""
2243
2243
  ),
2244
2244
  style: {
2245
2245
  "--rp-page-height": `${U}px`,
@@ -2247,12 +2247,12 @@ const ii = nn(({ widths: t, heights: e }) => {
2247
2247
  "--rp-row-count": `${F}`,
2248
2248
  "--rp-column-count": `${M}`
2249
2249
  },
2250
- children: ci
2250
+ children: li
2251
2251
  }
2252
2252
  ) : !w && !S ? /* @__PURE__ */ a(
2253
2253
  "div",
2254
2254
  {
2255
- className: ue["rp-loader"],
2255
+ className: de["rp-loader"],
2256
2256
  style: {
2257
2257
  display: "flex",
2258
2258
  justifyContent: "center",
@@ -2262,10 +2262,20 @@ const ii = nn(({ widths: t, heights: e }) => {
2262
2262
  },
2263
2263
  children: I && /* @__PURE__ */ a(I, {})
2264
2264
  }
2265
- ) : null }) })
2265
+ ) : S === io.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: de["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2266
+ "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
+ ] })
2275
+ ] }) }) : null }) })
2266
2276
  }
2267
2277
  ) }),
2268
- R && /* @__PURE__ */ a(tr, {})
2278
+ R && /* @__PURE__ */ a(nr, {})
2269
2279
  ] });
2270
2280
  }, Me = {
2271
2281
  "rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
@@ -2277,13 +2287,13 @@ const ii = nn(({ widths: t, heights: e }) => {
2277
2287
  "rp-paginate": "_rp-paginate_1gck0_1",
2278
2288
  "rp-page-input": "_rp-page-input_1gck0_6",
2279
2289
  "rp-total-page": "_rp-total-page_1gck0_18"
2280
- }, li = () => {
2290
+ }, di = () => {
2281
2291
  const { prevIcon: t } = Ce(), { prevIcon: e } = be();
2282
2292
  return t || e || /* @__PURE__ */ a(Ze, {});
2283
- }, di = () => {
2293
+ }, ui = () => {
2284
2294
  const { nextIcon: t } = Ce(), { nextIcon: e } = be();
2285
2295
  return t || e || /* @__PURE__ */ a(Ze, { style: { transform: "rotate(180deg" } });
2286
- }, ui = () => {
2296
+ }, pi = () => {
2287
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();
2288
2298
  D(() => {
2289
2299
  l(t.toString());
@@ -2322,14 +2332,14 @@ const ii = nn(({ widths: t, heights: e }) => {
2322
2332
  goToPage: i,
2323
2333
  changePage: n
2324
2334
  }
2325
- ) : /* @__PURE__ */ $("div", { className: pt["rp-paginate"], children: [
2335
+ ) : /* @__PURE__ */ H("div", { className: pt["rp-paginate"], children: [
2326
2336
  !m && /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.previousPageTooltip, children: /* @__PURE__ */ a(
2327
2337
  ve,
2328
2338
  {
2329
2339
  onClick: o,
2330
2340
  "aria-label": v == null ? void 0 : v.previousPageTooltip,
2331
2341
  "aria-disabled": t === 1,
2332
- children: /* @__PURE__ */ a(li, {})
2342
+ children: /* @__PURE__ */ a(di, {})
2333
2343
  }
2334
2344
  ) }),
2335
2345
  /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
@@ -2344,7 +2354,7 @@ const ii = nn(({ widths: t, heights: e }) => {
2344
2354
  name: "page-input"
2345
2355
  }
2346
2356
  ) }),
2347
- /* @__PURE__ */ $("span", { className: pt["rp-total-page"], children: [
2357
+ /* @__PURE__ */ H("span", { className: pt["rp-total-page"], children: [
2348
2358
  "/",
2349
2359
  e
2350
2360
  ] }),
@@ -2354,12 +2364,12 @@ const ii = nn(({ widths: t, heights: e }) => {
2354
2364
  onClick: r,
2355
2365
  "aria-label": v == null ? void 0 : v.nextPageTooltip,
2356
2366
  "aria-disabled": g,
2357
- children: /* @__PURE__ */ a(di, {})
2367
+ children: /* @__PURE__ */ a(ui, {})
2358
2368
  }
2359
2369
  ) })
2360
2370
  ] });
2361
2371
  };
2362
- var St = "Dialog", [xn, Qs] = lr(St), [pi, de] = xn(St), Rn = (t) => {
2372
+ var St = "Dialog", [xn, Ys] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2363
2373
  const {
2364
2374
  __scopeDialog: e,
2365
2375
  children: n,
@@ -2367,13 +2377,13 @@ var St = "Dialog", [xn, Qs] = lr(St), [pi, de] = xn(St), Rn = (t) => {
2367
2377
  defaultOpen: o,
2368
2378
  onOpenChange: i,
2369
2379
  modal: c = !0
2370
- } = t, l = X.useRef(null), d = X.useRef(null), [f = !1, m] = pr({
2380
+ } = t, l = X.useRef(null), d = X.useRef(null), [f = !1, m] = hr({
2371
2381
  prop: r,
2372
2382
  defaultProp: o,
2373
2383
  onChange: i
2374
2384
  });
2375
2385
  return /* @__PURE__ */ a(
2376
- pi,
2386
+ hi,
2377
2387
  {
2378
2388
  scope: e,
2379
2389
  triggerRef: l,
@@ -2390,9 +2400,9 @@ var St = "Dialog", [xn, Qs] = lr(St), [pi, de] = xn(St), Rn = (t) => {
2390
2400
  );
2391
2401
  };
2392
2402
  Rn.displayName = St;
2393
- var Ln = "DialogTrigger", hi = X.forwardRef(
2403
+ var Ln = "DialogTrigger", fi = X.forwardRef(
2394
2404
  (t, e) => {
2395
- const { __scopeDialog: n, ...r } = t, o = de(Ln, n), i = Tt(e, o.triggerRef);
2405
+ const { __scopeDialog: n, ...r } = t, o = ue(Ln, n), i = Tt(e, o.triggerRef);
2396
2406
  return /* @__PURE__ */ a(
2397
2407
  Ge.button,
2398
2408
  {
@@ -2408,28 +2418,28 @@ var Ln = "DialogTrigger", hi = X.forwardRef(
2408
2418
  );
2409
2419
  }
2410
2420
  );
2411
- hi.displayName = Ln;
2412
- var It = "DialogPortal", [fi, En] = xn(It, {
2421
+ fi.displayName = Ln;
2422
+ var It = "DialogPortal", [mi, En] = xn(It, {
2413
2423
  forceMount: void 0
2414
2424
  }), Nn = (t) => {
2415
- const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = de(It, e);
2416
- return /* @__PURE__ */ a(fi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(wr, { asChild: !0, container: o, children: c }) })) });
2425
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(It, 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 }) })) });
2417
2427
  };
2418
2428
  Nn.displayName = It;
2419
2429
  var Qe = "DialogOverlay", On = X.forwardRef(
2420
2430
  (t, e) => {
2421
- const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Qe, t.__scopeDialog);
2422
- return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(mi, { ...o, ref: e }) }) : null;
2431
+ 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;
2423
2433
  }
2424
2434
  );
2425
2435
  On.displayName = Qe;
2426
- var mi = X.forwardRef(
2436
+ var gi = X.forwardRef(
2427
2437
  (t, e) => {
2428
- const { __scopeDialog: n, ...r } = t, o = de(Qe, n);
2438
+ const { __scopeDialog: n, ...r } = t, o = ue(Qe, n);
2429
2439
  return (
2430
2440
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2431
2441
  // ie. when `Overlay` and `Content` are siblings
2432
- /* @__PURE__ */ a(fr, { as: dr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2442
+ /* @__PURE__ */ a(mr, { as: ur, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
2433
2443
  Ge.div,
2434
2444
  {
2435
2445
  "data-state": Rt(o.open),
@@ -2442,18 +2452,18 @@ var mi = X.forwardRef(
2442
2452
  }
2443
2453
  ), Le = "DialogContent", Dn = X.forwardRef(
2444
2454
  (t, e) => {
2445
- const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Le, t.__scopeDialog);
2446
- return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(gi, { ...o, ref: e }) : /* @__PURE__ */ a(vi, { ...o, ref: e }) });
2455
+ 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 }) });
2447
2457
  }
2448
2458
  );
2449
2459
  Dn.displayName = Le;
2450
- var gi = X.forwardRef(
2460
+ var vi = X.forwardRef(
2451
2461
  (t, e) => {
2452
- const n = de(Le, t.__scopeDialog), r = X.useRef(null), o = Tt(e, n.contentRef, r);
2462
+ const n = ue(Le, t.__scopeDialog), r = X.useRef(null), o = Tt(e, n.contentRef, r);
2453
2463
  return X.useEffect(() => {
2454
2464
  const i = r.current;
2455
2465
  if (i)
2456
- return mr(i);
2466
+ return gr(i);
2457
2467
  }, []), /* @__PURE__ */ a(
2458
2468
  An,
2459
2469
  {
@@ -2476,9 +2486,9 @@ var gi = X.forwardRef(
2476
2486
  }
2477
2487
  );
2478
2488
  }
2479
- ), vi = X.forwardRef(
2489
+ ), wi = X.forwardRef(
2480
2490
  (t, e) => {
2481
- const n = de(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2491
+ const n = ue(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2482
2492
  return /* @__PURE__ */ a(
2483
2493
  An,
2484
2494
  {
@@ -2501,10 +2511,10 @@ var gi = X.forwardRef(
2501
2511
  }
2502
2512
  ), An = X.forwardRef(
2503
2513
  (t, e) => {
2504
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = de(Le, n), d = X.useRef(null), f = Tt(e, d);
2505
- return gr(), /* @__PURE__ */ $(pe, { children: [
2514
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = t, l = ue(Le, n), d = X.useRef(null), f = Tt(e, d);
2515
+ return vr(), /* @__PURE__ */ H(pe, { children: [
2506
2516
  /* @__PURE__ */ a(
2507
- vr,
2517
+ wr,
2508
2518
  {
2509
2519
  asChild: !0,
2510
2520
  loop: !0,
@@ -2512,7 +2522,7 @@ var gi = X.forwardRef(
2512
2522
  onMountAutoFocus: o,
2513
2523
  onUnmountAutoFocus: i,
2514
2524
  children: /* @__PURE__ */ a(
2515
- hr,
2525
+ fr,
2516
2526
  {
2517
2527
  role: "dialog",
2518
2528
  id: l.contentId,
@@ -2526,29 +2536,29 @@ var gi = X.forwardRef(
2526
2536
  )
2527
2537
  }
2528
2538
  ),
2529
- /* @__PURE__ */ $(pe, { children: [
2530
- /* @__PURE__ */ a(_i, { titleId: l.titleId }),
2531
- /* @__PURE__ */ a(Ti, { contentRef: d, descriptionId: l.descriptionId })
2539
+ /* @__PURE__ */ H(pe, { children: [
2540
+ /* @__PURE__ */ a(bi, { titleId: l.titleId }),
2541
+ /* @__PURE__ */ a(Ci, { contentRef: d, descriptionId: l.descriptionId })
2532
2542
  ] })
2533
2543
  ] });
2534
2544
  }
2535
2545
  ), xt = "DialogTitle", zn = X.forwardRef(
2536
2546
  (t, e) => {
2537
- const { __scopeDialog: n, ...r } = t, o = de(xt, n);
2547
+ const { __scopeDialog: n, ...r } = t, o = ue(xt, n);
2538
2548
  return /* @__PURE__ */ a(Ge.h2, { id: o.titleId, ...r, ref: e });
2539
2549
  }
2540
2550
  );
2541
2551
  zn.displayName = xt;
2542
- var Fn = "DialogDescription", wi = X.forwardRef(
2552
+ var Fn = "DialogDescription", _i = X.forwardRef(
2543
2553
  (t, e) => {
2544
- const { __scopeDialog: n, ...r } = t, o = de(Fn, n);
2554
+ const { __scopeDialog: n, ...r } = t, o = ue(Fn, n);
2545
2555
  return /* @__PURE__ */ a(Ge.p, { id: o.descriptionId, ...r, ref: e });
2546
2556
  }
2547
2557
  );
2548
- wi.displayName = Fn;
2558
+ _i.displayName = Fn;
2549
2559
  var Mn = "DialogClose", kn = X.forwardRef(
2550
2560
  (t, e) => {
2551
- const { __scopeDialog: n, ...r } = t, o = de(Mn, n);
2561
+ const { __scopeDialog: n, ...r } = t, o = ue(Mn, n);
2552
2562
  return /* @__PURE__ */ a(
2553
2563
  Ge.button,
2554
2564
  {
@@ -2564,11 +2574,11 @@ kn.displayName = Mn;
2564
2574
  function Rt(t) {
2565
2575
  return t ? "open" : "closed";
2566
2576
  }
2567
- var Wn = "DialogTitleWarning", [Ys, Hn] = ur(Wn, {
2577
+ var Wn = "DialogTitleWarning", [Js, Hn] = pr(Wn, {
2568
2578
  contentName: Le,
2569
2579
  titleName: xt,
2570
2580
  docsSlug: "dialog"
2571
- }), _i = ({ titleId: t }) => {
2581
+ }), bi = ({ titleId: t }) => {
2572
2582
  const e = Hn(Wn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2573
2583
 
2574
2584
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2577,14 +2587,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2577
2587
  return X.useEffect(() => {
2578
2588
  t && (document.getElementById(t) || console.error(n));
2579
2589
  }, [n, t]), null;
2580
- }, bi = "DialogDescriptionWarning", Ti = ({ contentRef: t, descriptionId: e }) => {
2581
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(bi).contentName}}.`;
2590
+ }, Ti = "DialogDescriptionWarning", Ci = ({ contentRef: t, descriptionId: e }) => {
2591
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(Ti).contentName}}.`;
2582
2592
  return X.useEffect(() => {
2583
2593
  var i;
2584
2594
  const o = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
2585
2595
  e && o && (document.getElementById(e) || console.warn(r));
2586
2596
  }, [r, t, e]), null;
2587
- }, Ci = Rn, Pi = Nn, yi = On, Si = Dn, Ii = zn, xi = kn;
2597
+ }, Pi = Rn, yi = Nn, Si = On, Ii = Dn, xi = zn, Ri = kn;
2588
2598
  const xe = {
2589
2599
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2590
2600
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2593,8 +2603,8 @@ const xe = {
2593
2603
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2594
2604
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2595
2605
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2596
- }, Ri = () => {
2597
- const { pdfProperties: t } = oe(), { container: e } = _e(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = To(), { localeMessages: o } = he(), i = W(() => {
2606
+ }, Li = () => {
2607
+ const { pdfProperties: t } = oe(), { container: e } = _e(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Co(), { localeMessages: o } = he(), i = W(() => {
2598
2608
  if (!t)
2599
2609
  return [];
2600
2610
  const {
@@ -2634,21 +2644,21 @@ const xe = {
2634
2644
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2635
2645
  ];
2636
2646
  }, [t, o]);
2637
- return /* @__PURE__ */ a(Ci, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(Pi, { container: e, children: /* @__PURE__ */ $("div", { className: xe["rp-dialog-wrapper"], children: [
2638
- /* @__PURE__ */ a(yi, { className: xe["rp-dialog-overlay"] }),
2639
- /* @__PURE__ */ $(Si, { className: xe["rp-document-dialog"], children: [
2640
- /* @__PURE__ */ a(Ii, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2641
- /* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(Do, { label: c.label, value: c.value }) }, l)) }),
2642
- /* @__PURE__ */ a(xi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(_r, {}) })
2647
+ return /* @__PURE__ */ a(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(yi, { container: e, children: /* @__PURE__ */ H("div", { className: xe["rp-dialog-wrapper"], children: [
2648
+ /* @__PURE__ */ a(Si, { className: xe["rp-dialog-overlay"] }),
2649
+ /* @__PURE__ */ H(Ii, { className: xe["rp-document-dialog"], children: [
2650
+ /* @__PURE__ */ a(xi, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2651
+ /* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(Ao, { label: c.label, value: c.value }) }, l)) }),
2652
+ /* @__PURE__ */ a(Ri, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(br, {}) })
2643
2653
  ] })
2644
2654
  ] }) }) });
2645
- }, Li = {
2655
+ }, Ei = {
2646
2656
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2647
- }, Qt = ".pdf", Ei = (t) => URL.createObjectURL(t), Ni = async (t) => {
2657
+ }, Qt = ".pdf", Ni = (t) => URL.createObjectURL(t), Oi = async (t) => {
2648
2658
  const n = await (await fetch(t)).blob();
2649
- return Ei(n);
2659
+ return Ni(n);
2650
2660
  }, $n = () => {
2651
- const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = vo(), r = (i) => {
2661
+ const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = wo(), r = (i) => {
2652
2662
  const c = n || i;
2653
2663
  return c.endsWith(Qt) ? c : `${c}${Qt}`;
2654
2664
  };
@@ -2656,26 +2666,26 @@ const xe = {
2656
2666
  if (!t || !e)
2657
2667
  throw new Error("There is no PDF source to download");
2658
2668
  const i = document.createElement("a");
2659
- i.href = await Ni(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2669
+ i.href = await Oi(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2660
2670
  }, [t, e]) };
2661
2671
  }, qn = () => {
2662
2672
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2663
- return t || e || /* @__PURE__ */ a(Pr, {});
2664
- }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Oi = ({ 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, {}) }) }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2673
+ return t || e || /* @__PURE__ */ a(yr, {});
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: [
2665
2675
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2666
2676
  e == null ? void 0 : e.downloadFileLabel
2667
2677
  ] }) }), Un = () => {
2668
2678
  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;
2669
- return !e || !n ? null : r ? /* @__PURE__ */ a(Di, { 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(Oi, { download: t, localeMessages: o });
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 });
2670
2680
  }, Vn = () => {
2671
2681
  const { printIcon: t } = Ce(), { printIcon: e } = be();
2672
- return t || e || /* @__PURE__ */ a(yr, {});
2673
- }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(jn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(jn, { className: "rp-menu-item", localeMessages: e, children: [
2682
+ return t || e || /* @__PURE__ */ a(Sr, {});
2683
+ }, jn = ({ 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(jn, { 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(jn, { className: "rp-menu-item", localeMessages: e, children: [
2674
2684
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2675
2685
  e == null ? void 0 : e.printLabel
2676
2686
  ] }) }), Bn = () => {
2677
2687
  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;
2678
- return !c || !l ? null : d ? /* @__PURE__ */ a(zi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2688
+ return !c || !l ? null : d ? /* @__PURE__ */ a(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2679
2689
  c,
2680
2690
  {
2681
2691
  print: t,
@@ -2695,33 +2705,33 @@ const xe = {
2695
2705
  setOnComplete: r,
2696
2706
  progress: i
2697
2707
  }
2698
- ) }) : /* @__PURE__ */ a(Ai, { print: t, localeMessages: f });
2699
- }, Fi = {
2708
+ ) }) : /* @__PURE__ */ a(zi, { print: t, localeMessages: f });
2709
+ }, Mi = {
2700
2710
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2701
- }, Mi = () => {
2702
- const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2703
- return t || e || /* @__PURE__ */ a(hn, { className: Fi["rp-go-to-Top"] });
2704
2711
  }, ki = () => {
2712
+ const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2713
+ return t || e || /* @__PURE__ */ a(hn, { className: Mi["rp-go-to-Top"] });
2714
+ }, Wi = () => {
2705
2715
  const { goToLastPageIcon: t } = Ce(), { goToLastPageIcon: e } = be();
2706
2716
  return t || e || /* @__PURE__ */ a(hn, {});
2707
- }, Yt = { width: "100%" }, Wi = () => {
2717
+ }, Yt = { width: "100%" }, Hi = () => {
2708
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(() => {
2709
2719
  t(1);
2710
2720
  }, [t]), f = E(() => {
2711
2721
  t(e);
2712
2722
  }, [t, e]);
2713
- return !r || !o ? null : /* @__PURE__ */ $(un, { children: [
2714
- /* @__PURE__ */ a(Xe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ $("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2715
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Mi, {}) }),
2723
+ 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, {}) }),
2716
2726
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
2717
2727
  ] }) }) }),
2718
- /* @__PURE__ */ a(Xe, { onClick: f, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ $("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2719
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ki, {}) }),
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, {}) }),
2720
2730
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.lastPageLabel })
2721
2731
  ] }) }) }),
2722
2732
  /* @__PURE__ */ a(ln, {})
2723
2733
  ] });
2724
- }, Hi = () => {
2734
+ }, $i = () => {
2725
2735
  const [t, e] = q(!1), { container: n, pagesRef: r } = _e(), { isSmallScreen: o } = Oe(), {
2726
2736
  openFileTool: i,
2727
2737
  downloadTool: c,
@@ -2773,57 +2783,57 @@ const xe = {
2773
2783
  ]);
2774
2784
  return D(() => (r && N.current.observe(r), () => {
2775
2785
  N.current.disconnect();
2776
- }), [r]), !A || !z ? null : /* @__PURE__ */ $(pe, { children: [
2786
+ }), [r]), !A || !z ? null : /* @__PURE__ */ H(pe, { children: [
2777
2787
  /* @__PURE__ */ a(
2778
2788
  cn,
2779
2789
  {
2780
2790
  container: n,
2781
2791
  onOpenChange: e,
2782
- 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(cr, {}) }) }) }),
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, {}) }) }) }),
2783
2793
  side: "bottom",
2784
2794
  avoidCollisions: !1,
2785
- children: /* @__PURE__ */ $(
2795
+ children: /* @__PURE__ */ H(
2786
2796
  "div",
2787
2797
  {
2788
2798
  style: { maxHeight: `${I}px`, overflow: "auto" },
2789
- className: Li["rp-other-tool-content"],
2799
+ className: Ei["rp-other-tool-content"],
2790
2800
  "data-rp": "moreOptionsDropdown",
2791
2801
  children: [
2792
- o && /* @__PURE__ */ $(un, { children: [
2802
+ o && /* @__PURE__ */ H(un, { children: [
2793
2803
  /* @__PURE__ */ a(dn, {}),
2794
2804
  /* @__PURE__ */ a(Un, {}),
2795
2805
  /* @__PURE__ */ a(Bn, {}),
2796
2806
  /* @__PURE__ */ a(pn, {}),
2797
2807
  /* @__PURE__ */ a(ln, {})
2798
2808
  ] }),
2799
- /* @__PURE__ */ a(Wi, {}),
2800
- /* @__PURE__ */ a(Ao, {}),
2801
- /* @__PURE__ */ a(Sr, {}),
2802
- /* @__PURE__ */ a(Tr, {}),
2809
+ /* @__PURE__ */ a(Hi, {}),
2810
+ /* @__PURE__ */ a(zo, {}),
2811
+ /* @__PURE__ */ a(Ir, {}),
2803
2812
  /* @__PURE__ */ a(Cr, {}),
2804
- /* @__PURE__ */ a(br, {})
2813
+ /* @__PURE__ */ a(Pr, {}),
2814
+ /* @__PURE__ */ a(Tr, {})
2805
2815
  ]
2806
2816
  }
2807
2817
  )
2808
2818
  }
2809
2819
  ),
2810
- /* @__PURE__ */ a(Ri, {})
2820
+ /* @__PURE__ */ a(Li, {})
2811
2821
  ] });
2812
- }, $i = () => {
2822
+ }, qi = () => {
2813
2823
  const { isSmallScreen: t } = Oe();
2814
- return /* @__PURE__ */ $(pe, { children: [
2815
- /* @__PURE__ */ a(sr, {}),
2816
- !t && /* @__PURE__ */ $(pe, { children: [
2824
+ return /* @__PURE__ */ H(pe, { children: [
2825
+ /* @__PURE__ */ a(cr, {}),
2826
+ !t && /* @__PURE__ */ H(pe, { children: [
2817
2827
  /* @__PURE__ */ a(dn, {}),
2818
2828
  /* @__PURE__ */ a(Un, {}),
2819
2829
  /* @__PURE__ */ a(Bn, {}),
2820
2830
  /* @__PURE__ */ a(pn, {})
2821
2831
  ] }),
2822
- /* @__PURE__ */ a(Hi, {})
2832
+ /* @__PURE__ */ a($i, {})
2823
2833
  ] });
2824
2834
  }, Jt = () => {
2825
2835
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = he();
2826
- return /* @__PURE__ */ $(pe, { children: [
2836
+ return /* @__PURE__ */ H(pe, { children: [
2827
2837
  /* @__PURE__ */ a(
2828
2838
  Q,
2829
2839
  {
@@ -2854,10 +2864,10 @@ const xe = {
2854
2864
  }
2855
2865
  )
2856
2866
  ] });
2857
- }, qi = () => {
2867
+ }, Gi = () => {
2858
2868
  const { searchIcon: t } = Ce(), { searchIcon: e } = be();
2859
2869
  return t || e || /* @__PURE__ */ a(fn, {});
2860
- }, Gi = ({ icon: t }) => {
2870
+ }, Ui = ({ icon: t }) => {
2861
2871
  const { container: e } = _e(), [n, r] = q(!1), { pdf: o } = oe(), [i, c] = q(null), {
2862
2872
  searchOptions: l,
2863
2873
  setSearchOptions: d,
@@ -2903,7 +2913,7 @@ const xe = {
2903
2913
  h(G.target.value);
2904
2914
  }, []), O = E(() => {
2905
2915
  h(""), m("");
2906
- }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: H, matchCase: M } = W(() => l, [l]), j = E(
2916
+ }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: $, matchCase: M } = W(() => l, [l]), j = E(
2907
2917
  (G) => {
2908
2918
  d((Z) => ({ ...Z, matchCase: G }));
2909
2919
  },
@@ -2956,10 +2966,10 @@ const xe = {
2956
2966
  active: n,
2957
2967
  onClick: I,
2958
2968
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2959
- children: t || /* @__PURE__ */ a(qi, {})
2969
+ children: t || /* @__PURE__ */ a(Gi, {})
2960
2970
  }
2961
2971
  ) }),
2962
- children: /* @__PURE__ */ $(
2972
+ children: /* @__PURE__ */ H(
2963
2973
  "div",
2964
2974
  {
2965
2975
  ref: w,
@@ -2967,8 +2977,8 @@ const xe = {
2967
2977
  tabIndex: 0,
2968
2978
  onKeyDown: re,
2969
2979
  children: [
2970
- /* @__PURE__ */ $("div", { className: te["rp-search-tool-input-wrapper"], children: [
2971
- /* @__PURE__ */ $("div", { className: te["rp-search-tool-input"], children: [
2980
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-wrapper"], children: [
2981
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input"], children: [
2972
2982
  /* @__PURE__ */ a(Q, { content: u == null ? void 0 : u.searchInputTooltip, children: /* @__PURE__ */ a(
2973
2983
  on,
2974
2984
  {
@@ -2982,13 +2992,13 @@ const xe = {
2982
2992
  id: "search-input",
2983
2993
  name: "search-input",
2984
2994
  tabIndex: 0,
2985
- children: !!g && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ a(xr, {}) })
2995
+ children: !!g && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: O, children: /* @__PURE__ */ a(Rr, {}) })
2986
2996
  }
2987
2997
  ) }),
2988
2998
  f ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: F }),
2989
2999
  s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x }) })
2990
3000
  ] }),
2991
- /* @__PURE__ */ $("div", { className: te["rp-search-tool-input-checkboxes"], children: [
3001
+ /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-checkboxes"], children: [
2992
3002
  s && /* @__PURE__ */ a(Jt, {}),
2993
3003
  /* @__PURE__ */ a(
2994
3004
  Dt,
@@ -3006,7 +3016,7 @@ const xe = {
3006
3016
  {
3007
3017
  tabIndex: 0,
3008
3018
  name: "wholeWord",
3009
- value: H,
3019
+ value: $,
3010
3020
  onChange: K,
3011
3021
  children: u == null ? void 0 : u.searchWholeWordsLabel
3012
3022
  }
@@ -3014,7 +3024,7 @@ const xe = {
3014
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, {}) }) })
3015
3025
  ] })
3016
3026
  ] }),
3017
- !s && /* @__PURE__ */ $("div", { className: te["rp-search-tool-controls"], children: [
3027
+ !s && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3018
3028
  /* @__PURE__ */ a(Jt, {}),
3019
3029
  /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x })
3020
3030
  ] })
@@ -3023,18 +3033,18 @@ const xe = {
3023
3033
  )
3024
3034
  }
3025
3035
  ) });
3026
- }, Ui = "_loading_wazy2_1", Ae = {
3036
+ }, Vi = "_loading_wazy2_1", Ae = {
3027
3037
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3028
3038
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3029
3039
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3030
3040
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3031
3041
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3032
3042
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3033
- loading: Ui
3034
- }, Vi = ({ percentage: t }) => {
3043
+ loading: Vi
3044
+ }, ji = ({ percentage: t }) => {
3035
3045
  const { cancel: e } = tt(), { localeMessages: n } = he();
3036
- return t < 1 ? null : /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ $("div", { className: se(Ae["rp-loading-modal"]), children: [
3037
- /* @__PURE__ */ $("div", { className: se(Ae["rp-loading-title"]), children: [
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: [
3038
3048
  n == null ? void 0 : n.printLoadingMessage,
3039
3049
  "..."
3040
3050
  ] }),
@@ -3047,19 +3057,19 @@ const xe = {
3047
3057
  ) }),
3048
3058
  /* @__PURE__ */ a("button", { className: se(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3049
3059
  ] }) });
3050
- }, ji = et((t, e) => {
3060
+ }, Bi = et((t, e) => {
3051
3061
  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 = () => {
3052
3062
  if (!(!n || !r || !c))
3053
- return /* @__PURE__ */ a(Vi, { percentage: c });
3063
+ return /* @__PURE__ */ a(ji, { percentage: c });
3054
3064
  };
3055
- return /* @__PURE__ */ $("div", { children: [
3056
- /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ $("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3057
- /* @__PURE__ */ $("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3058
- /* @__PURE__ */ a(Gi, {}),
3059
- /* @__PURE__ */ a(ui, {})
3065
+ 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__ */ H("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3068
+ /* @__PURE__ */ a(Ui, {}),
3069
+ /* @__PURE__ */ a(pi, {})
3060
3070
  ] }),
3061
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ir, {}) }),
3062
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a($i, {}) })
3071
+ /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(xr, {}) }),
3072
+ /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(qi, {}) })
3063
3073
  ] }) }),
3064
3074
  /* @__PURE__ */ a(d, {})
3065
3075
  ] });
@@ -3073,7 +3083,7 @@ const xe = {
3073
3083
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3074
3084
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3075
3085
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3076
- }, Bi = (t) => {
3086
+ }, Ki = (t) => {
3077
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(() => ({
3078
3088
  width: Math.round(r.width),
3079
3089
  height: Math.round(r.height)
@@ -3120,7 +3130,7 @@ const xe = {
3120
3130
  return c.current && y.observe(c.current), () => {
3121
3131
  y.disconnect(), l.removeQueue(`thumbnail-${e}`);
3122
3132
  };
3123
- }, [l, e, d, f]), /* @__PURE__ */ $(
3133
+ }, [l, e, d, f]), /* @__PURE__ */ H(
3124
3134
  "div",
3125
3135
  {
3126
3136
  onClick: C,
@@ -3163,10 +3173,10 @@ const xe = {
3163
3173
  }, en = {
3164
3174
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3165
3175
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3166
- }, Ki = 16, Zi = (t, e) => {
3176
+ }, Zi = 16, Xi = (t, e) => {
3167
3177
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3168
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ki);
3169
- }, Xi = et((t, e) => {
3178
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Zi);
3179
+ }, Qi = et((t, e) => {
3170
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);
3171
3181
  tn(e, () => m.current);
3172
3182
  const p = W(() => Object.values(c), [c]), v = E(() => {
@@ -3174,11 +3184,11 @@ const xe = {
3174
3184
  b <= i && l(b);
3175
3185
  }, [l, i, d]);
3176
3186
  return D(() => {
3177
- o > d && i > d ? f(o) : n && P.current !== o && (Zi(m.current, o), P.current = o);
3178
- }, [o, d, f, n, p]), zo(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) => {
3187
+ 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) => {
3179
3189
  var T, y;
3180
3190
  return /* @__PURE__ */ a(
3181
- Bi,
3191
+ Ki,
3182
3192
  {
3183
3193
  isFocused: o === ((T = b.page) == null ? void 0 : T.pageNumber),
3184
3194
  pageNumber: (y = b.page) == null ? void 0 : y.pageNumber,
@@ -3189,11 +3199,11 @@ const xe = {
3189
3199
  C
3190
3200
  );
3191
3201
  }) : null }) });
3192
- }), Qi = () => {
3202
+ }), Yi = () => {
3193
3203
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3194
- return t || e || /* @__PURE__ */ a(Po, {});
3195
- }, Yi = () => {
3196
- const { active: t, setActive: e } = _n(), [n, r] = q(Fo), o = k(null), i = k(null), { thumbnailTool: c, sidebarEnable: l } = Te(), { localeMessages: d } = he(), f = E(() => {
3204
+ return t || e || /* @__PURE__ */ a(yo, {});
3205
+ }, Ji = () => {
3206
+ 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(() => {
3197
3207
  e((P) => !P);
3198
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(
3199
3209
  ve,
@@ -3201,10 +3211,10 @@ const xe = {
3201
3211
  onClick: f,
3202
3212
  active: t,
3203
3213
  "aria-label": d == null ? void 0 : d.thumbnailTooltip,
3204
- children: /* @__PURE__ */ a(Qi, {})
3214
+ children: /* @__PURE__ */ a(Yi, {})
3205
3215
  }
3206
3216
  ) }) : null, [c, t, f, d]);
3207
- return /* @__PURE__ */ a(pe, { children: l && /* @__PURE__ */ $(
3217
+ return /* @__PURE__ */ a(pe, { children: l && /* @__PURE__ */ H(
3208
3218
  "div",
3209
3219
  {
3210
3220
  style: { "--rp-thumbnail-width": `${n}px` },
@@ -3212,16 +3222,16 @@ const xe = {
3212
3222
  "data-rp": "sidebar",
3213
3223
  children: [
3214
3224
  /* @__PURE__ */ a("div", { ref: i, className: ht["rp-sidebar-content"], children: m }),
3215
- /* @__PURE__ */ $(
3225
+ /* @__PURE__ */ H(
3216
3226
  "div",
3217
3227
  {
3218
3228
  "data-rp": "thumbnailSidebar",
3219
3229
  hidden: !t,
3220
3230
  className: ht["rp-thumbnails-wrapper"],
3221
3231
  children: [
3222
- /* @__PURE__ */ a(Xi, { show: t, ref: o }),
3232
+ /* @__PURE__ */ a(Qi, { show: t, ref: o }),
3223
3233
  /* @__PURE__ */ a(
3224
- xo,
3234
+ Ro,
3225
3235
  {
3226
3236
  onWidthChange: r,
3227
3237
  thumbnailRef: o,
@@ -3234,7 +3244,7 @@ const xe = {
3234
3244
  ]
3235
3245
  }
3236
3246
  ) });
3237
- }, Js = oo((t, e) => {
3247
+ }, ec = oo((t, e) => {
3238
3248
  const {
3239
3249
  children: n,
3240
3250
  slots: r,
@@ -3249,21 +3259,21 @@ const xe = {
3249
3259
  return D(() => (d && d(), () => {
3250
3260
  f && f();
3251
3261
  }), [d, f]), // TODO: deprecated in v2.0.0, remove later ~
3252
- /* @__PURE__ */ a(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(So, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(Io, { slots: r, children: /* @__PURE__ */ a(Oo, { icons: o, children: /* @__PURE__ */ a(Co, { children: /* @__PURE__ */ $(yo, { getContainerRef: v, style: i, className: c, children: [
3253
- /* @__PURE__ */ $(Ro, { children: [
3254
- /* @__PURE__ */ $("div", { className: we["rp-layout"], children: [
3262
+ /* @__PURE__ */ a(In, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(Io, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(xo, { slots: r, children: /* @__PURE__ */ a(Do, { icons: o, children: /* @__PURE__ */ a(Po, { children: /* @__PURE__ */ H(So, { getContainerRef: v, style: i, className: c, children: [
3263
+ /* @__PURE__ */ H(Lo, { children: [
3264
+ /* @__PURE__ */ H("div", { className: we["rp-layout"], children: [
3255
3265
  /* @__PURE__ */ a(
3256
- ji,
3266
+ Bi,
3257
3267
  {
3258
3268
  ref: p
3259
3269
  }
3260
3270
  ),
3261
- /* @__PURE__ */ $("div", { className: we["rp-content"], children: [
3262
- /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Yi, {}) }),
3271
+ /* @__PURE__ */ H("div", { className: we["rp-content"], children: [
3272
+ /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Ji, {}) }),
3263
3273
  /* @__PURE__ */ a("div", { className: we["rp-pages"], children: n })
3264
3274
  ] })
3265
3275
  ] }),
3266
- /* @__PURE__ */ a(No, {})
3276
+ /* @__PURE__ */ a(Oo, {})
3267
3277
  ] }),
3268
3278
  b ? /* @__PURE__ */ a(
3269
3279
  "div",
@@ -3294,7 +3304,7 @@ const xe = {
3294
3304
  }
3295
3305
  ) : null
3296
3306
  ] }) }) }) }) }) });
3297
- }), ec = {
3307
+ }), tc = {
3298
3308
  "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3299
3309
  "rp-content": "_rp-content_vwobs_7",
3300
3310
  "rp-topbar-content": "_rp-topbar-content_vwobs_13",
@@ -3304,53 +3314,53 @@ const xe = {
3304
3314
  };
3305
3315
  export {
3306
3316
  Cn as A,
3307
- zr as B,
3308
- Or as C,
3309
- kr as D,
3310
- Hr as E,
3317
+ Fr as B,
3318
+ Dr as C,
3319
+ Wr as D,
3320
+ $r as E,
3311
3321
  yt as F,
3312
- ni as G,
3313
- ii as H,
3314
- ai as I,
3315
- si as J,
3316
- Ri as K,
3322
+ oi as G,
3323
+ ai as H,
3324
+ si as I,
3325
+ ci as J,
3326
+ Li as K,
3317
3327
  In as L,
3318
3328
  Un as M,
3319
3329
  Bn as N,
3320
- Wi as O,
3321
- Vs as P,
3322
- Hi as Q,
3323
- Xs as R,
3324
- Gi as S,
3325
- Bs as T,
3330
+ Hi as O,
3331
+ js as P,
3332
+ $i as Q,
3333
+ Qs as R,
3334
+ Ui as S,
3335
+ Ks as T,
3326
3336
  Jt as U,
3327
- ji as V,
3328
- Bi as W,
3329
- Yi as X,
3330
- Js as a,
3337
+ Bi as V,
3338
+ Ki as W,
3339
+ Ji as X,
3340
+ ec as a,
3331
3341
  $n as b,
3332
3342
  tt as c,
3333
3343
  Pt as d,
3334
- Ks as e,
3335
- Zs as f,
3336
- js as g,
3344
+ Zs as e,
3345
+ Xs as f,
3346
+ Bs as g,
3337
3347
  _n as h,
3338
3348
  pt as i,
3339
3349
  Me as j,
3340
- ui as k,
3341
- $i as l,
3342
- ec as m,
3343
- Xi as n,
3344
- Vi as o,
3350
+ pi as k,
3351
+ qi as l,
3352
+ tc as m,
3353
+ Qi as n,
3354
+ ji as o,
3345
3355
  mn as p,
3346
- Rr as q,
3356
+ Lr as q,
3347
3357
  gn as r,
3348
- Lr as s,
3358
+ Er as s,
3349
3359
  vn as t,
3350
3360
  le as u,
3351
- Er as v,
3361
+ Nr as v,
3352
3362
  wn as w,
3353
- Nr as x,
3363
+ Or as x,
3354
3364
  bn as y,
3355
3365
  Tn as z
3356
3366
  };