@modelhealth/sdk 0.1.14 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/index.d.ts +2 -150
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -175
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +0 -29
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/wasm/model_health_wasm.d.ts +4 -20
- package/wasm/model_health_wasm.js +140 -372
- package/wasm/model_health_wasm_bg.wasm +0 -0
- package/wasm/model_health_wasm_bg.wasm.d.ts +2 -10
- package/wasm/package.json +0 -23
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* @ts-self-types="./model_health_wasm.d.ts" */
|
|
2
2
|
|
|
3
|
-
//#region exports
|
|
4
|
-
|
|
5
3
|
export class ModelHealthService {
|
|
6
4
|
__destroy_into_raw() {
|
|
7
5
|
const ptr = this.__wbg_ptr;
|
|
@@ -17,8 +15,6 @@ export class ModelHealthService {
|
|
|
17
15
|
* @returns {Promise<any>}
|
|
18
16
|
*/
|
|
19
17
|
createSession() {
|
|
20
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
21
|
-
_assertNum(this.__wbg_ptr);
|
|
22
18
|
const ret = wasm.modelhealthservice_createSession(this.__wbg_ptr);
|
|
23
19
|
return ret;
|
|
24
20
|
}
|
|
@@ -27,8 +23,6 @@ export class ModelHealthService {
|
|
|
27
23
|
* @returns {Promise<any>}
|
|
28
24
|
*/
|
|
29
25
|
createSubject(parameters) {
|
|
30
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
31
|
-
_assertNum(this.__wbg_ptr);
|
|
32
26
|
const ret = wasm.modelhealthservice_createSubject(this.__wbg_ptr, parameters);
|
|
33
27
|
return ret;
|
|
34
28
|
}
|
|
@@ -37,8 +31,6 @@ export class ModelHealthService {
|
|
|
37
31
|
* @returns {Promise<void>}
|
|
38
32
|
*/
|
|
39
33
|
deleteActivity(activity_json) {
|
|
40
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
41
|
-
_assertNum(this.__wbg_ptr);
|
|
42
34
|
const ret = wasm.modelhealthservice_deleteActivity(this.__wbg_ptr, activity_json);
|
|
43
35
|
return ret;
|
|
44
36
|
}
|
|
@@ -48,8 +40,6 @@ export class ModelHealthService {
|
|
|
48
40
|
* @returns {Promise<any>}
|
|
49
41
|
*/
|
|
50
42
|
downloadAnalysisResult(trial_json, result_tag) {
|
|
51
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
52
|
-
_assertNum(this.__wbg_ptr);
|
|
53
43
|
const ptr0 = passStringToWasm0(result_tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
54
44
|
const len0 = WASM_VECTOR_LEN;
|
|
55
45
|
const ret = wasm.modelhealthservice_downloadAnalysisResult(this.__wbg_ptr, trial_json, ptr0, len0);
|
|
@@ -61,8 +51,6 @@ export class ModelHealthService {
|
|
|
61
51
|
* @returns {Promise<any>}
|
|
62
52
|
*/
|
|
63
53
|
downloadTrialResultData(trial_json, data_types_json) {
|
|
64
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
65
|
-
_assertNum(this.__wbg_ptr);
|
|
66
54
|
const ret = wasm.modelhealthservice_downloadTrialResultData(this.__wbg_ptr, trial_json, data_types_json);
|
|
67
55
|
return ret;
|
|
68
56
|
}
|
|
@@ -72,8 +60,6 @@ export class ModelHealthService {
|
|
|
72
60
|
* @returns {Promise<Array<any>>}
|
|
73
61
|
*/
|
|
74
62
|
downloadTrialVideos(trial_json, version_json) {
|
|
75
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
76
|
-
_assertNum(this.__wbg_ptr);
|
|
77
63
|
const ret = wasm.modelhealthservice_downloadTrialVideos(this.__wbg_ptr, trial_json, version_json);
|
|
78
64
|
return ret;
|
|
79
65
|
}
|
|
@@ -85,12 +71,8 @@ export class ModelHealthService {
|
|
|
85
71
|
* @returns {Promise<any>}
|
|
86
72
|
*/
|
|
87
73
|
getActivitiesForSubject(subject_id, start_index, count, sort) {
|
|
88
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
89
|
-
_assertNum(this.__wbg_ptr);
|
|
90
74
|
const ptr0 = passStringToWasm0(subject_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
91
75
|
const len0 = WASM_VECTOR_LEN;
|
|
92
|
-
_assertNum(start_index);
|
|
93
|
-
_assertNum(count);
|
|
94
76
|
const ret = wasm.modelhealthservice_getActivitiesForSubject(this.__wbg_ptr, ptr0, len0, start_index, count, sort);
|
|
95
77
|
return ret;
|
|
96
78
|
}
|
|
@@ -99,8 +81,6 @@ export class ModelHealthService {
|
|
|
99
81
|
* @returns {Promise<any>}
|
|
100
82
|
*/
|
|
101
83
|
getActivity(activity_id) {
|
|
102
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
103
|
-
_assertNum(this.__wbg_ptr);
|
|
104
84
|
const ptr0 = passStringToWasm0(activity_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
105
85
|
const len0 = WASM_VECTOR_LEN;
|
|
106
86
|
const ret = wasm.modelhealthservice_getActivity(this.__wbg_ptr, ptr0, len0);
|
|
@@ -110,8 +90,6 @@ export class ModelHealthService {
|
|
|
110
90
|
* @returns {Promise<any>}
|
|
111
91
|
*/
|
|
112
92
|
getActivityTags() {
|
|
113
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
114
|
-
_assertNum(this.__wbg_ptr);
|
|
115
93
|
const ret = wasm.modelhealthservice_getActivityTags(this.__wbg_ptr);
|
|
116
94
|
return ret;
|
|
117
95
|
}
|
|
@@ -120,8 +98,6 @@ export class ModelHealthService {
|
|
|
120
98
|
* @returns {Promise<any>}
|
|
121
99
|
*/
|
|
122
100
|
getAnalysisStatus(task_json) {
|
|
123
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
124
|
-
_assertNum(this.__wbg_ptr);
|
|
125
101
|
const ret = wasm.modelhealthservice_getAnalysisStatus(this.__wbg_ptr, task_json);
|
|
126
102
|
return ret;
|
|
127
103
|
}
|
|
@@ -130,8 +106,6 @@ export class ModelHealthService {
|
|
|
130
106
|
* @returns {Promise<any>}
|
|
131
107
|
*/
|
|
132
108
|
getSession(session_id) {
|
|
133
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
134
|
-
_assertNum(this.__wbg_ptr);
|
|
135
109
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
136
110
|
const len0 = WASM_VECTOR_LEN;
|
|
137
111
|
const ret = wasm.modelhealthservice_getSession(this.__wbg_ptr, ptr0, len0);
|
|
@@ -142,58 +116,16 @@ export class ModelHealthService {
|
|
|
142
116
|
* @returns {Promise<any>}
|
|
143
117
|
*/
|
|
144
118
|
getStatus(trial_json) {
|
|
145
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
146
|
-
_assertNum(this.__wbg_ptr);
|
|
147
119
|
const ret = wasm.modelhealthservice_getStatus(this.__wbg_ptr, trial_json);
|
|
148
120
|
return ret;
|
|
149
121
|
}
|
|
150
|
-
/**
|
|
151
|
-
* @returns {string | undefined}
|
|
152
|
-
*/
|
|
153
|
-
getToken() {
|
|
154
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
155
|
-
_assertNum(this.__wbg_ptr);
|
|
156
|
-
const ret = wasm.modelhealthservice_getToken(this.__wbg_ptr);
|
|
157
|
-
let v1;
|
|
158
|
-
if (ret[0] !== 0) {
|
|
159
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
160
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
161
|
-
}
|
|
162
|
-
return v1;
|
|
163
|
-
}
|
|
164
122
|
/**
|
|
165
123
|
* @returns {Promise<boolean>}
|
|
166
124
|
*/
|
|
167
125
|
isAuthenticated() {
|
|
168
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
169
|
-
_assertNum(this.__wbg_ptr);
|
|
170
126
|
const ret = wasm.modelhealthservice_isAuthenticated(this.__wbg_ptr);
|
|
171
127
|
return ret;
|
|
172
128
|
}
|
|
173
|
-
/**
|
|
174
|
-
* @param {string} username
|
|
175
|
-
* @param {string} password
|
|
176
|
-
* @returns {Promise<any>}
|
|
177
|
-
*/
|
|
178
|
-
login(username, password) {
|
|
179
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
180
|
-
_assertNum(this.__wbg_ptr);
|
|
181
|
-
const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
182
|
-
const len0 = WASM_VECTOR_LEN;
|
|
183
|
-
const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
184
|
-
const len1 = WASM_VECTOR_LEN;
|
|
185
|
-
const ret = wasm.modelhealthservice_login(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
186
|
-
return ret;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* @returns {Promise<void>}
|
|
190
|
-
*/
|
|
191
|
-
logout() {
|
|
192
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
193
|
-
_assertNum(this.__wbg_ptr);
|
|
194
|
-
const ret = wasm.modelhealthservice_logout(this.__wbg_ptr);
|
|
195
|
-
return ret;
|
|
196
|
-
}
|
|
197
129
|
/**
|
|
198
130
|
* @param {string} api_key
|
|
199
131
|
*/
|
|
@@ -214,59 +146,18 @@ export class ModelHealthService {
|
|
|
214
146
|
* @returns {Promise<any>}
|
|
215
147
|
*/
|
|
216
148
|
record(trial_name, session_json) {
|
|
217
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
218
|
-
_assertNum(this.__wbg_ptr);
|
|
219
149
|
const ptr0 = passStringToWasm0(trial_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
220
150
|
const len0 = WASM_VECTOR_LEN;
|
|
221
151
|
const ret = wasm.modelhealthservice_record(this.__wbg_ptr, ptr0, len0, session_json);
|
|
222
152
|
return ret;
|
|
223
153
|
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {any} parameters
|
|
226
|
-
* @returns {Promise<void>}
|
|
227
|
-
*/
|
|
228
|
-
register(parameters) {
|
|
229
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
230
|
-
_assertNum(this.__wbg_ptr);
|
|
231
|
-
const ret = wasm.modelhealthservice_register(this.__wbg_ptr, parameters);
|
|
232
|
-
return ret;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @returns {Promise<boolean>}
|
|
236
|
-
*/
|
|
237
|
-
restoreToken() {
|
|
238
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
239
|
-
_assertNum(this.__wbg_ptr);
|
|
240
|
-
const ret = wasm.modelhealthservice_restoreToken(this.__wbg_ptr);
|
|
241
|
-
return ret;
|
|
242
|
-
}
|
|
243
154
|
/**
|
|
244
155
|
* @returns {Promise<any>}
|
|
245
156
|
*/
|
|
246
157
|
sessionList() {
|
|
247
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
248
|
-
_assertNum(this.__wbg_ptr);
|
|
249
158
|
const ret = wasm.modelhealthservice_sessionList(this.__wbg_ptr);
|
|
250
159
|
return ret;
|
|
251
160
|
}
|
|
252
|
-
/**
|
|
253
|
-
* @param {TokenStorage} storage
|
|
254
|
-
*/
|
|
255
|
-
setStorage(storage) {
|
|
256
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
257
|
-
_assertNum(this.__wbg_ptr);
|
|
258
|
-
wasm.modelhealthservice_setStorage(this.__wbg_ptr, storage);
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* @param {string} token
|
|
262
|
-
*/
|
|
263
|
-
setToken(token) {
|
|
264
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
265
|
-
_assertNum(this.__wbg_ptr);
|
|
266
|
-
const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
267
|
-
const len0 = WASM_VECTOR_LEN;
|
|
268
|
-
wasm.modelhealthservice_setToken(this.__wbg_ptr, ptr0, len0);
|
|
269
|
-
}
|
|
270
161
|
/**
|
|
271
162
|
* @param {any} analysis_type_json
|
|
272
163
|
* @param {any} trial_json
|
|
@@ -274,8 +165,6 @@ export class ModelHealthService {
|
|
|
274
165
|
* @returns {Promise<any>}
|
|
275
166
|
*/
|
|
276
167
|
startAnalysis(analysis_type_json, trial_json, session_json) {
|
|
277
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
278
|
-
_assertNum(this.__wbg_ptr);
|
|
279
168
|
const ret = wasm.modelhealthservice_startAnalysis(this.__wbg_ptr, analysis_type_json, trial_json, session_json);
|
|
280
169
|
return ret;
|
|
281
170
|
}
|
|
@@ -284,8 +173,6 @@ export class ModelHealthService {
|
|
|
284
173
|
* @returns {Promise<void>}
|
|
285
174
|
*/
|
|
286
175
|
stopRecording(session_json) {
|
|
287
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
288
|
-
_assertNum(this.__wbg_ptr);
|
|
289
176
|
const ret = wasm.modelhealthservice_stopRecording(this.__wbg_ptr, session_json);
|
|
290
177
|
return ret;
|
|
291
178
|
}
|
|
@@ -293,8 +180,6 @@ export class ModelHealthService {
|
|
|
293
180
|
* @returns {Promise<any>}
|
|
294
181
|
*/
|
|
295
182
|
subjectList() {
|
|
296
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
297
|
-
_assertNum(this.__wbg_ptr);
|
|
298
183
|
const ret = wasm.modelhealthservice_subjectList(this.__wbg_ptr);
|
|
299
184
|
return ret;
|
|
300
185
|
}
|
|
@@ -303,8 +188,6 @@ export class ModelHealthService {
|
|
|
303
188
|
* @returns {Promise<any>}
|
|
304
189
|
*/
|
|
305
190
|
trialList(session_id) {
|
|
306
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
307
|
-
_assertNum(this.__wbg_ptr);
|
|
308
191
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
192
|
const len0 = WASM_VECTOR_LEN;
|
|
310
193
|
const ret = wasm.modelhealthservice_trialList(this.__wbg_ptr, ptr0, len0);
|
|
@@ -315,59 +198,37 @@ export class ModelHealthService {
|
|
|
315
198
|
* @returns {Promise<any>}
|
|
316
199
|
*/
|
|
317
200
|
updateActivity(activity_json) {
|
|
318
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
319
|
-
_assertNum(this.__wbg_ptr);
|
|
320
201
|
const ret = wasm.modelhealthservice_updateActivity(this.__wbg_ptr, activity_json);
|
|
321
202
|
return ret;
|
|
322
203
|
}
|
|
323
|
-
/**
|
|
324
|
-
* @param {string} code
|
|
325
|
-
* @param {boolean} remember_device
|
|
326
|
-
* @returns {Promise<void>}
|
|
327
|
-
*/
|
|
328
|
-
verify(code, remember_device) {
|
|
329
|
-
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
330
|
-
_assertNum(this.__wbg_ptr);
|
|
331
|
-
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
332
|
-
const len0 = WASM_VECTOR_LEN;
|
|
333
|
-
_assertBoolean(remember_device);
|
|
334
|
-
const ret = wasm.modelhealthservice_verify(this.__wbg_ptr, ptr0, len0, remember_device);
|
|
335
|
-
return ret;
|
|
336
|
-
}
|
|
337
204
|
}
|
|
338
205
|
if (Symbol.dispose) ModelHealthService.prototype[Symbol.dispose] = ModelHealthService.prototype.free;
|
|
339
206
|
|
|
340
207
|
/**
|
|
341
208
|
* @param {string} api_key
|
|
342
|
-
* @param {string} token
|
|
343
209
|
* @param {any} session_json
|
|
344
210
|
* @param {any} checkerboard_json
|
|
345
211
|
* @param {Function} _status_callback
|
|
346
212
|
* @returns {Promise<any>}
|
|
347
213
|
*/
|
|
348
|
-
export function calibrateCamera(api_key,
|
|
214
|
+
export function calibrateCamera(api_key, session_json, checkerboard_json, _status_callback) {
|
|
349
215
|
const ptr0 = passStringToWasm0(api_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
350
216
|
const len0 = WASM_VECTOR_LEN;
|
|
351
|
-
const
|
|
352
|
-
const len1 = WASM_VECTOR_LEN;
|
|
353
|
-
const ret = wasm.calibrateCamera(ptr0, len0, ptr1, len1, session_json, checkerboard_json, _status_callback);
|
|
217
|
+
const ret = wasm.calibrateCamera(ptr0, len0, session_json, checkerboard_json, _status_callback);
|
|
354
218
|
return ret;
|
|
355
219
|
}
|
|
356
220
|
|
|
357
221
|
/**
|
|
358
222
|
* @param {string} api_key
|
|
359
|
-
* @param {string} token
|
|
360
223
|
* @param {any} subject_json
|
|
361
224
|
* @param {any} session_json
|
|
362
225
|
* @param {Function} _status_callback
|
|
363
226
|
* @returns {Promise<any>}
|
|
364
227
|
*/
|
|
365
|
-
export function calibrateNeutralPose(api_key,
|
|
228
|
+
export function calibrateNeutralPose(api_key, subject_json, session_json, _status_callback) {
|
|
366
229
|
const ptr0 = passStringToWasm0(api_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
367
230
|
const len0 = WASM_VECTOR_LEN;
|
|
368
|
-
const
|
|
369
|
-
const len1 = WASM_VECTOR_LEN;
|
|
370
|
-
const ret = wasm.calibrateNeutralPose(ptr0, len0, ptr1, len1, subject_json, session_json, _status_callback);
|
|
231
|
+
const ret = wasm.calibrateNeutralPose(ptr0, len0, subject_json, session_json, _status_callback);
|
|
371
232
|
return ret;
|
|
372
233
|
}
|
|
373
234
|
|
|
@@ -375,34 +236,27 @@ export function init() {
|
|
|
375
236
|
wasm.init();
|
|
376
237
|
}
|
|
377
238
|
|
|
378
|
-
//#endregion
|
|
379
|
-
|
|
380
|
-
//#region wasm imports
|
|
381
|
-
|
|
382
239
|
function __wbg_get_imports() {
|
|
383
240
|
const import0 = {
|
|
384
241
|
__proto__: null,
|
|
385
|
-
__wbg_Error_8c4e43fe74559d73: function(
|
|
242
|
+
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
386
243
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
387
244
|
return ret;
|
|
388
|
-
},
|
|
389
|
-
__wbg_Number_04624de7d0e8332d: function(
|
|
245
|
+
},
|
|
246
|
+
__wbg_Number_04624de7d0e8332d: function(arg0) {
|
|
390
247
|
const ret = Number(arg0);
|
|
391
248
|
return ret;
|
|
392
|
-
},
|
|
393
|
-
__wbg_String_8f0eb39a4a4c2f66: function(
|
|
249
|
+
},
|
|
250
|
+
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
394
251
|
const ret = String(arg1);
|
|
395
252
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
396
253
|
const len1 = WASM_VECTOR_LEN;
|
|
397
254
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
398
255
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
399
|
-
},
|
|
256
|
+
},
|
|
400
257
|
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
|
|
401
258
|
const v = arg0;
|
|
402
259
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
403
|
-
if (!isLikeNone(ret)) {
|
|
404
|
-
_assertBoolean(ret);
|
|
405
|
-
}
|
|
406
260
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
407
261
|
},
|
|
408
262
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
|
|
@@ -414,41 +268,32 @@ function __wbg_get_imports() {
|
|
|
414
268
|
},
|
|
415
269
|
__wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
|
|
416
270
|
const ret = arg0 in arg1;
|
|
417
|
-
_assertBoolean(ret);
|
|
418
271
|
return ret;
|
|
419
272
|
},
|
|
420
273
|
__wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
|
|
421
274
|
const ret = typeof(arg0) === 'function';
|
|
422
|
-
_assertBoolean(ret);
|
|
423
275
|
return ret;
|
|
424
276
|
},
|
|
425
277
|
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
426
278
|
const val = arg0;
|
|
427
279
|
const ret = typeof(val) === 'object' && val !== null;
|
|
428
|
-
_assertBoolean(ret);
|
|
429
280
|
return ret;
|
|
430
281
|
},
|
|
431
282
|
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
432
283
|
const ret = typeof(arg0) === 'string';
|
|
433
|
-
_assertBoolean(ret);
|
|
434
284
|
return ret;
|
|
435
285
|
},
|
|
436
286
|
__wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
|
|
437
287
|
const ret = arg0 === undefined;
|
|
438
|
-
_assertBoolean(ret);
|
|
439
288
|
return ret;
|
|
440
289
|
},
|
|
441
290
|
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
|
|
442
291
|
const ret = arg0 == arg1;
|
|
443
|
-
_assertBoolean(ret);
|
|
444
292
|
return ret;
|
|
445
293
|
},
|
|
446
294
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
|
|
447
295
|
const obj = arg1;
|
|
448
296
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
449
|
-
if (!isLikeNone(ret)) {
|
|
450
|
-
_assertNum(ret);
|
|
451
|
-
}
|
|
452
297
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
453
298
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
454
299
|
},
|
|
@@ -463,12 +308,12 @@ function __wbg_get_imports() {
|
|
|
463
308
|
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
464
309
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
465
310
|
},
|
|
466
|
-
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(
|
|
311
|
+
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
|
|
467
312
|
arg0._wbg_cb_unref();
|
|
468
|
-
},
|
|
469
|
-
__wbg_abort_2f0584e03e8e3950: function(
|
|
313
|
+
},
|
|
314
|
+
__wbg_abort_2f0584e03e8e3950: function(arg0) {
|
|
470
315
|
arg0.abort();
|
|
471
|
-
},
|
|
316
|
+
},
|
|
472
317
|
__wbg_append_a992ccc37aa62dc4: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
473
318
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
474
319
|
}, arguments); },
|
|
@@ -488,19 +333,18 @@ function __wbg_get_imports() {
|
|
|
488
333
|
const ret = console.createTask(getStringFromWasm0(arg0, arg1));
|
|
489
334
|
return ret;
|
|
490
335
|
}, arguments); },
|
|
491
|
-
__wbg_debug_46a93995fc6f8820: function(
|
|
336
|
+
__wbg_debug_46a93995fc6f8820: function(arg0, arg1, arg2, arg3) {
|
|
492
337
|
console.debug(arg0, arg1, arg2, arg3);
|
|
493
|
-
},
|
|
494
|
-
__wbg_done_57b39ecd9addfe81: function(
|
|
338
|
+
},
|
|
339
|
+
__wbg_done_57b39ecd9addfe81: function(arg0) {
|
|
495
340
|
const ret = arg0.done;
|
|
496
|
-
_assertBoolean(ret);
|
|
497
341
|
return ret;
|
|
498
|
-
},
|
|
499
|
-
__wbg_entries_58c7934c745daac7: function(
|
|
342
|
+
},
|
|
343
|
+
__wbg_entries_58c7934c745daac7: function(arg0) {
|
|
500
344
|
const ret = Object.entries(arg0);
|
|
501
345
|
return ret;
|
|
502
|
-
},
|
|
503
|
-
__wbg_error_7534b8e9a36f1ab4: function(
|
|
346
|
+
},
|
|
347
|
+
__wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
|
|
504
348
|
let deferred0_0;
|
|
505
349
|
let deferred0_1;
|
|
506
350
|
try {
|
|
@@ -510,50 +354,45 @@ function __wbg_get_imports() {
|
|
|
510
354
|
} finally {
|
|
511
355
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
512
356
|
}
|
|
513
|
-
},
|
|
514
|
-
__wbg_error_794d0ffc9d00d5c3: function(
|
|
357
|
+
},
|
|
358
|
+
__wbg_error_794d0ffc9d00d5c3: function(arg0, arg1, arg2, arg3) {
|
|
515
359
|
console.error(arg0, arg1, arg2, arg3);
|
|
516
|
-
},
|
|
517
|
-
__wbg_error_9a7fe3f932034cde: function(
|
|
360
|
+
},
|
|
361
|
+
__wbg_error_9a7fe3f932034cde: function(arg0) {
|
|
518
362
|
console.error(arg0);
|
|
519
|
-
},
|
|
520
|
-
__wbg_fetch_afb6a4b6cacf876d: function(
|
|
363
|
+
},
|
|
364
|
+
__wbg_fetch_afb6a4b6cacf876d: function(arg0, arg1) {
|
|
521
365
|
const ret = arg0.fetch(arg1);
|
|
522
366
|
return ret;
|
|
523
|
-
},
|
|
524
|
-
__wbg_fetch_f1856afdb49415d1: function(
|
|
367
|
+
},
|
|
368
|
+
__wbg_fetch_f1856afdb49415d1: function(arg0) {
|
|
525
369
|
const ret = fetch(arg0);
|
|
526
370
|
return ret;
|
|
527
|
-
},
|
|
528
|
-
|
|
529
|
-
const ret = arg0.getToken();
|
|
530
|
-
return ret;
|
|
531
|
-
}, arguments); },
|
|
532
|
-
__wbg_get_9b94d73e6221f75c: function() { return logError(function (arg0, arg1) {
|
|
371
|
+
},
|
|
372
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
533
373
|
const ret = arg0[arg1 >>> 0];
|
|
534
374
|
return ret;
|
|
535
|
-
},
|
|
375
|
+
},
|
|
536
376
|
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
537
377
|
const ret = Reflect.get(arg0, arg1);
|
|
538
378
|
return ret;
|
|
539
379
|
}, arguments); },
|
|
540
|
-
__wbg_get_with_ref_key_1dc361bd10053bfe: function(
|
|
380
|
+
__wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
|
|
541
381
|
const ret = arg0[arg1];
|
|
542
382
|
return ret;
|
|
543
|
-
},
|
|
383
|
+
},
|
|
544
384
|
__wbg_has_d4e53238966c12b6: function() { return handleError(function (arg0, arg1) {
|
|
545
385
|
const ret = Reflect.has(arg0, arg1);
|
|
546
|
-
_assertBoolean(ret);
|
|
547
386
|
return ret;
|
|
548
387
|
}, arguments); },
|
|
549
|
-
__wbg_headers_59a2938db9f80985: function(
|
|
388
|
+
__wbg_headers_59a2938db9f80985: function(arg0) {
|
|
550
389
|
const ret = arg0.headers;
|
|
551
390
|
return ret;
|
|
552
|
-
},
|
|
553
|
-
__wbg_info_9e602cf10c5c690b: function(
|
|
391
|
+
},
|
|
392
|
+
__wbg_info_9e602cf10c5c690b: function(arg0, arg1, arg2, arg3) {
|
|
554
393
|
console.info(arg0, arg1, arg2, arg3);
|
|
555
|
-
},
|
|
556
|
-
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(
|
|
394
|
+
},
|
|
395
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
|
|
557
396
|
let result;
|
|
558
397
|
try {
|
|
559
398
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -561,10 +400,9 @@ function __wbg_get_imports() {
|
|
|
561
400
|
result = false;
|
|
562
401
|
}
|
|
563
402
|
const ret = result;
|
|
564
|
-
_assertBoolean(ret);
|
|
565
403
|
return ret;
|
|
566
|
-
},
|
|
567
|
-
__wbg_instanceof_Response_ee1d54d79ae41977: function(
|
|
404
|
+
},
|
|
405
|
+
__wbg_instanceof_Response_ee1d54d79ae41977: function(arg0) {
|
|
568
406
|
let result;
|
|
569
407
|
try {
|
|
570
408
|
result = arg0 instanceof Response;
|
|
@@ -572,10 +410,9 @@ function __wbg_get_imports() {
|
|
|
572
410
|
result = false;
|
|
573
411
|
}
|
|
574
412
|
const ret = result;
|
|
575
|
-
_assertBoolean(ret);
|
|
576
413
|
return ret;
|
|
577
|
-
},
|
|
578
|
-
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(
|
|
414
|
+
},
|
|
415
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
|
|
579
416
|
let result;
|
|
580
417
|
try {
|
|
581
418
|
result = arg0 instanceof Uint8Array;
|
|
@@ -583,10 +420,9 @@ function __wbg_get_imports() {
|
|
|
583
420
|
result = false;
|
|
584
421
|
}
|
|
585
422
|
const ret = result;
|
|
586
|
-
_assertBoolean(ret);
|
|
587
423
|
return ret;
|
|
588
|
-
},
|
|
589
|
-
__wbg_instanceof_Window_ed49b2db8df90359: function(
|
|
424
|
+
},
|
|
425
|
+
__wbg_instanceof_Window_ed49b2db8df90359: function(arg0) {
|
|
590
426
|
let result;
|
|
591
427
|
try {
|
|
592
428
|
result = arg0 instanceof Window;
|
|
@@ -594,53 +430,48 @@ function __wbg_get_imports() {
|
|
|
594
430
|
result = false;
|
|
595
431
|
}
|
|
596
432
|
const ret = result;
|
|
597
|
-
_assertBoolean(ret);
|
|
598
433
|
return ret;
|
|
599
|
-
},
|
|
600
|
-
__wbg_isArray_d314bb98fcf08331: function(
|
|
434
|
+
},
|
|
435
|
+
__wbg_isArray_d314bb98fcf08331: function(arg0) {
|
|
601
436
|
const ret = Array.isArray(arg0);
|
|
602
|
-
_assertBoolean(ret);
|
|
603
437
|
return ret;
|
|
604
|
-
},
|
|
605
|
-
__wbg_isSafeInteger_bfbc7332a9768d2a: function(
|
|
438
|
+
},
|
|
439
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
|
|
606
440
|
const ret = Number.isSafeInteger(arg0);
|
|
607
|
-
_assertBoolean(ret);
|
|
608
441
|
return ret;
|
|
609
|
-
},
|
|
610
|
-
__wbg_iterator_6ff6560ca1568e55: function() {
|
|
442
|
+
},
|
|
443
|
+
__wbg_iterator_6ff6560ca1568e55: function() {
|
|
611
444
|
const ret = Symbol.iterator;
|
|
612
445
|
return ret;
|
|
613
|
-
},
|
|
614
|
-
__wbg_length_32ed9a279acd054c: function(
|
|
446
|
+
},
|
|
447
|
+
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
615
448
|
const ret = arg0.length;
|
|
616
|
-
_assertNum(ret);
|
|
617
449
|
return ret;
|
|
618
|
-
},
|
|
619
|
-
__wbg_length_35a7bace40f36eac: function(
|
|
450
|
+
},
|
|
451
|
+
__wbg_length_35a7bace40f36eac: function(arg0) {
|
|
620
452
|
const ret = arg0.length;
|
|
621
|
-
_assertNum(ret);
|
|
622
453
|
return ret;
|
|
623
|
-
},
|
|
624
|
-
__wbg_log_24aba2a6d8990b35: function(
|
|
454
|
+
},
|
|
455
|
+
__wbg_log_24aba2a6d8990b35: function(arg0, arg1, arg2, arg3) {
|
|
625
456
|
console.log(arg0, arg1, arg2, arg3);
|
|
626
|
-
},
|
|
627
|
-
__wbg_new_361308b2356cecd0: function() {
|
|
457
|
+
},
|
|
458
|
+
__wbg_new_361308b2356cecd0: function() {
|
|
628
459
|
const ret = new Object();
|
|
629
460
|
return ret;
|
|
630
|
-
},
|
|
631
|
-
__wbg_new_3eb36ae241fe6f44: function() {
|
|
461
|
+
},
|
|
462
|
+
__wbg_new_3eb36ae241fe6f44: function() {
|
|
632
463
|
const ret = new Array();
|
|
633
464
|
return ret;
|
|
634
|
-
},
|
|
465
|
+
},
|
|
635
466
|
__wbg_new_64284bd487f9d239: function() { return handleError(function () {
|
|
636
467
|
const ret = new Headers();
|
|
637
468
|
return ret;
|
|
638
469
|
}, arguments); },
|
|
639
|
-
__wbg_new_8a6f238a6ece86ea: function() {
|
|
470
|
+
__wbg_new_8a6f238a6ece86ea: function() {
|
|
640
471
|
const ret = new Error();
|
|
641
472
|
return ret;
|
|
642
|
-
},
|
|
643
|
-
__wbg_new_b5d9e2fb389fef91: function(
|
|
473
|
+
},
|
|
474
|
+
__wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
|
|
644
475
|
try {
|
|
645
476
|
var state0 = {a: arg0, b: arg1};
|
|
646
477
|
var cb0 = (arg0, arg1) => {
|
|
@@ -657,27 +488,27 @@ function __wbg_get_imports() {
|
|
|
657
488
|
} finally {
|
|
658
489
|
state0.a = state0.b = 0;
|
|
659
490
|
}
|
|
660
|
-
},
|
|
491
|
+
},
|
|
661
492
|
__wbg_new_b949e7f56150a5d1: function() { return handleError(function () {
|
|
662
493
|
const ret = new AbortController();
|
|
663
494
|
return ret;
|
|
664
495
|
}, arguments); },
|
|
665
|
-
__wbg_new_dca287b076112a51: function() {
|
|
496
|
+
__wbg_new_dca287b076112a51: function() {
|
|
666
497
|
const ret = new Map();
|
|
667
498
|
return ret;
|
|
668
|
-
},
|
|
669
|
-
__wbg_new_dd2b680c8bf6ae29: function(
|
|
499
|
+
},
|
|
500
|
+
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
670
501
|
const ret = new Uint8Array(arg0);
|
|
671
502
|
return ret;
|
|
672
|
-
},
|
|
673
|
-
__wbg_new_from_slice_a3d2629dc1826784: function(
|
|
503
|
+
},
|
|
504
|
+
__wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
|
|
674
505
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
675
506
|
return ret;
|
|
676
|
-
},
|
|
677
|
-
__wbg_new_no_args_1c7c842f08d00ebb: function(
|
|
507
|
+
},
|
|
508
|
+
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
678
509
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
679
510
|
return ret;
|
|
680
|
-
},
|
|
511
|
+
},
|
|
681
512
|
__wbg_new_with_str_and_init_a61cbc6bdef21614: function() { return handleError(function (arg0, arg1, arg2) {
|
|
682
513
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
683
514
|
return ret;
|
|
@@ -686,38 +517,33 @@ function __wbg_get_imports() {
|
|
|
686
517
|
const ret = arg0.next();
|
|
687
518
|
return ret;
|
|
688
519
|
}, arguments); },
|
|
689
|
-
__wbg_next_418f80d8f5303233: function(
|
|
520
|
+
__wbg_next_418f80d8f5303233: function(arg0) {
|
|
690
521
|
const ret = arg0.next;
|
|
691
522
|
return ret;
|
|
692
|
-
},
|
|
693
|
-
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(
|
|
523
|
+
},
|
|
524
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
694
525
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
695
|
-
},
|
|
696
|
-
__wbg_push_8ffdcb2063340ba5: function(
|
|
526
|
+
},
|
|
527
|
+
__wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
|
|
697
528
|
const ret = arg0.push(arg1);
|
|
698
|
-
_assertNum(ret);
|
|
699
529
|
return ret;
|
|
700
|
-
},
|
|
701
|
-
__wbg_queueMicrotask_0aa0a927f78f5d98: function(
|
|
530
|
+
},
|
|
531
|
+
__wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
|
|
702
532
|
const ret = arg0.queueMicrotask;
|
|
703
533
|
return ret;
|
|
704
|
-
},
|
|
705
|
-
__wbg_queueMicrotask_5bb536982f78a56f: function(
|
|
534
|
+
},
|
|
535
|
+
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
706
536
|
queueMicrotask(arg0);
|
|
707
|
-
},
|
|
708
|
-
__wbg_reject_a2176de7f1212be5: function(
|
|
537
|
+
},
|
|
538
|
+
__wbg_reject_a2176de7f1212be5: function(arg0) {
|
|
709
539
|
const ret = Promise.reject(arg0);
|
|
710
540
|
return ret;
|
|
711
|
-
},
|
|
712
|
-
|
|
713
|
-
const ret = arg0.removeToken();
|
|
714
|
-
return ret;
|
|
715
|
-
}, arguments); },
|
|
716
|
-
__wbg_resolve_002c4b7d9d8f6b64: function() { return logError(function (arg0) {
|
|
541
|
+
},
|
|
542
|
+
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
717
543
|
const ret = Promise.resolve(arg0);
|
|
718
544
|
return ret;
|
|
719
|
-
},
|
|
720
|
-
__wbg_run_bcde7ea43ea6ed7c: function(
|
|
545
|
+
},
|
|
546
|
+
__wbg_run_bcde7ea43ea6ed7c: function(arg0, arg1, arg2) {
|
|
721
547
|
try {
|
|
722
548
|
var state0 = {a: arg1, b: arg2};
|
|
723
549
|
var cb0 = () => {
|
|
@@ -730,130 +556,115 @@ function __wbg_get_imports() {
|
|
|
730
556
|
}
|
|
731
557
|
};
|
|
732
558
|
const ret = arg0.run(cb0);
|
|
733
|
-
_assertBoolean(ret);
|
|
734
559
|
return ret;
|
|
735
560
|
} finally {
|
|
736
561
|
state0.a = state0.b = 0;
|
|
737
562
|
}
|
|
738
|
-
},
|
|
563
|
+
},
|
|
739
564
|
__wbg_setTimeout_eff32631ea138533: function() { return handleError(function (arg0, arg1, arg2) {
|
|
740
565
|
const ret = arg0.setTimeout(arg1, arg2);
|
|
741
|
-
_assertNum(ret);
|
|
742
566
|
return ret;
|
|
743
567
|
}, arguments); },
|
|
744
|
-
|
|
745
|
-
let deferred0_0;
|
|
746
|
-
let deferred0_1;
|
|
747
|
-
try {
|
|
748
|
-
deferred0_0 = arg1;
|
|
749
|
-
deferred0_1 = arg2;
|
|
750
|
-
const ret = arg0.setToken(getStringFromWasm0(arg1, arg2));
|
|
751
|
-
return ret;
|
|
752
|
-
} finally {
|
|
753
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
754
|
-
}
|
|
755
|
-
}, arguments); },
|
|
756
|
-
__wbg_set_1eb0999cf5d27fc8: function() { return logError(function (arg0, arg1, arg2) {
|
|
568
|
+
__wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
|
|
757
569
|
const ret = arg0.set(arg1, arg2);
|
|
758
570
|
return ret;
|
|
759
|
-
},
|
|
760
|
-
__wbg_set_3f1d0b984ed272ed: function(
|
|
571
|
+
},
|
|
572
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
761
573
|
arg0[arg1] = arg2;
|
|
762
|
-
},
|
|
763
|
-
__wbg_set_body_9a7e00afe3cfe244: function(
|
|
574
|
+
},
|
|
575
|
+
__wbg_set_body_9a7e00afe3cfe244: function(arg0, arg1) {
|
|
764
576
|
arg0.body = arg1;
|
|
765
|
-
},
|
|
766
|
-
__wbg_set_credentials_c4a58d2e05ef24fb: function(
|
|
577
|
+
},
|
|
578
|
+
__wbg_set_credentials_c4a58d2e05ef24fb: function(arg0, arg1) {
|
|
767
579
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
768
|
-
},
|
|
769
|
-
__wbg_set_f43e577aea94465b: function(
|
|
580
|
+
},
|
|
581
|
+
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
770
582
|
arg0[arg1 >>> 0] = arg2;
|
|
771
|
-
},
|
|
772
|
-
__wbg_set_headers_cfc5f4b2c1f20549: function(
|
|
583
|
+
},
|
|
584
|
+
__wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
|
|
773
585
|
arg0.headers = arg1;
|
|
774
|
-
},
|
|
775
|
-
__wbg_set_method_c3e20375f5ae7fac: function(
|
|
586
|
+
},
|
|
587
|
+
__wbg_set_method_c3e20375f5ae7fac: function(arg0, arg1, arg2) {
|
|
776
588
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
777
|
-
},
|
|
778
|
-
__wbg_set_mode_b13642c312648202: function(
|
|
589
|
+
},
|
|
590
|
+
__wbg_set_mode_b13642c312648202: function(arg0, arg1) {
|
|
779
591
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
780
|
-
},
|
|
781
|
-
__wbg_set_signal_f2d3f8599248896d: function(
|
|
592
|
+
},
|
|
593
|
+
__wbg_set_signal_f2d3f8599248896d: function(arg0, arg1) {
|
|
782
594
|
arg0.signal = arg1;
|
|
783
|
-
},
|
|
784
|
-
__wbg_signal_d1285ecab4ebc5ad: function(
|
|
595
|
+
},
|
|
596
|
+
__wbg_signal_d1285ecab4ebc5ad: function(arg0) {
|
|
785
597
|
const ret = arg0.signal;
|
|
786
598
|
return ret;
|
|
787
|
-
},
|
|
788
|
-
__wbg_stack_0ed75d68575b0f3c: function(
|
|
599
|
+
},
|
|
600
|
+
__wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
|
|
789
601
|
const ret = arg1.stack;
|
|
790
602
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
603
|
const len1 = WASM_VECTOR_LEN;
|
|
792
604
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
793
605
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
794
|
-
},
|
|
795
|
-
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
606
|
+
},
|
|
607
|
+
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
796
608
|
const ret = typeof global === 'undefined' ? null : global;
|
|
797
609
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
798
|
-
},
|
|
799
|
-
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
610
|
+
},
|
|
611
|
+
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
800
612
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
801
613
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
802
|
-
},
|
|
803
|
-
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
614
|
+
},
|
|
615
|
+
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
804
616
|
const ret = typeof self === 'undefined' ? null : self;
|
|
805
617
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
806
|
-
},
|
|
807
|
-
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
618
|
+
},
|
|
619
|
+
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
808
620
|
const ret = typeof window === 'undefined' ? null : window;
|
|
809
621
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
810
|
-
},
|
|
811
|
-
__wbg_status_89d7e803db911ee7: function(
|
|
622
|
+
},
|
|
623
|
+
__wbg_status_89d7e803db911ee7: function(arg0) {
|
|
812
624
|
const ret = arg0.status;
|
|
813
|
-
_assertNum(ret);
|
|
814
625
|
return ret;
|
|
815
|
-
},
|
|
626
|
+
},
|
|
816
627
|
__wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
|
|
817
628
|
const ret = JSON.stringify(arg0);
|
|
818
629
|
return ret;
|
|
819
630
|
}, arguments); },
|
|
820
|
-
__wbg_then_0d9fe2c7b1857d32: function(
|
|
631
|
+
__wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
|
|
821
632
|
const ret = arg0.then(arg1, arg2);
|
|
822
633
|
return ret;
|
|
823
|
-
},
|
|
824
|
-
__wbg_then_b9e7b3b5f1a9e1b5: function(
|
|
634
|
+
},
|
|
635
|
+
__wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
|
|
825
636
|
const ret = arg0.then(arg1);
|
|
826
637
|
return ret;
|
|
827
|
-
},
|
|
828
|
-
__wbg_url_c484c26b1fbf5126: function(
|
|
638
|
+
},
|
|
639
|
+
__wbg_url_c484c26b1fbf5126: function(arg0, arg1) {
|
|
829
640
|
const ret = arg1.url;
|
|
830
641
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
831
642
|
const len1 = WASM_VECTOR_LEN;
|
|
832
643
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
833
644
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
834
|
-
},
|
|
835
|
-
__wbg_value_0546255b415e96c1: function(
|
|
645
|
+
},
|
|
646
|
+
__wbg_value_0546255b415e96c1: function(arg0) {
|
|
836
647
|
const ret = arg0.value;
|
|
837
648
|
return ret;
|
|
838
|
-
},
|
|
839
|
-
__wbg_warn_a40b971467b219c7: function(
|
|
649
|
+
},
|
|
650
|
+
__wbg_warn_a40b971467b219c7: function(arg0, arg1, arg2, arg3) {
|
|
840
651
|
console.warn(arg0, arg1, arg2, arg3);
|
|
841
|
-
},
|
|
842
|
-
__wbindgen_cast_0000000000000001: function(
|
|
843
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
652
|
+
},
|
|
653
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
654
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 453, function: Function { arguments: [Externref], shim_idx: 454, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
844
655
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hef952482e2fa4b82, wasm_bindgen__convert__closures_____invoke__h39a0ca41b93efad1);
|
|
845
656
|
return ret;
|
|
846
|
-
},
|
|
847
|
-
__wbindgen_cast_0000000000000002: function(
|
|
657
|
+
},
|
|
658
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
848
659
|
// Cast intrinsic for `F64 -> Externref`.
|
|
849
660
|
const ret = arg0;
|
|
850
661
|
return ret;
|
|
851
|
-
},
|
|
852
|
-
__wbindgen_cast_0000000000000003: function(
|
|
662
|
+
},
|
|
663
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
853
664
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
854
665
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
855
666
|
return ret;
|
|
856
|
-
},
|
|
667
|
+
},
|
|
857
668
|
__wbindgen_init_externref_table: function() {
|
|
858
669
|
const table = wasm.__wbindgen_externrefs;
|
|
859
670
|
const offset = table.grow(4);
|
|
@@ -870,24 +681,16 @@ function __wbg_get_imports() {
|
|
|
870
681
|
};
|
|
871
682
|
}
|
|
872
683
|
|
|
873
|
-
|
|
874
|
-
//#endregion
|
|
875
684
|
function wasm_bindgen__convert__closures_____invoke__h813bcc4b5580794c(arg0, arg1) {
|
|
876
|
-
_assertNum(arg0);
|
|
877
|
-
_assertNum(arg1);
|
|
878
685
|
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h813bcc4b5580794c(arg0, arg1);
|
|
879
686
|
return ret !== 0;
|
|
880
687
|
}
|
|
881
688
|
|
|
882
689
|
function wasm_bindgen__convert__closures_____invoke__h39a0ca41b93efad1(arg0, arg1, arg2) {
|
|
883
|
-
_assertNum(arg0);
|
|
884
|
-
_assertNum(arg1);
|
|
885
690
|
wasm.wasm_bindgen__convert__closures_____invoke__h39a0ca41b93efad1(arg0, arg1, arg2);
|
|
886
691
|
}
|
|
887
692
|
|
|
888
693
|
function wasm_bindgen__convert__closures_____invoke__hc62088f6e4aadc8d(arg0, arg1, arg2, arg3) {
|
|
889
|
-
_assertNum(arg0);
|
|
890
|
-
_assertNum(arg1);
|
|
891
694
|
wasm.wasm_bindgen__convert__closures_____invoke__hc62088f6e4aadc8d(arg0, arg1, arg2, arg3);
|
|
892
695
|
}
|
|
893
696
|
|
|
@@ -900,24 +703,12 @@ const ModelHealthServiceFinalization = (typeof FinalizationRegistry === 'undefin
|
|
|
900
703
|
? { register: () => {}, unregister: () => {} }
|
|
901
704
|
: new FinalizationRegistry(ptr => wasm.__wbg_modelhealthservice_free(ptr >>> 0, 1));
|
|
902
705
|
|
|
903
|
-
|
|
904
|
-
//#region intrinsics
|
|
905
706
|
function addToExternrefTable0(obj) {
|
|
906
707
|
const idx = wasm.__externref_table_alloc();
|
|
907
708
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
908
709
|
return idx;
|
|
909
710
|
}
|
|
910
711
|
|
|
911
|
-
function _assertBoolean(n) {
|
|
912
|
-
if (typeof(n) !== 'boolean') {
|
|
913
|
-
throw new Error(`expected a boolean argument, found ${typeof(n)}`);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
function _assertNum(n) {
|
|
918
|
-
if (typeof(n) !== 'number') throw new Error(`expected a number argument, found ${typeof(n)}`);
|
|
919
|
-
}
|
|
920
|
-
|
|
921
712
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
922
713
|
? { register: () => {}, unregister: () => {} }
|
|
923
714
|
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
@@ -1026,22 +817,6 @@ function isLikeNone(x) {
|
|
|
1026
817
|
return x === undefined || x === null;
|
|
1027
818
|
}
|
|
1028
819
|
|
|
1029
|
-
function logError(f, args) {
|
|
1030
|
-
try {
|
|
1031
|
-
return f.apply(this, args);
|
|
1032
|
-
} catch (e) {
|
|
1033
|
-
let error = (function () {
|
|
1034
|
-
try {
|
|
1035
|
-
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
|
|
1036
|
-
} catch(_) {
|
|
1037
|
-
return "<failed to stringify thrown value>";
|
|
1038
|
-
}
|
|
1039
|
-
}());
|
|
1040
|
-
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
|
|
1041
|
-
throw e;
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
820
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1046
821
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1047
822
|
const real = (...args) => {
|
|
@@ -1071,7 +846,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1071
846
|
}
|
|
1072
847
|
|
|
1073
848
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
1074
|
-
if (typeof(arg) !== 'string') throw new Error(`expected a string argument, found ${typeof(arg)}`);
|
|
1075
849
|
if (realloc === undefined) {
|
|
1076
850
|
const buf = cachedTextEncoder.encode(arg);
|
|
1077
851
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
@@ -1099,7 +873,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
1099
873
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1100
874
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1101
875
|
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1102
|
-
|
|
876
|
+
|
|
1103
877
|
offset += ret.written;
|
|
1104
878
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1105
879
|
}
|
|
@@ -1143,10 +917,6 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1143
917
|
|
|
1144
918
|
let WASM_VECTOR_LEN = 0;
|
|
1145
919
|
|
|
1146
|
-
|
|
1147
|
-
//#endregion
|
|
1148
|
-
|
|
1149
|
-
//#region wasm loading
|
|
1150
920
|
let wasmModule, wasm;
|
|
1151
921
|
function __wbg_finalize_init(instance, module) {
|
|
1152
922
|
wasm = instance.exports;
|
|
@@ -1239,5 +1009,3 @@ async function __wbg_init(module_or_path) {
|
|
|
1239
1009
|
}
|
|
1240
1010
|
|
|
1241
1011
|
export { initSync, __wbg_init as default };
|
|
1242
|
-
//#endregion
|
|
1243
|
-
export { wasm as __wasm }
|