@flywheel-io/fw-file-rs 0.5.1 → 0.5.3
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 +82 -82
- package/dcm/dcm.js +758 -756
- package/dcm/dcm_bg.wasm +0 -0
- package/dcm/dcm_bg.wasm.d.ts +5 -5
- package/package.json +1 -1
package/dcm/dcm.js
CHANGED
|
@@ -1,255 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function addToExternrefTable0(obj) {
|
|
4
|
-
const idx = wasm.__externref_table_alloc();
|
|
5
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
-
return idx;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
10
|
-
? { register: () => {}, unregister: () => {} }
|
|
11
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
12
|
-
|
|
13
|
-
function debugString(val) {
|
|
14
|
-
// primitive types
|
|
15
|
-
const type = typeof val;
|
|
16
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
17
|
-
return `${val}`;
|
|
18
|
-
}
|
|
19
|
-
if (type == 'string') {
|
|
20
|
-
return `"${val}"`;
|
|
21
|
-
}
|
|
22
|
-
if (type == 'symbol') {
|
|
23
|
-
const description = val.description;
|
|
24
|
-
if (description == null) {
|
|
25
|
-
return 'Symbol';
|
|
26
|
-
} else {
|
|
27
|
-
return `Symbol(${description})`;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
if (type == 'function') {
|
|
31
|
-
const name = val.name;
|
|
32
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
33
|
-
return `Function(${name})`;
|
|
34
|
-
} else {
|
|
35
|
-
return 'Function';
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
// objects
|
|
39
|
-
if (Array.isArray(val)) {
|
|
40
|
-
const length = val.length;
|
|
41
|
-
let debug = '[';
|
|
42
|
-
if (length > 0) {
|
|
43
|
-
debug += debugString(val[0]);
|
|
44
|
-
}
|
|
45
|
-
for(let i = 1; i < length; i++) {
|
|
46
|
-
debug += ', ' + debugString(val[i]);
|
|
47
|
-
}
|
|
48
|
-
debug += ']';
|
|
49
|
-
return debug;
|
|
50
|
-
}
|
|
51
|
-
// Test for built-in
|
|
52
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
53
|
-
let className;
|
|
54
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
55
|
-
className = builtInMatches[1];
|
|
56
|
-
} else {
|
|
57
|
-
// Failed to match the standard '[object ClassName]'
|
|
58
|
-
return toString.call(val);
|
|
59
|
-
}
|
|
60
|
-
if (className == 'Object') {
|
|
61
|
-
// we're a user defined class or Object
|
|
62
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
63
|
-
// easier than looping through ownProperties of `val`.
|
|
64
|
-
try {
|
|
65
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
66
|
-
} catch (_) {
|
|
67
|
-
return 'Object';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// errors
|
|
71
|
-
if (val instanceof Error) {
|
|
72
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
73
|
-
}
|
|
74
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
75
|
-
return className;
|
|
76
|
-
}
|
|
77
|
-
|
|
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;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function handleError(f, args) {
|
|
105
|
-
try {
|
|
106
|
-
return f.apply(this, args);
|
|
107
|
-
} catch (e) {
|
|
108
|
-
const idx = addToExternrefTable0(e);
|
|
109
|
-
wasm.__wbindgen_exn_store(idx);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function isLikeNone(x) {
|
|
114
|
-
return x === undefined || x === null;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
118
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
119
|
-
const real = (...args) => {
|
|
120
|
-
|
|
121
|
-
// First up with a closure we increment the internal reference
|
|
122
|
-
// count. This ensures that the Rust closure environment won't
|
|
123
|
-
// be deallocated while we're invoking it.
|
|
124
|
-
state.cnt++;
|
|
125
|
-
const a = state.a;
|
|
126
|
-
state.a = 0;
|
|
127
|
-
try {
|
|
128
|
-
return f(a, state.b, ...args);
|
|
129
|
-
} finally {
|
|
130
|
-
state.a = a;
|
|
131
|
-
real._wbg_cb_unref();
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
real._wbg_cb_unref = () => {
|
|
135
|
-
if (--state.cnt === 0) {
|
|
136
|
-
state.dtor(state.a, state.b);
|
|
137
|
-
state.a = 0;
|
|
138
|
-
CLOSURE_DTORS.unregister(state);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
142
|
-
return real;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
146
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
147
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
148
|
-
WASM_VECTOR_LEN = arg.length;
|
|
149
|
-
return ptr;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
153
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
154
|
-
for (let i = 0; i < array.length; i++) {
|
|
155
|
-
const add = addToExternrefTable0(array[i]);
|
|
156
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
157
|
-
}
|
|
158
|
-
WASM_VECTOR_LEN = array.length;
|
|
159
|
-
return ptr;
|
|
160
|
-
}
|
|
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;
|
|
169
|
-
}
|
|
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;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
function takeFromExternrefTable0(idx) {
|
|
200
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
201
|
-
wasm.__externref_table_dealloc(idx);
|
|
202
|
-
return value;
|
|
203
|
-
}
|
|
204
|
-
|
|
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));
|
|
217
|
-
}
|
|
218
|
-
|
|
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__ha451cb208bb0fc0b(arg0, arg1, arg2) {
|
|
235
|
-
wasm.wasm_bindgen__convert__closures_____invoke__ha451cb208bb0fc0b(arg0, arg1, arg2);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
function wasm_bindgen__convert__closures_____invoke__h893b1d61029c883e(arg0, arg1, arg2, arg3) {
|
|
239
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h893b1d61029c883e(arg0, arg1, arg2, arg3);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
243
|
-
? { register: () => {}, unregister: () => {} }
|
|
244
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
|
|
245
|
-
|
|
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));
|
|
1
|
+
/* @ts-self-types="./dcm_js.d.ts" */
|
|
253
2
|
|
|
254
3
|
export class Context {
|
|
255
4
|
static __wrap(ptr) {
|
|
@@ -269,6 +18,13 @@ export class Context {
|
|
|
269
18
|
const ptr = this.__destroy_into_raw();
|
|
270
19
|
wasm.__wbg_context_free(ptr, 0);
|
|
271
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @returns {Context}
|
|
23
|
+
*/
|
|
24
|
+
static default() {
|
|
25
|
+
const ret = wasm.context_default();
|
|
26
|
+
return Context.__wrap(ret);
|
|
27
|
+
}
|
|
272
28
|
/**
|
|
273
29
|
* @param {Uint8Array} bytes
|
|
274
30
|
* @returns {Uint8Array}
|
|
@@ -284,33 +40,6 @@ export class Context {
|
|
|
284
40
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
285
41
|
return v2;
|
|
286
42
|
}
|
|
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
43
|
/**
|
|
315
44
|
* @param {string} yaml
|
|
316
45
|
* @returns {Context}
|
|
@@ -326,11 +55,18 @@ export class Context {
|
|
|
326
55
|
return Context.__wrap(ret[0]);
|
|
327
56
|
}
|
|
328
57
|
/**
|
|
329
|
-
* @
|
|
58
|
+
* @returns {DeidProfile | undefined}
|
|
59
|
+
*/
|
|
60
|
+
get_deid_profile() {
|
|
61
|
+
const ret = wasm.context_get_deid_profile(this.__wbg_ptr);
|
|
62
|
+
return ret === 0 ? undefined : DeidProfile.__wrap(ret);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @param {any} header
|
|
330
66
|
* @returns {any}
|
|
331
67
|
*/
|
|
332
|
-
|
|
333
|
-
const ret = wasm.
|
|
68
|
+
get_fw_meta(header) {
|
|
69
|
+
const ret = wasm.context_get_fw_meta(this.__wbg_ptr, header);
|
|
334
70
|
if (ret[2]) {
|
|
335
71
|
throw takeFromExternrefTable0(ret[1]);
|
|
336
72
|
}
|
|
@@ -340,22 +76,20 @@ export class Context {
|
|
|
340
76
|
* @param {any} tags
|
|
341
77
|
* @returns {Context}
|
|
342
78
|
*/
|
|
343
|
-
|
|
79
|
+
group_by_tags(tags) {
|
|
344
80
|
const ptr = this.__destroy_into_raw();
|
|
345
|
-
const ret = wasm.
|
|
81
|
+
const ret = wasm.context_group_by_tags(ptr, tags);
|
|
346
82
|
if (ret[2]) {
|
|
347
83
|
throw takeFromExternrefTable0(ret[1]);
|
|
348
84
|
}
|
|
349
85
|
return Context.__wrap(ret[0]);
|
|
350
86
|
}
|
|
351
87
|
/**
|
|
352
|
-
* @param {
|
|
88
|
+
* @param {any} path_header_pairs
|
|
353
89
|
* @returns {any}
|
|
354
90
|
*/
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
const len0 = WASM_VECTOR_LEN;
|
|
358
|
-
const ret = wasm.context_parse_header(this.__wbg_ptr, ptr0, len0);
|
|
91
|
+
group_series(path_header_pairs) {
|
|
92
|
+
const ret = wasm.context_group_series(this.__wbg_ptr, path_header_pairs);
|
|
359
93
|
if (ret[2]) {
|
|
360
94
|
throw takeFromExternrefTable0(ret[1]);
|
|
361
95
|
}
|
|
@@ -365,21 +99,31 @@ export class Context {
|
|
|
365
99
|
* @param {any} tags
|
|
366
100
|
* @returns {Context}
|
|
367
101
|
*/
|
|
368
|
-
|
|
102
|
+
include_tags(tags) {
|
|
369
103
|
const ptr = this.__destroy_into_raw();
|
|
370
|
-
const ret = wasm.
|
|
104
|
+
const ret = wasm.context_include_tags(ptr, tags);
|
|
371
105
|
if (ret[2]) {
|
|
372
106
|
throw takeFromExternrefTable0(ret[1]);
|
|
373
107
|
}
|
|
374
108
|
return Context.__wrap(ret[0]);
|
|
375
109
|
}
|
|
376
110
|
/**
|
|
377
|
-
* @param {
|
|
111
|
+
* @param {string} filename
|
|
112
|
+
* @returns {boolean}
|
|
113
|
+
*/
|
|
114
|
+
static is_dcm_filename(filename) {
|
|
115
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
116
|
+
const len0 = WASM_VECTOR_LEN;
|
|
117
|
+
const ret = wasm.context_is_dcm_filename(ptr0, len0);
|
|
118
|
+
return ret !== 0;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @param {any} mappings
|
|
378
122
|
* @returns {Context}
|
|
379
123
|
*/
|
|
380
|
-
|
|
124
|
+
mappings(mappings) {
|
|
381
125
|
const ptr = this.__destroy_into_raw();
|
|
382
|
-
const ret = wasm.
|
|
126
|
+
const ret = wasm.context_mappings(ptr, mappings);
|
|
383
127
|
if (ret[2]) {
|
|
384
128
|
throw takeFromExternrefTable0(ret[1]);
|
|
385
129
|
}
|
|
@@ -389,27 +133,39 @@ export class Context {
|
|
|
389
133
|
* @param {string} filename
|
|
390
134
|
* @returns {boolean}
|
|
391
135
|
*/
|
|
392
|
-
|
|
136
|
+
matches_file_filter(filename) {
|
|
393
137
|
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
394
138
|
const len0 = WASM_VECTOR_LEN;
|
|
395
|
-
const ret = wasm.
|
|
139
|
+
const ret = wasm.context_matches_file_filter(this.__wbg_ptr, ptr0, len0);
|
|
396
140
|
return ret !== 0;
|
|
397
141
|
}
|
|
398
142
|
/**
|
|
399
|
-
* @param {
|
|
143
|
+
* @param {number} size
|
|
400
144
|
* @returns {Context}
|
|
401
145
|
*/
|
|
402
|
-
|
|
146
|
+
max_size(size) {
|
|
403
147
|
const ptr = this.__destroy_into_raw();
|
|
404
|
-
const ret = wasm.
|
|
148
|
+
const ret = wasm.context_max_size(ptr, size);
|
|
405
149
|
return Context.__wrap(ret);
|
|
406
150
|
}
|
|
151
|
+
constructor() {
|
|
152
|
+
const ret = wasm.context_default();
|
|
153
|
+
this.__wbg_ptr = ret >>> 0;
|
|
154
|
+
ContextFinalization.register(this, this.__wbg_ptr, this);
|
|
155
|
+
return this;
|
|
156
|
+
}
|
|
407
157
|
/**
|
|
408
|
-
* @
|
|
158
|
+
* @param {Uint8Array} bytes
|
|
159
|
+
* @returns {any}
|
|
409
160
|
*/
|
|
410
|
-
|
|
411
|
-
const
|
|
412
|
-
|
|
161
|
+
parse_header(bytes) {
|
|
162
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
163
|
+
const len0 = WASM_VECTOR_LEN;
|
|
164
|
+
const ret = wasm.context_parse_header(this.__wbg_ptr, ptr0, len0);
|
|
165
|
+
if (ret[2]) {
|
|
166
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
167
|
+
}
|
|
168
|
+
return takeFromExternrefTable0(ret[0]);
|
|
413
169
|
}
|
|
414
170
|
/**
|
|
415
171
|
* @param {File} file
|
|
@@ -421,48 +177,41 @@ export class Context {
|
|
|
421
177
|
}
|
|
422
178
|
/**
|
|
423
179
|
* @param {string} filename
|
|
424
|
-
* @
|
|
180
|
+
* @param {Uint8Array} bytes
|
|
181
|
+
* @returns {any}
|
|
425
182
|
*/
|
|
426
|
-
|
|
183
|
+
rename_file(filename, bytes) {
|
|
427
184
|
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
428
185
|
const len0 = WASM_VECTOR_LEN;
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
return this;
|
|
186
|
+
const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
187
|
+
const len1 = WASM_VECTOR_LEN;
|
|
188
|
+
const ret = wasm.context_rename_file(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
189
|
+
if (ret[2]) {
|
|
190
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
191
|
+
}
|
|
192
|
+
return takeFromExternrefTable0(ret[0]);
|
|
437
193
|
}
|
|
438
194
|
/**
|
|
195
|
+
* @param {boolean} flag
|
|
439
196
|
* @returns {Context}
|
|
440
197
|
*/
|
|
441
|
-
|
|
442
|
-
const
|
|
198
|
+
split_localizer(flag) {
|
|
199
|
+
const ptr = this.__destroy_into_raw();
|
|
200
|
+
const ret = wasm.context_split_localizer(ptr, flag);
|
|
443
201
|
return Context.__wrap(ret);
|
|
444
202
|
}
|
|
445
203
|
/**
|
|
446
|
-
* @param {any}
|
|
204
|
+
* @param {any} tags
|
|
447
205
|
* @returns {Context}
|
|
448
206
|
*/
|
|
449
|
-
|
|
207
|
+
stop_at_tags(tags) {
|
|
450
208
|
const ptr = this.__destroy_into_raw();
|
|
451
|
-
const ret = wasm.
|
|
209
|
+
const ret = wasm.context_stop_at_tags(ptr, tags);
|
|
452
210
|
if (ret[2]) {
|
|
453
211
|
throw takeFromExternrefTable0(ret[1]);
|
|
454
212
|
}
|
|
455
213
|
return Context.__wrap(ret[0]);
|
|
456
214
|
}
|
|
457
|
-
/**
|
|
458
|
-
* @param {number} size
|
|
459
|
-
* @returns {Context}
|
|
460
|
-
*/
|
|
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);
|
|
465
|
-
}
|
|
466
215
|
}
|
|
467
216
|
if (Symbol.dispose) Context.prototype[Symbol.dispose] = Context.prototype.free;
|
|
468
217
|
|
|
@@ -510,92 +259,690 @@ export class DeidProfile {
|
|
|
510
259
|
if (ret[2]) {
|
|
511
260
|
throw takeFromExternrefTable0(ret[1]);
|
|
512
261
|
}
|
|
513
|
-
return DeidProfile.__wrap(ret[0]);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
if (Symbol.dispose) DeidProfile.prototype[Symbol.dispose] = DeidProfile.prototype.free;
|
|
262
|
+
return DeidProfile.__wrap(ret[0]);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
if (Symbol.dispose) DeidProfile.prototype[Symbol.dispose] = DeidProfile.prototype.free;
|
|
266
|
+
|
|
267
|
+
export class WasmDCMGroup {
|
|
268
|
+
__destroy_into_raw() {
|
|
269
|
+
const ptr = this.__wbg_ptr;
|
|
270
|
+
this.__wbg_ptr = 0;
|
|
271
|
+
WasmDCMGroupFinalization.unregister(this);
|
|
272
|
+
return ptr;
|
|
273
|
+
}
|
|
274
|
+
free() {
|
|
275
|
+
const ptr = this.__destroy_into_raw();
|
|
276
|
+
wasm.__wbg_wasmdcmgroup_free(ptr, 0);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
if (Symbol.dispose) WasmDCMGroup.prototype[Symbol.dispose] = WasmDCMGroup.prototype.free;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* @param {any} tags_js
|
|
283
|
+
* @returns {Uint8Array}
|
|
284
|
+
*/
|
|
285
|
+
export function create_dcm_as_bytes(tags_js) {
|
|
286
|
+
const ret = wasm.create_dcm_as_bytes(tags_js);
|
|
287
|
+
if (ret[3]) {
|
|
288
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
289
|
+
}
|
|
290
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
291
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
292
|
+
return v1;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @param {any} path_meta_pairs
|
|
297
|
+
* @param {any} arg1
|
|
298
|
+
* @returns {any}
|
|
299
|
+
*/
|
|
300
|
+
export function get_fw_meta(path_meta_pairs, arg1) {
|
|
301
|
+
const ret = wasm.get_fw_meta(path_meta_pairs, arg1);
|
|
302
|
+
if (ret[2]) {
|
|
303
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
304
|
+
}
|
|
305
|
+
return takeFromExternrefTable0(ret[0]);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @param {any} path_meta_pairs
|
|
310
|
+
* @param {any} group_by_tags
|
|
311
|
+
* @param {boolean} split_localizer
|
|
312
|
+
* @returns {any}
|
|
313
|
+
*/
|
|
314
|
+
export function group_series(path_meta_pairs, group_by_tags, split_localizer) {
|
|
315
|
+
const ret = wasm.group_series(path_meta_pairs, group_by_tags, split_localizer);
|
|
316
|
+
return ret;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* @param {Uint8Array} bytes
|
|
321
|
+
* @param {string[] | null} [include_tags]
|
|
322
|
+
* @returns {any}
|
|
323
|
+
*/
|
|
324
|
+
export function parse_header(bytes, include_tags) {
|
|
325
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
326
|
+
const len0 = WASM_VECTOR_LEN;
|
|
327
|
+
var ptr1 = isLikeNone(include_tags) ? 0 : passArrayJsValueToWasm0(include_tags, wasm.__wbindgen_malloc);
|
|
328
|
+
var len1 = WASM_VECTOR_LEN;
|
|
329
|
+
const ret = wasm.parse_header(ptr0, len0, ptr1, len1);
|
|
330
|
+
if (ret[2]) {
|
|
331
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
332
|
+
}
|
|
333
|
+
return takeFromExternrefTable0(ret[0]);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @param {File} file
|
|
338
|
+
* @param {any} stop_tags
|
|
339
|
+
* @param {number | null} [max_size]
|
|
340
|
+
* @returns {Promise<Uint8Array>}
|
|
341
|
+
*/
|
|
342
|
+
export function read_until_pixels(file, stop_tags, max_size) {
|
|
343
|
+
const ret = wasm.read_until_pixels(file, stop_tags, isLikeNone(max_size) ? 0x100000001 : (max_size) >>> 0);
|
|
344
|
+
return ret;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function __wbg_get_imports() {
|
|
348
|
+
const import0 = {
|
|
349
|
+
__proto__: null,
|
|
350
|
+
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
351
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
352
|
+
return ret;
|
|
353
|
+
},
|
|
354
|
+
__wbg_Number_04624de7d0e8332d: function(arg0) {
|
|
355
|
+
const ret = Number(arg0);
|
|
356
|
+
return ret;
|
|
357
|
+
},
|
|
358
|
+
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
359
|
+
const ret = String(arg1);
|
|
360
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
361
|
+
const len1 = WASM_VECTOR_LEN;
|
|
362
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
363
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
364
|
+
},
|
|
365
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
366
|
+
const v = arg1;
|
|
367
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
368
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
369
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
370
|
+
},
|
|
371
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
|
|
372
|
+
const v = arg0;
|
|
373
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
374
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
375
|
+
},
|
|
376
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
|
|
377
|
+
const ret = debugString(arg1);
|
|
378
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
379
|
+
const len1 = WASM_VECTOR_LEN;
|
|
380
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
381
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
382
|
+
},
|
|
383
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
|
|
384
|
+
const ret = arg0 in arg1;
|
|
385
|
+
return ret;
|
|
386
|
+
},
|
|
387
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
|
|
388
|
+
const ret = typeof(arg0) === 'bigint';
|
|
389
|
+
return ret;
|
|
390
|
+
},
|
|
391
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
|
|
392
|
+
const ret = typeof(arg0) === 'function';
|
|
393
|
+
return ret;
|
|
394
|
+
},
|
|
395
|
+
__wbg___wbindgen_is_null_ac34f5003991759a: function(arg0) {
|
|
396
|
+
const ret = arg0 === null;
|
|
397
|
+
return ret;
|
|
398
|
+
},
|
|
399
|
+
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
400
|
+
const val = arg0;
|
|
401
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
402
|
+
return ret;
|
|
403
|
+
},
|
|
404
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
405
|
+
const ret = typeof(arg0) === 'string';
|
|
406
|
+
return ret;
|
|
407
|
+
},
|
|
408
|
+
__wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
|
|
409
|
+
const ret = arg0 === undefined;
|
|
410
|
+
return ret;
|
|
411
|
+
},
|
|
412
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
|
|
413
|
+
const ret = arg0 === arg1;
|
|
414
|
+
return ret;
|
|
415
|
+
},
|
|
416
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
|
|
417
|
+
const ret = arg0 == arg1;
|
|
418
|
+
return ret;
|
|
419
|
+
},
|
|
420
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
|
|
421
|
+
const obj = arg1;
|
|
422
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
423
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
424
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
425
|
+
},
|
|
426
|
+
__wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
|
|
427
|
+
const obj = arg1;
|
|
428
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
429
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
430
|
+
var len1 = WASM_VECTOR_LEN;
|
|
431
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
432
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
433
|
+
},
|
|
434
|
+
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
435
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
436
|
+
},
|
|
437
|
+
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
|
|
438
|
+
arg0._wbg_cb_unref();
|
|
439
|
+
},
|
|
440
|
+
__wbg_arrayBuffer_05ce1af23e9064e8: function(arg0) {
|
|
441
|
+
const ret = arg0.arrayBuffer();
|
|
442
|
+
return ret;
|
|
443
|
+
},
|
|
444
|
+
__wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
|
|
445
|
+
const ret = arg0.call(arg1);
|
|
446
|
+
return ret;
|
|
447
|
+
}, arguments); },
|
|
448
|
+
__wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
|
|
449
|
+
const ret = arg0.call(arg1, arg2);
|
|
450
|
+
return ret;
|
|
451
|
+
}, arguments); },
|
|
452
|
+
__wbg_done_57b39ecd9addfe81: function(arg0) {
|
|
453
|
+
const ret = arg0.done;
|
|
454
|
+
return ret;
|
|
455
|
+
},
|
|
456
|
+
__wbg_entries_58c7934c745daac7: function(arg0) {
|
|
457
|
+
const ret = Object.entries(arg0);
|
|
458
|
+
return ret;
|
|
459
|
+
},
|
|
460
|
+
__wbg_getRandomValues_1c61fac11405ffdc: function() { return handleError(function (arg0, arg1) {
|
|
461
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
462
|
+
}, arguments); },
|
|
463
|
+
__wbg_getTime_1e3cd1391c5c3995: function(arg0) {
|
|
464
|
+
const ret = arg0.getTime();
|
|
465
|
+
return ret;
|
|
466
|
+
},
|
|
467
|
+
__wbg_getTimezoneOffset_81776d10a4ec18a8: function(arg0) {
|
|
468
|
+
const ret = arg0.getTimezoneOffset();
|
|
469
|
+
return ret;
|
|
470
|
+
},
|
|
471
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
472
|
+
const ret = arg0[arg1 >>> 0];
|
|
473
|
+
return ret;
|
|
474
|
+
},
|
|
475
|
+
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
476
|
+
const ret = Reflect.get(arg0, arg1);
|
|
477
|
+
return ret;
|
|
478
|
+
}, arguments); },
|
|
479
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
|
|
480
|
+
let result;
|
|
481
|
+
try {
|
|
482
|
+
result = arg0 instanceof ArrayBuffer;
|
|
483
|
+
} catch (_) {
|
|
484
|
+
result = false;
|
|
485
|
+
}
|
|
486
|
+
const ret = result;
|
|
487
|
+
return ret;
|
|
488
|
+
},
|
|
489
|
+
__wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
|
|
490
|
+
let result;
|
|
491
|
+
try {
|
|
492
|
+
result = arg0 instanceof Map;
|
|
493
|
+
} catch (_) {
|
|
494
|
+
result = false;
|
|
495
|
+
}
|
|
496
|
+
const ret = result;
|
|
497
|
+
return ret;
|
|
498
|
+
},
|
|
499
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
|
|
500
|
+
let result;
|
|
501
|
+
try {
|
|
502
|
+
result = arg0 instanceof Uint8Array;
|
|
503
|
+
} catch (_) {
|
|
504
|
+
result = false;
|
|
505
|
+
}
|
|
506
|
+
const ret = result;
|
|
507
|
+
return ret;
|
|
508
|
+
},
|
|
509
|
+
__wbg_isArray_d314bb98fcf08331: function(arg0) {
|
|
510
|
+
const ret = Array.isArray(arg0);
|
|
511
|
+
return ret;
|
|
512
|
+
},
|
|
513
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
|
|
514
|
+
const ret = Number.isSafeInteger(arg0);
|
|
515
|
+
return ret;
|
|
516
|
+
},
|
|
517
|
+
__wbg_iterator_6ff6560ca1568e55: function() {
|
|
518
|
+
const ret = Symbol.iterator;
|
|
519
|
+
return ret;
|
|
520
|
+
},
|
|
521
|
+
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
522
|
+
const ret = arg0.length;
|
|
523
|
+
return ret;
|
|
524
|
+
},
|
|
525
|
+
__wbg_length_35a7bace40f36eac: function(arg0) {
|
|
526
|
+
const ret = arg0.length;
|
|
527
|
+
return ret;
|
|
528
|
+
},
|
|
529
|
+
__wbg_new_0_73afc35eb544e539: function() {
|
|
530
|
+
const ret = new Date();
|
|
531
|
+
return ret;
|
|
532
|
+
},
|
|
533
|
+
__wbg_new_245cd5c49157e602: function(arg0) {
|
|
534
|
+
const ret = new Date(arg0);
|
|
535
|
+
return ret;
|
|
536
|
+
},
|
|
537
|
+
__wbg_new_361308b2356cecd0: function() {
|
|
538
|
+
const ret = new Object();
|
|
539
|
+
return ret;
|
|
540
|
+
},
|
|
541
|
+
__wbg_new_3eb36ae241fe6f44: function() {
|
|
542
|
+
const ret = new Array();
|
|
543
|
+
return ret;
|
|
544
|
+
},
|
|
545
|
+
__wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
|
|
546
|
+
try {
|
|
547
|
+
var state0 = {a: arg0, b: arg1};
|
|
548
|
+
var cb0 = (arg0, arg1) => {
|
|
549
|
+
const a = state0.a;
|
|
550
|
+
state0.a = 0;
|
|
551
|
+
try {
|
|
552
|
+
return wasm_bindgen__convert__closures_____invoke__h1f2354b2fedd4615(a, state0.b, arg0, arg1);
|
|
553
|
+
} finally {
|
|
554
|
+
state0.a = a;
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
const ret = new Promise(cb0);
|
|
558
|
+
return ret;
|
|
559
|
+
} finally {
|
|
560
|
+
state0.a = state0.b = 0;
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
__wbg_new_dca287b076112a51: function() {
|
|
564
|
+
const ret = new Map();
|
|
565
|
+
return ret;
|
|
566
|
+
},
|
|
567
|
+
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
568
|
+
const ret = new Uint8Array(arg0);
|
|
569
|
+
return ret;
|
|
570
|
+
},
|
|
571
|
+
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
572
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
573
|
+
return ret;
|
|
574
|
+
},
|
|
575
|
+
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
576
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
577
|
+
return ret;
|
|
578
|
+
},
|
|
579
|
+
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
580
|
+
const ret = arg0.next();
|
|
581
|
+
return ret;
|
|
582
|
+
}, arguments); },
|
|
583
|
+
__wbg_next_418f80d8f5303233: function(arg0) {
|
|
584
|
+
const ret = arg0.next;
|
|
585
|
+
return ret;
|
|
586
|
+
},
|
|
587
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
588
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
589
|
+
},
|
|
590
|
+
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
591
|
+
const ret = arg0.queueMicrotask;
|
|
592
|
+
return ret;
|
|
593
|
+
},
|
|
594
|
+
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
595
|
+
queueMicrotask(arg0);
|
|
596
|
+
},
|
|
597
|
+
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
598
|
+
const ret = Promise.resolve(arg0);
|
|
599
|
+
return ret;
|
|
600
|
+
},
|
|
601
|
+
__wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
|
|
602
|
+
const ret = arg0.set(arg1, arg2);
|
|
603
|
+
return ret;
|
|
604
|
+
},
|
|
605
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
606
|
+
arg0[arg1] = arg2;
|
|
607
|
+
},
|
|
608
|
+
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
609
|
+
arg0[arg1 >>> 0] = arg2;
|
|
610
|
+
},
|
|
611
|
+
__wbg_size_e05d31cc6049815f: function(arg0) {
|
|
612
|
+
const ret = arg0.size;
|
|
613
|
+
return ret;
|
|
614
|
+
},
|
|
615
|
+
__wbg_slice_a4d15492574b99a1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
616
|
+
const ret = arg0.slice(arg1, arg2);
|
|
617
|
+
return ret;
|
|
618
|
+
}, arguments); },
|
|
619
|
+
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
620
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
621
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
622
|
+
},
|
|
623
|
+
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
624
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
625
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
626
|
+
},
|
|
627
|
+
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
628
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
629
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
630
|
+
},
|
|
631
|
+
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
632
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
633
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
634
|
+
},
|
|
635
|
+
__wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
|
|
636
|
+
const ret = arg0.then(arg1, arg2);
|
|
637
|
+
return ret;
|
|
638
|
+
},
|
|
639
|
+
__wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
|
|
640
|
+
const ret = arg0.then(arg1);
|
|
641
|
+
return ret;
|
|
642
|
+
},
|
|
643
|
+
__wbg_value_0546255b415e96c1: function(arg0) {
|
|
644
|
+
const ret = arg0.value;
|
|
645
|
+
return ret;
|
|
646
|
+
},
|
|
647
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
648
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 41, function: Function { arguments: [Externref], shim_idx: 42, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
649
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h47ea5b49d8c488a7, wasm_bindgen__convert__closures_____invoke__h44bf5418d86b78ef);
|
|
650
|
+
return ret;
|
|
651
|
+
},
|
|
652
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
653
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
654
|
+
const ret = arg0;
|
|
655
|
+
return ret;
|
|
656
|
+
},
|
|
657
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
658
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
659
|
+
const ret = arg0;
|
|
660
|
+
return ret;
|
|
661
|
+
},
|
|
662
|
+
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
663
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
664
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
665
|
+
return ret;
|
|
666
|
+
},
|
|
667
|
+
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
668
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
669
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
670
|
+
return ret;
|
|
671
|
+
},
|
|
672
|
+
__wbindgen_init_externref_table: function() {
|
|
673
|
+
const table = wasm.__wbindgen_externrefs;
|
|
674
|
+
const offset = table.grow(4);
|
|
675
|
+
table.set(0, undefined);
|
|
676
|
+
table.set(offset + 0, undefined);
|
|
677
|
+
table.set(offset + 1, null);
|
|
678
|
+
table.set(offset + 2, true);
|
|
679
|
+
table.set(offset + 3, false);
|
|
680
|
+
},
|
|
681
|
+
};
|
|
682
|
+
return {
|
|
683
|
+
__proto__: null,
|
|
684
|
+
"./dcm_js_bg.js": import0,
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
function wasm_bindgen__convert__closures_____invoke__h44bf5418d86b78ef(arg0, arg1, arg2) {
|
|
689
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h44bf5418d86b78ef(arg0, arg1, arg2);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function wasm_bindgen__convert__closures_____invoke__h1f2354b2fedd4615(arg0, arg1, arg2, arg3) {
|
|
693
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1f2354b2fedd4615(arg0, arg1, arg2, arg3);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
const ContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
697
|
+
? { register: () => {}, unregister: () => {} }
|
|
698
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_context_free(ptr >>> 0, 1));
|
|
699
|
+
const DeidProfileFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
700
|
+
? { register: () => {}, unregister: () => {} }
|
|
701
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_deidprofile_free(ptr >>> 0, 1));
|
|
702
|
+
const WasmDCMGroupFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
703
|
+
? { register: () => {}, unregister: () => {} }
|
|
704
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdcmgroup_free(ptr >>> 0, 1));
|
|
705
|
+
|
|
706
|
+
function addToExternrefTable0(obj) {
|
|
707
|
+
const idx = wasm.__externref_table_alloc();
|
|
708
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
709
|
+
return idx;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
713
|
+
? { register: () => {}, unregister: () => {} }
|
|
714
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
715
|
+
|
|
716
|
+
function debugString(val) {
|
|
717
|
+
// primitive types
|
|
718
|
+
const type = typeof val;
|
|
719
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
720
|
+
return `${val}`;
|
|
721
|
+
}
|
|
722
|
+
if (type == 'string') {
|
|
723
|
+
return `"${val}"`;
|
|
724
|
+
}
|
|
725
|
+
if (type == 'symbol') {
|
|
726
|
+
const description = val.description;
|
|
727
|
+
if (description == null) {
|
|
728
|
+
return 'Symbol';
|
|
729
|
+
} else {
|
|
730
|
+
return `Symbol(${description})`;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
if (type == 'function') {
|
|
734
|
+
const name = val.name;
|
|
735
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
736
|
+
return `Function(${name})`;
|
|
737
|
+
} else {
|
|
738
|
+
return 'Function';
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
// objects
|
|
742
|
+
if (Array.isArray(val)) {
|
|
743
|
+
const length = val.length;
|
|
744
|
+
let debug = '[';
|
|
745
|
+
if (length > 0) {
|
|
746
|
+
debug += debugString(val[0]);
|
|
747
|
+
}
|
|
748
|
+
for(let i = 1; i < length; i++) {
|
|
749
|
+
debug += ', ' + debugString(val[i]);
|
|
750
|
+
}
|
|
751
|
+
debug += ']';
|
|
752
|
+
return debug;
|
|
753
|
+
}
|
|
754
|
+
// Test for built-in
|
|
755
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
756
|
+
let className;
|
|
757
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
758
|
+
className = builtInMatches[1];
|
|
759
|
+
} else {
|
|
760
|
+
// Failed to match the standard '[object ClassName]'
|
|
761
|
+
return toString.call(val);
|
|
762
|
+
}
|
|
763
|
+
if (className == 'Object') {
|
|
764
|
+
// we're a user defined class or Object
|
|
765
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
766
|
+
// easier than looping through ownProperties of `val`.
|
|
767
|
+
try {
|
|
768
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
769
|
+
} catch (_) {
|
|
770
|
+
return 'Object';
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
// errors
|
|
774
|
+
if (val instanceof Error) {
|
|
775
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
776
|
+
}
|
|
777
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
778
|
+
return className;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
782
|
+
ptr = ptr >>> 0;
|
|
783
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
let cachedDataViewMemory0 = null;
|
|
787
|
+
function getDataViewMemory0() {
|
|
788
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
789
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
790
|
+
}
|
|
791
|
+
return cachedDataViewMemory0;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
function getStringFromWasm0(ptr, len) {
|
|
795
|
+
ptr = ptr >>> 0;
|
|
796
|
+
return decodeText(ptr, len);
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
let cachedUint8ArrayMemory0 = null;
|
|
800
|
+
function getUint8ArrayMemory0() {
|
|
801
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
802
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
803
|
+
}
|
|
804
|
+
return cachedUint8ArrayMemory0;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function handleError(f, args) {
|
|
808
|
+
try {
|
|
809
|
+
return f.apply(this, args);
|
|
810
|
+
} catch (e) {
|
|
811
|
+
const idx = addToExternrefTable0(e);
|
|
812
|
+
wasm.__wbindgen_exn_store(idx);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
function isLikeNone(x) {
|
|
817
|
+
return x === undefined || x === null;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
821
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
822
|
+
const real = (...args) => {
|
|
823
|
+
|
|
824
|
+
// First up with a closure we increment the internal reference
|
|
825
|
+
// count. This ensures that the Rust closure environment won't
|
|
826
|
+
// be deallocated while we're invoking it.
|
|
827
|
+
state.cnt++;
|
|
828
|
+
const a = state.a;
|
|
829
|
+
state.a = 0;
|
|
830
|
+
try {
|
|
831
|
+
return f(a, state.b, ...args);
|
|
832
|
+
} finally {
|
|
833
|
+
state.a = a;
|
|
834
|
+
real._wbg_cb_unref();
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
real._wbg_cb_unref = () => {
|
|
838
|
+
if (--state.cnt === 0) {
|
|
839
|
+
state.dtor(state.a, state.b);
|
|
840
|
+
state.a = 0;
|
|
841
|
+
CLOSURE_DTORS.unregister(state);
|
|
842
|
+
}
|
|
843
|
+
};
|
|
844
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
845
|
+
return real;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
849
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
850
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
851
|
+
WASM_VECTOR_LEN = arg.length;
|
|
852
|
+
return ptr;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
856
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
857
|
+
for (let i = 0; i < array.length; i++) {
|
|
858
|
+
const add = addToExternrefTable0(array[i]);
|
|
859
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
860
|
+
}
|
|
861
|
+
WASM_VECTOR_LEN = array.length;
|
|
862
|
+
return ptr;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
866
|
+
if (realloc === undefined) {
|
|
867
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
868
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
869
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
870
|
+
WASM_VECTOR_LEN = buf.length;
|
|
871
|
+
return ptr;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
let len = arg.length;
|
|
875
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
876
|
+
|
|
877
|
+
const mem = getUint8ArrayMemory0();
|
|
878
|
+
|
|
879
|
+
let offset = 0;
|
|
880
|
+
|
|
881
|
+
for (; offset < len; offset++) {
|
|
882
|
+
const code = arg.charCodeAt(offset);
|
|
883
|
+
if (code > 0x7F) break;
|
|
884
|
+
mem[ptr + offset] = code;
|
|
885
|
+
}
|
|
886
|
+
if (offset !== len) {
|
|
887
|
+
if (offset !== 0) {
|
|
888
|
+
arg = arg.slice(offset);
|
|
889
|
+
}
|
|
890
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
891
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
892
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
517
893
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
const ptr = this.__wbg_ptr;
|
|
521
|
-
this.__wbg_ptr = 0;
|
|
522
|
-
WasmDCMGroupFinalization.unregister(this);
|
|
523
|
-
return ptr;
|
|
524
|
-
}
|
|
525
|
-
free() {
|
|
526
|
-
const ptr = this.__destroy_into_raw();
|
|
527
|
-
wasm.__wbg_wasmdcmgroup_free(ptr, 0);
|
|
894
|
+
offset += ret.written;
|
|
895
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
528
896
|
}
|
|
897
|
+
|
|
898
|
+
WASM_VECTOR_LEN = offset;
|
|
899
|
+
return ptr;
|
|
529
900
|
}
|
|
530
|
-
if (Symbol.dispose) WasmDCMGroup.prototype[Symbol.dispose] = WasmDCMGroup.prototype.free;
|
|
531
901
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
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;
|
|
902
|
+
function takeFromExternrefTable0(idx) {
|
|
903
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
904
|
+
wasm.__externref_table_dealloc(idx);
|
|
905
|
+
return value;
|
|
544
906
|
}
|
|
545
907
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
908
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
909
|
+
cachedTextDecoder.decode();
|
|
910
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
911
|
+
let numBytesDecoded = 0;
|
|
912
|
+
function decodeText(ptr, len) {
|
|
913
|
+
numBytesDecoded += len;
|
|
914
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
915
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
916
|
+
cachedTextDecoder.decode();
|
|
917
|
+
numBytesDecoded = len;
|
|
555
918
|
}
|
|
556
|
-
return
|
|
919
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
557
920
|
}
|
|
558
921
|
|
|
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
|
-
}
|
|
922
|
+
const cachedTextEncoder = new TextEncoder();
|
|
569
923
|
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
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]);
|
|
924
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
925
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
926
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
927
|
+
view.set(buf);
|
|
928
|
+
return {
|
|
929
|
+
read: arg.length,
|
|
930
|
+
written: buf.length
|
|
931
|
+
};
|
|
932
|
+
};
|
|
585
933
|
}
|
|
586
934
|
|
|
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
|
-
}
|
|
935
|
+
let WASM_VECTOR_LEN = 0;
|
|
597
936
|
|
|
598
|
-
|
|
937
|
+
let wasmModule, wasm;
|
|
938
|
+
function __wbg_finalize_init(instance, module) {
|
|
939
|
+
wasm = instance.exports;
|
|
940
|
+
wasmModule = module;
|
|
941
|
+
cachedDataViewMemory0 = null;
|
|
942
|
+
cachedUint8ArrayMemory0 = null;
|
|
943
|
+
wasm.__wbindgen_start();
|
|
944
|
+
return wasm;
|
|
945
|
+
}
|
|
599
946
|
|
|
600
947
|
async function __wbg_load(module, imports) {
|
|
601
948
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
@@ -603,14 +950,12 @@ async function __wbg_load(module, imports) {
|
|
|
603
950
|
try {
|
|
604
951
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
605
952
|
} catch (e) {
|
|
606
|
-
const validResponse = module.ok &&
|
|
953
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
607
954
|
|
|
608
955
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
609
956
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
610
957
|
|
|
611
|
-
} else {
|
|
612
|
-
throw e;
|
|
613
|
-
}
|
|
958
|
+
} else { throw e; }
|
|
614
959
|
}
|
|
615
960
|
}
|
|
616
961
|
|
|
@@ -625,362 +970,20 @@ async function __wbg_load(module, imports) {
|
|
|
625
970
|
return instance;
|
|
626
971
|
}
|
|
627
972
|
}
|
|
628
|
-
}
|
|
629
973
|
|
|
630
|
-
function
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
634
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
635
|
-
return ret;
|
|
636
|
-
};
|
|
637
|
-
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
638
|
-
const ret = Number(arg0);
|
|
639
|
-
return ret;
|
|
640
|
-
};
|
|
641
|
-
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
642
|
-
const ret = String(arg1);
|
|
643
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
644
|
-
const len1 = WASM_VECTOR_LEN;
|
|
645
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
646
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
647
|
-
};
|
|
648
|
-
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
649
|
-
const v = arg1;
|
|
650
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
651
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
652
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
653
|
-
};
|
|
654
|
-
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
655
|
-
const v = arg0;
|
|
656
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
657
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
658
|
-
};
|
|
659
|
-
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
660
|
-
const ret = debugString(arg1);
|
|
661
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
662
|
-
const len1 = WASM_VECTOR_LEN;
|
|
663
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
664
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
665
|
-
};
|
|
666
|
-
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
667
|
-
const ret = arg0 in arg1;
|
|
668
|
-
return ret;
|
|
669
|
-
};
|
|
670
|
-
imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
671
|
-
const ret = typeof(arg0) === 'bigint';
|
|
672
|
-
return ret;
|
|
673
|
-
};
|
|
674
|
-
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
675
|
-
const ret = typeof(arg0) === 'function';
|
|
676
|
-
return ret;
|
|
677
|
-
};
|
|
678
|
-
imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
|
|
679
|
-
const ret = arg0 === null;
|
|
680
|
-
return ret;
|
|
681
|
-
};
|
|
682
|
-
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
683
|
-
const val = arg0;
|
|
684
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
685
|
-
return ret;
|
|
686
|
-
};
|
|
687
|
-
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
688
|
-
const ret = typeof(arg0) === 'string';
|
|
689
|
-
return ret;
|
|
690
|
-
};
|
|
691
|
-
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
692
|
-
const ret = arg0 === undefined;
|
|
693
|
-
return ret;
|
|
694
|
-
};
|
|
695
|
-
imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
696
|
-
const ret = arg0 === arg1;
|
|
697
|
-
return ret;
|
|
698
|
-
};
|
|
699
|
-
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
700
|
-
const ret = arg0 == arg1;
|
|
701
|
-
return ret;
|
|
702
|
-
};
|
|
703
|
-
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
704
|
-
const obj = arg1;
|
|
705
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
706
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
707
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
708
|
-
};
|
|
709
|
-
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
710
|
-
const obj = arg1;
|
|
711
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
712
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
713
|
-
var len1 = WASM_VECTOR_LEN;
|
|
714
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
715
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
716
|
-
};
|
|
717
|
-
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
718
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
719
|
-
};
|
|
720
|
-
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
721
|
-
arg0._wbg_cb_unref();
|
|
722
|
-
};
|
|
723
|
-
imports.wbg.__wbg_arrayBuffer_3356d392ef2d2aa9 = function(arg0) {
|
|
724
|
-
const ret = arg0.arrayBuffer();
|
|
725
|
-
return ret;
|
|
726
|
-
};
|
|
727
|
-
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
728
|
-
const ret = arg0.call(arg1, arg2);
|
|
729
|
-
return ret;
|
|
730
|
-
}, arguments) };
|
|
731
|
-
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
732
|
-
const ret = arg0.call(arg1);
|
|
733
|
-
return ret;
|
|
734
|
-
}, arguments) };
|
|
735
|
-
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
736
|
-
const ret = arg0.done;
|
|
737
|
-
return ret;
|
|
738
|
-
};
|
|
739
|
-
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
740
|
-
const ret = Object.entries(arg0);
|
|
741
|
-
return ret;
|
|
742
|
-
};
|
|
743
|
-
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
744
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
745
|
-
}, arguments) };
|
|
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) {
|
|
755
|
-
const ret = arg0[arg1 >>> 0];
|
|
756
|
-
return ret;
|
|
757
|
-
};
|
|
758
|
-
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
759
|
-
const ret = Reflect.get(arg0, arg1);
|
|
760
|
-
return ret;
|
|
761
|
-
}, arguments) };
|
|
762
|
-
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
763
|
-
let result;
|
|
764
|
-
try {
|
|
765
|
-
result = arg0 instanceof ArrayBuffer;
|
|
766
|
-
} catch (_) {
|
|
767
|
-
result = false;
|
|
768
|
-
}
|
|
769
|
-
const ret = result;
|
|
770
|
-
return ret;
|
|
771
|
-
};
|
|
772
|
-
imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
773
|
-
let result;
|
|
774
|
-
try {
|
|
775
|
-
result = arg0 instanceof Map;
|
|
776
|
-
} catch (_) {
|
|
777
|
-
result = false;
|
|
778
|
-
}
|
|
779
|
-
const ret = result;
|
|
780
|
-
return ret;
|
|
781
|
-
};
|
|
782
|
-
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
783
|
-
let result;
|
|
784
|
-
try {
|
|
785
|
-
result = arg0 instanceof Uint8Array;
|
|
786
|
-
} catch (_) {
|
|
787
|
-
result = false;
|
|
788
|
-
}
|
|
789
|
-
const ret = result;
|
|
790
|
-
return ret;
|
|
791
|
-
};
|
|
792
|
-
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
793
|
-
const ret = Array.isArray(arg0);
|
|
794
|
-
return ret;
|
|
795
|
-
};
|
|
796
|
-
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
797
|
-
const ret = Number.isSafeInteger(arg0);
|
|
798
|
-
return ret;
|
|
799
|
-
};
|
|
800
|
-
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
801
|
-
const ret = Symbol.iterator;
|
|
802
|
-
return ret;
|
|
803
|
-
};
|
|
804
|
-
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
805
|
-
const ret = arg0.length;
|
|
806
|
-
return ret;
|
|
807
|
-
};
|
|
808
|
-
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
809
|
-
const ret = arg0.length;
|
|
810
|
-
return ret;
|
|
811
|
-
};
|
|
812
|
-
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
813
|
-
const ret = new Date();
|
|
814
|
-
return ret;
|
|
815
|
-
};
|
|
816
|
-
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
817
|
-
const ret = new Object();
|
|
818
|
-
return ret;
|
|
819
|
-
};
|
|
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) {
|
|
837
|
-
try {
|
|
838
|
-
var state0 = {a: arg0, b: arg1};
|
|
839
|
-
var cb0 = (arg0, arg1) => {
|
|
840
|
-
const a = state0.a;
|
|
841
|
-
state0.a = 0;
|
|
842
|
-
try {
|
|
843
|
-
return wasm_bindgen__convert__closures_____invoke__h893b1d61029c883e(a, state0.b, arg0, arg1);
|
|
844
|
-
} finally {
|
|
845
|
-
state0.a = a;
|
|
846
|
-
}
|
|
847
|
-
};
|
|
848
|
-
const ret = new Promise(cb0);
|
|
849
|
-
return ret;
|
|
850
|
-
} finally {
|
|
851
|
-
state0.a = state0.b = 0;
|
|
974
|
+
function expectedResponseType(type) {
|
|
975
|
+
switch (type) {
|
|
976
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
852
977
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
856
|
-
return ret;
|
|
857
|
-
};
|
|
858
|
-
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
859
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
860
|
-
return ret;
|
|
861
|
-
};
|
|
862
|
-
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
863
|
-
const ret = arg0.next;
|
|
864
|
-
return ret;
|
|
865
|
-
};
|
|
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) {
|
|
871
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
872
|
-
};
|
|
873
|
-
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
874
|
-
const ret = arg0.queueMicrotask;
|
|
875
|
-
return ret;
|
|
876
|
-
};
|
|
877
|
-
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
878
|
-
queueMicrotask(arg0);
|
|
879
|
-
};
|
|
880
|
-
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
881
|
-
const ret = Promise.resolve(arg0);
|
|
882
|
-
return ret;
|
|
883
|
-
};
|
|
884
|
-
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
885
|
-
arg0[arg1] = arg2;
|
|
886
|
-
};
|
|
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) {
|
|
891
|
-
const ret = arg0.set(arg1, arg2);
|
|
892
|
-
return ret;
|
|
893
|
-
};
|
|
894
|
-
imports.wbg.__wbg_size_82fbdb656de23326 = function(arg0) {
|
|
895
|
-
const ret = arg0.size;
|
|
896
|
-
return ret;
|
|
897
|
-
};
|
|
898
|
-
imports.wbg.__wbg_slice_3518c924243cda3a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
899
|
-
const ret = arg0.slice(arg1, arg2);
|
|
900
|
-
return ret;
|
|
901
|
-
}, arguments) };
|
|
902
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
903
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
904
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
905
|
-
};
|
|
906
|
-
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
907
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
908
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
909
|
-
};
|
|
910
|
-
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
911
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
912
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
913
|
-
};
|
|
914
|
-
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
915
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
916
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
917
|
-
};
|
|
918
|
-
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
919
|
-
const ret = arg0.then(arg1, arg2);
|
|
920
|
-
return ret;
|
|
921
|
-
};
|
|
922
|
-
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
923
|
-
const ret = arg0.then(arg1);
|
|
924
|
-
return ret;
|
|
925
|
-
};
|
|
926
|
-
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
927
|
-
const ret = arg0.value;
|
|
928
|
-
return ret;
|
|
929
|
-
};
|
|
930
|
-
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
931
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
932
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
933
|
-
return ret;
|
|
934
|
-
};
|
|
935
|
-
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
936
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
937
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
938
|
-
return ret;
|
|
939
|
-
};
|
|
940
|
-
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
941
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
942
|
-
const ret = arg0;
|
|
943
|
-
return ret;
|
|
944
|
-
};
|
|
945
|
-
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
946
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
947
|
-
const ret = arg0;
|
|
948
|
-
return ret;
|
|
949
|
-
};
|
|
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__h3cb88661f709d80c, wasm_bindgen__convert__closures_____invoke__ha451cb208bb0fc0b);
|
|
953
|
-
return ret;
|
|
954
|
-
};
|
|
955
|
-
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
956
|
-
const table = wasm.__wbindgen_externrefs;
|
|
957
|
-
const offset = table.grow(4);
|
|
958
|
-
table.set(0, undefined);
|
|
959
|
-
table.set(offset + 0, undefined);
|
|
960
|
-
table.set(offset + 1, null);
|
|
961
|
-
table.set(offset + 2, true);
|
|
962
|
-
table.set(offset + 3, false);
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
return imports;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
function __wbg_finalize_init(instance, module) {
|
|
969
|
-
wasm = instance.exports;
|
|
970
|
-
__wbg_init.__wbindgen_wasm_module = module;
|
|
971
|
-
cachedDataViewMemory0 = null;
|
|
972
|
-
cachedUint8ArrayMemory0 = null;
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
wasm.__wbindgen_start();
|
|
976
|
-
return wasm;
|
|
978
|
+
return false;
|
|
979
|
+
}
|
|
977
980
|
}
|
|
978
981
|
|
|
979
982
|
function initSync(module) {
|
|
980
983
|
if (wasm !== undefined) return wasm;
|
|
981
984
|
|
|
982
985
|
|
|
983
|
-
if (
|
|
986
|
+
if (module !== undefined) {
|
|
984
987
|
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
985
988
|
({module} = module)
|
|
986
989
|
} else {
|
|
@@ -1000,7 +1003,7 @@ async function __wbg_init(module_or_path) {
|
|
|
1000
1003
|
if (wasm !== undefined) return wasm;
|
|
1001
1004
|
|
|
1002
1005
|
|
|
1003
|
-
if (
|
|
1006
|
+
if (module_or_path !== undefined) {
|
|
1004
1007
|
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1005
1008
|
({module_or_path} = module_or_path)
|
|
1006
1009
|
} else {
|
|
@@ -1008,7 +1011,7 @@ async function __wbg_init(module_or_path) {
|
|
|
1008
1011
|
}
|
|
1009
1012
|
}
|
|
1010
1013
|
|
|
1011
|
-
if (
|
|
1014
|
+
if (module_or_path === undefined) {
|
|
1012
1015
|
module_or_path = new URL('dcm_js_bg.wasm', import.meta.url);
|
|
1013
1016
|
}
|
|
1014
1017
|
const imports = __wbg_get_imports();
|
|
@@ -1022,5 +1025,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1022
1025
|
return __wbg_finalize_init(instance, module);
|
|
1023
1026
|
}
|
|
1024
1027
|
|
|
1025
|
-
export { initSync };
|
|
1026
|
-
export default __wbg_init;
|
|
1028
|
+
export { initSync, __wbg_init as default };
|