@harbour-enterprises/superdoc 0.8.31 → 0.8.33

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.
@@ -1,5 +1,5 @@
1
- import { R as md, m as yd, d as bd, V as jo, a as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-DiQ6ytI2.es.js";
2
- import { F as cb, I as lb, b as gb } from "./chunks/super-editor.es-DiQ6ytI2.es.js";
1
+ import { R as md, m as yd, d as bd, V as jo, a as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-bZrkdrc-.es.js";
2
+ import { F as cb, I as lb, b as gb } from "./chunks/super-editor.es-bZrkdrc-.es.js";
3
3
  import { Y as Vl, r as V, Z as Ai, p as Ne, _ as _n, a as Ae, $ as qn, a0 as la, C as ht, i as lt, q as Ji, l as bt, x as Oe, a1 as Fd, L as ti, R as _t, a2 as kd, a3 as xd, a4 as Xo, g as Ti, N as Gs, M as Kr, j as li, k as Qi, h as ga, U as Rd, s as Nd, z as _r, F as qt, Q as GA, m as dt, D as fi, G as fs, B as re, V as Md, S as Ld, W as Gd, K as Oi, O as ds, E as sr, P as Td, J as Ud, T as Hd, b as ye, o as pe, t as Bi, v as Si, y as zl, f as Xe, A as ci, e as tt, u as Ci, w as wi, n as js, a5 as Zl, d as An, c as $l, X as Pd, a6 as Od } from "./chunks/vue-BDbTsTMu.es.js";
4
4
  import { B as Pn } from "./chunks/jszip-DSGi1sNe.es.js";
5
5
  import { B as Jd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -1328,23 +1328,23 @@ function CA(n, t, i = {}, r, A, c) {
1328
1328
  if (Ne.env.NODE_ENV !== "production" && !r._e.active)
1329
1329
  throw new Error("Pinia destroyed");
1330
1330
  const I = { deep: !0 };
1331
- Ne.env.NODE_ENV !== "production" && (I.onTrigger = (L) => {
1332
- f ? D = L : f == !1 && !S._hotUpdating && (Array.isArray(D) ? D.push(L) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1331
+ Ne.env.NODE_ENV !== "production" && (I.onTrigger = (G) => {
1332
+ f ? D = G : f == !1 && !S._hotUpdating && (Array.isArray(D) ? D.push(G) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1333
1333
  });
1334
1334
  let f, Q, y = [], b = [], D;
1335
1335
  const w = r.state.value[n];
1336
1336
  !c && !w && (Ne.env.NODE_ENV === "production" || !A) && (r.state.value[n] = {});
1337
1337
  const k = V({});
1338
1338
  let M;
1339
- function F(L) {
1339
+ function F(G) {
1340
1340
  let P;
1341
- f = Q = !1, Ne.env.NODE_ENV !== "production" && (D = []), typeof L == "function" ? (L(r.state.value[n]), P = {
1341
+ f = Q = !1, Ne.env.NODE_ENV !== "production" && (D = []), typeof G == "function" ? (G(r.state.value[n]), P = {
1342
1342
  type: Ui.patchFunction,
1343
1343
  storeId: n,
1344
1344
  events: D
1345
- }) : (IA(r.state.value[n], L), P = {
1345
+ }) : (IA(r.state.value[n], G), P = {
1346
1346
  type: Ui.patchObject,
1347
- payload: L,
1347
+ payload: G,
1348
1348
  storeId: n,
1349
1349
  events: D
1350
1350
  });
@@ -1367,9 +1367,9 @@ function CA(n, t, i = {}, r, A, c) {
1367
1367
  function J() {
1368
1368
  g.stop(), y = [], b = [], r._s.delete(n);
1369
1369
  }
1370
- const T = (L, P = "") => {
1371
- if (tc in L)
1372
- return L[Ya] = P, L;
1370
+ const T = (G, P = "") => {
1371
+ if (tc in G)
1372
+ return G[Ya] = P, G;
1373
1373
  const K = function() {
1374
1374
  Ws(r);
1375
1375
  const Z = Array.from(arguments), z = [], q = [];
@@ -1388,7 +1388,7 @@ function CA(n, t, i = {}, r, A, c) {
1388
1388
  });
1389
1389
  let ne;
1390
1390
  try {
1391
- ne = L.apply(this && this.$id === n ? this : S, Z);
1391
+ ne = G.apply(this && this.$id === n ? this : S, Z);
1392
1392
  } catch (se) {
1393
1393
  throw ss(q, se), se;
1394
1394
  }
@@ -1407,9 +1407,9 @@ function CA(n, t, i = {}, r, A, c) {
1407
1407
  $onAction: ec.bind(null, b),
1408
1408
  $patch: F,
1409
1409
  $reset: O,
1410
- $subscribe(L, P = {}) {
1411
- const K = ec(y, L, P.detached, () => Z()), Z = g.run(() => bt(() => r.state.value[n], (z) => {
1412
- (P.flush === "sync" ? Q : f) && L({
1410
+ $subscribe(G, P = {}) {
1411
+ const K = ec(y, G, P.detached, () => Z()), Z = g.run(() => bt(() => r.state.value[n], (z) => {
1412
+ (P.flush === "sync" ? Q : f) && G({
1413
1413
  storeId: n,
1414
1414
  type: Ui.direct,
1415
1415
  events: D
@@ -1430,70 +1430,70 @@ function CA(n, t, i = {}, r, A, c) {
1430
1430
  ) : U);
1431
1431
  r._s.set(n, S);
1432
1432
  const x = (r._a && r._a.runWithContext || yI)(() => r._e.run(() => (g = Vl()).run(() => t({ action: T }))));
1433
- for (const L in x) {
1434
- const P = x[L];
1433
+ for (const G in x) {
1434
+ const P = x[G];
1435
1435
  if (qn(P) && !ic(P) || la(P))
1436
- Ne.env.NODE_ENV !== "production" && A ? Er(k.value, L, ht(x, L)) : c || (w && wI(P) && (qn(P) ? P.value = w[L] : IA(P, w[L])), r.state.value[n][L] = P), Ne.env.NODE_ENV !== "production" && H.state.push(L);
1436
+ Ne.env.NODE_ENV !== "production" && A ? Er(k.value, G, ht(x, G)) : c || (w && wI(P) && (qn(P) ? P.value = w[G] : IA(P, w[G])), r.state.value[n][G] = P), Ne.env.NODE_ENV !== "production" && H.state.push(G);
1437
1437
  else if (typeof P == "function") {
1438
- const K = Ne.env.NODE_ENV !== "production" && A ? P : T(P, L);
1439
- x[L] = K, Ne.env.NODE_ENV !== "production" && (H.actions[L] = P), u.actions[L] = P;
1440
- } else Ne.env.NODE_ENV !== "production" && ic(P) && (H.getters[L] = c ? (
1438
+ const K = Ne.env.NODE_ENV !== "production" && A ? P : T(P, G);
1439
+ x[G] = K, Ne.env.NODE_ENV !== "production" && (H.actions[G] = P), u.actions[G] = P;
1440
+ } else Ne.env.NODE_ENV !== "production" && ic(P) && (H.getters[G] = c ? (
1441
1441
  // @ts-expect-error
1442
- i.getters[L]
1442
+ i.getters[G]
1443
1443
  ) : P, En && (x._getters || // @ts-expect-error: same
1444
- (x._getters = Ai([]))).push(L));
1444
+ (x._getters = Ai([]))).push(G));
1445
1445
  }
1446
1446
  if (Ii(S, x), Ii(_n(S), x), Object.defineProperty(S, "$state", {
1447
1447
  get: () => Ne.env.NODE_ENV !== "production" && A ? k.value : r.state.value[n],
1448
- set: (L) => {
1448
+ set: (G) => {
1449
1449
  if (Ne.env.NODE_ENV !== "production" && A)
1450
1450
  throw new Error("cannot set hotState");
1451
1451
  F((P) => {
1452
- Ii(P, L);
1452
+ Ii(P, G);
1453
1453
  });
1454
1454
  }
1455
- }), Ne.env.NODE_ENV !== "production" && (S._hotUpdate = Ai((L) => {
1456
- S._hotUpdating = !0, L._hmrPayload.state.forEach((P) => {
1455
+ }), Ne.env.NODE_ENV !== "production" && (S._hotUpdate = Ai((G) => {
1456
+ S._hotUpdating = !0, G._hmrPayload.state.forEach((P) => {
1457
1457
  if (P in S.$state) {
1458
- const K = L.$state[P], Z = S.$state[P];
1459
- typeof K == "object" && jn(K) && jn(Z) ? Cg(K, Z) : L.$state[P] = Z;
1458
+ const K = G.$state[P], Z = S.$state[P];
1459
+ typeof K == "object" && jn(K) && jn(Z) ? Cg(K, Z) : G.$state[P] = Z;
1460
1460
  }
1461
- Er(S, P, ht(L.$state, P));
1461
+ Er(S, P, ht(G.$state, P));
1462
1462
  }), Object.keys(S.$state).forEach((P) => {
1463
- P in L.$state || Ja(S, P);
1464
- }), f = !1, Q = !1, r.state.value[n] = ht(L._hmrPayload, "hotState"), Q = !0, _t().then(() => {
1463
+ P in G.$state || Ja(S, P);
1464
+ }), f = !1, Q = !1, r.state.value[n] = ht(G._hmrPayload, "hotState"), Q = !0, _t().then(() => {
1465
1465
  f = !0;
1466
1466
  });
1467
- for (const P in L._hmrPayload.actions) {
1468
- const K = L[P];
1467
+ for (const P in G._hmrPayload.actions) {
1468
+ const K = G[P];
1469
1469
  Er(S, P, T(K, P));
1470
1470
  }
1471
- for (const P in L._hmrPayload.getters) {
1472
- const K = L._hmrPayload.getters[P], Z = c ? (
1471
+ for (const P in G._hmrPayload.getters) {
1472
+ const K = G._hmrPayload.getters[P], Z = c ? (
1473
1473
  // special handling of options api
1474
1474
  Ae(() => (Ws(r), K.call(S, S)))
1475
1475
  ) : K;
1476
1476
  Er(S, P, Z);
1477
1477
  }
1478
1478
  Object.keys(S._hmrPayload.getters).forEach((P) => {
1479
- P in L._hmrPayload.getters || Ja(S, P);
1479
+ P in G._hmrPayload.getters || Ja(S, P);
1480
1480
  }), Object.keys(S._hmrPayload.actions).forEach((P) => {
1481
- P in L._hmrPayload.actions || Ja(S, P);
1482
- }), S._hmrPayload = L._hmrPayload, S._getters = L._getters, S._hotUpdating = !1;
1481
+ P in G._hmrPayload.actions || Ja(S, P);
1482
+ }), S._hmrPayload = G._hmrPayload, S._getters = G._getters, S._hotUpdating = !1;
1483
1483
  })), Ne.env.NODE_ENV !== "production" && Ne.env.NODE_ENV !== "test" && En) {
1484
- const L = {
1484
+ const G = {
1485
1485
  writable: !0,
1486
1486
  configurable: !0,
1487
1487
  // avoid warning on devtools trying to display this property
1488
1488
  enumerable: !1
1489
1489
  };
1490
1490
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((P) => {
1491
- Object.defineProperty(S, P, Ii({ value: S[P] }, L));
1491
+ Object.defineProperty(S, P, Ii({ value: S[P] }, G));
1492
1492
  });
1493
1493
  }
1494
- return r._p.forEach((L) => {
1494
+ return r._p.forEach((G) => {
1495
1495
  if (Ne.env.NODE_ENV !== "production" && Ne.env.NODE_ENV !== "test" && En) {
1496
- const P = g.run(() => L({
1496
+ const P = g.run(() => G({
1497
1497
  store: S,
1498
1498
  app: r._a,
1499
1499
  pinia: r,
@@ -1501,7 +1501,7 @@ function CA(n, t, i = {}, r, A, c) {
1501
1501
  }));
1502
1502
  Object.keys(P || {}).forEach((K) => S._customProperties.add(K)), Ii(S, P);
1503
1503
  } else
1504
- Ii(S, g.run(() => L({
1504
+ Ii(S, g.run(() => G({
1505
1505
  store: S,
1506
1506
  app: r._a,
1507
1507
  pinia: r,
@@ -1792,9 +1792,9 @@ function Tn(n) {
1792
1792
  documentId: c,
1793
1793
  page: 1,
1794
1794
  selectionBounds: {}
1795
- }), O = n.selection?.selectionBounds ? { ...n.selection.selectionBounds } : { top: 0, left: 0, right: 0, bottom: 0 }, J = V(n.trackedChange), T = V(n.trackedChangeType || null), H = V(n.trackedChangeText || null), U = V(n.deletedText || null), S = V(n.resolvedTime || null), G = V(n.resolvedByEmail || null), x = V(n.resolvedByName || null), L = ({ email: se, name: Ee, superdoc: Fe }) => {
1795
+ }), O = n.selection?.selectionBounds ? { ...n.selection.selectionBounds } : { top: 0, left: 0, right: 0, bottom: 0 }, J = V(n.trackedChange), T = V(n.trackedChangeType || null), H = V(n.trackedChangeText || null), U = V(n.deletedText || null), S = V(n.resolvedTime || null), L = V(n.resolvedByEmail || null), x = V(n.resolvedByName || null), G = ({ email: se, name: Ee, superdoc: Fe }) => {
1796
1796
  if (S.value) return;
1797
- if (S.value = Date.now(), G.value = se, x.value = Ee, J.value) {
1797
+ if (S.value = Date.now(), L.value = se, x.value = Ee, J.value) {
1798
1798
  const je = { type: Ts.RESOLVED, comment: ne() };
1799
1799
  ee(Fe, je), Fe.activeEditor?.commands?.resolveComment({ commentId: i, importedId: r });
1800
1800
  return;
@@ -1867,7 +1867,7 @@ function Tn(n) {
1867
1867
  trackedChangeType: T.value,
1868
1868
  deletedText: U.value,
1869
1869
  resolvedTime: S.value,
1870
- resolvedByEmail: G.value,
1870
+ resolvedByEmail: L.value,
1871
1871
  resolvedByName: x.value
1872
1872
  });
1873
1873
  return ti({
@@ -1892,13 +1892,13 @@ function Tn(n) {
1892
1892
  trackedChangeType: T,
1893
1893
  trackedChangeText: H,
1894
1894
  resolvedTime: S,
1895
- resolvedByEmail: G,
1895
+ resolvedByEmail: L,
1896
1896
  resolvedByName: x,
1897
1897
  importedAuthor: k,
1898
1898
  // Actions
1899
1899
  setText: Z,
1900
1900
  getValues: ne,
1901
- resolveComment: L,
1901
+ resolveComment: G,
1902
1902
  setIsInternal: P,
1903
1903
  setActive: K,
1904
1904
  updatePosition: q,
@@ -1913,10 +1913,10 @@ function KI(n, t) {
1913
1913
  throw new Error("Document type not specified for doc:", n);
1914
1914
  }
1915
1915
  const T = () => {
1916
- L.value = x.value, x.value = [];
1916
+ G.value = x.value, x.value = [];
1917
1917
  }, H = () => {
1918
- x.value = L.value, console.debug("[superdoc] Restored comments:", x.value);
1919
- }, U = V(n.fields || []), S = V(n.fields?.map((z) => DI(z)) || []), G = V(n.annotations || []), x = V(P()), L = V(x.value);
1918
+ x.value = G.value, console.debug("[superdoc] Restored comments:", x.value);
1919
+ }, U = V(n.fields || []), S = V(n.fields?.map((z) => DI(z)) || []), L = V(n.annotations || []), x = V(P()), G = V(x.value);
1920
1920
  function P() {
1921
1921
  return c.modules.comments ? n.conversations?.map((z) => Tn(z)) || [] : [];
1922
1922
  }
@@ -1941,7 +1941,7 @@ function KI(n, t) {
1941
1941
  // Modules
1942
1942
  rawFields: U,
1943
1943
  fields: S,
1944
- annotations: G,
1944
+ annotations: L,
1945
1945
  conversations: x,
1946
1946
  // Actions
1947
1947
  setEditor: F,
@@ -1968,26 +1968,26 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
1968
1968
  scrollLeft: 0
1969
1969
  }), M = async (S) => {
1970
1970
  w(), n.value = S;
1971
- const { documents: G, modules: x, user: L, users: P } = S;
1972
- if (c.value = P || [], Object.assign(Q, L), Object.assign(y, x), !G?.length && S.format === "docx" && !S.modules.collaboration) {
1971
+ const { documents: L, modules: x, user: G, users: P } = S;
1972
+ if (c.value = P || [], Object.assign(Q, G), Object.assign(y, x), !L?.length && S.format === "docx" && !S.modules.collaboration) {
1973
1973
  const K = await zo(Jd, "blank.docx", On);
1974
- G.push({
1974
+ L.push({
1975
1975
  type: On,
1976
1976
  data: K,
1977
1977
  name: "blank.docx",
1978
1978
  isNewFile: !0
1979
1979
  });
1980
1980
  }
1981
- await F(G), u.value = !0;
1981
+ await F(L), u.value = !0;
1982
1982
  }, F = async (S = []) => {
1983
1983
  if (!S) return [];
1984
- for (let G of S)
1984
+ for (let L of S)
1985
1985
  try {
1986
- let x = await O(G);
1987
- const L = KI(x, n.value);
1988
- i.value.push(L);
1986
+ let x = await O(L);
1987
+ const G = KI(x, n.value);
1988
+ i.value.push(G);
1989
1989
  } catch (x) {
1990
- console.warn("[superdoc] Error initializing document:", G, "with error:", x, "Skipping document.");
1990
+ console.warn("[superdoc] Error initializing document:", L, "with error:", x, "Skipping document.");
1991
1991
  }
1992
1992
  }, O = async (S) => {
1993
1993
  if (n.value?.modules.collaboration && !S.isNewFile)
@@ -1997,15 +1997,15 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
1997
1997
  throw new Error("Document mime type must be specified when loading from URL");
1998
1998
  if (S.url && S.type) {
1999
1999
  S.type.toLowerCase() === "docx" ? S.type = On : S.type.toLowerCase() === "pdf" && (S.type = ha);
2000
- const G = await zo(S.url, S.name || "document", S.type);
2001
- return { ...S, data: G };
2000
+ const L = await zo(S.url, S.name || "document", S.type);
2001
+ return { ...S, data: L };
2002
2002
  }
2003
2003
  throw new Error("Document could not be initialized:", S);
2004
2004
  }, J = Ae(() => {
2005
- for (let S of i.value.filter((G) => G.type === "pdf"))
2005
+ for (let S of i.value.filter((L) => L.type === "pdf"))
2006
2006
  if (!S.isReady) return !1;
2007
2007
  return !0;
2008
- }), T = (S) => i.value.find((G) => G.id === S);
2008
+ }), T = (S) => i.value.find((L) => L.id === S);
2009
2009
  return {
2010
2010
  commentsStore: t,
2011
2011
  documents: i,
@@ -2026,23 +2026,23 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2026
2026
  // Actions
2027
2027
  init: M,
2028
2028
  reset: w,
2029
- handlePageReady: (S, G, x) => {
2030
- A[S] || (A[S] = []), A[S].push({ page: G, containerBounds: x });
2031
- const L = T(S);
2032
- L && L.pageContainers.push({
2033
- page: G,
2029
+ handlePageReady: (S, L, x) => {
2030
+ A[S] || (A[S] = []), A[S].push({ page: L, containerBounds: x });
2031
+ const G = T(S);
2032
+ G && G.pageContainers.push({
2033
+ page: L,
2034
2034
  containerBounds: x
2035
2035
  });
2036
2036
  },
2037
2037
  getDocument: T,
2038
- getPageBounds: (S, G) => {
2038
+ getPageBounds: (S, L) => {
2039
2039
  const x = A[S];
2040
2040
  if (!x) return;
2041
- const L = x.find((z) => z.page == G);
2042
- if (!L || !L.container) return;
2043
- const P = L.container.getBoundingClientRect(), { height: K } = P;
2041
+ const G = x.find((z) => z.page == L);
2042
+ if (!G || !G.container) return;
2043
+ const P = G.container.getBoundingClientRect(), { height: K } = P;
2044
2044
  return {
2045
- top: K * (G - 1)
2045
+ top: K * (L - 1)
2046
2046
  };
2047
2047
  }
2048
2048
  };
@@ -2052,18 +2052,18 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2052
2052
  readOnly: !1,
2053
2053
  allowResolve: !0,
2054
2054
  showResolved: !1
2055
- }), i = !1, r = {}, A = Ts, c = V(!1), g = V(!1), u = V(null), I = V(!1), f = V(null), Q = V(null), y = V([]), b = V([]), D = /* @__PURE__ */ new Set([]), w = V(!0), k = V(""), M = V([]), F = V(!1), O = V([]), J = V({}), T = V(0), H = V([]), U = V([]), S = V(!1), G = V(!1), x = V([]), L = V(null), P = (ge = {}) => {
2056
- const le = { ...t, ...ge };
2057
- Object.assign(t, le), w.value = t.suppressInternalExternal || !1, ge.comments && ge.comments.length && (M.value = ge.comments?.map((Se) => Tn(Se)) || []);
2058
- }, K = (ge) => ge == null ? null : M.value.find((le) => le.commentId == ge || le.importedId == ge), Z = (ge) => {
2055
+ }), i = !1, r = {}, A = Ts, c = V(!1), g = V(!1), u = V(null), I = V(!1), f = V(null), Q = V(null), y = V([]), b = V([]), D = /* @__PURE__ */ new Set([]), w = V(!0), k = V(""), M = V([]), F = V(!1), O = V([]), J = V({}), T = V(0), H = V([]), U = V([]), S = V(!1), L = V(!1), x = V([]), G = V(null), P = (ge = {}) => {
2056
+ const ce = { ...t, ...ge };
2057
+ Object.assign(t, ce), w.value = t.suppressInternalExternal || !1, ge.comments && ge.comments.length && (M.value = ge.comments?.map((we) => Tn(we)) || []);
2058
+ }, K = (ge) => ge == null ? null : M.value.find((ce) => ce.commentId == ge || ce.importedId == ge), Z = (ge) => {
2059
2059
  if (ge == null)
2060
2060
  return f.value = null;
2061
- const le = K(ge);
2062
- le && (f.value = le.commentId);
2063
- }, z = ({ superdoc: ge, params: le }) => {
2061
+ const ce = K(ge);
2062
+ ce && (f.value = ce.commentId);
2063
+ }, z = ({ superdoc: ge, params: ce }) => {
2064
2064
  const {
2065
- event: Se,
2066
- changeId: Te,
2065
+ event: we,
2066
+ changeId: Ge,
2067
2067
  trackedChangeText: Me,
2068
2068
  trackedChangeType: Je,
2069
2069
  deletedText: Re,
@@ -2072,9 +2072,9 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2072
2072
  author: Ve,
2073
2073
  documentId: Ut,
2074
2074
  coords: Nt
2075
- } = le, ni = je({
2075
+ } = ce, ni = je({
2076
2076
  documentId: Ut,
2077
- commentId: Te,
2077
+ commentId: Ge,
2078
2078
  trackedChange: !0,
2079
2079
  trackedChangeText: Me,
2080
2080
  trackedChangeType: Je,
@@ -2087,11 +2087,11 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2087
2087
  selectionBounds: Nt
2088
2088
  }
2089
2089
  });
2090
- if (Se === "add")
2090
+ if (we === "add")
2091
2091
  Ce({ superdoc: ge, comment: ni });
2092
- else if (Se === "update") {
2092
+ else if (we === "update") {
2093
2093
  const jt = M.value.find(
2094
- (hi) => hi.commentId === Te
2094
+ (hi) => hi.commentId === Ge
2095
2095
  );
2096
2096
  if (!jt) return;
2097
2097
  jt.trackedChangeText = Me, Re && (jt.deletedText = Re);
@@ -2099,101 +2099,101 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2099
2099
  type: A.UPDATE,
2100
2100
  comment: jt.getValues()
2101
2101
  };
2102
- Hr(ge, gi), q(Te, gi, ge);
2102
+ Hr(ge, gi), q(Ge, gi, ge);
2103
2103
  }
2104
- }, q = (ge, le, Se, Te = 1e3) => {
2104
+ }, q = (ge, ce, we, Ge = 1e3) => {
2105
2105
  r[ge] && clearTimeout(r[ge]), r[ge] = setTimeout(() => {
2106
- Se && (console.debug("[debounceEmit] tracked change update emitting...", le), Se.emit("comments-update", le)), delete r[ge];
2107
- }, Te);
2106
+ we && (console.debug("[debounceEmit] tracked change update emitting...", ce), we.emit("comments-update", ce)), delete r[ge];
2107
+ }, Ge);
2108
2108
  }, ie = (ge) => {
2109
- const le = { type: A.PENDING };
2110
- console.debug("[showAddComment] emitting...", le), ge.emit("comments-update", le);
2111
- const Se = { ...n.activeSelection };
2112
- Se.selectionBounds = { ...Se.selectionBounds }, n.selectionPosition?.source && (n.selectionPosition.source = null), L.value = je({ selection: Se, documentId: Se.documentId, parentCommentId: null }), ge.config.isInternal || (L.value.isInternal = !1), ge.activeEditor?.commands && ge.activeEditor.commands.insertComment({ ...L.value.getValues(), commentId: "pending" }), L.value.selection.source === "super-editor" && n.selectionPosition && (n.selectionPosition.source = "super-editor"), f.value = L.value.commentID;
2109
+ const ce = { type: A.PENDING };
2110
+ console.debug("[showAddComment] emitting...", ce), ge.emit("comments-update", ce);
2111
+ const we = { ...n.activeSelection };
2112
+ we.selectionBounds = { ...we.selectionBounds }, n.selectionPosition?.source && (n.selectionPosition.source = null), G.value = je({ selection: we, documentId: we.documentId, parentCommentId: null }), ge.config.isInternal || (G.value.isInternal = !1), ge.activeEditor?.commands && ge.activeEditor.commands.insertComment({ ...G.value.getValues(), commentId: "pending" }), G.value.selection.source === "super-editor" && n.selectionPosition && (n.selectionPosition.source = "super-editor"), f.value = G.value.commentID;
2113
2113
  }, ee = Ae(() => {
2114
- const ge = [], le = [], Se = /* @__PURE__ */ new Map();
2114
+ const ge = [], ce = [], we = /* @__PURE__ */ new Map();
2115
2115
  M.value.forEach((Je) => {
2116
- Je.resolvedTime ? le.push(Je) : !Je.parentCommentId && !Je.resolvedTime ? ge.push({ ...Je }) : Je.parentCommentId && (Se.has(Je.parentCommentId) || Se.set(Je.parentCommentId, []), Se.get(Je.parentCommentId).push(Je));
2116
+ Je.resolvedTime ? ce.push(Je) : !Je.parentCommentId && !Je.resolvedTime ? ge.push({ ...Je }) : Je.parentCommentId && (we.has(Je.parentCommentId) || we.set(Je.parentCommentId, []), we.get(Je.parentCommentId).push(Je));
2117
2117
  });
2118
- const Te = ge.sort((Je, Re) => Je.createdTime - Re.createdTime), Me = le.sort((Je, Re) => Je.createdTime - Re.createdTime);
2118
+ const Ge = ge.sort((Je, Re) => Je.createdTime - Re.createdTime), Me = ce.sort((Je, Re) => Je.createdTime - Re.createdTime);
2119
2119
  return {
2120
- parentComments: Te,
2120
+ parentComments: Ge,
2121
2121
  resolvedComments: Me
2122
2122
  };
2123
- }), ne = (ge) => D.includes(ge), se = Ae(() => n.documents), Ee = Ae(() => t), Fe = (ge, le) => {
2124
- const Se = ge.getContainerLocation(le), Te = Se.top + ge.selectionBounds.top, Me = Se.left + ge.selectionBounds.left;
2123
+ }), ne = (ge) => D.includes(ge), se = Ae(() => n.documents), Ee = Ae(() => t), Fe = (ge, ce) => {
2124
+ const we = ge.getContainerLocation(ce), Ge = we.top + ge.selectionBounds.top, Me = we.left + ge.selectionBounds.left;
2125
2125
  return {
2126
- top: Te,
2126
+ top: Ge,
2127
2127
  left: Me
2128
2128
  };
2129
- }, xe = (ge, le, Se) => {
2130
- const Te = document.querySelectorAll(".comment-box"), Me = ge.getBoundingClientRect(), Je = [];
2131
- if (Te.forEach((Re) => {
2132
- if (Re.dataset.id === le.conversationId) return;
2129
+ }, xe = (ge, ce, we) => {
2130
+ const Ge = document.querySelectorAll(".comment-box"), Me = ge.getBoundingClientRect(), Je = [];
2131
+ if (Ge.forEach((Re) => {
2132
+ if (Re.dataset.id === ce.conversationId) return;
2133
2133
  const at = Re.getBoundingClientRect();
2134
2134
  if (Math.abs(at.top - Me.top) < 50 || Math.abs(at.bottom - Me.bottom) < 50) {
2135
2135
  if (Re.dataset?.id) {
2136
- let We = le.doc?.conversations?.find((Ve) => Ve.conversationId === Re.dataset.id);
2137
- We || (We = Se.conversations.find((Ve) => Ve.conversationId === Re.dataset.id)), Je.unshift(We), Je.unshift(le), We.group = !0;
2136
+ let We = ce.doc?.conversations?.find((Ve) => Ve.conversationId === Re.dataset.id);
2137
+ We || (We = we.conversations.find((Ve) => Ve.conversationId === Re.dataset.id)), Je.unshift(We), Je.unshift(ce), We.group = !0;
2138
2138
  } else {
2139
2139
  const We = Re.dataset.index;
2140
- b.value[We]?.unshift(le);
2140
+ b.value[We]?.unshift(ce);
2141
2141
  }
2142
- le.group = !0;
2142
+ ce.group = !0;
2143
2143
  }
2144
2144
  }), Je.length) {
2145
- const Re = b.value.find((at) => at.some((We) => We.conversationId === le.conversationId));
2145
+ const Re = b.value.find((at) => at.some((We) => We.conversationId === ce.conversationId));
2146
2146
  if (Re) {
2147
2147
  const at = Je.filter((We) => !Re.some((Ve) => Ve.conversationId === Ve.conversationId));
2148
2148
  Re.push(...at);
2149
2149
  } else
2150
2150
  b.value.unshift(Je);
2151
2151
  }
2152
- }, je = ({ selection: ge, documentId: le, parentCommentId: Se, ...Te }) => st({ selection: ge, documentId: le, parentCommentId: Se, ...Te }), st = ({ selection: ge, documentId: le, parentCommentId: Se, ...Te }) => {
2152
+ }, je = ({ selection: ge, documentId: ce, parentCommentId: we, ...Ge }) => st({ selection: ge, documentId: ce, parentCommentId: we, ...Ge }), st = ({ selection: ge, documentId: ce, parentCommentId: we, ...Ge }) => {
2153
2153
  let Me;
2154
- return le ? Me = n.getDocument(le) : ge && (Me = n.getDocument(ge.documentId)), Me || (Me = n.documents[0]), Tn({
2154
+ return ce ? Me = n.getDocument(ce) : ge && (Me = n.getDocument(ge.documentId)), Me || (Me = n.documents[0]), Tn({
2155
2155
  fileId: Me.id,
2156
2156
  fileType: Me.type,
2157
- parentCommentId: Se,
2157
+ parentCommentId: we,
2158
2158
  creatorEmail: n.user.email,
2159
2159
  creatorName: n.user.name,
2160
2160
  commentText: k.value,
2161
2161
  selection: ge,
2162
- ...Te
2162
+ ...Ge
2163
2163
  });
2164
2164
  }, ft = (ge) => {
2165
- k.value = "", L.value = null, f.value = null, n.selectionPosition = null, ge.activeEditor?.commands.removeComment({ commentId: "pending" });
2166
- }, Ce = ({ superdoc: ge, comment: le }) => {
2167
- let Se = M.value.find((Je) => Je.commentId === f.value);
2168
- Se || (Se = le);
2169
- const Te = Tn(le.getValues());
2170
- if (L.value ? Te.setText({ text: k.value, suppressUpdate: !0 }) : Te.setText({ text: le.commentText, suppressUpdate: !0 }), Te.selection.source = L.value?.selection?.source, Se) {
2171
- const Je = Se.isInternal;
2172
- Te.isInternal = Je;
2173
- }
2174
- ge.config.isInternal || (Te.isInternal = !1), M.value.push(Te), ft(ge), !le.trackedChange && ge.activeEditor?.commands && !le.parentCommentId && ge.activeEditor.commands.insertComment(Te.getValues());
2175
- const Me = { type: A.ADD, comment: Te.getValues() };
2165
+ k.value = "", G.value = null, f.value = null, n.selectionPosition = null, ge.activeEditor?.commands.removeComment({ commentId: "pending" });
2166
+ }, Ce = ({ superdoc: ge, comment: ce }) => {
2167
+ let we = M.value.find((Je) => Je.commentId === f.value);
2168
+ we || (we = ce);
2169
+ const Ge = Tn(ce.getValues());
2170
+ if (G.value ? Ge.setText({ text: k.value, suppressUpdate: !0 }) : Ge.setText({ text: ce.commentText, suppressUpdate: !0 }), Ge.selection.source = G.value?.selection?.source, we) {
2171
+ const Je = we.isInternal;
2172
+ Ge.isInternal = Je;
2173
+ }
2174
+ ge.config.isInternal || (Ge.isInternal = !1), M.value.push(Ge), ft(ge), !ce.trackedChange && ge.activeEditor?.commands && !ce.parentCommentId && ge.activeEditor.commands.insertComment(Ge.getValues());
2175
+ const Me = { type: A.ADD, comment: Ge.getValues() };
2176
2176
  Hr(ge, Me), console.debug("[addComment] emitting...", Me), ge.emit("comments-update", Me);
2177
- }, $ = ({ commentId: ge, superdoc: le }) => {
2178
- const Se = M.value.findIndex((Ve) => Ve.commentId === ge), Te = M.value[Se], { commentId: Me, importedId: Je } = Te, { fileId: Re } = Te;
2179
- le.activeEditor?.commands?.removeComment({ commentId: Me, importedId: Je }), M.value.splice(Se, 1);
2177
+ }, $ = ({ commentId: ge, superdoc: ce }) => {
2178
+ const we = M.value.findIndex((Ve) => Ve.commentId === ge), Ge = M.value[we], { commentId: Me, importedId: Je } = Ge, { fileId: Re } = Ge;
2179
+ ce.activeEditor?.commands?.removeComment({ commentId: Me, importedId: Je }), M.value.splice(we, 1);
2180
2180
  const at = M.value.filter((Ve) => Ve.parentCommentId === Me).map((Ve) => Ve.commentId || Ve.importedId);
2181
2181
  M.value = M.value.filter((Ve) => !at.includes(Ve.commentId));
2182
2182
  const We = {
2183
2183
  type: A.DELETED,
2184
- comment: Te.getValues(),
2184
+ comment: Ge.getValues(),
2185
2185
  changes: [{ key: "deleted", commentId: Me, fileId: Re }]
2186
2186
  };
2187
- console.debug("[deleteComment] emitting...", We), le.emit("comments-update", We), Hr(le, We);
2187
+ console.debug("[deleteComment] emitting...", We), ce.emit("comments-update", We), Hr(ce, We);
2188
2188
  }, ue = (ge) => {
2189
2189
  ft(ge);
2190
- }, W = async ({ superdoc: ge, editor: le, comments: Se, documentId: Te }) => {
2191
- const Me = n.getDocument(Te);
2192
- console.debug("[processLoadedDocxComments] processing comments...", Se), Se.forEach((Re) => {
2190
+ }, W = async ({ superdoc: ge, editor: ce, comments: we, documentId: Ge }) => {
2191
+ const Me = n.getDocument(Ge);
2192
+ console.debug("[processLoadedDocxComments] processing comments...", we), we.forEach((Re) => {
2193
2193
  if (!gt(Re.textJson) && !Re.trackedChange)
2194
2194
  return;
2195
2195
  const We = Re.creatorName.replace("(imported)", ""), Ve = `${We} (imported)`, Ut = Tn({
2196
- fileId: Te,
2196
+ fileId: Ge,
2197
2197
  fileType: Me.type,
2198
2198
  commentId: Re.commentId,
2199
2199
  isInternal: !1,
@@ -2214,10 +2214,10 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2214
2214
  deletedText: Re.trackedDeletedText
2215
2215
  });
2216
2216
  Ce({ superdoc: ge, comment: Ut });
2217
- }), md.getTrackChanges(le.state).forEach(({ mark: Re }) => {
2217
+ }), md.getTrackChanges(ce.state).forEach(({ mark: Re }) => {
2218
2218
  if (M.value.find((ni) => ni.commentId === Re.attrs.id))
2219
2219
  return;
2220
- const { dispatch: We } = le.view, { tr: Ve } = le.view.state, Nt = {
2220
+ const { dispatch: We } = ce.view, { tr: Ve } = ce.view.state, Nt = {
2221
2221
  trackInsert: "insertedMark",
2222
2222
  trackDelete: "deletionMark",
2223
2223
  trackFormat: "formatMark"
@@ -2226,24 +2226,27 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2226
2226
  });
2227
2227
  }, me = () => {
2228
2228
  const ge = [];
2229
- return M.value.forEach((le) => {
2230
- const Se = le.getValues(), Te = Se.commentText, Me = Qe(Te);
2229
+ return M.value.forEach((ce) => {
2230
+ const we = ce.getValues(), Ge = we.commentText, Me = Qe(Ge);
2231
2231
  ge.push({
2232
- ...Se,
2232
+ ...we,
2233
2233
  commentJSON: Me
2234
2234
  });
2235
2235
  }), ge;
2236
2236
  }, Qe = (ge) => {
2237
- const le = document.createElement("div");
2238
- return le.innerHTML = ge, new jo({
2237
+ const ce = document.createElement("div");
2238
+ return ce.innerHTML = ge, new jo({
2239
2239
  mode: "text",
2240
2240
  isHeadless: !0,
2241
- content: le,
2241
+ content: ce,
2242
2242
  extensions: Wo()
2243
2243
  }).getJSON().content[0];
2244
- }, we = (ge, le) => {
2244
+ }, Se = (ge, ce) => {
2245
2245
  J.value = ge;
2246
- }, _e = Ae(() => ee.value?.parentComments.filter((le) => !le.resolvedTime).filter((le) => Object.keys(J.value).includes(le.commentId))), gt = (ge) => {
2246
+ }, _e = Ae(() => ee.value?.parentComments.filter((ce) => !ce.resolvedTime).filter((ce) => {
2247
+ const we = Object.keys(J.value);
2248
+ return ce.selection?.source !== "super-editor" ? !0 : we.includes(ce.commentId);
2249
+ })), gt = (ge) => {
2247
2250
  if (ge.content?.length)
2248
2251
  try {
2249
2252
  return new jo({
@@ -2253,8 +2256,8 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2253
2256
  loadFromSchema: !0,
2254
2257
  extensions: Wo()
2255
2258
  }).getHTML();
2256
- } catch (le) {
2257
- console.warn("Failed to convert comment", le);
2259
+ } catch (ce) {
2260
+ console.warn("Failed to convert comment", ce);
2258
2261
  return;
2259
2262
  }
2260
2263
  };
@@ -2269,7 +2272,7 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2269
2272
  overlappingComments: b,
2270
2273
  overlappedIds: D,
2271
2274
  suppressInternalExternal: w,
2272
- pendingComment: L,
2275
+ pendingComment: G,
2273
2276
  currentCommentText: k,
2274
2277
  commentsList: M,
2275
2278
  isCommentsListVisible: F,
@@ -2283,7 +2286,7 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2283
2286
  sortedConversations: H,
2284
2287
  visibleConversations: U,
2285
2288
  skipSelectionUpdate: S,
2286
- isFloatingCommentsReady: G,
2289
+ isFloatingCommentsReady: L,
2287
2290
  // Getters
2288
2291
  getConfig: Ee,
2289
2292
  documentsWithConverations: se,
@@ -2304,7 +2307,7 @@ const Yi = /* @__PURE__ */ JA("superdoc", () => {
2304
2307
  removePendingComment: ft,
2305
2308
  processLoadedDocxComments: W,
2306
2309
  translateCommentsForExport: me,
2307
- handleEditorLocationsUpdate: we,
2310
+ handleEditorLocationsUpdate: Se,
2308
2311
  handleTrackedChangeUpdate: z
2309
2312
  };
2310
2313
  });
@@ -3096,25 +3099,25 @@ function L0() {
3096
3099
  function r() {
3097
3100
  n.set(this, !0), t.set(this, !0);
3098
3101
  }
3099
- function A(S, G, x) {
3100
- const L = S[G];
3101
- return S[G] = function() {
3102
- return x.apply(S, arguments), L.apply(S, arguments);
3102
+ function A(S, L, x) {
3103
+ const G = S[L];
3104
+ return S[L] = function() {
3105
+ return x.apply(S, arguments), G.apply(S, arguments);
3103
3106
  }, S;
3104
3107
  }
3105
- function c(S, G) {
3106
- S[G] = Event.prototype[G];
3108
+ function c(S, L) {
3109
+ S[L] = Event.prototype[L];
3107
3110
  }
3108
3111
  const g = /* @__PURE__ */ new WeakMap(), u = Object.getOwnPropertyDescriptor(Event.prototype, "currentTarget");
3109
3112
  function I() {
3110
3113
  var S;
3111
3114
  return (S = g.get(this)) !== null && S !== void 0 ? S : null;
3112
3115
  }
3113
- function f(S, G) {
3116
+ function f(S, L) {
3114
3117
  u !== void 0 && Object.defineProperty(S, "currentTarget", {
3115
3118
  configurable: !0,
3116
3119
  enumerable: !0,
3117
- get: G ?? u.get
3120
+ get: L ?? u.get
3118
3121
  });
3119
3122
  }
3120
3123
  const Q = {
@@ -3122,114 +3125,114 @@ function L0() {
3122
3125
  capture: {}
3123
3126
  }, y = {};
3124
3127
  function b() {
3125
- const S = function(G) {
3126
- const { type: x, eventPhase: L, bubbles: P } = G, K = Pr(G);
3127
- if (L === 2)
3128
+ const S = function(L) {
3129
+ const { type: x, eventPhase: G, bubbles: P } = L, K = Pr(L);
3130
+ if (G === 2)
3128
3131
  return;
3129
- const Z = L === 1 ? "capture" : "bubble";
3132
+ const Z = G === 1 ? "capture" : "bubble";
3130
3133
  let z = K;
3131
3134
  const q = [];
3132
3135
  for (; z === null && (z = window), q.push(z), z !== window; )
3133
3136
  z = z.parentNode || null;
3134
3137
  const ie = Q.capture[x], ee = Q.bubble[x];
3135
- if (A(G, "stopPropagation", i), A(G, "stopImmediatePropagation", r), f(G, I), Z === "capture") {
3138
+ if (A(L, "stopPropagation", i), A(L, "stopImmediatePropagation", r), f(L, I), Z === "capture") {
3136
3139
  if (ie === void 0)
3137
3140
  return;
3138
- for (let ne = q.length - 1; ne >= 0 && !n.has(G); --ne) {
3141
+ for (let ne = q.length - 1; ne >= 0 && !n.has(L); --ne) {
3139
3142
  const se = q[ne], Ee = ie.get(se);
3140
3143
  if (Ee !== void 0) {
3141
- g.set(G, se);
3144
+ g.set(L, se);
3142
3145
  for (const Fe of Ee) {
3143
- if (t.has(G))
3146
+ if (t.has(L))
3144
3147
  break;
3145
- Fe(G);
3148
+ Fe(L);
3146
3149
  }
3147
3150
  }
3148
3151
  if (ne === 0 && !P && ee !== void 0) {
3149
3152
  const Fe = ee.get(se);
3150
3153
  if (Fe !== void 0)
3151
3154
  for (const xe of Fe) {
3152
- if (t.has(G))
3155
+ if (t.has(L))
3153
3156
  break;
3154
- xe(G);
3157
+ xe(L);
3155
3158
  }
3156
3159
  }
3157
3160
  }
3158
3161
  } else if (Z === "bubble") {
3159
3162
  if (ee === void 0)
3160
3163
  return;
3161
- for (let ne = 0; ne < q.length && !n.has(G); ++ne) {
3164
+ for (let ne = 0; ne < q.length && !n.has(L); ++ne) {
3162
3165
  const se = q[ne], Ee = ee.get(se);
3163
3166
  if (Ee !== void 0) {
3164
- g.set(G, se);
3167
+ g.set(L, se);
3165
3168
  for (const Fe of Ee) {
3166
- if (t.has(G))
3169
+ if (t.has(L))
3167
3170
  break;
3168
- Fe(G);
3171
+ Fe(L);
3169
3172
  }
3170
3173
  }
3171
3174
  }
3172
3175
  }
3173
- c(G, "stopPropagation"), c(G, "stopImmediatePropagation"), f(G);
3176
+ c(L, "stopPropagation"), c(L, "stopImmediatePropagation"), f(L);
3174
3177
  };
3175
3178
  return S.displayName = "evtdUnifiedHandler", S;
3176
3179
  }
3177
3180
  function D() {
3178
- const S = function(G) {
3179
- const { type: x, eventPhase: L } = G;
3180
- if (L !== 2)
3181
+ const S = function(L) {
3182
+ const { type: x, eventPhase: G } = L;
3183
+ if (G !== 2)
3181
3184
  return;
3182
3185
  const P = y[x];
3183
- P !== void 0 && P.forEach((K) => K(G));
3186
+ P !== void 0 && P.forEach((K) => K(L));
3184
3187
  };
3185
3188
  return S.displayName = "evtdUnifiedWindowEventHandler", S;
3186
3189
  }
3187
3190
  const w = b(), k = D();
3188
- function M(S, G) {
3191
+ function M(S, L) {
3189
3192
  const x = Q[S];
3190
- return x[G] === void 0 && (x[G] = /* @__PURE__ */ new Map(), window.addEventListener(G, w, S === "capture")), x[G];
3193
+ return x[L] === void 0 && (x[L] = /* @__PURE__ */ new Map(), window.addEventListener(L, w, S === "capture")), x[L];
3191
3194
  }
3192
3195
  function F(S) {
3193
3196
  return y[S] === void 0 && (y[S] = /* @__PURE__ */ new Set(), window.addEventListener(S, k)), y[S];
3194
3197
  }
3195
- function O(S, G) {
3196
- let x = S.get(G);
3197
- return x === void 0 && S.set(G, x = /* @__PURE__ */ new Set()), x;
3198
+ function O(S, L) {
3199
+ let x = S.get(L);
3200
+ return x === void 0 && S.set(L, x = /* @__PURE__ */ new Set()), x;
3198
3201
  }
3199
- function J(S, G, x, L) {
3200
- const P = Q[G][x];
3202
+ function J(S, L, x, G) {
3203
+ const P = Q[L][x];
3201
3204
  if (P !== void 0) {
3202
3205
  const K = P.get(S);
3203
- if (K !== void 0 && K.has(L))
3206
+ if (K !== void 0 && K.has(G))
3204
3207
  return !0;
3205
3208
  }
3206
3209
  return !1;
3207
3210
  }
3208
- function T(S, G) {
3211
+ function T(S, L) {
3209
3212
  const x = y[S];
3210
- return !!(x !== void 0 && x.has(G));
3213
+ return !!(x !== void 0 && x.has(L));
3211
3214
  }
3212
- function H(S, G, x, L) {
3215
+ function H(S, L, x, G) {
3213
3216
  let P;
3214
- if (typeof L == "object" && L.once === !0 ? P = (ie) => {
3215
- U(S, G, P, L), x(ie);
3216
- } : P = x, N0(S, G, P, L))
3217
+ if (typeof G == "object" && G.once === !0 ? P = (ie) => {
3218
+ U(S, L, P, G), x(ie);
3219
+ } : P = x, N0(S, L, P, G))
3217
3220
  return;
3218
- const Z = L === !0 || typeof L == "object" && L.capture === !0 ? "capture" : "bubble", z = M(Z, S), q = O(z, G);
3219
- if (q.has(P) || q.add(P), G === window) {
3221
+ const Z = G === !0 || typeof G == "object" && G.capture === !0 ? "capture" : "bubble", z = M(Z, S), q = O(z, L);
3222
+ if (q.has(P) || q.add(P), L === window) {
3220
3223
  const ie = F(S);
3221
3224
  ie.has(P) || ie.add(P);
3222
3225
  }
3223
3226
  }
3224
- function U(S, G, x, L) {
3225
- if (M0(S, G, x, L))
3227
+ function U(S, L, x, G) {
3228
+ if (M0(S, L, x, G))
3226
3229
  return;
3227
- const K = L === !0 || typeof L == "object" && L.capture === !0, Z = K ? "capture" : "bubble", z = M(Z, S), q = O(z, G);
3228
- if (G === window && !J(G, K ? "bubble" : "capture", S, x) && T(S, x)) {
3230
+ const K = G === !0 || typeof G == "object" && G.capture === !0, Z = K ? "capture" : "bubble", z = M(Z, S), q = O(z, L);
3231
+ if (L === window && !J(L, K ? "bubble" : "capture", S, x) && T(S, x)) {
3229
3232
  const ee = y[S];
3230
3233
  ee.delete(x), ee.size === 0 && (window.removeEventListener(S, k), y[S] = void 0);
3231
3234
  }
3232
- q.has(x) && q.delete(x), q.size === 0 && z.delete(G), z.size === 0 && (window.removeEventListener(S, w, Z === "capture"), Q[Z][S] = void 0);
3235
+ q.has(x) && q.delete(x), q.size === 0 && z.delete(L), z.size === 0 && (window.removeEventListener(S, w, Z === "capture"), Q[Z][S] = void 0);
3233
3236
  }
3234
3237
  return {
3235
3238
  on: H,
@@ -4087,8 +4090,8 @@ const lC = yr([
4087
4090
  b.setAttribute("v-placement", T), M ? b.setAttribute("v-overlap", "") : b.removeAttribute("v-overlap");
4088
4091
  const { style: S } = b;
4089
4092
  O === "target" ? S.width = `${F.width}px` : O !== void 0 ? S.width = O : S.width = "", J === "target" ? S.minWidth = `${F.width}px` : J !== void 0 ? S.minWidth = J : S.minWidth = "";
4090
- const G = _a(b), x = _a(A.value), { left: L, top: P, placement: K } = AC(T, F, G, H, U, M), Z = oC(K, M), { left: z, top: q, transform: ie } = cC(K, x, F, P, L, M);
4091
- b.setAttribute("v-placement", K), b.style.setProperty("--v-offset-left", `${Math.round(L)}px`), b.style.setProperty("--v-offset-top", `${Math.round(P)}px`), b.style.transform = `translateX(${z}) translateY(${q}) ${ie}`, b.style.setProperty("--v-transform-origin", Z), b.style.transformOrigin = Z;
4093
+ const L = _a(b), x = _a(A.value), { left: G, top: P, placement: K } = AC(T, F, L, H, U, M), Z = oC(K, M), { left: z, top: q, transform: ie } = cC(K, x, F, P, G, M);
4094
+ b.setAttribute("v-placement", K), b.style.setProperty("--v-offset-left", `${Math.round(G)}px`), b.style.setProperty("--v-offset-top", `${Math.round(P)}px`), b.style.transform = `translateX(${z}) translateY(${q}) ${ie}`, b.style.setProperty("--v-transform-origin", Z), b.style.transformOrigin = Z;
4092
4095
  };
4093
4096
  bt(i, (b) => {
4094
4097
  b ? (c(), f()) : g();
@@ -4235,11 +4238,11 @@ var Kn = function(n) {
4235
4238
  return wr.get(n);
4236
4239
  if (Yg(n))
4237
4240
  return wr.set(n, Qc), Qc;
4238
- var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !fC && i.boxSizing === "border-box", c = CC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Mi(i.paddingTop), f = r ? 0 : Mi(i.paddingRight), Q = r ? 0 : Mi(i.paddingBottom), y = r ? 0 : Mi(i.paddingLeft), b = r ? 0 : Mi(i.borderTopWidth), D = r ? 0 : Mi(i.borderRightWidth), w = r ? 0 : Mi(i.borderBottomWidth), k = r ? 0 : Mi(i.borderLeftWidth), M = y + f, F = I + Q, O = k + D, J = b + w, T = u ? n.offsetHeight - J - n.clientHeight : 0, H = g ? n.offsetWidth - O - n.clientWidth : 0, U = A ? M + O : 0, S = A ? F + J : 0, G = r ? r.width : Mi(i.width) - U - H, x = r ? r.height : Mi(i.height) - S - T, L = G + M + H + O, P = x + F + T + J, K = Kn({
4239
- devicePixelContentBoxSize: gs(Math.round(G * devicePixelRatio), Math.round(x * devicePixelRatio), c),
4240
- borderBoxSize: gs(L, P, c),
4241
- contentBoxSize: gs(G, x, c),
4242
- contentRect: new Jg(y, I, G, x)
4241
+ var i = getComputedStyle(n), r = jA(n) && n.ownerSVGElement && n.getBBox(), A = !fC && i.boxSizing === "border-box", c = CC.test(i.writingMode || ""), g = !r && pc.test(i.overflowY || ""), u = !r && pc.test(i.overflowX || ""), I = r ? 0 : Mi(i.paddingTop), f = r ? 0 : Mi(i.paddingRight), Q = r ? 0 : Mi(i.paddingBottom), y = r ? 0 : Mi(i.paddingLeft), b = r ? 0 : Mi(i.borderTopWidth), D = r ? 0 : Mi(i.borderRightWidth), w = r ? 0 : Mi(i.borderBottomWidth), k = r ? 0 : Mi(i.borderLeftWidth), M = y + f, F = I + Q, O = k + D, J = b + w, T = u ? n.offsetHeight - J - n.clientHeight : 0, H = g ? n.offsetWidth - O - n.clientWidth : 0, U = A ? M + O : 0, S = A ? F + J : 0, L = r ? r.width : Mi(i.width) - U - H, x = r ? r.height : Mi(i.height) - S - T, G = L + M + H + O, P = x + F + T + J, K = Kn({
4242
+ devicePixelContentBoxSize: gs(Math.round(L * devicePixelRatio), Math.round(x * devicePixelRatio), c),
4243
+ borderBoxSize: gs(G, P, c),
4244
+ contentBoxSize: gs(L, x, c),
4245
+ contentRect: new Jg(y, I, L, x)
4243
4246
  });
4244
4247
  return wr.set(n, K), K;
4245
4248
  }, _g = function(n, t, i) {
@@ -5937,8 +5940,8 @@ function ii(n, t, i, r, A, c) {
5937
5940
  [n]: U = {}
5938
5941
  } = u?.mergedThemeOverridesRef.value || {}, {
5939
5942
  common: S,
5940
- peers: G = {}
5941
- } = U, x = Fr({}, Q || O || F || r.common, H, S, k), L = Fr(
5943
+ peers: L = {}
5944
+ } = U, x = Fr({}, Q || O || F || r.common, H, S, k), G = Fr(
5942
5945
  // {}, executed every time, no need for empty obj
5943
5946
  (f = y || J || r.self) === null || f === void 0 ? void 0 : f(x),
5944
5947
  w,
@@ -5947,9 +5950,9 @@ function ii(n, t, i, r, A, c) {
5947
5950
  );
5948
5951
  return {
5949
5952
  common: x,
5950
- self: L,
5953
+ self: G,
5951
5954
  peers: Fr({}, r.peers, T, b),
5952
- peerOverrides: Fr({}, w.peers, G, M)
5955
+ peerOverrides: Fr({}, w.peers, L, M)
5953
5956
  };
5954
5957
  });
5955
5958
  }
@@ -6456,7 +6459,7 @@ const XE = {
6456
6459
  inlineThemeDisabled: i,
6457
6460
  mergedRtlRef: r
6458
6461
  } = Bs(n), A = ph("Scrollbar", r, t), c = V(null), g = V(null), u = V(null), I = V(null), f = V(null), Q = V(null), y = V(null), b = V(null), D = V(null), w = V(null), k = V(null), M = V(0), F = V(0), O = V(!1), J = V(!1);
6459
- let T = !1, H = !1, U, S, G = 0, x = 0, L = 0, P = 0;
6462
+ let T = !1, H = !1, U, S, L = 0, x = 0, G = 0, P = 0;
6460
6463
  const K = J0(), Z = ii("Scrollbar", "-scrollbar", VE, XE, n, t), z = Ae(() => {
6461
6464
  const {
6462
6465
  value: X
@@ -6571,7 +6574,7 @@ const XE = {
6571
6574
  onResize: he
6572
6575
  } = n;
6573
6576
  he && he(X), Ut();
6574
- }, we = (X, he) => {
6577
+ }, Se = (X, he) => {
6575
6578
  if (!n.scrollable) return;
6576
6579
  const {
6577
6580
  value: Ie
@@ -6608,17 +6611,17 @@ const XE = {
6608
6611
  Me(), Je(), Ut();
6609
6612
  }
6610
6613
  function ge() {
6611
- le();
6614
+ ce();
6612
6615
  }
6613
- function le() {
6614
- Se(), Te();
6616
+ function ce() {
6617
+ we(), Ge();
6615
6618
  }
6616
- function Se() {
6619
+ function we() {
6617
6620
  S !== void 0 && window.clearTimeout(S), S = window.setTimeout(() => {
6618
6621
  J.value = !1;
6619
6622
  }, n.duration);
6620
6623
  }
6621
- function Te() {
6624
+ function Ge() {
6622
6625
  U !== void 0 && window.clearTimeout(U), U = window.setTimeout(() => {
6623
6626
  O.value = !1;
6624
6627
  }, n.duration);
@@ -6677,7 +6680,7 @@ const XE = {
6677
6680
  return !(!((he = c.value) === null || he === void 0) && he.contains(Vr(X)));
6678
6681
  }
6679
6682
  function ni(X) {
6680
- X.preventDefault(), X.stopPropagation(), H = !0, wt("mousemove", window, jt, !0), wt("mouseup", window, gi, !0), x = F.value, L = A?.value ? window.innerWidth - X.clientX : X.clientX;
6683
+ X.preventDefault(), X.stopPropagation(), H = !0, wt("mousemove", window, jt, !0), wt("mouseup", window, gi, !0), x = F.value, G = A?.value ? window.innerWidth - X.clientX : X.clientX;
6681
6684
  }
6682
6685
  function jt(X) {
6683
6686
  if (!H) return;
@@ -6690,7 +6693,7 @@ const XE = {
6690
6693
  value: Ye
6691
6694
  } = ie;
6692
6695
  if (he === null || Ie === null) return;
6693
- const Bt = (A?.value ? window.innerWidth - X.clientX - L : X.clientX - L) * (Ie - he) / (he - Ye), xt = Ie - he;
6696
+ const Bt = (A?.value ? window.innerWidth - X.clientX - G : X.clientX - G) * (Ie - he) / (he - Ye), xt = Ie - he;
6694
6697
  let nt = x + Bt;
6695
6698
  nt = Math.min(xt, nt), nt = Math.max(nt, 0);
6696
6699
  const {
@@ -6705,10 +6708,10 @@ const XE = {
6705
6708
  }
6706
6709
  }
6707
6710
  function gi(X) {
6708
- X.preventDefault(), X.stopPropagation(), ut("mousemove", window, jt, !0), ut("mouseup", window, gi, !0), H = !1, Ut(), Nt(X) && le();
6711
+ X.preventDefault(), X.stopPropagation(), ut("mousemove", window, jt, !0), ut("mouseup", window, gi, !0), H = !1, Ut(), Nt(X) && ce();
6709
6712
  }
6710
6713
  function hi(X) {
6711
- X.preventDefault(), X.stopPropagation(), T = !0, wt("mousemove", window, ji, !0), wt("mouseup", window, Wi, !0), G = M.value, P = X.clientY;
6714
+ X.preventDefault(), X.stopPropagation(), T = !0, wt("mousemove", window, ji, !0), wt("mouseup", window, Wi, !0), L = M.value, P = X.clientY;
6712
6715
  }
6713
6716
  function ji(X) {
6714
6717
  if (!T) return;
@@ -6722,7 +6725,7 @@ const XE = {
6722
6725
  } = z;
6723
6726
  if (he === null || Ie === null) return;
6724
6727
  const Bt = (X.clientY - P) * (Ie - he) / (he - Ye), xt = Ie - he;
6725
- let nt = G + Bt;
6728
+ let nt = L + Bt;
6726
6729
  nt = Math.min(xt, nt), nt = Math.max(nt, 0);
6727
6730
  const {
6728
6731
  value: Mt
@@ -6730,7 +6733,7 @@ const XE = {
6730
6733
  Mt && (Mt.scrollTop = nt);
6731
6734
  }
6732
6735
  function Wi(X) {
6733
- X.preventDefault(), X.stopPropagation(), ut("mousemove", window, ji, !0), ut("mouseup", window, Wi, !0), T = !1, Ut(), Nt(X) && le();
6736
+ X.preventDefault(), X.stopPropagation(), ut("mousemove", window, ji, !0), ut("mouseup", window, Wi, !0), T = !1, Ut(), Nt(X) && ce();
6734
6737
  }
6735
6738
  Oi(() => {
6736
6739
  const {
@@ -6816,7 +6819,7 @@ const XE = {
6816
6819
  }), vi = i ? Es("scrollbar", void 0, gn, n) : void 0;
6817
6820
  return Object.assign(Object.assign({}, {
6818
6821
  scrollTo: ue,
6819
- scrollBy: we,
6822
+ scrollBy: Se,
6820
6823
  sync: Ut,
6821
6824
  syncUnifiedContainer: Ve,
6822
6825
  handleMouseEnterWrapper: gt,
@@ -7056,26 +7059,26 @@ function nA(n, t) {
7056
7059
  if (T.isLeaf)
7057
7060
  continue;
7058
7061
  const { key: H, shallowLoaded: U } = T;
7059
- if (D && U && T.children.forEach((L) => {
7060
- !L.disabled && !L.isLeaf && L.shallowLoaded && w.has(L.key) && w.delete(L.key);
7062
+ if (D && U && T.children.forEach((G) => {
7063
+ !G.disabled && !G.isLeaf && G.shallowLoaded && w.has(G.key) && w.delete(G.key);
7061
7064
  }), T.disabled || !U)
7062
7065
  continue;
7063
- let S = !0, G = !1, x = !0;
7064
- for (const L of T.children) {
7065
- const P = L.key;
7066
- if (!L.disabled) {
7066
+ let S = !0, L = !1, x = !0;
7067
+ for (const G of T.children) {
7068
+ const P = G.key;
7069
+ if (!G.disabled) {
7067
7070
  if (x && (x = !1), w.has(P))
7068
- G = !0;
7071
+ L = !0;
7069
7072
  else if (k.has(P)) {
7070
- G = !0, S = !1;
7073
+ L = !0, S = !1;
7071
7074
  break;
7072
- } else if (S = !1, G)
7075
+ } else if (S = !1, L)
7073
7076
  break;
7074
7077
  }
7075
7078
  }
7076
- S && !x ? (b && T.children.forEach((L) => {
7077
- !L.disabled && w.has(L.key) && w.delete(L.key);
7078
- }), w.add(H)) : G && k.add(H), O && D && w.has(H) && w.delete(H);
7079
+ S && !x ? (b && T.children.forEach((G) => {
7080
+ !G.disabled && w.has(G.key) && w.delete(G.key);
7081
+ }), w.add(H)) : L && k.add(H), O && D && w.has(H) && w.delete(H);
7079
7082
  }
7080
7083
  }
7081
7084
  return {
@@ -7307,38 +7310,38 @@ function yp(n, t = {}) {
7307
7310
  return Ip(T, H, J);
7308
7311
  },
7309
7312
  getCheckedKeys(T, H = {}) {
7310
- const { cascade: U = !0, leafOnly: S = !1, checkStrategy: G = "all", allowNotLoaded: x = !1 } = H;
7313
+ const { cascade: U = !0, leafOnly: S = !1, checkStrategy: L = "all", allowNotLoaded: x = !1 } = H;
7311
7314
  return nA({
7312
7315
  checkedKeys: tA(T),
7313
7316
  indeterminateKeys: iA(T),
7314
7317
  cascade: U,
7315
7318
  leafOnly: S,
7316
- checkStrategy: G,
7319
+ checkStrategy: L,
7317
7320
  allowNotLoaded: x
7318
7321
  }, J);
7319
7322
  },
7320
7323
  check(T, H, U = {}) {
7321
- const { cascade: S = !0, leafOnly: G = !1, checkStrategy: x = "all", allowNotLoaded: L = !1 } = U;
7324
+ const { cascade: S = !0, leafOnly: L = !1, checkStrategy: x = "all", allowNotLoaded: G = !1 } = U;
7322
7325
  return nA({
7323
7326
  checkedKeys: tA(H),
7324
7327
  indeterminateKeys: iA(H),
7325
7328
  keysToCheck: T == null ? [] : Al(T),
7326
7329
  cascade: S,
7327
- leafOnly: G,
7330
+ leafOnly: L,
7328
7331
  checkStrategy: x,
7329
- allowNotLoaded: L
7332
+ allowNotLoaded: G
7330
7333
  }, J);
7331
7334
  },
7332
7335
  uncheck(T, H, U = {}) {
7333
- const { cascade: S = !0, leafOnly: G = !1, checkStrategy: x = "all", allowNotLoaded: L = !1 } = U;
7336
+ const { cascade: S = !0, leafOnly: L = !1, checkStrategy: x = "all", allowNotLoaded: G = !1 } = U;
7334
7337
  return nA({
7335
7338
  checkedKeys: tA(H),
7336
7339
  indeterminateKeys: iA(H),
7337
7340
  keysToUncheck: T == null ? [] : Al(T),
7338
7341
  cascade: S,
7339
- leafOnly: G,
7342
+ leafOnly: L,
7340
7343
  checkStrategy: x,
7341
- allowNotLoaded: L
7344
+ allowNotLoaded: G
7342
7345
  }, J);
7343
7346
  },
7344
7347
  getNonLeafKeys(T = {}) {
@@ -7625,26 +7628,26 @@ const vp = dt({
7625
7628
  const b = Ae(() => {
7626
7629
  const {
7627
7630
  trigger: S,
7628
- onClickoutside: G
7631
+ onClickoutside: L
7629
7632
  } = n, x = [], {
7630
7633
  positionManuallyRef: {
7631
- value: L
7634
+ value: G
7632
7635
  }
7633
7636
  } = I;
7634
- return L || (S === "click" && !G && x.push([hc, T, void 0, {
7637
+ return G || (S === "click" && !L && x.push([hc, T, void 0, {
7635
7638
  capture: !0
7636
- }]), S === "hover" && x.push([X0, J])), G && x.push([hc, T, void 0, {
7639
+ }]), S === "hover" && x.push([X0, J])), L && x.push([hc, T, void 0, {
7637
7640
  capture: !0
7638
7641
  }]), (n.displayDirective === "show" || n.animated && y.value) && x.push([Td, n.show]), x;
7639
7642
  }), D = Ae(() => {
7640
7643
  const {
7641
7644
  common: {
7642
7645
  cubicBezierEaseInOut: S,
7643
- cubicBezierEaseIn: G,
7646
+ cubicBezierEaseIn: L,
7644
7647
  cubicBezierEaseOut: x
7645
7648
  },
7646
7649
  self: {
7647
- space: L,
7650
+ space: G,
7648
7651
  spaceArrow: P,
7649
7652
  padding: K,
7650
7653
  fontSize: Z,
@@ -7661,7 +7664,7 @@ const vp = dt({
7661
7664
  return {
7662
7665
  "--n-box-shadow": ee,
7663
7666
  "--n-bezier": S,
7664
- "--n-bezier-ease-in": G,
7667
+ "--n-bezier-ease-in": L,
7665
7668
  "--n-bezier-ease-out": x,
7666
7669
  "--n-font-size": Z,
7667
7670
  "--n-text-color": z,
@@ -7672,23 +7675,23 @@ const vp = dt({
7672
7675
  "--n-arrow-offset": Ee,
7673
7676
  "--n-arrow-offset-vertical": Fe,
7674
7677
  "--n-padding": K,
7675
- "--n-space": L,
7678
+ "--n-space": G,
7676
7679
  "--n-space-arrow": P
7677
7680
  };
7678
7681
  }), w = Ae(() => {
7679
- const S = n.width === "trigger" ? void 0 : Jr(n.width), G = [];
7680
- S && G.push({
7682
+ const S = n.width === "trigger" ? void 0 : Jr(n.width), L = [];
7683
+ S && L.push({
7681
7684
  width: S
7682
7685
  });
7683
7686
  const {
7684
7687
  maxWidth: x,
7685
- minWidth: L
7688
+ minWidth: G
7686
7689
  } = n;
7687
- return x && G.push({
7690
+ return x && L.push({
7688
7691
  maxWidth: Jr(x)
7689
- }), L && G.push({
7690
- maxWidth: Jr(L)
7691
- }), c || G.push(D.value), G;
7692
+ }), G && L.push({
7693
+ maxWidth: Jr(G)
7694
+ }), c || L.push(D.value), L;
7692
7695
  }), k = c ? Es("popover", void 0, D, n) : void 0;
7693
7696
  I.setBodyInstance({
7694
7697
  syncPosition: M
@@ -7720,16 +7723,16 @@ const vp = dt({
7720
7723
  function U() {
7721
7724
  if (k?.onRender(), !(n.displayDirective === "show" || n.show || n.animated && y.value))
7722
7725
  return null;
7723
- let G;
7726
+ let L;
7724
7727
  const x = I.internalRenderBodyRef.value, {
7725
- value: L
7728
+ value: G
7726
7729
  } = A;
7727
7730
  if (x)
7728
- G = x(
7731
+ L = x(
7729
7732
  // The popover class and overlap class must exists, they will be used
7730
7733
  // to place the body & transition animation.
7731
7734
  // Shadow class exists for reuse box-shadow.
7732
- [`${L}-popover-shared`, k?.themeClass.value, n.overlap && `${L}-popover-shared--overlap`, n.showArrow && `${L}-popover-shared--show-arrow`, n.arrowPointToCenter && `${L}-popover-shared--center-arrow`],
7735
+ [`${G}-popover-shared`, k?.themeClass.value, n.overlap && `${G}-popover-shared--overlap`, n.showArrow && `${G}-popover-shared--show-arrow`, n.arrowPointToCenter && `${G}-popover-shared--center-arrow`],
7733
7736
  f,
7734
7737
  w.value,
7735
7738
  F,
@@ -7743,19 +7746,19 @@ const vp = dt({
7743
7746
  } = n, Z = !Rc(t.header) || !Rc(t.footer), z = () => {
7744
7747
  var q, ie;
7745
7748
  const ee = Z ? re(qt, null, Yr(t.header, (Ee) => Ee ? re("div", {
7746
- class: [`${L}-popover__header`, n.headerClass],
7749
+ class: [`${G}-popover__header`, n.headerClass],
7747
7750
  style: n.headerStyle
7748
7751
  }, Ee) : null), Yr(t.default, (Ee) => Ee ? re("div", {
7749
- class: [`${L}-popover__content`, n.contentClass],
7752
+ class: [`${G}-popover__content`, n.contentClass],
7750
7753
  style: n.contentStyle
7751
7754
  }, t) : null), Yr(t.footer, (Ee) => Ee ? re("div", {
7752
- class: [`${L}-popover__footer`, n.footerClass],
7755
+ class: [`${G}-popover__footer`, n.footerClass],
7753
7756
  style: n.footerStyle
7754
7757
  }, Ee) : null)) : n.scrollable ? (q = t.default) === null || q === void 0 ? void 0 : q.call(t) : re("div", {
7755
- class: [`${L}-popover__content`, n.contentClass],
7758
+ class: [`${G}-popover__content`, n.contentClass],
7756
7759
  style: n.contentStyle
7757
7760
  }, t), ne = n.scrollable ? re(wh, {
7758
- contentClass: Z ? void 0 : `${L}-popover__content ${(ie = n.contentClass) !== null && ie !== void 0 ? ie : ""}`,
7761
+ contentClass: Z ? void 0 : `${G}-popover__content ${(ie = n.contentClass) !== null && ie !== void 0 ? ie : ""}`,
7759
7762
  contentStyle: Z ? void 0 : n.contentStyle
7760
7763
  }, {
7761
7764
  default: () => ee
@@ -7764,18 +7767,18 @@ const vp = dt({
7764
7767
  arrowStyle: n.arrowStyle,
7765
7768
  arrowWrapperClass: n.arrowWrapperClass,
7766
7769
  arrowWrapperStyle: n.arrowWrapperStyle,
7767
- clsPrefix: L
7770
+ clsPrefix: G
7768
7771
  }) : null;
7769
7772
  return [ne, se];
7770
7773
  };
7771
- G = re("div", sr({
7772
- class: [`${L}-popover`, `${L}-popover-shared`, k?.themeClass.value, P.map((q) => `${L}-${q}`), {
7773
- [`${L}-popover--scrollable`]: n.scrollable,
7774
- [`${L}-popover--show-header-or-footer`]: Z,
7775
- [`${L}-popover--raw`]: n.raw,
7776
- [`${L}-popover-shared--overlap`]: n.overlap,
7777
- [`${L}-popover-shared--show-arrow`]: n.showArrow,
7778
- [`${L}-popover-shared--center-arrow`]: n.arrowPointToCenter
7774
+ L = re("div", sr({
7775
+ class: [`${G}-popover`, `${G}-popover-shared`, k?.themeClass.value, P.map((q) => `${G}-${q}`), {
7776
+ [`${G}-popover--scrollable`]: n.scrollable,
7777
+ [`${G}-popover--show-header-or-footer`]: Z,
7778
+ [`${G}-popover--raw`]: n.raw,
7779
+ [`${G}-popover-shared--overlap`]: n.overlap,
7780
+ [`${G}-popover-shared--show-arrow`]: n.showArrow,
7781
+ [`${G}-popover-shared--center-arrow`]: n.arrowPointToCenter
7779
7782
  }],
7780
7783
  ref: f,
7781
7784
  style: w.value,
@@ -7789,7 +7792,7 @@ const vp = dt({
7789
7792
  default: z
7790
7793
  }) : z());
7791
7794
  }
7792
- return fs(G, b.value);
7795
+ return fs(L, b.value);
7793
7796
  }
7794
7797
  return {
7795
7798
  displayed: y,
@@ -8029,7 +8032,7 @@ const oo = {
8029
8032
  function S() {
8030
8033
  U();
8031
8034
  }
8032
- function G(q) {
8035
+ function L(q) {
8033
8036
  var ie;
8034
8037
  I() && (n.trigger === "click" && (F(), O(), k(!1)), (ie = n.onClickoutside) === null || ie === void 0 || ie.call(n, q));
8035
8038
  }
@@ -8040,7 +8043,7 @@ const oo = {
8040
8043
  k(q);
8041
8044
  }
8042
8045
  }
8043
- function L(q) {
8046
+ function G(q) {
8044
8047
  n.internalTrapFocus && q.key === "Escape" && (F(), O(), k(!1));
8045
8048
  }
8046
8049
  function P(q) {
@@ -8055,10 +8058,10 @@ const oo = {
8055
8058
  }
8056
8059
  return fi("NPopover", {
8057
8060
  getTriggerElement: K,
8058
- handleKeydown: L,
8061
+ handleKeydown: G,
8059
8062
  handleMouseEnter: H,
8060
8063
  handleMouseLeave: U,
8061
- handleClickOutside: G,
8064
+ handleClickOutside: L,
8062
8065
  handleMouseMoveOutside: S,
8063
8066
  setBodyInstance: Z,
8064
8067
  positionManuallyRef: w,
@@ -8431,16 +8434,16 @@ const Gp = {
8431
8434
  if (S !== void 0) return S;
8432
8435
  if (t) {
8433
8436
  const {
8434
- value: G
8437
+ value: L
8435
8438
  } = t.mergedSizeRef;
8436
- if (G !== void 0)
8437
- return G;
8439
+ if (L !== void 0)
8440
+ return L;
8438
8441
  }
8439
8442
  if (U) {
8440
8443
  const {
8441
- mergedSize: G
8444
+ mergedSize: L
8442
8445
  } = U;
8443
- if (G !== void 0) return G.value;
8446
+ if (L !== void 0) return L.value;
8444
8447
  }
8445
8448
  return "medium";
8446
8449
  },
@@ -8453,18 +8456,18 @@ const Gp = {
8453
8456
  if (t.disabledRef.value) return !0;
8454
8457
  const {
8455
8458
  maxRef: {
8456
- value: G
8459
+ value: L
8457
8460
  },
8458
8461
  checkedCountRef: x
8459
8462
  } = t;
8460
- if (G !== void 0 && x.value >= G && !f.value)
8463
+ if (L !== void 0 && x.value >= L && !f.value)
8461
8464
  return !0;
8462
8465
  const {
8463
8466
  minRef: {
8464
- value: L
8467
+ value: G
8465
8468
  }
8466
8469
  } = t;
8467
- if (L !== void 0 && x.value <= L && f.value)
8470
+ if (G !== void 0 && x.value <= G && f.value)
8468
8471
  return !0;
8469
8472
  }
8470
8473
  return U ? U.disabled.value : !1;
@@ -8479,13 +8482,13 @@ const Gp = {
8479
8482
  else {
8480
8483
  const {
8481
8484
  onChange: S,
8482
- "onUpdate:checked": G,
8485
+ "onUpdate:checked": L,
8483
8486
  onUpdateChecked: x
8484
8487
  } = n, {
8485
- nTriggerFormInput: L,
8488
+ nTriggerFormInput: G,
8486
8489
  nTriggerFormChange: P
8487
8490
  } = Q, K = f.value ? n.uncheckedValue : n.checkedValue;
8488
- G && Di(G, K, U), x && Di(x, K, U), S && Di(S, K, U), L(), P(), g.value = K;
8491
+ L && Di(L, K, U), x && Di(x, K, U), S && Di(S, K, U), G(), P(), g.value = K;
8489
8492
  }
8490
8493
  }
8491
8494
  function k(U) {
@@ -8522,9 +8525,9 @@ const Gp = {
8522
8525
  cubicBezierEaseInOut: S
8523
8526
  },
8524
8527
  self: {
8525
- borderRadius: G,
8528
+ borderRadius: L,
8526
8529
  color: x,
8527
- colorChecked: L,
8530
+ colorChecked: G,
8528
8531
  colorDisabled: P,
8529
8532
  colorTableHeader: K,
8530
8533
  colorTableHeaderModal: Z,
@@ -8553,7 +8556,7 @@ const Gp = {
8553
8556
  "--n-label-font-weight": W,
8554
8557
  "--n-size": Qe,
8555
8558
  "--n-bezier": S,
8556
- "--n-border-radius": G,
8559
+ "--n-border-radius": L,
8557
8560
  "--n-border": ee,
8558
8561
  "--n-border-checked": Ee,
8559
8562
  "--n-border-focus": ne,
@@ -8561,7 +8564,7 @@ const Gp = {
8561
8564
  "--n-border-disabled-checked": Ce,
8562
8565
  "--n-box-shadow-focus": Fe,
8563
8566
  "--n-color": x,
8564
- "--n-color-checked": L,
8567
+ "--n-color-checked": G,
8565
8568
  "--n-color-table": K,
8566
8569
  "--n-color-table-modal": Z,
8567
8570
  "--n-color-table-popover": z,
@@ -9006,15 +9009,15 @@ const Nh = dt({
9006
9009
  value: xe
9007
9010
  } = c;
9008
9011
  return se !== null ? xe.includes(ee) : Ee !== null ? xe.includes(ee) && xe[xe.length - 1] !== ee : Fe !== null ? xe.includes(ee) : !1;
9009
- }), S = Ae(() => r.value === null && !u.value), G = _0(U, 300, S), x = Ae(() => !!M?.enteringSubmenuRef.value), L = V(!1);
9012
+ }), S = Ae(() => r.value === null && !u.value), L = _0(U, 300, S), x = Ae(() => !!M?.enteringSubmenuRef.value), G = V(!1);
9010
9013
  fi(gl, {
9011
- enteringSubmenuRef: L
9014
+ enteringSubmenuRef: G
9012
9015
  });
9013
9016
  function P() {
9014
- L.value = !0;
9017
+ G.value = !0;
9015
9018
  }
9016
9019
  function K() {
9017
- L.value = !1;
9020
+ G.value = !1;
9018
9021
  }
9019
9022
  function Z() {
9020
9023
  const {
@@ -9057,7 +9060,7 @@ const Nh = dt({
9057
9060
  menuProps: k,
9058
9061
  popoverBody: O,
9059
9062
  animated: u,
9060
- mergedShowSubmenu: Ae(() => G.value && !x.value),
9063
+ mergedShowSubmenu: Ae(() => L.value && !x.value),
9061
9064
  rawNode: J,
9062
9065
  hasSubmenu: T,
9063
9066
  pending: Hi(() => {
@@ -9601,10 +9604,10 @@ const Nh = dt({
9601
9604
  x("down");
9602
9605
  }
9603
9606
  function S() {
9604
- const K = G();
9607
+ const K = L();
9605
9608
  K?.isLeaf && i.value && (k(K.key, K.rawNode), M(!1));
9606
9609
  }
9607
- function G() {
9610
+ function L() {
9608
9611
  var K;
9609
9612
  const {
9610
9613
  value: Z
@@ -9626,7 +9629,7 @@ const Nh = dt({
9626
9629
  const ie = z();
9627
9630
  ie !== null && (q = ie.key);
9628
9631
  } else {
9629
- const ie = G();
9632
+ const ie = L();
9630
9633
  if (ie) {
9631
9634
  let ee;
9632
9635
  switch (K) {
@@ -9648,7 +9651,7 @@ const Nh = dt({
9648
9651
  }
9649
9652
  q !== null && (c.value = null, g.value = q);
9650
9653
  }
9651
- const L = Ae(() => {
9654
+ const G = Ae(() => {
9652
9655
  const {
9653
9656
  size: K,
9654
9657
  inverted: Z
@@ -9684,7 +9687,7 @@ const Nh = dt({
9684
9687
  "--n-option-opacity-disabled": se
9685
9688
  };
9686
9689
  return Z ? ($["--n-color"] = q.colorInverted, $["--n-option-color-hover"] = q.optionColorHoverInverted, $["--n-option-color-active"] = q.optionColorActiveInverted, $["--n-option-text-color"] = q.optionTextColorInverted, $["--n-option-text-color-hover"] = q.optionTextColorHoverInverted, $["--n-option-text-color-active"] = q.optionTextColorActiveInverted, $["--n-option-text-color-child-active"] = q.optionTextColorChildActiveInverted, $["--n-prefix-color"] = q.prefixColorInverted, $["--n-suffix-color"] = q.suffixColorInverted, $["--n-group-header-text-color"] = q.groupHeaderTextColorInverted) : ($["--n-color"] = q.color, $["--n-option-color-hover"] = q.optionColorHover, $["--n-option-color-active"] = q.optionColorActive, $["--n-option-text-color"] = q.optionTextColor, $["--n-option-text-color-hover"] = q.optionTextColorHover, $["--n-option-text-color-active"] = q.optionTextColorActive, $["--n-option-text-color-child-active"] = q.optionTextColorChildActive, $["--n-prefix-color"] = q.prefixColor, $["--n-suffix-color"] = q.suffixColor, $["--n-group-header-text-color"] = q.groupHeaderTextColor), $;
9687
- }), P = D ? Es("dropdown", Ae(() => `${n.size[0]}${n.inverted ? "i" : ""}`), L, n) : void 0;
9690
+ }), P = D ? Es("dropdown", Ae(() => `${n.size[0]}${n.inverted ? "i" : ""}`), G, n) : void 0;
9688
9691
  return {
9689
9692
  mergedClsPrefix: b,
9690
9693
  mergedTheme: w,
@@ -9697,7 +9700,7 @@ const Nh = dt({
9697
9700
  n.animated && F();
9698
9701
  },
9699
9702
  doUpdateShow: M,
9700
- cssVars: D ? void 0 : L,
9703
+ cssVars: D ? void 0 : G,
9701
9704
  themeClass: P?.themeClass,
9702
9705
  onRender: P?.onRender
9703
9706
  };
@@ -10299,11 +10302,11 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10299
10302
  editorCommentPositions: J
10300
10303
  } = Ei(g), { activeZoom: T } = Ei(c), H = V(!0);
10301
10304
  V(!1);
10302
- const U = V(null), S = V(null), G = Ae(() => D.value === r.comment.commentId), x = Ae(() => !b.readOnly && G.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), L = Ae(() => (W) => P.value && W === K.value.length - 1 ? !0 : K.value.length > 1 && W !== K.value.length - 1), P = Ae(() => !b.readOnly && G.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), K = Ae(() => {
10305
+ const U = V(null), S = V(null), L = Ae(() => D.value === r.comment.commentId), x = Ae(() => !b.readOnly && L.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), G = Ae(() => (W) => P.value && W === K.value.length - 1 ? !0 : K.value.length > 1 && W !== K.value.length - 1), P = Ae(() => !b.readOnly && L.value && !r.comment.resolvedTime && O.value !== r.comment.commentId), K = Ae(() => {
10303
10306
  const W = r.comment;
10304
10307
  return g.commentsList.filter((me) => {
10305
- const Qe = me.parentCommentId === W.commentId, we = me.commentId === r.comment.commentId;
10306
- return Qe || we;
10308
+ const Qe = me.parentCommentId === W.commentId, Se = me.commentId === r.comment.commentId;
10309
+ return Qe || Se;
10307
10310
  }).sort((me, Qe) => me.commentId === r.comment.commentId && me.createdTime - Qe.createdTime);
10308
10311
  }), Z = Ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), z = Ae(() => (W) => O.value === W.commentId), q = Ae(() => A.$superdoc.config.isInternal ? !y.value && !r.comment.trackedChange : !1), ie = Ae(() => M.value && M.value !== "<p></p>"), ee = () => {
10309
10312
  r.comment.resolvedTime || (D.value = r.comment.commentId, r.comment.setActive(A.$superdoc));
@@ -10353,7 +10356,7 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10353
10356
  me ? k.value.isInternal = Qe : r.comment.setIsInternal({ isInternal: Qe, superdoc: A.$superdoc });
10354
10357
  }, ft = Ae(() => {
10355
10358
  const W = {};
10356
- if (r.comment, G.value && (W.backgroundColor = "white", W.zIndex = 50), k.value && k.value.commentId === r.comment.commentId) {
10359
+ if (r.comment, L.value && (W.backgroundColor = "white", W.zIndex = 50), k.value && k.value.commentId === r.comment.commentId) {
10357
10360
  const me = Math.max(96, k.value.selection?.selectionBounds.top - 50);
10358
10361
  W.position = "absolute", W.top = me + "px";
10359
10362
  }
@@ -10372,7 +10375,7 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10372
10375
  }), (W, me) => {
10373
10376
  const Qe = Zl("click-outside");
10374
10377
  return fs((pe(), ye("div", {
10375
- class: js(["comments-dialog", { "is-active": G.value, "is-resolved": r.comment.resolvedTime }]),
10378
+ class: js(["comments-dialog", { "is-active": L.value, "is-resolved": r.comment.resolvedTime }]),
10376
10379
  onClick: wi(ee, ["stop", "prevent"]),
10377
10380
  style: ci(ft.value),
10378
10381
  ref_key: "commentDialogElement",
@@ -10388,47 +10391,47 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10388
10391
  onSelect: st
10389
10392
  }, null, 8, ["is-disabled", "state"])
10390
10393
  ])) : tt("", !0),
10391
- (pe(!0), ye(qt, null, An(K.value, (we, _e) => (pe(), ye("div", {
10394
+ (pe(!0), ye(qt, null, An(K.value, (Se, _e) => (pe(), ye("div", {
10392
10395
  key: _e,
10393
10396
  class: "conversation-item"
10394
10397
  }, [
10395
10398
  Si(Gh, {
10396
10399
  config: Oe(b),
10397
- timestamp: Ce(we.createdTime),
10398
- comment: we,
10400
+ timestamp: Ce(Se.createdTime),
10401
+ comment: Se,
10399
10402
  onResolve: Fe,
10400
10403
  onReject: Ee,
10401
- onOverflowSelect: (gt) => xe(gt, we)
10404
+ onOverflowSelect: (gt) => xe(gt, Se)
10402
10405
  }, null, 8, ["config", "timestamp", "comment", "onOverflowSelect"]),
10403
- we.trackedChange ? (pe(), ye("div", KQ, [
10406
+ Se.trackedChange ? (pe(), ye("div", KQ, [
10404
10407
  Xe("div", _Q, [
10405
10408
  Xe("div", qQ, [
10406
- we.trackedChangeType === "trackFormat" ? (pe(), ye("div", jQ, [
10409
+ Se.trackedChangeType === "trackFormat" ? (pe(), ye("div", jQ, [
10407
10410
  me[2] || (me[2] = Xe("span", { class: "change-type" }, "Format: ", -1)),
10408
- Xe("span", WQ, Bi(we.trackedChangeText), 1)
10411
+ Xe("span", WQ, Bi(Se.trackedChangeText), 1)
10409
10412
  ])) : tt("", !0),
10410
- we.trackedChangeText && we.trackedChangeType !== "trackFormat" ? (pe(), ye("div", XQ, [
10413
+ Se.trackedChangeText && Se.trackedChangeType !== "trackFormat" ? (pe(), ye("div", XQ, [
10411
10414
  me[3] || (me[3] = Xe("span", { class: "change-type" }, "Added: ", -1)),
10412
- Xe("span", VQ, Bi(we.trackedChangeText), 1)
10415
+ Xe("span", VQ, Bi(Se.trackedChangeText), 1)
10413
10416
  ])) : tt("", !0),
10414
- we.deletedText && we.trackedChangeType !== "trackFormat" ? (pe(), ye("div", zQ, [
10417
+ Se.deletedText && Se.trackedChangeType !== "trackFormat" ? (pe(), ye("div", zQ, [
10415
10418
  me[4] || (me[4] = Xe("span", { class: "change-type" }, "Deleted: ", -1)),
10416
- Xe("span", ZQ, Bi(we.deletedText), 1)
10419
+ Xe("span", ZQ, Bi(Se.deletedText), 1)
10417
10420
  ])) : tt("", !0)
10418
10421
  ])
10419
10422
  ])
10420
10423
  ])) : tt("", !0),
10421
- we.trackedChange ? tt("", !0) : (pe(), ye("div", $Q, [
10422
- !Oe(F) && !z.value(we) ? (pe(), ye("div", {
10424
+ Se.trackedChange ? tt("", !0) : (pe(), ye("div", $Q, [
10425
+ !Oe(F) && !z.value(Se) ? (pe(), ye("div", {
10423
10426
  key: 0,
10424
10427
  class: "comment",
10425
- innerHTML: we.commentText
10426
- }, null, 8, em)) : Oe(F) && !z.value(we) ? (pe(), ye("div", tm, Bi(Oe(J)[we.importedId !== void 0 ? we.importedId : we.commentId]?.bounds), 1)) : (pe(), ye("div", im, [
10428
+ innerHTML: Se.commentText
10429
+ }, null, 8, em)) : Oe(F) && !z.value(Se) ? (pe(), ye("div", tm, Bi(Oe(J)[Se.importedId !== void 0 ? Se.importedId : Se.commentId]?.bounds), 1)) : (pe(), ye("div", im, [
10427
10430
  Si(ul, {
10428
10431
  users: ue.value,
10429
10432
  config: Oe(b),
10430
10433
  "include-header": !1,
10431
- comment: we
10434
+ comment: Se
10432
10435
  }, null, 8, ["users", "config", "comment"]),
10433
10436
  Xe("div", nm, [
10434
10437
  Xe("button", {
@@ -10437,12 +10440,12 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10437
10440
  }, "Cancel", 8, sm),
10438
10441
  Xe("button", {
10439
10442
  class: "sd-button primary",
10440
- onClick: wi((gt) => je(we), ["stop", "prevent"])
10443
+ onClick: wi((gt) => je(Se), ["stop", "prevent"])
10441
10444
  }, " Update ", 8, rm)
10442
10445
  ])
10443
10446
  ]))
10444
10447
  ])),
10445
- L.value(_e) ? (pe(), ye("div", am)) : tt("", !0)
10448
+ G.value(_e) ? (pe(), ye("div", am)) : tt("", !0)
10446
10449
  ]))), 128)),
10447
10450
  P.value && !Oe(b).readOnly ? (pe(), ye("div", Am, [
10448
10451
  Si(ul, {
@@ -10455,7 +10458,7 @@ const xQ = { class: "card-section comment-header" }, RQ = { class: "comment-head
10455
10458
  x.value && !Oe(b).readOnly ? (pe(), ye("div", om, [
10456
10459
  Xe("button", {
10457
10460
  class: "sd-button",
10458
- onClick: me[1] || (me[1] = wi((...we) => Oe(I) && Oe(I)(...we), ["stop", "prevent"]))
10461
+ onClick: me[1] || (me[1] = wi((...Se) => Oe(I) && Oe(I)(...Se), ["stop", "prevent"]))
10459
10462
  }, "Cancel"),
10460
10463
  Xe("button", {
10461
10464
  class: js(["sd-button primary", { disabled: !ie.value }]),
@@ -10617,17 +10620,17 @@ var Em = {
10617
10620
  /***/
10618
10621
  (n, t, i) => {
10619
10622
  var r = i(4475), A = i(9504), c = i(6706), g = i(7696), u = i(3238), I = i(7394), f = i(4483), Q = i(1548), y = r.structuredClone, b = r.ArrayBuffer, D = r.DataView, w = r.TypeError, k = Math.min, M = b.prototype, F = D.prototype, O = A(M.slice), J = c(M, "resizable", "get"), T = c(M, "maxByteLength", "get"), H = A(F.getInt8), U = A(F.setInt8);
10620
- n.exports = (Q || f) && function(S, G, x) {
10621
- var L = I(S), P = G === void 0 ? L : g(G), K = !J || !J(S), Z;
10623
+ n.exports = (Q || f) && function(S, L, x) {
10624
+ var G = I(S), P = L === void 0 ? G : g(L), K = !J || !J(S), Z;
10622
10625
  if (u(S)) throw new w("ArrayBuffer is detached");
10623
- if (Q && (S = y(S, { transfer: [S] }), L === P && (x || K)))
10626
+ if (Q && (S = y(S, { transfer: [S] }), G === P && (x || K)))
10624
10627
  return S;
10625
- if (L >= P && (!x || K))
10628
+ if (G >= P && (!x || K))
10626
10629
  Z = O(S, 0, P);
10627
10630
  else {
10628
10631
  var z = x && !K && T ? { maxByteLength: T(S) } : void 0;
10629
10632
  Z = new b(P, z);
10630
- for (var q = new D(S), ie = new D(Z), ee = k(P, L), ne = 0; ne < ee; ne++) U(ie, ne, H(q, ne));
10633
+ for (var q = new D(S), ie = new D(Z), ee = k(P, G), ne = 0; ne < ee; ne++) U(ie, ne, H(q, ne));
10631
10634
  }
10632
10635
  return Q || f(S), Z;
10633
10636
  };
@@ -10637,7 +10640,7 @@ var Em = {
10637
10640
  4644: (
10638
10641
  /***/
10639
10642
  (n, t, i) => {
10640
- var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), y = i(6699), b = i(6840), D = i(2106), w = i(1625), k = i(2787), M = i(2967), F = i(8227), O = i(3392), J = i(1181), T = J.enforce, H = J.get, U = c.Int8Array, S = U && U.prototype, G = c.Uint8ClampedArray, x = G && G.prototype, L = U && k(U), P = S && k(S), K = Object.prototype, Z = c.TypeError, z = F("toStringTag"), q = O("TYPED_ARRAY_TAG"), ie = "TypedArrayConstructor", ee = r && !!M && f(c.opera) !== "Opera", ne = !1, se, Ee, Fe, xe = {
10643
+ var r = i(7811), A = i(3724), c = i(4475), g = i(4901), u = i(34), I = i(9297), f = i(6955), Q = i(6823), y = i(6699), b = i(6840), D = i(2106), w = i(1625), k = i(2787), M = i(2967), F = i(8227), O = i(3392), J = i(1181), T = J.enforce, H = J.get, U = c.Int8Array, S = U && U.prototype, L = c.Uint8ClampedArray, x = L && L.prototype, G = U && k(U), P = S && k(S), K = Object.prototype, Z = c.TypeError, z = F("toStringTag"), q = O("TYPED_ARRAY_TAG"), ie = "TypedArrayConstructor", ee = r && !!M && f(c.opera) !== "Opera", ne = !1, se, Ee, Fe, xe = {
10641
10644
  Int8Array: 1,
10642
10645
  Uint8Array: 1,
10643
10646
  Uint8ClampedArray: 1,
@@ -10650,42 +10653,42 @@ var Em = {
10650
10653
  }, je = {
10651
10654
  BigInt64Array: 8,
10652
10655
  BigUint64Array: 8
10653
- }, st = function(we) {
10654
- if (!u(we)) return !1;
10655
- var _e = f(we);
10656
+ }, st = function(Se) {
10657
+ if (!u(Se)) return !1;
10658
+ var _e = f(Se);
10656
10659
  return _e === "DataView" || I(xe, _e) || I(je, _e);
10657
10660
  }, ft = function(Qe) {
10658
- var we = k(Qe);
10659
- if (u(we)) {
10660
- var _e = H(we);
10661
- return _e && I(_e, ie) ? _e[ie] : ft(we);
10661
+ var Se = k(Qe);
10662
+ if (u(Se)) {
10663
+ var _e = H(Se);
10664
+ return _e && I(_e, ie) ? _e[ie] : ft(Se);
10662
10665
  }
10663
10666
  }, Ce = function(Qe) {
10664
10667
  if (!u(Qe)) return !1;
10665
- var we = f(Qe);
10666
- return I(xe, we) || I(je, we);
10668
+ var Se = f(Qe);
10669
+ return I(xe, Se) || I(je, Se);
10667
10670
  }, $ = function(Qe) {
10668
10671
  if (Ce(Qe)) return Qe;
10669
10672
  throw new Z("Target is not a typed array");
10670
10673
  }, ue = function(Qe) {
10671
- if (g(Qe) && (!M || w(L, Qe))) return Qe;
10674
+ if (g(Qe) && (!M || w(G, Qe))) return Qe;
10672
10675
  throw new Z(Q(Qe) + " is not a typed array constructor");
10673
- }, W = function(Qe, we, _e, gt) {
10676
+ }, W = function(Qe, Se, _e, gt) {
10674
10677
  if (A) {
10675
10678
  if (_e) for (var ge in xe) {
10676
- var le = c[ge];
10677
- if (le && I(le.prototype, Qe)) try {
10678
- delete le.prototype[Qe];
10679
+ var ce = c[ge];
10680
+ if (ce && I(ce.prototype, Qe)) try {
10681
+ delete ce.prototype[Qe];
10679
10682
  } catch {
10680
10683
  try {
10681
- le.prototype[Qe] = we;
10684
+ ce.prototype[Qe] = Se;
10682
10685
  } catch {
10683
10686
  }
10684
10687
  }
10685
10688
  }
10686
- (!P[Qe] || _e) && b(P, Qe, _e ? we : ee && S[Qe] || we, gt);
10689
+ (!P[Qe] || _e) && b(P, Qe, _e ? Se : ee && S[Qe] || Se, gt);
10687
10690
  }
10688
- }, me = function(Qe, we, _e) {
10691
+ }, me = function(Qe, Se, _e) {
10689
10692
  var gt, ge;
10690
10693
  if (A) {
10691
10694
  if (M) {
@@ -10696,27 +10699,27 @@ var Em = {
10696
10699
  } catch {
10697
10700
  }
10698
10701
  }
10699
- if (!L[Qe] || _e)
10702
+ if (!G[Qe] || _e)
10700
10703
  try {
10701
- return b(L, Qe, _e ? we : ee && L[Qe] || we);
10704
+ return b(G, Qe, _e ? Se : ee && G[Qe] || Se);
10702
10705
  } catch {
10703
10706
  }
10704
10707
  else return;
10705
10708
  }
10706
10709
  for (gt in xe)
10707
- ge = c[gt], ge && (!ge[Qe] || _e) && b(ge, Qe, we);
10710
+ ge = c[gt], ge && (!ge[Qe] || _e) && b(ge, Qe, Se);
10708
10711
  }
10709
10712
  };
10710
10713
  for (se in xe)
10711
10714
  Ee = c[se], Fe = Ee && Ee.prototype, Fe ? T(Fe)[ie] = Ee : ee = !1;
10712
10715
  for (se in je)
10713
10716
  Ee = c[se], Fe = Ee && Ee.prototype, Fe && (T(Fe)[ie] = Ee);
10714
- if ((!ee || !g(L) || L === Function.prototype) && (L = function() {
10717
+ if ((!ee || !g(G) || G === Function.prototype) && (G = function() {
10715
10718
  throw new Z("Incorrect invocation");
10716
10719
  }, ee))
10717
10720
  for (se in xe)
10718
- c[se] && M(c[se], L);
10719
- if ((!ee || !P || P === K) && (P = L.prototype, ee))
10721
+ c[se] && M(c[se], G);
10722
+ if ((!ee || !P || P === K) && (P = G.prototype, ee))
10720
10723
  for (se in xe)
10721
10724
  c[se] && M(c[se].prototype, P);
10722
10725
  if (ee && k(x) !== P && M(x, P), A && !I(P, z)) {
@@ -10738,7 +10741,7 @@ var Em = {
10738
10741
  getTypedArrayConstructor: ft,
10739
10742
  isView: st,
10740
10743
  isTypedArray: Ce,
10741
- TypedArray: L,
10744
+ TypedArray: G,
10742
10745
  TypedArrayPrototype: P
10743
10746
  };
10744
10747
  }
@@ -11616,23 +11619,23 @@ var Em = {
11616
11619
  this.stopped = M, this.result = F;
11617
11620
  }, k = w.prototype;
11618
11621
  n.exports = function(M, F, O) {
11619
- var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR), S = !!(O && O.INTERRUPTED), G = r(F, J), x, L, P, K, Z, z, q, ie = function(ne) {
11622
+ var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR), S = !!(O && O.INTERRUPTED), L = r(F, J), x, G, P, K, Z, z, q, ie = function(ne) {
11620
11623
  return x && b(x, "normal", ne), new w(!0, ne);
11621
11624
  }, ee = function(ne) {
11622
- return T ? (c(ne), S ? G(ne[0], ne[1], ie) : G(ne[0], ne[1])) : S ? G(ne, ie) : G(ne);
11625
+ return T ? (c(ne), S ? L(ne[0], ne[1], ie) : L(ne[0], ne[1])) : S ? L(ne, ie) : L(ne);
11623
11626
  };
11624
11627
  if (H)
11625
11628
  x = M.iterator;
11626
11629
  else if (U)
11627
11630
  x = M;
11628
11631
  else {
11629
- if (L = y(M), !L) throw new D(g(M) + " is not iterable");
11630
- if (u(L)) {
11632
+ if (G = y(M), !G) throw new D(g(M) + " is not iterable");
11633
+ if (u(G)) {
11631
11634
  for (P = 0, K = I(M); K > P; P++)
11632
11635
  if (Z = ee(M[P]), Z && f(k, Z)) return Z;
11633
11636
  return new w(!1);
11634
11637
  }
11635
- x = Q(M, L);
11638
+ x = Q(M, G);
11636
11639
  }
11637
11640
  for (z = H ? M.next : x.next; !(q = A(z, x)).done; ) {
11638
11641
  try {
@@ -11680,8 +11683,8 @@ var Em = {
11680
11683
  var S = H(this);
11681
11684
  if (T) return S.nextHandler();
11682
11685
  try {
11683
- var G = S.done ? void 0 : S.nextHandler();
11684
- return y(G, S.done);
11686
+ var L = S.done ? void 0 : S.nextHandler();
11687
+ return y(L, S.done);
11685
11688
  } catch (x) {
11686
11689
  throw S.done = !0, x;
11687
11690
  }
@@ -11689,8 +11692,8 @@ var Em = {
11689
11692
  return: function() {
11690
11693
  var U = H(this), S = U.iterator;
11691
11694
  if (U.done = !0, T) {
11692
- var G = f(S, "return");
11693
- return G ? r(G, S) : y(void 0, !0);
11695
+ var L = f(S, "return");
11696
+ return L ? r(L, S) : y(void 0, !0);
11694
11697
  }
11695
11698
  if (U.inner) try {
11696
11699
  b(U.inner.iterator, "normal");
@@ -11702,8 +11705,8 @@ var Em = {
11702
11705
  });
11703
11706
  }, O = F(!0), J = F(!1);
11704
11707
  c(J, D, "Iterator Helper"), n.exports = function(T, H) {
11705
- var U = function(G, x) {
11706
- x ? (x.iterator = G.iterator, x.next = G.next) : x = G, x.type = H ? k : w, x.nextHandler = T, x.counter = 0, x.done = !1, M(this, x);
11708
+ var U = function(L, x) {
11709
+ x ? (x.iterator = L.iterator, x.next = L.next) : x = L, x.type = H ? k : w, x.nextHandler = T, x.counter = 0, x.done = !1, M(this, x);
11707
11710
  };
11708
11711
  return U.prototype = H ? O : J, U;
11709
11712
  };
@@ -11772,8 +11775,8 @@ var Em = {
11772
11775
  S && g(S, "constructor") && S.constructor ? u && w(H, "prototype", { writable: !1 }) : H.prototype && (H.prototype = void 0);
11773
11776
  } catch {
11774
11777
  }
11775
- var G = y(H);
11776
- return g(G, "source") || (G.source = F(J, typeof U == "string" ? U : "")), H;
11778
+ var L = y(H);
11779
+ return g(L, "source") || (L.source = F(J, typeof U == "string" ? U : "")), H;
11777
11780
  };
11778
11781
  Function.prototype.toString = T(function() {
11779
11782
  return c(this) && b(this).source || f(this);
@@ -11841,8 +11844,8 @@ var Em = {
11841
11844
  return T();
11842
11845
  };
11843
11846
  g[w] = !0, n.exports = Object.create || function(U, S) {
11844
- var G;
11845
- return U !== null ? (k[b] = r(U), G = new k(), k[b] = null, G[w] = U) : G = T(), S === void 0 ? G : A.f(G, S);
11847
+ var L;
11848
+ return U !== null ? (k[b] = r(U), L = new k(), k[b] = null, L[w] = U) : L = T(), S === void 0 ? L : A.f(L, S);
11846
11849
  };
11847
11850
  }
11848
11851
  ),
@@ -12714,19 +12717,19 @@ var Em = {
12714
12717
  H({});
12715
12718
  }), S = function() {
12716
12719
  if (c(this, w), I(this) === w) throw new T("Abstract class Iterator not directly constructable");
12717
- }, G = function(x, L) {
12720
+ }, L = function(x, G) {
12718
12721
  k ? f(w, x, {
12719
12722
  configurable: !0,
12720
12723
  get: function() {
12721
- return L;
12724
+ return G;
12722
12725
  },
12723
12726
  set: function(P) {
12724
12727
  if (g(this), this === w) throw new T("You can't redefine this property");
12725
12728
  b(this, x) ? this[x] = P : Q(this, x, P);
12726
12729
  }
12727
- }) : w[x] = L;
12730
+ }) : w[x] = G;
12728
12731
  };
12729
- b(w, J) || G(J, O), (U || !b(w, F) || w[F] === Object) && G(F, S), S.prototype = w, r({ global: !0, constructor: !0, forced: U }, {
12732
+ b(w, J) || L(J, O), (U || !b(w, F) || w[F] === Object) && L(F, S), S.prototype = w, r({ global: !0, constructor: !0, forced: U }, {
12730
12733
  Iterator: S
12731
12734
  });
12732
12735
  }
@@ -12826,27 +12829,27 @@ var Em = {
12826
12829
  8335: (
12827
12830
  /***/
12828
12831
  (n, t, i) => {
12829
- var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), y = i(4376), b = i(9297), D = i(655), w = i(6198), k = i(4659), M = i(9039), F = i(8235), O = i(4495), J = c.JSON, T = c.Number, H = c.SyntaxError, U = J && J.parse, S = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, x = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), Z = /^\d$/, z = /^[1-9]$/, q = /^(?:-|\d)$/, ie = /^[\t\n\r ]$/, ee = 0, ne = 1, se = function(Ce, $) {
12832
+ var r = i(6518), A = i(3724), c = i(4475), g = i(7751), u = i(9504), I = i(9565), f = i(4901), Q = i(34), y = i(4376), b = i(9297), D = i(655), w = i(6198), k = i(4659), M = i(9039), F = i(8235), O = i(4495), J = c.JSON, T = c.Number, H = c.SyntaxError, U = J && J.parse, S = g("Object", "keys"), L = Object.getOwnPropertyDescriptor, x = u("".charAt), G = u("".slice), P = u(/./.exec), K = u([].push), Z = /^\d$/, z = /^[1-9]$/, q = /^(?:-|\d)$/, ie = /^[\t\n\r ]$/, ee = 0, ne = 1, se = function(Ce, $) {
12830
12833
  Ce = D(Ce);
12831
12834
  var ue = new je(Ce, 0), W = ue.parse(), me = W.value, Qe = ue.skip(ie, W.end);
12832
12835
  if (Qe < Ce.length)
12833
12836
  throw new H('Unexpected extra character: "' + x(Ce, Qe) + '" after the parsed data at: ' + Qe);
12834
12837
  return f($) ? Ee({ "": me }, "", $, W) : me;
12835
12838
  }, Ee = function(Ce, $, ue, W) {
12836
- var me = Ce[$], Qe = W && me === W.value, we = Qe && typeof W.source == "string" ? { source: W.source } : {}, _e, gt, ge, le, Se;
12839
+ var me = Ce[$], Qe = W && me === W.value, Se = Qe && typeof W.source == "string" ? { source: W.source } : {}, _e, gt, ge, ce, we;
12837
12840
  if (Q(me)) {
12838
- var Te = y(me), Me = Qe ? W.nodes : Te ? [] : {};
12839
- if (Te)
12840
- for (_e = Me.length, ge = w(me), le = 0; le < ge; le++)
12841
- Fe(me, le, Ee(me, "" + le, ue, le < _e ? Me[le] : void 0));
12841
+ var Ge = y(me), Me = Qe ? W.nodes : Ge ? [] : {};
12842
+ if (Ge)
12843
+ for (_e = Me.length, ge = w(me), ce = 0; ce < ge; ce++)
12844
+ Fe(me, ce, Ee(me, "" + ce, ue, ce < _e ? Me[ce] : void 0));
12842
12845
  else
12843
- for (gt = S(me), ge = w(gt), le = 0; le < ge; le++)
12844
- Se = gt[le], Fe(me, Se, Ee(me, Se, ue, b(Me, Se) ? Me[Se] : void 0));
12846
+ for (gt = S(me), ge = w(gt), ce = 0; ce < ge; ce++)
12847
+ we = gt[ce], Fe(me, we, Ee(me, we, ue, b(Me, we) ? Me[we] : void 0));
12845
12848
  }
12846
- return I(ue, Ce, $, me, we);
12849
+ return I(ue, Ce, $, me, Se);
12847
12850
  }, Fe = function(Ce, $, ue) {
12848
12851
  if (A) {
12849
- var W = G(Ce, $);
12852
+ var W = L(Ce, $);
12850
12853
  if (W && !W.configurable) return;
12851
12854
  }
12852
12855
  ue === void 0 ? delete Ce[$] : k(Ce, $, ue);
@@ -12879,7 +12882,7 @@ var Em = {
12879
12882
  throw new H('Unexpected character: "' + W + '" at: ' + $);
12880
12883
  },
12881
12884
  node: function(Ce, $, ue, W, me) {
12882
- return new xe($, W, Ce ? null : L(this.source, ue, W), me);
12885
+ return new xe($, W, Ce ? null : G(this.source, ue, W), me);
12883
12886
  },
12884
12887
  object: function() {
12885
12888
  for (var Ce = this.source, $ = this.index + 1, ue = !1, W = {}, me = {}; $ < Ce.length; ) {
@@ -12887,8 +12890,8 @@ var Em = {
12887
12890
  $++;
12888
12891
  break;
12889
12892
  }
12890
- var Qe = this.fork($).string(), we = Qe.value;
12891
- $ = Qe.end, $ = this.until([":"], $) + 1, $ = this.skip(ie, $), Qe = this.fork($).parse(), k(me, we, Qe), k(W, we, Qe.value), $ = this.until([",", "}"], Qe.end);
12893
+ var Qe = this.fork($).string(), Se = Qe.value;
12894
+ $ = Qe.end, $ = this.until([":"], $) + 1, $ = this.skip(ie, $), Qe = this.fork($).parse(), k(me, Se, Qe), k(W, Se, Qe.value), $ = this.until([",", "}"], Qe.end);
12892
12895
  var _e = x(Ce, $);
12893
12896
  if (_e === ",")
12894
12897
  ue = !0, $++;
@@ -12929,11 +12932,11 @@ var Em = {
12929
12932
  var W = ue;
12930
12933
  if (ue = this.skip(Z, ue), W === ue) throw new H("Failed to parse number's exponent value at: " + ue);
12931
12934
  }
12932
- return this.node(ee, T(L(Ce, $, ue)), $, ue);
12935
+ return this.node(ee, T(G(Ce, $, ue)), $, ue);
12933
12936
  },
12934
12937
  keyword: function(Ce) {
12935
12938
  var $ = "" + Ce, ue = this.index, W = ue + $.length;
12936
- if (L(this.source, ue, W) !== $) throw new H("Failed to parse value at: " + ue);
12939
+ if (G(this.source, ue, W) !== $) throw new H("Failed to parse value at: " + ue);
12937
12940
  return this.node(ee, Ce, ue, W);
12938
12941
  },
12939
12942
  skip: function(Ce, $) {
@@ -13018,17 +13021,17 @@ var Em = {
13018
13021
  f(this, T);
13019
13022
  var ie = arguments.length, ee = y(ie < 1 ? void 0 : arguments[0]), ne = y(ie < 2 ? void 0 : arguments[1], "Error"), se = new O(ee, ne), Ee = new F(ee);
13020
13023
  return Ee.name = M, u(se, "stack", g(1, D(Ee.stack, 1))), Q(se, this, J), se;
13021
- }, T = J.prototype = O.prototype, H = "stack" in new F(M), U = "stack" in new O(1, 2), S = O && w && Object.getOwnPropertyDescriptor(A, M), G = !!S && !(S.writable && S.configurable), x = H && !G && !U;
13024
+ }, T = J.prototype = O.prototype, H = "stack" in new F(M), U = "stack" in new O(1, 2), S = O && w && Object.getOwnPropertyDescriptor(A, M), L = !!S && !(S.writable && S.configurable), x = H && !L && !U;
13022
13025
  r({ global: !0, constructor: !0, forced: k || x }, {
13023
13026
  // TODO: fix export logic
13024
13027
  DOMException: x ? J : O
13025
13028
  });
13026
- var L = c(M), P = L.prototype;
13027
- if (P.constructor !== L) {
13028
- k || u(P, "constructor", g(1, L));
13029
+ var G = c(M), P = G.prototype;
13030
+ if (P.constructor !== G) {
13031
+ k || u(P, "constructor", g(1, G));
13029
13032
  for (var K in b) if (I(b, K)) {
13030
13033
  var Z = b[K], z = Z.s;
13031
- I(L, z) || u(L, z, g(6, Z.c));
13034
+ I(G, z) || u(G, z, g(6, Z.c));
13032
13035
  }
13033
13036
  }
13034
13037
  }
@@ -13042,13 +13045,13 @@ var Em = {
13042
13045
  var k = arguments.length, M = k < 2 ? void 0 : arguments[1];
13043
13046
  if (k && M === void 0) return Q(this, w);
13044
13047
  var F = [];
13045
- y(this, function(x, L) {
13046
- b(F, { key: L, value: x });
13048
+ y(this, function(x, G) {
13049
+ b(F, { key: G, value: x });
13047
13050
  }), g(k, 1);
13048
- for (var O = c(w), J = c(M), T = 0, H = 0, U = !1, S = F.length, G; T < S; )
13049
- G = F[T++], U || G.key === O ? (U = !0, Q(this, G.key)) : H++;
13051
+ for (var O = c(w), J = c(M), T = 0, H = 0, U = !1, S = F.length, L; T < S; )
13052
+ L = F[T++], U || L.key === O ? (U = !0, Q(this, L.key)) : H++;
13050
13053
  for (; H < S; )
13051
- G = F[H++], G.key === O && G.value === J || f(this, G.key, G.value);
13054
+ L = F[H++], L.key === O && L.value === J || f(this, L.key, L.value);
13052
13055
  }, { enumerable: !0, unsafe: !0 });
13053
13056
  }
13054
13057
  ),
@@ -13107,9 +13110,9 @@ et.d = (n, t) => {
13107
13110
  et.o(t, i) && !et.o(n, i) && Object.defineProperty(n, i, { enumerable: !0, get: t[i] });
13108
13111
  };
13109
13112
  et.o = (n, t) => Object.prototype.hasOwnProperty.call(n, t);
13110
- var Ge = globalThis.pdfjsLib = {};
13113
+ var Te = globalThis.pdfjsLib = {};
13111
13114
  (() => {
13112
- et.d(Ge, {
13115
+ et.d(Te, {
13113
13116
  AbortException: () => (
13114
13117
  /* reexport */
13115
13118
  Ee
@@ -13487,13 +13490,13 @@ var Ge = globalThis.pdfjsLib = {};
13487
13490
  function S(p) {
13488
13491
  J >= k.WARNINGS && console.log(`Warning: ${p}`);
13489
13492
  }
13490
- function G(p) {
13493
+ function L(p) {
13491
13494
  throw new Error(p);
13492
13495
  }
13493
13496
  function x(p, e) {
13494
- p || G(e);
13497
+ p || L(e);
13495
13498
  }
13496
- function L(p) {
13499
+ function G(p) {
13497
13500
  switch (p?.protocol) {
13498
13501
  case "http:":
13499
13502
  case "https:":
@@ -13515,7 +13518,7 @@ var Ge = globalThis.pdfjsLib = {};
13515
13518
  } catch {
13516
13519
  }
13517
13520
  const a = e ? new URL(p, e) : new URL(p);
13518
- if (L(a))
13521
+ if (G(a))
13519
13522
  return a;
13520
13523
  } catch {
13521
13524
  }
@@ -13531,7 +13534,7 @@ var Ge = globalThis.pdfjsLib = {};
13531
13534
  }
13532
13535
  const Z = function() {
13533
13536
  function e(s, a) {
13534
- this.constructor === e && G("Cannot initialize BaseException."), this.message = s, this.name = a;
13537
+ this.constructor === e && L("Cannot initialize BaseException."), this.message = s, this.name = a;
13535
13538
  }
13536
13539
  return e.prototype = new Error(), e.constructor = e, e;
13537
13540
  }();
@@ -13571,7 +13574,7 @@ var Ge = globalThis.pdfjsLib = {};
13571
13574
  }
13572
13575
  }
13573
13576
  function Fe(p) {
13574
- (typeof p != "object" || p?.length === void 0) && G("Invalid argument for bytesToString");
13577
+ (typeof p != "object" || p?.length === void 0) && L("Invalid argument for bytesToString");
13575
13578
  const e = p.length, s = 8192;
13576
13579
  if (e < s)
13577
13580
  return String.fromCharCode.apply(null, p);
@@ -13583,7 +13586,7 @@ var Ge = globalThis.pdfjsLib = {};
13583
13586
  return a.join("");
13584
13587
  }
13585
13588
  function xe(p) {
13586
- typeof p != "string" && G("Invalid argument for stringToBytes");
13589
+ typeof p != "string" && L("Invalid argument for stringToBytes");
13587
13590
  const e = p.length, s = new Uint8Array(e);
13588
13591
  for (let a = 0; a < e; ++a)
13589
13592
  s[a] = p.charCodeAt(a) & 255;
@@ -13697,9 +13700,9 @@ var Ge = globalThis.pdfjsLib = {};
13697
13700
  function me(p) {
13698
13701
  return decodeURIComponent(escape(p));
13699
13702
  }
13700
- let Qe = null, we = null;
13703
+ let Qe = null, Se = null;
13701
13704
  function _e(p) {
13702
- return Qe || (Qe = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu, we = /* @__PURE__ */ new Map([["ſt", "ſt"]])), p.replaceAll(Qe, (e, s, a) => s ? s.normalize("NFKC") : we.get(a));
13705
+ return Qe || (Qe = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu, Se = /* @__PURE__ */ new Map([["ſt", "ſt"]])), p.replaceAll(Qe, (e, s, a) => s ? s.normalize("NFKC") : Se.get(a));
13703
13706
  }
13704
13707
  function gt() {
13705
13708
  if (typeof crypto < "u" && typeof crypto?.randomUUID == "function")
@@ -13712,7 +13715,7 @@ var Ge = globalThis.pdfjsLib = {};
13712
13715
  p[e] = Math.floor(Math.random() * 255);
13713
13716
  return Fe(p);
13714
13717
  }
13715
- const ge = "pdfjs_internal_id_", le = {
13718
+ const ge = "pdfjs_internal_id_", ce = {
13716
13719
  BEZIER_CURVE_TO: 0,
13717
13720
  MOVE_TO: 1,
13718
13721
  LINE_TO: 2,
@@ -13724,9 +13727,9 @@ var Ge = globalThis.pdfjsLib = {};
13724
13727
  TRANSLATE: 8
13725
13728
  };
13726
13729
  et(4628), et(1454), et(3375), et(9225), et(3972), et(9209), et(5714), et(7561), et(6197), et(4979), et(8992), et(3215), et(7550), et(8335), et(4520);
13727
- class Se {
13730
+ class we {
13728
13731
  constructor() {
13729
- this.constructor === Se && G("Cannot initialize BaseFilterFactory.");
13732
+ this.constructor === we && L("Cannot initialize BaseFilterFactory.");
13730
13733
  }
13731
13734
  addFilter(e) {
13732
13735
  return "none";
@@ -13746,9 +13749,9 @@ var Ge = globalThis.pdfjsLib = {};
13746
13749
  destroy(e = !1) {
13747
13750
  }
13748
13751
  }
13749
- class Te {
13752
+ class Ge {
13750
13753
  constructor() {
13751
- this.constructor === Te && G("Cannot initialize BaseCanvasFactory.");
13754
+ this.constructor === Ge && L("Cannot initialize BaseCanvasFactory.");
13752
13755
  }
13753
13756
  create(e, s) {
13754
13757
  if (e <= 0 || s <= 0)
@@ -13772,7 +13775,7 @@ var Ge = globalThis.pdfjsLib = {};
13772
13775
  e.canvas.width = 0, e.canvas.height = 0, e.canvas = null, e.context = null;
13773
13776
  }
13774
13777
  _createCanvas(e, s) {
13775
- G("Abstract method `_createCanvas` called.");
13778
+ L("Abstract method `_createCanvas` called.");
13776
13779
  }
13777
13780
  }
13778
13781
  class Me {
@@ -13780,7 +13783,7 @@ var Ge = globalThis.pdfjsLib = {};
13780
13783
  baseUrl: e = null,
13781
13784
  isCompressed: s = !0
13782
13785
  }) {
13783
- this.constructor === Me && G("Cannot initialize BaseCMapReaderFactory."), this.baseUrl = e, this.isCompressed = s;
13786
+ this.constructor === Me && L("Cannot initialize BaseCMapReaderFactory."), this.baseUrl = e, this.isCompressed = s;
13784
13787
  }
13785
13788
  async fetch({
13786
13789
  name: e
@@ -13795,14 +13798,14 @@ var Ge = globalThis.pdfjsLib = {};
13795
13798
  });
13796
13799
  }
13797
13800
  _fetchData(e, s) {
13798
- G("Abstract method `_fetchData` called.");
13801
+ L("Abstract method `_fetchData` called.");
13799
13802
  }
13800
13803
  }
13801
13804
  class Je {
13802
13805
  constructor({
13803
13806
  baseUrl: e = null
13804
13807
  }) {
13805
- this.constructor === Je && G("Cannot initialize BaseStandardFontDataFactory."), this.baseUrl = e;
13808
+ this.constructor === Je && L("Cannot initialize BaseStandardFontDataFactory."), this.baseUrl = e;
13806
13809
  }
13807
13810
  async fetch({
13808
13811
  filename: e
@@ -13817,12 +13820,12 @@ var Ge = globalThis.pdfjsLib = {};
13817
13820
  });
13818
13821
  }
13819
13822
  _fetchData(e) {
13820
- G("Abstract method `_fetchData` called.");
13823
+ L("Abstract method `_fetchData` called.");
13821
13824
  }
13822
13825
  }
13823
13826
  class Re {
13824
13827
  constructor() {
13825
- this.constructor === Re && G("Cannot initialize BaseSVGFactory.");
13828
+ this.constructor === Re && L("Cannot initialize BaseSVGFactory.");
13826
13829
  }
13827
13830
  create(e, s, a = !1) {
13828
13831
  if (e <= 0 || s <= 0)
@@ -13836,7 +13839,7 @@ var Ge = globalThis.pdfjsLib = {};
13836
13839
  return this._createSVG(e);
13837
13840
  }
13838
13841
  _createSVG(e) {
13839
- G("Abstract method `_createSVG` called.");
13842
+ L("Abstract method `_createSVG` called.");
13840
13843
  }
13841
13844
  }
13842
13845
  const at = "http://www.w3.org/2000/svg";
@@ -13845,7 +13848,7 @@ var Ge = globalThis.pdfjsLib = {};
13845
13848
  static PDF = 72;
13846
13849
  static PDF_TO_CSS_UNITS = this.CSS / this.PDF;
13847
13850
  }
13848
- class Ve extends Se {
13851
+ class Ve extends we {
13849
13852
  #e;
13850
13853
  #t;
13851
13854
  #i;
@@ -14013,7 +14016,7 @@ var Ge = globalThis.pdfjsLib = {};
14013
14016
  return this.#o.style.color = e, nt(getComputedStyle(this.#o).getPropertyValue("color"));
14014
14017
  }
14015
14018
  }
14016
- class Ut extends Te {
14019
+ class Ut extends Ge {
14017
14020
  constructor({
14018
14021
  ownerDocument: e = globalThis.document
14019
14022
  } = {}) {
@@ -15653,7 +15656,7 @@ var Ge = globalThis.pdfjsLib = {};
15653
15656
  }], [["Escape", "mac+Escape"], Le.prototype._stopResizingWithKeyboard]]));
15654
15657
  }
15655
15658
  constructor(e) {
15656
- this.constructor === Le && G("Cannot initialize AnnotationEditor."), this.parent = e.parent, this.id = e.id, this.width = this.height = null, this.pageIndex = e.parent.pageIndex, this.name = e.name, this.div = null, this._uiManager = e.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = e.isCentered, this._structTreeParentId = null;
15659
+ this.constructor === Le && L("Cannot initialize AnnotationEditor."), this.parent = e.parent, this.id = e.id, this.width = this.height = null, this.pageIndex = e.parent.pageIndex, this.name = e.name, this.div = null, this._uiManager = e.uiManager, this.annotationElementId = null, this._willKeepAspectRatio = !1, this._initialOptions.isCentered = e.isCentered, this._structTreeParentId = null;
15657
15660
  const {
15658
15661
  rotation: s,
15659
15662
  rawDims: {
@@ -15699,7 +15702,7 @@ var Ge = globalThis.pdfjsLib = {};
15699
15702
  return !1;
15700
15703
  }
15701
15704
  static paste(e, s) {
15702
- G("Not implemented");
15705
+ L("Not implemented");
15703
15706
  }
15704
15707
  get propertiesToUpdate() {
15705
15708
  return [];
@@ -16138,7 +16141,7 @@ var Ge = globalThis.pdfjsLib = {};
16138
16141
  rotate(e) {
16139
16142
  }
16140
16143
  serialize(e = !1, s = null) {
16141
- G("An editor must be serializable");
16144
+ L("An editor must be serializable");
16142
16145
  }
16143
16146
  static deserialize(e, s, a) {
16144
16147
  const o = new this.prototype.constructor({
@@ -16519,7 +16522,7 @@ var Ge = globalThis.pdfjsLib = {};
16519
16522
  };
16520
16523
  }
16521
16524
  get print() {
16522
- G("Should not call PrintAnnotationStorage.print");
16525
+ L("Should not call PrintAnnotationStorage.print");
16523
16526
  }
16524
16527
  get serializable() {
16525
16528
  return this.#e;
@@ -16568,7 +16571,7 @@ var Ge = globalThis.pdfjsLib = {};
16568
16571
  }
16569
16572
  return;
16570
16573
  }
16571
- G("Not implemented: loadSystemFont without the Font Loading API.");
16574
+ L("Not implemented: loadSystemFont without the Font Loading API.");
16572
16575
  }
16573
16576
  }
16574
16577
  async bind(e) {
@@ -16725,46 +16728,46 @@ var Ge = globalThis.pdfjsLib = {};
16725
16728
  const o = [];
16726
16729
  for (let l = 0, h = a.length; l < h; )
16727
16730
  switch (a[l++]) {
16728
- case le.BEZIER_CURVE_TO:
16731
+ case ce.BEZIER_CURVE_TO:
16729
16732
  {
16730
16733
  const [d, C, E, B, m, v] = a.slice(l, l + 6);
16731
16734
  o.push((N) => N.bezierCurveTo(d, C, E, B, m, v)), l += 6;
16732
16735
  }
16733
16736
  break;
16734
- case le.MOVE_TO:
16737
+ case ce.MOVE_TO:
16735
16738
  {
16736
16739
  const [d, C] = a.slice(l, l + 2);
16737
16740
  o.push((E) => E.moveTo(d, C)), l += 2;
16738
16741
  }
16739
16742
  break;
16740
- case le.LINE_TO:
16743
+ case ce.LINE_TO:
16741
16744
  {
16742
16745
  const [d, C] = a.slice(l, l + 2);
16743
16746
  o.push((E) => E.lineTo(d, C)), l += 2;
16744
16747
  }
16745
16748
  break;
16746
- case le.QUADRATIC_CURVE_TO:
16749
+ case ce.QUADRATIC_CURVE_TO:
16747
16750
  {
16748
16751
  const [d, C, E, B] = a.slice(l, l + 4);
16749
16752
  o.push((m) => m.quadraticCurveTo(d, C, E, B)), l += 4;
16750
16753
  }
16751
16754
  break;
16752
- case le.RESTORE:
16755
+ case ce.RESTORE:
16753
16756
  o.push((d) => d.restore());
16754
16757
  break;
16755
- case le.SAVE:
16758
+ case ce.SAVE:
16756
16759
  o.push((d) => d.save());
16757
16760
  break;
16758
- case le.SCALE:
16761
+ case ce.SCALE:
16759
16762
  x(o.length === 2, "Scale command is only valid at the third position.");
16760
16763
  break;
16761
- case le.TRANSFORM:
16764
+ case ce.TRANSFORM:
16762
16765
  {
16763
16766
  const [d, C, E, B, m, v] = a.slice(l, l + 6);
16764
16767
  o.push((N) => N.transform(d, C, E, B, m, v)), l += 6;
16765
16768
  }
16766
16769
  break;
16767
- case le.TRANSLATE:
16770
+ case ce.TRANSLATE:
16768
16771
  {
16769
16772
  const [d, C] = a.slice(l, l + 2);
16770
16773
  o.push((E) => E.translate(d, C)), l += 2;
@@ -16841,9 +16844,9 @@ var Ge = globalThis.pdfjsLib = {};
16841
16844
  const uo = function(p) {
16842
16845
  return xi.get("fs").promises.readFile(p).then((s) => new Uint8Array(s));
16843
16846
  };
16844
- class zh extends Se {
16847
+ class zh extends we {
16845
16848
  }
16846
- class Zh extends Te {
16849
+ class Zh extends Ge {
16847
16850
  _createCanvas(e, s) {
16848
16851
  return xi.get("canvas").createCanvas(e, s);
16849
16852
  }
@@ -16874,10 +16877,10 @@ var Ge = globalThis.pdfjsLib = {};
16874
16877
  }
16875
16878
  class ws {
16876
16879
  constructor() {
16877
- this.constructor === ws && G("Cannot initialize BaseShadingPattern.");
16880
+ this.constructor === ws && L("Cannot initialize BaseShadingPattern.");
16878
16881
  }
16879
16882
  getPattern() {
16880
- G("Abstract method `getPattern` called.");
16883
+ L("Abstract method `getPattern` called.");
16881
16884
  }
16882
16885
  }
16883
16886
  class tu extends ws {
@@ -17248,7 +17251,7 @@ var Ge = globalThis.pdfjsLib = {};
17248
17251
  getPathBoundingBox(e = Wt.FILL, s = null) {
17249
17252
  const a = [this.minX, this.minY, this.maxX, this.maxY];
17250
17253
  if (e === Wt.STROKE) {
17251
- s || G("Stroke bounding box must include transform.");
17254
+ s || L("Stroke bounding box must include transform.");
17252
17255
  const o = W.singularValueDecompose2dScale(s), l = o[0] * this.lineWidth / 2, h = o[1] * this.lineWidth / 2;
17253
17256
  a[0] -= l, a[1] -= h, a[2] += l, a[3] += h;
17254
17257
  }
@@ -17890,10 +17893,10 @@ var Ge = globalThis.pdfjsLib = {};
17890
17893
  this.compose(this.current.getClippedPathBoundingBox()), this.restore();
17891
17894
  }
17892
17895
  beginInlineImage() {
17893
- G("Should not call beginInlineImage");
17896
+ L("Should not call beginInlineImage");
17894
17897
  }
17895
17898
  beginImageData() {
17896
- G("Should not call beginImageData");
17899
+ L("Should not call beginImageData");
17897
17900
  }
17898
17901
  paintFormXObjectBegin(e, s) {
17899
17902
  if (this.contentVisible && (this.save(), this.baseTransformStack.push(this.baseTransform), e && this.transform(...e), this.baseTransform = Ze(this.ctx), s)) {
@@ -18238,7 +18241,7 @@ var Ge = globalThis.pdfjsLib = {};
18238
18241
  START_COMPLETE: 8
18239
18242
  };
18240
18243
  function ri(p) {
18241
- switch (p instanceof Error || typeof p == "object" && p !== null || G('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), p.name) {
18244
+ switch (p instanceof Error || typeof p == "object" && p !== null || L('wrapReason: Expected "reason" to be a (possibly cloned) Error.'), p.name) {
18242
18245
  case "AbortException":
18243
18246
  return new Ee(p.message);
18244
18247
  case "MissingPDFException":
@@ -18576,7 +18579,7 @@ var Ge = globalThis.pdfjsLib = {};
18576
18579
  return this.#e ? s?.viewState !== "OFF" : this.#t ? e?.printState !== "OFF" : !0;
18577
18580
  }
18578
18581
  _setVisible(e, s, a = !1) {
18579
- e !== hn && G("Internal method `_setVisible` called."), this.#i = a, this.#s = s;
18582
+ e !== hn && L("Internal method `_setVisible` called."), this.#i = a, this.#s = s;
18580
18583
  }
18581
18584
  }
18582
18585
  class Cu {
@@ -20136,7 +20139,7 @@ var Ge = globalThis.pdfjsLib = {};
20136
20139
  this._readyCapability.resolve();
20137
20140
  }
20138
20141
  requestDataRange(e, s) {
20139
- G("Abstract method PDFDataRangeTransport.requestDataRange");
20142
+ L("Abstract method PDFDataRangeTransport.requestDataRange");
20140
20143
  }
20141
20144
  abort() {
20142
20145
  }
@@ -20896,7 +20899,7 @@ var Ge = globalThis.pdfjsLib = {};
20896
20899
  o = new q(a.message, a.details);
20897
20900
  break;
20898
20901
  default:
20899
- G("DocException - expected a valid Error.");
20902
+ L("DocException - expected a valid Error.");
20900
20903
  }
20901
20904
  s._capability.reject(o);
20902
20905
  }), e.on("PasswordRequest", (a) => {
@@ -21843,7 +21846,7 @@ var Ge = globalThis.pdfjsLib = {};
21843
21846
  this.parent.div.append(a.render());
21844
21847
  }
21845
21848
  render() {
21846
- G("Abstract method `AnnotationElement.render` called");
21849
+ L("Abstract method `AnnotationElement.render` called");
21847
21850
  }
21848
21851
  _getElementsByName(e, s = null) {
21849
21852
  const a = [];
@@ -25821,52 +25824,52 @@ var Ge = globalThis.pdfjsLib = {};
25821
25824
  }
25822
25825
  }
25823
25826
  })();
25824
- Ge.AbortException;
25825
- Ge.AnnotationEditorLayer;
25826
- Ge.AnnotationEditorParamsType;
25827
- Ge.AnnotationEditorType;
25828
- Ge.AnnotationEditorUIManager;
25829
- Ge.AnnotationLayer;
25830
- Ge.AnnotationMode;
25831
- Ge.CMapCompressionType;
25832
- Ge.ColorPicker;
25833
- Ge.DOMSVGFactory;
25834
- Ge.DrawLayer;
25835
- Ge.FeatureTest;
25836
- var pm = Ge.GlobalWorkerOptions;
25837
- Ge.ImageKind;
25838
- Ge.InvalidPDFException;
25839
- Ge.MissingPDFException;
25840
- Ge.OPS;
25841
- Ge.Outliner;
25842
- Ge.PDFDataRangeTransport;
25843
- Ge.PDFDateString;
25844
- Ge.PDFWorker;
25845
- Ge.PasswordResponses;
25846
- Ge.PermissionFlag;
25847
- Ge.PixelsPerInch;
25848
- Ge.RenderingCancelledException;
25849
- Ge.TextLayer;
25850
- Ge.UnexpectedResponseException;
25851
- Ge.Util;
25852
- Ge.VerbosityLevel;
25853
- Ge.XfaLayer;
25854
- Ge.build;
25855
- Ge.createValidAbsoluteUrl;
25856
- Ge.fetchData;
25857
- var Qm = Ge.getDocument;
25858
- Ge.getFilenameFromUrl;
25859
- Ge.getPdfFilenameFromUrl;
25860
- Ge.getXfaPageViewport;
25861
- Ge.isDataScheme;
25862
- Ge.isPdfFile;
25863
- Ge.noContextMenu;
25864
- Ge.normalizeUnicode;
25865
- Ge.renderTextLayer;
25866
- Ge.setLayerDimensions;
25867
- Ge.shadow;
25868
- Ge.updateTextLayer;
25869
- Ge.version;
25827
+ Te.AbortException;
25828
+ Te.AnnotationEditorLayer;
25829
+ Te.AnnotationEditorParamsType;
25830
+ Te.AnnotationEditorType;
25831
+ Te.AnnotationEditorUIManager;
25832
+ Te.AnnotationLayer;
25833
+ Te.AnnotationMode;
25834
+ Te.CMapCompressionType;
25835
+ Te.ColorPicker;
25836
+ Te.DOMSVGFactory;
25837
+ Te.DrawLayer;
25838
+ Te.FeatureTest;
25839
+ var pm = Te.GlobalWorkerOptions;
25840
+ Te.ImageKind;
25841
+ Te.InvalidPDFException;
25842
+ Te.MissingPDFException;
25843
+ Te.OPS;
25844
+ Te.Outliner;
25845
+ Te.PDFDataRangeTransport;
25846
+ Te.PDFDateString;
25847
+ Te.PDFWorker;
25848
+ Te.PasswordResponses;
25849
+ Te.PermissionFlag;
25850
+ Te.PixelsPerInch;
25851
+ Te.RenderingCancelledException;
25852
+ Te.TextLayer;
25853
+ Te.UnexpectedResponseException;
25854
+ Te.Util;
25855
+ Te.VerbosityLevel;
25856
+ Te.XfaLayer;
25857
+ Te.build;
25858
+ Te.createValidAbsoluteUrl;
25859
+ Te.fetchData;
25860
+ var Qm = Te.getDocument;
25861
+ Te.getFilenameFromUrl;
25862
+ Te.getPdfFilenameFromUrl;
25863
+ Te.getXfaPageViewport;
25864
+ Te.isDataScheme;
25865
+ Te.isPdfFile;
25866
+ Te.noContextMenu;
25867
+ Te.normalizeUnicode;
25868
+ Te.renderTextLayer;
25869
+ Te.setLayerDimensions;
25870
+ Te.shadow;
25871
+ Te.updateTextLayer;
25872
+ Te.version;
25870
25873
  var Ks = {};
25871
25874
  Ks.d = (n, t) => {
25872
25875
  for (var i in t)
@@ -26105,14 +26108,14 @@ function Fm({
26105
26108
  w > 0 && w < D && !r && (w = vm(w, t, c));
26106
26109
  let k = r ? I : -1;
26107
26110
  for (let O = w; O < D; O++) {
26108
- const J = t[O], T = J.div, H = T.offsetLeft + T.clientLeft, U = T.offsetTop + T.clientTop, S = T.clientWidth, G = T.clientHeight, x = H + S, L = U + G;
26111
+ const J = t[O], T = J.div, H = T.offsetLeft + T.clientLeft, U = T.offsetTop + T.clientTop, S = T.clientWidth, L = T.clientHeight, x = H + S, G = U + L;
26109
26112
  if (k === -1)
26110
- L >= g && (k = L);
26113
+ G >= g && (k = G);
26111
26114
  else if ((r ? H : U) > k)
26112
26115
  break;
26113
- if (L <= c || U >= g || x <= u || H >= I)
26116
+ if (G <= c || U >= g || x <= u || H >= I)
26114
26117
  continue;
26115
- const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, x - I), Z = (G - P) / G, z = (S - K) / S, q = Z * z * 100 | 0;
26118
+ const P = Math.max(0, c - U) + Math.max(0, G - g), K = Math.max(0, u - H) + Math.max(0, x - I), Z = (L - P) / L, z = (S - K) / S, q = Z * z * 100 | 0;
26116
26119
  y.push({
26117
26120
  id: J.id,
26118
26121
  x: H,
@@ -26311,30 +26314,30 @@ function oA(n) {
26311
26314
  let u = 0, I = 0, f = 0, Q = 0, y = 0, b = !1;
26312
26315
  return c = c.replace(r, (D, w, k, M, F, O, J, T, H, U) => {
26313
26316
  if (U -= Q, w) {
26314
- const S = ml[w], G = S.length;
26315
- for (let x = 1; x < G; x++)
26317
+ const S = ml[w], L = S.length;
26318
+ for (let x = 1; x < L; x++)
26316
26319
  g.push([U - f + x, f - x]);
26317
- return f -= G - 1, S;
26320
+ return f -= L - 1, S;
26318
26321
  }
26319
26322
  if (k) {
26320
26323
  let S = Sl.get(k);
26321
26324
  S || (S = k.normalize("NFKC"), Sl.set(k, S));
26322
- const G = S.length;
26323
- for (let x = 1; x < G; x++)
26325
+ const L = S.length;
26326
+ for (let x = 1; x < L; x++)
26324
26327
  g.push([U - f + x, f - x]);
26325
- return f -= G - 1, S;
26328
+ return f -= L - 1, S;
26326
26329
  }
26327
26330
  if (M)
26328
26331
  return b = !0, U + y === A[u]?.[1] ? ++u : (g.push([U - 1 - f + 1, f - 1]), f -= 1, Q += 1), g.push([U - f + 1, f]), Q += 1, y += 1, M.charAt(0);
26329
26332
  if (F) {
26330
26333
  const S = F.endsWith(`
26331
- `), G = S ? F.length - 2 : F.length;
26334
+ `), L = S ? F.length - 2 : F.length;
26332
26335
  b = !0;
26333
- let x = G;
26336
+ let x = L;
26334
26337
  U + y === A[u]?.[1] && (x -= A[u][0], ++u);
26335
- for (let L = 1; L <= x; L++)
26336
- g.push([U - 1 - f + L, f - L]);
26337
- return f -= x, Q += x, S ? (U += G - 1, g.push([U - f + 1, 1 + f]), f += 1, Q += 1, y += 1, F.slice(0, G)) : F;
26338
+ for (let G = 1; G <= x; G++)
26339
+ g.push([U - 1 - f + G, f - G]);
26340
+ return f -= x, Q += x, S ? (U += L - 1, g.push([U - f + 1, 1 + f]), f += 1, Q += 1, y += 1, F.slice(0, L)) : F;
26338
26341
  }
26339
26342
  if (O) {
26340
26343
  const S = O.length - 2;
@@ -26349,8 +26352,8 @@ function oA(n) {
26349
26352
  if (U + y === t[I]?.[1]) {
26350
26353
  const S = t[I][0] - 1;
26351
26354
  ++I;
26352
- for (let G = 1; G <= S; G++)
26353
- g.push([U - (f - G), f - G]);
26355
+ for (let L = 1; L <= S; L++)
26356
+ g.push([U - (f - L), f - L]);
26354
26357
  f -= S, Q += S;
26355
26358
  }
26356
26359
  return H;
@@ -27471,56 +27474,56 @@ class q2 {
27471
27474
  i = gA.lastIndex;
27472
27475
  try {
27473
27476
  this.body.push(I(x[1]));
27474
- } catch (L) {
27475
- if (L instanceof SyntaxError)
27477
+ } catch (G) {
27478
+ if (G instanceof SyntaxError)
27476
27479
  continue;
27477
- throw L;
27480
+ throw G;
27478
27481
  }
27479
27482
  }
27480
27483
  function r(x) {
27481
27484
  return x.lastIndex = i, x.test(t);
27482
27485
  }
27483
- function A(x, L) {
27486
+ function A(x, G) {
27484
27487
  if (t[i] === x)
27485
27488
  return i++, !0;
27486
- if (L)
27487
- throw new L(`Expected ${x}`);
27489
+ if (G)
27490
+ throw new G(`Expected ${x}`);
27488
27491
  return !1;
27489
27492
  }
27490
- function c(x, L) {
27493
+ function c(x, G) {
27491
27494
  if (r(x))
27492
27495
  return i = x.lastIndex, !0;
27493
- if (L)
27494
- throw new L(`Expected ${x.toString()}`);
27496
+ if (G)
27497
+ throw new G(`Expected ${x.toString()}`);
27495
27498
  return !1;
27496
27499
  }
27497
27500
  function g(x) {
27498
27501
  x.lastIndex = i;
27499
- let L = x.exec(t);
27500
- if (L === null)
27502
+ let G = x.exec(t);
27503
+ if (G === null)
27501
27504
  throw new SyntaxError(`Expected ${x.toString()}`);
27502
- return i = x.lastIndex, L;
27505
+ return i = x.lastIndex, G;
27503
27506
  }
27504
27507
  function u(x) {
27505
27508
  return g(x)[1];
27506
27509
  }
27507
27510
  function I(x) {
27508
- let L = Q(), P = f();
27509
- if (L === null && Object.keys(P).length === 0)
27511
+ let G = Q(), P = f();
27512
+ if (G === null && Object.keys(P).length === 0)
27510
27513
  throw new SyntaxError("Expected message value or attributes");
27511
27514
  return {
27512
27515
  id: x,
27513
- value: L,
27516
+ value: G,
27514
27517
  attributes: P
27515
27518
  };
27516
27519
  }
27517
27520
  function f() {
27518
27521
  let x = /* @__PURE__ */ Object.create(null);
27519
27522
  for (; r(Ll); ) {
27520
- let L = u(Ll), P = Q();
27523
+ let G = u(Ll), P = Q();
27521
27524
  if (P === null)
27522
27525
  throw new SyntaxError("Expected attribute value");
27523
- x[L] = P;
27526
+ x[G] = P;
27524
27527
  }
27525
27528
  return x;
27526
27529
  }
@@ -27528,10 +27531,10 @@ class q2 {
27528
27531
  let x;
27529
27532
  if (r(Nr) && (x = u(Nr)), t[i] === "{" || t[i] === "}")
27530
27533
  return y(x ? [x] : [], 1 / 0);
27531
- let L = U();
27532
- return L ? x ? y([x, L], L.length) : (L.value = S(L.value, L2), y([L], L.length)) : x ? S(x, Hl) : null;
27534
+ let G = U();
27535
+ return G ? x ? y([x, G], G.length) : (G.value = S(G.value, L2), y([G], G.length)) : x ? S(x, Hl) : null;
27533
27536
  }
27534
- function y(x = [], L) {
27537
+ function y(x = [], G) {
27535
27538
  for (; ; ) {
27536
27539
  if (r(Nr)) {
27537
27540
  x.push(u(Nr));
@@ -27545,7 +27548,7 @@ class q2 {
27545
27548
  throw new SyntaxError("Unbalanced closing brace");
27546
27549
  let z = U();
27547
27550
  if (z) {
27548
- x.push(z), L = Math.min(L, z.length);
27551
+ x.push(z), G = Math.min(G, z.length);
27549
27552
  continue;
27550
27553
  }
27551
27554
  break;
@@ -27554,7 +27557,7 @@ class q2 {
27554
27557
  typeof K == "string" && (x[P] = S(K, Hl));
27555
27558
  let Z = [];
27556
27559
  for (let z of x)
27557
- z instanceof Ol && (z = z.value.slice(0, z.value.length - L)), z && Z.push(z);
27560
+ z instanceof Ol && (z = z.value.slice(0, z.value.length - G)), z && Z.push(z);
27558
27561
  return Z;
27559
27562
  }
27560
27563
  function b() {
@@ -27563,11 +27566,11 @@ class q2 {
27563
27566
  if (c(Pl))
27564
27567
  return x;
27565
27568
  if (c(J2)) {
27566
- let L = M();
27569
+ let G = M();
27567
27570
  return c(Pl, SyntaxError), {
27568
27571
  type: "select",
27569
27572
  selector: x,
27570
- ...L
27573
+ ...G
27571
27574
  };
27572
27575
  }
27573
27576
  throw new SyntaxError("Unclosed placeable");
@@ -27576,37 +27579,37 @@ class q2 {
27576
27579
  if (t[i] === "{")
27577
27580
  return b();
27578
27581
  if (r(Gl)) {
27579
- let [, x, L, P = null] = g(Gl);
27582
+ let [, x, G, P = null] = g(Gl);
27580
27583
  if (x === "$")
27581
27584
  return {
27582
27585
  type: "var",
27583
- name: L
27586
+ name: G
27584
27587
  };
27585
27588
  if (c(O2)) {
27586
27589
  let K = w();
27587
27590
  if (x === "-")
27588
27591
  return {
27589
27592
  type: "term",
27590
- name: L,
27593
+ name: G,
27591
27594
  attr: P,
27592
27595
  args: K
27593
27596
  };
27594
- if (N2.test(L))
27597
+ if (N2.test(G))
27595
27598
  return {
27596
27599
  type: "func",
27597
- name: L,
27600
+ name: G,
27598
27601
  args: K
27599
27602
  };
27600
27603
  throw new SyntaxError("Function names must be all upper-case");
27601
27604
  }
27602
27605
  return x === "-" ? {
27603
27606
  type: "term",
27604
- name: L,
27607
+ name: G,
27605
27608
  attr: P,
27606
27609
  args: []
27607
27610
  } : {
27608
27611
  type: "mesg",
27609
- name: L,
27612
+ name: G,
27610
27613
  attr: P
27611
27614
  };
27612
27615
  }
@@ -27633,18 +27636,18 @@ class q2 {
27633
27636
  } : x;
27634
27637
  }
27635
27638
  function M() {
27636
- let x = [], L = 0, P;
27639
+ let x = [], G = 0, P;
27637
27640
  for (; r(x2); ) {
27638
- A("*") && (P = L);
27641
+ A("*") && (P = G);
27639
27642
  let K = F(), Z = Q();
27640
27643
  if (Z === null)
27641
27644
  throw new SyntaxError("Expected variant value");
27642
- x[L++] = {
27645
+ x[G++] = {
27643
27646
  key: K,
27644
27647
  value: Z
27645
27648
  };
27646
27649
  }
27647
- if (L === 0)
27650
+ if (G === 0)
27648
27651
  return null;
27649
27652
  if (P === void 0)
27650
27653
  throw new SyntaxError("Expected default variant");
@@ -27669,7 +27672,7 @@ class q2 {
27669
27672
  throw new SyntaxError("Invalid expression");
27670
27673
  }
27671
27674
  function J() {
27672
- let [, x, L = ""] = g(hA), P = L.length;
27675
+ let [, x, G = ""] = g(hA), P = G.length;
27673
27676
  return {
27674
27677
  type: "num",
27675
27678
  value: parseFloat(x),
@@ -27696,7 +27699,7 @@ class q2 {
27696
27699
  if (r(Tl))
27697
27700
  return u(Tl);
27698
27701
  if (r(Ul)) {
27699
- let [, x, L] = g(Ul), P = parseInt(x || L, 16);
27702
+ let [, x, G] = g(Ul), P = parseInt(x || G, 16);
27700
27703
  return P <= 55295 || 57344 <= P ? String.fromCodePoint(P) : "�";
27701
27704
  }
27702
27705
  throw new SyntaxError("Unknown escape sequence");
@@ -27711,17 +27714,17 @@ class q2 {
27711
27714
  case void 0:
27712
27715
  return !1;
27713
27716
  case "{":
27714
- return G(t.slice(x, i));
27717
+ return L(t.slice(x, i));
27715
27718
  }
27716
- return t[i - 1] === " " ? G(t.slice(x, i)) : !1;
27719
+ return t[i - 1] === " " ? L(t.slice(x, i)) : !1;
27717
27720
  }
27718
- function S(x, L) {
27719
- return x.replace(L, "");
27721
+ function S(x, G) {
27722
+ return x.replace(G, "");
27720
27723
  }
27721
- function G(x) {
27722
- let L = x.replace(G2, `
27724
+ function L(x) {
27725
+ let G = x.replace(G2, `
27723
27726
  `), P = T2.exec(x)[1].length;
27724
- return new Ol(L, P);
27727
+ return new Ol(G, P);
27725
27728
  }
27726
27729
  }
27727
27730
  }
@@ -28795,7 +28798,7 @@ class C9 {
28795
28798
  (A || r) && (nr.maxCanvasPixels = 5242880);
28796
28799
  })();
28797
28800
  }
28798
- const ce = {
28801
+ const le = {
28799
28802
  BROWSER: 1,
28800
28803
  VIEWER: 2,
28801
28804
  API: 4,
@@ -28804,249 +28807,249 @@ const ce = {
28804
28807
  }, mn = {
28805
28808
  canvasMaxAreaInBytes: {
28806
28809
  value: -1,
28807
- kind: ce.BROWSER + ce.API
28810
+ kind: le.BROWSER + le.API
28808
28811
  },
28809
28812
  isInAutomation: {
28810
28813
  value: !1,
28811
- kind: ce.BROWSER
28814
+ kind: le.BROWSER
28812
28815
  },
28813
28816
  supportsCaretBrowsingMode: {
28814
28817
  value: !1,
28815
- kind: ce.BROWSER
28818
+ kind: le.BROWSER
28816
28819
  },
28817
28820
  supportsDocumentFonts: {
28818
28821
  value: !0,
28819
- kind: ce.BROWSER
28822
+ kind: le.BROWSER
28820
28823
  },
28821
28824
  supportsIntegratedFind: {
28822
28825
  value: !1,
28823
- kind: ce.BROWSER
28826
+ kind: le.BROWSER
28824
28827
  },
28825
28828
  supportsMouseWheelZoomCtrlKey: {
28826
28829
  value: !0,
28827
- kind: ce.BROWSER
28830
+ kind: le.BROWSER
28828
28831
  },
28829
28832
  supportsMouseWheelZoomMetaKey: {
28830
28833
  value: !0,
28831
- kind: ce.BROWSER
28834
+ kind: le.BROWSER
28832
28835
  },
28833
28836
  supportsPinchToZoom: {
28834
28837
  value: !0,
28835
- kind: ce.BROWSER
28838
+ kind: le.BROWSER
28836
28839
  },
28837
28840
  annotationEditorMode: {
28838
28841
  value: 0,
28839
- kind: ce.VIEWER + ce.PREFERENCE
28842
+ kind: le.VIEWER + le.PREFERENCE
28840
28843
  },
28841
28844
  annotationMode: {
28842
28845
  value: 2,
28843
- kind: ce.VIEWER + ce.PREFERENCE
28846
+ kind: le.VIEWER + le.PREFERENCE
28844
28847
  },
28845
28848
  cursorToolOnLoad: {
28846
28849
  value: 0,
28847
- kind: ce.VIEWER + ce.PREFERENCE
28850
+ kind: le.VIEWER + le.PREFERENCE
28848
28851
  },
28849
28852
  debuggerSrc: {
28850
28853
  value: "./debugger.mjs",
28851
- kind: ce.VIEWER
28854
+ kind: le.VIEWER
28852
28855
  },
28853
28856
  defaultZoomDelay: {
28854
28857
  value: 400,
28855
- kind: ce.VIEWER + ce.PREFERENCE
28858
+ kind: le.VIEWER + le.PREFERENCE
28856
28859
  },
28857
28860
  defaultZoomValue: {
28858
28861
  value: "",
28859
- kind: ce.VIEWER + ce.PREFERENCE
28862
+ kind: le.VIEWER + le.PREFERENCE
28860
28863
  },
28861
28864
  disableHistory: {
28862
28865
  value: !1,
28863
- kind: ce.VIEWER
28866
+ kind: le.VIEWER
28864
28867
  },
28865
28868
  disablePageLabels: {
28866
28869
  value: !1,
28867
- kind: ce.VIEWER + ce.PREFERENCE
28870
+ kind: le.VIEWER + le.PREFERENCE
28868
28871
  },
28869
28872
  enableHighlightEditor: {
28870
28873
  value: !1,
28871
- kind: ce.VIEWER + ce.PREFERENCE
28874
+ kind: le.VIEWER + le.PREFERENCE
28872
28875
  },
28873
28876
  enableHighlightFloatingButton: {
28874
28877
  value: !1,
28875
- kind: ce.VIEWER + ce.PREFERENCE
28878
+ kind: le.VIEWER + le.PREFERENCE
28876
28879
  },
28877
28880
  enableML: {
28878
28881
  value: !1,
28879
- kind: ce.VIEWER + ce.PREFERENCE
28882
+ kind: le.VIEWER + le.PREFERENCE
28880
28883
  },
28881
28884
  enablePermissions: {
28882
28885
  value: !1,
28883
- kind: ce.VIEWER + ce.PREFERENCE
28886
+ kind: le.VIEWER + le.PREFERENCE
28884
28887
  },
28885
28888
  enablePrintAutoRotate: {
28886
28889
  value: !0,
28887
- kind: ce.VIEWER + ce.PREFERENCE
28890
+ kind: le.VIEWER + le.PREFERENCE
28888
28891
  },
28889
28892
  enableScripting: {
28890
28893
  value: !0,
28891
- kind: ce.VIEWER + ce.PREFERENCE
28894
+ kind: le.VIEWER + le.PREFERENCE
28892
28895
  },
28893
28896
  enableStampEditor: {
28894
28897
  value: !0,
28895
- kind: ce.VIEWER + ce.PREFERENCE
28898
+ kind: le.VIEWER + le.PREFERENCE
28896
28899
  },
28897
28900
  externalLinkRel: {
28898
28901
  value: "noopener noreferrer nofollow",
28899
- kind: ce.VIEWER
28902
+ kind: le.VIEWER
28900
28903
  },
28901
28904
  externalLinkTarget: {
28902
28905
  value: 0,
28903
- kind: ce.VIEWER + ce.PREFERENCE
28906
+ kind: le.VIEWER + le.PREFERENCE
28904
28907
  },
28905
28908
  highlightEditorColors: {
28906
28909
  value: "yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",
28907
- kind: ce.VIEWER + ce.PREFERENCE
28910
+ kind: le.VIEWER + le.PREFERENCE
28908
28911
  },
28909
28912
  historyUpdateUrl: {
28910
28913
  value: !1,
28911
- kind: ce.VIEWER + ce.PREFERENCE
28914
+ kind: le.VIEWER + le.PREFERENCE
28912
28915
  },
28913
28916
  ignoreDestinationZoom: {
28914
28917
  value: !1,
28915
- kind: ce.VIEWER + ce.PREFERENCE
28918
+ kind: le.VIEWER + le.PREFERENCE
28916
28919
  },
28917
28920
  imageResourcesPath: {
28918
28921
  value: "./images/",
28919
- kind: ce.VIEWER
28922
+ kind: le.VIEWER
28920
28923
  },
28921
28924
  maxCanvasPixels: {
28922
28925
  value: 2 ** 25,
28923
- kind: ce.VIEWER
28926
+ kind: le.VIEWER
28924
28927
  },
28925
28928
  forcePageColors: {
28926
28929
  value: !1,
28927
- kind: ce.VIEWER + ce.PREFERENCE
28930
+ kind: le.VIEWER + le.PREFERENCE
28928
28931
  },
28929
28932
  pageColorsBackground: {
28930
28933
  value: "Canvas",
28931
- kind: ce.VIEWER + ce.PREFERENCE
28934
+ kind: le.VIEWER + le.PREFERENCE
28932
28935
  },
28933
28936
  pageColorsForeground: {
28934
28937
  value: "CanvasText",
28935
- kind: ce.VIEWER + ce.PREFERENCE
28938
+ kind: le.VIEWER + le.PREFERENCE
28936
28939
  },
28937
28940
  pdfBugEnabled: {
28938
28941
  value: !1,
28939
- kind: ce.VIEWER + ce.PREFERENCE
28942
+ kind: le.VIEWER + le.PREFERENCE
28940
28943
  },
28941
28944
  printResolution: {
28942
28945
  value: 150,
28943
- kind: ce.VIEWER
28946
+ kind: le.VIEWER
28944
28947
  },
28945
28948
  sidebarViewOnLoad: {
28946
28949
  value: -1,
28947
- kind: ce.VIEWER + ce.PREFERENCE
28950
+ kind: le.VIEWER + le.PREFERENCE
28948
28951
  },
28949
28952
  scrollModeOnLoad: {
28950
28953
  value: -1,
28951
- kind: ce.VIEWER + ce.PREFERENCE
28954
+ kind: le.VIEWER + le.PREFERENCE
28952
28955
  },
28953
28956
  spreadModeOnLoad: {
28954
28957
  value: -1,
28955
- kind: ce.VIEWER + ce.PREFERENCE
28958
+ kind: le.VIEWER + le.PREFERENCE
28956
28959
  },
28957
28960
  textLayerMode: {
28958
28961
  value: 1,
28959
- kind: ce.VIEWER + ce.PREFERENCE
28962
+ kind: le.VIEWER + le.PREFERENCE
28960
28963
  },
28961
28964
  viewOnLoad: {
28962
28965
  value: 0,
28963
- kind: ce.VIEWER + ce.PREFERENCE
28966
+ kind: le.VIEWER + le.PREFERENCE
28964
28967
  },
28965
28968
  cMapPacked: {
28966
28969
  value: !0,
28967
- kind: ce.API
28970
+ kind: le.API
28968
28971
  },
28969
28972
  cMapUrl: {
28970
28973
  value: "../web/cmaps/",
28971
- kind: ce.API
28974
+ kind: le.API
28972
28975
  },
28973
28976
  disableAutoFetch: {
28974
28977
  value: !1,
28975
- kind: ce.API + ce.PREFERENCE
28978
+ kind: le.API + le.PREFERENCE
28976
28979
  },
28977
28980
  disableFontFace: {
28978
28981
  value: !1,
28979
- kind: ce.API + ce.PREFERENCE
28982
+ kind: le.API + le.PREFERENCE
28980
28983
  },
28981
28984
  disableRange: {
28982
28985
  value: !1,
28983
- kind: ce.API + ce.PREFERENCE
28986
+ kind: le.API + le.PREFERENCE
28984
28987
  },
28985
28988
  disableStream: {
28986
28989
  value: !1,
28987
- kind: ce.API + ce.PREFERENCE
28990
+ kind: le.API + le.PREFERENCE
28988
28991
  },
28989
28992
  docBaseUrl: {
28990
28993
  value: "",
28991
- kind: ce.API
28994
+ kind: le.API
28992
28995
  },
28993
28996
  enableXfa: {
28994
28997
  value: !0,
28995
- kind: ce.API + ce.PREFERENCE
28998
+ kind: le.API + le.PREFERENCE
28996
28999
  },
28997
29000
  fontExtraProperties: {
28998
29001
  value: !1,
28999
- kind: ce.API
29002
+ kind: le.API
29000
29003
  },
29001
29004
  isEvalSupported: {
29002
29005
  value: !0,
29003
- kind: ce.API
29006
+ kind: le.API
29004
29007
  },
29005
29008
  isOffscreenCanvasSupported: {
29006
29009
  value: !0,
29007
- kind: ce.API
29010
+ kind: le.API
29008
29011
  },
29009
29012
  maxImageSize: {
29010
29013
  value: -1,
29011
- kind: ce.API
29014
+ kind: le.API
29012
29015
  },
29013
29016
  pdfBug: {
29014
29017
  value: !1,
29015
- kind: ce.API
29018
+ kind: le.API
29016
29019
  },
29017
29020
  standardFontDataUrl: {
29018
29021
  value: "../web/standard_fonts/",
29019
- kind: ce.API
29022
+ kind: le.API
29020
29023
  },
29021
29024
  verbosity: {
29022
29025
  value: 1,
29023
- kind: ce.API
29026
+ kind: le.API
29024
29027
  },
29025
29028
  workerPort: {
29026
29029
  value: null,
29027
- kind: ce.WORKER
29030
+ kind: le.WORKER
29028
29031
  },
29029
29032
  workerSrc: {
29030
29033
  value: "../build/pdf.worker.mjs",
29031
- kind: ce.WORKER
29034
+ kind: le.WORKER
29032
29035
  }
29033
29036
  };
29034
29037
  mn.defaultUrl = {
29035
29038
  value: "compressed.tracemonkey-pldi-09.pdf",
29036
- kind: ce.VIEWER
29039
+ kind: le.VIEWER
29037
29040
  }, mn.sandboxBundleSrc = {
29038
29041
  value: "../build/pdf.sandbox.mjs",
29039
- kind: ce.VIEWER
29042
+ kind: le.VIEWER
29040
29043
  }, mn.viewerCssTheme = {
29041
29044
  value: 0,
29042
- kind: ce.VIEWER + ce.PREFERENCE
29045
+ kind: le.VIEWER + le.PREFERENCE
29043
29046
  };
29044
29047
  mn.disablePreferences = {
29045
29048
  value: !1,
29046
- kind: ce.VIEWER
29049
+ kind: le.VIEWER
29047
29050
  }, mn.locale = {
29048
29051
  value: navigator.language || "en-US",
29049
- kind: ce.VIEWER
29052
+ kind: le.VIEWER
29050
29053
  };
29051
29054
  const Cn = /* @__PURE__ */ Object.create(null);
29052
29055
  for (const n in nr)
@@ -29363,13 +29366,13 @@ class p9 {
29363
29366
  function b(F, O, J, T) {
29364
29367
  let H = c[F];
29365
29368
  if (H.nodeType === Node.TEXT_NODE) {
29366
- const G = document.createElement("span");
29367
- H.before(G), G.append(H), c[F] = G, H = G;
29369
+ const L = document.createElement("span");
29370
+ H.before(L), L.append(H), c[F] = L, H = L;
29368
29371
  }
29369
29372
  const U = A[F].substring(O, J), S = document.createTextNode(U);
29370
29373
  if (T) {
29371
- const G = document.createElement("span");
29372
- return G.className = `${T} appended`, G.append(S), H.append(G), T.includes("selected") ? G.offsetLeft : 0;
29374
+ const L = document.createElement("span");
29375
+ return L.className = `${T} appended`, L.append(S), H.append(L), T.includes("selected") ? L.offsetLeft : 0;
29373
29376
  }
29374
29377
  return H.append(S), 0;
29375
29378
  }
@@ -29390,8 +29393,8 @@ class p9 {
29390
29393
  S = b(J.divIdx, J.offset, T.offset, "highlight" + U);
29391
29394
  else {
29392
29395
  S = b(J.divIdx, J.offset, Q.offset, "highlight begin" + U);
29393
- for (let G = J.divIdx + 1, x = T.divIdx; G < x; G++)
29394
- c[G].className = "highlight middle" + U;
29396
+ for (let L = J.divIdx + 1, x = T.divIdx; L < x; L++)
29397
+ c[L].className = "highlight middle" + U;
29395
29398
  y(T, "highlight end" + U);
29396
29399
  }
29397
29400
  f = T, H && i.scrollMatchIntoView({
@@ -29956,9 +29959,9 @@ class jh {
29956
29959
  const {
29957
29960
  annotationStorage: U,
29958
29961
  annotationEditorUIManager: S,
29959
- downloadManager: G,
29962
+ downloadManager: L,
29960
29963
  enableScripting: x,
29961
- fieldObjectsPromise: L,
29964
+ fieldObjectsPromise: G,
29962
29965
  hasJSActionsPromise: P,
29963
29966
  linkService: K
29964
29967
  } = this.#i;
@@ -29968,10 +29971,10 @@ class jh {
29968
29971
  imageResourcesPath: this.imageResourcesPath,
29969
29972
  renderForms: this.#e === sn.ENABLE_FORMS,
29970
29973
  linkService: K,
29971
- downloadManager: G,
29974
+ downloadManager: L,
29972
29975
  enableScripting: x,
29973
29976
  hasJSActionsPromise: P,
29974
- fieldObjectsPromise: L,
29977
+ fieldObjectsPromise: G,
29975
29978
  annotationCanvasMap: this._annotationCanvasMap,
29976
29979
  accessibilityManager: this._accessibilityManager,
29977
29980
  annotationEditorUIManager: S,
@@ -30848,8 +30851,8 @@ class Wh {
30848
30851
  }
30849
30852
  for (let H = 2; H <= i; ++H) {
30850
30853
  const U = t.getPage(H).then((S) => {
30851
- const G = this._pages[H - 1];
30852
- G.pdfPage || G.setPdfPage(S), --T === 0 && this._pagesCapability.resolve();
30854
+ const L = this._pages[H - 1];
30855
+ L.pdfPage || L.setPdfPage(S), --T === 0 && this._pagesCapability.resolve();
30853
30856
  }, (S) => {
30854
30857
  console.error(`Unable to get page ${H} to initialize viewer`, S), --T === 0 && this._pagesCapability.resolve();
30855
30858
  });
@@ -31574,7 +31577,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31574
31577
  const ee = P.getBoundingClientRect();
31575
31578
  return I.value.getBoundingClientRect(), ie.top = (ie.top - ee.top) / (g.value / 100) + P.scrollTop, ie.left = (ie.left - ee.left) / (g.value / 100) + P.scrollLeft, ie.bottom = (ie.bottom - ee.top) / (g.value / 100) + P.scrollTop, ie.right = (ie.right - ee.left) / (g.value / 100) + P.scrollLeft, ie;
31576
31579
  }
31577
- const G = (P) => {
31580
+ const L = (P) => {
31578
31581
  const { target: K } = P;
31579
31582
  K.tagName !== "SPAN" && r("bypass-selection", P);
31580
31583
  }, x = (P) => {
@@ -31585,16 +31588,16 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31585
31588
  });
31586
31589
  r("selection-change", z);
31587
31590
  }
31588
- }, L = () => {
31591
+ }, G = () => {
31589
31592
  D.forEach((P) => P.destroy()), b.cleanup(), b.destroy(), D = [], b = null, URL.revokeObjectURL(i);
31590
31593
  };
31591
31594
  return li(async () => {
31592
31595
  await Promise.resolve({ }), await J(M);
31593
31596
  }), Pd(() => {
31594
- L();
31597
+ G();
31595
31598
  }), (P, K) => (pe(), ye("div", {
31596
31599
  class: "superdoc-pdf-viewer-container",
31597
- onMousedown: G,
31600
+ onMousedown: L,
31598
31601
  onMouseup: x
31599
31602
  }, [
31600
31603
  Xe("div", {
@@ -31645,21 +31648,21 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31645
31648
  U.left = U.right, U.right = x;
31646
31649
  }
31647
31650
  T.selectionBounds = U;
31648
- const S = Q.value.find((x) => x.id === T.documentId), G = Tn(H);
31649
- u.value = G.commentId, S.conversations.push(G), b.$superdoc.emit("comments-update", { type: c.NEW, comment: G.getValues() });
31651
+ const S = Q.value.find((x) => x.id === T.documentId), L = Tn(H);
31652
+ u.value = L.commentId, S.conversations.push(L), b.$superdoc.emit("comments-update", { type: c.NEW, comment: L.getValues() });
31650
31653
  }, M = (T) => {
31651
- const { selection: H, commentId: U } = T, S = H.getContainerLocation(w.parent), G = T.selection.selectionBounds;
31652
- (parseFloat(G.top) + S.top) * y.value;
31653
- const x = "#078383", L = "#B1124B";
31654
+ const { selection: H, commentId: U } = T, S = H.getContainerLocation(w.parent), L = T.selection.selectionBounds;
31655
+ (parseFloat(L.top) + S.top) * y.value;
31656
+ const x = "#078383", G = "#B1124B";
31654
31657
  let P = "33";
31655
31658
  u.value === U && (P = "66");
31656
- let K = T.isInternal ? x : L;
31659
+ let K = T.isInternal ? x : G;
31657
31660
  return K += P, {
31658
31661
  position: "absolute",
31659
- top: parseFloat(G.top) + "px",
31660
- left: G.left + "px",
31661
- width: G.right - G.left + "px",
31662
- height: G.bottom - G.top + "px",
31662
+ top: parseFloat(L.top) + "px",
31663
+ left: L.left + "px",
31664
+ width: L.right - L.left + "px",
31665
+ height: L.bottom - L.top + "px",
31663
31666
  backgroundColor: K,
31664
31667
  pointerEvents: T.suppressClick ? "none" : "auto"
31665
31668
  };
@@ -31723,18 +31726,21 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31723
31726
  O && _t(() => {
31724
31727
  const T = J;
31725
31728
  if (f.value.some((P) => P.id == T)) return;
31726
- const H = r.value.find((P) => P.commentId === T || P.importedId == T), U = u.value[T]?.bounds;
31727
- if (!U) return;
31728
- const S = w(t.parent);
31729
- S === window ? window.scrollY : S.scrollTop;
31730
- const G = t.parent.getBoundingClientRect(), x = O.value?.getBoundingClientRect(), L = {
31729
+ const H = t.parent.getBoundingClientRect(), U = r.value.find((P) => P.commentId === T || P.importedId == T);
31730
+ let S = u.value[T]?.bounds || {};
31731
+ if (t.currentDocument.type === "application/pdf" && (Object.entries(U.selection?.selectionBounds).forEach(([P, K]) => {
31732
+ S[P] = Number(K);
31733
+ }), S.top += H.top), !S) return;
31734
+ const L = w(t.parent);
31735
+ L === window ? window.scrollY : L.scrollTop;
31736
+ const x = O.value?.getBoundingClientRect(), G = {
31731
31737
  id: T,
31732
- top: U.top - G.top,
31738
+ top: S.top - H.top,
31733
31739
  height: x.height,
31734
- commentRef: H,
31740
+ commentRef: U,
31735
31741
  elementRef: O
31736
31742
  };
31737
- f.value.push(L);
31743
+ f.value.push(G);
31738
31744
  });
31739
31745
  }, M = async () => {
31740
31746
  let F = 0;
@@ -31802,7 +31808,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31802
31808
  ], 4)) : tt("", !0)
31803
31809
  ], 512));
31804
31810
  }
31805
- }, q9 = /* @__PURE__ */ Tt(_9, [["__scopeId", "data-v-76d3706b"]]), j9 = {
31811
+ }, q9 = /* @__PURE__ */ Tt(_9, [["__scopeId", "data-v-e6543c90"]]), j9 = {
31806
31812
  __name: "TextField",
31807
31813
  props: {
31808
31814
  field: {
@@ -31987,9 +31993,9 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
31987
31993
  const { itemid: M, page: F, nostyle: O } = k;
31988
31994
  let J = k.pageannotation;
31989
31995
  k.itemfieldtype === "CHECKBOXINPUT" && (J = k.annotationid);
31990
- const { x1: T, y1: H, x2: U, y2: S } = k, G = { x1: T, y1: H, x2: U, y2: S }, x = document.getElementById(`${Q}-page-${F + 1}`);
31996
+ const { x1: T, y1: H, x2: U, y2: S } = k, L = { x1: T, y1: H, x2: U, y2: S }, x = document.getElementById(`${Q}-page-${F + 1}`);
31991
31997
  if (!x) return;
31992
- const L = x.getBoundingClientRect(), P = f.pageContainers.find((ne) => ne.page === F + 1), K = L.height / P.containerBounds.originalHeight, Z = L.bottom - D.top, z = L.left - D.left, q = u(G, K, Z, z), ie = {
31998
+ const G = x.getBoundingClientRect(), P = f.pageContainers.find((ne) => ne.page === F), K = G.height / P.containerBounds.originalHeight, Z = G.bottom - D.top, z = G.left - D.left, q = u(L, K, Z, z), ie = {
31993
31999
  fontSize: k.original_font_size + "px",
31994
32000
  originalFontSize: k.original_font_size,
31995
32001
  coordinates: q
@@ -32138,15 +32144,15 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32138
32144
  isCommentsListVisible: H,
32139
32145
  isFloatingCommentsReady: U,
32140
32146
  generalCommentIds: S,
32141
- getFloatingComments: G,
32147
+ getFloatingComments: L,
32142
32148
  hasSyncedCollaborationComments: x,
32143
- editorCommentPositions: L,
32149
+ editorCommentPositions: G,
32144
32150
  hasInitializedLocations: P
32145
32151
  } = Ei(r), { showAddComment: K, handleEditorLocationsUpdate: Z, handleTrackedChangeUpdate: z } = r, { proxy: q } = Ji();
32146
32152
  r.proxy = q;
32147
32153
  const ie = V(null), ee = V(null), ne = ti({ top: null, right: "-25px", zIndex: 101 }), se = V(null), Ee = (de, X) => {
32148
32154
  const he = D(de);
32149
- he.isReady = !0, he.container = X, g.value && (q.$superdoc.config.collaboration || (c.value = !0)), U.value = !0, q.$superdoc.broadcastPdfDocumentReady();
32155
+ he.isReady = !0, he.container = X, g.value && (q.$superdoc.config.collaboration || (c.value = !0)), U.value = !0, P.value = !0, q.$superdoc.broadcastPdfDocumentReady();
32150
32156
  }, Fe = (de) => {
32151
32157
  const X = {
32152
32158
  comments: () => K(q.$superdoc)
@@ -32178,7 +32184,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32178
32184
  q.$superdoc.lockSuperdoc(X, he);
32179
32185
  }, Qe = ({ editor: de }) => {
32180
32186
  q.$superdoc.emit("editor-update", { editor: de });
32181
- }, we = ({ editor: de, transaction: X }) => {
32187
+ }, Se = ({ editor: de, transaction: X }) => {
32182
32188
  if (J.value) {
32183
32189
  J.value = !1;
32184
32190
  return;
@@ -32207,7 +32213,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32207
32213
  q.$superdoc.emit("content-error", { error: de, editor: X });
32208
32214
  }, ge = ({ error: de, editor: X }) => {
32209
32215
  q.$superdoc.emit("exception", { error: de, editor: X });
32210
- }, le = (de) => ({
32216
+ }, ce = (de) => ({
32211
32217
  pagination: q.$superdoc.config.pagination,
32212
32218
  documentId: de.id,
32213
32219
  user: q.$superdoc.user,
@@ -32225,27 +32231,27 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32225
32231
  onFocus: W,
32226
32232
  onDocumentLocked: me,
32227
32233
  onUpdate: Qe,
32228
- onSelectionUpdate: we,
32234
+ onSelectionUpdate: Se,
32229
32235
  onCollaborationReady: _e,
32230
32236
  onContentError: gt,
32231
32237
  onException: ge,
32232
32238
  onCommentsLoaded: ft,
32233
- onCommentsUpdate: Te,
32234
- onCommentLocationsUpdate: Se,
32239
+ onCommentsUpdate: Ge,
32240
+ onCommentLocationsUpdate: we,
32235
32241
  ydoc: de.ydoc,
32236
32242
  collaborationProvider: de.provider || null,
32237
32243
  isNewFile: de.isNewFile || !1,
32238
32244
  handleImageUpload: q.$superdoc.config.handleImageUpload,
32239
32245
  telemetry: q.$superdoc.telemetry,
32240
32246
  externalExtensions: q.$superdoc.config.editorExtensions || []
32241
- }), Se = ({ allCommentIds: de, allCommentPositions: X }) => {
32247
+ }), we = ({ allCommentIds: de, allCommentPositions: X }) => {
32242
32248
  q.$superdoc.config.modules?.comments && Z(X, de);
32243
- }, Te = (de = {}) => {
32249
+ }, Ge = (de = {}) => {
32244
32250
  const { activeCommentId: X, type: he } = de;
32245
32251
  he === "trackedChange" && z({ superdoc: q.$superdoc, params: de }), _t(() => {
32246
32252
  F.value || r.setActiveComment(X);
32247
32253
  }), typeof q.$superdoc.config.onCommentsUpdate == "function" && q.$superdoc.config.onCommentsUpdate(de);
32248
- }, Me = Ae(() => "comments" in y), Je = Ae(() => F.value || G.value?.length > 0 && c.value && ie.value && Me.value && !H.value), Re = Ae(() => Me.value ? ne.top && !w.value?.readOnly : !1);
32254
+ }, Me = Ae(() => "comments" in y), Je = Ae(() => F.value || L.value?.length > 0 && c.value && ie.value && Me.value && !H.value), Re = Ae(() => Me.value ? ne.top && !w.value?.readOnly : !1);
32249
32255
  Ae(() => {
32250
32256
  if (!Me.value) return !1;
32251
32257
  !w?.readOnly && u.value;
@@ -32342,7 +32348,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32342
32348
  }, vi = (de) => {
32343
32349
  Me.value && (ni(), Ve.value = !0, gi(de));
32344
32350
  };
32345
- return bt(G, () => {
32351
+ return bt(L, () => {
32346
32352
  P.value = !1, _t(() => {
32347
32353
  P.value = !0;
32348
32354
  });
@@ -32422,7 +32428,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32422
32428
  "file-source": Ie.data,
32423
32429
  state: Ie.state,
32424
32430
  "document-id": Ie.id,
32425
- options: le(Ie),
32431
+ options: ce(Ie),
32426
32432
  onPageMarginsChange: (Ye) => gn(Ie, Ye)
32427
32433
  }, null, 8, ["file-source", "state", "document-id", "options", "onPageMarginsChange"])) : tt("", !0),
32428
32434
  Ie.type === Oe(TA) ? (pe(), Ci(Cy, {
@@ -32445,7 +32451,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32445
32451
  [he, st]
32446
32452
  ]) : tt("", !0),
32447
32453
  Xe("div", py, [
32448
- Oe(P) && Oe(G).length > 0 ? (pe(!0), ye(qt, { key: 0 }, An(Oe(k), (Ie) => (pe(), Ci(q9, {
32454
+ Oe(P) && Oe(L).length > 0 ? (pe(!0), ye(qt, { key: 0 }, An(Oe(k), (Ie) => (pe(), Ci(q9, {
32449
32455
  parent: ie.value,
32450
32456
  "current-document": Ie
32451
32457
  }, null, 8, ["parent", "current-document"]))), 256)) : tt("", !0)
@@ -32454,7 +32460,7 @@ const N9 = '/**\n * @licstart The following is the entire license notice for the
32454
32460
  ], 2);
32455
32461
  };
32456
32462
  }
32457
- }, my = /* @__PURE__ */ Tt(Qy, [["__scopeId", "data-v-3731e285"]]), yy = () => {
32463
+ }, my = /* @__PURE__ */ Tt(Qy, [["__scopeId", "data-v-58b14292"]]), yy = () => {
32458
32464
  const n = $l(my), t = mI();
32459
32465
  n.use(t), n.directive("click-outside", ng);
32460
32466
  const i = Yi(), r = on();
@@ -32527,7 +32533,7 @@ class ab extends eg {
32527
32533
  this.config = {
32528
32534
  ...this.config,
32529
32535
  ...t
32530
- }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.8.31", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#n(this);
32536
+ }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.8.33", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#n(this);
32531
32537
  }
32532
32538
  get requiredNumberOfEditors() {
32533
32539
  return this.superdocStore.documents.filter((t) => t.type === On).length;