pdf-oxide-wasm 0.3.40 → 0.3.42
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/bundler/pdf_oxide.d.ts +21 -0
- package/bundler/pdf_oxide.js +1 -1
- package/bundler/pdf_oxide_bg.js +196 -114
- package/bundler/pdf_oxide_bg.wasm +0 -0
- package/bundler/pdf_oxide_bg.wasm.d.ts +3 -0
- package/nodejs/pdf_oxide.d.ts +21 -0
- package/nodejs/pdf_oxide.js +200 -115
- package/nodejs/pdf_oxide_bg.wasm +0 -0
- package/nodejs/pdf_oxide_bg.wasm.d.ts +3 -0
- package/package.json +1 -1
- package/web/pdf_oxide.d.ts +24 -0
- package/web/pdf_oxide.js +198 -115
- package/web/pdf_oxide_bg.wasm +0 -0
- package/web/pdf_oxide_bg.wasm.d.ts +3 -0
package/bundler/pdf_oxide_bg.js
CHANGED
|
@@ -24,7 +24,6 @@ export const Align = Object.freeze({
|
|
|
24
24
|
*/
|
|
25
25
|
export class ArtifactStyle {
|
|
26
26
|
static __wrap(ptr) {
|
|
27
|
-
ptr = ptr >>> 0;
|
|
28
27
|
const obj = Object.create(ArtifactStyle.prototype);
|
|
29
28
|
obj.__wbg_ptr = ptr;
|
|
30
29
|
ArtifactStyleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -79,7 +78,7 @@ export class ArtifactStyle {
|
|
|
79
78
|
*/
|
|
80
79
|
constructor() {
|
|
81
80
|
const ret = wasm.wasmartifactstyle_new();
|
|
82
|
-
this.__wbg_ptr = ret
|
|
81
|
+
this.__wbg_ptr = ret;
|
|
83
82
|
ArtifactStyleFinalization.register(this, this.__wbg_ptr, this);
|
|
84
83
|
return this;
|
|
85
84
|
}
|
|
@@ -99,7 +98,6 @@ if (Symbol.dispose) ArtifactStyle.prototype[Symbol.dispose] = ArtifactStyle.prot
|
|
|
99
98
|
*/
|
|
100
99
|
export class StreamingTable {
|
|
101
100
|
static __wrap(ptr) {
|
|
102
|
-
ptr = ptr >>> 0;
|
|
103
101
|
const obj = Object.create(StreamingTable.prototype);
|
|
104
102
|
obj.__wbg_ptr = ptr;
|
|
105
103
|
StreamingTableFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -213,7 +211,6 @@ if (Symbol.dispose) StreamingTable.prototype[Symbol.dispose] = StreamingTable.pr
|
|
|
213
211
|
*/
|
|
214
212
|
export class WasmArtifact {
|
|
215
213
|
static __wrap(ptr) {
|
|
216
|
-
ptr = ptr >>> 0;
|
|
217
214
|
const obj = Object.create(WasmArtifact.prototype);
|
|
218
215
|
obj.__wbg_ptr = ptr;
|
|
219
216
|
WasmArtifactFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -256,7 +253,7 @@ export class WasmArtifact {
|
|
|
256
253
|
*/
|
|
257
254
|
constructor() {
|
|
258
255
|
const ret = wasm.wasmartifact_new();
|
|
259
|
-
this.__wbg_ptr = ret
|
|
256
|
+
this.__wbg_ptr = ret;
|
|
260
257
|
WasmArtifactFinalization.register(this, this.__wbg_ptr, this);
|
|
261
258
|
return this;
|
|
262
259
|
}
|
|
@@ -302,7 +299,6 @@ if (Symbol.dispose) WasmArtifact.prototype[Symbol.dispose] = WasmArtifact.protot
|
|
|
302
299
|
*/
|
|
303
300
|
export class WasmCertificate {
|
|
304
301
|
static __wrap(ptr) {
|
|
305
|
-
ptr = ptr >>> 0;
|
|
306
302
|
const obj = Object.create(WasmCertificate.prototype);
|
|
307
303
|
obj.__wbg_ptr = ptr;
|
|
308
304
|
WasmCertificateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -717,7 +713,7 @@ export class WasmDocumentBuilder {
|
|
|
717
713
|
*/
|
|
718
714
|
constructor() {
|
|
719
715
|
const ret = wasm.wasmdocumentbuilder_new();
|
|
720
|
-
this.__wbg_ptr = ret
|
|
716
|
+
this.__wbg_ptr = ret;
|
|
721
717
|
WasmDocumentBuilderFinalization.register(this, this.__wbg_ptr, this);
|
|
722
718
|
return this;
|
|
723
719
|
}
|
|
@@ -906,7 +902,6 @@ if (Symbol.dispose) WasmDocumentBuilder.prototype[Symbol.dispose] = WasmDocument
|
|
|
906
902
|
*/
|
|
907
903
|
export class WasmEmbeddedFont {
|
|
908
904
|
static __wrap(ptr) {
|
|
909
|
-
ptr = ptr >>> 0;
|
|
910
905
|
const obj = Object.create(WasmEmbeddedFont.prototype);
|
|
911
906
|
obj.__wbg_ptr = ptr;
|
|
912
907
|
WasmEmbeddedFontFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -978,7 +973,6 @@ if (Symbol.dispose) WasmEmbeddedFont.prototype[Symbol.dispose] = WasmEmbeddedFon
|
|
|
978
973
|
*/
|
|
979
974
|
export class WasmFluentPageBuilder {
|
|
980
975
|
static __wrap(ptr) {
|
|
981
|
-
ptr = ptr >>> 0;
|
|
982
976
|
const obj = Object.create(WasmFluentPageBuilder.prototype);
|
|
983
977
|
obj.__wbg_ptr = ptr;
|
|
984
978
|
WasmFluentPageBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2217,7 +2211,6 @@ if (Symbol.dispose) WasmFluentPageBuilder.prototype[Symbol.dispose] = WasmFluent
|
|
|
2217
2211
|
*/
|
|
2218
2212
|
export class WasmFooter {
|
|
2219
2213
|
static __wrap(ptr) {
|
|
2220
|
-
ptr = ptr >>> 0;
|
|
2221
2214
|
const obj = Object.create(WasmFooter.prototype);
|
|
2222
2215
|
obj.__wbg_ptr = ptr;
|
|
2223
2216
|
WasmFooterFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2260,7 +2253,7 @@ export class WasmFooter {
|
|
|
2260
2253
|
*/
|
|
2261
2254
|
constructor() {
|
|
2262
2255
|
const ret = wasm.wasmfooter_new();
|
|
2263
|
-
this.__wbg_ptr = ret
|
|
2256
|
+
this.__wbg_ptr = ret;
|
|
2264
2257
|
WasmFooterFinalization.register(this, this.__wbg_ptr, this);
|
|
2265
2258
|
return this;
|
|
2266
2259
|
}
|
|
@@ -2283,7 +2276,6 @@ if (Symbol.dispose) WasmFooter.prototype[Symbol.dispose] = WasmFooter.prototype.
|
|
|
2283
2276
|
*/
|
|
2284
2277
|
export class WasmHeader {
|
|
2285
2278
|
static __wrap(ptr) {
|
|
2286
|
-
ptr = ptr >>> 0;
|
|
2287
2279
|
const obj = Object.create(WasmHeader.prototype);
|
|
2288
2280
|
obj.__wbg_ptr = ptr;
|
|
2289
2281
|
WasmHeaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2326,7 +2318,7 @@ export class WasmHeader {
|
|
|
2326
2318
|
*/
|
|
2327
2319
|
constructor() {
|
|
2328
2320
|
const ret = wasm.wasmheader_new();
|
|
2329
|
-
this.__wbg_ptr = ret
|
|
2321
|
+
this.__wbg_ptr = ret;
|
|
2330
2322
|
WasmHeaderFinalization.register(this, this.__wbg_ptr, this);
|
|
2331
2323
|
return this;
|
|
2332
2324
|
}
|
|
@@ -2363,7 +2355,7 @@ export class WasmOcrConfig {
|
|
|
2363
2355
|
*/
|
|
2364
2356
|
constructor() {
|
|
2365
2357
|
const ret = wasm.wasmocrconfig_new();
|
|
2366
|
-
this.__wbg_ptr = ret
|
|
2358
|
+
this.__wbg_ptr = ret;
|
|
2367
2359
|
WasmOcrConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
2368
2360
|
return this;
|
|
2369
2361
|
}
|
|
@@ -2412,7 +2404,7 @@ export class WasmOcrEngine {
|
|
|
2412
2404
|
if (r2) {
|
|
2413
2405
|
throw takeObject(r1);
|
|
2414
2406
|
}
|
|
2415
|
-
this.__wbg_ptr = r0
|
|
2407
|
+
this.__wbg_ptr = r0;
|
|
2416
2408
|
WasmOcrEngineFinalization.register(this, this.__wbg_ptr, this);
|
|
2417
2409
|
return this;
|
|
2418
2410
|
} finally {
|
|
@@ -2427,7 +2419,6 @@ if (Symbol.dispose) WasmOcrEngine.prototype[Symbol.dispose] = WasmOcrEngine.prot
|
|
|
2427
2419
|
*/
|
|
2428
2420
|
export class WasmPageTemplate {
|
|
2429
2421
|
static __wrap(ptr) {
|
|
2430
|
-
ptr = ptr >>> 0;
|
|
2431
2422
|
const obj = Object.create(WasmPageTemplate.prototype);
|
|
2432
2423
|
obj.__wbg_ptr = ptr;
|
|
2433
2424
|
WasmPageTemplateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2470,7 +2461,7 @@ export class WasmPageTemplate {
|
|
|
2470
2461
|
*/
|
|
2471
2462
|
constructor() {
|
|
2472
2463
|
const ret = wasm.wasmpagetemplate_new();
|
|
2473
|
-
this.__wbg_ptr = ret
|
|
2464
|
+
this.__wbg_ptr = ret;
|
|
2474
2465
|
WasmPageTemplateFinalization.register(this, this.__wbg_ptr, this);
|
|
2475
2466
|
return this;
|
|
2476
2467
|
}
|
|
@@ -2497,7 +2488,6 @@ if (Symbol.dispose) WasmPageTemplate.prototype[Symbol.dispose] = WasmPageTemplat
|
|
|
2497
2488
|
*/
|
|
2498
2489
|
export class WasmPdf {
|
|
2499
2490
|
static __wrap(ptr) {
|
|
2500
|
-
ptr = ptr >>> 0;
|
|
2501
2491
|
const obj = Object.create(WasmPdf.prototype);
|
|
2502
2492
|
obj.__wbg_ptr = ptr;
|
|
2503
2493
|
WasmPdfFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -2893,6 +2883,31 @@ export class WasmPdfDocument {
|
|
|
2893
2883
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2894
2884
|
}
|
|
2895
2885
|
}
|
|
2886
|
+
/**
|
|
2887
|
+
* Convert the document to PDF/A compliance.
|
|
2888
|
+
*
|
|
2889
|
+
* Level must be one of: `"1a"`, `"1b"`, `"2a"`, `"2b"`, `"2u"`, `"3a"`, `"3b"`, `"3u"`.
|
|
2890
|
+
* Returns a JS object with `success`, `level`, `actions`, and `errors` fields.
|
|
2891
|
+
* @param {string} level
|
|
2892
|
+
* @returns {any}
|
|
2893
|
+
*/
|
|
2894
|
+
convertToPdfA(level) {
|
|
2895
|
+
try {
|
|
2896
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2897
|
+
const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2898
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2899
|
+
wasm.wasmpdfdocument_convertToPdfA(retptr, this.__wbg_ptr, ptr0, len0);
|
|
2900
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2901
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2902
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
2903
|
+
if (r2) {
|
|
2904
|
+
throw takeObject(r1);
|
|
2905
|
+
}
|
|
2906
|
+
return takeObject(r0);
|
|
2907
|
+
} finally {
|
|
2908
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2896
2911
|
/**
|
|
2897
2912
|
* Crop margins from all pages.
|
|
2898
2913
|
* @param {number} left
|
|
@@ -3629,7 +3644,7 @@ export class WasmPdfDocument {
|
|
|
3629
3644
|
flattenToImages(dpi) {
|
|
3630
3645
|
try {
|
|
3631
3646
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3632
|
-
wasm.wasmpdfdocument_flattenToImages(retptr, this.__wbg_ptr, isLikeNone(dpi) ?
|
|
3647
|
+
wasm.wasmpdfdocument_flattenToImages(retptr, this.__wbg_ptr, isLikeNone(dpi) ? Number.MAX_SAFE_INTEGER : (dpi) >>> 0);
|
|
3633
3648
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3634
3649
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3635
3650
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -3875,7 +3890,7 @@ export class WasmPdfDocument {
|
|
|
3875
3890
|
if (r2) {
|
|
3876
3891
|
throw takeObject(r1);
|
|
3877
3892
|
}
|
|
3878
|
-
this.__wbg_ptr = r0
|
|
3893
|
+
this.__wbg_ptr = r0;
|
|
3879
3894
|
WasmPdfDocumentFinalization.register(this, this.__wbg_ptr, this);
|
|
3880
3895
|
return this;
|
|
3881
3896
|
} finally {
|
|
@@ -4097,7 +4112,7 @@ export class WasmPdfDocument {
|
|
|
4097
4112
|
renderPage(page_index, dpi) {
|
|
4098
4113
|
try {
|
|
4099
4114
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4100
|
-
wasm.wasmpdfdocument_renderPage(retptr, this.__wbg_ptr, page_index, isLikeNone(dpi) ?
|
|
4115
|
+
wasm.wasmpdfdocument_renderPage(retptr, this.__wbg_ptr, page_index, isLikeNone(dpi) ? Number.MAX_SAFE_INTEGER : (dpi) >>> 0);
|
|
4101
4116
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4102
4117
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4103
4118
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4325,7 +4340,7 @@ export class WasmPdfDocument {
|
|
|
4325
4340
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4326
4341
|
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4327
4342
|
const len0 = WASM_VECTOR_LEN;
|
|
4328
|
-
wasm.wasmpdfdocument_search(retptr, this.__wbg_ptr, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ?
|
|
4343
|
+
wasm.wasmpdfdocument_search(retptr, this.__wbg_ptr, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ? Number.MAX_SAFE_INTEGER : (max_results) >>> 0);
|
|
4329
4344
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4330
4345
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4331
4346
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4352,7 +4367,7 @@ export class WasmPdfDocument {
|
|
|
4352
4367
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
4353
4368
|
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
4354
4369
|
const len0 = WASM_VECTOR_LEN;
|
|
4355
|
-
wasm.wasmpdfdocument_searchPage(retptr, this.__wbg_ptr, page_index, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ?
|
|
4370
|
+
wasm.wasmpdfdocument_searchPage(retptr, this.__wbg_ptr, page_index, ptr0, len0, isLikeNone(case_insensitive) ? 0xFFFFFF : case_insensitive ? 1 : 0, isLikeNone(literal) ? 0xFFFFFF : literal ? 1 : 0, isLikeNone(whole_word) ? 0xFFFFFF : whole_word ? 1 : 0, isLikeNone(max_results) ? Number.MAX_SAFE_INTEGER : (max_results) >>> 0);
|
|
4356
4371
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
4357
4372
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
4358
4373
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -4925,7 +4940,6 @@ if (Symbol.dispose) WasmPdfDocument.prototype[Symbol.dispose] = WasmPdfDocument.
|
|
|
4925
4940
|
*/
|
|
4926
4941
|
export class WasmPdfPageRegion {
|
|
4927
4942
|
static __wrap(ptr) {
|
|
4928
|
-
ptr = ptr >>> 0;
|
|
4929
4943
|
const obj = Object.create(WasmPdfPageRegion.prototype);
|
|
4930
4944
|
obj.__wbg_ptr = ptr;
|
|
4931
4945
|
WasmPdfPageRegionFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5166,7 +5180,6 @@ if (Symbol.dispose) WasmPdfPageRegion.prototype[Symbol.dispose] = WasmPdfPageReg
|
|
|
5166
5180
|
*/
|
|
5167
5181
|
export class WasmSignature {
|
|
5168
5182
|
static __wrap(ptr) {
|
|
5169
|
-
ptr = ptr >>> 0;
|
|
5170
5183
|
const obj = Object.create(WasmSignature.prototype);
|
|
5171
5184
|
obj.__wbg_ptr = ptr;
|
|
5172
5185
|
WasmSignatureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5359,7 +5372,6 @@ if (Symbol.dispose) WasmSignature.prototype[Symbol.dispose] = WasmSignature.prot
|
|
|
5359
5372
|
*/
|
|
5360
5373
|
export class WasmTimestamp {
|
|
5361
5374
|
static __wrap(ptr) {
|
|
5362
|
-
ptr = ptr >>> 0;
|
|
5363
5375
|
const obj = Object.create(WasmTimestamp.prototype);
|
|
5364
5376
|
obj.__wbg_ptr = ptr;
|
|
5365
5377
|
WasmTimestampFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -5526,6 +5538,77 @@ export function disableLogging() {
|
|
|
5526
5538
|
wasm.disableLogging();
|
|
5527
5539
|
}
|
|
5528
5540
|
|
|
5541
|
+
/**
|
|
5542
|
+
* Generate a 1D barcode as an SVG string.
|
|
5543
|
+
*
|
|
5544
|
+
* `barcodeType`: 0=Code128, 1=Code39, 2=EAN13, 3=EAN8, 4=UPCA, 5=ITF, 6=Code93, 7=Codabar.
|
|
5545
|
+
* @param {number} barcode_type
|
|
5546
|
+
* @param {string} data
|
|
5547
|
+
* @returns {string}
|
|
5548
|
+
*/
|
|
5549
|
+
export function generateBarcodeSvg(barcode_type, data) {
|
|
5550
|
+
let deferred3_0;
|
|
5551
|
+
let deferred3_1;
|
|
5552
|
+
try {
|
|
5553
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5554
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5555
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5556
|
+
wasm.generateBarcodeSvg(retptr, barcode_type, ptr0, len0);
|
|
5557
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5558
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5559
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5560
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
5561
|
+
var ptr2 = r0;
|
|
5562
|
+
var len2 = r1;
|
|
5563
|
+
if (r3) {
|
|
5564
|
+
ptr2 = 0; len2 = 0;
|
|
5565
|
+
throw takeObject(r2);
|
|
5566
|
+
}
|
|
5567
|
+
deferred3_0 = ptr2;
|
|
5568
|
+
deferred3_1 = len2;
|
|
5569
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5570
|
+
} finally {
|
|
5571
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5572
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5576
|
+
/**
|
|
5577
|
+
* Generate a QR code as an SVG string.
|
|
5578
|
+
*
|
|
5579
|
+
* `errorCorrection`: 0=Low, 1=Medium, 2=Quartile, 3=High. `size`: advisory pixel size.
|
|
5580
|
+
* @param {string} data
|
|
5581
|
+
* @param {number} error_correction
|
|
5582
|
+
* @param {number} size
|
|
5583
|
+
* @returns {string}
|
|
5584
|
+
*/
|
|
5585
|
+
export function generateQrSvg(data, error_correction, size) {
|
|
5586
|
+
let deferred3_0;
|
|
5587
|
+
let deferred3_1;
|
|
5588
|
+
try {
|
|
5589
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
5590
|
+
const ptr0 = passStringToWasm0(data, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5591
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5592
|
+
wasm.generateQrSvg(retptr, ptr0, len0, error_correction, size);
|
|
5593
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
5594
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
5595
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
5596
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
5597
|
+
var ptr2 = r0;
|
|
5598
|
+
var len2 = r1;
|
|
5599
|
+
if (r3) {
|
|
5600
|
+
ptr2 = 0; len2 = 0;
|
|
5601
|
+
throw takeObject(r2);
|
|
5602
|
+
}
|
|
5603
|
+
deferred3_0 = ptr2;
|
|
5604
|
+
deferred3_1 = len2;
|
|
5605
|
+
return getStringFromWasm0(ptr2, len2);
|
|
5606
|
+
} finally {
|
|
5607
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5608
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
|
|
5529
5612
|
/**
|
|
5530
5613
|
* Set the maximum log level for pdf_oxide messages.
|
|
5531
5614
|
*
|
|
@@ -5596,11 +5679,11 @@ export function signPdfBytes(pdf_data, cert, reason, location) {
|
|
|
5596
5679
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
5597
5680
|
}
|
|
5598
5681
|
}
|
|
5599
|
-
export function
|
|
5682
|
+
export function __wbg_Error_3639a60ed15f87e7(arg0, arg1) {
|
|
5600
5683
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
5601
5684
|
return addHeapObject(ret);
|
|
5602
5685
|
}
|
|
5603
|
-
export function
|
|
5686
|
+
export function __wbg_Number_a3d737fd183f7dca(arg0) {
|
|
5604
5687
|
const ret = Number(getObject(arg0));
|
|
5605
5688
|
return ret;
|
|
5606
5689
|
}
|
|
@@ -5611,68 +5694,68 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
|
5611
5694
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5612
5695
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5613
5696
|
}
|
|
5614
|
-
export function
|
|
5697
|
+
export function __wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b(arg0, arg1) {
|
|
5615
5698
|
const v = getObject(arg1);
|
|
5616
5699
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
5617
5700
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
5618
5701
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5619
5702
|
}
|
|
5620
|
-
export function
|
|
5703
|
+
export function __wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b(arg0) {
|
|
5621
5704
|
const v = getObject(arg0);
|
|
5622
5705
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
5623
5706
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
5624
5707
|
}
|
|
5625
|
-
export function
|
|
5708
|
+
export function __wbg___wbindgen_debug_string_07cb72cfcc952e2b(arg0, arg1) {
|
|
5626
5709
|
const ret = debugString(getObject(arg1));
|
|
5627
5710
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
5628
5711
|
const len1 = WASM_VECTOR_LEN;
|
|
5629
5712
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5630
5713
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5631
5714
|
}
|
|
5632
|
-
export function
|
|
5715
|
+
export function __wbg___wbindgen_in_2617fa76397620d3(arg0, arg1) {
|
|
5633
5716
|
const ret = getObject(arg0) in getObject(arg1);
|
|
5634
5717
|
return ret;
|
|
5635
5718
|
}
|
|
5636
|
-
export function
|
|
5719
|
+
export function __wbg___wbindgen_is_bigint_d6a8167cac401b95(arg0) {
|
|
5637
5720
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
5638
5721
|
return ret;
|
|
5639
5722
|
}
|
|
5640
|
-
export function
|
|
5723
|
+
export function __wbg___wbindgen_is_function_2f0fd7ceb86e64c5(arg0) {
|
|
5641
5724
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
5642
5725
|
return ret;
|
|
5643
5726
|
}
|
|
5644
|
-
export function
|
|
5727
|
+
export function __wbg___wbindgen_is_null_066086be3abe9bb3(arg0) {
|
|
5645
5728
|
const ret = getObject(arg0) === null;
|
|
5646
5729
|
return ret;
|
|
5647
5730
|
}
|
|
5648
|
-
export function
|
|
5731
|
+
export function __wbg___wbindgen_is_object_5b22ff2418063a9c(arg0) {
|
|
5649
5732
|
const val = getObject(arg0);
|
|
5650
5733
|
const ret = typeof(val) === 'object' && val !== null;
|
|
5651
5734
|
return ret;
|
|
5652
5735
|
}
|
|
5653
|
-
export function
|
|
5736
|
+
export function __wbg___wbindgen_is_string_eddc07a3efad52e6(arg0) {
|
|
5654
5737
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
5655
5738
|
return ret;
|
|
5656
5739
|
}
|
|
5657
|
-
export function
|
|
5740
|
+
export function __wbg___wbindgen_is_undefined_244a92c34d3b6ec0(arg0) {
|
|
5658
5741
|
const ret = getObject(arg0) === undefined;
|
|
5659
5742
|
return ret;
|
|
5660
5743
|
}
|
|
5661
|
-
export function
|
|
5744
|
+
export function __wbg___wbindgen_jsval_eq_403eaa3610500a25(arg0, arg1) {
|
|
5662
5745
|
const ret = getObject(arg0) === getObject(arg1);
|
|
5663
5746
|
return ret;
|
|
5664
5747
|
}
|
|
5665
|
-
export function
|
|
5748
|
+
export function __wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62(arg0, arg1) {
|
|
5666
5749
|
const ret = getObject(arg0) == getObject(arg1);
|
|
5667
5750
|
return ret;
|
|
5668
5751
|
}
|
|
5669
|
-
export function
|
|
5752
|
+
export function __wbg___wbindgen_number_get_dd6d69a6079f26f1(arg0, arg1) {
|
|
5670
5753
|
const obj = getObject(arg1);
|
|
5671
5754
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
5672
5755
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5673
5756
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5674
5757
|
}
|
|
5675
|
-
export function
|
|
5758
|
+
export function __wbg___wbindgen_string_get_965592073e5d848c(arg0, arg1) {
|
|
5676
5759
|
const obj = getObject(arg1);
|
|
5677
5760
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
5678
5761
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -5680,23 +5763,20 @@ export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
|
|
|
5680
5763
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5681
5764
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5682
5765
|
}
|
|
5683
|
-
export function
|
|
5766
|
+
export function __wbg___wbindgen_throw_9c75d47bf9e7731e(arg0, arg1) {
|
|
5684
5767
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
5685
5768
|
}
|
|
5686
|
-
export function
|
|
5769
|
+
export function __wbg_call_add9e5a76382e668() { return handleError(function (arg0, arg1) {
|
|
5687
5770
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
5688
5771
|
return addHeapObject(ret);
|
|
5689
5772
|
}, arguments); }
|
|
5690
|
-
export function
|
|
5773
|
+
export function __wbg_debug_94a9fb2c3e2982f9(arg0, arg1, arg2, arg3) {
|
|
5691
5774
|
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5692
5775
|
}
|
|
5693
|
-
export function
|
|
5776
|
+
export function __wbg_done_b1afd6201ac045e0(arg0) {
|
|
5694
5777
|
const ret = getObject(arg0).done;
|
|
5695
5778
|
return ret;
|
|
5696
5779
|
}
|
|
5697
|
-
export function __wbg_error_a6a4bb2525a88971(arg0, arg1, arg2, arg3) {
|
|
5698
|
-
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5699
|
-
}
|
|
5700
5780
|
export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
5701
5781
|
let deferred0_0;
|
|
5702
5782
|
let deferred0_1;
|
|
@@ -5708,34 +5788,37 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
|
5708
5788
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
5709
5789
|
}
|
|
5710
5790
|
}
|
|
5711
|
-
export function
|
|
5791
|
+
export function __wbg_error_e92447754a575869(arg0, arg1, arg2, arg3) {
|
|
5792
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5793
|
+
}
|
|
5794
|
+
export function __wbg_fromCodePoint_ac3a66d5b95b4ddf() { return handleError(function (arg0) {
|
|
5712
5795
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
5713
5796
|
return addHeapObject(ret);
|
|
5714
5797
|
}, arguments); }
|
|
5715
|
-
export function
|
|
5798
|
+
export function __wbg_from_ff141b1e4c69b979(arg0) {
|
|
5716
5799
|
const ret = Array.from(getObject(arg0));
|
|
5717
5800
|
return addHeapObject(ret);
|
|
5718
5801
|
}
|
|
5719
5802
|
export function __wbg_getRandomValues_ef12552bf5acd2fe() { return handleError(function (arg0, arg1) {
|
|
5720
5803
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5721
5804
|
}, arguments); }
|
|
5722
|
-
export function
|
|
5805
|
+
export function __wbg_getTime_e599bee315e19eba(arg0) {
|
|
5723
5806
|
const ret = getObject(arg0).getTime();
|
|
5724
5807
|
return ret;
|
|
5725
5808
|
}
|
|
5726
|
-
export function
|
|
5809
|
+
export function __wbg_getTimezoneOffset_d843b3968046e734(arg0) {
|
|
5727
5810
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
5728
5811
|
return ret;
|
|
5729
5812
|
}
|
|
5730
|
-
export function
|
|
5731
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5732
|
-
return addHeapObject(ret);
|
|
5733
|
-
}, arguments); }
|
|
5734
|
-
export function __wbg_get_8360291721e2339f(arg0, arg1) {
|
|
5813
|
+
export function __wbg_get_652f640b3b0b6e3e(arg0, arg1) {
|
|
5735
5814
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5736
5815
|
return addHeapObject(ret);
|
|
5737
5816
|
}
|
|
5738
|
-
export function
|
|
5817
|
+
export function __wbg_get_9cfea9b7bbf12a15() { return handleError(function (arg0, arg1) {
|
|
5818
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
5819
|
+
return addHeapObject(ret);
|
|
5820
|
+
}, arguments); }
|
|
5821
|
+
export function __wbg_get_unchecked_be562b1421656321(arg0, arg1) {
|
|
5739
5822
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
5740
5823
|
return addHeapObject(ret);
|
|
5741
5824
|
}
|
|
@@ -5743,10 +5826,10 @@ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
|
5743
5826
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
5744
5827
|
return addHeapObject(ret);
|
|
5745
5828
|
}
|
|
5746
|
-
export function
|
|
5829
|
+
export function __wbg_info_eba996fb48d58831(arg0, arg1, arg2, arg3) {
|
|
5747
5830
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5748
5831
|
}
|
|
5749
|
-
export function
|
|
5832
|
+
export function __wbg_instanceof_ArrayBuffer_eab9f28fbec23477(arg0) {
|
|
5750
5833
|
let result;
|
|
5751
5834
|
try {
|
|
5752
5835
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -5756,7 +5839,7 @@ export function __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3(arg0) {
|
|
|
5756
5839
|
const ret = result;
|
|
5757
5840
|
return ret;
|
|
5758
5841
|
}
|
|
5759
|
-
export function
|
|
5842
|
+
export function __wbg_instanceof_Uint8Array_57d77acd50e4c44d(arg0) {
|
|
5760
5843
|
let result;
|
|
5761
5844
|
try {
|
|
5762
5845
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -5766,90 +5849,90 @@ export function __wbg_instanceof_Uint8Array_152ba1f289edcf3f(arg0) {
|
|
|
5766
5849
|
const ret = result;
|
|
5767
5850
|
return ret;
|
|
5768
5851
|
}
|
|
5769
|
-
export function
|
|
5852
|
+
export function __wbg_isArray_c6c6ef8308995bcf(arg0) {
|
|
5770
5853
|
const ret = Array.isArray(getObject(arg0));
|
|
5771
5854
|
return ret;
|
|
5772
5855
|
}
|
|
5773
|
-
export function
|
|
5856
|
+
export function __wbg_isSafeInteger_3c56c421a5b4cce4(arg0) {
|
|
5774
5857
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
5775
5858
|
return ret;
|
|
5776
5859
|
}
|
|
5777
|
-
export function
|
|
5860
|
+
export function __wbg_iterator_9d68985a1d096fc2() {
|
|
5778
5861
|
const ret = Symbol.iterator;
|
|
5779
5862
|
return addHeapObject(ret);
|
|
5780
5863
|
}
|
|
5781
|
-
export function
|
|
5864
|
+
export function __wbg_length_0a6ce016dc1460b0(arg0) {
|
|
5782
5865
|
const ret = getObject(arg0).length;
|
|
5783
5866
|
return ret;
|
|
5784
5867
|
}
|
|
5785
|
-
export function
|
|
5868
|
+
export function __wbg_length_ba3c032602efe310(arg0) {
|
|
5786
5869
|
const ret = getObject(arg0).length;
|
|
5787
5870
|
return ret;
|
|
5788
5871
|
}
|
|
5789
|
-
export function
|
|
5872
|
+
export function __wbg_log_36199e35916a41aa(arg0, arg1, arg2, arg3) {
|
|
5790
5873
|
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5791
5874
|
}
|
|
5792
|
-
export function
|
|
5875
|
+
export function __wbg_new_0_e486ec9936f7edbf() {
|
|
5793
5876
|
const ret = new Date();
|
|
5794
5877
|
return addHeapObject(ret);
|
|
5795
5878
|
}
|
|
5796
|
-
export function __wbg_new_0c7403db6e782f19(arg0) {
|
|
5797
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
5798
|
-
return addHeapObject(ret);
|
|
5799
|
-
}
|
|
5800
5879
|
export function __wbg_new_227d7c05414eb861() {
|
|
5801
5880
|
const ret = new Error();
|
|
5802
5881
|
return addHeapObject(ret);
|
|
5803
5882
|
}
|
|
5804
|
-
export function
|
|
5805
|
-
const ret = new
|
|
5883
|
+
export function __wbg_new_2fad8ca02fd00684() {
|
|
5884
|
+
const ret = new Object();
|
|
5806
5885
|
return addHeapObject(ret);
|
|
5807
5886
|
}
|
|
5808
|
-
export function
|
|
5887
|
+
export function __wbg_new_3baa8d9866155c79() {
|
|
5809
5888
|
const ret = new Array();
|
|
5810
5889
|
return addHeapObject(ret);
|
|
5811
5890
|
}
|
|
5812
|
-
export function
|
|
5813
|
-
const ret = new
|
|
5891
|
+
export function __wbg_new_46ae4e4ff2a07a64() {
|
|
5892
|
+
const ret = new Map();
|
|
5814
5893
|
return addHeapObject(ret);
|
|
5815
5894
|
}
|
|
5816
|
-
export function
|
|
5817
|
-
const ret = new
|
|
5895
|
+
export function __wbg_new_8454eee672b2ba6e(arg0) {
|
|
5896
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
5818
5897
|
return addHeapObject(ret);
|
|
5819
5898
|
}
|
|
5820
|
-
export function
|
|
5821
|
-
const ret = new
|
|
5899
|
+
export function __wbg_new_b47e026ba742fe65(arg0) {
|
|
5900
|
+
const ret = new Date(getObject(arg0));
|
|
5822
5901
|
return addHeapObject(ret);
|
|
5823
5902
|
}
|
|
5824
|
-
export function
|
|
5825
|
-
const ret =
|
|
5903
|
+
export function __wbg_new_from_slice_5a173c243af2e823(arg0, arg1) {
|
|
5904
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
5826
5905
|
return addHeapObject(ret);
|
|
5827
|
-
}
|
|
5828
|
-
export function
|
|
5906
|
+
}
|
|
5907
|
+
export function __wbg_next_261c3c48c6e309a5(arg0) {
|
|
5829
5908
|
const ret = getObject(arg0).next;
|
|
5830
5909
|
return addHeapObject(ret);
|
|
5831
5910
|
}
|
|
5832
|
-
export function
|
|
5911
|
+
export function __wbg_next_aacee310bcfe6461() { return handleError(function (arg0) {
|
|
5912
|
+
const ret = getObject(arg0).next();
|
|
5913
|
+
return addHeapObject(ret);
|
|
5914
|
+
}, arguments); }
|
|
5915
|
+
export function __wbg_prototypesetcall_fd4050e806e1d519(arg0, arg1, arg2) {
|
|
5833
5916
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
5834
5917
|
}
|
|
5835
|
-
export function
|
|
5918
|
+
export function __wbg_push_60a5366c0bb22a7d(arg0, arg1) {
|
|
5836
5919
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
5837
5920
|
return ret;
|
|
5838
5921
|
}
|
|
5839
|
-
export function
|
|
5922
|
+
export function __wbg_set_5337f8ac82364a3f() { return handleError(function (arg0, arg1, arg2) {
|
|
5840
5923
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
5841
5924
|
return ret;
|
|
5842
5925
|
}, arguments); }
|
|
5843
|
-
export function __wbg_set_3bf1de9fab0cd644(arg0, arg1, arg2) {
|
|
5844
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5845
|
-
}
|
|
5846
5926
|
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
5847
5927
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
5848
5928
|
}
|
|
5849
|
-
export function
|
|
5929
|
+
export function __wbg_set_82f7a370f604db70(arg0, arg1, arg2) {
|
|
5850
5930
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
5851
5931
|
return addHeapObject(ret);
|
|
5852
5932
|
}
|
|
5933
|
+
export function __wbg_set_f614f6a0608d1d1d(arg0, arg1, arg2) {
|
|
5934
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
5935
|
+
}
|
|
5853
5936
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
5854
5937
|
const ret = getObject(arg1).stack;
|
|
5855
5938
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -5857,11 +5940,11 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
5857
5940
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5858
5941
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5859
5942
|
}
|
|
5860
|
-
export function
|
|
5943
|
+
export function __wbg_value_f852716acdeb3e82(arg0) {
|
|
5861
5944
|
const ret = getObject(arg0).value;
|
|
5862
5945
|
return addHeapObject(ret);
|
|
5863
5946
|
}
|
|
5864
|
-
export function
|
|
5947
|
+
export function __wbg_warn_d258f6e2da5e0422(arg0, arg1, arg2, arg3) {
|
|
5865
5948
|
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
5866
5949
|
}
|
|
5867
5950
|
export function __wbg_wasmsignature_new(arg0) {
|
|
@@ -5897,55 +5980,55 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
|
5897
5980
|
}
|
|
5898
5981
|
const WasmArtifactFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5899
5982
|
? { register: () => {}, unregister: () => {} }
|
|
5900
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmartifact_free(ptr
|
|
5983
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmartifact_free(ptr, 1));
|
|
5901
5984
|
const ArtifactStyleFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5902
5985
|
? { register: () => {}, unregister: () => {} }
|
|
5903
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_artifactstyle_free(ptr
|
|
5986
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_artifactstyle_free(ptr, 1));
|
|
5904
5987
|
const WasmCertificateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5905
5988
|
? { register: () => {}, unregister: () => {} }
|
|
5906
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcertificate_free(ptr
|
|
5989
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmcertificate_free(ptr, 1));
|
|
5907
5990
|
const WasmDocumentBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5908
5991
|
? { register: () => {}, unregister: () => {} }
|
|
5909
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentbuilder_free(ptr
|
|
5992
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentbuilder_free(ptr, 1));
|
|
5910
5993
|
const WasmEmbeddedFontFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5911
5994
|
? { register: () => {}, unregister: () => {} }
|
|
5912
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmembeddedfont_free(ptr
|
|
5995
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmembeddedfont_free(ptr, 1));
|
|
5913
5996
|
const WasmFluentPageBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5914
5997
|
? { register: () => {}, unregister: () => {} }
|
|
5915
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfluentpagebuilder_free(ptr
|
|
5998
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfluentpagebuilder_free(ptr, 1));
|
|
5916
5999
|
const WasmFooterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5917
6000
|
? { register: () => {}, unregister: () => {} }
|
|
5918
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfooter_free(ptr
|
|
6001
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmfooter_free(ptr, 1));
|
|
5919
6002
|
const WasmHeaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5920
6003
|
? { register: () => {}, unregister: () => {} }
|
|
5921
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheader_free(ptr
|
|
6004
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheader_free(ptr, 1));
|
|
5922
6005
|
const WasmOcrConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5923
6006
|
? { register: () => {}, unregister: () => {} }
|
|
5924
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrconfig_free(ptr
|
|
6007
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrconfig_free(ptr, 1));
|
|
5925
6008
|
const WasmOcrEngineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5926
6009
|
? { register: () => {}, unregister: () => {} }
|
|
5927
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrengine_free(ptr
|
|
6010
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmocrengine_free(ptr, 1));
|
|
5928
6011
|
const WasmPageTemplateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5929
6012
|
? { register: () => {}, unregister: () => {} }
|
|
5930
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpagetemplate_free(ptr
|
|
6013
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpagetemplate_free(ptr, 1));
|
|
5931
6014
|
const WasmPdfFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5932
6015
|
? { register: () => {}, unregister: () => {} }
|
|
5933
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdf_free(ptr
|
|
6016
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdf_free(ptr, 1));
|
|
5934
6017
|
const WasmPdfDocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5935
6018
|
? { register: () => {}, unregister: () => {} }
|
|
5936
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfdocument_free(ptr
|
|
6019
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfdocument_free(ptr, 1));
|
|
5937
6020
|
const WasmPdfPageRegionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5938
6021
|
? { register: () => {}, unregister: () => {} }
|
|
5939
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfpageregion_free(ptr
|
|
6022
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpdfpageregion_free(ptr, 1));
|
|
5940
6023
|
const WasmSignatureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5941
6024
|
? { register: () => {}, unregister: () => {} }
|
|
5942
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsignature_free(ptr
|
|
6025
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsignature_free(ptr, 1));
|
|
5943
6026
|
const StreamingTableFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5944
6027
|
? { register: () => {}, unregister: () => {} }
|
|
5945
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_streamingtable_free(ptr
|
|
6028
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_streamingtable_free(ptr, 1));
|
|
5946
6029
|
const WasmTimestampFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5947
6030
|
? { register: () => {}, unregister: () => {} }
|
|
5948
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtimestamp_free(ptr
|
|
6031
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtimestamp_free(ptr, 1));
|
|
5949
6032
|
|
|
5950
6033
|
function addHeapObject(obj) {
|
|
5951
6034
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -6083,8 +6166,7 @@ function getFloat32ArrayMemory0() {
|
|
|
6083
6166
|
}
|
|
6084
6167
|
|
|
6085
6168
|
function getStringFromWasm0(ptr, len) {
|
|
6086
|
-
|
|
6087
|
-
return decodeText(ptr, len);
|
|
6169
|
+
return decodeText(ptr >>> 0, len);
|
|
6088
6170
|
}
|
|
6089
6171
|
|
|
6090
6172
|
let cachedUint32ArrayMemory0 = null;
|