9remote 3.0.11 → 3.0.13

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 (206) hide show
  1. package/README.md +12 -10
  2. package/dist/cli.cjs +71 -71
  3. package/dist/server.cjs +175 -175
  4. package/dist/ui/assets/index-WDGxckRM.js +8 -0
  5. package/dist/ui/index.html +1 -1
  6. package/dist/web/404.html +1 -1
  7. package/dist/web/__next.__PAGE__.txt +2 -2
  8. package/dist/web/__next._full.txt +3 -3
  9. package/dist/web/__next._head.txt +1 -1
  10. package/dist/web/__next._index.txt +2 -2
  11. package/dist/web/__next._tree.txt +2 -2
  12. package/dist/web/_next/static/chunks/3346-23aafd4add63869a.js +1 -0
  13. package/dist/web/_next/static/chunks/4023-66934a18c86e64c8.js +1 -0
  14. package/dist/web/_next/static/chunks/4958-179397687a9efabd.js +86 -0
  15. package/dist/web/_next/static/chunks/8387-9ffbf41a5664cf04.js +1 -0
  16. package/dist/web/_next/static/chunks/8669-9e059733295a6fc1.js +1 -0
  17. package/dist/web/_next/static/chunks/9958-35139b04963145ff.js +1 -0
  18. package/dist/web/_next/static/chunks/app/admin/admins/{page-55a5b7d9e2cce009.js → page-cbe0a81654621c59.js} +1 -1
  19. package/dist/web/_next/static/chunks/app/admin/login/{page-0ee5816b25a58124.js → page-385a65c442c5f9eb.js} +1 -1
  20. package/dist/web/_next/static/chunks/app/admin/modes/{page-4a42062c1aa3bdfe.js → page-3c1c39a594e21bf9.js} +1 -1
  21. package/dist/web/_next/static/chunks/app/admin/ota/{page-f933a80b41b1fa71.js → page-71f6fb68d1dc9334.js} +1 -1
  22. package/dist/web/_next/static/chunks/app/admin/{page-9af75732b2cda9b6.js → page-680a917a0c0b046c.js} +1 -1
  23. package/dist/web/_next/static/chunks/app/admin/turn/{page-fbb8e50d077e6051.js → page-271235635424b233.js} +1 -1
  24. package/dist/web/_next/static/chunks/app/dev/question/page-8dc068c655f29856.js +1 -0
  25. package/dist/web/_next/static/chunks/app/login/page-798b68f514800b19.js +1 -0
  26. package/dist/web/_next/static/chunks/app/page-81affa2ae3534100.js +22 -0
  27. package/dist/web/_next/static/chunks/app/workspace/layout-123d4cfb7b9f0946.js +14 -0
  28. package/dist/web/_next/static/chunks/webpack-34aa84f85d3087cb.js +1 -0
  29. package/dist/web/_next/static/css/7bac24727badd523.css +1 -0
  30. package/dist/web/_not-found/__next._full.txt +2 -2
  31. package/dist/web/_not-found/__next._head.txt +1 -1
  32. package/dist/web/_not-found/__next._index.txt +2 -2
  33. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +1 -1
  34. package/dist/web/_not-found/__next._not-found.txt +1 -1
  35. package/dist/web/_not-found/__next._tree.txt +2 -2
  36. package/dist/web/_not-found.html +1 -1
  37. package/dist/web/_not-found.txt +2 -2
  38. package/dist/web/admin/__next._full.txt +3 -3
  39. package/dist/web/admin/__next._head.txt +1 -1
  40. package/dist/web/admin/__next._index.txt +2 -2
  41. package/dist/web/admin/__next._tree.txt +2 -2
  42. package/dist/web/admin/__next.admin.__PAGE__.txt +2 -2
  43. package/dist/web/admin/__next.admin.txt +1 -1
  44. package/dist/web/admin/admins/__next._full.txt +3 -3
  45. package/dist/web/admin/admins/__next._head.txt +1 -1
  46. package/dist/web/admin/admins/__next._index.txt +2 -2
  47. package/dist/web/admin/admins/__next._tree.txt +2 -2
  48. package/dist/web/admin/admins/__next.admin.admins.__PAGE__.txt +2 -2
  49. package/dist/web/admin/admins/__next.admin.admins.txt +1 -1
  50. package/dist/web/admin/admins/__next.admin.txt +1 -1
  51. package/dist/web/admin/admins.html +1 -1
  52. package/dist/web/admin/admins.txt +3 -3
  53. package/dist/web/admin/login/__next._full.txt +3 -3
  54. package/dist/web/admin/login/__next._head.txt +1 -1
  55. package/dist/web/admin/login/__next._index.txt +2 -2
  56. package/dist/web/admin/login/__next._tree.txt +2 -2
  57. package/dist/web/admin/login/__next.admin.login.__PAGE__.txt +2 -2
  58. package/dist/web/admin/login/__next.admin.login.txt +1 -1
  59. package/dist/web/admin/login/__next.admin.txt +1 -1
  60. package/dist/web/admin/login.html +1 -1
  61. package/dist/web/admin/login.txt +3 -3
  62. package/dist/web/admin/modes/__next._full.txt +3 -3
  63. package/dist/web/admin/modes/__next._head.txt +1 -1
  64. package/dist/web/admin/modes/__next._index.txt +2 -2
  65. package/dist/web/admin/modes/__next._tree.txt +2 -2
  66. package/dist/web/admin/modes/__next.admin.modes.__PAGE__.txt +2 -2
  67. package/dist/web/admin/modes/__next.admin.modes.txt +1 -1
  68. package/dist/web/admin/modes/__next.admin.txt +1 -1
  69. package/dist/web/admin/modes.html +1 -1
  70. package/dist/web/admin/modes.txt +3 -3
  71. package/dist/web/admin/ota/__next._full.txt +3 -3
  72. package/dist/web/admin/ota/__next._head.txt +1 -1
  73. package/dist/web/admin/ota/__next._index.txt +2 -2
  74. package/dist/web/admin/ota/__next._tree.txt +2 -2
  75. package/dist/web/admin/ota/__next.admin.ota.__PAGE__.txt +2 -2
  76. package/dist/web/admin/ota/__next.admin.ota.txt +1 -1
  77. package/dist/web/admin/ota/__next.admin.txt +1 -1
  78. package/dist/web/admin/ota.html +1 -1
  79. package/dist/web/admin/ota.txt +3 -3
  80. package/dist/web/admin/turn/__next._full.txt +3 -3
  81. package/dist/web/admin/turn/__next._head.txt +1 -1
  82. package/dist/web/admin/turn/__next._index.txt +2 -2
  83. package/dist/web/admin/turn/__next._tree.txt +2 -2
  84. package/dist/web/admin/turn/__next.admin.turn.__PAGE__.txt +2 -2
  85. package/dist/web/admin/turn/__next.admin.turn.txt +1 -1
  86. package/dist/web/admin/turn/__next.admin.txt +1 -1
  87. package/dist/web/admin/turn.html +1 -1
  88. package/dist/web/admin/turn.txt +3 -3
  89. package/dist/web/admin.html +1 -1
  90. package/dist/web/admin.txt +3 -3
  91. package/dist/web/dev/question/__next._full.txt +3 -3
  92. package/dist/web/dev/question/__next._head.txt +1 -1
  93. package/dist/web/dev/question/__next._index.txt +2 -2
  94. package/dist/web/dev/question/__next._tree.txt +2 -2
  95. package/dist/web/dev/question/__next.dev.question.__PAGE__.txt +2 -2
  96. package/dist/web/dev/question/__next.dev.question.txt +1 -1
  97. package/dist/web/dev/question/__next.dev.txt +1 -1
  98. package/dist/web/dev/question.html +1 -1
  99. package/dist/web/dev/question.txt +3 -3
  100. package/dist/web/index.html +1 -1
  101. package/dist/web/index.txt +3 -3
  102. package/dist/web/login/__next._full.txt +3 -3
  103. package/dist/web/login/__next._head.txt +1 -1
  104. package/dist/web/login/__next._index.txt +2 -2
  105. package/dist/web/login/__next._tree.txt +2 -2
  106. package/dist/web/login/__next.login.__PAGE__.txt +2 -2
  107. package/dist/web/login/__next.login.txt +1 -1
  108. package/dist/web/login.html +1 -1
  109. package/dist/web/login.txt +3 -3
  110. package/dist/web/workspace/__next._full.txt +3 -3
  111. package/dist/web/workspace/__next._head.txt +1 -1
  112. package/dist/web/workspace/__next._index.txt +2 -2
  113. package/dist/web/workspace/__next._tree.txt +2 -2
  114. package/dist/web/workspace/__next.workspace.__PAGE__.txt +1 -1
  115. package/dist/web/workspace/__next.workspace.txt +2 -2
  116. package/dist/web/workspace/browse/__next._full.txt +3 -3
  117. package/dist/web/workspace/browse/__next._head.txt +1 -1
  118. package/dist/web/workspace/browse/__next._index.txt +2 -2
  119. package/dist/web/workspace/browse/__next._tree.txt +2 -2
  120. package/dist/web/workspace/browse/__next.workspace.browse.__PAGE__.txt +1 -1
  121. package/dist/web/workspace/browse/__next.workspace.browse.txt +1 -1
  122. package/dist/web/workspace/browse/__next.workspace.txt +2 -2
  123. package/dist/web/workspace/browse.html +1 -1
  124. package/dist/web/workspace/browse.txt +3 -3
  125. package/dist/web/workspace/editor/__next._full.txt +3 -3
  126. package/dist/web/workspace/editor/__next._head.txt +1 -1
  127. package/dist/web/workspace/editor/__next._index.txt +2 -2
  128. package/dist/web/workspace/editor/__next._tree.txt +2 -2
  129. package/dist/web/workspace/editor/__next.workspace.editor.__PAGE__.txt +1 -1
  130. package/dist/web/workspace/editor/__next.workspace.editor.txt +1 -1
  131. package/dist/web/workspace/editor/__next.workspace.txt +2 -2
  132. package/dist/web/workspace/editor.html +1 -1
  133. package/dist/web/workspace/editor.txt +3 -3
  134. package/dist/web/workspace/files/__next._full.txt +3 -3
  135. package/dist/web/workspace/files/__next._head.txt +1 -1
  136. package/dist/web/workspace/files/__next._index.txt +2 -2
  137. package/dist/web/workspace/files/__next._tree.txt +2 -2
  138. package/dist/web/workspace/files/__next.workspace.files.__PAGE__.txt +1 -1
  139. package/dist/web/workspace/files/__next.workspace.files.txt +1 -1
  140. package/dist/web/workspace/files/__next.workspace.txt +2 -2
  141. package/dist/web/workspace/files.html +1 -1
  142. package/dist/web/workspace/files.txt +3 -3
  143. package/dist/web/workspace/git/__next._full.txt +3 -3
  144. package/dist/web/workspace/git/__next._head.txt +1 -1
  145. package/dist/web/workspace/git/__next._index.txt +2 -2
  146. package/dist/web/workspace/git/__next._tree.txt +2 -2
  147. package/dist/web/workspace/git/__next.workspace.git.__PAGE__.txt +1 -1
  148. package/dist/web/workspace/git/__next.workspace.git.txt +1 -1
  149. package/dist/web/workspace/git/__next.workspace.txt +2 -2
  150. package/dist/web/workspace/git.html +1 -1
  151. package/dist/web/workspace/git.txt +3 -3
  152. package/dist/web/workspace/mobile/__next._full.txt +3 -3
  153. package/dist/web/workspace/mobile/__next._head.txt +1 -1
  154. package/dist/web/workspace/mobile/__next._index.txt +2 -2
  155. package/dist/web/workspace/mobile/__next._tree.txt +2 -2
  156. package/dist/web/workspace/mobile/__next.workspace.mobile.__PAGE__.txt +1 -1
  157. package/dist/web/workspace/mobile/__next.workspace.mobile.txt +1 -1
  158. package/dist/web/workspace/mobile/__next.workspace.txt +2 -2
  159. package/dist/web/workspace/mobile.html +1 -1
  160. package/dist/web/workspace/mobile.txt +3 -3
  161. package/dist/web/workspace/remote/__next._full.txt +3 -3
  162. package/dist/web/workspace/remote/__next._head.txt +1 -1
  163. package/dist/web/workspace/remote/__next._index.txt +2 -2
  164. package/dist/web/workspace/remote/__next._tree.txt +2 -2
  165. package/dist/web/workspace/remote/__next.workspace.remote.__PAGE__.txt +1 -1
  166. package/dist/web/workspace/remote/__next.workspace.remote.txt +1 -1
  167. package/dist/web/workspace/remote/__next.workspace.txt +2 -2
  168. package/dist/web/workspace/remote.html +1 -1
  169. package/dist/web/workspace/remote.txt +3 -3
  170. package/dist/web/workspace/terminal/default/__next._full.txt +3 -3
  171. package/dist/web/workspace/terminal/default/__next._head.txt +1 -1
  172. package/dist/web/workspace/terminal/default/__next._index.txt +2 -2
  173. package/dist/web/workspace/terminal/default/__next._tree.txt +2 -2
  174. package/dist/web/workspace/terminal/default/__next.workspace.terminal.$d$sessionId.__PAGE__.txt +1 -1
  175. package/dist/web/workspace/terminal/default/__next.workspace.terminal.$d$sessionId.txt +1 -1
  176. package/dist/web/workspace/terminal/default/__next.workspace.terminal.txt +1 -1
  177. package/dist/web/workspace/terminal/default/__next.workspace.txt +2 -2
  178. package/dist/web/workspace/terminal/default.html +1 -1
  179. package/dist/web/workspace/terminal/default.txt +3 -3
  180. package/dist/web/workspace/workspaces/__next._full.txt +3 -3
  181. package/dist/web/workspace/workspaces/__next._head.txt +1 -1
  182. package/dist/web/workspace/workspaces/__next._index.txt +2 -2
  183. package/dist/web/workspace/workspaces/__next._tree.txt +2 -2
  184. package/dist/web/workspace/workspaces/__next.workspace.txt +2 -2
  185. package/dist/web/workspace/workspaces/__next.workspace.workspaces.__PAGE__.txt +1 -1
  186. package/dist/web/workspace/workspaces/__next.workspace.workspaces.txt +1 -1
  187. package/dist/web/workspace/workspaces.html +1 -1
  188. package/dist/web/workspace/workspaces.txt +3 -3
  189. package/dist/web/workspace.html +1 -1
  190. package/dist/web/workspace.txt +3 -3
  191. package/package.json +1 -1
  192. package/dist/ui/assets/index-Dis7ADvo.js +0 -8
  193. package/dist/web/_next/static/chunks/3977.8cfd8dec4cb8e893.js +0 -1
  194. package/dist/web/_next/static/chunks/5018-0af0eec430de34c7.js +0 -86
  195. package/dist/web/_next/static/chunks/635-d6ae421935055337.js +0 -1
  196. package/dist/web/_next/static/chunks/774-72d0e3531439cf1c.js +0 -1
  197. package/dist/web/_next/static/chunks/8439-43c6c0f6514a09d9.js +0 -1
  198. package/dist/web/_next/static/chunks/9958-448e936357b2d620.js +0 -1
  199. package/dist/web/_next/static/chunks/app/dev/question/page-c28a92f80ec9e5a7.js +0 -1
  200. package/dist/web/_next/static/chunks/app/login/page-1db3e14c6da784f1.js +0 -1
  201. package/dist/web/_next/static/chunks/app/page-7f6a2a71b53981dc.js +0 -22
  202. package/dist/web/_next/static/chunks/app/workspace/layout-1ca3e32492ef60bc.js +0 -14
  203. package/dist/web/_next/static/chunks/webpack-d869f11e68050bab.js +0 -1
  204. package/dist/web/_next/static/css/98e745d5833fdea2.css +0 -1
  205. /package/dist/web/_next/static/{LzU93v-WhDilDnQQPclsp → eD-pRSm_Yh2oF-5ufptf0}/_buildManifest.js +0 -0
  206. /package/dist/web/_next/static/{LzU93v-WhDilDnQQPclsp → eD-pRSm_Yh2oF-5ufptf0}/_ssgManifest.js +0 -0
