@eternalheart/vue-file-preview 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +3 -3
  2. package/README.zh-CN.md +3 -3
  3. package/lib/chunks/{index-BjLnlWld.mjs → index-5bftazEI.mjs} +44 -45
  4. package/lib/chunks/{index-BW6Z1etg.mjs → index-BFZyrk0b.mjs} +20 -20
  5. package/lib/chunks/index-Bjh8pgvO.mjs +105 -0
  6. package/lib/chunks/index-Bso3kiuo.mjs +48 -0
  7. package/lib/chunks/{index-RshnMles.mjs → index-BujnNIdi.mjs} +213 -207
  8. package/lib/chunks/index-C4x3R4P6.mjs +320 -0
  9. package/lib/chunks/{index-CAM2s3GD.mjs → index-CDdmBvY6.mjs} +19 -19
  10. package/lib/chunks/{index-BkpKhifq.mjs → index-CH0gyinl.mjs} +15 -15
  11. package/lib/chunks/{index-Ccdi178q.mjs → index-COciDyvJ.mjs} +77 -77
  12. package/lib/chunks/{index-Df8-y_Ok.mjs → index-CVQmCNmf.mjs} +18 -18
  13. package/lib/chunks/{index-Dl0SQhkc.mjs → index-CaChuF62.mjs} +25 -25
  14. package/lib/chunks/{index-ntrMGZWG.mjs → index-CmUWVGTa.mjs} +15 -15
  15. package/lib/chunks/{index-Ck-FSxNL.mjs → index-DA_KAGO4.mjs} +21 -21
  16. package/lib/chunks/{index-C9ju7INJ.mjs → index-DLHCSwf3.mjs} +26 -26
  17. package/lib/chunks/{index-CbEYsjU9.mjs → index-DR87l2gD.mjs} +50 -50
  18. package/lib/chunks/{index-CyXt4Rjo.mjs → index-DezBKYfu.mjs} +1 -1
  19. package/lib/chunks/index-DjgGNQ_1.mjs +49 -0
  20. package/lib/chunks/{index-CNVufPKA.mjs → index-Do_q3F1Q.mjs} +1 -1
  21. package/lib/chunks/{index-DnmsSoFY.mjs → index-Dq541Zfu.mjs} +1 -1
  22. package/lib/chunks/{index-CeCl4UNc.mjs → index-DwHqKJVc.mjs} +3746 -1100
  23. package/lib/chunks/{index-Cyps3Pjb.mjs → index-e0CU-cuJ.mjs} +131 -129
  24. package/lib/chunks/{index-DHAH_W8y.mjs → index-yvSDwlVY.mjs} +26 -26
  25. package/lib/chunks/{useShikiHighlight-D2eoQi-e.mjs → useShikiHighlight-CMxdbY5k.mjs} +5 -5
  26. package/lib/index.cjs +78 -48
  27. package/lib/index.css +1 -1
  28. package/lib/index.mjs +7 -7
  29. package/lib/renderers/Doc/index.vue.d.ts +9 -0
  30. package/lib/renderers/Ppt/index.vue.d.ts +9 -0
  31. package/lib/renderers/lazy.d.ts +2 -0
  32. package/package.json +2 -2
  33. package/lib/chunks/index-Bts2l6ss.mjs +0 -300
  34. package/lib/chunks/index-DXECkJ55.mjs +0 -106
@@ -14,7 +14,7 @@ var $t = (u, e, t, s) => ({
14
14
  }
15
15
  });
16
16
  import { defineComponent as jb, ref as Si, watch as aa, nextTick as wu, onMounted as Gb, onBeforeUnmount as _b, openBlock as zh, createElementBlock as Eu, normalizeStyle as Ep, createElementVNode as sn, toDisplayString as zb, unref as Im, createVNode as Vb, createCommentVNode as Su, createBlock as Wb } from "vue";
17
- import { Z as Xb, u as Yb, C as Pm, w as Kb } from "./index-CeCl4UNc.mjs";
17
+ import { a as Xb, u as Yb, Y as Pm, A as Kb } from "./index-DwHqKJVc.mjs";
18
18
  import { _ as Jb } from "./RendererError.vue_vue_type_script_setup_true_lang-BNoENOWX.mjs";
19
19
  import { X as Qb, Menu as Zb, ChevronLeft as qb, ChevronRight as tA, ZoomOut as eA, ZoomIn as sA, RefreshCw as iA } from "lucide-vue-next";
20
20
  import { T as nA } from "./base.types-DaftHyg7.mjs";
@@ -188,7 +188,7 @@ var rA = {
188
188
  }
189
189
  (!L[J] || vt) && f(L, J, vt ? st : $ && I[J] || st, pe);
190
190
  }
