@continuous-excellence/coupling-cli 1.1.509 → 1.1.511
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.
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Auth0Environment.mjs +8 -8
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigCommand.mjs +38 -38
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/ConfigFileSource.mjs +15 -15
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCli.mjs +16 -16
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/CouplingCliConfig.mjs +33 -33
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +23 -23
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Main.mjs +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/WithSdk.mjs +11 -11
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PartyListQuery.mjs +22 -22
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/PlayersQuery.mjs +31 -31
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PartyListQuery_ResponseAdapter.mjs +21 -21
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_ResponseAdapter.mjs +30 -30
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/gql/adapter/PlayersQuery_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/BatchContribution.mjs +31 -31
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Contribution.mjs +24 -24
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/ContributionInput.mjs +14 -14
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CurrentPairs.mjs +37 -37
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/CycleTimeFromFirstCommit.mjs +4 -4
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Party.mjs +28 -28
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyDetails.mjs +35 -35
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/PartyList.mjs +13 -13
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/Players.mjs +26 -26
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/party/SaveContribution.mjs +51 -51
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/ActionLoggingSyntax.mjs +12 -12
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/LoggingActionPipe.mjs +18 -18
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommand.mjs +7 -7
- package/kotlin/Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommandDispatcherExecuteKt.mjs +13 -13
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/AccessResult.mjs +82 -82
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/DeviceCodeRequest.mjs +54 -54
- package/kotlin/Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs +26 -26
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/CouplingJsonFormat.mjs +5 -5
- package/kotlin/Coupling-libraries-json/com/zegreatrob/coupling/json/PartyIdSerializer.mjs +10 -10
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/Contribution.mjs +54 -54
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/ContributionId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/CouplingPair.mjs +57 -57
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/PairingSet.mjs +16 -16
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pairassignmentdocument/PairingSetId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PairingRule.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PartyDetails.mjs +34 -34
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/PartyId.mjs +5 -5
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/party/SecretId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/pin/Pin.mjs +17 -17
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/AvatarType.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/Badge.mjs +1 -1
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/Player.mjs +28 -28
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/PlayerId.mjs +4 -4
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/player/callsign/CallSign.mjs +7 -7
- package/kotlin/Coupling-libraries-model/com/zegreatrob/coupling/model/user/UserId.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +17 -17
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSyntax.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkGraphQueryDispatcher.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/SdkSaveContributionCommandDispatcher.mjs +19 -19
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/adapter/Adapter.mjs +32 -32
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlQuery.mjs +13 -13
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/GqlTrait.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/gql/KtorQueryPerformer.mjs +2 -2
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PairingSetDetailsMapper.mjs +9 -9
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/mapper/PartyDetailsMapper.mjs +10 -10
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/CurrentPairAssignmentsQuery.mjs +31 -31
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/PartyDetailsQuery.mjs +27 -27
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/SaveContributionMutation.mjs +20 -20
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/CurrentPairAssignmentsQuery_ResponseAdapter.mjs +30 -30
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/CurrentPairAssignmentsQuery_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_ResponseAdapter.mjs +21 -21
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/PartyDetailsQuery_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/SaveContributionMutation_ResponseAdapter.mjs +9 -9
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/adapter/SaveContributionMutation_VariablesAdapter.mjs +3 -3
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PairingSetDetails.mjs +77 -77
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PairingSetDetailsImpl_ResponseAdapter.mjs +102 -102
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PartyDetails.mjs +31 -31
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PartyDetailsImpl_ResponseAdapter.mjs +36 -36
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetails.mjs +28 -28
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/fragment/PlayerDetailsImpl_ResponseAdapter.mjs +33 -33
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/AvatarType.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/Badge.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/ContributionInput.mjs +46 -46
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/GraphQLFloat.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/PartyInput.mjs +4 -4
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/SaveContributionInput.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/AvatarType_ResponseAdapter.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/Badge_ResponseAdapter.mjs +7 -7
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/ContributionInput_InputAdapter.mjs +47 -47
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/PartyInput_InputAdapter.mjs +6 -6
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/schema/type/adapter/SaveContributionInput_InputAdapter.mjs +8 -8
- package/kotlin/apollo-kotlin-adapters-apollo-adapters-core/com/apollographql/adapter/core/KotlinInstantAdapter.mjs +6 -6
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Adapters.mjs +114 -114
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ApolloRequest.mjs +63 -63
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ApolloResponse.mjs +61 -61
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Assertions.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/CompiledGraphQL.mjs +3 -3
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/CustomScalarAdapters.mjs +44 -44
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/DeferredFragmentIdentifier.mjs +7 -7
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Error.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Executable.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Executables.mjs +8 -8
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/ExecutionContext.mjs +21 -21
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Operations.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/Optional.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/DefaultHttpRequestComposer.mjs +139 -139
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/Http.mjs +57 -57
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/http/HttpHeaders.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/internal/ResponseParser.mjs +31 -31
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/BufferedSinkJsonWriter.mjs +84 -84
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/BufferedSourceJsonReader.mjs +276 -276
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonNumber.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonReaders.mjs +13 -13
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/JsonWriters.mjs +12 -12
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/MapJsonReader.mjs +115 -115
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/MapJsonWriter.mjs +48 -48
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/internal/FileUploadAwareJsonWriter.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/api/json/internal/JsonScope.mjs +9 -9
- package/kotlin/apollo-kotlin-apollo-api/com/apollographql/apollo/exception/Exceptions.mjs +51 -51
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloCall.mjs +20 -20
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ApolloClient.mjs +243 -243
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/ConcurrencyInfo.mjs +6 -6
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/ApolloInterceptor.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/NetworkInterceptor.mjs +7 -7
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/interceptor/RetryOnErrorInterceptor.mjs +40 -40
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/DeferredJsonMerger.mjs +27 -27
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/MultipartReader.mjs +49 -49
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/dispatchers.js.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/flows.mjs +30 -30
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/internal/multipart.mjs +18 -18
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/NetworkMonitor.mjs +4 -4
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/DefaultHttpEngine.js.mjs +30 -30
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpEngine.mjs +1 -1
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpExecutionContext.mjs +8 -8
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpInterceptor.mjs +5 -5
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/HttpNetworkTransport.mjs +150 -150
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/http/Js.mjs +2 -2
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/JsWebSocketEngine.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/SubscriptionWsProtocol.mjs +35 -35
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WebSocketNetworkTransport.mjs +190 -190
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/WsProtocol.mjs +21 -21
- package/kotlin/apollo-kotlin-apollo-runtime/com/apollographql/apollo/network/ws/internal/WsMessage.mjs +24 -24
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/KtorExtensions.mjs +2 -2
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/http/KtorHttpEngine.js.mjs +1 -1
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/http/KtorHttpEngine.mjs +43 -43
- package/kotlin/apollo-kotlin-ktor-support-apollo-engine-ktor/com/apollographql/ktor/ws/KtorWebSocketEngine.mjs +68 -68
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/command/CoreSuspendingCliktCommand.mjs +5 -5
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/BashCompletionGenerator.mjs +40 -40
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/CompletionGenerator.mjs +4 -4
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/completion/FishCompletionGenerator.mjs +23 -23
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/BaseCliktCommand.mjs +110 -110
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/Context.mjs +97 -97
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/core/exceptions.mjs +124 -124
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Finalization.mjs +38 -38
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/internal/Util.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/AbstractHelpFormatter.mjs +141 -141
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/HelpFormatter.mjs +48 -48
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/Localization.mjs +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/output/PlaintextHelpFormatter.mjs +28 -28
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/groups/ParameterGroup.mjs +2 -2
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/internal/NullableLateinit.mjs +13 -13
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/EagerOption.mjs +6 -6
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/FlagOption.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/Option.mjs +22 -22
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/OptionWithValues.mjs +211 -211
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformAll.mjs +6 -6
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/options/TransformEach.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/transform/TransformContext.mjs +7 -7
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parameters/types/boolean.mjs +9 -9
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/CommandLineParser.mjs +32 -32
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/Invocation.mjs +46 -46
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/ParserInternals.mjs +236 -236
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/parsers/atfile.mjs +3 -3
- package/kotlin/clikt-clikt/com/github/ajalt/clikt/sources/ValueSource.mjs +16 -16
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/core/MordantContext.mjs +16 -16
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/output/MordantHelpFormatter.mjs +65 -65
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/options/PromptOptions.mjs +19 -19
- package/kotlin/clikt-clikt-mordant/com/github/ajalt/clikt/parameters/transform/MordantTransformContext.mjs +1 -1
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/Color.mjs +1 -1
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/ColorSpace.mjs +5 -5
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/WhitePoint.mjs +15 -15
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/internal/Matrix.mjs +10 -10
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi16.mjs +18 -18
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/Ansi256.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/HSV.mjs +25 -25
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/ICtCp.mjs +19 -19
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGB.mjs +121 -121
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/RGBColorSpaces.mjs +134 -134
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/XYZ.mjs +68 -68
- package/kotlin/colormath-root-colormath/com/github/ajalt/colormath/model/xyY.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +19 -19
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Result.mjs +5 -5
- package/kotlin/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +24 -24
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +22 -69
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +22 -69
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +22 -69
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +22 -69
- package/kotlin/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +12 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +11 -46
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +11 -11
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +2 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +9 -9
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/ReversedViews.mjs +35 -35
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +4 -4
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs +81 -81
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +4 -4
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +8 -8
- package/kotlin/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +3 -3
- package/kotlin/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +33 -33
- package/kotlin/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +13 -13
- package/kotlin/kotlin-kotlin-stdlib/kotlin/io/encoding/Base64.mjs +39 -39
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +43 -43
- package/kotlin/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +23 -23
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +24 -24
- package/kotlin/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +12 -12
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
- package/kotlin/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +39 -39
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +60 -60
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +21 -21
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +64 -64
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/TimeSource.mjs +11 -11
- package/kotlin/kotlin-kotlin-stdlib/kotlin/time/measureTime.mjs +7 -7
- package/kotlin/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Appender.mjs +3 -3
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/ConsoleOutputAppender.mjs +2 -2
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/DirectLoggerFactory.mjs +1 -1
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs +8 -8
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs +9 -9
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs +25 -25
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs +5 -5
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs +12 -12
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs +5 -5
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +11 -11
- package/kotlin/kotlin-logging/io/github/oshai/kotlinlogging/internal/MessageInvoker.mjs +2 -2
- package/kotlin/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlin/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +25 -25
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Await.mjs +40 -40
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Await.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +166 -166
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +42 -42
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +27 -27
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +90 -96
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +316 -316
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +18 -18
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +4 -4
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +459 -459
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +23 -23
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +20 -20
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collection.mjs +10 -10
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +14 -14
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs +28 -28
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Limit.mjs +16 -16
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +9 -9
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +23 -23
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +137 -137
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/Transform.mjs +19 -19
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +32 -32
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +72 -72
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +8 -8
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +46 -46
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +71 -71
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +39 -39
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +72 -72
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +12 -12
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +9 -9
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +15 -15
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlin/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +157 -157
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +133 -133
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +12 -12
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlin/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +17 -17
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +19 -19
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +97 -97
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +59 -59
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +69 -69
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +25 -25
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +231 -231
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +70 -70
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +114 -114
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +221 -221
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +30 -30
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +47 -47
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +56 -62
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementBuilders.mjs +6 -6
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +15 -15
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +21 -21
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +11 -11
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +62 -62
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +175 -175
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +143 -143
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +212 -212
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonEncoder.mjs +186 -186
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlin/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +69 -69
- package/kotlin/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +75 -75
- package/kotlin/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +45 -45
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +47 -47
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/kotlin/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +24 -24
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +50 -50
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +22 -22
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +14 -14
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +83 -43
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +15 -15
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +9 -9
- package/kotlin/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultRequest.mjs +55 -55
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +32 -32
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +69 -69
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +78 -78
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +57 -57
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +33 -33
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +31 -31
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +108 -108
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +80 -80
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +23 -23
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +26 -26
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/observer/ResponseObserver.mjs +57 -57
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +8 -8
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/ClientSessions.mjs +36 -36
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +69 -69
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSocketContent.mjs +9 -9
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +81 -81
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/plugins/websocket/builders.mjs +17 -17
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/ClientUpgradeContent.mjs +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +20 -20
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +58 -58
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/buildersWithUrl.mjs +1 -1
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/forms/FormDataContent.mjs +10 -10
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/forms/formBuilders.mjs +11 -11
- package/kotlin/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +6 -6
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
- package/kotlin/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +19 -19
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +16 -16
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +4 -4
- package/kotlin/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/HttpClientCallLogger.mjs +28 -28
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/KtorMDCContext.web.mjs +3 -3
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LogBodyFilter.mjs +24 -24
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LogLevel.mjs +3 -3
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LoggedContent.mjs +16 -16
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logger.mjs +1 -1
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logging.mjs +286 -295
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logging.mjs.map +1 -1
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/LoggingUtils.mjs +14 -14
- package/kotlin/ktor-ktor-client-logging/io/ktor/client/plugins/logging/ObservingUtils.mjs +12 -12
- package/kotlin/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/kotlin/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/kotlin/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +95 -95
- package/kotlin/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/kotlin/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +37 -37
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +5 -5
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +15 -15
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/kotlin/ktor-ktor-http/io/ktor/http/HttpUrlEncoded.mjs +4 -4
- package/kotlin/ktor-ktor-http/io/ktor/http/Parameters.mjs +12 -12
- package/kotlin/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +59 -59
- package/kotlin/ktor-ktor-http/io/ktor/http/URLBuilder.web.mjs +1 -1
- package/kotlin/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/kotlin/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/kotlin/ktor-ktor-http/io/ktor/http/URLUtils.mjs +29 -29
- package/kotlin/ktor-ktor-http/io/ktor/http/Url.mjs +77 -77
- package/kotlin/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +31 -31
- package/kotlin/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +11 -11
- package/kotlin/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +9 -9
- package/kotlin/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +14 -14
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +88 -88
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +32 -32
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +49 -49
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +10 -10
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +4 -4
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/kotlin/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +124 -124
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +50 -50
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +64 -64
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +37 -37
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/IODispatcher.web.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +28 -28
- package/kotlin/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/kotlin/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +36 -36
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +81 -81
- package/kotlin/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/kotlin/ktor-ktor-utils/io/ktor/util/Attributes.mjs +12 -12
- package/kotlin/ktor-ktor-utils/io/ktor/util/Attributes.web.mjs +16 -16
- package/kotlin/ktor-ktor-utils/io/ktor/util/ByteChannels.mjs +55 -55
- package/kotlin/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +647 -93
- package/kotlin/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/ContentEncoders.web.mjs +5 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.web.mjs +6 -0
- package/kotlin/ktor-ktor-utils/io/ktor/util/Crypto.web.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/Encoders.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/kotlin/ktor-ktor-utils/io/ktor/util/StringValues.mjs +398 -136
- package/kotlin/ktor-ktor-utils/io/ktor/util/StringValues.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/Text.mjs +0 -52
- package/kotlin/ktor-ktor-utils/io/ktor/util/Text.mjs.map +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
- package/kotlin/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/kotlin/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
- package/kotlin/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLogger.web.mjs +10 -10
- package/kotlin/ktor-ktor-utils/io/ktor/util/logging/Logger.web.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/kotlin/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +52 -52
- package/kotlin/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/DefaultWebSocketSession.mjs +121 -121
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/Frame.web.mjs +41 -41
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +6 -6
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/PingPong.mjs +44 -44
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +46 -46
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketExtension.mjs +4 -4
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketExtensionHeader.mjs +4 -4
- package/kotlin/ktor-ktor-websockets/io/ktor/websocket/WebSocketSession.mjs +6 -6
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiCodes.mjs +24 -24
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/AnsiRender.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Constants.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/HyperlinkIds.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/MppInternal.jsCommon.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/Parsing.mjs +57 -57
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/cellwidth.mjs +7 -7
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/cellwidthtable.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/internal/gen/emojiseqtable.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/platform/MultiplatformSystem.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/BorderType.mjs +39 -39
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Lines.mjs +61 -67
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Lines.mjs.map +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Size.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Span.mjs +22 -22
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/TextStyle.mjs +79 -79
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Theme.mjs +44 -44
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Whitespace.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/Widget.mjs +2 -2
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/rendering/WidthRange.mjs +17 -17
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Borders.mjs +4 -4
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/Table.mjs +241 -241
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDsl.mjs +23 -23
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableDslInstances.mjs +153 -153
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/TableLayout.mjs +57 -57
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/table/VerticalLayout.mjs +32 -32
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Prompt.mjs +60 -60
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/StandardTerminalInterface.mjs +14 -14
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/Terminal.mjs +54 -54
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalCursor.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalDetection.mjs +7 -7
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalExtensions.mjs +1 -1
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInfo.mjs +18 -18
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/TerminalInterface.mjs +10 -10
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.js.mjs +19 -19
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/terminal/terminalinterface/TerminalInterface.jsCommon.mjs +13 -13
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/DefinitionList.mjs +62 -62
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/EmptyWidget.mjs +3 -3
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Padding.mjs +61 -61
- package/kotlin/mordant-mordant/com/github/ajalt/mordant/widgets/Text.mjs +67 -67
- package/kotlin/okio-parent-okio/okio/Buffer.mjs +412 -412
- package/kotlin/okio-parent-okio/okio/ByteString.mjs +51 -51
- package/kotlin/okio-parent-okio/okio/NonJvmPlatform.mjs +15 -15
- package/kotlin/okio-parent-okio/okio/Okio.mjs +2 -2
- package/kotlin/okio-parent-okio/okio/Options.mjs +23 -23
- package/kotlin/okio-parent-okio/okio/RealBufferedSink.mjs +37 -37
- package/kotlin/okio-parent-okio/okio/RealBufferedSource.mjs +70 -70
- package/kotlin/okio-parent-okio/okio/Segment.mjs +70 -70
- package/kotlin/okio-parent-okio/okio/SegmentPool.mjs +5 -5
- package/kotlin/okio-parent-okio/okio/SegmentedByteString.mjs +51 -51
- package/kotlin/okio-parent-okio/okio/Util.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/-Utf8.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/Buffer.mjs +24 -24
- package/kotlin/okio-parent-okio/okio/internal/ByteString.mjs +1 -1
- package/kotlin/okio-parent-okio/okio/internal/SegmentedByteString.mjs +1 -1
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/ActionCannon.mjs +9 -9
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/ActionPipe.mjs +2 -2
- package/kotlin/testmints-action-async/com/zegreatrob/testmints/action/async/SimpleSuspendAction.mjs +7 -7
- package/kotlin/tools-digger-json/com/zegreatrob/tools/digger/json/ContributionDataJson.mjs +160 -160
- package/kotlin/tools-digger-model/com/zegreatrob/tools/digger/model/Contribution.mjs +37 -37
- package/kotlin/types-types/kotools/types/collection/NotEmptyList.mjs +30 -30
- package/kotlin/types-types/kotools/types/text/NotBlankString.mjs +34 -34
- package/kotlin/types-types-internal/kotools/types/internal/ErrorMessage.mjs +15 -15
- package/kotlin/types-types-internal/kotools/types/internal/Errors.mjs +1 -1
- package/kotlin/types-types-internal/kotools/types/internal/Serializers.mjs +12 -12
- package/kotlin/uuid/com/benasher44/uuid/platform.mjs +1 -1
- package/kotlin/uuid/com/benasher44/uuid/uuid.mjs +11 -11
- package/package.json +1 -1
- package/kotlin/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +0 -159
- package/kotlin/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs.map +0 -1
|
@@ -199,7 +199,7 @@ function get_NO_CLOSE_CAUSE() {
|
|
|
199
199
|
var NO_CLOSE_CAUSE;
|
|
200
200
|
function setElementLazy($this, index, value) {
|
|
201
201
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
202
|
-
$this.
|
|
202
|
+
$this.y19_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
203
203
|
}
|
|
204
204
|
var ChannelSegmentClass;
|
|
205
205
|
function ChannelSegment() {
|
|
@@ -207,48 +207,48 @@ function ChannelSegment() {
|
|
|
207
207
|
class $ extends Segment() {
|
|
208
208
|
constructor(id, prev, channel, pointers) {
|
|
209
209
|
super(id, prev, pointers);
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
210
|
+
this.x19_1 = channel;
|
|
211
|
+
this.y19_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
return ensureNotNull(this.
|
|
213
|
+
z19() {
|
|
214
|
+
return ensureNotNull(this.x19_1);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
a1a() {
|
|
217
217
|
return get_SEGMENT_SIZE();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
b1a(index, element) {
|
|
220
220
|
setElementLazy(this, index, element);
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
return this.
|
|
222
|
+
c1a(index) {
|
|
223
|
+
return this.y19_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
d1a(index) {
|
|
226
226
|
// Inline function 'kotlin.also' call
|
|
227
|
-
var this_0 = this.
|
|
228
|
-
this.
|
|
227
|
+
var this_0 = this.c1a(index);
|
|
228
|
+
this.e1a(index);
|
|
229
229
|
return this_0;
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
e1a(index) {
|
|
232
232
|
setElementLazy(this, index, null);
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
return this.
|
|
234
|
+
f1a(index) {
|
|
235
|
+
return this.y19_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
this.
|
|
237
|
+
g1a(index, value) {
|
|
238
|
+
this.y19_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
return this.
|
|
240
|
+
h1a(index, from, to) {
|
|
241
|
+
return this.y19_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
return this.
|
|
243
|
+
i1a(index, update) {
|
|
244
|
+
return this.y19_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
o12(index, cause, context) {
|
|
247
247
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
248
248
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
249
|
-
var element = this.
|
|
249
|
+
var element = this.c1a(index_0);
|
|
250
250
|
$l$loop: while (true) {
|
|
251
|
-
var cur = this.
|
|
251
|
+
var cur = this.f1a(index_0);
|
|
252
252
|
var tmp;
|
|
253
253
|
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
254
254
|
tmp = true;
|
|
@@ -257,11 +257,11 @@ function ChannelSegment() {
|
|
|
257
257
|
}
|
|
258
258
|
if (tmp) {
|
|
259
259
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
260
|
-
if (this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
260
|
+
if (this.h1a(index_0, cur, update)) {
|
|
261
|
+
this.e1a(index_0);
|
|
262
|
+
this.v1a(index_0, !isSender);
|
|
263
263
|
if (isSender) {
|
|
264
|
-
var tmp0_safe_receiver = this.
|
|
264
|
+
var tmp0_safe_receiver = this.z19().k1a_1;
|
|
265
265
|
if (tmp0_safe_receiver == null)
|
|
266
266
|
null;
|
|
267
267
|
else {
|
|
@@ -272,9 +272,9 @@ function ChannelSegment() {
|
|
|
272
272
|
}
|
|
273
273
|
} else {
|
|
274
274
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
275
|
-
this.
|
|
275
|
+
this.e1a(index_0);
|
|
276
276
|
if (isSender) {
|
|
277
|
-
var tmp1_safe_receiver = this.
|
|
277
|
+
var tmp1_safe_receiver = this.z19().k1a_1;
|
|
278
278
|
if (tmp1_safe_receiver == null)
|
|
279
279
|
null;
|
|
280
280
|
else {
|
|
@@ -302,18 +302,18 @@ function ChannelSegment() {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
|
|
305
|
+
v1a(index, receiver) {
|
|
306
306
|
if (receiver) {
|
|
307
|
-
var tmp = this.
|
|
308
|
-
var tmp0 = this.
|
|
307
|
+
var tmp = this.z19();
|
|
308
|
+
var tmp0 = this.m12_1;
|
|
309
309
|
// Inline function 'kotlin.Long.times' call
|
|
310
310
|
var other = get_SEGMENT_SIZE();
|
|
311
311
|
// Inline function 'kotlin.Long.plus' call
|
|
312
312
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
313
313
|
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
314
|
-
tmp.
|
|
314
|
+
tmp.w1a(tmp$ret$1);
|
|
315
315
|
}
|
|
316
|
-
this.
|
|
316
|
+
this.x1a();
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
initMetadataForClass($, 'ChannelSegment');
|
|
@@ -322,8 +322,8 @@ function ChannelSegment() {
|
|
|
322
322
|
return ChannelSegmentClass;
|
|
323
323
|
}
|
|
324
324
|
function onClosedHasNext($this) {
|
|
325
|
-
$this.
|
|
326
|
-
var tmp0_elvis_lhs = $this.
|
|
325
|
+
$this.j1b_1 = get_CHANNEL_CLOSED();
|
|
326
|
+
var tmp0_elvis_lhs = $this.l1b_1.m1b();
|
|
327
327
|
var tmp;
|
|
328
328
|
if (tmp0_elvis_lhs == null) {
|
|
329
329
|
return false;
|
|
@@ -340,8 +340,8 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
340
340
|
var uCont = $completion;
|
|
341
341
|
var cancellable = getOrCreateCancellableContinuation(intercepted(uCont));
|
|
342
342
|
try {
|
|
343
|
-
$this.
|
|
344
|
-
var tmp0 = $this.
|
|
343
|
+
$this.k1b_1 = cancellable;
|
|
344
|
+
var tmp0 = $this.l1b_1;
|
|
345
345
|
var tmp2 = segment;
|
|
346
346
|
var tmp4 = index;
|
|
347
347
|
var tmp6 = r;
|
|
@@ -351,18 +351,18 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
351
351
|
if (updCellResult === get_SUSPEND()) {
|
|
352
352
|
prepareReceiverForSuspension(tmp0, waiter, tmp2, tmp4);
|
|
353
353
|
} else if (updCellResult === get_FAILED()) {
|
|
354
|
-
if (compare(tmp6, tmp0.
|
|
355
|
-
tmp2.
|
|
354
|
+
if (compare(tmp6, tmp0.n1b()) < 0) {
|
|
355
|
+
tmp2.h1b();
|
|
356
356
|
}
|
|
357
357
|
$l$block_0: {
|
|
358
358
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
359
|
-
var segment_0 = tmp0.
|
|
359
|
+
var segment_0 = tmp0.q1a_1.kotlinx$atomicfu$value;
|
|
360
360
|
$l$loop_0: while (true) {
|
|
361
|
-
if (tmp0.
|
|
361
|
+
if (tmp0.o1b()) {
|
|
362
362
|
onClosedHasNextNoWaiterSuspend($this);
|
|
363
363
|
break $l$block_0;
|
|
364
364
|
}
|
|
365
|
-
var r_0 = tmp0.
|
|
365
|
+
var r_0 = tmp0.m1a_1.atomicfu$getAndIncrement$long();
|
|
366
366
|
// Inline function 'kotlin.Long.div' call
|
|
367
367
|
var other = get_SEGMENT_SIZE();
|
|
368
368
|
var id = divide(r_0, fromInt(other));
|
|
@@ -370,7 +370,7 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
370
370
|
var other_0 = get_SEGMENT_SIZE();
|
|
371
371
|
var tmp$ret$8 = modulo(r_0, fromInt(other_0));
|
|
372
372
|
var i = convertToInt(tmp$ret$8);
|
|
373
|
-
if (!equalsLong(segment_0.
|
|
373
|
+
if (!equalsLong(segment_0.m12_1, id)) {
|
|
374
374
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment_0);
|
|
375
375
|
var tmp;
|
|
376
376
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -389,8 +389,8 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
389
389
|
prepareReceiverForSuspension(tmp0, tmp1_safe_receiver, segment_0, i);
|
|
390
390
|
}
|
|
391
391
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
392
|
-
if (compare(r_0, tmp0.
|
|
393
|
-
segment_0.
|
|
392
|
+
if (compare(r_0, tmp0.n1b()) < 0) {
|
|
393
|
+
segment_0.h1b();
|
|
394
394
|
}
|
|
395
395
|
continue $l$loop_0;
|
|
396
396
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -398,39 +398,39 @@ function *hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
398
398
|
var message = 'unexpected';
|
|
399
399
|
throw IllegalStateException().o(toString_0(message));
|
|
400
400
|
} else {
|
|
401
|
-
segment_0.
|
|
402
|
-
$this.
|
|
403
|
-
$this.
|
|
404
|
-
var tmp0_safe_receiver = $this.
|
|
405
|
-
cancellable.
|
|
401
|
+
segment_0.h1b();
|
|
402
|
+
$this.j1b_1 = updCellResult_0;
|
|
403
|
+
$this.k1b_1 = null;
|
|
404
|
+
var tmp0_safe_receiver = $this.l1b_1.k1a_1;
|
|
405
|
+
cancellable.p13(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.l1b_1, tmp0_safe_receiver, updCellResult_0));
|
|
406
406
|
}
|
|
407
407
|
break $l$block_0;
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
} else {
|
|
411
|
-
tmp2.
|
|
412
|
-
$this.
|
|
413
|
-
$this.
|
|
414
|
-
var tmp0_safe_receiver_0 = $this.
|
|
415
|
-
cancellable.
|
|
411
|
+
tmp2.h1b();
|
|
412
|
+
$this.j1b_1 = updCellResult;
|
|
413
|
+
$this.k1b_1 = null;
|
|
414
|
+
var tmp0_safe_receiver_0 = $this.l1b_1.k1a_1;
|
|
415
|
+
cancellable.p13(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.l1b_1, tmp0_safe_receiver_0, updCellResult));
|
|
416
416
|
}
|
|
417
417
|
} catch ($p) {
|
|
418
418
|
if ($p instanceof Error) {
|
|
419
419
|
var e = $p;
|
|
420
|
-
cancellable.
|
|
420
|
+
cancellable.l13();
|
|
421
421
|
throw e;
|
|
422
422
|
} else {
|
|
423
423
|
throw $p;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
return cancellable.
|
|
426
|
+
return cancellable.s10();
|
|
427
427
|
};
|
|
428
428
|
}
|
|
429
429
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
430
|
-
var cont = ensureNotNull($this.
|
|
431
|
-
$this.
|
|
432
|
-
$this.
|
|
433
|
-
var cause = $this.
|
|
430
|
+
var cont = ensureNotNull($this.k1b_1);
|
|
431
|
+
$this.k1b_1 = null;
|
|
432
|
+
$this.j1b_1 = get_CHANNEL_CLOSED();
|
|
433
|
+
var cause = $this.l1b_1.m1b();
|
|
434
434
|
if (cause == null) {
|
|
435
435
|
// Inline function 'kotlin.coroutines.resume' call
|
|
436
436
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -445,7 +445,7 @@ function onClosedHasNextNoWaiterSuspend($this) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
function _get_bufferEndCounter__2d4hee($this) {
|
|
448
|
-
return $this.
|
|
448
|
+
return $this.n1a_1.kotlinx$atomicfu$value;
|
|
449
449
|
}
|
|
450
450
|
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
451
451
|
// Inline function 'kotlin.let' call
|
|
@@ -458,15 +458,15 @@ function *onClosedSend($this, element, $completion) {
|
|
|
458
458
|
(yield () => {
|
|
459
459
|
var uCont = $completion;
|
|
460
460
|
var cancellable = new (CancellableContinuationImpl())(intercepted(uCont), 1);
|
|
461
|
-
cancellable.
|
|
461
|
+
cancellable.r10();
|
|
462
462
|
$l$block: {
|
|
463
|
-
var tmp0_safe_receiver = $this.
|
|
463
|
+
var tmp0_safe_receiver = $this.k1a_1;
|
|
464
464
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
465
465
|
if (tmp1_safe_receiver == null)
|
|
466
466
|
null;
|
|
467
467
|
else {
|
|
468
468
|
// Inline function 'kotlin.let' call
|
|
469
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
469
|
+
addSuppressed(tmp1_safe_receiver, $this.p1b());
|
|
470
470
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
471
471
|
// Inline function 'kotlin.Companion.failure' call
|
|
472
472
|
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
@@ -475,13 +475,13 @@ function *onClosedSend($this, element, $completion) {
|
|
|
475
475
|
break $l$block;
|
|
476
476
|
}
|
|
477
477
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
478
|
-
var exception_0 = $this.
|
|
478
|
+
var exception_0 = $this.p1b();
|
|
479
479
|
// Inline function 'kotlin.Companion.failure' call
|
|
480
480
|
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
481
481
|
var tmp$ret$9 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
482
482
|
cancellable.yc(tmp$ret$9);
|
|
483
483
|
}
|
|
484
|
-
return cancellable.
|
|
484
|
+
return cancellable.s10();
|
|
485
485
|
});
|
|
486
486
|
return Unit_instance;
|
|
487
487
|
}
|
|
@@ -500,7 +500,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
500
500
|
var s_0 = s;
|
|
501
501
|
switch (updateCellSend(tmp0, tmp2, tmp4, tmp6, s_0, cancellable, false)) {
|
|
502
502
|
case 0:
|
|
503
|
-
tmp2.
|
|
503
|
+
tmp2.h1b();
|
|
504
504
|
// Inline function 'kotlin.coroutines.resume' call
|
|
505
505
|
|
|
506
506
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -520,19 +520,19 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
520
520
|
prepareSenderForSuspension(tmp0, cancellable, tmp2, tmp4);
|
|
521
521
|
break;
|
|
522
522
|
case 4:
|
|
523
|
-
if (compare(s_0, tmp0.
|
|
524
|
-
tmp2.
|
|
523
|
+
if (compare(s_0, tmp0.q1b()) < 0) {
|
|
524
|
+
tmp2.h1b();
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
528
528
|
break;
|
|
529
529
|
case 5:
|
|
530
|
-
tmp2.
|
|
530
|
+
tmp2.h1b();
|
|
531
531
|
$l$block_5: {
|
|
532
532
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
533
|
-
var segment_0 = tmp0.
|
|
533
|
+
var segment_0 = tmp0.p1a_1.kotlinx$atomicfu$value;
|
|
534
534
|
$l$loop_0: while (true) {
|
|
535
|
-
var sendersAndCloseStatusCur = tmp0.
|
|
535
|
+
var sendersAndCloseStatusCur = tmp0.l1a_1.atomicfu$getAndIncrement$long();
|
|
536
536
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
537
537
|
var s_1 = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
538
538
|
var closed = _get_isClosedForSend0__kxgf9m(tmp0, sendersAndCloseStatusCur);
|
|
@@ -543,7 +543,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
543
543
|
var other_0 = get_SEGMENT_SIZE();
|
|
544
544
|
var tmp$ret$15 = modulo(s_1, fromInt(other_0));
|
|
545
545
|
var i = convertToInt(tmp$ret$15);
|
|
546
|
-
if (!equalsLong(segment_0.
|
|
546
|
+
if (!equalsLong(segment_0.m12_1, id)) {
|
|
547
547
|
var tmp0_elvis_lhs = findSegmentSend(tmp0, id, segment_0);
|
|
548
548
|
var tmp;
|
|
549
549
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -561,7 +561,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
561
561
|
}
|
|
562
562
|
switch (updateCellSend(tmp0, segment_0, i, tmp6, s_1, cancellable, closed)) {
|
|
563
563
|
case 0:
|
|
564
|
-
segment_0.
|
|
564
|
+
segment_0.h1b();
|
|
565
565
|
// Inline function 'kotlin.coroutines.resume' call
|
|
566
566
|
|
|
567
567
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -579,7 +579,7 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
579
579
|
break $l$block_5;
|
|
580
580
|
case 2:
|
|
581
581
|
if (closed) {
|
|
582
|
-
segment_0.
|
|
582
|
+
segment_0.x1a();
|
|
583
583
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
584
584
|
break $l$block_5;
|
|
585
585
|
}
|
|
@@ -593,14 +593,14 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
593
593
|
|
|
594
594
|
break $l$block_5;
|
|
595
595
|
case 4:
|
|
596
|
-
if (compare(s_1, tmp0.
|
|
597
|
-
segment_0.
|
|
596
|
+
if (compare(s_1, tmp0.q1b()) < 0) {
|
|
597
|
+
segment_0.h1b();
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
601
601
|
break $l$block_5;
|
|
602
602
|
case 5:
|
|
603
|
-
segment_0.
|
|
603
|
+
segment_0.h1b();
|
|
604
604
|
continue $l$loop_0;
|
|
605
605
|
case 3:
|
|
606
606
|
// Inline function 'kotlin.error' call
|
|
@@ -621,21 +621,21 @@ function *sendOnNoWaiterSuspend($this, segment, index, element, s, $completion)
|
|
|
621
621
|
} catch ($p) {
|
|
622
622
|
if ($p instanceof Error) {
|
|
623
623
|
var e = $p;
|
|
624
|
-
cancellable.
|
|
624
|
+
cancellable.l13();
|
|
625
625
|
throw e;
|
|
626
626
|
} else {
|
|
627
627
|
throw $p;
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
return cancellable.
|
|
630
|
+
return cancellable.s10();
|
|
631
631
|
});
|
|
632
632
|
return Unit_instance;
|
|
633
633
|
}
|
|
634
634
|
function prepareSenderForSuspension($this, $receiver, segment, index) {
|
|
635
|
-
$receiver.
|
|
635
|
+
$receiver.r13(segment, index + get_SEGMENT_SIZE() | 0);
|
|
636
636
|
}
|
|
637
637
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
638
|
-
var tmp0_safe_receiver = $this.
|
|
638
|
+
var tmp0_safe_receiver = $this.k1a_1;
|
|
639
639
|
if (tmp0_safe_receiver == null)
|
|
640
640
|
null;
|
|
641
641
|
else {
|
|
@@ -643,7 +643,7 @@ function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
|
643
643
|
}
|
|
644
644
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
645
645
|
// Inline function 'kotlin.Companion.failure' call
|
|
646
|
-
var exception = recoverStackTrace_0($this.
|
|
646
|
+
var exception = recoverStackTrace_0($this.p1b(), cont);
|
|
647
647
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
648
648
|
cont.yc(tmp$ret$1);
|
|
649
649
|
}
|
|
@@ -657,34 +657,34 @@ function SendBroadcast() {
|
|
|
657
657
|
return SendBroadcastClass;
|
|
658
658
|
}
|
|
659
659
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
660
|
-
segment.
|
|
660
|
+
segment.b1a(index, element);
|
|
661
661
|
if (closed)
|
|
662
662
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
663
|
-
var state = segment.
|
|
663
|
+
var state = segment.f1a(index);
|
|
664
664
|
if (state === null) {
|
|
665
665
|
if (bufferOrRendezvousSend($this, s)) {
|
|
666
|
-
if (segment.
|
|
666
|
+
if (segment.h1a(index, null, get_BUFFERED())) {
|
|
667
667
|
return 1;
|
|
668
668
|
}
|
|
669
669
|
} else {
|
|
670
670
|
if (waiter == null) {
|
|
671
671
|
return 3;
|
|
672
672
|
} else {
|
|
673
|
-
if (segment.
|
|
673
|
+
if (segment.h1a(index, null, waiter))
|
|
674
674
|
return 2;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
677
|
} else {
|
|
678
678
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
679
|
-
segment.
|
|
679
|
+
segment.e1a(index);
|
|
680
680
|
var tmp;
|
|
681
681
|
if (tryResumeReceiver($this, state, element)) {
|
|
682
|
-
segment.
|
|
683
|
-
$this.
|
|
682
|
+
segment.g1a(index, get_DONE_RCV());
|
|
683
|
+
$this.r1b();
|
|
684
684
|
tmp = 0;
|
|
685
685
|
} else {
|
|
686
|
-
if (!(segment.
|
|
687
|
-
segment.
|
|
686
|
+
if (!(segment.i1a(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
687
|
+
segment.v1a(index, true);
|
|
688
688
|
}
|
|
689
689
|
tmp = 5;
|
|
690
690
|
}
|
|
@@ -695,55 +695,55 @@ function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
|
695
695
|
}
|
|
696
696
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
697
697
|
while (true) {
|
|
698
|
-
var state = segment.
|
|
698
|
+
var state = segment.f1a(index);
|
|
699
699
|
if (state === null) {
|
|
700
700
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
701
|
-
if (segment.
|
|
701
|
+
if (segment.h1a(index, null, get_BUFFERED())) {
|
|
702
702
|
return 1;
|
|
703
703
|
}
|
|
704
704
|
} else {
|
|
705
705
|
if (closed) {
|
|
706
|
-
if (segment.
|
|
707
|
-
segment.
|
|
706
|
+
if (segment.h1a(index, null, get_INTERRUPTED_SEND())) {
|
|
707
|
+
segment.v1a(index, false);
|
|
708
708
|
return 4;
|
|
709
709
|
}
|
|
710
710
|
} else if (waiter == null)
|
|
711
711
|
return 3;
|
|
712
|
-
else if (segment.
|
|
712
|
+
else if (segment.h1a(index, null, waiter))
|
|
713
713
|
return 2;
|
|
714
714
|
}
|
|
715
715
|
} else if (state === get_IN_BUFFER()) {
|
|
716
|
-
if (segment.
|
|
716
|
+
if (segment.h1a(index, state, get_BUFFERED())) {
|
|
717
717
|
return 1;
|
|
718
718
|
}
|
|
719
719
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
720
|
-
segment.
|
|
720
|
+
segment.e1a(index);
|
|
721
721
|
return 5;
|
|
722
722
|
} else if (state === get_POISONED()) {
|
|
723
|
-
segment.
|
|
723
|
+
segment.e1a(index);
|
|
724
724
|
return 5;
|
|
725
725
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
726
|
-
segment.
|
|
726
|
+
segment.e1a(index);
|
|
727
727
|
completeCloseOrCancel($this);
|
|
728
728
|
return 4;
|
|
729
729
|
} else {
|
|
730
730
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
731
|
-
segment.
|
|
731
|
+
segment.e1a(index);
|
|
732
732
|
var tmp;
|
|
733
733
|
if (state instanceof WaiterEB()) {
|
|
734
|
-
tmp = state.
|
|
734
|
+
tmp = state.s1b_1;
|
|
735
735
|
} else {
|
|
736
736
|
tmp = state;
|
|
737
737
|
}
|
|
738
738
|
var receiver = tmp;
|
|
739
739
|
var tmp_0;
|
|
740
740
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
741
|
-
segment.
|
|
742
|
-
$this.
|
|
741
|
+
segment.g1a(index, get_DONE_RCV());
|
|
742
|
+
$this.r1b();
|
|
743
743
|
tmp_0 = 0;
|
|
744
744
|
} else {
|
|
745
|
-
if (!(segment.
|
|
746
|
-
segment.
|
|
745
|
+
if (!(segment.i1a(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
746
|
+
segment.v1a(index, true);
|
|
747
747
|
}
|
|
748
748
|
tmp_0 = 5;
|
|
749
749
|
}
|
|
@@ -763,9 +763,9 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
763
763
|
if (compare(curSenders, _get_bufferEndCounter__2d4hee($this)) < 0) {
|
|
764
764
|
tmp = true;
|
|
765
765
|
} else {
|
|
766
|
-
var tmp0 = $this.
|
|
766
|
+
var tmp0 = $this.q1b();
|
|
767
767
|
// Inline function 'kotlin.Long.plus' call
|
|
768
|
-
var other = $this.
|
|
768
|
+
var other = $this.j1a_1;
|
|
769
769
|
var tmp$ret$0 = add(tmp0, fromInt(other));
|
|
770
770
|
tmp = compare(curSenders, tmp$ret$0) < 0;
|
|
771
771
|
}
|
|
@@ -774,24 +774,24 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
774
774
|
function tryResumeReceiver($this, $receiver, element) {
|
|
775
775
|
var tmp;
|
|
776
776
|
if (isInterface($receiver, SelectInstance())) {
|
|
777
|
-
tmp = $receiver.
|
|
777
|
+
tmp = $receiver.x1b($this, element);
|
|
778
778
|
} else {
|
|
779
779
|
if ($receiver instanceof ReceiveCatching()) {
|
|
780
780
|
if (!($receiver instanceof ReceiveCatching()))
|
|
781
781
|
THROW_CCE();
|
|
782
|
-
var tmp_0 = Companion_getInstance().
|
|
783
|
-
var tmp1_safe_receiver = $this.
|
|
784
|
-
tmp = tryResume0($receiver.
|
|
782
|
+
var tmp_0 = Companion_getInstance().v1b(element);
|
|
783
|
+
var tmp1_safe_receiver = $this.k1a_1;
|
|
784
|
+
tmp = tryResume0($receiver.w1b_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
785
785
|
} else {
|
|
786
786
|
if ($receiver instanceof BufferedChannelIterator()) {
|
|
787
787
|
if (!($receiver instanceof BufferedChannelIterator()))
|
|
788
788
|
THROW_CCE();
|
|
789
|
-
tmp = $receiver.
|
|
789
|
+
tmp = $receiver.t1b(element);
|
|
790
790
|
} else {
|
|
791
791
|
if (isInterface($receiver, CancellableContinuation())) {
|
|
792
792
|
if (!isInterface($receiver, CancellableContinuation()))
|
|
793
793
|
THROW_CCE();
|
|
794
|
-
var tmp2_safe_receiver = $this.
|
|
794
|
+
var tmp2_safe_receiver = $this.k1a_1;
|
|
795
795
|
tmp = tryResume0($receiver, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
796
796
|
} else {
|
|
797
797
|
// Inline function 'kotlin.error' call
|
|
@@ -819,18 +819,18 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
819
819
|
if (updCellResult === get_SUSPEND()) {
|
|
820
820
|
prepareReceiverForSuspension(tmp0, cancellable, tmp2, tmp4);
|
|
821
821
|
} else if (updCellResult === get_FAILED()) {
|
|
822
|
-
if (compare(r_0, tmp0.
|
|
823
|
-
tmp2.
|
|
822
|
+
if (compare(r_0, tmp0.n1b()) < 0) {
|
|
823
|
+
tmp2.h1b();
|
|
824
824
|
}
|
|
825
825
|
$l$block_0: {
|
|
826
826
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
827
|
-
var segment_0 = tmp0.
|
|
827
|
+
var segment_0 = tmp0.q1a_1.kotlinx$atomicfu$value;
|
|
828
828
|
$l$loop_0: while (true) {
|
|
829
|
-
if (tmp0.
|
|
829
|
+
if (tmp0.o1b()) {
|
|
830
830
|
onClosedReceiveOnNoWaiterSuspend($this, cancellable);
|
|
831
831
|
break $l$block_0;
|
|
832
832
|
}
|
|
833
|
-
var r_1 = tmp0.
|
|
833
|
+
var r_1 = tmp0.m1a_1.atomicfu$getAndIncrement$long();
|
|
834
834
|
// Inline function 'kotlin.Long.div' call
|
|
835
835
|
var other = get_SEGMENT_SIZE();
|
|
836
836
|
var id = divide(r_1, fromInt(other));
|
|
@@ -838,7 +838,7 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
838
838
|
var other_0 = get_SEGMENT_SIZE();
|
|
839
839
|
var tmp$ret$8 = modulo(r_1, fromInt(other_0));
|
|
840
840
|
var i = convertToInt(tmp$ret$8);
|
|
841
|
-
if (!equalsLong(segment_0.
|
|
841
|
+
if (!equalsLong(segment_0.m12_1, id)) {
|
|
842
842
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment_0);
|
|
843
843
|
var tmp;
|
|
844
844
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -857,8 +857,8 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
857
857
|
prepareReceiverForSuspension(tmp0, tmp1_safe_receiver, segment_0, i);
|
|
858
858
|
}
|
|
859
859
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
860
|
-
if (compare(r_1, tmp0.
|
|
861
|
-
segment_0.
|
|
860
|
+
if (compare(r_1, tmp0.n1b()) < 0) {
|
|
861
|
+
segment_0.h1b();
|
|
862
862
|
}
|
|
863
863
|
continue $l$loop_0;
|
|
864
864
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -866,35 +866,35 @@ function *receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
866
866
|
var message = 'unexpected';
|
|
867
867
|
throw IllegalStateException().o(toString_0(message));
|
|
868
868
|
} else {
|
|
869
|
-
segment_0.
|
|
870
|
-
var tmp0_safe_receiver = $this.
|
|
869
|
+
segment_0.h1b();
|
|
870
|
+
var tmp0_safe_receiver = $this.k1a_1;
|
|
871
871
|
var onCancellation = tmp0_safe_receiver == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver);
|
|
872
|
-
cancellable.
|
|
872
|
+
cancellable.p13(updCellResult_0, onCancellation);
|
|
873
873
|
}
|
|
874
874
|
break $l$block_0;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
} else {
|
|
878
|
-
tmp2.
|
|
879
|
-
var tmp0_safe_receiver_0 = $this.
|
|
878
|
+
tmp2.h1b();
|
|
879
|
+
var tmp0_safe_receiver_0 = $this.k1a_1;
|
|
880
880
|
var onCancellation_0 = tmp0_safe_receiver_0 == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver_0);
|
|
881
|
-
cancellable.
|
|
881
|
+
cancellable.p13(updCellResult, onCancellation_0);
|
|
882
882
|
}
|
|
883
883
|
} catch ($p) {
|
|
884
884
|
if ($p instanceof Error) {
|
|
885
885
|
var e = $p;
|
|
886
|
-
cancellable.
|
|
886
|
+
cancellable.l13();
|
|
887
887
|
throw e;
|
|
888
888
|
} else {
|
|
889
889
|
throw $p;
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
return cancellable.
|
|
892
|
+
return cancellable.s10();
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
function prepareReceiverForSuspension($this, $receiver, segment, index) {
|
|
896
|
-
$this.
|
|
897
|
-
$receiver.
|
|
896
|
+
$this.y1b();
|
|
897
|
+
$receiver.r13(segment, index);
|
|
898
898
|
}
|
|
899
899
|
function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
900
900
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
@@ -904,36 +904,36 @@ function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
|
904
904
|
cont.yc(tmp$ret$1);
|
|
905
905
|
}
|
|
906
906
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
907
|
-
var state = segment.
|
|
907
|
+
var state = segment.f1a(index);
|
|
908
908
|
if (state === null) {
|
|
909
909
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
910
|
-
var this_0 = $this.
|
|
910
|
+
var this_0 = $this.l1a_1.kotlinx$atomicfu$value;
|
|
911
911
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
912
912
|
if (compare(r, senders) >= 0) {
|
|
913
913
|
if (waiter === null) {
|
|
914
914
|
return get_SUSPEND_NO_WAITER();
|
|
915
915
|
}
|
|
916
|
-
if (segment.
|
|
916
|
+
if (segment.h1a(index, state, waiter)) {
|
|
917
917
|
expandBuffer($this);
|
|
918
918
|
return get_SUSPEND();
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
} else if (state === get_BUFFERED())
|
|
922
|
-
if (segment.
|
|
922
|
+
if (segment.h1a(index, state, get_DONE_RCV())) {
|
|
923
923
|
expandBuffer($this);
|
|
924
|
-
return segment.
|
|
924
|
+
return segment.d1a(index);
|
|
925
925
|
}
|
|
926
926
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
927
927
|
}
|
|
928
928
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
929
929
|
$l$loop: while (true) {
|
|
930
|
-
var state = segment.
|
|
930
|
+
var state = segment.f1a(index);
|
|
931
931
|
if (state === null || state === get_IN_BUFFER()) {
|
|
932
932
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
933
|
-
var this_0 = $this.
|
|
933
|
+
var this_0 = $this.l1a_1.kotlinx$atomicfu$value;
|
|
934
934
|
var senders = bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
935
935
|
if (compare(r, senders) < 0) {
|
|
936
|
-
if (segment.
|
|
936
|
+
if (segment.h1a(index, state, get_POISONED())) {
|
|
937
937
|
expandBuffer($this);
|
|
938
938
|
return get_FAILED();
|
|
939
939
|
}
|
|
@@ -941,15 +941,15 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
941
941
|
if (waiter === null) {
|
|
942
942
|
return get_SUSPEND_NO_WAITER();
|
|
943
943
|
}
|
|
944
|
-
if (segment.
|
|
944
|
+
if (segment.h1a(index, state, waiter)) {
|
|
945
945
|
expandBuffer($this);
|
|
946
946
|
return get_SUSPEND();
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
} else if (state === get_BUFFERED()) {
|
|
950
|
-
if (segment.
|
|
950
|
+
if (segment.h1a(index, state, get_DONE_RCV())) {
|
|
951
951
|
expandBuffer($this);
|
|
952
|
-
return segment.
|
|
952
|
+
return segment.d1a(index);
|
|
953
953
|
}
|
|
954
954
|
} else if (state === get_INTERRUPTED_SEND())
|
|
955
955
|
return get_FAILED();
|
|
@@ -961,23 +961,23 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
961
961
|
} else if (state === get_RESUMING_BY_EB())
|
|
962
962
|
continue $l$loop;
|
|
963
963
|
else {
|
|
964
|
-
if (segment.
|
|
964
|
+
if (segment.h1a(index, state, get_RESUMING_BY_RCV())) {
|
|
965
965
|
var helpExpandBuffer = state instanceof WaiterEB();
|
|
966
966
|
var tmp;
|
|
967
967
|
if (state instanceof WaiterEB()) {
|
|
968
|
-
tmp = state.
|
|
968
|
+
tmp = state.s1b_1;
|
|
969
969
|
} else {
|
|
970
970
|
tmp = state;
|
|
971
971
|
}
|
|
972
972
|
var sender = tmp;
|
|
973
973
|
var tmp_0;
|
|
974
974
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
975
|
-
segment.
|
|
975
|
+
segment.g1a(index, get_DONE_RCV());
|
|
976
976
|
expandBuffer($this);
|
|
977
|
-
tmp_0 = segment.
|
|
977
|
+
tmp_0 = segment.d1a(index);
|
|
978
978
|
} else {
|
|
979
|
-
segment.
|
|
980
|
-
segment.
|
|
979
|
+
segment.g1a(index, get_INTERRUPTED_SEND());
|
|
980
|
+
segment.v1a(index, false);
|
|
981
981
|
if (helpExpandBuffer) {
|
|
982
982
|
expandBuffer($this);
|
|
983
983
|
}
|
|
@@ -998,14 +998,14 @@ function tryResumeSender($this, $receiver, segment, index) {
|
|
|
998
998
|
if (isInterface($receiver, SelectInstance())) {
|
|
999
999
|
if (!($receiver instanceof SelectImplementation()))
|
|
1000
1000
|
THROW_CCE();
|
|
1001
|
-
var trySelectResult = $receiver.
|
|
1001
|
+
var trySelectResult = $receiver.d1c($this, Unit_instance);
|
|
1002
1002
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1003
|
-
segment.
|
|
1003
|
+
segment.e1a(index);
|
|
1004
1004
|
}
|
|
1005
1005
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1006
1006
|
} else {
|
|
1007
1007
|
if ($receiver instanceof SendBroadcast()) {
|
|
1008
|
-
tmp = tryResume0($receiver.
|
|
1008
|
+
tmp = tryResume0($receiver.z1b_1, true);
|
|
1009
1009
|
} else {
|
|
1010
1010
|
// Inline function 'kotlin.error' call
|
|
1011
1011
|
var message = 'Unexpected waiter: ' + toString_0($receiver);
|
|
@@ -1018,21 +1018,21 @@ function tryResumeSender($this, $receiver, segment, index) {
|
|
|
1018
1018
|
function expandBuffer($this) {
|
|
1019
1019
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1020
1020
|
return Unit_instance;
|
|
1021
|
-
var segment = $this.
|
|
1021
|
+
var segment = $this.r1a_1.kotlinx$atomicfu$value;
|
|
1022
1022
|
try_again: while (true) {
|
|
1023
|
-
var b = $this.
|
|
1023
|
+
var b = $this.n1a_1.atomicfu$getAndIncrement$long();
|
|
1024
1024
|
// Inline function 'kotlin.Long.div' call
|
|
1025
1025
|
var other = get_SEGMENT_SIZE();
|
|
1026
1026
|
var id = divide(b, fromInt(other));
|
|
1027
|
-
var s = $this.
|
|
1027
|
+
var s = $this.n1b();
|
|
1028
1028
|
if (compare(s, b) <= 0) {
|
|
1029
|
-
if (compare(segment.
|
|
1029
|
+
if (compare(segment.m12_1, id) < 0 && !(segment.d1b() == null)) {
|
|
1030
1030
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1031
1031
|
}
|
|
1032
1032
|
incCompletedExpandBufferAttempts($this);
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
}
|
|
1035
|
-
if (!equalsLong(segment.
|
|
1035
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
1036
1036
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1037
1037
|
var tmp;
|
|
1038
1038
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1056,17 +1056,17 @@ function expandBuffer($this) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
1058
1058
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1059
|
-
var state = segment.
|
|
1059
|
+
var state = segment.f1a(index);
|
|
1060
1060
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1061
|
-
if (compare(b, $this.
|
|
1062
|
-
if (segment.
|
|
1061
|
+
if (compare(b, $this.m1a_1.kotlinx$atomicfu$value) >= 0) {
|
|
1062
|
+
if (segment.h1a(index, state, get_RESUMING_BY_EB())) {
|
|
1063
1063
|
var tmp;
|
|
1064
1064
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1065
|
-
segment.
|
|
1065
|
+
segment.g1a(index, get_BUFFERED());
|
|
1066
1066
|
tmp = true;
|
|
1067
1067
|
} else {
|
|
1068
|
-
segment.
|
|
1069
|
-
segment.
|
|
1068
|
+
segment.g1a(index, get_INTERRUPTED_SEND());
|
|
1069
|
+
segment.v1a(index, false);
|
|
1070
1070
|
tmp = false;
|
|
1071
1071
|
}
|
|
1072
1072
|
return tmp;
|
|
@@ -1077,20 +1077,20 @@ function updateCellExpandBuffer($this, segment, index, b) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1079
1079
|
$l$loop: while (true) {
|
|
1080
|
-
var state = segment.
|
|
1080
|
+
var state = segment.f1a(index);
|
|
1081
1081
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1082
|
-
if (compare(b, $this.
|
|
1083
|
-
if (segment.
|
|
1082
|
+
if (compare(b, $this.m1a_1.kotlinx$atomicfu$value) < 0) {
|
|
1083
|
+
if (segment.h1a(index, state, new (WaiterEB())(state)))
|
|
1084
1084
|
return true;
|
|
1085
1085
|
} else {
|
|
1086
|
-
if (segment.
|
|
1086
|
+
if (segment.h1a(index, state, get_RESUMING_BY_EB())) {
|
|
1087
1087
|
var tmp;
|
|
1088
1088
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1089
|
-
segment.
|
|
1089
|
+
segment.g1a(index, get_BUFFERED());
|
|
1090
1090
|
tmp = true;
|
|
1091
1091
|
} else {
|
|
1092
|
-
segment.
|
|
1093
|
-
segment.
|
|
1092
|
+
segment.g1a(index, get_INTERRUPTED_SEND());
|
|
1093
|
+
segment.v1a(index, false);
|
|
1094
1094
|
tmp = false;
|
|
1095
1095
|
}
|
|
1096
1096
|
return tmp;
|
|
@@ -1101,7 +1101,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1101
1101
|
return false;
|
|
1102
1102
|
else {
|
|
1103
1103
|
if (state === null) {
|
|
1104
|
-
if (segment.
|
|
1104
|
+
if (segment.h1a(index, state, get_IN_BUFFER()))
|
|
1105
1105
|
return true;
|
|
1106
1106
|
} else {
|
|
1107
1107
|
if (state === get_BUFFERED())
|
|
@@ -1131,12 +1131,12 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1131
1131
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1132
1132
|
nAttempts = nAttempts === VOID ? new (Long())(1, 0) : nAttempts;
|
|
1133
1133
|
// Inline function 'kotlin.also' call
|
|
1134
|
-
var this_0 = $this.
|
|
1134
|
+
var this_0 = $this.o1a_1.atomicfu$addAndGet$long(nAttempts);
|
|
1135
1135
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1136
1136
|
if (!equalsLong(bitwiseAnd(this_0, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1137
1137
|
$l$loop: while (true) {
|
|
1138
1138
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1139
|
-
var this_1 = $this.
|
|
1139
|
+
var this_1 = $this.o1a_1.kotlinx$atomicfu$value;
|
|
1140
1140
|
if (!!equalsLong(bitwiseAnd(this_1, new (Long())(0, 1073741824)), new (Long())(0, 0))) {
|
|
1141
1141
|
break $l$loop;
|
|
1142
1142
|
}
|
|
@@ -1148,26 +1148,26 @@ function BufferedChannelIterator() {
|
|
|
1148
1148
|
if (BufferedChannelIteratorClass === VOID) {
|
|
1149
1149
|
class $ {
|
|
1150
1150
|
constructor($outer) {
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1151
|
+
this.l1b_1 = $outer;
|
|
1152
|
+
this.j1b_1 = get_NO_RECEIVE_RESULT();
|
|
1153
|
+
this.k1b_1 = null;
|
|
1154
1154
|
}
|
|
1155
|
-
*
|
|
1155
|
+
*e1c($completion) {
|
|
1156
1156
|
var tmp;
|
|
1157
|
-
if (!(this.
|
|
1157
|
+
if (!(this.j1b_1 === get_NO_RECEIVE_RESULT()) && !(this.j1b_1 === get_CHANNEL_CLOSED())) {
|
|
1158
1158
|
tmp = true;
|
|
1159
1159
|
} else {
|
|
1160
|
-
var tmp0 = this.
|
|
1160
|
+
var tmp0 = this.l1b_1;
|
|
1161
1161
|
var tmp$ret$0;
|
|
1162
1162
|
$l$block_0: {
|
|
1163
1163
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
1164
|
-
var segment = tmp0.
|
|
1164
|
+
var segment = tmp0.q1a_1.kotlinx$atomicfu$value;
|
|
1165
1165
|
$l$loop_0: while (true) {
|
|
1166
|
-
if (tmp0.
|
|
1166
|
+
if (tmp0.o1b()) {
|
|
1167
1167
|
tmp$ret$0 = onClosedHasNext(this);
|
|
1168
1168
|
break $l$block_0;
|
|
1169
1169
|
}
|
|
1170
|
-
var r = tmp0.
|
|
1170
|
+
var r = tmp0.m1a_1.atomicfu$getAndIncrement$long();
|
|
1171
1171
|
// Inline function 'kotlin.Long.div' call
|
|
1172
1172
|
var other = get_SEGMENT_SIZE();
|
|
1173
1173
|
var id = divide(r, fromInt(other));
|
|
@@ -1175,7 +1175,7 @@ function BufferedChannelIterator() {
|
|
|
1175
1175
|
var other_0 = get_SEGMENT_SIZE();
|
|
1176
1176
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
1177
1177
|
var i = convertToInt(tmp$ret$3);
|
|
1178
|
-
if (!equalsLong(segment.
|
|
1178
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
1179
1179
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment);
|
|
1180
1180
|
var tmp_0;
|
|
1181
1181
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1198,16 +1198,16 @@ function BufferedChannelIterator() {
|
|
|
1198
1198
|
var message = 'unreachable';
|
|
1199
1199
|
throw IllegalStateException().o(toString_0(message));
|
|
1200
1200
|
} else if (updCellResult === get_FAILED()) {
|
|
1201
|
-
if (compare(r, tmp0.
|
|
1202
|
-
segment.
|
|
1201
|
+
if (compare(r, tmp0.n1b()) < 0) {
|
|
1202
|
+
segment.h1b();
|
|
1203
1203
|
}
|
|
1204
1204
|
continue $l$loop_0;
|
|
1205
1205
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
1206
1206
|
var segm = segment;
|
|
1207
1207
|
return yield* /*#__NOINLINE__*/hasNextOnNoWaiterSuspend(this, segm, i, r, $completion);
|
|
1208
1208
|
} else {
|
|
1209
|
-
segment.
|
|
1210
|
-
this.
|
|
1209
|
+
segment.h1b();
|
|
1210
|
+
this.j1b_1 = updCellResult;
|
|
1211
1211
|
tmp_1 = true;
|
|
1212
1212
|
}
|
|
1213
1213
|
tmp$ret$0 = tmp_1;
|
|
@@ -1218,38 +1218,38 @@ function BufferedChannelIterator() {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
return tmp;
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1222
|
-
var tmp0_safe_receiver = this.
|
|
1221
|
+
r13(segment, index) {
|
|
1222
|
+
var tmp0_safe_receiver = this.k1b_1;
|
|
1223
1223
|
if (tmp0_safe_receiver == null)
|
|
1224
1224
|
null;
|
|
1225
1225
|
else {
|
|
1226
|
-
tmp0_safe_receiver.
|
|
1226
|
+
tmp0_safe_receiver.r13(segment, index);
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
n1() {
|
|
1230
|
-
var result = this.
|
|
1230
|
+
var result = this.j1b_1;
|
|
1231
1231
|
// Inline function 'kotlin.check' call
|
|
1232
1232
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1233
1233
|
var message = '`hasNext()` has not been invoked';
|
|
1234
1234
|
throw IllegalStateException().o(toString_0(message));
|
|
1235
1235
|
}
|
|
1236
|
-
this.
|
|
1236
|
+
this.j1b_1 = get_NO_RECEIVE_RESULT();
|
|
1237
1237
|
if (result === get_CHANNEL_CLOSED())
|
|
1238
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.
|
|
1238
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.l1b_1));
|
|
1239
1239
|
return result;
|
|
1240
1240
|
}
|
|
1241
|
-
|
|
1242
|
-
var cont = ensureNotNull(this.
|
|
1243
|
-
this.
|
|
1244
|
-
this.
|
|
1245
|
-
var tmp0_safe_receiver = this.
|
|
1246
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
var cont = ensureNotNull(this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
var cause = this.
|
|
1241
|
+
t1b(element) {
|
|
1242
|
+
var cont = ensureNotNull(this.k1b_1);
|
|
1243
|
+
this.k1b_1 = null;
|
|
1244
|
+
this.j1b_1 = element;
|
|
1245
|
+
var tmp0_safe_receiver = this.l1b_1.k1a_1;
|
|
1246
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.l1b_1, tmp0_safe_receiver, element));
|
|
1247
|
+
}
|
|
1248
|
+
f1c() {
|
|
1249
|
+
var cont = ensureNotNull(this.k1b_1);
|
|
1250
|
+
this.k1b_1 = null;
|
|
1251
|
+
this.j1b_1 = get_CHANNEL_CLOSED();
|
|
1252
|
+
var cause = this.l1b_1.m1b();
|
|
1253
1253
|
if (cause == null) {
|
|
1254
1254
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1255
1255
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -1270,11 +1270,11 @@ function BufferedChannelIterator() {
|
|
|
1270
1270
|
return BufferedChannelIteratorClass;
|
|
1271
1271
|
}
|
|
1272
1272
|
function _get_receiveException__foorc1($this) {
|
|
1273
|
-
var tmp0_elvis_lhs = $this.
|
|
1274
|
-
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().
|
|
1273
|
+
var tmp0_elvis_lhs = $this.m1b();
|
|
1274
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().k1c('Channel was closed') : tmp0_elvis_lhs;
|
|
1275
1275
|
}
|
|
1276
1276
|
function invokeCloseHandler($this) {
|
|
1277
|
-
var tmp0 = $this.
|
|
1277
|
+
var tmp0 = $this.u1a_1;
|
|
1278
1278
|
var tmp$ret$0;
|
|
1279
1279
|
$l$block: {
|
|
1280
1280
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -1303,10 +1303,10 @@ function invokeCloseHandler($this) {
|
|
|
1303
1303
|
var closeHandler = tmp_0;
|
|
1304
1304
|
if (typeof closeHandler !== 'function')
|
|
1305
1305
|
THROW_CCE();
|
|
1306
|
-
closeHandler($this.
|
|
1306
|
+
closeHandler($this.m1b());
|
|
1307
1307
|
}
|
|
1308
1308
|
function markClosed($this) {
|
|
1309
|
-
var tmp0 = $this.
|
|
1309
|
+
var tmp0 = $this.l1a_1;
|
|
1310
1310
|
var tmp$ret$0;
|
|
1311
1311
|
$l$block: {
|
|
1312
1312
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1341,7 +1341,7 @@ function markClosed($this) {
|
|
|
1341
1341
|
return tmp$ret$0;
|
|
1342
1342
|
}
|
|
1343
1343
|
function markCancelled($this) {
|
|
1344
|
-
var tmp0 = $this.
|
|
1344
|
+
var tmp0 = $this.l1a_1;
|
|
1345
1345
|
var tmp$ret$0;
|
|
1346
1346
|
$l$block: {
|
|
1347
1347
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1360,7 +1360,7 @@ function markCancelled($this) {
|
|
|
1360
1360
|
return tmp$ret$0;
|
|
1361
1361
|
}
|
|
1362
1362
|
function markCancellationStarted($this) {
|
|
1363
|
-
var tmp0 = $this.
|
|
1363
|
+
var tmp0 = $this.l1a_1;
|
|
1364
1364
|
var tmp$ret$0;
|
|
1365
1365
|
$l$block: {
|
|
1366
1366
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1386,14 +1386,14 @@ function markCancellationStarted($this) {
|
|
|
1386
1386
|
return tmp$ret$0;
|
|
1387
1387
|
}
|
|
1388
1388
|
function completeCloseOrCancel($this) {
|
|
1389
|
-
$this.
|
|
1389
|
+
$this.l1c();
|
|
1390
1390
|
}
|
|
1391
1391
|
function completeClose($this, sendersCur) {
|
|
1392
1392
|
var lastSegment = closeLinkedList($this);
|
|
1393
|
-
if ($this.
|
|
1393
|
+
if ($this.n1c()) {
|
|
1394
1394
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1395
1395
|
if (!equalsLong(lastBufferedCellGlobalIndex, new (Long())(-1, -1))) {
|
|
1396
|
-
$this.
|
|
1396
|
+
$this.m1c(lastBufferedCellGlobalIndex);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -1404,14 +1404,14 @@ function completeCancel($this, sendersCur) {
|
|
|
1404
1404
|
removeUnprocessedElements($this, lastSegment);
|
|
1405
1405
|
}
|
|
1406
1406
|
function closeLinkedList($this) {
|
|
1407
|
-
var lastSegment = $this.
|
|
1407
|
+
var lastSegment = $this.r1a_1.kotlinx$atomicfu$value;
|
|
1408
1408
|
// Inline function 'kotlin.let' call
|
|
1409
|
-
var it = $this.
|
|
1410
|
-
if (compare(it.
|
|
1409
|
+
var it = $this.p1a_1.kotlinx$atomicfu$value;
|
|
1410
|
+
if (compare(it.m12_1, lastSegment.m12_1) > 0)
|
|
1411
1411
|
lastSegment = it;
|
|
1412
1412
|
// Inline function 'kotlin.let' call
|
|
1413
|
-
var it_0 = $this.
|
|
1414
|
-
if (compare(it_0.
|
|
1413
|
+
var it_0 = $this.q1a_1.kotlinx$atomicfu$value;
|
|
1414
|
+
if (compare(it_0.m12_1, lastSegment.m12_1) > 0)
|
|
1415
1415
|
lastSegment = it_0;
|
|
1416
1416
|
return close(lastSegment);
|
|
1417
1417
|
}
|
|
@@ -1423,19 +1423,19 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1423
1423
|
do {
|
|
1424
1424
|
var index = inductionVariable;
|
|
1425
1425
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1426
|
-
var tmp0 = segment.
|
|
1426
|
+
var tmp0 = segment.m12_1;
|
|
1427
1427
|
// Inline function 'kotlin.Long.times' call
|
|
1428
1428
|
var other = get_SEGMENT_SIZE();
|
|
1429
1429
|
// Inline function 'kotlin.Long.plus' call
|
|
1430
1430
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1431
1431
|
var globalIndex = add(this_0, fromInt(index));
|
|
1432
|
-
if (compare(globalIndex, $this.
|
|
1432
|
+
if (compare(globalIndex, $this.q1b()) < 0)
|
|
1433
1433
|
return new (Long())(-1, -1);
|
|
1434
1434
|
cell_update: while (true) {
|
|
1435
|
-
var state = segment.
|
|
1435
|
+
var state = segment.f1a(index);
|
|
1436
1436
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1437
|
-
if (segment.
|
|
1438
|
-
segment.
|
|
1437
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1438
|
+
segment.x1a();
|
|
1439
1439
|
break cell_update;
|
|
1440
1440
|
}
|
|
1441
1441
|
} else if (state === get_BUFFERED())
|
|
@@ -1445,7 +1445,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
while (0 <= inductionVariable);
|
|
1448
|
-
var tmp0_elvis_lhs = segment.
|
|
1448
|
+
var tmp0_elvis_lhs = segment.g1b();
|
|
1449
1449
|
var tmp;
|
|
1450
1450
|
if (tmp0_elvis_lhs == null) {
|
|
1451
1451
|
return new (Long())(-1, -1);
|
|
@@ -1456,7 +1456,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
function removeUnprocessedElements($this, lastSegment) {
|
|
1459
|
-
var onUndeliveredElement = $this.
|
|
1459
|
+
var onUndeliveredElement = $this.k1a_1;
|
|
1460
1460
|
var undeliveredElementException = null;
|
|
1461
1461
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1462
1462
|
var segment = lastSegment;
|
|
@@ -1466,33 +1466,33 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1466
1466
|
do {
|
|
1467
1467
|
var index = inductionVariable;
|
|
1468
1468
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1469
|
-
var tmp0 = segment.
|
|
1469
|
+
var tmp0 = segment.m12_1;
|
|
1470
1470
|
// Inline function 'kotlin.Long.times' call
|
|
1471
1471
|
var other = get_SEGMENT_SIZE();
|
|
1472
1472
|
// Inline function 'kotlin.Long.plus' call
|
|
1473
1473
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1474
1474
|
var globalIndex = add(this_0, fromInt(index));
|
|
1475
1475
|
update_cell: while (true) {
|
|
1476
|
-
var state = segment.
|
|
1476
|
+
var state = segment.f1a(index);
|
|
1477
1477
|
if (state === get_DONE_RCV())
|
|
1478
1478
|
break process_segments;
|
|
1479
1479
|
else {
|
|
1480
1480
|
if (state === get_BUFFERED()) {
|
|
1481
|
-
if (compare(globalIndex, $this.
|
|
1481
|
+
if (compare(globalIndex, $this.q1b()) < 0)
|
|
1482
1482
|
break process_segments;
|
|
1483
|
-
if (segment.
|
|
1483
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1484
1484
|
if (!(onUndeliveredElement == null)) {
|
|
1485
|
-
var element = segment.
|
|
1485
|
+
var element = segment.c1a(index);
|
|
1486
1486
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1487
1487
|
}
|
|
1488
|
-
segment.
|
|
1489
|
-
segment.
|
|
1488
|
+
segment.e1a(index);
|
|
1489
|
+
segment.x1a();
|
|
1490
1490
|
break update_cell;
|
|
1491
1491
|
}
|
|
1492
1492
|
} else {
|
|
1493
1493
|
if (state === get_IN_BUFFER() || state === null) {
|
|
1494
|
-
if (segment.
|
|
1495
|
-
segment.
|
|
1494
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1495
|
+
segment.x1a();
|
|
1496
1496
|
break update_cell;
|
|
1497
1497
|
}
|
|
1498
1498
|
} else {
|
|
@@ -1503,23 +1503,23 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1503
1503
|
tmp = state instanceof WaiterEB();
|
|
1504
1504
|
}
|
|
1505
1505
|
if (tmp) {
|
|
1506
|
-
if (compare(globalIndex, $this.
|
|
1506
|
+
if (compare(globalIndex, $this.q1b()) < 0)
|
|
1507
1507
|
break process_segments;
|
|
1508
1508
|
var tmp_0;
|
|
1509
1509
|
if (state instanceof WaiterEB()) {
|
|
1510
|
-
tmp_0 = state.
|
|
1510
|
+
tmp_0 = state.s1b_1;
|
|
1511
1511
|
} else {
|
|
1512
1512
|
tmp_0 = (!(state == null) ? isInterface(state, Waiter()) : false) ? state : THROW_CCE();
|
|
1513
1513
|
}
|
|
1514
1514
|
var sender = tmp_0;
|
|
1515
|
-
if (segment.
|
|
1515
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1516
1516
|
if (!(onUndeliveredElement == null)) {
|
|
1517
|
-
var element_0 = segment.
|
|
1517
|
+
var element_0 = segment.c1a(index);
|
|
1518
1518
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1519
1519
|
}
|
|
1520
1520
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1521
|
-
segment.
|
|
1522
|
-
segment.
|
|
1521
|
+
segment.e1a(index);
|
|
1522
|
+
segment.x1a();
|
|
1523
1523
|
break update_cell;
|
|
1524
1524
|
}
|
|
1525
1525
|
} else {
|
|
@@ -1539,7 +1539,7 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
}
|
|
1541
1541
|
while (0 <= inductionVariable);
|
|
1542
|
-
var tmp0_elvis_lhs = segment.
|
|
1542
|
+
var tmp0_elvis_lhs = segment.g1b();
|
|
1543
1543
|
var tmp_1;
|
|
1544
1544
|
if (tmp0_elvis_lhs == null) {
|
|
1545
1545
|
break process_segments;
|
|
@@ -1590,7 +1590,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1590
1590
|
do {
|
|
1591
1591
|
var index = inductionVariable;
|
|
1592
1592
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1593
|
-
var tmp0 = segment.
|
|
1593
|
+
var tmp0 = segment.m12_1;
|
|
1594
1594
|
// Inline function 'kotlin.Long.times' call
|
|
1595
1595
|
var other = get_SEGMENT_SIZE();
|
|
1596
1596
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -1599,24 +1599,24 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1599
1599
|
if (compare(tmp$ret$1, sendersCounter) < 0)
|
|
1600
1600
|
break process_segments;
|
|
1601
1601
|
cell_update: while (true) {
|
|
1602
|
-
var state = segment.
|
|
1602
|
+
var state = segment.f1a(index);
|
|
1603
1603
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1604
|
-
if (segment.
|
|
1605
|
-
segment.
|
|
1604
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1605
|
+
segment.x1a();
|
|
1606
1606
|
break cell_update;
|
|
1607
1607
|
}
|
|
1608
1608
|
} else {
|
|
1609
1609
|
if (state instanceof WaiterEB()) {
|
|
1610
|
-
if (segment.
|
|
1611
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
1612
|
-
segment.
|
|
1610
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1611
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.s1b_1);
|
|
1612
|
+
segment.v1a(index, true);
|
|
1613
1613
|
break cell_update;
|
|
1614
1614
|
}
|
|
1615
1615
|
} else {
|
|
1616
1616
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1617
|
-
if (segment.
|
|
1617
|
+
if (segment.h1a(index, state, get_CHANNEL_CLOSED())) {
|
|
1618
1618
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1619
|
-
segment.
|
|
1619
|
+
segment.v1a(index, true);
|
|
1620
1620
|
break cell_update;
|
|
1621
1621
|
}
|
|
1622
1622
|
} else {
|
|
@@ -1627,7 +1627,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
1629
|
while (0 <= inductionVariable);
|
|
1630
|
-
segment = segment.
|
|
1630
|
+
segment = segment.g1b();
|
|
1631
1631
|
}
|
|
1632
1632
|
var tmp0_0 = suspendedReceivers;
|
|
1633
1633
|
$l$block: {
|
|
@@ -1664,7 +1664,7 @@ function resumeSenderOnCancelledChannel($this, $receiver) {
|
|
|
1664
1664
|
function resumeWaiterOnClosedChannel($this, $receiver, receiver) {
|
|
1665
1665
|
if ($receiver instanceof SendBroadcast()) {
|
|
1666
1666
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1667
|
-
var this_0 = $receiver.
|
|
1667
|
+
var this_0 = $receiver.z1b_1;
|
|
1668
1668
|
// Inline function 'kotlin.Companion.success' call
|
|
1669
1669
|
var tmp$ret$1 = _Result___init__impl__xyqfz8(false);
|
|
1670
1670
|
this_0.yc(tmp$ret$1);
|
|
@@ -1672,23 +1672,23 @@ function resumeWaiterOnClosedChannel($this, $receiver, receiver) {
|
|
|
1672
1672
|
if (isInterface($receiver, CancellableContinuation())) {
|
|
1673
1673
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1674
1674
|
// Inline function 'kotlin.Companion.failure' call
|
|
1675
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
1675
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.p1b();
|
|
1676
1676
|
var tmp$ret$3 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1677
1677
|
$receiver.yc(tmp$ret$3);
|
|
1678
1678
|
} else {
|
|
1679
1679
|
if ($receiver instanceof ReceiveCatching()) {
|
|
1680
|
-
var tmp0 = $receiver.
|
|
1680
|
+
var tmp0 = $receiver.w1b_1;
|
|
1681
1681
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1682
1682
|
// Inline function 'kotlin.Companion.success' call
|
|
1683
|
-
var value = new (ChannelResult())(Companion_getInstance().
|
|
1683
|
+
var value = new (ChannelResult())(Companion_getInstance().o1c($this.m1b()));
|
|
1684
1684
|
var tmp$ret$5 = _Result___init__impl__xyqfz8(value);
|
|
1685
1685
|
tmp0.yc(tmp$ret$5);
|
|
1686
1686
|
} else {
|
|
1687
1687
|
if ($receiver instanceof BufferedChannelIterator()) {
|
|
1688
|
-
$receiver.
|
|
1688
|
+
$receiver.f1c();
|
|
1689
1689
|
} else {
|
|
1690
1690
|
if (isInterface($receiver, SelectInstance()))
|
|
1691
|
-
$receiver.
|
|
1691
|
+
$receiver.x1b($this, get_CHANNEL_CLOSED());
|
|
1692
1692
|
else {
|
|
1693
1693
|
// Inline function 'kotlin.error' call
|
|
1694
1694
|
var message = 'Unexpected waiter: ' + toString_0($receiver);
|
|
@@ -1720,7 +1720,7 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1720
1720
|
|
|
1721
1721
|
var tmp$ret$1 = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
1722
1722
|
completeClose($this, tmp$ret$1);
|
|
1723
|
-
tmp = isClosedForReceive ? !$this.
|
|
1723
|
+
tmp = isClosedForReceive ? !$this.p1c() : true;
|
|
1724
1724
|
break;
|
|
1725
1725
|
case 3:
|
|
1726
1726
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -1741,9 +1741,9 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1743
1743
|
while (true) {
|
|
1744
|
-
var state = segment.
|
|
1744
|
+
var state = segment.f1a(index);
|
|
1745
1745
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1746
|
-
if (segment.
|
|
1746
|
+
if (segment.h1a(index, state, get_POISONED())) {
|
|
1747
1747
|
expandBuffer($this);
|
|
1748
1748
|
return false;
|
|
1749
1749
|
}
|
|
@@ -1762,11 +1762,11 @@ function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
|
1762
1762
|
else if (state === get_RESUMING_BY_RCV())
|
|
1763
1763
|
return false;
|
|
1764
1764
|
else
|
|
1765
|
-
return equalsLong(globalIndex, $this.
|
|
1765
|
+
return equalsLong(globalIndex, $this.q1b());
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
function findSegmentSend($this, id, startFrom) {
|
|
1769
|
-
var tmp0 = $this.
|
|
1769
|
+
var tmp0 = $this.p1a_1;
|
|
1770
1770
|
var tmp6 = createSegmentFunction();
|
|
1771
1771
|
var tmp$ret$0;
|
|
1772
1772
|
$l$block_2: {
|
|
@@ -1785,22 +1785,22 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1785
1785
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1786
1786
|
while (true) {
|
|
1787
1787
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1788
|
-
if (compare(cur.
|
|
1788
|
+
if (compare(cur.m12_1, tmp2.m12_1) >= 0) {
|
|
1789
1789
|
tmp$ret$1 = true;
|
|
1790
1790
|
break $l$block_1;
|
|
1791
1791
|
}
|
|
1792
|
-
if (!tmp2.
|
|
1792
|
+
if (!tmp2.z1a()) {
|
|
1793
1793
|
tmp$ret$1 = false;
|
|
1794
1794
|
break $l$block_1;
|
|
1795
1795
|
}
|
|
1796
1796
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1797
|
-
if (cur.
|
|
1797
|
+
if (cur.a1b()) {
|
|
1798
1798
|
cur.n6();
|
|
1799
1799
|
}
|
|
1800
1800
|
tmp$ret$1 = true;
|
|
1801
1801
|
break $l$block_1;
|
|
1802
1802
|
}
|
|
1803
|
-
if (tmp2.
|
|
1803
|
+
if (tmp2.a1b()) {
|
|
1804
1804
|
tmp2.n6();
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
@@ -1819,29 +1819,29 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1819
1819
|
var tmp_0;
|
|
1820
1820
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1821
1821
|
completeCloseOrCancel($this);
|
|
1822
|
-
var tmp0_0 = startFrom.
|
|
1822
|
+
var tmp0_0 = startFrom.m12_1;
|
|
1823
1823
|
// Inline function 'kotlin.Long.times' call
|
|
1824
1824
|
var other = get_SEGMENT_SIZE();
|
|
1825
1825
|
var tmp$ret$6 = multiply(tmp0_0, fromInt(other));
|
|
1826
|
-
if (compare(tmp$ret$6, $this.
|
|
1827
|
-
startFrom.
|
|
1826
|
+
if (compare(tmp$ret$6, $this.q1b()) < 0) {
|
|
1827
|
+
startFrom.h1b();
|
|
1828
1828
|
}
|
|
1829
1829
|
tmp_0 = null;
|
|
1830
1830
|
} else {
|
|
1831
1831
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1832
1832
|
var tmp_1;
|
|
1833
|
-
if (compare(segment.
|
|
1834
|
-
var tmp0_1 = segment.
|
|
1833
|
+
if (compare(segment.m12_1, id) > 0) {
|
|
1834
|
+
var tmp0_1 = segment.m12_1;
|
|
1835
1835
|
// Inline function 'kotlin.Long.times' call
|
|
1836
1836
|
var other_0 = get_SEGMENT_SIZE();
|
|
1837
1837
|
var tmp$ret$7 = multiply(tmp0_1, fromInt(other_0));
|
|
1838
1838
|
updateSendersCounterIfLower($this, tmp$ret$7);
|
|
1839
|
-
var tmp0_2 = segment.
|
|
1839
|
+
var tmp0_2 = segment.m12_1;
|
|
1840
1840
|
// Inline function 'kotlin.Long.times' call
|
|
1841
1841
|
var other_1 = get_SEGMENT_SIZE();
|
|
1842
1842
|
var tmp$ret$8 = multiply(tmp0_2, fromInt(other_1));
|
|
1843
|
-
if (compare(tmp$ret$8, $this.
|
|
1844
|
-
segment.
|
|
1843
|
+
if (compare(tmp$ret$8, $this.q1b()) < 0) {
|
|
1844
|
+
segment.h1b();
|
|
1845
1845
|
}
|
|
1846
1846
|
tmp_1 = null;
|
|
1847
1847
|
} else {
|
|
@@ -1853,7 +1853,7 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1853
1853
|
return tmp_0;
|
|
1854
1854
|
}
|
|
1855
1855
|
function findSegmentReceive($this, id, startFrom) {
|
|
1856
|
-
var tmp0 = $this.
|
|
1856
|
+
var tmp0 = $this.q1a_1;
|
|
1857
1857
|
var tmp6 = createSegmentFunction();
|
|
1858
1858
|
var tmp$ret$0;
|
|
1859
1859
|
$l$block_2: {
|
|
@@ -1872,22 +1872,22 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1872
1872
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1873
1873
|
while (true) {
|
|
1874
1874
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1875
|
-
if (compare(cur.
|
|
1875
|
+
if (compare(cur.m12_1, tmp2.m12_1) >= 0) {
|
|
1876
1876
|
tmp$ret$1 = true;
|
|
1877
1877
|
break $l$block_1;
|
|
1878
1878
|
}
|
|
1879
|
-
if (!tmp2.
|
|
1879
|
+
if (!tmp2.z1a()) {
|
|
1880
1880
|
tmp$ret$1 = false;
|
|
1881
1881
|
break $l$block_1;
|
|
1882
1882
|
}
|
|
1883
1883
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1884
|
-
if (cur.
|
|
1884
|
+
if (cur.a1b()) {
|
|
1885
1885
|
cur.n6();
|
|
1886
1886
|
}
|
|
1887
1887
|
tmp$ret$1 = true;
|
|
1888
1888
|
break $l$block_1;
|
|
1889
1889
|
}
|
|
1890
|
-
if (tmp2.
|
|
1890
|
+
if (tmp2.a1b()) {
|
|
1891
1891
|
tmp2.n6();
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
@@ -1906,12 +1906,12 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1906
1906
|
var tmp_0;
|
|
1907
1907
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1908
1908
|
completeCloseOrCancel($this);
|
|
1909
|
-
var tmp0_0 = startFrom.
|
|
1909
|
+
var tmp0_0 = startFrom.m12_1;
|
|
1910
1910
|
// Inline function 'kotlin.Long.times' call
|
|
1911
1911
|
var other = get_SEGMENT_SIZE();
|
|
1912
1912
|
var tmp$ret$6 = multiply(tmp0_0, fromInt(other));
|
|
1913
|
-
if (compare(tmp$ret$6, $this.
|
|
1914
|
-
startFrom.
|
|
1913
|
+
if (compare(tmp$ret$6, $this.n1b()) < 0) {
|
|
1914
|
+
startFrom.h1b();
|
|
1915
1915
|
}
|
|
1916
1916
|
tmp_0 = null;
|
|
1917
1917
|
} else {
|
|
@@ -1927,43 +1927,43 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1927
1927
|
tmp_1 = false;
|
|
1928
1928
|
}
|
|
1929
1929
|
if (tmp_1) {
|
|
1930
|
-
var tmp0_2 = $this.
|
|
1930
|
+
var tmp0_2 = $this.r1a_1;
|
|
1931
1931
|
$l$block_5: {
|
|
1932
1932
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1933
1933
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1934
1934
|
while (true) {
|
|
1935
1935
|
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
1936
|
-
if (compare(cur_0.
|
|
1936
|
+
if (compare(cur_0.m12_1, segment.m12_1) >= 0) {
|
|
1937
1937
|
break $l$block_5;
|
|
1938
1938
|
}
|
|
1939
|
-
if (!segment.
|
|
1939
|
+
if (!segment.z1a()) {
|
|
1940
1940
|
break $l$block_5;
|
|
1941
1941
|
}
|
|
1942
1942
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
1943
|
-
if (cur_0.
|
|
1943
|
+
if (cur_0.a1b()) {
|
|
1944
1944
|
cur_0.n6();
|
|
1945
1945
|
}
|
|
1946
1946
|
break $l$block_5;
|
|
1947
1947
|
}
|
|
1948
|
-
if (segment.
|
|
1948
|
+
if (segment.a1b()) {
|
|
1949
1949
|
segment.n6();
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
1954
|
var tmp_2;
|
|
1955
|
-
if (compare(segment.
|
|
1956
|
-
var tmp0_3 = segment.
|
|
1955
|
+
if (compare(segment.m12_1, id) > 0) {
|
|
1956
|
+
var tmp0_3 = segment.m12_1;
|
|
1957
1957
|
// Inline function 'kotlin.Long.times' call
|
|
1958
1958
|
var other_1 = get_SEGMENT_SIZE();
|
|
1959
1959
|
var tmp$ret$11 = multiply(tmp0_3, fromInt(other_1));
|
|
1960
1960
|
updateReceiversCounterIfLower($this, tmp$ret$11);
|
|
1961
|
-
var tmp0_4 = segment.
|
|
1961
|
+
var tmp0_4 = segment.m12_1;
|
|
1962
1962
|
// Inline function 'kotlin.Long.times' call
|
|
1963
1963
|
var other_2 = get_SEGMENT_SIZE();
|
|
1964
1964
|
var tmp$ret$12 = multiply(tmp0_4, fromInt(other_2));
|
|
1965
|
-
if (compare(tmp$ret$12, $this.
|
|
1966
|
-
segment.
|
|
1965
|
+
if (compare(tmp$ret$12, $this.n1b()) < 0) {
|
|
1966
|
+
segment.h1b();
|
|
1967
1967
|
}
|
|
1968
1968
|
tmp_2 = null;
|
|
1969
1969
|
} else {
|
|
@@ -1975,7 +1975,7 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1975
1975
|
return tmp_0;
|
|
1976
1976
|
}
|
|
1977
1977
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
1978
|
-
var tmp0 = $this.
|
|
1978
|
+
var tmp0 = $this.r1a_1;
|
|
1979
1979
|
var tmp6 = createSegmentFunction();
|
|
1980
1980
|
var tmp$ret$0;
|
|
1981
1981
|
$l$block_2: {
|
|
@@ -1994,22 +1994,22 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
1994
1994
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
1995
1995
|
while (true) {
|
|
1996
1996
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1997
|
-
if (compare(cur.
|
|
1997
|
+
if (compare(cur.m12_1, tmp2.m12_1) >= 0) {
|
|
1998
1998
|
tmp$ret$1 = true;
|
|
1999
1999
|
break $l$block_1;
|
|
2000
2000
|
}
|
|
2001
|
-
if (!tmp2.
|
|
2001
|
+
if (!tmp2.z1a()) {
|
|
2002
2002
|
tmp$ret$1 = false;
|
|
2003
2003
|
break $l$block_1;
|
|
2004
2004
|
}
|
|
2005
2005
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2006
|
-
if (cur.
|
|
2006
|
+
if (cur.a1b()) {
|
|
2007
2007
|
cur.n6();
|
|
2008
2008
|
}
|
|
2009
2009
|
tmp$ret$1 = true;
|
|
2010
2010
|
break $l$block_1;
|
|
2011
2011
|
}
|
|
2012
|
-
if (tmp2.
|
|
2012
|
+
if (tmp2.a1b()) {
|
|
2013
2013
|
tmp2.n6();
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
@@ -2034,15 +2034,15 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2034
2034
|
} else {
|
|
2035
2035
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
2036
2036
|
var tmp_1;
|
|
2037
|
-
if (compare(segment.
|
|
2037
|
+
if (compare(segment.m12_1, id) > 0) {
|
|
2038
2038
|
// Inline function 'kotlin.Long.plus' call
|
|
2039
2039
|
var tmp_2 = add(currentBufferEndCounter, fromInt(1));
|
|
2040
|
-
var tmp0_0 = segment.
|
|
2040
|
+
var tmp0_0 = segment.m12_1;
|
|
2041
2041
|
// Inline function 'kotlin.Long.times' call
|
|
2042
2042
|
var other = get_SEGMENT_SIZE();
|
|
2043
2043
|
var tmp$ret$7 = multiply(tmp0_0, fromInt(other));
|
|
2044
|
-
if ($this.
|
|
2045
|
-
var tmp0_1 = segment.
|
|
2044
|
+
if ($this.n1a_1.atomicfu$compareAndSet(tmp_2, tmp$ret$7)) {
|
|
2045
|
+
var tmp0_1 = segment.m12_1;
|
|
2046
2046
|
// Inline function 'kotlin.Long.times' call
|
|
2047
2047
|
var other_0 = get_SEGMENT_SIZE();
|
|
2048
2048
|
var tmp$ret$8 = multiply(tmp0_1, fromInt(other_0));
|
|
@@ -2061,8 +2061,8 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2063
2063
|
var segment = startFrom;
|
|
2064
|
-
$l$loop: while (compare(segment.
|
|
2065
|
-
var tmp0_elvis_lhs = segment.
|
|
2064
|
+
$l$loop: while (compare(segment.m12_1, id) < 0) {
|
|
2065
|
+
var tmp0_elvis_lhs = segment.d1b();
|
|
2066
2066
|
var tmp;
|
|
2067
2067
|
if (tmp0_elvis_lhs == null) {
|
|
2068
2068
|
break $l$loop;
|
|
@@ -2072,8 +2072,8 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2072
2072
|
segment = tmp;
|
|
2073
2073
|
}
|
|
2074
2074
|
while (true) {
|
|
2075
|
-
$l$loop_0: while (segment.
|
|
2076
|
-
var tmp1_elvis_lhs = segment.
|
|
2075
|
+
$l$loop_0: while (segment.y1a()) {
|
|
2076
|
+
var tmp1_elvis_lhs = segment.d1b();
|
|
2077
2077
|
var tmp_0;
|
|
2078
2078
|
if (tmp1_elvis_lhs == null) {
|
|
2079
2079
|
break $l$loop_0;
|
|
@@ -2082,7 +2082,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
segment = tmp_0;
|
|
2084
2084
|
}
|
|
2085
|
-
var tmp0 = $this.
|
|
2085
|
+
var tmp0 = $this.r1a_1;
|
|
2086
2086
|
var tmp2 = segment;
|
|
2087
2087
|
var tmp$ret$0;
|
|
2088
2088
|
$l$block_1: {
|
|
@@ -2091,22 +2091,22 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2091
2091
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2092
2092
|
while (true) {
|
|
2093
2093
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2094
|
-
if (compare(cur.
|
|
2094
|
+
if (compare(cur.m12_1, tmp2.m12_1) >= 0) {
|
|
2095
2095
|
tmp$ret$0 = true;
|
|
2096
2096
|
break $l$block_1;
|
|
2097
2097
|
}
|
|
2098
|
-
if (!tmp2.
|
|
2098
|
+
if (!tmp2.z1a()) {
|
|
2099
2099
|
tmp$ret$0 = false;
|
|
2100
2100
|
break $l$block_1;
|
|
2101
2101
|
}
|
|
2102
2102
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2103
|
-
if (cur.
|
|
2103
|
+
if (cur.a1b()) {
|
|
2104
2104
|
cur.n6();
|
|
2105
2105
|
}
|
|
2106
2106
|
tmp$ret$0 = true;
|
|
2107
2107
|
break $l$block_1;
|
|
2108
2108
|
}
|
|
2109
|
-
if (tmp2.
|
|
2109
|
+
if (tmp2.a1b()) {
|
|
2110
2110
|
tmp2.n6();
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
@@ -2119,7 +2119,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2119
2119
|
function updateSendersCounterIfLower($this, value) {
|
|
2120
2120
|
var tmp$ret$0;
|
|
2121
2121
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2122
|
-
var this_0 = $this.
|
|
2122
|
+
var this_0 = $this.l1a_1;
|
|
2123
2123
|
while (true) {
|
|
2124
2124
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2125
2125
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -2129,7 +2129,7 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2129
2129
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2130
2130
|
var tmp$ret$3 = convertToInt(shiftRight(cur, 60));
|
|
2131
2131
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$3);
|
|
2132
|
-
if ($this.
|
|
2132
|
+
if ($this.l1a_1.atomicfu$compareAndSet(cur, update))
|
|
2133
2133
|
return Unit_instance;
|
|
2134
2134
|
}
|
|
2135
2135
|
return tmp$ret$0;
|
|
@@ -2137,12 +2137,12 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2137
2137
|
function updateReceiversCounterIfLower($this, value) {
|
|
2138
2138
|
var tmp$ret$0;
|
|
2139
2139
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
2140
|
-
var this_0 = $this.
|
|
2140
|
+
var this_0 = $this.m1a_1;
|
|
2141
2141
|
while (true) {
|
|
2142
2142
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2143
2143
|
if (compare(cur, value) >= 0)
|
|
2144
2144
|
return Unit_instance;
|
|
2145
|
-
if ($this.
|
|
2145
|
+
if ($this.m1a_1.atomicfu$compareAndSet(cur, value))
|
|
2146
2146
|
return Unit_instance;
|
|
2147
2147
|
}
|
|
2148
2148
|
return tmp$ret$0;
|
|
@@ -2151,7 +2151,7 @@ function bindCancellationFunResult($this, $receiver) {
|
|
|
2151
2151
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2152
2152
|
}
|
|
2153
2153
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2154
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2154
|
+
callUndeliveredElement(ensureNotNull($this.k1a_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2155
2155
|
}
|
|
2156
2156
|
function bindCancellationFun($this, $receiver, element) {
|
|
2157
2157
|
return BufferedChannel$bindCancellationFun$lambda($receiver, element);
|
|
@@ -2160,13 +2160,13 @@ function bindCancellationFun_0($this, $receiver) {
|
|
|
2160
2160
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2161
2161
|
}
|
|
2162
2162
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2163
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2163
|
+
callUndeliveredElement(ensureNotNull($this.k1a_1), element, context);
|
|
2164
2164
|
}
|
|
2165
2165
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
2166
2166
|
return (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) => {
|
|
2167
2167
|
var tmp;
|
|
2168
2168
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2169
|
-
callUndeliveredElement(this$0.
|
|
2169
|
+
callUndeliveredElement(this$0.k1a_1, $element, $select.wc());
|
|
2170
2170
|
tmp = Unit_instance;
|
|
2171
2171
|
}
|
|
2172
2172
|
return Unit_instance;
|
|
@@ -2178,7 +2178,7 @@ function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lamb
|
|
|
2178
2178
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2179
2179
|
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2180
2180
|
var tmp0 = p0;
|
|
2181
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
2181
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.r1c_1, p1);
|
|
2182
2182
|
return Unit_instance;
|
|
2183
2183
|
};
|
|
2184
2184
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
@@ -2205,20 +2205,20 @@ function BufferedChannel() {
|
|
|
2205
2205
|
class $ {
|
|
2206
2206
|
constructor(capacity, onUndeliveredElement) {
|
|
2207
2207
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2208
|
-
this.
|
|
2209
|
-
this.
|
|
2208
|
+
this.j1a_1 = capacity;
|
|
2209
|
+
this.k1a_1 = onUndeliveredElement;
|
|
2210
2210
|
// Inline function 'kotlin.require' call
|
|
2211
|
-
if (!(this.
|
|
2212
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
2211
|
+
if (!(this.j1a_1 >= 0)) {
|
|
2212
|
+
var message = 'Invalid channel capacity: ' + this.j1a_1 + ', should be >=0';
|
|
2213
2213
|
throw IllegalArgumentException().m2(toString_0(message));
|
|
2214
2214
|
}
|
|
2215
|
-
this.
|
|
2216
|
-
this.
|
|
2217
|
-
this.
|
|
2218
|
-
this.
|
|
2215
|
+
this.l1a_1 = atomic$long$1(new (Long())(0, 0));
|
|
2216
|
+
this.m1a_1 = atomic$long$1(new (Long())(0, 0));
|
|
2217
|
+
this.n1a_1 = atomic$long$1(initialBufferEnd(this.j1a_1));
|
|
2218
|
+
this.o1a_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2219
2219
|
var firstSegment = new (ChannelSegment())(new (Long())(0, 0), null, this, 3);
|
|
2220
|
-
this.
|
|
2221
|
-
this.
|
|
2220
|
+
this.p1a_1 = atomic$ref$1(firstSegment);
|
|
2221
|
+
this.q1a_1 = atomic$ref$1(firstSegment);
|
|
2222
2222
|
var tmp = this;
|
|
2223
2223
|
var tmp_0;
|
|
2224
2224
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -2227,33 +2227,33 @@ function BufferedChannel() {
|
|
|
2227
2227
|
} else {
|
|
2228
2228
|
tmp_0 = firstSegment;
|
|
2229
2229
|
}
|
|
2230
|
-
tmp.
|
|
2230
|
+
tmp.r1a_1 = atomic$ref$1(tmp_0);
|
|
2231
2231
|
var tmp_2 = this;
|
|
2232
2232
|
var tmp_3;
|
|
2233
|
-
if (this.
|
|
2233
|
+
if (this.k1a_1 == null) {
|
|
2234
2234
|
tmp_3 = null;
|
|
2235
2235
|
} else {
|
|
2236
2236
|
// Inline function 'kotlin.let' call
|
|
2237
2237
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2238
2238
|
}
|
|
2239
|
-
tmp_2.
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2239
|
+
tmp_2.s1a_1 = tmp_3;
|
|
2240
|
+
this.t1a_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2241
|
+
this.u1a_1 = atomic$ref$1(null);
|
|
2242
2242
|
}
|
|
2243
|
-
|
|
2243
|
+
n1b() {
|
|
2244
2244
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2245
|
-
var this_0 = this.
|
|
2245
|
+
var this_0 = this.l1a_1.kotlinx$atomicfu$value;
|
|
2246
2246
|
return bitwiseAnd(this_0, new (Long())(-1, 268435455));
|
|
2247
2247
|
}
|
|
2248
|
-
|
|
2249
|
-
return this.
|
|
2248
|
+
q1b() {
|
|
2249
|
+
return this.m1a_1.kotlinx$atomicfu$value;
|
|
2250
2250
|
}
|
|
2251
|
-
*
|
|
2251
|
+
*s1c(element, $completion) {
|
|
2252
2252
|
$l$block_5: {
|
|
2253
2253
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2254
|
-
var segment = this.
|
|
2254
|
+
var segment = this.p1a_1.kotlinx$atomicfu$value;
|
|
2255
2255
|
$l$loop_0: while (true) {
|
|
2256
|
-
var sendersAndCloseStatusCur = this.
|
|
2256
|
+
var sendersAndCloseStatusCur = this.l1a_1.atomicfu$getAndIncrement$long();
|
|
2257
2257
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2258
2258
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
2259
2259
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2264,7 +2264,7 @@ function BufferedChannel() {
|
|
|
2264
2264
|
var other_0 = get_SEGMENT_SIZE();
|
|
2265
2265
|
var tmp$ret$3 = modulo(s, fromInt(other_0));
|
|
2266
2266
|
var i = convertToInt(tmp$ret$3);
|
|
2267
|
-
if (!equalsLong(segment.
|
|
2267
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2268
2268
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2269
2269
|
var tmp;
|
|
2270
2270
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2282,13 +2282,13 @@ function BufferedChannel() {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
switch (updateCellSend(this, segment, i, element, s, null, closed)) {
|
|
2284
2284
|
case 0:
|
|
2285
|
-
segment.
|
|
2285
|
+
segment.h1b();
|
|
2286
2286
|
break $l$block_5;
|
|
2287
2287
|
case 1:
|
|
2288
2288
|
break $l$block_5;
|
|
2289
2289
|
case 2:
|
|
2290
2290
|
if (closed) {
|
|
2291
|
-
segment.
|
|
2291
|
+
segment.x1a();
|
|
2292
2292
|
yield* /*#__NOINLINE__*/onClosedSend(this, element, $completion);
|
|
2293
2293
|
break $l$block_5;
|
|
2294
2294
|
}
|
|
@@ -2304,14 +2304,14 @@ function BufferedChannel() {
|
|
|
2304
2304
|
|
|
2305
2305
|
break $l$block_5;
|
|
2306
2306
|
case 4:
|
|
2307
|
-
if (compare(s, this.
|
|
2308
|
-
segment.
|
|
2307
|
+
if (compare(s, this.q1b()) < 0) {
|
|
2308
|
+
segment.h1b();
|
|
2309
2309
|
}
|
|
2310
2310
|
|
|
2311
2311
|
yield* /*#__NOINLINE__*/onClosedSend(this, element, $completion);
|
|
2312
2312
|
break $l$block_5;
|
|
2313
2313
|
case 5:
|
|
2314
|
-
segment.
|
|
2314
|
+
segment.h1b();
|
|
2315
2315
|
continue $l$loop_0;
|
|
2316
2316
|
case 3:
|
|
2317
2317
|
var segm = segment;
|
|
@@ -2322,16 +2322,16 @@ function BufferedChannel() {
|
|
|
2322
2322
|
}
|
|
2323
2323
|
return Unit_instance;
|
|
2324
2324
|
}
|
|
2325
|
-
|
|
2326
|
-
if (shouldSendSuspend0(this, this.
|
|
2327
|
-
return Companion_getInstance().
|
|
2325
|
+
t1c(element) {
|
|
2326
|
+
if (shouldSendSuspend0(this, this.l1a_1.kotlinx$atomicfu$value))
|
|
2327
|
+
return Companion_getInstance().u1c();
|
|
2328
2328
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
2329
2329
|
var tmp$ret$0;
|
|
2330
2330
|
$l$block_5: {
|
|
2331
2331
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2332
|
-
var segment = this.
|
|
2332
|
+
var segment = this.p1a_1.kotlinx$atomicfu$value;
|
|
2333
2333
|
$l$loop_0: while (true) {
|
|
2334
|
-
var sendersAndCloseStatusCur = this.
|
|
2334
|
+
var sendersAndCloseStatusCur = this.l1a_1.atomicfu$getAndIncrement$long();
|
|
2335
2335
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2336
2336
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
2337
2337
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2342,13 +2342,13 @@ function BufferedChannel() {
|
|
|
2342
2342
|
var other_0 = get_SEGMENT_SIZE();
|
|
2343
2343
|
var tmp$ret$3 = modulo(s, fromInt(other_0));
|
|
2344
2344
|
var i = convertToInt(tmp$ret$3);
|
|
2345
|
-
if (!equalsLong(segment.
|
|
2345
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2346
2346
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2347
2347
|
var tmp;
|
|
2348
2348
|
if (tmp0_elvis_lhs == null) {
|
|
2349
2349
|
var tmp_0;
|
|
2350
2350
|
if (closed) {
|
|
2351
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2351
|
+
tmp$ret$0 = Companion_getInstance().o1c(this.p1b());
|
|
2352
2352
|
break $l$block_5;
|
|
2353
2353
|
} else {
|
|
2354
2354
|
continue $l$loop_0;
|
|
@@ -2360,16 +2360,16 @@ function BufferedChannel() {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2362
2362
|
case 0:
|
|
2363
|
-
segment.
|
|
2364
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2363
|
+
segment.h1b();
|
|
2364
|
+
tmp$ret$0 = Companion_getInstance().v1b(Unit_instance);
|
|
2365
2365
|
break $l$block_5;
|
|
2366
2366
|
case 1:
|
|
2367
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2367
|
+
tmp$ret$0 = Companion_getInstance().v1b(Unit_instance);
|
|
2368
2368
|
break $l$block_5;
|
|
2369
2369
|
case 2:
|
|
2370
2370
|
if (closed) {
|
|
2371
|
-
segment.
|
|
2372
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2371
|
+
segment.x1a();
|
|
2372
|
+
tmp$ret$0 = Companion_getInstance().o1c(this.p1b());
|
|
2373
2373
|
break $l$block_5;
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
@@ -2380,18 +2380,18 @@ function BufferedChannel() {
|
|
|
2380
2380
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2381
2381
|
}
|
|
2382
2382
|
|
|
2383
|
-
segment.
|
|
2384
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2383
|
+
segment.x1a();
|
|
2384
|
+
tmp$ret$0 = Companion_getInstance().u1c();
|
|
2385
2385
|
break $l$block_5;
|
|
2386
2386
|
case 4:
|
|
2387
|
-
if (compare(s, this.
|
|
2388
|
-
segment.
|
|
2387
|
+
if (compare(s, this.q1b()) < 0) {
|
|
2388
|
+
segment.h1b();
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
|
-
tmp$ret$0 = Companion_getInstance().
|
|
2391
|
+
tmp$ret$0 = Companion_getInstance().o1c(this.p1b());
|
|
2392
2392
|
break $l$block_5;
|
|
2393
2393
|
case 5:
|
|
2394
|
-
segment.
|
|
2394
|
+
segment.h1b();
|
|
2395
2395
|
continue $l$loop_0;
|
|
2396
2396
|
case 3:
|
|
2397
2397
|
// Inline function 'kotlin.error' call
|
|
@@ -2403,14 +2403,14 @@ function BufferedChannel() {
|
|
|
2403
2403
|
}
|
|
2404
2404
|
return tmp$ret$0;
|
|
2405
2405
|
}
|
|
2406
|
-
|
|
2406
|
+
v1c(element) {
|
|
2407
2407
|
var tmp4 = get_BUFFERED();
|
|
2408
2408
|
var tmp$ret$0;
|
|
2409
2409
|
$l$block_5: {
|
|
2410
2410
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2411
|
-
var segment = this.
|
|
2411
|
+
var segment = this.p1a_1.kotlinx$atomicfu$value;
|
|
2412
2412
|
$l$loop_0: while (true) {
|
|
2413
|
-
var sendersAndCloseStatusCur = this.
|
|
2413
|
+
var sendersAndCloseStatusCur = this.l1a_1.atomicfu$getAndIncrement$long();
|
|
2414
2414
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2415
2415
|
var s = bitwiseAnd(sendersAndCloseStatusCur, new (Long())(-1, 268435455));
|
|
2416
2416
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2421,13 +2421,13 @@ function BufferedChannel() {
|
|
|
2421
2421
|
var other_0 = get_SEGMENT_SIZE();
|
|
2422
2422
|
var tmp$ret$3 = modulo(s, fromInt(other_0));
|
|
2423
2423
|
var i = convertToInt(tmp$ret$3);
|
|
2424
|
-
if (!equalsLong(segment.
|
|
2424
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2425
2425
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2426
2426
|
var tmp;
|
|
2427
2427
|
if (tmp0_elvis_lhs == null) {
|
|
2428
2428
|
var tmp_0;
|
|
2429
2429
|
if (closed) {
|
|
2430
|
-
return Companion_getInstance().
|
|
2430
|
+
return Companion_getInstance().o1c(this.p1b());
|
|
2431
2431
|
} else {
|
|
2432
2432
|
continue $l$loop_0;
|
|
2433
2433
|
}
|
|
@@ -2438,14 +2438,14 @@ function BufferedChannel() {
|
|
|
2438
2438
|
}
|
|
2439
2439
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2440
2440
|
case 0:
|
|
2441
|
-
segment.
|
|
2442
|
-
return Companion_getInstance().
|
|
2441
|
+
segment.h1b();
|
|
2442
|
+
return Companion_getInstance().v1b(Unit_instance);
|
|
2443
2443
|
case 1:
|
|
2444
|
-
return Companion_getInstance().
|
|
2444
|
+
return Companion_getInstance().v1b(Unit_instance);
|
|
2445
2445
|
case 2:
|
|
2446
2446
|
if (closed) {
|
|
2447
|
-
segment.
|
|
2448
|
-
return Companion_getInstance().
|
|
2447
|
+
segment.x1a();
|
|
2448
|
+
return Companion_getInstance().o1c(this.p1b());
|
|
2449
2449
|
}
|
|
2450
2450
|
|
|
2451
2451
|
var tmp2_safe_receiver = (!(tmp4 == null) ? isInterface(tmp4, Waiter()) : false) ? tmp4 : null;
|
|
@@ -2455,7 +2455,7 @@ function BufferedChannel() {
|
|
|
2455
2455
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2456
2456
|
}
|
|
2457
2457
|
|
|
2458
|
-
var tmp0 = segment.
|
|
2458
|
+
var tmp0 = segment.m12_1;
|
|
2459
2459
|
// Inline function 'kotlin.Long.times' call
|
|
2460
2460
|
|
|
2461
2461
|
var other_1 = get_SEGMENT_SIZE();
|
|
@@ -2463,16 +2463,16 @@ function BufferedChannel() {
|
|
|
2463
2463
|
|
|
2464
2464
|
var this_0 = multiply(tmp0, fromInt(other_1));
|
|
2465
2465
|
var tmp$ret$10 = add(this_0, fromInt(i));
|
|
2466
|
-
this.
|
|
2467
|
-
return Companion_getInstance().
|
|
2466
|
+
this.m1c(tmp$ret$10);
|
|
2467
|
+
return Companion_getInstance().v1b(Unit_instance);
|
|
2468
2468
|
case 4:
|
|
2469
|
-
if (compare(s, this.
|
|
2470
|
-
segment.
|
|
2469
|
+
if (compare(s, this.q1b()) < 0) {
|
|
2470
|
+
segment.h1b();
|
|
2471
2471
|
}
|
|
2472
2472
|
|
|
2473
|
-
return Companion_getInstance().
|
|
2473
|
+
return Companion_getInstance().o1c(this.p1b());
|
|
2474
2474
|
case 5:
|
|
2475
|
-
segment.
|
|
2475
|
+
segment.h1b();
|
|
2476
2476
|
continue $l$loop_0;
|
|
2477
2477
|
case 3:
|
|
2478
2478
|
// Inline function 'kotlin.error' call
|
|
@@ -2484,20 +2484,20 @@ function BufferedChannel() {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return tmp$ret$0;
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2487
|
+
y1b() {
|
|
2488
2488
|
}
|
|
2489
|
-
|
|
2489
|
+
r1b() {
|
|
2490
2490
|
}
|
|
2491
|
-
*
|
|
2491
|
+
*w1c($completion) {
|
|
2492
2492
|
var tmp$ret$0;
|
|
2493
2493
|
$l$block_0: {
|
|
2494
2494
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
2495
|
-
var segment = this.
|
|
2495
|
+
var segment = this.q1a_1.kotlinx$atomicfu$value;
|
|
2496
2496
|
$l$loop_0: while (true) {
|
|
2497
|
-
if (this.
|
|
2497
|
+
if (this.o1b()) {
|
|
2498
2498
|
throw recoverStackTrace(_get_receiveException__foorc1(this));
|
|
2499
2499
|
}
|
|
2500
|
-
var r = this.
|
|
2500
|
+
var r = this.m1a_1.atomicfu$getAndIncrement$long();
|
|
2501
2501
|
// Inline function 'kotlin.Long.div' call
|
|
2502
2502
|
var other = get_SEGMENT_SIZE();
|
|
2503
2503
|
var id = divide(r, fromInt(other));
|
|
@@ -2505,7 +2505,7 @@ function BufferedChannel() {
|
|
|
2505
2505
|
var other_0 = get_SEGMENT_SIZE();
|
|
2506
2506
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
2507
2507
|
var i = convertToInt(tmp$ret$3);
|
|
2508
|
-
if (!equalsLong(segment.
|
|
2508
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2509
2509
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2510
2510
|
var tmp;
|
|
2511
2511
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2528,15 +2528,15 @@ function BufferedChannel() {
|
|
|
2528
2528
|
var message = 'unexpected';
|
|
2529
2529
|
throw IllegalStateException().o(toString_0(message));
|
|
2530
2530
|
} else if (updCellResult === get_FAILED()) {
|
|
2531
|
-
if (compare(r, this.
|
|
2532
|
-
segment.
|
|
2531
|
+
if (compare(r, this.n1b()) < 0) {
|
|
2532
|
+
segment.h1b();
|
|
2533
2533
|
}
|
|
2534
2534
|
continue $l$loop_0;
|
|
2535
2535
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
2536
2536
|
var segm = segment;
|
|
2537
2537
|
tmp_0 = yield* /*#__NOINLINE__*/receiveOnNoWaiterSuspend(this, segm, i, r, $completion);
|
|
2538
2538
|
} else {
|
|
2539
|
-
segment.
|
|
2539
|
+
segment.h1b();
|
|
2540
2540
|
return updCellResult;
|
|
2541
2541
|
}
|
|
2542
2542
|
tmp$ret$0 = tmp_0;
|
|
@@ -2545,13 +2545,13 @@ function BufferedChannel() {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
return tmp$ret$0;
|
|
2547
2547
|
}
|
|
2548
|
-
|
|
2548
|
+
m1c(globalCellIndex) {
|
|
2549
2549
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2550
|
-
var segment = this.
|
|
2550
|
+
var segment = this.q1a_1.kotlinx$atomicfu$value;
|
|
2551
2551
|
$l$loop_0: while (true) {
|
|
2552
|
-
var r = this.
|
|
2552
|
+
var r = this.m1a_1.kotlinx$atomicfu$value;
|
|
2553
2553
|
// Inline function 'kotlin.Long.plus' call
|
|
2554
|
-
var other = this.
|
|
2554
|
+
var other = this.j1a_1;
|
|
2555
2555
|
var tmp0 = add(r, fromInt(other));
|
|
2556
2556
|
// Inline function 'kotlin.math.max' call
|
|
2557
2557
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
@@ -2560,7 +2560,7 @@ function BufferedChannel() {
|
|
|
2560
2560
|
return Unit_instance;
|
|
2561
2561
|
// Inline function 'kotlin.Long.plus' call
|
|
2562
2562
|
var tmp$ret$3 = add(r, fromInt(1));
|
|
2563
|
-
if (!this.
|
|
2563
|
+
if (!this.m1a_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2564
2564
|
continue $l$loop_0;
|
|
2565
2565
|
// Inline function 'kotlin.Long.div' call
|
|
2566
2566
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -2569,7 +2569,7 @@ function BufferedChannel() {
|
|
|
2569
2569
|
var other_1 = get_SEGMENT_SIZE();
|
|
2570
2570
|
var tmp$ret$5 = modulo(r, fromInt(other_1));
|
|
2571
2571
|
var i = convertToInt(tmp$ret$5);
|
|
2572
|
-
if (!equalsLong(segment.
|
|
2572
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2573
2573
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2574
2574
|
var tmp;
|
|
2575
2575
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2581,12 +2581,12 @@ function BufferedChannel() {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2583
2583
|
if (updCellResult === get_FAILED()) {
|
|
2584
|
-
if (compare(r, this.
|
|
2585
|
-
segment.
|
|
2584
|
+
if (compare(r, this.n1b()) < 0) {
|
|
2585
|
+
segment.h1b();
|
|
2586
2586
|
}
|
|
2587
2587
|
} else {
|
|
2588
|
-
segment.
|
|
2589
|
-
var tmp1_safe_receiver = this.
|
|
2588
|
+
segment.h1b();
|
|
2589
|
+
var tmp1_safe_receiver = this.k1a_1;
|
|
2590
2590
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp1_safe_receiver, updCellResult);
|
|
2591
2591
|
if (tmp2_safe_receiver == null)
|
|
2592
2592
|
null;
|
|
@@ -2597,7 +2597,7 @@ function BufferedChannel() {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
2600
|
-
|
|
2600
|
+
w1a(globalIndex) {
|
|
2601
2601
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2602
2602
|
return Unit_instance;
|
|
2603
2603
|
while (compare(_get_bufferEndCounter__2d4hee(this), globalIndex) <= 0) {
|
|
@@ -2611,13 +2611,13 @@ function BufferedChannel() {
|
|
|
2611
2611
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2612
2612
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2613
2613
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2614
|
-
var this_0 = this.
|
|
2614
|
+
var this_0 = this.o1a_1.kotlinx$atomicfu$value;
|
|
2615
2615
|
var ebCompleted = bitwiseAnd(this_0, new (Long())(-1, 1073741823));
|
|
2616
2616
|
if (equalsLong(b, ebCompleted) && equalsLong(b, _get_bufferEndCounter__2d4hee(this)))
|
|
2617
2617
|
return Unit_instance;
|
|
2618
2618
|
}
|
|
2619
2619
|
while (inductionVariable < times);
|
|
2620
|
-
var tmp0 = this.
|
|
2620
|
+
var tmp0 = this.o1a_1;
|
|
2621
2621
|
$l$block: {
|
|
2622
2622
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2623
2623
|
while (true) {
|
|
@@ -2632,13 +2632,13 @@ function BufferedChannel() {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
while (true) {
|
|
2634
2634
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
2635
|
-
var ebCompletedAndBit = this.
|
|
2635
|
+
var ebCompletedAndBit = this.o1a_1.kotlinx$atomicfu$value;
|
|
2636
2636
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2637
2637
|
var ebCompleted_0 = bitwiseAnd(ebCompletedAndBit, new (Long())(-1, 1073741823));
|
|
2638
2638
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
2639
2639
|
var pauseExpandBuffers = !equalsLong(bitwiseAnd(ebCompletedAndBit, new (Long())(0, 1073741824)), new (Long())(0, 0));
|
|
2640
2640
|
if (equalsLong(b_0, ebCompleted_0) && equalsLong(b_0, _get_bufferEndCounter__2d4hee(this))) {
|
|
2641
|
-
var tmp0_0 = this.
|
|
2641
|
+
var tmp0_0 = this.o1a_1;
|
|
2642
2642
|
$l$block_0: {
|
|
2643
2643
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2644
2644
|
while (true) {
|
|
@@ -2654,37 +2654,37 @@ function BufferedChannel() {
|
|
|
2654
2654
|
return Unit_instance;
|
|
2655
2655
|
}
|
|
2656
2656
|
if (!pauseExpandBuffers) {
|
|
2657
|
-
this.
|
|
2657
|
+
this.o1a_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
2661
|
l1() {
|
|
2662
2662
|
return new (BufferedChannelIterator())(this);
|
|
2663
2663
|
}
|
|
2664
|
-
|
|
2665
|
-
var tmp = this.
|
|
2664
|
+
m1b() {
|
|
2665
|
+
var tmp = this.t1a_1.kotlinx$atomicfu$value;
|
|
2666
2666
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
2667
2667
|
}
|
|
2668
|
-
|
|
2669
|
-
var tmp0_elvis_lhs = this.
|
|
2670
|
-
return tmp0_elvis_lhs == null ? ClosedSendChannelException().
|
|
2668
|
+
p1b() {
|
|
2669
|
+
var tmp0_elvis_lhs = this.m1b();
|
|
2670
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().b1d('Channel was closed') : tmp0_elvis_lhs;
|
|
2671
2671
|
}
|
|
2672
|
-
|
|
2672
|
+
c1d() {
|
|
2673
2673
|
}
|
|
2674
|
-
|
|
2675
|
-
return this.
|
|
2674
|
+
d1d(cause) {
|
|
2675
|
+
return this.e1d(cause, false);
|
|
2676
2676
|
}
|
|
2677
|
-
|
|
2678
|
-
this.
|
|
2677
|
+
ly(cause) {
|
|
2678
|
+
this.g1d(cause);
|
|
2679
2679
|
}
|
|
2680
|
-
|
|
2681
|
-
return this.
|
|
2680
|
+
g1d(cause) {
|
|
2681
|
+
return this.e1d(cause == null ? CancellationException().n('Channel was cancelled') : cause, true);
|
|
2682
2682
|
}
|
|
2683
|
-
|
|
2683
|
+
e1d(cause, cancel) {
|
|
2684
2684
|
if (cancel) {
|
|
2685
2685
|
markCancellationStarted(this);
|
|
2686
2686
|
}
|
|
2687
|
-
var closedByThisOperation = this.
|
|
2687
|
+
var closedByThisOperation = this.t1a_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
2688
2688
|
if (cancel) {
|
|
2689
2689
|
markCancelled(this);
|
|
2690
2690
|
} else {
|
|
@@ -2692,37 +2692,37 @@ function BufferedChannel() {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
completeCloseOrCancel(this);
|
|
2694
2694
|
// Inline function 'kotlin.also' call
|
|
2695
|
-
this.
|
|
2695
|
+
this.c1d();
|
|
2696
2696
|
if (closedByThisOperation) {
|
|
2697
2697
|
invokeCloseHandler(this);
|
|
2698
2698
|
}
|
|
2699
2699
|
return closedByThisOperation;
|
|
2700
2700
|
}
|
|
2701
|
-
|
|
2701
|
+
n1c() {
|
|
2702
2702
|
return false;
|
|
2703
2703
|
}
|
|
2704
|
-
|
|
2705
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
2704
|
+
l1c() {
|
|
2705
|
+
return _get_isClosedForSend0__kxgf9m(this, this.l1a_1.kotlinx$atomicfu$value);
|
|
2706
2706
|
}
|
|
2707
|
-
|
|
2708
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
2707
|
+
o1b() {
|
|
2708
|
+
return _get_isClosedForReceive0__f7qknl(this, this.l1a_1.kotlinx$atomicfu$value);
|
|
2709
2709
|
}
|
|
2710
|
-
|
|
2710
|
+
p1c() {
|
|
2711
2711
|
$l$loop: while (true) {
|
|
2712
|
-
var segment = this.
|
|
2713
|
-
var r = this.
|
|
2714
|
-
var s = this.
|
|
2712
|
+
var segment = this.q1a_1.kotlinx$atomicfu$value;
|
|
2713
|
+
var r = this.q1b();
|
|
2714
|
+
var s = this.n1b();
|
|
2715
2715
|
if (compare(s, r) <= 0)
|
|
2716
2716
|
return false;
|
|
2717
2717
|
// Inline function 'kotlin.Long.div' call
|
|
2718
2718
|
var other = get_SEGMENT_SIZE();
|
|
2719
2719
|
var id = divide(r, fromInt(other));
|
|
2720
|
-
if (!equalsLong(segment.
|
|
2720
|
+
if (!equalsLong(segment.m12_1, id)) {
|
|
2721
2721
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2722
2722
|
var tmp;
|
|
2723
2723
|
if (tmp0_elvis_lhs == null) {
|
|
2724
2724
|
var tmp_0;
|
|
2725
|
-
if (compare(this.
|
|
2725
|
+
if (compare(this.q1a_1.kotlinx$atomicfu$value.m12_1, id) < 0) {
|
|
2726
2726
|
return false;
|
|
2727
2727
|
} else {
|
|
2728
2728
|
continue $l$loop;
|
|
@@ -2732,7 +2732,7 @@ function BufferedChannel() {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
segment = tmp;
|
|
2734
2734
|
}
|
|
2735
|
-
segment.
|
|
2735
|
+
segment.h1b();
|
|
2736
2736
|
// Inline function 'kotlin.Long.rem' call
|
|
2737
2737
|
var other_0 = get_SEGMENT_SIZE();
|
|
2738
2738
|
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
@@ -2741,23 +2741,23 @@ function BufferedChannel() {
|
|
|
2741
2741
|
return true;
|
|
2742
2742
|
// Inline function 'kotlin.Long.plus' call
|
|
2743
2743
|
var tmp$ret$2 = add(r, fromInt(1));
|
|
2744
|
-
this.
|
|
2744
|
+
this.m1a_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
2747
|
toString() {
|
|
2748
2748
|
var sb = StringBuilder().h1();
|
|
2749
2749
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2750
|
-
var this_0 = this.
|
|
2750
|
+
var this_0 = this.l1a_1.kotlinx$atomicfu$value;
|
|
2751
2751
|
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
2752
2752
|
if (tmp0_subject === 2) {
|
|
2753
2753
|
sb.i1('closed,');
|
|
2754
2754
|
} else if (tmp0_subject === 3) {
|
|
2755
2755
|
sb.i1('cancelled,');
|
|
2756
2756
|
}
|
|
2757
|
-
sb.i1('capacity=' + this.
|
|
2757
|
+
sb.i1('capacity=' + this.j1a_1 + ',');
|
|
2758
2758
|
sb.i1('data=[');
|
|
2759
2759
|
// Inline function 'kotlin.collections.filter' call
|
|
2760
|
-
var tmp0 = listOf([this.
|
|
2760
|
+
var tmp0 = listOf([this.q1a_1.kotlinx$atomicfu$value, this.p1a_1.kotlinx$atomicfu$value, this.r1a_1.kotlinx$atomicfu$value]);
|
|
2761
2761
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2762
2762
|
var destination = ArrayList().i2();
|
|
2763
2763
|
var _iterator__ex2g4s = tmp0.l1();
|
|
@@ -2778,10 +2778,10 @@ function BufferedChannel() {
|
|
|
2778
2778
|
tmp$ret$4 = minElem;
|
|
2779
2779
|
break $l$block;
|
|
2780
2780
|
}
|
|
2781
|
-
var minValue = minElem.
|
|
2781
|
+
var minValue = minElem.m12_1;
|
|
2782
2782
|
do {
|
|
2783
2783
|
var e = iterator.n1();
|
|
2784
|
-
var v = e.
|
|
2784
|
+
var v = e.m12_1;
|
|
2785
2785
|
if (compareTo(minValue, v) > 0) {
|
|
2786
2786
|
minElem = e;
|
|
2787
2787
|
minValue = v;
|
|
@@ -2791,8 +2791,8 @@ function BufferedChannel() {
|
|
|
2791
2791
|
tmp$ret$4 = minElem;
|
|
2792
2792
|
}
|
|
2793
2793
|
var firstSegment = tmp$ret$4;
|
|
2794
|
-
var r = this.
|
|
2795
|
-
var s = this.
|
|
2794
|
+
var r = this.q1b();
|
|
2795
|
+
var s = this.n1b();
|
|
2796
2796
|
var segment = firstSegment;
|
|
2797
2797
|
append_elements: while (true) {
|
|
2798
2798
|
var inductionVariable = 0;
|
|
@@ -2801,7 +2801,7 @@ function BufferedChannel() {
|
|
|
2801
2801
|
process_cell: do {
|
|
2802
2802
|
var i = inductionVariable;
|
|
2803
2803
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2804
|
-
var tmp0_0 = segment.
|
|
2804
|
+
var tmp0_0 = segment.m12_1;
|
|
2805
2805
|
// Inline function 'kotlin.Long.times' call
|
|
2806
2806
|
var other = get_SEGMENT_SIZE();
|
|
2807
2807
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -2809,8 +2809,8 @@ function BufferedChannel() {
|
|
|
2809
2809
|
var globalCellIndex = add(this_1, fromInt(i));
|
|
2810
2810
|
if (compare(globalCellIndex, s) >= 0 && compare(globalCellIndex, r) >= 0)
|
|
2811
2811
|
break append_elements;
|
|
2812
|
-
var cellState = segment.
|
|
2813
|
-
var element_0 = segment.
|
|
2812
|
+
var cellState = segment.f1a(i);
|
|
2813
|
+
var element_0 = segment.c1a(i);
|
|
2814
2814
|
var tmp;
|
|
2815
2815
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
2816
2816
|
tmp = compare(globalCellIndex, r) < 0 && compare(globalCellIndex, s) >= 0 ? 'receive' : compare(globalCellIndex, s) < 0 && compare(globalCellIndex, r) >= 0 ? 'send' : 'cont';
|
|
@@ -2849,7 +2849,7 @@ function BufferedChannel() {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
2851
|
while (inductionVariable < last_0);
|
|
2852
|
-
var tmp2_elvis_lhs = segment.
|
|
2852
|
+
var tmp2_elvis_lhs = segment.d1b();
|
|
2853
2853
|
var tmp_0;
|
|
2854
2854
|
if (tmp2_elvis_lhs == null) {
|
|
2855
2855
|
break append_elements;
|
|
@@ -2865,8 +2865,8 @@ function BufferedChannel() {
|
|
|
2865
2865
|
return sb.toString();
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
protoOf($).
|
|
2869
|
-
protoOf($).
|
|
2868
|
+
protoOf($).f1d = close$default;
|
|
2869
|
+
protoOf($).h1d = cancel$default;
|
|
2870
2870
|
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
|
|
2871
2871
|
BufferedChannelClass = $;
|
|
2872
2872
|
}
|
|
@@ -2877,10 +2877,10 @@ function WaiterEB() {
|
|
|
2877
2877
|
if (WaiterEBClass === VOID) {
|
|
2878
2878
|
class $ {
|
|
2879
2879
|
constructor(waiter) {
|
|
2880
|
-
this.
|
|
2880
|
+
this.s1b_1 = waiter;
|
|
2881
2881
|
}
|
|
2882
2882
|
toString() {
|
|
2883
|
-
return 'WaiterEB(' + toString_0(this.
|
|
2883
|
+
return 'WaiterEB(' + toString_0(this.s1b_1) + ')';
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
2886
|
initMetadataForClass($, 'WaiterEB');
|
|
@@ -2912,10 +2912,10 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
2912
2912
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
2913
2913
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2914
2914
|
// Inline function 'kotlin.let' call
|
|
2915
|
-
var token = _this__u8e3s4.
|
|
2915
|
+
var token = _this__u8e3s4.t11(value, null, onCancellation);
|
|
2916
2916
|
var tmp;
|
|
2917
2917
|
if (!(token == null)) {
|
|
2918
|
-
_this__u8e3s4.
|
|
2918
|
+
_this__u8e3s4.yz(token);
|
|
2919
2919
|
tmp = true;
|
|
2920
2920
|
} else {
|
|
2921
2921
|
tmp = false;
|
|
@@ -2936,7 +2936,7 @@ function createSegmentFunction() {
|
|
|
2936
2936
|
}
|
|
2937
2937
|
function createSegment(id, prev) {
|
|
2938
2938
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2939
|
-
return new (ChannelSegment())(id, prev, prev.
|
|
2939
|
+
return new (ChannelSegment())(id, prev, prev.z19(), 0);
|
|
2940
2940
|
}
|
|
2941
2941
|
function createSegment$ref() {
|
|
2942
2942
|
var l = (p0, p1) => createSegment(p0, p1);
|