openrtc 2.0.0-rc.9 → 2.0.0

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.
Files changed (90) hide show
  1. package/README.md +12 -8
  2. package/dist/DelegatingRuntimeAdapter-BFZDC604.d.ts +397 -0
  3. package/dist/{types-BHePJWbM.d.ts → ITransport-WV6gGMnX.d.ts} +42 -3
  4. package/dist/IpcRuntimeAdapter-CJq3dRBF.d.ts +19 -0
  5. package/dist/OpenRTCShared.d.ts +250 -0
  6. package/dist/OpenRTCShared.js +1 -0
  7. package/dist/WasmBridge-5GYKXPXK.js +1 -0
  8. package/dist/{OpenRTCShared-BswnbjpG.d.ts → assembly-q0jRRpsc.d.ts} +51 -250
  9. package/dist/{capabilities-YSskrE8H.d.ts → capabilities-BfZi4Cd7.d.ts} +4 -0
  10. package/dist/chunk-45WBH7E3.js +1 -0
  11. package/dist/chunk-7FPG3MFF.js +2 -0
  12. package/dist/chunk-AG2F6MOB.js +1 -0
  13. package/dist/chunk-CWGKLGJZ.js +1 -0
  14. package/dist/{chunk-C6PAXO3N.js → chunk-D2OJN5S5.js} +1 -1
  15. package/dist/chunk-DUY34MGT.js +1 -0
  16. package/dist/chunk-H5R5ZXXN.js +3 -0
  17. package/dist/chunk-KJTJLLJE.js +2 -0
  18. package/dist/{chunk-7Z6N46RB.js → chunk-LRT5GEGH.js} +2 -2
  19. package/dist/chunk-NRXEG5GQ.js +1 -0
  20. package/dist/chunk-OEVPKC3W.js +1 -0
  21. package/dist/chunk-VBUDERMM.js +2 -0
  22. package/dist/chunk-VOCOZ57Q.js +2 -0
  23. package/dist/chunk-XPL7PUBW.js +2 -0
  24. package/dist/chunk-Z2WVSXPW.js +1 -0
  25. package/dist/chunk-Z6TZLF4B.js +1 -0
  26. package/dist/controlPlane-P66ZTVNW.js +2 -0
  27. package/dist/deviceEnrollment-GL4JPVGG.js +2 -0
  28. package/dist/deviceKey-SBNKLVYF.js +1 -0
  29. package/dist/deviceManagement-PHY5TIOS.js +1 -0
  30. package/dist/deviceProfile-3BEQZLJF.js +2 -0
  31. package/dist/deviceRoster-VZA3TQOR.js +1 -0
  32. package/dist/dist-FIVA6EPA.js +277 -0
  33. package/dist/index.d.ts +10 -8
  34. package/dist/index.js +1 -1
  35. package/dist/ipcFactory-B6HBECSU.js +1 -0
  36. package/dist/native.d.ts +7 -8
  37. package/dist/native.js +1 -1
  38. package/dist/openrtc-BFF336RG.js +2 -0
  39. package/dist/openrtc_bg.wasm +0 -0
  40. package/dist/runtime/WasmRuntimeAdapter.d.ts +4 -4
  41. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  42. package/dist/runtime/device-status.d.ts +2 -4
  43. package/dist/runtime/factories.d.ts +21 -0
  44. package/dist/runtime/factories.js +1 -0
  45. package/dist/runtime/index.d.ts +29 -62
  46. package/dist/runtime/index.js +1 -2
  47. package/dist/testing.d.ts +9 -18
  48. package/dist/testing.js +1 -1
  49. package/dist/transport/index.d.ts +2 -3
  50. package/dist/transport/index.js +1 -1
  51. package/dist/{types-D0pqNSOf.d.ts → types-DVNSd5B9.d.ts} +71 -4
  52. package/dist/{types-byWIP-WI.d.ts → types-Di034GVQ.d.ts} +72 -15
  53. package/package.json +3 -27
  54. package/dist/DelegatingRuntimeAdapter-BLNigcS4.d.ts +0 -134
  55. package/dist/IEngineBridge-BbsT8hof.d.ts +0 -17
  56. package/dist/ITransport-BsPcaov7.d.ts +0 -16
  57. package/dist/OpenRTCShared-TKAQLONA.js +0 -1
  58. package/dist/WasmBridge-B7NTRYN5.js +0 -1
  59. package/dist/auth/index.d.ts +0 -78
  60. package/dist/auth/index.js +0 -1
  61. package/dist/auth/internal.d.ts +0 -4
  62. package/dist/auth/internal.js +0 -1
  63. package/dist/chunk-23XC6TGK.js +0 -2
  64. package/dist/chunk-2QHDEGVX.js +0 -1
  65. package/dist/chunk-A7AMB23L.js +0 -2
  66. package/dist/chunk-BXFXPIXO.js +0 -1
  67. package/dist/chunk-C7YN5MSV.js +0 -1
  68. package/dist/chunk-D45U2NXV.js +0 -1
  69. package/dist/chunk-DZCZLRM5.js +0 -1
  70. package/dist/chunk-EUNCYGJD.js +0 -1
  71. package/dist/chunk-IAIGT5G3.js +0 -1
  72. package/dist/chunk-JIVVHBCB.js +0 -2
  73. package/dist/chunk-K37WVIZL.js +0 -1
  74. package/dist/chunk-KWXAZUAZ.js +0 -2
  75. package/dist/chunk-N26S7V4N.js +0 -1
  76. package/dist/chunk-N4SX7C3W.js +0 -2
  77. package/dist/chunk-NB4H5TP3.js +0 -1
  78. package/dist/chunk-NCL672QJ.js +0 -3
  79. package/dist/chunk-NT5YHZQH.js +0 -1
  80. package/dist/chunk-O3D7S5MD.js +0 -1
  81. package/dist/chunk-RD3JEGGF.js +0 -2
  82. package/dist/chunk-VK6KX433.js +0 -1
  83. package/dist/factories-TLUZAXUG.js +0 -1
  84. package/dist/ipcFactory-QOAZVE56.js +0 -1
  85. package/dist/openrtc-C53CKZUM.js +0 -2
  86. package/dist/runtime/legacy.d.ts +0 -18
  87. package/dist/runtime/legacy.js +0 -1
  88. package/dist/runtime/tauri.d.ts +0 -6
  89. package/dist/runtime/tauri.js +0 -1
  90. package/dist/tauri-BgLgJoQA.d.ts +0 -33
