@ozdao/prometheus-framework 0.2.31 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
  3. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
  4. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
  5. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
  6. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
  7. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
  8. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
  9. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
  10. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
  11. package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
  12. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
  13. package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
  14. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
  15. package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
  16. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
  17. package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
  18. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
  19. package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
  20. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
  21. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
  22. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
  23. package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
  24. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
  25. package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
  26. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
  27. package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
  28. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
  29. package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
  30. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
  31. package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
  32. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
  33. package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
  34. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
  35. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
  36. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
  37. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
  38. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
  39. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
  40. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
  41. package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
  42. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
  43. package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
  44. package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
  45. package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
  46. package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
  47. package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
  48. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
  49. package/dist/node_modules/web3/lib/esm/abi.js +5 -10
  50. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
  51. package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
  52. package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
  53. package/dist/node_modules/web3/lib/esm/version.js +1 -1
  54. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
  55. package/dist/node_modules/web3/lib/esm/web3.js +53 -57
  56. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
  57. package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
  58. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
  59. package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
  60. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
  61. package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
  62. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
  63. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
  64. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
  65. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
  66. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
  67. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
  68. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
  69. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
  70. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
  71. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
  72. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
  73. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
  74. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
  75. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
  76. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
  77. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
  78. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
  79. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
  80. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
  81. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
  82. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
  83. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
  84. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
  85. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
  86. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
  87. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
  88. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
  89. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
  90. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
  91. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
  92. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
  93. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
  94. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
  95. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
  96. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
  97. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
  98. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
  99. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
  100. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
  101. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
  102. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
  103. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
  104. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
  105. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
  106. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
  107. package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
  108. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
  109. package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
  110. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
  111. package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
  112. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
  113. package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
  114. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
  115. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
  116. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
  117. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
  118. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
  119. package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
  120. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
  121. package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
  122. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
  123. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
  124. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
  125. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
  126. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
  127. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
  128. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  129. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
  130. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
  131. package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
  132. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
  133. package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
  134. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
  135. package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
  136. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
  137. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
  138. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  139. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
  140. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  141. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
  142. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  143. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
  144. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
  145. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
  146. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
  147. package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
  148. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
  149. package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
  150. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
  151. package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
  152. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
  153. package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
  154. package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
  155. package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
  156. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
  157. package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
  158. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
  159. package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
  160. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  161. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
  162. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  163. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
  164. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
  165. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
  166. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
  167. package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
  168. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  169. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
  170. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  171. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
  172. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
  173. package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
  174. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
  175. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
  176. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  177. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
  178. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
  179. package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
  180. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
  181. package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
  182. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  183. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
  184. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
  185. package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
  186. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  187. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
  188. package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
  189. package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
  190. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  191. package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
  192. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
  193. package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
  194. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  195. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
  196. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
  197. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
  198. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
  199. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
  200. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  201. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
  202. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
  203. package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
  204. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  205. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
  206. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  207. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
  208. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  209. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
  210. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  211. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
  212. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  213. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
  214. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
  215. package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
  216. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
  217. package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
  218. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
  219. package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
  220. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
  221. package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
  222. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
  223. package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
  224. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  225. package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
  226. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  227. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  228. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  229. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  230. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
  231. package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
  232. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  233. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +90 -47
  234. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
  235. package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
  236. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  237. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
  238. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  239. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +105 -41
  240. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
  241. package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
  242. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  243. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
  244. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  245. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
  246. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
  247. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  248. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +108 -94
  249. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  250. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
  251. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  252. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
  253. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
  254. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
  255. package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
  256. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  257. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
  258. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
  259. package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
  260. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  261. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
  262. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  263. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
  264. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
  265. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
  266. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
  267. package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
  268. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
  269. package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
  270. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
  271. package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
  272. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  273. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +106 -85
  274. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  275. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +31 -34
  276. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
  277. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  278. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
  279. package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
  280. package/dist/prometheus-framework/src/modules/events/router/events.js +1 -1
  281. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  282. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  283. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  284. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  285. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -1
  286. package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
  287. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  288. package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
  289. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
  290. package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
  291. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
  292. package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
  293. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
  294. package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
  295. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
  296. package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
  297. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
  298. package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
  299. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
  300. package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
  301. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  302. package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
  303. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
  304. package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
  305. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
  306. package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
  307. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
  308. package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
  309. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
  310. package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
  311. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
  312. package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
  313. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
  314. package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
  315. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
  316. package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
  317. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
  318. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
  319. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
  320. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
  321. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
  322. package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
  323. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
  324. package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
  325. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
  326. package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
  327. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
  328. package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
  329. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
  330. package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
  331. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
  332. package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
  333. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
  334. package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
  335. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
  336. package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
  337. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
  338. package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
  339. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
  340. package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
  341. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
  342. package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
  343. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
  344. package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
  345. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
  346. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
  347. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
  348. package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
  349. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  350. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
  351. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  352. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
  353. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
  354. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
  355. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  356. package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
  357. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  358. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
  359. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
  360. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
  361. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  362. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +85 -79
  363. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
  364. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
  365. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
  366. package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
  367. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  368. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
  369. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
  370. package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
  371. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  372. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +55 -169
  373. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  374. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +48 -59
  375. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  376. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +173 -94
  377. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  378. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +27 -20
  379. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  380. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
  381. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  382. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +67 -63
  383. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
  384. package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
  385. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  386. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
  387. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  388. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  389. package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
  390. package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
  391. package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
  392. package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
  393. package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
  394. package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
  395. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  396. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  397. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  398. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  399. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  400. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
  401. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  402. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
  403. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  404. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
  405. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  406. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +73 -44
  407. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  408. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
  409. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
  410. package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
  411. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  412. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
  413. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
  414. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
  415. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
  416. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
  417. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
  418. package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
  419. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
  420. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
  421. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
  422. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
  423. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  424. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
  425. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  426. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
  427. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  428. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +246 -102
  429. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
  430. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
  431. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  432. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
  433. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  434. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +56 -7
  435. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  436. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +82 -65
  437. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
  438. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
  439. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
  440. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
  441. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  442. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
  443. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  444. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
  445. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  446. package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
  447. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  448. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
  449. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  450. package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
  451. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  452. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +89 -94
  453. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  454. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  455. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  456. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
  457. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  458. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  459. package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
  460. package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
  461. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  462. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +80 -71
  463. package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
  464. package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
  465. package/dist/prometheus-framework.cjs.js +21 -21
  466. package/dist/prometheus-framework.es.js +1037 -1023
  467. package/dist/style.css +1 -1
  468. package/package.json +1 -1
  469. package/src/components/Countdown/Countdown.vue +75 -0
  470. package/src/components/EditImages/EditImages.vue +10 -2
  471. package/src/components/Upload/Upload.vue +32 -6
  472. package/src/components/UploadImage/UploadImage.vue +12 -8
  473. package/src/components/UploadImageMultiple/UploadImageMultiple.vue +4 -2
  474. package/src/modules/events/components/pages/EditEvent.vue +288 -1
  475. package/src/modules/events/components/pages/Event.vue +125 -46
  476. package/src/modules/events/components/sections/HeroEvent.vue +161 -0
  477. package/src/modules/events/components/sections/SectionLineup.vue +42 -0
  478. package/src/modules/events/components/sections/SectionMainGuest.vue +104 -0
  479. package/src/modules/events/components/sections/SectionPreviousEvents.vue +119 -0
  480. package/src/modules/events/components/sections/SectionSpecialGuests.vue +47 -0
  481. package/src/modules/events/controllers/events.controller.js +1 -0
  482. package/src/modules/events/controllers/utils/queryProcessor.js +2 -0
  483. package/src/modules/events/models/event.model.js +28 -0
  484. package/src/modules/events/store/events.js +4 -0
  485. package/src/modules/files/controllers/files.controller.js +3 -0
  486. package/src/modules/files/middlewares/server/middlewareBusboy.js +115 -100
  487. package/src/modules/files/routes/files.routes.js +3 -4
  488. package/src/modules/globals/globals.server.js +0 -1
  489. package/src/modules/orders/components/blocks/CardOrder.vue +5 -5
  490. package/src/modules/orders/components/blocks/StatusHistory.vue +84 -0
  491. package/src/modules/orders/components/pages/Order.vue +11 -54
  492. package/src/modules/orders/components/pages/Orders.vue +0 -4
  493. package/src/modules/orders/controllers/orders.controller.js +17 -9
  494. package/src/modules/orders/models/order.model.js +19 -0
  495. package/src/modules/orders/routes/orders.routes.js +4 -1
  496. package/src/modules/products/components/sections/FilterProducts.vue +9 -10
  497. package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./_sha2.cjs"),c=require("./utils.cjs"),w=(n,a,e)=>n&a^~n&e,S=(n,a,e)=>n&a^n&e^a&e,y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),b=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64);class g extends p.SHA2{constructor(){super(64,32,8,!1),this.A=b[0]|0,this.B=b[1]|0,this.C=b[2]|0,this.D=b[3]|0,this.E=b[4]|0,this.F=b[5]|0,this.G=b[6]|0,this.H=b[7]|0}get(){const{A:a,B:e,C:s,D:i,E:r,F:o,G:x,H:f}=this;return[a,e,s,i,r,o,x,f]}set(a,e,s,i,r,o,x,f){this.A=a|0,this.B=e|0,this.C=s|0,this.D=i|0,this.E=r|0,this.F=o|0,this.G=x|0,this.H=f|0}process(a,e){for(let t=0;t<16;t++,e+=4)h[t]=a.getUint32(e,!1);for(let t=16;t<64;t++){const A=h[t-15],l=h[t-2],C=c.rotr(A,7)^c.rotr(A,18)^A>>>3,H=c.rotr(l,17)^c.rotr(l,19)^l>>>10;h[t]=H+h[t-7]+C+h[t-16]|0}let{A:s,B:i,C:r,D:o,E:x,F:f,G:d,H:u}=this;for(let t=0;t<64;t++){const A=c.rotr(x,6)^c.rotr(x,11)^c.rotr(x,25),l=u+A+w(x,f,d)+y[t]+h[t]|0,H=(c.rotr(s,2)^c.rotr(s,13)^c.rotr(s,22))+S(s,i,r)|0;u=d,d=f,f=x,x=o+l|0,o=r,r=i,i=s,s=l+H|0}s=s+this.A|0,i=i+this.B|0,r=r+this.C|0,o=o+this.D|0,x=x+this.E|0,f=f+this.F|0,d=d+this.G|0,u=u+this.H|0,this.set(s,i,r,o,x,f,d,u)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class B extends g{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const D=c.wrapConstructor(()=>new g);c.wrapConstructor(()=>new B);exports.sha256=D;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./_sha2.cjs"),e=require("./utils.cjs"),y=(n,a,c)=>n&a^~n&c,S=(n,a,c)=>n&a^n&c^a&c,w=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),h=new Uint32Array(64);class B extends g.SHA2{constructor(){super(64,32,8,!1),this.A=o[0]|0,this.B=o[1]|0,this.C=o[2]|0,this.D=o[3]|0,this.E=o[4]|0,this.F=o[5]|0,this.G=o[6]|0,this.H=o[7]|0}get(){const{A:a,B:c,C:x,D:r,E:i,F:b,G:s,H:f}=this;return[a,c,x,r,i,b,s,f]}set(a,c,x,r,i,b,s,f){this.A=a|0,this.B=c|0,this.C=x|0,this.D=r|0,this.E=i|0,this.F=b|0,this.G=s|0,this.H=f|0}process(a,c){for(let t=0;t<16;t++,c+=4)h[t]=a.getUint32(c,!1);for(let t=16;t<64;t++){const A=h[t-15],l=h[t-2],C=e.rotr(A,7)^e.rotr(A,18)^A>>>3,H=e.rotr(l,17)^e.rotr(l,19)^l>>>10;h[t]=H+h[t-7]+C+h[t-16]|0}let{A:x,B:r,C:i,D:b,E:s,F:f,G:d,H:u}=this;for(let t=0;t<64;t++){const A=e.rotr(s,6)^e.rotr(s,11)^e.rotr(s,25),l=u+A+y(s,f,d)+w[t]+h[t]|0,H=(e.rotr(x,2)^e.rotr(x,13)^e.rotr(x,22))+S(x,r,i)|0;u=d,d=f,f=s,s=b+l|0,b=i,i=r,r=x,x=l+H|0}x=x+this.A|0,r=r+this.B|0,i=i+this.C|0,b=b+this.D|0,s=s+this.E|0,f=f+this.F|0,d=d+this.G|0,u=u+this.H|0,this.set(x,r,i,b,s,f,d,u)}roundClean(){h.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const D=e.wrapConstructor(()=>new B);exports.sha256=D;
@@ -1,6 +1,6 @@
1
- import { SHA2 as w } from "./_sha2.js";
2
- import { wrapConstructor as p, rotr as b } from "./utils.js";
3
- const B = (r, e, c) => r & e ^ ~r & c, D = (r, e, c) => r & e ^ r & c ^ e & c, E = new Uint32Array([
1
+ import { SHA2 as p } from "./_sha2.js";
2
+ import { wrapConstructor as u, rotr as b } from "./utils.js";
3
+ const g = (r, e, s) => r & e ^ ~r & s, w = (r, e, s) => r & e ^ r & s ^ e & s, B = /* @__PURE__ */ new Uint32Array([
4
4
  1116352408,
5
5
  1899447441,
6
6
  3049323471,
@@ -65,7 +65,7 @@ const B = (r, e, c) => r & e ^ ~r & c, D = (r, e, c) => r & e ^ r & c ^ e & c, E
65
65
  2756734187,
66
66
  3204031479,
67
67
  3329325298
68
- ]), n = new Uint32Array([
68
+ ]), o = /* @__PURE__ */ new Uint32Array([
69
69
  1779033703,
70
70
  3144134277,
71
71
  1013904242,
@@ -74,47 +74,41 @@ const B = (r, e, c) => r & e ^ ~r & c, D = (r, e, c) => r & e ^ r & c ^ e & c, E
74
74
  2600822924,
75
75
  528734635,
76
76
  1541459225
77
- ]), o = new Uint32Array(64);
78
- class m extends w {
77
+ ]), n = /* @__PURE__ */ new Uint32Array(64);
78
+ class D extends p {
79
79
  constructor() {
80
- super(64, 32, 8, !1), this.A = n[0] | 0, this.B = n[1] | 0, this.C = n[2] | 0, this.D = n[3] | 0, this.E = n[4] | 0, this.F = n[5] | 0, this.G = n[6] | 0, this.H = n[7] | 0;
80
+ super(64, 32, 8, !1), this.A = o[0] | 0, this.B = o[1] | 0, this.C = o[2] | 0, this.D = o[3] | 0, this.E = o[4] | 0, this.F = o[5] | 0, this.G = o[6] | 0, this.H = o[7] | 0;
81
81
  }
82
82
  get() {
83
- const { A: e, B: c, C: t, D: a, E: i, F: h, G: s, H: f } = this;
84
- return [e, c, t, a, i, h, s, f];
83
+ const { A: e, B: s, C: t, D: a, E: i, F: h, G: c, H: f } = this;
84
+ return [e, s, t, a, i, h, c, f];
85
85
  }
86
86
  // prettier-ignore
87
- set(e, c, t, a, i, h, s, f) {
88
- this.A = e | 0, this.B = c | 0, this.C = t | 0, this.D = a | 0, this.E = i | 0, this.F = h | 0, this.G = s | 0, this.H = f | 0;
87
+ set(e, s, t, a, i, h, c, f) {
88
+ this.A = e | 0, this.B = s | 0, this.C = t | 0, this.D = a | 0, this.E = i | 0, this.F = h | 0, this.G = c | 0, this.H = f | 0;
89
89
  }
90
- process(e, c) {
91
- for (let x = 0; x < 16; x++, c += 4)
92
- o[x] = e.getUint32(c, !1);
90
+ process(e, s) {
91
+ for (let x = 0; x < 16; x++, s += 4)
92
+ n[x] = e.getUint32(s, !1);
93
93
  for (let x = 16; x < 64; x++) {
94
- const H = o[x - 15], A = o[x - 2], C = b(H, 7) ^ b(H, 18) ^ H >>> 3, u = b(A, 17) ^ b(A, 19) ^ A >>> 10;
95
- o[x] = u + o[x - 7] + C + o[x - 16] | 0;
94
+ const H = n[x - 15], l = n[x - 2], m = b(H, 7) ^ b(H, 18) ^ H >>> 3, C = b(l, 17) ^ b(l, 19) ^ l >>> 10;
95
+ n[x] = C + n[x - 7] + m + n[x - 16] | 0;
96
96
  }
97
- let { A: t, B: a, C: i, D: h, E: s, F: f, G: d, H: l } = this;
97
+ let { A: t, B: a, C: i, D: h, E: c, F: f, G: d, H: A } = this;
98
98
  for (let x = 0; x < 64; x++) {
99
- const H = b(s, 6) ^ b(s, 11) ^ b(s, 25), A = l + H + B(s, f, d) + E[x] + o[x] | 0, u = (b(t, 2) ^ b(t, 13) ^ b(t, 22)) + D(t, a, i) | 0;
100
- l = d, d = f, f = s, s = h + A | 0, h = i, i = a, a = t, t = A + u | 0;
99
+ const H = b(c, 6) ^ b(c, 11) ^ b(c, 25), l = A + H + g(c, f, d) + B[x] + n[x] | 0, C = (b(t, 2) ^ b(t, 13) ^ b(t, 22)) + w(t, a, i) | 0;
100
+ A = d, d = f, f = c, c = h + l | 0, h = i, i = a, a = t, t = l + C | 0;
101
101
  }
102
- t = t + this.A | 0, a = a + this.B | 0, i = i + this.C | 0, h = h + this.D | 0, s = s + this.E | 0, f = f + this.F | 0, d = d + this.G | 0, l = l + this.H | 0, this.set(t, a, i, h, s, f, d, l);
102
+ t = t + this.A | 0, a = a + this.B | 0, i = i + this.C | 0, h = h + this.D | 0, c = c + this.E | 0, f = f + this.F | 0, d = d + this.G | 0, A = A + this.H | 0, this.set(t, a, i, h, c, f, d, A);
103
103
  }
104
104
  roundClean() {
105
- o.fill(0);
105
+ n.fill(0);
106
106
  }
107
107
  destroy() {
108
108
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
109
109
  }
110
110
  }
111
- class F extends m {
112
- constructor() {
113
- super(), this.A = -1056596264, this.B = 914150663, this.C = 812702999, this.D = -150054599, this.E = -4191439, this.F = 1750603025, this.G = 1694076839, this.H = -1090891868, this.outputLen = 28;
114
- }
115
- }
116
- const S = p(() => new m());
117
- p(() => new F());
111
+ const G = /* @__PURE__ */ u(() => new D());
118
112
  export {
119
- S as sha256
113
+ G as sha256
120
114
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./_assert.cjs"),d=require("./_u64.cjs"),a=require("./utils.cjs"),[y,b,L]=[[],[],[]],H=BigInt(0),l=BigInt(1),S=BigInt(2),T=BigInt(7),F=BigInt(256),X=BigInt(113);for(let n=0,t=l,s=1,i=0;n<24;n++){[s,i]=[i,(2*s+3*i)%5],y.push(2*(5*i+s)),b.push((n+1)*(n+2)/2%64);let o=H;for(let r=0;r<7;r++)t=(t<<l^(t>>T)*X)%F,t&S&&(o^=l<<(l<<BigInt(r))-l);L.push(o)}const[m,P]=d.default.split(L,!0),I=(n,t,s)=>s>32?d.default.rotlBH(n,t,s):d.default.rotlSH(n,t,s),w=(n,t,s)=>s>32?d.default.rotlBL(n,t,s):d.default.rotlSL(n,t,s);function _(n,t=24){const s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let e=0;e<10;e++)s[e]=n[e]^n[e+10]^n[e+20]^n[e+30]^n[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,k=(e+2)%10,x=s[k],u=s[k+1],B=I(x,u,1)^s[h],A=w(x,u,1)^s[h+1];for(let O=0;O<50;O+=10)n[e+O]^=B,n[e+O+1]^=A}let o=n[2],r=n[3];for(let e=0;e<24;e++){const h=b[e],k=I(o,r,h),x=w(o,r,h),u=y[e];o=n[u],r=n[u+1],n[u]=k,n[u+1]=x}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=n[e+h];for(let h=0;h<10;h++)n[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}n[0]^=m[i],n[1]^=P[i]}s.fill(0)}class p extends a.Hash{constructor(t,s,i,o=!1,r=24){if(super(),this.blockLen=t,this.suffix=s,this.outputLen=i,this.enableXOF=o,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,f.default.number(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=a.u32(this.state)}keccak(){_(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){f.default.exists(this);const{blockLen:s,state:i}=this;t=a.toBytes(t);const o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)i[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:i,blockLen:o}=this;t[i]^=s,s&128&&i===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){f.default.exists(this,!1),f.default.bytes(t),this.finish();const s=this.state,{blockLen:i}=this;for(let o=0,r=t.length;o<r;){this.posOut>=i&&this.keccak();const e=Math.min(i-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return f.default.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(f.default.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:s,suffix:i,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new p(s,i,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const c=(n,t,s)=>a.wrapConstructor(()=>new p(t,n,s));c(6,144,224/8);c(6,136,256/8);c(6,104,384/8);c(6,72,512/8);c(1,144,224/8);const U=c(1,136,256/8);c(1,104,384/8);c(1,72,512/8);const g=(n,t,s)=>a.wrapXOFConstructorWithOpts((i={})=>new p(t,n,i.dkLen===void 0?s:i.dkLen,!0));g(31,168,128/8);g(31,136,256/8);exports.Keccak=p;exports.keccakP=_;exports.keccak_256=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./_assert.cjs"),f=require("./_u64.cjs"),k=require("./utils.cjs"),[y,b,_]=[[],[],[]],B=BigInt(0),l=BigInt(1),A=BigInt(2),H=BigInt(7),S=BigInt(256),T=BigInt(113);for(let i=0,t=l,s=1,n=0;i<24;i++){[s,n]=[n,(2*s+3*n)%5],y.push(2*(5*n+s)),b.push((i+1)*(i+2)/2%64);let o=B;for(let r=0;r<7;r++)t=(t<<l^(t>>H)*T)%S,t&A&&(o^=l<<(l<<BigInt(r))-l);_.push(o)}const[m,F]=f.split(_,!0),I=(i,t,s)=>s>32?f.rotlBH(i,t,s):f.rotlSH(i,t,s),O=(i,t,s)=>s>32?f.rotlBL(i,t,s):f.rotlSL(i,t,s);function w(i,t=24){const s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let e=0;e<10;e++)s[e]=i[e]^i[e+10]^i[e+20]^i[e+30]^i[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,a=(e+2)%10,p=s[a],c=s[a+1],g=I(p,c,1)^s[h],L=O(p,c,1)^s[h+1];for(let d=0;d<50;d+=10)i[e+d]^=g,i[e+d+1]^=L}let o=i[2],r=i[3];for(let e=0;e<24;e++){const h=b[e],a=I(o,r,h),p=O(o,r,h),c=y[e];o=i[c],r=i[c+1],i[c]=a,i[c+1]=p}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=i[e+h];for(let h=0;h<10;h++)i[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}i[0]^=m[n],i[1]^=F[n]}s.fill(0)}class x extends k.Hash{constructor(t,s,n,o=!1,r=24){if(super(),this.blockLen=t,this.suffix=s,this.outputLen=n,this.enableXOF=o,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,u.number(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=k.u32(this.state)}keccak(){w(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){u.exists(this);const{blockLen:s,state:n}=this;t=k.toBytes(t);const o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)n[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:n,blockLen:o}=this;t[n]^=s,s&128&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){u.exists(this,!1),u.bytes(t),this.finish();const s=this.state,{blockLen:n}=this;for(let o=0,r=t.length;o<r;){this.posOut>=n&&this.keccak();const e=Math.min(n-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return u.number(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(u.output(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:s,suffix:n,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new x(s,n,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=n,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const P=(i,t,s)=>k.wrapConstructor(()=>new x(t,i,s)),X=P(1,136,256/8);exports.Keccak=x;exports.keccakP=w;exports.keccak_256=X;
@@ -1,59 +1,59 @@
1
- import u from "./_assert.js";
2
- import a from "./_u64.js";
3
- import { wrapConstructor as B, wrapXOFConstructorWithOpts as A, Hash as H, u32 as m, toBytes as S } from "./utils.js";
4
- const [w, L, y] = [[], [], []], T = BigInt(0), l = BigInt(1), F = BigInt(2), X = BigInt(7), U = BigInt(256), E = BigInt(113);
5
- for (let n = 0, t = l, s = 1, i = 0; n < 24; n++) {
6
- [s, i] = [i, (2 * s + 3 * i) % 5], w.push(2 * (5 * i + s)), L.push((n + 1) * (n + 2) / 2 % 64);
7
- let o = T;
1
+ import { number as d, exists as k, bytes as _, output as g } from "./_assert.js";
2
+ import { split as B, rotlBH as A, rotlSH as H, rotlBL as m, rotlSL as S } from "./_u64.js";
3
+ import { wrapConstructor as T, Hash as F, u32 as X, toBytes as U } from "./utils.js";
4
+ const [O, w, y] = [[], [], []], E = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), P = /* @__PURE__ */ BigInt(2), M = /* @__PURE__ */ BigInt(7), R = /* @__PURE__ */ BigInt(256), j = /* @__PURE__ */ BigInt(113);
5
+ for (let i = 0, t = f, s = 1, n = 0; i < 24; i++) {
6
+ [s, n] = [n, (2 * s + 3 * n) % 5], O.push(2 * (5 * n + s)), w.push((i + 1) * (i + 2) / 2 % 64);
7
+ let o = E;
8
8
  for (let r = 0; r < 7; r++)
9
- t = (t << l ^ (t >> X) * E) % U, t & F && (o ^= l << (l << BigInt(r)) - l);
9
+ t = (t << f ^ (t >> M) * j) % R, t & P && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
10
10
  y.push(o);
11
11
  }
12
- const [P, C] = a.split(y, !0), O = (n, t, s) => s > 32 ? a.rotlBH(n, t, s) : a.rotlSH(n, t, s), I = (n, t, s) => s > 32 ? a.rotlBL(n, t, s) : a.rotlSL(n, t, s);
13
- function M(n, t = 24) {
12
+ const [C, q] = /* @__PURE__ */ B(y, !0), x = (i, t, s) => s > 32 ? A(i, t, s) : H(i, t, s), I = (i, t, s) => s > 32 ? m(i, t, s) : S(i, t, s);
13
+ function v(i, t = 24) {
14
14
  const s = new Uint32Array(10);
15
- for (let i = 24 - t; i < 24; i++) {
15
+ for (let n = 24 - t; n < 24; n++) {
16
16
  for (let e = 0; e < 10; e++)
17
- s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
17
+ s[e] = i[e] ^ i[e + 10] ^ i[e + 20] ^ i[e + 30] ^ i[e + 40];
18
18
  for (let e = 0; e < 10; e += 2) {
19
- const h = (e + 8) % 10, p = (e + 2) % 10, d = s[p], f = s[p + 1], g = O(d, f, 1) ^ s[h], _ = I(d, f, 1) ^ s[h + 1];
20
- for (let x = 0; x < 50; x += 10)
21
- n[e + x] ^= g, n[e + x + 1] ^= _;
19
+ const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], L = x(u, c, 1) ^ s[h], b = I(u, c, 1) ^ s[h + 1];
20
+ for (let a = 0; a < 50; a += 10)
21
+ i[e + a] ^= L, i[e + a + 1] ^= b;
22
22
  }
23
- let o = n[2], r = n[3];
23
+ let o = i[2], r = i[3];
24
24
  for (let e = 0; e < 24; e++) {
25
- const h = L[e], p = O(o, r, h), d = I(o, r, h), f = w[e];
26
- o = n[f], r = n[f + 1], n[f] = p, n[f + 1] = d;
25
+ const h = w[e], l = x(o, r, h), u = I(o, r, h), c = O[e];
26
+ o = i[c], r = i[c + 1], i[c] = l, i[c + 1] = u;
27
27
  }
28
28
  for (let e = 0; e < 50; e += 10) {
29
29
  for (let h = 0; h < 10; h++)
30
- s[h] = n[e + h];
30
+ s[h] = i[e + h];
31
31
  for (let h = 0; h < 10; h++)
32
- n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
32
+ i[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
33
33
  }
34
- n[0] ^= P[i], n[1] ^= C[i];
34
+ i[0] ^= C[n], i[1] ^= q[n];
35
35
  }
36
36
  s.fill(0);
37
37
  }
38
- class k extends H {
38
+ class p extends F {
39
39
  // NOTE: we accept arguments in bytes instead of bits here.
40
- constructor(t, s, i, o = !1, r = 24) {
41
- if (super(), this.blockLen = t, this.suffix = s, this.outputLen = i, this.enableXOF = o, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, u.number(i), 0 >= this.blockLen || this.blockLen >= 200)
40
+ constructor(t, s, n, o = !1, r = 24) {
41
+ if (super(), this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = o, this.rounds = r, this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, d(n), 0 >= this.blockLen || this.blockLen >= 200)
42
42
  throw new Error("Sha3 supports only keccak-f1600 function");
43
- this.state = new Uint8Array(200), this.state32 = m(this.state);
43
+ this.state = new Uint8Array(200), this.state32 = X(this.state);
44
44
  }
45
45
  keccak() {
46
- M(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
46
+ v(this.state32, this.rounds), this.posOut = 0, this.pos = 0;
47
47
  }
48
48
  update(t) {
49
- u.exists(this);
50
- const { blockLen: s, state: i } = this;
51
- t = S(t);
49
+ k(this);
50
+ const { blockLen: s, state: n } = this;
51
+ t = U(t);
52
52
  const o = t.length;
53
53
  for (let r = 0; r < o; ) {
54
54
  const e = Math.min(s - this.pos, o - r);
55
55
  for (let h = 0; h < e; h++)
56
- i[this.pos++] ^= t[r++];
56
+ n[this.pos++] ^= t[r++];
57
57
  this.pos === s && this.keccak();
58
58
  }
59
59
  return this;
@@ -62,15 +62,15 @@ class k extends H {
62
62
  if (this.finished)
63
63
  return;
64
64
  this.finished = !0;
65
- const { state: t, suffix: s, pos: i, blockLen: o } = this;
66
- t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
65
+ const { state: t, suffix: s, pos: n, blockLen: o } = this;
66
+ t[n] ^= s, s & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
67
67
  }
68
68
  writeInto(t) {
69
- u.exists(this, !1), u.bytes(t), this.finish();
70
- const s = this.state, { blockLen: i } = this;
69
+ k(this, !1), _(t), this.finish();
70
+ const s = this.state, { blockLen: n } = this;
71
71
  for (let o = 0, r = t.length; o < r; ) {
72
- this.posOut >= i && this.keccak();
73
- const e = Math.min(i - this.posOut, r - o);
72
+ this.posOut >= n && this.keccak();
73
+ const e = Math.min(n - this.posOut, r - o);
74
74
  t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
75
75
  }
76
76
  return t;
@@ -81,10 +81,10 @@ class k extends H {
81
81
  return this.writeInto(t);
82
82
  }
83
83
  xof(t) {
84
- return u.number(t), this.xofInto(new Uint8Array(t));
84
+ return d(t), this.xofInto(new Uint8Array(t));
85
85
  }
86
86
  digestInto(t) {
87
- if (u.output(t, this), this.finished)
87
+ if (g(t, this), this.finished)
88
88
  throw new Error("digest() was already called");
89
89
  return this.writeInto(t), this.destroy(), t;
90
90
  }
@@ -95,24 +95,13 @@ class k extends H {
95
95
  this.destroyed = !0, this.state.fill(0);
96
96
  }
97
97
  _cloneInto(t) {
98
- const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
99
- return t || (t = new k(s, i, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
98
+ const { blockLen: s, suffix: n, outputLen: o, rounds: r, enableXOF: e } = this;
99
+ return t || (t = new p(s, n, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
100
100
  }
101
101
  }
102
- const c = (n, t, s) => B(() => new k(t, n, s));
103
- c(6, 144, 224 / 8);
104
- c(6, 136, 256 / 8);
105
- c(6, 104, 384 / 8);
106
- c(6, 72, 512 / 8);
107
- c(1, 144, 224 / 8);
108
- const q = c(1, 136, 256 / 8);
109
- c(1, 104, 384 / 8);
110
- c(1, 72, 512 / 8);
111
- const b = (n, t, s) => A((i = {}) => new k(t, n, i.dkLen === void 0 ? s : i.dkLen, !0));
112
- b(31, 168, 128 / 8);
113
- b(31, 136, 256 / 8);
102
+ const z = (i, t, s) => T(() => new p(t, i, s)), K = /* @__PURE__ */ z(1, 136, 256 / 8);
114
103
  export {
115
- k as Keccak,
116
- M as keccakP,
117
- q as keccak_256
104
+ p as Keccak,
105
+ v as keccakP,
106
+ K as keccak_256
118
107
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("./_sha2.cjs"),t=require("./_u64.cjs"),m=require("./utils.cjs"),[J,K]=t.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(F=>BigInt(F))),C=new Uint32Array(80),L=new Uint32Array(80);class g extends I.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:E,Al:D,Bh:h,Bl:a,Ch:c,Cl:f,Dh:l,Dl:x,Eh:u,El:n,Fh:s,Fl:d,Gh:b,Gl:i,Hh:r,Hl:o}=this;return[E,D,h,a,c,f,l,x,u,n,s,d,b,i,r,o]}set(E,D,h,a,c,f,l,x,u,n,s,d,b,i,r,o){this.Ah=E|0,this.Al=D|0,this.Bh=h|0,this.Bl=a|0,this.Ch=c|0,this.Cl=f|0,this.Dh=l|0,this.Dl=x|0,this.Eh=u|0,this.El=n|0,this.Fh=s|0,this.Fl=d|0,this.Gh=b|0,this.Gl=i|0,this.Hh=r|0,this.Hl=o|0}process(E,D){for(let e=0;e<16;e++,D+=4)C[e]=E.getUint32(D),L[e]=E.getUint32(D+=4);for(let e=16;e<80;e++){const S=C[e-15]|0,B=L[e-15]|0,U=t.default.rotrSH(S,B,1)^t.default.rotrSH(S,B,8)^t.default.shrSH(S,B,7),W=t.default.rotrSL(S,B,1)^t.default.rotrSL(S,B,8)^t.default.shrSL(S,B,7),H=C[e-2]|0,A=L[e-2]|0,_=t.default.rotrSH(H,A,19)^t.default.rotrBH(H,A,61)^t.default.shrSH(H,A,6),y=t.default.rotrSL(H,A,19)^t.default.rotrBL(H,A,61)^t.default.shrSL(H,A,6),w=t.default.add4L(W,y,L[e-7],L[e-16]),M=t.default.add4H(w,U,_,C[e-7],C[e-16]);C[e]=M|0,L[e]=w|0}let{Ah:h,Al:a,Bh:c,Bl:f,Ch:l,Cl:x,Dh:u,Dl:n,Eh:s,El:d,Fh:b,Fl:i,Gh:r,Gl:o,Hh:G,Hl:p}=this;for(let e=0;e<80;e++){const S=t.default.rotrSH(s,d,14)^t.default.rotrSH(s,d,18)^t.default.rotrBH(s,d,41),B=t.default.rotrSL(s,d,14)^t.default.rotrSL(s,d,18)^t.default.rotrBL(s,d,41),U=s&b^~s&r,W=d&i^~d&o,H=t.default.add5L(p,B,W,K[e],L[e]),A=t.default.add5H(H,G,S,U,J[e],C[e]),_=H|0,y=t.default.rotrSH(h,a,28)^t.default.rotrBH(h,a,34)^t.default.rotrBH(h,a,39),w=t.default.rotrSL(h,a,28)^t.default.rotrBL(h,a,34)^t.default.rotrBL(h,a,39),M=h&c^h&l^c&l,q=a&f^a&x^f&x;G=r|0,p=o|0,r=b|0,o=i|0,b=s|0,i=d|0,{h:s,l:d}=t.default.add(u|0,n|0,A|0,_|0),u=l|0,n=x|0,l=c|0,x=f|0,c=h|0,f=a|0;const T=t.default.add3L(_,w,q);h=t.default.add3H(T,A,y,M),a=T|0}({h,l:a}=t.default.add(this.Ah|0,this.Al|0,h|0,a|0)),{h:c,l:f}=t.default.add(this.Bh|0,this.Bl|0,c|0,f|0),{h:l,l:x}=t.default.add(this.Ch|0,this.Cl|0,l|0,x|0),{h:u,l:n}=t.default.add(this.Dh|0,this.Dl|0,u|0,n|0),{h:s,l:d}=t.default.add(this.Eh|0,this.El|0,s|0,d|0),{h:b,l:i}=t.default.add(this.Fh|0,this.Fl|0,b|0,i|0),{h:r,l:o}=t.default.add(this.Gh|0,this.Gl|0,r|0,o|0),{h:G,l:p}=t.default.add(this.Hh|0,this.Hl|0,G|0,p|0),this.set(h,a,c,f,l,x,u,n,s,d,b,i,r,o,G,p)}roundClean(){C.fill(0),L.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class j extends g{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class O extends g{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class P extends g{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}const k=m.wrapConstructor(()=>new g);m.wrapConstructor(()=>new j);m.wrapConstructor(()=>new O);m.wrapConstructor(()=>new P);exports.SHA512=g;exports.sha512=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./_sha2.cjs"),t=require("./_u64.cjs"),I=require("./utils.cjs"),[J,K]=(()=>t.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(y=>BigInt(y))))(),L=new Uint32Array(80),C=new Uint32Array(80);class T extends w.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:D,Al:g,Bh:a,Bl:d,Ch:l,Cl:h,Dh:s,Dl:b,Eh:u,El:n,Fh:c,Fl:f,Gh:x,Gl:i,Hh:r,Hl:o}=this;return[D,g,a,d,l,h,s,b,u,n,c,f,x,i,r,o]}set(D,g,a,d,l,h,s,b,u,n,c,f,x,i,r,o){this.Ah=D|0,this.Al=g|0,this.Bh=a|0,this.Bl=d|0,this.Ch=l|0,this.Cl=h|0,this.Dh=s|0,this.Dl=b|0,this.Eh=u|0,this.El=n|0,this.Fh=c|0,this.Fl=f|0,this.Gh=x|0,this.Gl=i|0,this.Hh=r|0,this.Hl=o|0}process(D,g){for(let e=0;e<16;e++,g+=4)L[e]=D.getUint32(g),C[e]=D.getUint32(g+=4);for(let e=16;e<80;e++){const A=L[e-15]|0,B=C[e-15]|0,m=t.default.rotrSH(A,B,1)^t.default.rotrSH(A,B,8)^t.default.shrSH(A,B,7),p=t.default.rotrSL(A,B,1)^t.default.rotrSL(A,B,8)^t.default.shrSL(A,B,7),H=L[e-2]|0,S=C[e-2]|0,G=t.default.rotrSH(H,S,19)^t.default.rotrBH(H,S,61)^t.default.shrSH(H,S,6),U=t.default.rotrSL(H,S,19)^t.default.rotrBL(H,S,61)^t.default.shrSL(H,S,6),_=t.default.add4L(p,U,C[e-7],C[e-16]),W=t.default.add4H(_,m,G,L[e-7],L[e-16]);L[e]=W|0,C[e]=_|0}let{Ah:a,Al:d,Bh:l,Bl:h,Ch:s,Cl:b,Dh:u,Dl:n,Eh:c,El:f,Fh:x,Fl:i,Gh:r,Gl:o,Hh:E,Hl:F}=this;for(let e=0;e<80;e++){const A=t.default.rotrSH(c,f,14)^t.default.rotrSH(c,f,18)^t.default.rotrBH(c,f,41),B=t.default.rotrSL(c,f,14)^t.default.rotrSL(c,f,18)^t.default.rotrBL(c,f,41),m=c&x^~c&r,p=f&i^~f&o,H=t.default.add5L(F,B,p,K[e],C[e]),S=t.default.add5H(H,E,A,m,J[e],L[e]),G=H|0,U=t.default.rotrSH(a,d,28)^t.default.rotrBH(a,d,34)^t.default.rotrBH(a,d,39),_=t.default.rotrSL(a,d,28)^t.default.rotrBL(a,d,34)^t.default.rotrBL(a,d,39),W=a&l^a&s^l&s,q=d&h^d&b^h&b;E=r|0,F=o|0,r=x|0,o=i|0,x=c|0,i=f|0,{h:c,l:f}=t.default.add(u|0,n|0,S|0,G|0),u=s|0,n=b|0,s=l|0,b=h|0,l=a|0,h=d|0;const M=t.default.add3L(G,_,q);a=t.default.add3H(M,S,U,W),d=M|0}({h:a,l:d}=t.default.add(this.Ah|0,this.Al|0,a|0,d|0)),{h:l,l:h}=t.default.add(this.Bh|0,this.Bl|0,l|0,h|0),{h:s,l:b}=t.default.add(this.Ch|0,this.Cl|0,s|0,b|0),{h:u,l:n}=t.default.add(this.Dh|0,this.Dl|0,u|0,n|0),{h:c,l:f}=t.default.add(this.Eh|0,this.El|0,c|0,f|0),{h:x,l:i}=t.default.add(this.Fh|0,this.Fl|0,x|0,i|0),{h:r,l:o}=t.default.add(this.Gh|0,this.Gl|0,r|0,o|0),{h:E,l:F}=t.default.add(this.Hh|0,this.Hl|0,E|0,F|0),this.set(a,d,l,h,s,b,u,n,c,f,x,i,r,o,E,F)}roundClean(){L.fill(0),C.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const j=I.wrapConstructor(()=>new T);exports.SHA512=T;exports.sha512=j;
@@ -1,7 +1,7 @@
1
- import { SHA2 as J } from "./_sha2.js";
2
- import h from "./_u64.js";
3
- import { wrapConstructor as _ } from "./utils.js";
4
- const [K, j] = h.split([
1
+ import { SHA2 as I } from "./_sha2.js";
2
+ import c from "./_u64.js";
3
+ import { wrapConstructor as T } from "./utils.js";
4
+ const [J, K] = /* @__PURE__ */ (() => c.split([
5
5
  "0x428a2f98d728ae22",
6
6
  "0x7137449123ef65cd",
7
7
  "0xb5c0fbcfec4d3b2f",
@@ -82,63 +82,45 @@ const [K, j] = h.split([
82
82
  "0x597f299cfc657e2a",
83
83
  "0x5fcb6fab3ad6faec",
84
84
  "0x6c44198c4a475817"
85
- ].map((F) => BigInt(F))), u = new Uint32Array(80), L = new Uint32Array(80);
86
- class w extends J {
85
+ ].map((M) => BigInt(M))))(), C = /* @__PURE__ */ new Uint32Array(80), m = /* @__PURE__ */ new Uint32Array(80);
86
+ class j extends I {
87
87
  constructor() {
88
88
  super(128, 64, 16, !1), this.Ah = 1779033703, this.Al = -205731576, this.Bh = -1150833019, this.Bl = -2067093701, this.Ch = 1013904242, this.Cl = -23791573, this.Dh = -1521486534, this.Dl = 1595750129, this.Eh = 1359893119, this.El = -1377402159, this.Fh = -1694144372, this.Fl = 725511199, this.Gh = 528734635, this.Gl = -79577749, this.Hh = 1541459225, this.Hl = 327033209;
89
89
  }
90
90
  // prettier-ignore
91
91
  get() {
92
- const { Ah: E, Al: D, Bh: s, Bl: c, Ch: a, Cl: d, Dh: b, Dl: i, Eh: n, El: H, Fh: x, Fl: e, Gh: f, Gl: l, Hh: r, Hl: o } = this;
93
- return [E, D, s, c, a, d, b, i, n, H, x, e, f, l, r, o];
92
+ const { Ah: E, Al: D, Bh: h, Bl: a, Ch: s, Cl: d, Dh: x, Dl: f, Eh: n, El: H, Fh: e, Fl: b, Gh: l, Gl: i, Hh: r, Hl: o } = this;
93
+ return [E, D, h, a, s, d, x, f, n, H, e, b, l, i, r, o];
94
94
  }
95
95
  // prettier-ignore
96
- set(E, D, s, c, a, d, b, i, n, H, x, e, f, l, r, o) {
97
- this.Ah = E | 0, this.Al = D | 0, this.Bh = s | 0, this.Bl = c | 0, this.Ch = a | 0, this.Cl = d | 0, this.Dh = b | 0, this.Dl = i | 0, this.Eh = n | 0, this.El = H | 0, this.Fh = x | 0, this.Fl = e | 0, this.Gh = f | 0, this.Gl = l | 0, this.Hh = r | 0, this.Hl = o | 0;
96
+ set(E, D, h, a, s, d, x, f, n, H, e, b, l, i, r, o) {
97
+ this.Ah = E | 0, this.Al = D | 0, this.Bh = h | 0, this.Bl = a | 0, this.Ch = s | 0, this.Cl = d | 0, this.Dh = x | 0, this.Dl = f | 0, this.Eh = n | 0, this.El = H | 0, this.Fh = e | 0, this.Fl = b | 0, this.Gh = l | 0, this.Gl = i | 0, this.Hh = r | 0, this.Hl = o | 0;
98
98
  }
99
99
  process(E, D) {
100
100
  for (let t = 0; t < 16; t++, D += 4)
101
- u[t] = E.getUint32(D), L[t] = E.getUint32(D += 4);
101
+ C[t] = E.getUint32(D), m[t] = E.getUint32(D += 4);
102
102
  for (let t = 16; t < 80; t++) {
103
- const B = u[t - 15] | 0, C = L[t - 15] | 0, U = h.rotrSH(B, C, 1) ^ h.rotrSH(B, C, 8) ^ h.shrSH(B, C, 7), W = h.rotrSL(B, C, 1) ^ h.rotrSL(B, C, 8) ^ h.shrSL(B, C, 7), A = u[t - 2] | 0, S = L[t - 2] | 0, m = h.rotrSH(A, S, 19) ^ h.rotrBH(A, S, 61) ^ h.shrSH(A, S, 6), M = h.rotrSL(A, S, 19) ^ h.rotrBL(A, S, 61) ^ h.shrSL(A, S, 6), g = h.add4L(W, M, L[t - 7], L[t - 16]), y = h.add4H(g, U, m, u[t - 7], u[t - 16]);
104
- u[t] = y | 0, L[t] = g | 0;
103
+ const B = C[t - 15] | 0, L = m[t - 15] | 0, u = c.rotrSH(B, L, 1) ^ c.rotrSH(B, L, 8) ^ c.shrSH(B, L, 7), U = c.rotrSL(B, L, 1) ^ c.rotrSL(B, L, 8) ^ c.shrSL(B, L, 7), S = C[t - 2] | 0, A = m[t - 2] | 0, p = c.rotrSH(S, A, 19) ^ c.rotrBH(S, A, 61) ^ c.shrSH(S, A, 6), W = c.rotrSL(S, A, 19) ^ c.rotrBL(S, A, 61) ^ c.shrSL(S, A, 6), g = c.add4L(U, W, m[t - 7], m[t - 16]), _ = c.add4H(g, u, p, C[t - 7], C[t - 16]);
104
+ C[t] = _ | 0, m[t] = g | 0;
105
105
  }
106
- let { Ah: s, Al: c, Bh: a, Bl: d, Ch: b, Cl: i, Dh: n, Dl: H, Eh: x, El: e, Fh: f, Fl: l, Gh: r, Gl: o, Hh: G, Hl: p } = this;
106
+ let { Ah: h, Al: a, Bh: s, Bl: d, Ch: x, Cl: f, Dh: n, Dl: H, Eh: e, El: b, Fh: l, Fl: i, Gh: r, Gl: o, Hh: F, Hl: G } = this;
107
107
  for (let t = 0; t < 80; t++) {
108
- const B = h.rotrSH(x, e, 14) ^ h.rotrSH(x, e, 18) ^ h.rotrBH(x, e, 41), C = h.rotrSL(x, e, 14) ^ h.rotrSL(x, e, 18) ^ h.rotrBL(x, e, 41), U = x & f ^ ~x & r, W = e & l ^ ~e & o, A = h.add5L(p, C, W, j[t], L[t]), S = h.add5H(A, G, B, U, K[t], u[t]), m = A | 0, M = h.rotrSH(s, c, 28) ^ h.rotrBH(s, c, 34) ^ h.rotrBH(s, c, 39), g = h.rotrSL(s, c, 28) ^ h.rotrBL(s, c, 34) ^ h.rotrBL(s, c, 39), y = s & a ^ s & b ^ a & b, T = c & d ^ c & i ^ d & i;
109
- G = r | 0, p = o | 0, r = f | 0, o = l | 0, f = x | 0, l = e | 0, { h: x, l: e } = h.add(n | 0, H | 0, S | 0, m | 0), n = b | 0, H = i | 0, b = a | 0, i = d | 0, a = s | 0, d = c | 0;
110
- const I = h.add3L(m, g, T);
111
- s = h.add3H(I, S, M, y), c = I | 0;
108
+ const B = c.rotrSH(e, b, 14) ^ c.rotrSH(e, b, 18) ^ c.rotrBH(e, b, 41), L = c.rotrSL(e, b, 14) ^ c.rotrSL(e, b, 18) ^ c.rotrBL(e, b, 41), u = e & l ^ ~e & r, U = b & i ^ ~b & o, S = c.add5L(G, L, U, K[t], m[t]), A = c.add5H(S, F, B, u, J[t], C[t]), p = S | 0, W = c.rotrSH(h, a, 28) ^ c.rotrBH(h, a, 34) ^ c.rotrBH(h, a, 39), g = c.rotrSL(h, a, 28) ^ c.rotrBL(h, a, 34) ^ c.rotrBL(h, a, 39), _ = h & s ^ h & x ^ s & x, y = a & d ^ a & f ^ d & f;
109
+ F = r | 0, G = o | 0, r = l | 0, o = i | 0, l = e | 0, i = b | 0, { h: e, l: b } = c.add(n | 0, H | 0, A | 0, p | 0), n = x | 0, H = f | 0, x = s | 0, f = d | 0, s = h | 0, d = a | 0;
110
+ const w = c.add3L(p, g, y);
111
+ h = c.add3H(w, A, W, _), a = w | 0;
112
112
  }
113
- ({ h: s, l: c } = h.add(this.Ah | 0, this.Al | 0, s | 0, c | 0)), { h: a, l: d } = h.add(this.Bh | 0, this.Bl | 0, a | 0, d | 0), { h: b, l: i } = h.add(this.Ch | 0, this.Cl | 0, b | 0, i | 0), { h: n, l: H } = h.add(this.Dh | 0, this.Dl | 0, n | 0, H | 0), { h: x, l: e } = h.add(this.Eh | 0, this.El | 0, x | 0, e | 0), { h: f, l } = h.add(this.Fh | 0, this.Fl | 0, f | 0, l | 0), { h: r, l: o } = h.add(this.Gh | 0, this.Gl | 0, r | 0, o | 0), { h: G, l: p } = h.add(this.Hh | 0, this.Hl | 0, G | 0, p | 0), this.set(s, c, a, d, b, i, n, H, x, e, f, l, r, o, G, p);
113
+ ({ h, l: a } = c.add(this.Ah | 0, this.Al | 0, h | 0, a | 0)), { h: s, l: d } = c.add(this.Bh | 0, this.Bl | 0, s | 0, d | 0), { h: x, l: f } = c.add(this.Ch | 0, this.Cl | 0, x | 0, f | 0), { h: n, l: H } = c.add(this.Dh | 0, this.Dl | 0, n | 0, H | 0), { h: e, l: b } = c.add(this.Eh | 0, this.El | 0, e | 0, b | 0), { h: l, l: i } = c.add(this.Fh | 0, this.Fl | 0, l | 0, i | 0), { h: r, l: o } = c.add(this.Gh | 0, this.Gl | 0, r | 0, o | 0), { h: F, l: G } = c.add(this.Hh | 0, this.Hl | 0, F | 0, G | 0), this.set(h, a, s, d, x, f, n, H, e, b, l, i, r, o, F, G);
114
114
  }
115
115
  roundClean() {
116
- u.fill(0), L.fill(0);
116
+ C.fill(0), m.fill(0);
117
117
  }
118
118
  destroy() {
119
119
  this.buffer.fill(0), this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
120
120
  }
121
121
  }
122
- class k extends w {
123
- constructor() {
124
- super(), this.Ah = -1942145080, this.Al = 424955298, this.Bh = 1944164710, this.Bl = -1982016298, this.Ch = 502970286, this.Cl = 855612546, this.Dh = 1738396948, this.Dl = 1479516111, this.Eh = 258812777, this.El = 2077511080, this.Fh = 2011393907, this.Fl = 79989058, this.Gh = 1067287976, this.Gl = 1780299464, this.Hh = 286451373, this.Hl = -1848208735, this.outputLen = 28;
125
- }
126
- }
127
- class q extends w {
128
- constructor() {
129
- super(), this.Ah = 573645204, this.Al = -64227540, this.Bh = -1621794909, this.Bl = -934517566, this.Ch = 596883563, this.Cl = 1867755857, this.Dh = -1774684391, this.Dl = 1497426621, this.Eh = -1775747358, this.El = -1467023389, this.Fh = -1101128155, this.Fl = 1401305490, this.Gh = 721525244, this.Gl = 746961066, this.Hh = 246885852, this.Hl = -2117784414, this.outputLen = 32;
130
- }
131
- }
132
- class z extends w {
133
- constructor() {
134
- super(), this.Ah = -876896931, this.Al = -1056596264, this.Bh = 1654270250, this.Bl = 914150663, this.Ch = -1856437926, this.Cl = 812702999, this.Dh = 355462360, this.Dl = -150054599, this.Eh = 1731405415, this.El = -4191439, this.Fh = -1900787065, this.Fl = 1750603025, this.Gh = -619958771, this.Gl = 1694076839, this.Hh = 1203062813, this.Hl = -1090891868, this.outputLen = 48;
135
- }
136
- }
137
- const Q = _(() => new w());
138
- _(() => new k());
139
- _(() => new q());
140
- _(() => new z());
122
+ const N = /* @__PURE__ */ T(() => new j());
141
123
  export {
142
- w as SHA512,
143
- Q as sha512
124
+ j as SHA512,
125
+ N as sha512
144
126
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./crypto.cjs");/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const u=t=>t instanceof Uint8Array,y=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),p=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),a=(t,e)=>t<<32-e|t>>>e,s=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!s)throw new Error("Non little-endian hardware is not supported");Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function f(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function i(t){if(typeof t=="string"&&(t=f(t)),!u(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function w(...t){const e=new Uint8Array(t.reduce((n,o)=>n+o.length,0));let r=0;return t.forEach(n=>{if(!u(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}class d{clone(){return this._cloneInto()}}const l=t=>Object.prototype.toString.call(t)==="[object Object]"&&t.constructor===Object;function b(t,e){if(e!==void 0&&(typeof e!="object"||!l(e)))throw new Error("Options should be object or undefined");return Object.assign(t,e)}function g(t){const e=n=>t().update(i(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function h(t){const e=(n,o)=>t(o).update(i(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function O(t=32){if(c.crypto&&typeof c.crypto.getRandomValues=="function")return c.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}exports.Hash=d;exports.checkOpts=b;exports.concatBytes=w;exports.createView=p;exports.isLE=s;exports.randomBytes=O;exports.rotr=a;exports.toBytes=i;exports.u32=y;exports.utf8ToBytes=f;exports.wrapConstructor=g;exports.wrapXOFConstructorWithOpts=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./crypto.cjs");/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const l=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));function s(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}const p=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),w=(t,e)=>t<<32-e|t>>>e,u=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!u)throw new Error("Non little-endian hardware is not supported");function f(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function y(t){if(typeof t=="string"&&(t=f(t)),!s(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function d(...t){let e=0;for(let n=0;n<t.length;n++){const o=t[n];if(!s(o))throw new Error("Uint8Array expected");e+=o.length}const r=new Uint8Array(e);for(let n=0,o=0;n<t.length;n++){const i=t[n];r.set(i,o),o+=i.length}return r}class g{clone(){return this._cloneInto()}}const a={}.toString;function b(t,e){if(e!==void 0&&a.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function h(t){const e=n=>t().update(y(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function m(t=32){if(c.crypto&&typeof c.crypto.getRandomValues=="function")return c.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}exports.Hash=g;exports.checkOpts=b;exports.concatBytes=d;exports.createView=p;exports.isLE=u;exports.randomBytes=m;exports.rotr=w;exports.toBytes=y;exports.u32=l;exports.utf8ToBytes=f;exports.wrapConstructor=h;
@@ -1,64 +1,68 @@
1
1
  import { crypto as c } from "./crypto.js";
2
2
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
- const i = (t) => t instanceof Uint8Array, w = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), a = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), d = (t, e) => t << 32 - e | t >>> e, f = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
4
- if (!f)
3
+ const p = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
4
+ function f(t) {
5
+ return t instanceof Uint8Array || t != null && typeof t == "object" && t.constructor.name === "Uint8Array";
6
+ }
7
+ const g = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), d = (t, e) => t << 32 - e | t >>> e, u = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
8
+ if (!u)
5
9
  throw new Error("Non little-endian hardware is not supported");
6
- Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0"));
7
10
  function s(t) {
8
11
  if (typeof t != "string")
9
12
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
10
13
  return new Uint8Array(new TextEncoder().encode(t));
11
14
  }
12
- function u(t) {
13
- if (typeof t == "string" && (t = s(t)), !i(t))
15
+ function y(t) {
16
+ if (typeof t == "string" && (t = s(t)), !f(t))
14
17
  throw new Error(`expected Uint8Array, got ${typeof t}`);
15
18
  return t;
16
19
  }
17
- function l(...t) {
18
- const e = new Uint8Array(t.reduce((n, o) => n + o.length, 0));
19
- let r = 0;
20
- return t.forEach((n) => {
21
- if (!i(n))
20
+ function b(...t) {
21
+ let e = 0;
22
+ for (let n = 0; n < t.length; n++) {
23
+ const r = t[n];
24
+ if (!f(r))
22
25
  throw new Error("Uint8Array expected");
23
- e.set(n, r), r += n.length;
24
- }), e;
26
+ e += r.length;
27
+ }
28
+ const o = new Uint8Array(e);
29
+ for (let n = 0, r = 0; n < t.length; n++) {
30
+ const i = t[n];
31
+ o.set(i, r), r += i.length;
32
+ }
33
+ return o;
25
34
  }
26
- class b {
35
+ class h {
27
36
  // Safe version that clones internal state
28
37
  clone() {
29
38
  return this._cloneInto();
30
39
  }
31
40
  }
32
- const p = (t) => Object.prototype.toString.call(t) === "[object Object]" && t.constructor === Object;
33
- function g(t, e) {
34
- if (e !== void 0 && (typeof e != "object" || !p(e)))
41
+ const l = {}.toString;
42
+ function a(t, e) {
43
+ if (e !== void 0 && l.call(e) !== "[object Object]")
35
44
  throw new Error("Options should be object or undefined");
36
45
  return Object.assign(t, e);
37
46
  }
38
- function h(t) {
39
- const e = (n) => t().update(u(n)).digest(), r = t();
40
- return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = () => t(), e;
41
- }
42
47
  function m(t) {
43
- const e = (n, o) => t(o).update(u(n)).digest(), r = t({});
44
- return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = (n) => t(n), e;
48
+ const e = (n) => t().update(y(n)).digest(), o = t();
49
+ return e.outputLen = o.outputLen, e.blockLen = o.blockLen, e.create = () => t(), e;
45
50
  }
46
- function L(t = 32) {
51
+ function A(t = 32) {
47
52
  if (c && typeof c.getRandomValues == "function")
48
53
  return c.getRandomValues(new Uint8Array(t));
49
54
  throw new Error("crypto.getRandomValues must be defined");
50
55
  }
51
56
  export {
52
- b as Hash,
53
- g as checkOpts,
54
- l as concatBytes,
55
- a as createView,
56
- f as isLE,
57
- L as randomBytes,
57
+ h as Hash,
58
+ a as checkOpts,
59
+ b as concatBytes,
60
+ g as createView,
61
+ u as isLE,
62
+ A as randomBytes,
58
63
  d as rotr,
59
- u as toBytes,
60
- w as u32,
64
+ y as toBytes,
65
+ p as u32,
61
66
  s as utf8ToBytes,
62
- h as wrapConstructor,
63
- m as wrapXOFConstructorWithOpts
67
+ m as wrapConstructor
64
68
  };