@attocash/commons-js 5.0.0 → 5.1.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 (282) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
  3. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
  4. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
  5. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
  6. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
  7. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
  8. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
  9. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
  10. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
  11. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
  12. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
  13. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  14. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
  15. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
  16. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  17. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
  18. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
  19. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
  20. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
  21. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
  22. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
  23. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
  24. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
  25. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
  26. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
  27. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
  28. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
  29. package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
  30. package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
  31. package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
  32. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  33. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  34. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
  35. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
  36. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
  37. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
  38. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  39. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  40. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  41. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  42. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  43. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  44. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  45. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  46. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  47. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  48. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  49. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  50. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  51. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  52. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  53. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  54. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  55. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  56. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  57. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  58. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  59. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  69. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  70. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  71. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  72. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  73. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  74. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  75. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  76. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  77. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  78. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  79. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  80. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  81. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  84. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  85. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  86. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  87. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  88. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  89. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  90. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  91. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  92. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  93. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  94. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  95. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  96. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  97. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  98. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  99. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  100. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  101. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  102. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  103. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  104. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  105. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  106. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  107. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  108. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  109. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  110. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  111. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  112. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  113. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  114. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  115. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  116. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  117. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  118. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  119. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  120. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  121. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  122. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  123. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  124. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  125. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  126. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  127. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  128. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  129. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  130. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  131. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  132. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  133. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  134. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  135. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  136. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  137. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  138. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  139. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  140. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  141. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  142. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  143. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  144. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  145. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  146. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  147. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  148. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  149. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  150. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  151. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  152. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  153. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  154. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  155. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  156. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  157. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  158. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  159. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  160. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  161. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  162. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  163. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  164. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  165. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  166. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  167. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  168. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  169. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  170. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  171. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  172. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  173. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  174. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  175. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  176. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  177. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  178. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  179. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  180. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  181. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  182. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  183. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  184. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  185. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  186. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  187. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  188. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  189. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  190. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  191. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  192. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  193. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  194. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  195. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  196. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  197. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  198. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  199. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  200. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  201. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  202. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  203. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  204. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  205. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  206. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  207. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  208. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  209. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  210. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  211. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  212. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  213. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  214. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  215. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  216. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  217. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  218. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  219. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  220. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  221. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  222. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  223. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  224. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  225. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  226. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  227. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  228. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  229. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  230. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  231. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  232. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  233. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  234. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  235. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  236. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  237. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
  238. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  239. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  240. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  241. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  242. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  243. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  244. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  245. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  246. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  247. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  248. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  249. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  250. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  251. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  252. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  253. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  254. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  255. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  256. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  257. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  258. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  259. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  260. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  261. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  262. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  263. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  264. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  265. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  266. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  267. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  268. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  269. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  270. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  271. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  272. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  273. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  274. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  275. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  276. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  277. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  278. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  279. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  280. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  281. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  282. package/package.json +1 -1
@@ -30,8 +30,8 @@ function NodeDispatcher() {
30
30
  super();
31
31
  NodeDispatcher_instance = this;
32
32
  }
33
- g2o() {
34
- process.nextTick(this.n2o_1.l2o_1);
33
+ u2o() {
34
+ process.nextTick(this.b2p_1.z2o_1);
35
35
  }
36
36
  }
37
37
  initMetadataForObject($, 'NodeDispatcher', VOID, VOID, VOID, [1]);
@@ -47,7 +47,7 @@ function NodeDispatcher_getInstance() {
47
47
  }
48
48
  function ScheduledMessageQueue$processQueue$lambda(this$0) {
49
49
  return function () {
50
- this$0.r2o();
50
+ this$0.f2p();
51
51
  return Unit_instance;
52
52
  };
53
53
  }
