@silurus/ooxml 0.80.1 → 0.80.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/README.md +4 -3
  2. package/dist/assets/render-worker-CRaEOHkw.js +9 -0
  3. package/dist/assets/render-worker-DQGLj5Zv.js +22 -0
  4. package/dist/assets/render-worker-rnrSLmqL.js +8 -0
  5. package/dist/{canvas-viewer-mechanics-BdMdqj1R.js → canvas-viewer-mechanics-D-r6wHY_.js} +1 -1
  6. package/dist/{chart-number-format-tjYUR9eS.js → chart-number-format-qLhnk6hj.js} +57 -17
  7. package/dist/{document-pull-client-Dk2EnTL7.js → document-pull-client-vxk-Aomu.js} +38 -20
  8. package/dist/{docx-Dw1kxR2M.js → docx-DN0PRx2f.js} +5 -5
  9. package/dist/docx.mjs +3 -3
  10. package/dist/docx_parser_bg.wasm +0 -0
  11. package/dist/index.mjs +3 -3
  12. package/dist/{line-distribute-vYf5DWek.js → line-distribute-Bvtp0Gt6.js} +1 -1
  13. package/dist/{line-metrics-BY-aNaLO.js → line-metrics-DdEJYxjx.js} +3789 -2998
  14. package/dist/math.mjs +27 -22
  15. package/dist/node.mjs +7 -7
  16. package/dist/{pptx-CE7xARJ_.js → pptx-B-Laftl1.js} +6 -6
  17. package/dist/pptx.mjs +4 -4
  18. package/dist/pptx_parser_bg.wasm +0 -0
  19. package/dist/region-map.mjs +29 -29
  20. package/dist/{render-C4IiRZiF.js → render-CoqMHcbF.js} +1 -1
  21. package/dist/{render-worker-host-D9mO9qMj.js → render-worker-host-CYPhmBtX.js} +1 -1
  22. package/dist/{render-worker-host-1VHH_HQk.js → render-worker-host-GlLR1rtF.js} +1 -1
  23. package/dist/{render-worker-host-BVOjz-oV.js → render-worker-host-IuQFpoJM.js} +1 -1
  24. package/dist/{resource-measurement-DOQetcWm.js → resource-measurement-CgMubiAI.js} +1 -1
  25. package/dist/{session-BYh13Iu2.js → session-DkPblDiq.js} +2 -2
  26. package/dist/{slide-pull-client-v6Feibq1.js → slide-pull-client-m2blvngt.js} +4 -4
  27. package/dist/{dash-CMzZIDz_.js → three-d-C28kqDym.js} +352 -90
  28. package/dist/three-d.mjs +509 -715
  29. package/dist/types/docx.d.ts +58 -7
  30. package/dist/types/index.d.ts +62 -11
  31. package/dist/types/node.d.ts +54 -3
  32. package/dist/types/pptx.d.ts +58 -7
  33. package/dist/types/region-map.d.ts +54 -3
  34. package/dist/types/three-d.d.ts +54 -3
  35. package/dist/types/xlsx.d.ts +58 -7
  36. package/dist/{worksheet-pull-client-Nk7nbD3-.js → worksheet-pull-client-BntP6RiO.js} +2 -2
  37. package/dist/{xlsx-zy51yoRg.js → xlsx-DqMe7J2C.js} +982 -958
  38. package/dist/xlsx.mjs +4 -4
  39. package/dist/xlsx_parser_bg.wasm +0 -0
  40. package/package.json +1 -1
  41. package/dist/assets/render-worker-BC6Wez97.js +0 -7
  42. package/dist/assets/render-worker-DidI5svV.js +0 -21
  43. package/dist/assets/render-worker-n3fNJ5XR.js +0 -8
@@ -1,4 +1,4 @@
1
- import { cn as e } from "./line-metrics-BY-aNaLO.js";
1
+ import { cn as e } from "./line-metrics-DdEJYxjx.js";
2
2
  //#region packages/core/src/errors/cfb-sniff.ts
