@coinbase/cdp-core 0.0.121 → 0.0.123

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 (641) hide show
  1. package/dist/esm/index.web.js +110 -100
  2. package/dist/esm/index.web10.js +68 -67
  3. package/dist/esm/index.web100.js +86 -41
  4. package/dist/esm/index.web101.js +31 -13
  5. package/dist/esm/index.web102.js +25 -24
  6. package/dist/esm/index.web103.js +45 -15
  7. package/dist/esm/index.web104.js +3 -25
  8. package/dist/esm/index.web105.js +42 -20
  9. package/dist/esm/index.web106.js +13 -16
  10. package/dist/esm/index.web107.js +23 -28
  11. package/dist/esm/index.web108.js +14 -40
  12. package/dist/esm/index.web109.js +24 -48
  13. package/dist/esm/index.web11.js +1 -1
  14. package/dist/esm/index.web110.js +21 -81
  15. package/dist/esm/index.web111.js +15 -24
  16. package/dist/esm/index.web112.js +28 -158
  17. package/dist/esm/index.web113.js +39 -46
  18. package/dist/esm/index.web114.js +49 -28
  19. package/dist/esm/index.web115.js +77 -68
  20. package/dist/esm/index.web116.js +25 -8
  21. package/dist/esm/index.web117.js +156 -114
  22. package/dist/esm/index.web118.js +30 -119
  23. package/dist/esm/index.web119.js +24 -65
  24. package/dist/esm/index.web12.js +1 -1
  25. package/dist/esm/index.web120.js +72 -26
  26. package/dist/esm/index.web121.js +11 -33
  27. package/dist/esm/index.web122.js +9 -24
  28. package/dist/esm/index.web123.js +100 -47
  29. package/dist/esm/index.web124.js +137 -24
  30. package/dist/esm/index.web125.js +69 -51
  31. package/dist/esm/index.web126.js +26 -20
  32. package/dist/esm/index.web127.js +32 -152
  33. package/dist/esm/index.web128.js +24 -17
  34. package/dist/esm/index.web129.js +63 -21
  35. package/dist/esm/index.web13.js +3 -3
  36. package/dist/esm/index.web130.js +24 -51
  37. package/dist/esm/index.web131.js +48 -374
  38. package/dist/esm/index.web132.js +21 -29
  39. package/dist/esm/index.web133.js +152 -28
  40. package/dist/esm/index.web134.js +19 -2
  41. package/dist/esm/index.web135.js +20 -63
  42. package/dist/esm/index.web136.js +37 -351
  43. package/dist/esm/index.web137.js +369 -937
  44. package/dist/esm/index.web138.js +29 -2
  45. package/dist/esm/index.web139.js +28 -49
  46. package/dist/esm/index.web140.js +2 -29
  47. package/dist/esm/index.web141.js +63 -52
  48. package/dist/esm/index.web142.js +364 -10
  49. package/dist/esm/index.web143.js +945 -2
  50. package/dist/esm/index.web144.js +2 -45
  51. package/dist/esm/index.web145.js +49 -13
  52. package/dist/esm/index.web146.js +26 -12
  53. package/dist/esm/index.web147.js +54 -11
  54. package/dist/esm/index.web148.js +10 -4
  55. package/dist/esm/index.web149.js +2 -5
  56. package/dist/esm/index.web15.js +1 -1
  57. package/dist/esm/index.web150.js +44 -47
  58. package/dist/esm/index.web151.js +13 -14
  59. package/dist/esm/index.web152.js +10 -26
  60. package/dist/esm/index.web153.js +11 -7
  61. package/dist/esm/index.web154.js +5 -4
  62. package/dist/esm/index.web155.js +43 -24
  63. package/dist/esm/index.web156.js +14 -8
  64. package/dist/esm/index.web157.js +28 -7
  65. package/dist/esm/index.web158.js +7 -80
  66. package/dist/esm/index.web159.js +3 -28
  67. package/dist/esm/index.web16.js +1 -1
  68. package/dist/esm/index.web160.js +28 -3
  69. package/dist/esm/index.web161.js +8 -15
  70. package/dist/esm/index.web162.js +7 -4
  71. package/dist/esm/index.web163.js +74 -8
  72. package/dist/esm/index.web164.js +21 -12
  73. package/dist/esm/index.web165.js +3 -61
  74. package/dist/esm/index.web166.js +14 -16
  75. package/dist/esm/index.web167.js +4 -23
  76. package/dist/esm/index.web168.js +14 -8
  77. package/dist/esm/index.web169.js +15 -38
  78. package/dist/esm/index.web17.js +1 -1
  79. package/dist/esm/index.web170.js +61 -7
  80. package/dist/esm/index.web171.js +17 -20
  81. package/dist/esm/index.web172.js +23 -13
  82. package/dist/esm/index.web173.js +8 -55
  83. package/dist/esm/index.web174.js +42 -6
  84. package/dist/esm/index.web175.js +7 -21
  85. package/dist/esm/index.web176.js +19 -16
  86. package/dist/esm/index.web177.js +4 -45
  87. package/dist/esm/index.web178.js +2 -4
  88. package/dist/esm/index.web179.js +2 -4
  89. package/dist/esm/index.web18.js +2 -2
  90. package/dist/esm/index.web180.js +13 -34
  91. package/dist/esm/index.web181.js +53 -10
  92. package/dist/esm/index.web182.js +6 -4
  93. package/dist/esm/index.web183.js +21 -28
  94. package/dist/esm/index.web184.js +17 -6
  95. package/dist/esm/index.web185.js +42 -29
  96. package/dist/esm/index.web186.js +3 -12
  97. package/dist/esm/index.web187.js +3 -55
  98. package/dist/esm/index.web188.js +32 -40
  99. package/dist/esm/index.web189.js +11 -126
  100. package/dist/esm/index.web19.js +2 -2
  101. package/dist/esm/index.web190.js +4 -104
  102. package/dist/esm/index.web191.js +28 -6
  103. package/dist/esm/index.web192.js +7 -3
  104. package/dist/esm/index.web193.js +30 -76
  105. package/dist/esm/index.web194.js +13 -2
  106. package/dist/esm/index.web195.js +56 -2
  107. package/dist/esm/index.web196.js +39 -34
  108. package/dist/esm/index.web197.js +126 -5
  109. package/dist/esm/index.web198.js +101 -31
  110. package/dist/esm/index.web199.js +6 -14
  111. package/dist/esm/index.web2.js +2 -2
  112. package/dist/esm/index.web20.js +7 -7
  113. package/dist/esm/index.web200.js +3 -35
  114. package/dist/esm/index.web201.js +77 -17
  115. package/dist/esm/index.web202.js +2 -9
  116. package/dist/esm/index.web203.js +2 -11
  117. package/dist/esm/index.web204.js +37 -11
  118. package/dist/esm/index.web205.js +6 -13
  119. package/dist/esm/index.web206.js +34 -5
  120. package/dist/esm/index.web207.js +15 -5
  121. package/dist/esm/index.web208.js +34 -10
  122. package/dist/esm/index.web209.js +19 -2
  123. package/dist/esm/index.web21.js +1 -1
  124. package/dist/esm/index.web210.js +9 -2
  125. package/dist/esm/index.web211.js +9 -19
  126. package/dist/esm/index.web212.js +12 -10
  127. package/dist/esm/index.web213.js +14 -20
  128. package/dist/esm/index.web214.js +6 -94
  129. package/dist/esm/index.web215.js +4 -20
  130. package/dist/esm/index.web216.js +11 -118
  131. package/dist/esm/index.web217.js +19 -102
  132. package/dist/esm/index.web218.js +10 -79
  133. package/dist/esm/index.web219.js +20 -79
  134. package/dist/esm/index.web220.js +94 -2
  135. package/dist/esm/index.web221.js +21 -109
  136. package/dist/esm/index.web222.js +118 -2
  137. package/dist/esm/index.web223.js +103 -7
  138. package/dist/esm/index.web224.js +79 -2
  139. package/dist/esm/index.web225.js +78 -360
  140. package/dist/esm/index.web226.js +105 -849
  141. package/dist/esm/index.web227.js +2 -39
  142. package/dist/esm/index.web228.js +2 -2
  143. package/dist/esm/index.web229.js +36 -67
  144. package/dist/esm/index.web230.js +2 -35
  145. package/dist/esm/index.web231.js +69 -14
  146. package/dist/esm/index.web232.js +34 -46
  147. package/dist/esm/index.web233.js +12 -18
  148. package/dist/esm/index.web234.js +8 -2
  149. package/dist/esm/index.web235.js +2 -20
  150. package/dist/esm/index.web236.js +356 -28
  151. package/dist/esm/index.web237.js +852 -6
  152. package/dist/esm/index.web238.js +45 -16
  153. package/dist/esm/index.web239.js +20 -27
  154. package/dist/esm/index.web240.js +2 -8
  155. package/dist/esm/index.web241.js +19 -10
  156. package/dist/esm/index.web242.js +32 -12
  157. package/dist/esm/index.web243.js +6 -9
  158. package/dist/esm/index.web244.js +2 -15
  159. package/dist/esm/index.web245.js +17 -80
  160. package/dist/esm/index.web246.js +28 -2
  161. package/dist/esm/index.web247.js +8 -2
  162. package/dist/esm/index.web248.js +11 -2
  163. package/dist/esm/index.web249.js +12 -3
  164. package/dist/esm/index.web250.js +10 -5
  165. package/dist/esm/index.web251.js +16 -14
  166. package/dist/esm/index.web252.js +72 -70
  167. package/dist/esm/index.web253.js +4 -0
  168. package/dist/esm/index.web254.js +4 -0
  169. package/dist/esm/index.web255.js +4 -0
  170. package/dist/esm/index.web256.js +7 -0
  171. package/dist/esm/index.web257.js +81 -0
  172. package/dist/esm/index.web258.js +17 -0
  173. package/dist/esm/index.web28.js +5 -5
  174. package/dist/esm/index.web29.js +6 -6
  175. package/dist/esm/index.web3.js +1 -1
  176. package/dist/esm/index.web30.js +5 -5
  177. package/dist/esm/index.web31.js +5 -5
  178. package/dist/esm/index.web32.js +5 -5
  179. package/dist/esm/index.web33.js +5 -5
  180. package/dist/esm/index.web34.js +6 -6
  181. package/dist/esm/index.web35.js +5 -5
  182. package/dist/esm/index.web36.js +5 -5
  183. package/dist/esm/index.web37.js +1 -1
  184. package/dist/esm/index.web38.js +5 -5
  185. package/dist/esm/index.web39.js +5 -5
  186. package/dist/esm/index.web4.js +1 -1
  187. package/dist/esm/index.web40.js +6 -6
  188. package/dist/esm/index.web41.js +1 -1
  189. package/dist/esm/index.web42.js +5 -5
  190. package/dist/esm/index.web43.js +5 -5
  191. package/dist/esm/index.web45.js +2 -2
  192. package/dist/esm/index.web46.js +1 -1
  193. package/dist/esm/index.web49.js +4 -4
  194. package/dist/esm/index.web50.js +1 -1
  195. package/dist/esm/index.web52.js +3 -3
  196. package/dist/esm/index.web53.js +3 -3
  197. package/dist/esm/index.web54.js +2 -2
  198. package/dist/esm/index.web55.js +1 -1
  199. package/dist/esm/index.web57.js +3 -3
  200. package/dist/esm/index.web58.js +1 -1
  201. package/dist/esm/index.web59.js +2 -2
  202. package/dist/esm/index.web6.js +1 -1
  203. package/dist/esm/index.web60.js +4 -4
  204. package/dist/esm/index.web61.js +2 -2
  205. package/dist/esm/index.web62.js +3 -3
  206. package/dist/esm/index.web63.js +3 -3
  207. package/dist/esm/index.web64.js +3 -3
  208. package/dist/esm/index.web65.js +5 -5
  209. package/dist/esm/index.web66.js +5 -5
  210. package/dist/esm/index.web67.js +5 -5
  211. package/dist/esm/index.web68.js +5 -5
  212. package/dist/esm/index.web70.js +3 -3
  213. package/dist/esm/index.web71.js +9 -9
  214. package/dist/esm/index.web75.js +2 -2
  215. package/dist/esm/index.web76.js +3 -3
  216. package/dist/esm/index.web77.js +12 -12
  217. package/dist/esm/index.web78.js +1 -1
  218. package/dist/esm/index.web79.js +1 -1
  219. package/dist/esm/index.web80.js +1 -1
  220. package/dist/esm/index.web81.js +55 -19
  221. package/dist/esm/index.web82.js +62 -47
  222. package/dist/esm/index.web83.js +6 -40
  223. package/dist/esm/index.web84.js +17 -17
  224. package/dist/esm/index.web85.js +18 -349
  225. package/dist/esm/index.web86.js +47 -17
  226. package/dist/esm/index.web87.js +35 -127
  227. package/dist/esm/index.web88.js +18 -87
  228. package/dist/esm/index.web89.js +351 -6
  229. package/dist/esm/index.web9.js +1 -1
  230. package/dist/esm/index.web90.js +17 -54
  231. package/dist/esm/index.web91.js +125 -155
  232. package/dist/esm/index.web92.js +82 -61
  233. package/dist/esm/index.web93.js +7 -36
  234. package/dist/esm/index.web94.js +49 -99
  235. package/dist/esm/index.web95.js +156 -36
  236. package/dist/esm/index.web96.js +65 -29
  237. package/dist/esm/index.web97.js +36 -26
  238. package/dist/esm/index.web98.js +106 -45
  239. package/dist/esm/index.web99.js +43 -3
  240. package/dist/native/index.native101.js +1 -1
  241. package/dist/native/index.native11.js +1 -1
  242. package/dist/native/index.native113.js +2 -2
  243. package/dist/native/index.native118.js +6 -6
  244. package/dist/native/index.native12.js +62 -61
  245. package/dist/native/index.native129.js +12 -12
  246. package/dist/native/index.native130.js +2 -2
  247. package/dist/native/index.native132.js +1 -1
  248. package/dist/native/index.native133.js +1 -1
  249. package/dist/native/index.native135.js +12 -12
  250. package/dist/native/index.native136.js +12 -12
  251. package/dist/native/index.native137.js +1 -1
  252. package/dist/native/index.native139.js +4 -4
  253. package/dist/native/index.native140.js +11 -943
  254. package/dist/native/index.native141.js +12 -2
  255. package/dist/native/index.native142.js +4 -49
  256. package/dist/native/index.native143.js +944 -26
  257. package/dist/native/index.native144.js +2 -5
  258. package/dist/native/index.native145.js +45 -43
  259. package/dist/native/index.native146.js +27 -36
  260. package/dist/native/index.native147.js +5 -68
  261. package/dist/native/index.native148.js +47 -4
  262. package/dist/native/index.native149.js +36 -13
  263. package/dist/native/index.native150.js +67 -11
  264. package/dist/native/index.native151.js +13 -54
  265. package/dist/native/index.native152.js +27 -10
  266. package/dist/native/index.native153.js +8 -2
  267. package/dist/native/index.native154.js +4 -45
  268. package/dist/native/index.native155.js +27 -13
  269. package/dist/native/index.native156.js +9 -2
  270. package/dist/native/index.native157.js +8 -2
  271. package/dist/native/index.native158.js +72 -6
  272. package/dist/native/index.native159.js +10 -10
  273. package/dist/native/index.native160.js +3 -7
  274. package/dist/native/index.native161.js +14 -3
  275. package/dist/native/index.native162.js +4 -27
  276. package/dist/native/index.native163.js +13 -8
  277. package/dist/native/index.native164.js +19 -7
  278. package/dist/native/index.native165.js +48 -67
  279. package/dist/native/index.native166.js +16 -26
  280. package/dist/native/index.native167.js +23 -3
  281. package/dist/native/index.native168.js +8 -14
  282. package/dist/native/index.native169.js +41 -4
  283. package/dist/native/index.native170.js +7 -13
  284. package/dist/native/index.native171.js +11 -10
  285. package/dist/native/index.native172.js +52 -58
  286. package/dist/native/index.native173.js +10 -17
  287. package/dist/native/index.native174.js +2 -24
  288. package/dist/native/index.native175.js +45 -9
  289. package/dist/native/index.native176.js +13 -41
  290. package/dist/native/index.native177.js +13 -7
  291. package/dist/native/index.native178.js +54 -19
  292. package/dist/native/index.native179.js +6 -13
  293. package/dist/native/index.native180.js +20 -54
  294. package/dist/native/index.native181.js +17 -6
  295. package/dist/native/index.native182.js +44 -20
  296. package/dist/native/index.native183.js +3 -17
  297. package/dist/native/index.native184.js +3 -45
  298. package/dist/native/index.native185.js +34 -3
  299. package/dist/native/index.native186.js +12 -3
  300. package/dist/native/index.native187.js +4 -34
  301. package/dist/native/index.native188.js +27 -11
  302. package/dist/native/index.native189.js +6 -4
  303. package/dist/native/index.native190.js +29 -25
  304. package/dist/native/index.native191.js +12 -6
  305. package/dist/native/index.native192.js +54 -31
  306. package/dist/native/index.native193.js +41 -11
  307. package/dist/native/index.native194.js +126 -54
  308. package/dist/native/index.native195.js +100 -38
  309. package/dist/native/index.native196.js +6 -127
  310. package/dist/native/index.native197.js +3 -105
  311. package/dist/native/index.native198.js +78 -6
  312. package/dist/native/index.native199.js +2 -3
  313. package/dist/native/index.native2.js +2 -2
  314. package/dist/native/index.native200.js +2 -79
  315. package/dist/native/index.native201.js +38 -2
  316. package/dist/native/index.native202.js +7 -2
  317. package/dist/native/index.native203.js +29 -32
  318. package/dist/native/index.native204.js +14 -6
  319. package/dist/native/index.native205.js +30 -30
  320. package/dist/native/index.native206.js +18 -14
  321. package/dist/native/index.native207.js +8 -34
  322. package/dist/native/index.native208.js +9 -17
  323. package/dist/native/index.native209.js +11 -8
  324. package/dist/native/index.native210.js +13 -10
  325. package/dist/native/index.native211.js +5 -11
  326. package/dist/native/index.native212.js +5 -14
  327. package/dist/native/index.native213.js +10 -5
  328. package/dist/native/index.native214.js +2 -5
  329. package/dist/native/index.native215.js +2 -11
  330. package/dist/native/index.native216.js +104 -2
  331. package/dist/native/index.native217.js +77 -107
  332. package/dist/native/index.native218.js +79 -2
  333. package/dist/native/index.native219.js +2 -39
  334. package/dist/native/index.native220.js +109 -2
  335. package/dist/native/index.native221.js +2 -70
  336. package/dist/native/index.native222.js +7 -34
  337. package/dist/native/index.native223.js +2 -15
  338. package/dist/native/index.native224.js +360 -7
  339. package/dist/native/index.native225.js +853 -2
  340. package/dist/native/index.native226.js +35 -357
  341. package/dist/native/index.native227.js +2 -853
  342. package/dist/native/index.native228.js +69 -103
  343. package/dist/native/index.native229.js +32 -76
  344. package/dist/native/index.native230.js +14 -78
  345. package/dist/native/index.native231.js +1 -1
  346. package/dist/native/index.native237.js +40 -14
  347. package/dist/native/index.native238.js +21 -2
  348. package/dist/native/index.native239.js +2 -20
  349. package/dist/native/index.native240.js +18 -31
  350. package/dist/native/index.native241.js +32 -6
  351. package/dist/native/index.native242.js +6 -46
  352. package/dist/native/index.native243.js +2 -4
  353. package/dist/native/index.native244.js +2 -2
  354. package/dist/native/index.native245.js +2 -2
  355. package/dist/native/index.native246.js +4 -2
  356. package/dist/native/index.native253.js +1 -1
  357. package/dist/native/index.native256.js +1 -1
  358. package/dist/native/index.native3.js +1 -1
  359. package/dist/native/index.native79.js +12 -12
  360. package/dist/native/index.native84.js +12 -9
  361. package/dist/native/index.native87.js +46 -48
  362. package/dist/native/index.native90.js +4 -2
  363. package/dist/native-types/actions/deletePasskey.d.ts +21 -0
  364. package/dist/native-types/actions/enrollPasskey.d.ts +44 -0
  365. package/dist/native-types/actions/listPasskeys.d.ts +16 -0
  366. package/dist/native-types/actions/verifyPasskey.d.ts +30 -0
  367. package/dist/native-types/auth/authManager.d.ts +6 -2
  368. package/dist/native-types/auth/createAuthManager.d.ts +5 -1
  369. package/dist/native-types/errors.d.ts +10 -2
  370. package/dist/native-types/index.web.d.ts +5 -0
  371. package/dist/native-types/mfa/utils.d.ts +3 -3
  372. package/dist/native-types/shared/base64url.d.ts +21 -0
  373. package/dist/native-types/shared/webauthn.d.ts +121 -0
  374. package/dist/native-types/types.d.ts +4 -2
  375. package/dist/native-types/version.d.ts +1 -1
  376. package/dist/types/actions/deletePasskey.d.ts +21 -0
  377. package/dist/types/actions/enrollPasskey.d.ts +44 -0
  378. package/dist/types/actions/listPasskeys.d.ts +16 -0
  379. package/dist/types/actions/verifyPasskey.d.ts +30 -0
  380. package/dist/types/auth/authManager.d.ts +6 -2
  381. package/dist/types/auth/createAuthManager.d.ts +5 -1
  382. package/dist/types/errors.d.ts +10 -2
  383. package/dist/types/index.web.d.ts +5 -0
  384. package/dist/types/mfa/utils.d.ts +3 -3
  385. package/dist/types/shared/base64url.d.ts +21 -0
  386. package/dist/types/shared/webauthn.d.ts +121 -0
  387. package/dist/types/types.d.ts +4 -2
  388. package/dist/types/version.d.ts +1 -1
  389. package/dist/web/index.web.js +110 -100
  390. package/dist/web/index.web10.js +68 -67
  391. package/dist/web/index.web100.js +86 -41
  392. package/dist/web/index.web101.js +31 -13
  393. package/dist/web/index.web102.js +25 -24
  394. package/dist/web/index.web103.js +45 -15
  395. package/dist/web/index.web104.js +3 -25
  396. package/dist/web/index.web105.js +42 -20
  397. package/dist/web/index.web106.js +13 -16
  398. package/dist/web/index.web107.js +23 -28
  399. package/dist/web/index.web108.js +14 -40
  400. package/dist/web/index.web109.js +24 -48
  401. package/dist/web/index.web11.js +1 -1
  402. package/dist/web/index.web110.js +21 -81
  403. package/dist/web/index.web111.js +15 -24
  404. package/dist/web/index.web112.js +28 -158
  405. package/dist/web/index.web113.js +39 -46
  406. package/dist/web/index.web114.js +49 -28
  407. package/dist/web/index.web115.js +77 -68
  408. package/dist/web/index.web116.js +25 -8
  409. package/dist/web/index.web117.js +156 -114
  410. package/dist/web/index.web118.js +30 -119
  411. package/dist/web/index.web119.js +24 -65
  412. package/dist/web/index.web12.js +1 -1
  413. package/dist/web/index.web120.js +72 -26
  414. package/dist/web/index.web121.js +11 -33
  415. package/dist/web/index.web122.js +9 -24
  416. package/dist/web/index.web123.js +100 -47
  417. package/dist/web/index.web124.js +137 -24
  418. package/dist/web/index.web125.js +69 -51
  419. package/dist/web/index.web126.js +26 -20
  420. package/dist/web/index.web127.js +32 -152
  421. package/dist/web/index.web128.js +24 -17
  422. package/dist/web/index.web129.js +63 -21
  423. package/dist/web/index.web13.js +3 -3
  424. package/dist/web/index.web130.js +24 -51
  425. package/dist/web/index.web131.js +48 -374
  426. package/dist/web/index.web132.js +21 -29
  427. package/dist/web/index.web133.js +152 -28
  428. package/dist/web/index.web134.js +19 -2
  429. package/dist/web/index.web135.js +20 -63
  430. package/dist/web/index.web136.js +37 -351
  431. package/dist/web/index.web137.js +369 -937
  432. package/dist/web/index.web138.js +29 -2
  433. package/dist/web/index.web139.js +28 -49
  434. package/dist/web/index.web140.js +2 -29
  435. package/dist/web/index.web141.js +63 -52
  436. package/dist/web/index.web142.js +364 -10
  437. package/dist/web/index.web143.js +945 -2
  438. package/dist/web/index.web144.js +2 -45
  439. package/dist/web/index.web145.js +49 -13
  440. package/dist/web/index.web146.js +26 -12
  441. package/dist/web/index.web147.js +54 -11
  442. package/dist/web/index.web148.js +10 -4
  443. package/dist/web/index.web149.js +2 -5
  444. package/dist/web/index.web15.js +1 -1
  445. package/dist/web/index.web150.js +44 -47
  446. package/dist/web/index.web151.js +13 -14
  447. package/dist/web/index.web152.js +10 -26
  448. package/dist/web/index.web153.js +11 -7
  449. package/dist/web/index.web154.js +5 -4
  450. package/dist/web/index.web155.js +43 -24
  451. package/dist/web/index.web156.js +14 -8
  452. package/dist/web/index.web157.js +28 -7
  453. package/dist/web/index.web158.js +7 -80
  454. package/dist/web/index.web159.js +3 -28
  455. package/dist/web/index.web16.js +1 -1
  456. package/dist/web/index.web160.js +28 -3
  457. package/dist/web/index.web161.js +8 -15
  458. package/dist/web/index.web162.js +7 -4
  459. package/dist/web/index.web163.js +74 -8
  460. package/dist/web/index.web164.js +21 -12
  461. package/dist/web/index.web165.js +3 -61
  462. package/dist/web/index.web166.js +14 -16
  463. package/dist/web/index.web167.js +4 -23
  464. package/dist/web/index.web168.js +14 -8
  465. package/dist/web/index.web169.js +15 -38
  466. package/dist/web/index.web17.js +1 -1
  467. package/dist/web/index.web170.js +61 -7
  468. package/dist/web/index.web171.js +17 -20
  469. package/dist/web/index.web172.js +23 -13
  470. package/dist/web/index.web173.js +8 -55
  471. package/dist/web/index.web174.js +42 -6
  472. package/dist/web/index.web175.js +7 -21
  473. package/dist/web/index.web176.js +19 -16
  474. package/dist/web/index.web177.js +4 -45
  475. package/dist/web/index.web178.js +2 -4
  476. package/dist/web/index.web179.js +2 -4
  477. package/dist/web/index.web18.js +2 -2
  478. package/dist/web/index.web180.js +13 -34
  479. package/dist/web/index.web181.js +53 -10
  480. package/dist/web/index.web182.js +6 -4
  481. package/dist/web/index.web183.js +21 -28
  482. package/dist/web/index.web184.js +17 -6
  483. package/dist/web/index.web185.js +42 -29
  484. package/dist/web/index.web186.js +3 -12
  485. package/dist/web/index.web187.js +3 -55
  486. package/dist/web/index.web188.js +32 -40
  487. package/dist/web/index.web189.js +11 -126
  488. package/dist/web/index.web19.js +2 -2
  489. package/dist/web/index.web190.js +4 -104
  490. package/dist/web/index.web191.js +28 -6
  491. package/dist/web/index.web192.js +7 -3
  492. package/dist/web/index.web193.js +30 -76
  493. package/dist/web/index.web194.js +13 -2
  494. package/dist/web/index.web195.js +56 -2
  495. package/dist/web/index.web196.js +39 -34
  496. package/dist/web/index.web197.js +126 -5
  497. package/dist/web/index.web198.js +101 -31
  498. package/dist/web/index.web199.js +6 -14
  499. package/dist/web/index.web2.js +2 -2
  500. package/dist/web/index.web20.js +7 -7
  501. package/dist/web/index.web200.js +3 -35
  502. package/dist/web/index.web201.js +77 -17
  503. package/dist/web/index.web202.js +2 -9
  504. package/dist/web/index.web203.js +2 -11
  505. package/dist/web/index.web204.js +37 -11
  506. package/dist/web/index.web205.js +6 -13
  507. package/dist/web/index.web206.js +34 -5
  508. package/dist/web/index.web207.js +15 -5
  509. package/dist/web/index.web208.js +34 -10
  510. package/dist/web/index.web209.js +19 -2
  511. package/dist/web/index.web21.js +1 -1
  512. package/dist/web/index.web210.js +9 -2
  513. package/dist/web/index.web211.js +9 -19
  514. package/dist/web/index.web212.js +12 -10
  515. package/dist/web/index.web213.js +14 -20
  516. package/dist/web/index.web214.js +6 -94
  517. package/dist/web/index.web215.js +4 -20
  518. package/dist/web/index.web216.js +11 -118
  519. package/dist/web/index.web217.js +19 -102
  520. package/dist/web/index.web218.js +10 -79
  521. package/dist/web/index.web219.js +20 -79
  522. package/dist/web/index.web220.js +94 -2
  523. package/dist/web/index.web221.js +21 -109
  524. package/dist/web/index.web222.js +118 -2
  525. package/dist/web/index.web223.js +103 -7
  526. package/dist/web/index.web224.js +79 -2
  527. package/dist/web/index.web225.js +78 -360
  528. package/dist/web/index.web226.js +105 -849
  529. package/dist/web/index.web227.js +2 -39
  530. package/dist/web/index.web228.js +2 -2
  531. package/dist/web/index.web229.js +36 -67
  532. package/dist/web/index.web230.js +2 -35
  533. package/dist/web/index.web231.js +69 -14
  534. package/dist/web/index.web232.js +34 -46
  535. package/dist/web/index.web233.js +12 -18
  536. package/dist/web/index.web234.js +8 -2
  537. package/dist/web/index.web235.js +2 -20
  538. package/dist/web/index.web236.js +356 -28
  539. package/dist/web/index.web237.js +852 -6
  540. package/dist/web/index.web238.js +45 -16
  541. package/dist/web/index.web239.js +20 -27
  542. package/dist/web/index.web240.js +2 -8
  543. package/dist/web/index.web241.js +19 -10
  544. package/dist/web/index.web242.js +32 -12
  545. package/dist/web/index.web243.js +6 -9
  546. package/dist/web/index.web244.js +2 -15
  547. package/dist/web/index.web245.js +17 -80
  548. package/dist/web/index.web246.js +28 -2
  549. package/dist/web/index.web247.js +8 -2
  550. package/dist/web/index.web248.js +11 -2
  551. package/dist/web/index.web249.js +12 -3
  552. package/dist/web/index.web250.js +10 -5
  553. package/dist/web/index.web251.js +16 -14
  554. package/dist/web/index.web252.js +72 -70
  555. package/dist/web/index.web253.js +4 -0
  556. package/dist/web/index.web254.js +4 -0
  557. package/dist/web/index.web255.js +4 -0
  558. package/dist/web/index.web256.js +7 -0
  559. package/dist/web/index.web257.js +81 -0
  560. package/dist/web/index.web258.js +17 -0
  561. package/dist/web/index.web28.js +5 -5
  562. package/dist/web/index.web29.js +6 -6
  563. package/dist/web/index.web3.js +1 -1
  564. package/dist/web/index.web30.js +5 -5
  565. package/dist/web/index.web31.js +5 -5
  566. package/dist/web/index.web32.js +5 -5
  567. package/dist/web/index.web33.js +5 -5
  568. package/dist/web/index.web34.js +6 -6
  569. package/dist/web/index.web35.js +5 -5
  570. package/dist/web/index.web36.js +5 -5
  571. package/dist/web/index.web37.js +1 -1
  572. package/dist/web/index.web38.js +5 -5
  573. package/dist/web/index.web39.js +5 -5
  574. package/dist/web/index.web4.js +1 -1
  575. package/dist/web/index.web40.js +6 -6
  576. package/dist/web/index.web41.js +1 -1
  577. package/dist/web/index.web42.js +5 -5
  578. package/dist/web/index.web43.js +5 -5
  579. package/dist/web/index.web45.js +2 -2
  580. package/dist/web/index.web46.js +1 -1
  581. package/dist/web/index.web49.js +4 -4
  582. package/dist/web/index.web50.js +1 -1
  583. package/dist/web/index.web52.js +3 -3
  584. package/dist/web/index.web53.js +3 -3
  585. package/dist/web/index.web54.js +2 -2
  586. package/dist/web/index.web55.js +1 -1
  587. package/dist/web/index.web57.js +3 -3
  588. package/dist/web/index.web58.js +1 -1
  589. package/dist/web/index.web59.js +2 -2
  590. package/dist/web/index.web6.js +1 -1
  591. package/dist/web/index.web60.js +4 -4
  592. package/dist/web/index.web61.js +2 -2
  593. package/dist/web/index.web62.js +3 -3
  594. package/dist/web/index.web63.js +3 -3
  595. package/dist/web/index.web64.js +3 -3
  596. package/dist/web/index.web65.js +5 -5
  597. package/dist/web/index.web66.js +5 -5
  598. package/dist/web/index.web67.js +5 -5
  599. package/dist/web/index.web68.js +5 -5
  600. package/dist/web/index.web70.js +3 -3
  601. package/dist/web/index.web71.js +9 -9
  602. package/dist/web/index.web75.js +2 -2
  603. package/dist/web/index.web76.js +3 -3
  604. package/dist/web/index.web77.js +12 -12
  605. package/dist/web/index.web78.js +1 -1
  606. package/dist/web/index.web79.js +1 -1
  607. package/dist/web/index.web80.js +1 -1
  608. package/dist/web/index.web81.js +55 -19
  609. package/dist/web/index.web82.js +62 -47
  610. package/dist/web/index.web83.js +6 -40
  611. package/dist/web/index.web84.js +17 -17
  612. package/dist/web/index.web85.js +18 -349
  613. package/dist/web/index.web86.js +47 -17
  614. package/dist/web/index.web87.js +35 -127
  615. package/dist/web/index.web88.js +18 -87
  616. package/dist/web/index.web89.js +351 -6
  617. package/dist/web/index.web9.js +1 -1
  618. package/dist/web/index.web90.js +17 -54
  619. package/dist/web/index.web91.js +125 -155
  620. package/dist/web/index.web92.js +82 -61
  621. package/dist/web/index.web93.js +7 -36
  622. package/dist/web/index.web94.js +49 -99
  623. package/dist/web/index.web95.js +156 -36
  624. package/dist/web/index.web96.js +65 -29
  625. package/dist/web/index.web97.js +36 -26
  626. package/dist/web/index.web98.js +106 -45
  627. package/dist/web/index.web99.js +43 -3
  628. package/dist/web-types/actions/deletePasskey.d.ts +21 -0
  629. package/dist/web-types/actions/enrollPasskey.d.ts +44 -0
  630. package/dist/web-types/actions/listPasskeys.d.ts +16 -0
  631. package/dist/web-types/actions/verifyPasskey.d.ts +30 -0
  632. package/dist/web-types/auth/authManager.d.ts +6 -2
  633. package/dist/web-types/auth/createAuthManager.d.ts +5 -1
  634. package/dist/web-types/errors.d.ts +10 -2
  635. package/dist/web-types/index.web.d.ts +5 -0
  636. package/dist/web-types/mfa/utils.d.ts +3 -3
  637. package/dist/web-types/shared/base64url.d.ts +21 -0
  638. package/dist/web-types/shared/webauthn.d.ts +121 -0
  639. package/dist/web-types/types.d.ts +4 -2
  640. package/dist/web-types/version.d.ts +1 -1
  641. package/package.json +3 -3