@@ -57,18 +57,18 @@ function ScheduledMessageQueue() {
57
57
  class $ extends MessageQueue() {
58
58
  constructor(dispatcher) {
59
59
  super();
60
- this.k2o_1 = dispatcher;
60
+ this.y2o_1 = dispatcher;
61
61
  var tmp = this;
62
- tmp.l2o_1 = ScheduledMessageQueue$processQueue$lambda(this);
62
+ tmp.z2o_1 = ScheduledMessageQueue$processQueue$lambda(this);
63
63
  }
64
- s2o() {
65
- this.k2o_1.g2o();
64
+ g2p() {
65
+ this.y2o_1.u2o();
66
66
  }
67
- t2o() {
68
- setTimeout(this.l2o_1, 0);
67
+ h2p() {
68
+ setTimeout(this.z2o_1, 0);
69
69
  }
70
- u2o(timeout) {
71
- setTimeout(this.l2o_1, timeout);
70
+ i2p(timeout) {
71
+ setTimeout(this.z2o_1, timeout);
72
72
  }
73
73
  }
74
74
  initMetadataForClass($, 'ScheduledMessageQueue');
@@ -82,9 +82,9 @@ function w3cSetTimeout(handler, timeout) {
82
82
  function WindowMessageQueue$lambda(this$0) {
83
83
  return function (event) {
84
84
  var tmp;
85
- if (event.source == this$0.g2p_1 && event.data == this$0.h2p_1) {
85
+ if (event.source == this$0.u2p_1 && event.data == this$0.v2p_1) {
86
86
  event.stopPropagation();
87
- this$0.r2o();
87
+ this$0.f2p();
88
88
  tmp = Unit_instance;
89
89
  }
90
90
  return Unit_instance;
@@ -92,7 +92,7 @@ function WindowMessageQueue$lambda(this$0) {
92
92
  }
93
93
  function WindowMessageQueue$schedule$lambda(this$0) {
94
94
  return function (it) {
95
- this$0.r2o();
95
+ this$0.f2p();
96
96
  return Unit_instance;
97
97
  };
98
98
  }
@@ -102,16 +102,16 @@ function WindowMessageQueue() {
102
102
  class $ extends MessageQueue() {
103
103
  constructor(window_0) {
104
104
  super();
105
- this.g2p_1 = window_0;
106
- this.h2p_1 = 'dispatchCoroutine';
107
- this.g2p_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
105
+ this.u2p_1 = window_0;
106
+ this.v2p_1 = 'dispatchCoroutine';
107
+ this.u2p_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
108
108
  }
109
- s2o() {
109
+ g2p() {
110
110
  var tmp = Promise.resolve(Unit_instance);
111
111
  tmp.then(WindowMessageQueue$schedule$lambda(this));
112
112
  }
113
- t2o() {
114
- this.g2p_1.postMessage(this.h2p_1, '*');
113
+ h2p() {
114
+ this.u2p_1.postMessage(this.v2p_1, '*');
115
115
  }
116
116
  }
117
117
  initMetadataForClass($, 'WindowMessageQueue');
@@ -140,8 +140,8 @@ function SetTimeoutDispatcher() {
140
140
  super();
141
141
  SetTimeoutDispatcher_instance = this;
142
142
  }
143
- g2o() {
144
- this.n2o_1.u2o(0);
143
+ u2o() {
144
+ this.b2p_1.i2p(0);
145
145
  }
146
146
  }
147
147
  initMetadataForObject($, 'SetTimeoutDispatcher', VOID, VOID, VOID, [1]);
@@ -174,10 +174,10 @@ function SetTimeoutBasedDispatcher() {
174
174
  class $ extends CoroutineDispatcher() {
175
175
  constructor() {
176
176
  super();
177
- this.n2o_1 = new (ScheduledMessageQueue())(this);
177
+ this.b2p_1 = new (ScheduledMessageQueue())(this);
178
178
  }
179
179
  g25(context, block) {
180
- this.n2o_1.v2o(block);
180
+ this.b2p_1.j2p(block);
181
181
  }
182
182
  q25(timeMillis, block, context) {
183
183
  var handle = w3cSetTimeout(SetTimeoutBasedDispatcher$invokeOnTimeout$lambda(block), delayToInt(timeMillis));
@@ -198,21 +198,21 @@ function MessageQueue() {
198
198
  if (MessageQueueClass === VOID) {
199
199
  class $ {
200
200
  constructor() {
201
- this.o2o_1 = ArrayDeque().gk();
202
- this.p2o_1 = 16;
203
- this.q2o_1 = false;
204
- }
205
- v2o(element) {
206
- this.w2o(element);
207
- if (!this.q2o_1) {
208
- this.q2o_1 = true;
209
- this.s2o();
201
+ this.c2p_1 = ArrayDeque().gk();
202
+ this.d2p_1 = 16;
203
+ this.e2p_1 = false;
204
+ }
205
+ j2p(element) {
206
+ this.k2p(element);
207
+ if (!this.e2p_1) {
208
+ this.e2p_1 = true;
209
+ this.g2p();
210
210
  }
211
211
  }
212
- r2o() {
212
+ f2p() {
213
213
  try {
214
214
  // Inline function 'kotlin.repeat' call
215
- var times = this.p2o_1;
215
+ var times = this.d2p_1;
216
216
  var inductionVariable = 0;
217
217
  if (inductionVariable < times)
218
218
  do {
@@ -231,81 +231,81 @@ function MessageQueue() {
231
231
  while (inductionVariable < times);
232
232
  }finally {
233
233
  if (this.j()) {
234
- this.q2o_1 = false;
234
+ this.e2p_1 = false;
235
235
  } else {
236
- this.t2o();
236
+ this.h2p();
237
237
  }
238
238
  }
239
239
  }
240
- w2o(element) {
241
- return this.o2o_1.m(element);
240
+ k2p(element) {
241
+ return this.c2p_1.m(element);
242
242
  }
243
243
  m(element) {
244
- return this.w2o((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
244
+ return this.k2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
245
245
  }
246
- x2o(index, element) {
247
- this.o2o_1.b3(index, element);
246
+ l2p(index, element) {
247
+ this.c2p_1.b3(index, element);
248
248
  }
249
249
  b3(index, element) {
250
- return this.x2o(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
250
+ return this.l2p(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
251
251
  }
252
- y2o(elements) {
253
- return this.o2o_1.k1(elements);
252
+ m2p(elements) {
253
+ return this.c2p_1.k1(elements);
254
254
  }
255
255
  k1(elements) {
256
- return this.y2o(elements);
256
+ return this.m2p(elements);
257
257
  }
258
258
  z2() {
259
- this.o2o_1.z2();
259
+ this.c2p_1.z2();
260
260
  }
261
- z2o(index, element) {
262
- return this.o2o_1.a3(index, element);
261
+ n2p(index, element) {
262
+ return this.c2p_1.a3(index, element);
263
263
  }
264
264
  a3(index, element) {
265
- return this.z2o(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
265
+ return this.n2p(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
266
266
  }
267
267
  c3(index) {
268
- return this.o2o_1.c3(index);
268
+ return this.c2p_1.c3(index);
269
269
  }
270
270
  n1(index) {
271
- return this.o2o_1.n1(index);
271
+ return this.c2p_1.n1(index);
272
272
  }
273
273
  t2(fromIndex, toIndex) {
274
- return this.o2o_1.t2(fromIndex, toIndex);
274
+ return this.c2p_1.t2(fromIndex, toIndex);
275
275
  }
276
276
  j() {
277
- return this.o2o_1.j();
277
+ return this.c2p_1.j();
278
278
  }
279
- a2p(element) {
280
- return this.o2o_1.q2(element);
279
+ o2p(element) {
280
+ return this.c2p_1.q2(element);
281
281
  }
282
282
  q2(element) {
283
283
  if (!(!(element == null) ? isInterface(element, Runnable()) : false))
284
284
  return false;
285
- return this.a2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
285
+ return this.o2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
286
286
  }
287
287
  d1() {
288
- return this.o2o_1.d1();
288
+ return this.c2p_1.d1();
289
289
  }
290
- b2p(elements) {
291
- return this.o2o_1.r2(elements);
290
+ p2p(elements) {
291
+ return this.c2p_1.r2(elements);
292
292
  }
293
293
  r2(elements) {
294
- return this.b2p(elements);
294
+ return this.p2p(elements);
295
295
  }
296
296
  j1(index) {
297
- return this.o2o_1.j1(index);
297
+ return this.c2p_1.j1(index);
298
298
  }
299
- c2p(element) {
300
- return this.o2o_1.s2(element);
299
+ q2p(element) {
300
+ return this.c2p_1.s2(element);
301
301
  }
302
302
  s2(element) {
303
303
  if (!(!(element == null) ? isInterface(element, Runnable()) : false))
304
304
  return -1;
305
- return this.c2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
305
+ return this.q2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
306
306
  }
307
307
  i1() {
308
- return this.o2o_1.dk_1;
308
+ return this.c2p_1.dk_1;
309
309
  }
310
310
  }
311
311
  initMetadataForClass($, 'MessageQueue', VOID, VOID, [KtMutableList()]);
@@ -320,11 +320,11 @@ function WindowClearTimeout() {
320
320
  constructor($outer, handle, $box) {
321
321
  if ($box === VOID)
322
322
  $box = {};
323
- $box.p2p_1 = $outer;
323
+ $box.d2q_1 = $outer;
324
324
  super(handle, $box);
325
325
  }
326
326
  u21() {
327
- w3cClearTimeout(this.p2p_1.r2p_1, this.t2p_1);
327
+ w3cClearTimeout(this.d2q_1.f2q_1, this.h2q_1);
328
328
  }
329
329
  }
330
330
  initMetadataForClass($, 'WindowClearTimeout');
@@ -353,18 +353,18 @@ function WindowDispatcher() {
353
353
  class $ extends CoroutineDispatcher() {
354
354
  constructor(window_0) {
355
355
  super();
356
- this.r2p_1 = window_0;
357
- this.s2p_1 = new (WindowMessageQueue())(this.r2p_1);
356
+ this.f2q_1 = window_0;
357
+ this.g2q_1 = new (WindowMessageQueue())(this.f2q_1);
358
358
  }
359
359
  g25(context, block) {
360
- return this.s2p_1.v2o(block);
360
+ return this.g2q_1.j2p(block);
361
361
  }
362
362
  p25(timeMillis, continuation) {
363
- var handle = w3cSetTimeout_0(this.r2p_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
363
+ var handle = w3cSetTimeout_0(this.f2q_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
364
364
  invokeOnCancellation(continuation, new (WindowClearTimeout())(this, handle));
365
365
  }
366
366
  q25(timeMillis, block, context) {
367
- var handle = w3cSetTimeout_0(this.r2p_1, Runnable$run$ref(block), delayToInt(timeMillis));
367
+ var handle = w3cSetTimeout_0(this.f2q_1, Runnable$run$ref(block), delayToInt(timeMillis));
368
368
  return new (WindowClearTimeout())(this, handle);
369
369
  }
370
370
  }
@@ -382,16 +382,16 @@ function ClearTimeout() {
382
382
  class $ {
383
383
  constructor(handle, $box) {
384
384
  boxApply(this, $box);
385
- this.t2p_1 = handle;
385
+ this.h2q_1 = handle;
386
386
  }
387
387
  u21() {
388
- w3cClearTimeout_0(this.t2p_1);
388
+ w3cClearTimeout_0(this.h2q_1);
389
389
  }
390
390
  t21(cause) {
391
391
  this.u21();
392
392
  }
393
393
  toString() {
394
- return 'ClearTimeout[' + this.t2p_1 + ']';
394
+ return 'ClearTimeout[' + this.h2q_1 + ']';
395
395
  }
396
396
  }
397
397
  initMetadataForClass($, 'ClearTimeout', VOID, VOID, [CancelHandler()]);
@@ -1,34 +1,65 @@
1
1
  import { Unit_instance1fbcbse1fwigr as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
2
- import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
3
- import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
4
2
  import { AbortFlowException2zdgh4w7z3hep as AbortFlowException } from './internal/FlowExceptions.mjs';
3
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
4
+ import { FlowCollector26clgpmzihvke as FlowCollector } from './FlowCollector.mjs';
5
5
  import {
6
- initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
7
6
  initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
7
+ initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
8
8
  } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
9
9
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
10
- import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
11
- import { FlowCollector26clgpmzihvke as FlowCollector } from './FlowCollector.mjs';
10
+ import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
11
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
12
+ import { get_NULL2w9d0rq01h4d4 as get_NULL } from './internal/NullSurrogate.mjs';
12
13
  import { checkOwnershipoyid8o0pxxr7 as checkOwnership } from './internal/FlowExceptions.common.mjs';
13
14
  import { ensureActive2yo7199srjlgl as ensureActive } from '../Job.mjs';
15
+ import { NoSuchElementException679xzhnp5bpj as NoSuchElementException } from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
14
16
  //region block: imports
15
17
  //endregion
16
18
  //region block: pre-declaration
17
19
  //endregion
20
+ function first(_this__u8e3s4, $completion) {
21
+ var tmp = new ($firstCOROUTINE$())(_this__u8e3s4, $completion);
22
+ tmp.cc_1 = Unit_instance;
23
+ tmp.dc_1 = null;
24
+ return tmp.ic();
25
+ }
18
26
  function firstOrNull(_this__u8e3s4, predicate, $completion) {
19
27
  var tmp = new ($firstOrNullCOROUTINE$())(_this__u8e3s4, predicate, $completion);
20
28
  tmp.cc_1 = Unit_instance;
21
29
  tmp.dc_1 = null;
22
30
  return tmp.ic();
23
31
  }
32
+ var first$$inlined$collectWhile$1Class;
33
+ function first$$inlined$collectWhile$1() {
34
+ if (first$$inlined$collectWhile$1Class === VOID) {
35
+ class $ {
36
+ constructor($result) {
37
+ this.v2m_1 = $result;
38
+ }
39
+ w2m(value, $completion) {
40
+ this.v2m_1._v = value;
41
+ if (!false) {
42
+ throw AbortFlowException().x2m(this);
43
+ }
44
+ return Unit_instance;
45
+ }
46
+ w2k(value, $completion) {
47
+ return this.w2m((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
48
+ }
49
+ }
50
+ initMetadataForClass($, VOID, VOID, VOID, [FlowCollector()], [1]);
51
+ first$$inlined$collectWhile$1Class = $;
52
+ }
53
+ return first$$inlined$collectWhile$1Class;
54
+ }
24
55
  var $emitCOROUTINE$Class;
25
56
  function $emitCOROUTINE$() {
26
57
  if ($emitCOROUTINE$Class === VOID) {
27
58
  class $ extends CoroutineImpl() {
28
59
  constructor(_this__u8e3s4, value, resultContinuation) {
29
60
  super(resultContinuation);
30
- this.q2m_1 = _this__u8e3s4;
31
- this.r2m_1 = value;
61
+ this.g2n_1 = _this__u8e3s4;
62
+ this.h2n_1 = value;
32
63
  }
33
64
  ic() {
34
65
  var suspendResult = this.cc_1;
@@ -39,10 +70,10 @@ function $emitCOROUTINE$() {
39
70
  case 0:
40
71
  this.bc_1 = 4;
41
72
  var tmp_0 = this;
42
- tmp_0.s2m_1 = this.r2m_1;
43
- this.t2m_1 = this.s2m_1;
73
+ tmp_0.i2n_1 = this.h2n_1;
74
+ this.j2n_1 = this.i2n_1;
44
75
  this.ac_1 = 1;
45
- suspendResult = this.q2m_1.v2m_1(this.t2m_1, this);
76
+ suspendResult = this.g2n_1.l2n_1(this.j2n_1, this);
46
77
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
47
78
  return suspendResult;
48
79
  }
@@ -51,21 +82,21 @@ function $emitCOROUTINE$() {
51
82
  case 1:
52
83
  if (suspendResult) {
53
84
  var tmp_1 = this;
54
- this.q2m_1.w2m_1._v = this.t2m_1;
55
- tmp_1.u2m_1 = false;
85
+ this.g2n_1.m2n_1._v = this.j2n_1;
86
+ tmp_1.k2n_1 = false;
56
87
  this.ac_1 = 2;
57
88
  continue $sm;
58
89
  } else {
59
90
  var tmp_2 = this;
60
- tmp_2.u2m_1 = true;
91
+ tmp_2.k2n_1 = true;
61
92
  this.ac_1 = 2;
62
93
  continue $sm;
63
94
  }
64
95
 
65
96
  case 2:
66
- var ARGUMENT = this.u2m_1;
97
+ var ARGUMENT = this.k2n_1;
67
98
  if (!ARGUMENT) {
68
- throw AbortFlowException().x2m(this.q2m_1);
99
+ throw AbortFlowException().x2m(this.g2n_1);
69
100
  } else {
70
101
  this.ac_1 = 3;
71
102
  continue $sm;
@@ -98,17 +129,17 @@ function firstOrNull$$inlined$collectWhile$1() {
98
129
  if (firstOrNull$$inlined$collectWhile$1Class === VOID) {
99
130
  class $ {
100
131
  constructor($predicate, $result) {
101
- this.v2m_1 = $predicate;
102
- this.w2m_1 = $result;
132
+ this.l2n_1 = $predicate;
133
+ this.m2n_1 = $result;
103
134
  }
104
- y2m(value, $completion) {
135
+ w2m(value, $completion) {
105
136
  var tmp = new ($emitCOROUTINE$())(this, value, $completion);
106
137
  tmp.cc_1 = Unit_instance;
107
138
  tmp.dc_1 = null;
108
139
  return tmp.ic();
109
140
  }
110
141
  w2k(value, $completion) {
111
- return this.y2m((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
142
+ return this.w2m((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
112
143
  }
113
144
  }
114
145
  initMetadataForClass($, VOID, VOID, VOID, [FlowCollector()], [1]);
@@ -116,14 +147,87 @@ function firstOrNull$$inlined$collectWhile$1() {
116
147
  }
117
148
  return firstOrNull$$inlined$collectWhile$1Class;
118
149
  }
150
+ var $firstCOROUTINE$Class;
151
+ function $firstCOROUTINE$() {
152
+ if ($firstCOROUTINE$Class === VOID) {
153
+ class $ extends CoroutineImpl() {
154
+ constructor(_this__u8e3s4, resultContinuation) {
155
+ super(resultContinuation);
156
+ this.c2m_1 = _this__u8e3s4;
157
+ }
158
+ ic() {
159
+ var suspendResult = this.cc_1;
160
+ $sm: do
161
+ try {
162
+ var tmp = this.ac_1;
163
+ switch (tmp) {
164
+ case 0:
165
+ this.bc_1 = 3;
166
+ this.d2m_1 = {_v: get_NULL()};
167
+ var tmp_0 = this;
168
+ tmp_0.e2m_1 = this.c2m_1;
169
+ this.f2m_1 = this.e2m_1;
170
+ var tmp_1 = this;
171
+ tmp_1.g2m_1 = new (first$$inlined$collectWhile$1())(this.d2m_1);
172
+ this.bc_1 = 2;
173
+ this.ac_1 = 1;
174
+ suspendResult = this.f2m_1.c2k(this.g2m_1, this);
175
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
176
+ return suspendResult;
177
+ }
178
+
179
+ continue $sm;
180
+ case 1:
181
+ this.bc_1 = 3;
182
+ this.ac_1 = 4;
183
+ continue $sm;
184
+ case 2:
185
+ this.bc_1 = 3;
186
+ var tmp_2 = this.dc_1;
187
+ if (tmp_2 instanceof AbortFlowException()) {
188
+ var e = this.dc_1;
189
+ checkOwnership(e, this.g2m_1);
190
+ ensureActive(this.gc());
191
+ this.ac_1 = 4;
192
+ continue $sm;
193
+ } else {
194
+ throw this.dc_1;
195
+ }
196
+
197
+ case 3:
198
+ throw this.dc_1;
199
+ case 4:
200
+ this.bc_1 = 3;
201
+ if (this.d2m_1._v === get_NULL())
202
+ throw NoSuchElementException().q('Expected at least one element');
203
+ var tmp_3 = this.d2m_1._v;
204
+ return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
205
+ }
206
+ } catch ($p) {
207
+ var e_0 = $p;
208
+ if (this.bc_1 === 3) {
209
+ throw e_0;
210
+ } else {
211
+ this.ac_1 = this.bc_1;
212
+ this.dc_1 = e_0;
213
+ }
214
+ }
215
+ while (true);
216
+ }
217
+ }
218
+ initMetadataForCoroutine($);
219
+ $firstCOROUTINE$Class = $;
220
+ }
221
+ return $firstCOROUTINE$Class;
222
+ }
119
223
  var $firstOrNullCOROUTINE$Class;
120
224
  function $firstOrNullCOROUTINE$() {
121
225
  if ($firstOrNullCOROUTINE$Class === VOID) {
122
226
  class $ extends CoroutineImpl() {
123
227
  constructor(_this__u8e3s4, predicate, resultContinuation) {
124
228
  super(resultContinuation);
125
- this.c2m_1 = _this__u8e3s4;
126
- this.d2m_1 = predicate;
229
+ this.p2m_1 = _this__u8e3s4;
230
+ this.q2m_1 = predicate;
127
231
  }
128
232
  ic() {
129
233
  var suspendResult = this.cc_1;
@@ -133,15 +237,15 @@ function $firstOrNullCOROUTINE$() {
133
237
  switch (tmp) {
134
238
  case 0:
135
239
  this.bc_1 = 4;
136
- this.e2m_1 = {_v: null};
240
+ this.r2m_1 = {_v: null};
137
241
  var tmp_0 = this;
138
- tmp_0.f2m_1 = this.c2m_1;
139
- this.g2m_1 = this.f2m_1;
242
+ tmp_0.s2m_1 = this.p2m_1;
243
+ this.t2m_1 = this.s2m_1;
140
244
  var tmp_1 = this;
141
- tmp_1.h2m_1 = new (firstOrNull$$inlined$collectWhile$1())(this.d2m_1, this.e2m_1);
245
+ tmp_1.u2m_1 = new (firstOrNull$$inlined$collectWhile$1())(this.q2m_1, this.r2m_1);
142
246
  this.bc_1 = 2;
143
247
  this.ac_1 = 1;
144
- suspendResult = this.g2m_1.c2k(this.h2m_1, this);
248
+ suspendResult = this.t2m_1.c2k(this.u2m_1, this);
145
249
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
146
250
  return suspendResult;
147
251
  }
@@ -156,7 +260,7 @@ function $firstOrNullCOROUTINE$() {
156
260
  var tmp_2 = this.dc_1;
157
261
  if (tmp_2 instanceof AbortFlowException()) {
158
262
  var e = this.dc_1;
159
- checkOwnership(e, this.h2m_1);
263
+ checkOwnership(e, this.u2m_1);
160
264
  ensureActive(this.gc());
161
265
  this.ac_1 = 3;
162
266
  continue $sm;
@@ -166,7 +270,7 @@ function $firstOrNullCOROUTINE$() {
166
270
 
167
271
  case 3:
168
272
  this.bc_1 = 4;
169
- return this.e2m_1._v;
273
+ return this.r2m_1._v;
170
274
  case 4:
171
275
  throw this.dc_1;
172
276
  }
@@ -190,6 +294,7 @@ function $firstOrNullCOROUTINE$() {
190
294
  //region block: exports
191
295
  export {
192
296
  firstOrNull as firstOrNull3jjcu7fygcopr,
297
+ first as firstvh3bah3c9r20,
193
298
  };
194
299
  //endregion
195
300
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["firstOrNull","<this>","predicate","$completion","doResume","$predicate","$result","emit","value","e"],"mappings":";;;;;;;;;;;;;;;;;oBAkIAA,CAAuBC,a,EAAoBC,S,EAA3CC,WAAAH,EAAkF;A;;;;AAWlF,C;;;;;kBAOyB,a,EACjB,K,EADiB,kB;;;;;QAAAI,CAAAA,EAAA;A;;UAAA,I;;;;;;mCAU+C,K;;;gCAzB5D,sBAAU,KAAV,O;;;;;;;;;kBACA,2BAAS,K;gCACT,K;;;;;gCAEA,I;;;;;;;gBAqBiD,c;kBAAqC,oCAEvF,KAFuF,C;;;;;;;gBAE3D,oB;;;;;;;;;;;;;;MAAA,C;;;;;;;;;;;kBA9BIC,U,EACvCC,O;;;;SAiBqBC,CACjBC,K,EADiBL,WAAAI,EACP;A;;;;MAWqB,C;UAhIdC,K,EAAxBL,W;;;;;;;;;;;;;kBAkGsB,a,EAAoB,S,EAA3C,kB;;;;;QAAAC,CAAAA,EAAA;A;;UAAA,I;;;;;gBACI,aAAiB,U;;mCACjB,K;;;gBAc+B,+DAAgB,KAAhB,OAAgB,KAAhB,C;;;gCAepB,oBAAQ,KAAR,O;;;;;;;;;;;;;;sBAERK,a;kBAES,eAAF,CAAE,OAEL,KAFK,C;kBAEmH,aAvIhI,SAuIgI,C;;;;;;;;;4BA3BxH,K,CAAA,E;;;;;;;;;;;;;;MACX,C;;;;;;;;;;;"}
1
+ {"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["first","<this>","$completion","firstOrNull","predicate","$result","emit","value","doResume","$predicate","e"],"mappings":";;;;;;;;;;;;;;;;;;;cAqFAA,CAAuBC,a,EAAvBC,WAAAF,EAA0C;A;;;;AAQ1C,C;oBAqCAG,CAAuBF,a,EAAoBG,S,EAA3CF,WAAAC,EAAkF;A;;;;AAWlF,C;;;;;kBAvDIE,O;;;SA8DqBC,CACjBC,K,EADiBL,WAAAI,EACP;A,QA7DV,gBAsEgE,K;QAAX,KArErD,KAqEqD,C,CAAmB;A,UAAkB,+BAEvF,IAFuF,C;QAErE,C;QAAU,oB;MAAA,C;UAhIdC,K,EAAxBL,W;;;;;;;;;;;;;kBAoHwB,a,EACjB,K,EADiB,kB;;;;;QAAAM,CAAAA,EAAA;A;;UAAA,I;;;;;;mCAU+C,K;;;gCAzB5D,sBAAU,KAAV,O;;;;;;;;;kBACA,2BAAS,K;gCACT,K;;;;;gCAEA,I;;;;;;;gBAqBiD,c;kBAAqC,oCAEvF,KAFuF,C;;;;;;;gBAE3D,oB;;;;;;;;;;;;;;MAAA,C;;;;;;;;;;;kBA9BIC,U,EACvCJ,O;;;;SAiBqBC,CACjBC,K,EADiBL,WAAAI,EACP;A;;;;MAWqB,C;UAhIdC,K,EAAxBL,W;;;;;;;;;;;;;kBAqDsB,a,EAAvB,kB;;;;QAAAM,CAAAA,EAAA;A;;UAAA,I;;;;;gBACI,aAAmB,gB;;mCACnB,K;;;gBA2D+B,yDAAgB,KAAhB,C;;;gCAepB,oBAAQ,KAAR,O;;;;;;;;;;;;;;sBAERE,a;kBAES,eAAF,CAAE,OAEL,KAFK,C;kBAEmH,aAvIhI,SAuIgI,C;;;;;;;;;;;gBA5E3H,sBAAW,UAAX,C;kBAAiB,iCAA6B,+BAA7B,C;iCACd,K,CAAA,E;mEAAA,K;;;;;;;;;;;;MACX,C;;;;;;;;;;;kBAqCuB,a,EAAoB,S,EAA3C,kB;;;;;QAAAF,CAAAA,EAAA;A;;UAAA,I;;;;;gBACI,aAAiB,U;;mCACjB,K;;;gBAc+B,+DAAgB,KAAhB,OAAgB,KAAhB,C;;;gCAepB,oBAAQ,KAAR,O;;;;;;;;;;;;;;sBAERE,a;kBAES,eAAF,CAAE,OAEL,KAFK,C;kBAEmH,aAvIhI,SAuIgI,C;;;;;;;;;4BA3BxH,K,CAAA,E;;;;;;;;;;;;;;MACX,C;;;;;;;;;;;"}
@@ -0,0 +1,28 @@
1
+ import { Symbol17xuwzgi5g8ve as Symbol } from '../../internal/Symbol.mjs';
2
+ //region block: imports
3
+ //endregion
4
+ //region block: pre-declaration
5
+ //endregion
6
+ function get_NULL() {
7
+ _init_properties_NullSurrogate_kt__n2yti9();
8
+ return NULL;
9
+ }
10
+ var NULL;
11
+ var UNINITIALIZED;
12
+ var DONE;
13
+ var properties_initialized_NullSurrogate_kt_39v8bl;
14
+ function _init_properties_NullSurrogate_kt__n2yti9() {
15
+ if (!properties_initialized_NullSurrogate_kt_39v8bl) {
16
+ properties_initialized_NullSurrogate_kt_39v8bl = true;
17
+ NULL = new (Symbol())('NULL');
18
+ UNINITIALIZED = new (Symbol())('UNINITIALIZED');
19
+ DONE = new (Symbol())('DONE');
20
+ }
21
+ }
22
+ //region block: exports
23
+ export {
24
+ get_NULL as get_NULL2w9d0rq01h4d4,
25
+ };
26
+ //endregion
27
+
28
+ //# sourceMappingURL=NullSurrogate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/internal/NullSurrogate.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-NULL>","<init properties NullSurrogate.kt>"],"mappings":";;;;;iBAUAA,CAAAA,EAAA;A;EAAA,W;AACgB,C;;;;;kDAXhBC,CAAAA,E;;;0BAW2B,M;mCAOS,e;0BAOT,M;;C;;;;;"}
@@ -34,7 +34,7 @@ function handleUncaughtCoroutineException(context, exception) {
34
34
  }
35
35
  }
36
36
  try {
37
- addSuppressed(exception, DiagnosticCoroutineContextException().c2n(context));
37
+ addSuppressed(exception, DiagnosticCoroutineContextException().q2n(context));
38
38
  } catch ($p) {
39
39
  if ($p instanceof Error) {
40
40
  var e = $p;
@@ -26,9 +26,9 @@ var DiagnosticCoroutineContextExceptionClass;
26
26
  function DiagnosticCoroutineContextException() {
27
27
  if (DiagnosticCoroutineContextExceptionClass === VOID) {
28
28
  class $ extends RuntimeException() {
29
- static c2n(context) {
29
+ static q2n(context) {
30
30
  var $this = this.ha(toString(context));
31
- captureStack($this, $this.b2n_1);
31
+ captureStack($this, $this.p2n_1);
32
32
  return $this;
33
33
  }
34
34
  }