@attocash/commons-test 6.2.0 → 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 (677) 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 +22 -22
  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 +122 -122
  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 +150 -150
  16. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +131 -131
  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 +26 -26
  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 +49 -49
  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 +108 -108
  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 +54 -54
  32. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +60 -60
  33. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +16 -16
  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 +15 -15
  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 +63 -55
  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 +825 -817
  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.export.d.mts +2 -3
  84. package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
  85. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +35 -26
  86. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
  87. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +7 -7
  88. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
  89. package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
  90. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +20 -20
  91. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
  92. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  93. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
  94. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
  95. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
  96. package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
  97. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
  98. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
  99. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
  100. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
  101. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +7 -7
  102. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
  103. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
  104. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
  105. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
  106. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
  107. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map +1 -0
  108. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
  109. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
  110. package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
  111. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
  112. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
  113. package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
  114. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
  115. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
  116. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +74 -11
  117. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
  118. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +76 -0
  119. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
  120. package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
  121. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
  122. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
  123. package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
  124. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
  125. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
  126. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
  127. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
  128. package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
  129. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
  130. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
  131. package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
  132. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
  133. package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
  134. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +26 -26
  135. package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
  136. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
  137. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
  138. package/commons-commons-core/cash/atto/commons/Extensions.mjs +8 -8
  139. package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
  140. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  141. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
  142. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  143. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
  144. package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
  145. package/commons-commons-core.mjs +1 -2
  146. package/commons-commons-core.mjs.map +1 -1
  147. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
  148. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
  149. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +401 -409
  150. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
  151. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
  152. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
  153. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  154. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
  155. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
  156. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
  157. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
  158. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
  159. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +8 -8
  160. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
  161. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
  162. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
  163. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +76 -47
  164. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
  165. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
  166. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
  167. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +20 -20
  168. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
  169. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +38 -38
  170. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
  171. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
  172. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
  173. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +140 -135
  174. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
  175. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
  176. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
  177. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +65 -65
  178. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
  179. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +8 -8
  180. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
  181. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
  182. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
  183. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +76 -47
  184. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
  185. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
  186. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
  187. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +20 -20
  188. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
  189. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +10 -10
  190. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
  191. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +344 -344
  192. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
  193. package/commons-commons-node.mjs +6 -6
  194. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
  195. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs.map +1 -1
  196. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +32 -32
  197. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs.map +1 -1
  198. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
  199. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs.map +1 -1
  200. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.export.d.mts +1 -1
  201. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +36 -48
  202. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs.map +1 -1
  203. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
  204. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs.map +1 -1
  205. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.export.d.mts +1 -1
  206. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +57 -61
  207. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs.map +1 -1
  208. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +15 -15
  209. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs.map +1 -1
  210. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.export.d.mts +1 -1
  211. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +33 -45
  212. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs.map +1 -1
  213. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
  214. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs.map +1 -1
  215. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.export.d.mts +1 -1
  216. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +40 -40
  217. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs.map +1 -1
  218. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
  219. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
  220. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
  221. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
  222. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
  223. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
  224. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
  225. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
  226. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +79 -79
  227. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
  228. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.js.mjs.map +1 -1
  229. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +38 -38
  230. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs.map +1 -1
  231. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
  232. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
  233. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +16 -16
  234. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
  235. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +33 -33
  236. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
  237. package/commons-commons-worker.mjs +1 -1
  238. package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +2 -2
  239. package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +24 -24
  240. package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +3 -3
  241. package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
  242. package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +4 -4
  243. package/kotlin-kotlin-stdlib/kotlin/Result.mjs +16 -11
  244. package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
  245. package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +3 -3
  246. package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +20 -20
  247. package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
  248. package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +26 -26
  249. package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
  250. package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +26 -26
  251. package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
  252. package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +26 -26
  253. package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
  254. package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +26 -26
  255. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +2 -2
  256. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +49 -95
  257. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -1
  258. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +40 -40
  259. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +10 -10
  260. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +67 -92
  261. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -1
  262. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +25 -25
  263. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +4 -4
  264. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +7 -7
  265. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +202 -249
  266. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -1
  267. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +37 -43
  268. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -1
  269. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.d.mts +0 -9
  270. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs +1 -7
  271. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs.map +1 -1
  272. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +24 -52
  273. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
  274. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +46 -83
  275. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
  276. package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +35 -35
  277. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +51 -51
  278. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +38 -38
  279. package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +16 -16
  280. package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
  281. package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +204 -204
  282. package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +1 -1
  283. package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
  284. package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
  285. package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +17 -17
  286. package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +7 -7
  287. package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +3 -3
  288. package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +25 -25
  289. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +7 -7
  290. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
  291. package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
  292. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +11 -11
  293. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
  294. package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +0 -27
  295. package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
  296. package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +4 -4
  297. package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +2 -2
  298. package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +19 -19
  299. package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
  300. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +17 -112
  301. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -1
  302. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +10 -1
  303. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
  304. package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
  305. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +4 -4
  306. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +38 -38
  307. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +4 -4
  308. package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs +38 -38
  309. package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +10 -10
  310. package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +17 -17
  311. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +112 -21
  312. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
  313. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -30
  314. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -1
  315. package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +71 -71
  316. package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +3 -3
  317. package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
  318. package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +8 -8
  319. package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +26 -26
  320. package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
  321. package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
  322. package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
  323. package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
  324. package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +26 -26
  325. package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
  326. package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
  327. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +23 -23
  328. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
  329. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
  330. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
  331. package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
  332. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +27 -27
  333. package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
  334. package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
  335. package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
  336. package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +2 -2
  337. package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +17 -17
  338. package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
  339. package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +66 -66
  340. package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +3 -3
  341. package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +7 -7
  342. package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +20 -20
  343. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +13 -13
  344. package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
  345. package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
  346. package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
  347. package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
  348. package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +81 -81
  349. package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
  350. package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
  351. package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
  352. package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
  353. package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
  354. package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
  355. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
  356. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
  357. package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +27 -27
  358. package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
  359. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +8 -8
  360. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +173 -173
  361. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
  362. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
  363. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
  364. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +9 -9
  365. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +4 -4
  366. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
  367. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +7 -7
  368. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
  369. package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
  370. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +49 -49
  371. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
  372. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
  373. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +2 -2
  374. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
  375. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
  376. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +90 -112
  377. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
  378. package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +17 -17
  379. package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +324 -324
  380. package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
  381. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +16 -16
  382. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
  383. package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
  384. package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +7 -7
  385. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +464 -464
  386. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
  387. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
  388. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
  389. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
  390. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
  391. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
  392. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
  393. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
  394. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
  395. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +18 -18
  396. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +11 -11
  397. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
  398. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +51 -51
  399. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +25 -25
  400. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +65 -65
  401. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
  402. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
  403. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +39 -39
  404. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
  405. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +10 -10
  406. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
  407. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
  408. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
  409. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +49 -49
  410. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
  411. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +3 -3
  412. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +77 -77
  413. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
  414. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
  415. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
  416. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
  417. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
  418. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
  419. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  420. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
  421. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +2 -2
  422. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +12 -12
  423. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
  424. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +54 -54
  425. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +65 -65
  426. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +36 -36
  427. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  428. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
  429. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
  430. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +191 -191
  431. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  432. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  433. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +21 -21
  434. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +54 -54
  435. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +151 -151
  436. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  437. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  438. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  439. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  440. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
  441. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
  442. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  443. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
  444. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +46 -46
  445. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
  446. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
  447. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
  448. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
  449. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
  450. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
  451. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
  452. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +66 -66
  453. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +51 -51
  454. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +63 -63
  455. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
  456. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
  457. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
  458. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
  459. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
  460. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
  461. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +243 -243
  462. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
  463. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
  464. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
  465. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
  466. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
  467. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
  468. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
  469. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
  470. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
  471. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
  472. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +72 -72
  473. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
  474. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +116 -116
  475. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +103 -103
  476. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
  477. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
  478. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +33 -33
  479. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
  480. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
  481. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  482. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +68 -90
  483. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
  484. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
  485. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  486. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  487. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  488. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  489. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  490. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
  491. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +24 -24
  492. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
  493. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
  494. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
  495. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  496. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +67 -67
  497. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
  498. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +12 -12
  499. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +176 -176
  500. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
  501. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  502. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
  503. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +220 -220
  504. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
  505. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +1 -1
  506. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
  507. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  508. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +76 -76
  509. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
  510. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  511. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
  512. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +51 -51
  513. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +49 -49
  514. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
  515. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +23 -23
  516. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +57 -57
  517. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +23 -23
  518. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
  519. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  520. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  521. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +25 -25
  522. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  523. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +34 -34
  524. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +17 -17
  525. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +14 -14
  526. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +9 -9
  527. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +40 -40
  528. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +33 -33
  529. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +74 -74
  530. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +83 -83
  531. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  532. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +60 -60
  533. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +34 -34
  534. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +32 -32
  535. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +116 -116
  536. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
  537. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +84 -84
  538. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +24 -24
  539. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  540. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
  541. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +12 -12
  542. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +28 -28
  543. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
  544. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +39 -39
  545. package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
  546. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +49 -49
  547. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  548. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
  549. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +60 -60
  550. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  551. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  552. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
  553. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
  554. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
  555. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
  556. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +17 -17
  557. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  558. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  559. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
  560. package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
  561. package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
  562. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +15 -15
  563. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
  564. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +19 -19
  565. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  566. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +42 -42
  567. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
  568. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
  569. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  570. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
  571. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +68 -68
  572. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
  573. package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
  574. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +61 -61
  575. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  576. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  577. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +22 -22
  578. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +18 -18
  579. package/ktor-ktor-http/io/ktor/http/Url.mjs +69 -69
  580. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
  581. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  582. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  583. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  584. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
  585. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +90 -90
  586. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
  587. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +53 -53
  588. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +15 -15
  589. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +74 -74
  590. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  591. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
  592. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  593. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  594. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +127 -127
  595. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  596. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
  597. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  598. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
  599. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
  600. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +39 -39
  601. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  602. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
  603. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  604. package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
  605. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  606. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  607. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  608. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +5 -5
  609. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  610. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  611. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  612. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  613. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
  614. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
  615. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  616. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  617. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  618. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +29 -29
  619. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +4 -4
  620. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
  621. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +42 -42
  622. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  623. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +89 -89
  624. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +11 -11
  625. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
  626. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
  627. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  628. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +45 -45
  629. package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
  630. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +40 -40
  631. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  632. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  633. package/ktor-ktor-utils/io/ktor/util/Text.mjs +9 -9
  634. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  635. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
  636. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  637. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
  638. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  639. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  640. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
  641. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +26 -26
  642. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +55 -55
  643. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  644. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  645. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  646. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +58 -58
  647. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  648. package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
  649. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +18 -18
  650. package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
  651. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
  652. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
  653. package/package.json +1 -1
  654. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
  655. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
  656. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
  657. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
  658. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
  659. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
  660. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
  661. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
  662. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
  663. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
  664. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
  665. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
  666. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
  667. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
  668. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +0 -1
  669. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
  670. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
  671. /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
  672. /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
  673. /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  674. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
  675. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
  676. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  677. /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