package/dist/web/404.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><html lang="en" class="scroll-smooth scroll-pt-20"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b496025c9cd768cc.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/98e745d5833fdea2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-d869f11e68050bab.js"/><script src="/_next/static/chunks/c7879cf7-0d16fce1674078f9.js" async=""></script><script src="/_next/static/chunks/5158-267908d069475cdc.js" async=""></script><script src="/_next/static/chunks/main-app-1831d4f902c3fcb9.js" async=""></script><script src="/_next/static/chunks/4732-76a574510722b2c3.js" async=""></script><script src="/_next/static/chunks/app/layout-ec53a1a0c4b3e99e.js" async=""></script><link rel="preload" href="https://www.googletagmanager.com/gtag/js?id=G-8XXG61NY56" as="script"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#121212"/><title>9Remote — Remote Everything, Everywhere</title><meta name="description" content="Remote IDE, desktop, files, emulator &amp; vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite."/><meta name="application-name" content="9Remote Terminal"/><link rel="manifest" href="/manifest.json"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="9Remote"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/favicon.ico" sizes="any"/><link rel="icon" href="/icon-192.png" sizes="192x192" type="image/png"/><link rel="icon" href="/icon-512.png" sizes="512x512" type="image/png"/><link rel="apple-touch-icon" href="/icon-192.png" sizes="192x192" type="image/png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 antialiased"><div hidden=""><!--$--><!--/$--></div><script id="expo-redirect">(function(){try{if(location.hostname==="dev.9remote.cc"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace("https://9remote.cc"+location.pathname+location.search+location.hash);}}catch(e){}})();</script><script id="theme-init">(function(){try{var t=localStorage.getItem("app_theme_v2")||"dark";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add("dark");}})();</script><script id="safe-area-bridge">window.handleSafeAreaInset=function(top,bottom){try{if(top&&top>0)document.documentElement.style.setProperty("--pl-top",top+"px");}catch(e){}};</script><script id="sw-register">if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-d869f11e68050bab.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[59584,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"default\"]\n3:I[44976,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"ThemeProvider\"]\n4:I[91133,[],\"\"]\n5:I[4297,[],\"\"]\n6:I[95223,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"default\"]\n7:I[72569,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"GoogleAnalytics\"]\n8:I[31872,[],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[31872,[],\"ViewportBoundary\"]\ne:I[31872,[],\"MetadataBoundary\"]\n10:I[57567,[],\"default\",1]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b496025c9cd768cc.css\",\"style\"]\n:HL[\"/_next/static/css/98e745d5833fdea2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b496025c9cd768cc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/98e745d5833fdea2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"scroll-smooth scroll-pt-20\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 antialiased\",\"children\":[[\"$\",\"$L2\",null,{\"id\":\"expo-redirect\",\"html\":\"(function(){try{if(location.hostname===\\\"dev.9remote.cc\\\"\u0026\u0026(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\\\"https://9remote.cc\\\"+location.pathname+location.search+location.hash);}}catch(e){}})();\"}],[\"$\",\"$L2\",null,{\"id\":\"theme-init\",\"html\":\"(function(){try{var t=localStorage.getItem(\\\"app_theme_v2\\\")||\\\"dark\\\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\\\"dark\\\");}})();\"}],[\"$\",\"$L2\",null,{\"id\":\"safe-area-bridge\",\"html\":\"window.handleSafeAreaInset=function(top,bottom){try{if(top\u0026\u0026top\u003e0)document.documentElement.style.setProperty(\\\"--pl-top\\\",top+\\\"px\\\");}catch(e){}};\"}],[\"$\",\"$L2\",null,{\"id\":\"sw-register\",\"html\":\"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}\"}],[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L6\",null,{}],[\"$\",\"$L7\",null,{\"gaId\":\"G-8XXG61NY56\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"LzU93v-WhDilDnQQPclsp\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#121212\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[12569,[],\"IconMark\"]\na:null\nf:[[\"$\",\"title\",\"0\",{\"children\":\"9Remote — Remote Everything, Everywhere\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Remote IDE, desktop, files, emulator \u0026 vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"application-name\",\"content\":\"9Remote Terminal\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"9Remote\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"sizes\":\"any\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/icon-512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],[\"$\",\"link\",\"10\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"$L12\",\"11\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html lang="en" class="scroll-smooth scroll-pt-20"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"/><link rel="preload" href="/_next/static/media/22a5144ee8d83bca-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/7d4881bb7e1bf84d-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/b496025c9cd768cc.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/7bac24727badd523.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-34aa84f85d3087cb.js"/><script src="/_next/static/chunks/c7879cf7-0d16fce1674078f9.js" async=""></script><script src="/_next/static/chunks/5158-267908d069475cdc.js" async=""></script><script src="/_next/static/chunks/main-app-1831d4f902c3fcb9.js" async=""></script><script src="/_next/static/chunks/4732-76a574510722b2c3.js" async=""></script><script src="/_next/static/chunks/app/layout-ec53a1a0c4b3e99e.js" async=""></script><link rel="preload" href="https://www.googletagmanager.com/gtag/js?id=G-8XXG61NY56" as="script"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><meta name="theme-color" content="#121212"/><title>9Remote — Remote Everything, Everywhere</title><meta name="description" content="Remote IDE, desktop, files, emulator &amp; vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite."/><meta name="application-name" content="9Remote Terminal"/><link rel="manifest" href="/manifest.json"/><meta name="mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-title" content="9Remote"/><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/><link rel="icon" href="/favicon.ico" sizes="any"/><link rel="icon" href="/icon-192.png" sizes="192x192" type="image/png"/><link rel="icon" href="/icon-512.png" sizes="512x512" type="image/png"/><link rel="apple-touch-icon" href="/icon-192.png" sizes="192x192" type="image/png"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_246ccd __variable_c29908 antialiased"><div hidden=""><!--$--><!--/$--></div><script id="expo-redirect">(function(){try{if(location.hostname==="dev.9remote.cc"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace("https://9remote.cc"+location.pathname+location.search+location.hash);}}catch(e){}})();</script><script id="theme-init">(function(){try{var t=localStorage.getItem("app_theme_v2")||"dark";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add("dark");}})();</script><script id="safe-area-bridge">window.handleSafeAreaInset=function(top,bottom){try{document.documentElement.style.setProperty("--pl-top",Math.max(top||0,0)+"px");}catch(e){}};</script><script id="sw-register">if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-34aa84f85d3087cb.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[59584,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"default\"]\n3:I[44976,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"ThemeProvider\"]\n4:I[91133,[],\"\"]\n5:I[4297,[],\"\"]\n6:I[95223,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"default\"]\n7:I[72569,[\"4732\",\"static/chunks/4732-76a574510722b2c3.js\",\"7177\",\"static/chunks/app/layout-ec53a1a0c4b3e99e.js\"],\"GoogleAnalytics\"]\n8:I[31872,[],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nc:I[31872,[],\"ViewportBoundary\"]\ne:I[31872,[],\"MetadataBoundary\"]\n10:I[57567,[],\"default\",1]\n:HL[\"/_next/static/media/22a5144ee8d83bca-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/7d4881bb7e1bf84d-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/b496025c9cd768cc.css\",\"style\"]\n:HL[\"/_next/static/css/7bac24727badd523.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/b496025c9cd768cc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/7bac24727badd523.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"scroll-smooth scroll-pt-20\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"__variable_246ccd __variable_c29908 antialiased\",\"children\":[[\"$\",\"$L2\",null,{\"id\":\"expo-redirect\",\"html\":\"(function(){try{if(location.hostname===\\\"dev.9remote.cc\\\"\u0026\u0026(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\\\"https://9remote.cc\\\"+location.pathname+location.search+location.hash);}}catch(e){}})();\"}],[\"$\",\"$L2\",null,{\"id\":\"theme-init\",\"html\":\"(function(){try{var t=localStorage.getItem(\\\"app_theme_v2\\\")||\\\"dark\\\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\\\"dark\\\");}})();\"}],[\"$\",\"$L2\",null,{\"id\":\"safe-area-bridge\",\"html\":\"window.handleSafeAreaInset=function(top,bottom){try{document.documentElement.style.setProperty(\\\"--pl-top\\\",Math.max(top||0,0)+\\\"px\\\");}catch(e){}};\"}],[\"$\",\"$L2\",null,{\"id\":\"sw-register\",\"html\":\"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}\"}],[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}],[\"$\",\"$L6\",null,{}],[\"$\",\"$L7\",null,{\"gaId\":\"G-8XXG61NY56\"}]]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,null]},null,false,\"$@b\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lc\",null,{\"children\":\"$Ld\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Le\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"eD-pRSm_Yh2oF-5ufptf0\"}\n"])</script><script>self.__next_f.push([1,"11:[]\nb:\"$W11\"\n"])</script><script>self.__next_f.push([1,"d:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#121212\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[12569,[],\"IconMark\"]\na:null\nf:[[\"$\",\"title\",\"0\",{\"children\":\"9Remote — Remote Everything, Everywhere\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Remote IDE, desktop, files, emulator \u0026 vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite.\"}],[\"$\",\"meta\",\"2\",{\"name\":\"application-name\",\"content\":\"9Remote Terminal\"}],[\"$\",\"link\",\"3\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"meta\",\"4\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"5\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"9Remote\"}],[\"$\",\"meta\",\"6\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"black-translucent\"}],[\"$\",\"link\",\"7\",{\"rel\":\"icon\",\"href\":\"/favicon.ico\",\"sizes\":\"any\"}],[\"$\",\"link\",\"8\",{\"rel\":\"icon\",\"href\":\"/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"link\",\"9\",{\"rel\":\"icon\",\"href\":\"/icon-512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],[\"$\",\"link\",\"10\",{\"rel\":\"apple-touch-icon\",\"href\":\"/icon-192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"}],[\"$\",\"$L12\",\"11\",{}]]\n"])</script></body></html>
@@ -1,9 +1,9 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[1076,[],"ClientPageRoot"]
3
- 3:I[27493,["774","static/chunks/774-72d0e3531439cf1c.js","9568","static/chunks/9568-0bfadca4fcb105aa.js","9958","static/chunks/9958-448e936357b2d620.js","8974","static/chunks/app/page-7f6a2a71b53981dc.js"],"default"]
3
+ 3:I[27493,["4023","static/chunks/4023-66934a18c86e64c8.js","9568","static/chunks/9568-0bfadca4fcb105aa.js","9958","static/chunks/9958-35139b04963145ff.js","8974","static/chunks/app/page-81affa2ae3534100.js"],"default"]
4
4
  6:I[31872,[],"OutletBoundary"]
5
5
  7:"$Sreact.suspense"
6
- 0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"LzU93v-WhDilDnQQPclsp"}
6
+ 0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"eD-pRSm_Yh2oF-5ufptf0"}
7
7
  4:{}
8
8
  5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
9
9
  8:null
@@ -6,7 +6,7 @@
6
6
  6:I[95223,["4732","static/chunks/4732-76a574510722b2c3.js","7177","static/chunks/app/layout-ec53a1a0c4b3e99e.js"],"default"]
7
7
  7:I[72569,["4732","static/chunks/4732-76a574510722b2c3.js","7177","static/chunks/app/layout-ec53a1a0c4b3e99e.js"],"GoogleAnalytics"]
8
8
  8:I[1076,[],"ClientPageRoot"]
9
- 9:I[27493,["774","static/chunks/774-72d0e3531439cf1c.js","9568","static/chunks/9568-0bfadca4fcb105aa.js","9958","static/chunks/9958-448e936357b2d620.js","8974","static/chunks/app/page-7f6a2a71b53981dc.js"],"default"]
9
+ 9:I[27493,["4023","static/chunks/4023-66934a18c86e64c8.js","9568","static/chunks/9568-0bfadca4fcb105aa.js","9958","static/chunks/9958-35139b04963145ff.js","8974","static/chunks/app/page-81affa2ae3534100.js"],"default"]
10
10
  c:I[31872,[],"OutletBoundary"]
11
11
  d:"$Sreact.suspense"
12
12
  f:I[31872,[],"ViewportBoundary"]
