@pdf-viewer/react 1.9.2-rc.0 → 1.9.2-rc.1

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 (57) hide show
  1. package/dist/{ToolbarLayout.module-8210c0a6.js → ToolbarLayout.module-5f4b7b49.js} +163 -161
  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/RPProvider.js +12 -11
  6. package/dist/components/layout/LayoutContainer.js +1 -1
  7. package/dist/components/layout/RPDefaultLayout.js +1 -1
  8. package/dist/components/layout/RPLayout.js +1 -1
  9. package/dist/components/layout/sidebar/RPSidebar.js +1 -1
  10. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  11. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  12. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  13. package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
  14. package/dist/components/layout/toolbar/MostPageTool.js +1 -1
  15. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  16. package/dist/components/layout/toolbar/Paginate.js +1 -1
  17. package/dist/components/layout/toolbar/PrintTool.js +1 -1
  18. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  19. package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
  20. package/dist/components/layout/toolbar/SearchResultNavigator.js +1 -1
  21. package/dist/components/layout/toolbar/SearchTool.js +1 -1
  22. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  23. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  24. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  25. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  26. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  27. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  28. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  29. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  30. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  31. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
  32. package/dist/components/page/AnnotationLayer.js +1 -1
  33. package/dist/components/page/CanvasLayer.js +1 -1
  34. package/dist/components/page/DualPage.js +1 -1
  35. package/dist/components/page/RPPage.js +1 -1
  36. package/dist/components/page/SinglePage.js +1 -1
  37. package/dist/components/page/TextHighlightLayer.js +1 -1
  38. package/dist/components/page/TextLayer.js +1 -1
  39. package/dist/components/ui/LoadingIndicator.js +1 -1
  40. package/dist/contexts/PaginationContext.js +1 -1
  41. package/dist/contexts/PrintContext.js +1 -1
  42. package/dist/contexts/RenderQueueProvider.js +1 -1
  43. package/dist/contexts/SearchContext.js +1 -1
  44. package/dist/contexts/ThumbnailsContext.js +1 -1
  45. package/dist/main.js +1 -1
  46. package/dist/types/utils/hooks/useFlickerSelectText.d.ts +1 -0
  47. package/dist/utils/hooks/useFileDownload.js +1 -1
  48. package/dist/utils/hooks/useFlickerSelectText.js +25 -0
  49. package/dist/utils/hooks/useLicense.js +1 -1
  50. package/dist/utils/hooks/usePaginate.js +1 -1
  51. package/dist/utils/hooks/usePresentPage.js +1 -1
  52. package/dist/utils/hooks/usePrint.js +1 -1
  53. package/dist/utils/hooks/useScrollToPage.js +1 -1
  54. package/dist/utils/hooks/useSearch.js +1 -1
  55. package/dist/utils/hooks/useThumbnail.js +1 -1
  56. package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
  57. package/package.json +1 -1