@@ -0,0 +1,277 @@
1
+ var se=()=>{};var ae=function(t){let e=[],n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128);}return e},He=function(t){let e=[],n=0,r=0;for(;n<t.length;){let i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=t[n++];e[r++]=String.fromCharCode((i&31)<<6|s&63);}else if(i>239&&i<365){let s=t[n++],o=t[n++],a=t[n++],c=((i&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023));}else {let s=t[n++],o=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63);}}return e.join("")},ce={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){let s=t[i],o=i+1<t.length,a=o?t[i+1]:0,c=i+2<t.length,l=c?t[i+2]:0,u=s>>2,d=(s&3)<<4|a>>4,h=(a&15)<<2|l>>6,m=l&63;c||(m=64,o||(h=64)),r.push(n[u],n[d],n[h],n[m]);}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(ae(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):He(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){let s=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;let l=i<t.length?n[t.charAt(i)]:64;++i;let d=i<t.length?n[t.charAt(i)]:64;if(++i,s==null||a==null||l==null||d==null)throw new M;let h=s<<2|a>>4;if(r.push(h),l!==64){let m=a<<4&240|l>>2;if(r.push(m),d!==64){let A=l<<6&192|d;r.push(A);}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t);}}},M=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError";}},je=function(t){let e=ae(t);return ce.encodeByteArray(e,true)},$=function(t){return je(t).replace(/\./g,"")},le=function(t){try{return ce.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e);}return null};function ze(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Ve=()=>ze().__FIREBASE_DEFAULTS__,We=()=>{if(typeof process>"u"||typeof process.env>"u")return;let t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Ge=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);}catch{return}let e=t&&le(t[1]);return e&&JSON.parse(e)},ue=()=>{try{return se()||Ve()||We()||Ge()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},Je=t=>ue()?.emulatorHosts?.[t],fe=t=>{let e=Je(t);if(!e)return;let n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);let r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},F=()=>ue()?.config;var T=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n;});}wrapCallback(e){return (n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r));}}};function he(){try{return typeof indexedDB=="object"}catch{return false}}function de(){return new Promise((t,e)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0);},i.onupgradeneeded=()=>{n=!1;},i.onerror=()=>{e(i.error?.message||"");};}catch(n){e(n);}})}var Ke="FirebaseError",b=class t extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=Ke,Object.setPrototypeOf(this,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,C.prototype.create);}},C=class{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r;}create(e,...n){let r=n[0]||{},i=`${this.service}/${e}`,s=this.errors[e],o=s?qe(s,r):"Error",a=`${this.serviceName}: ${o} (${i}).`;return new b(i,a,r)}};function qe(t,e){return t.replace(Ye,(n,r)=>{let i=e[r];return i!=null?String(i):`<${r}?>`})}var Ye=/\{\$([^}]+)}/g;function N(t,e){if(t===e)return true;let n=Object.keys(t),r=Object.keys(e);for(let i of n){if(!r.includes(i))return false;let s=t[i],o=e[i];if(oe(s)&&oe(o)){if(!N(s,o))return false}else if(s!==o)return false}for(let i of r)if(!n.includes(i))return false;return true}function oe(t){return t!==null&&typeof t=="object"}function S(t){return t&&t._delegate?t._delegate:t}function U(t){try{return (t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return false}}async function pe(t){return (await fetch(t,{credentials:"include"})).ok}var y=class{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=false,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null;}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var w="[DEFAULT]";var H=class{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map;}get(e){let n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){let r=new T;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i);}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){let n=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??false;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}else {if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Qe(e))try{this.getOrInitializeService({instanceIdentifier:w});}catch{}for(let[n,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(n);try{let s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s);}catch{}}}}clearInstance(e=w){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e);}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())]);}isComponentSet(){return this.component!=null}isInitialized(e=w){return this.instances.has(e)}getOptions(e=w){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(let[s,o]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(s);r===a&&o.resolve(i);}return i}onInit(e,n){let r=this.normalizeInstanceIdentifier(n),i=this.onInitCallbacks.get(r)??new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e);}}invokeOnInitCallbacks(e,n){let r=this.onInitCallbacks.get(n);if(r)for(let i of r)try{i(e,n);}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Xe(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r);}catch{}return r||null}normalizeInstanceIdentifier(e=w){return this.component?this.component.multipleInstances?e:w:e}shouldAutoInitialize(){return !!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Xe(t){return t===w?void 0:t}function Qe(t){return t.instantiationMode==="EAGER"}var k=class{constructor(e){this.name=e,this.providers=new Map;}addComponent(e){let n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e);}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e);}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let n=new H(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}};var f;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT";})(f||(f={}));var et={debug:f.DEBUG,verbose:f.VERBOSE,info:f.INFO,warn:f.WARN,error:f.ERROR,silent:f.SILENT},tt=f.INFO,nt={[f.DEBUG]:"log",[f.VERBOSE]:"log",[f.INFO]:"info",[f.WARN]:"warn",[f.ERROR]:"error"},rt=(t,e,...n)=>{if(e<t.logLevel)return;let r=new Date().toISOString(),i=nt[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)},x=class{constructor(e){this.name=e,this._logLevel=tt,this._logHandler=rt,this._userLogHandler=null;}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in f))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e;}setLogLevel(e){this._logLevel=typeof e=="string"?et[e]:e;}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e;}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e;}debug(...e){this._userLogHandler&&this._userLogHandler(this,f.DEBUG,...e),this._logHandler(this,f.DEBUG,...e);}log(...e){this._userLogHandler&&this._userLogHandler(this,f.VERBOSE,...e),this._logHandler(this,f.VERBOSE,...e);}info(...e){this._userLogHandler&&this._userLogHandler(this,f.INFO,...e),this._logHandler(this,f.INFO,...e);}warn(...e){this._userLogHandler&&this._userLogHandler(this,f.WARN,...e),this._logHandler(this,f.WARN,...e);}error(...e){this._userLogHandler&&this._userLogHandler(this,f.ERROR,...e),this._logHandler(this,f.ERROR,...e);}};var it=(t,e)=>e.some(n=>t instanceof n),me,ge;function st(){return me||(me=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ot(){return ge||(ge=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var be=new WeakMap,z=new WeakMap,ye=new WeakMap,j=new WeakMap,W=new WeakMap;function at(t){let e=new Promise((n,r)=>{let i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o);},s=()=>{n(g(t.result)),i();},o=()=>{r(t.error),i();};t.addEventListener("success",s),t.addEventListener("error",o);});return e.then(n=>{n instanceof IDBCursor&&be.set(n,t);}).catch(()=>{}),W.set(e,t),e}function ct(t){if(z.has(t))return;let e=new Promise((n,r)=>{let i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o);},s=()=>{n(),i();},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),i();};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o);});z.set(t,e);}var V={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return z.get(t);if(e==="objectStoreNames")return t.objectStoreNames||ye.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return g(t[e])},set(t,e,n){return t[e]=n,true},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?true:e in t}};function Ee(t){V=t(V);}function lt(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){let r=t.call(R(this),e,...n);return ye.set(r,e.sort?e.sort():[e]),g(r)}:ot().includes(t)?function(...e){return t.apply(R(this),e),g(be.get(this))}:function(...e){return g(t.apply(R(this),e))}}function ut(t){return typeof t=="function"?lt(t):(t instanceof IDBTransaction&&ct(t),it(t,st())?new Proxy(t,V):t)}function g(t){if(t instanceof IDBRequest)return at(t);if(j.has(t))return j.get(t);let e=ut(t);return e!==t&&(j.set(t,e),W.set(e,t)),e}var R=t=>W.get(t);function we(t,e,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(t,e),a=g(o);return r&&o.addEventListener("upgradeneeded",c=>{r(g(o.result),c.oldVersion,c.newVersion,g(o.transaction),c);}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{s&&c.addEventListener("close",()=>s()),i&&c.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l));}).catch(()=>{}),a}var ft=["get","getKey","getAll","getAllKeys","count"],ht=["put","add","delete","clear"],G=new Map;function _e(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(G.get(e))return G.get(e);let n=e.replace(/FromIndex$/,""),r=e!==n,i=ht.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||ft.includes(n)))return;let s=async function(o,...a){let c=this.transaction(o,i?"readwrite":"readonly"),l=c.store;return r&&(l=l.index(a.shift())),(await Promise.all([l[n](...a),i&&c.done]))[0]};return G.set(e,s),s}Ee(t=>({...t,get:(e,n,r)=>_e(e,n)||t.get(e,n,r),has:(e,n)=>!!_e(e,n)||t.has(e,n)}));var K=class{constructor(e){this.container=e;}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(dt(n)){let r=n.getImmediate();return `${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}};function dt(t){return t.getComponent()?.type==="VERSION"}var q="@firebase/app",Ae="0.15.1";var E=new x("@firebase/app"),pt="@firebase/app-compat",mt="@firebase/analytics-compat",gt="@firebase/analytics",bt="@firebase/app-check-compat",yt="@firebase/app-check",Et="@firebase/auth",_t="@firebase/auth-compat",wt="@firebase/database",At="@firebase/data-connect",vt="@firebase/database-compat",Dt="@firebase/functions",Ct="@firebase/functions-compat",St="@firebase/installations",It="@firebase/installations-compat",Ot="@firebase/messaging",Tt="@firebase/messaging-compat",Nt="@firebase/performance",kt="@firebase/performance-compat",xt="@firebase/remote-config",Rt="@firebase/remote-config-compat",Bt="@firebase/storage",Lt="@firebase/storage-compat",Pt="@firebase/firestore",Mt="@firebase/ai",$t="@firebase/firestore-compat",Ft="firebase";var Y="[DEFAULT]",Ut={[q]:"fire-core",[pt]:"fire-core-compat",[gt]:"fire-analytics",[mt]:"fire-analytics-compat",[yt]:"fire-app-check",[bt]:"fire-app-check-compat",[Et]:"fire-auth",[_t]:"fire-auth-compat",[wt]:"fire-rtdb",[At]:"fire-data-connect",[vt]:"fire-rtdb-compat",[Dt]:"fire-fn",[Ct]:"fire-fn-compat",[St]:"fire-iid",[It]:"fire-iid-compat",[Ot]:"fire-fcm",[Tt]:"fire-fcm-compat",[Nt]:"fire-perf",[kt]:"fire-perf-compat",[xt]:"fire-rc",[Rt]:"fire-rc-compat",[Bt]:"fire-gcs",[Lt]:"fire-gcs-compat",[Pt]:"fire-fst",[$t]:"fire-fst-compat",[Mt]:"fire-vertex","fire-js":"fire-js",[Ft]:"fire-js-all"};var B=new Map,Ht=new Map,X=new Map;function ve(t,e){try{t.container.addComponent(e);}catch(n){E.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n);}}function I(t){let e=t.name;if(X.has(e))return E.debug(`There were multiple attempts to register component ${e}.`),false;X.set(e,t);for(let n of B.values())ve(n,t);for(let n of Ht.values())ve(n,t);return true}function Ie(t,e){let n=t.container.getProvider("heartbeat").getImmediate({optional:true});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Oe(t){return t==null?false:t.settings!==void 0}var jt={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},_=new C("app","Firebase",jt);var Q=class{constructor(e,n,r){this._isDeleted=false,this._options={...e},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new y("app",()=>this,"PUBLIC"));}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e;}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e;}checkDestroyed(){if(this.isDeleted)throw _.create("app-deleted",{appName:this._name})}};function zt(t,e={}){let n=t;typeof e!="object"&&(e={name:e});let r={name:Y,automaticDataCollectionEnabled:true,...e},i=r.name;if(typeof i!="string"||!i)throw _.create("bad-app-name",{appName:String(i)});if(n||(n=F()),!n)throw _.create("no-options");let s=B.get(i);if(s){if(N(n,s.options)&&N(r,s.config))return s;throw _.create("duplicate-app",{appName:i})}let o=new k(i);for(let c of X.values())o.addComponent(c);let a=new Q(n,r,o);return B.set(i,a),a}function Te(t=Y){let e=B.get(t);if(!e&&t===Y&&F())return zt();if(!e)throw _.create("no-app",{appName:t});return e}function v(t,e,n){let r=Ut[t]??t;n&&(r+=`-${n}`);let i=r.match(/\s|\//),s=e.match(/\s|\//);if(i||s){let o=[`Unable to register library "${r}" with version "${e}":`];i&&o.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&s&&o.push("and"),s&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),E.warn(o.join(" "));return}I(new y(`${r}-version`,()=>({library:r,version:e}),"VERSION"));}var Vt="firebase-heartbeat-database",Wt=1,O="firebase-heartbeat-store",J=null;function Ne(){return J||(J=we(Vt,Wt,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(O);}catch(n){console.warn(n);}}}}).catch(t=>{throw _.create("idb-open",{originalErrorMessage:t.message})})),J}async function Gt(t){try{let n=(await Ne()).transaction(O),r=await n.objectStore(O).get(ke(t));return await n.done,r}catch(e){if(e instanceof b)E.warn(e.message);else {let n=_.create("idb-get",{originalErrorMessage:e?.message});E.warn(n.message);}}}async function De(t,e){try{let r=(await Ne()).transaction(O,"readwrite");await r.objectStore(O).put(e,ke(t)),await r.done;}catch(n){if(n instanceof b)E.warn(n.message);else {let r=_.create("idb-set",{originalErrorMessage:n?.message});E.warn(r.message);}}}function ke(t){return `${t.name}!${t.options.appId}`}var Jt=1024,Kt=30,Z=class{constructor(e){this.container=e,this._heartbeatsCache=null;let n=this.container.getProvider("app").getImmediate();this._storage=new ee(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r));}async triggerHeartbeat(){try{let n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=Ce();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>Kt){let i=Yt(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(i,1);}return this._storage.overwrite(this._heartbeatsCache)}catch(e){E.warn(e);}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return "";let e=Ce(),{heartbeatsToSend:n,unsentEntries:r}=qt(this._heartbeatsCache.heartbeats),i=$(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return E.warn(e),""}}};function Ce(){return new Date().toISOString().substring(0,10)}function qt(t,e=Jt){let n=[],r=t.slice();for(let i of t){let s=n.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),Se(n)>e){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Se(n)>e){n.pop();break}r=r.slice(1);}return {heartbeatsToSend:n,unsentEntries:r}}var ee=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck();}async runIndexedDBEnvironmentCheck(){return he()?de().then(()=>true).catch(()=>false):false}async read(){if(await this._canUseIndexedDBPromise){let n=await Gt(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return {heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){let r=await this.read();return De(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){let r=await this.read();return De(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}};function Se(t){return $(JSON.stringify({version:2,heartbeats:t})).length}function Yt(t){if(t.length===0)return -1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}function Xt(t){I(new y("platform-logger",e=>new K(e),"PRIVATE")),I(new y("heartbeat",e=>new Z(e),"PRIVATE")),v(q,Ae,t),v(q,Ae,"esm2020"),v("fire-js","");}Xt("");var Qt="type.googleapis.com/google.protobuf.Int64Value",Zt="type.googleapis.com/google.protobuf.UInt64Value";function Le(t,e){let n={};for(let r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}function L(t){if(t==null)return null;if(t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&isFinite(t)||t===true||t===false||Object.prototype.toString.call(t)==="[object String]")return t;if(t instanceof Date)return t.toISOString();if(Array.isArray(t))return t.map(e=>L(e));if(typeof t=="function"||typeof t=="object")return Le(t,e=>L(e));throw new Error("Data cannot be encoded in JSON: "+t)}function D(t){if(t==null)return t;if(t["@type"])switch(t["@type"]){case Qt:case Zt:{let e=Number(t.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+t);return e}default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map(e=>D(e)):typeof t=="function"||typeof t=="object"?Le(t,e=>D(e)):t}var ie="functions";var xe={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},p=class t extends b{constructor(e,n,r){super(`${ie}/${e}`,n||""),this.details=r,Object.setPrototypeOf(this,t.prototype);}};function en(t){if(t>=200&&t<300)return "ok";switch(t){case 0:return "internal";case 400:return "invalid-argument";case 401:return "unauthenticated";case 403:return "permission-denied";case 404:return "not-found";case 409:return "aborted";case 429:return "resource-exhausted";case 499:return "cancelled";case 500:return "internal";case 501:return "unimplemented";case 503:return "unavailable";case 504:return "deadline-exceeded"}return "unknown"}function P(t,e){let n=en(t),r=n,i;try{let s=e&&e.error;if(s){let o=s.status;if(typeof o=="string"){if(!xe[o])return new p("internal","internal");n=xe[o],r=o;}let a=s.message;typeof a=="string"&&(r=a),i=s.details,i!==void 0&&(i=D(i));}}catch{}return n==="ok"?null:new p(n,r,i)}var te=class{constructor(e,n,r,i){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,Oe(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=n.getImmediate({optional:true}),this.messaging=r.getImmediate({optional:true}),this.auth||n.get().then(s=>this.auth=s,()=>{}),this.messaging||r.get().then(s=>this.messaging=s,()=>{}),this.appCheck||i?.get().then(s=>this.appCheck=s,()=>{});}async getAuthToken(){if(this.auth)try{return (await this.auth.getToken())?.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(e){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let n=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return n.error?null:n.token}return null}async getContext(e){let n=await this.getAuthToken(),r=await this.getMessagingToken(),i=await this.getAppCheckToken(e);return {authToken:n,messagingToken:r,appCheckToken:i}}};var ne="us-central1",tn=/^data: (.*?)(?:\n|$)/;function nn(t){let e=null;return {promise:new Promise((n,r)=>{e=setTimeout(()=>{r(new p("deadline-exceeded","deadline-exceeded"));},t);}),cancel:()=>{e&&clearTimeout(e);}}}var re=class{constructor(e,n,r,i,s=ne,o=(...a)=>fetch(...a)){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new te(e,n,r,i),this.cancelAllRequests=new Promise(a=>{this.deleteService=()=>Promise.resolve(a());});try{let a=new URL(s);this.customDomain=a.origin+(a.pathname==="/"?"":a.pathname),this.region=ne;}catch{this.customDomain=null,this.region=s;}}_delete(){return this.deleteService()}_url(e){let n=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${n}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${n}.cloudfunctions.net/${e}`}};function rn(t,e,n){let r=U(e);t.emulatorOrigin=`http${r?"s":""}://${e}:${n}`,r&&pe(t.emulatorOrigin+"/backends");}function sn(t,e,n){let r=i=>cn(t,e,i,n||{});return r.stream=(i,s)=>ln(t,e,i,s),r}function on(t,e,n){let r=i=>$e(t,e,i,n||{});return r.stream=(i,s)=>Fe(t,e,i,s||{}),r}function Pe(t){return t.emulatorOrigin&&U(t.emulatorOrigin)?"include":void 0}async function an(t,e,n,r,i){n["Content-Type"]="application/json";let s;try{s=await r(t,{method:"POST",body:JSON.stringify(e),headers:n,credentials:Pe(i)});}catch{return {status:0,json:null}}let o=null;try{o=await s.json();}catch{}return {status:s.status,json:o}}async function Me(t,e){let n={},r=await t.contextProvider.getContext(e.limitedUseAppCheckTokens);return r.authToken&&(n.Authorization="Bearer "+r.authToken),r.messagingToken&&(n["Firebase-Instance-ID-Token"]=r.messagingToken),r.appCheckToken!==null&&(n["X-Firebase-AppCheck"]=r.appCheckToken),n}function cn(t,e,n,r){let i=t._url(e);return $e(t,i,n,r)}async function $e(t,e,n,r){n=L(n);let i={data:n},s=await Me(t,r),o=r.timeout||7e4,a=nn(o),c=await Promise.race([an(e,i,s,t.fetchImpl,t),a.promise,t.cancelAllRequests]);if(a.cancel(),!c)throw new p("cancelled","Firebase Functions instance was deleted.");let l=P(c.status,c.json);if(l)throw l;if(!c.json)throw new p("internal","Response is not valid JSON object.");let u=c.json.data;if(typeof u>"u"&&(u=c.json.result),typeof u>"u")throw new p("internal","Response is missing data field.");return {data:D(u)}}function ln(t,e,n,r){let i=t._url(e);return Fe(t,i,n,r||{})}async function Fe(t,e,n,r){n=L(n);let i={data:n},s=await Me(t,r);s["Content-Type"]="application/json",s.Accept="text/event-stream";let o;try{o=await t.fetchImpl(e,{method:"POST",body:JSON.stringify(i),headers:s,signal:r?.signal,credentials:Pe(t)});}catch(h){if(h instanceof Error&&h.name==="AbortError"){let A=new p("cancelled","Request was cancelled.");return {data:Promise.reject(A),stream:{[Symbol.asyncIterator](){return {next(){return Promise.reject(A)}}}}}}let m=P(0,null);return {data:Promise.reject(m),stream:{[Symbol.asyncIterator](){return {next(){return Promise.reject(m)}}}}}}let a,c,l=new Promise((h,m)=>{a=h,c=m;});r?.signal?.addEventListener("abort",()=>{let h=new p("cancelled","Request was cancelled.");c(h);});let u=o.body.getReader(),d=un(u,a,c,r?.signal);return {stream:{[Symbol.asyncIterator](){let h=d.getReader();return {async next(){let{value:m,done:A}=await h.read();return {value:m,done:A}},async return(){return await h.cancel(),{done:true,value:void 0}}}}},data:l}}function un(t,e,n,r){let i=(o,a)=>{let c=o.match(tn);if(!c)return;let l=c[1];try{let u=JSON.parse(l);if("result"in u){e(D(u.result));return}if("message"in u){a.enqueue(D(u.message));return}if("error"in u){let d=P(0,u);a.error(d),n(d);return}}catch(u){if(u instanceof p){a.error(u),n(u);return}}},s=new TextDecoder;return new ReadableStream({start(o){let a="";return c();async function c(){if(r?.aborted){let l=new p("cancelled","Request was cancelled");return o.error(l),n(l),Promise.resolve()}try{let{value:l,done:u}=await t.read();if(u){a.trim()&&i(a.trim(),o),o.close();return}if(r?.aborted){let h=new p("cancelled","Request was cancelled");o.error(h),n(h),await t.cancel();return}a+=s.decode(l,{stream:!0});let d=a.split(`
2
+ `);a=d.pop()||"";for(let h of d)h.trim()&&i(h.trim(),o);return c()}catch(l){let u=l instanceof p?l:P(0,null);o.error(u),n(u);}}},cancel(){return t.cancel()}})}var Re="@firebase/functions",Be="0.13.5";var fn="auth-internal",hn="app-check-internal",dn="messaging-internal";function pn(t){let e=(n,{instanceIdentifier:r})=>{let i=n.getProvider("app").getImmediate(),s=n.getProvider(fn),o=n.getProvider(dn),a=n.getProvider(hn);return new re(i,s,o,a,r)};I(new y(ie,e,"PUBLIC").setMultipleInstances(true)),v(Re,Be,t),v(Re,Be,"esm2020");}function Un(t=Te(),e=ne){let r=Ie(S(t),ie).getImmediate({identifier:e}),i=fe("functions");return i&&mn(r,...i),r}function mn(t,e,n){rn(S(t),e,n);}function Hn(t,e,n){return sn(S(t),e,n)}function jn(t,e,n){return on(S(t),e,n)}pn();/*! Bundled license information:
3
+
4
+ @firebase/util/dist/node-esm/index.node.esm.js:
5
+ @firebase/util/dist/node-esm/index.node.esm.js:
6
+ @firebase/util/dist/node-esm/index.node.esm.js:
7
+ @firebase/util/dist/node-esm/index.node.esm.js:
8
+ @firebase/util/dist/node-esm/index.node.esm.js:
9
+ @firebase/util/dist/node-esm/index.node.esm.js:
10
+ @firebase/util/dist/node-esm/index.node.esm.js:
11
+ @firebase/util/dist/node-esm/index.node.esm.js:
12
+ @firebase/util/dist/node-esm/index.node.esm.js:
13
+ @firebase/util/dist/node-esm/index.node.esm.js:
14
+ @firebase/util/dist/node-esm/index.node.esm.js:
15
+ @firebase/logger/dist/esm/index.esm.js:
16
+ (**
17
+ * @license
18
+ * Copyright 2017 Google LLC
19
+ *
20
+ * Licensed under the Apache License, Version 2.0 (the "License");
21
+ * you may not use this file except in compliance with the License.
22
+ * You may obtain a copy of the License at
23
+ *
24
+ * http://www.apache.org/licenses/LICENSE-2.0
25
+ *
26
+ * Unless required by applicable law or agreed to in writing, software
27
+ * distributed under the License is distributed on an "AS IS" BASIS,
28
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29
+ * See the License for the specific language governing permissions and
30
+ * limitations under the License.
31
+ *)
32
+
33
+ @firebase/util/dist/node-esm/index.node.esm.js:
34
+ @firebase/util/dist/node-esm/index.node.esm.js:
35
+ (**
36
+ * @license
37
+ * Copyright 2022 Google LLC
38
+ *
39
+ * Licensed under the Apache License, Version 2.0 (the "License");
40
+ * you may not use this file except in compliance with the License.
41
+ * You may obtain a copy of the License at
42
+ *
43
+ * http://www.apache.org/licenses/LICENSE-2.0
44
+ *
45
+ * Unless required by applicable law or agreed to in writing, software
46
+ * distributed under the License is distributed on an "AS IS" BASIS,
47
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48
+ * See the License for the specific language governing permissions and
49
+ * limitations under the License.
50
+ *)
51
+
52
+ @firebase/util/dist/node-esm/index.node.esm.js:
53
+ (**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ *
57
+ * Licensed under the Apache License, Version 2.0 (the "License");
58
+ * you may not use this file except in compliance with the License.
59
+ * You may obtain a copy of the License at
60
+ *
61
+ * http://www.apache.org/licenses/LICENSE-2.0
62
+ *
63
+ * Unless required by applicable law or agreed to in writing, software
64
+ * distributed under the License is distributed on an "AS IS" BASIS,
65
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
+ * See the License for the specific language governing permissions and
67
+ * limitations under the License.
68
+ *)
69
+ (**
70
+ * @license
71
+ * Copyright 2021 Google LLC
72
+ *
73
+ * Licensed under the Apache License, Version 2.0 (the "License");
74
+ * you may not use this file except in compliance with the License.
75
+ * You may obtain a copy of the License at
76
+ *
77
+ * http://www.apache.org/licenses/LICENSE-2.0
78
+ *
79
+ * Unless required by applicable law or agreed to in writing, software
80
+ * distributed under the License is distributed on an "AS IS" BASIS,
81
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
82
+ * See the License for the specific language governing permissions and
83
+ * limitations under the License.
84
+ *)
85
+
86
+ @firebase/util/dist/node-esm/index.node.esm.js:
87
+ @firebase/component/dist/esm/index.esm.js:
88
+ @firebase/app/dist/esm/index.esm.js:
89
+ @firebase/app/dist/esm/index.esm.js:
90
+ @firebase/app/dist/esm/index.esm.js:
91
+ (**
92
+ * @license
93
+ * Copyright 2019 Google LLC
94
+ *
95
+ * Licensed under the Apache License, Version 2.0 (the "License");
96
+ * you may not use this file except in compliance with the License.
97
+ * You may obtain a copy of the License at
98
+ *
99
+ * http://www.apache.org/licenses/LICENSE-2.0
100
+ *
101
+ * Unless required by applicable law or agreed to in writing, software
102
+ * distributed under the License is distributed on an "AS IS" BASIS,
103
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
+ * See the License for the specific language governing permissions and
105
+ * limitations under the License.
106
+ *)
107
+
108
+ @firebase/util/dist/node-esm/index.node.esm.js:
109
+ (**
110
+ * @license
111
+ * Copyright 2020 Google LLC
112
+ *
113
+ * Licensed under the Apache License, Version 2.0 (the "License");
114
+ * you may not use this file except in compliance with the License.
115
+ * You may obtain a copy of the License at
116
+ *
117
+ * http://www.apache.org/licenses/LICENSE-2.0
118
+ *
119
+ * Unless required by applicable law or agreed to in writing, software
120
+ * distributed under the License is distributed on an "AS IS" BASIS,
121
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122
+ * See the License for the specific language governing permissions and
123
+ * limitations under the License.
124
+ *)
125
+
126
+ @firebase/util/dist/node-esm/index.node.esm.js:
127
+ (**
128
+ * @license
129
+ * Copyright 2021 Google LLC
130
+ *
131
+ * Licensed under the Apache License, Version 2.0 (the "License");
132
+ * you may not use this file except in compliance with the License.
133
+ * You may obtain a copy of the License at
134
+ *
135
+ * http://www.apache.org/licenses/LICENSE-2.0
136
+ *
137
+ * Unless required by applicable law or agreed to in writing, software
138
+ * distributed under the License is distributed on an "AS IS" BASIS,
139
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140
+ * See the License for the specific language governing permissions and
141
+ * limitations under the License.
142
+ *)
143
+ (**
144
+ * @license
145
+ * Copyright 2025 Google LLC
146
+ *
147
+ * Licensed under the Apache License, Version 2.0 (the "License");
148
+ * you may not use this file except in compliance with the License.
149
+ * You may obtain a copy of the License at
150
+ *
151
+ * http://www.apache.org/licenses/LICENSE-2.0
152
+ *
153
+ * Unless required by applicable law or agreed to in writing, software
154
+ * distributed under the License is distributed on an "AS IS" BASIS,
155
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
156
+ * See the License for the specific language governing permissions and
157
+ * limitations under the License.
158
+ *)
159
+
160
+ @firebase/app/dist/esm/index.esm.js:
161
+ (**
162
+ * @license
163
+ * Copyright 2019 Google LLC
164
+ *
165
+ * Licensed under the Apache License, Version 2.0 (the "License");
166
+ * you may not use this file except in compliance with the License.
167
+ * You may obtain a copy of the License at
168
+ *
169
+ * http://www.apache.org/licenses/LICENSE-2.0
170
+ *
171
+ * Unless required by applicable law or agreed to in writing, software
172
+ * distributed under the License is distributed on an "AS IS" BASIS,
173
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
174
+ * See the License for the specific language governing permissions and
175
+ * limitations under the License.
176
+ *)
177
+ (**
178
+ * @license
179
+ * Copyright 2023 Google LLC
180
+ *
181
+ * Licensed under the Apache License, Version 2.0 (the "License");
182
+ * you may not use this file except in compliance with the License.
183
+ * You may obtain a copy of the License at
184
+ *
185
+ * http://www.apache.org/licenses/LICENSE-2.0
186
+ *
187
+ * Unless required by applicable law or agreed to in writing, software
188
+ * distributed under the License is distributed on an "AS IS" BASIS,
189
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ * See the License for the specific language governing permissions and
191
+ * limitations under the License.
192
+ *)
193
+
194
+ @firebase/app/dist/esm/index.esm.js:
195
+ (**
196
+ * @license
197
+ * Copyright 2021 Google LLC
198
+ *
199
+ * Licensed under the Apache License, Version 2.0 (the "License");
200
+ * you may not use this file except in compliance with the License.
201
+ * You may obtain a copy of the License at
202
+ *
203
+ * http://www.apache.org/licenses/LICENSE-2.0
204
+ *
205
+ * Unless required by applicable law or agreed to in writing, software
206
+ * distributed under the License is distributed on an "AS IS" BASIS,
207
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208
+ * See the License for the specific language governing permissions and
209
+ * limitations under the License.
210
+ *)
211
+ (**
212
+ * @license
213
+ * Copyright 2019 Google LLC
214
+ *
215
+ * Licensed under the Apache License, Version 2.0 (the "License");
216
+ * you may not use this file except in compliance with the License.
217
+ * You may obtain a copy of the License at
218
+ *
219
+ * http://www.apache.org/licenses/LICENSE-2.0
220
+ *
221
+ * Unless required by applicable law or agreed to in writing, software
222
+ * distributed under the License is distributed on an "AS IS" BASIS,
223
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
224
+ * See the License for the specific language governing permissions and
225
+ * limitations under the License.
226
+ *)
227
+
228
+ @firebase/functions/dist/esm/index.esm.js:
229
+ (**
230
+ * @license
231
+ * Copyright 2017 Google LLC
232
+ *
233
+ * Licensed under the Apache License, Version 2.0 (the "License");
234
+ * you may not use this file except in compliance with the License.
235
+ * You may obtain a copy of the License at
236
+ *
237
+ * http://www.apache.org/licenses/LICENSE-2.0
238
+ *
239
+ * Unless required by applicable law or agreed to in writing, software
240
+ * distributed under the License is distributed on an "AS IS" BASIS,
241
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
242
+ * See the License for the specific language governing permissions and
243
+ * limitations under the License.
244
+ *)
245
+ (**
246
+ * @license
247
+ * Copyright 2020 Google LLC
248
+ *
249
+ * Licensed under the Apache License, Version 2.0 (the "License");
250
+ * you may not use this file except in compliance with the License.
251
+ * You may obtain a copy of the License at
252
+ *
253
+ * http://www.apache.org/licenses/LICENSE-2.0
254
+ *
255
+ * Unless required by applicable law or agreed to in writing, software
256
+ * distributed under the License is distributed on an "AS IS" BASIS,
257
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
258
+ * See the License for the specific language governing permissions and
259
+ * limitations under the License.
260
+ *)
261
+ (**
262
+ * @license
263
+ * Copyright 2019 Google LLC
264
+ *
265
+ * Licensed under the Apache License, Version 2.0 (the "License");
266
+ * you may not use this file except in compliance with the License.
267
+ * You may obtain a copy of the License at
268
+ *
269
+ * http://www.apache.org/licenses/LICENSE-2.0
270
+ *
271
+ * Unless required by applicable law or agreed to in writing, software
272
+ * distributed under the License is distributed on an "AS IS" BASIS,
273
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
274
+ * See the License for the specific language governing permissions and
275
+ * limitations under the License.
276
+ *)
277
+ */export{p as FunctionsError,mn as connectFunctionsEmulator,Un as getFunctions,Hn as httpsCallable,jn as httpsCallableFromURL};
package/dist/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
1
  import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
