@attocash/commons-test 6.2.1 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +58 -58
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
  3. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
  4. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
  5. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
  6. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
  7. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
  8. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +20 -20
  9. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
  10. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
  11. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
  12. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
  13. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +121 -121
  14. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +106 -106
  15. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +151 -151
  16. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +130 -130
  17. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
  18. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
  19. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +24 -24
  20. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
  21. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +46 -46
  22. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
  23. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
  24. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
  25. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +105 -105
  26. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
  27. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +28 -28
  28. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +45 -45
  29. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
  30. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
  31. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +48 -48
  32. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +59 -59
  33. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +15 -15
  34. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
  35. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
  36. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
  37. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
  38. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
  39. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
  40. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
  41. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
  42. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
  43. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
  44. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
  45. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
  46. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
  47. package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.mts +1 -1
  48. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +2 -0
  49. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
  50. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +38 -34
  51. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
  52. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +13 -13
  53. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
  54. package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.mts +3 -4
  55. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +4 -0
  56. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
  57. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +62 -54
  58. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
  59. package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.mts +11 -11
  60. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +868 -860
  61. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
  62. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +11 -11
  63. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
  64. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
  65. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
  66. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
  67. package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -1
  68. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  69. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -1
  70. package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.mts +4 -4
  71. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -1
  72. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
  73. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +37 -30
  74. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
  75. package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +1 -1
  76. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
  77. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -1
  78. package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
  79. package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -1
  80. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +1 -1
  81. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
  82. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -1
  83. package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
  84. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +26 -26
  85. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
  86. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +6 -6
  87. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
  88. package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
  89. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +18 -18
  90. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
  91. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  92. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
  93. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
  94. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
  95. package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
  96. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
  97. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
  98. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
  99. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
  100. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +6 -6
  101. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
  102. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
  103. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
  104. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
  105. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
  106. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map +1 -0
  107. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
  108. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
  109. package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
  110. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
  111. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
  112. package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
  113. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
  114. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
  115. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +74 -11
  116. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
  117. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +76 -0
  118. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
  119. package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
  120. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
  121. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
  122. package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
  123. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
  124. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
  125. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
  126. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
  127. package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
  128. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
  129. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
  130. package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
  131. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
  132. package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
  133. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +24 -24
  134. package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
  135. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
  136. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
  137. package/commons-commons-core/cash/atto/commons/Extensions.mjs +4 -4
  138. package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
  139. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  140. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
  141. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  142. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
  143. package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
  144. package/commons-commons-core.mjs +1 -2
  145. package/commons-commons-core.mjs.map +1 -1
  146. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
  147. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
  148. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +375 -419
  149. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
  150. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
  151. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
  152. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  153. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
  154. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
  155. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
  156. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
  157. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
  158. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +7 -7
  159. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
  160. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
  161. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
  162. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +70 -41
  163. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
  164. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
  165. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
  166. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +18 -18
  167. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
  168. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +37 -37
  169. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
  170. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
  171. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
  172. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +134 -129
  173. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
  174. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
  175. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
  176. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +57 -57
  177. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
  178. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +7 -7
  179. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
  180. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
  181. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
  182. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +70 -41
  183. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
  184. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
  185. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
  186. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +18 -18
  187. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
  188. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +8 -8
  189. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
  190. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +320 -320
  191. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
  192. package/commons-commons-node.mjs +6 -6
  193. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
  194. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs.map +1 -1
  195. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +31 -31
  196. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs.map +1 -1
  197. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
  198. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs.map +1 -1
  199. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.export.d.mts +1 -1
  200. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +36 -48
  201. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs.map +1 -1
  202. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
  203. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs.map +1 -1
  204. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.export.d.mts +1 -1
  205. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +55 -59
  206. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs.map +1 -1
  207. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +14 -14
  208. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs.map +1 -1
  209. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.export.d.mts +1 -1
  210. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +33 -45
  211. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs.map +1 -1
  212. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
  213. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs.map +1 -1
  214. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.export.d.mts +1 -1
  215. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +40 -40
  216. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs.map +1 -1
  217. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
  218. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
  219. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
  220. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
  221. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
  222. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
  223. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
  224. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
  225. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +73 -73
  226. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
  227. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.js.mjs.map +1 -1
  228. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +36 -36
  229. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs.map +1 -1
  230. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
  231. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
  232. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +14 -14
  233. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
  234. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +27 -27
  235. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
  236. package/commons-commons-worker.mjs +1 -1
  237. package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +19 -19
  238. package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
  239. package/kotlin-kotlin-stdlib/kotlin/Result.mjs +10 -5
  240. package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
  241. package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +21 -21
  242. package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
  243. package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +25 -25
  244. package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
  245. package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +25 -25
  246. package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
  247. package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +25 -25
  248. package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
  249. package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +25 -25
  250. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +31 -31
  251. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +19 -19
  252. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +2 -2
  253. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +1 -1
  254. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +5 -5
  255. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +1 -1
  256. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +191 -191
  257. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +1 -1
  258. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +9 -9
  259. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +33 -33
  260. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
  261. package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +8 -8
  262. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +4 -4
  263. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +2 -2
  264. package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +4 -4
  265. package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
  266. package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +5 -5
  267. package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
  268. package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
  269. package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +1 -1
  270. package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +14 -14
  271. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +3 -3
  272. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
  273. package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
  274. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +5 -5
  275. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +1 -1
  276. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +9 -0
  277. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
  278. package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
  279. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +3 -3
  280. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +33 -33
  281. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +91 -0
  282. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
  283. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -10
  284. package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +43 -43
  285. package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
  286. package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
  287. package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
  288. package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
  289. package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
  290. package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +24 -24
  291. package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
  292. package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
  293. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +22 -22
  294. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
  295. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
  296. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
  297. package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +29 -29
  298. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +26 -26
  299. package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
  300. package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
  301. package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
  302. package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +14 -14
  303. package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
  304. package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +62 -62
  305. package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +21 -21
  306. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +16 -16
  307. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  308. package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
  309. package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
  310. package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
  311. package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
  312. package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +76 -76
  313. package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
  314. package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
  315. package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
  316. package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
  317. package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
  318. package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
  319. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
  320. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
  321. package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +25 -25
  322. package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
  323. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
  324. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +167 -167
  325. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
  326. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
  327. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
  328. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +6 -6
  329. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +3 -3
  330. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
  331. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +6 -6
  332. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
  333. package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +3 -3
  334. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +43 -43
  335. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
  336. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
  337. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
  338. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
  339. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
  340. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +85 -85
  341. package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +14 -14
  342. package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +318 -318
  343. package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
  344. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +14 -14
  345. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
  346. package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
  347. package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +4 -4
  348. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +438 -438
  349. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
  350. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
  351. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
  352. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
  353. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
  354. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
  355. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
  356. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
  357. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
  358. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +16 -16
  359. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +9 -9
  360. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
  361. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +48 -48
  362. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +23 -23
  363. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +56 -56
  364. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
  365. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
  366. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +33 -33
  367. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
  368. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +8 -8
  369. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
  370. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
  371. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
  372. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +46 -46
  373. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
  374. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  375. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +71 -71
  376. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
  377. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
  378. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
  379. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
  380. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
  381. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
  382. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  383. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
  384. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +1 -1
  385. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +9 -9
  386. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
  387. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +52 -52
  388. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +61 -61
  389. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +35 -35
  390. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  391. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
  392. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
  393. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  394. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  395. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  396. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  397. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +53 -53
  398. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +150 -150
  399. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  400. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  401. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  402. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  403. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
  404. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
  405. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  406. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
  407. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +41 -41
  408. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
  409. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
  410. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
  411. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
  412. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
  413. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
  414. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
  415. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +65 -65
  416. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +45 -45
  417. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +53 -53
  418. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
  419. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
  420. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
  421. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
  422. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
  423. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
  424. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +232 -232
  425. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
  426. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
  427. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
  428. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +17 -17
  429. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
  430. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
  431. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
  432. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
  433. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
  434. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
  435. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +71 -71
  436. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
  437. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +114 -114
  438. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +97 -97
  439. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
  440. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
  441. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +31 -31
  442. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
  443. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
  444. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  445. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +61 -61
  446. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
  447. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  448. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  449. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  450. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +70 -70
  451. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  452. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
  453. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +21 -21
  454. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
  455. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
  456. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
  457. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  458. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +64 -64
  459. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
  460. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +10 -10
  461. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +177 -177
  462. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
  463. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  464. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
  465. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +214 -214
  466. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
  467. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
  468. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  469. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +71 -71
  470. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
  471. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  472. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
  473. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +50 -50
  474. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +46 -46
  475. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
  476. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +22 -22
  477. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +54 -54
  478. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +22 -22
  479. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
  480. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  481. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  482. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +23 -23
  483. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  484. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +32 -32
  485. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +16 -16
  486. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +9 -9
  487. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +7 -7
  488. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +36 -36
  489. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +32 -32
  490. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +71 -71
  491. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +77 -77
  492. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  493. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +55 -55
  494. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +33 -33
  495. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +28 -28
  496. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +114 -114
  497. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +52 -52
  498. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +82 -82
  499. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +23 -23
  500. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  501. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
  502. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  503. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +26 -26
  504. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
  505. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +36 -36
  506. package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
  507. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +48 -48
  508. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  509. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
  510. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +57 -57
  511. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  512. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  513. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +22 -22
  514. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
  515. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
  516. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
  517. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +16 -16
  518. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  519. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  520. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
  521. package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
  522. package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
  523. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +14 -14
  524. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
  525. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  526. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  527. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +39 -39
  528. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
  529. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
  530. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  531. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
  532. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +67 -67
  533. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
  534. package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
  535. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +59 -59
  536. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  537. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  538. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +21 -21
  539. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +16 -16
  540. package/ktor-ktor-http/io/ktor/http/Url.mjs +68 -68
  541. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
  542. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  543. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  544. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  545. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
  546. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +89 -89
  547. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
  548. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +50 -50
  549. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +11 -11
  550. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +73 -73
  551. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  552. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
  553. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  554. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  555. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +125 -125
  556. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  557. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
  558. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  559. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
  560. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
  561. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +32 -32
  562. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  563. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
  564. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  565. package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
  566. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  567. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  568. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  569. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  570. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  571. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  572. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  573. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  574. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
  575. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
  576. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  577. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  578. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  579. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +28 -28
  580. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
  581. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
  582. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +37 -37
  583. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  584. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +79 -79
  585. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +8 -8
  586. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  587. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
  588. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  589. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +40 -40
  590. package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
  591. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +36 -36
  592. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  593. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +82 -82
  594. package/ktor-ktor-utils/io/ktor/util/Text.mjs +8 -8
  595. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  596. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +100 -100
  597. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  598. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
  599. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  600. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  601. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
  602. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  603. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  604. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  605. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  606. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  607. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +52 -52
  608. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  609. package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
  610. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +17 -17
  611. package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
  612. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
  613. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
  614. package/package.json +1 -1
  615. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
  616. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
  617. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
  618. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
  619. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
  620. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
  621. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
  622. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
  623. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
  624. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
  625. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
  626. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
  627. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
  628. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
  629. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +0 -1
  630. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
  631. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
  632. /package/{commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs.map → commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.mjs.map} +0 -0
  633. /package/{commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs.map → commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.export.mjs.map} +0 -0
  634. /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  635. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
  636. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
  637. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  638. /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map → commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.export.mjs.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../commons-node/src/jsMain/kotlin/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-node/cash/atto/commons/node/monitor/src/kotlin/util/Standard.kt"],"sourcesContent":["package cash.atto.commons.node.monitor\n\nimport cash.atto.commons.AttoAddress\nimport cash.atto.commons.AttoHeight\nimport cash.atto.commons.node.AttoNodeClientAsync\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.await\nimport kotlin.js.Promise\n\n@JsExportForJs\nactual class AttoAccountEntryMonitorAsyncBuilder actual constructor(\n private val nodeClient: AttoNodeClientAsync,\n private val accountMonitor: AttoAccountMonitorAsync,\n) {\n private var heightProvider: suspend (AttoAddress) -> AttoHeight = { AttoHeight.MIN }\n\n fun heightProvider(value: (AttoAddress) -> Promise<AttoHeight>): AttoAccountEntryMonitorAsyncBuilder =\n apply {\n heightProvider = { address -> value.invoke(address).await() }\n }\n\n actual fun build(): AttoAccountEntryMonitorAsync {\n val accountEntryMonitor = AttoAccountEntryMonitor(nodeClient.client, accountMonitor.monitor, heightProvider)\n return AttoAccountEntryMonitorAsync(accountEntryMonitor, Dispatchers.Default)\n }\n}\n",null],"ignoreList":[],"x_google_ignoreList":[],"names":["invoke","$completion","AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda","AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda$lambda","$value","nodeClient","accountMonitor","heightProvider","value","build","accountEntryMonitor"],"mappings":";;;;;;;;;;;;;;;;;;;;;SAesEA,CAAA,E,EAAAC,WAAAD,EAAE;A,QAAc,+BAAH,K;MAAE,C;SAfrF,E,EAAAC,W;;;;;;;;;qEAesEC,CAAAA,E;;UAAAC,CAAA,E,EAAAF,WAAAE,2B;;;C;;;;;kBCGrEC,M;;;SAM2BJ,CAAE,O,EAAFC,WAAAD,EAAa;A,QAA4B,OAAN,QAAtB,IAAM,CAAN,KAAM,CAAO,OAAP,CAAgB,c;MAAM,C;SAxBrE,E,EAAAC,W;;;;;;;;;qEDmB6BC,CAFNE,MAEMF,E;;UAAAC,CAAE,O,EAAFF,WAAAE,gC;;;C;;;;;kBAPjBE,U,EACAC,c;QADR,uB;QACA,2B;kBAEkE,I;QAAA,0E;;oBAElEC,CAAmBC,KAAnBD,EACI;A;kBAAA,I;QACI,YAAiB,mE;QACpB,OAFD,I;MAEA,C;WAEGE,CAAAA,EAA0C;A,YAC7CC,sDAAkD,IAAlDA,CAAkD,KAAlDA,CAA6D,MAA7DA,EAAqE,IAArEA,CAAqE,KAArEA,CAAoF,OAApFA,EAA6F,IAA7FA,CAA6F,KAA7FA,C;QACA,4CAAoC,mBAApC,4BAAqE,KAArE,C;MACJ,C;;;;;;;;;;;"}
