@silurus/ooxml 0.89.6 → 0.89.8

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 (73) hide show
  1. package/dist/assets/render-worker-Ck21oePL.js +16 -0
  2. package/dist/assets/render-worker-DJiGqgi0.js +15 -0
  3. package/dist/assets/render-worker-hPLJ82d2.js +35 -0
  4. package/dist/{bounded-raw-part-cache-B8t03tSP.js → bounded-raw-part-cache-B5a6cGKO.js} +1713 -1515
  5. package/dist/{canvas-viewer-mechanics-DI38gHNV.js → canvas-viewer-mechanics-BsqaoYgK.js} +2 -2
  6. package/dist/{cfb-guard-BIaHdonq.js → cfb-guard-DzYlucez.js} +1 -1
  7. package/dist/chart-ex.mjs +367 -367
  8. package/dist/{comment-overlay-controller-Crm5Syhx.js → comment-overlay-controller-B7AoyoDK.js} +18 -18
  9. package/dist/{comment-ui-runtime-hfewTmVJ.js → comment-ui-runtime-C5eWtZSW.js} +3 -3
  10. package/dist/{comment-ui-runtime-BfEPgl5r.js → comment-ui-runtime-CV0I9faV.js} +3 -3
  11. package/dist/{document-model-source-BUTSwkyP.js → document-model-source-90ext13g.js} +37 -37
  12. package/dist/{document-pull-client-C_D779tO.js → document-pull-client-DSYpUET2.js} +17525 -13847
  13. package/dist/{document-pull-worker-Bkewz-So.js → document-pull-worker-hMKJ5RdB.js} +14 -14
  14. package/dist/{docx-BfLZeiwa.js → docx-DCCDnwrG.js} +593 -593
  15. package/dist/{docx-BC2HQtjg.js → docx-G7pt7ajR.js} +33 -33
  16. package/dist/{docx-model-source-IjrOZgnl.js → docx-model-source-Beon3BD5.js} +6 -6
  17. package/dist/docx.mjs +4 -4
  18. package/dist/docx_parser_bg.wasm +0 -0
  19. package/dist/{drawingml-shape-BcXkRayC.js → drawingml-shape-B1_kg4BV.js} +55 -55
  20. package/dist/{duotone-BI7CoghW.js → duotone-GK4Hqn7f.js} +1 -1
  21. package/dist/{emf-DgUBx9BU.js → emf--QWY-UlT.js} +50 -50
  22. package/dist/{font-preload-demand-B6HPFxDp.js → font-preload-demand-NqcVKIpX.js} +2 -2
  23. package/dist/{grid-geometry-CqTDvpDr.js → grid-geometry-DpMAiSZb.js} +1 -1
  24. package/dist/{host-layout-measure-DJvccDI3.js → host-layout-measure-Z2fIsmDw.js} +1 -1
  25. package/dist/index.mjs +3 -3
  26. package/dist/internal-companion.mjs +2 -2
  27. package/dist/{line-distribute-DR9Qwd3u.js → line-distribute-CwtditQo.js} +31 -25
  28. package/dist/{model-source-DcI3vC00.js → model-source-Cch44xsb.js} +2 -2
  29. package/dist/{model-source-session-BlQWNyj2.js → model-source-session-ClNCRDOg.js} +21 -21
  30. package/dist/{model-source-session-D0LF49Ve.js → model-source-session-DRcqFGfM.js} +2 -2
  31. package/dist/{model-source-session-BCteVilS.js → model-source-session-DSABX94B.js} +2 -2
  32. package/dist/node.mjs +5 -5
  33. package/dist/{plot-area-frame-D3JtHvov.js → plot-area-frame-DNYMd9Pf.js} +1914 -1890
  34. package/dist/{pptx-SmjDGyub.js → pptx-C1CiFW1D.js} +35 -33
  35. package/dist/{pptx-CfCiVlNB.js → pptx-Ci1Y9SS_.js} +261 -259
  36. package/dist/{pptx-model-source-B2Irk68a.js → pptx-model-source-C9TuBisH.js} +18 -12
  37. package/dist/pptx-parsed-slides-BMGr4khe.js +8 -0
  38. package/dist/pptx.mjs +5 -5
  39. package/dist/pptx_parser_bg.wasm +0 -0
  40. package/dist/{presentation-model-source-DL6duh5l.js → presentation-model-source-3N7xLtmI.js} +6 -6
  41. package/dist/region-map.mjs +39 -39
  42. package/dist/{render-CMUEAeHp.js → render-Bf_Gywxw.js} +32 -30
  43. package/dist/{render-worker-host-CtlBbau5.js → render-worker-host-BZoh-wqR.js} +1 -1
  44. package/dist/{render-worker-host-D_0g-TQ2.js → render-worker-host-BmVeB_mR.js} +1 -1
  45. package/dist/{render-worker-host-DjBotZNL.js → render-worker-host-CVr53kg0.js} +1 -1
  46. package/dist/{renderer-IFuBkPvF.js → renderer-CCA_bQB8.js} +777 -707
  47. package/dist/renderer-DpTePxGq.js +5887 -0
  48. package/dist/{resource-measurement-D2bu0Qfx.js → resource-measurement-CfJtbwiR.js} +129 -129
  49. package/dist/{session-KIWcCCP2.js → session-DPXK_lpI.js} +64 -64
  50. package/dist/{slide-pull-client-BUuJQQVE.js → slide-pull-client-3g6TxaKa.js} +1421 -1421
  51. package/dist/{three-d-ByHGsYrX.js → three-d-BfMZVR0w.js} +98 -98
  52. package/dist/three-d.mjs +678 -678
  53. package/dist/types/chart-ex.d.ts +5 -2
  54. package/dist/types/docx.d.ts +29 -7
  55. package/dist/types/index.d.ts +34 -11
  56. package/dist/types/node.d.ts +27 -5
  57. package/dist/types/pptx.d.ts +11 -7
  58. package/dist/types/region-map.d.ts +5 -2
  59. package/dist/types/three-d.d.ts +5 -2
  60. package/dist/types/xlsx.d.ts +10 -7
  61. package/dist/{wasm-runtime-generation-BLweKv8r.js → wasm-runtime-generation-D97yoAXz.js} +17 -17
  62. package/dist/{workbook-model-source-DBfVsWj7.js → workbook-model-source-BHR8shXr.js} +6 -6
  63. package/dist/{worksheet-pull-client-Du0MuIro.js → worksheet-pull-client-BudfclVl.js} +84 -84
  64. package/dist/{xlsx-CD1VeDIg.js → xlsx-7aY3Pbvh.js} +44 -44
  65. package/dist/{xlsx-CCMRAxPB.js → xlsx-DTtDjzFq.js} +299 -299
  66. package/dist/{xlsx-model-source-udh7Q4WB.js → xlsx-model-source-DXKvb90T.js} +36 -36
  67. package/dist/xlsx.mjs +5 -5
  68. package/dist/xlsx_parser_bg.wasm +0 -0
  69. package/package.json +1 -1
  70. package/dist/assets/render-worker-B5HWxkbU.js +0 -16
  71. package/dist/assets/render-worker-Ba4LYMJd.js +0 -15
  72. package/dist/assets/render-worker-DkqinUC6.js +0 -35
  73. package/dist/renderer-xdugdcMd.js +0 -5769