@@ -15,8 +15,8 @@ f:I[31872,[],"ViewportBoundary"]
15
15
  :HL["/_next/static/media/22a5144ee8d83bca-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
16
16
  :HL["/_next/static/media/7d4881bb7e1bf84d-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
17
17
  :HL["/_next/static/css/b496025c9cd768cc.css","style"]
18
- :HL["/_next/static/css/98e745d5833fdea2.css","style"]
19
- 0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b496025c9cd768cc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/98e745d5833fdea2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"scroll-smooth scroll-pt-20","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_246ccd __variable_c29908 antialiased","children":[["$","$L2",null,{"id":"expo-redirect","html":"(function(){try{if(location.hostname===\"dev.9remote.cc\"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\"https://9remote.cc\"+location.pathname+location.search+location.hash);}}catch(e){}})();"}],["$","$L2",null,{"id":"theme-init","html":"(function(){try{var t=localStorage.getItem(\"app_theme_v2\")||\"dark\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\"dark\");}})();"}],["$","$L2",null,{"id":"safe-area-bridge","html":"window.handleSafeAreaInset=function(top,bottom){try{if(top&&top>0)document.documentElement.style.setProperty(\"--pl-top\",top+\"px\");}catch(e){}};"}],["$","$L2",null,{"id":"sw-register","html":"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}"}],["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}],["$","$L7",null,{"gaId":"G-8XXG61NY56"}]]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],null,["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"LzU93v-WhDilDnQQPclsp"}
18
+ :HL["/_next/static/css/7bac24727badd523.css","style"]
19
+ 0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b496025c9cd768cc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/7bac24727badd523.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"scroll-smooth scroll-pt-20","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_246ccd __variable_c29908 antialiased","children":[["$","$L2",null,{"id":"expo-redirect","html":"(function(){try{if(location.hostname===\"dev.9remote.cc\"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\"https://9remote.cc\"+location.pathname+location.search+location.hash);}}catch(e){}})();"}],["$","$L2",null,{"id":"theme-init","html":"(function(){try{var t=localStorage.getItem(\"app_theme_v2\")||\"dark\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\"dark\");}})();"}],["$","$L2",null,{"id":"safe-area-bridge","html":"window.handleSafeAreaInset=function(top,bottom){try{document.documentElement.style.setProperty(\"--pl-top\",Math.max(top||0,0)+\"px\");}catch(e){}};"}],["$","$L2",null,{"id":"sw-register","html":"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}"}],["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$L6",null,{}],["$","$L7",null,{"gaId":"G-8XXG61NY56"}]]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],null,["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$13",[]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"eD-pRSm_Yh2oF-5ufptf0"}
20
20
  a:{}
21
21
  b:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
22
22
  10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#121212"}]]
@@ -3,4 +3,4 @@
3
3
  3:I[31872,[],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
5
  5:I[12569,[],"IconMark"]
6
- 0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#121212"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"9Remote — Remote Everything, Everywhere"}],["$","meta","1",{"name":"description","content":"Remote IDE, desktop, files, emulator & vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite."}],["$","meta","2",{"name":"application-name","content":"9Remote Terminal"}],["$","link","3",{"rel":"manifest","href":"/manifest.json"}],["$","meta","4",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","5",{"name":"apple-mobile-web-app-title","content":"9Remote"}],["$","meta","6",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","link","7",{"rel":"icon","href":"/favicon.ico","sizes":"any"}],["$","link","8",{"rel":"icon","href":"/icon-192.png","sizes":"192x192","type":"image/png"}],["$","link","9",{"rel":"icon","href":"/icon-512.png","sizes":"512x512","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icon-192.png","sizes":"192x192","type":"image/png"}],["$","$L5","11",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"LzU93v-WhDilDnQQPclsp"}
6
+ 0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#121212"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"9Remote — Remote Everything, Everywhere"}],["$","meta","1",{"name":"description","content":"Remote IDE, desktop, files, emulator & vibe coding on PC, Web, iPad, and Mobile. Ultra-low latency WebRTC P2P dev suite."}],["$","meta","2",{"name":"application-name","content":"9Remote Terminal"}],["$","link","3",{"rel":"manifest","href":"/manifest.json"}],["$","meta","4",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","5",{"name":"apple-mobile-web-app-title","content":"9Remote"}],["$","meta","6",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","link","7",{"rel":"icon","href":"/favicon.ico","sizes":"any"}],["$","link","8",{"rel":"icon","href":"/icon-192.png","sizes":"192x192","type":"image/png"}],["$","link","9",{"rel":"icon","href":"/icon-512.png","sizes":"512x512","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icon-192.png","sizes":"192x192","type":"image/png"}],["$","$L5","11",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"eD-pRSm_Yh2oF-5ufptf0"}
@@ -6,5 +6,5 @@
6
6
  6:I[95223,["4732","static/chunks/4732-76a574510722b2c3.js","7177","static/chunks/app/layout-ec53a1a0c4b3e99e.js"],"default"]
7
7
  7:I[72569,["4732","static/chunks/4732-76a574510722b2c3.js","7177","static/chunks/app/layout-ec53a1a0c4b3e99e.js"],"GoogleAnalytics"]
8
8
  :HL["/_next/static/css/b496025c9cd768cc.css","style"]
9
- :HL["/_next/static/css/98e745d5833fdea2.css","style"]
10
- 0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b496025c9cd768cc.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/98e745d5833fdea2.css","precedence":"next"}]],["$","html",null,{"lang":"en","className":"scroll-smooth scroll-pt-20","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_246ccd __variable_c29908 antialiased","children":[["$","$L2",null,{"id":"expo-redirect","html":"(function(){try{if(location.hostname===\"dev.9remote.cc\"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\"https://9remote.cc\"+location.pathname+location.search+location.hash);}}catch(e){}})();"}],["$","$L2",null,{"id":"theme-init","html":"(function(){try{var t=localStorage.getItem(\"app_theme_v2\")||\"dark\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\"dark\");}})();"}],["$","$L2",null,{"id":"safe-area-bridge","html":"window.handleSafeAreaInset=function(top,bottom){try{if(top&&top>0)document.documentElement.style.setProperty(\"--pl-top\",top+\"px\");}catch(e){}};"}],["$","$L2",null,{"id":"sw-register","html":"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}"}],["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}],["$","$L6",null,{}],["$","$L7",null,{"gaId":"G-8XXG61NY56"}]]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"LzU93v-WhDilDnQQPclsp"}
9
+ :HL["/_next/static/css/7bac24727badd523.css","style"]
10
+ 0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b496025c9cd768cc.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/7bac24727badd523.css","precedence":"next"}]],["$","html",null,{"lang":"en","className":"scroll-smooth scroll-pt-20","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_246ccd __variable_c29908 antialiased","children":[["$","$L2",null,{"id":"expo-redirect","html":"(function(){try{if(location.hostname===\"dev.9remote.cc\"&&(window.ReactNativeWebView||/9Remote-Mobile/i.test(navigator.userAgent))){location.replace(\"https://9remote.cc\"+location.pathname+location.search+location.hash);}}catch(e){}})();"}],["$","$L2",null,{"id":"theme-init","html":"(function(){try{var t=localStorage.getItem(\"app_theme_v2\")||\"dark\";document.documentElement.classList.add(t);}catch(e){document.documentElement.classList.add(\"dark\");}})();"}],["$","$L2",null,{"id":"safe-area-bridge","html":"window.handleSafeAreaInset=function(top,bottom){try{document.documentElement.style.setProperty(\"--pl-top\",Math.max(top||0,0)+\"px\");}catch(e){}};"}],["$","$L2",null,{"id":"sw-register","html":"if('serviceWorker' in navigator){window.addEventListener('load',function(){navigator.serviceWorker.register('/sw.js').catch(function(e){console.log('SW registration failed:',e);});});}"}],["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","template":["$","$L5",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}],["$","$L6",null,{}],["$","$L7",null,{"gaId":"G-8XXG61NY56"}]]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"eD-pRSm_Yh2oF-5ufptf0"}
@@ -1,5 +1,5 @@
1
1
  :HL["/_next/static/media/22a5144ee8d83bca-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
2
2
  :HL["/_next/static/media/7d4881bb7e1bf84d-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
3
3
  :HL["/_next/static/css/b496025c9cd768cc.css","style"]
4
- :HL["/_next/static/css/98e745d5833fdea2.css","style"]
5
- 0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"LzU93v-WhDilDnQQPclsp"}
4
+ :HL["/_next/static/css/7bac24727badd523.css","style"]
5
+ 0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"eD-pRSm_Yh2oF-5ufptf0"}
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3346],{23346:(e,r,t)=>{let a;t.d(r,{Ay:()=>aY});var _,n,s=t(97034);let c={};if(void 0===globalThis.crypto||"function"!=typeof globalThis.crypto.getRandomValues)throw Error("globalThis.crypto.getRandomValues is not available. The ESM build of libsodium requires a secure random source (available in all browsers and Node.js 19+).");let p="function"==typeof(n=s.A)?n:null!=n&&"function"==typeof n.default?n.default:null,o=null!=(_=s.A)&&void 0!==_.ready?_:null!=_&&null!=_.default&&void 0!==_.default.ready?_.default:null,h=(null!=p?p({getRandomValue:function(){var e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]>>>0}}):null!=o?o.ready.then(function(){return o}):Promise.reject(Error("Unsupported libsodium ESM export shape"))).then(function(e){c.libsodium=a=e,function(){if(0>a._sodium_init())throw Error("libsodium was not correctly initialized.");for(var e,r=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512256","crypto_auth_hmacsha512256_final","crypto_auth_hmacsha512256_init","crypto_auth_hmacsha512256_keygen","crypto_auth_hmacsha512256_update","crypto_auth_hmacsha512256_verify","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha3256","crypto_hash_sha3256_final","crypto_hash_sha3256_init","crypto_hash_sha3256_update","crypto_hash_sha3512","crypto_hash_sha3512_final","crypto_hash_sha3512_init","crypto_hash_sha3512_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_ipcrypt_decrypt","crypto_ipcrypt_encrypt","crypto_ipcrypt_keygen","crypto_ipcrypt_nd_decrypt","crypto_ipcrypt_nd_encrypt","crypto_ipcrypt_nd_keygen","crypto_ipcrypt_ndx_decrypt","crypto_ipcrypt_ndx_encrypt","crypto_ipcrypt_ndx_keygen","crypto_ipcrypt_pfx_decrypt","crypto_ipcrypt_pfx_encrypt","crypto_ipcrypt_pfx_keygen","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kem_dec","crypto_kem_enc","crypto_kem_keypair","crypto_kem_mlkem768_dec","crypto_kem_mlkem768_enc","crypto_kem_mlkem768_enc_deterministic","crypto_kem_mlkem768_keypair","crypto_kem_mlkem768_seed_keypair","crypto_kem_primitive","crypto_kem_seed_keypair","crypto_kem_xwing_dec","crypto_kem_xwing_enc","crypto_kem_xwing_enc_deterministic","crypto_kem_xwing_keypair","crypto_kem_xwing_seed_keypair","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","crypto_xof_shake128","crypto_xof_shake128_init","crypto_xof_shake128_init_with_domain","crypto_xof_shake128_squeeze","crypto_xof_shake128_update","crypto_xof_shake256","crypto_xof_shake256_init","crypto_xof_shake256_init_with_domain","crypto_xof_shake256_squeeze","crypto_xof_shake256_update","crypto_xof_turboshake128","crypto_xof_turboshake128_init","crypto_xof_turboshake128_init_with_domain","crypto_xof_turboshake128_squeeze","crypto_xof_turboshake128_update","crypto_xof_turboshake256","crypto_xof_turboshake256_init","crypto_xof_turboshake256_init_with_domain","crypto_xof_turboshake256_squeeze","crypto_xof_turboshake256_update","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_bin2ip","sodium_ip2bin","sodium_version_string"],t=[B,A,K,I,M,N,L,U,C,O,R,P,X,D,G,F,V,q,H,z,W,j,J,Q,Z,$,ee,er,et,ea,e_,en,es,ec,ep,eo,eh,ey,ei,el,eu,ed,ev,eg,eb,ef,em,ek,ex,eE,eT,eS,ew,eY,eB,eA,eK,eI,eM,eN,eL,eU,eC,eO,eR,eP,eX,eD,eG,eF,eV,eq,eH,ez,eW,ej,eJ,eQ,eZ,e$,e0,e5,e2,e1,e3,e6,e9,e8,e4,e7,re,rr,rt,ra,r_,rn,rs,rc,rp,ro,rh,ry,ri,rl,ru,rd,rv,rg,rb,rf,rm,rk,rx,rE,rT,rS,rw,rY,rB,rA,rK,rI,rM,rN,rL,rU,rC,rO,rR,rP,rX,rD,rG,rF,rV,rq,rH,rz,rW,rj,rJ,rQ,rZ,r$,r0,r5,r2,r1,r3,r6,r9,r8,r4,r7,te,tr,tt,ta,t_,tn,ts,tc,tp,to,th,ty,ti,tl,tu,td,tv,tg,tb,tf,tm,tk,tx,tE,tT,tS,tw,tY,tB,tA,tK,tI,tM,tN,tL,tU,tC,tO,tR,tP,tX,tD,tG,tF,tV,tq,tH,tz,tW,tj,tJ,tQ,tZ,t$,t0,t5,t2,t1,t3,t6,t9,t8,t4,t7,ae,ar,at,aa,a_,an,as,ac,ap,ao,ah,ay,ai,al,au,ad,av,ag,ab,af,am,ak,ax,aE,aT,aS,aw],_=0;_<t.length;_++)"function"==typeof a["_"+r[_]]&&(c[r[_]]=t[_]);var n=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_aegis128l_ABYTES","crypto_aead_aegis128l_KEYBYTES","crypto_aead_aegis128l_MESSAGEBYTES_MAX","crypto_aead_aegis128l_NPUBBYTES","crypto_aead_aegis128l_NSECBYTES","crypto_aead_aegis256_ABYTES","crypto_aead_aegis256_KEYBYTES","crypto_aead_aegis256_MESSAGEBYTES_MAX","crypto_aead_aegis256_NPUBBYTES","crypto_aead_aegis256_NSECBYTES","crypto_aead_aes256gcm_ABYTES","crypto_aead_aes256gcm_KEYBYTES","crypto_aead_aes256gcm_MESSAGEBYTES_MAX","crypto_aead_aes256gcm_NPUBBYTES","crypto_aead_aes256gcm_NSECBYTES","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_IETF_ABYTES","crypto_aead_chacha20poly1305_IETF_KEYBYTES","crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_IETF_NPUBBYTES","crypto_aead_chacha20poly1305_IETF_NSECBYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_IETF_ABYTES","crypto_aead_xchacha20poly1305_IETF_KEYBYTES","crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_IETF_NPUBBYTES","crypto_aead_xchacha20poly1305_IETF_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512256_BYTES","crypto_auth_hmacsha512256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES","crypto_box_curve25519xchacha20poly1305_MACBYTES","crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEALBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEEDBYTES","crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES","crypto_box_curve25519xsalsa20poly1305_MACBYTES","crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xsalsa20poly1305_NONCEBYTES","crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SEEDBYTES","crypto_core_ed25519_BYTES","crypto_core_ed25519_HASHBYTES","crypto_core_ed25519_NONREDUCEDSCALARBYTES","crypto_core_ed25519_SCALARBYTES","crypto_core_ed25519_UNIFORMBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_hsalsa20_CONSTBYTES","crypto_core_hsalsa20_INPUTBYTES","crypto_core_hsalsa20_KEYBYTES","crypto_core_hsalsa20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_core_salsa2012_CONSTBYTES","crypto_core_salsa2012_INPUTBYTES","crypto_core_salsa2012_KEYBYTES","crypto_core_salsa2012_OUTPUTBYTES","crypto_core_salsa208_CONSTBYTES","crypto_core_salsa208_INPUTBYTES","crypto_core_salsa208_KEYBYTES","crypto_core_salsa208_OUTPUTBYTES","crypto_core_salsa20_CONSTBYTES","crypto_core_salsa20_INPUTBYTES","crypto_core_salsa20_KEYBYTES","crypto_core_salsa20_OUTPUTBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha3256_BYTES","crypto_hash_sha3512_BYTES","crypto_hash_sha512_BYTES","crypto_ipcrypt_BYTES","crypto_ipcrypt_KEYBYTES","crypto_ipcrypt_NDX_INPUTBYTES","crypto_ipcrypt_NDX_KEYBYTES","crypto_ipcrypt_NDX_OUTPUTBYTES","crypto_ipcrypt_NDX_TWEAKBYTES","crypto_ipcrypt_ND_INPUTBYTES","crypto_ipcrypt_ND_KEYBYTES","crypto_ipcrypt_ND_OUTPUTBYTES","crypto_ipcrypt_ND_TWEAKBYTES","crypto_ipcrypt_PFX_BYTES","crypto_ipcrypt_PFX_KEYBYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kdf_blake2b_BYTES_MAX","crypto_kdf_blake2b_BYTES_MIN","crypto_kdf_blake2b_CONTEXTBYTES","crypto_kdf_blake2b_KEYBYTES","crypto_kdf_hkdf_sha256_BYTES_MAX","crypto_kdf_hkdf_sha256_BYTES_MIN","crypto_kdf_hkdf_sha256_KEYBYTES","crypto_kdf_hkdf_sha512_BYTES_MAX","crypto_kdf_hkdf_sha512_BYTES_MIN","crypto_kdf_hkdf_sha512_KEYBYTES","crypto_kem_CIPHERTEXTBYTES","crypto_kem_PUBLICKEYBYTES","crypto_kem_SECRETKEYBYTES","crypto_kem_SEEDBYTES","crypto_kem_SHAREDSECRETBYTES","crypto_kem_mlkem768_CIPHERTEXTBYTES","crypto_kem_mlkem768_PUBLICKEYBYTES","crypto_kem_mlkem768_SECRETKEYBYTES","crypto_kem_mlkem768_SEEDBYTES","crypto_kem_mlkem768_SHAREDSECRETBYTES","crypto_kem_xwing_CIPHERTEXTBYTES","crypto_kem_xwing_PUBLICKEYBYTES","crypto_kem_xwing_SECRETKEYBYTES","crypto_kem_xwing_SEEDBYTES","crypto_kem_xwing_SHAREDSECRETBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_onetimeauth_poly1305_BYTES","crypto_onetimeauth_poly1305_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_argon2i_BYTES_MAX","crypto_pwhash_argon2i_BYTES_MIN","crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2i_MEMLIMIT_MAX","crypto_pwhash_argon2i_MEMLIMIT_MIN","crypto_pwhash_argon2i_MEMLIMIT_MODERATE","crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2i_OPSLIMIT_MAX","crypto_pwhash_argon2i_OPSLIMIT_MIN","crypto_pwhash_argon2i_OPSLIMIT_MODERATE","crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2i_PASSWD_MAX","crypto_pwhash_argon2i_PASSWD_MIN","crypto_pwhash_argon2i_SALTBYTES","crypto_pwhash_argon2i_STRBYTES","crypto_pwhash_argon2id_BYTES_MAX","crypto_pwhash_argon2id_BYTES_MIN","crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2id_MEMLIMIT_MAX","crypto_pwhash_argon2id_MEMLIMIT_MIN","crypto_pwhash_argon2id_MEMLIMIT_MODERATE","crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2id_OPSLIMIT_MAX","crypto_pwhash_argon2id_OPSLIMIT_MIN","crypto_pwhash_argon2id_OPSLIMIT_MODERATE","crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2id_PASSWD_MAX","crypto_pwhash_argon2id_PASSWD_MIN","crypto_pwhash_argon2id_SALTBYTES","crypto_pwhash_argon2id_STRBYTES","crypto_pwhash_scryptsalsa208sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX","crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_curve25519_BYTES","crypto_scalarmult_curve25519_SCALARBYTES","crypto_scalarmult_ed25519_BYTES","crypto_scalarmult_ed25519_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretbox_xchacha20poly1305_KEYBYTES","crypto_secretbox_xchacha20poly1305_MACBYTES","crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xchacha20poly1305_NONCEBYTES","crypto_secretbox_xsalsa20poly1305_KEYBYTES","crypto_secretbox_xsalsa20poly1305_MACBYTES","crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xsalsa20poly1305_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphash24_BYTES","crypto_shorthash_siphash24_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_sign_ed25519_BYTES","crypto_sign_ed25519_MESSAGEBYTES_MAX","crypto_sign_ed25519_PUBLICKEYBYTES","crypto_sign_ed25519_SECRETKEYBYTES","crypto_sign_ed25519_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_IETF_KEYBYTES","crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX","crypto_stream_chacha20_IETF_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_MESSAGEBYTES_MAX","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_salsa2012_KEYBYTES","crypto_stream_salsa2012_MESSAGEBYTES_MAX","crypto_stream_salsa2012_NONCEBYTES","crypto_stream_salsa208_KEYBYTES","crypto_stream_salsa208_MESSAGEBYTES_MAX","crypto_stream_salsa208_NONCEBYTES","crypto_stream_salsa20_KEYBYTES","crypto_stream_salsa20_MESSAGEBYTES_MAX","crypto_stream_salsa20_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","crypto_stream_xsalsa20_KEYBYTES","crypto_stream_xsalsa20_MESSAGEBYTES_MAX","crypto_stream_xsalsa20_NONCEBYTES","crypto_verify_16_BYTES","crypto_verify_32_BYTES","crypto_verify_64_BYTES","crypto_xof_shake128_BLOCKBYTES","crypto_xof_shake128_STATEBYTES","crypto_xof_shake256_BLOCKBYTES","crypto_xof_shake256_STATEBYTES","crypto_xof_turboshake128_BLOCKBYTES","crypto_xof_turboshake128_STATEBYTES","crypto_xof_turboshake256_BLOCKBYTES","crypto_xof_turboshake256_STATEBYTES"];for(_=0;_<n.length;_++)"function"==typeof(e=a["_"+n[_].toLowerCase()])&&(c[n[_]]=e());var s=["SODIUM_VERSION_STRING","crypto_kem_PRIMITIVE","crypto_pwhash_STRPREFIX","crypto_pwhash_argon2i_STRPREFIX","crypto_pwhash_argon2id_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(_=0;_<s.length;_++)"function"==typeof(e=a["_"+s[_].toLowerCase()])&&(c[s[_]]=a.UTF8ToString(e()))}();var r=new Uint8Array([98,97,108,108,115]),t=c.randombytes_buf(c.crypto_secretbox_NONCEBYTES),_=c.randombytes_buf(c.crypto_secretbox_KEYBYTES),n=c.crypto_secretbox_easy(r,t,_),s=c.crypto_secretbox_open_easy(n,t,_);if(!c.memcmp(r,s))throw Error("Initialization self-test failed")});function y(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);e=unescape(encodeURIComponent(e));for(var r=new Uint8Array(e.length),t=0,a=e.length;t<a;t++)r[t]=e.charCodeAt(t);return r}function i(e){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(e);var r=Math.ceil(e.length/8192);if(r<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}catch(e){throw TypeError("The encoded data was not valid.")}for(var t="",a=0,_=0;_<r;_++){var n=Array.prototype.slice.call(e,8192*_+a,(_+1)*8192+a);if(0!==n.length){var s,c=n.length,p=0;do{var o=n[--c];o>=240?(p=4,s=!0):o>=224?(p=3,s=!0):o>=192?(p=2,s=!0):o<128&&(p=1,s=!0)}while(!s);for(var h=p-(n.length-c),y=0;y<h;y++)a--,n.pop();t+=i(n)}}return t}function l(e){e=Y(null,e,"input");for(var r,t,a,_="",n=0;n<e.length;n++)_+=String.fromCharCode(255&(a=87+(t=15&e[n])+(t-10>>8&-39)<<8|87+(r=e[n]>>>4)+(r-10>>8&-39)))+String.fromCharCode(a>>>8);return _}var u={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function d(e){if(void 0===e)return u.URLSAFE_NO_PADDING;if(e!==u.ORIGINAL&&e!==u.ORIGINAL_NO_PADDING&&e!==u.URLSAFE&&e!==u.URLSAFE_NO_PADDING)throw Error("unsupported base64 variant");return e}function v(e,r){r=d(r);var t,_=[],n=0|Math.floor((e=Y(_,e,"input")).length/3),s=e.length-3*n,c=4*n+(0!==s?2&r?2+(s>>>1):4:0),p=new m(c+1),o=k(e);return _.push(o),_.push(p.address),0===a._sodium_bin2base64(p.address,p.length,o,e.length,r)&&T(_,"conversion failed"),p.length=c,t=i(p.to_Uint8Array()),E(_),t}function g(e,r){var t=r||"uint8array";if(!b(t))throw Error(t+" output format is not available");if(e instanceof m){if("uint8array"===t)return e.to_Uint8Array();if("text"===t)return i(e.to_Uint8Array());if("hex"===t)return l(e.to_Uint8Array());if("base64"===t)return v(e.to_Uint8Array(),u.URLSAFE_NO_PADDING);throw Error('What is output format "'+t+'"?')}if("object"==typeof e){for(var a=Object.keys(e),_={},n=0;n<a.length;n++)_[a[n]]=g(e[a[n]],t);return _}if("string"==typeof e)return e;throw TypeError("Cannot format output")}function b(e){for(var r=["uint8array","text","hex","base64"],t=0;t<r.length;t++)if(r[t]===e)return!0;return!1}function f(e){if(e){if("string"!=typeof e)throw TypeError("When defined, the output format must be a string");if(!b(e))throw Error(e+" is not a supported output format")}}function m(e){this.length=e,this.address=x(e)}function k(e){var r=x(e.length);return a.HEAPU8.set(e,r),r}function x(e){var r=a._malloc(e);if(0===r)throw{message:"_malloc() failed",length:e};return r}function E(e){if(e)for(var r,t=0;t<e.length;t++)r=e[t],a._free(r)}function T(e,r){throw E(e),Error(r)}function S(e,r){throw E(e),TypeError(r)}function w(e,r,t){null==r&&S(e,t+" cannot be null or undefined")}function Y(e,r,t){return w(e,r,t),r instanceof Uint8Array?r:"string"==typeof r?y(r):void S(e,"unsupported input type for "+t)}function B(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_aegis128l_abytes(),y=r.length;y<h&&S(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_aegis128l_npubbytes();_.length!==d&&S(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_aegis128l_keybytes();n.length!==b&&S(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_aegis128l_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_aegis128l_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}T(c,"ciphertext cannot be decrypted using that key")}function A(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_aead_aegis128l_abytes();t.length!==l&&S(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_aegis128l_npubbytes();n.length!==b&&S(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_aegis128l_keybytes();s.length!==w&&S(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_aegis128l_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}T(p,"ciphertext cannot be decrypted using that key")}function K(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis128l_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis128l_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_aegis128l_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_aegis128l_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}T(c,"invalid usage")}function I(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis128l_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis128l_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_aegis128l_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_aegis128l_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}T(c,"invalid usage")}function M(e){var r=[];f(e);var t=new m(0|a._crypto_aead_aegis128l_keybytes()),_=t.address;r.push(_),a._crypto_aead_aegis128l_keygen(_);var n=g(t,e);return E(r),n}function N(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_aegis256_abytes(),y=r.length;y<h&&S(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_aegis256_npubbytes();_.length!==d&&S(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_aegis256_keybytes();n.length!==b&&S(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_aegis256_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_aegis256_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}T(c,"ciphertext cannot be decrypted using that key")}function L(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_aead_aegis256_abytes();t.length!==l&&S(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_aegis256_npubbytes();n.length!==b&&S(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_aegis256_keybytes();s.length!==w&&S(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_aegis256_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}T(p,"ciphertext cannot be decrypted using that key")}function U(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis256_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis256_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_aegis256_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_aegis256_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}T(c,"invalid usage")}function C(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis256_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis256_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_aegis256_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_aegis256_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}T(c,"invalid usage")}function O(e){var r=[];f(e);var t=new m(0|a._crypto_aead_aegis256_keybytes()),_=t.address;r.push(_),a._crypto_aead_aegis256_keygen(_);var n=g(t,e);return E(r),n}function R(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_chacha20poly1305_abytes(),y=r.length;y<h&&S(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==d&&S(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==b&&S(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_chacha20poly1305_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_chacha20poly1305_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}T(c,"ciphertext cannot be decrypted using that key")}function P(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&S(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_chacha20poly1305_npubbytes();n.length!==b&&S(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_chacha20poly1305_keybytes();s.length!==w&&S(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_chacha20poly1305_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}T(p,"ciphertext cannot be decrypted using that key")}function X(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_chacha20poly1305_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_chacha20poly1305_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}T(c,"invalid usage")}function D(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_chacha20poly1305_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_chacha20poly1305_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}T(c,"invalid usage")}function G(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_chacha20poly1305_ietf_abytes(),y=r.length;y<h&&S(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==d&&S(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==b&&S(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_chacha20poly1305_ietf_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_chacha20poly1305_ietf_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}T(c,"ciphertext cannot be decrypted using that key")}function F(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&S(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();n.length!==b&&S(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();s.length!==w&&S(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_chacha20poly1305_ietf_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}T(p,"ciphertext cannot be decrypted using that key")}function V(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_chacha20poly1305_ietf_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_chacha20poly1305_ietf_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}T(c,"invalid usage")}function q(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_chacha20poly1305_ietf_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_chacha20poly1305_ietf_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}T(c,"invalid usage")}function H(e){var r=[];f(e);var t=new m(0|a._crypto_aead_chacha20poly1305_ietf_keybytes()),_=t.address;r.push(_),a._crypto_aead_chacha20poly1305_ietf_keygen(_);var n=g(t,e);return E(r),n}function z(e){var r=[];f(e);var t=new m(0|a._crypto_aead_chacha20poly1305_keybytes()),_=t.address;r.push(_),a._crypto_aead_chacha20poly1305_keygen(_);var n=g(t,e);return E(r),n}function W(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_xchacha20poly1305_ietf_abytes(),y=r.length;y<h&&S(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==d&&S(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==b&&S(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_xchacha20poly1305_ietf_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_xchacha20poly1305_ietf_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}T(c,"ciphertext cannot be decrypted using that key")}function j(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&S(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();n.length!==b&&S(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();s.length!==w&&S(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}T(p,"ciphertext cannot be decrypted using that key")}function J(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_xchacha20poly1305_ietf_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_xchacha20poly1305_ietf_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}T(c,"invalid usage")}function Q(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==u&&S(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==v&&S(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_xchacha20poly1305_ietf_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}T(c,"invalid usage")}function Z(e){var r=[];f(e);var t=new m(0|a._crypto_aead_xchacha20poly1305_ietf_keybytes()),_=t.address;r.push(_),a._crypto_aead_xchacha20poly1305_ietf_keygen(_);var n=g(t,e);return E(r),n}function $(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function ee(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha256_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha256_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha256(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function er(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function et(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(208).address;if(!(0|a._crypto_auth_hmacsha256_init(s,_,n)))return E(t),s;T(t,"invalid usage")}function ea(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha256_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha256_keygen(_);var n=g(t,e);return E(r),n}function e_(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha256_update(e,n,s)&&T(_,"invalid usage"),E(_)}function en(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha256_bytes();e.length!==s&&S(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha256_keybytes();t.length!==h&&S(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha256_verify(n,c,p,0,o));return E(_),y}function es(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha512_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha512_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha512(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function ec(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha512256_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha512256_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha512256(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function ep(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha512256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha512256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function eo(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(416).address;if(!(0|a._crypto_auth_hmacsha512256_init(s,_,n)))return E(t),s;T(t,"invalid usage")}function eh(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha512256_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha512256_keygen(_);var n=g(t,e);return E(r),n}function ey(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha512256_update(e,n,s)&&T(_,"invalid usage"),E(_)}function ei(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha512256_bytes();e.length!==s&&S(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha512256_keybytes();t.length!==h&&S(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha512256_verify(n,c,p,0,o));return E(_),y}function el(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function eu(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(416).address;if(!(0|a._crypto_auth_hmacsha512_init(s,_,n)))return E(t),s;T(t,"invalid usage")}function ed(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha512_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha512_keygen(_);var n=g(t,e);return E(r),n}function ev(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha512_update(e,n,s)&&T(_,"invalid usage"),E(_)}function eg(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha512_bytes();e.length!==s&&S(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha512_keybytes();t.length!==h&&S(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha512_verify(n,c,p,0,o));return E(_),y}function eb(e){var r=[];f(e);var t=new m(0|a._crypto_auth_keybytes()),_=t.address;r.push(_),a._crypto_auth_keygen(_);var n=g(t,e);return E(r),n}function ef(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_bytes();e.length!==s&&S(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_keybytes();t.length!==h&&S(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_verify(n,c,p,0,o));return E(_),y}function em(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s=0|a._crypto_box_publickeybytes();e.length!==s&&S(_,"invalid publicKey length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_box_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_box_beforenmbytes()),h=o.address;if(_.push(h),!(0|a._crypto_box_beforenm(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function ek(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();e.length!==s&&S(_,"invalid publicKey length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes()),h=o.address;if(_.push(h),!(0|a._crypto_box_curve25519xchacha20poly1305_beforenm(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function ex(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==i&&S(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==u&&S(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;s.push(v);var b=new m(0|a._crypto_box_curve25519xchacha20poly1305_macbytes()),x=b.address;if(s.push(x),!(0|a._crypto_box_curve25519xchacha20poly1305_detached(v,x,c,p,0,o,y,l))){var w=g({ciphertext:d,mac:b},n);return E(s),w}T(s,"invalid usage")}function eE(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&S(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;n.push(l);var u=new m(0|a._crypto_box_curve25519xchacha20poly1305_macbytes()),d=u.address;if(n.push(d),!(0|a._crypto_box_curve25519xchacha20poly1305_detached_afternm(l,d,s,c,0,p,h))){var v=g({ciphertext:i,mac:u},_);return E(n),v}T(n,"invalid usage")}function eT(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==i&&S(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==u&&S(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(p+a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),v=d.address;if(s.push(v),!(0|a._crypto_box_curve25519xchacha20poly1305_easy(v,c,p,0,o,y,l))){var b=g(d,n);return E(s),b}T(s,"invalid usage")}function eS(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&S(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c+a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_curve25519xchacha20poly1305_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function ew(e){var r=[];f(e);var t=new m(0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),s=n.address;r.push(s),a._crypto_box_curve25519xchacha20poly1305_keypair(_,s);var c=g({publicKey:t,privateKey:n,keyType:"curve25519"},e);return E(r),c}function eY(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"ciphertext")),o=e.length;c.push(p),r=Y(c,r,"mac");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_macbytes();r.length!==y&&S(c,"invalid mac length"),h=k(r),c.push(h),t=Y(c,t,"nonce");var i,l=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==l&&S(c,"invalid nonce length"),i=k(t),c.push(i),_=Y(c,_,"publicKey");var u,d=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();_.length!==d&&S(c,"invalid publicKey length"),u=k(_),c.push(u),n=Y(c,n,"privateKey");var v,b=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();n.length!==b&&S(c,"invalid privateKey length"),v=k(n),c.push(v);var x=new m(0|o),w=x.address;if(c.push(w),!(0|a._crypto_box_curve25519xchacha20poly1305_open_detached(w,p,h,o,0,i,u,v))){var B=g(x,s);return E(c),B}T(c,"incorrect key pair for the given ciphertext")}function eB(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"ciphertext")),p=e.length;s.push(c),r=Y(s,r,"mac");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_macbytes();r.length!==h&&S(s,"invalid mac length"),o=k(r),s.push(o),t=Y(s,t,"nonce");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==i&&S(s,"invalid nonce length"),y=k(t),s.push(y),_=Y(s,_,"sharedKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();_.length!==u&&S(s,"invalid sharedKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;if(s.push(v),!(0|a._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(v,c,o,p,0,y,l))){var b=g(d,n);return E(s),b}T(s,"incorrect secret key for the given ciphertext")}function eA(e,r,t,_,n){var s=[];f(n),e=Y(s,e,"ciphertext");var c,p=a._crypto_box_curve25519xchacha20poly1305_macbytes(),o=e.length;o<p&&S(s,"ciphertext is too short"),c=k(e),s.push(c),r=Y(s,r,"nonce");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==y&&S(s,"invalid nonce length"),h=k(r),s.push(h),t=Y(s,t,"publicKey");var i,l=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==l&&S(s,"invalid publicKey length"),i=k(t),s.push(i),_=Y(s,_,"privateKey");var u,d=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==d&&S(s,"invalid privateKey length"),u=k(_),s.push(u);var v=new m(o-a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),b=v.address;if(s.push(b),!(0|a._crypto_box_curve25519xchacha20poly1305_open_easy(b,c,o,0,h,i,u))){var x=g(v,n);return E(s),x}T(s,"incorrect key pair for the given ciphertext")}function eK(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"ciphertext")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&S(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c-a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}T(n,"incorrect secret key for the given ciphertext")}function eI(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();r.length!==p&&S(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(s+a._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),h=o.address;_.push(h),a._crypto_box_curve25519xchacha20poly1305_seal(h,n,s,0,c);var y=g(o,t);return E(_),y}function eM(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_box_curve25519xchacha20poly1305_sealbytes(),p=e.length;p<c&&S(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"publicKey");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();r.length!==h&&S(n,"invalid publicKey length"),o=k(r),n.push(o),t=Y(n,t,"secretKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();t.length!==i&&S(n,"invalid secretKey length"),y=k(t),n.push(y);var l=new m(p-a._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),u=l.address;n.push(u),a._crypto_box_curve25519xchacha20poly1305_seal_open(u,s,p,0,o,y);var d=g(l,_);return E(n),d}function eN(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_box_curve25519xchacha20poly1305_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_box_curve25519xchacha20poly1305_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}T(t,"invalid usage")}function eL(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_publickeybytes();t.length!==i&&S(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_secretkeybytes();_.length!==u&&S(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;s.push(v);var b=new m(0|a._crypto_box_macbytes()),x=b.address;if(s.push(x),!(0|a._crypto_box_detached(v,x,c,p,0,o,y,l))){var w=g({ciphertext:d,mac:b},n);return E(s),w}T(s,"invalid usage")}function eU(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_publickeybytes();t.length!==i&&S(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_secretkeybytes();_.length!==u&&S(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(p+a._crypto_box_macbytes()|0),v=d.address;if(s.push(v),!(0|a._crypto_box_easy(v,c,p,0,o,y,l))){var b=g(d,n);return E(s),b}T(s,"invalid usage")}function eC(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_beforenmbytes();t.length!==y&&S(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c+a._crypto_box_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function eO(e){var r=[];f(e);var t=new m(0|a._crypto_box_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_box_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_box_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"x25519"};return E(r),c}T(r,"internal error")}function eR(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"ciphertext")),o=e.length;c.push(p),r=Y(c,r,"mac");var h,y=0|a._crypto_box_macbytes();r.length!==y&&S(c,"invalid mac length"),h=k(r),c.push(h),t=Y(c,t,"nonce");var i,l=0|a._crypto_box_noncebytes();t.length!==l&&S(c,"invalid nonce length"),i=k(t),c.push(i),_=Y(c,_,"publicKey");var u,d=0|a._crypto_box_publickeybytes();_.length!==d&&S(c,"invalid publicKey length"),u=k(_),c.push(u),n=Y(c,n,"privateKey");var v,b=0|a._crypto_box_secretkeybytes();n.length!==b&&S(c,"invalid privateKey length"),v=k(n),c.push(v);var x=new m(0|o),w=x.address;if(c.push(w),!(0|a._crypto_box_open_detached(w,p,h,o,0,i,u,v))){var B=g(x,s);return E(c),B}T(c,"incorrect key pair for the given ciphertext")}function eP(e,r,t,_,n){var s=[];f(n),e=Y(s,e,"ciphertext");var c,p=a._crypto_box_macbytes(),o=e.length;o<p&&S(s,"ciphertext is too short"),c=k(e),s.push(c),r=Y(s,r,"nonce");var h,y=0|a._crypto_box_noncebytes();r.length!==y&&S(s,"invalid nonce length"),h=k(r),s.push(h),t=Y(s,t,"publicKey");var i,l=0|a._crypto_box_publickeybytes();t.length!==l&&S(s,"invalid publicKey length"),i=k(t),s.push(i),_=Y(s,_,"privateKey");var u,d=0|a._crypto_box_secretkeybytes();_.length!==d&&S(s,"invalid privateKey length"),u=k(_),s.push(u);var v=new m(o-a._crypto_box_macbytes()|0),b=v.address;if(s.push(b),!(0|a._crypto_box_open_easy(b,c,o,0,h,i,u))){var x=g(v,n);return E(s),x}T(s,"incorrect key pair for the given ciphertext")}function eX(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"ciphertext")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_beforenmbytes();t.length!==y&&S(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c-a._crypto_box_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_open_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}T(n,"incorrect secret key for the given ciphertext")}function eD(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_box_publickeybytes();r.length!==p&&S(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(s+a._crypto_box_sealbytes()|0),h=o.address;if(_.push(h),!(0|a._crypto_box_seal(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function eG(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_box_sealbytes(),p=e.length;p<c&&S(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"publicKey");var o,h=0|a._crypto_box_publickeybytes();r.length!==h&&S(n,"invalid publicKey length"),o=k(r),n.push(o),t=Y(n,t,"privateKey");var y,i=0|a._crypto_box_secretkeybytes();t.length!==i&&S(n,"invalid privateKey length"),y=k(t),n.push(y);var l=new m(p-a._crypto_box_sealbytes()|0),u=l.address;if(n.push(u),!(0|a._crypto_box_seal_open(u,s,p,0,o,y))){var d=g(l,_);return E(n),d}T(n,"incorrect key pair for the given ciphertext")}function eF(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_box_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_box_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_box_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_box_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}T(t,"invalid usage")}function eV(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ed25519_bytes();e.length!==s&&S(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ed25519_bytes();r.length!==p&&S(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ed25519_add(h,n,c))){var y=g(o,t);return E(_),y}T(_,"input is an invalid element")}function eq(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ed25519_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ed25519_from_hash(s,_))){var c=g(n,r);return E(t),c}T(t,"invalid usage")}function eH(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ed25519_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ed25519_from_uniform(s,_))){var c=g(n,r);return E(t),c}T(t,"invalid usage")}function ez(e,r){var t=[];f(r),e=Y(t,e,"repr");var _,n=0|a._crypto_core_ed25519_bytes();e.length!==n&&S(t,"invalid repr length"),_=k(e),t.push(_);var s=1==(0|a._crypto_core_ed25519_is_valid_point(_));return E(t),s}function eW(e){var r=[];f(e);var t=new m(0|a._crypto_core_ed25519_bytes()),_=t.address;r.push(_),a._crypto_core_ed25519_random(_);var n=g(t,e);return E(r),n}function ej(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_add(h,n,c);var y=g(o,t);return E(_),y}function eJ(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_complement(c,_);var p=g(s,r);return E(t),p}function eQ(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_core_ed25519_scalar_invert(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid reciprocate")}function eZ(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_mul(h,n,c);var y=g(o,t);return E(_),y}function e$(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_negate(c,_);var p=g(s,r);return E(t),p}function e0(e){var r=[];f(e);var t=new m(0|a._crypto_core_ed25519_scalarbytes()),_=t.address;r.push(_),a._crypto_core_ed25519_scalar_random(_);var n=g(t,e);return E(r),n}function e5(e,r){var t=[];f(r),e=Y(t,e,"sample");var _,n=0|a._crypto_core_ed25519_nonreducedscalarbytes();e.length!==n&&S(t,"invalid sample length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_reduce(c,_);var p=g(s,r);return E(t),p}function e2(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_sub(h,n,c);var y=g(o,t);return E(_),y}function e1(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ed25519_bytes();e.length!==s&&S(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ed25519_bytes();r.length!==p&&S(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ed25519_sub(h,n,c))){var y=g(o,t);return E(_),y}T(_,"input is an invalid element")}function e3(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_core_hchacha20_inputbytes();e.length!==c&&S(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"privateKey");var p,o=0|a._crypto_core_hchacha20_keybytes();r.length!==o&&S(n,"invalid privateKey length"),p=k(r),n.push(p);var h=null;null!=t&&(h=k(t=Y(n,t,"constant")),t.length,n.push(h));var y=new m(0|a._crypto_core_hchacha20_outputbytes()),i=y.address;if(n.push(i),!(0|a._crypto_core_hchacha20(i,s,p,h))){var l=g(y,_);return E(n),l}T(n,"invalid usage")}function e6(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_core_hsalsa20_inputbytes();e.length!==c&&S(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"privateKey");var p,o=0|a._crypto_core_hsalsa20_keybytes();r.length!==o&&S(n,"invalid privateKey length"),p=k(r),n.push(p);var h=null;null!=t&&(h=k(t=Y(n,t,"constant")),t.length,n.push(h));var y=new m(0|a._crypto_core_hsalsa20_outputbytes()),i=y.address;if(n.push(i),!(0|a._crypto_core_hsalsa20(i,s,p,h))){var l=g(y,_);return E(n),l}T(n,"invalid usage")}function e9(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ristretto255_bytes();e.length!==s&&S(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ristretto255_bytes();r.length!==p&&S(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ristretto255_add(h,n,c))){var y=g(o,t);return E(_),y}T(_,"input is an invalid element")}function e8(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ristretto255_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ristretto255_from_hash(s,_))){var c=g(n,r);return E(t),c}T(t,"invalid usage")}function e4(e,r){var t=[];f(r),e=Y(t,e,"repr");var _,n=0|a._crypto_core_ristretto255_bytes();e.length!==n&&S(t,"invalid repr length"),_=k(e),t.push(_);var s=1==(0|a._crypto_core_ristretto255_is_valid_point(_));return E(t),s}function e7(e){var r=[];f(e);var t=new m(0|a._crypto_core_ristretto255_bytes()),_=t.address;r.push(_),a._crypto_core_ristretto255_random(_);var n=g(t,e);return E(r),n}function re(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_add(h,n,c);var y=g(o,t);return E(_),y}function rr(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_complement(c,_);var p=g(s,r);return E(t),p}function rt(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_core_ristretto255_scalar_invert(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid reciprocate")}function ra(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_mul(h,n,c);var y=g(o,t);return E(_),y}function r_(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&S(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_negate(c,_);var p=g(s,r);return E(t),p}function rn(e){var r=[];f(e);var t=new m(0|a._crypto_core_ristretto255_scalarbytes()),_=t.address;r.push(_),a._crypto_core_ristretto255_scalar_random(_);var n=g(t,e);return E(r),n}function rs(e,r){var t=[];f(r),e=Y(t,e,"sample");var _,n=0|a._crypto_core_ristretto255_nonreducedscalarbytes();e.length!==n&&S(t,"invalid sample length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_reduce(c,_);var p=g(s,r);return E(t),p}function rc(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&S(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&S(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_sub(h,n,c);var y=g(o,t);return E(_),y}function rp(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ristretto255_bytes();e.length!==s&&S(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ristretto255_bytes();r.length!==p&&S(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ristretto255_sub(h,n,c))){var y=g(o,t);return E(_),y}T(_,"input is an invalid element")}function ro(e,r,t,_){var n=[];f(_),w(n,e,"hash_length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(n,"hash_length must be an unsigned integer");var s=k(r=Y(n,r,"message")),c=r.length;n.push(s);var p=null,o=0;null!=t&&(p=k(t=Y(n,t,"key")),o=t.length,n.push(p));var h=new m(e|=0),y=h.address;if(n.push(y),!(0|a._crypto_generichash(y,e,s,c,0,p,o))){var i=g(h,_);return E(n),i}T(n,"invalid usage")}function rh(e,r,t,_,n){var s=[];f(n),w(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&S(s,"subkey_len must be an unsigned integer");var c=null,p=0;null!=r&&(c=k(r=Y(s,r,"key")),p=r.length,s.push(c));var o=null,h=0;null!=t&&(t=Y(s,t,"id"),h=0|a._crypto_generichash_blake2b_saltbytes(),t.length!==h&&S(s,"invalid id length"),o=k(t),s.push(o));var y=null,i=0;null!=_&&(_=Y(s,_,"ctx"),i=0|a._crypto_generichash_blake2b_personalbytes(),_.length!==i&&S(s,"invalid ctx length"),y=k(_),s.push(y));var l=new m(0|e),u=l.address;if(s.push(u),!(0|a._crypto_generichash_blake2b_salt_personal(u,e,null,0,0,c,p,o,y))){var d=g(l,n);return E(s),d}T(s,"invalid usage")}function ry(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"hash_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"hash_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_generichash_final(e,s,r))){var c=(a._free(e),g(n,t));return E(_),c}T(_,"invalid usage")}function ri(e,r,t){var _=[];f(t);var n=null,s=0;null!=e&&(n=k(e=Y(_,e,"key")),s=e.length,_.push(n)),w(_,r,"hash_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"hash_length must be an unsigned integer");var c=new m(357).address;if(!(0|a._crypto_generichash_init(c,n,s,r)))return E(_),c;T(_,"invalid usage")}function rl(e){var r=[];f(e);var t=new m(0|a._crypto_generichash_keybytes()),_=t.address;r.push(_),a._crypto_generichash_keygen(_);var n=g(t,e);return E(r),n}function ru(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_generichash_update(e,n,s)&&T(_,"invalid usage"),E(_)}function rd(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash(c,_,n,0))){var p=g(s,r);return E(t),p}T(t,"invalid usage")}function rv(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha256_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha256(c,_,n,0))){var p=g(s,r);return E(t),p}T(t,"invalid usage")}function rg(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function rb(e){var r=[];f(e);var t=new m(104).address;if(!(0|a._crypto_hash_sha256_init(t)))return E(r),t;T(r,"invalid usage")}function rf(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha256_update(e,n,s)&&T(_,"invalid usage"),E(_)}function rm(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha3256_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha3256(c,_,n))){var p=g(s,r);return E(t),p}T(t,"invalid usage")}function rk(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha3256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha3256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function rx(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_hash_sha3256_init(t)))return E(r),t;T(r,"invalid usage")}function rE(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha3256_update(e,n,s)&&T(_,"invalid usage"),E(_)}function rT(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha3512_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha3512(c,_,n))){var p=g(s,r);return E(t),p}T(t,"invalid usage")}function rS(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha3512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha3512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function rw(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_hash_sha3512_init(t)))return E(r),t;T(r,"invalid usage")}function rY(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha3512_update(e,n,s)&&T(_,"invalid usage"),E(_)}function rB(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha512_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha512(c,_,n,0))){var p=g(s,r);return E(t),p}T(t,"invalid usage")}function rA(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function rK(e){var r=[];f(e);var t=new m(208).address;if(!(0|a._crypto_hash_sha512_init(t)))return E(r),t;T(r,"invalid usage")}function rI(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha512_update(e,n,s)&&T(_,"invalid usage"),E(_)}function rM(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_bytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rN(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_bytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_encrypt(h,n,c);var y=g(o,t);return E(_),y}function rL(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_keygen(_);var n=g(t,e);return E(r),n}function rU(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_nd_outputbytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_nd_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_nd_inputbytes()),h=o.address;_.push(h),a._crypto_ipcrypt_nd_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rC(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_ipcrypt_nd_inputbytes();e.length!==c&&S(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"tweak");var p,o=0|a._crypto_ipcrypt_nd_tweakbytes();r.length!==o&&S(n,"invalid tweak length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_ipcrypt_nd_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|a._crypto_ipcrypt_nd_outputbytes()),l=i.address;n.push(l),a._crypto_ipcrypt_nd_encrypt(l,s,p,h);var u=g(i,_);return E(n),u}function rO(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_nd_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_nd_keygen(_);var n=g(t,e);return E(r),n}function rR(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_ndx_outputbytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_ndx_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_ndx_inputbytes()),h=o.address;_.push(h),a._crypto_ipcrypt_ndx_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rP(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_ipcrypt_ndx_inputbytes();e.length!==c&&S(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"tweak");var p,o=0|a._crypto_ipcrypt_ndx_tweakbytes();r.length!==o&&S(n,"invalid tweak length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_ipcrypt_ndx_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|a._crypto_ipcrypt_ndx_outputbytes()),l=i.address;n.push(l),a._crypto_ipcrypt_ndx_encrypt(l,s,p,h);var u=g(i,_);return E(n),u}function rX(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_ndx_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_ndx_keygen(_);var n=g(t,e);return E(r),n}function rD(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_pfx_bytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_pfx_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_pfx_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_pfx_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rG(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_pfx_bytes();e.length!==s&&S(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_pfx_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_pfx_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_pfx_encrypt(h,n,c);var y=g(o,t);return E(_),y}function rF(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_pfx_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_pfx_keygen(_);var n=g(t,e);return E(r),n}function rV(e,r,t,_,n){var s=[];f(n),w(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&S(s,"subkey_len must be an unsigned integer"),w(s,r,"subkey_id");var c,p=0;if("bigint"==typeof r&&r>=BigInt(0)){let e=r>>BigInt(32);e>BigInt(0xffffffff)&&S(s,"subkey_id cannot be more than 64 bits"),p=Number(e),c=Number(r&BigInt(0xffffffff))}else"number"==typeof r&&(0|r)===r&&r>=0?c=r:S(s,"subkey_id must be an unsigned integer or bigint");"string"!=typeof t&&S(s,"ctx must be a string"),(t=y(t+"\0")).length-1!==a._crypto_kdf_contextbytes()&&S(s,"invalid ctx length");var o=k(t);t.length,s.push(o),_=Y(s,_,"key");var h,i=0|a._crypto_kdf_keybytes();_.length!==i&&S(s,"invalid key length"),h=k(_),s.push(h);var l=new m(0|e),u=l.address;s.push(u),a._crypto_kdf_derive_from_key(u,e,c,p,o,h);var d=g(l,n);return E(s),d}function rq(e){var r=[];f(e);var t=new m(0|a._crypto_kdf_keybytes()),_=t.address;r.push(_),a._crypto_kdf_keygen(_);var n=g(t,e);return E(r),n}function rH(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_ciphertextbytes();e.length!==s&&S(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_dec(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function rz(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_publickeybytes();e.length!==n&&S(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}T(t,"invalid usage")}function rW(e){var r=[];f(e);var t=new m(0|a._crypto_kem_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"xwing"};return E(r),c}T(r,"internal error")}function rj(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_mlkem768_ciphertextbytes();e.length!==s&&S(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_mlkem768_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_mlkem768_dec(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function rJ(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_mlkem768_publickeybytes();e.length!==n&&S(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_mlkem768_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_mlkem768_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}T(t,"invalid usage")}function rQ(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s,c=0|a._crypto_kem_mlkem768_publickeybytes();e.length!==c&&S(_,"invalid publicKey length"),n=k(e),_.push(n),32!==(r=Y(_,r,"seed")).length&&S(_,"invalid seed length"),s=k(r),_.push(s);var p=new m(0|a._crypto_kem_mlkem768_ciphertextbytes()),o=p.address;_.push(o);var h=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),y=h.address;if(_.push(y),!(0|a._crypto_kem_mlkem768_enc_deterministic(o,y,n,s))){var i=g({ciphertext:p,sharedSecret:h},t);return E(_),i}T(_,"invalid usage")}function rZ(e){var r=[];f(e);var t=new m(0|a._crypto_kem_mlkem768_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_mlkem768_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_mlkem768_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"ml-kem-768"};return E(r),c}T(r,"internal error")}function r$(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_mlkem768_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_mlkem768_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_mlkem768_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_mlkem768_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"ml-kem-768"};return E(t),h}T(t,"invalid usage")}function r0(){var e=a._crypto_kem_primitive(),r=a.UTF8ToString(e);return E([]),r}function r5(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"xwing"};return E(t),h}T(t,"invalid usage")}function r2(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_xwing_ciphertextbytes();e.length!==s&&S(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_xwing_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_xwing_dec(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function r1(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_xwing_publickeybytes();e.length!==n&&S(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_xwing_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_xwing_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}T(t,"invalid usage")}function r3(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s,c=0|a._crypto_kem_xwing_publickeybytes();e.length!==c&&S(_,"invalid publicKey length"),n=k(e),_.push(n),64!==(r=Y(_,r,"seed")).length&&S(_,"invalid seed length"),s=k(r),_.push(s);var p=new m(0|a._crypto_kem_xwing_ciphertextbytes()),o=p.address;_.push(o);var h=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),y=h.address;if(_.push(y),!(0|a._crypto_kem_xwing_enc_deterministic(o,y,n,s))){var i=g({ciphertext:p,sharedSecret:h},t);return E(_),i}T(_,"invalid usage")}function r6(e){var r=[];f(e);var t=new m(0|a._crypto_kem_xwing_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_xwing_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_xwing_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"xwing"};return E(r),c}T(r,"internal error")}function r9(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_xwing_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_xwing_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_xwing_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_xwing_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"xwing"};return E(t),h}T(t,"invalid usage")}function r8(e,r,t,_){var n=[];f(_),e=Y(n,e,"clientPublicKey");var s,c=0|a._crypto_kx_publickeybytes();e.length!==c&&S(n,"invalid clientPublicKey length"),s=k(e),n.push(s),r=Y(n,r,"clientSecretKey");var p,o=0|a._crypto_kx_secretkeybytes();r.length!==o&&S(n,"invalid clientSecretKey length"),p=k(r),n.push(p),t=Y(n,t,"serverPublicKey");var h,y=0|a._crypto_kx_publickeybytes();t.length!==y&&S(n,"invalid serverPublicKey length"),h=k(t),n.push(h);var i=new m(0|a._crypto_kx_sessionkeybytes()),l=i.address;n.push(l);var u=new m(0|a._crypto_kx_sessionkeybytes()),d=u.address;if(n.push(d),!(0|a._crypto_kx_client_session_keys(l,d,s,p,h))){var v=g({sharedRx:i,sharedTx:u},_);return E(n),v}T(n,"invalid usage")}function r4(e){var r=[];f(e);var t=new m(0|a._crypto_kx_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kx_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kx_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"x25519"};return E(r),c}T(r,"internal error")}function r7(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kx_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kx_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kx_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kx_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}T(t,"internal error")}function te(e,r,t,_){var n=[];f(_),e=Y(n,e,"serverPublicKey");var s,c=0|a._crypto_kx_publickeybytes();e.length!==c&&S(n,"invalid serverPublicKey length"),s=k(e),n.push(s),r=Y(n,r,"serverSecretKey");var p,o=0|a._crypto_kx_secretkeybytes();r.length!==o&&S(n,"invalid serverSecretKey length"),p=k(r),n.push(p),t=Y(n,t,"clientPublicKey");var h,y=0|a._crypto_kx_publickeybytes();t.length!==y&&S(n,"invalid clientPublicKey length"),h=k(t),n.push(h);var i=new m(0|a._crypto_kx_sessionkeybytes()),l=i.address;n.push(l);var u=new m(0|a._crypto_kx_sessionkeybytes()),d=u.address;if(n.push(d),!(0|a._crypto_kx_server_session_keys(l,d,s,p,h))){var v=g({sharedRx:i,sharedTx:u},_);return E(n),v}T(n,"invalid usage")}function tr(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_onetimeauth_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_onetimeauth_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_onetimeauth(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function tt(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_onetimeauth_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_onetimeauth_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}T(t,"invalid usage")}function ta(e,r){var t=[];f(r);var _=null;null!=e&&(_=k(e=Y(t,e,"key")),e.length,t.push(_));var n=new m(144).address;if(!(0|a._crypto_onetimeauth_init(n,_)))return E(t),n;T(t,"invalid usage")}function t_(e){var r=[];f(e);var t=new m(0|a._crypto_onetimeauth_keybytes()),_=t.address;r.push(_),a._crypto_onetimeauth_keygen(_);var n=g(t,e);return E(r),n}function tn(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_onetimeauth_update(e,n,s)&&T(_,"invalid usage"),E(_)}function ts(e,r,t){var _=[];e=Y(_,e,"hash");var n,s=0|a._crypto_onetimeauth_bytes();e.length!==s&&S(_,"invalid hash length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_onetimeauth_keybytes();t.length!==h&&S(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_onetimeauth_verify(n,c,p,0,o));return E(_),y}function tc(e,r,t,_,n,s,c){var p=[];f(c),w(p,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&S(p,"keyLength must be an unsigned integer");var o=k(r=Y(p,r,"password")),h=r.length;p.push(o),t=Y(p,t,"salt");var y,i=0|a._crypto_pwhash_saltbytes();t.length!==i&&S(p,"invalid salt length"),y=k(t),p.push(y),w(p,_,"opsLimit"),("number"!=typeof _||(0|_)!==_||_<0)&&S(p,"opsLimit must be an unsigned integer"),w(p,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&S(p,"memLimit must be an unsigned integer"),w(p,s,"algorithm"),("number"!=typeof s||(0|s)!==s||s<0)&&S(p,"algorithm must be an unsigned integer");var l=new m(0|e),u=l.address;if(p.push(u),!(0|a._crypto_pwhash(u,e,0,o,h,0,y,_,0,n,s))){var d=g(l,c);return E(p),d}T(p,"invalid usage")}function tp(e,r,t,_,n,s){var c=[];f(s),w(c,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&S(c,"keyLength must be an unsigned integer");var p=k(r=Y(c,r,"password")),o=r.length;c.push(p),t=Y(c,t,"salt");var h,y=0|a._crypto_pwhash_scryptsalsa208sha256_saltbytes();t.length!==y&&S(c,"invalid salt length"),h=k(t),c.push(h),w(c,_,"opsLimit"),("number"!=typeof _||(0|_)!==_||_<0)&&S(c,"opsLimit must be an unsigned integer"),w(c,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&S(c,"memLimit must be an unsigned integer");var i=new m(0|e),l=i.address;if(c.push(l),!(0|a._crypto_pwhash_scryptsalsa208sha256(l,e,0,p,o,0,h,_,0,n))){var u=g(i,s);return E(c),u}T(c,"invalid usage")}function to(e,r,t,_,n,s,c){var p=[];f(c);var o=k(e=Y(p,e,"password")),h=e.length;p.push(o);var y=k(r=Y(p,r,"salt")),i=r.length;p.push(y),w(p,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&S(p,"opsLimit must be an unsigned integer"),w(p,_,"r"),("number"!=typeof _||(0|_)!==_||_<0)&&S(p,"r must be an unsigned integer"),w(p,n,"p"),("number"!=typeof n||(0|n)!==n||n<0)&&S(p,"p must be an unsigned integer"),w(p,s,"keyLength"),("number"!=typeof s||(0|s)!==s||s<0)&&S(p,"keyLength must be an unsigned integer");var l=new m(0|s),u=l.address;if(p.push(u),!(0|a._crypto_pwhash_scryptsalsa208sha256_ll(o,h,y,i,t,0,_,n,u,s))){var d=g(l,c);return E(p),d}T(p,"invalid usage")}function th(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"password")),c=e.length;n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&S(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&S(n,"memLimit must be an unsigned integer");var p=new m(0|a._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(n.push(p),!(0|a._crypto_pwhash_scryptsalsa208sha256_str(p,s,c,0,r,0,t))){var o=a.UTF8ToString(p);return E(n),o}T(n,"invalid usage")}function ty(e,r,t){var _=[];f(t),"string"!=typeof e&&S(_,"hashed_password must be a string");var n=k(e=y(e+"\0"));e.length,_.push(n);var s=k(r=Y(_,r,"password")),c=r.length;_.push(s);var p=!(0|a._crypto_pwhash_scryptsalsa208sha256_str_verify(n,s,c,0));return E(_),p}function ti(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"password")),c=e.length;n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&S(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&S(n,"memLimit must be an unsigned integer");var p=new m(0|a._crypto_pwhash_strbytes()).address;if(n.push(p),!(0|a._crypto_pwhash_str(p,s,c,0,r,0,t))){var o=a.UTF8ToString(p);return E(n),o}T(n,"invalid usage")}function tl(e,r,t,_){var n=[];f(_),"string"!=typeof e&&S(n,"hashed_password must be a string");var s=k(e=y(e+"\0"));e.length,n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&S(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&S(n,"memLimit must be an unsigned integer");var c=!!(0|a._crypto_pwhash_str_needs_rehash(s,r,0,t));return E(n),c}function tu(e,r,t){var _=[];f(t),"string"!=typeof e&&S(_,"hashed_password must be a string");var n=k(e=y(e+"\0"));e.length,_.push(n);var s=k(r=Y(_,r,"password")),c=r.length;_.push(s);var p=!(0|a._crypto_pwhash_str_verify(n,s,c,0));return E(_),p}function td(e,r,t){var _=[];f(t),e=Y(_,e,"privateKey");var n,s=0|a._crypto_scalarmult_scalarbytes();e.length!==s&&S(_,"invalid privateKey length"),n=k(e),_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_scalarmult_bytes();r.length!==p&&S(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult(h,n,c))){var y=g(o,t);return E(_),y}T(_,"weak public key")}function tv(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_scalarmult_scalarbytes();e.length!==n&&S(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_base(c,_))){var p=g(s,r);return E(t),p}T(t,"unknown error")}function tg(e,r,t){var _=[];f(t),e=Y(_,e,"n");var n,s=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==s&&S(_,"invalid n length"),n=k(e),_.push(n),r=Y(_,r,"p");var c,p=0|a._crypto_scalarmult_ed25519_bytes();r.length!==p&&S(_,"invalid p length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ed25519(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid point or scalar is 0")}function tb(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==n&&S(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_ed25519_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ed25519_base(c,_))){var p=g(s,r);return E(t),p}T(t,"scalar is 0")}function tf(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==n&&S(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_ed25519_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ed25519_base_noclamp(c,_))){var p=g(s,r);return E(t),p}T(t,"scalar is 0")}function tm(e,r,t){var _=[];f(t),e=Y(_,e,"n");var n,s=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==s&&S(_,"invalid n length"),n=k(e),_.push(n),r=Y(_,r,"p");var c,p=0|a._crypto_scalarmult_ed25519_bytes();r.length!==p&&S(_,"invalid p length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ed25519_noclamp(h,n,c))){var y=g(o,t);return E(_),y}T(_,"invalid point or scalar is 0")}function tk(e,r,t){var _=[];f(t),e=Y(_,e,"scalar");var n,s=0|a._crypto_scalarmult_ristretto255_scalarbytes();e.length!==s&&S(_,"invalid scalar length"),n=k(e),_.push(n),r=Y(_,r,"element");var c,p=0|a._crypto_scalarmult_ristretto255_bytes();r.length!==p&&S(_,"invalid element length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ristretto255(h,n,c))){var y=g(o,t);return E(_),y}T(_,"result is identity element")}function tx(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&S(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ristretto255_base(c,_))){var p=g(s,r);return E(t),p}T(t,"scalar is 0")}function tE(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_secretbox_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_secretbox_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;n.push(l);var u=new m(0|a._crypto_secretbox_macbytes()),d=u.address;if(n.push(d),!(0|a._crypto_secretbox_detached(l,d,s,c,0,p,h))){var v=g({mac:u,cipher:i},_);return E(n),v}T(n,"invalid usage")}function tT(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_secretbox_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_secretbox_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(c+a._crypto_secretbox_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_secretbox_easy(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function tS(e){var r=[];f(e);var t=new m(0|a._crypto_secretbox_keybytes()),_=t.address;r.push(_),a._crypto_secretbox_keygen(_);var n=g(t,e);return E(r),n}function tw(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"ciphertext")),p=e.length;s.push(c),r=Y(s,r,"mac");var o,h=0|a._crypto_secretbox_macbytes();r.length!==h&&S(s,"invalid mac length"),o=k(r),s.push(o),t=Y(s,t,"nonce");var y,i=0|a._crypto_secretbox_noncebytes();t.length!==i&&S(s,"invalid nonce length"),y=k(t),s.push(y),_=Y(s,_,"key");var l,u=0|a._crypto_secretbox_keybytes();_.length!==u&&S(s,"invalid key length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;if(s.push(v),!(0|a._crypto_secretbox_open_detached(v,c,o,p,0,y,l))){var b=g(d,n);return E(s),b}T(s,"wrong secret key for the given ciphertext")}function tY(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_secretbox_macbytes(),p=e.length;p<c&&S(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"nonce");var o,h=0|a._crypto_secretbox_noncebytes();r.length!==h&&S(n,"invalid nonce length"),o=k(r),n.push(o),t=Y(n,t,"key");var y,i=0|a._crypto_secretbox_keybytes();t.length!==i&&S(n,"invalid key length"),y=k(t),n.push(y);var l=new m(p-a._crypto_secretbox_macbytes()|0),u=l.address;if(n.push(u),!(0|a._crypto_secretbox_open_easy(u,s,p,0,o,y))){var d=g(l,_);return E(n),d}T(n,"wrong secret key for the given ciphertext")}function tB(e,r,t){var _=[];f(t),e=Y(_,e,"header");var n,s=0|a._crypto_secretstream_xchacha20poly1305_headerbytes();e.length!==s&&S(_,"invalid header length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_secretstream_xchacha20poly1305_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(52).address;if(!(0|a._crypto_secretstream_xchacha20poly1305_init_pull(o,n,c)))return E(_),o;T(_,"invalid usage")}function tA(e,r){var t=[];f(r),e=Y(t,e,"key");var _,n=0|a._crypto_secretstream_xchacha20poly1305_keybytes();e.length!==n&&S(t,"invalid key length"),_=k(e),t.push(_);var s=new m(52).address,c=new m(0|a._crypto_secretstream_xchacha20poly1305_headerbytes()),p=c.address;if(t.push(p),!(0|a._crypto_secretstream_xchacha20poly1305_init_push(s,p,_))){var o={state:s,header:g(c,r)};return E(t),o}T(t,"invalid usage")}function tK(e){var r=[];f(e);var t=new m(0|a._crypto_secretstream_xchacha20poly1305_keybytes()),_=t.address;r.push(_),a._crypto_secretstream_xchacha20poly1305_keygen(_);var n=g(t,e);return E(r),n}function tI(e,r,t,_){var n=[];f(_),w(n,e,"state_address"),r=Y(n,r,"cipher");var s,c=a._crypto_secretstream_xchacha20poly1305_abytes(),p=r.length;p<c&&S(n,"cipher is too short"),s=k(r),n.push(s);var o=null,h=0;null!=t&&(o=k(t=Y(n,t,"ad")),h=t.length,n.push(o));var y=new m(p-a._crypto_secretstream_xchacha20poly1305_abytes()|0),i=y.address;n.push(i);var l,u=(l=x(1),n.push(l),(u=0===a._crypto_secretstream_xchacha20poly1305_pull(e,i,0,l,s,p,0,o,h)&&{tag:a.HEAPU8[l],message:y})&&{message:g(u.message,_),tag:u.tag});return E(n),u}function tM(e,r,t,_,n){var s=[];f(n),w(s,e,"state_address");var c=k(r=Y(s,r,"message_chunk")),p=r.length;s.push(c);var o=null,h=0;null!=t&&(o=k(t=Y(s,t,"ad")),h=t.length,s.push(o)),w(s,_,"tag"),("number"!=typeof _||(0|_)!==_||_<0)&&S(s,"tag must be an unsigned integer");var y=new m(p+a._crypto_secretstream_xchacha20poly1305_abytes()|0),i=y.address;if(s.push(i),!(0|a._crypto_secretstream_xchacha20poly1305_push(e,i,0,c,p,0,o,h,0,_))){var l=g(y,n);return E(s),l}T(s,"invalid usage")}function tN(e,r){var t=[];return f(r),w(t,e,"state_address"),a._crypto_secretstream_xchacha20poly1305_rekey(e),E(t),!0}function tL(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_shorthash_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_shorthash_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_shorthash(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function tU(e){var r=[];f(e);var t=new m(0|a._crypto_shorthash_keybytes()),_=t.address;r.push(_),a._crypto_shorthash_keygen(_);var n=g(t,e);return E(r),n}function tC(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_shorthash_siphashx24_keybytes();r.length!==p&&S(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_shorthash_siphashx24_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_shorthash_siphashx24(h,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function tO(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_sign_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(e.length+a._crypto_sign_bytes()|0),h=o.address;if(_.push(h),!(0|a._crypto_sign(h,null,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function tR(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_sign_secretkeybytes();r.length!==p&&S(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_sign_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_sign_detached(h,null,n,s,0,c))){var y=g(o,t);return E(_),y}T(_,"invalid usage")}function tP(e,r){var t=[];f(r),e=Y(t,e,"edPk");var _,n=0|a._crypto_sign_publickeybytes();e.length!==n&&S(t,"invalid edPk length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_pk_to_curve25519(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid key")}function tX(e,r){var t=[];f(r),e=Y(t,e,"edSk");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&S(t,"invalid edSk length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_curve25519(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid key")}function tD(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&S(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_publickeybytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_pk(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid key")}function tG(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&S(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_seedbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_seed(c,_))){var p=g(s,r);return E(t),p}T(t,"invalid key")}function tF(e,r,t){var _=[];f(t),w(_,e,"state_address"),r=Y(_,r,"privateKey");var n,s=0|a._crypto_sign_secretkeybytes();r.length!==s&&S(_,"invalid privateKey length"),n=k(r),_.push(n);var c=new m(0|a._crypto_sign_bytes()),p=c.address;if(_.push(p),!(0|a._crypto_sign_final_create(e,p,null,n))){var o=(a._free(e),g(c,t));return E(_),o}T(_,"invalid usage")}function tV(e,r,t,_){var n=[];f(_),w(n,e,"state_address"),r=Y(n,r,"signature");var s,c=0|a._crypto_sign_bytes();r.length!==c&&S(n,"invalid signature length"),s=k(r),n.push(s),t=Y(n,t,"publicKey");var p,o=0|a._crypto_sign_publickeybytes();t.length!==o&&S(n,"invalid publicKey length"),p=k(t),n.push(p);var h=!(0|a._crypto_sign_final_verify(e,s,p));return E(n),h}function tq(e){var r=[];f(e);var t=new m(208).address;if(!(0|a._crypto_sign_init(t)))return E(r),t;T(r,"internal error")}function tH(e){var r=[];f(e);var t=new m(0|a._crypto_sign_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_sign_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_sign_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"ed25519"};return E(r),c}T(r,"internal error")}function tz(e,r,t){var _=[];f(t),e=Y(_,e,"signedMessage");var n,s=a._crypto_sign_bytes(),c=e.length;c<s&&S(_,"signedMessage is too short"),n=k(e),_.push(n),r=Y(_,r,"publicKey");var p,o=0|a._crypto_sign_publickeybytes();r.length!==o&&S(_,"invalid publicKey length"),p=k(r),_.push(p);var h=new m(c-a._crypto_sign_bytes()|0),y=h.address;if(_.push(y),!(0|a._crypto_sign_open(y,null,n,c,0,p))){var i=g(h,t);return E(_),i}T(_,"incorrect signature for the given public key")}function tW(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_sign_seedbytes();e.length!==n&&S(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_sign_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_sign_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"ed25519"};return E(t),h}T(t,"invalid usage")}function tj(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_sign_update(e,n,s,0)&&T(_,"invalid usage"),E(_)}function tJ(e,r,t){var _=[];e=Y(_,e,"signature");var n,s=0|a._crypto_sign_bytes();e.length!==s&&S(_,"invalid signature length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"publicKey");var o,h=0|a._crypto_sign_publickeybytes();t.length!==h&&S(_,"invalid publicKey length"),o=k(t),_.push(o);var y=!(0|a._crypto_sign_verify_detached(n,c,p,0,o));return E(_),y}function tQ(e,r,t,_){var n=[];f(_),w(n,e,"outLength"),("number"!=typeof e||(0|e)!==e||e<0)&&S(n,"outLength must be an unsigned integer"),r=Y(n,r,"key");var s,c=0|a._crypto_stream_chacha20_keybytes();r.length!==c&&S(n,"invalid key length"),s=k(r),n.push(s),t=Y(n,t,"nonce");var p,o=0|a._crypto_stream_chacha20_noncebytes();t.length!==o&&S(n,"invalid nonce length"),p=k(t),n.push(p);var h=new m(0|e),y=h.address;n.push(y),a._crypto_stream_chacha20(y,e,0,p,s);var i=g(h,_);return E(n),i}function tZ(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_chacha20_ietf_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_chacha20_ietf_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_chacha20_ietf_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function t$(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_chacha20_ietf_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&S(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_chacha20_ietf_keybytes();_.length!==i&&S(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_chacha20_ietf_xor_ic(u,c,p,0,o,t,y)){var d=g(l,n);return E(s),d}T(s,"invalid usage")}function t0(e){var r=[];f(e);var t=new m(0|a._crypto_stream_chacha20_keybytes()),_=t.address;r.push(_),a._crypto_stream_chacha20_keygen(_);var n=g(t,e);return E(r),n}function t5(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_chacha20_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_chacha20_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_chacha20_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function t2(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_chacha20_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&S(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_chacha20_keybytes();_.length!==i&&S(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_chacha20_xor_ic(u,c,p,0,o,t,0,y)){var d=g(l,n);return E(s),d}T(s,"invalid usage")}function t1(e){var r=[];f(e);var t=new m(0|a._crypto_stream_keybytes()),_=t.address;r.push(_),a._crypto_stream_keygen(_);var n=g(t,e);return E(r),n}function t3(e){var r=[];f(e);var t=new m(0|a._crypto_stream_xchacha20_keybytes()),_=t.address;r.push(_),a._crypto_stream_xchacha20_keygen(_);var n=g(t,e);return E(r),n}function t6(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_xchacha20_noncebytes();r.length!==o&&S(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_xchacha20_keybytes();t.length!==y&&S(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_xchacha20_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}T(n,"invalid usage")}function t9(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_xchacha20_noncebytes();r.length!==h&&S(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&S(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_xchacha20_keybytes();_.length!==i&&S(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_xchacha20_xor_ic(u,c,p,0,o,t,0,y)){var d=g(l,n);return E(s),d}T(s,"invalid usage")}function t8(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_shake128(p,e,n,s,0))){var o=g(c,t);return E(_),o}T(_,"invalid usage")}function t4(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_shake128_init(t)))return E(r),t;T(r,"invalid usage")}function t7(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_shake128_init_with_domain(_,e)))return E(t),_;T(t,"invalid usage")}function ae(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_shake128_squeeze(e,s,r))){var c=g(n,t);return E(_),c}T(_,"invalid usage")}function ar(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_shake128_update(e,n,s,0)&&T(_,"invalid usage"),E(_)}function at(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_shake256(p,e,n,s,0))){var o=g(c,t);return E(_),o}T(_,"invalid usage")}function aa(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_shake256_init(t)))return E(r),t;T(r,"invalid usage")}function a_(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_shake256_init_with_domain(_,e)))return E(t),_;T(t,"invalid usage")}function an(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_shake256_squeeze(e,s,r))){var c=g(n,t);return E(_),c}T(_,"invalid usage")}function as(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_shake256_update(e,n,s,0)&&T(_,"invalid usage"),E(_)}function ac(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_turboshake128(p,e,n,s,0))){var o=g(c,t);return E(_),o}T(_,"invalid usage")}function ap(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_turboshake128_init(t)))return E(r),t;T(r,"invalid usage")}function ao(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_turboshake128_init_with_domain(_,e)))return E(t),_;T(t,"invalid usage")}function ah(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_turboshake128_squeeze(e,s,r))){var c=g(n,t);return E(_),c}T(_,"invalid usage")}function ay(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_turboshake128_update(e,n,s,0)&&T(_,"invalid usage"),E(_)}function ai(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_turboshake256(p,e,n,s,0))){var o=g(c,t);return E(_),o}T(_,"invalid usage")}function al(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_turboshake256_init(t)))return E(r),t;T(r,"invalid usage")}function au(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_turboshake256_init_with_domain(_,e)))return E(t),_;T(t,"invalid usage")}function ad(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&S(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_turboshake256_squeeze(e,s,r))){var c=g(n,t);return E(_),c}T(_,"invalid usage")}function av(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_turboshake256_update(e,n,s,0)&&T(_,"invalid usage"),E(_)}function ag(e,r){var t=[];f(r),w(t,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"length must be an unsigned integer");var _=new m(0|e),n=_.address;t.push(n),a._randombytes_buf(n,e);var s=g(_,r);return E(t),s}function ab(e,r,t){var _=[];f(t),w(_,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&S(_,"length must be an unsigned integer"),r=Y(_,r,"seed");var n,s=0|a._randombytes_seedbytes();r.length!==s&&S(_,"invalid seed length"),n=k(r),_.push(n);var c=new m(0|e),p=c.address;_.push(p),a._randombytes_buf_deterministic(p,e,n);var o=g(c,t);return E(_),o}function af(e){f(e),a._randombytes_close()}function am(e){f(e);var r=a._randombytes_random()>>>0;return E([]),r}function ak(e,r){var t=[];f(r);for(var _=a._malloc(24),n=0;n<6;n++)a.setValue(_+4*n,a.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][n]]),"i32");0|a._randombytes_set_implementation(_)&&T(t,"unsupported implementation"),E(t)}function ax(e){f(e),a._randombytes_stir()}function aE(e,r){var t=[];f(r),w(t,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&S(t,"upper_bound must be an unsigned integer");var _=a._randombytes_uniform(e)>>>0;return E(t),_}function aT(e){var r,t=[];16!==(e=Y(t,e,"bin")).length&&S(t,"invalid bin length"),r=k(e),t.push(r);var _=new m(46).address;if(t.push(_),0!==a._sodium_bin2ip(_,46,r)){var n=a.UTF8ToString(_);return E(t),n}T(t,"conversion failed")}function aS(e,r){var t=[];f(r),"string"!=typeof e&&S(t,"ip must be a string");var _=k(e=y(e+"\0")),n=e.length-1;t.push(_);var s=new m(16),c=s.address;if(t.push(c),!(0|a._sodium_ip2bin(c,_,n))){var p=g(s,r);return E(t),p}T(t,"invalid IP address")}function aw(){var e=a._sodium_version_string(),r=a.UTF8ToString(e);return E([]),r}m.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(a.HEAPU8.subarray(this.address,this.address+this.length)),e},c.add=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be added");var t=e.length,a=0,_=0;if(r.length!==e.length)throw TypeError("Arguments must have the same length");for(_=0;_<t;_++)a>>=8,a+=e[_]+r[_],e[_]=255&a},c.base64_variants=u,c.compare=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==r.length)throw TypeError("Only instances of identical length can be compared");for(var t=0,a=1,_=e.length;_-- >0;)t|=r[_]-e[_]>>8&a,a&=(r[_]^e[_])-1>>8;return t+t+a-1},c.from_base64=function(e,r){r=d(r);var t,_=[],n=new m(3*(e=Y(_,e,"input")).length/4),s=k(e),c=x(4),p=x(4);return _.push(s),_.push(n.address),_.push(c),_.push(p),0!==a._sodium_base642bin(n.address,n.length,s,e.length,0,c,p,r)&&T(_,"invalid input"),a.getValue(p,"i32")-s!==e.length&&T(_,"incomplete input"),n.length=a.getValue(c,"i32"),t=n.to_Uint8Array(),E(_),t},c.from_hex=function(e){var r,t=[],_=new m((e=Y(t,e,"input")).length/2),n=k(e),s=x(4);return t.push(n),t.push(_.address),t.push(s),0!==a._sodium_hex2bin(_.address,_.length,n,e.length,0,0,s)&&T(t,"invalid input"),a.getValue(s,"i32")-n!==e.length&&T(t,"incomplete input"),r=_.to_Uint8Array(),E(t),r},c.from_string=y,c.increment=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be incremented");for(var r=256,t=0,a=e.length;t<a;t++)r>>=8,r+=e[t],e[t]=255&r},c.is_zero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be checked");for(var r=0,t=0,a=e.length;t<a;t++)r|=e[t];return 0===r},c.memcmp=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==r.length)throw TypeError("Only instances of identical length can be compared");for(var t=0,a=0,_=e.length;a<_;a++)t|=e[a]^r[a];return 0===t},c.memzero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be wiped");for(var r=0,t=e.length;r<t;r++)e[r]=0},c.output_formats=function(){return["uint8array","text","hex","base64"]},c.pad=function(e,r){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((r|=0)<=0)throw Error("block size must be > 0");var t,_=[],n=x(4),s=1,c=0,p=0|e.length,o=new m(p+r);_.push(n),_.push(o.address);for(var h=o.address,y=o.address+p+r;h<y;h++)a.HEAPU8[h]=e[c],c+=s=1&~((65535&((p-=s)>>>48|p>>>32|p>>>16|p))-1>>16);return 0!==a._sodium_pad(n,o.address,e.length,r,o.length)&&T(_,"internal error"),o.length=a.getValue(n,"i32"),t=o.to_Uint8Array(),E(_),t},c.unpad=function(e,r){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((r|=0)<=0)throw Error("block size must be > 0");var t=[],_=k(e),n=x(4);return t.push(_),t.push(n),0!==a._sodium_unpad(n,_,e.length,r)&&T(t,"unsupported/invalid padding"),e=(e=new Uint8Array(e)).subarray(0,a.getValue(n,"i32")),E(t),e},c.ready=h,c.symbols=function(){return Object.keys(c).sort()},c.to_base64=v,c.to_hex=l,c.to_string=i;let aY=c}}]);