@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
@@ -83,7 +83,7 @@ function FlushRequest() {
83
83
  if (FlushRequestClass === VOID) {
84
84
  class $ {
85
85
  d25() {
86
- return this.c4p_1.d25();
86
+ return this.q4p_1.d25();
87
87
  }
88
88
  }
89
89
  initMetadataForClass($, 'FlushRequest', VOID, VOID, VOID, [0]);
@@ -98,17 +98,17 @@ function RawWebSocketCommon$writerJob$slambda() {
98
98
  constructor(this$0, resultContinuation, $box) {
99
99
  if ($box === VOID)
100
100
  $box = {};
101
- $box.l4p_1 = this$0;
101
+ $box.z4p_1 = this$0;
102
102
  super(resultContinuation, $box);
103
103
  }
104
- l37($this$launch, $completion) {
105
- var tmp = this.p35($this$launch, $completion);
104
+ z37($this$launch, $completion) {
105
+ var tmp = this.d36($this$launch, $completion);
106
106
  tmp.cc_1 = Unit_instance;
107
107
  tmp.dc_1 = null;
108
108
  return tmp.ic();
109
109
  }
110
110
  kd(p1, $completion) {
111
- return this.l37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
111
+ return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
112
112
  }
113
113
  ic() {
114
114
  var suspendResult = this.cc_1;
@@ -132,45 +132,45 @@ function RawWebSocketCommon$writerJob$slambda() {
132
132
  }
133
133
 
134
134
  this.ac_1 = 3;
135
- suspendResult = this.l4p_1.a4q_1.i2i(this);
135
+ suspendResult = this.z4p_1.o4q_1.i2i(this);
136
136
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
137
137
  return suspendResult;
138
138
  }
139
139
 
140
140
  continue $sm;
141
141
  case 3:
142
- this.o4p_1 = suspendResult;
143
- var tmp_0 = this.o4p_1;
142
+ this.c4q_1 = suspendResult;
143
+ var tmp_0 = this.c4q_1;
144
144
  if (tmp_0 instanceof Frame()) {
145
145
  this.ac_1 = 4;
146
- suspendResult = writeFrame(this.l4p_1.v4p_1, this.o4p_1, this.l4p_1.x4p_1, this);
146
+ suspendResult = writeFrame(this.z4p_1.j4q_1, this.c4q_1, this.z4p_1.l4q_1, this);
147
147
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
148
148
  return suspendResult;
149
149
  }
150
150
  continue $sm;
151
151
  } else {
152
- var tmp_1 = this.o4p_1;
152
+ var tmp_1 = this.c4q_1;
153
153
  if (tmp_1 instanceof FlushRequest()) {
154
154
  var tmp_2 = this;
155
- tmp_2.p4p_1 = this.o4p_1.d25();
155
+ tmp_2.d4q_1 = this.c4q_1.d25();
156
156
  this.ac_1 = 7;
157
157
  continue $sm;
158
158
  } else {
159
159
  var tmp_3 = this;
160
- throw IllegalArgumentException().u('unknown message ' + toString(this.o4p_1));
160
+ throw IllegalArgumentException().u('unknown message ' + toString(this.c4q_1));
161
161
  }
162
162
  }
163
163
 
164
164
  case 4:
165
165
  this.ac_1 = 5;
166
- suspendResult = this.l4p_1.v4p_1.l3a(this);
166
+ suspendResult = this.z4p_1.j4q_1.z3a(this);
167
167
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
168
168
  return suspendResult;
169
169
  }
170
170
 
171
171
  continue $sm;
172
172
  case 5:
173
- var tmp_4 = this.o4p_1;
173
+ var tmp_4 = this.c4q_1;
174
174
  if (tmp_4 instanceof Close()) {
175
175
  this.ac_1 = 8;
176
176
  continue $sm;
@@ -180,14 +180,14 @@ function RawWebSocketCommon$writerJob$slambda() {
180
180
  }
181
181
 
182
182
  case 6:
183
- this.p4p_1 = Unit_instance;
183
+ this.d4q_1 = Unit_instance;
184
184
  this.ac_1 = 7;
185
185
  continue $sm;
186
186
  case 7:
187
187
  this.ac_1 = 2;
188
188
  continue $sm;
189
189
  case 8:
190
- this.n4p_1 = this.l4p_1.a4q_1.s2i();
190
+ this.b4q_1 = this.z4p_1.o4q_1.s2i();
191
191
  this.bc_1 = 14;
192
192
  this.ac_1 = 12;
193
193
  continue $sm;
@@ -195,18 +195,18 @@ function RawWebSocketCommon$writerJob$slambda() {
195
195
  this.bc_1 = 10;
196
196
  var tmp_5 = this.dc_1;
197
197
  if (tmp_5 instanceof ChannelWriteException()) {
198
- this.q4p_1 = this.dc_1;
198
+ this.e4q_1 = this.dc_1;
199
199
  var tmp_6 = this;
200
- tmp_6.n4p_1 = this.l4p_1.a4q_1.q2i(CancellationException().dd('Failed to write to WebSocket.', this.q4p_1));
200
+ tmp_6.b4q_1 = this.z4p_1.o4q_1.q2i(CancellationException().dd('Failed to write to WebSocket.', this.e4q_1));
201
201
  this.bc_1 = 14;
202
202
  this.ac_1 = 12;
203
203
  continue $sm;
204
204
  } else {
205
205
  var tmp_7 = this.dc_1;
206
206
  if (tmp_7 instanceof Error) {
207
- this.r4p_1 = this.dc_1;
207
+ this.f4q_1 = this.dc_1;
208
208
  var tmp_8 = this;
209
- tmp_8.n4p_1 = this.l4p_1.a4q_1.q2i(this.r4p_1);
209
+ tmp_8.b4q_1 = this.z4p_1.o4q_1.q2i(this.f4q_1);
210
210
  this.bc_1 = 14;
211
211
  this.ac_1 = 12;
212
212
  continue $sm;
@@ -217,23 +217,23 @@ function RawWebSocketCommon$writerJob$slambda() {
217
217
 
218
218
  case 10:
219
219
  this.bc_1 = 14;
220
- this.s4p_1 = this.dc_1;
221
- this.l4p_1.a4q_1.q2i(CancellationException().dd('WebSocket closed.', null));
220
+ this.g4q_1 = this.dc_1;
221
+ this.z4p_1.o4q_1.q2i(CancellationException().dd('WebSocket closed.', null));
222
222
  this.ac_1 = 11;
223
- suspendResult = this.l4p_1.v4p_1.w3a(this);
223
+ suspendResult = this.z4p_1.j4q_1.k3b(this);
224
224
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
225
225
  return suspendResult;
226
226
  }
227
227
 
228
228
  continue $sm;
229
229
  case 11:
230
- throw this.s4p_1;
230
+ throw this.g4q_1;
231
231
  case 12:
232
- this.t4p_1 = this.n4p_1;
232
+ this.h4q_1 = this.b4q_1;
233
233
  this.bc_1 = 14;
234
- this.l4p_1.a4q_1.q2i(CancellationException().dd('WebSocket closed.', null));
234
+ this.z4p_1.o4q_1.q2i(CancellationException().dd('WebSocket closed.', null));
235
235
  this.ac_1 = 13;
236
- suspendResult = this.l4p_1.v4p_1.w3a(this);
236
+ suspendResult = this.z4p_1.j4q_1.k3b(this);
237
237
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
238
238
  return suspendResult;
239
239
  }
@@ -241,7 +241,7 @@ function RawWebSocketCommon$writerJob$slambda() {
241
241
  continue $sm;
242
242
  case 13:
243
243
  $l$loop: while (true) {
244
- var tmp0_elvis_lhs = ChannelResult__getOrNull_impl_f5e07h(this.l4p_1.a4q_1.j2i());
244
+ var tmp0_elvis_lhs = ChannelResult__getOrNull_impl_f5e07h(this.z4p_1.o4q_1.j2i());
245
245
  var tmp_9;
246
246
  if (tmp0_elvis_lhs == null) {
247
247
  break $l$loop;
@@ -268,9 +268,9 @@ function RawWebSocketCommon$writerJob$slambda() {
268
268
  }
269
269
  while (true);
270
270
  }
271
- p35($this$launch, completion) {
272
- var i = new (RawWebSocketCommon$writerJob$slambda())(this.l4p_1, completion);
273
- i.m4p_1 = $this$launch;
271
+ d36($this$launch, completion) {
272
+ var i = new (RawWebSocketCommon$writerJob$slambda())(this.z4p_1, completion);
273
+ i.a4q_1 = $this$launch;
274
274
  return i;
275
275
  }
276
276
  }
@@ -282,7 +282,7 @@ function RawWebSocketCommon$writerJob$slambda() {
282
282
  function RawWebSocketCommon$writerJob$slambda_0(this$0, resultContinuation) {
283
283
  var i = new (RawWebSocketCommon$writerJob$slambda())(this$0, resultContinuation);
284
284
  var l = function ($this$launch, $completion) {
285
- return i.l37($this$launch, $completion);
285
+ return i.z37($this$launch, $completion);
286
286
  };
287
287
  l.$arity = 1;
288
288
  return l;
@@ -294,17 +294,17 @@ function RawWebSocketCommon$readerJob$slambda() {
294
294
  constructor(this$0, resultContinuation, $box) {
295
295
  if ($box === VOID)
296
296
  $box = {};
297
- $box.n4q_1 = this$0;
297
+ $box.b4r_1 = this$0;
298
298
  super(resultContinuation, $box);
299
299
  }
300
- l37($this$launch, $completion) {
301
- var tmp = this.p35($this$launch, $completion);
300
+ z37($this$launch, $completion) {
301
+ var tmp = this.d36($this$launch, $completion);
302
302
  tmp.cc_1 = Unit_instance;
303
303
  tmp.dc_1 = null;
304
304
  return tmp.ic();
305
305
  }
306
306
  kd(p1, $completion) {
307
- return this.l37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
307
+ return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
308
308
  }
309
309
  ic() {
310
310
  var suspendResult = this.cc_1;
@@ -314,7 +314,7 @@ function RawWebSocketCommon$readerJob$slambda() {
314
314
  switch (tmp) {
315
315
  case 0:
316
316
  this.bc_1 = 10;
317
- this.p4q_1 = Unit_instance;
317
+ this.d4r_1 = Unit_instance;
318
318
  this.ac_1 = 1;
319
319
  continue $sm;
320
320
  case 1:
@@ -329,20 +329,20 @@ function RawWebSocketCommon$readerJob$slambda() {
329
329
  }
330
330
 
331
331
  this.ac_1 = 3;
332
- suspendResult = readFrame(this.n4q_1.u4p_1, this.n4q_1.w4p_1, this.n4q_1.b4q_1, this);
332
+ suspendResult = readFrame(this.b4r_1.i4q_1, this.b4r_1.k4q_1, this.b4r_1.p4q_1, this);
333
333
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
334
334
  return suspendResult;
335
335
  }
336
336
 
337
337
  continue $sm;
338
338
  case 3:
339
- this.q4q_1 = suspendResult;
340
- if (!this.q4q_1.u4q_1.u4o_1) {
341
- this.n4q_1.b4q_1 = this.q4q_1.t4q_1 ? 0 : this.q4q_1.u4q_1.v4o_1;
339
+ this.e4r_1 = suspendResult;
340
+ if (!this.e4r_1.i4r_1.i4p_1) {
341
+ this.b4r_1.p4q_1 = this.e4r_1.h4r_1 ? 0 : this.e4r_1.i4r_1.j4p_1;
342
342
  }
343
343
 
344
344
  this.ac_1 = 4;
345
- suspendResult = this.n4q_1.z4p_1.e2i(this.q4q_1, this);
345
+ suspendResult = this.b4r_1.n4q_1.e2i(this.e4r_1, this);
346
346
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
347
347
  return suspendResult;
348
348
  }
@@ -352,7 +352,7 @@ function RawWebSocketCommon$readerJob$slambda() {
352
352
  this.ac_1 = 2;
353
353
  continue $sm;
354
354
  case 5:
355
- this.p4q_1 = Unit_instance;
355
+ this.d4r_1 = Unit_instance;
356
356
  this.bc_1 = 10;
357
357
  this.ac_1 = 11;
358
358
  continue $sm;
@@ -360,9 +360,9 @@ function RawWebSocketCommon$readerJob$slambda() {
360
360
  this.bc_1 = 9;
361
361
  var tmp_0 = this.dc_1;
362
362
  if (tmp_0 instanceof FrameTooBigException()) {
363
- this.r4q_1 = this.dc_1;
363
+ this.f4r_1 = this.dc_1;
364
364
  this.ac_1 = 7;
365
- suspendResult = this.n4q_1.a4r().e2i(Close().i4r(CloseReason().m4o(Codes_TOO_BIG_getInstance(), this.r4q_1.fd())), this);
365
+ suspendResult = this.b4r_1.o4r().e2i(Close().w4r(CloseReason().a4p(Codes_TOO_BIG_getInstance(), this.f4r_1.fd())), this);
366
366
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
367
367
  return suspendResult;
368
368
  }
@@ -370,9 +370,9 @@ function RawWebSocketCommon$readerJob$slambda() {
370
370
  } else {
371
371
  var tmp_1 = this.dc_1;
372
372
  if (tmp_1 instanceof ProtocolViolationException()) {
373
- this.s4q_1 = this.dc_1;
373
+ this.g4r_1 = this.dc_1;
374
374
  this.ac_1 = 8;
375
- suspendResult = this.n4q_1.a4r().e2i(Close().i4r(CloseReason().m4o(Codes_PROTOCOL_ERROR_getInstance(), this.s4q_1.fd())), this);
375
+ suspendResult = this.b4r_1.o4r().e2i(Close().w4r(CloseReason().a4p(Codes_PROTOCOL_ERROR_getInstance(), this.g4r_1.fd())), this);
376
376
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
377
377
  return suspendResult;
378
378
  }
@@ -382,8 +382,8 @@ function RawWebSocketCommon$readerJob$slambda() {
382
382
  if (tmp_2 instanceof CancellationException()) {
383
383
  var cause = this.dc_1;
384
384
  var tmp_3 = this;
385
- this.n4q_1.z4p_1.c1z(cause);
386
- tmp_3.p4q_1 = Unit_instance;
385
+ this.b4r_1.n4q_1.c1z(cause);
386
+ tmp_3.d4r_1 = Unit_instance;
387
387
  this.bc_1 = 10;
388
388
  this.ac_1 = 11;
389
389
  continue $sm;
@@ -392,7 +392,7 @@ function RawWebSocketCommon$readerJob$slambda() {
392
392
  if (tmp_4 instanceof EOFException()) {
393
393
  var eof = this.dc_1;
394
394
  var tmp_5 = this;
395
- tmp_5.p4q_1 = Unit_instance;
395
+ tmp_5.d4r_1 = Unit_instance;
396
396
  this.bc_1 = 10;
397
397
  this.ac_1 = 11;
398
398
  continue $sm;
@@ -401,7 +401,7 @@ function RawWebSocketCommon$readerJob$slambda() {
401
401
  if (tmp_6 instanceof ClosedReceiveChannelException()) {
402
402
  var eof_0 = this.dc_1;
403
403
  var tmp_7 = this;
404
- tmp_7.p4q_1 = Unit_instance;
404
+ tmp_7.d4r_1 = Unit_instance;
405
405
  this.bc_1 = 10;
406
406
  this.ac_1 = 11;
407
407
  continue $sm;
@@ -410,7 +410,7 @@ function RawWebSocketCommon$readerJob$slambda() {
410
410
  if (tmp_8 instanceof Error) {
411
411
  var cause_0 = this.dc_1;
412
412
  var tmp_9 = this;
413
- this.n4q_1.z4p_1.q2i(cause_0);
413
+ this.b4r_1.n4q_1.q2i(cause_0);
414
414
  throw cause_0;
415
415
  } else {
416
416
  throw this.dc_1;
@@ -422,26 +422,26 @@ function RawWebSocketCommon$readerJob$slambda() {
422
422
  }
423
423
 
424
424
  case 7:
425
- this.p4q_1 = this.n4q_1.z4p_1.q2i(this.r4q_1);
425
+ this.d4r_1 = this.b4r_1.n4q_1.q2i(this.f4r_1);
426
426
  this.bc_1 = 10;
427
427
  this.ac_1 = 11;
428
428
  continue $sm;
429
429
  case 8:
430
- this.p4q_1 = this.n4q_1.z4p_1.q2i(this.s4q_1);
430
+ this.d4r_1 = this.b4r_1.n4q_1.q2i(this.g4r_1);
431
431
  this.bc_1 = 10;
432
432
  this.ac_1 = 11;
433
433
  continue $sm;
434
434
  case 9:
435
435
  this.bc_1 = 10;
436
436
  var t = this.dc_1;
437
- this.n4q_1.z4p_1.s2i();
437
+ this.b4r_1.n4q_1.s2i();
438
438
  throw t;
439
439
  case 10:
440
440
  throw this.dc_1;
441
441
  case 11:
442
- this.p4q_1;
442
+ this.d4r_1;
443
443
  this.bc_1 = 10;
444
- this.n4q_1.z4p_1.s2i();
444
+ this.b4r_1.n4q_1.s2i();
445
445
  return Unit_instance;
446
446
  }
447
447
  } catch ($p) {
@@ -455,9 +455,9 @@ function RawWebSocketCommon$readerJob$slambda() {
455
455
  }
456
456
  while (true);
457
457
  }
458
- p35($this$launch, completion) {
459
- var i = new (RawWebSocketCommon$readerJob$slambda())(this.n4q_1, completion);
460
- i.o4q_1 = $this$launch;
458
+ d36($this$launch, completion) {
459
+ var i = new (RawWebSocketCommon$readerJob$slambda())(this.b4r_1, completion);
460
+ i.c4r_1 = $this$launch;
461
461
  return i;
462
462
  }
463
463
  }
@@ -469,7 +469,7 @@ function RawWebSocketCommon$readerJob$slambda() {
469
469
  function RawWebSocketCommon$readerJob$slambda_0(this$0, resultContinuation) {
470
470
  var i = new (RawWebSocketCommon$readerJob$slambda())(this$0, resultContinuation);
471
471
  var l = function ($this$launch, $completion) {
472
- return i.l37($this$launch, $completion);
472
+ return i.z37($this$launch, $completion);
473
473
  };
474
474
  l.$arity = 1;
475
475
  return l;
@@ -481,30 +481,30 @@ function RawWebSocketCommon() {
481
481
  constructor(input, output, maxFrameSize, masking, coroutineContext) {
482
482
  maxFrameSize = maxFrameSize === VOID ? new (Long())(2147483647, 0) : maxFrameSize;
483
483
  masking = masking === VOID ? false : masking;
484
- this.u4p_1 = input;
485
- this.v4p_1 = output;
486
- this.w4p_1 = maxFrameSize;
487
- this.x4p_1 = masking;
488
- this.y4p_1 = Job(coroutineContext.nc(Key_instance));
489
- this.z4p_1 = Channel(8);
490
- this.a4q_1 = Channel(8);
491
- this.b4q_1 = 0;
492
- this.c4q_1 = coroutineContext.lm(this.y4p_1).lm(new (CoroutineName())('raw-ws'));
484
+ this.i4q_1 = input;
485
+ this.j4q_1 = output;
486
+ this.k4q_1 = maxFrameSize;
487
+ this.l4q_1 = masking;
488
+ this.m4q_1 = Job(coroutineContext.nc(Key_instance));
489
+ this.n4q_1 = Channel(8);
490
+ this.o4q_1 = Channel(8);
491
+ this.p4q_1 = 0;
492
+ this.q4q_1 = coroutineContext.lm(this.m4q_1).lm(new (CoroutineName())('raw-ws'));
493
493
  var tmp = this;
494
494
  var tmp_0 = new (CoroutineName())('ws-writer');
495
495
  var tmp_1 = CoroutineStart_ATOMIC_getInstance();
496
- tmp.d4q_1 = launch(this, tmp_0, tmp_1, RawWebSocketCommon$writerJob$slambda_0(this, null));
496
+ tmp.r4q_1 = launch(this, tmp_0, tmp_1, RawWebSocketCommon$writerJob$slambda_0(this, null));
497
497
  var tmp_2 = this;
498
498
  var tmp_3 = new (CoroutineName())('ws-reader');
499
499
  var tmp_4 = CoroutineStart_ATOMIC_getInstance();
500
- tmp_2.e4q_1 = launch(this, tmp_3, tmp_4, RawWebSocketCommon$readerJob$slambda_0(this, null));
501
- this.y4p_1.d25();
500
+ tmp_2.s4q_1 = launch(this, tmp_3, tmp_4, RawWebSocketCommon$readerJob$slambda_0(this, null));
501
+ this.m4q_1.d25();
502
502
  }
503
503
  s1x() {
504
- return this.c4q_1;
504
+ return this.q4q_1;
505
505
  }
506
- a4r() {
507
- return this.a4q_1;
506
+ o4r() {
507
+ return this.o4q_1;
508
508
  }
509
509
  }
510
510
  initMetadataForClass($, 'RawWebSocketCommon', VOID, VOID, [CoroutineScope()], [0, 1]);
@@ -539,7 +539,7 @@ function mask$lambda($maskKey, $this_mask) {
539
539
  do {
540
540
  var index = inductionVariable;
541
541
  inductionVariable = inductionVariable + 1 | 0;
542
- builder.x2s(toByte($this_mask.d2r() ^ maskMemory[index % 4 | 0]));
542
+ builder.l2t(toByte($this_mask.r2r() ^ maskMemory[index % 4 | 0]));
543
543
  }
544
544
  while (inductionVariable < times);
545
545
  return builder;
@@ -551,9 +551,9 @@ function $writeFrameCOROUTINE$() {
551
551
  class $ extends CoroutineImpl() {
552
552
  constructor(_this__u8e3s4, frame, masking, resultContinuation) {
553
553
  super(resultContinuation);
554
- this.r4r_1 = _this__u8e3s4;
555
- this.s4r_1 = frame;
556
- this.t4r_1 = masking;
554
+ this.f4s_1 = _this__u8e3s4;
555
+ this.g4s_1 = frame;
556
+ this.h4s_1 = masking;
557
557
  }
558
558
  ic() {
559
559
  var suspendResult = this.cc_1;
@@ -563,43 +563,43 @@ function $writeFrameCOROUTINE$() {
563
563
  switch (tmp) {
564
564
  case 0:
565
565
  this.bc_1 = 9;
566
- this.u4r_1 = this.s4r_1.v4q_1.length;
566
+ this.i4s_1 = this.g4s_1.j4r_1.length;
567
567
  var tmp_0 = this;
568
- var tmp_1 = this.s4r_1.t4q_1 ? 1 << 7 : 0;
569
- var tmp_2 = tmp_1 | (this.s4r_1.x4q_1 ? 1 << 6 : 0);
570
- var tmp_3 = tmp_2 | (this.s4r_1.y4q_1 ? 1 << 5 : 0);
571
- tmp_0.v4r_1 = tmp_3 | (this.s4r_1.z4q_1 ? 1 << 4 : 0) | this.s4r_1.u4q_1.v4o_1;
568
+ var tmp_1 = this.g4s_1.h4r_1 ? 1 << 7 : 0;
569
+ var tmp_2 = tmp_1 | (this.g4s_1.l4r_1 ? 1 << 6 : 0);
570
+ var tmp_3 = tmp_2 | (this.g4s_1.m4r_1 ? 1 << 5 : 0);
571
+ tmp_0.j4s_1 = tmp_3 | (this.g4s_1.n4r_1 ? 1 << 4 : 0) | this.g4s_1.i4r_1.j4p_1;
572
572
  this.ac_1 = 1;
573
- suspendResult = writeByte(this.r4r_1, toByte(this.v4r_1), this);
573
+ suspendResult = writeByte(this.f4s_1, toByte(this.j4s_1), this);
574
574
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
575
575
  return suspendResult;
576
576
  }
577
577
 
578
578
  continue $sm;
579
579
  case 1:
580
- this.w4r_1 = this.u4r_1 < 126 ? this.u4r_1 : this.u4r_1 <= 65535 ? 126 : 127;
580
+ this.k4s_1 = this.i4s_1 < 126 ? this.i4s_1 : this.i4s_1 <= 65535 ? 126 : 127;
581
581
  var tmp_4 = this;
582
- tmp_4.x4r_1 = (this.t4r_1 ? 1 << 7 : 0) | this.w4r_1;
582
+ tmp_4.l4s_1 = (this.h4s_1 ? 1 << 7 : 0) | this.k4s_1;
583
583
  this.ac_1 = 2;
584
- suspendResult = writeByte(this.r4r_1, toByte(this.x4r_1), this);
584
+ suspendResult = writeByte(this.f4s_1, toByte(this.l4s_1), this);
585
585
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
586
586
  return suspendResult;
587
587
  }
588
588
 
589
589
  continue $sm;
590
590
  case 2:
591
- this.y4r_1 = this.w4r_1;
592
- if (this.y4r_1 === 126) {
591
+ this.m4s_1 = this.k4s_1;
592
+ if (this.m4s_1 === 126) {
593
593
  this.ac_1 = 4;
594
- suspendResult = writeShort(this.r4r_1, toShort(this.u4r_1), this);
594
+ suspendResult = writeShort(this.f4s_1, toShort(this.i4s_1), this);
595
595
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
596
596
  return suspendResult;
597
597
  }
598
598
  continue $sm;
599
599
  } else {
600
- if (this.y4r_1 === 127) {
600
+ if (this.m4s_1 === 127) {
601
601
  this.ac_1 = 3;
602
- suspendResult = writeLong(this.r4r_1, toLong(this.u4r_1), this);
602
+ suspendResult = writeLong(this.f4s_1, toLong(this.i4s_1), this);
603
603
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
604
604
  return suspendResult;
605
605
  }
@@ -617,19 +617,19 @@ function $writeFrameCOROUTINE$() {
617
617
  this.ac_1 = 5;
618
618
  continue $sm;
619
619
  case 5:
620
- this.z4r_1 = ByteReadPacket(this.s4r_1.v4q_1);
621
- this.a4s_1 = this.t4r_1;
622
- if (this.a4s_1 === true) {
623
- this.c4s_1 = Default_getInstance().il();
620
+ this.n4s_1 = ByteReadPacket(this.g4s_1.j4r_1);
621
+ this.o4s_1 = this.h4s_1;
622
+ if (this.o4s_1 === true) {
623
+ this.q4s_1 = Default_getInstance().il();
624
624
  this.ac_1 = 6;
625
- suspendResult = writeInt(this.r4r_1, this.c4s_1, this);
625
+ suspendResult = writeInt(this.f4s_1, this.q4s_1, this);
626
626
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
627
627
  return suspendResult;
628
628
  }
629
629
  continue $sm;
630
630
  } else {
631
- if (this.a4s_1 === false) {
632
- this.b4s_1 = this.z4r_1;
631
+ if (this.o4s_1 === false) {
632
+ this.p4s_1 = this.n4s_1;
633
633
  this.ac_1 = 7;
634
634
  continue $sm;
635
635
  } else {
@@ -640,13 +640,13 @@ function $writeFrameCOROUTINE$() {
640
640
 
641
641
  break;
642
642
  case 6:
643
- this.b4s_1 = mask(this.z4r_1, this.c4s_1);
643
+ this.p4s_1 = mask(this.n4s_1, this.q4s_1);
644
644
  this.ac_1 = 7;
645
645
  continue $sm;
646
646
  case 7:
647
- this.d4s_1 = this.b4s_1;
647
+ this.r4s_1 = this.p4s_1;
648
648
  this.ac_1 = 8;
649
- suspendResult = writePacket(this.r4r_1, this.d4s_1, this);
649
+ suspendResult = writePacket(this.f4s_1, this.r4s_1, this);
650
650
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
651
651
  return suspendResult;
652
652
  }
@@ -680,9 +680,9 @@ function $readFrameCOROUTINE$() {
680
680
  class $ extends CoroutineImpl() {
681
681
  constructor(_this__u8e3s4, maxFrameSize, lastOpcode, resultContinuation) {
682
682
  super(resultContinuation);
683
- this.m4s_1 = _this__u8e3s4;
684
- this.n4s_1 = maxFrameSize;
685
- this.o4s_1 = lastOpcode;
683
+ this.a4t_1 = _this__u8e3s4;
684
+ this.b4t_1 = maxFrameSize;
685
+ this.c4t_1 = lastOpcode;
686
686
  }
687
687
  ic() {
688
688
  var suspendResult = this.cc_1;
@@ -693,100 +693,100 @@ function $readFrameCOROUTINE$() {
693
693
  case 0:
694
694
  this.bc_1 = 9;
695
695
  this.ac_1 = 1;
696
- suspendResult = readByte(this.m4s_1, this);
696
+ suspendResult = readByte(this.a4t_1, this);
697
697
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
698
698
  return suspendResult;
699
699
  }
700
700
 
701
701
  continue $sm;
702
702
  case 1:
703
- this.p4s_1 = suspendResult;
704
- this.q4s_1 = this.p4s_1;
703
+ this.d4t_1 = suspendResult;
704
+ this.e4t_1 = this.d4t_1;
705
705
  this.ac_1 = 2;
706
- suspendResult = readByte(this.m4s_1, this);
706
+ suspendResult = readByte(this.a4t_1, this);
707
707
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
708
708
  return suspendResult;
709
709
  }
710
710
 
711
711
  continue $sm;
712
712
  case 2:
713
- this.r4s_1 = suspendResult;
714
- this.s4s_1 = this.r4s_1;
715
- this.t4s_1 = this.q4s_1 & 15;
716
- if (this.t4s_1 === 0 && this.o4s_1 === 0) {
717
- throw ProtocolViolationException().b4p("Can't continue finished frames");
713
+ this.f4t_1 = suspendResult;
714
+ this.g4t_1 = this.f4t_1;
715
+ this.h4t_1 = this.e4t_1 & 15;
716
+ if (this.h4t_1 === 0 && this.c4t_1 === 0) {
717
+ throw ProtocolViolationException().p4p("Can't continue finished frames");
718
718
  }
719
719
 
720
- this.u4s_1 = this.t4s_1 === 0 ? this.o4s_1 : this.t4s_1;
720
+ this.i4t_1 = this.h4t_1 === 0 ? this.c4t_1 : this.h4t_1;
721
721
  var tmp_0 = this;
722
- var tmp0_elvis_lhs = Companion_getInstance_0().j1(this.u4s_1);
722
+ var tmp0_elvis_lhs = Companion_getInstance_0().j1(this.i4t_1);
723
723
  var tmp_1;
724
724
  if (tmp0_elvis_lhs == null) {
725
- throw ProtocolViolationException().b4p('Unsupported opcode: ' + this.u4s_1);
725
+ throw ProtocolViolationException().p4p('Unsupported opcode: ' + this.i4t_1);
726
726
  } else {
727
727
  tmp_1 = tmp0_elvis_lhs;
728
728
  }
729
729
 
730
- tmp_0.v4s_1 = tmp_1;
731
- if (!(this.t4s_1 === 0) && !(this.o4s_1 === 0) && !this.v4s_1.u4o_1) {
732
- throw ProtocolViolationException().b4p("Can't start new data frame before finishing previous one");
730
+ tmp_0.j4t_1 = tmp_1;
731
+ if (!(this.h4t_1 === 0) && !(this.c4t_1 === 0) && !this.j4t_1.i4p_1) {
732
+ throw ProtocolViolationException().p4p("Can't start new data frame before finishing previous one");
733
733
  }
734
734
 
735
- this.w4s_1 = !((this.q4s_1 & 128) === 0);
736
- if (this.v4s_1.u4o_1 && !this.w4s_1) {
737
- throw ProtocolViolationException().b4p("control frames can't be fragmented");
735
+ this.k4t_1 = !((this.e4t_1 & 128) === 0);
736
+ if (this.j4t_1.i4p_1 && !this.k4t_1) {
737
+ throw ProtocolViolationException().p4p("control frames can't be fragmented");
738
738
  }
739
739
 
740
- this.x4s_1 = this.s4s_1 & 127;
741
- if (this.x4s_1 === 126) {
740
+ this.l4t_1 = this.g4t_1 & 127;
741
+ if (this.l4t_1 === 126) {
742
742
  this.ac_1 = 4;
743
- suspendResult = readShort(this.m4s_1, this);
743
+ suspendResult = readShort(this.a4t_1, this);
744
744
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
745
745
  return suspendResult;
746
746
  }
747
747
  continue $sm;
748
748
  } else {
749
- if (this.x4s_1 === 127) {
749
+ if (this.l4t_1 === 127) {
750
750
  this.ac_1 = 3;
751
- suspendResult = readLong(this.m4s_1, this);
751
+ suspendResult = readLong(this.a4t_1, this);
752
752
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
753
753
  return suspendResult;
754
754
  }
755
755
  continue $sm;
756
756
  } else {
757
- this.y4s_1 = toLong(this.x4s_1);
757
+ this.m4t_1 = toLong(this.l4t_1);
758
758
  this.ac_1 = 5;
759
759
  continue $sm;
760
760
  }
761
761
  }
762
762
 
763
763
  case 3:
764
- this.y4s_1 = suspendResult;
764
+ this.m4t_1 = suspendResult;
765
765
  this.ac_1 = 5;
766
766
  continue $sm;
767
767
  case 4:
768
- this.z4s_1 = suspendResult;
769
- this.a4t_1 = toLong(this.z4s_1);
770
- this.y4s_1 = this.a4t_1.c4(new (Long())(65535, 0));
768
+ this.n4t_1 = suspendResult;
769
+ this.o4t_1 = toLong(this.n4t_1);
770
+ this.m4t_1 = this.o4t_1.c4(new (Long())(65535, 0));
771
771
  this.ac_1 = 5;
772
772
  continue $sm;
773
773
  case 5:
774
- this.b4t_1 = this.y4s_1;
775
- if (this.v4s_1.u4o_1 && this.b4t_1.a2(new (Long())(125, 0)) > 0) {
776
- throw ProtocolViolationException().b4p("control frames can't be larger than 125 bytes");
774
+ this.p4t_1 = this.m4t_1;
775
+ if (this.j4t_1.i4p_1 && this.p4t_1.a2(new (Long())(125, 0)) > 0) {
776
+ throw ProtocolViolationException().p4p("control frames can't be larger than 125 bytes");
777
777
  }
778
778
 
779
- this.c4t_1 = !((this.s4s_1 & 128) === 0);
780
- if (this.c4t_1 === true) {
779
+ this.q4t_1 = !((this.g4t_1 & 128) === 0);
780
+ if (this.q4t_1 === true) {
781
781
  this.ac_1 = 6;
782
- suspendResult = readInt(this.m4s_1, this);
782
+ suspendResult = readInt(this.a4t_1, this);
783
783
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
784
784
  return suspendResult;
785
785
  }
786
786
  continue $sm;
787
787
  } else {
788
- if (this.c4t_1 === false) {
789
- this.d4t_1 = -1;
788
+ if (this.q4t_1 === false) {
789
+ this.r4t_1 = -1;
790
790
  this.ac_1 = 7;
791
791
  continue $sm;
792
792
  } else {
@@ -797,17 +797,17 @@ function $readFrameCOROUTINE$() {
797
797
 
798
798
  break;
799
799
  case 6:
800
- this.d4t_1 = suspendResult;
800
+ this.r4t_1 = suspendResult;
801
801
  this.ac_1 = 7;
802
802
  continue $sm;
803
803
  case 7:
804
- this.e4t_1 = this.d4t_1;
805
- if (this.b4t_1.a2(new (Long())(2147483647, 0)) > 0 || this.b4t_1.a2(this.n4s_1) > 0) {
806
- throw FrameTooBigException().r4o(this.b4t_1);
804
+ this.s4t_1 = this.r4t_1;
805
+ if (this.p4t_1.a2(new (Long())(2147483647, 0)) > 0 || this.p4t_1.a2(this.b4t_1) > 0) {
806
+ throw FrameTooBigException().f4p(this.p4t_1);
807
807
  }
808
808
 
809
809
  this.ac_1 = 8;
810
- suspendResult = readPacket(this.m4s_1, this.b4t_1.c2(), this);
810
+ suspendResult = readPacket(this.a4t_1, this.p4t_1.c2(), this);
811
811
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
812
812
  return suspendResult;
813
813
  }
@@ -815,8 +815,8 @@ function $readFrameCOROUTINE$() {
815
815
  continue $sm;
816
816
  case 8:
817
817
  var data = suspendResult;
818
- var maskedData = this.e4t_1 === -1 ? data : mask(data, this.e4t_1);
819
- return Companion_getInstance().g4t(this.w4s_1, this.v4s_1, readByteArray(maskedData), !((this.q4s_1 & 64) === 0), !((this.q4s_1 & 32) === 0), !((this.q4s_1 & 16) === 0));
818
+ var maskedData = this.s4t_1 === -1 ? data : mask(data, this.s4t_1);
819
+ return Companion_getInstance().u4t(this.k4t_1, this.j4t_1, readByteArray(maskedData), !((this.e4t_1 & 64) === 0), !((this.e4t_1 & 32) === 0), !((this.e4t_1 & 16) === 0));
820
820
  case 9:
821
821
  throw this.dc_1;
822
822
  }