@@ -26,41 +26,41 @@ import { transformLatest23kpraac2xiec as transformLatest } from '../../../../../
26
26
  //endregion
27
27
  function *_generator_getAddresses__c6jfks($this, $completion) {
28
28
  // Inline function 'kotlinx.coroutines.sync.withLock' call
29
- var this_0 = $this.c4z_1;
30
- var tmp = this_0.q2e(null, $completion);
29
+ var this_0 = $this.t4w_1;
30
+ var tmp = this_0.t2e(null, $completion);
31
31
  if (tmp === get_COROUTINE_SUSPENDED())
32
32
  tmp = yield tmp;
33
33
  var tmp_0;
34
34
  try {
35
- tmp_0 = toSet($this.d4z_1);
35
+ tmp_0 = toSet($this.u4w_1);
36
36
  }finally {
37
- this_0.b2e(null);
37
+ this_0.e2e(null);
38
38
  }
39
39
  return tmp_0;
40
40
  }
41
41
  function *_generator_add__cbj1ot($this, newAddresses, $completion) {
42
42
  // Inline function 'kotlinx.coroutines.sync.withLock' call
43
- var this_0 = $this.c4z_1;
44
- var tmp = this_0.q2e(null, $completion);
43
+ var this_0 = $this.t4w_1;
44
+ var tmp = this_0.t2e(null, $completion);
45
45
  if (tmp === get_COROUTINE_SUSPENDED())
46
46
  tmp = yield tmp;
47
47
  try {
48
48
  // Inline function 'kotlin.collections.plusAssign' call
49
- var this_1 = $this.d4z_1;
49
+ var this_1 = $this.u4w_1;
50
50
  addAll(this_1, newAddresses);
51
- var tmp0 = $this.e4z_1;
51
+ var tmp0 = $this.v4w_1;
52
52
  $l$block: {
53
53
  // Inline function 'kotlinx.coroutines.flow.update' call
54
54
  while (true) {
55
55
  var prevValue = tmp0.g3();
56
- var nextValue = toSet($this.d4z_1);
57
- if (tmp0.r27(prevValue, nextValue)) {
56
+ var nextValue = toSet($this.u4w_1);
57
+ if (tmp0.u27(prevValue, nextValue)) {
58
58
  break $l$block;
59
59
  }
60
60
  }
61
61
  }
62
62
  }finally {
63
- this_0.b2e(null);
63
+ this_0.e2e(null);
64
64
  }
65
65
  return Unit_instance;
66
66
  }
@@ -71,7 +71,7 @@ function *_generator_invoke__zhh2q8($this, $this$transformLatest, it, $completio
71
71
  tmp$ret$0 = emptyFlow();
72
72
  break $l$block;
73
73
  }
74
- tmp$ret$0 = $this.h4z_1.f4z_1.x4w(it, $this.i4z_1);
74
+ tmp$ret$0 = $this.y4w_1.w4w_1.y4v(it, $this.z4w_1);
75
75
  }
