@attocash/commons-js 5.4.1 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +73 -64
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DayOfWeek.mjs +20 -24
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DayOfWeek.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +46 -46
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +307 -115
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +152 -71
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +219 -98
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Month.mjs +76 -27
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Month.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +49 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +287 -101
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +94 -155
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +139 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +79 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +13 -6
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +61 -40
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +185 -543
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +124 -111
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +188 -177
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +285 -198
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +400 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/MonthDayTime.mjs +29 -0
- package/{ktor-ktor-network-tls/io/ktor/network/tls/TLSConfig.nonJvm.mjs.map → Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/MonthDayTime.mjs.map} +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +147 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +412 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/PlatformSpecifics.mjs +37 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/PlatformSpecifics.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +102 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +237 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/dateCalculations.mjs +47 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/dateCalculations.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +14 -11
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +77 -162
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +50 -48
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +169 -174
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +115 -12
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +117 -63
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +46 -46
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs.map +1 -1
- 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/ParseResult.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +89 -89
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +128 -371
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +20 -19
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +51 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/util.mjs +0 -35
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/util.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +112 -123
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +64 -64
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +53 -0
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/{AccountUpdate.js.export.d.ts → AccountUpdate.js.export.d.mts} +1 -1
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.export.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +19 -22
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoAccount.export.d.ts → AttoAccount.export.d.mts} +14 -10
- package/commons-commons-core/cash/atto/commons/AttoAccount.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoAccount.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +165 -175
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoAccountEntry.export.d.ts → AttoAccountEntry.export.d.mts} +10 -6
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +164 -183
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoAddress.export.d.ts → AttoAddress.export.d.mts} +9 -4
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +5 -2
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +83 -41
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoAlgorithm.export.d.ts → AttoAlgorithm.export.d.mts} +5 -2
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.export.mjs +4 -3
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +21 -21
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoAmount.export.d.ts → AttoAmount.export.d.mts} +11 -6
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +9 -4
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +83 -69
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoBlock.export.d.ts → AttoBlock.export.d.mts} +60 -25
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.mjs +12 -11
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +1131 -1180
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +16 -16
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoChallenge.export.d.ts → AttoChallenge.export.d.mts} +5 -1
- package/commons-commons-core/cash/atto/commons/AttoChallenge.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoChallenge.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +16 -16
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +10 -0
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +13 -0
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +72 -0
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/{AttoHash.export.d.ts → AttoHash.export.d.mts} +6 -2
- package/commons-commons-core/cash/atto/commons/AttoHash.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoHash.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +35 -35
- 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.ts → AttoHeight.export.d.mts} +10 -5
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -2
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +54 -47
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +33 -0
- package/commons-commons-core/cash/atto/commons/AttoInstant.export.mjs +20 -0
- package/commons-commons-core/cash/atto/commons/AttoInstant.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +189 -0
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs +26 -0
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +16 -0
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.mjs +17 -0
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +82 -0
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.export.d.mts +33 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.export.mjs +22 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs +23 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +184 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +61 -0
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/{AttoNetwork.export.d.ts → AttoNetwork.export.d.mts} +8 -4
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.mjs +8 -7
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +30 -30
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoPrivateKey.export.d.ts → AttoPrivateKey.export.d.mts} +7 -3
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.export.mjs +5 -2
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.export.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 +38 -31
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoPublicKey.export.d.ts → AttoPublicKey.export.d.mts} +5 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.export.mjs.map +1 -1
- package/{ktor-ktor-client-core/io/ktor/client/engine/js/Js.export.d.ts → commons-commons-core/cash/atto/commons/AttoPublicKey.js.export.d.mts} +1 -2
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.export.mjs +12 -0
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +29 -29
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoReceivable.export.d.ts → AttoReceivable.export.d.mts} +9 -4
- package/commons-commons-core/cash/atto/commons/AttoReceivable.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoReceivable.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +148 -133
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
- package/{commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.d.ts → commons-commons-core/cash/atto/commons/AttoSeed.js.export.d.mts} +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.export.mjs +12 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +91 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +29 -4
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoSignature.export.d.ts → AttoSignature.export.d.mts} +5 -1
- package/commons-commons-core/cash/atto/commons/AttoSignature.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +30 -30
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +23 -441
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +19 -135
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoTransaction.export.d.ts → AttoTransaction.export.d.mts} +9 -3
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +105 -92
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +63 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/{AttoVersion.export.d.ts → AttoVersion.export.d.mts} +5 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +17 -18
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoVote.export.d.ts → AttoVote.export.d.mts} +9 -5
- package/commons-commons-core/cash/atto/commons/AttoVote.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoVote.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +105 -111
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/{AttoWork.export.d.ts → AttoWork.export.d.mts} +5 -2
- package/commons-commons-core/cash/atto/commons/AttoWork.export.mjs +3 -2
- package/commons-commons-core/cash/atto/commons/AttoWork.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +68 -98
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +147 -0
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +44 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +14 -14
- 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 +37 -0
- package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -0
- package/commons-commons-core.mjs +6 -1
- package/commons-commons-core.mjs.map +1 -1
- package/commons-commons-js.mjs +0 -1
- package/commons-commons-js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClient.mjs +29 -0
- package/{kotlin-kotlin-stdlib/kotlin/Number.mjs.map → commons-commons-node/cash/atto/commons/node/AttoNodeClient.mjs.map} +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +22 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs +1248 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/{AttoNodeOperations.export.d.ts → AttoNodeOperations.export.d.mts} +25 -9
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.mjs +6 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +215 -324
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +21 -21
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +66 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.export.d.mts +10 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs +189 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts +11 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs +97 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +251 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.export.d.mts +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs +280 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.export.d.mts +10 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +33 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +339 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +66 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.d.mts +10 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs +189 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.d.mts +11 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs +13 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs +97 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.export.d.mts +12 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.export.mjs +13 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +75 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +2039 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -0
- package/commons-commons-node-remote.mjs +1 -1
- package/commons-commons-node.mjs +7 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.mjs +987 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.mjs.map +1 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.export.d.mts +24 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.export.mjs +13 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.export.mjs.map +1 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.mjs +440 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.mjs.map +1 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.d.mts +8 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.mjs +4 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.export.d.mts +13 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.export.mjs +13 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.export.mjs.map +1 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.mjs +147 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.mjs.map +1 -0
- package/{commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.mjs → commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.mjs} +7 -12
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.mjs.map +1 -0
- package/commons-commons-wallet.mjs +8 -0
- package/{commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.mjs.map → commons-commons-wallet.mjs.map} +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +4 -4
- 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 +13 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs +13 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +124 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +348 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +95 -143
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.export.d.mts +15 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.export.mjs +13 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.export.mjs.map +1 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +111 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -0
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +149 -260
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
- package/commons-commons-worker-remote.mjs +1 -1
- package/commons-commons-worker.mjs +3 -0
- package/commons-commons-worker.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.mjs +1 -0
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Char.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/Char.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +28 -28
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ExceptionsH.mjs +33 -0
- package/kotlin-kotlin-stdlib/kotlin/ExceptionsH.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Library.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs +27 -19
- package/kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +9 -136
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs +11 -12
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +21 -24
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +50 -33
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +15 -15
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +50 -33
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +14 -15
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +50 -33
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +50 -33
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Unit.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/UnsignedJs.mjs +54 -41
- package/kotlin-kotlin-stdlib/kotlin/UnsignedJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +15 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +98 -71
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +81 -80
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +51 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +107 -82
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +35 -35
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +11 -11
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +264 -219
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayFunctions.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayFunctions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +101 -74
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArraySorting.mjs +1 -3
- package/kotlin-kotlin-stdlib/kotlin/collections/ArraySorting.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.d.mts +42 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs +20 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +86 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +125 -99
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +37 -37
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +90 -70
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +64 -50
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +31 -28
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -9
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +267 -237
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +5 -5
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +57 -11
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +11 -11
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +135 -87
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +42 -15
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +6 -20
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +22 -23
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/SlidingWindow.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +165 -140
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +67 -68
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs +262 -260
- package/kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Maps.mjs +13 -13
- package/kotlin-kotlin-stdlib/kotlin/collections/_Maps.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs +33 -6
- package/kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsHacks.mjs +5 -5
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsHacks.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +266 -0
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs +27 -0
- package/kotlin-kotlin-stdlib/kotlin/comparisons/Comparisons.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +5 -5
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +43 -44
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +9 -111
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs +199 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +5 -7
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/cancellation/CancellationException.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +134 -107
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +26 -18
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +116 -116
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +10 -5
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/internal/IrLinkageError.mjs +33 -0
- package/kotlin-kotlin-stdlib/kotlin/internal/IrLinkageError.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/internal/SharedVariableBox.mjs +4 -0
- package/kotlin-kotlin-stdlib/kotlin/internal/progressionUtil.mjs +1 -21
- package/kotlin-kotlin-stdlib/kotlin/internal/progressionUtil.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/BitMask.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +11 -12
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/bitUtils.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/compareTo.mjs +4 -3
- package/kotlin-kotlin-stdlib/kotlin/js/compareTo.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs +58 -27
- package/kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/coroutineInternalJS.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/internal/BigInt.mjs +22 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/BigInt.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/boxedLong/boxedLong.mjs +258 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/boxedLong/boxedLong.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs +246 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +25 -0
- package/kotlin-kotlin-stdlib/kotlin/js/json.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs +4 -5
- package/kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs +3 -26
- package/kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/rangeTo.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs +20 -3
- package/kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/regexp.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs +1 -2
- package/kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/void.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/kotlin.mjs +14 -14
- package/kotlin-kotlin-stdlib/kotlin/kotlin.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/math/math.mjs +14 -14
- package/kotlin-kotlin-stdlib/kotlin/math/math.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/random/PlatformRandom.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +105 -13
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +35 -103
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +28 -62
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +30 -93
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/Range.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/Range.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/Ranges.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/Ranges.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs +0 -10
- package/kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +21 -25
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +36 -67
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/{KTypeHelpers.mjs → kotlin/reflect/js/internal/KTypeHelpers.mjs} +13 -13
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeImpl.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeImpl.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +18 -16
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +58 -47
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/{reflection.mjs → kotlin/reflect/js/internal/reflection.mjs} +7 -47
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +43 -43
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +33 -33
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/sequences/_Sequences.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Appendable.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Appendable.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Char.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/Char.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +56 -49
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +59 -59
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +26 -28
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +43 -43
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +32 -22
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +397 -412
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs +63 -61
- package/kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/_CharCategories.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs +33 -33
- package/kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/_WhitespaceChars.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/charJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +36 -36
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +54 -54
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +13 -13
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +29 -29
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs.map +1 -1
- package/{Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime → kotlin-kotlin-stdlib/kotlin/time}/Clock.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +144 -118
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnit.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnit.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +15 -12
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +953 -0
- package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +16 -0
- package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs.map +1 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +31 -29
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +13 -9
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/noPackageHacks.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/reflectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +7 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Appender.mjs +30 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Appender.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/ConsoleOutputAppender.mjs +50 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/ConsoleOutputAppender.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs +85 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs +49 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs +80 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs +30 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs +38 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingLevel.mjs +15 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingLevel.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs +60 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs.map +1 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +29 -2
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +5 -5
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/MessageInvoker.mjs +51 -0
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/MessageInvoker.mjs.map +1 -0
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs.map +1 -1
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +79 -74
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs.map +1 -1
- package/kotlinx-atomicfu/kotlinx/atomicfu/Trace.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +27 -27
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +31 -195
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +229 -216
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +18 -62
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +33 -33
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +10 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +19 -19
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +41 -32
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +8 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Debug.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +47 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +51 -51
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +35 -32
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs.map +1 -1
- 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.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +131 -131
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +62 -103
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +492 -641
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +14 -14
- 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/Supervisor.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +2 -153
- package/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +746 -1307
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +107 -107
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +30 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +20 -21
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +17 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +56 -83
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +56 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +70 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs +51 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +118 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs +249 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs +15 -72
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Flow.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Merge.mjs +25 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Merge.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +81 -249
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +89 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +286 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +305 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Transform.mjs +243 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Transform.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +145 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +413 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +20 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +217 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs +38 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +9 -9
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +24 -15
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +30 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +16 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +35 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +55 -51
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +141 -141
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/InlineList.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/InlineList.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +33 -33
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/StackTraceRecovery.mjs +2 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/StackTraceRecovery.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.common.mjs +10 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/SystemProps.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +26 -26
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +15 -19
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +21 -21
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +257 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +101 -125
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +54 -54
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- 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 +7 -7
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +279 -291
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +71 -68
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +35 -31
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +79 -79
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +200 -204
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- 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/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +69 -63
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +109 -100
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs +5 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- 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/KSerializer.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +47 -49
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +64 -66
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +35 -35
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +136 -138
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +8 -12
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +94 -89
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +56 -56
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +52 -52
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +117 -121
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs +110 -110
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +58 -59
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +66 -66
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +35 -35
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +67 -30
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +78 -78
- 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 +308 -308
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +29 -29
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +42 -46
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +17 -17
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +44 -44
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +23 -25
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +62 -60
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +137 -147
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +454 -454
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +276 -277
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +109 -112
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +99 -99
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +85 -85
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +55 -55
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleBuilders.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +2 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +48 -48
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +191 -166
- 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 +281 -283
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +205 -197
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +72 -72
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +46 -46
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +36 -38
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +66 -52
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +3 -3
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +113 -234
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +195 -190
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +142 -142
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +281 -276
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +354 -588
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/DefaultIgnoredTypesJs.mjs +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/DefaultIgnoredTypesJs.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +142 -278
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +49 -49
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/HttpClientJs.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/HttpClientJs.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +104 -162
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +66 -113
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +4 -14
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +36 -75
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +165 -295
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +54 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs.map +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 +14 -14
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +57 -57
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -8
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +155 -323
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +88 -246
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/ReadableStream.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +60 -131
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +12 -12
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +21 -10
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +108 -263
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +105 -155
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +233 -462
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransformJs.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +222 -618
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +5 -5
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +119 -244
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +74 -184
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +74 -218
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +721 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +169 -247
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +193 -295
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +85 -161
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +15 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +45 -129
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +26 -26
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +150 -185
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +41 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs.map +1 -0
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSE.mjs +0 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/SSE.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +128 -213
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +5 -37
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +82 -108
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +32 -32
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/RequestBody.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/request/RequestBody.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +71 -156
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +62 -64
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +102 -364
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +60 -170
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -6
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/ExceptionUtils.nonJvm.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs.map +1 -1
- package/ktor-ktor-events/io/ktor/events/Events.mjs +16 -16
- package/ktor-ktor-events/io/ktor/events/Events.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +162 -162
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +121 -121
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +35 -35
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +63 -63
- package/ktor-ktor-http/io/ktor/http/Headers.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +117 -118
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +131 -130
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +19 -19
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +14 -17
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +17 -44
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +71 -71
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +18 -16
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/Query.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +96 -96
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +42 -42
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +26 -28
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +47 -106
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/Url.mjs +88 -128
- package/ktor-ktor-http/io/ktor/http/Url.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +56 -59
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +10 -10
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +6 -7
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +176 -238
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +90 -334
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +239 -580
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +53 -110
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +91 -91
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPoolJs.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +54 -199
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs.map +1 -1
- 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-http-cio/io/ktor/http/cio/internals/MutableRange.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +1 -38
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +258 -419
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +144 -350
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +272 -1739
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +24 -105
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +118 -356
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +12 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +43 -93
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/Deprecation.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/{ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.js.mjs → ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs} +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs.map +1 -0
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +20 -21
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +19 -19
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +118 -117
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Decoder.js.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +37 -33
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +8 -8
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Win1252Table.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffers.mjs +2 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffers.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -14
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +9 -20
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +17 -17
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +29 -29
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs.map +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +20 -20
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs.map +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +99 -270
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +6 -6
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +216 -564
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +40 -40
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +19 -20
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +64 -53
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/Charset.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/Collections.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/CollectionsJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +70 -55
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.js.mjs +3 -5
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.js.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +63 -67
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/PlatformUtilsJs.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/PlatformUtilsJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +154 -161
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/Text.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +112 -112
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +11 -12
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +23 -23
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +45 -106
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +30 -30
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +72 -76
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.js.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -4
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecover.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/StackTraceRecoverJs.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +62 -62
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs.map +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +22 -32
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs.map +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -3
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs.map +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -87
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs.map +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +17 -23
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs.map +1 -1
- package/package.json +3 -4
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Clock.mjs.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Instant.mjs +0 -258
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Instant.mjs.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/JSJodaExceptions.mjs +0 -24
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/JSJodaExceptions.mjs.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +0 -845
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathJs.mjs +0 -46
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathJs.mjs.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/InstantSerializers.mjs +0 -53
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/InstantSerializers.mjs.map +0 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.export.d.ts +0 -14
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.export.mjs +0 -12
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +0 -55
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs.map +0 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +0 -54
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +0 -23
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.mjs +0 -4
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +0 -108
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +0 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +0 -2412
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +0 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsJsImpl.js.export.d.ts +0 -3
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsJsImpl.js.export.mjs +0 -12
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsJsImpl.js.mjs +0 -727
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsJsImpl.js.mjs.map +0 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.d.ts +0 -10
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.mjs +0 -4
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.export.mjs +0 -12
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +0 -272
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs.map +0 -1
- package/kotlin-kotlin-stdlib/KTypeHelpers.mjs.map +0 -1
- package/kotlin-kotlin-stdlib/kotlin/Number.mjs +0 -22
- package/kotlin-kotlin-stdlib/kotlin/longJs.mjs +0 -387
- package/kotlin-kotlin-stdlib/kotlin/longJs.mjs.map +0 -1
- package/kotlin-kotlin-stdlib/reflection.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +0 -56
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +0 -381
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +0 -52
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +0 -161
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +0 -39
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +0 -1338
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +0 -122
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ExceptionUtils.nonJvm.mjs +0 -12
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ExceptionUtils.nonJvm.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.mjs +0 -13
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +0 -29
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs.map +0 -1
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +0 -1339
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs.map +0 -1
- package/ktor-ktor-client-cio.mjs +0 -12
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.js.mjs.map +0 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfig.mjs +0 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfig.mjs.map +0 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfigJs.mjs +0 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/ProxyConfigJs.mjs.map +0 -1
- package/ktor-ktor-client-core/io/ktor/client/request/UnixSockets.mjs +0 -46
- package/ktor-ktor-client-core/io/ktor/client/request/UnixSockets.mjs.map +0 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +0 -680
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs.map +0 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +0 -221
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs.map +0 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +0 -171
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs.map +0 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +0 -51
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs.map +0 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +0 -58
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs.map +0 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +0 -28
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs.map +0 -1
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +0 -107
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs.map +0 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Memory.mjs +0 -22
- package/ktor-ktor-io/io/ktor/utils/io/core/Memory.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/selector/Selectable.jsAndWasmShared.mjs +0 -22
- package/ktor-ktor-network/io/ktor/network/selector/Selectable.jsAndWasmShared.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +0 -42
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +0 -35
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +0 -107
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +0 -304
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +0 -573
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +0 -26
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +0 -129
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +0 -33
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +0 -71
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +0 -34
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +0 -41
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.js.mjs +0 -56
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.js.mjs.map +0 -1
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +0 -163
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs.map +0 -1
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSClientSession.nonJvm.mjs +0 -18
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSClientSession.nonJvm.mjs.map +0 -1
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +0 -99
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs.map +0 -1
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfig.nonJvm.mjs +0 -22
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +0 -33
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs.map +0 -1
- package/ktor-ktor-utils/io/ktor/util/cio/Channels.mjs +0 -32
- package/ktor-ktor-utils/io/ktor/util/cio/Channels.mjs.map +0 -1
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +0 -113
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs.map +0 -1
- package/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtilsJs.mjs +0 -11
- package/ktor-ktor-utils/io/ktor/util/internal/ExceptionUtilsJs.mjs.map +0 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +0 -16
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs.map +0 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +0 -47
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs.map +0 -1
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +0 -47
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs.map +0 -1
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocket.mjs +0 -19
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocket.mjs.map +0 -1
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +0 -846
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs.map +0 -1
- /package/{ktor-ktor-client-cio.mjs.map → commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs.map} +0 -0
- /package/{commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.mjs.map → commons-commons-core/cash/atto/commons/AttoMnemonic.export.mjs.map} +0 -0
- /package/commons-commons-core/cash/atto/commons/{AttoSigner.js.export.mjs.map → AttoPublicKey.js.export.mjs.map} +0 -0
- /package/commons-commons-core/cash/atto/commons/{AttoSeed.export.d.ts → AttoSeed.export.d.mts} +0 -0
- /package/{commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsJsImpl.js.export.mjs.map → commons-commons-core/cash/atto/commons/AttoSeed.js.export.mjs.map} +0 -0
- /package/commons-commons-core/cash/atto/commons/{AttoSocketAddress.export.d.ts → AttoSocketAddress.export.d.mts} +0 -0
- /package/commons-commons-core/cash/atto/commons/{Extensions.export.d.ts → Extensions.export.d.mts} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/{NodeExtensions.export.d.ts → NodeExtensions.export.d.mts} +0 -0
- /package/{ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.mjs.map → commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.export.mjs.map} +0 -0
- /package/{commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.mjs.map → commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.mjs.map} +0 -0
- /package/{commons-commons-worker/cash/atto/commons/worker/AttoWorkerJs.js.export.mjs.map → kotlin-kotlin-stdlib/kotlin/internal/SharedVariableBox.mjs.map} +0 -0
- /package/{ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.export.d.ts → ktor-ktor-client-core/io/ktor/client/engine/js/Js.export.d.mts} +0 -0
|
@@ -29,17 +29,28 @@ import {
|
|
|
29
29
|
callUndeliveredElement5xsmnofvtcme as callUndeliveredElement,
|
|
30
30
|
callUndeliveredElementCatchingException6xwxmojd3rq1 as callUndeliveredElementCatchingException,
|
|
31
31
|
} from '../internal/OnUndeliveredElement.mjs';
|
|
32
|
-
import { toLongw1zpgk99d84b as toLong } from '../../../../kotlin-kotlin-stdlib/kotlin/js/numberConversion.mjs';
|
|
33
32
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
fromInt2ii0rejb1w62w as fromInt,
|
|
34
|
+
multiply2k9eolhnz1bjv as multiply,
|
|
35
|
+
add2suhfggl4zvkk as add,
|
|
36
|
+
dividelr0uqtdj497z as divide,
|
|
37
|
+
modulooi4g1kq3dmtt as modulo,
|
|
38
|
+
convertToInty04h231mmjoh as convertToInt,
|
|
39
|
+
shiftRight2gqph14wydb8s as shiftRight,
|
|
40
|
+
subtract2orl8z9upxd9l as subtract,
|
|
41
|
+
shiftLeft3tsh2sstjchzn as shiftLeft,
|
|
42
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs';
|
|
43
|
+
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
37
44
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
45
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
38
46
|
import {
|
|
39
47
|
recoverStackTrace3k4hvtb53ci4z as recoverStackTrace,
|
|
40
48
|
recoverStackTrace2i3si2i8nvw1k as recoverStackTrace_0,
|
|
41
49
|
} from '../internal/StackTraceRecovery.mjs';
|
|
42
|
-
import {
|
|
50
|
+
import {
|
|
51
|
+
intercepted2ogpsikxxj4u0 as intercepted,
|
|
52
|
+
suspendOrReturn49pspzlx5djv as suspendOrReturn,
|
|
53
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
43
54
|
import {
|
|
44
55
|
getOrCreateCancellableContinuation2t1o0dr9l9i36 as getOrCreateCancellableContinuation,
|
|
45
56
|
CancellableContinuationpb2x00mxmcbt as CancellableContinuation,
|
|
@@ -49,9 +60,6 @@ import {
|
|
|
49
60
|
createFailure8paxfkfa5dc7 as createFailure,
|
|
50
61
|
_Result___init__impl__xyqfz83hut4nr3dfvi3 as _Result___init__impl__xyqfz8,
|
|
51
62
|
} from '../../../../kotlin-kotlin-stdlib/kotlin/Result.mjs';
|
|
52
|
-
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
53
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
54
|
-
import { Long2qws0ah9gnpki as Long } from '../../../../kotlin-kotlin-stdlib/kotlin/Primitives.mjs';
|
|
55
63
|
import { CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl } from '../CancellableContinuationImpl.mjs';
|
|
56
64
|
import { addSuppressedu5jwjfvsc039 as addSuppressed } from '../../../../kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs';
|
|
57
65
|
import {
|
|
@@ -191,7 +199,7 @@ function get_NO_CLOSE_CAUSE() {
|
|
|
191
199
|
var NO_CLOSE_CAUSE;
|
|
192
200
|
function setElementLazy($this, index, value) {
|
|
193
201
|
// Inline function 'kotlinx.atomicfu.AtomicRef.lazySet' call
|
|
194
|
-
$this.
|
|
202
|
+
$this.q15_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value = value;
|
|
195
203
|
}
|
|
196
204
|
var ChannelSegmentClass;
|
|
197
205
|
function ChannelSegment() {
|
|
@@ -199,49 +207,49 @@ function ChannelSegment() {
|
|
|
199
207
|
class $ extends Segment() {
|
|
200
208
|
constructor(id, prev, channel, pointers) {
|
|
201
209
|
super(id, prev, pointers);
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
210
|
+
this.p15_1 = channel;
|
|
211
|
+
this.q15_1 = atomicfu$AtomicRefArray$ofNulls(imul(get_SEGMENT_SIZE(), 2));
|
|
204
212
|
}
|
|
205
|
-
|
|
206
|
-
return ensureNotNull(this.
|
|
213
|
+
r15() {
|
|
214
|
+
return ensureNotNull(this.p15_1);
|
|
207
215
|
}
|
|
208
|
-
|
|
216
|
+
s15() {
|
|
209
217
|
return get_SEGMENT_SIZE();
|
|
210
218
|
}
|
|
211
|
-
|
|
219
|
+
t15(index, element) {
|
|
212
220
|
setElementLazy(this, index, element);
|
|
213
221
|
}
|
|
214
|
-
|
|
215
|
-
var tmp = this.
|
|
222
|
+
u15(index) {
|
|
223
|
+
var tmp = this.q15_1.atomicfu$get(imul(index, 2)).kotlinx$atomicfu$value;
|
|
216
224
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
217
225
|
}
|
|
218
|
-
|
|
226
|
+
v15(index) {
|
|
219
227
|
// Inline function 'kotlin.also' call
|
|
220
|
-
var this_0 = this.
|
|
221
|
-
this.
|
|
228
|
+
var this_0 = this.u15(index);
|
|
229
|
+
this.w15(index);
|
|
222
230
|
return this_0;
|
|
223
231
|
}
|
|
224
|
-
|
|
232
|
+
w15(index) {
|
|
225
233
|
setElementLazy(this, index, null);
|
|
226
234
|
}
|
|
227
|
-
|
|
228
|
-
return this.
|
|
235
|
+
x15(index) {
|
|
236
|
+
return this.q15_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value;
|
|
229
237
|
}
|
|
230
|
-
|
|
231
|
-
this.
|
|
238
|
+
y15(index, value) {
|
|
239
|
+
this.q15_1.atomicfu$get(imul(index, 2) + 1 | 0).kotlinx$atomicfu$value = value;
|
|
232
240
|
}
|
|
233
|
-
|
|
234
|
-
return this.
|
|
241
|
+
z15(index, from, to) {
|
|
242
|
+
return this.q15_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$compareAndSet(from, to);
|
|
235
243
|
}
|
|
236
|
-
|
|
237
|
-
return this.
|
|
244
|
+
a16(index, update) {
|
|
245
|
+
return this.q15_1.atomicfu$get(imul(index, 2) + 1 | 0).atomicfu$getAndSet(update);
|
|
238
246
|
}
|
|
239
|
-
|
|
247
|
+
ny(index, cause, context) {
|
|
240
248
|
var isSender = index >= get_SEGMENT_SIZE();
|
|
241
249
|
var index_0 = isSender ? index - get_SEGMENT_SIZE() | 0 : index;
|
|
242
|
-
var element = this.
|
|
250
|
+
var element = this.u15(index_0);
|
|
243
251
|
$l$loop: while (true) {
|
|
244
|
-
var cur = this.
|
|
252
|
+
var cur = this.x15(index_0);
|
|
245
253
|
var tmp;
|
|
246
254
|
if (!(cur == null) ? isInterface(cur, Waiter()) : false) {
|
|
247
255
|
tmp = true;
|
|
@@ -250,11 +258,11 @@ function ChannelSegment() {
|
|
|
250
258
|
}
|
|
251
259
|
if (tmp) {
|
|
252
260
|
var update = isSender ? get_INTERRUPTED_SEND() : get_INTERRUPTED_RCV();
|
|
253
|
-
if (this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
261
|
+
if (this.z15(index_0, cur, update)) {
|
|
262
|
+
this.w15(index_0);
|
|
263
|
+
this.n16(index_0, !isSender);
|
|
256
264
|
if (isSender) {
|
|
257
|
-
var tmp0_safe_receiver = this.
|
|
265
|
+
var tmp0_safe_receiver = this.r15().c16_1;
|
|
258
266
|
if (tmp0_safe_receiver == null)
|
|
259
267
|
null;
|
|
260
268
|
else {
|
|
@@ -265,9 +273,9 @@ function ChannelSegment() {
|
|
|
265
273
|
}
|
|
266
274
|
} else {
|
|
267
275
|
if (cur === get_INTERRUPTED_SEND() || cur === get_INTERRUPTED_RCV()) {
|
|
268
|
-
this.
|
|
276
|
+
this.w15(index_0);
|
|
269
277
|
if (isSender) {
|
|
270
|
-
var tmp1_safe_receiver = this.
|
|
278
|
+
var tmp1_safe_receiver = this.r15().c16_1;
|
|
271
279
|
if (tmp1_safe_receiver == null)
|
|
272
280
|
null;
|
|
273
281
|
else {
|
|
@@ -287,7 +295,7 @@ function ChannelSegment() {
|
|
|
287
295
|
else {
|
|
288
296
|
// Inline function 'kotlin.error' call
|
|
289
297
|
var message = 'unexpected state: ' + toString(cur);
|
|
290
|
-
throw IllegalStateException().
|
|
298
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
291
299
|
}
|
|
292
300
|
}
|
|
293
301
|
}
|
|
@@ -295,17 +303,18 @@ function ChannelSegment() {
|
|
|
295
303
|
}
|
|
296
304
|
}
|
|
297
305
|
}
|
|
298
|
-
|
|
306
|
+
n16(index, receiver) {
|
|
299
307
|
if (receiver) {
|
|
300
|
-
var tmp = this.
|
|
301
|
-
var tmp0 = this.
|
|
308
|
+
var tmp = this.r15();
|
|
309
|
+
var tmp0 = this.ly_1;
|
|
302
310
|
// Inline function 'kotlin.Long.times' call
|
|
303
311
|
var other = get_SEGMENT_SIZE();
|
|
304
312
|
// Inline function 'kotlin.Long.plus' call
|
|
305
|
-
var
|
|
306
|
-
tmp
|
|
313
|
+
var this_0 = multiply(tmp0, fromInt(other));
|
|
314
|
+
var tmp$ret$1 = add(this_0, fromInt(index));
|
|
315
|
+
tmp.o16(tmp$ret$1);
|
|
307
316
|
}
|
|
308
|
-
this.
|
|
317
|
+
this.p16();
|
|
309
318
|
}
|
|
310
319
|
}
|
|
311
320
|
initMetadataForClass($, 'ChannelSegment');
|
|
@@ -313,9 +322,77 @@ function ChannelSegment() {
|
|
|
313
322
|
}
|
|
314
323
|
return ChannelSegmentClass;
|
|
315
324
|
}
|
|
325
|
+
function *_generator_hasNext__q471nr($this, $completion) {
|
|
326
|
+
var tmp;
|
|
327
|
+
if (!($this.b17_1 === get_NO_RECEIVE_RESULT()) && !($this.b17_1 === get_CHANNEL_CLOSED())) {
|
|
328
|
+
tmp = true;
|
|
329
|
+
} else {
|
|
330
|
+
var tmp0 = $this.d17_1;
|
|
331
|
+
var tmp$ret$1;
|
|
332
|
+
$l$block_0: {
|
|
333
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
334
|
+
var segment = tmp0.i16_1.kotlinx$atomicfu$value;
|
|
335
|
+
$l$loop_0: while (true) {
|
|
336
|
+
if (tmp0.e17()) {
|
|
337
|
+
tmp$ret$1 = onClosedHasNext($this);
|
|
338
|
+
break $l$block_0;
|
|
339
|
+
}
|
|
340
|
+
var r = tmp0.e16_1.atomicfu$getAndIncrement$long();
|
|
341
|
+
// Inline function 'kotlin.Long.div' call
|
|
342
|
+
var other = get_SEGMENT_SIZE();
|
|
343
|
+
var id = divide(r, fromInt(other));
|
|
344
|
+
// Inline function 'kotlin.Long.rem' call
|
|
345
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
346
|
+
var tmp$ret$3 = modulo(r, fromInt(other_0));
|
|
347
|
+
var i = convertToInt(tmp$ret$3);
|
|
348
|
+
if (!(segment.ly_1 === id)) {
|
|
349
|
+
var tmp0_elvis_lhs = findSegmentReceive(tmp0, id, segment);
|
|
350
|
+
var tmp_0;
|
|
351
|
+
if (tmp0_elvis_lhs == null) {
|
|
352
|
+
continue $l$loop_0;
|
|
353
|
+
} else {
|
|
354
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
355
|
+
}
|
|
356
|
+
segment = tmp_0;
|
|
357
|
+
}
|
|
358
|
+
var updCellResult = updateCellReceive(tmp0, segment, i, r, null);
|
|
359
|
+
var tmp_1;
|
|
360
|
+
if (updCellResult === get_SUSPEND()) {
|
|
361
|
+
var tmp1_safe_receiver = (!(null == null) ? isInterface(null, Waiter()) : false) ? null : null;
|
|
362
|
+
if (tmp1_safe_receiver == null)
|
|
363
|
+
null;
|
|
364
|
+
else {
|
|
365
|
+
prepareReceiverForSuspension(tmp0, tmp1_safe_receiver, segment, i);
|
|
366
|
+
}
|
|
367
|
+
var message = 'unreachable';
|
|
368
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
369
|
+
} else if (updCellResult === get_FAILED()) {
|
|
370
|
+
if (r < tmp0.f17()) {
|
|
371
|
+
segment.z16();
|
|
372
|
+
}
|
|
373
|
+
continue $l$loop_0;
|
|
374
|
+
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
375
|
+
var segm = segment;
|
|
376
|
+
var tmp_2 = hasNextOnNoWaiterSuspend($this, segm, i, r, $completion);
|
|
377
|
+
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
378
|
+
tmp_2 = yield tmp_2;
|
|
379
|
+
return tmp_2;
|
|
380
|
+
} else {
|
|
381
|
+
segment.z16();
|
|
382
|
+
$this.b17_1 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
383
|
+
tmp_1 = true;
|
|
384
|
+
}
|
|
385
|
+
tmp$ret$1 = tmp_1;
|
|
386
|
+
break $l$block_0;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
tmp = tmp$ret$1;
|
|
390
|
+
}
|
|
391
|
+
return tmp;
|
|
392
|
+
}
|
|
316
393
|
function onClosedHasNext($this) {
|
|
317
|
-
$this.
|
|
318
|
-
var tmp0_elvis_lhs = $this.
|
|
394
|
+
$this.b17_1 = get_CHANNEL_CLOSED();
|
|
395
|
+
var tmp0_elvis_lhs = $this.d17_1.g17();
|
|
319
396
|
var tmp;
|
|
320
397
|
if (tmp0_elvis_lhs == null) {
|
|
321
398
|
return false;
|
|
@@ -328,32 +405,33 @@ function onClosedHasNext($this) {
|
|
|
328
405
|
function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
329
406
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
330
407
|
try {
|
|
331
|
-
$this.
|
|
408
|
+
$this.c17_1 = cancellable;
|
|
332
409
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
333
|
-
var this_0 = $this.
|
|
410
|
+
var this_0 = $this.d17_1;
|
|
334
411
|
var updCellResult = updateCellReceive(this_0, segment, index, r, $this);
|
|
335
412
|
if (updCellResult === get_SUSPEND()) {
|
|
336
413
|
prepareReceiverForSuspension(this_0, $this, segment, index);
|
|
337
414
|
} else if (updCellResult === get_FAILED()) {
|
|
338
|
-
if (r
|
|
339
|
-
segment.
|
|
415
|
+
if (r < this_0.f17()) {
|
|
416
|
+
segment.z16();
|
|
340
417
|
}
|
|
341
418
|
$l$block_0: {
|
|
342
419
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
343
|
-
var segment_0 = this_0.
|
|
420
|
+
var segment_0 = this_0.i16_1.kotlinx$atomicfu$value;
|
|
344
421
|
$l$loop_0: while (true) {
|
|
345
|
-
if (this_0.
|
|
422
|
+
if (this_0.e17()) {
|
|
346
423
|
onClosedHasNextNoWaiterSuspend($this);
|
|
347
424
|
break $l$block_0;
|
|
348
425
|
}
|
|
349
|
-
var r_0 = this_0.
|
|
426
|
+
var r_0 = this_0.e16_1.atomicfu$getAndIncrement$long();
|
|
350
427
|
// Inline function 'kotlin.Long.div' call
|
|
351
428
|
var other = get_SEGMENT_SIZE();
|
|
352
|
-
var id = r_0
|
|
429
|
+
var id = divide(r_0, fromInt(other));
|
|
353
430
|
// Inline function 'kotlin.Long.rem' call
|
|
354
431
|
var other_0 = get_SEGMENT_SIZE();
|
|
355
|
-
var
|
|
356
|
-
|
|
432
|
+
var tmp$ret$3 = modulo(r_0, fromInt(other_0));
|
|
433
|
+
var i = convertToInt(tmp$ret$3);
|
|
434
|
+
if (!(segment_0.ly_1 === id)) {
|
|
357
435
|
var tmp0_elvis_lhs = findSegmentReceive(this_0, id, segment_0);
|
|
358
436
|
var tmp;
|
|
359
437
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -372,273 +450,178 @@ function hasNextOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
|
372
450
|
prepareReceiverForSuspension(this_0, tmp1_safe_receiver, segment_0, i);
|
|
373
451
|
}
|
|
374
452
|
} else if (updCellResult_0 === get_FAILED()) {
|
|
375
|
-
if (r_0
|
|
376
|
-
segment_0.
|
|
453
|
+
if (r_0 < this_0.f17()) {
|
|
454
|
+
segment_0.z16();
|
|
377
455
|
}
|
|
378
456
|
continue $l$loop_0;
|
|
379
457
|
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
380
458
|
// Inline function 'kotlin.error' call
|
|
381
459
|
var message = 'unexpected';
|
|
382
|
-
throw IllegalStateException().
|
|
460
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
383
461
|
} else {
|
|
384
|
-
segment_0.
|
|
462
|
+
segment_0.z16();
|
|
385
463
|
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
386
|
-
$this.
|
|
387
|
-
$this.
|
|
388
|
-
var tmp0_safe_receiver = $this.
|
|
389
|
-
cancellable.
|
|
464
|
+
$this.b17_1 = element;
|
|
465
|
+
$this.c17_1 = null;
|
|
466
|
+
var tmp0_safe_receiver = $this.d17_1.c16_1;
|
|
467
|
+
cancellable.mx(true, tmp0_safe_receiver == null ? null : bindCancellationFun($this.d17_1, tmp0_safe_receiver, element));
|
|
390
468
|
}
|
|
391
469
|
break $l$block_0;
|
|
392
470
|
}
|
|
393
471
|
}
|
|
394
472
|
} else {
|
|
395
|
-
segment.
|
|
473
|
+
segment.z16();
|
|
396
474
|
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
397
|
-
$this.
|
|
398
|
-
$this.
|
|
399
|
-
var tmp0_safe_receiver_0 = $this.
|
|
400
|
-
cancellable.
|
|
475
|
+
$this.b17_1 = element_0;
|
|
476
|
+
$this.c17_1 = null;
|
|
477
|
+
var tmp0_safe_receiver_0 = $this.d17_1.c16_1;
|
|
478
|
+
cancellable.mx(true, tmp0_safe_receiver_0 == null ? null : bindCancellationFun($this.d17_1, tmp0_safe_receiver_0, element_0));
|
|
401
479
|
}
|
|
402
480
|
} catch ($p) {
|
|
403
481
|
if ($p instanceof Error) {
|
|
404
482
|
var e = $p;
|
|
405
|
-
cancellable.
|
|
483
|
+
cancellable.mz();
|
|
406
484
|
throw e;
|
|
407
485
|
} else {
|
|
408
486
|
throw $p;
|
|
409
487
|
}
|
|
410
488
|
}
|
|
411
|
-
return cancellable.
|
|
489
|
+
return cancellable.lz();
|
|
412
490
|
}
|
|
413
491
|
function onClosedHasNextNoWaiterSuspend($this) {
|
|
414
|
-
var cont = ensureNotNull($this.
|
|
415
|
-
$this.
|
|
416
|
-
$this.
|
|
417
|
-
var cause = $this.
|
|
492
|
+
var cont = ensureNotNull($this.c17_1);
|
|
493
|
+
$this.c17_1 = null;
|
|
494
|
+
$this.b17_1 = get_CHANNEL_CLOSED();
|
|
495
|
+
var cause = $this.d17_1.g17();
|
|
418
496
|
if (cause == null) {
|
|
419
497
|
// Inline function 'kotlin.coroutines.resume' call
|
|
420
498
|
// Inline function 'kotlin.Companion.success' call
|
|
421
499
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
422
|
-
cont.
|
|
500
|
+
cont.bc(tmp$ret$0);
|
|
423
501
|
} else {
|
|
424
502
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
425
503
|
// Inline function 'kotlin.Companion.failure' call
|
|
426
504
|
var exception = recoverStackTrace_0(cause, cont);
|
|
427
505
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
428
|
-
cont.
|
|
506
|
+
cont.bc(tmp$ret$2);
|
|
429
507
|
}
|
|
430
508
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
var other = get_SEGMENT_SIZE();
|
|
488
|
-
tmp_4.f2e_1 = tmp0.s3(toLong(other));
|
|
489
|
-
var tmp_5 = this;
|
|
490
|
-
var tmp0_0 = this.e2e_1;
|
|
491
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
492
|
-
tmp_5.g2e_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
493
|
-
if (!this.d2e_1.i22_1.equals(this.f2e_1)) {
|
|
494
|
-
this.h2e_1 = findSegmentReceive(this.b2e_1, this.f2e_1, this.d2e_1);
|
|
495
|
-
if (this.h2e_1 == null) {
|
|
496
|
-
this.ac_1 = 2;
|
|
497
|
-
var tmp_6 = this;
|
|
498
|
-
continue $sm;
|
|
499
|
-
} else {
|
|
500
|
-
this.i2e_1 = this.h2e_1;
|
|
501
|
-
this.ac_1 = 4;
|
|
502
|
-
continue $sm;
|
|
503
|
-
}
|
|
504
|
-
} else {
|
|
505
|
-
this.ac_1 = 5;
|
|
506
|
-
continue $sm;
|
|
507
|
-
}
|
|
509
|
+
function _get_bufferEndCounter__2d4hee($this) {
|
|
510
|
+
return $this.f16_1.kotlinx$atomicfu$value;
|
|
511
|
+
}
|
|
512
|
+
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
513
|
+
// Inline function 'kotlin.let' call
|
|
514
|
+
var it = _get_bufferEndCounter__2d4hee($this);
|
|
515
|
+
return it === 0n || it === 9223372036854775807n;
|
|
516
|
+
}
|
|
517
|
+
function *_generator_send__qhx0g0($this, element, $completion) {
|
|
518
|
+
$l$block_5: {
|
|
519
|
+
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
520
|
+
var segment = $this.h16_1.kotlinx$atomicfu$value;
|
|
521
|
+
$l$loop_0: while (true) {
|
|
522
|
+
var sendersAndCloseStatusCur = $this.d16_1.atomicfu$getAndIncrement$long();
|
|
523
|
+
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
524
|
+
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
525
|
+
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
526
|
+
// Inline function 'kotlin.Long.div' call
|
|
527
|
+
var other = get_SEGMENT_SIZE();
|
|
528
|
+
var id = divide(s, fromInt(other));
|
|
529
|
+
// Inline function 'kotlin.Long.rem' call
|
|
530
|
+
var other_0 = get_SEGMENT_SIZE();
|
|
531
|
+
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
532
|
+
var i = convertToInt(tmp$ret$2);
|
|
533
|
+
if (!(segment.ly_1 === id)) {
|
|
534
|
+
var tmp0_elvis_lhs = findSegmentSend($this, id, segment);
|
|
535
|
+
var tmp;
|
|
536
|
+
if (tmp0_elvis_lhs == null) {
|
|
537
|
+
var tmp_0;
|
|
538
|
+
if (closed) {
|
|
539
|
+
var tmp_1 = onClosedSend($this, element, $completion);
|
|
540
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
541
|
+
tmp_1 = yield tmp_1;
|
|
542
|
+
break $l$block_5;
|
|
543
|
+
} else {
|
|
544
|
+
continue $l$loop_0;
|
|
545
|
+
}
|
|
546
|
+
} else {
|
|
547
|
+
tmp = tmp0_elvis_lhs;
|
|
548
|
+
}
|
|
549
|
+
segment = tmp;
|
|
550
|
+
}
|
|
551
|
+
switch (updateCellSend($this, segment, i, element, s, null, closed)) {
|
|
552
|
+
case 0:
|
|
553
|
+
segment.z16();
|
|
554
|
+
break $l$block_5;
|
|
555
|
+
case 1:
|
|
556
|
+
break $l$block_5;
|
|
557
|
+
case 2:
|
|
558
|
+
if (closed) {
|
|
559
|
+
segment.p16();
|
|
560
|
+
var tmp_2 = onClosedSend($this, element, $completion);
|
|
561
|
+
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
562
|
+
tmp_2 = yield tmp_2;
|
|
563
|
+
break $l$block_5;
|
|
564
|
+
}
|
|
508
565
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
if (this.j2e_1 === get_SUSPEND()) {
|
|
516
|
-
var tmp_7 = this;
|
|
517
|
-
var tmp_8 = this.c2e_1;
|
|
518
|
-
var tmp1_safe_receiver = (!(tmp_8 == null) ? isInterface(tmp_8, Waiter()) : false) ? tmp_8 : null;
|
|
519
|
-
if (tmp1_safe_receiver == null)
|
|
520
|
-
null;
|
|
521
|
-
else {
|
|
522
|
-
prepareReceiverForSuspension(this.b2e_1, tmp1_safe_receiver, this.d2e_1, this.g2e_1);
|
|
523
|
-
}
|
|
524
|
-
this.d2e_1;
|
|
525
|
-
this.g2e_1;
|
|
526
|
-
this.e2e_1;
|
|
527
|
-
var message = 'unreachable';
|
|
528
|
-
throw IllegalStateException().o4(toString_0(message));
|
|
529
|
-
} else {
|
|
530
|
-
if (this.j2e_1 === get_FAILED()) {
|
|
531
|
-
if (this.e2e_1.a2(this.b2e_1.m2d()) < 0) {
|
|
532
|
-
this.d2e_1.g2d();
|
|
533
|
-
}
|
|
534
|
-
this.ac_1 = 2;
|
|
535
|
-
var tmp_9 = this;
|
|
536
|
-
continue $sm;
|
|
537
|
-
} else {
|
|
538
|
-
if (this.j2e_1 === get_SUSPEND_NO_WAITER()) {
|
|
539
|
-
var tmp_10 = this;
|
|
540
|
-
tmp_10.l2e_1 = this.d2e_1;
|
|
541
|
-
var tmp_11 = this;
|
|
542
|
-
tmp_11.m2e_1 = this.g2e_1;
|
|
543
|
-
var tmp_12 = this;
|
|
544
|
-
tmp_12.n2e_1 = this.e2e_1;
|
|
545
|
-
this.o2e_1 = this.l2e_1;
|
|
546
|
-
this.p2e_1 = this.m2e_1;
|
|
547
|
-
this.q2e_1 = this.n2e_1;
|
|
548
|
-
this.ac_1 = 6;
|
|
549
|
-
suspendResult = hasNextOnNoWaiterSuspend(this.w2d_1, this.o2e_1, this.p2e_1, this.q2e_1, this);
|
|
550
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
551
|
-
return suspendResult;
|
|
552
|
-
}
|
|
553
|
-
continue $sm;
|
|
554
|
-
} else {
|
|
555
|
-
var tmp_13 = this;
|
|
556
|
-
this.d2e_1.g2d();
|
|
557
|
-
var tmp_14 = this.j2e_1;
|
|
558
|
-
var element = (tmp_14 == null ? true : !(tmp_14 == null)) ? tmp_14 : THROW_CCE();
|
|
559
|
-
this.w2d_1.i2d_1 = element;
|
|
560
|
-
tmp_13.k2e_1 = true;
|
|
561
|
-
this.ac_1 = 7;
|
|
562
|
-
continue $sm;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
+
var tmp2_safe_receiver = (!(null == null) ? isInterface(null, Waiter()) : false) ? null : null;
|
|
567
|
+
if (tmp2_safe_receiver == null)
|
|
568
|
+
null;
|
|
569
|
+
else {
|
|
570
|
+
prepareSenderForSuspension($this, tmp2_safe_receiver, segment, i);
|
|
571
|
+
}
|
|
566
572
|
|
|
567
|
-
|
|
568
|
-
var tmp_15 = this;
|
|
569
|
-
return suspendResult;
|
|
570
|
-
case 7:
|
|
571
|
-
this.a2e_1 = this.k2e_1;
|
|
572
|
-
this.ac_1 = 10;
|
|
573
|
-
continue $sm;
|
|
574
|
-
case 8:
|
|
575
|
-
throw this.dc_1;
|
|
576
|
-
case 9:
|
|
577
|
-
if (false) {
|
|
578
|
-
this.ac_1 = 1;
|
|
579
|
-
continue $sm;
|
|
580
|
-
}
|
|
573
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
581
574
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
this.ac_1 = 11;
|
|
587
|
-
continue $sm;
|
|
588
|
-
case 11:
|
|
589
|
-
return this.x2d_1;
|
|
590
|
-
}
|
|
591
|
-
} catch ($p) {
|
|
592
|
-
var e = $p;
|
|
593
|
-
if (this.bc_1 === 8) {
|
|
594
|
-
throw e;
|
|
595
|
-
} else {
|
|
596
|
-
this.ac_1 = this.bc_1;
|
|
597
|
-
this.dc_1 = e;
|
|
598
|
-
}
|
|
575
|
+
break $l$block_5;
|
|
576
|
+
case 4:
|
|
577
|
+
if (s < $this.h17()) {
|
|
578
|
+
segment.z16();
|
|
599
579
|
}
|
|
600
|
-
|
|
580
|
+
|
|
581
|
+
var tmp_3 = onClosedSend($this, element, $completion);
|
|
582
|
+
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
583
|
+
tmp_3 = yield tmp_3;
|
|
584
|
+
break $l$block_5;
|
|
585
|
+
case 5:
|
|
586
|
+
segment.z16();
|
|
587
|
+
continue $l$loop_0;
|
|
588
|
+
case 3:
|
|
589
|
+
var segm = segment;
|
|
590
|
+
var tmp_4 = sendOnNoWaiterSuspend($this, segm, i, element, s, $completion);
|
|
591
|
+
if (tmp_4 === get_COROUTINE_SUSPENDED())
|
|
592
|
+
tmp_4 = yield tmp_4;
|
|
593
|
+
break $l$block_5;
|
|
601
594
|
}
|
|
602
595
|
}
|
|
603
|
-
initMetadataForCoroutine($);
|
|
604
|
-
$hasNextCOROUTINE$Class = $;
|
|
605
596
|
}
|
|
606
|
-
return
|
|
607
|
-
}
|
|
608
|
-
function _get_bufferEndCounter__2d4hee($this) {
|
|
609
|
-
return $this.m2c_1.kotlinx$atomicfu$value;
|
|
610
|
-
}
|
|
611
|
-
function _get_isRendezvousOrUnlimited__3mdufi($this) {
|
|
612
|
-
// Inline function 'kotlin.let' call
|
|
613
|
-
var it = _get_bufferEndCounter__2d4hee($this);
|
|
614
|
-
return it.equals(new (Long())(0, 0)) || it.equals(new (Long())(-1, 2147483647));
|
|
597
|
+
return Unit_instance;
|
|
615
598
|
}
|
|
616
599
|
function onClosedSend($this, element, $completion) {
|
|
617
600
|
var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
|
|
618
|
-
cancellable.
|
|
601
|
+
cancellable.dz();
|
|
619
602
|
$l$block: {
|
|
620
|
-
var tmp0_safe_receiver = $this.
|
|
603
|
+
var tmp0_safe_receiver = $this.c16_1;
|
|
621
604
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : callUndeliveredElementCatchingException(tmp0_safe_receiver, element);
|
|
622
605
|
if (tmp1_safe_receiver == null)
|
|
623
606
|
null;
|
|
624
607
|
else {
|
|
625
608
|
// Inline function 'kotlin.let' call
|
|
626
|
-
addSuppressed(tmp1_safe_receiver, $this.
|
|
609
|
+
addSuppressed(tmp1_safe_receiver, $this.i17());
|
|
627
610
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
628
611
|
// Inline function 'kotlin.Companion.failure' call
|
|
629
612
|
var exception = recoverStackTrace_0(tmp1_safe_receiver, cancellable);
|
|
630
613
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
631
|
-
cancellable.
|
|
614
|
+
cancellable.bc(tmp$ret$0);
|
|
632
615
|
break $l$block;
|
|
633
616
|
}
|
|
634
617
|
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
|
|
635
|
-
var exception_0 = $this.
|
|
618
|
+
var exception_0 = $this.i17();
|
|
636
619
|
// Inline function 'kotlin.Companion.failure' call
|
|
637
620
|
var exception_1 = recoverStackTrace_0(exception_0, cancellable);
|
|
638
621
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(createFailure(exception_1));
|
|
639
|
-
cancellable.
|
|
622
|
+
cancellable.bc(tmp$ret$4);
|
|
640
623
|
}
|
|
641
|
-
return cancellable.
|
|
624
|
+
return cancellable.lz();
|
|
642
625
|
}
|
|
643
626
|
function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
644
627
|
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
@@ -646,13 +629,13 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
646
629
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImplOnNoWaiter' call
|
|
647
630
|
switch (updateCellSend($this, segment, index, element, s, cancellable, false)) {
|
|
648
631
|
case 0:
|
|
649
|
-
segment.
|
|
632
|
+
segment.z16();
|
|
650
633
|
// Inline function 'kotlin.coroutines.resume' call
|
|
651
634
|
|
|
652
635
|
// Inline function 'kotlin.Companion.success' call
|
|
653
636
|
|
|
654
637
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
655
|
-
cancellable.
|
|
638
|
+
cancellable.bc(tmp$ret$0);
|
|
656
639
|
break;
|
|
657
640
|
case 1:
|
|
658
641
|
// Inline function 'kotlin.coroutines.resume' call
|
|
@@ -660,35 +643,36 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
660
643
|
// Inline function 'kotlin.Companion.success' call
|
|
661
644
|
|
|
662
645
|
var tmp$ret$3 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
663
|
-
cancellable.
|
|
646
|
+
cancellable.bc(tmp$ret$3);
|
|
664
647
|
break;
|
|
665
648
|
case 2:
|
|
666
649
|
prepareSenderForSuspension($this, cancellable, segment, index);
|
|
667
650
|
break;
|
|
668
651
|
case 4:
|
|
669
|
-
if (s
|
|
670
|
-
segment.
|
|
652
|
+
if (s < $this.h17()) {
|
|
653
|
+
segment.z16();
|
|
671
654
|
}
|
|
672
655
|
|
|
673
656
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
674
657
|
break;
|
|
675
658
|
case 5:
|
|
676
|
-
segment.
|
|
659
|
+
segment.z16();
|
|
677
660
|
$l$block_5: {
|
|
678
661
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
679
|
-
var segment_0 = $this.
|
|
662
|
+
var segment_0 = $this.h16_1.kotlinx$atomicfu$value;
|
|
680
663
|
$l$loop_0: while (true) {
|
|
681
|
-
var sendersAndCloseStatusCur = $this.
|
|
664
|
+
var sendersAndCloseStatusCur = $this.d16_1.atomicfu$getAndIncrement$long();
|
|
682
665
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
683
|
-
var s_0 = sendersAndCloseStatusCur
|
|
666
|
+
var s_0 = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
684
667
|
var closed = _get_isClosedForSend0__kxgf9m($this, sendersAndCloseStatusCur);
|
|
685
668
|
// Inline function 'kotlin.Long.div' call
|
|
686
669
|
var other = get_SEGMENT_SIZE();
|
|
687
|
-
var id = s_0
|
|
670
|
+
var id = divide(s_0, fromInt(other));
|
|
688
671
|
// Inline function 'kotlin.Long.rem' call
|
|
689
672
|
var other_0 = get_SEGMENT_SIZE();
|
|
690
|
-
var
|
|
691
|
-
|
|
673
|
+
var tmp$ret$9 = modulo(s_0, fromInt(other_0));
|
|
674
|
+
var i = convertToInt(tmp$ret$9);
|
|
675
|
+
if (!(segment_0.ly_1 === id)) {
|
|
692
676
|
var tmp0_elvis_lhs = findSegmentSend($this, id, segment_0);
|
|
693
677
|
var tmp;
|
|
694
678
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -706,13 +690,13 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
706
690
|
}
|
|
707
691
|
switch (updateCellSend($this, segment_0, i, element, s_0, cancellable, closed)) {
|
|
708
692
|
case 0:
|
|
709
|
-
segment_0.
|
|
693
|
+
segment_0.z16();
|
|
710
694
|
// Inline function 'kotlin.coroutines.resume' call
|
|
711
695
|
|
|
712
696
|
// Inline function 'kotlin.Companion.success' call
|
|
713
697
|
|
|
714
698
|
var tmp$ret$12 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
715
|
-
cancellable.
|
|
699
|
+
cancellable.bc(tmp$ret$12);
|
|
716
700
|
break $l$block_5;
|
|
717
701
|
case 1:
|
|
718
702
|
// Inline function 'kotlin.coroutines.resume' call
|
|
@@ -720,11 +704,11 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
720
704
|
// Inline function 'kotlin.Companion.success' call
|
|
721
705
|
|
|
722
706
|
var tmp$ret$15 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
723
|
-
cancellable.
|
|
707
|
+
cancellable.bc(tmp$ret$15);
|
|
724
708
|
break $l$block_5;
|
|
725
709
|
case 2:
|
|
726
710
|
if (closed) {
|
|
727
|
-
segment_0.
|
|
711
|
+
segment_0.p16();
|
|
728
712
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
729
713
|
break $l$block_5;
|
|
730
714
|
}
|
|
@@ -738,20 +722,20 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
738
722
|
|
|
739
723
|
break $l$block_5;
|
|
740
724
|
case 4:
|
|
741
|
-
if (s_0
|
|
742
|
-
segment_0.
|
|
725
|
+
if (s_0 < $this.h17()) {
|
|
726
|
+
segment_0.z16();
|
|
743
727
|
}
|
|
744
728
|
|
|
745
729
|
onClosedSendOnNoWaiterSuspend($this, element, cancellable);
|
|
746
730
|
break $l$block_5;
|
|
747
731
|
case 5:
|
|
748
|
-
segment_0.
|
|
732
|
+
segment_0.z16();
|
|
749
733
|
continue $l$loop_0;
|
|
750
734
|
case 3:
|
|
751
735
|
// Inline function 'kotlin.error' call
|
|
752
736
|
|
|
753
737
|
var message = 'unexpected';
|
|
754
|
-
throw IllegalStateException().
|
|
738
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
755
739
|
}
|
|
756
740
|
}
|
|
757
741
|
}
|
|
@@ -761,34 +745,34 @@ function sendOnNoWaiterSuspend($this, segment, index, element, s, $completion) {
|
|
|
761
745
|
// Inline function 'kotlin.error' call
|
|
762
746
|
|
|
763
747
|
var message_0 = 'unexpected';
|
|
764
|
-
throw IllegalStateException().
|
|
748
|
+
throw IllegalStateException().x4(toString_0(message_0));
|
|
765
749
|
}
|
|
766
750
|
} catch ($p) {
|
|
767
751
|
if ($p instanceof Error) {
|
|
768
752
|
var e = $p;
|
|
769
|
-
cancellable.
|
|
753
|
+
cancellable.mz();
|
|
770
754
|
throw e;
|
|
771
755
|
} else {
|
|
772
756
|
throw $p;
|
|
773
757
|
}
|
|
774
758
|
}
|
|
775
|
-
return cancellable.
|
|
759
|
+
return cancellable.lz();
|
|
776
760
|
}
|
|
777
761
|
function prepareSenderForSuspension($this, _this__u8e3s4, segment, index) {
|
|
778
|
-
_this__u8e3s4.
|
|
762
|
+
_this__u8e3s4.sz(segment, index + get_SEGMENT_SIZE() | 0);
|
|
779
763
|
}
|
|
780
764
|
function onClosedSendOnNoWaiterSuspend($this, element, cont) {
|
|
781
|
-
var tmp0_safe_receiver = $this.
|
|
765
|
+
var tmp0_safe_receiver = $this.c16_1;
|
|
782
766
|
if (tmp0_safe_receiver == null)
|
|
783
767
|
null;
|
|
784
768
|
else {
|
|
785
|
-
callUndeliveredElement(tmp0_safe_receiver, element, cont.
|
|
769
|
+
callUndeliveredElement(tmp0_safe_receiver, element, cont.zb());
|
|
786
770
|
}
|
|
787
771
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
788
772
|
// Inline function 'kotlin.Companion.failure' call
|
|
789
|
-
var exception = recoverStackTrace_0($this.
|
|
773
|
+
var exception = recoverStackTrace_0($this.i17(), cont);
|
|
790
774
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
791
|
-
cont.
|
|
775
|
+
cont.bc(tmp$ret$0);
|
|
792
776
|
}
|
|
793
777
|
var SendBroadcastClass;
|
|
794
778
|
function SendBroadcast() {
|
|
@@ -800,34 +784,34 @@ function SendBroadcast() {
|
|
|
800
784
|
return SendBroadcastClass;
|
|
801
785
|
}
|
|
802
786
|
function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
803
|
-
segment.
|
|
787
|
+
segment.t15(index, element);
|
|
804
788
|
if (closed)
|
|
805
789
|
return updateCellSendSlow($this, segment, index, element, s, waiter, closed);
|
|
806
|
-
var state = segment.
|
|
790
|
+
var state = segment.x15(index);
|
|
807
791
|
if (state === null) {
|
|
808
792
|
if (bufferOrRendezvousSend($this, s)) {
|
|
809
|
-
if (segment.
|
|
793
|
+
if (segment.z15(index, null, get_BUFFERED())) {
|
|
810
794
|
return 1;
|
|
811
795
|
}
|
|
812
796
|
} else {
|
|
813
797
|
if (waiter == null) {
|
|
814
798
|
return 3;
|
|
815
799
|
} else {
|
|
816
|
-
if (segment.
|
|
800
|
+
if (segment.z15(index, null, waiter))
|
|
817
801
|
return 2;
|
|
818
802
|
}
|
|
819
803
|
}
|
|
820
804
|
} else {
|
|
821
805
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
822
|
-
segment.
|
|
806
|
+
segment.w15(index);
|
|
823
807
|
var tmp;
|
|
824
808
|
if (tryResumeReceiver($this, state, element)) {
|
|
825
|
-
segment.
|
|
826
|
-
$this.
|
|
809
|
+
segment.y15(index, get_DONE_RCV());
|
|
810
|
+
$this.j17();
|
|
827
811
|
tmp = 0;
|
|
828
812
|
} else {
|
|
829
|
-
if (!(segment.
|
|
830
|
-
segment.
|
|
813
|
+
if (!(segment.a16(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
814
|
+
segment.n16(index, true);
|
|
831
815
|
}
|
|
832
816
|
tmp = 5;
|
|
833
817
|
}
|
|
@@ -838,55 +822,55 @@ function updateCellSend($this, segment, index, element, s, waiter, closed) {
|
|
|
838
822
|
}
|
|
839
823
|
function updateCellSendSlow($this, segment, index, element, s, waiter, closed) {
|
|
840
824
|
while (true) {
|
|
841
|
-
var state = segment.
|
|
825
|
+
var state = segment.x15(index);
|
|
842
826
|
if (state === null) {
|
|
843
827
|
if (bufferOrRendezvousSend($this, s) && !closed) {
|
|
844
|
-
if (segment.
|
|
828
|
+
if (segment.z15(index, null, get_BUFFERED())) {
|
|
845
829
|
return 1;
|
|
846
830
|
}
|
|
847
831
|
} else {
|
|
848
832
|
if (closed) {
|
|
849
|
-
if (segment.
|
|
850
|
-
segment.
|
|
833
|
+
if (segment.z15(index, null, get_INTERRUPTED_SEND())) {
|
|
834
|
+
segment.n16(index, false);
|
|
851
835
|
return 4;
|
|
852
836
|
}
|
|
853
837
|
} else if (waiter == null)
|
|
854
838
|
return 3;
|
|
855
|
-
else if (segment.
|
|
839
|
+
else if (segment.z15(index, null, waiter))
|
|
856
840
|
return 2;
|
|
857
841
|
}
|
|
858
842
|
} else if (state === get_IN_BUFFER()) {
|
|
859
|
-
if (segment.
|
|
843
|
+
if (segment.z15(index, state, get_BUFFERED())) {
|
|
860
844
|
return 1;
|
|
861
845
|
}
|
|
862
846
|
} else if (state === get_INTERRUPTED_RCV()) {
|
|
863
|
-
segment.
|
|
847
|
+
segment.w15(index);
|
|
864
848
|
return 5;
|
|
865
849
|
} else if (state === get_POISONED()) {
|
|
866
|
-
segment.
|
|
850
|
+
segment.w15(index);
|
|
867
851
|
return 5;
|
|
868
852
|
} else if (state === get_CHANNEL_CLOSED()) {
|
|
869
|
-
segment.
|
|
853
|
+
segment.w15(index);
|
|
870
854
|
completeCloseOrCancel($this);
|
|
871
855
|
return 4;
|
|
872
856
|
} else {
|
|
873
857
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
874
|
-
segment.
|
|
858
|
+
segment.w15(index);
|
|
875
859
|
var tmp;
|
|
876
860
|
if (state instanceof WaiterEB()) {
|
|
877
|
-
tmp = state.
|
|
861
|
+
tmp = state.k17_1;
|
|
878
862
|
} else {
|
|
879
863
|
tmp = state;
|
|
880
864
|
}
|
|
881
865
|
var receiver = tmp;
|
|
882
866
|
var tmp_0;
|
|
883
867
|
if (tryResumeReceiver($this, receiver, element)) {
|
|
884
|
-
segment.
|
|
885
|
-
$this.
|
|
868
|
+
segment.y15(index, get_DONE_RCV());
|
|
869
|
+
$this.j17();
|
|
886
870
|
tmp_0 = 0;
|
|
887
871
|
} else {
|
|
888
|
-
if (!(segment.
|
|
889
|
-
segment.
|
|
872
|
+
if (!(segment.a16(index, get_INTERRUPTED_RCV()) === get_INTERRUPTED_RCV())) {
|
|
873
|
+
segment.n16(index, true);
|
|
890
874
|
}
|
|
891
875
|
tmp_0 = 5;
|
|
892
876
|
}
|
|
@@ -898,174 +882,85 @@ function shouldSendSuspend0($this, curSendersAndCloseStatus) {
|
|
|
898
882
|
if (_get_isClosedForSend0__kxgf9m($this, curSendersAndCloseStatus))
|
|
899
883
|
return false;
|
|
900
884
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
901
|
-
var tmp$ret$0 = curSendersAndCloseStatus
|
|
885
|
+
var tmp$ret$0 = curSendersAndCloseStatus & 1152921504606846975n;
|
|
902
886
|
return !bufferOrRendezvousSend($this, tmp$ret$0);
|
|
903
887
|
}
|
|
904
888
|
function bufferOrRendezvousSend($this, curSenders) {
|
|
905
889
|
var tmp;
|
|
906
|
-
if (curSenders
|
|
890
|
+
if (curSenders < _get_bufferEndCounter__2d4hee($this)) {
|
|
907
891
|
tmp = true;
|
|
908
892
|
} else {
|
|
909
|
-
var tmp0 = $this.
|
|
893
|
+
var tmp0 = $this.h17();
|
|
910
894
|
// Inline function 'kotlin.Long.plus' call
|
|
911
|
-
var other = $this.
|
|
912
|
-
|
|
913
|
-
tmp = curSenders.a2(tmp$ret$0) < 0;
|
|
895
|
+
var other = $this.b16_1;
|
|
896
|
+
tmp = curSenders < add(tmp0, fromInt(other));
|
|
914
897
|
}
|
|
915
898
|
return tmp;
|
|
916
899
|
}
|
|
917
900
|
function tryResumeReceiver($this, _this__u8e3s4, element) {
|
|
918
901
|
var tmp;
|
|
919
902
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
920
|
-
tmp = _this__u8e3s4.
|
|
903
|
+
tmp = _this__u8e3s4.p17($this, element);
|
|
921
904
|
} else {
|
|
922
905
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
923
906
|
if (!(_this__u8e3s4 instanceof ReceiveCatching()))
|
|
924
907
|
THROW_CCE();
|
|
925
|
-
var tmp_0 = Companion_getInstance().
|
|
926
|
-
var tmp1_safe_receiver = $this.
|
|
927
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
908
|
+
var tmp_0 = Companion_getInstance().n17(element);
|
|
909
|
+
var tmp1_safe_receiver = $this.c16_1;
|
|
910
|
+
tmp = tryResume0(_this__u8e3s4.o17_1, new (ChannelResult())(tmp_0), tmp1_safe_receiver == null ? null : bindCancellationFunResult($this, tmp1_safe_receiver));
|
|
928
911
|
} else {
|
|
929
912
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
930
913
|
if (!(_this__u8e3s4 instanceof BufferedChannelIterator()))
|
|
931
914
|
THROW_CCE();
|
|
932
|
-
tmp = _this__u8e3s4.
|
|
915
|
+
tmp = _this__u8e3s4.l17(element);
|
|
933
916
|
} else {
|
|
934
917
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
935
918
|
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
936
919
|
THROW_CCE();
|
|
937
|
-
var tmp2_safe_receiver = $this.
|
|
920
|
+
var tmp2_safe_receiver = $this.c16_1;
|
|
938
921
|
tmp = tryResume0(_this__u8e3s4, element, tmp2_safe_receiver == null ? null : bindCancellationFun_0($this, tmp2_safe_receiver));
|
|
939
922
|
} else {
|
|
940
923
|
var message = 'Unexpected receiver type: ' + toString_0(_this__u8e3s4);
|
|
941
|
-
throw IllegalStateException().
|
|
924
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
942
925
|
}
|
|
943
926
|
}
|
|
944
927
|
}
|
|
945
928
|
}
|
|
946
929
|
return tmp;
|
|
947
930
|
}
|
|
948
|
-
function receiveOnNoWaiterSuspend($this, segment, index, r, $completion) {
|
|
949
|
-
var cancellable = getOrCreateCancellableContinuation(intercepted($completion));
|
|
950
|
-
try {
|
|
951
|
-
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImplOnNoWaiter' call
|
|
952
|
-
var updCellResult = updateCellReceive($this, segment, index, r, cancellable);
|
|
953
|
-
if (updCellResult === get_SUSPEND()) {
|
|
954
|
-
prepareReceiverForSuspension($this, cancellable, segment, index);
|
|
955
|
-
} else if (updCellResult === get_FAILED()) {
|
|
956
|
-
if (r.a2($this.m2d()) < 0) {
|
|
957
|
-
segment.g2d();
|
|
958
|
-
}
|
|
959
|
-
$l$block_0: {
|
|
960
|
-
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
961
|
-
var segment_0 = $this.p2c_1.kotlinx$atomicfu$value;
|
|
962
|
-
$l$loop_0: while (true) {
|
|
963
|
-
if ($this.n2d()) {
|
|
964
|
-
onClosedReceiveOnNoWaiterSuspend($this, cancellable);
|
|
965
|
-
break $l$block_0;
|
|
966
|
-
}
|
|
967
|
-
var r_0 = $this.l2c_1.atomicfu$getAndIncrement$long();
|
|
968
|
-
// Inline function 'kotlin.Long.div' call
|
|
969
|
-
var other = get_SEGMENT_SIZE();
|
|
970
|
-
var id = r_0.s3(toLong(other));
|
|
971
|
-
// Inline function 'kotlin.Long.rem' call
|
|
972
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
973
|
-
var i = r_0.t3(toLong(other_0)).c2();
|
|
974
|
-
if (!segment_0.i22_1.equals(id)) {
|
|
975
|
-
var tmp0_elvis_lhs = findSegmentReceive($this, id, segment_0);
|
|
976
|
-
var tmp;
|
|
977
|
-
if (tmp0_elvis_lhs == null) {
|
|
978
|
-
continue $l$loop_0;
|
|
979
|
-
} else {
|
|
980
|
-
tmp = tmp0_elvis_lhs;
|
|
981
|
-
}
|
|
982
|
-
segment_0 = tmp;
|
|
983
|
-
}
|
|
984
|
-
var updCellResult_0 = updateCellReceive($this, segment_0, i, r_0, cancellable);
|
|
985
|
-
if (updCellResult_0 === get_SUSPEND()) {
|
|
986
|
-
var tmp1_safe_receiver = (!(cancellable == null) ? isInterface(cancellable, Waiter()) : false) ? cancellable : null;
|
|
987
|
-
if (tmp1_safe_receiver == null)
|
|
988
|
-
null;
|
|
989
|
-
else {
|
|
990
|
-
prepareReceiverForSuspension($this, tmp1_safe_receiver, segment_0, i);
|
|
991
|
-
}
|
|
992
|
-
} else if (updCellResult_0 === get_FAILED()) {
|
|
993
|
-
if (r_0.a2($this.m2d()) < 0) {
|
|
994
|
-
segment_0.g2d();
|
|
995
|
-
}
|
|
996
|
-
continue $l$loop_0;
|
|
997
|
-
} else if (updCellResult_0 === get_SUSPEND_NO_WAITER()) {
|
|
998
|
-
// Inline function 'kotlin.error' call
|
|
999
|
-
var message = 'unexpected';
|
|
1000
|
-
throw IllegalStateException().o4(toString_0(message));
|
|
1001
|
-
} else {
|
|
1002
|
-
segment_0.g2d();
|
|
1003
|
-
var element = (updCellResult_0 == null ? true : !(updCellResult_0 == null)) ? updCellResult_0 : THROW_CCE();
|
|
1004
|
-
var tmp0_safe_receiver = $this.j2c_1;
|
|
1005
|
-
var onCancellation = tmp0_safe_receiver == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver);
|
|
1006
|
-
cancellable.k21(element, onCancellation);
|
|
1007
|
-
}
|
|
1008
|
-
break $l$block_0;
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
} else {
|
|
1012
|
-
segment.g2d();
|
|
1013
|
-
var element_0 = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
1014
|
-
var tmp0_safe_receiver_0 = $this.j2c_1;
|
|
1015
|
-
var onCancellation_0 = tmp0_safe_receiver_0 == null ? null : bindCancellationFun_0($this, tmp0_safe_receiver_0);
|
|
1016
|
-
cancellable.k21(element_0, onCancellation_0);
|
|
1017
|
-
}
|
|
1018
|
-
} catch ($p) {
|
|
1019
|
-
if ($p instanceof Error) {
|
|
1020
|
-
var e = $p;
|
|
1021
|
-
cancellable.i23();
|
|
1022
|
-
throw e;
|
|
1023
|
-
} else {
|
|
1024
|
-
throw $p;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
return cancellable.b20();
|
|
1028
|
-
}
|
|
1029
931
|
function prepareReceiverForSuspension($this, _this__u8e3s4, segment, index) {
|
|
1030
|
-
$this.
|
|
1031
|
-
_this__u8e3s4.
|
|
1032
|
-
}
|
|
1033
|
-
function onClosedReceiveOnNoWaiterSuspend($this, cont) {
|
|
1034
|
-
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1035
|
-
// Inline function 'kotlin.Companion.failure' call
|
|
1036
|
-
var exception = _get_receiveException__foorc1($this);
|
|
1037
|
-
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1038
|
-
cont.lc(tmp$ret$0);
|
|
932
|
+
$this.q17();
|
|
933
|
+
_this__u8e3s4.sz(segment, index);
|
|
1039
934
|
}
|
|
1040
935
|
function updateCellReceive($this, segment, index, r, waiter) {
|
|
1041
|
-
var state = segment.
|
|
936
|
+
var state = segment.x15(index);
|
|
1042
937
|
if (state === null) {
|
|
1043
938
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1044
|
-
var senders = $this.
|
|
1045
|
-
if (r
|
|
939
|
+
var senders = $this.d16_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
940
|
+
if (r >= senders) {
|
|
1046
941
|
if (waiter === null) {
|
|
1047
942
|
return get_SUSPEND_NO_WAITER();
|
|
1048
943
|
}
|
|
1049
|
-
if (segment.
|
|
944
|
+
if (segment.z15(index, state, waiter)) {
|
|
1050
945
|
expandBuffer($this);
|
|
1051
946
|
return get_SUSPEND();
|
|
1052
947
|
}
|
|
1053
948
|
}
|
|
1054
949
|
} else if (state === get_BUFFERED())
|
|
1055
|
-
if (segment.
|
|
950
|
+
if (segment.z15(index, state, get_DONE_RCV())) {
|
|
1056
951
|
expandBuffer($this);
|
|
1057
|
-
return segment.
|
|
952
|
+
return segment.v15(index);
|
|
1058
953
|
}
|
|
1059
954
|
return updateCellReceiveSlow($this, segment, index, r, waiter);
|
|
1060
955
|
}
|
|
1061
956
|
function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
1062
957
|
$l$loop: while (true) {
|
|
1063
|
-
var state = segment.
|
|
958
|
+
var state = segment.x15(index);
|
|
1064
959
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1065
960
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1066
|
-
var senders = $this.
|
|
1067
|
-
if (r
|
|
1068
|
-
if (segment.
|
|
961
|
+
var senders = $this.d16_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
962
|
+
if (r < senders) {
|
|
963
|
+
if (segment.z15(index, state, get_POISONED())) {
|
|
1069
964
|
expandBuffer($this);
|
|
1070
965
|
return get_FAILED();
|
|
1071
966
|
}
|
|
@@ -1073,15 +968,15 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
1073
968
|
if (waiter === null) {
|
|
1074
969
|
return get_SUSPEND_NO_WAITER();
|
|
1075
970
|
}
|
|
1076
|
-
if (segment.
|
|
971
|
+
if (segment.z15(index, state, waiter)) {
|
|
1077
972
|
expandBuffer($this);
|
|
1078
973
|
return get_SUSPEND();
|
|
1079
974
|
}
|
|
1080
975
|
}
|
|
1081
976
|
} else if (state === get_BUFFERED()) {
|
|
1082
|
-
if (segment.
|
|
977
|
+
if (segment.z15(index, state, get_DONE_RCV())) {
|
|
1083
978
|
expandBuffer($this);
|
|
1084
|
-
return segment.
|
|
979
|
+
return segment.v15(index);
|
|
1085
980
|
}
|
|
1086
981
|
} else if (state === get_INTERRUPTED_SEND())
|
|
1087
982
|
return get_FAILED();
|
|
@@ -1093,23 +988,23 @@ function updateCellReceiveSlow($this, segment, index, r, waiter) {
|
|
|
1093
988
|
} else if (state === get_RESUMING_BY_EB())
|
|
1094
989
|
continue $l$loop;
|
|
1095
990
|
else {
|
|
1096
|
-
if (segment.
|
|
991
|
+
if (segment.z15(index, state, get_RESUMING_BY_RCV())) {
|
|
1097
992
|
var helpExpandBuffer = state instanceof WaiterEB();
|
|
1098
993
|
var tmp;
|
|
1099
994
|
if (state instanceof WaiterEB()) {
|
|
1100
|
-
tmp = state.
|
|
995
|
+
tmp = state.k17_1;
|
|
1101
996
|
} else {
|
|
1102
997
|
tmp = state;
|
|
1103
998
|
}
|
|
1104
999
|
var sender = tmp;
|
|
1105
1000
|
var tmp_0;
|
|
1106
1001
|
if (tryResumeSender($this, sender, segment, index)) {
|
|
1107
|
-
segment.
|
|
1002
|
+
segment.y15(index, get_DONE_RCV());
|
|
1108
1003
|
expandBuffer($this);
|
|
1109
|
-
tmp_0 = segment.
|
|
1004
|
+
tmp_0 = segment.v15(index);
|
|
1110
1005
|
} else {
|
|
1111
|
-
segment.
|
|
1112
|
-
segment.
|
|
1006
|
+
segment.y15(index, get_INTERRUPTED_SEND());
|
|
1007
|
+
segment.n16(index, false);
|
|
1113
1008
|
if (helpExpandBuffer) {
|
|
1114
1009
|
expandBuffer($this);
|
|
1115
1010
|
}
|
|
@@ -1130,17 +1025,17 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1130
1025
|
if (isInterface(_this__u8e3s4, SelectInstance())) {
|
|
1131
1026
|
if (!(_this__u8e3s4 instanceof SelectImplementation()))
|
|
1132
1027
|
THROW_CCE();
|
|
1133
|
-
var trySelectResult = _this__u8e3s4.
|
|
1028
|
+
var trySelectResult = _this__u8e3s4.v17($this, Unit_instance);
|
|
1134
1029
|
if (trySelectResult === TrySelectDetailedResult_REREGISTER_getInstance()) {
|
|
1135
|
-
segment.
|
|
1030
|
+
segment.w15(index);
|
|
1136
1031
|
}
|
|
1137
1032
|
tmp = trySelectResult === TrySelectDetailedResult_SUCCESSFUL_getInstance();
|
|
1138
1033
|
} else {
|
|
1139
1034
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1140
|
-
tmp = tryResume0(_this__u8e3s4.
|
|
1035
|
+
tmp = tryResume0(_this__u8e3s4.r17_1, true);
|
|
1141
1036
|
} else {
|
|
1142
1037
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1143
|
-
throw IllegalStateException().
|
|
1038
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
1144
1039
|
}
|
|
1145
1040
|
}
|
|
1146
1041
|
}
|
|
@@ -1149,21 +1044,21 @@ function tryResumeSender($this, _this__u8e3s4, segment, index) {
|
|
|
1149
1044
|
function expandBuffer($this) {
|
|
1150
1045
|
if (_get_isRendezvousOrUnlimited__3mdufi($this))
|
|
1151
1046
|
return Unit_instance;
|
|
1152
|
-
var segment = $this.
|
|
1047
|
+
var segment = $this.j16_1.kotlinx$atomicfu$value;
|
|
1153
1048
|
try_again: while (true) {
|
|
1154
|
-
var b = $this.
|
|
1049
|
+
var b = $this.f16_1.atomicfu$getAndIncrement$long();
|
|
1155
1050
|
// Inline function 'kotlin.Long.div' call
|
|
1156
1051
|
var other = get_SEGMENT_SIZE();
|
|
1157
|
-
var id = b
|
|
1158
|
-
var s = $this.
|
|
1159
|
-
if (s
|
|
1160
|
-
if (segment.
|
|
1052
|
+
var id = divide(b, fromInt(other));
|
|
1053
|
+
var s = $this.f17();
|
|
1054
|
+
if (s <= b) {
|
|
1055
|
+
if (segment.ly_1 < id && !(segment.v16() == null)) {
|
|
1161
1056
|
moveSegmentBufferEndToSpecifiedOrLast($this, id, segment);
|
|
1162
1057
|
}
|
|
1163
1058
|
incCompletedExpandBufferAttempts$default($this);
|
|
1164
1059
|
return Unit_instance;
|
|
1165
1060
|
}
|
|
1166
|
-
if (!segment.
|
|
1061
|
+
if (!(segment.ly_1 === id)) {
|
|
1167
1062
|
var tmp0_elvis_lhs = findSegmentBufferEnd($this, id, segment, b);
|
|
1168
1063
|
var tmp;
|
|
1169
1064
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -1175,7 +1070,8 @@ function expandBuffer($this) {
|
|
|
1175
1070
|
}
|
|
1176
1071
|
// Inline function 'kotlin.Long.rem' call
|
|
1177
1072
|
var other_0 = get_SEGMENT_SIZE();
|
|
1178
|
-
var
|
|
1073
|
+
var tmp$ret$1 = modulo(b, fromInt(other_0));
|
|
1074
|
+
var i = convertToInt(tmp$ret$1);
|
|
1179
1075
|
if (updateCellExpandBuffer($this, segment, i, b)) {
|
|
1180
1076
|
incCompletedExpandBufferAttempts$default($this);
|
|
1181
1077
|
return Unit_instance;
|
|
@@ -1186,17 +1082,17 @@ function expandBuffer($this) {
|
|
|
1186
1082
|
}
|
|
1187
1083
|
}
|
|
1188
1084
|
function updateCellExpandBuffer($this, segment, index, b) {
|
|
1189
|
-
var state = segment.
|
|
1085
|
+
var state = segment.x15(index);
|
|
1190
1086
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1191
|
-
if (b
|
|
1192
|
-
if (segment.
|
|
1087
|
+
if (b >= $this.e16_1.kotlinx$atomicfu$value) {
|
|
1088
|
+
if (segment.z15(index, state, get_RESUMING_BY_EB())) {
|
|
1193
1089
|
var tmp;
|
|
1194
1090
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1195
|
-
segment.
|
|
1091
|
+
segment.y15(index, get_BUFFERED());
|
|
1196
1092
|
tmp = true;
|
|
1197
1093
|
} else {
|
|
1198
|
-
segment.
|
|
1199
|
-
segment.
|
|
1094
|
+
segment.y15(index, get_INTERRUPTED_SEND());
|
|
1095
|
+
segment.n16(index, false);
|
|
1200
1096
|
tmp = false;
|
|
1201
1097
|
}
|
|
1202
1098
|
return tmp;
|
|
@@ -1207,20 +1103,20 @@ function updateCellExpandBuffer($this, segment, index, b) {
|
|
|
1207
1103
|
}
|
|
1208
1104
|
function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
1209
1105
|
$l$loop: while (true) {
|
|
1210
|
-
var state = segment.
|
|
1106
|
+
var state = segment.x15(index);
|
|
1211
1107
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1212
|
-
if (b
|
|
1213
|
-
if (segment.
|
|
1108
|
+
if (b < $this.e16_1.kotlinx$atomicfu$value) {
|
|
1109
|
+
if (segment.z15(index, state, new (WaiterEB())(state)))
|
|
1214
1110
|
return true;
|
|
1215
1111
|
} else {
|
|
1216
|
-
if (segment.
|
|
1112
|
+
if (segment.z15(index, state, get_RESUMING_BY_EB())) {
|
|
1217
1113
|
var tmp;
|
|
1218
1114
|
if (tryResumeSender($this, state, segment, index)) {
|
|
1219
|
-
segment.
|
|
1115
|
+
segment.y15(index, get_BUFFERED());
|
|
1220
1116
|
tmp = true;
|
|
1221
1117
|
} else {
|
|
1222
|
-
segment.
|
|
1223
|
-
segment.
|
|
1118
|
+
segment.y15(index, get_INTERRUPTED_SEND());
|
|
1119
|
+
segment.n16(index, false);
|
|
1224
1120
|
tmp = false;
|
|
1225
1121
|
}
|
|
1226
1122
|
return tmp;
|
|
@@ -1231,7 +1127,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1231
1127
|
return false;
|
|
1232
1128
|
else {
|
|
1233
1129
|
if (state === null) {
|
|
1234
|
-
if (segment.
|
|
1130
|
+
if (segment.z15(index, state, get_IN_BUFFER()))
|
|
1235
1131
|
return true;
|
|
1236
1132
|
} else {
|
|
1237
1133
|
if (state === get_BUFFERED())
|
|
@@ -1248,7 +1144,7 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1248
1144
|
else {
|
|
1249
1145
|
// Inline function 'kotlin.error' call
|
|
1250
1146
|
var message = 'Unexpected cell state: ' + toString(state);
|
|
1251
|
-
throw IllegalStateException().
|
|
1147
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
1252
1148
|
}
|
|
1253
1149
|
}
|
|
1254
1150
|
}
|
|
@@ -1261,17 +1157,17 @@ function updateCellExpandBufferSlow($this, segment, index, b) {
|
|
|
1261
1157
|
function incCompletedExpandBufferAttempts($this, nAttempts) {
|
|
1262
1158
|
// Inline function 'kotlin.also' call
|
|
1263
1159
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1264
|
-
if (
|
|
1160
|
+
if (!(($this.g16_1.atomicfu$addAndGet$long(nAttempts) & 4611686018427387904n) === 0n)) {
|
|
1265
1161
|
$l$loop: while (true) {
|
|
1266
1162
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
1267
|
-
if (
|
|
1163
|
+
if (!!(($this.g16_1.kotlinx$atomicfu$value & 4611686018427387904n) === 0n)) {
|
|
1268
1164
|
break $l$loop;
|
|
1269
1165
|
}
|
|
1270
1166
|
}
|
|
1271
1167
|
}
|
|
1272
1168
|
}
|
|
1273
1169
|
function incCompletedExpandBufferAttempts$default($this, nAttempts, $super) {
|
|
1274
|
-
nAttempts = nAttempts === VOID ?
|
|
1170
|
+
nAttempts = nAttempts === VOID ? 1n : nAttempts;
|
|
1275
1171
|
return incCompletedExpandBufferAttempts($this, nAttempts);
|
|
1276
1172
|
}
|
|
1277
1173
|
var BufferedChannelIteratorClass;
|
|
@@ -1279,59 +1175,56 @@ function BufferedChannelIterator() {
|
|
|
1279
1175
|
if (BufferedChannelIteratorClass === VOID) {
|
|
1280
1176
|
class $ {
|
|
1281
1177
|
constructor($outer) {
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}
|
|
1292
|
-
n23(segment, index) {
|
|
1293
|
-
var tmp0_safe_receiver = this.j2d_1;
|
|
1178
|
+
this.d17_1 = $outer;
|
|
1179
|
+
this.b17_1 = get_NO_RECEIVE_RESULT();
|
|
1180
|
+
this.c17_1 = null;
|
|
1181
|
+
}
|
|
1182
|
+
w17($completion) {
|
|
1183
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_hasNext__q471nr.bind(VOID, this), $completion);
|
|
1184
|
+
}
|
|
1185
|
+
sz(segment, index) {
|
|
1186
|
+
var tmp0_safe_receiver = this.c17_1;
|
|
1294
1187
|
if (tmp0_safe_receiver == null)
|
|
1295
1188
|
null;
|
|
1296
1189
|
else {
|
|
1297
|
-
tmp0_safe_receiver.
|
|
1190
|
+
tmp0_safe_receiver.sz(segment, index);
|
|
1298
1191
|
}
|
|
1299
1192
|
}
|
|
1300
|
-
|
|
1301
|
-
var result = this.
|
|
1193
|
+
m1() {
|
|
1194
|
+
var result = this.b17_1;
|
|
1302
1195
|
// Inline function 'kotlin.check' call
|
|
1303
1196
|
if (!!(result === get_NO_RECEIVE_RESULT())) {
|
|
1304
1197
|
var message = '`hasNext()` has not been invoked';
|
|
1305
|
-
throw IllegalStateException().
|
|
1198
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
1306
1199
|
}
|
|
1307
|
-
this.
|
|
1200
|
+
this.b17_1 = get_NO_RECEIVE_RESULT();
|
|
1308
1201
|
if (result === get_CHANNEL_CLOSED())
|
|
1309
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.
|
|
1202
|
+
throw recoverStackTrace(_get_receiveException__foorc1(this.d17_1));
|
|
1310
1203
|
return (result == null ? true : !(result == null)) ? result : THROW_CCE();
|
|
1311
1204
|
}
|
|
1312
|
-
|
|
1313
|
-
var cont = ensureNotNull(this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
var tmp0_safe_receiver = this.
|
|
1317
|
-
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
var cont = ensureNotNull(this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
var cause = this.
|
|
1205
|
+
l17(element) {
|
|
1206
|
+
var cont = ensureNotNull(this.c17_1);
|
|
1207
|
+
this.c17_1 = null;
|
|
1208
|
+
this.b17_1 = element;
|
|
1209
|
+
var tmp0_safe_receiver = this.d17_1.c16_1;
|
|
1210
|
+
return tryResume0(cont, true, tmp0_safe_receiver == null ? null : bindCancellationFun(this.d17_1, tmp0_safe_receiver, element));
|
|
1211
|
+
}
|
|
1212
|
+
x17() {
|
|
1213
|
+
var cont = ensureNotNull(this.c17_1);
|
|
1214
|
+
this.c17_1 = null;
|
|
1215
|
+
this.b17_1 = get_CHANNEL_CLOSED();
|
|
1216
|
+
var cause = this.d17_1.g17();
|
|
1324
1217
|
if (cause == null) {
|
|
1325
1218
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1326
1219
|
// Inline function 'kotlin.Companion.success' call
|
|
1327
1220
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1328
|
-
cont.
|
|
1221
|
+
cont.bc(tmp$ret$0);
|
|
1329
1222
|
} else {
|
|
1330
1223
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1331
1224
|
// Inline function 'kotlin.Companion.failure' call
|
|
1332
1225
|
var exception = recoverStackTrace_0(cause, cont);
|
|
1333
1226
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1334
|
-
cont.
|
|
1227
|
+
cont.bc(tmp$ret$2);
|
|
1335
1228
|
}
|
|
1336
1229
|
}
|
|
1337
1230
|
}
|
|
@@ -1341,11 +1234,11 @@ function BufferedChannelIterator() {
|
|
|
1341
1234
|
return BufferedChannelIteratorClass;
|
|
1342
1235
|
}
|
|
1343
1236
|
function _get_receiveException__foorc1($this) {
|
|
1344
|
-
var tmp0_elvis_lhs = $this.
|
|
1345
|
-
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().
|
|
1237
|
+
var tmp0_elvis_lhs = $this.g17();
|
|
1238
|
+
return tmp0_elvis_lhs == null ? ClosedReceiveChannelException().c18('Channel was closed') : tmp0_elvis_lhs;
|
|
1346
1239
|
}
|
|
1347
1240
|
function invokeCloseHandler($this) {
|
|
1348
|
-
var tmp0 = $this.
|
|
1241
|
+
var tmp0 = $this.m16_1;
|
|
1349
1242
|
var tmp$ret$1;
|
|
1350
1243
|
$l$block: {
|
|
1351
1244
|
// Inline function 'kotlinx.atomicfu.getAndUpdate' call
|
|
@@ -1374,10 +1267,10 @@ function invokeCloseHandler($this) {
|
|
|
1374
1267
|
var closeHandler = tmp_0;
|
|
1375
1268
|
if (typeof closeHandler !== 'function')
|
|
1376
1269
|
THROW_CCE();
|
|
1377
|
-
closeHandler($this.
|
|
1270
|
+
closeHandler($this.g17());
|
|
1378
1271
|
}
|
|
1379
1272
|
function markClosed($this) {
|
|
1380
|
-
var tmp0 = $this.
|
|
1273
|
+
var tmp0 = $this.d16_1;
|
|
1381
1274
|
var tmp$ret$4;
|
|
1382
1275
|
$l$block: {
|
|
1383
1276
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1385,17 +1278,17 @@ function markClosed($this) {
|
|
|
1385
1278
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1386
1279
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1387
1280
|
var tmp;
|
|
1388
|
-
switch (cur
|
|
1281
|
+
switch (convertToInt(shiftRight(cur, 60))) {
|
|
1389
1282
|
case 0:
|
|
1390
1283
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1391
1284
|
|
|
1392
|
-
var tmp$ret$1 = cur
|
|
1285
|
+
var tmp$ret$1 = cur & 1152921504606846975n;
|
|
1393
1286
|
tmp = constructSendersAndCloseStatus(tmp$ret$1, 2);
|
|
1394
1287
|
break;
|
|
1395
1288
|
case 1:
|
|
1396
1289
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1397
1290
|
|
|
1398
|
-
var tmp$ret$2 = cur
|
|
1291
|
+
var tmp$ret$2 = cur & 1152921504606846975n;
|
|
1399
1292
|
tmp = constructSendersAndCloseStatus(tmp$ret$2, 3);
|
|
1400
1293
|
break;
|
|
1401
1294
|
default:
|
|
@@ -1412,14 +1305,14 @@ function markClosed($this) {
|
|
|
1412
1305
|
return tmp$ret$4;
|
|
1413
1306
|
}
|
|
1414
1307
|
function markCancelled($this) {
|
|
1415
|
-
var tmp0 = $this.
|
|
1308
|
+
var tmp0 = $this.d16_1;
|
|
1416
1309
|
var tmp$ret$2;
|
|
1417
1310
|
$l$block: {
|
|
1418
1311
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
1419
1312
|
while (true) {
|
|
1420
1313
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1421
1314
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1422
|
-
var tmp$ret$0 = cur
|
|
1315
|
+
var tmp$ret$0 = cur & 1152921504606846975n;
|
|
1423
1316
|
var upd = constructSendersAndCloseStatus(tmp$ret$0, 3);
|
|
1424
1317
|
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
1425
1318
|
tmp$ret$2 = Unit_instance;
|
|
@@ -1431,7 +1324,7 @@ function markCancelled($this) {
|
|
|
1431
1324
|
return tmp$ret$2;
|
|
1432
1325
|
}
|
|
1433
1326
|
function markCancellationStarted($this) {
|
|
1434
|
-
var tmp0 = $this.
|
|
1327
|
+
var tmp0 = $this.d16_1;
|
|
1435
1328
|
var tmp$ret$3;
|
|
1436
1329
|
$l$block: {
|
|
1437
1330
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
@@ -1439,9 +1332,9 @@ function markCancellationStarted($this) {
|
|
|
1439
1332
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1440
1333
|
var tmp;
|
|
1441
1334
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1442
|
-
if (cur
|
|
1335
|
+
if (convertToInt(shiftRight(cur, 60)) === 0) {
|
|
1443
1336
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1444
|
-
var tmp$ret$1 = cur
|
|
1337
|
+
var tmp$ret$1 = cur & 1152921504606846975n;
|
|
1445
1338
|
tmp = constructSendersAndCloseStatus(tmp$ret$1, 1);
|
|
1446
1339
|
} else {
|
|
1447
1340
|
return Unit_instance;
|
|
@@ -1457,14 +1350,14 @@ function markCancellationStarted($this) {
|
|
|
1457
1350
|
return tmp$ret$3;
|
|
1458
1351
|
}
|
|
1459
1352
|
function completeCloseOrCancel($this) {
|
|
1460
|
-
$this.
|
|
1353
|
+
$this.d18();
|
|
1461
1354
|
}
|
|
1462
1355
|
function completeClose($this, sendersCur) {
|
|
1463
1356
|
var lastSegment = closeLinkedList($this);
|
|
1464
|
-
if ($this.
|
|
1357
|
+
if ($this.f18()) {
|
|
1465
1358
|
var lastBufferedCellGlobalIndex = markAllEmptyCellsAsClosed($this, lastSegment);
|
|
1466
|
-
if (!lastBufferedCellGlobalIndex
|
|
1467
|
-
$this.
|
|
1359
|
+
if (!(lastBufferedCellGlobalIndex === -1n)) {
|
|
1360
|
+
$this.e18(lastBufferedCellGlobalIndex);
|
|
1468
1361
|
}
|
|
1469
1362
|
}
|
|
1470
1363
|
cancelSuspendedReceiveRequests($this, lastSegment, sendersCur);
|
|
@@ -1475,14 +1368,14 @@ function completeCancel($this, sendersCur) {
|
|
|
1475
1368
|
removeUnprocessedElements($this, lastSegment);
|
|
1476
1369
|
}
|
|
1477
1370
|
function closeLinkedList($this) {
|
|
1478
|
-
var lastSegment = $this.
|
|
1371
|
+
var lastSegment = $this.j16_1.kotlinx$atomicfu$value;
|
|
1479
1372
|
// Inline function 'kotlin.let' call
|
|
1480
|
-
var it = $this.
|
|
1481
|
-
if (it.
|
|
1373
|
+
var it = $this.h16_1.kotlinx$atomicfu$value;
|
|
1374
|
+
if (it.ly_1 > lastSegment.ly_1)
|
|
1482
1375
|
lastSegment = it;
|
|
1483
1376
|
// Inline function 'kotlin.let' call
|
|
1484
|
-
var it_0 = $this.
|
|
1485
|
-
if (it_0.
|
|
1377
|
+
var it_0 = $this.i16_1.kotlinx$atomicfu$value;
|
|
1378
|
+
if (it_0.ly_1 > lastSegment.ly_1)
|
|
1486
1379
|
lastSegment = it_0;
|
|
1487
1380
|
return close(lastSegment);
|
|
1488
1381
|
}
|
|
@@ -1494,18 +1387,19 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1494
1387
|
do {
|
|
1495
1388
|
var index = inductionVariable;
|
|
1496
1389
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1497
|
-
var tmp0 = segment.
|
|
1390
|
+
var tmp0 = segment.ly_1;
|
|
1498
1391
|
// Inline function 'kotlin.Long.times' call
|
|
1499
1392
|
var other = get_SEGMENT_SIZE();
|
|
1500
1393
|
// Inline function 'kotlin.Long.plus' call
|
|
1501
|
-
var
|
|
1502
|
-
|
|
1503
|
-
|
|
1394
|
+
var this_0 = multiply(tmp0, fromInt(other));
|
|
1395
|
+
var globalIndex = add(this_0, fromInt(index));
|
|
1396
|
+
if (globalIndex < $this.h17())
|
|
1397
|
+
return -1n;
|
|
1504
1398
|
cell_update: while (true) {
|
|
1505
|
-
var state = segment.
|
|
1399
|
+
var state = segment.x15(index);
|
|
1506
1400
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1507
|
-
if (segment.
|
|
1508
|
-
segment.
|
|
1401
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1402
|
+
segment.p16();
|
|
1509
1403
|
break cell_update;
|
|
1510
1404
|
}
|
|
1511
1405
|
} else if (state === get_BUFFERED())
|
|
@@ -1515,10 +1409,10 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1515
1409
|
}
|
|
1516
1410
|
}
|
|
1517
1411
|
while (0 <= inductionVariable);
|
|
1518
|
-
var tmp0_elvis_lhs = segment.
|
|
1412
|
+
var tmp0_elvis_lhs = segment.y16();
|
|
1519
1413
|
var tmp;
|
|
1520
1414
|
if (tmp0_elvis_lhs == null) {
|
|
1521
|
-
return
|
|
1415
|
+
return -1n;
|
|
1522
1416
|
} else {
|
|
1523
1417
|
tmp = tmp0_elvis_lhs;
|
|
1524
1418
|
}
|
|
@@ -1526,7 +1420,7 @@ function markAllEmptyCellsAsClosed($this, lastSegment) {
|
|
|
1526
1420
|
}
|
|
1527
1421
|
}
|
|
1528
1422
|
function removeUnprocessedElements($this, lastSegment) {
|
|
1529
|
-
var onUndeliveredElement = $this.
|
|
1423
|
+
var onUndeliveredElement = $this.c16_1;
|
|
1530
1424
|
var undeliveredElementException = null;
|
|
1531
1425
|
var suspendedSenders = _InlineList___init__impl__z8n56();
|
|
1532
1426
|
var segment = lastSegment;
|
|
@@ -1536,32 +1430,33 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1536
1430
|
do {
|
|
1537
1431
|
var index = inductionVariable;
|
|
1538
1432
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1539
|
-
var tmp0 = segment.
|
|
1433
|
+
var tmp0 = segment.ly_1;
|
|
1540
1434
|
// Inline function 'kotlin.Long.times' call
|
|
1541
1435
|
var other = get_SEGMENT_SIZE();
|
|
1542
1436
|
// Inline function 'kotlin.Long.plus' call
|
|
1543
|
-
var
|
|
1437
|
+
var this_0 = multiply(tmp0, fromInt(other));
|
|
1438
|
+
var globalIndex = add(this_0, fromInt(index));
|
|
1544
1439
|
update_cell: while (true) {
|
|
1545
|
-
var state = segment.
|
|
1440
|
+
var state = segment.x15(index);
|
|
1546
1441
|
if (state === get_DONE_RCV())
|
|
1547
1442
|
break process_segments;
|
|
1548
1443
|
else {
|
|
1549
1444
|
if (state === get_BUFFERED()) {
|
|
1550
|
-
if (globalIndex
|
|
1445
|
+
if (globalIndex < $this.h17())
|
|
1551
1446
|
break process_segments;
|
|
1552
|
-
if (segment.
|
|
1447
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1553
1448
|
if (!(onUndeliveredElement == null)) {
|
|
1554
|
-
var element = segment.
|
|
1449
|
+
var element = segment.u15(index);
|
|
1555
1450
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element, undeliveredElementException);
|
|
1556
1451
|
}
|
|
1557
|
-
segment.
|
|
1558
|
-
segment.
|
|
1452
|
+
segment.w15(index);
|
|
1453
|
+
segment.p16();
|
|
1559
1454
|
break update_cell;
|
|
1560
1455
|
}
|
|
1561
1456
|
} else {
|
|
1562
1457
|
if (state === get_IN_BUFFER() || state === null) {
|
|
1563
|
-
if (segment.
|
|
1564
|
-
segment.
|
|
1458
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1459
|
+
segment.p16();
|
|
1565
1460
|
break update_cell;
|
|
1566
1461
|
}
|
|
1567
1462
|
} else {
|
|
@@ -1572,23 +1467,23 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1572
1467
|
tmp = state instanceof WaiterEB();
|
|
1573
1468
|
}
|
|
1574
1469
|
if (tmp) {
|
|
1575
|
-
if (globalIndex
|
|
1470
|
+
if (globalIndex < $this.h17())
|
|
1576
1471
|
break process_segments;
|
|
1577
1472
|
var tmp_0;
|
|
1578
1473
|
if (state instanceof WaiterEB()) {
|
|
1579
|
-
tmp_0 = state.
|
|
1474
|
+
tmp_0 = state.k17_1;
|
|
1580
1475
|
} else {
|
|
1581
1476
|
tmp_0 = (!(state == null) ? isInterface(state, Waiter()) : false) ? state : THROW_CCE();
|
|
1582
1477
|
}
|
|
1583
1478
|
var sender = tmp_0;
|
|
1584
|
-
if (segment.
|
|
1479
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1585
1480
|
if (!(onUndeliveredElement == null)) {
|
|
1586
|
-
var element_0 = segment.
|
|
1481
|
+
var element_0 = segment.u15(index);
|
|
1587
1482
|
undeliveredElementException = callUndeliveredElementCatchingException(onUndeliveredElement, element_0, undeliveredElementException);
|
|
1588
1483
|
}
|
|
1589
1484
|
suspendedSenders = InlineList__plus_impl_nuetvo(suspendedSenders, sender);
|
|
1590
|
-
segment.
|
|
1591
|
-
segment.
|
|
1485
|
+
segment.w15(index);
|
|
1486
|
+
segment.p16();
|
|
1592
1487
|
break update_cell;
|
|
1593
1488
|
}
|
|
1594
1489
|
} else {
|
|
@@ -1608,7 +1503,7 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1608
1503
|
}
|
|
1609
1504
|
}
|
|
1610
1505
|
while (0 <= inductionVariable);
|
|
1611
|
-
var tmp0_elvis_lhs = segment.
|
|
1506
|
+
var tmp0_elvis_lhs = segment.y16();
|
|
1612
1507
|
var tmp_1;
|
|
1613
1508
|
if (tmp0_elvis_lhs == null) {
|
|
1614
1509
|
break process_segments;
|
|
@@ -1631,12 +1526,12 @@ function removeUnprocessedElements($this, lastSegment) {
|
|
|
1631
1526
|
} else {
|
|
1632
1527
|
var tmp_3 = access$_get_holder__kkflen(tmp0_0);
|
|
1633
1528
|
var list = tmp_3 instanceof ArrayList() ? tmp_3 : THROW_CCE();
|
|
1634
|
-
var inductionVariable_0 = list.
|
|
1529
|
+
var inductionVariable_0 = list.n1() - 1 | 0;
|
|
1635
1530
|
if (0 <= inductionVariable_0)
|
|
1636
1531
|
do {
|
|
1637
1532
|
var i = inductionVariable_0;
|
|
1638
1533
|
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
1639
|
-
var it_0 = list.
|
|
1534
|
+
var it_0 = list.o1(i);
|
|
1640
1535
|
resumeSenderOnCancelledChannel($this, it_0);
|
|
1641
1536
|
}
|
|
1642
1537
|
while (0 <= inductionVariable_0);
|
|
@@ -1660,31 +1555,32 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1660
1555
|
do {
|
|
1661
1556
|
var index = inductionVariable;
|
|
1662
1557
|
inductionVariable = inductionVariable + -1 | 0;
|
|
1663
|
-
var tmp0 = segment.
|
|
1558
|
+
var tmp0 = segment.ly_1;
|
|
1664
1559
|
// Inline function 'kotlin.Long.times' call
|
|
1665
1560
|
var other = get_SEGMENT_SIZE();
|
|
1666
1561
|
// Inline function 'kotlin.Long.plus' call
|
|
1667
|
-
|
|
1562
|
+
var this_0 = multiply(tmp0, fromInt(other));
|
|
1563
|
+
if (add(this_0, fromInt(index)) < sendersCounter)
|
|
1668
1564
|
break process_segments;
|
|
1669
1565
|
cell_update: while (true) {
|
|
1670
|
-
var state = segment.
|
|
1566
|
+
var state = segment.x15(index);
|
|
1671
1567
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1672
|
-
if (segment.
|
|
1673
|
-
segment.
|
|
1568
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1569
|
+
segment.p16();
|
|
1674
1570
|
break cell_update;
|
|
1675
1571
|
}
|
|
1676
1572
|
} else {
|
|
1677
1573
|
if (state instanceof WaiterEB()) {
|
|
1678
|
-
if (segment.
|
|
1679
|
-
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.
|
|
1680
|
-
segment.
|
|
1574
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1575
|
+
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state.k17_1);
|
|
1576
|
+
segment.n16(index, true);
|
|
1681
1577
|
break cell_update;
|
|
1682
1578
|
}
|
|
1683
1579
|
} else {
|
|
1684
1580
|
if (!(state == null) ? isInterface(state, Waiter()) : false) {
|
|
1685
|
-
if (segment.
|
|
1581
|
+
if (segment.z15(index, state, get_CHANNEL_CLOSED())) {
|
|
1686
1582
|
suspendedReceivers = InlineList__plus_impl_nuetvo(suspendedReceivers, state);
|
|
1687
|
-
segment.
|
|
1583
|
+
segment.n16(index, true);
|
|
1688
1584
|
break cell_update;
|
|
1689
1585
|
}
|
|
1690
1586
|
} else {
|
|
@@ -1695,7 +1591,7 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1695
1591
|
}
|
|
1696
1592
|
}
|
|
1697
1593
|
while (0 <= inductionVariable);
|
|
1698
|
-
segment = segment.
|
|
1594
|
+
segment = segment.y16();
|
|
1699
1595
|
}
|
|
1700
1596
|
var tmp0_0 = suspendedReceivers;
|
|
1701
1597
|
$l$block: {
|
|
@@ -1711,12 +1607,12 @@ function cancelSuspendedReceiveRequests($this, lastSegment, sendersCounter) {
|
|
|
1711
1607
|
} else {
|
|
1712
1608
|
var tmp_0 = access$_get_holder__kkflen(tmp0_0);
|
|
1713
1609
|
var list = tmp_0 instanceof ArrayList() ? tmp_0 : THROW_CCE();
|
|
1714
|
-
var inductionVariable_0 = list.
|
|
1610
|
+
var inductionVariable_0 = list.n1() - 1 | 0;
|
|
1715
1611
|
if (0 <= inductionVariable_0)
|
|
1716
1612
|
do {
|
|
1717
1613
|
var i = inductionVariable_0;
|
|
1718
1614
|
inductionVariable_0 = inductionVariable_0 + -1 | 0;
|
|
1719
|
-
var it_0 = list.
|
|
1615
|
+
var it_0 = list.o1(i);
|
|
1720
1616
|
resumeReceiverOnClosedChannel($this, it_0);
|
|
1721
1617
|
}
|
|
1722
1618
|
while (0 <= inductionVariable_0);
|
|
@@ -1733,35 +1629,35 @@ function resumeSenderOnCancelledChannel($this, _this__u8e3s4) {
|
|
|
1733
1629
|
function resumeWaiterOnClosedChannel($this, _this__u8e3s4, receiver) {
|
|
1734
1630
|
if (_this__u8e3s4 instanceof SendBroadcast()) {
|
|
1735
1631
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1736
|
-
var this_0 = _this__u8e3s4.
|
|
1632
|
+
var this_0 = _this__u8e3s4.r17_1;
|
|
1737
1633
|
// Inline function 'kotlin.Companion.success' call
|
|
1738
1634
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(false);
|
|
1739
|
-
this_0.
|
|
1635
|
+
this_0.bc(tmp$ret$0);
|
|
1740
1636
|
} else {
|
|
1741
1637
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
1742
1638
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1743
1639
|
// Inline function 'kotlin.Companion.failure' call
|
|
1744
|
-
var exception = receiver ? _get_receiveException__foorc1($this) : $this.
|
|
1640
|
+
var exception = receiver ? _get_receiveException__foorc1($this) : $this.i17();
|
|
1745
1641
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1746
|
-
_this__u8e3s4.
|
|
1642
|
+
_this__u8e3s4.bc(tmp$ret$2);
|
|
1747
1643
|
} else {
|
|
1748
1644
|
if (_this__u8e3s4 instanceof ReceiveCatching()) {
|
|
1749
|
-
var tmp0 = _this__u8e3s4.
|
|
1645
|
+
var tmp0 = _this__u8e3s4.o17_1;
|
|
1750
1646
|
// Inline function 'kotlin.coroutines.resume' call
|
|
1751
1647
|
// Inline function 'kotlin.Companion.success' call
|
|
1752
|
-
var value = new (ChannelResult())(Companion_getInstance().
|
|
1648
|
+
var value = new (ChannelResult())(Companion_getInstance().g18($this.g17()));
|
|
1753
1649
|
var tmp$ret$4 = _Result___init__impl__xyqfz8(value);
|
|
1754
|
-
tmp0.
|
|
1650
|
+
tmp0.bc(tmp$ret$4);
|
|
1755
1651
|
} else {
|
|
1756
1652
|
if (_this__u8e3s4 instanceof BufferedChannelIterator()) {
|
|
1757
|
-
_this__u8e3s4.
|
|
1653
|
+
_this__u8e3s4.x17();
|
|
1758
1654
|
} else {
|
|
1759
1655
|
if (isInterface(_this__u8e3s4, SelectInstance()))
|
|
1760
|
-
_this__u8e3s4.
|
|
1656
|
+
_this__u8e3s4.p17($this, get_CHANNEL_CLOSED());
|
|
1761
1657
|
else {
|
|
1762
1658
|
// Inline function 'kotlin.error' call
|
|
1763
1659
|
var message = 'Unexpected waiter: ' + toString_0(_this__u8e3s4);
|
|
1764
|
-
throw IllegalStateException().
|
|
1660
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
1765
1661
|
}
|
|
1766
1662
|
}
|
|
1767
1663
|
}
|
|
@@ -1777,7 +1673,7 @@ function _get_isClosedForReceive0__f7qknl($this, _this__u8e3s4) {
|
|
|
1777
1673
|
function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
1778
1674
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1779
1675
|
var tmp;
|
|
1780
|
-
switch (sendersAndCloseStatusCur
|
|
1676
|
+
switch (convertToInt(shiftRight(sendersAndCloseStatusCur, 60))) {
|
|
1781
1677
|
case 0:
|
|
1782
1678
|
tmp = false;
|
|
1783
1679
|
break;
|
|
@@ -1787,30 +1683,30 @@ function isClosed($this, sendersAndCloseStatusCur, isClosedForReceive) {
|
|
|
1787
1683
|
case 2:
|
|
1788
1684
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1789
1685
|
|
|
1790
|
-
var tmp$ret$1 = sendersAndCloseStatusCur
|
|
1686
|
+
var tmp$ret$1 = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
1791
1687
|
completeClose($this, tmp$ret$1);
|
|
1792
|
-
tmp = isClosedForReceive ? !$this.
|
|
1688
|
+
tmp = isClosedForReceive ? !$this.h18() : true;
|
|
1793
1689
|
break;
|
|
1794
1690
|
case 3:
|
|
1795
1691
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
1796
1692
|
|
|
1797
|
-
var tmp$ret$2 = sendersAndCloseStatusCur
|
|
1693
|
+
var tmp$ret$2 = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
1798
1694
|
completeCancel($this, tmp$ret$2);
|
|
1799
1695
|
tmp = true;
|
|
1800
1696
|
break;
|
|
1801
1697
|
default:
|
|
1802
1698
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
1803
1699
|
|
|
1804
|
-
var message = 'unexpected close status: ' + sendersAndCloseStatusCur
|
|
1805
|
-
throw IllegalStateException().
|
|
1700
|
+
var message = 'unexpected close status: ' + convertToInt(shiftRight(sendersAndCloseStatusCur, 60));
|
|
1701
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
1806
1702
|
}
|
|
1807
1703
|
return tmp;
|
|
1808
1704
|
}
|
|
1809
1705
|
function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
1810
1706
|
while (true) {
|
|
1811
|
-
var state = segment.
|
|
1707
|
+
var state = segment.x15(index);
|
|
1812
1708
|
if (state === null || state === get_IN_BUFFER()) {
|
|
1813
|
-
if (segment.
|
|
1709
|
+
if (segment.z15(index, state, get_POISONED())) {
|
|
1814
1710
|
expandBuffer($this);
|
|
1815
1711
|
return false;
|
|
1816
1712
|
}
|
|
@@ -1829,11 +1725,11 @@ function isCellNonEmpty($this, segment, index, globalIndex) {
|
|
|
1829
1725
|
else if (state === get_RESUMING_BY_RCV())
|
|
1830
1726
|
return false;
|
|
1831
1727
|
else
|
|
1832
|
-
return globalIndex
|
|
1728
|
+
return globalIndex === $this.h17();
|
|
1833
1729
|
}
|
|
1834
1730
|
}
|
|
1835
1731
|
function findSegmentSend($this, id, startFrom) {
|
|
1836
|
-
var tmp0 = $this.
|
|
1732
|
+
var tmp0 = $this.h16_1;
|
|
1837
1733
|
var tmp6 = createSegmentFunction();
|
|
1838
1734
|
var tmp$ret$2;
|
|
1839
1735
|
$l$block_2: {
|
|
@@ -1850,23 +1746,23 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1850
1746
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1851
1747
|
while (true) {
|
|
1852
1748
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1853
|
-
if (cur.
|
|
1749
|
+
if (cur.ly_1 >= tmp2.ly_1) {
|
|
1854
1750
|
tmp$ret$0 = true;
|
|
1855
1751
|
break $l$block_1;
|
|
1856
1752
|
}
|
|
1857
|
-
if (!tmp2.
|
|
1753
|
+
if (!tmp2.r16()) {
|
|
1858
1754
|
tmp$ret$0 = false;
|
|
1859
1755
|
break $l$block_1;
|
|
1860
1756
|
}
|
|
1861
1757
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1862
|
-
if (cur.
|
|
1863
|
-
cur.
|
|
1758
|
+
if (cur.s16()) {
|
|
1759
|
+
cur.f6();
|
|
1864
1760
|
}
|
|
1865
1761
|
tmp$ret$0 = true;
|
|
1866
1762
|
break $l$block_1;
|
|
1867
1763
|
}
|
|
1868
|
-
if (tmp2.
|
|
1869
|
-
tmp2.
|
|
1764
|
+
if (tmp2.s16()) {
|
|
1765
|
+
tmp2.f6();
|
|
1870
1766
|
}
|
|
1871
1767
|
}
|
|
1872
1768
|
tmp$ret$0 = Unit_instance;
|
|
@@ -1884,27 +1780,27 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1884
1780
|
var tmp_0;
|
|
1885
1781
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1886
1782
|
completeCloseOrCancel($this);
|
|
1887
|
-
var tmp0_0 = startFrom.
|
|
1783
|
+
var tmp0_0 = startFrom.ly_1;
|
|
1888
1784
|
// Inline function 'kotlin.Long.times' call
|
|
1889
1785
|
var other = get_SEGMENT_SIZE();
|
|
1890
|
-
if (tmp0_0
|
|
1891
|
-
startFrom.
|
|
1786
|
+
if (multiply(tmp0_0, fromInt(other)) < $this.h17()) {
|
|
1787
|
+
startFrom.z16();
|
|
1892
1788
|
}
|
|
1893
1789
|
tmp_0 = null;
|
|
1894
1790
|
} else {
|
|
1895
1791
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
1896
1792
|
var tmp_1;
|
|
1897
|
-
if (segment.
|
|
1898
|
-
var tmp0_1 = segment.
|
|
1793
|
+
if (segment.ly_1 > id) {
|
|
1794
|
+
var tmp0_1 = segment.ly_1;
|
|
1899
1795
|
// Inline function 'kotlin.Long.times' call
|
|
1900
1796
|
var other_0 = get_SEGMENT_SIZE();
|
|
1901
|
-
var tmp$ret$4 = tmp0_1
|
|
1797
|
+
var tmp$ret$4 = multiply(tmp0_1, fromInt(other_0));
|
|
1902
1798
|
updateSendersCounterIfLower($this, tmp$ret$4);
|
|
1903
|
-
var tmp0_2 = segment.
|
|
1799
|
+
var tmp0_2 = segment.ly_1;
|
|
1904
1800
|
// Inline function 'kotlin.Long.times' call
|
|
1905
1801
|
var other_1 = get_SEGMENT_SIZE();
|
|
1906
|
-
if (tmp0_2
|
|
1907
|
-
segment.
|
|
1802
|
+
if (multiply(tmp0_2, fromInt(other_1)) < $this.h17()) {
|
|
1803
|
+
segment.z16();
|
|
1908
1804
|
}
|
|
1909
1805
|
tmp_1 = null;
|
|
1910
1806
|
} else {
|
|
@@ -1916,7 +1812,7 @@ function findSegmentSend($this, id, startFrom) {
|
|
|
1916
1812
|
return tmp_0;
|
|
1917
1813
|
}
|
|
1918
1814
|
function findSegmentReceive($this, id, startFrom) {
|
|
1919
|
-
var tmp0 = $this.
|
|
1815
|
+
var tmp0 = $this.i16_1;
|
|
1920
1816
|
var tmp6 = createSegmentFunction();
|
|
1921
1817
|
var tmp$ret$2;
|
|
1922
1818
|
$l$block_2: {
|
|
@@ -1933,23 +1829,23 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1933
1829
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1934
1830
|
while (true) {
|
|
1935
1831
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
1936
|
-
if (cur.
|
|
1832
|
+
if (cur.ly_1 >= tmp2.ly_1) {
|
|
1937
1833
|
tmp$ret$0 = true;
|
|
1938
1834
|
break $l$block_1;
|
|
1939
1835
|
}
|
|
1940
|
-
if (!tmp2.
|
|
1836
|
+
if (!tmp2.r16()) {
|
|
1941
1837
|
tmp$ret$0 = false;
|
|
1942
1838
|
break $l$block_1;
|
|
1943
1839
|
}
|
|
1944
1840
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
1945
|
-
if (cur.
|
|
1946
|
-
cur.
|
|
1841
|
+
if (cur.s16()) {
|
|
1842
|
+
cur.f6();
|
|
1947
1843
|
}
|
|
1948
1844
|
tmp$ret$0 = true;
|
|
1949
1845
|
break $l$block_1;
|
|
1950
1846
|
}
|
|
1951
|
-
if (tmp2.
|
|
1952
|
-
tmp2.
|
|
1847
|
+
if (tmp2.s16()) {
|
|
1848
|
+
tmp2.f6();
|
|
1953
1849
|
}
|
|
1954
1850
|
}
|
|
1955
1851
|
tmp$ret$0 = Unit_instance;
|
|
@@ -1967,11 +1863,11 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1967
1863
|
var tmp_0;
|
|
1968
1864
|
if (_SegmentOrClosed___get_isClosed__impl__qmxmlo(it)) {
|
|
1969
1865
|
completeCloseOrCancel($this);
|
|
1970
|
-
var tmp0_0 = startFrom.
|
|
1866
|
+
var tmp0_0 = startFrom.ly_1;
|
|
1971
1867
|
// Inline function 'kotlin.Long.times' call
|
|
1972
1868
|
var other = get_SEGMENT_SIZE();
|
|
1973
|
-
if (tmp0_0
|
|
1974
|
-
startFrom.
|
|
1869
|
+
if (multiply(tmp0_0, fromInt(other)) < $this.f17()) {
|
|
1870
|
+
startFrom.z16();
|
|
1975
1871
|
}
|
|
1976
1872
|
tmp_0 = null;
|
|
1977
1873
|
} else {
|
|
@@ -1981,47 +1877,46 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
1981
1877
|
var tmp0_1 = _get_bufferEndCounter__2d4hee($this);
|
|
1982
1878
|
// Inline function 'kotlin.Long.div' call
|
|
1983
1879
|
var other_0 = get_SEGMENT_SIZE();
|
|
1984
|
-
|
|
1985
|
-
tmp_1 = id.a2(tmp$ret$4) <= 0;
|
|
1880
|
+
tmp_1 = id <= divide(tmp0_1, fromInt(other_0));
|
|
1986
1881
|
} else {
|
|
1987
1882
|
tmp_1 = false;
|
|
1988
1883
|
}
|
|
1989
1884
|
if (tmp_1) {
|
|
1990
|
-
var tmp0_2 = $this.
|
|
1885
|
+
var tmp0_2 = $this.j16_1;
|
|
1991
1886
|
$l$block_5: {
|
|
1992
1887
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
1993
1888
|
while (true) {
|
|
1994
1889
|
var cur_0 = tmp0_2.kotlinx$atomicfu$value;
|
|
1995
|
-
if (cur_0.
|
|
1890
|
+
if (cur_0.ly_1 >= segment.ly_1) {
|
|
1996
1891
|
break $l$block_5;
|
|
1997
1892
|
}
|
|
1998
|
-
if (!segment.
|
|
1893
|
+
if (!segment.r16()) {
|
|
1999
1894
|
break $l$block_5;
|
|
2000
1895
|
}
|
|
2001
1896
|
if (tmp0_2.atomicfu$compareAndSet(cur_0, segment)) {
|
|
2002
|
-
if (cur_0.
|
|
2003
|
-
cur_0.
|
|
1897
|
+
if (cur_0.s16()) {
|
|
1898
|
+
cur_0.f6();
|
|
2004
1899
|
}
|
|
2005
1900
|
break $l$block_5;
|
|
2006
1901
|
}
|
|
2007
|
-
if (segment.
|
|
2008
|
-
segment.
|
|
1902
|
+
if (segment.s16()) {
|
|
1903
|
+
segment.f6();
|
|
2009
1904
|
}
|
|
2010
1905
|
}
|
|
2011
1906
|
}
|
|
2012
1907
|
}
|
|
2013
1908
|
var tmp_2;
|
|
2014
|
-
if (segment.
|
|
2015
|
-
var tmp0_3 = segment.
|
|
1909
|
+
if (segment.ly_1 > id) {
|
|
1910
|
+
var tmp0_3 = segment.ly_1;
|
|
2016
1911
|
// Inline function 'kotlin.Long.times' call
|
|
2017
1912
|
var other_1 = get_SEGMENT_SIZE();
|
|
2018
|
-
var tmp$ret$7 = tmp0_3
|
|
1913
|
+
var tmp$ret$7 = multiply(tmp0_3, fromInt(other_1));
|
|
2019
1914
|
updateReceiversCounterIfLower($this, tmp$ret$7);
|
|
2020
|
-
var tmp0_4 = segment.
|
|
1915
|
+
var tmp0_4 = segment.ly_1;
|
|
2021
1916
|
// Inline function 'kotlin.Long.times' call
|
|
2022
1917
|
var other_2 = get_SEGMENT_SIZE();
|
|
2023
|
-
if (tmp0_4
|
|
2024
|
-
segment.
|
|
1918
|
+
if (multiply(tmp0_4, fromInt(other_2)) < $this.f17()) {
|
|
1919
|
+
segment.z16();
|
|
2025
1920
|
}
|
|
2026
1921
|
tmp_2 = null;
|
|
2027
1922
|
} else {
|
|
@@ -2033,7 +1928,7 @@ function findSegmentReceive($this, id, startFrom) {
|
|
|
2033
1928
|
return tmp_0;
|
|
2034
1929
|
}
|
|
2035
1930
|
function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
2036
|
-
var tmp0 = $this.
|
|
1931
|
+
var tmp0 = $this.j16_1;
|
|
2037
1932
|
var tmp6 = createSegmentFunction();
|
|
2038
1933
|
var tmp$ret$2;
|
|
2039
1934
|
$l$block_2: {
|
|
@@ -2050,23 +1945,23 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2050
1945
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2051
1946
|
while (true) {
|
|
2052
1947
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2053
|
-
if (cur.
|
|
1948
|
+
if (cur.ly_1 >= tmp2.ly_1) {
|
|
2054
1949
|
tmp$ret$0 = true;
|
|
2055
1950
|
break $l$block_1;
|
|
2056
1951
|
}
|
|
2057
|
-
if (!tmp2.
|
|
1952
|
+
if (!tmp2.r16()) {
|
|
2058
1953
|
tmp$ret$0 = false;
|
|
2059
1954
|
break $l$block_1;
|
|
2060
1955
|
}
|
|
2061
1956
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2062
|
-
if (cur.
|
|
2063
|
-
cur.
|
|
1957
|
+
if (cur.s16()) {
|
|
1958
|
+
cur.f6();
|
|
2064
1959
|
}
|
|
2065
1960
|
tmp$ret$0 = true;
|
|
2066
1961
|
break $l$block_1;
|
|
2067
1962
|
}
|
|
2068
|
-
if (tmp2.
|
|
2069
|
-
tmp2.
|
|
1963
|
+
if (tmp2.s16()) {
|
|
1964
|
+
tmp2.f6();
|
|
2070
1965
|
}
|
|
2071
1966
|
}
|
|
2072
1967
|
tmp$ret$0 = Unit_instance;
|
|
@@ -2090,19 +1985,19 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2090
1985
|
} else {
|
|
2091
1986
|
var segment = _SegmentOrClosed___get_segment__impl__jvcr9l(it);
|
|
2092
1987
|
var tmp_1;
|
|
2093
|
-
if (segment.
|
|
1988
|
+
if (segment.ly_1 > id) {
|
|
2094
1989
|
// Inline function 'kotlin.Long.plus' call
|
|
2095
|
-
var tmp_2 = currentBufferEndCounter
|
|
2096
|
-
var tmp0_0 = segment.
|
|
1990
|
+
var tmp_2 = add(currentBufferEndCounter, fromInt(1));
|
|
1991
|
+
var tmp0_0 = segment.ly_1;
|
|
2097
1992
|
// Inline function 'kotlin.Long.times' call
|
|
2098
1993
|
var other = get_SEGMENT_SIZE();
|
|
2099
|
-
var tmp$ret$4 = tmp0_0
|
|
2100
|
-
if ($this.
|
|
2101
|
-
var tmp0_1 = segment.
|
|
1994
|
+
var tmp$ret$4 = multiply(tmp0_0, fromInt(other));
|
|
1995
|
+
if ($this.f16_1.atomicfu$compareAndSet(tmp_2, tmp$ret$4)) {
|
|
1996
|
+
var tmp0_1 = segment.ly_1;
|
|
2102
1997
|
// Inline function 'kotlin.Long.times' call
|
|
2103
1998
|
var other_0 = get_SEGMENT_SIZE();
|
|
2104
|
-
var tmp$ret$5 = tmp0_1
|
|
2105
|
-
incCompletedExpandBufferAttempts($this, tmp$ret$5
|
|
1999
|
+
var tmp$ret$5 = multiply(tmp0_1, fromInt(other_0));
|
|
2000
|
+
incCompletedExpandBufferAttempts($this, subtract(tmp$ret$5, currentBufferEndCounter));
|
|
2106
2001
|
} else {
|
|
2107
2002
|
incCompletedExpandBufferAttempts$default($this);
|
|
2108
2003
|
}
|
|
@@ -2117,8 +2012,8 @@ function findSegmentBufferEnd($this, id, startFrom, currentBufferEndCounter) {
|
|
|
2117
2012
|
}
|
|
2118
2013
|
function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
2119
2014
|
var segment = startFrom;
|
|
2120
|
-
$l$loop: while (segment.
|
|
2121
|
-
var tmp0_elvis_lhs = segment.
|
|
2015
|
+
$l$loop: while (segment.ly_1 < id) {
|
|
2016
|
+
var tmp0_elvis_lhs = segment.v16();
|
|
2122
2017
|
var tmp;
|
|
2123
2018
|
if (tmp0_elvis_lhs == null) {
|
|
2124
2019
|
break $l$loop;
|
|
@@ -2128,8 +2023,8 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2128
2023
|
segment = tmp;
|
|
2129
2024
|
}
|
|
2130
2025
|
while (true) {
|
|
2131
|
-
$l$loop_0: while (segment.
|
|
2132
|
-
var tmp1_elvis_lhs = segment.
|
|
2026
|
+
$l$loop_0: while (segment.q16()) {
|
|
2027
|
+
var tmp1_elvis_lhs = segment.v16();
|
|
2133
2028
|
var tmp_0;
|
|
2134
2029
|
if (tmp1_elvis_lhs == null) {
|
|
2135
2030
|
break $l$loop_0;
|
|
@@ -2138,30 +2033,30 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2138
2033
|
}
|
|
2139
2034
|
segment = tmp_0;
|
|
2140
2035
|
}
|
|
2141
|
-
var tmp0 = $this.
|
|
2036
|
+
var tmp0 = $this.j16_1;
|
|
2142
2037
|
var tmp2 = segment;
|
|
2143
2038
|
var tmp$ret$0;
|
|
2144
2039
|
$l$block_1: {
|
|
2145
2040
|
// Inline function 'kotlinx.coroutines.internal.moveForward' call
|
|
2146
2041
|
while (true) {
|
|
2147
2042
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
2148
|
-
if (cur.
|
|
2043
|
+
if (cur.ly_1 >= tmp2.ly_1) {
|
|
2149
2044
|
tmp$ret$0 = true;
|
|
2150
2045
|
break $l$block_1;
|
|
2151
2046
|
}
|
|
2152
|
-
if (!tmp2.
|
|
2047
|
+
if (!tmp2.r16()) {
|
|
2153
2048
|
tmp$ret$0 = false;
|
|
2154
2049
|
break $l$block_1;
|
|
2155
2050
|
}
|
|
2156
2051
|
if (tmp0.atomicfu$compareAndSet(cur, tmp2)) {
|
|
2157
|
-
if (cur.
|
|
2158
|
-
cur.
|
|
2052
|
+
if (cur.s16()) {
|
|
2053
|
+
cur.f6();
|
|
2159
2054
|
}
|
|
2160
2055
|
tmp$ret$0 = true;
|
|
2161
2056
|
break $l$block_1;
|
|
2162
2057
|
}
|
|
2163
|
-
if (tmp2.
|
|
2164
|
-
tmp2.
|
|
2058
|
+
if (tmp2.s16()) {
|
|
2059
|
+
tmp2.f6();
|
|
2165
2060
|
}
|
|
2166
2061
|
}
|
|
2167
2062
|
tmp$ret$0 = Unit_instance;
|
|
@@ -2171,28 +2066,28 @@ function moveSegmentBufferEndToSpecifiedOrLast($this, id, startFrom) {
|
|
|
2171
2066
|
}
|
|
2172
2067
|
}
|
|
2173
2068
|
function updateSendersCounterIfLower($this, value) {
|
|
2174
|
-
var this_0 = $this.
|
|
2069
|
+
var this_0 = $this.d16_1;
|
|
2175
2070
|
while (true) {
|
|
2176
2071
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2177
2072
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2178
|
-
var curCounter = cur
|
|
2179
|
-
if (curCounter
|
|
2073
|
+
var curCounter = cur & 1152921504606846975n;
|
|
2074
|
+
if (curCounter >= value)
|
|
2180
2075
|
return Unit_instance;
|
|
2181
2076
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
2182
|
-
var tmp$ret$1 = cur
|
|
2077
|
+
var tmp$ret$1 = convertToInt(shiftRight(cur, 60));
|
|
2183
2078
|
var update = constructSendersAndCloseStatus(curCounter, tmp$ret$1);
|
|
2184
|
-
if ($this.
|
|
2079
|
+
if ($this.d16_1.atomicfu$compareAndSet(cur, update))
|
|
2185
2080
|
return Unit_instance;
|
|
2186
2081
|
}
|
|
2187
2082
|
return Unit_instance;
|
|
2188
2083
|
}
|
|
2189
2084
|
function updateReceiversCounterIfLower($this, value) {
|
|
2190
|
-
var this_0 = $this.
|
|
2085
|
+
var this_0 = $this.e16_1;
|
|
2191
2086
|
while (true) {
|
|
2192
2087
|
var cur = this_0.kotlinx$atomicfu$value;
|
|
2193
|
-
if (cur
|
|
2088
|
+
if (cur >= value)
|
|
2194
2089
|
return Unit_instance;
|
|
2195
|
-
if ($this.
|
|
2090
|
+
if ($this.e16_1.atomicfu$compareAndSet(cur, value))
|
|
2196
2091
|
return Unit_instance;
|
|
2197
2092
|
}
|
|
2198
2093
|
return Unit_instance;
|
|
@@ -2201,7 +2096,7 @@ function bindCancellationFunResult($this, _this__u8e3s4) {
|
|
|
2201
2096
|
return BufferedChannel$onCancellationChannelResultImplDoNotCall$ref($this);
|
|
2202
2097
|
}
|
|
2203
2098
|
function onCancellationChannelResultImplDoNotCall($this, cause, element, context) {
|
|
2204
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2099
|
+
callUndeliveredElement(ensureNotNull($this.c16_1), ensureNotNull(ChannelResult__getOrNull_impl_f5e07h(element)), context);
|
|
2205
2100
|
}
|
|
2206
2101
|
function bindCancellationFun($this, _this__u8e3s4, element) {
|
|
2207
2102
|
return BufferedChannel$bindCancellationFun$lambda(_this__u8e3s4, element);
|
|
@@ -2210,40 +2105,38 @@ function bindCancellationFun_0($this, _this__u8e3s4) {
|
|
|
2210
2105
|
return BufferedChannel$onCancellationImplDoNotCall$ref($this);
|
|
2211
2106
|
}
|
|
2212
2107
|
function onCancellationImplDoNotCall($this, cause, element, context) {
|
|
2213
|
-
callUndeliveredElement(ensureNotNull($this.
|
|
2108
|
+
callUndeliveredElement(ensureNotNull($this.c16_1), element, context);
|
|
2214
2109
|
}
|
|
2215
2110
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda($element, this$0, $select) {
|
|
2216
|
-
return
|
|
2111
|
+
return (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) => {
|
|
2217
2112
|
var tmp;
|
|
2218
2113
|
if (!($element === get_CHANNEL_CLOSED())) {
|
|
2219
|
-
callUndeliveredElement(this$0.
|
|
2114
|
+
callUndeliveredElement(this$0.c16_1, ($element == null ? true : !($element == null)) ? $element : THROW_CCE(), $select.zb());
|
|
2220
2115
|
tmp = Unit_instance;
|
|
2221
2116
|
}
|
|
2222
2117
|
return Unit_instance;
|
|
2223
2118
|
};
|
|
2224
2119
|
}
|
|
2225
2120
|
function BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this$0) {
|
|
2226
|
-
return
|
|
2227
|
-
return BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda(element, this$0, select);
|
|
2228
|
-
};
|
|
2121
|
+
return (select, _unused_var__etf5q3, element) => BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda$lambda(element, this$0, select);
|
|
2229
2122
|
}
|
|
2230
2123
|
function BufferedChannel$onCancellationChannelResultImplDoNotCall$ref(p0) {
|
|
2231
|
-
var l =
|
|
2124
|
+
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2232
2125
|
var tmp0 = p0;
|
|
2233
|
-
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.
|
|
2126
|
+
onCancellationChannelResultImplDoNotCall(tmp0, _this__u8e3s4, p0_0.j18_1, p1);
|
|
2234
2127
|
return Unit_instance;
|
|
2235
2128
|
};
|
|
2236
2129
|
l.callableName = 'onCancellationChannelResultImplDoNotCall';
|
|
2237
2130
|
return l;
|
|
2238
2131
|
}
|
|
2239
2132
|
function BufferedChannel$bindCancellationFun$lambda($this_bindCancellationFun, $element) {
|
|
2240
|
-
return
|
|
2133
|
+
return (_unused_var__etf5q3, _unused_var__etf5q3_0, context) => {
|
|
2241
2134
|
callUndeliveredElement($this_bindCancellationFun, $element, context);
|
|
2242
2135
|
return Unit_instance;
|
|
2243
2136
|
};
|
|
2244
2137
|
}
|
|
2245
2138
|
function BufferedChannel$onCancellationImplDoNotCall$ref(p0) {
|
|
2246
|
-
var l =
|
|
2139
|
+
var l = (_this__u8e3s4, p0_0, p1) => {
|
|
2247
2140
|
var tmp0 = p0;
|
|
2248
2141
|
onCancellationImplDoNotCall(tmp0, _this__u8e3s4, p0_0, p1);
|
|
2249
2142
|
return Unit_instance;
|
|
@@ -2251,406 +2144,26 @@ function BufferedChannel$onCancellationImplDoNotCall$ref(p0) {
|
|
|
2251
2144
|
l.callableName = 'onCancellationImplDoNotCall';
|
|
2252
2145
|
return l;
|
|
2253
2146
|
}
|
|
2254
|
-
var $sendCOROUTINE$Class;
|
|
2255
|
-
function $sendCOROUTINE$() {
|
|
2256
|
-
if ($sendCOROUTINE$Class === VOID) {
|
|
2257
|
-
class $ extends CoroutineImpl() {
|
|
2258
|
-
constructor(_this__u8e3s4, element, resultContinuation) {
|
|
2259
|
-
super(resultContinuation);
|
|
2260
|
-
this.c2g_1 = _this__u8e3s4;
|
|
2261
|
-
this.d2g_1 = element;
|
|
2262
|
-
}
|
|
2263
|
-
ic() {
|
|
2264
|
-
var suspendResult = this.cc_1;
|
|
2265
|
-
$sm: do
|
|
2266
|
-
try {
|
|
2267
|
-
var tmp = this.ac_1;
|
|
2268
|
-
switch (tmp) {
|
|
2269
|
-
case 0:
|
|
2270
|
-
this.bc_1 = 11;
|
|
2271
|
-
var tmp_0 = this;
|
|
2272
|
-
tmp_0.e2g_1 = this.c2g_1;
|
|
2273
|
-
var tmp_1 = this;
|
|
2274
|
-
tmp_1.f2g_1 = this.d2g_1;
|
|
2275
|
-
var tmp_2 = this;
|
|
2276
|
-
tmp_2.g2g_1 = null;
|
|
2277
|
-
this.ac_1 = 1;
|
|
2278
|
-
continue $sm;
|
|
2279
|
-
case 1:
|
|
2280
|
-
this.i2g_1 = this.e2g_1;
|
|
2281
|
-
this.j2g_1 = this.f2g_1;
|
|
2282
|
-
this.k2g_1 = this.g2g_1;
|
|
2283
|
-
this.l2g_1 = this.i2g_1.o2c_1.kotlinx$atomicfu$value;
|
|
2284
|
-
this.ac_1 = 2;
|
|
2285
|
-
continue $sm;
|
|
2286
|
-
case 2:
|
|
2287
|
-
if (!true) {
|
|
2288
|
-
this.ac_1 = 12;
|
|
2289
|
-
continue $sm;
|
|
2290
|
-
}
|
|
2291
|
-
|
|
2292
|
-
this.m2g_1 = this.i2g_1.k2c_1.atomicfu$getAndIncrement$long();
|
|
2293
|
-
var tmp_3 = this;
|
|
2294
|
-
tmp_3.n2g_1 = this.m2g_1.c4(new (Long())(-1, 268435455));
|
|
2295
|
-
this.o2g_1 = _get_isClosedForSend0__kxgf9m(this.i2g_1, this.m2g_1);
|
|
2296
|
-
var tmp_4 = this;
|
|
2297
|
-
var tmp0 = this.n2g_1;
|
|
2298
|
-
var other = get_SEGMENT_SIZE();
|
|
2299
|
-
tmp_4.p2g_1 = tmp0.s3(toLong(other));
|
|
2300
|
-
var tmp_5 = this;
|
|
2301
|
-
var tmp0_0 = this.n2g_1;
|
|
2302
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
2303
|
-
tmp_5.q2g_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
2304
|
-
if (!this.l2g_1.i22_1.equals(this.p2g_1)) {
|
|
2305
|
-
this.r2g_1 = findSegmentSend(this.i2g_1, this.p2g_1, this.l2g_1);
|
|
2306
|
-
if (this.r2g_1 == null) {
|
|
2307
|
-
if (this.o2g_1) {
|
|
2308
|
-
this.ac_1 = 10;
|
|
2309
|
-
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2310
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2311
|
-
return suspendResult;
|
|
2312
|
-
}
|
|
2313
|
-
continue $sm;
|
|
2314
|
-
} else {
|
|
2315
|
-
this.ac_1 = 2;
|
|
2316
|
-
continue $sm;
|
|
2317
|
-
}
|
|
2318
|
-
} else {
|
|
2319
|
-
this.s2g_1 = this.r2g_1;
|
|
2320
|
-
this.ac_1 = 3;
|
|
2321
|
-
continue $sm;
|
|
2322
|
-
}
|
|
2323
|
-
} else {
|
|
2324
|
-
this.ac_1 = 4;
|
|
2325
|
-
continue $sm;
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
case 3:
|
|
2329
|
-
this.l2g_1 = this.s2g_1;
|
|
2330
|
-
this.ac_1 = 4;
|
|
2331
|
-
continue $sm;
|
|
2332
|
-
case 4:
|
|
2333
|
-
this.t2g_1 = updateCellSend(this.i2g_1, this.l2g_1, this.q2g_1, this.j2g_1, this.n2g_1, this.k2g_1, this.o2g_1);
|
|
2334
|
-
if (this.t2g_1 === 0) {
|
|
2335
|
-
this.l2g_1.g2d();
|
|
2336
|
-
var tmp_6 = this;
|
|
2337
|
-
tmp_6.h2g_1 = Unit_instance;
|
|
2338
|
-
this.ac_1 = 13;
|
|
2339
|
-
continue $sm;
|
|
2340
|
-
} else {
|
|
2341
|
-
if (this.t2g_1 === 1) {
|
|
2342
|
-
var tmp_7 = this;
|
|
2343
|
-
tmp_7.h2g_1 = Unit_instance;
|
|
2344
|
-
this.ac_1 = 13;
|
|
2345
|
-
continue $sm;
|
|
2346
|
-
} else {
|
|
2347
|
-
if (this.t2g_1 === 2) {
|
|
2348
|
-
if (this.o2g_1) {
|
|
2349
|
-
this.l2g_1.w2c();
|
|
2350
|
-
this.ac_1 = 9;
|
|
2351
|
-
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2352
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2353
|
-
return suspendResult;
|
|
2354
|
-
}
|
|
2355
|
-
continue $sm;
|
|
2356
|
-
} else {
|
|
2357
|
-
this.ac_1 = 8;
|
|
2358
|
-
continue $sm;
|
|
2359
|
-
}
|
|
2360
|
-
} else {
|
|
2361
|
-
if (this.t2g_1 === 4) {
|
|
2362
|
-
if (this.n2g_1.a2(this.i2g_1.s2e()) < 0) {
|
|
2363
|
-
this.l2g_1.g2d();
|
|
2364
|
-
}
|
|
2365
|
-
this.ac_1 = 7;
|
|
2366
|
-
suspendResult = onClosedSend(this.c2g_1, this.d2g_1, this);
|
|
2367
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2368
|
-
return suspendResult;
|
|
2369
|
-
}
|
|
2370
|
-
continue $sm;
|
|
2371
|
-
} else {
|
|
2372
|
-
if (this.t2g_1 === 5) {
|
|
2373
|
-
this.l2g_1.g2d();
|
|
2374
|
-
this.ac_1 = 2;
|
|
2375
|
-
continue $sm;
|
|
2376
|
-
} else {
|
|
2377
|
-
if (this.t2g_1 === 3) {
|
|
2378
|
-
var tmp_8 = this;
|
|
2379
|
-
tmp_8.u2g_1 = this.l2g_1;
|
|
2380
|
-
var tmp_9 = this;
|
|
2381
|
-
tmp_9.v2g_1 = this.q2g_1;
|
|
2382
|
-
var tmp_10 = this;
|
|
2383
|
-
tmp_10.w2g_1 = this.j2g_1;
|
|
2384
|
-
var tmp_11 = this;
|
|
2385
|
-
tmp_11.x2g_1 = this.n2g_1;
|
|
2386
|
-
this.y2g_1 = this.u2g_1;
|
|
2387
|
-
this.z2g_1 = this.v2g_1;
|
|
2388
|
-
this.a2h_1 = this.w2g_1;
|
|
2389
|
-
this.b2h_1 = this.x2g_1;
|
|
2390
|
-
this.ac_1 = 6;
|
|
2391
|
-
suspendResult = sendOnNoWaiterSuspend(this.c2g_1, this.y2g_1, this.z2g_1, this.a2h_1, this.b2h_1, this);
|
|
2392
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2393
|
-
return suspendResult;
|
|
2394
|
-
}
|
|
2395
|
-
continue $sm;
|
|
2396
|
-
} else {
|
|
2397
|
-
this.ac_1 = 5;
|
|
2398
|
-
continue $sm;
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
case 5:
|
|
2407
|
-
this.ac_1 = 2;
|
|
2408
|
-
continue $sm;
|
|
2409
|
-
case 6:
|
|
2410
|
-
var tmp_12 = this;
|
|
2411
|
-
tmp_12.h2g_1 = Unit_instance;
|
|
2412
|
-
this.ac_1 = 13;
|
|
2413
|
-
continue $sm;
|
|
2414
|
-
case 7:
|
|
2415
|
-
var tmp_13 = this;
|
|
2416
|
-
tmp_13.h2g_1 = Unit_instance;
|
|
2417
|
-
this.ac_1 = 13;
|
|
2418
|
-
continue $sm;
|
|
2419
|
-
case 8:
|
|
2420
|
-
var tmp_14 = this.k2g_1;
|
|
2421
|
-
var tmp2_safe_receiver = (!(tmp_14 == null) ? isInterface(tmp_14, Waiter()) : false) ? tmp_14 : null;
|
|
2422
|
-
if (tmp2_safe_receiver == null)
|
|
2423
|
-
null;
|
|
2424
|
-
else {
|
|
2425
|
-
prepareSenderForSuspension(this.i2g_1, tmp2_safe_receiver, this.l2g_1, this.q2g_1);
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
var tmp_15 = this;
|
|
2429
|
-
this.l2g_1;
|
|
2430
|
-
this.q2g_1;
|
|
2431
|
-
tmp_15.h2g_1 = Unit_instance;
|
|
2432
|
-
this.ac_1 = 13;
|
|
2433
|
-
continue $sm;
|
|
2434
|
-
case 9:
|
|
2435
|
-
var tmp_16 = this;
|
|
2436
|
-
tmp_16.h2g_1 = Unit_instance;
|
|
2437
|
-
this.ac_1 = 13;
|
|
2438
|
-
continue $sm;
|
|
2439
|
-
case 10:
|
|
2440
|
-
var tmp_17 = this;
|
|
2441
|
-
tmp_17.h2g_1 = Unit_instance;
|
|
2442
|
-
this.ac_1 = 13;
|
|
2443
|
-
continue $sm;
|
|
2444
|
-
case 11:
|
|
2445
|
-
throw this.dc_1;
|
|
2446
|
-
case 12:
|
|
2447
|
-
if (false) {
|
|
2448
|
-
this.ac_1 = 1;
|
|
2449
|
-
continue $sm;
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
this.ac_1 = 13;
|
|
2453
|
-
continue $sm;
|
|
2454
|
-
case 13:
|
|
2455
|
-
return Unit_instance;
|
|
2456
|
-
}
|
|
2457
|
-
} catch ($p) {
|
|
2458
|
-
var e = $p;
|
|
2459
|
-
if (this.bc_1 === 11) {
|
|
2460
|
-
throw e;
|
|
2461
|
-
} else {
|
|
2462
|
-
this.ac_1 = this.bc_1;
|
|
2463
|
-
this.dc_1 = e;
|
|
2464
|
-
}
|
|
2465
|
-
}
|
|
2466
|
-
while (true);
|
|
2467
|
-
}
|
|
2468
|
-
}
|
|
2469
|
-
initMetadataForCoroutine($);
|
|
2470
|
-
$sendCOROUTINE$Class = $;
|
|
2471
|
-
}
|
|
2472
|
-
return $sendCOROUTINE$Class;
|
|
2473
|
-
}
|
|
2474
|
-
var $receiveCOROUTINE$Class;
|
|
2475
|
-
function $receiveCOROUTINE$() {
|
|
2476
|
-
if ($receiveCOROUTINE$Class === VOID) {
|
|
2477
|
-
class $ extends CoroutineImpl() {
|
|
2478
|
-
constructor(_this__u8e3s4, resultContinuation) {
|
|
2479
|
-
super(resultContinuation);
|
|
2480
|
-
this.k2h_1 = _this__u8e3s4;
|
|
2481
|
-
}
|
|
2482
|
-
ic() {
|
|
2483
|
-
var suspendResult = this.cc_1;
|
|
2484
|
-
$sm: do
|
|
2485
|
-
try {
|
|
2486
|
-
var tmp = this.ac_1;
|
|
2487
|
-
switch (tmp) {
|
|
2488
|
-
case 0:
|
|
2489
|
-
this.bc_1 = 8;
|
|
2490
|
-
var tmp_0 = this;
|
|
2491
|
-
tmp_0.l2h_1 = this.k2h_1;
|
|
2492
|
-
var tmp_1 = this;
|
|
2493
|
-
tmp_1.m2h_1 = null;
|
|
2494
|
-
this.ac_1 = 1;
|
|
2495
|
-
continue $sm;
|
|
2496
|
-
case 1:
|
|
2497
|
-
this.o2h_1 = this.l2h_1;
|
|
2498
|
-
this.p2h_1 = this.m2h_1;
|
|
2499
|
-
this.q2h_1 = this.o2h_1.p2c_1.kotlinx$atomicfu$value;
|
|
2500
|
-
this.ac_1 = 2;
|
|
2501
|
-
continue $sm;
|
|
2502
|
-
case 2:
|
|
2503
|
-
if (!true) {
|
|
2504
|
-
this.ac_1 = 9;
|
|
2505
|
-
continue $sm;
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
|
-
if (this.o2h_1.n2d()) {
|
|
2509
|
-
var tmp_2 = this;
|
|
2510
|
-
throw recoverStackTrace(_get_receiveException__foorc1(this.k2h_1));
|
|
2511
|
-
} else {
|
|
2512
|
-
this.ac_1 = 3;
|
|
2513
|
-
continue $sm;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
case 3:
|
|
2517
|
-
this.r2h_1 = this.o2h_1.l2c_1.atomicfu$getAndIncrement$long();
|
|
2518
|
-
var tmp_3 = this;
|
|
2519
|
-
var tmp0 = this.r2h_1;
|
|
2520
|
-
var other = get_SEGMENT_SIZE();
|
|
2521
|
-
tmp_3.s2h_1 = tmp0.s3(toLong(other));
|
|
2522
|
-
var tmp_4 = this;
|
|
2523
|
-
var tmp0_0 = this.r2h_1;
|
|
2524
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
2525
|
-
tmp_4.t2h_1 = tmp0_0.t3(toLong(other_0)).c2();
|
|
2526
|
-
if (!this.q2h_1.i22_1.equals(this.s2h_1)) {
|
|
2527
|
-
this.u2h_1 = findSegmentReceive(this.o2h_1, this.s2h_1, this.q2h_1);
|
|
2528
|
-
if (this.u2h_1 == null) {
|
|
2529
|
-
this.ac_1 = 2;
|
|
2530
|
-
var tmp_5 = this;
|
|
2531
|
-
continue $sm;
|
|
2532
|
-
} else {
|
|
2533
|
-
this.v2h_1 = this.u2h_1;
|
|
2534
|
-
this.ac_1 = 4;
|
|
2535
|
-
continue $sm;
|
|
2536
|
-
}
|
|
2537
|
-
} else {
|
|
2538
|
-
this.ac_1 = 5;
|
|
2539
|
-
continue $sm;
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
case 4:
|
|
2543
|
-
this.q2h_1 = this.v2h_1;
|
|
2544
|
-
this.ac_1 = 5;
|
|
2545
|
-
continue $sm;
|
|
2546
|
-
case 5:
|
|
2547
|
-
this.w2h_1 = updateCellReceive(this.o2h_1, this.q2h_1, this.t2h_1, this.r2h_1, this.p2h_1);
|
|
2548
|
-
if (this.w2h_1 === get_SUSPEND()) {
|
|
2549
|
-
var tmp_6 = this;
|
|
2550
|
-
var tmp_7 = this.p2h_1;
|
|
2551
|
-
var tmp1_safe_receiver = (!(tmp_7 == null) ? isInterface(tmp_7, Waiter()) : false) ? tmp_7 : null;
|
|
2552
|
-
if (tmp1_safe_receiver == null)
|
|
2553
|
-
null;
|
|
2554
|
-
else {
|
|
2555
|
-
prepareReceiverForSuspension(this.o2h_1, tmp1_safe_receiver, this.q2h_1, this.t2h_1);
|
|
2556
|
-
}
|
|
2557
|
-
this.q2h_1;
|
|
2558
|
-
this.t2h_1;
|
|
2559
|
-
this.r2h_1;
|
|
2560
|
-
var message = 'unexpected';
|
|
2561
|
-
throw IllegalStateException().o4(toString_0(message));
|
|
2562
|
-
} else {
|
|
2563
|
-
if (this.w2h_1 === get_FAILED()) {
|
|
2564
|
-
if (this.r2h_1.a2(this.o2h_1.m2d()) < 0) {
|
|
2565
|
-
this.q2h_1.g2d();
|
|
2566
|
-
}
|
|
2567
|
-
this.ac_1 = 2;
|
|
2568
|
-
var tmp_8 = this;
|
|
2569
|
-
continue $sm;
|
|
2570
|
-
} else {
|
|
2571
|
-
if (this.w2h_1 === get_SUSPEND_NO_WAITER()) {
|
|
2572
|
-
var tmp_9 = this;
|
|
2573
|
-
tmp_9.y2h_1 = this.q2h_1;
|
|
2574
|
-
var tmp_10 = this;
|
|
2575
|
-
tmp_10.z2h_1 = this.t2h_1;
|
|
2576
|
-
var tmp_11 = this;
|
|
2577
|
-
tmp_11.a2i_1 = this.r2h_1;
|
|
2578
|
-
this.b2i_1 = this.y2h_1;
|
|
2579
|
-
this.c2i_1 = this.z2h_1;
|
|
2580
|
-
this.d2i_1 = this.a2i_1;
|
|
2581
|
-
this.ac_1 = 6;
|
|
2582
|
-
suspendResult = receiveOnNoWaiterSuspend(this.k2h_1, this.b2i_1, this.c2i_1, this.d2i_1, this);
|
|
2583
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2584
|
-
return suspendResult;
|
|
2585
|
-
}
|
|
2586
|
-
continue $sm;
|
|
2587
|
-
} else {
|
|
2588
|
-
var tmp_12 = this;
|
|
2589
|
-
this.q2h_1.g2d();
|
|
2590
|
-
var tmp_13 = this.w2h_1;
|
|
2591
|
-
return (tmp_13 == null ? true : !(tmp_13 == null)) ? tmp_13 : THROW_CCE();
|
|
2592
|
-
}
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
case 6:
|
|
2597
|
-
this.x2h_1 = suspendResult;
|
|
2598
|
-
this.ac_1 = 7;
|
|
2599
|
-
continue $sm;
|
|
2600
|
-
case 7:
|
|
2601
|
-
this.n2h_1 = this.x2h_1;
|
|
2602
|
-
this.ac_1 = 10;
|
|
2603
|
-
continue $sm;
|
|
2604
|
-
case 8:
|
|
2605
|
-
throw this.dc_1;
|
|
2606
|
-
case 9:
|
|
2607
|
-
if (false) {
|
|
2608
|
-
this.ac_1 = 1;
|
|
2609
|
-
continue $sm;
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
this.ac_1 = 10;
|
|
2613
|
-
continue $sm;
|
|
2614
|
-
case 10:
|
|
2615
|
-
return this.n2h_1;
|
|
2616
|
-
}
|
|
2617
|
-
} catch ($p) {
|
|
2618
|
-
var e = $p;
|
|
2619
|
-
if (this.bc_1 === 8) {
|
|
2620
|
-
throw e;
|
|
2621
|
-
} else {
|
|
2622
|
-
this.ac_1 = this.bc_1;
|
|
2623
|
-
this.dc_1 = e;
|
|
2624
|
-
}
|
|
2625
|
-
}
|
|
2626
|
-
while (true);
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
initMetadataForCoroutine($);
|
|
2630
|
-
$receiveCOROUTINE$Class = $;
|
|
2631
|
-
}
|
|
2632
|
-
return $receiveCOROUTINE$Class;
|
|
2633
|
-
}
|
|
2634
2147
|
var BufferedChannelClass;
|
|
2635
2148
|
function BufferedChannel() {
|
|
2636
2149
|
if (BufferedChannelClass === VOID) {
|
|
2637
2150
|
class $ {
|
|
2638
2151
|
constructor(capacity, onUndeliveredElement) {
|
|
2639
2152
|
onUndeliveredElement = onUndeliveredElement === VOID ? null : onUndeliveredElement;
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2153
|
+
this.b16_1 = capacity;
|
|
2154
|
+
this.c16_1 = onUndeliveredElement;
|
|
2642
2155
|
// Inline function 'kotlin.require' call
|
|
2643
|
-
if (!(this.
|
|
2644
|
-
var message = 'Invalid channel capacity: ' + this.
|
|
2645
|
-
throw IllegalArgumentException().
|
|
2156
|
+
if (!(this.b16_1 >= 0)) {
|
|
2157
|
+
var message = 'Invalid channel capacity: ' + this.b16_1 + ', should be >=0';
|
|
2158
|
+
throw IllegalArgumentException().j1(toString_0(message));
|
|
2646
2159
|
}
|
|
2647
|
-
this.
|
|
2648
|
-
this.
|
|
2649
|
-
this.
|
|
2650
|
-
this.
|
|
2651
|
-
var firstSegment = new (ChannelSegment())(
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2160
|
+
this.d16_1 = atomic$long$1(0n);
|
|
2161
|
+
this.e16_1 = atomic$long$1(0n);
|
|
2162
|
+
this.f16_1 = atomic$long$1(initialBufferEnd(this.b16_1));
|
|
2163
|
+
this.g16_1 = atomic$long$1(_get_bufferEndCounter__2d4hee(this));
|
|
2164
|
+
var firstSegment = new (ChannelSegment())(0n, null, this, 3);
|
|
2165
|
+
this.h16_1 = atomic$ref$1(firstSegment);
|
|
2166
|
+
this.i16_1 = atomic$ref$1(firstSegment);
|
|
2654
2167
|
var tmp = this;
|
|
2655
2168
|
var tmp_0;
|
|
2656
2169
|
if (_get_isRendezvousOrUnlimited__3mdufi(this)) {
|
|
@@ -2659,58 +2172,56 @@ function BufferedChannel() {
|
|
|
2659
2172
|
} else {
|
|
2660
2173
|
tmp_0 = firstSegment;
|
|
2661
2174
|
}
|
|
2662
|
-
tmp.
|
|
2175
|
+
tmp.j16_1 = atomic$ref$1(tmp_0);
|
|
2663
2176
|
var tmp_2 = this;
|
|
2664
2177
|
var tmp_3;
|
|
2665
|
-
if (this.
|
|
2178
|
+
if (this.c16_1 == null) {
|
|
2666
2179
|
tmp_3 = null;
|
|
2667
2180
|
} else {
|
|
2668
2181
|
// Inline function 'kotlin.let' call
|
|
2669
2182
|
tmp_3 = BufferedChannel$onUndeliveredElementReceiveCancellationConstructor$lambda(this);
|
|
2670
2183
|
}
|
|
2671
|
-
tmp_2.
|
|
2672
|
-
this.
|
|
2673
|
-
this.
|
|
2184
|
+
tmp_2.k16_1 = tmp_3;
|
|
2185
|
+
this.l16_1 = atomic$ref$1(get_NO_CLOSE_CAUSE());
|
|
2186
|
+
this.m16_1 = atomic$ref$1(null);
|
|
2674
2187
|
}
|
|
2675
|
-
|
|
2188
|
+
f17() {
|
|
2676
2189
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2677
|
-
return this.
|
|
2190
|
+
return this.d16_1.kotlinx$atomicfu$value & 1152921504606846975n;
|
|
2678
2191
|
}
|
|
2679
|
-
|
|
2680
|
-
return this.
|
|
2192
|
+
h17() {
|
|
2193
|
+
return this.e16_1.kotlinx$atomicfu$value;
|
|
2681
2194
|
}
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
tmp.cc_1 = Unit_instance;
|
|
2685
|
-
tmp.dc_1 = null;
|
|
2686
|
-
return tmp.ic();
|
|
2195
|
+
k18(element, $completion) {
|
|
2196
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_send__qhx0g0.bind(VOID, this, element), $completion);
|
|
2687
2197
|
}
|
|
2688
|
-
|
|
2689
|
-
if (shouldSendSuspend0(this, this.
|
|
2690
|
-
return Companion_getInstance().
|
|
2198
|
+
l18(element) {
|
|
2199
|
+
if (shouldSendSuspend0(this, this.d16_1.kotlinx$atomicfu$value))
|
|
2200
|
+
return Companion_getInstance().m18();
|
|
2691
2201
|
var tmp4 = get_INTERRUPTED_SEND();
|
|
2692
2202
|
var tmp$ret$4;
|
|
2693
2203
|
$l$block_4: {
|
|
2694
2204
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2695
|
-
var segment = this.
|
|
2205
|
+
var segment = this.h16_1.kotlinx$atomicfu$value;
|
|
2696
2206
|
$l$loop_0: while (true) {
|
|
2697
|
-
var sendersAndCloseStatusCur = this.
|
|
2207
|
+
var sendersAndCloseStatusCur = this.d16_1.atomicfu$getAndIncrement$long();
|
|
2698
2208
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2699
|
-
var s = sendersAndCloseStatusCur
|
|
2209
|
+
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
2700
2210
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
2701
2211
|
// Inline function 'kotlin.Long.div' call
|
|
2702
2212
|
var other = get_SEGMENT_SIZE();
|
|
2703
|
-
var id = s
|
|
2213
|
+
var id = divide(s, fromInt(other));
|
|
2704
2214
|
// Inline function 'kotlin.Long.rem' call
|
|
2705
2215
|
var other_0 = get_SEGMENT_SIZE();
|
|
2706
|
-
var
|
|
2707
|
-
|
|
2216
|
+
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2217
|
+
var i = convertToInt(tmp$ret$2);
|
|
2218
|
+
if (!(segment.ly_1 === id)) {
|
|
2708
2219
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2709
2220
|
var tmp;
|
|
2710
2221
|
if (tmp0_elvis_lhs == null) {
|
|
2711
2222
|
var tmp_0;
|
|
2712
2223
|
if (closed) {
|
|
2713
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2224
|
+
tmp$ret$4 = Companion_getInstance().g18(this.i17());
|
|
2714
2225
|
break $l$block_4;
|
|
2715
2226
|
} else {
|
|
2716
2227
|
continue $l$loop_0;
|
|
@@ -2722,16 +2233,16 @@ function BufferedChannel() {
|
|
|
2722
2233
|
}
|
|
2723
2234
|
switch (updateCellSend(this, segment, i, element, s, tmp4, closed)) {
|
|
2724
2235
|
case 0:
|
|
2725
|
-
segment.
|
|
2726
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2236
|
+
segment.z16();
|
|
2237
|
+
tmp$ret$4 = Companion_getInstance().n17(Unit_instance);
|
|
2727
2238
|
break $l$block_4;
|
|
2728
2239
|
case 1:
|
|
2729
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2240
|
+
tmp$ret$4 = Companion_getInstance().n17(Unit_instance);
|
|
2730
2241
|
break $l$block_4;
|
|
2731
2242
|
case 2:
|
|
2732
2243
|
if (closed) {
|
|
2733
|
-
segment.
|
|
2734
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2244
|
+
segment.p16();
|
|
2245
|
+
tmp$ret$4 = Companion_getInstance().g18(this.i17());
|
|
2735
2246
|
break $l$block_4;
|
|
2736
2247
|
}
|
|
2737
2248
|
|
|
@@ -2742,50 +2253,51 @@ function BufferedChannel() {
|
|
|
2742
2253
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2743
2254
|
}
|
|
2744
2255
|
|
|
2745
|
-
segment.
|
|
2746
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2256
|
+
segment.p16();
|
|
2257
|
+
tmp$ret$4 = Companion_getInstance().m18();
|
|
2747
2258
|
break $l$block_4;
|
|
2748
2259
|
case 4:
|
|
2749
|
-
if (s
|
|
2750
|
-
segment.
|
|
2260
|
+
if (s < this.h17()) {
|
|
2261
|
+
segment.z16();
|
|
2751
2262
|
}
|
|
2752
2263
|
|
|
2753
|
-
tmp$ret$4 = Companion_getInstance().
|
|
2264
|
+
tmp$ret$4 = Companion_getInstance().g18(this.i17());
|
|
2754
2265
|
break $l$block_4;
|
|
2755
2266
|
case 5:
|
|
2756
|
-
segment.
|
|
2267
|
+
segment.z16();
|
|
2757
2268
|
continue $l$loop_0;
|
|
2758
2269
|
case 3:
|
|
2759
2270
|
var message = 'unexpected';
|
|
2760
|
-
throw IllegalStateException().
|
|
2271
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
2761
2272
|
}
|
|
2762
2273
|
}
|
|
2763
2274
|
}
|
|
2764
2275
|
return tmp$ret$4;
|
|
2765
2276
|
}
|
|
2766
|
-
|
|
2277
|
+
n18(element) {
|
|
2767
2278
|
var tmp$ret$3;
|
|
2768
2279
|
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.sendImpl' call
|
|
2769
2280
|
var waiter = get_BUFFERED();
|
|
2770
|
-
var segment = this.
|
|
2281
|
+
var segment = this.h16_1.kotlinx$atomicfu$value;
|
|
2771
2282
|
$l$loop_0: while (true) {
|
|
2772
|
-
var sendersAndCloseStatusCur = this.
|
|
2283
|
+
var sendersAndCloseStatusCur = this.d16_1.atomicfu$getAndIncrement$long();
|
|
2773
2284
|
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2774
|
-
var s = sendersAndCloseStatusCur
|
|
2285
|
+
var s = sendersAndCloseStatusCur & 1152921504606846975n;
|
|
2775
2286
|
var closed = _get_isClosedForSend0__kxgf9m(this, sendersAndCloseStatusCur);
|
|
2776
2287
|
// Inline function 'kotlin.Long.div' call
|
|
2777
2288
|
var other = get_SEGMENT_SIZE();
|
|
2778
|
-
var id = s
|
|
2289
|
+
var id = divide(s, fromInt(other));
|
|
2779
2290
|
// Inline function 'kotlin.Long.rem' call
|
|
2780
2291
|
var other_0 = get_SEGMENT_SIZE();
|
|
2781
|
-
var
|
|
2782
|
-
|
|
2292
|
+
var tmp$ret$2 = modulo(s, fromInt(other_0));
|
|
2293
|
+
var i = convertToInt(tmp$ret$2);
|
|
2294
|
+
if (!(segment.ly_1 === id)) {
|
|
2783
2295
|
var tmp0_elvis_lhs = findSegmentSend(this, id, segment);
|
|
2784
2296
|
var tmp;
|
|
2785
2297
|
if (tmp0_elvis_lhs == null) {
|
|
2786
2298
|
var tmp_0;
|
|
2787
2299
|
if (closed) {
|
|
2788
|
-
return Companion_getInstance().
|
|
2300
|
+
return Companion_getInstance().g18(this.i17());
|
|
2789
2301
|
} else {
|
|
2790
2302
|
continue $l$loop_0;
|
|
2791
2303
|
}
|
|
@@ -2796,14 +2308,14 @@ function BufferedChannel() {
|
|
|
2796
2308
|
}
|
|
2797
2309
|
switch (updateCellSend(this, segment, i, element, s, waiter, closed)) {
|
|
2798
2310
|
case 0:
|
|
2799
|
-
segment.
|
|
2800
|
-
return Companion_getInstance().
|
|
2311
|
+
segment.z16();
|
|
2312
|
+
return Companion_getInstance().n17(Unit_instance);
|
|
2801
2313
|
case 1:
|
|
2802
|
-
return Companion_getInstance().
|
|
2314
|
+
return Companion_getInstance().n17(Unit_instance);
|
|
2803
2315
|
case 2:
|
|
2804
2316
|
if (closed) {
|
|
2805
|
-
segment.
|
|
2806
|
-
return Companion_getInstance().
|
|
2317
|
+
segment.p16();
|
|
2318
|
+
return Companion_getInstance().g18(this.i17());
|
|
2807
2319
|
}
|
|
2808
2320
|
|
|
2809
2321
|
var tmp2_safe_receiver = (!(waiter == null) ? isInterface(waiter, Waiter()) : false) ? waiter : null;
|
|
@@ -2813,134 +2325,60 @@ function BufferedChannel() {
|
|
|
2813
2325
|
prepareSenderForSuspension(this, tmp2_safe_receiver, segment, i);
|
|
2814
2326
|
}
|
|
2815
2327
|
|
|
2816
|
-
var tmp0 = segment.
|
|
2328
|
+
var tmp0 = segment.ly_1;
|
|
2817
2329
|
// Inline function 'kotlin.Long.times' call
|
|
2818
2330
|
|
|
2819
2331
|
var other_1 = get_SEGMENT_SIZE();
|
|
2820
2332
|
// Inline function 'kotlin.Long.plus' call
|
|
2821
2333
|
|
|
2822
|
-
var
|
|
2823
|
-
|
|
2824
|
-
|
|
2334
|
+
var this_0 = multiply(tmp0, fromInt(other_1));
|
|
2335
|
+
var tmp$ret$5 = add(this_0, fromInt(i));
|
|
2336
|
+
this.e18(tmp$ret$5);
|
|
2337
|
+
return Companion_getInstance().n17(Unit_instance);
|
|
2825
2338
|
case 4:
|
|
2826
|
-
if (s
|
|
2827
|
-
segment.
|
|
2339
|
+
if (s < this.h17()) {
|
|
2340
|
+
segment.z16();
|
|
2828
2341
|
}
|
|
2829
2342
|
|
|
2830
|
-
return Companion_getInstance().
|
|
2343
|
+
return Companion_getInstance().g18(this.i17());
|
|
2831
2344
|
case 5:
|
|
2832
|
-
segment.
|
|
2345
|
+
segment.z16();
|
|
2833
2346
|
continue $l$loop_0;
|
|
2834
2347
|
case 3:
|
|
2835
2348
|
var message = 'unexpected';
|
|
2836
|
-
throw IllegalStateException().
|
|
2349
|
+
throw IllegalStateException().x4(toString_0(message));
|
|
2837
2350
|
}
|
|
2838
2351
|
}
|
|
2839
2352
|
return tmp$ret$3;
|
|
2840
2353
|
}
|
|
2841
|
-
|
|
2842
|
-
}
|
|
2843
|
-
t2e() {
|
|
2354
|
+
q17() {
|
|
2844
2355
|
}
|
|
2845
|
-
|
|
2846
|
-
var tmp = new ($receiveCOROUTINE$())(this, $completion);
|
|
2847
|
-
tmp.cc_1 = Unit_instance;
|
|
2848
|
-
tmp.dc_1 = null;
|
|
2849
|
-
return tmp.ic();
|
|
2356
|
+
j17() {
|
|
2850
2357
|
}
|
|
2851
|
-
|
|
2852
|
-
var r = this.l2c_1.kotlinx$atomicfu$value;
|
|
2853
|
-
var sendersAndCloseStatusCur = this.k2c_1.kotlinx$atomicfu$value;
|
|
2854
|
-
if (_get_isClosedForReceive0__f7qknl(this, sendersAndCloseStatusCur)) {
|
|
2855
|
-
return Companion_getInstance().q2f(this.l2d());
|
|
2856
|
-
}
|
|
2857
|
-
// Inline function 'kotlinx.coroutines.channels.sendersCounter' call
|
|
2858
|
-
var s = sendersAndCloseStatusCur.c4(new (Long())(-1, 268435455));
|
|
2859
|
-
if (r.a2(s) >= 0)
|
|
2860
|
-
return Companion_getInstance().g2i();
|
|
2861
|
-
var tmp2 = get_INTERRUPTED_RCV();
|
|
2862
|
-
var tmp$ret$2;
|
|
2863
|
-
$l$block_0: {
|
|
2864
|
-
// Inline function 'kotlinx.coroutines.channels.BufferedChannel.receiveImpl' call
|
|
2865
|
-
var segment = this.p2c_1.kotlinx$atomicfu$value;
|
|
2866
|
-
$l$loop_0: while (true) {
|
|
2867
|
-
if (this.n2d()) {
|
|
2868
|
-
tmp$ret$2 = Companion_getInstance().q2f(this.l2d());
|
|
2869
|
-
break $l$block_0;
|
|
2870
|
-
}
|
|
2871
|
-
var r_0 = this.l2c_1.atomicfu$getAndIncrement$long();
|
|
2872
|
-
// Inline function 'kotlin.Long.div' call
|
|
2873
|
-
var other = get_SEGMENT_SIZE();
|
|
2874
|
-
var id = r_0.s3(toLong(other));
|
|
2875
|
-
// Inline function 'kotlin.Long.rem' call
|
|
2876
|
-
var other_0 = get_SEGMENT_SIZE();
|
|
2877
|
-
var i = r_0.t3(toLong(other_0)).c2();
|
|
2878
|
-
if (!segment.i22_1.equals(id)) {
|
|
2879
|
-
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2880
|
-
var tmp;
|
|
2881
|
-
if (tmp0_elvis_lhs == null) {
|
|
2882
|
-
continue $l$loop_0;
|
|
2883
|
-
} else {
|
|
2884
|
-
tmp = tmp0_elvis_lhs;
|
|
2885
|
-
}
|
|
2886
|
-
segment = tmp;
|
|
2887
|
-
}
|
|
2888
|
-
var updCellResult = updateCellReceive(this, segment, i, r_0, tmp2);
|
|
2889
|
-
var tmp_0;
|
|
2890
|
-
if (updCellResult === get_SUSPEND()) {
|
|
2891
|
-
var tmp1_safe_receiver = (!(tmp2 == null) ? isInterface(tmp2, Waiter()) : false) ? tmp2 : null;
|
|
2892
|
-
if (tmp1_safe_receiver == null)
|
|
2893
|
-
null;
|
|
2894
|
-
else {
|
|
2895
|
-
prepareReceiverForSuspension(this, tmp1_safe_receiver, segment, i);
|
|
2896
|
-
}
|
|
2897
|
-
var segm = segment;
|
|
2898
|
-
this.v2c(r_0);
|
|
2899
|
-
segm.w2c();
|
|
2900
|
-
tmp_0 = new (ChannelResult())(Companion_getInstance().g2i());
|
|
2901
|
-
} else if (updCellResult === get_FAILED()) {
|
|
2902
|
-
if (r_0.a2(this.m2d()) < 0) {
|
|
2903
|
-
segment.g2d();
|
|
2904
|
-
}
|
|
2905
|
-
continue $l$loop_0;
|
|
2906
|
-
} else if (updCellResult === get_SUSPEND_NO_WAITER()) {
|
|
2907
|
-
var message = 'unexpected';
|
|
2908
|
-
throw IllegalStateException().o4(toString_0(message));
|
|
2909
|
-
} else {
|
|
2910
|
-
segment.g2d();
|
|
2911
|
-
var element = (updCellResult == null ? true : !(updCellResult == null)) ? updCellResult : THROW_CCE();
|
|
2912
|
-
tmp_0 = new (ChannelResult())(Companion_getInstance().x2e(element));
|
|
2913
|
-
}
|
|
2914
|
-
tmp$ret$2 = tmp_0.t2f_1;
|
|
2915
|
-
break $l$block_0;
|
|
2916
|
-
}
|
|
2917
|
-
}
|
|
2918
|
-
return tmp$ret$2;
|
|
2919
|
-
}
|
|
2920
|
-
o2f(globalCellIndex) {
|
|
2358
|
+
e18(globalCellIndex) {
|
|
2921
2359
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
2922
|
-
var segment = this.
|
|
2360
|
+
var segment = this.i16_1.kotlinx$atomicfu$value;
|
|
2923
2361
|
$l$loop_0: while (true) {
|
|
2924
|
-
var r = this.
|
|
2362
|
+
var r = this.e16_1.kotlinx$atomicfu$value;
|
|
2925
2363
|
// Inline function 'kotlin.Long.plus' call
|
|
2926
|
-
var other = this.
|
|
2927
|
-
var tmp0 = r
|
|
2364
|
+
var other = this.b16_1;
|
|
2365
|
+
var tmp0 = add(r, fromInt(other));
|
|
2928
2366
|
// Inline function 'kotlin.math.max' call
|
|
2929
2367
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2930
|
-
|
|
2931
|
-
if (globalCellIndex.a2(tmp$ret$2) < 0)
|
|
2368
|
+
if (globalCellIndex < (tmp0 >= b ? tmp0 : b))
|
|
2932
2369
|
return Unit_instance;
|
|
2933
2370
|
// Inline function 'kotlin.Long.plus' call
|
|
2934
|
-
var tmp$ret$3 = r
|
|
2935
|
-
if (!this.
|
|
2371
|
+
var tmp$ret$3 = add(r, fromInt(1));
|
|
2372
|
+
if (!this.e16_1.atomicfu$compareAndSet(r, tmp$ret$3))
|
|
2936
2373
|
continue $l$loop_0;
|
|
2937
2374
|
// Inline function 'kotlin.Long.div' call
|
|
2938
2375
|
var other_0 = get_SEGMENT_SIZE();
|
|
2939
|
-
var id = r
|
|
2376
|
+
var id = divide(r, fromInt(other_0));
|
|
2940
2377
|
// Inline function 'kotlin.Long.rem' call
|
|
2941
2378
|
var other_1 = get_SEGMENT_SIZE();
|
|
2942
|
-
var
|
|
2943
|
-
|
|
2379
|
+
var tmp$ret$5 = modulo(r, fromInt(other_1));
|
|
2380
|
+
var i = convertToInt(tmp$ret$5);
|
|
2381
|
+
if (!(segment.ly_1 === id)) {
|
|
2944
2382
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
2945
2383
|
var tmp;
|
|
2946
2384
|
if (tmp0_elvis_lhs == null) {
|
|
@@ -2952,12 +2390,12 @@ function BufferedChannel() {
|
|
|
2952
2390
|
}
|
|
2953
2391
|
var updCellResult = updateCellReceive(this, segment, i, r, null);
|
|
2954
2392
|
if (updCellResult === get_FAILED()) {
|
|
2955
|
-
if (r
|
|
2956
|
-
segment.
|
|
2393
|
+
if (r < this.f17()) {
|
|
2394
|
+
segment.z16();
|
|
2957
2395
|
}
|
|
2958
2396
|
} else {
|
|
2959
|
-
segment.
|
|
2960
|
-
var tmp1_safe_receiver = this.
|
|
2397
|
+
segment.z16();
|
|
2398
|
+
var tmp1_safe_receiver = this.c16_1;
|
|
2961
2399
|
var tmp_0;
|
|
2962
2400
|
if (tmp1_safe_receiver == null) {
|
|
2963
2401
|
tmp_0 = null;
|
|
@@ -2974,10 +2412,10 @@ function BufferedChannel() {
|
|
|
2974
2412
|
}
|
|
2975
2413
|
}
|
|
2976
2414
|
}
|
|
2977
|
-
|
|
2415
|
+
o16(globalIndex) {
|
|
2978
2416
|
if (_get_isRendezvousOrUnlimited__3mdufi(this))
|
|
2979
2417
|
return Unit_instance;
|
|
2980
|
-
while (_get_bufferEndCounter__2d4hee(this)
|
|
2418
|
+
while (_get_bufferEndCounter__2d4hee(this) <= globalIndex) {
|
|
2981
2419
|
}
|
|
2982
2420
|
// Inline function 'kotlin.repeat' call
|
|
2983
2421
|
var times = get_EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS();
|
|
@@ -2988,18 +2426,18 @@ function BufferedChannel() {
|
|
|
2988
2426
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2989
2427
|
var b = _get_bufferEndCounter__2d4hee(this);
|
|
2990
2428
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
2991
|
-
var ebCompleted = this.
|
|
2992
|
-
if (b
|
|
2429
|
+
var ebCompleted = this.g16_1.kotlinx$atomicfu$value & 4611686018427387903n;
|
|
2430
|
+
if (b === ebCompleted && b === _get_bufferEndCounter__2d4hee(this))
|
|
2993
2431
|
return Unit_instance;
|
|
2994
2432
|
}
|
|
2995
2433
|
while (inductionVariable < times);
|
|
2996
|
-
var tmp0 = this.
|
|
2434
|
+
var tmp0 = this.g16_1;
|
|
2997
2435
|
$l$block: {
|
|
2998
2436
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
2999
2437
|
while (true) {
|
|
3000
2438
|
var cur = tmp0.kotlinx$atomicfu$value;
|
|
3001
2439
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3002
|
-
var tmp$ret$3 = cur
|
|
2440
|
+
var tmp$ret$3 = cur & 4611686018427387903n;
|
|
3003
2441
|
var upd = constructEBCompletedAndPauseFlag(tmp$ret$3, true);
|
|
3004
2442
|
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
|
|
3005
2443
|
break $l$block;
|
|
@@ -3008,19 +2446,19 @@ function BufferedChannel() {
|
|
|
3008
2446
|
}
|
|
3009
2447
|
while (true) {
|
|
3010
2448
|
var b_0 = _get_bufferEndCounter__2d4hee(this);
|
|
3011
|
-
var ebCompletedAndBit = this.
|
|
2449
|
+
var ebCompletedAndBit = this.g16_1.kotlinx$atomicfu$value;
|
|
3012
2450
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3013
|
-
var ebCompleted_0 = ebCompletedAndBit
|
|
2451
|
+
var ebCompleted_0 = ebCompletedAndBit & 4611686018427387903n;
|
|
3014
2452
|
// Inline function 'kotlinx.coroutines.channels.ebPauseExpandBuffers' call
|
|
3015
|
-
var pauseExpandBuffers = !
|
|
3016
|
-
if (b_0
|
|
3017
|
-
var tmp0_0 = this.
|
|
2453
|
+
var pauseExpandBuffers = !((ebCompletedAndBit & 4611686018427387904n) === 0n);
|
|
2454
|
+
if (b_0 === ebCompleted_0 && b_0 === _get_bufferEndCounter__2d4hee(this)) {
|
|
2455
|
+
var tmp0_0 = this.g16_1;
|
|
3018
2456
|
$l$block_0: {
|
|
3019
2457
|
// Inline function 'kotlinx.atomicfu.update' call
|
|
3020
2458
|
while (true) {
|
|
3021
2459
|
var cur_0 = tmp0_0.kotlinx$atomicfu$value;
|
|
3022
2460
|
// Inline function 'kotlinx.coroutines.channels.ebCompletedCounter' call
|
|
3023
|
-
var tmp$ret$8 = cur_0
|
|
2461
|
+
var tmp$ret$8 = cur_0 & 4611686018427387903n;
|
|
3024
2462
|
var upd_0 = constructEBCompletedAndPauseFlag(tmp$ret$8, false);
|
|
3025
2463
|
if (tmp0_0.atomicfu$compareAndSet(cur_0, upd_0)) {
|
|
3026
2464
|
break $l$block_0;
|
|
@@ -3030,37 +2468,37 @@ function BufferedChannel() {
|
|
|
3030
2468
|
return Unit_instance;
|
|
3031
2469
|
}
|
|
3032
2470
|
if (!pauseExpandBuffers) {
|
|
3033
|
-
this.
|
|
2471
|
+
this.g16_1.atomicfu$compareAndSet(ebCompletedAndBit, constructEBCompletedAndPauseFlag(ebCompleted_0, true));
|
|
3034
2472
|
}
|
|
3035
2473
|
}
|
|
3036
2474
|
}
|
|
3037
|
-
|
|
2475
|
+
k1() {
|
|
3038
2476
|
return new (BufferedChannelIterator())(this);
|
|
3039
2477
|
}
|
|
3040
|
-
|
|
3041
|
-
var tmp = this.
|
|
2478
|
+
g17() {
|
|
2479
|
+
var tmp = this.l16_1.kotlinx$atomicfu$value;
|
|
3042
2480
|
return (tmp == null ? true : tmp instanceof Error) ? tmp : THROW_CCE();
|
|
3043
2481
|
}
|
|
3044
|
-
|
|
3045
|
-
var tmp0_elvis_lhs = this.
|
|
3046
|
-
return tmp0_elvis_lhs == null ? ClosedSendChannelException().
|
|
2482
|
+
i17() {
|
|
2483
|
+
var tmp0_elvis_lhs = this.g17();
|
|
2484
|
+
return tmp0_elvis_lhs == null ? ClosedSendChannelException().s18('Channel was closed') : tmp0_elvis_lhs;
|
|
3047
2485
|
}
|
|
3048
|
-
|
|
2486
|
+
t18() {
|
|
3049
2487
|
}
|
|
3050
|
-
|
|
3051
|
-
return this.
|
|
2488
|
+
u18(cause) {
|
|
2489
|
+
return this.v18(cause, false);
|
|
3052
2490
|
}
|
|
3053
|
-
|
|
3054
|
-
this.
|
|
2491
|
+
zv(cause) {
|
|
2492
|
+
this.x18(cause);
|
|
3055
2493
|
}
|
|
3056
|
-
|
|
3057
|
-
return this.
|
|
2494
|
+
x18(cause) {
|
|
2495
|
+
return this.v18(cause == null ? CancellationException().bd('Channel was cancelled') : cause, true);
|
|
3058
2496
|
}
|
|
3059
|
-
|
|
2497
|
+
v18(cause, cancel) {
|
|
3060
2498
|
if (cancel) {
|
|
3061
2499
|
markCancellationStarted(this);
|
|
3062
2500
|
}
|
|
3063
|
-
var closedByThisOperation = this.
|
|
2501
|
+
var closedByThisOperation = this.l16_1.atomicfu$compareAndSet(get_NO_CLOSE_CAUSE(), cause);
|
|
3064
2502
|
if (cancel) {
|
|
3065
2503
|
markCancelled(this);
|
|
3066
2504
|
} else {
|
|
@@ -3068,37 +2506,37 @@ function BufferedChannel() {
|
|
|
3068
2506
|
}
|
|
3069
2507
|
completeCloseOrCancel(this);
|
|
3070
2508
|
// Inline function 'kotlin.also' call
|
|
3071
|
-
this.
|
|
2509
|
+
this.t18();
|
|
3072
2510
|
if (closedByThisOperation) {
|
|
3073
2511
|
invokeCloseHandler(this);
|
|
3074
2512
|
}
|
|
3075
2513
|
return closedByThisOperation;
|
|
3076
2514
|
}
|
|
3077
|
-
|
|
2515
|
+
f18() {
|
|
3078
2516
|
return false;
|
|
3079
2517
|
}
|
|
3080
|
-
|
|
3081
|
-
return _get_isClosedForSend0__kxgf9m(this, this.
|
|
2518
|
+
d18() {
|
|
2519
|
+
return _get_isClosedForSend0__kxgf9m(this, this.d16_1.kotlinx$atomicfu$value);
|
|
3082
2520
|
}
|
|
3083
|
-
|
|
3084
|
-
return _get_isClosedForReceive0__f7qknl(this, this.
|
|
2521
|
+
e17() {
|
|
2522
|
+
return _get_isClosedForReceive0__f7qknl(this, this.d16_1.kotlinx$atomicfu$value);
|
|
3085
2523
|
}
|
|
3086
|
-
|
|
2524
|
+
h18() {
|
|
3087
2525
|
$l$loop: while (true) {
|
|
3088
|
-
var segment = this.
|
|
3089
|
-
var r = this.
|
|
3090
|
-
var s = this.
|
|
3091
|
-
if (s
|
|
2526
|
+
var segment = this.i16_1.kotlinx$atomicfu$value;
|
|
2527
|
+
var r = this.h17();
|
|
2528
|
+
var s = this.f17();
|
|
2529
|
+
if (s <= r)
|
|
3092
2530
|
return false;
|
|
3093
2531
|
// Inline function 'kotlin.Long.div' call
|
|
3094
2532
|
var other = get_SEGMENT_SIZE();
|
|
3095
|
-
var id = r
|
|
3096
|
-
if (!segment.
|
|
2533
|
+
var id = divide(r, fromInt(other));
|
|
2534
|
+
if (!(segment.ly_1 === id)) {
|
|
3097
2535
|
var tmp0_elvis_lhs = findSegmentReceive(this, id, segment);
|
|
3098
2536
|
var tmp;
|
|
3099
2537
|
if (tmp0_elvis_lhs == null) {
|
|
3100
2538
|
var tmp_0;
|
|
3101
|
-
if (this.
|
|
2539
|
+
if (this.i16_1.kotlinx$atomicfu$value.ly_1 < id) {
|
|
3102
2540
|
return false;
|
|
3103
2541
|
} else {
|
|
3104
2542
|
continue $l$loop;
|
|
@@ -3108,65 +2546,67 @@ function BufferedChannel() {
|
|
|
3108
2546
|
}
|
|
3109
2547
|
segment = tmp;
|
|
3110
2548
|
}
|
|
3111
|
-
segment.
|
|
2549
|
+
segment.z16();
|
|
3112
2550
|
// Inline function 'kotlin.Long.rem' call
|
|
3113
2551
|
var other_0 = get_SEGMENT_SIZE();
|
|
3114
|
-
var
|
|
2552
|
+
var tmp$ret$1 = modulo(r, fromInt(other_0));
|
|
2553
|
+
var i = convertToInt(tmp$ret$1);
|
|
3115
2554
|
if (isCellNonEmpty(this, segment, i, r))
|
|
3116
2555
|
return true;
|
|
3117
2556
|
// Inline function 'kotlin.Long.plus' call
|
|
3118
|
-
var tmp$ret$2 = r
|
|
3119
|
-
this.
|
|
2557
|
+
var tmp$ret$2 = add(r, fromInt(1));
|
|
2558
|
+
this.e16_1.atomicfu$compareAndSet(r, tmp$ret$2);
|
|
3120
2559
|
}
|
|
3121
2560
|
}
|
|
3122
2561
|
toString() {
|
|
3123
|
-
var sb = StringBuilder().
|
|
2562
|
+
var sb = StringBuilder().x();
|
|
3124
2563
|
// Inline function 'kotlinx.coroutines.channels.sendersCloseStatus' call
|
|
3125
|
-
var
|
|
2564
|
+
var this_0 = this.d16_1.kotlinx$atomicfu$value;
|
|
2565
|
+
var tmp0_subject = convertToInt(shiftRight(this_0, 60));
|
|
3126
2566
|
if (tmp0_subject === 2) {
|
|
3127
|
-
sb.
|
|
2567
|
+
sb.ob('closed,');
|
|
3128
2568
|
} else if (tmp0_subject === 3) {
|
|
3129
|
-
sb.
|
|
2569
|
+
sb.ob('cancelled,');
|
|
3130
2570
|
}
|
|
3131
|
-
sb.
|
|
3132
|
-
sb.
|
|
2571
|
+
sb.ob('capacity=' + this.b16_1 + ',');
|
|
2572
|
+
sb.ob('data=[');
|
|
3133
2573
|
// Inline function 'kotlin.collections.filter' call
|
|
3134
|
-
var tmp0 = listOf([this.
|
|
2574
|
+
var tmp0 = listOf([this.i16_1.kotlinx$atomicfu$value, this.h16_1.kotlinx$atomicfu$value, this.j16_1.kotlinx$atomicfu$value]);
|
|
3135
2575
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3136
|
-
var destination = ArrayList().
|
|
3137
|
-
var _iterator__ex2g4s = tmp0.
|
|
3138
|
-
while (_iterator__ex2g4s.
|
|
3139
|
-
var element = _iterator__ex2g4s.
|
|
2576
|
+
var destination = ArrayList().r1();
|
|
2577
|
+
var _iterator__ex2g4s = tmp0.k1();
|
|
2578
|
+
while (_iterator__ex2g4s.l1()) {
|
|
2579
|
+
var element = _iterator__ex2g4s.m1();
|
|
3140
2580
|
if (!(element === get_NULL_SEGMENT())) {
|
|
3141
|
-
destination.
|
|
2581
|
+
destination.v(element);
|
|
3142
2582
|
}
|
|
3143
2583
|
}
|
|
3144
2584
|
var tmp$ret$4;
|
|
3145
2585
|
$l$block: {
|
|
3146
2586
|
// Inline function 'kotlin.collections.minBy' call
|
|
3147
|
-
var iterator = destination.
|
|
3148
|
-
if (!iterator.
|
|
3149
|
-
throw NoSuchElementException().
|
|
3150
|
-
var minElem = iterator.
|
|
3151
|
-
if (!iterator.
|
|
2587
|
+
var iterator = destination.k1();
|
|
2588
|
+
if (!iterator.l1())
|
|
2589
|
+
throw NoSuchElementException().j6();
|
|
2590
|
+
var minElem = iterator.m1();
|
|
2591
|
+
if (!iterator.l1()) {
|
|
3152
2592
|
tmp$ret$4 = minElem;
|
|
3153
2593
|
break $l$block;
|
|
3154
2594
|
}
|
|
3155
|
-
var minValue = minElem.
|
|
2595
|
+
var minValue = minElem.ly_1;
|
|
3156
2596
|
do {
|
|
3157
|
-
var e = iterator.
|
|
3158
|
-
var v = e.
|
|
2597
|
+
var e = iterator.m1();
|
|
2598
|
+
var v = e.ly_1;
|
|
3159
2599
|
if (compareTo(minValue, v) > 0) {
|
|
3160
2600
|
minElem = e;
|
|
3161
2601
|
minValue = v;
|
|
3162
2602
|
}
|
|
3163
2603
|
}
|
|
3164
|
-
while (iterator.
|
|
2604
|
+
while (iterator.l1());
|
|
3165
2605
|
tmp$ret$4 = minElem;
|
|
3166
2606
|
}
|
|
3167
2607
|
var firstSegment = tmp$ret$4;
|
|
3168
|
-
var r = this.
|
|
3169
|
-
var s = this.
|
|
2608
|
+
var r = this.h17();
|
|
2609
|
+
var s = this.f17();
|
|
3170
2610
|
var segment = firstSegment;
|
|
3171
2611
|
append_elements: while (true) {
|
|
3172
2612
|
var inductionVariable = 0;
|
|
@@ -3175,21 +2615,22 @@ function BufferedChannel() {
|
|
|
3175
2615
|
process_cell: do {
|
|
3176
2616
|
var i = inductionVariable;
|
|
3177
2617
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3178
|
-
var tmp0_0 = segment.
|
|
2618
|
+
var tmp0_0 = segment.ly_1;
|
|
3179
2619
|
// Inline function 'kotlin.Long.times' call
|
|
3180
2620
|
var other = get_SEGMENT_SIZE();
|
|
3181
2621
|
// Inline function 'kotlin.Long.plus' call
|
|
3182
|
-
var
|
|
3183
|
-
|
|
2622
|
+
var this_1 = multiply(tmp0_0, fromInt(other));
|
|
2623
|
+
var globalCellIndex = add(this_1, fromInt(i));
|
|
2624
|
+
if (globalCellIndex >= s && globalCellIndex >= r)
|
|
3184
2625
|
break append_elements;
|
|
3185
|
-
var cellState = segment.
|
|
3186
|
-
var element_0 = segment.
|
|
2626
|
+
var cellState = segment.x15(i);
|
|
2627
|
+
var element_0 = segment.u15(i);
|
|
3187
2628
|
var tmp;
|
|
3188
2629
|
if (!(cellState == null) ? isInterface(cellState, CancellableContinuation()) : false) {
|
|
3189
|
-
tmp = globalCellIndex
|
|
2630
|
+
tmp = globalCellIndex < r && globalCellIndex >= s ? 'receive' : globalCellIndex < s && globalCellIndex >= r ? 'send' : 'cont';
|
|
3190
2631
|
} else {
|
|
3191
2632
|
if (!(cellState == null) ? isInterface(cellState, SelectInstance()) : false) {
|
|
3192
|
-
tmp = globalCellIndex
|
|
2633
|
+
tmp = globalCellIndex < r && globalCellIndex >= s ? 'onReceive' : globalCellIndex < s && globalCellIndex >= r ? 'onSend' : 'select';
|
|
3193
2634
|
} else {
|
|
3194
2635
|
if (cellState instanceof ReceiveCatching()) {
|
|
3195
2636
|
tmp = 'receiveCatching';
|
|
@@ -3216,13 +2657,13 @@ function BufferedChannel() {
|
|
|
3216
2657
|
}
|
|
3217
2658
|
var cellStateString = tmp;
|
|
3218
2659
|
if (!(element_0 == null)) {
|
|
3219
|
-
sb.
|
|
2660
|
+
sb.ob('(' + cellStateString + ',' + toString(element_0) + '),');
|
|
3220
2661
|
} else {
|
|
3221
|
-
sb.
|
|
2662
|
+
sb.ob(cellStateString + ',');
|
|
3222
2663
|
}
|
|
3223
2664
|
}
|
|
3224
2665
|
while (inductionVariable < last_0);
|
|
3225
|
-
var tmp2_elvis_lhs = segment.
|
|
2666
|
+
var tmp2_elvis_lhs = segment.v16();
|
|
3226
2667
|
var tmp_0;
|
|
3227
2668
|
if (tmp2_elvis_lhs == null) {
|
|
3228
2669
|
break append_elements;
|
|
@@ -3232,14 +2673,14 @@ function BufferedChannel() {
|
|
|
3232
2673
|
segment = tmp_0;
|
|
3233
2674
|
}
|
|
3234
2675
|
if (last(sb) === _Char___init__impl__6a9atx(44)) {
|
|
3235
|
-
sb.
|
|
2676
|
+
sb.ah(sb.a() - 1 | 0);
|
|
3236
2677
|
}
|
|
3237
|
-
sb.
|
|
2678
|
+
sb.ob(']');
|
|
3238
2679
|
return sb.toString();
|
|
3239
2680
|
}
|
|
3240
2681
|
}
|
|
3241
|
-
protoOf($).
|
|
3242
|
-
protoOf($).
|
|
2682
|
+
protoOf($).w18 = close$default;
|
|
2683
|
+
protoOf($).y18 = cancel$default;
|
|
3243
2684
|
initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
|
|
3244
2685
|
BufferedChannelClass = $;
|
|
3245
2686
|
}
|
|
@@ -3250,10 +2691,10 @@ function WaiterEB() {
|
|
|
3250
2691
|
if (WaiterEBClass === VOID) {
|
|
3251
2692
|
class $ {
|
|
3252
2693
|
constructor(waiter) {
|
|
3253
|
-
this.
|
|
2694
|
+
this.k17_1 = waiter;
|
|
3254
2695
|
}
|
|
3255
2696
|
toString() {
|
|
3256
|
-
return 'WaiterEB(' + toString_0(this.
|
|
2697
|
+
return 'WaiterEB(' + toString_0(this.k17_1) + ')';
|
|
3257
2698
|
}
|
|
3258
2699
|
}
|
|
3259
2700
|
initMetadataForClass($, 'WaiterEB');
|
|
@@ -3265,11 +2706,11 @@ function initialBufferEnd(capacity) {
|
|
|
3265
2706
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3266
2707
|
switch (capacity) {
|
|
3267
2708
|
case 0:
|
|
3268
|
-
return
|
|
2709
|
+
return 0n;
|
|
3269
2710
|
case 2147483647:
|
|
3270
|
-
return
|
|
2711
|
+
return 9223372036854775807n;
|
|
3271
2712
|
default:
|
|
3272
|
-
return
|
|
2713
|
+
return fromInt(capacity);
|
|
3273
2714
|
}
|
|
3274
2715
|
}
|
|
3275
2716
|
var ReceiveCatchingClass;
|
|
@@ -3285,10 +2726,10 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
3285
2726
|
onCancellation = onCancellation === VOID ? null : onCancellation;
|
|
3286
2727
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3287
2728
|
// Inline function 'kotlin.let' call
|
|
3288
|
-
var token = _this__u8e3s4.
|
|
2729
|
+
var token = _this__u8e3s4.ix(value, null, onCancellation);
|
|
3289
2730
|
var tmp;
|
|
3290
2731
|
if (!(token == null)) {
|
|
3291
|
-
_this__u8e3s4.
|
|
2732
|
+
_this__u8e3s4.jx(token);
|
|
3292
2733
|
tmp = true;
|
|
3293
2734
|
} else {
|
|
3294
2735
|
tmp = false;
|
|
@@ -3297,11 +2738,11 @@ function tryResume0(_this__u8e3s4, value, onCancellation) {
|
|
|
3297
2738
|
}
|
|
3298
2739
|
function constructEBCompletedAndPauseFlag(counter, pauseEB) {
|
|
3299
2740
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3300
|
-
return (pauseEB ?
|
|
2741
|
+
return add(pauseEB ? 4611686018427387904n : 0n, counter);
|
|
3301
2742
|
}
|
|
3302
2743
|
function constructSendersAndCloseStatus(counter, closeStatus) {
|
|
3303
2744
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3304
|
-
return
|
|
2745
|
+
return add(shiftLeft(fromInt(closeStatus), 60), counter);
|
|
3305
2746
|
}
|
|
3306
2747
|
function createSegmentFunction() {
|
|
3307
2748
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
@@ -3309,12 +2750,10 @@ function createSegmentFunction() {
|
|
|
3309
2750
|
}
|
|
3310
2751
|
function createSegment(id, prev) {
|
|
3311
2752
|
_init_properties_BufferedChannel_kt__d6uc4y();
|
|
3312
|
-
return new (ChannelSegment())(id, prev, prev.
|
|
2753
|
+
return new (ChannelSegment())(id, prev, prev.r15(), 0);
|
|
3313
2754
|
}
|
|
3314
2755
|
function createSegment$ref() {
|
|
3315
|
-
var l =
|
|
3316
|
-
return createSegment(p0, p1);
|
|
3317
|
-
};
|
|
2756
|
+
var l = (p0, p1) => createSegment(p0, p1);
|
|
3318
2757
|
l.callableName = 'createSegment';
|
|
3319
2758
|
return l;
|
|
3320
2759
|
}
|
|
@@ -3322,7 +2761,7 @@ var properties_initialized_BufferedChannel_kt_58tjvw;
|
|
|
3322
2761
|
function _init_properties_BufferedChannel_kt__d6uc4y() {
|
|
3323
2762
|
if (!properties_initialized_BufferedChannel_kt_58tjvw) {
|
|
3324
2763
|
properties_initialized_BufferedChannel_kt_58tjvw = true;
|
|
3325
|
-
NULL_SEGMENT = new (ChannelSegment())(
|
|
2764
|
+
NULL_SEGMENT = new (ChannelSegment())(-1n, null, null, 0);
|
|
3326
2765
|
SEGMENT_SIZE = systemProp('kotlinx.coroutines.bufferedChannel.segmentSize', 32);
|
|
3327
2766
|
EXPAND_BUFFER_COMPLETION_WAIT_ITERATIONS = systemProp('kotlinx.coroutines.bufferedChannel.expandBufferCompletionWaitIterations', 10000);
|
|
3328
2767
|
BUFFERED = new (Symbol())('BUFFERED');
|