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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{ToolbarLayout.module-d8ed3e47.js → ToolbarLayout.module-edecdc4e.js} +334 -334
  2. package/dist/assets/ToolbarLayout.css +1 -1
  3. package/dist/components/RPController.js +1 -1
  4. package/dist/components/RPPages.js +1 -1
  5. package/dist/components/layout/LayoutContainer.js +1 -1
  6. package/dist/components/layout/RPDefaultLayout.js +1 -1
  7. package/dist/components/layout/RPLayout.js +1 -1
  8. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  9. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  11. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  12. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  13. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  14. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  15. package/dist/components/layout/toolbar/Paginate.js +1 -1
  16. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  17. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  19. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  20. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  21. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  22. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  24. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  25. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  31. package/dist/components/page/AnnotationLayer.js +1 -1
  32. package/dist/components/page/CanvasLayer.js +1 -1
  33. package/dist/components/page/DualPage.js +1 -1
  34. package/dist/components/page/RPPage.js +1 -1
  35. package/dist/components/page/SinglePage.js +1 -1
  36. package/dist/components/page/TextHighlightLayer.js +1 -1
  37. package/dist/components/page/TextLayer.js +1 -1
  38. package/dist/components/ui/LoadingIndicator.js +1 -1
  39. package/dist/contexts/PaginationContext.js +1 -1
  40. package/dist/contexts/PrintContext.js +1 -1
  41. package/dist/contexts/RenderQueueProvider.js +1 -1
  42. package/dist/contexts/SearchContext.js +1 -1
  43. package/dist/contexts/ThumbnailsContext.js +1 -1
  44. package/dist/main.js +1 -1
  45. package/dist/utils/hooks/useFileDownload.js +1 -1
  46. package/dist/utils/hooks/useLicense.js +1 -1
  47. package/dist/utils/hooks/usePaginate.js +1 -1
  48. package/dist/utils/hooks/usePresentPage.js +1 -1
  49. package/dist/utils/hooks/usePrint.js +1 -1
  50. package/dist/utils/hooks/useScrollToPage.js +1 -1
  51. package/dist/utils/hooks/useSearch.js +1 -1
  52. package/dist/utils/hooks/useThumbnail.js +1 -1
  53. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  54. package/package.json +1 -1
@@ -38,12 +38,12 @@ import { useToolComponentContext as Ne } from "./contexts/ToolComponentContext.j
38
38
  import { useIconToolContext as be } from "./contexts/IconToolContext.js";
39
39
  import { useOtherToolContext as Co, OtherToolProvider as Po } from "./contexts/OtherToolContext.js";
40
40
  import "./components/RPConfig.js";
41
- import { ThumbnailIcon as yo } from "./components/icons/Thumbnail.js";
41
+ import { ThumbnailIcon as xo } 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 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";
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
47
  import { RPSplitter as Ro } from "./components/layout/sidebar/RPSplitter.js";
48
48
  import { WrapperLayout as Lo } from "./components/layout/WrapperLayout.js";
49
49
  import { c as we, L as Eo } from "./LayoutWrapper-e99afee2.js";
@@ -66,7 +66,7 @@ import { THUMBNAIL_MIN_WIDTH as Mo } from "./utils/constants.js";
66
66
  import * as ko from "pdfjs-dist";
67
67
  import { PixelsPerInch as Wo, AnnotationMode as Ho, RenderingCancelledException as $o, AnnotationLayer as qo } from "pdfjs-dist";
68
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";
69
+ import { annotationsEvents as Uo, annotationEventsHandler as Vo, handleClick as zt, handleAnnotationWidget as Bo, handleAnnotationLink as jo, bindLayerEvents as Ko, unbindLayerEvents as Ft } from "./utils/annotations.js";
70
70
  import { normalizeSingleKeyword as Zo, sortHighlightPosition as Xo, unwrap as Qo } from "./components/page/searchHighlight.js";
71
71
  import { CustomElement as Yo } from "./components/page/CustomElement.js";
72
72
  import { useMousePressed as Jo } from "./utils/hooks/useMousePressed.js";
@@ -90,12 +90,12 @@ import { CloseIcon as br } from "./components/icons/CloseIcon.js";
90
90
  import { DocumentProperties as Tr } from "./components/layout/toolbar/DocumentProperties.js";
91
91
  import { ViewModeTool as Cr } from "./components/layout/toolbar/ViewModeTool.js";
92
92
  import { ScrollModeTool as Pr } from "./components/layout/toolbar/ScrollModeTool.js";
93
- import { FileDownloadDefaultIcon as yr } from "./components/icons/FileDownloadDefaultIcon.js";
94
- import { PrintDefaultTool as Sr } from "./components/icons/PrintDefaultIcon.js";
93
+ import { FileDownloadDefaultIcon as xr } from "./components/icons/FileDownloadDefaultIcon.js";
94
+ import { PrintDefaultTool as yr } 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 Ir } from "./components/layout/toolbar/SelectionModeTool.js";
98
- import { ZoomTool as xr } from "./components/layout/toolbar/ZoomTool.js";
97
+ import { SelectionModeTool as Sr } from "./components/layout/toolbar/SelectionModeTool.js";
98
+ import { ZoomTool as Ir } from "./components/layout/toolbar/ZoomTool.js";
99
99
  import { SearchIcon as fn } from "./components/icons/SearchIcon.js";
100
100
  import { ClearIcon as Rr } from "./components/icons/ClearIcon.js";
101
101
  import { InfoIcon as Mt } from "./components/icons/InfoIcon.js";
@@ -107,7 +107,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
107
107
  m.current = e, P.current = t;
108
108
  }, [e, t]);