@@ -66,13 +66,13 @@ function Companion() {
66
66
  constructor() {
67
67
  this.SIZE = 8;
68
68
  }
69
- s4s() {
69
+ x4s() {
70
70
  return this.SIZE;
71
71
  }
72
72
  parse(value) {
73
73
  return new (AttoWork())(fromHexToByteArray(value));
74
74
  }
75
- i1h() {
75
+ b1h() {
76
76
  return AttoWorkAsStringSerializer_getInstance();
77
77
  }
78
78
  }
@@ -112,15 +112,15 @@ function AttoWork() {
112
112
  toString() {
113
113
  return toHex(this.value);
114
114
  }
115
- cf() {
115
+ bf() {
116
116
  return this.value;
117
117
  }
118
- l4q(value) {
118
+ o4q(value) {
119
119
  return new (AttoWork())(value);
120
120
  }
121
121
  copy(value, $super) {
122
122
  value = value === VOID ? this.value : value;
123
- return $super === VOID ? this.l4q(value) : $super.l4q.call(this, value);
123
+ return $super === VOID ? this.o4q(value) : $super.o4q.call(this, value);
124
124
  }
125
125
  }
126
126
  initMetadataForClass($, 'AttoWork', VOID, VOID, VOID, VOID, VOID, {0: AttoWorkAsStringSerializer_getInstance});
@@ -130,10 +130,10 @@ function AttoWork() {
130
130
  }
131
131
  function getThreshold(_this__u8e3s4, network, timestamp) {
132
132
  _init_properties_AttoWork_kt__ln1ynz();
133
- if (timestamp.d4l(Companion_getInstance().INITIAL_INSTANT) < 0) {
134
- throw IllegalArgumentException().s2('Timestamp(' + timestamp.toString() + ') lower than initialInstant(' + Companion_getInstance().INITIAL_INSTANT.toString() + ')');
133
+ if (timestamp.u4k(Companion_getInstance().j4q_1) < 0) {
134
+ throw IllegalArgumentException().s2('Timestamp(' + timestamp.toString() + ') lower than initialInstant(' + Companion_getInstance().j4q_1.toString() + ')');
135
135
  }
136
- return ensureNotNull(ensureNotNull(get_thresholdCache().s4(network)).s4(toLocalDateTime(timestamp.value, Companion_getInstance_0().u4g_1).r44())).ks_1;
136
+ return ensureNotNull(ensureNotNull(get_thresholdCache().o4(network)).o4(toLocalDateTime(timestamp.value, Companion_getInstance_0().l4g_1).i44())).fs_1;
137
137
  }
138
138
  var AttoWorkAsStringSerializerClass;
139
139
  function AttoWorkAsStringSerializer() {
@@ -141,19 +141,19 @@ function AttoWorkAsStringSerializer() {
141
141
  class $ {
142
142
  constructor() {
143
143
  AttoWorkAsStringSerializer_instance = this;
144
- this.w4t_1 = PrimitiveSerialDescriptor('AttoWorkAsString', STRING_getInstance());
144
+ this.e4u_1 = PrimitiveSerialDescriptor('AttoWorkAsString', STRING_getInstance());
145
145
  }
146
- et() {
147
- return this.w4t_1;
146
+ zs() {
147
+ return this.e4u_1;
148
148
  }
149
- x4t(encoder, value) {
150
- encoder.xy(value.toString());
149
+ f4u(encoder, value) {
150
+ encoder.sy(value.toString());
151
151
  }
152
- ft(encoder, value) {
153
- return this.x4t(encoder, value instanceof AttoWork() ? value : THROW_CCE());
152
+ at(encoder, value) {
153
+ return this.f4u(encoder, value instanceof AttoWork() ? value : THROW_CCE());
154
154
  }
155
- gt(decoder) {
156
- return Companion_instance.parse(decoder.ox());
155
+ bt(decoder) {
156
+ return Companion_instance.parse(decoder.jx());
157
157
  }
158
158
  }
159
159
  initMetadataForObject($, 'AttoWorkAsStringSerializer', VOID, VOID, [KSerializer()]);
@@ -170,24 +170,24 @@ function AttoWorkAsStringSerializer_getInstance() {
170
170
  function initializeThresholdCache() {
171
171
  _init_properties_AttoWork_kt__ln1ynz();
172
172
  // Inline function 'kotlin.collections.mutableMapOf' call
173
- var cache = LinkedHashMap().y5();
173
+ var cache = LinkedHashMap().s5();
174
174
  var _iterator__ex2g4s = get_entries().q1();
175
175
  while (_iterator__ex2g4s.r1()) {
176
176
  var network = _iterator__ex2g4s.s1();
177
177
  // Inline function 'kotlin.collections.mutableMapOf' call
178
- var yearMap = LinkedHashMap().y5();
179
- var inductionVariable = Companion_getInstance().INITIAL_DATE.s44_1;
180
- var last = toLocalDateTime(System_instance.vo(), Companion_getInstance_0().u4g_1).r44() + 10 | 0;
178
+ var yearMap = LinkedHashMap().s5();
179
+ var inductionVariable = Companion_getInstance().i4q_1.j44_1;
180
+ var last = toLocalDateTime(System_instance.qo(), Companion_getInstance_0().l4g_1).i44() + 10 | 0;
181
181
  if (inductionVariable <= last)
182
182
  do {
183
183
  var year = inductionVariable;
184
184
  inductionVariable = inductionVariable + 1 | 0;
185
185
  // Inline function 'kotlin.math.pow' call
186
- var x = (year - Companion_getInstance().INITIAL_DATE.s44_1 | 0) / Companion_getInstance().DOUBLING_PERIOD;
186
+ var x = (year - Companion_getInstance().i4q_1.j44_1 | 0) / Companion_getInstance().k4q_1;
187
187
  // Inline function 'kotlin.toULong' call
188
188
  var this_0 = Math.pow(2.0, x);
189
189
  var decreaseFactor = doubleToULong(this_0);
190
- var tmp0 = Companion_getInstance().INITIAL_LIVE_THRESHOLD;
190
+ var tmp0 = Companion_getInstance().h4q_1;
191
191
  // Inline function 'kotlin.ULong.times' call
192
192
  var other = network.thresholdIncreaseFactor;
193
193
  var initialThreshold = _ULong___init__impl__c78o9k(multiply(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)));
@@ -196,18 +196,18 @@ function initializeThresholdCache() {
196
196
  var tmp$ret$5 = ulongDivide(initialThreshold, decreaseFactor);
197
197
  // Inline function 'kotlin.collections.set' call
198
198
  var value = new (ULong())(tmp$ret$5);
199
- yearMap.v4(tmp2, value);
199
+ yearMap.t4(tmp2, value);
200
200
  }
201
201
  while (!(year === last));
202
202
  // Inline function 'kotlin.collections.set' call
203
203
  var value_0 = toMap(yearMap);
204
- cache.v4(network, value_0);
204
+ cache.t4(network, value_0);
205
205
  }
206
206
  return toMap(cache);
207
207
  }
208
208
  function isValid_0(_this__u8e3s4, threshold, target, work) {
209
209
  _init_properties_AttoWork_kt__ln1ynz();
210
- var difficult = toULong(AttoHasher_instance.e4m(8, [work, target]));
210
+ var difficult = toULong(AttoHasher_instance.v4l(8, [work, target]));
211
211
  // Inline function 'kotlin.ULong.compareTo' call
212
212
  return ulongCompare(_ULong___get_data__impl__fggpzb(difficult), _ULong___get_data__impl__fggpzb(threshold)) <= 0;
213
213
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoWork.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/collections/Maps.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/js/src/kotlin/math.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/unsigned/src/kotlin/ULong.kt"],"sourcesContent":[null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-thresholdCache>","<get-SIZE>","parse","value","serializer","<get-value>","isValid","block","equals","other","hashCode","toString","getThreshold","<this>","network","timestamp","<get-descriptor>","serialize","encoder","deserialize","decoder","initializeThresholdCache","cache","yearMap","year","decreaseFactor","initialThreshold","threshold","target","work","difficult","<init properties AttoWork.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4CQA,CAAAA,EAAA;A;EAAA,qB;AAAiB,C;;;;;;;QA+BA,a;;SAAXC,CAAAA,EAAA;A,QAAA,gB;MAAO,C;WAEbC,CAAUC,KAAVD,EAAqC;A,QAAoC,wBAArB,mBAAN,KAAM,CAAqB,C;MAAD,C;SAH5EE,CAAAA,EAAA;A,QAAA,+C;MAIA,C;;;;;;;;;;;;;;;kBANAD,K;QAAA,kB;QASU,YAAN,IAAM,CAAN,KAAM,EAAY,CAAZ,C;;QATVE,CAAAA,EAAA;A,QAAA,iB;MAAmB,C;aAYnBC,CAAYC,KAAZD,EAAyC;A,QAAiE,OAAjE,4BAAQ,KAAR,CAAc,OAAd,EAAuB,KAAvB,CAA6B,SAA7B,EAA8C,UAAN,KAAM,CAA9C,EAA2D,IAA3D,CAA2D,KAA3D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,OAAQ,iB;QAAA,6C;;gBAOsB,CAAC,+BAAO,YAAP,CAAoB,KAArB,gCAA6B,e;;qBEiZf,IAAW,KFjZlC,GEiZkC,EAAU,CAAV,C;YFjZxDC,iBGycgC,cAAc,MAAd,C;2CHxcT,sB;;oBAAyB,O,CAAQ,uB;YAAxDC,mBG0FgD,4BAAgB,SAAL,qCAAK,EAAY,gCAAN,KAAM,CAAZ,CAAhB,C;mBHxFxC,I;;YGyG8D,YAAxB,YHzG9B,gBGyG8B,EHzGX,cGyGW,C;;kCHzG9B,S;QAAhB,OCmOR,UAAS,KAAT,C;;MD7OI,mBAAa,IAAb,E;;kBAYyB,MAAR,OAAQ,C;IAAzB,KCiOJ,IDjOU,OCiOV,EAAS,OAAT,C;EDhOA,C;EACA,OAAa,MAAN,KAAM,C;AACjB,C;kBAkBApB,CAAIO,a,EACAc,S,EACAC,M,EACAC,IAHJvB,EAIW;A;MACPwB,YAAiD,QAAtB,wBAAK,CAAL,EAAQ,OAAM,MAAN,CAAR,CAAsB,C;;EACjD,OGQmE,aAAkB,gCHR9E,SGQ8E,CAAlB,EAA8B,gCHR7E,SGQ6E,CAA9B,CHR5D,K;AACX,C;;6CAnEAC,CAAAA,E;;;qBA4C6B,0B;;C;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoWork.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/collections/Maps.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/js/src/kotlin/math.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/unsigned/src/kotlin/ULong.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.AttoNetwork.Companion.DOUBLING_PERIOD\nimport cash.atto.commons.AttoNetwork.Companion.INITIAL_DATE\nimport cash.atto.commons.AttoNetwork.Companion.INITIAL_INSTANT\nimport cash.atto.commons.AttoNetwork.Companion.INITIAL_LIVE_THRESHOLD\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.datetime.TimeZone\nimport kotlinx.datetime.toLocalDateTime\nimport kotlinx.serialization.KSerializer\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.builtins.ByteArraySerializer\nimport kotlinx.serialization.descriptors.PrimitiveKind\nimport kotlinx.serialization.descriptors.PrimitiveSerialDescriptor\nimport kotlinx.serialization.encoding.Decoder\nimport kotlinx.serialization.encoding.Encoder\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsExport\nimport kotlin.math.pow\nimport kotlin.time.Clock\nimport kotlin.time.ExperimentalTime\n\n@OptIn(ExperimentalTime::class)\nprivate fun initializeThresholdCache(): Map<AttoNetwork, Map<Int, ULong>> {\n val cache = mutableMapOf<AttoNetwork, Map<Int, ULong>>()\n for (network in AttoNetwork.entries) {\n val yearMap = mutableMapOf<Int, ULong>()\n for (year in INITIAL_DATE.year..(\n Clock\n .System\n .now()\n .toLocalDateTime(TimeZone.UTC)\n .year + 10\n )) {\n val decreaseFactor = (2.0).pow((year - INITIAL_DATE.year) / DOUBLING_PERIOD).toULong()\n val initialThreshold = INITIAL_LIVE_THRESHOLD * network.thresholdIncreaseFactor\n\n yearMap[year] = initialThreshold / decreaseFactor\n }\n cache[network] = yearMap.toMap()\n }\n return cache.toMap()\n}\n\nprivate val thresholdCache = initializeThresholdCache()\n\n@OptIn(ExperimentalTime::class)\nfun AttoWork.Companion.getThreshold(\n network: AttoNetwork,\n timestamp: AttoInstant,\n): ULong {\n if (timestamp < INITIAL_INSTANT) {\n throw IllegalArgumentException(\"Timestamp($timestamp) lower than initialInstant(${AttoNetwork.INITIAL_INSTANT})\")\n }\n\n return thresholdCache[network]!![timestamp.value.toLocalDateTime(TimeZone.UTC).year]!!\n}\n\n@OptIn(ExperimentalJsExport::class)\n@JsExport.Ignore\nfun AttoWork.Companion.isValid(\n threshold: ULong,\n target: ByteArray,\n work: ByteArray,\n): Boolean {\n val difficult = AttoHasher.hash(8, work, target).toULong()\n return difficult <= threshold\n}\n\n@JsExportForJs\n@Serializable(with = AttoWorkAsStringSerializer::class)\ndata class AttoWork(\n val value: ByteArray,\n) {\n companion object {\n const val SIZE = 8\n\n fun parse(value: String): AttoWork = AttoWork(value.fromHexToByteArray())\n }\n\n init {\n value.checkLength(SIZE)\n }\n\n fun isValid(block: AttoBlock): Boolean = isValid(block.network, block.timestamp, block.getTarget(), value)\n\n override fun equals(other: Any?): Boolean {\n if (this === other) return true\n if (other !is AttoWork) return false\n\n return value.contentEquals(other.value)\n }\n\n override fun hashCode(): Int = value.contentHashCode()\n\n override fun toString(): String = value.toHex()\n}\n\nobject AttoWorkAsStringSerializer : KSerializer<AttoWork> {\n override val descriptor = PrimitiveSerialDescriptor(\"AttoWorkAsString\", PrimitiveKind.STRING)\n\n override fun serialize(\n encoder: Encoder,\n value: AttoWork,\n ) {\n encoder.encodeString(value.toString())\n }\n\n override fun deserialize(decoder: Decoder): AttoWork = AttoWork.parse(decoder.decodeString())\n}\n\nobject AttoWorkAsByteArraySerializer : KSerializer<AttoWork> {\n override val descriptor = PrimitiveSerialDescriptor(\"AttoWorkAsByteArray\", PrimitiveKind.BYTE)\n\n override fun serialize(\n encoder: Encoder,\n value: AttoWork,\n ) {\n encoder.encodeSerializableValue(ByteArraySerializer(), value.value)\n }\n\n override fun deserialize(decoder: Decoder): AttoWork = AttoWork(decoder.decodeSerializableValue(ByteArraySerializer()))\n}\n",null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-thresholdCache>","<get-SIZE>","parse","value","serializer","<get-value>","isValid","block","equals","other","hashCode","toString","getThreshold","<this>","network","timestamp","<get-descriptor>","serialize","encoder","deserialize","decoder","initializeThresholdCache","cache","yearMap","year","decreaseFactor","initialThreshold","threshold","target","work","difficult","<init properties AttoWork.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CHR5D,K;AACX,C;;6CAnEAC,CAAAA,E;;;qBA4C6B,0B;;C;;;;;;;;"}
@@ -54,7 +54,7 @@ function AttoWorkTarget() {
54
54
  if (AttoWorkTargetClass === VOID) {
55
55
  class $ {
56
56
  constructor(value) {
57
- this.y4t_1 = value;
57
+ this.g4u_1 = value;
58
58
  }
59
59
  equals(other) {
60
60
  if (this === other)
@@ -63,15 +63,15 @@ function AttoWorkTarget() {
63
63
  return false;
64
64
  if (!(other instanceof AttoWorkTarget()))
65
65
  THROW_CCE();
66
- if (!contentEquals(this.y4t_1, other.y4t_1))
66
+ if (!contentEquals(this.g4u_1, other.g4u_1))
67
67
  return false;
68
68
  return true;
69
69
  }
70
70
  hashCode() {
71
- return contentHashCode(this.y4t_1);
71
+ return contentHashCode(this.g4u_1);
72
72
  }
73
73
  toString() {
74
- return toHex(this.y4t_1);
74
+ return toHex(this.g4u_1);
75
75
  }
76
76
  }
77
77
  initMetadataForClass($, 'AttoWorkTarget', VOID, VOID, VOID, VOID, VOID, {0: AttoWorkTargetAsStringSerializer_getInstance});
@@ -82,7 +82,7 @@ function AttoWorkTarget() {
82
82
  function getTarget(_this__u8e3s4) {
83
83
  var tmp;
84
84
  if (_this__u8e3s4 instanceof AttoOpenBlock()) {
85
- tmp = new (AttoWorkTarget())(_this__u8e3s4.x4j_1.value);
85
+ tmp = new (AttoWorkTarget())(_this__u8e3s4.o4j_1.value);
86
86
  } else {
87
87
  if (isInterface(_this__u8e3s4, PreviousSupport())) {
88
88
  tmp = new (AttoWorkTarget())(_this__u8e3s4.previous.value);
@@ -93,10 +93,10 @@ function getTarget(_this__u8e3s4) {
93
93
  return tmp;
94
94
  }
95
95
  function isValid_0(_this__u8e3s4, threshold, target, work) {
96
- return isValid(_this__u8e3s4, threshold, target.y4t_1, work);
96
+ return isValid(_this__u8e3s4, threshold, target.g4u_1, work);
97
97
  }
98
98
  function isValid_1(_this__u8e3s4, network, timestamp, target, work) {
99
- if (timestamp.d4l(Companion_getInstance().INITIAL_INSTANT) < 0) {
99
+ if (timestamp.u4k(Companion_getInstance().j4q_1) < 0) {
100
100
  return false;
101
101
  }
102
102
  return isValid_0(_this__u8e3s4, getThreshold(Companion_instance, network, timestamp), target, work);
@@ -107,19 +107,19 @@ function AttoWorkTargetAsStringSerializer() {
107
107
  class $ {
108
108
  constructor() {
109
109
  AttoWorkTargetAsStringSerializer_instance = this;
110
- this.z4t_1 = PrimitiveSerialDescriptor('AttoWorkTargetAsString', STRING_getInstance());
110
+ this.h4u_1 = PrimitiveSerialDescriptor('AttoWorkTargetAsString', STRING_getInstance());
111
111
  }
112
- et() {
113
- return this.z4t_1;
112
+ zs() {
113
+ return this.h4u_1;
114
114
  }
115
- a4u(encoder, value) {
116
- encoder.xy(value.toString());
115
+ i4u(encoder, value) {
116
+ encoder.sy(value.toString());
117
117
  }
118
- ft(encoder, value) {
119
- return this.a4u(encoder, value instanceof AttoWorkTarget() ? value : THROW_CCE());
118
+ at(encoder, value) {
119
+ return this.i4u(encoder, value instanceof AttoWorkTarget() ? value : THROW_CCE());
120
120
  }
121
- gt(decoder) {
122
- return new (AttoWorkTarget())(fromHexToByteArray(decoder.ox()));
121
+ bt(decoder) {
122
+ return new (AttoWorkTarget())(fromHexToByteArray(decoder.jx()));
123
123
  }
124
124
  }
125
125
  initMetadataForObject($, 'AttoWorkTargetAsStringSerializer', VOID, VOID, [KSerializer()]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoWorkTarget.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["value","equals","other","hashCode","toString","getTarget","<this>","isValid","threshold","target","work","network","timestamp","<get-descriptor>","serialize","encoder","deserialize","decoder"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcIA,K;QAAA,kB;;YAESC,CAAWC,KAAXD,EAAiC;A,QAClC,aAAS,KAAT,C;UAAgB,OAA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Content":["package cash.atto.commons\n\nimport cash.atto.commons.AttoNetwork.Companion.INITIAL_INSTANT\nimport kotlinx.serialization.KSerializer\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.descriptors.PrimitiveKind\nimport kotlinx.serialization.descriptors.PrimitiveSerialDescriptor\nimport kotlinx.serialization.encoding.Decoder\nimport kotlinx.serialization.encoding.Encoder\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsExport\n\n@Serializable(with = AttoWorkTargetAsStringSerializer::class)\ndata class AttoWorkTarget(\n val value: ByteArray,\n) {\n override fun equals(other: Any?): Boolean {\n if (this === other) return true\n if (other == null || this::class != other::class) return false\n\n other as AttoWorkTarget\n\n if (!value.contentEquals(other.value)) return false\n\n return true\n }\n\n override fun hashCode(): Int = value.contentHashCode()\n\n override fun toString(): String = value.toHex()\n}\n\nfun AttoBlock.getTarget(): AttoWorkTarget =\n when (this) {\n is AttoOpenBlock -> AttoWorkTarget(this.publicKey.value)\n is PreviousSupport -> AttoWorkTarget(this.previous.value)\n }\n\n@OptIn(ExperimentalJsExport::class)\n@JsExport.Ignore\nfun AttoWork.Companion.isValid(\n threshold: ULong,\n target: AttoWorkTarget,\n work: ByteArray,\n): Boolean = isValid(threshold, target.value, work)\n\nfun AttoWork.Companion.isValid(\n network: AttoNetwork,\n timestamp: AttoInstant,\n target: AttoWorkTarget,\n work: ByteArray,\n): Boolean {\n if (timestamp < INITIAL_INSTANT) {\n return false\n }\n return isValid(AttoWork.getThreshold(network, timestamp), target, work)\n}\n\nobject AttoWorkTargetAsStringSerializer : KSerializer<AttoWorkTarget> {\n override val descriptor = PrimitiveSerialDescriptor(\"AttoWorkTargetAsString\", PrimitiveKind.STRING)\n\n override fun serialize(\n encoder: Encoder,\n value: AttoWorkTarget,\n ) {\n encoder.encodeString(value.toString())\n }\n\n override fun deserialize(decoder: Decoder): AttoWorkTarget = AttoWorkTarget(decoder.decodeString().fromHexToByteArray())\n}\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["value","equals","other","hashCode","toString","getTarget","<this>","isValid","threshold","target","work","network","timestamp","<get-descriptor>","serialize","encoder","deserialize","decoder"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAcIA,K;QAAA,kB;;YAESC,CAAWC,KAAXD,EAAiC;A,QAClC,aAAS,KAAT,C;UAAgB,OAAO,I;QACvB,aAAS,IAAT,IAAiB,8DAAe,KAAf,EAAjB,C;UAA8C,OAAO,K;cAEzD,K;;QAEI,KAAO,cAAN,IAAM,CAAN,KAAM,EAAc,KAAd,CAAoB,KAApB,CAAP,C;UAAmC,OAAO,K;QAE9C,OAAO,I;MACX,C;cAESE,CAAAA,EAAsB;A,QAAuB,OAAjB,gBAAN,IAAM,CAAN,KAAM,C;MAAgB,C;cAE5CC,CAAAA,EAAyB;A,QAAa,OAAP,MAAN,IAAM,CAAN,KAAM,C;MAAM,C;;;;;;;kBAGlDC,CAAIC,aAAJD,EACI;A;EACI,IADE,aACF,4B;iCAAmC,a,CAAK,K,CAAU,K;;IAClD,gBAFE,aAEF,qB;mCAAqC,a,CAAK,Q,CAAS,K;;MAFvD,8B;;;EAGC,U;AAAD,C;kBAIJE,CAAID,a,EACAE,S,EACAC,M,EACAC,IAHJH,EAIa;A,EAAsC,OAAtC,uBAAQ,SAAR,EAAmB,MAAnB,CAA0B,KAA1B,EAAiC,IAAjC,C;AAAqC,C;kBAElDA,CAAID,a,EACAK,O,EACAC,S,EACAH,M,EACAC,IAJJH,EAKW;A,EACH,0CAAY,KAAZ,M,CAA6B;A,IAC7B,OAAO,K;EACX,C;EACA,OAAO,yBAAiB,iCAAa,OAAb,EAAsB,SAAtB,CAAjB,EAAmD,MAAnD,EAA2D,IAA3D,C;AACX,C;;;;;;;QAG8B,uCAA0B,wBAA1B,uB;;QAAjBM,CAAAA,EAAA;A,QAAA,iB;MAAa,C;SAEbC,CACLC,O,EACAf,KAFKc,EAGP;A,QACE,OAAQ,IAAa,KAAM,WAAnB,C;MACZ,C;SAI8nJC,O,EAAkBf,K;;;QAFvoJgB,CAAgBC,OAAhBD,EAAoD;A,QAA2D,8BAArB,mBAAvB,OAAQ,KAAe,CAAqB,C;MAAD,C;;;;;;;;;;;;;;;;;;;;"}
@@ -28,7 +28,7 @@ import {
28
28
  //region block: pre-declaration
29
29
  //endregion
30
30
  function toHex(_this__u8e3s4) {
31
- return toHexString(_this__u8e3s4, Companion_getInstance().fn_1);
31
+ return toHexString(_this__u8e3s4, Companion_getInstance().an_1);
32
32
  }
33
33
  function fromHexToByteArray(_this__u8e3s4) {
34
34
  // Inline function 'kotlin.collections.map' call
@@ -57,11 +57,11 @@ function checkLength(_this__u8e3s4, size) {
57
57
  }
58
58
  function toULong(_this__u8e3s4) {
59
59
  var buffer = new (Buffer())();
60
- buffer.o2j(_this__u8e3s4);
60
+ buffer.f2j(_this__u8e3s4);
61
61
  return readULongLe(buffer);
62
62
  }
63
63
  function toHex_0(_this__u8e3s4) {
64
- return toHex_1(_this__u8e3s4.m4m());
64
+ return toHex_1(_this__u8e3s4.d4m());
65
65
  }
66
66
  function toByteArray_1(_this__u8e3s4) {
67
67
  var buffer = new (Buffer())();
@@ -69,7 +69,7 @@ function toByteArray_1(_this__u8e3s4) {
69
69
  return readByteArray(buffer);
70
70
  }
71
71
  function toHex_1(_this__u8e3s4) {
72
- return toHex(readByteArray(_this__u8e3s4.b2k()));
72
+ return toHex(readByteArray(_this__u8e3s4.s2j()));
73
73
  }
74
74
  function toUint8Array(_this__u8e3s4) {
75
75
  var output = new Uint8Array(_this__u8e3s4.length);
@@ -104,10 +104,10 @@ function toByteArray_2(_this__u8e3s4) {
104
104
  return output;
105
105
  }
106
106
  function await_0(_this__u8e3s4, $completion) {
107
- var safe = SafeContinuation().kd(intercepted($completion));
107
+ var safe = SafeContinuation().gd(intercepted($completion));
108
108
  var tmp = await$lambda(safe);
109
109
  _this__u8e3s4.then(tmp, await$lambda_0(safe));
110
- return safe.ld();
110
+ return safe.hd();
111
111
  }
112
112
  function await$lambda($cont) {
113
113
  return (it) => {
@@ -115,7 +115,7 @@ function await$lambda($cont) {
115
115
  var this_0 = $cont;
116
116
  // Inline function 'kotlin.Companion.success' call
117
117
  var tmp$ret$0 = _Result___init__impl__xyqfz8(it);
118
- this_0.qc(tmp$ret$0);
118
+ this_0.mc(tmp$ret$0);
119
119
  return Unit_instance;
120
120
  };
121
121
  }
@@ -125,7 +125,7 @@ function await$lambda_0($cont) {
125
125
  var this_0 = $cont;
126
126
  // Inline function 'kotlin.Companion.failure' call
127
127
  var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(it));
128
- this_0.qc(tmp$ret$0);
128
+ this_0.mc(tmp$ret$0);
129
129
  return Unit_instance;
130
130
  };
131
131
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/Extensions.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/common/src/generated/_Collections.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Preconditions.kt","../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/Extensions.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/libraries/stdlib/js/src/org.w3c/org.khronos.webgl.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/coroutines/Continuation.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Result.kt"],"sourcesContent":[null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["toHex","<this>","fromHexToByteArray","item","toByteArray","buffer","checkLength","size","message","toULong","toUint8Array","output","index","await","$complet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AAX,C;;cACN,a,CAAA,M;MC6IO,qB;EAAd,wBAAsB,KAAtB,C;OAAA;A,UAAKC,QAAS,iB;MAAA,6C;;;MD5IV,MEk8B6D,CDrzBtD,KCqzBsD,IFl8B7C,cC6IT,KD7IS,C;;IC4IpB,4BAAsB,KAAtB,C;ED1IA,OAAO,M;AACX,C;sBAdAR,CAAIH,aAAJG,EAAwC;A,MACpCO,SAAa,cAAU,aAAV,CAAU,MAAV,C;;cACN,a,CAAA,M;MCqJO,qB;EAAd,wBAAsB,KAAtB,C;OAAA;A,UAAKC,QAAS,iB;MAAA,6C;;;MDpJV,OCqJO,KDrJP,IAAgB,aEs8BsC,CDjzB/C,KCizB+C,C;;IDlzB1D,4BAAsB,KAAtB,C;EDlJA,OAAO,M;AACX,C;gBAUQC,CAAQZ,a,EAARa,WAAAD,EACJ;A,MGqHIE,6BAA8B,YHlH2d,WGkH3d,CAA9BA,C;YHpHK,aGqHC,IHrHD,C;EAAL,wBAA0B,eGqHpB,IHrHoB,CAA1B,C;EACJ,OGqHI,IAAK,K;AHrHT,C;qBADSC,C,KAAAA,E;SAAAC,CAAA,EAAAA,KAAA;A;iBAAE,K;;QIgEU,YAAb,6BJhEe,EIgEf,C;IDhDR,UAAkB,SAAlB,C;IHhB2B,oB;EAAA,C;C;uBAAGD,C,KAAAA,E;SAAAC,CAAA,EAAAA,KAAA;A;iBAAE,K;;QIyEQ,YAAhC,6BAAO,cJzE0C,EIyE1C,CAAP,C;IDhDR,UAAkB,SAAlB,C;IHzB6D,oB;EAAA,C;C;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/Extensions.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/common/src/generated/_Collections.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Preconditions.kt","../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/Extensions.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/libraries/stdlib/js/src/org.w3c/org.khronos.webgl.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/coroutines/Continuation.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Result.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.io.Buffer\nimport kotlinx.io.readByteArray\nimport kotlinx.io.readULongLe\nimport kotlinx.io.writeULongLe\nimport kotlin.js.ExperimentalJsExport\n\n@OptIn(ExperimentalStdlibApi::class, ExperimentalJsExport::class)\n@JsExportForJs\nfun ByteArray.toHex(): String = this.toHexString(HexFormat.UpperCase)\n\nfun Buffer.toHex(): String = this.copy().readByteArray().toHex()\n\nfun AttoSerializable.toHex(): String = toBuffer().toHex()\n\n@OptIn(ExperimentalJsExport::class)\n@JsExportForJs\nfun String.fromHexToByteArray(): ByteArray =\n chunked(2)\n .map { it.toInt(16).toByte() }\n .toByteArray()\n\nfun ByteArray.checkLength(size: Int) {\n require(this.size == size) { \"Byte array contains ${this.size} characters but should contains $size\" }\n}\n\nfun AttoInstant.toByteArray(): ByteArray {\n val buffer = Buffer()\n buffer.writeInstant(this)\n return buffer.readByteArray()\n}\n\nfun ByteArray.toULong(): ULong {\n val buffer = Buffer()\n buffer.write(this)\n return buffer.readULongLe()\n}\n\nfun ULong.toByteArray(): ByteArray {\n val buffer = Buffer()\n buffer.writeULongLe(this)\n return buffer.readByteArray()\n}\n",null,null,"package cash.atto.commons\n\nimport org.khronos.webgl.Uint8Array\nimport org.khronos.webgl.get\nimport org.khronos.webgl.set\nimport kotlin.coroutines.resume\nimport kotlin.coroutines.resumeWithException\nimport kotlin.coroutines.suspendCoroutine\nimport kotlin.js.Promise\n\nfun Uint8Array.toByteArray(): ByteArray {\n val output = ByteArray(length)\n repeat(length) { index ->\n output[index] = get(index)\n }\n return output\n}\n\nfun ByteArray.toUint8Array(): Uint8Array {\n val output = Uint8Array(size)\n repeat(size) { index ->\n output[index] = get(index)\n }\n return output\n}\n\nsuspend fun <T> Promise<T>.await(): T =\n suspendCoroutine { cont ->\n then({ cont.resume(it) }, { cont.resumeWithException(it) })\n }\n",null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["toHex","<this>","fromHexToByteArray","item","toByteArray","buffer","checkLength","size","message","toULong","toUint8Array","output","index","await","$completion","safe","await$lambda","await$lambda$lambda"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWAA,CAAIC,aAAJD,EAAgC;A,EAAqC,OAAhC,YAAL,aAAK,0BAAsB,IAAtB,C;AAA+B,C;2BAQpEE,CAAID,aAAJC,EACI;A;eAAA,uBAAQ,CAAR,C;;oBC6hDa,eAAa,gCAAwB,EAAxB,CAAb,C;MA2EA,oBA3EN,MA2EM,K;SAAA,sB,EACT;A,QADCC,OAAQ,sB;QDvmDmB,YAAR,OAAV,MCwmDgB,IDxmDhB,EAAM,EAAN,CAAU,C;ICwmDpB,WAAY,IAAI,SAAJ,C;EAAmB,C;EDvmDjB,OAAb,YCwmDE,WDxmDF,C;AAAY,C;sBAMrBC,CAAIH,aAAJG,EAAyC;A,MACrCC,yB;EACO,aAAP,MAAO,EAAa,aAAb,C;EACP,OAAc,cAAP,MAAO,C;AAClB,C;oBARAC,CAAIL,a,EAAsBM,IAA1BD,EAAqC;A;EEW7B,MFVI,cAAK,MAAL,KAAa,IEUjB,E,CAAQ;A,QACRE,UFX0B,sBAAD,GAAuB,aAAvB,CAA4B,MAA5B,GAAiC,kCAAjC,GAAkE,I;IEY3F,oCAAuC,SAAR,OAAQ,CAAvC,C;EACJ,C;AFZJ,C;gBAQAC,CAAIR,aAAJQ,EAA+B;A,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;SAAAC,CAAA,EAAAA,KAAA;A;iBAAE,K;;QIyEQ,YAAhC,6BAAO,cJzE0C,EIyE1C,CAAP,C;IDhDR,UAAkB,SAAlB,C;IHzB6D,oB;EAAA,C;C;;;;;"}
@@ -26,7 +26,7 @@ function Base32() {
26
26
  class $ {
27
27
  constructor() {
28
28
  Base32_instance = this;
29
- this.q4m_1 = 'abcdefghijklmnopqrstuvwxyz234567';
29
+ this.h4m_1 = 'abcdefghijklmnopqrstuvwxyz234567';
30
30
  var tmp = this;
31
31
  var tmp_0 = 0;
32
32
  var tmp_1 = new Int32Array(128);
@@ -37,7 +37,7 @@ function Base32() {
37
37
  // Inline function 'kotlin.apply' call
38
38
  // Inline function 'kotlin.text.forEachIndexed' call
39
39
  var index = 0;
40
- var indexedObject = Base32_getInstance().q4m_1;
40
+ var indexedObject = Base32_getInstance().h4m_1;
41
41
  var inductionVariable = 0;
42
42
  while (inductionVariable < charSequenceLength(indexedObject)) {
43
43
  var item = charSequenceGet(indexedObject, inductionVariable);
@@ -51,7 +51,7 @@ function Base32() {
51
51
  // Inline function 'kotlin.js.asDynamic' call
52
52
  // Inline function 'kotlin.text.forEachIndexed' call
53
53
  var index_0 = 0;
54
- var indexedObject_0 = Base32_getInstance().q4m_1.toUpperCase();
54
+ var indexedObject_0 = Base32_getInstance().h4m_1.toUpperCase();
55
55
  var inductionVariable_0 = 0;
56
56
  while (inductionVariable_0 < charSequenceLength(indexedObject_0)) {
57
57
  var item_0 = charSequenceGet(indexedObject_0, inductionVariable_0);
@@ -61,9 +61,9 @@ function Base32() {
61
61
  // Inline function 'kotlin.code' call
62
62
  tmp_1[Char__toInt_impl_vasixd(item_0)] = _unary__edvuaz_0;
63
63
  }
64
- tmp.r4m_1 = tmp_1;
64
+ tmp.i4m_1 = tmp_1;
65
65
  }
66
- t4m(data) {
66
+ k4m(data) {
67
67
  var result = StringBuilder().m1();
68
68
  var buffer = 0;
69
69
  var bitsLeft = 0;
@@ -76,19 +76,19 @@ function Base32() {
76
76
  buffer = buffer << 8 | element & 255;
77
77
  bitsLeft = bitsLeft + 8 | 0;
78
78
  while (bitsLeft >= 5) {
79
- result.p1(charCodeAt(Base32_getInstance().q4m_1, buffer >> (bitsLeft - 5 | 0) & 31));
79
+ result.p1(charCodeAt(Base32_getInstance().h4m_1, buffer >> (bitsLeft - 5 | 0) & 31));
80
80
  bitsLeft = bitsLeft - 5 | 0;
81
81
  }
82
82
  }
83
83
  if (bitsLeft > 0) {
84
- result.p1(charCodeAt(this.q4m_1, buffer << (5 - bitsLeft | 0) & 31));
84
+ result.p1(charCodeAt(this.h4m_1, buffer << (5 - bitsLeft | 0) & 31));
85
85
  }
86
86
  while (!((result.a() % 8 | 0) === 0)) {
87
87
  result.n1('=');
88
88
  }
89
89
  return result.toString();
90
90
  }
91
- s4m(base32) {
91
+ j4m(base32) {
92
92
  // Inline function 'kotlin.text.filter' call
93
93
  // Inline function 'kotlin.text.filterTo' call
94
94
  var destination = StringBuilder().m1();
@@ -116,7 +116,7 @@ function Base32() {
116
116
  while (inductionVariable_0 < charSequenceLength(data)) {
117
117
  var element_0 = charSequenceGet(data, inductionVariable_0);
118
118
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
119
- var tmp = Base32_getInstance().r4m_1;
119
+ var tmp = Base32_getInstance().i4m_1;
120
120
  // Inline function 'kotlin.code' call
121
121
  var value = tmp[Char__toInt_impl_vasixd(element_0)];
122
122
  // Inline function 'kotlin.require' call
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/utils/Base32.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/common/src/generated/_Strings.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/src/kotlin/CharCode.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/js/src/kotlin/text/stringJs.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/common/src/generated/_Arrays.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/src/kotlin/util/Preconditions.kt"],"sourcesContent":[null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["index","item","encode","data","result","buffer","bitsLeft","element","decode","base32","output","value","message"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG2B,+C;kBAEE,I;YAArB,S;YAAA,uBAAS,GAAT,C;eAAA,QAAS,G,EAAT;A,UAAA,eAAgB,E;UAAhB,qB;QAAmB,C;;;YCirCvBA,QAAY,C;YACC,qCDjrCL,K;YCirCK,qB;eAAb,oBAAa,iC,EAAb;A,cAAKC,OAAQ,iD;UAAA,6C;cAAa,sB;UAAA,QAAA,cAAK,IAAL,I;;UDlrCtB,KAC6C,CEuCP,wBD0oCP,IC1oCO,CFvCO,ICirCvB,c;;;;;YAD1BD,UAAY,C;YACC,kBEj+BiD,qBH/MtD,KG+MsD,c;YFi+BjD,uB;eAAb,sBAAa,mC,EAAb;A,cAAKC,SAAQ,qD;UAAA,iD;cAAa,0B;UAAA,UAAA,gBAAK,IAAL,I;;UDlrCtB,KAEyD,CEsCnB,wBD0oCP,MC1oCO,CFtCmB,ICgrCnC,gB;;QDlrCD,YAArB,K;;SAKJC,CAAWC,IAAXD,EAAoC;A,YAChCE,6B;YACAC,SAAa,C;YACbC,WAAe,C;;YIqubH,qB;YAAA,OJpubZ,IIoubY,O;eAAhB,oBAAgB,I,EAAhB;A,cAAKC,UJpubD,IIoubY,mB;UAAA,6C;UJnubR,SAAU,UAAW,CAAZ,GImubY,OJnubO,GAAiB,G;UAC7C,sBAAY,CAAZ,I;iBACO,YAAY,C,EAAG;A,YAClB,MAAO,IAAO,uCAAU,WAAY,WAAW,CAAvB,KAAD,GAAgC,EAAzC,CAAP,C;YACP,sBAAY,CAAZ,I;UACJ,C;;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;;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/utils/Base32.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/common/src/generated/_Strings.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/src/kotlin/CharCode.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/js/src/kotlin/text/stringJs.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/common/src/generated/_Arrays.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/src/kotlin/util/Preconditions.kt"],"sourcesContent":["package cash.atto.commons.utils\n\nobject Base32 {\n private val ALPHABET = \"abcdefghijklmnopqrstuvwxyz234567\"\n private val DECODE_MAP =\n IntArray(128) { -1 }.apply {\n ALPHABET.forEachIndexed { index, char -> this[char.code] = index }\n ALPHABET.uppercase().forEachIndexed { index, char -> this[char.code] = index }\n }\n\n fun encode(data: ByteArray): String {\n val result = StringBuilder()\n var buffer = 0\n var bitsLeft = 0\n data.forEach { byte ->\n buffer = (buffer shl 8) or (byte.toInt() and 0xFF)\n bitsLeft += 8\n while (bitsLeft >= 5) {\n result.append(ALPHABET[(buffer shr (bitsLeft - 5)) and 0x1F])\n bitsLeft -= 5\n }\n }\n if (bitsLeft > 0) {\n result.append(ALPHABET[(buffer shl (5 - bitsLeft)) and 0x1F])\n }\n while (result.length % 8 != 0) {\n result.append(\"=\")\n }\n return result.toString()\n }\n\n fun decode(base32: String): ByteArray {\n val data = base32.filter { it != '=' }.lowercase()\n val output = ByteArray((data.length * 5) / 8)\n var buffer = 0\n var bitsLeft = 0\n var index = 0\n data.forEach { char ->\n val value = DECODE_MAP[char.code]\n require(value != -1) { \"Invalid Base32 character: $char\" }\n buffer = (buffer shl 5) or value\n bitsLeft += 5\n if (bitsLeft >= 8) {\n output[index++] = (buffer shr (bitsLeft - 8)).toByte()\n bitsLeft -= 8\n }\n }\n return output\n }\n}\n",null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["index","item","encode","data","result","buffer","bitsLeft","element","decode","base32","output","value","message"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;QAG2B,+C;kBAEE,I;YAArB,S;YAAA,uBAAS,GAAT,C;eAAA,QAAS,G,EAAT;A,UAAA,eAAgB,E;UAAhB,qB;QAAmB,C;;;YCirCvBA,QAAY,C;YACC,qCDjrCL,K;YCirCK,qB;eAAb,oBAAa,iC,EAAb;A,cAAKC,OAAQ,iD;UAAA,6C;cAAa,sB;UAAA,QAAA,cAAK,IAAL,I;;UDlrCtB,KAC6C,CEuCP,wBD0oCP,IC1oCO,CFvCO,ICirCvB,c;;;;;YAD1BD,UAAY,C;YACC,kBEj+BiD,qBH/MtD,KG+MsD,c;YFi+BjD,uB;eAAb,sBAAa,mC,EAAb;A,cAAKC,SAAQ,qD;UAAA,iD;cAAa,0B;UAAA,UAAA,gBAAK,IAAL,I;;UDlrCtB,KAEyD,CEsCnB,wBD0oCP,MC1oCO,CFtCmB,ICgrCnC,gB;;QDlrCD,YAArB,K;;SAKJC,CAAWC,IAAXD,EAAoC;A,YAChCE,6B;YACAC,SAAa,C;YACbC,WAAe,C;;YIqubH,qB;YAAA,OJpubZ,IIoubY,O;eAAhB,oBAAgB,I,EAAhB;A,cAAKC,UJpubD,IIoubY,mB;UAAA,6C;UJnubR,SAAU,UAAW,CAAZ,GImubY,OJnubO,GAAiB,G;UAC7C,sBAAY,CAAZ,I;iBACO,YAAY,C,EAAG;A,YAClB,MAAO,IAAO,uCAAU,WAAY,WAAW,CAAvB,KAAD,GAAgC,EAAzC,CAAP,C;YACP,sBAAY,CAAZ,I;UACJ,C;;QAEA,eAAW,CAAX,C,CAAc;A,UACd,MAAO,IAAO,uBAAU,WAAY,IAAI,QAAhB,K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RandomClass === VOID) {
13
13
  class $ {
14
- i4r(size) {
14
+ l4r(size) {
15
15
  // Inline function 'kotlin.UInt.toInt' call
16
16
  var tmp$ret$0 = _UInt___get_data__impl__f0vqqw(size);
17
17
  var uint8Array = new Uint8Array(tmp$ret$0);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/utils/SecureRandom.js.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/unsigned/src/kotlin/UInt.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["randomByteArray","size","uint8Array"],"mappings":";;;;;;;;;;;;;SAMWA,CAAoBC,IAApBD,EAA2C;A;YC0Vb,YAAJ,+BDzVD,ICyVC,C;YDzV7BE,aAAiB,eAAgB,SAAhB,C;QAEd,MAAH,iBAA6B,UAA7B,C;QAEA,OAAkB,YAAX,UAAW,C;MACtB,C;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/utils/SecureRandom.js.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/utils/unsigned/src/kotlin/UInt.kt"],"sourcesContent":["package cash.atto.commons.utils\n\nimport cash.atto.commons.toByteArray\nimport org.khronos.webgl.Uint8Array\n\nactual object SecureRandom {\n actual fun randomByteArray(size: UInt): ByteArray {\n val uint8Array = Uint8Array(size.toInt())\n\n js(\"crypto.getRandomValues\")(uint8Array)\n\n return uint8Array.toByteArray()\n }\n}\n",null],"ignoreList":[],"x_google_ignoreList":[],"names":["randomByteArray","size","uint8Array"],"mappings":";;;;;;;;;;;;;SAMWA,CAAoBC,IAApBD,EAA2C;A;YC0Vb,YAAJ,+BDzVD,ICyVC,C;YDzV7BE,aAAiB,eAAgB,SAAhB,C;QAEd,MAAH,iBAA6B,UAA7B,C;QAEA,OAAkB,YAAX,UAAW,C;MACtB,C;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/utils/SubtleCrypto.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["getSubtleCryptoInstance","isNode","root","cryptoObj"],"mappings":";;gCA6BAA,CAAAA,EACI;A;EAoC4B,OAA1B,UAAA,E;IAjCE;QAAIC,SACA,OAAO,OAAQ,KAAI,WAAY,IAC/B,OAD+B,CACvB,QAAS,IAAG,OAAH,CAAW,QAAX,CAAoB,I;IAEzC,IAAI,MAAJ,C,CAAY;A;MAER,IAAI,UAAkB,CAAP,MAAO,IAAG,UAAH,CAAc,MAAd,CAAqB,MAA3C,C,CAAmD;A,QAC/C,OAAO,UAAP,CAAkB,MAAlB,CAAyB,M;;;MAI7B,IAAI,OAAO,OAAQ,KAAI,UAAvB,C,CAAmC;A,QAC/B,OAAO,OAAO,CAAC,aAAD,CAAd,CAA8B,SAA9B,CAAwC,M;;;;;;;;IAUhD,IAAIC,OACA,OAAO,MAAO,KAAI,WAAa,GAAE,MAAF,GAC/B,OAAO,IAAO,KAAI,WAAa,GAAE,IAAF,GAC/B,EAHJ;A,IAKA,IAAIC,YAAY,IAAY,CAAP,MAAO,GAAE,IAAF,CAAO,MAAP,GAAgB,IAAhB,CAAqB,Q;IACjD,IAAI,CAAC,SAAU,IAAG,CAAC,SAAD,CAAW,MAA7B,C,CAAqC;A,MACjC,MAAM,IAAI,KAAJ,CAAU,0CAAV,C;;IAEV,OAAO,SAAP,CAAiB,M;GAEnB,E;AAAyB,C;;;;;"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/utils/SubtleCrypto.kt"],"sourcesContent":["package cash.atto.commons.utils\n\nimport org.khronos.webgl.ArrayBuffer\nimport org.khronos.webgl.Uint8Array\nimport kotlin.js.Promise\n\nexternal interface SubtleCrypto {\n fun importKey(\n format: String,\n keyData: Uint8Array,\n algorithm: dynamic,\n extractable: Boolean,\n keyUsages: Array<String>,\n ): Promise<CryptoKey>\n\n fun deriveBits(\n algorithm: dynamic,\n baseKey: CryptoKey,\n length: Int,\n ): Promise<ArrayBuffer>\n\n fun sign(\n algorithm: dynamic,\n key: CryptoKey,\n data: Uint8Array,\n ): Promise<ArrayBuffer>\n}\n\n@Suppress(\"UNCHECKED_CAST_TO_EXTERNAL_INTERFACE\")\nfun getSubtleCryptoInstance(): SubtleCrypto =\n js(\n \"\"\"\n // \u2500\u2500 Are we running under Node? \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n var isNode =\n typeof process !== \"undefined\" &&\n process.versions && process.versions.node;\n\n if (isNode) {\n // Node \u226520 already exposes a global WebCrypto.\n if (globalThis.crypto && globalThis.crypto.subtle) {\n return globalThis.crypto.subtle;\n }\n\n // Older Node in Common-JS mode: use plain require.\n if (typeof require === \"function\") {\n return require(\"node:crypto\").webcrypto.subtle;\n }\n\n /* Older Node in ES-module mode: no reliable *sync* way to\n reach `createRequire` without `module`. Simply fall back\n to browser path \u2013 most test runners (vitest, jest-js-dom,\n karma) inject a `window.crypto.subtle` shim anyway. */\n }\n\n // \u2500\u2500 Browser / worker fallback \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n var root =\n typeof window !== \"undefined\" ? window :\n typeof self !== \"undefined\" ? self :\n {}; // very old JS engines\n\n var cryptoObj = root.crypto ? root.crypto : root.msCrypto;\n if (!cryptoObj || !cryptoObj.subtle) {\n throw new Error(\"WebCrypto SubtleCrypto API not available\");\n }\n return cryptoObj.subtle;\n \"\"\",\n ).unsafeCast<SubtleCrypto>()\n\nexternal interface CryptoKey\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["getSubtleCryptoInstance","isNode","root","cryptoObj"],"mappings":";;gCA6BAA,CAAAA,EACI;A;EAoC4B,OAA1B,UAAA,E;IAjCE;QAAIC,SACA,OAAO,OAAQ,KAAI,WAAY,IAC/B,OAD+B,CACvB,QAAS,IAAG,OAAH,CAAW,QAAX,CAAoB,I;IAEzC,IAAI,MAAJ,C,CAAY;A;MAER,IAAI,UAAkB,CAAP,MAAO,IAAG,UAAH,CAAc,MAAd,CAAqB,MAA3C,C,CAAmD;A,QAC/C,OAAO,UAAP,CAAkB,MAAlB,CAAyB,M;;;MAI7B,IAAI,OAAO,OAAQ,KAAI,UAAvB,C,CAAmC;A,QAC/B,OAAO,OAAO,CAAC,aAAD,CAAd,CAA8B,SAA9B,CAAwC,M;;;;;;;;IAUhD,IAAIC,OACA,OAAO,MAAO,KAAI,WAAa,GAAE,MAAF,GAC/B,OAAO,IAAO,KAAI,WAAa,GAAE,IAAF,GAC/B,EAHJ;A,IAKA,IAAIC,YAAY,IAAY,CAAP,MAAO,GAAE,IAAF,CAAO,MAAP,GAAgB,IAAhB,CAAqB,Q;IACjD,IAAI,CAAC,SAAU,IAAG,CAAC,SAAD,CAAW,MAA7B,C,CAAqC;A,MACjC,MAAM,IAAI,KAAJ,CAAU,0CAAV,C;;IAEV,OAAO,SAAP,CAAiB,M;GAEnB,E;AAAyB,C;;;;;"}
@@ -19,14 +19,13 @@ export * from './commons-commons-core/cash/atto/commons/AttoPublicKey.export.mjs
19
19
  export * from './commons-commons-core/cash/atto/commons/AttoReceivable.export.mjs';
20
20
  export * from './commons-commons-core/cash/atto/commons/AttoSeed.export.mjs';
21
21
  export * from './commons-commons-core/cash/atto/commons/AttoSignature.export.mjs';
22
- export * from './commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs';
22
+ export * from './commons-commons-core/cash/atto/commons/AttoSigner.export.mjs';
23
23
  export * from './commons-commons-core/cash/atto/commons/AttoTransaction.export.mjs';
24
24
  export * from './commons-commons-core/cash/atto/commons/AttoVersion.export.mjs';
25
25
  export * from './commons-commons-core/cash/atto/commons/AttoVote.export.mjs';
26
26
  export * from './commons-commons-core/cash/atto/commons/AttoWork.export.mjs';
27
27
  export * from './commons-commons-core/cash/atto/commons/Extensions.export.mjs';
28
28
  export * from './commons-commons-core/cash/atto/commons/AccountUpdate.js.export.mjs';
29
- export * from './commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs';
30
29
  export * from './commons-commons-core/cash/atto/commons/AttoPublicKey.js.export.mjs';
31
30
  export * from './commons-commons-core/cash/atto/commons/AttoSeed.js.export.mjs';
32
31
  //endregion
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare class AttoNodeClientAsync /* implements AutoCloseable */ {
4
+ private constructor();
5
+ get client(): any/* AttoNodeClient */;
6
+ accountByPublicKey(publicKey: AttoPublicKey): Promise<Nullable<AttoAccount>>;
7
+ accountByAddresses(addresses: Array<AttoAddress>): Promise<Array<AttoAccount>>;
8
+ onAccountByPublicKey(publicKey: AttoPublicKey, onAccount: (p0: AttoAccount) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
9
+ onAccountByAddresses(addresses: Array<AttoAddress>, onAccount: (p0: AttoAccount) => void, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
10
+ onReceivableByPublicKey(publicKey: AttoPublicKey, minAmount: AttoAmount | undefined, onReceivable: (p0: AttoReceivable) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
11
+ onReceivableByAddresses(addresses: Array<AttoAddress>, minAmount: AttoAmount | undefined, onReceivable: (p0: AttoReceivable) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
12
+ accountEntry(hash: AttoHash): Promise<AttoAccountEntry>;
13
+ onAccountEntryByPublicKey(publicKey: AttoPublicKey, fromHeight: AttoHeight | undefined, toHeight: Nullable<AttoHeight> | undefined, onAccountEntry: (p0: AttoAccountEntry) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
14
+ onAccountEntryByHeightSearch(heightSearch: HeightSearch, onAccountEntry: (p0: AttoAccountEntry) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
15
+ transaction(hash: AttoHash): Promise<AttoTransaction>;
16
+ onTransactionByPublicKey(publicKey: AttoPublicKey, fromHeight: AttoHeight | undefined, toHeight: Nullable<AttoHeight> | undefined, onTransaction: (p0: AttoTransaction) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
17
+ onTransactionByHeightSearch(heightSearch: HeightSearch, onTransaction: (p0: AttoTransaction) => any, onCancel: (p0: Nullable<Error>/* Nullable<Exception> */) => any): any/* AttoJob */;
18
+ now(): Promise<AttoInstant>;
19
+ publish(transaction: AttoTransaction): Promise<void>;
20
+ }
21
+ export declare namespace AttoNodeClientAsync {
22
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
23
+ namespace $metadata$ {
24
+ const constructor: abstract new () => AttoNodeClientAsync;
25
+ }
26
+ }
@@ -1,4 +1,4 @@
1
- import { AttoNodeClientAsync3nlt3uriuqtu9 as AttoNodeClientAsync } from './AttoNodeClientAsync.mjs';
1
+ import { AttoNodeClientAsync3nlt3uriuqtu9 as AttoNodeClientAsync } from './AttoNodeClientAsync.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=AttoNodeClientAsync.export.mjs.map
13
+ //# sourceMappingURL=AttoNodeClientAsync.web.export.mjs.map