@sableclient/sable-call-embedded 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/LICENSE-AGPL-3.0 +661 -0
  2. package/LICENSE-COMMERCIAL +6 -0
  3. package/README.md +14 -0
  4. package/dist/assets/IndexedDBWorker-Dgn5IQFp.js +25 -0
  5. package/dist/assets/IndexedDBWorker-Dgn5IQFp.js.map +1 -0
  6. package/dist/assets/baduntss-Ca1ZuBEK.ogg +0 -0
  7. package/dist/assets/baduntss-DOe0oFuS.mp3 +0 -0
  8. package/dist/assets/call_declined-1jWRbd4p.mp3 +0 -0
  9. package/dist/assets/call_declined-C6gHsCGH.ogg +0 -0
  10. package/dist/assets/call_timeout-BCxXxRD8.mp3 +0 -0
  11. package/dist/assets/call_timeout-DPKAj6sz.ogg +0 -0
  12. package/dist/assets/cat-4r_NkDcK.ogg +0 -0
  13. package/dist/assets/cat-Dd8bv_2W.mp3 +0 -0
  14. package/dist/assets/clap-AxCMZLTd.ogg +0 -0
  15. package/dist/assets/clap-Dxm5qGyl.mp3 +0 -0
  16. package/dist/assets/crickets-CcwrRdbq.mp3 +0 -0
  17. package/dist/assets/crickets-DUJdcuUa.ogg +0 -0
  18. package/dist/assets/cs-app-Du_5mVg3.json +236 -0
  19. package/dist/assets/da-app-BBz-lePm.json +236 -0
  20. package/dist/assets/de-app-DjOuqT-j.json +237 -0
  21. package/dist/assets/deer-91r1Gyrx.mp3 +0 -0
  22. package/dist/assets/deer-DPSlVch4.ogg +0 -0
  23. package/dist/assets/dog-BoQdnF-w.mp3 +0 -0
  24. package/dist/assets/dog-CxIWtkNX.ogg +0 -0
  25. package/dist/assets/el-app-BBr3LLTK.json +122 -0
  26. package/dist/assets/en-app-D4wTuGKD.json +261 -0
  27. package/dist/assets/es-app-Q3c7lmEj.json +88 -0
  28. package/dist/assets/et-app-DLvuR7m2.json +234 -0
  29. package/dist/assets/fi-app-tnO3DMdi.json +224 -0
  30. package/dist/assets/fr-app-BxTYbDfK.json +111 -0
  31. package/dist/assets/generic-BBbS3Wph.ogg +0 -0
  32. package/dist/assets/generic-BFeSb6fL.mp3 +0 -0
  33. package/dist/assets/id-app-BEz8ptLJ.json +223 -0
  34. package/dist/assets/inconsolata-latin-400-normal-DTZQ6lD6.woff2 +0 -0
  35. package/dist/assets/inconsolata-latin-400-normal-HYADljCo.woff +0 -0
  36. package/dist/assets/inconsolata-latin-700-normal-ByjKuJjN.woff2 +0 -0
  37. package/dist/assets/inconsolata-latin-700-normal-DzgUY3Rl.woff +0 -0
  38. package/dist/assets/inconsolata-latin-ext-400-normal-BaHVOdFB.woff2 +0 -0
  39. package/dist/assets/inconsolata-latin-ext-400-normal-yvPjCxxx.woff +0 -0
  40. package/dist/assets/inconsolata-latin-ext-700-normal-D0Kpgs_9.woff2 +0 -0
  41. package/dist/assets/inconsolata-latin-ext-700-normal-Dlt-daqV.woff +0 -0
  42. package/dist/assets/inconsolata-vietnamese-400-normal-ByiM2lek.woff +0 -0
  43. package/dist/assets/inconsolata-vietnamese-400-normal-DfC_iMic.woff2 +0 -0
  44. package/dist/assets/inconsolata-vietnamese-700-normal-DLCFFAUf.woff +0 -0
  45. package/dist/assets/inconsolata-vietnamese-700-normal-DuasYmn8.woff2 +0 -0
  46. package/dist/assets/index-BOka8551.js +4 -0
  47. package/dist/assets/index-BOka8551.js.map +1 -0
  48. package/dist/assets/index-BxK4r5m1.css +1 -0
  49. package/dist/assets/index-CSLbyoDR.js +3 -0
  50. package/dist/assets/index-CSLbyoDR.js.map +1 -0
  51. package/dist/assets/index-zdC0P6j0.js +300 -0
  52. package/dist/assets/index-zdC0P6j0.js.map +1 -0
  53. package/dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  54. package/dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  55. package/dist/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
  56. package/dist/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
  57. package/dist/assets/inter-cyrillic-600-normal-4D_pXhcN.woff +0 -0
  58. package/dist/assets/inter-cyrillic-600-normal-CWCymEST.woff2 +0 -0
  59. package/dist/assets/inter-cyrillic-700-normal-CjBOestx.woff2 +0 -0
  60. package/dist/assets/inter-cyrillic-700-normal-DrXBdSj3.woff +0 -0
  61. package/dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  62. package/dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  63. package/dist/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
  64. package/dist/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
  65. package/dist/assets/inter-cyrillic-ext-600-normal-Bcila6Z-.woff +0 -0
  66. package/dist/assets/inter-cyrillic-ext-600-normal-Dfes3d0z.woff2 +0 -0
  67. package/dist/assets/inter-cyrillic-ext-700-normal-BjwYoWNd.woff2 +0 -0
  68. package/dist/assets/inter-cyrillic-ext-700-normal-LO58E6JB.woff +0 -0
  69. package/dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  70. package/dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  71. package/dist/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
  72. package/dist/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
  73. package/dist/assets/inter-greek-600-normal-BZpKdvQh.woff +0 -0
  74. package/dist/assets/inter-greek-600-normal-plRanbMR.woff2 +0 -0
  75. package/dist/assets/inter-greek-700-normal-BUv2fZ6O.woff +0 -0
  76. package/dist/assets/inter-greek-700-normal-C3JjAnD8.woff2 +0 -0
  77. package/dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  78. package/dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  79. package/dist/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
  80. package/dist/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
  81. package/dist/assets/inter-greek-ext-600-normal-B8X0CLgF.woff +0 -0
  82. package/dist/assets/inter-greek-ext-600-normal-DRtmH8MT.woff2 +0 -0
  83. package/dist/assets/inter-greek-ext-700-normal-BoQ6DsYi.woff +0 -0
  84. package/dist/assets/inter-greek-ext-700-normal-qfdV9bQt.woff2 +0 -0
  85. package/dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  86. package/dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  87. package/dist/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  88. package/dist/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  89. package/dist/assets/inter-latin-600-normal-CiBQ2DWP.woff +0 -0
  90. package/dist/assets/inter-latin-600-normal-LgqL8muc.woff2 +0 -0
  91. package/dist/assets/inter-latin-700-normal-BLAVimhd.woff +0 -0
  92. package/dist/assets/inter-latin-700-normal-Yt3aPRUw.woff2 +0 -0
  93. package/dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  94. package/dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  95. package/dist/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
  96. package/dist/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
  97. package/dist/assets/inter-latin-ext-600-normal-CIVaiw4L.woff +0 -0
  98. package/dist/assets/inter-latin-ext-600-normal-D2bJ5OIk.woff2 +0 -0
  99. package/dist/assets/inter-latin-ext-700-normal-Ca8adRJv.woff2 +0 -0
  100. package/dist/assets/inter-latin-ext-700-normal-TidjK2hL.woff +0 -0
  101. package/dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  102. package/dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  103. package/dist/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
  104. package/dist/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
  105. package/dist/assets/inter-vietnamese-600-normal-BuLX-rYi.woff +0 -0
  106. package/dist/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
  107. package/dist/assets/inter-vietnamese-700-normal-BZaoP0fm.woff +0 -0
  108. package/dist/assets/inter-vietnamese-700-normal-DlLaEgI2.woff2 +0 -0
  109. package/dist/assets/it-app-Cik25Qgd.json +215 -0
  110. package/dist/assets/ja-app-Cp_00ujI.json +123 -0
  111. package/dist/assets/join_call-DlMV9nHk.ogg +0 -0
  112. package/dist/assets/join_call-dEJCP2wD.mp3 +0 -0
  113. package/dist/assets/left_call-BbqmRgnC.mp3 +0 -0
  114. package/dist/assets/left_call-C7NMl6WI.ogg +0 -0
  115. package/dist/assets/lightbulb-BIeJtAR_.ogg +0 -0
  116. package/dist/assets/lightbulb-BrnY00qi.mp3 +0 -0
  117. package/dist/assets/livekit-client.e2ee.worker-Bmrtztct.js.map +1 -0
  118. package/dist/assets/lv-app-D-ZV3Ytk.json +222 -0
  119. package/dist/assets/matrix-sdk-crypto-wasm-BsWSMcLv.js +3 -0
  120. package/dist/assets/matrix-sdk-crypto-wasm-BsWSMcLv.js.map +1 -0
  121. package/dist/assets/matrix_sdk_crypto_wasm_bg-DU_51VO6.wasm +0 -0
  122. package/dist/assets/pako.esm-Cf42LiW4.js +2 -0
  123. package/dist/assets/pako.esm-Cf42LiW4.js.map +1 -0
  124. package/dist/assets/party-BZPeTgC3.mp3 +0 -0
  125. package/dist/assets/party-D7rIOhAQ.ogg +0 -0
  126. package/dist/assets/pl-app-CUkXVSZk.json +221 -0
  127. package/dist/assets/polyfill-force-DGhxcQMk.js +3 -0
  128. package/dist/assets/polyfill-force-DGhxcQMk.js.map +1 -0
  129. package/dist/assets/polyfill-force-DSyAwg73.js +2 -0
  130. package/dist/assets/polyfill-force-DSyAwg73.js.map +1 -0
  131. package/dist/assets/raise_hand-Bzqn65WB.mp3 +0 -0
  132. package/dist/assets/raise_hand-CUbxEnt9.ogg +0 -0
  133. package/dist/assets/ringtone-B-nJXbbw.ogg +0 -0
  134. package/dist/assets/ringtone-B2csBdU4.mp3 +0 -0
  135. package/dist/assets/ro-app-CdYgKCOW.json +206 -0
  136. package/dist/assets/rock-BVCJXNC-.ogg +0 -0
  137. package/dist/assets/rock-CHdnB31m.mp3 +0 -0
  138. package/dist/assets/ru-app-CIijOjFj.json +229 -0
  139. package/dist/assets/screen_share_started-DH3qxml5.mp3 +0 -0
  140. package/dist/assets/screen_share_started-IZDL-kAw.ogg +0 -0
  141. package/dist/assets/selfie_segmenter-DF05sdL4.tflite +0 -0
  142. package/dist/assets/sk-app-DaVEeQWZ.json +230 -0
  143. package/dist/assets/spa-DBidebYi.js +2 -0
  144. package/dist/assets/spa-DBidebYi.js.map +1 -0
  145. package/dist/assets/sv-app-DHLBEOTp.json +236 -0
  146. package/dist/assets/tr-app-Dk--6BpP.json +209 -0
  147. package/dist/assets/uk-app-DZD01h76.json +222 -0
  148. package/dist/assets/vision_wasm_internal-B105rqk5.js +2 -0
  149. package/dist/assets/vision_wasm_internal-cvmXinav.wasm +0 -0
  150. package/dist/assets/wave-Bzf1LSMH.mp3 +0 -0
  151. package/dist/assets/wave-FiiOzicp.ogg +0 -0
  152. package/dist/assets/zh-Hans-app-BY5jJGyr.json +133 -0
  153. package/dist/assets/zh-Hant-app-BV1LKS_j.json +114 -0
  154. package/dist/config.json +1 -0
  155. package/dist/index.html +1 -0
  156. package/package.json +14 -0