109
109
  const b = E(
110
- (T, y) => {
110
+ (T, x) => {
111
111
  if (!o)
112
112
  return;
113
113
  const g = Math.ceil(T / 2) * 2 - 1;
@@ -126,7 +126,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
126
126
  };
127
127
  return o == null ? void 0 : o.scrollTo({
128
128
  ...h,
129
- behavior: y
129
+ behavior: x
130
130
  });
131
131
  },
132
132
  [o, d, it]
@@ -136,12 +136,12 @@ import './assets/ToolbarLayout.css';const mn = () => {
136
136
  }, [e, t]), D(() => {
137
137
  p.current = l;
138
138
  }, [l]), { scrollToPage: E(
139
- (T, y = "smooth") => {
139
+ (T, x = "smooth") => {
140
140
  i(T);
141
141
  const g = T - 1;
142
142
  let h = g, u = 0;
143
143
  if (P.current === Re.DUAL_PAGE && m.current === ne.PAGE_SCROLLING) {
144
- b(T, y);
144
+ b(T, x);
145
145
  return;
146
146
  }
147
147
  if (m.current === ne.PAGE_SCROLLING) {
@@ -151,26 +151,26 @@ import './assets/ToolbarLayout.css';const mn = () => {
151
151
  if (!c.current || !r)
152
152
  return;
153
153
  const s = r;
154
- if (y === "smooth" && (v.current = T), m.current === ne.HORIZONTAL_SCROLLING) {
154
+ if (x === "smooth" && (v.current = T), m.current === ne.HORIZONTAL_SCROLLING) {
155
155
  u = g;
156
- const S = {
156
+ const y = {
157
157
  left: ze(d, u),
158
158
  top: 0
159
159
  };
160
160
  return s.scrollTo({
161
- ...S,
162
- behavior: y
161
+ ...y,
162
+ behavior: x
163
163
  });
164
164
  }
165
165
  if (P.current === Re.DUAL_PAGE) {
166
166
  u = g % 2, h = Math.floor(g / 2);
167
- const S = {
167
+ const y = {
168
168
  left: ze(d, u),
169
169
  top: ze(f, h)
170
170
  };
171
171
  return s.scrollTo({
172
- ...S,
173
- behavior: y
172
+ ...y,
173
+ behavior: x
174
174
  });
175
175
  }
176
176
  const _ = {
@@ -179,7 +179,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
179
179
  };
180
180
  return s.scrollTo({
181
181
  ..._,
182
- behavior: y
182
+ behavior: x
183
183
  });
184
184
  },
185
185
  [
@@ -216,12 +216,12 @@ import './assets/ToolbarLayout.css';const mn = () => {
216
216
  }, [l, f, m, r]), T = E(() => {
217
217
  let h = e - 1;
218
218
  C(h) && (h = e - 2), b(h);
219
- }, [b, e, l, d, C]), y = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = E(() => {
220
- if (y)
219
+ }, [b, e, l, d, C]), x = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, l, d]), g = E(() => {
220
+ if (x)
221
221
  return;
222
222
  let h = e + 1;
223
223
  C(h) && (h = e + 2), b(h);
224
- }, [b, e, C, l, d, y]);
224
+ }, [b, e, C, l, d, x]);
225
225
  return {
226
226
  focusedPage: P,
227
227
  totalPages: r,
@@ -246,7 +246,7 @@ import './assets/ToolbarLayout.css';const mn = () => {
246
246
  }), le = () => {
247
247
  const t = $e(gn);
248
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 }) => {
249
+ }, Bs = ({ children: t }) => {
250
250
  const { pdf: e } = oe(), { setCurrentPage: n } = To(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Lr();
251
251
  return D(() => {
252
252
  e != null && e.numPages && (c(e.numPages), i(1));
@@ -295,17 +295,17 @@ const Er = () => {
295
295
  pageNumber: s,
296
296
  viewerPdfPage: _,
297
297
  printResolution: w,
298
- optionalContentConfigPromise: S,
298
+ optionalContentConfigPromise: y,
299
299
  printAnnotationStoragePromise: R
300
300
  }) => {
301
301
  if (m.current) {
302
302
  p();
303
303
  return;
304
304
  }
305
- const I = w / Wo.PDF;
306
- h.width = Math.floor(_.width * I), h.height = Math.floor(_.height * I);
307
- const x = h.getContext("2d");
308
- x.save(), x.fillStyle = "rgb(255, 255, 255)", x.fillRect(0, 0, h.width, h.height), x.restore();
305
+ const S = w / Wo.PDF;
306
+ h.width = Math.floor(_.width * S), h.height = Math.floor(_.height * S);
307
+ const I = h.getContext("2d");
308
+ I.save(), I.fillStyle = "rgb(255, 255, 255)", I.fillRect(0, 0, h.width, h.height), I.restore();
309
309
  const [N, A] = await Promise.all([
310
310
  u.getPage(s),
311
311
  R
@@ -315,12 +315,12 @@ const Er = () => {
315
315
  return;
316
316
  }
317
317
  const z = {
318
- canvasContext: x,
319
- transform: [I, 0, 0, I, 0, 0],
318
+ canvasContext: I,
319
+ transform: [S, 0, 0, S, 0, 0],
320
320
  viewport: N.getViewport({ scale: 1, rotation: _.rotation }),
321
321
  intent: "print",
322
322
  annotationMode: Ho.ENABLE_STORAGE,
323
- optionalContentConfigPromise: S,
323
+ optionalContentConfigPromise: y,
324
324
  printAnnotationStorage: A
325
325
  };
326
326
  try {
@@ -331,9 +331,9 @@ const Er = () => {
331
331
  }, C = E(() => {
332
332
  const h = window.print;
333
333
  return new Promise((u) => {
334
- const s = (S) => {
334
+ const s = (y) => {
335
335
  setTimeout(() => {
336
- h.call(window), setTimeout(() => S(), 20);
336
+ h.call(window), setTimeout(() => y(), 20);
337
337
  }, 0);
338
338
  };
339
339
  if (document.querySelector(".rp-print-zone")) {
@@ -348,20 +348,20 @@ const Er = () => {
348
348
  }, []), T = async (h) => {
349
349
  const u = document.createElement("img"), s = document.createElement("div");
350
350
  return s.classList.add("rp-print-page"), await new Promise((_, w) => {
351
- h.toBlob((S) => {
352
- S ? (u.src = URL.createObjectURL(S), u.onload = () => {
351
+ h.toBlob((y) => {
352
+ y ? (u.src = URL.createObjectURL(y), u.onload = () => {
353
353
  URL.revokeObjectURL(u.src), _();
354
354
  }, u.onerror = w) : w(new Error("Failed to create blob"));
355
355
  });
356
356
  }).catch(() => {
357
357
  }), s.appendChild(u), s;
358
- }, y = (h, u) => {
358
+ }, x = (h, u) => {
359
359
  const s = document.createElement("div");
360
360
  s.classList.add("rp-print-zone");
361
361
  const _ = document.createElement("style"), w = u.get(1);
362
362
  if (w) {
363
- const { width: S, height: R } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
364
- _.innerHTML = `@page { size: ${S}px ${R}px }`;
363
+ const { width: y, height: R } = w == null ? void 0 : w.page.getViewport({ scale: 1 });
364
+ _.innerHTML = `@page { size: ${y}px ${R}px }`;
365
365
  }
366
366
  return s.appendChild(_), s.append(...h), s;
367
367
  }, g = E(async () => {
@@ -373,17 +373,17 @@ const Er = () => {
373
373
  t.isPureXfa && console.warn("[rp] XFA Form is not supported at the moment.");
374
374
  const _ = t.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
375
375
  t.annotationStorage.print ?? void 0
376
- ), S = e.size;
377
- for (const [I, x] of e) {
376
+ ), y = e.size;
377
+ for (const [S, I] of e) {
378
378
  if (m.current) {
379
379
  p();
380
380
  return;
381
381
  }
382
- const N = x.page.getViewport({ scale: 1 });
382
+ const N = I.page.getViewport({ scale: 1 });
383
383
  if (await b({
384
384
  scratchCanvas: h,
385
385
  pdfDocument: t,
386
- pageNumber: I,
386
+ pageNumber: S,
387
387
  viewerPdfPage: N,
388
388
  printResolution: 150,
389
389
  optionalContentConfigPromise: _,
@@ -394,10 +394,10 @@ const Er = () => {
394
394
  }
395
395
  const A = await T(h);
396
396
  u.push(A);
397
- const z = parseFloat((u.length / S * 100).toFixed(2));
397
+ const z = parseFloat((u.length / y * 100).toFixed(2));
398
398
  r({
399
- loadedPages: I,
400
- totalPages: S,
399
+ loadedPages: S,
400
+ totalPages: y,
401
401
  percentage: z
402
402
  });
403
403
  }
@@ -405,7 +405,7 @@ const Er = () => {
405
405
  p();
406
406
  return;
407
407
  }
408
- const R = y(u, e);
408
+ const R = x(u, e);
409
409
  document.body.appendChild(R), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), i(!0), await C();
410
410
  } catch (s) {
411
411
  l(!0), s instanceof Error && f(s);
@@ -445,7 +445,7 @@ const Er = () => {
445
445
  console.error("Error in setOnError callback:", e);
446
446
  }
447
447
  }
448
- }), Bs = ({ children: t }) => {
448
+ }), js = ({ children: t }) => {
449
449
  const [e, n] = q(null), [r, o] = q(null), { print: i, cancel: c, progress: l, isComplete: d, isError: f, error: m } = Er(), P = E((T) => {
450
450
  T && typeof T == "function" && o(() => T);
451
451
  }, []), p = (T) => {
@@ -545,32 +545,32 @@ const Er = () => {
545
545
  }
546
546
  );
547
547
  }, Or = (t = {}, e = "") => {
548
- const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = le(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [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]);
548
+ const [n, r] = q(e), [o, i] = q(!1), { pdf: c, pages: l } = oe(), { widths: d, heights: f } = qe(), m = k(!n), { currentZoom: P } = wt(), [p, v] = q([]), { setFocusedPage: b } = le(), { columnCount: C } = Fe(), { pageRotate: T } = Je(), [x, g] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: u } = Ye(), { scrollMode: s } = Ee(), { pagesRef: _ } = _e(), [w, y] = q(null), R = k({}), S = W(() => x === 0 ? null : p[x - 1], [x, p]), I = W(() => p.length, [p]);
549
549
  D(() => {
550
- if (!I || !l)
550
+ if (!S || !l)
551
551
  return;
552
552
  const L = u || h;
553
553
  if (!L || !_)
554
554
  return;
555
- const O = l.get(I.page);
556
- if (s === ne.PAGE_SCROLLING && b(I.page), !O)
555
+ const O = l.get(S.page);
556
+ if (s === ne.PAGE_SCROLLING && b(S.page), !O)
557
557
  return;
558
558
  let F = 0, $ = 0;
559
559
  if (s === ne.VERTICAL_SCROLLING) {
560
- const J = I.page - 1, ee = C, ie = J % ee, ae = Math.floor(J / ee);
560
+ const J = S.page - 1, ee = C, ie = J % ee, ae = Math.floor(J / ee);
561
561
  F = ze(f, ae), $ = ze(d, ie);
562
562
  }
563
- s === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, I.page - 1).reduce((J, ee) => J + ee, 0));
563
+ s === ne.HORIZONTAL_SCROLLING && ($ = d.slice(0, S.page - 1).reduce((J, ee) => J + ee, 0));
564
564
  const M = {
565
- height: f[I.page - 1],
566
- width: d[I.page - 1]
567
- }, j = {
565
+ height: f[S.page - 1],
566
+ width: d[S.page - 1]
567
+ }, B = {
568
568
  top: M.height / 2,
569
569
  left: M.width / 2
570
- }, K = T[I.page], { leftInPage: U, topInPage: re } = ir(
570
+ }, K = T[S.page], { leftInPage: U, topInPage: re } = ir(
571
571
  M,
572
- j,
573
- I.rect,
572
+ B,
573
+ S.rect,
574
574
  P,
575
575
  K
576
576
  ), G = $ + U, Z = F + re, Y = {
@@ -586,17 +586,17 @@ const Er = () => {
586
586
  b,
587
587
  d,
588
588
  f,
589
- I,
589
+ S,
590
590
  s,
591
591
  u,
592
592
  h,
593
593
  _
594
594
  ]);
595
595
  const N = E(() => {
596
- g((L) => x ? L + 1 > x ? 1 : L + 1 : 0);
597
- }, [x]), A = E(() => {
598
- g((L) => x ? L - 1 <= 0 ? x : L - 1 : 0);
599
- }, [x]), z = E(async (L) => {
596
+ g((L) => I ? L + 1 > I ? 1 : L + 1 : 0);
597
+ }, [I]), A = E(() => {
598
+ g((L) => I ? L - 1 <= 0 ? I : L - 1 : 0);
599
+ }, [I]), z = E(async (L) => {
600
600
  if (!L)
601
601
  return {};
602
602
  const O = L.numPages, F = {};
@@ -616,13 +616,13 @@ const Er = () => {
616
616
  m.current = !1, i(!0), v([]), g(0), z(c).then((L) => {
617
617
  R.current = L;
618
618
  const F = Object.keys(L).reduce(($, M) => {
619
- const j = ho(
619
+ const B = 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 [...$, ...j];
625
+ return [...$, ...B];
626
626
  }, []);
627
627
  v(F), g(F.length ? 1 : 0);
628
628
  }).catch(() => {
@@ -633,13 +633,13 @@ const Er = () => {
633
633
  setSearch: r,
634
634
  loading: o,
635
635
  matches: p,
636
- totalMatches: x,
637
- currentMatchPosition: y,
638
- currentMatch: I,
636
+ totalMatches: I,
637
+ currentMatchPosition: x,
638
+ currentMatch: S,
639
639
  nextMatch: N,
640
640
  prevMatch: A,
641
641
  currentMatchElement: w,
642
- setCurrentMatchElement: S
642
+ setCurrentMatchElement: y
643
643
  };
644
644
  }, bn = He({
645
645
  search: "",
@@ -728,15 +728,15 @@ const Er = () => {
728
728
  throw new Error("RenderQueue not found");
729
729
  return t;
730
730
  }, de = {
731
- "rp-pages": "_rp-pages_1i1lj_1",
732
- "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_1i1lj_6",
733
- "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1i1lj_11",
734
- "rp-pages-container": "_rp-pages-container_1i1lj_15",
735
- "rp-viewer": "_rp-viewer_1i1lj_57",
736
- "rp-cursor-grab": "_rp-cursor-grab_1i1lj_62",
737
- "rp-cursor-grabbing": "_rp-cursor-grabbing_1i1lj_70",
738
- "rp-loader": "_rp-loader_1i1lj_78",
739
- "rp-not-supported": "_rp-not-supported_1i1lj_86"
731
+ "rp-pages": "_rp-pages_x8ox4_1",
732
+ "rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_x8ox4_6",
733
+ "rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_x8ox4_11",
734
+ "rp-pages-container": "_rp-pages-container_x8ox4_15",
735
+ "rp-viewer": "_rp-viewer_x8ox4_57",
736
+ "rp-cursor-grab": "_rp-cursor-grab_x8ox4_62",
737
+ "rp-cursor-grabbing": "_rp-cursor-grabbing_x8ox4_70",
738
+ "rp-loader": "_rp-loader_x8ox4_78",
739
+ "rp-not-supported": "_rp-not-supported_x8ox4_86"
740
740
  }, st = {
741
741
  "rp-page-wrapper": "_rp-page-wrapper_14ohm_1",
742
742
  "rp-page": "_rp-page_14ohm_1",
@@ -795,8 +795,8 @@ const Er = () => {
795
795
  b.current = new AbortController();
796
796
  const { signal: u } = b.current, s = () => {
797
797
  T().forEach((w) => {
798
- const S = w.querySelector(".endOfContent");
799
- S && (w.appendChild(S), S.style.width = "", S.style.height = "", w.classList.remove(me.selecting));
798
+ const y = w.querySelector(".endOfContent");
799
+ y && (w.appendChild(y), y.style.width = "", y.style.height = "", w.classList.remove(me.selecting));
800
800
  });
801
801
  };
802
802
  document.addEventListener(
@@ -836,15 +836,15 @@ const Er = () => {
836
836
  s();
837
837
  return;
838
838
  }
839
- const S = /* @__PURE__ */ new Set();
839
+ const y = /* @__PURE__ */ new Set();
840
840
  for (let O = 0; O < w.rangeCount; O++) {
841
841
  const F = w.getRangeAt(O);
842
842
  T().forEach(($) => {
843
- F.intersectsNode($) && !S.has($) && S.add($);
843
+ F.intersectsNode($) && !y.has($) && y.add($);
844
844
  });
845
845
  }
846
846
  T().forEach((O) => {
847
- if (S.has(O))
847
+ if (y.has(O))
848
848
  O.classList.add(me.selecting);
849
849
  else {
850
850
  const F = O.querySelector(".endOfContent");
@@ -852,12 +852,12 @@ const Er = () => {
852
852
  }
853
853
  });
854
854
  const R = w.getRangeAt(0);
855
- let x = _ && (R.compareBoundaryPoints(Range.END_TO_END, _) === 0 || R.compareBoundaryPoints(Range.START_TO_END, _) === 0) ? R.startContainer : R.endContainer;
856
- x.nodeType === Node.TEXT_NODE && (x = x.parentNode);
857
- const N = (z = x.parentElement) == null ? void 0 : z.closest(
855
+ let I = _ && (R.compareBoundaryPoints(Range.END_TO_END, _) === 0 || R.compareBoundaryPoints(Range.START_TO_END, _) === 0) ? R.startContainer : R.endContainer;
856
+ I.nodeType === Node.TEXT_NODE && (I = I.parentNode);
857
+ const N = (z = I.parentElement) == null ? void 0 : z.closest(
858
858
  me["rp-text-layer"]
859
859
  ), A = N == null ? void 0 : N.querySelector(".endOfContent");
860
- A && N && (A.style.width = N.style.width, A.style.height = N.style.height, (L = x.parentElement) == null || L.insertBefore(A, x.nextSibling)), _ = R.cloneRange();
860
+ A && N && (A.style.width = N.style.width, A.style.height = N.style.height, (L = I.parentElement) == null || L.insertBefore(A, I.nextSibling)), _ = R.cloneRange();
861
861
  },
862
862
  { signal: u }
863
863
  );
@@ -865,7 +865,7 @@ const Er = () => {
865
865
  var u;
866
866
  (u = b.current) == null || u.abort(), b.current = void 0;
867
867
  }), [T]);
868
- const y = E(() => {
868
+ const x = E(() => {
869
869
  r.current && r.current.classList.add(me.selecting);
870
870
  }, []), g = E(() => {
871
871
  r.current && r.current.classList.remove(me.selecting);
@@ -897,11 +897,11 @@ const Er = () => {
897
897
  container: u
898
898
  }), m.current = s, u && (u.innerText = ""), f.current.render();
899
899
  }).then(() => {
900
- var S, R;
901
- [].slice.call(u.children).forEach((I) => {
902
- I.classList.add(me["rp-text-layer-text"]), I.setAttribute("data-rp", "rp-text-layer-text");
900
+ var y, R;
901
+ [].slice.call(u.children).forEach((S) => {
902
+ S.classList.add(me["rp-text-layer-text"]), S.setAttribute("data-rp", "rp-text-layer-text");
903
903
  });
904
- const _ = (S = f.current) == null ? void 0 : S.textDivs;
904
+ const _ = (y = f.current) == null ? void 0 : y.textDivs;
905
905
  _ && m.current && v(m.current, _);
906
906
  const w = document.createElement("div");
907
907
  w.className = "endOfContent", (R = r.current) == null || R.appendChild(w);
@@ -924,7 +924,7 @@ const Er = () => {
924
924
  "data-rp": `page-${e}-textLayer`,
925
925
  className: me["rp-text-layer"],
926
926
  ref: r,
927
- onMouseDown: y,
927
+ onMouseDown: x,
928
928
  onMouseUp: g
929
929
  }
930
930
  );
@@ -943,10 +943,10 @@ const Wr = (t) => {
943
943
  }, [v]);
944
944
  const C = E(
945
945
  (T) => {
946
- !c || !o || (Uo(T), Vo(T, o, c).then((y) => {
946
+ !c || !o || (Uo(T), Vo(T, o, c).then((x) => {
947
947
  var g, h;
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
- }), m === ne.PAGE_SCROLLING ? zt(T, c, o, (y) => d(y.pageIndex + 1)) : zt(T, c, o, (y) => f(y.pageIndex + 1)));
948
+ ((g = x == null ? void 0 : x.data) == null ? void 0 : g.action) === "Print" ? P() : ((h = x == null ? void 0 : x.data) == null ? void 0 : h.action) === "SaveAs" && p();
949
+ }), m === ne.PAGE_SCROLLING ? zt(T, c, o, (x) => d(x.pageIndex + 1)) : zt(T, c, o, (x) => f(x.pageIndex + 1)));
950
950
  },
951
951
  [o, c, f, d, m, P, p]
952
952
  );
@@ -960,15 +960,15 @@ const Wr = (t) => {
960
960
  });
961
961
  return;
962
962
  }
963
- const y = /* @__PURE__ */ new Map([]);
963
+ const x = /* @__PURE__ */ new Map([]);
964
964
  for (const u of c) {
965
965
  const { annotationType: s } = u;
966
966
  switch (s) {
967
967
  case Nt.Link:
968
- Bo(u);
968
+ jo(u);
969
969
  break;
970
970
  case Nt.Widget:
971
- jo(u, T, y);
971
+ Bo(u, T, x);
972
972
  break;
973
973
  }
974
974
  }
@@ -1050,9 +1050,9 @@ const Wr = (t) => {
1050
1050
  s(_);
1051
1051
  return;
1052
1052
  }
1053
- new MutationObserver((S, R) => {
1054
- const I = g.querySelector(u);
1055
- I && (s(I), R.disconnect());
1053
+ new MutationObserver((y, R) => {
1054
+ const S = g.querySelector(u);
1055
+ S && (s(S), R.disconnect());
1056
1056
  }).observe(g, { childList: !0, subtree: !0 });
1057
1057
  });
1058
1058
  }
@@ -1066,26 +1066,26 @@ const Wr = (t) => {
1066
1066
  return;
1067
1067
  }
1068
1068
  new MutationObserver((_, w) => {
1069
- const S = g.querySelectorAll(
1069
+ const y = g.querySelectorAll(
1070
1070
  ".rp-text-layer-text"
1071
1071
  );
1072
- S.length && (h(Array.from(S)), w.disconnect());
1072
+ y.length && (h(Array.from(y)), w.disconnect());
1073
1073
  }).observe(g, { childList: !0, subtree: !0 });
1074
1074
  });
1075
1075
  }
1076
1076
  const C = (g, h, u, s) => {
1077
- var j;
1077
+ var B;
1078
1078
  const _ = document.createRange(), w = u.firstChild;
1079
1079
  if (!w || w.nodeType !== Node.TEXT_NODE)
1080
1080
  return null;
1081
- const S = ((j = w.textContent) == null ? void 0 : j.length) ?? 0, R = s[0].charIdxInSpan, I = s.length === 1 ? R : s[s.length - 1].charIdxInSpan;
1082
- if (R > S || I + 1 > S)
1081
+ const y = ((B = w.textContent) == null ? void 0 : B.length) ?? 0, R = s[0].charIdxInSpan, S = s.length === 1 ? R : s[s.length - 1].charIdxInSpan;
1082
+ if (R > y || S + 1 > y)
1083
1083
  return null;
1084
- _.setStart(w, R), _.setEnd(w, I + 1);
1085
- const x = document.createElement("span");
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, $ = 100 * N.height / z, M = 100 * N.width / L;
1088
- return Qo(x), {
1084
+ _.setStart(w, R), _.setEnd(w, S + 1);
1085
+ const I = document.createElement("span");
1086
+ I.style.width = "auto", _.surroundContents(I);
1087
+ const N = I.getBoundingClientRect(), A = g.getBoundingClientRect(), z = A.height, L = A.width, O = 100 * (N.left - A.left) / L, F = 100 * (N.top - A.top) / z, $ = 100 * N.height / z, M = 100 * N.width / L;
1088
+ return Qo(I), {
1089
1089
  keywordStr: h,
1090
1090
  left: O,
1091
1091
  top: F,
@@ -1101,12 +1101,12 @@ const Wr = (t) => {
1101
1101
  return;
1102
1102
  const s = await b(u);
1103
1103
  if (s.length) {
1104
- const _ = s.map((S) => S.tagName === "BR" ? " " : S.textContent).reduce(
1105
- (S, R, I) => S.concat(
1106
- R.split("").map((x, N) => ({
1107
- char: x,
1104
+ const _ = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
1105
+ (y, R, S) => y.concat(
1106
+ R.split("").map((I, N) => ({
1107
+ char: I,
1108
1108
  charIdxInSpan: N,
1109
- spanIdx: I
1109
+ spanIdx: S
1110
1110
  }))
1111
1111
  ),
1112
1112
  [
@@ -1116,24 +1116,24 @@ const Wr = (t) => {
1116
1116
  spanIdx: 0
1117
1117
  }
1118
1118
  ]
1119
- ).slice(1), w = y(u, h, s, _);
1119
+ ).slice(1), w = x(u, h, s, _);
1120
1120
  P(w);
1121
1121
  }
1122
1122
  }
1123
- const y = (g, h, u, s) => {
1123
+ const x = (g, h, u, s) => {
1124
1124
  const _ = h.length;
1125
1125
  if (!s.length || !_)
1126
1126
  return [];
1127
- const w = [], S = s.map((R) => R.char).join("");
1127
+ const w = [], y = s.map((R) => R.char).join("");
1128
1128
  return p.forEach((R) => {
1129
- const { keyword: I, regExp: x, wholeWords: N, color: A } = R, z = I;
1129
+ const { keyword: S, regExp: I, wholeWords: N, color: A } = R, z = S;
1130
1130
  if (!z.trim())
1131
1131
  return;
1132
- const L = x.flags.indexOf("g") === -1 ? new RegExp(x, `${x.flags}g`) : x;
1132
+ const L = I.flags.indexOf("g") === -1 ? new RegExp(I, `${I.flags}g`) : I;
1133
1133
  let O;
1134
1134
  const F = [];
1135
- for (; (O = L.exec(S)) !== null; )
1136
- N && !go(S, O.index, O[0].length) || F.push({
1135
+ for (; (O = L.exec(y)) !== null; )
1136
+ N && !go(y, O.index, O[0].length) || F.push({
1137
1137
  keyword: L,
1138
1138
  startIndex: O.index,
1139
1139
  endIndex: L.lastIndex
@@ -1144,11 +1144,11 @@ const Wr = (t) => {
1144
1144
  color: A
1145
1145
  }));
1146
1146
  for (const M of $) {
1147
- const j = M.indexes.reduce(
1147
+ const B = M.indexes.reduce(
1148
1148
  (K, U) => (K[U.spanIdx] = (K[U.spanIdx] || []).concat([U]), K),
1149
1149
  {}
1150
1150
  );
1151
- for (const K of Object.values(j))
1151
+ for (const K of Object.values(B))
1152
1152
  if (K.length !== 1 || K[0].char.trim() !== "") {
1153
1153
  const U = K, re = u[U[0].spanIdx], G = C(
1154
1154
  g,
@@ -1189,7 +1189,7 @@ const Wr = (t) => {
1189
1189
  },
1190
1190
  h
1191
1191
  )) }) });
1192
- }, yt = et((t, e) => {
1192
+ }, xt = et((t, e) => {
1193
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
@@ -1215,7 +1215,7 @@ const Wr = (t) => {
1215
1215
  default:
1216
1216
  return "center";
1217
1217
  }
1218
- }, [C, v]), y = E(() => {
1218
+ }, [C, v]), x = E(() => {
1219
1219
  P(!0);
1220
1220
  }, []), g = E(() => {
1221
1221
  P(!1);
@@ -1243,7 +1243,7 @@ const Wr = (t) => {
1243
1243
  },
1244
1244
  className: st["rp-page"],
1245
1245
  children: [
1246
- /* @__PURE__ */ a(Dr, { onLoading: y, onLoaded: g, pageNumber: n }),
1246
+ /* @__PURE__ */ a(Dr, { onLoading: x, onLoaded: g, pageNumber: n }),
1247
1247
  m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1248
1248
  /* @__PURE__ */ a(Yo, { pageNumber: n }),
1249
1249
  l && /* @__PURE__ */ a(Fr, { pageNumber: n }),
@@ -1322,7 +1322,7 @@ var Vr = typeof performance == "object" && typeof performance.now == "function",
1322
1322
  function qt(t) {
1323
1323
  cancelAnimationFrame(t.id);
1324
1324
  }
1325
- function jr(t, e) {
1325
+ function Br(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 jr(t, e) {
1333
1333
  return o;
1334
1334
  }
1335
1335
  var lt = -1;
1336
- function Br(t) {
1336
+ function jr(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);
@@ -1355,15 +1355,15 @@ var Kr = 150, Zr = function(e) {
1355
1355
  e.data;
1356
1356
  var r = e.rowIndex;
1357
1357
  return r + ":" + n;
1358
- }, je = null, Be = null, Ke = null;
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());
1358
+ }, Be = null, je = null, Ke = null;
1359
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Be = /* @__PURE__ */ new WeakSet(), je = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet());
1360
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
- return e = /* @__PURE__ */ function(y) {
1363
- qr(g, y);
1362
+ return e = /* @__PURE__ */ function(x) {
1363
+ qr(g, x);
1364
1364
  function g(u) {
1365
1365
  var s;
1366
- return s = y.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1366
+ return s = x.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
1367
1367
  instance: kt(s),
1368
1368
  isScrolling: !1,
1369
1369
  horizontalScrollDirection: "forward",
@@ -1371,31 +1371,31 @@ function Xr(t) {
1371
1371
  scrollTop: typeof s.props.initialScrollTop == "number" ? s.props.initialScrollTop : 0,
1372
1372
  scrollUpdateWasRequested: !1,
1373
1373
  verticalScrollDirection: "forward"
1374
- }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(_, w, S, R, I, x, N, A) {
1374
+ }, s._callOnItemsRendered = void 0, s._callOnItemsRendered = ct(function(_, w, y, R, S, I, N, A) {
1375
1375
  return s.props.onItemsRendered({
1376
1376
  overscanColumnStartIndex: _,
1377
1377
  overscanColumnStopIndex: w,
1378
- overscanRowStartIndex: S,
1378
+ overscanRowStartIndex: y,
1379
1379
  overscanRowStopIndex: R,
1380
- visibleColumnStartIndex: I,
1381
- visibleColumnStopIndex: x,
1380
+ visibleColumnStartIndex: S,
1381
+ visibleColumnStopIndex: I,
1382
1382
  visibleRowStartIndex: N,
1383
1383
  visibleRowStopIndex: A
1384
1384
  });
1385
- }), s._callOnScroll = void 0, s._callOnScroll = ct(function(_, w, S, R, I) {
1385
+ }), s._callOnScroll = void 0, s._callOnScroll = ct(function(_, w, y, R, S) {
1386
1386
  return s.props.onScroll({
1387
- horizontalScrollDirection: S,
1387
+ horizontalScrollDirection: y,
1388
1388
  scrollLeft: _,
1389
1389
  scrollTop: w,
1390
1390
  verticalScrollDirection: R,
1391
- scrollUpdateWasRequested: I
1391
+ scrollUpdateWasRequested: S
1392
1392
  });
1393
1393
  }), s._getItemStyle = void 0, s._getItemStyle = function(_, w) {
1394
- var S = s.props, R = S.columnWidth, I = S.direction, x = S.rowHeight, N = s._getItemStyleCache(C && R, C && I, C && x), A = _ + ":" + w, z;
1394
+ var y = s.props, R = y.columnWidth, S = y.direction, I = y.rowHeight, N = s._getItemStyleCache(C && R, C && S, C && I), A = _ + ":" + w, z;
1395
1395
  if (N.hasOwnProperty(A))
1396
1396
  z = N[A];
1397
1397
  else {
1398
- var L = n(s.props, w, s._instanceProps), O = I === "rtl";
1398
+ var L = n(s.props, w, s._instanceProps), O = S === "rtl";
1399
1399
  N[A] = z = {
1400
1400
  position: "absolute",
1401
1401
  left: O ? void 0 : L,
@@ -1406,31 +1406,31 @@ function Xr(t) {
1406
1406
  };
1407
1407
  }
1408
1408
  return z;
1409
- }, s._getItemStyleCache = void 0, s._getItemStyleCache = ct(function(_, w, S) {
1409
+ }, s._getItemStyleCache = void 0, s._getItemStyleCache = ct(function(_, w, y) {
1410
1410
  return {};
1411
1411
  }), s._onScroll = function(_) {
1412
- var w = _.currentTarget, S = w.clientHeight, R = w.clientWidth, I = w.scrollLeft, x = w.scrollTop, N = w.scrollHeight, A = w.scrollWidth;
1412
+ var w = _.currentTarget, y = w.clientHeight, R = w.clientWidth, S = w.scrollLeft, I = w.scrollTop, N = w.scrollHeight, A = w.scrollWidth;
1413
1413
  s.setState(function(z) {
1414
- if (z.scrollLeft === I && z.scrollTop === x)
1414
+ if (z.scrollLeft === S && z.scrollTop === I)
1415
1415
  return null;
1416
- var L = s.props.direction, O = I;
1416
+ var L = s.props.direction, O = S;
1417
1417
  if (L === "rtl")
1418
1418
  switch (Gt()) {
1419
1419
  case "negative":
1420
- O = -I;
1420
+ O = -S;
1421
1421
  break;
1422
1422
  case "positive-descending":
1423
- O = A - R - I;
1423
+ O = A - R - S;
1424
1424
  break;
1425
1425
  }
1426
1426
  O = Math.max(0, Math.min(O, A - R));
1427
- var F = Math.max(0, Math.min(x, N - S));
1427
+ var F = Math.max(0, Math.min(I, N - y));
1428
1428
  return {
1429
1429
  isScrolling: !0,
1430
- horizontalScrollDirection: z.scrollLeft < I ? "forward" : "backward",
1430
+ horizontalScrollDirection: z.scrollLeft < S ? "forward" : "backward",
1431
1431
  scrollLeft: O,
1432
1432
  scrollTop: F,
1433
- verticalScrollDirection: z.scrollTop < x ? "forward" : "backward",
1433
+ verticalScrollDirection: z.scrollTop < I ? "forward" : "backward",
1434
1434
  scrollUpdateWasRequested: !1
1435
1435
  };
1436
1436
  }, s._resetIsScrollingDebounced);
@@ -1438,7 +1438,7 @@ function Xr(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 = jr(s._resetIsScrolling, Kr);
1441
+ s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Br(s._resetIsScrolling, Kr);
1442
1442
  }, s._resetIsScrolling = function() {
1443
1443
  s._resetIsScrollingTimeoutId = null, s.setState({
1444
1444
  isScrolling: !1
@@ -1453,57 +1453,57 @@ function Xr(t) {
1453
1453
  var h = g.prototype;
1454
1454
  return h.scrollTo = function(s) {
1455
1455
  var _ = s.scrollLeft, w = s.scrollTop;
1456
- _ !== void 0 && (_ = Math.max(0, _)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(S) {
1457
- return _ === void 0 && (_ = S.scrollLeft), w === void 0 && (w = S.scrollTop), S.scrollLeft === _ && S.scrollTop === w ? null : {
1458
- horizontalScrollDirection: S.scrollLeft < _ ? "forward" : "backward",
1456
+ _ !== void 0 && (_ = Math.max(0, _)), w !== void 0 && (w = Math.max(0, w)), this.setState(function(y) {
1457
+ return _ === void 0 && (_ = y.scrollLeft), w === void 0 && (w = y.scrollTop), y.scrollLeft === _ && y.scrollTop === w ? null : {
1458
+ horizontalScrollDirection: y.scrollLeft < _ ? "forward" : "backward",
1459
1459
  scrollLeft: _,
1460
1460
  scrollTop: w,
1461
1461
  scrollUpdateWasRequested: !0,
1462
- verticalScrollDirection: S.scrollTop < w ? "forward" : "backward"
1462
+ verticalScrollDirection: y.scrollTop < w ? "forward" : "backward"
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, $ = Br();
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 ? $ : 0, U = M > N ? $ : 0;
1466
+ var _ = s.align, w = _ === void 0 ? "auto" : _, y = s.columnIndex, R = s.rowIndex, S = this.props, I = S.columnCount, N = S.height, A = S.rowCount, z = S.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, $ = jr();
1467
+ y !== void 0 && (y = Math.max(0, Math.min(y, I - 1))), R !== void 0 && (R = Math.max(0, Math.min(R, A - 1)));
1468
+ var M = c(this.props, this._instanceProps), B = l(this.props, this._instanceProps), K = B > z ? $ : 0, U = M > N ? $ : 0;
1469
1469
  this.scrollTo({
1470
- scrollLeft: S !== void 0 ? d(this.props, S, w, O, this._instanceProps, U) : O,
1470
+ scrollLeft: y !== void 0 ? d(this.props, y, w, O, this._instanceProps, U) : O,
1471
1471
  scrollTop: R !== void 0 ? f(this.props, R, w, F, this._instanceProps, K) : F
1472
1472
  });
1473
1473
  }, h.componentDidMount = function() {
1474
1474
  var s = this.props, _ = s.initialScrollLeft, w = s.initialScrollTop;
1475
1475
  if (this._outerRef != null) {
1476
- var S = this._outerRef;
1477
- typeof _ == "number" && (S.scrollLeft = _), typeof w == "number" && (S.scrollTop = w);
1476
+ var y = this._outerRef;
1477
+ typeof _ == "number" && (y.scrollLeft = _), typeof w == "number" && (y.scrollTop = w);
1478
1478
  }
1479
1479
  this._callPropsCallbacks();
1480
1480
  }, h.componentDidUpdate = function() {
1481
- var s = this.props.direction, _ = this.state, w = _.scrollLeft, S = _.scrollTop, R = _.scrollUpdateWasRequested;
1481
+ var s = this.props.direction, _ = this.state, w = _.scrollLeft, y = _.scrollTop, R = _.scrollUpdateWasRequested;
1482
1482
  if (R && this._outerRef != null) {
1483
- var I = this._outerRef;
1483
+ var S = this._outerRef;
1484
1484
  if (s === "rtl")
1485
1485
  switch (Gt()) {
1486
1486
  case "negative":
1487
- I.scrollLeft = -w;
1487
+ S.scrollLeft = -w;
1488
1488
  break;
1489
1489
  case "positive-ascending":
1490
- I.scrollLeft = w;
1490
+ S.scrollLeft = w;
1491
1491
  break;
1492
1492
  default:
1493
- var x = I.clientWidth, N = I.scrollWidth;
1494
- I.scrollLeft = N - x - w;
1493
+ var I = S.clientWidth, N = S.scrollWidth;
1494
+ S.scrollLeft = N - I - w;
1495
1495
  break;
1496
1496
  }
1497
1497
  else
1498
- I.scrollLeft = Math.max(0, w);
1499
- I.scrollTop = Math.max(0, S);
1498
+ S.scrollLeft = Math.max(0, w);
1499
+ S.scrollTop = Math.max(0, y);
1500
1500
  }
1501
1501
  this._callPropsCallbacks();
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 ? 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
- if (S > 0 && M)
1505
+ var s = this.props, _ = s.children, w = s.className, y = s.columnCount, R = s.direction, S = s.height, I = s.innerRef, N = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, O = L === void 0 ? Zr : L, F = s.outerElementType, $ = s.outerTagName, M = s.rowCount, B = s.style, K = s.useIsScrolling, U = s.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], ae = [];
1506
+ if (y > 0 && M)
1507
1507
  for (var Pe = ee; Pe <= ie; Pe++)
1508
1508
  for (var fe = Z; fe <= Y; fe++)
1509
1509
  ae.push(Ve(_, {
@@ -1525,16 +1525,16 @@ function Xr(t) {
1525
1525
  ref: this._outerRefSetter,
1526
1526
  style: ft({
1527
1527
  position: "relative",
1528
- height: I,
1528
+ height: S,
1529
1529
  width: U,
1530
1530
  overflow: "auto",
1531
1531
  WebkitOverflowScrolling: "touch",
1532
1532
  willChange: "transform",
1533
1533
  direction: R
1534
- }, j)
1534
+ }, B)
1535
1535
  }, Ve(N || A || "div", {
1536
1536
  children: ae,
1537
- ref: x,
1537
+ ref: I,
1538
1538
  style: {
1539
1539
  height: nt,
1540
1540
  pointerEvents: re ? "none" : void 0,
@@ -1542,27 +1542,27 @@ function Xr(t) {
1542
1542
  }
1543
1543
  }));
1544
1544
  }, h._callPropsCallbacks = function() {
1545
- var s = this.props, _ = s.columnCount, w = s.onItemsRendered, S = s.onScroll, R = s.rowCount;
1545
+ var s = this.props, _ = s.columnCount, w = s.onItemsRendered, y = 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], $ = L[2], M = L[3];
1548
- this._callOnItemsRendered(x, N, O, F, A, z, $, M);
1547
+ var S = this._getHorizontalRangeToRender(), I = S[0], N = S[1], A = S[2], z = S[3], L = this._getVerticalRangeToRender(), O = L[0], F = L[1], $ = L[2], M = L[3];
1548
+ this._callOnItemsRendered(I, N, O, F, A, z, $, M);
1549
1549
  }
1550
- if (typeof S == "function") {
1551
- var j = this.state, K = j.horizontalScrollDirection, U = j.scrollLeft, re = j.scrollTop, G = j.scrollUpdateWasRequested, Z = j.verticalScrollDirection;
1550
+ if (typeof y == "function") {
1551
+ var B = this.state, K = B.horizontalScrollDirection, U = B.scrollLeft, re = B.scrollTop, G = B.scrollUpdateWasRequested, Z = B.verticalScrollDirection;
1552
1552
  this._callOnScroll(U, re, K, Z, G);
1553
1553
  }
1554
1554
  }, h._getHorizontalRangeToRender = function() {
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
- if (_ === 0 || I === 0)
1555
+ var s = this.props, _ = s.columnCount, w = s.overscanColumnCount, y = s.overscanColumnsCount, R = s.overscanCount, S = s.rowCount, I = this.state, N = I.horizontalScrollDirection, A = I.isScrolling, z = I.scrollLeft, L = w || y || R || 1;
1556
+ if (_ === 0 || S === 0)
1557
1557
  return [0, 0, 0, 0];
1558
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
1559
  return [Math.max(0, O - $), Math.max(0, Math.min(_ - 1, F + M)), O, F];
1560
1560
  }, h._getVerticalRangeToRender = function() {
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
- if (_ === 0 || I === 0)
1561
+ var s = this.props, _ = s.columnCount, w = s.overscanCount, y = s.overscanRowCount, R = s.overscanRowsCount, S = s.rowCount, I = this.state, N = I.isScrolling, A = I.verticalScrollDirection, z = I.scrollTop, L = y || R || w || 1;
1562
+ if (_ === 0 || S === 0)
1563
1563
  return [0, 0, 0, 0];
1564
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];
1565
+ return [Math.max(0, O - $), Math.max(0, Math.min(S - 1, F + M)), O, F];
1566
1566
  }, g;
1567
1567
  }(to), e.defaultProps = {
1568
1568
  direction: "ltr",
@@ -1573,7 +1573,7 @@ function Xr(t) {
1573
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
- 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)
1576
+ if (typeof f == "number" && Be && !Be.has(p) && (Be.add(p), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && je && !je.has(p) && (je.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)
1577
1577
  throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
1578
1578
  switch (o) {
1579
1579
  case "ltr":
@@ -1595,7 +1595,7 @@ var Qr = function(e, n) {
1595
1595
  }
1596
1596
  var f = r - c - 1, m = f * i;
1597
1597
  return l + m;
1598
- }, yn = function(e, n) {
1598
+ }, xn = function(e, n) {
1599
1599
  var r = e.columnCount, o = n.columnMetadataMap, i = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, l = 0;
1600
1600
  if (c >= r && (c = r - 1), c >= 0) {
1601
1601
  var d = o[c];
@@ -1625,8 +1625,8 @@ var Qr = 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) : Yr(e, n, r, Math.max(0, c), o);
1629
- }, Sn = function(e, n, r, o, i, c) {
1628
+ return l >= o ? yn(e, n, r, c, 0, o) : Yr(e, n, r, Math.max(0, c), o);
1629
+ }, yn = function(e, n, r, o, i, c) {
1630
1630
  for (; i <= o; ) {
1631
1631
  var l = i + Math.floor((o - i) / 2), d = ge(e, n, l, r).offset;
1632
1632
  if (d === c)
@@ -1637,9 +1637,9 @@ var Qr = function(e, n) {
1637
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
- return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
1641
- }, jt = function(e, n, r, o, i, c, l) {
1642
- var d = e === "column" ? n.width : n.height, f = ge(e, n, r, c), m = e === "column" ? yn(n, c) : Pn(n, c), P = Math.max(0, Math.min(m - d, f.offset)), p = Math.max(0, f.offset - d + l + f.size);
1640
+ return yn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
1641
+ }, Bt = function(e, n, r, o, i, c, l) {
1642
+ var d = e === "column" ? n.width : n.height, f = ge(e, n, r, c), m = e === "column" ? xn(n, c) : Pn(n, c), P = Math.max(0, Math.min(m - d, f.offset)), p = Math.max(0, f.offset - d + l + f.size);
1643
1643
  switch (o === "smart" && (i >= p - d && i <= P + d ? o = "auto" : o = "center"), o) {
1644
1644
  case "start":
1645
1645
  return P;
@@ -1667,12 +1667,12 @@ var Qr = function(e, n) {
1667
1667
  return r.columnMetadataMap[n].size;
1668
1668
  },
1669
1669
  getEstimatedTotalHeight: Pn,
1670
- getEstimatedTotalWidth: yn,
1670
+ getEstimatedTotalWidth: xn,
1671
1671
  getOffsetForColumnAndAlignment: function(e, n, r, o, i, c) {
1672
- return jt("column", e, n, r, o, i, c);
1672
+ return Bt("column", e, n, r, o, i, c);
1673
1673
  },
1674
1674
  getOffsetForRowAndAlignment: function(e, n, r, o, i, c) {
1675
- return jt("row", e, n, r, o, i, c);
1675
+ return Bt("row", e, n, r, o, i, c);
1676
1676
  },
1677
1677
  getRowOffset: function(e, n, r) {
1678
1678
  return ge("row", e, n, r).offset;
@@ -1724,7 +1724,7 @@ var Qr = function(e, n) {
1724
1724
  }
1725
1725
  });
1726
1726
  process.env.NODE_ENV;
1727
- function Bt(t, e) {
1727
+ function jt(t, e) {
1728
1728
  for (var n in t)
1729
1729
  if (!(n in e))
1730
1730
  return !0;
@@ -1736,12 +1736,12 @@ function Bt(t, e) {
1736
1736
  var ei = ["style"], ti = ["style"];
1737
1737
  function ni(t, e) {
1738
1738
  var n = t.style, r = Ht(t, ei), o = e.style, i = Ht(e, ti);
1739
- return !Bt(n, o) && !Bt(r, i);
1739
+ return !jt(n, o) && !jt(r, i);
1740
1740
  }
1741
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
- const y = T % c;
1744
- return (!b[y] || C > b[y]) && (b[y] = C), b;
1743
+ const x = T % c;
1744
+ return (!b[x] || C > b[x]) && (b[x] = C), b;
1745
1745
  }, []), [o.widths, c]), d = E(
1746
1746
  (v) => {
1747
1747
  const b = v % l.length;
@@ -1751,8 +1751,8 @@ const oi = () => {
1751
1751
  ), f = E(
1752
1752
  (v) => {
1753
1753
  const b = Array.from({ length: c }, (C, T) => {
1754
- const y = v * c + T;
1755
- return o.heights[y] || 0;
1754
+ const x = v * c + T;
1755
+ return o.heights[x] || 0;
1756
1756
  });
1757
1757
  return Math.max(...b);
1758
1758
  },
@@ -1792,18 +1792,18 @@ 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) {
1795
- c = function(y) {
1796
- const g = y.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, s = h.firstElementChild;
1795
+ c = function(x) {
1796
+ const g = x.__resizeTriggers__, h = g.firstElementChild, u = g.lastElementChild, s = h.firstElementChild;
1797
1797
  u.scrollLeft = u.scrollWidth, u.scrollTop = u.scrollHeight, s.style.width = h.offsetWidth + 1 + "px", s.style.height = h.offsetHeight + 1 + "px", h.scrollLeft = h.scrollWidth, h.scrollTop = h.scrollHeight;
1798
- }, i = function(y) {
1799
- return y.offsetWidth !== y.__resizeLast__.width || y.offsetHeight !== y.__resizeLast__.height;
1800
- }, l = function(y) {
1801
- if (y.target.className && typeof y.target.className.indexOf == "function" && y.target.className.indexOf("contract-trigger") < 0 && y.target.className.indexOf("expand-trigger") < 0)
1798
+ }, i = function(x) {
1799
+ return x.offsetWidth !== x.__resizeLast__.width || x.offsetHeight !== x.__resizeLast__.height;
1800
+ }, l = function(x) {
1801
+ if (x.target.className && typeof x.target.className.indexOf == "function" && x.target.className.indexOf("contract-trigger") < 0 && x.target.className.indexOf("expand-trigger") < 0)
1802
1802
  return;
1803
1803
  const g = this;
1804
1804
  c(this), this.__resizeRAF__ && gt(this.__resizeRAF__), this.__resizeRAF__ = vt(function() {
1805
1805
  i(g) && (g.__resizeLast__.width = g.offsetWidth, g.__resizeLast__.height = g.offsetHeight, g.__resizeListeners__.forEach(function(s) {
1806
- s.call(g, y);
1806
+ s.call(g, x);
1807
1807
  }));
1808
1808
  });
1809
1809
  };
@@ -1812,10 +1812,10 @@ function ri(t) {
1812
1812
  const b = "Webkit Moz O ms".split(" ");
1813
1813
  let C = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), T = "";
1814
1814
  {
1815
- const y = document.createElement("fakeelement");
1816
- if (y.style.animationName !== void 0 && (p = !0), p === !1) {
1815
+ const x = document.createElement("fakeelement");
1816
+ if (x.style.animationName !== void 0 && (p = !0), p === !1) {
1817
1817
  for (let g = 0; g < b.length; g++)
1818
- if (y.style[b[g] + "AnimationName"] !== void 0) {
1818
+ if (x.style[b[g] + "AnimationName"] !== void 0) {
1819
1819
  T = b[g], v = "-" + T.toLowerCase() + "-", r = C[g], p = !0;
1820
1820
  break;
1821
1821
  }
@@ -1839,8 +1839,8 @@ function ri(t) {
1839
1839
  C && C.position === "static" && (p.style.position = "relative"), f(b), p.__resizeLast__ = {}, p.__resizeListeners__ = [], (p.__resizeTriggers__ = b.createElement("div")).className = "resize-triggers";
1840
1840
  const T = b.createElement("div");
1841
1841
  T.className = "expand-trigger", T.appendChild(b.createElement("div"));
1842
- const y = b.createElement("div");
1843
- y.className = "contract-trigger", p.__resizeTriggers__.appendChild(T), p.__resizeTriggers__.appendChild(y), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(h) {
1842
+ const x = b.createElement("div");
1843
+ x.className = "contract-trigger", p.__resizeTriggers__.appendChild(T), p.__resizeTriggers__.appendChild(x), p.appendChild(p.__resizeTriggers__), c(p), p.addEventListener("scroll", l, !0), r && (p.__resizeTriggers__.__animationListener__ = function(h) {
1844
1844
  h.animationName === n && c(p);
1845
1845
  }, p.__resizeTriggers__.addEventListener(r, p.__resizeTriggers__.__animationListener__));
1846
1846
  }
@@ -1927,16 +1927,16 @@ class ii extends no {
1927
1927
  width: C
1928
1928
  } = this.state, T = {
1929
1929
  overflow: "visible"
1930
- }, y = {};
1930
+ }, x = {};
1931
1931
  let g = !1;
1932
- return o || (p === 0 && (g = !0), T.height = 0, y.height = p, y.scaledHeight = v), i || (C === 0 && (g = !0), T.width = 0, y.width = C, y.scaledWidth = b), c && (g = !1), Ve(m, {
1932
+ return o || (p === 0 && (g = !0), T.height = 0, x.height = p, x.scaledHeight = v), i || (C === 0 && (g = !0), T.width = 0, x.width = C, x.scaledWidth = b), c && (g = !1), Ve(m, {
1933
1933
  ref: this._setRef,
1934
1934
  style: {
1935
1935
  ...T,
1936
1936
  ...f
1937
1937
  },
1938
1938
  ...P
1939
- }, !g && e(y));
1939
+ }, !g && e(x));
1940
1940
  }
1941
1941
  }
1942
1942
  const ai = nn(({ widths: t, heights: e }) => {
@@ -1964,7 +1964,7 @@ const ai = nn(({ widths: t, heights: e }) => {
1964
1964
  }
1965
1965
  ];
1966
1966
  }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1967
- return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(yt, { style: i[d], pageNumber: l }, l)) });
1967
+ return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(xt, { style: i[d], pageNumber: l }, l)) });
1968
1968
  }), si = ({ widths: t, heights: e }) => {
1969
1969
  const { focusedPage: n } = le(), r = W(() => ({
1970
1970
  position: "absolute",
@@ -1978,15 +1978,15 @@ const ai = nn(({ widths: t, heights: e }) => {
1978
1978
  width: o,
1979
1979
  position: "relative"
1980
1980
  },
1981
- children: /* @__PURE__ */ a(yt, { style: r, pageNumber: n }, n)
1981
+ children: /* @__PURE__ */ a(xt, { style: r, pageNumber: n }, n)
1982
1982
  }
1983
1983
  );
1984
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 = or(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, s = h + b;
1986
+ const T = c[C], x = or(C + 1, t), g = T * x.columnIndex, h = b * x.rowIndex, u = g + T, s = h + b;
1987
1987
  return {
1988
1988
  pageNumber: C + 1,
1989
- ...y,
1989
+ ...x,
1990
1990
  width: T,
1991
1991
  height: b,
1992
1992
  startX: g,
@@ -2009,17 +2009,17 @@ const ai = nn(({ widths: t, heights: e }) => {
2009
2009
  startLeft: C.scrollLeft,
2010
2010
  endTop: C.scrollTop + C.clientHeight,
2011
2011
  endLeft: C.scrollLeft + C.clientWidth
2012
- }, y = p.filter((g) => {
2012
+ }, x = p.filter((g) => {
2013
2013
  const h = g.endX >= T.startLeft && g.endY >= T.startTop, u = g.startX <= T.endLeft && g.startY <= T.endTop;
2014
2014
  return h && u;
2015
2015
  }).map((g) => {
2016
- const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, s = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = s - h, S = _ - u, I = +(w * S / (g.width * g.height) * 100).toFixed(2);
2016
+ const h = T.startLeft > g.startX ? T.startLeft : g.startX, u = T.startTop > g.startY ? T.startTop : g.startY, s = T.endLeft < g.endX ? T.endLeft : g.endX, _ = T.endTop < g.endY ? T.endTop : g.endY, w = s - h, y = _ - u, S = +(w * y / (g.width * g.height) * 100).toFixed(2);
2017
2017
  return {
2018
2018
  pageNumber: g.pageNumber,
2019
- ratio: I
2019
+ ratio: S
2020
2020
  };
2021
2021
  }).sort((g, h) => h.ratio - g.ratio);
2022
- f(y);
2022
+ f(x);
2023
2023
  });
2024
2024
  },
2025
2025
  [o, p]
@@ -2030,7 +2030,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2030
2030
  n == null || n.removeEventListener("scroll", v);
2031
2031
  };
2032
2032
  }, [n, v]);
2033
- }, In = et((t, e) => {
2033
+ }, Sn = et((t, e) => {
2034
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",
@@ -2054,7 +2054,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2054
2054
  );
2055
2055
  }), li = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2056
2056
  const o = rr(e, t, n.columnCount);
2057
- return /* @__PURE__ */ a(yt, { style: r, pageNumber: o }, o);
2057
+ return /* @__PURE__ */ a(xt, { style: r, pageNumber: o }, o);
2058
2058
  }, ni), Qs = () => {
2059
2059
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = uo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2060
2060
  virtualScrollRef: l,
@@ -2065,7 +2065,7 @@ const ai = 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 } = ao(), { LoaderImageComponent: I } = sn(), x = k(
2068
+ } = Ye(), C = k(!0), { nextPage: T, prevPage: x, setFocusedPage: g, focusedPage: h } = le(), { scrollMode: u } = Ee(), { viewMode: s } = Fe(), _ = k(null), { loading: w, error: y } = oe(), { passwordRequired: R } = ao(), { LoaderImageComponent: S } = sn(), I = k(
2069
2069
  v
2070
2070
  ), N = k({
2071
2071
  viewMode: s,
@@ -2075,7 +2075,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2075
2075
  rowCount: F,
2076
2076
  rowHeight: $,
2077
2077
  columnCount: M,
2078
- columnWidth: j,
2078
+ columnWidth: B,
2079
2079
  estimatedColumnWidth: K,
2080
2080
  estimatedRowHeight: U
2081
2081
  } = oi(), re = bt(v, 100), G = k();
@@ -2091,36 +2091,36 @@ const ai = nn(({ widths: t, heights: e }) => {
2091
2091
  columnCount: M
2092
2092
  }), [M]), fe = E(
2093
2093
  (V) => {
2094
- const B = document.activeElement !== r;
2095
- !L && B || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), y()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2094
+ const j = document.activeElement !== r;
2095
+ !L && j || (["ArrowUp", "ArrowLeft"].includes(V.key) ? (V.preventDefault(), x()) : ["ArrowDown", "ArrowRight"].includes(V.key) && (V.preventDefault(), T()));
2096
2096
  },
2097
- [T, y, L, u]
2097
+ [T, x, L, u]
2098
2098
  );
2099
2099
  D(() => (window.addEventListener("keydown", fe), () => {
2100
2100
  window.removeEventListener("keydown", fe);
2101
2101
  }), [fe]), D(() => {
2102
2102
  if (_.current && (_.current.style.position = "relative"), !!l)
2103
2103
  for (let V = 0; V < F; V++)
2104
- for (let B = 0; B < M; B++)
2104
+ for (let j = 0; j < M; j++)
2105
2105
  l.resetAfterIndices({
2106
- columnIndex: B,
2106
+ columnIndex: j,
2107
2107
  rowIndex: V,
2108
2108
  shouldForceUpdate: !0
2109
2109
  });
2110
2110
  }, [F, M, O, l]);
2111
2111
  const nt = E(
2112
- (V, B) => {
2112
+ (V, j) => {
2113
2113
  if (!p)
2114
2114
  return { scrollTop: 0, scrollLeft: 0 };
2115
- const ye = Z.current.scrollTop > B, Se = Z.current.scrollLeft > V;
2116
- return ye || Se ? Z.current : {
2115
+ const xe = Z.current.scrollTop > j, ye = Z.current.scrollLeft > V;
2116
+ return xe || ye ? Z.current : {
2117
2117
  scrollTop: p.scrollTop,
2118
2118
  scrollLeft: p.scrollLeft
2119
2119
  };
2120
2120
  },
2121
2121
  [p]
2122
2122
  ), Ue = E(
2123
- (V, B) => {
2123
+ (V, j) => {
2124
2124
  if (N.current.viewMode !== s || N.current.scrollMode !== u) {
2125
2125
  G.current && clearTimeout(G.current), A.current = !0, c(h, "auto"), G.current = setTimeout(() => {
2126
2126
  requestAnimationFrame(() => {
@@ -2129,14 +2129,14 @@ const ai = nn(({ widths: t, heights: e }) => {
2129
2129
  }, 100);
2130
2130
  return;
2131
2131
  }
2132
- const Se = V.scrollTop, ot = V.scrollLeft;
2133
- if (!B.height || !B.width)
2132
+ const ye = V.scrollTop, ot = V.scrollLeft;
2133
+ if (!j.height || !j.width)
2134
2134
  return;
2135
2135
  A.current = !0;
2136
- const { height: Ie, width: rt } = B, { height: Lt, width: Et } = x.current;
2137
- if (Lt === Ie && Et === rt)
2136
+ const { height: Se, width: rt } = j, { height: Lt, width: Et } = I.current;
2137
+ if (Lt === Se && Et === rt)
2138
2138
  return;
2139
- const Qn = Se / Lt * Ie, Yn = ot / Et * rt, Jn = Math.round(Math.min(Qn, Ie)) || 0, eo = Math.round(Math.min(Yn, rt)) || 0;
2139
+ const Qn = ye / Lt * Se, Yn = ot / Et * rt, Jn = Math.round(Math.min(Qn, Se)) || 0, eo = Math.round(Math.min(Yn, rt)) || 0;
2140
2140
  z.current = setTimeout(() => {
2141
2141
  requestAnimationFrame(() => {
2142
2142
  l == null || l.scrollTo({
@@ -2144,9 +2144,9 @@ const ai = nn(({ widths: t, heights: e }) => {
2144
2144
  scrollLeft: eo
2145
2145
  });
2146
2146
  });
2147
- }, 0), x.current = {
2148
- height: B.height,
2149
- width: B.width
2147
+ }, 0), I.current = {
2148
+ height: j.height,
2149
+ width: j.width
2150
2150
  };
2151
2151
  },
2152
2152
  [l, s, u, c]
@@ -2154,15 +2154,15 @@ const ai = 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 + $(Ie),
2157
+ (ye, ot, Se) => ye + $(Se),
2158
2158
  0
2159
- ), B = Array.from({ length: M }).reduce(
2160
- (Se, ot, Ie) => Se + j(Ie),
2159
+ ), j = Array.from({ length: M }).reduce(
2160
+ (ye, ot, Se) => ye + B(Se),
2161
2161
  0
2162
- ), ye = nt(B, V);
2163
- Z.current = ye, Ue(ye, { height: V, width: B }), P({
2162
+ ), xe = nt(j, V);
2163
+ Z.current = xe, Ue(xe, { height: V, width: j }), P({
2164
2164
  height: V,
2165
- width: B
2165
+ width: j
2166
2166
  });
2167
2167
  }, [O, F, M, Ue]);
2168
2168
  const Kn = E(
@@ -2183,8 +2183,8 @@ const ai = nn(({ widths: t, heights: e }) => {
2183
2183
  }), [ae, Y]), Xn = E(
2184
2184
  (V) => {
2185
2185
  if (ae && V) {
2186
- const B = se(de["rp-pages"]), ye = document.querySelector(`.${B}`);
2187
- ee(ye);
2186
+ const j = se(de["rp-pages"]), xe = document.querySelector(`.${j}`);
2187
+ ee(xe);
2188
2188
  }
2189
2189
  },
2190
2190
  [ae, ee, de]
@@ -2207,19 +2207,19 @@ const ai = nn(({ widths: t, heights: e }) => {
2207
2207
  re
2208
2208
  ]), /* @__PURE__ */ H(pe, { children: [
2209
2209
  /* @__PURE__ */ a(Eo, { ref: i, children: /* @__PURE__ */ a(
2210
- In,
2210
+ Sn,
2211
2211
  {
2212
2212
  id: n,
2213
2213
  ref: o,
2214
2214
  tabIndex: -1,
2215
2215
  className: Zn,
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(
2216
+ children: /* @__PURE__ */ a(ii, { style: { minHeight: "50px" }, children: ({ width: V, height: j }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: j }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2217
2217
  "div",
2218
2218
  {
2219
2219
  ref: f,
2220
- style: { width: V, height: B },
2220
+ style: { width: V, height: j },
2221
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: $ })
2222
+ children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ai, { widths: B, heights: $ }) : /* @__PURE__ */ a(si, { widths: B, heights: $ })
2223
2223
  }
2224
2224
  ) : U ? /* @__PURE__ */ a(
2225
2225
  Jr,
@@ -2230,9 +2230,9 @@ const ai = nn(({ widths: t, heights: e }) => {
2230
2230
  innerRef: _,
2231
2231
  onScroll: Kn,
2232
2232
  columnCount: M,
2233
- columnWidth: j,
2233
+ columnWidth: B,
2234
2234
  rowHeight: $,
2235
- height: B,
2235
+ height: j,
2236
2236
  width: V,
2237
2237
  estimatedColumnWidth: K,
2238
2238
  estimatedRowHeight: U,
@@ -2249,7 +2249,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2249
2249
  },
2250
2250
  children: li
2251
2251
  }
2252
- ) : !w && !S ? /* @__PURE__ */ a(
2252
+ ) : !w && !y ? /* @__PURE__ */ a(
2253
2253
  "div",
2254
2254
  {
2255
2255
  className: de["rp-loader"],
@@ -2260,9 +2260,9 @@ const ai = nn(({ widths: t, heights: e }) => {
2260
2260
  height: "100%",
2261
2261
  width: "100%"
2262
2262
  },
2263
- children: I && /* @__PURE__ */ a(I, {})
2263
+ children: S && /* @__PURE__ */ a(S, {})
2264
2264
  }
2265
- ) : S === io.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: de["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2265
+ ) : y === io.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: de["rp-not-supported"], children: /* @__PURE__ */ H("div", { children: [
2266
2266
  "React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
2267
2267
  /* @__PURE__ */ H("ul", { children: [
2268
2268
  /* @__PURE__ */ a("li", { children: "Chrome 110+" }),
@@ -2306,7 +2306,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2306
2306
  h.success || l(h.currentPage.toString());
2307
2307
  }, [i, c, e]), T = E(() => {
2308
2308
  l(t.toString());
2309
- }, [t]), y = E(
2309
+ }, [t]), x = E(
2310
2310
  (h) => {
2311
2311
  h.key === "Enter" && C();
2312
2312
  },
@@ -2345,7 +2345,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2345
2345
  /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
2346
2346
  on,
2347
2347
  {
2348
- onKeyDown: y,
2348
+ onKeyDown: x,
2349
2349
  onBlur: T,
2350
2350
  onChange: b,
2351
2351
  value: c,
@@ -2369,7 +2369,7 @@ const ai = nn(({ widths: t, heights: e }) => {
2369
2369
  ) })
2370
2370
  ] });
2371
2371
  };
2372
- var St = "Dialog", [xn, Ys] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2372
+ var yt = "Dialog", [In, Ys] = dr(yt), [hi, ue] = In(yt), Rn = (t) => {
2373
2373
  const {
2374
2374
  __scopeDialog: e,
2375
2375
  children: n,
@@ -2399,7 +2399,7 @@ var St = "Dialog", [xn, Ys] = dr(St), [hi, ue] = xn(St), Rn = (t) => {
2399
2399
  }
2400
2400
  );
2401
2401
  };
2402
- Rn.displayName = St;
2402
+ Rn.displayName = yt;
2403
2403
  var Ln = "DialogTrigger", fi = X.forwardRef(
2404
2404
  (t, e) => {
2405
2405
  const { __scopeDialog: n, ...r } = t, o = ue(Ln, n), i = Tt(e, o.triggerRef);
@@ -2419,13 +2419,13 @@ var Ln = "DialogTrigger", fi = X.forwardRef(
2419
2419
  }
2420
2420
  );
2421
2421
  fi.displayName = Ln;
2422
- var It = "DialogPortal", [mi, En] = xn(It, {
2422
+ var St = "DialogPortal", [mi, En] = In(St, {
2423
2423
  forceMount: void 0
2424
2424
  }), Nn = (t) => {
2425
- const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(It, e);
2425
+ const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = ue(St, e);
2426
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 }) })) });
2427
2427
  };
2428
- Nn.displayName = It;
2428
+ Nn.displayName = St;
2429
2429
  var Qe = "DialogOverlay", On = X.forwardRef(
2430
2430
  (t, e) => {
2431
2431
  const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = ue(Qe, t.__scopeDialog);
@@ -2542,13 +2542,13 @@ var vi = X.forwardRef(
2542
2542
  ] })
2543
2543
  ] });
2544
2544
  }
2545
- ), xt = "DialogTitle", zn = X.forwardRef(
2545
+ ), It = "DialogTitle", zn = X.forwardRef(
2546
2546
  (t, e) => {
2547
- const { __scopeDialog: n, ...r } = t, o = ue(xt, n);
2547
+ const { __scopeDialog: n, ...r } = t, o = ue(It, n);
2548
2548
  return /* @__PURE__ */ a(Ge.h2, { id: o.titleId, ...r, ref: e });
2549
2549
  }
2550
2550
  );
2551
- zn.displayName = xt;
2551
+ zn.displayName = It;
2552
2552
  var Fn = "DialogDescription", _i = X.forwardRef(
2553
2553
  (t, e) => {
2554
2554
  const { __scopeDialog: n, ...r } = t, o = ue(Fn, n);
@@ -2576,7 +2576,7 @@ function Rt(t) {
2576
2576
  }
2577
2577
  var Wn = "DialogTitleWarning", [Js, Hn] = pr(Wn, {
2578
2578
  contentName: Le,
2579
- titleName: xt,
2579
+ titleName: It,
2580
2580
  docsSlug: "dialog"
2581
2581
  }), bi = ({ titleId: t }) => {
2582
2582
  const e = Hn(Wn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
@@ -2594,8 +2594,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2594
2594
  const o = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
2595
2595
  e && o && (document.getElementById(e) || console.warn(r));
2596
2596
  }, [r, t, e]), null;
2597
- }, Pi = Rn, yi = Nn, Si = On, Ii = Dn, xi = zn, Ri = kn;
2598
- const xe = {
2597
+ }, Pi = Rn, xi = Nn, yi = On, Si = Dn, Ii = zn, Ri = kn;
2598
+ const Ie = {
2599
2599
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2600
2600
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
2601
2601
  "rp-document-dialog": "_rp-document-dialog_slqo7_13",
@@ -2619,7 +2619,7 @@ const xe = {
2619
2619
  modifiedOn: b,
2620
2620
  pdfProducer: C,
2621
2621
  pdfVersion: T,
2622
- pageCount: y
2622
+ pageCount: x
2623
2623
  } = t;
2624
2624
  return [
2625
2625
  { label: o == null ? void 0 : o.propertiesFilenameLabel, value: l },
@@ -2641,15 +2641,15 @@ const xe = {
2641
2641
  { separate: !0 },
2642
2642
  { label: o == null ? void 0 : o.propertiesPDFProducerLabel, value: C },
2643
2643
  { label: o == null ? void 0 : o.propertiesPDFVersionLabel, value: T },
2644
- { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2644
+ { label: o == null ? void 0 : o.propertiesPageCountLabel, value: x }
2645
2645
  ];
2646
2646
  }, [t, o]);
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, {}) })
2647
+ return /* @__PURE__ */ a(Pi, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(xi, { container: e, children: /* @__PURE__ */ H("div", { className: Ie["rp-dialog-wrapper"], children: [
2648
+ /* @__PURE__ */ a(yi, { className: Ie["rp-dialog-overlay"] }),
2649
+ /* @__PURE__ */ H(Si, { className: Ie["rp-document-dialog"], children: [
2650
+ /* @__PURE__ */ a(Ii, { className: Ie["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2651
+ /* @__PURE__ */ a("div", { className: Ie["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: Ie["rp-properties-divider"] }) : /* @__PURE__ */ a(Ao, { label: c.label, value: c.value }) }, l)) }),
2652
+ /* @__PURE__ */ a(Ri, { asChild: !0, className: Ie["rp-dialog-close"], children: /* @__PURE__ */ a(br, {}) })
2653
2653
  ] })
2654
2654
  ] }) }) });
2655
2655
  }, Ei = {
@@ -2670,7 +2670,7 @@ const xe = {
2670
2670
  }, [t, e]) };
2671
2671
  }, qn = () => {
2672
2672
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2673
- return t || e || /* @__PURE__ */ a(yr, {});
2673
+ return t || e || /* @__PURE__ */ a(xr, {});
2674
2674
  }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Ai = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2675
2675
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2676
2676
  e == null ? void 0 : e.downloadFileLabel
@@ -2679,11 +2679,11 @@ const xe = {
2679
2679
  return !e || !n ? null : r ? /* @__PURE__ */ a(Ai, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Di, { download: t, localeMessages: o });
2680
2680
  }, Vn = () => {
2681
2681
  const { printIcon: t } = Ce(), { printIcon: e } = be();
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: [
2682
+ return t || e || /* @__PURE__ */ a(yr, {});
2683
+ }, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Bn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), Fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ H(Bn, { className: "rp-menu-item", localeMessages: e, children: [
2684
2684
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2685
2685
  e == null ? void 0 : e.printLabel
2686
- ] }) }), Bn = () => {
2686
+ ] }) }), jn = () => {
2687
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;
2688
2688
  return !c || !l ? null : d ? /* @__PURE__ */ a(Fi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2689
2689
  c,
@@ -2746,17 +2746,17 @@ const xe = {
2746
2746
  } = Te(), {
2747
2747
  openFileTool: C,
2748
2748
  downloadTool: T,
2749
- documentProperties: y,
2749
+ documentProperties: x,
2750
2750
  scrollModeTool: g,
2751
2751
  rotateTool: h,
2752
2752
  selectionModeTool: u,
2753
2753
  jumpNavigationTool: s,
2754
2754
  printTool: _,
2755
2755
  fullscreenTool: w,
2756
- viewModeTool: S
2757
- } = Ne(), { localeMessages: R } = he(), [I, x] = q(0), N = k(
2756
+ viewModeTool: y
2757
+ } = Ne(), { localeMessages: R } = he(), [S, I] = q(0), N = k(
2758
2758
  new ResizeObserver((L) => {
2759
- x(L[0].contentRect.height);
2759
+ I(L[0].contentRect.height);
2760
2760
  })
2761
2761
  ), A = W(() => P || f || m || d || l || b || o && (i || c || p || v), [
2762
2762
  i,
@@ -2769,12 +2769,12 @@ const xe = {
2769
2769
  m,
2770
2770
  P,
2771
2771
  o
2772
- ]), z = W(() => s || h || u || g || y || S || o && (C || T || _ || w), [
2772
+ ]), z = W(() => s || h || u || g || x || y || o && (C || T || _ || w), [
2773
2773
  C,
2774
2774
  T,
2775
2775
  _,
2776
2776
  w,
2777
- y,
2777
+ x,
2778
2778
  g,
2779
2779
  h,
2780
2780
  u,
@@ -2795,20 +2795,20 @@ const xe = {
2795
2795
  children: /* @__PURE__ */ H(
2796
2796
  "div",
2797
2797
  {
2798
- style: { maxHeight: `${I}px`, overflow: "auto" },
2798
+ style: { maxHeight: `${S}px`, overflow: "auto" },
2799
2799
  className: Ei["rp-other-tool-content"],
2800
2800
  "data-rp": "moreOptionsDropdown",
2801
2801
  children: [
2802
2802
  o && /* @__PURE__ */ H(un, { children: [
2803
2803
  /* @__PURE__ */ a(dn, {}),
2804
2804
  /* @__PURE__ */ a(Un, {}),
2805
- /* @__PURE__ */ a(Bn, {}),
2805
+ /* @__PURE__ */ a(jn, {}),
2806
2806
  /* @__PURE__ */ a(pn, {}),
2807
2807
  /* @__PURE__ */ a(ln, {})
2808
2808
  ] }),
2809
2809
  /* @__PURE__ */ a(Hi, {}),
2810
2810
  /* @__PURE__ */ a(zo, {}),
2811
- /* @__PURE__ */ a(Ir, {}),
2811
+ /* @__PURE__ */ a(Sr, {}),
2812
2812
  /* @__PURE__ */ a(Cr, {}),
2813
2813
  /* @__PURE__ */ a(Pr, {}),
2814
2814
  /* @__PURE__ */ a(Tr, {})
@@ -2826,7 +2826,7 @@ const xe = {
2826
2826
  !t && /* @__PURE__ */ H(pe, { children: [
2827
2827
  /* @__PURE__ */ a(dn, {}),
2828
2828
  /* @__PURE__ */ a(Un, {}),
2829
- /* @__PURE__ */ a(Bn, {}),
2829
+ /* @__PURE__ */ a(jn, {}),
2830
2830
  /* @__PURE__ */ a(pn, {})
2831
2831
  ] }),
2832
2832
  /* @__PURE__ */ a($i, {})
@@ -2878,16 +2878,16 @@ const xe = {
2878
2878
  nextMatch: v,
2879
2879
  prevMatch: b,
2880
2880
  search: C
2881
- } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: y = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: s } = Oe(), [_, w] = q(null), [S, R] = q(!1), I = E(() => {
2881
+ } = Pt(), { searchTool: T = !0 } = Te(), { searchTool: x = !0 } = Ne(), [g, h] = q(C), { localeMessages: u } = he(), { isSmallScreen: s } = Oe(), [_, w] = q(null), [y, R] = q(!1), S = E(() => {
2882
2882
  r(!0);
2883
- }, []), x = E(() => {
2883
+ }, []), I = E(() => {
2884
2884
  m(""), h(""), r(!1);
2885
2885
  }, [m]), N = (G) => {
2886
2886
  const Z = G.key === "Enter", Y = G.key === " ";
2887
- (Z || Y) && x();
2887
+ (Z || Y) && I();
2888
2888
  }, A = E(
2889
2889
  (G) => {
2890
- G.key === "Escape" && n && x();
2890
+ G.key === "Escape" && n && I();
2891
2891
  },
2892
2892
  [n]
2893
2893
  ), z = E(
@@ -2913,7 +2913,7 @@ const xe = {
2913
2913
  h(G.target.value);
2914
2914
  }, []), O = E(() => {
2915
2915
  h(""), m("");
2916
- }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: $, matchCase: M } = W(() => l, [l]), j = E(
2916
+ }, [m]), F = W(() => `${p} / ${P}`, [p, P]), { wholeWords: $, matchCase: M } = W(() => l, [l]), B = E(
2917
2917
  (G) => {
2918
2918
  d((Z) => ({ ...Z, matchCase: G }));
2919
2919
  },
@@ -2925,8 +2925,8 @@ const xe = {
2925
2925
  [d]
2926
2926
  );
2927
2927
  D(() => {
2928
- o && S && x();
2929
- }, [o, x]);
2928
+ o && y && I();
2929
+ }, [o, I]);
2930
2930
  const U = W(() => (_ == null ? void 0 : _.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [_]), re = E(
2931
2931
  (G) => {
2932
2932
  if (G.key === "Tab") {
@@ -2951,7 +2951,7 @@ const xe = {
2951
2951
  },
2952
2952
  [U]
2953
2953
  );
2954
- return !T || !y ? null : /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a(
2954
+ return !T || !x ? null : /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a(
2955
2955
  cn,
2956
2956
  {
2957
2957
  open: n,
@@ -2964,7 +2964,7 @@ const xe = {
2964
2964
  ve,
2965
2965
  {
2966
2966
  active: n,
2967
- onClick: I,
2967
+ onClick: S,
2968
2968
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2969
2969
  children: t || /* @__PURE__ */ a(Gi, {})
2970
2970
  }
@@ -2996,7 +2996,7 @@ const xe = {
2996
2996
  }
2997
2997
  ) }),
2998
2998
  f ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(_t, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: F }),
2999
- s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x }) })
2999
+ s && /* @__PURE__ */ a("div", { className: te["rp-search-tool-controls"], children: /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: I }) })
3000
3000
  ] }),
3001
3001
  /* @__PURE__ */ H("div", { className: te["rp-search-tool-input-checkboxes"], children: [
3002
3002
  s && /* @__PURE__ */ a(Jt, {}),
@@ -3006,7 +3006,7 @@ const xe = {
3006
3006
  tabIndex: 0,
3007
3007
  name: "matchCase",
3008
3008
  value: M,
3009
- onChange: j,
3009
+ onChange: B,
3010
3010
  children: u == null ? void 0 : u.searchMatchCaseLabel
3011
3011
  }
3012
3012
  ),
@@ -3026,7 +3026,7 @@ const xe = {
3026
3026
  ] }),
3027
3027
  !s && /* @__PURE__ */ H("div", { className: te["rp-search-tool-controls"], children: [
3028
3028
  /* @__PURE__ */ a(Jt, {}),
3029
- /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: x })
3029
+ /* @__PURE__ */ a(Ot, { onKeyPress: N, handleClose: I })
3030
3030
  ] })
3031
3031
  ]
3032
3032
  }
@@ -3041,7 +3041,7 @@ const xe = {
3041
3041
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3042
3042
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3043
3043
  loading: Vi
3044
- }, ji = ({ percentage: t }) => {
3044
+ }, Bi = ({ percentage: t }) => {
3045
3045
  const { cancel: e } = tt(), { localeMessages: n } = he();
3046
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
3047
  /* @__PURE__ */ H("div", { className: se(Ae["rp-loading-title"]), children: [
@@ -3057,10 +3057,10 @@ const xe = {
3057
3057
  ) }),
3058
3058
  /* @__PURE__ */ a("button", { className: se(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3059
3059
  ] }) });
3060
- }, Bi = et((t, e) => {
3060
+ }, ji = et((t, e) => {
3061
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 = () => {
3062
3062
  if (!(!n || !r || !c))
3063
- return /* @__PURE__ */ a(ji, { percentage: c });
3063
+ return /* @__PURE__ */ a(Bi, { percentage: c });
3064
3064
  };
3065
3065
  return /* @__PURE__ */ H("div", { children: [
3066
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: [
@@ -3068,7 +3068,7 @@ const xe = {
3068
3068
  /* @__PURE__ */ a(Ui, {}),
3069
3069
  /* @__PURE__ */ a(pi, {})
3070
3070
  ] }),
3071
- /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(xr, {}) }),
3071
+ /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ir, {}) }),
3072
3072
  /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(qi, {}) })
3073
3073
  ] }) }),
3074
3074
  /* @__PURE__ */ a(d, {})
@@ -3097,7 +3097,7 @@ const xe = {
3097
3097
  const T = d.get(e);
3098
3098
  if (!c.current || !e || !T || f)
3099
3099
  return;
3100
- const y = new IntersectionObserver((g) => {
3100
+ const x = new IntersectionObserver((g) => {
3101
3101
  g.forEach((h) => {
3102
3102
  if (P.current) {
3103
3103
  P.current = !1, l.removeQueue(`thumbnail-${e}`);
@@ -3127,8 +3127,8 @@ const xe = {
3127
3127
  }
3128
3128
  });
3129
3129
  });
3130
- return c.current && y.observe(c.current), () => {
3131
- y.disconnect(), l.removeQueue(`thumbnail-${e}`);
3130
+ return c.current && x.observe(c.current), () => {
3131
+ x.disconnect(), l.removeQueue(`thumbnail-${e}`);
3132
3132
  };
3133
3133
  }, [l, e, d, f]), /* @__PURE__ */ H(
3134
3134
  "div",
@@ -3186,12 +3186,12 @@ const xe = {
3186
3186
  return D(() => {
3187
3187
  o > d && i > d ? f(o) : n && P.current !== o && (Xi(m.current, o), P.current = o);
3188
3188
  }, [o, d, f, n, p]), Fo(m.current, v), /* @__PURE__ */ a("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3189
- var T, y;
3189
+ var T, x;
3190
3190
  return /* @__PURE__ */ a(
3191
3191
  Ki,
3192
3192
  {
3193
3193
  isFocused: o === ((T = b.page) == null ? void 0 : T.pageNumber),
3194
- pageNumber: (y = b.page) == null ? void 0 : y.pageNumber,
3194
+ pageNumber: (x = b.page) == null ? void 0 : x.pageNumber,
3195
3195
  loading: b.loading,
3196
3196
  viewport: b.viewport,
3197
3197
  defaultRotation: b.defaultRotation
@@ -3201,7 +3201,7 @@ const xe = {
3201
3201
  }) : null }) });
3202
3202
  }), Yi = () => {
3203
3203
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3204
- return t || e || /* @__PURE__ */ a(yo, {});
3204
+ return t || e || /* @__PURE__ */ a(xo, {});
3205
3205
  }, Ji = () => {
3206
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(() => {
3207
3207
  e((P) => !P);
@@ -3259,11 +3259,11 @@ const xe = {
3259
3259
  return D(() => (d && d(), () => {
3260
3260
  f && f();
3261
3261
  }), [d, f]), // TODO: deprecated in v2.0.0, remove later ~
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: [
3262
+ /* @__PURE__ */ a(Sn, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(So, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(Io, { slots: r, children: /* @__PURE__ */ a(Do, { icons: o, children: /* @__PURE__ */ a(Po, { children: /* @__PURE__ */ H(yo, { getContainerRef: v, style: i, className: c, children: [
3263
3263
  /* @__PURE__ */ H(Lo, { children: [
3264
3264
  /* @__PURE__ */ H("div", { className: we["rp-layout"], children: [
3265
3265
  /* @__PURE__ */ a(
3266
- Bi,
3266
+ ji,
3267
3267
  {
3268
3268
  ref: p
3269
3269
  }
@@ -3318,23 +3318,23 @@ export {
3318
3318
  Dr as C,
3319
3319
  Wr as D,
3320
3320
  $r as E,
3321
- yt as F,
3321
+ xt as F,
3322
3322
  oi as G,
3323
3323
  ai as H,
3324
3324
  si as I,
3325
3325
  ci as J,
3326
3326
  Li as K,
3327
- In as L,
3327
+ Sn as L,
3328
3328
  Un as M,
3329
- Bn as N,
3329
+ jn as N,
3330
3330
  Hi as O,
3331
- js as P,
3331
+ Bs as P,
3332
3332
  $i as Q,
3333
3333
  Qs as R,
3334
3334
  Ui as S,
3335
3335
  Ks as T,
3336
3336
  Jt as U,
3337
- Bi as V,
3337
+ ji as V,
3338
3338
  Ki as W,
3339
3339
  Ji as X,
3340
3340
  ec as a,
@@ -3343,7 +3343,7 @@ export {
3343
3343
  Pt as d,
3344
3344
  Zs as e,
3345
3345
  Xs as f,
3346
- Bs as g,
3346
+ js as g,
3347
3347
  _n as h,
3348
3348
  pt as i,
3349
3349
  Me as j,
@@ -3351,7 +3351,7 @@ export {
3351
3351
  qi as l,
3352
3352
  tc as m,
3353
3353
  Qi as n,
3354
- ji as o,
3354
+ Bi as o,
3355
3355
  mn as p,
3356
3356
  Lr as q,
3357
3357
  gn as r,