docling.rs-wasm 1.32.0 → 1.43.0
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/docling_wasm_bg.js +46 -46
- package/bundler/docling_wasm_bg.wasm +0 -0
- package/bundler/docling_wasm_bg.wasm.d.ts +7 -7
- package/package.json +1 -1
- package/web/docling_wasm.d.ts +7 -7
- package/web/docling_wasm.js +46 -46
- package/web/docling_wasm_bg.wasm +0 -0
- package/web/docling_wasm_bg.wasm.d.ts +7 -7
|
@@ -379,46 +379,46 @@ export function version() {
|
|
|
379
379
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
export function
|
|
382
|
+
export function __wbg_Error_67e7344beaa85059(arg0, arg1) {
|
|
383
383
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
384
384
|
return ret;
|
|
385
385
|
}
|
|
386
|
-
export function
|
|
386
|
+
export function __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0(arg0, arg1) {
|
|
387
387
|
const ret = debugString(arg1);
|
|
388
388
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
389
389
|
const len1 = WASM_VECTOR_LEN;
|
|
390
390
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
391
391
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
392
392
|
}
|
|
393
|
-
export function
|
|
393
|
+
export function __wbg___wbindgen_is_function_fcda5e3902d732fe(arg0) {
|
|
394
394
|
const ret = typeof(arg0) === 'function';
|
|
395
395
|
return ret;
|
|
396
396
|
}
|
|
397
|
-
export function
|
|
397
|
+
export function __wbg___wbindgen_is_undefined_8c687d0b90d5b524(arg0) {
|
|
398
398
|
const ret = arg0 === undefined;
|
|
399
399
|
return ret;
|
|
400
400
|
}
|
|
401
|
-
export function
|
|
401
|
+
export function __wbg___wbindgen_number_get_1dc732b810cb937c(arg0, arg1) {
|
|
402
402
|
const obj = arg1;
|
|
403
403
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
404
404
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
405
405
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
406
406
|
}
|
|
407
|
-
export function
|
|
407
|
+
export function __wbg___wbindgen_throw_5d9e815e6fdf150f(arg0, arg1) {
|
|
408
408
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
409
409
|
}
|
|
410
|
-
export function
|
|
410
|
+
export function __wbg__wbg_cb_unref_997e73d32238e655(arg0) {
|
|
411
411
|
arg0._wbg_cb_unref();
|
|
412
412
|
}
|
|
413
|
-
export function
|
|
413
|
+
export function __wbg_bbox_f4ad691007164f29() { return handleError(function (arg0, arg1, arg2) {
|
|
414
414
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
415
415
|
return ret;
|
|
416
416
|
}, arguments); }
|
|
417
|
-
export function
|
|
417
|
+
export function __wbg_call_6bcf8d3e20937e46() { return handleError(function (arg0, arg1, arg2) {
|
|
418
418
|
const ret = arg0.call(arg1, arg2);
|
|
419
419
|
return ret;
|
|
420
420
|
}, arguments); }
|
|
421
|
-
export function
|
|
421
|
+
export function __wbg_encode_835572da87b9e2af() { return handleError(function (arg0, arg1) {
|
|
422
422
|
const ret = arg0.encode(arg1);
|
|
423
423
|
return ret;
|
|
424
424
|
}, arguments); }
|
|
@@ -436,15 +436,15 @@ export function __wbg_error_757e9472f8410341(arg0, arg1) {
|
|
|
436
436
|
export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
|
|
437
437
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
438
438
|
}, arguments); }
|
|
439
|
-
export function
|
|
439
|
+
export function __wbg_get_989d0a1309644f2b() { return handleError(function (arg0, arg1) {
|
|
440
440
|
const ret = Reflect.get(arg0, arg1);
|
|
441
441
|
return ret;
|
|
442
442
|
}, arguments); }
|
|
443
|
-
export function
|
|
443
|
+
export function __wbg_get_b1f0ab13c737f856(arg0, arg1) {
|
|
444
444
|
const ret = arg0[arg1 >>> 0];
|
|
445
445
|
return ret;
|
|
446
446
|
}
|
|
447
|
-
export function
|
|
447
|
+
export function __wbg_instanceof_Float32Array_31e80d3e88752523(arg0) {
|
|
448
448
|
let result;
|
|
449
449
|
try {
|
|
450
450
|
result = arg0 instanceof Float32Array;
|
|
@@ -454,15 +454,15 @@ export function __wbg_instanceof_Float32Array_d1723b46884013f0(arg0) {
|
|
|
454
454
|
const ret = result;
|
|
455
455
|
return ret;
|
|
456
456
|
}
|
|
457
|
-
export function
|
|
457
|
+
export function __wbg_isArray_5674713bb7b79043(arg0) {
|
|
458
458
|
const ret = Array.isArray(arg0);
|
|
459
459
|
return ret;
|
|
460
460
|
}
|
|
461
|
-
export function
|
|
461
|
+
export function __wbg_length_4e1adc0d42e23620(arg0) {
|
|
462
462
|
const ret = arg0.length;
|
|
463
463
|
return ret;
|
|
464
464
|
}
|
|
465
|
-
export function
|
|
465
|
+
export function __wbg_length_8768c6f6941913e3(arg0) {
|
|
466
466
|
const ret = arg0.length;
|
|
467
467
|
return ret;
|
|
468
468
|
}
|
|
@@ -470,18 +470,18 @@ export function __wbg_new_227d7c05414eb861() {
|
|
|
470
470
|
const ret = new Error();
|
|
471
471
|
return ret;
|
|
472
472
|
}
|
|
473
|
-
export function
|
|
473
|
+
export function __wbg_new_from_slice_2221cabb71753908(arg0, arg1) {
|
|
474
474
|
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
475
475
|
return ret;
|
|
476
476
|
}
|
|
477
|
-
export function
|
|
477
|
+
export function __wbg_new_typed_6f8b0d724fe26c07(arg0, arg1) {
|
|
478
478
|
try {
|
|
479
479
|
var state0 = {a: arg0, b: arg1};
|
|
480
480
|
var cb0 = (arg0, arg1) => {
|
|
481
481
|
const a = state0.a;
|
|
482
482
|
state0.a = 0;
|
|
483
483
|
try {
|
|
484
|
-
return
|
|
484
|
+
return wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
485
485
|
} finally {
|
|
486
486
|
state0.a = a;
|
|
487
487
|
}
|
|
@@ -492,25 +492,25 @@ export function __wbg_new_typed_cceaf62d8d95e9f2(arg0, arg1) {
|
|
|
492
492
|
state0.a = 0;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
export function
|
|
495
|
+
export function __wbg_prototypesetcall_804a1eb1b047ccb9(arg0, arg1, arg2) {
|
|
496
496
|
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
497
497
|
}
|
|
498
|
-
export function
|
|
499
|
-
queueMicrotask(arg0);
|
|
500
|
-
}
|
|
501
|
-
export function __wbg_queueMicrotask_be5fe34a8f4cad4d(arg0) {
|
|
498
|
+
export function __wbg_queueMicrotask_85c90f6987555d65(arg0) {
|
|
502
499
|
const ret = arg0.queueMicrotask;
|
|
503
500
|
return ret;
|
|
504
501
|
}
|
|
505
|
-
export function
|
|
502
|
+
export function __wbg_queueMicrotask_f6a1fa10b81d1fc0(arg0) {
|
|
503
|
+
queueMicrotask(arg0);
|
|
504
|
+
}
|
|
505
|
+
export function __wbg_resolve_35ec7e0c6af4c82c(arg0) {
|
|
506
506
|
const ret = Promise.resolve(arg0);
|
|
507
507
|
return ret;
|
|
508
508
|
}
|
|
509
|
-
export function
|
|
509
|
+
export function __wbg_run_5e70fea58ca6be63() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
510
510
|
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
511
511
|
return ret;
|
|
512
512
|
}, arguments); }
|
|
513
|
-
export function
|
|
513
|
+
export function __wbg_run_b50d20d8195be8c0() { return handleError(function (arg0, arg1) {
|
|
514
514
|
const ret = arg0.run(arg1);
|
|
515
515
|
return ret;
|
|
516
516
|
}, arguments); }
|
|
@@ -521,40 +521,40 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
521
521
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
522
522
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
523
523
|
}
|
|
524
|
-
export function
|
|
525
|
-
const ret = typeof
|
|
524
|
+
export function __wbg_static_accessor_GLOBAL_8eb4cd83130a11a0() {
|
|
525
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
526
526
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
527
527
|
}
|
|
528
|
-
export function
|
|
529
|
-
const ret = typeof
|
|
528
|
+
export function __wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db() {
|
|
529
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
530
530
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
531
531
|
}
|
|
532
|
-
export function
|
|
532
|
+
export function __wbg_static_accessor_SELF_d8b50611246a6d92() {
|
|
533
533
|
const ret = typeof self === 'undefined' ? null : self;
|
|
534
534
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
535
535
|
}
|
|
536
|
-
export function
|
|
536
|
+
export function __wbg_static_accessor_WINDOW_fd0bc376bf0f8b42() {
|
|
537
537
|
const ret = typeof window === 'undefined' ? null : window;
|
|
538
538
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
539
539
|
}
|
|
540
|
-
export function
|
|
540
|
+
export function __wbg_step_b03f30167331bda5() { return handleError(function (arg0, arg1) {
|
|
541
541
|
const ret = arg0.step(arg1);
|
|
542
542
|
return ret;
|
|
543
543
|
}, arguments); }
|
|
544
|
-
export function
|
|
545
|
-
const ret = arg0.then(arg1);
|
|
544
|
+
export function __wbg_then_7a850dae4493f353(arg0, arg1, arg2) {
|
|
545
|
+
const ret = arg0.then(arg1, arg2);
|
|
546
546
|
return ret;
|
|
547
547
|
}
|
|
548
|
-
export function
|
|
549
|
-
const ret = arg0.then(arg1
|
|
548
|
+
export function __wbg_then_b830475380919203(arg0, arg1) {
|
|
549
|
+
const ret = arg0.then(arg1);
|
|
550
550
|
return ret;
|
|
551
551
|
}
|
|
552
|
-
export function
|
|
553
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
554
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
552
|
+
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
553
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 85, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
554
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_);
|
|
555
555
|
return ret;
|
|
556
556
|
}
|
|
557
|
-
export function
|
|
557
|
+
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
558
558
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
559
559
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
560
560
|
return ret;
|
|
@@ -568,15 +568,15 @@ export function __wbindgen_init_externref_table() {
|
|
|
568
568
|
table.set(offset + 2, true);
|
|
569
569
|
table.set(offset + 3, false);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
const ret = wasm.
|
|
571
|
+
function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2) {
|
|
572
|
+
const ret = wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2);
|
|
573
573
|
if (ret[1]) {
|
|
574
574
|
throw takeFromExternrefTable0(ret[0]);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
function
|
|
579
|
-
wasm.
|
|
578
|
+
function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
579
|
+
wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
5
|
-
export const start: () => void;
|
|
6
|
-
export const supported_extensions: () => [number, number];
|
|
7
|
-
export const version: () => [number, number];
|
|
8
|
-
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
9
4
|
export const __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
10
5
|
export const __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
6
|
+
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
11
7
|
export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
12
8
|
export const digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
|
|
13
9
|
export const digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
|
|
@@ -15,13 +11,17 @@ export const digitalconverter_finish: (a: number, b: number, c: number, d: numbe
|
|
|
15
11
|
export const digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
16
12
|
export const digitalconverter_page_count: (a: number) => number;
|
|
17
13
|
export const digitalconverter_setDict: (a: number, b: number, c: number) => void;
|
|
14
|
+
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
18
15
|
export const scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
|
|
19
16
|
export const scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
|
|
20
17
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
21
18
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
22
19
|
export const scannedconverter_page_count: (a: number) => number;
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
20
|
+
export const start: () => void;
|
|
21
|
+
export const supported_extensions: () => [number, number];
|
|
22
|
+
export const version: () => [number, number];
|
|
23
|
+
export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
+
export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docling.rs-wasm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"description": "In-browser document conversion: DOCX, HTML, XLSX, PPTX, EPUB, Markdown, … and the text layer of PDFs → Markdown / docling JSON / DocLang, fully client-side (docling.rs compiled to WebAssembly)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/web/docling_wasm.d.ts
CHANGED
|
@@ -136,13 +136,9 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
136
136
|
|
|
137
137
|
export interface InitOutput {
|
|
138
138
|
readonly memory: WebAssembly.Memory;
|
|
139
|
-
readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
140
|
-
readonly start: () => void;
|
|
141
|
-
readonly supported_extensions: () => [number, number];
|
|
142
|
-
readonly version: () => [number, number];
|
|
143
|
-
readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
144
139
|
readonly __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
145
140
|
readonly __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
141
|
+
readonly convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
146
142
|
readonly convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
147
143
|
readonly digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
|
|
148
144
|
readonly digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
|
|
@@ -150,13 +146,17 @@ export interface InitOutput {
|
|
|
150
146
|
readonly digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
151
147
|
readonly digitalconverter_page_count: (a: number) => number;
|
|
152
148
|
readonly digitalconverter_setDict: (a: number, b: number, c: number) => void;
|
|
149
|
+
readonly ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
153
150
|
readonly scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
|
|
154
151
|
readonly scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
|
|
155
152
|
readonly scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
156
153
|
readonly scannedconverter_new: (a: number, b: number) => number;
|
|
157
154
|
readonly scannedconverter_page_count: (a: number) => number;
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
155
|
+
readonly start: () => void;
|
|
156
|
+
readonly supported_extensions: () => [number, number];
|
|
157
|
+
readonly version: () => [number, number];
|
|
158
|
+
readonly wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
159
|
+
readonly wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
160
160
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
161
161
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
162
162
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/web/docling_wasm.js
CHANGED
|
@@ -384,46 +384,46 @@ export function version() {
|
|
|
384
384
|
function __wbg_get_imports() {
|
|
385
385
|
const import0 = {
|
|
386
386
|
__proto__: null,
|
|
387
|
-
|
|
387
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
388
388
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
389
389
|
return ret;
|
|
390
390
|
},
|
|
391
|
-
|
|
391
|
+
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
392
392
|
const ret = debugString(arg1);
|
|
393
393
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
394
|
const len1 = WASM_VECTOR_LEN;
|
|
395
395
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
396
396
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
397
397
|
},
|
|
398
|
-
|
|
398
|
+
__wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
|
|
399
399
|
const ret = typeof(arg0) === 'function';
|
|
400
400
|
return ret;
|
|
401
401
|
},
|
|
402
|
-
|
|
402
|
+
__wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
|
|
403
403
|
const ret = arg0 === undefined;
|
|
404
404
|
return ret;
|
|
405
405
|
},
|
|
406
|
-
|
|
406
|
+
__wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
|
|
407
407
|
const obj = arg1;
|
|
408
408
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
409
409
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
410
410
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
411
411
|
},
|
|
412
|
-
|
|
412
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
413
413
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
414
414
|
},
|
|
415
|
-
|
|
415
|
+
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
416
416
|
arg0._wbg_cb_unref();
|
|
417
417
|
},
|
|
418
|
-
|
|
418
|
+
__wbg_bbox_f4ad691007164f29: function() { return handleError(function (arg0, arg1, arg2) {
|
|
419
419
|
const ret = arg0.bbox(arg1, arg2 >>> 0);
|
|
420
420
|
return ret;
|
|
421
421
|
}, arguments); },
|
|
422
|
-
|
|
422
|
+
__wbg_call_6bcf8d3e20937e46: function() { return handleError(function (arg0, arg1, arg2) {
|
|
423
423
|
const ret = arg0.call(arg1, arg2);
|
|
424
424
|
return ret;
|
|
425
425
|
}, arguments); },
|
|
426
|
-
|
|
426
|
+
__wbg_encode_835572da87b9e2af: function() { return handleError(function (arg0, arg1) {
|
|
427
427
|
const ret = arg0.encode(arg1);
|
|
428
428
|
return ret;
|
|
429
429
|
}, arguments); },
|
|
@@ -441,15 +441,15 @@ function __wbg_get_imports() {
|
|
|
441
441
|
__wbg_getRandomValues_436a51d0629d84e1: function() { return handleError(function (arg0, arg1) {
|
|
442
442
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
443
443
|
}, arguments); },
|
|
444
|
-
|
|
444
|
+
__wbg_get_989d0a1309644f2b: function() { return handleError(function (arg0, arg1) {
|
|
445
445
|
const ret = Reflect.get(arg0, arg1);
|
|
446
446
|
return ret;
|
|
447
447
|
}, arguments); },
|
|
448
|
-
|
|
448
|
+
__wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
|
|
449
449
|
const ret = arg0[arg1 >>> 0];
|
|
450
450
|
return ret;
|
|
451
451
|
},
|
|
452
|
-
|
|
452
|
+
__wbg_instanceof_Float32Array_31e80d3e88752523: function(arg0) {
|
|
453
453
|
let result;
|
|
454
454
|
try {
|
|
455
455
|
result = arg0 instanceof Float32Array;
|
|
@@ -459,15 +459,15 @@ function __wbg_get_imports() {
|
|
|
459
459
|
const ret = result;
|
|
460
460
|
return ret;
|
|
461
461
|
},
|
|
462
|
-
|
|
462
|
+
__wbg_isArray_5674713bb7b79043: function(arg0) {
|
|
463
463
|
const ret = Array.isArray(arg0);
|
|
464
464
|
return ret;
|
|
465
465
|
},
|
|
466
|
-
|
|
466
|
+
__wbg_length_4e1adc0d42e23620: function(arg0) {
|
|
467
467
|
const ret = arg0.length;
|
|
468
468
|
return ret;
|
|
469
469
|
},
|
|
470
|
-
|
|
470
|
+
__wbg_length_8768c6f6941913e3: function(arg0) {
|
|
471
471
|
const ret = arg0.length;
|
|
472
472
|
return ret;
|
|
473
473
|
},
|
|
@@ -475,18 +475,18 @@ function __wbg_get_imports() {
|
|
|
475
475
|
const ret = new Error();
|
|
476
476
|
return ret;
|
|
477
477
|
},
|
|
478
|
-
|
|
478
|
+
__wbg_new_from_slice_2221cabb71753908: function(arg0, arg1) {
|
|
479
479
|
const ret = new Float32Array(getArrayF32FromWasm0(arg0, arg1));
|
|
480
480
|
return ret;
|
|
481
481
|
},
|
|
482
|
-
|
|
482
|
+
__wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
|
|
483
483
|
try {
|
|
484
484
|
var state0 = {a: arg0, b: arg1};
|
|
485
485
|
var cb0 = (arg0, arg1) => {
|
|
486
486
|
const a = state0.a;
|
|
487
487
|
state0.a = 0;
|
|
488
488
|
try {
|
|
489
|
-
return
|
|
489
|
+
return wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
490
490
|
} finally {
|
|
491
491
|
state0.a = a;
|
|
492
492
|
}
|
|
@@ -497,25 +497,25 @@ function __wbg_get_imports() {
|
|
|
497
497
|
state0.a = 0;
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
|
-
|
|
500
|
+
__wbg_prototypesetcall_804a1eb1b047ccb9: function(arg0, arg1, arg2) {
|
|
501
501
|
Float32Array.prototype.set.call(getArrayF32FromWasm0(arg0, arg1), arg2);
|
|
502
502
|
},
|
|
503
|
-
|
|
504
|
-
queueMicrotask(arg0);
|
|
505
|
-
},
|
|
506
|
-
__wbg_queueMicrotask_be5fe34a8f4cad4d: function(arg0) {
|
|
503
|
+
__wbg_queueMicrotask_85c90f6987555d65: function(arg0) {
|
|
507
504
|
const ret = arg0.queueMicrotask;
|
|
508
505
|
return ret;
|
|
509
506
|
},
|
|
510
|
-
|
|
507
|
+
__wbg_queueMicrotask_f6a1fa10b81d1fc0: function(arg0) {
|
|
508
|
+
queueMicrotask(arg0);
|
|
509
|
+
},
|
|
510
|
+
__wbg_resolve_35ec7e0c6af4c82c: function(arg0) {
|
|
511
511
|
const ret = Promise.resolve(arg0);
|
|
512
512
|
return ret;
|
|
513
513
|
},
|
|
514
|
-
|
|
514
|
+
__wbg_run_5e70fea58ca6be63: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
515
515
|
const ret = arg0.run(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
|
|
516
516
|
return ret;
|
|
517
517
|
}, arguments); },
|
|
518
|
-
|
|
518
|
+
__wbg_run_b50d20d8195be8c0: function() { return handleError(function (arg0, arg1) {
|
|
519
519
|
const ret = arg0.run(arg1);
|
|
520
520
|
return ret;
|
|
521
521
|
}, arguments); },
|
|
@@ -526,40 +526,40 @@ function __wbg_get_imports() {
|
|
|
526
526
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
527
527
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
528
528
|
},
|
|
529
|
-
|
|
530
|
-
const ret = typeof
|
|
529
|
+
__wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
|
|
530
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
531
531
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
532
532
|
},
|
|
533
|
-
|
|
534
|
-
const ret = typeof
|
|
533
|
+
__wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db: function() {
|
|
534
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
535
535
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
536
536
|
},
|
|
537
|
-
|
|
537
|
+
__wbg_static_accessor_SELF_d8b50611246a6d92: function() {
|
|
538
538
|
const ret = typeof self === 'undefined' ? null : self;
|
|
539
539
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
540
540
|
},
|
|
541
|
-
|
|
541
|
+
__wbg_static_accessor_WINDOW_fd0bc376bf0f8b42: function() {
|
|
542
542
|
const ret = typeof window === 'undefined' ? null : window;
|
|
543
543
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
544
544
|
},
|
|
545
|
-
|
|
545
|
+
__wbg_step_b03f30167331bda5: function() { return handleError(function (arg0, arg1) {
|
|
546
546
|
const ret = arg0.step(arg1);
|
|
547
547
|
return ret;
|
|
548
548
|
}, arguments); },
|
|
549
|
-
|
|
550
|
-
const ret = arg0.then(arg1);
|
|
549
|
+
__wbg_then_7a850dae4493f353: function(arg0, arg1, arg2) {
|
|
550
|
+
const ret = arg0.then(arg1, arg2);
|
|
551
551
|
return ret;
|
|
552
552
|
},
|
|
553
|
-
|
|
554
|
-
const ret = arg0.then(arg1
|
|
553
|
+
__wbg_then_b830475380919203: function(arg0, arg1) {
|
|
554
|
+
const ret = arg0.then(arg1);
|
|
555
555
|
return ret;
|
|
556
556
|
},
|
|
557
|
-
|
|
558
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
559
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
557
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
558
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 85, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
559
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_);
|
|
560
560
|
return ret;
|
|
561
561
|
},
|
|
562
|
-
|
|
562
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
563
563
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
564
564
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
565
565
|
return ret;
|
|
@@ -580,15 +580,15 @@ function __wbg_get_imports() {
|
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
function
|
|
584
|
-
const ret = wasm.
|
|
583
|
+
function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2) {
|
|
584
|
+
const ret = wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_(arg0, arg1, arg2);
|
|
585
585
|
if (ret[1]) {
|
|
586
586
|
throw takeFromExternrefTable0(ret[0]);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
function
|
|
591
|
-
wasm.
|
|
590
|
+
function wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
591
|
+
wasm.wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
const DigitalConverterFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/web/docling_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
5
|
-
export const start: () => void;
|
|
6
|
-
export const supported_extensions: () => [number, number];
|
|
7
|
-
export const version: () => [number, number];
|
|
8
|
-
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
9
4
|
export const __wbg_digitalconverter_free: (a: number, b: number) => void;
|
|
10
5
|
export const __wbg_scannedconverter_free: (a: number, b: number) => void;
|
|
6
|
+
export const convert: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
11
7
|
export const convert_scanned_image: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: number, j: number, k: number, l: number) => any;
|
|
12
8
|
export const digitalconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: any, j: number) => any;
|
|
13
9
|
export const digitalconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => any;
|
|
@@ -15,13 +11,17 @@ export const digitalconverter_finish: (a: number, b: number, c: number, d: numbe
|
|
|
15
11
|
export const digitalconverter_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
16
12
|
export const digitalconverter_page_count: (a: number) => number;
|
|
17
13
|
export const digitalconverter_setDict: (a: number, b: number, c: number) => void;
|
|
14
|
+
export const ocr_image: (a: number, b: number, c: number, d: number, e: any, f: number, g: number) => any;
|
|
18
15
|
export const scannedconverter_addPageTf: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => any;
|
|
19
16
|
export const scannedconverter_add_page: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any) => any;
|
|
20
17
|
export const scannedconverter_finish: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
21
18
|
export const scannedconverter_new: (a: number, b: number) => number;
|
|
22
19
|
export const scannedconverter_page_count: (a: number) => number;
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
20
|
+
export const start: () => void;
|
|
21
|
+
export const supported_extensions: () => [number, number];
|
|
22
|
+
export const version: () => [number, number];
|
|
23
|
+
export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined___js_sys_6d47007f28f83474___Function_fn_wasm_bindgen_15402cda974f4c9c___JsValue_____wasm_bindgen_15402cda974f4c9c___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
+
export const wasm_bindgen_15402cda974f4c9c___convert__closures_____invoke___wasm_bindgen_15402cda974f4c9c___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_15402cda974f4c9c___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
25
25
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
26
26
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
27
27
|
export const __wbindgen_exn_store: (a: number) => void;
|