@attocash/commons-js 5.0.0 → 5.1.1

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 (311) 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/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
  40. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
  41. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
  42. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
  43. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
  44. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
  45. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  46. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
  47. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
  48. package/commons-commons-node.mjs +1 -0
  49. package/commons-commons-node.mjs.map +1 -1
  50. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
  51. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  52. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
  53. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
  54. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
  55. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
  56. package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
  57. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
  58. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
  59. package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
  60. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
  61. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
  62. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
  63. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
  64. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
  65. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
  66. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
  67. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
  68. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
  69. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
  70. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
  71. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
  72. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
  73. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
  74. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
  75. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  76. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
  77. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
  78. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
  79. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
  80. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  81. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
  82. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
  83. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
  84. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
  85. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
  86. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
  87. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  88. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
  89. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  90. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
  91. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
  92. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
  93. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
  94. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
  95. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
  96. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
  97. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
  98. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  99. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
  100. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  101. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
  102. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  103. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
  104. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  105. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
  106. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
  107. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
  108. package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
  109. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
  110. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  111. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
  112. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
  113. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  114. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
  115. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
  116. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  117. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  118. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  119. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  120. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  121. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
  122. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
  123. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
  124. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
  125. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
  126. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  127. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
  128. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
  129. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
  130. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
  131. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
  132. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  133. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
  134. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
  135. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
  136. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
  137. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  138. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
  139. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  140. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
  141. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
  142. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
  143. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
  144. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
  145. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  146. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
  147. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
  148. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  149. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
  150. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
  151. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
  152. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
  153. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
  154. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
  155. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
  156. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  157. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  158. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
  159. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  160. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
  161. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
  162. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
  163. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
  164. package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
  165. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
  166. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
  167. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
  168. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
  169. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  170. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
  171. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
  172. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
  173. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
  174. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
  175. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
  176. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  177. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
  178. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
  179. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
  180. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
  181. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
  182. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
  183. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  184. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
  185. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
  186. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  187. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  188. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
  189. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
  190. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
  191. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
  192. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
  193. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  194. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  195. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
  196. package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
  197. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
  198. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
  199. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
  200. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  201. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
  202. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
  203. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
  204. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  205. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
  206. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
  207. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
  208. package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
  209. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
  210. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  211. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  212. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
  213. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
  214. package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
  215. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
  216. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  217. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  218. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  219. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
  220. package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
  221. package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
  222. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
  223. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
  224. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
  225. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
  226. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
  227. package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
  228. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
  229. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
  230. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  231. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
  232. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  233. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  234. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
  235. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
  236. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  237. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
  238. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
  239. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  240. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
  241. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
  242. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
  243. package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
  244. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  245. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
  246. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  247. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  248. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  249. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  250. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
  251. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  252. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  253. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  254. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  255. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
  256. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
  257. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  258. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  259. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  260. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
  261. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
  262. package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
  263. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  264. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  265. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
  266. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
  267. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  268. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
  269. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
  270. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  271. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  272. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  273. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  274. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  275. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  276. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
  277. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
  278. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  279. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
  280. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
  281. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
  282. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
  283. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  284. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
  285. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
  286. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  287. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  288. package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
  289. package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
  290. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  291. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
  292. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  293. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
  294. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  295. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  296. package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
  297. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
  298. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
  299. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
  300. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  301. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  302. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  303. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
  304. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  305. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
  306. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
  307. package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
  308. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
  309. package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
  310. package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
  311. package/package.json +1 -1
