@private.me/xbind 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/AGENTS.md +778 -0
  2. package/LICENSE.md +27 -0
  3. package/README.md +400 -0
  4. package/dist-standalone/_deps/crypto/base64.d.ts +29 -0
  5. package/dist-standalone/_deps/crypto/base64.js +97 -0
  6. package/dist-standalone/_deps/crypto/cjs/base64.js +103 -0
  7. package/dist-standalone/_deps/crypto/cjs/errors.js +119 -0
  8. package/dist-standalone/_deps/crypto/cjs/hmac.js +71 -0
  9. package/dist-standalone/_deps/crypto/cjs/index.js +86 -0
  10. package/dist-standalone/_deps/crypto/cjs/padding.js +57 -0
  11. package/dist-standalone/_deps/crypto/cjs/share-header.js +68 -0
  12. package/dist-standalone/_deps/crypto/cjs/shares.js +152 -0
  13. package/dist-standalone/_deps/crypto/cjs/tlv.js +199 -0
  14. package/dist-standalone/_deps/crypto/cjs/uuid.js +61 -0
  15. package/dist-standalone/_deps/crypto/cjs/verify.js +24 -0
  16. package/dist-standalone/_deps/crypto/cjs/xorida.js +221 -0
  17. package/dist-standalone/_deps/crypto/errors.d.ts +51 -0
  18. package/dist-standalone/_deps/crypto/errors.js +109 -0
  19. package/dist-standalone/_deps/crypto/hmac.d.ts +39 -0
  20. package/dist-standalone/_deps/crypto/hmac.js +66 -0
  21. package/dist-standalone/_deps/crypto/index.d.ts +20 -0
  22. package/dist-standalone/_deps/crypto/index.js +45 -0
  23. package/dist-standalone/_deps/crypto/padding.d.ts +19 -0
  24. package/dist-standalone/_deps/crypto/padding.js +53 -0
  25. package/dist-standalone/_deps/crypto/share-header.d.ts +44 -0
  26. package/dist-standalone/_deps/crypto/share-header.js +63 -0
  27. package/dist-standalone/_deps/crypto/shares.d.ts +27 -0
  28. package/dist-standalone/_deps/crypto/shares.js +148 -0
  29. package/dist-standalone/_deps/crypto/tlv.d.ts +26 -0
  30. package/dist-standalone/_deps/crypto/tlv.js +195 -0
  31. package/dist-standalone/_deps/crypto/uuid.d.ts +22 -0
  32. package/dist-standalone/_deps/crypto/uuid.js +56 -0
  33. package/dist-standalone/_deps/crypto/verify.d.ts +15 -0
  34. package/dist-standalone/_deps/crypto/verify.js +15 -0
  35. package/dist-standalone/_deps/crypto/xorida.d.ts +44 -0
  36. package/dist-standalone/_deps/crypto/xorida.js +215 -0
  37. package/dist-standalone/_deps/mldsa-wasm/LICENSE +24 -0
  38. package/dist-standalone/_deps/mldsa-wasm/dist/mldsa.js +1920 -0
  39. package/dist-standalone/_deps/mldsa-wasm/package.json +46 -0
  40. package/dist-standalone/_deps/mldsa-wasm/types/mldsa.d.ts +30 -0
  41. package/dist-standalone/_deps/shared/cjs/errors.js +582 -0
  42. package/dist-standalone/_deps/shared/cjs/index.js +492 -0
  43. package/dist-standalone/_deps/shared/cjs/package.json +1 -0
  44. package/dist-standalone/_deps/shared/cjs/types.js +403 -0
  45. package/dist-standalone/_deps/shared/errors.d.ts +48 -0
  46. package/dist-standalone/_deps/shared/errors.d.ts.map +1 -0
  47. package/dist-standalone/_deps/shared/errors.js +192 -0
  48. package/dist-standalone/_deps/shared/errors.js.map +1 -0
  49. package/dist-standalone/_deps/shared/index.d.ts +4 -0
  50. package/dist-standalone/_deps/shared/index.d.ts.map +1 -0
  51. package/dist-standalone/_deps/shared/index.js +78 -0
  52. package/dist-standalone/_deps/shared/index.js.map +1 -0
  53. package/dist-standalone/_deps/shared/types.d.ts +1097 -0
  54. package/dist-standalone/_deps/shared/types.d.ts.map +1 -0
  55. package/dist-standalone/_deps/shared/types.js +89 -0
  56. package/dist-standalone/_deps/shared/types.js.map +1 -0
  57. package/dist-standalone/_deps/ux-helpers/cjs/errors.d.ts +115 -0
  58. package/dist-standalone/_deps/ux-helpers/cjs/errors.d.ts.map +1 -0
  59. package/dist-standalone/_deps/ux-helpers/cjs/errors.js +1 -0
  60. package/dist-standalone/_deps/ux-helpers/cjs/errors.js.map +1 -0
  61. package/dist-standalone/_deps/ux-helpers/cjs/index.d.ts +13 -0
  62. package/dist-standalone/_deps/ux-helpers/cjs/index.d.ts.map +1 -0
  63. package/dist-standalone/_deps/ux-helpers/cjs/index.js +1 -0
  64. package/dist-standalone/_deps/ux-helpers/cjs/index.js.map +1 -0
  65. package/dist-standalone/_deps/ux-helpers/cjs/package.json +1 -0
  66. package/dist-standalone/_deps/ux-helpers/cjs/pagination.d.ts +39 -0
  67. package/dist-standalone/_deps/ux-helpers/cjs/pagination.d.ts.map +1 -0
  68. package/dist-standalone/_deps/ux-helpers/cjs/pagination.js +83 -0
  69. package/dist-standalone/_deps/ux-helpers/cjs/pagination.js.map +1 -0
  70. package/dist-standalone/_deps/ux-helpers/cjs/progress.d.ts +99 -0
  71. package/dist-standalone/_deps/ux-helpers/cjs/progress.d.ts.map +1 -0
  72. package/dist-standalone/_deps/ux-helpers/cjs/progress.js +143 -0
  73. package/dist-standalone/_deps/ux-helpers/cjs/progress.js.map +1 -0
  74. package/dist-standalone/_deps/ux-helpers/cjs/search.d.ts +32 -0
  75. package/dist-standalone/_deps/ux-helpers/cjs/search.d.ts.map +1 -0
  76. package/dist-standalone/_deps/ux-helpers/cjs/search.js +119 -0
  77. package/dist-standalone/_deps/ux-helpers/cjs/search.js.map +1 -0
  78. package/dist-standalone/_deps/ux-helpers/cjs/types.d.ts +109 -0
  79. package/dist-standalone/_deps/ux-helpers/cjs/types.d.ts.map +1 -0
  80. package/dist-standalone/_deps/ux-helpers/cjs/types.js +8 -0
  81. package/dist-standalone/_deps/ux-helpers/cjs/types.js.map +1 -0
  82. package/dist-standalone/_deps/ux-helpers/errors.d.ts +115 -0
  83. package/dist-standalone/_deps/ux-helpers/errors.d.ts.map +1 -0
  84. package/dist-standalone/_deps/ux-helpers/errors.js +253 -0
  85. package/dist-standalone/_deps/ux-helpers/errors.js.map +1 -0
  86. package/dist-standalone/_deps/ux-helpers/index.d.ts +13 -0
  87. package/dist-standalone/_deps/ux-helpers/index.d.ts.map +1 -0
  88. package/dist-standalone/_deps/ux-helpers/index.js +16 -0
  89. package/dist-standalone/_deps/ux-helpers/index.js.map +1 -0
  90. package/dist-standalone/_deps/ux-helpers/pagination.d.ts +39 -0
  91. package/dist-standalone/_deps/ux-helpers/pagination.d.ts.map +1 -0
  92. package/dist-standalone/_deps/ux-helpers/pagination.js +79 -0
  93. package/dist-standalone/_deps/ux-helpers/pagination.js.map +1 -0
  94. package/dist-standalone/_deps/ux-helpers/progress.d.ts +99 -0
  95. package/dist-standalone/_deps/ux-helpers/progress.d.ts.map +1 -0
  96. package/dist-standalone/_deps/ux-helpers/progress.js +138 -0
  97. package/dist-standalone/_deps/ux-helpers/progress.js.map +1 -0
  98. package/dist-standalone/_deps/ux-helpers/search.d.ts +32 -0
  99. package/dist-standalone/_deps/ux-helpers/search.d.ts.map +1 -0
  100. package/dist-standalone/_deps/ux-helpers/search.js +116 -0
  101. package/dist-standalone/_deps/ux-helpers/search.js.map +1 -0
  102. package/dist-standalone/_deps/ux-helpers/types.d.ts +109 -0
  103. package/dist-standalone/_deps/ux-helpers/types.d.ts.map +1 -0
  104. package/dist-standalone/_deps/ux-helpers/types.js +7 -0
  105. package/dist-standalone/_deps/ux-helpers/types.js.map +1 -0
  106. package/dist-standalone/_deps/xchange/auto-accept.d.ts +127 -0
  107. package/dist-standalone/_deps/xchange/auto-accept.js +1 -0
  108. package/dist-standalone/_deps/xchange/cjs/auto-accept.js +1 -0
  109. package/dist-standalone/_deps/xchange/cjs/errors.js +1 -0
  110. package/dist-standalone/_deps/xchange/cjs/index.js +1 -0
  111. package/dist-standalone/_deps/xchange/cjs/invite-client.js +1 -0
  112. package/dist-standalone/_deps/xchange/cjs/lazy-init.js +1 -0
  113. package/dist-standalone/_deps/xchange/cjs/package.json +1 -0
  114. package/dist-standalone/_deps/xchange/cjs/trust-integration.js +1 -0
  115. package/dist-standalone/_deps/xchange/cjs/xchange.js +1 -0
  116. package/dist-standalone/_deps/xchange/errors.d.ts +69 -0
  117. package/dist-standalone/_deps/xchange/errors.js +1 -0
  118. package/dist-standalone/_deps/xchange/index.d.ts +15 -0
  119. package/dist-standalone/_deps/xchange/index.js +1 -0
  120. package/dist-standalone/_deps/xchange/invite-client.d.ts +178 -0
  121. package/dist-standalone/_deps/xchange/invite-client.js +1 -0
  122. package/dist-standalone/_deps/xchange/lazy-init.d.ts +176 -0
  123. package/dist-standalone/_deps/xchange/lazy-init.js +1 -0
  124. package/dist-standalone/_deps/xchange/trust-integration.d.ts +102 -0
  125. package/dist-standalone/_deps/xchange/trust-integration.js +1 -0
  126. package/dist-standalone/_deps/xchange/xchange.d.ts +60 -0
  127. package/dist-standalone/_deps/xchange/xchange.js +1 -0
  128. package/dist-standalone/_deps/xregistry/cjs/discovery.js +1 -0
  129. package/dist-standalone/_deps/xregistry/cjs/errors.js +1 -0
  130. package/dist-standalone/_deps/xregistry/cjs/index.js +1 -0
  131. package/dist-standalone/_deps/xregistry/cjs/package.json +1 -0
  132. package/dist-standalone/_deps/xregistry/cjs/registry.js +1 -0
  133. package/dist-standalone/_deps/xregistry/cjs/schema.js +1 -0
  134. package/dist-standalone/_deps/xregistry/cjs/types.js +1 -0
  135. package/dist-standalone/_deps/xregistry/discovery.d.ts +126 -0
  136. package/dist-standalone/_deps/xregistry/discovery.d.ts.map +1 -0
  137. package/dist-standalone/_deps/xregistry/discovery.js +1 -0
  138. package/dist-standalone/_deps/xregistry/discovery.js.map +1 -0
  139. package/dist-standalone/_deps/xregistry/errors.d.ts +41 -0
  140. package/dist-standalone/_deps/xregistry/errors.d.ts.map +1 -0
  141. package/dist-standalone/_deps/xregistry/errors.js +1 -0
  142. package/dist-standalone/_deps/xregistry/errors.js.map +1 -0
  143. package/dist-standalone/_deps/xregistry/index.d.ts +8 -0
  144. package/dist-standalone/_deps/xregistry/index.d.ts.map +1 -0
  145. package/dist-standalone/_deps/xregistry/index.js +1 -0
  146. package/dist-standalone/_deps/xregistry/index.js.map +1 -0
  147. package/dist-standalone/_deps/xregistry/registry.d.ts +85 -0
  148. package/dist-standalone/_deps/xregistry/registry.d.ts.map +1 -0
  149. package/dist-standalone/_deps/xregistry/registry.js +1 -0
  150. package/dist-standalone/_deps/xregistry/registry.js.map +1 -0
  151. package/dist-standalone/_deps/xregistry/schema.d.ts +81 -0
  152. package/dist-standalone/_deps/xregistry/schema.d.ts.map +1 -0
  153. package/dist-standalone/_deps/xregistry/schema.js +1 -0
  154. package/dist-standalone/_deps/xregistry/schema.js.map +1 -0
  155. package/dist-standalone/_deps/xregistry/types.d.ts +95 -0
  156. package/dist-standalone/_deps/xregistry/types.d.ts.map +1 -0
  157. package/dist-standalone/_deps/xregistry/types.js +1 -0
  158. package/dist-standalone/_deps/xregistry/types.js.map +1 -0
  159. package/dist-standalone/agent-call.d.ts +286 -0
  160. package/dist-standalone/agent-call.js +642 -0
  161. package/dist-standalone/agent-sdk.d.ts +207 -0
  162. package/dist-standalone/agent-sdk.js +328 -0
  163. package/dist-standalone/agent.d.ts +670 -0
  164. package/dist-standalone/agent.js +1529 -0
  165. package/dist-standalone/approval.d.ts +145 -0
  166. package/dist-standalone/approval.js +193 -0
  167. package/dist-standalone/auth.d.ts +75 -0
  168. package/dist-standalone/auth.js +219 -0
  169. package/dist-standalone/auto-accept.d.ts +102 -0
  170. package/dist-standalone/auto-accept.js +229 -0
  171. package/dist-standalone/backup-config.d.ts +150 -0
  172. package/dist-standalone/backup-config.js +201 -0
  173. package/dist-standalone/checkpoint.d.ts +125 -0
  174. package/dist-standalone/checkpoint.js +186 -0
  175. package/dist-standalone/cjs/agent-call.js +651 -0
  176. package/dist-standalone/cjs/agent-sdk.js +332 -0
  177. package/dist-standalone/cjs/agent.js +1566 -0
  178. package/dist-standalone/cjs/approval.js +199 -0
  179. package/dist-standalone/cjs/auth.js +225 -0
  180. package/dist-standalone/cjs/auto-accept.js +233 -0
  181. package/dist-standalone/cjs/backup-config.js +207 -0
  182. package/dist-standalone/cjs/checkpoint.js +193 -0
  183. package/dist-standalone/cjs/cli/init.js +487 -0
  184. package/dist-standalone/cjs/connect.js +312 -0
  185. package/dist-standalone/cjs/did-document.js +101 -0
  186. package/dist-standalone/cjs/did-privateme.js +130 -0
  187. package/dist-standalone/cjs/did-web.js +201 -0
  188. package/dist-standalone/cjs/discovery.js +462 -0
  189. package/dist-standalone/cjs/dual-mode.js +251 -0
  190. package/dist-standalone/cjs/email-templates.js +313 -0
  191. package/dist-standalone/cjs/email-transport.js +239 -0
  192. package/dist-standalone/cjs/envelope.js +510 -0
  193. package/dist-standalone/cjs/errors.js +562 -0
  194. package/dist-standalone/cjs/gateway-state.js +55 -0
  195. package/dist-standalone/cjs/gateway-transport.js +120 -0
  196. package/dist-standalone/cjs/guardrails.js +223 -0
  197. package/dist-standalone/cjs/http-compat.js +272 -0
  198. package/dist-standalone/cjs/identity.js +541 -0
  199. package/dist-standalone/cjs/index.js +224 -0
  200. package/dist-standalone/cjs/invitation.js +421 -0
  201. package/dist-standalone/cjs/invite.js +328 -0
  202. package/dist-standalone/cjs/key-agreement.js +246 -0
  203. package/dist-standalone/cjs/lazy-init.js +300 -0
  204. package/dist-standalone/cjs/mdns-discovery.js +202 -0
  205. package/dist-standalone/cjs/nonce-store.js +66 -0
  206. package/dist-standalone/cjs/package.json +3 -0
  207. package/dist-standalone/cjs/pairing-manager.js +223 -0
  208. package/dist-standalone/cjs/policy.js +320 -0
  209. package/dist-standalone/cjs/redis-nonce-store.js +76 -0
  210. package/dist-standalone/cjs/registry-middleware.js +50 -0
  211. package/dist-standalone/cjs/retry-transport.js +102 -0
  212. package/dist-standalone/cjs/security-policy.js +204 -0
  213. package/dist-standalone/cjs/split-channel.js +177 -0
  214. package/dist-standalone/cjs/subscription-proof.js +230 -0
  215. package/dist-standalone/cjs/succession.js +148 -0
  216. package/dist-standalone/cjs/transport.js +63 -0
  217. package/dist-standalone/cjs/trust-registry.js +742 -0
  218. package/dist-standalone/cjs/verify.js +25 -0
  219. package/dist-standalone/cjs/xfetch.js +252 -0
  220. package/dist-standalone/cli/init.d.ts +63 -0
  221. package/dist-standalone/cli/init.js +450 -0
  222. package/dist-standalone/connect.d.ts +143 -0
  223. package/dist-standalone/connect.js +274 -0
  224. package/dist-standalone/did-document.d.ts +65 -0
  225. package/dist-standalone/did-document.js +96 -0
  226. package/dist-standalone/did-privateme.d.ts +70 -0
  227. package/dist-standalone/did-privateme.js +121 -0
  228. package/dist-standalone/did-web.d.ts +73 -0
  229. package/dist-standalone/did-web.js +196 -0
  230. package/dist-standalone/discovery.d.ts +176 -0
  231. package/dist-standalone/discovery.js +458 -0
  232. package/dist-standalone/dual-mode.d.ts +145 -0
  233. package/dist-standalone/dual-mode.js +247 -0
  234. package/dist-standalone/email-templates.d.ts +41 -0
  235. package/dist-standalone/email-templates.js +309 -0
  236. package/dist-standalone/email-transport.d.ts +139 -0
  237. package/dist-standalone/email-transport.js +232 -0
  238. package/dist-standalone/envelope.d.ts +288 -0
  239. package/dist-standalone/envelope.js +497 -0
  240. package/dist-standalone/errors.d.ts +74 -0
  241. package/dist-standalone/errors.js +548 -0
  242. package/dist-standalone/gateway-state.d.ts +32 -0
  243. package/dist-standalone/gateway-state.js +51 -0
  244. package/dist-standalone/gateway-transport.d.ts +59 -0
  245. package/dist-standalone/gateway-transport.js +116 -0
  246. package/dist-standalone/guardrails.d.ts +136 -0
  247. package/dist-standalone/guardrails.js +216 -0
  248. package/dist-standalone/http-compat.d.ts +150 -0
  249. package/dist-standalone/http-compat.js +267 -0
  250. package/dist-standalone/identity.d.ts +176 -0
  251. package/dist-standalone/identity.js +516 -0
  252. package/dist-standalone/index.d.ts +83 -0
  253. package/dist-standalone/index.js +51 -0
  254. package/dist-standalone/invitation.d.ts +211 -0
  255. package/dist-standalone/invitation.js +415 -0
  256. package/dist-standalone/invite.d.ts +192 -0
  257. package/dist-standalone/invite.js +324 -0
  258. package/dist-standalone/key-agreement.d.ts +122 -0
  259. package/dist-standalone/key-agreement.js +236 -0
  260. package/dist-standalone/lazy-init.d.ts +167 -0
  261. package/dist-standalone/lazy-init.js +295 -0
  262. package/dist-standalone/mdns-discovery.d.ts +117 -0
  263. package/dist-standalone/mdns-discovery.js +195 -0
  264. package/dist-standalone/nonce-store.d.ts +39 -0
  265. package/dist-standalone/nonce-store.js +62 -0
  266. package/dist-standalone/package.json +11 -0
  267. package/dist-standalone/pairing-manager.d.ts +147 -0
  268. package/dist-standalone/pairing-manager.js +219 -0
  269. package/dist-standalone/policy.d.ts +150 -0
  270. package/dist-standalone/policy.js +315 -0
  271. package/dist-standalone/redis-nonce-store.d.ts +93 -0
  272. package/dist-standalone/redis-nonce-store.js +72 -0
  273. package/dist-standalone/registry-middleware.d.ts +38 -0
  274. package/dist-standalone/registry-middleware.js +47 -0
  275. package/dist-standalone/retry-transport.d.ts +76 -0
  276. package/dist-standalone/retry-transport.js +98 -0
  277. package/dist-standalone/security-policy.d.ts +146 -0
  278. package/dist-standalone/security-policy.js +198 -0
  279. package/dist-standalone/split-channel.d.ts +69 -0
  280. package/dist-standalone/split-channel.js +171 -0
  281. package/dist-standalone/subscription-proof.d.ts +103 -0
  282. package/dist-standalone/subscription-proof.js +224 -0
  283. package/dist-standalone/succession.d.ts +57 -0
  284. package/dist-standalone/succession.js +142 -0
  285. package/dist-standalone/transport.d.ts +50 -0
  286. package/dist-standalone/transport.js +59 -0
  287. package/dist-standalone/trust-registry.d.ts +286 -0
  288. package/dist-standalone/trust-registry.js +702 -0
  289. package/dist-standalone/verify.d.ts +16 -0
  290. package/dist-standalone/verify.js +16 -0
  291. package/dist-standalone/xfetch.d.ts +129 -0
  292. package/dist-standalone/xfetch.js +247 -0
  293. package/llms.txt +800 -0
  294. package/package.json +79 -0
  295. package/share1.dat +0 -0
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "mldsa-wasm",
3
+ "version": "0.0.4",
4
+ "description": "ML-DSA implementation using WebAssembly in a single JS file based on mldsa-native",
5
+ "main": "dist/mldsa.js",
6
+ "module": "dist/mldsa.js",
7
+ "type": "module",
8
+ "types": "types/mldsa.d.ts",
9
+ "scripts": {
10
+ "build": "npm run build:wasm && npm run build:bundle && npm run build:types",
11
+ "clean": "make -C src clean",
12
+ "test": "vitest run",
13
+ "build:wasm": "make -C src && node esbuild.config.js",
14
+ "build:bundle": "node esbuild.config.js",
15
+ "build:types": "tsc --declaration --emitDeclarationOnly --outDir types"
16
+ },
17
+ "keywords": [
18
+ "ml-dsa",
19
+ "dilithium",
20
+ "signature",
21
+ "post-quantum",
22
+ "cryptography",
23
+ "webassembly",
24
+ "wasm",
25
+ "nist",
26
+ "pqc"
27
+ ],
28
+ "author": "Dmitry Chestnykh",
29
+ "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/dchest/mldsa-wasm.git"
33
+ },
34
+ "files": [
35
+ "dist/",
36
+ "types/",
37
+ "README.md",
38
+ "LICENSE"
39
+ ],
40
+ "devDependencies": {
41
+ "@vitest/browser": "^3.2.4",
42
+ "esbuild": "^0.25.8",
43
+ "typescript": "^5.9.2",
44
+ "vitest": "^3.2.4"
45
+ }
46
+ }
@@ -0,0 +1,30 @@
1
+ export type MlDsaAlgorithmName = "ML-DSA-44" | "ML-DSA-65" | "ML-DSA-87";
2
+ export type MlDsaAlgorithm = {
3
+ name: MlDsaAlgorithmName;
4
+ context?: BufferSource;
5
+ } | MlDsaAlgorithmName;
6
+ export type MlDsaKeyFormat = "raw-public" | "raw-seed" | "jwk" | "spki" | "pkcs8";
7
+ export type ContextParams = {
8
+ context: BufferSource;
9
+ };
10
+ declare function _isSupportedCryptoKey(key: CryptoKey): boolean;
11
+ declare function generateKey(keyAlgorithm: MlDsaAlgorithm, extractable: boolean, usages: KeyUsage[]): Promise<CryptoKeyPair>;
12
+ declare function exportKey(format: "jwk", // JWK format returns a JsonWebKey
13
+ key: CryptoKey): Promise<JsonWebKey>;
14
+ declare function exportKey(format: Exclude<MlDsaKeyFormat, "jwk">, // other formats return an ArrayBuffer
15
+ key: CryptoKey): Promise<ArrayBuffer>;
16
+ declare function importKey(format: "jwk", keyData: JsonWebKey, algorithm: MlDsaAlgorithm, extractable: boolean, usages: KeyUsage[]): Promise<CryptoKey>;
17
+ declare function importKey(format: Exclude<MlDsaKeyFormat, "jwk">, keyData: BufferSource, algorithm: MlDsaAlgorithm, extractable: boolean, usages: KeyUsage[]): Promise<CryptoKey>;
18
+ declare function getPublicKey(key: CryptoKey, usages: KeyUsage[]): Promise<CryptoKey>;
19
+ declare function verify(algorithm: MlDsaAlgorithm, key: CryptoKey, signature: BufferSource, message: BufferSource): Promise<boolean>;
20
+ declare function sign(algorithm: MlDsaAlgorithm, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
21
+ declare const mldsa: {
22
+ generateKey: typeof generateKey;
23
+ exportKey: typeof exportKey;
24
+ importKey: typeof importKey;
25
+ getPublicKey: typeof getPublicKey;
26
+ sign: typeof sign;
27
+ verify: typeof verify;
28
+ _isSupportedCryptoKey: typeof _isSupportedCryptoKey;
29
+ };
30
+ export default mldsa;
@@ -0,0 +1,582 @@
1
+ 'use strict';
2
+ const a1_0x3837a7 = a1_0x2828;
3
+ function a1_0x2828(_0x202604, _0x407bee) {
4
+ _0x202604 = _0x202604 - 0x71;
5
+ const _0x11da48 = a1_0x11da();
6
+ let _0x28288e = _0x11da48[_0x202604];
7
+ if (a1_0x2828['eeivvJ'] === undefined) {
8
+ var _0x3549ca = function (_0x4e1c74) {
9
+ const _0x338827 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
10
+ let _0x398878 = '', _0x333425 = '';
11
+ for (let _0x1adc95 = 0x0, _0xcfda65, _0x31e739, _0x3a8d73 = 0x0; _0x31e739 = _0x4e1c74['charAt'](_0x3a8d73++); ~_0x31e739 && (_0xcfda65 = _0x1adc95 % 0x4 ? _0xcfda65 * 0x40 + _0x31e739 : _0x31e739, _0x1adc95++ % 0x4) ? _0x398878 += String['fromCharCode'](0xff & _0xcfda65 >> (-0x2 * _0x1adc95 & 0x6)) : 0x0) {
12
+ _0x31e739 = _0x338827['indexOf'](_0x31e739);
13
+ }
14
+ for (let _0x1abe9e = 0x0, _0x38287b = _0x398878['length']; _0x1abe9e < _0x38287b; _0x1abe9e++) {
15
+ _0x333425 += '%' + ('00' + _0x398878['charCodeAt'](_0x1abe9e)['toString'](0x10))['slice'](-0x2);
16
+ }
17
+ return decodeURIComponent(_0x333425);
18
+ };
19
+ a1_0x2828['elqyID'] = _0x3549ca, a1_0x2828['GtKMcN'] = {}, a1_0x2828['eeivvJ'] = !![];
20
+ }
21
+ const _0x1fcdfc = _0x11da48[0x0], _0xf1896c = _0x202604 + _0x1fcdfc, _0x404807 = a1_0x2828['GtKMcN'][_0xf1896c];
22
+ return !_0x404807 ? (_0x28288e = a1_0x2828['elqyID'](_0x28288e), a1_0x2828['GtKMcN'][_0xf1896c] = _0x28288e) : _0x28288e = _0x404807, _0x28288e;
23
+ }
24
+ (function (_0xa9a634, _0xde982b) {
25
+ const a1_0x426140 = {
26
+ _0x320a7: 0x81,
27
+ _0x1c9296: 0x89,
28
+ _0x41fe40: 0xb0,
29
+ _0x58c874: 0x75,
30
+ _0x2958aa: 0x9f
31
+ }, _0x6498d7 = a1_0x2828, _0xfe2757 = _0xa9a634();
32
+ while (!![]) {
33
+ try {
34
+ const _0x4ecbdb = parseInt(_0x6498d7(a1_0x426140._0x320a7)) / 0x1 * (-parseInt(_0x6498d7(0x87)) / 0x2) + -parseInt(_0x6498d7(a1_0x426140._0x1c9296)) / 0x3 * (parseInt(_0x6498d7(0x8b)) / 0x4) + -parseInt(_0x6498d7(0xba)) / 0x5 * (parseInt(_0x6498d7(a1_0x426140._0x41fe40)) / 0x6) + -parseInt(_0x6498d7(0xcc)) / 0x7 * (-parseInt(_0x6498d7(a1_0x426140._0x58c874)) / 0x8) + -parseInt(_0x6498d7(0xbb)) / 0x9 + parseInt(_0x6498d7(0xe4)) / 0xa + parseInt(_0x6498d7(a1_0x426140._0x2958aa)) / 0xb;
35
+ if (_0x4ecbdb === _0xde982b)
36
+ break;
37
+ else
38
+ _0xfe2757['push'](_0xfe2757['shift']());
39
+ } catch (_0x2bc358) {
40
+ _0xfe2757['push'](_0xfe2757['shift']());
41
+ }
42
+ }
43
+ }(a1_0x11da, 0xa3d41));
44
+ const a2_0x28c5b9 = a2_0x436d;
45
+ (function (_0x25b4e2, _0x518d41) {
46
+ const a1_0x13105d = {
47
+ _0xc7c7c6: 0xda,
48
+ _0x4c546a: 0xad,
49
+ _0x30fa9d: 0xaa,
50
+ _0x35cf58: 0xca,
51
+ _0x5dfecf: 0xd0,
52
+ _0x158323: 0xc1,
53
+ _0x1e704f: 0x88,
54
+ _0x2c01ae: 0x9e,
55
+ _0x15752e: 0xed,
56
+ _0x18bae7: 0x93,
57
+ _0x2f8c94: 0x96
58
+ }, _0x5722b2 = a1_0x2828, _0x14a21b = {
59
+ 'qRPOr': function (_0x43cdd7) {
60
+ return _0x43cdd7();
61
+ },
62
+ 'KOZQT': function (_0xda3410, _0xcb4f4) {
63
+ return _0xda3410 + _0xcb4f4;
64
+ },
65
+ 'uByJy': function (_0x455fd8, _0x2cabbe) {
66
+ return _0x455fd8 + _0x2cabbe;
67
+ },
68
+ 'IkpzE': function (_0x3591ff, _0x2832ed) {
69
+ return _0x3591ff / _0x2832ed;
70
+ },
71
+ 'Toeuo': function (_0x59fadb, _0xefe942) {
72
+ return _0x59fadb(_0xefe942);
73
+ },
74
+ 'NvUxr': function (_0x2748f1, _0xac6070) {
75
+ return _0x2748f1 / _0xac6070;
76
+ },
77
+ 'LrGTR': function (_0xc621d2, _0x5ea172) {
78
+ return _0xc621d2(_0x5ea172);
79
+ },
80
+ 'SBrgp': function (_0x52690d, _0x115ef1) {
81
+ return _0x52690d / _0x115ef1;
82
+ },
83
+ 'iNFrn': function (_0x203e88, _0x24d03a) {
84
+ return _0x203e88(_0x24d03a);
85
+ },
86
+ 'xeMSs': function (_0x5b5433, _0x17b5d8) {
87
+ return _0x5b5433(_0x17b5d8);
88
+ },
89
+ 'ftrfu': function (_0x3478d2, _0x3631fb) {
90
+ return _0x3478d2 / _0x3631fb;
91
+ },
92
+ 'DBMRK': function (_0x1f641e, _0x349778) {
93
+ return _0x1f641e(_0x349778);
94
+ },
95
+ 'eEvVt': function (_0x15b5f5, _0x13de60) {
96
+ return _0x15b5f5 * _0x13de60;
97
+ },
98
+ 'AakLu': function (_0x19c1dc, _0x145439) {
99
+ return _0x19c1dc(_0x145439);
100
+ },
101
+ 'LtMcY': function (_0x39a667, _0x318486) {
102
+ return _0x39a667(_0x318486);
103
+ },
104
+ 'XdcFs': function (_0x16021a, _0x2f17a1) {
105
+ return _0x16021a === _0x2f17a1;
106
+ },
107
+ 'Skwyw': _0x5722b2(a1_0x13105d._0xc7c7c6)
108
+ }, _0x5b9e6f = {
109
+ '_0x3edcb6': 0xea,
110
+ '_0x23e8a6': 0x10e,
111
+ '_0x348c88': 0x10a,
112
+ '_0x26ca47': 0xfe,
113
+ '_0x346d69': 0x113,
114
+ '_0x142a9f': 0x115,
115
+ '_0x55ef98': 0x111
116
+ }, _0x5e3007 = a2_0x436d, _0x54527d = _0x14a21b['qRPOr'](_0x25b4e2);
117
+ while (!![]) {
118
+ try {
119
+ const _0x4c2e5f = _0x14a21b[_0x5722b2(a1_0x13105d._0x4c546a)](_0x14a21b[_0x5722b2(a1_0x13105d._0x30fa9d)](_0x14a21b[_0x5722b2(0xae)](_0x14a21b['Toeuo'](parseInt, _0x14a21b[_0x5722b2(a1_0x13105d._0x35cf58)](_0x5e3007, 0x104)), 0x1) + -parseInt(_0x5e3007(_0x5b9e6f[_0x5722b2(a1_0x13105d._0x5dfecf)])) / 0x2 + _0x14a21b[_0x5722b2(0xcf)](_0x14a21b[_0x5722b2(a1_0x13105d._0x35cf58)](parseInt, _0x14a21b[_0x5722b2(0xb5)](_0x5e3007, _0x5b9e6f[_0x5722b2(0x80)])), 0x3), _0x14a21b[_0x5722b2(a1_0x13105d._0x158323)](parseInt(_0x14a21b[_0x5722b2(a1_0x13105d._0x1e704f)](_0x5e3007, _0x5b9e6f['_0x348c88'])), 0x4) * (-_0x14a21b[_0x5722b2(a1_0x13105d._0x2c01ae)](parseInt, _0x14a21b['Toeuo'](_0x5e3007, _0x5b9e6f[_0x5722b2(0xe0)])) / 0x5)) + _0x14a21b[_0x5722b2(0xe6)](_0x14a21b['DBMRK'](parseInt, _0x5e3007(0xf2)), 0x6) + _0x14a21b[_0x5722b2(0xb6)](_0x14a21b[_0x5722b2(0xed)](parseInt, _0x14a21b[_0x5722b2(a1_0x13105d._0x15752e)](_0x5e3007, 0x112)) / 0x7, -parseInt(_0x5e3007(_0x5b9e6f[_0x5722b2(0xef)])) / 0x8), -_0x14a21b[_0x5722b2(a1_0x13105d._0x35cf58)](parseInt, _0x5e3007(_0x5b9e6f[_0x5722b2(a1_0x13105d._0x18bae7)])) / 0x9 * (-parseInt(_0x14a21b[_0x5722b2(a1_0x13105d._0x2f8c94)](_0x5e3007, _0x5b9e6f[_0x5722b2(0x8c)])) / 0xa));
120
+ if (_0x14a21b['XdcFs'](_0x4c2e5f, _0x518d41))
121
+ break;
122
+ else
123
+ _0x54527d[_0x5722b2(0xe2)](_0x54527d[_0x5722b2(0xda)]());
124
+ } catch (_0x370556) {
125
+ _0x54527d[_0x5722b2(0xe2)](_0x54527d[_0x14a21b[_0x5722b2(0xc6)]]());
126
+ }
127
+ }
128
+ }(a2_0x161f, 0xc793d));
129
+ function a2_0x161f() {
130
+ const a1_0x270c3e = {
131
+ _0x22a1eb: 0xce,
132
+ _0x565ffb: 0xd4,
133
+ _0x1df843: 0xe8,
134
+ _0x36a269: 0xe5,
135
+ _0x5a8544: 0x82,
136
+ _0x307c3f: 0xe1,
137
+ _0x284bc4: 0xc3,
138
+ _0x352d88: 0xc5,
139
+ _0x1fae3f: 0xd1,
140
+ _0x21cffe: 0xb7,
141
+ _0x17c086: 0x9d,
142
+ _0x5a23aa: 0xf1,
143
+ _0x314916: 0xd6,
144
+ _0x5d4c14: 0x78,
145
+ _0x402000: 0x85,
146
+ _0x5d1124: 0xf0,
147
+ _0x179093: 0x83,
148
+ _0x6fdc8f: 0x99,
149
+ _0x34e3ef: 0xdc,
150
+ _0x394ef8: 0xe3
151
+ }, _0x40b99d = a1_0x2828, _0x20d836 = {
152
+ 'TvpUx': 'q29UDgfJDeLUzM8GBxvZDcbOyxzLig5HBwuSignOyw5UzwXZigfYCMf5lcbHBMqGDMfSAwqGC2vJDxjPDhLuAwvYlG',
153
+ 'WlpRk': _0x40b99d(a1_0x270c3e._0x22a1eb),
154
+ 'EXgkT': _0x40b99d(a1_0x270c3e._0x565ffb),
155
+ 'tSIwi': _0x40b99d(a1_0x270c3e._0x1df843),
156
+ 'GaNfs': _0x40b99d(0xb2),
157
+ 'nsfTq': 'uMvZDwX0ig1HCMTLzcbHCYbVAYbIDxqGDMfSDwuGAxmGBwLZC2LUzW',
158
+ 'FBCZp': _0x40b99d(a1_0x270c3e._0x36a269),
159
+ 'LfTWQ': _0x40b99d(a1_0x270c3e._0x5a8544),
160
+ 'mvIUe': 'AxntAgfYzwrfCNjVCG',
161
+ 'AnXxY': _0x40b99d(0xc8),
162
+ 'hPGIQ': _0x40b99d(a1_0x270c3e._0x307c3f),
163
+ 'CcINV': _0x40b99d(0xbf),
164
+ 'REbKg': _0x40b99d(0xd7),
165
+ 'AIotX': 'nte2mtq1mMruDMXODW',
166
+ 'bPVuZ': _0x40b99d(0xe7),
167
+ 'ZZyAg': 'u2HHCMvKuMvZDwX0rxjYB3i',
168
+ 'orGAe': _0x40b99d(0xbd)
169
+ }, _0x3fd0bf = [
170
+ _0x20d836[_0x40b99d(a1_0x270c3e._0x284bc4)],
171
+ _0x20d836['WlpRk'],
172
+ 'nJG4mZe2DxLYse56',
173
+ _0x40b99d(0x84),
174
+ _0x40b99d(a1_0x270c3e._0x352d88),
175
+ _0x20d836['EXgkT'],
176
+ _0x20d836[_0x40b99d(0x7f)],
177
+ _0x40b99d(0xa6),
178
+ _0x20d836['GaNfs'],
179
+ _0x20d836[_0x40b99d(a1_0x270c3e._0x1fae3f)],
180
+ _0x40b99d(a1_0x270c3e._0x21cffe),
181
+ _0x40b99d(a1_0x270c3e._0x17c086),
182
+ _0x40b99d(a1_0x270c3e._0x5a23aa),
183
+ 'q2HHBM5LBcbHzgrYzxnZigLZig1PC3nPBMCGCMvXDwLYzwqGzMLLBgrZ',
184
+ _0x40b99d(0xc9),
185
+ 'mZa1nteWtfDyrNvq',
186
+ _0x40b99d(0xcb),
187
+ _0x40b99d(a1_0x270c3e._0x314916),
188
+ _0x20d836['FBCZp'],
189
+ _0x20d836['LfTWQ'],
190
+ _0x20d836['mvIUe'],
191
+ _0x40b99d(a1_0x270c3e._0x5d4c14),
192
+ 'u2P1C24',
193
+ _0x20d836[_0x40b99d(0x7b)],
194
+ _0x40b99d(0x77),
195
+ _0x40b99d(0x7e),
196
+ _0x40b99d(0xd3),
197
+ _0x20d836['hPGIQ'],
198
+ _0x20d836['CcINV'],
199
+ _0x40b99d(0xbe),
200
+ _0x20d836['REbKg'],
201
+ _0x40b99d(0x71),
202
+ _0x20d836[_0x40b99d(a1_0x270c3e._0x402000)],
203
+ _0x40b99d(a1_0x270c3e._0x5d1124),
204
+ 'zgvMAw5LuhjVCgvYDhK',
205
+ _0x20d836[_0x40b99d(0xac)],
206
+ _0x40b99d(a1_0x270c3e._0x179093),
207
+ _0x40b99d(a1_0x270c3e._0x6fdc8f),
208
+ _0x20d836[_0x40b99d(a1_0x270c3e._0x34e3ef)],
209
+ _0x40b99d(0x7c),
210
+ 'u2HHCMvKvhLWzuvYCM9Y',
211
+ 'AM9PBG',
212
+ 'Ahr0Chm6lY9WCML2yxrLlM1Ll2rVy3mVCgfJA2fNzxmVC2HHCMvK',
213
+ 'q29UDgfJDcbPBMzVigLZig1PC3nPBMCGCMvXDwLYzwqGzMLLBgrZ',
214
+ _0x40b99d(0x9c),
215
+ 'u2vJDxjPDhKGDgLLCIbTDxn0igjLigjSDwuGkdiGywrKCMvZC2vZksbVCIbNCMvLBIaOmYSGywrKCMvZC2vZks4GvxnLig51BgWGzM9YihjLz3vSyxiGzw1HAwWU',
216
+ 'rvjst1jFtuvtu0fhrvm',
217
+ _0x20d836[_0x40b99d(a1_0x270c3e._0x394ef8)]
218
+ ];
219
+ return a2_0x161f = function () {
220
+ return _0x3fd0bf;
221
+ }, a2_0x161f();
222
+ }
223
+ function a1_0x11da() {
224
+ const _0x3e9620 = [
225
+ 'AuPlsuq',
226
+ 'swDxBuq',
227
+ 'ELrJwu0',
228
+ 'xZb4ndLHnwq3',
229
+ 'rw1HAwWGChjVDMLKzxiGBxvZDcbIzsbVBMuGB2y6igDTywLSlcbVDxrSB29Rlcb5ywHVBY4Gq2HLy2SGDgHLifbYB3zPzgvYihr5CguGzgvMAw5PDgLVBI4',
230
+ 'ywjJzgvMz2HPAMTSBw5VChfYC3r1DND4ExPbqKneruzhseLks0XntK9quvjtvfvwv1HzwJaXmJm0nty3odKRlZ0',
231
+ 'xZb4mtqYytLM',
232
+ 'vxnLAhq',
233
+ 'uurHqxi',
234
+ 'thrny1K',
235
+ 'yMP5Aw4',
236
+ 'rhH6whC',
237
+ 'DtjisennDKT2z1GYCNHQwuiZAq',
238
+ 'Auryue4',
239
+ 'ENLju2G',
240
+ 'BLPPmw90ztf6Eg5SDwuXmq',
241
+ 'AtnYnunNDLO',
242
+ 'Egvnu3m',
243
+ 'mtC4mZyYotfLAwPNzuK',
244
+ 'sw52ywXPzcbTzxnZywDLihr5CguGkg11C3qGyMuGCMvNDwXHCIbVCIbZzwn1CMuP',
245
+ 'zNjVBunOyxjdB2rL',
246
+ 'Bujss0u',
247
+ 'BwvZC2fNzq',
248
+ 'v29Xz3K',
249
+ 'u2HHCMvKvgX2rxjYB3i',
250
+ 'DNu1tNqZtW',
251
+ 'xZb4mJq0owrH',
252
+ 'vMrWzMC',
253
+ 'sw52ywXPzcbZzwn1CML0Esb0AwvYicHTDxn0igjLigjSDwuGB3iGz3jLzw4P',
254
+ 'Duj5sNK',
255
+ 'wu9wqNK',
256
+ 'yLbwDvO',
257
+ 's09Auvq',
258
+ 'swTWEKu',
259
+ 'vhngBvm',
260
+ 'otqZmta0qMvdC01w',
261
+ 'y2HHCKnVzgvbDa',
262
+ 'Bxr6vKj4yK51zZa',
263
+ 'q29UDgvUDcb0ExbLig11C3qGyMuGDgv4Dc9WBgfPBIbVCIb0zxH0l2H0BwWGzM9Yig1LC3nHz2uGyM9KAwvZlG',
264
+ 'q254CgG',
265
+ 'thjhvfi',
266
+ 'zuv2vNq',
267
+ 'AtnQtemZDLneyZfxExHYmhP4ALu',
268
+ 'BgvUz3rO',
269
+ 'qxr0ywnOBwvUDcbTDxn0igHHDMuGzMLSzw5HBwuSig1PBwvuExbLlcbHBMqGzgf0ysaOvwLUDdHbCNjHEsKU',
270
+ 'ndbNCMnSswm',
271
+ 'nJG2mtK4n3nluLrgrG',
272
+ 'veXwihr5CguGy29KzsbPCYbUB3qGCMvJB2DUAxPLzc4Gq2HLy2SGveXwx1rzueuGy29UC3rHBNqGzM9YihzHBgLKihzHBhvLCY4',
273
+ 'DhD2wKmYzK56C2iWrxHItgLNmtfdm3fhEu11r0nnDK5eD1Hiq0LHt0r3nvP6D24Xq012s2TZyLzdswjAENDUmunnDuDRAg5xqMDmmgX3BK95DZvvENDxugXh',
274
+ 'Du12wKr3wdbPzZfiq01uthPJyKHdwwjnExDmu3P3CuD5tNyWAwD2wunnovLPz0XAAwCXuemZBLbctum',
275
+ 'C3C1mNL3wfb6y2j1Dgz5r0rOtfD6C2jkqJjYta',
276
+ 'xZb4mtm3mdK2',
277
+ 'u0jYz3a',
278
+ 'xZb4mwm4zwe2',
279
+ 'vhzWvxG',
280
+ 'sw52ywXPzcbJB250zw50ihr5CguGkg11C3qGyMuGDgv4Dc9WBgfPBIbVCIb0zxH0l2H0BwWP',
281
+ 'DtjisennDKTYEgPzqJnP',
282
+ 'u2T3ExC',
283
+ 'DgTgywK',
284
+ 'CxHYmhL3BK9cD3zvrgnIuenzyLrbEg5AqxC1tMLOAKXdEhzqq012s2LNELb6D1Hlq1C',
285
+ 'C3u1D3f1wgPYzJLZCNzUDNrMCq',
286
+ 'vg9LDw8',
287
+ 'BvP5m210sZjVEerTqKSXzhnh',
288
+ 'mJy0nZaYouzhCLv1qq',
289
+ 'u2HHCMvKvhLWzuvYCM9Y',
290
+ 'AtnYu0rh',
291
+ 'tNzvEhi',
292
+ 'xZb4m2vKy2i2',
293
+ 'BNnMvhe',
294
+ 'D1zQDw0',
295
+ 'rgC5DefNzLL6D3jMq05QvKnh',
296
+ 'Du12wKr3wdbPzZLjqu12sKrJyLreEg4WAwDisernDuD6EeHiEtnYu0vZyLzctxvhqJj5nMLOvfzbwK9hrgHQmxPZv0DetwztrhD1nMLMCJLPzZLzAwHuvKfAt0D6twztqZj1u2LNDLLdttLzB0LIzKzZna',
297
+ 'CLP0EKe',
298
+ 'BuPYtxnMugL0zu8',
299
+ 'Du12wKr3wdbSttLsAwDmwMLOCLLeD3vhEu52mgLMAKXdm3ztrgm1mNL3wdf6C2jqq1LImujnCKX6tuXvENDXvwLMDLP6C2jwqvLimNL3wdf6C0ThEti5vumZCLLeD24WqJnPvq',
300
+ 'xZb4ndvLnwi5',
301
+ 'BhLuDNu',
302
+ 'C2HPzNq',
303
+ 'suP1Avi',
304
+ 'wLP5qwC',
305
+ 'zMLhAxDn',
306
+ 'Cg9AuKe',
307
+ 'q2HHBM5LBefKzhjLC3mGBxvZDcbOyxzLigjVDgGGChjVDMLKzxiGyw5KigvTywLSigzPzwXKCY4',
308
+ 'xZb4mJzJytq3',
309
+ 'qZjyuhKYDq',
310
+ 'ChvZAa',
311
+ 'B3jhqwu',
312
+ 'ndm3nZiWmer2B1r0qG',
313
+ 'C3C1mNL3wfb6y2jmqNDMuejJyLDdttKYqxDYtenjyu9cEhzArgnIsxPZyK5cD2zqqMnxr0iZDJbczZLwqvLxr0iZAuDfD2zpqJi4ua',
314
+ 'zNrYzNu',
315
+ 'Eti5s3PX',
316
+ 'C2zYsuv3ma',
317
+ 'r0z6BhzT',
318
+ 'y3rgtM4',
319
+ 't1PHu0Lo',
320
+ 'tvnTD3K',
321
+ 'qwfRthu',
322
+ 'xZb4ndaZm2jI',
323
+ 'xZb4mZq2zdy5',
324
+ 'CNzQC3qXAKzYzxz1CxvmBxvx',
325
+ 'BMrTng9KqZfUm1aWD00XDerh',
326
+ 'qK1MvhPX',
327
+ 'wxvIueq',
328
+ 'BfLptge',
329
+ 'tMjlDgK',
330
+ 'mJrWy29ir2u',
331
+ 'B2Pyy1C',
332
+ 'BvPPmw5kCtfUAgP4qNviDujh',
333
+ 'EKXmwxvNqW',
334
+ 'xZb4ntLIzMzM',
335
+ 'u2HHCMvKrxjYB3i',
336
+ 'qw5yEfK',
337
+ 'qZnIu0f4Cq',
338
+ 'u2HHCMvKuMvZDwX0rxjYB3i',
339
+ 'EMC5sNz4ALm',
340
+ 'DfnjD2K',
341
+ 'xZb4mJnLoge2',
342
+ 'm0virxjhuG',
343
+ 'BMr5nenoEMP5mNzS',
344
+ 'qZn2sxeYouT6Cq',
345
+ 'Ede5temWmvz6AhztENe',
346
+ 'quLVDfG',
347
+ 'r2XNDwS',
348
+ 'mte5mtC4z2zIsu5g',
349
+ 'Au5gCM4',
350
+ 'mZiZote5Bw9pvMrr',
351
+ 'xZb4m2y2odfI',
352
+ 'mtjosxbuDwe',
353
+ 'xZb4ntvLzJK4'
354
+ ];
355
+ a1_0x11da = function () {
356
+ return _0x3e9620;
357
+ };
358
+ return a1_0x11da();
359
+ }
360
+ Object[a2_0x28c5b9(0xf4)](exports, a2_0x28c5b9(0x105), { 'value': !![] }), exports[a2_0x28c5b9(0xf3)] = exports[a2_0x28c5b9(0x100)] = exports[a2_0x28c5b9(0xf7)] = exports[a2_0x28c5b9(0xf8)] = exports[a1_0x3837a7(0xcd)] = exports[a2_0x28c5b9(0x106)] = void 0x0, exports[a2_0x28c5b9(0xec)] = toSharedError, exports[a2_0x28c5b9(0x116)] = isSharedError;
361
+ const DOC_BASE = a2_0x28c5b9(0xfc);
362
+ class SharedError extends Error {
363
+ [a2_0x28c5b9(0xf5)];
364
+ [a2_0x28c5b9(0xf6)];
365
+ [a2_0x28c5b9(0xeb)];
366
+ constructor(_0x3e38eb, _0x1abe23, _0x32a854) {
367
+ const a1_0x5d7b78 = {
368
+ _0x519a05: 0xb8,
369
+ _0x267e5a: 0xc7,
370
+ _0x5666eb: 0xa7,
371
+ _0x5090d2: 0xd5,
372
+ _0x2e48eb: 0xee
373
+ }, a1_0x5db6d2 = { _0x45493b: 0x95 }, _0x4bb70e = a1_0x2828, _0x5b0fc0 = {
374
+ 'QDaAr': function (_0x556418, _0x4a98f4) {
375
+ return _0x556418 > _0x4a98f4;
376
+ },
377
+ 'Glguk': function (_0x19d4c7, _0x234a72) {
378
+ return _0x19d4c7(_0x234a72);
379
+ },
380
+ 'ojXcW': function (_0x3c0f7a, _0x4cecdc) {
381
+ return _0x3c0f7a(_0x4cecdc);
382
+ },
383
+ 'tkFai': function (_0x22b41a, _0x58f9d2) {
384
+ return _0x22b41a(_0x58f9d2);
385
+ },
386
+ 'rZtzA': _0x4bb70e(a1_0x5d7b78._0x519a05),
387
+ 'lYOLa': function (_0x549f5f, _0x40d2e4) {
388
+ return _0x549f5f(_0x40d2e4);
389
+ }
390
+ }, _0x7c0e26 = {
391
+ '_0x3f681b': 0xf1,
392
+ '_0x2449da': 0xf6,
393
+ '_0x45e5b9': 0xe7,
394
+ '_0x4033bb': 0xfb,
395
+ '_0x49a5d7': 0xeb
396
+ }, _0x2df34c = a2_0x436d, _0xd43bb5 = {
397
+ 'fYrPg': function (_0x573e86, _0x3c62f8) {
398
+ const _0x1e307b = a1_0x2828;
399
+ return _0x5b0fc0[_0x1e307b(a1_0x5db6d2._0x45493b)](_0x573e86, _0x3c62f8);
400
+ }
401
+ };
402
+ super(_0x1abe23), this[_0x5b0fc0[_0x4bb70e(0x86)](_0x2df34c, _0x7c0e26[_0x4bb70e(0x8a)])] = _0x5b0fc0['Glguk'](_0x2df34c, 0x106);
403
+ const _0x1d015c = _0x3e38eb[_0x5b0fc0['ojXcW'](_0x2df34c, 0xf9)](':');
404
+ this[_0x5b0fc0[_0x4bb70e(a1_0x5d7b78._0x267e5a)](_0x2df34c, 0xf5)] = _0x1d015c[0x0] ?? _0x3e38eb, this[_0x5b0fc0[_0x4bb70e(0x76)](_0x2df34c, _0x7c0e26[_0x4bb70e(a1_0x5d7b78._0x5666eb)])] = _0xd43bb5[_0x2df34c(_0x7c0e26[_0x4bb70e(0xd8)])](_0x1d015c[_0x5b0fc0[_0x4bb70e(a1_0x5d7b78._0x5090d2)]], 0x1) ? _0x1d015c[_0x5b0fc0[_0x4bb70e(0xc7)](_0x2df34c, 0xed)](0x1)[_0x5b0fc0[_0x4bb70e(0x73)](_0x2df34c, _0x7c0e26[_0x4bb70e(a1_0x5d7b78._0x2e48eb)])](':') : undefined, this[_0x2df34c(_0x7c0e26[_0x4bb70e(0x90)])] = _0x32a854;
405
+ }
406
+ }
407
+ exports[a1_0x3837a7(0x7a)] = SharedError;
408
+ class SharedTypeError extends SharedError {
409
+ constructor(_0xfe9971, _0x499fae) {
410
+ const _0x313587 = a1_0x2828, _0x45b7c7 = {
411
+ 'YOVBy': function (_0x417918, _0x8b77c5) {
412
+ return _0x417918 + _0x8b77c5;
413
+ }
414
+ }, _0xe1eeab = a2_0x436d;
415
+ super(_0xfe9971, _0x499fae, _0x45b7c7[_0x313587(0xab)](DOC_BASE, _0xe1eeab(0x10d))), this[_0xe1eeab(0xf1)] = _0xe1eeab(0xfa);
416
+ }
417
+ }
418
+ exports[a2_0x28c5b9(0xfa)] = SharedTypeError;
419
+ class SharedResultError extends SharedError {
420
+ constructor(_0x4f42b2, _0x2ae495) {
421
+ const a1_0x5f4348 = { _0x3e07ca: 0xb4 }, _0x488542 = a1_0x2828, _0x26bf1f = {
422
+ 'wVjum': function (_0x5bd8c2, _0x56b653) {
423
+ return _0x5bd8c2 + _0x56b653;
424
+ },
425
+ 'Cnxph': function (_0x7fae35, _0xc979b8) {
426
+ return _0x7fae35(_0xc979b8);
427
+ }
428
+ }, _0x57ec04 = { '_0x1c8ea6': 0x10c }, _0x1e0f5d = a2_0x436d, _0x1b1498 = { 'Sjusn': _0x1e0f5d(0xf8) };
429
+ super(_0x4f42b2, _0x2ae495, _0x26bf1f[_0x488542(0xd2)](DOC_BASE, _0x26bf1f[_0x488542(a1_0x5f4348._0x3e07ca)](_0x1e0f5d, _0x57ec04[_0x488542(0xc2)]))), this[_0x26bf1f['Cnxph'](_0x1e0f5d, 0xf1)] = _0x1b1498[_0x26bf1f[_0x488542(0xb4)](_0x1e0f5d, 0xe8)];
430
+ }
431
+ }
432
+ exports[a1_0x3837a7(0x7d)] = SharedResultError;
433
+ class SharedTlvError extends SharedError {
434
+ constructor(_0x5252ad, _0xaf0e0d) {
435
+ const a1_0x6479a1 = { _0x1d1882: 0xa5 }, _0x2d242b = a1_0x2828, _0x40adf8 = {
436
+ 'iJKID': function (_0x249fae, _0xfe4247) {
437
+ return _0x249fae + _0xfe4247;
438
+ },
439
+ 'Useht': function (_0x4fb251, _0x3aba16) {
440
+ return _0x4fb251(_0x3aba16);
441
+ },
442
+ 'UrPTC': _0x2d242b(a1_0x6479a1._0x1d1882)
443
+ }, _0x4ef49e = { '_0x408611': 0x103 }, _0x5a5c1f = a2_0x436d;
444
+ super(_0x5252ad, _0xaf0e0d, _0x40adf8[_0x2d242b(0x8d)](DOC_BASE, _0x5a5c1f(_0x4ef49e['_0x408611']))), this[_0x40adf8[_0x2d242b(0x94)](_0x5a5c1f, 0xf1)] = _0x40adf8['UrPTC'];
445
+ }
446
+ }
447
+ exports[a2_0x28c5b9(0xf7)] = SharedTlvError, exports[a2_0x28c5b9(0x100)] = {
448
+ 'INVALID_PROVIDER': a2_0x28c5b9(0x114),
449
+ 'INVALID_SECURITY_TIER': a1_0x3837a7(0xa9),
450
+ 'INVALID_CONTENT_TYPE': a1_0x3837a7(0xc4),
451
+ 'INVALID_MESSAGE_TYPE': a1_0x3837a7(0xa0),
452
+ 'INVALID_TLV_TYPE': a2_0x28c5b9(0xee),
453
+ 'INVALID_RESULT': 'Result\x20object\x20is\x20malformed',
454
+ 'MISSING_VALUE': a2_0x28c5b9(0x10b),
455
+ 'MISSING_ERROR': a2_0x28c5b9(0xef),
456
+ 'INVALID_CHANNEL_ADDRESS': a2_0x28c5b9(0x10f),
457
+ 'INVALID_CONTACT_INFO': a2_0x28c5b9(0xfd),
458
+ 'INVALID_ATTACHMENT': a2_0x28c5b9(0xe9)
459
+ }, exports[a2_0x28c5b9(0xf3)] = {
460
+ 'INVALID_PROVIDER': a1_0x3837a7(0x91),
461
+ 'INVALID_SECURITY_TIER': a2_0x28c5b9(0xff),
462
+ 'INVALID_CONTENT_TYPE': a1_0x3837a7(0xb3),
463
+ 'INVALID_MESSAGE_TYPE': a2_0x28c5b9(0x101),
464
+ 'INVALID_TLV_TYPE': a1_0x3837a7(0xbc),
465
+ 'INVALID_RESULT': a2_0x28c5b9(0x107),
466
+ 'MISSING_VALUE': a2_0x28c5b9(0xf0),
467
+ 'MISSING_ERROR': 'Result.ok\x20is\x20false\x20but\x20Result.error\x20is\x20undefined.\x20Use\x20err(error)\x20constructor.',
468
+ 'INVALID_CHANNEL_ADDRESS': a1_0x3837a7(0xdf),
469
+ 'INVALID_CONTACT_INFO': a2_0x28c5b9(0x102),
470
+ 'INVALID_ATTACHMENT': a1_0x3837a7(0xb9)
471
+ };
472
+ function a2_0x436d(_0x4ea80f, _0x348737) {
473
+ const a1_0x4b4f91 = {
474
+ _0x19c09b: 0xdd,
475
+ _0xdf3182: 0xe9,
476
+ _0x5dc087: 0x72,
477
+ _0x12f6cc: 0xdd,
478
+ _0xc52f58: 0xeb,
479
+ _0x49aab1: 0xde,
480
+ _0x5a176e: 0xa4,
481
+ _0x88c97f: 0x8f
482
+ }, a1_0x40d0bd = {
483
+ _0x5bf4c6: 0x97,
484
+ _0x1f30b5: 0x98,
485
+ _0x19ebd7: 0xde,
486
+ _0x4f478a: 0xaf,
487
+ _0x22c6a9: 0x74,
488
+ _0x590fd5: 0xb1,
489
+ _0x3b3030: 0x8e
490
+ }, _0x5db01f = a1_0x2828, _0x692552 = {
491
+ 'bjyin': _0x5db01f(0x92),
492
+ 'DxzXw': 'charAt',
493
+ 'ctFNn': function (_0x448b03, _0x237c59) {
494
+ return _0x448b03 % _0x237c59;
495
+ },
496
+ 'poZRA': function (_0x251549, _0x1b04f7) {
497
+ return _0x251549 + _0x1b04f7;
498
+ },
499
+ 'iDXPN': function (_0x5a904a, _0x22f922) {
500
+ return _0x5a904a * _0x22f922;
501
+ },
502
+ 'TsFmS': function (_0x1826a2, _0x294a79) {
503
+ return _0x1826a2 % _0x294a79;
504
+ },
505
+ 'NbKti': _0x5db01f(0xa1),
506
+ 'lyTvu': function (_0x57bf7d, _0x5a8bda) {
507
+ return _0x57bf7d >> _0x5a8bda;
508
+ },
509
+ 'gwCeS': function (_0x20a481, _0x6c8ed5) {
510
+ return _0x20a481 & _0x6c8ed5;
511
+ },
512
+ 'AbZma': 'indexOf',
513
+ 'IgWmD': 'slice',
514
+ 'MSmwy': function (_0x382e38) {
515
+ return _0x382e38();
516
+ },
517
+ 'YubPD': function (_0xa31a8a, _0x2cfe8b) {
518
+ return _0xa31a8a === _0x2cfe8b;
519
+ },
520
+ 'Woqgy': _0x5db01f(a1_0x4b4f91._0x19c09b),
521
+ 'zTcYM': _0x5db01f(a1_0x4b4f91._0xdf3182)
522
+ };
523
+ _0x4ea80f = _0x4ea80f - 0xe7;
524
+ const _0xaac10f = _0x692552[_0x5db01f(0xec)](a2_0x161f);
525
+ let _0x481736 = _0xaac10f[_0x4ea80f];
526
+ if (_0x692552[_0x5db01f(a1_0x4b4f91._0x5dc087)](a2_0x436d['OZaSIN'], undefined)) {
527
+ var _0x248f14 = function (_0x391390) {
528
+ const _0x473f25 = a1_0x2828, _0x14e1c6 = _0x692552[_0x473f25(a1_0x40d0bd._0x5bf4c6)];
529
+ let _0x446d16 = '', _0x5d6400 = '';
530
+ for (let _0x5cb62c = 0x0, _0x42e5ff, _0x6d0f19, _0x3790f4 = 0x0; _0x6d0f19 = _0x391390[_0x692552[_0x473f25(a1_0x40d0bd._0x1f30b5)]](_0x3790f4++); ~_0x6d0f19 && (_0x42e5ff = _0x692552[_0x473f25(0xea)](_0x5cb62c, 0x4) ? _0x692552[_0x473f25(a1_0x40d0bd._0x19ebd7)](_0x692552['iDXPN'](_0x42e5ff, 0x40), _0x6d0f19) : _0x6d0f19, _0x692552[_0x473f25(a1_0x40d0bd._0x4f478a)](_0x5cb62c++, 0x4)) ? _0x446d16 += String[_0x692552[_0x473f25(a1_0x40d0bd._0x22c6a9)]](0xff & _0x692552[_0x473f25(0xd9)](_0x42e5ff, _0x692552['gwCeS'](_0x692552[_0x473f25(0x9a)](-0x2, _0x5cb62c), 0x6))) : 0x0) {
531
+ _0x6d0f19 = _0x14e1c6[_0x692552['AbZma']](_0x6d0f19);
532
+ }
533
+ for (let _0x338839 = 0x0, _0x237f0e = _0x446d16[_0x473f25(0xb8)]; _0x338839 < _0x237f0e; _0x338839++) {
534
+ _0x5d6400 += '%' + ('00' + _0x446d16[_0x473f25(a1_0x40d0bd._0x590fd5)](_0x338839)['toString'](0x10))[_0x692552[_0x473f25(a1_0x40d0bd._0x3b3030)]](-0x2);
535
+ }
536
+ return decodeURIComponent(_0x5d6400);
537
+ };
538
+ a2_0x436d[_0x5db01f(a1_0x4b4f91._0x12f6cc)] = _0x248f14, a2_0x436d['GFzlvm'] = {}, a2_0x436d[_0x5db01f(a1_0x4b4f91._0xc52f58)] = !![];
539
+ }
540
+ const _0x362f9d = _0xaac10f[0x0], _0x3aabeb = _0x692552[_0x5db01f(a1_0x4b4f91._0x49aab1)](_0x4ea80f, _0x362f9d), _0x36858a = a2_0x436d[_0x5db01f(0xe9)][_0x3aabeb];
541
+ return !_0x36858a ? (_0x481736 = a2_0x436d[_0x692552[_0x5db01f(a1_0x4b4f91._0x5a176e)]](_0x481736), a2_0x436d[_0x692552[_0x5db01f(a1_0x4b4f91._0x88c97f)]][_0x3aabeb] = _0x481736) : _0x481736 = _0x36858a, _0x481736;
542
+ }
543
+ function toSharedError(_0x10c3c0) {
544
+ const a1_0x1cc699 = {
545
+ _0x615f66: 0xa3,
546
+ _0x25e734: 0xc0
547
+ }, _0xf4f47b = a1_0x2828, _0x4b0957 = {
548
+ 'IJuiR': function (_0x5ce30b, _0xdb89b2) {
549
+ return _0x5ce30b(_0xdb89b2);
550
+ },
551
+ 'mBRKE': function (_0x5dc291, _0x1b5583) {
552
+ return _0x5dc291(_0x1b5583);
553
+ },
554
+ 'Vdpfg': _0xf4f47b(a1_0x1cc699._0x615f66)
555
+ }, _0x3a5c0e = {
556
+ '_0x137096': 0x109,
557
+ '_0x5bc2fc': 0x110,
558
+ '_0x59bfff': 0x110,
559
+ '_0x565e9e': 0x108
560
+ }, _0x22d470 = a2_0x436d, _0x503907 = {
561
+ 'UNgOz': function (_0x5a6acb, _0x10d69b) {
562
+ return _0x5a6acb instanceof _0x10d69b;
563
+ },
564
+ 'HTbym': function (_0x8c840e, _0x30a9be) {
565
+ const _0x521e00 = a1_0x2828;
566
+ return _0x4b0957[_0x521e00(0xdb)](_0x8c840e, _0x30a9be);
567
+ }
568
+ };
569
+ if (_0x503907[_0x4b0957[_0xf4f47b(0xa2)](_0x22d470, _0x3a5c0e[_0xf4f47b(a1_0x1cc699._0x25e734)])](_0x10c3c0, SharedError))
570
+ return _0x10c3c0;
571
+ if (_0x10c3c0 instanceof Error)
572
+ return new SharedError(_0x4b0957['IJuiR'](_0x22d470, _0x3a5c0e['_0x5bc2fc']), _0x10c3c0[_0x4b0957[_0xf4f47b(0xa8)]]);
573
+ return new SharedError(_0x22d470(_0x3a5c0e[_0xf4f47b(0x79)]), _0x503907[_0x22d470(_0x3a5c0e['_0x565e9e'])](String, _0x10c3c0));
574
+ }
575
+ function isSharedError(_0x36f715) {
576
+ const _0x5a702f = a1_0x2828, _0x568ed0 = {
577
+ 'zyISh': function (_0x1033b7, _0x40a101) {
578
+ return _0x1033b7 instanceof _0x40a101;
579
+ }
580
+ };
581
+ return _0x568ed0[_0x5a702f(0x9b)](_0x36f715, SharedError);
582
+ }