phirepass-channel 0.1.356 → 0.1.358
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/package.json +1 -1
- package/phirepass-channel.d.ts +32 -4
- package/phirepass-channel.js +276 -20
- package/phirepass-channel_bg.wasm +0 -0
package/package.json
CHANGED
package/phirepass-channel.d.ts
CHANGED
|
@@ -32,6 +32,18 @@ export class Channel {
|
|
|
32
32
|
open_rdp_tunnel(node_id: string, service_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
|
|
33
33
|
open_sftp_tunnel(node_id: string, service_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
|
|
34
34
|
open_ssh_tunnel(node_id: string, service_id: string, username?: string | null, password?: string | null, msg_id?: number | null): void;
|
|
35
|
+
send_download_delete(download_id: string, delete_file: boolean, msg_id?: number | null): void;
|
|
36
|
+
send_download_resume(download_id: string, ignore_window: boolean, msg_id?: number | null): void;
|
|
37
|
+
send_download_set_order(download_id: string, in_order: boolean, msg_id?: number | null): void;
|
|
38
|
+
send_download_settings_get(node_id: string, msg_id?: number | null): void;
|
|
39
|
+
send_download_settings_save(node_id: string, settings: any, msg_id?: number | null): void;
|
|
40
|
+
send_download_start(node_id: string, source: any, sub_dir: string | null | undefined, browsing: any, in_order: boolean | null | undefined, options: any, msg_id?: number | null): void;
|
|
41
|
+
send_download_stop(download_id: string, discard: boolean, msg_id?: number | null): void;
|
|
42
|
+
/**
|
|
43
|
+
* `{ Node: "<uuid>" }` or `"All"`.
|
|
44
|
+
*/
|
|
45
|
+
send_download_subscribe(scope: any): void;
|
|
46
|
+
send_download_where(node_id: string, browsing: any, msg_id?: number | null): void;
|
|
35
47
|
/**
|
|
36
48
|
* Set permission bits. The agent masks these to `0o7777`.
|
|
37
49
|
*/
|
|
@@ -50,6 +62,12 @@ export class Channel {
|
|
|
50
62
|
* Create one directory. Parents must exist already, as with `mkdir`.
|
|
51
63
|
*/
|
|
52
64
|
send_sftp_mkdir(node_id: string, sid: number, path: string, msg_id?: number | null): void;
|
|
65
|
+
/**
|
|
66
|
+
* Ask the node to let a player read `path` through this SFTP session.
|
|
67
|
+
* Answered with `SFTPOpResult::Stream { token, size, mime }`; the player
|
|
68
|
+
* then reads `/api/web/stream/{node_id}/t/{token}`.
|
|
69
|
+
*/
|
|
70
|
+
send_sftp_open_stream(node_id: string, sid: number, path: string, msg_id?: number | null): void;
|
|
53
71
|
/**
|
|
54
72
|
* Read a whole file for the in-page editor. Answered with an
|
|
55
73
|
* `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
|
|
@@ -116,6 +134,15 @@ export interface InitOutput {
|
|
|
116
134
|
readonly channel_open_rdp_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
117
135
|
readonly channel_open_sftp_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
118
136
|
readonly channel_open_ssh_tunnel: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
137
|
+
readonly channel_send_download_delete: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
138
|
+
readonly channel_send_download_resume: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
139
|
+
readonly channel_send_download_set_order: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
140
|
+
readonly channel_send_download_settings_get: (a: number, b: number, c: number, d: number) => void;
|
|
141
|
+
readonly channel_send_download_settings_save: (a: number, b: number, c: number, d: any, e: number) => void;
|
|
142
|
+
readonly channel_send_download_start: (a: number, b: number, c: number, d: any, e: number, f: number, g: any, h: number, i: any, j: number) => void;
|
|
143
|
+
readonly channel_send_download_stop: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
144
|
+
readonly channel_send_download_subscribe: (a: number, b: any) => void;
|
|
145
|
+
readonly channel_send_download_where: (a: number, b: number, c: number, d: any, e: number) => void;
|
|
119
146
|
readonly channel_send_sftp_chmod: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
120
147
|
readonly channel_send_sftp_delete: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
121
148
|
readonly channel_send_sftp_download_ack: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -123,6 +150,7 @@ export interface InitOutput {
|
|
|
123
150
|
readonly channel_send_sftp_download_start: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
124
151
|
readonly channel_send_sftp_list_data: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
125
152
|
readonly channel_send_sftp_mkdir: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
153
|
+
readonly channel_send_sftp_open_stream: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
126
154
|
readonly channel_send_sftp_read_file: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
127
155
|
readonly channel_send_sftp_remove: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
128
156
|
readonly channel_send_sftp_rename: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
@@ -135,10 +163,10 @@ export interface InitOutput {
|
|
|
135
163
|
readonly channel_stop_heartbeat: (a: number) => void;
|
|
136
164
|
readonly channel_update_service: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => void;
|
|
137
165
|
readonly version: (a: number) => void;
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
166
|
+
readonly __wasm_bindgen_func_elem_96: (a: number, b: number, c: any) => void;
|
|
167
|
+
readonly __wasm_bindgen_func_elem_96_47: (a: number, b: number, c: any) => void;
|
|
168
|
+
readonly __wasm_bindgen_func_elem_96_48: (a: number, b: number, c: any) => void;
|
|
169
|
+
readonly __wasm_bindgen_func_elem_100: (a: number, b: number) => void;
|
|
142
170
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
143
171
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
144
172
|
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
package/phirepass-channel.js
CHANGED
|
@@ -270,6 +270,117 @@ export class Channel {
|
|
|
270
270
|
}
|
|
271
271
|
wasm.channel_open_ssh_tunnel(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, val5);
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* @param {string} download_id
|
|
275
|
+
* @param {boolean} delete_file
|
|
276
|
+
* @param {number | null} [msg_id]
|
|
277
|
+
*/
|
|
278
|
+
send_download_delete(download_id, delete_file, msg_id) {
|
|
279
|
+
const val2 = +delete_file;
|
|
280
|
+
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
281
|
+
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
282
|
+
const len0 = WASM_VECTOR_LEN;
|
|
283
|
+
wasm.channel_send_download_delete(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* @param {string} download_id
|
|
287
|
+
* @param {boolean} ignore_window
|
|
288
|
+
* @param {number | null} [msg_id]
|
|
289
|
+
*/
|
|
290
|
+
send_download_resume(download_id, ignore_window, msg_id) {
|
|
291
|
+
const val2 = +ignore_window;
|
|
292
|
+
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
293
|
+
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
294
|
+
const len0 = WASM_VECTOR_LEN;
|
|
295
|
+
wasm.channel_send_download_resume(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @param {string} download_id
|
|
299
|
+
* @param {boolean} in_order
|
|
300
|
+
* @param {number | null} [msg_id]
|
|
301
|
+
*/
|
|
302
|
+
send_download_set_order(download_id, in_order, msg_id) {
|
|
303
|
+
const val2 = +in_order;
|
|
304
|
+
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
305
|
+
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
307
|
+
wasm.channel_send_download_set_order(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @param {string} node_id
|
|
311
|
+
* @param {number | null} [msg_id]
|
|
312
|
+
*/
|
|
313
|
+
send_download_settings_get(node_id, msg_id) {
|
|
314
|
+
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
315
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
316
|
+
const len0 = WASM_VECTOR_LEN;
|
|
317
|
+
wasm.channel_send_download_settings_get(this.__wbg_ptr, ptr0, len0, val2);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @param {string} node_id
|
|
321
|
+
* @param {any} settings
|
|
322
|
+
* @param {number | null} [msg_id]
|
|
323
|
+
*/
|
|
324
|
+
send_download_settings_save(node_id, settings, msg_id) {
|
|
325
|
+
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
326
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
327
|
+
const len0 = WASM_VECTOR_LEN;
|
|
328
|
+
wasm.channel_send_download_settings_save(this.__wbg_ptr, ptr0, len0, settings, val2);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* @param {string} node_id
|
|
332
|
+
* @param {any} source
|
|
333
|
+
* @param {string | null | undefined} sub_dir
|
|
334
|
+
* @param {any} browsing
|
|
335
|
+
* @param {boolean | null | undefined} in_order
|
|
336
|
+
* @param {any} options
|
|
337
|
+
* @param {number | null} [msg_id]
|
|
338
|
+
*/
|
|
339
|
+
send_download_start(node_id, source, sub_dir, browsing, in_order, options, msg_id) {
|
|
340
|
+
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
341
|
+
let ptr0, len0, ptr1, len1;
|
|
342
|
+
try {
|
|
343
|
+
ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
344
|
+
len0 = WASM_VECTOR_LEN;
|
|
345
|
+
ptr1 = isLikeNone(sub_dir) ? 0 : passStringToWasm0(sub_dir, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
346
|
+
len1 = WASM_VECTOR_LEN;
|
|
347
|
+
} catch (e) {
|
|
348
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
|
|
349
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
350
|
+
throw e;
|
|
351
|
+
}
|
|
352
|
+
wasm.channel_send_download_start(this.__wbg_ptr, ptr0, len0, source, ptr1, len1, browsing, isLikeNone(in_order) ? 0xFFFFFF : in_order ? 1 : 0, options, val3);
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* @param {string} download_id
|
|
356
|
+
* @param {boolean} discard
|
|
357
|
+
* @param {number | null} [msg_id]
|
|
358
|
+
*/
|
|
359
|
+
send_download_stop(download_id, discard, msg_id) {
|
|
360
|
+
const val2 = +discard;
|
|
361
|
+
const val3 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
362
|
+
const ptr0 = passStringToWasm0(download_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
363
|
+
const len0 = WASM_VECTOR_LEN;
|
|
364
|
+
wasm.channel_send_download_stop(this.__wbg_ptr, ptr0, len0, val2, val3);
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* `{ Node: "<uuid>" }` or `"All"`.
|
|
368
|
+
* @param {any} scope
|
|
369
|
+
*/
|
|
370
|
+
send_download_subscribe(scope) {
|
|
371
|
+
wasm.channel_send_download_subscribe(this.__wbg_ptr, scope);
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* @param {string} node_id
|
|
375
|
+
* @param {any} browsing
|
|
376
|
+
* @param {number | null} [msg_id]
|
|
377
|
+
*/
|
|
378
|
+
send_download_where(node_id, browsing, msg_id) {
|
|
379
|
+
const val2 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
380
|
+
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
381
|
+
const len0 = WASM_VECTOR_LEN;
|
|
382
|
+
wasm.channel_send_download_where(this.__wbg_ptr, ptr0, len0, browsing, val2);
|
|
383
|
+
}
|
|
273
384
|
/**
|
|
274
385
|
* Set permission bits. The agent masks these to `0o7777`.
|
|
275
386
|
* @param {string} node_id
|
|
@@ -425,6 +536,31 @@ export class Channel {
|
|
|
425
536
|
}
|
|
426
537
|
wasm.channel_send_sftp_mkdir(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
427
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Ask the node to let a player read `path` through this SFTP session.
|
|
541
|
+
* Answered with `SFTPOpResult::Stream { token, size, mime }`; the player
|
|
542
|
+
* then reads `/api/web/stream/{node_id}/t/{token}`.
|
|
543
|
+
* @param {string} node_id
|
|
544
|
+
* @param {number} sid
|
|
545
|
+
* @param {string} path
|
|
546
|
+
* @param {number | null} [msg_id]
|
|
547
|
+
*/
|
|
548
|
+
send_sftp_open_stream(node_id, sid, path, msg_id) {
|
|
549
|
+
const val3 = +sid;
|
|
550
|
+
const val4 = +(isLikeNone(msg_id) ? Number.MAX_SAFE_INTEGER : (msg_id) >>> 0);
|
|
551
|
+
let ptr0, len0, ptr1, len1;
|
|
552
|
+
try {
|
|
553
|
+
ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
554
|
+
len0 = WASM_VECTOR_LEN;
|
|
555
|
+
ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
556
|
+
len1 = WASM_VECTOR_LEN;
|
|
557
|
+
} catch (e) {
|
|
558
|
+
if (ptr1) { wasm.__wbindgen_export3(ptr1, len1 * 1, 1); }
|
|
559
|
+
if (ptr0) { wasm.__wbindgen_export3(ptr0, len0 * 1, 1); }
|
|
560
|
+
throw e;
|
|
561
|
+
}
|
|
562
|
+
wasm.channel_send_sftp_open_stream(this.__wbg_ptr, ptr0, len0, val3, ptr1, len1, val4);
|
|
563
|
+
}
|
|
428
564
|
/**
|
|
429
565
|
* Read a whole file for the in-page editor. Answered with an
|
|
430
566
|
* `SFTPOpResult` carrying `FileContents`, or an `Error` if the file is
|
|
@@ -730,6 +866,10 @@ function __wbg_get_imports() {
|
|
|
730
866
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
731
867
|
return ret;
|
|
732
868
|
},
|
|
869
|
+
__wbg_Number_ff192a72a0dcdf6d: function(arg0) {
|
|
870
|
+
const ret = Number(arg0);
|
|
871
|
+
return ret;
|
|
872
|
+
},
|
|
733
873
|
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
734
874
|
const ret = String(arg1);
|
|
735
875
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -737,6 +877,17 @@ function __wbg_get_imports() {
|
|
|
737
877
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
738
878
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
739
879
|
},
|
|
880
|
+
__wbg___wbindgen_bigint_get_as_i64_11da4b52cd0aedef: function(arg0, arg1) {
|
|
881
|
+
const v = arg1;
|
|
882
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
883
|
+
getDataViewMemory0().setBigInt64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
884
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
885
|
+
},
|
|
886
|
+
__wbg___wbindgen_boolean_get_4f1baf9a00be3c74: function(arg0) {
|
|
887
|
+
const v = arg0;
|
|
888
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
889
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
890
|
+
},
|
|
740
891
|
__wbg___wbindgen_debug_string_f249a2a76caa9a55: function(arg0, arg1) {
|
|
741
892
|
const ret = debugString(arg1);
|
|
742
893
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -744,6 +895,49 @@ function __wbg_get_imports() {
|
|
|
744
895
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 1, len1, true);
|
|
745
896
|
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, ptr1, true);
|
|
746
897
|
},
|
|
898
|
+
__wbg___wbindgen_in_3f58a9d3b3a7eed2: function(arg0, arg1) {
|
|
899
|
+
const ret = arg0 in arg1;
|
|
900
|
+
return ret;
|
|
901
|
+
},
|
|
902
|
+
__wbg___wbindgen_is_bigint_5fa10641e039d3ef: function(arg0) {
|
|
903
|
+
const ret = typeof(arg0) === 'bigint';
|
|
904
|
+
return ret;
|
|
905
|
+
},
|
|
906
|
+
__wbg___wbindgen_is_function_741ff2bb612836f5: function(arg0) {
|
|
907
|
+
const ret = typeof(arg0) === 'function';
|
|
908
|
+
return ret;
|
|
909
|
+
},
|
|
910
|
+
__wbg___wbindgen_is_null_c22311b1cc228e3a: function(arg0) {
|
|
911
|
+
const ret = arg0 === null;
|
|
912
|
+
return ret;
|
|
913
|
+
},
|
|
914
|
+
__wbg___wbindgen_is_object_8b968c3ab8e96595: function(arg0) {
|
|
915
|
+
const val = arg0;
|
|
916
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
917
|
+
return ret;
|
|
918
|
+
},
|
|
919
|
+
__wbg___wbindgen_is_string_fc456fee5d3317de: function(arg0) {
|
|
920
|
+
const ret = typeof(arg0) === 'string';
|
|
921
|
+
return ret;
|
|
922
|
+
},
|
|
923
|
+
__wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
|
|
924
|
+
const ret = arg0 === undefined;
|
|
925
|
+
return ret;
|
|
926
|
+
},
|
|
927
|
+
__wbg___wbindgen_jsval_eq_38d7bfbe4cc84039: function(arg0, arg1) {
|
|
928
|
+
const ret = arg0 === arg1;
|
|
929
|
+
return ret;
|
|
930
|
+
},
|
|
931
|
+
__wbg___wbindgen_jsval_loose_eq_b2f214e2e4b30e36: function(arg0, arg1) {
|
|
932
|
+
const ret = arg0 == arg1;
|
|
933
|
+
return ret;
|
|
934
|
+
},
|
|
935
|
+
__wbg___wbindgen_number_get_934b640d0889af78: function(arg0, arg1) {
|
|
936
|
+
const obj = arg1;
|
|
937
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
938
|
+
getDataViewMemory0().setFloat64((arg0 >>> 0) + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
939
|
+
getDataViewMemory0().setInt32((arg0 >>> 0) + 4 * 0, !isLikeNone(ret), true);
|
|
940
|
+
},
|
|
747
941
|
__wbg___wbindgen_string_get_7ce8eee7fd327545: function(arg0, arg1) {
|
|
748
942
|
const obj = arg1;
|
|
749
943
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -770,7 +964,7 @@ function __wbg_get_imports() {
|
|
|
770
964
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
771
965
|
return ret;
|
|
772
966
|
}, arguments); },
|
|
773
|
-
|
|
967
|
+
__wbg_clearInterval_2ed00e80b9bdc143: function(arg0) {
|
|
774
968
|
const ret = clearInterval(arg0);
|
|
775
969
|
return ret;
|
|
776
970
|
},
|
|
@@ -781,6 +975,14 @@ function __wbg_get_imports() {
|
|
|
781
975
|
const ret = arg0.data;
|
|
782
976
|
return ret;
|
|
783
977
|
},
|
|
978
|
+
__wbg_done_57e08d0be6e30c02: function(arg0) {
|
|
979
|
+
const ret = arg0.done;
|
|
980
|
+
return ret;
|
|
981
|
+
},
|
|
982
|
+
__wbg_entries_7bb1459bd9b5c2b9: function(arg0) {
|
|
983
|
+
const ret = Object.entries(arg0);
|
|
984
|
+
return ret;
|
|
985
|
+
},
|
|
784
986
|
__wbg_from_eac91875c8a5ffa4: function(arg0) {
|
|
785
987
|
const ret = Array.from(arg0);
|
|
786
988
|
return ret;
|
|
@@ -792,7 +994,23 @@ function __wbg_get_imports() {
|
|
|
792
994
|
const ret = Reflect.get(arg0, arg1);
|
|
793
995
|
return ret;
|
|
794
996
|
}, arguments); },
|
|
795
|
-
|
|
997
|
+
__wbg_get_635eea311fa1a291: function() { return handleError(function (arg0, arg1) {
|
|
998
|
+
const ret = Reflect.get(arg0, arg1);
|
|
999
|
+
return ret;
|
|
1000
|
+
}, arguments); },
|
|
1001
|
+
__wbg_get_d7176cfb76d71114: function(arg0, arg1) {
|
|
1002
|
+
const ret = arg0[arg1 >>> 0];
|
|
1003
|
+
return ret;
|
|
1004
|
+
},
|
|
1005
|
+
__wbg_get_unchecked_e6325ad374eff861: function(arg0, arg1) {
|
|
1006
|
+
const ret = arg0[arg1 >>> 0];
|
|
1007
|
+
return ret;
|
|
1008
|
+
},
|
|
1009
|
+
__wbg_get_with_ref_key_fc601247060b7204: function(arg0, arg1) {
|
|
1010
|
+
const ret = arg0[arg1];
|
|
1011
|
+
return ret;
|
|
1012
|
+
},
|
|
1013
|
+
__wbg_info_386f00b314475db5: function(arg0, arg1) {
|
|
796
1014
|
console.info(getStringFromWasm0(arg0, arg1));
|
|
797
1015
|
},
|
|
798
1016
|
__wbg_instanceof_ArrayBuffer_12cdaa4161423e6b: function(arg0) {
|
|
@@ -805,10 +1023,36 @@ function __wbg_get_imports() {
|
|
|
805
1023
|
const ret = result;
|
|
806
1024
|
return ret;
|
|
807
1025
|
},
|
|
1026
|
+
__wbg_instanceof_Uint8Array_d7aeb0dcb3108fea: function(arg0) {
|
|
1027
|
+
let result;
|
|
1028
|
+
try {
|
|
1029
|
+
result = arg0 instanceof Uint8Array;
|
|
1030
|
+
} catch (_) {
|
|
1031
|
+
result = false;
|
|
1032
|
+
}
|
|
1033
|
+
const ret = result;
|
|
1034
|
+
return ret;
|
|
1035
|
+
},
|
|
1036
|
+
__wbg_isArray_bcf1376d0d732d08: function(arg0) {
|
|
1037
|
+
const ret = Array.isArray(arg0);
|
|
1038
|
+
return ret;
|
|
1039
|
+
},
|
|
1040
|
+
__wbg_isSafeInteger_1a35ba4d31e71d38: function(arg0) {
|
|
1041
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1042
|
+
return ret;
|
|
1043
|
+
},
|
|
1044
|
+
__wbg_iterator_e4c5e8f68ada7b58: function() {
|
|
1045
|
+
const ret = Symbol.iterator;
|
|
1046
|
+
return ret;
|
|
1047
|
+
},
|
|
808
1048
|
__wbg_length_186163212ffe79c3: function(arg0) {
|
|
809
1049
|
const ret = arg0.length;
|
|
810
1050
|
return ret;
|
|
811
1051
|
},
|
|
1052
|
+
__wbg_length_b03a0fabb109b1e9: function(arg0) {
|
|
1053
|
+
const ret = arg0.length;
|
|
1054
|
+
return ret;
|
|
1055
|
+
},
|
|
812
1056
|
__wbg_new_13de428334042d26: function(arg0) {
|
|
813
1057
|
const ret = new Uint8Array(arg0);
|
|
814
1058
|
return ret;
|
|
@@ -825,6 +1069,14 @@ function __wbg_get_imports() {
|
|
|
825
1069
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
826
1070
|
return ret;
|
|
827
1071
|
}, arguments); },
|
|
1072
|
+
__wbg_next_178c1651c11432b3: function(arg0) {
|
|
1073
|
+
const ret = arg0.next;
|
|
1074
|
+
return ret;
|
|
1075
|
+
},
|
|
1076
|
+
__wbg_next_af5ac6a08bb0a717: function() { return handleError(function (arg0) {
|
|
1077
|
+
const ret = arg0.next();
|
|
1078
|
+
return ret;
|
|
1079
|
+
}, arguments); },
|
|
828
1080
|
__wbg_prototypesetcall_13162965d1fe7aa3: function(arg0, arg1, arg2) {
|
|
829
1081
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
830
1082
|
},
|
|
@@ -839,7 +1091,7 @@ function __wbg_get_imports() {
|
|
|
839
1091
|
__wbg_send_d83d0891cf698779: function() { return handleError(function (arg0, arg1, arg2) {
|
|
840
1092
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
841
1093
|
}, arguments); },
|
|
842
|
-
|
|
1094
|
+
__wbg_setInterval_ef738bbfe8cc0974: function() { return handleError(function (arg0, arg1) {
|
|
843
1095
|
const ret = setInterval(arg0, arg1);
|
|
844
1096
|
return ret;
|
|
845
1097
|
}, arguments); },
|
|
@@ -864,27 +1116,31 @@ function __wbg_get_imports() {
|
|
|
864
1116
|
__wbg_set_onopen_757be120cc7b1ea6: function(arg0, arg1) {
|
|
865
1117
|
arg0.onopen = arg1;
|
|
866
1118
|
},
|
|
867
|
-
|
|
1119
|
+
__wbg_value_e0f328965e184931: function(arg0) {
|
|
1120
|
+
const ret = arg0.value;
|
|
1121
|
+
return ret;
|
|
1122
|
+
},
|
|
1123
|
+
__wbg_warn_4f0851b2fd19b28b: function(arg0, arg1) {
|
|
868
1124
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
869
1125
|
},
|
|
870
1126
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
871
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
872
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1127
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1128
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96);
|
|
873
1129
|
return ret;
|
|
874
1130
|
},
|
|
875
1131
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
876
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
877
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1132
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1133
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_47);
|
|
878
1134
|
return ret;
|
|
879
1135
|
},
|
|
880
1136
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
881
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
882
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1137
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1138
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_96_48);
|
|
883
1139
|
return ret;
|
|
884
1140
|
},
|
|
885
1141
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
886
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
887
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1142
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1143
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_100);
|
|
888
1144
|
return ret;
|
|
889
1145
|
},
|
|
890
1146
|
__wbindgen_generic_0000000000000005: function(arg0) {
|
|
@@ -922,20 +1178,20 @@ function __wbg_get_imports() {
|
|
|
922
1178
|
};
|
|
923
1179
|
}
|
|
924
1180
|
|
|
925
|
-
function
|
|
926
|
-
wasm.
|
|
1181
|
+
function __wasm_bindgen_func_elem_100(arg0, arg1) {
|
|
1182
|
+
wasm.__wasm_bindgen_func_elem_100(arg0, arg1);
|
|
927
1183
|
}
|
|
928
1184
|
|
|
929
|
-
function
|
|
930
|
-
wasm.
|
|
1185
|
+
function __wasm_bindgen_func_elem_96(arg0, arg1, arg2) {
|
|
1186
|
+
wasm.__wasm_bindgen_func_elem_96(arg0, arg1, arg2);
|
|
931
1187
|
}
|
|
932
1188
|
|
|
933
|
-
function
|
|
934
|
-
wasm.
|
|
1189
|
+
function __wasm_bindgen_func_elem_96_47(arg0, arg1, arg2) {
|
|
1190
|
+
wasm.__wasm_bindgen_func_elem_96_47(arg0, arg1, arg2);
|
|
935
1191
|
}
|
|
936
1192
|
|
|
937
|
-
function
|
|
938
|
-
wasm.
|
|
1193
|
+
function __wasm_bindgen_func_elem_96_48(arg0, arg1, arg2) {
|
|
1194
|
+
wasm.__wasm_bindgen_func_elem_96_48(arg0, arg1, arg2);
|
|
939
1195
|
}
|
|
940
1196
|
|
|
941
1197
|
|
|
Binary file
|