@coinbase/cdp-core 0.0.102 → 0.0.103

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 (446) hide show
  1. package/dist/esm/index.native102.js +3 -3
  2. package/dist/esm/index.native105.js +2 -2
  3. package/dist/esm/index.native11.js +1 -1
  4. package/dist/esm/index.native120.js +12 -12
  5. package/dist/esm/index.native121.js +16 -89
  6. package/dist/esm/index.native122.js +21 -15
  7. package/dist/esm/index.native123.js +49 -21
  8. package/dist/esm/index.native124.js +88 -49
  9. package/dist/esm/index.native126.js +12 -12
  10. package/dist/esm/index.native127.js +12 -12
  11. package/dist/esm/index.native129.js +1 -1
  12. package/dist/esm/index.native133.js +1 -1
  13. package/dist/esm/index.native134.js +1 -1
  14. package/dist/esm/index.native135.js +11 -53
  15. package/dist/esm/index.native136.js +11 -10
  16. package/dist/esm/index.native137.js +55 -2
  17. package/dist/esm/index.native138.js +11 -45
  18. package/dist/esm/index.native139.js +2 -14
  19. package/dist/esm/index.native140.js +45 -5
  20. package/dist/esm/index.native141.js +13 -12
  21. package/dist/esm/index.native142.js +4 -11
  22. package/dist/esm/index.native143.js +1 -1
  23. package/dist/esm/index.native147.js +2 -14
  24. package/dist/esm/index.native148.js +2 -28
  25. package/dist/esm/index.native149.js +13 -7
  26. package/dist/esm/index.native150.js +55 -3
  27. package/dist/esm/index.native151.js +6 -27
  28. package/dist/esm/index.native152.js +21 -8
  29. package/dist/esm/index.native153.js +17 -7
  30. package/dist/esm/index.native154.js +44 -78
  31. package/dist/esm/index.native155.js +3 -27
  32. package/dist/esm/index.native156.js +3 -3
  33. package/dist/esm/index.native157.js +34 -14
  34. package/dist/esm/index.native158.js +12 -4
  35. package/dist/esm/index.native159.js +4 -13
  36. package/dist/esm/index.native160.js +27 -18
  37. package/dist/esm/index.native161.js +6 -60
  38. package/dist/esm/index.native162.js +32 -17
  39. package/dist/esm/index.native163.js +10 -21
  40. package/dist/esm/index.native164.js +55 -8
  41. package/dist/esm/index.native165.js +41 -40
  42. package/dist/esm/index.native166.js +127 -7
  43. package/dist/esm/index.native167.js +103 -19
  44. package/dist/esm/index.native168.js +7 -2
  45. package/dist/esm/index.native169.js +3 -2
  46. package/dist/esm/index.native170.js +78 -13
  47. package/dist/esm/index.native171.js +2 -56
  48. package/dist/esm/index.native172.js +2 -7
  49. package/dist/esm/index.native173.js +34 -18
  50. package/dist/esm/index.native174.js +5 -16
  51. package/dist/esm/index.native175.js +31 -42
  52. package/dist/esm/index.native176.js +14 -3
  53. package/dist/esm/index.native177.js +34 -3
  54. package/dist/esm/index.native178.js +17 -33
  55. package/dist/esm/index.native179.js +8 -12
  56. package/dist/esm/index.native180.js +10 -4
  57. package/dist/esm/index.native181.js +11 -28
  58. package/dist/esm/index.native182.js +13 -6
  59. package/dist/esm/index.native183.js +5 -32
  60. package/dist/esm/index.native184.js +5 -13
  61. package/dist/esm/index.native185.js +10 -55
  62. package/dist/esm/index.native186.js +13 -42
  63. package/dist/esm/index.native187.js +26 -126
  64. package/dist/esm/index.native188.js +7 -104
  65. package/dist/esm/index.native189.js +3 -6
  66. package/dist/esm/index.native190.js +28 -3
  67. package/dist/esm/index.native191.js +8 -78
  68. package/dist/esm/index.native192.js +8 -2
  69. package/dist/esm/index.native193.js +80 -2
  70. package/dist/esm/index.native194.js +25 -35
  71. package/dist/esm/index.native195.js +3 -6
  72. package/dist/esm/index.native196.js +14 -34
  73. package/dist/esm/index.native197.js +4 -14
  74. package/dist/esm/index.native198.js +13 -34
  75. package/dist/esm/index.native199.js +18 -17
  76. package/dist/esm/index.native200.js +60 -8
  77. package/dist/esm/index.native201.js +17 -10
  78. package/dist/esm/index.native202.js +23 -11
  79. package/dist/esm/index.native203.js +8 -13
  80. package/dist/esm/index.native204.js +41 -5
  81. package/dist/esm/index.native205.js +8 -5
  82. package/dist/esm/index.native206.js +20 -10
  83. package/dist/esm/index.native207.js +102 -19
  84. package/dist/esm/index.native208.js +79 -10
  85. package/dist/esm/index.native209.js +79 -20
  86. package/dist/esm/index.native210.js +20 -93
  87. package/dist/esm/index.native211.js +9 -20
  88. package/dist/esm/index.native212.js +16 -114
  89. package/dist/esm/index.native213.js +94 -2
  90. package/dist/esm/index.native214.js +20 -103
  91. package/dist/esm/index.native215.js +112 -73
  92. package/dist/esm/index.native216.js +2 -79
  93. package/dist/esm/index.native228.js +1 -1
  94. package/dist/esm/index.native231.js +6 -32
  95. package/dist/esm/index.native232.js +32 -6
  96. package/dist/esm/index.native233.js +3 -46
  97. package/dist/esm/index.native234.js +45 -16
  98. package/dist/esm/index.native235.js +18 -28
  99. package/dist/esm/index.native236.js +26 -6
  100. package/dist/esm/index.native237.js +6 -9
  101. package/dist/esm/index.native238.js +11 -13
  102. package/dist/esm/index.native239.js +11 -8
  103. package/dist/esm/index.native240.js +7 -14
  104. package/dist/esm/index.native241.js +16 -80
  105. package/dist/esm/index.native242.js +80 -3
  106. package/dist/esm/index.native248.js +1 -1
  107. package/dist/esm/index.native79.js +1 -1
  108. package/dist/esm/index.web102.js +2 -2
  109. package/dist/esm/index.web106.js +3 -3
  110. package/dist/esm/index.web117.js +12 -12
  111. package/dist/esm/index.web118.js +13 -373
  112. package/dist/esm/index.web119.js +25 -2
  113. package/dist/esm/index.web120.js +48 -63
  114. package/dist/esm/index.web121.js +189 -177
  115. package/dist/esm/index.web122.js +2 -31
  116. package/dist/esm/index.web123.js +65 -28
  117. package/dist/esm/index.web124.js +360 -12
  118. package/dist/esm/index.web125.js +28 -22
  119. package/dist/esm/index.web126.js +28 -50
  120. package/dist/esm/index.web127.js +54 -4
  121. package/dist/esm/index.web128.js +10 -12
  122. package/dist/esm/index.web129.js +2 -12
  123. package/dist/esm/index.web130.js +45 -945
  124. package/dist/esm/index.web131.js +14 -2
  125. package/dist/esm/index.web132.js +944 -49
  126. package/dist/esm/index.web133.js +2 -27
  127. package/dist/esm/index.web134.js +50 -5
  128. package/dist/esm/index.web135.js +26 -47
  129. package/dist/esm/index.web136.js +5 -55
  130. package/dist/esm/index.web137.js +47 -10
  131. package/dist/esm/index.web138.js +5 -2
  132. package/dist/esm/index.web139.js +12 -44
  133. package/dist/esm/index.web140.js +11 -13
  134. package/dist/esm/index.web146.js +1 -1
  135. package/dist/esm/index.web158.js +1 -1
  136. package/dist/esm/index.web162.js +20 -13
  137. package/dist/esm/index.web163.js +9 -55
  138. package/dist/esm/index.web164.js +20 -7
  139. package/dist/esm/index.web165.js +90 -18
  140. package/dist/esm/index.web166.js +20 -17
  141. package/dist/esm/index.web167.js +117 -45
  142. package/dist/esm/index.web168.js +2 -4
  143. package/dist/esm/index.web169.js +2 -4
  144. package/dist/esm/index.web170.js +13 -34
  145. package/dist/esm/index.web171.js +53 -10
  146. package/dist/esm/index.web172.js +6 -4
  147. package/dist/esm/index.web173.js +21 -28
  148. package/dist/esm/index.web174.js +17 -6
  149. package/dist/esm/index.web175.js +42 -29
  150. package/dist/esm/index.web176.js +3 -12
  151. package/dist/esm/index.web177.js +3 -55
  152. package/dist/esm/index.web178.js +32 -40
  153. package/dist/esm/index.web179.js +11 -126
  154. package/dist/esm/index.web180.js +4 -104
  155. package/dist/esm/index.web181.js +28 -6
  156. package/dist/esm/index.web182.js +7 -3
  157. package/dist/esm/index.web183.js +30 -76
  158. package/dist/esm/index.web184.js +13 -2
  159. package/dist/esm/index.web185.js +56 -2
  160. package/dist/esm/index.web186.js +39 -34
  161. package/dist/esm/index.web187.js +126 -5
  162. package/dist/esm/index.web188.js +101 -31
  163. package/dist/esm/index.web189.js +6 -14
  164. package/dist/esm/index.web190.js +3 -35
  165. package/dist/esm/index.web191.js +77 -17
  166. package/dist/esm/index.web192.js +2 -9
  167. package/dist/esm/index.web193.js +2 -11
  168. package/dist/esm/index.web194.js +37 -11
  169. package/dist/esm/index.web195.js +6 -13
  170. package/dist/esm/index.web196.js +34 -5
  171. package/dist/esm/index.web197.js +15 -5
  172. package/dist/esm/index.web198.js +34 -10
  173. package/dist/esm/index.web199.js +19 -2
  174. package/dist/esm/index.web2.js +2 -2
  175. package/dist/esm/index.web200.js +9 -2
  176. package/dist/esm/index.web201.js +11 -2
  177. package/dist/esm/index.web202.js +11 -108
  178. package/dist/esm/index.web203.js +14 -2
  179. package/dist/esm/index.web204.js +5 -103
  180. package/dist/esm/index.web205.js +5 -79
  181. package/dist/esm/index.web206.js +10 -78
  182. package/dist/esm/index.web207.js +2 -21
  183. package/dist/esm/index.web208.js +109 -10
  184. package/dist/esm/index.web209.js +2 -20
  185. package/dist/esm/index.web210.js +8 -94
  186. package/dist/esm/index.web211.js +2 -21
  187. package/dist/esm/index.web212.js +361 -110
  188. package/dist/esm/index.web213.js +826 -7
  189. package/dist/esm/index.web214.js +39 -2
  190. package/dist/esm/index.web215.js +2 -369
  191. package/dist/esm/index.web216.js +69 -826
  192. package/dist/esm/index.web217.js +33 -37
  193. package/dist/esm/index.web218.js +15 -2
  194. package/dist/esm/index.web219.js +103 -69
  195. package/dist/esm/index.web220.js +76 -32
  196. package/dist/esm/index.web221.js +78 -14
  197. package/dist/esm/index.web222.js +40 -14
  198. package/dist/esm/index.web223.js +18 -2
  199. package/dist/esm/index.web224.js +27 -19
  200. package/dist/esm/index.web225.js +7 -32
  201. package/dist/esm/index.web226.js +11 -7
  202. package/dist/esm/index.web227.js +11 -45
  203. package/dist/esm/index.web228.js +8 -2
  204. package/dist/esm/index.web229.js +17 -2
  205. package/dist/esm/index.web230.js +81 -2
  206. package/dist/esm/index.web231.js +19 -16
  207. package/dist/esm/index.web232.js +2 -28
  208. package/dist/esm/index.web233.js +19 -7
  209. package/dist/esm/index.web234.js +32 -10
  210. package/dist/esm/index.web235.js +6 -12
  211. package/dist/esm/index.web236.js +2 -10
  212. package/dist/esm/index.web237.js +2 -17
  213. package/dist/esm/index.web238.js +2 -81
  214. package/dist/esm/index.web239.js +4 -2
  215. package/dist/esm/index.web240.js +79 -5
  216. package/dist/esm/index.web241.js +5 -79
  217. package/dist/esm/index.web242.js +1 -1
  218. package/dist/esm/index.web3.js +1 -1
  219. package/dist/esm/index.web8.js +1 -1
  220. package/dist/esm/index.web91.js +1 -1
  221. package/dist/esm/index.web99.js +3 -3
  222. package/dist/native/index.native102.js +3 -3
  223. package/dist/native/index.native105.js +2 -2
  224. package/dist/native/index.native11.js +1 -1
  225. package/dist/native/index.native120.js +12 -12
  226. package/dist/native/index.native121.js +16 -89
  227. package/dist/native/index.native122.js +21 -15
  228. package/dist/native/index.native123.js +49 -21
  229. package/dist/native/index.native124.js +88 -49
  230. package/dist/native/index.native126.js +12 -12
  231. package/dist/native/index.native127.js +12 -12
  232. package/dist/native/index.native129.js +1 -1
  233. package/dist/native/index.native133.js +1 -1
  234. package/dist/native/index.native134.js +1 -1
  235. package/dist/native/index.native135.js +11 -53
  236. package/dist/native/index.native136.js +11 -10
  237. package/dist/native/index.native137.js +55 -2
  238. package/dist/native/index.native138.js +11 -45
  239. package/dist/native/index.native139.js +2 -14
  240. package/dist/native/index.native140.js +45 -5
  241. package/dist/native/index.native141.js +13 -12
  242. package/dist/native/index.native142.js +4 -11
  243. package/dist/native/index.native143.js +1 -1
  244. package/dist/native/index.native147.js +2 -14
  245. package/dist/native/index.native148.js +2 -28
  246. package/dist/native/index.native149.js +13 -7
  247. package/dist/native/index.native150.js +55 -3
  248. package/dist/native/index.native151.js +6 -27
  249. package/dist/native/index.native152.js +21 -8
  250. package/dist/native/index.native153.js +17 -7
  251. package/dist/native/index.native154.js +44 -78
  252. package/dist/native/index.native155.js +3 -27
  253. package/dist/native/index.native156.js +3 -3
  254. package/dist/native/index.native157.js +34 -14
  255. package/dist/native/index.native158.js +12 -4
  256. package/dist/native/index.native159.js +4 -13
  257. package/dist/native/index.native160.js +27 -18
  258. package/dist/native/index.native161.js +6 -60
  259. package/dist/native/index.native162.js +32 -17
  260. package/dist/native/index.native163.js +10 -21
  261. package/dist/native/index.native164.js +55 -8
  262. package/dist/native/index.native165.js +41 -40
  263. package/dist/native/index.native166.js +127 -7
  264. package/dist/native/index.native167.js +103 -19
  265. package/dist/native/index.native168.js +7 -2
  266. package/dist/native/index.native169.js +3 -2
  267. package/dist/native/index.native170.js +78 -13
  268. package/dist/native/index.native171.js +2 -56
  269. package/dist/native/index.native172.js +2 -7
  270. package/dist/native/index.native173.js +34 -18
  271. package/dist/native/index.native174.js +5 -16
  272. package/dist/native/index.native175.js +31 -42
  273. package/dist/native/index.native176.js +14 -3
  274. package/dist/native/index.native177.js +34 -3
  275. package/dist/native/index.native178.js +17 -33
  276. package/dist/native/index.native179.js +8 -12
  277. package/dist/native/index.native180.js +10 -4
  278. package/dist/native/index.native181.js +11 -28
  279. package/dist/native/index.native182.js +13 -6
  280. package/dist/native/index.native183.js +5 -32
  281. package/dist/native/index.native184.js +5 -13
  282. package/dist/native/index.native185.js +10 -55
  283. package/dist/native/index.native186.js +13 -42
  284. package/dist/native/index.native187.js +26 -126
  285. package/dist/native/index.native188.js +7 -104
  286. package/dist/native/index.native189.js +3 -6
  287. package/dist/native/index.native190.js +28 -3
  288. package/dist/native/index.native191.js +8 -78
  289. package/dist/native/index.native192.js +8 -2
  290. package/dist/native/index.native193.js +80 -2
  291. package/dist/native/index.native194.js +25 -35
  292. package/dist/native/index.native195.js +3 -6
  293. package/dist/native/index.native196.js +14 -34
  294. package/dist/native/index.native197.js +4 -14
  295. package/dist/native/index.native198.js +13 -34
  296. package/dist/native/index.native199.js +18 -17
  297. package/dist/native/index.native200.js +60 -8
  298. package/dist/native/index.native201.js +17 -10
  299. package/dist/native/index.native202.js +23 -11
  300. package/dist/native/index.native203.js +8 -13
  301. package/dist/native/index.native204.js +41 -5
  302. package/dist/native/index.native205.js +8 -5
  303. package/dist/native/index.native206.js +20 -10
  304. package/dist/native/index.native207.js +102 -19
  305. package/dist/native/index.native208.js +79 -10
  306. package/dist/native/index.native209.js +79 -20
  307. package/dist/native/index.native210.js +20 -93
  308. package/dist/native/index.native211.js +9 -20
  309. package/dist/native/index.native212.js +16 -114
  310. package/dist/native/index.native213.js +94 -2
  311. package/dist/native/index.native214.js +20 -103
  312. package/dist/native/index.native215.js +112 -73
  313. package/dist/native/index.native216.js +2 -79
  314. package/dist/native/index.native228.js +1 -1
  315. package/dist/native/index.native231.js +6 -32
  316. package/dist/native/index.native232.js +32 -6
  317. package/dist/native/index.native233.js +3 -46
  318. package/dist/native/index.native234.js +45 -16
  319. package/dist/native/index.native235.js +18 -28
  320. package/dist/native/index.native236.js +26 -6
  321. package/dist/native/index.native237.js +6 -9
  322. package/dist/native/index.native238.js +11 -13
  323. package/dist/native/index.native239.js +11 -8
  324. package/dist/native/index.native240.js +7 -14
  325. package/dist/native/index.native241.js +16 -80
  326. package/dist/native/index.native242.js +80 -3
  327. package/dist/native/index.native248.js +1 -1
  328. package/dist/native/index.native79.js +1 -1
  329. package/dist/native-types/version.d.ts +1 -1
  330. package/dist/types/version.d.ts +1 -1
  331. package/dist/web/index.web102.js +2 -2
  332. package/dist/web/index.web106.js +3 -3
  333. package/dist/web/index.web117.js +12 -12
  334. package/dist/web/index.web118.js +13 -373
  335. package/dist/web/index.web119.js +25 -2
  336. package/dist/web/index.web120.js +48 -63
  337. package/dist/web/index.web121.js +189 -177
  338. package/dist/web/index.web122.js +2 -31
  339. package/dist/web/index.web123.js +65 -28
  340. package/dist/web/index.web124.js +360 -12
  341. package/dist/web/index.web125.js +28 -22
  342. package/dist/web/index.web126.js +28 -50
  343. package/dist/web/index.web127.js +54 -4
  344. package/dist/web/index.web128.js +10 -12
  345. package/dist/web/index.web129.js +2 -12
  346. package/dist/web/index.web130.js +45 -945
  347. package/dist/web/index.web131.js +14 -2
  348. package/dist/web/index.web132.js +944 -49
  349. package/dist/web/index.web133.js +2 -27
  350. package/dist/web/index.web134.js +50 -5
  351. package/dist/web/index.web135.js +26 -47
  352. package/dist/web/index.web136.js +5 -55
  353. package/dist/web/index.web137.js +47 -10
  354. package/dist/web/index.web138.js +5 -2
  355. package/dist/web/index.web139.js +12 -44
  356. package/dist/web/index.web140.js +11 -13
  357. package/dist/web/index.web146.js +1 -1
  358. package/dist/web/index.web158.js +1 -1
  359. package/dist/web/index.web162.js +20 -13
  360. package/dist/web/index.web163.js +9 -55
  361. package/dist/web/index.web164.js +20 -7
  362. package/dist/web/index.web165.js +90 -18
  363. package/dist/web/index.web166.js +20 -17
  364. package/dist/web/index.web167.js +117 -45
  365. package/dist/web/index.web168.js +2 -4
  366. package/dist/web/index.web169.js +2 -4
  367. package/dist/web/index.web170.js +13 -34
  368. package/dist/web/index.web171.js +53 -10
  369. package/dist/web/index.web172.js +6 -4
  370. package/dist/web/index.web173.js +21 -28
  371. package/dist/web/index.web174.js +17 -6
  372. package/dist/web/index.web175.js +42 -29
  373. package/dist/web/index.web176.js +3 -12
  374. package/dist/web/index.web177.js +3 -55
  375. package/dist/web/index.web178.js +32 -40
  376. package/dist/web/index.web179.js +11 -126
  377. package/dist/web/index.web180.js +4 -104
  378. package/dist/web/index.web181.js +28 -6
  379. package/dist/web/index.web182.js +7 -3
  380. package/dist/web/index.web183.js +30 -76
  381. package/dist/web/index.web184.js +13 -2
  382. package/dist/web/index.web185.js +56 -2
  383. package/dist/web/index.web186.js +39 -34
  384. package/dist/web/index.web187.js +126 -5
  385. package/dist/web/index.web188.js +101 -31
  386. package/dist/web/index.web189.js +6 -14
  387. package/dist/web/index.web190.js +3 -35
  388. package/dist/web/index.web191.js +77 -17
  389. package/dist/web/index.web192.js +2 -9
  390. package/dist/web/index.web193.js +2 -11
  391. package/dist/web/index.web194.js +37 -11
  392. package/dist/web/index.web195.js +6 -13
  393. package/dist/web/index.web196.js +34 -5
  394. package/dist/web/index.web197.js +15 -5
  395. package/dist/web/index.web198.js +34 -10
  396. package/dist/web/index.web199.js +19 -2
  397. package/dist/web/index.web2.js +2 -2
  398. package/dist/web/index.web200.js +9 -2
  399. package/dist/web/index.web201.js +11 -2
  400. package/dist/web/index.web202.js +11 -108
  401. package/dist/web/index.web203.js +14 -2
  402. package/dist/web/index.web204.js +5 -103
  403. package/dist/web/index.web205.js +5 -79
  404. package/dist/web/index.web206.js +10 -78
  405. package/dist/web/index.web207.js +2 -21
  406. package/dist/web/index.web208.js +109 -10
  407. package/dist/web/index.web209.js +2 -20
  408. package/dist/web/index.web210.js +8 -94
  409. package/dist/web/index.web211.js +2 -21
  410. package/dist/web/index.web212.js +361 -110
  411. package/dist/web/index.web213.js +826 -7
  412. package/dist/web/index.web214.js +39 -2
  413. package/dist/web/index.web215.js +2 -369
  414. package/dist/web/index.web216.js +69 -826
  415. package/dist/web/index.web217.js +33 -37
  416. package/dist/web/index.web218.js +15 -2
  417. package/dist/web/index.web219.js +103 -69
  418. package/dist/web/index.web220.js +76 -32
  419. package/dist/web/index.web221.js +78 -14
  420. package/dist/web/index.web222.js +40 -14
  421. package/dist/web/index.web223.js +18 -2
  422. package/dist/web/index.web224.js +27 -19
  423. package/dist/web/index.web225.js +7 -32
  424. package/dist/web/index.web226.js +11 -7
  425. package/dist/web/index.web227.js +11 -45
  426. package/dist/web/index.web228.js +8 -2
  427. package/dist/web/index.web229.js +17 -2
  428. package/dist/web/index.web230.js +81 -2
  429. package/dist/web/index.web231.js +19 -16
  430. package/dist/web/index.web232.js +2 -28
  431. package/dist/web/index.web233.js +19 -7
  432. package/dist/web/index.web234.js +32 -10
  433. package/dist/web/index.web235.js +6 -12
  434. package/dist/web/index.web236.js +2 -10
  435. package/dist/web/index.web237.js +2 -17
  436. package/dist/web/index.web238.js +2 -81
  437. package/dist/web/index.web239.js +4 -2
  438. package/dist/web/index.web240.js +79 -5
  439. package/dist/web/index.web241.js +5 -79
  440. package/dist/web/index.web242.js +1 -1
  441. package/dist/web/index.web3.js +1 -1
  442. package/dist/web/index.web8.js +1 -1
  443. package/dist/web/index.web91.js +1 -1
  444. package/dist/web/index.web99.js +3 -3
  445. package/dist/web-types/version.d.ts +1 -1
  446. package/package.json +2 -2