2
- import { O as OpenRTCOptions, a as OpenRTCClient } from './types-byWIP-WI.js';
3
- export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, l as OpenRTCRoomHandle, m as OpenRTCRoomJoinOptions, n as OpenRTCSpaceHandle, o as OpenRTCSpaceJoinOptions, p as OpenRTCTicketHandle, q as OpenRTCTicketIssueOptions, r as OpenRTCTransportPreferences, t as OpenRTCUsageUpdate, u as OpenRTCUsageWarning } from './types-byWIP-WI.js';
4
- import './OpenRTCShared-BswnbjpG.js';
5
- import './types-BHePJWbM.js';
6
- import './IEngineBridge-BbsT8hof.js';
7
- import './types-D0pqNSOf.js';
8
- import './ITransport-BsPcaov7.js';
9
- import './capabilities-YSskrE8H.js';
2
+ import { O as OpenRTCOptions, a as OpenRTCClient } from './types-Di034GVQ.js';
3
+ export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannel, i as OpenRTCConnection, j as OpenRTCDeviceProfile, k as OpenRTCDevicesHandle, l as OpenRTCDevicesStartOptions, m as OpenRTCEnrolledDevice, o as OpenRTCRoomHandle, p as OpenRTCRoomJoinOptions, q as OpenRTCSpaceHandle, r as OpenRTCSpaceJoinOptions, s as OpenRTCState, t as OpenRTCTicketHandle, u as OpenRTCTicketIssueOptions, v as OpenRTCTransportPreferences, x as OpenRTCUsageUpdate, y as OpenRTCUsageWarning } from './types-Di034GVQ.js';
4
+ import './OpenRTCShared.js';
5
+ import './assembly-q0jRRpsc.js';
6
+ import './types-DVNSd5B9.js';
7
+ import './ITransport-WV6gGMnX.js';
8
+ import './capabilities-BfZi4Cd7.js';
10
9
 
