@argent/x-shared 1.37.0 → 1.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (669) hide show
  1. package/dist/.eslintrc.d.cts +45 -0
  2. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  3. package/dist/_virtual/_commonjsHelpers.js +6 -0
  4. package/dist/_virtual/semver.cjs +1 -0
  5. package/dist/_virtual/semver.js +4 -0
  6. package/dist/commitlint.config.d.cts +2 -0
  7. package/dist/index.cjs +1 -0
  8. package/dist/index.d.ts +2 -19
  9. package/dist/index.js +424 -4
  10. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
  11. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/_shortw_utils.js +14 -0
  12. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
  13. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
  14. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
  15. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/modular.js +203 -0
  16. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.cjs +1 -0
  17. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/poseidon.js +68 -0
  18. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
  19. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/utils.js +166 -0
  20. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
  21. package/dist/node_modules/.pnpm/@noble_curves@1.0.0/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
  22. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  23. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/_assert.js +48 -0
  24. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
  25. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/crypto.js +4 -0
  26. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
  27. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/hmac.js +42 -0
  28. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  29. package/dist/node_modules/.pnpm/@noble_hashes@1.3.0/node_modules/@noble/hashes/esm/utils.js +47 -0
  30. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  31. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_assert.js +31 -0
  32. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
  33. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_sha2.js +61 -0
  34. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  35. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/_u64.js +21 -0
  36. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
  37. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha256.js +114 -0
  38. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  39. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/sha3.js +107 -0
  40. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  41. package/dist/node_modules/.pnpm/@noble_hashes@1.3.3/node_modules/@noble/hashes/esm/utils.js +38 -0
  42. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  43. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js +32 -0
  44. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  45. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js +21 -0
  46. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  47. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js +107 -0
  48. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  49. package/dist/node_modules/.pnpm/@noble_hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js +44 -0
  50. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.cjs +1 -0
  51. package/dist/node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.js +622 -0
  52. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.cjs +1 -0
  53. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +20 -0
  54. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.cjs +1 -0
  55. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +20 -0
  56. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.cjs +1 -0
  57. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +6 -0
  58. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.cjs +1 -0
  59. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +20 -0
  60. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.cjs +1 -0
  61. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +6 -0
  62. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.cjs +1 -0
  63. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +13 -0
  64. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.cjs +1 -0
  65. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
  66. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.cjs +1 -0
  67. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js +8 -0
  68. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.cjs +1 -0
  69. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js +9 -0
  70. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
  71. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +10 -0
  72. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.cjs +1 -0
  73. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js +9 -0
  74. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.cjs +1 -0
  75. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
  76. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.cjs +1 -0
  77. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js +9 -0
  78. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.cjs +1 -0
  79. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js +6 -0
  80. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.cjs +1 -0
  81. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +16 -0
  82. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.cjs +1 -0
  83. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +33 -0
  84. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.cjs +1 -0
  85. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +6 -0
  86. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.cjs +1 -0
  87. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +5 -0
  88. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.cjs +1 -0
  89. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js +9 -0
  90. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.cjs +1 -0
  91. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
  92. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.cjs +1 -0
  93. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +8 -0
  94. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.cjs +1 -0
  95. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +9 -0
  96. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.cjs +1 -0
  97. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
  98. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.cjs +1 -0
  99. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +6 -0
  100. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.cjs +1 -0
  101. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +7 -0
  102. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.cjs +1 -0
  103. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +7 -0
  104. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.cjs +1 -0
  105. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +13 -0
  106. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.cjs +1 -0
  107. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +9 -0
  108. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.cjs +1 -0
  109. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +9 -0
  110. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.cjs +1 -0
  111. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +7 -0
  112. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.cjs +1 -0
  113. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +11 -0
  114. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.cjs +1 -0
  115. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +6 -0
  116. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
  117. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +12 -0
  118. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.cjs +1 -0
  119. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +8 -0
  120. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.cjs +1 -0
  121. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +7 -0
  122. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.cjs +1 -0
  123. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +8 -0
  124. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
  125. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +13 -0
  126. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
  127. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  128. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
  129. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +7 -0
  130. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
  131. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +7 -0
  132. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
  133. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +8 -0
  134. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.cjs +1 -0
  135. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +5 -0
  136. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.cjs +1 -0
  137. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
  138. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.cjs +1 -0
  139. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
  140. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.cjs +1 -0
  141. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +7 -0
  142. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.cjs +1 -0
  143. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +6 -0
  144. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.cjs +1 -0
  145. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +9 -0
  146. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.cjs +1 -0
  147. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js +9 -0
  148. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.cjs +1 -0
  149. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +17 -0
  150. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.cjs +1 -0
  151. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +6 -0
  152. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.cjs +1 -0
  153. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +12 -0
  154. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.cjs +1 -0
  155. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
  156. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.cjs +1 -0
  157. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js +5 -0
  158. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.cjs +1 -0
  159. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js +7 -0
  160. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.cjs +1 -0
  161. package/dist/node_modules/.pnpm/micro-starknet@0.2.3/node_modules/micro-starknet/lib/esm/index.js +134 -0
  162. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.cjs +1 -0
  163. package/dist/node_modules/.pnpm/semver@6.3.1/node_modules/semver/semver.js +629 -0
  164. package/dist/simulation.cjs +1 -0
  165. package/dist/simulation.d.ts +1 -1
  166. package/dist/simulation.js +69 -1
  167. package/dist/src/account/account.model.cjs +1 -0
  168. package/dist/src/account/account.model.js +45 -0
  169. package/dist/src/account/accountv4.cjs +1 -0
  170. package/dist/src/account/accountv4.js +14 -0
  171. package/dist/src/account/preferences.model.cjs +1 -0
  172. package/dist/src/account/preferences.model.js +11 -0
  173. package/dist/src/assets/tokens.json.cjs +1 -0
  174. package/dist/src/assets/tokens.json.js +181 -0
  175. package/dist/src/backend/schema.cjs +1 -0
  176. package/dist/src/backend/schema.js +14 -0
  177. package/dist/src/bigdecimal/constants.cjs +1 -0
  178. package/dist/src/bigdecimal/constants.js +4 -0
  179. package/dist/src/bigdecimal/createUnitsSchema.cjs +1 -0
  180. package/dist/src/bigdecimal/createUnitsSchema.js +8 -0
  181. package/dist/src/bigdecimal/formatUnits.cjs +1 -0
  182. package/dist/src/bigdecimal/formatUnits.js +11 -0
  183. package/dist/src/bigdecimal/index.cjs +1 -0
  184. package/dist/src/bigdecimal/index.js +33 -0
  185. package/dist/src/bigdecimal/lib.cjs +1 -0
  186. package/dist/src/bigdecimal/lib.js +53 -0
  187. package/dist/src/bigdecimal/parseUnits.cjs +1 -0
  188. package/dist/src/bigdecimal/parseUnits.js +11 -0
  189. package/dist/src/bigdecimal/utils.cjs +1 -0
  190. package/dist/src/bigdecimal/utils.js +37 -0
  191. package/dist/src/cache/CacheService.cjs +1 -0
  192. package/dist/src/cache/CacheService.js +37 -0
  193. package/dist/src/chains/starknet/address.cjs +1 -0
  194. package/dist/src/chains/starknet/address.js +64 -0
  195. package/dist/src/chains/starknet/addressDomain.cjs +1 -0
  196. package/dist/src/chains/starknet/addressDomain.js +29 -0
  197. package/dist/src/chains/starknet/addressInput.cjs +1 -0
  198. package/dist/src/chains/starknet/addressInput.js +7 -0
  199. package/dist/src/chains/starknet/argentName.cjs +1 -0
  200. package/dist/src/chains/starknet/argentName.js +14 -0
  201. package/dist/src/chains/starknet/cairoVersionSchema.cjs +1 -0
  202. package/dist/src/chains/starknet/cairoVersionSchema.js +5 -0
  203. package/dist/src/chains/starknet/constants.cjs +1 -0
  204. package/dist/src/chains/starknet/constants.js +10 -0
  205. package/dist/src/chains/starknet/getAddressFromArgentName.cjs +1 -0
  206. package/dist/src/chains/starknet/getAddressFromArgentName.js +48 -0
  207. package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -0
  208. package/dist/src/chains/starknet/getAddressFromStarkName.js +70 -0
  209. package/dist/src/chains/starknet/network.cjs +1 -0
  210. package/dist/src/chains/starknet/network.js +20 -0
  211. package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -0
  212. package/dist/src/chains/starknet/services/address/StarknetAddressService.js +38 -0
  213. package/dist/src/chains/starknet/services/deploymentData/constants.cjs +1 -0
  214. package/dist/src/chains/starknet/services/deploymentData/constants.js +22 -0
  215. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.cjs +1 -0
  216. package/dist/src/chains/starknet/services/deploymentData/deploymentData.schema.js +19 -0
  217. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.cjs +1 -0
  218. package/dist/src/chains/starknet/services/deploymentData/findImplementationForAccount.js +69 -0
  219. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.cjs +1 -0
  220. package/dist/src/chains/starknet/services/deploymentData/getAccountClassHash.js +59 -0
  221. package/dist/src/chains/starknet/starknetId.cjs +1 -0
  222. package/dist/src/chains/starknet/starknetId.js +14 -0
  223. package/dist/src/errors/account.cjs +1 -0
  224. package/dist/src/errors/account.js +14 -0
  225. package/dist/src/errors/address.cjs +1 -0
  226. package/dist/src/errors/address.js +14 -0
  227. package/dist/src/errors/baseErrors.cjs +1 -0
  228. package/dist/src/errors/baseErrors.js +15 -0
  229. package/dist/src/errors/call.cjs +1 -0
  230. package/dist/src/errors/call.js +14 -0
  231. package/dist/src/errors/network.cjs +1 -0
  232. package/dist/src/errors/network.js +14 -0
  233. package/dist/src/errors/review.cjs +1 -0
  234. package/dist/src/errors/review.js +14 -0
  235. package/dist/src/errors/swap.cjs +1 -0
  236. package/dist/src/errors/swap.js +14 -0
  237. package/dist/src/features/simulation/activity/normalize.cjs +1 -0
  238. package/dist/src/features/simulation/activity/normalize.js +40 -0
  239. package/dist/src/features/simulation/activity/schema.cjs +1 -0
  240. package/dist/src/features/simulation/activity/schema.js +236 -0
  241. package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -0
  242. package/dist/src/features/simulation/activity/utils/createNativeActivity.js +31 -0
  243. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.cjs +1 -0
  244. package/dist/src/features/simulation/activity/utils/getAnyActivityTitle.js +24 -0
  245. package/dist/src/features/simulation/activity/utils/getOverallLastModified.cjs +1 -0
  246. package/dist/src/features/simulation/activity/utils/getOverallLastModified.js +6 -0
  247. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.cjs +1 -0
  248. package/dist/src/features/simulation/activity/utils/hasDelegationActivity.js +10 -0
  249. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.cjs +1 -0
  250. package/dist/src/features/simulation/activity/utils/isMulticallWithDeploymentActivity.js +11 -0
  251. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.cjs +1 -0
  252. package/dist/src/features/simulation/activity/utils/isRejectOnChainActivity.js +26 -0
  253. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.cjs +1 -0
  254. package/dist/src/features/simulation/activity/utils/isUpgradeActivity.js +22 -0
  255. package/dist/src/features/simulation/activity/utils/parseAccountActivities.cjs +1 -0
  256. package/dist/src/features/simulation/activity/utils/parseAccountActivities.js +13 -0
  257. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.cjs +1 -0
  258. package/dist/src/features/simulation/activity/utils/parseFinanceActivities.js +33 -0
  259. package/dist/src/features/simulation/fees/schema.cjs +1 -0
  260. package/dist/src/features/simulation/fees/schema.js +20 -0
  261. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -0
  262. package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +18 -0
  263. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.cjs +1 -0
  264. package/dist/src/features/simulation/transactionReview/getMessageFromSimulationError.js +6 -0
  265. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -0
  266. package/dist/src/features/simulation/transactionReview/schema.js +215 -0
  267. package/dist/src/features/simulation/warning/helper.cjs +1 -0
  268. package/dist/src/features/simulation/warning/helper.js +12 -0
  269. package/dist/src/features/simulation/warning/schema.cjs +1 -0
  270. package/dist/src/features/simulation/warning/schema.js +11 -0
  271. package/dist/src/features/swap/models/order.model.cjs +1 -0
  272. package/dist/src/features/swap/models/order.model.js +20 -0
  273. package/dist/src/features/swap/models/quote.model.cjs +1 -0
  274. package/dist/src/features/swap/models/quote.model.js +36 -0
  275. package/dist/src/features/swap/models/trade.model.cjs +1 -0
  276. package/dist/src/features/swap/models/trade.model.js +28 -0
  277. package/dist/src/features/swap/services/implementation.cjs +1 -0
  278. package/dist/src/features/swap/services/implementation.js +76 -0
  279. package/dist/src/features/swap/utils/slippage.cjs +1 -0
  280. package/dist/src/features/swap/utils/slippage.js +28 -0
  281. package/dist/src/features/swap/utils/totalFee.cjs +1 -0
  282. package/dist/src/features/swap/utils/totalFee.js +13 -0
  283. package/dist/src/http/DateService.cjs +1 -0
  284. package/dist/src/http/DateService.js +17 -0
  285. package/dist/src/http/HttpError.cjs +1 -0
  286. package/dist/src/http/HttpError.js +8 -0
  287. package/dist/src/http/HttpService.cjs +1 -0
  288. package/dist/src/http/HttpService.js +90 -0
  289. package/dist/src/http/IHttpService.cjs +1 -0
  290. package/dist/src/http/IHttpService.js +7 -0
  291. package/dist/src/http/SWRService.cjs +1 -0
  292. package/dist/src/http/SWRService.js +60 -0
  293. package/dist/src/http/fetcher.cjs +1 -0
  294. package/dist/src/http/fetcher.js +36 -0
  295. package/dist/{http → src/http}/index.d.ts +0 -1
  296. package/dist/src/http/time.cjs +1 -0
  297. package/dist/src/http/time.js +19 -0
  298. package/dist/src/index.d.ts +17 -0
  299. package/dist/src/knownDapps/KnownDappsBackendService.cjs +1 -0
  300. package/dist/src/knownDapps/KnownDappsBackendService.js +16 -0
  301. package/dist/src/knownDapps/schema.cjs +1 -0
  302. package/dist/src/knownDapps/schema.js +44 -0
  303. package/dist/src/knownDapps/utils/getDapplandUrl.cjs +1 -0
  304. package/dist/src/knownDapps/utils/getDapplandUrl.js +12 -0
  305. package/dist/src/nameResolution/ResolveNameService.cjs +1 -0
  306. package/dist/src/nameResolution/ResolveNameService.js +42 -0
  307. package/dist/src/nameResolution/schema.cjs +1 -0
  308. package/dist/src/nameResolution/schema.js +25 -0
  309. package/dist/src/nfts/BackendNftService.cjs +1 -0
  310. package/dist/src/nfts/BackendNftService.js +119 -0
  311. package/dist/src/nfts/BackendPaginationError.cjs +1 -0
  312. package/dist/src/nfts/BackendPaginationError.js +13 -0
  313. package/dist/{nfts → src/nfts}/index.d.ts +0 -1
  314. package/dist/src/nfts/utils.cjs +1 -0
  315. package/dist/src/nfts/utils.js +14 -0
  316. package/dist/src/onchainRecovery/OnchainRecoveryService.cjs +1 -0
  317. package/dist/src/onchainRecovery/OnchainRecoveryService.js +69 -0
  318. package/dist/src/onchainRecovery/schema.cjs +1 -0
  319. package/dist/src/onchainRecovery/schema.js +49 -0
  320. package/dist/src/platform/isBraveBrowser.cjs +1 -0
  321. package/dist/src/platform/isBraveBrowser.js +11 -0
  322. package/dist/src/platform/isBrowser.cjs +1 -0
  323. package/dist/src/platform/isBrowser.js +28 -0
  324. package/dist/src/signer/multisigner.cjs +1 -0
  325. package/dist/src/signer/multisigner.js +19 -0
  326. package/dist/src/signer/seedphrase.cjs +1 -0
  327. package/dist/src/signer/seedphrase.js +7 -0
  328. package/dist/src/tokens/balances.cjs +1 -0
  329. package/dist/src/tokens/balances.js +38 -0
  330. package/dist/src/tokens/constants.cjs +1 -0
  331. package/dist/src/tokens/constants.js +4 -0
  332. package/dist/src/tokens/convertTokenAmountToCurrencyValue.cjs +1 -0
  333. package/dist/src/tokens/convertTokenAmountToCurrencyValue.js +16 -0
  334. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.cjs +1 -0
  335. package/dist/src/tokens/convertTokenUnitAmountWithDecimals.js +11 -0
  336. package/dist/src/tokens/ensureDecimals.cjs +1 -0
  337. package/dist/src/tokens/ensureDecimals.js +5 -0
  338. package/dist/src/tokens/getCurrencySymbol.cjs +1 -0
  339. package/dist/src/tokens/getCurrencySymbol.js +15 -0
  340. package/dist/src/tokens/isUnlimitedAmount.cjs +1 -0
  341. package/dist/src/tokens/isUnlimitedAmount.js +5 -0
  342. package/dist/src/tokens/prettifyCurrencyValue.cjs +1 -0
  343. package/dist/src/tokens/prettifyCurrencyValue.js +11 -0
  344. package/dist/src/tokens/prettifyTokenAmount.cjs +1 -0
  345. package/dist/src/tokens/prettifyTokenAmount.js +23 -0
  346. package/dist/src/tokens/service/implementation.cjs +1 -0
  347. package/dist/{tokens → src/tokens}/service/implementation.d.ts +21 -2
  348. package/dist/src/tokens/service/implementation.js +64 -0
  349. package/dist/src/tokens/service/tokenError.cjs +1 -0
  350. package/dist/src/tokens/service/tokenError.js +14 -0
  351. package/dist/src/tokens/service/types/backend.model.cjs +1 -0
  352. package/dist/{tokens → src/tokens}/service/types/backend.model.d.ts +818 -73
  353. package/dist/src/tokens/service/types/backend.model.js +134 -0
  354. package/dist/src/tokens/service/types/defiPosition.model.cjs +1 -0
  355. package/dist/{tokens → src/tokens}/service/types/defiPosition.model.d.ts +1024 -64
  356. package/dist/src/tokens/service/types/defiPosition.model.js +75 -0
  357. package/dist/src/tokens/service/types/defiPositionType.model.cjs +1 -0
  358. package/dist/{tokens → src/tokens}/service/types/defiPositionType.model.d.ts +1 -1
  359. package/dist/src/tokens/service/types/defiPositionType.model.js +10 -0
  360. package/dist/src/tokens/service/types/unclaimedRewards.model.cjs +1 -0
  361. package/dist/src/tokens/service/types/unclaimedRewards.model.js +16 -0
  362. package/dist/src/tokens/service/types/webToken.model.cjs +1 -0
  363. package/dist/src/tokens/service/types/webToken.model.js +45 -0
  364. package/dist/src/transactions/amount.cjs +1 -0
  365. package/dist/src/transactions/amount.js +24 -0
  366. package/dist/src/transactions/buildTransactions.cjs +1 -0
  367. package/dist/src/transactions/buildTransactions.js +34 -0
  368. package/dist/src/transactions/errors.cjs +1 -0
  369. package/dist/src/transactions/errors.js +19 -0
  370. package/dist/src/transactions/estimate/argentMaxFee.cjs +1 -0
  371. package/dist/src/transactions/estimate/argentMaxFee.js +13 -0
  372. package/dist/src/transactions/estimate/error.cjs +1 -0
  373. package/dist/src/transactions/estimate/error.js +14 -0
  374. package/dist/src/transactions/estimate/model.cjs +1 -0
  375. package/dist/src/transactions/estimate/model.js +14 -0
  376. package/dist/src/transactions/estimate/utils.cjs +1 -0
  377. package/dist/src/transactions/estimate/utils.js +232 -0
  378. package/dist/src/transactions/findTransfersAndApprovals.cjs +1 -0
  379. package/dist/src/transactions/findTransfersAndApprovals.js +31 -0
  380. package/dist/src/transactions/getPrettyRcpError.cjs +1 -0
  381. package/dist/src/transactions/getPrettyRcpError.js +11 -0
  382. package/dist/src/transactions/getTransactionVersion.cjs +1 -0
  383. package/dist/src/transactions/getTransactionVersion.js +18 -0
  384. package/dist/{transactions → src/transactions}/index.d.ts +0 -6
  385. package/dist/src/transactions/service/implementation.cjs +1 -0
  386. package/dist/src/transactions/service/implementation.js +182 -0
  387. package/dist/src/transactions/service/types.cjs +1 -0
  388. package/dist/src/transactions/service/types.js +10 -0
  389. package/dist/src/transactions/transactionReviewTypes.cjs +1 -0
  390. package/dist/src/transactions/transactionReviewTypes.js +10 -0
  391. package/dist/src/transactions/transactionVersion.cjs +1 -0
  392. package/dist/src/transactions/transactionVersion.js +14 -0
  393. package/dist/src/transactions/txv3.cjs +1 -0
  394. package/dist/src/transactions/txv3.js +14 -0
  395. package/dist/src/utils/address.cjs +1 -0
  396. package/dist/src/utils/address.js +4 -0
  397. package/dist/src/utils/arrays.cjs +1 -0
  398. package/dist/src/utils/arrays.js +4 -0
  399. package/dist/src/utils/avatarImage.cjs +4 -0
  400. package/dist/src/utils/avatarImage.js +42 -0
  401. package/dist/src/utils/base58.cjs +1 -0
  402. package/dist/src/utils/base58.js +15 -0
  403. package/dist/src/utils/bigNumber.cjs +1 -0
  404. package/dist/src/utils/bigNumber.js +7 -0
  405. package/dist/src/utils/bips.cjs +1 -0
  406. package/dist/src/utils/bips.js +11 -0
  407. package/dist/src/utils/daysBetween.cjs +1 -0
  408. package/dist/src/utils/daysBetween.js +7 -0
  409. package/dist/src/utils/env.cjs +1 -0
  410. package/dist/src/utils/env.js +4 -0
  411. package/dist/src/utils/hex.cjs +1 -0
  412. package/dist/src/utils/hex.js +9 -0
  413. package/dist/src/utils/id.cjs +1 -0
  414. package/dist/src/utils/id.js +8 -0
  415. package/dist/{utils → src/utils}/index.d.ts +0 -1
  416. package/dist/src/utils/initials.cjs +1 -0
  417. package/dist/src/utils/initials.js +16 -0
  418. package/dist/src/utils/isContractDeployed.cjs +1 -0
  419. package/dist/src/utils/isContractDeployed.js +10 -0
  420. package/dist/src/utils/nonNullable.cjs +1 -0
  421. package/dist/src/utils/nonNullable.js +7 -0
  422. package/dist/src/utils/number/isAllowedAddressHexInputValue.cjs +1 -0
  423. package/dist/src/utils/number/isAllowedAddressHexInputValue.js +7 -0
  424. package/dist/src/utils/number/isAllowedNumericInputValue.cjs +1 -0
  425. package/dist/src/utils/number/isAllowedNumericInputValue.js +8 -0
  426. package/dist/src/utils/number/isNumeric.cjs +1 -0
  427. package/dist/src/utils/number/isNumeric.js +4 -0
  428. package/dist/src/utils/number/prettifyNumber.cjs +1 -0
  429. package/dist/src/utils/number/prettifyNumber.js +47 -0
  430. package/dist/src/utils/parseAmount.cjs +1 -0
  431. package/dist/src/utils/parseAmount.js +14 -0
  432. package/dist/src/utils/pluralise.cjs +1 -0
  433. package/dist/src/utils/pluralise.js +4 -0
  434. package/dist/src/utils/readFileAsString.cjs +1 -0
  435. package/dist/src/utils/readFileAsString.js +10 -0
  436. package/dist/src/utils/schemas.cjs +1 -0
  437. package/dist/src/utils/schemas.js +29 -0
  438. package/dist/src/utils/starknet/starknet.cjs +1 -0
  439. package/dist/src/utils/starknet/starknet.js +57 -0
  440. package/dist/src/utils/starknet/starknetLibTypes.cjs +1 -0
  441. package/dist/src/utils/starknet/starknetLibTypes.js +7 -0
  442. package/dist/src/utils/starknet/starknetSchemas.cjs +1 -0
  443. package/dist/src/utils/starknet/starknetSchemas.js +102 -0
  444. package/dist/src/utils/transactions.cjs +1 -0
  445. package/dist/src/utils/transactions.js +11 -0
  446. package/dist/src/utils/url/urlWithQuery.cjs +1 -0
  447. package/dist/src/utils/url/urlWithQuery.js +9 -0
  448. package/dist/src/utils/voidify.cjs +1 -0
  449. package/dist/src/utils/voidify.js +8 -0
  450. package/dist/swap.cjs +1 -0
  451. package/dist/swap.d.ts +1 -1
  452. package/dist/swap.js +20 -1
  453. package/package.json +14 -28
  454. package/dist/bips-DKbEGvGl.mjs +0 -114
  455. package/dist/bips-DxN0hSiY.js +0 -1
  456. package/dist/hooks/index.d.ts +0 -2
  457. package/dist/hooks/useDebounce.d.ts +0 -1
  458. package/dist/hooks/useDebouncedValue.d.ts +0 -1
  459. package/dist/http/swr.d.ts +0 -21
  460. package/dist/index.mjs +0 -4466
  461. package/dist/nfts/useNfts.d.ts +0 -23
  462. package/dist/providers/WebAmplitude/WebAmplitudeProvider.d.ts +0 -7
  463. package/dist/providers/WebAmplitude/index.d.ts +0 -2
  464. package/dist/providers/WebAmplitude/service.d.ts +0 -7
  465. package/dist/providers/WebAmplitude/types.d.ts +0 -6
  466. package/dist/providers/WebAmplitude/utils.d.ts +0 -2
  467. package/dist/providers/index.d.ts +0 -1
  468. package/dist/simulation.mjs +0 -255
  469. package/dist/swap.mjs +0 -183
  470. package/dist/transactionVersion-C7p_qk9x.js +0 -1
  471. package/dist/transactionVersion-Cjoucwcx.mjs +0 -793
  472. package/dist/transactions/useBalanceChange.d.ts +0 -5
  473. package/dist/transactions/useErc20Transactions.d.ts +0 -6
  474. package/dist/transactions/useErc721Transactions.d.ts +0 -5
  475. package/dist/transactions/useErc721Transfers.d.ts +0 -5
  476. package/dist/transactions/useMaxAmountTransaction.d.ts +0 -7
  477. package/dist/transactions/useTransactionReview.d.ts +0 -15
  478. package/dist/transactions/useTransactionReviewV2web.d.ts +0 -1004
  479. package/dist/utils/useEventEmitter.d.ts +0 -67
  480. package/dist/webToken.model-5HUiR8ER.js +0 -1
  481. package/dist/webToken.model-CpudLBp0.mjs +0 -1913
  482. package/dist/{account → src/account}/account.model.d.ts +0 -0
  483. package/dist/{account → src/account}/accountv4.d.ts +0 -0
  484. package/dist/{account → src/account}/index.d.ts +0 -0
  485. package/dist/{account → src/account}/preferences.model.d.ts +0 -0
  486. package/dist/{backend → src/backend}/index.d.ts +0 -0
  487. package/dist/{backend → src/backend}/schema.d.ts +0 -0
  488. package/dist/{backend → src/backend}/types.d.ts +0 -0
  489. package/dist/{bigdecimal → src/bigdecimal}/constants.d.ts +0 -0
  490. package/dist/{bigdecimal → src/bigdecimal}/createUnitsSchema.d.ts +0 -0
  491. package/dist/{bigdecimal → src/bigdecimal}/formatUnits.d.ts +0 -0
  492. package/dist/{bigdecimal → src/bigdecimal}/index.d.ts +0 -0
  493. package/dist/{bigdecimal → src/bigdecimal}/lib.d.ts +0 -0
  494. package/dist/{bigdecimal → src/bigdecimal}/parseUnits.d.ts +0 -0
  495. package/dist/{bigdecimal → src/bigdecimal}/type.d.ts +0 -0
  496. package/dist/{bigdecimal → src/bigdecimal}/types.d.ts +0 -0
  497. package/dist/{bigdecimal → src/bigdecimal}/utils.d.ts +0 -0
  498. package/dist/{cache → src/cache}/CacheService.d.ts +0 -0
  499. package/dist/{cache → src/cache}/ICacheService.d.ts +0 -0
  500. package/dist/{cache → src/cache}/index.d.ts +0 -0
  501. package/dist/{chains → src/chains}/index.d.ts +0 -0
  502. package/dist/{chains → src/chains}/starknet/address.d.ts +0 -0
  503. package/dist/{chains → src/chains}/starknet/addressDomain.d.ts +0 -0
  504. package/dist/{chains → src/chains}/starknet/addressInput.d.ts +0 -0
  505. package/dist/{chains → src/chains}/starknet/argentName.d.ts +0 -0
  506. package/dist/{chains → src/chains}/starknet/cairoVersionSchema.d.ts +0 -0
  507. package/dist/{chains → src/chains}/starknet/constants.d.ts +0 -0
  508. package/dist/{chains → src/chains}/starknet/getAddressFromArgentName.d.ts +0 -0
  509. package/dist/{chains → src/chains}/starknet/getAddressFromStarkName.d.ts +0 -0
  510. package/dist/{chains → src/chains}/starknet/index.d.ts +0 -0
  511. package/dist/{chains → src/chains}/starknet/network.d.ts +0 -0
  512. package/dist/{chains → src/chains}/starknet/services/address/IStarknetAddressService.d.ts +0 -0
  513. package/dist/{chains → src/chains}/starknet/services/address/StarknetAddressService.d.ts +0 -0
  514. package/dist/{chains → src/chains}/starknet/services/address/index.d.ts +0 -0
  515. package/dist/{chains → src/chains}/starknet/services/deploymentData/constants.d.ts +0 -0
  516. package/dist/{chains → src/chains}/starknet/services/deploymentData/deploymentData.schema.d.ts +0 -0
  517. package/dist/{chains → src/chains}/starknet/services/deploymentData/findImplementationForAccount.d.ts +0 -0
  518. package/dist/{chains → src/chains}/starknet/services/deploymentData/getAccountClassHash.d.ts +0 -0
  519. package/dist/{chains → src/chains}/starknet/services/deploymentData/index.d.ts +0 -0
  520. package/dist/{chains → src/chains}/starknet/services/index.d.ts +0 -0
  521. package/dist/{chains → src/chains}/starknet/starknetId.d.ts +0 -0
  522. package/dist/{errors → src/errors}/account.d.ts +0 -0
  523. package/dist/{errors → src/errors}/address.d.ts +0 -0
  524. package/dist/{errors → src/errors}/baseErrors.d.ts +0 -0
  525. package/dist/{errors → src/errors}/call.d.ts +0 -0
  526. package/dist/{errors → src/errors}/network.d.ts +0 -0
  527. package/dist/{errors → src/errors}/review.d.ts +0 -0
  528. package/dist/{errors → src/errors}/swap.d.ts +0 -0
  529. package/dist/{features → src/features}/simulation/activity/index.d.ts +0 -0
  530. package/dist/{features → src/features}/simulation/activity/normalize.d.ts +0 -0
  531. package/dist/{features → src/features}/simulation/activity/schema.d.ts +200 -200
  532. package/dist/{features → src/features}/simulation/activity/utils/createNativeActivity.d.ts +6 -6
  533. package/dist/{features → src/features}/simulation/activity/utils/getAnyActivityTitle.d.ts +0 -0
  534. package/dist/{features → src/features}/simulation/activity/utils/getOverallLastModified.d.ts +0 -0
  535. package/dist/{features → src/features}/simulation/activity/utils/hasDelegationActivity.d.ts +0 -0
  536. package/dist/{features → src/features}/simulation/activity/utils/index.d.ts +0 -0
  537. package/dist/{features → src/features}/simulation/activity/utils/isMulticallWithDeploymentActivity.d.ts +0 -0
  538. package/dist/{features → src/features}/simulation/activity/utils/isRejectOnChainActivity.d.ts +0 -0
  539. package/dist/{features → src/features}/simulation/activity/utils/isUpgradeActivity.d.ts +0 -0
  540. package/dist/{features → src/features}/simulation/activity/utils/parseAccountActivities.d.ts +0 -0
  541. package/dist/{features → src/features}/simulation/activity/utils/parseFinanceActivities.d.ts +0 -0
  542. package/dist/{features → src/features}/simulation/fees/index.d.ts +0 -0
  543. package/dist/{features → src/features}/simulation/fees/schema.d.ts +0 -0
  544. package/dist/{features → src/features}/simulation/index.d.ts +0 -0
  545. package/dist/{features → src/features}/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.d.ts +0 -0
  546. package/dist/{features → src/features}/simulation/transactionReview/getMessageFromSimulationError.d.ts +0 -0
  547. package/dist/{features → src/features}/simulation/transactionReview/index.d.ts +0 -0
  548. package/dist/{features → src/features}/simulation/transactionReview/schema.d.ts +1324 -1324
  549. package/dist/{features → src/features}/simulation/warning/helper.d.ts +0 -0
  550. package/dist/{features → src/features}/simulation/warning/index.d.ts +0 -0
  551. package/dist/{features → src/features}/simulation/warning/schema.d.ts +0 -0
  552. package/dist/{features → src/features}/swap/index.d.ts +0 -0
  553. package/dist/{features → src/features}/swap/models/index.d.ts +0 -0
  554. package/dist/{features → src/features}/swap/models/order.model.d.ts +0 -0
  555. package/dist/{features → src/features}/swap/models/quote.model.d.ts +0 -0
  556. package/dist/{features → src/features}/swap/models/trade.model.d.ts +0 -0
  557. package/dist/{features → src/features}/swap/services/implementation.d.ts +0 -0
  558. package/dist/{features → src/features}/swap/services/index.d.ts +0 -0
  559. package/dist/{features → src/features}/swap/services/interface.d.ts +0 -0
  560. package/dist/{features → src/features}/swap/services/order.mock.d.ts +0 -0
  561. package/dist/{features → src/features}/swap/services/quote.mock.d.ts +0 -0
  562. package/dist/{features → src/features}/swap/tests/token.mock.d.ts +0 -0
  563. package/dist/{features → src/features}/swap/tests/trade.mock.d.ts +0 -0
  564. package/dist/{features → src/features}/swap/tests/walletAccount.mock.d.ts +0 -0
  565. package/dist/{features → src/features}/swap/utils/index.d.ts +0 -0
  566. package/dist/{features → src/features}/swap/utils/slippage.d.ts +0 -0
  567. package/dist/{features → src/features}/swap/utils/totalFee.d.ts +0 -0
  568. package/dist/{http → src/http}/DateService.d.ts +0 -0
  569. package/dist/{http → src/http}/HttpError.d.ts +0 -0
  570. package/dist/{http → src/http}/HttpService.d.ts +0 -0
  571. package/dist/{http → src/http}/IDateService.d.ts +0 -0
  572. package/dist/{http → src/http}/IHttpService.d.ts +0 -0
  573. package/dist/{http → src/http}/SWRService.d.ts +0 -0
  574. package/dist/{http → src/http}/apiData.d.ts +0 -0
  575. package/dist/{http → src/http}/fetcher.d.ts +0 -0
  576. package/dist/{http → src/http}/time.d.ts +0 -0
  577. package/dist/{knownDapps → src/knownDapps}/IKnownDappsBackendService.d.ts +0 -0
  578. package/dist/{knownDapps → src/knownDapps}/KnownDappsBackendService.d.ts +0 -0
  579. package/dist/{knownDapps → src/knownDapps}/index.d.ts +0 -0
  580. package/dist/{knownDapps → src/knownDapps}/schema.d.ts +0 -0
  581. package/dist/{knownDapps → src/knownDapps}/utils/getDapplandUrl.d.ts +0 -0
  582. package/dist/{knownDapps → src/knownDapps}/utils/index.d.ts +0 -0
  583. package/dist/{nameResolution → src/nameResolution}/IResolveNameService.d.ts +0 -0
  584. package/dist/{nameResolution → src/nameResolution}/ResolveNameService.d.ts +0 -0
  585. package/dist/{nameResolution → src/nameResolution}/index.d.ts +0 -0
  586. package/dist/{nameResolution → src/nameResolution}/schema.d.ts +0 -0
  587. package/dist/{nfts → src/nfts}/BackendNftService.d.ts +0 -0
  588. package/dist/{nfts → src/nfts}/BackendPaginationError.d.ts +0 -0
  589. package/dist/{nfts → src/nfts}/INFTService.d.ts +0 -0
  590. package/dist/{nfts → src/nfts}/utils.d.ts +0 -0
  591. package/dist/{onchainRecovery → src/onchainRecovery}/IOnchainRecoveryService.d.ts +0 -0
  592. package/dist/{onchainRecovery → src/onchainRecovery}/OnchainRecoveryService.d.ts +0 -0
  593. package/dist/{onchainRecovery → src/onchainRecovery}/index.d.ts +0 -0
  594. package/dist/{onchainRecovery → src/onchainRecovery}/schema.d.ts +0 -0
  595. package/dist/{platform → src/platform}/index.d.ts +0 -0
  596. package/dist/{platform → src/platform}/isBraveBrowser.d.ts +0 -0
  597. package/dist/{platform → src/platform}/isBrowser.d.ts +0 -0
  598. package/dist/{signer → src/signer}/index.d.ts +0 -0
  599. package/dist/{signer → src/signer}/multisigner.d.ts +0 -0
  600. package/dist/{signer → src/signer}/seedphrase.d.ts +0 -0
  601. package/dist/{tokens → src/tokens}/balances.d.ts +0 -0
  602. package/dist/{tokens → src/tokens}/constants.d.ts +0 -0
  603. package/dist/{tokens → src/tokens}/convertTokenAmountToCurrencyValue.d.ts +0 -0
  604. package/dist/{tokens → src/tokens}/convertTokenUnitAmountWithDecimals.d.ts +0 -0
  605. package/dist/{tokens → src/tokens}/ensureDecimals.d.ts +0 -0
  606. package/dist/{tokens → src/tokens}/getCurrencySymbol.d.ts +0 -0
  607. package/dist/{tokens → src/tokens}/index.d.ts +0 -0
  608. package/dist/{tokens → src/tokens}/isUnlimitedAmount.d.ts +0 -0
  609. package/dist/{tokens → src/tokens}/prettifyCurrencyValue.d.ts +0 -0
  610. package/dist/{tokens → src/tokens}/prettifyTokenAmount.d.ts +0 -0
  611. package/dist/{tokens → src/tokens}/service/index.d.ts +0 -0
  612. package/dist/{tokens → src/tokens}/service/interface.d.ts +0 -0
  613. package/dist/{tokens → src/tokens}/service/tokenError.d.ts +0 -0
  614. package/dist/{tokens → src/tokens}/service/types/index.d.ts +0 -0
  615. package/dist/{tokens → src/tokens}/service/types/unclaimedRewards.model.d.ts +0 -0
  616. package/dist/{tokens → src/tokens}/service/types/webToken.model.d.ts +0 -0
  617. package/dist/{tokens → src/tokens}/token.d.ts +0 -0
  618. package/dist/{transactions → src/transactions}/aggregatedSimDataTypes.d.ts +0 -0
  619. package/dist/{transactions → src/transactions}/amount.d.ts +0 -0
  620. package/dist/{transactions → src/transactions}/buildTransactions.d.ts +0 -0
  621. package/dist/{transactions → src/transactions}/deployAccountTypes.d.ts +0 -0
  622. package/dist/{transactions → src/transactions}/errors.d.ts +0 -0
  623. package/dist/{transactions → src/transactions}/estimate/argentMaxFee.d.ts +0 -0
  624. package/dist/{transactions → src/transactions}/estimate/error.d.ts +0 -0
  625. package/dist/{transactions → src/transactions}/estimate/index.d.ts +0 -0
  626. package/dist/{transactions → src/transactions}/estimate/model.d.ts +0 -0
  627. package/dist/{transactions → src/transactions}/estimate/utils.d.ts +0 -0
  628. package/dist/{transactions → src/transactions}/findTransfersAndApprovals.d.ts +0 -0
  629. package/dist/{transactions → src/transactions}/getPrettyRcpError.d.ts +0 -0
  630. package/dist/{transactions → src/transactions}/getTransactionVersion.d.ts +0 -0
  631. package/dist/{transactions → src/transactions}/service/implementation.d.ts +0 -0
  632. package/dist/{transactions → src/transactions}/service/index.d.ts +0 -0
  633. package/dist/{transactions → src/transactions}/service/interface.d.ts +0 -0
  634. package/dist/{transactions → src/transactions}/service/types.d.ts +2 -2
  635. /package/dist/{transactions → src/transactions}/transactionAction.d.ts +0 -0
  636. /package/dist/{transactions → src/transactions}/transactionReviewTypes.d.ts +0 -0
  637. /package/dist/{transactions → src/transactions}/transactionSimulationTypes.d.ts +0 -0
  638. /package/dist/{transactions → src/transactions}/transactionVersion.d.ts +0 -0
  639. /package/dist/{transactions → src/transactions}/txv3.d.ts +0 -0
  640. /package/dist/{transactions → src/transactions}/types.d.ts +0 -0
  641. /package/dist/{utils → src/utils}/address.d.ts +0 -0
  642. /package/dist/{utils → src/utils}/arrays.d.ts +0 -0
  643. /package/dist/{utils → src/utils}/avatarImage.d.ts +0 -0
  644. /package/dist/{utils → src/utils}/base58.d.ts +0 -0
  645. /package/dist/{utils → src/utils}/bigNumber.d.ts +0 -0
  646. /package/dist/{utils → src/utils}/bips.d.ts +0 -0
  647. /package/dist/{utils → src/utils}/daysBetween.d.ts +0 -0
  648. /package/dist/{utils → src/utils}/env.d.ts +0 -0
  649. /package/dist/{utils → src/utils}/hex.d.ts +0 -0
  650. /package/dist/{utils → src/utils}/id.d.ts +0 -0
  651. /package/dist/{utils → src/utils}/initials.d.ts +0 -0
  652. /package/dist/{utils → src/utils}/isContractDeployed.d.ts +0 -0
  653. /package/dist/{utils → src/utils}/nonNullable.d.ts +0 -0
  654. /package/dist/{utils → src/utils}/number/index.d.ts +0 -0
  655. /package/dist/{utils → src/utils}/number/isAllowedAddressHexInputValue.d.ts +0 -0
  656. /package/dist/{utils → src/utils}/number/isAllowedNumericInputValue.d.ts +0 -0
  657. /package/dist/{utils → src/utils}/number/isNumeric.d.ts +0 -0
  658. /package/dist/{utils → src/utils}/number/prettifyNumber.d.ts +0 -0
  659. /package/dist/{utils → src/utils}/parseAmount.d.ts +0 -0
  660. /package/dist/{utils → src/utils}/pluralise.d.ts +0 -0
  661. /package/dist/{utils → src/utils}/readFileAsString.d.ts +0 -0
  662. /package/dist/{utils → src/utils}/schemas.d.ts +0 -0
  663. /package/dist/{utils → src/utils}/starknet/starknet.d.ts +0 -0
  664. /package/dist/{utils → src/utils}/starknet/starknetLibTypes.d.ts +0 -0
  665. /package/dist/{utils → src/utils}/starknet/starknetSchemas.d.ts +0 -0
  666. /package/dist/{utils → src/utils}/transactions.d.ts +0 -0
  667. /package/dist/{utils → src/utils}/url/index.d.ts +0 -0
  668. /package/dist/{utils → src/utils}/url/urlWithQuery.d.ts +0 -0
  669. /package/dist/{utils → src/utils}/voidify.d.ts +0 -0