3
3
  var t = [
4
4
  208,
@@ -88,7 +88,7 @@ function l(e, t, n) {
88
88
  r += 90;
89
89
  break;
90
90
  }
91
- return t != null && Number.isFinite(t) && (r += t / 6e4, i = !0), i ? r * Math.PI / 180 : e === "left" ? -Math.PI / 2 : e === "right" ? Math.PI / 2 : 0;
91
+ return t != null && Number.isFinite(t) && (r += t / 6e4, i = !0), i ? r * Math.PI / 180 : e === "left" || e === "right" ? -Math.PI / 2 : 0;
92
92
  }
93
93
  function u(e) {
94
94
  return Math.max(8, e * .02);
@@ -246,21 +246,31 @@ function O(e) {
246
246
  }
247
247
  //#endregion
248
248
  //#region packages/core/src/chart/chart-number-format.ts
249
- function k(e) {
249
+ var k = /* @__PURE__ */ new Map();
250
+ function A(e, t = !1, n = typeof navigator > "u" ? void 0 : navigator.language) {
251
+ let r = n ?? "", i = k.get(r);
252
+ return i || (i = new Intl.DateTimeFormat(n, {
253
+ year: "numeric",
254
+ month: "numeric",
255
+ day: "numeric",
256
+ timeZone: "UTC"
257
+ }), k.set(r, i)), i.format(T(e, t));
258
+ }
259
+ function j(e) {
250
260
  return Number.isInteger(e) ? String(e) : D(e, 6).replace(/\.?0+$/, "");
251
261
  }
252
- function A(e, t, n = !1) {
253
- if (!t || t.trim().toLowerCase() === "general") return k(e);
254
- if (M(t)) return N(e, t, n);
255
- let r = P(t), i;
256
- return i = e > 0 ? r[0] ?? t : e < 0 ? r[1] ?? r[0] ?? t : r[2] ?? r[0] ?? t, i === "" ? "" : (e < 0 && r.length < 2 ? "-" : "") + F(Math.abs(e), i);
262
+ function M(e, t, n = !1) {
263
+ if (!t || t.trim().toLowerCase() === "general") return j(e);
264
+ if (P(t)) return F(e, t, n);
265
+ let r = I(t), i;
266
+ return i = e > 0 ? r[0] ?? t : e < 0 ? r[1] ?? r[0] ?? t : r[2] ?? r[0] ?? t, i === "" ? "" : (e < 0 && r.length < 2 ? "-" : "") + L(Math.abs(e), i);
257
267
  }
258
- function j(e, t, n = !1) {
268
+ function N(e, t, n = !1) {
259
269
  if (!t || e.trim() === "") return e;
260
270
  let r = Number(e);
261
- return Number.isFinite(r) ? A(r, t, n) : e;
271
+ return Number.isFinite(r) ? M(r, t, n) : e;
262
272
  }
263
- function M(e) {
273
+ function P(e) {
264
274
  let t = !1;
265
275
  for (let n = 0; n < e.length; n++) {
266
276
  let r = e[n];
@@ -282,7 +292,7 @@ function M(e) {
282
292
  }
283
293
  return !1;
284
294
  }
285
- function N(e, t, n = !1) {
295
+ function F(e, t, n = !1) {
286
296
  let r = T(Math.floor(e), n), i = r.getUTCFullYear(), a = r.getUTCMonth() + 1, o = r.getUTCDate(), s = (e - Math.floor(e)) * 86400, c = Math.floor(s / 3600), l = Math.floor(s % 3600 / 60), u = Math.floor(s % 60), d = "", f = !1, p = 0;
287
297
  for (; p < t.length;) {
288
298
  let e = t[p];
@@ -312,7 +322,37 @@ function N(e, t, n = !1) {
312
322
  if (e === "m" || e === "M") {
313
323
  let e = 0;
314
324
  for (; p < t.length && (t[p] === "m" || t[p] === "M");) e++, p++;
315
- d.match(/[Hh]+\W*$/) ? d += e >= 2 ? String(l).padStart(2, "0") : String(l) : d += e >= 2 ? String(a).padStart(2, "0") : String(a);
325
+ if (d.match(/[Hh]+\W*$/)) d += e >= 2 ? String(l).padStart(2, "0") : String(l);
326
+ else {
327
+ let t = [
328
+ "Jan",
329
+ "Feb",
330
+ "Mar",
331
+ "Apr",
332
+ "May",
333
+ "Jun",
334
+ "Jul",
335
+ "Aug",
336
+ "Sep",
337
+ "Oct",
338
+ "Nov",
339
+ "Dec"
340
+ ], n = [
341
+ "January",
342
+ "February",
343
+ "March",
344
+ "April",
345
+ "May",
346
+ "June",
347
+ "July",
348
+ "August",
349
+ "September",
350
+ "October",
351
+ "November",
352
+ "December"
353
+ ];
354
+ d += e >= 5 ? n[a - 1][0] : e === 4 ? n[a - 1] : e === 3 ? t[a - 1] : e === 2 ? String(a).padStart(2, "0") : String(a);
355
+ }
316
356
  continue;
317
357
  }
318
358
  if (e === "d" || e === "D") {
@@ -337,7 +377,7 @@ function N(e, t, n = !1) {
337
377
  }
338
378
  return d;
339
379
  }
340
- function P(e) {
380
+ function I(e) {
341
381
  let t = [], n = "";
342
382
  for (let r = 0; r < e.length; r++) {
343
383
  let i = e[r];
@@ -363,7 +403,7 @@ function P(e) {
363
403
  }
364
404
  return t.push(n), t;
365
405
  }
366
- function F(e, t) {
406
+ function L(e, t) {
367
407
  let n = [], r = 0, i = !1, a = !1;
368
408
  for (; r < t.length;) {
369
409
  let e = t[r];
@@ -424,12 +464,12 @@ function F(e, t) {
424
464
  if (!i) return n.map((e) => e.text).join("");
425
465
  let o = a ? e * 100 : e, s = "";
426
466
  for (let e of n) e.kind === "num" && (s += e.text);
427
- let c = I(o, s), l = !1;
467
+ let c = R(o, s), l = !1;
428
468
  return n.map((e) => e.kind === "lit" ? e.text : l ? "" : (l = !0, c)).join("");
429
469
  }
430
- function I(e, t) {
470
+ function R(e, t) {
431
471
  let n = t.indexOf("."), r = n >= 0 ? t.slice(0, n) : t, i = n >= 0 ? t.slice(n + 1) : "", a = /,/.test(r), o = (i.match(/[#0?]/g) ?? []).length, s = (r.replace(/,/g, "").match(/0/g) ?? []).length, [c, l = ""] = D(e, o).split("."), u = c.padStart(s, "0"), d = a ? u.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : u;
432
472
  return o === 0 ? d : `${d}.${l.padEnd(o, "0")}`;
433
473
  }
434
474
  //#endregion
435
- export { _ as C, b as S, y as _, T as a, x as b, c, m as d, h as f, o as g, s as h, D as i, u as l, d as m, k as n, E as o, g as p, A as r, v as s, j as t, l as u, n as v, e as x, a as y };
475
+ export { b as C, e as S, o as _, D as a, a as b, v as c, l as d, m as f, s as g, d as h, A as i, c as l, g as m, j as n, T as o, h as p, M as r, E as s, N as t, u, y as v, _ as w, x, n as y };
@@ -1,7 +1,7 @@
1
- import { A as e, At as t, Bt as n, C as r, D as i, Dt as a, E as o, Et as s, Gt as c, Ht as l, It as u, Jt as d, M as f, Mt as p, N as m, O as h, Pt as g, Qt as _, S as v, Tt as y, U as b, W as x, Wt as S, Xt as C, Yt as w, _ as T, an as E, bt as D, c as O, ct as k, d as A, en as j, f as M, g as ee, gt as te, h as N, ht as ne, in as P, j as re, k as ie, kt as F, l as ae, m as oe, mt as se, n as ce, nn as le, o as ue, on as de, pt as fe, rn as pe, s as me, sn as he, t as ge, tn as _e, u as ve, v as ye, vt as be, w as xe, xt as Se, y as Ce, yt as we } from "./line-metrics-BY-aNaLO.js";
1
+ import { A as e, At as t, Bt as n, C as r, D as i, Dt as a, E as o, Et as s, Gt as c, Ht as l, It as u, Jt as d, M as f, Mt as p, N as m, O as h, Pt as g, Qt as _, S as v, Tt as y, U as b, W as x, Wt as S, Xt as C, Yt as w, _ as T, an as E, bt as D, c as O, ct as k, d as A, en as j, f as M, g as ee, gt as te, h as N, ht as ne, in as P, j as re, k as ie, kt as F, l as ae, m as oe, mt as se, n as ce, nn as le, o as ue, on as de, pt as fe, rn as pe, s as me, sn as he, t as ge, tn as _e, u as ve, v as ye, vt as be, w as xe, xt as Se, y as Ce, yt as we } from "./line-metrics-DdEJYxjx.js";
2
2
  import { c as Te, o as Ee, r as De, s as Oe } from "./bounded-raw-part-cache-C6ro6Ezf.js";
3
- import { a as I, c as ke, d as Ae, f as je, i as Me, n as Ne, o as L, s as Pe, t as Fe, u as Ie } from "./line-distribute-vYf5DWek.js";
4
- import { t as Le } from "./dash-CMzZIDz_.js";
3
+ import { a as I, c as ke, d as Ae, f as je, i as Me, n as Ne, o as L, s as Pe, t as Fe, u as Ie } from "./line-distribute-Bvtp0Gt6.js";
4
+ import { u as Le } from "./three-d-C28kqDym.js";
5
5
  //#region packages/core/src/fonts/canvas-route.ts
6
6
  function Re(e, t) {
7
7
  let n = e.trim();
@@ -6424,7 +6424,7 @@ function jc(e, t, n, r, i = !0) {
6424
6424
  let e = Ac(n.physicalIndentLeftPt + l, n.tabStops, n.defaultTabPt);
6425
6425
  d = e ? e.pos - n.physicalIndentLeftPt : l;
6426
6426
  }
6427
- return {
6427
+ return d = Math.max(0, d), {
6428
6428
  bodyOffsetPt: d,
6429
6429
  markerText: a,
6430
6430
  markerWidthPt: s,
@@ -17950,8 +17950,8 @@ function vv(e, t, n, r, i, a) {
17950
17950
  r || (r = /* @__PURE__ */ new Set(), x.set(f.flow.pageIndex, r)), e.forEach((e) => r.add(e));
17951
17951
  let i = C.get(f.flow.pageIndex) ?? [];
17952
17952
  i.push(...t), C.set(f.flow.pageIndex, i), S.set(f.flow.pageIndex, (S.get(f.flow.pageIndex) ?? 0) + n), f = Pf(f, n);
17953
- }, O = () => Math.max(0, sv(f) - f.footnoteReservePt - f.flow.deepestColumnBlockPt), k = (e) => e > O(), A = null, j = Lp(e.sequence);
17954
- for (let t = 0; t < e.sequence.length; t += 1) {
17953
+ }, O = () => Math.max(0, sv(f) - f.footnoteReservePt - f.flow.deepestColumnBlockPt), k = (e) => e > O(), A = null, j = Lp(e.sequence), M = null;
17954
+ bodyEntries: for (let t = 0; t < e.sequence.length; t += 1) {
17955
17955
  let n = e.sequence[t];
17956
17956
  if (n.kind === "consume-source") continue;
17957
17957
  if (n.kind === "authored-break") {
@@ -17971,11 +17971,26 @@ function vv(e, t, n, r, i, a) {
17971
17971
  top: 0,
17972
17972
  bottom: 0
17973
17973
  });
17974
- b(Sp(f.flow, tv(n.section, f.flow.pageIndex), c, {
17975
- hasFootnoteReferenceOnCurrentPage: w(f.flow.pageIndex),
17976
- incomingPageContentStartBlockPt: l.blockStartPt,
17977
- incomingPageContentEndBlockPt: l.blockEndPt
17978
- }), t + 1);
17974
+ try {
17975
+ b(Sp(f.flow, tv(n.section, f.flow.pageIndex), c, {
17976
+ hasFootnoteReferenceOnCurrentPage: w(f.flow.pageIndex),
17977
+ incomingPageContentStartBlockPt: l.blockStartPt,
17978
+ incomingPageContentEndBlockPt: l.blockEndPt
17979
+ }), t + 1);
17980
+ } catch (e) {
17981
+ if (!(e instanceof sp) || f.flow.pageIndex === 0) throw e;
17982
+ let t = f.flow.pageIndex;
17983
+ f = Object.freeze({
17984
+ ...f,
17985
+ pages: Object.freeze(f.pages.filter((e) => e.accumulator.pageIndex < t))
17986
+ }), M = Object.freeze({
17987
+ code: "UNSUPPORTED_FEATURE",
17988
+ severity: "error",
17989
+ source: n.source,
17990
+ message: `Document layout stopped after the last complete page because a nextColumn section could not be placed safely (${e.reason})`
17991
+ });
17992
+ break bodyEntries;
17993
+ }
17979
17994
  continue;
17980
17995
  }
17981
17996
  let i = n.kind === "adjacent-table-group" ? n : n.block;
@@ -18159,17 +18174,19 @@ function vv(e, t, n, r, i, a) {
18159
18174
  }
18160
18175
  g.moveAcquisitionCursor(cv(f));
18161
18176
  }
18162
- let M = new Set([...S.keys(), ...C.keys()]);
18163
- for (let e of M) {
18177
+ let ee = new Set([...S.keys(), ...C.keys()]);
18178
+ for (let e of ee) {
18164
18179
  let t = S.get(e) ?? 0, n = (C.get(e) ?? []).reduce((e, t) => e + t.advancePt, 0);
18165
18180
  if (t !== n) throw new H("INVALID_GEOMETRY", `Page ${e} footnote reserve ${t} does not equal retained advance ${n}`);
18166
18181
  }
18182
+ let te = _v(f, s), N = new Set(te.pages.map((e) => e.pageIndex)), ne = new Set(te.pages.flatMap((e) => Or(e).map(({ node: e }) => e.id))), P = new Map([...S].filter(([e]) => N.has(e))), re = new Map([...C].filter(([e]) => N.has(e)));
18167
18183
  return Object.freeze({
18168
- layout: _v(f, s),
18184
+ layout: te,
18169
18185
  session: g,
18170
- allocations: Object.freeze(l),
18171
- footnoteReserveByPage: S,
18172
- footnoteLayoutsByPage: C
18186
+ allocations: Object.freeze(l.filter((e) => ne.has(e.nodeId))),
18187
+ footnoteReserveByPage: P,
18188
+ footnoteLayoutsByPage: re,
18189
+ terminalDiagnostic: M
18173
18190
  });
18174
18191
  }
18175
18192
  function yv(e, t) {
@@ -18514,14 +18531,15 @@ function Dv(e, t, n) {
18514
18531
  }
18515
18532
  function Ov(e, t, n, r) {
18516
18533
  let i = /* @__PURE__ */ new Map(), a = Tv(e, t, n, r, i);
18534
+ if (a.terminalDiagnostic !== null) return a;
18517
18535
  for (let o of Ev(e)) {
18518
18536
  let s = Dv(a.layout, o.outgoingSectionOccurrenceId, o.incomingSectionOccurrenceId);
18519
18537
  if (s === null || s.outgoing.flowDomainIds.length < 2) continue;
18520
18538
  let c = s.page.pageIndex, l = k_(e, a.allocations, a.footnoteReserveByPage, s.page, s.outgoing), u = new Map(i);
18521
- u.set(o.outgoingSectionOccurrenceId, Object.freeze({
18539
+ if (u.set(o.outgoingSectionOccurrenceId, Object.freeze({
18522
18540
  pageIndex: c,
18523
18541
  targetPt: l
18524
- })), i = u, a = Tv(e, t, n, r, i);
18542
+ })), i = u, a = Tv(e, t, n, r, i), a.terminalDiagnostic !== null) return a;
18525
18543
  }
18526
18544
  return a;
18527
18545
  }
@@ -18542,7 +18560,7 @@ function kv(e, t, n) {
18542
18560
  }).result, o = j_(a.layout, a.session, a.allocations), s = e.noteLayoutSettings ?? Object.freeze({
18543
18561
  footnotePosition: "pageBottom",
18544
18562
  endnotePosition: "docEnd"
18545
- }), c = bv(o, a.session, r, a.footnoteLayoutsByPage), l = c.pages.some((e) => e.layers.notes.some((e) => e.source.story === "footnote")) && s.footnotePosition !== "pageBottom" ? Sv(c, "footnote", s.footnotePosition, "pageBottom") : c, u = new Set(o.pages.flatMap((e) => e.layers.body.flatMap((e) => e.kind === "paragraph" || e.kind === "table" ? w_(e) : []))), d = (e.endnoteIds ?? []).filter((e) => u.has(e)), f = xv(l, a.session, d), p = d.length > 0 && s.endnotePosition !== "docEnd" ? Sv(f, "endnote", s.endnotePosition, "docEnd") : f, m = e.parserDiagnostics ?? [], h = m.length === 0 ? p : Object.freeze({
18563
+ }), c = bv(o, a.session, r, a.footnoteLayoutsByPage), l = c.pages.some((e) => e.layers.notes.some((e) => e.source.story === "footnote")) && s.footnotePosition !== "pageBottom" ? Sv(c, "footnote", s.footnotePosition, "pageBottom") : c, u = new Set(o.pages.flatMap((e) => e.layers.body.flatMap((e) => e.kind === "paragraph" || e.kind === "table" ? w_(e) : []))), d = (e.endnoteIds ?? []).filter((e) => u.has(e)), f = xv(l, a.session, d), p = d.length > 0 && s.endnotePosition !== "docEnd" ? Sv(f, "endnote", s.endnotePosition, "docEnd") : f, m = [...e.parserDiagnostics ?? [], ...a.terminalDiagnostic === null ? [] : [a.terminalDiagnostic]], h = m.length === 0 ? p : Object.freeze({
18546
18564
  ...p,
18547
18565
  diagnostics: Object.freeze([...m, ...p.diagnostics])
18548
18566
  });
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./chunk-DmhlhrBa.js";
2
- import { B as t, Ot as n, R as r, Rt as i, a, cn as o, it as s, jt as c, ln as l, mt as u, q as d, z as f, zt as p } from "./line-metrics-BY-aNaLO.js";
3
- import { C as m, E as h, S as g, T as _, _ as v, a as y, b, c as x, d as ee, f as te, g as ne, h as re, i as S, l as C, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as w, w as fe, x as pe, y as T } from "./canvas-viewer-mechanics-BdMdqj1R.js";
2
+ import { B as t, Ot as n, R as r, Rt as i, a, cn as o, it as s, jt as c, ln as l, mt as u, q as d, z as f, zt as p } from "./line-metrics-DdEJYxjx.js";
3
+ import { C as m, E as h, S as g, T as _, _ as v, a as y, b, c as x, d as ee, f as te, g as ne, h as re, i as S, l as C, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as w, w as fe, x as pe, y as T } from "./canvas-viewer-mechanics-D-r6wHY_.js";
4
4
  import { a as me, c as he, i as ge, o as _e, r as ve, s as ye, t as be } from "./bounded-raw-part-cache-C6ro6Ezf.js";
5
- import { C as xe, S as Se, _ as E, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as D, o as Me, p as Ne, s as Pe, t as O, v as k, w as Fe, x as A, y as Ie } from "./document-pull-client-Dk2EnTL7.js";
6
- import { S as j } from "./dash-CMzZIDz_.js";
5
+ import { C as xe, S as Se, _ as E, a as Ce, b as we, c as Te, d as Ee, f as De, g as Oe, h as ke, l as Ae, m as je, n as D, o as Me, p as Ne, s as Pe, t as O, v as k, w as Fe, x as A, y as Ie } from "./document-pull-client-vxk-Aomu.js";
6
+ import { N as j } from "./three-d-C28kqDym.js";
7
7
  import { n as Le } from "./renderer-module-contract-BNGz8HvO.js";
8
8
  import { n as Re, r as M, t as N } from "./highlight-rect-BuX5rWP4.js";
9
9
  //#region packages/core/src/fonts/embedded.ts
@@ -345,7 +345,7 @@ var U = class e {
345
345
  t = await e.arrayBuffer();
346
346
  } else t = n;
347
347
  t = h(await _(t, i.password)), c.setSourceBytes(t.byteLength), c.checkpoint("container ready");
348
- let r = s === "worker" ? (await import("./render-worker-host-BVOjz-oV.js")).createRenderWorker() : new We(), l = s === "worker" ? Le(i) : void 0, u;
348
+ let r = s === "worker" ? (await import("./render-worker-host-IuQFpoJM.js")).createRenderWorker() : new We(), l = s === "worker" ? Le(i) : void 0, u;
349
349
  try {
350
350
  if (u = new e(r, s, o, i.wasmUrl), u._metrics = c, await u._parse(t, a.policy, s === "worker" ? !!i.useGoogleFonts : !1, i.workerTimeoutMs, (e) => c.observeUsage(e), l), s === "worker" && u._mode === "main" && (c.setMode("main"), console.warn("[ooxml] mode: 'worker' fell back to main-thread rendering because this document requires DOM OpenType vertical glyph selection.")), i.math && u._mode === "worker" && !l?.math && console.warn("[ooxml] a custom math renderer cannot cross the worker boundary; equations will be skipped in mode: 'worker'. Use the math renderer from @silurus/ooxml/math."), i.threeD && u._mode === "worker" && !l?.threeD && console.warn("[ooxml] a custom 3-D chart renderer cannot cross the worker boundary; charts use their 2-D family fallback in mode: 'worker'. Use the renderer from @silurus/ooxml/three-d."), u._threeD = u._mode === "worker" ? void 0 : i.threeD, i.regionMap && u._mode === "worker" && !l?.regionMap && console.warn("[ooxml] a custom Region Map renderer cannot cross the worker boundary; geospatial charts use the unsupported-chart placeholder in mode: 'worker'. Use the renderer from @silurus/ooxml/region-map."), u._regionMap = u._mode === "worker" ? void 0 : i.regionMap, u._mode === "main" && i.useGoogleFonts && u._document && (u._googleFontFaces = await ge(Ne(u._document), De)), u._mode === "main" && u._document?.embeddedFonts?.length) {
351
351
  let e = u;
package/dist/docx.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Rt as e, a as t, cn as n, ln as r, zt as i } from "./line-metrics-BY-aNaLO.js";
2
- import { w as a } from "./canvas-viewer-mechanics-BdMdqj1R.js";
3
- import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-Dw1kxR2M.js";
1
+ import { Rt as e, a as t, cn as n, ln as r, zt as i } from "./line-metrics-DdEJYxjx.js";
2
+ import { w as a } from "./canvas-viewer-mechanics-D-r6wHY_.js";
3
+ import { a as o, c as s, i as c, n as l, o as u, r as d, s as f } from "./docx-DN0PRx2f.js";
4
4
  export { s as DocxDocument, d as DocxScrollViewer, c as DocxViewer, e as OoxmlDecodedImageLimitError, n as OoxmlError, r as OoxmlResourceLimitError, a as autoResize, u as buildDocxHighlightLayer, f as buildDocxTextLayer, i as isOoxmlDecodedImageLimitError, l as noteText, t as openExternalHyperlink, o as readDocxTextSelectionContext };
Binary file
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./docx-Dw1kxR2M.js";
2
- import { t } from "./xlsx-zy51yoRg.js";
3
- import { t as n } from "./pptx-CE7xARJ_.js";
1
+ import { t as e } from "./docx-DN0PRx2f.js";
2
+ import { t } from "./xlsx-DqMe7J2C.js";
3
+ import { t as n } from "./pptx-B-Laftl1.js";
4
4
  export { e as docx, n as pptx, t as xlsx };
@@ -1,4 +1,4 @@
1
- import { Vt as e, Zt as t, b as n, w as r, x as i } from "./line-metrics-BY-aNaLO.js";
1
+ import { Vt as e, Zt as t, b as n, w as r, x as i } from "./line-metrics-DdEJYxjx.js";
2
2
  //#region packages/core/src/fonts/symbol-font.ts
3
3
  var a = {
4
4
  167: "♣",