@@ -1,947 +1,379 @@
1
- import { __exports as N } from "./index.web138.js";
2
- import { __require as Fr } from "./index.web139.js";
3
- import { __require as Ur } from "./index.web140.js";
4
- var Z;
5
- function Sr() {
6
- return Z ? N : (Z = 1, (function(d) {
7
- const R = Fr(), m = Ur(), k = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
8
- d.Buffer = u, d.SlowBuffer = nr, d.INSPECT_MAX_BYTES = 50;
9
- const U = 2147483647;
10
- d.kMaxLength = U, u.TYPED_ARRAY_SUPPORT = Q(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
11
- "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
12
- );
13
- function Q() {
14
- try {
15
- const i = new Uint8Array(1), r = { foo: function() {
16
- return 42;
17
- } };
18
- return Object.setPrototypeOf(r, Uint8Array.prototype), Object.setPrototypeOf(i, r), i.foo() === 42;
19
- } catch {
20
- return !1;
21
- }
22
- }
23
- Object.defineProperty(u.prototype, "parent", {
1
+ import "./index.web140.js";
2
+ import { BaseError as P } from "./index.web141.js";
3
+ import { parse as y, parseError as j, InternalError as g } from "./index.web142.js";
4
+ class u extends Error {
5
+ constructor(e, t) {
6
+ super(t), Object.defineProperty(this, "name", {
24
7
  enumerable: !0,
25
- get: function() {
26
- if (u.isBuffer(this))
27
- return this.buffer;
28
- }
29
- }), Object.defineProperty(u.prototype, "offset", {
8
+ configurable: !0,
9
+ writable: !0,
10
+ value: "ProviderRpcError"
11
+ }), Object.defineProperty(this, "code", {
30
12
  enumerable: !0,
31
- get: function() {
32
- if (u.isBuffer(this))
33
- return this.byteOffset;
34
- }
13
+ configurable: !0,
14
+ writable: !0,
15
+ value: void 0
16
+ }), Object.defineProperty(this, "details", {
17
+ enumerable: !0,
18
+ configurable: !0,
19
+ writable: !0,
20
+ value: void 0
21
+ }), this.code = e, this.details = t;
22
+ }
23
+ }
24
+ class n extends u {
25
+ constructor({ message: e = "The user rejected the request." } = {}) {
26
+ super(4001, e), Object.defineProperty(this, "code", {
27
+ enumerable: !0,
28
+ configurable: !0,
29
+ writable: !0,
30
+ value: 4001
31
+ }), Object.defineProperty(this, "name", {
32
+ enumerable: !0,
33
+ configurable: !0,
34
+ writable: !0,
35
+ value: "Provider.UserRejectedRequestError"
35
36
  });
36
- function B(i) {
37
- if (i > U)
38
- throw new RangeError('The value "' + i + '" is invalid for option "size"');
39
- const r = new Uint8Array(i);
40
- return Object.setPrototypeOf(r, u.prototype), r;
41
- }
42
- function u(i, r, t) {
43
- if (typeof i == "number") {
44
- if (typeof r == "string")
45
- throw new TypeError(
46
- 'The "string" argument must be of type string. Received type number'
47
- );
48
- return T(i);
49
- }
50
- return P(i, r, t);
51
- }
52
- u.poolSize = 8192;
53
- function P(i, r, t) {
54
- if (typeof i == "string")
55
- return rr(i, r);
56
- if (ArrayBuffer.isView(i))
57
- return tr(i);
58
- if (i == null)
59
- throw new TypeError(
60
- "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
61
- );
62
- if (w(i, ArrayBuffer) || i && w(i.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (w(i, SharedArrayBuffer) || i && w(i.buffer, SharedArrayBuffer)))
63
- return S(i, r, t);
64
- if (typeof i == "number")
65
- throw new TypeError(
66
- 'The "value" argument must not be of type number. Received type number'
67
- );
68
- const n = i.valueOf && i.valueOf();
69
- if (n != null && n !== i)
70
- return u.from(n, r, t);
71
- const e = ir(i);
72
- if (e) return e;
73
- if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
74
- return u.from(i[Symbol.toPrimitive]("string"), r, t);
75
- throw new TypeError(
76
- "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
77
- );
78
- }
79
- u.from = function(i, r, t) {
80
- return P(i, r, t);
81
- }, Object.setPrototypeOf(u.prototype, Uint8Array.prototype), Object.setPrototypeOf(u, Uint8Array);
82
- function $(i) {
83
- if (typeof i != "number")
84
- throw new TypeError('"size" argument must be of type number');
85
- if (i < 0)
86
- throw new RangeError('The value "' + i + '" is invalid for option "size"');
87
- }
88
- function v(i, r, t) {
89
- return $(i), i <= 0 ? B(i) : r !== void 0 ? typeof t == "string" ? B(i).fill(r, t) : B(i).fill(r) : B(i);
90
- }
91
- u.alloc = function(i, r, t) {
92
- return v(i, r, t);
93
- };
94
- function T(i) {
95
- return $(i), B(i < 0 ? 0 : C(i) | 0);
96
- }
97
- u.allocUnsafe = function(i) {
98
- return T(i);
99
- }, u.allocUnsafeSlow = function(i) {
100
- return T(i);
101
- };
102
- function rr(i, r) {
103
- if ((typeof r != "string" || r === "") && (r = "utf8"), !u.isEncoding(r))
104
- throw new TypeError("Unknown encoding: " + r);
105
- const t = M(i, r) | 0;
106
- let n = B(t);
107
- const e = n.write(i, r);
108
- return e !== t && (n = n.slice(0, e)), n;
109
- }
110
- function _(i) {
111
- const r = i.length < 0 ? 0 : C(i.length) | 0, t = B(r);
112
- for (let n = 0; n < r; n += 1)
113
- t[n] = i[n] & 255;
114
- return t;
115
- }
116
- function tr(i) {
117
- if (w(i, Uint8Array)) {
118
- const r = new Uint8Array(i);
119
- return S(r.buffer, r.byteOffset, r.byteLength);
120
- }
121
- return _(i);
122
- }
123
- function S(i, r, t) {
124
- if (r < 0 || i.byteLength < r)
125
- throw new RangeError('"offset" is outside of buffer bounds');
126
- if (i.byteLength < r + (t || 0))
127
- throw new RangeError('"length" is outside of buffer bounds');
128
- let n;
129
- return r === void 0 && t === void 0 ? n = new Uint8Array(i) : t === void 0 ? n = new Uint8Array(i, r) : n = new Uint8Array(i, r, t), Object.setPrototypeOf(n, u.prototype), n;
130
- }
131
- function ir(i) {
132
- if (u.isBuffer(i)) {
133
- const r = C(i.length) | 0, t = B(r);
134
- return t.length === 0 || i.copy(t, 0, 0, r), t;
135
- }
136
- if (i.length !== void 0)
137
- return typeof i.length != "number" || D(i.length) ? B(0) : _(i);
138
- if (i.type === "Buffer" && Array.isArray(i.data))
139
- return _(i.data);
140
- }
141
- function C(i) {
142
- if (i >= U)
143
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + U.toString(16) + " bytes");
144
- return i | 0;
145
- }
146
- function nr(i) {
147
- return +i != i && (i = 0), u.alloc(+i);
148
- }
149
- u.isBuffer = function(r) {
150
- return r != null && r._isBuffer === !0 && r !== u.prototype;
151
- }, u.compare = function(r, t) {
152
- if (w(r, Uint8Array) && (r = u.from(r, r.offset, r.byteLength)), w(t, Uint8Array) && (t = u.from(t, t.offset, t.byteLength)), !u.isBuffer(r) || !u.isBuffer(t))
153
- throw new TypeError(
154
- 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
155
- );
156
- if (r === t) return 0;
157
- let n = r.length, e = t.length;
158
- for (let o = 0, h = Math.min(n, e); o < h; ++o)
159
- if (r[o] !== t[o]) {
160
- n = r[o], e = t[o];
161
- break;
162
- }
163
- return n < e ? -1 : e < n ? 1 : 0;
164
- }, u.isEncoding = function(r) {
165
- switch (String(r).toLowerCase()) {
166
- case "hex":
167
- case "utf8":
168
- case "utf-8":
169
- case "ascii":
170
- case "latin1":
171
- case "binary":
172
- case "base64":
173
- case "ucs2":
174
- case "ucs-2":
175
- case "utf16le":
176
- case "utf-16le":
177
- return !0;
178
- default:
179
- return !1;
180
- }
181
- }, u.concat = function(r, t) {
182
- if (!Array.isArray(r))
183
- throw new TypeError('"list" argument must be an Array of Buffers');
184
- if (r.length === 0)
185
- return u.alloc(0);
186
- let n;
187
- if (t === void 0)
188
- for (t = 0, n = 0; n < r.length; ++n)
189
- t += r[n].length;
190
- const e = u.allocUnsafe(t);
191
- let o = 0;
192
- for (n = 0; n < r.length; ++n) {
193
- let h = r[n];
194
- if (w(h, Uint8Array))
195
- o + h.length > e.length ? (u.isBuffer(h) || (h = u.from(h)), h.copy(e, o)) : Uint8Array.prototype.set.call(
196
- e,
197
- h,
198
- o
199
- );
200
- else if (u.isBuffer(h))
201
- h.copy(e, o);
202
- else
203
- throw new TypeError('"list" argument must be an Array of Buffers');
204
- o += h.length;
205
- }
206
- return e;
207
- };
208
- function M(i, r) {
209
- if (u.isBuffer(i))
210
- return i.length;
211
- if (ArrayBuffer.isView(i) || w(i, ArrayBuffer))
212
- return i.byteLength;
213
- if (typeof i != "string")
214
- throw new TypeError(
215
- 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof i
216
- );
217
- const t = i.length, n = arguments.length > 2 && arguments[2] === !0;
218
- if (!n && t === 0) return 0;
219
- let e = !1;
220
- for (; ; )
221
- switch (r) {
222
- case "ascii":
223
- case "latin1":
224
- case "binary":
225
- return t;
226
- case "utf8":
227
- case "utf-8":
228
- return L(i).length;
229
- case "ucs2":
230
- case "ucs-2":
231
- case "utf16le":
232
- case "utf-16le":
233
- return t * 2;
234
- case "hex":
235
- return t >>> 1;
236
- case "base64":
237
- return K(i).length;
238
- default:
239
- if (e)
240
- return n ? -1 : L(i).length;
241
- r = ("" + r).toLowerCase(), e = !0;
242
- }
243
- }
244
- u.byteLength = M;
245
- function er(i, r, t) {
246
- let n = !1;
247
- if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((t === void 0 || t > this.length) && (t = this.length), t <= 0) || (t >>>= 0, r >>>= 0, t <= r))
248
- return "";
249
- for (i || (i = "utf8"); ; )
250
- switch (i) {
251
- case "hex":
252
- return ar(this, r, t);
253
- case "utf8":
254
- case "utf-8":
255
- return G(this, r, t);
256
- case "ascii":
257
- return sr(this, r, t);
258
- case "latin1":
259
- case "binary":
260
- return yr(this, r, t);
261
- case "base64":
262
- return pr(this, r, t);
263
- case "ucs2":
264
- case "ucs-2":
265
- case "utf16le":
266
- case "utf-16le":
267
- return wr(this, r, t);
268
- default:
269
- if (n) throw new TypeError("Unknown encoding: " + i);
270
- i = (i + "").toLowerCase(), n = !0;
271
- }
272
- }
273
- u.prototype._isBuffer = !0;
274
- function E(i, r, t) {
275
- const n = i[r];
276
- i[r] = i[t], i[t] = n;
277
- }
278
- u.prototype.swap16 = function() {
279
- const r = this.length;
280
- if (r % 2 !== 0)
281
- throw new RangeError("Buffer size must be a multiple of 16-bits");
282
- for (let t = 0; t < r; t += 2)
283
- E(this, t, t + 1);
284
- return this;
285
- }, u.prototype.swap32 = function() {
286
- const r = this.length;
287
- if (r % 4 !== 0)
288
- throw new RangeError("Buffer size must be a multiple of 32-bits");
289
- for (let t = 0; t < r; t += 4)
290
- E(this, t, t + 3), E(this, t + 1, t + 2);
291
- return this;
292
- }, u.prototype.swap64 = function() {
293
- const r = this.length;
294
- if (r % 8 !== 0)
295
- throw new RangeError("Buffer size must be a multiple of 64-bits");
296
- for (let t = 0; t < r; t += 8)
297
- E(this, t, t + 7), E(this, t + 1, t + 6), E(this, t + 2, t + 5), E(this, t + 3, t + 4);
298
- return this;
299
- }, u.prototype.toString = function() {
300
- const r = this.length;
301
- return r === 0 ? "" : arguments.length === 0 ? G(this, 0, r) : er.apply(this, arguments);
302
- }, u.prototype.toLocaleString = u.prototype.toString, u.prototype.equals = function(r) {
303
- if (!u.isBuffer(r)) throw new TypeError("Argument must be a Buffer");
304
- return this === r ? !0 : u.compare(this, r) === 0;
305
- }, u.prototype.inspect = function() {
306
- let r = "";
307
- const t = d.INSPECT_MAX_BYTES;
308
- return r = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (r += " ... "), "<Buffer " + r + ">";
309
- }, k && (u.prototype[k] = u.prototype.inspect), u.prototype.compare = function(r, t, n, e, o) {
310
- if (w(r, Uint8Array) && (r = u.from(r, r.offset, r.byteLength)), !u.isBuffer(r))
311
- throw new TypeError(
312
- 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
313
- );
314
- if (t === void 0 && (t = 0), n === void 0 && (n = r ? r.length : 0), e === void 0 && (e = 0), o === void 0 && (o = this.length), t < 0 || n > r.length || e < 0 || o > this.length)
315
- throw new RangeError("out of range index");
316
- if (e >= o && t >= n)
317
- return 0;
318
- if (e >= o)
319
- return -1;
320
- if (t >= n)
321
- return 1;
322
- if (t >>>= 0, n >>>= 0, e >>>= 0, o >>>= 0, this === r) return 0;
323
- let h = o - e, f = n - t;
324
- const l = Math.min(h, f), p = this.slice(e, o), s = r.slice(t, n);
325
- for (let c = 0; c < l; ++c)
326
- if (p[c] !== s[c]) {
327
- h = p[c], f = s[c];
328
- break;
329
- }
330
- return h < f ? -1 : f < h ? 1 : 0;
331
- };
332
- function O(i, r, t, n, e) {
333
- if (i.length === 0) return -1;
334
- if (typeof t == "string" ? (n = t, t = 0) : t > 2147483647 ? t = 2147483647 : t < -2147483648 && (t = -2147483648), t = +t, D(t) && (t = e ? 0 : i.length - 1), t < 0 && (t = i.length + t), t >= i.length) {
335
- if (e) return -1;
336
- t = i.length - 1;
337
- } else if (t < 0)
338
- if (e) t = 0;
339
- else return -1;
340
- if (typeof r == "string" && (r = u.from(r, n)), u.isBuffer(r))
341
- return r.length === 0 ? -1 : q(i, r, t, n, e);
342
- if (typeof r == "number")
343
- return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? e ? Uint8Array.prototype.indexOf.call(i, r, t) : Uint8Array.prototype.lastIndexOf.call(i, r, t) : q(i, [r], t, n, e);
344
- throw new TypeError("val must be string, number or Buffer");
345
- }
346
- function q(i, r, t, n, e) {
347
- let o = 1, h = i.length, f = r.length;
348
- if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
349
- if (i.length < 2 || r.length < 2)
350
- return -1;
351
- o = 2, h /= 2, f /= 2, t /= 2;
352
- }
353
- function l(s, c) {
354
- return o === 1 ? s[c] : s.readUInt16BE(c * o);
355
- }
356
- let p;
357
- if (e) {
358
- let s = -1;
359
- for (p = t; p < h; p++)
360
- if (l(i, p) === l(r, s === -1 ? 0 : p - s)) {
361
- if (s === -1 && (s = p), p - s + 1 === f) return s * o;
362
- } else
363
- s !== -1 && (p -= p - s), s = -1;
364
- } else
365
- for (t + f > h && (t = h - f), p = t; p >= 0; p--) {
366
- let s = !0;
367
- for (let c = 0; c < f; c++)
368
- if (l(i, p + c) !== l(r, c)) {
369
- s = !1;
370
- break;
371
- }
372
- if (s) return p;
373
- }
374
- return -1;
375
- }
376
- u.prototype.includes = function(r, t, n) {
377
- return this.indexOf(r, t, n) !== -1;
378
- }, u.prototype.indexOf = function(r, t, n) {
379
- return O(this, r, t, n, !0);
380
- }, u.prototype.lastIndexOf = function(r, t, n) {
381
- return O(this, r, t, n, !1);
382
- };
383
- function or(i, r, t, n) {
384
- t = Number(t) || 0;
385
- const e = i.length - t;
386
- n ? (n = Number(n), n > e && (n = e)) : n = e;
387
- const o = r.length;
388
- n > o / 2 && (n = o / 2);
389
- let h;
390
- for (h = 0; h < n; ++h) {
391
- const f = parseInt(r.substr(h * 2, 2), 16);
392
- if (D(f)) return h;
393
- i[t + h] = f;
394
- }
395
- return h;
396
- }
397
- function ur(i, r, t, n) {
398
- return A(L(r, i.length - t), i, t, n);
399
- }
400
- function hr(i, r, t, n) {
401
- return A(mr(r), i, t, n);
402
- }
403
- function fr(i, r, t, n) {
404
- return A(K(r), i, t, n);
405
- }
406
- function cr(i, r, t, n) {
407
- return A(gr(r, i.length - t), i, t, n);
408
- }
409
- u.prototype.write = function(r, t, n, e) {
410
- if (t === void 0)
411
- e = "utf8", n = this.length, t = 0;
412
- else if (n === void 0 && typeof t == "string")
413
- e = t, n = this.length, t = 0;
414
- else if (isFinite(t))
415
- t = t >>> 0, isFinite(n) ? (n = n >>> 0, e === void 0 && (e = "utf8")) : (e = n, n = void 0);
416
- else
417
- throw new Error(
418
- "Buffer.write(string, encoding, offset[, length]) is no longer supported"
419
- );
420
- const o = this.length - t;
421
- if ((n === void 0 || n > o) && (n = o), r.length > 0 && (n < 0 || t < 0) || t > this.length)
422
- throw new RangeError("Attempt to write outside buffer bounds");
423
- e || (e = "utf8");
424
- let h = !1;
425
- for (; ; )
426
- switch (e) {
427
- case "hex":
428
- return or(this, r, t, n);
429
- case "utf8":
430
- case "utf-8":
431
- return ur(this, r, t, n);
432
- case "ascii":
433
- case "latin1":
434
- case "binary":
435
- return hr(this, r, t, n);
436
- case "base64":
437
- return fr(this, r, t, n);
438
- case "ucs2":
439
- case "ucs-2":
440
- case "utf16le":
441
- case "utf-16le":
442
- return cr(this, r, t, n);
443
- default:
444
- if (h) throw new TypeError("Unknown encoding: " + e);
445
- e = ("" + e).toLowerCase(), h = !0;
446
- }
447
- }, u.prototype.toJSON = function() {
448
- return {
449
- type: "Buffer",
450
- data: Array.prototype.slice.call(this._arr || this, 0)
451
- };
452
- };
453
- function pr(i, r, t) {
454
- return r === 0 && t === i.length ? R.fromByteArray(i) : R.fromByteArray(i.slice(r, t));
455
- }
456
- function G(i, r, t) {
457
- t = Math.min(i.length, t);
458
- const n = [];
459
- let e = r;
460
- for (; e < t; ) {
461
- const o = i[e];
462
- let h = null, f = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
463
- if (e + f <= t) {
464
- let l, p, s, c;
465
- switch (f) {
466
- case 1:
467
- o < 128 && (h = o);
468
- break;
469
- case 2:
470
- l = i[e + 1], (l & 192) === 128 && (c = (o & 31) << 6 | l & 63, c > 127 && (h = c));
471
- break;
472
- case 3:
473
- l = i[e + 1], p = i[e + 2], (l & 192) === 128 && (p & 192) === 128 && (c = (o & 15) << 12 | (l & 63) << 6 | p & 63, c > 2047 && (c < 55296 || c > 57343) && (h = c));
474
- break;
475
- case 4:
476
- l = i[e + 1], p = i[e + 2], s = i[e + 3], (l & 192) === 128 && (p & 192) === 128 && (s & 192) === 128 && (c = (o & 15) << 18 | (l & 63) << 12 | (p & 63) << 6 | s & 63, c > 65535 && c < 1114112 && (h = c));
477
- }
478
- }
479
- h === null ? (h = 65533, f = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), e += f;
480
- }
481
- return lr(n);
482
- }
483
- const Y = 4096;
484
- function lr(i) {
485
- const r = i.length;
486
- if (r <= Y)
487
- return String.fromCharCode.apply(String, i);
488
- let t = "", n = 0;
489
- for (; n < r; )
490
- t += String.fromCharCode.apply(
491
- String,
492
- i.slice(n, n += Y)
493
- );
494
- return t;
495
- }
496
- function sr(i, r, t) {
497
- let n = "";
498
- t = Math.min(i.length, t);
499
- for (let e = r; e < t; ++e)
500
- n += String.fromCharCode(i[e] & 127);
501
- return n;
502
- }
503
- function yr(i, r, t) {
504
- let n = "";
505
- t = Math.min(i.length, t);
506
- for (let e = r; e < t; ++e)
507
- n += String.fromCharCode(i[e]);
508
- return n;
509
- }
510
- function ar(i, r, t) {
511
- const n = i.length;
512
- (!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
513
- let e = "";
514
- for (let o = r; o < t; ++o)
515
- e += Ir[i[o]];
516
- return e;
517
- }
518
- function wr(i, r, t) {
519
- const n = i.slice(r, t);
520
- let e = "";
521
- for (let o = 0; o < n.length - 1; o += 2)
522
- e += String.fromCharCode(n[o] + n[o + 1] * 256);
523
- return e;
524
- }
525
- u.prototype.slice = function(r, t) {
526
- const n = this.length;
527
- r = ~~r, t = t === void 0 ? n : ~~t, r < 0 ? (r += n, r < 0 && (r = 0)) : r > n && (r = n), t < 0 ? (t += n, t < 0 && (t = 0)) : t > n && (t = n), t < r && (t = r);
528
- const e = this.subarray(r, t);
529
- return Object.setPrototypeOf(e, u.prototype), e;
530
- };
531
- function y(i, r, t) {
532
- if (i % 1 !== 0 || i < 0) throw new RangeError("offset is not uint");
533
- if (i + r > t) throw new RangeError("Trying to access beyond buffer length");
534
- }
535
- u.prototype.readUintLE = u.prototype.readUIntLE = function(r, t, n) {
536
- r = r >>> 0, t = t >>> 0, n || y(r, t, this.length);
537
- let e = this[r], o = 1, h = 0;
538
- for (; ++h < t && (o *= 256); )
539
- e += this[r + h] * o;
540
- return e;
541
- }, u.prototype.readUintBE = u.prototype.readUIntBE = function(r, t, n) {
542
- r = r >>> 0, t = t >>> 0, n || y(r, t, this.length);
543
- let e = this[r + --t], o = 1;
544
- for (; t > 0 && (o *= 256); )
545
- e += this[r + --t] * o;
546
- return e;
547
- }, u.prototype.readUint8 = u.prototype.readUInt8 = function(r, t) {
548
- return r = r >>> 0, t || y(r, 1, this.length), this[r];
549
- }, u.prototype.readUint16LE = u.prototype.readUInt16LE = function(r, t) {
550
- return r = r >>> 0, t || y(r, 2, this.length), this[r] | this[r + 1] << 8;
551
- }, u.prototype.readUint16BE = u.prototype.readUInt16BE = function(r, t) {
552
- return r = r >>> 0, t || y(r, 2, this.length), this[r] << 8 | this[r + 1];
553
- }, u.prototype.readUint32LE = u.prototype.readUInt32LE = function(r, t) {
554
- return r = r >>> 0, t || y(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
555
- }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(r, t) {
556
- return r = r >>> 0, t || y(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
557
- }, u.prototype.readBigUInt64LE = x(function(r) {
558
- r = r >>> 0, I(r, "offset");
559
- const t = this[r], n = this[r + 7];
560
- (t === void 0 || n === void 0) && F(r, this.length - 8);
561
- const e = t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, o = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + n * 2 ** 24;
562
- return BigInt(e) + (BigInt(o) << BigInt(32));
563
- }), u.prototype.readBigUInt64BE = x(function(r) {
564
- r = r >>> 0, I(r, "offset");
565
- const t = this[r], n = this[r + 7];
566
- (t === void 0 || n === void 0) && F(r, this.length - 8);
567
- const e = t * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], o = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n;
568
- return (BigInt(e) << BigInt(32)) + BigInt(o);
569
- }), u.prototype.readIntLE = function(r, t, n) {
570
- r = r >>> 0, t = t >>> 0, n || y(r, t, this.length);
571
- let e = this[r], o = 1, h = 0;
572
- for (; ++h < t && (o *= 256); )
573
- e += this[r + h] * o;
574
- return o *= 128, e >= o && (e -= Math.pow(2, 8 * t)), e;
575
- }, u.prototype.readIntBE = function(r, t, n) {
576
- r = r >>> 0, t = t >>> 0, n || y(r, t, this.length);
577
- let e = t, o = 1, h = this[r + --e];
578
- for (; e > 0 && (o *= 256); )
579
- h += this[r + --e] * o;
580
- return o *= 128, h >= o && (h -= Math.pow(2, 8 * t)), h;
581
- }, u.prototype.readInt8 = function(r, t) {
582
- return r = r >>> 0, t || y(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
583
- }, u.prototype.readInt16LE = function(r, t) {
584
- r = r >>> 0, t || y(r, 2, this.length);
585
- const n = this[r] | this[r + 1] << 8;
586
- return n & 32768 ? n | 4294901760 : n;
587
- }, u.prototype.readInt16BE = function(r, t) {
588
- r = r >>> 0, t || y(r, 2, this.length);
589
- const n = this[r + 1] | this[r] << 8;
590
- return n & 32768 ? n | 4294901760 : n;
591
- }, u.prototype.readInt32LE = function(r, t) {
592
- return r = r >>> 0, t || y(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
593
- }, u.prototype.readInt32BE = function(r, t) {
594
- return r = r >>> 0, t || y(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
595
- }, u.prototype.readBigInt64LE = x(function(r) {
596
- r = r >>> 0, I(r, "offset");
597
- const t = this[r], n = this[r + 7];
598
- (t === void 0 || n === void 0) && F(r, this.length - 8);
599
- const e = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (n << 24);
600
- return (BigInt(e) << BigInt(32)) + BigInt(t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
601
- }), u.prototype.readBigInt64BE = x(function(r) {
602
- r = r >>> 0, I(r, "offset");
603
- const t = this[r], n = this[r + 7];
604
- (t === void 0 || n === void 0) && F(r, this.length - 8);
605
- const e = (t << 24) + // Overflow
606
- this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
607
- return (BigInt(e) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n);
608
- }), u.prototype.readFloatLE = function(r, t) {
609
- return r = r >>> 0, t || y(r, 4, this.length), m.read(this, r, !0, 23, 4);
610
- }, u.prototype.readFloatBE = function(r, t) {
611
- return r = r >>> 0, t || y(r, 4, this.length), m.read(this, r, !1, 23, 4);
612
- }, u.prototype.readDoubleLE = function(r, t) {
613
- return r = r >>> 0, t || y(r, 8, this.length), m.read(this, r, !0, 52, 8);
614
- }, u.prototype.readDoubleBE = function(r, t) {
615
- return r = r >>> 0, t || y(r, 8, this.length), m.read(this, r, !1, 52, 8);
616
- };
617
- function a(i, r, t, n, e, o) {
618
- if (!u.isBuffer(i)) throw new TypeError('"buffer" argument must be a Buffer instance');
619
- if (r > e || r < o) throw new RangeError('"value" argument is out of bounds');
620
- if (t + n > i.length) throw new RangeError("Index out of range");
621
- }
622
- u.prototype.writeUintLE = u.prototype.writeUIntLE = function(r, t, n, e) {
623
- if (r = +r, t = t >>> 0, n = n >>> 0, !e) {
624
- const f = Math.pow(2, 8 * n) - 1;
625
- a(this, r, t, n, f, 0);
626
- }
627
- let o = 1, h = 0;
628
- for (this[t] = r & 255; ++h < n && (o *= 256); )
629
- this[t + h] = r / o & 255;
630
- return t + n;
631
- }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(r, t, n, e) {
632
- if (r = +r, t = t >>> 0, n = n >>> 0, !e) {
633
- const f = Math.pow(2, 8 * n) - 1;
634
- a(this, r, t, n, f, 0);
635
- }
636
- let o = n - 1, h = 1;
637
- for (this[t + o] = r & 255; --o >= 0 && (h *= 256); )
638
- this[t + o] = r / h & 255;
639
- return t + n;
640
- }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(r, t, n) {
641
- return r = +r, t = t >>> 0, n || a(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
642
- }, u.prototype.writeUint16LE = u.prototype.writeUInt16LE = function(r, t, n) {
643
- return r = +r, t = t >>> 0, n || a(this, r, t, 2, 65535, 0), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
644
- }, u.prototype.writeUint16BE = u.prototype.writeUInt16BE = function(r, t, n) {
645
- return r = +r, t = t >>> 0, n || a(this, r, t, 2, 65535, 0), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
646
- }, u.prototype.writeUint32LE = u.prototype.writeUInt32LE = function(r, t, n) {
647
- return r = +r, t = t >>> 0, n || a(this, r, t, 4, 4294967295, 0), this[t + 3] = r >>> 24, this[t + 2] = r >>> 16, this[t + 1] = r >>> 8, this[t] = r & 255, t + 4;
648
- }, u.prototype.writeUint32BE = u.prototype.writeUInt32BE = function(r, t, n) {
649
- return r = +r, t = t >>> 0, n || a(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
650
- };
651
- function W(i, r, t, n, e) {
652
- H(r, n, e, i, t, 7);
653
- let o = Number(r & BigInt(4294967295));
654
- i[t++] = o, o = o >> 8, i[t++] = o, o = o >> 8, i[t++] = o, o = o >> 8, i[t++] = o;
655
- let h = Number(r >> BigInt(32) & BigInt(4294967295));
656
- return i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, h = h >> 8, i[t++] = h, t;
657
- }
658
- function V(i, r, t, n, e) {
659
- H(r, n, e, i, t, 7);
660
- let o = Number(r & BigInt(4294967295));
661
- i[t + 7] = o, o = o >> 8, i[t + 6] = o, o = o >> 8, i[t + 5] = o, o = o >> 8, i[t + 4] = o;
662
- let h = Number(r >> BigInt(32) & BigInt(4294967295));
663
- return i[t + 3] = h, h = h >> 8, i[t + 2] = h, h = h >> 8, i[t + 1] = h, h = h >> 8, i[t] = h, t + 8;
664
- }
665
- u.prototype.writeBigUInt64LE = x(function(r, t = 0) {
666
- return W(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
667
- }), u.prototype.writeBigUInt64BE = x(function(r, t = 0) {
668
- return V(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
669
- }), u.prototype.writeIntLE = function(r, t, n, e) {
670
- if (r = +r, t = t >>> 0, !e) {
671
- const l = Math.pow(2, 8 * n - 1);
672
- a(this, r, t, n, l - 1, -l);
673
- }
674
- let o = 0, h = 1, f = 0;
675
- for (this[t] = r & 255; ++o < n && (h *= 256); )
676
- r < 0 && f === 0 && this[t + o - 1] !== 0 && (f = 1), this[t + o] = (r / h >> 0) - f & 255;
677
- return t + n;
678
- }, u.prototype.writeIntBE = function(r, t, n, e) {
679
- if (r = +r, t = t >>> 0, !e) {
680
- const l = Math.pow(2, 8 * n - 1);
681
- a(this, r, t, n, l - 1, -l);
682
- }
683
- let o = n - 1, h = 1, f = 0;
684
- for (this[t + o] = r & 255; --o >= 0 && (h *= 256); )
685
- r < 0 && f === 0 && this[t + o + 1] !== 0 && (f = 1), this[t + o] = (r / h >> 0) - f & 255;
686
- return t + n;
687
- }, u.prototype.writeInt8 = function(r, t, n) {
688
- return r = +r, t = t >>> 0, n || a(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
689
- }, u.prototype.writeInt16LE = function(r, t, n) {
690
- return r = +r, t = t >>> 0, n || a(this, r, t, 2, 32767, -32768), this[t] = r & 255, this[t + 1] = r >>> 8, t + 2;
691
- }, u.prototype.writeInt16BE = function(r, t, n) {
692
- return r = +r, t = t >>> 0, n || a(this, r, t, 2, 32767, -32768), this[t] = r >>> 8, this[t + 1] = r & 255, t + 2;
693
- }, u.prototype.writeInt32LE = function(r, t, n) {
694
- return r = +r, t = t >>> 0, n || a(this, r, t, 4, 2147483647, -2147483648), this[t] = r & 255, this[t + 1] = r >>> 8, this[t + 2] = r >>> 16, this[t + 3] = r >>> 24, t + 4;
695
- }, u.prototype.writeInt32BE = function(r, t, n) {
696
- return r = +r, t = t >>> 0, n || a(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
697
- }, u.prototype.writeBigInt64LE = x(function(r, t = 0) {
698
- return W(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
699
- }), u.prototype.writeBigInt64BE = x(function(r, t = 0) {
700
- return V(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
37
+ }
38
+ }
39
+ Object.defineProperty(n, "code", {
40
+ enumerable: !0,
41
+ configurable: !0,
42
+ writable: !0,
43
+ value: 4001
44
+ });
45
+ class a extends u {
46
+ constructor({ message: e = "The requested method and/or account has not been authorized by the user." } = {}) {
47
+ super(4100, e), Object.defineProperty(this, "code", {
48
+ enumerable: !0,
49
+ configurable: !0,
50
+ writable: !0,
51
+ value: 4100
52
+ }), Object.defineProperty(this, "name", {
53
+ enumerable: !0,
54
+ configurable: !0,
55
+ writable: !0,
56
+ value: "Provider.UnauthorizedError"
701
57
  });
702
- function X(i, r, t, n, e, o) {
703
- if (t + n > i.length) throw new RangeError("Index out of range");
704
- if (t < 0) throw new RangeError("Index out of range");
705
- }
706
- function j(i, r, t, n, e) {
707
- return r = +r, t = t >>> 0, e || X(i, r, t, 4), m.write(i, r, t, n, 23, 4), t + 4;
708
- }
709
- u.prototype.writeFloatLE = function(r, t, n) {
710
- return j(this, r, t, !0, n);
711
- }, u.prototype.writeFloatBE = function(r, t, n) {
712
- return j(this, r, t, !1, n);
713
- };
714
- function J(i, r, t, n, e) {
715
- return r = +r, t = t >>> 0, e || X(i, r, t, 8), m.write(i, r, t, n, 52, 8), t + 8;
716
- }
717
- u.prototype.writeDoubleLE = function(r, t, n) {
718
- return J(this, r, t, !0, n);
719
- }, u.prototype.writeDoubleBE = function(r, t, n) {
720
- return J(this, r, t, !1, n);
721
- }, u.prototype.copy = function(r, t, n, e) {
722
- if (!u.isBuffer(r)) throw new TypeError("argument should be a Buffer");
723
- if (n || (n = 0), !e && e !== 0 && (e = this.length), t >= r.length && (t = r.length), t || (t = 0), e > 0 && e < n && (e = n), e === n || r.length === 0 || this.length === 0) return 0;
724
- if (t < 0)
725
- throw new RangeError("targetStart out of bounds");
726
- if (n < 0 || n >= this.length) throw new RangeError("Index out of range");
727
- if (e < 0) throw new RangeError("sourceEnd out of bounds");
728
- e > this.length && (e = this.length), r.length - t < e - n && (e = r.length - t + n);
729
- const o = e - n;
730
- return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(t, n, e) : Uint8Array.prototype.set.call(
731
- r,
732
- this.subarray(n, e),
733
- t
734
- ), o;
735
- }, u.prototype.fill = function(r, t, n, e) {
736
- if (typeof r == "string") {
737
- if (typeof t == "string" ? (e = t, t = 0, n = this.length) : typeof n == "string" && (e = n, n = this.length), e !== void 0 && typeof e != "string")
738
- throw new TypeError("encoding must be a string");
739
- if (typeof e == "string" && !u.isEncoding(e))
740
- throw new TypeError("Unknown encoding: " + e);
741
- if (r.length === 1) {
742
- const h = r.charCodeAt(0);
743
- (e === "utf8" && h < 128 || e === "latin1") && (r = h);
744
- }
745
- } else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
746
- if (t < 0 || this.length < t || this.length < n)
747
- throw new RangeError("Out of range index");
748
- if (n <= t)
749
- return this;
750
- t = t >>> 0, n = n === void 0 ? this.length : n >>> 0, r || (r = 0);
751
- let o;
752
- if (typeof r == "number")
753
- for (o = t; o < n; ++o)
754
- this[o] = r;
755
- else {
756
- const h = u.isBuffer(r) ? r : u.from(r, e), f = h.length;
757
- if (f === 0)
758
- throw new TypeError('The value "' + r + '" is invalid for argument "value"');
759
- for (o = 0; o < n - t; ++o)
760
- this[o + t] = h[o % f];
761
- }
762
- return this;
763
- };
764
- const g = {};
765
- function b(i, r, t) {
766
- g[i] = class extends t {
767
- constructor() {
768
- super(), Object.defineProperty(this, "message", {
769
- value: r.apply(this, arguments),
770
- writable: !0,
771
- configurable: !0
772
- }), this.name = `${this.name} [${i}]`, this.stack, delete this.name;
773
- }
774
- get code() {
775
- return i;
776
- }
777
- set code(e) {
778
- Object.defineProperty(this, "code", {
779
- configurable: !0,
780
- enumerable: !0,
781
- value: e,
782
- writable: !0
783
- });
784
- }
785
- toString() {
786
- return `${this.name} [${i}]: ${this.message}`;
787
- }
788
- };
789
- }
790
- b(
791
- "ERR_BUFFER_OUT_OF_BOUNDS",
792
- function(i) {
793
- return i ? `${i} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
794
- },
795
- RangeError
796
- ), b(
797
- "ERR_INVALID_ARG_TYPE",
798
- function(i, r) {
799
- return `The "${i}" argument must be of type number. Received type ${typeof r}`;
800
- },
801
- TypeError
802
- ), b(
803
- "ERR_OUT_OF_RANGE",
804
- function(i, r, t) {
805
- let n = `The value of "${i}" is out of range.`, e = t;
806
- return Number.isInteger(t) && Math.abs(t) > 2 ** 32 ? e = z(String(t)) : typeof t == "bigint" && (e = String(t), (t > BigInt(2) ** BigInt(32) || t < -(BigInt(2) ** BigInt(32))) && (e = z(e)), e += "n"), n += ` It must be ${r}. Received ${e}`, n;
807
- },
808
- RangeError
809
- );
810
- function z(i) {
811
- let r = "", t = i.length;
812
- const n = i[0] === "-" ? 1 : 0;
813
- for (; t >= n + 4; t -= 3)
814
- r = `_${i.slice(t - 3, t)}${r}`;
815
- return `${i.slice(0, t)}${r}`;
816
- }
817
- function Br(i, r, t) {
818
- I(r, "offset"), (i[r] === void 0 || i[r + t] === void 0) && F(r, i.length - (t + 1));
819
- }
820
- function H(i, r, t, n, e, o) {
821
- if (i > t || i < r) {
822
- const h = typeof r == "bigint" ? "n" : "";
823
- let f;
824
- throw r === 0 || r === BigInt(0) ? f = `>= 0${h} and < 2${h} ** ${(o + 1) * 8}${h}` : f = `>= -(2${h} ** ${(o + 1) * 8 - 1}${h}) and < 2 ** ${(o + 1) * 8 - 1}${h}`, new g.ERR_OUT_OF_RANGE("value", f, i);
825
- }
826
- Br(n, e, o);
827
- }
828
- function I(i, r) {
829
- if (typeof i != "number")
830
- throw new g.ERR_INVALID_ARG_TYPE(r, "number", i);
831
- }
832
- function F(i, r, t) {
833
- throw Math.floor(i) !== i ? (I(i, t), new g.ERR_OUT_OF_RANGE("offset", "an integer", i)) : r < 0 ? new g.ERR_BUFFER_OUT_OF_BOUNDS() : new g.ERR_OUT_OF_RANGE(
834
- "offset",
835
- `>= 0 and <= ${r}`,
836
- i
837
- );
838
- }
839
- const xr = /[^+/0-9A-Za-z-_]/g;
840
- function Er(i) {
841
- if (i = i.split("=")[0], i = i.trim().replace(xr, ""), i.length < 2) return "";
842
- for (; i.length % 4 !== 0; )
843
- i = i + "=";
844
- return i;
845
- }
846
- function L(i, r) {
847
- r = r || 1 / 0;
848
- let t;
849
- const n = i.length;
850
- let e = null;
851
- const o = [];
852
- for (let h = 0; h < n; ++h) {
853
- if (t = i.charCodeAt(h), t > 55295 && t < 57344) {
854
- if (!e) {
855
- if (t > 56319) {
856
- (r -= 3) > -1 && o.push(239, 191, 189);
857
- continue;
858
- } else if (h + 1 === n) {
859
- (r -= 3) > -1 && o.push(239, 191, 189);
860
- continue;
861
- }
862
- e = t;
863
- continue;
864
- }
865
- if (t < 56320) {
866
- (r -= 3) > -1 && o.push(239, 191, 189), e = t;
867
- continue;
868
- }
869
- t = (e - 55296 << 10 | t - 56320) + 65536;
870
- } else e && (r -= 3) > -1 && o.push(239, 191, 189);
871
- if (e = null, t < 128) {
872
- if ((r -= 1) < 0) break;
873
- o.push(t);
874
- } else if (t < 2048) {
875
- if ((r -= 2) < 0) break;
876
- o.push(
877
- t >> 6 | 192,
878
- t & 63 | 128
879
- );
880
- } else if (t < 65536) {
881
- if ((r -= 3) < 0) break;
882
- o.push(
883
- t >> 12 | 224,
884
- t >> 6 & 63 | 128,
885
- t & 63 | 128
886
- );
887
- } else if (t < 1114112) {
888
- if ((r -= 4) < 0) break;
889
- o.push(
890
- t >> 18 | 240,
891
- t >> 12 & 63 | 128,
892
- t >> 6 & 63 | 128,
893
- t & 63 | 128
894
- );
895
- } else
896
- throw new Error("Invalid code point");
58
+ }
59
+ }
60
+ Object.defineProperty(a, "code", {
61
+ enumerable: !0,
62
+ configurable: !0,
63
+ writable: !0,
64
+ value: 4100
65
+ });
66
+ class i extends u {
67
+ constructor({ message: e = "The provider does not support the requested method." } = {}) {
68
+ super(4200, e), Object.defineProperty(this, "code", {
69
+ enumerable: !0,
70
+ configurable: !0,
71
+ writable: !0,
72
+ value: 4200
73
+ }), Object.defineProperty(this, "name", {
74
+ enumerable: !0,
75
+ configurable: !0,
76
+ writable: !0,
77
+ value: "Provider.UnsupportedMethodError"
78
+ });
79
+ }
80
+ }
81
+ Object.defineProperty(i, "code", {
82
+ enumerable: !0,
83
+ configurable: !0,
84
+ writable: !0,
85
+ value: 4200
86
+ });
87
+ class c extends u {
88
+ constructor({ message: e = "The provider is disconnected from all chains." } = {}) {
89
+ super(4900, e), Object.defineProperty(this, "code", {
90
+ enumerable: !0,
91
+ configurable: !0,
92
+ writable: !0,
93
+ value: 4900
94
+ }), Object.defineProperty(this, "name", {
95
+ enumerable: !0,
96
+ configurable: !0,
97
+ writable: !0,
98
+ value: "Provider.DisconnectedError"
99
+ });
100
+ }
101
+ }
102
+ Object.defineProperty(c, "code", {
103
+ enumerable: !0,
104
+ configurable: !0,
105
+ writable: !0,
106
+ value: 4900
107
+ });
108
+ class l extends u {
109
+ constructor({ message: e = "The provider is not connected to the requested chain." } = {}) {
110
+ super(4901, e), Object.defineProperty(this, "code", {
111
+ enumerable: !0,
112
+ configurable: !0,
113
+ writable: !0,
114
+ value: 4901
115
+ }), Object.defineProperty(this, "name", {
116
+ enumerable: !0,
117
+ configurable: !0,
118
+ writable: !0,
119
+ value: "Provider.ChainDisconnectedError"
120
+ });
121
+ }
122
+ }
123
+ Object.defineProperty(l, "code", {
124
+ enumerable: !0,
125
+ configurable: !0,
126
+ writable: !0,
127
+ value: 4901
128
+ });
129
+ class d extends u {
130
+ constructor({ message: e = "An error occurred when attempting to switch chain." } = {}) {
131
+ super(4902, e), Object.defineProperty(this, "code", {
132
+ enumerable: !0,
133
+ configurable: !0,
134
+ writable: !0,
135
+ value: 4902
136
+ }), Object.defineProperty(this, "name", {
137
+ enumerable: !0,
138
+ configurable: !0,
139
+ writable: !0,
140
+ value: "Provider.SwitchChainError"
141
+ });
142
+ }
143
+ }
144
+ Object.defineProperty(d, "code", {
145
+ enumerable: !0,
146
+ configurable: !0,
147
+ writable: !0,
148
+ value: 4902
149
+ });
150
+ class b extends u {
151
+ constructor({ message: e = "This Wallet does not support a capability that was not marked as optional." } = {}) {
152
+ super(5700, e), Object.defineProperty(this, "code", {
153
+ enumerable: !0,
154
+ configurable: !0,
155
+ writable: !0,
156
+ value: 5700
157
+ }), Object.defineProperty(this, "name", {
158
+ enumerable: !0,
159
+ configurable: !0,
160
+ writable: !0,
161
+ value: "Provider.UnsupportedNonOptionalCapabilityError"
162
+ });
163
+ }
164
+ }
165
+ Object.defineProperty(b, "code", {
166
+ enumerable: !0,
167
+ configurable: !0,
168
+ writable: !0,
169
+ value: 5700
170
+ });
171
+ class s extends u {
172
+ constructor({ message: e = "This Wallet does not support the requested chain ID." } = {}) {
173
+ super(5710, e), Object.defineProperty(this, "code", {
174
+ enumerable: !0,
175
+ configurable: !0,
176
+ writable: !0,
177
+ value: 5710
178
+ }), Object.defineProperty(this, "name", {
179
+ enumerable: !0,
180
+ configurable: !0,
181
+ writable: !0,
182
+ value: "Provider.UnsupportedChainIdError"
183
+ });
184
+ }
185
+ }
186
+ Object.defineProperty(s, "code", {
187
+ enumerable: !0,
188
+ configurable: !0,
189
+ writable: !0,
190
+ value: 5710
191
+ });
192
+ class f extends u {
193
+ constructor({ message: e = "There is already a bundle submitted with this ID." } = {}) {
194
+ super(5720, e), Object.defineProperty(this, "code", {
195
+ enumerable: !0,
196
+ configurable: !0,
197
+ writable: !0,
198
+ value: 5720
199
+ }), Object.defineProperty(this, "name", {
200
+ enumerable: !0,
201
+ configurable: !0,
202
+ writable: !0,
203
+ value: "Provider.DuplicateIdError"
204
+ });
205
+ }
206
+ }
207
+ Object.defineProperty(f, "code", {
208
+ enumerable: !0,
209
+ configurable: !0,
210
+ writable: !0,
211
+ value: 5720
212
+ });
213
+ class p extends u {
214
+ constructor({ message: e = "This bundle id is unknown / has not been submitted." } = {}) {
215
+ super(5730, e), Object.defineProperty(this, "code", {
216
+ enumerable: !0,
217
+ configurable: !0,
218
+ writable: !0,
219
+ value: 5730
220
+ }), Object.defineProperty(this, "name", {
221
+ enumerable: !0,
222
+ configurable: !0,
223
+ writable: !0,
224
+ value: "Provider.UnknownBundleIdError"
225
+ });
226
+ }
227
+ }
228
+ Object.defineProperty(p, "code", {
229
+ enumerable: !0,
230
+ configurable: !0,
231
+ writable: !0,
232
+ value: 5730
233
+ });
234
+ class h extends u {
235
+ constructor({ message: e = "The call bundle is too large for the Wallet to process." } = {}) {
236
+ super(5740, e), Object.defineProperty(this, "code", {
237
+ enumerable: !0,
238
+ configurable: !0,
239
+ writable: !0,
240
+ value: 5740
241
+ }), Object.defineProperty(this, "name", {
242
+ enumerable: !0,
243
+ configurable: !0,
244
+ writable: !0,
245
+ value: "Provider.BundleTooLargeError"
246
+ });
247
+ }
248
+ }
249
+ Object.defineProperty(h, "code", {
250
+ enumerable: !0,
251
+ configurable: !0,
252
+ writable: !0,
253
+ value: 5740
254
+ });
255
+ class m extends u {
256
+ constructor({ message: e = "The Wallet can support atomicity after an upgrade, but the user rejected the upgrade." } = {}) {
257
+ super(5750, e), Object.defineProperty(this, "code", {
258
+ enumerable: !0,
259
+ configurable: !0,
260
+ writable: !0,
261
+ value: 5750
262
+ }), Object.defineProperty(this, "name", {
263
+ enumerable: !0,
264
+ configurable: !0,
265
+ writable: !0,
266
+ value: "Provider.AtomicReadyWalletRejectedUpgradeError"
267
+ });
268
+ }
269
+ }
270
+ Object.defineProperty(m, "code", {
271
+ enumerable: !0,
272
+ configurable: !0,
273
+ writable: !0,
274
+ value: 5750
275
+ });
276
+ class w extends u {
277
+ constructor({ message: e = "The wallet does not support atomic execution but the request requires it." } = {}) {
278
+ super(5760, e), Object.defineProperty(this, "code", {
279
+ enumerable: !0,
280
+ configurable: !0,
281
+ writable: !0,
282
+ value: 5760
283
+ }), Object.defineProperty(this, "name", {
284
+ enumerable: !0,
285
+ configurable: !0,
286
+ writable: !0,
287
+ value: "Provider.AtomicityNotSupportedError"
288
+ });
289
+ }
290
+ }
291
+ Object.defineProperty(w, "code", {
292
+ enumerable: !0,
293
+ configurable: !0,
294
+ writable: !0,
295
+ value: 5760
296
+ });
297
+ function q(r, e = {}) {
298
+ const { includeEvents: t = !0 } = e;
299
+ if (!r)
300
+ throw new E();
301
+ return {
302
+ ...t ? {
303
+ on: r.on?.bind(r),
304
+ removeListener: r.removeListener?.bind(r)
305
+ } : {},
306
+ async request(v) {
307
+ try {
308
+ const o = await r.request(v);
309
+ return o && typeof o == "object" && "jsonrpc" in o ? y(o) : o;
310
+ } catch (o) {
311
+ throw O(o);
897
312
  }
898
- return o;
899
- }
900
- function mr(i) {
901
- const r = [];
902
- for (let t = 0; t < i.length; ++t)
903
- r.push(i.charCodeAt(t) & 255);
904
- return r;
905
313
  }
906
- function gr(i, r) {
907
- let t, n, e;
908
- const o = [];
909
- for (let h = 0; h < i.length && !((r -= 2) < 0); ++h)
910
- t = i.charCodeAt(h), n = t >> 8, e = t % 256, o.push(e), o.push(n);
911
- return o;
912
- }
913
- function K(i) {
914
- return R.toByteArray(Er(i));
915
- }
916
- function A(i, r, t, n) {
917
- let e;
918
- for (e = 0; e < n && !(e + t >= r.length || e >= i.length); ++e)
919
- r[e + t] = i[e];
314
+ };
315
+ }
316
+ function O(r) {
317
+ const e = j(r);
318
+ if (e instanceof g) {
319
+ if (!e.data)
920
320
  return e;
921
- }
922
- function w(i, r) {
923
- return i instanceof r || i != null && i.constructor != null && i.constructor.name != null && i.constructor.name === r.name;
924
- }
925
- function D(i) {
926
- return i !== i;
927
- }
928
- const Ir = (function() {
929
- const i = "0123456789abcdef", r = new Array(256);
930
- for (let t = 0; t < 16; ++t) {
931
- const n = t * 16;
932
- for (let e = 0; e < 16; ++e)
933
- r[n + e] = i[t] + i[e];
934
- }
935
- return r;
936
- })();
937
- function x(i) {
938
- return typeof BigInt > "u" ? dr : i;
939
- }
940
- function dr() {
941
- throw new Error("BigInt not supported");
942
- }
943
- })(N), N);
321
+ const { code: t } = e.data;
322
+ if (t === c.code)
323
+ return new c(e);
324
+ if (t === l.code)
325
+ return new l(e);
326
+ if (t === n.code)
327
+ return new n(e);
328
+ if (t === a.code)
329
+ return new a(e);
330
+ if (t === i.code)
331
+ return new i(e);
332
+ if (t === d.code)
333
+ return new d(e);
334
+ if (t === m.code)
335
+ return new m(e);
336
+ if (t === w.code)
337
+ return new w(e);
338
+ if (t === h.code)
339
+ return new h(e);
340
+ if (t === p.code)
341
+ return new p(e);
342
+ if (t === f.code)
343
+ return new f(e);
344
+ if (t === s.code)
345
+ return new s(e);
346
+ if (t === b.code)
347
+ return new b(e);
348
+ }
349
+ return e;
350
+ }
351
+ class E extends P {
352
+ constructor() {
353
+ super("`provider` is undefined."), Object.defineProperty(this, "name", {
354
+ enumerable: !0,
355
+ configurable: !0,
356
+ writable: !0,
357
+ value: "Provider.IsUndefinedError"
358
+ });
359
+ }
944
360
  }
945
361
  export {
946
- Sr as __require
362
+ m as AtomicReadyWalletRejectedUpgradeError,
363
+ w as AtomicityNotSupportedError,
364
+ h as BundleTooLargeError,
365
+ l as ChainDisconnectedError,
366
+ c as DisconnectedError,
367
+ f as DuplicateIdError,
368
+ E as IsUndefinedError,
369
+ u as ProviderRpcError,
370
+ d as SwitchChainError,
371
+ a as UnauthorizedError,
372
+ p as UnknownBundleIdError,
373
+ s as UnsupportedChainIdError,
374
+ i as UnsupportedMethodError,
375
+ b as UnsupportedNonOptionalCapabilityError,
376
+ n as UserRejectedRequestError,
377
+ q as from,
378
+ O as parseError
947
379
  };