@@ -1,24 +1,24 @@
1
1
  import { t as e } from "./chunk-D5OxutzX.js";
2
- import { a as t, l as n } from "./slide-pull-client-BUuJQQVE.js";
3
- import { yo as r } from "./plot-area-frame-D3JtHvov.js";
4
- import { B as i, D as a, F as o, G as s, H as c, N as l, O as u, U as d, V as f, j as p, k as m, mn as h, q as g } from "./bounded-raw-part-cache-B8t03tSP.js";
5
- import { n as _, t as v } from "./abort-JztSoyw2.js";
6
- import { S as y } from "./worksheet-pull-client-Du0MuIro.js";
7
- import { t as b } from "./wasm-runtime-generation-BLweKv8r.js";
8
- function x(e) {
2
+ import { a as t, u as n } from "./slide-pull-client-3g6TxaKa.js";
3
+ import { wo as r } from "./plot-area-frame-DNYMd9Pf.js";
4
+ import { A as i, G as a, I as o, J as s, K as c, M as l, P as u, R as ee, U as d, W as f, X as p, _n as m, j as h } from "./bounded-raw-part-cache-B5a6cGKO.js";
5
+ import { n as g, t as _ } from "./abort-JztSoyw2.js";
6
+ import { S as v } from "./worksheet-pull-client-BudfclVl.js";
7
+ import { t as y } from "./wasm-runtime-generation-D97yoAXz.js";
8
+ function b(e) {
9
9
  try {
10
- return i(e((e) => e.slide_cursor_resource_usage()));
10
+ return d(e((e) => e.slide_cursor_resource_usage()));
11
11
  } catch (e) {
12
12
  if (String(e).includes("slide cursor usage is unavailable")) return;
13
13
  throw e;
14
14
  }
15
15
  }
16
- function S(e, t, n, r, i) {
16
+ function x(e, t, n, r, i) {
17
17
  let a, o;
18
18
  try {
19
19
  if (i) {
20
20
  if (!r) throw Error("slide payload is missing before acknowledgement");
21
- let t = i(n, r, x(e));
21
+ let t = i(n, r, b(e));
22
22
  typeof t == "function" ? a = t : t && ({rollback: a, commit: o} = t);
23
23
  }
24
24
  e((e) => e.acknowledge_slide(t.operationId, t.generation)), o?.();
@@ -29,11 +29,11 @@ function S(e, t, n, r, i) {
29
29
  throw e;
30
30
  }
31
31
  }
32
- var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
32
+ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
33
33
  archive;
34
34
  acceptSlide;
35
35
  executeArchive;
36
- coordinatorGeneration = new m();
36
+ coordinatorGeneration = new l();
37
37
  sessions = /* @__PURE__ */ new Map();
38
38
  pendingOpens = /* @__PURE__ */ new Map();
39
39
  operationTail = Promise.resolve();
@@ -48,7 +48,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
48
48
  return this.coordinatorGeneration;
49
49
  }
50
50
  reserveOpen(e) {
51
- if (this.assertReady(), E(e), this.pendingOpens.has(e.sessionId) || this.sessions.has(e.sessionId)) throw Error("slide pull session id is already reserved");
51
+ if (this.assertReady(), T(e), this.pendingOpens.has(e.sessionId) || this.sessions.has(e.sessionId)) throw Error("slide pull session id is already reserved");
52
52
  this.pendingOpens.set(e.sessionId, {
53
53
  identity: e,
54
54
  canceled: !1
@@ -64,14 +64,14 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
64
64
  if (this.assertReady(), this.resourceFailure) throw this.resourceFailure;
65
65
  if (!Number.isSafeInteger(e) || e < 0) throw RangeError("slide index must be a non-negative safe integer");
66
66
  let n = this.pendingOpens.get(t.sessionId);
67
- if (!n || !D(n.identity, t)) throw Error("slide pull session open reservation is stale or missing");
67
+ if (!n || !E(n.identity, t)) throw Error("slide pull session open reservation is stale or missing");
68
68
  let r, i = new Promise((e) => {
69
69
  r = e;
70
70
  }), a = this.operationTail.then(() => this.coordinator.enqueue(async () => {
71
71
  if (n.canceled) throw Error("slide pull session open was canceled");
72
- let i, a = !1, o = new u({
72
+ let i, a = !1, o = new h({
73
73
  ...t,
74
- maxByteCredit: h,
74
+ maxByteCredit: m,
75
75
  coordinator: this.coordinator,
76
76
  driver: {
77
77
  pull: (n) => {
@@ -79,9 +79,9 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
79
79
  try {
80
80
  r = this.executeArchive((r) => r.pull_slide(e, t.operationId, t.generation, n));
81
81
  } catch (e) {
82
- throw g(e, n, h) || (this.latchResourceFailure(e), e);
82
+ throw p(e, n, m) || (this.latchResourceFailure(e), e);
83
83
  }
84
- let o = y(r);
84
+ let o = v(r);
85
85
  return this.acceptSlide && (i = JSON.parse(new TextDecoder().decode(new Uint8Array(o)))), a = !0, {
86
86
  payload: o,
87
87
  byteLength: o.byteLength,
@@ -93,7 +93,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
93
93
  acknowledge: () => {
94
94
  if (!a) throw Error("slide unit is not awaiting acknowledgement");
95
95
  try {
96
- S(this.executeArchive, t, e, i, this.acceptSlide);
96
+ x(this.executeArchive, t, e, i, this.acceptSlide);
97
97
  } catch (e) {
98
98
  throw this.latchResourceFailure(e), e;
99
99
  }
@@ -156,9 +156,9 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
156
156
  if (n) return n.host.dispatch(e, t);
157
157
  let r = this.pendingOpens.get(e.sessionId);
158
158
  if (r && (e.kind === "cancel" || e.kind === "close")) {
159
- let n = D(r.identity, e);
159
+ let n = E(r.identity, e);
160
160
  return n && (r.canceled = !0), t(n ? {
161
- protocol: a,
161
+ protocol: i,
162
162
  kind: "accepted",
163
163
  sessionId: e.sessionId,
164
164
  operationId: e.operationId,
@@ -168,7 +168,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
168
168
  } : this.staleLifecycleResponse(e)), Promise.resolve();
169
169
  }
170
170
  return e.kind === "cancel" || e.kind === "close" ? (t({
171
- protocol: a,
171
+ protocol: i,
172
172
  kind: "accepted",
173
173
  sessionId: e.sessionId,
174
174
  operationId: e.operationId,
@@ -176,7 +176,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
176
176
  requestId: e.requestId,
177
177
  command: e.kind
178
178
  }), Promise.resolve()) : (t({
179
- protocol: a,
179
+ protocol: i,
180
180
  kind: "error",
181
181
  sessionId: e.sessionId,
182
182
  operationId: e.operationId,
@@ -191,7 +191,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
191
191
  } catch (n) {
192
192
  try {
193
193
  t({
194
- protocol: a,
194
+ protocol: i,
195
195
  kind: "error",
196
196
  sessionId: e.sessionId,
197
197
  operationId: e.operationId,
@@ -230,7 +230,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
230
230
  for (let { host: t, identity: n } of [...this.sessions.values()]) {
231
231
  let r;
232
232
  if (await t.dispatch({
233
- protocol: a,
233
+ protocol: i,
234
234
  kind: "close",
235
235
  ...n,
236
236
  requestId: e++
@@ -238,14 +238,14 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
238
238
  e.kind === "error" && (r = f(e.error));
239
239
  }), r) throw r;
240
240
  }
241
- this.sessions.clear(), await this.operationTail, this.pendingOpens.clear(), this.archive() && await this.executeArchive((e) => e.close_presentation_session()), this.coordinatorGeneration = new m(), this.resourceFailure = void 0;
241
+ this.sessions.clear(), await this.operationTail, this.pendingOpens.clear(), this.archive() && await this.executeArchive((e) => e.close_presentation_session()), this.coordinatorGeneration = new l(), this.resourceFailure = void 0;
242
242
  }
243
243
  assertReady() {
244
244
  if (this.lifecycleState !== "ready") throw this.lifecycleError();
245
245
  }
246
246
  lifecycleError() {
247
247
  let e = this.lifecycleState === "reset-failed", t = /* @__PURE__ */ Error(e ? "slide pull worker reset failed; retry reset before new work" : "slide pull worker reset is in progress");
248
- return t.name = "PullSessionLifecycleError", Object.assign(t, { code: e ? w : C });
248
+ return t.name = "PullSessionLifecycleError", Object.assign(t, { code: e ? C : S });
249
249
  }
250
250
  captureResetIdentities() {
251
251
  for (let { identity: e } of this.sessions.values()) this.resetIdentities.set(e.sessionId, e);
@@ -254,8 +254,8 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
254
254
  responseDuringReset(e) {
255
255
  if (e.kind === "cancel" || e.kind === "close") {
256
256
  let t = this.resetIdentities.get(e.sessionId);
257
- return t && !D(t, e) ? this.staleLifecycleResponse(e) : {
258
- protocol: a,
257
+ return t && !E(t, e) ? this.staleLifecycleResponse(e) : {
258
+ protocol: i,
259
259
  kind: "accepted",
260
260
  sessionId: e.sessionId,
261
261
  operationId: e.operationId,
@@ -265,7 +265,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
265
265
  };
266
266
  }
267
267
  return {
268
- protocol: a,
268
+ protocol: i,
269
269
  kind: "error",
270
270
  sessionId: e.sessionId,
271
271
  operationId: e.operationId,
@@ -284,7 +284,7 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
284
284
  let t = this.sessions.get(e.sessionId);
285
285
  if (t) {
286
286
  await t.host.dispatch({
287
- protocol: a,
287
+ protocol: i,
288
288
  kind: "close",
289
289
  ...e,
290
290
  requestId: 1
@@ -292,18 +292,18 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
292
292
  return;
293
293
  }
294
294
  let n = this.pendingOpens.get(e.sessionId);
295
- n && D(n.identity, e) && (n.canceled = !0);
295
+ n && E(n.identity, e) && (n.canceled = !0);
296
296
  }
297
297
  readResourceUsage() {
298
- return x(this.executeArchive);
298
+ return b(this.executeArchive);
299
299
  }
300
300
  latchResourceFailure(e) {
301
- let t = e instanceof r ? e : c(e);
301
+ let t = e instanceof r ? e : a(e);
302
302
  t && (this.resourceFailure ??= t);
303
303
  }
304
304
  staleLifecycleResponse(e) {
305
305
  return {
306
- protocol: a,
306
+ protocol: i,
307
307
  kind: "error",
308
308
  sessionId: e.sessionId,
309
309
  operationId: e.operationId,
@@ -317,25 +317,25 @@ var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
317
317
  };
318
318
  }
319
319
  };
320
- function E(e) {
320
+ function T(e) {
321
321
  if (!Number.isSafeInteger(e.sessionId) || e.sessionId <= 0) throw RangeError("session id must be a positive safe integer");
322
322
  if (!Number.isSafeInteger(e.operationId) || e.operationId <= 0) throw RangeError("operation id must be a positive safe integer");
323
323
  if (!Number.isSafeInteger(e.generation) || e.generation <= 0) throw RangeError("generation must be a positive safe integer");
324
324
  }
325
- function D(e, t) {
325
+ function E(e, t) {
326
326
  return e.sessionId === t.sessionId && e.operationId === t.operationId && e.generation === t.generation;
327
327
  }
328
- var O = /* @__PURE__ */ e({
329
- PptxArchive: () => k,
328
+ var D = /* @__PURE__ */ e({
329
+ PptxArchive: () => O,
330
330
  default: () => Q,
331
- extract_font: () => A,
332
- extract_image: () => j,
333
- extract_media: () => ee,
331
+ extract_font: () => te,
332
+ extract_image: () => ne,
333
+ extract_media: () => k,
334
334
  initSync: () => ie,
335
- parse_pptx: () => te,
336
- pptx_to_markdown: () => ne,
335
+ parse_pptx: () => A,
336
+ pptx_to_markdown: () => j,
337
337
  reinit: () => ae
338
- }), k = class {
338
+ }), O = class {
339
339
  __destroy_into_raw() {
340
340
  let e = this.__wbg_ptr;
341
341
  return this.__wbg_ptr = 0, N.unregister(this), e;
@@ -423,32 +423,32 @@ var O = /* @__PURE__ */ e({
423
423
  }
424
424
  }
425
425
  };
426
- Symbol.dispose && (k.prototype[Symbol.dispose] = k.prototype.free);
427
- function A(e, t, n, r) {
426
+ Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
427
+ function te(e, t, n, r) {
428
428
  let i = V(e, X.__wbindgen_malloc), a = Y, o = H(t, X.__wbindgen_malloc, X.__wbindgen_realloc), s = Y, c = X.extract_font(i, a, o, s, !B(n), B(n) ? BigInt(0) : n, !B(r), B(r) ? BigInt(0) : r);
429
429
  if (c[3]) throw U(c[2]);
430
430
  var l = P(c[0], c[1]).slice();
431
431
  return X.__wbindgen_free(c[0], c[1] * 1, 1), l;
432
432
  }
433
- function j(e, t, n, r) {
433
+ function ne(e, t, n, r) {
434
434
  let i = V(e, X.__wbindgen_malloc), a = Y, o = H(t, X.__wbindgen_malloc, X.__wbindgen_realloc), s = Y, c = X.extract_image(i, a, o, s, !B(n), B(n) ? BigInt(0) : n, !B(r), B(r) ? BigInt(0) : r);
435
435
  if (c[3]) throw U(c[2]);
436
436
  var l = P(c[0], c[1]).slice();
437
437
  return X.__wbindgen_free(c[0], c[1] * 1, 1), l;
438
438
  }
439
- function ee(e, t, n, r) {
439
+ function k(e, t, n, r) {
440
440
  let i = V(e, X.__wbindgen_malloc), a = Y, o = H(t, X.__wbindgen_malloc, X.__wbindgen_realloc), s = Y, c = X.extract_media(i, a, o, s, !B(n), B(n) ? BigInt(0) : n, !B(r), B(r) ? BigInt(0) : r);
441
441
  if (c[3]) throw U(c[2]);
442
442
  var l = P(c[0], c[1]).slice();
443
443
  return X.__wbindgen_free(c[0], c[1] * 1, 1), l;
444
444
  }
445
- function te(e, t, n) {
445
+ function A(e, t, n) {
446
446
  let r = V(e, X.__wbindgen_malloc), i = Y, a = X.parse_pptx(r, i, !B(t), B(t) ? BigInt(0) : t, !B(n), B(n) ? BigInt(0) : n);
447
447
  if (a[3]) throw U(a[2]);
448
448
  var o = P(a[0], a[1]).slice();
449
449
  return X.__wbindgen_free(a[0], a[1] * 1, 1), o;
450
450
  }
451
- function ne(e, t, n) {
451
+ function j(e, t, n) {
452
452
  let r, i;
453
453
  try {
454
454
  let s = V(e, X.__wbindgen_malloc), c = Y, l = X.pptx_to_markdown(s, c, !B(t), B(t) ? BigInt(0) : t, !B(n), B(n) ? BigInt(0) : n);
@@ -606,9 +606,9 @@ async function Q(e) {
606
606
  async function ae(e) {
607
607
  return X = void 0, F = null, R = null, Q(e);
608
608
  }
609
- var $ = "PPTX presentation session was aborted", oe = b(O, "PPTX");
609
+ var $ = "PPTX presentation session was aborted", oe = y(D, "PPTX");
610
610
  async function se(e, n, r = {}) {
611
- let i = l(r), a = new p({
611
+ let i = o(r), a = new u({
612
612
  enabled: i.debug || i.onResourceMetrics !== void 0,
613
613
  format: "pptx",
614
614
  mode: "node",
@@ -620,17 +620,17 @@ async function se(e, n, r = {}) {
620
620
  a.setSourceBytes(e.byteLength);
621
621
  let s;
622
622
  try {
623
- _(r.signal, $);
624
- let [c, l, u] = o(i.policy), d = k;
625
- s = await oe(n).open(() => new d(e, c, l, u), {
623
+ g(r.signal, $);
624
+ let [o, c, l] = ee(i.policy), u = O;
625
+ s = await oe(n).open(() => new u(e, o, c, l), {
626
626
  signal: r.signal,
627
- abortError: () => v($),
627
+ abortError: () => _($),
628
628
  disposeOnAbort: (e) => e.free()
629
- }), _(r.signal, $);
630
- let f = s.proxy, p = t(JSON.parse(new TextDecoder().decode(f.presentation_bootstrap())));
629
+ }), g(r.signal, $);
630
+ let d = s.proxy, f = t(JSON.parse(new TextDecoder().decode(d.presentation_bootstrap())));
631
631
  return a.checkpoint("presentation bootstrap ready"), {
632
- archive: f,
633
- bootstrap: p,
632
+ archive: d,
633
+ bootstrap: f,
634
634
  metrics: a,
635
635
  closeArchive: () => s?.close((e) => e.free())
636
636
  };
@@ -638,9 +638,9 @@ async function se(e, n, r = {}) {
638
638
  try {
639
639
  s?.close((e) => e.free());
640
640
  } catch {}
641
- let t = d(e) ?? e;
641
+ let t = c(e) ?? e;
642
642
  throw a.fail(t), t;
643
643
  }
644
644
  }
645
- var ce = /* @__PURE__ */ e({ renderSlide: () => n });
646
- export { x as i, se as n, T as r, ce as t };
645
+ var ce = /* @__PURE__ */ e({ renderSlideWithEmbeddedFonts: () => n });
646
+ export { b as i, se as n, w as r, ce as t };