openrtc 2.0.0-rc.2 → 2.0.0-rc.4
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-BLNigcS4.d.ts +134 -0
- package/dist/{OpenRTCShared-ZQPu5LqL.d.ts → OpenRTCShared-BswnbjpG.d.ts} +3 -4
- package/dist/chunk-6OLYXEOG.js +1 -0
- package/dist/chunk-GHGHBGHY.js +1 -0
- package/dist/chunk-HXMHYSZF.js +1 -0
- package/dist/{chunk-IEQTFQ3Q.js → chunk-PRBVSCKN.js} +1 -1
- package/dist/{chunk-3USHQ7QW.js → chunk-XPEDISSU.js} +3 -3
- package/dist/factories-PLRICK7J.js +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/ipcFactory-MYHIVIM2.js +1 -0
- package/dist/native.d.ts +5 -5
- package/dist/native.js +1 -1
- package/dist/openrtc-UU4BBJLG.js +2 -0
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
- package/dist/runtime/WasmRuntimeAdapter.js +1 -1
- package/dist/runtime/device-status.d.ts +2 -2
- package/dist/runtime/index.d.ts +10 -25
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/legacy.d.ts +3 -3
- package/dist/runtime/legacy.js +1 -1
- package/dist/runtime/tauri.d.ts +4 -4
- package/dist/{tauri-Cz9n17g8.d.ts → tauri-BgLgJoQA.d.ts} +2 -2
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +1 -1
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-BVJr065k.d.ts → types-BHePJWbM.d.ts} +1 -1
- package/dist/{types-DkgaCyqS.d.ts → types-D0pqNSOf.d.ts} +1 -1
- package/dist/{types-DNl4KHHY.d.ts → types-DzJ8-t1p.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/DelegatingRuntimeAdapter-DqfHkjLy.d.ts +0 -373
- package/dist/chunk-6TAVJ46R.js +0 -1
- package/dist/chunk-GW7P3D54.js +0 -1
- package/dist/chunk-YQWQDTQ3.js +0 -2
- package/dist/factories-SIVMTIHJ.js +0 -1
- package/dist/ipcFactory-QY44OIKA.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as createIpcClient,a as createWasmClient}from'./chunk-6OLYXEOG.js';import'./chunk-GHGHBGHY.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
2
|
-
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-
|
|
3
|
-
export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-
|
|
4
|
-
import './OpenRTCShared-
|
|
5
|
-
import './types-
|
|
2
|
+
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-DzJ8-t1p.js';
|
|
3
|
+
export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-DzJ8-t1p.js';
|
|
4
|
+
import './OpenRTCShared-BswnbjpG.js';
|
|
5
|
+
import './types-BHePJWbM.js';
|
|
6
6
|
import './IEngineBridge-BbsT8hof.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-D0pqNSOf.js';
|
|
8
8
|
import './ITransport-BsPcaov7.js';
|
|
9
9
|
import './capabilities-YSskrE8H.js';
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-NT5YHZQH.js';import {d}from'./chunk-K37WVIZL.js';function i(p){return c(p,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./factories-
|
|
1
|
+
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-NT5YHZQH.js';import {d}from'./chunk-K37WVIZL.js';function i(p){return c(p,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./factories-PLRICK7J.js');return t(e)}})}i.native=function(p,e=d()){return c(p,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:a}=await import('./ipcFactory-MYHIVIM2.js');return a(t,e)}})};export{i as OpenRTC};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as createIpcClient}from'./chunk-HXMHYSZF.js';import'./chunk-GHGHBGHY.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';
|
package/dist/native.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
2
2
|
export { c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from './ipc-CflAVodw.js';
|
|
3
|
-
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-
|
|
4
|
-
export { b as OpenRTCAccessMode, c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannelCatalog, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, j as OpenRTCLatestStateMode, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, r as OpenRTCUsageNamespace, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-
|
|
5
|
-
import './OpenRTCShared-
|
|
6
|
-
import './types-
|
|
3
|
+
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-DzJ8-t1p.js';
|
|
4
|
+
export { b as OpenRTCAccessMode, c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannelCatalog, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, j as OpenRTCLatestStateMode, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, r as OpenRTCUsageNamespace, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-DzJ8-t1p.js';
|
|
5
|
+
import './OpenRTCShared-BswnbjpG.js';
|
|
6
|
+
import './types-BHePJWbM.js';
|
|
7
7
|
import './IEngineBridge-BbsT8hof.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-D0pqNSOf.js';
|
|
9
9
|
import './ITransport-BsPcaov7.js';
|
|
10
10
|
import './capabilities-YSskrE8H.js';
|
|
11
11
|
|
package/dist/native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'./chunk-K37WVIZL.js';function m(n,e){return c(n,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:o}=await import('./ipcFactory-
|
|
1
|
+
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'./chunk-K37WVIZL.js';function m(n,e){return c(n,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:o}=await import('./ipcFactory-MYHIVIM2.js');return o(t,e)}})}export{m as createNativeOpenRTC};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var z=class s{static __wrap(t){let e=Object.create(s.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_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 _=f().getInt32(i+0,!0),r=f().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 p(t)}get recv(){let t=n.bistream_recv(this.__wbg_ptr);return p(t)}get send(){let t=n.bistream_send(this.__wbg_ptr);return p(t)}};Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);var U=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,kt.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,w(t));return p(e)}start(t){n.intounderlyingbytesource_start(this.__wbg_ptr,w(t));}get type(){let t=n.intounderlyingbytesource_type(this.__wbg_ptr);return mt[t]}};Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);var B=class s{static __wrap(t){let e=Object.create(s.prototype);return e.__wbg_ptr=t,H.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,H.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,w(t));return p(_)}close(){let t=this.__destroy_into_raw(),e=n.intounderlyingsink_close(t);return p(e)}write(t){let e=n.intounderlyingsink_write(this.__wbg_ptr,w(t));return p(e)}};Symbol.dispose&&(B.prototype[Symbol.dispose]=B.prototype.free);var N=class s{static __wrap(t){let e=Object.create(s.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,w(t));return p(e)}};Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);var q=class s{static __wrap(t){let e=Object.create(s.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 p(t)}get writable(){let t=n.peerunistream_writable(this.__wbg_ptr);return p(t)}};Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);var D=class s{static __wrap(t){let e=Object.create(s.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);}add_peer_scope(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_add_peer_scope(this.__wbg_ptr,_,r,i,a);return p(g)}bind_connection_device_id(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_bind_connection_device_id(this.__wbg_ptr,_,r,i,a);return p(g)}bind_node_device_id(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_bind_node_device_id(this.__wbg_ptr,_,r,i,a);return p(g)}clearConnectionApplicationCryptoKey(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c;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,a){let g=b(t,n.__wbindgen_export,n.__wbindgen_export2),d=c,x=b(_,n.__wbindgen_export,n.__wbindgen_export2),l=c,h=b(r,n.__wbindgen_export,n.__wbindgen_export2),y=c;var k=u(a)?0:b(a,n.__wbindgen_export,n.__wbindgen_export2),I=c;let R=n.wasmclient_confirm_inline_reciprocal_session_admission(this.__wbg_ptr,g,d,e,x,l,h,y,i,k,I);return p(R)}connect(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_connect(this.__wbg_ptr,e,_);return p(r)}connect_device(t,e){var _=u(t)?0:b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c;let i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_connect_device(this.__wbg_ptr,_,r,i,a);return p(g)}connection_state(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_connection_state(this.__wbg_ptr,e,_);return p(r)}connection_states(){let t=n.wasmclient_connection_states(this.__wbg_ptr);return p(t)}create_room(t,e,_,r,i,a){let g=b(t,n.__wbindgen_export,n.__wbindgen_export2),d=c,x=b(e,n.__wbindgen_export,n.__wbindgen_export2),l=c,h=b(_,n.__wbindgen_export,n.__wbindgen_export2),y=c,k=b(r,n.__wbindgen_export,n.__wbindgen_export2),I=c,R=b(i,n.__wbindgen_export,n.__wbindgen_export2),C=c,X=n.wasmclient_create_room(this.__wbg_ptr,g,d,x,l,h,y,k,I,R,C,u(a)?Number.MAX_SAFE_INTEGER:a>>>0);return p(X)}create_session(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_create_session(this.__wbg_ptr,e,_);return p(r)}delete_device(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_delete_device(this.__wbg_ptr,_,r,i,a);return p(g)}devices_with_status(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_devices_with_status(this.__wbg_ptr,e,_);return p(r)}disconnect(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_disconnect(this.__wbg_ptr,e,_);return p(r)}disconnect_device(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c;var i=u(e)?0:b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c;let g=n.wasmclient_disconnect_device(this.__wbg_ptr,_,r,i,a);return p(g)}disconnect_transient(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_disconnect_transient(this.__wbg_ptr,e,_);return p(r)}endpoint_id_from_ticket(t){let e,_;try{let l=n.__wbindgen_add_to_stack_pointer(-16),h=b(t,n.__wbindgen_export,n.__wbindgen_export2),y=c;n.wasmclient_endpoint_id_from_ticket(l,this.__wbg_ptr,h,y);var r=f().getInt32(l+0,!0),i=f().getInt32(l+4,!0),a=f().getInt32(l+8,!0),g=f().getInt32(l+12,!0),d=r,x=i;if(g)throw d=0,x=0,p(a);return e=d,_=x,v(d,x)}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 p(t)}endpoint_ticket_with_token(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_endpoint_ticket_with_token(this.__wbg_ptr,_,r,e);return p(i)}force_reconnect_snapshot(){n.wasmclient_force_reconnect_snapshot(this.__wbg_ptr);}get_members(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(_,n.__wbindgen_export,n.__wbindgen_export2),x=c,l=n.wasmclient_get_members(this.__wbg_ptr,r,i,a,g,d,x);return p(l)}heartbeat_tick(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(_,n.__wbindgen_export,n.__wbindgen_export2),x=c,l=n.wasmclient_heartbeat_tick(this.__wbg_ptr,r,i,a,g,d,x);return p(l)}incoming_streams(){let t=n.wasmclient_incoming_streams(this.__wbg_ptr);return p(t)}initIrohWithTestRelay(t,e){var _=u(t)?0:j(t,n.__wbindgen_export),r=c,i=u(e)?0:b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c;let g=n.wasmclient_initIrohWithTestRelay(this.__wbg_ptr,_,r,i,a);return p(g)}init_iroh(t){var e=u(t)?0:j(t,n.__wbindgen_export),_=c;let r=n.wasmclient_init_iroh(this.__wbg_ptr,e,_);return p(r)}iroh_path_kind(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_iroh_path_kind(this.__wbg_ptr,e,_);return p(r)}iroh_secret_key(){let t=n.wasmclient_iroh_secret_key(this.__wbg_ptr);return p(t)}iroh_transport_rtt_ms(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_iroh_transport_rtt_ms(this.__wbg_ptr,e,_);return p(r)}is_auto_connect_excluded(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c;return n.wasmclient_is_auto_connect_excluded(this.__wbg_ptr,e,_)!==0}is_connected(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_is_connected(this.__wbg_ptr,e,_);return p(r)}is_current_transport_stable_id(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_is_current_transport_stable_id(this.__wbg_ptr,_,r,e);return p(i)}join_room(t,e,_,r,i){let a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(e,n.__wbindgen_export,n.__wbindgen_export2),x=c,l=b(_,n.__wbindgen_export,n.__wbindgen_export2),h=c,y=b(r,n.__wbindgen_export,n.__wbindgen_export2),k=c,I=b(i,n.__wbindgen_export,n.__wbindgen_export2),R=c,C=n.wasmclient_join_room(this.__wbg_ptr,a,g,d,x,l,h,y,k,I,R);return p(C)}leave_room(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(_,n.__wbindgen_export,n.__wbindgen_export2),x=c,l=n.wasmclient_leave_room(this.__wbg_ptr,r,i,a,g,d,x);return p(l)}list_managed_connections(){let t=n.wasmclient_list_managed_connections(this.__wbg_ptr);return p(t)}static newV2(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c;n.wasmclient_newV2(i,a,g);var e=f().getInt32(i+0,!0),_=f().getInt32(i+4,!0),r=f().getInt32(i+8,!0);if(r)throw p(_);return s.__wrap(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}node_addr(){let t=n.wasmclient_node_addr(this.__wbg_ptr);return p(t)}open_bi(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_open_bi(this.__wbg_ptr,e,_);return p(r)}open_native_main_control_bi(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_open_native_main_control_bi(this.__wbg_ptr,e,_);return p(r)}open_peer_bi(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_open_peer_bi(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(i)}open_peer_bi_explicit_file_sender(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_open_peer_bi_explicit_file_sender(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(i)}open_peer_bi_transport_only(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_open_peer_bi_transport_only(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(i)}open_peer_native_bi(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=n.wasmclient_open_peer_native_bi(this.__wbg_ptr,r,i,a,g,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return p(d)}open_peer_uni(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_open_peer_uni(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(i)}open_uni(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_open_uni(this.__wbg_ptr,e,_);return p(r)}peer_scopes(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_peer_scopes(this.__wbg_ptr,e,_);return p(r)}peer_session(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_peer_session(this.__wbg_ptr,e,_);return p(r)}peer_sessions(){let t=n.wasmclient_peer_sessions(this.__wbg_ptr);return p(t)}peer_snapshot(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_peer_snapshot(this.__wbg_ptr,e,_);return p(r)}prepare_inline_reciprocal_session_admission(t,e,_,r,i,a,g,d){let x=b(t,n.__wbindgen_export,n.__wbindgen_export2),l=c,h=b(_,n.__wbindgen_export,n.__wbindgen_export2),y=c,k=b(r,n.__wbindgen_export,n.__wbindgen_export2),I=c,R=b(i,n.__wbindgen_export,n.__wbindgen_export2),C=c,X=b(a,n.__wbindgen_export,n.__wbindgen_export2),_t=c,rt=b(g,n.__wbindgen_export,n.__wbindgen_export2),ot=c,it=b(d,n.__wbindgen_export,n.__wbindgen_export2),st=c,ct=n.wasmclient_prepare_inline_reciprocal_session_admission(this.__wbg_ptr,x,l,e,h,y,k,I,R,C,X,_t,rt,ot,it,st);return p(ct)}present_session_token_to_host(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_present_session_token_to_host(this.__wbg_ptr,_,r,i,a);return p(g)}present_session_token_to_host_with_payload(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c;var d=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),x=c;let l=n.wasmclient_present_session_token_to_host_with_payload(this.__wbg_ptr,r,i,a,g,d,x);return p(l)}present_session_token_to_host_with_payload_and_device_id(t,e,_,r){let i=b(t,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=b(e,n.__wbindgen_export,n.__wbindgen_export2),d=c;var x=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),l=c,h=u(r)?0:b(r,n.__wbindgen_export,n.__wbindgen_export2),y=c;let k=n.wasmclient_present_session_token_to_host_with_payload_and_device_id(this.__wbg_ptr,i,a,g,d,x,l,h,y);return p(k)}rankRoutes(t,e){try{let a=n.__wbindgen_add_to_stack_pointer(-16),g=tt(t,n.__wbindgen_export),d=c,x=tt(e,n.__wbindgen_export),l=c;n.wasmclient_rankRoutes(a,this.__wbg_ptr,g,d,x,l);var _=f().getInt32(a+0,!0),r=f().getInt32(a+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=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c;n.wasmclient_register_session_token(this.__wbg_ptr,r,i,a,g,_);}register_session_token_with_expiry_ms(t,e,_,r){let i=b(t,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=b(e,n.__wbindgen_export,n.__wbindgen_export2),d=c;n.wasmclient_register_session_token_with_expiry_ms(this.__wbg_ptr,i,a,g,d,_,r);}reject_connection_admission(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_reject_connection_admission(this.__wbg_ptr,_,r,i,a);return p(g)}release_peer_scope(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c;var i=u(e)?0:b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c;let g=n.wasmclient_release_peer_scope(this.__wbg_ptr,_,r,i,a);return p(g)}remote_session_admission_ready_for_ticket(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_remote_session_admission_ready_for_ticket(this.__wbg_ptr,e,_);return p(r)}report_managed_connection_settled(t,e,_,r,i,a){let g=b(t,n.__wbindgen_export,n.__wbindgen_export2),d=c;var x=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),l=c;let h=n.wasmclient_report_managed_connection_settled(this.__wbg_ptr,g,d,e,x,l,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(a),u(a)?BigInt(0):a);return p(h)}report_transport_status(t,e,_,r,i,a){let g=b(t,n.__wbindgen_export,n.__wbindgen_export2),d=c,x=b(e,n.__wbindgen_export,n.__wbindgen_export2),l=c;var h=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),y=c;let k=n.wasmclient_report_transport_status(this.__wbg_ptr,g,d,x,l,h,y,!u(r),u(r)?BigInt(0):r,!u(i),u(i)?BigInt(0):i,!u(a),u(a)?BigInt(0):a);return p(k)}resolve_peer_connection_records(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_resolve_peer_connection_records(this.__wbg_ptr,e,_);return p(r)}revoke_session_token(t){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c;n.wasmclient_revoke_session_token(i,this.__wbg_ptr,a,g);var e=f().getInt32(i+0,!0),_=f().getInt32(i+4,!0),r=f().getInt32(i+8,!0);if(r)throw p(_);return p(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}revoke_tokens_by_scope(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_revoke_tokens_by_scope(this.__wbg_ptr,e,_);return p(r)}runtime_policy(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmclient_runtime_policy(r,this.__wbg_ptr);var t=f().getInt32(r+0,!0),e=f().getInt32(r+4,!0),_=f().getInt32(r+8,!0);if(_)throw p(e);return p(t)}finally{n.__wbindgen_add_to_stack_pointer(16);}}same_peer(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_same_peer(this.__wbg_ptr,_,r,i,a);return p(g)}search_devices(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_search_devices(this.__wbg_ptr,e,_);return p(r)}send_message(t,e,_,r){let i=b(t,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=b(e,n.__wbindgen_export,n.__wbindgen_export2),d=c;var x=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),l=c,h=u(r)?0:b(r,n.__wbindgen_export,n.__wbindgen_export2),y=c;let k=n.wasmclient_send_message(this.__wbg_ptr,i,a,g,d,x,l,h,y);return p(k)}send_peer(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=j(e,n.__wbindgen_export),a=c,g=n.wasmclient_send_peer(this.__wbg_ptr,_,r,i,a);return p(g)}send_peer_application_frame(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=j(e,n.__wbindgen_export),g=c,d=n.wasmclient_send_peer_application_frame(this.__wbg_ptr,r,i,a,g,u(_)?Number.MAX_SAFE_INTEGER:_>>>0);return p(d)}setConnectionApplicationCryptoKey(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=j(e,n.__wbindgen_export),a=c,g=n.wasmclient_setConnectionApplicationCryptoKey(this.__wbg_ptr,_,r,i,a);return p(g)}setConnectionApplicationCryptoRequired(t){try{let r=n.__wbindgen_add_to_stack_pointer(-16),i=b(t,n.__wbindgen_export,n.__wbindgen_export2),a=c;n.wasmclient_setConnectionApplicationCryptoRequired(r,this.__wbg_ptr,i,a);var e=f().getInt32(r+0,!0),_=f().getInt32(r+4,!0);if(_)throw p(e)}finally{n.__wbindgen_add_to_stack_pointer(16);}}setIdentityCredential(t){var e=u(t)?0:b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c;n.wasmclient_setIdentityCredential(this.__wbg_ptr,e,_);}set_auto_connect_excluded(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_set_auto_connect_excluded(this.__wbg_ptr,_,r,e);return p(i)}set_offline(t){let e=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmclient_set_offline(this.__wbg_ptr,e,_);return p(r)}start_auto_connect(t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16),a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(e,n.__wbindgen_export,n.__wbindgen_export2),x=c;n.wasmclient_start_auto_connect(i,this.__wbg_ptr,a,g,d,x);var _=f().getInt32(i+0,!0),r=f().getInt32(i+4,!0);if(r)throw p(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}start_presence_loop(t,e,_,r){let i=b(t,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=b(e,n.__wbindgen_export,n.__wbindgen_export2),d=c,x=b(_,n.__wbindgen_export,n.__wbindgen_export2),l=c;var h=u(r)?0:b(r,n.__wbindgen_export,n.__wbindgen_export2),y=c;n.wasmclient_start_presence_loop(this.__wbg_ptr,i,a,g,d,x,l,h,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 a=n.__wbindgen_add_to_stack_pointer(-16),g=b(e,n.__wbindgen_export,n.__wbindgen_export2),d=c;n.wasmclient_submit_browser_desired_peers(a,this.__wbg_ptr,t,g,d);var _=f().getInt32(a+0,!0),r=f().getInt32(a+4,!0),i=f().getInt32(a+8,!0);if(i)throw p(r);return _!==0}finally{n.__wbindgen_add_to_stack_pointer(16);}}update_device(t,e,_,r,i){let a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(e,n.__wbindgen_export,n.__wbindgen_export2),x=c;var l=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),h=c,y=u(i)?0:b(i,n.__wbindgen_export,n.__wbindgen_export2),k=c;let I=n.wasmclient_update_device(this.__wbg_ptr,a,g,d,x,l,h,u(r)?0:w(r),y,k);return p(I)}update_presence(t,e,_,r,i){let a=b(t,n.__wbindgen_export,n.__wbindgen_export2),g=c,d=b(e,n.__wbindgen_export,n.__wbindgen_export2),x=c,l=b(_,n.__wbindgen_export,n.__wbindgen_export2),h=c;var y=u(r)?0:b(r,n.__wbindgen_export,n.__wbindgen_export2),k=c;let I=n.wasmclient_update_presence(this.__wbg_ptr,a,g,d,x,l,h,y,k,!u(i),u(i)?BigInt(0):i);return p(I)}update_session(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_update_session(this.__wbg_ptr,_,r,i,a);return p(g)}validate_session_token(t){let e,_;try{let l=n.__wbindgen_add_to_stack_pointer(-16),h=b(t,n.__wbindgen_export,n.__wbindgen_export2),y=c;n.wasmclient_validate_session_token(l,this.__wbg_ptr,h,y);var r=f().getInt32(l+0,!0),i=f().getInt32(l+4,!0),a=f().getInt32(l+8,!0),g=f().getInt32(l+12,!0),d=r,x=i;if(g)throw d=0,x=0,p(a);return e=d,_=x,v(d,x)}finally{n.__wbindgen_add_to_stack_pointer(16),n.__wbindgen_export4(e,_,1);}}validate_session_token_for_connection(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=b(e,n.__wbindgen_export,n.__wbindgen_export2),a=c,g=n.wasmclient_validate_session_token_for_connection(this.__wbg_ptr,_,r,i,a);return p(g)}validate_session_token_for_connection_with_payload(t,e,_){let r=b(t,n.__wbindgen_export,n.__wbindgen_export2),i=c,a=b(e,n.__wbindgen_export,n.__wbindgen_export2),g=c;var d=u(_)?0:b(_,n.__wbindgen_export,n.__wbindgen_export2),x=c;let l=n.wasmclient_validate_session_token_for_connection_with_payload(this.__wbg_ptr,r,i,a,g,d,x);return p(l)}wait_for_settled_peer(t,e){let _=b(t,n.__wbindgen_export,n.__wbindgen_export2),r=c,i=n.wasmclient_wait_for_settled_peer(this.__wbg_ptr,_,r,u(e)?Number.MAX_SAFE_INTEGER:e>>>0);return p(i)}wake_browser_auto_connect(){return n.wasmclient_wake_browser_auto_connect(this.__wbg_ptr)!==0}};Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);var V=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=b(t,n.__wbindgen_export,n.__wbindgen_export2),_=c,r=n.wasmconnection_create_data_channel(this.__wbg_ptr,e,_);return p(r)}constructor(){try{let r=n.__wbindgen_add_to_stack_pointer(-16);n.wasmconnection_new(r);var t=f().getInt32(r+0,!0),e=f().getInt32(r+4,!0),_=f().getInt32(r+8,!0);if(_)throw p(e);return this.__wbg_ptr=t,Z.register(this,this.__wbg_ptr,this),this}finally{n.__wbindgen_add_to_stack_pointer(16);}}};Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);function jt(){n.start();}function et(){return {__proto__:null,"./openrtc_bg.js":{__proto__:null,__wbg_Error_9dc85fe1bc224456:function(t,e){let _=Error(v(t,e));return w(_)},__wbg_String_8564e559799eccda:function(t,e){let _=String(o(e)),r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg___wbindgen_boolean_get_b131b2f36d6b2f55:function(t){let e=o(t),_=typeof e=="boolean"?e:void 0;return u(_)?16777215:_?1:0},__wbg___wbindgen_debug_string_56c147eb1a51f0c4:function(t,e){let _=P(o(e)),r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg___wbindgen_in_ce8569b2fc6f5088:function(t,e){return o(t)in o(e)},__wbg___wbindgen_is_function_147961669f068cd4:function(t){return typeof o(t)=="function"},__wbg___wbindgen_is_null_ced4761460071341:function(t){return o(t)===null},__wbg___wbindgen_is_object_3a2c414391dbf751:function(t){let e=o(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_6541b0f6ecd4e8e5:function(t){return typeof o(t)=="string"},__wbg___wbindgen_is_undefined_4410e3c20a99fa97:function(t){return o(t)===void 0},__wbg___wbindgen_jsval_eq_174c93ec61bab0c5:function(t,e){return o(t)===o(e)},__wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c:function(t,e){return o(t)==o(e)},__wbg___wbindgen_number_get_588ed6b97f0d7e14:function(t,e){let _=o(e),r=typeof _=="number"?_:void 0;f().setFloat64(t+8,u(r)?0:r,true),f().setInt32(t+0,!u(r),true);},__wbg___wbindgen_string_get_fa2687d531ed17a5:function(t,e){let _=o(e),r=typeof _=="string"?_:void 0;var i=u(r)?0:b(r,n.__wbindgen_export,n.__wbindgen_export2),a=c;f().setInt32(t+4,a,true),f().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){o(t)._wbg_cb_unref();},__wbg_abort_56c00f462c9261d9:function(t,e){o(t).abort(o(e));},__wbg_abort_f2416f4a9852003e:function(t){o(t).abort();},__wbg_addEventListener_b635263c509aa7de:function(){return m(function(t,e,_,r){o(t).addEventListener(v(e,_),o(r));},arguments)},__wbg_append_c5a0c94a6a73b22e:function(){return m(function(t,e,_,r,i){o(t).append(v(e,_),v(r,i));},arguments)},__wbg_arrayBuffer_cc7704fa158b907a:function(){return m(function(t){let e=o(t).arrayBuffer();return w(e)},arguments)},__wbg_bistream_new:function(t){let e=z.__wrap(t);return w(e)},__wbg_body_442a47f02322d7b0:function(t){let e=o(t).body;return u(e)?0:w(e)},__wbg_buffer_8524b3453cde4918:function(t){let e=o(t).buffer;return w(e)},__wbg_byobRequest_cc72d210de793e64:function(t){let e=o(t).byobRequest;return u(e)?0:w(e)},__wbg_byteLength_96807b1d9ab24a4c:function(t){return o(t).byteLength},__wbg_byteOffset_a9c7002428843c41:function(t){return o(t).byteOffset},__wbg_call_ec09a4cf93377d3a:function(){return m(function(t,e,_){let r=o(t).call(o(e),o(_));return w(r)},arguments)},__wbg_cancel_f3a197b26dc88b39:function(t){let e=o(t).cancel();return w(e)},__wbg_catch_66060324c27be6f7:function(t,e){let _=o(t).catch(o(e));return w(_)},__wbg_clearTimeout_113b1cde814ec762:function(t){let e=clearTimeout(p(t));return w(e)},__wbg_clearTimeout_333bba87532ab9d3:function(t){let e=clearTimeout(p(t));return w(e)},__wbg_clearTimeout_47a40e3be01ed7a3:function(){return m(function(t,e){o(t).clearTimeout(p(e));},arguments)},__wbg_close_296263cfe1bb2999:function(){return m(function(t){o(t).close();},arguments)},__wbg_close_388d99468213b286:function(){return m(function(t){o(t).close();},arguments)},__wbg_close_4857e22d08b71356:function(){return m(function(t){o(t).close();},arguments)},__wbg_code_1cda2855fcd9b009:function(t){return o(t).code},__wbg_code_70beb7b22374d55e:function(t){return o(t).code},__wbg_createDataChannel_122bd3d8aacee49b:function(t,e,_){let r=o(t).createDataChannel(v(e,_));return w(r)},__wbg_crypto_38df2bab126b63dc:function(t){let e=o(t).crypto;return w(e)},__wbg_data_8a04443c1e5a8cd3:function(t){let e=o(t).data;return w(e)},__wbg_dispatchEvent_cc62a6a43d28b01c:function(){return m(function(t,e){return o(t).dispatchEvent(o(e))},arguments)},__wbg_done_6a8439e544ec6206:function(t){return o(t).done},__wbg_enqueue_bbeb09ba0b140f76:function(){return m(function(t,e){o(t).enqueue(o(e));},arguments)},__wbg_entries_4e00eefd3fd54cf1:function(t){let e=o(t).entries();return w(e)},__wbg_error_6651fee1c71e5da9:function(t){console.error(o(t));},__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(o(t));return w(e)},__wbg_fetch_22858a12fcf93152:function(t,e){let _=o(t).fetch(o(e));return w(_)},__wbg_getRandomValues_76dfc69825c9c552:function(){return m(function(t,e){globalThis.crypto.getRandomValues(S(t,e));},arguments)},__wbg_getRandomValues_c44a50d8cfdaebeb:function(){return m(function(t,e){o(t).getRandomValues(o(e));},arguments)},__wbg_getReader_9facd4f899beac89:function(){return m(function(t){let e=o(t).getReader();return w(e)},arguments)},__wbg_get_4b90d6d8c5deb5d5:function(t,e){let _=o(t)[e>>>0];return w(_)},__wbg_get_52a8a619f7b88df6:function(){return m(function(t,e){let _=Reflect.get(o(t),o(e));return w(_)},arguments)},__wbg_get_done_c21b9933fc9a9e9c:function(t){let e=o(t).done;return u(e)?16777215:e?1:0},__wbg_get_value_ad568c7d3db9073f:function(t){let e=o(t).value;return w(e)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let _=o(t)[o(e)];return w(_)},__wbg_has_14676d88c1340d2c:function(){return m(function(t,e){return Reflect.has(o(t),o(e))},arguments)},__wbg_headers_5b19cf40627ae54d:function(t){let e=o(t).headers;return w(e)},__wbg_info_a2b5f8a5dae8b26c:function(t){console.info(o(t));},__wbg_instanceof_ArrayBuffer_a581da923203f29f:function(t){let e;try{e=o(t)instanceof ArrayBuffer;}catch{e=false;}return e},__wbg_instanceof_Blob_5c4e145be35f9b1e:function(t){let e;try{e=o(t)instanceof Blob;}catch{e=false;}return e},__wbg_instanceof_Response_36a65a969abaa7c6:function(t){let e;try{e=o(t)instanceof Response;}catch{e=false;}return e},__wbg_instanceof_Uint8Array_b6fe1ac89eba107e:function(t){let e;try{e=o(t)instanceof Uint8Array;}catch{e=false;}return e},__wbg_instanceof_Window_9e0fe7d3d1ff4342:function(t){let e;try{e=o(t)instanceof Window;}catch{e=false;}return e},__wbg_isArray_139f48e3c057ede8:function(t){return Array.isArray(o(t))},__wbg_length_68a9d5278d084f4f:function(t){return o(t).length},__wbg_log_6614a4effdb4e983:function(t){console.log(o(t));},__wbg_message_12958526424a887b:function(t,e){let _=o(e).message,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_msCrypto_bd5a034af96bcba6:function(t){let e=o(t).msCrypto;return w(e)},__wbg_new_0b303268aa395a38:function(){let t=new Array;return w(t)},__wbg_new_189262ff31890c23:function(){return m(function(){let t=new Headers;return w(t)},arguments)},__wbg_new_20b778a4c5c691c3:function(){let t=new Object;return w(t)},__wbg_new_227d7c05414eb861:function(){let t=new Error;return w(t)},__wbg_new_24739629d416f982:function(){return m(function(){let t=new AbortController;return w(t)},arguments)},__wbg_new_5fae30e6b23db8df:function(t,e){let _=new Error(v(t,e));return w(_)},__wbg_new_883c0db065f06efd:function(){return w(new Map)},__wbg_new_a3e5112401a82338:function(){return m(function(t,e){let _=new WebSocket(v(t,e));return w(_)},arguments)},__wbg_new_b06772b280cc6e52:function(t){let e=new Uint8Array(o(t));return w(e)},__wbg_new_from_slice_bb2d1778c0b87eb1:function(t,e){let _=new Uint8Array(S(t,e));return w(_)},__wbg_new_typed_90c3f6c29ba36d19:function(t,e){try{var _={a:t,b:e},r=(a,g)=>{let d=_.a;_.a=0;try{return lt(d,_.b,a,g)}finally{_.a=d;}};let i=new Promise(r);return w(i)}finally{_.a=0;}},__wbg_new_with_byte_offset_and_length_9e1e664fe1a5d385:function(t,e,_){let r=new Uint8Array(o(t),e>>>0,_>>>0);return w(r)},__wbg_new_with_configuration_3a96aa953ca17197:function(){return m(function(t){let e=new RTCPeerConnection(o(t));return w(e)},arguments)},__wbg_new_with_event_init_dict_bd850674488710b1:function(){return m(function(t,e,_){let r=new CustomEvent(v(t,e),o(_));return w(r)},arguments)},__wbg_new_with_into_underlying_sink_2596343f9b6c8e58:function(t){let e=new WritableStream(B.__wrap(t));return w(e)},__wbg_new_with_into_underlying_source_fd904252f385f59c:function(t,e){let _=new ReadableStream(N.__wrap(t),p(e));return w(_)},__wbg_new_with_length_4b57a7a5dc67221c:function(t){let e=new Uint8Array(t>>>0);return w(e)},__wbg_new_with_str_and_init_df876572184fe639:function(){return m(function(t,e,_){let r=new Request(v(t,e),o(_));return w(r)},arguments)},__wbg_new_with_str_sequence_505a4829cc247e79:function(){return m(function(t,e,_){let r=new WebSocket(v(t,e),o(_));return w(r)},arguments)},__wbg_next_8cb028b6ba50743f:function(){return m(function(t){let e=o(t).next();return w(e)},arguments)},__wbg_node_84ea875411254db1:function(t){let e=o(t).node;return w(e)},__wbg_now_bce4dc999095ea77:function(){return Date.now()},__wbg_now_e7c6795a7f81e10f:function(t){return o(t).now()},__wbg_parse_a5c06e19bc1187fd:function(t,e){return Date.parse(v(t,e))},__wbg_peerunistream_new:function(t){let e=q.__wrap(t);return w(e)},__wbg_performance_3fcf6e32a7e1ed0a:function(t){let e=o(t).performance;return w(e)},__wbg_process_44c7a14e11e9f69e:function(t){let e=o(t).process;return w(e)},__wbg_protocol_28aaef5ea42981d6:function(t,e){let _=o(e).protocol,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_prototypesetcall_956c7493c68e29b4:function(t,e,_){Uint8Array.prototype.set.call(S(t,e),o(_));},__wbg_push_ceb8ef046afb2041:function(t,e){return o(t).push(o(e))},__wbg_queueMicrotask_4698f900840e3286:function(t){queueMicrotask(o(t));},__wbg_queueMicrotask_477a5533c7100338:function(t){let e=o(t).queueMicrotask;return w(e)},__wbg_randomFillSync_6c25eac9869eb53c:function(){return m(function(t,e){o(t).randomFillSync(p(e));},arguments)},__wbg_read_8426c146431f2905:function(t){let e=o(t).read();return w(e)},__wbg_readyState_25243ad6ce649774:function(t){return o(t).readyState},__wbg_reason_4ec455bac79b33ce:function(t,e){let _=o(e).reason,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_releaseLock_188846ef719acb10:function(t){o(t).releaseLock();},__wbg_removeEventListener_016c1d24523b4730:function(){return m(function(t,e,_,r){o(t).removeEventListener(v(e,_),o(r));},arguments)},__wbg_require_b4edbdcf3e2a1ef0:function(){return m(function(){let t=module.require;return w(t)},arguments)},__wbg_resolve_0183de2e8c6b1d54:function(t){let e=Promise.resolve(o(t));return w(e)},__wbg_respond_3cdb4cf32683fd79:function(){return m(function(t,e){o(t).respond(e>>>0);},arguments)},__wbg_send_99d049cae69c53cc:function(){return m(function(t,e,_){o(t).send(S(e,_));},arguments)},__wbg_send_bac9d3dc4f21ef28:function(){return m(function(t,e,_){o(t).send(v(e,_));},arguments)},__wbg_setTimeout_3a808dd861dd3c12:function(t,e){let _=setTimeout(o(t),e);return w(_)},__wbg_setTimeout_6613a51400c1bf9f:function(){return m(function(t,e,_){let r=o(t).setTimeout(p(e),_);return w(r)},arguments)},__wbg_setTimeout_ef24d2fc3ad97385:function(){return m(function(t,e){let _=setTimeout(o(t),e);return w(_)},arguments)},__wbg_set_5f806304fb633ab3:function(t,e,_){let r=o(t).set(o(e),o(_));return w(r)},__wbg_set_6be42768c690e380:function(t,e,_){o(t)[p(e)]=p(_);},__wbg_set_86698c227e5b9dad:function(t,e,_){o(t).set(S(e,_));},__wbg_set_a6ba3ac0e634b822:function(){return m(function(t,e,_){return Reflect.set(o(t),o(e),o(_))},arguments)},__wbg_set_binaryType_8c2dd2cf1cfc2e28:function(t,e){o(t).binaryType=xt[e];},__wbg_set_body_d1153b16a2b95ca1:function(t,e){o(t).body=o(e);},__wbg_set_cache_5a01a8b5e6ca6cf2:function(t,e){o(t).cache=ht[e];},__wbg_set_credentials_e9120ed88b1fc0b8:function(t,e){o(t).credentials=yt[e];},__wbg_set_da33c120a6584674:function(t,e,_){o(t)[e>>>0]=p(_);},__wbg_set_detail_c7af5edea934390b:function(t,e){o(t).detail=o(e);},__wbg_set_handle_event_6147c38b782c7b42:function(t,e){o(t).handleEvent=o(e);},__wbg_set_headers_877ed41890d28af2:function(t,e){o(t).headers=o(e);},__wbg_set_high_water_mark_77da20c49668427d:function(t,e){o(t).highWaterMark=e;},__wbg_set_method_b4ede299b2064f37:function(t,e,_){o(t).method=v(e,_);},__wbg_set_mode_d6c2e1991aa963c6:function(t,e){o(t).mode=vt[e];},__wbg_set_onclose_9cb5c3372e16c192:function(t,e){o(t).onclose=o(e);},__wbg_set_onerror_190fe67e911ebf28:function(t,e){o(t).onerror=o(e);},__wbg_set_onmessage_96337495f0bfb796:function(t,e){o(t).onmessage=o(e);},__wbg_set_onopen_3e2bf6b11d434c2d:function(t,e){o(t).onopen=o(e);},__wbg_set_signal_9022b5aa06a6ce5b:function(t,e){o(t).signal=o(e);},__wbg_signal_41dd1a8913cd0b7d:function(t){let e=o(t).signal;return w(e)},__wbg_stack_3b0d974bbf31e44f:function(t,e){let _=o(e).stack,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_static_accessor_GLOBAL_60a4124bab7dcc9a:function(){let t=typeof global>"u"?null:global;return u(t)?0:w(t)},__wbg_static_accessor_GLOBAL_THIS_95ca6460658b5d13:function(){let t=typeof globalThis>"u"?null:globalThis;return u(t)?0:w(t)},__wbg_static_accessor_SELF_4c95f759a91e9aae:function(){let t=typeof self>"u"?null:self;return u(t)?0:w(t)},__wbg_static_accessor_WINDOW_44b435597f9e9ee7:function(){let t=typeof window>"u"?null:window;return u(t)?0:w(t)},__wbg_status_9e6505cfa3e73a7c:function(t){return o(t).status},__wbg_subarray_42216645a367cd7a:function(t,e,_){let r=o(t).subarray(e>>>0,_>>>0);return w(r)},__wbg_then_254bab9b266a77a5:function(t,e,_){let r=o(t).then(o(e),o(_));return w(r)},__wbg_then_3ea18602c6a5123b:function(t,e){let _=o(t).then(o(e));return w(_)},__wbg_url_72c67c175685a054:function(t,e){let _=o(e).url,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_url_d0b8042af0d1bbba:function(t,e){let _=o(e).url,r=b(_,n.__wbindgen_export,n.__wbindgen_export2),i=c;f().setInt32(t+4,i,true),f().setInt32(t+0,r,true);},__wbg_value_3d3defe09fb1ffca:function(t){let e=o(t).value;return w(e)},__wbg_versions_276b2795b1c6a219:function(t){let e=o(t).versions;return w(e)},__wbg_view_15fa5865c6b336e3:function(t){let e=o(t).view;return u(e)?0:w(e)},__wbg_warn_633bacc13ba7e6c3:function(t){console.warn(o(t));},__wbg_wasClean_f17429d064911939:function(t){return o(t).wasClean},__wbindgen_cast_0000000000000001:function(t,e){let _=F(t,e,gt);return w(_)},__wbindgen_cast_0000000000000002:function(t,e){let _=F(t,e,ft);return w(_)},__wbindgen_cast_0000000000000003:function(t,e){let _=F(t,e,dt);return w(_)},__wbindgen_cast_0000000000000004:function(t,e){let _=F(t,e,ut);return w(_)},__wbindgen_cast_0000000000000005:function(t,e){let _=F(t,e,bt);return w(_)},__wbindgen_cast_0000000000000006:function(t,e){let _=F(t,e,at);return w(_)},__wbindgen_cast_0000000000000007:function(t,e){let _=Rt(t,e,pt);return w(_)},__wbindgen_cast_0000000000000008:function(t,e){let _=F(t,e,wt);return w(_)},__wbindgen_cast_0000000000000009:function(t){return w(t)},__wbindgen_cast_000000000000000a:function(t){return w(t)},__wbindgen_cast_000000000000000b:function(t,e){let _=S(t,e);return w(_)},__wbindgen_cast_000000000000000c:function(t,e){let _=v(t,e);return w(_)},__wbindgen_cast_000000000000000d:function(t){let e=BigInt.asUintN(64,t);return w(e)},__wbindgen_cast_000000000000000e:function(t,e){var _=S(t,e).slice();return n.__wbindgen_export4(t,e*1,1),w(_)},__wbindgen_object_clone_ref:function(t){let e=o(t);return w(e)},__wbindgen_object_drop_ref:function(t){p(t);}}}}function bt(s,t){n.__wasm_bindgen_func_elem_8835(s,t);}function at(s,t){n.__wasm_bindgen_func_elem_9957(s,t);}function pt(s,t){n.__wasm_bindgen_func_elem_10010(s,t);}function wt(s,t){n.__wasm_bindgen_func_elem_17816(s,t);}function gt(s,t,e){n.__wasm_bindgen_func_elem_9037(s,t,w(e));}function dt(s,t,e){n.__wasm_bindgen_func_elem_6495(s,t,w(e));}function ut(s,t,e){n.__wasm_bindgen_func_elem_10645(s,t,w(e));}function ft(s,t,e){try{let i=n.__wbindgen_add_to_stack_pointer(-16);n.__wasm_bindgen_func_elem_17961(i,s,t,w(e));var _=f().getInt32(i+0,!0),r=f().getInt32(i+4,!0);if(r)throw p(_)}finally{n.__wbindgen_add_to_stack_pointer(16);}}function lt(s,t,e,_){n.__wasm_bindgen_func_elem_17963(s,t,w(e),w(_));}var xt=["blob","arraybuffer"],mt=["bytes"],ht=["default","no-store","reload","no-cache","force-cache","only-if-cached"],yt=["omit","same-origin","include"],vt=["same-origin","no-cors","cors","navigate"],K=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_bistream_free(s,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_intounderlyingbytesource_free(s,1)),H=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_intounderlyingsink_free(s,1)),J=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_intounderlyingsource_free(s,1)),Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_peerunistream_free(s,1)),Q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_wasmclient_free(s,1)),Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbg_wasmconnection_free(s,1));function w(s){W===A.length&&A.push(A.length+1);let t=W;return W=A[t],A[t]=s,t}var G=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(s=>n.__wbindgen_export5(s.a,s.b));function P(s){let t=typeof s;if(t=="number"||t=="boolean"||s==null)return `${s}`;if(t=="string")return `"${s}"`;if(t=="symbol"){let r=s.description;return r==null?"Symbol":`Symbol(${r})`}if(t=="function"){let r=s.name;return typeof r=="string"&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(s)){let r=s.length,i="[";r>0&&(i+=P(s[0]));for(let a=1;a<r;a++)i+=", "+P(s[a]);return i+="]",i}let e=/\[object ([^\]]+)\]/.exec(toString.call(s)),_;if(e&&e.length>1)_=e[1];else return toString.call(s);if(_=="Object")try{return "Object("+JSON.stringify(s)+")"}catch{return "Object"}return s instanceof Error?`${s.name}: ${s.message}
|
|
2
|
+
${s.stack}`:_}function It(s){s<1028||(A[s]=W,W=s);}function At(s,t){s=s>>>0;let e=f(),_=[];for(let r=s;r<s+4*t;r+=4)_.push(p(e.getUint32(r,true)));return _}function S(s,t){return s=s>>>0,T().subarray(s/1,s/1+t)}var E=null;function f(){return (E===null||E.buffer.detached===true||E.buffer.detached===void 0&&E.buffer!==n.memory.buffer)&&(E=new DataView(n.memory.buffer)),E}function v(s,t){return Ft(s>>>0,t)}var O=null;function T(){return (O===null||O.byteLength===0)&&(O=new Uint8Array(n.memory.buffer)),O}function o(s){return A[s]}function m(s,t){try{return s.apply(this,t)}catch(e){n.__wbindgen_export3(w(e));}}var A=new Array(1024).fill(void 0);A.push(void 0,null,true,false);var W=A.length;function u(s){return s==null}function Rt(s,t,e){let _={a:s,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,G.unregister(_));},G.register(r,_,_),r}function F(s,t,e){let _={a:s,b:t,cnt:1},r=(...i)=>{_.cnt++;let a=_.a;_.a=0;try{return e(a,_.b,...i)}finally{_.a=a,r._wbg_cb_unref();}};return r._wbg_cb_unref=()=>{--_.cnt===0&&(n.__wbindgen_export5(_.a,_.b),_.a=0,G.unregister(_));},G.register(r,_,_),r}function j(s,t){let e=t(s.length*1,1)>>>0;return T().set(s,e/1),c=s.length,e}function tt(s,t){let e=t(s.length*4,4)>>>0,_=f();for(let r=0;r<s.length;r++)_.setUint32(e+4*r,w(s[r]),true);return c=s.length,e}function b(s,t,e){if(e===void 0){let g=M.encode(s),d=t(g.length,1)>>>0;return T().subarray(d,d+g.length).set(g),c=g.length,d}let _=s.length,r=t(_,1)>>>0,i=T(),a=0;for(;a<_;a++){let g=s.charCodeAt(a);if(g>127)break;i[r+a]=g;}if(a!==_){a!==0&&(s=s.slice(a)),r=e(r,_,_=a+s.length*3,1)>>>0;let g=T().subarray(r+a,r+_),d=M.encodeInto(s,g);a+=d.written,r=e(r,_,a,1)>>>0;}return c=a,r}function p(s){let t=o(s);return It(s),t}var L=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true});L.decode();var St=2146435072,$=0;function Ft(s,t){return $+=t,$>=St&&(L=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true}),L.decode(),$=t),L.decode(T().subarray(s,s+t))}var M=new TextEncoder;"encodeInto"in M||(M.encodeInto=function(s,t){let e=M.encode(s);return t.set(e),{read:s.length,written:e.length}});var c=0,n;function nt(s,t){return n=s.exports,E=null,O=null,n.__wbindgen_start(),n}async function Ct(s,t){if(typeof Response=="function"&&s instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(s,t)}catch(r){if(s.ok&&e(s.type)&&s.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 s.arrayBuffer();return await WebAssembly.instantiate(_,t)}else {let _=await WebAssembly.instantiate(s,t);return _ instanceof WebAssembly.Instance?{instance:_,module:s}:_}function e(_){switch(_){case "basic":case "cors":case "default":return true}return false}}function Ot(s){if(n!==void 0)return n;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module:s}=s:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let t=et();s instanceof WebAssembly.Module||(s=new WebAssembly.Module(s));let e=new WebAssembly.Instance(s,t);return nt(e)}async function Wt(s){if(n!==void 0)return n;s!==void 0&&(Object.getPrototypeOf(s)===Object.prototype?{module_or_path:s}=s:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),s===void 0&&(s=new URL("openrtc_bg.wasm",import.meta.url));let t=et();(typeof s=="string"||typeof Request=="function"&&s instanceof Request||typeof URL=="function"&&s instanceof URL)&&(s=fetch(s));let{instance:e,module:_}=await Ct(await s,t);return nt(e)}export{z as BiStream,U as IntoUnderlyingByteSource,B as IntoUnderlyingSink,N as IntoUnderlyingSource,q as PeerUniStream,D as WasmClient,V as WasmConnection,Wt as default,Ot as initSync,jt as start};
|
package/dist/openrtc_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DelegatingRuntimeAdapter, W as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-
|
|
2
|
-
import '../types-
|
|
3
|
-
import '../capabilities-YSskrE8H.js';
|
|
1
|
+
import { D as DelegatingRuntimeAdapter, W as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
2
|
+
import '../types-BHePJWbM.js';
|
|
4
3
|
import '../IEngineBridge-BbsT8hof.js';
|
|
4
|
+
import '../capabilities-YSskrE8H.js';
|
|
5
5
|
|
|
6
6
|
declare class WasmRuntimeAdapter extends DelegatingRuntimeAdapter {
|
|
7
7
|
constructor(options: WasmBridgeOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {a}from'../chunk-A3IAG6EL.js';import {w}from'../chunk-YBXGNKM7.js';import'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';import'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';var n=class extends a{constructor(e){super(new w(e));}setWasmClient(e){this.unwrap().setWasmClient(e);}};export{n as WasmRuntimeAdapter};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as RuntimeDevice, m as RuntimeDeviceStatusSnapshot } from '../types-
|
|
1
|
+
import { j as RuntimeDevice, m as RuntimeDeviceStatusSnapshot } from '../types-D0pqNSOf.js';
|
|
2
2
|
import '../IEngineBridge-BbsT8hof.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-BHePJWbM.js';
|
|
4
4
|
import '../ITransport-BsPcaov7.js';
|
|
5
5
|
|
|
6
6
|
interface RuntimeDeviceActiveOptions {
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { f as OpenRTCCapabilityHandle } from '../types-
|
|
4
|
-
import { C as Connection, r as RuntimeConnectionTarget, v as RuntimeRawConnection } from '../types-
|
|
5
|
-
export { A as ChannelDescriptor, B as ConnectionEvent, D as ConnectionTarget, E as DeviceProfile, I as IncomingStream, P as PeerConnectOptions, F as PeerReadiness, G as PeerStreamOptions, H as PresenceLoopOptions, J as RawConnection, y as RuntimeApplicationPayloadReadinessOptions, K as RuntimeApplicationPayloadRouteOptions, L as RuntimeAuthContext, g as RuntimeAuthIdentity, M as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, a as RuntimeClientOptions, z as RuntimeConnectionEvent, c as RuntimeConnectionStateSnapshot, j as RuntimeDevice, n as RuntimeDeviceConnectOptions, N as RuntimeDevicePresenceStatus, O as RuntimeDeviceStatus, m as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, p as RuntimeJoinRoomOptions, h as RuntimeLocalDeviceInfo, i as RuntimeLocalDeviceProfile, Q as RuntimeLogicalChannelFraming, l as RuntimeManagedSession, S as RuntimeManagedSessionKind, k as RuntimeManagedSessionOptions, T as RuntimeManagedSessionPlatform, e as RuntimePeerConnectOptions, x as RuntimePeerHealth, U as RuntimePeerLifecycleStatus, d as RuntimePeerReadinessSnapshot, V as RuntimePeerScope, W as RuntimePeerSessionSnapshot, b as RuntimePeerState, u as RuntimePeerStreamOptions, w as RuntimePresenceLoopOptions, X as RuntimePresencePolicy, q as RuntimeRoomMember, s as RuntimeScopedChannelOptions, t as RuntimeScopedLogicalChannel, o as RuntimeSession, Y as RuntimeUiConnectionStatus, Z as ScopedChannelOptions, _ as ScopedLogicalChannel, $ as Session, a0 as SessionOptions } from '../types-
|
|
1
|
+
import { d as OpenRTCClient, P as PeerReconciliationStats } from '../OpenRTCShared-BswnbjpG.js';
|
|
2
|
+
export { e as OPENRTC_RUNTIME_POLICY, R as RuntimeClient, f as RuntimePolicySnapshot, D as ScopedConnectionActorError, g as ScopedConnectionActorErrorKind, h as ScopedConnectionActorHandle, i as ScopedConnectionActorHandleOptions, j as ScopedConnectionActorRegistry, k as ScopedConnectionActorState, l as ScopedConnectionClose, m as ScopedConnectionDial, n as ScopedConnectionKey, o as ScopedLogicalChannelHandle, p as ScopedPreferredTransport, q as getRuntimePolicy, r as scopedConnectionKey, s as scopedConnectionKeyToString } from '../OpenRTCShared-BswnbjpG.js';
|
|
3
|
+
import { f as OpenRTCCapabilityHandle } from '../types-DzJ8-t1p.js';
|
|
4
|
+
import { C as Connection, r as RuntimeConnectionTarget, v as RuntimeRawConnection } from '../types-D0pqNSOf.js';
|
|
5
|
+
export { A as ChannelDescriptor, B as ConnectionEvent, D as ConnectionTarget, E as DeviceProfile, I as IncomingStream, P as PeerConnectOptions, F as PeerReadiness, G as PeerStreamOptions, H as PresenceLoopOptions, J as RawConnection, y as RuntimeApplicationPayloadReadinessOptions, K as RuntimeApplicationPayloadRouteOptions, L as RuntimeAuthContext, g as RuntimeAuthIdentity, M as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, a as RuntimeClientOptions, z as RuntimeConnectionEvent, c as RuntimeConnectionStateSnapshot, j as RuntimeDevice, n as RuntimeDeviceConnectOptions, N as RuntimeDevicePresenceStatus, O as RuntimeDeviceStatus, m as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, p as RuntimeJoinRoomOptions, h as RuntimeLocalDeviceInfo, i as RuntimeLocalDeviceProfile, Q as RuntimeLogicalChannelFraming, l as RuntimeManagedSession, S as RuntimeManagedSessionKind, k as RuntimeManagedSessionOptions, T as RuntimeManagedSessionPlatform, e as RuntimePeerConnectOptions, x as RuntimePeerHealth, U as RuntimePeerLifecycleStatus, d as RuntimePeerReadinessSnapshot, V as RuntimePeerScope, W as RuntimePeerSessionSnapshot, b as RuntimePeerState, u as RuntimePeerStreamOptions, w as RuntimePresenceLoopOptions, X as RuntimePresencePolicy, q as RuntimeRoomMember, s as RuntimeScopedChannelOptions, t as RuntimeScopedLogicalChannel, o as RuntimeSession, Y as RuntimeUiConnectionStatus, Z as ScopedChannelOptions, _ as ScopedLogicalChannel, $ as Session, a0 as SessionOptions } from '../types-D0pqNSOf.js';
|
|
6
6
|
import * as Draft14 from '@moq/net';
|
|
7
|
-
import {
|
|
7
|
+
import { $ as SignalingOptions, I as ISignalingBackend, R as RuntimeIdentity, a as RoomMember, e as SignalingEnvelope, h as SignalingSession, b as Device, g as DesiredPeerProjection, m as BackendConnectionState, _ as AppLimits, G as GrantScope, J as JoinRoomOptions, x as IncomingStreamChannelMetadata, Q as ApplicationCryptoStreamTools, a0 as RoomCreationMode, C as ClientOptions, o as ApplicationPayloadCrypto, D as DiscoveryMode, O as ProtocolCapabilityMap, a1 as ScanningLoopOptions, a2 as ScanningLoopHandle, a3 as RuntimeBootstrapOptions, a4 as RuntimeBootstrapResult, p as ApplicationPayloadReadinessOptions, a5 as ManagedApplicationRouteOptions, t as PeerState, u as PeerScope, v as PeerHealth, w as ChannelDescriptor, a6 as JoinRequest, k as NativeConnectParams, l as NativeConnectResult, a7 as SpaceTokenProvider } from '../types-BHePJWbM.js';
|
|
8
8
|
import { R as RuntimeCapabilities } from '../capabilities-YSskrE8H.js';
|
|
9
9
|
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-YSskrE8H.js';
|
|
10
10
|
export { RuntimeDeviceActiveOptions, isRuntimeDeviceActive, isRuntimeDeviceConnectable, isRuntimeDeviceRoutable } from './device-status.js';
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
import { a as WasmBridge } from '../DelegatingRuntimeAdapter-DqfHkjLy.js';
|
|
14
|
-
import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
|
|
15
|
-
export { N as NativeIpcFailureKind, a as PlutoIpcUnlisten, c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from '../ipc-CflAVodw.js';
|
|
16
|
-
export { WasmRuntimeAdapter } from './WasmRuntimeAdapter.js';
|
|
11
|
+
export { I as IpcRuntimeAdapter, a as IpcRuntimeAdapterOptions, T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-BgLgJoQA.js';
|
|
12
|
+
export { P as NativeBridge, N as NativeIpcFailureKind, P as PlutoIpcBridge, a as PlutoIpcUnlisten, c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from '../ipc-CflAVodw.js';
|
|
17
13
|
import '../IEngineBridge-BbsT8hof.js';
|
|
18
14
|
import '../ITransport-BsPcaov7.js';
|
|
15
|
+
import '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
19
16
|
|
|
20
17
|
declare class Signaling {
|
|
21
18
|
private readonly appTag;
|
|
@@ -63,18 +60,6 @@ declare class Signaling {
|
|
|
63
60
|
setWasmClient(client: any): void;
|
|
64
61
|
}
|
|
65
62
|
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Legacy assembly helper. Use `OpenRTC()` for app code.
|
|
68
|
-
* Removal target: OpenRTC 0.2.0.
|
|
69
|
-
*/
|
|
70
|
-
declare function createWasmClient(options: RuntimeFactoryOptions): Promise<PlutoRuntimeAssembly<WasmBridge>>;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated Legacy assembly helper. Native applications should use
|
|
73
|
-
* `createNativeOpenRTC` from `openrtc/native`.
|
|
74
|
-
* Removal target: OpenRTC 0.2.0.
|
|
75
|
-
*/
|
|
76
|
-
declare function createIpcClient(options: RuntimeFactoryOptions, bridge: PlutoIpcBridge): PlutoRuntimeAssembly<IpcRuntimeAdapter>;
|
|
77
|
-
|
|
78
63
|
type OpenRTCCapabilityRuntime = OpenRTCClient;
|
|
79
64
|
/**
|
|
80
65
|
* Low-level escape hatch used only by `openrtc/runtime`. Product code should
|
|
@@ -588,4 +573,4 @@ declare function sandboxSpaceKey(spaceKey: string, sandboxAppId?: string): strin
|
|
|
588
573
|
declare const spaceToken: typeof createPublicSpaceTokenProvider;
|
|
589
574
|
declare const createSpaceTokenProvider: typeof createPublicSpaceTokenProvider;
|
|
590
575
|
|
|
591
|
-
export { Connection, type CorrelationFields, type EnableSpaceAuthResponse,
|
|
576
|
+
export { Connection, type CorrelationFields, type EnableSpaceAuthResponse, type MintSpaceTokenRequest, type MintSpaceTokenResponse, type OpenRTCCapabilityRuntime, RuntimeCapabilities, RuntimeConnectionController, RuntimeConnectionTarget, type RuntimeJsonFrameDecoderOptions, type RuntimeJsonFrameHandler, RuntimeRawConnection, type RuntimeU32BEFrameHandler, clog, concatRuntimeBytes, correlationForDriveGrantScope, createPublicSpaceTokenProvider, createRuntimeJsonFrameDecoder, createRuntimeU32BEFrameDecoder, createSpaceTokenProvider, decodeRuntimeJsonPayload, enableSpaceAuth, encodeRuntimeJsonFrame, encodeRuntimeJsonPayload, encodeRuntimeU32BEFrame, logOpenRtcTeardownTrace, mintSpaceToken, openRtcDebug, openRtcDebugEnabled, openRtcDebugInfo, openRtcDebugLog, readRuntimeU32BE, renderCorrelationFields, runtimeForCapability as runtimeFromCapability, sandboxSpaceKey, spaceToken };
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b as TauriRuntimeAdapter,a as createTauriIpcBridge}from'../chunk-5LRLWIT5.js';export{b as runtimeFromCapability}from'../chunk-PODAMIL6.js';export{b as Connection,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-XPEDISSU.js';export{f as IpcRuntimeAdapter}from'../chunk-F2XGNLXL.js';import'../chunk-A3IAG6EL.js';import'../chunk-7Z6N46RB.js';export{q as BROWSER_WASM_RUNTIME_CAPABILITIES,r as NATIVE_IPC_RUNTIME_CAPABILITIES,o as OPENRTC_RUNTIME_POLICY,s as cloneRuntimeCapabilities,p as getRuntimePolicy,g as logOpenRtcTeardownTrace,t as runtimeCapabilitiesForBrowserHost,u as runtimeCapabilitiesFromNativeStatus,v as runtimeCapabilityProfile}from'../chunk-YBXGNKM7.js';export{b as openRtcDebug,a as openRtcDebugEnabled,c as openRtcDebugInfo,d as openRtcDebugLog}from'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'../chunk-K37WVIZL.js';import'../chunk-BXFXPIXO.js';import {b}from'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';export{a as isRuntimeDeviceActive,c as isRuntimeDeviceConnectable,b as isRuntimeDeviceRoutable}from'../chunk-CK6WQV7J.js';var j="https://api.openrtc.app";function c(e){if(typeof globalThis.crypto?.randomUUID!="function")throw new Error(`Secure request identity is unavailable for ${e}.`);return `${e}:${globalThis.crypto.randomUUID()}`}async function z(e,t,n){let o=e.replace(/\/$/,""),r=await fetch(`${o}/v1/spaces/${encodeURIComponent(n)}/scoped-auth`,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("enable-space-auth")},body:"{}"}),a=await r.json().catch(()=>({}));if(!r.ok){let s=typeof a?.error=="string"?a.error:`enableSpaceAuth failed (${r.status})`;throw new Error(s)}return a}async function q(e,t,n){let o=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("mint-space-token")},body:JSON.stringify(n)}),r=await o.json().catch(()=>({}));if(!o.ok){let a=typeof r?.error=="string"?r.error:`mintSpaceToken failed (${o.status})`;throw new Error(a)}if(typeof r?.token!="string"||!r.token.trim())throw new Error("mintSpaceToken response missing token");return r}function d(e){let t=e.apiKey.trim(),n=(e.spaceKey??e.space??"").trim(),o=g(e.sandboxAppId),r=(e.endpointUrl??j).replace(/\/$/,""),a=e.memberIdStorageKey??`openrtc:space-member:${n}${o?`:sandbox:${o}`:""}`;return async()=>{if(!t||!n)throw new Error("spaceToken requires apiKey and space");let s=null;typeof sessionStorage<"u"?(s=sessionStorage.getItem(a),s||(s=globalThis.crypto?.randomUUID?.()??`member-${Date.now()}`,sessionStorage.setItem(a,s))):s=`member-${Date.now()}`;let m=await b().getAppCheckToken(),i=await fetch(`${r}/v1SpacePublicTokens`,{method:"POST",headers:{"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("mint-public-space-token"),...m?{"X-Firebase-AppCheck":m}:{}},body:JSON.stringify({apiKey:t,spaceKey:n,memberId:s,...o?{sandboxAppId:o}:{}})}),{text:u,payload:p}=await B(i);if(!i.ok){let f=typeof p?.error=="string"?p.error:u.trim()?u.trim().slice(0,240):`public space token mint failed (${i.status})`;throw new Error(f)}let l=typeof p?.token=="string"?p.token.trim():"";if(!l)throw new Error("public space token response missing token");return {customToken:l}}}function M(e){if(!e.trim())return {};try{let t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return {}}}async function B(e){let t=e.text;if(typeof t=="function"){let o=await t.call(e).catch(()=>"");return {text:o,payload:M(o)}}let n=await e.json().catch(()=>({}));return {text:JSON.stringify(n),payload:n&&typeof n=="object"?n:{}}}function g(e){let t=e?.trim().toLowerCase()??"";if(!t)return "";if(!/^[a-z0-9][a-z0-9-]{0,47}$/.test(t))throw new Error("sandboxAppId must be 1-48 lowercase letters, numbers, or dashes.");return t}function J(e,t){let n=e.trim(),o=g(t);return o?`${n}::sandbox::${o}`:n}var L=d,H=d;
|
|
2
2
|
export{d as createPublicSpaceTokenProvider,H as createSpaceTokenProvider,z as enableSpaceAuth,q as mintSpaceToken,J as sandboxSpaceKey,L as spaceToken};
|
package/dist/runtime/legacy.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as OpenRTCClient } from '../OpenRTCShared-
|
|
1
|
+
import { d as OpenRTCClient } from '../OpenRTCShared-BswnbjpG.js';
|
|
2
2
|
import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
|
|
3
|
-
import { a as RuntimeClientOptions } from '../types-
|
|
4
|
-
import '../types-
|
|
3
|
+
import { a as RuntimeClientOptions } from '../types-D0pqNSOf.js';
|
|
4
|
+
import '../types-BHePJWbM.js';
|
|
5
5
|
import '../IEngineBridge-BbsT8hof.js';
|
|
6
6
|
import '../capabilities-YSskrE8H.js';
|
|
7
7
|
import '../ITransport-BsPcaov7.js';
|
package/dist/runtime/legacy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as createLegacyOpenRTC}from'../chunk-
|
|
1
|
+
export{a as createLegacyOpenRTC}from'../chunk-PRBVSCKN.js';import'../chunk-2QHDEGVX.js';import'../chunk-6OLYXEOG.js';import'../chunk-HXMHYSZF.js';import'../chunk-GHGHBGHY.js';import'../chunk-N4SX7C3W.js';import'../chunk-XPEDISSU.js';import'../chunk-F2XGNLXL.js';import'../chunk-A3IAG6EL.js';import'../chunk-7Z6N46RB.js';import'../chunk-YBXGNKM7.js';import'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';import'../chunk-K37WVIZL.js';import'../chunk-BXFXPIXO.js';import'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';
|
package/dist/runtime/tauri.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-
|
|
1
|
+
export { T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-BgLgJoQA.js';
|
|
2
2
|
import '../ipc-CflAVodw.js';
|
|
3
|
-
import '../types-
|
|
4
|
-
import '../DelegatingRuntimeAdapter-
|
|
5
|
-
import '../capabilities-YSskrE8H.js';
|
|
3
|
+
import '../types-BHePJWbM.js';
|
|
4
|
+
import '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
6
5
|
import '../IEngineBridge-BbsT8hof.js';
|
|
6
|
+
import '../capabilities-YSskrE8H.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { W as WasmBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-
|
|
1
|
+
import { C as ClientOptions } from './types-BHePJWbM.js';
|
|
2
|
+
import { W as WasmBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
3
3
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
4
4
|
|
|
5
5
|
interface NativeIpcBridgeOptions extends WasmBridgeOptions {
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as OpenRTCClient } from './OpenRTCShared-
|
|
1
|
+
import { d as OpenRTCClient } from './OpenRTCShared-BswnbjpG.js';
|
|
2
2
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
3
|
-
import { a as RuntimeClientOptions } from './types-
|
|
4
|
-
import { O as OpenRTCOptions, a as OpenRTCClient$1 } from './types-
|
|
5
|
-
import './types-
|
|
3
|
+
import { a as RuntimeClientOptions } from './types-D0pqNSOf.js';
|
|
4
|
+
import { O as OpenRTCOptions, a as OpenRTCClient$1 } from './types-DzJ8-t1p.js';
|
|
5
|
+
import './types-BHePJWbM.js';
|
|
6
6
|
import './IEngineBridge-BbsT8hof.js';
|
|
7
7
|
import './capabilities-YSskrE8H.js';
|
|
8
8
|
import './ITransport-BsPcaov7.js';
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';import {a}from'./chunk-PRBVSCKN.js';import'./chunk-2QHDEGVX.js';import'./chunk-6OLYXEOG.js';import'./chunk-HXMHYSZF.js';import'./chunk-GHGHBGHY.js';import'./chunk-N4SX7C3W.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';function m(e,t,n={}){return c(e,{endpoints:t,testingAllowInsecureLoopback:true,platform:"web",...n.deviceId?{deviceIdProvider:async()=>n.deviceId}:{},...n.irohTestRelayUrl?{irohTestRelayUrl:n.irohTestRelayUrl}:{},runtimeFactory:async i=>{let{createWasmClient:o}=await import('./factories-PLRICK7J.js');return o(i)}})}function d(e,t,n){return c(e,{endpoints:t,testingAllowInsecureLoopback:true,platform:"native",deviceKeyProvider:a$1(n),deviceIdProvider:async()=>{let i=await n.invoke("get_rtc_local_device_info");return String(i?.deviceId??"")},runtimeFactory:async i=>{let{createIpcClient:o}=await import('./ipcFactory-MYHIVIM2.js');return o(i,n)}})}function p(e){let t=e.coordinationGateway;return {...e,...t?{coordinationGateway:{...t,testingAllowInsecureLoopback:true}}:{}}}var C=Object.assign(e=>a(p(e)),{native:(e,t)=>a.native(p(e),t)});export{C as createTestingLegacyOpenRTC,d as createTestingNativeOpenRTC,m as createTestingOpenRTC};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { r as ProtocolName, H as RouteDescriptor, K as ProtocolCapability, O as ProtocolCapabilityMap, o as ApplicationPayloadCrypto, Q as ApplicationCryptoStreamTools } from '../types-BHePJWbM.js';
|
|
2
|
+
export { U as ApplicationCryptoBiStream, V as RouteFamily, W as RouteImplementationKind } from '../types-BHePJWbM.js';
|
|
3
3
|
import { I as ITransport } from '../ITransport-BsPcaov7.js';
|
|
4
4
|
|
|
5
5
|
declare const TRANSPORT_LABELS: readonly ProtocolName[];
|
|
@@ -1080,4 +1080,4 @@ interface JoinRequest {
|
|
|
1080
1080
|
state: 'pending' | 'accepted' | 'rejected';
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
export type {
|
|
1083
|
+
export type { SignalingOptions as $, AuthMode as A, BackendPeerBiStream as B, ClientOptions as C, DiscoveryMode as D, ExplicitFileDataSendParams as E, PeerLifecycleStatus as F, GrantScope as G, RouteDescriptor as H, ISignalingBackend as I, JoinRoomOptions as J, ProtocolCapability as K, LocalDeviceInfo as L, ManagedConnectionRecord as M, NativeManagedSessionStartResult as N, ProtocolCapabilityMap as O, PeerSessionSnapshot as P, ApplicationCryptoStreamTools as Q, RuntimeIdentity as R, SignalingMode as S, TransportLatencySnapshot as T, ApplicationCryptoBiStream as U, RouteFamily as V, RouteImplementationKind as W, ConnectDeviceHooks as X, ConnectDeviceOptions as Y, ConnectDeviceResult as Z, AppLimits as _, RoomMember as a, RoomCreationMode as a0, ScanningLoopOptions as a1, ScanningLoopHandle as a2, RuntimeBootstrapOptions as a3, RuntimeBootstrapResult as a4, ManagedApplicationRouteOptions as a5, JoinRequest as a6, SpaceTokenProvider as a7, Device as b, DeviceStatusSnapshot as c, ResolvedPeerIdentity as d, SignalingEnvelope as e, DeviceEvent as f, DesiredPeerProjection as g, SignalingSession as h, SessionEvent as i, BackendPeerUniStream as j, NativeConnectParams as k, NativeConnectResult as l, BackendConnectionState as m, ConnectionOptions as n, ApplicationPayloadCrypto as o, ApplicationPayloadReadinessOptions as p, ApplicationPayloadRouteOptions as q, ProtocolName as r, ApplicationPayloadSendOptions as s, PeerState as t, PeerScope as u, PeerHealth as v, ChannelDescriptor as w, IncomingStreamChannelMetadata as x, ManagedDeviceConnectOptions as y, DevicePresenceStatus as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthContext } from './IEngineBridge-BbsT8hof.js';
|
|
2
|
-
import {
|
|
2
|
+
import { n as ConnectionOptions, o as ApplicationPayloadCrypto, p as ApplicationPayloadReadinessOptions, q as ApplicationPayloadRouteOptions, r as ProtocolName, s as ApplicationPayloadSendOptions, T as TransportLatencySnapshot, t as PeerState, u as PeerScope, v as PeerHealth, w as ChannelDescriptor$1, x as IncomingStreamChannelMetadata, b as Device, m as BackendConnectionState, L as LocalDeviceInfo, c as DeviceStatusSnapshot, y as ManagedDeviceConnectOptions, C as ClientOptions, h as SignalingSession, R as RuntimeIdentity, J as JoinRoomOptions, a as RoomMember, z as DevicePresenceStatus, F as PeerLifecycleStatus, P as PeerSessionSnapshot } from './types-BHePJWbM.js';
|
|
3
3
|
import { I as ITransport } from './ITransport-BsPcaov7.js';
|
|
4
4
|
|
|
5
5
|
type ConnectionHealth = 'unknown' | 'healthy' | 'suspect' | 'stale';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenRTCPeerNamespace, a as OpenRTCChannelNamespace, b as OpenRTCDiagnosticsNamespace, c as OpenRTCDeviceNamespace } from './OpenRTCShared-
|
|
2
|
-
import { R as RuntimeChannelDescriptor } from './types-
|
|
1
|
+
import { O as OpenRTCPeerNamespace, a as OpenRTCChannelNamespace, b as OpenRTCDiagnosticsNamespace, c as OpenRTCDeviceNamespace } from './OpenRTCShared-BswnbjpG.js';
|
|
2
|
+
import { R as RuntimeChannelDescriptor } from './types-D0pqNSOf.js';
|
|
3
3
|
|
|
4
4
|
interface OpenRTCAuthProvider {
|
|
5
5
|
/** Registered provider ID from the developer app capability manifest. */
|