@silurus/ooxml 0.81.0 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -8
- package/dist/assets/render-worker-Cy-QsDge.js +10 -0
- package/dist/assets/{render-worker-DtU8oQZ7.js → render-worker-Dw_wQRIh.js} +1 -1
- package/dist/assets/{render-worker-C2ACcLes.js → render-worker-aHayzR7v.js} +4 -4
- package/dist/{canvas-viewer-mechanics-CqxKRGCp.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
- package/dist/chart-ex.mjs +4 -4
- package/dist/comment-occurrence-C34fWs_F.js +6 -0
- package/dist/comment-ui-runtime-C1RV_3iu.js +112 -0
- package/dist/comment-ui-runtime-DTGN3Vyy.js +2 -0
- package/dist/comment-ui-runtime-DgCZpPR0.js +171 -0
- package/dist/comments-Cf9W7r3M.js +241 -0
- package/dist/{document-pull-client-Ux4a_ax8.js → document-pull-client-B1WOjA0z.js} +2206 -2193
- package/dist/{docx-SEyQ4gS-.js → docx-HoZXZUPA.js} +674 -249
- package/dist/docx.mjs +6 -5
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
- package/dist/highlight-rect-MaCt0om0.js +13 -0
- package/dist/index.mjs +3 -3
- package/dist/{line-distribute-BBGvvwLt.js → line-distribute-iXsUCIH-.js} +2 -2
- package/dist/{line-metrics-Baz31mML.js → line-metrics-B3syvDn2.js} +52 -52
- package/dist/math.mjs +2 -2
- package/dist/node.mjs +10 -10
- package/dist/{plot-area-frame-Dg1VIpUU.js → plot-area-frame-DHV02PJU.js} +591 -590
- package/dist/{pptx-5lQrMvMR.js → pptx-DEUP4Yq5.js} +537 -243
- package/dist/pptx.mjs +6 -6
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
- package/dist/read-only-comment-margin-DrUX-YrP.js +189 -0
- package/dist/region-map.mjs +2 -2
- package/dist/{render-DEHjijQD.js → render-BC8p7vZQ.js} +1 -1
- package/dist/{render-worker-host-B1nbV_k7.js → render-worker-host-BNnXCtAu.js} +1 -1
- package/dist/{render-worker-host-Bze5M6k5.js → render-worker-host-CmPBviYJ.js} +1 -1
- package/dist/{render-worker-host-Dg_74V64.js → render-worker-host-DhnkTyjj.js} +1 -1
- package/dist/{renderer-DuopJE1K.js → renderer-CYr9YTXM.js} +436 -435
- package/dist/{resource-measurement-DRLp4nFt.js → resource-measurement-CsW4_eYt.js} +2 -2
- package/dist/{session-CNVc3VJ4.js → session-Da7LEQUB.js} +3 -3
- package/dist/{slide-pull-client-CzutXnGc.js → slide-pull-client-Bg9DusLX.js} +413 -300
- package/dist/source-key-BklvnEyQ.js +42 -0
- package/dist/{three-d-BYiWCNlz.js → three-d-7MaVzQuZ.js} +48 -47
- package/dist/three-d.mjs +324 -323
- package/dist/types/chart-ex.d.ts +2 -2
- package/dist/types/docx.d.ts +183 -19
- package/dist/types/index.d.ts +343 -26
- package/dist/types/math.d.ts +1 -1
- package/dist/types/node.d.ts +428 -348
- package/dist/types/pptx.d.ts +132 -11
- package/dist/types/region-map.d.ts +2 -2
- package/dist/types/three-d.d.ts +2 -2
- package/dist/types/xlsx.d.ts +78 -10
- package/dist/units-BzZ0gAxs.js +4 -0
- package/dist/{worksheet-pull-client-Cxj3Ej0s.js → worksheet-pull-client-CYtwXP5D.js} +3 -3
- package/dist/{xlsx-Bl3TIEVu.js → xlsx-DMWeXT-c.js} +429 -218
- package/dist/xlsx.mjs +6 -6
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +2 -1
- package/dist/assets/render-worker-Cx5uR77k.js +0 -10
- package/dist/highlight-rect-BqcZMHUE.js +0 -48
- /package/dist/{mathjax-DJa-Q93p.js → mathjax-DwIrafQ6.js} +0 -0
- /package/dist/{renderer-module-contract-0bO_5SC0.js → renderer-module-contract-DLbb7zY0.js} +0 -0
- /package/dist/{transfer-D0U6Uhn4.js → transfer-R6NjgBKD.js} +0 -0
- /package/dist/{visible-index-DbDuGMCE.js → visible-index-BFE3PWiY.js} +0 -0
package/dist/docx.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Jt as e, Yt as t, a as n } from "./line-metrics-
|
|
2
|
-
import { w as r } from "./canvas-viewer-mechanics-
|
|
3
|
-
import { a as i, c as a, i as o,
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { Jt as e, Yt as t, a as n } from "./line-metrics-B3syvDn2.js";
|
|
2
|
+
import { w as r } from "./canvas-viewer-mechanics-CS_qbr6T.js";
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d } from "./docx-HoZXZUPA.js";
|
|
4
|
+
import { cn as f, ln as p } from "./plot-area-frame-DHV02PJU.js";
|
|
5
|
+
import { n as m, r as h } from "./comments-Cf9W7r3M.js";
|
|
6
|
+
export { a as DocxDocument, u as DocxScrollViewer, o as DocxViewer, f as OoxmlDecodedImageLimitError, e as OoxmlError, t as OoxmlResourceLimitError, r as autoResize, l as buildDocxHighlightLayer, d as buildDocxTextLayer, p as isOoxmlDecodedImageLimitError, c as noteText, n as openExternalHyperlink, i as readDocxTextSelectionContext, m as resolveCommentAnchorRuns, h as resolveDocxCommentThreads, s as resolveRevisionAnchorRuns };
|
package/dist/docx_parser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
//#region packages/core/src/layout/virtual-scroll.ts
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return e < t ? t : e > n ? n : e;
|
|
4
|
+
}
|
|
5
|
+
function t(e, t, n) {
|
|
6
|
+
let r = e.length;
|
|
7
|
+
if (r === 0) return {
|
|
8
|
+
offsets: [],
|
|
9
|
+
totalHeight: 0
|
|
10
|
+
};
|
|
11
|
+
let i = n?.leading ?? 0, a = n?.trailing ?? 0, o = Array(r), s = 0;
|
|
12
|
+
for (let n = 0; n < r; n++) o[n] = i + s + n * t, s += e[n];
|
|
13
|
+
return {
|
|
14
|
+
offsets: o,
|
|
15
|
+
totalHeight: i + s + (r - 1) * t + a
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function n(t, n, r, i) {
|
|
19
|
+
let a = t.offsets, o = a.length;
|
|
20
|
+
if (o === 0) return {
|
|
21
|
+
start: 0,
|
|
22
|
+
end: -1,
|
|
23
|
+
topIndex: 0,
|
|
24
|
+
offsets: a,
|
|
25
|
+
totalHeight: 0
|
|
26
|
+
};
|
|
27
|
+
let s = 0, c = o;
|
|
28
|
+
for (; s < c;) {
|
|
29
|
+
let e = s + c >>> 1;
|
|
30
|
+
a[e] <= n ? s = e + 1 : c = e;
|
|
31
|
+
}
|
|
32
|
+
let l = e(s - 1, 0, o - 1), u = n + r;
|
|
33
|
+
for (s = 0, c = o; s < c;) {
|
|
34
|
+
let e = s + c >>> 1;
|
|
35
|
+
a[e] < u ? s = e + 1 : c = e;
|
|
36
|
+
}
|
|
37
|
+
let d = e(s - 1, 0, o - 1);
|
|
38
|
+
return {
|
|
39
|
+
start: e(l - i, 0, o - 1),
|
|
40
|
+
end: e(d + i, 0, o - 1),
|
|
41
|
+
topIndex: l,
|
|
42
|
+
offsets: a,
|
|
43
|
+
totalHeight: t.totalHeight
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function r(t, n, r, i, a, o, s) {
|
|
47
|
+
if (t === 0) return {
|
|
48
|
+
start: 0,
|
|
49
|
+
end: -1,
|
|
50
|
+
topIndex: 0,
|
|
51
|
+
totalHeight: 0
|
|
52
|
+
};
|
|
53
|
+
let c = s?.leading ?? 0, l = s?.trailing ?? 0, u = n + r, d = e(i < c ? 0 : u > 0 ? Math.floor((i - c) / u) : t - 1, 0, t - 1), f = i + a, p = e(f <= c ? 0 : u > 0 ? Math.ceil((f - c) / u) - 1 : t - 1, 0, t - 1);
|
|
54
|
+
return {
|
|
55
|
+
start: e(d - o, 0, t - 1),
|
|
56
|
+
end: e(p + o, 0, t - 1),
|
|
57
|
+
topIndex: d,
|
|
58
|
+
totalHeight: c + t * n + (t - 1) * r + l
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region packages/core/src/internal/comment-context.ts
|
|
63
|
+
var i = 65536;
|
|
64
|
+
function a(e, t) {
|
|
65
|
+
let n = Math.min(e.length, t);
|
|
66
|
+
if (n > 0 && n < e.length) {
|
|
67
|
+
let t = e.charCodeAt(n - 1), r = e.charCodeAt(n);
|
|
68
|
+
t >= 55296 && t <= 56319 && r >= 56320 && r <= 57343 && n--;
|
|
69
|
+
}
|
|
70
|
+
return e.slice(0, n);
|
|
71
|
+
}
|
|
72
|
+
function o(e) {
|
|
73
|
+
if (e !== void 0 && (!Number.isFinite(e) || e < 0)) throw RangeError("maxTextCharacters must be a finite non-negative number.");
|
|
74
|
+
return Math.min(i, Math.floor(e ?? 65536));
|
|
75
|
+
}
|
|
76
|
+
function s(e, t, n) {
|
|
77
|
+
let r = o(n), i = 0, s = !1, c = (e) => {
|
|
78
|
+
let t = a(e.text, Math.max(0, r - i));
|
|
79
|
+
return i += t.length, t.length < e.text.length && (s = !0), {
|
|
80
|
+
...e,
|
|
81
|
+
text: t
|
|
82
|
+
};
|
|
83
|
+
}, l = Object.freeze({
|
|
84
|
+
root: Object.freeze(c(e)),
|
|
85
|
+
replies: Object.freeze(t.map((e) => Object.freeze(c(e))))
|
|
86
|
+
});
|
|
87
|
+
return Object.freeze({
|
|
88
|
+
thread: l,
|
|
89
|
+
truncated: s,
|
|
90
|
+
textCharacters: i,
|
|
91
|
+
maxTextCharacters: r
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region packages/core/src/internal/dom-interaction-boundary.ts
|
|
96
|
+
function c(e, t) {
|
|
97
|
+
return e.dataset?.[t] !== void 0;
|
|
98
|
+
}
|
|
99
|
+
function l(e, t, n) {
|
|
100
|
+
let r = typeof e.composedPath == "function" ? e.composedPath() : [];
|
|
101
|
+
if (r.length > 0) {
|
|
102
|
+
let e = !1;
|
|
103
|
+
for (let i of r) {
|
|
104
|
+
if (i === t) return e;
|
|
105
|
+
c(i, n) && (e = !0);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
let i = e.target;
|
|
109
|
+
if (!i || !t.contains(i)) return !1;
|
|
110
|
+
let a = i;
|
|
111
|
+
for (; a;) {
|
|
112
|
+
if (c(a, n)) return !0;
|
|
113
|
+
if (a === t) break;
|
|
114
|
+
a = a.parentElement;
|
|
115
|
+
}
|
|
116
|
+
return !1;
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { t as a, n as i, s as n, r, l as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region packages/core/src/search/highlight-rect.ts
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
let i = t <= 0 ? 0 : r(e.slice(0, t)), a = n >= e.length ? r(e) : r(e.slice(0, n));
|
|
4
|
+
return {
|
|
5
|
+
x: i,
|
|
6
|
+
width: Math.max(0, a - i)
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function t(e, t) {
|
|
10
|
+
return t > 0 ? `${e / t * 100}%` : "0%";
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as n, t };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./docx-
|
|
2
|
-
import { t } from "./xlsx-
|
|
3
|
-
import { t as n } from "./pptx-
|
|
1
|
+
import { t as e } from "./docx-HoZXZUPA.js";
|
|
2
|
+
import { t } from "./xlsx-DMWeXT-c.js";
|
|
3
|
+
import { t as n } from "./pptx-DEUP4Yq5.js";
|
|
4
4
|
export { e as docx, n as pptx, t as xlsx };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Nt as e, b as t, w as n, x as r } from "./line-metrics-
|
|
2
|
-
import { _ as i } from "./plot-area-frame-
|
|
1
|
+
import { Nt as e, b as t, w as n, x as r } from "./line-metrics-B3syvDn2.js";
|
|
2
|
+
import { _ as i } from "./plot-area-frame-DHV02PJU.js";
|
|
3
3
|
//#region packages/core/src/fonts/symbol-font.ts
|
|
4
4
|
var a = {
|
|
5
5
|
167: "♣",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as a } from "./three-d-
|
|
3
|
-
import { t as o } from "./mathjax-
|
|
1
|
+
import { an as e, cn as t, on as n, sn as r, un as i } from "./plot-area-frame-DHV02PJU.js";
|
|
2
|
+
import { L as a } from "./three-d-7MaVzQuZ.js";
|
|
3
|
+
import { t as o } from "./mathjax-DwIrafQ6.js";
|
|
4
4
|
//#region packages/core/src/errors/ooxml-error.ts
|
|
5
5
|
var s = class e extends Error {
|
|
6
6
|
code;
|
|
@@ -22446,8 +22446,8 @@ function be(e) {
|
|
|
22446
22446
|
}, D.set(e, t)), t;
|
|
22447
22447
|
}
|
|
22448
22448
|
var O = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakSet();
|
|
22449
|
-
function k(
|
|
22450
|
-
!
|
|
22449
|
+
function k(e) {
|
|
22450
|
+
!e || xe.has(e) || (xe.add(e), n(e));
|
|
22451
22451
|
}
|
|
22452
22452
|
function Se(e) {
|
|
22453
22453
|
k(e);
|
|
@@ -22480,7 +22480,7 @@ function Te(e, n) {
|
|
|
22480
22480
|
let i = O.get(e);
|
|
22481
22481
|
if (!i || i.count === 0 || i.activeBitmaps.has(n)) return;
|
|
22482
22482
|
let a = i.activeBytes + we(n);
|
|
22483
|
-
if (a > 134217728) throw new
|
|
22483
|
+
if (a > 134217728) throw new t("active-decoded-bytes", r, a);
|
|
22484
22484
|
i.activeBitmaps.add(n), i.activeBytes = a;
|
|
22485
22485
|
}
|
|
22486
22486
|
function Ee(e, t, n) {
|
|
@@ -22497,31 +22497,31 @@ function De(e, t) {
|
|
|
22497
22497
|
}
|
|
22498
22498
|
t.then((e) => k(e)).catch(() => {});
|
|
22499
22499
|
}
|
|
22500
|
-
function Oe(e,
|
|
22501
|
-
let i = be(
|
|
22502
|
-
if (o) return a.delete(e), a.set(e, o), o.promise.then((e) => (Te(
|
|
22503
|
-
let s = ve(
|
|
22500
|
+
function Oe(e, t, n) {
|
|
22501
|
+
let i = be(t), a = i.entries, o = a.get(e);
|
|
22502
|
+
if (o) return a.delete(e), a.set(e, o), o.promise.then((e) => (Te(t, e), e));
|
|
22503
|
+
let s = ve(t, n), c = s.then(({ bitmap: e, owned: t }) => t ? e : null), l = s.then(({ bitmap: e, owned: n }) => {
|
|
22504
22504
|
try {
|
|
22505
|
-
return Te(
|
|
22506
|
-
} catch (
|
|
22507
|
-
throw
|
|
22505
|
+
return Te(t, e), e;
|
|
22506
|
+
} catch (t) {
|
|
22507
|
+
throw n && k(e), t;
|
|
22508
22508
|
}
|
|
22509
22509
|
}), u = {
|
|
22510
22510
|
promise: l,
|
|
22511
22511
|
ownedPromise: c,
|
|
22512
22512
|
weight: 0
|
|
22513
22513
|
};
|
|
22514
|
-
for (s.then(({ bitmap:
|
|
22514
|
+
for (s.then(({ bitmap: n, owned: o }) => {
|
|
22515
22515
|
if (a.get(e) === u) {
|
|
22516
|
-
if (u.bitmap =
|
|
22516
|
+
if (u.bitmap = n, !o) {
|
|
22517
22517
|
a.delete(e);
|
|
22518
22518
|
return;
|
|
22519
22519
|
}
|
|
22520
|
-
for (u.weight = we(
|
|
22520
|
+
for (u.weight = we(n), i.retainedBytes += u.weight; i.retainedBytes > r && Ee(t, i, e););
|
|
22521
22521
|
}
|
|
22522
22522
|
}).catch(() => {}), l.catch(() => {
|
|
22523
|
-
a.get(e) === u && (a.delete(e), i.retainedBytes -= u.weight, De(
|
|
22524
|
-
}), a.set(e, u); a.size > ye && Ee(
|
|
22523
|
+
a.get(e) === u && (a.delete(e), i.retainedBytes -= u.weight, De(t, c));
|
|
22524
|
+
}), a.set(e, u); a.size > ye && Ee(t, i, e););
|
|
22525
22525
|
return l;
|
|
22526
22526
|
}
|
|
22527
22527
|
var ke = "base", Ae = `${ke}:`, je = "derived:";
|
|
@@ -22531,10 +22531,10 @@ function Me(e, t, n, r) {
|
|
|
22531
22531
|
function Ne(e, t, n, r) {
|
|
22532
22532
|
return Me(`${je}${e}`, t, n, r);
|
|
22533
22533
|
}
|
|
22534
|
-
function Pe(
|
|
22535
|
-
let { widthPt: a = 0, heightPt: o = 0, suppressBoundaryFrame: s = !1 } =
|
|
22536
|
-
return Me(ke,
|
|
22537
|
-
bitmap: await
|
|
22534
|
+
function Pe(t, n, r, i = {}) {
|
|
22535
|
+
let { widthPt: a = 0, heightPt: o = 0, suppressBoundaryFrame: s = !1 } = i;
|
|
22536
|
+
return Me(ke, t, r, async () => ({
|
|
22537
|
+
bitmap: await e(await r(t, n), {
|
|
22538
22538
|
widthPt: a,
|
|
22539
22539
|
heightPt: o,
|
|
22540
22540
|
suppressBoundaryFrame: s
|
|
@@ -22883,14 +22883,14 @@ function bt(e, t, n, r) {
|
|
|
22883
22883
|
e.restore();
|
|
22884
22884
|
}
|
|
22885
22885
|
async function xt(e, t) {
|
|
22886
|
-
let { width:
|
|
22886
|
+
let { width: n, height: r } = a(e.widthEm * 256, (e.ascentEm + e.descentEm) * 256), s = i(n, r), c = s?.getContext("2d");
|
|
22887
22887
|
if (!s || !c || typeof Path2D > "u") throw Error("Math SVG rasterization requires Canvas 2D and Path2D support");
|
|
22888
|
-
bt(c, ht(o(e.svg, t), e.widthEm, e.ascentEm + e.descentEm),
|
|
22889
|
-
let l = s, u =
|
|
22888
|
+
bt(c, ht(o(e.svg, t), e.widthEm, e.ascentEm + e.descentEm), n, r);
|
|
22889
|
+
let l = s, u = n, d = r, f = mt / 256, p = Math.max(1, Math.round(n * f)), m = Math.max(1, Math.round(r * f));
|
|
22890
22890
|
for (; u > p || d > m;) {
|
|
22891
|
-
let e = Math.max(p, Math.ceil(u / 2)), t = Math.max(m, Math.ceil(d / 2)),
|
|
22892
|
-
if (!
|
|
22893
|
-
|
|
22891
|
+
let e = Math.max(p, Math.ceil(u / 2)), t = Math.max(m, Math.ceil(d / 2)), n = i(e, t), r = n?.getContext("2d");
|
|
22892
|
+
if (!n || !r) break;
|
|
22893
|
+
r.imageSmoothingEnabled = !0, r.imageSmoothingQuality = "high", r.drawImage(l, 0, 0, e, t), l = n, u = e, d = t;
|
|
22894
22894
|
}
|
|
22895
22895
|
return {
|
|
22896
22896
|
source: l,
|
|
@@ -22899,10 +22899,10 @@ async function xt(e, t) {
|
|
|
22899
22899
|
};
|
|
22900
22900
|
}
|
|
22901
22901
|
function St(e, t) {
|
|
22902
|
-
let
|
|
22903
|
-
if (!
|
|
22904
|
-
let
|
|
22905
|
-
return
|
|
22902
|
+
let n = i(e.widthPx, e.heightPx);
|
|
22903
|
+
if (!n) return e.source;
|
|
22904
|
+
let r = n.getContext("2d");
|
|
22905
|
+
return r ? (r.drawImage(e.source, 0, 0, e.widthPx, e.heightPx), r.globalCompositeOperation = "source-in", r.fillStyle = t, r.fillRect(0, 0, e.widthPx, e.heightPx), n) : e.source;
|
|
22906
22906
|
}
|
|
22907
22907
|
//#endregion
|
|
22908
22908
|
//#region packages/core/src/canvas/env.ts
|
|
@@ -23175,7 +23175,7 @@ function tn(e) {
|
|
|
23175
23175
|
if (!(r.code !== "ooxml-resource-limit" || !z(r.details))) return new c(en(r.details), r.details);
|
|
23176
23176
|
}
|
|
23177
23177
|
function nn(e) {
|
|
23178
|
-
if (e instanceof
|
|
23178
|
+
if (e instanceof t) return {
|
|
23179
23179
|
message: e.message,
|
|
23180
23180
|
errorName: e.name,
|
|
23181
23181
|
code: e.code,
|
|
@@ -23185,21 +23185,21 @@ function nn(e) {
|
|
|
23185
23185
|
observed: e.observed
|
|
23186
23186
|
}
|
|
23187
23187
|
};
|
|
23188
|
-
let
|
|
23189
|
-
if (
|
|
23190
|
-
message:
|
|
23191
|
-
errorName:
|
|
23192
|
-
code:
|
|
23188
|
+
let n = Pt(e);
|
|
23189
|
+
if (n) return {
|
|
23190
|
+
message: n.message,
|
|
23191
|
+
errorName: n.name,
|
|
23192
|
+
code: n.code,
|
|
23193
23193
|
insufficientCredit: {
|
|
23194
|
-
requiredBytes:
|
|
23195
|
-
offeredBytes:
|
|
23194
|
+
requiredBytes: n.requiredBytes,
|
|
23195
|
+
offeredBytes: n.offeredBytes
|
|
23196
23196
|
}
|
|
23197
23197
|
};
|
|
23198
|
-
let
|
|
23199
|
-
if (
|
|
23200
|
-
let e = $t(
|
|
23198
|
+
let r = e instanceof s || e instanceof c ? e : tn(e);
|
|
23199
|
+
if (r instanceof c) {
|
|
23200
|
+
let e = $t(r.details);
|
|
23201
23201
|
return e ? {
|
|
23202
|
-
message: typeof
|
|
23202
|
+
message: typeof r.message == "string" ? r.message : en(e),
|
|
23203
23203
|
errorName: "OoxmlResourceLimitError",
|
|
23204
23204
|
code: "ooxml-resource-limit",
|
|
23205
23205
|
resourceLimit: e
|
|
@@ -23208,10 +23208,10 @@ function nn(e) {
|
|
|
23208
23208
|
errorName: "Error"
|
|
23209
23209
|
};
|
|
23210
23210
|
}
|
|
23211
|
-
if (
|
|
23212
|
-
message: typeof
|
|
23213
|
-
errorName: R(
|
|
23214
|
-
...Kt(
|
|
23211
|
+
if (r instanceof s) return {
|
|
23212
|
+
message: typeof r.message == "string" ? r.message : String(r.message),
|
|
23213
|
+
errorName: R(r.name, zt) ? r.name : "OoxmlError",
|
|
23214
|
+
...Kt(r.code) ? { code: r.code } : {}
|
|
23215
23215
|
};
|
|
23216
23216
|
let i = e instanceof Error ? e.message : String(e);
|
|
23217
23217
|
if (typeof i == "string" && i.startsWith(Rt)) return {
|
|
@@ -23243,12 +23243,12 @@ var an = new Set([
|
|
|
23243
23243
|
"not-ooxml"
|
|
23244
23244
|
]);
|
|
23245
23245
|
function on(e) {
|
|
23246
|
-
if (e.code === "ooxml-decoded-image-limit" && e.decodedImage && (e.decodedImage.metric === "image-pixels" || e.decodedImage.metric === "active-decoded-bytes") && L(e.decodedImage.limit) && L(e.decodedImage.observed) && e.decodedImage.observed > e.decodedImage.limit) return new
|
|
23246
|
+
if (e.code === "ooxml-decoded-image-limit" && e.decodedImage && (e.decodedImage.metric === "image-pixels" || e.decodedImage.metric === "active-decoded-bytes") && L(e.decodedImage.limit) && L(e.decodedImage.observed) && e.decodedImage.observed > e.decodedImage.limit) return new t(e.decodedImage.metric, e.decodedImage.limit, e.decodedImage.observed);
|
|
23247
23247
|
if (e.code === "ooxml-insufficient-credit" && Nt(e.insufficientCredit)) return new I(e.insufficientCredit);
|
|
23248
23248
|
if (e.code === "ooxml-resource-limit" && z(e.resourceLimit)) return new c(e.message, e.resourceLimit);
|
|
23249
23249
|
if (e.code && an.has(e.code)) return new s(e.code, e.message);
|
|
23250
|
-
let
|
|
23251
|
-
return e.errorName && (
|
|
23250
|
+
let n = e.errorName === "TypeError" ? TypeError(e.message) : e.errorName === "RangeError" ? RangeError(e.message) : Error(e.message);
|
|
23251
|
+
return e.errorName && (n.name = e.errorName), e.code !== void 0 && Object.assign(n, { code: e.code }), n;
|
|
23252
23252
|
}
|
|
23253
23253
|
//#endregion
|
|
23254
23254
|
//#region packages/core/src/worker/resource-policy.generated.ts
|
|
@@ -23513,7 +23513,7 @@ function Qn(e) {
|
|
|
23513
23513
|
metric: t.metric
|
|
23514
23514
|
});
|
|
23515
23515
|
}
|
|
23516
|
-
if (e instanceof s || e instanceof
|
|
23516
|
+
if (e instanceof s || e instanceof t) return Object.freeze({ code: e.code });
|
|
23517
23517
|
if (e instanceof Dt || typeof e == "object" && e && e.code === "parser-crashed") return Object.freeze({ code: "parser-crashed" });
|
|
23518
23518
|
} catch {}
|
|
23519
23519
|
return Object.freeze({});
|
package/dist/math.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./renderer-module-contract-
|
|
2
|
-
import { n as t } from "./mathjax-
|
|
1
|
+
import { t as e } from "./renderer-module-contract-DLbb7zY0.js";
|
|
2
|
+
import { n as t } from "./mathjax-DwIrafQ6.js";
|
|
3
3
|
//#region packages/core/assets/mathjax-stix2.js?url
|
|
4
4
|
var n = new URL("mathjax-stix2.js", import.meta.url).href, r = null;
|
|
5
5
|
function i(e) {
|
package/dist/node.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./chunk-DmhlhrBa.js";
|
|
2
|
-
import { t } from "./slide-pull-client-
|
|
3
|
-
import { B as n, Ct as r, Et as i, F as a, H as o, I as s, P as c, R as l, U as u, W as d, Yt as f, at as p, ot as m, q as h, rt as g, st as ee } from "./line-metrics-
|
|
2
|
+
import { t } from "./slide-pull-client-Bg9DusLX.js";
|
|
3
|
+
import { B as n, Ct as r, Et as i, F as a, H as o, I as s, P as c, R as l, U as u, W as d, Yt as f, at as p, ot as m, q as h, rt as g, st as ee } from "./line-metrics-B3syvDn2.js";
|
|
4
4
|
import { t as te } from "./bounded-raw-part-cache-C6ro6Ezf.js";
|
|
5
|
-
import { a as ne, c as re, i as ie, l as ae, r as oe, u as se } from "./document-pull-client-
|
|
6
|
-
import {
|
|
7
|
-
import { t as ue } from "./transfer-
|
|
8
|
-
import { a as de, c as fe, d as pe, l as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./worksheet-pull-client-
|
|
9
|
-
import { a as be, i as xe, n as Se, r as Ce } from "./session-
|
|
10
|
-
import { a as we, n as Te, r as Ee, t as De } from "./render-
|
|
5
|
+
import { a as ne, c as re, i as ie, l as ae, r as oe, u as se } from "./document-pull-client-B1WOjA0z.js";
|
|
6
|
+
import { cn as ce, ln as le } from "./plot-area-frame-DHV02PJU.js";
|
|
7
|
+
import { t as ue } from "./transfer-R6NjgBKD.js";
|
|
8
|
+
import { a as de, c as fe, d as pe, l as me, o as he, r as ge, s as _e, t as ve, u as ye } from "./worksheet-pull-client-CYtwXP5D.js";
|
|
9
|
+
import { a as be, i as xe, n as Se, r as Ce } from "./session-Da7LEQUB.js";
|
|
10
|
+
import { a as we, n as Te, r as Ee, t as De } from "./render-BC8p7vZQ.js";
|
|
11
11
|
import { existsSync as Oe, readFileSync as ke } from "node:fs";
|
|
12
12
|
import { fileURLToPath as Ae } from "node:url";
|
|
13
13
|
import { basename as je, dirname as Me, resolve as Ne } from "node:path";
|
|
@@ -134,7 +134,7 @@ var Be = class {
|
|
|
134
134
|
async renderSlide(e, t, n) {
|
|
135
135
|
return this.assertOpen(), this.enqueueRender(async () => {
|
|
136
136
|
b(this.signal);
|
|
137
|
-
let { renderSlideNode: r } = await import("./render-
|
|
137
|
+
let { renderSlideNode: r } = await import("./render-BC8p7vZQ.js").then((e) => e.i);
|
|
138
138
|
await r(e, {
|
|
139
139
|
slideWidth: this.slideWidth,
|
|
140
140
|
slideHeight: this.slideHeight,
|
|
@@ -1310,4 +1310,4 @@ function Kt(e) {
|
|
|
1310
1310
|
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
1311
1311
|
}
|
|
1312
1312
|
//#endregion
|
|
1313
|
-
export {
|
|
1313
|
+
export { ce as OoxmlDecodedImageLimitError, f as OoxmlResourceLimitError, De as installImageBitmapShim, Te as installOffscreenCanvasShim, le as isOoxmlDecodedImageLimitError, pt as materializeDocxDocument, Ve as materializePptxPresentation, Ht as materializeXlsxWorkbook, Bt as materializeXlsxWorkbookIndex, Vt as materializeXlsxWorksheet, ft as openDocxDocument, Re as openPptxPresentation, $ as openXlsxWorkbook, Ee as renderSlideNode };
|