11
10
  /**
12
11
  * Create a lazy OpenRTC 2.0 browser client. Construction validates only local
@@ -34,6 +33,8 @@ declare const OPENRTC_ERROR_CODES: {
34
33
  readonly AUTH_NOT_READY: "auth/not-ready";
35
34
  readonly AUTH_DENIED: "auth/denied";
36
35
  readonly AUTH_EXPIRED: "auth/expired";
36
+ /** A removed installation must complete fresh consumer authentication before re-enrollment. */
37
+ readonly AUTH_DEVICE_REENROLLMENT_REQUIRED: "auth/device-reenrollment-required";
37
38
  readonly ADMISSION_DENIED: "admission/denied";
38
39
  readonly ADMISSION_SCOPE_MISMATCH: "admission/scope-mismatch";
39
40
  readonly BUDGET_EXCEEDED: "budget/exceeded";
@@ -43,6 +44,7 @@ declare const OPENRTC_ERROR_CODES: {
43
44
  readonly COORDINATION_DISCONNECTED: "coordination/disconnected";
44
45
  readonly COORDINATION_PROTOCOL: "coordination/protocol";
45
46
  readonly COORDINATION_RATE_LIMITED: "coordination/rate-limited";
47
+ readonly COORDINATION_SERVICE_UNAVAILABLE: "coordination/service-unavailable";
46
48
  readonly TRANSPORT_DIAL_EXHAUSTED: "transport/dial-exhausted";
47
49
  readonly TRANSPORT_UNAVAILABLE: "transport/unavailable";
48
50
  readonly TRANSPORT_TICKET_MISSING: "transport/ticket-missing";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-KWXAZUAZ.js';import {c}from'./chunk-23XC6TGK.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-TLUZAXUG.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-QOAZVE56.js');return a(t,e)}})};export{i as OpenRTC};
1
+ import {a}from'./chunk-7FPG3MFF.js';import'./chunk-VBUDERMM.js';import {b}from'./chunk-OEVPKC3W.js';import'./chunk-XPL7PUBW.js';import {d}from'./chunk-Z2WVSXPW.js';import'./chunk-DUY34MGT.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-CWGKLGJZ.js';import'./chunk-NRXEG5GQ.js';function i(n){return b(n,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./runtime/factories.js');return t(e)}})}i.native=function(n,e=d()){return b(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-B6HBECSU.js');return O(t,e)}})};export{i as OpenRTC};
@@ -0,0 +1 @@
1
+ import {a as a$1}from'./chunk-Z6TZLF4B.js';import {u}from'./chunk-H5R5ZXXN.js';import'./chunk-LRT5GEGH.js';import'./chunk-Z2WVSXPW.js';import'./chunk-DUY34MGT.js';import'./chunk-D2OJN5S5.js';import'./chunk-VOCOZ57Q.js';import'./chunk-AG2F6MOB.js';import'./chunk-CWGKLGJZ.js';import {a}from'./chunk-KJTJLLJE.js';import'./chunk-45WBH7E3.js';import'./chunk-NRXEG5GQ.js';function s(i,r){let t=a(i);return a$1(t,new u({...t,bridge:r}))}export{s as createIpcClient};
package/dist/native.d.ts CHANGED
@@ -1,13 +1,12 @@
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-byWIP-WI.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 OpenRTCEnrolledDevice, k as OpenRTCLatestStateMode, l as OpenRTCRoomHandle, m as OpenRTCRoomJoinOptions, n as OpenRTCSpaceHandle, o as OpenRTCSpaceJoinOptions, p as OpenRTCTicketHandle, q as OpenRTCTicketIssueOptions, r as OpenRTCTransportPreferences, s as OpenRTCUsageNamespace, t as OpenRTCUsageUpdate, u as OpenRTCUsageWarning } from './types-byWIP-WI.js';
5
- import './OpenRTCShared-BswnbjpG.js';
6
- import './types-BHePJWbM.js';
7
- import './IEngineBridge-BbsT8hof.js';
8
- import './types-D0pqNSOf.js';
9
- import './ITransport-BsPcaov7.js';
10
- import './capabilities-YSskrE8H.js';
3
+ import { O as OpenRTCOptions, a as OpenRTCClient } from './types-Di034GVQ.js';
4
+ export { b as OpenRTCAccessMode, c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannel, h as OpenRTCChannelCatalog, i as OpenRTCConnection, j as OpenRTCDeviceProfile, k as OpenRTCDevicesHandle, l as OpenRTCDevicesStartOptions, m as OpenRTCEnrolledDevice, n as OpenRTCLatestStateMode, o as OpenRTCRoomHandle, p as OpenRTCRoomJoinOptions, q as OpenRTCSpaceHandle, r as OpenRTCSpaceJoinOptions, s as OpenRTCState, t as OpenRTCTicketHandle, u as OpenRTCTicketIssueOptions, v as OpenRTCTransportPreferences, w as OpenRTCUsageNamespace, x as OpenRTCUsageUpdate, y as OpenRTCUsageWarning } from './types-Di034GVQ.js';
5
+ import './OpenRTCShared.js';
6
+ import './assembly-q0jRRpsc.js';
7
+ import './types-DVNSd5B9.js';
8
+ import './ITransport-WV6gGMnX.js';
9
+ import './capabilities-BfZi4Cd7.js';
11
10
 
