@senlinz/import-export-wasm 0.1.0 → 0.1.2
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/README.md +5 -1
- package/README.zh.md +4 -1
- package/package.json +8 -3
- package/pkg/imexport_wasm.d.ts +23 -3
- package/pkg/imexport_wasm.js +150 -32
- package/pkg/imexport_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ The browser example is covered by Playwright tests in [`./tests/wasm.test.js`](.
|
|
|
75
75
|
## Runtime notes
|
|
76
76
|
|
|
77
77
|
- Browser usage requires the generated JS/WASM assets from `wasm-pack build`.
|
|
78
|
+
- The generated `pkg/` directory is a build artifact and is not tracked in git.
|
|
78
79
|
- Image export requires `.withImageFetcher(...)`.
|
|
79
80
|
- Invalid schemas and invalid exported number/date values now fail with explicit errors.
|
|
80
81
|
|
|
@@ -82,6 +83,9 @@ The browser example is covered by Playwright tests in [`./tests/wasm.test.js`](.
|
|
|
82
83
|
|
|
83
84
|
```bash
|
|
84
85
|
cargo test --lib
|
|
86
|
+
cargo bench --features benchmarks
|
|
85
87
|
wasm-pack build --release --target web
|
|
86
|
-
pnpm
|
|
88
|
+
corepack pnpm install
|
|
89
|
+
corepack pnpm exec playwright install chromium
|
|
90
|
+
npm run e2e-test
|
|
87
91
|
```
|
package/README.zh.md
CHANGED
|
@@ -75,6 +75,7 @@ const imported = importData(info, workbook);
|
|
|
75
75
|
## 运行时说明
|
|
76
76
|
|
|
77
77
|
- 浏览器使用前需要通过 `wasm-pack build` 生成 JS / WASM 产物。
|
|
78
|
+
- 生成的 `pkg/` 目录属于构建产物,不会提交到 git。
|
|
78
79
|
- 图片导出需要 `.withImageFetcher(...)`。
|
|
79
80
|
- 非法 schema、非法数字值、非法日期值都会返回明确错误。
|
|
80
81
|
|
|
@@ -83,5 +84,7 @@ const imported = importData(info, workbook);
|
|
|
83
84
|
```bash
|
|
84
85
|
cargo test --lib
|
|
85
86
|
wasm-pack build --release --target web
|
|
86
|
-
pnpm
|
|
87
|
+
corepack pnpm install
|
|
88
|
+
corepack pnpm exec playwright install chromium
|
|
89
|
+
npm run e2e-test
|
|
87
90
|
```
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@senlinz/import-export-wasm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Rust WebAssembly for import/export excel files",
|
|
5
5
|
"main": "pkg/imexport_wasm.js",
|
|
6
6
|
"types": "pkg/imexport_wasm.d.ts",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@playwright/test": "1.48.2",
|
|
9
|
+
"serve": "14.2.4"
|
|
10
|
+
},
|
|
7
11
|
"files": [
|
|
8
12
|
"pkg/imexport_wasm_bg.wasm",
|
|
9
13
|
"pkg/imexport_wasm.bg.wasm.d.ts",
|
|
@@ -35,7 +39,8 @@
|
|
|
35
39
|
"build": "wasm-pack build --release --target web",
|
|
36
40
|
"publish-dry-run": "pnpm publish --dry-run --no-git-checks",
|
|
37
41
|
"cargo-test": "cargo test --lib",
|
|
38
|
-
"
|
|
39
|
-
"e2e-
|
|
42
|
+
"cargo-bench": "cargo bench --features benchmarks",
|
|
43
|
+
"e2e-serve": "serve -l 8080 .",
|
|
44
|
+
"e2e-test": "playwright test -c playwright.config.js"
|
|
40
45
|
}
|
|
41
46
|
}
|
package/pkg/imexport_wasm.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
export class DynamicExcelData {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
constructor(sheet_name: string, headers: string[], rows: ExcelRowData[]);
|
|
8
|
+
headers: string[];
|
|
9
|
+
rows: ExcelRowData[];
|
|
10
|
+
sheet_name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
export class ExcelCellFormat {
|
|
5
14
|
free(): void;
|
|
6
15
|
[Symbol.dispose](): void;
|
|
@@ -128,6 +137,8 @@ export function exportData(info: ExcelInfo, data: ExcelData): Promise<any>;
|
|
|
128
137
|
|
|
129
138
|
export function importData(info: ExcelInfo, excel_bytes: Uint8Array): ExcelData;
|
|
130
139
|
|
|
140
|
+
export function importDynamicData(sheet_name: string | null | undefined, header_row: number | null | undefined, excel_bytes: Uint8Array): DynamicExcelData;
|
|
141
|
+
|
|
131
142
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
132
143
|
|
|
133
144
|
export interface InitOutput {
|
|
@@ -135,6 +146,7 @@ export interface InitOutput {
|
|
|
135
146
|
readonly createTemplate: (a: number) => [number, number, number, number];
|
|
136
147
|
readonly exportData: (a: number, b: number) => any;
|
|
137
148
|
readonly importData: (a: number, b: number, c: number) => [number, number, number];
|
|
149
|
+
readonly importDynamicData: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
138
150
|
readonly __wbg_excelcellformat_free: (a: number, b: number) => void;
|
|
139
151
|
readonly __wbg_excelcolumninfo_free: (a: number, b: number) => void;
|
|
140
152
|
readonly __wbg_excelinfo_free: (a: number, b: number) => void;
|
|
@@ -236,7 +248,7 @@ export interface InitOutput {
|
|
|
236
248
|
readonly excelcolumninfo_withParent: (a: number, b: number, c: number) => number;
|
|
237
249
|
readonly excelcolumninfo_withValueFormat: (a: number, b: number, c: number) => number;
|
|
238
250
|
readonly excelcolumninfo_withWidth: (a: number, b: number) => number;
|
|
239
|
-
readonly excelinfo_bind_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
251
|
+
readonly excelinfo_bind_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number];
|
|
240
252
|
readonly excelinfo_withDefaultRowHeight: (a: number, b: number) => number;
|
|
241
253
|
readonly excelinfo_withHeaderRowHeight: (a: number, b: number) => number;
|
|
242
254
|
readonly excelinfo_withImageFetcher: (a: number, b: any) => number;
|
|
@@ -246,6 +258,14 @@ export interface InitOutput {
|
|
|
246
258
|
readonly excelinfo_withTitle: (a: number, b: number, c: number) => number;
|
|
247
259
|
readonly excelinfo_withTitleFormat: (a: number, b: number) => number;
|
|
248
260
|
readonly excelinfo_withTitleHeight: (a: number, b: number) => number;
|
|
261
|
+
readonly __wbg_dynamicexceldata_free: (a: number, b: number) => void;
|
|
262
|
+
readonly __wbg_get_dynamicexceldata_headers: (a: number) => [number, number];
|
|
263
|
+
readonly __wbg_get_dynamicexceldata_rows: (a: number) => [number, number];
|
|
264
|
+
readonly __wbg_get_dynamicexceldata_sheet_name: (a: number) => [number, number];
|
|
265
|
+
readonly __wbg_set_dynamicexceldata_headers: (a: number, b: number, c: number) => void;
|
|
266
|
+
readonly __wbg_set_dynamicexceldata_rows: (a: number, b: number, c: number) => void;
|
|
267
|
+
readonly __wbg_set_dynamicexceldata_sheet_name: (a: number, b: number, c: number) => void;
|
|
268
|
+
readonly dynamicexceldata_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
249
269
|
readonly __wbg_excelrowdata_free: (a: number, b: number) => void;
|
|
250
270
|
readonly __wbg_get_excelrowdata_columns: (a: number) => [number, number];
|
|
251
271
|
readonly __wbg_set_excelrowdata_columns: (a: number, b: number, c: number) => void;
|
|
@@ -265,8 +285,8 @@ export interface InitOutput {
|
|
|
265
285
|
readonly __wbg_get_exceldata_rows: (a: number) => [number, number];
|
|
266
286
|
readonly __wbg_set_exceldata_rows: (a: number, b: number, c: number) => void;
|
|
267
287
|
readonly exceldata_new: (a: number, b: number) => number;
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
288
|
+
readonly wasm_bindgen__convert__closures_____invoke__hb3e5d356ee2e5466: (a: number, b: number, c: any) => [number, number];
|
|
289
|
+
readonly wasm_bindgen__convert__closures_____invoke__h98029d2eb04d9334: (a: number, b: number, c: any, d: any) => void;
|
|
270
290
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
271
291
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
272
292
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/imexport_wasm.js
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
/* @ts-self-types="./imexport_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
+
export class DynamicExcelData {
|
|
4
|
+
static __wrap(ptr) {
|
|
5
|
+
ptr = ptr >>> 0;
|
|
6
|
+
const obj = Object.create(DynamicExcelData.prototype);
|
|
7
|
+
obj.__wbg_ptr = ptr;
|
|
8
|
+
DynamicExcelDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
11
|
+
__destroy_into_raw() {
|
|
12
|
+
const ptr = this.__wbg_ptr;
|
|
13
|
+
this.__wbg_ptr = 0;
|
|
14
|
+
DynamicExcelDataFinalization.unregister(this);
|
|
15
|
+
return ptr;
|
|
16
|
+
}
|
|
17
|
+
free() {
|
|
18
|
+
const ptr = this.__destroy_into_raw();
|
|
19
|
+
wasm.__wbg_dynamicexceldata_free(ptr, 0);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} sheet_name
|
|
23
|
+
* @param {string[]} headers
|
|
24
|
+
* @param {ExcelRowData[]} rows
|
|
25
|
+
*/
|
|
26
|
+
constructor(sheet_name, headers, rows) {
|
|
27
|
+
const ptr0 = passStringToWasm0(sheet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
28
|
+
const len0 = WASM_VECTOR_LEN;
|
|
29
|
+
const ptr1 = passArrayJsValueToWasm0(headers, wasm.__wbindgen_malloc);
|
|
30
|
+
const len1 = WASM_VECTOR_LEN;
|
|
31
|
+
const ptr2 = passArrayJsValueToWasm0(rows, wasm.__wbindgen_malloc);
|
|
32
|
+
const len2 = WASM_VECTOR_LEN;
|
|
33
|
+
const ret = wasm.dynamicexceldata_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
34
|
+
this.__wbg_ptr = ret >>> 0;
|
|
35
|
+
DynamicExcelDataFinalization.register(this, this.__wbg_ptr, this);
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @returns {string[]}
|
|
40
|
+
*/
|
|
41
|
+
get headers() {
|
|
42
|
+
const ret = wasm.__wbg_get_dynamicexceldata_headers(this.__wbg_ptr);
|
|
43
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
44
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
45
|
+
return v1;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @returns {ExcelRowData[]}
|
|
49
|
+
*/
|
|
50
|
+
get rows() {
|
|
51
|
+
const ret = wasm.__wbg_get_dynamicexceldata_rows(this.__wbg_ptr);
|
|
52
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
53
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
54
|
+
return v1;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @returns {string}
|
|
58
|
+
*/
|
|
59
|
+
get sheet_name() {
|
|
60
|
+
let deferred1_0;
|
|
61
|
+
let deferred1_1;
|
|
62
|
+
try {
|
|
63
|
+
const ret = wasm.__wbg_get_dynamicexceldata_sheet_name(this.__wbg_ptr);
|
|
64
|
+
deferred1_0 = ret[0];
|
|
65
|
+
deferred1_1 = ret[1];
|
|
66
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
67
|
+
} finally {
|
|
68
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @param {string[]} arg0
|
|
73
|
+
*/
|
|
74
|
+
set headers(arg0) {
|
|
75
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
76
|
+
const len0 = WASM_VECTOR_LEN;
|
|
77
|
+
wasm.__wbg_set_dynamicexceldata_headers(this.__wbg_ptr, ptr0, len0);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @param {ExcelRowData[]} arg0
|
|
81
|
+
*/
|
|
82
|
+
set rows(arg0) {
|
|
83
|
+
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
84
|
+
const len0 = WASM_VECTOR_LEN;
|
|
85
|
+
wasm.__wbg_set_dynamicexceldata_rows(this.__wbg_ptr, ptr0, len0);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @param {string} arg0
|
|
89
|
+
*/
|
|
90
|
+
set sheet_name(arg0) {
|
|
91
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
92
|
+
const len0 = WASM_VECTOR_LEN;
|
|
93
|
+
wasm.__wbg_set_dynamicexceldata_sheet_name(this.__wbg_ptr, ptr0, len0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (Symbol.dispose) DynamicExcelData.prototype[Symbol.dispose] = DynamicExcelData.prototype.free;
|
|
97
|
+
|
|
3
98
|
export class ExcelCellFormat {
|
|
4
99
|
static __wrap(ptr) {
|
|
5
100
|
ptr = ptr >>> 0;
|
|
@@ -1000,7 +1095,10 @@ export class ExcelInfo {
|
|
|
1000
1095
|
const ptr4 = passStringToWasm0(create_time, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1001
1096
|
const len4 = WASM_VECTOR_LEN;
|
|
1002
1097
|
const ret = wasm.excelinfo_bind_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
1003
|
-
|
|
1098
|
+
if (ret[2]) {
|
|
1099
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1100
|
+
}
|
|
1101
|
+
this.__wbg_ptr = ret[0] >>> 0;
|
|
1004
1102
|
ExcelInfoFinalization.register(this, this.__wbg_ptr, this);
|
|
1005
1103
|
return this;
|
|
1006
1104
|
}
|
|
@@ -1420,34 +1518,51 @@ export function importData(info, excel_bytes) {
|
|
|
1420
1518
|
return ExcelData.__wrap(ret[0]);
|
|
1421
1519
|
}
|
|
1422
1520
|
|
|
1521
|
+
/**
|
|
1522
|
+
* @param {string | null | undefined} sheet_name
|
|
1523
|
+
* @param {number | null | undefined} header_row
|
|
1524
|
+
* @param {Uint8Array} excel_bytes
|
|
1525
|
+
* @returns {DynamicExcelData}
|
|
1526
|
+
*/
|
|
1527
|
+
export function importDynamicData(sheet_name, header_row, excel_bytes) {
|
|
1528
|
+
var ptr0 = isLikeNone(sheet_name) ? 0 : passStringToWasm0(sheet_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1529
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1530
|
+
const ptr1 = passArray8ToWasm0(excel_bytes, wasm.__wbindgen_malloc);
|
|
1531
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1532
|
+
const ret = wasm.importDynamicData(ptr0, len0, isLikeNone(header_row) ? 0x100000001 : (header_row) >>> 0, ptr1, len1);
|
|
1533
|
+
if (ret[2]) {
|
|
1534
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1535
|
+
}
|
|
1536
|
+
return DynamicExcelData.__wrap(ret[0]);
|
|
1537
|
+
}
|
|
1423
1538
|
function __wbg_get_imports() {
|
|
1424
1539
|
const import0 = {
|
|
1425
1540
|
__proto__: null,
|
|
1426
|
-
|
|
1541
|
+
__wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
|
|
1427
1542
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1428
1543
|
return ret;
|
|
1429
1544
|
},
|
|
1430
|
-
|
|
1545
|
+
__wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
|
|
1431
1546
|
const ret = debugString(arg1);
|
|
1432
1547
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1433
1548
|
const len1 = WASM_VECTOR_LEN;
|
|
1434
1549
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1435
1550
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1436
1551
|
},
|
|
1437
|
-
|
|
1552
|
+
__wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
|
|
1438
1553
|
const ret = typeof(arg0) === 'function';
|
|
1439
1554
|
return ret;
|
|
1440
1555
|
},
|
|
1441
|
-
|
|
1556
|
+
__wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
|
|
1442
1557
|
const val = arg0;
|
|
1443
1558
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1444
1559
|
return ret;
|
|
1445
1560
|
},
|
|
1446
|
-
|
|
1561
|
+
__wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
|
|
1447
1562
|
const ret = arg0 === undefined;
|
|
1448
1563
|
return ret;
|
|
1449
1564
|
},
|
|
1450
|
-
|
|
1565
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
1451
1566
|
const obj = arg1;
|
|
1452
1567
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1453
1568
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1455,13 +1570,13 @@ function __wbg_get_imports() {
|
|
|
1455
1570
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1456
1571
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1457
1572
|
},
|
|
1458
|
-
|
|
1573
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
1459
1574
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1460
1575
|
},
|
|
1461
|
-
|
|
1576
|
+
__wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
|
|
1462
1577
|
arg0._wbg_cb_unref();
|
|
1463
1578
|
},
|
|
1464
|
-
|
|
1579
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1465
1580
|
const ret = arg0.call(arg1, arg2);
|
|
1466
1581
|
return ret;
|
|
1467
1582
|
}, arguments); },
|
|
@@ -1497,26 +1612,26 @@ function __wbg_get_imports() {
|
|
|
1497
1612
|
const ret = ExcelRowData.__unwrap(arg0);
|
|
1498
1613
|
return ret;
|
|
1499
1614
|
},
|
|
1500
|
-
|
|
1615
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
1501
1616
|
const ret = arg0.length;
|
|
1502
1617
|
return ret;
|
|
1503
1618
|
},
|
|
1504
|
-
|
|
1619
|
+
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
1505
1620
|
const ret = new Uint8Array(arg0);
|
|
1506
1621
|
return ret;
|
|
1507
1622
|
},
|
|
1508
|
-
|
|
1623
|
+
__wbg_new_from_slice_b5ea43e23f6008c0: function(arg0, arg1) {
|
|
1509
1624
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1510
1625
|
return ret;
|
|
1511
1626
|
},
|
|
1512
|
-
|
|
1627
|
+
__wbg_new_typed_323f37fd55ab048d: function(arg0, arg1) {
|
|
1513
1628
|
try {
|
|
1514
1629
|
var state0 = {a: arg0, b: arg1};
|
|
1515
1630
|
var cb0 = (arg0, arg1) => {
|
|
1516
1631
|
const a = state0.a;
|
|
1517
1632
|
state0.a = 0;
|
|
1518
1633
|
try {
|
|
1519
|
-
return
|
|
1634
|
+
return wasm_bindgen__convert__closures_____invoke__h98029d2eb04d9334(a, state0.b, arg0, arg1);
|
|
1520
1635
|
} finally {
|
|
1521
1636
|
state0.a = a;
|
|
1522
1637
|
}
|
|
@@ -1527,51 +1642,51 @@ function __wbg_get_imports() {
|
|
|
1527
1642
|
state0.a = 0;
|
|
1528
1643
|
}
|
|
1529
1644
|
},
|
|
1530
|
-
|
|
1645
|
+
__wbg_now_a9b7df1cbee90986: function() {
|
|
1531
1646
|
const ret = Date.now();
|
|
1532
1647
|
return ret;
|
|
1533
1648
|
},
|
|
1534
|
-
|
|
1649
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
1535
1650
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1536
1651
|
},
|
|
1537
|
-
|
|
1652
|
+
__wbg_queueMicrotask_5d15a957e6aa920e: function(arg0) {
|
|
1538
1653
|
queueMicrotask(arg0);
|
|
1539
1654
|
},
|
|
1540
|
-
|
|
1655
|
+
__wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
|
|
1541
1656
|
const ret = arg0.queueMicrotask;
|
|
1542
1657
|
return ret;
|
|
1543
1658
|
},
|
|
1544
|
-
|
|
1659
|
+
__wbg_resolve_e6c466bc1052f16c: function(arg0) {
|
|
1545
1660
|
const ret = Promise.resolve(arg0);
|
|
1546
1661
|
return ret;
|
|
1547
1662
|
},
|
|
1548
|
-
|
|
1663
|
+
__wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
|
|
1549
1664
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1550
1665
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1551
1666
|
},
|
|
1552
|
-
|
|
1667
|
+
__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
|
|
1553
1668
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1554
1669
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1555
1670
|
},
|
|
1556
|
-
|
|
1671
|
+
__wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
|
|
1557
1672
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1558
1673
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1559
1674
|
},
|
|
1560
|
-
|
|
1675
|
+
__wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
|
|
1561
1676
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1562
1677
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1563
1678
|
},
|
|
1564
|
-
|
|
1679
|
+
__wbg_then_792e0c862b060889: function(arg0, arg1, arg2) {
|
|
1565
1680
|
const ret = arg0.then(arg1, arg2);
|
|
1566
1681
|
return ret;
|
|
1567
1682
|
},
|
|
1568
|
-
|
|
1683
|
+
__wbg_then_8e16ee11f05e4827: function(arg0, arg1) {
|
|
1569
1684
|
const ret = arg0.then(arg1);
|
|
1570
1685
|
return ret;
|
|
1571
1686
|
},
|
|
1572
1687
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1573
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1574
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1688
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 368, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1689
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb3e5d356ee2e5466);
|
|
1575
1690
|
return ret;
|
|
1576
1691
|
},
|
|
1577
1692
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1600,17 +1715,20 @@ function __wbg_get_imports() {
|
|
|
1600
1715
|
};
|
|
1601
1716
|
}
|
|
1602
1717
|
|
|
1603
|
-
function
|
|
1604
|
-
const ret = wasm.
|
|
1718
|
+
function wasm_bindgen__convert__closures_____invoke__hb3e5d356ee2e5466(arg0, arg1, arg2) {
|
|
1719
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hb3e5d356ee2e5466(arg0, arg1, arg2);
|
|
1605
1720
|
if (ret[1]) {
|
|
1606
1721
|
throw takeFromExternrefTable0(ret[0]);
|
|
1607
1722
|
}
|
|
1608
1723
|
}
|
|
1609
1724
|
|
|
1610
|
-
function
|
|
1611
|
-
wasm.
|
|
1725
|
+
function wasm_bindgen__convert__closures_____invoke__h98029d2eb04d9334(arg0, arg1, arg2, arg3) {
|
|
1726
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h98029d2eb04d9334(arg0, arg1, arg2, arg3);
|
|
1612
1727
|
}
|
|
1613
1728
|
|
|
1729
|
+
const DynamicExcelDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1730
|
+
? { register: () => {}, unregister: () => {} }
|
|
1731
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dynamicexceldata_free(ptr >>> 0, 1));
|
|
1614
1732
|
const ExcelCellFormatFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1615
1733
|
? { register: () => {}, unregister: () => {} }
|
|
1616
1734
|
: new FinalizationRegistry(ptr => wasm.__wbg_excelcellformat_free(ptr >>> 0, 1));
|
|
Binary file
|