@@ -0,0 +1,3 @@
1
+ let r;function Nt(_){r=_}function S(_){const e=r.__externref_table_alloc();return r.__wbindgen_externrefs.set(e,_),e}function d(_,e){if(!(_ instanceof e))throw new Error(`expected instance of ${e.name}`)}const Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>_.dtor(_.a,_.b));function xt(_){const e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){const i=_.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=_.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(_)){const i=_.length;let s="[";i>0&&(s+=xt(_[0]));for(let a=1;a<i;a++)s+=", "+xt(_[a]);return s+="]",s}const t=/\[object ([^\]]+)\]/.exec(toString.call(_));let n;if(t&&t.length>1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
2
+ ${_.stack}`:n}function se(_,e){_=_>>>0;const t=k(),n=[];for(let i=_;i<_+4*e;i+=4)n.push(r.__wbindgen_externrefs.get(t.getUint32(i,!0)));return r.__externref_drop_slice(_,e),n}function i_(_,e){return _=_>>>0,s_().subarray(_/2,_/2+e)}function j(_,e){return _=_>>>0,ie().subarray(_/1,_/1+e)}let ne=null;function k(){return(ne===null||ne.buffer.detached===!0||ne.buffer.detached===void 0&&ne.buffer!==r.memory.buffer)&&(ne=new DataView(r.memory.buffer)),ne}function b(_,e){return _=_>>>0,c_(_,e)}let it=null;function s_(){return(it===null||it.byteLength===0)&&(it=new Uint16Array(r.memory.buffer)),it}let st=null;function ie(){return(st===null||st.byteLength===0)&&(st=new Uint8Array(r.memory.buffer)),st}function u(_,e){try{return _.apply(this,e)}catch(t){const n=S(t);r.__wbindgen_exn_store(n)}}function w(_){return _==null}function dt(_,e,t,n){const i={a:_,b:e,cnt:1,dtor:t},s=(...a)=>{i.cnt++;const p=i.a;i.a=0;try{return n(p,i.b,...a)}finally{i.a=p,s._wbg_cb_unref()}};return s._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,Lt.unregister(i))},Lt.register(s,i,i),s}function B(_,e){const t=e(_.length*1,1)>>>0;return ie().set(_,t/1),o=_.length,t}function q(_,e){const t=e(_.length*4,4)>>>0;for(let n=0;n<_.length;n++){const i=S(_[n]);k().setUint32(t+4*n,i,!0)}return o=_.length,t}function g(_,e,t){if(t===void 0){const p=_t.encode(_),l=e(p.length,1)>>>0;return ie().subarray(l,l+p.length).set(p),o=p.length,l}let n=_.length,i=e(n,1)>>>0;const s=ie();let a=0;for(;a<n;a++){const p=_.charCodeAt(a);if(p>127)break;s[i+a]=p}if(a!==n){a!==0&&(_=_.slice(a)),i=t(i,n,n=a+_.length*3,1)>>>0;const p=ie().subarray(i+a,i+n),l=_t.encodeInto(_,p);a+=l.written,i=t(i,n,a,1)>>>0}return o=a,i}function c(_){const e=r.__wbindgen_externrefs.get(_);return r.__externref_table_dealloc(_),e}let ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ot.decode();const o_=2146435072;let pt=0;function c_(_,e){return pt+=e,pt>=o_&&(ot=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),ot.decode(),pt=e),ot.decode(ie().subarray(_,_+e))}const _t=new TextEncoder;"encodeInto"in _t||(_t.encodeInto=function(_,e){const t=_t.encode(_);return e.set(t),{read:_.length,written:t.length}});let o=0;function r_(_,e,t){r.wasm_bindgen__convert__closures_____invoke__h89fab44ead303aca(_,e,t)}function a_(_,e){r.wasm_bindgen__convert__closures_____invoke__h22e674b566e32b64(_,e)}function g_(_,e,t){const n=r.wasm_bindgen__convert__closures_____invoke__h35b0a77e54c2db90(_,e,t);if(n[1])throw c(n[0])}function b_(_,e,t,n){r.wasm_bindgen__convert__closures_____invoke__h8815fd477ac2dc7f(_,e,t,n)}const d_=["pending","done"],__=["readonly","readwrite","versionchange","readwriteflush","cleanup"],p_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_attachment_free(_>>>0,1)),Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupdecryptionkey_free(_>>>0,1)),Qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupkeys_free(_>>>0,1)),Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupsecretsbundle_free(_>>>0,1)),wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_base64encodedpkmessage_free(_>>>0,1)),Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_basemigrationdata_free(_>>>0,1)),$t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cancelinfo_free(_>>>0,1)),Ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_checkcode_free(_>>>0,1)),Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_collectstrategy_free(_>>>0,1)),Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningbootstraprequests_free(_>>>0,1)),Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningkeyexport_free(_>>>0,1)),er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningstatus_free(_>>>0,1)),ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_curve25519publickey_free(_>>>0,1)),tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_curve25519secretkey_free(_>>>0,1)),rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptedroomevent_free(_>>>0,1)),_r=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptedtodeviceevent_free(_>>>0,1)),nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptionsettings_free(_>>>0,1)),ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevice_free(_>>>0,1)),sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevicekey_free(_>>>0,1)),or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevices_free(_>>>0,1)),cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_device_free(_>>>0,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_deviceid_free(_>>>0,1)),ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekey_free(_>>>0,1)),gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyalgorithm_free(_>>>0,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyid_free(_>>>0,1)),br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicelists_free(_>>>0,1)),dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ecies_free(_>>>0,1)),pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519publickey_free(_>>>0,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519signature_free(_>>>0,1)),wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_emoji_free(_>>>0,1)),ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptedattachment_free(_>>>0,1)),ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptioninfo_free(_>>>0,1)),lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptionsettings_free(_>>>0,1)),fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_establishedecies_free(_>>>0,1)),yr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_eventid_free(_>>>0,1)),hr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_identitykeys_free(_>>>0,1)),mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundcreationresult_free(_>>>0,1)),vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundgroupsession_free(_>>>0,1)),Sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_invalidtodeviceevent_free(_>>>0,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysbackuprequest_free(_>>>0,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysclaimrequest_free(_>>>0,1)),St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysqueryrequest_free(_>>>0,1)),kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysuploadrequest_free(_>>>0,1)),kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_maybesignature_free(_>>>0,1)),Rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmdecryptionerror_free(_>>>0,1)),Fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmv1backupkey_free(_>>>0,1)),w_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_migration_free(_>>>0,1)),Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_olmmachine_free(_>>>0,1)),zr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_otheruseridentity_free(_>>>0,1)),qr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_outboundcreationresult_free(_>>>0,1)),jr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ownuseridentity_free(_>>>0,1)),Kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledinboundgroupsession_free(_>>>0,1)),Ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledsession_free(_>>>0,1)),Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkdecryption_free(_>>>0,1)),Dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkencryption_free(_>>>0,1)),Cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pkmessage_free(_>>>0,1)),Or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_plaintexttodeviceevent_free(_>>>0,1)),zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_putdehydrateddevicerequest_free(_>>>0,1)),Br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qr_free(_>>>0,1)),Ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcode_free(_>>>0,1)),qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodedata_free(_>>>0,1)),Er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodescan_free(_>>>0,1)),Vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_rehydrateddevice_free(_>>>0,1)),jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomid_free(_>>>0,1)),xr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeycounts_free(_>>>0,1)),Tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyimportresult_free(_>>>0,1)),Ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyinfo_free(_>>>0,1)),Mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeywithheldinfo_free(_>>>0,1)),Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roommessagerequest_free(_>>>0,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomsettings_free(_>>>0,1)),Pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_sas_free(_>>>0,1)),Nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_secretsbundle_free(_>>>0,1)),Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_servername_free(_>>>0,1)),Lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_shieldstate_free(_>>>0,1)),Wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signature_free(_>>>0,1)),Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureuploadrequest_free(_>>>0,1)),Qr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureverification_free(_>>>0,1)),Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatures_free(_>>>0,1)),Gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_storehandle_free(_>>>0,1)),Jr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_storedroomkeybundledata_free(_>>>0,1)),$r=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todeviceencryptioninfo_free(_>>>0,1)),Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todevicerequest_free(_>>>0,1)),Hr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todeviceunabletodecryptinfo_free(_>>>0,1)),Xr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_tracing_free(_>>>0,1)),Yr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_utdtodeviceevent_free(_>>>0,1)),Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_uploadsigningkeysrequest_free(_>>>0,1)),Zr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userdevices_free(_>>>0,1)),Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userid_free(_>>>0,1)),e_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_verificationrequest_free(_>>>0,1)),t_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versions_free(_>>>0,1));class Tt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,p_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_attachment_free(e,0)}static decrypt(e){d(e,A);const t=r.attachment_decrypt(e.__wbg_ptr);if(t[3])throw c(t[2]);var n=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}static encrypt(e){const t=B(e,r.__wbindgen_malloc),n=o,i=r.attachment_encrypt(t,n);if(i[2])throw c(i[1]);return A.__wrap(i[0])}}Symbol.dispose&&(Tt.prototype[Symbol.dispose]=Tt.prototype.free);class C{static __wrap(e){e=e>>>0;const t=Object.create(C.prototype);return t.__wbg_ptr=e,Wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupdecryptionkey_free(e,0)}decryptV1(e,t,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o,F=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,_e=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),n_=o,nt=r.backupdecryptionkey_decryptV1(this.__wbg_ptr,l,m,F,v,_e,n_);var a=nt[0],p=nt[1];if(nt[3])throw a=0,p=0,c(nt[2]);return i=a,s=p,b(a,p)}finally{r.__wbindgen_free(i,s,1)}}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.backupdecryptionkey_fromBase64(t,n);if(i[2])throw c(i[1]);return C.__wrap(i[0])}static createRandomKey(){const e=r.backupdecryptionkey_createRandomKey();return C.__wrap(e)}get megolmV1PublicKey(){const e=r.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return je.__wrap(e)}toBase64(){return r.backupdecryptionkey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);class oe{static __wrap(e){e=e>>>0;const t=Object.create(oe.prototype);return t.__wbg_ptr=e,Qt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupkeys_free(e,0)}get decryptionKeyBase64(){return r.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}get decryptionKey(){const e=r.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return e===0?void 0:C.__wrap(e)}set decryptionKey(e){let t=0;w(e)||(d(e,C),t=e.__destroy_into_raw()),r.__wbg_set_backupkeys_decryptionKey(this.__wbg_ptr,t)}get backupVersion(){const e=r.__wbg_get_backupkeys_backupVersion(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,n)}}Symbol.dispose&&(oe.prototype[Symbol.dispose]=oe.prototype.free);class ce{static __wrap(e){e=e>>>0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,Gt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupsecretsbundle_free(e,0)}get key(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backup_version(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set backup_version(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}}Symbol.dispose&&(ce.prototype[Symbol.dispose]=ce.prototype.free);class L{static __wrap(e){e=e>>>0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_base64encodedpkmessage_free(e,0)}get ciphertext(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_ciphertext(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set ciphertext(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get mac(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_mac(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set mac(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get ephemeralKey(){let e,t;try{const n=r.__wbg_get_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set ephemeralKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr,t,n)}constructor(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o,F=r.base64encodedpkmessage_new(i,s,a,p,l,m);return this.__wbg_ptr=F>>>0,wt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class ct{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_basemigrationdata_free(e,0)}constructor(){const e=r.basemigrationdata_new();return this.__wbg_ptr=e>>>0,Jt.register(this,this.__wbg_ptr,this),this}get userId(){const e=r.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return e===0?void 0:f.__wrap(e)}set userId(e){let t=0;w(e)||(d(e,f),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_userId(this.__wbg_ptr,t)}get deviceId(){const e=r.__wbg_get_basemigrationdata_deviceId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set deviceId(e){let t=0;w(e)||(d(e,h),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}get pickledAccount(){let e,t;try{const n=r.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backupVersion(){const e=r.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,n)}get backupRecoveryKey(){const e=r.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupRecoveryKey(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get privateCrossSigningMasterKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningMasterKey(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,n)}get privateCrossSigningSelfSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningSelfSigningKey(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,n)}get privateCrossSigningUserSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningUserSigningKey(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,n)}}Symbol.dispose&&(ct.prototype[Symbol.dispose]=ct.prototype.free);class V{static __wrap(e){e=e>>>0;const t=Object.create(V.prototype);return t.__wbg_ptr=e,$t.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_cancelinfo_free(e,0)}cancelCode(){let e,t;try{const n=r.cancelinfo_cancelCode(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}cancelledbyUs(){return r.cancelinfo_cancelledbyUs(this.__wbg_ptr)!==0}reason(){return r.cancelinfo_reason(this.__wbg_ptr)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class ae{static __wrap(e){e=e>>>0;const t=Object.create(ae.prototype);return t.__wbg_ptr=e,Ht.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_checkcode_free(e,0)}as_bytes(){const e=r.checkcode_as_bytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}to_digit(){return r.checkcode_to_digit(this.__wbg_ptr)}}Symbol.dispose&&(ae.prototype[Symbol.dispose]=ae.prototype.free);class z{static __wrap(e){e=e>>>0;const t=Object.create(z.prototype);return t.__wbg_ptr=e,Xt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_collectstrategy_free(e,0)}static allDevices(){const e=r.collectstrategy_allDevices();return z.__wrap(e)}static onlyTrustedDevices(){const e=r.collectstrategy_onlyTrustedDevices();return z.__wrap(e)}static deviceBasedStrategy(e,t){const n=r.collectstrategy_deviceBasedStrategy(e,t);return z.__wrap(n)}static identityBasedStrategy(){const e=r.collectstrategy_identityBasedStrategy();return z.__wrap(e)}eq(e){return d(e,z),r.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)!==0}static errorOnUnverifiedUserProblem(){const e=r.collectstrategy_errorOnUnverifiedUserProblem();return z.__wrap(e)}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class ge{static __wrap(e){e=e>>>0;const t=Object.create(ge.prototype);return t.__wbg_ptr=e,Yt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningbootstraprequests_free(e,0)}get uploadKeysRequest(){return r.__wbg_get_crosssigningbootstraprequests_uploadKeysRequest(this.__wbg_ptr)}get uploadSigningKeysRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSigningKeysRequest(this.__wbg_ptr);return et.__wrap(e)}get uploadSignaturesRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return ee.__wrap(e)}}Symbol.dispose&&(ge.prototype[Symbol.dispose]=ge.prototype.free);class be{static __wrap(e){e=e>>>0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,Zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningkeyexport_free(e,0)}get masterKey(){const e=r.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get self_signing_key(){const e=r.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get userSigningKey(){const e=r.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}Symbol.dispose&&(be.prototype[Symbol.dispose]=be.prototype.free);class de{static __wrap(e){e=e>>>0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,er.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningstatus_free(e,0)}get hasMaster(){return r.crosssigningstatus_hasMaster(this.__wbg_ptr)!==0}get hasSelfSigning(){return r.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)!==0}get hasUserSigning(){return r.crosssigningstatus_hasUserSigning(this.__wbg_ptr)!==0}}Symbol.dispose&&(de.prototype[Symbol.dispose]=de.prototype.free);class R{static __wrap(e){e=e>>>0;const t=Object.create(R.prototype);return t.__wbg_ptr=e,ut.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519publickey_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.curve25519publickey_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,ut.register(this,this.__wbg_ptr,this),this}get length(){return r.curve25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.curve25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class D{static __wrap(e){e=e>>>0;const t=Object.create(D.prototype);return t.__wbg_ptr=e,tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519secretkey_free(e,0)}static fromUint8Array(e){const t=B(e,r.__wbindgen_malloc),n=o,i=r.curve25519secretkey_fromUint8Array(t,n);if(i[2])throw c(i[1]);return D.__wrap(i[0])}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.curve25519secretkey_fromBase64(t,n);if(i[2])throw c(i[1]);return D.__wrap(i[0])}static new(){const e=r.curve25519secretkey_new();return D.__wrap(e)}toUint8Array(){const e=r.curve25519secretkey_toUint8Array(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}toBase64(){let e,t;try{const n=r.curve25519secretkey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class pe{static __wrap(e){e=e>>>0;const t=Object.create(pe.prototype);return t.__wbg_ptr=e,rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedroomevent_free(e,0)}shieldState(e){const t=r.decryptedroomevent_shieldState(this.__wbg_ptr,e);return Z.__wrap(t)}get senderDevice(){const e=r.decryptedroomevent_senderDevice(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}get forwarderDevice(){const e=r.decryptedroomevent_forwarderDevice(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}get senderCurve25519Key(){let e,t;try{const n=r.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get senderClaimedEd25519Key(){return r.decryptedroomevent_senderClaimedEd25519Key(this.__wbg_ptr)}get forwardingCurve25519KeyChain(){return r.decryptedroomevent_forwardingCurve25519KeyChain(this.__wbg_ptr)}get sender(){const e=r.decryptedroomevent_sender(this.__wbg_ptr);return f.__wrap(e)}get forwarder(){const e=r.decryptedroomevent_forwarder(this.__wbg_ptr);return e===0?void 0:f.__wrap(e)}get event(){return r.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}}Symbol.dispose&&(pe.prototype[Symbol.dispose]=pe.prototype.free);class we{static __wrap(e){e=e>>>0;const t=Object.create(we.prototype);return t.__wbg_ptr=e,_r.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_r.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_decryptedtodeviceevent_rawEvent(this.__wbg_ptr)}get encryptionInfo(){const e=r.__wbg_get_decryptedtodeviceevent_encryptionInfo(this.__wbg_ptr);return He.__wrap(e)}get type(){return r.decryptedtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(we.prototype[Symbol.dispose]=we.prototype.free);const u_=Object.freeze({MissingRoomKey:0,0:"MissingRoomKey",UnknownMessageIndex:1,1:"UnknownMessageIndex",MismatchedIdentityKeys:2,2:"MismatchedIdentityKeys",UnknownSenderDevice:3,3:"UnknownSenderDevice",UnsignedSenderDevice:4,4:"UnsignedSenderDevice",SenderIdentityVerificationViolation:5,5:"SenderIdentityVerificationViolation",UnableToDecrypt:6,6:"UnableToDecrypt",MismatchedSender:7,7:"MismatchedSender"});class ue{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptionsettings_free(e,0)}constructor(e){const t=r.decryptionsettings_new(e);return this.__wbg_ptr=t>>>0,nr.register(this,this.__wbg_ptr,this),this}get sender_device_trust_requirement(){return r.__wbg_get_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr)}set sender_device_trust_requirement(e){r.__wbg_set_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr,e)}}Symbol.dispose&&(ue.prototype[Symbol.dispose]=ue.prototype.free);class le{static __wrap(e){e=e>>>0;const t=Object.create(le.prototype);return t.__wbg_ptr=e,ir.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){return d(t,K),r.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}Symbol.dispose&&(le.prototype[Symbol.dispose]=le.prototype.free);class K{static __wrap(e){e=e>>>0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,sr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=r.dehydrateddevicekey_createRandomKey();if(e[2])throw c(e[1]);return K.__wrap(e[0])}static createKeyFromArray(e){const t=r.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw c(t[1]);return K.__wrap(t[0])}toBase64(){return r.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);class fe{static __wrap(e){e=e>>>0;const t=Object.create(fe.prototype);return t.__wbg_ptr=e,or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevices_free(e,0)}getDehydratedDeviceKey(){return r.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){return d(e,K),r.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return r.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}create(){return r.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,n){d(e,K),d(t,h);const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;return r.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s)}}Symbol.dispose&&(fe.prototype[Symbol.dispose]=fe.prototype.free);class W{static __wrap(e){e=e>>>0;const t=Object.create(W.prototype);return t.__wbg_ptr=e,cr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_device_free(e,0)}get algorithms(){return r.device_algorithms(this.__wbg_ptr)}isDeleted(){return r.device_isDeleted(this.__wbg_ptr)!==0}get signatures(){const e=r.device_signatures(this.__wbg_ptr);return te.__wrap(e)}get ed25519Key(){const e=r.device_ed25519Key(this.__wbg_ptr);return e===0?void 0:U.__wrap(e)}isVerified(){return r.device_isVerified(this.__wbg_ptr)!==0}get displayName(){const e=r.device_displayName(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get isDehydrated(){return r.device_isDehydrated(this.__wbg_ptr)!==0}get curve25519Key(){const e=r.device_curve25519Key(this.__wbg_ptr);return e===0?void 0:R.__wrap(e)}isBlacklisted(){return r.device_isBlacklisted(this.__wbg_ptr)!==0}firstTimeSeen(){const e=r.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}setLocalTrust(e){return r.device_setLocalTrust(this.__wbg_ptr,e)}get localTrustState(){return r.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return r.device_isLocallyTrusted(this.__wbg_ptr)!==0}requestVerification(e){var t=w(e)?0:q(e,r.__wbindgen_malloc),n=o;const i=r.device_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}encryptToDeviceEvent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;let a=0;return w(n)||(d(n,z),a=n.__destroy_into_raw()),r.device_encryptToDeviceEvent(this.__wbg_ptr,i,s,t,a)}isCrossSignedByOwner(){return r.device_isCrossSignedByOwner(this.__wbg_ptr)!==0}isCrossSigningTrusted(){return r.device_isCrossSigningTrusted(this.__wbg_ptr)!==0}get keys(){return r.device_keys(this.__wbg_ptr)}verify(){return r.device_verify(this.__wbg_ptr)}getKey(e){const t=r.device_getKey(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return t[0]===0?void 0:Q.__wrap(t[0])}get userId(){const e=r.device_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.device_deviceId(this.__wbg_ptr);return h.__wrap(e)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class h{static __wrap(e){e=e>>>0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,lt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_deviceid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.deviceid_new(t,n);return this.__wbg_ptr=i>>>0,lt.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.deviceid_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);class Q{static __wrap(e){e=e>>>0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekey_free(e,0)}get curve25519(){const e=r.devicekey_curve25519(this.__wbg_ptr);return e===0?void 0:R.__wrap(e)}get name(){return r.devicekey_name(this.__wbg_ptr)}get ed25519(){const e=r.devicekey_ed25519(this.__wbg_ptr);return e===0?void 0:U.__wrap(e)}get unknown(){const e=r.devicekey_unknown(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}toBase64(){let e,t;try{const n=r.devicekey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class ye{static __wrap(e){e=e>>>0;const t=Object.create(ye.prototype);return t.__wbg_ptr=e,gr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyalgorithm_free(e,0)}get name(){return r.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const n=r.devicekeyalgorithm_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(ye.prototype[Symbol.dispose]=ye.prototype.free);const l_=Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"});class x{static __wrap(e){e=e>>>0;const t=Object.create(x.prototype);return t.__wbg_ptr=e,ft.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.devicekeyid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,ft.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=r.devicekeyid_algorithm(this.__wbg_ptr);return ye.__wrap(e)}get deviceId(){const e=r.devicekeyid_deviceId(this.__wbg_ptr);return h.__wrap(e)}toString(){let e,t;try{const n=r.devicekeyid_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(x.prototype[Symbol.dispose]=x.prototype.free);const f_=Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"});class at{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicelists_free(e,0)}constructor(e,t){var n=w(e)?0:q(e,r.__wbindgen_malloc),i=o,s=w(t)?0:q(t,r.__wbindgen_malloc),a=o;const p=r.devicelists_new(n,i,s,a);if(p[2])throw c(p[1]);return this.__wbg_ptr=p[0]>>>0,br.register(this,this.__wbg_ptr,this),this}get left(){const e=r.devicelists_left(this.__wbg_ptr);var t=se(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}get changed(){const e=r.devicelists_changed(this.__wbg_ptr);var t=se(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}isEmpty(){return r.devicelists_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(at.prototype[Symbol.dispose]=at.prototype.free);class At{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ecies_free(e,0)}public_key(){const e=r.ecies_public_key(this.__wbg_ptr);return R.__wrap(e)}establish_inbound_channel(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ecies_establish_inbound_channel(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return Se.__wrap(i[0])}establish_outbound_channel(e,t){d(e,R);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return De.__wrap(s[0])}constructor(){const e=r.ecies_new();return this.__wbg_ptr=e>>>0,dr.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(At.prototype[Symbol.dispose]=At.prototype.free);class U{static __wrap(e){e=e>>>0;const t=Object.create(U.prototype);return t.__wbg_ptr=e,pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519publickey_free(e,0)}get length(){return r.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.ed25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class T{static __wrap(e){e=e>>>0;const t=Object.create(T.prototype);return t.__wbg_ptr=e,yt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519signature_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ed25519signature_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,yt.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const n=r.ed25519signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class he{static __wrap(e){e=e>>>0;const t=Object.create(he.prototype);return t.__wbg_ptr=e,wr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_emoji_free(e,0)}get description(){return r.emoji_description(this.__wbg_ptr)}get symbol(){return r.emoji_symbol(this.__wbg_ptr)}}Symbol.dispose&&(he.prototype[Symbol.dispose]=he.prototype.free);class A{static __wrap(e){e=e>>>0;const t=Object.create(A.prototype);return t.__wbg_ptr=e,ht.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptedattachment_free(e,0)}get encryptedData(){const e=r.encryptedattachment_encryptedData(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}get mediaEncryptionInfo(){const e=r.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get hasMediaEncryptionInfoBeenConsumed(){return r.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)!==0}constructor(e,t){const n=B(e,r.__wbindgen_malloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,p=r.encryptedattachment_new(n,i,s,a);if(p[2])throw c(p[1]);return this.__wbg_ptr=p[0]>>>0,ht.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);const y_=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"});class me{static __wrap(e){e=e>>>0;const t=Object.create(me.prototype);return t.__wbg_ptr=e,ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptioninfo_free(e,0)}shieldState(e){const t=r.encryptioninfo_shieldState(this.__wbg_ptr,e);return Z.__wrap(t)}get sender(){const e=r.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){d(e,f);var t=e.__destroy_into_raw();r.__wbg_set_encryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_encryptioninfo_senderDevice(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set senderDevice(e){let t=0;w(e)||(d(e,h),t=e.__destroy_into_raw()),r.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}get forwarder(){const e=r.__wbg_get_encryptioninfo_forwarder(this.__wbg_ptr);return e===0?void 0:f.__wrap(e)}set forwarder(e){let t=0;w(e)||(d(e,f),t=e.__destroy_into_raw()),r.__wbg_set_encryptioninfo_forwarder(this.__wbg_ptr,t)}get forwarderDevice(){const e=r.__wbg_get_encryptioninfo_forwarderDevice(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set forwarderDevice(e){let t=0;w(e)||(d(e,h),t=e.__destroy_into_raw()),r.__wbg_set_encryptioninfo_forwarderDevice(this.__wbg_ptr,t)}get senderCurve25519Key(){let e,t;try{const n=r.__wbg_get_encryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderClaimedEd25519Key(){const e=r.__wbg_get_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set senderClaimedEd25519Key(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,n)}}Symbol.dispose&&(me.prototype[Symbol.dispose]=me.prototype.free);class gt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptionsettings_free(e,0)}constructor(){const e=r.encryptionsettings_new();return this.__wbg_ptr=e>>>0,lr.register(this,this.__wbg_ptr,this),this}get algorithm(){return r.__wbg_get_encryptionsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_encryptionsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return r.__wbg_get_encryptionsettings_encryptStateEvents(this.__wbg_ptr)!==0}set encryptStateEvents(e){r.__wbg_set_encryptionsettings_encryptStateEvents(this.__wbg_ptr,e)}get rotationPeriod(){const e=r.__wbg_get_encryptionsettings_rotationPeriod(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriod(e){r.__wbg_set_encryptionsettings_rotationPeriod(this.__wbg_ptr,e)}get rotationPeriodMessages(){const e=r.__wbg_get_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriodMessages(e){r.__wbg_set_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr,e)}get historyVisibility(){return r.__wbg_get_encryptionsettings_historyVisibility(this.__wbg_ptr)}set historyVisibility(e){r.__wbg_set_encryptionsettings_historyVisibility(this.__wbg_ptr,e)}get sharingStrategy(){const e=r.__wbg_get_encryptionsettings_sharingStrategy(this.__wbg_ptr);return z.__wrap(e)}set sharingStrategy(e){d(e,z);var t=e.__destroy_into_raw();r.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}}Symbol.dispose&&(gt.prototype[Symbol.dispose]=gt.prototype.free);class E{static __wrap(e){e=e>>>0;const t=Object.create(E.prototype);return t.__wbg_ptr=e,fr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_establishedecies_free(e,0)}check_code(){const e=r.establishedecies_check_code(this.__wbg_ptr);return ae.__wrap(e)}public_key(){const e=r.establishedecies_public_key(this.__wbg_ptr);return R.__wrap(e)}decrypt(e){let t,n;try{const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=r.establishedecies_decrypt(this.__wbg_ptr,a,p);var i=l[0],s=l[1];if(l[3])throw i=0,s=0,c(l[2]);return t=i,n=s,b(i,s)}finally{r.__wbindgen_free(t,n,1)}}encrypt(e){let t,n;try{const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.establishedecies_encrypt(this.__wbg_ptr,i,s);return t=a[0],n=a[1],b(a[0],a[1])}finally{r.__wbindgen_free(t,n,1)}}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class bt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_eventid_free(e,0)}get serverName(){const e=r.eventid_serverName(this.__wbg_ptr);return e===0?void 0:Y.__wrap(e)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.eventid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,yr.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const n=r.eventid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const n=r.eventid_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(bt.prototype[Symbol.dispose]=bt.prototype.free);const h_=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"});class ve{static __wrap(e){e=e>>>0;const t=Object.create(ve.prototype);return t.__wbg_ptr=e,hr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_identitykeys_free(e,0)}get ed25519(){const e=r.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return U.__wrap(e)}set ed25519(e){d(e,U);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_ed25519(this.__wbg_ptr,t)}get curve25519(){const e=r.__wbg_get_identitykeys_curve25519(this.__wbg_ptr);return R.__wrap(e)}set curve25519(e){d(e,R);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}Symbol.dispose&&(ve.prototype[Symbol.dispose]=ve.prototype.free);class Se{static __wrap(e){e=e>>>0;const t=Object.create(Se.prototype);return t.__wbg_ptr=e,mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return E.__wrap(e)}set channel(e){d(e,E);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get message(){let e,t;try{const n=r.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}Symbol.dispose&&(Se.prototype[Symbol.dispose]=Se.prototype.free);class ke{static __wrap(e){e=e>>>0;const t=Object.create(ke.prototype);return t.__wbg_ptr=e,vr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundgroupsession_free(e,0)}get senderKey(){const e=r.inboundgroupsession_senderKey(this.__wbg_ptr);return R.__wrap(e)}get sessionId(){let e,t;try{const n=r.inboundgroupsession_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}hasBeenImported(){return r.inboundgroupsession_hasBeenImported(this.__wbg_ptr)!==0}get roomId(){const e=r.inboundgroupsession_roomId(this.__wbg_ptr);return y.__wrap(e)}}Symbol.dispose&&(ke.prototype[Symbol.dispose]=ke.prototype.free);class Re{static __wrap(e){e=e>>>0;const t=Object.create(Re.prototype);return t.__wbg_ptr=e,Sr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_invalidtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.invalidtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(Re.prototype[Symbol.dispose]=Re.prototype.free);class Fe{static __wrap(e){e=e>>>0;const t=Object.create(Fe.prototype);return t.__wbg_ptr=e,mt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysbackuprequest_free(e,0)}get type(){return r.keysbackuprequest_type(this.__wbg_ptr)}constructor(e,t,n){const i=r.keysbackuprequest_new(e,t,n);return this.__wbg_ptr=i>>>0,mt.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_keysbackuprequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysbackuprequest_body(this.__wbg_ptr)}get version(){return r.__wbg_get_keysbackuprequest_version(this.__wbg_ptr)}}Symbol.dispose&&(Fe.prototype[Symbol.dispose]=Fe.prototype.free);class ze{static __wrap(e){e=e>>>0;const t=Object.create(ze.prototype);return t.__wbg_ptr=e,vt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysclaimrequest_free(e,0)}get type(){return r.keysclaimrequest_type(this.__wbg_ptr)}constructor(e,t){const n=r.keysclaimrequest_new(e,t);return this.__wbg_ptr=n>>>0,vt.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(ze.prototype[Symbol.dispose]=ze.prototype.free);class G{static __wrap(e){e=e>>>0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,St.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysqueryrequest_free(e,0)}get type(){return r.keysqueryrequest_type(this.__wbg_ptr)}constructor(e,t){const n=r.keysqueryrequest_new(e,t);return this.__wbg_ptr=n>>>0,St.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);class qe{static __wrap(e){e=e>>>0;const t=Object.create(qe.prototype);return t.__wbg_ptr=e,kt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysuploadrequest_free(e,0)}get type(){return r.keysuploadrequest_type(this.__wbg_ptr)}constructor(e,t){const n=r.keysuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,kt.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}}Symbol.dispose&&(qe.prototype[Symbol.dispose]=qe.prototype.free);const m_=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),v_=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"});class J{static __wrap(e){e=e>>>0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,kr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_maybesignature_free(e,0)}isInvalid(){return r.maybesignature_isInvalid(this.__wbg_ptr)!==0}get invalidSignatureSource(){const e=r.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}isValid(){return r.maybesignature_isValid(this.__wbg_ptr)!==0}get signature(){const e=r.maybesignature_signature(this.__wbg_ptr);return e===0?void 0:Je.__wrap(e)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class ${static __wrap(e){e=e>>>0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmdecryptionerror_free(e,0)}get code(){return r.__wbg_get_megolmdecryptionerror_code(this.__wbg_ptr)}get description(){return r.__wbg_get_megolmdecryptionerror_description(this.__wbg_ptr)}get withheldCode(){const e=r.megolmdecryptionerror_withheldCode(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get maybe_withheld(){const e=r.megolmdecryptionerror_maybe_withheld(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}static unable_to_decrypt(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.megolmdecryptionerror_unable_to_decrypt(t,n);return $.__wrap(i)}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class je{static __wrap(e){e=e>>>0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,Fr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return r.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return r.megolmv1backupkey_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(je.prototype[Symbol.dispose]=je.prototype.free);class Mt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,w_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_migration_free(e,0)}static migrateBaseData(e,t,n,i){return d(e,ct),d(n,O),r.migration_migrateBaseData(e.__wbg_ptr,t,n.__wbg_ptr,w(i)?0:S(i))}static migrateOlmSessions(e,t,n,i){const s=q(e,r.__wbindgen_malloc),a=o;d(n,O);const p=r.migration_migrateOlmSessions(s,a,t,n.__wbg_ptr,w(i)?0:S(i));if(p[2])throw c(p[1]);return c(p[0])}static migrateMegolmSessions(e,t,n,i){const s=q(e,r.__wbindgen_malloc),a=o;d(n,O);const p=r.migration_migrateMegolmSessions(s,a,t,n.__wbg_ptr,w(i)?0:S(i));if(p[2])throw c(p[1]);return c(p[0])}}Symbol.dispose&&(Mt.prototype[Symbol.dispose]=Mt.prototype.free);class Ke{static __wrap(e){e=e>>>0;const t=Object.create(Ke.prototype);return t.__wbg_ptr=e,Rt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_olmmachine_free(e,0)}getDevice(e,t,n){return d(e,f),d(t,h),r.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!w(n),w(n)?0:n)}static initialize(e,t,n,i,s){d(e,f),d(t,h);var a=w(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=w(i)?0:g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o;return r.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,a,p,l,m,w(s)?0:S(s))}get displayName(){return r.olmmachine_displayName(this.__wbg_ptr)}getIdentity(e){return d(e,f),r.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}get identityKeys(){const e=r.olmmachine_identityKeys(this.__wbg_ptr);return ve.__wrap(e)}trackedUsers(){const e=r.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}verifyBackup(e){const t=r.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return c(t[0])}disableBackup(){return r.olmmachine_disableBackup(this.__wbg_ptr)}shareRoomKey(e,t,n){d(e,y);const i=q(t,r.__wbindgen_malloc),s=o;return d(n,gt),r.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,i,s,n.__wbg_ptr)}getBackupKeys(){return r.olmmachine_getBackupKeys(this.__wbg_ptr)}static initFromStore(e,t,n,i){return d(e,f),d(t,h),d(n,O),r.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr,w(i)?0:S(i))}roomKeyCounts(){return r.olmmachine_roomKeyCounts(this.__wbg_ptr)}backupRoomKeys(){return r.olmmachine_backupRoomKeys(this.__wbg_ptr)}enableBackupV1(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,p=r.olmmachine_enableBackupV1(this.__wbg_ptr,n,i,s,a);if(p[2])throw c(p[1]);return c(p[0])}exportRoomKeys(e){return r.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}getUserDevices(e,t){return d(e,f),r.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!w(t),w(t)?0:t)}getVerification(e,t){d(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return c(s[0])}importRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}getRoomSettings(e){return d(e,y),r.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}isBackupEnabled(){return r.olmmachine_isBackupEnabled(this.__wbg_ptr)}outgoingRequests(){return r.olmmachine_outgoingRequests(this.__wbg_ptr)}setRoomSettings(e,t){return d(e,y),d(t,X),r.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}decryptRoomEvent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;d(t,y),d(n,ue);const a=r.olmmachine_decryptRoomEvent(this.__wbg_ptr,i,s,t.__wbg_ptr,n.__wbg_ptr);if(a[2])throw c(a[1]);return c(a[0])}dehydratedDevices(){const e=r.olmmachine_dehydratedDevices(this.__wbg_ptr);return fe.__wrap(e)}encryptRoomEvent(e,t,n){d(e,y);const i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=r.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,i,s,a,p);if(l[2])throw c(l[1]);return c(l[0])}encryptStateEvent(e,t,n,i){d(e,y);const s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,p=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o,m=g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),F=o,v=r.olmmachine_encryptStateEvent(this.__wbg_ptr,e.__wbg_ptr,s,a,p,l,m,F);if(v[2])throw c(v[1]);return c(v[0])}crossSigningStatus(){return r.olmmachine_crossSigningStatus(this.__wbg_ptr)}getMissingSessions(e){const t=q(e,r.__wbindgen_malloc),n=o;return r.olmmachine_getMissingSessions(this.__wbg_ptr,t,n)}markRequestAsSent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=r.olmmachine_markRequestAsSent(this.__wbg_ptr,i,s,t,a,p);if(l[2])throw c(l[1]);return c(l[0])}queryKeysForUsers(e){const t=q(e,r.__wbindgen_malloc),n=o,i=r.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return G.__wrap(i[0])}receiveSyncChanges(e,t,n,i,s){const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o;d(t,at);let l=0;w(s)||(d(s,ue),l=s.__destroy_into_raw());const m=r.olmmachine_receiveSyncChanges(this.__wbg_ptr,a,p,t.__wbg_ptr,n,w(i)?0:S(i),l);if(m[2])throw c(m[1]);return c(m[0])}updateTrackedUsers(e){const t=q(e,r.__wbindgen_malloc),n=o;return r.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,n)}buildRoomKeyBundle(e){return d(e,y),r.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}exportSecretsBundle(){return r.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){d(e,M);var t=e.__destroy_into_raw();return r.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}getSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,n)}bootstrapCrossSigning(e){return r.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}get deviceCreationTimeMs(){return r.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}receiveRoomKeyBundle(e,t){d(e,re);var n=e.__destroy_into_raw();const i=B(t,r.__wbindgen_malloc),s=o,a=r.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,n,i,s);if(a[2])throw c(a[1]);return c(a[0])}getVerificationRequest(e,t){d(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,n,i);return s===0?void 0:P.__wrap(s)}invalidateGroupSession(e){return d(e,y),r.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}deleteSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,n)}exportCrossSigningKeys(){return r.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}getVerificationRequests(e){return d(e,f),r.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}importCrossSigningKeys(e,t,n){var i=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=w(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=w(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o;return r.olmmachine_importCrossSigningKeys(this.__wbg_ptr,i,s,a,p,l,m)}importExportedRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importExportedRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}static decryptExportedRoomKeys(e,t){let n,i;try{const p=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o,m=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),F=o,v=r.olmmachine_decryptExportedRoomKeys(p,l,m,F);var s=v[0],a=v[1];if(v[3])throw s=0,a=0,c(v[2]);return n=s,i=a,b(s,a)}finally{r.__wbindgen_free(n,i,1)}}static encryptExportedRoomKeys(e,t,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o,F=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,_e=r.olmmachine_encryptExportedRoomKeys(l,m,F,v,n);var a=_e[0],p=_e[1];if(_e[3])throw a=0,p=0,c(_e[2]);return i=a,s=p,b(a,p)}finally{r.__wbindgen_free(i,s,1)}}importBackedUpRoomKeys(e,t,n){const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,w(t)?0:S(t),i,s);if(a[2])throw c(a[1]);return c(a[0])}receiveVerificationEvent(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;d(t,y);const s=r.olmmachine_receiveVerificationEvent(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}saveBackupDecryptionKey(e,t){d(e,C);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;return r.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,n,i)}shareRoomKeyBundleData(e,t,n,i,s){d(e,f),d(t,y);const a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o;var l=w(i)?0:g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),m=o;d(s,z);var F=s.__destroy_into_raw();const v=r.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,a,p,l,m,F);if(v[2])throw c(v[1]);return c(v[0])}get roomKeyRequestsEnabled(){return r.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)!==0}set roomKeyRequestsEnabled(e){r.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}getRoomEventEncryptionInfo(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;d(t,y);const s=r.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}get roomKeyForwardingEnabled(){return r.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)!==0}markAllTrackedUsersAsDirty(){return r.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}set roomKeyForwardingEnabled(e){r.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){r.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getReceivedRoomKeyBundleData(e,t){return d(e,y),d(t,f),r.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}registerDevicesUpdatedCallback(e){r.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}requestMissingSecretsIfNeeded(){return r.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}registerRoomKeyUpdatedCallback(e){r.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){r.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){r.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}constructor(){const e=r.olmmachine_new();if(e[2])throw c(e[1]);return this.__wbg_ptr=e[0]>>>0,Rt.register(this,this.__wbg_ptr,this),this}sign(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_sign(this.__wbg_ptr,t,n)}close(){const e=this.__destroy_into_raw();r.olmmachine_close(e)}get userId(){const e=r.olmmachine_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.olmmachine_deviceId(this.__wbg_ptr);return h.__wrap(e)}}Symbol.dispose&&(Ke.prototype[Symbol.dispose]=Ke.prototype.free);class Ie{static __wrap(e){e=e>>>0;const t=Object.create(Ie.prototype);return t.__wbg_ptr=e,zr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_otheruseridentity_free(e,0)}get masterKey(){let e,t;try{const s=r.otheruseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,b(n,i)}finally{r.__wbindgen_free(e,t,1)}}isVerified(){return r.otheruseridentity_isVerified(this.__wbg_ptr)!==0}get selfSigningKey(){let e,t;try{const s=r.otheruseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,b(n,i)}finally{r.__wbindgen_free(e,t,1)}}requestVerification(e,t,n){d(e,y),d(t,bt);var i=w(n)?0:q(n,r.__wbindgen_malloc),s=o;const a=r.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s);if(a[2])throw c(a[1]);return P.__wrap(a[0])}withdrawVerification(){return r.otheruseridentity_withdrawVerification(this.__wbg_ptr)}pinCurrentMasterKey(){return r.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}wasPreviouslyVerified(){return r.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}hasVerificationViolation(){return r.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}identityNeedsUserApproval(){return r.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)!==0}verificationRequestContent(e){let t,n;try{var i=w(e)?0:q(e,r.__wbindgen_malloc),s=o;const l=r.otheruseridentity_verificationRequestContent(this.__wbg_ptr,i,s);var a=l[0],p=l[1];if(l[3])throw a=0,p=0,c(l[2]);return t=a,n=p,b(a,p)}finally{r.__wbindgen_free(t,n,1)}}verify(){return r.otheruseridentity_verify(this.__wbg_ptr)}}Symbol.dispose&&(Ie.prototype[Symbol.dispose]=Ie.prototype.free);class De{static __wrap(e){e=e>>>0;const t=Object.create(De.prototype);return t.__wbg_ptr=e,qr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_outboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return E.__wrap(e)}set channel(e){d(e,E);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get initial_message(){let e,t;try{const n=r.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set initial_message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}Symbol.dispose&&(De.prototype[Symbol.dispose]=De.prototype.free);class Ce{static __wrap(e){e=e>>>0;const t=Object.create(Ce.prototype);return t.__wbg_ptr=e,jr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ownuseridentity_free(e,0)}get masterKey(){let e,t;try{const s=r.ownuseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,b(n,i)}finally{r.__wbindgen_free(e,t,1)}}isVerified(){return r.ownuseridentity_isVerified(this.__wbg_ptr)!==0}get selfSigningKey(){let e,t;try{const s=r.ownuseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,b(n,i)}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const s=r.ownuseridentity_userSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,b(n,i)}finally{r.__wbindgen_free(e,t,1)}}requestVerification(e){var t=w(e)?0:q(e,r.__wbindgen_malloc),n=o;const i=r.ownuseridentity_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}trustsOurOwnDevice(){return r.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}withdrawVerification(){return r.ownuseridentity_withdrawVerification(this.__wbg_ptr)}wasPreviouslyVerified(){return r.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}hasVerificationViolation(){return r.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}verify(){return r.ownuseridentity_verify(this.__wbg_ptr)}}Symbol.dispose&&(Ce.prototype[Symbol.dispose]=Ce.prototype.free);class Oe{static __unwrap(e){return e instanceof Oe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledinboundgroupsession_free(e,0)}get pickle(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get senderSigningKey(){const e=r.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set senderSigningKey(e){var t=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get roomId(){const e=r.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return e===0?void 0:y.__wrap(e)}set roomId(e){let t=0;w(e)||(d(e,y),t=e.__destroy_into_raw()),r.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}get imported(){return r.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)!==0}set imported(e){r.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)!==0}set backedUp(e){r.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}constructor(){const e=r.pickledinboundgroupsession_new();return this.__wbg_ptr=e>>>0,Kr.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Oe.prototype[Symbol.dispose]=Oe.prototype.free);class Be{static __unwrap(e){return e instanceof Be?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledsession_free(e,0)}constructor(){const e=r.pickledsession_new();return this.__wbg_ptr=e>>>0,Ir.register(this,this.__wbg_ptr,this),this}get pickle(){let e,t;try{const n=r.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get createdUsingFallbackKey(){return r.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)!==0}set createdUsingFallbackKey(e){r.__wbg_set_pickledsession_createdUsingFallbackKey(this.__wbg_ptr,e)}get creationTime(){return r.__wbg_get_pickledsession_creationTime(this.__wbg_ptr)}set creationTime(e){r.__wbg_set_pickledsession_creationTime(this.__wbg_ptr,e)}get lastUseTime(){return r.__wbg_get_pickledsession_lastUseTime(this.__wbg_ptr)}set lastUseTime(e){r.__wbg_set_pickledsession_lastUseTime(this.__wbg_ptr,e)}}Symbol.dispose&&(Be.prototype[Symbol.dispose]=Be.prototype.free);class Ue{static __wrap(e){e=e>>>0;const t=Object.create(Ue.prototype);return t.__wbg_ptr=e,Ft.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkdecryption_free(e,0)}publicKey(){const e=r.pkdecryption_publicKey(this.__wbg_ptr);return R.__wrap(e)}secretKey(){const e=r.pkdecryption_secretKey(this.__wbg_ptr);return D.__wrap(e)}decryptString(e){let t,n;try{d(e,I);const a=r.pkdecryption_decryptString(this.__wbg_ptr,e.__wbg_ptr);var i=a[0],s=a[1];if(a[3])throw i=0,s=0,c(a[2]);return t=i,n=s,b(i,s)}finally{r.__wbindgen_free(t,n,1)}}constructor(){const e=r.pkdecryption_new();return this.__wbg_ptr=e>>>0,Ft.register(this,this.__wbg_ptr,this),this}decrypt(e){d(e,I);const t=r.pkdecryption_decrypt(this.__wbg_ptr,e.__wbg_ptr);if(t[3])throw c(t[2]);var n=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}static fromKey(e){d(e,D);const t=r.pkdecryption_fromKey(e.__wbg_ptr);return Ue.__wrap(t)}}Symbol.dispose&&(Ue.prototype[Symbol.dispose]=Ue.prototype.free);class Ee{static __wrap(e){e=e>>>0;const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,Dr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkencryption_free(e,0)}encryptString(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.pkencryption_encrypt(this.__wbg_ptr,t,n);return I.__wrap(i)}encrypt(e){const t=B(e,r.__wbindgen_malloc),n=o,i=r.pkencryption_encrypt(this.__wbg_ptr,t,n);return I.__wrap(i)}static fromKey(e){d(e,R);const t=r.pkencryption_fromKey(e.__wbg_ptr);return Ee.__wrap(t)}}Symbol.dispose&&(Ee.prototype[Symbol.dispose]=Ee.prototype.free);class I{static __wrap(e){e=e>>>0;const t=Object.create(I.prototype);return t.__wbg_ptr=e,Cr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkmessage_free(e,0)}ciphertext(){const e=r.pkmessage_ciphertext(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}static fromParts(e,t,n){const i=B(e,r.__wbindgen_malloc),s=o,a=B(t,r.__wbindgen_malloc),p=o;d(n,R);const l=r.pkmessage_fromParts(i,s,a,p,n.__wbg_ptr);return I.__wrap(l)}static fromBase64(e){d(e,L);const t=r.pkmessage_fromBase64(e.__wbg_ptr);if(t[2])throw c(t[1]);return I.__wrap(t[0])}ephemeralKey(){const e=r.pkmessage_ephemeralKey(this.__wbg_ptr);return R.__wrap(e)}mac(){const e=r.pkmessage_mac(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}toBase64(){const e=r.pkmessage_toBase64(this.__wbg_ptr);return L.__wrap(e)}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class Ve{static __wrap(e){e=e>>>0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,Or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_plaintexttodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.plaintexttodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(Ve.prototype[Symbol.dispose]=Ve.prototype.free);const S_=Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"});class xe{static __wrap(e){e=e>>>0;const t=Object.create(xe.prototype);return t.__wbg_ptr=e,zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_putdehydrateddevicerequest_free(e,0)}get body(){return r.__wbg_get_putdehydrateddevicerequest_body(this.__wbg_ptr)}constructor(e){const t=r.putdehydrateddevicerequest_new(e);return this.__wbg_ptr=t>>>0,zt.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(xe.prototype[Symbol.dispose]=xe.prototype.free);class Te{static __wrap(e){e=e>>>0;const t=Object.create(Te.prototype);return t.__wbg_ptr=e,Br.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qr_free(e,0)}toQrCode(){const e=r.qr_toQrCode(this.__wbg_ptr);if(e[2])throw c(e[1]);return Ae.__wrap(e[0])}weStarted(){return r.qr_weStarted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.qr_cancelInfo(this.__wbg_ptr);return e===0?void 0:V.__wrap(e)}reciprocate(){const e=r.qr_reciprocate(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}isCancelled(){return r.qr_isCancelled(this.__wbg_ptr)!==0}reciprocated(){return r.qr_reciprocated(this.__wbg_ptr)!==0}get otherUserId(){const e=r.qr_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.qr_otherDeviceId(this.__wbg_ptr);return h.__wrap(e)}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.qr_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}confirmScanning(){const e=r.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}hasBeenScanned(){return r.qr_hasBeenScanned(this.__wbg_ptr)!==0}hasBeenConfirmed(){return r.qr_hasBeenConfirmed(this.__wbg_ptr)!==0}isSelfVerification(){return r.qr_isSelfVerification(this.__wbg_ptr)!==0}registerChangesCallback(e){r.qr_registerChangesCallback(this.__wbg_ptr,e)}state(){return r.qr_state(this.__wbg_ptr)}cancel(){const e=r.qr_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}get flowId(){let e,t;try{const n=r.qr_flowId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}isDone(){return r.qr_isDone(this.__wbg_ptr)!==0}get roomId(){const e=r.qr_roomId(this.__wbg_ptr);return e===0?void 0:y.__wrap(e)}get userId(){const e=r.qr_userId(this.__wbg_ptr);return f.__wrap(e)}toBytes(){const e=r.qr_toBytes(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}Symbol.dispose&&(Te.prototype[Symbol.dispose]=Te.prototype.free);class Ae{static __wrap(e){e=e>>>0;const t=Object.create(Ae.prototype);return t.__wbg_ptr=e,Ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcode_free(e,0)}renderIntoBuffer(){const e=r.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}Symbol.dispose&&(Ae.prototype[Symbol.dispose]=Ae.prototype.free);class N{static __wrap(e){e=e>>>0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,qt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodedata_free(e,0)}static fromBytes(e){const t=B(e,r.__wbindgen_malloc),n=o,i=r.qrcodedata_fromBytes(t,n);if(i[2])throw c(i[1]);return N.__wrap(i[0])}get publicKey(){const e=r.qrcodedata_publicKey(this.__wbg_ptr);return R.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.qrcodedata_fromBase64(t,n);if(i[2])throw c(i[1]);return N.__wrap(i[0])}get serverName(){const e=r.qrcodedata_serverName(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get rendezvousUrl(){let e,t;try{const n=r.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}constructor(e,t,n){d(e,R);var i=e.__destroy_into_raw();const s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;var p=w(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o;const m=r.qrcodedata_new(i,s,a,p,l);if(m[2])throw c(m[1]);return this.__wbg_ptr=m[0]>>>0,qt.register(this,this.__wbg_ptr,this),this}get mode(){return r.qrcodedata_mode(this.__wbg_ptr)}toBytes(){const e=r.qrcodedata_toBytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}toBase64(){let e,t;try{const n=r.qrcodedata_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);const k_=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"});class H{static __wrap(e){e=e>>>0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,Er.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodescan_free(e,0)}static fromBytes(e){const t=r.qrcodescan_fromBytes(e);if(t[2])throw c(t[1]);return H.__wrap(t[0])}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);const R_=Object.freeze({Created:0,0:"Created",Scanned:1,1:"Scanned",Confirmed:2,2:"Confirmed",Reciprocated:3,3:"Reciprocated",Done:4,4:"Done",Cancelled:5,5:"Cancelled"});class Me{static __wrap(e){e=e>>>0;const t=Object.create(Me.prototype);return t.__wbg_ptr=e,Vr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;let s=0;return w(t)||(d(t,ue),s=t.__destroy_into_raw()),r.rehydrateddevice_receiveEvents(this.__wbg_ptr,n,i,s)}}Symbol.dispose&&(Me.prototype[Symbol.dispose]=Me.prototype.free);const F_=Object.freeze({KeysUpload:0,0:"KeysUpload",KeysQuery:1,1:"KeysQuery",KeysClaim:2,2:"KeysClaim",ToDevice:3,3:"ToDevice",SignatureUpload:4,4:"SignatureUpload",RoomMessage:5,5:"RoomMessage",KeysBackup:6,6:"KeysBackup"});class y{static __wrap(e){e=e>>>0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,jt.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof y?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.roomid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,jt.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.roomid_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class Pe{static __wrap(e){e=e>>>0;const t=Object.create(Pe.prototype);return t.__wbg_ptr=e,xr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeycounts_free(e,0)}get total(){return r.__wbg_get_roomkeycounts_total(this.__wbg_ptr)}set total(e){r.__wbg_set_roomkeycounts_total(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_roomkeycounts_backedUp(this.__wbg_ptr)}set backedUp(e){r.__wbg_set_roomkeycounts_backedUp(this.__wbg_ptr,e)}}Symbol.dispose&&(Pe.prototype[Symbol.dispose]=Pe.prototype.free);class Ne{static __wrap(e){e=e>>>0;const t=Object.create(Ne.prototype);return t.__wbg_ptr=e,Tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyimportresult_free(e,0)}keys(){return r.roomkeyimportresult_keys(this.__wbg_ptr)}get importedCount(){return r.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return r.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}}Symbol.dispose&&(Ne.prototype[Symbol.dispose]=Ne.prototype.free);class Le{static __wrap(e){e=e>>>0;const t=Object.create(Le.prototype);return t.__wbg_ptr=e,Ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyinfo_free(e,0)}get senderKey(){const e=r.roomkeyinfo_senderKey(this.__wbg_ptr);return R.__wrap(e)}get sessionId(){let e,t;try{const n=r.roomkeyinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.roomkeyinfo_roomId(this.__wbg_ptr);return y.__wrap(e)}get algorithm(){return r.roomkeyinfo_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(Le.prototype[Symbol.dispose]=Le.prototype.free);class We{static __wrap(e){e=e>>>0;const t=Object.create(We.prototype);return t.__wbg_ptr=e,Mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeywithheldinfo_free(e,0)}get sessionId(){let e,t;try{const n=r.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get withheldCode(){let e,t;try{const n=r.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get sender(){const e=r.roomkeywithheldinfo_sender(this.__wbg_ptr);return f.__wrap(e)}get roomId(){const e=r.roomkeywithheldinfo_roomId(this.__wbg_ptr);return y.__wrap(e)}get algorithm(){return r.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}}Symbol.dispose&&(We.prototype[Symbol.dispose]=We.prototype.free);class Qe{static __wrap(e){e=e>>>0;const t=Object.create(Qe.prototype);return t.__wbg_ptr=e,Kt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roommessagerequest_free(e,0)}get type(){return r.roommessagerequest_type(this.__wbg_ptr)}constructor(e,t,n,i,s){const a=r.roommessagerequest_new(e,t,n,i,s);return this.__wbg_ptr=a>>>0,Kt.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_roommessagerequest_id(this.__wbg_ptr)}get room_id(){return r.__wbg_get_roommessagerequest_room_id(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_roommessagerequest_txn_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_roommessagerequest_event_type(this.__wbg_ptr)}get body(){return r.__wbg_get_roommessagerequest_body(this.__wbg_ptr)}}Symbol.dispose&&(Qe.prototype[Symbol.dispose]=Qe.prototype.free);class X{static __wrap(e){e=e>>>0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,It.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomsettings_free(e,0)}constructor(){const e=r.roomsettings_new();return this.__wbg_ptr=e>>>0,It.register(this,this.__wbg_ptr,this),this}get algorithm(){return r.__wbg_get_roomsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_roomsettings_algorithm(this.__wbg_ptr,e)}get encryptStateEvents(){return r.__wbg_get_roomsettings_encryptStateEvents(this.__wbg_ptr)!==0}set encryptStateEvents(e){r.__wbg_set_roomsettings_encryptStateEvents(this.__wbg_ptr,e)}get onlyAllowTrustedDevices(){return r.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)!==0}set onlyAllowTrustedDevices(e){r.__wbg_set_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr,e)}get sessionRotationPeriodMs(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set sessionRotationPeriodMs(e){r.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!w(e),w(e)?0:e)}get sessionRotationPeriodMessages(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set sessionRotationPeriodMessages(e){r.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!w(e),w(e)?0:e)}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);class Ge{static __wrap(e){e=e>>>0;const t=Object.create(Ge.prototype);return t.__wbg_ptr=e,Pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_sas_free(e,0)}weStarted(){return r.sas_weStarted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.sas_cancelInfo(this.__wbg_ptr);return e===0?void 0:V.__wrap(e)}emojiIndex(){const e=r.sas_emojiIndex(this.__wbg_ptr);let t;return e[0]!==0&&(t=j(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}isCancelled(){return r.sas_isCancelled(this.__wbg_ptr)!==0}get otherUserId(){const e=r.sas_otherUserId(this.__wbg_ptr);return f.__wrap(e)}supportsEmoji(){return r.sas_supportsEmoji(this.__wbg_ptr)!==0}get otherDeviceId(){const e=r.sas_otherDeviceId(this.__wbg_ptr);return h.__wrap(e)}canBePresented(){return r.sas_canBePresented(this.__wbg_ptr)!==0}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.sas_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}hasBeenAccepted(){return r.sas_hasBeenAccepted(this.__wbg_ptr)!==0}haveWeConfirmed(){return r.sas_haveWeConfirmed(this.__wbg_ptr)!==0}isSelfVerification(){return r.sas_isSelfVerification(this.__wbg_ptr)!==0}startedFromRequest(){return r.sas_startedFromRequest(this.__wbg_ptr)!==0}registerChangesCallback(e){r.sas_registerChangesCallback(this.__wbg_ptr,e)}emoji(){const e=r.sas_emoji(this.__wbg_ptr);let t;return e[0]!==0&&(t=se(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}accept(){const e=r.sas_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.sas_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}confirm(){return r.sas_confirm(this.__wbg_ptr)}get flowId(){let e,t;try{const n=r.sas_flowId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}isDone(){return r.sas_isDone(this.__wbg_ptr)!==0}get roomId(){const e=r.sas_roomId(this.__wbg_ptr);return e===0?void 0:y.__wrap(e)}get userId(){const e=r.sas_userId(this.__wbg_ptr);return f.__wrap(e)}decimals(){const e=r.sas_decimals(this.__wbg_ptr);let t;return e[0]!==0&&(t=i_(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*2,2)),t}get deviceId(){const e=r.sas_deviceId(this.__wbg_ptr);return h.__wrap(e)}timedOut(){return r.sas_timedOut(this.__wbg_ptr)!==0}}Symbol.dispose&&(Ge.prototype[Symbol.dispose]=Ge.prototype.free);class M{static __wrap(e){e=e>>>0;const t=Object.create(M.prototype);return t.__wbg_ptr=e,Nr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Nr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const n=r.secretsbundle_masterKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get backupBundle(){const e=r.secretsbundle_backupBundle(this.__wbg_ptr);return e===0?void 0:ce.__wrap(e)}get selfSigningKey(){let e,t;try{const n=r.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const n=r.secretsbundle_userSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}to_json(){const e=r.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}static from_json(e){const t=r.secretsbundle_from_json(e);if(t[2])throw c(t[1]);return M.__wrap(t[0])}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);class Y{static __wrap(e){e=e>>>0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,Dt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_servername_free(e,0)}isIpLiteral(){return r.servername_isIpLiteral(this.__wbg_ptr)!==0}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.servername_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Dt.register(this,this.__wbg_ptr,this),this}get host(){let e,t;try{const n=r.servername_host(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get port(){const e=r.servername_port(this.__wbg_ptr);return e===16777215?void 0:e}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);const z_=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"});class Z{static __wrap(e){e=e>>>0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,Lr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Lr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_shieldstate_free(e,0)}get message(){const e=r.shieldstate_message(this.__wbg_ptr);let t;return e[0]!==0&&(t=b(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get color(){return r.__wbg_get_shieldstate_color(this.__wbg_ptr)}set color(e){r.__wbg_set_shieldstate_color(this.__wbg_ptr,e)}get code(){const e=r.__wbg_get_shieldstate_code(this.__wbg_ptr);return e===6?void 0:e}set code(e){r.__wbg_set_shieldstate_code(this.__wbg_ptr,w(e)?6:e)}}Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);const q_=Object.freeze({AuthenticityNotGuaranteed:0,0:"AuthenticityNotGuaranteed",UnknownDevice:1,1:"UnknownDevice",UnsignedDevice:2,2:"UnsignedDevice",UnverifiedIdentity:3,3:"UnverifiedIdentity",VerificationViolation:4,4:"VerificationViolation",MismatchedSender:5,5:"MismatchedSender"});class Je{static __wrap(e){e=e>>>0;const t=Object.create(Je.prototype);return t.__wbg_ptr=e,Wr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signature_free(e,0)}get ed25519(){const e=r.signature_ed25519(this.__wbg_ptr);return e===0?void 0:T.__wrap(e)}toBase64(){let e,t;try{const n=r.signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Je.prototype[Symbol.dispose]=Je.prototype.free);const j_=Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"});class ee{static __wrap(e){e=e>>>0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,Ct.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ct.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureuploadrequest_free(e,0)}get id(){return r.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}get type(){return r.signatureuploadrequest_type(this.__wbg_ptr)}constructor(e,t){const n=r.signatureuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,Ct.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(ee.prototype[Symbol.dispose]=ee.prototype.free);class $e{static __wrap(e){e=e>>>0;const t=Object.create($e.prototype);return t.__wbg_ptr=e,Qr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureverification_free(e,0)}get userState(){return r.signatureverification_userState(this.__wbg_ptr)}get deviceState(){return r.signatureverification_deviceState(this.__wbg_ptr)}trusted(){return r.signatureverification_trusted(this.__wbg_ptr)!==0}}Symbol.dispose&&($e.prototype[Symbol.dispose]=$e.prototype.free);class te{static __wrap(e){e=e>>>0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,Ot.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatures_free(e,0)}addSignature(e,t,n){d(e,f),d(t,x),d(n,T);const i=r.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr);return i===0?void 0:J.__wrap(i)}getSignature(e,t){d(e,f),d(t,x);const n=r.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return n===0?void 0:T.__wrap(n)}get(e){return d(e,f),r.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}constructor(){const e=r.signatures_new();return this.__wbg_ptr=e>>>0,Ot.register(this,this.__wbg_ptr,this),this}clear(){r.signatures_clear(this.__wbg_ptr)}get count(){return r.signatures_count(this.__wbg_ptr)>>>0}asJSON(){const e=r.signatures_asJSON(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}isEmpty(){return r.signatures_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(te.prototype[Symbol.dispose]=te.prototype.free);class O{static __wrap(e){e=e>>>0;const t=Object.create(O.prototype);return t.__wbg_ptr=e,Gr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storehandle_free(e,0)}static open(e,t,n){var i=w(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=w(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o;return r.storehandle_open(i,s,a,p,w(n)?0:S(n))}static openWithKey(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=B(t,r.__wbindgen_malloc),p=o;return r.storehandle_openWithKey(i,s,a,p,w(n)?0:S(n))}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class re{static __wrap(e){e=e>>>0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,Jr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storedroomkeybundledata_free(e,0)}get senderUser(){const e=r.storedroomkeybundledata_senderUser(this.__wbg_ptr);return f.__wrap(e)}get encryptionInfo(){let e,t;try{const n=r.storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get url(){let e,t;try{const n=r.storedroomkeybundledata_url(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.storedroomkeybundledata_roomId(this.__wbg_ptr);return y.__wrap(e)}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);class He{static __wrap(e){e=e>>>0;const t=Object.create(He.prototype);return t.__wbg_ptr=e,$r.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$r.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todeviceencryptioninfo_free(e,0)}get senderCurve25519Key(){let e,t;try{const n=r.__wbg_get_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get sender(){const e=r.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){d(e,f);var t=e.__destroy_into_raw();r.__wbg_set_todeviceencryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_todeviceencryptioninfo_senderDevice(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set senderDevice(e){let t=0;w(e)||(d(e,h),t=e.__destroy_into_raw()),r.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}isSenderVerified(){return r.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)!==0}}Symbol.dispose&&(He.prototype[Symbol.dispose]=He.prototype.free);class Xe{static __wrap(e){e=e>>>0;const t=Object.create(Xe.prototype);return t.__wbg_ptr=e,Bt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todevicerequest_free(e,0)}get type(){return r.todevicerequest_type(this.__wbg_ptr)}constructor(e,t,n,i){const s=r.todevicerequest_new(e,t,n,i);return this.__wbg_ptr=s>>>0,Bt.register(this,this.__wbg_ptr,this),this}get id(){return r.__wbg_get_todevicerequest_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_todevicerequest_event_type(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_todevicerequest_txn_id(this.__wbg_ptr)}get body(){return r.__wbg_get_todevicerequest_body(this.__wbg_ptr)}}Symbol.dispose&&(Xe.prototype[Symbol.dispose]=Xe.prototype.free);class Ye{static __wrap(e){e=e>>>0;const t=Object.create(Ye.prototype);return t.__wbg_ptr=e,Hr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Hr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todeviceunabletodecryptinfo_free(e,0)}get reason(){return r.__wbg_get_todeviceunabletodecryptinfo_reason(this.__wbg_ptr)}set reason(e){r.__wbg_set_todeviceunabletodecryptinfo_reason(this.__wbg_ptr,e)}}Symbol.dispose&&(Ye.prototype[Symbol.dispose]=Ye.prototype.free);const K_=Object.freeze({DecryptionFailure:0,0:"DecryptionFailure",UnverifiedSenderDevice:1,1:"UnverifiedSenderDevice",NoOlmMachine:2,2:"NoOlmMachine",EncryptionIsDisabled:3,3:"EncryptionIsDisabled"});class Pt{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_tracing_free(e,0)}static isAvailable(){return r.tracing_isAvailable()!==0}constructor(e){const t=r.tracing_new(e);if(t[2])throw c(t[1]);return this.__wbg_ptr=t[0]>>>0,Xr.register(this,this.__wbg_ptr,this),this}turnOn(){const e=r.tracing_turnOn(this.__wbg_ptr);if(e[1])throw c(e[0])}turnOff(){const e=r.tracing_turnOff(this.__wbg_ptr);if(e[1])throw c(e[0])}set minLevel(e){const t=r.tracing_set_minLevel(this.__wbg_ptr,e);if(t[1])throw c(t[0])}}Symbol.dispose&&(Pt.prototype[Symbol.dispose]=Pt.prototype.free);const I_=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"});class Ze{static __wrap(e){e=e>>>0;const t=Object.create(Ze.prototype);return t.__wbg_ptr=e,Yr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Yr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_utdtodeviceevent_free(e,0)}get type(){return r.utdtodeviceevent_type(this.__wbg_ptr)}get rawEvent(){return r.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get utdInfo(){const e=r.__wbg_get_utdtodeviceevent_utdInfo(this.__wbg_ptr);return Ye.__wrap(e)}}Symbol.dispose&&(Ze.prototype[Symbol.dispose]=Ze.prototype.free);class et{static __wrap(e){e=e>>>0;const t=Object.create(et.prototype);return t.__wbg_ptr=e,Ut.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_uploadsigningkeysrequest_free(e,0)}get body(){return r.__wbg_get_uploadsigningkeysrequest_body(this.__wbg_ptr)}constructor(e){const t=r.uploadsigningkeysrequest_new(e);return this.__wbg_ptr=t>>>0,Ut.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);class tt{static __wrap(e){e=e>>>0;const t=Object.create(tt.prototype);return t.__wbg_ptr=e,Zr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userdevices_free(e,0)}isAnyVerified(){return r.userdevices_isAnyVerified(this.__wbg_ptr)!==0}get(e){d(e,h);const t=r.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return t===0?void 0:W.__wrap(t)}keys(){return r.userdevices_keys(this.__wbg_ptr)}devices(){return r.userdevices_devices(this.__wbg_ptr)}}Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);class f{static __wrap(e){e=e>>>0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,Et.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof f?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userid_free(e,0)}get serverName(){const e=r.userid_serverName(this.__wbg_ptr);return Y.__wrap(e)}isHistorical(){return r.userid_isHistorical(this.__wbg_ptr)!==0}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.userid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Et.register(this,this.__wbg_ptr,this),this}clone(){const e=r.userid_clone(this.__wbg_ptr);return f.__wrap(e)}get localpart(){let e,t;try{const n=r.userid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}toString(){let e,t;try{const n=r.userid_toString(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(f.prototype[Symbol.dispose]=f.prototype.free);const D_=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"});class P{static __wrap(e){e=e>>>0;const t=Object.create(P.prototype);return t.__wbg_ptr=e,e_.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,e_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_verificationrequest_free(e,0)}isPassive(){return r.verificationrequest_isPassive(this.__wbg_ptr)!==0}weStarted(){return r.verificationrequest_weStarted(this.__wbg_ptr)!==0}get cancelInfo(){const e=r.verificationrequest_cancelInfo(this.__wbg_ptr);return e===0?void 0:V.__wrap(e)}get ownUserId(){const e=r.verificationrequest_ownUserId(this.__wbg_ptr);return f.__wrap(e)}isCancelled(){return r.verificationrequest_isCancelled(this.__wbg_ptr)!==0}scanQrCode(e){return d(e,H),r.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}get otherUserId(){const e=r.verificationrequest_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.verificationrequest_otherDeviceId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}generateQrCode(){return r.verificationrequest_generateQrCode(this.__wbg_ptr)}getVerification(){return r.verificationrequest_getVerification(this.__wbg_ptr)}acceptWithMethods(e){const t=q(e,r.__wbindgen_malloc),n=o,i=r.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}isSelfVerification(){return r.verificationrequest_isSelfVerification(this.__wbg_ptr)!==0}get ourSupportedMethods(){const e=r.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return e[0]!==0&&(t=se(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}timeRemainingMillis(){return r.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}get theirSupportedMethods(){const e=r.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return e[0]!==0&&(t=se(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}registerChangesCallback(e){r.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}phase(){return r.verificationrequest_phase(this.__wbg_ptr)}accept(){const e=r.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}get flowId(){let e,t;try{const n=r.verificationrequest_flowId(this.__wbg_ptr);return e=n[0],t=n[1],b(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}isDone(){return r.verificationrequest_isDone(this.__wbg_ptr)!==0}static request(e,t,n,i){let s,a;try{d(e,f),d(t,h),d(n,f);var p=w(i)?0:q(i,r.__wbindgen_malloc),l=o;const v=r.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr,p,l);var m=v[0],F=v[1];if(v[3])throw m=0,F=0,c(v[2]);return s=m,a=F,b(m,F)}finally{r.__wbindgen_free(s,a,1)}}get roomId(){const e=r.verificationrequest_roomId(this.__wbg_ptr);return e===0?void 0:y.__wrap(e)}isReady(){return r.verificationrequest_isReady(this.__wbg_ptr)!==0}startSas(){return r.verificationrequest_startSas(this.__wbg_ptr)}timedOut(){return r.verificationrequest_timedOut(this.__wbg_ptr)!==0}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);const C_=Object.freeze({Created:0,0:"Created",Requested:1,1:"Requested",Ready:2,2:"Ready",Transitioned:3,3:"Transitioned",Done:4,4:"Done",Cancelled:5,5:"Cancelled"});class rt{static __wrap(e){e=e>>>0;const t=Object.create(rt.prototype);return t.__wbg_ptr=e,t_.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,t_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_versions_free(e,0)}get vodozemac(){return r.__wbg_get_versions_vodozemac(this.__wbg_ptr)}get matrix_sdk_crypto(){return r.__wbg_get_versions_matrix_sdk_crypto(this.__wbg_ptr)}get git_sha(){return r.__wbg_get_versions_git_sha(this.__wbg_ptr)}get git_description(){return r.__wbg_get_versions_git_description(this.__wbg_ptr)}}Symbol.dispose&&(rt.prototype[Symbol.dispose]=rt.prototype.free);function O_(){const _=r.getVersions();return rt.__wrap(_)}function B_(){r.start()}function U_(_,e){return Error(b(_,e))}function E_(_){return Number(_)}function V_(_,e){const t=String(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(_+4,i,!0),k().setInt32(_+0,n,!0)}function x_(_){return _.Window}function T_(_){return _.WorkerGlobalScope}function A_(_,e){const t=e,n=typeof t=="bigint"?t:void 0;k().setBigInt64(_+8,w(n)?BigInt(0):n,!0),k().setInt32(_+0,!w(n),!0)}function M_(_){const e=_,t=typeof e=="boolean"?e:void 0;return w(t)?16777215:t?1:0}function P_(_,e){const t=xt(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(_+4,i,!0),k().setInt32(_+0,n,!0)}function N_(_,e){return _ in e}function L_(_){return typeof _=="bigint"}function W_(_){return typeof _=="function"}function Q_(_){return _===null}function G_(_){const e=_;return typeof e=="object"&&e!==null}function J_(_){return typeof _=="string"}function $_(_){return _===void 0}function H_(_,e){return _===e}function X_(_,e){return _==e}function Y_(_,e){const t=e,n=typeof t=="number"?t:void 0;k().setFloat64(_+8,w(n)?0:n,!0),k().setInt32(_+0,!w(n),!0)}function Z_(_,e){const t=e,n=typeof t=="string"?t:void 0;var i=w(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;k().setInt32(_+4,s,!0),k().setInt32(_+0,i,!0)}function en(_,e){throw new Error(b(_,e))}function tn(_){let e;try{e=+_}catch(n){e=n}return e}function rn(_){_._wbg_cb_unref()}function _n(){return u(function(_){_.abort()},arguments)}function nn(){return u(function(_,e,t){return _.add(e,t)},arguments)}function sn(_,e){return _.add(e)}function on(_,e){return _.at(e)}function cn(_){return oe.__wrap(_)}function an(){return u(function(_,e,t,n){return IDBKeyRange.bound(_,e,t!==0,n!==0)},arguments)}function gn(){return u(function(_,e,t){return _.call(e,t)},arguments)}function bn(){return u(function(_,e,t,n,i){return _.call(e,t,n,i)},arguments)}function dn(){return u(function(_,e){return _.call(e)},arguments)}function pn(){return u(function(_,e,t,n){return _.call(e,t,n)},arguments)}function wn(_){return clearTimeout(_)}function un(){return u(function(_){return _.clear()},arguments)}function ln(_){_.close()}function fn(_){return _.code}function yn(){return u(function(_){_.commit()},arguments)}function hn(){return u(function(_){_.continue()},arguments)}function mn(){return u(function(_){return _.count()},arguments)}function vn(){return u(function(_){return _.count()},arguments)}function Sn(){return u(function(_,e,t,n,i){return _.createIndex(b(e,t),n,i)},arguments)}function kn(){return u(function(_,e,t,n){return _.createIndex(b(e,t),n)},arguments)}function Rn(){return u(function(_,e,t){return _.createObjectStore(b(e,t))},arguments)}function Fn(_){return ge.__wrap(_)}function zn(_){return be.__wrap(_)}function qn(_){return de.__wrap(_)}function jn(_){return _.crypto}function Kn(_,e){_.debug(e)}function In(_){console.debug(_)}function Dn(_){return pe.__wrap(_)}function Cn(_){return we.__wrap(_)}function On(_){return le.__wrap(_)}function Bn(_){return K.__wrap(_)}function Un(){return u(function(_,e,t){_.deleteObjectStore(b(e,t))},arguments)}function En(){return u(function(_){return _.delete()},arguments)}function Vn(){return u(function(_,e){return _.delete(e)},arguments)}function xn(_){return W.__wrap(_)}function Tn(_){return h.__wrap(_)}function An(_){return Q.__wrap(_)}function Mn(_){return x.__wrap(_)}function Pn(_){return _.done}function Nn(_){return he.__wrap(_)}function Ln(_){return A.__wrap(_)}function Wn(_){return me.__wrap(_)}function Qn(_){return Object.entries(_)}function Gn(_){return _.entries()}function Jn(_,e){let t,n;try{t=_,n=e,console.error(b(_,e))}finally{r.__wbindgen_free(t,n,1)}}function $n(_,e){_.error(e)}function Hn(_){console.error(_)}function Xn(){return u(function(_){const e=_.error;return w(e)?0:S(e)},arguments)}function Yn(_){return Array.from(_)}function Zn(){return u(function(_){return _.getAllKeys()},arguments)}function ei(){return u(function(_){return _.getAll()},arguments)}function ti(){return u(function(_,e){return _.getAll(e)},arguments)}function ri(){return u(function(_,e,t){return _.getAll(e,t>>>0)},arguments)}function _i(){return u(function(_,e){globalThis.crypto.getRandomValues(j(_,e))},arguments)}function ni(){return u(function(_,e){_.getRandomValues(e)},arguments)}function ii(_){return _.getTime()}function si(){return u(function(_,e){return _.get(e)},arguments)}function oi(_,e){return _[e>>>0]}function ci(){return u(function(_,e){return _.get(e)},arguments)}function ai(){return u(function(_,e){return Reflect.get(_,e)},arguments)}function gi(_,e){return _[e]}function bi(_){return _.global}function di(_){return ke.__wrap(_)}function pi(){return u(function(_,e,t){return _.index(b(e,t))},arguments)}function wi(){return u(function(_){const e=_.indexedDB;return w(e)?0:S(e)},arguments)}function ui(){return u(function(_){const e=_.indexedDB;return w(e)?0:S(e)},arguments)}function li(){return u(function(_){const e=_.indexedDB;return w(e)?0:S(e)},arguments)}function fi(_){console.info(_)}function yi(_,e){_.info(e)}function hi(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function mi(_){let e;try{e=_ instanceof IDBCursorWithValue}catch{e=!1}return e}function vi(_){let e;try{e=_ instanceof DOMException}catch{e=!1}return e}function Si(_){let e;try{e=_ instanceof Error}catch{e=!1}return e}function ki(_){let e;try{e=_ instanceof IDBCursor}catch{e=!1}return e}function Ri(_){let e;try{e=_ instanceof IDBDatabase}catch{e=!1}return e}function Fi(_){let e;try{e=_ instanceof IDBOpenDBRequest}catch{e=!1}return e}function zi(_){let e;try{e=_ instanceof IDBRequest}catch{e=!1}return e}function qi(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function ji(_){let e;try{e=_ instanceof Promise}catch{e=!1}return e}function Ki(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function Ii(_){return Re.__wrap(_)}function Di(_){return Array.isArray(_)}function Ci(_){return Array.isArray(_)}function Oi(_){return Number.isSafeInteger(_)}function Bi(_,e,t){const n=e.item(t>>>0);var i=w(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;k().setInt32(_+4,s,!0),k().setInt32(_+0,i,!0)}function Ui(){return Symbol.iterator}function Ei(){return u(function(_){return _.key},arguments)}function Vi(_){return Fe.__wrap(_)}function xi(_){return ze.__wrap(_)}function Ti(_){return G.__wrap(_)}function Ai(_){return qe.__wrap(_)}function Mi(_){return _.length}function Pi(_){return _.length}function Ni(_){return _.length}function Li(){return u(function(_,e){return IDBKeyRange.lowerBound(_,e!==0)},arguments)}function Wi(_){return J.__wrap(_)}function Qi(_){return $.__wrap(_)}function Gi(_){return _.message}function Ji(_,e){const t=e.message,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(_+4,i,!0),k().setInt32(_+0,n,!0)}function $i(_){return _.msCrypto}function Hi(_,e){const t=e.name,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(_+4,i,!0),k().setInt32(_+0,n,!0)}function Xi(){return new Object}function Yi(){return new Array}function Zi(_){return new Uint8Array(_)}function es(_){return new Set(_)}function ts(){return new Error}function rs(_){return new Date(_)}function _s(){return new Map}function ns(_,e){return new Error(b(_,e))}function is(_,e){try{var t={a:_,b:e},n=(s,a)=>{const p=t.a;t.a=0;try{return b_(p,t.b,s,a)}finally{t.a=p}};return new Promise(n)}finally{t.a=t.b=0}}function ss(_,e){return new Function(b(_,e))}function os(_){return new Uint8ClampedArray(_>>>0)}function cs(_){return new Uint8Array(_>>>0)}function as(_){return _.next}function gs(){return u(function(_){return _.next()},arguments)}function bs(_){return _.node}function ds(_){return _.now()}function ps(){return Date.now()}function ws(_){return _.objectStoreNames}function us(){return u(function(_,e,t){return _.objectStore(b(e,t))},arguments)}function ls(_){return _.oldVersion}function fs(_){return Ke.__wrap(_)}function ys(){return u(function(_){return _.openCursor()},arguments)}function hs(){return u(function(_){return _.openCursor()},arguments)}function ms(){return u(function(_,e){return _.openCursor(e)},arguments)}function vs(){return u(function(_,e,t,n){return _.open(b(e,t),n>>>0)},arguments)}function Ss(){return u(function(_,e,t){return _.open(b(e,t))},arguments)}function ks(_){return Ie.__wrap(_)}function Rs(_){return Ce.__wrap(_)}function Fs(){return u(function(_,e){return JSON.parse(b(_,e))},arguments)}function zs(_){return _.performance}function qs(_){return Oe.__unwrap(_)}function js(_){return Be.__unwrap(_)}function Ks(_){return Ve.__wrap(_)}function Is(_){return _.process}function Ds(_,e,t){Uint8ClampedArray.prototype.set.call(j(_,e),t)}function Cs(_,e,t){Uint8Array.prototype.set.call(j(_,e),t)}function Os(_,e){return _.push(e)}function Bs(){return u(function(_,e,t){return _.put(e,t)},arguments)}function Us(_){return xe.__wrap(_)}function Es(_){return Te.__wrap(_)}function Vs(_){return _.queueMicrotask}function xs(_){queueMicrotask(_)}function Ts(){return u(function(_,e){_.randomFillSync(e)},arguments)}function As(_){const e=_.readyState;return(d_.indexOf(e)+1||3)-1}function Ms(_){return Me.__wrap(_)}function Ps(_){return _.request}function Ns(_){return _.request}function Ls(){return u(function(){return module.require},arguments)}function Ws(_){return Promise.resolve(_)}function Qs(){return u(function(_){return _.result},arguments)}function Gs(_){return y.__unwrap(_)}function Js(_){return Pe.__wrap(_)}function $s(_){return Ne.__wrap(_)}function Hs(_){return Le.__wrap(_)}function Xs(_){return We.__wrap(_)}function Ys(_){return Qe.__wrap(_)}function Zs(_){return X.__wrap(_)}function eo(_){return Ge.__wrap(_)}function to(_){return M.__wrap(_)}function ro(){return u(function(_,e){return setTimeout(_,e)},arguments)}function _o(_,e,t){_[e]=t}function no(_,e,t){_[e>>>0]=t}function io(_,e,t){_.set(j(e,t))}function so(_,e,t){return _.set(e,t)}function oo(_,e){_.onabort=e}function co(_,e){_.oncomplete=e}function ao(_,e){_.onerror=e}function go(_,e){_.onerror=e}function bo(_,e){_.onsuccess=e}function po(_,e){_.onupgradeneeded=e}function wo(_,e){_.unique=e!==0}function uo(_){return te.__wrap(_)}function lo(_){return ee.__wrap(_)}function fo(_){return $e.__wrap(_)}function yo(_,e){const t=e.stack,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(_+4,i,!0),k().setInt32(_+0,n,!0)}function ho(){const _=typeof global>"u"?null:global;return w(_)?0:S(_)}function mo(){const _=typeof globalThis>"u"?null:globalThis;return w(_)?0:S(_)}function vo(){const _=typeof self>"u"?null:self;return w(_)?0:S(_)}function So(){const _=typeof window>"u"?null:window;return w(_)?0:S(_)}function ko(_){return re.__wrap(_)}function Ro(_){return O.__wrap(_)}function Fo(){return u(function(_){return JSON.stringify(_)},arguments)}function zo(_,e,t){return _.subarray(e>>>0,t>>>0)}function qo(_){const e=_.target;return w(e)?0:S(e)}function jo(_,e,t){return _.then(e,t)}function Ko(_,e){return _.then(e)}function Io(_){return _.toString()}function Do(_){return Xe.__wrap(_)}function Co(){return u(function(_,e,t){return _.transaction(e,__[t])},arguments)}function Oo(){return u(function(_,e,t,n){return _.transaction(b(e,t),__[n])},arguments)}function Bo(_){return _.transaction}function Uo(_){const e=_.transaction;return w(e)?0:S(e)}function Eo(){return u(function(_,e){return _.update(e)},arguments)}function Vo(){return u(function(_,e){return IDBKeyRange.upperBound(_,e!==0)},arguments)}function xo(_){return tt.__wrap(_)}function To(_){return f.__wrap(_)}function Ao(_){return f.__unwrap(_)}function Mo(_){return Ze.__wrap(_)}function Po(){return u(function(_){return _.value},arguments)}function No(_){return _.value}function Lo(_){return _.values()}function Wo(_){return P.__wrap(_)}function Qo(_){return _.version}function Go(_){return _.versions}function Jo(_){console.warn(_)}function $o(_,e){_.warn(e)}function Ho(_,e){return dt(_,e,r.wasm_bindgen__closure__destroy__h3add1a2c74cd908e,g_)}function Xo(_,e){return b(_,e)}function Yo(_,e){return dt(_,e,r.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,r_)}function Zo(_){return BigInt.asUintN(64,_)}function ec(_,e){return dt(_,e,r.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,a_)}function tc(_){return _}function rc(_,e){return dt(_,e,r.wasm_bindgen__closure__destroy__h3f1bc9bbb4835e8f,r_)}function _c(_,e){return j(_,e)}function nc(_){return _}function ic(_,e){var t=se(_,e).slice();return r.__wbindgen_free(_,e*4,4),t}function sc(){const _=r.__wbindgen_externrefs,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)}const oc=Object.freeze(Object.defineProperty({__proto__:null,Attachment:Tt,BackupDecryptionKey:C,BackupKeys:oe,BackupSecretsBundle:ce,Base64EncodedPkMessage:L,BaseMigrationData:ct,CancelInfo:V,CheckCode:ae,CollectStrategy:z,CrossSigningBootstrapRequests:ge,CrossSigningKeyExport:be,CrossSigningStatus:de,Curve25519PublicKey:R,Curve25519SecretKey:D,DecryptedRoomEvent:pe,DecryptedToDeviceEvent:we,DecryptionErrorCode:u_,DecryptionSettings:ue,DehydratedDevice:le,DehydratedDeviceKey:K,DehydratedDevices:fe,Device:W,DeviceId:h,DeviceKey:Q,DeviceKeyAlgorithm:ye,DeviceKeyAlgorithmName:l_,DeviceKeyId:x,DeviceKeyName:f_,DeviceLists:at,Ecies:At,Ed25519PublicKey:U,Ed25519Signature:T,Emoji:he,EncryptedAttachment:A,EncryptionAlgorithm:y_,EncryptionInfo:me,EncryptionSettings:gt,EstablishedEcies:E,EventId:bt,HistoryVisibility:h_,IdentityKeys:ve,InboundCreationResult:Se,InboundGroupSession:ke,InvalidToDeviceEvent:Re,KeysBackupRequest:Fe,KeysClaimRequest:ze,KeysQueryRequest:G,KeysUploadRequest:qe,LocalTrust:m_,LoggerLevel:v_,MaybeSignature:J,MegolmDecryptionError:$,MegolmV1BackupKey:je,Migration:Mt,OlmMachine:Ke,OtherUserIdentity:Ie,OutboundCreationResult:De,OwnUserIdentity:Ce,PickledInboundGroupSession:Oe,PickledSession:Be,PkDecryption:Ue,PkEncryption:Ee,PkMessage:I,PlainTextToDeviceEvent:Ve,ProcessedToDeviceEventType:S_,PutDehydratedDeviceRequest:xe,Qr:Te,QrCode:Ae,QrCodeData:N,QrCodeMode:k_,QrCodeScan:H,QrState:R_,RehydratedDevice:Me,RequestType:F_,RoomId:y,RoomKeyCounts:Pe,RoomKeyImportResult:Ne,RoomKeyInfo:Le,RoomKeyWithheldInfo:We,RoomMessageRequest:Qe,RoomSettings:X,Sas:Ge,SecretsBundle:M,ServerName:Y,ShieldColor:z_,ShieldState:Z,ShieldStateCode:q_,Signature:Je,SignatureState:j_,SignatureUploadRequest:ee,SignatureVerification:$e,Signatures:te,StoreHandle:O,StoredRoomKeyBundleData:re,ToDeviceEncryptionInfo:He,ToDeviceRequest:Xe,ToDeviceUnableToDecryptInfo:Ye,ToDeviceUnableToDecryptReason:K_,Tracing:Pt,TrustRequirement:I_,UTDToDeviceEvent:Ze,UploadSigningKeysRequest:et,UserDevices:tt,UserId:f,VerificationMethod:D_,VerificationRequest:P,VerificationRequestPhase:C_,Versions:rt,__wbg_Error_52673b7de5a0ca89:U_,__wbg_Number_2d1dcfcf4ec51736:E_,__wbg_String_8f0eb39a4a4c2f66:V_,__wbg_Window_bad6cc2ef3d218d1:x_,__wbg_WorkerGlobalScope_ce34368dd76f04b5:T_,__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d:A_,__wbg___wbindgen_boolean_get_dea25b33882b895b:M_,__wbg___wbindgen_debug_string_adfb662ae34724b6:P_,__wbg___wbindgen_in_0d3e1e8f0c669317:N_,__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27:L_,__wbg___wbindgen_is_function_8d400b8b1af978cd:W_,__wbg___wbindgen_is_null_dfda7d66506c95b5:Q_,__wbg___wbindgen_is_object_ce774f3490692386:G_,__wbg___wbindgen_is_string_704ef9c8fc131030:J_,__wbg___wbindgen_is_undefined_f6b95eab589e0269:$_,__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36:H_,__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d:X_,__wbg___wbindgen_number_get_9619185a74197f95:Y_,__wbg___wbindgen_string_get_a2a31e16edf96e42:Z_,__wbg___wbindgen_throw_dd24417ed36fc46e:en,__wbg___wbindgen_try_into_number_9d33ffe037a9f5e5:tn,__wbg__wbg_cb_unref_87dfb5aaa0cbcea7:rn,__wbg_abort_45186b2c363ae467:_n,__wbg_add_c1fb373a6e8701af:nn,__wbg_add_f0bf6d9527665471:sn,__wbg_at_505937f1c4b80bfa:on,__wbg_backupkeys_new:cn,__wbg_bound_6fa641bacd961cc0:an,__wbg_call_3020136f7a2d6e44:gn,__wbg_call_78f94eb02ec7f9b2:bn,__wbg_call_abb4ff46ce38be40:dn,__wbg_call_c8baa5c5e72d274e:pn,__wbg_clearTimeout_5a54f8841c30079a:wn,__wbg_clear_0e6ff4790cdabf11:un,__wbg_close_cf7ef4e294ac3858:ln,__wbg_code_c2a85f2863ec11b3:fn,__wbg_commit_073afc947129550a:yn,__wbg_continue_f42217c3ef5cf6dd:hn,__wbg_count_3fa291ea0e8fceec:mn,__wbg_count_c05e51d4a5d263a1:vn,__wbg_createIndex_3889f4177a3fa5d0:Sn,__wbg_createIndex_3c576f3c5564f5d7:kn,__wbg_createObjectStore_dba64acfe84d4191:Rn,__wbg_crosssigningbootstraprequests_new:Fn,__wbg_crosssigningkeyexport_new:zn,__wbg_crosssigningstatus_new:qn,__wbg_crypto_574e78ad8b13b65f:jn,__wbg_debug_949d8a9c97c02a01:Kn,__wbg_debug_9d0c87ddda3dc485:In,__wbg_decryptedroomevent_new:Dn,__wbg_decryptedtodeviceevent_new:Cn,__wbg_dehydrateddevice_new:On,__wbg_dehydrateddevicekey_new:Bn,__wbg_deleteObjectStore_88e9fff1fbbc6189:Un,__wbg_delete_91010f5a5282eb97:En,__wbg_delete_a8cf58aab29e18d2:Vn,__wbg_device_new:xn,__wbg_deviceid_new:Tn,__wbg_devicekey_new:An,__wbg_devicekeyid_new:Mn,__wbg_done_62ea16af4ce34b24:Pn,__wbg_emoji_new:Nn,__wbg_encryptedattachment_new:Ln,__wbg_encryptioninfo_new:Wn,__wbg_entries_83c79938054e065f:Qn,__wbg_entries_9af46b7eaf7dfefa:Gn,__wbg_error_7534b8e9a36f1ab4:Jn,__wbg_error_7bc79084e71bc74a:$n,__wbg_error_7bc7d576a6aaf855:Hn,__wbg_error_ad02a286da74488a:Xn,__wbg_from_29a8414a7a7cd19d:Yn,__wbg_getAllKeys_925405ffbd671e86:Zn,__wbg_getAll_236edca313646f4d:ei,__wbg_getAll_48e288420773a079:ti,__wbg_getAll_eec11317662a8eba:ri,__wbg_getRandomValues_9b655bdd369112f2:_i,__wbg_getRandomValues_b8f5dbd5f3995a9e:ni,__wbg_getTime_ad1e9878a735af08:ii,__wbg_get_10889f5b611cd1c6:si,__wbg_get_6b7bd52aca3f9671:oi,__wbg_get_7d8b665fa88606d5:ci,__wbg_get_af9dab7e9603ea93:ai,__wbg_get_with_ref_key_1dc361bd10053bfe:gi,__wbg_global_e78add1f0bdfe974:bi,__wbg_inboundgroupsession_new:di,__wbg_index_6af68133e0cdd5f8:pi,__wbg_indexedDB_121c33bea2560f72:wi,__wbg_indexedDB_23c232e00a1e28ad:ui,__wbg_indexedDB_769a3833286f42f3:li,__wbg_info_ce6bcc489c22f6f0:fi,__wbg_info_fd876dbb310ad775:yi,__wbg_instanceof_ArrayBuffer_f3320d2419cd0355:hi,__wbg_instanceof_CursorSys_383984afc1fa1bbc:mi,__wbg_instanceof_DomException_d430cd4fb5284a83:vi,__wbg_instanceof_Error_3443650560328fa9:Si,__wbg_instanceof_IdbCursor_5641812dc2120a05:ki,__wbg_instanceof_IdbDatabase_f4e157055e32c479:Ri,__wbg_instanceof_IdbOpenDbRequest_e4a587961e53201e:Fi,__wbg_instanceof_IdbRequest_9000a361b4bf0dc6:zi,__wbg_instanceof_Map_084be8da74364158:qi,__wbg_instanceof_Promise_eca6c43a2610558d:ji,__wbg_instanceof_Uint8Array_da54ccc9d3e09434:Ki,__wbg_invalidtodeviceevent_new:Ii,__wbg_isArray_51fd9e6422c0a395:Di,__wbg_isArray_ca6bc609f742df3f:Ci,__wbg_isSafeInteger_ae7d3f054d55fa16:Oi,__wbg_item_fa6253e690a05e50:Bi,__wbg_iterator_27b7c8b35ab3e86b:Ui,__wbg_key_5ffb2273b5ffc24a:Ei,__wbg_keysbackuprequest_new:Vi,__wbg_keysclaimrequest_new:xi,__wbg_keysqueryrequest_new:Ti,__wbg_keysuploadrequest_new:Ai,__wbg_length_22ac23eaec9d8053:Mi,__wbg_length_9b7368e374b28279:Pi,__wbg_length_d45040a40c570362:Ni,__wbg_lowerBound_13747835b262040c:Li,__wbg_maybesignature_new:Wi,__wbg_megolmdecryptionerror_new:Qi,__wbg_message_0305fa7903f4b3d9:Gi,__wbg_message_a4e9a39ee8f92b17:Ji,__wbg_msCrypto_a61aeb35a24c1329:$i,__wbg_name_9136863a055402ff:Hi,__wbg_new_1ba21ce319a06297:Xi,__wbg_new_25f239778d6112b9:Yi,__wbg_new_6421f6084cc5bc5a:Zi,__wbg_new_746bb58304020083:es,__wbg_new_8a6f238a6ece86ea:ts,__wbg_new_b2db8aa2650f793a:rs,__wbg_new_b546ae120718850e:_s,__wbg_new_df1173567d5ff028:ns,__wbg_new_ff12d2b041fb48f1:is,__wbg_new_no_args_cb138f77cf6151ee:ss,__wbg_new_with_length_30843b434774b4c6:os,__wbg_new_with_length_aa5eaf41d35235e5:cs,__wbg_next_138a17bbf04e926c:as,__wbg_next_3cfe5c0fe2a4cc53:gs,__wbg_node_905d3e251edff8a2:bs,__wbg_now_2c95c9de01293173:ds,__wbg_now_69d776cd24f5215b:ps,__wbg_objectStoreNames_90900f9a531513ac:ws,__wbg_objectStore_da9a077b8849dbe9:us,__wbg_oldVersion_2950700d81809b3e:ls,__wbg_olmmachine_new:fs,__wbg_openCursor_065c5304428cc4d8:ys,__wbg_openCursor_99b45bb4fa3166ab:hs,__wbg_openCursor_c5d6ba9ba92d3ab5:ms,__wbg_open_0d7b85f4c0a38ffe:vs,__wbg_open_2a2740c93beabe29:Ss,__wbg_otheruseridentity_new:ks,__wbg_ownuseridentity_new:Rs,__wbg_parse_a09a54cf72639456:Fs,__wbg_performance_7a3ffd0b17f663ad:zs,__wbg_pickledinboundgroupsession_unwrap:qs,__wbg_pickledsession_unwrap:js,__wbg_plaintexttodeviceevent_new:Ks,__wbg_process_dc0fbacc7c1c06f7:Is,__wbg_prototypesetcall_d3dc3532c827f7d3:Ds,__wbg_prototypesetcall_dfe9b766cdc1f1fd:Cs,__wbg_push_7d9be8f38fc13975:Os,__wbg_put_d40a68e5a8902a46:Bs,__wbg_putdehydrateddevicerequest_new:Us,__wbg_qr_new:Es,__wbg_queueMicrotask_9b549dfce8865860:Vs,__wbg_queueMicrotask_fca69f5bfad613a5:xs,__wbg_randomFillSync_ac0988aba3254290:Ts,__wbg_readyState_e534bc496011c2fd:As,__wbg_rehydrateddevice_new:Ms,__wbg_request_c533970ff464e9b2:Ps,__wbg_request_d3cccab75790c6a3:Ns,__wbg_require_60cc747a6bc5215a:Ls,__wbg_resolve_fd5bfbaa4ce36e1e:Ws,__wbg_result_084f962aedb54250:Qs,__wbg_roomid_unwrap:Gs,__wbg_roomkeycounts_new:Js,__wbg_roomkeyimportresult_new:$s,__wbg_roomkeyinfo_new:Hs,__wbg_roomkeywithheldinfo_new:Xs,__wbg_roommessagerequest_new:Ys,__wbg_roomsettings_new:Zs,__wbg_sas_new:eo,__wbg_secretsbundle_new:to,__wbg_setTimeout_db2dbaeefb6f39c7:ro,__wbg_set_3f1d0b984ed272ed:_o,__wbg_set_7df433eea03a5c14:no,__wbg_set_e2f933902557a0b5:io,__wbg_set_efaaf145b9377369:so,__wbg_set_onabort_e3f60791db69f136:oo,__wbg_set_oncomplete_e4a04a9244826e8b:co,__wbg_set_onerror_08fecec3bdc9d24d:ao,__wbg_set_onerror_e6509e1998f7da91:go,__wbg_set_onsuccess_94332a00452de699:bo,__wbg_set_onupgradeneeded_3dc6e233a6d13fe2:po,__wbg_set_unique_3dd7b4ef717ec230:wo,__wbg_set_wasm:Nt,__wbg_signatures_new:uo,__wbg_signatureuploadrequest_new:lo,__wbg_signatureverification_new:fo,__wbg_stack_0ed75d68575b0f3c:yo,__wbg_static_accessor_GLOBAL_769e6b65d6557335:ho,__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1:mo,__wbg_static_accessor_SELF_08f5a74c69739274:vo,__wbg_static_accessor_WINDOW_a8924b26aa92d024:So,__wbg_storedroomkeybundledata_new:ko,__wbg_storehandle_new:Ro,__wbg_stringify_655a6390e1f5eb6b:Fo,__wbg_subarray_845f2f5bce7d061a:zo,__wbg_target_0e3e05a6263c37a0:qo,__wbg_then_429f7caf1026411d:jo,__wbg_then_4f95312d68691235:Ko,__wbg_toString_f07112df359c997f:Io,__wbg_todevicerequest_new:Do,__wbg_transaction_257422def49a0094:Co,__wbg_transaction_790ec170b8fbc74b:Oo,__wbg_transaction_94648249df85f2b3:Bo,__wbg_transaction_edb5bc8f37fa6aec:Uo,__wbg_update_9d3d984f3dbd9e8d:Eo,__wbg_upperBound_91858b3be3dd9f34:Vo,__wbg_userdevices_new:xo,__wbg_userid_new:To,__wbg_userid_unwrap:Ao,__wbg_utdtodeviceevent_new:Mo,__wbg_value_3ed795eaabbd91d4:Po,__wbg_value_57b7b035e117f7ee:No,__wbg_values_9152c8c1ab032dfa:Lo,__wbg_verificationrequest_new:Wo,__wbg_version_261774ad92018a58:Qo,__wbg_versions_c01dfd4722a88165:Go,__wbg_warn_6e567d0d926ff881:Jo,__wbg_warn_d7dd2130cf9e44bb:$o,__wbindgen_cast_21f3b7099c9334bc:Ho,__wbindgen_cast_2241b6af4c4b2941:Xo,__wbindgen_cast_3d323378c35251b8:Yo,__wbindgen_cast_4625c577ab2ec9ee:Zo,__wbindgen_cast_7c76986129f237a3:ec,__wbindgen_cast_9ae0607507abb057:tc,__wbindgen_cast_c415cbf6e3c3f6d4:rc,__wbindgen_cast_cb9088102bce6b30:_c,__wbindgen_cast_d6cd19b81560fd6e:nc,__wbindgen_cast_e481686c74984159:ic,__wbindgen_init_externref_table:sc,getVersions:O_,start:B_},Symbol.toStringTag,{value:"Module"})),cc=new URL(""+new URL("matrix_sdk_crypto_wasm_bg-DU_51VO6.wasm",import.meta.url).href,import.meta.url);Nt(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let Vt=null;async function ac(_){const{instance:e}=await WebAssembly.instantiateStreaming(fetch(_),{"./matrix_sdk_crypto_wasm_bg.js":oc});Nt(e.exports),e.exports.__wbindgen_start()}async function gc(_=cc){Vt||(Vt=ac(_)),await Vt}export{Be as A,C as B,z as C,K as D,gt as E,Oe as F,O as G,h_ as H,Ke as I,qe as K,m_ as L,$ as M,Ie as O,xe as P,Te as Q,y as R,ee as S,Xe as T,f as U,D_ as V,y_ as a,h as b,G as c,ze as d,Fe as e,Qe as f,et as g,Ge as h,C_ as i,H as j,R_ as k,O_ as l,Ce as m,bt as n,M as o,at as p,S_ as q,X as r,I_ as s,ue as t,u_ as u,z_ as v,q_ as w,gc as x,ct as y,Mt as z};
3
+ //# sourceMappingURL=matrix-sdk-crypto-wasm-BsWSMcLv.js.map