@@ -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" && ar.error("Please use this hooks inside children component of RPProvider"), t;
249
- }, Us = ({ children: t }) => {
249
+ }, Vs = ({ children: t }) => {
250
250
  const { pdf: e } = oe(), { setCurrentPage: n } = bo(), { focusedPage: r, totalPages: o, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Rr();
251
251
  return D(() => {
252
252
  e != null && e.numPages && (c(e.numPages), i(1));
@@ -445,7 +445,7 @@ const Lr = () => {
445
445
  console.error("Error in setOnError callback:", e);
446
446
  }
447
447
  }
448
- }), Vs = ({ 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 } = Lr(), P = E((T) => {
450
450
  T && typeof T == "function" && o(() => T);
451
451
  }, []), p = (T) => {
@@ -532,7 +532,7 @@ const Lr = () => {
532
532
  setActive: (t) => {
533
533
  },
534
534
  active: !1
535
- }), _n = () => $e(wn), js = ({
535
+ }), _n = () => $e(wn), Bs = ({
536
536
  children: t,
537
537
  initialThumbnailsVisible: e
538
538
  }) => {
@@ -659,7 +659,7 @@ const Lr = () => {
659
659
  currentMatchElement: null,
660
660
  setCurrentMatchElement: (t) => {
661
661
  }
662
- }), Bs = ({
662
+ }), Ks = ({
663
663
  children: t,
664
664
  initialSearch: e
665
665
  }) => {
@@ -697,7 +697,7 @@ const Lr = () => {
697
697
  children: t
698
698
  }
699
699
  );
700
- }, Pt = () => $e(bn), Tn = He(null), Ks = ({ children: t }) => {
700
+ }, Pt = () => $e(bn), Tn = He(null), Zs = ({ children: t }) => {
701
701
  const e = k(!1), [n, r] = q([]), o = E((d) => {
702
702
  r((f) => [...f, { id: d.page.pageNumber.toString(), data: d, priority: 0 }]);
703
703
  }, []), i = W(() => new wo(o), [o]), { focusedPage: c } = le(), l = E((d) => (e.current = !0, _o(
@@ -770,11 +770,12 @@ const Lr = () => {
770
770
  f.removeQueue(m.current);
771
771
  };
772
772
  }, [i, e, c, d, r, n, f]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: o });
773
- }, Dr = "_selecting_usdup_9", me = {
774
- "rp-text-layer": "_rp-text-layer_usdup_1",
773
+ }, Dr = "_selecting_1uik2_10", Ar = "_markedContent_1uik2_33", me = {
774
+ "rp-text-layer": "_rp-text-layer_1uik2_1",
775
775
  selecting: Dr,
776
- "rp-text-layer-text": "_rp-text-layer-text_usdup_39"
777
- }, Ar = (t) => {
776
+ markedContent: Ar,
777
+ "rp-text-layer-text": "_rp-text-layer-text_1uik2_52"
778
+ }, zr = (t) => {
778
779
  const { pageNumber: e } = t, { pages: n } = oe(), r = k(null), { matches: o, currentMatch: i, setCurrentMatchElement: c } = Pt(), [l, d] = q(
779
780
  []
780
781
  ), f = k(), m = k(), P = k([]), p = W(() => o.filter((h) => h.pageIndex === e - 1), [o, e]), v = E(
@@ -919,6 +920,7 @@ const Lr = () => {
919
920
  }, [v]), /* @__PURE__ */ a(
920
921
  "div",
921
922
  {
923
+ "data-rp-text-layer": !0,
922
924
  "data-rp": `page-${e}-textLayer`,
923
925
  className: me["rp-text-layer"],
924
926
  ref: r,
@@ -926,11 +928,11 @@ const Lr = () => {
926
928
  onMouseUp: g
927
929
  }
928
930
  );
929
- }, zr = {
931
+ }, Fr = {
930
932
  "rp-annotation-layer": "_rp-annotation-layer_1udza_1"
931
933
  };
932
- let Fr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
933
- const Mr = (t) => {
934
+ let Mr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
935
+ const kr = (t) => {
934
936
  const { pageNumber: e } = t, n = k(null), { pages: r, pdf: o } = oe(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = le(), { scrollMode: m } = Ee(), { print: P } = tt(), { download: p } = $n(), v = W(() => r.get(e), [r, e]), b = W(() => v == null ? void 0 : v.page.getViewport(), [v]);
935
937
  D(() => {
936
938
  i.current && (i.current.div.replaceChildren(), i.current = void 0);
@@ -993,7 +995,7 @@ const Mr = (t) => {
993
995
  div: n.current,
994
996
  viewport: T.clone({ dontFlip: !0 }),
995
997
  page: v.page,
996
- imageResourcesPath: Fr,
998
+ imageResourcesPath: Mr,
997
999
  renderForms: !0,
998
1000
  linkService: new qo(),
999
1001
  downloadManager: null,
@@ -1012,13 +1014,13 @@ const Mr = (t) => {
1012
1014
  {
1013
1015
  "data-rp": `page-${e}-annotationLayer`,
1014
1016
  style: { width: `${b == null ? void 0 : b.width}px`, height: `${b == null ? void 0 : b.height}px` },
1015
- className: zr["rp-annotation-layer"],
1017
+ className: Fr["rp-annotation-layer"],
1016
1018
  ref: n
1017
1019
  }
1018
1020
  );
1019
- }, kr = {
1021
+ }, Wr = {
1020
1022
  "rp-text-highlight": "_rp-text-highlight_jdkf8_1"
1021
- }, Wr = ({ pageNumber: t, viewport: e }) => {
1023
+ }, Hr = ({ pageNumber: t, viewport: e }) => {
1022
1024
  const [n, r] = q(), { pages: o } = oe(), { highlightKeywords: i } = go(), c = !0, l = k(null), [d, f] = q(null), [m, P] = q([]);
1023
1025
  D(() => {
1024
1026
  l.current && f(l.current.parentElement);
@@ -1176,7 +1178,7 @@ const Mr = (t) => {
1176
1178
  }, [c, i, t, n, e]), /* @__PURE__ */ a(pe, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((g, h) => /* @__PURE__ */ a(
1177
1179
  "div",
1178
1180
  {
1179
- className: kr["rp-text-highlight"],
1181
+ className: Wr["rp-text-highlight"],
1180
1182
  style: {
1181
1183
  top: `${g.top}%`,
1182
1184
  left: `${g.left}%`,
@@ -1244,9 +1246,9 @@ const Mr = (t) => {
1244
1246
  /* @__PURE__ */ a(Or, { onLoading: y, onLoaded: g, pageNumber: n }),
1245
1247
  m && /* @__PURE__ */ a("div", { className: st["rp-loader-wrapper"], children: /* @__PURE__ */ a(_t, {}) }),
1246
1248
  /* @__PURE__ */ a(Qo, { pageNumber: n }),
1247
- l && /* @__PURE__ */ a(Ar, { pageNumber: n }),
1248
- /* @__PURE__ */ a(Wr, { pageNumber: n, viewport: v }),
1249
- /* @__PURE__ */ a(Mr, { pageNumber: n })
1249
+ l && /* @__PURE__ */ a(zr, { pageNumber: n }),
1250
+ /* @__PURE__ */ a(Hr, { pageNumber: n, viewport: v }),
1251
+ /* @__PURE__ */ a(kr, { pageNumber: n })
1250
1252
  ]
1251
1253
  }
1252
1254
  )
@@ -1273,25 +1275,25 @@ function mt(t, e) {
1273
1275
  return n.__proto__ = r, n;
1274
1276
  }, mt(t, e);
1275
1277
  }
1276
- function Hr(t, e) {
1278
+ function $r(t, e) {
1277
1279
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, mt(t, e);
1278
1280
  }
1279
1281
  var Wt = Number.isNaN || function(e) {
1280
1282
  return typeof e == "number" && e !== e;
1281
1283
  };
1282
- function $r(t, e) {
1284
+ function qr(t, e) {
1283
1285
  return !!(t === e || Wt(t) && Wt(e));
1284
1286
  }
1285
- function qr(t, e) {
1287
+ function Gr(t, e) {
1286
1288
  if (t.length !== e.length)
1287
1289
  return !1;
1288
1290
  for (var n = 0; n < t.length; n++)
1289
- if (!$r(t[n], e[n]))
1291
+ if (!qr(t[n], e[n]))
1290
1292
  return !1;
1291
1293
  return !0;
1292
1294
  }
1293
1295
  function ct(t, e) {
1294
- e === void 0 && (e = qr);
1296
+ e === void 0 && (e = Gr);
1295
1297
  var n, r = [], o, i = !1;
1296
1298
  function c() {
1297
1299
  for (var l = [], d = 0; d < arguments.length; d++)
@@ -1312,7 +1314,7 @@ function Ht(t, e) {
1312
1314
  }
1313
1315
  return n;
1314
1316
  }
1315
- var Gr = typeof performance == "object" && typeof performance.now == "function", $t = Gr ? function() {
1317
+ var Ur = typeof performance == "object" && typeof performance.now == "function", $t = Ur ? function() {
1316
1318
  return performance.now();
1317
1319
  } : function() {
1318
1320
  return Date.now();
@@ -1320,7 +1322,7 @@ var Gr = typeof performance == "object" && typeof performance.now == "function",
1320
1322
  function qt(t) {
1321
1323
  cancelAnimationFrame(t.id);
1322
1324
  }
1323
- function Ur(t, e) {
1325
+ function Vr(t, e) {
1324
1326
  var n = $t();
1325
1327
  function r() {
1326
1328
  $t() - n >= e ? t.call(null) : o.id = requestAnimationFrame(r);
@@ -1331,7 +1333,7 @@ function Ur(t, e) {
1331
1333
  return o;
1332
1334
  }
1333
1335
  var lt = -1;
1334
- function Vr(t) {
1336
+ function jr(t) {
1335
1337
  if (t === void 0 && (t = !1), lt === -1 || t) {
1336
1338
  var e = document.createElement("div"), n = e.style;
1337
1339
  n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), lt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
@@ -1348,17 +1350,17 @@ function Gt(t) {
1348
1350
  }
1349
1351
  return De;
1350
1352
  }
1351
- var jr = 150, Br = function(e) {
1353
+ var Br = 150, Kr = function(e) {
1352
1354
  var n = e.columnIndex;
1353
1355
  e.data;
1354
1356
  var r = e.rowIndex;
1355
1357
  return r + ":" + n;
1356
1358
  }, je = null, Be = null, Ke = null;
1357
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
- function Kr(t) {
1360
+ function Zr(t) {
1359
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;
1360
1362
  return e = /* @__PURE__ */ function(y) {
1361
- Hr(g, y);
1363
+ $r(g, y);
1362
1364
  function g(u) {
1363
1365
  var s;
1364
1366
  return s = y.call(this, u) || this, s._instanceProps = b(s.props, kt(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
@@ -1436,7 +1438,7 @@ function Kr(t) {
1436
1438
  var w = s.props.outerRef;
1437
1439
  s._outerRef = _, typeof w == "function" ? w(_) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = _);
1438
1440
  }, s._resetIsScrollingDebounced = function() {
1439
- s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Ur(s._resetIsScrolling, jr);
1441
+ s._resetIsScrollingTimeoutId !== null && qt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Vr(s._resetIsScrolling, Br);
1440
1442
  }, s._resetIsScrolling = function() {
1441
1443
  s._resetIsScrollingTimeoutId = null, s.setState({
1442
1444
  isScrolling: !1
@@ -1446,7 +1448,7 @@ function Kr(t) {
1446
1448
  }, s;
1447
1449
  }
1448
1450
  g.getDerivedStateFromProps = function(s, _) {
1449
- return Zr(s, _), T(s), null;
1451
+ return Xr(s, _), T(s), null;
1450
1452
  };
1451
1453
  var h = g.prototype;
1452
1454
  return h.scrollTo = function(s) {
@@ -1461,7 +1463,7 @@ function Kr(t) {
1461
1463
  };
1462
1464
  }, this._resetIsScrollingDebounced);
1463
1465
  }, h.scrollToItem = function(s) {
1464
- var _ = s.align, w = _ === void 0 ? "auto" : _, S = s.columnIndex, R = s.rowIndex, I = this.props, x = I.columnCount, N = I.height, A = I.rowCount, z = I.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, H = Vr();
1466
+ var _ = s.align, w = _ === void 0 ? "auto" : _, S = s.columnIndex, R = s.rowIndex, I = this.props, x = I.columnCount, N = I.height, A = I.rowCount, z = I.width, L = this.state, O = L.scrollLeft, F = L.scrollTop, H = jr();
1465
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)));
1466
1468
  var M = c(this.props, this._instanceProps), j = l(this.props, this._instanceProps), K = j > z ? H : 0, U = M > N ? H : 0;
1467
1469
  this.scrollTo({
@@ -1500,7 +1502,7 @@ function Kr(t) {
1500
1502
  }, h.componentWillUnmount = function() {
1501
1503
  this._resetIsScrollingTimeoutId !== null && qt(this._resetIsScrollingTimeoutId);
1502
1504
  }, h.render = function() {
1503
- 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 ? Br : L, F = s.outerElementType, H = s.outerTagName, M = s.rowCount, j = s.style, K = s.useIsScrolling, U = s.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], ae = [];
1505
+ var s = this.props, _ = s.children, w = s.className, S = s.columnCount, R = s.direction, I = s.height, x = s.innerRef, N = s.innerElementType, A = s.innerTagName, z = s.itemData, L = s.itemKey, O = L === void 0 ? Kr : L, F = s.outerElementType, H = s.outerTagName, M = s.rowCount, j = s.style, K = s.useIsScrolling, U = s.width, re = this.state.isScrolling, G = this._getHorizontalRangeToRender(), Z = G[0], Y = G[1], J = this._getVerticalRangeToRender(), ee = J[0], ie = J[1], ae = [];
1504
1506
  if (S > 0 && M)
1505
1507
  for (var Pe = ee; Pe <= ie; Pe++)
1506
1508
  for (var fe = Z; fe <= Y; fe++)
@@ -1568,7 +1570,7 @@ function Kr(t) {
1568
1570
  useIsScrolling: !1
1569
1571
  }, e;
1570
1572
  }
1571
- var Zr = function(e, n) {
1573
+ var Xr = function(e, n) {
1572
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;
1573
1575
  if (process.env.NODE_ENV !== "production") {
1574
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)
@@ -1623,7 +1625,7 @@ var Zr = function(e, n) {
1623
1625
  var i, c;
1624
1626
  e === "column" ? (i = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
1625
1627
  var l = c > 0 ? i[c].offset : 0;
1626
- return l >= o ? Sn(e, n, r, c, 0, o) : Xr(e, n, r, Math.max(0, c), o);
1628
+ return l >= o ? Sn(e, n, r, c, 0, o) : Qr(e, n, r, Math.max(0, c), o);
1627
1629
  }, Sn = function(e, n, r, o, i, c) {
1628
1630
  for (; i <= o; ) {
1629
1631
  var l = i + Math.floor((o - i) / 2), d = ge(e, n, l, r).offset;
@@ -1632,7 +1634,7 @@ var Zr = function(e, n) {
1632
1634
  d < c ? i = l + 1 : d > c && (o = l - 1);
1633
1635
  }
1634
1636
  return i > 0 ? i - 1 : 0;
1635
- }, Xr = function(e, n, r, o, i) {
1637
+ }, Qr = function(e, n, r, o, i) {
1636
1638
  for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; o < c && ge(e, n, o, r).offset < i; )
1637
1639
  o += l, l *= 2;
1638
1640
  return Sn(e, n, r, Math.min(o, c - 1), Math.floor(o / 2), i);
@@ -1649,7 +1651,7 @@ var Zr = function(e, n) {
1649
1651
  default:
1650
1652
  return i >= p && i <= P ? i : p > P || i < p ? p : P;
1651
1653
  }
1652
- }, Qr = /* @__PURE__ */ Kr({
1654
+ }, Yr = /* @__PURE__ */ Zr({
1653
1655
  getColumnOffset: function(e, n, r) {
1654
1656
  return ge("column", e, n, r).offset;
1655
1657
  },
@@ -1731,12 +1733,12 @@ function Bt(t, e) {
1731
1733
  return !0;
1732
1734
  return !1;
1733
1735
  }
1734
- var Yr = ["style"], Jr = ["style"];
1735
- function ei(t, e) {
1736
- var n = t.style, r = Ht(t, Yr), o = e.style, i = Ht(e, Jr);
1736
+ var Jr = ["style"], ei = ["style"];
1737
+ function ti(t, e) {
1738
+ var n = t.style, r = Ht(t, Jr), o = e.style, i = Ht(e, ei);
1737
1739
  return !Bt(n, o) && !Bt(r, i);
1738
1740
  }
1739
- const ti = () => {
1741
+ const ni = () => {
1740
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) => {
1741
1743
  const y = T % c;
1742
1744
  return (!b[y] || C > b[y]) && (b[y] = C), b;
@@ -1786,7 +1788,7 @@ ut == null || Xt == null ? (gt = dt, vt = function(e) {
1786
1788
  }, Kt);
1787
1789
  return [n, r];
1788
1790
  });
1789
- function ni(t) {
1791
+ function oi(t) {
1790
1792
  let e, n, r, o, i, c, l;
1791
1793
  const d = typeof document < "u" && document.attachEvent;
1792
1794
  if (!d) {
@@ -1858,7 +1860,7 @@ function ni(t) {
1858
1860
  }
1859
1861
  };
1860
1862
  }
1861
- class oi extends no {
1863
+ class ri extends no {
1862
1864
  constructor(...e) {
1863
1865
  super(...e), this.state = {
1864
1866
  height: this.props.defaultHeight || 0,
@@ -1899,7 +1901,7 @@ class oi extends no {
1899
1901
  const r = n.ownerDocument.defaultView.ResizeObserver;
1900
1902
  r != null ? (this._resizeObserver = new r(() => {
1901
1903
  this._timeoutId = setTimeout(this._onResize, 0);
1902
- }), this._resizeObserver.observe(n)) : (this._detectElementResize = ni(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1904
+ }), this._resizeObserver.observe(n)) : (this._detectElementResize = oi(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
1903
1905
  }
1904
1906
  }
1905
1907
  componentWillUnmount() {
@@ -1937,7 +1939,7 @@ class oi extends no {
1937
1939
  }, !g && e(y));
1938
1940
  }
1939
1941
  }
1940
- const ri = nn(({ widths: t, heights: e }) => {
1942
+ const ii = nn(({ widths: t, heights: e }) => {
1941
1943
  const { focusedPage: n, totalPages: r } = le(), o = W(() => {
1942
1944
  const l = [], d = Math.ceil(n / 2) * 2 - 1;
1943
1945
  if (l.push(d), d + 1 <= r) {
@@ -1963,7 +1965,7 @@ const ri = nn(({ widths: t, heights: e }) => {
1963
1965
  ];
1964
1966
  }, [t, e, o]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
1965
1967
  return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: o.map((l, d) => /* @__PURE__ */ a(yt, { style: i[d], pageNumber: l }, l)) });
1966
- }), ii = ({ widths: t, heights: e }) => {
1968
+ }), ai = ({ widths: t, heights: e }) => {
1967
1969
  const { focusedPage: n } = le(), r = W(() => ({
1968
1970
  position: "absolute",
1969
1971
  width: t(n - 1),
@@ -1979,7 +1981,7 @@ const ri = nn(({ widths: t, heights: e }) => {
1979
1981
  children: /* @__PURE__ */ a(yt, { style: r, pageNumber: n }, n)
1980
1982
  }
1981
1983
  );
1982
- }, ai = (t, e, n) => {
1984
+ }, si = (t, e, n) => {
1983
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) => {
1984
1986
  const T = c[C], y = nr(C + 1, t), g = T * y.columnIndex, h = b * y.rowIndex, u = g + T, s = h + b;
1985
1987
  return {
@@ -2050,10 +2052,10 @@ const ri = nn(({ widths: t, heights: e }) => {
2050
2052
  children: n
2051
2053
  }
2052
2054
  );
2053
- }), si = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2055
+ }), ci = nn(({ columnIndex: t, rowIndex: e, data: n, style: r }) => {
2054
2056
  const o = or(e, t, n.columnCount);
2055
2057
  return /* @__PURE__ */ a(yt, { style: r, pageNumber: o }, o);
2056
- }, ei), Zs = () => {
2058
+ }, ti), Xs = () => {
2057
2059
  const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = lo(), { pagesRef: r, setPagesRef: o, setContentRef: i } = _e(), { scrollToPage: c } = mn(), {
2058
2060
  virtualScrollRef: l,
2059
2061
  getVirtualScrollRef: d,
@@ -2076,8 +2078,8 @@ const ri = nn(({ widths: t, heights: e }) => {
2076
2078
  columnWidth: j,
2077
2079
  estimatedColumnWidth: K,
2078
2080
  estimatedRowHeight: U
2079
- } = ti(), re = bt(v, 100), G = k();
2080
- ai(M, F, p);
2081
+ } = ni(), re = bt(v, 100), G = k();
2082
+ si(M, F, p);
2081
2083
  const Z = k({
2082
2084
  scrollTop: 0,
2083
2085
  scrollLeft: 0
@@ -2211,16 +2213,16 @@ const ri = nn(({ widths: t, heights: e }) => {
2211
2213
  ref: o,
2212
2214
  tabIndex: -1,
2213
2215
  className: Zn,
2214
- children: /* @__PURE__ */ a(oi, { 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(ri, { style: { minHeight: "50px" }, children: ({ width: V, height: B }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: Xn, style: { width: V, height: B }, children: u === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
2215
2217
  "div",
2216
2218
  {
2217
2219
  ref: f,
2218
2220
  style: { width: V, height: B },
2219
2221
  className: se(ue["rp-pages"], ue["rp-page-scrolling-wrapper"]),
2220
- children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ri, { widths: j, heights: H }) : /* @__PURE__ */ a(ii, { widths: j, heights: H })
2222
+ children: s === Re.DUAL_PAGE ? /* @__PURE__ */ a(ii, { widths: j, heights: H }) : /* @__PURE__ */ a(ai, { widths: j, heights: H })
2221
2223
  }
2222
2224
  ) : U ? /* @__PURE__ */ a(
2223
- Qr,
2225
+ Yr,
2224
2226
  {
2225
2227
  ref: d,
2226
2228
  itemData: Pe,
@@ -2245,7 +2247,7 @@ const ri = nn(({ widths: t, heights: e }) => {
2245
2247
  "--rp-row-count": `${F}`,
2246
2248
  "--rp-column-count": `${M}`
2247
2249
  },
2248
- children: si
2250
+ children: ci
2249
2251
  }
2250
2252
  ) : !w && !S ? /* @__PURE__ */ a(
2251
2253
  "div",
@@ -2275,13 +2277,13 @@ const ri = nn(({ widths: t, heights: e }) => {
2275
2277
  "rp-paginate": "_rp-paginate_1gck0_1",
2276
2278
  "rp-page-input": "_rp-page-input_1gck0_6",
2277
2279
  "rp-total-page": "_rp-total-page_1gck0_18"
2278
- }, ci = () => {
2280
+ }, li = () => {
2279
2281
  const { prevIcon: t } = Ce(), { prevIcon: e } = be();
2280
2282
  return t || e || /* @__PURE__ */ a(Ze, {});
2281
- }, li = () => {
2283
+ }, di = () => {
2282
2284
  const { nextIcon: t } = Ce(), { nextIcon: e } = be();
2283
2285
  return t || e || /* @__PURE__ */ a(Ze, { style: { transform: "rotate(180deg" } });
2284
- }, di = () => {
2286
+ }, ui = () => {
2285
2287
  const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: i } = le(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Te(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = Fe(), { scrollMode: p } = Ee(), { localeMessages: v } = he();
2286
2288
  D(() => {
2287
2289
  l(t.toString());
@@ -2327,7 +2329,7 @@ const ri = nn(({ widths: t, heights: e }) => {
2327
2329
  onClick: o,
2328
2330
  "aria-label": v == null ? void 0 : v.previousPageTooltip,
2329
2331
  "aria-disabled": t === 1,
2330
- children: /* @__PURE__ */ a(ci, {})
2332
+ children: /* @__PURE__ */ a(li, {})
2331
2333
  }
2332
2334
  ) }),
2333
2335
  /* @__PURE__ */ a(Q, { content: v == null ? void 0 : v.currentPageTooltip, children: /* @__PURE__ */ a(
@@ -2352,12 +2354,12 @@ const ri = nn(({ widths: t, heights: e }) => {
2352
2354
  onClick: r,
2353
2355
  "aria-label": v == null ? void 0 : v.nextPageTooltip,
2354
2356
  "aria-disabled": g,
2355
- children: /* @__PURE__ */ a(li, {})
2357
+ children: /* @__PURE__ */ a(di, {})
2356
2358
  }
2357
2359
  ) })
2358
2360
  ] });
2359
2361
  };
2360
- var St = "Dialog", [xn, Xs] = lr(St), [ui, de] = xn(St), Rn = (t) => {
2362
+ var St = "Dialog", [xn, Qs] = lr(St), [pi, de] = xn(St), Rn = (t) => {
2361
2363
  const {
2362
2364
  __scopeDialog: e,
2363
2365
  children: n,
@@ -2371,7 +2373,7 @@ var St = "Dialog", [xn, Xs] = lr(St), [ui, de] = xn(St), Rn = (t) => {
2371
2373
  onChange: i
2372
2374
  });
2373
2375
  return /* @__PURE__ */ a(
2374
- ui,
2376
+ pi,
2375
2377
  {
2376
2378
  scope: e,
2377
2379
  triggerRef: l,
@@ -2388,7 +2390,7 @@ var St = "Dialog", [xn, Xs] = lr(St), [ui, de] = xn(St), Rn = (t) => {
2388
2390
  );
2389
2391
  };
2390
2392
  Rn.displayName = St;
2391
- var Ln = "DialogTrigger", pi = X.forwardRef(
2393
+ var Ln = "DialogTrigger", hi = X.forwardRef(
2392
2394
  (t, e) => {
2393
2395
  const { __scopeDialog: n, ...r } = t, o = de(Ln, n), i = Tt(e, o.triggerRef);
2394
2396
  return /* @__PURE__ */ a(
@@ -2406,22 +2408,22 @@ var Ln = "DialogTrigger", pi = X.forwardRef(
2406
2408
  );
2407
2409
  }
2408
2410
  );
2409
- pi.displayName = Ln;
2410
- var It = "DialogPortal", [hi, En] = xn(It, {
2411
+ hi.displayName = Ln;
2412
+ var It = "DialogPortal", [fi, En] = xn(It, {
2411
2413
  forceMount: void 0
2412
2414
  }), Nn = (t) => {
2413
2415
  const { __scopeDialog: e, forceMount: n, children: r, container: o } = t, i = de(It, e);
2414
- return /* @__PURE__ */ a(hi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(wr, { asChild: !0, container: o, children: c }) })) });
2416
+ return /* @__PURE__ */ a(fi, { scope: e, forceMount: n, children: X.Children.map(r, (c) => /* @__PURE__ */ a(Ct, { present: n || i.open, children: /* @__PURE__ */ a(wr, { asChild: !0, container: o, children: c }) })) });
2415
2417
  };
2416
2418
  Nn.displayName = It;
2417
2419
  var Qe = "DialogOverlay", On = X.forwardRef(
2418
2420
  (t, e) => {
2419
2421
  const n = En(Qe, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Qe, t.__scopeDialog);
2420
- return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(fi, { ...o, ref: e }) }) : null;
2422
+ return i.modal ? /* @__PURE__ */ a(Ct, { present: r || i.open, children: /* @__PURE__ */ a(mi, { ...o, ref: e }) }) : null;
2421
2423
  }
2422
2424
  );
2423
2425
  On.displayName = Qe;
2424
- var fi = X.forwardRef(
2426
+ var mi = X.forwardRef(
2425
2427
  (t, e) => {
2426
2428
  const { __scopeDialog: n, ...r } = t, o = de(Qe, n);
2427
2429
  return (
@@ -2441,11 +2443,11 @@ var fi = X.forwardRef(
2441
2443
  ), Le = "DialogContent", Dn = X.forwardRef(
2442
2444
  (t, e) => {
2443
2445
  const n = En(Le, t.__scopeDialog), { forceMount: r = n.forceMount, ...o } = t, i = de(Le, t.__scopeDialog);
2444
- return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(mi, { ...o, ref: e }) : /* @__PURE__ */ a(gi, { ...o, ref: e }) });
2446
+ return /* @__PURE__ */ a(Ct, { present: r || i.open, children: i.modal ? /* @__PURE__ */ a(gi, { ...o, ref: e }) : /* @__PURE__ */ a(vi, { ...o, ref: e }) });
2445
2447
  }
2446
2448
  );
2447
2449
  Dn.displayName = Le;
2448
- var mi = X.forwardRef(
2450
+ var gi = X.forwardRef(
2449
2451
  (t, e) => {
2450
2452
  const n = de(Le, t.__scopeDialog), r = X.useRef(null), o = Tt(e, n.contentRef, r);
2451
2453
  return X.useEffect(() => {
@@ -2474,7 +2476,7 @@ var mi = X.forwardRef(
2474
2476
  }
2475
2477
  );
2476
2478
  }
2477
- ), gi = X.forwardRef(
2479
+ ), vi = X.forwardRef(
2478
2480
  (t, e) => {
2479
2481
  const n = de(Le, t.__scopeDialog), r = X.useRef(!1), o = X.useRef(!1);
2480
2482
  return /* @__PURE__ */ a(
@@ -2525,8 +2527,8 @@ var mi = X.forwardRef(
2525
2527
  }
2526
2528
  ),
2527
2529
  /* @__PURE__ */ $(pe, { children: [
2528
- /* @__PURE__ */ a(wi, { titleId: l.titleId }),
2529
- /* @__PURE__ */ a(bi, { contentRef: d, descriptionId: l.descriptionId })
2530
+ /* @__PURE__ */ a(_i, { titleId: l.titleId }),
2531
+ /* @__PURE__ */ a(Ti, { contentRef: d, descriptionId: l.descriptionId })
2530
2532
  ] })
2531
2533
  ] });
2532
2534
  }
@@ -2537,13 +2539,13 @@ var mi = X.forwardRef(
2537
2539
  }
2538
2540
  );
2539
2541
  zn.displayName = xt;
2540
- var Fn = "DialogDescription", vi = X.forwardRef(
2542
+ var Fn = "DialogDescription", wi = X.forwardRef(
2541
2543
  (t, e) => {
2542
2544
  const { __scopeDialog: n, ...r } = t, o = de(Fn, n);
2543
2545
  return /* @__PURE__ */ a(Ge.p, { id: o.descriptionId, ...r, ref: e });
2544
2546
  }
2545
2547
  );
2546
- vi.displayName = Fn;
2548
+ wi.displayName = Fn;
2547
2549
  var Mn = "DialogClose", kn = X.forwardRef(
2548
2550
  (t, e) => {
2549
2551
  const { __scopeDialog: n, ...r } = t, o = de(Mn, n);
@@ -2562,11 +2564,11 @@ kn.displayName = Mn;
2562
2564
  function Rt(t) {
2563
2565
  return t ? "open" : "closed";
2564
2566
  }
2565
- var Wn = "DialogTitleWarning", [Qs, Hn] = ur(Wn, {
2567
+ var Wn = "DialogTitleWarning", [Ys, Hn] = ur(Wn, {
2566
2568
  contentName: Le,
2567
2569
  titleName: xt,
2568
2570
  docsSlug: "dialog"
2569
- }), wi = ({ titleId: t }) => {
2571
+ }), _i = ({ titleId: t }) => {
2570
2572
  const e = Hn(Wn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
2571
2573
 
2572
2574
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -2575,14 +2577,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
2575
2577
  return X.useEffect(() => {
2576
2578
  t && (document.getElementById(t) || console.error(n));
2577
2579
  }, [n, t]), null;
2578
- }, _i = "DialogDescriptionWarning", bi = ({ contentRef: t, descriptionId: e }) => {
2579
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(_i).contentName}}.`;
2580
+ }, bi = "DialogDescriptionWarning", Ti = ({ contentRef: t, descriptionId: e }) => {
2581
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hn(bi).contentName}}.`;
2580
2582
  return X.useEffect(() => {
2581
2583
  var i;
2582
2584
  const o = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
2583
2585
  e && o && (document.getElementById(e) || console.warn(r));
2584
2586
  }, [r, t, e]), null;
2585
- }, Ti = Rn, Ci = Nn, Pi = On, yi = Dn, Si = zn, Ii = kn;
2587
+ }, Ci = Rn, Pi = Nn, yi = On, Si = Dn, Ii = zn, xi = kn;
2586
2588
  const xe = {
2587
2589
  "rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
2588
2590
  "rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
@@ -2591,7 +2593,7 @@ const xe = {
2591
2593
  "rp-dialog-title": "_rp-dialog-title_slqo7_39",
2592
2594
  "rp-dialog-close": "_rp-dialog-close_slqo7_47",
2593
2595
  "rp-properties-divider": "_rp-properties-divider_slqo7_55"
2594
- }, xi = () => {
2596
+ }, Ri = () => {
2595
2597
  const { pdfProperties: t } = oe(), { container: e } = _e(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = To(), { localeMessages: o } = he(), i = W(() => {
2596
2598
  if (!t)
2597
2599
  return [];
@@ -2632,19 +2634,19 @@ const xe = {
2632
2634
  { label: o == null ? void 0 : o.propertiesPageCountLabel, value: y }
2633
2635
  ];
2634
2636
  }, [t, o]);
2635
- return /* @__PURE__ */ a(Ti, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(Ci, { container: e, children: /* @__PURE__ */ $("div", { className: xe["rp-dialog-wrapper"], children: [
2636
- /* @__PURE__ */ a(Pi, { className: xe["rp-dialog-overlay"] }),
2637
- /* @__PURE__ */ $(yi, { className: xe["rp-document-dialog"], children: [
2638
- /* @__PURE__ */ a(Si, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2637
+ return /* @__PURE__ */ a(Ci, { open: n, onOpenChange: r, children: /* @__PURE__ */ a(Pi, { container: e, children: /* @__PURE__ */ $("div", { className: xe["rp-dialog-wrapper"], children: [
2638
+ /* @__PURE__ */ a(yi, { className: xe["rp-dialog-overlay"] }),
2639
+ /* @__PURE__ */ $(Si, { className: xe["rp-document-dialog"], children: [
2640
+ /* @__PURE__ */ a(Ii, { className: xe["rp-dialog-title"], children: o == null ? void 0 : o.documentPropertiesLabel }),
2639
2641
  /* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(Do, { label: c.label, value: c.value }) }, l)) }),
2640
- /* @__PURE__ */ a(Ii, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(_r, {}) })
2642
+ /* @__PURE__ */ a(xi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(_r, {}) })
2641
2643
  ] })
2642
2644
  ] }) }) });
2643
- }, Ri = {
2645
+ }, Li = {
2644
2646
  "rp-other-tool-content": "_rp-other-tool-content_su718_1"
2645
- }, Qt = ".pdf", Li = (t) => URL.createObjectURL(t), Ei = async (t) => {
2647
+ }, Qt = ".pdf", Ei = (t) => URL.createObjectURL(t), Ni = async (t) => {
2646
2648
  const n = await (await fetch(t)).blob();
2647
- return Li(n);
2649
+ return Ei(n);
2648
2650
  }, $n = () => {
2649
2651
  const { filename: t, pdfSrc: e } = oe(), { downloadFilename: n } = vo(), r = (i) => {
2650
2652
  const c = n || i;
@@ -2654,26 +2656,26 @@ const xe = {
2654
2656
  if (!t || !e)
2655
2657
  throw new Error("There is no PDF source to download");
2656
2658
  const i = document.createElement("a");
2657
- i.href = await Ei(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2659
+ i.href = await Ni(e), i.download = r(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
2658
2660
  }, [t, e]) };
2659
2661
  }, qn = () => {
2660
2662
  const { downloadIcon: t } = Ce(), { downloadIcon: e } = be();
2661
2663
  return t || e || /* @__PURE__ */ a(Pr, {});
2662
- }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Ni = ({ 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, {}) }) }), Oi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2664
+ }, Gn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Oi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Gn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(qn, {}) }) }), Di = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(Gn, { className: "rp-menu-item", localeMessages: e, children: [
2663
2665
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qn, {}) }),
2664
2666
  e == null ? void 0 : e.downloadFileLabel
2665
2667
  ] }) }), Un = () => {
2666
2668
  const { download: t } = $n(), { downloadTool: e = !0 } = Te(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: r } = Oe(), { localeMessages: o } = he(), i = o == null ? void 0 : o.downloadFileTooltip;
2667
- return !e || !n ? null : r ? /* @__PURE__ */ a(Oi, { 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(Ni, { download: t, localeMessages: o });
2669
+ return !e || !n ? null : r ? /* @__PURE__ */ a(Di, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Oi, { download: t, localeMessages: o });
2668
2670
  }, Vn = () => {
2669
2671
  const { printIcon: t } = Ce(), { printIcon: e } = be();
2670
2672
  return t || e || /* @__PURE__ */ a(yr, {});
2671
- }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Di = ({ 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, {}) }) }), Ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(jn, { className: "rp-menu-item", localeMessages: e, children: [
2673
+ }, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Ai = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(jn, { localeMessages: e, children: /* @__PURE__ */ a(ve, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), zi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Xe, { onClick: t, children: /* @__PURE__ */ $(jn, { className: "rp-menu-item", localeMessages: e, children: [
2672
2674
  /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
2673
2675
  e == null ? void 0 : e.printLabel
2674
2676
  ] }) }), Bn = () => {
2675
2677
  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;
2676
- return !c || !l ? null : d ? /* @__PURE__ */ a(Ai, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2678
+ return !c || !l ? null : d ? /* @__PURE__ */ a(zi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
2677
2679
  c,
2678
2680
  {
2679
2681
  print: t,
@@ -2693,16 +2695,16 @@ const xe = {
2693
2695
  setOnComplete: r,
2694
2696
  progress: i
2695
2697
  }
2696
- ) }) : /* @__PURE__ */ a(Di, { print: t, localeMessages: f });
2697
- }, zi = {
2698
+ ) }) : /* @__PURE__ */ a(Ai, { print: t, localeMessages: f });
2699
+ }, Fi = {
2698
2700
  "rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
2699
- }, Fi = () => {
2700
- const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2701
- return t || e || /* @__PURE__ */ a(hn, { className: zi["rp-go-to-Top"] });
2702
2701
  }, Mi = () => {
2702
+ const { goToFirstPageIcon: t } = Ce(), { goToFirstPageIcon: e } = be();
2703
+ return t || e || /* @__PURE__ */ a(hn, { className: Fi["rp-go-to-Top"] });
2704
+ }, ki = () => {
2703
2705
  const { goToLastPageIcon: t } = Ce(), { goToLastPageIcon: e } = be();
2704
2706
  return t || e || /* @__PURE__ */ a(hn, {});
2705
- }, Yt = { width: "100%" }, ki = () => {
2707
+ }, Yt = { width: "100%" }, Wi = () => {
2706
2708
  const { goToPage: t, totalPages: e, focusedPage: n } = le(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = Ne(), { localeMessages: i } = he(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
2707
2709
  t(1);
2708
2710
  }, [t]), f = E(() => {
@@ -2710,16 +2712,16 @@ const xe = {
2710
2712
  }, [t, e]);
2711
2713
  return !r || !o ? null : /* @__PURE__ */ $(un, { children: [
2712
2714
  /* @__PURE__ */ a(Xe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: Yt, children: /* @__PURE__ */ $("div", { className: "rp-menu-item", "aria-disabled": c, children: [
2713
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Fi, {}) }),
2715
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Mi, {}) }),
2714
2716
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
2715
2717
  ] }) }) }),
2716
2718
  /* @__PURE__ */ a(Xe, { onClick: f, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.lastPageTooltip, style: Yt, children: /* @__PURE__ */ $("div", { className: "rp-menu-item", "aria-disabled": l, children: [
2717
- /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Mi, {}) }),
2719
+ /* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ki, {}) }),
2718
2720
  /* @__PURE__ */ a("span", { children: i == null ? void 0 : i.lastPageLabel })
2719
2721
  ] }) }) }),
2720
2722
  /* @__PURE__ */ a(ln, {})
2721
2723
  ] });
2722
- }, Wi = () => {
2724
+ }, Hi = () => {
2723
2725
  const [t, e] = q(!1), { container: n, pagesRef: r } = _e(), { isSmallScreen: o } = Oe(), {
2724
2726
  openFileTool: i,
2725
2727
  downloadTool: c,
@@ -2784,7 +2786,7 @@ const xe = {
2784
2786
  "div",
2785
2787
  {
2786
2788
  style: { maxHeight: `${I}px`, overflow: "auto" },
2787
- className: Ri["rp-other-tool-content"],
2789
+ className: Li["rp-other-tool-content"],
2788
2790
  "data-rp": "moreOptionsDropdown",
2789
2791
  children: [
2790
2792
  o && /* @__PURE__ */ $(un, { children: [
@@ -2794,7 +2796,7 @@ const xe = {
2794
2796
  /* @__PURE__ */ a(pn, {}),
2795
2797
  /* @__PURE__ */ a(ln, {})
2796
2798
  ] }),
2797
- /* @__PURE__ */ a(ki, {}),
2799
+ /* @__PURE__ */ a(Wi, {}),
2798
2800
  /* @__PURE__ */ a(Ao, {}),
2799
2801
  /* @__PURE__ */ a(Sr, {}),
2800
2802
  /* @__PURE__ */ a(Tr, {}),
@@ -2805,9 +2807,9 @@ const xe = {
2805
2807
  )
2806
2808
  }
2807
2809
  ),
2808
- /* @__PURE__ */ a(xi, {})
2810
+ /* @__PURE__ */ a(Ri, {})
2809
2811
  ] });
2810
- }, Hi = () => {
2812
+ }, $i = () => {
2811
2813
  const { isSmallScreen: t } = Oe();
2812
2814
  return /* @__PURE__ */ $(pe, { children: [
2813
2815
  /* @__PURE__ */ a(sr, {}),
@@ -2817,7 +2819,7 @@ const xe = {
2817
2819
  /* @__PURE__ */ a(Bn, {}),
2818
2820
  /* @__PURE__ */ a(pn, {})
2819
2821
  ] }),
2820
- /* @__PURE__ */ a(Wi, {})
2822
+ /* @__PURE__ */ a(Hi, {})
2821
2823
  ] });
2822
2824
  }, Jt = () => {
2823
2825
  const { totalMatches: t, nextMatch: e, prevMatch: n } = Pt(), { localeMessages: r } = he();
@@ -2852,10 +2854,10 @@ const xe = {
2852
2854
  }
2853
2855
  )
2854
2856
  ] });
2855
- }, $i = () => {
2857
+ }, qi = () => {
2856
2858
  const { searchIcon: t } = Ce(), { searchIcon: e } = be();
2857
2859
  return t || e || /* @__PURE__ */ a(fn, {});
2858
- }, qi = ({ icon: t }) => {
2860
+ }, Gi = ({ icon: t }) => {
2859
2861
  const { container: e } = _e(), [n, r] = q(!1), { pdf: o } = oe(), [i, c] = q(null), {
2860
2862
  searchOptions: l,
2861
2863
  setSearchOptions: d,
@@ -2954,7 +2956,7 @@ const xe = {
2954
2956
  active: n,
2955
2957
  onClick: I,
2956
2958
  "aria-label": u == null ? void 0 : u.searchButtonTooltip,
2957
- children: t || /* @__PURE__ */ a($i, {})
2959
+ children: t || /* @__PURE__ */ a(qi, {})
2958
2960
  }
2959
2961
  ) }),
2960
2962
  children: /* @__PURE__ */ $(
@@ -3021,15 +3023,15 @@ const xe = {
3021
3023
  )
3022
3024
  }
3023
3025
  ) });
3024
- }, Gi = "_loading_wazy2_1", Ae = {
3026
+ }, Ui = "_loading_wazy2_1", Ae = {
3025
3027
  "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
3026
3028
  "rp-loading-modal": "_rp-loading-modal_wazy2_14",
3027
3029
  "rp-loading-title": "_rp-loading-title_wazy2_27",
3028
3030
  "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
3029
3031
  "rp-loading-progress": "_rp-loading-progress_wazy2_35",
3030
3032
  "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
3031
- loading: Gi
3032
- }, Ui = ({ percentage: t }) => {
3033
+ loading: Ui
3034
+ }, Vi = ({ percentage: t }) => {
3033
3035
  const { cancel: e } = tt(), { localeMessages: n } = he();
3034
3036
  return t < 1 ? null : /* @__PURE__ */ a("div", { className: se(Ae["rp-loading-overlay"]), children: /* @__PURE__ */ $("div", { className: se(Ae["rp-loading-modal"]), children: [
3035
3037
  /* @__PURE__ */ $("div", { className: se(Ae["rp-loading-title"]), children: [
@@ -3045,19 +3047,19 @@ const xe = {
3045
3047
  ) }),
3046
3048
  /* @__PURE__ */ a("button", { className: se(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
3047
3049
  ] }) });
3048
- }, Vi = et((t, e) => {
3050
+ }, ji = et((t, e) => {
3049
3051
  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 = () => {
3050
3052
  if (!(!n || !r || !c))
3051
- return /* @__PURE__ */ a(Ui, { percentage: c });
3053
+ return /* @__PURE__ */ a(Vi, { percentage: c });
3052
3054
  };
3053
3055
  return /* @__PURE__ */ $("div", { children: [
3054
3056
  /* @__PURE__ */ a("div", { "data-rp": "topBar", ref: e, className: Me["rp-toolbar-content"], children: /* @__PURE__ */ $("div", { className: Me["rp-toolbar-wrapper"], style: l(), children: [
3055
3057
  /* @__PURE__ */ $("div", { "data-rp": "topBarLeft", className: Me["rp-toolbar-start"], children: [
3056
- /* @__PURE__ */ a(qi, {}),
3057
- /* @__PURE__ */ a(di, {})
3058
+ /* @__PURE__ */ a(Gi, {}),
3059
+ /* @__PURE__ */ a(ui, {})
3058
3060
  ] }),
3059
3061
  /* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: Me["rp-toolbar-middle"], children: /* @__PURE__ */ a(Ir, {}) }),
3060
- /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a(Hi, {}) })
3062
+ /* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: Me["rp-toolbar-end"], children: /* @__PURE__ */ a($i, {}) })
3061
3063
  ] }) }),
3062
3064
  /* @__PURE__ */ a(d, {})
3063
3065
  ] });
@@ -3071,7 +3073,7 @@ const xe = {
3071
3073
  "rp-thumbnail": "_rp-thumbnail_3fenb_1",
3072
3074
  "rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
3073
3075
  "rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
3074
- }, ji = (t) => {
3076
+ }, Bi = (t) => {
3075
3077
  const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = le(), { pageRotate: i } = Je(), c = k(null), l = Cn(), { pages: d } = oe(), [f, m] = q(null), P = k(!1), p = k(), v = W(() => n ? ke["rp-thumbnail-active"] : "", [n]), b = W(() => ({
3076
3078
  width: Math.round(r.width),
3077
3079
  height: Math.round(r.height)
@@ -3161,10 +3163,10 @@ const xe = {
3161
3163
  }, en = {
3162
3164
  "rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
3163
3165
  "rp-thumbnails": "_rp-thumbnails_16vqr_1"
3164
- }, Bi = 16, Ki = (t, e) => {
3166
+ }, Ki = 16, Zi = (t, e) => {
3165
3167
  const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
3166
- t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Bi);
3167
- }, Zi = et((t, e) => {
3168
+ t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ki);
3169
+ }, Xi = et((t, e) => {
3168
3170
  const { show: n, width: r } = t, { focusedPage: o, totalPages: i } = le(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = _n(), m = k(null), P = k(1);
3169
3171
  tn(e, () => m.current);
3170
3172
  const p = W(() => Object.values(c), [c]), v = E(() => {
@@ -3172,11 +3174,11 @@ const xe = {
3172
3174
  b <= i && l(b);
3173
3175
  }, [l, i, d]);
3174
3176
  return D(() => {
3175
- o > d && i > d ? f(o) : n && P.current !== o && (Ki(m.current, o), P.current = o);
3177
+ o > d && i > d ? f(o) : n && P.current !== o && (Zi(m.current, o), P.current = o);
3176
3178
  }, [o, d, f, n, p]), zo(m.current, v), /* @__PURE__ */ a("div", { ref: m, className: en["rp-thumbnails-container"], style: { width: r }, children: /* @__PURE__ */ a("div", { className: en["rp-thumbnails"], children: n ? p.map((b, C) => {
3177
3179
  var T, y;
3178
3180
  return /* @__PURE__ */ a(
3179
- ji,
3181
+ Bi,
3180
3182
  {
3181
3183
  isFocused: o === ((T = b.page) == null ? void 0 : T.pageNumber),
3182
3184
  pageNumber: (y = b.page) == null ? void 0 : y.pageNumber,
@@ -3187,10 +3189,10 @@ const xe = {
3187
3189
  C
3188
3190
  );
3189
3191
  }) : null }) });
3190
- }), Xi = () => {
3192
+ }), Qi = () => {
3191
3193
  const { thumbnailIcon: t } = Ce(), { thumbnailIcon: e } = be();
3192
3194
  return t || e || /* @__PURE__ */ a(Po, {});
3193
- }, Qi = () => {
3195
+ }, Yi = () => {
3194
3196
  const { active: t, setActive: e } = _n(), [n, r] = q(Fo), o = k(null), i = k(null), { thumbnailTool: c, sidebarEnable: l } = Te(), { localeMessages: d } = he(), f = E(() => {
3195
3197
  e((P) => !P);
3196
3198
  }, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ a(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ a(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ a(
@@ -3199,7 +3201,7 @@ const xe = {
3199
3201
  onClick: f,
3200
3202
  active: t,
3201
3203
  "aria-label": d == null ? void 0 : d.thumbnailTooltip,
3202
- children: /* @__PURE__ */ a(Xi, {})
3204
+ children: /* @__PURE__ */ a(Qi, {})
3203
3205
  }
3204
3206
  ) }) : null, [c, t, f, d]);
3205
3207
  return /* @__PURE__ */ a(pe, { children: l && /* @__PURE__ */ $(
@@ -3217,7 +3219,7 @@ const xe = {
3217
3219
  hidden: !t,
3218
3220
  className: ht["rp-thumbnails-wrapper"],
3219
3221
  children: [
3220
- /* @__PURE__ */ a(Zi, { show: t, ref: o }),
3222
+ /* @__PURE__ */ a(Xi, { show: t, ref: o }),
3221
3223
  /* @__PURE__ */ a(
3222
3224
  xo,
3223
3225
  {
@@ -3232,7 +3234,7 @@ const xe = {
3232
3234
  ]
3233
3235
  }
3234
3236
  ) });
3235
- }, Ys = oo((t, e) => {
3237
+ }, Js = oo((t, e) => {
3236
3238
  const {
3237
3239
  children: n,
3238
3240
  slots: r,
@@ -3251,13 +3253,13 @@ const xe = {
3251
3253
  /* @__PURE__ */ $(Ro, { children: [
3252
3254
  /* @__PURE__ */ $("div", { className: we["rp-layout"], children: [
3253
3255
  /* @__PURE__ */ a(
3254
- Vi,
3256
+ ji,
3255
3257
  {
3256
3258
  ref: p
3257
3259
  }
3258
3260
  ),
3259
3261
  /* @__PURE__ */ $("div", { className: we["rp-content"], children: [
3260
- /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Qi, {}) }),
3262
+ /* @__PURE__ */ a("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ a(Yi, {}) }),
3261
3263
  /* @__PURE__ */ a("div", { className: we["rp-pages"], children: n })
3262
3264
  ] })
3263
3265
  ] }),
@@ -3292,7 +3294,7 @@ const xe = {
3292
3294
  }
3293
3295
  ) : null
3294
3296
  ] }) }) }) }) }) });
3295
- }), Js = {
3297
+ }), ec = {
3296
3298
  "rp-toolbar-layout": "_rp-toolbar-layout_vwobs_1",
3297
3299
  "rp-content": "_rp-content_vwobs_7",
3298
3300
  "rp-topbar-content": "_rp-topbar-content_vwobs_13",
@@ -3302,44 +3304,44 @@ const xe = {
3302
3304
  };
3303
3305
  export {
3304
3306
  Cn as A,
3305
- Ar as B,
3307
+ zr as B,
3306
3308
  Or as C,
3307
- Mr as D,
3308
- Wr as E,
3309
+ kr as D,
3310
+ Hr as E,
3309
3311
  yt as F,
3310
- ti as G,
3311
- ri as H,
3312
- ii as I,
3313
- ai as J,
3314
- xi as K,
3312
+ ni as G,
3313
+ ii as H,
3314
+ ai as I,
3315
+ si as J,
3316
+ Ri as K,
3315
3317
  In as L,
3316
3318
  Un as M,
3317
3319
  Bn as N,
3318
- ki as O,
3319
- Us as P,
3320
- Wi as Q,
3321
- Zs as R,
3322
- qi as S,
3323
- js as T,
3320
+ Wi as O,
3321
+ Vs as P,
3322
+ Hi as Q,
3323
+ Xs as R,
3324
+ Gi as S,
3325
+ Bs as T,
3324
3326
  Jt as U,
3325
- Vi as V,
3326
- ji as W,
3327
- Qi as X,
3328
- Ys as a,
3327
+ ji as V,
3328
+ Bi as W,
3329
+ Yi as X,
3330
+ Js as a,
3329
3331
  $n as b,
3330
3332
  tt as c,
3331
3333
  Pt as d,
3332
- Bs as e,
3333
- Ks as f,
3334
- Vs as g,
3334
+ Ks as e,
3335
+ Zs as f,
3336
+ js as g,
3335
3337
  _n as h,
3336
3338
  pt as i,
3337
3339
  Me as j,
3338
- di as k,
3339
- Hi as l,
3340
- Js as m,
3341
- Zi as n,
3342
- Ui as o,
3340
+ ui as k,
3341
+ $i as l,
3342
+ ec as m,
3343
+ Xi as n,
3344
+ Vi as o,
3343
3345
  mn as p,
3344
3346
  Rr as q,
3345
3347
  gn as r,