openrtc 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/{core/types.d.ts → DelegatingRuntimeAdapter-CW8d78dZ.d.ts} +275 -95
- package/dist/IpcRuntimeAdapter-CT-W0Mtp.d.ts +24 -0
- package/dist/auth/index.d.ts +75 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/internal.d.ts +3 -1
- package/dist/auth/internal.js +1 -1
- package/dist/chunk-4MH42GUI.js +2 -0
- package/dist/chunk-CQAKCS2S.js +4 -0
- package/dist/chunk-D54VGRRH.js +1 -0
- package/dist/chunk-DIQYFAGL.js +2 -0
- package/dist/chunk-PZ25OCVG.js +2 -0
- package/dist/chunk-UVASANPG.js +1 -0
- package/dist/factories-0TxDPMeu.d.ts +1041 -0
- package/dist/index.d.ts +160 -3
- package/dist/index.js +1 -3
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +5 -3
- package/dist/runtime/WasmRuntimeAdapter.js +1 -11
- package/dist/runtime/index.d.ts +796 -6
- package/dist/runtime/index.js +1 -5
- package/dist/runtime/tauri.d.ts +12 -8
- package/dist/runtime/tauri.js +1 -22
- package/package.json +11 -7
- package/wasm/openrtc.d.ts +61 -25
- package/wasm/openrtc.js +417 -259
- package/wasm/openrtc_bg.wasm +0 -0
- package/wasm/openrtc_bg.wasm.d.ts +27 -24
- package/wasm/package.json +1 -1
- package/dist/OpenRTC.d.ts +0 -71
- package/dist/OpenRTC.js +0 -130
- package/dist/api/MediaTransport.d.ts +0 -7
- package/dist/api/MediaTransport.js +0 -262
- package/dist/api/PlutoPeerConnection.d.ts +0 -50
- package/dist/api/PlutoPeerConnection.js +0 -434
- package/dist/api/PlutoWebSocket.d.ts +0 -24
- package/dist/api/PlutoWebSocket.js +0 -113
- package/dist/api/PlutoWebTransport.d.ts +0 -29
- package/dist/api/PlutoWebTransport.js +0 -105
- package/dist/auth/host.d.ts +0 -73
- package/dist/auth/host.js +0 -513
- package/dist/compat/index.d.ts +0 -20
- package/dist/compat/index.js +0 -20
- package/dist/core/Client.d.ts +0 -352
- package/dist/core/Client.js +0 -3689
- package/dist/core/Connection.d.ts +0 -67
- package/dist/core/Connection.js +0 -404
- package/dist/core/IEngineBridge.d.ts +0 -18
- package/dist/core/IEngineBridge.js +0 -1
- package/dist/core/ISignalingTransport.d.ts +0 -13
- package/dist/core/ISignalingTransport.js +0 -1
- package/dist/core/PeerLifecycleManager.d.ts +0 -43
- package/dist/core/PeerLifecycleManager.js +0 -330
- package/dist/core/PeerProjectionStore.d.ts +0 -43
- package/dist/core/PeerProjectionStore.js +0 -327
- package/dist/core/PlutoRTC.d.ts +0 -13
- package/dist/core/PlutoRTC.js +0 -26
- package/dist/core/Room.d.ts +0 -47
- package/dist/core/Room.js +0 -376
- package/dist/core/Signaling.d.ts +0 -39
- package/dist/core/Signaling.js +0 -147
- package/dist/core/bridges/BridgeCodecs.d.ts +0 -19
- package/dist/core/bridges/BridgeCodecs.js +0 -317
- package/dist/core/bridges/BrowserFirestoreRooms.d.ts +0 -36
- package/dist/core/bridges/BrowserFirestoreRooms.js +0 -169
- package/dist/core/bridges/BrowserFirestoreSignaling.d.ts +0 -111
- package/dist/core/bridges/BrowserFirestoreSignaling.js +0 -1010
- package/dist/core/bridges/NativeIpcBridge.d.ts +0 -156
- package/dist/core/bridges/NativeIpcBridge.js +0 -1472
- package/dist/core/bridges/RtdbPresence.d.ts +0 -122
- package/dist/core/bridges/RtdbPresence.js +0 -201
- package/dist/core/bridges/TauriBridge.d.ts +0 -8
- package/dist/core/bridges/TauriBridge.js +0 -7
- package/dist/core/bridges/WasmBridge.d.ts +0 -233
- package/dist/core/bridges/WasmBridge.js +0 -1811
- package/dist/core/config.d.ts +0 -31
- package/dist/core/config.js +0 -138
- package/dist/core/transports/ITransport.d.ts +0 -12
- package/dist/core/transports/ITransport.js +0 -1
- package/dist/core/transports/LocalDaemonBridge.d.ts +0 -41
- package/dist/core/transports/LocalDaemonBridge.js +0 -227
- package/dist/core/transports/TauriSignaling.d.ts +0 -28
- package/dist/core/transports/TauriSignaling.js +0 -373
- package/dist/core/transports/TransportFactory.d.ts +0 -9
- package/dist/core/transports/TransportFactory.js +0 -59
- package/dist/core/transports/WasmSignaling.d.ts +0 -78
- package/dist/core/transports/WasmSignaling.js +0 -522
- package/dist/core/transports/WebRTCTransport.d.ts +0 -23
- package/dist/core/transports/WebRTCTransport.js +0 -132
- package/dist/core/trust.d.ts +0 -23
- package/dist/core/trust.js +0 -99
- package/dist/core/types.js +0 -19
- package/dist/moq/MoQMediaTransport.d.ts +0 -6
- package/dist/moq/MoQMediaTransport.js +0 -106
- package/dist/moq/MoQPublisher.d.ts +0 -22
- package/dist/moq/MoQPublisher.js +0 -179
- package/dist/moq/MoQSession.d.ts +0 -35
- package/dist/moq/MoQSession.js +0 -166
- package/dist/moq/MoQSubscriber.d.ts +0 -19
- package/dist/moq/MoQSubscriber.js +0 -235
- package/dist/moq/common.d.ts +0 -47
- package/dist/moq/common.js +0 -304
- package/dist/moq/messages.d.ts +0 -105
- package/dist/moq/messages.js +0 -367
- package/dist/presets/plutoHosted.d.ts +0 -13
- package/dist/presets/plutoHosted.js +0 -18
- package/dist/runtime/DelegatingRuntimeAdapter.d.ts +0 -68
- package/dist/runtime/DelegatingRuntimeAdapter.js +0 -250
- package/dist/runtime/IpcRuntimeAdapter.d.ts +0 -9
- package/dist/runtime/IpcRuntimeAdapter.js +0 -13
- package/dist/runtime/RuntimeClient.d.ts +0 -257
- package/dist/runtime/RuntimeClient.js +0 -1484
- package/dist/runtime/TauriRuntimeAdapter.d.ts +0 -1
- package/dist/runtime/TauriRuntimeAdapter.js +0 -1
- package/dist/runtime/factories.d.ts +0 -24
- package/dist/runtime/factories.js +0 -66
- package/dist/runtime/ipc.d.ts +0 -8
- package/dist/runtime/ipc.js +0 -65
- package/dist/runtime/ipcContract.d.ts +0 -46
- package/dist/runtime/ipcContract.js +0 -1
- package/dist/runtime/types.d.ts +0 -110
- package/dist/runtime/types.js +0 -1
- package/dist/transports/TauriTransport.d.ts +0 -17
- package/dist/transports/TauriTransport.js +0 -49
- package/dist/transports/WebTransport.d.ts +0 -23
- package/dist/transports/WebTransport.js +0 -71
- package/dist/utils/debug.d.ts +0 -4
- package/dist/utils/debug.js +0 -33
- package/dist/utils/runtime.d.ts +0 -1
- package/dist/utils/runtime.js +0 -10
package/wasm/openrtc.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
export class BiStream {
|
|
4
4
|
static __wrap(ptr) {
|
|
5
|
-
ptr = ptr >>> 0;
|
|
6
5
|
const obj = Object.create(BiStream.prototype);
|
|
7
6
|
obj.__wbg_ptr = ptr;
|
|
8
7
|
BiStreamFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -51,13 +50,6 @@ export class BiStream {
|
|
|
51
50
|
if (Symbol.dispose) BiStream.prototype[Symbol.dispose] = BiStream.prototype.free;
|
|
52
51
|
|
|
53
52
|
export class IntoUnderlyingByteSource {
|
|
54
|
-
static __wrap(ptr) {
|
|
55
|
-
ptr = ptr >>> 0;
|
|
56
|
-
const obj = Object.create(IntoUnderlyingByteSource.prototype);
|
|
57
|
-
obj.__wbg_ptr = ptr;
|
|
58
|
-
IntoUnderlyingByteSourceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
59
|
-
return obj;
|
|
60
|
-
}
|
|
61
53
|
__destroy_into_raw() {
|
|
62
54
|
const ptr = this.__wbg_ptr;
|
|
63
55
|
this.__wbg_ptr = 0;
|
|
@@ -105,7 +97,6 @@ if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnd
|
|
|
105
97
|
|
|
106
98
|
export class IntoUnderlyingSink {
|
|
107
99
|
static __wrap(ptr) {
|
|
108
|
-
ptr = ptr >>> 0;
|
|
109
100
|
const obj = Object.create(IntoUnderlyingSink.prototype);
|
|
110
101
|
obj.__wbg_ptr = ptr;
|
|
111
102
|
IntoUnderlyingSinkFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -151,7 +142,6 @@ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyin
|
|
|
151
142
|
|
|
152
143
|
export class IntoUnderlyingSource {
|
|
153
144
|
static __wrap(ptr) {
|
|
154
|
-
ptr = ptr >>> 0;
|
|
155
145
|
const obj = Object.create(IntoUnderlyingSource.prototype);
|
|
156
146
|
obj.__wbg_ptr = ptr;
|
|
157
147
|
IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -184,7 +174,6 @@ if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderly
|
|
|
184
174
|
|
|
185
175
|
export class WasmClient {
|
|
186
176
|
static __wrap(ptr) {
|
|
187
|
-
ptr = ptr >>> 0;
|
|
188
177
|
const obj = Object.create(WasmClient.prototype);
|
|
189
178
|
obj.__wbg_ptr = ptr;
|
|
190
179
|
WasmClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -213,6 +202,19 @@ export class WasmClient {
|
|
|
213
202
|
const ret = wasm.wasmclient_add_peer_scope(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
214
203
|
return ret;
|
|
215
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* @param {string} connection_id
|
|
207
|
+
* @param {string} device_id
|
|
208
|
+
* @returns {Promise<any>}
|
|
209
|
+
*/
|
|
210
|
+
bind_connection_device_id(connection_id, device_id) {
|
|
211
|
+
const ptr0 = passStringToWasm0(connection_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
212
|
+
const len0 = WASM_VECTOR_LEN;
|
|
213
|
+
const ptr1 = passStringToWasm0(device_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
214
|
+
const len1 = WASM_VECTOR_LEN;
|
|
215
|
+
const ret = wasm.wasmclient_bind_connection_device_id(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
216
|
+
return ret;
|
|
217
|
+
}
|
|
216
218
|
/**
|
|
217
219
|
* Clear all short-lived session tokens and admission state.
|
|
218
220
|
*/
|
|
@@ -279,7 +281,7 @@ export class WasmClient {
|
|
|
279
281
|
const len3 = WASM_VECTOR_LEN;
|
|
280
282
|
const ptr4 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
283
|
const len4 = WASM_VECTOR_LEN;
|
|
282
|
-
const ret = wasm.wasmclient_create_room(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(max_members) ?
|
|
284
|
+
const ret = wasm.wasmclient_create_room(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(max_members) ? Number.MAX_SAFE_INTEGER : (max_members) >>> 0);
|
|
283
285
|
return ret;
|
|
284
286
|
}
|
|
285
287
|
/**
|
|
@@ -325,6 +327,19 @@ export class WasmClient {
|
|
|
325
327
|
const ret = wasm.wasmclient_disconnect(this.__wbg_ptr, ptr0, len0);
|
|
326
328
|
return ret;
|
|
327
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* @param {string} device_id
|
|
332
|
+
* @param {string | null} [node_id_hint]
|
|
333
|
+
* @returns {Promise<any>}
|
|
334
|
+
*/
|
|
335
|
+
disconnect_device(device_id, node_id_hint) {
|
|
336
|
+
const ptr0 = passStringToWasm0(device_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
337
|
+
const len0 = WASM_VECTOR_LEN;
|
|
338
|
+
var ptr1 = isLikeNone(node_id_hint) ? 0 : passStringToWasm0(node_id_hint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
339
|
+
var len1 = WASM_VECTOR_LEN;
|
|
340
|
+
const ret = wasm.wasmclient_disconnect_device(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
341
|
+
return ret;
|
|
342
|
+
}
|
|
328
343
|
/**
|
|
329
344
|
* @param {string} ticket
|
|
330
345
|
* @returns {string}
|
|
@@ -422,6 +437,19 @@ export class WasmClient {
|
|
|
422
437
|
const ret = wasm.wasmclient_init_iroh(this.__wbg_ptr, ptr0, len0);
|
|
423
438
|
return ret;
|
|
424
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* Returns the current iroh path kind for a connected peer.
|
|
442
|
+
*
|
|
443
|
+
* Returns one of `"direct-quic"`, `"relay"`, or `"unknown"`.
|
|
444
|
+
* @param {string} peer_id
|
|
445
|
+
* @returns {Promise<string>}
|
|
446
|
+
*/
|
|
447
|
+
iroh_path_kind(peer_id) {
|
|
448
|
+
const ptr0 = passStringToWasm0(peer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
449
|
+
const len0 = WASM_VECTOR_LEN;
|
|
450
|
+
const ret = wasm.wasmclient_iroh_path_kind(this.__wbg_ptr, ptr0, len0);
|
|
451
|
+
return ret;
|
|
452
|
+
}
|
|
425
453
|
/**
|
|
426
454
|
* @returns {Promise<Uint8Array>}
|
|
427
455
|
*/
|
|
@@ -429,6 +457,16 @@ export class WasmClient {
|
|
|
429
457
|
const ret = wasm.wasmclient_iroh_secret_key(this.__wbg_ptr);
|
|
430
458
|
return ret;
|
|
431
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* @param {string} device_id
|
|
462
|
+
* @returns {boolean}
|
|
463
|
+
*/
|
|
464
|
+
is_auto_connect_excluded(device_id) {
|
|
465
|
+
const ptr0 = passStringToWasm0(device_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
466
|
+
const len0 = WASM_VECTOR_LEN;
|
|
467
|
+
const ret = wasm.wasmclient_is_auto_connect_excluded(this.__wbg_ptr, ptr0, len0);
|
|
468
|
+
return ret !== 0;
|
|
469
|
+
}
|
|
432
470
|
/**
|
|
433
471
|
* @param {string} endpoint_id
|
|
434
472
|
* @returns {Promise<boolean>}
|
|
@@ -497,7 +535,7 @@ export class WasmClient {
|
|
|
497
535
|
if (ret[2]) {
|
|
498
536
|
throw takeFromExternrefTable0(ret[1]);
|
|
499
537
|
}
|
|
500
|
-
this.__wbg_ptr = ret[0]
|
|
538
|
+
this.__wbg_ptr = ret[0];
|
|
501
539
|
WasmClientFinalization.register(this, this.__wbg_ptr, this);
|
|
502
540
|
return this;
|
|
503
541
|
}
|
|
@@ -542,7 +580,21 @@ export class WasmClient {
|
|
|
542
580
|
open_peer_bi(id, timeout_ms) {
|
|
543
581
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
544
582
|
const len0 = WASM_VECTOR_LEN;
|
|
545
|
-
const ret = wasm.wasmclient_open_peer_bi(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ?
|
|
583
|
+
const ret = wasm.wasmclient_open_peer_bi(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
|
|
584
|
+
return ret;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Open a bi-stream to a peer that is transport-connected but may not yet
|
|
588
|
+
* be settled (auth-ready). Use for latency probes and other transport-level
|
|
589
|
+
* diagnostics where `settled_ready` is not required.
|
|
590
|
+
* @param {string} id
|
|
591
|
+
* @param {number | null} [timeout_ms]
|
|
592
|
+
* @returns {Promise<BiStream>}
|
|
593
|
+
*/
|
|
594
|
+
open_peer_bi_transport_only(id, timeout_ms) {
|
|
595
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
596
|
+
const len0 = WASM_VECTOR_LEN;
|
|
597
|
+
const ret = wasm.wasmclient_open_peer_bi_transport_only(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
|
|
546
598
|
return ret;
|
|
547
599
|
}
|
|
548
600
|
/**
|
|
@@ -553,7 +605,7 @@ export class WasmClient {
|
|
|
553
605
|
open_peer_uni(id, timeout_ms) {
|
|
554
606
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
555
607
|
const len0 = WASM_VECTOR_LEN;
|
|
556
|
-
const ret = wasm.wasmclient_open_peer_uni(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ?
|
|
608
|
+
const ret = wasm.wasmclient_open_peer_uni(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
|
|
557
609
|
return ret;
|
|
558
610
|
}
|
|
559
611
|
/**
|
|
@@ -614,6 +666,11 @@ export class WasmClient {
|
|
|
614
666
|
* Present a session token to the remote host over the SDK-owned
|
|
615
667
|
* native main stream before application traffic starts.
|
|
616
668
|
* Returns the approved scope string once the host acknowledges admission.
|
|
669
|
+
*
|
|
670
|
+
* Also registers the connection in the Rust connection_manager and
|
|
671
|
+
* spawns a close-watcher task so that `connection-state-changed` is
|
|
672
|
+
* emitted when the peer drops the connection (the share-client
|
|
673
|
+
* transport-only path bypasses `start_wasm_connect_event_bridge`).
|
|
617
674
|
* @param {string} endpoint_id
|
|
618
675
|
* @param {string} token
|
|
619
676
|
* @returns {Promise<string>}
|
|
@@ -666,6 +723,22 @@ export class WasmClient {
|
|
|
666
723
|
const ret = wasm.wasmclient_report_managed_connection_settled(this.__wbg_ptr, ptr0, len0, settled, ptr1, len1);
|
|
667
724
|
return ret;
|
|
668
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* @param {string} connection_id
|
|
728
|
+
* @param {string} active_transport
|
|
729
|
+
* @param {string | null} [parallel_transport]
|
|
730
|
+
* @returns {Promise<any>}
|
|
731
|
+
*/
|
|
732
|
+
report_transport_status(connection_id, active_transport, parallel_transport) {
|
|
733
|
+
const ptr0 = passStringToWasm0(connection_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
734
|
+
const len0 = WASM_VECTOR_LEN;
|
|
735
|
+
const ptr1 = passStringToWasm0(active_transport, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
736
|
+
const len1 = WASM_VECTOR_LEN;
|
|
737
|
+
var ptr2 = isLikeNone(parallel_transport) ? 0 : passStringToWasm0(parallel_transport, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
738
|
+
var len2 = WASM_VECTOR_LEN;
|
|
739
|
+
const ret = wasm.wasmclient_report_transport_status(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
740
|
+
return ret;
|
|
741
|
+
}
|
|
669
742
|
/**
|
|
670
743
|
* @param {string} id
|
|
671
744
|
* @returns {Promise<any>}
|
|
@@ -696,6 +769,16 @@ export class WasmClient {
|
|
|
696
769
|
const ret = wasm.wasmclient_revoke_tokens_by_scope(this.__wbg_ptr, ptr0, len0);
|
|
697
770
|
return ret;
|
|
698
771
|
}
|
|
772
|
+
/**
|
|
773
|
+
* @returns {any}
|
|
774
|
+
*/
|
|
775
|
+
runtime_policy() {
|
|
776
|
+
const ret = wasm.wasmclient_runtime_policy(this.__wbg_ptr);
|
|
777
|
+
if (ret[2]) {
|
|
778
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
779
|
+
}
|
|
780
|
+
return takeFromExternrefTable0(ret[0]);
|
|
781
|
+
}
|
|
699
782
|
/**
|
|
700
783
|
* @param {string} left
|
|
701
784
|
* @param {string} right
|
|
@@ -738,6 +821,26 @@ export class WasmClient {
|
|
|
738
821
|
const ret = wasm.wasmclient_send_message(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
739
822
|
return ret;
|
|
740
823
|
}
|
|
824
|
+
/**
|
|
825
|
+
* Send `data` to `peer_id` using the best available transport.
|
|
826
|
+
*
|
|
827
|
+
* Priority: WebRTC (if Connected) → MoQ (if Connected) → iroh-QUIC → iroh-relay.
|
|
828
|
+
*
|
|
829
|
+
* On WASM this always routes through iroh (relay or QUIC as iroh determines).
|
|
830
|
+
* Use the TypeScript `Connection.sendTyped()` for full transport priority on the
|
|
831
|
+
* browser side — this binding is primarily for symmetry and native callers.
|
|
832
|
+
* @param {string} id
|
|
833
|
+
* @param {Uint8Array} data
|
|
834
|
+
* @returns {Promise<void>}
|
|
835
|
+
*/
|
|
836
|
+
send_peer(id, data) {
|
|
837
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
838
|
+
const len0 = WASM_VECTOR_LEN;
|
|
839
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
840
|
+
const len1 = WASM_VECTOR_LEN;
|
|
841
|
+
const ret = wasm.wasmclient_send_peer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
842
|
+
return ret;
|
|
843
|
+
}
|
|
741
844
|
/**
|
|
742
845
|
* @param {string | null} [token]
|
|
743
846
|
*/
|
|
@@ -749,11 +852,13 @@ export class WasmClient {
|
|
|
749
852
|
/**
|
|
750
853
|
* @param {string} device_id
|
|
751
854
|
* @param {boolean} excluded
|
|
855
|
+
* @returns {Promise<void>}
|
|
752
856
|
*/
|
|
753
857
|
set_auto_connect_excluded(device_id, excluded) {
|
|
754
858
|
const ptr0 = passStringToWasm0(device_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
755
859
|
const len0 = WASM_VECTOR_LEN;
|
|
756
|
-
wasm.wasmclient_set_auto_connect_excluded(this.__wbg_ptr, ptr0, len0, excluded);
|
|
860
|
+
const ret = wasm.wasmclient_set_auto_connect_excluded(this.__wbg_ptr, ptr0, len0, excluded);
|
|
861
|
+
return ret;
|
|
757
862
|
}
|
|
758
863
|
/**
|
|
759
864
|
* @param {string} user_id
|
|
@@ -765,6 +870,17 @@ export class WasmClient {
|
|
|
765
870
|
const ret = wasm.wasmclient_set_offline(this.__wbg_ptr, ptr0, len0);
|
|
766
871
|
return ret;
|
|
767
872
|
}
|
|
873
|
+
/**
|
|
874
|
+
* @param {string} user_id
|
|
875
|
+
* @param {string} local_device_id
|
|
876
|
+
*/
|
|
877
|
+
start_auto_connect(user_id, local_device_id) {
|
|
878
|
+
const ptr0 = passStringToWasm0(user_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
879
|
+
const len0 = WASM_VECTOR_LEN;
|
|
880
|
+
const ptr1 = passStringToWasm0(local_device_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
881
|
+
const len1 = WASM_VECTOR_LEN;
|
|
882
|
+
wasm.wasmclient_start_auto_connect(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
883
|
+
}
|
|
768
884
|
/**
|
|
769
885
|
* @param {string} user_id
|
|
770
886
|
* @param {string} device_name
|
|
@@ -893,7 +1009,7 @@ export class WasmClient {
|
|
|
893
1009
|
wait_for_settled_peer(id, timeout_ms) {
|
|
894
1010
|
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
895
1011
|
const len0 = WASM_VECTOR_LEN;
|
|
896
|
-
const ret = wasm.wasmclient_wait_for_settled_peer(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ?
|
|
1012
|
+
const ret = wasm.wasmclient_wait_for_settled_peer(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
|
|
897
1013
|
return ret;
|
|
898
1014
|
}
|
|
899
1015
|
}
|
|
@@ -925,7 +1041,7 @@ export class WasmConnection {
|
|
|
925
1041
|
if (ret[2]) {
|
|
926
1042
|
throw takeFromExternrefTable0(ret[1]);
|
|
927
1043
|
}
|
|
928
|
-
this.__wbg_ptr = ret[0]
|
|
1044
|
+
this.__wbg_ptr = ret[0];
|
|
929
1045
|
WasmConnectionFinalization.register(this, this.__wbg_ptr, this);
|
|
930
1046
|
return this;
|
|
931
1047
|
}
|
|
@@ -935,11 +1051,10 @@ if (Symbol.dispose) WasmConnection.prototype[Symbol.dispose] = WasmConnection.pr
|
|
|
935
1051
|
export function start() {
|
|
936
1052
|
wasm.start();
|
|
937
1053
|
}
|
|
938
|
-
|
|
939
1054
|
function __wbg_get_imports() {
|
|
940
1055
|
const import0 = {
|
|
941
1056
|
__proto__: null,
|
|
942
|
-
|
|
1057
|
+
__wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
|
|
943
1058
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
944
1059
|
return ret;
|
|
945
1060
|
},
|
|
@@ -950,54 +1065,58 @@ function __wbg_get_imports() {
|
|
|
950
1065
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
951
1066
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
952
1067
|
},
|
|
953
|
-
|
|
1068
|
+
__wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) {
|
|
954
1069
|
const v = arg0;
|
|
955
1070
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
956
1071
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
957
1072
|
},
|
|
958
|
-
|
|
1073
|
+
__wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
|
|
959
1074
|
const ret = debugString(arg1);
|
|
960
1075
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
961
1076
|
const len1 = WASM_VECTOR_LEN;
|
|
962
1077
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
963
1078
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
964
1079
|
},
|
|
965
|
-
|
|
1080
|
+
__wbg___wbindgen_in_2617fa76397620d3: function(arg0, arg1) {
|
|
966
1081
|
const ret = arg0 in arg1;
|
|
967
1082
|
return ret;
|
|
968
1083
|
},
|
|
969
|
-
|
|
1084
|
+
__wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
|
|
970
1085
|
const ret = typeof(arg0) === 'function';
|
|
971
1086
|
return ret;
|
|
972
1087
|
},
|
|
973
|
-
|
|
1088
|
+
__wbg___wbindgen_is_null_066086be3abe9bb3: function(arg0) {
|
|
974
1089
|
const ret = arg0 === null;
|
|
975
1090
|
return ret;
|
|
976
1091
|
},
|
|
977
|
-
|
|
1092
|
+
__wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
|
|
978
1093
|
const val = arg0;
|
|
979
1094
|
const ret = typeof(val) === 'object' && val !== null;
|
|
980
1095
|
return ret;
|
|
981
1096
|
},
|
|
982
|
-
|
|
1097
|
+
__wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
|
|
983
1098
|
const ret = typeof(arg0) === 'string';
|
|
984
1099
|
return ret;
|
|
985
1100
|
},
|
|
986
|
-
|
|
1101
|
+
__wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
|
|
987
1102
|
const ret = arg0 === undefined;
|
|
988
1103
|
return ret;
|
|
989
1104
|
},
|
|
990
|
-
|
|
1105
|
+
__wbg___wbindgen_jsval_eq_403eaa3610500a25: function(arg0, arg1) {
|
|
1106
|
+
const ret = arg0 === arg1;
|
|
1107
|
+
return ret;
|
|
1108
|
+
},
|
|
1109
|
+
__wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62: function(arg0, arg1) {
|
|
991
1110
|
const ret = arg0 == arg1;
|
|
992
1111
|
return ret;
|
|
993
1112
|
},
|
|
994
|
-
|
|
1113
|
+
__wbg___wbindgen_number_get_dd6d69a6079f26f1: function(arg0, arg1) {
|
|
995
1114
|
const obj = arg1;
|
|
996
1115
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
997
1116
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
998
1117
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
999
1118
|
},
|
|
1000
|
-
|
|
1119
|
+
__wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
|
|
1001
1120
|
const obj = arg1;
|
|
1002
1121
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1003
1122
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1005,25 +1124,25 @@ function __wbg_get_imports() {
|
|
|
1005
1124
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1006
1125
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1007
1126
|
},
|
|
1008
|
-
|
|
1127
|
+
__wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
|
|
1009
1128
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1010
1129
|
},
|
|
1011
|
-
|
|
1130
|
+
__wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) {
|
|
1012
1131
|
arg0._wbg_cb_unref();
|
|
1013
1132
|
},
|
|
1014
|
-
|
|
1015
|
-
arg0.abort();
|
|
1016
|
-
},
|
|
1017
|
-
__wbg_abort_e104a8a255db427b: function(arg0, arg1) {
|
|
1133
|
+
__wbg_abort_43913e33ecb83d0d: function(arg0, arg1) {
|
|
1018
1134
|
arg0.abort(arg1);
|
|
1019
1135
|
},
|
|
1020
|
-
|
|
1136
|
+
__wbg_abort_87eb7f23cf4b73d1: function(arg0) {
|
|
1137
|
+
arg0.abort();
|
|
1138
|
+
},
|
|
1139
|
+
__wbg_addEventListener_8b7ec0528991cf78: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1021
1140
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1022
1141
|
}, arguments); },
|
|
1023
|
-
|
|
1142
|
+
__wbg_append_8df396311184f750: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1024
1143
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1025
1144
|
}, arguments); },
|
|
1026
|
-
|
|
1145
|
+
__wbg_arrayBuffer_87e3ac06d961f7a0: function() { return handleError(function (arg0) {
|
|
1027
1146
|
const ret = arg0.arrayBuffer();
|
|
1028
1147
|
return ret;
|
|
1029
1148
|
}, arguments); },
|
|
@@ -1031,39 +1150,39 @@ function __wbg_get_imports() {
|
|
|
1031
1150
|
const ret = BiStream.__wrap(arg0);
|
|
1032
1151
|
return ret;
|
|
1033
1152
|
},
|
|
1034
|
-
|
|
1153
|
+
__wbg_body_6929614c20dfa7b0: function(arg0) {
|
|
1035
1154
|
const ret = arg0.body;
|
|
1036
1155
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1037
1156
|
},
|
|
1038
|
-
|
|
1157
|
+
__wbg_buffer_9ee17426fe5a5d65: function(arg0) {
|
|
1039
1158
|
const ret = arg0.buffer;
|
|
1040
1159
|
return ret;
|
|
1041
1160
|
},
|
|
1042
|
-
|
|
1161
|
+
__wbg_byobRequest_178b64c09a0bee03: function(arg0) {
|
|
1043
1162
|
const ret = arg0.byobRequest;
|
|
1044
1163
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1045
1164
|
},
|
|
1046
|
-
|
|
1165
|
+
__wbg_byteLength_1f57c71e64ee0180: function(arg0) {
|
|
1047
1166
|
const ret = arg0.byteLength;
|
|
1048
1167
|
return ret;
|
|
1049
1168
|
},
|
|
1050
|
-
|
|
1169
|
+
__wbg_byteOffset_648d0af273024f3d: function(arg0) {
|
|
1051
1170
|
const ret = arg0.byteOffset;
|
|
1052
1171
|
return ret;
|
|
1053
1172
|
},
|
|
1054
|
-
|
|
1173
|
+
__wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1055
1174
|
const ret = arg0.call(arg1, arg2);
|
|
1056
1175
|
return ret;
|
|
1057
1176
|
}, arguments); },
|
|
1058
|
-
|
|
1177
|
+
__wbg_call_add9e5a76382e668: function() { return handleError(function (arg0, arg1) {
|
|
1059
1178
|
const ret = arg0.call(arg1);
|
|
1060
1179
|
return ret;
|
|
1061
1180
|
}, arguments); },
|
|
1062
|
-
|
|
1181
|
+
__wbg_cancel_f97a3ee5a8b30eef: function(arg0) {
|
|
1063
1182
|
const ret = arg0.cancel();
|
|
1064
1183
|
return ret;
|
|
1065
1184
|
},
|
|
1066
|
-
|
|
1185
|
+
__wbg_catch_f939343cb181958c: function(arg0, arg1) {
|
|
1067
1186
|
const ret = arg0.catch(arg1);
|
|
1068
1187
|
return ret;
|
|
1069
1188
|
},
|
|
@@ -1071,6 +1190,10 @@ function __wbg_get_imports() {
|
|
|
1071
1190
|
const ret = clearTimeout(arg0);
|
|
1072
1191
|
return ret;
|
|
1073
1192
|
},
|
|
1193
|
+
__wbg_clearTimeout_1ccca1faf41fc6f8: function(arg0) {
|
|
1194
|
+
const ret = clearTimeout(arg0);
|
|
1195
|
+
return ret;
|
|
1196
|
+
},
|
|
1074
1197
|
__wbg_clearTimeout_47a40e3be01ed7a3: function() { return handleError(function (arg0, arg1) {
|
|
1075
1198
|
arg0.clearTimeout(arg1);
|
|
1076
1199
|
}, arguments); },
|
|
@@ -1078,24 +1201,24 @@ function __wbg_get_imports() {
|
|
|
1078
1201
|
const ret = clearTimeout(arg0);
|
|
1079
1202
|
return ret;
|
|
1080
1203
|
},
|
|
1081
|
-
|
|
1204
|
+
__wbg_close_63e009c5a75f5597: function() { return handleError(function (arg0) {
|
|
1082
1205
|
arg0.close();
|
|
1083
1206
|
}, arguments); },
|
|
1084
|
-
|
|
1207
|
+
__wbg_close_931d0c62e2aab92c: function() { return handleError(function (arg0) {
|
|
1085
1208
|
arg0.close();
|
|
1086
1209
|
}, arguments); },
|
|
1087
|
-
|
|
1210
|
+
__wbg_close_de471367367aa5cb: function() { return handleError(function (arg0) {
|
|
1088
1211
|
arg0.close();
|
|
1089
1212
|
}, arguments); },
|
|
1090
|
-
|
|
1213
|
+
__wbg_code_be6f339819ebb2c4: function(arg0) {
|
|
1091
1214
|
const ret = arg0.code;
|
|
1092
1215
|
return ret;
|
|
1093
1216
|
},
|
|
1094
|
-
|
|
1217
|
+
__wbg_code_f1d2ddc1fbbb5aad: function(arg0) {
|
|
1095
1218
|
const ret = arg0.code;
|
|
1096
1219
|
return ret;
|
|
1097
1220
|
},
|
|
1098
|
-
|
|
1221
|
+
__wbg_createDataChannel_e92347b9e9a8f5fa: function(arg0, arg1, arg2) {
|
|
1099
1222
|
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
1100
1223
|
return ret;
|
|
1101
1224
|
},
|
|
@@ -1103,21 +1226,31 @@ function __wbg_get_imports() {
|
|
|
1103
1226
|
const ret = arg0.crypto;
|
|
1104
1227
|
return ret;
|
|
1105
1228
|
},
|
|
1106
|
-
|
|
1229
|
+
__wbg_data_4a14fad4c5f216c4: function(arg0) {
|
|
1107
1230
|
const ret = arg0.data;
|
|
1108
1231
|
return ret;
|
|
1109
1232
|
},
|
|
1110
|
-
|
|
1233
|
+
__wbg_debug_37240d2c1d0ce2bb: function(arg0) {
|
|
1234
|
+
console.debug(arg0);
|
|
1235
|
+
},
|
|
1236
|
+
__wbg_dispatchEvent_62b7eaa3eef4c3e8: function() { return handleError(function (arg0, arg1) {
|
|
1111
1237
|
const ret = arg0.dispatchEvent(arg1);
|
|
1112
1238
|
return ret;
|
|
1113
1239
|
}, arguments); },
|
|
1114
|
-
|
|
1240
|
+
__wbg_done_b1afd6201ac045e0: function(arg0) {
|
|
1115
1241
|
const ret = arg0.done;
|
|
1116
1242
|
return ret;
|
|
1117
1243
|
},
|
|
1118
|
-
|
|
1244
|
+
__wbg_enqueue_6c7cd543c0f3828e: function() { return handleError(function (arg0, arg1) {
|
|
1119
1245
|
arg0.enqueue(arg1);
|
|
1120
1246
|
}, arguments); },
|
|
1247
|
+
__wbg_entries_83f42485034accab: function(arg0) {
|
|
1248
|
+
const ret = arg0.entries();
|
|
1249
|
+
return ret;
|
|
1250
|
+
},
|
|
1251
|
+
__wbg_error_48655ee7e4756f8b: function(arg0) {
|
|
1252
|
+
console.error(arg0);
|
|
1253
|
+
},
|
|
1121
1254
|
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1122
1255
|
let deferred0_0;
|
|
1123
1256
|
let deferred0_1;
|
|
@@ -1129,55 +1262,60 @@ function __wbg_get_imports() {
|
|
|
1129
1262
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1130
1263
|
}
|
|
1131
1264
|
},
|
|
1132
|
-
|
|
1133
|
-
console.error(arg0);
|
|
1134
|
-
},
|
|
1135
|
-
__wbg_fetch_3c1f541fa62e562d: function(arg0, arg1) {
|
|
1265
|
+
__wbg_fetch_1a030943aa8e0c38: function(arg0, arg1) {
|
|
1136
1266
|
const ret = arg0.fetch(arg1);
|
|
1137
1267
|
return ret;
|
|
1138
1268
|
},
|
|
1139
|
-
|
|
1140
|
-
const ret =
|
|
1269
|
+
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
1270
|
+
const ret = fetch(arg0);
|
|
1141
1271
|
return ret;
|
|
1142
1272
|
},
|
|
1143
|
-
|
|
1273
|
+
__wbg_fetch_c6486a0142348bc8: function(arg0) {
|
|
1144
1274
|
const ret = fetch(arg0);
|
|
1145
1275
|
return ret;
|
|
1146
1276
|
},
|
|
1147
|
-
|
|
1277
|
+
__wbg_fetch_f36631298df17a02: function(arg0, arg1) {
|
|
1278
|
+
const ret = arg0.fetch(arg1);
|
|
1279
|
+
return ret;
|
|
1280
|
+
},
|
|
1281
|
+
__wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
|
|
1148
1282
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1149
1283
|
}, arguments); },
|
|
1150
1284
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1151
1285
|
arg0.getRandomValues(arg1);
|
|
1152
1286
|
}, arguments); },
|
|
1153
|
-
|
|
1287
|
+
__wbg_getReader_9facd4f899beac89: function() { return handleError(function (arg0) {
|
|
1154
1288
|
const ret = arg0.getReader();
|
|
1155
1289
|
return ret;
|
|
1156
|
-
},
|
|
1157
|
-
|
|
1290
|
+
}, arguments); },
|
|
1291
|
+
__wbg_getReader_fe5bfa2b1fd51521: function(arg0) {
|
|
1158
1292
|
const ret = arg0.getReader();
|
|
1159
1293
|
return ret;
|
|
1160
|
-
},
|
|
1161
|
-
|
|
1294
|
+
},
|
|
1295
|
+
__wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
|
|
1162
1296
|
const ret = Reflect.get(arg0, arg1);
|
|
1163
1297
|
return ret;
|
|
1164
1298
|
}, arguments); },
|
|
1165
|
-
|
|
1166
|
-
const ret =
|
|
1299
|
+
__wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
|
|
1300
|
+
const ret = arg0[arg1 >>> 0];
|
|
1167
1301
|
return ret;
|
|
1168
|
-
}, arguments); },
|
|
1169
|
-
__wbg_get_done_a5ffed3ab8e964eb: function(arg0) {
|
|
1170
|
-
const ret = arg0.done;
|
|
1171
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1172
1302
|
},
|
|
1173
|
-
|
|
1303
|
+
__wbg_get_6aaf7ff105162d98: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1174
1304
|
const ret = arg1.get(getStringFromWasm0(arg2, arg3));
|
|
1175
1305
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1176
1306
|
var len1 = WASM_VECTOR_LEN;
|
|
1177
1307
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1178
1308
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1179
1309
|
}, arguments); },
|
|
1180
|
-
|
|
1310
|
+
__wbg_get_9cfea9b7bbf12a15: function() { return handleError(function (arg0, arg1) {
|
|
1311
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1312
|
+
return ret;
|
|
1313
|
+
}, arguments); },
|
|
1314
|
+
__wbg_get_done_2088079830fb242e: function(arg0) {
|
|
1315
|
+
const ret = arg0.done;
|
|
1316
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1317
|
+
},
|
|
1318
|
+
__wbg_get_value_52f4b39f58a812ed: function(arg0) {
|
|
1181
1319
|
const ret = arg0.value;
|
|
1182
1320
|
return ret;
|
|
1183
1321
|
},
|
|
@@ -1185,18 +1323,18 @@ function __wbg_get_imports() {
|
|
|
1185
1323
|
const ret = arg0[arg1];
|
|
1186
1324
|
return ret;
|
|
1187
1325
|
},
|
|
1188
|
-
|
|
1326
|
+
__wbg_has_3a6f31f647e0ba22: function() { return handleError(function (arg0, arg1) {
|
|
1189
1327
|
const ret = Reflect.has(arg0, arg1);
|
|
1190
1328
|
return ret;
|
|
1191
1329
|
}, arguments); },
|
|
1192
|
-
|
|
1330
|
+
__wbg_headers_de17f740bce997ae: function(arg0) {
|
|
1193
1331
|
const ret = arg0.headers;
|
|
1194
1332
|
return ret;
|
|
1195
1333
|
},
|
|
1196
|
-
|
|
1334
|
+
__wbg_info_092aeeab8cd06a0b: function(arg0) {
|
|
1197
1335
|
console.info(arg0);
|
|
1198
1336
|
},
|
|
1199
|
-
|
|
1337
|
+
__wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
|
|
1200
1338
|
let result;
|
|
1201
1339
|
try {
|
|
1202
1340
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1206,7 +1344,7 @@ function __wbg_get_imports() {
|
|
|
1206
1344
|
const ret = result;
|
|
1207
1345
|
return ret;
|
|
1208
1346
|
},
|
|
1209
|
-
|
|
1347
|
+
__wbg_instanceof_Blob_03470b25075ee8f1: function(arg0) {
|
|
1210
1348
|
let result;
|
|
1211
1349
|
try {
|
|
1212
1350
|
result = arg0 instanceof Blob;
|
|
@@ -1216,7 +1354,7 @@ function __wbg_get_imports() {
|
|
|
1216
1354
|
const ret = result;
|
|
1217
1355
|
return ret;
|
|
1218
1356
|
},
|
|
1219
|
-
|
|
1357
|
+
__wbg_instanceof_ReadableStreamDefaultReader_8203766c0e55064a: function(arg0) {
|
|
1220
1358
|
let result;
|
|
1221
1359
|
try {
|
|
1222
1360
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -1226,7 +1364,7 @@ function __wbg_get_imports() {
|
|
|
1226
1364
|
const ret = result;
|
|
1227
1365
|
return ret;
|
|
1228
1366
|
},
|
|
1229
|
-
|
|
1367
|
+
__wbg_instanceof_Response_370b83aa6c17e88a: function(arg0) {
|
|
1230
1368
|
let result;
|
|
1231
1369
|
try {
|
|
1232
1370
|
result = arg0 instanceof Response;
|
|
@@ -1236,7 +1374,7 @@ function __wbg_get_imports() {
|
|
|
1236
1374
|
const ret = result;
|
|
1237
1375
|
return ret;
|
|
1238
1376
|
},
|
|
1239
|
-
|
|
1377
|
+
__wbg_instanceof_Uint8Array_57d77acd50e4c44d: function(arg0) {
|
|
1240
1378
|
let result;
|
|
1241
1379
|
try {
|
|
1242
1380
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1246,7 +1384,7 @@ function __wbg_get_imports() {
|
|
|
1246
1384
|
const ret = result;
|
|
1247
1385
|
return ret;
|
|
1248
1386
|
},
|
|
1249
|
-
|
|
1387
|
+
__wbg_instanceof_Window_4153c1818a1c0c0b: function(arg0) {
|
|
1250
1388
|
let result;
|
|
1251
1389
|
try {
|
|
1252
1390
|
result = arg0 instanceof Window;
|
|
@@ -1256,18 +1394,22 @@ function __wbg_get_imports() {
|
|
|
1256
1394
|
const ret = result;
|
|
1257
1395
|
return ret;
|
|
1258
1396
|
},
|
|
1259
|
-
|
|
1397
|
+
__wbg_isArray_c6c6ef8308995bcf: function(arg0) {
|
|
1398
|
+
const ret = Array.isArray(arg0);
|
|
1399
|
+
return ret;
|
|
1400
|
+
},
|
|
1401
|
+
__wbg_iterator_9d68985a1d096fc2: function() {
|
|
1260
1402
|
const ret = Symbol.iterator;
|
|
1261
1403
|
return ret;
|
|
1262
1404
|
},
|
|
1263
|
-
|
|
1405
|
+
__wbg_length_ba3c032602efe310: function(arg0) {
|
|
1264
1406
|
const ret = arg0.length;
|
|
1265
1407
|
return ret;
|
|
1266
1408
|
},
|
|
1267
|
-
|
|
1409
|
+
__wbg_log_72d22df918dcc232: function(arg0) {
|
|
1268
1410
|
console.log(arg0);
|
|
1269
1411
|
},
|
|
1270
|
-
|
|
1412
|
+
__wbg_message_609b498da776cb30: function(arg0, arg1) {
|
|
1271
1413
|
const ret = arg1.message;
|
|
1272
1414
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1273
1415
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1278,58 +1420,58 @@ function __wbg_get_imports() {
|
|
|
1278
1420
|
const ret = arg0.msCrypto;
|
|
1279
1421
|
return ret;
|
|
1280
1422
|
},
|
|
1281
|
-
|
|
1282
|
-
const ret = new Headers();
|
|
1283
|
-
return ret;
|
|
1284
|
-
}, arguments); },
|
|
1285
|
-
__wbg_new_09959f7b4c92c246: function(arg0) {
|
|
1286
|
-
const ret = new Uint8Array(arg0);
|
|
1287
|
-
return ret;
|
|
1288
|
-
},
|
|
1289
|
-
__wbg_new_0_a719938e6f92ddf4: function() {
|
|
1423
|
+
__wbg_new_0_e486ec9936f7edbf: function() {
|
|
1290
1424
|
const ret = new Date();
|
|
1291
1425
|
return ret;
|
|
1292
1426
|
},
|
|
1293
|
-
|
|
1294
|
-
const ret = new
|
|
1427
|
+
__wbg_new_18865c63fa645c6f: function() { return handleError(function () {
|
|
1428
|
+
const ret = new Headers();
|
|
1295
1429
|
return ret;
|
|
1296
|
-
},
|
|
1430
|
+
}, arguments); },
|
|
1297
1431
|
__wbg_new_227d7c05414eb861: function() {
|
|
1298
1432
|
const ret = new Error();
|
|
1299
1433
|
return ret;
|
|
1300
1434
|
},
|
|
1301
|
-
|
|
1302
|
-
const ret = new
|
|
1435
|
+
__wbg_new_2fad8ca02fd00684: function() {
|
|
1436
|
+
const ret = new Object();
|
|
1303
1437
|
return ret;
|
|
1304
1438
|
},
|
|
1305
|
-
|
|
1439
|
+
__wbg_new_3baa8d9866155c79: function() {
|
|
1306
1440
|
const ret = new Array();
|
|
1307
1441
|
return ret;
|
|
1308
1442
|
},
|
|
1309
|
-
|
|
1310
|
-
const ret = new
|
|
1443
|
+
__wbg_new_46ae4e4ff2a07a64: function() {
|
|
1444
|
+
const ret = new Map();
|
|
1311
1445
|
return ret;
|
|
1312
1446
|
},
|
|
1313
|
-
|
|
1314
|
-
const ret = new
|
|
1447
|
+
__wbg_new_51ff470dc2f61e27: function() { return handleError(function () {
|
|
1448
|
+
const ret = new AbortController();
|
|
1315
1449
|
return ret;
|
|
1316
1450
|
}, arguments); },
|
|
1317
|
-
|
|
1318
|
-
const ret = new
|
|
1451
|
+
__wbg_new_71b820e9c1f9ee88: function() { return handleError(function (arg0, arg1) {
|
|
1452
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1319
1453
|
return ret;
|
|
1320
1454
|
}, arguments); },
|
|
1321
|
-
|
|
1455
|
+
__wbg_new_8454eee672b2ba6e: function(arg0) {
|
|
1456
|
+
const ret = new Uint8Array(arg0);
|
|
1457
|
+
return ret;
|
|
1458
|
+
},
|
|
1459
|
+
__wbg_new_c9ea13ea803a692e: function(arg0, arg1) {
|
|
1460
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1461
|
+
return ret;
|
|
1462
|
+
},
|
|
1463
|
+
__wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
|
|
1322
1464
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1323
1465
|
return ret;
|
|
1324
1466
|
},
|
|
1325
|
-
|
|
1467
|
+
__wbg_new_typed_1137602701dc87d4: function(arg0, arg1) {
|
|
1326
1468
|
try {
|
|
1327
1469
|
var state0 = {a: arg0, b: arg1};
|
|
1328
1470
|
var cb0 = (arg0, arg1) => {
|
|
1329
1471
|
const a = state0.a;
|
|
1330
1472
|
state0.a = 0;
|
|
1331
1473
|
try {
|
|
1332
|
-
return
|
|
1474
|
+
return wasm_bindgen__convert__closures_____invoke__h776304867400b4e4(a, state0.b, arg0, arg1);
|
|
1333
1475
|
} finally {
|
|
1334
1476
|
state0.a = a;
|
|
1335
1477
|
}
|
|
@@ -1337,50 +1479,46 @@ function __wbg_get_imports() {
|
|
|
1337
1479
|
const ret = new Promise(cb0);
|
|
1338
1480
|
return ret;
|
|
1339
1481
|
} finally {
|
|
1340
|
-
state0.a =
|
|
1482
|
+
state0.a = 0;
|
|
1341
1483
|
}
|
|
1342
1484
|
},
|
|
1343
|
-
|
|
1485
|
+
__wbg_new_with_byte_offset_and_length_643e5e9e2fb6b1ad: function(arg0, arg1, arg2) {
|
|
1344
1486
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1345
1487
|
return ret;
|
|
1346
1488
|
},
|
|
1347
|
-
|
|
1489
|
+
__wbg_new_with_configuration_3b46f8f863c57190: function() { return handleError(function (arg0) {
|
|
1348
1490
|
const ret = new RTCPeerConnection(arg0);
|
|
1349
1491
|
return ret;
|
|
1350
1492
|
}, arguments); },
|
|
1351
|
-
|
|
1493
|
+
__wbg_new_with_event_init_dict_e01f6dc8f5a4058b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1352
1494
|
const ret = new CustomEvent(getStringFromWasm0(arg0, arg1), arg2);
|
|
1353
1495
|
return ret;
|
|
1354
1496
|
}, arguments); },
|
|
1355
|
-
|
|
1356
|
-
const ret = new ReadableStream(IntoUnderlyingByteSource.__wrap(arg0));
|
|
1357
|
-
return ret;
|
|
1358
|
-
}, arguments); },
|
|
1359
|
-
__wbg_new_with_into_underlying_sink_452589651e7a8aa7: function(arg0) {
|
|
1497
|
+
__wbg_new_with_into_underlying_sink_2596343f9b6c8e58: function(arg0) {
|
|
1360
1498
|
const ret = new WritableStream(IntoUnderlyingSink.__wrap(arg0));
|
|
1361
1499
|
return ret;
|
|
1362
1500
|
},
|
|
1363
|
-
|
|
1501
|
+
__wbg_new_with_into_underlying_source_fd904252f385f59c: function(arg0, arg1) {
|
|
1364
1502
|
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
|
|
1365
1503
|
return ret;
|
|
1366
1504
|
},
|
|
1367
|
-
|
|
1505
|
+
__wbg_new_with_length_9011f5da794bf5d9: function(arg0) {
|
|
1368
1506
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1369
1507
|
return ret;
|
|
1370
1508
|
},
|
|
1371
|
-
|
|
1509
|
+
__wbg_new_with_str_and_init_da311e12114f4d1e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1372
1510
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1373
1511
|
return ret;
|
|
1374
1512
|
}, arguments); },
|
|
1375
|
-
|
|
1513
|
+
__wbg_new_with_str_sequence_d90cb07368a00c61: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1376
1514
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), arg2);
|
|
1377
1515
|
return ret;
|
|
1378
1516
|
}, arguments); },
|
|
1379
|
-
|
|
1517
|
+
__wbg_next_261c3c48c6e309a5: function(arg0) {
|
|
1380
1518
|
const ret = arg0.next;
|
|
1381
1519
|
return ret;
|
|
1382
1520
|
},
|
|
1383
|
-
|
|
1521
|
+
__wbg_next_aacee310bcfe6461: function() { return handleError(function (arg0) {
|
|
1384
1522
|
const ret = arg0.next();
|
|
1385
1523
|
return ret;
|
|
1386
1524
|
}, arguments); },
|
|
@@ -1388,19 +1526,19 @@ function __wbg_get_imports() {
|
|
|
1388
1526
|
const ret = arg0.node;
|
|
1389
1527
|
return ret;
|
|
1390
1528
|
},
|
|
1391
|
-
|
|
1392
|
-
const ret =
|
|
1529
|
+
__wbg_now_4f457f10f864aec5: function() {
|
|
1530
|
+
const ret = Date.now();
|
|
1393
1531
|
return ret;
|
|
1394
1532
|
},
|
|
1395
|
-
|
|
1396
|
-
const ret =
|
|
1533
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
1534
|
+
const ret = arg0.now();
|
|
1397
1535
|
return ret;
|
|
1398
1536
|
},
|
|
1399
|
-
|
|
1537
|
+
__wbg_ok_b6a9978bb5f66f33: function(arg0) {
|
|
1400
1538
|
const ret = arg0.ok;
|
|
1401
1539
|
return ret;
|
|
1402
1540
|
},
|
|
1403
|
-
|
|
1541
|
+
__wbg_parse_6a6cc87f3d5b738c: function(arg0, arg1) {
|
|
1404
1542
|
const ret = Date.parse(getStringFromWasm0(arg0, arg1));
|
|
1405
1543
|
return ret;
|
|
1406
1544
|
},
|
|
@@ -1412,61 +1550,72 @@ function __wbg_get_imports() {
|
|
|
1412
1550
|
const ret = arg0.process;
|
|
1413
1551
|
return ret;
|
|
1414
1552
|
},
|
|
1415
|
-
|
|
1553
|
+
__wbg_protocol_db28bce84eb5b12a: function(arg0, arg1) {
|
|
1554
|
+
const ret = arg1.protocol;
|
|
1555
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1556
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1557
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1558
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1559
|
+
},
|
|
1560
|
+
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
1416
1561
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1417
1562
|
},
|
|
1418
|
-
|
|
1563
|
+
__wbg_push_60a5366c0bb22a7d: function(arg0, arg1) {
|
|
1419
1564
|
const ret = arg0.push(arg1);
|
|
1420
1565
|
return ret;
|
|
1421
1566
|
},
|
|
1422
|
-
|
|
1567
|
+
__wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
|
|
1568
|
+
queueMicrotask(arg0);
|
|
1569
|
+
},
|
|
1570
|
+
__wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
|
|
1423
1571
|
const ret = arg0.queueMicrotask;
|
|
1424
1572
|
return ret;
|
|
1425
1573
|
},
|
|
1426
|
-
__wbg_queueMicrotask_8985ad63815852e7: function(arg0) {
|
|
1427
|
-
queueMicrotask(arg0);
|
|
1428
|
-
},
|
|
1429
1574
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1430
1575
|
arg0.randomFillSync(arg1);
|
|
1431
1576
|
}, arguments); },
|
|
1432
|
-
|
|
1577
|
+
__wbg_read_ac2e4325f1799cbe: function(arg0) {
|
|
1433
1578
|
const ret = arg0.read();
|
|
1434
1579
|
return ret;
|
|
1435
1580
|
},
|
|
1436
|
-
|
|
1581
|
+
__wbg_readyState_be3cc9403da6c6ae: function(arg0) {
|
|
1437
1582
|
const ret = arg0.readyState;
|
|
1438
1583
|
return ret;
|
|
1439
1584
|
},
|
|
1440
|
-
|
|
1585
|
+
__wbg_reason_fe958bcb63725f3b: function(arg0, arg1) {
|
|
1441
1586
|
const ret = arg1.reason;
|
|
1442
1587
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1443
1588
|
const len1 = WASM_VECTOR_LEN;
|
|
1444
1589
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1445
1590
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1446
1591
|
},
|
|
1447
|
-
|
|
1592
|
+
__wbg_releaseLock_9e0ebc0b5270a358: function(arg0) {
|
|
1448
1593
|
arg0.releaseLock();
|
|
1449
1594
|
},
|
|
1450
|
-
|
|
1595
|
+
__wbg_removeEventListener_83bbb9ee36238073: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1451
1596
|
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
1452
1597
|
}, arguments); },
|
|
1453
1598
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1454
1599
|
const ret = module.require;
|
|
1455
1600
|
return ret;
|
|
1456
1601
|
}, arguments); },
|
|
1457
|
-
|
|
1602
|
+
__wbg_resolve_9feb5d906ca62419: function(arg0) {
|
|
1458
1603
|
const ret = Promise.resolve(arg0);
|
|
1459
1604
|
return ret;
|
|
1460
1605
|
},
|
|
1461
|
-
|
|
1606
|
+
__wbg_respond_e7e53102735b2ae2: function() { return handleError(function (arg0, arg1) {
|
|
1462
1607
|
arg0.respond(arg1 >>> 0);
|
|
1463
1608
|
}, arguments); },
|
|
1464
|
-
|
|
1609
|
+
__wbg_send_0edb796d05cd3239: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1465
1610
|
arg0.send(getStringFromWasm0(arg1, arg2));
|
|
1466
1611
|
}, arguments); },
|
|
1467
|
-
|
|
1612
|
+
__wbg_send_c422d0aa0cb71d09: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1468
1613
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1469
1614
|
}, arguments); },
|
|
1615
|
+
__wbg_setTimeout_30be5552e4410378: function(arg0, arg1) {
|
|
1616
|
+
const ret = setTimeout(arg0, arg1);
|
|
1617
|
+
return ret;
|
|
1618
|
+
},
|
|
1470
1619
|
__wbg_setTimeout_6613a51400c1bf9f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1471
1620
|
const ret = arg0.setTimeout(arg1, arg2);
|
|
1472
1621
|
return ret;
|
|
@@ -1479,72 +1628,72 @@ function __wbg_get_imports() {
|
|
|
1479
1628
|
const ret = setTimeout(arg0, arg1);
|
|
1480
1629
|
return ret;
|
|
1481
1630
|
},
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1487
|
-
},
|
|
1631
|
+
__wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1632
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1633
|
+
return ret;
|
|
1634
|
+
}, arguments); },
|
|
1488
1635
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1489
1636
|
arg0[arg1] = arg2;
|
|
1490
1637
|
},
|
|
1491
|
-
|
|
1492
|
-
arg0.set(
|
|
1493
|
-
}, arguments); },
|
|
1494
|
-
__wbg_set_bad5c505cc70b5f8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1495
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1638
|
+
__wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
|
|
1639
|
+
const ret = arg0.set(arg1, arg2);
|
|
1496
1640
|
return ret;
|
|
1641
|
+
},
|
|
1642
|
+
__wbg_set_959f043b9152efeb: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1643
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1497
1644
|
}, arguments); },
|
|
1498
|
-
|
|
1645
|
+
__wbg_set_b0d9dc239ecdb765: function(arg0, arg1, arg2) {
|
|
1646
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1647
|
+
},
|
|
1648
|
+
__wbg_set_binaryType_8564bdba0fbec720: function(arg0, arg1) {
|
|
1499
1649
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1500
1650
|
},
|
|
1501
|
-
|
|
1651
|
+
__wbg_set_body_aaff4f5f9991f342: function(arg0, arg1) {
|
|
1502
1652
|
arg0.body = arg1;
|
|
1503
1653
|
},
|
|
1504
|
-
|
|
1654
|
+
__wbg_set_cache_d1f2b7b4dfa39317: function(arg0, arg1) {
|
|
1505
1655
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1506
1656
|
},
|
|
1507
|
-
|
|
1508
|
-
const ret = arg0.set(arg1, arg2);
|
|
1509
|
-
return ret;
|
|
1510
|
-
},
|
|
1511
|
-
__wbg_set_credentials_b80a80dfa15201af: function(arg0, arg1) {
|
|
1657
|
+
__wbg_set_credentials_f31e4d30b974ce14: function(arg0, arg1) {
|
|
1512
1658
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1513
1659
|
},
|
|
1514
|
-
|
|
1660
|
+
__wbg_set_detail_ff73098900fc0958: function(arg0, arg1) {
|
|
1515
1661
|
arg0.detail = arg1;
|
|
1516
1662
|
},
|
|
1517
|
-
|
|
1663
|
+
__wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
|
|
1664
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1665
|
+
},
|
|
1666
|
+
__wbg_set_handle_event_ce9002ca160b1275: function(arg0, arg1) {
|
|
1518
1667
|
arg0.handleEvent = arg1;
|
|
1519
1668
|
},
|
|
1520
|
-
|
|
1669
|
+
__wbg_set_headers_ae96049ea40e9eef: function(arg0, arg1) {
|
|
1521
1670
|
arg0.headers = arg1;
|
|
1522
1671
|
},
|
|
1523
|
-
|
|
1672
|
+
__wbg_set_high_water_mark_84684938153a659a: function(arg0, arg1) {
|
|
1524
1673
|
arg0.highWaterMark = arg1;
|
|
1525
1674
|
},
|
|
1526
|
-
|
|
1675
|
+
__wbg_set_method_0eea8a5597775fa1: function(arg0, arg1, arg2) {
|
|
1527
1676
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1528
1677
|
},
|
|
1529
|
-
|
|
1678
|
+
__wbg_set_mode_9fe47bff60a1580d: function(arg0, arg1) {
|
|
1530
1679
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1531
1680
|
},
|
|
1532
|
-
|
|
1681
|
+
__wbg_set_onclose_f756840519cd20b5: function(arg0, arg1) {
|
|
1533
1682
|
arg0.onclose = arg1;
|
|
1534
1683
|
},
|
|
1535
|
-
|
|
1684
|
+
__wbg_set_onerror_02f33de339f1fa31: function(arg0, arg1) {
|
|
1536
1685
|
arg0.onerror = arg1;
|
|
1537
1686
|
},
|
|
1538
|
-
|
|
1687
|
+
__wbg_set_onmessage_d2ff0c1d20584625: function(arg0, arg1) {
|
|
1539
1688
|
arg0.onmessage = arg1;
|
|
1540
1689
|
},
|
|
1541
|
-
|
|
1690
|
+
__wbg_set_onopen_1da8a4f65e6180d2: function(arg0, arg1) {
|
|
1542
1691
|
arg0.onopen = arg1;
|
|
1543
1692
|
},
|
|
1544
|
-
|
|
1693
|
+
__wbg_set_signal_8c5cf4c3b27bd8a8: function(arg0, arg1) {
|
|
1545
1694
|
arg0.signal = arg1;
|
|
1546
1695
|
},
|
|
1547
|
-
|
|
1696
|
+
__wbg_signal_4643ce883b92b553: function(arg0) {
|
|
1548
1697
|
const ret = arg0.signal;
|
|
1549
1698
|
return ret;
|
|
1550
1699
|
},
|
|
@@ -1555,65 +1704,65 @@ function __wbg_get_imports() {
|
|
|
1555
1704
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1556
1705
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1557
1706
|
},
|
|
1558
|
-
|
|
1707
|
+
__wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
|
|
1559
1708
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1560
1709
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1561
1710
|
},
|
|
1562
|
-
|
|
1711
|
+
__wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
|
|
1563
1712
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1564
1713
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1565
1714
|
},
|
|
1566
|
-
|
|
1715
|
+
__wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
|
|
1567
1716
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1568
1717
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1569
1718
|
},
|
|
1570
|
-
|
|
1719
|
+
__wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
|
|
1571
1720
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1572
1721
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1573
1722
|
},
|
|
1574
|
-
|
|
1723
|
+
__wbg_status_157e67ab07d01f8a: function(arg0) {
|
|
1575
1724
|
const ret = arg0.status;
|
|
1576
1725
|
return ret;
|
|
1577
1726
|
},
|
|
1578
|
-
|
|
1727
|
+
__wbg_stringify_7fd5cae8859a6f10: function() { return handleError(function (arg0) {
|
|
1579
1728
|
const ret = JSON.stringify(arg0);
|
|
1580
1729
|
return ret;
|
|
1581
1730
|
}, arguments); },
|
|
1582
|
-
|
|
1731
|
+
__wbg_subarray_fbe3cef290e1fa43: function(arg0, arg1, arg2) {
|
|
1583
1732
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1584
1733
|
return ret;
|
|
1585
1734
|
},
|
|
1586
|
-
|
|
1735
|
+
__wbg_text_de416916b5c06490: function() { return handleError(function (arg0) {
|
|
1587
1736
|
const ret = arg0.text();
|
|
1588
1737
|
return ret;
|
|
1589
1738
|
}, arguments); },
|
|
1590
|
-
|
|
1591
|
-
const ret = arg0.then(arg1
|
|
1739
|
+
__wbg_then_20a157d939b514f5: function(arg0, arg1) {
|
|
1740
|
+
const ret = arg0.then(arg1);
|
|
1592
1741
|
return ret;
|
|
1593
1742
|
},
|
|
1594
|
-
|
|
1595
|
-
const ret = arg0.then(arg1);
|
|
1743
|
+
__wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) {
|
|
1744
|
+
const ret = arg0.then(arg1, arg2);
|
|
1596
1745
|
return ret;
|
|
1597
1746
|
},
|
|
1598
|
-
|
|
1747
|
+
__wbg_toISOString_72dcc3eb1fd97de6: function(arg0) {
|
|
1599
1748
|
const ret = arg0.toISOString();
|
|
1600
1749
|
return ret;
|
|
1601
1750
|
},
|
|
1602
|
-
|
|
1751
|
+
__wbg_url_68fd9a221360e0db: function(arg0, arg1) {
|
|
1603
1752
|
const ret = arg1.url;
|
|
1604
1753
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1605
1754
|
const len1 = WASM_VECTOR_LEN;
|
|
1606
1755
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1607
1756
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1608
1757
|
},
|
|
1609
|
-
|
|
1758
|
+
__wbg_url_a0e994e7d0317efc: function(arg0, arg1) {
|
|
1610
1759
|
const ret = arg1.url;
|
|
1611
1760
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1612
1761
|
const len1 = WASM_VECTOR_LEN;
|
|
1613
1762
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1614
1763
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1615
1764
|
},
|
|
1616
|
-
|
|
1765
|
+
__wbg_value_f852716acdeb3e82: function(arg0) {
|
|
1617
1766
|
const ret = arg0.value;
|
|
1618
1767
|
return ret;
|
|
1619
1768
|
},
|
|
@@ -1621,83 +1770,88 @@ function __wbg_get_imports() {
|
|
|
1621
1770
|
const ret = arg0.versions;
|
|
1622
1771
|
return ret;
|
|
1623
1772
|
},
|
|
1624
|
-
|
|
1773
|
+
__wbg_view_16bd97d49793e1a9: function(arg0) {
|
|
1625
1774
|
const ret = arg0.view;
|
|
1626
1775
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1627
1776
|
},
|
|
1628
|
-
|
|
1777
|
+
__wbg_warn_1f9b94806da61fbb: function(arg0) {
|
|
1629
1778
|
console.warn(arg0);
|
|
1630
1779
|
},
|
|
1631
|
-
|
|
1780
|
+
__wbg_wasClean_92b4133f985dfae0: function(arg0) {
|
|
1632
1781
|
const ret = arg0.wasClean;
|
|
1633
1782
|
return ret;
|
|
1634
1783
|
},
|
|
1635
1784
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1636
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1637
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1785
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3026, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1786
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4dc49b34d4d77b81);
|
|
1638
1787
|
return ret;
|
|
1639
1788
|
},
|
|
1640
1789
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1641
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1642
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1790
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4871, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1791
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd47f17ba87c541ec);
|
|
1643
1792
|
return ret;
|
|
1644
1793
|
},
|
|
1645
1794
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1646
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1647
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1795
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 2419, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1796
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hf679ef60a72d1948);
|
|
1648
1797
|
return ret;
|
|
1649
1798
|
},
|
|
1650
1799
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1651
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1652
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1800
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 3519, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1801
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4b742547b50caebd);
|
|
1653
1802
|
return ret;
|
|
1654
1803
|
},
|
|
1655
1804
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1656
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1657
|
-
const ret =
|
|
1805
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1447, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1806
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h509d1e5f9a719179);
|
|
1658
1807
|
return ret;
|
|
1659
1808
|
},
|
|
1660
1809
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1661
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1662
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1810
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2987, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1811
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1ecdc95d38c8111b);
|
|
1663
1812
|
return ret;
|
|
1664
1813
|
},
|
|
1665
1814
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1666
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1667
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1815
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3050, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1816
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h47f09f7820fbff6c);
|
|
1668
1817
|
return ret;
|
|
1669
1818
|
},
|
|
1670
1819
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1671
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1672
|
-
const ret =
|
|
1820
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 3080, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1821
|
+
const ret = makeClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha910581f00459fa9);
|
|
1673
1822
|
return ret;
|
|
1674
1823
|
},
|
|
1675
|
-
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
1824
|
+
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
1825
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 4841, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1826
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1893948438c6db09);
|
|
1827
|
+
return ret;
|
|
1828
|
+
},
|
|
1829
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
1676
1830
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1677
1831
|
const ret = arg0;
|
|
1678
1832
|
return ret;
|
|
1679
1833
|
},
|
|
1680
|
-
|
|
1834
|
+
__wbindgen_cast_000000000000000b: function(arg0) {
|
|
1681
1835
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1682
1836
|
const ret = arg0;
|
|
1683
1837
|
return ret;
|
|
1684
1838
|
},
|
|
1685
|
-
|
|
1839
|
+
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
1686
1840
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1687
1841
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1688
1842
|
return ret;
|
|
1689
1843
|
},
|
|
1690
|
-
|
|
1844
|
+
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
1691
1845
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1692
1846
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1693
1847
|
return ret;
|
|
1694
1848
|
},
|
|
1695
|
-
|
|
1849
|
+
__wbindgen_cast_000000000000000e: function(arg0) {
|
|
1696
1850
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1697
1851
|
const ret = BigInt.asUintN(64, arg0);
|
|
1698
1852
|
return ret;
|
|
1699
1853
|
},
|
|
1700
|
-
|
|
1854
|
+
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
1701
1855
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1702
1856
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1703
1857
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -1720,43 +1874,47 @@ function __wbg_get_imports() {
|
|
|
1720
1874
|
};
|
|
1721
1875
|
}
|
|
1722
1876
|
|
|
1723
|
-
function
|
|
1724
|
-
wasm.
|
|
1877
|
+
function wasm_bindgen__convert__closures_____invoke__h509d1e5f9a719179(arg0, arg1) {
|
|
1878
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h509d1e5f9a719179(arg0, arg1);
|
|
1725
1879
|
}
|
|
1726
1880
|
|
|
1727
|
-
function
|
|
1728
|
-
wasm.
|
|
1881
|
+
function wasm_bindgen__convert__closures_____invoke__h1ecdc95d38c8111b(arg0, arg1) {
|
|
1882
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1ecdc95d38c8111b(arg0, arg1);
|
|
1729
1883
|
}
|
|
1730
1884
|
|
|
1731
|
-
function
|
|
1732
|
-
wasm.
|
|
1885
|
+
function wasm_bindgen__convert__closures_____invoke__h47f09f7820fbff6c(arg0, arg1) {
|
|
1886
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h47f09f7820fbff6c(arg0, arg1);
|
|
1733
1887
|
}
|
|
1734
1888
|
|
|
1735
|
-
function
|
|
1736
|
-
wasm.
|
|
1889
|
+
function wasm_bindgen__convert__closures_____invoke__ha910581f00459fa9(arg0, arg1) {
|
|
1890
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha910581f00459fa9(arg0, arg1);
|
|
1737
1891
|
}
|
|
1738
1892
|
|
|
1739
|
-
function
|
|
1740
|
-
wasm.
|
|
1893
|
+
function wasm_bindgen__convert__closures_____invoke__h1893948438c6db09(arg0, arg1) {
|
|
1894
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1893948438c6db09(arg0, arg1);
|
|
1741
1895
|
}
|
|
1742
1896
|
|
|
1743
|
-
function
|
|
1744
|
-
wasm.
|
|
1897
|
+
function wasm_bindgen__convert__closures_____invoke__h4dc49b34d4d77b81(arg0, arg1, arg2) {
|
|
1898
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4dc49b34d4d77b81(arg0, arg1, arg2);
|
|
1745
1899
|
}
|
|
1746
1900
|
|
|
1747
|
-
function
|
|
1748
|
-
wasm.
|
|
1901
|
+
function wasm_bindgen__convert__closures_____invoke__hf679ef60a72d1948(arg0, arg1, arg2) {
|
|
1902
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf679ef60a72d1948(arg0, arg1, arg2);
|
|
1749
1903
|
}
|
|
1750
1904
|
|
|
1751
|
-
function
|
|
1752
|
-
|
|
1905
|
+
function wasm_bindgen__convert__closures_____invoke__h4b742547b50caebd(arg0, arg1, arg2) {
|
|
1906
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4b742547b50caebd(arg0, arg1, arg2);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
function wasm_bindgen__convert__closures_____invoke__hd47f17ba87c541ec(arg0, arg1, arg2) {
|
|
1910
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hd47f17ba87c541ec(arg0, arg1, arg2);
|
|
1753
1911
|
if (ret[1]) {
|
|
1754
1912
|
throw takeFromExternrefTable0(ret[0]);
|
|
1755
1913
|
}
|
|
1756
1914
|
}
|
|
1757
1915
|
|
|
1758
|
-
function
|
|
1759
|
-
wasm.
|
|
1916
|
+
function wasm_bindgen__convert__closures_____invoke__h776304867400b4e4(arg0, arg1, arg2, arg3) {
|
|
1917
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h776304867400b4e4(arg0, arg1, arg2, arg3);
|
|
1760
1918
|
}
|
|
1761
1919
|
|
|
1762
1920
|
|
|
@@ -1775,22 +1933,22 @@ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
|
1775
1933
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
1776
1934
|
const BiStreamFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1777
1935
|
? { register: () => {}, unregister: () => {} }
|
|
1778
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_bistream_free(ptr
|
|
1936
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_bistream_free(ptr, 1));
|
|
1779
1937
|
const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1780
1938
|
? { register: () => {}, unregister: () => {} }
|
|
1781
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr
|
|
1939
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
|
|
1782
1940
|
const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1783
1941
|
? { register: () => {}, unregister: () => {} }
|
|
1784
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr
|
|
1942
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
|
|
1785
1943
|
const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1786
1944
|
? { register: () => {}, unregister: () => {} }
|
|
1787
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr
|
|
1945
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
|
|
1788
1946
|
const WasmClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1789
1947
|
? { register: () => {}, unregister: () => {} }
|
|
1790
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmclient_free(ptr
|
|
1948
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmclient_free(ptr, 1));
|
|
1791
1949
|
const WasmConnectionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1792
1950
|
? { register: () => {}, unregister: () => {} }
|
|
1793
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconnection_free(ptr
|
|
1951
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconnection_free(ptr, 1));
|
|
1794
1952
|
|
|
1795
1953
|
function addToExternrefTable0(obj) {
|
|
1796
1954
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -1800,7 +1958,7 @@ function addToExternrefTable0(obj) {
|
|
|
1800
1958
|
|
|
1801
1959
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1802
1960
|
? { register: () => {}, unregister: () => {} }
|
|
1803
|
-
: new FinalizationRegistry(state =>
|
|
1961
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1804
1962
|
|
|
1805
1963
|
function debugString(val) {
|
|
1806
1964
|
// primitive types
|
|
@@ -1881,8 +2039,7 @@ function getDataViewMemory0() {
|
|
|
1881
2039
|
}
|
|
1882
2040
|
|
|
1883
2041
|
function getStringFromWasm0(ptr, len) {
|
|
1884
|
-
|
|
1885
|
-
return decodeText(ptr, len);
|
|
2042
|
+
return decodeText(ptr >>> 0, len);
|
|
1886
2043
|
}
|
|
1887
2044
|
|
|
1888
2045
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1906,8 +2063,8 @@ function isLikeNone(x) {
|
|
|
1906
2063
|
return x === undefined || x === null;
|
|
1907
2064
|
}
|
|
1908
2065
|
|
|
1909
|
-
function makeClosure(arg0, arg1,
|
|
1910
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
2066
|
+
function makeClosure(arg0, arg1, f) {
|
|
2067
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1911
2068
|
const real = (...args) => {
|
|
1912
2069
|
|
|
1913
2070
|
// First up with a closure we increment the internal reference
|
|
@@ -1922,7 +2079,7 @@ function makeClosure(arg0, arg1, dtor, f) {
|
|
|
1922
2079
|
};
|
|
1923
2080
|
real._wbg_cb_unref = () => {
|
|
1924
2081
|
if (--state.cnt === 0) {
|
|
1925
|
-
|
|
2082
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1926
2083
|
state.a = 0;
|
|
1927
2084
|
CLOSURE_DTORS.unregister(state);
|
|
1928
2085
|
}
|
|
@@ -1931,8 +2088,8 @@ function makeClosure(arg0, arg1, dtor, f) {
|
|
|
1931
2088
|
return real;
|
|
1932
2089
|
}
|
|
1933
2090
|
|
|
1934
|
-
function makeMutClosure(arg0, arg1,
|
|
1935
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
2091
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2092
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1936
2093
|
const real = (...args) => {
|
|
1937
2094
|
|
|
1938
2095
|
// First up with a closure we increment the internal reference
|
|
@@ -1950,7 +2107,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1950
2107
|
};
|
|
1951
2108
|
real._wbg_cb_unref = () => {
|
|
1952
2109
|
if (--state.cnt === 0) {
|
|
1953
|
-
|
|
2110
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1954
2111
|
state.a = 0;
|
|
1955
2112
|
CLOSURE_DTORS.unregister(state);
|
|
1956
2113
|
}
|
|
@@ -2038,8 +2195,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2038
2195
|
|
|
2039
2196
|
let WASM_VECTOR_LEN = 0;
|
|
2040
2197
|
|
|
2041
|
-
let wasmModule, wasm;
|
|
2198
|
+
let wasmModule, wasmInstance, wasm;
|
|
2042
2199
|
function __wbg_finalize_init(instance, module) {
|
|
2200
|
+
wasmInstance = instance;
|
|
2043
2201
|
wasm = instance.exports;
|
|
2044
2202
|
wasmModule = module;
|
|
2045
2203
|
cachedDataViewMemory0 = null;
|