191
- }, ht = function(J, st, vt) {
191
+ }, rt = function(J, st, vt) {
192
192
  var pe, ce;
193
193
  if (i) {
194
194
  if (A) {
@@ -237,7 +237,7 @@ var rA = {
237
237
  aTypedArray: R,
238
238
  aTypedArrayConstructor: U,
239
239
  exportTypedArrayMethod: X,
240
- exportTypedArrayStaticMethod: ht,
240
+ exportTypedArrayStaticMethod: rt,
241
241
  getTypedArrayConstructor: Z,
242
242
  isView: j,
243
243
  isTypedArray: F,
@@ -2121,22 +2121,22 @@ var rA = {
2121
2121
  9112(u, e, t) {
2122
2122
  var s = t(6518), i = t(3724), r = t(4576), a = t(7751), o = t(9504), l = t(9565), h = t(4901), c = t(34), d = t(4376), f = t(9297), p = t(655), m = t(6198), v = t(4659), A = t(9039), w = t(8235), E = t(4495), S = r.JSON, T = r.Number, x = r.SyntaxError, C = S && S.parse, I = a("Object", "keys"), O = Object.getOwnPropertyDescriptor, P = o("".charAt), D = o("".slice), L = o(/./.exec), z = o([].push), H = /^\d$/, G = /^[1-9]$/, q = /^[\d-]$/, N = /^[\t\n\r ]$/, $ = 0, et = 1, K = function(F, R) {
2123
2123
  F = p(F);
2124
- var U = new k(F, 0), X = U.parse(), ht = X.value, J = U.skip(N, X.end);
2124
+ var U = new k(F, 0), X = U.parse(), rt = X.value, J = U.skip(N, X.end);
2125
2125
  if (J < F.length)
2126
2126
  throw new x('Unexpected extra character: "' + P(F, J) + '" after the parsed data at: ' + J);
2127
- return h(R) ? dt({ "": ht }, "", R, X) : ht;
2127
+ return h(R) ? dt({ "": rt }, "", R, X) : rt;
2128
2128
  }, dt = function(F, R, U, X) {
2129
- var ht = F[R], J = X && ht === X.value, st = J && typeof X.source == "string" ? { source: X.source } : {}, vt, pe, ce, ae, en;
2130
- if (c(ht)) {
2131
- var ra = d(ht), Au = J ? X.nodes : ra ? [] : {};
2129
+ var rt = F[R], J = X && rt === X.value, st = J && typeof X.source == "string" ? { source: X.source } : {}, vt, pe, ce, ae, en;
2130
+ if (c(rt)) {
2131
+ var ra = d(rt), Au = J ? X.nodes : ra ? [] : {};
2132
2132
  if (ra)
2133
- for (vt = Au.length, ce = m(ht), ae = 0; ae < ce; ae++)
2134
- mt(ht, ae, dt(ht, "" + ae, U, ae < vt ? Au[ae] : void 0));
2133
+ for (vt = Au.length, ce = m(rt), ae = 0; ae < ce; ae++)
2134
+ mt(rt, ae, dt(rt, "" + ae, U, ae < vt ? Au[ae] : void 0));
2135
2135
  else
2136
- for (pe = I(ht), ce = m(pe), ae = 0; ae < ce; ae++)
2137
- en = pe[ae], mt(ht, en, dt(ht, en, U, f(Au, en) ? Au[en] : void 0));
2136
+ for (pe = I(rt), ce = m(pe), ae = 0; ae < ce; ae++)
2137
+ en = pe[ae], mt(rt, en, dt(rt, en, U, f(Au, en) ? Au[en] : void 0));
2138
2138
  }
2139
- return l(U, F, R, ht, st);
2139
+ return l(U, F, R, rt, st);
2140
2140
  }, mt = function(F, R, U) {
2141
2141
  if (i) {
2142
2142
  var X = O(F, R);
@@ -2171,17 +2171,17 @@ var rA = {
2171
2171
  }
2172
2172
  throw new x('Unexpected character: "' + X + '" at: ' + R);
2173
2173
  },
2174
- node: function(F, R, U, X, ht) {
2175
- return new B(R, X, F ? null : D(this.source, U, X), ht);
2174
+ node: function(F, R, U, X, rt) {
2175
+ return new B(R, X, F ? null : D(this.source, U, X), rt);
2176
2176
  },
2177
2177
  object: function() {
2178
- for (var F = this.source, R = this.index + 1, U = !1, X = {}, ht = {}, J = !1; R < F.length; ) {
2178
+ for (var F = this.source, R = this.index + 1, U = !1, X = {}, rt = {}, J = !1; R < F.length; ) {
2179
2179
  if (R = this.until(['"', "}"], R), P(F, R) === "}" && !U) {
2180
2180
  R++, J = !0;
2181
2181
  break;
2182
2182
  }
2183
2183
  var st = this.fork(R).string(), vt = st.value;
2184
- R = st.end, R = this.until([":"], R) + 1, R = this.skip(N, R), st = this.fork(R).parse(), v(ht, vt, st), v(X, vt, st.value), R = this.until([",", "}"], st.end);
2184
+ R = st.end, R = this.until([":"], R) + 1, R = this.skip(N, R), st = this.fork(R).parse(), v(rt, vt, st), v(X, vt, st.value), R = this.until([",", "}"], st.end);
2185
2185
  var pe = P(F, R);
2186
2186
  if (pe === ",")
2187
2187
  U = !0, R++;
@@ -2191,16 +2191,16 @@ var rA = {
2191
2191
  }
2192
2192
  }
2193
2193
  if (!J) throw new x("Unterminated object at: " + R);
2194
- return this.node(et, X, this.index, R, ht);
2194
+ return this.node(et, X, this.index, R, rt);
2195
2195
  },
2196
2196
  array: function() {
2197
- for (var F = this.source, R = this.index + 1, U = !1, X = [], ht = [], J = !1; R < F.length; ) {
2197
+ for (var F = this.source, R = this.index + 1, U = !1, X = [], rt = [], J = !1; R < F.length; ) {
2198
2198
  if (R = this.skip(N, R), P(F, R) === "]" && !U) {
2199
2199
  R++, J = !0;
2200
2200
  break;
2201
2201
  }
2202
2202
  var st = this.fork(R).parse();
2203
- if (z(ht, st), z(X, st.value), R = this.until([",", "]"], st.end), P(F, R) === ",")
2203
+ if (z(rt, st), z(X, st.value), R = this.until([",", "]"], st.end), P(F, R) === ",")
2204
2204
  U = !0, R++;
2205
2205
  else if (P(F, R) === "]") {
2206
2206
  R++, J = !0;
@@ -2208,7 +2208,7 @@ var rA = {
2208
2208
  }
2209
2209
  }
2210
2210
  if (!J) throw new x("Unterminated array at: " + R);
2211
- return this.node(et, X, this.index, R, ht);
2211
+ return this.node(et, X, this.index, R, rt);
2212
2212
  },
2213
2213
  string: function() {
2214
2214
  var F = this.index, R = w(this.source, this.index + 1);
@@ -2225,8 +2225,8 @@ var rA = {
2225
2225
  }
2226
2226
  if (P(F, U) === "e" || P(F, U) === "E") {
2227
2227
  U++, (P(F, U) === "+" || P(F, U) === "-") && U++;
2228
- var ht = U;
2229
- if (U = this.skip(H, U), ht === U) throw new x("Failed to parse number's exponent value at: " + U);
2228
+ var rt = U;
2229
+ if (U = this.skip(H, U), rt === U) throw new x("Failed to parse number's exponent value at: " + U);
2230
2230
  }
2231
2231
  return this.node($, T(D(F, R, U)), R, U);
2232
2232
  },
@@ -2247,8 +2247,8 @@ var rA = {
2247
2247
  };
2248
2248
  var j = A(function() {
2249
2249
  var F = "9007199254740993", R;
2250
- return C(F, function(U, X, ht) {
2251
- R = ht.source;
2250
+ return C(F, function(U, X, rt) {
2251
+ R = rt.source;
2252
2252
  }), R !== F;
2253
2253
  }), Z = E && !A(function() {
2254
2254
  return 1 / C("-0 ") !== -1 / 0;
@@ -2283,11 +2283,11 @@ var rA = {
2283
2283
  typeof R == "string" ? L(Z, R) : (typeof R == "number" || p(R) === "Number" || p(R) === "String") && L(Z, m(R));
2284
2284
  }
2285
2285
  var U = Z.length, X = !0;
2286
- return function(ht, J) {
2286
+ return function(rt, J) {
2287
2287
  if (X)
2288
2288
  return X = !1, J;
2289
2289
  if (h(this)) return J;
2290
- for (var st = 0; st < U; st++) if (Z[st] === ht) return J;
2290
+ for (var st = 0; st < U; st++) if (Z[st] === rt) return J;
2291
2291
  };
2292
2292
  }
2293
2293
  };
@@ -2298,14 +2298,14 @@ var rA = {
2298
2298
  return !S && d(ra) ? N + (L(U, ra.rawJSON) - 1) : ra;
2299
2299
  }, F);
2300
2300
  if (typeof X != "string" || (K && (X = P(X, H, mt)), S)) return X;
2301
- for (var ht = "", J = X.length, st = 0; st < J; st++) {
2301
+ for (var rt = "", J = X.length, st = 0; st < J; st++) {
2302
2302
  var vt = I(X, st);
2303
2303
  if (vt === '"') {
2304
2304
  var pe = A(X, ++st).end - 1, ce = D(X, st, pe);
2305
- ht += D(ce, 0, $) === N ? U[D(ce, $)] : '"' + ce + '"', st = pe;
2306
- } else ht += vt;
2305
+ rt += D(ce, 0, $) === N ? U[D(ce, $)] : '"' + ce + '"', st = pe;
2306
+ } else rt += vt;
2307
2307
  }
2308
- return ht;
2308
+ return rt;
2309
2309
  }
2310
2310
  });
2311
2311
  },
@@ -2734,7 +2734,7 @@ const ks = typeof process == "object" && process + "" == "[object process]" && !
2734
2734
  ENABLE: 1,
2735
2735
  ENABLE_FORMS: 2,
2736
2736
  ENABLE_STORAGE: 3
2737
- }, al = "pdfjs_internal_id_", wc = "pdfjs_internal_editor_", lt = {
2737
+ }, al = "pdfjs_internal_id_", wc = "pdfjs_internal_editor_", ht = {
2738
2738
  DISABLE: -1,
2739
2739
  NONE: 0,
2740
2740
  FREETEXT: 3,
@@ -2929,7 +2929,7 @@ function oA() {
2929
2929
  function ap(u) {
2930
2930
  rp >= mu.INFOS && console.info(`Info: ${u}`);
2931
2931
  }
2932
- function ot(u) {
2932
+ function lt(u) {
2933
2933
  rp >= mu.WARNINGS && console.warn(`Warning: ${u}`);
2934
2934
  }
2935
2935
  function wt(u) {
@@ -2974,7 +2974,7 @@ function am(u, e, t = !1) {
2974
2974
  function Dp(u) {
2975
2975
  return u.substring(u.lastIndexOf("/") + 1);
2976
2976
  }
2977
- function at(u, e, t, s = !1) {
2977
+ function ot(u, e, t, s = !1) {
2978
2978
  return Object.defineProperty(u, e, {
2979
2979
  value: t,
2980
2980
  enumerable: !s,
@@ -3042,26 +3042,26 @@ class Mt {
3042
3042
  const e = new Uint8Array(4);
3043
3043
  e[0] = 1;
3044
3044
  const t = new Uint32Array(e.buffer, 0, 1);
3045
- return at(this, "isLittleEndian", t[0] === 1);
3045
+ return ot(this, "isLittleEndian", t[0] === 1);
3046
3046
  }
3047
3047
  static get isOffscreenCanvasSupported() {
3048
- return at(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
3048
+ return ot(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
3049
3049
  }
3050
3050
  static get isImageDecoderSupported() {
3051
- return at(this, "isImageDecoderSupported", typeof ImageDecoder < "u");
3051
+ return ot(this, "isImageDecoderSupported", typeof ImageDecoder < "u");
3052
3052
  }
3053
3053
  static get isFloat16ArraySupported() {
3054
- return at(this, "isFloat16ArraySupported", typeof Float16Array < "u");
3054
+ return ot(this, "isFloat16ArraySupported", typeof Float16Array < "u");
3055
3055
  }
3056
3056
  static get isSanitizerSupported() {
3057
- return at(this, "isSanitizerSupported", typeof Sanitizer < "u");
3057
+ return ot(this, "isSanitizerSupported", typeof Sanitizer < "u");
3058
3058
  }
3059
3059
  static get platform() {
3060
3060
  const {
3061
3061
  platform: e,
3062
3062
  userAgent: t
3063
3063
  } = navigator;
3064
- return at(this, "platform", {
3064
+ return ot(this, "platform", {
3065
3065
  isAndroid: t.includes("Android"),
3066
3066
  isLinux: e.includes("Linux"),
3067
3067
  isMac: e.includes("Mac"),
@@ -3071,22 +3071,22 @@ class Mt {
3071
3071
  }
3072
3072
  static get isCanvasFilterSupported() {
3073
3073
  let e;
3074
- return this.isOffscreenCanvasSupported ? e = new OffscreenCanvas(1, 1).getContext("2d") : typeof document < "u" && (e = document.createElement("canvas").getContext("2d")), at(this, "isCanvasFilterSupported", (e == null ? void 0 : e.filter) !== void 0);
3074
+ return this.isOffscreenCanvasSupported ? e = new OffscreenCanvas(1, 1).getContext("2d") : typeof document < "u" && (e = document.createElement("canvas").getContext("2d")), ot(this, "isCanvasFilterSupported", (e == null ? void 0 : e.filter) !== void 0);
3075
3075
  }
3076
3076
  static get isAlphaColorInputSupported() {
3077
3077
  if (typeof document > "u")
3078
- return at(this, "isAlphaColorInputSupported", !1);
3078
+ return ot(this, "isAlphaColorInputSupported", !1);
3079
3079
  const e = document.createElement("input");
3080
- return e.type = "color", e.setAttribute("alpha", ""), e.value = "#ff000080", at(this, "isAlphaColorInputSupported", e.value !== "#ff0000");
3080
+ return e.type = "color", e.setAttribute("alpha", ""), e.value = "#ff000080", ot(this, "isAlphaColorInputSupported", e.value !== "#ff0000");
3081
3081
  }
3082
3082
  static get isBackdropFilterSupported() {
3083
- return at(this, "isBackdropFilterSupported", typeof CSS < "u" && CSS.supports("backdrop-filter", "blur(1px)"));
3083
+ return ot(this, "isBackdropFilterSupported", typeof CSS < "u" && CSS.supports("backdrop-filter", "blur(1px)"));
3084
3084
  }
3085
3085
  }
3086
3086
  var Xn, ku, kp;
3087
3087
  class _ {
3088
3088
  static get hexNums() {
3089
- return at(this, "hexNums", Array.from(Array(256).keys(), (e) => e.toString(16).padStart(2, "0")));
3089
+ return ot(this, "hexNums", Array.from(Array(256).keys(), (e) => e.toString(16).padStart(2, "0")));
3090
3090
  }
3091
3091
  static makeHexColor(e, t, s) {
3092
3092
  return `#${this.hexNums[e]}${this.hexNums[t]}${this.hexNums[s]}`;
@@ -3261,7 +3261,7 @@ class vu {
3261
3261
  }
3262
3262
  get rawDims() {
3263
3263
  const e = this.viewBox;
3264
- return at(this, "rawDims", {
3264
+ return ot(this, "rawDims", {
3265
3265
  pageWidth: e[2] - e[0],
3266
3266
  pageHeight: e[3] - e[1],
3267
3267
  pageX: e[0],
@@ -3551,7 +3551,7 @@ function cv(u, e = "document.pdf") {
3551
3551
  if (typeof u != "string")
3552
3552
  return e;
3553
3553
  if (yu(u))
3554
- return ot('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'), e;
3554
+ return lt('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'), e;
3555
3555
  const s = ((o) => {
3556
3556
  try {
3557
3557
  return new URL(o);
@@ -3602,10 +3602,10 @@ class Rm {
3602
3602
  M(this, "times", []);
3603
3603
  }
3604
3604
  time(e) {
3605
- n(this, sr).has(e) && ot(`Timer is already running for ${e}`), n(this, sr).set(e, Date.now());
3605
+ n(this, sr).has(e) && lt(`Timer is already running for ${e}`), n(this, sr).set(e, Date.now());
3606
3606
  }
3607
3607
  timeEnd(e) {
3608
- n(this, sr).has(e) || ot(`Timer has not been started for ${e}`), this.times.push({
3608
+ n(this, sr).has(e) || lt(`Timer has not been started for ${e}`), this.times.push({
3609
3609
  name: e,
3610
3610
  start: n(this, sr).get(e),
3611
3611
  end: Date.now()
@@ -3676,7 +3676,7 @@ function Gh(u) {
3676
3676
  }
3677
3677
  function _h(u) {
3678
3678
  const e = Gh(u);
3679
- return e ? e.slice(0, 3) : (ot(`Not a valid color format: "${u}"`), [0, 0, 0]);
3679
+ return e ? e.slice(0, 3) : (lt(`Not a valid color format: "${u}"`), [0, 0, 0]);
3680
3680
  }
3681
3681
  function fA(u) {
3682
3682
  const e = document.createElement("span");
@@ -3756,7 +3756,7 @@ const Sf = ["image/apng", "image/avif", "image/bmp", "image/gif", "image/jpeg",
3756
3756
  class pA {
3757
3757
  static get isDarkMode() {
3758
3758
  var e;
3759
- return at(this, "isDarkMode", !!((e = window == null ? void 0 : window.matchMedia) != null && e.call(window, "(prefers-color-scheme: dark)").matches));
3759
+ return ot(this, "isDarkMode", !!((e = window == null ? void 0 : window.matchMedia) != null && e.call(window, "(prefers-color-scheme: dark)").matches));
3760
3760
  }
3761
3761
  }
3762
3762
  class dv {
@@ -3770,7 +3770,7 @@ class dv {
3770
3770
  const {
3771
3771
  color: s
3772
3772
  } = window.getComputedStyle(e);
3773
- return e.remove(), at(this, "commentForegroundColor", _h(s));
3773
+ return e.remove(), ot(this, "commentForegroundColor", _h(s));
3774
3774
  }
3775
3775
  }
3776
3776
  function uv(u, e) {
@@ -3900,7 +3900,7 @@ function pv(u) {
3900
3900
  e.closePath();
3901
3901
  break;
3902
3902
  default:
3903
- ot(`Unrecognized drawing path operator: ${u[t - 1]}`);
3903
+ lt(`Unrecognized drawing path operator: ${u[t - 1]}`);
3904
3904
  break;
3905
3905
  }
3906
3906
  return e;
@@ -4205,7 +4205,7 @@ const ym = class ym {
4205
4205
  }), i = new Image();
4206
4206
  i.src = e;
4207
4207
  const r = i.decode().then(() => (s.drawImage(i, 0, 0, 1, 1, 0, 0, 1, 3), new Uint32Array(s.getImageData(0, 0, 1, 1).data.buffer)[0] === 0));
4208
- return at(this, "_isSVGFittingCanvas", r);
4208
+ return ot(this, "_isSVGFittingCanvas", r);
4209
4209
  }
4210
4210
  async getFromFile(e) {
4211
4211
  const {
@@ -4305,7 +4305,7 @@ fl = new WeakMap(), Lc = new WeakMap(), Ue = new WeakMap(), pl = new WeakSet(),
4305
4305
  s.bitmap = await createImageBitmap(i);
4306
4306
  s.refCounter = 1;
4307
4307
  } catch (i) {
4308
- ot(i), s = null;
4308
+ lt(i), s = null;
4309
4309
  }
4310
4310
  return n(this, Ue).set(e, s), s && n(this, Ue).set(s.id, s), s;
4311
4311
  };
@@ -4450,12 +4450,12 @@ Hh = new WeakSet(), wv = function(e) {
4450
4450
  continue;
4451
4451
  }
4452
4452
  if (t !== null) {
4453
- ot(`KeyboardManager: multiple keys in shortcut "${e}"`);
4453
+ lt(`KeyboardManager: multiple keys in shortcut "${e}"`);
4454
4454
  break;
4455
4455
  }
4456
4456
  t = r === "SPACE" ? " " : i;
4457
4457
  }
4458
- return t === null && ot(`KeyboardManager: no key found in shortcut "${e}"`), [t, s];
4458
+ return t === null && lt(`KeyboardManager: no key found in shortcut "${e}"`), [t, s];
4459
4459
  }, Ev = function(e) {
4460
4460
  var s;
4461
4461
  const t = /^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(e);
@@ -4465,7 +4465,7 @@ let Ko = is;
4465
4465
  const Ff = class Ff {
4466
4466
  get _colors() {
4467
4467
  const e = /* @__PURE__ */ new Map([["CanvasText", null], ["Canvas", null]]);
4468
- return fA(e), at(this, "_colors", e);
4468
+ return fA(e), ot(this, "_colors", e);
4469
4469
  }
4470
4470
  convert(e) {
4471
4471
  const t = _h(e);
@@ -4524,7 +4524,7 @@ const ol = class ol {
4524
4524
  y(this, Sl, null);
4525
4525
  y(this, pr, null);
4526
4526
  y(this, $c, null);
4527
- y(this, le, lt.NONE);
4527
+ y(this, le, ht.NONE);
4528
4528
  y(this, Rt, /* @__PURE__ */ new Set());
4529
4529
  y(this, cn, null);
4530
4530
  y(this, gr, null);
@@ -4581,7 +4581,7 @@ const ol = class ol {
4581
4581
  }
4582
4582
  return !0;
4583
4583
  }, i = this.TRANSLATE_SMALL, r = this.TRANSLATE_BIG;
4584
- return at(this, "_keyboardManager", new Ko([[["ctrl+a", "mac+meta+a"], e.selectAll, {
4584
+ return ot(this, "_keyboardManager", new Ko([[["ctrl+a", "mac+meta+a"], e.selectAll, {
4585
4585
  checker: s
4586
4586
  }], [["ctrl+z", "mac+meta+z"], e.undo, {
4587
4587
  checker: s
@@ -4643,20 +4643,20 @@ const ol = class ol {
4643
4643
  return n(this, Al);
4644
4644
  }
4645
4645
  get hcmFilter() {
4646
- return at(this, "hcmFilter", n(this, mr) ? n(this, Uc).addHCMFilter(n(this, mr).foreground, n(this, mr).background) : "none");
4646
+ return ot(this, "hcmFilter", n(this, mr) ? n(this, Uc).addHCMFilter(n(this, mr).foreground, n(this, mr).background) : "none");
4647
4647
  }
4648
4648
  get direction() {
4649
- return at(this, "direction", getComputedStyle(n(this, dn)).direction);
4649
+ return ot(this, "direction", getComputedStyle(n(this, dn)).direction);
4650
4650
  }
4651
4651
  get _highlightColors() {
4652
- return at(this, "_highlightColors", n(this, wl) ? new Map(n(this, wl).split(",").map((e) => (e = e.split("=").map((t) => t.trim()), e[1] = e[1].toUpperCase(), e))) : null);
4652
+ return ot(this, "_highlightColors", n(this, wl) ? new Map(n(this, wl).split(",").map((e) => (e = e.split("=").map((t) => t.trim()), e[1] = e[1].toUpperCase(), e))) : null);
4653
4653
  }
4654
4654
  get highlightColors() {
4655
4655
  const {
4656
4656
  _highlightColors: e
4657
4657
  } = this;
4658
4658
  if (!e)
4659
- return at(this, "highlightColors", null);
4659
+ return ot(this, "highlightColors", null);
4660
4660
  const t = /* @__PURE__ */ new Map(), s = !!n(this, mr);
4661
4661
  for (const [i, r] of e) {
4662
4662
  const a = i.endsWith("_HCM");
@@ -4666,10 +4666,10 @@ const ol = class ol {
4666
4666
  }
4667
4667
  !s && !a && t.set(i, r);
4668
4668
  }
4669
- return at(this, "highlightColors", t);
4669
+ return ot(this, "highlightColors", t);
4670
4670
  }
4671
4671
  get highlightColorNames() {
4672
- return at(this, "highlightColorNames", this.highlightColors ? new Map(Array.from(this.highlightColors, (e) => e.reverse())) : null);
4672
+ return ot(this, "highlightColorNames", this.highlightColors ? new Map(Array.from(this.highlightColors, (e) => e.reverse())) : null);
4673
4673
  }
4674
4674
  getNonHCMColor(e) {
4675
4675
  if (!this._highlightColors)
@@ -4848,7 +4848,7 @@ const ol = class ol {
4848
4848
  if (!d)
4849
4849
  return;
4850
4850
  s.empty();
4851
- const f = b(this, W, Hp).call(this, c), p = n(this, le) === lt.NONE, m = () => {
4851
+ const f = b(this, W, Hp).call(this, c), p = n(this, le) === ht.NONE, m = () => {
4852
4852
  const v = f == null ? void 0 : f.createAndAddNewEditor({
4853
4853
  x: 0,
4854
4854
  y: 0
@@ -4864,7 +4864,7 @@ const ol = class ol {
4864
4864
  p && this.showAllEditors("highlight", !0, !0), t && (v == null || v.editComment());
4865
4865
  };
4866
4866
  if (p) {
4867
- this.switchToMode(lt.HIGHLIGHT, m);
4867
+ this.switchToMode(ht.HIGHLIGHT, m);
4868
4868
  return;
4869
4869
  }
4870
4870
  m();
@@ -4963,7 +4963,7 @@ const ol = class ol {
4963
4963
  try {
4964
4964
  s = JSON.parse(s);
4965
4965
  } catch (r) {
4966
- ot(`paste: "${r.message}".`);
4966
+ lt(`paste: "${r.message}".`);
4967
4967
  return;
4968
4968
  }
4969
4969
  if (!Array.isArray(s))
@@ -4992,11 +4992,11 @@ const ol = class ol {
4992
4992
  mustExec: !0
4993
4993
  });
4994
4994
  } catch (r) {
4995
- ot(`paste: "${r.message}".`);
4995
+ lt(`paste: "${r.message}".`);
4996
4996
  }
4997
4997
  }
4998
4998
  keydown(e) {
4999
- !this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !0), n(this, le) !== lt.NONE && !this.isEditorHandlingKeyboard && ol._keyboardManager.exec(this, e);
4999
+ !this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !0), n(this, le) !== ht.NONE && !this.isEditorHandlingKeyboard && ol._keyboardManager.exec(this, e);
5000
5000
  }
5001
5001
  keyup(e) {
5002
5002
  this.isShiftKeyDown && e.key === "Shift" && (this.isShiftKeyDown = !1, n(this, ur) && (g(this, ur, !1), b(this, W, Kh).call(this, "main_toolbar")));
@@ -5033,7 +5033,7 @@ const ol = class ol {
5033
5033
  }
5034
5034
  clonePage(e, t) {
5035
5035
  for (const s of this.getEditors(e)) {
5036
- const i = s.serialize(s.mode !== lt.HIGHLIGHT);
5036
+ const i = s.serialize(s.mode !== ht.HIGHLIGHT);
5037
5037
  i && (i.pageIndex = t, i.id = this.getId(), i.isClone = !0, delete i.popupRef, n(this, We).setValue(i.id, i));
5038
5038
  }
5039
5039
  }
@@ -5049,7 +5049,7 @@ const ol = class ol {
5049
5049
  }
5050
5050
  setEditingState(e) {
5051
5051
  e ? (b(this, W, Iv).call(this), b(this, W, Ov).call(this), b(this, W, ze).call(this, {
5052
- isEditing: n(this, le) !== lt.NONE,
5052
+ isEditing: n(this, le) !== ht.NONE,
5053
5053
  isEmpty: b(this, W, Jh).call(this),
5054
5054
  hasSomethingToUndo: n(this, Gs).hasSomethingToUndo(),
5055
5055
  hasSomethingToRedo: n(this, Gs).hasSomethingToRedo(),
@@ -5086,7 +5086,7 @@ const ol = class ol {
5086
5086
  async updateMode(e, t = null, s = !1, i = !1, r = !1, a = !1) {
5087
5087
  var o, l, h, c, d, f;
5088
5088
  if (n(this, le) !== e && !(n(this, zs) && (await n(this, zs).promise, !n(this, zs)))) {
5089
- if (g(this, zs, Promise.withResolvers()), (o = n(this, lr)) == null || o.commitOrRemove(), n(this, le) === lt.POPUP && ((l = n(this, me)) == null || l.hideSidebar()), (h = n(this, me)) == null || h.destroyPopup(), g(this, le, e), e === lt.NONE) {
5089
+ if (g(this, zs, Promise.withResolvers()), (o = n(this, lr)) == null || o.commitOrRemove(), n(this, le) === ht.POPUP && ((l = n(this, me)) == null || l.hideSidebar()), (h = n(this, me)) == null || h.destroyPopup(), g(this, le, e), e === ht.NONE) {
5090
5090
  this.setEditingState(!1), b(this, W, Lv).call(this);
5091
5091
  for (const p of n(this, Zt).values())
5092
5092
  p.hideStandaloneCommentButton();
@@ -5095,10 +5095,10 @@ const ol = class ol {
5095
5095
  }
5096
5096
  for (const p of n(this, Zt).values())
5097
5097
  p.addStandaloneCommentButton();
5098
- e === lt.SIGNATURE && await ((d = n(this, gr)) == null ? void 0 : d.loadSignatures()), s && Be.clearPointerType(), this.setEditingState(!0), await b(this, W, kv).call(this), this.unselectAll();
5098
+ e === ht.SIGNATURE && await ((d = n(this, gr)) == null ? void 0 : d.loadSignatures()), s && Be.clearPointerType(), this.setEditingState(!0), await b(this, W, kv).call(this), this.unselectAll();
5099
5099
  for (const p of n(this, Kt).values())
5100
5100
  p.updateMode(e);
5101
- if (e === lt.POPUP) {
5101
+ if (e === ht.POPUP) {
5102
5102
  n(this, ml) || g(this, ml, await n(this, xl).getAnnotationsByType(new Set(n(this, _s).map((v) => v._editorType))));
5103
5103
  const p = /* @__PURE__ */ new Set(), m = [];
5104
5104
  for (const v of n(this, Zt).values()) {
@@ -5308,7 +5308,7 @@ const ol = class ol {
5308
5308
  }
5309
5309
  unselectAll() {
5310
5310
  var e, t;
5311
- if (!(n(this, gs) && (n(this, gs).commitOrRemove(), n(this, le) !== lt.NONE)) && !((e = n(this, lr)) != null && e.commitOrRemove()) && ((t = n(this, me)) == null || t.destroyPopup(), !!this.hasSelection)) {
5311
+ if (!(n(this, gs) && (n(this, gs).commitOrRemove(), n(this, le) !== ht.NONE)) && !((e = n(this, lr)) != null && e.commitOrRemove()) && ((t = n(this, me)) == null || t.destroyPopup(), !!this.hasSelection)) {
5312
5312
  for (const s of n(this, Rt))
5313
5313
  s.unselect();
5314
5314
  n(this, Rt).clear(), b(this, W, ze).call(this, {
@@ -5418,10 +5418,10 @@ const ol = class ol {
5418
5418
  return n(this, le);
5419
5419
  }
5420
5420
  isEditingMode() {
5421
- return n(this, le) !== lt.NONE;
5421
+ return n(this, le) !== ht.NONE;
5422
5422
  }
5423
5423
  get imageManager() {
5424
- return at(this, "imageManager", new Bp());
5424
+ return ot(this, "imageManager", new Bp());
5425
5425
  }
5426
5426
  getSelectionBoxes(e) {
5427
5427
  if (!e)
@@ -5503,7 +5503,7 @@ const ol = class ol {
5503
5503
  if (!t)
5504
5504
  return;
5505
5505
  const s = n(this, We).getRawValue(t);
5506
- s && (n(this, le) === lt.NONE && !s.hasBeenModified || s.renderAnnotationElement(e));
5506
+ s && (n(this, le) === ht.NONE && !s.hasBeenModified || s.renderAnnotationElement(e));
5507
5507
  }
5508
5508
  setMissingCanvas(e, t, s) {
5509
5509
  var r;
@@ -5560,8 +5560,8 @@ gl = new WeakMap(), gs = new WeakMap(), ml = new WeakMap(), Zt = new WeakMap(),
5560
5560
  }
5561
5561
  if ((o = n(this, Mi)) == null || o.hide(), g(this, cn, t), b(this, W, ze).call(this, {
5562
5562
  hasSelectedText: !0
5563
- }), !(n(this, le) !== lt.HIGHLIGHT && n(this, le) !== lt.NONE) && (n(this, le) === lt.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), g(this, ur, this.isShiftKeyDown), !this.isShiftKeyDown)) {
5564
- const l = n(this, le) === lt.HIGHLIGHT ? b(this, W, Hp).call(this, i) : null;
5563
+ }), !(n(this, le) !== ht.HIGHLIGHT && n(this, le) !== ht.NONE) && (n(this, le) === ht.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), g(this, ur, this.isShiftKeyDown), !this.isShiftKeyDown)) {
5564
+ const l = n(this, le) === ht.HIGHLIGHT ? b(this, W, Hp).call(this, i) : null;
5565
5565
  if (l == null || l.toggleDrawing(), n(this, El)) {
5566
5566
  const h = new AbortController(), c = this.combinedSignal(h), d = (f) => {
5567
5567
  f.type === "pointerup" && f.button !== 0 || (h.abort(), l == null || l.toggleDrawing(!0), f.type === "pointerup" && b(this, W, Kh).call(this, "main_toolbar"));
@@ -5575,7 +5575,7 @@ gl = new WeakMap(), gs = new WeakMap(), ml = new WeakMap(), Zt = new WeakMap(),
5575
5575
  l == null || l.toggleDrawing(!0), b(this, W, Kh).call(this, "main_toolbar");
5576
5576
  }
5577
5577
  }, Kh = function(e = "") {
5578
- n(this, le) === lt.HIGHLIGHT ? this.highlightSelection(e) : n(this, Nc) && b(this, W, xv).call(this);
5578
+ n(this, le) === ht.HIGHLIGHT ? this.highlightSelection(e) : n(this, Nc) && b(this, W, xv).call(this);
5579
5579
  }, Cv = function() {
5580
5580
  document.addEventListener("selectionchange", b(this, W, Tv).bind(this), {
5581
5581
  signal: this._signal
@@ -5632,7 +5632,7 @@ gl = new WeakMap(), gs = new WeakMap(), ml = new WeakMap(), Zt = new WeakMap(),
5632
5632
  Object.entries(e).some(([s, i]) => n(this, Gc)[s] !== i) && (this._eventBus.dispatch("editingstateschanged", {
5633
5633
  source: this,
5634
5634
  details: Object.assign(n(this, Gc), e)
5635
- }), n(this, le) === lt.HIGHLIGHT && e.hasSelectedEditor === !1 && b(this, W, nn).call(this, [[ct.HIGHLIGHT_FREE, !0]]));
5635
+ }), n(this, le) === ht.HIGHLIGHT && e.hasSelectedEditor === !1 && b(this, W, nn).call(this, [[ct.HIGHLIGHT_FREE, !0]]));
5636
5636
  }, nn = function(e) {
5637
5637
  this._eventBus.dispatch("annotationeditorparamschanged", {
5638
5638
  source: this,
@@ -6172,7 +6172,7 @@ Il = new WeakMap(), Ia = new WeakMap(), Xc = new WeakMap(), Yc = new WeakMap(),
6172
6172
  };
6173
6173
  let Tc = bm;
6174
6174
  var Oa, ri, _t, It, mn, Pl, Er, Zc, Ce, Ra, vn, Xs, Sr, qc, Da, vs, td, ka, yn, Fi, Ml, Ol, Ys, La, ed, Bf, nt, zp, sd, Vp, Bu, Hv, $v, Wp, Uu, Xp, jv, Gv, _v, Yp, zv, Kp, Vv, Wv, Xv, Jp, Zh;
6175
- const rt = class rt {
6175
+ const at = class at {
6176
6176
  constructor(e) {
6177
6177
  y(this, nt);
6178
6178
  y(this, Oa, null);
@@ -6208,7 +6208,7 @@ const rt = class rt {
6208
6208
  M(this, "_uiManager", null);
6209
6209
  M(this, "_focusEventsAllowed", !0);
6210
6210
  y(this, ed, !1);
6211
- y(this, Bf, rt._zIndex++);
6211
+ y(this, Bf, at._zIndex++);
6212
6212
  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, this.annotationElementId = e.annotationElementId || null, this.creationDate = e.creationDate || /* @__PURE__ */ new Date(), this.modificationDate = e.modificationDate || null, this.canAddComment = !0;
6213
6213
  const {
6214
6214
  rotation: t,
@@ -6224,8 +6224,8 @@ const rt = class rt {
6224
6224
  this.x = e.x / o, this.y = e.y / l, this.isAttachedToDOM = !1, this.deleted = !1;
6225
6225
  }
6226
6226
  static get _resizerKeyboardManager() {
6227
- const e = rt.prototype._resizeWithKeyboard, t = ia.TRANSLATE_SMALL, s = ia.TRANSLATE_BIG;
6228
- return at(this, "_resizerKeyboardManager", new Ko([[["ArrowLeft"], e, {
6227
+ const e = at.prototype._resizeWithKeyboard, t = ia.TRANSLATE_SMALL, s = ia.TRANSLATE_BIG;
6228
+ return ot(this, "_resizerKeyboardManager", new Ko([[["ArrowLeft"], e, {
6229
6229
  args: [-t, 0]
6230
6230
  }], [["ctrl+ArrowLeft", "mac+shift+ArrowLeft"], e, {
6231
6231
  args: [-s, 0]
@@ -6241,7 +6241,7 @@ const rt = class rt {
6241
6241
  args: [0, t]
6242
6242
  }], [["ctrl+ArrowDown", "mac+shift+ArrowDown"], e, {
6243
6243
  args: [0, s]
6244
- }], [["Escape"], rt.prototype._stopResizingWithKeyboard]]));
6244
+ }], [["Escape"], at.prototype._stopResizingWithKeyboard]]));
6245
6245
  }
6246
6246
  updatePageIndex(e) {
6247
6247
  this.pageIndex = e;
@@ -6256,7 +6256,7 @@ const rt = class rt {
6256
6256
  return !1;
6257
6257
  }
6258
6258
  static get _defaultLineColor() {
6259
- return at(this, "_defaultLineColor", this._colorManager.getHexCode("CanvasText"));
6259
+ return ot(this, "_defaultLineColor", this._colorManager.getHexCode("CanvasText"));
6260
6260
  }
6261
6261
  static deleteAnnotationElement(e) {
6262
6262
  const t = new bA({
@@ -6267,13 +6267,13 @@ const rt = class rt {
6267
6267
  t.annotationElementId = e.annotationElementId, t.deleted = !0, t._uiManager.addToAnnotationStorage(t);
6268
6268
  }
6269
6269
  static initialize(e, t) {
6270
- if (rt._l10n ?? (rt._l10n = e), rt._l10nAlert ?? (rt._l10nAlert = Object.freeze({
6270
+ if (at._l10n ?? (at._l10n = e), at._l10nAlert ?? (at._l10nAlert = Object.freeze({
6271
6271
  highlight: "pdfjs-editor-highlight-added-alert",
6272
6272
  freetext: "pdfjs-editor-freetext-added-alert",
6273
6273
  ink: "pdfjs-editor-ink-added-alert",
6274
6274
  stamp: "pdfjs-editor-stamp-added-alert",
6275
6275
  signature: "pdfjs-editor-signature-added-alert"
6276
- })), rt._l10nResizer ?? (rt._l10nResizer = Object.freeze({
6276
+ })), at._l10nResizer ?? (at._l10nResizer = Object.freeze({
6277
6277
  topLeft: "pdfjs-editor-resizer-top-left",
6278
6278
  topMiddle: "pdfjs-editor-resizer-top-middle",
6279
6279
  topRight: "pdfjs-editor-resizer-top-right",
@@ -6282,10 +6282,10 @@ const rt = class rt {
6282
6282
  bottomMiddle: "pdfjs-editor-resizer-bottom-middle",
6283
6283
  bottomLeft: "pdfjs-editor-resizer-bottom-left",
6284
6284
  middleLeft: "pdfjs-editor-resizer-middle-left"
6285
- })), rt._borderLineWidth !== -1)
6285
+ })), at._borderLineWidth !== -1)
6286
6286
  return;
6287
6287
  const s = getComputedStyle(document.documentElement);
6288
- rt._borderLineWidth = parseFloat(s.getPropertyValue("--outline-width")) || 0;
6288
+ at._borderLineWidth = parseFloat(s.getPropertyValue("--outline-width")) || 0;
6289
6289
  }
6290
6290
  static updateDefaultParams(e, t) {
6291
6291
  }
@@ -6429,7 +6429,7 @@ const rt = class rt {
6429
6429
  getBaseTranslation() {
6430
6430
  const [e, t] = this.parentDimensions, {
6431
6431
  _borderLineWidth: s
6432
- } = rt, i = s / e, r = s / t;
6432
+ } = at, i = s / e, r = s / t;
6433
6433
  switch (this.rotation) {
6434
6434
  case 90:
6435
6435
  return [-i, r];
@@ -6478,11 +6478,11 @@ const rt = class rt {
6478
6478
  }
6479
6479
  screenToPageTranslation(e, t) {
6480
6480
  var s;
6481
- return b(s = rt, sd, Vp).call(s, e, t, this.parentRotation);
6481
+ return b(s = at, sd, Vp).call(s, e, t, this.parentRotation);
6482
6482
  }
6483
6483
  pageTranslationToScreen(e, t) {
6484
6484
  var s;
6485
- return b(s = rt, sd, Vp).call(s, e, t, 360 - this.parentRotation);
6485
+ return b(s = at, sd, Vp).call(s, e, t, 360 - this.parentRotation);
6486
6486
  }
6487
6487
  get parentScale() {
6488
6488
  return this._uiManager.viewParameters.realScale;
@@ -6557,7 +6557,7 @@ const rt = class rt {
6557
6557
  return this.div.getBoundingClientRect();
6558
6558
  }
6559
6559
  createAltText() {
6560
- return n(this, _t) || (xf.initialize(rt._l10n), g(this, _t, new xf(this)), n(this, Oa) && (n(this, _t).data = n(this, Oa), g(this, Oa, null))), n(this, _t);
6560
+ return n(this, _t) || (xf.initialize(at._l10n), g(this, _t, new xf(this)), n(this, Oa) && (n(this, _t).data = n(this, Oa), g(this, Oa, null))), n(this, _t);
6561
6561
  }
6562
6562
  get altTextData() {
6563
6563
  var e;
@@ -6759,7 +6759,7 @@ const rt = class rt {
6759
6759
  return this.getRect(0, 0);
6760
6760
  }
6761
6761
  getNonHCMColor() {
6762
- return this.color && rt._colorManager.convert(this._uiManager.getNonHCMColor(this.color));
6762
+ return this.color && at._colorManager.convert(this._uiManager.getNonHCMColor(this.color));
6763
6763
  }
6764
6764
  onUpdatedColor() {
6765
6765
  var e;
@@ -6895,7 +6895,7 @@ const rt = class rt {
6895
6895
  const {
6896
6896
  commentButtonPosition: [e, t]
6897
6897
  } = this, [s, i, r, a] = this.getPDFRect();
6898
- return [rt._round(s + (r - s) * e), rt._round(i + (a - i) * (1 - t))];
6898
+ return [at._round(s + (r - s) * e), at._round(i + (a - i) * (1 - t))];
6899
6899
  }
6900
6900
  get commentButtonColor() {
6901
6901
  return this._uiManager.makeCommentColor(this.getNonHCMColor(), this.opacity);
@@ -6940,7 +6940,7 @@ const rt = class rt {
6940
6940
  signal: l
6941
6941
  }), h.addEventListener("focus", b(this, nt, Xv).bind(this, c), {
6942
6942
  signal: l
6943
- }), h.setAttribute("data-l10n-id", rt._l10nResizer[c]);
6943
+ }), h.setAttribute("data-l10n-id", at._l10nResizer[c]);
6944
6944
  }
6945
6945
  }
6946
6946
  const s = n(this, ri)[0];
@@ -6961,7 +6961,7 @@ const rt = class rt {
6961
6961
  let a = 0;
6962
6962
  for (const o of t) {
6963
6963
  const h = n(this, ri)[a++].getAttribute("data-resizer-name");
6964
- o.setAttribute("data-l10n-id", rt._l10nResizer[h]);
6964
+ o.setAttribute("data-l10n-id", at._l10nResizer[h]);
6965
6965
  }
6966
6966
  }
6967
6967
  b(this, nt, Jp).call(this, 0), g(this, yn, !0), n(this, Ce).firstElementChild.focus({
@@ -7063,7 +7063,7 @@ const rt = class rt {
7063
7063
  let i = n(this, Ys).get(s);
7064
7064
  i && clearTimeout(i), i = setTimeout(() => {
7065
7065
  this._reportTelemetry(e), n(this, Ys).delete(s), n(this, Ys).size === 0 && g(this, Ys, null);
7066
- }, rt._telemetryTimeout), n(this, Ys).set(s, i);
7066
+ }, at._telemetryTimeout), n(this, Ys).set(s, i);
7067
7067
  return;
7068
7068
  }
7069
7069
  e.type || (e.type = this.editorType), this._uiManager._eventBus.dispatch("reporttelemetry", {
@@ -7215,7 +7215,7 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7215
7215
  mustExec: !0
7216
7216
  });
7217
7217
  }, Xp = function(e, t) {
7218
- const [s, i] = this.parentDimensions, r = this.x, a = this.y, o = this.width, l = this.height, h = rt.MIN_SIZE / s, c = rt.MIN_SIZE / i, d = b(this, nt, Bu).call(this, this.rotation), f = (N, $) => [d[0] * N + d[2] * $, d[1] * N + d[3] * $], p = b(this, nt, Bu).call(this, 360 - this.rotation), m = (N, $) => [p[0] * N + p[2] * $, p[1] * N + p[3] * $];
7218
+ const [s, i] = this.parentDimensions, r = this.x, a = this.y, o = this.width, l = this.height, h = at.MIN_SIZE / s, c = at.MIN_SIZE / i, d = b(this, nt, Bu).call(this, this.rotation), f = (N, $) => [d[0] * N + d[2] * $, d[1] * N + d[3] * $], p = b(this, nt, Bu).call(this, 360 - this.rotation), m = (N, $) => [p[0] * N + p[2] * $, p[1] * N + p[3] * $];
7219
7219
  let v, A, w = !1, E = !1;
7220
7220
  switch (e) {
7221
7221
  case "topLeft":
@@ -7245,7 +7245,7 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7245
7245
  }
7246
7246
  const S = v(o, l), T = A(o, l);
7247
7247
  let x = f(...T);
7248
- const C = rt._round(r + x[0]), I = rt._round(a + x[1]);
7248
+ const C = at._round(r + x[0]), I = at._round(a + x[1]);
7249
7249
  let O = 1, P = 1, D, L;
7250
7250
  if (t.fromKeyboard)
7251
7251
  ({
@@ -7263,7 +7263,7 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7263
7263
  const N = Math.hypot(o, l);
7264
7264
  O = P = Math.max(Math.min(Math.hypot(T[0] - S[0] - D, T[1] - S[1] - L) / N, 1 / o, 1 / l), h / o, c / l);
7265
7265
  } else E ? O = Ht(Math.abs(T[0] - S[0] - D), h, 1) / o : P = Ht(Math.abs(T[1] - S[1] - L), c, 1) / l;
7266
- const z = rt._round(o * O), H = rt._round(l * P);
7266
+ const z = at._round(o * O), H = at._round(l * P);
7267
7267
  x = f(...A(z, H));
7268
7268
  const G = C - x[0], q = I - x[1];
7269
7269
  n(this, vs) || g(this, vs, [this.x, this.y, this.width, this.height]), this.width = z, this.height = H, this.x = G, this.y = q, this.setDims(), this.fixAndSetPosition(), this._onResizing();
@@ -7279,13 +7279,13 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7279
7279
  let r = 0.7 * (s / t) + 1 - 0.7;
7280
7280
  if (r === 1)
7281
7281
  return;
7282
- const a = b(this, nt, Bu).call(this, this.rotation), o = (C, I) => [a[0] * C + a[2] * I, a[1] * C + a[3] * I], [l, h] = this.parentDimensions, c = this.x, d = this.y, f = this.width, p = this.height, m = rt.MIN_SIZE / l, v = rt.MIN_SIZE / h;
7282
+ const a = b(this, nt, Bu).call(this, this.rotation), o = (C, I) => [a[0] * C + a[2] * I, a[1] * C + a[3] * I], [l, h] = this.parentDimensions, c = this.x, d = this.y, f = this.width, p = this.height, m = at.MIN_SIZE / l, v = at.MIN_SIZE / h;
7283
7283
  r = Math.max(Math.min(r, 1 / f, 1 / p), m / f, v / p);
7284
- const A = rt._round(f * r), w = rt._round(p * r);
7284
+ const A = at._round(f * r), w = at._round(p * r);
7285
7285
  if (A === f && w === p)
7286
7286
  return;
7287
7287
  n(this, vs) || g(this, vs, [c, d, f, p]);
7288
- const E = o(f / 2, p / 2), S = rt._round(c + E[0]), T = rt._round(d + E[1]), x = o(A / 2, w / 2);
7288
+ const E = o(f / 2, p / 2), S = at._round(c + E[0]), T = at._round(d + E[1]), x = o(A / 2, w / 2);
7289
7289
  this.x = S - x[0], this.y = T - x[1], this.width = A, this.height = w, this.setDims(), this.fixAndSetPosition(), this._onResizing();
7290
7290
  }, _v = function() {
7291
7291
  var e;
@@ -7347,7 +7347,7 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7347
7347
  signal: e
7348
7348
  });
7349
7349
  }, Vv = function(e) {
7350
- rt._resizerKeyboardManager.exec(this, e);
7350
+ at._resizerKeyboardManager.exec(this, e);
7351
7351
  }, Wv = function(e) {
7352
7352
  var t;
7353
7353
  n(this, yn) && ((t = e.relatedTarget) == null ? void 0 : t.parentNode) !== n(this, Ce) && b(this, nt, Zh).call(this);
@@ -7359,8 +7359,8 @@ Oa = new WeakMap(), ri = new WeakMap(), _t = new WeakMap(), It = new WeakMap(),
7359
7359
  t.tabIndex = e;
7360
7360
  }, Zh = function() {
7361
7361
  g(this, yn, !1), b(this, nt, Jp).call(this, -1), b(this, nt, Uu).call(this);
7362
- }, y(rt, sd), M(rt, "_l10n", null), M(rt, "_l10nAlert", null), M(rt, "_l10nResizer", null), M(rt, "_borderLineWidth", -1), M(rt, "_colorManager", new Up()), M(rt, "_zIndex", 1), M(rt, "_telemetryTimeout", 1e3);
7363
- let Tt = rt;
7362
+ }, y(at, sd), M(at, "_l10n", null), M(at, "_l10nAlert", null), M(at, "_l10nResizer", null), M(at, "_borderLineWidth", -1), M(at, "_colorManager", new Up()), M(at, "_zIndex", 1), M(at, "_telemetryTimeout", 1e3);
7363
+ let Tt = at;
7364
7364
  class bA extends Tt {
7365
7365
  constructor(e) {
7366
7366
  super(e), this.annotationElementId = e.annotationElementId, this.deleted = !0;
@@ -7578,7 +7578,7 @@ class Kv extends cm {
7578
7578
  return n(this, id);
7579
7579
  }
7580
7580
  get modifiedIds() {
7581
- return at(this, "modifiedIds", {
7581
+ return ot(this, "modifiedIds", {
7582
7582
  ids: /* @__PURE__ */ new Set(),
7583
7583
  hash: ""
7584
7584
  });
@@ -8147,7 +8147,7 @@ class xA {
8147
8147
  try {
8148
8148
  await o.load(), n(this, Fl).add(i), s == null || s(e);
8149
8149
  } catch {
8150
- ot(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`), this.removeNativeFontFace(o);
8150
+ lt(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`), this.removeNativeFontFace(o);
8151
8151
  }
8152
8152
  return;
8153
8153
  }
@@ -8168,7 +8168,7 @@ class xA {
8168
8168
  try {
8169
8169
  await s.loaded;
8170
8170
  } catch (i) {
8171
- throw ot(`Failed to load font '${s.family}': '${i}'.`), e.disableFontFace = !0, i;
8171
+ throw lt(`Failed to load font '${s.family}': '${i}'.`), e.disableFontFace = !0, i;
8172
8172
  }
8173
8173
  }
8174
8174
  return;
@@ -8186,10 +8186,10 @@ class xA {
8186
8186
  get isFontLoadingAPISupported() {
8187
8187
  var t;
8188
8188
  const e = !!((t = this._document) != null && t.fonts);
8189
- return at(this, "isFontLoadingAPISupported", e);
8189
+ return ot(this, "isFontLoadingAPISupported", e);
8190
8190
  }
8191
8191
  get isSyncFontLoadingSupported() {
8192
- return at(this, "isSyncFontLoadingSupported", ks || Mt.platform.isFirefox);
8192
+ return ot(this, "isSyncFontLoadingSupported", ks || Mt.platform.isFirefox);
8193
8193
  }
8194
8194
  _queueLoadingCallback(e) {
8195
8195
  function t() {
@@ -8209,7 +8209,7 @@ class xA {
8209
8209
  }
8210
8210
  get _loadTestFont() {
8211
8211
  const e = atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");
8212
- return at(this, "_loadTestFont", e);
8212
+ return ot(this, "_loadTestFont", e);
8213
8213
  }
8214
8214
  _prepareFontLoadEvent(e, t) {
8215
8215
  function s(x, C) {
@@ -8229,7 +8229,7 @@ class xA {
8229
8229
  let c = 0;
8230
8230
  function d(x, C) {
8231
8231
  if (++c > 30) {
8232
- ot("Load test font never loaded."), C();
8232
+ lt("Load test font never loaded."), C();
8233
8233
  return;
8234
8234
  }
8235
8235
  if (h.font = "30px " + x, h.fillText(".", 0, 20), h.getImageData(0, 0, 1, 1).data[3] > 0) {
@@ -8319,7 +8319,7 @@ class TA {
8319
8319
  try {
8320
8320
  i = e.get(s);
8321
8321
  } catch (a) {
8322
- ot(`getPathGenerator - ignoring character: "${a}".`);
8322
+ lt(`getPathGenerator - ignoring character: "${a}".`);
8323
8323
  }
8324
8324
  const r = pv(i == null ? void 0 : i.path);
8325
8325
  return this.fontExtraProperties || e.delete(s), this.compiledGlyphs[t] = r;
@@ -8334,7 +8334,7 @@ class TA {
8334
8334
  return n(this, Lt).disableFontFace;
8335
8335
  }
8336
8336
  set disableFontFace(e) {
8337
- at(this, "disableFontFace", !!e);
8337
+ ot(this, "disableFontFace", !!e);
8338
8338
  }
8339
8339
  get fontExtraProperties() {
8340
8340
  return n(this, Lt).fontExtraProperties;
@@ -8742,7 +8742,7 @@ class LA {
8742
8742
  signal: r
8743
8743
  } = s;
8744
8744
  if (r.aborted) {
8745
- ot("LoopbackPort - cannot use an `aborted` signal.");
8745
+ lt("LoopbackPort - cannot use an `aborted` signal.");
8746
8746
  return;
8747
8747
  }
8748
8748
  const a = () => this.removeEventListener(e, t);
@@ -9372,7 +9372,7 @@ Ya = new WeakMap(), jl = new WeakMap(), En = new WeakMap(), Bi = new WeakMap(),
9372
9372
  if (n(this, Ya) === void 0) {
9373
9373
  g(this, Ya, "");
9374
9374
  const s = n(this, ye).URL;
9375
- s !== n(this, ye).baseURI && (yu(s) ? ot('#createUrl: ignore "data:"-URL for performance reasons.') : g(this, Ya, am(s, "")));
9375
+ s !== n(this, ye).baseURI && (yu(s) ? lt('#createUrl: ignore "data:"-URL for performance reasons.') : g(this, Ya, am(s, "")));
9376
9376
  }
9377
9377
  return `url(${n(this, Ya)}#${t})`;
9378
9378
  }, ay = function(t) {
@@ -9415,12 +9415,12 @@ if (ks) {
9415
9415
  try {
9416
9416
  u = e("@napi-rs/canvas");
9417
9417
  } catch (t) {
9418
- ot(`Cannot load "@napi-rs/canvas" package: "${t}".`);
9418
+ lt(`Cannot load "@napi-rs/canvas" package: "${t}".`);
9419
9419
  }
9420
9420
  } catch (e) {
9421
- ot(`Cannot access the \`require\` function: "${e}".`);
9421
+ lt(`Cannot access the \`require\` function: "${e}".`);
9422
9422
  }
9423
- globalThis.DOMMatrix || (u != null && u.DOMMatrix ? globalThis.DOMMatrix = u.DOMMatrix : ot("Cannot polyfill `DOMMatrix`, rendering may be broken.")), globalThis.Path2D || (u != null && u.Path2D ? globalThis.Path2D = u.Path2D : ot("Cannot polyfill `Path2D`, rendering may be broken.")), (nv = globalThis.navigator) != null && nv.language || (globalThis.navigator = {
9423
+ globalThis.DOMMatrix || (u != null && u.DOMMatrix ? globalThis.DOMMatrix = u.DOMMatrix : lt("Cannot polyfill `DOMMatrix`, rendering may be broken.")), globalThis.Path2D || (u != null && u.Path2D ? globalThis.Path2D = u.Path2D : lt("Cannot polyfill `Path2D`, rendering may be broken.")), (nv = globalThis.navigator) != null && nv.language || (globalThis.navigator = {
9424
9424
  language: "en-US",
9425
9425
  platform: "",
9426
9426
  userAgent: ""
@@ -10687,7 +10687,7 @@ const wm = class wm {
10687
10687
  const i = this.commonObjs.get(t), r = this.current;
10688
10688
  if (!i)
10689
10689
  throw new Error(`Can't find font for ${t}`);
10690
- if (r.fontMatrix = i.fontMatrix || Rp, (r.fontMatrix[0] === 0 || r.fontMatrix[3] === 0) && ot("Invalid font matrix for font " + t), s < 0 ? (s = -s, r.fontDirection = -1) : r.fontDirection = 1, this.current.font = i, this.current.fontSize = s, i.isType3Font)
10690
+ if (r.fontMatrix = i.fontMatrix || Rp, (r.fontMatrix[0] === 0 || r.fontMatrix[3] === 0) && lt("Invalid font matrix for font " + t), s < 0 ? (s = -s, r.fontDirection = -1) : r.fontDirection = 1, this.current.font = i, this.current.fontSize = s, i.isType3Font)
10691
10691
  return;
10692
10692
  const a = i.loadedName || "sans-serif", o = ((f = i.systemFontInfo) == null ? void 0 : f.css) || `"${a}", ${i.fallbackName}`;
10693
10693
  let l = "normal";
@@ -10770,7 +10770,7 @@ const wm = class wm {
10770
10770
  i = !0;
10771
10771
  break;
10772
10772
  }
10773
- return at(this, "isFontSubpixelAAEnabled", i);
10773
+ return ot(this, "isFontSubpixelAAEnabled", i);
10774
10774
  }
10775
10775
  showText(e, t) {
10776
10776
  var z, H, G, q;
@@ -10867,7 +10867,7 @@ const wm = class wm {
10867
10867
  continue;
10868
10868
  }
10869
10869
  const T = (A.isSpace ? c : 0) + h, x = r.charProcOperatorList[A.operatorListId];
10870
- x ? this.contentVisible && (this.save(), x.fnArray[0] === yi.setCharWidth && (i.fillAlpha = i.strokeAlpha = 1, s.globalAlpha = 1), s.scale(a, a), s.transform(...f), this.executeOperatorList(x), this.restore()) : ot(`Type3 character "${A.operatorListId}" is not available.`);
10870
+ x ? this.contentVisible && (this.save(), x.fnArray[0] === yi.setCharWidth && (i.fillAlpha = i.strokeAlpha = 1, s.globalAlpha = 1), s.scale(a, a), s.transform(...f), this.executeOperatorList(x), this.restore()) : lt(`Type3 character "${A.operatorListId}" is not available.`);
10871
10871
  const C = [A.width, 0];
10872
10872
  _.applyTransform(C, f), w = C[0] * a + T, s.translate(w, 0), i.x += w * d;
10873
10873
  }
@@ -11154,7 +11154,7 @@ const wm = class wm {
11154
11154
  return;
11155
11155
  const s = this.getObject(e, t);
11156
11156
  if (!s) {
11157
- ot("Dependent image isn't ready yet");
11157
+ lt("Dependent image isn't ready yet");
11158
11158
  return;
11159
11159
  }
11160
11160
  this.paintInlineImageXObject(e, s);
@@ -11164,7 +11164,7 @@ const wm = class wm {
11164
11164
  return;
11165
11165
  const a = this.getObject(e, t);
11166
11166
  if (!a) {
11167
- ot("Dependent image isn't ready yet");
11167
+ lt("Dependent image isn't ready yet");
11168
11168
  return;
11169
11169
  }
11170
11170
  const o = a.width, l = a.height, h = [];
@@ -12015,7 +12015,7 @@ Hi = new WeakMap(), $h = new WeakSet(), by = function(t, s) {
12015
12015
  const a = u0(t.response);
12016
12016
  if (r === Zm) {
12017
12017
  const o = t.getResponseHeader("Content-Range");
12018
- /bytes \d+-\d+\/\d+/.test(o) ? i.onDone(a) : (ot('Missing or invalid "Content-Range" header.'), i.onError(0));
12018
+ /bytes \d+-\d+\/\d+/.test(o) ? i.onDone(a) : (lt('Missing or invalid "Content-Range" header.'), i.onError(0));
12019
12019
  } else a ? i.onDone(a) : i.onError(t.status);
12020
12020
  };
12021
12021
  var ud, qi, wy, Ey, Sy, xy;
@@ -12364,14 +12364,14 @@ const Em = class Em {
12364
12364
  if (!e)
12365
12365
  return ap("Optional content group not defined."), !0;
12366
12366
  if (e.type === "OCG")
12367
- return n(this, St).has(e.id) ? n(this, St).get(e.id).visible : (ot(`Optional content group not found: ${e.id}`), !0);
12367
+ return n(this, St).has(e.id) ? n(this, St).get(e.id).visible : (lt(`Optional content group not found: ${e.id}`), !0);
12368
12368
  if (e.type === "OCMD") {
12369
12369
  if (e.expression)
12370
12370
  return b(this, Ad, fg).call(this, e.expression);
12371
12371
  if (!e.policy || e.policy === "AnyOn") {
12372
12372
  for (const t of e.ids) {
12373
12373
  if (!n(this, St).has(t))
12374
- return ot(`Optional content group not found: ${t}`), !0;
12374
+ return lt(`Optional content group not found: ${t}`), !0;
12375
12375
  if (n(this, St).get(t).visible)
12376
12376
  return !0;
12377
12377
  }
@@ -12379,7 +12379,7 @@ const Em = class Em {
12379
12379
  } else if (e.policy === "AllOn") {
12380
12380
  for (const t of e.ids) {
12381
12381
  if (!n(this, St).has(t))
12382
- return ot(`Optional content group not found: ${t}`), !0;
12382
+ return lt(`Optional content group not found: ${t}`), !0;
12383
12383
  if (!n(this, St).get(t).visible)
12384
12384
  return !1;
12385
12385
  }
@@ -12387,7 +12387,7 @@ const Em = class Em {
12387
12387
  } else if (e.policy === "AnyOff") {
12388
12388
  for (const t of e.ids) {
12389
12389
  if (!n(this, St).has(t))
12390
- return ot(`Optional content group not found: ${t}`), !0;
12390
+ return lt(`Optional content group not found: ${t}`), !0;
12391
12391
  if (!n(this, St).get(t).visible)
12392
12392
  return !0;
12393
12393
  }
@@ -12395,21 +12395,21 @@ const Em = class Em {
12395
12395
  } else if (e.policy === "AllOff") {
12396
12396
  for (const t of e.ids) {
12397
12397
  if (!n(this, St).has(t))
12398
- return ot(`Optional content group not found: ${t}`), !0;
12398
+ return lt(`Optional content group not found: ${t}`), !0;
12399
12399
  if (n(this, St).get(t).visible)
12400
12400
  return !1;
12401
12401
  }
12402
12402
  return !0;
12403
12403
  }
12404
- return ot(`Unknown optional content policy ${e.policy}.`), !0;
12404
+ return lt(`Unknown optional content policy ${e.policy}.`), !0;
12405
12405
  }
12406
- return ot(`Unknown group type ${e.type}.`), !0;
12406
+ return lt(`Unknown group type ${e.type}.`), !0;
12407
12407
  }
12408
12408
  setVisibility(e, t = !0, s = !0) {
12409
12409
  var r;
12410
12410
  const i = n(this, St).get(e);
12411
12411
  if (!i) {
12412
- ot(`Optional content group not found: ${e}`);
12412
+ lt(`Optional content group not found: ${e}`);
12413
12413
  return;
12414
12414
  }
12415
12415
  if (s && t && i.rbGroups.length)
@@ -12498,7 +12498,7 @@ Mr = new WeakMap(), St = new WeakMap(), Vl = new WeakMap(), Wl = new WeakMap(),
12498
12498
  else if (n(this, St).has(r))
12499
12499
  a = n(this, St).get(r).visible;
12500
12500
  else
12501
- return ot(`Optional content group not found: ${r}`), !0;
12501
+ return lt(`Optional content group not found: ${r}`), !0;
12502
12502
  switch (s) {
12503
12503
  case "And":
12504
12504
  if (!a)
@@ -12788,7 +12788,7 @@ const xe = class xe {
12788
12788
  isWindows: e,
12789
12789
  isFirefox: t
12790
12790
  } = Mt.platform;
12791
- return at(this, "fontFamilyMap", /* @__PURE__ */ new Map([["sans-serif", `${e && t ? "Calibri, " : ""}sans-serif`], ["monospace", `${e && t ? "Lucida Console, " : ""}monospace`]]));
12791
+ return ot(this, "fontFamilyMap", /* @__PURE__ */ new Map([["sans-serif", `${e && t ? "Calibri, " : ""}sans-serif`], ["monospace", `${e && t ? "Lucida Console, " : ""}monospace`]]));
12792
12792
  }
12793
12793
  render() {
12794
12794
  n(this, Xl) && n(this, Xe).append(n(this, Xl).render());
@@ -12856,7 +12856,7 @@ Or = new WeakMap(), Xe = new WeakMap(), wd = new WeakMap(), Ed = new WeakMap(),
12856
12856
  const t = n(this, lo), s = n(this, Cd);
12857
12857
  for (const a of e) {
12858
12858
  if (t.length > S0) {
12859
- ot("Ignoring additional textDivs for performance reasons."), g(this, wd, !0);
12859
+ lt("Ignoring additional textDivs for performance reasons."), g(this, wd, !0);
12860
12860
  return;
12861
12861
  }
12862
12862
  if (a.str === void 0) {
@@ -12953,7 +12953,7 @@ Or = new WeakMap(), Xe = new WeakMap(), wd = new WeakMap(), Ed = new WeakMap(),
12953
12953
  const a = r.measureText(""), o = a.fontBoundingBoxAscent, l = Math.abs(a.fontBoundingBoxDescent);
12954
12954
  r.canvas.width = r.canvas.height = 0;
12955
12955
  let h = 0.8;
12956
- return o ? h = o / (o + l) : (Mt.platform.isFirefox && ot("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."), t.ascent ? h = t.ascent : t.descent && (h = 1 + t.descent)), n(this, Ql).set(e, h), h;
12956
+ return o ? h = o / (o + l) : (Mt.platform.isFirefox && lt("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."), t.ascent ? h = t.ascent : t.descent && (h = 1 + t.descent)), n(this, Ql).set(e, h), h;
12957
12957
  }, y(xe, Ns), y(xe, Ql, /* @__PURE__ */ new Map()), y(xe, ho, /* @__PURE__ */ new Map()), y(xe, Md, /* @__PURE__ */ new WeakMap()), y(xe, Zl, null), y(xe, ql, /* @__PURE__ */ new Set());
12958
12958
  let Bh = xe;
12959
12959
  const x0 = 100;
@@ -13024,7 +13024,7 @@ function um(u = {}) {
13024
13024
  if (c.destroyed)
13025
13025
  throw new Error("Worker was destroyed");
13026
13026
  R.evaluatorOptions.hasGPU = X;
13027
- const ht = c.messageHandler.sendWithPromise("GetDocRequest", R, i ? [i.buffer] : null);
13027
+ const rt = c.messageHandler.sendWithPromise("GetDocRequest", R, i ? [i.buffer] : null);
13028
13028
  let J;
13029
13029
  if (!i) if (l)
13030
13030
  J = new h0({
@@ -13044,7 +13044,7 @@ function um(u = {}) {
13044
13044
  });
13045
13045
  } else
13046
13046
  throw new Error("getDocument - expected either `data`, `range`, or `url` parameter.");
13047
- return ht.then((st) => {
13047
+ return rt.then((st) => {
13048
13048
  if (c.destroyed)
13049
13049
  throw new Error("Worker was destroyed");
13050
13050
  const vt = new ec(t, st, c.port), pe = new C0(vt, e, J, U, F, B);
@@ -13148,7 +13148,7 @@ class T0 {
13148
13148
  return this._pdfInfo.fingerprints;
13149
13149
  }
13150
13150
  get isPureXfa() {
13151
- return at(this, "isPureXfa", !!this._transport._htmlForXfa);
13151
+ return ot(this, "isPureXfa", !!this._transport._htmlForXfa);
13152
13152
  }
13153
13153
  get allXfaHtml() {
13154
13154
  return this._transport._htmlForXfa;
@@ -13311,7 +13311,7 @@ const Sm = class Sm {
13311
13311
  return this._transport.filterFactory;
13312
13312
  }
13313
13313
  get isPureXfa() {
13314
- return at(this, "isPureXfa", !!this._transport._htmlForXfa);
13314
+ return ot(this, "isPureXfa", !!this._transport._htmlForXfa);
13315
13315
  }
13316
13316
  async getXfa() {
13317
13317
  var e;
@@ -13626,7 +13626,7 @@ const Qt = class Qt {
13626
13626
  throw new Error('No "GlobalWorkerOptions.workerSrc" specified.');
13627
13627
  }
13628
13628
  static get _setupFakeWorkerGlobal() {
13629
- return at(this, "_setupFakeWorkerGlobal", (async () => n(this, eh, Ku) ? n(this, eh, Ku) : (await import(
13629
+ return ot(this, "_setupFakeWorkerGlobal", (async () => n(this, eh, Ku) ? n(this, eh, Ku) : (await import(
13630
13630
  /*webpackIgnore: true*/
13631
13631
  /*@vite-ignore*/
13632
13632
  this.workerSrc
@@ -13687,7 +13687,7 @@ Dr = new WeakMap(), di = new WeakMap(), Cn = new WeakMap(), po = new WeakMap(),
13687
13687
  }
13688
13688
  b(this, qe, hc).call(this);
13689
13689
  }, hc = function() {
13690
- n(Qt, go) || (ot("Setting up fake worker."), g(Qt, go, !0)), Qt._setupFakeWorkerGlobal.then((e) => {
13690
+ n(Qt, go) || (lt("Setting up fake worker."), g(Qt, go, !0)), Qt._setupFakeWorkerGlobal.then((e) => {
13691
13691
  if (this.destroyed) {
13692
13692
  n(this, Dr).reject(new Error("Worker was destroyed"));
13693
13693
  return;
@@ -13743,7 +13743,7 @@ class C0 {
13743
13743
  n(this, ui).set(t, e), n(this, yo).set(t, Promise.resolve(e));
13744
13744
  }
13745
13745
  get annotationStorage() {
13746
- return at(this, "annotationStorage", new cm());
13746
+ return ot(this, "annotationStorage", new cm());
13747
13747
  }
13748
13748
  getRenderingIntent(e, t = Vn.ENABLE, s = null, i = !1, r = !1) {
13749
13749
  let a = Ds.DISPLAY, o = Cc;
@@ -13757,7 +13757,7 @@ class C0 {
13757
13757
  a = Ds.PRINT;
13758
13758
  break;
13759
13759
  default:
13760
- ot(`getRenderingIntent - invalid intent: ${e}`);
13760
+ lt(`getRenderingIntent - invalid intent: ${e}`);
13761
13761
  }
13762
13762
  const l = a & Ds.PRINT && s instanceof Kv ? s : this.annotationStorage;
13763
13763
  switch (t) {
@@ -13773,7 +13773,7 @@ class C0 {
13773
13773
  a += Ds.ANNOTATIONS_STORAGE, o = l.serializable;
13774
13774
  break;
13775
13775
  default:
13776
- ot(`getRenderingIntent - invalid annotationMode: ${t}`);
13776
+ lt(`getRenderingIntent - invalid annotationMode: ${t}`);
13777
13777
  }
13778
13778
  i && (a += Ds.IS_EDITING), r && (a += Ds.OPLIST);
13779
13779
  const {
@@ -13903,7 +13903,7 @@ class C0 {
13903
13903
  case "Font":
13904
13904
  if ("error" in r) {
13905
13905
  const f = r.error;
13906
- ot(`Error during font loading: ${f}`), this.commonObjs.resolve(s, f);
13906
+ lt(`Error during font loading: ${f}`), this.commonObjs.resolve(s, f);
13907
13907
  break;
13908
13908
  }
13909
13909
  const o = new PA(r), l = this._params.pdfBug && ((a = globalThis.FontInspector) != null && a.enabled) ? (f, p) => globalThis.FontInspector.fontAdded(f, p) : null, h = new TA(o, l, r.charProcOperatorList, r.extra);
@@ -13976,7 +13976,7 @@ class C0 {
13976
13976
  }
13977
13977
  saveDocument() {
13978
13978
  var s;
13979
- this.annotationStorage.size <= 0 && ot("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");
13979
+ this.annotationStorage.size <= 0 && lt("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");
13980
13980
  const {
13981
13981
  map: e,
13982
13982
  transfer: t
@@ -14325,7 +14325,7 @@ const ns = class ns {
14325
14325
  }));
14326
14326
  }
14327
14327
  static get _keyboardManager() {
14328
- return at(this, "_keyboardManager", new Ko([[["Escape"], ns.prototype._hideDropdownFromKeyboard], [["Space"], ns.prototype._colorSelectFromKeyboard], [["ArrowDown", "ArrowRight"], ns.prototype._moveToNext], [["ArrowUp", "ArrowLeft"], ns.prototype._moveToPrevious], [["Home"], ns.prototype._moveToBeginning], [["End"], ns.prototype._moveToEnd]]));
14328
+ return ot(this, "_keyboardManager", new Ko([[["Escape"], ns.prototype._hideDropdownFromKeyboard], [["Space"], ns.prototype._colorSelectFromKeyboard], [["ArrowDown", "ArrowRight"], ns.prototype._moveToNext], [["ArrowUp", "ArrowLeft"], ns.prototype._moveToPrevious], [["Home"], ns.prototype._moveToBeginning], [["End"], ns.prototype._moveToEnd]]));
14329
14329
  }
14330
14330
  renderButton() {
14331
14331
  const e = g(this, As, document.createElement("button"));
@@ -14822,10 +14822,10 @@ const xm = class xm {
14822
14822
  a.borderStyle = "dashed";
14823
14823
  break;
14824
14824
  case el.BEVELED:
14825
- ot("Unimplemented border style: beveled");
14825
+ lt("Unimplemented border style: beveled");
14826
14826
  break;
14827
14827
  case el.INSET:
14828
- ot("Unimplemented border style: inset");
14828
+ lt("Unimplemented border style: inset");
14829
14829
  break;
14830
14830
  case el.UNDERLINE:
14831
14831
  a.borderBottomStyle = "solid";
@@ -14866,7 +14866,7 @@ const xm = class xm {
14866
14866
  [s]: sv[`${a}_rgb`](o)
14867
14867
  });
14868
14868
  };
14869
- return at(this, "_commonActions", {
14869
+ return ot(this, "_commonActions", {
14870
14870
  display: (t) => {
14871
14871
  const {
14872
14872
  display: s
@@ -15044,7 +15044,7 @@ const xm = class xm {
15044
15044
  continue;
15045
15045
  const l = typeof o == "string" ? o : null, h = document.querySelector(`[data-element-id="${a}"]`);
15046
15046
  if (h && !Jo.has(h)) {
15047
- ot(`_getElementsByName - element not allowed: ${a}`);
15047
+ lt(`_getElementsByName - element not allowed: ${a}`);
15048
15048
  continue;
15049
15049
  }
15050
15050
  s.push({
@@ -15226,7 +15226,7 @@ class pm extends Wt {
15226
15226
  _bindResetFormAction(t, s) {
15227
15227
  const i = t.onclick;
15228
15228
  if (i || (t.href = this.linkService.getAnchorUrl("")), b(this, Fs, ua).call(this), !this._fieldObjects) {
15229
- ot('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'), i || (t.onclick = () => !1);
15229
+ lt('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'), i || (t.onclick = () => !1);
15230
15230
  return;
15231
15231
  }
15232
15232
  t.onclick = () => {
@@ -15287,7 +15287,7 @@ class pm extends Wt {
15287
15287
  const m = document.querySelector(`[data-element-id="${p}"]`);
15288
15288
  if (m) {
15289
15289
  if (!Jo.has(m)) {
15290
- ot(`_bindResetFormAction - element not allowed: ${p}`);
15290
+ lt(`_bindResetFormAction - element not allowed: ${p}`);
15291
15291
  continue;
15292
15292
  }
15293
15293
  } else continue;
@@ -16325,7 +16325,7 @@ class zy extends Wt {
16325
16325
  super(e, {
16326
16326
  isRenderable: !0,
16327
16327
  ignoreBorder: !0
16328
- }), this.textContent = e.data.textContent, this.textPosition = e.data.textPosition, this.annotationEditorType = lt.FREETEXT;
16328
+ }), this.textContent = e.data.textContent, this.textPosition = e.data.textPosition, this.annotationEditorType = ht.FREETEXT;
16329
16329
  }
16330
16330
  render() {
16331
16331
  if (this.container.classList.add("freeTextAnnotation"), this.textContent) {
@@ -16486,7 +16486,7 @@ class gm extends Wt {
16486
16486
  y(this, Gd);
16487
16487
  y(this, jd, null);
16488
16488
  y(this, To, []);
16489
- this.containerClassName = "inkAnnotation", this.svgElementName = "svg:polyline", this.annotationEditorType = this.data.it === "InkHighlight" ? lt.HIGHLIGHT : lt.INK;
16489
+ this.containerClassName = "inkAnnotation", this.svgElementName = "svg:polyline", this.annotationEditorType = this.data.it === "InkHighlight" ? ht.HIGHLIGHT : ht.INK;
16490
16490
  }
16491
16491
  render() {
16492
16492
  this.container.classList.add(this.containerClassName);
@@ -16570,7 +16570,7 @@ class Wy extends Wt {
16570
16570
  isRenderable: !0,
16571
16571
  ignoreBorder: !0,
16572
16572
  createQuadrilaterals: !0
16573
- }), this.annotationEditorType = lt.HIGHLIGHT;
16573
+ }), this.annotationEditorType = ht.HIGHLIGHT;
16574
16574
  }
16575
16575
  render() {
16576
16576
  const {
@@ -16657,7 +16657,7 @@ class Xy extends Wt {
16657
16657
  super(e, {
16658
16658
  isRenderable: !0,
16659
16659
  ignoreBorder: !0
16660
- }), this.annotationEditorType = lt.STAMP;
16660
+ }), this.annotationEditorType = ht.STAMP;
16661
16661
  }
16662
16662
  render() {
16663
16663
  return this.container.classList.add("stampAnnotation"), this.container.setAttribute("role", "img"), !this.data.popupRef && this.hasPopupData && (this.hasOwnCommentButton = !0, this._createPopup()), this._editOnDoubleClick(), this.container;
@@ -16961,7 +16961,7 @@ const Tm = class Tm {
16961
16961
  this.div.classList.toggle("disabled", !e);
16962
16962
  }
16963
16963
  static get _defaultBorderStyle() {
16964
- return at(this, "_defaultBorderStyle", Object.freeze({
16964
+ return ot(this, "_defaultBorderStyle", Object.freeze({
16965
16965
  width: 1,
16966
16966
  rawWidth: 1,
16967
16967
  style: el.SOLID,
@@ -17071,7 +17071,7 @@ const jt = class jt extends Tt {
17071
17071
  }
17072
17072
  static get _keyboardManager() {
17073
17073
  const t = jt.prototype, s = (a) => a.isEmpty(), i = ia.TRANSLATE_SMALL, r = ia.TRANSLATE_BIG;
17074
- return at(this, "_keyboardManager", new Ko([[["ctrl+s", "mac+meta+s", "ctrl+p", "mac+meta+p"], t.commitOrRemove, {
17074
+ return ot(this, "_keyboardManager", new Ko([[["ctrl+s", "mac+meta+s", "ctrl+p", "mac+meta+p"], t.commitOrRemove, {
17075
17075
  bubbles: !0
17076
17076
  }], [["ctrl+Enter", "mac+meta+Enter"], t.commitOrRemove], [["Escape"], t.commitOrRemove], [["ArrowLeft"], t._translateEmpty, {
17077
17077
  args: [-i, 0],
@@ -17379,7 +17379,7 @@ const jt = class jt extends Tt {
17379
17379
  if (!(E != null && E.length))
17380
17380
  return null;
17381
17381
  r = t = {
17382
- annotationType: lt.FREETEXT,
17382
+ annotationType: ht.FREETEXT,
17383
17383
  color: Array.from(h),
17384
17384
  fontSize: l,
17385
17385
  value: E.join(`
@@ -17506,7 +17506,7 @@ xs = new WeakMap(), Xd = new WeakMap(), Mo = new WeakMap(), Ts = new WeakMap(),
17506
17506
  pageIndex: a
17507
17507
  } = this._initialData;
17508
17508
  return this.hasEditedComment || this._hasBeenMoved || t.value !== s || t.fontSize !== i || t.color.some((o, l) => o !== r[l]) || t.pageIndex !== a;
17509
- }, y(jt, Yn), M(jt, "_freeTextDefaultContent", ""), M(jt, "_internalPadding", 0), M(jt, "_defaultColor", null), M(jt, "_defaultFontSize", 10), M(jt, "_type", "freetext"), M(jt, "_editorType", lt.FREETEXT);
17509
+ }, y(jt, Yn), M(jt, "_freeTextDefaultContent", ""), M(jt, "_internalPadding", 0), M(jt, "_defaultColor", null), M(jt, "_defaultFontSize", 10), M(jt, "_type", "freetext"), M(jt, "_editorType", ht.FREETEXT);
17510
17510
  let kg = jt;
17511
17511
  class Y {
17512
17512
  toSVGPath() {
@@ -17950,7 +17950,7 @@ const Et = class Et extends Tt {
17950
17950
  }
17951
17951
  static get _keyboardManager() {
17952
17952
  const t = Et.prototype;
17953
- return at(this, "_keyboardManager", new Ko([[["ArrowLeft"], t._moveCaret, {
17953
+ return ot(this, "_keyboardManager", new Ko([[["ArrowLeft"], t._moveCaret, {
17954
17954
  args: [0]
17955
17955
  }], [["ArrowRight"], t._moveCaret, {
17956
17956
  args: [1]
@@ -18222,7 +18222,7 @@ const Et = class Et extends Tt {
18222
18222
  }
18223
18223
  } = t;
18224
18224
  r = t = {
18225
- annotationType: lt.HIGHLIGHT,
18225
+ annotationType: ht.HIGHLIGHT,
18226
18226
  color: Array.from(O),
18227
18227
  opacity: P,
18228
18228
  quadPoints: T,
@@ -18263,7 +18263,7 @@ const Et = class Et extends Tt {
18263
18263
  }
18264
18264
  } = t;
18265
18265
  r = t = {
18266
- annotationType: lt.HIGHLIGHT,
18266
+ annotationType: ht.HIGHLIGHT,
18267
18267
  color: Array.from(O),
18268
18268
  thickness: P,
18269
18269
  inkLists: T,
@@ -18554,7 +18554,7 @@ Ah = new WeakMap(), iu = new WeakMap(), Un = new WeakMap(), ko = new WeakMap(),
18554
18554
  color: s
18555
18555
  } = this._initialData;
18556
18556
  return this.hasEditedComment || t.color.some((i, r) => i !== s[r]);
18557
- }, y(Et, ti), M(Et, "_defaultColor", null), M(Et, "_defaultOpacity", 1), M(Et, "_defaultThickness", 12), M(Et, "_type", "highlight"), M(Et, "_editorType", lt.HIGHLIGHT), M(Et, "_freeHighlightId", -1), M(Et, "_freeHighlight", null), M(Et, "_freeHighlightClipId", "");
18557
+ }, y(Et, ti), M(Et, "_defaultColor", null), M(Et, "_defaultOpacity", 1), M(Et, "_defaultThickness", 12), M(Et, "_type", "highlight"), M(Et, "_editorType", ht.HIGHLIGHT), M(Et, "_freeHighlightId", -1), M(Et, "_freeHighlight", null), M(Et, "_freeHighlightClipId", "");
18558
18558
  let Pf = Et;
18559
18559
  var Fo;
18560
18560
  class wb {
@@ -19510,7 +19510,7 @@ const ll = class ll extends Mf {
19510
19510
  return !0;
19511
19511
  }
19512
19512
  static get typesMap() {
19513
- return at(this, "typesMap", /* @__PURE__ */ new Map([[ct.INK_THICKNESS, "stroke-width"], [ct.INK_COLOR, "stroke"], [ct.INK_OPACITY, "stroke-opacity"]]));
19513
+ return ot(this, "typesMap", /* @__PURE__ */ new Map([[ct.INK_THICKNESS, "stroke-width"], [ct.INK_COLOR, "stroke"], [ct.INK_OPACITY, "stroke-opacity"]]));
19514
19514
  }
19515
19515
  static createDrawerInstance(t, s, i, r, a) {
19516
19516
  return new Q0(t, s, i, r, a, this._defaultDrawingOptions["stroke-width"]);
@@ -19545,7 +19545,7 @@ const ll = class ll extends Mf {
19545
19545
  }
19546
19546
  } = t;
19547
19547
  r = t = {
19548
- annotationType: lt.INK,
19548
+ annotationType: ht.INK,
19549
19549
  color: Array.from(d),
19550
19550
  thickness: p,
19551
19551
  opacity: f,
@@ -19675,7 +19675,7 @@ sp = new WeakSet(), Cb = function(t) {
19675
19675
  pageIndex: a
19676
19676
  } = this._initialData;
19677
19677
  return this.hasEditedComment || this._hasBeenMoved || this._hasBeenResized || t.color.some((o, l) => o !== s[l]) || t.thickness !== i || t.opacity !== r || t.pageIndex !== a;
19678
- }, M(ll, "_type", "ink"), M(ll, "_editorType", lt.INK), M(ll, "_defaultDrawingOptions", null);
19678
+ }, M(ll, "_type", "ink"), M(ll, "_editorType", ht.INK), M(ll, "_defaultDrawingOptions", null);
19679
19679
  let _g = ll;
19680
19680
  class zg extends bu {
19681
19681
  toSVGPath() {
@@ -19867,7 +19867,7 @@ class Qi {
19867
19867
  height: d
19868
19868
  };
19869
19869
  } catch (t) {
19870
- return ot(`decompressSignature: ${t}`), null;
19870
+ return lt(`decompressSignature: ${t}`), null;
19871
19871
  }
19872
19872
  }
19873
19873
  }
@@ -20106,7 +20106,7 @@ const fs = class fs extends Mf {
20106
20106
  return !1;
20107
20107
  }
20108
20108
  static get typesMap() {
20109
- return at(this, "typesMap", /* @__PURE__ */ new Map());
20109
+ return ot(this, "typesMap", /* @__PURE__ */ new Map());
20110
20110
  }
20111
20111
  static get isDrawer() {
20112
20112
  return !1;
@@ -20323,7 +20323,7 @@ const fs = class fs extends Mf {
20323
20323
  return g(r, _r, t.areContours), r.description = ((a = t.accessibilityData) == null ? void 0 : a.alt) || "", g(r, zo, t.uuid), r;
20324
20324
  }
20325
20325
  };
20326
- _r = new WeakMap(), Xi = new WeakMap(), zr = new WeakMap(), zo = new WeakMap(), M(fs, "_type", "signature"), M(fs, "_editorType", lt.SIGNATURE), M(fs, "_defaultDrawingOptions", null);
20326
+ _r = new WeakMap(), Xi = new WeakMap(), zr = new WeakMap(), zo = new WeakMap(), M(fs, "_type", "signature"), M(fs, "_editorType", ht.SIGNATURE), M(fs, "_defaultDrawingOptions", null);
20327
20327
  let Kg = fs;
20328
20328
  var zt, Ee, Vr, Hn, Wr, Mh, $n, Vo, Yi, Rs, Oh, At, pc, gc, pf, gf, mf, Qg, vf, kb;
20329
20329
  class Jg extends Tt {
@@ -20354,7 +20354,7 @@ class Jg extends Tt {
20354
20354
  }
20355
20355
  static paste(t, s) {
20356
20356
  s.pasteEditor({
20357
- mode: lt.STAMP
20357
+ mode: ht.STAMP
20358
20358
  }, {
20359
20359
  bitmapFile: t.getAsFile()
20360
20360
  });
@@ -20537,7 +20537,7 @@ class Jg extends Tt {
20537
20537
  } = i.imageManager.getFromCanvas(D.id, z), z.remove()) : (a = !0, t._hasNoCanvas = !0);
20538
20538
  const q = ((A = await s._structTree.getAriaAttributes(`${al}${S}`)) == null ? void 0 : A.get("aria-label")) || "";
20539
20539
  r = t = {
20540
- annotationType: lt.STAMP,
20540
+ annotationType: ht.STAMP,
20541
20541
  bitmapId: H,
20542
20542
  bitmap: G,
20543
20543
  pageIndex: L - 1,
@@ -20759,7 +20759,7 @@ zt = new WeakMap(), Ee = new WeakMap(), Vr = new WeakMap(), Hn = new WeakMap(),
20759
20759
  isSame: !this.hasEditedComment && !this._hasBeenMoved && !this._hasBeenResized && r && a,
20760
20760
  isSameAltText: a
20761
20761
  };
20762
- }, M(Jg, "_type", "stamp"), M(Jg, "_editorType", lt.STAMP);
20762
+ }, M(Jg, "_type", "stamp"), M(Jg, "_editorType", ht.STAMP);
20763
20763
  var Wo, Rh, Xr, Yr, jn, hs, Kr, Dh, kh, vi, Gn, Se, _n, Jr, Lh, Q, Qr, Nt, Zg, Lb, Ci, qg, tm, yf;
20764
20764
  const ii = class ii {
20765
20765
  constructor({
@@ -20803,20 +20803,20 @@ const ii = class ii {
20803
20803
  return n(this, hs).size === 0;
20804
20804
  }
20805
20805
  get isInvisible() {
20806
- return this.isEmpty && n(this, Q).getMode() === lt.NONE;
20806
+ return this.isEmpty && n(this, Q).getMode() === ht.NONE;
20807
20807
  }
20808
20808
  updateToolbar(e) {
20809
20809
  n(this, Q).updateToolbar(e);
20810
20810
  }
20811
20811
  updateMode(e = n(this, Q).getMode()) {
20812
20812
  switch (b(this, Nt, yf).call(this), e) {
20813
- case lt.NONE:
20813
+ case ht.NONE:
20814
20814
  this.div.classList.toggle("nonEditing", !0), this.disableTextSelection(), this.togglePointerEvents(!1), this.toggleAnnotationLayerPointerEvents(!0), this.disableClick();
20815
20815
  return;
20816
- case lt.INK:
20816
+ case ht.INK:
20817
20817
  this.disableTextSelection(), this.togglePointerEvents(!0), this.enableClick();
20818
20818
  break;
20819
- case lt.HIGHLIGHT:
20819
+ case ht.HIGHLIGHT:
20820
20820
  this.enableTextSelection(), this.togglePointerEvents(!1), this.disableClick();
20821
20821
  break;
20822
20822
  default:
@@ -20826,7 +20826,7 @@ const ii = class ii {
20826
20826
  const {
20827
20827
  classList: t
20828
20828
  } = this.div;
20829
- if (t.toggle("nonEditing", !1), e === lt.POPUP)
20829
+ if (t.toggle("nonEditing", !1), e === ht.POPUP)
20830
20830
  t.toggle("commentEditing", !0);
20831
20831
  else {
20832
20832
  t.toggle("commentEditing", !1);
@@ -21125,7 +21125,7 @@ const ii = class ii {
21125
21125
  return;
21126
21126
  }
21127
21127
  const s = n(this, Q).getMode();
21128
- if (s === lt.STAMP || s === lt.POPUP || s === lt.SIGNATURE) {
21128
+ if (s === ht.STAMP || s === ht.POPUP || s === ht.SIGNATURE) {
21129
21129
  n(this, Q).unselectAll();
21130
21130
  return;
21131
21131
  }
@@ -21133,7 +21133,7 @@ const ii = class ii {
21133
21133
  }
21134
21134
  pointerdown(e) {
21135
21135
  var i;
21136
- if (n(this, Q).getMode() === lt.HIGHLIGHT && this.enableTextSelection(), n(this, Kr)) {
21136
+ if (n(this, Q).getMode() === ht.HIGHLIGHT && this.enableTextSelection(), n(this, Kr)) {
21137
21137
  g(this, Kr, !1);
21138
21138
  return;
21139
21139
  }
@@ -21373,7 +21373,7 @@ const it = class it {
21373
21373
  }
21374
21374
  }
21375
21375
  static get _svgFactory() {
21376
- return at(this, "_svgFactory", new Mc());
21376
+ return ot(this, "_svgFactory", new Mc());
21377
21377
  }
21378
21378
  draw(e, t = !1, s = !1) {
21379
21379
  const i = $t(it, uu)._++, r = b(this, tn, im).call(this), a = it._svgFactory.createElement("defs");
@@ -21689,7 +21689,7 @@ globalThis.pdfjsLib = {
21689
21689
  AbortException: Kn,
21690
21690
  AnnotationEditorLayer: Of,
21691
21691
  AnnotationEditorParamsType: ct,
21692
- AnnotationEditorType: lt,
21692
+ AnnotationEditorType: ht,
21693
21693
  AnnotationEditorUIManager: ia,
21694
21694
  AnnotationLayer: Cf,
21695
21695
  AnnotationMode: Vn,
@@ -21735,7 +21735,7 @@ globalThis.pdfjsLib = {
21735
21735
  renderRichText: hm,
21736
21736
  ResponseException: Ec,
21737
21737
  setLayerDimensions: sa,
21738
- shadow: at,
21738
+ shadow: ot,
21739
21739
  SignatureExtractor: Qi,
21740
21740
  stopEvent: Vt,
21741
21741
  SupportedImageMimeTypes: Sf,
@@ -21753,7 +21753,7 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21753
21753
  AbortException: Kn,
21754
21754
  AnnotationEditorLayer: Of,
21755
21755
  AnnotationEditorParamsType: ct,
21756
- AnnotationEditorType: lt,
21756
+ AnnotationEditorType: ht,
21757
21757
  AnnotationEditorUIManager: ia,
21758
21758
  AnnotationLayer: Cf,
21759
21759
  AnnotationMode: Vn,
@@ -21807,7 +21807,7 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21807
21807
  normalizeUnicode: lv,
21808
21808
  renderRichText: hm,
21809
21809
  setLayerDimensions: sa,
21810
- shadow: at,
21810
+ shadow: ot,
21811
21811
  stopEvent: Vt,
21812
21812
  updateUrlHash: am,
21813
21813
  version: Fy
@@ -21942,7 +21942,7 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21942
21942
  const z = async (B, k, j = 0) => {
21943
21943
  var Z, F, R;
21944
21944
  for (let U = 0; U < B.length; U++) {
21945
- const X = B[U], ht = `${X.title}-${U}-${j}`;
21945
+ const X = B[U], rt = `${X.title}-${U}-${j}`;
21946
21946
  try {
21947
21947
  let J = null;
21948
21948
  const st = X.dest;
@@ -21950,7 +21950,7 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21950
21950
  const vt = await ((Z = k.getDestination) == null ? void 0 : Z.call(k, st));
21951
21951
  vt && vt[0] && typeof vt[0] == "object" && (J = await ((F = k.getPageIndex) == null ? void 0 : F.call(k, vt[0])) + 1);
21952
21952
  } else Array.isArray(st) && st[0] && typeof st[0] == "object" && (J = await ((R = k.getPageIndex) == null ? void 0 : R.call(k, st[0])) + 1);
21953
- J !== null && J > 0 && w.set(ht, J), X.items && X.items.length > 0 && await z(X.items, k, j + 1);
21953
+ J !== null && J > 0 && w.set(rt, J), X.items && X.items.length > 0 && await z(X.items, k, j + 1);
21954
21954
  } catch {
21955
21955
  }
21956
21956
  }
@@ -21968,9 +21968,9 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21968
21968
  try {
21969
21969
  let R;
21970
21970
  if (typeof B == "string") {
21971
- const ht = await ((j = E.getDestination) == null ? void 0 : j.call(E, B));
21972
- if (ht && ht[0])
21973
- R = await ((Z = E.getPageIndex) == null ? void 0 : Z.call(E, ht[0])) + 1;
21971
+ const rt = await ((j = E.getDestination) == null ? void 0 : j.call(E, B));
21972
+ if (rt && rt[0])
21973
+ R = await ((Z = E.getPageIndex) == null ? void 0 : Z.call(E, rt[0])) + 1;
21974
21974
  else
21975
21975
  return;
21976
21976
  } else if (Array.isArray(B) && B[0])
@@ -22003,12 +22003,18 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22003
22003
  if (!(!j || j.rendering)) {
22004
22004
  j.rendering = !0;
22005
22005
  try {
22006
- const Z = await E.getPage(B), F = Z.getViewport({ scale: k }), R = document.createElement("canvas");
22007
- R.width = F.width, R.height = F.height, R.style.maxWidth = "100%", R.style.height = "auto", R.style.borderRadius = "0", R.style.display = "block";
22008
- const U = R.getContext("2d");
22009
- if (!U) return;
22010
- const X = Z.render({ canvasContext: U, viewport: F });
22011
- j.renderTask = X, await X.promise, j.element.innerHTML = "", j.element.appendChild(R), j.rendered = !0;
22006
+ const Z = await E.getPage(B), F = Z.getViewport({ scale: k }), R = typeof window < "u" && window.devicePixelRatio || 1;
22007
+ j.element.style.aspectRatio = `${F.width} / ${F.height}`, j.element.style.minHeight = "0";
22008
+ const U = document.createElement("canvas");
22009
+ U.width = Math.ceil(F.width * R), U.height = Math.ceil(F.height * R), U.style.width = `${F.width}px`, U.style.maxWidth = "100%", U.style.height = "auto", U.style.borderRadius = "0", U.style.display = "block";
22010
+ const X = U.getContext("2d");
22011
+ if (!X) return;
22012
+ const rt = Z.render({
22013
+ canvasContext: X,
22014
+ viewport: F,
22015
+ transform: R === 1 ? void 0 : [R, 0, 0, R, 0, 0]
22016
+ });
22017
+ j.renderTask = rt, await rt.promise, j.element.innerHTML = "", j.element.appendChild(U), j.rendered = !0;
22012
22018
  } catch (Z) {
22013
22019
  (Z == null ? void 0 : Z.name) !== "RenderingCancelledException" && console.error(`渲染页面 ${B} 失败:`, Z);
22014
22020
  } finally {
@@ -22070,7 +22076,7 @@ const tw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22070
22076
  const B = A.value, k = B.scrollTop, j = B.clientHeight, Z = k + j / 2;
22071
22077
  let F = 1, R = 1 / 0;
22072
22078
  S.forEach((U, X) => {
22073
- const ht = U.element.getBoundingClientRect(), J = B.getBoundingClientRect(), st = ht.top - J.top + ht.height / 2 + k, vt = Math.abs(Z - st);
22079
+ const rt = U.element.getBoundingClientRect(), J = B.getBoundingClientRect(), st = rt.top - J.top + rt.height / 2 + k, vt = Math.abs(Z - st);
22074
22080
  vt < R && (R = vt, F = X);
22075
22081
  }), F !== l.value && (l.value = F);
22076
22082
  }, mt = () => {