@attocash/commons-test 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +58 -58
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +122 -122
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +106 -106
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +150 -150
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +131 -131
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +26 -26
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +49 -49
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +28 -28
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +45 -45
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +54 -54
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +60 -60
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +2 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +38 -34
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +15 -15
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.mts +3 -4
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +63 -55
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.mts +11 -11
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +825 -817
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.mts +4 -4
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +37 -30
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.export.d.mts +2 -3
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +35 -26
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +20 -20
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +74 -11
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +76 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
- package/commons-commons-core.mjs +1 -2
- package/commons-commons-core.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
- package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +401 -409
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +8 -8
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +76 -47
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +20 -20
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +38 -38
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +140 -135
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +65 -65
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +8 -8
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +76 -47
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +20 -20
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +10 -10
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +344 -344
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
- package/commons-commons-node.mjs +6 -6
- package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
- package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +32 -32
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.export.d.mts +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +36 -48
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.export.d.mts +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +57 -61
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +15 -15
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.export.d.mts +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +33 -45
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs.map +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.export.d.mts +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +40 -40
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +79 -79
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +38 -38
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +16 -16
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +33 -33
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
- package/commons-commons-worker.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs +16 -11
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +20 -20
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +49 -95
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +40 -40
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +67 -92
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +202 -249
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +37 -43
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.d.mts +0 -9
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs +1 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +24 -52
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +46 -83
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +35 -35
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +51 -51
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +204 -204
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +11 -11
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +0 -27
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +17 -112
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +10 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +112 -21
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -30
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +71 -71
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +23 -23
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +27 -27
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +66 -66
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +20 -20
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +13 -13
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +81 -81
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
- package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +27 -27
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +173 -173
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +9 -9
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +49 -49
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +90 -112
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +17 -17
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +324 -324
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +464 -464
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +51 -51
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +25 -25
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +65 -65
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +39 -39
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +49 -49
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +77 -77
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +12 -12
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +54 -54
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +65 -65
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +36 -36
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +191 -191
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +21 -21
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +54 -54
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +151 -151
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +46 -46
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +66 -66
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +63 -63
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +243 -243
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +72 -72
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +116 -116
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +103 -103
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +68 -90
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +24 -24
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +67 -67
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +176 -176
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +220 -220
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +76 -76
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +49 -49
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +57 -57
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +34 -34
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +9 -9
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +74 -74
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +83 -83
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +34 -34
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +32 -32
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +116 -116
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +84 -84
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +12 -12
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +28 -28
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +39 -39
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +49 -49
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +15 -15
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +19 -19
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +42 -42
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +68 -68
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
- package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +61 -61
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +22 -22
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Url.mjs +69 -69
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +90 -90
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +53 -53
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +74 -74
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +127 -127
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +39 -39
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +29 -29
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +4 -4
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +42 -42
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +89 -89
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +11 -11
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +45 -45
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +40 -40
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +9 -9
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +26 -26
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +55 -55
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +58 -58
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +18 -18
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/package.json +1 -1
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
- /package/{commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs.map → commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.mjs.map} +0 -0
- /package/{commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs.map → commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
- /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map → commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.export.mjs.map} +0 -0
|
@@ -70,8 +70,8 @@ import {
|
|
|
70
70
|
ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
|
|
71
71
|
close$default29t9kascifp5w as close$default,
|
|
72
72
|
cancel$default3ekkkwpkem73o as cancel$default,
|
|
73
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
74
73
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
74
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
75
75
|
} from './Channel.mjs';
|
|
76
76
|
import {
|
|
77
77
|
SelectInstance2isepgzfsd8ur as SelectInstance,
|
|
@@ -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.h21_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
203
203
|
}
|
|
204
204
|
var ChannelSegmentClass;
|
|
205
205
|
function ChannelSegment() {
|
|
@@ -207,49 +207,49 @@ 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.g21_1 = channel;
|
|
211
|
+
this.h21_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
return ensureNotNull(this.
|
|
213
|
+
i21() {
|
|
214
|
+
return ensureNotNull(this.g21_1);
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
j21() {
|
|
217
217
|
return get_SEGMENT_SIZE();
|
|
218
218
|
}
|
|
219
|
-
|
|
219
|
+
k21(index, element) {
|
|
220
220
|
setElementLazy(this, index, element);
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
var tmp = this.
|
|
222
|
+
l21(index) {
|
|
223
|
+
var tmp = this.h21_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
224
224
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
m21(index) {
|
|
227
227
|
// Inline function 'kotlin.also' call
|
|
228
|
-
var this_0 = this.
|
|
229
|
-
this.
|
|
228
|
+
var this_0 = this.l21(index);
|
|
229
|
+
this.n21(index);
|
|
230
230
|
return this_0;
|
|
231
231
|
}
|
|
232
|
-
|
|
232
|
+
n21(index) {
|
|
233
233
|
setElementLazy(this, index, null);
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
return this.
|
|
235
|
+
o21(index) {
|
|
236
|
+
return this.h21_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
this.
|
|
238
|
+
p21(index, value) {
|
|
239
|
+
this.h21_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
240
240
|
}
|
|
241
|
-
|
|
242
|
-
return this.
|
|
241
|
+
q21(index, from, to) {
|
|
242
|
+
return this.h21_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
return this.
|
|
244
|
+
r21(index, update) {
|
|
245
|
+
return this.h21_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
c1u(index, cause, context) {
|
|
248
248
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
249
249
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
250
|
-
var element = this.
|
|
250
|
+
var element = this.l21(index_0);
|
|
251
251
|
$l$loop: while (true) {
|
|
252
|
-
var cur = this.
|
|
252
|
+
var cur = this.o21(index_0);
|
|
253
253
|
var tmp;
|
|
254
254
|
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
255
255
|
tmp = true;
|
|
@@ -258,11 +258,11 @@ function ChannelSegment() {
|
|
|
258
258
|
}
|
|
259
259
|
if (tmp) {
|
|
260
260
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
261
|
-
if (this.
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
261
|
+
if (this.q21(index_0, cur, update)) {
|
|
262
|
+
this.n21(index_0);
|
|
263
|
+
this.e22(index_0, !isSender);
|
|
264
264
|
if (isSender) {
|
|
265
|
-
var tmp0_safe_receiver = this.
|
|
265
|
+
var tmp0_safe_receiver = this.i21().t21_1;
|
|
266
266
|
if (tmp0_safe_receiver == null)
|
|
267
267
|
null;
|
|
268
268
|
else {
|
|
@@ -273,9 +273,9 @@ function ChannelSegment() {
|
|
|
273
273
|
}
|
|
274
274
|
} else {
|
|
275
275
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
276
|
-
this.
|
|
276
|
+
this.n21(index_0);
|
|
277
277
|
if (isSender) {
|
|
278
|
-
var tmp1_safe_receiver = this.
|
|
278
|
+
var tmp1_safe_receiver = this.i21().t21_1;
|
|
279
279
|
if (tmp1_safe_receiver == null)
|
|
280
280
|
null;
|
|
281
281
|
else {
|
|
@@ -303,18 +303,18 @@ function ChannelSegment() {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
e22(index, receiver) {
|
|
307
307
|
if (receiver) {
|
|
308
|
-
var tmp = this.
|
|
309
|
-
var tmp0 = this.
|
|
308
|
+
var tmp = this.i21();
|
|
309
|
+
var tmp0 = this.a1u_1;
|
|
310
310
|
// Inline function 'kotlin.Long.times' call
|
|
311
311
|
var other = get_SEGMENT_SIZE();
|
|
312
312
|
// Inline function 'kotlin.Long.plus' call
|
|
313
313
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
314
314
|
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
315
|
-
tmp.
|
|
315
|
+
tmp.f22(tmp$ret$1);
|
|
316
316
|
}
|
|
317
|
-
this.
|
|
317
|
+
this.g22();
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
initMetadataForClass($, 'ChannelSegment');
|
|
@@ -324,20 +324,20 @@ function ChannelSegment() {
|
|
|
324
324
|
}
|
|
325
325
|
function *_generator_hasNext__q471nr($this, $completion) {
|
|
326
326
|
var tmp;
|
|
327
|
-
if (!($this.
|
|
327
|
+
if (!($this.s22_1 === get_NO_RECEIVE_RESULT()) && !($this.s22_1 === get_CHANNEL_CLOSED())) {
|
|
328
328
|
tmp = true;
|
|
329
329
|
} else {
|
|
330
|
-
var tmp0 = $this.
|
|
330
|
+
var tmp0 = $this.u22_1;
|
|
331
331
|
var tmp$ret$1;
|
|
332
332
|
$l$block_0: {
|
|
333
333
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
334
|
-
var segment = tmp0.
|
|
334
|
+
var segment = tmp0.z21_1.kotlinx$atomicfu$value;
|
|
335
335
|
$l$loop_0: while (true) {
|
|
336
|
-
if (tmp0.
|
|
336
|
+
if (tmp0.v22()) {
|
|
337
337
|
tmp$ret$1 = onClosedHasNext($this);
|
|
338
338
|
break $l$block_0;
|
|
339
339
|
}
|
|
340
|
-
var r = tmp0.
|
|
340
|
+
var r = tmp0.v21_1.atomicfu$getAndIncrement$long();
|
|
341
341
|
// Inline function 'kotlin.Long.div' call
|
|
342
342
|
var other = get_SEGMENT_SIZE();
|
|
343
343
|
var id = divide(r, fromInt(other));
|
|
@@ -345,7 +345,7 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
345
345
|
var other_0 = get_SEGMENT_SIZE();
|
|
346
346
|
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
347
347
|
var i = convertToInt(tmp$ret$3);
|
|
348
|
-
if (!(segment.
|
|
348
|
+
if (!(segment.a1u_1 === id)) {
|
|
349
349
|
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment);
|
|
350
350
|
var tmp_0;
|
|
351
351
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -367,8 +367,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
367
367
|
var message = 'unreachable';
|
|
368
368
|
throw IllegalStateException().o(toString_0(message));
|
|
369
369
|
} else if (updCellResult === get_FAILED()) {
|
|
370
|
-
if (r < tmp0.
|
|
371
|
-
segment.
|
|
370
|
+
if (r < tmp0.w22()) {
|
|
371
|
+
segment.q22();
|
|
372
372
|
}
|
|
373
373
|
continue $l$loop_0;
|
|
374
374
|
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
@@ -378,8 +378,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
378
378
|
tmp_2 = yield tmp_2;
|
|
379
379
|
return tmp_2;
|
|
380
380
|
} else {
|
|
381
|
-
segment.
|
|
382
|
-
$this.
|
|
381
|
+
segment.q22();
|
|
382
|
+
$this.s22_1 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
383
383
|
tmp_1 = true;
|
|
384
384
|
}
|
|
385
385
|
tmp$ret$1 = tmp_1;
|
|
@@ -391,8 +391,8 @@ function *_generator_hasNext__q471nr($this, $completion) {
|
|
|
391
391
|
return tmp;
|
|
392
392
|
}
|
|
393
393
|
function onClosedHasNext($this) {
|
|
394
|
-
$this.
|
|
395
|
-
var tmp0_elvis_lhs = $this.
|
|
394
|
+
$this.s22_1 = get_CHANNEL_CLOSED();
|
|
395
|
+
var tmp0_elvis_lhs = $this.u22_1.x22();
|
|
396
396
|
var tmp;
|
|
397
397
|
if (tmp0_elvis_lhs == null) {
|
|
398
398
|
return false;
|
|
@@ -405,25 +405,25 @@ function onClosedHasNext($this) {
|
|
|
405
405
|
function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
406
406
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
407
407
|
try {
|
|
408
|
-
$this.
|
|
408
|
+
$this.t22_1 = cancellable;
|
|
409
409
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
410
|
-
var this_0 = $this.
|
|
410
|
+
var this_0 = $this.u22_1;
|
|
411
411
|
var updCellResult = updateCellReceive(this_0, segment, index, r, $this);
|
|
412
412
|
if (updCellResult === get_SUSPEND()) {
|
|
413
413
|
prepareReceiverForSuspension(this_0, $this, segment, index);
|
|
414
414
|
} else if (updCellResult === get_FAILED()) {
|
|
415
|
-
if (r < this_0.
|
|
416
|
-
segment.
|
|
415
|
+
if (r < this_0.w22()) {
|
|
416
|
+
segment.q22();
|
|
417
417
|
}
|
|
418
418
|
$l$block_0: {
|
|
419
419
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
420
|
-
var segment_0 = this_0.
|
|
420
|
+
var segment_0 = this_0.z21_1.kotlinx$atomicfu$value;
|
|
421
421
|
$l$loop_0: while (true) {
|
|
422
|
-
if (this_0.
|
|
422
|
+
if (this_0.v22()) {
|
|
423
423
|
onClosedHasNextNoWaiterSuspend($this);
|
|
424
424
|
break $l$block_0;
|
|
425
425
|
}
|
|
426
|
-
var r_0 = this_0.
|
|
426
|
+
var r_0 = this_0.v21_1.atomicfu$getAndIncrement$long();
|
|
427
427
|
// Inline function 'kotlin.Long.div' call
|
|
428
428
|
var other = get_SEGMENT_SIZE();
|
|
429
429
|
var id = divide(r_0, fromInt(other));
|
|
@@ -431,7 +431,7 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
431
431
|
var other_0 = get_SEGMENT_SIZE();
|
|
432
432
|
var tmp$ret$3 = modulo(r_0, fromInt(other_0));
|
|
433
433
|
var i = convertToInt(tmp$ret$3);
|
|
434
|
-
if (!(segment_0.
|
|
434
|
+
if (!(segment_0.a1u_1 === id)) {
|
|
435
435
|
var tmp0_elvis_lhs = findSegmentReceive(this_0, id, segment_0);
|
|
436
436
|
var tmp;
|
|
437
437
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -450,8 +450,8 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
450
450
|
prepareReceiverForSuspension(this_0, tmp1_safe_receiver, segment_0, i);
|
|
451
451
|
}
|
|
452
452
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
453
|
-
if (r_0 < this_0.
|
|
454
|
-
segment_0.
|
|
453
|
+
if (r_0 < this_0.w22()) {
|
|
454
|
+
segment_0.q22();
|
|
455
455
|
}
|
|
456
456
|
continue $l$loop_0;
|
|
457
457
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
@@ -459,55 +459,55 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
459
459
|
var message = 'unexpected';
|
|
460
460
|
throw IllegalStateException().o(toString_0(message));
|
|
461
461
|
} else {
|
|
462
|
-
segment_0.
|
|
462
|
+
segment_0.q22();
|
|
463
463
|
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
464
|
-
$this.
|
|
465
|
-
$this.
|
|
466
|
-
var tmp0_safe_receiver = $this.
|
|
467
|
-
cancellable.
|
|
464
|
+
$this.s22_1 = element;
|
|
465
|
+
$this.t22_1 = null;
|
|
466
|
+
var tmp0_safe_receiver = $this.u22_1.t21_1;
|
|
467
|
+
cancellable.b1t(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.u22_1, tmp0_safe_receiver, element));
|
|
468
468
|
}
|
|
469
469
|
break $l$block_0;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
} else {
|
|
473
|
-
segment.
|
|
473
|
+
segment.q22();
|
|
474
474
|
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
475
|
-
$this.
|
|
476
|
-
$this.
|
|
477
|
-
var tmp0_safe_receiver_0 = $this.
|
|
478
|
-
cancellable.
|
|
475
|
+
$this.s22_1 = element_0;
|
|
476
|
+
$this.t22_1 = null;
|
|
477
|
+
var tmp0_safe_receiver_0 = $this.u22_1.t21_1;
|
|
478
|
+
cancellable.b1t(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.u22_1, tmp0_safe_receiver_0, element_0));
|
|
479
479
|
}
|
|
480
480
|
} catch ($p) {
|
|
481
481
|
if ($p instanceof Error) {
|
|
482
482
|
var e = $p;
|
|
483
|
-
cancellable.
|
|
483
|
+
cancellable.b1v();
|
|
484
484
|
throw e;
|
|
485
485
|
} else {
|
|
486
486
|
throw $p;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
return cancellable.
|
|
489
|
+
return cancellable.a1v();
|
|
490
490
|
}
|
|
491
491
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
492
|
-
var cont = ensureNotNull($this.
|
|
493
|
-
$this.
|
|
494
|
-
$this.
|
|
495
|
-
var cause = $this.
|
|
492
|
+
var cont = ensureNotNull($this.t22_1);
|
|
493
|
+
$this.t22_1 = null;
|
|
494
|
+
$this.s22_1 = get_CHANNEL_CLOSED();
|
|
495
|
+
var cause = $this.u22_1.x22();
|
|
496
496
|
if (cause == null) {
|
|
497
497
|
// Inline function 'kotlin.coroutines.resume' call
|
|
498
498
|
// Inline function 'kotlin.Companion.success' call
|
|
499
499
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
500
|
-
cont.
|
|
500
|
+
cont.mc(tmp$ret$0);
|
|
501
501
|
} else {
|
|
502
502
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
503
503
|
// Inline function 'kotlin.Companion.failure' call
|
|
504
504
|
var exception = recoverStackTrace_0(cause, cont);
|
|
505
505
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
506
|
-
cont.
|
|
506
|
+
cont.mc(tmp$ret$2);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
function _get_bufferEndCounter__2d4hee($this) {
|
|
510
|
-
return $this.
|
|
510
|
+
return $this.w21_1.kotlinx$atomicfu$value;
|
|
511
511
|
}
|
|
512
512
|
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
513
513
|
// Inline function 'kotlin.let' call
|
|
@@ -517,9 +517,9 @@ function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
|
517
517
|
function *_generator_send__qhx0g0($this, element, $completion) {
|
|
518
518
|
$l$block_5: {
|
|
519
519
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
520
|
-
var segment = $this.
|
|
520
|
+
var segment = $this.y21_1.kotlinx$atomicfu$value;
|
|
521
521
|
$l$loop_0: while (true) {
|
|
522
|
-
var sendersAndCloseStatusCur = $this.
|
|
522
|
+
var sendersAndCloseStatusCur = $this.u21_1.atomicfu$getAndIncrement$long();
|
|
523
523
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
524
524
|
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
525
525
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
@@ -530,7 +530,7 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
530
530
|
var other_0 = get_SEGMENT_SIZE();
|
|
531
531
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
532
532
|
var i = convertToInt(tmp$ret$2);
|
|
533
|
-
if (!(segment.
|
|
533
|
+
if (!(segment.a1u_1 === id)) {
|
|
534
534
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment);
|
|
535
535
|
var tmp;
|
|
536
536
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -550,13 +550,13 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
550
550
|
}
|
|
551
551
|
switch (updateCellSend($this, segment, i, element, s, null, closed)) {
|
|
552
552
|
case 0:
|
|
553
|
-
segment.
|
|
553
|
+
segment.q22();
|
|
554
554
|
break $l$block_5;
|
|
555
555
|
case 1:
|
|
556
556
|
break $l$block_5;
|
|
557
557
|
case 2:
|
|
558
558
|
if (closed) {
|
|
559
|
-
segment.
|
|
559
|
+
segment.g22();
|
|
560
560
|
var tmp_2 = onClosedSend($this, element, $completion);
|
|
561
561
|
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
562
562
|
tmp_2 = yield tmp_2;
|
|
@@ -574,8 +574,8 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
574
574
|
|
|
575
575
|
break $l$block_5;
|
|
576
576
|
case 4:
|
|
577
|
-
if (s < $this.
|
|
578
|
-
segment.
|
|
577
|
+
if (s < $this.y22()) {
|
|
578
|
+
segment.q22();
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
var tmp_3 = onClosedSend($this, element, $completion);
|
|
@@ -583,7 +583,7 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
583
583
|
tmp_3 = yield tmp_3;
|
|
584
584
|
break $l$block_5;
|
|
585
585
|
case 5:
|
|
586
|
-
segment.
|
|
586
|
+
segment.q22();
|
|
587
587
|
continue $l$loop_0;
|
|
588
588
|
case 3:
|
|
589
589
|
var segm = segment;
|
|
@@ -598,30 +598,30 @@ function *_generator_send__qhx0g0($this, element, $completion) {
|
|
|
598
598
|
}
|
|
599
599
|
function onClosedSend($this, element, $completion) {
|
|
600
600
|
var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
|
|
601
|
-
cancellable.
|
|
601
|
+
cancellable.s1u();
|
|
602
602
|
$l$block: {
|
|
603
|
-
var tmp0_safe_receiver = $this.
|
|
603
|
+
var tmp0_safe_receiver = $this.t21_1;
|
|
604
604
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
605
605
|
if (tmp1_safe_receiver == null)
|
|
606
606
|
null;
|
|
607
607
|
else {
|
|
608
608
|
// Inline function 'kotlin.let' call
|
|
609
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
609
|
+
addSuppressed(tmp1_safe_receiver, $this.z22());
|
|
610
610
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
611
611
|
// Inline function 'kotlin.Companion.failure' call
|
|
612
612
|
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
613
613
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
614
|
-
cancellable.
|
|
614
|
+
cancellable.mc(tmp$ret$0);
|
|
615
615
|
break $l$block;
|
|
616
616
|
}
|
|
617
617
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
618
|
-
var exception_0 = $this.
|
|
618
|
+
var exception_0 = $this.z22();
|
|
619
619
|
// Inline function 'kotlin.Companion.failure' call
|
|
620
620
|
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
621
621
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
622
|
-
cancellable.
|
|
622
|
+
cancellable.mc(tmp$ret$4);
|
|
623
623
|
}
|
|
624
|
-
return cancellable.
|
|
624
|
+
return cancellable.a1v();
|
|
625
625
|
}
|
|
626
626
|
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
627
627
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
@@ -629,13 +629,13 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
629
629
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImplOnNoWaiter' call
|
|
630
630
|
switch (updateCellSend($this, segment, index, element, s, cancellable, false)) {
|
|
631
631
|
case 0:
|
|
632
|
-
segment.
|
|
632
|
+
segment.q22();
|
|
633
633
|
// Inline function 'kotlin.coroutines.resume' call
|
|
634
634
|
|
|
635
635
|
// Inline function 'kotlin.Companion.success' call
|
|
636
636
|
|
|
637
637
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
638
|
-
cancellable.
|
|
638
|
+
cancellable.mc(tmp$ret$0);
|
|
639
639
|
break;
|
|
640
640
|
case 1:
|
|
641
641
|
// Inline function 'kotlin.coroutines.resume' call
|
|
@@ -643,25 +643,25 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
643
643
|
// Inline function 'kotlin.Companion.success' call
|
|
644
644
|
|
|
645
645
|
var tmp$ret$3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
646
|
-
cancellable.
|
|
646
|
+
cancellable.mc(tmp$ret$3);
|
|
647
647
|
break;
|
|
648
648
|
case 2:
|
|
649
649
|
prepareSenderForSuspension($this, cancellable, segment, index);
|
|
650
650
|
break;
|
|
651
651
|
case 4:
|
|
652
|
-
if (s < $this.
|
|
653
|
-
segment.
|
|
652
|
+
if (s < $this.y22()) {
|
|
653
|
+
segment.q22();
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
657
657
|
break;
|
|
658
658
|
case 5:
|
|
659
|
-
segment.
|
|
659
|
+
segment.q22();
|
|
660
660
|
$l$block_5: {
|
|
661
661
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
662
|
-
var segment_0 = $this.
|
|
662
|
+
var segment_0 = $this.y21_1.kotlinx$atomicfu$value;
|
|
663
663
|
$l$loop_0: while (true) {
|
|
664
|
-
var sendersAndCloseStatusCur = $this.
|
|
664
|
+
var sendersAndCloseStatusCur = $this.u21_1.atomicfu$getAndIncrement$long();
|
|
665
665
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
666
666
|
var s_0 = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
667
667
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
@@ -672,7 +672,7 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
672
672
|
var other_0 = get_SEGMENT_SIZE();
|
|
673
673
|
var tmp$ret$9 = modulo(s_0, fromInt(other_0));
|
|
674
674
|
var i = convertToInt(tmp$ret$9);
|
|
675
|
-
if (!(segment_0.
|
|
675
|
+
if (!(segment_0.a1u_1 === id)) {
|
|
676
676
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment_0);
|
|
677
677
|
var tmp;
|
|
678
678
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -690,13 +690,13 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
690
690
|
}
|
|
691
691
|
switch (updateCellSend($this, segment_0, i, element, s_0, cancellable, closed)) {
|
|
692
692
|
case 0:
|
|
693
|
-
segment_0.
|
|
693
|
+
segment_0.q22();
|
|
694
694
|
// Inline function 'kotlin.coroutines.resume' call
|
|
695
695
|
|
|
696
696
|
// Inline function 'kotlin.Companion.success' call
|
|
697
697
|
|
|
698
698
|
var tmp$ret$12 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
699
|
-
cancellable.
|
|
699
|
+
cancellable.mc(tmp$ret$12);
|
|
700
700
|
break $l$block_5;
|
|
701
701
|
case 1:
|
|
702
702
|
// Inline function 'kotlin.coroutines.resume' call
|
|
@@ -704,11 +704,11 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
704
704
|
// Inline function 'kotlin.Companion.success' call
|
|
705
705
|
|
|
706
706
|
var tmp$ret$15 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
707
|
-
cancellable.
|
|
707
|
+
cancellable.mc(tmp$ret$15);
|
|
708
708
|
break $l$block_5;
|
|
709
709
|
case 2:
|
|
710
710
|
if (closed) {
|
|
711
|
-
segment_0.
|
|
711
|
+
segment_0.g22();
|
|
712
712
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
713
713
|
break $l$block_5;
|
|
714
714
|
}
|
|
@@ -722,14 +722,14 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
722
722
|
|
|
723
723
|
break $l$block_5;
|
|
724
724
|
case 4:
|
|
725
|
-
if (s_0 < $this.
|
|
726
|
-
segment_0.
|
|
725
|
+
if (s_0 < $this.y22()) {
|
|
726
|
+
segment_0.q22();
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
730
730
|
break $l$block_5;
|
|
731
731
|
case 5:
|
|
732
|
-
segment_0.
|
|
732
|
+
segment_0.q22();
|
|
733
733
|
continue $l$loop_0;
|
|
734
734
|
case 3:
|
|
735
735
|
// Inline function 'kotlin.error' call
|
|
@@ -750,29 +750,29 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
750
750
|
} catch ($p) {
|
|
751
751
|
if ($p instanceof Error) {
|
|
752
752
|
var e = $p;
|
|
753
|
-
cancellable.
|
|
753
|
+
cancellable.b1v();
|
|
754
754
|
throw e;
|
|
755
755
|
} else {
|
|
756
756
|
throw $p;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
return cancellable.
|
|
759
|
+
return cancellable.a1v();
|
|
760
760
|
}
|
|
761
761
|
function prepareSenderForSuspension($this, _this__u8e3s4, segment, index) {
|
|
762
|
-
_this__u8e3s4.
|
|
762
|
+
_this__u8e3s4.h1v(segment, index + get_SEGMENT_SIZE() | 0);
|
|
763
763
|
}
|
|
764
764
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
765
|
-
var tmp0_safe_receiver = $this.
|
|
765
|
+
var tmp0_safe_receiver = $this.t21_1;
|
|
766
766
|
if (tmp0_safe_receiver == null)
|
|
767
767
|
null;
|
|
768
768
|
else {
|
|
769
|
-
callUndeliveredElement(tmp0_safe_receiver, element, cont.
|
|
769
|
+
callUndeliveredElement(tmp0_safe_receiver, element, cont.kc());
|
|
770
770
|
}
|
|
771
771
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
772
772
|
// Inline function 'kotlin.Companion.failure' call
|
|
773
|
-
var exception = recoverStackTrace_0($this.
|
|
773
|
+
var exception = recoverStackTrace_0($this.z22(), cont);
|
|
774
774
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
775
|
-
cont.
|
|
775
|
+
cont.mc(tmp$ret$0);
|
|
776
776
|
}
|
|
777
777
|
var SendBroadcastClass;
|
|
778
778
|
function SendBroadcast() {
|
|
@@ -784,34 +784,34 @@ function SendBroadcast() {
|
|
|
784
784
|
return SendBroadcastClass;
|
|
785
785
|
}
|
|
786
786
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
787
|
-
segment.
|
|
787
|
+
segment.k21(index, element);
|
|
788
788
|
if (closed)
|
|
789
789
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
790
|
-
var state = segment.
|
|
790
|
+
var state = segment.o21(index);
|
|
791
791
|
if (state === null) {
|
|
792
792
|
if (bufferOrRendezvousSend($this, s)) {
|
|
793
|
-
if (segment.
|
|
793
|
+
if (segment.q21(index, null, get_BUFFERED())) {
|
|
794
794
|
return 1;
|
|
795
795
|
}
|
|
796
796
|
} else {
|
|
797
797
|
if (waiter == null) {
|
|
798
798
|
return 3;
|
|
799
799
|
} else {
|
|
800
|
-
if (segment.
|
|
800
|
+
if (segment.q21(index, null, waiter))
|
|
801
801
|
return 2;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
} else {
|
|
805
805
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
806
|
-
segment.
|
|
806
|
+
segment.n21(index);
|
|
807
807
|
var tmp;
|
|
808
808
|
if (tryResumeReceiver($this, state, element)) {
|
|
809
|
-
segment.
|
|
810
|
-
$this.
|
|
809
|
+
segment.p21(index, get_DONE_RCV());
|
|
810
|
+
$this.a23();
|
|
811
811
|
tmp = 0;
|
|
812
812
|
} else {
|
|
813
|
-
if (!(segment.
|
|
814
|
-
segment.
|
|
813
|
+
if (!(segment.r21(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
814
|
+
segment.e22(index, true);
|
|
815
815
|
}
|
|
816
816
|
tmp = 5;
|
|
817
817
|
}
|
|
@@ -822,55 +822,55 @@ function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
|
822
822
|
}
|
|
823
823
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
824
824
|
while (true) {
|
|
825
|
-
var state = segment.
|
|
825
|
+
var state = segment.o21(index);
|
|
826
826
|
if (state === null) {
|
|
827
827
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
828
|
-
if (segment.
|
|
828
|
+
if (segment.q21(index, null, get_BUFFERED())) {
|
|
829
829
|
return 1;
|
|
830
830
|
}
|
|
831
831
|
} else {
|
|
832
832
|
if (closed) {
|
|
833
|
-
if (segment.
|
|
834
|
-
segment.
|
|
833
|
+
if (segment.q21(index, null, get_INTERRUPTED_SEND())) {
|
|
834
|
+
segment.e22(index, false);
|
|
835
835
|
return 4;
|
|
836
836
|
}
|
|
837
837
|
} else if (waiter == null)
|
|
838
838
|
return 3;
|
|
839
|
-
else if (segment.
|
|
839
|
+
else if (segment.q21(index, null, waiter))
|
|
840
840
|
return 2;
|
|
841
841
|
}
|
|
842
842
|
} else if (state === get_IN_BUFFER()) {
|
|
843
|
-
if (segment.
|
|
843
|
+
if (segment.q21(index, state, get_BUFFERED())) {
|
|
844
844
|
return 1;
|
|
845
845
|
}
|
|
846
846
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
847
|
-
segment.
|
|
847
|
+
segment.n21(index);
|
|
848
848
|
return 5;
|
|
849
849
|
} else if (state === get_POISONED()) {
|
|
850
|
-
segment.
|
|
850
|
+
segment.n21(index);
|
|
851
851
|
return 5;
|
|
852
852
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
853
|
-
segment.
|
|
853
|
+
segment.n21(index);
|
|
854
854
|
completeCloseOrCancel($this);
|
|
855
855
|
return 4;
|
|
856
856
|
} else {
|
|
857
857
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
858
|
-
segment.
|
|
858
|
+
segment.n21(index);
|
|
859
859
|
var tmp;
|
|
860
860
|
if (state instanceof WaiterEB()) {
|
|
861
|
-
tmp = state.
|
|
861
|
+
tmp = state.b23_1;
|
|
862
862
|
} else {
|
|
863
863
|
tmp = state;
|
|
864
864
|
}
|
|
865
865
|
var receiver = tmp;
|
|
866
866
|
var tmp_0;
|
|
867
867
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
868
|
-
segment.
|
|
869
|
-
$this.
|
|
868
|
+
segment.p21(index, get_DONE_RCV());
|
|
869
|
+
$this.a23();
|
|
870
870
|
tmp_0 = 0;
|
|
871
871
|
} else {
|
|
872
|
-
if (!(segment.
|
|
873
|
-
segment.
|
|
872
|
+
if (!(segment.r21(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
873
|
+
segment.e22(index, true);
|
|
874
874
|
}
|
|
875
875
|
tmp_0 = 5;
|
|
876
876
|
}
|
|
@@ -890,9 +890,9 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
890
890
|
if (curSenders < _get_bufferEndCounter__2d4hee($this)) {
|
|
891
891
|
tmp = true;
|
|
892
892
|
} else {
|
|
893
|
-
var tmp0 = $this.
|
|
893
|
+
var tmp0 = $this.y22();
|
|
894
894
|
// Inline function 'kotlin.Long.plus' call
|
|
895
|
-
var other = $this.
|
|
895
|
+
var other = $this.s21_1;
|
|
896
896
|
tmp = curSenders < add(tmp0, fromInt(other));
|
|
897
897
|
}
|
|
898
898
|
return tmp;
|
|
@@ -900,24 +900,24 @@ function bufferOrRendezvousSend($this, curSenders) {
|
|
|
900
900
|
function tryResumeReceiver($this, _this__u8e3s4, element) {
|
|
901
901
|
var tmp;
|
|
902
902
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
903
|
-
tmp = _this__u8e3s4.
|
|
903
|
+
tmp = _this__u8e3s4.g23($this, element);
|
|
904
904
|
} else {
|
|
905
905
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
906
906
|
if (!(_this__u8e3s4 instanceof ReceiveCatching()))
|
|
907
907
|
THROW_CCE();
|
|
908
|
-
var tmp_0 = Companion_getInstance().
|
|
909
|
-
var tmp1_safe_receiver = $this.
|
|
910
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
908
|
+
var tmp_0 = Companion_getInstance().e23(element);
|
|
909
|
+
var tmp1_safe_receiver = $this.t21_1;
|
|
910
|
+
tmp = tryResume0(_this__u8e3s4.f23_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
911
911
|
} else {
|
|
912
912
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
913
913
|
if (!(_this__u8e3s4 instanceof BufferedChannelIterator()))
|
|
914
914
|
THROW_CCE();
|
|
915
|
-
tmp = _this__u8e3s4.
|
|
915
|
+
tmp = _this__u8e3s4.c23(element);
|
|
916
916
|
} else {
|
|
917
917
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
918
918
|
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
919
919
|
THROW_CCE();
|
|
920
|
-
var tmp2_safe_receiver = $this.
|
|
920
|
+
var tmp2_safe_receiver = $this.t21_1;
|
|
921
921
|
tmp = tryResume0(_this__u8e3s4, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
922
922
|
} else {
|
|
923
923
|
var message = 'Unexpected receiver type: ' + toString_0(_this__u8e3s4);
|
|
@@ -929,38 +929,38 @@ function tryResumeReceiver($this, _this__u8e3s4, element) {
|
|
|
929
929
|
return tmp;
|
|
930
930
|
}
|
|
931
931
|
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
932
|
-
$this.
|
|
933
|
-
_this__u8e3s4.
|
|
932
|
+
$this.h23();
|
|
933
|
+
_this__u8e3s4.h1v(segment, index);
|
|
934
934
|
}
|
|
935
935
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
936
|
-
var state = segment.
|
|
936
|
+
var state = segment.o21(index);
|
|
937
937
|
if (state === null) {
|
|
938
938
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
939
|
-
var senders = $this.
|
|
939
|
+
var senders = $this.u21_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
940
940
|
if (r >= senders) {
|
|
941
941
|
if (waiter === null) {
|
|
942
942
|
return get_SUSPEND_NO_WAITER();
|
|
943
943
|
}
|
|
944
|
-
if (segment.
|
|
944
|
+
if (segment.q21(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.q21(index, state, get_DONE_RCV())) {
|
|
951
951
|
expandBuffer($this);
|
|
952
|
-
return segment.
|
|
952
|
+
return segment.m21(index);
|
|
953
953
|
}
|
|
954
954
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
955
955
|
}
|
|
956
956
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
957
957
|
$l$loop: while (true) {
|
|
958
|
-
var state = segment.
|
|
958
|
+
var state = segment.o21(index);
|
|
959
959
|
if (state === null || state === get_IN_BUFFER()) {
|
|
960
960
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
961
|
-
var senders = $this.
|
|
961
|
+
var senders = $this.u21_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
962
962
|
if (r < senders) {
|
|
963
|
-
if (segment.
|
|
963
|
+
if (segment.q21(index, state, get_POISONED())) {
|
|
964
964
|
expandBuffer($this);
|
|
965
965
|
return get_FAILED();
|
|
966
966
|
}
|
|
@@ -968,15 +968,15 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
968
968
|
if (waiter === null) {
|
|
969
969
|
return get_SUSPEND_NO_WAITER();
|
|
970
970
|
}
|
|
971
|
-
if (segment.
|
|
971
|
+
if (segment.q21(index, state, waiter)) {
|
|
972
972
|
expandBuffer($this);
|
|
973
973
|
return get_SUSPEND();
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
} else if (state === get_BUFFERED()) {
|
|
977
|
-
if (segment.
|
|
977
|
+
if (segment.q21(index, state, get_DONE_RCV())) {
|
|
978
978
|
expandBuffer($this);
|
|
979
|
-
return segment.
|
|
979
|
+
return segment.m21(index);
|
|
980
980
|
}
|
|
981
981
|
} else if (state === get_INTERRUPTED_SEND())
|
|
982
982
|
return get_FAILED();
|
|
@@ -988,23 +988,23 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
988
988
|
} else if (state === get_RESUMING_BY_EB())
|
|
989
989
|
continue $l$loop;
|
|
990
990
|
else {
|
|
991
|
-
if (segment.
|
|
991
|
+
if (segment.q21(index, state, get_RESUMING_BY_RCV())) {
|
|
992
992
|
var helpExpandBuffer = state instanceof WaiterEB();
|
|
993
993
|
var tmp;
|
|
994
994
|
if (state instanceof WaiterEB()) {
|
|
995
|
-
tmp = state.
|
|
995
|
+
tmp = state.b23_1;
|
|
996
996
|
} else {
|
|
997
997
|
tmp = state;
|
|
998
998
|
}
|
|
999
999
|
var sender = tmp;
|
|
1000
1000
|
var tmp_0;
|
|
1001
1001
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
1002
|
-
segment.
|
|
1002
|
+
segment.p21(index, get_DONE_RCV());
|
|
1003
1003
|
expandBuffer($this);
|
|
1004
|
-
tmp_0 = segment.
|
|
1004
|
+
tmp_0 = segment.m21(index);
|
|
1005
1005
|
} else {
|
|
1006
|
-
segment.
|
|
1007
|
-
segment.
|
|
1006
|
+
segment.p21(index, get_INTERRUPTED_SEND());
|
|
1007
|
+
segment.e22(index, false);
|
|
1008
1008
|
if (helpExpandBuffer) {
|
|
1009
1009
|
expandBuffer($this);
|
|
1010
1010
|
}
|
|
@@ -1025,14 +1025,14 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1025
1025
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
1026
1026
|
if (!(_this__u8e3s4 instanceof SelectImplementation()))
|
|
1027
1027
|
THROW_CCE();
|
|
1028
|
-
var trySelectResult = _this__u8e3s4.
|
|
1028
|
+
var trySelectResult = _this__u8e3s4.m23($this, Unit_instance);
|
|
1029
1029
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1030
|
-
segment.
|
|
1030
|
+
segment.n21(index);
|
|
1031
1031
|
}
|
|
1032
1032
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1033
1033
|
} else {
|
|
1034
1034
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1035
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
1035
|
+
tmp = tryResume0(_this__u8e3s4.i23_1, true);
|
|
1036
1036
|
} else {
|
|
1037
1037
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1038
1038
|
throw IllegalStateException().o(toString_0(message));
|
|
@@ -1044,21 +1044,21 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1044
1044
|
function expandBuffer($this) {
|
|
1045
1045
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1046
1046
|
return Unit_instance;
|
|
1047
|
-
var segment = $this.
|
|
1047
|
+
var segment = $this.a22_1.kotlinx$atomicfu$value;
|
|
1048
1048
|
try_again: while (true) {
|
|
1049
|
-
var b = $this.
|
|
1049
|
+
var b = $this.w21_1.atomicfu$getAndIncrement$long();
|
|
1050
1050
|
// Inline function 'kotlin.Long.div' call
|
|
1051
1051
|
var other = get_SEGMENT_SIZE();
|
|
1052
1052
|
var id = divide(b, fromInt(other));
|
|
1053
|
-
var s = $this.
|
|
1053
|
+
var s = $this.w22();
|
|
1054
1054
|
if (s <= b) {
|
|
1055
|
-
if (segment.
|
|
1055
|
+
if (segment.a1u_1 < id && !(segment.m22() == null)) {
|
|
1056
1056
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1057
1057
|
}
|
|
1058
1058
|
incCompletedExpandBufferAttempts$default($this);
|
|
1059
1059
|
return Unit_instance;
|
|
1060
1060
|
}
|
|
1061
|
-
if (!(segment.
|
|
1061
|
+
if (!(segment.a1u_1 === id)) {
|
|
1062
1062
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1063
1063
|
var tmp;
|
|
1064
1064
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1082,17 +1082,17 @@ function expandBuffer($this) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1085
|
-
var state = segment.
|
|
1085
|
+
var state = segment.o21(index);
|
|
1086
1086
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1087
|
-
if (b >= $this.
|
|
1088
|
-
if (segment.
|
|
1087
|
+
if (b >= $this.v21_1.kotlinx$atomicfu$value) {
|
|
1088
|
+
if (segment.q21(index, state, get_RESUMING_BY_EB())) {
|
|
1089
1089
|
var tmp;
|
|
1090
1090
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1091
|
-
segment.
|
|
1091
|
+
segment.p21(index, get_BUFFERED());
|
|
1092
1092
|
tmp = true;
|
|
1093
1093
|
} else {
|
|
1094
|
-
segment.
|
|
1095
|
-
segment.
|
|
1094
|
+
segment.p21(index, get_INTERRUPTED_SEND());
|
|
1095
|
+
segment.e22(index, false);
|
|
1096
1096
|
tmp = false;
|
|
1097
1097
|
}
|
|
1098
1098
|
return tmp;
|
|
@@ -1103,20 +1103,20 @@ function updateCellExpandBuffer($this, segment, index, b) {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1105
1105
|
$l$loop: while (true) {
|
|
1106
|
-
var state = segment.
|
|
1106
|
+
var state = segment.o21(index);
|
|
1107
1107
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1108
|
-
if (b < $this.
|
|
1109
|
-
if (segment.
|
|
1108
|
+
if (b < $this.v21_1.kotlinx$atomicfu$value) {
|
|
1109
|
+
if (segment.q21(index, state, new (WaiterEB())(state)))
|
|
1110
1110
|
return true;
|
|
1111
1111
|
} else {
|
|
1112
|
-
if (segment.
|
|
1112
|
+
if (segment.q21(index, state, get_RESUMING_BY_EB())) {
|
|
1113
1113
|
var tmp;
|
|
1114
1114
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1115
|
-
segment.
|
|
1115
|
+
segment.p21(index, get_BUFFERED());
|
|
1116
1116
|
tmp = true;
|
|
1117
1117
|
} else {
|
|
1118
|
-
segment.
|
|
1119
|
-
segment.
|
|
1118
|
+
segment.p21(index, get_INTERRUPTED_SEND());
|
|
1119
|
+
segment.e22(index, false);
|
|
1120
1120
|
tmp = false;
|
|
1121
1121
|
}
|
|
1122
1122
|
return tmp;
|
|
@@ -1127,7 +1127,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1127
1127
|
return false;
|
|
1128
1128
|
else {
|
|
1129
1129
|
if (state === null) {
|
|
1130
|
-
if (segment.
|
|
1130
|
+
if (segment.q21(index, state, get_IN_BUFFER()))
|
|
1131
1131
|
return true;
|
|
1132
1132
|
} else {
|
|
1133
1133
|
if (state === get_BUFFERED())
|
|
@@ -1157,10 +1157,10 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1157
1157
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1158
1158
|
// Inline function 'kotlin.also' call
|
|
1159
1159
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1160
|
-
if (!(($this.
|
|
1160
|
+
if (!(($this.x21_1.atomicfu$addAndGet$long(nAttempts) & 4611686018427387904n) === 0n)) {
|
|
1161
1161
|
$l$loop: while (true) {
|
|
1162
1162
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1163
|
-
if (!!(($this.
|
|
1163
|
+
if (!!(($this.x21_1.kotlinx$atomicfu$value & 4611686018427387904n) === 0n)) {
|
|
1164
1164
|
break $l$loop;
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
@@ -1175,56 +1175,56 @@ function BufferedChannelIterator() {
|
|
|
1175
1175
|
if (BufferedChannelIteratorClass === VOID) {
|
|
1176
1176
|
class $ {
|
|
1177
1177
|
constructor($outer) {
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1178
|
+
this.u22_1 = $outer;
|
|
1179
|
+
this.s22_1 = get_NO_RECEIVE_RESULT();
|
|
1180
|
+
this.t22_1 = null;
|
|
1181
1181
|
}
|
|
1182
|
-
|
|
1182
|
+
n23($completion) {
|
|
1183
1183
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_hasNext__q471nr.bind(VOID, this), $completion);
|
|
1184
1184
|
}
|
|
1185
|
-
|
|
1186
|
-
var tmp0_safe_receiver = this.
|
|
1185
|
+
h1v(segment, index) {
|
|
1186
|
+
var tmp0_safe_receiver = this.t22_1;
|
|
1187
1187
|
if (tmp0_safe_receiver == null)
|
|
1188
1188
|
null;
|
|
1189
1189
|
else {
|
|
1190
|
-
tmp0_safe_receiver.
|
|
1190
|
+
tmp0_safe_receiver.h1v(segment, index);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
1193
|
s1() {
|
|
1194
|
-
var result = this.
|
|
1194
|
+
var result = this.s22_1;
|
|
1195
1195
|
// Inline function 'kotlin.check' call
|
|
1196
1196
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1197
1197
|
var message = '`hasNext()` has not been invoked';
|
|
1198
1198
|
throw IllegalStateException().o(toString_0(message));
|
|
1199
1199
|
}
|
|
1200
|
-
this.
|
|
1200
|
+
this.s22_1 = get_NO_RECEIVE_RESULT();
|
|
1201
1201
|
if (result === get_CHANNEL_CLOSED())
|
|
1202
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.
|
|
1202
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.u22_1));
|
|
1203
1203
|
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
1204
1204
|
}
|
|
1205
|
-
|
|
1206
|
-
var cont = ensureNotNull(this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1209
|
-
var tmp0_safe_receiver = this.
|
|
1210
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
var cont = ensureNotNull(this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1216
|
-
var cause = this.
|
|
1205
|
+
c23(element) {
|
|
1206
|
+
var cont = ensureNotNull(this.t22_1);
|
|
1207
|
+
this.t22_1 = null;
|
|
1208
|
+
this.s22_1 = element;
|
|
1209
|
+
var tmp0_safe_receiver = this.u22_1.t21_1;
|
|
1210
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.u22_1, tmp0_safe_receiver, element));
|
|
1211
|
+
}
|
|
1212
|
+
o23() {
|
|
1213
|
+
var cont = ensureNotNull(this.t22_1);
|
|
1214
|
+
this.t22_1 = null;
|
|
1215
|
+
this.s22_1 = get_CHANNEL_CLOSED();
|
|
1216
|
+
var cause = this.u22_1.x22();
|
|
1217
1217
|
if (cause == null) {
|
|
1218
1218
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1219
1219
|
// Inline function 'kotlin.Companion.success' call
|
|
1220
1220
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1221
|
-
cont.
|
|
1221
|
+
cont.mc(tmp$ret$0);
|
|
1222
1222
|
} else {
|
|
1223
1223
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1224
1224
|
// Inline function 'kotlin.Companion.failure' call
|
|
1225
1225
|
var exception = recoverStackTrace_0(cause, cont);
|
|
1226
1226
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1227
|
-
cont.
|
|
1227
|
+
cont.mc(tmp$ret$2);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
@@ -1234,11 +1234,11 @@ function BufferedChannelIterator() {
|
|
|
1234
1234
|
return BufferedChannelIteratorClass;
|
|
1235
1235
|
}
|
|
1236
1236
|
function _get_receiveException__foorc1($this) {
|
|
1237
|
-
var tmp0_elvis_lhs = $this.
|
|
1238
|
-
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().
|
|
1237
|
+
var tmp0_elvis_lhs = $this.x22();
|
|
1238
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().t23('Channel was closed') : tmp0_elvis_lhs;
|
|
1239
1239
|
}
|
|
1240
1240
|
function invokeCloseHandler($this) {
|
|
1241
|
-
var tmp0 = $this.
|
|
1241
|
+
var tmp0 = $this.d22_1;
|
|
1242
1242
|
var tmp$ret$1;
|
|
1243
1243
|
$l$block: {
|
|
1244
1244
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -1267,10 +1267,10 @@ function invokeCloseHandler($this) {
|
|
|
1267
1267
|
var closeHandler = tmp_0;
|
|
1268
1268
|
if (typeof closeHandler !== 'function')
|
|
1269
1269
|
THROW_CCE();
|
|
1270
|
-
closeHandler($this.
|
|
1270
|
+
closeHandler($this.x22());
|
|
1271
1271
|
}
|
|
1272
1272
|
function markClosed($this) {
|
|
1273
|
-
var tmp0 = $this.
|
|
1273
|
+
var tmp0 = $this.u21_1;
|
|
1274
1274
|
var tmp$ret$4;
|
|
1275
1275
|
$l$block: {
|
|
1276
1276
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1305,7 +1305,7 @@ function markClosed($this) {
|
|
|
1305
1305
|
return tmp$ret$4;
|
|
1306
1306
|
}
|
|
1307
1307
|
function markCancelled($this) {
|
|
1308
|
-
var tmp0 = $this.
|
|
1308
|
+
var tmp0 = $this.u21_1;
|
|
1309
1309
|
var tmp$ret$2;
|
|
1310
1310
|
$l$block: {
|
|
1311
1311
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1324,7 +1324,7 @@ function markCancelled($this) {
|
|
|
1324
1324
|
return tmp$ret$2;
|
|
1325
1325
|
}
|
|
1326
1326
|
function markCancellationStarted($this) {
|
|
1327
|
-
var tmp0 = $this.
|
|
1327
|
+
var tmp0 = $this.u21_1;
|
|
1328
1328
|
var tmp$ret$3;
|
|
1329
1329
|
$l$block: {
|
|
1330
1330
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1350,14 +1350,14 @@ function markCancellationStarted($this) {
|
|
|
1350
1350
|
return tmp$ret$3;
|
|
1351
1351
|
}
|
|
1352
1352
|
function completeCloseOrCancel($this) {
|
|
1353
|
-
$this.
|
|
1353
|
+
$this.u23();
|
|
1354
1354
|
}
|
|
1355
1355
|
function completeClose($this, sendersCur) {
|
|
1356
1356
|
var lastSegment = closeLinkedList($this);
|
|
1357
|
-
if ($this.
|
|
1357
|
+
if ($this.w23()) {
|
|
1358
1358
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1359
1359
|
if (!(lastBufferedCellGlobalIndex === -1n)) {
|
|
1360
|
-
$this.
|
|
1360
|
+
$this.v23(lastBufferedCellGlobalIndex);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -1368,14 +1368,14 @@ function completeCancel($this, sendersCur) {
|
|
|
1368
1368
|
removeUnprocessedElements($this, lastSegment);
|
|
1369
1369
|
}
|
|
1370
1370
|
function closeLinkedList($this) {
|
|
1371
|
-
var lastSegment = $this.
|
|
1371
|
+
var lastSegment = $this.a22_1.kotlinx$atomicfu$value;
|
|
1372
1372
|
// Inline function 'kotlin.let' call
|
|
1373
|
-
var it = $this.
|
|
1374
|
-
if (it.
|
|
1373
|
+
var it = $this.y21_1.kotlinx$atomicfu$value;
|
|
1374
|
+
if (it.a1u_1 > lastSegment.a1u_1)
|
|
1375
1375
|
lastSegment = it;
|
|
1376
1376
|
// Inline function 'kotlin.let' call
|
|
1377
|
-
var it_0 = $this.
|
|
1378
|
-
if (it_0.
|
|
1377
|
+
var it_0 = $this.z21_1.kotlinx$atomicfu$value;
|
|
1378
|
+
if (it_0.a1u_1 > lastSegment.a1u_1)
|
|
1379
1379
|
lastSegment = it_0;
|
|
1380
1380
|
return close(lastSegment);
|
|
1381
1381
|
}
|
|
@@ -1387,19 +1387,19 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1387
1387
|
do {
|
|
1388
1388
|
var index = inductionVariable;
|
|
1389
1389
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1390
|
-
var tmp0 = segment.
|
|
1390
|
+
var tmp0 = segment.a1u_1;
|
|
1391
1391
|
// Inline function 'kotlin.Long.times' call
|
|
1392
1392
|
var other = get_SEGMENT_SIZE();
|
|
1393
1393
|
// Inline function 'kotlin.Long.plus' call
|
|
1394
1394
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1395
1395
|
var globalIndex = add(this_0, fromInt(index));
|
|
1396
|
-
if (globalIndex < $this.
|
|
1396
|
+
if (globalIndex < $this.y22())
|
|
1397
1397
|
return -1n;
|
|
1398
1398
|
cell_update: while (true) {
|
|
1399
|
-
var state = segment.
|
|
1399
|
+
var state = segment.o21(index);
|
|
1400
1400
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1401
|
-
if (segment.
|
|
1402
|
-
segment.
|
|
1401
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1402
|
+
segment.g22();
|
|
1403
1403
|
break cell_update;
|
|
1404
1404
|
}
|
|
1405
1405
|
} else if (state === get_BUFFERED())
|
|
@@ -1409,7 +1409,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
1411
|
while (0 <= inductionVariable);
|
|
1412
|
-
var tmp0_elvis_lhs = segment.
|
|
1412
|
+
var tmp0_elvis_lhs = segment.p22();
|
|
1413
1413
|
var tmp;
|
|
1414
1414
|
if (tmp0_elvis_lhs == null) {
|
|
1415
1415
|
return -1n;
|
|
@@ -1420,7 +1420,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
function removeUnprocessedElements($this, lastSegment) {
|
|
1423
|
-
var onUndeliveredElement = $this.
|
|
1423
|
+
var onUndeliveredElement = $this.t21_1;
|
|
1424
1424
|
var undeliveredElementException = null;
|
|
1425
1425
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1426
1426
|
var segment = lastSegment;
|
|
@@ -1430,33 +1430,33 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1430
1430
|
do {
|
|
1431
1431
|
var index = inductionVariable;
|
|
1432
1432
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1433
|
-
var tmp0 = segment.
|
|
1433
|
+
var tmp0 = segment.a1u_1;
|
|
1434
1434
|
// Inline function 'kotlin.Long.times' call
|
|
1435
1435
|
var other = get_SEGMENT_SIZE();
|
|
1436
1436
|
// Inline function 'kotlin.Long.plus' call
|
|
1437
1437
|
var this_0 = multiply(tmp0, fromInt(other));
|
|
1438
1438
|
var globalIndex = add(this_0, fromInt(index));
|
|
1439
1439
|
update_cell: while (true) {
|
|
1440
|
-
var state = segment.
|
|
1440
|
+
var state = segment.o21(index);
|
|
1441
1441
|
if (state === get_DONE_RCV())
|
|
1442
1442
|
break process_segments;
|
|
1443
1443
|
else {
|
|
1444
1444
|
if (state === get_BUFFERED()) {
|
|
1445
|
-
if (globalIndex < $this.
|
|
1445
|
+
if (globalIndex < $this.y22())
|
|
1446
1446
|
break process_segments;
|
|
1447
|
-
if (segment.
|
|
1447
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1448
1448
|
if (!(onUndeliveredElement == null)) {
|
|
1449
|
-
var element = segment.
|
|
1449
|
+
var element = segment.l21(index);
|
|
1450
1450
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1451
1451
|
}
|
|
1452
|
-
segment.
|
|
1453
|
-
segment.
|
|
1452
|
+
segment.n21(index);
|
|
1453
|
+
segment.g22();
|
|
1454
1454
|
break update_cell;
|
|
1455
1455
|
}
|
|
1456
1456
|
} else {
|
|
1457
1457
|
if (state === get_IN_BUFFER() || state === null) {
|
|
1458
|
-
if (segment.
|
|
1459
|
-
segment.
|
|
1458
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1459
|
+
segment.g22();
|
|
1460
1460
|
break update_cell;
|
|
1461
1461
|
}
|
|
1462
1462
|
} else {
|
|
@@ -1467,23 +1467,23 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1467
1467
|
tmp = state instanceof WaiterEB();
|
|
1468
1468
|
}
|
|
1469
1469
|
if (tmp) {
|
|
1470
|
-
if (globalIndex < $this.
|
|
1470
|
+
if (globalIndex < $this.y22())
|
|
1471
1471
|
break process_segments;
|
|
1472
1472
|
var tmp_0;
|
|
1473
1473
|
if (state instanceof WaiterEB()) {
|
|
1474
|
-
tmp_0 = state.
|
|
1474
|
+
tmp_0 = state.b23_1;
|
|
1475
1475
|
} else {
|
|
1476
1476
|
tmp_0 = (!(state == null) ? isInterface(state, Waiter()) : false) ? state : THROW_CCE();
|
|
1477
1477
|
}
|
|
1478
1478
|
var sender = tmp_0;
|
|
1479
|
-
if (segment.
|
|
1479
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1480
1480
|
if (!(onUndeliveredElement == null)) {
|
|
1481
|
-
var element_0 = segment.
|
|
1481
|
+
var element_0 = segment.l21(index);
|
|
1482
1482
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1483
1483
|
}
|
|
1484
1484
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1485
|
-
segment.
|
|
1486
|
-
segment.
|
|
1485
|
+
segment.n21(index);
|
|
1486
|
+
segment.g22();
|
|
1487
1487
|
break update_cell;
|
|
1488
1488
|
}
|
|
1489
1489
|
} else {
|
|
@@ -1503,7 +1503,7 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
while (0 <= inductionVariable);
|
|
1506
|
-
var tmp0_elvis_lhs = segment.
|
|
1506
|
+
var tmp0_elvis_lhs = segment.p22();
|
|
1507
1507
|
var tmp_1;
|
|
1508
1508
|
if (tmp0_elvis_lhs == null) {
|
|
1509
1509
|
break process_segments;
|
|
@@ -1555,7 +1555,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1555
1555
|
do {
|
|
1556
1556
|
var index = inductionVariable;
|
|
1557
1557
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1558
|
-
var tmp0 = segment.
|
|
1558
|
+
var tmp0 = segment.a1u_1;
|
|
1559
1559
|
// Inline function 'kotlin.Long.times' call
|
|
1560
1560
|
var other = get_SEGMENT_SIZE();
|
|
1561
1561
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -1563,24 +1563,24 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1563
1563
|
if (add(this_0, fromInt(index)) < sendersCounter)
|
|
1564
1564
|
break process_segments;
|
|
1565
1565
|
cell_update: while (true) {
|
|
1566
|
-
var state = segment.
|
|
1566
|
+
var state = segment.o21(index);
|
|
1567
1567
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1568
|
-
if (segment.
|
|
1569
|
-
segment.
|
|
1568
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1569
|
+
segment.g22();
|
|
1570
1570
|
break cell_update;
|
|
1571
1571
|
}
|
|
1572
1572
|
} else {
|
|
1573
1573
|
if (state instanceof WaiterEB()) {
|
|
1574
|
-
if (segment.
|
|
1575
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
1576
|
-
segment.
|
|
1574
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1575
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.b23_1);
|
|
1576
|
+
segment.e22(index, true);
|
|
1577
1577
|
break cell_update;
|
|
1578
1578
|
}
|
|
1579
1579
|
} else {
|
|
1580
1580
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1581
|
-
if (segment.
|
|
1581
|
+
if (segment.q21(index, state, get_CHANNEL_CLOSED())) {
|
|
1582
1582
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1583
|
-
segment.
|
|
1583
|
+
segment.e22(index, true);
|
|
1584
1584
|
break cell_update;
|
|
1585
1585
|
}
|
|
1586
1586
|
} else {
|
|
@@ -1591,7 +1591,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
while (0 <= inductionVariable);
|
|
1594
|
-
segment = segment.
|
|
1594
|
+
segment = segment.p22();
|
|
1595
1595
|
}
|
|
1596
1596
|
var tmp0_0 = suspendedReceivers;
|
|
1597
1597
|
$l$block: {
|
|
@@ -1629,31 +1629,31 @@ function resumeSenderOnCancelledChannel($this, _this__u8e3s4) {
|
|
|
1629
1629
|
function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
1630
1630
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1631
1631
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1632
|
-
var this_0 = _this__u8e3s4.
|
|
1632
|
+
var this_0 = _this__u8e3s4.i23_1;
|
|
1633
1633
|
// Inline function 'kotlin.Companion.success' call
|
|
1634
1634
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1635
|
-
this_0.
|
|
1635
|
+
this_0.mc(tmp$ret$0);
|
|
1636
1636
|
} else {
|
|
1637
1637
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
1638
1638
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1639
1639
|
// Inline function 'kotlin.Companion.failure' call
|
|
1640
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
1640
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.z22();
|
|
1641
1641
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1642
|
-
_this__u8e3s4.
|
|
1642
|
+
_this__u8e3s4.mc(tmp$ret$2);
|
|
1643
1643
|
} else {
|
|
1644
1644
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
1645
|
-
var tmp0 = _this__u8e3s4.
|
|
1645
|
+
var tmp0 = _this__u8e3s4.f23_1;
|
|
1646
1646
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1647
1647
|
// Inline function 'kotlin.Companion.success' call
|
|
1648
|
-
var value = new (ChannelResult())(Companion_getInstance().
|
|
1648
|
+
var value = new (ChannelResult())(Companion_getInstance().x23($this.x22()));
|
|
1649
1649
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
1650
|
-
tmp0.
|
|
1650
|
+
tmp0.mc(tmp$ret$4);
|
|
1651
1651
|
} else {
|
|
1652
1652
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
1653
|
-
_this__u8e3s4.
|
|
1653
|
+
_this__u8e3s4.o23();
|
|
1654
1654
|
} else {
|
|
1655
1655
|
if (isInterface(_this__u8e3s4, SelectInstance()))
|
|
1656
|
-
_this__u8e3s4.
|
|
1656
|
+
_this__u8e3s4.g23($this, get_CHANNEL_CLOSED());
|
|
1657
1657
|
else {
|
|
1658
1658
|
// Inline function 'kotlin.error' call
|
|
1659
1659
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
@@ -1685,7 +1685,7 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1685
1685
|
|
|
1686
1686
|
var tmp$ret$1 = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
1687
1687
|
completeClose($this, tmp$ret$1);
|
|
1688
|
-
tmp = isClosedForReceive ? !$this.
|
|
1688
|
+
tmp = isClosedForReceive ? !$this.y23() : true;
|
|
1689
1689
|
break;
|
|
1690
1690
|
case 3:
|
|
1691
1691
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -1704,9 +1704,9 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1706
1706
|
while (true) {
|
|
1707
|
-
var state = segment.
|
|
1707
|
+
var state = segment.o21(index);
|
|
1708
1708
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1709
|
-
if (segment.
|
|
1709
|
+
if (segment.q21(index, state, get_POISONED())) {
|
|
1710
1710
|
expandBuffer($this);
|
|
1711
1711
|
return false;
|
|
1712
1712
|
}
|
|
@@ -1725,11 +1725,11 @@ function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
|
1725
1725
|
else if (state === get_RESUMING_BY_RCV())
|
|
1726
1726
|
return false;
|
|
1727
1727
|
else
|
|
1728
|
-
return globalIndex === $this.
|
|
1728
|
+
return globalIndex === $this.y22();
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
function findSegmentSend($this, id, startFrom) {
|
|
1732
|
-
var tmp0 = $this.
|
|
1732
|
+
var tmp0 = $this.y21_1;
|
|
1733
1733
|
var tmp6 = createSegmentFunction();
|
|
1734
1734
|
var tmp$ret$2;
|
|
1735
1735
|
$l$block_2: {
|
|
@@ -1746,23 +1746,23 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1746
1746
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1747
1747
|
while (true) {
|
|
1748
1748
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1749
|
-
if (cur.
|
|
1749
|
+
if (cur.a1u_1 >= tmp2.a1u_1) {
|
|
1750
1750
|
tmp$ret$0 = true;
|
|
1751
1751
|
break $l$block_1;
|
|
1752
1752
|
}
|
|
1753
|
-
if (!tmp2.
|
|
1753
|
+
if (!tmp2.i22()) {
|
|
1754
1754
|
tmp$ret$0 = false;
|
|
1755
1755
|
break $l$block_1;
|
|
1756
1756
|
}
|
|
1757
1757
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1758
|
-
if (cur.
|
|
1759
|
-
cur.
|
|
1758
|
+
if (cur.j22()) {
|
|
1759
|
+
cur.y6();
|
|
1760
1760
|
}
|
|
1761
1761
|
tmp$ret$0 = true;
|
|
1762
1762
|
break $l$block_1;
|
|
1763
1763
|
}
|
|
1764
|
-
if (tmp2.
|
|
1765
|
-
tmp2.
|
|
1764
|
+
if (tmp2.j22()) {
|
|
1765
|
+
tmp2.y6();
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
1768
|
tmp$ret$0 = Unit_instance;
|
|
@@ -1780,27 +1780,27 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1780
1780
|
var tmp_0;
|
|
1781
1781
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1782
1782
|
completeCloseOrCancel($this);
|
|
1783
|
-
var tmp0_0 = startFrom.
|
|
1783
|
+
var tmp0_0 = startFrom.a1u_1;
|
|
1784
1784
|
// Inline function 'kotlin.Long.times' call
|
|
1785
1785
|
var other = get_SEGMENT_SIZE();
|
|
1786
|
-
if (multiply(tmp0_0, fromInt(other)) < $this.
|
|
1787
|
-
startFrom.
|
|
1786
|
+
if (multiply(tmp0_0, fromInt(other)) < $this.y22()) {
|
|
1787
|
+
startFrom.q22();
|
|
1788
1788
|
}
|
|
1789
1789
|
tmp_0 = null;
|
|
1790
1790
|
} else {
|
|
1791
1791
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1792
1792
|
var tmp_1;
|
|
1793
|
-
if (segment.
|
|
1794
|
-
var tmp0_1 = segment.
|
|
1793
|
+
if (segment.a1u_1 > id) {
|
|
1794
|
+
var tmp0_1 = segment.a1u_1;
|
|
1795
1795
|
// Inline function 'kotlin.Long.times' call
|
|
1796
1796
|
var other_0 = get_SEGMENT_SIZE();
|
|
1797
1797
|
var tmp$ret$4 = multiply(tmp0_1, fromInt(other_0));
|
|
1798
1798
|
updateSendersCounterIfLower($this, tmp$ret$4);
|
|
1799
|
-
var tmp0_2 = segment.
|
|
1799
|
+
var tmp0_2 = segment.a1u_1;
|
|
1800
1800
|
// Inline function 'kotlin.Long.times' call
|
|
1801
1801
|
var other_1 = get_SEGMENT_SIZE();
|
|
1802
|
-
if (multiply(tmp0_2, fromInt(other_1)) < $this.
|
|
1803
|
-
segment.
|
|
1802
|
+
if (multiply(tmp0_2, fromInt(other_1)) < $this.y22()) {
|
|
1803
|
+
segment.q22();
|
|
1804
1804
|
}
|
|
1805
1805
|
tmp_1 = null;
|
|
1806
1806
|
} else {
|
|
@@ -1812,7 +1812,7 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1812
1812
|
return tmp_0;
|
|
1813
1813
|
}
|
|
1814
1814
|
function findSegmentReceive($this, id, startFrom) {
|
|
1815
|
-
var tmp0 = $this.
|
|
1815
|
+
var tmp0 = $this.z21_1;
|
|
1816
1816
|
var tmp6 = createSegmentFunction();
|
|
1817
1817
|
var tmp$ret$2;
|
|
1818
1818
|
$l$block_2: {
|
|
@@ -1829,23 +1829,23 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1829
1829
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1830
1830
|
while (true) {
|
|
1831
1831
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1832
|
-
if (cur.
|
|
1832
|
+
if (cur.a1u_1 >= tmp2.a1u_1) {
|
|
1833
1833
|
tmp$ret$0 = true;
|
|
1834
1834
|
break $l$block_1;
|
|
1835
1835
|
}
|
|
1836
|
-
if (!tmp2.
|
|
1836
|
+
if (!tmp2.i22()) {
|
|
1837
1837
|
tmp$ret$0 = false;
|
|
1838
1838
|
break $l$block_1;
|
|
1839
1839
|
}
|
|
1840
1840
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1841
|
-
if (cur.
|
|
1842
|
-
cur.
|
|
1841
|
+
if (cur.j22()) {
|
|
1842
|
+
cur.y6();
|
|
1843
1843
|
}
|
|
1844
1844
|
tmp$ret$0 = true;
|
|
1845
1845
|
break $l$block_1;
|
|
1846
1846
|
}
|
|
1847
|
-
if (tmp2.
|
|
1848
|
-
tmp2.
|
|
1847
|
+
if (tmp2.j22()) {
|
|
1848
|
+
tmp2.y6();
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
1851
|
tmp$ret$0 = Unit_instance;
|
|
@@ -1863,11 +1863,11 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1863
1863
|
var tmp_0;
|
|
1864
1864
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1865
1865
|
completeCloseOrCancel($this);
|
|
1866
|
-
var tmp0_0 = startFrom.
|
|
1866
|
+
var tmp0_0 = startFrom.a1u_1;
|
|
1867
1867
|
// Inline function 'kotlin.Long.times' call
|
|
1868
1868
|
var other = get_SEGMENT_SIZE();
|
|
1869
|
-
if (multiply(tmp0_0, fromInt(other)) < $this.
|
|
1870
|
-
startFrom.
|
|
1869
|
+
if (multiply(tmp0_0, fromInt(other)) < $this.w22()) {
|
|
1870
|
+
startFrom.q22();
|
|
1871
1871
|
}
|
|
1872
1872
|
tmp_0 = null;
|
|
1873
1873
|
} else {
|
|
@@ -1882,41 +1882,41 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1882
1882
|
tmp_1 = false;
|
|
1883
1883
|
}
|
|
1884
1884
|
if (tmp_1) {
|
|
1885
|
-
var tmp0_2 = $this.
|
|
1885
|
+
var tmp0_2 = $this.a22_1;
|
|
1886
1886
|
$l$block_5: {
|
|
1887
1887
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1888
1888
|
while (true) {
|
|
1889
1889
|
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
1890
|
-
if (cur_0.
|
|
1890
|
+
if (cur_0.a1u_1 >= segment.a1u_1) {
|
|
1891
1891
|
break $l$block_5;
|
|
1892
1892
|
}
|
|
1893
|
-
if (!segment.
|
|
1893
|
+
if (!segment.i22()) {
|
|
1894
1894
|
break $l$block_5;
|
|
1895
1895
|
}
|
|
1896
1896
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
1897
|
-
if (cur_0.
|
|
1898
|
-
cur_0.
|
|
1897
|
+
if (cur_0.j22()) {
|
|
1898
|
+
cur_0.y6();
|
|
1899
1899
|
}
|
|
1900
1900
|
break $l$block_5;
|
|
1901
1901
|
}
|
|
1902
|
-
if (segment.
|
|
1903
|
-
segment.
|
|
1902
|
+
if (segment.j22()) {
|
|
1903
|
+
segment.y6();
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
var tmp_2;
|
|
1909
|
-
if (segment.
|
|
1910
|
-
var tmp0_3 = segment.
|
|
1909
|
+
if (segment.a1u_1 > id) {
|
|
1910
|
+
var tmp0_3 = segment.a1u_1;
|
|
1911
1911
|
// Inline function 'kotlin.Long.times' call
|
|
1912
1912
|
var other_1 = get_SEGMENT_SIZE();
|
|
1913
1913
|
var tmp$ret$7 = multiply(tmp0_3, fromInt(other_1));
|
|
1914
1914
|
updateReceiversCounterIfLower($this, tmp$ret$7);
|
|
1915
|
-
var tmp0_4 = segment.
|
|
1915
|
+
var tmp0_4 = segment.a1u_1;
|
|
1916
1916
|
// Inline function 'kotlin.Long.times' call
|
|
1917
1917
|
var other_2 = get_SEGMENT_SIZE();
|
|
1918
|
-
if (multiply(tmp0_4, fromInt(other_2)) < $this.
|
|
1919
|
-
segment.
|
|
1918
|
+
if (multiply(tmp0_4, fromInt(other_2)) < $this.w22()) {
|
|
1919
|
+
segment.q22();
|
|
1920
1920
|
}
|
|
1921
1921
|
tmp_2 = null;
|
|
1922
1922
|
} else {
|
|
@@ -1928,7 +1928,7 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1928
1928
|
return tmp_0;
|
|
1929
1929
|
}
|
|
1930
1930
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
1931
|
-
var tmp0 = $this.
|
|
1931
|
+
var tmp0 = $this.a22_1;
|
|
1932
1932
|
var tmp6 = createSegmentFunction();
|
|
1933
1933
|
var tmp$ret$2;
|
|
1934
1934
|
$l$block_2: {
|
|
@@ -1945,23 +1945,23 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
1945
1945
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1946
1946
|
while (true) {
|
|
1947
1947
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1948
|
-
if (cur.
|
|
1948
|
+
if (cur.a1u_1 >= tmp2.a1u_1) {
|
|
1949
1949
|
tmp$ret$0 = true;
|
|
1950
1950
|
break $l$block_1;
|
|
1951
1951
|
}
|
|
1952
|
-
if (!tmp2.
|
|
1952
|
+
if (!tmp2.i22()) {
|
|
1953
1953
|
tmp$ret$0 = false;
|
|
1954
1954
|
break $l$block_1;
|
|
1955
1955
|
}
|
|
1956
1956
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1957
|
-
if (cur.
|
|
1958
|
-
cur.
|
|
1957
|
+
if (cur.j22()) {
|
|
1958
|
+
cur.y6();
|
|
1959
1959
|
}
|
|
1960
1960
|
tmp$ret$0 = true;
|
|
1961
1961
|
break $l$block_1;
|
|
1962
1962
|
}
|
|
1963
|
-
if (tmp2.
|
|
1964
|
-
tmp2.
|
|
1963
|
+
if (tmp2.j22()) {
|
|
1964
|
+
tmp2.y6();
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
1967
|
tmp$ret$0 = Unit_instance;
|
|
@@ -1985,15 +1985,15 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
1985
1985
|
} else {
|
|
1986
1986
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1987
1987
|
var tmp_1;
|
|
1988
|
-
if (segment.
|
|
1988
|
+
if (segment.a1u_1 > id) {
|
|
1989
1989
|
// Inline function 'kotlin.Long.plus' call
|
|
1990
1990
|
var tmp_2 = add(currentBufferEndCounter, fromInt(1));
|
|
1991
|
-
var tmp0_0 = segment.
|
|
1991
|
+
var tmp0_0 = segment.a1u_1;
|
|
1992
1992
|
// Inline function 'kotlin.Long.times' call
|
|
1993
1993
|
var other = get_SEGMENT_SIZE();
|
|
1994
1994
|
var tmp$ret$4 = multiply(tmp0_0, fromInt(other));
|
|
1995
|
-
if ($this.
|
|
1996
|
-
var tmp0_1 = segment.
|
|
1995
|
+
if ($this.w21_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
1996
|
+
var tmp0_1 = segment.a1u_1;
|
|
1997
1997
|
// Inline function 'kotlin.Long.times' call
|
|
1998
1998
|
var other_0 = get_SEGMENT_SIZE();
|
|
1999
1999
|
var tmp$ret$5 = multiply(tmp0_1, fromInt(other_0));
|
|
@@ -2012,8 +2012,8 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2014
2014
|
var segment = startFrom;
|
|
2015
|
-
$l$loop: while (segment.
|
|
2016
|
-
var tmp0_elvis_lhs = segment.
|
|
2015
|
+
$l$loop: while (segment.a1u_1 < id) {
|
|
2016
|
+
var tmp0_elvis_lhs = segment.m22();
|
|
2017
2017
|
var tmp;
|
|
2018
2018
|
if (tmp0_elvis_lhs == null) {
|
|
2019
2019
|
break $l$loop;
|
|
@@ -2023,8 +2023,8 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2023
2023
|
segment = tmp;
|
|
2024
2024
|
}
|
|
2025
2025
|
while (true) {
|
|
2026
|
-
$l$loop_0: while (segment.
|
|
2027
|
-
var tmp1_elvis_lhs = segment.
|
|
2026
|
+
$l$loop_0: while (segment.h22()) {
|
|
2027
|
+
var tmp1_elvis_lhs = segment.m22();
|
|
2028
2028
|
var tmp_0;
|
|
2029
2029
|
if (tmp1_elvis_lhs == null) {
|
|
2030
2030
|
break $l$loop_0;
|
|
@@ -2033,30 +2033,30 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
segment = tmp_0;
|
|
2035
2035
|
}
|
|
2036
|
-
var tmp0 = $this.
|
|
2036
|
+
var tmp0 = $this.a22_1;
|
|
2037
2037
|
var tmp2 = segment;
|
|
2038
2038
|
var tmp$ret$0;
|
|
2039
2039
|
$l$block_1: {
|
|
2040
2040
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2041
2041
|
while (true) {
|
|
2042
2042
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2043
|
-
if (cur.
|
|
2043
|
+
if (cur.a1u_1 >= tmp2.a1u_1) {
|
|
2044
2044
|
tmp$ret$0 = true;
|
|
2045
2045
|
break $l$block_1;
|
|
2046
2046
|
}
|
|
2047
|
-
if (!tmp2.
|
|
2047
|
+
if (!tmp2.i22()) {
|
|
2048
2048
|
tmp$ret$0 = false;
|
|
2049
2049
|
break $l$block_1;
|
|
2050
2050
|
}
|
|
2051
2051
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2052
|
-
if (cur.
|
|
2053
|
-
cur.
|
|
2052
|
+
if (cur.j22()) {
|
|
2053
|
+
cur.y6();
|
|
2054
2054
|
}
|
|
2055
2055
|
tmp$ret$0 = true;
|
|
2056
2056
|
break $l$block_1;
|
|
2057
2057
|
}
|
|
2058
|
-
if (tmp2.
|
|
2059
|
-
tmp2.
|
|
2058
|
+
if (tmp2.j22()) {
|
|
2059
|
+
tmp2.y6();
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
2062
|
tmp$ret$0 = Unit_instance;
|
|
@@ -2066,7 +2066,7 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
function updateSendersCounterIfLower($this, value) {
|
|
2069
|
-
var this_0 = $this.
|
|
2069
|
+
var this_0 = $this.u21_1;
|
|
2070
2070
|
while (true) {
|
|
2071
2071
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2072
2072
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
@@ -2076,18 +2076,18 @@ function updateSendersCounterIfLower($this, value) {
|
|
|
2076
2076
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2077
2077
|
var tmp$ret$1 = convertToInt(shiftRight(cur, 60));
|
|
2078
2078
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$1);
|
|
2079
|
-
if ($this.
|
|
2079
|
+
if ($this.u21_1.atomicfu$compareAndSet(cur, update))
|
|
2080
2080
|
return Unit_instance;
|
|
2081
2081
|
}
|
|
2082
2082
|
return Unit_instance;
|
|
2083
2083
|
}
|
|
2084
2084
|
function updateReceiversCounterIfLower($this, value) {
|
|
2085
|
-
var this_0 = $this.
|
|
2085
|
+
var this_0 = $this.v21_1;
|
|
2086
2086
|
while (true) {
|
|
2087
2087
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2088
2088
|
if (cur >= value)
|
|
2089
2089
|
return Unit_instance;
|
|
2090
|
-
if ($this.
|
|
2090
|
+
if ($this.v21_1.atomicfu$compareAndSet(cur, value))
|
|
2091
2091
|
return Unit_instance;
|
|
2092
2092
|
}
|
|
2093
2093
|
return Unit_instance;
|
|
@@ -2096,7 +2096,7 @@ function bindCancellationFunResult($this, _this__u8e3s4) {
|
|
|
2096
2096
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2097
2097
|
}
|
|
2098
2098
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2099
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2099
|
+
callUndeliveredElement(ensureNotNull($this.t21_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2100
2100
|
}
|
|
2101
2101
|
function bindCancellationFun($this, _this__u8e3s4, element) {
|
|
2102
2102
|
return BufferedChannel$bindCancellationFun$lambda(_this__u8e3s4, element);
|
|
@@ -2105,13 +2105,13 @@ function bindCancellationFun_0($this, _this__u8e3s4) {
|
|
|
2105
2105
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2106
2106
|
}
|
|
2107
2107
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2108
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2108
|
+
callUndeliveredElement(ensureNotNull($this.t21_1), element, context);
|
|
2109
2109
|
}
|
|
2110
2110
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
2111
2111
|
return (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) => {
|
|
2112
2112
|
var tmp;
|
|
2113
2113
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2114
|
-
callUndeliveredElement(this$0.
|
|
2114
|
+
callUndeliveredElement(this$0.t21_1, ($element == null ? true : !($element == null)) ? $element : THROW_CCE(), $select.kc());
|
|
2115
2115
|
tmp = Unit_instance;
|
|
2116
2116
|
}
|
|
2117
2117
|
return Unit_instance;
|
|
@@ -2123,7 +2123,7 @@ function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lamb
|
|
|
2123
2123
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2124
2124
|
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2125
2125
|
var tmp0 = p0;
|
|
2126
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
2126
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.a24_1, p1);
|
|
2127
2127
|
return Unit_instance;
|
|
2128
2128
|
};
|
|
2129
2129
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
@@ -2150,20 +2150,20 @@ function BufferedChannel() {
|
|
|
2150
2150
|
class $ {
|
|
2151
2151
|
constructor(capacity, onUndeliveredElement) {
|
|
2152
2152
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2153
|
-
this.
|
|
2154
|
-
this.
|
|
2153
|
+
this.s21_1 = capacity;
|
|
2154
|
+
this.t21_1 = onUndeliveredElement;
|
|
2155
2155
|
// Inline function 'kotlin.require' call
|
|
2156
|
-
if (!(this.
|
|
2157
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
2156
|
+
if (!(this.s21_1 >= 0)) {
|
|
2157
|
+
var message = 'Invalid channel capacity: ' + this.s21_1 + ', should be >=0';
|
|
2158
2158
|
throw IllegalArgumentException().s2(toString_0(message));
|
|
2159
2159
|
}
|
|
2160
|
-
this.
|
|
2161
|
-
this.
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2160
|
+
this.u21_1 = atomic$long$1(0n);
|
|
2161
|
+
this.v21_1 = atomic$long$1(0n);
|
|
2162
|
+
this.w21_1 = atomic$long$1(initialBufferEnd(this.s21_1));
|
|
2163
|
+
this.x21_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2164
2164
|
var firstSegment = new (ChannelSegment())(0n, null, this, 3);
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2165
|
+
this.y21_1 = atomic$ref$1(firstSegment);
|
|
2166
|
+
this.z21_1 = atomic$ref$1(firstSegment);
|
|
2167
2167
|
var tmp = this;
|
|
2168
2168
|
var tmp_0;
|
|
2169
2169
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -2172,39 +2172,39 @@ function BufferedChannel() {
|
|
|
2172
2172
|
} else {
|
|
2173
2173
|
tmp_0 = firstSegment;
|
|
2174
2174
|
}
|
|
2175
|
-
tmp.
|
|
2175
|
+
tmp.a22_1 = atomic$ref$1(tmp_0);
|
|
2176
2176
|
var tmp_2 = this;
|
|
2177
2177
|
var tmp_3;
|
|
2178
|
-
if (this.
|
|
2178
|
+
if (this.t21_1 == null) {
|
|
2179
2179
|
tmp_3 = null;
|
|
2180
2180
|
} else {
|
|
2181
2181
|
// Inline function 'kotlin.let' call
|
|
2182
2182
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2183
2183
|
}
|
|
2184
|
-
tmp_2.
|
|
2185
|
-
this.
|
|
2186
|
-
this.
|
|
2184
|
+
tmp_2.b22_1 = tmp_3;
|
|
2185
|
+
this.c22_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2186
|
+
this.d22_1 = atomic$ref$1(null);
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2188
|
+
w22() {
|
|
2189
2189
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2190
|
-
return this.
|
|
2190
|
+
return this.u21_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
2191
2191
|
}
|
|
2192
|
-
|
|
2193
|
-
return this.
|
|
2192
|
+
y22() {
|
|
2193
|
+
return this.v21_1.kotlinx$atomicfu$value;
|
|
2194
2194
|
}
|
|
2195
|
-
|
|
2195
|
+
b24(element, $completion) {
|
|
2196
2196
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_send__qhx0g0.bind(VOID, this, element), $completion);
|
|
2197
2197
|
}
|
|
2198
|
-
|
|
2199
|
-
if (shouldSendSuspend0(this, this.
|
|
2200
|
-
return Companion_getInstance().
|
|
2198
|
+
c24(element) {
|
|
2199
|
+
if (shouldSendSuspend0(this, this.u21_1.kotlinx$atomicfu$value))
|
|
2200
|
+
return Companion_getInstance().d24();
|
|
2201
2201
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
2202
2202
|
var tmp$ret$4;
|
|
2203
2203
|
$l$block_4: {
|
|
2204
2204
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2205
|
-
var segment = this.
|
|
2205
|
+
var segment = this.y21_1.kotlinx$atomicfu$value;
|
|
2206
2206
|
$l$loop_0: while (true) {
|
|
2207
|
-
var sendersAndCloseStatusCur = this.
|
|
2207
|
+
var sendersAndCloseStatusCur = this.u21_1.atomicfu$getAndIncrement$long();
|
|
2208
2208
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2209
2209
|
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
2210
2210
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2215,13 +2215,13 @@ function BufferedChannel() {
|
|
|
2215
2215
|
var other_0 = get_SEGMENT_SIZE();
|
|
2216
2216
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2217
2217
|
var i = convertToInt(tmp$ret$2);
|
|
2218
|
-
if (!(segment.
|
|
2218
|
+
if (!(segment.a1u_1 === id)) {
|
|
2219
2219
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2220
2220
|
var tmp;
|
|
2221
2221
|
if (tmp0_elvis_lhs == null) {
|
|
2222
2222
|
var tmp_0;
|
|
2223
2223
|
if (closed) {
|
|
2224
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2224
|
+
tmp$ret$4 = Companion_getInstance().x23(this.z22());
|
|
2225
2225
|
break $l$block_4;
|
|
2226
2226
|
} else {
|
|
2227
2227
|
continue $l$loop_0;
|
|
@@ -2233,16 +2233,16 @@ function BufferedChannel() {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2235
2235
|
case 0:
|
|
2236
|
-
segment.
|
|
2237
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2236
|
+
segment.q22();
|
|
2237
|
+
tmp$ret$4 = Companion_getInstance().e23(Unit_instance);
|
|
2238
2238
|
break $l$block_4;
|
|
2239
2239
|
case 1:
|
|
2240
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2240
|
+
tmp$ret$4 = Companion_getInstance().e23(Unit_instance);
|
|
2241
2241
|
break $l$block_4;
|
|
2242
2242
|
case 2:
|
|
2243
2243
|
if (closed) {
|
|
2244
|
-
segment.
|
|
2245
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2244
|
+
segment.g22();
|
|
2245
|
+
tmp$ret$4 = Companion_getInstance().x23(this.z22());
|
|
2246
2246
|
break $l$block_4;
|
|
2247
2247
|
}
|
|
2248
2248
|
|
|
@@ -2253,18 +2253,18 @@ function BufferedChannel() {
|
|
|
2253
2253
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2254
2254
|
}
|
|
2255
2255
|
|
|
2256
|
-
segment.
|
|
2257
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2256
|
+
segment.g22();
|
|
2257
|
+
tmp$ret$4 = Companion_getInstance().d24();
|
|
2258
2258
|
break $l$block_4;
|
|
2259
2259
|
case 4:
|
|
2260
|
-
if (s < this.
|
|
2261
|
-
segment.
|
|
2260
|
+
if (s < this.y22()) {
|
|
2261
|
+
segment.q22();
|
|
2262
2262
|
}
|
|
2263
2263
|
|
|
2264
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2264
|
+
tmp$ret$4 = Companion_getInstance().x23(this.z22());
|
|
2265
2265
|
break $l$block_4;
|
|
2266
2266
|
case 5:
|
|
2267
|
-
segment.
|
|
2267
|
+
segment.q22();
|
|
2268
2268
|
continue $l$loop_0;
|
|
2269
2269
|
case 3:
|
|
2270
2270
|
var message = 'unexpected';
|
|
@@ -2274,13 +2274,13 @@ function BufferedChannel() {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
return tmp$ret$4;
|
|
2276
2276
|
}
|
|
2277
|
-
|
|
2277
|
+
e24(element) {
|
|
2278
2278
|
var tmp$ret$3;
|
|
2279
2279
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2280
2280
|
var waiter = get_BUFFERED();
|
|
2281
|
-
var segment = this.
|
|
2281
|
+
var segment = this.y21_1.kotlinx$atomicfu$value;
|
|
2282
2282
|
$l$loop_0: while (true) {
|
|
2283
|
-
var sendersAndCloseStatusCur = this.
|
|
2283
|
+
var sendersAndCloseStatusCur = this.u21_1.atomicfu$getAndIncrement$long();
|
|
2284
2284
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2285
2285
|
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
2286
2286
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
@@ -2291,13 +2291,13 @@ function BufferedChannel() {
|
|
|
2291
2291
|
var other_0 = get_SEGMENT_SIZE();
|
|
2292
2292
|
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2293
2293
|
var i = convertToInt(tmp$ret$2);
|
|
2294
|
-
if (!(segment.
|
|
2294
|
+
if (!(segment.a1u_1 === id)) {
|
|
2295
2295
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2296
2296
|
var tmp;
|
|
2297
2297
|
if (tmp0_elvis_lhs == null) {
|
|
2298
2298
|
var tmp_0;
|
|
2299
2299
|
if (closed) {
|
|
2300
|
-
return Companion_getInstance().
|
|
2300
|
+
return Companion_getInstance().x23(this.z22());
|
|
2301
2301
|
} else {
|
|
2302
2302
|
continue $l$loop_0;
|
|
2303
2303
|
}
|
|
@@ -2308,14 +2308,14 @@ function BufferedChannel() {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
switch (updateCellSend(this, segment, i, element, s, waiter, closed)) {
|
|
2310
2310
|
case 0:
|
|
2311
|
-
segment.
|
|
2312
|
-
return Companion_getInstance().
|
|
2311
|
+
segment.q22();
|
|
2312
|
+
return Companion_getInstance().e23(Unit_instance);
|
|
2313
2313
|
case 1:
|
|
2314
|
-
return Companion_getInstance().
|
|
2314
|
+
return Companion_getInstance().e23(Unit_instance);
|
|
2315
2315
|
case 2:
|
|
2316
2316
|
if (closed) {
|
|
2317
|
-
segment.
|
|
2318
|
-
return Companion_getInstance().
|
|
2317
|
+
segment.g22();
|
|
2318
|
+
return Companion_getInstance().x23(this.z22());
|
|
2319
2319
|
}
|
|
2320
2320
|
|
|
2321
2321
|
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter()) : false) ? waiter : null;
|
|
@@ -2325,7 +2325,7 @@ function BufferedChannel() {
|
|
|
2325
2325
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2326
2326
|
}
|
|
2327
2327
|
|
|
2328
|
-
var tmp0 = segment.
|
|
2328
|
+
var tmp0 = segment.a1u_1;
|
|
2329
2329
|
// Inline function 'kotlin.Long.times' call
|
|
2330
2330
|
|
|
2331
2331
|
var other_1 = get_SEGMENT_SIZE();
|
|
@@ -2333,16 +2333,16 @@ function BufferedChannel() {
|
|
|
2333
2333
|
|
|
2334
2334
|
var this_0 = multiply(tmp0, fromInt(other_1));
|
|
2335
2335
|
var tmp$ret$5 = add(this_0, fromInt(i));
|
|
2336
|
-
this.
|
|
2337
|
-
return Companion_getInstance().
|
|
2336
|
+
this.v23(tmp$ret$5);
|
|
2337
|
+
return Companion_getInstance().e23(Unit_instance);
|
|
2338
2338
|
case 4:
|
|
2339
|
-
if (s < this.
|
|
2340
|
-
segment.
|
|
2339
|
+
if (s < this.y22()) {
|
|
2340
|
+
segment.q22();
|
|
2341
2341
|
}
|
|
2342
2342
|
|
|
2343
|
-
return Companion_getInstance().
|
|
2343
|
+
return Companion_getInstance().x23(this.z22());
|
|
2344
2344
|
case 5:
|
|
2345
|
-
segment.
|
|
2345
|
+
segment.q22();
|
|
2346
2346
|
continue $l$loop_0;
|
|
2347
2347
|
case 3:
|
|
2348
2348
|
var message = 'unexpected';
|
|
@@ -2351,17 +2351,17 @@ function BufferedChannel() {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
return tmp$ret$3;
|
|
2353
2353
|
}
|
|
2354
|
-
o23() {
|
|
2355
|
-
}
|
|
2356
2354
|
h23() {
|
|
2357
2355
|
}
|
|
2358
|
-
|
|
2356
|
+
a23() {
|
|
2357
|
+
}
|
|
2358
|
+
v23(globalCellIndex) {
|
|
2359
2359
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2360
|
-
var segment = this.
|
|
2360
|
+
var segment = this.z21_1.kotlinx$atomicfu$value;
|
|
2361
2361
|
$l$loop_0: while (true) {
|
|
2362
|
-
var r = this.
|
|
2362
|
+
var r = this.v21_1.kotlinx$atomicfu$value;
|
|
2363
2363
|
// Inline function 'kotlin.Long.plus' call
|
|
2364
|
-
var other = this.
|
|
2364
|
+
var other = this.s21_1;
|
|
2365
2365
|
var tmp0 = add(r, fromInt(other));
|
|
2366
2366
|
// Inline function 'kotlin.math.max' call
|
|
2367
2367
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
@@ -2369,7 +2369,7 @@ function BufferedChannel() {
|
|
|
2369
2369
|
return Unit_instance;
|
|
2370
2370
|
// Inline function 'kotlin.Long.plus' call
|
|
2371
2371
|
var tmp$ret$3 = add(r, fromInt(1));
|
|
2372
|
-
if (!this.
|
|
2372
|
+
if (!this.v21_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2373
2373
|
continue $l$loop_0;
|
|
2374
2374
|
// Inline function 'kotlin.Long.div' call
|
|
2375
2375
|
var other_0 = get_SEGMENT_SIZE();
|
|
@@ -2378,7 +2378,7 @@ function BufferedChannel() {
|
|
|
2378
2378
|
var other_1 = get_SEGMENT_SIZE();
|
|
2379
2379
|
var tmp$ret$5 = modulo(r, fromInt(other_1));
|
|
2380
2380
|
var i = convertToInt(tmp$ret$5);
|
|
2381
|
-
if (!(segment.
|
|
2381
|
+
if (!(segment.a1u_1 === id)) {
|
|
2382
2382
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2383
2383
|
var tmp;
|
|
2384
2384
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2390,12 +2390,12 @@ function BufferedChannel() {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2392
2392
|
if (updCellResult === get_FAILED()) {
|
|
2393
|
-
if (r < this.
|
|
2394
|
-
segment.
|
|
2393
|
+
if (r < this.w22()) {
|
|
2394
|
+
segment.q22();
|
|
2395
2395
|
}
|
|
2396
2396
|
} else {
|
|
2397
|
-
segment.
|
|
2398
|
-
var tmp1_safe_receiver = this.
|
|
2397
|
+
segment.q22();
|
|
2398
|
+
var tmp1_safe_receiver = this.t21_1;
|
|
2399
2399
|
var tmp_0;
|
|
2400
2400
|
if (tmp1_safe_receiver == null) {
|
|
2401
2401
|
tmp_0 = null;
|
|
@@ -2412,7 +2412,7 @@ function BufferedChannel() {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
|
|
2415
|
+
f22(globalIndex) {
|
|
2416
2416
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2417
2417
|
return Unit_instance;
|
|
2418
2418
|
while (_get_bufferEndCounter__2d4hee(this) <= globalIndex) {
|
|
@@ -2426,12 +2426,12 @@ function BufferedChannel() {
|
|
|
2426
2426
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2427
2427
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2428
2428
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2429
|
-
var ebCompleted = this.
|
|
2429
|
+
var ebCompleted = this.x21_1.kotlinx$atomicfu$value & 4611686018427387903n;
|
|
2430
2430
|
if (b === ebCompleted && b === _get_bufferEndCounter__2d4hee(this))
|
|
2431
2431
|
return Unit_instance;
|
|
2432
2432
|
}
|
|
2433
2433
|
while (inductionVariable < times);
|
|
2434
|
-
var tmp0 = this.
|
|
2434
|
+
var tmp0 = this.x21_1;
|
|
2435
2435
|
$l$block: {
|
|
2436
2436
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2437
2437
|
while (true) {
|
|
@@ -2446,13 +2446,13 @@ function BufferedChannel() {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
while (true) {
|
|
2448
2448
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
2449
|
-
var ebCompletedAndBit = this.
|
|
2449
|
+
var ebCompletedAndBit = this.x21_1.kotlinx$atomicfu$value;
|
|
2450
2450
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2451
2451
|
var ebCompleted_0 = ebCompletedAndBit & 4611686018427387903n;
|
|
2452
2452
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
2453
2453
|
var pauseExpandBuffers = !((ebCompletedAndBit & 4611686018427387904n) === 0n);
|
|
2454
2454
|
if (b_0 === ebCompleted_0 && b_0 === _get_bufferEndCounter__2d4hee(this)) {
|
|
2455
|
-
var tmp0_0 = this.
|
|
2455
|
+
var tmp0_0 = this.x21_1;
|
|
2456
2456
|
$l$block_0: {
|
|
2457
2457
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2458
2458
|
while (true) {
|
|
@@ -2468,37 +2468,37 @@ function BufferedChannel() {
|
|
|
2468
2468
|
return Unit_instance;
|
|
2469
2469
|
}
|
|
2470
2470
|
if (!pauseExpandBuffers) {
|
|
2471
|
-
this.
|
|
2471
|
+
this.x21_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
2472
2472
|
}
|
|
2473
2473
|
}
|
|
2474
2474
|
}
|
|
2475
2475
|
q1() {
|
|
2476
2476
|
return new (BufferedChannelIterator())(this);
|
|
2477
2477
|
}
|
|
2478
|
-
|
|
2479
|
-
var tmp = this.
|
|
2478
|
+
x22() {
|
|
2479
|
+
var tmp = this.c22_1.kotlinx$atomicfu$value;
|
|
2480
2480
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
2481
2481
|
}
|
|
2482
|
-
|
|
2483
|
-
var tmp0_elvis_lhs = this.
|
|
2484
|
-
return tmp0_elvis_lhs == null ? ClosedSendChannelException().
|
|
2482
|
+
z22() {
|
|
2483
|
+
var tmp0_elvis_lhs = this.x22();
|
|
2484
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().j24('Channel was closed') : tmp0_elvis_lhs;
|
|
2485
2485
|
}
|
|
2486
|
-
|
|
2486
|
+
k24() {
|
|
2487
2487
|
}
|
|
2488
|
-
|
|
2489
|
-
return this.
|
|
2488
|
+
l24(cause) {
|
|
2489
|
+
return this.m24(cause, false);
|
|
2490
2490
|
}
|
|
2491
|
-
|
|
2492
|
-
this.
|
|
2491
|
+
o1r(cause) {
|
|
2492
|
+
this.o24(cause);
|
|
2493
2493
|
}
|
|
2494
|
-
|
|
2495
|
-
return this.
|
|
2494
|
+
o24(cause) {
|
|
2495
|
+
return this.m24(cause == null ? CancellationException().n('Channel was cancelled') : cause, true);
|
|
2496
2496
|
}
|
|
2497
|
-
|
|
2497
|
+
m24(cause, cancel) {
|
|
2498
2498
|
if (cancel) {
|
|
2499
2499
|
markCancellationStarted(this);
|
|
2500
2500
|
}
|
|
2501
|
-
var closedByThisOperation = this.
|
|
2501
|
+
var closedByThisOperation = this.c22_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
2502
2502
|
if (cancel) {
|
|
2503
2503
|
markCancelled(this);
|
|
2504
2504
|
} else {
|
|
@@ -2506,37 +2506,37 @@ function BufferedChannel() {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
completeCloseOrCancel(this);
|
|
2508
2508
|
// Inline function 'kotlin.also' call
|
|
2509
|
-
this.
|
|
2509
|
+
this.k24();
|
|
2510
2510
|
if (closedByThisOperation) {
|
|
2511
2511
|
invokeCloseHandler(this);
|
|
2512
2512
|
}
|
|
2513
2513
|
return closedByThisOperation;
|
|
2514
2514
|
}
|
|
2515
|
-
|
|
2515
|
+
w23() {
|
|
2516
2516
|
return false;
|
|
2517
2517
|
}
|
|
2518
|
-
|
|
2519
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
2518
|
+
u23() {
|
|
2519
|
+
return _get_isClosedForSend0__kxgf9m(this, this.u21_1.kotlinx$atomicfu$value);
|
|
2520
2520
|
}
|
|
2521
|
-
|
|
2522
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
2521
|
+
v22() {
|
|
2522
|
+
return _get_isClosedForReceive0__f7qknl(this, this.u21_1.kotlinx$atomicfu$value);
|
|
2523
2523
|
}
|
|
2524
|
-
|
|
2524
|
+
y23() {
|
|
2525
2525
|
$l$loop: while (true) {
|
|
2526
|
-
var segment = this.
|
|
2527
|
-
var r = this.
|
|
2528
|
-
var s = this.
|
|
2526
|
+
var segment = this.z21_1.kotlinx$atomicfu$value;
|
|
2527
|
+
var r = this.y22();
|
|
2528
|
+
var s = this.w22();
|
|
2529
2529
|
if (s <= r)
|
|
2530
2530
|
return false;
|
|
2531
2531
|
// Inline function 'kotlin.Long.div' call
|
|
2532
2532
|
var other = get_SEGMENT_SIZE();
|
|
2533
2533
|
var id = divide(r, fromInt(other));
|
|
2534
|
-
if (!(segment.
|
|
2534
|
+
if (!(segment.a1u_1 === id)) {
|
|
2535
2535
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2536
2536
|
var tmp;
|
|
2537
2537
|
if (tmp0_elvis_lhs == null) {
|
|
2538
2538
|
var tmp_0;
|
|
2539
|
-
if (this.
|
|
2539
|
+
if (this.z21_1.kotlinx$atomicfu$value.a1u_1 < id) {
|
|
2540
2540
|
return false;
|
|
2541
2541
|
} else {
|
|
2542
2542
|
continue $l$loop;
|
|
@@ -2546,7 +2546,7 @@ function BufferedChannel() {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
segment = tmp;
|
|
2548
2548
|
}
|
|
2549
|
-
segment.
|
|
2549
|
+
segment.q22();
|
|
2550
2550
|
// Inline function 'kotlin.Long.rem' call
|
|
2551
2551
|
var other_0 = get_SEGMENT_SIZE();
|
|
2552
2552
|
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
@@ -2555,23 +2555,23 @@ function BufferedChannel() {
|
|
|
2555
2555
|
return true;
|
|
2556
2556
|
// Inline function 'kotlin.Long.plus' call
|
|
2557
2557
|
var tmp$ret$2 = add(r, fromInt(1));
|
|
2558
|
-
this.
|
|
2558
|
+
this.v21_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
2561
|
toString() {
|
|
2562
2562
|
var sb = StringBuilder().m1();
|
|
2563
2563
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2564
|
-
var this_0 = this.
|
|
2564
|
+
var this_0 = this.u21_1.kotlinx$atomicfu$value;
|
|
2565
2565
|
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
2566
2566
|
if (tmp0_subject === 2) {
|
|
2567
2567
|
sb.n1('closed,');
|
|
2568
2568
|
} else if (tmp0_subject === 3) {
|
|
2569
2569
|
sb.n1('cancelled,');
|
|
2570
2570
|
}
|
|
2571
|
-
sb.n1('capacity=' + this.
|
|
2571
|
+
sb.n1('capacity=' + this.s21_1 + ',');
|
|
2572
2572
|
sb.n1('data=[');
|
|
2573
2573
|
// Inline function 'kotlin.collections.filter' call
|
|
2574
|
-
var tmp0 = listOf([this.
|
|
2574
|
+
var tmp0 = listOf([this.z21_1.kotlinx$atomicfu$value, this.y21_1.kotlinx$atomicfu$value, this.a22_1.kotlinx$atomicfu$value]);
|
|
2575
2575
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2576
2576
|
var destination = ArrayList().y2();
|
|
2577
2577
|
var _iterator__ex2g4s = tmp0.q1();
|
|
@@ -2586,16 +2586,16 @@ function BufferedChannel() {
|
|
|
2586
2586
|
// Inline function 'kotlin.collections.minBy' call
|
|
2587
2587
|
var iterator = destination.q1();
|
|
2588
2588
|
if (!iterator.r1())
|
|
2589
|
-
throw NoSuchElementException().
|
|
2589
|
+
throw NoSuchElementException().c7();
|
|
2590
2590
|
var minElem = iterator.s1();
|
|
2591
2591
|
if (!iterator.r1()) {
|
|
2592
2592
|
tmp$ret$4 = minElem;
|
|
2593
2593
|
break $l$block;
|
|
2594
2594
|
}
|
|
2595
|
-
var minValue = minElem.
|
|
2595
|
+
var minValue = minElem.a1u_1;
|
|
2596
2596
|
do {
|
|
2597
2597
|
var e = iterator.s1();
|
|
2598
|
-
var v = e.
|
|
2598
|
+
var v = e.a1u_1;
|
|
2599
2599
|
if (compareTo(minValue, v) > 0) {
|
|
2600
2600
|
minElem = e;
|
|
2601
2601
|
minValue = v;
|
|
@@ -2605,8 +2605,8 @@ function BufferedChannel() {
|
|
|
2605
2605
|
tmp$ret$4 = minElem;
|
|
2606
2606
|
}
|
|
2607
2607
|
var firstSegment = tmp$ret$4;
|
|
2608
|
-
var r = this.
|
|
2609
|
-
var s = this.
|
|
2608
|
+
var r = this.y22();
|
|
2609
|
+
var s = this.w22();
|
|
2610
2610
|
var segment = firstSegment;
|
|
2611
2611
|
append_elements: while (true) {
|
|
2612
2612
|
var inductionVariable = 0;
|
|
@@ -2615,7 +2615,7 @@ function BufferedChannel() {
|
|
|
2615
2615
|
process_cell: do {
|
|
2616
2616
|
var i = inductionVariable;
|
|
2617
2617
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2618
|
-
var tmp0_0 = segment.
|
|
2618
|
+
var tmp0_0 = segment.a1u_1;
|
|
2619
2619
|
// Inline function 'kotlin.Long.times' call
|
|
2620
2620
|
var other = get_SEGMENT_SIZE();
|
|
2621
2621
|
// Inline function 'kotlin.Long.plus' call
|
|
@@ -2623,8 +2623,8 @@ function BufferedChannel() {
|
|
|
2623
2623
|
var globalCellIndex = add(this_1, fromInt(i));
|
|
2624
2624
|
if (globalCellIndex >= s && globalCellIndex >= r)
|
|
2625
2625
|
break append_elements;
|
|
2626
|
-
var cellState = segment.
|
|
2627
|
-
var element_0 = segment.
|
|
2626
|
+
var cellState = segment.o21(i);
|
|
2627
|
+
var element_0 = segment.l21(i);
|
|
2628
2628
|
var tmp;
|
|
2629
2629
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
2630
2630
|
tmp = globalCellIndex < r && globalCellIndex >= s ? 'receive' : globalCellIndex < s && globalCellIndex >= r ? 'send' : 'cont';
|
|
@@ -2663,7 +2663,7 @@ function BufferedChannel() {
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
while (inductionVariable < last_0);
|
|
2666
|
-
var tmp2_elvis_lhs = segment.
|
|
2666
|
+
var tmp2_elvis_lhs = segment.m22();
|
|
2667
2667
|
var tmp_0;
|
|
2668
2668
|
if (tmp2_elvis_lhs == null) {
|
|
2669
2669
|
break append_elements;
|
|
@@ -2673,15 +2673,15 @@ function BufferedChannel() {
|
|
|
2673
2673
|
segment = tmp_0;
|
|
2674
2674
|
}
|
|
2675
2675
|
if (last(sb) === _Char___init__impl__6a9atx(44)) {
|
|
2676
|
-
sb.
|
|
2676
|
+
sb.ah(sb.a() - 1 | 0);
|
|
2677
2677
|
}
|
|
2678
2678
|
sb.n1(']');
|
|
2679
2679
|
return sb.toString();
|
|
2680
2680
|
}
|
|
2681
2681
|
}
|
|
2682
|
-
protoOf($).
|
|
2683
|
-
protoOf($).
|
|
2684
|
-
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [
|
|
2682
|
+
protoOf($).n24 = close$default;
|
|
2683
|
+
protoOf($).p24 = cancel$default;
|
|
2684
|
+
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
|
|
2685
2685
|
BufferedChannelClass = $;
|
|
2686
2686
|
}
|
|
2687
2687
|
return BufferedChannelClass;
|
|
@@ -2691,10 +2691,10 @@ function WaiterEB() {
|
|
|
2691
2691
|
if (WaiterEBClass === VOID) {
|
|
2692
2692
|
class $ {
|
|
2693
2693
|
constructor(waiter) {
|
|
2694
|
-
this.
|
|
2694
|
+
this.b23_1 = waiter;
|
|
2695
2695
|
}
|
|
2696
2696
|
toString() {
|
|
2697
|
-
return 'WaiterEB(' + toString_0(this.
|
|
2697
|
+
return 'WaiterEB(' + toString_0(this.b23_1) + ')';
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
2700
|
initMetadataForClass($, 'WaiterEB');
|
|
@@ -2726,10 +2726,10 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
2726
2726
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
2727
2727
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2728
2728
|
// Inline function 'kotlin.let' call
|
|
2729
|
-
var token = _this__u8e3s4.
|
|
2729
|
+
var token = _this__u8e3s4.x1s(value, null, onCancellation);
|
|
2730
2730
|
var tmp;
|
|
2731
2731
|
if (!(token == null)) {
|
|
2732
|
-
_this__u8e3s4.
|
|
2732
|
+
_this__u8e3s4.y1s(token);
|
|
2733
2733
|
tmp = true;
|
|
2734
2734
|
} else {
|
|
2735
2735
|
tmp = false;
|
|
@@ -2750,7 +2750,7 @@ function createSegmentFunction() {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
function createSegment(id, prev) {
|
|
2752
2752
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
2753
|
-
return new (ChannelSegment())(id, prev, prev.
|
|
2753
|
+
return new (ChannelSegment())(id, prev, prev.i21(), 0);
|
|
2754
2754
|
}
|
|
2755
2755
|
function createSegment$ref() {
|
|
2756
2756
|
var l = (p0, p1) => createSegment(p0, p1);
|