76
76
  var tmp = emitAll($this$transformLatest, tmp$ret$0, $completion);
77
77
  if (tmp === get_COROUTINE_SUSPENDED())
@@ -79,22 +79,22 @@ function *_generator_invoke__zhh2q8($this, $this$transformLatest, it, $completio
79
79
  return Unit_instance;
80
80
  }
81
81
  function *_generator_monitor__im6uca($this, addresses, $completion) {
82
- var tmp = $this.g4z_1.j4z(addresses, $completion);
82
+ var tmp = $this.x4w_1.a4x(addresses, $completion);
83
83
  if (tmp === get_COROUTINE_SUSPENDED())
84
84
  tmp = yield tmp;
85
85
  return Unit_instance;
86
86
  }
87
87
  function *_generator_monitor__im6uca_0($this, address, $completion) {
88
- var tmp = $this.g4z_1.j4z(listOf(address), $completion);
88
+ var tmp = $this.x4w_1.a4x(listOf(address), $completion);
89
89
  if (tmp === get_COROUTINE_SUSPENDED())
90
90
  tmp = yield tmp;
91
91
  return Unit_instance;
92
92
  }
93
93
  function *_generator_getAccounts__z4cluw($this, $completion) {
94
- var tmp = $this.g4z_1.k4z($completion);
94
+ var tmp = $this.x4w_1.b4x($completion);
95
95
  if (tmp === get_COROUTINE_SUSPENDED())
96
96
  tmp = yield tmp;
97
- var tmp_0 = $this.f4z_1.h4u(tmp, $completion);
97
+ var tmp_0 = $this.w4w_1.u4v(tmp, $completion);
98
98
  if (tmp_0 === get_COROUTINE_SUSPENDED())
99
99
  tmp_0 = yield tmp_0;
100
100
  return tmp_0;
@@ -104,20 +104,20 @@ function State() {
104
104
  if (StateClass === VOID) {
105
105
  class $ {
106
106
  constructor() {
107
- this.c4z_1 = Mutex();
107
+ this.t4w_1 = Mutex();
108
108
  var tmp = this;
109
109
  // Inline function 'kotlin.collections.mutableSetOf' call
110
- tmp.d4z_1 = LinkedHashSet().w2();
111
- this.e4z_1 = MutableStateFlow(emptySet());
110
+ tmp.u4w_1 = LinkedHashSet().w2();
111
+ this.v4w_1 = MutableStateFlow(emptySet());
112
112
  }
113
- k4z($completion) {
113
+ b4x($completion) {
114
114
  return suspendOrReturn(/*#__NOINLINE__*/_generator_getAddresses__c6jfks.bind(VOID, this), $completion);
115
115
  }
116
- j4z(newAddresses, $completion) {
116
+ a4x(newAddresses, $completion) {
117
117
  return suspendOrReturn(/*#__NOINLINE__*/_generator_add__cbj1ot.bind(VOID, this, newAddresses), $completion);
118
118
  }
119
- l4z() {
120
- return asStateFlow(this.e4z_1);
119
+ c4x() {
120
+ return asStateFlow(this.v4w_1);
121
121
  }
122
122
  }
123
123
  initMetadataForClass($, 'State', State, VOID, VOID, [1, 0]);
@@ -130,15 +130,15 @@ function AttoAccountMonitor$receivableStream$slambda() {
130
130
  if (AttoAccountMonitor$receivableStream$slambdaClass === VOID) {
131
131
  class $ {
132
132
  constructor(this$0, $minAmount) {
133
- this.h4z_1 = this$0;
134
- this.i4z_1 = $minAmount;
133
+ this.y4w_1 = this$0;
134
+ this.z4w_1 = $minAmount;
135
135
  }
136
- m4z($this$transformLatest, it, $completion) {
136
+ d4x($this$transformLatest, it, $completion) {
137
137
  return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$transformLatest, it), $completion);
138
138
  }
139
139
  nd(p1, p2, $completion) {
140
140
  var tmp = (!(p1 == null) ? isInterface(p1, FlowCollector()) : false) ? p1 : THROW_CCE();
141
- return this.m4z(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
141
+ return this.d4x(tmp, (p2 == null ? true : !(p2 == null)) ? p2 : THROW_CCE(), $completion);
142
142
  }
143
143
  }
144
144
  initMetadataForLambda($, VOID, VOID, [2]);
@@ -148,7 +148,7 @@ function AttoAccountMonitor$receivableStream$slambda() {
148
148
  }
149
149
  function AttoAccountMonitor$receivableStream$slambda_0(this$0, $minAmount) {
150
150
  var i = new (AttoAccountMonitor$receivableStream$slambda())(this$0, $minAmount);
151
- var l = ($this$transformLatest, it, $completion) => i.m4z($this$transformLatest, it, $completion);
151
+ var l = ($this$transformLatest, it, $completion) => i.d4x($this$transformLatest, it, $completion);
152
152
  l.$arity = 2;
153
153
  return l;
154
154
  }
@@ -157,24 +157,24 @@ function AttoAccountMonitor() {
157
157
  if (AttoAccountMonitorClass === VOID) {
158
158
  class $ {
159
159
  constructor(client) {
160
- this.f4z_1 = client;
161
- this.g4z_1 = new (State())();
160
+ this.w4w_1 = client;
161
+ this.x4w_1 = new (State())();
162
162
  }
163
- n4z(addresses, $completion) {
163
+ e4x(addresses, $completion) {
164
164
  return suspendOrReturn(/*#__NOINLINE__*/_generator_monitor__im6uca.bind(VOID, this, addresses), $completion);
165
165
  }
166
- o4z(address, $completion) {
166
+ f4x(address, $completion) {
167
167
  return suspendOrReturn(/*#__NOINLINE__*/_generator_monitor__im6uca_0.bind(VOID, this, address), $completion);
168
168
  }
169
- p4z($completion) {
169
+ g4x($completion) {
170
170
  return suspendOrReturn(/*#__NOINLINE__*/_generator_getAccounts__z4cluw.bind(VOID, this), $completion);
171
171
  }
172
- l4z() {
173
- return this.g4z_1.l4z();
172
+ c4x() {
173
+ return this.x4w_1.c4x();
174
174
  }
175
- q4z(minAmount) {
175
+ h4x(minAmount) {
176
176
  // Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
177
- var this_0 = this.l4z();
177
+ var this_0 = this.c4x();
178
178
  return transformLatest(this_0, AttoAccountMonitor$receivableStream$slambda_0(this, minAmount));
179
179
  }
180
180
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-node/src/commonMain/kotlin/cash/atto/commons/node/monitor/AttoAccountMonitor.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/sync/Mutex.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-node/cash/atto/commons/node/monitor/src/kotlin/collections/MutableCollections.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/StateFlow.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-node/cash/atto/commons/node/monitor/src/kotlin/collections/Sets.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/operators/Merge.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-getAddresses>","$completion","<generator-add>","newAddresses","prevValue","nextValue","<generator-invoke>","<generator-monitor>","addresses","address","<generator-getAccounts>","getAddresses","add","membershipFlow","$minAmount","invoke","AttoAccountMonitor$receivableStream$slambda","AttoAccountMonitor$receivableStream$slambda$lambda","client","monitor","getAccounts","receivableStream","minAmount","createAccountMonitor","<this>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;yCAmEgBA,CAAA,K,EAAAC,WAAAD,EACJ;A;eAAA,K,CAAA,K;MCoDR,iBAJuD,IAIvD,c;;;;EACO,I;YDpDe,MAAV,KAAU,CAAV,KAAU,C;WCsDZ;A,IACN,WARmD,IAQnD,C;EACJ,C;EDvDS,OCmDF,K;ADnDC,C;gCAEIE,CAAA,K,EAAQC,Y,EAARF,WAAAC,EAA+C;A;eACnD,K,CAAA,K;MC+CR,iBAJuD,IAIvD,c;;;EACO,IAAI;A;iBD/CC,K,CAAA,K;IEdP,OAAL,MAAK,EFcoB,YEdpB,C;eFeO,K,CAAA,K;;;aG0JL,I,EAAM;A,YACTE,YAAgB,S;YAChBC,YH5J8C,MAAV,KAAU,CAAV,KAAU,C;QG6J1C,aAAc,SAAd,EAAyB,SAAzB,E,CAAqC;A;QAEzC,C;MACJ,C;;EFhHA,C,QAAU;A,IACN,WARmD,IAQnD,C;EACJ,C;EDhDI,oB;AAAA,C;mCAco3IC,CAAA,K,EAAA,qB,EAAA,E,EAAAL,WAAAK,EAAE;A;;IA1C12I,IA0C43I,EA1Cl3I,KAAV,C,CAAqB;A,MACrB,YAAqB,W;;IACzB,C;IACA,YAAqB,KAAO,CAAP,KAAO,CAAP,KAAO,KAuCo2I,EAvCp2I,EAA4B,KAA5B,CAA4B,KAA5B,C;;MAuCk1I,qCAAQ,SAAR,c;;;EAAqB,oB;AAAA,C;oCArEv4IC,CAAA,K,EAAYC,S,EAAZP,WAAAM,EAAgD;A,MAC9C,MAAN,KAAM,CAAN,KAAM,KAAI,SAAJ,c;;;EACV,oB;AAAA,C;sCAEQA,CAAA,K,EAAYE,O,EAAZR,WAAAM,EAAkC;A,MAChC,MAAN,KAAM,CAAN,KAAM,KAAI,OAAO,OAAP,CAAJ,c;;;EACV,oB;AAAA,C;wCAQQG,CAAA,K,EAAAT,WAAAS,EAA6C;A,MAAqB,MAAN,KAAM,CAAN,KAAM,iB;;;MAAd,QAAP,KAAO,CAAP,KAAO,sB;;;EAA6B,Y;AAAD,C;;;;;;QAqBhE,oB;kBACI,I;;QAAA,YIYsB,oB;QJXlB,8BAAmC,UAAnC,C;;SAQpBC,CAAAV,WAAAU,E;;O;SAKAC,CAAQT,Y,EAARF,WAAAW,E;;O;SAcRC,CAAAA,EAA+C;A,QAA2B,OAAb,YAAd,IAAc,CAAd,KAAc,C;MAAY,C;;;;;;;;;;;kBKhDuB,M,EAAqBC,U;;;;SAsJzGC,CAAA,qB,EAAA,E,EAAAd,WAAAc,E;;O;SA5LpB,E,EAAA,E,EAAAd,W;;;;;;;;;;sDL2F43Ie,CA7Cx3I,M,EAAqBF,UA6Cm2IE,E;;UAAAC,CAAA,qB,EAAA,E,EAAAhB,WAAAgB,kD;;;C;;;;;kBAzE/2IC,M;QAAT,mB;QAEoB,4B;;SAEZC,CAAYX,S,EAAZP,WAAAkB,E;;O;SAIAA,CAAYV,O,EAAZR,WAAAkB,E;;O;SAUAC,CAAAnB,WAAAmB,E;;O;SAORP,CAAAA,EAA+C;A,QAAsB,OAAtB,IAAM,CAAN,KAAM,M;MAAe,C;SAGpEQ,CAAqBC,SAArBD,EAAmF;A;qBACxE,U;QAAP,OK6IJ,wBAAgB,8DAAhB,C;MLtIA,C;;;;;;;6BAoCJE,CAAIC,aAAJD,EAAgE;A,EAAwB,kCAAL,aAAK,C;AAAD,C;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-node/src/commonMain/kotlin/cash/atto/commons/node/monitor/AttoAccountMonitor.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/sync/Mutex.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-node/cash/atto/commons/node/monitor/src/kotlin/collections/MutableCollections.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/StateFlow.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-node/cash/atto/commons/node/monitor/src/kotlin/collections/Sets.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/operators/Merge.kt"],"sourcesContent":["package cash.atto.commons.node.monitor\n\nimport cash.atto.commons.AttoAccount\nimport cash.atto.commons.AttoAddress\nimport cash.atto.commons.AttoAmount\nimport cash.atto.commons.AttoReceivable\nimport cash.atto.commons.node.AttoNodeClient\nimport kotlinx.coroutines.ExperimentalCoroutinesApi\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.emptyFlow\nimport kotlinx.coroutines.flow.flatMapLatest\nimport kotlinx.coroutines.flow.update\nimport kotlinx.coroutines.sync.Mutex\nimport kotlinx.coroutines.sync.withLock\n\nclass AttoAccountMonitor internal constructor(\n internal val client: AttoNodeClient,\n) {\n private val state = State()\n\n suspend fun monitor(addresses: Collection<AttoAddress>) {\n state.add(addresses)\n }\n\n suspend fun monitor(address: AttoAddress) {\n state.add(listOf(address))\n }\n\n suspend fun isMonitored(address: AttoAddress): Boolean = state.isMonitored(address)\n\n suspend fun stopMonitoring(address: AttoAddress) {\n state.remove(address)\n }\n\n suspend fun getAccounts(): Collection<AttoAccount> = client.account(state.getAddresses())\n\n suspend fun getAccount(address: AttoAddress): AttoAccount? {\n require(state.getAddresses().contains(address)) { \"Address $address not found in the monitor\" }\n return client.account(address.publicKey)\n }\n\n fun membershipFlow(): Flow<Set<AttoAddress>> = state.membershipFlow()\n\n @OptIn(ExperimentalCoroutinesApi::class)\n fun receivableStream(minAmount: AttoAmount = AttoAmount.MIN): Flow<AttoReceivable> {\n return membershipFlow()\n .flatMapLatest { addresses ->\n if (addresses.isEmpty()) {\n return@flatMapLatest emptyFlow()\n }\n return@flatMapLatest client.receivableStream(addresses, minAmount)\n }\n }\n\n private class State {\n private val mutex = Mutex()\n private val addresses = mutableSetOf<AttoAddress>()\n private val addressesFlow = MutableStateFlow<Set<AttoAddress>>(emptySet())\n\n suspend fun isMonitored(address: AttoAddress): Boolean {\n mutex.withLock {\n return addresses.contains(address)\n }\n }\n\n suspend fun getAddresses(): Set<AttoAddress> =\n mutex.withLock {\n addresses.toSet()\n }\n\n suspend fun add(newAddresses: Collection<AttoAddress>) {\n mutex.withLock {\n addresses += newAddresses\n addressesFlow.update { _ -> addresses.toSet() }\n }\n }\n\n suspend fun remove(address: AttoAddress) {\n mutex.withLock {\n addresses -= address\n addressesFlow.update { _ -> addresses.toSet() }\n }\n }\n\n fun membershipFlow(): Flow<Set<AttoAddress>> = addressesFlow.asStateFlow()\n }\n}\n\nfun AttoNodeClient.createAccountMonitor(): AttoAccountMonitor = AttoAccountMonitor(this)\n",null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-getAddresses>","$completion","<generator-add>","newAddresses","prevValue","nextValue","<generator-invoke>","<generator-monitor>","addresses","address","<generator-getAccounts>","getAddresses","add","membershipFlow","$minAmount","invoke","AttoAccountMonitor$receivableStream$slambda","AttoAccountMonitor$receivableStream$slambda$lambda","client","monitor","getAccounts","receivableStream","minAmount","createAccountMonitor","<this>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;yCAmEgBA,CAAA,K,EAAAC,WAAAD,EACJ;A;eAAA,K,CAAA,K;MCoDR,iBAJuD,IAIvD,c;;;;EACO,I;YDpDe,MAAV,KAAU,CAAV,KAAU,C;WCsDZ;A,IACN,WARmD,IAQnD,C;EACJ,C;EDvDS,OCmDF,K;ADnDC,C;gCAEIE,CAAA,K,EAAQC,Y,EAARF,WAAAC,EAA+C;A;eACnD,K,CAAA,K;MC+CR,iBAJuD,IAIvD,c;;;EACO,IAAI;A;iBD/CC,K,CAAA,K;IEdP,OAAL,MAAK,EFcoB,YEdpB,C;eFeO,K,CAAA,K;;;aG0JL,I,EAAM;A,YACTE,YAAgB,S;YAChBC,YH5J8C,MAAV,KAAU,CAAV,KAAU,C;QG6J1C,aAAc,SAAd,EAAyB,SAAzB,E,CAAqC;A;QAEzC,C;MACJ,C;;EFhHA,C,QAAU;A,IACN,WARmD,IAQnD,C;EACJ,C;EDhDI,oB;AAAA,C;mCAco3IC,CAAA,K,EAAA,qB,EAAA,E,EAAAL,WAAAK,EAAE;A;;IA1C12I,IA0C43I,EA1Cl3I,KAAV,C,CAAqB;A,MACrB,YAAqB,W;;IACzB,C;IACA,YAAqB,KAAO,CAAP,KAAO,CAAP,KAAO,KAuCo2I,EAvCp2I,EAA4B,KAA5B,CAA4B,KAA5B,C;;MAuCk1I,qCAAQ,SAAR,c;;;EAAqB,oB;AAAA,C;oCArEv4IC,CAAA,K,EAAYC,S,EAAZP,WAAAM,EAAgD;A,MAC9C,MAAN,KAAM,CAAN,KAAM,KAAI,SAAJ,c;;;EACV,oB;AAAA,C;sCAEQA,CAAA,K,EAAYE,O,EAAZR,WAAAM,EAAkC;A,MAChC,MAAN,KAAM,CAAN,KAAM,KAAI,OAAO,OAAP,CAAJ,c;;;EACV,oB;AAAA,C;wCAQQG,CAAA,K,EAAAT,WAAAS,EAA6C;A,MAAqB,MAAN,KAAM,CAAN,KAAM,iB;;;MAAd,QAAP,KAAO,CAAP,KAAO,sB;;;EAA6B,Y;AAAD,C;;;;;;QAqBhE,oB;kBACI,I;;QAAA,YIYsB,oB;QJXlB,8BAAmC,UAAnC,C;;SAQpBC,CAAAV,WAAAU,E;;O;SAKAC,CAAQT,Y,EAARF,WAAAW,E;;O;SAcRC,CAAAA,EAA+C;A,QAA2B,OAAb,YAAd,IAAc,CAAd,KAAc,C;MAAY,C;;;;;;;;;;;kBKhDuB,M,EAAqBC,U;;;;SAsJzGC,CAAA,qB,EAAA,E,EAAAd,WAAAc,E;;O;SA5LpB,E,EAAA,E,EAAAd,W;;;;;;;;;;sDL2F43Ie,CA7Cx3I,M,EAAqBF,UA6Cm2IE,E;;UAAAC,CAAA,qB,EAAA,E,EAAAhB,WAAAgB,kD;;;C;;;;;kBAzE/2IC,M;QAAT,mB;QAEoB,4B;;SAEZC,CAAYX,S,EAAZP,WAAAkB,E;;O;SAIAA,CAAYV,O,EAAZR,WAAAkB,E;;O;SAUAC,CAAAnB,WAAAmB,E;;O;SAORP,CAAAA,EAA+C;A,QAAsB,OAAtB,IAAM,CAAN,KAAM,M;MAAe,C;SAGpEQ,CAAqBC,SAArBD,EAAmF;A;qBACxE,U;QAAP,OK6IJ,wBAAgB,8DAAhB,C;MLtIA,C;;;;;;;6BAoCJE,CAAIC,aAAJD,EAAgE;A,EAAwB,kCAAL,aAAK,C;AAAD,C;;;;;"}
@@ -2,10 +2,11 @@ type Nullable<T> = T | null | undefined
2
2
  declare function KtSingleton<T>(): T & (abstract new() => any);
3
3
  export declare class AttoAccountMonitorAsync /* implements AutoCloseable */ {
4
4
  private constructor();
5
- monitorMap(addresses: any/* Collection<AttoAddress> */): AttoFuture<void>;
6
- monitor(address: AttoAddress): AttoFuture<void>;
7
- getAccounts(): AttoFuture<any/* Collection<AttoAccount> */>;
8
- onReceivable(minAmount: AttoAmount | undefined, onReceivable: any/* AttoConsumer<AttoReceivable> */, onCancel: any/* AttoConsumer<Nullable<Exception>> */): any/* AttoJob */;
5
+ get monitor(): any/* AttoAccountMonitor */;
6
+ monitorCollection(addresses: any/* Collection<AttoAddress> */): Promise<void>;
7
+ monitor(address: AttoAddress): Promise<void>;
8
+ getAccounts(): Promise<any/* Collection<AttoAccount> */>;
9
+ onReceivable(minAmount: AttoAmount | undefined, onReceivable: (p0: AttoReceivable) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
9
10
  }
10
11
  export declare namespace AttoAccountMonitorAsync {
11
12
  /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
@@ -1,4 +1,4 @@
1
- import { AttoAccountMonitorAsynck80bazajgklw as AttoAccountMonitorAsync } from './AttoAccountMonitorAsync.mjs';
1
+ import { AttoAccountMonitorAsynck80bazajgklw as AttoAccountMonitorAsync } from './AttoAccountMonitorAsync.web.mjs';
2
2
  //region block: imports
3
3
  //endregion
4
4
  //region block: pre-declaration
@@ -10,4 +10,4 @@ export {
10
10
  };
11
11
  //endregion
12
12
 
13
- //# sourceMappingURL=AttoAccountMonitorAsync.export.mjs.map
13
+ //# sourceMappingURL=AttoAccountMonitorAsync.web.export.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
2
- import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
3
2
  import { Exceptiondt2hlxn7j7vw as Exception } from '../../../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
4
3
  import { CancellationException3b36o9qz53rgr as CancellationException } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/cancellation/CancellationException.mjs';
4
+ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
5
5
  import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
6
6
  import {
7
7
  initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
@@ -9,21 +9,24 @@ import {
9
9
  } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
10
10
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
11
11
  import {
12
+ await1tchdi81j7msa as await_0,
13
+ suspendOrReturn49pspzlx5djv as suspendOrReturn,
14
+ promisify1z0ncraq1ipzh as promisify,
15
+ } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
16
+ import {
17
+ protoOf180f3jzyo7rfj as protoOf,
12
18
  equals2au1ep9vhcato as equals,
13
19
  hashCodeq5arwsb9dgti as hashCode,
14
20
  } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
15
21
  import { FunctionAdapter3lcrrz3moet5b as FunctionAdapter } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/FunctionAdapter.mjs';
16
22
  import { isInterface3d6p8outrmvmk as isInterface } from '../../../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
17
23
  import { FlowCollector26clgpmzihvke as FlowCollector } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/flow/FlowCollector.mjs';
18
- import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
19
24
  import {
20
25
  CoroutineScopefcb5f5dwqcas as CoroutineScope,
21
26
  CoroutineScopelux7s7zphw7e as CoroutineScope_0,
22
27
  cancel36mj9lv3a0whl as cancel,
23
28
  } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
24
- import { Dispatchers_getInstancewbokwrm9sosb as Dispatchers_getInstance } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs';
25
29
  import { SupervisorJobythnfxkr3jxc as SupervisorJob } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs';
26
- import { submitr2wceezoc2x6 as submit } from '../../../../../../commons-commons-core/cash/atto/commons/AttoFuture.js.mjs';
27
30
  import { launch1c91vkjzdi9sd as launch } from '../../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs';
28
31
  import { AttoJob1jkwx1uqpl60h as AttoJob } from '../../../../../../commons-commons-core/cash/atto/commons/AttoJob.mjs';
29
32
  import { Companion_getInstance28cx33iqjvgos as Companion_getInstance } from '../../../../../../commons-commons-core/cash/atto/commons/AttoAmount.mjs';
@@ -32,34 +35,28 @@ import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../../k
32
35
  //endregion
33
36
  //region block: pre-declaration
34
37
  //endregion
35
- function *_generator_invoke__zhh2q8($this, $completion) {
36
- var tmp = $this.t4z_1.r4z_1.n4z($this.u4z_1, $completion);
37
- if (tmp === get_COROUTINE_SUSPENDED())
38
- tmp = yield tmp;
39
- return Unit_instance;
40
- }
41
- function *_generator_invoke__zhh2q8_0($this, $completion) {
42
- var tmp = $this.v4z_1.r4z_1.o4z($this.w4z_1, $completion);
43
- if (tmp === get_COROUTINE_SUSPENDED())
44
- tmp = yield tmp;
45
- return Unit_instance;
46
- }
47
- function *_generator_invoke__zhh2q8_1($this, $this$launch, $completion) {
38
+ function *_generator_invoke__zhh2q8($this, $this$launch, $completion) {
48
39
  try {
49
- var tmp = AttoAccountMonitorAsync$onReceivable$slambda$slambda_0($this.z4z_1);
50
- var tmp_0 = $this.x4z_1.d26(new (sam$kotlinx_coroutines_flow_FlowCollector$0())(tmp), $completion);
40
+ var tmp = AttoAccountMonitorAsync$onReceivable$slambda$slambda_0($this.u50_1);
41
+ var tmp_0 = $this.s50_1.g26(new (sam$kotlinx_coroutines_flow_FlowCollector$0())(tmp), $completion);
51
42
  if (tmp_0 === get_COROUTINE_SUSPENDED())
52
43
  tmp_0 = yield tmp_0;
53
- $this.y4z_1(null);
44
+ var tmp_1 = $this.t50_1(null, $completion);
45
+ if (tmp_1 === get_COROUTINE_SUSPENDED())
46
+ tmp_1 = yield tmp_1;
54
47
  } catch ($p) {
55
48
  if ($p instanceof CancellationException()) {
56
49
  var e = $p;
57
- $this.y4z_1(null);
50
+ var tmp_2 = $this.t50_1(null, $completion);
51
+ if (tmp_2 === get_COROUTINE_SUSPENDED())
52
+ tmp_2 = yield tmp_2;
58
53
  throw e;
59
54
  } else {
60
55
  if ($p instanceof Exception()) {
61
56
  var e_0 = $p;
62
- $this.y4z_1(e_0);
57
+ var tmp_3 = $this.t50_1(e_0, $completion);
58
+ if (tmp_3 === get_COROUTINE_SUSPENDED())
59
+ tmp_3 = yield tmp_3;
63
60
  } else {
64
61
  throw $p;
65
62
  }
@@ -72,14 +69,14 @@ function AttoAccountMonitorAsync$onReceivable$slambda$slambda() {
72
69
  if (AttoAccountMonitorAsync$onReceivable$slambda$slambdaClass === VOID) {
73
70
  class $ {
74
71
  constructor($onReceivable) {
75
- this.a50_1 = $onReceivable;
72
+ this.v50_1 = $onReceivable;
76
73
  }
77
- k3f(it, $completion) {
78
- this.a50_1.u4u(it);
74
+ n3f(it, $completion) {
75
+ this.v50_1(it);
79
76
  return Unit_instance;
80
77
  }
81
78
  md(p1, $completion) {
82
- return this.k3f((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
79
+ return this.n3f((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
83
80
  }
84
81
  }
85
82
  initMetadataForLambda($, VOID, VOID, [1]);
@@ -89,22 +86,61 @@ function AttoAccountMonitorAsync$onReceivable$slambda$slambda() {
89
86
  }
90
87
  function AttoAccountMonitorAsync$onReceivable$slambda$slambda_0($onReceivable) {
91
88
  var i = new (AttoAccountMonitorAsync$onReceivable$slambda$slambda())($onReceivable);
92
- var l = (it, $completion) => i.k3f(it, $completion);
89
+ var l = (it, $completion) => i.n3f(it, $completion);
93
90
  l.$arity = 1;
94
91
  return l;
95
92
  }
93
+ function *_generator_monitor$suspendBridge__t4kmih($this, addresses, $completion) {
94
+ if ($this.monitorCollection === protoOf(AttoAccountMonitorAsync()).monitorCollection) {
95
+ var tmp = $this.e4x(addresses, $completion);
96
+ if (tmp === get_COROUTINE_SUSPENDED())
97
+ tmp = yield tmp;
98
+ } else {
99
+ var tmp_0 = await_0($this.monitorCollection(addresses), $completion);
100
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
101
+ tmp_0 = yield tmp_0;
102
+ }
103
+ return Unit_instance;
104
+ }
105
+ function *_generator_monitor$suspendBridge__t4kmih_0($this, address, $completion) {
106
+ if ($this.monitor === protoOf(AttoAccountMonitorAsync()).monitor) {
107
+ var tmp = $this.f4x(address, $completion);
108
+ if (tmp === get_COROUTINE_SUSPENDED())
109
+ tmp = yield tmp;
110
+ } else {
111
+ var tmp_0 = await_0($this.monitor(address), $completion);
112
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
113
+ tmp_0 = yield tmp_0;
114
+ }
115
+ return Unit_instance;
116
+ }
117
+ function *_generator_getAccounts$suspendBridge__p1jm47($this, $completion) {
118
+ var tmp;
119
+ if ($this.getAccounts === protoOf(AttoAccountMonitorAsync()).getAccounts) {
120
+ var tmp_0 = $this.g4x($completion);
121
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
122
+ tmp_0 = yield tmp_0;
123
+ tmp = tmp_0;
124
+ } else {
125
+ var tmp_1 = await_0($this.getAccounts(), $completion);
126
+ if (tmp_1 === get_COROUTINE_SUSPENDED())
127
+ tmp_1 = yield tmp_1;
128
+ tmp = tmp_1;
129
+ }
130
+ return tmp;
131
+ }
96
132
  var sam$kotlinx_coroutines_flow_FlowCollector$0Class;
97
133
  function sam$kotlinx_coroutines_flow_FlowCollector$0() {
98
134
  if (sam$kotlinx_coroutines_flow_FlowCollector$0Class === VOID) {
99
135
  class $ {
100
136
  constructor(function_0) {
101
- this.b50_1 = function_0;
137
+ this.w50_1 = function_0;
102
138
  }
103
- h26(value, $completion) {
104
- return this.b50_1(value, $completion);
139
+ k26(value, $completion) {
140
+ return this.w50_1(value, $completion);
105
141
  }
106
142
  f5() {
107
- return this.b50_1;
143
+ return this.w50_1;
108
144
  }
109
145
  equals(other) {
110
146
  var tmp;
@@ -130,104 +166,56 @@ function sam$kotlinx_coroutines_flow_FlowCollector$0() {
130
166
  }
131
167
  return sam$kotlinx_coroutines_flow_FlowCollector$0Class;
132
168
  }
133
- var AttoAccountMonitorAsync$monitor$slambdaClass;
134
- function AttoAccountMonitorAsync$monitor$slambda() {
135
- if (AttoAccountMonitorAsync$monitor$slambdaClass === VOID) {
136
- class $ {
137
- constructor(this$0, $addresses) {
138
- this.t4z_1 = this$0;
139
- this.u4z_1 = $addresses;
140
- }
141
- od($completion) {
142
- return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this), $completion);
143
- }
144
- }
145
- initMetadataForLambda($, VOID, VOID, [0]);
146
- AttoAccountMonitorAsync$monitor$slambdaClass = $;
147
- }
148
- return AttoAccountMonitorAsync$monitor$slambdaClass;
149
- }
150
- function AttoAccountMonitorAsync$monitor$slambda_0(this$0, $addresses) {
151
- var i = new (AttoAccountMonitorAsync$monitor$slambda())(this$0, $addresses);
152
- var l = ($completion) => i.od($completion);
153
- l.$arity = 0;
154
- return l;
155
- }
156
- var AttoAccountMonitorAsync$monitor$slambdaClass_0;
157
- function AttoAccountMonitorAsync$monitor$slambda_1() {
158
- if (AttoAccountMonitorAsync$monitor$slambdaClass_0 === VOID) {
169
+ var AttoAccountMonitorAsync$onReceivable$slambdaClass;
170
+ function AttoAccountMonitorAsync$onReceivable$slambda() {
171
+ if (AttoAccountMonitorAsync$onReceivable$slambdaClass === VOID) {
159
172
  class $ {
160
- constructor(this$0, $address) {
161
- this.v4z_1 = this$0;
162
- this.w4z_1 = $address;
163
- }
164
- od($completion) {
165
- return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8_0.bind(VOID, this), $completion);
173
+ constructor($onCancel) {
174
+ this.x50_1 = $onCancel;
166
175
  }
167
- }
168
- initMetadataForLambda($, VOID, VOID, [0]);
169
- AttoAccountMonitorAsync$monitor$slambdaClass_0 = $;
170
- }
171
- return AttoAccountMonitorAsync$monitor$slambdaClass_0;
172
- }
173
- function AttoAccountMonitorAsync$monitor$slambda_2(this$0, $address) {
174
- var i = new (AttoAccountMonitorAsync$monitor$slambda_1())(this$0, $address);
175
- var l = ($completion) => i.od($completion);
176
- l.$arity = 0;
177
- return l;
178
- }
179
- var AttoAccountMonitorAsync$getAccounts$slambdaClass;
180
- function AttoAccountMonitorAsync$getAccounts$slambda() {
181
- if (AttoAccountMonitorAsync$getAccounts$slambdaClass === VOID) {
182
- class $ {
183
- constructor(this$0) {
184
- this.c50_1 = this$0;
176
+ p50(it, $completion) {
177
+ this.x50_1(it);
178
+ return Unit_instance;
185
179
  }
186
- od($completion) {
187
- return this.c50_1.r4z_1.p4z($completion);
180
+ md(p1, $completion) {
181
+ return this.p50((p1 == null ? true : p1 instanceof Exception()) ? p1 : THROW_CCE(), $completion);
188
182
  }
189
183
  }
190
- initMetadataForLambda($, VOID, VOID, [0]);
191
- AttoAccountMonitorAsync$getAccounts$slambdaClass = $;
184
+ initMetadataForLambda($, VOID, VOID, [1]);
185
+ AttoAccountMonitorAsync$onReceivable$slambdaClass = $;
192
186
  }
193
- return AttoAccountMonitorAsync$getAccounts$slambdaClass;
187
+ return AttoAccountMonitorAsync$onReceivable$slambdaClass;
194
188
  }
195
- function AttoAccountMonitorAsync$getAccounts$slambda_0(this$0) {
196
- var i = new (AttoAccountMonitorAsync$getAccounts$slambda())(this$0);
197
- var l = ($completion) => i.od($completion);
198
- l.$arity = 0;
189
+ function AttoAccountMonitorAsync$onReceivable$slambda_0($onCancel) {
190
+ var i = new (AttoAccountMonitorAsync$onReceivable$slambda())($onCancel);
191
+ var l = (it, $completion) => i.p50(it, $completion);
192
+ l.$arity = 1;
199
193
  return l;
200
194
  }
201
- function AttoAccountMonitorAsync$onReceivable$lambda($onCancel) {
202
- return (it) => {
203
- $onCancel.u4u(it);
204
- return Unit_instance;
205
- };
206
- }
207
- var AttoAccountMonitorAsync$onReceivable$slambdaClass;
208
- function AttoAccountMonitorAsync$onReceivable$slambda() {
209
- if (AttoAccountMonitorAsync$onReceivable$slambdaClass === VOID) {
195
+ var AttoAccountMonitorAsync$onReceivable$slambdaClass_0;
196
+ function AttoAccountMonitorAsync$onReceivable$slambda_1() {
197
+ if (AttoAccountMonitorAsync$onReceivable$slambdaClass_0 === VOID) {
210
198
  class $ {
211
199
  constructor($stream, $onCancel, $onReceivable) {
212
- this.x4z_1 = $stream;
213
- this.y4z_1 = $onCancel;
214
- this.z4z_1 = $onReceivable;
200
+ this.s50_1 = $stream;
201
+ this.t50_1 = $onCancel;
202
+ this.u50_1 = $onReceivable;
215
203
  }
216
- s28($this$launch, $completion) {
217
- return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8_1.bind(VOID, this, $this$launch), $completion);
204
+ v28($this$launch, $completion) {
205
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$launch), $completion);
218
206
  }
219
207
  md(p1, $completion) {
220
- return this.s28((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
208
+ return this.v28((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
221
209
  }
222
210
  }
223
211
  initMetadataForLambda($, VOID, VOID, [1]);
224
- AttoAccountMonitorAsync$onReceivable$slambdaClass = $;
212
+ AttoAccountMonitorAsync$onReceivable$slambdaClass_0 = $;
225
213
  }
226
- return AttoAccountMonitorAsync$onReceivable$slambdaClass;
214
+ return AttoAccountMonitorAsync$onReceivable$slambdaClass_0;
227
215
  }
228
- function AttoAccountMonitorAsync$onReceivable$slambda_0($stream, $onCancel, $onReceivable) {
229
- var i = new (AttoAccountMonitorAsync$onReceivable$slambda())($stream, $onCancel, $onReceivable);
230
- var l = ($this$launch, $completion) => i.s28($this$launch, $completion);
216
+ function AttoAccountMonitorAsync$onReceivable$slambda_2($stream, $onCancel, $onReceivable) {
217
+ var i = new (AttoAccountMonitorAsync$onReceivable$slambda_1())($stream, $onCancel, $onReceivable);
218
+ var l = ($this$launch, $completion) => i.v28($this$launch, $completion);
231
219
  l.$arity = 1;
232
220
  return l;
233
221
  }
@@ -236,38 +224,55 @@ function AttoAccountMonitorAsync() {
236
224
  if (AttoAccountMonitorAsyncClass === VOID) {
237
225
  class $ {
238
226
  constructor(monitor, dispatcher) {
239
- dispatcher = dispatcher === VOID ? Dispatchers_getInstance().o20_1 : dispatcher;
240
- this.r4z_1 = monitor;
241
- this.s4z_1 = CoroutineScope_0(dispatcher.dl(SupervisorJob()));
227
+ this.monitor = monitor;
228
+ this.e4y_1 = CoroutineScope_0(dispatcher.gl(SupervisorJob()));
229
+ }
230
+ y50() {
231
+ return this.monitor;
242
232
  }
243
- d50() {
244
- return this.r4z_1;
233
+ monitorCollection(addresses) {
234
+ return promisify(($completion) => this.z50(addresses, $completion));
245
235
  }
246
- monitorMap(addresses) {
247
- return submit(this.s4z_1, AttoAccountMonitorAsync$monitor$slambda_0(this, addresses));
236
+ z50(addresses, $completion) {
237
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_monitor$suspendBridge__t4kmih.bind(VOID, this, addresses), $completion);
238
+ }
239
+ e4x(addresses, $completion) {
240
+ return this.monitor.e4x(addresses, $completion);
248
241
  }
249
242
  monitor(address) {
250
- return submit(this.s4z_1, AttoAccountMonitorAsync$monitor$slambda_2(this, address));
243
+ return promisify(($completion) => this.a51(address, $completion));
244
+ }
245
+ a51(address, $completion) {
246
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_monitor$suspendBridge__t4kmih_0.bind(VOID, this, address), $completion);
247
+ }
248
+ f4x(address, $completion) {
249
+ return this.monitor.f4x(address, $completion);
251
250
  }
252
251
  getAccounts() {
253
- return submit(this.s4z_1, AttoAccountMonitorAsync$getAccounts$slambda_0(this));
252
+ return promisify(($completion) => this.b51($completion));
253
+ }
254
+ b51($completion) {
255
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_getAccounts$suspendBridge__p1jm47.bind(VOID, this), $completion);
256
+ }
257
+ g4x($completion) {
258
+ return this.monitor.g4x($completion);
254
259
  }
255
- e50(minAmount, onReceivable, onCancel) {
256
- var tmp0 = this.s4z_1;
257
- var tmp2 = this.r4z_1.q4z(minAmount);
260
+ c51(minAmount, onReceivable, onCancel) {
261
+ var tmp0 = this.e4y_1;
262
+ var tmp2 = this.monitor.h4x(minAmount);
258
263
  // Inline function 'cash.atto.commons.node.consumeStream' call
259
- var onCancel_0 = AttoAccountMonitorAsync$onReceivable$lambda(onCancel);
260
- return new (AttoJob())(launch(tmp0, VOID, VOID, AttoAccountMonitorAsync$onReceivable$slambda_0(tmp2, onCancel_0, onReceivable)));
264
+ var onCancel_0 = AttoAccountMonitorAsync$onReceivable$slambda_0(onCancel);
265
+ return new (AttoJob())(launch(tmp0, VOID, VOID, AttoAccountMonitorAsync$onReceivable$slambda_2(tmp2, onCancel_0, onReceivable)));
261
266
  }
262
267
  onReceivable(minAmount, onReceivable, onCancel, $super) {
263
- minAmount = minAmount === VOID ? Companion_getInstance().MIN : minAmount;
264
- return $super === VOID ? this.e50(minAmount, onReceivable, onCancel) : $super.e50.call(this, minAmount, onReceivable, onCancel);
268
+ minAmount = minAmount === VOID ? Companion_getInstance().x4m_1 : minAmount;
269
+ return $super === VOID ? this.c51(minAmount, onReceivable, onCancel) : $super.c51.call(this, minAmount, onReceivable, onCancel);
265
270
  }
266
271
  u6() {
267
- cancel(this.s4z_1);
272
+ cancel(this.e4y_1);
268
273
  }
269
274
  }
270
- initMetadataForClass($, 'AttoAccountMonitorAsync', VOID, VOID, [AutoCloseable()]);
275
+ initMetadataForClass($, 'AttoAccountMonitorAsync', VOID, VOID, [AutoCloseable()], [1, 0]);
271
276
  AttoAccountMonitorAsyncClass = $;
272
277
  }
273
278
  return AttoAccountMonitorAsyncClass;
@@ -278,4 +283,4 @@ export {
278
283
  };
279
284
  //endregion
280
285
 
281
- //# sourceMappingURL=AttoAccountMonitorAsync.mjs.map
286
+ //# sourceMappingURL=AttoAccountMonitorAsync.web.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../commons-node/src/webMain/kotlin/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.kt","../../../../../commons-node/src/commonMain/kotlin/cash/atto/commons/node/NodeExtensions.kt"],"sourcesContent":["package cash.atto.commons.node.monitor\n\nimport cash.atto.commons.AttoAccount\nimport cash.atto.commons.AttoAddress\nimport cash.atto.commons.AttoAmount\nimport cash.atto.commons.AttoJob\nimport cash.atto.commons.AttoReceivable\nimport cash.atto.commons.node.consumeStream\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.SupervisorJob\nimport kotlinx.coroutines.cancel\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsName\n\n@OptIn(ExperimentalJsExport::class)\n@JsExportForJs\nactual class AttoAccountMonitorAsync internal actual constructor(\n actual val monitor: AttoAccountMonitor,\n dispatcher: CoroutineDispatcher,\n) : AutoCloseable {\n private val scope = CoroutineScope(dispatcher + SupervisorJob())\n\n @JsName(\"monitorCollection\")\n suspend fun monitor(addresses: Collection<AttoAddress>): Unit = monitor.monitor(addresses)\n\n @JsName(\"monitor\")\n suspend fun monitor(address: AttoAddress): Unit = monitor.monitor(address)\n\n suspend fun getAccounts(): Collection<AttoAccount> = monitor.getAccounts()\n\n fun onReceivable(\n minAmount: AttoAmount = AttoAmount.MIN,\n onReceivable: (AttoReceivable) -> Any,\n onCancel: (Exception?) -> Any,\n ): AttoJob =\n scope.consumeStream(\n stream = monitor.receivableStream(minAmount),\n onEach = { onReceivable.invoke(it) },\n onCancel = { onCancel.invoke(it) },\n )\n\n actual override fun close() {\n scope.cancel()\n }\n}\n\nfun AttoAccountMonitor.toAsync(): AttoAccountMonitorAsync = AttoAccountMonitorAsync(this, Dispatchers.Default)\n","@file:OptIn(ExperimentalJsExport::class)\n\npackage cash.atto.commons.node\n\nimport cash.atto.commons.AttoAccountEntry\nimport cash.atto.commons.AttoBlock\nimport cash.atto.commons.AttoJob\nimport cash.atto.commons.AttoReceivable\nimport cash.atto.commons.AttoTransaction\nimport cash.atto.commons.toBuffer\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.launch\nimport kotlinx.serialization.json.Json\nimport kotlin.coroutines.cancellation.CancellationException\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsName\n\nprivate val json =\n Json {\n ignoreUnknownKeys = true\n }\n\n@JsExportForJs\n@JsName(\"receivableToJson\")\nfun AttoReceivable.toJson(): String = json.encodeToString(this)\n\n@JsExportForJs\n@JsName(\"receivableFromJson\")\nfun String.toReceivable(): AttoReceivable = json.decodeFromString<AttoReceivable>(this)\n\n@JsExportForJs\n@JsName(\"transactionToJson\")\nfun AttoTransaction.toJson(): String = json.encodeToString(this)\n\n@JsExportForJs\n@JsName(\"transactionFromJson\")\nfun String.toTransaction(): AttoTransaction = json.decodeFromString<AttoTransaction>(this)\n\n@JsExportForJs\n@JsName(\"blockToJson\")\nfun AttoBlock.toJson(): String = json.encodeToString(this)\n\n@JsExportForJs\n@JsName(\"blockFromJson\")\nfun String.toBlock(): AttoBlock = json.decodeFromString<AttoBlock>(this)\n\n@JsExportForJs\n@JsName(\"accountEntryToJson\")\nfun AttoAccountEntry.toJson(): String = json.encodeToString(this)\n\n@JsExportForJs\n@JsName(\"accountEntryFromJson\")\nfun String.toAccountEntry(): AttoAccountEntry = json.decodeFromString<AttoAccountEntry>(this)\n\n@JsExportForJs\n@JsName(\"fromByteArrayToTransactionJson\")\nfun ByteArray.toTransactionJson(): String {\n val transaction = AttoTransaction.fromBuffer(this.toBuffer()) ?: throw IllegalArgumentException(\"Invalid transaction\")\n return json.encodeToString<AttoTransaction>(transaction)\n}\n\n@JsExportForJs\n@JsName(\"fromByteArrayToBlockJson\")\nfun ByteArray.toBlockJson(): String {\n val block = AttoBlock.fromBuffer(this.toBuffer()) ?: throw IllegalArgumentException(\"Invalid block\")\n return json.encodeToString<AttoBlock>(block)\n}\n\ninternal inline fun <T> CoroutineScope.consumeStream(\n stream: Flow<T>,\n crossinline onEach: suspend (T) -> Unit,\n noinline onCancel: suspend (Exception?) -> Unit,\n): AttoJob =\n AttoJob(\n launch {\n try {\n stream.collect { onEach(it) }\n onCancel(null)\n } catch (e: CancellationException) {\n onCancel(null)\n throw e\n } catch (e: Exception) {\n onCancel(e)\n }\n },\n )\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-invoke>","$completion","e","$onReceivable","invoke","AttoAccountMonitorAsync$onReceivable$slambda$slambda","AttoAccountMonitorAsync$onReceivable$slambda$slambda$lambda","emit","value","equals","hashCode","$onCancel","AttoAccountMonitorAsync$onReceivable$slambda","AttoAccountMonitorAsync$onReceivable$slambda$lambda","monitor","dispatcher","<get-monitor>","addresses","address","getAccounts","onReceivable","minAmount","onCancel","onReceivable$default","close"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAkD+pBA,CAAA,K,EAAA,Y,EAAAC,WAAAD,EAAc;A,EAAA,IAAI;A,QAAiC,yE;QAAR,QAAP,KAAO,CAAP,KAAO,yDAAQ,GAAR,e;;;QAAuC,oBAAS,IAAT,c;;;EAA2B,C;+CAAmC;A,UAA1BE,M;UAA4C,oBAAS,IAAT,c;;;MAA+B,MAAM,C;IAAc,C;qCAAuB;A,YAAdA,Q;YAAgC,oBAAS,GAAT,c;;;MAAwB,C;;;;;EAAA,oB;AAAA,C;;;;;kBCRh5BC,a;;;SAoCNC,CAAA,E,EAAAH,WAAAG,EAAE;A,QDtCV,IAAa,CAAb,KAAa,CCsCI,EDtCJ,C;QCsCM,oB;MAAA,C;SA9E1C,E,EAAAH,W;;;;;;;;;+DDkDktBI,CAf1sBF,aAe0sBE,E;;UAAAC,CAAA,E,EAAAL,WAAAK,2B;;;C;mDAxBtsB,K,EAAY,S;;;;;;;;;;;;qDAGZ,K,EAAY,O;;;;;;;;;;;;uDAEZ,K;;;;;;;;;;;;;;;;;;;;QAmBssB,uB;;SAAAC,CAxBvqBC,K,EAwBuqBP,WAAAM,E;;O;;;;YAlDltBE,C,KAAAA,E;;;;;;;;;;;;;;O;cAAAC,CAAAA,E;;O;;;;;;;;;;;kBAoCQC,S;;;SAKeP,CAAA,E,EAAAH,WAAAG,EAAE;A,QAAA,IAAS,CAAT,KAAS,CAAO,EAAP,C;QAAS,oB;MAAA,C;SAzC3C,E,EAAAH,W;;;;;;;;;uDAyCuBW,CALfD,SAKeC,E;;UAAAC,CAAA,E,EAAAZ,WAAAY,2B;;;C;;;;;sCCCcV,a;;;;;SAkCtBC,CAAA,Y,EAAAH,WAAAG,E;;O;SA5Ef,E,EAAAH,W;;;;;;;;;uDDkD+pBW,C,oBAfvpBT,aAeupBS,E;;UAAAC,CAAA,Y,EAAAZ,WAAAY,qC;;;C;;;;;kBA9BppBC,O,EACPC,U;QADA,sB;QAGoB,8BAAe,cAAa,eAAb,CAAf,C;;SAHbC,CAAAA,EAAA;A,QAAA,mB;MAA8B,C;wBAMjBC,S;;;UAAA,S;;;SAAZH,CAAYG,S,EAAZhB,WAAAa,EAAwD;A,QAAyB,OAAzB,IAAQ,CAAR,OAAQ,KAAQ,SAAR,c;MAAiB,C;cAGrEI,O;;;UAAA,O;;;SAAZJ,CAAYI,O,EAAZjB,WAAAa,EAA0C;A,QAAuB,OAAvB,IAAQ,CAAR,OAAQ,KAAQ,OAAR,c;MAAe,C;;;;;;;SAEjEK,CAAAlB,WAAAkB,EAA6C;A,QAAoB,OAApB,IAAQ,CAAR,OAAQ,iB;MAAY,C;SAEzEC,CACIC,S,EACAD,Y,EACAE,QAHJF,EAKI;A,mBAAA,I,CAAA,K;mBACa,IAAQ,CAAR,OAAQ,KAAiB,SAAjB,C;;yBAEN,wD;QACd,uBCkCD,yBAAO,8EAAP,CDlCC,C;MAAD,C;kBATJG,CACIF,S,EACAD,Y,EACAE,Q,QAHJC,E;iEACuC,K;;O;QAUvBC,CAAAA,EAAY;A,QAClB,OAAN,IAAM,CAAN,KAAM,C;MACV,C;;;;;;;;;;;"}