@@ -15,33 +15,33 @@ function RequestResponseBuilder() {
15
15
  if (RequestResponseBuilderClass === VOID) {
16
16
  class $ {
17
17
  constructor() {
18
- this.z4n_1 = BytePacketBuilder();
18
+ this.n4o_1 = BytePacketBuilder();
19
19
  }
20
- a4o(method, uri, version) {
21
- writeText(this.z4n_1, method.u45_1);
22
- this.z4n_1.x2s(32);
23
- writeText(this.z4n_1, uri);
24
- this.z4n_1.x2s(32);
25
- writeText(this.z4n_1, version);
26
- this.z4n_1.x2s(13);
27
- this.z4n_1.x2s(10);
20
+ o4o(method, uri, version) {
21
+ writeText(this.n4o_1, method.i46_1);
22
+ this.n4o_1.l2t(32);
23
+ writeText(this.n4o_1, uri);
24
+ this.n4o_1.l2t(32);
25
+ writeText(this.n4o_1, version);
26
+ this.n4o_1.l2t(13);
27
+ this.n4o_1.l2t(10);
28
28
  }
29
- b4o(name, value) {
30
- append(this.z4n_1, name);
31
- append(this.z4n_1, ': ');
32
- append(this.z4n_1, value);
33
- this.z4n_1.x2s(13);
34
- this.z4n_1.x2s(10);
29
+ p4o(name, value) {
30
+ append(this.n4o_1, name);
31
+ append(this.n4o_1, ': ');
32
+ append(this.n4o_1, value);
33
+ this.n4o_1.l2t(13);
34
+ this.n4o_1.l2t(10);
35
35
  }
36
- c4o() {
37
- this.z4n_1.x2s(13);
38
- this.z4n_1.x2s(10);
36
+ q4o() {
37
+ this.n4o_1.l2t(13);
38
+ this.n4o_1.l2t(10);
39
39
  }
40
40
  z1i() {
41
- return build(this.z4n_1);
41
+ return build(this.n4o_1);
42
42
  }
43
- y2n() {
44
- this.z4n_1.v5();
43
+ m2o() {
44
+ this.n4o_1.v5();
45
45
  }
46
46
  }
47
47
  initMetadataForClass($, 'RequestResponseBuilder', RequestResponseBuilder);
@@ -98,16 +98,16 @@ function Node() {
98
98
  if (NodeClass === VOID) {
99
99
  class $ {
100
100
  constructor(ch, exact, children) {
101
- this.z4m_1 = ch;
102
- this.a4n_1 = exact;
103
- this.b4n_1 = children;
101
+ this.n4n_1 = ch;
102
+ this.o4n_1 = exact;
103
+ this.p4n_1 = children;
104
104
  var tmp = this;
105
105
  var tmp_0 = 0;
106
106
  // Inline function 'kotlin.arrayOfNulls' call
107
107
  var tmp_1 = Array(256);
108
108
  while (tmp_0 < 256) {
109
109
  var tmp_2 = tmp_0;
110
- var tmp0 = this.b4n_1;
110
+ var tmp0 = this.p4n_1;
111
111
  var tmp$ret$3;
112
112
  $l$block_0: {
113
113
  // Inline function 'kotlin.collections.singleOrNull' call
@@ -117,7 +117,7 @@ function Node() {
117
117
  while (_iterator__ex2g4s.e1()) {
118
118
  var element = _iterator__ex2g4s.f1();
119
119
  // Inline function 'kotlin.code' call
120
- var this_0 = element.z4m_1;
120
+ var this_0 = element.n4n_1;
121
121
  if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
122
122
  if (found) {
123
123
  tmp$ret$3 = null;
@@ -136,7 +136,7 @@ function Node() {
136
136
  tmp_1[tmp_2] = tmp$ret$3;
137
137
  tmp_0 = tmp_0 + 1 | 0;
138
138
  }
139
- tmp.c4n_1 = tmp_1;
139
+ tmp.q4n_1 = tmp_1;
140
140
  }
141
141
  }
142
142
  initMetadataForClass($, 'Node');
@@ -148,11 +148,11 @@ var CompanionClass;
148
148
  function Companion() {
149
149
  if (CompanionClass === VOID) {
150
150
  class $ {
151
- e4j(from) {
151
+ s4j(from) {
152
152
  var tmp = AsciiCharTree$Companion$build$lambda;
153
- return this.m4f(from, tmp, AsciiCharTree$Companion$build$lambda_0);
153
+ return this.a4g(from, tmp, AsciiCharTree$Companion$build$lambda_0);
154
154
  }
155
- m4f(from, length, charAt) {
155
+ a4g(from, length, charAt) {
156
156
  var tmp$ret$0;
157
157
  $l$block_0: {
158
158
  // Inline function 'kotlin.collections.maxByOrNull' call
@@ -239,13 +239,13 @@ function AsciiCharTree() {
239
239
  if (AsciiCharTreeClass === VOID) {
240
240
  class $ {
241
241
  constructor(root) {
242
- this.g4f_1 = root;
242
+ this.u4f_1 = root;
243
243
  }
244
- h4f(sequence, fromIdx, end, lowerCase, stopPredicate) {
244
+ v4f(sequence, fromIdx, end, lowerCase, stopPredicate) {
245
245
  // Inline function 'kotlin.text.isEmpty' call
246
246
  if (charSequenceLength(sequence) === 0)
247
247
  throw IllegalArgumentException().u("Couldn't search in char tree for empty string");
248
- var node = this.g4f_1;
248
+ var node = this.u4f_1;
249
249
  var inductionVariable = fromIdx;
250
250
  if (inductionVariable < end)
251
251
  $l$loop: do {
@@ -256,12 +256,12 @@ function AsciiCharTree() {
256
256
  var currentCode = Char__toInt_impl_vasixd(current);
257
257
  if (stopPredicate(new (Char())(current), currentCode))
258
258
  break $l$loop;
259
- var tmp0_elvis_lhs = node.c4n_1[currentCode];
259
+ var tmp0_elvis_lhs = node.q4n_1[currentCode];
260
260
  var tmp;
261
261
  if (tmp0_elvis_lhs == null) {
262
262
  var tmp_0;
263
263
  if (lowerCase) {
264
- var tmp_1 = node.c4n_1;
264
+ var tmp_1 = node.q4n_1;
265
265
  // Inline function 'kotlin.text.lowercaseChar' call
266
266
  // Inline function 'kotlin.text.lowercase' call
267
267
  // Inline function 'kotlin.js.asDynamic' call
@@ -288,13 +288,13 @@ function AsciiCharTree() {
288
288
  node = nextNode;
289
289
  }
290
290
  while (inductionVariable < end);
291
- return node.a4n_1;
291
+ return node.o4n_1;
292
292
  }
293
- o4f(sequence, fromIdx, end, lowerCase, stopPredicate, $super) {
293
+ c4g(sequence, fromIdx, end, lowerCase, stopPredicate, $super) {
294
294
  fromIdx = fromIdx === VOID ? 0 : fromIdx;
295
295
  end = end === VOID ? charSequenceLength(sequence) : end;
296
296
  lowerCase = lowerCase === VOID ? false : lowerCase;
297
- return $super === VOID ? this.h4f(sequence, fromIdx, end, lowerCase, stopPredicate) : $super.h4f.call(this, sequence, fromIdx, end, lowerCase, stopPredicate);
297
+ return $super === VOID ? this.v4f(sequence, fromIdx, end, lowerCase, stopPredicate) : $super.v4f.call(this, sequence, fromIdx, end, lowerCase, stopPredicate);
298
298
  }
299
299
  }
300
300
  initMetadataForClass($, 'AsciiCharTree');
@@ -27,7 +27,7 @@ var imul = Math.imul;
27
27
  //region block: pre-declaration
28
28
  //endregion
29
29
  function getImpl($this, index) {
30
- return bufferForIndex($this, index)[index % ensureNotNull($this.i4h_1).length | 0];
30
+ return bufferForIndex($this, index)[index % ensureNotNull($this.w4h_1).length | 0];
31
31
  }
32
32
  function copy($this, startIndex, endIndex) {
33
33
  if (startIndex === endIndex)
@@ -60,27 +60,27 @@ function SubSequenceImpl() {
60
60
  if (SubSequenceImplClass === VOID) {
61
61
  class $ {
62
62
  constructor($outer, start, end) {
63
- this.g4n_1 = $outer;
64
- this.d4n_1 = start;
65
- this.e4n_1 = end;
66
- this.f4n_1 = null;
63
+ this.u4n_1 = $outer;
64
+ this.r4n_1 = start;
65
+ this.s4n_1 = end;
66
+ this.t4n_1 = null;
67
67
  }
68
68
  a() {
69
- return this.e4n_1 - this.d4n_1 | 0;
69
+ return this.s4n_1 - this.r4n_1 | 0;
70
70
  }
71
71
  b(index) {
72
- var withOffset = index + this.d4n_1 | 0;
72
+ var withOffset = index + this.r4n_1 | 0;
73
73
  // Inline function 'kotlin.require' call
74
74
  if (!(index >= 0)) {
75
75
  var message = 'index is negative: ' + index;
76
76
  throw IllegalArgumentException().u(toString(message));
77
77
  }
78
78
  // Inline function 'kotlin.require' call
79
- if (!(withOffset < this.e4n_1)) {
79
+ if (!(withOffset < this.s4n_1)) {
80
80
  var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
81
81
  throw IllegalArgumentException().u(toString(message_0));
82
82
  }
83
- return getImpl(this.g4n_1, withOffset);
83
+ return getImpl(this.u4n_1, withOffset);
84
84
  }
85
85
  c(startIndex, endIndex) {
86
86
  // Inline function 'kotlin.require' call
@@ -94,21 +94,21 @@ function SubSequenceImpl() {
94
94
  throw IllegalArgumentException().u(toString(message_0));
95
95
  }
96
96
  // Inline function 'kotlin.require' call
97
- if (!(endIndex <= (this.e4n_1 - this.d4n_1 | 0))) {
97
+ if (!(endIndex <= (this.s4n_1 - this.r4n_1 | 0))) {
98
98
  var message_1 = 'end should be less than length (' + this.a() + ')';
99
99
  throw IllegalArgumentException().u(toString(message_1));
100
100
  }
101
101
  if (startIndex === endIndex)
102
102
  return '';
103
- return new (SubSequenceImpl())(this.g4n_1, this.d4n_1 + startIndex | 0, this.d4n_1 + endIndex | 0);
103
+ return new (SubSequenceImpl())(this.u4n_1, this.r4n_1 + startIndex | 0, this.r4n_1 + endIndex | 0);
104
104
  }
105
105
  toString() {
106
- var tmp0_elvis_lhs = this.f4n_1;
106
+ var tmp0_elvis_lhs = this.t4n_1;
107
107
  var tmp;
108
108
  if (tmp0_elvis_lhs == null) {
109
109
  // Inline function 'kotlin.also' call
110
- var this_0 = toString(copy(this.g4n_1, this.d4n_1, this.e4n_1));
111
- this.f4n_1 = this_0;
110
+ var this_0 = toString(copy(this.u4n_1, this.r4n_1, this.s4n_1));
111
+ this.t4n_1 = this_0;
112
112
  tmp = this_0;
113
113
  } else {
114
114
  tmp = tmp0_elvis_lhs;
@@ -120,12 +120,12 @@ function SubSequenceImpl() {
120
120
  return false;
121
121
  if (!(charSequenceLength(other) === this.a()))
122
122
  return false;
123
- return rangeEqualsImpl(this.g4n_1, this.d4n_1, other, 0, this.a());
123
+ return rangeEqualsImpl(this.u4n_1, this.r4n_1, other, 0, this.a());
124
124
  }
125
125
  hashCode() {
126
- var tmp0_safe_receiver = this.f4n_1;
126
+ var tmp0_safe_receiver = this.t4n_1;
127
127
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
128
- return tmp1_elvis_lhs == null ? hashCodeImpl(this.g4n_1, this.d4n_1, this.e4n_1) : tmp1_elvis_lhs;
128
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this.u4n_1, this.r4n_1, this.s4n_1) : tmp1_elvis_lhs;
129
129
  }
130
130
  }
131
131
  initMetadataForClass($, 'SubSequenceImpl', VOID, VOID, [CharSequence()]);
@@ -134,12 +134,12 @@ function SubSequenceImpl() {
134
134
  return SubSequenceImplClass;
135
135
  }
136
136
  function bufferForIndex($this, index) {
137
- var list = $this.h4h_1;
137
+ var list = $this.v4h_1;
138
138
  if (list == null) {
139
139
  if (index >= 2048) {
140
140
  throwSingleBuffer($this, index);
141
141
  }
142
- var tmp0_elvis_lhs = $this.i4h_1;
142
+ var tmp0_elvis_lhs = $this.w4h_1;
143
143
  var tmp;
144
144
  if (tmp0_elvis_lhs == null) {
145
145
  throwSingleBuffer($this, index);
@@ -148,29 +148,29 @@ function bufferForIndex($this, index) {
148
148
  }
149
149
  return tmp;
150
150
  }
151
- return list.j1(index / ensureNotNull($this.i4h_1).length | 0);
151
+ return list.j1(index / ensureNotNull($this.w4h_1).length | 0);
152
152
  }
153
153
  function throwSingleBuffer($this, index) {
154
- if ($this.k4h_1)
154
+ if ($this.y4h_1)
155
155
  throw IllegalStateException().o4('Buffer is already released');
156
156
  throw IndexOutOfBoundsException().hf('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
157
157
  }
158
158
  function nonFullBuffer($this) {
159
- return $this.l4h_1 === 0 ? appendNewArray($this) : ensureNotNull($this.i4h_1);
159
+ return $this.z4h_1 === 0 ? appendNewArray($this) : ensureNotNull($this.w4h_1);
160
160
  }
161
161
  function appendNewArray($this) {
162
- var newBuffer = $this.g4h_1.n3q();
163
- var existing = $this.i4h_1;
164
- $this.i4h_1 = newBuffer;
165
- $this.l4h_1 = newBuffer.length;
166
- $this.k4h_1 = false;
162
+ var newBuffer = $this.u4h_1.b3r();
163
+ var existing = $this.w4h_1;
164
+ $this.w4h_1 = newBuffer;
165
+ $this.z4h_1 = newBuffer.length;
166
+ $this.y4h_1 = false;
167
167
  if (!(existing == null)) {
168
- var tmp0_elvis_lhs = $this.h4h_1;
168
+ var tmp0_elvis_lhs = $this.v4h_1;
169
169
  var tmp;
170
170
  if (tmp0_elvis_lhs == null) {
171
171
  // Inline function 'kotlin.also' call
172
172
  var this_0 = ArrayList().l1();
173
- $this.h4h_1 = this_0;
173
+ $this.v4h_1 = this_0;
174
174
  this_0.m(existing);
175
175
  tmp = this_0;
176
176
  } else {
@@ -209,7 +209,7 @@ function hashCodeImpl($this, start, end) {
209
209
  return hc;
210
210
  }
211
211
  function currentPosition($this) {
212
- return ensureNotNull($this.i4h_1).length - $this.l4h_1 | 0;
212
+ return ensureNotNull($this.w4h_1).length - $this.z4h_1 | 0;
213
213
  }
214
214
  var CharArrayBuilderClass;
215
215
  function CharArrayBuilder() {
@@ -217,16 +217,16 @@ function CharArrayBuilder() {
217
217
  class $ {
218
218
  constructor(pool) {
219
219
  pool = pool === VOID ? get_CharArrayPool() : pool;
220
- this.g4h_1 = pool;
221
- this.h4h_1 = null;
222
- this.i4h_1 = null;
223
- this.j4h_1 = null;
224
- this.k4h_1 = false;
225
- this.l4h_1 = 0;
226
- this.m4h_1 = 0;
220
+ this.u4h_1 = pool;
221
+ this.v4h_1 = null;
222
+ this.w4h_1 = null;
223
+ this.x4h_1 = null;
224
+ this.y4h_1 = false;
225
+ this.z4h_1 = 0;
226
+ this.a4i_1 = 0;
227
227
  }
228
228
  a() {
229
- return this.m4h_1;
229
+ return this.a4i_1;
230
230
  }
231
231
  b(index) {
232
232
  // Inline function 'kotlin.require' call
@@ -235,8 +235,8 @@ function CharArrayBuilder() {
235
235
  throw IllegalArgumentException().u(toString(message));
236
236
  }
237
237
  // Inline function 'kotlin.require' call
238
- if (!(index < this.m4h_1)) {
239
- var message_0 = 'index ' + index + ' is not in range [0, ' + this.m4h_1 + ')';
238
+ if (!(index < this.a4i_1)) {
239
+ var message_0 = 'index ' + index + ' is not in range [0, ' + this.a4i_1 + ')';
240
240
  throw IllegalArgumentException().u(toString(message_0));
241
241
  }
242
242
  return getImpl(this, index);
@@ -253,19 +253,19 @@ function CharArrayBuilder() {
253
253
  throw IllegalArgumentException().u(toString(message_0));
254
254
  }
255
255
  // Inline function 'kotlin.require' call
256
- if (!(endIndex <= this.m4h_1)) {
257
- var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.m4h_1 + ')';
256
+ if (!(endIndex <= this.a4i_1)) {
257
+ var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.a4i_1 + ')';
258
258
  throw IllegalArgumentException().u(toString(message_1));
259
259
  }
260
260
  return new (SubSequenceImpl())(this, startIndex, endIndex);
261
261
  }
262
262
  toString() {
263
- var tmp0_elvis_lhs = this.j4h_1;
263
+ var tmp0_elvis_lhs = this.x4h_1;
264
264
  var tmp;
265
265
  if (tmp0_elvis_lhs == null) {
266
266
  // Inline function 'kotlin.also' call
267
- var this_0 = toString(copy(this, 0, this.m4h_1));
268
- this.j4h_1 = this_0;
267
+ var this_0 = toString(copy(this, 0, this.a4i_1));
268
+ this.x4h_1 = this_0;
269
269
  tmp = this_0;
270
270
  } else {
271
271
  tmp = tmp0_elvis_lhs;
@@ -275,20 +275,20 @@ function CharArrayBuilder() {
275
275
  equals(other) {
276
276
  if (!(!(other == null) ? isCharSequence(other) : false))
277
277
  return false;
278
- if (!(this.m4h_1 === charSequenceLength(other)))
278
+ if (!(this.a4i_1 === charSequenceLength(other)))
279
279
  return false;
280
- return rangeEqualsImpl(this, 0, other, 0, this.m4h_1);
280
+ return rangeEqualsImpl(this, 0, other, 0, this.a4i_1);
281
281
  }
282
282
  hashCode() {
283
- var tmp0_safe_receiver = this.j4h_1;
283
+ var tmp0_safe_receiver = this.x4h_1;
284
284
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
285
- return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.m4h_1) : tmp1_elvis_lhs;
285
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.a4i_1) : tmp1_elvis_lhs;
286
286
  }
287
287
  kb(value) {
288
- nonFullBuffer(this)[ensureNotNull(this.i4h_1).length - this.l4h_1 | 0] = value;
289
- this.j4h_1 = null;
290
- this.l4h_1 = this.l4h_1 - 1 | 0;
291
- this.m4h_1 = this.m4h_1 + 1 | 0;
288
+ nonFullBuffer(this)[ensureNotNull(this.w4h_1).length - this.z4h_1 | 0] = value;
289
+ this.x4h_1 = null;
290
+ this.z4h_1 = this.z4h_1 - 1 | 0;
291
+ this.a4i_1 = this.a4i_1 + 1 | 0;
292
292
  return this;
293
293
  }
294
294
  vh(value, startIndex, endIndex) {
@@ -297,10 +297,10 @@ function CharArrayBuilder() {
297
297
  var current = startIndex;
298
298
  while (current < endIndex) {
299
299
  var buffer = nonFullBuffer(this);
300
- var offset = buffer.length - this.l4h_1 | 0;
300
+ var offset = buffer.length - this.z4h_1 | 0;
301
301
  var tmp0 = endIndex - current | 0;
302
302
  // Inline function 'kotlin.math.min' call
303
- var b = this.l4h_1;
303
+ var b = this.z4h_1;
304
304
  var bytesToCopy = Math.min(tmp0, b);
305
305
  var inductionVariable = 0;
306
306
  if (inductionVariable < bytesToCopy)
@@ -311,10 +311,10 @@ function CharArrayBuilder() {
311
311
  }
312
312
  while (inductionVariable < bytesToCopy);
313
313
  current = current + bytesToCopy | 0;
314
- this.l4h_1 = this.l4h_1 - bytesToCopy | 0;
314
+ this.z4h_1 = this.z4h_1 - bytesToCopy | 0;
315
315
  }
316
- this.j4h_1 = null;
317
- this.m4h_1 = this.m4h_1 + (endIndex - startIndex | 0) | 0;
316
+ this.x4h_1 = null;
317
+ this.a4i_1 = this.a4i_1 + (endIndex - startIndex | 0) | 0;
318
318
  return this;
319
319
  }
320
320
  b1(value) {
@@ -322,34 +322,34 @@ function CharArrayBuilder() {
322
322
  return this;
323
323
  return this.vh(value, 0, charSequenceLength(value));
324
324
  }
325
- y2n() {
326
- var list = this.h4h_1;
325
+ m2o() {
326
+ var list = this.v4h_1;
327
327
  if (!(list == null)) {
328
- this.i4h_1 = null;
328
+ this.w4h_1 = null;
329
329
  var inductionVariable = 0;
330
330
  var last = list.i1();
331
331
  if (inductionVariable < last)
332
332
  do {
333
333
  var i = inductionVariable;
334
334
  inductionVariable = inductionVariable + 1 | 0;
335
- this.g4h_1.o3q(list.j1(i));
335
+ this.u4h_1.c3r(list.j1(i));
336
336
  }
337
337
  while (inductionVariable < last);
338
338
  } else {
339
- var tmp0_safe_receiver = this.i4h_1;
339
+ var tmp0_safe_receiver = this.w4h_1;
340
340
  if (tmp0_safe_receiver == null)
341
341
  null;
342
342
  else {
343
343
  // Inline function 'kotlin.let' call
344
- this.g4h_1.o3q(tmp0_safe_receiver);
344
+ this.u4h_1.c3r(tmp0_safe_receiver);
345
345
  }
346
- this.i4h_1 = null;
346
+ this.w4h_1 = null;
347
347
  }
348
- this.k4h_1 = true;
349
- this.h4h_1 = null;
350
- this.j4h_1 = null;
351
- this.m4h_1 = 0;
352
- this.l4h_1 = 0;
348
+ this.y4h_1 = true;
349
+ this.v4h_1 = null;
350
+ this.x4h_1 = null;
351
+ this.a4i_1 = 0;
352
+ this.z4h_1 = 0;
353
353
  }
354
354
  }
355
355
  initMetadataForClass($, 'CharArrayBuilder', CharArrayBuilder, VOID, [CharSequence()]);
@@ -17,7 +17,7 @@ var CharArrayPool$1Class;
17
17
  function CharArrayPool$1() {
18
18
  if (CharArrayPool$1Class === VOID) {
19
19
  class $ extends NoPoolImpl() {
20
- n3q() {
20
+ b3r() {
21
21
  return charArray(2048);
22
22
  }
23
23
  }
@@ -33,7 +33,7 @@ function CharArrayPool$2() {
33
33
  constructor() {
34
34
  super(4096);
35
35
  }
36
- g3q() {
36
+ u3q() {
37
37
  return charArray(2048);
38
38
  }
39
39
  }
@@ -257,11 +257,11 @@ function numberFormatException_0(cs, idx) {
257
257
  }
258
258
  function DefaultHttpMethods$lambda(it) {
259
259
  _init_properties_Chars_kt__d3i39x();
260
- return it.u45_1.length;
260
+ return it.i46_1.length;
261
261
  }
262
262
  function DefaultHttpMethods$lambda_0(m, idx) {
263
263
  _init_properties_Chars_kt__d3i39x();
264
- return new (Char())(charCodeAt(m.u45_1, idx));
264
+ return new (Char())(charCodeAt(m.i46_1, idx));
265
265
  }
266
266
  var $writeIntHexCOROUTINE$Class;
267
267
  function $writeIntHexCOROUTINE$() {
@@ -269,8 +269,8 @@ function $writeIntHexCOROUTINE$() {
269
269
  class $ extends CoroutineImpl() {
270
270
  constructor(_this__u8e3s4, value, resultContinuation) {
271
271
  super(resultContinuation);
272
- this.s4n_1 = _this__u8e3s4;
273
- this.t4n_1 = value;
272
+ this.g4o_1 = _this__u8e3s4;
273
+ this.h4o_1 = value;
274
274
  }
275
275
  ic() {
276
276
  var suspendResult = this.cc_1;
@@ -280,29 +280,29 @@ function $writeIntHexCOROUTINE$() {
280
280
  switch (tmp) {
281
281
  case 0:
282
282
  this.bc_1 = 8;
283
- if (!(this.t4n_1 > 0)) {
283
+ if (!(this.h4o_1 > 0)) {
284
284
  var message = 'Does only work for positive numbers';
285
285
  throw IllegalArgumentException().u(toString_0(message));
286
286
  }
287
287
 
288
- this.u4n_1 = this.t4n_1;
289
- this.v4n_1 = get_HexLetterTable();
290
- this.w4n_1 = 0;
288
+ this.i4o_1 = this.h4o_1;
289
+ this.j4o_1 = get_HexLetterTable();
290
+ this.k4o_1 = 0;
291
291
  this.ac_1 = 1;
292
292
  continue $sm;
293
293
  case 1:
294
- var _unary__edvuaz = this.w4n_1;
295
- this.w4n_1 = _unary__edvuaz + 1 | 0;
294
+ var _unary__edvuaz = this.k4o_1;
295
+ this.k4o_1 = _unary__edvuaz + 1 | 0;
296
296
  if (!(_unary__edvuaz < 8)) {
297
297
  this.ac_1 = 4;
298
298
  continue $sm;
299
299
  }
300
300
 
301
- this.x4n_1 = this.u4n_1 >>> 28 | 0;
302
- this.u4n_1 = this.u4n_1 << 4;
303
- if (!(this.x4n_1 === 0)) {
301
+ this.l4o_1 = this.i4o_1 >>> 28 | 0;
302
+ this.i4o_1 = this.i4o_1 << 4;
303
+ if (!(this.l4o_1 === 0)) {
304
304
  this.ac_1 = 3;
305
- suspendResult = writeByte(this.s4n_1, this.v4n_1[this.x4n_1], this);
305
+ suspendResult = writeByte(this.g4o_1, this.j4o_1[this.l4o_1], this);
306
306
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
307
307
  return suspendResult;
308
308
  }
@@ -322,17 +322,17 @@ function $writeIntHexCOROUTINE$() {
322
322
  this.ac_1 = 5;
323
323
  continue $sm;
324
324
  case 5:
325
- var _unary__edvuaz_0 = this.w4n_1;
326
- this.w4n_1 = _unary__edvuaz_0 + 1 | 0;
325
+ var _unary__edvuaz_0 = this.k4o_1;
326
+ this.k4o_1 = _unary__edvuaz_0 + 1 | 0;
327
327
  if (!(_unary__edvuaz_0 < 8)) {
328
328
  this.ac_1 = 7;
329
329
  continue $sm;
330
330
  }
331
331
 
332
- this.y4n_1 = this.u4n_1 >>> 28 | 0;
333
- this.u4n_1 = this.u4n_1 << 4;
332
+ this.m4o_1 = this.i4o_1 >>> 28 | 0;
333
+ this.i4o_1 = this.i4o_1 << 4;
334
334
  this.ac_1 = 6;
335
- suspendResult = writeByte(this.s4n_1, this.v4n_1[this.y4n_1], this);
335
+ suspendResult = writeByte(this.g4o_1, this.j4o_1[this.m4o_1], this);
336
336
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
337
337
  return suspendResult;
338
338
  }
@@ -368,9 +368,9 @@ function _init_properties_Chars_kt__d3i39x() {
368
368
  if (!properties_initialized_Chars_kt_phjfhp) {
369
369
  properties_initialized_Chars_kt_phjfhp = true;
370
370
  var tmp = Companion_instance;
371
- var tmp_0 = Companion_getInstance().t45_1;
371
+ var tmp_0 = Companion_getInstance().h46_1;
372
372
  var tmp_1 = DefaultHttpMethods$lambda;
373
- DefaultHttpMethods = tmp.m4f(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
373
+ DefaultHttpMethods = tmp.a4g(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
374
374
  // Inline function 'kotlin.collections.map' call
375
375
  var this_0 = numberRangeToNumber(0, 255);
376
376
  // Inline function 'kotlin.collections.mapTo' call
@@ -10,9 +10,9 @@ var UnsupportedMediaTypeExceptionCIOClass;
10
10
  function UnsupportedMediaTypeExceptionCIO() {
11
11
  if (UnsupportedMediaTypeExceptionCIOClass === VOID) {
12
12
  class $ extends IOException() {
13
- static m4j(message) {
14
- var $this = this.l2u(message);
15
- captureStack($this, $this.l4j_1);
13
+ static a4k(message) {
14
+ var $this = this.z2u(message);
15
+ captureStack($this, $this.z4j_1);
16
16
  return $this;
17
17
  }
18
18
  }
@@ -9,11 +9,11 @@ function MutableRange() {
9
9
  if (MutableRangeClass === VOID) {
10
10
  class $ {
11
11
  constructor(start, end) {
12
- this.l4i_1 = start;
13
- this.m4i_1 = end;
12
+ this.z4i_1 = start;
13
+ this.a4j_1 = end;
14
14
  }
15
15
  toString() {
16
- return 'MutableRange(start=' + this.l4i_1 + ', end=' + this.m4i_1 + ')';
16
+ return 'MutableRange(start=' + this.z4i_1 + ', end=' + this.a4j_1 + ')';
17
17
  }
18
18
  }
19
19
  initMetadataForClass($, 'MutableRange');
@@ -10,25 +10,25 @@ import { _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx }
10
10
  //region block: pre-declaration
11
11
  //endregion
12
12
  function skipSpaces(text, range) {
13
- var idx = range.l4i_1;
14
- var end = range.m4i_1;
13
+ var idx = range.z4i_1;
14
+ var end = range.a4j_1;
15
15
  if (idx >= end || !isWhitespace(charSequenceGet(text, idx)))
16
16
  return Unit_instance;
17
17
  idx = idx + 1 | 0;
18
18
  $l$loop: while (idx < end && isWhitespace(charSequenceGet(text, idx))) {
19
19
  idx = idx + 1 | 0;
20
20
  }
21
- range.l4i_1 = idx;
21
+ range.z4i_1 = idx;
22
22
  }
23
23
  function nextToken(text, range) {
24
24
  var spaceOrEnd = findSpaceOrEnd(text, range);
25
- var s = charSequenceSubSequence(text, range.l4i_1, spaceOrEnd);
26
- range.l4i_1 = spaceOrEnd;
25
+ var s = charSequenceSubSequence(text, range.z4i_1, spaceOrEnd);
26
+ range.z4i_1 = spaceOrEnd;
27
27
  return s;
28
28
  }
29
29
  function findSpaceOrEnd(text, range) {
30
- var idx = range.l4i_1;
31
- var end = range.m4i_1;
30
+ var idx = range.z4i_1;
31
+ var end = range.a4j_1;
32
32
  if (idx >= end || isWhitespace(charSequenceGet(text, idx)))
33
33
  return idx;
34
34
  idx = idx + 1 | 0;