@silurus/ooxml 0.89.11 → 0.89.12
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/assets/{render-worker-jGsxSIGb.js → render-worker-BD7EhV2y.js} +17 -17
- package/dist/assets/render-worker-BiKxVVB1.js +16 -0
- package/dist/assets/{render-worker-j1PT6zsz.js → render-worker-CVqXtEMW.js} +13 -13
- package/dist/{bounded-raw-part-cache-B5a6cGKO.js → bounded-raw-part-cache-D2Q0FIoE.js} +719 -663
- package/dist/{canvas-viewer-mechanics-BsqaoYgK.js → canvas-viewer-mechanics-_ZBxW_sN.js} +1 -1
- package/dist/{comment-overlay-controller-b3tKmzMa.js → comment-overlay-controller-CVvQCYhQ.js} +8 -8
- package/dist/{comment-ui-runtime-Bp37ytDC.js → comment-ui-runtime-CYkt_9-b.js} +2 -2
- package/dist/{comment-ui-runtime-DM65K2I9.js → comment-ui-runtime-DhTTGSay.js} +3 -3
- package/dist/{document-model-source-zVS9qt4o.js → document-model-source-C6wGN8m3.js} +45 -45
- package/dist/{document-pull-client-DIRkBd6z.js → document-pull-client-BfGXPuQc.js} +640 -640
- package/dist/{document-pull-worker-hMKJ5RdB.js → document-pull-worker-Bl3wlLXC.js} +4 -4
- package/dist/{docx-hRmOTAbV.js → docx-CNscQaT8.js} +496 -496
- package/dist/{docx-Bsp9NgeG.js → docx-Cry-eklK.js} +7 -7
- package/dist/{docx-model-source-BSNwPdvb.js → docx-model-source-Cj8DGdLl.js} +6 -6
- package/dist/docx.mjs +3 -3
- package/dist/{drawingml-shape-B1_kg4BV.js → drawingml-shape-CFzAXuvj.js} +88 -116
- package/dist/{font-preload-demand-NqcVKIpX.js → font-preload-demand-DhFVOxz4.js} +1 -1
- package/dist/{host-layout-measure-IFLllYwV.js → host-layout-measure-CWKDrVpo.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/internal-companion.mjs +2 -2
- package/dist/{line-distribute-CwtditQo.js → line-distribute-DxnuaRdO.js} +24 -24
- package/dist/{model-source-Cch44xsb.js → model-source-DksDDVb4.js} +1 -1
- package/dist/{model-source-session-DRcqFGfM.js → model-source-session-8wqlNxsQ.js} +2 -2
- package/dist/{model-source-session-ClNCRDOg.js → model-source-session-BogYRDwj.js} +2 -2
- package/dist/{model-source-session-DSABX94B.js → model-source-session-ifwyPPhZ.js} +2 -2
- package/dist/node.mjs +4 -4
- package/dist/{pptx-DbjWegUB.js → pptx-Bons7t3Y.js} +26 -26
- package/dist/{pptx-C1CiFW1D.js → pptx-CQtPbMxI.js} +10 -10
- package/dist/{pptx-model-source-C9TuBisH.js → pptx-model-source-mg-O0LR9.js} +5 -5
- package/dist/pptx.mjs +4 -4
- package/dist/{presentation-model-source-DLNioq7T.js → presentation-model-source-CK6_hY1W.js} +5 -5
- package/dist/{render-Bf_Gywxw.js → render-C7F07FrC.js} +2 -2
- package/dist/{render-worker-host-CVr53kg0.js → render-worker-host-Cj-U3WPe.js} +1 -1
- package/dist/{render-worker-host-PC5hgu9x.js → render-worker-host-D7L6GMbE.js} +1 -1
- package/dist/{render-worker-host-pKls3F_t.js → render-worker-host-stI5Lppz.js} +1 -1
- package/dist/{renderer-DuYC3xXi.js → renderer-N76SnQW7.js} +1286 -1212
- package/dist/{resource-measurement-CfJtbwiR.js → resource-measurement-B2hzmYlu.js} +90 -90
- package/dist/{session-DPXK_lpI.js → session-D5au4i-W.js} +166 -166
- package/dist/{slide-pull-client-3g6TxaKa.js → slide-pull-client-3mJmNjjB.js} +854 -904
- package/dist/{wasm-runtime-generation-D97yoAXz.js → wasm-runtime-generation--_2SjW2G.js} +1 -1
- package/dist/{workbook-model-source-D1dmkDMP.js → workbook-model-source-CI1q6nxK.js} +6 -6
- package/dist/{worksheet-pull-client-BudfclVl.js → worksheet-pull-client-C2h4AMwt.js} +18 -18
- package/dist/{xlsx-DBhYlJKp.js → xlsx-CKXeKvxl.js} +452 -452
- package/dist/{xlsx-DA0uR1B1.js → xlsx-DujIp7CR.js} +4 -4
- package/dist/{xlsx-model-source-zemVDAfl.js → xlsx-model-source-fs0svOUo.js} +6 -6
- package/dist/xlsx.mjs +4 -4
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/assets/render-worker-Ck21oePL.js +0 -16
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { t as e } from "./chunk-D5OxutzX.js";
|
|
2
|
-
import { a as t, u as n } from "./slide-pull-client-
|
|
2
|
+
import { a as t, u as n } from "./slide-pull-client-3mJmNjjB.js";
|
|
3
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
|
|
5
|
-
import { n as
|
|
6
|
-
import { S as
|
|
7
|
-
import { t as
|
|
8
|
-
function
|
|
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 d, U as f, W as p, X as m, j as h, xn as g } from "./bounded-raw-part-cache-D2Q0FIoE.js";
|
|
5
|
+
import { n as _, t as v } from "./abort-JztSoyw2.js";
|
|
6
|
+
import { S as y } from "./worksheet-pull-client-C2h4AMwt.js";
|
|
7
|
+
import { t as b } from "./wasm-runtime-generation--_2SjW2G.js";
|
|
8
|
+
function x(e) {
|
|
9
9
|
try {
|
|
10
|
-
return
|
|
10
|
+
return f(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
|
|
16
|
+
function S(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,
|
|
21
|
+
let t = i(n, r, x(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,7 +29,7 @@ function x(e, t, n, r, i) {
|
|
|
29
29
|
throw e;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var C = "ooxml-pull-resetting", w = "ooxml-pull-reset-failed", T = class {
|
|
33
33
|
archive;
|
|
34
34
|
acceptSlide;
|
|
35
35
|
executeArchive;
|
|
@@ -48,7 +48,7 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
48
48
|
return this.coordinatorGeneration;
|
|
49
49
|
}
|
|
50
50
|
reserveOpen(e) {
|
|
51
|
-
if (this.assertReady(),
|
|
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");
|
|
52
52
|
this.pendingOpens.set(e.sessionId, {
|
|
53
53
|
identity: e,
|
|
54
54
|
canceled: !1
|
|
@@ -64,14 +64,14 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = 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 || !
|
|
67
|
+
if (!n || !D(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
72
|
let i, a = !1, o = new h({
|
|
73
73
|
...t,
|
|
74
|
-
maxByteCredit:
|
|
74
|
+
maxByteCredit: g,
|
|
75
75
|
coordinator: this.coordinator,
|
|
76
76
|
driver: {
|
|
77
77
|
pull: (n) => {
|
|
@@ -79,9 +79,9 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = 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
|
|
82
|
+
throw m(e, n, g) || (this.latchResourceFailure(e), e);
|
|
83
83
|
}
|
|
84
|
-
let o =
|
|
84
|
+
let o = y(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 S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
93
93
|
acknowledge: () => {
|
|
94
94
|
if (!a) throw Error("slide unit is not awaiting acknowledgement");
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
S(this.executeArchive, t, e, i, this.acceptSlide);
|
|
97
97
|
} catch (e) {
|
|
98
98
|
throw this.latchResourceFailure(e), e;
|
|
99
99
|
}
|
|
@@ -156,7 +156,7 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = 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 =
|
|
159
|
+
let n = D(r.identity, e);
|
|
160
160
|
return n && (r.canceled = !0), t(n ? {
|
|
161
161
|
protocol: i,
|
|
162
162
|
kind: "accepted",
|
|
@@ -235,7 +235,7 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
235
235
|
...n,
|
|
236
236
|
requestId: e++
|
|
237
237
|
}, (e) => {
|
|
238
|
-
e.kind === "error" && (r =
|
|
238
|
+
e.kind === "error" && (r = p(e.error));
|
|
239
239
|
}), r) throw r;
|
|
240
240
|
}
|
|
241
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;
|
|
@@ -245,7 +245,7 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
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 ?
|
|
248
|
+
return t.name = "PullSessionLifecycleError", Object.assign(t, { code: e ? w : C });
|
|
249
249
|
}
|
|
250
250
|
captureResetIdentities() {
|
|
251
251
|
for (let { identity: e } of this.sessions.values()) this.resetIdentities.set(e.sessionId, e);
|
|
@@ -254,7 +254,7 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = 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 && !
|
|
257
|
+
return t && !D(t, e) ? this.staleLifecycleResponse(e) : {
|
|
258
258
|
protocol: i,
|
|
259
259
|
kind: "accepted",
|
|
260
260
|
sessionId: e.sessionId,
|
|
@@ -292,10 +292,10 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
let n = this.pendingOpens.get(e.sessionId);
|
|
295
|
-
n &&
|
|
295
|
+
n && D(n.identity, e) && (n.canceled = !0);
|
|
296
296
|
}
|
|
297
297
|
readResourceUsage() {
|
|
298
|
-
return
|
|
298
|
+
return x(this.executeArchive);
|
|
299
299
|
}
|
|
300
300
|
latchResourceFailure(e) {
|
|
301
301
|
let t = e instanceof r ? e : a(e);
|
|
@@ -317,212 +317,212 @@ var S = "ooxml-pull-resetting", C = "ooxml-pull-reset-failed", w = class {
|
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
function
|
|
320
|
+
function E(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
|
|
325
|
+
function D(e, t) {
|
|
326
326
|
return e.sessionId === t.sessionId && e.operationId === t.operationId && e.generation === t.generation;
|
|
327
327
|
}
|
|
328
|
-
var
|
|
328
|
+
var ee = /* @__PURE__ */ e({
|
|
329
329
|
PptxArchive: () => O,
|
|
330
|
-
default: () =>
|
|
330
|
+
default: () => Z,
|
|
331
331
|
extract_font: () => te,
|
|
332
|
-
extract_image: () =>
|
|
333
|
-
extract_media: () =>
|
|
334
|
-
initSync: () =>
|
|
332
|
+
extract_image: () => k,
|
|
333
|
+
extract_media: () => ne,
|
|
334
|
+
initSync: () => ae,
|
|
335
335
|
parse_pptx: () => A,
|
|
336
|
-
pptx_to_markdown: () =>
|
|
337
|
-
reinit: () =>
|
|
336
|
+
pptx_to_markdown: () => re,
|
|
337
|
+
reinit: () => Q
|
|
338
338
|
}), O = class {
|
|
339
339
|
__destroy_into_raw() {
|
|
340
340
|
let e = this.__wbg_ptr;
|
|
341
|
-
return this.__wbg_ptr = 0,
|
|
341
|
+
return this.__wbg_ptr = 0, M.unregister(this), e;
|
|
342
342
|
}
|
|
343
343
|
free() {
|
|
344
344
|
let e = this.__destroy_into_raw();
|
|
345
|
-
|
|
345
|
+
Y.__wbg_pptxarchive_free(e, 0);
|
|
346
346
|
}
|
|
347
347
|
acknowledge_slide(e, t) {
|
|
348
|
-
let n =
|
|
349
|
-
if (n[1]) throw
|
|
348
|
+
let n = Y.pptxarchive_acknowledge_slide(this.__wbg_ptr, e, t);
|
|
349
|
+
if (n[1]) throw H(n[0]);
|
|
350
350
|
}
|
|
351
351
|
assert_healthy() {
|
|
352
|
-
let e =
|
|
353
|
-
if (e[1]) throw
|
|
352
|
+
let e = Y.pptxarchive_assert_healthy(this.__wbg_ptr);
|
|
353
|
+
if (e[1]) throw H(e[0]);
|
|
354
354
|
}
|
|
355
355
|
cancel_slide() {
|
|
356
|
-
|
|
356
|
+
Y.pptxarchive_cancel_slide(this.__wbg_ptr);
|
|
357
357
|
}
|
|
358
358
|
close_presentation_session() {
|
|
359
|
-
|
|
359
|
+
Y.pptxarchive_close_presentation_session(this.__wbg_ptr);
|
|
360
360
|
}
|
|
361
361
|
extract_font(e) {
|
|
362
|
-
let t =
|
|
363
|
-
if (r[3]) throw
|
|
364
|
-
var i =
|
|
365
|
-
return
|
|
362
|
+
let t = V(e, Y.__wbindgen_malloc, Y.__wbindgen_realloc), n = J, r = Y.pptxarchive_extract_font(this.__wbg_ptr, t, n);
|
|
363
|
+
if (r[3]) throw H(r[2]);
|
|
364
|
+
var i = N(r[0], r[1]).slice();
|
|
365
|
+
return Y.__wbindgen_free(r[0], r[1] * 1, 1), i;
|
|
366
366
|
}
|
|
367
367
|
extract_image(e) {
|
|
368
|
-
let t =
|
|
369
|
-
if (r[3]) throw
|
|
370
|
-
var i =
|
|
371
|
-
return
|
|
368
|
+
let t = V(e, Y.__wbindgen_malloc, Y.__wbindgen_realloc), n = J, r = Y.pptxarchive_extract_image(this.__wbg_ptr, t, n);
|
|
369
|
+
if (r[3]) throw H(r[2]);
|
|
370
|
+
var i = N(r[0], r[1]).slice();
|
|
371
|
+
return Y.__wbindgen_free(r[0], r[1] * 1, 1), i;
|
|
372
372
|
}
|
|
373
373
|
extract_media(e) {
|
|
374
|
-
let t =
|
|
375
|
-
if (r[3]) throw
|
|
376
|
-
var i =
|
|
377
|
-
return
|
|
374
|
+
let t = V(e, Y.__wbindgen_malloc, Y.__wbindgen_realloc), n = J, r = Y.pptxarchive_extract_media(this.__wbg_ptr, t, n);
|
|
375
|
+
if (r[3]) throw H(r[2]);
|
|
376
|
+
var i = N(r[0], r[1]).slice();
|
|
377
|
+
return Y.__wbindgen_free(r[0], r[1] * 1, 1), i;
|
|
378
378
|
}
|
|
379
379
|
constructor(e, t, n, r) {
|
|
380
|
-
let i =
|
|
381
|
-
if (o[2]) throw
|
|
382
|
-
return this.__wbg_ptr = o[0] >>> 0,
|
|
380
|
+
let i = B(e, Y.__wbindgen_malloc), a = J, o = Y.pptxarchive_new(i, a, !z(t), z(t) ? BigInt(0) : t, !z(n), z(n) ? BigInt(0) : n, !z(r), z(r) ? BigInt(0) : r);
|
|
381
|
+
if (o[2]) throw H(o[1]);
|
|
382
|
+
return this.__wbg_ptr = o[0] >>> 0, M.register(this, this.__wbg_ptr, this), this;
|
|
383
383
|
}
|
|
384
384
|
parse() {
|
|
385
|
-
let e =
|
|
386
|
-
if (e[3]) throw
|
|
387
|
-
var t =
|
|
388
|
-
return
|
|
385
|
+
let e = Y.pptxarchive_parse(this.__wbg_ptr);
|
|
386
|
+
if (e[3]) throw H(e[2]);
|
|
387
|
+
var t = N(e[0], e[1]).slice();
|
|
388
|
+
return Y.__wbindgen_free(e[0], e[1] * 1, 1), t;
|
|
389
389
|
}
|
|
390
390
|
presentation_bootstrap() {
|
|
391
|
-
let e =
|
|
392
|
-
if (e[3]) throw
|
|
393
|
-
var t =
|
|
394
|
-
return
|
|
391
|
+
let e = Y.pptxarchive_presentation_bootstrap(this.__wbg_ptr);
|
|
392
|
+
if (e[3]) throw H(e[2]);
|
|
393
|
+
var t = N(e[0], e[1]).slice();
|
|
394
|
+
return Y.__wbindgen_free(e[0], e[1] * 1, 1), t;
|
|
395
395
|
}
|
|
396
396
|
pull_slide(e, t, n, r) {
|
|
397
|
-
let i =
|
|
398
|
-
if (i[3]) throw
|
|
399
|
-
var a =
|
|
400
|
-
return
|
|
397
|
+
let i = Y.pptxarchive_pull_slide(this.__wbg_ptr, e, t, n, r);
|
|
398
|
+
if (i[3]) throw H(i[2]);
|
|
399
|
+
var a = N(i[0], i[1]).slice();
|
|
400
|
+
return Y.__wbindgen_free(i[0], i[1] * 1, 1), a;
|
|
401
401
|
}
|
|
402
402
|
resource_usage() {
|
|
403
|
-
let e =
|
|
404
|
-
if (e[3]) throw
|
|
405
|
-
var t =
|
|
406
|
-
return
|
|
403
|
+
let e = Y.pptxarchive_resource_usage(this.__wbg_ptr);
|
|
404
|
+
if (e[3]) throw H(e[2]);
|
|
405
|
+
var t = N(e[0], e[1]).slice();
|
|
406
|
+
return Y.__wbindgen_free(e[0], e[1] * 1, 1), t;
|
|
407
407
|
}
|
|
408
408
|
slide_cursor_resource_usage() {
|
|
409
|
-
let e =
|
|
410
|
-
if (e[3]) throw
|
|
411
|
-
var t =
|
|
412
|
-
return
|
|
409
|
+
let e = Y.pptxarchive_slide_cursor_resource_usage(this.__wbg_ptr);
|
|
410
|
+
if (e[3]) throw H(e[2]);
|
|
411
|
+
var t = N(e[0], e[1]).slice();
|
|
412
|
+
return Y.__wbindgen_free(e[0], e[1] * 1, 1), t;
|
|
413
413
|
}
|
|
414
414
|
to_markdown() {
|
|
415
415
|
let e, t;
|
|
416
416
|
try {
|
|
417
|
-
let i =
|
|
417
|
+
let i = Y.pptxarchive_to_markdown(this.__wbg_ptr);
|
|
418
418
|
var n = i[0], r = i[1];
|
|
419
|
-
if (i[3]) throw n = 0, r = 0,
|
|
420
|
-
return e = n, t = r,
|
|
419
|
+
if (i[3]) throw n = 0, r = 0, H(i[2]);
|
|
420
|
+
return e = n, t = r, I(n, r);
|
|
421
421
|
} finally {
|
|
422
|
-
|
|
422
|
+
Y.__wbindgen_free(e, t, 1);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
Symbol.dispose && (O.prototype[Symbol.dispose] = O.prototype.free);
|
|
427
427
|
function te(e, t, n, r) {
|
|
428
|
-
let i =
|
|
429
|
-
if (c[3]) throw
|
|
430
|
-
var l =
|
|
431
|
-
return
|
|
432
|
-
}
|
|
433
|
-
function ne(e, t, n, r) {
|
|
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
|
-
if (c[3]) throw U(c[2]);
|
|
436
|
-
var l = P(c[0], c[1]).slice();
|
|
437
|
-
return X.__wbindgen_free(c[0], c[1] * 1, 1), l;
|
|
428
|
+
let i = B(e, Y.__wbindgen_malloc), a = J, o = V(t, Y.__wbindgen_malloc, Y.__wbindgen_realloc), s = J, c = Y.extract_font(i, a, o, s, !z(n), z(n) ? BigInt(0) : n, !z(r), z(r) ? BigInt(0) : r);
|
|
429
|
+
if (c[3]) throw H(c[2]);
|
|
430
|
+
var l = N(c[0], c[1]).slice();
|
|
431
|
+
return Y.__wbindgen_free(c[0], c[1] * 1, 1), l;
|
|
438
432
|
}
|
|
439
433
|
function k(e, t, n, r) {
|
|
440
|
-
let i =
|
|
441
|
-
if (c[3]) throw
|
|
442
|
-
var l =
|
|
443
|
-
return
|
|
434
|
+
let i = B(e, Y.__wbindgen_malloc), a = J, o = V(t, Y.__wbindgen_malloc, Y.__wbindgen_realloc), s = J, c = Y.extract_image(i, a, o, s, !z(n), z(n) ? BigInt(0) : n, !z(r), z(r) ? BigInt(0) : r);
|
|
435
|
+
if (c[3]) throw H(c[2]);
|
|
436
|
+
var l = N(c[0], c[1]).slice();
|
|
437
|
+
return Y.__wbindgen_free(c[0], c[1] * 1, 1), l;
|
|
438
|
+
}
|
|
439
|
+
function ne(e, t, n, r) {
|
|
440
|
+
let i = B(e, Y.__wbindgen_malloc), a = J, o = V(t, Y.__wbindgen_malloc, Y.__wbindgen_realloc), s = J, c = Y.extract_media(i, a, o, s, !z(n), z(n) ? BigInt(0) : n, !z(r), z(r) ? BigInt(0) : r);
|
|
441
|
+
if (c[3]) throw H(c[2]);
|
|
442
|
+
var l = N(c[0], c[1]).slice();
|
|
443
|
+
return Y.__wbindgen_free(c[0], c[1] * 1, 1), l;
|
|
444
444
|
}
|
|
445
445
|
function A(e, t, n) {
|
|
446
|
-
let r =
|
|
447
|
-
if (a[3]) throw
|
|
448
|
-
var o =
|
|
449
|
-
return
|
|
446
|
+
let r = B(e, Y.__wbindgen_malloc), i = J, a = Y.parse_pptx(r, i, !z(t), z(t) ? BigInt(0) : t, !z(n), z(n) ? BigInt(0) : n);
|
|
447
|
+
if (a[3]) throw H(a[2]);
|
|
448
|
+
var o = N(a[0], a[1]).slice();
|
|
449
|
+
return Y.__wbindgen_free(a[0], a[1] * 1, 1), o;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function re(e, t, n) {
|
|
452
452
|
let r, i;
|
|
453
453
|
try {
|
|
454
|
-
let s =
|
|
454
|
+
let s = B(e, Y.__wbindgen_malloc), c = J, l = Y.pptx_to_markdown(s, c, !z(t), z(t) ? BigInt(0) : t, !z(n), z(n) ? BigInt(0) : n);
|
|
455
455
|
var a = l[0], o = l[1];
|
|
456
|
-
if (l[3]) throw a = 0, o = 0,
|
|
457
|
-
return r = a, i = o,
|
|
456
|
+
if (l[3]) throw a = 0, o = 0, H(l[2]);
|
|
457
|
+
return r = a, i = o, I(a, o);
|
|
458
458
|
} finally {
|
|
459
|
-
|
|
459
|
+
Y.__wbindgen_free(r, i, 1);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function j() {
|
|
463
463
|
return {
|
|
464
464
|
__proto__: null,
|
|
465
465
|
"./pptx_parser_bg.js": {
|
|
466
466
|
__proto__: null,
|
|
467
467
|
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(e, t) {
|
|
468
|
-
throw Error(
|
|
468
|
+
throw Error(I(e, t));
|
|
469
469
|
},
|
|
470
470
|
__wbg_error_a6fa202b58aa1cd3: function(e, t) {
|
|
471
471
|
let n, r;
|
|
472
472
|
try {
|
|
473
|
-
n = e, r = t, console.error(
|
|
473
|
+
n = e, r = t, console.error(I(e, t));
|
|
474
474
|
} finally {
|
|
475
|
-
|
|
475
|
+
Y.__wbindgen_free(n, r, 1);
|
|
476
476
|
}
|
|
477
477
|
},
|
|
478
478
|
__wbg_new_227d7c05414eb861: function() {
|
|
479
479
|
return /* @__PURE__ */ Error();
|
|
480
480
|
},
|
|
481
481
|
__wbg_stack_3b0d974bbf31e44f: function(e, t) {
|
|
482
|
-
let n = t.stack, r =
|
|
483
|
-
|
|
482
|
+
let n = t.stack, r = V(n, Y.__wbindgen_malloc, Y.__wbindgen_realloc), i = J;
|
|
483
|
+
F().setInt32(e + 4, i, !0), F().setInt32(e + 0, r, !0);
|
|
484
484
|
},
|
|
485
485
|
__wbindgen_cast_0000000000000001: function(e, t) {
|
|
486
|
-
return
|
|
486
|
+
return I(e, t);
|
|
487
487
|
},
|
|
488
488
|
__wbindgen_init_externref_table: function() {
|
|
489
|
-
let e =
|
|
489
|
+
let e = Y.__wbindgen_externrefs, t = e.grow(4);
|
|
490
490
|
e.set(0, void 0), e.set(t + 0, void 0), e.set(t + 1, null), e.set(t + 2, !0), e.set(t + 3, !1);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
var
|
|
495
|
+
var M = typeof FinalizationRegistry > "u" ? {
|
|
496
496
|
register: () => {},
|
|
497
497
|
unregister: () => {}
|
|
498
|
-
} : new FinalizationRegistry((e) =>
|
|
499
|
-
function
|
|
500
|
-
return e >>>= 0,
|
|
498
|
+
} : new FinalizationRegistry((e) => Y.__wbg_pptxarchive_free(e >>> 0, 1));
|
|
499
|
+
function N(e, t) {
|
|
500
|
+
return e >>>= 0, R().subarray(e / 1, e / 1 + t);
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
504
|
-
return (
|
|
502
|
+
var P = null;
|
|
503
|
+
function F() {
|
|
504
|
+
return (P === null || P.buffer.detached === !0 || P.buffer.detached === void 0 && P.buffer !== Y.memory.buffer) && (P = new DataView(Y.memory.buffer)), P;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
507
|
-
return e >>>= 0,
|
|
506
|
+
function I(e, t) {
|
|
507
|
+
return e >>>= 0, K(e, t);
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
511
|
-
return (
|
|
509
|
+
var L = null;
|
|
510
|
+
function R() {
|
|
511
|
+
return (L === null || L.byteLength === 0) && (L = new Uint8Array(Y.memory.buffer)), L;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function z(e) {
|
|
514
514
|
return e == null;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function B(e, t) {
|
|
517
517
|
let n = t(e.length * 1, 1) >>> 0;
|
|
518
|
-
return
|
|
518
|
+
return R().set(e, n / 1), J = e.length, n;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function V(e, t, n) {
|
|
521
521
|
if (n === void 0) {
|
|
522
|
-
let n =
|
|
523
|
-
return
|
|
522
|
+
let n = q.encode(e), r = t(n.length, 1) >>> 0;
|
|
523
|
+
return R().subarray(r, r + n.length).set(n), J = n.length, r;
|
|
524
524
|
}
|
|
525
|
-
let r = e.length, i = t(r, 1) >>> 0, a =
|
|
525
|
+
let r = e.length, i = t(r, 1) >>> 0, a = R(), o = 0;
|
|
526
526
|
for (; o < r; o++) {
|
|
527
527
|
let t = e.charCodeAt(o);
|
|
528
528
|
if (t > 127) break;
|
|
@@ -530,40 +530,40 @@ function H(e, t, n) {
|
|
|
530
530
|
}
|
|
531
531
|
if (o !== r) {
|
|
532
532
|
o !== 0 && (e = e.slice(o)), i = n(i, r, r = o + e.length * 3, 1) >>> 0;
|
|
533
|
-
let t =
|
|
533
|
+
let t = R().subarray(i + o, i + r), a = q.encodeInto(e, t);
|
|
534
534
|
o += a.written, i = n(i, r, o, 1) >>> 0;
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return J = o, i;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
let t =
|
|
540
|
-
return
|
|
538
|
+
function H(e) {
|
|
539
|
+
let t = Y.__wbindgen_externrefs.get(e);
|
|
540
|
+
return Y.__externref_table_dealloc(e), t;
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var U = new TextDecoder("utf-8", {
|
|
543
543
|
ignoreBOM: !0,
|
|
544
544
|
fatal: !0
|
|
545
545
|
});
|
|
546
|
-
|
|
547
|
-
var
|
|
548
|
-
function
|
|
549
|
-
return
|
|
546
|
+
U.decode();
|
|
547
|
+
var W = 2146435072, G = 0;
|
|
548
|
+
function K(e, t) {
|
|
549
|
+
return G += t, G >= W && (U = new TextDecoder("utf-8", {
|
|
550
550
|
ignoreBOM: !0,
|
|
551
551
|
fatal: !0
|
|
552
|
-
}),
|
|
552
|
+
}), U.decode(), G = t), U.decode(R().subarray(e, e + t));
|
|
553
553
|
}
|
|
554
|
-
var
|
|
555
|
-
"encodeInto" in
|
|
556
|
-
let n =
|
|
554
|
+
var q = new TextEncoder();
|
|
555
|
+
"encodeInto" in q || (q.encodeInto = function(e, t) {
|
|
556
|
+
let n = q.encode(e);
|
|
557
557
|
return t.set(n), {
|
|
558
558
|
read: e.length,
|
|
559
559
|
written: n.length
|
|
560
560
|
};
|
|
561
561
|
});
|
|
562
|
-
var
|
|
563
|
-
function
|
|
564
|
-
return
|
|
562
|
+
var J = 0, Y;
|
|
563
|
+
function X(e, t) {
|
|
564
|
+
return Y = e.exports, P = null, L = null, Y.__wbindgen_start(), Y;
|
|
565
565
|
}
|
|
566
|
-
async function
|
|
566
|
+
async function ie(e, t) {
|
|
567
567
|
if (typeof Response == "function" && e instanceof Response) {
|
|
568
568
|
if (typeof WebAssembly.instantiateStreaming == "function") try {
|
|
569
569
|
return await WebAssembly.instantiateStreaming(e, t);
|
|
@@ -589,24 +589,24 @@ async function re(e, t) {
|
|
|
589
589
|
return !1;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
function
|
|
593
|
-
if (
|
|
592
|
+
function ae(e) {
|
|
593
|
+
if (Y !== void 0) return Y;
|
|
594
594
|
e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module: e} = e : console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));
|
|
595
|
-
let t =
|
|
596
|
-
return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)),
|
|
595
|
+
let t = j();
|
|
596
|
+
return e instanceof WebAssembly.Module || (e = new WebAssembly.Module(e)), X(new WebAssembly.Instance(e, t), e);
|
|
597
597
|
}
|
|
598
|
-
async function
|
|
599
|
-
if (
|
|
598
|
+
async function Z(e) {
|
|
599
|
+
if (Y !== void 0) return Y;
|
|
600
600
|
e !== void 0 && (Object.getPrototypeOf(e) === Object.prototype ? {module_or_path: e} = e : console.warn("using deprecated parameters for the initialization function; pass a single object instead"));
|
|
601
|
-
let t =
|
|
601
|
+
let t = j();
|
|
602
602
|
(typeof e == "string" || typeof Request == "function" && e instanceof Request || typeof URL == "function" && e instanceof URL) && (e = fetch(e));
|
|
603
|
-
let { instance: n, module: r } = await
|
|
604
|
-
return
|
|
603
|
+
let { instance: n, module: r } = await ie(await e, t);
|
|
604
|
+
return X(n, r);
|
|
605
605
|
}
|
|
606
|
-
async function
|
|
607
|
-
return
|
|
606
|
+
async function Q(e) {
|
|
607
|
+
return Y = void 0, P = null, L = null, Z(e);
|
|
608
608
|
}
|
|
609
|
-
var $ = "PPTX presentation session was aborted", oe =
|
|
609
|
+
var $ = "PPTX presentation session was aborted", oe = b(ee, "PPTX");
|
|
610
610
|
async function se(e, n, r = {}) {
|
|
611
611
|
let i = o(r), a = new u({
|
|
612
612
|
enabled: i.debug || i.onResourceMetrics !== void 0,
|
|
@@ -620,17 +620,17 @@ async function se(e, n, r = {}) {
|
|
|
620
620
|
a.setSourceBytes(e.byteLength);
|
|
621
621
|
let s;
|
|
622
622
|
try {
|
|
623
|
-
|
|
624
|
-
let [o, c, l] =
|
|
623
|
+
_(r.signal, $);
|
|
624
|
+
let [o, c, l] = d(i.policy), u = O;
|
|
625
625
|
s = await oe(n).open(() => new u(e, o, c, l), {
|
|
626
626
|
signal: r.signal,
|
|
627
|
-
abortError: () =>
|
|
627
|
+
abortError: () => v($),
|
|
628
628
|
disposeOnAbort: (e) => e.free()
|
|
629
|
-
}),
|
|
630
|
-
let
|
|
629
|
+
}), _(r.signal, $);
|
|
630
|
+
let f = s.proxy, p = t(JSON.parse(new TextDecoder().decode(f.presentation_bootstrap())));
|
|
631
631
|
return a.checkpoint("presentation bootstrap ready"), {
|
|
632
|
-
archive:
|
|
633
|
-
bootstrap:
|
|
632
|
+
archive: f,
|
|
633
|
+
bootstrap: p,
|
|
634
634
|
metrics: a,
|
|
635
635
|
closeArchive: () => s?.close((e) => e.free())
|
|
636
636
|
};
|
|
@@ -643,4 +643,4 @@ async function se(e, n, r = {}) {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
var ce = /* @__PURE__ */ e({ renderSlideWithEmbeddedFonts: () => n });
|
|
646
|
-
export {
|
|
646
|
+
export { x as i, se as n, T as r, ce as t };
|