@@ -1,67 +0,0 @@
1
- import { default as Emittery, DatalessEventNames, OmnipresentEventData } from 'emittery';
2
- import { FC, PropsWithChildren } from 'react';
3
- interface EventEmitterContextProps {
4
- emitter: Emittery;
5
- }
6
- export declare const useEventEmitterContext: () => EventEmitterContextProps | null;
7
- export declare const useIsEventEmitterEnabled: () => boolean;
8
- interface EventEmitterProviderProps extends PropsWithChildren {
9
- emitter: Emittery;
10
- }
11
- /**
12
- * Provides the instance of Emittery used by the hooks
13
- *
14
- * @example
15
- *
16
- * import Emittery from "emittery"
17
- *
18
- * function Component() {
19
- * const emitter = useRef(new Emittery()).current
20
- * return (
21
- * <EventEmitterProvider emitter={emitter}>
22
- * ...
23
- * </EventEmitterProvider>
24
- * )
25
- * }
26
- *
27
- * // typed events using Symbol
28
- *
29
- * const EventNameFooBar = Symbol("EventNameFooBar")
30
- *
31
- * type Events = { [EventNameFooBar]: void }
32
- *
33
- * // emit an event
34
- *
35
- * const emitEvent = useEmitEvent<Events>()
36
- * emitEvent(EventNameFooBar, ...)
37
- *
38
- * // listen for an event
39
- *
40
- * const eventListener = useEventListener<Events>()
41
- * eventListener(EventNameFooBar, () => {
42
- * ...
43
- * });
44
- */
45
- export declare const EventEmitterProvider: FC<EventEmitterProviderProps>;
46
- export declare const useEventEmitter: <EventData = Record<PropertyKey, unknown>, AllEventData = EventData & OmnipresentEventData, DatalessEvents = DatalessEventNames<EventData>>() => Emittery<EventData, AllEventData, DatalessEvents> | undefined;
47
- /**
48
- * Provides a typed event emitter - uses emitter.emit
49
- *
50
- * @example
51
- *
52
- * const emitEvent = useEmitEvent<Events>()
53
- * emitEvent(EventNameFooBar, ...)
54
- */
55
- export declare const useEmitEvent: <EventData = Record<PropertyKey, unknown>>() => (...args: any[]) => void;
56
- /**
57
- * Provides a typed event listener - uses emitter.on and automatically unsubscribes
58
- *
59
- * @example
60
- *
61
- * const eventListener = useEventListener<Events>()
62
- * eventListener(EventNameFooBar, () => {
63
- * ...
64
- * });
65
- */
66
- export declare const useEventListener: <EventData = Record<PropertyKey, unknown>, AllEventData = EventData & OmnipresentEventData>() => <Name extends keyof AllEventData>(eventName: Name | readonly Name[], listener: (eventData: AllEventData[Name]) => void) => void;
67
- export {};
@@ -1 +0,0 @@
1
- "use strict";const t=require("zod"),Ne=require("starknet"),or=require("lodash-es"),cr=require("react");require("swr");require("@scure/base");const jt=require("react/jsx-runtime");function Bt(i,f){let[z,w=""]=i.split(".");const R=z.startsWith("-");return R&&(z=z.slice(1)),w.length>f?Number(w[f])>=5?w=(BigInt(w.slice(0,f))+1n).toString().padStart(f,"0"):w=w.slice(0,f):w=w.padEnd(f,"0"),{value:BigInt(`${R?"-":""}${z}${w}`),decimals:f}}const lr=t.z.string().refine(i=>{if(i.toLowerCase()===i)return!0;try{return Ne.validateChecksumAddress(i)&&Mt(i)}catch{}return!1},"Invalid address (checksum error)"),wr=t.z.string().refine(i=>{try{return Ne.validateAndParseAddress(i)}catch{}return!1},"Invalid address (validation error)"),Ce=t.z.string().regex(/^0x[0-9a-fA-F]+$/,"Invalid address"),vr=Ce.min(50,"Addresses must at least be 50 characters long").max(66,"Addresses must at most be 66 characters long"),Lr=Ce.length(66,"Address must be 66 characters long"),me=vr.pipe(lr).transform(i=>`0x${(i.startsWith("0x")?i.slice(2):i).padStart(64,"0")}`),Ft=me.or(t.z.literal("")).transform(i=>i===""?void 0:i).optional(),Xe=Ce.transform(i=>`0x${i.replace(/^0x/,"").toLowerCase().padStart(64,"0")}`),yr=i=>me.safeParse(i).success,Cr=yr,De=i=>Ne.getChecksumAddress(i),Ut=i=>{const f=De(i),z=f.slice(0,2),w=f.slice(2,6),R=f.slice(-4);return`${z}${w}…${R}`},xt=i=>{const f=De(i),z=f.slice(0,2),R=f.slice(2).match(/.{1,4}/g)||[];return`${z} ${R.join(" ")}`},Mt=i=>!/^0x[0-9a-f]{63,64}$/.test(i),Dr=(i,f)=>{try{return!i||!f?!1:Ne.num.hexToDecimalString(i)===Ne.num.hexToDecimalString(f)}catch{}return!1},Pr=i=>{try{return Ne.num.toBigInt(Ce.parse(i))===Ne.constants.ZERO}catch{}return!1},Gt=(i,f)=>!!(f!=null&&f.some(z=>Dr(z,i))),$t=or.memoize(i=>{const f=i.slice(0,6),z=i.slice(-4);return`${f}…${z}`}),Xt=or.memoize((i,f)=>{if(i.length<f)return i;const z=Math.floor((f-1)/2),w=i.slice(0,z),R=i.slice(-z);return`${w}…${R}`}),Vt=t.z.string().regex(/^[a-zA-Z0-9.-]*$/g,"Invalid address character").max(66,"Address cannot be over 66 characters"),br=Lr.pipe(lr).pipe(wr),Pe=t.z.string().regex(/^([a-zA-Z0-9-]+\.)+argent.xyz$/,"Invalid Argent name").max(253,"Argent name cannot be over 253 characters"),_r=i=>Pe.safeParse(i).success,kr=(i,f)=>{try{return f?xe(i)===xe(f):!1}catch{}return!1},xe=i=>Pe.parse(i).toLowerCase(),Ve=t.z.string().regex(/^([a-zA-Z0-9-]+\.)+stark$/,"Invalid Starknet ID").max(50,"Starknet ID cannot be over 50 characters"),jr=i=>Ve.safeParse(i).success,Br=(i,f)=>{try{return f?Me(i)===Me(f):!1}catch{}return!1},Me=i=>Ve.parse(i).toLowerCase(),qe=t.z.union([Pe,Ve]),qt=t.z.union([me,qe]),Ht=t.z.union([br,qe]),Wt=i=>qe.safeParse(i).success,Zt=(i,f)=>{try{return f?kr(i,f)||Br(i,f):!1}catch{}return!1},Yt=i=>jr(i)?Me(i):_r(i)?xe(i):De(i),Fr=t.z.union([t.z.literal("0"),t.z.literal("1")]);function Kt(i){var f=[];if(i.length===0)return"";if(typeof i[0]!="string")throw new TypeError("Url must be a string. Received "+i[0]);if(i[0].match(/^[^/:]+:\/*$/)&&i.length>1){var z=i.shift();i[0]=z+i[0]}i[0].match(/^file:\/\/\//)?i[0]=i[0].replace(/^([^/:]+):\/*/,"$1:///"):i[0]=i[0].replace(/^([^/:]+):\/*/,"$1://");for(var w=0;w<i.length;w++){var R=i[w];if(typeof R!="string")throw new TypeError("Url must be a string. Received "+R);R!==""&&(w>0&&(R=R.replace(/^[\/]+/,"")),w<i.length-1?R=R.replace(/[\/]+$/,""):R=R.replace(/[\/]+$/,"/"),f.push(R))}var x=f.join("/");x=x.replace(/\/(\?|&|#[^!])/g,"$1");var U=x.split("?");return x=U.shift()+(U.length>0?"?":"")+U.join("&"),x}function Ur(){var i;return typeof arguments[0]=="object"?i=arguments[0]:i=[].slice.call(arguments),Kt(i)}class be extends Error{constructor({code:f,message:z,options:w={}},R){const{error:x,context:U}=w;super(z,{cause:x}),this.errorMessages=R,this.name="BaseError",this.context=U,this.code=f,this.setMessageByCode(f,z)}setMessageByCode(f,z){!f||!this.errorMessages||z||(this.message=this.errorMessages[f])}toString(){return this.message||""}}var er;(function(i){i.NOT_VALID="Invalid address",i.NOT_FOUND="Address not found",i.STARKNAME_NOT_FOUND="Stark name not found",i.STARKNAME_ERROR="Could not get address from stark name",i.STARKNAME_INVALID_ADDRESS="Stark name resolved to an invalid address",i.ARGENT_NAME_NOT_FOUND="Argent name not found",i.NO_ADDRESS_FROM_ARGENT_NAME="Could not get address from Argent name",i.ARGENT_NAME_INVALID_ADDRESS="Argent name resolved to an invalid address",i.NO_ADDRESS_FROM_DOMAIN="Could not get address from domain",i.ARGENT_NAME_INVALID_NETWORK="Argent name is not enabled on the requested network"})(er||(er={}));class Le extends be{constructor(f){super(f,er),this.name="AddressError"}}class He extends Error{constructor(f,z,w){super(f),this.status=z,this.data=w,Object.setPrototypeOf(this,He.prototype)}}exports.HTTP_ERROR_MESSAGE=void 0;(function(i){i.FAILED_TO_FETCH_URL="Failed to fetch url",i.FAILED_TO_POST_URL="Failed to post url"})(exports.HTTP_ERROR_MESSAGE||(exports.HTTP_ERROR_MESSAGE={}));const Jt=t.z.object({walletAddress:Xe,ens:Pe,chain:t.z.enum(["ethereum","starknet"]),deleted:t.z.boolean(),walletDeployed:t.z.boolean()}).or(t.z.object({status:t.z.string()}));async function Qt(i,f,z,w="starknet"){const R={ens:i,chain:w},x=new URLSearchParams(R),U=Ur(z,"wallet",`?${x}`);try{const k=await f.get(U),C=k&&"walletAddress"in k?k.walletAddress:void 0;if(!C)throw new Le({code:"NO_ADDRESS_FROM_ARGENT_NAME"});if(Pr(C))throw new Le({code:"ARGENT_NAME_NOT_FOUND",message:`${i} not found`});if(!Cr(C))throw new Le({code:"ARGENT_NAME_INVALID_ADDRESS",message:`${i} resolved to an invalid address (${C})`});return De(C)}catch(k){throw k instanceof He&&k.status===404?new Le({code:"ARGENT_NAME_NOT_FOUND",message:`${i} not found`}):k}}var rr;(function(i){i.NOT_VALID="Invalid call"})(rr||(rr={}));class en extends be{constructor(f){super(f,rr),this.name="CallError"}}var tr;(function(i){i.NO_NETWORK_OR_MULTICALL="Missing networkId or multicall",i.NOT_FOUND="Network not found"})(tr||(tr={}));class rn extends be{constructor(f){super(f,tr),this.name="NetworkError"}}const Te=t.z.union([t.z.string(),t.z.number(),t.z.bigint()]),xr=t.z.object({low:Te,high:Te}),Mr=t.z.array(t.z.string()).and(t.z.object({__compiled__:t.z.boolean().optional()}).optional()),Gr=t.z.lazy(()=>t.z.array(t.z.union([ye,t.z.array(ye),We]))),ye=t.z.union([Te,xr,t.z.any(),t.z.boolean()]),$r=t.z.lazy(()=>t.z.record(t.z.union([ye,t.z.array(ye),We]))),We=t.z.lazy(()=>t.z.union([$r,Gr])),Xr=t.z.union([We,Mr]).optional(),Vr=t.z.lazy(()=>t.z.object({contractAddress:t.z.string(),calldata:Xr,entrypoint:t.z.string().optional()})),tn=t.z.lazy(()=>Vr.and(t.z.object({entrypoint:t.z.string()}))),ce=t.z.string().refine(i=>typeof parseInt(i)=="number"),nn=t.z.tuple([ce]),an=t.z.tuple([ce]),sn=t.z.object({new_threshold:t.z.string().refine(i=>typeof parseInt(i)=="number"),signers_to_add:t.z.array(ce)}),on=t.z.object({new_threshold:t.z.string().refine(i=>typeof parseInt(i)=="number"),signers_to_remove:t.z.array(ce)}),cn=t.z.object({signer_to_remove:ce,signer_to_add:ce}),ln=t.z.tuple([ce]),un=t.z.tuple([ce]),fn=t.z.tuple([ce]),hn=t.z.tuple([ce]).rest(ce),dn=t.z.object({recipient:me,amount:t.z.object({low:Te,high:Te})}),qr=t.z.string().regex(/^(0x)?[0-9a-fA-F]+$/,"Invalid hex string"),ur=qr.transform(i=>{const f=i.startsWith("0x")?i.slice(2):i;return`0x${f.length%2===0?f:`0${f}`}`}),mn=t.z.object({cairoVersion:Fr,accountClassHash:ur}),En=t.z.array(t.z.string()),pn=t.z.object({implementation:t.z.string(),selector:ur,calldata:En}),gn=t.z.object({owner:t.z.string(),guardian:t.z.string().optional().transform(i=>i??"0")});exports.MultiSigner=void 0;(function(i){i.Starknet="Starknet",i.Secp256k1="Secp256k1",i.Secp256r1="Secp256r1",i.Eip191="Eip191",i.Webauthn="Webauthn"})(exports.MultiSigner||(exports.MultiSigner={}));function Sn(i,f){const z={Starknet:void 0,Secp256k1:void 0,Secp256r1:void 0,Eip191:void 0,Webauthn:void 0};return z[f]=i,new Ne.CairoCustomEnum(z)}var nr;(function(i){i.NOT_FOUND="Account not found",i.CALCULATED_ADDRESS_NO_MATCH="Calculated address does not match account address"})(nr||(nr={}));class In extends be{constructor(f){super(f,nr),this.name="AccountError"}}function Hr(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ir={exports:{}};(function(i,f){f=i.exports=D;var z;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?z=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:z=function(){},f.SEMVER_SPEC_VERSION="2.0.0";var w=256,R=Number.MAX_SAFE_INTEGER||9007199254740991,x=16,U=w-6,k=f.re=[],C=f.safeRe=[],S=f.src=[],E=f.tokens={},K=0;function P(e){E[e]=K++}var Ee="[a-zA-Z0-9-]",ne=[["\\s",1],["\\d",w],[Ee,U]];function pe(e){for(var s=0;s<ne.length;s++){var c=ne[s][0],I=ne[s][1];e=e.split(c+"*").join(c+"{0,"+I+"}").split(c+"+").join(c+"{1,"+I+"}")}return e}P("NUMERICIDENTIFIER"),S[E.NUMERICIDENTIFIER]="0|[1-9]\\d*",P("NUMERICIDENTIFIERLOOSE"),S[E.NUMERICIDENTIFIERLOOSE]="\\d+",P("NONNUMERICIDENTIFIER"),S[E.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+Ee+"*",P("MAINVERSION"),S[E.MAINVERSION]="("+S[E.NUMERICIDENTIFIER]+")\\.("+S[E.NUMERICIDENTIFIER]+")\\.("+S[E.NUMERICIDENTIFIER]+")",P("MAINVERSIONLOOSE"),S[E.MAINVERSIONLOOSE]="("+S[E.NUMERICIDENTIFIERLOOSE]+")\\.("+S[E.NUMERICIDENTIFIERLOOSE]+")\\.("+S[E.NUMERICIDENTIFIERLOOSE]+")",P("PRERELEASEIDENTIFIER"),S[E.PRERELEASEIDENTIFIER]="(?:"+S[E.NUMERICIDENTIFIER]+"|"+S[E.NONNUMERICIDENTIFIER]+")",P("PRERELEASEIDENTIFIERLOOSE"),S[E.PRERELEASEIDENTIFIERLOOSE]="(?:"+S[E.NUMERICIDENTIFIERLOOSE]+"|"+S[E.NONNUMERICIDENTIFIER]+")",P("PRERELEASE"),S[E.PRERELEASE]="(?:-("+S[E.PRERELEASEIDENTIFIER]+"(?:\\."+S[E.PRERELEASEIDENTIFIER]+")*))",P("PRERELEASELOOSE"),S[E.PRERELEASELOOSE]="(?:-?("+S[E.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+S[E.PRERELEASEIDENTIFIERLOOSE]+")*))",P("BUILDIDENTIFIER"),S[E.BUILDIDENTIFIER]=Ee+"+",P("BUILD"),S[E.BUILD]="(?:\\+("+S[E.BUILDIDENTIFIER]+"(?:\\."+S[E.BUILDIDENTIFIER]+")*))",P("FULL"),P("FULLPLAIN"),S[E.FULLPLAIN]="v?"+S[E.MAINVERSION]+S[E.PRERELEASE]+"?"+S[E.BUILD]+"?",S[E.FULL]="^"+S[E.FULLPLAIN]+"$",P("LOOSEPLAIN"),S[E.LOOSEPLAIN]="[v=\\s]*"+S[E.MAINVERSIONLOOSE]+S[E.PRERELEASELOOSE]+"?"+S[E.BUILD]+"?",P("LOOSE"),S[E.LOOSE]="^"+S[E.LOOSEPLAIN]+"$",P("GTLT"),S[E.GTLT]="((?:<|>)?=?)",P("XRANGEIDENTIFIERLOOSE"),S[E.XRANGEIDENTIFIERLOOSE]=S[E.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",P("XRANGEIDENTIFIER"),S[E.XRANGEIDENTIFIER]=S[E.NUMERICIDENTIFIER]+"|x|X|\\*",P("XRANGEPLAIN"),S[E.XRANGEPLAIN]="[v=\\s]*("+S[E.XRANGEIDENTIFIER]+")(?:\\.("+S[E.XRANGEIDENTIFIER]+")(?:\\.("+S[E.XRANGEIDENTIFIER]+")(?:"+S[E.PRERELEASE]+")?"+S[E.BUILD]+"?)?)?",P("XRANGEPLAINLOOSE"),S[E.XRANGEPLAINLOOSE]="[v=\\s]*("+S[E.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[E.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[E.XRANGEIDENTIFIERLOOSE]+")(?:"+S[E.PRERELEASELOOSE]+")?"+S[E.BUILD]+"?)?)?",P("XRANGE"),S[E.XRANGE]="^"+S[E.GTLT]+"\\s*"+S[E.XRANGEPLAIN]+"$",P("XRANGELOOSE"),S[E.XRANGELOOSE]="^"+S[E.GTLT]+"\\s*"+S[E.XRANGEPLAINLOOSE]+"$",P("COERCE"),S[E.COERCE]="(^|[^\\d])(\\d{1,"+x+"})(?:\\.(\\d{1,"+x+"}))?(?:\\.(\\d{1,"+x+"}))?(?:$|[^\\d])",P("COERCERTL"),k[E.COERCERTL]=new RegExp(S[E.COERCE],"g"),C[E.COERCERTL]=new RegExp(pe(S[E.COERCE]),"g"),P("LONETILDE"),S[E.LONETILDE]="(?:~>?)",P("TILDETRIM"),S[E.TILDETRIM]="(\\s*)"+S[E.LONETILDE]+"\\s+",k[E.TILDETRIM]=new RegExp(S[E.TILDETRIM],"g"),C[E.TILDETRIM]=new RegExp(pe(S[E.TILDETRIM]),"g");var ge="$1~";P("TILDE"),S[E.TILDE]="^"+S[E.LONETILDE]+S[E.XRANGEPLAIN]+"$",P("TILDELOOSE"),S[E.TILDELOOSE]="^"+S[E.LONETILDE]+S[E.XRANGEPLAINLOOSE]+"$",P("LONECARET"),S[E.LONECARET]="(?:\\^)",P("CARETTRIM"),S[E.CARETTRIM]="(\\s*)"+S[E.LONECARET]+"\\s+",k[E.CARETTRIM]=new RegExp(S[E.CARETTRIM],"g"),C[E.CARETTRIM]=new RegExp(pe(S[E.CARETTRIM]),"g");var we="$1^";P("CARET"),S[E.CARET]="^"+S[E.LONECARET]+S[E.XRANGEPLAIN]+"$",P("CARETLOOSE"),S[E.CARETLOOSE]="^"+S[E.LONECARET]+S[E.XRANGEPLAINLOOSE]+"$",P("COMPARATORLOOSE"),S[E.COMPARATORLOOSE]="^"+S[E.GTLT]+"\\s*("+S[E.LOOSEPLAIN]+")$|^$",P("COMPARATOR"),S[E.COMPARATOR]="^"+S[E.GTLT]+"\\s*("+S[E.FULLPLAIN]+")$|^$",P("COMPARATORTRIM"),S[E.COMPARATORTRIM]="(\\s*)"+S[E.GTLT]+"\\s*("+S[E.LOOSEPLAIN]+"|"+S[E.XRANGEPLAIN]+")",k[E.COMPARATORTRIM]=new RegExp(S[E.COMPARATORTRIM],"g"),C[E.COMPARATORTRIM]=new RegExp(pe(S[E.COMPARATORTRIM]),"g");var O="$1$2$3";P("HYPHENRANGE"),S[E.HYPHENRANGE]="^\\s*("+S[E.XRANGEPLAIN]+")\\s+-\\s+("+S[E.XRANGEPLAIN]+")\\s*$",P("HYPHENRANGELOOSE"),S[E.HYPHENRANGELOOSE]="^\\s*("+S[E.XRANGEPLAINLOOSE]+")\\s+-\\s+("+S[E.XRANGEPLAINLOOSE]+")\\s*$",P("STAR"),S[E.STAR]="(<|>)?=?\\s*\\*";for(var re=0;re<K;re++)z(re,S[re]),k[re]||(k[re]=new RegExp(S[re]),C[re]=new RegExp(pe(S[re])));f.parse=ue;function ue(e,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),e instanceof D)return e;if(typeof e!="string"||e.length>w)return null;var c=s.loose?C[E.LOOSE]:C[E.FULL];if(!c.test(e))return null;try{return new D(e,s)}catch{return null}}f.valid=ve;function ve(e,s){var c=ue(e,s);return c?c.version:null}f.clean=J;function J(e,s){var c=ue(e.trim().replace(/^[=v]+/,""),s);return c?c.version:null}f.SemVer=D;function D(e,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),e instanceof D){if(e.loose===s.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>w)throw new TypeError("version is longer than "+w+" characters");if(!(this instanceof D))return new D(e,s);z("SemVer",e,s),this.options=s,this.loose=!!s.loose;var c=e.trim().match(s.loose?C[E.LOOSE]:C[E.FULL]);if(!c)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>R||this.major<0)throw new TypeError("Invalid major version");if(this.minor>R||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>R||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(function(I){if(/^[0-9]+$/.test(I)){var N=+I;if(N>=0&&N<R)return N}return I}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}D.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},D.prototype.toString=function(){return this.version},D.prototype.compare=function(e){return z("SemVer.compare",this.version,this.options,e),e instanceof D||(e=new D(e,this.options)),this.compareMain(e)||this.comparePre(e)},D.prototype.compareMain=function(e){return e instanceof D||(e=new D(e,this.options)),d(this.major,e.major)||d(this.minor,e.minor)||d(this.patch,e.patch)},D.prototype.comparePre=function(e){if(e instanceof D||(e=new D(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var s=0;do{var c=this.prerelease[s],I=e.prerelease[s];if(z("prerelease compare",s,c,I),c===void 0&&I===void 0)return 0;if(I===void 0)return 1;if(c===void 0)return-1;if(c===I)continue;return d(c,I)}while(++s)},D.prototype.compareBuild=function(e){e instanceof D||(e=new D(e,this.options));var s=0;do{var c=this.build[s],I=e.build[s];if(z("prerelease compare",s,c,I),c===void 0&&I===void 0)return 0;if(I===void 0)return 1;if(c===void 0)return-1;if(c===I)continue;return d(c,I)}while(++s)},D.prototype.inc=function(e,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var c=this.prerelease.length;--c>=0;)typeof this.prerelease[c]=="number"&&(this.prerelease[c]++,c=-2);c===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},f.inc=r;function r(e,s,c,I){typeof c=="string"&&(I=c,c=void 0);try{return new D(e,c).inc(s,I).version}catch{return null}}f.diff=n;function n(e,s){if(V(e,s))return null;var c=ue(e),I=ue(s),N="";if(c.prerelease.length||I.prerelease.length){N="pre";var T="prerelease"}for(var v in c)if((v==="major"||v==="minor"||v==="patch")&&c[v]!==I[v])return N+v;return T}f.compareIdentifiers=d;var a=/^[0-9]+$/;function d(e,s){var c=a.test(e),I=a.test(s);return c&&I&&(e=+e,s=+s),e===s?0:c&&!I?-1:I&&!c?1:e<s?-1:1}f.rcompareIdentifiers=l;function l(e,s){return d(s,e)}f.major=h;function h(e,s){return new D(e,s).major}f.minor=g;function g(e,s){return new D(e,s).minor}f.patch=o;function o(e,s){return new D(e,s).patch}f.compare=u;function u(e,s,c){return new D(e,c).compare(new D(s,c))}f.compareLoose=p;function p(e,s){return u(e,s,!0)}f.compareBuild=m;function m(e,s,c){var I=new D(e,c),N=new D(s,c);return I.compare(N)||I.compareBuild(N)}f.rcompare=A;function A(e,s,c){return u(s,e,c)}f.sort=L;function L(e,s){return e.sort(function(c,I){return f.compareBuild(c,I,s)})}f.rsort=y;function y(e,s){return e.sort(function(c,I){return f.compareBuild(I,c,s)})}f.gt=j;function j(e,s,c){return u(e,s,c)>0}f.lt=X;function X(e,s,c){return u(e,s,c)<0}f.eq=V;function V(e,s,c){return u(e,s,c)===0}f.neq=F;function F(e,s,c){return u(e,s,c)!==0}f.gte=$;function $(e,s,c){return u(e,s,c)>=0}f.lte=H;function H(e,s,c){return u(e,s,c)<=0}f.cmp=Se;function Se(e,s,c,I){switch(s){case"===":return typeof e=="object"&&(e=e.version),typeof c=="object"&&(c=c.version),e===c;case"!==":return typeof e=="object"&&(e=e.version),typeof c=="object"&&(c=c.version),e!==c;case"":case"=":case"==":return V(e,c,I);case"!=":return F(e,c,I);case">":return j(e,c,I);case">=":return $(e,c,I);case"<":return X(e,c,I);case"<=":return H(e,c,I);default:throw new TypeError("Invalid operator: "+s)}}f.Comparator=Y;function Y(e,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),e instanceof Y){if(e.loose===!!s.loose)return e;e=e.value}if(!(this instanceof Y))return new Y(e,s);e=e.trim().split(/\s+/).join(" "),z("comparator",e,s),this.options=s,this.loose=!!s.loose,this.parse(e),this.semver===fe?this.value="":this.value=this.operator+this.semver.version,z("comp",this)}var fe={};Y.prototype.parse=function(e){var s=this.options.loose?C[E.COMPARATORLOOSE]:C[E.COMPARATOR],c=e.match(s);if(!c)throw new TypeError("Invalid comparator: "+e);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new D(c[2],this.options.loose):this.semver=fe},Y.prototype.toString=function(){return this.value},Y.prototype.test=function(e){if(z("Comparator.test",e,this.options.loose),this.semver===fe||e===fe)return!0;if(typeof e=="string")try{e=new D(e,this.options)}catch{return!1}return Se(e,this.operator,this.semver,this.options)},Y.prototype.intersects=function(e,s){if(!(e instanceof Y))throw new TypeError("a Comparator is required");(!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1});var c;if(this.operator==="")return this.value===""?!0:(c=new M(e.value,s),ke(this.value,c,s));if(e.operator==="")return e.value===""?!0:(c=new M(this.value,s),ke(e.semver,c,s));var I=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),N=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),T=this.semver.version===e.semver.version,v=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),G=Se(this.semver,"<",e.semver,s)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),_=Se(this.semver,">",e.semver,s)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return I||N||T&&v||G||_},f.Range=M;function M(e,s){if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),e instanceof M)return e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease?e:new M(e.raw,s);if(e instanceof Y)return new M(e.value,s);if(!(this instanceof M))return new M(e,s);if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(c){return this.parseRange(c.trim())},this).filter(function(c){return c.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}M.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},M.prototype.toString=function(){return this.range},M.prototype.parseRange=function(e){var s=this.options.loose,c=s?C[E.HYPHENRANGELOOSE]:C[E.HYPHENRANGE];e=e.replace(c,Tt),z("hyphen replace",e),e=e.replace(C[E.COMPARATORTRIM],O),z("comparator trim",e,C[E.COMPARATORTRIM]),e=e.replace(C[E.TILDETRIM],ge),e=e.replace(C[E.CARETTRIM],we),e=e.split(/\s+/).join(" ");var I=s?C[E.COMPARATORLOOSE]:C[E.COMPARATOR],N=e.split(" ").map(function(T){return Z(T,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(N=N.filter(function(T){return!!T.match(I)})),N=N.map(function(T){return new Y(T,this.options)},this),N},M.prototype.intersects=function(e,s){if(!(e instanceof M))throw new TypeError("a Range is required");return this.set.some(function(c){return Re(c,s)&&e.set.some(function(I){return Re(I,s)&&c.every(function(N){return I.every(function(T){return N.intersects(T,s)})})})})};function Re(e,s){for(var c=!0,I=e.slice(),N=I.pop();c&&I.length;)c=I.every(function(T){return N.intersects(T,s)}),N=I.pop();return c}f.toComparators=Q;function Q(e,s){return new M(e,s).set.map(function(c){return c.map(function(I){return I.value}).join(" ").trim().split(" ")})}function Z(e,s){return z("comp",e,s),e=Rt(e,s),z("caret",e),e=St(e,s),z("tildes",e),e=zt(e,s),z("xrange",e),e=Ot(e,s),z("stars",e),e}function B(e){return!e||e.toLowerCase()==="x"||e==="*"}function St(e,s){return e.trim().split(/\s+/).map(function(c){return It(c,s)}).join(" ")}function It(e,s){var c=s.loose?C[E.TILDELOOSE]:C[E.TILDE];return e.replace(c,function(I,N,T,v,G){z("tilde",e,I,N,T,v,G);var _;return B(N)?_="":B(T)?_=">="+N+".0.0 <"+(+N+1)+".0.0":B(v)?_=">="+N+"."+T+".0 <"+N+"."+(+T+1)+".0":G?(z("replaceTilde pr",G),_=">="+N+"."+T+"."+v+"-"+G+" <"+N+"."+(+T+1)+".0"):_=">="+N+"."+T+"."+v+" <"+N+"."+(+T+1)+".0",z("tilde return",_),_})}function Rt(e,s){return e.trim().split(/\s+/).map(function(c){return At(c,s)}).join(" ")}function At(e,s){z("caret",e,s);var c=s.loose?C[E.CARETLOOSE]:C[E.CARET];return e.replace(c,function(I,N,T,v,G){z("caret",e,I,N,T,v,G);var _;return B(N)?_="":B(T)?_=">="+N+".0.0 <"+(+N+1)+".0.0":B(v)?N==="0"?_=">="+N+"."+T+".0 <"+N+"."+(+T+1)+".0":_=">="+N+"."+T+".0 <"+(+N+1)+".0.0":G?(z("replaceCaret pr",G),N==="0"?T==="0"?_=">="+N+"."+T+"."+v+"-"+G+" <"+N+"."+T+"."+(+v+1):_=">="+N+"."+T+"."+v+"-"+G+" <"+N+"."+(+T+1)+".0":_=">="+N+"."+T+"."+v+"-"+G+" <"+(+N+1)+".0.0"):(z("no pr"),N==="0"?T==="0"?_=">="+N+"."+T+"."+v+" <"+N+"."+T+"."+(+v+1):_=">="+N+"."+T+"."+v+" <"+N+"."+(+T+1)+".0":_=">="+N+"."+T+"."+v+" <"+(+N+1)+".0.0"),z("caret return",_),_})}function zt(e,s){return z("replaceXRanges",e,s),e.split(/\s+/).map(function(c){return Nt(c,s)}).join(" ")}function Nt(e,s){e=e.trim();var c=s.loose?C[E.XRANGELOOSE]:C[E.XRANGE];return e.replace(c,function(I,N,T,v,G,_){z("xRange",e,I,N,T,v,G,_);var he=B(T),de=he||B(v),ie=de||B(G),te=ie;return N==="="&&te&&(N=""),_=s.includePrerelease?"-0":"",he?N===">"||N==="<"?I="<0.0.0-0":I="*":N&&te?(de&&(v=0),G=0,N===">"?(N=">=",de?(T=+T+1,v=0,G=0):(v=+v+1,G=0)):N==="<="&&(N="<",de?T=+T+1:v=+v+1),I=N+T+"."+v+"."+G+_):de?I=">="+T+".0.0"+_+" <"+(+T+1)+".0.0"+_:ie&&(I=">="+T+"."+v+".0"+_+" <"+T+"."+(+v+1)+".0"+_),z("xRange return",I),I})}function Ot(e,s){return z("replaceStars",e,s),e.trim().replace(C[E.STAR],"")}function Tt(e,s,c,I,N,T,v,G,_,he,de,ie,te){return B(c)?s="":B(I)?s=">="+c+".0.0":B(N)?s=">="+c+"."+I+".0":s=">="+s,B(_)?G="":B(he)?G="<"+(+_+1)+".0.0":B(de)?G="<"+_+"."+(+he+1)+".0":ie?G="<="+_+"."+he+"."+de+"-"+ie:G="<="+G,(s+" "+G).trim()}M.prototype.test=function(e){if(!e)return!1;if(typeof e=="string")try{e=new D(e,this.options)}catch{return!1}for(var s=0;s<this.set.length;s++)if(wt(this.set[s],e,this.options))return!0;return!1};function wt(e,s,c){for(var I=0;I<e.length;I++)if(!e[I].test(s))return!1;if(s.prerelease.length&&!c.includePrerelease){for(I=0;I<e.length;I++)if(z(e[I].semver),e[I].semver!==fe&&e[I].semver.prerelease.length>0){var N=e[I].semver;if(N.major===s.major&&N.minor===s.minor&&N.patch===s.patch)return!0}return!1}return!0}f.satisfies=ke;function ke(e,s,c){try{s=new M(s,c)}catch{return!1}return s.test(e)}f.maxSatisfying=vt;function vt(e,s,c){var I=null,N=null;try{var T=new M(s,c)}catch{return null}return e.forEach(function(v){T.test(v)&&(!I||N.compare(v)===-1)&&(I=v,N=new D(I,c))}),I}f.minSatisfying=Lt;function Lt(e,s,c){var I=null,N=null;try{var T=new M(s,c)}catch{return null}return e.forEach(function(v){T.test(v)&&(!I||N.compare(v)===1)&&(I=v,N=new D(I,c))}),I}f.minVersion=yt;function yt(e,s){e=new M(e,s);var c=new D("0.0.0");if(e.test(c)||(c=new D("0.0.0-0"),e.test(c)))return c;c=null;for(var I=0;I<e.set.length;++I){var N=e.set[I];N.forEach(function(T){var v=new D(T.semver.version);switch(T.operator){case">":v.prerelease.length===0?v.patch++:v.prerelease.push(0),v.raw=v.format();case"":case">=":(!c||j(c,v))&&(c=v);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+T.operator)}})}return c&&e.test(c)?c:null}f.validRange=Ct;function Ct(e,s){try{return new M(e,s).range||"*"}catch{return null}}f.ltr=Dt;function Dt(e,s,c){return Ye(e,s,"<",c)}f.gtr=Pt;function Pt(e,s,c){return Ye(e,s,">",c)}f.outside=Ye;function Ye(e,s,c,I){e=new D(e,I),s=new M(s,I);var N,T,v,G,_;switch(c){case">":N=j,T=H,v=X,G=">",_=">=";break;case"<":N=X,T=$,v=j,G="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ke(e,s,I))return!1;for(var he=0;he<s.set.length;++he){var de=s.set[he],ie=null,te=null;if(de.forEach(function(Ae){Ae.semver===fe&&(Ae=new Y(">=0.0.0")),ie=ie||Ae,te=te||Ae,N(Ae.semver,ie.semver,I)?ie=Ae:v(Ae.semver,te.semver,I)&&(te=Ae)}),ie.operator===G||ie.operator===_||(!te.operator||te.operator===G)&&T(e,te.semver))return!1;if(te.operator===_&&v(e,te.semver))return!1}return!0}f.prerelease=bt;function bt(e,s){var c=ue(e,s);return c&&c.prerelease.length?c.prerelease:null}f.intersects=_t;function _t(e,s,c){return e=new M(e,c),s=new M(s,c),e.intersects(s)}f.coerce=kt;function kt(e,s){if(e instanceof D)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;s=s||{};var c=null;if(!s.rtl)c=e.match(C[E.COERCE]);else{for(var I;(I=C[E.COERCERTL].exec(e))&&(!c||c.index+c[0].length!==e.length);)(!c||I.index+I[0].length!==c.index+c[0].length)&&(c=I),C[E.COERCERTL].lastIndex=I.index+I[1].length+I[2].length;C[E.COERCERTL].lastIndex=-1}return c===null?null:ue(c[2]+"."+(c[3]||"0")+"."+(c[4]||"0"),s)}})(ir,ir.exports);var Rn=ir.exports;const An=Hr(Rn),zn=i=>i==null?[]:Array.isArray(i)?i:[i],Nn=t.z.any().refine(i=>typeof i=="bigint",{message:"Value must be a BigInt"}).transform(i=>BigInt(i));var On=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Ke=Math.ceil,se=Math.floor,ee="[BigNumber Error] ",Nr=ee+"Number primitive has more than 15 significant digits: ",le=1e14,b=14,Je=9007199254740991,Qe=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],ze=1e7,W=1e9;function Wr(i){var f,z,w,R=O.prototype={constructor:O,toString:null,valueOf:null},x=new O(1),U=20,k=4,C=-7,S=21,E=-1e7,K=1e7,P=!1,Ee=1,ne=0,pe={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},ge="0123456789abcdefghijklmnopqrstuvwxyz",we=!0;function O(r,n){var a,d,l,h,g,o,u,p,m=this;if(!(m instanceof O))return new O(r,n);if(n==null){if(r&&r._isBigNumber===!0){m.s=r.s,!r.c||r.e>K?m.c=m.e=null:r.e<E?m.c=[m.e=0]:(m.e=r.e,m.c=r.c.slice());return}if((o=typeof r=="number")&&r*0==0){if(m.s=1/r<0?(r=-r,-1):1,r===~~r){for(h=0,g=r;g>=10;g/=10,h++);h>K?m.c=m.e=null:(m.e=h,m.c=[r]);return}p=String(r)}else{if(!On.test(p=String(r)))return w(m,p,o);m.s=p.charCodeAt(0)==45?(p=p.slice(1),-1):1}(h=p.indexOf("."))>-1&&(p=p.replace(".","")),(g=p.search(/e/i))>0?(h<0&&(h=g),h+=+p.slice(g+1),p=p.substring(0,g)):h<0&&(h=p.length)}else{if(q(n,2,ge.length,"Base"),n==10&&we)return m=new O(r),J(m,U+m.e+1,k);if(p=String(r),o=typeof r=="number"){if(r*0!=0)return w(m,p,o,n);if(m.s=1/r<0?(p=p.slice(1),-1):1,O.DEBUG&&p.replace(/^0\.0*|\./,"").length>15)throw Error(Nr+r)}else m.s=p.charCodeAt(0)===45?(p=p.slice(1),-1):1;for(a=ge.slice(0,n),h=g=0,u=p.length;g<u;g++)if(a.indexOf(d=p.charAt(g))<0){if(d=="."){if(g>h){h=u;continue}}else if(!l&&(p==p.toUpperCase()&&(p=p.toLowerCase())||p==p.toLowerCase()&&(p=p.toUpperCase()))){l=!0,g=-1,h=0;continue}return w(m,String(r),o,n)}o=!1,p=z(p,n,10,m.s),(h=p.indexOf("."))>-1?p=p.replace(".",""):h=p.length}for(g=0;p.charCodeAt(g)===48;g++);for(u=p.length;p.charCodeAt(--u)===48;);if(p=p.slice(g,++u)){if(u-=g,o&&O.DEBUG&&u>15&&(r>Je||r!==se(r)))throw Error(Nr+m.s*r);if((h=h-g-1)>K)m.c=m.e=null;else if(h<E)m.c=[m.e=0];else{if(m.e=h,m.c=[],g=(h+1)%b,h<0&&(g+=b),g<u){for(g&&m.c.push(+p.slice(0,g)),u-=b;g<u;)m.c.push(+p.slice(g,g+=b));g=b-(p=p.slice(g)).length}else g-=u;for(;g--;p+="0");m.c.push(+p)}}else m.c=[m.e=0]}O.clone=Wr,O.ROUND_UP=0,O.ROUND_DOWN=1,O.ROUND_CEIL=2,O.ROUND_FLOOR=3,O.ROUND_HALF_UP=4,O.ROUND_HALF_DOWN=5,O.ROUND_HALF_EVEN=6,O.ROUND_HALF_CEIL=7,O.ROUND_HALF_FLOOR=8,O.EUCLID=9,O.config=O.set=function(r){var n,a;if(r!=null)if(typeof r=="object"){if(r.hasOwnProperty(n="DECIMAL_PLACES")&&(a=r[n],q(a,0,W,n),U=a),r.hasOwnProperty(n="ROUNDING_MODE")&&(a=r[n],q(a,0,8,n),k=a),r.hasOwnProperty(n="EXPONENTIAL_AT")&&(a=r[n],a&&a.pop?(q(a[0],-W,0,n),q(a[1],0,W,n),C=a[0],S=a[1]):(q(a,-W,W,n),C=-(S=a<0?-a:a))),r.hasOwnProperty(n="RANGE"))if(a=r[n],a&&a.pop)q(a[0],-W,-1,n),q(a[1],1,W,n),E=a[0],K=a[1];else if(q(a,-W,W,n),a)E=-(K=a<0?-a:a);else throw Error(ee+n+" cannot be zero: "+a);if(r.hasOwnProperty(n="CRYPTO"))if(a=r[n],a===!!a)if(a)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=a;else throw P=!a,Error(ee+"crypto unavailable");else P=a;else throw Error(ee+n+" not true or false: "+a);if(r.hasOwnProperty(n="MODULO_MODE")&&(a=r[n],q(a,0,9,n),Ee=a),r.hasOwnProperty(n="POW_PRECISION")&&(a=r[n],q(a,0,W,n),ne=a),r.hasOwnProperty(n="FORMAT"))if(a=r[n],typeof a=="object")pe=a;else throw Error(ee+n+" not an object: "+a);if(r.hasOwnProperty(n="ALPHABET"))if(a=r[n],typeof a=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(a))we=a.slice(0,10)=="0123456789",ge=a;else throw Error(ee+n+" invalid: "+a)}else throw Error(ee+"Object expected: "+r);return{DECIMAL_PLACES:U,ROUNDING_MODE:k,EXPONENTIAL_AT:[C,S],RANGE:[E,K],CRYPTO:P,MODULO_MODE:Ee,POW_PRECISION:ne,FORMAT:pe,ALPHABET:ge}},O.isBigNumber=function(r){if(!r||r._isBigNumber!==!0)return!1;if(!O.DEBUG)return!0;var n,a,d=r.c,l=r.e,h=r.s;e:if({}.toString.call(d)=="[object Array]"){if((h===1||h===-1)&&l>=-W&&l<=W&&l===se(l)){if(d[0]===0){if(l===0&&d.length===1)return!0;break e}if(n=(l+1)%b,n<1&&(n+=b),String(d[0]).length==n){for(n=0;n<d.length;n++)if(a=d[n],a<0||a>=le||a!==se(a))break e;if(a!==0)return!0}}}else if(d===null&&l===null&&(h===null||h===1||h===-1))return!0;throw Error(ee+"Invalid BigNumber: "+r)},O.maximum=O.max=function(){return ue(arguments,-1)},O.minimum=O.min=function(){return ue(arguments,1)},O.random=function(){var r=9007199254740992,n=Math.random()*r&2097151?function(){return se(Math.random()*r)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(a){var d,l,h,g,o,u=0,p=[],m=new O(x);if(a==null?a=U:q(a,0,W),g=Ke(a/b),P)if(crypto.getRandomValues){for(d=crypto.getRandomValues(new Uint32Array(g*=2));u<g;)o=d[u]*131072+(d[u+1]>>>11),o>=9e15?(l=crypto.getRandomValues(new Uint32Array(2)),d[u]=l[0],d[u+1]=l[1]):(p.push(o%1e14),u+=2);u=g/2}else if(crypto.randomBytes){for(d=crypto.randomBytes(g*=7);u<g;)o=(d[u]&31)*281474976710656+d[u+1]*1099511627776+d[u+2]*4294967296+d[u+3]*16777216+(d[u+4]<<16)+(d[u+5]<<8)+d[u+6],o>=9e15?crypto.randomBytes(7).copy(d,u):(p.push(o%1e14),u+=7);u=g/7}else throw P=!1,Error(ee+"crypto unavailable");if(!P)for(;u<g;)o=n(),o<9e15&&(p[u++]=o%1e14);for(g=p[--u],a%=b,g&&a&&(o=Qe[b-a],p[u]=se(g/o)*o);p[u]===0;p.pop(),u--);if(u<0)p=[h=0];else{for(h=-1;p[0]===0;p.splice(0,1),h-=b);for(u=1,o=p[0];o>=10;o/=10,u++);u<b&&(h-=b-u)}return m.e=h,m.c=p,m}}(),O.sum=function(){for(var r=1,n=arguments,a=new O(n[0]);r<n.length;)a=a.plus(n[r++]);return a},z=function(){var r="0123456789";function n(a,d,l,h){for(var g,o=[0],u,p=0,m=a.length;p<m;){for(u=o.length;u--;o[u]*=d);for(o[0]+=h.indexOf(a.charAt(p++)),g=0;g<o.length;g++)o[g]>l-1&&(o[g+1]==null&&(o[g+1]=0),o[g+1]+=o[g]/l|0,o[g]%=l)}return o.reverse()}return function(a,d,l,h,g){var o,u,p,m,A,L,y,j,X=a.indexOf("."),V=U,F=k;for(X>=0&&(m=ne,ne=0,a=a.replace(".",""),j=new O(d),L=j.pow(a.length-X),ne=m,j.c=n(Ie(ae(L.c),L.e,"0"),10,l,r),j.e=j.c.length),y=n(a,d,l,g?(o=ge,r):(o=r,ge)),p=m=y.length;y[--m]==0;y.pop());if(!y[0])return o.charAt(0);if(X<0?--p:(L.c=y,L.e=p,L.s=h,L=f(L,j,V,F,l),y=L.c,A=L.r,p=L.e),u=p+V+1,X=y[u],m=l/2,A=A||u<0||y[u+1]!=null,A=F<4?(X!=null||A)&&(F==0||F==(L.s<0?3:2)):X>m||X==m&&(F==4||A||F==6&&y[u-1]&1||F==(L.s<0?8:7)),u<1||!y[0])a=A?Ie(o.charAt(1),-V,o.charAt(0)):o.charAt(0);else{if(y.length=u,A)for(--l;++y[--u]>l;)y[u]=0,u||(++p,y=[1].concat(y));for(m=y.length;!y[--m];);for(X=0,a="";X<=m;a+=o.charAt(y[X++]));a=Ie(a,p,o.charAt(0))}return a}}(),f=function(){function r(d,l,h){var g,o,u,p,m=0,A=d.length,L=l%ze,y=l/ze|0;for(d=d.slice();A--;)u=d[A]%ze,p=d[A]/ze|0,g=y*u+p*L,o=L*u+g%ze*ze+m,m=(o/h|0)+(g/ze|0)+y*p,d[A]=o%h;return m&&(d=[m].concat(d)),d}function n(d,l,h,g){var o,u;if(h!=g)u=h>g?1:-1;else for(o=u=0;o<h;o++)if(d[o]!=l[o]){u=d[o]>l[o]?1:-1;break}return u}function a(d,l,h,g){for(var o=0;h--;)d[h]-=o,o=d[h]<l[h]?1:0,d[h]=o*g+d[h]-l[h];for(;!d[0]&&d.length>1;d.splice(0,1));}return function(d,l,h,g,o){var u,p,m,A,L,y,j,X,V,F,$,H,Se,Y,fe,M,Re,Q=d.s==l.s?1:-1,Z=d.c,B=l.c;if(!Z||!Z[0]||!B||!B[0])return new O(!d.s||!l.s||(Z?B&&Z[0]==B[0]:!B)?NaN:Z&&Z[0]==0||!B?Q*0:Q/0);for(X=new O(Q),V=X.c=[],p=d.e-l.e,Q=h+p+1,o||(o=le,p=oe(d.e/b)-oe(l.e/b),Q=Q/b|0),m=0;B[m]==(Z[m]||0);m++);if(B[m]>(Z[m]||0)&&p--,Q<0)V.push(1),A=!0;else{for(Y=Z.length,M=B.length,m=0,Q+=2,L=se(o/(B[0]+1)),L>1&&(B=r(B,L,o),Z=r(Z,L,o),M=B.length,Y=Z.length),Se=M,F=Z.slice(0,M),$=F.length;$<M;F[$++]=0);Re=B.slice(),Re=[0].concat(Re),fe=B[0],B[1]>=o/2&&fe++;do{if(L=0,u=n(B,F,M,$),u<0){if(H=F[0],M!=$&&(H=H*o+(F[1]||0)),L=se(H/fe),L>1)for(L>=o&&(L=o-1),y=r(B,L,o),j=y.length,$=F.length;n(y,F,j,$)==1;)L--,a(y,M<j?Re:B,j,o),j=y.length,u=1;else L==0&&(u=L=1),y=B.slice(),j=y.length;if(j<$&&(y=[0].concat(y)),a(F,y,$,o),$=F.length,u==-1)for(;n(B,F,M,$)<1;)L++,a(F,M<$?Re:B,$,o),$=F.length}else u===0&&(L++,F=[0]);V[m++]=L,F[0]?F[$++]=Z[Se]||0:(F=[Z[Se]],$=1)}while((Se++<Y||F[0]!=null)&&Q--);A=F[0]!=null,V[0]||V.splice(0,1)}if(o==le){for(m=1,Q=V[0];Q>=10;Q/=10,m++);J(X,h+(X.e=m+p*b-1)+1,g,A)}else X.e=p,X.r=+A;return X}}();function re(r,n,a,d){var l,h,g,o,u;if(a==null?a=k:q(a,0,8),!r.c)return r.toString();if(l=r.c[0],g=r.e,n==null)u=ae(r.c),u=d==1||d==2&&(g<=C||g>=S)?Be(u,g):Ie(u,g,"0");else if(r=J(new O(r),n,a),h=r.e,u=ae(r.c),o=u.length,d==1||d==2&&(n<=h||h<=C)){for(;o<n;u+="0",o++);u=Be(u,h)}else if(n-=g,u=Ie(u,h,"0"),h+1>o){if(--n>0)for(u+=".";n--;u+="0");}else if(n+=h-o,n>0)for(h+1==o&&(u+=".");n--;u+="0");return r.s<0&&l?"-"+u:u}function ue(r,n){for(var a,d,l=1,h=new O(r[0]);l<r.length;l++)d=new O(r[l]),(!d.s||(a=Oe(h,d))===n||a===0&&h.s===n)&&(h=d);return h}function ve(r,n,a){for(var d=1,l=n.length;!n[--l];n.pop());for(l=n[0];l>=10;l/=10,d++);return(a=d+a*b-1)>K?r.c=r.e=null:a<E?r.c=[r.e=0]:(r.e=a,r.c=n),r}w=function(){var r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,a=/^\.([^.]+)$/,d=/^-?(Infinity|NaN)$/,l=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(h,g,o,u){var p,m=o?g:g.replace(l,"");if(d.test(m))h.s=isNaN(m)?null:m<0?-1:1;else{if(!o&&(m=m.replace(r,function(A,L,y){return p=(y=y.toLowerCase())=="x"?16:y=="b"?2:8,!u||u==p?L:A}),u&&(p=u,m=m.replace(n,"$1").replace(a,"0.$1")),g!=m))return new O(m,p);if(O.DEBUG)throw Error(ee+"Not a"+(u?" base "+u:"")+" number: "+g);h.s=null}h.c=h.e=null}}();function J(r,n,a,d){var l,h,g,o,u,p,m,A=r.c,L=Qe;if(A){e:{for(l=1,o=A[0];o>=10;o/=10,l++);if(h=n-l,h<0)h+=b,g=n,u=A[p=0],m=se(u/L[l-g-1]%10);else if(p=Ke((h+1)/b),p>=A.length)if(d){for(;A.length<=p;A.push(0));u=m=0,l=1,h%=b,g=h-b+1}else break e;else{for(u=o=A[p],l=1;o>=10;o/=10,l++);h%=b,g=h-b+l,m=g<0?0:se(u/L[l-g-1]%10)}if(d=d||n<0||A[p+1]!=null||(g<0?u:u%L[l-g-1]),d=a<4?(m||d)&&(a==0||a==(r.s<0?3:2)):m>5||m==5&&(a==4||d||a==6&&(h>0?g>0?u/L[l-g]:0:A[p-1])%10&1||a==(r.s<0?8:7)),n<1||!A[0])return A.length=0,d?(n-=r.e+1,A[0]=L[(b-n%b)%b],r.e=-n||0):A[0]=r.e=0,r;if(h==0?(A.length=p,o=1,p--):(A.length=p+1,o=L[b-h],A[p]=g>0?se(u/L[l-g]%L[g])*o:0),d)for(;;)if(p==0){for(h=1,g=A[0];g>=10;g/=10,h++);for(g=A[0]+=o,o=1;g>=10;g/=10,o++);h!=o&&(r.e++,A[0]==le&&(A[0]=1));break}else{if(A[p]+=o,A[p]!=le)break;A[p--]=0,o=1}for(h=A.length;A[--h]===0;A.pop());}r.e>K?r.c=r.e=null:r.e<E&&(r.c=[r.e=0])}return r}function D(r){var n,a=r.e;return a===null?r.toString():(n=ae(r.c),n=a<=C||a>=S?Be(n,a):Ie(n,a,"0"),r.s<0?"-"+n:n)}return R.absoluteValue=R.abs=function(){var r=new O(this);return r.s<0&&(r.s=1),r},R.comparedTo=function(r,n){return Oe(this,new O(r,n))},R.decimalPlaces=R.dp=function(r,n){var a,d,l,h=this;if(r!=null)return q(r,0,W),n==null?n=k:q(n,0,8),J(new O(h),r+h.e+1,n);if(!(a=h.c))return null;if(d=((l=a.length-1)-oe(this.e/b))*b,l=a[l])for(;l%10==0;l/=10,d--);return d<0&&(d=0),d},R.dividedBy=R.div=function(r,n){return f(this,new O(r,n),U,k)},R.dividedToIntegerBy=R.idiv=function(r,n){return f(this,new O(r,n),0,1)},R.exponentiatedBy=R.pow=function(r,n){var a,d,l,h,g,o,u,p,m,A=this;if(r=new O(r),r.c&&!r.isInteger())throw Error(ee+"Exponent not an integer: "+D(r));if(n!=null&&(n=new O(n)),o=r.e>14,!A.c||!A.c[0]||A.c[0]==1&&!A.e&&A.c.length==1||!r.c||!r.c[0])return m=new O(Math.pow(+D(A),o?r.s*(2-je(r)):+D(r))),n?m.mod(n):m;if(u=r.s<0,n){if(n.c?!n.c[0]:!n.s)return new O(NaN);d=!u&&A.isInteger()&&n.isInteger(),d&&(A=A.mod(n))}else{if(r.e>9&&(A.e>0||A.e<-1||(A.e==0?A.c[0]>1||o&&A.c[1]>=24e7:A.c[0]<8e13||o&&A.c[0]<=9999975e7)))return h=A.s<0&&je(r)?-0:0,A.e>-1&&(h=1/h),new O(u?1/h:h);ne&&(h=Ke(ne/b+2))}for(o?(a=new O(.5),u&&(r.s=1),p=je(r)):(l=Math.abs(+D(r)),p=l%2),m=new O(x);;){if(p){if(m=m.times(A),!m.c)break;h?m.c.length>h&&(m.c.length=h):d&&(m=m.mod(n))}if(l){if(l=se(l/2),l===0)break;p=l%2}else if(r=r.times(a),J(r,r.e+1,1),r.e>14)p=je(r);else{if(l=+D(r),l===0)break;p=l%2}A=A.times(A),h?A.c&&A.c.length>h&&(A.c.length=h):d&&(A=A.mod(n))}return d?m:(u&&(m=x.div(m)),n?m.mod(n):h?J(m,ne,k,g):m)},R.integerValue=function(r){var n=new O(this);return r==null?r=k:q(r,0,8),J(n,n.e+1,r)},R.isEqualTo=R.eq=function(r,n){return Oe(this,new O(r,n))===0},R.isFinite=function(){return!!this.c},R.isGreaterThan=R.gt=function(r,n){return Oe(this,new O(r,n))>0},R.isGreaterThanOrEqualTo=R.gte=function(r,n){return(n=Oe(this,new O(r,n)))===1||n===0},R.isInteger=function(){return!!this.c&&oe(this.e/b)>this.c.length-2},R.isLessThan=R.lt=function(r,n){return Oe(this,new O(r,n))<0},R.isLessThanOrEqualTo=R.lte=function(r,n){return(n=Oe(this,new O(r,n)))===-1||n===0},R.isNaN=function(){return!this.s},R.isNegative=function(){return this.s<0},R.isPositive=function(){return this.s>0},R.isZero=function(){return!!this.c&&this.c[0]==0},R.minus=function(r,n){var a,d,l,h,g=this,o=g.s;if(r=new O(r,n),n=r.s,!o||!n)return new O(NaN);if(o!=n)return r.s=-n,g.plus(r);var u=g.e/b,p=r.e/b,m=g.c,A=r.c;if(!u||!p){if(!m||!A)return m?(r.s=-n,r):new O(A?g:NaN);if(!m[0]||!A[0])return A[0]?(r.s=-n,r):new O(m[0]?g:k==3?-0:0)}if(u=oe(u),p=oe(p),m=m.slice(),o=u-p){for((h=o<0)?(o=-o,l=m):(p=u,l=A),l.reverse(),n=o;n--;l.push(0));l.reverse()}else for(d=(h=(o=m.length)<(n=A.length))?o:n,o=n=0;n<d;n++)if(m[n]!=A[n]){h=m[n]<A[n];break}if(h&&(l=m,m=A,A=l,r.s=-r.s),n=(d=A.length)-(a=m.length),n>0)for(;n--;m[a++]=0);for(n=le-1;d>o;){if(m[--d]<A[d]){for(a=d;a&&!m[--a];m[a]=n);--m[a],m[d]+=le}m[d]-=A[d]}for(;m[0]==0;m.splice(0,1),--p);return m[0]?ve(r,m,p):(r.s=k==3?-1:1,r.c=[r.e=0],r)},R.modulo=R.mod=function(r,n){var a,d,l=this;return r=new O(r,n),!l.c||!r.s||r.c&&!r.c[0]?new O(NaN):!r.c||l.c&&!l.c[0]?new O(l):(Ee==9?(d=r.s,r.s=1,a=f(l,r,0,3),r.s=d,a.s*=d):a=f(l,r,0,Ee),r=l.minus(a.times(r)),!r.c[0]&&Ee==1&&(r.s=l.s),r)},R.multipliedBy=R.times=function(r,n){var a,d,l,h,g,o,u,p,m,A,L,y,j,X,V,F=this,$=F.c,H=(r=new O(r,n)).c;if(!$||!H||!$[0]||!H[0])return!F.s||!r.s||$&&!$[0]&&!H||H&&!H[0]&&!$?r.c=r.e=r.s=null:(r.s*=F.s,!$||!H?r.c=r.e=null:(r.c=[0],r.e=0)),r;for(d=oe(F.e/b)+oe(r.e/b),r.s*=F.s,u=$.length,A=H.length,u<A&&(j=$,$=H,H=j,l=u,u=A,A=l),l=u+A,j=[];l--;j.push(0));for(X=le,V=ze,l=A;--l>=0;){for(a=0,L=H[l]%V,y=H[l]/V|0,g=u,h=l+g;h>l;)p=$[--g]%V,m=$[g]/V|0,o=y*p+m*L,p=L*p+o%V*V+j[h]+a,a=(p/X|0)+(o/V|0)+y*m,j[h--]=p%X;j[h]=a}return a?++d:j.splice(0,1),ve(r,j,d)},R.negated=function(){var r=new O(this);return r.s=-r.s||null,r},R.plus=function(r,n){var a,d=this,l=d.s;if(r=new O(r,n),n=r.s,!l||!n)return new O(NaN);if(l!=n)return r.s=-n,d.minus(r);var h=d.e/b,g=r.e/b,o=d.c,u=r.c;if(!h||!g){if(!o||!u)return new O(l/0);if(!o[0]||!u[0])return u[0]?r:new O(o[0]?d:l*0)}if(h=oe(h),g=oe(g),o=o.slice(),l=h-g){for(l>0?(g=h,a=u):(l=-l,a=o),a.reverse();l--;a.push(0));a.reverse()}for(l=o.length,n=u.length,l-n<0&&(a=u,u=o,o=a,n=l),l=0;n;)l=(o[--n]=o[n]+u[n]+l)/le|0,o[n]=le===o[n]?0:o[n]%le;return l&&(o=[l].concat(o),++g),ve(r,o,g)},R.precision=R.sd=function(r,n){var a,d,l,h=this;if(r!=null&&r!==!!r)return q(r,1,W),n==null?n=k:q(n,0,8),J(new O(h),r,n);if(!(a=h.c))return null;if(l=a.length-1,d=l*b+1,l=a[l]){for(;l%10==0;l/=10,d--);for(l=a[0];l>=10;l/=10,d++);}return r&&h.e+1>d&&(d=h.e+1),d},R.shiftedBy=function(r){return q(r,-Je,Je),this.times("1e"+r)},R.squareRoot=R.sqrt=function(){var r,n,a,d,l,h=this,g=h.c,o=h.s,u=h.e,p=U+4,m=new O("0.5");if(o!==1||!g||!g[0])return new O(!o||o<0&&(!g||g[0])?NaN:g?h:1/0);if(o=Math.sqrt(+D(h)),o==0||o==1/0?(n=ae(g),(n.length+u)%2==0&&(n+="0"),o=Math.sqrt(+n),u=oe((u+1)/2)-(u<0||u%2),o==1/0?n="5e"+u:(n=o.toExponential(),n=n.slice(0,n.indexOf("e")+1)+u),a=new O(n)):a=new O(o+""),a.c[0]){for(u=a.e,o=u+p,o<3&&(o=0);;)if(l=a,a=m.times(l.plus(f(h,l,p,1))),ae(l.c).slice(0,o)===(n=ae(a.c)).slice(0,o))if(a.e<u&&--o,n=n.slice(o-3,o+1),n=="9999"||!d&&n=="4999"){if(!d&&(J(l,l.e+U+2,0),l.times(l).eq(h))){a=l;break}p+=4,o+=4,d=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(J(a,a.e+U+2,1),r=!a.times(a).eq(h));break}}return J(a,a.e+U+1,k,r)},R.toExponential=function(r,n){return r!=null&&(q(r,0,W),r++),re(this,r,n,1)},R.toFixed=function(r,n){return r!=null&&(q(r,0,W),r=r+this.e+1),re(this,r,n)},R.toFormat=function(r,n,a){var d,l=this;if(a==null)r!=null&&n&&typeof n=="object"?(a=n,n=null):r&&typeof r=="object"?(a=r,r=n=null):a=pe;else if(typeof a!="object")throw Error(ee+"Argument not an object: "+a);if(d=l.toFixed(r,n),l.c){var h,g=d.split("."),o=+a.groupSize,u=+a.secondaryGroupSize,p=a.groupSeparator||"",m=g[0],A=g[1],L=l.s<0,y=L?m.slice(1):m,j=y.length;if(u&&(h=o,o=u,u=h,j-=h),o>0&&j>0){for(h=j%o||o,m=y.substr(0,h);h<j;h+=o)m+=p+y.substr(h,o);u>0&&(m+=p+y.slice(h)),L&&(m="-"+m)}d=A?m+(a.decimalSeparator||"")+((u=+a.fractionGroupSize)?A.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(a.fractionGroupSeparator||"")):A):m}return(a.prefix||"")+d+(a.suffix||"")},R.toFraction=function(r){var n,a,d,l,h,g,o,u,p,m,A,L,y=this,j=y.c;if(r!=null&&(o=new O(r),!o.isInteger()&&(o.c||o.s!==1)||o.lt(x)))throw Error(ee+"Argument "+(o.isInteger()?"out of range: ":"not an integer: ")+D(o));if(!j)return new O(y);for(n=new O(x),p=a=new O(x),d=u=new O(x),L=ae(j),h=n.e=L.length-y.e-1,n.c[0]=Qe[(g=h%b)<0?b+g:g],r=!r||o.comparedTo(n)>0?h>0?n:p:o,g=K,K=1/0,o=new O(L),u.c[0]=0;m=f(o,n,0,1),l=a.plus(m.times(d)),l.comparedTo(r)!=1;)a=d,d=l,p=u.plus(m.times(l=p)),u=l,n=o.minus(m.times(l=n)),o=l;return l=f(r.minus(a),d,0,1),u=u.plus(l.times(p)),a=a.plus(l.times(d)),u.s=p.s=y.s,h=h*2,A=f(p,d,h,k).minus(y).abs().comparedTo(f(u,a,h,k).minus(y).abs())<1?[p,d]:[u,a],K=g,A},R.toNumber=function(){return+D(this)},R.toPrecision=function(r,n){return r!=null&&q(r,1,W),re(this,r,n,2)},R.toString=function(r){var n,a=this,d=a.s,l=a.e;return l===null?d?(n="Infinity",d<0&&(n="-"+n)):n="NaN":(r==null?n=l<=C||l>=S?Be(ae(a.c),l):Ie(ae(a.c),l,"0"):r===10&&we?(a=J(new O(a),U+l+1,k),n=Ie(ae(a.c),a.e,"0")):(q(r,2,ge.length,"Base"),n=z(Ie(ae(a.c),l,"0"),10,r,d,!0)),d<0&&a.c[0]&&(n="-"+n)),n},R.valueOf=R.toJSON=function(){return D(this)},R._isBigNumber=!0,R[Symbol.toStringTag]="BigNumber",R[Symbol.for("nodejs.util.inspect.custom")]=R.valueOf,i!=null&&O.set(i),O}function oe(i){var f=i|0;return i>0||i===f?f:f-1}function ae(i){for(var f,z,w=1,R=i.length,x=i[0]+"";w<R;){for(f=i[w++]+"",z=b-f.length;z--;f="0"+f);x+=f}for(R=x.length;x.charCodeAt(--R)===48;);return x.slice(0,R+1||1)}function Oe(i,f){var z,w,R=i.c,x=f.c,U=i.s,k=f.s,C=i.e,S=f.e;if(!U||!k)return null;if(z=R&&!R[0],w=x&&!x[0],z||w)return z?w?0:-k:U;if(U!=k)return U;if(z=U<0,w=C==S,!R||!x)return w?0:!R^z?1:-1;if(!w)return C>S^z?1:-1;for(k=(C=R.length)<(S=x.length)?C:S,U=0;U<k;U++)if(R[U]!=x[U])return R[U]>x[U]^z?1:-1;return C==S?0:C>S^z?1:-1}function q(i,f,z,w){if(i<f||i>z||i!==se(i))throw Error(ee+(w||"Argument")+(typeof i=="number"?i<f||i>z?" out of range: ":" not an integer: ":" not a primitive number: ")+String(i))}function je(i){var f=i.c.length-1;return oe(i.e/b)==f&&i.c[f]%2!=0}function Be(i,f){return(i.length>1?i.charAt(0)+"."+i.slice(1):i)+(f<0?"e":"e+")+f}function Ie(i,f,z){var w,R;if(f<0){for(R=z+".";++f;R+=z);i=R+i}else if(w=i.length,++f>w){for(R=z,f-=w;--f;R+=z);i+=R}else f<w&&(i=i.slice(0,f)+"."+i.slice(f));return i}var Tn=Wr();const wn=t.z.boolean().transform(i=>String(i)),vn=t.z.string().transform(i=>i==="true");function Or(i){return t.z.object(i).passthrough().superRefine(f=>{const z=Object.keys(i),w=Object.keys(f).filter(R=>!z.includes(R));w.length>0&&`${w.join(", ")}`})}function Zr(i){const f=Or(i);return Object.assign(f,{extend:z=>Or({...i,...z})})}const Ln=(i,f)=>{try{return{success:!0,data:i.parse(f)}}catch(z){if(z instanceof t.z.ZodError)return console.error("Validation warnings:",z.errors),{success:!1,error:z};throw z}};var ar;(function(i){i[i.function=0]="function",i[i.l1_handler=1]="l1_handler",i[i.constructor=2]="constructor"})(ar||(ar={}));const fr=t.z.array(t.z.string()),Fe=t.z.object({selector:t.z.string(),offset:t.z.string(),builtins:fr.optional()}),hr=t.z.object({CONSTRUCTOR:t.z.array(Fe),EXTERNAL:t.z.array(Fe),L1_HANDLER:t.z.array(Fe)}),yn=t.z.string(),Yr=t.z.object({builtins:fr,data:t.z.array(t.z.string())}),Ge=t.z.object({name:t.z.string(),type:t.z.union([t.z.literal("felt"),t.z.literal("felt*"),t.z.string()])}),Kr=t.z.nativeEnum(ar),Jr=t.z.object({inputs:t.z.array(Ge),name:t.z.string(),outputs:t.z.array(Ge),stateMutability:t.z.literal("view").optional(),state_mutability:t.z.string().optional(),type:Kr}),$e=t.z.object({name:t.z.string(),type:t.z.union([t.z.literal("felt"),t.z.literal("felt*"),t.z.string()]),kind:t.z.union([t.z.literal("key"),t.z.literal("data")])}),Qr=t.z.object({name:t.z.string(),type:t.z.literal("event"),data:t.z.array($e),keys:t.z.array($e)}),et=t.z.object({name:t.z.string(),members:t.z.array($e),kind:t.z.literal("struct"),type:t.z.literal("event")}),rt=t.z.object({members:t.z.array(Ge.and(t.z.object({offset:t.z.number()}))),name:t.z.string(),size:t.z.number(),type:t.z.literal("struct")}),tt=t.z.union([et,Qr]),dr=t.z.array(t.z.union([Jr,tt,rt,t.z.any()])),nt=t.z.object({program:Yr,entry_points_by_type:hr,abi:dr}),mr=t.z.array(t.z.string()),it=t.z.object({type_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()])),libfunc_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()])),user_func_names:t.z.array(t.z.tuple([t.z.number(),t.z.string()]))}),Ue=t.z.object({selector:t.z.string(),function_idx:t.z.number()}),at=t.z.object({CONSTRUCTOR:t.z.array(Ue),EXTERNAL:t.z.array(Ue),L1_HANDLER:t.z.array(Ue)}),st=t.z.object({sierra_program:mr,sierra_program_debug_info:it.optional(),contract_class_version:t.z.string(),entry_points_by_type:at,abi:dr}),ot=t.z.array(t.z.tuple([t.z.number(),t.z.array(t.z.string())])),ct=t.z.object({prime:t.z.string(),compiler_version:t.z.string(),bytecode:mr,hints:t.z.array(t.z.any()),pythonic_hints:ot,entry_points_by_type:hr}),Cn=ct,Dn=t.z.union([nt,st]),lt=cr.createContext(null),Er=()=>cr.useContext(lt),Pn=()=>{var i;return!!((i=Er())!=null&&i.emitter)},bn=({emitter:i,children:f})=>jt.jsx(lt.Provider,{value:{emitter:i},children:f});let Tr=!1;const pr=()=>{var z;const i=(z=Er())==null?void 0:z.emitter;if(!i&&!Tr){Tr=!0;return}return i},_n=()=>{const i=pr();return i?i.emit.bind(i):or.noop},kn=()=>{const i=pr();return(z,w)=>{cr.useEffect(()=>i?i.on(z,w):void 0,[z,w])}},ut=t.z.union([t.z.literal("concentratedLiquidityPosition"),t.z.literal("collateralizedDebtPosition"),t.z.literal("staking")]),jn=t.z.object({status:t.z.literal("initialising")}).or(t.z.object({status:t.z.literal("initialised"),balances:t.z.array(t.z.object({tokenAddress:Xe,tokenBalance:t.z.string()}))})),Ze=t.z.object({id:t.z.number(),address:me,brandColor:t.z.string().optional(),name:t.z.string(),symbol:t.z.string(),decimals:t.z.number(),iconUrl:t.z.string().optional(),sendable:t.z.boolean(),popular:t.z.boolean(),refundable:t.z.boolean(),listed:t.z.boolean(),tradable:t.z.boolean(),category:t.z.union([t.z.literal("tokens"),t.z.literal("currencies"),t.z.literal("savings")]),pricingId:t.z.number().optional(),dappId:t.z.string().optional(),marketData:t.z.object({marketCap:t.z.number(),marketCap24hChange:t.z.number(),dailyVolume:t.z.number(),rank:t.z.number()}).optional(),tags:t.z.array(t.z.string()).optional()}),Bn=t.z.object({tokens:t.z.array(Ze)}),Fn=Ze,gr=t.z.object({pricingId:t.z.number(),ethValue:t.z.string(),ccyValue:t.z.string(),ethDayChange:t.z.string(),ccyDayChange:t.z.string()}),Un=t.z.object({prices:t.z.array(gr)}),sr=t.z.object({tokenAddress:Xe,principal:t.z.string(),accruedFees:t.z.string(),minPrice:t.z.string(),maxPrice:t.z.string(),currentPrice:t.z.string()}),Sr=t.z.object({tokenAddress:me.optional(),totalBalances:t.z.record(t.z.string())}),Ir=Sr.extend({tokenId:t.z.string(),data:t.z.object({poolFeePercentage:t.z.string(),tickSpacingPercentage:t.z.string().optional(),token0:sr,token1:sr})}),xn=t.z.array(Ir),Rr=Sr.extend({data:t.z.object({apy:t.z.string()}),investmentId:t.z.string().optional()}),Mn=t.z.array(Rr),Ar=Sr.extend({data:t.z.object({apy:t.z.string().optional(),group:t.z.number().optional(),collateral:t.z.boolean(),debt:t.z.boolean(),lending:t.z.boolean()})}),Gn=t.z.array(Ar),ft=t.z.array(Ir.or(Ar).or(Rr)),ht=Zr({name:t.z.string(),manageUrl:t.z.string(),type:ut,groups:t.z.record(t.z.object({name:t.z.string().optional(),healthRatio:t.z.string().optional()})).optional(),positions:ft}),dt=t.z.object({dappId:t.z.string(),products:t.z.array(ht)}),$n=t.z.object({dapps:t.z.array(dt)}),mt=t.z.object({name:t.z.string().optional(),tokenAddress:me,amount:t.z.string().optional(),claimUrl:t.z.string().optional(),claimStart:t.z.number(),claimEnd:t.z.number().optional()}),Xn=t.z.object({accountAddress:me,chain:t.z.string(),airdrops:t.z.array(mt)}),_e=t.z.object({address:me,networkId:t.z.string({required_error:"Network is required"})},{required_error:"Token is required"}),Vn=_e.required().extend({balance:t.z.string()}),zr=_e.required().extend({id:t.z.number().optional(),name:t.z.string().optional(),symbol:t.z.string().optional(),decimals:t.z.coerce.number().optional(),iconUrl:t.z.string().url("").optional().or(t.z.literal("")),pricingId:t.z.number().optional(),category:t.z.string().optional(),dappId:t.z.string().optional(),brandColor:t.z.string().optional()}),Et=zr.extend({balance:t.z.string()}),pt=zr.extend({currencyValue:t.z.string(),currencySymbol:t.z.string().optional(),ccyDayChange:t.z.string().optional(),ethDayChange:t.z.string().optional(),unitCurrencyValue:t.z.string().optional()}),gt=pt.extend({...Et.shape}),qn=t.z.array(gt),Hn=_e.extend({...gr.shape}),Wn=_e.extend({...Ze.shape});exports.AccountError=In;exports.AddressError=Le;exports.BaseError=be;exports.BigNumber=Tn;exports.CallError=en;exports.EventEmitterProvider=bn;exports.HttpError=He;exports.NetworkError=rn;exports.abiEntrySchema=Ge;exports.abiSchema=dr;exports.addOwnersCalldataSchema=sn;exports.addPluginCalldataSchema=un;exports.addressInputCharactersAndLengthSchema=Vt;exports.addressInputSchema=br;exports.addressOrDomainInputSchema=Ht;exports.addressOrDomainSchema=qt;exports.addressOrEmptyUndefinedSchema=Ft;exports.addressSchema=me;exports.addressSchemaArgentBackend=Xe;exports.addressSchemaBase=Ce;exports.addressSchemaLooseLength=vr;exports.addressSchemaStrictLength=Lr;exports.apiAccountTokenBalancesSchema=jn;exports.apiAirdropSchema=mt;exports.apiCollateralizedDebtPositionSchema=Ar;exports.apiCollateralizedDebtPositionsSchema=Gn;exports.apiConcentratedLiquidityPositionSchema=Ir;exports.apiConcentratedLiquidityPositionsSchema=xn;exports.apiDefiDecompositionProduct=ht;exports.apiDefiDecompositionProducts=ft;exports.apiDefiDecompositionSchema=dt;exports.apiDefiDecompositionToken=sr;exports.apiDefiPositionsSchema=$n;exports.apiPriceDataResponseSchema=Un;exports.apiPriceDetailsSchema=gr;exports.apiStakingPositionSchema=Rr;exports.apiStakingPositionsSchema=Mn;exports.apiTokenInfoResponseSchema=Fn;exports.apiTokenInfoSchema=Ze;exports.apiTokensInfoResponseSchema=Bn;exports.apiUnclaimedRewardsSchema=Xn;exports.apiWalletResponseSchema=Jt;exports.argentNameSchema=Pe;exports.bigNumberSchema=Nn;exports.bigNumberishSchema=Te;exports.booleanToStringSchema=wn;exports.builtinsSchema=fr;exports.byteCodeSchema=mr;exports.cairo1EventSchema=et;exports.cairoAssemblySchema=ct;exports.cairoVersionSchema=Fr;exports.callDetailsSchema=Vr;exports.callSchema=tn;exports.calldataSchema=Mr;exports.changeGuardianCalldataSchema=nn;exports.changeThresholdCalldataSchema=ln;exports.compiledContractClassSchema=Dn;exports.compiledSierraCasmSchema=Cn;exports.compiledSierraSchema=st;exports.compressedProgramSchema=yn;exports.constructorCallDataSchemaC0=pn;exports.constructorCallDataSchemaC1V1=gn;exports.contractEntryPointFieldsSchema=Fe;exports.createSchemaWithWarnings=Zr;exports.defiPositionTypeSchema=ut;exports.ensureArray=zn;exports.entryPointsByTypeSchema=hr;exports.escapeGuardianCalldataSchema=an;exports.eventAbiSchema=tt;exports.eventEntrySchema=$e;exports.executeOnPluginCalldataSchema=hn;exports.feltSchema=ce;exports.formatFullAddress=xt;exports.formatTruncatedAddress=Ut;exports.formatTruncatedSignerKey=$t;exports.formatTruncatedString=Xt;exports.functionAbiSchema=Jr;exports.functionAbiTypeSchema=Kr;exports.getAddressFromArgentName=Qt;exports.getDefaultExportFromCjs=Hr;exports.getSignerForMultiSigner=Sn;exports.hexSchema=ur;exports.hexSchemaBase=qr;exports.implementationSchema=mn;exports.includesAddress=Gt;exports.isAddress=yr;exports.isArgentName=_r;exports.isEqualAddress=Dr;exports.isEqualArgentName=kr;exports.isEqualStarknetDomainName=Zt;exports.isEqualStarknetId=Br;exports.isStarknetDomainName=Wt;exports.isStarknetId=jr;exports.isValidAddress=Cr;exports.isZeroAddress=Pr;exports.legacyContractClassSchema=nt;exports.legacyEventSchema=Qr;exports.looseCalldataSchema=Xr;exports.multiTypeSchema=ye;exports.normalizeAddress=De;exports.normalizeAddressOrDomain=Yt;exports.normalizeArgentName=xe;exports.normalizeStarknetId=Me;exports.parseUnits=Bt;exports.programSchema=Yr;exports.pythonicHintsSchema=ot;exports.rawArgsArraySchema=Gr;exports.rawArgsObjectSchema=$r;exports.rawArgsSchema=We;exports.removeOwnersCalldataSchema=on;exports.removePluginCalldataSchema=fn;exports.replaceSignerCalldataSchema=cn;exports.safeParseAndWarn=Ln;exports.semver=An;exports.sierraContractEntryPointFieldsSchema=Ue;exports.sierraEntryPointsByTypeSchema=at;exports.sierraProgramDebugInfoSchema=it;exports.starknetDomainNameSchema=qe;exports.starknetIdSchema=Ve;exports.stringToBooleanSchema=vn;exports.structAbiSchema=rt;exports.transferCalldataSchema=dn;exports.uint256Schema=xr;exports.urlJoin=Ur;exports.useEmitEvent=_n;exports.useEventEmitter=pr;exports.useEventEmitterContext=Er;exports.useEventListener=kn;exports.useIsEventEmitterEnabled=Pn;exports.validChecksumAddressSchema=lr;exports.validateAddressRangeSchema=wr;exports.webBaseTokenSchema=_e;exports.webBaseTokenWithBalanceSchema=Vn;exports.webTokenInfoDetailsSchema=Wn;exports.webTokenPriceDetailsSchema=Hn;exports.webTokenSchema=zr;exports.webTokenWithBalanceAndPriceSchema=gt;exports.webTokenWithBalanceSchema=Et;exports.webTokenWithPriceSchema=pt;exports.webTokensWithBalanceAndPriceSchema=qn;