@@ -1,947 +1,47 @@
1
- import { __exports as N } from "./index.web131.js";
2
- import { __require as Fr } from "./index.web132.js";
3
- import { __require as Ur } from "./index.web133.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" ? 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", {
24
- enumerable: !0,
25
- get: function() {
26
- if (u.isBuffer(this))
27
- return this.buffer;
28
- }
29
- }), Object.defineProperty(u.prototype, "offset", {
30
- enumerable: !0,
31
- get: function() {
32
- if (u.isBuffer(this))
33
- return this.byteOffset;
34
- }
35
- });
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"));
701
- });
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");
897
- }
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
- }
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];
920
- 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);
944
- }
1
+ const o = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, t = (c) => {
2
+ const s = o.exec(c);
3
+ if (!s || s[4] && s[1])
4
+ throw new TypeError("Invalid time period format");
5
+ const a = parseFloat(s[2]), r = s[3].toLowerCase();
6
+ let e;
7
+ switch (r) {
8
+ case "sec":
9
+ case "secs":
10
+ case "second":
11
+ case "seconds":
12
+ case "s":
13
+ e = Math.round(a);
14
+ break;
15
+ case "minute":
16
+ case "minutes":
17
+ case "min":
18
+ case "mins":
19
+ case "m":
20
+ e = Math.round(a * 60);
21
+ break;
22
+ case "hour":
23
+ case "hours":
24
+ case "hr":
25
+ case "hrs":
26
+ case "h":
27
+ e = Math.round(a * 3600);
28
+ break;
29
+ case "day":
30
+ case "days":
31
+ case "d":
32
+ e = Math.round(a * 86400);
33
+ break;
34
+ case "week":
35
+ case "weeks":
36
+ case "w":
37
+ e = Math.round(a * 604800);
38
+ break;
39
+ default:
40
+ e = Math.round(a * 31557600);
41
+ break;
42
+ }
43
+ return s[1] === "-" || s[4] === "ago" ? -e : e;
44
+ };
945
45
  export {
946
- Sr as __require
46
+ t as default
947
47
  };