12
11
  /** Native-only OpenRTC 2.0 entrypoint. */
13
12
 
package/dist/native.js CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-KWXAZUAZ.js';import {c}from'./chunk-23XC6TGK.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-QOAZVE56.js');return o(t,e)}})}export{m as createNativeOpenRTC};
1
+ import {a}from'./chunk-7FPG3MFF.js';import'./chunk-VBUDERMM.js';import {b}from'./chunk-OEVPKC3W.js';import'./chunk-XPL7PUBW.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'./chunk-Z2WVSXPW.js';import'./chunk-DUY34MGT.js';import'./chunk-NRXEG5GQ.js';function m(n,e){return b(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-B6HBECSU.js');return o(t,e)}})}export{m as createNativeOpenRTC};
@@ -0,0 +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}
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};
Binary file
@@ -1,7 +1,7 @@
1
- import { D as DelegatingRuntimeAdapter, W as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BLNigcS4.js';
2
- import '../types-BHePJWbM.js';
3
- import '../IEngineBridge-BbsT8hof.js';
4
- import '../capabilities-YSskrE8H.js';
1
+ import { D as DelegatingRuntimeAdapter, a as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BFZDC604.js';
2
+ import '../ITransport-WV6gGMnX.js';
3
+ import '../types-DVNSd5B9.js';
4
+ import '../capabilities-BfZi4Cd7.js';
5
5
 
6
6
  declare class WasmRuntimeAdapter extends DelegatingRuntimeAdapter {
7
7
  constructor(options: WasmBridgeOptions);
@@ -1 +1 @@
1
- import {a}from'../chunk-C6PAXO3N.js';import {w}from'../chunk-JIVVHBCB.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
+ import {a}from'../chunk-D2OJN5S5.js';import {y}from'../chunk-VOCOZ57Q.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,7 +1,5 @@
1
- import { j as RuntimeDevice, m as RuntimeDeviceStatusSnapshot } from '../types-D0pqNSOf.js';
2
- import '../IEngineBridge-BbsT8hof.js';
3
- import '../types-BHePJWbM.js';
4
- import '../ITransport-BsPcaov7.js';
1
+ import { h as RuntimeDevice, o as RuntimeDeviceStatusSnapshot } from '../types-DVNSd5B9.js';
2
+ import '../ITransport-WV6gGMnX.js';
5
3
 
6
4
  interface RuntimeDeviceActiveOptions {
7
5
  now?: number;
@@ -0,0 +1,21 @@
1
+ import { c as RuntimeFactoryOptions, b as PlutoRuntimeAssembly } from '../assembly-q0jRRpsc.js';
2
+ import { I as IpcRuntimeAdapter } from '../IpcRuntimeAdapter-CJq3dRBF.js';
3
+ import { W as WasmBridge } from '../DelegatingRuntimeAdapter-BFZDC604.js';
4
+ import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
5
+ import '../types-DVNSd5B9.js';
6
+ import '../ITransport-WV6gGMnX.js';
7
+ import '../capabilities-BfZi4Cd7.js';
8
+
9
+ /**
10
+ * @deprecated Legacy assembly helper. Use `OpenRTC()` for app code.
11
+ * Removal target: OpenRTC 0.2.0.
12
+ */
13
+ declare function createWasmClient(options: RuntimeFactoryOptions): Promise<PlutoRuntimeAssembly<WasmBridge>>;
14
+ /**
15
+ * @deprecated Legacy assembly helper. Native applications should use
16
+ * `createNativeOpenRTC` from `openrtc/native`.
17
+ * Removal target: OpenRTC 0.2.0.
18
+ */
19
+ declare function createIpcClient(options: RuntimeFactoryOptions, bridge: PlutoIpcBridge): PlutoRuntimeAssembly<IpcRuntimeAdapter>;
20
+
21
+ export { PlutoRuntimeAssembly, RuntimeFactoryOptions, createIpcClient, createWasmClient };
@@ -0,0 +1 @@
1
+ import {a as a$2}from'../chunk-Z6TZLF4B.js';import {u,a as a$3}from'../chunk-H5R5ZXXN.js';import'../chunk-LRT5GEGH.js';import'../chunk-Z2WVSXPW.js';import'../chunk-DUY34MGT.js';import'../chunk-D2OJN5S5.js';import'../chunk-VOCOZ57Q.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-BFF336RG.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-5GYKXPXK.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};