@flywheel-io/fw-file-rs 0.3.18 → 0.5.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/dcm/dcm.d.ts +49 -35
- package/dcm/dcm.js +403 -364
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +20 -16
- package/package.json +1 -1
package/dcm/dcm.js
CHANGED
|
@@ -1,101 +1,14 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
-
}
|
|
9
|
-
return cachedUint8ArrayMemory0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
-
|
|
14
|
-
cachedTextDecoder.decode();
|
|
15
|
-
|
|
16
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
-
let numBytesDecoded = 0;
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
numBytesDecoded += len;
|
|
20
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
-
cachedTextDecoder.decode();
|
|
23
|
-
numBytesDecoded = len;
|
|
24
|
-
}
|
|
25
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function getStringFromWasm0(ptr, len) {
|
|
29
|
-
ptr = ptr >>> 0;
|
|
30
|
-
return decodeText(ptr, len);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
let WASM_VECTOR_LEN = 0;
|
|
34
|
-
|
|
35
|
-
const cachedTextEncoder = new TextEncoder();
|
|
36
|
-
|
|
37
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
38
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
39
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
40
|
-
view.set(buf);
|
|
41
|
-
return {
|
|
42
|
-
read: arg.length,
|
|
43
|
-
written: buf.length
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
49
|
-
|
|
50
|
-
if (realloc === undefined) {
|
|
51
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
52
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
53
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
54
|
-
WASM_VECTOR_LEN = buf.length;
|
|
55
|
-
return ptr;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
let len = arg.length;
|
|
59
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
60
|
-
|
|
61
|
-
const mem = getUint8ArrayMemory0();
|
|
62
|
-
|
|
63
|
-
let offset = 0;
|
|
64
|
-
|
|
65
|
-
for (; offset < len; offset++) {
|
|
66
|
-
const code = arg.charCodeAt(offset);
|
|
67
|
-
if (code > 0x7F) break;
|
|
68
|
-
mem[ptr + offset] = code;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (offset !== len) {
|
|
72
|
-
if (offset !== 0) {
|
|
73
|
-
arg = arg.slice(offset);
|
|
74
|
-
}
|
|
75
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
76
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
77
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
78
|
-
|
|
79
|
-
offset += ret.written;
|
|
80
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
WASM_VECTOR_LEN = offset;
|
|
84
|
-
return ptr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let cachedDataViewMemory0 = null;
|
|
88
|
-
|
|
89
|
-
function getDataViewMemory0() {
|
|
90
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
91
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
92
|
-
}
|
|
93
|
-
return cachedDataViewMemory0;
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
94
7
|
}
|
|
95
8
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
9
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
10
|
+
? { register: () => {}, unregister: () => {} }
|
|
11
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
99
12
|
|
|
100
13
|
function debugString(val) {
|
|
101
14
|
// primitive types
|
|
@@ -162,10 +75,30 @@ function debugString(val) {
|
|
|
162
75
|
return className;
|
|
163
76
|
}
|
|
164
77
|
|
|
165
|
-
function
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
78
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
79
|
+
ptr = ptr >>> 0;
|
|
80
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let cachedDataViewMemory0 = null;
|
|
84
|
+
function getDataViewMemory0() {
|
|
85
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
86
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
87
|
+
}
|
|
88
|
+
return cachedDataViewMemory0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getStringFromWasm0(ptr, len) {
|
|
92
|
+
ptr = ptr >>> 0;
|
|
93
|
+
return decodeText(ptr, len);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let cachedUint8ArrayMemory0 = null;
|
|
97
|
+
function getUint8ArrayMemory0() {
|
|
98
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
99
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
100
|
+
}
|
|
101
|
+
return cachedUint8ArrayMemory0;
|
|
169
102
|
}
|
|
170
103
|
|
|
171
104
|
function handleError(f, args) {
|
|
@@ -177,15 +110,10 @@ function handleError(f, args) {
|
|
|
177
110
|
}
|
|
178
111
|
}
|
|
179
112
|
|
|
180
|
-
function
|
|
181
|
-
|
|
182
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
113
|
+
function isLikeNone(x) {
|
|
114
|
+
return x === undefined || x === null;
|
|
183
115
|
}
|
|
184
116
|
|
|
185
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
186
|
-
? { register: () => {}, unregister: () => {} }
|
|
187
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
188
|
-
|
|
189
117
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
190
118
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
191
119
|
const real = (...args) => {
|
|
@@ -214,55 +142,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
214
142
|
return real;
|
|
215
143
|
}
|
|
216
144
|
|
|
217
|
-
function takeFromExternrefTable0(idx) {
|
|
218
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
219
|
-
wasm.__externref_table_dealloc(idx);
|
|
220
|
-
return value;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
145
|
function passArray8ToWasm0(arg, malloc) {
|
|
224
146
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
225
147
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
226
148
|
WASM_VECTOR_LEN = arg.length;
|
|
227
149
|
return ptr;
|
|
228
150
|
}
|
|
229
|
-
/**
|
|
230
|
-
* @param {File} file
|
|
231
|
-
* @param {any} stop_tags
|
|
232
|
-
* @param {number | null} [max_size]
|
|
233
|
-
* @returns {Promise<Uint8Array>}
|
|
234
|
-
*/
|
|
235
|
-
export function read_until_pixels(file, stop_tags, max_size) {
|
|
236
|
-
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? 0x100000001 : (max_size) >>> 0);
|
|
237
|
-
return ret;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @param {any} tags_js
|
|
242
|
-
* @returns {Uint8Array}
|
|
243
|
-
*/
|
|
244
|
-
export function create_dcm_as_bytes(tags_js) {
|
|
245
|
-
const ret = wasm.create_dcm_as_bytes(tags_js);
|
|
246
|
-
if (ret[3]) {
|
|
247
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
248
|
-
}
|
|
249
|
-
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
250
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
251
|
-
return v1;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* @param {any} path_meta_pairs
|
|
256
|
-
* @param {any} arg1
|
|
257
|
-
* @returns {any}
|
|
258
|
-
*/
|
|
259
|
-
export function get_fw_meta(path_meta_pairs, arg1) {
|
|
260
|
-
const ret = wasm.get_fw_meta(path_meta_pairs, arg1);
|
|
261
|
-
if (ret[2]) {
|
|
262
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
263
|
-
}
|
|
264
|
-
return takeFromExternrefTable0(ret[0]);
|
|
265
|
-
}
|
|
266
151
|
|
|
267
152
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
268
153
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
@@ -273,48 +158,100 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
273
158
|
WASM_VECTOR_LEN = array.length;
|
|
274
159
|
return ptr;
|
|
275
160
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
var ptr1 = isLikeNone(include_tags) ? 0 : passArrayJsValueToWasm0(include_tags, wasm.__wbindgen_malloc);
|
|
285
|
-
var len1 = WASM_VECTOR_LEN;
|
|
286
|
-
const ret = wasm.parse_header(ptr0, len0, ptr1, len1);
|
|
287
|
-
if (ret[2]) {
|
|
288
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
161
|
+
|
|
162
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
163
|
+
if (realloc === undefined) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
+
WASM_VECTOR_LEN = buf.length;
|
|
168
|
+
return ptr;
|
|
289
169
|
}
|
|
290
|
-
|
|
170
|
+
|
|
171
|
+
let len = arg.length;
|
|
172
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
173
|
+
|
|
174
|
+
const mem = getUint8ArrayMemory0();
|
|
175
|
+
|
|
176
|
+
let offset = 0;
|
|
177
|
+
|
|
178
|
+
for (; offset < len; offset++) {
|
|
179
|
+
const code = arg.charCodeAt(offset);
|
|
180
|
+
if (code > 0x7F) break;
|
|
181
|
+
mem[ptr + offset] = code;
|
|
182
|
+
}
|
|
183
|
+
if (offset !== len) {
|
|
184
|
+
if (offset !== 0) {
|
|
185
|
+
arg = arg.slice(offset);
|
|
186
|
+
}
|
|
187
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
188
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
189
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
190
|
+
|
|
191
|
+
offset += ret.written;
|
|
192
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
WASM_VECTOR_LEN = offset;
|
|
196
|
+
return ptr;
|
|
291
197
|
}
|
|
292
198
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* @returns {any}
|
|
298
|
-
*/
|
|
299
|
-
export function group_series(path_meta_pairs, group_by_tags, split_localizer) {
|
|
300
|
-
const ret = wasm.group_series(path_meta_pairs, group_by_tags, split_localizer);
|
|
301
|
-
return ret;
|
|
199
|
+
function takeFromExternrefTable0(idx) {
|
|
200
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
201
|
+
wasm.__externref_table_dealloc(idx);
|
|
202
|
+
return value;
|
|
302
203
|
}
|
|
303
204
|
|
|
304
|
-
|
|
305
|
-
|
|
205
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
206
|
+
cachedTextDecoder.decode();
|
|
207
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
208
|
+
let numBytesDecoded = 0;
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
numBytesDecoded += len;
|
|
211
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
212
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
213
|
+
cachedTextDecoder.decode();
|
|
214
|
+
numBytesDecoded = len;
|
|
215
|
+
}
|
|
216
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
306
217
|
}
|
|
307
218
|
|
|
308
|
-
|
|
309
|
-
|
|
219
|
+
const cachedTextEncoder = new TextEncoder();
|
|
220
|
+
|
|
221
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
222
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
223
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
224
|
+
view.set(buf);
|
|
225
|
+
return {
|
|
226
|
+
read: arg.length,
|
|
227
|
+
written: buf.length
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
let WASM_VECTOR_LEN = 0;
|
|
233
|
+
|
|
234
|
+
function wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9(arg0, arg1, arg2) {
|
|
235
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9(arg0, arg1, arg2);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(arg0, arg1, arg2, arg3) {
|
|
239
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(arg0, arg1, arg2, arg3);
|
|
310
240
|
}
|
|
311
241
|
|
|
312
242
|
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
313
243
|
? { register: () => {}, unregister: () => {} }
|
|
314
244
|
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
|
|
315
245
|
|
|
316
|
-
|
|
246
|
+
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
247
|
+
? { register: () => {}, unregister: () => {} }
|
|
248
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
|
|
249
|
+
|
|
250
|
+
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
251
|
+
? { register: () => {}, unregister: () => {} }
|
|
252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
|
|
317
253
|
|
|
254
|
+
export class Context {
|
|
318
255
|
static __wrap(ptr) {
|
|
319
256
|
ptr = ptr >>> 0;
|
|
320
257
|
const obj = Object.create(Context.prototype);
|
|
@@ -322,59 +259,115 @@ export class Context {
|
|
|
322
259
|
ContextFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
323
260
|
return obj;
|
|
324
261
|
}
|
|
325
|
-
|
|
326
262
|
__destroy_into_raw() {
|
|
327
263
|
const ptr = this.__wbg_ptr;
|
|
328
264
|
this.__wbg_ptr = 0;
|
|
329
265
|
ContextFinalization.unregister(this);
|
|
330
266
|
return ptr;
|
|
331
267
|
}
|
|
332
|
-
|
|
333
268
|
free() {
|
|
334
269
|
const ptr = this.__destroy_into_raw();
|
|
335
270
|
wasm.__wbg_context_free(ptr, 0);
|
|
336
271
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
272
|
+
/**
|
|
273
|
+
* @param {Uint8Array} bytes
|
|
274
|
+
* @returns {Uint8Array}
|
|
275
|
+
*/
|
|
276
|
+
deid_header(bytes) {
|
|
277
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
278
|
+
const len0 = WASM_VECTOR_LEN;
|
|
279
|
+
const ret = wasm.context_deid_header(this.__wbg_ptr, ptr0, len0);
|
|
280
|
+
if (ret[3]) {
|
|
281
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
282
|
+
}
|
|
283
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
284
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
285
|
+
return v2;
|
|
342
286
|
}
|
|
343
287
|
/**
|
|
288
|
+
* @param {any} header
|
|
289
|
+
* @returns {any}
|
|
290
|
+
*/
|
|
291
|
+
get_fw_meta(header) {
|
|
292
|
+
const ret = wasm.context_get_fw_meta(this.__wbg_ptr, header);
|
|
293
|
+
if (ret[2]) {
|
|
294
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
295
|
+
}
|
|
296
|
+
return takeFromExternrefTable0(ret[0]);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @param {string} filename
|
|
300
|
+
* @param {Uint8Array} bytes
|
|
301
|
+
* @returns {any}
|
|
302
|
+
*/
|
|
303
|
+
rename_file(filename, bytes) {
|
|
304
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
const len0 = WASM_VECTOR_LEN;
|
|
306
|
+
const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
307
|
+
const len1 = WASM_VECTOR_LEN;
|
|
308
|
+
const ret = wasm.context_rename_file(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
309
|
+
if (ret[2]) {
|
|
310
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
311
|
+
}
|
|
312
|
+
return takeFromExternrefTable0(ret[0]);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* @param {string} yaml
|
|
344
316
|
* @returns {Context}
|
|
345
317
|
*/
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
|
|
318
|
+
deid_profile(yaml) {
|
|
319
|
+
const ptr = this.__destroy_into_raw();
|
|
320
|
+
const ptr0 = passStringToWasm0(yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
|
+
const len0 = WASM_VECTOR_LEN;
|
|
322
|
+
const ret = wasm.context_deid_profile(ptr, ptr0, len0);
|
|
323
|
+
if (ret[2]) {
|
|
324
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
325
|
+
}
|
|
326
|
+
return Context.__wrap(ret[0]);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @param {any} path_header_pairs
|
|
330
|
+
* @returns {any}
|
|
331
|
+
*/
|
|
332
|
+
group_series(path_header_pairs) {
|
|
333
|
+
const ret = wasm.context_group_series(this.__wbg_ptr, path_header_pairs);
|
|
334
|
+
if (ret[2]) {
|
|
335
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
336
|
+
}
|
|
337
|
+
return takeFromExternrefTable0(ret[0]);
|
|
349
338
|
}
|
|
350
339
|
/**
|
|
351
340
|
* @param {any} tags
|
|
352
341
|
* @returns {Context}
|
|
353
342
|
*/
|
|
354
|
-
|
|
343
|
+
include_tags(tags) {
|
|
355
344
|
const ptr = this.__destroy_into_raw();
|
|
356
|
-
const ret = wasm.
|
|
345
|
+
const ret = wasm.context_include_tags(ptr, tags);
|
|
357
346
|
if (ret[2]) {
|
|
358
347
|
throw takeFromExternrefTable0(ret[1]);
|
|
359
348
|
}
|
|
360
349
|
return Context.__wrap(ret[0]);
|
|
361
350
|
}
|
|
362
351
|
/**
|
|
363
|
-
* @param {
|
|
364
|
-
* @returns {
|
|
352
|
+
* @param {Uint8Array} bytes
|
|
353
|
+
* @returns {any}
|
|
365
354
|
*/
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
const
|
|
369
|
-
|
|
355
|
+
parse_header(bytes) {
|
|
356
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
357
|
+
const len0 = WASM_VECTOR_LEN;
|
|
358
|
+
const ret = wasm.context_parse_header(this.__wbg_ptr, ptr0, len0);
|
|
359
|
+
if (ret[2]) {
|
|
360
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
361
|
+
}
|
|
362
|
+
return takeFromExternrefTable0(ret[0]);
|
|
370
363
|
}
|
|
371
364
|
/**
|
|
372
365
|
* @param {any} tags
|
|
373
366
|
* @returns {Context}
|
|
374
367
|
*/
|
|
375
|
-
|
|
368
|
+
stop_at_tags(tags) {
|
|
376
369
|
const ptr = this.__destroy_into_raw();
|
|
377
|
-
const ret = wasm.
|
|
370
|
+
const ret = wasm.context_stop_at_tags(ptr, tags);
|
|
378
371
|
if (ret[2]) {
|
|
379
372
|
throw takeFromExternrefTable0(ret[1]);
|
|
380
373
|
}
|
|
@@ -392,6 +385,16 @@ export class Context {
|
|
|
392
385
|
}
|
|
393
386
|
return Context.__wrap(ret[0]);
|
|
394
387
|
}
|
|
388
|
+
/**
|
|
389
|
+
* @param {string} filename
|
|
390
|
+
* @returns {boolean}
|
|
391
|
+
*/
|
|
392
|
+
static is_dcm_filename(filename) {
|
|
393
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
|
+
const len0 = WASM_VECTOR_LEN;
|
|
395
|
+
const ret = wasm.context_is_dcm_filename(ptr0, len0);
|
|
396
|
+
return ret !== 0;
|
|
397
|
+
}
|
|
395
398
|
/**
|
|
396
399
|
* @param {boolean} flag
|
|
397
400
|
* @returns {Context}
|
|
@@ -402,33 +405,13 @@ export class Context {
|
|
|
402
405
|
return Context.__wrap(ret);
|
|
403
406
|
}
|
|
404
407
|
/**
|
|
405
|
-
* @
|
|
406
|
-
* @returns {Context}
|
|
407
|
-
*/
|
|
408
|
-
mappings(mappings) {
|
|
409
|
-
const ptr = this.__destroy_into_raw();
|
|
410
|
-
const ret = wasm.context_mappings(ptr, mappings);
|
|
411
|
-
if (ret[2]) {
|
|
412
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
413
|
-
}
|
|
414
|
-
return Context.__wrap(ret[0]);
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @param {string} yaml
|
|
418
|
-
* @returns {Context}
|
|
408
|
+
* @returns {DeidProfile | undefined}
|
|
419
409
|
*/
|
|
420
|
-
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
const len0 = WASM_VECTOR_LEN;
|
|
424
|
-
const ret = wasm.context_deid_profile(ptr, ptr0, len0);
|
|
425
|
-
if (ret[2]) {
|
|
426
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
427
|
-
}
|
|
428
|
-
return Context.__wrap(ret[0]);
|
|
410
|
+
get_deid_profile() {
|
|
411
|
+
const ret = wasm.context_get_deid_profile(this.__wbg_ptr);
|
|
412
|
+
return ret === 0 ? undefined : DeidProfile.__wrap(ret);
|
|
429
413
|
}
|
|
430
414
|
/**
|
|
431
|
-
* Read file until pixel data using configured stop tags
|
|
432
415
|
* @param {File} file
|
|
433
416
|
* @returns {Promise<Uint8Array>}
|
|
434
417
|
*/
|
|
@@ -437,64 +420,53 @@ export class Context {
|
|
|
437
420
|
return ret;
|
|
438
421
|
}
|
|
439
422
|
/**
|
|
440
|
-
* @param {
|
|
441
|
-
* @returns {
|
|
423
|
+
* @param {string} filename
|
|
424
|
+
* @returns {boolean}
|
|
442
425
|
*/
|
|
443
|
-
|
|
444
|
-
const ptr0 =
|
|
426
|
+
matches_file_filter(filename) {
|
|
427
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
445
428
|
const len0 = WASM_VECTOR_LEN;
|
|
446
|
-
const ret = wasm.
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
429
|
+
const ret = wasm.context_matches_file_filter(this.__wbg_ptr, ptr0, len0);
|
|
430
|
+
return ret !== 0;
|
|
431
|
+
}
|
|
432
|
+
constructor() {
|
|
433
|
+
const ret = wasm.context_default();
|
|
434
|
+
this.__wbg_ptr = ret >>> 0;
|
|
435
|
+
ContextFinalization.register(this, this.__wbg_ptr, this);
|
|
436
|
+
return this;
|
|
451
437
|
}
|
|
452
438
|
/**
|
|
453
|
-
* @
|
|
454
|
-
* @returns {any}
|
|
439
|
+
* @returns {Context}
|
|
455
440
|
*/
|
|
456
|
-
|
|
457
|
-
const ret = wasm.
|
|
458
|
-
|
|
459
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
460
|
-
}
|
|
461
|
-
return takeFromExternrefTable0(ret[0]);
|
|
441
|
+
static default() {
|
|
442
|
+
const ret = wasm.context_default();
|
|
443
|
+
return Context.__wrap(ret);
|
|
462
444
|
}
|
|
463
445
|
/**
|
|
464
|
-
* @param {any}
|
|
465
|
-
* @returns {
|
|
446
|
+
* @param {any} mappings
|
|
447
|
+
* @returns {Context}
|
|
466
448
|
*/
|
|
467
|
-
|
|
468
|
-
const
|
|
449
|
+
mappings(mappings) {
|
|
450
|
+
const ptr = this.__destroy_into_raw();
|
|
451
|
+
const ret = wasm.context_mappings(ptr, mappings);
|
|
469
452
|
if (ret[2]) {
|
|
470
453
|
throw takeFromExternrefTable0(ret[1]);
|
|
471
454
|
}
|
|
472
|
-
return
|
|
455
|
+
return Context.__wrap(ret[0]);
|
|
473
456
|
}
|
|
474
457
|
/**
|
|
475
|
-
* @param {
|
|
476
|
-
* @returns {
|
|
458
|
+
* @param {number} size
|
|
459
|
+
* @returns {Context}
|
|
477
460
|
*/
|
|
478
|
-
|
|
479
|
-
const
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
if (ret[3]) {
|
|
483
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
484
|
-
}
|
|
485
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
486
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
487
|
-
return v2;
|
|
461
|
+
max_size(size) {
|
|
462
|
+
const ptr = this.__destroy_into_raw();
|
|
463
|
+
const ret = wasm.context_max_size(ptr, size);
|
|
464
|
+
return Context.__wrap(ret);
|
|
488
465
|
}
|
|
489
466
|
}
|
|
490
467
|
if (Symbol.dispose) Context.prototype[Symbol.dispose] = Context.prototype.free;
|
|
491
468
|
|
|
492
|
-
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
493
|
-
? { register: () => {}, unregister: () => {} }
|
|
494
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
|
|
495
|
-
|
|
496
469
|
export class DeidProfile {
|
|
497
|
-
|
|
498
470
|
static __wrap(ptr) {
|
|
499
471
|
ptr = ptr >>> 0;
|
|
500
472
|
const obj = Object.create(DeidProfile.prototype);
|
|
@@ -502,31 +474,16 @@ export class DeidProfile {
|
|
|
502
474
|
DeidProfileFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
503
475
|
return obj;
|
|
504
476
|
}
|
|
505
|
-
|
|
506
477
|
__destroy_into_raw() {
|
|
507
478
|
const ptr = this.__wbg_ptr;
|
|
508
479
|
this.__wbg_ptr = 0;
|
|
509
480
|
DeidProfileFinalization.unregister(this);
|
|
510
481
|
return ptr;
|
|
511
482
|
}
|
|
512
|
-
|
|
513
483
|
free() {
|
|
514
484
|
const ptr = this.__destroy_into_raw();
|
|
515
485
|
wasm.__wbg_deidprofile_free(ptr, 0);
|
|
516
486
|
}
|
|
517
|
-
/**
|
|
518
|
-
* @param {string} yaml
|
|
519
|
-
* @returns {DeidProfile}
|
|
520
|
-
*/
|
|
521
|
-
static from_yaml(yaml) {
|
|
522
|
-
const ptr0 = passStringToWasm0(yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
523
|
-
const len0 = WASM_VECTOR_LEN;
|
|
524
|
-
const ret = wasm.deidprofile_from_yaml(ptr0, len0);
|
|
525
|
-
if (ret[2]) {
|
|
526
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
527
|
-
}
|
|
528
|
-
return DeidProfile.__wrap(ret[0]);
|
|
529
|
-
}
|
|
530
487
|
/**
|
|
531
488
|
* @param {Uint8Array} dcm_bytes
|
|
532
489
|
* @returns {Uint8Array}
|
|
@@ -542,22 +499,29 @@ export class DeidProfile {
|
|
|
542
499
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
543
500
|
return v2;
|
|
544
501
|
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {string} yaml
|
|
504
|
+
* @returns {DeidProfile}
|
|
505
|
+
*/
|
|
506
|
+
static from_yaml(yaml) {
|
|
507
|
+
const ptr0 = passStringToWasm0(yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
508
|
+
const len0 = WASM_VECTOR_LEN;
|
|
509
|
+
const ret = wasm.deidprofile_from_yaml(ptr0, len0);
|
|
510
|
+
if (ret[2]) {
|
|
511
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
512
|
+
}
|
|
513
|
+
return DeidProfile.__wrap(ret[0]);
|
|
514
|
+
}
|
|
545
515
|
}
|
|
546
516
|
if (Symbol.dispose) DeidProfile.prototype[Symbol.dispose] = DeidProfile.prototype.free;
|
|
547
517
|
|
|
548
|
-
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
549
|
-
? { register: () => {}, unregister: () => {} }
|
|
550
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
|
|
551
|
-
|
|
552
518
|
export class WasmDCMGroup {
|
|
553
|
-
|
|
554
519
|
__destroy_into_raw() {
|
|
555
520
|
const ptr = this.__wbg_ptr;
|
|
556
521
|
this.__wbg_ptr = 0;
|
|
557
522
|
WasmDCMGroupFinalization.unregister(this);
|
|
558
523
|
return ptr;
|
|
559
524
|
}
|
|
560
|
-
|
|
561
525
|
free() {
|
|
562
526
|
const ptr = this.__destroy_into_raw();
|
|
563
527
|
wasm.__wbg_wasmdcmgroup_free(ptr, 0);
|
|
@@ -565,6 +529,72 @@ export class WasmDCMGroup {
|
|
|
565
529
|
}
|
|
566
530
|
if (Symbol.dispose) WasmDCMGroup.prototype[Symbol.dispose] = WasmDCMGroup.prototype.free;
|
|
567
531
|
|
|
532
|
+
/**
|
|
533
|
+
* @param {any} tags_js
|
|
534
|
+
* @returns {Uint8Array}
|
|
535
|
+
*/
|
|
536
|
+
export function create_dcm_as_bytes(tags_js) {
|
|
537
|
+
const ret = wasm.create_dcm_as_bytes(tags_js);
|
|
538
|
+
if (ret[3]) {
|
|
539
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
540
|
+
}
|
|
541
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
542
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
543
|
+
return v1;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @param {any} path_meta_pairs
|
|
548
|
+
* @param {any} arg1
|
|
549
|
+
* @returns {any}
|
|
550
|
+
*/
|
|
551
|
+
export function get_fw_meta(path_meta_pairs, arg1) {
|
|
552
|
+
const ret = wasm.get_fw_meta(path_meta_pairs, arg1);
|
|
553
|
+
if (ret[2]) {
|
|
554
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
555
|
+
}
|
|
556
|
+
return takeFromExternrefTable0(ret[0]);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* @param {any} path_meta_pairs
|
|
561
|
+
* @param {any} group_by_tags
|
|
562
|
+
* @param {boolean} split_localizer
|
|
563
|
+
* @returns {any}
|
|
564
|
+
*/
|
|
565
|
+
export function group_series(path_meta_pairs, group_by_tags, split_localizer) {
|
|
566
|
+
const ret = wasm.group_series(path_meta_pairs, group_by_tags, split_localizer);
|
|
567
|
+
return ret;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {Uint8Array} bytes
|
|
572
|
+
* @param {string[] | null} [include_tags]
|
|
573
|
+
* @returns {any}
|
|
574
|
+
*/
|
|
575
|
+
export function parse_header(bytes, include_tags) {
|
|
576
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
577
|
+
const len0 = WASM_VECTOR_LEN;
|
|
578
|
+
var ptr1 = isLikeNone(include_tags) ? 0 : passArrayJsValueToWasm0(include_tags, wasm.__wbindgen_malloc);
|
|
579
|
+
var len1 = WASM_VECTOR_LEN;
|
|
580
|
+
const ret = wasm.parse_header(ptr0, len0, ptr1, len1);
|
|
581
|
+
if (ret[2]) {
|
|
582
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
583
|
+
}
|
|
584
|
+
return takeFromExternrefTable0(ret[0]);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @param {File} file
|
|
589
|
+
* @param {any} stop_tags
|
|
590
|
+
* @param {number | null} [max_size]
|
|
591
|
+
* @returns {Promise<Uint8Array>}
|
|
592
|
+
*/
|
|
593
|
+
export function read_until_pixels(file, stop_tags, max_size) {
|
|
594
|
+
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? 0x100000001 : (max_size) >>> 0);
|
|
595
|
+
return ret;
|
|
596
|
+
}
|
|
597
|
+
|
|
568
598
|
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
569
599
|
|
|
570
600
|
async function __wbg_load(module, imports) {
|
|
@@ -572,7 +602,6 @@ async function __wbg_load(module, imports) {
|
|
|
572
602
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
573
603
|
try {
|
|
574
604
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
575
|
-
|
|
576
605
|
} catch (e) {
|
|
577
606
|
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
578
607
|
|
|
@@ -587,13 +616,11 @@ async function __wbg_load(module, imports) {
|
|
|
587
616
|
|
|
588
617
|
const bytes = await module.arrayBuffer();
|
|
589
618
|
return await WebAssembly.instantiate(bytes, imports);
|
|
590
|
-
|
|
591
619
|
} else {
|
|
592
620
|
const instance = await WebAssembly.instantiate(module, imports);
|
|
593
621
|
|
|
594
622
|
if (instance instanceof WebAssembly.Instance) {
|
|
595
623
|
return { instance, module };
|
|
596
|
-
|
|
597
624
|
} else {
|
|
598
625
|
return instance;
|
|
599
626
|
}
|
|
@@ -603,11 +630,11 @@ async function __wbg_load(module, imports) {
|
|
|
603
630
|
function __wbg_get_imports() {
|
|
604
631
|
const imports = {};
|
|
605
632
|
imports.wbg = {};
|
|
606
|
-
imports.wbg.
|
|
633
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
607
634
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
608
635
|
return ret;
|
|
609
636
|
};
|
|
610
|
-
imports.wbg.
|
|
637
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
611
638
|
const ret = Number(arg0);
|
|
612
639
|
return ret;
|
|
613
640
|
};
|
|
@@ -618,68 +645,68 @@ function __wbg_get_imports() {
|
|
|
618
645
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
619
646
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
620
647
|
};
|
|
621
|
-
imports.wbg.
|
|
648
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
622
649
|
const v = arg1;
|
|
623
650
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
624
651
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
625
652
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
626
653
|
};
|
|
627
|
-
imports.wbg.
|
|
654
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
628
655
|
const v = arg0;
|
|
629
656
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
630
657
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
631
658
|
};
|
|
632
|
-
imports.wbg.
|
|
659
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
633
660
|
const ret = debugString(arg1);
|
|
634
661
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
635
662
|
const len1 = WASM_VECTOR_LEN;
|
|
636
663
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
637
664
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
638
665
|
};
|
|
639
|
-
imports.wbg.
|
|
666
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
640
667
|
const ret = arg0 in arg1;
|
|
641
668
|
return ret;
|
|
642
669
|
};
|
|
643
|
-
imports.wbg.
|
|
670
|
+
imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
644
671
|
const ret = typeof(arg0) === 'bigint';
|
|
645
672
|
return ret;
|
|
646
673
|
};
|
|
647
|
-
imports.wbg.
|
|
674
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
648
675
|
const ret = typeof(arg0) === 'function';
|
|
649
676
|
return ret;
|
|
650
677
|
};
|
|
651
|
-
imports.wbg.
|
|
678
|
+
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
652
679
|
const ret = arg0 === null;
|
|
653
680
|
return ret;
|
|
654
681
|
};
|
|
655
|
-
imports.wbg.
|
|
682
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
656
683
|
const val = arg0;
|
|
657
684
|
const ret = typeof(val) === 'object' && val !== null;
|
|
658
685
|
return ret;
|
|
659
686
|
};
|
|
660
|
-
imports.wbg.
|
|
687
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
661
688
|
const ret = typeof(arg0) === 'string';
|
|
662
689
|
return ret;
|
|
663
690
|
};
|
|
664
|
-
imports.wbg.
|
|
691
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
665
692
|
const ret = arg0 === undefined;
|
|
666
693
|
return ret;
|
|
667
694
|
};
|
|
668
|
-
imports.wbg.
|
|
695
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
669
696
|
const ret = arg0 === arg1;
|
|
670
697
|
return ret;
|
|
671
698
|
};
|
|
672
|
-
imports.wbg.
|
|
699
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
673
700
|
const ret = arg0 == arg1;
|
|
674
701
|
return ret;
|
|
675
702
|
};
|
|
676
|
-
imports.wbg.
|
|
703
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
677
704
|
const obj = arg1;
|
|
678
705
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
679
706
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
680
707
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
681
708
|
};
|
|
682
|
-
imports.wbg.
|
|
709
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
683
710
|
const obj = arg1;
|
|
684
711
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
685
712
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -687,44 +714,52 @@ function __wbg_get_imports() {
|
|
|
687
714
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
688
715
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
689
716
|
};
|
|
690
|
-
imports.wbg.
|
|
717
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
691
718
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
692
719
|
};
|
|
693
|
-
imports.wbg.
|
|
720
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
694
721
|
arg0._wbg_cb_unref();
|
|
695
722
|
};
|
|
696
|
-
imports.wbg.
|
|
723
|
+
imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function(arg0) {
|
|
697
724
|
const ret = arg0.arrayBuffer();
|
|
698
725
|
return ret;
|
|
699
726
|
};
|
|
700
|
-
imports.wbg.
|
|
727
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
701
728
|
const ret = arg0.call(arg1, arg2);
|
|
702
729
|
return ret;
|
|
703
730
|
}, arguments) };
|
|
704
|
-
imports.wbg.
|
|
731
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
705
732
|
const ret = arg0.call(arg1);
|
|
706
733
|
return ret;
|
|
707
734
|
}, arguments) };
|
|
708
|
-
imports.wbg.
|
|
735
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
709
736
|
const ret = arg0.done;
|
|
710
737
|
return ret;
|
|
711
738
|
};
|
|
712
|
-
imports.wbg.
|
|
739
|
+
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
713
740
|
const ret = Object.entries(arg0);
|
|
714
741
|
return ret;
|
|
715
742
|
};
|
|
716
743
|
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
717
744
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
718
745
|
}, arguments) };
|
|
719
|
-
imports.wbg.
|
|
746
|
+
imports.wbg.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
747
|
+
const ret = arg0.getTime();
|
|
748
|
+
return ret;
|
|
749
|
+
};
|
|
750
|
+
imports.wbg.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
751
|
+
const ret = arg0.getTimezoneOffset();
|
|
752
|
+
return ret;
|
|
753
|
+
};
|
|
754
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
720
755
|
const ret = arg0[arg1 >>> 0];
|
|
721
756
|
return ret;
|
|
722
757
|
};
|
|
723
|
-
imports.wbg.
|
|
758
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
724
759
|
const ret = Reflect.get(arg0, arg1);
|
|
725
760
|
return ret;
|
|
726
761
|
}, arguments) };
|
|
727
|
-
imports.wbg.
|
|
762
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
728
763
|
let result;
|
|
729
764
|
try {
|
|
730
765
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -734,7 +769,7 @@ function __wbg_get_imports() {
|
|
|
734
769
|
const ret = result;
|
|
735
770
|
return ret;
|
|
736
771
|
};
|
|
737
|
-
imports.wbg.
|
|
772
|
+
imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
738
773
|
let result;
|
|
739
774
|
try {
|
|
740
775
|
result = arg0 instanceof Map;
|
|
@@ -744,7 +779,7 @@ function __wbg_get_imports() {
|
|
|
744
779
|
const ret = result;
|
|
745
780
|
return ret;
|
|
746
781
|
};
|
|
747
|
-
imports.wbg.
|
|
782
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
748
783
|
let result;
|
|
749
784
|
try {
|
|
750
785
|
result = arg0 instanceof Uint8Array;
|
|
@@ -754,38 +789,58 @@ function __wbg_get_imports() {
|
|
|
754
789
|
const ret = result;
|
|
755
790
|
return ret;
|
|
756
791
|
};
|
|
757
|
-
imports.wbg.
|
|
792
|
+
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
758
793
|
const ret = Array.isArray(arg0);
|
|
759
794
|
return ret;
|
|
760
795
|
};
|
|
761
|
-
imports.wbg.
|
|
796
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
762
797
|
const ret = Number.isSafeInteger(arg0);
|
|
763
798
|
return ret;
|
|
764
799
|
};
|
|
765
|
-
imports.wbg.
|
|
800
|
+
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
766
801
|
const ret = Symbol.iterator;
|
|
767
802
|
return ret;
|
|
768
803
|
};
|
|
769
|
-
imports.wbg.
|
|
804
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
770
805
|
const ret = arg0.length;
|
|
771
806
|
return ret;
|
|
772
807
|
};
|
|
773
|
-
imports.wbg.
|
|
808
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
774
809
|
const ret = arg0.length;
|
|
775
810
|
return ret;
|
|
776
811
|
};
|
|
777
|
-
imports.wbg.
|
|
812
|
+
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
813
|
+
const ret = new Date();
|
|
814
|
+
return ret;
|
|
815
|
+
};
|
|
816
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
778
817
|
const ret = new Object();
|
|
779
818
|
return ret;
|
|
780
819
|
};
|
|
781
|
-
imports.wbg.
|
|
820
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
821
|
+
const ret = new Array();
|
|
822
|
+
return ret;
|
|
823
|
+
};
|
|
824
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
825
|
+
const ret = new Uint8Array(arg0);
|
|
826
|
+
return ret;
|
|
827
|
+
};
|
|
828
|
+
imports.wbg.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
829
|
+
const ret = new Date(arg0);
|
|
830
|
+
return ret;
|
|
831
|
+
};
|
|
832
|
+
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
833
|
+
const ret = new Map();
|
|
834
|
+
return ret;
|
|
835
|
+
};
|
|
836
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
782
837
|
try {
|
|
783
838
|
var state0 = {a: arg0, b: arg1};
|
|
784
839
|
var cb0 = (arg0, arg1) => {
|
|
785
840
|
const a = state0.a;
|
|
786
841
|
state0.a = 0;
|
|
787
842
|
try {
|
|
788
|
-
return
|
|
843
|
+
return wasm_bindgen__convert__closures_____invoke__h91cf05fe841f5ce9(a, state0.b, arg0, arg1);
|
|
789
844
|
} finally {
|
|
790
845
|
state0.a = a;
|
|
791
846
|
}
|
|
@@ -796,91 +851,79 @@ function __wbg_get_imports() {
|
|
|
796
851
|
state0.a = state0.b = 0;
|
|
797
852
|
}
|
|
798
853
|
};
|
|
799
|
-
imports.wbg.
|
|
800
|
-
const ret = new Uint8Array(arg0);
|
|
801
|
-
return ret;
|
|
802
|
-
};
|
|
803
|
-
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
804
|
-
const ret = new Map();
|
|
805
|
-
return ret;
|
|
806
|
-
};
|
|
807
|
-
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
808
|
-
const ret = new Array();
|
|
809
|
-
return ret;
|
|
810
|
-
};
|
|
811
|
-
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
854
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
812
855
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
813
856
|
return ret;
|
|
814
857
|
};
|
|
815
|
-
imports.wbg.
|
|
858
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
816
859
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
817
860
|
return ret;
|
|
818
861
|
};
|
|
819
|
-
imports.wbg.
|
|
820
|
-
const ret = arg0.next();
|
|
821
|
-
return ret;
|
|
822
|
-
}, arguments) };
|
|
823
|
-
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
862
|
+
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
824
863
|
const ret = arg0.next;
|
|
825
864
|
return ret;
|
|
826
865
|
};
|
|
827
|
-
imports.wbg.
|
|
866
|
+
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
867
|
+
const ret = arg0.next();
|
|
868
|
+
return ret;
|
|
869
|
+
}, arguments) };
|
|
870
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
828
871
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
829
872
|
};
|
|
830
|
-
imports.wbg.
|
|
873
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
831
874
|
const ret = arg0.queueMicrotask;
|
|
832
875
|
return ret;
|
|
833
876
|
};
|
|
834
|
-
imports.wbg.
|
|
877
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
835
878
|
queueMicrotask(arg0);
|
|
836
879
|
};
|
|
837
|
-
imports.wbg.
|
|
880
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
838
881
|
const ret = Promise.resolve(arg0);
|
|
839
882
|
return ret;
|
|
840
883
|
};
|
|
841
884
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
842
885
|
arg0[arg1] = arg2;
|
|
843
886
|
};
|
|
844
|
-
imports.wbg.
|
|
887
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
888
|
+
arg0[arg1 >>> 0] = arg2;
|
|
889
|
+
};
|
|
890
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
845
891
|
const ret = arg0.set(arg1, arg2);
|
|
846
892
|
return ret;
|
|
847
893
|
};
|
|
848
|
-
imports.wbg.
|
|
849
|
-
arg0[arg1 >>> 0] = arg2;
|
|
850
|
-
};
|
|
851
|
-
imports.wbg.__wbg_size_0a5a003dbf5dfee8 = function(arg0) {
|
|
894
|
+
imports.wbg.__wbg_size_82fbdb656de23326 = function(arg0) {
|
|
852
895
|
const ret = arg0.size;
|
|
853
896
|
return ret;
|
|
854
897
|
};
|
|
855
|
-
imports.wbg.
|
|
898
|
+
imports.wbg.__wbg_slice_3518c924243cda3a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
856
899
|
const ret = arg0.slice(arg1, arg2);
|
|
857
900
|
return ret;
|
|
858
901
|
}, arguments) };
|
|
859
|
-
imports.wbg.
|
|
902
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
860
903
|
const ret = typeof global === 'undefined' ? null : global;
|
|
861
904
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
862
905
|
};
|
|
863
|
-
imports.wbg.
|
|
906
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
864
907
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
865
908
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
866
909
|
};
|
|
867
|
-
imports.wbg.
|
|
910
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
868
911
|
const ret = typeof self === 'undefined' ? null : self;
|
|
869
912
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
870
913
|
};
|
|
871
|
-
imports.wbg.
|
|
914
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
872
915
|
const ret = typeof window === 'undefined' ? null : window;
|
|
873
916
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
874
917
|
};
|
|
875
|
-
imports.wbg.
|
|
876
|
-
const ret = arg0.then(arg1);
|
|
918
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
919
|
+
const ret = arg0.then(arg1, arg2);
|
|
877
920
|
return ret;
|
|
878
921
|
};
|
|
879
|
-
imports.wbg.
|
|
880
|
-
const ret = arg0.then(arg1
|
|
922
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
923
|
+
const ret = arg0.then(arg1);
|
|
881
924
|
return ret;
|
|
882
925
|
};
|
|
883
|
-
imports.wbg.
|
|
926
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
884
927
|
const ret = arg0.value;
|
|
885
928
|
return ret;
|
|
886
929
|
};
|
|
@@ -904,9 +947,9 @@ function __wbg_get_imports() {
|
|
|
904
947
|
const ret = arg0;
|
|
905
948
|
return ret;
|
|
906
949
|
};
|
|
907
|
-
imports.wbg.
|
|
908
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
909
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
950
|
+
imports.wbg.__wbindgen_cast_f59528fc2c089a81 = function(arg0, arg1) {
|
|
951
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
952
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h24f1c33a4f08db65, wasm_bindgen__convert__closures_____invoke__h8a977e7eae5944f9);
|
|
910
953
|
return ret;
|
|
911
954
|
};
|
|
912
955
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
@@ -917,7 +960,6 @@ function __wbg_get_imports() {
|
|
|
917
960
|
table.set(offset + 1, null);
|
|
918
961
|
table.set(offset + 2, true);
|
|
919
962
|
table.set(offset + 3, false);
|
|
920
|
-
;
|
|
921
963
|
};
|
|
922
964
|
|
|
923
965
|
return imports;
|
|
@@ -947,13 +989,10 @@ function initSync(module) {
|
|
|
947
989
|
}
|
|
948
990
|
|
|
949
991
|
const imports = __wbg_get_imports();
|
|
950
|
-
|
|
951
992
|
if (!(module instanceof WebAssembly.Module)) {
|
|
952
993
|
module = new WebAssembly.Module(module);
|
|
953
994
|
}
|
|
954
|
-
|
|
955
995
|
const instance = new WebAssembly.Instance(module, imports);
|
|
956
|
-
|
|
957
996
|
return __wbg_finalize_init(instance, module);
|
|
958
997
|
}
|
|
959
998
|
|