@harbour-enterprises/superdoc 0.12.3 → 0.12.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.
- package/dist/chunks/{index-kAA2CRkl.es.js → index-BTkgQgI7.es.js} +1 -1
- package/dist/chunks/{index-71EH9929.cjs → index-C6SLw2ph.cjs} +1 -1
- package/dist/chunks/{index-DJ2cGnRl.cjs → index-CbUTRvRk.cjs} +1 -1
- package/dist/chunks/{index-DRzufgTV.es.js → index-kWwSELc2.es.js} +2 -2
- package/dist/chunks/{super-editor.es-Di7L9sdJ.cjs → super-editor.es-Bqp77LuU.cjs} +57 -57
- package/dist/chunks/{super-editor.es-DXcOd-nD.es.js → super-editor.es-uFc1kYwr.es.js} +3571 -3547
- package/dist/chunks/{url-BcsmChMq.es.js → url-C29KYeaj.es.js} +1 -1
- package/dist/chunks/{url-CHPOWQEe.cjs → url-DRGmEUtI.cjs} +1 -1
- package/dist/chunks/xml-js-CMQ3QRee.cjs +10 -0
- package/dist/chunks/{xml-js-CiXFCQBs.es.js → xml-js-CgHhGhcJ.es.js} +355 -366
- package/dist/style.css +28 -28
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-BJtjyWXx.js → converter-Cid1Ewvn.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BVv8YIej.js → docx-zipper-CldOGPZ9.js} +1 -1
- package/dist/super-editor/chunks/{editor-C4x0LU8R.js → editor-DfsXlTev.js} +1635 -1611
- package/dist/super-editor/chunks/{toolbar-C3dMNXWg.js → toolbar-1h7-NG3P.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.d.ts +16 -0
- package/dist/super-editor/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/collaboration/collaboration.d.ts +3 -0
- package/dist/super-editor/extensions/collaboration/collaboration.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +18 -18
- package/dist/superdoc.es.js +295 -294
- package/dist/superdoc.umd.js +1941 -1916
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-jS9zLULc.cjs +0 -10
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as Ib,
|
|
1
|
+
import { i as md, g as yd, c as bd, n as jo, Z as Wo, R as wd, x as Sd, $ as Dd, H as vd, d as Fd } from "./chunks/super-editor.es-uFc1kYwr.es.js";
|
|
2
|
+
import { a as Ib, e as Cb, f as fb } from "./chunks/super-editor.es-uFc1kYwr.es.js";
|
|
3
3
|
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as Fe, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-DKS68Dra.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-OpmRHhd4.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -1372,12 +1372,12 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1372
1372
|
return L[Ya] = P, L;
|
|
1373
1373
|
const K = function() {
|
|
1374
1374
|
Vs(r);
|
|
1375
|
-
const V = Array.from(arguments), $ = [],
|
|
1375
|
+
const V = Array.from(arguments), $ = [], _ = [];
|
|
1376
1376
|
function ee(ne) {
|
|
1377
1377
|
$.push(ne);
|
|
1378
1378
|
}
|
|
1379
1379
|
function te(ne) {
|
|
1380
|
-
|
|
1380
|
+
_.push(ne);
|
|
1381
1381
|
}
|
|
1382
1382
|
cs(b, {
|
|
1383
1383
|
args: V,
|
|
@@ -1390,9 +1390,9 @@ function CA(n, t, i = {}, r, A, c) {
|
|
|
1390
1390
|
try {
|
|
1391
1391
|
se = L.apply(this && this.$id === n ? this : D, V);
|
|
1392
1392
|
} catch (ne) {
|
|
1393
|
-
throw cs(
|
|
1393
|
+
throw cs(_, ne), ne;
|
|
1394
1394
|
}
|
|
1395
|
-
return se instanceof Promise ? se.then((ne) => (cs($, ne), ne)).catch((ne) => (cs(
|
|
1395
|
+
return se instanceof Promise ? se.then((ne) => (cs($, ne), ne)).catch((ne) => (cs(_, ne), Promise.reject(ne))) : (cs($, se), se);
|
|
1396
1396
|
};
|
|
1397
1397
|
return K[tc] = !0, K[Ya] = P, K;
|
|
1398
1398
|
}, H = /* @__PURE__ */ ui({
|
|
@@ -1835,7 +1835,7 @@ function Yn(n) {
|
|
|
1835
1835
|
email: at.getAttribute("email")
|
|
1836
1836
|
});
|
|
1837
1837
|
}), Xe;
|
|
1838
|
-
},
|
|
1838
|
+
}, _ = (ne, Be) => {
|
|
1839
1839
|
F.source = "super-editor";
|
|
1840
1840
|
const xe = Be?.getBoundingClientRect()?.top, Me = {
|
|
1841
1841
|
top: ne.top - xe,
|
|
@@ -1901,24 +1901,24 @@ function Yn(n) {
|
|
|
1901
1901
|
resolveComment: L,
|
|
1902
1902
|
setIsInternal: P,
|
|
1903
1903
|
setActive: K,
|
|
1904
|
-
updatePosition:
|
|
1904
|
+
updatePosition: _,
|
|
1905
1905
|
getCommentUser: ee
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
1908
|
function _I(n, t) {
|
|
1909
|
-
const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), m = W(!1), b = W(t.rulers), S = Us(n.ydoc), w = Us(n.provider), k = Us(n.socket), M = W(n.isNewFile), F = Us(null), O = (
|
|
1910
|
-
function T({ type:
|
|
1909
|
+
const i = n.id, r = T(n), A = n.data, c = t, g = n.state, u = n.role, I = n.html, f = W(null), Q = W([]), m = W(!1), b = W(t.rulers), S = Us(n.ydoc), w = Us(n.provider), k = Us(n.socket), M = W(n.isNewFile), F = Us(null), O = (_) => F.value = _, J = () => F.value;
|
|
1910
|
+
function T({ type: _, data: ee }) {
|
|
1911
1911
|
if (ee?.type) return ee.type;
|
|
1912
|
-
if (
|
|
1912
|
+
if (_) return _ in Vo ? Vo[_] : null;
|
|
1913
1913
|
throw new Error("Document type not specified for doc:", n);
|
|
1914
1914
|
}
|
|
1915
1915
|
const H = () => {
|
|
1916
1916
|
P.value = L.value, L.value = [];
|
|
1917
1917
|
}, U = () => {
|
|
1918
1918
|
L.value = P.value, console.debug("[superdoc] Restored comments:", L.value);
|
|
1919
|
-
}, D = W(n.fields || []), G = W(n.fields?.map((
|
|
1919
|
+
}, D = W(n.fields || []), G = W(n.fields?.map((_) => vI(_)) || []), R = W(n.annotations || []), L = W(K()), P = W(L.value);
|
|
1920
1920
|
function K() {
|
|
1921
|
-
return c.modules.comments ? n.conversations?.map((
|
|
1921
|
+
return c.modules.comments ? n.conversations?.map((_) => Yn(_)) || [] : [];
|
|
1922
1922
|
}
|
|
1923
1923
|
const V = W(null);
|
|
1924
1924
|
return {
|
|
@@ -1949,8 +1949,8 @@ function _I(n, t) {
|
|
|
1949
1949
|
getEditor: J,
|
|
1950
1950
|
removeComments: H,
|
|
1951
1951
|
restoreComments: U,
|
|
1952
|
-
removeConversation: (
|
|
1953
|
-
const ee = L.value.findIndex((te) => te.conversationId ===
|
|
1952
|
+
removeConversation: (_) => {
|
|
1953
|
+
const ee = L.value.findIndex((te) => te.conversationId === _);
|
|
1954
1954
|
ee > -1 && L.value.splice(ee, 1);
|
|
1955
1955
|
}
|
|
1956
1956
|
};
|
|
@@ -2098,9 +2098,9 @@ const Ri = /* @__PURE__ */ JA("superdoc", () => {
|
|
|
2098
2098
|
type: A.UPDATE,
|
|
2099
2099
|
comment: Ci.getValues()
|
|
2100
2100
|
};
|
|
2101
|
-
Jr(he, Lt),
|
|
2101
|
+
Jr(he, Lt), _(Te, Lt, he);
|
|
2102
2102
|
}
|
|
2103
|
-
},
|
|
2103
|
+
}, _ = (he, ce, De, Te = 1e3) => {
|
|
2104
2104
|
r[he] && clearTimeout(r[he]), r[he] = setTimeout(() => {
|
|
2105
2105
|
De && (console.debug("[debounceEmit] tracked change update emitting...", ce), De.emit("comments-update", ce)), delete r[he];
|
|
2106
2106
|
}, Te);
|
|
@@ -3130,15 +3130,15 @@ function G0() {
|
|
|
3130
3130
|
return;
|
|
3131
3131
|
const V = L === 1 ? "capture" : "bubble";
|
|
3132
3132
|
let $ = K;
|
|
3133
|
-
const
|
|
3134
|
-
for (; $ === null && ($ = window),
|
|
3133
|
+
const _ = [];
|
|
3134
|
+
for (; $ === null && ($ = window), _.push($), $ !== window; )
|
|
3135
3135
|
$ = $.parentNode || null;
|
|
3136
3136
|
const ee = Q.capture[R], te = Q.bubble[R];
|
|
3137
3137
|
if (A(G, "stopPropagation", i), A(G, "stopImmediatePropagation", r), f(G, I), V === "capture") {
|
|
3138
3138
|
if (ee === void 0)
|
|
3139
3139
|
return;
|
|
3140
|
-
for (let se =
|
|
3141
|
-
const ne =
|
|
3140
|
+
for (let se = _.length - 1; se >= 0 && !n.has(G); --se) {
|
|
3141
|
+
const ne = _[se], Be = ee.get(ne);
|
|
3142
3142
|
if (Be !== void 0) {
|
|
3143
3143
|
g.set(G, ne);
|
|
3144
3144
|
for (const xe of Be) {
|
|
@@ -3160,8 +3160,8 @@ function G0() {
|
|
|
3160
3160
|
} else if (V === "bubble") {
|
|
3161
3161
|
if (te === void 0)
|
|
3162
3162
|
return;
|
|
3163
|
-
for (let se = 0; se <
|
|
3164
|
-
const ne =
|
|
3163
|
+
for (let se = 0; se < _.length && !n.has(G); ++se) {
|
|
3164
|
+
const ne = _[se], Be = te.get(ne);
|
|
3165
3165
|
if (Be !== void 0) {
|
|
3166
3166
|
g.set(G, ne);
|
|
3167
3167
|
for (const xe of Be) {
|
|
@@ -3217,8 +3217,8 @@ function G0() {
|
|
|
3217
3217
|
U(D, G, P, L), R(ee);
|
|
3218
3218
|
} : P = R, M0(D, G, P, L))
|
|
3219
3219
|
return;
|
|
3220
|
-
const V = L === !0 || typeof L == "object" && L.capture === !0 ? "capture" : "bubble", $ = M(V, D),
|
|
3221
|
-
if (
|
|
3220
|
+
const V = L === !0 || typeof L == "object" && L.capture === !0 ? "capture" : "bubble", $ = M(V, D), _ = O($, G);
|
|
3221
|
+
if (_.has(P) || _.add(P), G === window) {
|
|
3222
3222
|
const ee = F(D);
|
|
3223
3223
|
ee.has(P) || ee.add(P);
|
|
3224
3224
|
}
|
|
@@ -3226,12 +3226,12 @@ function G0() {
|
|
|
3226
3226
|
function U(D, G, R, L) {
|
|
3227
3227
|
if (L0(D, G, R, L))
|
|
3228
3228
|
return;
|
|
3229
|
-
const K = L === !0 || typeof L == "object" && L.capture === !0, V = K ? "capture" : "bubble", $ = M(V, D),
|
|
3229
|
+
const K = L === !0 || typeof L == "object" && L.capture === !0, V = K ? "capture" : "bubble", $ = M(V, D), _ = O($, G);
|
|
3230
3230
|
if (G === window && !J(G, K ? "bubble" : "capture", D, R) && T(D, R)) {
|
|
3231
3231
|
const te = m[D];
|
|
3232
3232
|
te.delete(R), te.size === 0 && (window.removeEventListener(D, k), m[D] = void 0);
|
|
3233
3233
|
}
|
|
3234
|
-
|
|
3234
|
+
_.has(R) && _.delete(R), _.size === 0 && $.delete(G), $.size === 0 && (window.removeEventListener(D, w, V === "capture"), Q[V][D] = void 0);
|
|
3235
3235
|
}
|
|
3236
3236
|
return {
|
|
3237
3237
|
on: H,
|
|
@@ -4089,8 +4089,8 @@ const gC = Sr([
|
|
|
4089
4089
|
b.setAttribute("v-placement", T), M ? b.setAttribute("v-overlap", "") : b.removeAttribute("v-overlap");
|
|
4090
4090
|
const { style: D } = b;
|
|
4091
4091
|
O === "target" ? D.width = `${F.width}px` : O !== void 0 ? D.width = O : D.width = "", J === "target" ? D.minWidth = `${F.width}px` : J !== void 0 ? D.minWidth = J : D.minWidth = "";
|
|
4092
|
-
const G = _a(b), R = _a(A.value), { left: L, top: P, placement: K } = oC(T, F, G, H, U, M), V = cC(K, M), { left: $, top:
|
|
4093
|
-
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(${$}) translateY(${
|
|
4092
|
+
const G = _a(b), R = _a(A.value), { left: L, top: P, placement: K } = oC(T, F, G, H, U, M), V = cC(K, M), { left: $, top: _, transform: ee } = lC(K, R, F, P, L, M);
|
|
4093
|
+
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(${$}) translateY(${_}) ${ee}`, b.style.setProperty("--v-transform-origin", V), b.style.transformOrigin = V;
|
|
4094
4094
|
};
|
|
4095
4095
|
wt(i, (b) => {
|
|
4096
4096
|
b ? (c(), f()) : g();
|
|
@@ -6468,7 +6468,7 @@ const VE = {
|
|
|
6468
6468
|
value: be
|
|
6469
6469
|
} = w;
|
|
6470
6470
|
return le === null || pe === null || be === null ? 0 : Math.min(le, be * le / pe + cc(V.value.self.width) * 1.5);
|
|
6471
|
-
}),
|
|
6471
|
+
}), _ = ae(() => `${$.value}px`), ee = ae(() => {
|
|
6472
6472
|
const {
|
|
6473
6473
|
value: le
|
|
6474
6474
|
} = S, {
|
|
@@ -6834,7 +6834,7 @@ const VE = {
|
|
|
6834
6834
|
xRailRef: f,
|
|
6835
6835
|
needYBar: Me,
|
|
6836
6836
|
needXBar: Xe,
|
|
6837
|
-
yBarSizePx:
|
|
6837
|
+
yBarSizePx: _,
|
|
6838
6838
|
xBarSizePx: te,
|
|
6839
6839
|
yBarTopPx: ne,
|
|
6840
6840
|
xBarLeftPx: xe,
|
|
@@ -7651,7 +7651,7 @@ const Fp = Ct({
|
|
|
7651
7651
|
padding: K,
|
|
7652
7652
|
fontSize: V,
|
|
7653
7653
|
textColor: $,
|
|
7654
|
-
dividerColor:
|
|
7654
|
+
dividerColor: _,
|
|
7655
7655
|
color: ee,
|
|
7656
7656
|
boxShadow: te,
|
|
7657
7657
|
borderRadius: se,
|
|
@@ -7668,7 +7668,7 @@ const Fp = Ct({
|
|
|
7668
7668
|
"--n-font-size": V,
|
|
7669
7669
|
"--n-text-color": $,
|
|
7670
7670
|
"--n-color": ee,
|
|
7671
|
-
"--n-divider-color":
|
|
7671
|
+
"--n-divider-color": _,
|
|
7672
7672
|
"--n-border-radius": se,
|
|
7673
7673
|
"--n-arrow-height": ne,
|
|
7674
7674
|
"--n-arrow-offset": Be,
|
|
@@ -7743,7 +7743,7 @@ const Fp = Ct({
|
|
|
7743
7743
|
} = I.extraClassRef, {
|
|
7744
7744
|
internalTrapFocus: K
|
|
7745
7745
|
} = n, V = !Rc(t.header) || !Rc(t.footer), $ = () => {
|
|
7746
|
-
var
|
|
7746
|
+
var _, ee;
|
|
7747
7747
|
const te = V ? re(jt, null, qr(t.header, (Be) => Be ? re("div", {
|
|
7748
7748
|
class: [`${L}-popover__header`, n.headerClass],
|
|
7749
7749
|
style: n.headerStyle
|
|
@@ -7753,7 +7753,7 @@ const Fp = Ct({
|
|
|
7753
7753
|
}, t) : null), qr(t.footer, (Be) => Be ? re("div", {
|
|
7754
7754
|
class: [`${L}-popover__footer`, n.footerClass],
|
|
7755
7755
|
style: n.footerStyle
|
|
7756
|
-
}, Be) : null)) : n.scrollable ? (
|
|
7756
|
+
}, Be) : null)) : n.scrollable ? (_ = t.default) === null || _ === void 0 ? void 0 : _.call(t) : re("div", {
|
|
7757
7757
|
class: [`${L}-popover__content`, n.contentClass],
|
|
7758
7758
|
style: n.contentStyle
|
|
7759
7759
|
}, t), se = n.scrollable ? re(wh, {
|
|
@@ -7771,7 +7771,7 @@ const Fp = Ct({
|
|
|
7771
7771
|
return [se, ne];
|
|
7772
7772
|
};
|
|
7773
7773
|
G = re("div", ar({
|
|
7774
|
-
class: [`${L}-popover`, `${L}-popover-shared`, k?.themeClass.value, P.map((
|
|
7774
|
+
class: [`${L}-popover`, `${L}-popover-shared`, k?.themeClass.value, P.map((_) => `${L}-${_}`), {
|
|
7775
7775
|
[`${L}-popover--scrollable`]: n.scrollable,
|
|
7776
7776
|
[`${L}-popover--show-header-or-footer`]: V,
|
|
7777
7777
|
[`${L}-popover--raw`]: n.raw,
|
|
@@ -7960,53 +7960,53 @@ const oo = {
|
|
|
7960
7960
|
const t = KA(), i = W(null), r = ae(() => n.show), A = W(n.defaultShow), c = YA(r, A), g = Ki(() => n.disabled ? !1 : c.value), u = () => {
|
|
7961
7961
|
if (n.disabled) return !0;
|
|
7962
7962
|
const {
|
|
7963
|
-
getDisabled:
|
|
7963
|
+
getDisabled: _
|
|
7964
7964
|
} = n;
|
|
7965
|
-
return !!
|
|
7965
|
+
return !!_?.();
|
|
7966
7966
|
}, I = () => u() ? !1 : c.value, f = Mg(n, ["arrow", "showArrow"]), Q = ae(() => n.overlap ? !1 : f.value);
|
|
7967
7967
|
let m = null;
|
|
7968
7968
|
const b = W(null), S = W(null), w = Ki(() => n.x !== void 0 && n.y !== void 0);
|
|
7969
|
-
function k(
|
|
7969
|
+
function k(_) {
|
|
7970
7970
|
const {
|
|
7971
7971
|
"onUpdate:show": ee,
|
|
7972
7972
|
onUpdateShow: te,
|
|
7973
7973
|
onShow: se,
|
|
7974
7974
|
onHide: ne
|
|
7975
7975
|
} = n;
|
|
7976
|
-
A.value =
|
|
7976
|
+
A.value = _, ee && xi(ee, _), te && xi(te, _), _ && se && xi(se, !0), _ && ne && xi(ne, !1);
|
|
7977
7977
|
}
|
|
7978
7978
|
function M() {
|
|
7979
7979
|
m && m.syncPosition();
|
|
7980
7980
|
}
|
|
7981
7981
|
function F() {
|
|
7982
7982
|
const {
|
|
7983
|
-
value:
|
|
7983
|
+
value: _
|
|
7984
7984
|
} = b;
|
|
7985
|
-
|
|
7985
|
+
_ && (window.clearTimeout(_), b.value = null);
|
|
7986
7986
|
}
|
|
7987
7987
|
function O() {
|
|
7988
7988
|
const {
|
|
7989
|
-
value:
|
|
7989
|
+
value: _
|
|
7990
7990
|
} = S;
|
|
7991
|
-
|
|
7991
|
+
_ && (window.clearTimeout(_), S.value = null);
|
|
7992
7992
|
}
|
|
7993
7993
|
function J() {
|
|
7994
|
-
const
|
|
7995
|
-
if (n.trigger === "focus" && !
|
|
7994
|
+
const _ = u();
|
|
7995
|
+
if (n.trigger === "focus" && !_) {
|
|
7996
7996
|
if (I()) return;
|
|
7997
7997
|
k(!0);
|
|
7998
7998
|
}
|
|
7999
7999
|
}
|
|
8000
8000
|
function T() {
|
|
8001
|
-
const
|
|
8002
|
-
if (n.trigger === "focus" && !
|
|
8001
|
+
const _ = u();
|
|
8002
|
+
if (n.trigger === "focus" && !_) {
|
|
8003
8003
|
if (!I()) return;
|
|
8004
8004
|
k(!1);
|
|
8005
8005
|
}
|
|
8006
8006
|
}
|
|
8007
8007
|
function H() {
|
|
8008
|
-
const
|
|
8009
|
-
if (n.trigger === "hover" && !
|
|
8008
|
+
const _ = u();
|
|
8009
|
+
if (n.trigger === "hover" && !_) {
|
|
8010
8010
|
if (O(), b.value !== null || I()) return;
|
|
8011
8011
|
const ee = () => {
|
|
8012
8012
|
k(!0), b.value = null;
|
|
@@ -8017,8 +8017,8 @@ const oo = {
|
|
|
8017
8017
|
}
|
|
8018
8018
|
}
|
|
8019
8019
|
function U() {
|
|
8020
|
-
const
|
|
8021
|
-
if (n.trigger === "hover" && !
|
|
8020
|
+
const _ = u();
|
|
8021
|
+
if (n.trigger === "hover" && !_) {
|
|
8022
8022
|
if (F(), S.value !== null || !I()) return;
|
|
8023
8023
|
const ee = () => {
|
|
8024
8024
|
k(!1), S.value = null;
|
|
@@ -8031,29 +8031,29 @@ const oo = {
|
|
|
8031
8031
|
function D() {
|
|
8032
8032
|
U();
|
|
8033
8033
|
}
|
|
8034
|
-
function G(
|
|
8034
|
+
function G(_) {
|
|
8035
8035
|
var ee;
|
|
8036
|
-
I() && (n.trigger === "click" && (F(), O(), k(!1)), (ee = n.onClickoutside) === null || ee === void 0 || ee.call(n,
|
|
8036
|
+
I() && (n.trigger === "click" && (F(), O(), k(!1)), (ee = n.onClickoutside) === null || ee === void 0 || ee.call(n, _));
|
|
8037
8037
|
}
|
|
8038
8038
|
function R() {
|
|
8039
8039
|
if (n.trigger === "click" && !u()) {
|
|
8040
8040
|
F(), O();
|
|
8041
|
-
const
|
|
8042
|
-
k(
|
|
8041
|
+
const _ = !I();
|
|
8042
|
+
k(_);
|
|
8043
8043
|
}
|
|
8044
8044
|
}
|
|
8045
|
-
function L(
|
|
8046
|
-
n.internalTrapFocus &&
|
|
8045
|
+
function L(_) {
|
|
8046
|
+
n.internalTrapFocus && _.key === "Escape" && (F(), O(), k(!1));
|
|
8047
8047
|
}
|
|
8048
|
-
function P(
|
|
8049
|
-
A.value =
|
|
8048
|
+
function P(_) {
|
|
8049
|
+
A.value = _;
|
|
8050
8050
|
}
|
|
8051
8051
|
function K() {
|
|
8052
|
-
var
|
|
8053
|
-
return (
|
|
8052
|
+
var _;
|
|
8053
|
+
return (_ = i.value) === null || _ === void 0 ? void 0 : _.targetRef;
|
|
8054
8054
|
}
|
|
8055
|
-
function V(
|
|
8056
|
-
m =
|
|
8055
|
+
function V(_) {
|
|
8056
|
+
m = _;
|
|
8057
8057
|
}
|
|
8058
8058
|
return mi("NPopover", {
|
|
8059
8059
|
getTriggerElement: K,
|
|
@@ -8531,7 +8531,7 @@ const Tp = {
|
|
|
8531
8531
|
colorTableHeader: K,
|
|
8532
8532
|
colorTableHeaderModal: V,
|
|
8533
8533
|
colorTableHeaderPopover: $,
|
|
8534
|
-
checkMarkColor:
|
|
8534
|
+
checkMarkColor: _,
|
|
8535
8535
|
checkMarkColorDisabled: ee,
|
|
8536
8536
|
border: te,
|
|
8537
8537
|
borderFocus: se,
|
|
@@ -8571,7 +8571,7 @@ const Tp = {
|
|
|
8571
8571
|
"--n-color-disabled-checked": Et,
|
|
8572
8572
|
"--n-text-color": Me,
|
|
8573
8573
|
"--n-text-color-disabled": Xe,
|
|
8574
|
-
"--n-check-mark-color":
|
|
8574
|
+
"--n-check-mark-color": _,
|
|
8575
8575
|
"--n-check-mark-color-disabled": ee,
|
|
8576
8576
|
"--n-check-mark-color-disabled-checked": at,
|
|
8577
8577
|
"--n-font-size": Qe,
|
|
@@ -9031,7 +9031,7 @@ const Nh = Ct({
|
|
|
9031
9031
|
} = n;
|
|
9032
9032
|
te.disabled || I.value && i.value !== te.key && V();
|
|
9033
9033
|
}
|
|
9034
|
-
function
|
|
9034
|
+
function _(te) {
|
|
9035
9035
|
if (n.tmNode.disabled || !I.value) return;
|
|
9036
9036
|
const {
|
|
9037
9037
|
relatedTarget: se
|
|
@@ -9092,7 +9092,7 @@ const Nh = Ct({
|
|
|
9092
9092
|
handleClick: ee,
|
|
9093
9093
|
handleMouseMove: $,
|
|
9094
9094
|
handleMouseEnter: V,
|
|
9095
|
-
handleMouseLeave:
|
|
9095
|
+
handleMouseLeave: _,
|
|
9096
9096
|
handleSubmenuBeforeEnter: P,
|
|
9097
9097
|
handleSubmenuAfterEnter: K
|
|
9098
9098
|
};
|
|
@@ -9623,10 +9623,10 @@ const Nh = Ct({
|
|
|
9623
9623
|
getFirstAvailableNode: $
|
|
9624
9624
|
}
|
|
9625
9625
|
} = r;
|
|
9626
|
-
let
|
|
9626
|
+
let _ = null;
|
|
9627
9627
|
if (V === null) {
|
|
9628
9628
|
const ee = $();
|
|
9629
|
-
ee !== null && (
|
|
9629
|
+
ee !== null && (_ = ee.key);
|
|
9630
9630
|
} else {
|
|
9631
9631
|
const ee = G();
|
|
9632
9632
|
if (ee) {
|
|
@@ -9645,10 +9645,10 @@ const Nh = Ct({
|
|
|
9645
9645
|
te = ee.getParent();
|
|
9646
9646
|
break;
|
|
9647
9647
|
}
|
|
9648
|
-
te && (
|
|
9648
|
+
te && (_ = te.key);
|
|
9649
9649
|
}
|
|
9650
9650
|
}
|
|
9651
|
-
|
|
9651
|
+
_ !== null && (c.value = null, g.value = _);
|
|
9652
9652
|
}
|
|
9653
9653
|
const L = ae(() => {
|
|
9654
9654
|
const {
|
|
@@ -9658,7 +9658,7 @@ const Nh = Ct({
|
|
|
9658
9658
|
common: {
|
|
9659
9659
|
cubicBezierEaseInOut: $
|
|
9660
9660
|
},
|
|
9661
|
-
self:
|
|
9661
|
+
self: _
|
|
9662
9662
|
} = w.value, {
|
|
9663
9663
|
padding: ee,
|
|
9664
9664
|
dividerColor: te,
|
|
@@ -9671,7 +9671,7 @@ const Nh = Ct({
|
|
|
9671
9671
|
[Pi("fontSize", K)]: at,
|
|
9672
9672
|
[Pi("optionHeight", K)]: Et,
|
|
9673
9673
|
[Pi("optionIconSize", K)]: de
|
|
9674
|
-
} =
|
|
9674
|
+
} = _, z = {
|
|
9675
9675
|
"--n-bezier": $,
|
|
9676
9676
|
"--n-font-size": at,
|
|
9677
9677
|
"--n-padding": ee,
|
|
@@ -9685,7 +9685,7 @@ const Nh = Ct({
|
|
|
9685
9685
|
"--n-divider-color": te,
|
|
9686
9686
|
"--n-option-opacity-disabled": ne
|
|
9687
9687
|
};
|
|
9688
|
-
return V ? (z["--n-color"] =
|
|
9688
|
+
return V ? (z["--n-color"] = _.colorInverted, z["--n-option-color-hover"] = _.optionColorHoverInverted, z["--n-option-color-active"] = _.optionColorActiveInverted, z["--n-option-text-color"] = _.optionTextColorInverted, z["--n-option-text-color-hover"] = _.optionTextColorHoverInverted, z["--n-option-text-color-active"] = _.optionTextColorActiveInverted, z["--n-option-text-color-child-active"] = _.optionTextColorChildActiveInverted, z["--n-prefix-color"] = _.prefixColorInverted, z["--n-suffix-color"] = _.suffixColorInverted, z["--n-group-header-text-color"] = _.groupHeaderTextColorInverted) : (z["--n-color"] = _.color, z["--n-option-color-hover"] = _.optionColorHover, z["--n-option-color-active"] = _.optionColorActive, z["--n-option-text-color"] = _.optionTextColor, z["--n-option-text-color-hover"] = _.optionTextColorHover, z["--n-option-text-color-active"] = _.optionTextColorActive, z["--n-option-text-color-child-active"] = _.optionTextColorChildActive, z["--n-prefix-color"] = _.prefixColor, z["--n-suffix-color"] = _.suffixColor, z["--n-group-header-text-color"] = _.groupHeaderTextColor), z;
|
|
9689
9689
|
}), P = S ? bs("dropdown", ae(() => `${n.size[0]}${n.inverted ? "i" : ""}`), L, n) : void 0;
|
|
9690
9690
|
return {
|
|
9691
9691
|
mergedClsPrefix: b,
|
|
@@ -10307,7 +10307,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10307
10307
|
const Ee = Qe.parentCommentId === X.commentId, Se = Qe.commentId === r.comment.commentId;
|
|
10308
10308
|
return Ee || Se;
|
|
10309
10309
|
}).sort((Qe, Ee) => Qe.commentId === r.comment.commentId && Qe.createdTime - Ee.createdTime);
|
|
10310
|
-
}), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId),
|
|
10310
|
+
}), V = ae(() => r.comment.resolvedTime ? !0 : b.value.readOnly), $ = ae(() => (X) => O.value === X.commentId), _ = ae(() => A.$superdoc.config.isInternal ? !m.value && !r.comment.trackedChange : !1), ee = ae(() => M.value && M.value !== "<p></p>"), te = () => {
|
|
10311
10311
|
r.comment.resolvedTime || (S.value = r.comment.commentId, r.comment.setActive(A.$superdoc));
|
|
10312
10312
|
}, se = (X) => {
|
|
10313
10313
|
X.target.classList.contains("n-dropdown-option-body__label") || X.target.classList.contains("sd-editor-comment-highlight") || (S.value === r.comment.commentId && (w.value = 0, i("dialog-exit")), S.value = null);
|
|
@@ -10380,7 +10380,7 @@ const RQ = { class: "card-section comment-header" }, NQ = { class: "comment-head
|
|
|
10380
10380
|
ref_key: "commentDialogElement",
|
|
10381
10381
|
ref: D
|
|
10382
10382
|
}, [
|
|
10383
|
-
|
|
10383
|
+
_.value ? (fe(), ye("div", KQ, [
|
|
10384
10384
|
bi(kQ, {
|
|
10385
10385
|
onClick: Qe[0] || (Qe[0] = Qi(() => {
|
|
10386
10386
|
}, ["stop", "prevent"])),
|
|
@@ -10629,7 +10629,7 @@ var pm = {
|
|
|
10629
10629
|
else {
|
|
10630
10630
|
var $ = R && !K && T ? { maxByteLength: T(D) } : void 0;
|
|
10631
10631
|
V = new b(P, $);
|
|
10632
|
-
for (var
|
|
10632
|
+
for (var _ = new S(D), ee = new S(V), te = k(P, L), se = 0; se < te; se++) U(ee, se, H(_, se));
|
|
10633
10633
|
}
|
|
10634
10634
|
return Q || f(D), V;
|
|
10635
10635
|
};
|
|
@@ -10639,7 +10639,7 @@ var pm = {
|
|
|
10639
10639
|
4644: (
|
|
10640
10640
|
/***/
|
|
10641
10641
|
(n, t, i) => {
|
|
10642
|
-
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), m = i(6699), b = i(6840), S = 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, D = U && U.prototype, G = c.Uint8ClampedArray, R = G && G.prototype, L = U && k(U), P = D && k(D), K = Object.prototype, V = c.TypeError, $ = F("toStringTag"),
|
|
10642
|
+
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), m = i(6699), b = i(6840), S = 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, D = U && U.prototype, G = c.Uint8ClampedArray, R = G && G.prototype, L = U && k(U), P = D && k(D), K = Object.prototype, V = c.TypeError, $ = F("toStringTag"), _ = O("TYPED_ARRAY_TAG"), ee = "TypedArrayConstructor", te = r && !!M && f(c.opera) !== "Opera", se = !1, ne, Be, xe, Me = {
|
|
10643
10643
|
Int8Array: 1,
|
|
10644
10644
|
Uint8Array: 1,
|
|
10645
10645
|
Uint8ClampedArray: 1,
|
|
@@ -10725,14 +10725,14 @@ var pm = {
|
|
|
10725
10725
|
se = !0, S(P, $, {
|
|
10726
10726
|
configurable: !0,
|
|
10727
10727
|
get: function() {
|
|
10728
|
-
return u(this) ? this[
|
|
10728
|
+
return u(this) ? this[_] : void 0;
|
|
10729
10729
|
}
|
|
10730
10730
|
});
|
|
10731
|
-
for (ne in Me) c[ne] && m(c[ne],
|
|
10731
|
+
for (ne in Me) c[ne] && m(c[ne], _, ne);
|
|
10732
10732
|
}
|
|
10733
10733
|
n.exports = {
|
|
10734
10734
|
NATIVE_ARRAY_BUFFER_VIEWS: te,
|
|
10735
|
-
TYPED_ARRAY_TAG: se &&
|
|
10735
|
+
TYPED_ARRAY_TAG: se && _,
|
|
10736
10736
|
aTypedArray: z,
|
|
10737
10737
|
aTypedArrayConstructor: ue,
|
|
10738
10738
|
exportTypedArrayMethod: X,
|
|
@@ -11618,7 +11618,7 @@ var pm = {
|
|
|
11618
11618
|
this.stopped = M, this.result = F;
|
|
11619
11619
|
}, k = w.prototype;
|
|
11620
11620
|
n.exports = function(M, F, O) {
|
|
11621
|
-
var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR), D = !!(O && O.INTERRUPTED), G = r(F, J), R, L, P, K, V, $,
|
|
11621
|
+
var J = O && O.that, T = !!(O && O.AS_ENTRIES), H = !!(O && O.IS_RECORD), U = !!(O && O.IS_ITERATOR), D = !!(O && O.INTERRUPTED), G = r(F, J), R, L, P, K, V, $, _, ee = function(se) {
|
|
11622
11622
|
return R && b(R, "normal", se), new w(!0, se);
|
|
11623
11623
|
}, te = function(se) {
|
|
11624
11624
|
return T ? (c(se), D ? G(se[0], se[1], ee) : G(se[0], se[1])) : D ? G(se, ee) : G(se);
|
|
@@ -11636,9 +11636,9 @@ var pm = {
|
|
|
11636
11636
|
}
|
|
11637
11637
|
R = Q(M, L);
|
|
11638
11638
|
}
|
|
11639
|
-
for ($ = H ? M.next : R.next; !(
|
|
11639
|
+
for ($ = H ? M.next : R.next; !(_ = A($, R)).done; ) {
|
|
11640
11640
|
try {
|
|
11641
|
-
V = te(
|
|
11641
|
+
V = te(_.value);
|
|
11642
11642
|
} catch (se) {
|
|
11643
11643
|
b(R, "throw", se);
|
|
11644
11644
|
}
|
|
@@ -12828,7 +12828,7 @@ var pm = {
|
|
|
12828
12828
|
8335: (
|
|
12829
12829
|
/***/
|
|
12830
12830
|
(n, t, i) => {
|
|
12831
|
-
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), m = i(4376), b = i(9297), S = 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, D = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, R = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), V = /^\d$/, $ = /^[1-9]$/,
|
|
12831
|
+
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), m = i(4376), b = i(9297), S = 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, D = g("Object", "keys"), G = Object.getOwnPropertyDescriptor, R = u("".charAt), L = u("".slice), P = u(/./.exec), K = u([].push), V = /^\d$/, $ = /^[1-9]$/, _ = /^(?:-|\d)$/, ee = /^[\t\n\r ]$/, te = 0, se = 1, ne = function(de, z) {
|
|
12832
12832
|
de = S(de);
|
|
12833
12833
|
var ue = new Xe(de, 0), X = ue.parse(), Qe = X.value, Ee = ue.skip(ee, X.end);
|
|
12834
12834
|
if (Ee < de.length)
|
|
@@ -12863,7 +12863,7 @@ var pm = {
|
|
|
12863
12863
|
},
|
|
12864
12864
|
parse: function() {
|
|
12865
12865
|
var de = this.source, z = this.skip(ee, this.index), ue = this.fork(z), X = R(de, z);
|
|
12866
|
-
if (P(
|
|
12866
|
+
if (P(_, X)) return ue.number();
|
|
12867
12867
|
switch (X) {
|
|
12868
12868
|
case "{":
|
|
12869
12869
|
return ue.object();
|
|
@@ -13542,7 +13542,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13542
13542
|
super(e, "PasswordException"), this.code = s;
|
|
13543
13543
|
}
|
|
13544
13544
|
}
|
|
13545
|
-
class
|
|
13545
|
+
class _ extends V {
|
|
13546
13546
|
constructor(e, s) {
|
|
13547
13547
|
super(e, "UnknownErrorException"), this.details = s;
|
|
13548
13548
|
}
|
|
@@ -13678,8 +13678,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13678
13678
|
static #e(e, s, a, o, l, h, d, C, E, B) {
|
|
13679
13679
|
if (E <= 0 || E >= 1)
|
|
13680
13680
|
return;
|
|
13681
|
-
const y = 1 - E, v = E * E, N = v * E, x = y * (y * (y * e + 3 * E * s) + 3 * v * a) + N * o,
|
|
13682
|
-
B[0] = Math.min(B[0], x), B[1] = Math.min(B[1],
|
|
13681
|
+
const y = 1 - E, v = E * E, N = v * E, x = y * (y * (y * e + 3 * E * s) + 3 * v * a) + N * o, q = y * (y * (y * l + 3 * E * h) + 3 * v * d) + N * C;
|
|
13682
|
+
B[0] = Math.min(B[0], x), B[1] = Math.min(B[1], q), B[2] = Math.max(B[2], x), B[3] = Math.max(B[3], q);
|
|
13683
13683
|
}
|
|
13684
13684
|
static #t(e, s, a, o, l, h, d, C, E, B, y, v) {
|
|
13685
13685
|
if (Math.abs(E) < 1e-12) {
|
|
@@ -13689,8 +13689,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13689
13689
|
const N = B ** 2 - 4 * y * E;
|
|
13690
13690
|
if (N < 0)
|
|
13691
13691
|
return;
|
|
13692
|
-
const x = Math.sqrt(N),
|
|
13693
|
-
this.#e(e, s, a, o, l, h, d, C, (-B + x) /
|
|
13692
|
+
const x = Math.sqrt(N), q = 2 * E;
|
|
13693
|
+
this.#e(e, s, a, o, l, h, d, C, (-B + x) / q, v), this.#e(e, s, a, o, l, h, d, C, (-B - x) / q, v);
|
|
13694
13694
|
}
|
|
13695
13695
|
static bezierBoundingBox(e, s, a, o, l, h, d, C, E) {
|
|
13696
13696
|
return E ? (E[0] = Math.min(E[0], e, d), E[1] = Math.min(E[1], s, C), E[2] = Math.max(E[2], e, d), E[3] = Math.max(E[3], s, C)) : E = [Math.min(e, d), Math.min(s, C), Math.max(e, d), Math.max(s, C)], this.#t(e, a, l, d, s, o, h, C, 3 * (-e + 3 * (a - l) + d), 6 * (e - 2 * a + l), 3 * (a - e), E), this.#t(e, a, l, d, s, o, h, C, 3 * (-s + 3 * (o - h) + C), 6 * (s - 2 * o + h), 3 * (o - s), E), E;
|
|
@@ -13926,9 +13926,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13926
13926
|
const E = C.join(","), B = `g_${this.#i}_hcm_filter`, y = l.filter = this.#A(B);
|
|
13927
13927
|
this.#I(E, E, E, y), this.#g(y);
|
|
13928
13928
|
const v = (N, x) => {
|
|
13929
|
-
const
|
|
13929
|
+
const q = h[N] / 255, j = d[N] / 255, Y = new Array(x + 1);
|
|
13930
13930
|
for (let ie = 0; ie <= x; ie++)
|
|
13931
|
-
Y[ie] =
|
|
13931
|
+
Y[ie] = q + ie / x * (j - q);
|
|
13932
13932
|
return Y.join(",");
|
|
13933
13933
|
};
|
|
13934
13934
|
return this.#I(v(0, 5), v(1, 5), v(2, 5), y), l.url = `url(#${B})`, l.url;
|
|
@@ -13981,8 +13981,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
13981
13981
|
for (let He = Oe; He < 256; He++)
|
|
13982
13982
|
Ae[He] = Ae[Oe - 1];
|
|
13983
13983
|
return Ae.join(",");
|
|
13984
|
-
},
|
|
13985
|
-
return this.#g(j), this.#I(x(v[0], N[0], 5), x(v[1], N[1], 5), x(v[2], N[2], 5), j), d.url = `url(#${
|
|
13984
|
+
}, q = `g_${this.#i}_hcm_${e}_filter`, j = d.filter = this.#A(q);
|
|
13985
|
+
return this.#g(j), this.#I(x(v[0], N[0], 5), x(v[1], N[1], 5), x(v[2], N[2], 5), j), d.url = `url(#${q})`, d.url;
|
|
13986
13986
|
}
|
|
13987
13987
|
destroy(e = !1) {
|
|
13988
13988
|
e && this.#l.size !== 0 || (this.#t && (this.#t.parentNode.parentNode.remove(), this.#t = null), this.#e && (this.#e.clear(), this.#e = null), this.#n = 0);
|
|
@@ -14108,8 +14108,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
14108
14108
|
throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.");
|
|
14109
14109
|
}
|
|
14110
14110
|
h && (y = -y, v = -v);
|
|
14111
|
-
let N, x,
|
|
14112
|
-
E === 0 ? (N = Math.abs(C - e[1]) * s + o, x = Math.abs(d - e[0]) * s + l,
|
|
14111
|
+
let N, x, q, j;
|
|
14112
|
+
E === 0 ? (N = Math.abs(C - e[1]) * s + o, x = Math.abs(d - e[0]) * s + l, q = (e[3] - e[1]) * s, j = (e[2] - e[0]) * s) : (N = Math.abs(d - e[0]) * s + o, x = Math.abs(C - e[1]) * s + l, q = (e[2] - e[0]) * s, j = (e[3] - e[1]) * s), this.transform = [E * s, B * s, y * s, v * s, N - E * s * d - y * s * C, x - B * s * d - v * s * C], this.width = q, this.height = j;
|
|
14113
14113
|
}
|
|
14114
14114
|
get rawDims() {
|
|
14115
14115
|
const {
|
|
@@ -15493,9 +15493,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
15493
15493
|
x: v,
|
|
15494
15494
|
y: N,
|
|
15495
15495
|
width: x,
|
|
15496
|
-
height:
|
|
15496
|
+
height: q
|
|
15497
15497
|
} of y.getClientRects())
|
|
15498
|
-
x === 0 ||
|
|
15498
|
+
x === 0 || q === 0 || C.push(d(v, N, x, q));
|
|
15499
15499
|
}
|
|
15500
15500
|
return C.length === 0 ? null : C;
|
|
15501
15501
|
}
|
|
@@ -15965,7 +15965,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
15965
15965
|
});
|
|
15966
15966
|
}
|
|
15967
15967
|
#m(e, s) {
|
|
15968
|
-
const [a, o] = this.parentDimensions, l = this.x, h = this.y, d = this.width, C = this.height, E = Ne.MIN_SIZE / a, B = Ne.MIN_SIZE / o, y = (Pe) => Math.round(Pe * 1e4) / 1e4, v = this.#D(this.rotation), N = (Pe, je) => [v[0] * Pe + v[2] * je, v[1] * Pe + v[3] * je], x = this.#D(360 - this.rotation),
|
|
15968
|
+
const [a, o] = this.parentDimensions, l = this.x, h = this.y, d = this.width, C = this.height, E = Ne.MIN_SIZE / a, B = Ne.MIN_SIZE / o, y = (Pe) => Math.round(Pe * 1e4) / 1e4, v = this.#D(this.rotation), N = (Pe, je) => [v[0] * Pe + v[2] * je, v[1] * Pe + v[3] * je], x = this.#D(360 - this.rotation), q = (Pe, je) => [x[0] * Pe + x[2] * je, x[1] * Pe + x[3] * je];
|
|
15969
15969
|
let j, Y, ie = !1, oe = !1;
|
|
15970
15970
|
switch (e) {
|
|
15971
15971
|
case "topLeft":
|
|
@@ -15997,7 +15997,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
15997
15997
|
let Ie = N(...Ce);
|
|
15998
15998
|
const we = y(l + Ie[0]), Oe = y(h + Ie[1]);
|
|
15999
15999
|
let He = 1, et = 1, [Ye, kt] = this.screenToPageTranslation(s.movementX, s.movementY);
|
|
16000
|
-
if ([Ye, kt] =
|
|
16000
|
+
if ([Ye, kt] = q(Ye / a, kt / o), ie) {
|
|
16001
16001
|
const Pe = Math.hypot(d, C);
|
|
16002
16002
|
He = et = Math.max(Math.min(Math.hypot(Ce[0] - Ae[0] - Ye, Ce[1] - Ae[1] - kt) / Pe, 1 / d, 1 / C), E / d, B / C);
|
|
16003
16003
|
} else oe ? He = Math.max(E, Math.min(1, Math.abs(Ce[0] - Ae[0] - Ye))) / d : et = Math.max(B, Math.min(1, Math.abs(Ce[1] - Ae[1] - kt))) / C;
|
|
@@ -16371,8 +16371,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16371
16371
|
let s, a;
|
|
16372
16372
|
if (typeof e == "string") {
|
|
16373
16373
|
s = new Uint8Array(e.length * 2), a = 0;
|
|
16374
|
-
for (let
|
|
16375
|
-
const Y = e.charCodeAt(
|
|
16374
|
+
for (let q = 0, j = e.length; q < j; q++) {
|
|
16375
|
+
const Y = e.charCodeAt(q);
|
|
16376
16376
|
Y <= 255 ? s[a++] = Y : (s[a++] = Y >>> 8, s[a++] = Y & 255);
|
|
16377
16377
|
}
|
|
16378
16378
|
} else if (ArrayBuffer.isView(e))
|
|
@@ -16382,8 +16382,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16382
16382
|
const o = a >> 2, l = a - o * 4, h = new Uint32Array(s.buffer, 0, o);
|
|
16383
16383
|
let d = 0, C = 0, E = this.h1, B = this.h2;
|
|
16384
16384
|
const y = 3432918353, v = 461845907, N = y & Li, x = v & Li;
|
|
16385
|
-
for (let
|
|
16386
|
-
|
|
16385
|
+
for (let q = 0; q < o; q++)
|
|
16386
|
+
q & 1 ? (d = h[q], d = d * y & ei | d * N & Li, d = d << 15 | d >>> 17, d = d * v & ei | d * x & Li, E ^= d, E = E << 13 | E >>> 19, E = E * 5 + 3864292196) : (C = h[q], C = C * y & ei | C * N & Li, C = C << 15 | C >>> 17, C = C * v & ei | C * x & Li, B ^= C, B = B << 13 | B >>> 19, B = B * 5 + 3864292196);
|
|
16387
16387
|
switch (d = 0, l) {
|
|
16388
16388
|
case 3:
|
|
16389
16389
|
d ^= s[o * 4 + 2] << 16;
|
|
@@ -16657,11 +16657,11 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16657
16657
|
const y = `lt${Date.now()}${this.loadTestFontId++}`;
|
|
16658
16658
|
let v = this._loadTestFont;
|
|
16659
16659
|
v = o(v, 976, y.length, y);
|
|
16660
|
-
const x = 16,
|
|
16660
|
+
const x = 16, q = 1482184792;
|
|
16661
16661
|
let j = a(v, x);
|
|
16662
16662
|
for (l = 0, h = y.length - 3; l < h; l += 4)
|
|
16663
|
-
j = j -
|
|
16664
|
-
l < y.length && (j = j -
|
|
16663
|
+
j = j - q + a(y, l) | 0;
|
|
16664
|
+
l < y.length && (j = j - q + a(y + "XXX", l) | 0), v = o(v, x, 4, Xe(j));
|
|
16665
16665
|
const Y = `url(data:font/opentype;base64,${btoa(v)});`, ie = `@font-face {font-family:"${y}";src:${Y}}`;
|
|
16666
16666
|
this.insertRule(ie);
|
|
16667
16667
|
const oe = this._document.createElement("div");
|
|
@@ -16788,13 +16788,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16788
16788
|
"./chunks/empty-GlqisfcO.es.js"
|
|
16789
16789
|
), s = await import(
|
|
16790
16790
|
/*webpackIgnore: true*/
|
|
16791
|
-
"./chunks/index-
|
|
16791
|
+
"./chunks/index-kWwSELc2.es.js"
|
|
16792
16792
|
).then((d) => d.i), a = await import(
|
|
16793
16793
|
/*webpackIgnore: true*/
|
|
16794
|
-
"./chunks/index-
|
|
16794
|
+
"./chunks/index-BTkgQgI7.es.js"
|
|
16795
16795
|
).then((d) => d.i), o = await import(
|
|
16796
16796
|
/*webpackIgnore: true*/
|
|
16797
|
-
"./chunks/url-
|
|
16797
|
+
"./chunks/url-C29KYeaj.es.js"
|
|
16798
16798
|
).then((d) => d.u);
|
|
16799
16799
|
let l, h;
|
|
16800
16800
|
try {
|
|
@@ -16909,7 +16909,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16909
16909
|
const C = e.coords, E = e.colors, B = p.data, y = p.width * 4;
|
|
16910
16910
|
let v;
|
|
16911
16911
|
C[s + 1] > C[a + 1] && (v = s, s = a, a = v, v = l, l = h, h = v), C[a + 1] > C[o + 1] && (v = a, a = o, o = v, v = h, h = d, d = v), C[s + 1] > C[a + 1] && (v = s, s = a, a = v, v = l, l = h, h = v);
|
|
16912
|
-
const N = (C[s] + e.offsetX) * e.scaleX, x = (C[s + 1] + e.offsetY) * e.scaleY,
|
|
16912
|
+
const N = (C[s] + e.offsetX) * e.scaleX, x = (C[s + 1] + e.offsetY) * e.scaleY, q = (C[a] + e.offsetX) * e.scaleX, j = (C[a + 1] + e.offsetY) * e.scaleY, Y = (C[o] + e.offsetX) * e.scaleX, ie = (C[o + 1] + e.offsetY) * e.scaleY;
|
|
16913
16913
|
if (x >= ie)
|
|
16914
16914
|
return;
|
|
16915
16915
|
const oe = E[l], Ae = E[l + 1], Ce = E[l + 2], Ie = E[h], we = E[h + 1], Oe = E[h + 2], He = E[d], et = E[d + 1], Ye = E[d + 2], kt = Math.round(x), xt = Math.round(ie);
|
|
@@ -16917,10 +16917,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16917
16917
|
for (let gi = kt; gi <= xt; gi++) {
|
|
16918
16918
|
if (gi < j) {
|
|
16919
16919
|
const ct = gi < x ? 0 : (x - gi) / (x - j);
|
|
16920
|
-
ni = N - (N -
|
|
16920
|
+
ni = N - (N - q) * ct, Qt = oe - (oe - Ie) * ct, zt = Ae - (Ae - we) * ct, Pe = Ce - (Ce - Oe) * ct;
|
|
16921
16921
|
} else {
|
|
16922
16922
|
let ct;
|
|
16923
|
-
gi > ie ? ct = 1 : j === ie ? ct = 0 : ct = (j - gi) / (j - ie), ni =
|
|
16923
|
+
gi > ie ? ct = 1 : j === ie ? ct = 0 : ct = (j - gi) / (j - ie), ni = q - (q - Y) * ct, Qt = Ie - (Ie - He) * ct, zt = we - (we - et) * ct, Pe = Oe - (Oe - Ye) * ct;
|
|
16924
16924
|
}
|
|
16925
16925
|
let Tt;
|
|
16926
16926
|
gi < x ? Tt = 0 : gi > ie ? Tt = 1 : Tt = (x - gi) / (x - ie), je = N - (N - Y) * Tt, pr = oe - (oe - He) * Tt, Qr = Ae - (Ae - et) * Tt, As = Ce - (Ce - Ye) * Tt;
|
|
@@ -16955,7 +16955,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16955
16955
|
super(), this._coords = e[2], this._colors = e[3], this._figures = e[4], this._bounds = e[5], this._bbox = e[7], this._background = e[8], this.matrix = null;
|
|
16956
16956
|
}
|
|
16957
16957
|
_createMeshCanvas(e, s, a) {
|
|
16958
|
-
const d = Math.floor(this._bounds[0]), C = Math.floor(this._bounds[1]), E = Math.ceil(this._bounds[2]) - d, B = Math.ceil(this._bounds[3]) - C, y = Math.min(Math.ceil(Math.abs(E * e[0] * 1.1)), 3e3), v = Math.min(Math.ceil(Math.abs(B * e[1] * 1.1)), 3e3), N = E / y, x = B / v,
|
|
16958
|
+
const d = Math.floor(this._bounds[0]), C = Math.floor(this._bounds[1]), E = Math.ceil(this._bounds[2]) - d, B = Math.ceil(this._bounds[3]) - C, y = Math.min(Math.ceil(Math.abs(E * e[0] * 1.1)), 3e3), v = Math.min(Math.ceil(Math.abs(B * e[1] * 1.1)), 3e3), N = E / y, x = B / v, q = {
|
|
16959
16959
|
coords: this._coords,
|
|
16960
16960
|
colors: this._colors,
|
|
16961
16961
|
offsetX: -d,
|
|
@@ -16969,7 +16969,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16969
16969
|
Ie[we] = s[0], Ie[we + 1] = s[1], Ie[we + 2] = s[2], Ie[we + 3] = 255;
|
|
16970
16970
|
}
|
|
16971
16971
|
for (const Ie of this._figures)
|
|
16972
|
-
iu(Ae, Ie,
|
|
16972
|
+
iu(Ae, Ie, q);
|
|
16973
16973
|
return oe.putImageData(Ae, 2, 2), {
|
|
16974
16974
|
canvas: ie.canvas,
|
|
16975
16975
|
offsetX: d - 2 * N,
|
|
@@ -17019,7 +17019,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17019
17019
|
createPatternCanvas(e) {
|
|
17020
17020
|
const s = this.operatorList, a = this.bbox, o = this.xstep, l = this.ystep, h = this.paintType, d = this.tilingType, C = this.color, E = this.canvasGraphicsFactory;
|
|
17021
17021
|
U("TilingType: " + d);
|
|
17022
|
-
const B = a[0], y = a[1], v = a[2], N = a[3], x = X.singularValueDecompose2dScale(this.matrix),
|
|
17022
|
+
const B = a[0], y = a[1], v = a[2], N = a[3], x = X.singularValueDecompose2dScale(this.matrix), q = X.singularValueDecompose2dScale(this.baseTransform), j = [x[0] * q[0], x[1] * q[1]], Y = this.getSizeAndScale(o, this.ctx.canvas.width, j[0]), ie = this.getSizeAndScale(l, this.ctx.canvas.height, j[1]), oe = e.cachedCanvases.getCanvas("pattern", Y.size, ie.size, !0), Ae = oe.context, Ce = E.createCanvasGraphics(Ae);
|
|
17023
17023
|
Ce.groupLevel = e.groupLevel, this.setFillAndStrokeStyleToContext(Ce, h, C);
|
|
17024
17024
|
let Ie = B, we = y, Oe = v, He = N;
|
|
17025
17025
|
return B < 0 && (Ie = 0, Oe += Math.abs(B)), y < 0 && (we = 0, He += Math.abs(y)), Ae.translate(-(Y.scale * Ie), -(ie.scale * we)), Ce.transform(Y.scale, 0, 0, ie.scale, 0, 0), Ae.save(), this.clipBbox(Ce, Ie, we, Oe, He), Ce.baseTransform = Z(Ce.ctx), Ce.executeOperatorList(s), Ce.endDrawing(), {
|
|
@@ -17087,9 +17087,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17087
17087
|
}
|
|
17088
17088
|
if (y === 0)
|
|
17089
17089
|
continue;
|
|
17090
|
-
const
|
|
17090
|
+
const q = e < v ? p[e++] : 255;
|
|
17091
17091
|
for (let j = 0; j < y; j++)
|
|
17092
|
-
s[N++] =
|
|
17092
|
+
s[N++] = q & 1 << 7 - j ? E : C;
|
|
17093
17093
|
}
|
|
17094
17094
|
return {
|
|
17095
17095
|
srcPos: e,
|
|
@@ -17153,14 +17153,14 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17153
17153
|
}
|
|
17154
17154
|
}
|
|
17155
17155
|
function ur(p, e, s, a, o, l, h, d, C, E) {
|
|
17156
|
-
const [B, y, v, N, x,
|
|
17156
|
+
const [B, y, v, N, x, q] = Z(p);
|
|
17157
17157
|
if (y === 0 && v === 0) {
|
|
17158
|
-
const ie = h * B + x, oe = Math.round(ie), Ae = d * N +
|
|
17159
|
-
return p.setTransform(Math.sign(B), 0, 0, Math.sign(N), oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, we, He), p.setTransform(B, y, v, N, x,
|
|
17158
|
+
const ie = h * B + x, oe = Math.round(ie), Ae = d * N + q, Ce = Math.round(Ae), Ie = (h + C) * B + x, we = Math.abs(Math.round(Ie) - oe) || 1, Oe = (d + E) * N + q, He = Math.abs(Math.round(Oe) - Ce) || 1;
|
|
17159
|
+
return p.setTransform(Math.sign(B), 0, 0, Math.sign(N), oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, we, He), p.setTransform(B, y, v, N, x, q), [we, He];
|
|
17160
17160
|
}
|
|
17161
17161
|
if (B === 0 && N === 0) {
|
|
17162
|
-
const ie = d * v + x, oe = Math.round(ie), Ae = h * y +
|
|
17163
|
-
return p.setTransform(0, Math.sign(y), Math.sign(v), 0, oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, He, we), p.setTransform(B, y, v, N, x,
|
|
17162
|
+
const ie = d * v + x, oe = Math.round(ie), Ae = h * y + q, Ce = Math.round(Ae), Ie = (d + E) * v + x, we = Math.abs(Math.round(Ie) - oe) || 1, Oe = (h + C) * y + q, He = Math.abs(Math.round(Oe) - Ce) || 1;
|
|
17163
|
+
return p.setTransform(0, Math.sign(y), Math.sign(v), 0, oe, Ce), p.drawImage(e, s, a, o, l, 0, 0, He, we), p.setTransform(B, y, v, N, x, q), [He, we];
|
|
17164
17164
|
}
|
|
17165
17165
|
p.drawImage(e, s, a, o, l, h, d, C, E);
|
|
17166
17166
|
const j = Math.hypot(B, y), Y = Math.hypot(v, N);
|
|
@@ -17197,7 +17197,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17197
17197
|
y[v] !== y[v + 1] && (h[E + C] = y[v] ? 4 : 8, ++N), v++;
|
|
17198
17198
|
if (y[v] !== 0 && (h[E + C] = 4, ++N), N > a)
|
|
17199
17199
|
return null;
|
|
17200
|
-
const x = new Int32Array([0, l, -1, 0, -l, 0, 0, 0, 1]),
|
|
17200
|
+
const x = new Int32Array([0, l, -1, 0, -l, 0, 0, 0, 1]), q = new Path2D();
|
|
17201
17201
|
for (d = 0; N && d <= s; d++) {
|
|
17202
17202
|
let Y = d * l;
|
|
17203
17203
|
const ie = Y + e;
|
|
@@ -17205,7 +17205,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17205
17205
|
Y++;
|
|
17206
17206
|
if (Y === ie)
|
|
17207
17207
|
continue;
|
|
17208
|
-
|
|
17208
|
+
q.moveTo(Y % l, d);
|
|
17209
17209
|
const oe = Y;
|
|
17210
17210
|
let Ae = h[Y];
|
|
17211
17211
|
do {
|
|
@@ -17214,12 +17214,12 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17214
17214
|
Y += Ce;
|
|
17215
17215
|
while (!h[Y]);
|
|
17216
17216
|
const Ie = h[Y];
|
|
17217
|
-
Ie !== 5 && Ie !== 10 ? (Ae = Ie, h[Y] = 0) : (Ae = Ie & 51 * Ae >> 4, h[Y] &= Ae >> 2 | Ae << 2),
|
|
17217
|
+
Ie !== 5 && Ie !== 10 ? (Ae = Ie, h[Y] = 0) : (Ae = Ie & 51 * Ae >> 4, h[Y] &= Ae >> 2 | Ae << 2), q.lineTo(Y % l, Y / l | 0), h[Y] || --N;
|
|
17218
17218
|
} while (oe !== Y);
|
|
17219
17219
|
--d;
|
|
17220
17220
|
}
|
|
17221
17221
|
return y = null, h = null, function(Y) {
|
|
17222
|
-
Y.save(), Y.scale(1 / e, -1 / s), Y.translate(0, -s), Y.fill(
|
|
17222
|
+
Y.save(), Y.scale(1 / e, -1 / s), Y.translate(0, -s), Y.fill(q), Y.beginPath(), Y.restore();
|
|
17223
17223
|
};
|
|
17224
17224
|
}
|
|
17225
17225
|
class po {
|
|
@@ -17278,7 +17278,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17278
17278
|
const s = e.height, a = e.width, o = s % ti, l = (s - o) / ti, h = o === 0 ? l : l + 1, d = p.createImageData(a, ti);
|
|
17279
17279
|
let C = 0, E;
|
|
17280
17280
|
const B = e.data, y = d.data;
|
|
17281
|
-
let v, N, x,
|
|
17281
|
+
let v, N, x, q;
|
|
17282
17282
|
if (e.kind === b.GRAYSCALE_1BPP) {
|
|
17283
17283
|
const j = B.byteLength, Y = new Uint32Array(y.buffer, 0, y.byteLength >> 2), ie = Y.length, oe = a + 7 >> 3, Ae = 4294967295, Ce = z.isLittleEndian ? 4278190080 : 255;
|
|
17284
17284
|
for (v = 0; v < h; v++) {
|
|
@@ -17297,12 +17297,12 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17297
17297
|
p.putImageData(d, 0, v * ti);
|
|
17298
17298
|
}
|
|
17299
17299
|
} else if (e.kind === b.RGBA_32BPP) {
|
|
17300
|
-
for (N = 0,
|
|
17301
|
-
y.set(B.subarray(C, C +
|
|
17302
|
-
v < h && (
|
|
17300
|
+
for (N = 0, q = a * ti * 4, v = 0; v < l; v++)
|
|
17301
|
+
y.set(B.subarray(C, C + q)), C += q, p.putImageData(d, 0, N), N += ti;
|
|
17302
|
+
v < h && (q = a * o * 4, y.set(B.subarray(C, C + q)), p.putImageData(d, 0, N));
|
|
17303
17303
|
} else if (e.kind === b.RGB_24BPP)
|
|
17304
|
-
for (x = ti,
|
|
17305
|
-
for (v >= l && (x = o,
|
|
17304
|
+
for (x = ti, q = a * x, v = 0; v < h; v++) {
|
|
17305
|
+
for (v >= l && (x = o, q = a * x), E = 0, N = q; N--; )
|
|
17306
17306
|
y[E++] = B[C++], y[E++] = B[C++], y[E++] = B[C++], y[E++] = 255;
|
|
17307
17307
|
p.putImageData(d, 0, v * ti);
|
|
17308
17308
|
}
|
|
@@ -17393,10 +17393,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17393
17393
|
if (x = h[d], x !== F.dependency)
|
|
17394
17394
|
this[x].apply(this, l[d]);
|
|
17395
17395
|
else
|
|
17396
|
-
for (const
|
|
17397
|
-
const j =
|
|
17398
|
-
if (!j.has(
|
|
17399
|
-
return j.get(
|
|
17396
|
+
for (const q of l[d]) {
|
|
17397
|
+
const j = q.startsWith("g_") ? v : N;
|
|
17398
|
+
if (!j.has(q))
|
|
17399
|
+
return j.get(q, a), d;
|
|
17400
17400
|
}
|
|
17401
17401
|
if (d++, d === C)
|
|
17402
17402
|
return d;
|
|
@@ -17466,7 +17466,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17466
17466
|
B || (y = this.cachedCanvases.getCanvas("maskCanvas", a, o), mo(y.context, e));
|
|
17467
17467
|
let v = X.transform(d, [1 / a, 0, 0, -1 / o, 0, 0]);
|
|
17468
17468
|
v = X.transform(v, [1, 0, 0, 1, 0, -o]);
|
|
17469
|
-
const [N, x,
|
|
17469
|
+
const [N, x, q, j] = X.getAxialAlignedBoundingBox([0, 0, a, o], v), Y = Math.round(q - N) || 1, ie = Math.round(j - x) || 1, oe = this.cachedCanvases.getCanvas("fillCanvas", Y, ie), Ae = oe.context, Ce = N, Ie = x;
|
|
17470
17470
|
Ae.translate(-Ce, -Ie), Ae.transform(...v), B || (B = this._scaleImage(y.canvas, me(Ae)), B = B.img, C && h && C.set(E, B)), Ae.imageSmoothingEnabled = yo(Z(Ae), e.interpolate), ur(Ae, B, 0, 0, B.width, B.height, 0, 0, a, o), Ae.globalCompositeOperation = "source-in";
|
|
17471
17471
|
const we = X.transform(me(Ae), [1, 0, 0, 1, -Ce, -Ie]);
|
|
17472
17472
|
return Ae.fillStyle = h ? l.getPattern(s, this, we, Vt.FILL) : l, Ae.fillRect(0, 0, a, o), C && !h && (this.cachedCanvases.delete("fillCanvas"), C.set(E, oe.canvas)), {
|
|
@@ -17583,8 +17583,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17583
17583
|
}
|
|
17584
17584
|
}
|
|
17585
17585
|
s.save(), s.globalAlpha = 1, s.setTransform(1, 0, 0, 1, 0, 0), l === "Alpha" && d ? s.filter = this.filterFactory.addAlphaFilter(d) : l === "Luminosity" && (s.filter = this.filterFactory.addLuminosityFilter(d));
|
|
17586
|
-
const
|
|
17587
|
-
|
|
17586
|
+
const q = new Path2D();
|
|
17587
|
+
q.rect(C, E, a, o), s.clip(q), s.globalCompositeOperation = "destination-in", s.drawImage(v, N, x, a, o, C, E, a, o), s.restore();
|
|
17588
17588
|
}
|
|
17589
17589
|
save() {
|
|
17590
17590
|
this.inSMaskMode ? (vs(this.ctx, this.suspendedCtx), this.suspendedCtx.save()) : this.ctx.save();
|
|
@@ -17601,7 +17601,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17601
17601
|
const o = this.ctx, l = this.current;
|
|
17602
17602
|
let h = l.x, d = l.y, C, E;
|
|
17603
17603
|
const B = Z(o), y = B[0] === 0 && B[3] === 0 || B[1] === 0 && B[2] === 0, v = y ? a.slice(0) : null;
|
|
17604
|
-
for (let N = 0, x = 0,
|
|
17604
|
+
for (let N = 0, x = 0, q = e.length; N < q; N++)
|
|
17605
17605
|
switch (e[N] | 0) {
|
|
17606
17606
|
case F.rectangle:
|
|
17607
17607
|
h = s[x++], d = s[x++];
|
|
@@ -17759,7 +17759,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17759
17759
|
const o = s.fontSize;
|
|
17760
17760
|
if (o === 0)
|
|
17761
17761
|
return;
|
|
17762
|
-
const l = this.ctx, h = s.fontSizeScale, d = s.charSpacing, C = s.wordSpacing, E = s.fontDirection, B = s.textHScale * E, y = e.length, v = a.vertical, N = v ? 1 : -1, x = a.defaultVMetrics,
|
|
17762
|
+
const l = this.ctx, h = s.fontSizeScale, d = s.charSpacing, C = s.wordSpacing, E = s.fontDirection, B = s.textHScale * E, y = e.length, v = a.vertical, N = v ? 1 : -1, x = a.defaultVMetrics, q = o * s.fontMatrix[0], j = s.textRenderingMode === m.FILL && !a.disableFontFace && !s.patternFill;
|
|
17763
17763
|
l.save(), l.transform(...s.textMatrix), l.translate(s.x, s.y + s.textRise), E > 0 ? l.scale(B, -1) : l.scale(B, 1);
|
|
17764
17764
|
let Y;
|
|
17765
17765
|
if (s.patternFill) {
|
|
@@ -17779,7 +17779,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17779
17779
|
let we = 0;
|
|
17780
17780
|
for (const Oe of e)
|
|
17781
17781
|
Ie.push(Oe.unicode), we += Oe.width;
|
|
17782
|
-
l.fillText(Ie.join(""), 0, 0), s.x += we *
|
|
17782
|
+
l.fillText(Ie.join(""), 0, 0), s.x += we * q * B, l.restore(), this.compose();
|
|
17783
17783
|
return;
|
|
17784
17784
|
}
|
|
17785
17785
|
let Ae = 0, Ce;
|
|
@@ -17793,7 +17793,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17793
17793
|
const Oe = (Ie.isSpace ? C : 0) + d, He = Ie.fontChar, et = Ie.accent;
|
|
17794
17794
|
let Ye, kt, xt = Ie.width;
|
|
17795
17795
|
if (v) {
|
|
17796
|
-
const Qt = Ie.vmetric || x, zt = -(Ie.vmetric ? Qt[1] : xt * 0.5) *
|
|
17796
|
+
const Qt = Ie.vmetric || x, zt = -(Ie.vmetric ? Qt[1] : xt * 0.5) * q, Pe = Qt[2] * q;
|
|
17797
17797
|
xt = Qt ? -Qt[0] : xt, Ye = zt / h, kt = (Ae + Pe) / h;
|
|
17798
17798
|
} else
|
|
17799
17799
|
Ye = Ae / h, kt = 0;
|
|
@@ -17812,26 +17812,26 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
17812
17812
|
this.paintChar(et.fontChar, Qt, zt, Y);
|
|
17813
17813
|
}
|
|
17814
17814
|
}
|
|
17815
|
-
const ni = v ? xt *
|
|
17815
|
+
const ni = v ? xt * q - Oe * E : xt * q + Oe * E;
|
|
17816
17816
|
Ae += ni, we && l.restore();
|
|
17817
17817
|
}
|
|
17818
17818
|
v ? s.y -= Ae : s.x += Ae * B, l.restore(), this.compose();
|
|
17819
17819
|
}
|
|
17820
17820
|
showType3Text(e) {
|
|
17821
17821
|
const s = this.ctx, a = this.current, o = a.font, l = a.fontSize, h = a.fontDirection, d = o.vertical ? 1 : -1, C = a.charSpacing, E = a.wordSpacing, B = a.textHScale * h, y = a.fontMatrix || i, v = e.length, N = a.textRenderingMode === m.INVISIBLE;
|
|
17822
|
-
let x,
|
|
17822
|
+
let x, q, j, Y;
|
|
17823
17823
|
if (!(N || l === 0)) {
|
|
17824
17824
|
for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, s.save(), s.transform(...a.textMatrix), s.translate(a.x, a.y), s.scale(B, h), x = 0; x < v; ++x) {
|
|
17825
|
-
if (
|
|
17826
|
-
Y = d *
|
|
17825
|
+
if (q = e[x], typeof q == "number") {
|
|
17826
|
+
Y = d * q * l / 1e3, this.ctx.translate(Y, 0), a.x += Y * B;
|
|
17827
17827
|
continue;
|
|
17828
17828
|
}
|
|
17829
|
-
const ie = (
|
|
17829
|
+
const ie = (q.isSpace ? E : 0) + C, oe = o.charProcOperatorList[q.operatorListId];
|
|
17830
17830
|
if (!oe) {
|
|
17831
|
-
D(`Type3 character "${
|
|
17831
|
+
D(`Type3 character "${q.operatorListId}" is not available.`);
|
|
17832
17832
|
continue;
|
|
17833
17833
|
}
|
|
17834
|
-
this.contentVisible && (this.processingType3 =
|
|
17834
|
+
this.contentVisible && (this.processingType3 = q, this.save(), s.scale(l, l), s.transform(...y), this.executeOperatorList(oe), this.restore()), j = X.applyTransform([q.width, 0], y)[0] * l + ie, s.translate(j, 0), a.x += j * B;
|
|
17835
17835
|
}
|
|
17836
17836
|
s.restore(), this.processingType3 = null;
|
|
17837
17837
|
}
|
|
@@ -18250,9 +18250,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18250
18250
|
case "UnexpectedResponseException":
|
|
18251
18251
|
return new se(p.message, p.status);
|
|
18252
18252
|
case "UnknownErrorException":
|
|
18253
|
-
return new
|
|
18253
|
+
return new _(p.message, p.details);
|
|
18254
18254
|
default:
|
|
18255
|
-
return new
|
|
18255
|
+
return new _(p.message, p.toString());
|
|
18256
18256
|
}
|
|
18257
18257
|
}
|
|
18258
18258
|
class ks {
|
|
@@ -18969,18 +18969,18 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
18969
18969
|
let v;
|
|
18970
18970
|
const N = a("filename\\*((?!0\\d)\\d+)(\\*?)", "ig");
|
|
18971
18971
|
for (; (v = N.exec(B)) !== null; ) {
|
|
18972
|
-
let [,
|
|
18973
|
-
if (
|
|
18974
|
-
if (
|
|
18972
|
+
let [, q, j, Y] = v;
|
|
18973
|
+
if (q = parseInt(q, 10), q in y) {
|
|
18974
|
+
if (q === 0)
|
|
18975
18975
|
break;
|
|
18976
18976
|
continue;
|
|
18977
18977
|
}
|
|
18978
|
-
y[
|
|
18978
|
+
y[q] = [j, Y];
|
|
18979
18979
|
}
|
|
18980
18980
|
const x = [];
|
|
18981
|
-
for (let
|
|
18982
|
-
let [j, Y] = y[
|
|
18983
|
-
Y = d(Y), j && (Y = unescape(Y),
|
|
18981
|
+
for (let q = 0; q < y.length && q in y; ++q) {
|
|
18982
|
+
let [j, Y] = y[q];
|
|
18983
|
+
Y = d(Y), j && (Y = unescape(Y), q === 0 && (Y = C(Y))), x.push(Y);
|
|
18984
18984
|
}
|
|
18985
18985
|
return x.join("");
|
|
18986
18986
|
}
|
|
@@ -19005,7 +19005,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19005
19005
|
function E(B) {
|
|
19006
19006
|
return !B.startsWith("=?") || /[\x00-\x19\x80-\xff]/.test(B) ? B : B.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g, function(y, v, N, x) {
|
|
19007
19007
|
if (N === "q" || N === "Q")
|
|
19008
|
-
return x = x.replaceAll("_", " "), x = x.replaceAll(/=([0-9a-fA-F]{2})/g, function(
|
|
19008
|
+
return x = x.replaceAll("_", " "), x = x.replaceAll(/=([0-9a-fA-F]{2})/g, function(q, j) {
|
|
19009
19009
|
return String.fromCharCode(parseInt(j, 16));
|
|
19010
19010
|
}), o(v, x);
|
|
19011
19011
|
try {
|
|
@@ -19814,12 +19814,12 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19814
19814
|
if (e.str.length > 1)
|
|
19815
19815
|
x = !0;
|
|
19816
19816
|
else if (e.str !== " " && e.transform[0] !== e.transform[3]) {
|
|
19817
|
-
const
|
|
19818
|
-
|
|
19817
|
+
const q = Math.abs(e.transform[0]), j = Math.abs(e.transform[3]);
|
|
19818
|
+
q !== j && Math.max(q, j) / Math.min(q, j) > 1.5 && (x = !0);
|
|
19819
19819
|
}
|
|
19820
19820
|
if (x && (a.canvasWidth = h.vertical ? e.height : e.width), this.#f.set(s, a), this.#n.div = s, this.#n.properties = a, this.#D(this.#n), a.hasText && this.#t.append(s), a.hasEOL) {
|
|
19821
|
-
const
|
|
19822
|
-
|
|
19821
|
+
const q = document.createElement("br");
|
|
19822
|
+
q.setAttribute("role", "presentation"), this.#t.append(q);
|
|
19823
19823
|
}
|
|
19824
19824
|
}
|
|
19825
19825
|
#D(e) {
|
|
@@ -19967,7 +19967,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19967
19967
|
docId: s
|
|
19968
19968
|
} = e, a = p.url ? qu(p.url) : null, o = p.data ? ju(p.data) : null, l = p.httpHeaders || null, h = p.withCredentials === !0, d = p.password ?? null, C = p.range instanceof Mo ? p.range : null, E = Number.isInteger(p.rangeChunkSize) && p.rangeChunkSize > 0 ? p.rangeChunkSize : Uu;
|
|
19969
19969
|
let B = p.worker instanceof Bi ? p.worker : null;
|
|
19970
|
-
const y = p.verbosity, v = typeof p.docBaseUrl == "string" && !Zi(p.docBaseUrl) ? p.docBaseUrl : null, N = typeof p.cMapUrl == "string" ? p.cMapUrl : null, x = p.cMapPacked !== !1,
|
|
19970
|
+
const y = p.verbosity, v = typeof p.docBaseUrl == "string" && !Zi(p.docBaseUrl) ? p.docBaseUrl : null, N = typeof p.cMapUrl == "string" ? p.cMapUrl : null, x = p.cMapPacked !== !1, q = p.CMapReaderFactory || Ju, j = typeof p.standardFontDataUrl == "string" ? p.standardFontDataUrl : null, Y = p.StandardFontDataFactory || Ku, ie = p.stopAtErrors !== !0, oe = Number.isInteger(p.maxImageSize) && p.maxImageSize > -1 ? p.maxImageSize : -1, Ae = p.isEvalSupported !== !1, Ce = typeof p.isOffscreenCanvasSupported == "boolean" ? p.isOffscreenCanvasSupported : !n, Ie = Number.isInteger(p.canvasMaxAreaInBytes) ? p.canvasMaxAreaInBytes : -1, we = typeof p.disableFontFace == "boolean" ? p.disableFontFace : n, Oe = p.fontExtraProperties === !0, He = p.enableXfa === !0, et = p.ownerDocument || globalThis.document, Ye = p.disableRange === !0, kt = p.disableStream === !0, xt = p.disableAutoFetch === !0, ni = p.pdfBug === !0, Qt = C ? C.length : p.length ?? NaN, zt = typeof p.useSystemFonts == "boolean" ? p.useSystemFonts : !n && !we, Pe = typeof p.useWorkerFetch == "boolean" ? p.useWorkerFetch : q === Ni && Y === Ci && N && j && pe(N, document.baseURI) && pe(j, document.baseURI), je = p.canvasFactory || new Ou({
|
|
19971
19971
|
ownerDocument: et
|
|
19972
19972
|
}), pr = p.filterFactory || new Yu({
|
|
19973
19973
|
docId: s,
|
|
@@ -19978,7 +19978,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
19978
19978
|
canvasFactory: je,
|
|
19979
19979
|
filterFactory: pr
|
|
19980
19980
|
};
|
|
19981
|
-
if (Pe || (As.cMapReaderFactory = new
|
|
19981
|
+
if (Pe || (As.cMapReaderFactory = new q({
|
|
19982
19982
|
baseUrl: N,
|
|
19983
19983
|
isCompressed: x
|
|
19984
19984
|
}), As.standardFontDataFactory = new Y({
|
|
@@ -20329,7 +20329,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20329
20329
|
this.#t = !1, this.#s(), d ||= this._transport.getOptionalContentConfig(v);
|
|
20330
20330
|
let x = this._intentStates.get(N);
|
|
20331
20331
|
x || (x = /* @__PURE__ */ Object.create(null), this._intentStates.set(N, x)), x.streamReaderCancelTimeout && (clearTimeout(x.streamReaderCancelTimeout), x.streamReaderCancelTimeout = null);
|
|
20332
|
-
const
|
|
20332
|
+
const q = !!(v & c.PRINT);
|
|
20333
20333
|
x.displayReadyCapability || (x.displayReadyCapability = Promise.withResolvers(), x.operatorList = {
|
|
20334
20334
|
fnArray: [],
|
|
20335
20335
|
argsArray: [],
|
|
@@ -20337,7 +20337,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20337
20337
|
separateAnnots: null
|
|
20338
20338
|
}, this._stats?.time("Page Request"), this._pumpOperatorList(y));
|
|
20339
20339
|
const j = (oe) => {
|
|
20340
|
-
x.renderTasks.delete(Y), (this._maybeCleanupAfterRender ||
|
|
20340
|
+
x.renderTasks.delete(Y), (this._maybeCleanupAfterRender || q) && (this.#t = !0), this.#i(!q), oe ? (Y.capability.reject(oe), this._abortOperatorList({
|
|
20341
20341
|
intentState: x,
|
|
20342
20342
|
reason: oe instanceof Error ? oe : new Error(oe)
|
|
20343
20343
|
})) : Y.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"), globalThis.Stats?.enabled && globalThis.Stats.add(this.pageNumber, this._stats));
|
|
@@ -20356,7 +20356,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20356
20356
|
pageIndex: this._pageIndex,
|
|
20357
20357
|
canvasFactory: this._transport.canvasFactory,
|
|
20358
20358
|
filterFactory: this._transport.filterFactory,
|
|
20359
|
-
useRequestAnimationFrame: !
|
|
20359
|
+
useRequestAnimationFrame: !q,
|
|
20360
20360
|
pdfBug: this._pdfBug,
|
|
20361
20361
|
pageColors: E
|
|
20362
20362
|
});
|
|
@@ -20895,7 +20895,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
20895
20895
|
o = new se(a.message, a.status);
|
|
20896
20896
|
break;
|
|
20897
20897
|
case "UnknownErrorException":
|
|
20898
|
-
o = new
|
|
20898
|
+
o = new _(a.message, a.details);
|
|
20899
20899
|
break;
|
|
20900
20900
|
default:
|
|
20901
20901
|
G("DocException - expected a valid Error.");
|
|
@@ -21442,14 +21442,14 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21442
21442
|
if (x === null)
|
|
21443
21443
|
continue;
|
|
21444
21444
|
const {
|
|
21445
|
-
name:
|
|
21445
|
+
name: q
|
|
21446
21446
|
} = x;
|
|
21447
|
-
if (
|
|
21447
|
+
if (q === "#text") {
|
|
21448
21448
|
const Y = document.createTextNode(x.value);
|
|
21449
21449
|
E.push(Y), N.append(Y);
|
|
21450
21450
|
continue;
|
|
21451
21451
|
}
|
|
21452
|
-
const j = x?.attributes?.xmlns ? document.createElementNS(x.attributes.xmlns,
|
|
21452
|
+
const j = x?.attributes?.xmlns ? document.createElementNS(x.attributes.xmlns, q) : document.createElement(q);
|
|
21453
21453
|
if (N.append(j), x.attributes && this.setAttributes({
|
|
21454
21454
|
html: j,
|
|
21455
21455
|
element: x,
|
|
@@ -21460,7 +21460,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21460
21460
|
B.push([x, -1, j]);
|
|
21461
21461
|
else if (x.value) {
|
|
21462
21462
|
const Y = document.createTextNode(x.value);
|
|
21463
|
-
d && xs.shouldBuildText(
|
|
21463
|
+
d && xs.shouldBuildText(q) && E.push(Y), j.append(Y);
|
|
21464
21464
|
}
|
|
21465
21465
|
}
|
|
21466
21466
|
for (const y of C.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))
|
|
@@ -21611,9 +21611,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21611
21611
|
} = l;
|
|
21612
21612
|
if (h.zIndex = this.parent.zIndex++, s.popupRef && l.setAttribute("aria-haspopup", "dialog"), s.alternativeText && (l.title = s.alternativeText), s.noRotate && l.classList.add("norotate"), !s.rect || this instanceof Ua) {
|
|
21613
21613
|
const {
|
|
21614
|
-
rotation:
|
|
21614
|
+
rotation: q
|
|
21615
21615
|
} = s;
|
|
21616
|
-
return !s.hasOwnCanvas &&
|
|
21616
|
+
return !s.hasOwnCanvas && q !== 0 && this.setRotation(q, l), l;
|
|
21617
21617
|
}
|
|
21618
21618
|
const {
|
|
21619
21619
|
width: d,
|
|
@@ -21621,9 +21621,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21621
21621
|
} = en(s.rect);
|
|
21622
21622
|
if (!e && s.borderStyle.width > 0) {
|
|
21623
21623
|
h.borderWidth = `${s.borderStyle.width}px`;
|
|
21624
|
-
const
|
|
21625
|
-
if (
|
|
21626
|
-
const ie = `calc(${
|
|
21624
|
+
const q = s.borderStyle.horizontalCornerRadius, j = s.borderStyle.verticalCornerRadius;
|
|
21625
|
+
if (q > 0 || j > 0) {
|
|
21626
|
+
const ie = `calc(${q}px * var(--scale-factor)) / calc(${j}px * var(--scale-factor))`;
|
|
21627
21627
|
h.borderRadius = ie;
|
|
21628
21628
|
} else if (this instanceof Po) {
|
|
21629
21629
|
const ie = `calc(${d}px * var(--scale-factor)) / calc(${C}px * var(--scale-factor))`;
|
|
@@ -21781,13 +21781,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21781
21781
|
const [s, a, o, l] = this.data.rect;
|
|
21782
21782
|
if (e.length === 1) {
|
|
21783
21783
|
const [, {
|
|
21784
|
-
x:
|
|
21784
|
+
x: q,
|
|
21785
21785
|
y: j
|
|
21786
21786
|
}, {
|
|
21787
21787
|
x: Y,
|
|
21788
21788
|
y: ie
|
|
21789
21789
|
}] = e[0];
|
|
21790
|
-
if (o ===
|
|
21790
|
+
if (o === q && l === j && s === Y && a === ie)
|
|
21791
21791
|
return;
|
|
21792
21792
|
}
|
|
21793
21793
|
const {
|
|
@@ -21796,10 +21796,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21796
21796
|
let d;
|
|
21797
21797
|
if (this.#t) {
|
|
21798
21798
|
const {
|
|
21799
|
-
borderColor:
|
|
21799
|
+
borderColor: q,
|
|
21800
21800
|
borderWidth: j
|
|
21801
21801
|
} = h;
|
|
21802
|
-
h.borderWidth = 0, d = ["url('data:image/svg+xml;utf8,", '<svg xmlns="http://www.w3.org/2000/svg"', ' preserveAspectRatio="none" viewBox="0 0 1 1">', `<g fill="transparent" stroke="${
|
|
21802
|
+
h.borderWidth = 0, d = ["url('data:image/svg+xml;utf8,", '<svg xmlns="http://www.w3.org/2000/svg"', ' preserveAspectRatio="none" viewBox="0 0 1 1">', `<g fill="transparent" stroke="${q}" stroke-width="${j}">`], this.container.classList.add("hasBorder");
|
|
21803
21803
|
}
|
|
21804
21804
|
const C = o - s, E = l - a, {
|
|
21805
21805
|
svgFactory: B
|
|
@@ -21810,13 +21810,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
21810
21810
|
const N = B.createElement("clipPath"), x = `clippath_${this.data.id}`;
|
|
21811
21811
|
N.setAttribute("id", x), N.setAttribute("clipPathUnits", "objectBoundingBox"), v.append(N);
|
|
21812
21812
|
for (const [, {
|
|
21813
|
-
x:
|
|
21813
|
+
x: q,
|
|
21814
21814
|
y: j
|
|
21815
21815
|
}, {
|
|
21816
21816
|
x: Y,
|
|
21817
21817
|
y: ie
|
|
21818
21818
|
}] of e) {
|
|
21819
|
-
const oe = B.createElement("rect"), Ae = (Y - s) / C, Ce = (l - j) / E, Ie = (
|
|
21819
|
+
const oe = B.createElement("rect"), Ae = (Y - s) / C, Ce = (l - j) / E, Ie = (q - Y) / C, we = (j - ie) / E;
|
|
21820
21820
|
oe.setAttribute("x", Ae), oe.setAttribute("y", Ce), oe.setAttribute("width", Ie), oe.setAttribute("height", we), N.append(oe), d?.push(`<rect vector-effect="non-scaling-stroke" x="${Ae}" y="${Ce}" width="${Ie}" height="${we}"/>`);
|
|
21821
21821
|
}
|
|
21822
21822
|
this.#t && (d.push("</g></svg>')"), h.backgroundImage = d.join("")), this.container.append(y), this.container.style.clipPath = `url(#${x})`;
|
|
@@ -22216,15 +22216,15 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22216
22216
|
const {
|
|
22217
22217
|
charLimit: x
|
|
22218
22218
|
} = N.detail, {
|
|
22219
|
-
target:
|
|
22219
|
+
target: q
|
|
22220
22220
|
} = N;
|
|
22221
22221
|
if (x === 0) {
|
|
22222
|
-
|
|
22222
|
+
q.removeAttribute("maxLength");
|
|
22223
22223
|
return;
|
|
22224
22224
|
}
|
|
22225
|
-
|
|
22225
|
+
q.setAttribute("maxLength", x);
|
|
22226
22226
|
let j = C.userValue;
|
|
22227
|
-
!j || j.length <= x || (j = j.slice(0, x),
|
|
22227
|
+
!j || j.length <= x || (j = j.slice(0, x), q.value = C.userValue = j, e.setValue(s, {
|
|
22228
22228
|
value: j
|
|
22229
22229
|
}), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
|
|
22230
22230
|
source: this,
|
|
@@ -22234,8 +22234,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22234
22234
|
value: j,
|
|
22235
22235
|
willCommit: !0,
|
|
22236
22236
|
commitKey: 1,
|
|
22237
|
-
selStart:
|
|
22238
|
-
selEnd:
|
|
22237
|
+
selStart: q.selectionStart,
|
|
22238
|
+
selEnd: q.selectionEnd
|
|
22239
22239
|
}
|
|
22240
22240
|
}));
|
|
22241
22241
|
}
|
|
@@ -22289,26 +22289,26 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22289
22289
|
target: N
|
|
22290
22290
|
} = y, {
|
|
22291
22291
|
value: x,
|
|
22292
|
-
selectionStart:
|
|
22292
|
+
selectionStart: q,
|
|
22293
22293
|
selectionEnd: j
|
|
22294
22294
|
} = N;
|
|
22295
|
-
let Y =
|
|
22295
|
+
let Y = q, ie = j;
|
|
22296
22296
|
switch (y.inputType) {
|
|
22297
22297
|
case "deleteWordBackward": {
|
|
22298
|
-
const oe = x.substring(0,
|
|
22298
|
+
const oe = x.substring(0, q).match(/\w*[^\w]*$/);
|
|
22299
22299
|
oe && (Y -= oe[0].length);
|
|
22300
22300
|
break;
|
|
22301
22301
|
}
|
|
22302
22302
|
case "deleteWordForward": {
|
|
22303
|
-
const oe = x.substring(
|
|
22303
|
+
const oe = x.substring(q).match(/^[^\w]*\w*/);
|
|
22304
22304
|
oe && (ie += oe[0].length);
|
|
22305
22305
|
break;
|
|
22306
22306
|
}
|
|
22307
22307
|
case "deleteContentBackward":
|
|
22308
|
-
|
|
22308
|
+
q === j && (Y -= 1);
|
|
22309
22309
|
break;
|
|
22310
22310
|
case "deleteContentForward":
|
|
22311
|
-
|
|
22311
|
+
q === j && (ie += 1);
|
|
22312
22312
|
break;
|
|
22313
22313
|
}
|
|
22314
22314
|
y.preventDefault(), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
|
|
@@ -22504,8 +22504,8 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22504
22504
|
value(v) {
|
|
22505
22505
|
h?.();
|
|
22506
22506
|
const N = v.detail.value, x = new Set(Array.isArray(N) ? N : [N]);
|
|
22507
|
-
for (const
|
|
22508
|
-
|
|
22507
|
+
for (const q of o.options)
|
|
22508
|
+
q.selected = x.has(q.value);
|
|
22509
22509
|
e.setValue(s, {
|
|
22510
22510
|
value: d(!0)
|
|
22511
22511
|
}), C = d(!1);
|
|
@@ -22532,9 +22532,9 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22532
22532
|
const {
|
|
22533
22533
|
index: N,
|
|
22534
22534
|
displayValue: x,
|
|
22535
|
-
exportValue:
|
|
22535
|
+
exportValue: q
|
|
22536
22536
|
} = v.detail.insert, j = o.children[N], Y = document.createElement("option");
|
|
22537
|
-
Y.textContent = x, Y.value =
|
|
22537
|
+
Y.textContent = x, Y.value = q, j ? j.before(Y) : o.append(Y), e.setValue(s, {
|
|
22538
22538
|
value: d(!0),
|
|
22539
22539
|
items: E(v)
|
|
22540
22540
|
}), C = d(!1);
|
|
@@ -22547,10 +22547,10 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
22547
22547
|
o.remove(0);
|
|
22548
22548
|
for (const x of N) {
|
|
22549
22549
|
const {
|
|
22550
|
-
displayValue:
|
|
22550
|
+
displayValue: q,
|
|
22551
22551
|
exportValue: j
|
|
22552
22552
|
} = x, Y = document.createElement("option");
|
|
22553
|
-
Y.textContent =
|
|
22553
|
+
Y.textContent = q, Y.value = j, o.append(Y);
|
|
22554
22554
|
}
|
|
22555
22555
|
o.options.length > 0 && (o.options[0].selected = !0), e.setValue(s, {
|
|
22556
22556
|
value: d(!0),
|
|
@@ -23476,19 +23476,19 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23476
23476
|
const N = d.parentElement;
|
|
23477
23477
|
if (B.push(d.nodeValue.slice(C).replaceAll(Er, "")), N !== this.editorDiv) {
|
|
23478
23478
|
let x = E;
|
|
23479
|
-
for (const
|
|
23480
|
-
if (
|
|
23479
|
+
for (const q of this.editorDiv.childNodes) {
|
|
23480
|
+
if (q === N) {
|
|
23481
23481
|
x = B;
|
|
23482
23482
|
continue;
|
|
23483
23483
|
}
|
|
23484
|
-
x.push(Ft.#I(
|
|
23484
|
+
x.push(Ft.#I(q));
|
|
23485
23485
|
}
|
|
23486
23486
|
}
|
|
23487
23487
|
E.push(d.nodeValue.slice(0, C).replaceAll(Er, ""));
|
|
23488
23488
|
} else if (d === this.editorDiv) {
|
|
23489
23489
|
let N = E, x = 0;
|
|
23490
|
-
for (const
|
|
23491
|
-
x++ === C && (N = B), N.push(Ft.#I(
|
|
23490
|
+
for (const q of this.editorDiv.childNodes)
|
|
23491
|
+
x++ === C && (N = B), N.push(Ft.#I(q));
|
|
23492
23492
|
}
|
|
23493
23493
|
this.#a = `${E.join(`
|
|
23494
23494
|
`)}${o}${B.join(`
|
|
@@ -23634,7 +23634,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23634
23634
|
const Ae = Math.floor((j - s) / E) * E, Ce = Math.ceil((j + ie + s) / E) * E, Ie = Math.floor((Y - s) / E) * E, we = Math.ceil((Y + oe + s) / E) * E, Oe = [Ae, Ie, we, !0], He = [Ce, Ie, we, !1];
|
|
23635
23635
|
this.#t.push(Oe, He), l = Math.min(l, Ae), h = Math.max(h, Ce), d = Math.min(d, Ie), C = Math.max(C, we);
|
|
23636
23636
|
}
|
|
23637
|
-
const B = h - l + 2 * a, y = C - d + 2 * a, v = l - a, N = d - a, x = this.#t.at(o ? -1 : -2),
|
|
23637
|
+
const B = h - l + 2 * a, y = C - d + 2 * a, v = l - a, N = d - a, x = this.#t.at(o ? -1 : -2), q = [x[0], x[2]];
|
|
23638
23638
|
for (const j of this.#t) {
|
|
23639
23639
|
const [Y, ie, oe] = j;
|
|
23640
23640
|
j[0] = (Y - v) / B, j[1] = (ie - N) / y, j[2] = (oe - N) / y;
|
|
@@ -23644,7 +23644,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23644
23644
|
y: N,
|
|
23645
23645
|
width: B,
|
|
23646
23646
|
height: y,
|
|
23647
|
-
lastPoint:
|
|
23647
|
+
lastPoint: q
|
|
23648
23648
|
};
|
|
23649
23649
|
}
|
|
23650
23650
|
getOutlines() {
|
|
@@ -23836,7 +23836,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23836
23836
|
const y = e - E, v = s - B, N = Math.hypot(y, v);
|
|
23837
23837
|
if (N < this.#o)
|
|
23838
23838
|
return !1;
|
|
23839
|
-
const x = N - this.#c,
|
|
23839
|
+
const x = N - this.#c, q = x / N, j = q * y, Y = q * v;
|
|
23840
23840
|
let ie = d, oe = C;
|
|
23841
23841
|
d = E, C = B, E += j, B += Y, this.#A?.push(e, s);
|
|
23842
23842
|
const Ae = -Y / x, Ce = j / x, Ie = Ae * this.#g, we = Ce * this.#g;
|
|
@@ -23867,25 +23867,25 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23867
23867
|
const Y = new Float64Array(36);
|
|
23868
23868
|
return Y.set([NaN, NaN, NaN, NaN, (a[2] - h) / C, (a[3] - d) / E, NaN, NaN, NaN, NaN, (a[4] - h) / C, (a[5] - d) / E, NaN, NaN, NaN, NaN, y, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (a[16] - h) / C, (a[17] - d) / E, NaN, NaN, NaN, NaN, (a[14] - h) / C, (a[15] - d) / E], 0), new Pa(Y, B, this.#e, this.#h, this.#i, this.#s);
|
|
23869
23869
|
}
|
|
23870
|
-
const
|
|
23870
|
+
const q = new Float64Array(this.#r.length + 24 + this.#t.length);
|
|
23871
23871
|
let j = e.length;
|
|
23872
23872
|
for (let Y = 0; Y < j; Y += 2) {
|
|
23873
23873
|
if (isNaN(e[Y])) {
|
|
23874
|
-
|
|
23874
|
+
q[Y] = q[Y + 1] = NaN;
|
|
23875
23875
|
continue;
|
|
23876
23876
|
}
|
|
23877
|
-
|
|
23877
|
+
q[Y] = e[Y], q[Y + 1] = e[Y + 1];
|
|
23878
23878
|
}
|
|
23879
|
-
|
|
23879
|
+
q.set([NaN, NaN, NaN, NaN, (o[0] - h) / C, (o[1] - d) / E, NaN, NaN, NaN, NaN, y, v, NaN, NaN, NaN, NaN, N, x, NaN, NaN, NaN, NaN, (l[0] - h) / C, (l[1] - d) / E], j), j += 24;
|
|
23880
23880
|
for (let Y = s.length - 6; Y >= 6; Y -= 6)
|
|
23881
23881
|
for (let ie = 0; ie < 6; ie += 2) {
|
|
23882
23882
|
if (isNaN(s[Y + ie])) {
|
|
23883
|
-
|
|
23883
|
+
q[j] = q[j + 1] = NaN, j += 2;
|
|
23884
23884
|
continue;
|
|
23885
23885
|
}
|
|
23886
|
-
|
|
23886
|
+
q[j] = s[Y + ie], q[j + 1] = s[Y + ie + 1], j += 2;
|
|
23887
23887
|
}
|
|
23888
|
-
return
|
|
23888
|
+
return q.set([NaN, NaN, NaN, NaN, s[4], s[5]], j), new Pa(q, B, this.#e, this.#h, this.#i, this.#s);
|
|
23889
23889
|
}
|
|
23890
23890
|
}
|
|
23891
23891
|
class Pa extends _o {
|
|
@@ -23967,12 +23967,12 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23967
23967
|
}
|
|
23968
23968
|
a = s[j + 4], o = s[j + 5];
|
|
23969
23969
|
}
|
|
23970
|
-
const v = l - this.#i, N = h - this.#i, x = d - l + 2 * this.#i,
|
|
23970
|
+
const v = l - this.#i, N = h - this.#i, x = d - l + 2 * this.#i, q = C - h + 2 * this.#i;
|
|
23971
23971
|
this.#t = {
|
|
23972
23972
|
x: v,
|
|
23973
23973
|
y: N,
|
|
23974
23974
|
width: x,
|
|
23975
|
-
height:
|
|
23975
|
+
height: q,
|
|
23976
23976
|
lastPoint: [E, B]
|
|
23977
23977
|
};
|
|
23978
23978
|
}
|
|
@@ -23985,16 +23985,16 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
23985
23985
|
y: o,
|
|
23986
23986
|
width: l,
|
|
23987
23987
|
height: h
|
|
23988
|
-
} = this.#t, [d, C, E, B] = this.#e, y = l * E, v = h * B, N = a * E + d, x = o * B + C,
|
|
23988
|
+
} = this.#t, [d, C, E, B] = this.#e, y = l * E, v = h * B, N = a * E + d, x = o * B + C, q = new Tn({
|
|
23989
23989
|
x: this.#r[0] * y + N,
|
|
23990
23990
|
y: this.#r[1] * v + x
|
|
23991
23991
|
}, this.#e, this.#n, e, this.#s, s ?? this.#i);
|
|
23992
23992
|
for (let j = 2; j < this.#r.length; j += 2)
|
|
23993
|
-
|
|
23993
|
+
q.add({
|
|
23994
23994
|
x: this.#r[j] * y + N,
|
|
23995
23995
|
y: this.#r[j + 1] * v + x
|
|
23996
23996
|
});
|
|
23997
|
-
return
|
|
23997
|
+
return q.getOutlines();
|
|
23998
23998
|
}
|
|
23999
23999
|
}
|
|
24000
24000
|
class Ui {
|
|
@@ -24801,7 +24801,7 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
24801
24801
|
const s = [];
|
|
24802
24802
|
let a, [o, l] = e[0];
|
|
24803
24803
|
for (a = 1; a < e.length - 2; a++) {
|
|
24804
|
-
const [v, N] = e[a], [x,
|
|
24804
|
+
const [v, N] = e[a], [x, q] = e[a + 1], j = (v + x) / 2, Y = (N + q) / 2, ie = [o + 2 * (v - o) / 3, l + 2 * (N - l) / 3], oe = [j + 2 * (v - j) / 3, Y + 2 * (N - Y) / 3];
|
|
24805
24805
|
s.push([[o, l], ie, oe, [j, Y]]), [o, l] = [j, Y];
|
|
24806
24806
|
}
|
|
24807
24807
|
const [h, d] = e[a], [C, E] = e[a + 1], B = [o + 2 * (h - o) / 3, l + 2 * (d - l) / 3], y = [C + 2 * (h - C) / 3, E + 2 * (d - E) / 3];
|
|
@@ -24964,13 +24964,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
24964
24964
|
for (const E of this.paths) {
|
|
24965
24965
|
const B = [], y = [];
|
|
24966
24966
|
for (let v = 0, N = E.length; v < N; v++) {
|
|
24967
|
-
const [x,
|
|
24967
|
+
const [x, q, j, Y] = E[v];
|
|
24968
24968
|
if (x[0] === Y[0] && x[1] === Y[1] && N === 1) {
|
|
24969
24969
|
const et = e * x[0] + d, Ye = e * x[1] + C;
|
|
24970
24970
|
B.push(et, Ye), y.push(et, Ye);
|
|
24971
24971
|
break;
|
|
24972
24972
|
}
|
|
24973
|
-
const ie = e * x[0] + d, oe = e * x[1] + C, Ae = e *
|
|
24973
|
+
const ie = e * x[0] + d, oe = e * x[1] + C, Ae = e * q[0] + d, Ce = e * q[1] + C, Ie = e * j[0] + d, we = e * j[1] + C, Oe = e * Y[0] + d, He = e * Y[1] + C;
|
|
24974
24974
|
v === 0 && (B.push(ie, oe), y.push(ie, oe)), B.push(Ae, Ce, Ie, we, Oe, He), y.push(Ae, Ce), v === N - 1 && y.push(Oe, He);
|
|
24975
24975
|
}
|
|
24976
24976
|
l.push({
|
|
@@ -25021,14 +25021,14 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
25021
25021
|
rotation: N
|
|
25022
25022
|
} = e;
|
|
25023
25023
|
for (let {
|
|
25024
|
-
bezier:
|
|
25024
|
+
bezier: q
|
|
25025
25025
|
} of y) {
|
|
25026
|
-
|
|
25026
|
+
q = Gt.#K(q, v, N);
|
|
25027
25027
|
const j = [];
|
|
25028
25028
|
o.paths.push(j);
|
|
25029
|
-
let Y = E * (
|
|
25030
|
-
for (let Ae = 2, Ce =
|
|
25031
|
-
const Ie = E * (
|
|
25029
|
+
let Y = E * (q[0] - B), ie = E * (q[1] - B);
|
|
25030
|
+
for (let Ae = 2, Ce = q.length; Ae < Ce; Ae += 6) {
|
|
25031
|
+
const Ie = E * (q[Ae] - B), we = E * (q[Ae + 1] - B), Oe = E * (q[Ae + 2] - B), He = E * (q[Ae + 3] - B), et = E * (q[Ae + 4] - B), Ye = E * (q[Ae + 5] - B);
|
|
25032
25032
|
j.push([[Y, ie], [Ie, we], [Oe, He], [et, Ye]]), Y = et, ie = Ye;
|
|
25033
25033
|
}
|
|
25034
25034
|
const oe = this.#L(j);
|
|
@@ -26114,13 +26114,13 @@ function km({
|
|
|
26114
26114
|
break;
|
|
26115
26115
|
if (L <= c || U >= g || R <= u || H >= I)
|
|
26116
26116
|
continue;
|
|
26117
|
-
const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, R - I), V = (G - P) / G, $ = (D - K) / D,
|
|
26117
|
+
const P = Math.max(0, c - U) + Math.max(0, L - g), K = Math.max(0, u - H) + Math.max(0, R - I), V = (G - P) / G, $ = (D - K) / D, _ = V * $ * 100 | 0;
|
|
26118
26118
|
m.push({
|
|
26119
26119
|
id: J.id,
|
|
26120
26120
|
x: H,
|
|
26121
26121
|
y: U,
|
|
26122
26122
|
view: J,
|
|
26123
|
-
percent:
|
|
26123
|
+
percent: _,
|
|
26124
26124
|
widthPercent: $ * 100 | 0
|
|
26125
26125
|
}), b.add(J.id);
|
|
26126
26126
|
}
|
|
@@ -31517,8 +31517,8 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31517
31517
|
async function J(P) {
|
|
31518
31518
|
const K = new FileReader();
|
|
31519
31519
|
K.onload = async function(V) {
|
|
31520
|
-
const { loadingTask: $, document:
|
|
31521
|
-
b =
|
|
31520
|
+
const { loadingTask: $, document: _ } = await O(V.target.result);
|
|
31521
|
+
b = _, T(_);
|
|
31522
31522
|
}, K.readAsArrayBuffer(P);
|
|
31523
31523
|
}
|
|
31524
31524
|
const T = (P) => {
|
|
@@ -31527,17 +31527,17 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31527
31527
|
}, 150);
|
|
31528
31528
|
};
|
|
31529
31529
|
async function H(P, K, V) {
|
|
31530
|
-
const $ = L9(K, V + 1).map((
|
|
31530
|
+
const $ = L9(K, V + 1).map((_) => P.getPage(_));
|
|
31531
31531
|
return await Promise.all($);
|
|
31532
31532
|
}
|
|
31533
31533
|
async function U(P) {
|
|
31534
31534
|
try {
|
|
31535
31535
|
const K = P.numPages;
|
|
31536
31536
|
u.value = K;
|
|
31537
|
-
const $ = await H(P, 1, K),
|
|
31537
|
+
const $ = await H(P, 1, K), _ = [];
|
|
31538
31538
|
for (const [ee, te] of $.entries()) {
|
|
31539
31539
|
const se = document.createElement("div");
|
|
31540
|
-
se.className = "pdf-page", se.dataset.pageNumber = ee + 1, se.id = `${k}-page-${ee + 1}`,
|
|
31540
|
+
se.className = "pdf-page", se.dataset.pageNumber = ee + 1, se.id = `${k}-page-${ee + 1}`, _.push(se);
|
|
31541
31541
|
const { width: ne, height: Be } = F(te), xe = 1, Me = new R9(), Xe = new N9({
|
|
31542
31542
|
container: se,
|
|
31543
31543
|
id: ee + 1,
|
|
@@ -31550,7 +31550,7 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31550
31550
|
const at = se.getBoundingClientRect();
|
|
31551
31551
|
at.originalWidth = ne, at.originalHeight = Be, Xe.setPdfPage(te), await Xe.draw(), r("page-loaded", k, ee, at);
|
|
31552
31552
|
}
|
|
31553
|
-
I.value.append(...
|
|
31553
|
+
I.value.append(..._), f.value = !0, r("ready", k, I);
|
|
31554
31554
|
} catch (K) {
|
|
31555
31555
|
console.error("Error loading PDF:", K);
|
|
31556
31556
|
}
|
|
@@ -31562,12 +31562,12 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31562
31562
|
const $ = K.getRangeAt(0).getClientRects();
|
|
31563
31563
|
if ($.length === 0)
|
|
31564
31564
|
return null;
|
|
31565
|
-
const
|
|
31565
|
+
const _ = $[0];
|
|
31566
31566
|
let ee = {
|
|
31567
|
-
top:
|
|
31568
|
-
left:
|
|
31569
|
-
bottom:
|
|
31570
|
-
right:
|
|
31567
|
+
top: _.top,
|
|
31568
|
+
left: _.left,
|
|
31569
|
+
bottom: _.bottom,
|
|
31570
|
+
right: _.right
|
|
31571
31571
|
};
|
|
31572
31572
|
for (let se = 1; se < $.length; se++) {
|
|
31573
31573
|
const ne = $[se];
|
|
@@ -31994,17 +31994,17 @@ const M9 = '/**\n * @licstart The following is the entire license notice for the
|
|
|
31994
31994
|
k.itemfieldtype === "CHECKBOXINPUT" && (J = k.annotationid);
|
|
31995
31995
|
const { x1: T, y1: H, x2: U, y2: D } = k, G = { x1: T, y1: H, x2: U, y2: D }, R = document.getElementById(`${Q}-page-${F + 1}`);
|
|
31996
31996
|
if (!R) return;
|
|
31997
|
-
const L = R.getBoundingClientRect(), P = f.pageContainers.find((se) => se.page === F), K = L.height / P.containerBounds.originalHeight, V = L.bottom - S.top, $ = L.left - S.left,
|
|
31997
|
+
const L = R.getBoundingClientRect(), P = f.pageContainers.find((se) => se.page === F), K = L.height / P.containerBounds.originalHeight, V = L.bottom - S.top, $ = L.left - S.left, _ = u(G, K, V, $), ee = {
|
|
31998
31998
|
fontSize: k.original_font_size + "px",
|
|
31999
31999
|
originalFontSize: k.original_font_size,
|
|
32000
|
-
coordinates:
|
|
32000
|
+
coordinates: _
|
|
32001
32001
|
}, te = {
|
|
32002
32002
|
documentId: Q,
|
|
32003
32003
|
fieldId: M,
|
|
32004
32004
|
page: F,
|
|
32005
32005
|
annotationId: J,
|
|
32006
32006
|
originalAnnotationId: k.originalannotationid,
|
|
32007
|
-
coordinates:
|
|
32007
|
+
coordinates: _,
|
|
32008
32008
|
style: ee,
|
|
32009
32009
|
nostyle: O ?? !1
|
|
32010
32010
|
};
|
|
@@ -32283,9 +32283,9 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32283
32283
|
hasSyncedCollaborationComments: R,
|
|
32284
32284
|
editorCommentPositions: L,
|
|
32285
32285
|
hasInitializedLocations: P
|
|
32286
|
-
} = wi(r), { showAddComment: K, handleEditorLocationsUpdate: V, handleTrackedChangeUpdate: $ } = r, { proxy:
|
|
32287
|
-
r.proxy =
|
|
32288
|
-
const ee = W(null), te = W(null), se = Zt({ top: null, right: "-25px", zIndex: 101 }), ne = ae(() =>
|
|
32286
|
+
} = wi(r), { showAddComment: K, handleEditorLocationsUpdate: V, handleTrackedChangeUpdate: $ } = r, { proxy: _ } = ji();
|
|
32287
|
+
r.proxy = _;
|
|
32288
|
+
const ee = W(null), te = W(null), se = Zt({ top: null, right: "-25px", zIndex: 101 }), ne = ae(() => _.$superdoc.activeEditor), { selectedText: Be } = Qy(ne), {
|
|
32289
32289
|
showAiLayer: xe,
|
|
32290
32290
|
showAiWriter: Me,
|
|
32291
32291
|
aiWriterPosition: Xe,
|
|
@@ -32295,43 +32295,43 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32295
32295
|
handleAiWriterClose: z,
|
|
32296
32296
|
handleAiToolClick: ue
|
|
32297
32297
|
} = my({
|
|
32298
|
-
emitAiHighlight: (Z) =>
|
|
32298
|
+
emitAiHighlight: (Z) => _.$superdoc.emit("ai-highlight", Z),
|
|
32299
32299
|
activeEditorRef: ne
|
|
32300
32300
|
}), X = W(null), Qe = (Z, me) => {
|
|
32301
32301
|
const Ke = S(Z);
|
|
32302
|
-
Ke.isReady = !0, Ke.container = me, g.value && (
|
|
32302
|
+
Ke.isReady = !0, Ke.container = me, g.value && (_.$superdoc.config.collaboration || (c.value = !0)), U.value = !0, P.value = !0, _.$superdoc.broadcastPdfDocumentReady();
|
|
32303
32303
|
}, Ee = (Z) => {
|
|
32304
32304
|
const me = {
|
|
32305
|
-
comments: () => K(
|
|
32305
|
+
comments: () => K(_.$superdoc),
|
|
32306
32306
|
ai: () => ue()
|
|
32307
32307
|
};
|
|
32308
32308
|
Z in me && me[Z](I.value, u.value), I.value = null, se.top = null;
|
|
32309
32309
|
}, Se = (Z) => {
|
|
32310
32310
|
F.value;
|
|
32311
32311
|
}, _e = () => se.top = null, ut = (Z) => {
|
|
32312
|
-
Z.target.classList.contains("n-dropdown-option-body__label") || r.removePendingComment(
|
|
32312
|
+
Z.target.classList.contains("n-dropdown-option-body__label") || r.removePendingComment(_.$superdoc);
|
|
32313
32313
|
}, he = ({ editor: Z, comments: me, replacedFile: Ke }) => {
|
|
32314
32314
|
(Z.options.shouldLoadComments || Ke) && qt(() => {
|
|
32315
32315
|
r.processLoadedDocxComments({
|
|
32316
|
-
superdoc:
|
|
32316
|
+
superdoc: _.$superdoc,
|
|
32317
32317
|
editor: Z,
|
|
32318
32318
|
comments: me,
|
|
32319
32319
|
documentId: Z.options.documentId
|
|
32320
32320
|
});
|
|
32321
32321
|
});
|
|
32322
32322
|
}, ce = ({ editor: Z }) => {
|
|
32323
|
-
|
|
32323
|
+
_.$superdoc?.broadcastEditorBeforeCreate(Z);
|
|
32324
32324
|
}, De = ({ editor: Z }) => {
|
|
32325
32325
|
const { documentId: me } = Z.options;
|
|
32326
|
-
S(me).setEditor(Z),
|
|
32326
|
+
S(me).setEditor(Z), _.$superdoc.setActiveEditor(Z), _.$superdoc.broadcastEditorCreate(Z), _.$superdoc.log("[SuperDoc] Editor created", _.$superdoc.activeEditor), _.$superdoc.log("[SuperDoc] Page styles (pixels)", Z.getPageStyles()), Et(!0);
|
|
32327
32327
|
}, Te = () => {
|
|
32328
|
-
|
|
32328
|
+
_.$superdoc.broadcastEditorDestroy();
|
|
32329
32329
|
}, Je = ({ editor: Z }) => {
|
|
32330
|
-
|
|
32330
|
+
_.$superdoc.setActiveEditor(Z);
|
|
32331
32331
|
}, qe = ({ editor: Z, isLocked: me, lockedBy: Ke }) => {
|
|
32332
|
-
|
|
32332
|
+
_.$superdoc.lockSuperdoc(me, Ke);
|
|
32333
32333
|
}, Le = ({ editor: Z }) => {
|
|
32334
|
-
|
|
32334
|
+
_.$superdoc.emit("editor-update", { editor: Z });
|
|
32335
32335
|
}, ot = ({ editor: Z, transaction: me }) => {
|
|
32336
32336
|
if (J.value) {
|
|
32337
32337
|
J.value = !1;
|
|
@@ -32352,28 +32352,28 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32352
32352
|
});
|
|
32353
32353
|
le(Ne);
|
|
32354
32354
|
}, it = ({ editor: Z }) => {
|
|
32355
|
-
|
|
32355
|
+
_.$superdoc.emit("collaboration-ready", { editor: Z }), qt(() => {
|
|
32356
32356
|
c.value = !0;
|
|
32357
32357
|
const Ke = new URLSearchParams(window.location.search).get("commentId");
|
|
32358
32358
|
Ke && Zi(Ke);
|
|
32359
32359
|
});
|
|
32360
32360
|
}, $e = ({ error: Z, editor: me }) => {
|
|
32361
|
-
|
|
32361
|
+
_.$superdoc.emit("content-error", { error: Z, editor: me });
|
|
32362
32362
|
}, Ut = ({ error: Z, editor: me }) => {
|
|
32363
|
-
|
|
32363
|
+
_.$superdoc.emit("exception", { error: Z, editor: me });
|
|
32364
32364
|
}, $t = (Z) => ({
|
|
32365
|
-
pagination:
|
|
32365
|
+
pagination: _.$superdoc.config.pagination,
|
|
32366
32366
|
documentId: Z.id,
|
|
32367
|
-
user:
|
|
32368
|
-
users:
|
|
32369
|
-
colors:
|
|
32370
|
-
role:
|
|
32367
|
+
user: _.$superdoc.user,
|
|
32368
|
+
users: _.$superdoc.users,
|
|
32369
|
+
colors: _.$superdoc.colors,
|
|
32370
|
+
role: _.$superdoc.config.role,
|
|
32371
32371
|
html: Z.html,
|
|
32372
|
-
documentMode:
|
|
32372
|
+
documentMode: _.$superdoc.config.documentMode,
|
|
32373
32373
|
rulers: Z.rulers,
|
|
32374
|
-
isInternal:
|
|
32375
|
-
annotations:
|
|
32376
|
-
isCommentsEnabled:
|
|
32374
|
+
isInternal: _.$superdoc.config.isInternal,
|
|
32375
|
+
annotations: _.$superdoc.config.annotations,
|
|
32376
|
+
isCommentsEnabled: _.$superdoc.config.modules?.comments,
|
|
32377
32377
|
onBeforeCreate: ce,
|
|
32378
32378
|
onCreate: De,
|
|
32379
32379
|
onDestroy: Te,
|
|
@@ -32390,32 +32390,33 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32390
32390
|
ydoc: Z.ydoc,
|
|
32391
32391
|
collaborationProvider: Z.provider || null,
|
|
32392
32392
|
isNewFile: Z.isNewFile || !1,
|
|
32393
|
-
handleImageUpload:
|
|
32394
|
-
telemetry:
|
|
32395
|
-
externalExtensions:
|
|
32393
|
+
handleImageUpload: _.$superdoc.config.handleImageUpload,
|
|
32394
|
+
telemetry: _.$superdoc.telemetry,
|
|
32395
|
+
externalExtensions: _.$superdoc.config.editorExtensions || [],
|
|
32396
|
+
htmlOverride: _.$superdoc.config.htmlOverride
|
|
32396
32397
|
}), Ni = ({ allCommentIds: Z, allCommentPositions: me }) => {
|
|
32397
|
-
|
|
32398
|
+
_.$superdoc.config.modules?.comments && V(me, Z);
|
|
32398
32399
|
}, Ci = (Z = {}) => {
|
|
32399
32400
|
const { activeCommentId: me, type: Ke } = Z;
|
|
32400
|
-
Ke === "trackedChange" && $({ superdoc:
|
|
32401
|
+
Ke === "trackedChange" && $({ superdoc: _.$superdoc, params: Z }), qt(() => {
|
|
32401
32402
|
F.value || r.setActiveComment(me);
|
|
32402
|
-
}), typeof
|
|
32403
|
+
}), typeof _.$superdoc.config.onCommentsUpdate == "function" && _.$superdoc.config.onCommentsUpdate(Z);
|
|
32403
32404
|
}, Lt = ae(() => "comments" in m), Ai = ae(() => F.value || G.value?.length > 0 && c.value && ee.value && Lt.value && !H.value), zi = ae(() => Lt.value ? se.top && !w.value?.readOnly : !1);
|
|
32404
32405
|
ae(() => {
|
|
32405
32406
|
if (!Lt.value) return !1;
|
|
32406
32407
|
!w?.readOnly && u.value;
|
|
32407
32408
|
}), wt(Ai, (Z) => {
|
|
32408
|
-
|
|
32409
|
+
_.$superdoc.broadcastSidebarToggle(Z);
|
|
32409
32410
|
});
|
|
32410
32411
|
const Zi = (Z) => {
|
|
32411
|
-
if (!
|
|
32412
|
+
if (!_.$superdoc.config?.modules?.comments) return;
|
|
32412
32413
|
const me = document.querySelector(`[data-thread-id=${Z}]`);
|
|
32413
32414
|
me && (me.scrollIntoView({ behavior: "smooth", block: "start" }), r.setActiveComment(Z));
|
|
32414
32415
|
};
|
|
32415
32416
|
Ii(() => {
|
|
32416
|
-
Lt.value && !m.comments.readOnly && document.addEventListener("mousedown", Se),
|
|
32417
|
+
Lt.value && !m.comments.readOnly && document.addEventListener("mousedown", Se), _.$superdoc.on("ai-highlight", de);
|
|
32417
32418
|
}), Di(() => {
|
|
32418
|
-
document.removeEventListener("mousedown", Se),
|
|
32419
|
+
document.removeEventListener("mousedown", Se), _.$superdoc.off("ai-highlight", de);
|
|
32419
32420
|
});
|
|
32420
32421
|
const oi = W(null), ci = W(!1), gr = ae(() => {
|
|
32421
32422
|
if (!u.value || u.value.source === "super-editor")
|
|
@@ -32492,7 +32493,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32492
32493
|
documentId: A.value[0].id
|
|
32493
32494
|
});
|
|
32494
32495
|
le(me), oi.value.style.pointerEvents = "none";
|
|
32495
|
-
}, Wt = ae(() => !(
|
|
32496
|
+
}, Wt = ae(() => !(_.$superdoc.config.modules?.comments).readOnly), rt = (Z, me) => {
|
|
32496
32497
|
Z.documentMarginsLastChange = me.pageMargins;
|
|
32497
32498
|
}, Ht = (Z) => {
|
|
32498
32499
|
Lt.value && (pe(), ci.value = !0, nt(Z));
|
|
@@ -32526,7 +32527,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32526
32527
|
innerHTML: Fe(an).comment
|
|
32527
32528
|
}, null, 8, yy)
|
|
32528
32529
|
]),
|
|
32529
|
-
Fe(
|
|
32530
|
+
Fe(_).$superdoc.config.modules.ai ? (fe(), ye("div", {
|
|
32530
32531
|
key: 0,
|
|
32531
32532
|
class: "tools-item",
|
|
32532
32533
|
"data-id": "is-tool",
|
|
@@ -32574,7 +32575,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32574
32575
|
style: { "z-index": "4" },
|
|
32575
32576
|
ref_key: "aiLayer",
|
|
32576
32577
|
ref: at,
|
|
32577
|
-
editor: Fe(
|
|
32578
|
+
editor: Fe(_).$superdoc.activeEditor
|
|
32578
32579
|
}, null, 8, ["editor"])) : Ze("", !0),
|
|
32579
32580
|
(fe(!0), ye(jt, null, gn(Fe(A), (Ve) => (fe(), ye("div", {
|
|
32580
32581
|
class: "superdoc__sub-document sub-document",
|
|
@@ -32630,16 +32631,16 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32630
32631
|
bi(Fe(Sd), {
|
|
32631
32632
|
"selected-text": Fe(Be),
|
|
32632
32633
|
"handle-close": Fe(z),
|
|
32633
|
-
editor: Fe(
|
|
32634
|
-
"api-key": Fe(
|
|
32635
|
-
endpoint: Fe(
|
|
32634
|
+
editor: Fe(_).$superdoc.activeEditor,
|
|
32635
|
+
"api-key": Fe(_).$superdoc.toolbar?.config?.aiApiKey,
|
|
32636
|
+
endpoint: Fe(_).$superdoc.config?.modules?.ai?.endpoint,
|
|
32636
32637
|
onAiHighlight: Fe(de)
|
|
32637
32638
|
}, null, 8, ["selected-text", "handle-close", "editor", "api-key", "endpoint", "onAiHighlight"])
|
|
32638
32639
|
], 4)) : Ze("", !0)
|
|
32639
32640
|
], 2);
|
|
32640
32641
|
};
|
|
32641
32642
|
}
|
|
32642
|
-
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-
|
|
32643
|
+
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-52a65823"]]), Fy = () => {
|
|
32643
32644
|
const n = $l(vy), t = yI();
|
|
32644
32645
|
n.use(t), n.directive("click-outside", ng);
|
|
32645
32646
|
const i = Ri(), r = hn();
|
|
@@ -32717,7 +32718,7 @@ class hb extends eg {
|
|
|
32717
32718
|
this.config = {
|
|
32718
32719
|
...this.config,
|
|
32719
32720
|
...t
|
|
32720
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.12.
|
|
32721
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.12.5", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), 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.#a();
|
|
32721
32722
|
}
|
|
32722
32723
|
/**
|
|
32723
32724
|
* Get the number of editors that are required for this superdoc
|