openrtc 2.0.0 → 2.0.1
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/dist/{DelegatingRuntimeAdapter-BFZDC604.d.ts → DelegatingRuntimeAdapter-fgz5OPQx.d.ts} +3 -3
- package/dist/{ITransport-WV6gGMnX.d.ts → ITransport-UNOXiRJD.d.ts} +3 -3
- package/dist/{IpcRuntimeAdapter-CJq3dRBF.d.ts → IpcRuntimeAdapter-CI3vCzk0.d.ts} +2 -2
- package/dist/OpenRTCShared.d.ts +4 -4
- package/dist/WasmBridge-P5646IVR.js +1 -0
- package/dist/{assembly-q0jRRpsc.d.ts → assembly-CLdwe5T-.d.ts} +3 -3
- package/dist/{capabilities-BfZi4Cd7.d.ts → capabilities-BUe5YldR.d.ts} +1 -1
- package/dist/{chunk-H5R5ZXXN.js → chunk-5OTF7W2N.js} +1 -1
- package/dist/{chunk-Z6TZLF4B.js → chunk-HIXXBEWX.js} +1 -1
- package/dist/chunk-IKZ33R7R.js +2 -0
- package/dist/chunk-QCPSLUKO.js +1 -0
- package/dist/{chunk-D2OJN5S5.js → chunk-Y35AKFCM.js} +1 -1
- package/dist/chunk-ZQF5KSOK.js +2 -0
- package/dist/controlPlane-YAMXWHAF.js +1 -0
- package/dist/deviceEnrollment-33NZEARB.js +2 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/ipcFactory-JTMNUTZI.js +1 -0
- package/dist/native.d.ts +6 -6
- package/dist/native.js +1 -1
- package/dist/{openrtc-BFF336RG.js → openrtc-JUV7TOTL.js} +1 -1
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +4 -4
- package/dist/runtime/WasmRuntimeAdapter.js +1 -1
- package/dist/runtime/device-status.d.ts +2 -2
- package/dist/runtime/factories.d.ts +6 -6
- package/dist/runtime/factories.js +1 -1
- package/dist/runtime/index.d.ts +10 -10
- package/dist/runtime/index.js +1 -1
- package/dist/testing.d.ts +118 -6
- package/dist/testing.js +1 -1
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-Di034GVQ.d.ts → types-DhmY9hBy.d.ts} +4 -5
- package/dist/{types-DVNSd5B9.d.ts → types-l3m3GrOe.d.ts} +1 -1
- package/package.json +3 -9
- package/dist/WasmBridge-5GYKXPXK.js +0 -1
- package/dist/chunk-OEVPKC3W.js +0 -1
- package/dist/chunk-VOCOZ57Q.js +0 -2
- package/dist/controlPlane-P66ZTVNW.js +0 -2
- package/dist/deviceEnrollment-GL4JPVGG.js +0 -2
- package/dist/ipcFactory-B6HBECSU.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var q=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,$.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_bistream_free(t,0);}get applicationCryptoWrapped(){return n.bistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}get endpoint_id(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.bistream_endpoint_id(i,this.__wbg_ptr);var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);return t=_,e=r,v(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1);}}finishSend(){let t=n.bistream_finishSend(this.__wbg_ptr);return w(t)}get recv(){let t=n.bistream_recv(this.__wbg_ptr);return w(t)}get send(){let t=n.bistream_send(this.__wbg_ptr);return w(t)}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var L=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingbytesource_free(t,0);}get autoAllocateChunkSize(){return n.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let t=this.__destroy_into_raw();n.intounderlyingbytesource_cancel(t);}pull(t){let e=n.intounderlyingbytesource_pull(this.__wbg_ptr,g(t));return w(e)}start(t){n.intounderlyingbytesource_start(this.__wbg_ptr,g(t));}get type(){let t=n.intounderlyingbytesource_type(this.__wbg_ptr);return mt[t]}};Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);var N=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsink_free(t,0);}abort(t){let e=this.__destroy_into_raw(),_=n.intounderlyingsink_abort(e,g(t));return w(_)}close(){let t=this.__destroy_into_raw(),e=n.intounderlyingsink_close(t);return w(e)}write(t){let e=n.intounderlyingsink_write(this.__wbg_ptr,g(t));return w(e)}};Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);var O=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,J.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsource_free(t,0);}cancel(){let t=this.__destroy_into_raw();n.intounderlyingsource_cancel(t);}pull(t){let e=n.intounderlyingsource_pull(this.__wbg_ptr,g(t));return w(e)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);var B=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,Y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_peerunistream_free(t,0);}get applicationCryptoWrapped(){return n.peerunistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}finishSend(){let t=n.peerunistream_finishSend(this.__wbg_ptr);return w(t)}get writable(){let t=n.peerunistream_writable(this.__wbg_ptr);return w(t)}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var U=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmclient_free(t,0);}__acknowledgePersistentIrohOutbox(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient___acknowledgePersistentIrohOutbox(this.__wbg_ptr,e,_);return w(r)}__advancePreferredIrohCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___advancePreferredIrohCarrier(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__attachIrohMoqCarrier(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___attachIrohMoqCarrier(this.__wbg_ptr,i,b,p,d,g(_),l,f);return w(m)}__attachIrohWebRtcCarrier(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___attachIrohWebRtcCarrier(this.__wbg_ptr,i,b,p,d,g(_),l,f);return w(m)}__beginIrohMoqCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___beginIrohMoqCarrier(this.__wbg_ptr,r,i,b,p,_);return w(d)}__beginIrohWebRtcCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___beginIrohWebRtcCarrier(this.__wbg_ptr,r,i,b,p,_);return w(d)}__beginPreferredIrohCarrier(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___beginPreferredIrohCarrier(this.__wbg_ptr,p,d,l,f,_,r,i,b);return w(m)}__configureIrohMoqCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),p=o;let d=n.wasmclient___configureIrohMoqCarrier(this.__wbg_ptr,t,r,i,b,p);return w(d)}__configureIrohRoutePolicy(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o;let b=n.wasmclient___configureIrohRoutePolicy(this.__wbg_ptr,t,r,i,g(_));return w(b)}__configureIrohWebRtcCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o;let b=n.wasmclient___configureIrohWebRtcCarrier(this.__wbg_ptr,t,r,i,_);return w(b)}__createPersistentIrohNamespace(t,e){let _=n.wasmclient___createPersistentIrohNamespace(this.__wbg_ptr,t,e);return w(_)}__deletePersistentIrohPrefix(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient___deletePersistentIrohPrefix(this.__wbg_ptr,_,r,i,b);return w(p)}__flushPersistentIrohProtocols(){let t=n.wasmclient___flushPersistentIrohProtocols(this.__wbg_ptr);return w(t)}__handleIrohCarrierControl(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___handleIrohCarrierControl(this.__wbg_ptr,r,i,b,p,g(_));return w(d)}__hydratePersistentIrohBlob(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient___hydratePersistentIrohBlob(this.__wbg_ptr,e,_);return w(r)}__importPersistentIrohAuthor(t){let e=k(t,n.__wbindgen_export),_=o,r=n.wasmclient___importPersistentIrohAuthor(this.__wbg_ptr,e,_);return w(r)}__importPersistentIrohNamespace(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=k(e,n.__wbindgen_export),d=o,l=n.wasmclient___importPersistentIrohNamespace(this.__wbg_ptr,i,b,p,d,_,r);return w(l)}__importPersistentIrohTicket(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=n.wasmclient___importPersistentIrohTicket(this.__wbg_ptr,r,i,e,_);return w(b)}__initPersistentIrohProtocols(t){let e=n.wasmclient___initPersistentIrohProtocols(this.__wbg_ptr,g(t));return w(e)}__irohMoqCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___irohMoqCarrierFailed(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__irohMoqCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient___irohMoqCarrierPrepared(this.__wbg_ptr,_,r,i,b);return w(p)}__irohWebRtcCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___irohWebRtcCarrierFailed(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__irohWebRtcCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient___irohWebRtcCarrierPrepared(this.__wbg_ptr,_,r,i,b);return w(p)}__putPersistentIrohBytes(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=k(e,n.__wbindgen_export),p=o,d=k(_,n.__wbindgen_export),l=o,f=n.wasmclient___putPersistentIrohBytes(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__queryPersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient___queryPersistentIrohNamespace(this.__wbg_ptr,_,r,i,b);return w(p)}__removePersistentIrohNamespace(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=n.wasmclient___removePersistentIrohNamespace(this.__wbg_ptr,r,i,e,_);return w(b)}__retireIrohMoqCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient___retireIrohMoqCarrier(this.__wbg_ptr,_,r,i,b);return w(p)}__retireIrohWebRtcCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient___retireIrohWebRtcCarrier(this.__wbg_ptr,_,r,i,b);return w(p)}__setIrohCarrierActionHandler(t){n.wasmclient___setIrohCarrierActionHandler(this.__wbg_ptr,u(t)?0:g(t));}__setPersistentIrohHash(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=k(e,n.__wbindgen_export),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___setPersistentIrohHash(this.__wbg_ptr,i,b,p,d,l,f,r);return w(m)}__sharePersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient___sharePersistentIrohNamespace(this.__wbg_ptr,_,r,e);return w(i)}__shutdownPersistentIrohProtocols(){let t=n.wasmclient___shutdownPersistentIrohProtocols(this.__wbg_ptr);return w(t)}add_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_add_peer_scope(this.__wbg_ptr,_,r,i,b);return w(p)}bind_connection_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_bind_connection_device_id(this.__wbg_ptr,_,r,i,b);return w(p)}bind_node_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_bind_node_device_id(this.__wbg_ptr,_,r,i,b);return w(p)}clearConnectionApplicationCryptoKey(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;n.wasmclient_clearConnectionApplicationCryptoKey(this.__wbg_ptr,e,_);}clearIdentityCredential(){n.wasmclient_clearIdentityCredential(this.__wbg_ptr);}clear_session_tokens(){n.wasmclient_clear_session_tokens(this.__wbg_ptr);}confirm_inline_reciprocal_session_admission(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;var I=u(b)?0:c(b,n.__wbindgen_export,n.__wbindgen_export2),R=o;let S=n.wasmclient_confirm_inline_reciprocal_session_admission(this.__wbg_ptr,p,d,e,l,f,m,y,i,I,R);return w(S)}connect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_connect(this.__wbg_ptr,e,_);return w(r)}connect_device(t,e){var _=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;let i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_connect_device(this.__wbg_ptr,_,r,i,b);return w(p)}connection_state(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_connection_state(this.__wbg_ptr,e,_);return w(r)}connection_states(){let t=n.wasmclient_connection_states(this.__wbg_ptr);return w(t)}create_room(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=o,S=c(i,n.__wbindgen_export,n.__wbindgen_export2),E=o,G=n.wasmclient_create_room(this.__wbg_ptr,p,d,l,f,m,y,I,R,S,E,u(b)?Number.MAX_SAFE_INTEGER:b>>>0);return w(G)}create_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_create_session(this.__wbg_ptr,e,_);return w(r)}delete_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_delete_device(this.__wbg_ptr,_,r,i,b);return w(p)}devices_with_status(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_devices_with_status(this.__wbg_ptr,e,_);return w(r)}disconnect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_disconnect(this.__wbg_ptr,e,_);return w(r)}disconnect_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_disconnect_device(this.__wbg_ptr,_,r,i,b);return w(p)}disconnect_transient(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_disconnect_transient(this.__wbg_ptr,e,_);return w(r)}endpoint_id_from_ticket(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_endpoint_id_from_ticket(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),i=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),p=x().getInt32(f+12,!0),d=r,l=i;if(p)throw d=0,l=0,w(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}endpoint_ticket(){let t=n.wasmclient_endpoint_ticket(this.__wbg_ptr);return w(t)}endpoint_ticket_with_token(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_endpoint_ticket_with_token(this.__wbg_ptr,_,r,e);return w(i)}force_reconnect_snapshot(){n.wasmclient_force_reconnect_snapshot(this.__wbg_ptr);}get_members(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient_get_members(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}incoming_streams(){let t=n.wasmclient_incoming_streams(this.__wbg_ptr);return w(t)}initIrohWithTestRelay(t,e){var _=u(t)?0:k(t,n.__wbindgen_export),r=o,i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_initIrohWithTestRelay(this.__wbg_ptr,_,r,i,b);return w(p)}init_iroh(t){var e=u(t)?0:k(t,n.__wbindgen_export),_=o;let r=n.wasmclient_init_iroh(this.__wbg_ptr,e,_);return w(r)}iroh_path_kind(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_iroh_path_kind(this.__wbg_ptr,e,_);return w(r)}iroh_secret_key(){let t=n.wasmclient_iroh_secret_key(this.__wbg_ptr);return w(t)}iroh_transport_rtt_ms(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_iroh_transport_rtt_ms(this.__wbg_ptr,e,_);return w(r)}is_auto_connect_excluded(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;return n.wasmclient_is_auto_connect_excluded(this.__wbg_ptr,e,_)!==0}is_connected(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_is_connected(this.__wbg_ptr,e,_);return w(r)}is_current_transport_stable_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_is_current_transport_stable_id(this.__wbg_ptr,_,r,e);return w(i)}join_room(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o,y=c(r,n.__wbindgen_export,n.__wbindgen_export2),I=o,R=c(i,n.__wbindgen_export,n.__wbindgen_export2),S=o,E=n.wasmclient_join_room(this.__wbg_ptr,b,p,d,l,f,m,y,I,R,S);return w(E)}leave_room(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient_leave_room(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}list_managed_connections(){let t=n.wasmclient_list_managed_connections(this.__wbg_ptr);return w(t)}static newV2(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_newV2(i,b,p);var e=x().getInt32(i+0,!0),_=x().getInt32(i+4,!0),r=x().getInt32(i+8,!0);if(r)throw w(_);return a.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}node_addr(){let t=n.wasmclient_node_addr(this.__wbg_ptr);return w(t)}open_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_bi(this.__wbg_ptr,e,_);return w(r)}open_native_main_control_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_native_main_control_bi(this.__wbg_ptr,e,_);return w(r)}open_peer_bi(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_bi_explicit_file_sender(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi_explicit_file_sender(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_bi_transport_only(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi_transport_only(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_native_bi(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient_open_peer_native_bi(this.__wbg_ptr,r,i,b,p,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return w(d)}open_peer_uni(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_uni(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_uni(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_uni(this.__wbg_ptr,e,_);return w(r)}peer_scopes(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_scopes(this.__wbg_ptr,e,_);return w(r)}peer_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_session(this.__wbg_ptr,e,_);return w(r)}peer_sessions(){let t=n.wasmclient_peer_sessions(this.__wbg_ptr);return w(t)}peer_snapshot(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_snapshot(this.__wbg_ptr,e,_);return w(r)}prepare_inline_reciprocal_session_admission(t,e,_,r,i,b,p,d){let l=c(t,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=o,S=c(i,n.__wbindgen_export,n.__wbindgen_export2),E=o,G=c(b,n.__wbindgen_export,n.__wbindgen_export2),_t=o,rt=c(p,n.__wbindgen_export,n.__wbindgen_export2),ot=o,it=c(d,n.__wbindgen_export,n.__wbindgen_export2),st=o,ct=n.wasmclient_prepare_inline_reciprocal_session_admission(this.__wbg_ptr,l,f,e,m,y,I,R,S,E,G,_t,rt,ot,it,st);return w(ct)}present_session_token_to_host(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_present_session_token_to_host(this.__wbg_ptr,_,r,i,b);return w(p)}present_session_token_to_host_with_payload(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;var d=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o;let f=n.wasmclient_present_session_token_to_host_with_payload(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}present_session_token_to_host_with_payload_and_device_id(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_present_session_token_to_host_with_payload_and_device_id(this.__wbg_ptr,i,b,p,d,l,f,m,y);return w(I)}rankRoutes(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),p=tt(t,n.__wbindgen_export),d=o,l=tt(e,n.__wbindgen_export),f=o;n.wasmclient_rankRoutes(b,this.__wbg_ptr,p,d,l,f);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),i=At(_,r).slice();return n.__wbindgen_export4(_,r*4,4),i}finally{n.__wbindgen_add_to_stack_pointer(16);}}register_session_token(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_register_session_token(this.__wbg_ptr,r,i,b,p,_);}register_session_token_with_expiry_ms(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;n.wasmclient_register_session_token_with_expiry_ms(this.__wbg_ptr,i,b,p,d,_,r);}reject_connection_admission(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_reject_connection_admission(this.__wbg_ptr,_,r,i,b);return w(p)}release_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_release_peer_scope(this.__wbg_ptr,_,r,i,b);return w(p)}remote_session_admission_ready_for_ticket(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_remote_session_admission_ready_for_ticket(this.__wbg_ptr,e,_);return w(r)}report_managed_connection_settled(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o;let m=n.wasmclient_report_managed_connection_settled(this.__wbg_ptr,p,d,e,l,f,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(b),u(b)?BigInt(0):b);return w(m)}report_transport_status(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o;var m=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_report_transport_status(this.__wbg_ptr,p,d,l,f,m,y,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(b),u(b)?BigInt(0):b);return w(I)}resolve_peer_connection_records(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_resolve_peer_connection_records(this.__wbg_ptr,e,_);return w(r)}revoke_session_token(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_revoke_session_token(i,this.__wbg_ptr,b,p);var e=x().getInt32(i+0,!0),_=x().getInt32(i+4,!0),r=x().getInt32(i+8,!0);if(r)throw w(_);return w(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}revoke_tokens_by_scope(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_revoke_tokens_by_scope(this.__wbg_ptr,e,_);return w(r)}runtime_policy(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmclient_runtime_policy(r,this.__wbg_ptr);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw w(e);return w(t)}finally{n.__wbindgen_add_to_stack_pointer(16);}}same_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_same_peer(this.__wbg_ptr,_,r,i,b);return w(p)}search_devices(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_search_devices(this.__wbg_ptr,e,_);return w(r)}send_message(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_send_message(this.__wbg_ptr,i,b,p,d,l,f,m,y);return w(I)}send_native_main_control_frame(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_send_native_main_control_frame(this.__wbg_ptr,_,r,i,b);return w(p)}send_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_send_peer(this.__wbg_ptr,_,r,i,b);return w(p)}send_peer_application_frame(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=k(e,n.__wbindgen_export),p=o,d=n.wasmclient_send_peer_application_frame(this.__wbg_ptr,r,i,b,p,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return w(d)}setConnectionApplicationCryptoKey(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_setConnectionApplicationCryptoKey(this.__wbg_ptr,_,r,i,b);return w(p)}setConnectionApplicationCryptoRequired(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o;n.wasmclient_setConnectionApplicationCryptoRequired(r,this.__wbg_ptr,i,b);var e=x().getInt32(r+0,!0),_=x().getInt32(r+4,!0);if(_)throw w(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}setIdentityCredential(t){var e=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;n.wasmclient_setIdentityCredential(this.__wbg_ptr,e,_);}set_auto_connect_excluded(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_set_auto_connect_excluded(this.__wbg_ptr,_,r,e);return w(i)}set_offline(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_set_offline(this.__wbg_ptr,e,_);return w(r)}start_auto_connect(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o;n.wasmclient_start_auto_connect(i,this.__wbg_ptr,b,p,d,l);var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);if(r)throw w(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}start_presence_loop(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o;var m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_start_presence_loop(this.__wbg_ptr,i,b,p,d,l,f,m,y);}stop_auth_scoped_activity(){n.wasmclient_stop_auth_scoped_activity(this.__wbg_ptr);}stop_auto_connect(){n.wasmclient_stop_auto_connect(this.__wbg_ptr);}stop_presence_loop(){n.wasmclient_stop_presence_loop(this.__wbg_ptr);}submit_browser_desired_peers(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;n.wasmclient_submit_browser_desired_peers(b,this.__wbg_ptr,t,p,d);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),i=x().getInt32(b+8,!0);if(i)throw w(r);return _!==0}finally{n.__wbindgen_add_to_stack_pointer(16);}}update_device(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o;var f=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o,y=u(i)?0:c(i,n.__wbindgen_export,n.__wbindgen_export2),I=o;let R=n.wasmclient_update_device(this.__wbg_ptr,b,p,d,l,f,m,u(r)?0:g(r),y,I);return w(R)}update_presence(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o;var y=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),I=o;let R=n.wasmclient_update_presence(this.__wbg_ptr,b,p,d,l,f,m,y,I,!u(i),u(i)?BigInt(0):i);return w(R)}update_session(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_update_session(this.__wbg_ptr,_,r,i,b);return w(p)}validate_session_token(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_validate_session_token(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),i=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),p=x().getInt32(f+12,!0),d=r,l=i;if(p)throw d=0,l=0,w(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}validate_session_token_for_connection(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_validate_session_token_for_connection(this.__wbg_ptr,_,r,i,b);return w(p)}validate_session_token_for_connection_with_payload(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;var d=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o;let f=n.wasmclient_validate_session_token_for_connection_with_payload(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}wait_for_settled_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_wait_for_settled_peer(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}wake_browser_auto_connect(){return n.wasmclient_wake_browser_auto_connect(this.__wbg_ptr)!==0}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var D=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmconnection_free(t,0);}create_data_channel(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmconnection_create_data_channel(this.__wbg_ptr,e,_);return w(r)}constructor(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmconnection_new(r);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw w(e);return this.__wbg_ptr=t,Z.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16);}}};Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);function Wt(){n.start();}function et(){return {__proto__:null,"./openrtc_bg.js":{__proto__:null,__wbg_Error_9dc85fe1bc224456:function(t,e){let _=Error(v(t,e));return g(_)},__wbg_Number_4779d427bae39753:function(t){return Number(s(t))},__wbg_String_8564e559799eccda:function(t,e){let _=String(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6:function(t,e){let _=s(e),r=typeof _=="bigint"?_:void 0;x().setBigInt64(t+8,u(r)?BigInt(0):r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_boolean_get_b131b2f36d6b2f55:function(t){let e=s(t),_=typeof e=="boolean"?e:void 0;return u(_)?16777215:_?1:0},__wbg___wbindgen_debug_string_56c147eb1a51f0c4:function(t,e){let _=H(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_in_ce8569b2fc6f5088:function(t,e){return s(t)in s(e)},__wbg___wbindgen_is_bigint_df272c65456269c2:function(t){return typeof s(t)=="bigint"},__wbg___wbindgen_is_function_147961669f068cd4:function(t){return typeof s(t)=="function"},__wbg___wbindgen_is_null_ced4761460071341:function(t){return s(t)===null},__wbg___wbindgen_is_object_3a2c414391dbf751:function(t){let e=s(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6541b0f6ecd4e8e5:function(t){return typeof s(t)=="string"},__wbg___wbindgen_is_undefined_4410e3c20a99fa97:function(t){return s(t)===void 0},__wbg___wbindgen_jsval_eq_174c93ec61bab0c5:function(t,e){return s(t)===s(e)},__wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c:function(t,e){return s(t)==s(e)},__wbg___wbindgen_number_get_588ed6b97f0d7e14:function(t,e){let _=s(e),r=typeof _=="number"?_:void 0;x().setFloat64(t+8,u(r)?0:r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_string_get_fa2687d531ed17a5:function(t,e){let _=s(e),r=typeof _=="string"?_:void 0;var i=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),b=o;x().setInt32(t+4,b,true),x().setInt32(t+0,i,true);},__wbg___wbindgen_throw_bbadd78c1bac3a77:function(t,e){throw new Error(v(t,e))},__wbg__wbg_cb_unref_c2301a3c9b78104b:function(t){s(t)._wbg_cb_unref();},__wbg_abort_56c00f462c9261d9:function(t,e){s(t).abort(s(e));},__wbg_abort_f2416f4a9852003e:function(t){s(t).abort();},__wbg_addEventListener_b635263c509aa7de:function(){return h(function(t,e,_,r){s(t).addEventListener(v(e,_),s(r));},arguments)},__wbg_append_c5a0c94a6a73b22e:function(){return h(function(t,e,_,r,i){s(t).append(v(e,_),v(r,i));},arguments)},__wbg_apply_5d99f956e2dda74d:function(){return h(function(t,e,_){let r=s(t).apply(s(e),s(_));return g(r)},arguments)},__wbg_arrayBuffer_cc7704fa158b907a:function(){return h(function(t){let e=s(t).arrayBuffer();return g(e)},arguments)},__wbg_bistream_new:function(t){let e=q.__wrap(t);return g(e)},__wbg_body_442a47f02322d7b0:function(t){let e=s(t).body;return u(e)?0:g(e)},__wbg_buffer_8524b3453cde4918:function(t){let e=s(t).buffer;return g(e)},__wbg_bufferedAmount_c1581bbb06f4f36c:function(t){return s(t).bufferedAmount},__wbg_byobRequest_cc72d210de793e64:function(t){let e=s(t).byobRequest;return u(e)?0:g(e)},__wbg_byteLength_96807b1d9ab24a4c:function(t){return s(t).byteLength},__wbg_byteOffset_a9c7002428843c41:function(t){return s(t).byteOffset},__wbg_call_91f00ddc43e01490:function(){return h(function(t,e){let _=s(t).call(s(e));return g(_)},arguments)},__wbg_call_ec09a4cf93377d3a:function(){return h(function(t,e,_){let r=s(t).call(s(e),s(_));return g(r)},arguments)},__wbg_cancel_f3a197b26dc88b39:function(t){let e=s(t).cancel();return g(e)},__wbg_catch_66060324c27be6f7:function(t,e){let _=s(t).catch(s(e));return g(_)},__wbg_clearTimeout_113b1cde814ec762:function(t){let e=clearTimeout(w(t));return g(e)},__wbg_clearTimeout_333bba87532ab9d3:function(t){let e=clearTimeout(w(t));return g(e)},__wbg_clearTimeout_47a40e3be01ed7a3:function(){return h(function(t,e){s(t).clearTimeout(w(e));},arguments)},__wbg_close_296263cfe1bb2999:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_388d99468213b286:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_4857e22d08b71356:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_f3365df7ba1b74d3:function(t){s(t).close();},__wbg_code_1cda2855fcd9b009:function(t){return s(t).code},__wbg_code_70beb7b22374d55e:function(t){return s(t).code},__wbg_createDataChannel_122bd3d8aacee49b:function(t,e,_){let r=s(t).createDataChannel(v(e,_));return g(r)},__wbg_crypto_38df2bab126b63dc:function(t){let e=s(t).crypto;return g(e)},__wbg_data_8a04443c1e5a8cd3:function(t){let e=s(t).data;return g(e)},__wbg_dispatchEvent_cc62a6a43d28b01c:function(){return h(function(t,e){return s(t).dispatchEvent(s(e))},arguments)},__wbg_done_6a8439e544ec6206:function(t){return s(t).done},__wbg_enqueue_bbeb09ba0b140f76:function(){return h(function(t,e){s(t).enqueue(s(e));},arguments)},__wbg_entries_4e00eefd3fd54cf1:function(t){let e=s(t).entries();return g(e)},__wbg_entries_5a6a7e7e0df09fe5:function(t){let e=Object.entries(s(t));return g(e)},__wbg_error_6651fee1c71e5da9:function(t){console.error(s(t));},__wbg_error_9a99766f65a03031:function(t,e){console.error(s(t),s(e));},__wbg_error_a6fa202b58aa1cd3:function(t,e){let _,r;try{_=t,r=e,console.error(v(t,e));}finally{n.__wbindgen_export4(_,r,1);}},__wbg_fetch_074561c3e313c86f:function(t){let e=fetch(s(t));return g(e)},__wbg_fetch_22858a12fcf93152:function(t,e){let _=s(t).fetch(s(e));return g(_)},__wbg_from_8a57180716c586ee:function(t){let e=Array.from(s(t));return g(e)},__wbg_getRandomValues_76dfc69825c9c552:function(){return h(function(t,e){globalThis.crypto.getRandomValues(A(t,e));},arguments)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return h(function(t,e){s(t).getRandomValues(s(e));},arguments)},__wbg_getReader_9facd4f899beac89:function(){return h(function(t){let e=s(t).getReader();return g(e)},arguments)},__wbg_get_44e98e27bda25b5b:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_4b90d6d8c5deb5d5:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_52a8a619f7b88df6:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_done_c21b9933fc9a9e9c:function(t){let e=s(t).done;return u(e)?16777215:e?1:0},__wbg_get_unchecked_46e778e3cec74b5e:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_value_ad568c7d3db9073f:function(t){let e=s(t).value;return g(e)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let _=s(t)[s(e)];return g(_)},__wbg_has_14676d88c1340d2c:function(){return h(function(t,e){return Reflect.has(s(t),s(e))},arguments)},__wbg_headers_5b19cf40627ae54d:function(t){let e=s(t).headers;return g(e)},__wbg_info_a2b5f8a5dae8b26c:function(t){console.info(s(t));},__wbg_instanceof_ArrayBuffer_a581da923203f29f:function(t){let e;try{e=s(t)instanceof ArrayBuffer;}catch{e=false;}return e},__wbg_instanceof_Blob_5c4e145be35f9b1e:function(t){let e;try{e=s(t)instanceof Blob;}catch{e=false;}return e},__wbg_instanceof_Map_7f94c740225003e2:function(t){let e;try{e=s(t)instanceof Map;}catch{e=false;}return e},__wbg_instanceof_Promise_aa24ea31000d4ee6:function(t){let e;try{e=s(t)instanceof Promise;}catch{e=false;}return e},__wbg_instanceof_Response_36a65a969abaa7c6:function(t){let e;try{e=s(t)instanceof Response;}catch{e=false;}return e},__wbg_instanceof_Uint8Array_b6fe1ac89eba107e:function(t){let e;try{e=s(t)instanceof Uint8Array;}catch{e=false;}return e},__wbg_instanceof_Window_9e0fe7d3d1ff4342:function(t){let e;try{e=s(t)instanceof Window;}catch{e=false;}return e},__wbg_isArray_139f48e3c057ede8:function(t){return Array.isArray(s(t))},__wbg_isSafeInteger_c22ccb4af2201fe9:function(t){return Number.isSafeInteger(s(t))},__wbg_iterator_9b36cebf3be7b7cd:function(){return g(Symbol.iterator)},__wbg_length_68a9d5278d084f4f:function(t){return s(t).length},__wbg_length_fb04d16d7bdf6d4c:function(t){return s(t).length},__wbg_log_6614a4effdb4e983:function(t){console.log(s(t));},__wbg_maxRetransmits_dfa0382c31f8e2ca:function(t){let e=s(t).maxRetransmits;return u(e)?16777215:e},__wbg_message_12958526424a887b:function(t,e){let _=s(e).message,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_msCrypto_bd5a034af96bcba6:function(t){let e=s(t).msCrypto;return g(e)},__wbg_new_0b303268aa395a38:function(){let t=new Array;return g(t)},__wbg_new_189262ff31890c23:function(){return h(function(){let t=new Headers;return g(t)},arguments)},__wbg_new_20b778a4c5c691c3:function(){let t=new Object;return g(t)},__wbg_new_227d7c05414eb861:function(){let t=new Error;return g(t)},__wbg_new_24739629d416f982:function(){return h(function(){let t=new AbortController;return g(t)},arguments)},__wbg_new_5fae30e6b23db8df:function(t,e){let _=new Error(v(t,e));return g(_)},__wbg_new_883c0db065f06efd:function(){return g(new Map)},__wbg_new_a3e5112401a82338:function(){return h(function(t,e){let _=new WebSocket(v(t,e));return g(_)},arguments)},__wbg_new_b06772b280cc6e52:function(t){let e=new Uint8Array(s(t));return g(e)},__wbg_new_from_slice_bb2d1778c0b87eb1:function(t,e){let _=new Uint8Array(A(t,e));return g(_)},__wbg_new_typed_90c3f6c29ba36d19:function(t,e){try{var _={a:t,b:e},r=(b,p)=>{let d=_.a;_.a=0;try{return xt(d,_.b,b,p)}finally{_.a=d;}};let i=new Promise(r);return g(i)}finally{_.a=0;}},__wbg_new_with_byte_offset_and_length_9e1e664fe1a5d385:function(t,e,_){let r=new Uint8Array(s(t),e>>>0,_>>>0);return g(r)},__wbg_new_with_configuration_3a96aa953ca17197:function(){return h(function(t){let e=new RTCPeerConnection(s(t));return g(e)},arguments)},__wbg_new_with_event_init_dict_bd850674488710b1:function(){return h(function(t,e,_){let r=new CustomEvent(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_into_underlying_sink_2596343f9b6c8e58:function(t){let e=new WritableStream(N.__wrap(t));return g(e)},__wbg_new_with_into_underlying_source_fd904252f385f59c:function(t,e){let _=new ReadableStream(O.__wrap(t),w(e));return g(_)},__wbg_new_with_length_4b57a7a5dc67221c:function(t){let e=new Uint8Array(t>>>0);return g(e)},__wbg_new_with_str_and_init_df876572184fe639:function(){return h(function(t,e,_){let r=new Request(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_str_sequence_505a4829cc247e79:function(){return h(function(t,e,_){let r=new WebSocket(v(t,e),s(_));return g(r)},arguments)},__wbg_next_8cb028b6ba50743f:function(){return h(function(t){let e=s(t).next();return g(e)},arguments)},__wbg_next_cfd0b146c9538df8:function(t){let e=s(t).next;return g(e)},__wbg_node_84ea875411254db1:function(t){let e=s(t).node;return g(e)},__wbg_now_bce4dc999095ea77:function(){return Date.now()},__wbg_now_e7c6795a7f81e10f:function(t){return s(t).now()},__wbg_parse_a5c06e19bc1187fd:function(t,e){return Date.parse(v(t,e))},__wbg_peerunistream_new:function(t){let e=B.__wrap(t);return g(e)},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=s(t).performance;return g(e)},__wbg_process_44c7a14e11e9f69e:function(t){let e=s(t).process;return g(e)},__wbg_protocol_28aaef5ea42981d6:function(t,e){let _=s(e).protocol,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_prototypesetcall_956c7493c68e29b4:function(t,e,_){Uint8Array.prototype.set.call(A(t,e),s(_));},__wbg_push_ceb8ef046afb2041:function(t,e){return s(t).push(s(e))},__wbg_queueMicrotask_4698f900840e3286:function(t){queueMicrotask(s(t));},__wbg_queueMicrotask_477a5533c7100338:function(t){let e=s(t).queueMicrotask;return g(e)},__wbg_randomFillSync_6c25eac9869eb53c:function(){return h(function(t,e){s(t).randomFillSync(w(e));},arguments)},__wbg_read_8426c146431f2905:function(t){let e=s(t).read();return g(e)},__wbg_readyState_25243ad6ce649774:function(t){return s(t).readyState},__wbg_reason_4ec455bac79b33ce:function(t,e){let _=s(e).reason,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_releaseLock_188846ef719acb10:function(t){s(t).releaseLock();},__wbg_removeEventListener_016c1d24523b4730:function(){return h(function(t,e,_,r){s(t).removeEventListener(v(e,_),s(r));},arguments)},__wbg_require_b4edbdcf3e2a1ef0:function(){return h(function(){let t=module.require;return g(t)},arguments)},__wbg_resolve_0183de2e8c6b1d54:function(t){let e=Promise.resolve(s(t));return g(e)},__wbg_respond_3cdb4cf32683fd79:function(){return h(function(t,e){s(t).respond(e>>>0);},arguments)},__wbg_send_77521d09456dd693:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_99d049cae69c53cc:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_bac9d3dc4f21ef28:function(){return h(function(t,e,_){s(t).send(v(e,_));},arguments)},__wbg_setTimeout_3a808dd861dd3c12:function(t,e){let _=setTimeout(s(t),e);return g(_)},__wbg_setTimeout_6613a51400c1bf9f:function(){return h(function(t,e,_){let r=s(t).setTimeout(w(e),_);return g(r)},arguments)},__wbg_setTimeout_ef24d2fc3ad97385:function(){return h(function(t,e){let _=setTimeout(s(t),e);return g(_)},arguments)},__wbg_set_5f806304fb633ab3:function(t,e,_){let r=s(t).set(s(e),s(_));return g(r)},__wbg_set_6be42768c690e380:function(t,e,_){s(t)[w(e)]=w(_);},__wbg_set_86698c227e5b9dad:function(t,e,_){s(t).set(A(e,_));},__wbg_set_a6ba3ac0e634b822:function(){return h(function(t,e,_){return Reflect.set(s(t),s(e),s(_))},arguments)},__wbg_set_binaryType_07905e4563fcd9b2:function(t,e){s(t).binaryType=kt[e];},__wbg_set_binaryType_8c2dd2cf1cfc2e28:function(t,e){s(t).binaryType=ht[e];},__wbg_set_body_d1153b16a2b95ca1:function(t,e){s(t).body=s(e);},__wbg_set_bufferedAmountLowThreshold_8969a2db2c745257:function(t,e){s(t).bufferedAmountLowThreshold=e>>>0;},__wbg_set_cache_5a01a8b5e6ca6cf2:function(t,e){s(t).cache=yt[e];},__wbg_set_credentials_e9120ed88b1fc0b8:function(t,e){s(t).credentials=vt[e];},__wbg_set_da33c120a6584674:function(t,e,_){s(t)[e>>>0]=w(_);},__wbg_set_detail_c7af5edea934390b:function(t,e){s(t).detail=s(e);},__wbg_set_handle_event_6147c38b782c7b42:function(t,e){s(t).handleEvent=s(e);},__wbg_set_headers_877ed41890d28af2:function(t,e){s(t).headers=s(e);},__wbg_set_high_water_mark_77da20c49668427d:function(t,e){s(t).highWaterMark=e;},__wbg_set_method_b4ede299b2064f37:function(t,e,_){s(t).method=v(e,_);},__wbg_set_mode_d6c2e1991aa963c6:function(t,e){s(t).mode=It[e];},__wbg_set_onbufferedamountlow_b695487bdd219f98:function(t,e){s(t).onbufferedamountlow=s(e);},__wbg_set_onclose_9cb5c3372e16c192:function(t,e){s(t).onclose=s(e);},__wbg_set_onclose_f8bec1cbeb64aa93:function(t,e){s(t).onclose=s(e);},__wbg_set_onerror_190fe67e911ebf28:function(t,e){s(t).onerror=s(e);},__wbg_set_onmessage_4d57c4ddab951294:function(t,e){s(t).onmessage=s(e);},__wbg_set_onmessage_96337495f0bfb796:function(t,e){s(t).onmessage=s(e);},__wbg_set_onopen_3e2bf6b11d434c2d:function(t,e){s(t).onopen=s(e);},__wbg_set_signal_9022b5aa06a6ce5b:function(t,e){s(t).signal=s(e);},__wbg_signal_41dd1a8913cd0b7d:function(t){let e=s(t).signal;return g(e)},__wbg_stack_3b0d974bbf31e44f:function(t,e){let _=s(e).stack,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_static_accessor_GLOBAL_60a4124bab7dcc9a:function(){let t=typeof global>"u"?null:global;return u(t)?0:g(t)},__wbg_static_accessor_GLOBAL_THIS_95ca6460658b5d13:function(){let t=typeof globalThis>"u"?null:globalThis;return u(t)?0:g(t)},__wbg_static_accessor_SELF_4c95f759a91e9aae:function(){let t=typeof self>"u"?null:self;return u(t)?0:g(t)},__wbg_static_accessor_WINDOW_44b435597f9e9ee7:function(){let t=typeof window>"u"?null:window;return u(t)?0:g(t)},__wbg_status_9e6505cfa3e73a7c:function(t){return s(t).status},__wbg_subarray_42216645a367cd7a:function(t,e,_){let r=s(t).subarray(e>>>0,_>>>0);return g(r)},__wbg_then_254bab9b266a77a5:function(t,e,_){let r=s(t).then(s(e),s(_));return g(r)},__wbg_then_3ea18602c6a5123b:function(t,e){let _=s(t).then(s(e));return g(_)},__wbg_url_72c67c175685a054:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_url_d0b8042af0d1bbba:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_value_3d3defe09fb1ffca:function(t){let e=s(t).value;return g(e)},__wbg_versions_276b2795b1c6a219:function(t){let e=s(t).versions;return g(e)},__wbg_view_15fa5865c6b336e3:function(t){let e=s(t).view;return u(e)?0:g(e)},__wbg_warn_633bacc13ba7e6c3:function(t){console.warn(s(t));},__wbg_wasClean_f17429d064911939:function(t){return s(t).wasClean},__wbindgen_cast_0000000000000001:function(t,e){let _=F(t,e,gt);return g(_)},__wbindgen_cast_0000000000000002:function(t,e){let _=F(t,e,ft);return g(_)},__wbindgen_cast_0000000000000003:function(t,e){let _=F(t,e,dt);return g(_)},__wbindgen_cast_0000000000000004:function(t,e){let _=F(t,e,ut);return g(_)},__wbindgen_cast_0000000000000005:function(t,e){let _=F(t,e,lt);return g(_)},__wbindgen_cast_0000000000000006:function(t,e){let _=F(t,e,bt);return g(_)},__wbindgen_cast_0000000000000007:function(t,e){let _=F(t,e,at);return g(_)},__wbindgen_cast_0000000000000008:function(t,e){let _=Ft(t,e,pt);return g(_)},__wbindgen_cast_0000000000000009:function(t,e){let _=F(t,e,wt);return g(_)},__wbindgen_cast_000000000000000a:function(t){return g(t)},__wbindgen_cast_000000000000000b:function(t){return g(t)},__wbindgen_cast_000000000000000c:function(t,e){let _=A(t,e);return g(_)},__wbindgen_cast_000000000000000d:function(t,e){let _=v(t,e);return g(_)},__wbindgen_cast_000000000000000e:function(t){let e=BigInt.asUintN(64,t);return g(e)},__wbindgen_cast_000000000000000f:function(t,e){var _=A(t,e).slice();return n.__wbindgen_export4(t,e*1,1),g(_)},__wbindgen_object_clone_ref:function(t){let e=s(t);return g(e)},__wbindgen_object_drop_ref:function(t){w(t);}}}}function bt(a,t){n.__wasm_bindgen_func_elem_21400(a,t);}function at(a,t){n.__wasm_bindgen_func_elem_22544(a,t);}function pt(a,t){n.__wasm_bindgen_func_elem_22608(a,t);}function wt(a,t){n.__wasm_bindgen_func_elem_30627(a,t);}function gt(a,t,e){n.__wasm_bindgen_func_elem_21601(a,t,g(e));}function dt(a,t,e){n.__wasm_bindgen_func_elem_18973(a,t,g(e));}function ut(a,t,e){n.__wasm_bindgen_func_elem_4014(a,t,g(e));}function lt(a,t,e){n.__wasm_bindgen_func_elem_23265(a,t,g(e));}function ft(a,t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wasm_bindgen_func_elem_30776(i,a,t,g(e));var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);if(r)throw w(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}function xt(a,t,e,_){n.__wasm_bindgen_func_elem_30778(a,t,g(e),g(_));}var ht=["blob","arraybuffer"],mt=["bytes"],yt=["default","no-store","reload","no-cache","force-cache","only-if-cached"],vt=["omit","same-origin","include"],It=["same-origin","no-cors","cors","navigate"],kt=["arraybuffer","blob"],$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_bistream_free(a,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingbytesource_free(a,1)),K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsink_free(a,1)),J=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsource_free(a,1)),Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_peerunistream_free(a,1)),Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmclient_free(a,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmconnection_free(a,1));function g(a){W===C.length&&C.push(C.length+1);let t=W;return W=C[t],C[t]=a,t}var V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbindgen_export5(a.a,a.b));function H(a){let t=typeof a;if(t=="number"||t=="boolean"||a==null)return `${a}`;if(t=="string")return `"${a}"`;if(t=="symbol"){let r=a.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=a.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(a)){let r=a.length,i="[";r>0&&(i+=H(a[0]));for(let b=1;b<r;b++)i+=", "+H(a[b]);return i+="]",i}let e=/\[object ([^\]]+)\]/.exec(toString.call(a)),_;if(e&&e.length>1)_=e[1];else return toString.call(a);if(_=="Object")try{return "Object("+JSON.stringify(a)+")"}catch{return "Object"}return a instanceof Error?`${a.name}: ${a.message}
|
|
1
|
+
var q=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,$.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_bistream_free(t,0);}get applicationCryptoWrapped(){return n.bistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}get endpoint_id(){let t,e;try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.bistream_endpoint_id(i,this.__wbg_ptr);var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);return t=_,e=r,v(_,r)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(t,e,1);}}finishSend(){let t=n.bistream_finishSend(this.__wbg_ptr);return w(t)}get recv(){let t=n.bistream_recv(this.__wbg_ptr);return w(t)}get send(){let t=n.bistream_send(this.__wbg_ptr);return w(t)}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var L=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingbytesource_free(t,0);}get autoAllocateChunkSize(){return n.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr)>>>0}cancel(){let t=this.__destroy_into_raw();n.intounderlyingbytesource_cancel(t);}pull(t){let e=n.intounderlyingbytesource_pull(this.__wbg_ptr,g(t));return w(e)}start(t){n.intounderlyingbytesource_start(this.__wbg_ptr,g(t));}get type(){let t=n.intounderlyingbytesource_type(this.__wbg_ptr);return mt[t]}};Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);var N=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsink_free(t,0);}abort(t){let e=this.__destroy_into_raw(),_=n.intounderlyingsink_abort(e,g(t));return w(_)}close(){let t=this.__destroy_into_raw(),e=n.intounderlyingsink_close(t);return w(e)}write(t){let e=n.intounderlyingsink_write(this.__wbg_ptr,g(t));return w(e)}};Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);var O=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,J.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_intounderlyingsource_free(t,0);}cancel(){let t=this.__destroy_into_raw();n.intounderlyingsource_cancel(t);}pull(t){let e=n.intounderlyingsource_pull(this.__wbg_ptr,g(t));return w(e)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);var B=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,Y.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_peerunistream_free(t,0);}get applicationCryptoWrapped(){return n.peerunistream_applicationCryptoWrapped(this.__wbg_ptr)!==0}finishSend(){let t=n.peerunistream_finishSend(this.__wbg_ptr);return w(t)}get writable(){let t=n.peerunistream_writable(this.__wbg_ptr);return w(t)}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var U=class a{static __wrap(t){let e=Object.create(a.prototype);return e.__wbg_ptr=t,Q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmclient_free(t,0);}__acknowledgePersistentIrohOutbox(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient___acknowledgePersistentIrohOutbox(this.__wbg_ptr,e,_);return w(r)}__advancePreferredIrohCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___advancePreferredIrohCarrier(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__attachIrohMoqCarrier(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___attachIrohMoqCarrier(this.__wbg_ptr,i,b,p,d,g(_),l,f);return w(m)}__attachIrohWebRtcCarrier(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(r,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___attachIrohWebRtcCarrier(this.__wbg_ptr,i,b,p,d,g(_),l,f);return w(m)}__beginIrohMoqCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___beginIrohMoqCarrier(this.__wbg_ptr,r,i,b,p,_);return w(d)}__beginIrohWebRtcCarrier(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___beginIrohWebRtcCarrier(this.__wbg_ptr,r,i,b,p,_);return w(d)}__beginPreferredIrohCarrier(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___beginPreferredIrohCarrier(this.__wbg_ptr,p,d,l,f,_,r,i,b);return w(m)}__configureIrohMoqCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),p=o;let d=n.wasmclient___configureIrohMoqCarrier(this.__wbg_ptr,t,r,i,b,p);return w(d)}__configureIrohRoutePolicy(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o;let b=n.wasmclient___configureIrohRoutePolicy(this.__wbg_ptr,t,r,i,g(_));return w(b)}__configureIrohWebRtcCarrier(t,e,_){var r=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),i=o;let b=n.wasmclient___configureIrohWebRtcCarrier(this.__wbg_ptr,t,r,i,_);return w(b)}__createPersistentIrohNamespace(t,e){let _=n.wasmclient___createPersistentIrohNamespace(this.__wbg_ptr,t,e);return w(_)}__deletePersistentIrohPrefix(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient___deletePersistentIrohPrefix(this.__wbg_ptr,_,r,i,b);return w(p)}__flushPersistentIrohProtocols(){let t=n.wasmclient___flushPersistentIrohProtocols(this.__wbg_ptr);return w(t)}__handleIrohCarrierControl(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient___handleIrohCarrierControl(this.__wbg_ptr,r,i,b,p,g(_));return w(d)}__hydratePersistentIrohBlob(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient___hydratePersistentIrohBlob(this.__wbg_ptr,e,_);return w(r)}__importPersistentIrohAuthor(t){let e=k(t,n.__wbindgen_export),_=o,r=n.wasmclient___importPersistentIrohAuthor(this.__wbg_ptr,e,_);return w(r)}__importPersistentIrohNamespace(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=k(e,n.__wbindgen_export),d=o,l=n.wasmclient___importPersistentIrohNamespace(this.__wbg_ptr,i,b,p,d,_,r);return w(l)}__importPersistentIrohTicket(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=n.wasmclient___importPersistentIrohTicket(this.__wbg_ptr,r,i,e,_);return w(b)}__initPersistentIrohProtocols(t){let e=n.wasmclient___initPersistentIrohProtocols(this.__wbg_ptr,g(t));return w(e)}__irohMoqCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___irohMoqCarrierFailed(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__irohMoqCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient___irohMoqCarrierPrepared(this.__wbg_ptr,_,r,i,b);return w(p)}__irohWebRtcCarrierFailed(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient___irohWebRtcCarrierFailed(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__irohWebRtcCarrierPrepared(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient___irohWebRtcCarrierPrepared(this.__wbg_ptr,_,r,i,b);return w(p)}__putPersistentIrohBytes(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=k(e,n.__wbindgen_export),p=o,d=k(_,n.__wbindgen_export),l=o,f=n.wasmclient___putPersistentIrohBytes(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}__queryPersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient___queryPersistentIrohNamespace(this.__wbg_ptr,_,r,i,b);return w(p)}__removePersistentIrohNamespace(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=n.wasmclient___removePersistentIrohNamespace(this.__wbg_ptr,r,i,e,_);return w(b)}__retireIrohMoqCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient___retireIrohMoqCarrier(this.__wbg_ptr,_,r,i,b);return w(p)}__retireIrohWebRtcCarrier(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient___retireIrohWebRtcCarrier(this.__wbg_ptr,_,r,i,b);return w(p)}__setIrohCarrierActionHandler(t){n.wasmclient___setIrohCarrierActionHandler(this.__wbg_ptr,u(t)?0:g(t));}__setPersistentIrohHash(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=k(e,n.__wbindgen_export),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=n.wasmclient___setPersistentIrohHash(this.__wbg_ptr,i,b,p,d,l,f,r);return w(m)}__sharePersistentIrohNamespace(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient___sharePersistentIrohNamespace(this.__wbg_ptr,_,r,e);return w(i)}__shutdownPersistentIrohProtocols(){let t=n.wasmclient___shutdownPersistentIrohProtocols(this.__wbg_ptr);return w(t)}add_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_add_peer_scope(this.__wbg_ptr,_,r,i,b);return w(p)}bind_connection_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_bind_connection_device_id(this.__wbg_ptr,_,r,i,b);return w(p)}bind_node_device_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_bind_node_device_id(this.__wbg_ptr,_,r,i,b);return w(p)}clearConnectionApplicationCryptoKey(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;n.wasmclient_clearConnectionApplicationCryptoKey(this.__wbg_ptr,e,_);}clearIdentityCredential(){n.wasmclient_clearIdentityCredential(this.__wbg_ptr);}clear_session_tokens(){n.wasmclient_clear_session_tokens(this.__wbg_ptr);}confirm_inline_reciprocal_session_admission(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;var I=u(b)?0:c(b,n.__wbindgen_export,n.__wbindgen_export2),R=o;let S=n.wasmclient_confirm_inline_reciprocal_session_admission(this.__wbg_ptr,p,d,e,l,f,m,y,i,I,R);return w(S)}connect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_connect(this.__wbg_ptr,e,_);return w(r)}connect_device(t,e){var _=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;let i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_connect_device(this.__wbg_ptr,_,r,i,b);return w(p)}connection_state(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_connection_state(this.__wbg_ptr,e,_);return w(r)}connection_states(){let t=n.wasmclient_connection_states(this.__wbg_ptr);return w(t)}create_room(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=o,S=c(i,n.__wbindgen_export,n.__wbindgen_export2),E=o,G=n.wasmclient_create_room(this.__wbg_ptr,p,d,l,f,m,y,I,R,S,E,u(b)?Number.MAX_SAFE_INTEGER:b>>>0);return w(G)}create_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_create_session(this.__wbg_ptr,e,_);return w(r)}delete_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_delete_device(this.__wbg_ptr,_,r,i,b);return w(p)}devices_with_status(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_devices_with_status(this.__wbg_ptr,e,_);return w(r)}disconnect(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_disconnect(this.__wbg_ptr,e,_);return w(r)}disconnect_device(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_disconnect_device(this.__wbg_ptr,_,r,i,b);return w(p)}disconnect_transient(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_disconnect_transient(this.__wbg_ptr,e,_);return w(r)}endpoint_id_from_ticket(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_endpoint_id_from_ticket(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),i=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),p=x().getInt32(f+12,!0),d=r,l=i;if(p)throw d=0,l=0,w(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}endpoint_ticket(){let t=n.wasmclient_endpoint_ticket(this.__wbg_ptr);return w(t)}endpoint_ticket_with_token(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_endpoint_ticket_with_token(this.__wbg_ptr,_,r,e);return w(i)}force_reconnect_snapshot(){n.wasmclient_force_reconnect_snapshot(this.__wbg_ptr);}get_members(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient_get_members(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}incoming_streams(){let t=n.wasmclient_incoming_streams(this.__wbg_ptr);return w(t)}initIrohWithTestRelay(t,e){var _=u(t)?0:k(t,n.__wbindgen_export),r=o,i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_initIrohWithTestRelay(this.__wbg_ptr,_,r,i,b);return w(p)}init_iroh(t){var e=u(t)?0:k(t,n.__wbindgen_export),_=o;let r=n.wasmclient_init_iroh(this.__wbg_ptr,e,_);return w(r)}iroh_path_kind(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_iroh_path_kind(this.__wbg_ptr,e,_);return w(r)}iroh_secret_key(){let t=n.wasmclient_iroh_secret_key(this.__wbg_ptr);return w(t)}iroh_transport_rtt_ms(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_iroh_transport_rtt_ms(this.__wbg_ptr,e,_);return w(r)}is_auto_connect_excluded(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;return n.wasmclient_is_auto_connect_excluded(this.__wbg_ptr,e,_)!==0}is_connected(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_is_connected(this.__wbg_ptr,e,_);return w(r)}is_current_transport_stable_id(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_is_current_transport_stable_id(this.__wbg_ptr,_,r,e);return w(i)}join_room(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o,y=c(r,n.__wbindgen_export,n.__wbindgen_export2),I=o,R=c(i,n.__wbindgen_export,n.__wbindgen_export2),S=o,E=n.wasmclient_join_room(this.__wbg_ptr,b,p,d,l,f,m,y,I,R,S);return w(E)}leave_room(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=n.wasmclient_leave_room(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}list_managed_connections(){let t=n.wasmclient_list_managed_connections(this.__wbg_ptr);return w(t)}static newV2(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_newV2(i,b,p);var e=x().getInt32(i+0,!0),_=x().getInt32(i+4,!0),r=x().getInt32(i+8,!0);if(r)throw w(_);return a.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}node_addr(){let t=n.wasmclient_node_addr(this.__wbg_ptr);return w(t)}open_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_bi(this.__wbg_ptr,e,_);return w(r)}open_native_main_control_bi(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_native_main_control_bi(this.__wbg_ptr,e,_);return w(r)}open_peer_bi(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_bi_explicit_file_sender(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi_explicit_file_sender(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_bi_transport_only(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_bi_transport_only(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_peer_native_bi(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=n.wasmclient_open_peer_native_bi(this.__wbg_ptr,r,i,b,p,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return w(d)}open_peer_uni(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_open_peer_uni(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}open_uni(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_open_uni(this.__wbg_ptr,e,_);return w(r)}peer_scopes(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_scopes(this.__wbg_ptr,e,_);return w(r)}peer_session(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_session(this.__wbg_ptr,e,_);return w(r)}peer_sessions(){let t=n.wasmclient_peer_sessions(this.__wbg_ptr);return w(t)}peer_snapshot(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_peer_snapshot(this.__wbg_ptr,e,_);return w(r)}prepare_inline_reciprocal_session_admission(t,e,_,r,i,b,p,d){let l=c(t,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o,I=c(r,n.__wbindgen_export,n.__wbindgen_export2),R=o,S=c(i,n.__wbindgen_export,n.__wbindgen_export2),E=o,G=c(b,n.__wbindgen_export,n.__wbindgen_export2),_t=o,rt=c(p,n.__wbindgen_export,n.__wbindgen_export2),ot=o,it=c(d,n.__wbindgen_export,n.__wbindgen_export2),st=o,ct=n.wasmclient_prepare_inline_reciprocal_session_admission(this.__wbg_ptr,l,f,e,m,y,I,R,S,E,G,_t,rt,ot,it,st);return w(ct)}present_session_token_to_host(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_present_session_token_to_host(this.__wbg_ptr,_,r,i,b);return w(p)}present_session_token_to_host_with_payload(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;var d=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o;let f=n.wasmclient_present_session_token_to_host_with_payload(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}present_session_token_to_host_with_payload_and_device_id(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_present_session_token_to_host_with_payload_and_device_id(this.__wbg_ptr,i,b,p,d,l,f,m,y);return w(I)}rankRoutes(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),p=tt(t,n.__wbindgen_export),d=o,l=tt(e,n.__wbindgen_export),f=o;n.wasmclient_rankRoutes(b,this.__wbg_ptr,p,d,l,f);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),i=At(_,r).slice();return n.__wbindgen_export4(_,r*4,4),i}finally{n.__wbindgen_add_to_stack_pointer(16);}}register_session_token(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_register_session_token(this.__wbg_ptr,r,i,b,p,_);}register_session_token_with_expiry_ms(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;n.wasmclient_register_session_token_with_expiry_ms(this.__wbg_ptr,i,b,p,d,_,r);}reject_connection_admission(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_reject_connection_admission(this.__wbg_ptr,_,r,i,b);return w(p)}release_peer_scope(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o;var i=u(e)?0:c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o;let p=n.wasmclient_release_peer_scope(this.__wbg_ptr,_,r,i,b);return w(p)}remote_session_admission_ready_for_ticket(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_remote_session_admission_ready_for_ticket(this.__wbg_ptr,e,_);return w(r)}report_managed_connection_settled(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o;let m=n.wasmclient_report_managed_connection_settled(this.__wbg_ptr,p,d,e,l,f,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(b),u(b)?BigInt(0):b);return w(m)}report_transport_status(t,e,_,r,i,b){let p=c(t,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(e,n.__wbindgen_export,n.__wbindgen_export2),f=o;var m=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_report_transport_status(this.__wbg_ptr,p,d,l,f,m,y,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(b),u(b)?BigInt(0):b);return w(I)}resolve_peer_connection_records(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_resolve_peer_connection_records(this.__wbg_ptr,e,_);return w(r)}revoke_session_token(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o;n.wasmclient_revoke_session_token(i,this.__wbg_ptr,b,p);var e=x().getInt32(i+0,!0),_=x().getInt32(i+4,!0),r=x().getInt32(i+8,!0);if(r)throw w(_);return w(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}revoke_tokens_by_scope(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_revoke_tokens_by_scope(this.__wbg_ptr,e,_);return w(r)}runtime_policy(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmclient_runtime_policy(r,this.__wbg_ptr);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw w(e);return w(t)}finally{n.__wbindgen_add_to_stack_pointer(16);}}same_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_same_peer(this.__wbg_ptr,_,r,i,b);return w(p)}search_devices(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_search_devices(this.__wbg_ptr,e,_);return w(r)}send_message(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;var l=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o,m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;let I=n.wasmclient_send_message(this.__wbg_ptr,i,b,p,d,l,f,m,y);return w(I)}send_native_main_control_frame(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_send_native_main_control_frame(this.__wbg_ptr,_,r,i,b);return w(p)}send_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_send_peer(this.__wbg_ptr,_,r,i,b);return w(p)}send_peer_application_frame(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=k(e,n.__wbindgen_export),p=o,d=n.wasmclient_send_peer_application_frame(this.__wbg_ptr,r,i,b,p,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return w(d)}setConnectionApplicationCryptoKey(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=k(e,n.__wbindgen_export),b=o,p=n.wasmclient_setConnectionApplicationCryptoKey(this.__wbg_ptr,_,r,i,b);return w(p)}setConnectionApplicationCryptoRequired(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o;n.wasmclient_setConnectionApplicationCryptoRequired(r,this.__wbg_ptr,i,b);var e=x().getInt32(r+0,!0),_=x().getInt32(r+4,!0);if(_)throw w(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}setIdentityCredential(t){var e=u(t)?0:c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o;n.wasmclient_setIdentityCredential(this.__wbg_ptr,e,_);}set_auto_connect_excluded(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_set_auto_connect_excluded(this.__wbg_ptr,_,r,e);return w(i)}set_offline(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmclient_set_offline(this.__wbg_ptr,e,_);return w(r)}start_auto_connect(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16),b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o;n.wasmclient_start_auto_connect(i,this.__wbg_ptr,b,p,d,l);var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);if(r)throw w(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}start_presence_loop(t,e,_,r){let i=c(t,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o,l=c(_,n.__wbindgen_export,n.__wbindgen_export2),f=o;var m=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_start_presence_loop(this.__wbg_ptr,i,b,p,d,l,f,m,y);}stop_auth_scoped_activity(){n.wasmclient_stop_auth_scoped_activity(this.__wbg_ptr);}stop_auto_connect(){n.wasmclient_stop_auto_connect(this.__wbg_ptr);}stop_presence_loop(){n.wasmclient_stop_presence_loop(this.__wbg_ptr);}submit_browser_desired_peers(t,e){try{let b=n.__wbindgen_add_to_stack_pointer(-16),p=c(e,n.__wbindgen_export,n.__wbindgen_export2),d=o;n.wasmclient_submit_browser_desired_peers(b,this.__wbg_ptr,t,p,d);var _=x().getInt32(b+0,!0),r=x().getInt32(b+4,!0),i=x().getInt32(b+8,!0);if(i)throw w(r);return _!==0}finally{n.__wbindgen_add_to_stack_pointer(16);}}update_device(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o;var f=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o,y=u(i)?0:c(i,n.__wbindgen_export,n.__wbindgen_export2),I=o;let R=n.wasmclient_update_device(this.__wbg_ptr,b,p,d,l,f,m,u(r)?0:g(r),y,I);return w(R)}update_presence(t,e,_,r,i){let b=c(t,n.__wbindgen_export,n.__wbindgen_export2),p=o,d=c(e,n.__wbindgen_export,n.__wbindgen_export2),l=o,f=c(_,n.__wbindgen_export,n.__wbindgen_export2),m=o;var y=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),I=o;let R=n.wasmclient_update_presence(this.__wbg_ptr,b,p,d,l,f,m,y,I,!u(i),u(i)?BigInt(0):i);return w(R)}update_session(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_update_session(this.__wbg_ptr,_,r,i,b);return w(p)}validate_session_token(t){let e,_;try{let f=n.__wbindgen_add_to_stack_pointer(-16),m=c(t,n.__wbindgen_export,n.__wbindgen_export2),y=o;n.wasmclient_validate_session_token(f,this.__wbg_ptr,m,y);var r=x().getInt32(f+0,!0),i=x().getInt32(f+4,!0),b=x().getInt32(f+8,!0),p=x().getInt32(f+12,!0),d=r,l=i;if(p)throw d=0,l=0,w(b);return e=d,_=l,v(d,l)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}validate_session_token_for_connection(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=c(e,n.__wbindgen_export,n.__wbindgen_export2),b=o,p=n.wasmclient_validate_session_token_for_connection(this.__wbg_ptr,_,r,i,b);return w(p)}validate_session_token_for_connection_with_payload(t,e,_){let r=c(t,n.__wbindgen_export,n.__wbindgen_export2),i=o,b=c(e,n.__wbindgen_export,n.__wbindgen_export2),p=o;var d=u(_)?0:c(_,n.__wbindgen_export,n.__wbindgen_export2),l=o;let f=n.wasmclient_validate_session_token_for_connection_with_payload(this.__wbg_ptr,r,i,b,p,d,l);return w(f)}wait_for_settled_peer(t,e){let _=c(t,n.__wbindgen_export,n.__wbindgen_export2),r=o,i=n.wasmclient_wait_for_settled_peer(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return w(i)}wake_browser_auto_connect(){return n.wasmclient_wake_browser_auto_connect(this.__wbg_ptr)!==0}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var D=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_wasmconnection_free(t,0);}create_data_channel(t){let e=c(t,n.__wbindgen_export,n.__wbindgen_export2),_=o,r=n.wasmconnection_create_data_channel(this.__wbg_ptr,e,_);return w(r)}constructor(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmconnection_new(r);var t=x().getInt32(r+0,!0),e=x().getInt32(r+4,!0),_=x().getInt32(r+8,!0);if(_)throw w(e);return this.__wbg_ptr=t,Z.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16);}}};Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);function Wt(){n.start();}function et(){return {__proto__:null,"./openrtc_bg.js":{__proto__:null,__wbg_Error_9dc85fe1bc224456:function(t,e){let _=Error(v(t,e));return g(_)},__wbg_Number_4779d427bae39753:function(t){return Number(s(t))},__wbg_String_8564e559799eccda:function(t,e){let _=String(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6:function(t,e){let _=s(e),r=typeof _=="bigint"?_:void 0;x().setBigInt64(t+8,u(r)?BigInt(0):r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_boolean_get_b131b2f36d6b2f55:function(t){let e=s(t),_=typeof e=="boolean"?e:void 0;return u(_)?16777215:_?1:0},__wbg___wbindgen_debug_string_56c147eb1a51f0c4:function(t,e){let _=H(s(e)),r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg___wbindgen_in_ce8569b2fc6f5088:function(t,e){return s(t)in s(e)},__wbg___wbindgen_is_bigint_df272c65456269c2:function(t){return typeof s(t)=="bigint"},__wbg___wbindgen_is_function_147961669f068cd4:function(t){return typeof s(t)=="function"},__wbg___wbindgen_is_null_ced4761460071341:function(t){return s(t)===null},__wbg___wbindgen_is_object_3a2c414391dbf751:function(t){let e=s(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6541b0f6ecd4e8e5:function(t){return typeof s(t)=="string"},__wbg___wbindgen_is_undefined_4410e3c20a99fa97:function(t){return s(t)===void 0},__wbg___wbindgen_jsval_eq_174c93ec61bab0c5:function(t,e){return s(t)===s(e)},__wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c:function(t,e){return s(t)==s(e)},__wbg___wbindgen_number_get_588ed6b97f0d7e14:function(t,e){let _=s(e),r=typeof _=="number"?_:void 0;x().setFloat64(t+8,u(r)?0:r,true),x().setInt32(t+0,!u(r),true);},__wbg___wbindgen_string_get_fa2687d531ed17a5:function(t,e){let _=s(e),r=typeof _=="string"?_:void 0;var i=u(r)?0:c(r,n.__wbindgen_export,n.__wbindgen_export2),b=o;x().setInt32(t+4,b,true),x().setInt32(t+0,i,true);},__wbg___wbindgen_throw_bbadd78c1bac3a77:function(t,e){throw new Error(v(t,e))},__wbg__wbg_cb_unref_c2301a3c9b78104b:function(t){s(t)._wbg_cb_unref();},__wbg_abort_56c00f462c9261d9:function(t,e){s(t).abort(s(e));},__wbg_abort_f2416f4a9852003e:function(t){s(t).abort();},__wbg_addEventListener_b635263c509aa7de:function(){return h(function(t,e,_,r){s(t).addEventListener(v(e,_),s(r));},arguments)},__wbg_append_c5a0c94a6a73b22e:function(){return h(function(t,e,_,r,i){s(t).append(v(e,_),v(r,i));},arguments)},__wbg_apply_5d99f956e2dda74d:function(){return h(function(t,e,_){let r=s(t).apply(s(e),s(_));return g(r)},arguments)},__wbg_arrayBuffer_cc7704fa158b907a:function(){return h(function(t){let e=s(t).arrayBuffer();return g(e)},arguments)},__wbg_bistream_new:function(t){let e=q.__wrap(t);return g(e)},__wbg_body_442a47f02322d7b0:function(t){let e=s(t).body;return u(e)?0:g(e)},__wbg_buffer_8524b3453cde4918:function(t){let e=s(t).buffer;return g(e)},__wbg_bufferedAmount_c1581bbb06f4f36c:function(t){return s(t).bufferedAmount},__wbg_byobRequest_cc72d210de793e64:function(t){let e=s(t).byobRequest;return u(e)?0:g(e)},__wbg_byteLength_96807b1d9ab24a4c:function(t){return s(t).byteLength},__wbg_byteOffset_a9c7002428843c41:function(t){return s(t).byteOffset},__wbg_call_91f00ddc43e01490:function(){return h(function(t,e){let _=s(t).call(s(e));return g(_)},arguments)},__wbg_call_ec09a4cf93377d3a:function(){return h(function(t,e,_){let r=s(t).call(s(e),s(_));return g(r)},arguments)},__wbg_cancel_f3a197b26dc88b39:function(t){let e=s(t).cancel();return g(e)},__wbg_catch_66060324c27be6f7:function(t,e){let _=s(t).catch(s(e));return g(_)},__wbg_clearTimeout_113b1cde814ec762:function(t){let e=clearTimeout(w(t));return g(e)},__wbg_clearTimeout_333bba87532ab9d3:function(t){let e=clearTimeout(w(t));return g(e)},__wbg_clearTimeout_47a40e3be01ed7a3:function(){return h(function(t,e){s(t).clearTimeout(w(e));},arguments)},__wbg_close_296263cfe1bb2999:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_388d99468213b286:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_4857e22d08b71356:function(){return h(function(t){s(t).close();},arguments)},__wbg_close_f3365df7ba1b74d3:function(t){s(t).close();},__wbg_code_1cda2855fcd9b009:function(t){return s(t).code},__wbg_code_70beb7b22374d55e:function(t){return s(t).code},__wbg_createDataChannel_122bd3d8aacee49b:function(t,e,_){let r=s(t).createDataChannel(v(e,_));return g(r)},__wbg_crypto_38df2bab126b63dc:function(t){let e=s(t).crypto;return g(e)},__wbg_data_8a04443c1e5a8cd3:function(t){let e=s(t).data;return g(e)},__wbg_dispatchEvent_cc62a6a43d28b01c:function(){return h(function(t,e){return s(t).dispatchEvent(s(e))},arguments)},__wbg_done_6a8439e544ec6206:function(t){return s(t).done},__wbg_enqueue_bbeb09ba0b140f76:function(){return h(function(t,e){s(t).enqueue(s(e));},arguments)},__wbg_entries_4e00eefd3fd54cf1:function(t){let e=s(t).entries();return g(e)},__wbg_entries_5a6a7e7e0df09fe5:function(t){let e=Object.entries(s(t));return g(e)},__wbg_error_6651fee1c71e5da9:function(t){console.error(s(t));},__wbg_error_9a99766f65a03031:function(t,e){console.error(s(t),s(e));},__wbg_error_a6fa202b58aa1cd3:function(t,e){let _,r;try{_=t,r=e,console.error(v(t,e));}finally{n.__wbindgen_export4(_,r,1);}},__wbg_fetch_074561c3e313c86f:function(t){let e=fetch(s(t));return g(e)},__wbg_fetch_22858a12fcf93152:function(t,e){let _=s(t).fetch(s(e));return g(_)},__wbg_from_8a57180716c586ee:function(t){let e=Array.from(s(t));return g(e)},__wbg_getRandomValues_76dfc69825c9c552:function(){return h(function(t,e){globalThis.crypto.getRandomValues(A(t,e));},arguments)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return h(function(t,e){s(t).getRandomValues(s(e));},arguments)},__wbg_getReader_9facd4f899beac89:function(){return h(function(t){let e=s(t).getReader();return g(e)},arguments)},__wbg_get_44e98e27bda25b5b:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_4b90d6d8c5deb5d5:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_52a8a619f7b88df6:function(){return h(function(t,e){let _=Reflect.get(s(t),s(e));return g(_)},arguments)},__wbg_get_done_c21b9933fc9a9e9c:function(t){let e=s(t).done;return u(e)?16777215:e?1:0},__wbg_get_unchecked_46e778e3cec74b5e:function(t,e){let _=s(t)[e>>>0];return g(_)},__wbg_get_value_ad568c7d3db9073f:function(t){let e=s(t).value;return g(e)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let _=s(t)[s(e)];return g(_)},__wbg_has_14676d88c1340d2c:function(){return h(function(t,e){return Reflect.has(s(t),s(e))},arguments)},__wbg_headers_5b19cf40627ae54d:function(t){let e=s(t).headers;return g(e)},__wbg_info_a2b5f8a5dae8b26c:function(t){console.info(s(t));},__wbg_instanceof_ArrayBuffer_a581da923203f29f:function(t){let e;try{e=s(t)instanceof ArrayBuffer;}catch{e=false;}return e},__wbg_instanceof_Blob_5c4e145be35f9b1e:function(t){let e;try{e=s(t)instanceof Blob;}catch{e=false;}return e},__wbg_instanceof_Map_7f94c740225003e2:function(t){let e;try{e=s(t)instanceof Map;}catch{e=false;}return e},__wbg_instanceof_Promise_aa24ea31000d4ee6:function(t){let e;try{e=s(t)instanceof Promise;}catch{e=false;}return e},__wbg_instanceof_Response_36a65a969abaa7c6:function(t){let e;try{e=s(t)instanceof Response;}catch{e=false;}return e},__wbg_instanceof_Uint8Array_b6fe1ac89eba107e:function(t){let e;try{e=s(t)instanceof Uint8Array;}catch{e=false;}return e},__wbg_instanceof_Window_9e0fe7d3d1ff4342:function(t){let e;try{e=s(t)instanceof Window;}catch{e=false;}return e},__wbg_isArray_139f48e3c057ede8:function(t){return Array.isArray(s(t))},__wbg_isSafeInteger_c22ccb4af2201fe9:function(t){return Number.isSafeInteger(s(t))},__wbg_iterator_9b36cebf3be7b7cd:function(){return g(Symbol.iterator)},__wbg_length_68a9d5278d084f4f:function(t){return s(t).length},__wbg_length_fb04d16d7bdf6d4c:function(t){return s(t).length},__wbg_log_6614a4effdb4e983:function(t){console.log(s(t));},__wbg_maxRetransmits_dfa0382c31f8e2ca:function(t){let e=s(t).maxRetransmits;return u(e)?16777215:e},__wbg_message_12958526424a887b:function(t,e){let _=s(e).message,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_msCrypto_bd5a034af96bcba6:function(t){let e=s(t).msCrypto;return g(e)},__wbg_new_0b303268aa395a38:function(){let t=new Array;return g(t)},__wbg_new_189262ff31890c23:function(){return h(function(){let t=new Headers;return g(t)},arguments)},__wbg_new_20b778a4c5c691c3:function(){let t=new Object;return g(t)},__wbg_new_227d7c05414eb861:function(){let t=new Error;return g(t)},__wbg_new_24739629d416f982:function(){return h(function(){let t=new AbortController;return g(t)},arguments)},__wbg_new_5fae30e6b23db8df:function(t,e){let _=new Error(v(t,e));return g(_)},__wbg_new_883c0db065f06efd:function(){return g(new Map)},__wbg_new_a3e5112401a82338:function(){return h(function(t,e){let _=new WebSocket(v(t,e));return g(_)},arguments)},__wbg_new_b06772b280cc6e52:function(t){let e=new Uint8Array(s(t));return g(e)},__wbg_new_from_slice_bb2d1778c0b87eb1:function(t,e){let _=new Uint8Array(A(t,e));return g(_)},__wbg_new_typed_90c3f6c29ba36d19:function(t,e){try{var _={a:t,b:e},r=(b,p)=>{let d=_.a;_.a=0;try{return xt(d,_.b,b,p)}finally{_.a=d;}};let i=new Promise(r);return g(i)}finally{_.a=0;}},__wbg_new_with_byte_offset_and_length_9e1e664fe1a5d385:function(t,e,_){let r=new Uint8Array(s(t),e>>>0,_>>>0);return g(r)},__wbg_new_with_configuration_3a96aa953ca17197:function(){return h(function(t){let e=new RTCPeerConnection(s(t));return g(e)},arguments)},__wbg_new_with_event_init_dict_bd850674488710b1:function(){return h(function(t,e,_){let r=new CustomEvent(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_into_underlying_sink_2596343f9b6c8e58:function(t){let e=new WritableStream(N.__wrap(t));return g(e)},__wbg_new_with_into_underlying_source_fd904252f385f59c:function(t,e){let _=new ReadableStream(O.__wrap(t),w(e));return g(_)},__wbg_new_with_length_4b57a7a5dc67221c:function(t){let e=new Uint8Array(t>>>0);return g(e)},__wbg_new_with_str_and_init_df876572184fe639:function(){return h(function(t,e,_){let r=new Request(v(t,e),s(_));return g(r)},arguments)},__wbg_new_with_str_sequence_505a4829cc247e79:function(){return h(function(t,e,_){let r=new WebSocket(v(t,e),s(_));return g(r)},arguments)},__wbg_next_8cb028b6ba50743f:function(){return h(function(t){let e=s(t).next();return g(e)},arguments)},__wbg_next_cfd0b146c9538df8:function(t){let e=s(t).next;return g(e)},__wbg_node_84ea875411254db1:function(t){let e=s(t).node;return g(e)},__wbg_now_bce4dc999095ea77:function(){return Date.now()},__wbg_now_e7c6795a7f81e10f:function(t){return s(t).now()},__wbg_parse_a5c06e19bc1187fd:function(t,e){return Date.parse(v(t,e))},__wbg_peerunistream_new:function(t){let e=B.__wrap(t);return g(e)},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=s(t).performance;return g(e)},__wbg_process_44c7a14e11e9f69e:function(t){let e=s(t).process;return g(e)},__wbg_protocol_28aaef5ea42981d6:function(t,e){let _=s(e).protocol,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_prototypesetcall_956c7493c68e29b4:function(t,e,_){Uint8Array.prototype.set.call(A(t,e),s(_));},__wbg_push_ceb8ef046afb2041:function(t,e){return s(t).push(s(e))},__wbg_queueMicrotask_4698f900840e3286:function(t){queueMicrotask(s(t));},__wbg_queueMicrotask_477a5533c7100338:function(t){let e=s(t).queueMicrotask;return g(e)},__wbg_randomFillSync_6c25eac9869eb53c:function(){return h(function(t,e){s(t).randomFillSync(w(e));},arguments)},__wbg_read_8426c146431f2905:function(t){let e=s(t).read();return g(e)},__wbg_readyState_25243ad6ce649774:function(t){return s(t).readyState},__wbg_reason_4ec455bac79b33ce:function(t,e){let _=s(e).reason,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_releaseLock_188846ef719acb10:function(t){s(t).releaseLock();},__wbg_removeEventListener_016c1d24523b4730:function(){return h(function(t,e,_,r){s(t).removeEventListener(v(e,_),s(r));},arguments)},__wbg_require_b4edbdcf3e2a1ef0:function(){return h(function(){let t=module.require;return g(t)},arguments)},__wbg_resolve_0183de2e8c6b1d54:function(t){let e=Promise.resolve(s(t));return g(e)},__wbg_respond_3cdb4cf32683fd79:function(){return h(function(t,e){s(t).respond(e>>>0);},arguments)},__wbg_send_77521d09456dd693:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_99d049cae69c53cc:function(){return h(function(t,e,_){s(t).send(A(e,_));},arguments)},__wbg_send_bac9d3dc4f21ef28:function(){return h(function(t,e,_){s(t).send(v(e,_));},arguments)},__wbg_setTimeout_3a808dd861dd3c12:function(t,e){let _=setTimeout(s(t),e);return g(_)},__wbg_setTimeout_6613a51400c1bf9f:function(){return h(function(t,e,_){let r=s(t).setTimeout(w(e),_);return g(r)},arguments)},__wbg_setTimeout_ef24d2fc3ad97385:function(){return h(function(t,e){let _=setTimeout(s(t),e);return g(_)},arguments)},__wbg_set_5f806304fb633ab3:function(t,e,_){let r=s(t).set(s(e),s(_));return g(r)},__wbg_set_6be42768c690e380:function(t,e,_){s(t)[w(e)]=w(_);},__wbg_set_86698c227e5b9dad:function(t,e,_){s(t).set(A(e,_));},__wbg_set_a6ba3ac0e634b822:function(){return h(function(t,e,_){return Reflect.set(s(t),s(e),s(_))},arguments)},__wbg_set_binaryType_07905e4563fcd9b2:function(t,e){s(t).binaryType=kt[e];},__wbg_set_binaryType_8c2dd2cf1cfc2e28:function(t,e){s(t).binaryType=ht[e];},__wbg_set_body_d1153b16a2b95ca1:function(t,e){s(t).body=s(e);},__wbg_set_bufferedAmountLowThreshold_8969a2db2c745257:function(t,e){s(t).bufferedAmountLowThreshold=e>>>0;},__wbg_set_cache_5a01a8b5e6ca6cf2:function(t,e){s(t).cache=yt[e];},__wbg_set_credentials_e9120ed88b1fc0b8:function(t,e){s(t).credentials=vt[e];},__wbg_set_da33c120a6584674:function(t,e,_){s(t)[e>>>0]=w(_);},__wbg_set_detail_c7af5edea934390b:function(t,e){s(t).detail=s(e);},__wbg_set_handle_event_6147c38b782c7b42:function(t,e){s(t).handleEvent=s(e);},__wbg_set_headers_877ed41890d28af2:function(t,e){s(t).headers=s(e);},__wbg_set_high_water_mark_77da20c49668427d:function(t,e){s(t).highWaterMark=e;},__wbg_set_method_b4ede299b2064f37:function(t,e,_){s(t).method=v(e,_);},__wbg_set_mode_d6c2e1991aa963c6:function(t,e){s(t).mode=It[e];},__wbg_set_onbufferedamountlow_b695487bdd219f98:function(t,e){s(t).onbufferedamountlow=s(e);},__wbg_set_onclose_9cb5c3372e16c192:function(t,e){s(t).onclose=s(e);},__wbg_set_onclose_f8bec1cbeb64aa93:function(t,e){s(t).onclose=s(e);},__wbg_set_onerror_190fe67e911ebf28:function(t,e){s(t).onerror=s(e);},__wbg_set_onmessage_4d57c4ddab951294:function(t,e){s(t).onmessage=s(e);},__wbg_set_onmessage_96337495f0bfb796:function(t,e){s(t).onmessage=s(e);},__wbg_set_onopen_3e2bf6b11d434c2d:function(t,e){s(t).onopen=s(e);},__wbg_set_signal_9022b5aa06a6ce5b:function(t,e){s(t).signal=s(e);},__wbg_signal_41dd1a8913cd0b7d:function(t){let e=s(t).signal;return g(e)},__wbg_stack_3b0d974bbf31e44f:function(t,e){let _=s(e).stack,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_static_accessor_GLOBAL_60a4124bab7dcc9a:function(){let t=typeof global>"u"?null:global;return u(t)?0:g(t)},__wbg_static_accessor_GLOBAL_THIS_95ca6460658b5d13:function(){let t=typeof globalThis>"u"?null:globalThis;return u(t)?0:g(t)},__wbg_static_accessor_SELF_4c95f759a91e9aae:function(){let t=typeof self>"u"?null:self;return u(t)?0:g(t)},__wbg_static_accessor_WINDOW_44b435597f9e9ee7:function(){let t=typeof window>"u"?null:window;return u(t)?0:g(t)},__wbg_status_9e6505cfa3e73a7c:function(t){return s(t).status},__wbg_subarray_42216645a367cd7a:function(t,e,_){let r=s(t).subarray(e>>>0,_>>>0);return g(r)},__wbg_then_254bab9b266a77a5:function(t,e,_){let r=s(t).then(s(e),s(_));return g(r)},__wbg_then_3ea18602c6a5123b:function(t,e){let _=s(t).then(s(e));return g(_)},__wbg_url_72c67c175685a054:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_url_d0b8042af0d1bbba:function(t,e){let _=s(e).url,r=c(_,n.__wbindgen_export,n.__wbindgen_export2),i=o;x().setInt32(t+4,i,true),x().setInt32(t+0,r,true);},__wbg_value_3d3defe09fb1ffca:function(t){let e=s(t).value;return g(e)},__wbg_versions_276b2795b1c6a219:function(t){let e=s(t).versions;return g(e)},__wbg_view_15fa5865c6b336e3:function(t){let e=s(t).view;return u(e)?0:g(e)},__wbg_warn_633bacc13ba7e6c3:function(t){console.warn(s(t));},__wbg_wasClean_f17429d064911939:function(t){return s(t).wasClean},__wbindgen_cast_0000000000000001:function(t,e){let _=F(t,e,gt);return g(_)},__wbindgen_cast_0000000000000002:function(t,e){let _=F(t,e,ft);return g(_)},__wbindgen_cast_0000000000000003:function(t,e){let _=F(t,e,dt);return g(_)},__wbindgen_cast_0000000000000004:function(t,e){let _=F(t,e,ut);return g(_)},__wbindgen_cast_0000000000000005:function(t,e){let _=F(t,e,lt);return g(_)},__wbindgen_cast_0000000000000006:function(t,e){let _=F(t,e,bt);return g(_)},__wbindgen_cast_0000000000000007:function(t,e){let _=F(t,e,at);return g(_)},__wbindgen_cast_0000000000000008:function(t,e){let _=Ft(t,e,pt);return g(_)},__wbindgen_cast_0000000000000009:function(t,e){let _=F(t,e,wt);return g(_)},__wbindgen_cast_000000000000000a:function(t){return g(t)},__wbindgen_cast_000000000000000b:function(t){return g(t)},__wbindgen_cast_000000000000000c:function(t,e){let _=A(t,e);return g(_)},__wbindgen_cast_000000000000000d:function(t,e){let _=v(t,e);return g(_)},__wbindgen_cast_000000000000000e:function(t){let e=BigInt.asUintN(64,t);return g(e)},__wbindgen_cast_000000000000000f:function(t,e){var _=A(t,e).slice();return n.__wbindgen_export4(t,e*1,1),g(_)},__wbindgen_object_clone_ref:function(t){let e=s(t);return g(e)},__wbindgen_object_drop_ref:function(t){w(t);}}}}function bt(a,t){n.__wasm_bindgen_func_elem_21399(a,t);}function at(a,t){n.__wasm_bindgen_func_elem_22537(a,t);}function pt(a,t){n.__wasm_bindgen_func_elem_22598(a,t);}function wt(a,t){n.__wasm_bindgen_func_elem_30619(a,t);}function gt(a,t,e){n.__wasm_bindgen_func_elem_21600(a,t,g(e));}function dt(a,t,e){n.__wasm_bindgen_func_elem_18972(a,t,g(e));}function ut(a,t,e){n.__wasm_bindgen_func_elem_4014(a,t,g(e));}function lt(a,t,e){n.__wasm_bindgen_func_elem_23268(a,t,g(e));}function ft(a,t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wasm_bindgen_func_elem_30769(i,a,t,g(e));var _=x().getInt32(i+0,!0),r=x().getInt32(i+4,!0);if(r)throw w(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}function xt(a,t,e,_){n.__wasm_bindgen_func_elem_30771(a,t,g(e),g(_));}var ht=["blob","arraybuffer"],mt=["bytes"],yt=["default","no-store","reload","no-cache","force-cache","only-if-cached"],vt=["omit","same-origin","include"],It=["same-origin","no-cors","cors","navigate"],kt=["arraybuffer","blob"],$=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_bistream_free(a,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingbytesource_free(a,1)),K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsink_free(a,1)),J=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_intounderlyingsource_free(a,1)),Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_peerunistream_free(a,1)),Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmclient_free(a,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbg_wasmconnection_free(a,1));function g(a){W===C.length&&C.push(C.length+1);let t=W;return W=C[t],C[t]=a,t}var V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(a=>n.__wbindgen_export5(a.a,a.b));function H(a){let t=typeof a;if(t=="number"||t=="boolean"||a==null)return `${a}`;if(t=="string")return `"${a}"`;if(t=="symbol"){let r=a.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=a.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(a)){let r=a.length,i="[";r>0&&(i+=H(a[0]));for(let b=1;b<r;b++)i+=", "+H(a[b]);return i+="]",i}let e=/\[object ([^\]]+)\]/.exec(toString.call(a)),_;if(e&&e.length>1)_=e[1];else return toString.call(a);if(_=="Object")try{return "Object("+JSON.stringify(a)+")"}catch{return "Object"}return a instanceof Error?`${a.name}: ${a.message}
|
|
2
2
|
${a.stack}`:_}function Ct(a){a<1028||(C[a]=W,W=a);}function At(a,t){a=a>>>0;let e=x(),_=[];for(let r=a;r<a+4*t;r+=4)_.push(w(e.getUint32(r,true)));return _}function A(a,t){return a=a>>>0,T().subarray(a/1,a/1+t)}var P=null;function x(){return (P===null||P.buffer.detached===true||P.buffer.detached===void 0&&P.buffer!==n.memory.buffer)&&(P=new DataView(n.memory.buffer)),P}function v(a,t){return Pt(a>>>0,t)}var M=null;function T(){return (M===null||M.byteLength===0)&&(M=new Uint8Array(n.memory.buffer)),M}function s(a){return C[a]}function h(a,t){try{return a.apply(this,t)}catch(e){n.__wbindgen_export3(g(e));}}var C=new Array(1024).fill(void 0);C.push(void 0,null,true,false);var W=C.length;function u(a){return a==null}function Ft(a,t,e){let _={a,b:t,cnt:1},r=(...i)=>{_.cnt++;try{return e(_.a,_.b,...i)}finally{r._wbg_cb_unref();}};return r._wbg_cb_unref=()=>{--_.cnt===0&&(n.__wbindgen_export5(_.a,_.b),_.a=0,V.unregister(_));},V.register(r,_,_),r}function F(a,t,e){let _={a,b:t,cnt:1},r=(...i)=>{_.cnt++;let b=_.a;_.a=0;try{return e(b,_.b,...i)}finally{_.a=b,r._wbg_cb_unref();}};return r._wbg_cb_unref=()=>{--_.cnt===0&&(n.__wbindgen_export5(_.a,_.b),_.a=0,V.unregister(_));},V.register(r,_,_),r}function k(a,t){let e=t(a.length*1,1)>>>0;return T().set(a,e/1),o=a.length,e}function tt(a,t){let e=t(a.length*4,4)>>>0,_=x();for(let r=0;r<a.length;r++)_.setUint32(e+4*r,g(a[r]),true);return o=a.length,e}function c(a,t,e){if(e===void 0){let p=j.encode(a),d=t(p.length,1)>>>0;return T().subarray(d,d+p.length).set(p),o=p.length,d}let _=a.length,r=t(_,1)>>>0,i=T(),b=0;for(;b<_;b++){let p=a.charCodeAt(b);if(p>127)break;i[r+b]=p;}if(b!==_){b!==0&&(a=a.slice(b)),r=e(r,_,_=b+a.length*3,1)>>>0;let p=T().subarray(r+b,r+_),d=j.encodeInto(a,p);b+=d.written,r=e(r,_,b,1)>>>0;}return o=b,r}function w(a){let t=s(a);return Ct(a),t}var z=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true});z.decode();var St=2146435072,X=0;function Pt(a,t){return X+=t,X>=St&&(z=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true}),z.decode(),X=t),z.decode(T().subarray(a,a+t))}var j=new TextEncoder;"encodeInto"in j||(j.encodeInto=function(a,t){let e=j.encode(a);return t.set(e),{read:a.length,written:e.length}});var o=0,n;function nt(a,t){return n=a.exports,P=null,M=null,n.__wbindgen_start(),n}async function Mt(a,t){if(typeof Response=="function"&&a instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(a,t)}catch(r){if(a.ok&&e(a.type)&&a.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let _=await a.arrayBuffer();return await WebAssembly.instantiate(_,t)}else {let _=await WebAssembly.instantiate(a,t);return _ instanceof WebAssembly.Instance?{instance:_,module:a}:_}function e(_){switch(_){case "basic":case "cors":case "default":return true}return false}}function jt(a){if(n!==void 0)return n;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module:a}=a:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=et();a instanceof WebAssembly.Module||(a=new WebAssembly.Module(a));let e=new WebAssembly.Instance(a,t);return nt(e)}async function qt(a){if(n!==void 0)return n;a!==void 0&&(Object.getPrototypeOf(a)===Object.prototype?{module_or_path:a}=a:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),a===void 0&&(a=new URL("openrtc_bg.wasm",import.meta.url));let t=et();(typeof a=="string"||typeof Request=="function"&&a instanceof Request||typeof URL=="function"&&a instanceof URL)&&(a=fetch(a));let{instance:e,module:_}=await Mt(await a,t);return nt(e)}export{q as BiStream,L as IntoUnderlyingByteSource,N as IntoUnderlyingSink,O as IntoUnderlyingSource,B as PeerUniStream,U as WasmClient,D as WasmConnection,qt as default,jt as initSync,Wt as start};
|
package/dist/openrtc_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DelegatingRuntimeAdapter, a as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-
|
|
2
|
-
import '../ITransport-
|
|
3
|
-
import '../types-
|
|
4
|
-
import '../capabilities-
|
|
1
|
+
import { D as DelegatingRuntimeAdapter, a as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-fgz5OPQx.js';
|
|
2
|
+
import '../ITransport-UNOXiRJD.js';
|
|
3
|
+
import '../types-l3m3GrOe.js';
|
|
4
|
+
import '../capabilities-BUe5YldR.js';
|
|
5
5
|
|
|
6
6
|
declare class WasmRuntimeAdapter extends DelegatingRuntimeAdapter {
|
|
7
7
|
constructor(options: WasmBridgeOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../chunk-
|
|
1
|
+
import {a}from'../chunk-Y35AKFCM.js';import {y}from'../chunk-ZQF5KSOK.js';import'../chunk-AG2F6MOB.js';import'../chunk-CWGKLGJZ.js';import'../chunk-KJTJLLJE.js';import'../chunk-45WBH7E3.js';import'../chunk-NRXEG5GQ.js';var n=class extends a{constructor(e){super(new y(e));}setWasmClient(e){this.unwrap().setWasmClient(e);}};export{n as WasmRuntimeAdapter};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as RuntimeDevice, o as RuntimeDeviceStatusSnapshot } from '../types-
|
|
2
|
-
import '../ITransport-
|
|
1
|
+
import { h as RuntimeDevice, o as RuntimeDeviceStatusSnapshot } from '../types-l3m3GrOe.js';
|
|
2
|
+
import '../ITransport-UNOXiRJD.js';
|
|
3
3
|
|
|
4
4
|
interface RuntimeDeviceActiveOptions {
|
|
5
5
|
now?: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as RuntimeFactoryOptions, b as PlutoRuntimeAssembly } from '../assembly-
|
|
2
|
-
import { I as IpcRuntimeAdapter } from '../IpcRuntimeAdapter-
|
|
3
|
-
import { W as WasmBridge } from '../DelegatingRuntimeAdapter-
|
|
1
|
+
import { c as RuntimeFactoryOptions, b as PlutoRuntimeAssembly } from '../assembly-CLdwe5T-.js';
|
|
2
|
+
import { I as IpcRuntimeAdapter } from '../IpcRuntimeAdapter-CI3vCzk0.js';
|
|
3
|
+
import { W as WasmBridge } from '../DelegatingRuntimeAdapter-fgz5OPQx.js';
|
|
4
4
|
import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
|
|
5
|
-
import '../types-
|
|
6
|
-
import '../ITransport-
|
|
7
|
-
import '../capabilities-
|
|
5
|
+
import '../types-l3m3GrOe.js';
|
|
6
|
+
import '../ITransport-UNOXiRJD.js';
|
|
7
|
+
import '../capabilities-BUe5YldR.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Legacy assembly helper. Use `OpenRTC()` for app code.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'../chunk-
|
|
1
|
+
import {a as a$2}from'../chunk-HIXXBEWX.js';import {u,a as a$3}from'../chunk-5OTF7W2N.js';import'../chunk-LRT5GEGH.js';import'../chunk-Z2WVSXPW.js';import'../chunk-DUY34MGT.js';import'../chunk-Y35AKFCM.js';import'../chunk-ZQF5KSOK.js';import'../chunk-AG2F6MOB.js';import'../chunk-CWGKLGJZ.js';import {a as a$1}from'../chunk-KJTJLLJE.js';import'../chunk-45WBH7E3.js';import'../chunk-NRXEG5GQ.js';var s=false;function a(){s||(s=true,a$3(async()=>{let t=await import('../openrtc-JUV7TOTL.js');return {initWasm:t.default,WasmClient:t.WasmClient,start:t.start}}));}async function d(t){a();let e=a$1(t),{WasmBridge:i}=await import('../WasmBridge-P5646IVR.js');return a$2(e,new i(e))}function y(t,e){let i=a$1(t);return a$2(i,new u({...i,bridge:e}))}export{y as createIpcClient,d as createWasmClient};
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { P as PeerReconciliationStats } from '../assembly-
|
|
2
|
-
export { O as OPENRTC_RUNTIME_POLICY, a as RuntimeClient, R as RuntimePolicySnapshot, D as ScopedConnectionActorError, d as ScopedConnectionActorErrorKind, e as ScopedConnectionActorHandle, f as ScopedConnectionActorHandleOptions, g as ScopedConnectionActorRegistry, h as ScopedConnectionActorState, i as ScopedConnectionClose, j as ScopedConnectionDial, k as ScopedConnectionKey, l as ScopedLogicalChannelHandle, m as ScopedPreferredTransport, n as getRuntimePolicy, o as scopedConnectionKey, p as scopedConnectionKeyToString } from '../assembly-
|
|
1
|
+
import { P as PeerReconciliationStats } from '../assembly-CLdwe5T-.js';
|
|
2
|
+
export { O as OPENRTC_RUNTIME_POLICY, a as RuntimeClient, R as RuntimePolicySnapshot, D as ScopedConnectionActorError, d as ScopedConnectionActorErrorKind, e as ScopedConnectionActorHandle, f as ScopedConnectionActorHandleOptions, g as ScopedConnectionActorRegistry, h as ScopedConnectionActorState, i as ScopedConnectionClose, j as ScopedConnectionDial, k as ScopedConnectionKey, l as ScopedLogicalChannelHandle, m as ScopedPreferredTransport, n as getRuntimePolicy, o as scopedConnectionKey, p as scopedConnectionKeyToString } from '../assembly-CLdwe5T-.js';
|
|
3
3
|
import { OpenRTCClient } from '../OpenRTCShared.js';
|
|
4
|
-
import { f as OpenRTCCapabilityHandle } from '../types-
|
|
5
|
-
import { C as Connection, D as RuntimeConnectionTarget, s as RuntimeRawConnection } from '../types-
|
|
6
|
-
export { F as ChannelDescriptor, G as ConnectionEvent, H as ConnectionTarget, J as DeviceProfile, K as IncomingStream, I as IrohBrowserProtocolStore, y as IrohDocEntry, x as IrohMutationReceipt, w as IrohNamespaceDescriptor, P as PeerConnectOptions, L as PeerReadiness, M as PeerStreamOptions, N as PresenceLoopOptions, O as RawConnection, k as RuntimeApplicationPayloadReadinessOptions, Q as RuntimeApplicationPayloadRouteOptions, S as RuntimeAuthContext, z as RuntimeAuthIdentity, T as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, v as RuntimeClientOptions, l as RuntimeConnectionEvent, j as RuntimeConnectionStateSnapshot, h as RuntimeDevice, p as RuntimeDeviceConnectOptions, U as RuntimeDevicePresenceStatus, V as RuntimeDeviceStatus, o as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, t as RuntimeJoinRoomOptions, q as RuntimeLocalDeviceInfo, r as RuntimeLocalDeviceProfile, W as RuntimeLogicalChannelFraming, n as RuntimeManagedSession, X as RuntimeManagedSessionKind, m as RuntimeManagedSessionOptions, Y as RuntimeManagedSessionPlatform, b as RuntimePeerConnectOptions, d as RuntimePeerHealth, Z as RuntimePeerLifecycleStatus, c as RuntimePeerReadinessSnapshot, _ as RuntimePeerScope, $ as RuntimePeerSessionSnapshot, a as RuntimePeerState, e as RuntimePeerStreamOptions, E as RuntimePresenceLoopOptions, a0 as RuntimePresencePolicy, u as RuntimeRoomMember, g as RuntimeScopedChannelOptions, i as RuntimeScopedLogicalChannel, B as RuntimeSession, a1 as RuntimeUiConnectionStatus, a2 as ScopedChannelOptions, a3 as ScopedLogicalChannel, a4 as Session, a5 as SessionOptions } from '../types-
|
|
4
|
+
import { f as OpenRTCCapabilityHandle } from '../types-DhmY9hBy.js';
|
|
5
|
+
import { C as Connection, D as RuntimeConnectionTarget, s as RuntimeRawConnection } from '../types-l3m3GrOe.js';
|
|
6
|
+
export { F as ChannelDescriptor, G as ConnectionEvent, H as ConnectionTarget, J as DeviceProfile, K as IncomingStream, I as IrohBrowserProtocolStore, y as IrohDocEntry, x as IrohMutationReceipt, w as IrohNamespaceDescriptor, P as PeerConnectOptions, L as PeerReadiness, M as PeerStreamOptions, N as PresenceLoopOptions, O as RawConnection, k as RuntimeApplicationPayloadReadinessOptions, Q as RuntimeApplicationPayloadRouteOptions, S as RuntimeAuthContext, z as RuntimeAuthIdentity, T as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, v as RuntimeClientOptions, l as RuntimeConnectionEvent, j as RuntimeConnectionStateSnapshot, h as RuntimeDevice, p as RuntimeDeviceConnectOptions, U as RuntimeDevicePresenceStatus, V as RuntimeDeviceStatus, o as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, t as RuntimeJoinRoomOptions, q as RuntimeLocalDeviceInfo, r as RuntimeLocalDeviceProfile, W as RuntimeLogicalChannelFraming, n as RuntimeManagedSession, X as RuntimeManagedSessionKind, m as RuntimeManagedSessionOptions, Y as RuntimeManagedSessionPlatform, b as RuntimePeerConnectOptions, d as RuntimePeerHealth, Z as RuntimePeerLifecycleStatus, c as RuntimePeerReadinessSnapshot, _ as RuntimePeerScope, $ as RuntimePeerSessionSnapshot, a as RuntimePeerState, e as RuntimePeerStreamOptions, E as RuntimePresenceLoopOptions, a0 as RuntimePresencePolicy, u as RuntimeRoomMember, g as RuntimeScopedChannelOptions, i as RuntimeScopedLogicalChannel, B as RuntimeSession, a1 as RuntimeUiConnectionStatus, a2 as ScopedChannelOptions, a3 as ScopedLogicalChannel, a4 as Session, a5 as SessionOptions } from '../types-l3m3GrOe.js';
|
|
7
7
|
import * as Draft14 from '@moq/net';
|
|
8
|
-
import {
|
|
9
|
-
import { R as RuntimeCapabilities } from '../capabilities-
|
|
10
|
-
export { B as BROWSER_WASM_RUNTIME_CAPABILITIES, b as BrowserRuntimeCapabilityHost, N as NATIVE_IPC_RUNTIME_CAPABILITIES, c as NativeRuntimeStatusSnapshot, d as NativeRuntimeTransportFeatureStatus, e as RuntimeAdapterKind, a as RuntimeCapabilityProfile, f as cloneRuntimeCapabilities, r as runtimeCapabilitiesForBrowserHost, g as runtimeCapabilitiesFromNativeStatus, h as runtimeCapabilityProfile } from '../capabilities-
|
|
8
|
+
import { a7 as SignalingOptions, I as ISignalingBackend, l as RuntimeIdentity, k as RoomMember, m as SignalingEnvelope, t as SignalingSession, D as Device, q as DesiredPeerProjection, v as BackendConnectionState, a6 as AppLimits, G as GrantScope, Y as JoinRoomOptions, W as IncomingStreamChannelMetadata, a2 as ApplicationCryptoStreamTools, a8 as RoomCreationMode, g as ClientOptions, y as ApplicationPayloadCrypto, j as DiscoveryMode, a1 as ProtocolCapabilityMap, a9 as ScanningLoopOptions, aa as ScanningLoopHandle, ab as RuntimeBootstrapOptions, ac as RuntimeBootstrapResult, z as ApplicationPayloadReadinessOptions, ad as ManagedApplicationRouteOptions, O as PeerState, Q as PeerScope, U as PeerHealth, V as ChannelDescriptor, ae as JoinRequest, N as NativeConnectParams, s as NativeConnectResult } from '../ITransport-UNOXiRJD.js';
|
|
9
|
+
import { R as RuntimeCapabilities } from '../capabilities-BUe5YldR.js';
|
|
10
|
+
export { B as BROWSER_WASM_RUNTIME_CAPABILITIES, b as BrowserRuntimeCapabilityHost, N as NATIVE_IPC_RUNTIME_CAPABILITIES, c as NativeRuntimeStatusSnapshot, d as NativeRuntimeTransportFeatureStatus, e as RuntimeAdapterKind, a as RuntimeCapabilityProfile, f as cloneRuntimeCapabilities, r as runtimeCapabilitiesForBrowserHost, g as runtimeCapabilitiesFromNativeStatus, h as runtimeCapabilityProfile } from '../capabilities-BUe5YldR.js';
|
|
11
11
|
export { RuntimeDeviceActiveOptions, isRuntimeDeviceActive, isRuntimeDeviceConnectable, isRuntimeDeviceRoutable } from './device-status.js';
|
|
12
|
-
export { I as IpcRuntimeAdapter, a as IpcRuntimeAdapterOptions } from '../IpcRuntimeAdapter-
|
|
12
|
+
export { I as IpcRuntimeAdapter, a as IpcRuntimeAdapterOptions } from '../IpcRuntimeAdapter-CI3vCzk0.js';
|
|
13
13
|
export { P as NativeBridge, N as NativeIpcFailureKind, P as PlutoIpcBridge, a as PlutoIpcUnlisten, c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from '../ipc-CflAVodw.js';
|
|
14
|
-
import '../DelegatingRuntimeAdapter-
|
|
14
|
+
import '../DelegatingRuntimeAdapter-fgz5OPQx.js';
|
|
15
15
|
|
|
16
16
|
declare class Signaling {
|
|
17
17
|
private readonly appTag;
|
package/dist/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as runtimeFromCapability}from'../chunk-
|
|
1
|
+
export{a as runtimeFromCapability}from'../chunk-QCPSLUKO.js';import'../chunk-XPL7PUBW.js';export{a as isRuntimeDeviceActive,c as isRuntimeDeviceConnectable,b as isRuntimeDeviceRoutable}from'../chunk-CK6WQV7J.js';export{b as Connection,u as IpcRuntimeAdapter,t as RuntimeClient,c as RuntimeConnectionController,g as ScopedConnectionActorError,j as ScopedConnectionActorHandle,k as ScopedConnectionActorRegistry,f as clog,r as concatRuntimeBytes,e as correlationForDriveGrantScope,q as createRuntimeJsonFrameDecoder,m as createRuntimeU32BEFrameDecoder,o as decodeRuntimeJsonPayload,p as encodeRuntimeJsonFrame,n as encodeRuntimeJsonPayload,l as encodeRuntimeU32BEFrame,s as readRuntimeU32BE,d as renderCorrelationFields,h as scopedConnectionKey,i as scopedConnectionKeyToString}from'../chunk-5OTF7W2N.js';import'../chunk-LRT5GEGH.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'../chunk-Z2WVSXPW.js';import'../chunk-DUY34MGT.js';import'../chunk-Y35AKFCM.js';export{s as BROWSER_WASM_RUNTIME_CAPABILITIES,t as NATIVE_IPC_RUNTIME_CAPABILITIES,q as OPENRTC_RUNTIME_POLICY,u as cloneRuntimeCapabilities,r as getRuntimePolicy,i as logOpenRtcTeardownTrace,v as runtimeCapabilitiesForBrowserHost,w as runtimeCapabilitiesFromNativeStatus,x as runtimeCapabilityProfile}from'../chunk-ZQF5KSOK.js';export{b as openRtcDebug,a as openRtcDebugEnabled,c as openRtcDebugInfo,d as openRtcDebugLog}from'../chunk-AG2F6MOB.js';import'../chunk-CWGKLGJZ.js';import'../chunk-KJTJLLJE.js';import'../chunk-45WBH7E3.js';import'../chunk-NRXEG5GQ.js';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,16 +1,128 @@
|
|
|
1
|
+
import { h as CoordinationGatewayGrantRequest, i as CoordinationGatewayGrant } from './ITransport-UNOXiRJD.js';
|
|
2
|
+
import { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, j as OpenRTCDeviceProfile, O as OpenRTCOptions, a as OpenRTCClient } from './types-DhmY9hBy.js';
|
|
1
3
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
2
|
-
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-Di034GVQ.js';
|
|
3
4
|
import './OpenRTCShared.js';
|
|
4
|
-
import './assembly-
|
|
5
|
-
import './types-
|
|
6
|
-
import './
|
|
7
|
-
|
|
5
|
+
import './assembly-CLdwe5T-.js';
|
|
6
|
+
import './types-l3m3GrOe.js';
|
|
7
|
+
import './capabilities-BUe5YldR.js';
|
|
8
|
+
|
|
9
|
+
interface OpenRTCDeviceProof {
|
|
10
|
+
publicKeyJwk: JsonWebKey;
|
|
11
|
+
signature: string;
|
|
12
|
+
nonce: string;
|
|
13
|
+
issuedAt: number;
|
|
14
|
+
}
|
|
15
|
+
interface OpenRTCDeviceKey {
|
|
16
|
+
readonly publicKeyJwk: JsonWebKey;
|
|
17
|
+
readonly thumbprint: string;
|
|
18
|
+
proof(challenge: (nonce: string, issuedAt: number) => string): Promise<OpenRTCDeviceProof>;
|
|
19
|
+
}
|
|
20
|
+
interface OpenRTCDeviceKeyProvider {
|
|
21
|
+
getOrCreate(appTag: string): Promise<OpenRTCDeviceKey>;
|
|
22
|
+
delete?(appTag: string): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Optional platform-secure record storage. Native hosts use this for the
|
|
25
|
+
* device certificate that is bound to the private key; browsers retain
|
|
26
|
+
* their same-origin localStorage implementation.
|
|
27
|
+
*/
|
|
28
|
+
readSecureRecord?(appTag: string, key: string): Promise<string | null>;
|
|
29
|
+
writeSecureRecord?(appTag: string, key: string, value: string): Promise<void>;
|
|
30
|
+
deleteSecureRecord?(appTag: string, key: string): Promise<void>;
|
|
31
|
+
}
|
|
8
32
|
|
|
9
33
|
interface OpenRTCV2Endpoints {
|
|
10
34
|
controlPlane: string;
|
|
11
35
|
gateway: string;
|
|
12
36
|
}
|
|
13
37
|
|
|
38
|
+
interface CredentialSource {
|
|
39
|
+
type: 'capability' | 'device-certificate';
|
|
40
|
+
token: string;
|
|
41
|
+
avenue: CoordinationGatewayGrantRequest['avenue'];
|
|
42
|
+
expiresAtMs: number;
|
|
43
|
+
renew?: () => Promise<CredentialSource>;
|
|
44
|
+
/**
|
|
45
|
+
* Re-establishes an authenticated device certificate only after the
|
|
46
|
+
* control plane explicitly reports a stale generation. This is separate
|
|
47
|
+
* from time-based renewal so revocation cannot create a refresh loop.
|
|
48
|
+
*/
|
|
49
|
+
recoverRejectedCertificate?: () => Promise<CredentialSource>;
|
|
50
|
+
}
|
|
51
|
+
interface CachedDeviceCertificate {
|
|
52
|
+
token: string;
|
|
53
|
+
expiresAtMs: number;
|
|
54
|
+
principalId?: string;
|
|
55
|
+
signingPublicJwk: JsonWebKey & {
|
|
56
|
+
kid?: string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
interface AuthenticatedDeviceCertificate extends CachedDeviceCertificate {
|
|
60
|
+
principalId: string;
|
|
61
|
+
enrolled: boolean;
|
|
62
|
+
}
|
|
63
|
+
interface OpenRTCV2ControlPlaneEvents {
|
|
64
|
+
beforeLogicalOperation?: (operation: string) => void;
|
|
65
|
+
onLogicalOperation?: (operation: string) => void;
|
|
66
|
+
onAuthEpochChanged?: (auth: OpenRTCAuthProvider) => void;
|
|
67
|
+
}
|
|
68
|
+
declare class OpenRTCV2ControlPlane {
|
|
69
|
+
readonly apiKey: string;
|
|
70
|
+
private readonly endpoints;
|
|
71
|
+
private readonly keyProvider;
|
|
72
|
+
private readonly attestation?;
|
|
73
|
+
private readonly events;
|
|
74
|
+
private readonly botVerification?;
|
|
75
|
+
readonly appTag: string;
|
|
76
|
+
private keyPromise;
|
|
77
|
+
private readonly authEpochs;
|
|
78
|
+
constructor(apiKey: string, endpoints: OpenRTCV2Endpoints, keyProvider: OpenRTCDeviceKeyProvider, attestation?: OpenRTCAttestationProvider | undefined, events?: OpenRTCV2ControlPlaneEvents, botVerification?: OpenRTCBotVerificationProvider | undefined);
|
|
79
|
+
private record;
|
|
80
|
+
private before;
|
|
81
|
+
private authEpoch;
|
|
82
|
+
dispose(): void;
|
|
83
|
+
private key;
|
|
84
|
+
private post;
|
|
85
|
+
capability(kind: 'space' | 'room' | 'ticket', id: string, maxPeers?: number, advancedFanout?: boolean): Promise<CredentialSource>;
|
|
86
|
+
deviceCertificate(auth: OpenRTCAuthProvider, deviceId: string, avenue?: CoordinationGatewayGrantRequest['avenue'], profile?: OpenRTCDeviceProfile, rejected?: AuthenticatedDeviceCertificate): Promise<{
|
|
87
|
+
source: CredentialSource;
|
|
88
|
+
principalId: string;
|
|
89
|
+
enrolled: boolean;
|
|
90
|
+
}>;
|
|
91
|
+
private resolveAuthenticatedDevice;
|
|
92
|
+
private deviceCertificateResult;
|
|
93
|
+
private enrollAuthenticatedDevice;
|
|
94
|
+
listEnrolledDevices(auth: OpenRTCAuthProvider, deviceId: string): Promise<Array<{
|
|
95
|
+
deviceId: string;
|
|
96
|
+
name?: string;
|
|
97
|
+
platform?: string;
|
|
98
|
+
enrolledAtMs: number | null;
|
|
99
|
+
lastGrantAtMs: number | null;
|
|
100
|
+
current: boolean;
|
|
101
|
+
}>>;
|
|
102
|
+
revokeDevice(auth: OpenRTCAuthProvider, currentDeviceId: string, targetDeviceId: string): Promise<void>;
|
|
103
|
+
revokeAllDevices(auth: OpenRTCAuthProvider, currentDeviceId: string, exceptCurrent: boolean): Promise<void>;
|
|
104
|
+
private deleteDeviceKey;
|
|
105
|
+
private deviceManagement;
|
|
106
|
+
durableRoomMembership(source: CredentialSource, roomId: string, action: 'join' | 'leave'): Promise<void>;
|
|
107
|
+
grantProvider(source: CredentialSource, input?: {
|
|
108
|
+
maxPeers?: number;
|
|
109
|
+
features?: Record<string, boolean>;
|
|
110
|
+
deviceProfile?: Pick<OpenRTCDeviceProfile, 'name' | 'platform'>;
|
|
111
|
+
/**
|
|
112
|
+
* Keeps the transport/admission credential relay synchronized
|
|
113
|
+
* when a capability or device certificate is renewed in place.
|
|
114
|
+
* The callback runs only after the replacement source has
|
|
115
|
+
* successfully produced a gateway grant.
|
|
116
|
+
*/
|
|
117
|
+
onSourceRenewed?: (source: {
|
|
118
|
+
token: string;
|
|
119
|
+
expiresAtMs: number;
|
|
120
|
+
}) => Promise<void> | void;
|
|
121
|
+
}): (request: CoordinationGatewayGrantRequest) => Promise<CoordinationGatewayGrant>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/** Focused control-plane factory for live harnesses that do not need a transport runtime. */
|
|
125
|
+
declare function createTestingOpenRTCControlPlane(apiKey: string, endpoints: OpenRTCV2Endpoints, keyNamespace: string): OpenRTCV2ControlPlane;
|
|
14
126
|
declare function createTestingOpenRTC(options: OpenRTCOptions, endpoints: OpenRTCV2Endpoints, testing?: {
|
|
15
127
|
deviceId?: string;
|
|
16
128
|
irohTestRelayUrl?: string;
|
|
@@ -18,4 +130,4 @@ declare function createTestingOpenRTC(options: OpenRTCOptions, endpoints: OpenRT
|
|
|
18
130
|
/** Native equivalent for emulator and harness lanes; never import in product code. */
|
|
19
131
|
declare function createTestingNativeOpenRTC(options: OpenRTCOptions, endpoints: OpenRTCV2Endpoints, bridge: PlutoIpcBridge): OpenRTCClient;
|
|
20
132
|
|
|
21
|
-
export { createTestingNativeOpenRTC, createTestingOpenRTC };
|
|
133
|
+
export { createTestingNativeOpenRTC, createTestingOpenRTC, createTestingOpenRTCControlPlane };
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-7FPG3MFF.js';import'./chunk-VBUDERMM.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-IKZ33R7R.js';import {a as a$1}from'./chunk-7FPG3MFF.js';import {b as b$1}from'./chunk-VBUDERMM.js';import {b}from'./chunk-QCPSLUKO.js';import'./chunk-XPL7PUBW.js';import'./chunk-DUY34MGT.js';import'./chunk-NRXEG5GQ.js';function l(n){let r=e=>`${e}:${n}`;return {getOrCreate:e=>b$1.getOrCreate(r(e)),delete:async e=>{await b$1.delete?.(r(e));},readSecureRecord:(e,t)=>b$1.readSecureRecord?.(r(e),t)??Promise.resolve(null),writeSecureRecord:(e,t,i)=>b$1.writeSecureRecord?.(r(e),t,i)??Promise.resolve(),deleteSecureRecord:(e,t)=>b$1.deleteSecureRecord?.(r(e),t)??Promise.resolve()}}function C(n,r,e){return new a(n,r,l(e))}function R(n,r,e={}){return b(n,{endpoints:r,testingAllowInsecureLoopback:true,platform:"web",...e.deviceId?{deviceIdProvider:async()=>e.deviceId}:{},...e.irohTestRelayUrl?{irohTestRelayUrl:e.irohTestRelayUrl}:{},runtimeFactory:async t=>{let{createWasmClient:i}=await import('./runtime/factories.js');return i(t)}})}function m(n,r,e){return b(n,{endpoints:r,testingAllowInsecureLoopback:true,platform:"native",deviceKeyProvider:a$1(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:i}=await import('./ipcFactory-JTMNUTZI.js');return i(t,e)}})}export{m as createTestingNativeOpenRTC,R as createTestingOpenRTC,C as createTestingOpenRTCControlPlane};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ProtocolName,
|
|
2
|
-
export {
|
|
1
|
+
import { c as ProtocolName, $ as RouteDescriptor, J as ITransport, a0 as ProtocolCapability, a1 as ProtocolCapabilityMap, y as ApplicationPayloadCrypto, a2 as ApplicationCryptoStreamTools } from '../ITransport-UNOXiRJD.js';
|
|
2
|
+
export { a3 as ApplicationCryptoBiStream, a4 as RouteFamily, a5 as RouteImplementationKind } from '../ITransport-UNOXiRJD.js';
|
|
3
3
|
|
|
4
4
|
declare const TRANSPORT_LABELS: readonly ProtocolName[];
|
|
5
5
|
declare function normalizeTransportLabel(value: unknown): ProtocolName | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenRTCPeerNamespace, OpenRTCChannelNamespace, OpenRTCDiagnosticsNamespace, OpenRTCDeviceNamespace } from './OpenRTCShared.js';
|
|
2
|
-
import { R as RuntimeChannelDescriptor } from './types-
|
|
3
|
-
import { P as PlutoIrohConfiguration, a as PlutoRTCConfiguration, b as PlutoMoQConfiguration, T as TransportOptimization, c as ProtocolName } from './ITransport-
|
|
2
|
+
import { R as RuntimeChannelDescriptor } from './types-l3m3GrOe.js';
|
|
3
|
+
import { P as PlutoIrohConfiguration, a as PlutoRTCConfiguration, b as PlutoMoQConfiguration, T as TransportOptimization, c as ProtocolName } from './ITransport-UNOXiRJD.js';
|
|
4
4
|
|
|
5
5
|
interface OpenRTCAuthProvider {
|
|
6
6
|
/** Registered provider ID from the developer app capability manifest. */
|
|
@@ -11,9 +11,8 @@ interface OpenRTCAuthProvider {
|
|
|
11
11
|
* an ordinary access-token refresh. OpenRTC hashes this value together
|
|
12
12
|
* with the app and installation-key thumbprint before persisting a lookup.
|
|
13
13
|
*
|
|
14
|
-
* Optional
|
|
15
|
-
*
|
|
16
|
-
* assertion exchange on a cold process start.
|
|
14
|
+
* Optional because assertion-only providers remain valid, though they
|
|
15
|
+
* cannot skip the assertion exchange on a cold process start.
|
|
17
16
|
*/
|
|
18
17
|
getSessionKey?(): Promise<string | null>;
|
|
19
18
|
getAssertion(input: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as ConnectionOptions, y as ApplicationPayloadCrypto, z as ApplicationPayloadReadinessOptions, F as ApplicationPayloadRouteOptions, c as ProtocolName, H as ApplicationPayloadSendOptions, J as ITransport, K as TransportLatencySnapshot, O as PeerState, Q as PeerScope, U as PeerHealth, V as ChannelDescriptor$1, W as IncomingStreamChannelMetadata, D as Device, v as BackendConnectionState, L as LocalDeviceInfo, n as DeviceStatusSnapshot, X as ManagedDeviceConnectOptions, g as ClientOptions, t as SignalingSession, l as RuntimeIdentity, Y as JoinRoomOptions, k as RoomMember, Z as DevicePresenceStatus, _ as PeerLifecycleStatus, d as PeerSessionSnapshot } from './ITransport-UNOXiRJD.js';
|
|
2
2
|
|
|
3
3
|
type ConnectionHealth = 'unknown' | 'healthy' | 'suspect' | 'stale';
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openrtc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -69,17 +69,11 @@
|
|
|
69
69
|
"release:prepare": "pnpm run build:wasm && pnpm run build:clean && pnpm run check:lightweight-entry && pnpm run check:native-bundle",
|
|
70
70
|
"build:types": "tsc --noEmit",
|
|
71
71
|
"build:wasm": "cd ../../crates/openrtc && OPENRTC_REPO_ROOT=$(cd ../.. && pwd) && CARGO_REGISTRY_ROOT=${CARGO_HOME:-$HOME/.cargo} && RUSTUP_TOOLCHAIN=nightly RUSTFLAGS=\"-Zlocation-detail=none --remap-path-prefix=$HOME=/home --remap-path-prefix=$CARGO_REGISTRY_ROOT=/cargo --remap-path-prefix=$OPENRTC_REPO_ROOT=/openrtc\" wasm-pack build --target web --out-dir ../../packages/openrtc/wasm . --features iroh-protocols-wasm,iroh-transport-webrtc,iroh-transport-moq && rm -rf ../../packages/openrtc/wasm/.gitignore",
|
|
72
|
-
"build:wasm:legacy": "cd ../../crates/openrtc && OPENRTC_REPO_ROOT=$(cd ../.. && pwd) && CARGO_REGISTRY_ROOT=${CARGO_HOME:-$HOME/.cargo} && RUSTUP_TOOLCHAIN=nightly RUSTFLAGS=\"-Zlocation-detail=none --remap-path-prefix=$HOME=/home --remap-path-prefix=$CARGO_REGISTRY_ROOT=/cargo --remap-path-prefix=$OPENRTC_REPO_ROOT=/openrtc\" wasm-pack build --target web --out-dir ../../packages/openrtc/wasm . --features legacy-v1,iroh-protocols-wasm,iroh-transport-webrtc,iroh-transport-moq && rm -rf ../../packages/openrtc/wasm/.gitignore",
|
|
73
72
|
"test": "pnpm run test:deterministic && pnpm run test:emulator",
|
|
74
73
|
"test:deterministic": "OPENRTC_DETERMINISTIC_TESTS=1 vitest run tests/unit tests/contract",
|
|
75
74
|
"test:emulator": "node ../../tests/emulator/run-emulator-suite.mjs",
|
|
76
|
-
"test:
|
|
77
|
-
"test:
|
|
78
|
-
"test:avenues:full": "OPENRTC_EMULATOR_TRANSPORT_MATRIX_FULL=1 OPENRTC_EMULATOR_TRANSPORT_MATRIX_FIVE=1 OPENRTC_EMULATOR_TRANSPORT_MATRIX_REFRESH_FOCUS=1 OPENRTC_EMULATOR_TRANSPORT_MATRIX_FLICKER=1 OPENRTC_EMULATOR_TRANSPORT_MATRIX_RELAY_ONLY=1 OPENRTC_EMULATOR_TEST_FILTER='tests/emulator/AvenueRetention.emulator.test.ts tests/emulator/DriveGrant.revoke-enforcement.desktop-wasm.emulator.test.ts tests/emulator/DriveGrant.zombie-replacement.native-wasm.emulator.test.ts tests/emulator/MagicLink.ephemeral-session.desktop-wasm.emulator.test.ts tests/emulator/MagicLink.ephemeral-session.wasm-wasm.emulator.test.ts tests/emulator/MultiDeviceStress.transport-matrix.emulator.test.ts tests/emulator/NativeStandaloneAuth.parity.emulator.test.ts tests/emulator/RealOpenRtcAcceptance.native-wasm.emulator.test.ts tests/emulator/ThreeStoreReconciliation.disconnect.desktop-wasm.emulator.test.ts tests/emulator/UserDevice.persistent-autoconnect.desktop-desktop.emulator.test.ts tests/emulator/UserDevice.persistent-autoconnect.desktop-wasm.emulator.test.ts tests/emulator/UserDevice.persistent-autoconnect.wasm-wasm.emulator.test.ts tests/emulator/WebRtcUpgrade.offer-answer.native-wasm.emulator.test.ts tests/emulator/WebRtcUpgrade.preexisting-acl-share.desktop-desktop.emulator.test.ts tests/emulator/WebRtcUpgrade.preexisting-acl-share.desktop-wasm.emulator.test.ts tests/emulator/WebRtcUpgrade.reliability.native-wasm.emulator.test.ts' pnpm run test:emulator",
|
|
79
|
-
"test:emulator:running": "FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9100 FIRESTORE_EMULATOR_HOST=127.0.0.1:8082 OPENRTC_FIRESTORE_HOST=127.0.0.1:8082 VITE_USE_EMULATORS=true VITE_OPENRTC_FIRESTORE_EMULATOR_HOST=127.0.0.1:8082 vitest run tests/emulator --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
|
|
80
|
-
"test:acceptance:native:running": "FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9100 FIRESTORE_EMULATOR_HOST=127.0.0.1:8082 OPENRTC_FIRESTORE_HOST=127.0.0.1:8082 VITE_USE_EMULATORS=true VITE_OPENRTC_FIRESTORE_EMULATOR_HOST=127.0.0.1:8082 vitest run tests/emulator/RealOpenRtcAcceptance.native-wasm.emulator.test.ts --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
|
|
81
|
-
"test:live": "pnpm run build:wasm:legacy && pnpm run build && vitest run tests/live",
|
|
82
|
-
"test:live:emulator": "FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9099 vitest run tests/live",
|
|
75
|
+
"test:emulator:running": "vitest run tests/emulator --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
|
|
76
|
+
"test:acceptance:native:running": "vitest run tests/emulator/RealOpenRtcAcceptance.native-wasm.emulator.test.ts --no-file-parallelism --maxWorkers=1 --maxConcurrency=1",
|
|
83
77
|
"test:watch": "vitest",
|
|
84
78
|
"coverage": "vitest run --coverage",
|
|
85
79
|
"prepublishOnly": "pnpm run release:prepare"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{y as WasmBridge}from'./chunk-VOCOZ57Q.js';import'./chunk-AG2F6MOB.js';import'./chunk-CWGKLGJZ.js';import'./chunk-KJTJLLJE.js';import'./chunk-45WBH7E3.js';import'./chunk-NRXEG5GQ.js';
|