@solibo/solibo-sdk 1.57.9 → 1.58.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/internal/format/FieldSpec.mjs +4 -4
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +2 -2
- package/KotlinBigInteger-bignum/com/ionspin/kotlin/bignum/decimal/BigDecimal.mjs +2 -2
- package/KotlinBigInteger-bignum/com/ionspin/kotlin/bignum/decimal/BigDecimalExtensions.mjs +2 -2
- package/KotlinBigInteger-bignum/com/ionspin/kotlin/bignum/integer/BigInteger.mjs +2 -2
- package/KotlinBigInteger-bignum/com/ionspin/kotlin/bignum/integer/BigIntegerExtensions.mjs +2 -2
- package/client-core.mjs +71 -7
- package/client.d.mts +38 -1
- package/core.d.mts +2 -2
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoAesCbc.mjs +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoAesCtr.mjs +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoAesGcm.mjs +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoEcdh.mjs +3 -3
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoEcdsa.mjs +3 -3
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoEdDsa.mjs +2 -2
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoHmac.mjs +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoRsaOaep.mjs +3 -3
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoRsaPkcs1.mjs +3 -3
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoRsaPss.mjs +3 -3
- package/cryptography-kotlin-cryptography-provider-webcrypto/dev/whyoleg/cryptography/providers/webcrypto/algorithms/WebCryptoXdh.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/UnsignedJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +31 -0
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -1
- package/kotlin-kotlin-stdlib/kotlin/time/MonoTimeSource.mjs +2 -0
- package/kotlin-kotlin-stdlib/kotlin/time/TimeSource.mjs +2 -0
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableJob.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Runnable.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Timeout.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Window.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +8 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +128 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +19 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs +50 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Distinct.mjs +215 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Merge.mjs +111 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +2 -273
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +2 -366
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +2 -144
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +648 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +13 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +311 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs +39 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonExceptions.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +2 -2
- package/ktor-ktor-client-auth/io/ktor/client/plugins/auth/Auth.mjs +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/fetch/LibDom.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/HttpCache.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/HttpCacheEntry.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/HttpCacheLegacy.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/HttpCacheValidation.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/storage/DisabledCacheStorage.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/storage/HttpCacheStorage.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cache/storage/UnlimitedCacheStorage.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/cookies/HttpCookies.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/observer/ResponseObserver.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +2 -2
- package/ktor-ktor-client-encoding/io/ktor/client/plugins/compression/ContentEncoding.mjs +1 -1
- package/ktor-ktor-client-logging/io/ktor/client/plugins/logging/Logging.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +2 -2
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +2 -2
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +2 -2
- package/ktor-ktor-http/io/ktor/http/Url.mjs +2 -2
- package/ktor-ktor-http/io/ktor/http/content/CompressedContent.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.js.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/DefaultWebSocketSession.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/PingPong.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +11 -2
- package/package.json +1 -1
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-4.mjs +5 -5
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-6.mjs +8 -8
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-7.mjs +4 -4
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-8.mjs +21 -21
- package/solibo-cycles/Kotlin-DateTime-library-kotlinx-datetime-9.mjs +9 -9
- package/solibo-cycles/cryptography-kotlin-cryptography-serialization-asn1-modules-3.mjs +3 -3
- package/solibo-cycles/kotlin-kotlin-stdlib-10.mjs +11 -11
- package/solibo-cycles/kotlin-kotlin-stdlib-13.mjs +297 -245
- package/solibo-cycles/kotlin-kotlin-stdlib-14.mjs +250 -428
- package/solibo-cycles/kotlin-kotlin-stdlib-15.mjs +482 -0
- package/solibo-cycles/kotlinx-coroutines-core-17.mjs +5576 -3023
- package/solibo-cycles/kotlinx-coroutines-core-18.mjs +3500 -365
- package/solibo-cycles/kotlinx-coroutines-core-19.mjs +1316 -0
- package/solibo-cycles/kotlinx-io-kotlinx-io-core-20.mjs +602 -336
- package/solibo-cycles/kotlinx-io-kotlinx-io-core-21.mjs +383 -0
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-core-22.mjs +4075 -145
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-core-23.mjs +188 -196
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-core-24.mjs +186 -360
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-core-25.mjs +392 -0
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-json-26.mjs +227 -3646
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-json-27.mjs +3638 -143
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-json-28.mjs +179 -0
- package/solibo-cycles/ktor-ktor-client-core-29.mjs +3004 -427
- package/solibo-cycles/ktor-ktor-client-core-30.mjs +455 -3061
- package/solibo-cycles/ktor-ktor-client-core-31.mjs +3176 -0
- package/solibo-cycles/{ktor-ktor-http-31.mjs → ktor-ktor-http-32.mjs} +5 -5
- package/solibo-cycles/ktor-ktor-io-33.mjs +2950 -342
- package/solibo-cycles/ktor-ktor-io-34.mjs +412 -0
- package/solibo-cycles/ktor-ktor-utils-35.mjs +557 -312
- package/solibo-cycles/ktor-ktor-utils-36.mjs +329 -218
- package/solibo-cycles/ktor-ktor-utils-37.mjs +245 -0
- package/solibo-cycles/{solibo-sdk-sdk-api-document-39.mjs → solibo-sdk-sdk-api-document-40.mjs} +1 -1
- package/solibo-cycles/solibo-sdk-sdk-api-resident-43.mjs +819 -332
- package/solibo-cycles/solibo-sdk-sdk-api-resident-44.mjs +745 -1431
- package/solibo-cycles/solibo-sdk-sdk-api-resident-45.mjs +1597 -0
- package/solibo-cycles/solibo-sdk-sdk-core-47.mjs +1020 -3585
- package/solibo-cycles/solibo-sdk-sdk-core-48.mjs +3984 -2184
- package/solibo-cycles/solibo-sdk-sdk-core-49.mjs +2634 -580
- package/solibo-cycles/solibo-sdk-sdk-core-50.mjs +597 -1902
- package/solibo-cycles/solibo-sdk-sdk-core-51.mjs +1873 -943
- package/solibo-cycles/solibo-sdk-sdk-core-52.mjs +1147 -9240
- package/solibo-cycles/solibo-sdk-sdk-core-53.mjs +8074 -3853
- package/solibo-cycles/solibo-sdk-sdk-core-54.mjs +5135 -0
- package/solibo-sdk-sdk/no/solibo/oss/sdk/SoliboSDK.mjs +1 -1
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/IntegratedDocumentMutation.export.d.mts +18 -0
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/IntegratedDocumentMutation.mjs +3411 -463
- package/solibo-sdk-sdk/no/solibo/oss/sdk/api/MockHomeApi.mjs +874 -707
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/NewCommunicationCommentPushPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/NewMessageInConversationPushPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/NewNeighborhoodPostPushPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/NewOppslagPushPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/NewPracticalInfoPushPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-communication/no/solibo/oss/sdk/api/gen/models/PushNotificationPayload.mjs +2 -2
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/DocumentUploader.mjs +2 -2
- package/solibo-sdk-sdk-api-document/no/solibo/oss/sdk/api/DocumentsApi.mjs +2 -2
- package/solibo-sdk-sdk-api-follow-up/no/solibo/oss/sdk/api/gen/models/ExpenseFollowUp.mjs +2 -2
- package/solibo-sdk-sdk-api-follow-up/no/solibo/oss/sdk/api/gen/models/FollowUp.mjs +2 -2
- package/solibo-sdk-sdk-api-follow-up/no/solibo/oss/sdk/api/gen/models/MeetingProtocolFollowUp.mjs +2 -2
- package/solibo-sdk-sdk-api-follow-up/no/solibo/oss/sdk/api/gen/models/SupplierInvoiceFollowUp.mjs +2 -2
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/CreateExternalCustomerCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/CreateExternalOrganizationCustomerCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-invoicing/no/solibo/oss/sdk/api/gen/models/CreateExternalPersonCustomerCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/ResidentOperations.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/ResidentsApi.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/CreateOrganizationResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/CreatePersonResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/CreateResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateOrganizationResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdatePersonResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-resident/no/solibo/oss/sdk/api/gen/models/UpdateResidentCommand.mjs +2 -2
- package/solibo-sdk-sdk-api-third-party-information/no/solibo/oss/sdk/api/gen/models/ThirdPartyInformationAltinnError.mjs +2 -2
- package/solibo-sdk-sdk-api-third-party-information/no/solibo/oss/sdk/api/gen/models/ThirdPartyInformationEmailError.mjs +2 -2
- package/solibo-sdk-sdk-api-third-party-information/no/solibo/oss/sdk/api/gen/models/ThirdPartyInformationError.mjs +2 -2
- package/solibo-sdk-sdk-api-third-party-information/no/solibo/oss/sdk/api/gen/models/ThirdPartyInformationPostenError.mjs +2 -2
- package/solibo-sdk-sdk-api-third-party-information/no/solibo/oss/sdk/api/gen/models/ThirdPartyInformationProcessError.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/Platform.js.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/SoliboSDKBase.mjs +1 -1
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/EventBus.export.d.mts +3 -1
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/EventBus.mjs +743 -69
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/EventBusAccess.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/EventBusSubscriptions.mjs +75 -25
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/HomeApiBase.export.d.mts +1 -0
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/HomeApiBase.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/ApiClient.mjs +1 -1
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Ack.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/AckedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Attendance.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/AuthUser.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/BoardParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ClientUser.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ClientUserParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ConversationEventPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ConversationMessagePayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ConversationTypingPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ConversationUpdatedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Customer.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/DomainEventPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/EmployeeParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/EventBusErrorPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/GenericPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/HeartbeatPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/IncomingEventBusMessage.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/InquiryParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/OrganizationCustomer.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/OrganizationParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/OrganizationResident.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Participant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/PersonCustomer.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/PersonParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/PersonResident.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/PersonUser.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Ping.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Pong.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ReplayCompletePayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Resident.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ResidentRelationshipAggregate.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/ResidentRelationshipPeriod.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextAckedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextClose.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextErrorPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextOpen.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextOpenedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextPresence.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextPresencePayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextSyncedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextUpdate.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SharedTextUpdatePayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Subscribe.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SubscribedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SubscriptionEndedPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/SupplierContactParticipant.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Typing.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/Unsubscribe.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/models/WebSocketPayload.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/auth/Auth.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/auth/SignInResult.mjs +2 -2
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
- package/solibo-sdk-sdk.d.mts +22 -1
- package/solibo-cycles/kotlinx-coroutines-core-16.mjs +0 -5952
- package/solibo-cycles/kotlinx-io-kotlinx-io-core-19.mjs +0 -649
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-core-21.mjs +0 -4140
- package/solibo-cycles/kotlinx-serialization-kotlinx-serialization-json-25.mjs +0 -255
- package/solibo-cycles/ktor-ktor-client-core-28.mjs +0 -3147
- package/solibo-cycles/ktor-ktor-io-32.mjs +0 -3020
- package/solibo-cycles/ktor-ktor-utils-34.mjs +0 -601
- package/solibo-cycles/solibo-sdk-sdk-api-resident-42.mjs +0 -1398
- package/solibo-cycles/solibo-sdk-sdk-core-46.mjs +0 -2166
- /package/solibo-cycles/{KotlinBigInteger-bignum-15.mjs → KotlinBigInteger-bignum-16.mjs} +0 -0
- /package/solibo-cycles/{ktor-ktor-websockets-37.mjs → ktor-ktor-websockets-38.mjs} +0 -0
- /package/solibo-cycles/{solibo-sdk-sdk-api-communication-38.mjs → solibo-sdk-sdk-api-communication-39.mjs} +0 -0
- /package/solibo-cycles/{solibo-sdk-sdk-api-follow-up-40.mjs → solibo-sdk-sdk-api-follow-up-41.mjs} +0 -0
- /package/solibo-cycles/{solibo-sdk-sdk-api-invoicing-41.mjs → solibo-sdk-sdk-api-invoicing-42.mjs} +0 -0
- /package/solibo-cycles/{solibo-sdk-sdk-api-third-party-information-45.mjs → solibo-sdk-sdk-api-third-party-information-46.mjs} +0 -0
|
@@ -1,179 +1,3674 @@
|
|
|
1
|
-
// Generated by sdk/scripts/post-process-per-file.js from an import cycle of
|
|
2
|
-
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/
|
|
1
|
+
// Generated by sdk/scripts/post-process-per-file.js from an import cycle of 8 files; see collapseCycles.
|
|
2
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs
|
|
3
|
+
import {
|
|
4
|
+
Composer1pt8hwk95abxi as Composer,
|
|
5
|
+
ComposerForUnquotedLiterals3v0rwxdudtla9 as ComposerForUnquotedLiterals,
|
|
6
|
+
ComposerForUnsignedNumbers2h1dv6l9z3aef as ComposerForUnsignedNumbers
|
|
7
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs";
|
|
3
8
|
import {
|
|
4
|
-
captureStack1fzi4aczwc4hg as captureStack,
|
|
5
9
|
protoOf180f3jzyo7rfj as protoOf,
|
|
6
|
-
|
|
10
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
11
|
+
equals2au1ep9vhcato as equals,
|
|
12
|
+
toString1pkumu07cwy4m as toString
|
|
7
13
|
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
14
|
+
import {
|
|
15
|
+
_Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx,
|
|
16
|
+
toString1n9qg6fb0b5i8 as toString_0
|
|
17
|
+
} from "../kotlin-kotlin-stdlib/kotlin/Char.mjs";
|
|
18
|
+
import { AbstractEncoder2gxtu3xmy3f8j as AbstractEncoder } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs";
|
|
19
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
20
|
+
import { AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs";
|
|
21
|
+
import {
|
|
22
|
+
CLASS_getInstance3jy3ydw5832xx as CLASS_getInstance,
|
|
23
|
+
OBJECT_getInstancerq52wx6ymebx as OBJECT_getInstance
|
|
24
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs";
|
|
25
|
+
import {
|
|
26
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
27
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE
|
|
28
|
+
} from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
29
|
+
import { ClassDiscriminatorMode_NONE_getInstance30klgvxbw1mx1 as ClassDiscriminatorMode_NONE_getInstance } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs";
|
|
30
|
+
import {
|
|
31
|
+
classDiscriminator9fd3hvqsgfqq as classDiscriminator,
|
|
32
|
+
access$checkEncodingConflicts$tPolymorphicKt2migrcemidykb as access$checkEncodingConflicts$tPolymorphicKt,
|
|
33
|
+
checkKind2e7hdnuk9c0tp as checkKind
|
|
34
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs";
|
|
35
|
+
import { IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$ } from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
36
|
+
import { findPolymorphicSerializerk638ixyjovk5 as findPolymorphicSerializer } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs";
|
|
37
|
+
import { SerializationStrategyh6ouydnm6hci as SerializationStrategy } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs";
|
|
38
|
+
import { isInterface3d6p8outrmvmk as isInterface } from "../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs";
|
|
39
|
+
import { switchMode35g725ikhjpwv as switchMode } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs";
|
|
40
|
+
import { getJsonElementName36ciq3w3g8x0l as getJsonElementName } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs";
|
|
41
|
+
import { InvalidFloatingPointEncoded1h6zoomba5tnf as InvalidFloatingPointEncoded } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs";
|
|
42
|
+
import {
|
|
43
|
+
isFinite1tx0gn65nl9tj as isFinite,
|
|
44
|
+
isFinite2t9l5a275mxm6 as isFinite_0
|
|
45
|
+
} from "../kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs";
|
|
46
|
+
import { JsonEncoder1qlse6simkfi1 as JsonEncoder } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonEncoder.mjs";
|
|
8
47
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
9
48
|
import { VOID3gxj6tk5isa35 as VOID } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
49
|
+
import { Companion_getInstance1crempiiqys0g as Companion_getInstance } from "../kotlin-kotlin-stdlib/kotlin/UInt.mjs";
|
|
10
50
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
serializer3ikrxnm8b29d6 as serializer,
|
|
52
|
+
serializer2lw83vwvpnyms as serializer_0,
|
|
53
|
+
serializer36584sjyg5661 as serializer_1,
|
|
54
|
+
serializer1q7c5q67ysppr as serializer_2
|
|
55
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs";
|
|
56
|
+
import { Companion_getInstance11ies3wlxhmd7 as Companion_getInstance_0 } from "../kotlin-kotlin-stdlib/kotlin/ULong.mjs";
|
|
57
|
+
import { Companion_getInstanceb1xi7131i8df as Companion_getInstance_1 } from "../kotlin-kotlin-stdlib/kotlin/UByte.mjs";
|
|
58
|
+
import { Companion_getInstance1foc7f9q9rk1s as Companion_getInstance_2 } from "../kotlin-kotlin-stdlib/kotlin/UShort.mjs";
|
|
59
|
+
import { setOf45ia9pnfhe90 as setOf } from "../kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs";
|
|
60
|
+
function get_unsignedNumberDescriptors() {
|
|
61
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
62
|
+
return unsignedNumberDescriptors;
|
|
63
|
+
}
|
|
64
|
+
var unsignedNumberDescriptors;
|
|
65
|
+
function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
|
|
66
|
+
StreamingJsonEncoder().call($this, Composer(output, json), json, mode, modeReuseCache);
|
|
67
|
+
return $this;
|
|
68
|
+
}
|
|
69
|
+
function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
|
|
70
|
+
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder())));
|
|
71
|
+
}
|
|
72
|
+
function encodeTypeInfo($this, discriminator, serialName) {
|
|
73
|
+
$this.composer_1.nextItem_40n9p2_k$();
|
|
74
|
+
$this.encodeString_424b5v_k$(discriminator);
|
|
75
|
+
$this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(58));
|
|
76
|
+
$this.composer_1.space_po67ue_k$();
|
|
77
|
+
$this.encodeString_424b5v_k$(serialName);
|
|
78
|
+
}
|
|
79
|
+
var StreamingJsonEncoderClass;
|
|
80
|
+
function StreamingJsonEncoder() {
|
|
81
|
+
if (StreamingJsonEncoderClass === VOID) {
|
|
82
|
+
let $ = function(composer, json, mode, modeReuseCache) {
|
|
83
|
+
AbstractEncoder().call(this);
|
|
84
|
+
this.composer_1 = composer;
|
|
85
|
+
this.json_1 = json;
|
|
86
|
+
this.mode_1 = mode;
|
|
87
|
+
this.modeReuseCache_1 = modeReuseCache;
|
|
88
|
+
this.serializersModule_1 = this.json_1.get_serializersModule_piitvg_k$();
|
|
89
|
+
this.configuration_1 = this.json_1.configuration_1;
|
|
90
|
+
this.forceQuoting_1 = false;
|
|
91
|
+
this.polymorphicDiscriminator_1 = null;
|
|
92
|
+
this.polymorphicSerialName_1 = null;
|
|
93
|
+
var i = this.mode_1.ordinal_1;
|
|
94
|
+
if (!(this.modeReuseCache_1 == null)) {
|
|
95
|
+
if (!(this.modeReuseCache_1[i] === null) || !(this.modeReuseCache_1[i] === this)) {
|
|
96
|
+
this.modeReuseCache_1[i] = this;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
initMetadataForClass($, "StreamingJsonEncoder", VOID, AbstractEncoder(), [JsonEncoder()]);
|
|
101
|
+
protoOf($).get_json_woos35_k$ = function() {
|
|
102
|
+
return this.json_1;
|
|
103
|
+
};
|
|
104
|
+
protoOf($).get_serializersModule_piitvg_k$ = function() {
|
|
105
|
+
return this.serializersModule_1;
|
|
106
|
+
};
|
|
107
|
+
protoOf($).shouldEncodeElementDefault_x8eyid_k$ = function(descriptor, index) {
|
|
108
|
+
return this.configuration_1.encodeDefaults_1;
|
|
109
|
+
};
|
|
110
|
+
protoOf($).encodeSerializableValue_3uuzip_k$ = function(serializer4, value) {
|
|
111
|
+
$l$block: {
|
|
112
|
+
if (this.get_json_woos35_k$().configuration_1.useArrayPolymorphism_1) {
|
|
113
|
+
serializer4.serialize_5ase3y_k$(this, value);
|
|
114
|
+
break $l$block;
|
|
115
|
+
}
|
|
116
|
+
var isPolymorphicSerializer = serializer4 instanceof AbstractPolymorphicSerializer();
|
|
117
|
+
var tmp;
|
|
118
|
+
if (isPolymorphicSerializer) {
|
|
119
|
+
tmp = !this.get_json_woos35_k$().configuration_1.classDiscriminatorMode_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
120
|
+
} else {
|
|
121
|
+
var tmp_0;
|
|
122
|
+
switch (this.get_json_woos35_k$().configuration_1.classDiscriminatorMode_1.ordinal_1) {
|
|
123
|
+
case 0:
|
|
124
|
+
case 2:
|
|
125
|
+
tmp_0 = false;
|
|
126
|
+
break;
|
|
127
|
+
case 1:
|
|
128
|
+
var it = serializer4.get_descriptor_wjt6a0_k$().get_kind_wop7ml_k$();
|
|
129
|
+
tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
noWhenBranchMatchedException();
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
tmp = tmp_0;
|
|
136
|
+
}
|
|
137
|
+
var needDiscriminator = tmp;
|
|
138
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer4.get_descriptor_wjt6a0_k$(), this.get_json_woos35_k$()) : null;
|
|
139
|
+
var tmp_1;
|
|
140
|
+
if (isPolymorphicSerializer) {
|
|
141
|
+
var casted = serializer4 instanceof AbstractPolymorphicSerializer() ? serializer4 : THROW_CCE();
|
|
142
|
+
$l$block_0: {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
var message = "Value for serializer " + toString(serializer4.get_descriptor_wjt6a0_k$()) + " should always be non-null. Please report issue to the kotlinx.serialization tracker.";
|
|
145
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
146
|
+
} else {
|
|
147
|
+
break $l$block_0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
var actual = findPolymorphicSerializer(casted, this, value);
|
|
151
|
+
tmp_1 = isInterface(actual, SerializationStrategy()) ? actual : THROW_CCE();
|
|
152
|
+
} else {
|
|
153
|
+
tmp_1 = serializer4;
|
|
154
|
+
}
|
|
155
|
+
var actualSerializer = tmp_1;
|
|
156
|
+
if (!(baseClassDiscriminator == null)) {
|
|
157
|
+
access$checkEncodingConflicts$tPolymorphicKt(this.get_json_woos35_k$(), serializer4, actualSerializer, baseClassDiscriminator);
|
|
158
|
+
checkKind(actualSerializer.get_descriptor_wjt6a0_k$().get_kind_wop7ml_k$());
|
|
159
|
+
var serialName = actualSerializer.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
|
|
160
|
+
this.polymorphicDiscriminator_1 = baseClassDiscriminator;
|
|
161
|
+
this.polymorphicSerialName_1 = serialName;
|
|
162
|
+
}
|
|
163
|
+
actualSerializer.serialize_5ase3y_k$(this, value);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
protoOf($).beginStructure_yljocp_k$ = function(descriptor) {
|
|
167
|
+
var newMode = switchMode(this.json_1, descriptor);
|
|
168
|
+
if (!(newMode.begin_1 === _Char___init__impl__6a9atx(0))) {
|
|
169
|
+
this.composer_1.print_49c4ow_k$(newMode.begin_1);
|
|
170
|
+
this.composer_1.indent_cuntic_k$();
|
|
171
|
+
}
|
|
172
|
+
var discriminator = this.polymorphicDiscriminator_1;
|
|
173
|
+
if (!(discriminator == null)) {
|
|
174
|
+
var tmp0_elvis_lhs = this.polymorphicSerialName_1;
|
|
175
|
+
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.get_serialName_u2rqhk_k$() : tmp0_elvis_lhs);
|
|
176
|
+
this.polymorphicDiscriminator_1 = null;
|
|
177
|
+
this.polymorphicSerialName_1 = null;
|
|
178
|
+
}
|
|
179
|
+
if (this.mode_1.equals(newMode)) {
|
|
180
|
+
return this;
|
|
181
|
+
}
|
|
182
|
+
var tmp1_safe_receiver = this.modeReuseCache_1;
|
|
183
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.ordinal_1];
|
|
184
|
+
return tmp2_elvis_lhs == null ? new (StreamingJsonEncoder())(this.composer_1, this.json_1, newMode, this.modeReuseCache_1) : tmp2_elvis_lhs;
|
|
185
|
+
};
|
|
186
|
+
protoOf($).endStructure_1xqz0n_k$ = function(descriptor) {
|
|
187
|
+
if (!(this.mode_1.end_1 === _Char___init__impl__6a9atx(0))) {
|
|
188
|
+
this.composer_1.unIndent_45q4lx_k$();
|
|
189
|
+
this.composer_1.nextItemIfNotFirst_9wb040_k$();
|
|
190
|
+
this.composer_1.print_49c4ow_k$(this.mode_1.end_1);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
protoOf($).encodeElement_5v7eyb_k$ = function(descriptor, index) {
|
|
194
|
+
switch (this.mode_1.ordinal_1) {
|
|
195
|
+
case 1:
|
|
196
|
+
if (!this.composer_1.writingFirst_1) {
|
|
197
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(44));
|
|
198
|
+
}
|
|
199
|
+
this.composer_1.nextItem_40n9p2_k$();
|
|
200
|
+
break;
|
|
201
|
+
case 2:
|
|
202
|
+
if (!this.composer_1.writingFirst_1) {
|
|
203
|
+
var tmp = this;
|
|
204
|
+
var tmp_0;
|
|
205
|
+
if ((index % 2 | 0) === 0) {
|
|
206
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(44));
|
|
207
|
+
this.composer_1.nextItem_40n9p2_k$();
|
|
208
|
+
tmp_0 = true;
|
|
209
|
+
} else {
|
|
210
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(58));
|
|
211
|
+
this.composer_1.space_po67ue_k$();
|
|
212
|
+
tmp_0 = false;
|
|
213
|
+
}
|
|
214
|
+
tmp.forceQuoting_1 = tmp_0;
|
|
215
|
+
} else {
|
|
216
|
+
this.forceQuoting_1 = true;
|
|
217
|
+
this.composer_1.nextItem_40n9p2_k$();
|
|
218
|
+
}
|
|
219
|
+
break;
|
|
220
|
+
case 3:
|
|
221
|
+
if (index === 0)
|
|
222
|
+
this.forceQuoting_1 = true;
|
|
223
|
+
if (index === 1) {
|
|
224
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(44));
|
|
225
|
+
this.composer_1.space_po67ue_k$();
|
|
226
|
+
this.forceQuoting_1 = false;
|
|
227
|
+
}
|
|
228
|
+
break;
|
|
229
|
+
default:
|
|
230
|
+
if (!this.composer_1.writingFirst_1) {
|
|
231
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(44));
|
|
232
|
+
}
|
|
233
|
+
this.composer_1.nextItem_40n9p2_k$();
|
|
234
|
+
this.encodeString_424b5v_k$(getJsonElementName(descriptor, this.json_1, index));
|
|
235
|
+
this.composer_1.print_49c4ow_k$(_Char___init__impl__6a9atx(58));
|
|
236
|
+
this.composer_1.space_po67ue_k$();
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
return true;
|
|
240
|
+
};
|
|
241
|
+
protoOf($).encodeNullableSerializableElement_5lquiv_k$ = function(descriptor, index, serializer4, value) {
|
|
242
|
+
if (!(value == null) || this.configuration_1.explicitNulls_1) {
|
|
243
|
+
protoOf(AbstractEncoder()).encodeNullableSerializableElement_5lquiv_k$.call(this, descriptor, index, serializer4, value);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
protoOf($).encodeInline_wxp5pu_k$ = function(descriptor) {
|
|
247
|
+
var tmp;
|
|
248
|
+
if (get_isUnsignedNumber(descriptor)) {
|
|
249
|
+
var tmp_0;
|
|
250
|
+
var tmp_1 = this.composer_1;
|
|
251
|
+
if (tmp_1 instanceof ComposerForUnsignedNumbers()) {
|
|
252
|
+
tmp_0 = this.composer_1;
|
|
253
|
+
} else {
|
|
254
|
+
var tmp0 = this.composer_1.writer_1;
|
|
255
|
+
var p1 = this.forceQuoting_1;
|
|
256
|
+
tmp_0 = new (ComposerForUnsignedNumbers())(tmp0, p1);
|
|
257
|
+
}
|
|
258
|
+
var tmp$ret$0 = tmp_0;
|
|
259
|
+
tmp = new (StreamingJsonEncoder())(tmp$ret$0, this.json_1, this.mode_1, null);
|
|
260
|
+
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
261
|
+
var tmp_2;
|
|
262
|
+
var tmp_3 = this.composer_1;
|
|
263
|
+
if (tmp_3 instanceof ComposerForUnquotedLiterals()) {
|
|
264
|
+
tmp_2 = this.composer_1;
|
|
265
|
+
} else {
|
|
266
|
+
var tmp0_0 = this.composer_1.writer_1;
|
|
267
|
+
var p1_0 = this.forceQuoting_1;
|
|
268
|
+
tmp_2 = new (ComposerForUnquotedLiterals())(tmp0_0, p1_0);
|
|
269
|
+
}
|
|
270
|
+
var tmp$ret$2 = tmp_2;
|
|
271
|
+
tmp = new (StreamingJsonEncoder())(tmp$ret$2, this.json_1, this.mode_1, null);
|
|
272
|
+
} else if (!(this.polymorphicDiscriminator_1 == null)) {
|
|
273
|
+
this.polymorphicSerialName_1 = descriptor.get_serialName_u2rqhk_k$();
|
|
274
|
+
tmp = this;
|
|
275
|
+
} else {
|
|
276
|
+
tmp = protoOf(AbstractEncoder()).encodeInline_wxp5pu_k$.call(this, descriptor);
|
|
277
|
+
}
|
|
278
|
+
return tmp;
|
|
279
|
+
};
|
|
280
|
+
protoOf($).encodeNull_ejiosz_k$ = function() {
|
|
281
|
+
this.composer_1.print_wtfns3_k$("null");
|
|
282
|
+
};
|
|
283
|
+
protoOf($).encodeBoolean_tu2e59_k$ = function(value) {
|
|
284
|
+
if (this.forceQuoting_1) {
|
|
285
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
286
|
+
} else {
|
|
287
|
+
this.composer_1.print_u0bpvs_k$(value);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
protoOf($).encodeByte_6txfee_k$ = function(value) {
|
|
291
|
+
if (this.forceQuoting_1) {
|
|
292
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
293
|
+
} else {
|
|
294
|
+
this.composer_1.print_p65m4b_k$(value);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
protoOf($).encodeShort_gza6si_k$ = function(value) {
|
|
298
|
+
if (this.forceQuoting_1) {
|
|
299
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
300
|
+
} else {
|
|
301
|
+
this.composer_1.print_l5t6fv_k$(value);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
protoOf($).encodeInt_y5zi3z_k$ = function(value) {
|
|
305
|
+
if (this.forceQuoting_1) {
|
|
306
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
307
|
+
} else {
|
|
308
|
+
this.composer_1.print_ay1yo5_k$(value);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
protoOf($).encodeLong_vlw3uq_k$ = function(value) {
|
|
312
|
+
if (this.forceQuoting_1) {
|
|
313
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
314
|
+
} else {
|
|
315
|
+
this.composer_1.print_u23kfb_k$(value);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
protoOf($).encodeFloat_b8b85a_k$ = function(value) {
|
|
319
|
+
if (this.forceQuoting_1) {
|
|
320
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
321
|
+
} else {
|
|
322
|
+
this.composer_1.print_81xt5n_k$(value);
|
|
323
|
+
}
|
|
324
|
+
if (!this.configuration_1.allowSpecialFloatingPointValues_1 && !isFinite(value)) {
|
|
325
|
+
throw InvalidFloatingPointEncoded(value);
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
protoOf($).encodeDouble_n270q9_k$ = function(value) {
|
|
329
|
+
if (this.forceQuoting_1) {
|
|
330
|
+
this.encodeString_424b5v_k$(value.toString());
|
|
331
|
+
} else {
|
|
332
|
+
this.composer_1.print_3xddxz_k$(value);
|
|
333
|
+
}
|
|
334
|
+
if (!this.configuration_1.allowSpecialFloatingPointValues_1 && !isFinite_0(value)) {
|
|
335
|
+
throw InvalidFloatingPointEncoded(value);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
protoOf($).encodeChar_id8ngf_k$ = function(value) {
|
|
339
|
+
this.encodeString_424b5v_k$(toString_0(value));
|
|
340
|
+
};
|
|
341
|
+
protoOf($).encodeString_424b5v_k$ = function(value) {
|
|
342
|
+
return this.composer_1.printQuoted_gtxn2t_k$(value);
|
|
343
|
+
};
|
|
344
|
+
protoOf($).encodeEnum_2qin0y_k$ = function(enumDescriptor, index) {
|
|
345
|
+
this.encodeString_424b5v_k$(enumDescriptor.getElementName_u4sqmf_k$(index));
|
|
346
|
+
};
|
|
347
|
+
StreamingJsonEncoderClass = $;
|
|
348
|
+
}
|
|
349
|
+
return StreamingJsonEncoderClass;
|
|
350
|
+
}
|
|
351
|
+
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
352
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
353
|
+
return _this__u8e3s4.get_isInline_usk17w_k$() && get_unsignedNumberDescriptors().contains_aljjnj_k$(_this__u8e3s4);
|
|
354
|
+
}
|
|
355
|
+
function get_isUnquotedLiteral(_this__u8e3s4) {
|
|
356
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
357
|
+
return _this__u8e3s4.get_isInline_usk17w_k$() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
|
|
358
|
+
}
|
|
359
|
+
var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
|
|
360
|
+
function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
|
|
361
|
+
if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
|
|
362
|
+
properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
|
|
363
|
+
unsignedNumberDescriptors = setOf([serializer(Companion_getInstance()).get_descriptor_wjt6a0_k$(), serializer_0(Companion_getInstance_0()).get_descriptor_wjt6a0_k$(), serializer_1(Companion_getInstance_1()).get_descriptor_wjt6a0_k$(), serializer_2(Companion_getInstance_2()).get_descriptor_wjt6a0_k$()]);
|
|
364
|
+
}
|
|
67
365
|
}
|
|
68
366
|
|
|
69
|
-
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/
|
|
367
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs
|
|
368
|
+
import {
|
|
369
|
+
WriteMode_OBJ_getInstance1vaoooqbofom8 as WriteMode_OBJ_getInstance,
|
|
370
|
+
get_entries1lqoril5i9fco as get_entries
|
|
371
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs";
|
|
372
|
+
function encodeByWriter(json, writer, serializer4, value) {
|
|
373
|
+
var tmp = WriteMode_OBJ_getInstance();
|
|
374
|
+
var size = get_entries().get_size_woubt6_k$();
|
|
375
|
+
var tmp$ret$0 = Array(size);
|
|
376
|
+
var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
|
|
377
|
+
encoder.encodeSerializableValue_3uuzip_k$(serializer4, value);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs
|
|
381
|
+
import { LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$ } from "../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs";
|
|
382
|
+
import {
|
|
383
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance2,
|
|
384
|
+
Unitkvevlwgzwiuc as Unit
|
|
385
|
+
} from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
386
|
+
import { invalidTrailingComma2uwwnmbqspks2 as invalidTrailingComma } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs";
|
|
387
|
+
import { ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$ } from "../kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs";
|
|
388
|
+
import {
|
|
389
|
+
DeepRecursiveFunction3r49v8igsve1g as DeepRecursiveFunction,
|
|
390
|
+
invoke246lvi6tzooz1 as invoke,
|
|
391
|
+
DeepRecursiveScope1pqaydvh4vdcu as DeepRecursiveScope
|
|
392
|
+
} from "../kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs";
|
|
393
|
+
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from "../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs";
|
|
394
|
+
import { protoOf180f3jzyo7rfj as protoOf2 } from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
395
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE2 } from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
396
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from "../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs";
|
|
397
|
+
import {
|
|
398
|
+
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
399
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
400
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass2
|
|
401
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
70
402
|
import { VOID3gxj6tk5isa35 as VOID2 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
403
|
+
import { constructCallableReference23y65rf941mch as constructCallableReference } from "../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs";
|
|
404
|
+
import { tokenDescription3r6eqmtoxe76u as tokenDescription } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs";
|
|
405
|
+
function readObject($this) {
|
|
406
|
+
var lastToken = $this.lexer_1.consumeNextToken_dugwfi_k$(6);
|
|
407
|
+
if ($this.lexer_1.peekNextToken_1gqwr9_k$() === 4) {
|
|
408
|
+
$this.lexer_1.fail$default_ly4hfp_k$("Unexpected leading comma");
|
|
409
|
+
}
|
|
410
|
+
var result = LinkedHashMap_init_$Create$();
|
|
411
|
+
$l$loop: while ($this.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
412
|
+
var key = $this.isLenient_1 ? $this.lexer_1.consumeStringLenient_9oypvu_k$() : $this.lexer_1.consumeString_j3j2z7_k$();
|
|
413
|
+
$this.lexer_1.consumeNextToken_dugwfi_k$(5);
|
|
414
|
+
var element = $this.read_22xsm_k$();
|
|
415
|
+
result.put_4fpzoq_k$(key, element);
|
|
416
|
+
lastToken = $this.lexer_1.consumeNextToken_uf1vsa_k$();
|
|
417
|
+
var tmp0_subject = lastToken;
|
|
418
|
+
if (tmp0_subject !== 4)
|
|
419
|
+
if (tmp0_subject === 7)
|
|
420
|
+
break $l$loop;
|
|
421
|
+
else {
|
|
422
|
+
$this.lexer_1.fail$default_ly4hfp_k$("Expected end of the object or comma");
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
if (lastToken === 6) {
|
|
426
|
+
$this.lexer_1.consumeNextToken_dugwfi_k$(7);
|
|
427
|
+
} else if (lastToken === 4) {
|
|
428
|
+
if (!$this.trailingCommaAllowed_1) {
|
|
429
|
+
invalidTrailingComma($this.lexer_1);
|
|
430
|
+
}
|
|
431
|
+
$this.lexer_1.consumeNextToken_dugwfi_k$(7);
|
|
432
|
+
}
|
|
433
|
+
return new (JsonObject())(result);
|
|
434
|
+
}
|
|
435
|
+
function readObject_0($this, $receiver, $completion) {
|
|
436
|
+
var tmp = new ($readObjectCOROUTINE$())($this, $receiver, $completion);
|
|
437
|
+
tmp.result_1 = Unit_instance2;
|
|
438
|
+
tmp.exception_1 = null;
|
|
439
|
+
return tmp.doResume_5yljmg_k$();
|
|
440
|
+
}
|
|
441
|
+
function readArray($this) {
|
|
442
|
+
var lastToken = $this.lexer_1.consumeNextToken_uf1vsa_k$();
|
|
443
|
+
if ($this.lexer_1.peekNextToken_1gqwr9_k$() === 4) {
|
|
444
|
+
$this.lexer_1.fail$default_ly4hfp_k$("Unexpected leading comma");
|
|
445
|
+
}
|
|
446
|
+
var result = ArrayList_init_$Create$();
|
|
447
|
+
while ($this.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
448
|
+
var element = $this.read_22xsm_k$();
|
|
449
|
+
result.add_utx5q5_k$(element);
|
|
450
|
+
lastToken = $this.lexer_1.consumeNextToken_uf1vsa_k$();
|
|
451
|
+
if (!(lastToken === 4)) {
|
|
452
|
+
var tmp0 = $this.lexer_1;
|
|
453
|
+
var condition = lastToken === 9;
|
|
454
|
+
var position = tmp0.currentPosition_1;
|
|
455
|
+
if (!condition) {
|
|
456
|
+
var tmp$ret$2 = "Expected end of the array or comma";
|
|
457
|
+
tmp0.fail$default_ly4hfp_k$(tmp$ret$2, position);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (lastToken === 8) {
|
|
462
|
+
$this.lexer_1.consumeNextToken_dugwfi_k$(9);
|
|
463
|
+
} else if (lastToken === 4) {
|
|
464
|
+
if (!$this.trailingCommaAllowed_1) {
|
|
465
|
+
invalidTrailingComma($this.lexer_1, "array");
|
|
466
|
+
}
|
|
467
|
+
$this.lexer_1.consumeNextToken_dugwfi_k$(9);
|
|
468
|
+
}
|
|
469
|
+
return new (JsonArray())(result);
|
|
470
|
+
}
|
|
471
|
+
function readValue($this, isString) {
|
|
472
|
+
var tmp;
|
|
473
|
+
if ($this.isLenient_1 || !isString) {
|
|
474
|
+
tmp = $this.lexer_1.consumeStringLenient_9oypvu_k$();
|
|
475
|
+
} else {
|
|
476
|
+
tmp = $this.lexer_1.consumeString_j3j2z7_k$();
|
|
477
|
+
}
|
|
478
|
+
var string = tmp;
|
|
479
|
+
if (!isString && string === "null")
|
|
480
|
+
return JsonNull_getInstance();
|
|
481
|
+
return new (JsonLiteral())(string, isString);
|
|
482
|
+
}
|
|
483
|
+
function readDeepRecursive($this) {
|
|
484
|
+
return invoke(new (DeepRecursiveFunction())(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance2);
|
|
485
|
+
}
|
|
486
|
+
var JsonTreeReader$readDeepRecursive$slambdaClass;
|
|
487
|
+
function JsonTreeReader$readDeepRecursive$slambda() {
|
|
488
|
+
if (JsonTreeReader$readDeepRecursive$slambdaClass === VOID2) {
|
|
489
|
+
let $ = function(this$0, resultContinuation) {
|
|
490
|
+
this.this$0__1 = this$0;
|
|
491
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
492
|
+
};
|
|
493
|
+
initMetadataForLambda($, CoroutineImpl(), VOID2, [2]);
|
|
494
|
+
protoOf2($).invoke_bq9n4h_k$ = function($this$DeepRecursiveFunction, it, $completion) {
|
|
495
|
+
var tmp = this.create_z8vk9n_k$($this$DeepRecursiveFunction, it, $completion);
|
|
496
|
+
tmp.result_1 = Unit_instance2;
|
|
497
|
+
tmp.exception_1 = null;
|
|
498
|
+
return tmp.doResume_5yljmg_k$();
|
|
499
|
+
};
|
|
500
|
+
protoOf2($).invoke_4tzzq6_k$ = function(p1, p2, $completion) {
|
|
501
|
+
var tmp = p1 instanceof DeepRecursiveScope() ? p1 : THROW_CCE2();
|
|
502
|
+
return this.invoke_bq9n4h_k$(tmp, p2 instanceof Unit() ? p2 : THROW_CCE2(), $completion);
|
|
503
|
+
};
|
|
504
|
+
protoOf2($).doResume_5yljmg_k$ = function() {
|
|
505
|
+
var suspendResult = this.result_1;
|
|
506
|
+
$sm: do
|
|
507
|
+
try {
|
|
508
|
+
var tmp = this.state_1;
|
|
509
|
+
switch (tmp) {
|
|
510
|
+
case 0:
|
|
511
|
+
this.exceptionState_1 = 3;
|
|
512
|
+
var tmp0_subject = this.this$0__1.lexer_1.peekNextToken_1gqwr9_k$();
|
|
513
|
+
if (tmp0_subject === 1) {
|
|
514
|
+
this.WHEN_RESULT0__1 = readValue(this.this$0__1, true);
|
|
515
|
+
this.state_1 = 2;
|
|
516
|
+
continue $sm;
|
|
517
|
+
} else {
|
|
518
|
+
if (tmp0_subject === 0) {
|
|
519
|
+
this.WHEN_RESULT0__1 = readValue(this.this$0__1, false);
|
|
520
|
+
this.state_1 = 2;
|
|
521
|
+
continue $sm;
|
|
522
|
+
} else {
|
|
523
|
+
if (tmp0_subject === 6) {
|
|
524
|
+
this.state_1 = 1;
|
|
525
|
+
suspendResult = readObject_0(this.this$0__1, this.$this$DeepRecursiveFunction_1, this);
|
|
526
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
|
+
return suspendResult;
|
|
528
|
+
}
|
|
529
|
+
continue $sm;
|
|
530
|
+
} else {
|
|
531
|
+
if (tmp0_subject === 8) {
|
|
532
|
+
this.WHEN_RESULT0__1 = readArray(this.this$0__1);
|
|
533
|
+
this.state_1 = 2;
|
|
534
|
+
continue $sm;
|
|
535
|
+
} else {
|
|
536
|
+
var tmp_0 = this;
|
|
537
|
+
this.this$0__1.lexer_1.fail$default_ly4hfp_k$("Can't begin reading element, unexpected token");
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
break;
|
|
543
|
+
case 1:
|
|
544
|
+
this.WHEN_RESULT0__1 = suspendResult;
|
|
545
|
+
this.state_1 = 2;
|
|
546
|
+
continue $sm;
|
|
547
|
+
case 2:
|
|
548
|
+
return this.WHEN_RESULT0__1;
|
|
549
|
+
case 3:
|
|
550
|
+
throw this.exception_1;
|
|
551
|
+
}
|
|
552
|
+
} catch ($p) {
|
|
553
|
+
var e = $p;
|
|
554
|
+
if (this.exceptionState_1 === 3) {
|
|
555
|
+
throw e;
|
|
556
|
+
} else {
|
|
557
|
+
this.state_1 = this.exceptionState_1;
|
|
558
|
+
this.exception_1 = e;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
while (true);
|
|
562
|
+
};
|
|
563
|
+
protoOf2($).create_z8vk9n_k$ = function($this$DeepRecursiveFunction, it, completion) {
|
|
564
|
+
var i = new (JsonTreeReader$readDeepRecursive$slambda())(this.this$0__1, completion);
|
|
565
|
+
i.$this$DeepRecursiveFunction_1 = $this$DeepRecursiveFunction;
|
|
566
|
+
i.it_1 = it;
|
|
567
|
+
return i;
|
|
568
|
+
};
|
|
569
|
+
JsonTreeReader$readDeepRecursive$slambdaClass = $;
|
|
570
|
+
}
|
|
571
|
+
return JsonTreeReader$readDeepRecursive$slambdaClass;
|
|
572
|
+
}
|
|
573
|
+
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
574
|
+
var i = new (JsonTreeReader$readDeepRecursive$slambda())(this$0, resultContinuation);
|
|
575
|
+
return constructCallableReference(function($this$DeepRecursiveFunction, it, $completion) {
|
|
576
|
+
return i.invoke_bq9n4h_k$($this$DeepRecursiveFunction, it, $completion);
|
|
577
|
+
}, 2);
|
|
578
|
+
}
|
|
579
|
+
var $readObjectCOROUTINE$Class;
|
|
580
|
+
function $readObjectCOROUTINE$() {
|
|
581
|
+
if ($readObjectCOROUTINE$Class === VOID2) {
|
|
582
|
+
let $ = function(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
583
|
+
CoroutineImpl().call(this, resultContinuation);
|
|
584
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
585
|
+
this._this__u8e3s4__2 = _this__u8e3s4_0;
|
|
586
|
+
};
|
|
587
|
+
initMetadataForCoroutine($, CoroutineImpl());
|
|
588
|
+
protoOf2($).doResume_5yljmg_k$ = function() {
|
|
589
|
+
var suspendResult = this.result_1;
|
|
590
|
+
$sm: do
|
|
591
|
+
try {
|
|
592
|
+
var tmp = this.state_1;
|
|
593
|
+
switch (tmp) {
|
|
594
|
+
case 0:
|
|
595
|
+
this.exceptionState_1 = 5;
|
|
596
|
+
this.this1__1 = this._this__u8e3s4__1;
|
|
597
|
+
this.lastToken2__1 = this.this1__1.lexer_1.consumeNextToken_dugwfi_k$(6);
|
|
598
|
+
if (this.this1__1.lexer_1.peekNextToken_1gqwr9_k$() === 4) {
|
|
599
|
+
this.this1__1.lexer_1.fail$default_ly4hfp_k$("Unexpected leading comma");
|
|
600
|
+
}
|
|
601
|
+
var tmp_0 = this;
|
|
602
|
+
tmp_0.result0__1 = LinkedHashMap_init_$Create$();
|
|
603
|
+
this.state_1 = 1;
|
|
604
|
+
continue $sm;
|
|
605
|
+
case 1:
|
|
606
|
+
if (!this.this1__1.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
607
|
+
this.state_1 = 4;
|
|
608
|
+
continue $sm;
|
|
609
|
+
}
|
|
610
|
+
this.key3__1 = this.this1__1.isLenient_1 ? this.this1__1.lexer_1.consumeStringLenient_9oypvu_k$() : this.this1__1.lexer_1.consumeString_j3j2z7_k$();
|
|
611
|
+
this.this1__1.lexer_1.consumeNextToken_dugwfi_k$(5);
|
|
612
|
+
this.state_1 = 2;
|
|
613
|
+
suspendResult = this._this__u8e3s4__2.callRecursive_g04ojy_k$(Unit_instance2, this);
|
|
614
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
615
|
+
return suspendResult;
|
|
616
|
+
}
|
|
617
|
+
continue $sm;
|
|
618
|
+
case 2:
|
|
619
|
+
var element = suspendResult;
|
|
620
|
+
var tmp0 = this.result0__1;
|
|
621
|
+
var key = this.key3__1;
|
|
622
|
+
tmp0.put_4fpzoq_k$(key, element);
|
|
623
|
+
this.lastToken2__1 = this.this1__1.lexer_1.consumeNextToken_uf1vsa_k$();
|
|
624
|
+
var tmp0_subject = this.lastToken2__1;
|
|
625
|
+
if (tmp0_subject === 4) {
|
|
626
|
+
this.state_1 = 3;
|
|
627
|
+
continue $sm;
|
|
628
|
+
} else {
|
|
629
|
+
if (tmp0_subject === 7) {
|
|
630
|
+
this.state_1 = 4;
|
|
631
|
+
continue $sm;
|
|
632
|
+
} else {
|
|
633
|
+
this.this1__1.lexer_1.fail$default_ly4hfp_k$("Expected end of the object or comma");
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
break;
|
|
637
|
+
case 3:
|
|
638
|
+
this.state_1 = 1;
|
|
639
|
+
continue $sm;
|
|
640
|
+
case 4:
|
|
641
|
+
if (this.lastToken2__1 === 6) {
|
|
642
|
+
this.this1__1.lexer_1.consumeNextToken_dugwfi_k$(7);
|
|
643
|
+
} else if (this.lastToken2__1 === 4) {
|
|
644
|
+
if (!this.this1__1.trailingCommaAllowed_1) {
|
|
645
|
+
invalidTrailingComma(this.this1__1.lexer_1);
|
|
646
|
+
}
|
|
647
|
+
this.this1__1.lexer_1.consumeNextToken_dugwfi_k$(7);
|
|
648
|
+
}
|
|
649
|
+
return new (JsonObject())(this.result0__1);
|
|
650
|
+
case 5:
|
|
651
|
+
throw this.exception_1;
|
|
652
|
+
}
|
|
653
|
+
} catch ($p) {
|
|
654
|
+
var e = $p;
|
|
655
|
+
if (this.exceptionState_1 === 5) {
|
|
656
|
+
throw e;
|
|
657
|
+
} else {
|
|
658
|
+
this.state_1 = this.exceptionState_1;
|
|
659
|
+
this.exception_1 = e;
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
while (true);
|
|
663
|
+
};
|
|
664
|
+
$readObjectCOROUTINE$Class = $;
|
|
665
|
+
}
|
|
666
|
+
return $readObjectCOROUTINE$Class;
|
|
667
|
+
}
|
|
668
|
+
var JsonTreeReaderClass;
|
|
669
|
+
function JsonTreeReader() {
|
|
670
|
+
if (JsonTreeReaderClass === VOID2) {
|
|
671
|
+
let $ = function(configuration, lexer) {
|
|
672
|
+
this.lexer_1 = lexer;
|
|
673
|
+
this.isLenient_1 = configuration.isLenient_1;
|
|
674
|
+
this.trailingCommaAllowed_1 = configuration.allowTrailingComma_1;
|
|
675
|
+
this.stackDepth_1 = 0;
|
|
676
|
+
};
|
|
677
|
+
initMetadataForClass2($, "JsonTreeReader", VOID2, VOID2, VOID2, [1]);
|
|
678
|
+
protoOf2($).read_22xsm_k$ = function() {
|
|
679
|
+
var token = this.lexer_1.peekNextToken_1gqwr9_k$();
|
|
680
|
+
var tmp;
|
|
681
|
+
if (token === 1) {
|
|
682
|
+
tmp = readValue(this, true);
|
|
683
|
+
} else if (token === 0) {
|
|
684
|
+
tmp = readValue(this, false);
|
|
685
|
+
} else if (token === 6) {
|
|
686
|
+
var tmp_0;
|
|
687
|
+
this.stackDepth_1 = this.stackDepth_1 + 1 | 0;
|
|
688
|
+
if (this.stackDepth_1 === 200) {
|
|
689
|
+
tmp_0 = readDeepRecursive(this);
|
|
690
|
+
} else {
|
|
691
|
+
tmp_0 = readObject(this);
|
|
692
|
+
}
|
|
693
|
+
var result = tmp_0;
|
|
694
|
+
this.stackDepth_1 = this.stackDepth_1 - 1 | 0;
|
|
695
|
+
tmp = result;
|
|
696
|
+
} else if (token === 8) {
|
|
697
|
+
tmp = readArray(this);
|
|
698
|
+
} else {
|
|
699
|
+
this.lexer_1.fail$default_ly4hfp_k$("Cannot read Json element because of unexpected " + tokenDescription(token));
|
|
700
|
+
}
|
|
701
|
+
return tmp;
|
|
702
|
+
};
|
|
703
|
+
JsonTreeReaderClass = $;
|
|
704
|
+
}
|
|
705
|
+
return JsonTreeReaderClass;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs
|
|
709
|
+
import { startsWith26w8qjqapeeq6 as startsWith } from "../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs";
|
|
710
|
+
import {
|
|
711
|
+
toString1pkumu07cwy4m as toString2,
|
|
712
|
+
protoOf180f3jzyo7rfj as protoOf3,
|
|
713
|
+
equals2au1ep9vhcato as equals2
|
|
714
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
715
|
+
import {
|
|
716
|
+
minify1kh64osmcox7j as minify,
|
|
717
|
+
access$formatDecodingException$tJsonExceptionsKt2yfifxvnjk03f as access$formatDecodingException$tJsonExceptionsKt,
|
|
718
|
+
InvalidKeyKindException3b5w96w0jjxof as InvalidKeyKindException,
|
|
719
|
+
access$nonFiniteFpMessage$tJsonExceptionsKt13lbsnfrx5cw2 as access$nonFiniteFpMessage$tJsonExceptionsKt
|
|
720
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs";
|
|
721
|
+
import { JsonDecodingExceptionoyag1psadwuw as JsonDecodingException } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonExceptions.mjs";
|
|
722
|
+
import { NamedValueDecoderzk26ztf92xbq as NamedValueDecoder } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs";
|
|
723
|
+
import { VOID3gxj6tk5isa35 as VOID3 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
724
|
+
import { AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer2 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs";
|
|
725
|
+
import { classDiscriminator9fd3hvqsgfqq as classDiscriminator2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs";
|
|
726
|
+
import {
|
|
727
|
+
getKClass3t8tygqu4lcxf as getKClass,
|
|
728
|
+
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression
|
|
729
|
+
} from "../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs";
|
|
730
|
+
import { findPolymorphicSerializer1nm87hvemahcj as findPolymorphicSerializer2 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs";
|
|
731
|
+
import {
|
|
732
|
+
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
733
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE3
|
|
734
|
+
} from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
735
|
+
import { SerializationExceptioneqrdve3ts2n9 as SerializationException } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs";
|
|
736
|
+
import { DeserializationStrategy1z3z5pj9f7zc8 as DeserializationStrategy } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs";
|
|
737
|
+
import { isInterface3d6p8outrmvmk as isInterface2 } from "../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs";
|
|
738
|
+
import {
|
|
739
|
+
PolymorphicKindla9gurooefwb as PolymorphicKind,
|
|
740
|
+
LIST_getInstance2vniy0f7mmb29 as LIST_getInstance,
|
|
741
|
+
ENUM_getInstance25239ht7oag6o as ENUM_getInstance,
|
|
742
|
+
PrimitiveKindndgbuh6is7ze as PrimitiveKind,
|
|
743
|
+
MAP_getInstance3e78m6vf98i66 as MAP_getInstance
|
|
744
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs";
|
|
745
|
+
import { carrierDescriptor9eih94weel9f as carrierDescriptor } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs";
|
|
746
|
+
import {
|
|
747
|
+
getJsonNameIndexOrThrow1a6a29i1xie0m as getJsonNameIndexOrThrow,
|
|
748
|
+
getJsonNameIndex1fee1p51fy8fj as getJsonNameIndex,
|
|
749
|
+
namingStrategy2xiv9qzked2jy as namingStrategy,
|
|
750
|
+
deserializationNamesMap29c3n2byxqy5b as deserializationNamesMap,
|
|
751
|
+
ignoreUnknownKeys1ot1okvsp9ttf as ignoreUnknownKeys,
|
|
752
|
+
get_JsonDeserializationNamesKey2d6gbfp1rff81 as get_JsonDeserializationNamesKey
|
|
753
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs";
|
|
754
|
+
import {
|
|
755
|
+
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
756
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$2
|
|
757
|
+
} from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
758
|
+
import { numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber } from "../kotlin-kotlin-stdlib/kotlin/js/rangeTo.mjs";
|
|
759
|
+
import { ClosedRangehokgr73im9z3 as ClosedRange } from "../kotlin-kotlin-stdlib/kotlin/ranges/Range.mjs";
|
|
760
|
+
import { contains2c50nlxg7en7o as contains } from "../kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs";
|
|
761
|
+
import {
|
|
762
|
+
convertToByte2t4hntblnhq2k as convertToByte,
|
|
763
|
+
convertToShortn6n5n7ruahkm as convertToShort,
|
|
764
|
+
convertToInty04h231mmjoh as convertToInt
|
|
765
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs";
|
|
766
|
+
import {
|
|
767
|
+
isFinite1tx0gn65nl9tj as isFinite2,
|
|
768
|
+
isFinite2t9l5a275mxm6 as isFinite_02
|
|
769
|
+
} from "../kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs";
|
|
770
|
+
import { single29ec4rh52687r as single } from "../kotlin-kotlin-stdlib/kotlin/text/_Strings.mjs";
|
|
771
|
+
import { Char19o2r8palgjof as Char } from "../kotlin-kotlin-stdlib/kotlin/Char.mjs";
|
|
772
|
+
import { StringJsonLexer3eu6xom7mrcfu as StringJsonLexer } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs";
|
|
773
|
+
import { JsonDecoder1rijst5ne6qla as JsonDecoder } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonDecoder.mjs";
|
|
774
|
+
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass3 } from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
775
|
+
import { KtMap140uvy3s5zad8 as KtMap } from "../kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs";
|
|
776
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance3 } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
777
|
+
import { getValue48kllevslyh6 as getValue } from "../kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs";
|
|
778
|
+
import { jsonCachedSerialNameslxufy2gu43jt as jsonCachedSerialNames } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs";
|
|
779
|
+
import { get_schemaCache3drvxe6e7799s as get_schemaCache } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs";
|
|
780
|
+
import { emptySetcxexqki71qfa as emptySet } from "../kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs";
|
|
781
|
+
import { plus1ogy4liedzq5j as plus } from "../kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs";
|
|
782
|
+
import { toInt2q8uldh7sc951 as toInt } from "../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs";
|
|
783
|
+
import { toList3jhuyej2anx2q as toList } from "../kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs";
|
|
784
|
+
var imul = Math.imul;
|
|
785
|
+
function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
|
|
786
|
+
return new (JsonTreeDecoder())(_this__u8e3s4, element, discriminator, deserializer.get_descriptor_wjt6a0_k$()).decodeSerializableValue_xpnpad_k$(deserializer);
|
|
787
|
+
}
|
|
788
|
+
function unparsedPrimitive($this, literal, primitive, tag) {
|
|
789
|
+
var type = startsWith(primitive, "i") ? "an " + primitive : "a " + primitive;
|
|
790
|
+
var tmp2 = "Failed to parse literal '" + literal.toString() + "' as " + type + " value";
|
|
791
|
+
var path = $this.renderTagStack_ixxubu_k$(tag);
|
|
792
|
+
var tmp;
|
|
793
|
+
if ($this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
794
|
+
var tmp$ret$3 = toString2($this.currentObject_yxe2oo_k$());
|
|
795
|
+
tmp = toString2(minify(tmp$ret$3));
|
|
796
|
+
} else {
|
|
797
|
+
tmp = null;
|
|
798
|
+
}
|
|
799
|
+
var inputValue = tmp;
|
|
800
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
801
|
+
}
|
|
802
|
+
var AbstractJsonTreeDecoderClass;
|
|
803
|
+
function AbstractJsonTreeDecoder() {
|
|
804
|
+
if (AbstractJsonTreeDecoderClass === VOID3) {
|
|
805
|
+
let $ = function(json, value, polymorphicDiscriminator) {
|
|
806
|
+
polymorphicDiscriminator = polymorphicDiscriminator === VOID3 ? null : polymorphicDiscriminator;
|
|
807
|
+
NamedValueDecoder().call(this);
|
|
808
|
+
this.json_1 = json;
|
|
809
|
+
this.value_1 = value;
|
|
810
|
+
this.polymorphicDiscriminator_1 = polymorphicDiscriminator;
|
|
811
|
+
this.configuration_1 = this.get_json_woos35_k$().configuration_1;
|
|
812
|
+
};
|
|
813
|
+
initMetadataForClass3($, "AbstractJsonTreeDecoder", VOID3, NamedValueDecoder(), [JsonDecoder()]);
|
|
814
|
+
protoOf3($).get_json_woos35_k$ = function() {
|
|
815
|
+
return this.json_1;
|
|
816
|
+
};
|
|
817
|
+
protoOf3($).get_value_j01efc_k$ = function() {
|
|
818
|
+
return this.value_1;
|
|
819
|
+
};
|
|
820
|
+
protoOf3($).get_serializersModule_piitvg_k$ = function() {
|
|
821
|
+
return this.get_json_woos35_k$().get_serializersModule_piitvg_k$();
|
|
822
|
+
};
|
|
823
|
+
protoOf3($).currentObject_yxe2oo_k$ = function() {
|
|
824
|
+
var tmp0_safe_receiver = this.get_currentTagOrNull_yhyzw_k$();
|
|
825
|
+
var tmp;
|
|
826
|
+
if (tmp0_safe_receiver == null) {
|
|
827
|
+
tmp = null;
|
|
828
|
+
} else {
|
|
829
|
+
tmp = this.currentElement_4dg47r_k$(tmp0_safe_receiver);
|
|
830
|
+
}
|
|
831
|
+
var tmp1_elvis_lhs = tmp;
|
|
832
|
+
return tmp1_elvis_lhs == null ? this.get_value_j01efc_k$() : tmp1_elvis_lhs;
|
|
833
|
+
};
|
|
834
|
+
protoOf3($).renderTagStack_ixxubu_k$ = function(currentTag) {
|
|
835
|
+
return this.renderTagStack_rja478_k$() + ("." + currentTag);
|
|
836
|
+
};
|
|
837
|
+
protoOf3($).decodeJsonElement_6lz9ye_k$ = function() {
|
|
838
|
+
return this.currentObject_yxe2oo_k$();
|
|
839
|
+
};
|
|
840
|
+
protoOf3($).decodeSerializableValue_xpnpad_k$ = function(deserializer) {
|
|
841
|
+
var tmp$ret$0;
|
|
842
|
+
$l$block: {
|
|
843
|
+
var tmp;
|
|
844
|
+
if (!(deserializer instanceof AbstractPolymorphicSerializer2())) {
|
|
845
|
+
tmp = true;
|
|
846
|
+
} else {
|
|
847
|
+
tmp = this.get_json_woos35_k$().configuration_1.useArrayPolymorphism_1;
|
|
848
|
+
}
|
|
849
|
+
if (tmp) {
|
|
850
|
+
tmp$ret$0 = deserializer.deserialize_sy6x50_k$(this);
|
|
851
|
+
break $l$block;
|
|
852
|
+
}
|
|
853
|
+
var discriminator = classDiscriminator2(deserializer.get_descriptor_wjt6a0_k$(), this.get_json_woos35_k$());
|
|
854
|
+
var tmp2 = this.decodeJsonElement_6lz9ye_k$();
|
|
855
|
+
var serialName = deserializer.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
|
|
856
|
+
if (!(tmp2 instanceof JsonObject())) {
|
|
857
|
+
var tmp2_0 = "Expected " + getKClass(JsonObject()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(tmp2).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
858
|
+
var path = this.renderTagStack_rja478_k$();
|
|
859
|
+
var tmp_0;
|
|
860
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
861
|
+
var tmp$ret$6 = toString2(tmp2);
|
|
862
|
+
tmp_0 = toString2(minify(tmp$ret$6));
|
|
863
|
+
} else {
|
|
864
|
+
tmp_0 = null;
|
|
865
|
+
}
|
|
866
|
+
var inputValue = tmp_0;
|
|
867
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, path, null, inputValue), tmp2_0, -1, path, inputValue, null);
|
|
868
|
+
}
|
|
869
|
+
var jsonTree = tmp2;
|
|
870
|
+
var tmp0_safe_receiver = jsonTree.get_6bo4tg_k$(discriminator);
|
|
871
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
872
|
+
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
873
|
+
var tmp_1;
|
|
874
|
+
try {
|
|
875
|
+
tmp_1 = findPolymorphicSerializer2(deserializer, this, type);
|
|
876
|
+
} catch ($p) {
|
|
877
|
+
var tmp_2;
|
|
878
|
+
if ($p instanceof SerializationException()) {
|
|
879
|
+
var it = $p;
|
|
880
|
+
var shortMessage = ensureNotNull(it.message);
|
|
881
|
+
var tmp_3;
|
|
882
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
883
|
+
var tmp$ret$10 = jsonTree.toString();
|
|
884
|
+
tmp_3 = toString2(minify(tmp$ret$10));
|
|
885
|
+
} else {
|
|
886
|
+
tmp_3 = null;
|
|
887
|
+
}
|
|
888
|
+
var inputValue_0 = tmp_3;
|
|
889
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, shortMessage, null, null, inputValue_0), shortMessage, -1, null, inputValue_0, null);
|
|
890
|
+
} else {
|
|
891
|
+
throw $p;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
var tmp_4 = tmp_1;
|
|
895
|
+
var actualSerializer = isInterface2(tmp_4, DeserializationStrategy()) ? tmp_4 : THROW_CCE3();
|
|
896
|
+
tmp$ret$0 = readPolymorphicJson(this.get_json_woos35_k$(), discriminator, jsonTree, actualSerializer);
|
|
897
|
+
}
|
|
898
|
+
return tmp$ret$0;
|
|
899
|
+
};
|
|
900
|
+
protoOf3($).composeName_8y2y4d_k$ = function(parentName, childName) {
|
|
901
|
+
return childName;
|
|
902
|
+
};
|
|
903
|
+
protoOf3($).beginStructure_yljocp_k$ = function(descriptor) {
|
|
904
|
+
var currentObject = this.currentObject_yxe2oo_k$();
|
|
905
|
+
var tmp0_subject = descriptor.get_kind_wop7ml_k$();
|
|
906
|
+
var tmp;
|
|
907
|
+
var tmp_0;
|
|
908
|
+
if (equals2(tmp0_subject, LIST_getInstance())) {
|
|
909
|
+
tmp_0 = true;
|
|
910
|
+
} else {
|
|
911
|
+
tmp_0 = tmp0_subject instanceof PolymorphicKind();
|
|
912
|
+
}
|
|
913
|
+
if (tmp_0) {
|
|
914
|
+
var tmp_1 = this.get_json_woos35_k$();
|
|
915
|
+
var serialName = descriptor.get_serialName_u2rqhk_k$();
|
|
916
|
+
if (!(currentObject instanceof JsonArray())) {
|
|
917
|
+
var tmp2 = "Expected " + getKClass(JsonArray()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(currentObject).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
918
|
+
var path = this.renderTagStack_rja478_k$();
|
|
919
|
+
var tmp_2;
|
|
920
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
921
|
+
var tmp$ret$6 = toString2(currentObject);
|
|
922
|
+
tmp_2 = toString2(minify(tmp$ret$6));
|
|
923
|
+
} else {
|
|
924
|
+
tmp_2 = null;
|
|
925
|
+
}
|
|
926
|
+
var inputValue = tmp_2;
|
|
927
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
928
|
+
}
|
|
929
|
+
tmp = new (JsonTreeListDecoder())(tmp_1, currentObject);
|
|
930
|
+
} else {
|
|
931
|
+
if (equals2(tmp0_subject, MAP_getInstance())) {
|
|
932
|
+
var this_0 = this.get_json_woos35_k$();
|
|
933
|
+
var keyDescriptor = carrierDescriptor(descriptor.getElementDescriptor_ncda77_k$(0), this_0.get_serializersModule_piitvg_k$());
|
|
934
|
+
var keyKind = keyDescriptor.get_kind_wop7ml_k$();
|
|
935
|
+
var tmp_3;
|
|
936
|
+
var tmp_4;
|
|
937
|
+
if (keyKind instanceof PrimitiveKind()) {
|
|
938
|
+
tmp_4 = true;
|
|
939
|
+
} else {
|
|
940
|
+
tmp_4 = equals2(keyKind, ENUM_getInstance());
|
|
941
|
+
}
|
|
942
|
+
if (tmp_4) {
|
|
943
|
+
var tmp_5 = this.get_json_woos35_k$();
|
|
944
|
+
var serialName_0 = descriptor.get_serialName_u2rqhk_k$();
|
|
945
|
+
if (!(currentObject instanceof JsonObject())) {
|
|
946
|
+
var tmp2_0 = "Expected " + getKClass(JsonObject()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(currentObject).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName_0;
|
|
947
|
+
var path_0 = this.renderTagStack_rja478_k$();
|
|
948
|
+
var tmp_6;
|
|
949
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
950
|
+
var tmp$ret$15 = toString2(currentObject);
|
|
951
|
+
tmp_6 = toString2(minify(tmp$ret$15));
|
|
952
|
+
} else {
|
|
953
|
+
tmp_6 = null;
|
|
954
|
+
}
|
|
955
|
+
var inputValue_0 = tmp_6;
|
|
956
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, path_0, null, inputValue_0), tmp2_0, -1, path_0, inputValue_0, null);
|
|
957
|
+
}
|
|
958
|
+
tmp_3 = new (JsonTreeMapDecoder())(tmp_5, currentObject);
|
|
959
|
+
} else {
|
|
960
|
+
if (this_0.configuration_1.allowStructuredMapKeys_1) {
|
|
961
|
+
var tmp_7 = this.get_json_woos35_k$();
|
|
962
|
+
var serialName_1 = descriptor.get_serialName_u2rqhk_k$();
|
|
963
|
+
if (!(currentObject instanceof JsonArray())) {
|
|
964
|
+
var tmp2_1 = "Expected " + getKClass(JsonArray()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(currentObject).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName_1;
|
|
965
|
+
var path_1 = this.renderTagStack_rja478_k$();
|
|
966
|
+
var tmp_8;
|
|
967
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
968
|
+
var tmp$ret$23 = toString2(currentObject);
|
|
969
|
+
tmp_8 = toString2(minify(tmp$ret$23));
|
|
970
|
+
} else {
|
|
971
|
+
tmp_8 = null;
|
|
972
|
+
}
|
|
973
|
+
var inputValue_1 = tmp_8;
|
|
974
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_1, path_1, null, inputValue_1), tmp2_1, -1, path_1, inputValue_1, null);
|
|
975
|
+
}
|
|
976
|
+
tmp_3 = new (JsonTreeListDecoder())(tmp_7, currentObject);
|
|
977
|
+
} else {
|
|
978
|
+
throw InvalidKeyKindException(keyDescriptor);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
tmp = tmp_3;
|
|
982
|
+
} else {
|
|
983
|
+
var tmp_9 = this.get_json_woos35_k$();
|
|
984
|
+
var serialName_2 = descriptor.get_serialName_u2rqhk_k$();
|
|
985
|
+
if (!(currentObject instanceof JsonObject())) {
|
|
986
|
+
var tmp2_2 = "Expected " + getKClass(JsonObject()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(currentObject).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName_2;
|
|
987
|
+
var path_2 = this.renderTagStack_rja478_k$();
|
|
988
|
+
var tmp_10;
|
|
989
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
990
|
+
var tmp$ret$30 = toString2(currentObject);
|
|
991
|
+
tmp_10 = toString2(minify(tmp$ret$30));
|
|
992
|
+
} else {
|
|
993
|
+
tmp_10 = null;
|
|
994
|
+
}
|
|
995
|
+
var inputValue_2 = tmp_10;
|
|
996
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_2, path_2, null, inputValue_2), tmp2_2, -1, path_2, inputValue_2, null);
|
|
997
|
+
}
|
|
998
|
+
tmp = new (JsonTreeDecoder())(tmp_9, currentObject, this.polymorphicDiscriminator_1);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
return tmp;
|
|
1002
|
+
};
|
|
1003
|
+
protoOf3($).endStructure_1xqz0n_k$ = function(descriptor) {
|
|
1004
|
+
};
|
|
1005
|
+
protoOf3($).decodeNotNullMark_us4ba1_k$ = function() {
|
|
1006
|
+
var tmp = this.currentObject_yxe2oo_k$();
|
|
1007
|
+
return !(tmp instanceof JsonNull());
|
|
1008
|
+
};
|
|
1009
|
+
protoOf3($).decodeTaggedEnum_lbnta6_k$ = function(tag, enumDescriptor) {
|
|
1010
|
+
var tmp = this.get_json_woos35_k$();
|
|
1011
|
+
var tmp2 = this.currentElement_4dg47r_k$(tag);
|
|
1012
|
+
var serialName = enumDescriptor.get_serialName_u2rqhk_k$();
|
|
1013
|
+
if (!(tmp2 instanceof JsonPrimitive())) {
|
|
1014
|
+
var tmp2_0 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(tmp2).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
1015
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1016
|
+
var tmp_0;
|
|
1017
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1018
|
+
var tmp$ret$7 = toString2(tmp2);
|
|
1019
|
+
tmp_0 = toString2(minify(tmp$ret$7));
|
|
1020
|
+
} else {
|
|
1021
|
+
tmp_0 = null;
|
|
1022
|
+
}
|
|
1023
|
+
var inputValue = tmp_0;
|
|
1024
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, path, null, inputValue), tmp2_0, -1, path, inputValue, null);
|
|
1025
|
+
}
|
|
1026
|
+
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.get_content_h02jrk_k$());
|
|
1027
|
+
};
|
|
1028
|
+
protoOf3($).decodeTaggedEnum_iouca9_k$ = function(tag, enumDescriptor) {
|
|
1029
|
+
return this.decodeTaggedEnum_lbnta6_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3(), enumDescriptor);
|
|
1030
|
+
};
|
|
1031
|
+
protoOf3($).decodeTaggedNotNullMark_t788xf_k$ = function(tag) {
|
|
1032
|
+
return !(this.currentElement_4dg47r_k$(tag) === JsonNull_getInstance());
|
|
1033
|
+
};
|
|
1034
|
+
protoOf3($).decodeTaggedNotNullMark_opj0f8_k$ = function(tag) {
|
|
1035
|
+
return this.decodeTaggedNotNullMark_t788xf_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1036
|
+
};
|
|
1037
|
+
protoOf3($).decodeTaggedBoolean_8s5b84_k$ = function(tag) {
|
|
1038
|
+
var tmp$ret$0;
|
|
1039
|
+
$l$block: {
|
|
1040
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1041
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1042
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of boolean";
|
|
1043
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1044
|
+
var tmp;
|
|
1045
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1046
|
+
var tmp$ret$7 = toString2(value);
|
|
1047
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1048
|
+
} else {
|
|
1049
|
+
tmp = null;
|
|
1050
|
+
}
|
|
1051
|
+
var inputValue = tmp;
|
|
1052
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1053
|
+
}
|
|
1054
|
+
var literal = value;
|
|
1055
|
+
try {
|
|
1056
|
+
var tmp0_elvis_lhs = get_booleanOrNull(literal);
|
|
1057
|
+
var tmp_0;
|
|
1058
|
+
if (tmp0_elvis_lhs == null) {
|
|
1059
|
+
unparsedPrimitive(this, literal, "boolean", tag);
|
|
1060
|
+
} else {
|
|
1061
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1062
|
+
}
|
|
1063
|
+
tmp$ret$0 = tmp_0;
|
|
1064
|
+
break $l$block;
|
|
1065
|
+
} catch ($p) {
|
|
1066
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1067
|
+
var e = $p;
|
|
1068
|
+
unparsedPrimitive(this, literal, "boolean", tag);
|
|
1069
|
+
} else {
|
|
1070
|
+
throw $p;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
return tmp$ret$0;
|
|
1075
|
+
};
|
|
1076
|
+
protoOf3($).decodeTaggedBoolean_172rbv_k$ = function(tag) {
|
|
1077
|
+
return this.decodeTaggedBoolean_8s5b84_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1078
|
+
};
|
|
1079
|
+
protoOf3($).decodeTaggedByte_oje7fc_k$ = function(tag) {
|
|
1080
|
+
var tmp$ret$0;
|
|
1081
|
+
$l$block: {
|
|
1082
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1083
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1084
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of byte";
|
|
1085
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1086
|
+
var tmp;
|
|
1087
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1088
|
+
var tmp$ret$7 = toString2(value);
|
|
1089
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1090
|
+
} else {
|
|
1091
|
+
tmp = null;
|
|
1092
|
+
}
|
|
1093
|
+
var inputValue = tmp;
|
|
1094
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1095
|
+
}
|
|
1096
|
+
var literal = value;
|
|
1097
|
+
try {
|
|
1098
|
+
var result = parseLongImpl(literal);
|
|
1099
|
+
var tmp_0;
|
|
1100
|
+
var this_0 = numberRangeToNumber(-128, 127);
|
|
1101
|
+
if (contains(isInterface2(this_0, ClosedRange()) ? this_0 : THROW_CCE3(), result)) {
|
|
1102
|
+
tmp_0 = convertToByte(result);
|
|
1103
|
+
} else {
|
|
1104
|
+
tmp_0 = null;
|
|
1105
|
+
}
|
|
1106
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
1107
|
+
var tmp_1;
|
|
1108
|
+
if (tmp0_elvis_lhs == null) {
|
|
1109
|
+
unparsedPrimitive(this, literal, "byte", tag);
|
|
1110
|
+
} else {
|
|
1111
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
1112
|
+
}
|
|
1113
|
+
tmp$ret$0 = tmp_1;
|
|
1114
|
+
break $l$block;
|
|
1115
|
+
} catch ($p) {
|
|
1116
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1117
|
+
var e = $p;
|
|
1118
|
+
unparsedPrimitive(this, literal, "byte", tag);
|
|
1119
|
+
} else {
|
|
1120
|
+
throw $p;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
return tmp$ret$0;
|
|
1125
|
+
};
|
|
1126
|
+
protoOf3($).decodeTaggedByte_y3phtl_k$ = function(tag) {
|
|
1127
|
+
return this.decodeTaggedByte_oje7fc_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1128
|
+
};
|
|
1129
|
+
protoOf3($).decodeTaggedShort_b0y92g_k$ = function(tag) {
|
|
1130
|
+
var tmp$ret$0;
|
|
1131
|
+
$l$block: {
|
|
1132
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1133
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1134
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of short";
|
|
1135
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1136
|
+
var tmp;
|
|
1137
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1138
|
+
var tmp$ret$7 = toString2(value);
|
|
1139
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1140
|
+
} else {
|
|
1141
|
+
tmp = null;
|
|
1142
|
+
}
|
|
1143
|
+
var inputValue = tmp;
|
|
1144
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1145
|
+
}
|
|
1146
|
+
var literal = value;
|
|
1147
|
+
try {
|
|
1148
|
+
var result = parseLongImpl(literal);
|
|
1149
|
+
var tmp_0;
|
|
1150
|
+
var this_0 = numberRangeToNumber(-32768, 32767);
|
|
1151
|
+
if (contains(isInterface2(this_0, ClosedRange()) ? this_0 : THROW_CCE3(), result)) {
|
|
1152
|
+
tmp_0 = convertToShort(result);
|
|
1153
|
+
} else {
|
|
1154
|
+
tmp_0 = null;
|
|
1155
|
+
}
|
|
1156
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
1157
|
+
var tmp_1;
|
|
1158
|
+
if (tmp0_elvis_lhs == null) {
|
|
1159
|
+
unparsedPrimitive(this, literal, "short", tag);
|
|
1160
|
+
} else {
|
|
1161
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
1162
|
+
}
|
|
1163
|
+
tmp$ret$0 = tmp_1;
|
|
1164
|
+
break $l$block;
|
|
1165
|
+
} catch ($p) {
|
|
1166
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1167
|
+
var e = $p;
|
|
1168
|
+
unparsedPrimitive(this, literal, "short", tag);
|
|
1169
|
+
} else {
|
|
1170
|
+
throw $p;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
return tmp$ret$0;
|
|
1175
|
+
};
|
|
1176
|
+
protoOf3($).decodeTaggedShort_dapzw9_k$ = function(tag) {
|
|
1177
|
+
return this.decodeTaggedShort_b0y92g_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1178
|
+
};
|
|
1179
|
+
protoOf3($).decodeTaggedInt_9hzwhn_k$ = function(tag) {
|
|
1180
|
+
var tmp$ret$0;
|
|
1181
|
+
$l$block: {
|
|
1182
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1183
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1184
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of int";
|
|
1185
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1186
|
+
var tmp;
|
|
1187
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1188
|
+
var tmp$ret$7 = toString2(value);
|
|
1189
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1190
|
+
} else {
|
|
1191
|
+
tmp = null;
|
|
1192
|
+
}
|
|
1193
|
+
var inputValue = tmp;
|
|
1194
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1195
|
+
}
|
|
1196
|
+
var literal = value;
|
|
1197
|
+
try {
|
|
1198
|
+
var result = parseLongImpl(literal);
|
|
1199
|
+
var tmp_0;
|
|
1200
|
+
var this_0 = numberRangeToNumber(-2147483648, 2147483647);
|
|
1201
|
+
if (contains(isInterface2(this_0, ClosedRange()) ? this_0 : THROW_CCE3(), result)) {
|
|
1202
|
+
tmp_0 = convertToInt(result);
|
|
1203
|
+
} else {
|
|
1204
|
+
tmp_0 = null;
|
|
1205
|
+
}
|
|
1206
|
+
var tmp0_elvis_lhs = tmp_0;
|
|
1207
|
+
var tmp_1;
|
|
1208
|
+
if (tmp0_elvis_lhs == null) {
|
|
1209
|
+
unparsedPrimitive(this, literal, "int", tag);
|
|
1210
|
+
} else {
|
|
1211
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
1212
|
+
}
|
|
1213
|
+
tmp$ret$0 = tmp_1;
|
|
1214
|
+
break $l$block;
|
|
1215
|
+
} catch ($p) {
|
|
1216
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1217
|
+
var e = $p;
|
|
1218
|
+
unparsedPrimitive(this, literal, "int", tag);
|
|
1219
|
+
} else {
|
|
1220
|
+
throw $p;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
return tmp$ret$0;
|
|
1225
|
+
};
|
|
1226
|
+
protoOf3($).decodeTaggedInt_mhypkc_k$ = function(tag) {
|
|
1227
|
+
return this.decodeTaggedInt_9hzwhn_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1228
|
+
};
|
|
1229
|
+
protoOf3($).decodeTaggedLong_uzg5b0_k$ = function(tag) {
|
|
1230
|
+
var tmp$ret$0;
|
|
1231
|
+
$l$block: {
|
|
1232
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1233
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1234
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of long";
|
|
1235
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1236
|
+
var tmp;
|
|
1237
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1238
|
+
var tmp$ret$7 = toString2(value);
|
|
1239
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1240
|
+
} else {
|
|
1241
|
+
tmp = null;
|
|
1242
|
+
}
|
|
1243
|
+
var inputValue = tmp;
|
|
1244
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1245
|
+
}
|
|
1246
|
+
var literal = value;
|
|
1247
|
+
try {
|
|
1248
|
+
var tmp0_elvis_lhs = parseLongImpl(literal);
|
|
1249
|
+
var tmp_0;
|
|
1250
|
+
if (tmp0_elvis_lhs == null) {
|
|
1251
|
+
unparsedPrimitive(this, literal, "long", tag);
|
|
1252
|
+
} else {
|
|
1253
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1254
|
+
}
|
|
1255
|
+
tmp$ret$0 = tmp_0;
|
|
1256
|
+
break $l$block;
|
|
1257
|
+
} catch ($p) {
|
|
1258
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1259
|
+
var e = $p;
|
|
1260
|
+
unparsedPrimitive(this, literal, "long", tag);
|
|
1261
|
+
} else {
|
|
1262
|
+
throw $p;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
return tmp$ret$0;
|
|
1267
|
+
};
|
|
1268
|
+
protoOf3($).decodeTaggedLong_y9rqqb_k$ = function(tag) {
|
|
1269
|
+
return this.decodeTaggedLong_uzg5b0_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1270
|
+
};
|
|
1271
|
+
protoOf3($).decodeTaggedFloat_hjyf60_k$ = function(tag) {
|
|
1272
|
+
var tmp$ret$0;
|
|
1273
|
+
$l$block: {
|
|
1274
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1275
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1276
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of float";
|
|
1277
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1278
|
+
var tmp;
|
|
1279
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1280
|
+
var tmp$ret$7 = toString2(value);
|
|
1281
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1282
|
+
} else {
|
|
1283
|
+
tmp = null;
|
|
1284
|
+
}
|
|
1285
|
+
var inputValue = tmp;
|
|
1286
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1287
|
+
}
|
|
1288
|
+
var literal = value;
|
|
1289
|
+
try {
|
|
1290
|
+
var tmp0_elvis_lhs = get_float(literal);
|
|
1291
|
+
var tmp_0;
|
|
1292
|
+
if (tmp0_elvis_lhs == null) {
|
|
1293
|
+
unparsedPrimitive(this, literal, "float", tag);
|
|
1294
|
+
} else {
|
|
1295
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1296
|
+
}
|
|
1297
|
+
tmp$ret$0 = tmp_0;
|
|
1298
|
+
break $l$block;
|
|
1299
|
+
} catch ($p) {
|
|
1300
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1301
|
+
var e = $p;
|
|
1302
|
+
unparsedPrimitive(this, literal, "float", tag);
|
|
1303
|
+
} else {
|
|
1304
|
+
throw $p;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
var result = tmp$ret$0;
|
|
1309
|
+
var specialFp = this.get_json_woos35_k$().configuration_1.allowSpecialFloatingPointValues_1;
|
|
1310
|
+
if (specialFp || isFinite2(result))
|
|
1311
|
+
return result;
|
|
1312
|
+
var tmp2_0 = access$nonFiniteFpMessage$tJsonExceptionsKt(result, tag);
|
|
1313
|
+
var hint = "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'";
|
|
1314
|
+
var tmp_1;
|
|
1315
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1316
|
+
var tmp$ret$13 = toString2(this.currentObject_yxe2oo_k$());
|
|
1317
|
+
tmp_1 = toString2(minify(tmp$ret$13));
|
|
1318
|
+
} else {
|
|
1319
|
+
tmp_1 = null;
|
|
1320
|
+
}
|
|
1321
|
+
var inputValue_0 = tmp_1;
|
|
1322
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, null, hint, inputValue_0), tmp2_0, -1, null, inputValue_0, hint);
|
|
1323
|
+
};
|
|
1324
|
+
protoOf3($).decodeTaggedFloat_81o7o9_k$ = function(tag) {
|
|
1325
|
+
return this.decodeTaggedFloat_hjyf60_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1326
|
+
};
|
|
1327
|
+
protoOf3($).decodeTaggedDouble_u6dgwh_k$ = function(tag) {
|
|
1328
|
+
var tmp$ret$0;
|
|
1329
|
+
$l$block: {
|
|
1330
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1331
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1332
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of double";
|
|
1333
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1334
|
+
var tmp;
|
|
1335
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1336
|
+
var tmp$ret$7 = toString2(value);
|
|
1337
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1338
|
+
} else {
|
|
1339
|
+
tmp = null;
|
|
1340
|
+
}
|
|
1341
|
+
var inputValue = tmp;
|
|
1342
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1343
|
+
}
|
|
1344
|
+
var literal = value;
|
|
1345
|
+
try {
|
|
1346
|
+
var tmp0_elvis_lhs = get_double(literal);
|
|
1347
|
+
var tmp_0;
|
|
1348
|
+
if (tmp0_elvis_lhs == null) {
|
|
1349
|
+
unparsedPrimitive(this, literal, "double", tag);
|
|
1350
|
+
} else {
|
|
1351
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1352
|
+
}
|
|
1353
|
+
tmp$ret$0 = tmp_0;
|
|
1354
|
+
break $l$block;
|
|
1355
|
+
} catch ($p) {
|
|
1356
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1357
|
+
var e = $p;
|
|
1358
|
+
unparsedPrimitive(this, literal, "double", tag);
|
|
1359
|
+
} else {
|
|
1360
|
+
throw $p;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
var result = tmp$ret$0;
|
|
1365
|
+
var specialFp = this.get_json_woos35_k$().configuration_1.allowSpecialFloatingPointValues_1;
|
|
1366
|
+
if (specialFp || isFinite_02(result))
|
|
1367
|
+
return result;
|
|
1368
|
+
var tmp2_0 = access$nonFiniteFpMessage$tJsonExceptionsKt(result, tag);
|
|
1369
|
+
var hint = "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'";
|
|
1370
|
+
var tmp_1;
|
|
1371
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1372
|
+
var tmp$ret$13 = toString2(this.currentObject_yxe2oo_k$());
|
|
1373
|
+
tmp_1 = toString2(minify(tmp$ret$13));
|
|
1374
|
+
} else {
|
|
1375
|
+
tmp_1 = null;
|
|
1376
|
+
}
|
|
1377
|
+
var inputValue_0 = tmp_1;
|
|
1378
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, null, hint, inputValue_0), tmp2_0, -1, null, inputValue_0, hint);
|
|
1379
|
+
};
|
|
1380
|
+
protoOf3($).decodeTaggedDouble_aa801q_k$ = function(tag) {
|
|
1381
|
+
return this.decodeTaggedDouble_u6dgwh_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1382
|
+
};
|
|
1383
|
+
protoOf3($).decodeTaggedChar_ha7850_k$ = function(tag) {
|
|
1384
|
+
var tmp$ret$0;
|
|
1385
|
+
$l$block: {
|
|
1386
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1387
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1388
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of char";
|
|
1389
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1390
|
+
var tmp;
|
|
1391
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1392
|
+
var tmp$ret$7 = toString2(value);
|
|
1393
|
+
tmp = toString2(minify(tmp$ret$7));
|
|
1394
|
+
} else {
|
|
1395
|
+
tmp = null;
|
|
1396
|
+
}
|
|
1397
|
+
var inputValue = tmp;
|
|
1398
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1399
|
+
}
|
|
1400
|
+
var literal = value;
|
|
1401
|
+
try {
|
|
1402
|
+
var tmp0_elvis_lhs = new (Char())(single(literal.get_content_h02jrk_k$()));
|
|
1403
|
+
var tmp_0;
|
|
1404
|
+
if (tmp0_elvis_lhs == null) {
|
|
1405
|
+
unparsedPrimitive(this, literal, "char", tag);
|
|
1406
|
+
} else {
|
|
1407
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
1408
|
+
}
|
|
1409
|
+
tmp$ret$0 = tmp_0.value_1;
|
|
1410
|
+
break $l$block;
|
|
1411
|
+
} catch ($p) {
|
|
1412
|
+
if ($p instanceof IllegalArgumentException()) {
|
|
1413
|
+
var e = $p;
|
|
1414
|
+
unparsedPrimitive(this, literal, "char", tag);
|
|
1415
|
+
} else {
|
|
1416
|
+
throw $p;
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
return tmp$ret$0;
|
|
1421
|
+
};
|
|
1422
|
+
protoOf3($).decodeTaggedChar_w7yrsn_k$ = function(tag) {
|
|
1423
|
+
return this.decodeTaggedChar_ha7850_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1424
|
+
};
|
|
1425
|
+
protoOf3($).decodeTaggedString_fe7ocx_k$ = function(tag) {
|
|
1426
|
+
var value = this.currentElement_4dg47r_k$(tag);
|
|
1427
|
+
if (!(value instanceof JsonPrimitive())) {
|
|
1428
|
+
var tmp2 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(value).get_simpleName_r6f8py_k$() + " as the serialized body of string";
|
|
1429
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1430
|
+
var tmp;
|
|
1431
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1432
|
+
var tmp$ret$6 = toString2(value);
|
|
1433
|
+
tmp = toString2(minify(tmp$ret$6));
|
|
1434
|
+
} else {
|
|
1435
|
+
tmp = null;
|
|
1436
|
+
}
|
|
1437
|
+
var inputValue = tmp;
|
|
1438
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, path, null, inputValue), tmp2, -1, path, inputValue, null);
|
|
1439
|
+
}
|
|
1440
|
+
var value_0 = value;
|
|
1441
|
+
if (!(value_0 instanceof JsonLiteral())) {
|
|
1442
|
+
var tmp2_0 = "Expected string value for a non-null key '" + tag + "', got null literal instead";
|
|
1443
|
+
var tmp4 = this.renderTagStack_ixxubu_k$(tag);
|
|
1444
|
+
var hint = "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.";
|
|
1445
|
+
var tmp_0;
|
|
1446
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1447
|
+
var tmp$ret$10 = toString2(this.currentObject_yxe2oo_k$());
|
|
1448
|
+
tmp_0 = toString2(minify(tmp$ret$10));
|
|
1449
|
+
} else {
|
|
1450
|
+
tmp_0 = null;
|
|
1451
|
+
}
|
|
1452
|
+
var inputValue_0 = tmp_0;
|
|
1453
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, tmp4, hint, inputValue_0), tmp2_0, -1, tmp4, inputValue_0, hint);
|
|
1454
|
+
}
|
|
1455
|
+
if (!value_0.isString_1 && !this.get_json_woos35_k$().configuration_1.isLenient_1) {
|
|
1456
|
+
var tmp2_1 = "String literal for value of key '" + tag + "' should be quoted";
|
|
1457
|
+
var tmp4_0 = this.renderTagStack_ixxubu_k$(tag);
|
|
1458
|
+
var hint_0 = "Use 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.";
|
|
1459
|
+
var tmp_1;
|
|
1460
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1461
|
+
var tmp$ret$14 = toString2(this.currentObject_yxe2oo_k$());
|
|
1462
|
+
tmp_1 = toString2(minify(tmp$ret$14));
|
|
1463
|
+
} else {
|
|
1464
|
+
tmp_1 = null;
|
|
1465
|
+
}
|
|
1466
|
+
var inputValue_1 = tmp_1;
|
|
1467
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_1, tmp4_0, hint_0, inputValue_1), tmp2_1, -1, tmp4_0, inputValue_1, hint_0);
|
|
1468
|
+
}
|
|
1469
|
+
return value_0.content_1;
|
|
1470
|
+
};
|
|
1471
|
+
protoOf3($).decodeTaggedString_45pp1e_k$ = function(tag) {
|
|
1472
|
+
return this.decodeTaggedString_fe7ocx_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3());
|
|
1473
|
+
};
|
|
1474
|
+
protoOf3($).decodeTaggedInline_tuyvom_k$ = function(tag, inlineDescriptor) {
|
|
1475
|
+
var tmp;
|
|
1476
|
+
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
1477
|
+
var tmp_0 = this.get_json_woos35_k$();
|
|
1478
|
+
var tmp2 = this.currentElement_4dg47r_k$(tag);
|
|
1479
|
+
var serialName = inlineDescriptor.get_serialName_u2rqhk_k$();
|
|
1480
|
+
if (!(tmp2 instanceof JsonPrimitive())) {
|
|
1481
|
+
var tmp2_0 = "Expected " + getKClass(JsonPrimitive()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(tmp2).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
1482
|
+
var path = this.renderTagStack_ixxubu_k$(tag);
|
|
1483
|
+
var tmp_1;
|
|
1484
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1485
|
+
var tmp$ret$7 = toString2(tmp2);
|
|
1486
|
+
tmp_1 = toString2(minify(tmp$ret$7));
|
|
1487
|
+
} else {
|
|
1488
|
+
tmp_1 = null;
|
|
1489
|
+
}
|
|
1490
|
+
var inputValue = tmp_1;
|
|
1491
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, path, null, inputValue), tmp2_0, -1, path, inputValue, null);
|
|
1492
|
+
}
|
|
1493
|
+
var lexer = StringJsonLexer(tmp_0, tmp2.get_content_h02jrk_k$());
|
|
1494
|
+
tmp = new (JsonDecoderForUnsignedTypes())(lexer, this.get_json_woos35_k$());
|
|
1495
|
+
} else {
|
|
1496
|
+
tmp = protoOf3(NamedValueDecoder()).decodeTaggedInline_u4chc9_k$.call(this, tag, inlineDescriptor);
|
|
1497
|
+
}
|
|
1498
|
+
return tmp;
|
|
1499
|
+
};
|
|
1500
|
+
protoOf3($).decodeTaggedInline_u4chc9_k$ = function(tag, inlineDescriptor) {
|
|
1501
|
+
return this.decodeTaggedInline_tuyvom_k$((!(tag == null) ? typeof tag === "string" : false) ? tag : THROW_CCE3(), inlineDescriptor);
|
|
1502
|
+
};
|
|
1503
|
+
protoOf3($).decodeInline_ux3vza_k$ = function(descriptor) {
|
|
1504
|
+
return !(this.get_currentTagOrNull_yhyzw_k$() == null) ? protoOf3(NamedValueDecoder()).decodeInline_ux3vza_k$.call(this, descriptor) : new (JsonPrimitiveDecoder())(this.get_json_woos35_k$(), this.get_value_j01efc_k$(), this.polymorphicDiscriminator_1).decodeInline_ux3vza_k$(descriptor);
|
|
1505
|
+
};
|
|
1506
|
+
AbstractJsonTreeDecoderClass = $;
|
|
1507
|
+
}
|
|
1508
|
+
return AbstractJsonTreeDecoderClass;
|
|
1509
|
+
}
|
|
1510
|
+
function setForceNull($this, descriptor, index) {
|
|
1511
|
+
$this.forceNull_1 = !$this.get_json_woos35_k$().configuration_1.explicitNulls_1 && !descriptor.isElementOptional_heqq56_k$(index) && descriptor.getElementDescriptor_ncda77_k$(index).get_isNullable_67sy7o_k$();
|
|
1512
|
+
return $this.forceNull_1;
|
|
1513
|
+
}
|
|
1514
|
+
var JsonTreeDecoderClass;
|
|
1515
|
+
function JsonTreeDecoder() {
|
|
1516
|
+
if (JsonTreeDecoderClass === VOID3) {
|
|
1517
|
+
let $ = function(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
1518
|
+
polymorphicDiscriminator = polymorphicDiscriminator === VOID3 ? null : polymorphicDiscriminator;
|
|
1519
|
+
polyDescriptor = polyDescriptor === VOID3 ? null : polyDescriptor;
|
|
1520
|
+
AbstractJsonTreeDecoder().call(this, json, value, polymorphicDiscriminator);
|
|
1521
|
+
this.value_2 = value;
|
|
1522
|
+
this.polyDescriptor_1 = polyDescriptor;
|
|
1523
|
+
this.position_1 = 0;
|
|
1524
|
+
this.forceNull_1 = false;
|
|
1525
|
+
};
|
|
1526
|
+
initMetadataForClass3($, "JsonTreeDecoder", VOID3, AbstractJsonTreeDecoder());
|
|
1527
|
+
protoOf3($).get_value_j01efc_k$ = function() {
|
|
1528
|
+
return this.value_2;
|
|
1529
|
+
};
|
|
1530
|
+
protoOf3($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
1531
|
+
$l$loop: while (this.position_1 < descriptor.get_elementsCount_288r0x_k$()) {
|
|
1532
|
+
var _unary__edvuaz = this.position_1;
|
|
1533
|
+
this.position_1 = _unary__edvuaz + 1 | 0;
|
|
1534
|
+
var name = this.getTag_u4dqfb_k$(descriptor, _unary__edvuaz);
|
|
1535
|
+
var index = this.position_1 - 1 | 0;
|
|
1536
|
+
this.forceNull_1 = false;
|
|
1537
|
+
var tmp;
|
|
1538
|
+
var this_0 = this.get_value_j01efc_k$();
|
|
1539
|
+
if ((isInterface2(this_0, KtMap()) ? this_0 : THROW_CCE3()).containsKey_aw81wo_k$(name)) {
|
|
1540
|
+
tmp = true;
|
|
1541
|
+
} else {
|
|
1542
|
+
tmp = setForceNull(this, descriptor, index);
|
|
1543
|
+
}
|
|
1544
|
+
if (tmp) {
|
|
1545
|
+
if (!this.configuration_1.coerceInputValues_1)
|
|
1546
|
+
return index;
|
|
1547
|
+
var tmp0 = this.get_json_woos35_k$();
|
|
1548
|
+
var tmp$ret$2;
|
|
1549
|
+
$l$block_2: {
|
|
1550
|
+
var isOptional = descriptor.isElementOptional_heqq56_k$(index);
|
|
1551
|
+
var elementDescriptor = descriptor.getElementDescriptor_ncda77_k$(index);
|
|
1552
|
+
var tmp_0;
|
|
1553
|
+
if (isOptional && !elementDescriptor.get_isNullable_67sy7o_k$()) {
|
|
1554
|
+
var tmp_1 = this.currentElementOrNull_jb4enh_k$(name);
|
|
1555
|
+
tmp_0 = tmp_1 instanceof JsonNull();
|
|
1556
|
+
} else {
|
|
1557
|
+
tmp_0 = false;
|
|
1558
|
+
}
|
|
1559
|
+
if (tmp_0) {
|
|
1560
|
+
tmp$ret$2 = true;
|
|
1561
|
+
break $l$block_2;
|
|
1562
|
+
}
|
|
1563
|
+
if (equals2(elementDescriptor.get_kind_wop7ml_k$(), ENUM_getInstance())) {
|
|
1564
|
+
var tmp_2;
|
|
1565
|
+
if (elementDescriptor.get_isNullable_67sy7o_k$()) {
|
|
1566
|
+
var tmp_3 = this.currentElementOrNull_jb4enh_k$(name);
|
|
1567
|
+
tmp_2 = tmp_3 instanceof JsonNull();
|
|
1568
|
+
} else {
|
|
1569
|
+
tmp_2 = false;
|
|
1570
|
+
}
|
|
1571
|
+
if (tmp_2) {
|
|
1572
|
+
tmp$ret$2 = false;
|
|
1573
|
+
break $l$block_2;
|
|
1574
|
+
}
|
|
1575
|
+
var tmp_4 = this.currentElementOrNull_jb4enh_k$(name);
|
|
1576
|
+
var tmp0_safe_receiver = tmp_4 instanceof JsonPrimitive() ? tmp_4 : null;
|
|
1577
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
|
|
1578
|
+
var tmp_5;
|
|
1579
|
+
if (tmp0_elvis_lhs == null) {
|
|
1580
|
+
tmp$ret$2 = false;
|
|
1581
|
+
break $l$block_2;
|
|
1582
|
+
} else {
|
|
1583
|
+
tmp_5 = tmp0_elvis_lhs;
|
|
1584
|
+
}
|
|
1585
|
+
var enumValue = tmp_5;
|
|
1586
|
+
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
1587
|
+
var coerceToNull = !tmp0.configuration_1.explicitNulls_1 && elementDescriptor.get_isNullable_67sy7o_k$();
|
|
1588
|
+
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
1589
|
+
if (setForceNull(this, descriptor, index))
|
|
1590
|
+
return index;
|
|
1591
|
+
tmp$ret$2 = true;
|
|
1592
|
+
break $l$block_2;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
tmp$ret$2 = false;
|
|
1596
|
+
}
|
|
1597
|
+
if (tmp$ret$2)
|
|
1598
|
+
continue $l$loop;
|
|
1599
|
+
return index;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
return -1;
|
|
1603
|
+
};
|
|
1604
|
+
protoOf3($).decodeNotNullMark_us4ba1_k$ = function() {
|
|
1605
|
+
return !this.forceNull_1 && protoOf3(AbstractJsonTreeDecoder()).decodeNotNullMark_us4ba1_k$.call(this);
|
|
1606
|
+
};
|
|
1607
|
+
protoOf3($).elementName_p66hrm_k$ = function(descriptor, index) {
|
|
1608
|
+
var strategy = namingStrategy(descriptor, this.get_json_woos35_k$());
|
|
1609
|
+
var baseName = descriptor.getElementName_u4sqmf_k$(index);
|
|
1610
|
+
if (strategy == null) {
|
|
1611
|
+
if (!this.configuration_1.useAlternativeNames_1)
|
|
1612
|
+
return baseName;
|
|
1613
|
+
if (this.get_value_j01efc_k$().get_keys_wop4xp_k$().contains_aljjnj_k$(baseName))
|
|
1614
|
+
return baseName;
|
|
1615
|
+
}
|
|
1616
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.get_json_woos35_k$(), descriptor);
|
|
1617
|
+
var tmp0 = this.get_value_j01efc_k$().get_keys_wop4xp_k$();
|
|
1618
|
+
var tmp$ret$1;
|
|
1619
|
+
$l$block: {
|
|
1620
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1621
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1622
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1623
|
+
if (deserializationNamesMap_0.get_wei43m_k$(element) === index) {
|
|
1624
|
+
tmp$ret$1 = element;
|
|
1625
|
+
break $l$block;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
tmp$ret$1 = null;
|
|
1629
|
+
}
|
|
1630
|
+
var tmp0_safe_receiver = tmp$ret$1;
|
|
1631
|
+
if (tmp0_safe_receiver == null)
|
|
1632
|
+
null;
|
|
1633
|
+
else {
|
|
1634
|
+
return tmp0_safe_receiver;
|
|
1635
|
+
}
|
|
1636
|
+
var fallbackName = strategy == null ? null : strategy.serialNameForJson_tclx3n_k$(descriptor, index, baseName);
|
|
1637
|
+
return fallbackName == null ? baseName : fallbackName;
|
|
1638
|
+
};
|
|
1639
|
+
protoOf3($).currentElement_4dg47r_k$ = function(tag) {
|
|
1640
|
+
return getValue(this.get_value_j01efc_k$(), tag);
|
|
1641
|
+
};
|
|
1642
|
+
protoOf3($).currentElementOrNull_jb4enh_k$ = function(tag) {
|
|
1643
|
+
return this.get_value_j01efc_k$().get_6bo4tg_k$(tag);
|
|
1644
|
+
};
|
|
1645
|
+
protoOf3($).beginStructure_yljocp_k$ = function(descriptor) {
|
|
1646
|
+
if (descriptor === this.polyDescriptor_1) {
|
|
1647
|
+
var tmp = this.get_json_woos35_k$();
|
|
1648
|
+
var tmp2 = this.currentObject_yxe2oo_k$();
|
|
1649
|
+
var serialName = this.polyDescriptor_1.get_serialName_u2rqhk_k$();
|
|
1650
|
+
if (!(tmp2 instanceof JsonObject())) {
|
|
1651
|
+
var tmp2_0 = "Expected " + getKClass(JsonObject()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression(tmp2).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
1652
|
+
var path = this.renderTagStack_rja478_k$();
|
|
1653
|
+
var tmp_0;
|
|
1654
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1655
|
+
var tmp$ret$6 = toString2(tmp2);
|
|
1656
|
+
tmp_0 = toString2(minify(tmp$ret$6));
|
|
1657
|
+
} else {
|
|
1658
|
+
tmp_0 = null;
|
|
1659
|
+
}
|
|
1660
|
+
var inputValue = tmp_0;
|
|
1661
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2_0, path, null, inputValue), tmp2_0, -1, path, inputValue, null);
|
|
1662
|
+
}
|
|
1663
|
+
return new (JsonTreeDecoder())(tmp, tmp2, this.polymorphicDiscriminator_1, this.polyDescriptor_1);
|
|
1664
|
+
}
|
|
1665
|
+
return protoOf3(AbstractJsonTreeDecoder()).beginStructure_yljocp_k$.call(this, descriptor);
|
|
1666
|
+
};
|
|
1667
|
+
protoOf3($).endStructure_1xqz0n_k$ = function(descriptor) {
|
|
1668
|
+
var tmp;
|
|
1669
|
+
if (ignoreUnknownKeys(descriptor, this.get_json_woos35_k$())) {
|
|
1670
|
+
tmp = true;
|
|
1671
|
+
} else {
|
|
1672
|
+
var tmp_0 = descriptor.get_kind_wop7ml_k$();
|
|
1673
|
+
tmp = tmp_0 instanceof PolymorphicKind();
|
|
1674
|
+
}
|
|
1675
|
+
if (tmp)
|
|
1676
|
+
return Unit_instance3;
|
|
1677
|
+
var strategy = namingStrategy(descriptor, this.get_json_woos35_k$());
|
|
1678
|
+
var tmp_1;
|
|
1679
|
+
if (strategy == null && !this.configuration_1.useAlternativeNames_1) {
|
|
1680
|
+
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
1681
|
+
} else if (!(strategy == null)) {
|
|
1682
|
+
tmp_1 = deserializationNamesMap(this.get_json_woos35_k$(), descriptor).get_keys_wop4xp_k$();
|
|
1683
|
+
} else {
|
|
1684
|
+
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
1685
|
+
var tmp0_safe_receiver = get_schemaCache(this.get_json_woos35_k$()).get_xn5txp_k$(descriptor, get_JsonDeserializationNamesKey());
|
|
1686
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.get_keys_wop4xp_k$();
|
|
1687
|
+
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
1688
|
+
tmp_1 = plus(tmp_2, tmp$ret$0);
|
|
1689
|
+
}
|
|
1690
|
+
var names = tmp_1;
|
|
1691
|
+
var _iterator__ex2g4s = this.get_value_j01efc_k$().get_keys_wop4xp_k$().iterator_jk1svi_k$();
|
|
1692
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1693
|
+
var key = _iterator__ex2g4s.next_20eer_k$();
|
|
1694
|
+
if (!names.contains_aljjnj_k$(key) && !(key === this.polymorphicDiscriminator_1)) {
|
|
1695
|
+
var tmp2 = "Encountered an unknown key '" + key + "'";
|
|
1696
|
+
var tmp4 = this.renderTagStack_rja478_k$();
|
|
1697
|
+
var hint = "Use 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.";
|
|
1698
|
+
var tmp_3;
|
|
1699
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
1700
|
+
var tmp$ret$4 = this.get_value_j01efc_k$().toString();
|
|
1701
|
+
tmp_3 = toString2(minify(tmp$ret$4));
|
|
1702
|
+
} else {
|
|
1703
|
+
tmp_3 = null;
|
|
1704
|
+
}
|
|
1705
|
+
var inputValue = tmp_3;
|
|
1706
|
+
throw new (JsonDecodingException())(access$formatDecodingException$tJsonExceptionsKt(-1, tmp2, tmp4, hint, inputValue), tmp2, -1, tmp4, inputValue, hint);
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
};
|
|
1710
|
+
JsonTreeDecoderClass = $;
|
|
1711
|
+
}
|
|
1712
|
+
return JsonTreeDecoderClass;
|
|
1713
|
+
}
|
|
1714
|
+
var JsonTreeListDecoderClass;
|
|
1715
|
+
function JsonTreeListDecoder() {
|
|
1716
|
+
if (JsonTreeListDecoderClass === VOID3) {
|
|
1717
|
+
let $ = function(json, value) {
|
|
1718
|
+
AbstractJsonTreeDecoder().call(this, json, value);
|
|
1719
|
+
this.value_2 = value;
|
|
1720
|
+
this.size_1 = this.value_2.get_size_woubt6_k$();
|
|
1721
|
+
this.currentIndex_1 = -1;
|
|
1722
|
+
};
|
|
1723
|
+
initMetadataForClass3($, "JsonTreeListDecoder", VOID3, AbstractJsonTreeDecoder());
|
|
1724
|
+
protoOf3($).get_value_j01efc_k$ = function() {
|
|
1725
|
+
return this.value_2;
|
|
1726
|
+
};
|
|
1727
|
+
protoOf3($).elementName_p66hrm_k$ = function(descriptor, index) {
|
|
1728
|
+
return index.toString();
|
|
1729
|
+
};
|
|
1730
|
+
protoOf3($).currentElement_4dg47r_k$ = function(tag) {
|
|
1731
|
+
return this.value_2.get_c1px32_k$(toInt(tag));
|
|
1732
|
+
};
|
|
1733
|
+
protoOf3($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
1734
|
+
while (this.currentIndex_1 < (this.size_1 - 1 | 0)) {
|
|
1735
|
+
this.currentIndex_1 = this.currentIndex_1 + 1 | 0;
|
|
1736
|
+
return this.currentIndex_1;
|
|
1737
|
+
}
|
|
1738
|
+
return -1;
|
|
1739
|
+
};
|
|
1740
|
+
JsonTreeListDecoderClass = $;
|
|
1741
|
+
}
|
|
1742
|
+
return JsonTreeListDecoderClass;
|
|
1743
|
+
}
|
|
1744
|
+
var JsonPrimitiveDecoderClass;
|
|
1745
|
+
function JsonPrimitiveDecoder() {
|
|
1746
|
+
if (JsonPrimitiveDecoderClass === VOID3) {
|
|
1747
|
+
let $ = function(json, value, polymorphicDiscriminator) {
|
|
1748
|
+
polymorphicDiscriminator = polymorphicDiscriminator === VOID3 ? null : polymorphicDiscriminator;
|
|
1749
|
+
AbstractJsonTreeDecoder().call(this, json, value, polymorphicDiscriminator);
|
|
1750
|
+
this.value_2 = value;
|
|
1751
|
+
this.pushTag_bibnaf_k$("primitive");
|
|
1752
|
+
};
|
|
1753
|
+
initMetadataForClass3($, "JsonPrimitiveDecoder", VOID3, AbstractJsonTreeDecoder());
|
|
1754
|
+
protoOf3($).get_value_j01efc_k$ = function() {
|
|
1755
|
+
return this.value_2;
|
|
1756
|
+
};
|
|
1757
|
+
protoOf3($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
1758
|
+
return 0;
|
|
1759
|
+
};
|
|
1760
|
+
protoOf3($).currentElement_4dg47r_k$ = function(tag) {
|
|
1761
|
+
if (!(tag === "primitive")) {
|
|
1762
|
+
var message = "This input can only handle primitives with 'primitive' tag";
|
|
1763
|
+
throw IllegalArgumentException_init_$Create$2(toString2(message));
|
|
1764
|
+
}
|
|
1765
|
+
return this.value_2;
|
|
1766
|
+
};
|
|
1767
|
+
JsonPrimitiveDecoderClass = $;
|
|
1768
|
+
}
|
|
1769
|
+
return JsonPrimitiveDecoderClass;
|
|
1770
|
+
}
|
|
1771
|
+
var JsonTreeMapDecoderClass;
|
|
1772
|
+
function JsonTreeMapDecoder() {
|
|
1773
|
+
if (JsonTreeMapDecoderClass === VOID3) {
|
|
1774
|
+
let $ = function(json, value) {
|
|
1775
|
+
JsonTreeDecoder().call(this, json, value);
|
|
1776
|
+
this.value_3 = value;
|
|
1777
|
+
this.keys_1 = toList(this.value_3.get_keys_wop4xp_k$());
|
|
1778
|
+
this.size_1 = imul(this.keys_1.get_size_woubt6_k$(), 2);
|
|
1779
|
+
this.position_2 = -1;
|
|
1780
|
+
};
|
|
1781
|
+
initMetadataForClass3($, "JsonTreeMapDecoder", VOID3, JsonTreeDecoder());
|
|
1782
|
+
protoOf3($).get_value_j01efc_k$ = function() {
|
|
1783
|
+
return this.value_3;
|
|
1784
|
+
};
|
|
1785
|
+
protoOf3($).elementName_p66hrm_k$ = function(descriptor, index) {
|
|
1786
|
+
var i = index / 2 | 0;
|
|
1787
|
+
return this.keys_1.get_c1px32_k$(i);
|
|
1788
|
+
};
|
|
1789
|
+
protoOf3($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
1790
|
+
while (this.position_2 < (this.size_1 - 1 | 0)) {
|
|
1791
|
+
this.position_2 = this.position_2 + 1 | 0;
|
|
1792
|
+
return this.position_2;
|
|
1793
|
+
}
|
|
1794
|
+
return -1;
|
|
1795
|
+
};
|
|
1796
|
+
protoOf3($).currentElement_4dg47r_k$ = function(tag) {
|
|
1797
|
+
return (this.position_2 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.value_3, tag);
|
|
1798
|
+
};
|
|
1799
|
+
protoOf3($).endStructure_1xqz0n_k$ = function(descriptor) {
|
|
1800
|
+
};
|
|
1801
|
+
JsonTreeMapDecoderClass = $;
|
|
1802
|
+
}
|
|
1803
|
+
return JsonTreeMapDecoderClass;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs
|
|
1807
|
+
import {
|
|
1808
|
+
protoOf180f3jzyo7rfj as protoOf4,
|
|
1809
|
+
equals2au1ep9vhcato as equals3,
|
|
1810
|
+
toString1pkumu07cwy4m as toString3
|
|
1811
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
1812
|
+
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass4 } from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
1813
|
+
import { VOID3gxj6tk5isa35 as VOID4 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
1814
|
+
import { _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx2 } from "../kotlin-kotlin-stdlib/kotlin/Char.mjs";
|
|
1815
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance4 } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
1816
|
+
import {
|
|
1817
|
+
invalidTrailingComma2uwwnmbqspks2 as invalidTrailingComma2,
|
|
1818
|
+
minify1kh64osmcox7j as minify2,
|
|
1819
|
+
access$formatDecodingException$tJsonExceptionsKt2yfifxvnjk03f as access$formatDecodingException$tJsonExceptionsKt2,
|
|
1820
|
+
throwInvalidFloatingPointDecoded3ghwdo6vya1kj as throwInvalidFloatingPointDecoded
|
|
1821
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs";
|
|
1822
|
+
import {
|
|
1823
|
+
getJsonNameIndex1fee1p51fy8fj as getJsonNameIndex2,
|
|
1824
|
+
ignoreUnknownKeys1ot1okvsp9ttf as ignoreUnknownKeys2,
|
|
1825
|
+
getJsonNameIndexOrThrow1a6a29i1xie0m as getJsonNameIndexOrThrow2
|
|
1826
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs";
|
|
1827
|
+
import { ENUM_getInstance25239ht7oag6o as ENUM_getInstance2 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs";
|
|
1828
|
+
import { AbstractDecoder35guh02ubh2hm as AbstractDecoder } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs";
|
|
1829
|
+
import { JsonElementMarker395jk2pil4789 as JsonElementMarker } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs";
|
|
1830
|
+
import { AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer3 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs";
|
|
1831
|
+
import { classDiscriminator9fd3hvqsgfqq as classDiscriminator3 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs";
|
|
1832
|
+
import {
|
|
1833
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE4,
|
|
1834
|
+
ensureNotNull1e947j3ixpazm as ensureNotNull2
|
|
1835
|
+
} from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
1836
|
+
import { DeserializationStrategy1z3z5pj9f7zc8 as DeserializationStrategy2 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs";
|
|
1837
|
+
import { isInterface3d6p8outrmvmk as isInterface3 } from "../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs";
|
|
1838
|
+
import {
|
|
1839
|
+
getKClass3t8tygqu4lcxf as getKClass2,
|
|
1840
|
+
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression2
|
|
1841
|
+
} from "../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs";
|
|
1842
|
+
import { JsonDecodingExceptionoyag1psadwuw as JsonDecodingException2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonExceptions.mjs";
|
|
1843
|
+
import { findPolymorphicSerializer1nm87hvemahcj as findPolymorphicSerializer3 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs";
|
|
1844
|
+
import {
|
|
1845
|
+
SerializationExceptioneqrdve3ts2n9 as SerializationException2,
|
|
1846
|
+
MissingFieldException24tqif29emcmi as MissingFieldException
|
|
1847
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs";
|
|
1848
|
+
import {
|
|
1849
|
+
substringBefore3n7kj60w69hju as substringBefore,
|
|
1850
|
+
removeSuffix3d61x5lsuvuho as removeSuffix,
|
|
1851
|
+
substringAfter1hku067gwr5ve as substringAfter,
|
|
1852
|
+
contains3ue2qo8xhmpf1 as contains2
|
|
1853
|
+
} from "../kotlin-kotlin-stdlib/kotlin/text/Strings.mjs";
|
|
1854
|
+
import { plus17rl43at52ays as plus2 } from "../kotlin-kotlin-stdlib/kotlin/Library.mjs";
|
|
1855
|
+
import { missingFieldExceptionWithNewMessage2gqddjx5jxge9 as missingFieldExceptionWithNewMessage } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/JsonInternalDependencies.mjs";
|
|
1856
|
+
import {
|
|
1857
|
+
switchMode35g725ikhjpwv as switchMode2,
|
|
1858
|
+
WriteMode_MAP_getInstance2mu7mal5c4now as WriteMode_MAP_getInstance
|
|
1859
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs";
|
|
1860
|
+
import {
|
|
1861
|
+
convertToByte2t4hntblnhq2k as convertToByte2,
|
|
1862
|
+
fromInt2ii0rejb1w62w as fromInt,
|
|
1863
|
+
convertToShortn6n5n7ruahkm as convertToShort2,
|
|
1864
|
+
convertToInty04h231mmjoh as convertToInt2
|
|
1865
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/internal/longAsBigInt/longAsBigInt.mjs";
|
|
1866
|
+
import { toDouble1kn912gjoizjp as toDouble } from "../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs";
|
|
1867
|
+
import {
|
|
1868
|
+
IllegalArgumentException2asla15b5jaob as IllegalArgumentException2,
|
|
1869
|
+
IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$
|
|
1870
|
+
} from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
1871
|
+
import {
|
|
1872
|
+
isFinite1tx0gn65nl9tj as isFinite3,
|
|
1873
|
+
isFinite2t9l5a275mxm6 as isFinite_03
|
|
1874
|
+
} from "../kotlin-kotlin-stdlib/kotlin/NumbersJs.mjs";
|
|
1875
|
+
import { charCodeAt1yspne1d8erbm as charCodeAt } from "../kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs";
|
|
1876
|
+
import { JsonDecoder1rijst5ne6qla as JsonDecoder2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonDecoder.mjs";
|
|
1877
|
+
import {
|
|
1878
|
+
toUInt21lx0mz8wkp7c as toUInt,
|
|
1879
|
+
toULong266mnyksbttkw as toULong,
|
|
1880
|
+
toUByteh6p4wmqswkrs as toUByte,
|
|
1881
|
+
toUShort7yqspfnhrot4 as toUShort
|
|
1882
|
+
} from "../kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs";
|
|
1883
|
+
import { _UInt___get_data__impl__f0vqqw30ojw38w2y6td as _UInt___get_data__impl__f0vqqw } from "../kotlin-kotlin-stdlib/kotlin/UInt.mjs";
|
|
1884
|
+
import { _ULong___get_data__impl__fggpzbbo8lz7f8fnfy as _ULong___get_data__impl__fggpzb } from "../kotlin-kotlin-stdlib/kotlin/ULong.mjs";
|
|
1885
|
+
import { _UByte___get_data__impl__jof9qr100nrznmlnqj as _UByte___get_data__impl__jof9qr } from "../kotlin-kotlin-stdlib/kotlin/UByte.mjs";
|
|
1886
|
+
import { _UShort___get_data__impl__g02451raj6q6epxg1b as _UShort___get_data__impl__g0245 } from "../kotlin-kotlin-stdlib/kotlin/UShort.mjs";
|
|
1887
|
+
var DiscriminatorHolderClass;
|
|
1888
|
+
function DiscriminatorHolder() {
|
|
1889
|
+
if (DiscriminatorHolderClass === VOID4) {
|
|
1890
|
+
let $ = function(discriminatorToSkip) {
|
|
1891
|
+
this.discriminatorToSkip_1 = discriminatorToSkip;
|
|
1892
|
+
};
|
|
1893
|
+
initMetadataForClass4($, "DiscriminatorHolder");
|
|
1894
|
+
DiscriminatorHolderClass = $;
|
|
1895
|
+
}
|
|
1896
|
+
return DiscriminatorHolderClass;
|
|
1897
|
+
}
|
|
1898
|
+
function trySkip($this, $receiver, unknownKey) {
|
|
1899
|
+
if ($receiver == null)
|
|
1900
|
+
return false;
|
|
1901
|
+
if ($receiver.discriminatorToSkip_1 === unknownKey) {
|
|
1902
|
+
$receiver.discriminatorToSkip_1 = null;
|
|
1903
|
+
return true;
|
|
1904
|
+
}
|
|
1905
|
+
return false;
|
|
1906
|
+
}
|
|
1907
|
+
function skipLeftoverElements($this, descriptor) {
|
|
1908
|
+
while (!($this.decodeElementIndex_bstkhp_k$(descriptor) === -1)) {
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
function checkLeadingComma($this) {
|
|
1912
|
+
if ($this.lexer_1.peekNextToken_1gqwr9_k$() === 4) {
|
|
1913
|
+
$this.lexer_1.fail$default_ly4hfp_k$("Unexpected leading comma");
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
function decodeMapIndex($this) {
|
|
1917
|
+
var hasComma = false;
|
|
1918
|
+
var decodingKey = !(($this.currentIndex_1 % 2 | 0) === 0);
|
|
1919
|
+
if (decodingKey) {
|
|
1920
|
+
if (!($this.currentIndex_1 === -1)) {
|
|
1921
|
+
hasComma = $this.lexer_1.tryConsumeComma_9n2ve4_k$();
|
|
1922
|
+
}
|
|
1923
|
+
} else {
|
|
1924
|
+
$this.lexer_1.consumeNextToken_kteg6b_k$(_Char___init__impl__6a9atx2(58));
|
|
1925
|
+
}
|
|
1926
|
+
var tmp;
|
|
1927
|
+
if ($this.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
1928
|
+
if (decodingKey) {
|
|
1929
|
+
if ($this.currentIndex_1 === -1) {
|
|
1930
|
+
var tmp0 = $this.lexer_1;
|
|
1931
|
+
var condition = !hasComma;
|
|
1932
|
+
var position = tmp0.currentPosition_1;
|
|
1933
|
+
if (!condition) {
|
|
1934
|
+
var tmp$ret$1 = "Unexpected leading comma";
|
|
1935
|
+
tmp0.fail$default_ly4hfp_k$(tmp$ret$1, position);
|
|
1936
|
+
}
|
|
1937
|
+
} else {
|
|
1938
|
+
var tmp0_0 = $this.lexer_1;
|
|
1939
|
+
var condition_0 = hasComma;
|
|
1940
|
+
var position_0 = tmp0_0.currentPosition_1;
|
|
1941
|
+
if (!condition_0) {
|
|
1942
|
+
var tmp$ret$3 = "Expected comma after the key-value pair";
|
|
1943
|
+
tmp0_0.fail$default_ly4hfp_k$(tmp$ret$3, position_0);
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
$this.currentIndex_1 = $this.currentIndex_1 + 1 | 0;
|
|
1948
|
+
tmp = $this.currentIndex_1;
|
|
1949
|
+
} else {
|
|
1950
|
+
if (hasComma && !$this.json_1.configuration_1.allowTrailingComma_1) {
|
|
1951
|
+
invalidTrailingComma2($this.lexer_1);
|
|
1952
|
+
}
|
|
1953
|
+
tmp = -1;
|
|
1954
|
+
}
|
|
1955
|
+
return tmp;
|
|
1956
|
+
}
|
|
1957
|
+
function coerceInputValue($this, descriptor, index) {
|
|
1958
|
+
var tmp0 = $this.json_1;
|
|
1959
|
+
var tmp$ret$0;
|
|
1960
|
+
$l$block_2: {
|
|
1961
|
+
var isOptional = descriptor.isElementOptional_heqq56_k$(index);
|
|
1962
|
+
var elementDescriptor = descriptor.getElementDescriptor_ncda77_k$(index);
|
|
1963
|
+
var tmp;
|
|
1964
|
+
if (isOptional && !elementDescriptor.get_isNullable_67sy7o_k$()) {
|
|
1965
|
+
tmp = $this.lexer_1.tryConsumeNull_2shltp_k$(true);
|
|
1966
|
+
} else {
|
|
1967
|
+
tmp = false;
|
|
1968
|
+
}
|
|
1969
|
+
if (tmp) {
|
|
1970
|
+
tmp$ret$0 = true;
|
|
1971
|
+
break $l$block_2;
|
|
1972
|
+
}
|
|
1973
|
+
if (equals3(elementDescriptor.get_kind_wop7ml_k$(), ENUM_getInstance2())) {
|
|
1974
|
+
var tmp_0;
|
|
1975
|
+
if (elementDescriptor.get_isNullable_67sy7o_k$()) {
|
|
1976
|
+
tmp_0 = $this.lexer_1.tryConsumeNull_2shltp_k$(false);
|
|
1977
|
+
} else {
|
|
1978
|
+
tmp_0 = false;
|
|
1979
|
+
}
|
|
1980
|
+
if (tmp_0) {
|
|
1981
|
+
tmp$ret$0 = false;
|
|
1982
|
+
break $l$block_2;
|
|
1983
|
+
}
|
|
1984
|
+
var tmp0_elvis_lhs = $this.lexer_1.peekString_d4c947_k$($this.configuration_1.isLenient_1);
|
|
1985
|
+
var tmp_1;
|
|
1986
|
+
if (tmp0_elvis_lhs == null) {
|
|
1987
|
+
tmp$ret$0 = false;
|
|
1988
|
+
break $l$block_2;
|
|
1989
|
+
} else {
|
|
1990
|
+
tmp_1 = tmp0_elvis_lhs;
|
|
1991
|
+
}
|
|
1992
|
+
var enumValue = tmp_1;
|
|
1993
|
+
var enumIndex = getJsonNameIndex2(elementDescriptor, tmp0, enumValue);
|
|
1994
|
+
var coerceToNull = !tmp0.configuration_1.explicitNulls_1 && elementDescriptor.get_isNullable_67sy7o_k$();
|
|
1995
|
+
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
1996
|
+
$this.lexer_1.consumeString_j3j2z7_k$();
|
|
1997
|
+
tmp$ret$0 = true;
|
|
1998
|
+
break $l$block_2;
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
tmp$ret$0 = false;
|
|
2002
|
+
}
|
|
2003
|
+
return tmp$ret$0;
|
|
2004
|
+
}
|
|
2005
|
+
function decodeObjectIndex($this, descriptor) {
|
|
2006
|
+
var hasComma = $this.lexer_1.tryConsumeComma_9n2ve4_k$();
|
|
2007
|
+
while ($this.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
2008
|
+
hasComma = false;
|
|
2009
|
+
var key = decodeStringKey($this);
|
|
2010
|
+
$this.lexer_1.consumeNextToken_kteg6b_k$(_Char___init__impl__6a9atx2(58));
|
|
2011
|
+
var index = getJsonNameIndex2(descriptor, $this.json_1, key);
|
|
2012
|
+
var tmp;
|
|
2013
|
+
if (!(index === -3)) {
|
|
2014
|
+
var tmp_0;
|
|
2015
|
+
if ($this.configuration_1.coerceInputValues_1 && coerceInputValue($this, descriptor, index)) {
|
|
2016
|
+
hasComma = $this.lexer_1.tryConsumeComma_9n2ve4_k$();
|
|
2017
|
+
tmp_0 = false;
|
|
2018
|
+
} else {
|
|
2019
|
+
var tmp0_safe_receiver = $this.elementMarker_1;
|
|
2020
|
+
if (tmp0_safe_receiver == null)
|
|
2021
|
+
null;
|
|
2022
|
+
else {
|
|
2023
|
+
tmp0_safe_receiver.mark_lz09aa_k$(index);
|
|
2024
|
+
}
|
|
2025
|
+
return index;
|
|
2026
|
+
}
|
|
2027
|
+
tmp = tmp_0;
|
|
2028
|
+
} else {
|
|
2029
|
+
tmp = true;
|
|
2030
|
+
}
|
|
2031
|
+
var isUnknown = tmp;
|
|
2032
|
+
if (isUnknown) {
|
|
2033
|
+
hasComma = handleUnknown($this, descriptor, key);
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
if (hasComma && !$this.json_1.configuration_1.allowTrailingComma_1) {
|
|
2037
|
+
invalidTrailingComma2($this.lexer_1);
|
|
2038
|
+
}
|
|
2039
|
+
var tmp1_safe_receiver = $this.elementMarker_1;
|
|
2040
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.nextUnmarkedIndex_feexpp_k$();
|
|
2041
|
+
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2042
|
+
}
|
|
2043
|
+
function handleUnknown($this, descriptor, key) {
|
|
2044
|
+
if (ignoreUnknownKeys2(descriptor, $this.json_1) || trySkip($this, $this.discriminatorHolder_1, key)) {
|
|
2045
|
+
$this.lexer_1.skipElement_eq7t4_k$($this.configuration_1.isLenient_1);
|
|
2046
|
+
} else {
|
|
2047
|
+
$this.lexer_1.path_1.popDescriptor_wfx7tc_k$();
|
|
2048
|
+
$this.lexer_1.failOnUnknownKey_g0pqrs_k$(key);
|
|
2049
|
+
}
|
|
2050
|
+
return $this.lexer_1.tryConsumeComma_9n2ve4_k$();
|
|
2051
|
+
}
|
|
2052
|
+
function decodeListIndex($this) {
|
|
2053
|
+
var hasComma = $this.lexer_1.tryConsumeComma_9n2ve4_k$();
|
|
2054
|
+
var tmp;
|
|
2055
|
+
if ($this.lexer_1.canConsumeValue_oljqd7_k$()) {
|
|
2056
|
+
if (!($this.currentIndex_1 === -1) && !hasComma) {
|
|
2057
|
+
$this.lexer_1.fail$default_ly4hfp_k$("Expected end of the array or comma");
|
|
2058
|
+
}
|
|
2059
|
+
$this.currentIndex_1 = $this.currentIndex_1 + 1 | 0;
|
|
2060
|
+
tmp = $this.currentIndex_1;
|
|
2061
|
+
} else {
|
|
2062
|
+
if (hasComma && !$this.json_1.configuration_1.allowTrailingComma_1) {
|
|
2063
|
+
invalidTrailingComma2($this.lexer_1, "array");
|
|
2064
|
+
}
|
|
2065
|
+
tmp = -1;
|
|
2066
|
+
}
|
|
2067
|
+
return tmp;
|
|
2068
|
+
}
|
|
2069
|
+
function decodeStringKey($this) {
|
|
2070
|
+
var tmp;
|
|
2071
|
+
if ($this.configuration_1.isLenient_1) {
|
|
2072
|
+
tmp = $this.lexer_1.consumeStringLenientNotNull_m2rgts_k$();
|
|
2073
|
+
} else {
|
|
2074
|
+
tmp = $this.lexer_1.consumeKeyString_mfa3ws_k$();
|
|
2075
|
+
}
|
|
2076
|
+
return tmp;
|
|
2077
|
+
}
|
|
2078
|
+
var StreamingJsonDecoderClass;
|
|
2079
|
+
function StreamingJsonDecoder() {
|
|
2080
|
+
if (StreamingJsonDecoderClass === VOID4) {
|
|
2081
|
+
let $ = function(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
2082
|
+
AbstractDecoder().call(this);
|
|
2083
|
+
this.json_1 = json;
|
|
2084
|
+
this.mode_1 = mode;
|
|
2085
|
+
this.lexer_1 = lexer;
|
|
2086
|
+
this.serializersModule_1 = this.json_1.get_serializersModule_piitvg_k$();
|
|
2087
|
+
this.currentIndex_1 = -1;
|
|
2088
|
+
this.discriminatorHolder_1 = discriminatorHolder;
|
|
2089
|
+
this.configuration_1 = this.json_1.configuration_1;
|
|
2090
|
+
this.elementMarker_1 = this.configuration_1.explicitNulls_1 ? null : new (JsonElementMarker())(descriptor);
|
|
2091
|
+
};
|
|
2092
|
+
initMetadataForClass4($, "StreamingJsonDecoder", VOID4, AbstractDecoder(), [JsonDecoder2()]);
|
|
2093
|
+
protoOf4($).get_json_woos35_k$ = function() {
|
|
2094
|
+
return this.json_1;
|
|
2095
|
+
};
|
|
2096
|
+
protoOf4($).get_serializersModule_piitvg_k$ = function() {
|
|
2097
|
+
return this.serializersModule_1;
|
|
2098
|
+
};
|
|
2099
|
+
protoOf4($).decodeJsonElement_6lz9ye_k$ = function() {
|
|
2100
|
+
return new (JsonTreeReader())(this.json_1.configuration_1, this.lexer_1).read_22xsm_k$();
|
|
2101
|
+
};
|
|
2102
|
+
protoOf4($).decodeSerializableValue_xpnpad_k$ = function(deserializer) {
|
|
2103
|
+
try {
|
|
2104
|
+
var tmp;
|
|
2105
|
+
if (!(deserializer instanceof AbstractPolymorphicSerializer3())) {
|
|
2106
|
+
tmp = true;
|
|
2107
|
+
} else {
|
|
2108
|
+
tmp = this.json_1.configuration_1.useArrayPolymorphism_1;
|
|
2109
|
+
}
|
|
2110
|
+
if (tmp) {
|
|
2111
|
+
return deserializer.deserialize_sy6x50_k$(this);
|
|
2112
|
+
}
|
|
2113
|
+
var discriminator = classDiscriminator3(deserializer.get_descriptor_wjt6a0_k$(), this.json_1);
|
|
2114
|
+
var tmp0_elvis_lhs = this.lexer_1.peekLeadingMatchingValue_y3am18_k$(discriminator, this.configuration_1.isLenient_1);
|
|
2115
|
+
var tmp_0;
|
|
2116
|
+
if (tmp0_elvis_lhs == null) {
|
|
2117
|
+
var tmp2 = isInterface3(deserializer, DeserializationStrategy2()) ? deserializer : THROW_CCE4();
|
|
2118
|
+
var tmp$ret$0;
|
|
2119
|
+
$l$block: {
|
|
2120
|
+
var tmp_1;
|
|
2121
|
+
if (!(tmp2 instanceof AbstractPolymorphicSerializer3())) {
|
|
2122
|
+
tmp_1 = true;
|
|
2123
|
+
} else {
|
|
2124
|
+
tmp_1 = this.get_json_woos35_k$().configuration_1.useArrayPolymorphism_1;
|
|
2125
|
+
}
|
|
2126
|
+
if (tmp_1) {
|
|
2127
|
+
tmp$ret$0 = tmp2.deserialize_sy6x50_k$(this);
|
|
2128
|
+
break $l$block;
|
|
2129
|
+
}
|
|
2130
|
+
var discriminator_0 = classDiscriminator3(tmp2.get_descriptor_wjt6a0_k$(), this.get_json_woos35_k$());
|
|
2131
|
+
var tmp2_0 = this.decodeJsonElement_6lz9ye_k$();
|
|
2132
|
+
var serialName = tmp2.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
|
|
2133
|
+
if (!(tmp2_0 instanceof JsonObject())) {
|
|
2134
|
+
var tmp2_1 = "Expected " + getKClass2(JsonObject()).get_simpleName_r6f8py_k$() + ", but had " + getKClassFromExpression2(tmp2_0).get_simpleName_r6f8py_k$() + " as the serialized body of " + serialName;
|
|
2135
|
+
var path = this.lexer_1.path_1.getPath_18su3p_k$();
|
|
2136
|
+
var tmp_2;
|
|
2137
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
2138
|
+
var tmp$ret$6 = toString3(tmp2_0);
|
|
2139
|
+
tmp_2 = toString3(minify2(tmp$ret$6));
|
|
2140
|
+
} else {
|
|
2141
|
+
tmp_2 = null;
|
|
2142
|
+
}
|
|
2143
|
+
var inputValue = tmp_2;
|
|
2144
|
+
throw new (JsonDecodingException2())(access$formatDecodingException$tJsonExceptionsKt2(-1, tmp2_1, path, null, inputValue), tmp2_1, -1, path, inputValue, null);
|
|
2145
|
+
}
|
|
2146
|
+
var jsonTree = tmp2_0;
|
|
2147
|
+
var tmp0_safe_receiver = jsonTree.get_6bo4tg_k$(discriminator_0);
|
|
2148
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
2149
|
+
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
2150
|
+
var tmp_3;
|
|
2151
|
+
try {
|
|
2152
|
+
tmp_3 = findPolymorphicSerializer3(tmp2, this, type);
|
|
2153
|
+
} catch ($p) {
|
|
2154
|
+
var tmp_4;
|
|
2155
|
+
if ($p instanceof SerializationException2()) {
|
|
2156
|
+
var it = $p;
|
|
2157
|
+
var shortMessage = ensureNotNull2(it.message);
|
|
2158
|
+
var tmp_5;
|
|
2159
|
+
if (this.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
2160
|
+
var tmp$ret$10 = jsonTree.toString();
|
|
2161
|
+
tmp_5 = toString3(minify2(tmp$ret$10));
|
|
2162
|
+
} else {
|
|
2163
|
+
tmp_5 = null;
|
|
2164
|
+
}
|
|
2165
|
+
var inputValue_0 = tmp_5;
|
|
2166
|
+
throw new (JsonDecodingException2())(access$formatDecodingException$tJsonExceptionsKt2(-1, shortMessage, null, null, inputValue_0), shortMessage, -1, null, inputValue_0, null);
|
|
2167
|
+
} else {
|
|
2168
|
+
throw $p;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
var tmp_6 = tmp_3;
|
|
2172
|
+
var actualSerializer = isInterface3(tmp_6, DeserializationStrategy2()) ? tmp_6 : THROW_CCE4();
|
|
2173
|
+
tmp$ret$0 = readPolymorphicJson(this.get_json_woos35_k$(), discriminator_0, jsonTree, actualSerializer);
|
|
2174
|
+
}
|
|
2175
|
+
return tmp$ret$0;
|
|
2176
|
+
} else {
|
|
2177
|
+
tmp_0 = tmp0_elvis_lhs;
|
|
2178
|
+
}
|
|
2179
|
+
var type_0 = tmp_0;
|
|
2180
|
+
var tmp_7;
|
|
2181
|
+
try {
|
|
2182
|
+
tmp_7 = findPolymorphicSerializer3(deserializer, this, type_0);
|
|
2183
|
+
} catch ($p_0) {
|
|
2184
|
+
var tmp_8;
|
|
2185
|
+
if ($p_0 instanceof SerializationException2()) {
|
|
2186
|
+
var it_0 = $p_0;
|
|
2187
|
+
var message = removeSuffix(substringBefore(ensureNotNull2(it_0.message), _Char___init__impl__6a9atx2(10)), ".");
|
|
2188
|
+
var hint = substringAfter(ensureNotNull2(it_0.message), _Char___init__impl__6a9atx2(10), "");
|
|
2189
|
+
this.lexer_1.fail$default_ly4hfp_k$(message, VOID4, hint);
|
|
2190
|
+
} else {
|
|
2191
|
+
throw $p_0;
|
|
2192
|
+
}
|
|
2193
|
+
tmp_7 = tmp_8;
|
|
2194
|
+
}
|
|
2195
|
+
var tmp_9 = tmp_7;
|
|
2196
|
+
var actualSerializer_0 = isInterface3(tmp_9, DeserializationStrategy2()) ? tmp_9 : THROW_CCE4();
|
|
2197
|
+
this.discriminatorHolder_1 = new (DiscriminatorHolder())(discriminator);
|
|
2198
|
+
return actualSerializer_0.deserialize_sy6x50_k$(this);
|
|
2199
|
+
} catch ($p_1) {
|
|
2200
|
+
if ($p_1 instanceof MissingFieldException()) {
|
|
2201
|
+
var e = $p_1;
|
|
2202
|
+
if (contains2(ensureNotNull2(e.message), "at path"))
|
|
2203
|
+
throw e;
|
|
2204
|
+
throw missingFieldExceptionWithNewMessage(e, plus2(e.message, " at path: ") + this.lexer_1.path_1.getPath_18su3p_k$());
|
|
2205
|
+
} else {
|
|
2206
|
+
throw $p_1;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
2210
|
+
protoOf4($).beginStructure_yljocp_k$ = function(descriptor) {
|
|
2211
|
+
var newMode = switchMode2(this.json_1, descriptor);
|
|
2212
|
+
this.lexer_1.path_1.pushDescriptor_ymkfo8_k$(descriptor);
|
|
2213
|
+
this.lexer_1.consumeNextToken_kteg6b_k$(newMode.begin_1);
|
|
2214
|
+
checkLeadingComma(this);
|
|
2215
|
+
var tmp;
|
|
2216
|
+
switch (newMode.ordinal_1) {
|
|
2217
|
+
case 1:
|
|
2218
|
+
case 2:
|
|
2219
|
+
case 3:
|
|
2220
|
+
tmp = new (StreamingJsonDecoder())(this.json_1, newMode, this.lexer_1, descriptor, this.discriminatorHolder_1);
|
|
2221
|
+
break;
|
|
2222
|
+
default:
|
|
2223
|
+
var tmp_0;
|
|
2224
|
+
if (this.mode_1.equals(newMode) && this.json_1.configuration_1.explicitNulls_1) {
|
|
2225
|
+
tmp_0 = this;
|
|
2226
|
+
} else {
|
|
2227
|
+
tmp_0 = new (StreamingJsonDecoder())(this.json_1, newMode, this.lexer_1, descriptor, this.discriminatorHolder_1);
|
|
2228
|
+
}
|
|
2229
|
+
tmp = tmp_0;
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
return tmp;
|
|
2233
|
+
};
|
|
2234
|
+
protoOf4($).endStructure_1xqz0n_k$ = function(descriptor) {
|
|
2235
|
+
if (descriptor.get_elementsCount_288r0x_k$() === 0 && ignoreUnknownKeys2(descriptor, this.json_1)) {
|
|
2236
|
+
skipLeftoverElements(this, descriptor);
|
|
2237
|
+
}
|
|
2238
|
+
if (this.lexer_1.tryConsumeComma_9n2ve4_k$() && !this.json_1.configuration_1.allowTrailingComma_1) {
|
|
2239
|
+
invalidTrailingComma2(this.lexer_1, "");
|
|
2240
|
+
}
|
|
2241
|
+
this.lexer_1.consumeNextToken_kteg6b_k$(this.mode_1.end_1);
|
|
2242
|
+
this.lexer_1.path_1.popDescriptor_wfx7tc_k$();
|
|
2243
|
+
};
|
|
2244
|
+
protoOf4($).decodeNotNullMark_us4ba1_k$ = function() {
|
|
2245
|
+
var tmp;
|
|
2246
|
+
var tmp0_safe_receiver = this.elementMarker_1;
|
|
2247
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.isUnmarkedNull_1;
|
|
2248
|
+
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2249
|
+
tmp = !this.lexer_1.tryConsumeNull$default_t5tauc_k$();
|
|
2250
|
+
} else {
|
|
2251
|
+
tmp = false;
|
|
2252
|
+
}
|
|
2253
|
+
return tmp;
|
|
2254
|
+
};
|
|
2255
|
+
protoOf4($).decodeNull_jzrmuj_k$ = function() {
|
|
2256
|
+
return null;
|
|
2257
|
+
};
|
|
2258
|
+
protoOf4($).decodeSerializableElement_uahnnv_k$ = function(descriptor, index, deserializer, previousValue) {
|
|
2259
|
+
var isMapKey = this.mode_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2260
|
+
if (isMapKey) {
|
|
2261
|
+
this.lexer_1.path_1.resetCurrentMapKey_1l0a77_k$();
|
|
2262
|
+
}
|
|
2263
|
+
var value = protoOf4(AbstractDecoder()).decodeSerializableElement_uahnnv_k$.call(this, descriptor, index, deserializer, previousValue);
|
|
2264
|
+
if (isMapKey) {
|
|
2265
|
+
this.lexer_1.path_1.updateCurrentMapKey_rv46l8_k$(value);
|
|
2266
|
+
}
|
|
2267
|
+
return value;
|
|
2268
|
+
};
|
|
2269
|
+
protoOf4($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
2270
|
+
var index;
|
|
2271
|
+
switch (this.mode_1.ordinal_1) {
|
|
2272
|
+
case 0:
|
|
2273
|
+
index = decodeObjectIndex(this, descriptor);
|
|
2274
|
+
break;
|
|
2275
|
+
case 2:
|
|
2276
|
+
index = decodeMapIndex(this);
|
|
2277
|
+
break;
|
|
2278
|
+
default:
|
|
2279
|
+
index = decodeListIndex(this);
|
|
2280
|
+
break;
|
|
2281
|
+
}
|
|
2282
|
+
if (!this.mode_1.equals(WriteMode_MAP_getInstance())) {
|
|
2283
|
+
this.lexer_1.path_1.updateDescriptorIndex_kw65aq_k$(index);
|
|
2284
|
+
}
|
|
2285
|
+
return index;
|
|
2286
|
+
};
|
|
2287
|
+
protoOf4($).decodeBoolean_m0aca_k$ = function() {
|
|
2288
|
+
return this.lexer_1.consumeBooleanLenient_iqeqb9_k$();
|
|
2289
|
+
};
|
|
2290
|
+
protoOf4($).decodeByte_jzz7je_k$ = function() {
|
|
2291
|
+
var value = this.lexer_1.consumeNumericLiteral_rdea66_k$();
|
|
2292
|
+
if (!(value === fromInt(convertToByte2(value)))) {
|
|
2293
|
+
this.lexer_1.fail$default_ly4hfp_k$("Failed to parse byte for input '" + value.toString() + "'");
|
|
2294
|
+
}
|
|
2295
|
+
return convertToByte2(value);
|
|
2296
|
+
};
|
|
2297
|
+
protoOf4($).decodeShort_jjqk32_k$ = function() {
|
|
2298
|
+
var value = this.lexer_1.consumeNumericLiteral_rdea66_k$();
|
|
2299
|
+
if (!(value === fromInt(convertToShort2(value)))) {
|
|
2300
|
+
this.lexer_1.fail$default_ly4hfp_k$("Failed to parse short for input '" + value.toString() + "'");
|
|
2301
|
+
}
|
|
2302
|
+
return convertToShort2(value);
|
|
2303
|
+
};
|
|
2304
|
+
protoOf4($).decodeInt_8iq8f5_k$ = function() {
|
|
2305
|
+
var value = this.lexer_1.consumeNumericLiteral_rdea66_k$();
|
|
2306
|
+
if (!(value === fromInt(convertToInt2(value)))) {
|
|
2307
|
+
this.lexer_1.fail$default_ly4hfp_k$("Failed to parse int for input '" + value.toString() + "'");
|
|
2308
|
+
}
|
|
2309
|
+
return convertToInt2(value);
|
|
2310
|
+
};
|
|
2311
|
+
protoOf4($).decodeLong_jzt186_k$ = function() {
|
|
2312
|
+
return this.lexer_1.consumeNumericLiteral_rdea66_k$();
|
|
2313
|
+
};
|
|
2314
|
+
protoOf4($).decodeFloat_jcnrwu_k$ = function() {
|
|
2315
|
+
var tmp0 = this.lexer_1;
|
|
2316
|
+
var tmp$ret$0;
|
|
2317
|
+
$l$block: {
|
|
2318
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2319
|
+
try {
|
|
2320
|
+
tmp$ret$0 = toDouble(input);
|
|
2321
|
+
break $l$block;
|
|
2322
|
+
} catch ($p) {
|
|
2323
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2324
|
+
var e = $p;
|
|
2325
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'float' for input '" + input + "'");
|
|
2326
|
+
} else {
|
|
2327
|
+
throw $p;
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
var result = tmp$ret$0;
|
|
2332
|
+
var specialFp = this.json_1.configuration_1.allowSpecialFloatingPointValues_1;
|
|
2333
|
+
if (specialFp || isFinite3(result))
|
|
2334
|
+
return result;
|
|
2335
|
+
throwInvalidFloatingPointDecoded(this.lexer_1, result);
|
|
2336
|
+
};
|
|
2337
|
+
protoOf4($).decodeDouble_ur8l0f_k$ = function() {
|
|
2338
|
+
var tmp0 = this.lexer_1;
|
|
2339
|
+
var tmp$ret$0;
|
|
2340
|
+
$l$block: {
|
|
2341
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2342
|
+
try {
|
|
2343
|
+
tmp$ret$0 = toDouble(input);
|
|
2344
|
+
break $l$block;
|
|
2345
|
+
} catch ($p) {
|
|
2346
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2347
|
+
var e = $p;
|
|
2348
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'double' for input '" + input + "'");
|
|
2349
|
+
} else {
|
|
2350
|
+
throw $p;
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
var result = tmp$ret$0;
|
|
2355
|
+
var specialFp = this.json_1.configuration_1.allowSpecialFloatingPointValues_1;
|
|
2356
|
+
if (specialFp || isFinite_03(result))
|
|
2357
|
+
return result;
|
|
2358
|
+
throwInvalidFloatingPointDecoded(this.lexer_1, result);
|
|
2359
|
+
};
|
|
2360
|
+
protoOf4($).decodeChar_dcmcfa_k$ = function() {
|
|
2361
|
+
var string = this.lexer_1.consumeStringLenient_9oypvu_k$();
|
|
2362
|
+
if (!(string.length === 1)) {
|
|
2363
|
+
this.lexer_1.fail$default_ly4hfp_k$("Expected single char, but got '" + string + "'");
|
|
2364
|
+
}
|
|
2365
|
+
return charCodeAt(string, 0);
|
|
2366
|
+
};
|
|
2367
|
+
protoOf4($).decodeString_x3hxsx_k$ = function() {
|
|
2368
|
+
var tmp;
|
|
2369
|
+
if (this.configuration_1.isLenient_1) {
|
|
2370
|
+
tmp = this.lexer_1.consumeStringLenientNotNull_m2rgts_k$();
|
|
2371
|
+
} else {
|
|
2372
|
+
tmp = this.lexer_1.consumeString_j3j2z7_k$();
|
|
2373
|
+
}
|
|
2374
|
+
return tmp;
|
|
2375
|
+
};
|
|
2376
|
+
protoOf4($).decodeInline_ux3vza_k$ = function(descriptor) {
|
|
2377
|
+
return get_isUnsignedNumber(descriptor) ? new (JsonDecoderForUnsignedTypes())(this.lexer_1, this.json_1) : protoOf4(AbstractDecoder()).decodeInline_ux3vza_k$.call(this, descriptor);
|
|
2378
|
+
};
|
|
2379
|
+
protoOf4($).decodeEnum_slg6lu_k$ = function(enumDescriptor) {
|
|
2380
|
+
return getJsonNameIndexOrThrow2(enumDescriptor, this.json_1, this.decodeString_x3hxsx_k$(), " at path " + this.lexer_1.path_1.getPath_18su3p_k$());
|
|
2381
|
+
};
|
|
2382
|
+
StreamingJsonDecoderClass = $;
|
|
2383
|
+
}
|
|
2384
|
+
return StreamingJsonDecoderClass;
|
|
2385
|
+
}
|
|
2386
|
+
var JsonDecoderForUnsignedTypesClass;
|
|
2387
|
+
function JsonDecoderForUnsignedTypes() {
|
|
2388
|
+
if (JsonDecoderForUnsignedTypesClass === VOID4) {
|
|
2389
|
+
let $ = function(lexer, json) {
|
|
2390
|
+
AbstractDecoder().call(this);
|
|
2391
|
+
this.lexer_1 = lexer;
|
|
2392
|
+
this.serializersModule_1 = json.get_serializersModule_piitvg_k$();
|
|
2393
|
+
};
|
|
2394
|
+
initMetadataForClass4($, "JsonDecoderForUnsignedTypes", VOID4, AbstractDecoder());
|
|
2395
|
+
protoOf4($).get_serializersModule_piitvg_k$ = function() {
|
|
2396
|
+
return this.serializersModule_1;
|
|
2397
|
+
};
|
|
2398
|
+
protoOf4($).decodeElementIndex_bstkhp_k$ = function(descriptor) {
|
|
2399
|
+
var message = "unsupported";
|
|
2400
|
+
throw IllegalStateException_init_$Create$(toString3(message));
|
|
2401
|
+
};
|
|
2402
|
+
protoOf4($).decodeInt_8iq8f5_k$ = function() {
|
|
2403
|
+
var tmp0 = this.lexer_1;
|
|
2404
|
+
var tmp$ret$0;
|
|
2405
|
+
$l$block: {
|
|
2406
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2407
|
+
try {
|
|
2408
|
+
var this_0 = toUInt(input);
|
|
2409
|
+
tmp$ret$0 = _UInt___get_data__impl__f0vqqw(this_0);
|
|
2410
|
+
break $l$block;
|
|
2411
|
+
} catch ($p) {
|
|
2412
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2413
|
+
var e = $p;
|
|
2414
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'UInt' for input '" + input + "'");
|
|
2415
|
+
} else {
|
|
2416
|
+
throw $p;
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
return tmp$ret$0;
|
|
2421
|
+
};
|
|
2422
|
+
protoOf4($).decodeLong_jzt186_k$ = function() {
|
|
2423
|
+
var tmp0 = this.lexer_1;
|
|
2424
|
+
var tmp$ret$0;
|
|
2425
|
+
$l$block: {
|
|
2426
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2427
|
+
try {
|
|
2428
|
+
var this_0 = toULong(input);
|
|
2429
|
+
tmp$ret$0 = _ULong___get_data__impl__fggpzb(this_0);
|
|
2430
|
+
break $l$block;
|
|
2431
|
+
} catch ($p) {
|
|
2432
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2433
|
+
var e = $p;
|
|
2434
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'ULong' for input '" + input + "'");
|
|
2435
|
+
} else {
|
|
2436
|
+
throw $p;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
return tmp$ret$0;
|
|
2441
|
+
};
|
|
2442
|
+
protoOf4($).decodeByte_jzz7je_k$ = function() {
|
|
2443
|
+
var tmp0 = this.lexer_1;
|
|
2444
|
+
var tmp$ret$0;
|
|
2445
|
+
$l$block: {
|
|
2446
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2447
|
+
try {
|
|
2448
|
+
var this_0 = toUByte(input);
|
|
2449
|
+
tmp$ret$0 = _UByte___get_data__impl__jof9qr(this_0);
|
|
2450
|
+
break $l$block;
|
|
2451
|
+
} catch ($p) {
|
|
2452
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2453
|
+
var e = $p;
|
|
2454
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'UByte' for input '" + input + "'");
|
|
2455
|
+
} else {
|
|
2456
|
+
throw $p;
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
return tmp$ret$0;
|
|
2461
|
+
};
|
|
2462
|
+
protoOf4($).decodeShort_jjqk32_k$ = function() {
|
|
2463
|
+
var tmp0 = this.lexer_1;
|
|
2464
|
+
var tmp$ret$0;
|
|
2465
|
+
$l$block: {
|
|
2466
|
+
var input = tmp0.consumeStringLenient_9oypvu_k$();
|
|
2467
|
+
try {
|
|
2468
|
+
var this_0 = toUShort(input);
|
|
2469
|
+
tmp$ret$0 = _UShort___get_data__impl__g0245(this_0);
|
|
2470
|
+
break $l$block;
|
|
2471
|
+
} catch ($p) {
|
|
2472
|
+
if ($p instanceof IllegalArgumentException2()) {
|
|
2473
|
+
var e = $p;
|
|
2474
|
+
tmp0.fail$default_ly4hfp_k$("Failed to parse type 'UShort' for input '" + input + "'");
|
|
2475
|
+
} else {
|
|
2476
|
+
throw $p;
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
return tmp$ret$0;
|
|
2481
|
+
};
|
|
2482
|
+
JsonDecoderForUnsignedTypesClass = $;
|
|
2483
|
+
}
|
|
2484
|
+
return JsonDecoderForUnsignedTypesClass;
|
|
2485
|
+
}
|
|
2486
|
+
|
|
2487
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs
|
|
2488
|
+
import {
|
|
2489
|
+
JsonConfiguration2bv2x41u8reet as JsonConfiguration,
|
|
2490
|
+
ClassDiscriminatorMode_POLYMORPHIC_getInstance6cczsnt45hfi as ClassDiscriminatorMode_POLYMORPHIC_getInstance
|
|
2491
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs";
|
|
2492
|
+
import { EmptySerializersModule991ju6pz9b79 as EmptySerializersModule } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleBuilders.mjs";
|
|
2493
|
+
import {
|
|
2494
|
+
protoOf180f3jzyo7rfj as protoOf5,
|
|
2495
|
+
toString1pkumu07cwy4m as toString4,
|
|
2496
|
+
equals2au1ep9vhcato as equals4
|
|
2497
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
2498
|
+
import {
|
|
2499
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
2500
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass5
|
|
2501
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
2502
|
+
import { VOID3gxj6tk5isa35 as VOID5 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
2503
|
+
import { DescriptorSchemaCache22yqwocbp420v as DescriptorSchemaCache } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs";
|
|
2504
|
+
import { JsonToStringWriter25agxcyem0yhk as JsonToStringWriter } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs";
|
|
2505
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance5 } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
2506
|
+
import { StringJsonLexer3eu6xom7mrcfu as StringJsonLexer2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs";
|
|
2507
|
+
import { WriteMode_OBJ_getInstance1vaoooqbofom8 as WriteMode_OBJ_getInstance2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs";
|
|
2508
|
+
import { StringFormat2r2ka8mzcb3mi as StringFormat } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerialFormat.mjs";
|
|
2509
|
+
import { IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$3 } from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
71
2510
|
import {
|
|
72
2511
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
73
|
-
|
|
2512
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet
|
|
74
2513
|
} from "../kotlin-kotlin-stdlib/kotlin/js/charSequenceJs.mjs";
|
|
75
|
-
import {
|
|
2514
|
+
import { _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx3 } from "../kotlin-kotlin-stdlib/kotlin/Char.mjs";
|
|
2515
|
+
import { JsonSerializersModuleValidator1v682i122jgoa as JsonSerializersModuleValidator } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs";
|
|
2516
|
+
var DefaultClass;
|
|
2517
|
+
function Default() {
|
|
2518
|
+
if (DefaultClass === VOID5) {
|
|
2519
|
+
let $ = function() {
|
|
2520
|
+
Default_instance = this;
|
|
2521
|
+
Json().call(this, new (JsonConfiguration())(), EmptySerializersModule());
|
|
2522
|
+
};
|
|
2523
|
+
initMetadataForObject($, "Default", VOID5, Json());
|
|
2524
|
+
DefaultClass = $;
|
|
2525
|
+
}
|
|
2526
|
+
return DefaultClass;
|
|
2527
|
+
}
|
|
2528
|
+
var Default_instance;
|
|
2529
|
+
function Default_getInstance() {
|
|
2530
|
+
if (Default_instance == null)
|
|
2531
|
+
new (Default())();
|
|
2532
|
+
return Default_instance;
|
|
2533
|
+
}
|
|
2534
|
+
var JsonClass;
|
|
2535
|
+
function Json() {
|
|
2536
|
+
if (JsonClass === VOID5) {
|
|
2537
|
+
let $ = function(configuration, serializersModule) {
|
|
2538
|
+
Default_getInstance();
|
|
2539
|
+
this.configuration_1 = configuration;
|
|
2540
|
+
this.serializersModule_1 = serializersModule;
|
|
2541
|
+
this._schemaCache_1 = new (DescriptorSchemaCache())();
|
|
2542
|
+
};
|
|
2543
|
+
initMetadataForClass5($, "Json", VOID5, VOID5, [StringFormat()]);
|
|
2544
|
+
protoOf5($).get_serializersModule_piitvg_k$ = function() {
|
|
2545
|
+
return this.serializersModule_1;
|
|
2546
|
+
};
|
|
2547
|
+
protoOf5($).encodeToString_k0apqx_k$ = function(serializer4, value) {
|
|
2548
|
+
var result = new (JsonToStringWriter())();
|
|
2549
|
+
try {
|
|
2550
|
+
encodeByWriter(this, result, serializer4, value);
|
|
2551
|
+
return result.toString();
|
|
2552
|
+
} finally {
|
|
2553
|
+
result.release_wu5yyf_k$();
|
|
2554
|
+
}
|
|
2555
|
+
};
|
|
2556
|
+
protoOf5($).decodeFromString_jwu9sq_k$ = function(deserializer, string) {
|
|
2557
|
+
var lexer = StringJsonLexer2(this, string);
|
|
2558
|
+
var input = new (StreamingJsonDecoder())(this, WriteMode_OBJ_getInstance2(), lexer, deserializer.get_descriptor_wjt6a0_k$(), null);
|
|
2559
|
+
var result = input.decodeSerializableValue_xpnpad_k$(deserializer);
|
|
2560
|
+
lexer.expectEof_2xwqoj_k$();
|
|
2561
|
+
return result;
|
|
2562
|
+
};
|
|
2563
|
+
protoOf5($).parseToJsonElement_rqvr2k_k$ = function(string) {
|
|
2564
|
+
return this.decodeFromString_jwu9sq_k$(JsonElementSerializer_getInstance(), string);
|
|
2565
|
+
};
|
|
2566
|
+
JsonClass = $;
|
|
2567
|
+
}
|
|
2568
|
+
return JsonClass;
|
|
2569
|
+
}
|
|
2570
|
+
function Json_0(from, builderAction) {
|
|
2571
|
+
from = from === VOID5 ? Default_getInstance() : from;
|
|
2572
|
+
var builder = new (JsonBuilder())(from);
|
|
2573
|
+
builderAction(builder);
|
|
2574
|
+
var conf = builder.build_bkh6qh_k$();
|
|
2575
|
+
return new (JsonImpl())(conf, builder.serializersModule_1);
|
|
2576
|
+
}
|
|
2577
|
+
var JsonBuilderClass;
|
|
2578
|
+
function JsonBuilder() {
|
|
2579
|
+
if (JsonBuilderClass === VOID5) {
|
|
2580
|
+
let $ = function(json) {
|
|
2581
|
+
this.encodeDefaults_1 = json.configuration_1.encodeDefaults_1;
|
|
2582
|
+
this.explicitNulls_1 = json.configuration_1.explicitNulls_1;
|
|
2583
|
+
this.ignoreUnknownKeys_1 = json.configuration_1.ignoreUnknownKeys_1;
|
|
2584
|
+
this.isLenient_1 = json.configuration_1.isLenient_1;
|
|
2585
|
+
this.prettyPrint_1 = json.configuration_1.prettyPrint_1;
|
|
2586
|
+
this.prettyPrintIndent_1 = json.configuration_1.prettyPrintIndent_1;
|
|
2587
|
+
this.coerceInputValues_1 = json.configuration_1.coerceInputValues_1;
|
|
2588
|
+
this.classDiscriminator_1 = json.configuration_1.classDiscriminator_1;
|
|
2589
|
+
this.classDiscriminatorMode_1 = json.configuration_1.classDiscriminatorMode_1;
|
|
2590
|
+
this.useAlternativeNames_1 = json.configuration_1.useAlternativeNames_1;
|
|
2591
|
+
this.namingStrategy_1 = json.configuration_1.namingStrategy_1;
|
|
2592
|
+
this.decodeEnumsCaseInsensitive_1 = json.configuration_1.decodeEnumsCaseInsensitive_1;
|
|
2593
|
+
this.allowTrailingComma_1 = json.configuration_1.allowTrailingComma_1;
|
|
2594
|
+
this.allowComments_1 = json.configuration_1.allowComments_1;
|
|
2595
|
+
this.allowSpecialFloatingPointValues_1 = json.configuration_1.allowSpecialFloatingPointValues_1;
|
|
2596
|
+
this.allowStructuredMapKeys_1 = json.configuration_1.allowStructuredMapKeys_1;
|
|
2597
|
+
this.useArrayPolymorphism_1 = json.configuration_1.useArrayPolymorphism_1;
|
|
2598
|
+
this.serializersModule_1 = json.get_serializersModule_piitvg_k$();
|
|
2599
|
+
this.exceptionsWithDebugInfo_1 = json.configuration_1.exceptionsWithDebugInfo_1;
|
|
2600
|
+
};
|
|
2601
|
+
initMetadataForClass5($, "JsonBuilder");
|
|
2602
|
+
protoOf5($).build_bkh6qh_k$ = function() {
|
|
2603
|
+
if (this.useArrayPolymorphism_1) {
|
|
2604
|
+
if (!(this.classDiscriminator_1 === "type")) {
|
|
2605
|
+
var message = "Class discriminator should not be specified when array polymorphism is specified";
|
|
2606
|
+
throw IllegalArgumentException_init_$Create$3(toString4(message));
|
|
2607
|
+
}
|
|
2608
|
+
if (!this.classDiscriminatorMode_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
|
|
2609
|
+
var message_0 = "useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.";
|
|
2610
|
+
throw IllegalArgumentException_init_$Create$3(toString4(message_0));
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
if (!this.prettyPrint_1) {
|
|
2614
|
+
if (!(this.prettyPrintIndent_1 === " ")) {
|
|
2615
|
+
var message_1 = "Indent should not be specified when default printing mode is used";
|
|
2616
|
+
throw IllegalArgumentException_init_$Create$3(toString4(message_1));
|
|
2617
|
+
}
|
|
2618
|
+
} else if (!(this.prettyPrintIndent_1 === " ")) {
|
|
2619
|
+
var tmp0 = this.prettyPrintIndent_1;
|
|
2620
|
+
var tmp$ret$6;
|
|
2621
|
+
$l$block: {
|
|
2622
|
+
var inductionVariable = 0;
|
|
2623
|
+
while (inductionVariable < charSequenceLength(tmp0)) {
|
|
2624
|
+
var element = charSequenceGet(tmp0, inductionVariable);
|
|
2625
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2626
|
+
if (!(element === _Char___init__impl__6a9atx3(32) || element === _Char___init__impl__6a9atx3(9) || element === _Char___init__impl__6a9atx3(13) || element === _Char___init__impl__6a9atx3(10))) {
|
|
2627
|
+
tmp$ret$6 = false;
|
|
2628
|
+
break $l$block;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
tmp$ret$6 = true;
|
|
2632
|
+
}
|
|
2633
|
+
var allWhitespaces = tmp$ret$6;
|
|
2634
|
+
if (!allWhitespaces) {
|
|
2635
|
+
var message_2 = "Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had " + this.prettyPrintIndent_1;
|
|
2636
|
+
throw IllegalArgumentException_init_$Create$3(toString4(message_2));
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
return new (JsonConfiguration())(this.encodeDefaults_1, this.ignoreUnknownKeys_1, this.isLenient_1, this.allowStructuredMapKeys_1, this.prettyPrint_1, this.explicitNulls_1, this.prettyPrintIndent_1, this.coerceInputValues_1, this.useArrayPolymorphism_1, this.classDiscriminator_1, this.allowSpecialFloatingPointValues_1, this.useAlternativeNames_1, this.namingStrategy_1, this.decodeEnumsCaseInsensitive_1, this.allowTrailingComma_1, this.allowComments_1, this.classDiscriminatorMode_1, this.exceptionsWithDebugInfo_1);
|
|
2640
|
+
};
|
|
2641
|
+
JsonBuilderClass = $;
|
|
2642
|
+
}
|
|
2643
|
+
return JsonBuilderClass;
|
|
2644
|
+
}
|
|
2645
|
+
function validateConfiguration($this) {
|
|
2646
|
+
if (equals4($this.get_serializersModule_piitvg_k$(), EmptySerializersModule()))
|
|
2647
|
+
return Unit_instance5;
|
|
2648
|
+
var collector = new (JsonSerializersModuleValidator())($this.configuration_1);
|
|
2649
|
+
$this.get_serializersModule_piitvg_k$().dumpTo_vt5sm4_k$(collector);
|
|
2650
|
+
}
|
|
2651
|
+
var JsonImplClass;
|
|
2652
|
+
function JsonImpl() {
|
|
2653
|
+
if (JsonImplClass === VOID5) {
|
|
2654
|
+
let $ = function(configuration, module_0) {
|
|
2655
|
+
Json().call(this, configuration, module_0);
|
|
2656
|
+
validateConfiguration(this);
|
|
2657
|
+
};
|
|
2658
|
+
initMetadataForClass5($, "JsonImpl", VOID5, Json());
|
|
2659
|
+
JsonImplClass = $;
|
|
2660
|
+
}
|
|
2661
|
+
return JsonImplClass;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs
|
|
2665
|
+
import {
|
|
2666
|
+
protoOf180f3jzyo7rfj as protoOf6,
|
|
2667
|
+
equals2au1ep9vhcato as equals5,
|
|
2668
|
+
hashCodeq5arwsb9dgti as hashCode,
|
|
2669
|
+
toString1pkumu07cwy4m as toString5,
|
|
2670
|
+
getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
|
|
2671
|
+
getStringHashCode26igk1bx568vk as getStringHashCode
|
|
2672
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
76
2673
|
import {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
2674
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
2675
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass6,
|
|
2676
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject2
|
|
2677
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
2678
|
+
import { VOID3gxj6tk5isa35 as VOID6 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
80
2679
|
import { StringBuilder_init_$Create$b2348mky3co as StringBuilder_init_$Create$ } from "../kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs";
|
|
81
|
-
import {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
|
|
2680
|
+
import {
|
|
2681
|
+
printQuotedmgc3s3pgfors as printQuoted,
|
|
2682
|
+
toBooleanStrictOrNull2hf9surgqf5vr as toBooleanStrictOrNull
|
|
2683
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs";
|
|
2684
|
+
import { _Char___init__impl__6a9atxrzocepzq3zgi as _Char___init__impl__6a9atx4 } from "../kotlin-kotlin-stdlib/kotlin/Char.mjs";
|
|
2685
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance6 } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
2686
|
+
import { joinToString1cxrrlmo0chqs as joinToString } from "../kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs";
|
|
2687
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE5 } from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
2688
|
+
import {
|
|
2689
|
+
KtMap140uvy3s5zad8 as KtMap2,
|
|
2690
|
+
KtList3hktaavzmj137 as KtList
|
|
2691
|
+
} from "../kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs";
|
|
2692
|
+
import { SerializerFactory1qv9hivitncuv as SerializerFactory } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginHelperInterfaces.mjs";
|
|
2693
|
+
import { getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression3 } from "../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs";
|
|
2694
|
+
import { IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$4 } from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
2695
|
+
import { StringJsonLexer3eu6xom7mrcfu as StringJsonLexer3 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs";
|
|
2696
|
+
import { toDouble1kn912gjoizjp as toDouble2 } from "../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs";
|
|
2697
|
+
import { StringCompanionObject_instance2dx16b5pp3v3z as StringCompanionObject_instance } from "../kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs";
|
|
2698
|
+
import { serializer1x79l67jvwntn as serializer2 } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs";
|
|
2699
|
+
import { InlinePrimitiveDescriptor3i6ccn1a4fw94 as InlinePrimitiveDescriptor } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs";
|
|
2700
|
+
import { SerializableWithd2dap36updxd as SerializableWith } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs";
|
|
2701
|
+
var imul2 = Math.imul;
|
|
2702
|
+
function get_jsonUnquotedLiteralDescriptor() {
|
|
2703
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
2704
|
+
return jsonUnquotedLiteralDescriptor;
|
|
2705
|
+
}
|
|
2706
|
+
var jsonUnquotedLiteralDescriptor;
|
|
2707
|
+
var CompanionClass;
|
|
2708
|
+
function Companion() {
|
|
2709
|
+
if (CompanionClass === VOID6) {
|
|
2710
|
+
let $ = function() {
|
|
2711
|
+
};
|
|
2712
|
+
initMetadataForCompanion($);
|
|
2713
|
+
CompanionClass = $;
|
|
112
2714
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
2715
|
+
return CompanionClass;
|
|
2716
|
+
}
|
|
2717
|
+
var Companion_instance;
|
|
2718
|
+
function Companion_getInstance2() {
|
|
2719
|
+
return Companion_instance;
|
|
2720
|
+
}
|
|
2721
|
+
var JsonElementClass;
|
|
2722
|
+
function JsonElement() {
|
|
2723
|
+
if (JsonElementClass === VOID6) {
|
|
2724
|
+
let $ = function() {
|
|
2725
|
+
};
|
|
2726
|
+
initMetadataForClass6($, "JsonElement", VOID6, VOID6, VOID6, VOID6, VOID6, { 0: JsonElementSerializer_getInstance });
|
|
2727
|
+
JsonElementClass = $;
|
|
117
2728
|
}
|
|
118
|
-
|
|
119
|
-
|
|
2729
|
+
return JsonElementClass;
|
|
2730
|
+
}
|
|
2731
|
+
var CompanionClass_0;
|
|
2732
|
+
function Companion_0() {
|
|
2733
|
+
if (CompanionClass_0 === VOID6) {
|
|
2734
|
+
let $ = function() {
|
|
2735
|
+
};
|
|
2736
|
+
initMetadataForCompanion($);
|
|
2737
|
+
CompanionClass_0 = $;
|
|
120
2738
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
2739
|
+
return CompanionClass_0;
|
|
2740
|
+
}
|
|
2741
|
+
var Companion_instance_0;
|
|
2742
|
+
function Companion_getInstance_02() {
|
|
2743
|
+
return Companion_instance_0;
|
|
2744
|
+
}
|
|
2745
|
+
var JsonPrimitiveClass;
|
|
2746
|
+
function JsonPrimitive() {
|
|
2747
|
+
if (JsonPrimitiveClass === VOID6) {
|
|
2748
|
+
let $ = function() {
|
|
2749
|
+
JsonElement().call(this);
|
|
2750
|
+
};
|
|
2751
|
+
initMetadataForClass6($, "JsonPrimitive", VOID6, JsonElement(), VOID6, VOID6, VOID6, { 0: JsonPrimitiveSerializer_getInstance });
|
|
2752
|
+
protoOf6($).toString = function() {
|
|
2753
|
+
return this.get_content_h02jrk_k$();
|
|
2754
|
+
};
|
|
2755
|
+
JsonPrimitiveClass = $;
|
|
124
2756
|
}
|
|
125
|
-
return
|
|
2757
|
+
return JsonPrimitiveClass;
|
|
126
2758
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
2759
|
+
var CompanionClass_1;
|
|
2760
|
+
function Companion_1() {
|
|
2761
|
+
if (CompanionClass_1 === VOID6) {
|
|
2762
|
+
let $ = function() {
|
|
2763
|
+
};
|
|
2764
|
+
initMetadataForCompanion($);
|
|
2765
|
+
CompanionClass_1 = $;
|
|
2766
|
+
}
|
|
2767
|
+
return CompanionClass_1;
|
|
130
2768
|
}
|
|
131
|
-
|
|
132
|
-
|
|
2769
|
+
var Companion_instance_1;
|
|
2770
|
+
function Companion_getInstance_12() {
|
|
2771
|
+
return Companion_instance_1;
|
|
133
2772
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
136
|
-
|
|
2773
|
+
function JsonObject$toString$lambda(_destruct__k2r9zo) {
|
|
2774
|
+
var k = _destruct__k2r9zo.get_key_18j28a_k$();
|
|
2775
|
+
var v = _destruct__k2r9zo.get_value_j01efc_k$();
|
|
2776
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
2777
|
+
printQuoted(this_0, k);
|
|
2778
|
+
this_0.append_58al37_k$(_Char___init__impl__6a9atx4(58));
|
|
2779
|
+
this_0.append_t8pm91_k$(v);
|
|
2780
|
+
return this_0.toString();
|
|
137
2781
|
}
|
|
138
|
-
|
|
139
|
-
|
|
2782
|
+
var JsonObjectClass;
|
|
2783
|
+
function JsonObject() {
|
|
2784
|
+
if (JsonObjectClass === VOID6) {
|
|
2785
|
+
let $ = function(content) {
|
|
2786
|
+
JsonElement().call(this);
|
|
2787
|
+
this.content_1 = content;
|
|
2788
|
+
};
|
|
2789
|
+
initMetadataForClass6($, "JsonObject", VOID6, JsonElement(), [KtMap2()], VOID6, VOID6, { 0: JsonObjectSerializer_getInstance });
|
|
2790
|
+
protoOf6($).equals = function(other) {
|
|
2791
|
+
return equals5(this.content_1, other);
|
|
2792
|
+
};
|
|
2793
|
+
protoOf6($).hashCode = function() {
|
|
2794
|
+
return hashCode(this.content_1);
|
|
2795
|
+
};
|
|
2796
|
+
protoOf6($).toString = function() {
|
|
2797
|
+
var tmp = this.content_1.get_entries_p20ztl_k$();
|
|
2798
|
+
return joinToString(tmp, ",", "{", "}", VOID6, VOID6, JsonObject$toString$lambda);
|
|
2799
|
+
};
|
|
2800
|
+
protoOf6($).isEmpty_y1axqb_k$ = function() {
|
|
2801
|
+
return this.content_1.isEmpty_y1axqb_k$();
|
|
2802
|
+
};
|
|
2803
|
+
protoOf6($).containsKey_w445h6_k$ = function(key) {
|
|
2804
|
+
return this.content_1.containsKey_aw81wo_k$(key);
|
|
2805
|
+
};
|
|
2806
|
+
protoOf6($).containsKey_aw81wo_k$ = function(key) {
|
|
2807
|
+
if (!(!(key == null) ? typeof key === "string" : false))
|
|
2808
|
+
return false;
|
|
2809
|
+
return this.containsKey_w445h6_k$((!(key == null) ? typeof key === "string" : false) ? key : THROW_CCE5());
|
|
2810
|
+
};
|
|
2811
|
+
protoOf6($).containsValue_2jzc8i_k$ = function(value) {
|
|
2812
|
+
return this.content_1.containsValue_yf2ykl_k$(value);
|
|
2813
|
+
};
|
|
2814
|
+
protoOf6($).containsValue_yf2ykl_k$ = function(value) {
|
|
2815
|
+
if (!(value instanceof JsonElement()))
|
|
2816
|
+
return false;
|
|
2817
|
+
return this.containsValue_2jzc8i_k$(value instanceof JsonElement() ? value : THROW_CCE5());
|
|
2818
|
+
};
|
|
2819
|
+
protoOf6($).get_6bo4tg_k$ = function(key) {
|
|
2820
|
+
return this.content_1.get_wei43m_k$(key);
|
|
2821
|
+
};
|
|
2822
|
+
protoOf6($).get_wei43m_k$ = function(key) {
|
|
2823
|
+
if (!(!(key == null) ? typeof key === "string" : false))
|
|
2824
|
+
return null;
|
|
2825
|
+
return this.get_6bo4tg_k$((!(key == null) ? typeof key === "string" : false) ? key : THROW_CCE5());
|
|
2826
|
+
};
|
|
2827
|
+
protoOf6($).asJsReadonlyMapView = function() {
|
|
2828
|
+
return this.content_1.asJsReadonlyMapView();
|
|
2829
|
+
};
|
|
2830
|
+
protoOf6($).get_size_woubt6_k$ = function() {
|
|
2831
|
+
return this.content_1.get_size_woubt6_k$();
|
|
2832
|
+
};
|
|
2833
|
+
protoOf6($).get_keys_wop4xp_k$ = function() {
|
|
2834
|
+
return this.content_1.get_keys_wop4xp_k$();
|
|
2835
|
+
};
|
|
2836
|
+
protoOf6($).get_values_ksazhn_k$ = function() {
|
|
2837
|
+
return this.content_1.get_values_ksazhn_k$();
|
|
2838
|
+
};
|
|
2839
|
+
protoOf6($).get_entries_p20ztl_k$ = function() {
|
|
2840
|
+
return this.content_1.get_entries_p20ztl_k$();
|
|
2841
|
+
};
|
|
2842
|
+
JsonObjectClass = $;
|
|
2843
|
+
}
|
|
2844
|
+
return JsonObjectClass;
|
|
140
2845
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
2846
|
+
function get_jsonObject(_this__u8e3s4) {
|
|
2847
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
2848
|
+
var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonObject() ? _this__u8e3s4 : null;
|
|
2849
|
+
var tmp;
|
|
2850
|
+
if (tmp0_elvis_lhs == null) {
|
|
2851
|
+
error(_this__u8e3s4, "JsonObject");
|
|
2852
|
+
} else {
|
|
2853
|
+
tmp = tmp0_elvis_lhs;
|
|
2854
|
+
}
|
|
2855
|
+
return tmp;
|
|
143
2856
|
}
|
|
144
|
-
function
|
|
2857
|
+
function get_jsonPrimitive(_this__u8e3s4) {
|
|
2858
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
2859
|
+
var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive() ? _this__u8e3s4 : null;
|
|
145
2860
|
var tmp;
|
|
146
|
-
if (
|
|
147
|
-
|
|
2861
|
+
if (tmp0_elvis_lhs == null) {
|
|
2862
|
+
error(_this__u8e3s4, "JsonPrimitive");
|
|
148
2863
|
} else {
|
|
2864
|
+
tmp = tmp0_elvis_lhs;
|
|
2865
|
+
}
|
|
2866
|
+
return tmp;
|
|
2867
|
+
}
|
|
2868
|
+
function JsonPrimitive_0(value) {
|
|
2869
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
2870
|
+
if (value == null)
|
|
2871
|
+
return JsonNull_getInstance();
|
|
2872
|
+
return new (JsonLiteral())(value, true);
|
|
2873
|
+
}
|
|
2874
|
+
var CompanionClass_2;
|
|
2875
|
+
function Companion_2() {
|
|
2876
|
+
if (CompanionClass_2 === VOID6) {
|
|
2877
|
+
let $ = function() {
|
|
2878
|
+
};
|
|
2879
|
+
initMetadataForCompanion($);
|
|
2880
|
+
CompanionClass_2 = $;
|
|
2881
|
+
}
|
|
2882
|
+
return CompanionClass_2;
|
|
2883
|
+
}
|
|
2884
|
+
var Companion_instance_2;
|
|
2885
|
+
function Companion_getInstance_22() {
|
|
2886
|
+
return Companion_instance_2;
|
|
2887
|
+
}
|
|
2888
|
+
var JsonArrayClass;
|
|
2889
|
+
function JsonArray() {
|
|
2890
|
+
if (JsonArrayClass === VOID6) {
|
|
2891
|
+
let $ = function(content) {
|
|
2892
|
+
JsonElement().call(this);
|
|
2893
|
+
this.content_1 = content;
|
|
2894
|
+
};
|
|
2895
|
+
initMetadataForClass6($, "JsonArray", VOID6, JsonElement(), [KtList()], VOID6, VOID6, { 0: JsonArraySerializer_getInstance });
|
|
2896
|
+
protoOf6($).equals = function(other) {
|
|
2897
|
+
return equals5(this.content_1, other);
|
|
2898
|
+
};
|
|
2899
|
+
protoOf6($).hashCode = function() {
|
|
2900
|
+
return hashCode(this.content_1);
|
|
2901
|
+
};
|
|
2902
|
+
protoOf6($).toString = function() {
|
|
2903
|
+
return joinToString(this.content_1, ",", "[", "]");
|
|
2904
|
+
};
|
|
2905
|
+
protoOf6($).isEmpty_y1axqb_k$ = function() {
|
|
2906
|
+
return this.content_1.isEmpty_y1axqb_k$();
|
|
2907
|
+
};
|
|
2908
|
+
protoOf6($).contains_ba8w01_k$ = function(element) {
|
|
2909
|
+
return this.content_1.contains_aljjnj_k$(element);
|
|
2910
|
+
};
|
|
2911
|
+
protoOf6($).contains_aljjnj_k$ = function(element) {
|
|
2912
|
+
if (!(element instanceof JsonElement()))
|
|
2913
|
+
return false;
|
|
2914
|
+
return this.contains_ba8w01_k$(element instanceof JsonElement() ? element : THROW_CCE5());
|
|
2915
|
+
};
|
|
2916
|
+
protoOf6($).iterator_jk1svi_k$ = function() {
|
|
2917
|
+
return this.content_1.iterator_jk1svi_k$();
|
|
2918
|
+
};
|
|
2919
|
+
protoOf6($).containsAll_f3qvbt_k$ = function(elements) {
|
|
2920
|
+
return this.content_1.containsAll_bwkf3g_k$(elements);
|
|
2921
|
+
};
|
|
2922
|
+
protoOf6($).containsAll_bwkf3g_k$ = function(elements) {
|
|
2923
|
+
return this.containsAll_f3qvbt_k$(elements);
|
|
2924
|
+
};
|
|
2925
|
+
protoOf6($).get_c1px32_k$ = function(index) {
|
|
2926
|
+
return this.content_1.get_c1px32_k$(index);
|
|
2927
|
+
};
|
|
2928
|
+
protoOf6($).indexOf_tu0qjb_k$ = function(element) {
|
|
2929
|
+
return this.content_1.indexOf_si1fv9_k$(element);
|
|
2930
|
+
};
|
|
2931
|
+
protoOf6($).indexOf_si1fv9_k$ = function(element) {
|
|
2932
|
+
if (!(element instanceof JsonElement()))
|
|
2933
|
+
return -1;
|
|
2934
|
+
return this.indexOf_tu0qjb_k$(element instanceof JsonElement() ? element : THROW_CCE5());
|
|
2935
|
+
};
|
|
2936
|
+
protoOf6($).lastIndexOf_dcsgc3_k$ = function(element) {
|
|
2937
|
+
return this.content_1.lastIndexOf_v2p1fv_k$(element);
|
|
2938
|
+
};
|
|
2939
|
+
protoOf6($).lastIndexOf_v2p1fv_k$ = function(element) {
|
|
2940
|
+
if (!(element instanceof JsonElement()))
|
|
2941
|
+
return -1;
|
|
2942
|
+
return this.lastIndexOf_dcsgc3_k$(element instanceof JsonElement() ? element : THROW_CCE5());
|
|
2943
|
+
};
|
|
2944
|
+
protoOf6($).listIterator_xjshxw_k$ = function() {
|
|
2945
|
+
return this.content_1.listIterator_xjshxw_k$();
|
|
2946
|
+
};
|
|
2947
|
+
protoOf6($).listIterator_70e65o_k$ = function(index) {
|
|
2948
|
+
return this.content_1.listIterator_70e65o_k$(index);
|
|
2949
|
+
};
|
|
2950
|
+
protoOf6($).subList_xle3r2_k$ = function(fromIndex, toIndex) {
|
|
2951
|
+
return this.content_1.subList_xle3r2_k$(fromIndex, toIndex);
|
|
2952
|
+
};
|
|
2953
|
+
protoOf6($).asJsReadonlyArrayView = function() {
|
|
2954
|
+
return this.content_1.asJsReadonlyArrayView();
|
|
2955
|
+
};
|
|
2956
|
+
protoOf6($).get_size_woubt6_k$ = function() {
|
|
2957
|
+
return this.content_1.get_size_woubt6_k$();
|
|
2958
|
+
};
|
|
2959
|
+
JsonArrayClass = $;
|
|
2960
|
+
}
|
|
2961
|
+
return JsonArrayClass;
|
|
2962
|
+
}
|
|
2963
|
+
function get_contentOrNull(_this__u8e3s4) {
|
|
2964
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
2965
|
+
var tmp;
|
|
2966
|
+
if (_this__u8e3s4 instanceof JsonNull()) {
|
|
149
2967
|
tmp = null;
|
|
2968
|
+
} else {
|
|
2969
|
+
tmp = _this__u8e3s4.get_content_h02jrk_k$();
|
|
150
2970
|
}
|
|
151
|
-
|
|
152
|
-
|
|
2971
|
+
return tmp;
|
|
2972
|
+
}
|
|
2973
|
+
var JsonNullClass;
|
|
2974
|
+
function JsonNull() {
|
|
2975
|
+
if (JsonNullClass === VOID6) {
|
|
2976
|
+
let $ = function() {
|
|
2977
|
+
JsonNull_instance = this;
|
|
2978
|
+
JsonPrimitive().call(this);
|
|
2979
|
+
this.content_1 = "null";
|
|
2980
|
+
};
|
|
2981
|
+
initMetadataForObject2($, "JsonNull", VOID6, JsonPrimitive(), [SerializerFactory()], VOID6, VOID6, { 0: JsonNullSerializer_getInstance });
|
|
2982
|
+
protoOf6($).get_isString_zep7bw_k$ = function() {
|
|
2983
|
+
return false;
|
|
2984
|
+
};
|
|
2985
|
+
protoOf6($).get_content_h02jrk_k$ = function() {
|
|
2986
|
+
return this.content_1;
|
|
2987
|
+
};
|
|
2988
|
+
protoOf6($).serializer_9w0wvi_k$ = function() {
|
|
2989
|
+
return JsonNullSerializer_getInstance();
|
|
2990
|
+
};
|
|
2991
|
+
protoOf6($).serializer_nv39qc_k$ = function(typeParamsSerializers) {
|
|
2992
|
+
return this.serializer_9w0wvi_k$();
|
|
2993
|
+
};
|
|
2994
|
+
JsonNullClass = $;
|
|
2995
|
+
}
|
|
2996
|
+
return JsonNullClass;
|
|
2997
|
+
}
|
|
2998
|
+
var JsonNull_instance;
|
|
2999
|
+
function JsonNull_getInstance() {
|
|
3000
|
+
if (JsonNull_instance == null)
|
|
3001
|
+
new (JsonNull())();
|
|
3002
|
+
return JsonNull_instance;
|
|
3003
|
+
}
|
|
3004
|
+
function error(_this__u8e3s4, element) {
|
|
3005
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
3006
|
+
throw IllegalArgumentException_init_$Create$4("Element " + toString5(getKClassFromExpression3(_this__u8e3s4)) + " is not a " + element);
|
|
3007
|
+
}
|
|
3008
|
+
var JsonLiteralClass;
|
|
3009
|
+
function JsonLiteral() {
|
|
3010
|
+
if (JsonLiteralClass === VOID6) {
|
|
3011
|
+
let $ = function(body, isString, coerceToInlineType) {
|
|
3012
|
+
coerceToInlineType = coerceToInlineType === VOID6 ? null : coerceToInlineType;
|
|
3013
|
+
JsonPrimitive().call(this);
|
|
3014
|
+
this.isString_1 = isString;
|
|
3015
|
+
this.coerceToInlineType_1 = coerceToInlineType;
|
|
3016
|
+
this.content_1 = toString5(body);
|
|
3017
|
+
if (!(this.coerceToInlineType_1 == null)) {
|
|
3018
|
+
if (!this.coerceToInlineType_1.get_isInline_usk17w_k$()) {
|
|
3019
|
+
var message = "Failed requirement.";
|
|
3020
|
+
throw IllegalArgumentException_init_$Create$4(toString5(message));
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
};
|
|
3024
|
+
initMetadataForClass6($, "JsonLiteral", VOID6, JsonPrimitive());
|
|
3025
|
+
protoOf6($).get_isString_zep7bw_k$ = function() {
|
|
3026
|
+
return this.isString_1;
|
|
3027
|
+
};
|
|
3028
|
+
protoOf6($).get_content_h02jrk_k$ = function() {
|
|
3029
|
+
return this.content_1;
|
|
3030
|
+
};
|
|
3031
|
+
protoOf6($).toString = function() {
|
|
3032
|
+
var tmp;
|
|
3033
|
+
if (this.isString_1) {
|
|
3034
|
+
var this_0 = StringBuilder_init_$Create$();
|
|
3035
|
+
printQuoted(this_0, this.content_1);
|
|
3036
|
+
tmp = this_0.toString();
|
|
3037
|
+
} else {
|
|
3038
|
+
tmp = this.content_1;
|
|
3039
|
+
}
|
|
3040
|
+
return tmp;
|
|
3041
|
+
};
|
|
3042
|
+
protoOf6($).equals = function(other) {
|
|
3043
|
+
if (this === other)
|
|
3044
|
+
return true;
|
|
3045
|
+
if (other == null || !getKClassFromExpression3(this).equals(getKClassFromExpression3(other)))
|
|
3046
|
+
return false;
|
|
3047
|
+
if (!(other instanceof JsonLiteral()))
|
|
3048
|
+
THROW_CCE5();
|
|
3049
|
+
if (!(this.isString_1 === other.isString_1))
|
|
3050
|
+
return false;
|
|
3051
|
+
if (!(this.content_1 === other.content_1))
|
|
3052
|
+
return false;
|
|
3053
|
+
return true;
|
|
3054
|
+
};
|
|
3055
|
+
protoOf6($).hashCode = function() {
|
|
3056
|
+
var result = getBooleanHashCode(this.isString_1);
|
|
3057
|
+
result = imul2(31, result) + getStringHashCode(this.content_1) | 0;
|
|
3058
|
+
return result;
|
|
3059
|
+
};
|
|
3060
|
+
JsonLiteralClass = $;
|
|
3061
|
+
}
|
|
3062
|
+
return JsonLiteralClass;
|
|
3063
|
+
}
|
|
3064
|
+
function get_booleanOrNull(_this__u8e3s4) {
|
|
3065
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
3066
|
+
return toBooleanStrictOrNull(_this__u8e3s4.get_content_h02jrk_k$());
|
|
153
3067
|
}
|
|
154
|
-
function
|
|
3068
|
+
function parseLongImpl(_this__u8e3s4) {
|
|
3069
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
3070
|
+
return StringJsonLexer3(Default_getInstance(), _this__u8e3s4.get_content_h02jrk_k$()).consumeNumericLiteralFully_dgqq24_k$();
|
|
3071
|
+
}
|
|
3072
|
+
function get_float(_this__u8e3s4) {
|
|
3073
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
3074
|
+
var this_0 = _this__u8e3s4.get_content_h02jrk_k$();
|
|
3075
|
+
return toDouble2(this_0);
|
|
3076
|
+
}
|
|
3077
|
+
function get_double(_this__u8e3s4) {
|
|
3078
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
3079
|
+
return toDouble2(_this__u8e3s4.get_content_h02jrk_k$());
|
|
3080
|
+
}
|
|
3081
|
+
var properties_initialized_JsonElement_kt_abxy8s;
|
|
3082
|
+
function _init_properties_JsonElement_kt__7cbdc2() {
|
|
3083
|
+
if (!properties_initialized_JsonElement_kt_abxy8s) {
|
|
3084
|
+
properties_initialized_JsonElement_kt_abxy8s = true;
|
|
3085
|
+
jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor("kotlinx.serialization.json.JsonUnquotedLiteral", serializer2(StringCompanionObject_instance));
|
|
3086
|
+
}
|
|
3087
|
+
}
|
|
3088
|
+
Companion_instance = new (Companion())();
|
|
3089
|
+
Companion_instance_0 = new (Companion_0())();
|
|
3090
|
+
Companion_instance_1 = new (Companion_1())();
|
|
3091
|
+
Companion_instance_2 = new (Companion_2())();
|
|
3092
|
+
|
|
3093
|
+
// build/packages/js/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs
|
|
3094
|
+
import { Unit_instance3kz1zqli6gr1r as Unit_instance7 } from "../kotlin-kotlin-stdlib/kotlin/Unit.mjs";
|
|
3095
|
+
import {
|
|
3096
|
+
SEALED_getInstance19i1cdv1u9v1e as SEALED_getInstance,
|
|
3097
|
+
STRING_getInstance7xungxdjbzv as STRING_getInstance,
|
|
3098
|
+
ENUM_getInstance25239ht7oag6o as ENUM_getInstance3
|
|
3099
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialKinds.mjs";
|
|
3100
|
+
import {
|
|
3101
|
+
buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
|
|
3102
|
+
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor
|
|
3103
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs";
|
|
3104
|
+
import {
|
|
3105
|
+
protoOf180f3jzyo7rfj as protoOf7,
|
|
3106
|
+
toString1pkumu07cwy4m as toString6
|
|
3107
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs";
|
|
3108
|
+
import {
|
|
3109
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException2,
|
|
3110
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE6
|
|
3111
|
+
} from "../kotlin-kotlin-stdlib/kotlin/hacks.mjs";
|
|
3112
|
+
import { KSerializerzf77vz1967fq as KSerializer } from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/KSerializer.mjs";
|
|
3113
|
+
import {
|
|
3114
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject3,
|
|
3115
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass7
|
|
3116
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs";
|
|
3117
|
+
import { VOID3gxj6tk5isa35 as VOID7 } from "../kotlin-kotlin-stdlib/kotlin/js/void.mjs";
|
|
3118
|
+
import { getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression4 } from "../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs";
|
|
3119
|
+
import {
|
|
3120
|
+
minify1kh64osmcox7j as minify3,
|
|
3121
|
+
access$formatDecodingException$tJsonExceptionsKt2yfifxvnjk03f as access$formatDecodingException$tJsonExceptionsKt3,
|
|
3122
|
+
decodingExceptionOf183k4uqzusb49 as decodingExceptionOf
|
|
3123
|
+
} from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs";
|
|
3124
|
+
import { JsonDecodingExceptionoyag1psadwuw as JsonDecodingException3 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonExceptions.mjs";
|
|
3125
|
+
import { StringCompanionObject_instance2dx16b5pp3v3z as StringCompanionObject_instance2 } from "../kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs";
|
|
3126
|
+
import {
|
|
3127
|
+
serializer1x79l67jvwntn as serializer3,
|
|
3128
|
+
MapSerializer11kmegt3g5c1g as MapSerializer,
|
|
3129
|
+
ListSerializer1hxuk9dx5n9du as ListSerializer,
|
|
3130
|
+
serializer2lw83vwvpnyms as serializer_02
|
|
3131
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs";
|
|
3132
|
+
import {
|
|
3133
|
+
SerialDescriptor2pelqekb5ic3a as SerialDescriptor,
|
|
3134
|
+
get_isNullable36pbikm8xb7bz as get_isNullable,
|
|
3135
|
+
get_isInline5x26qrhi9qs6 as get_isInline,
|
|
3136
|
+
get_annotationshjxdbdcl8kmv as get_annotations
|
|
3137
|
+
} from "../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs";
|
|
3138
|
+
import { toLongOrNullutqivezb0wx1 as toLongOrNull } from "../kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs";
|
|
3139
|
+
import { toULongOrNullojoyxi0i9tgj as toULongOrNull } from "../kotlin-kotlin-stdlib/kotlin/text/UStrings.mjs";
|
|
3140
|
+
import {
|
|
3141
|
+
ULong3f9k7s38t3rfp as ULong,
|
|
3142
|
+
Companion_getInstance11ies3wlxhmd7 as Companion_getInstance3,
|
|
3143
|
+
_ULong___get_data__impl__fggpzbbo8lz7f8fnfy as _ULong___get_data__impl__fggpzb2
|
|
3144
|
+
} from "../kotlin-kotlin-stdlib/kotlin/ULong.mjs";
|
|
3145
|
+
import { toDoubleOrNullkxwozihadygj as toDoubleOrNull } from "../kotlin-kotlin-stdlib/kotlin/text/numberConversions.mjs";
|
|
3146
|
+
import { toBooleanStrictOrNull2j0md398tkvbj as toBooleanStrictOrNull2 } from "../kotlin-kotlin-stdlib/kotlin/text/Strings.mjs";
|
|
3147
|
+
import { JsonDecoder1rijst5ne6qla as JsonDecoder3 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonDecoder.mjs";
|
|
3148
|
+
import { isInterface3d6p8outrmvmk as isInterface4 } from "../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs";
|
|
3149
|
+
import { IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$2 } from "../kotlin-kotlin-stdlib/kotlin/exceptions.mjs";
|
|
3150
|
+
import { JsonEncoder1qlse6simkfi1 as JsonEncoder2 } from "../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonEncoder.mjs";
|
|
3151
|
+
import { KProperty1ca4yb4wlo496 as KProperty1 } from "../kotlin-kotlin-stdlib/kotlin/reflect/KPropertyJs.mjs";
|
|
3152
|
+
import {
|
|
3153
|
+
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
3154
|
+
constructCallableReference23y65rf941mch as constructCallableReference2
|
|
3155
|
+
} from "../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs";
|
|
3156
|
+
import { lazy2hsh8ze7j6ikd as lazy } from "../kotlin-kotlin-stdlib/kotlin/kotlin.mjs";
|
|
3157
|
+
function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
3158
|
+
$this$buildSerialDescriptor.element$default_ey7ac9_k$("JsonPrimitive", defer(JsonElementSerializer$descriptor$lambda$lambda));
|
|
3159
|
+
$this$buildSerialDescriptor.element$default_ey7ac9_k$("JsonNull", defer(JsonElementSerializer$descriptor$lambda$lambda_0));
|
|
3160
|
+
$this$buildSerialDescriptor.element$default_ey7ac9_k$("JsonLiteral", defer(JsonElementSerializer$descriptor$lambda$lambda_1));
|
|
3161
|
+
$this$buildSerialDescriptor.element$default_ey7ac9_k$("JsonObject", defer(JsonElementSerializer$descriptor$lambda$lambda_2));
|
|
3162
|
+
$this$buildSerialDescriptor.element$default_ey7ac9_k$("JsonArray", defer(JsonElementSerializer$descriptor$lambda$lambda_3));
|
|
3163
|
+
return Unit_instance7;
|
|
3164
|
+
}
|
|
3165
|
+
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
3166
|
+
return JsonPrimitiveSerializer_getInstance().descriptor_1;
|
|
3167
|
+
}
|
|
3168
|
+
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
3169
|
+
return JsonNullSerializer_getInstance().descriptor_1;
|
|
3170
|
+
}
|
|
3171
|
+
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
3172
|
+
return JsonLiteralSerializer_getInstance().descriptor_1;
|
|
3173
|
+
}
|
|
3174
|
+
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
3175
|
+
return JsonObjectSerializer_getInstance().descriptor_1;
|
|
3176
|
+
}
|
|
3177
|
+
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
3178
|
+
return JsonArraySerializer_getInstance().descriptor_1;
|
|
3179
|
+
}
|
|
3180
|
+
var JsonElementSerializerClass;
|
|
3181
|
+
function JsonElementSerializer() {
|
|
3182
|
+
if (JsonElementSerializerClass === VOID7) {
|
|
3183
|
+
let $ = function() {
|
|
3184
|
+
JsonElementSerializer_instance = this;
|
|
3185
|
+
var tmp = this;
|
|
3186
|
+
var tmp_0 = SEALED_getInstance();
|
|
3187
|
+
tmp.descriptor_1 = buildSerialDescriptor("kotlinx.serialization.json.JsonElement", tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
3188
|
+
};
|
|
3189
|
+
initMetadataForObject3($, "JsonElementSerializer", VOID7, VOID7, [KSerializer()]);
|
|
3190
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3191
|
+
return this.descriptor_1;
|
|
3192
|
+
};
|
|
3193
|
+
protoOf7($).serialize_pk22vx_k$ = function(encoder, value) {
|
|
3194
|
+
verify(encoder);
|
|
3195
|
+
if (value instanceof JsonPrimitive()) {
|
|
3196
|
+
encoder.encodeSerializableValue_3uuzip_k$(JsonPrimitiveSerializer_getInstance(), value);
|
|
3197
|
+
} else {
|
|
3198
|
+
if (value instanceof JsonObject()) {
|
|
3199
|
+
encoder.encodeSerializableValue_3uuzip_k$(JsonObjectSerializer_getInstance(), value);
|
|
3200
|
+
} else {
|
|
3201
|
+
if (value instanceof JsonArray()) {
|
|
3202
|
+
encoder.encodeSerializableValue_3uuzip_k$(JsonArraySerializer_getInstance(), value);
|
|
3203
|
+
} else {
|
|
3204
|
+
noWhenBranchMatchedException2();
|
|
3205
|
+
}
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
};
|
|
3209
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3210
|
+
return this.serialize_pk22vx_k$(encoder, value instanceof JsonElement() ? value : THROW_CCE6());
|
|
3211
|
+
};
|
|
3212
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3213
|
+
var input = asJsonDecoder(decoder);
|
|
3214
|
+
return input.decodeJsonElement_6lz9ye_k$();
|
|
3215
|
+
};
|
|
3216
|
+
JsonElementSerializerClass = $;
|
|
3217
|
+
}
|
|
3218
|
+
return JsonElementSerializerClass;
|
|
3219
|
+
}
|
|
3220
|
+
var JsonElementSerializer_instance;
|
|
3221
|
+
function JsonElementSerializer_getInstance() {
|
|
3222
|
+
if (JsonElementSerializer_instance == null)
|
|
3223
|
+
new (JsonElementSerializer())();
|
|
3224
|
+
return JsonElementSerializer_instance;
|
|
3225
|
+
}
|
|
3226
|
+
var JsonPrimitiveSerializerClass;
|
|
3227
|
+
function JsonPrimitiveSerializer() {
|
|
3228
|
+
if (JsonPrimitiveSerializerClass === VOID7) {
|
|
3229
|
+
let $ = function() {
|
|
3230
|
+
JsonPrimitiveSerializer_instance = this;
|
|
3231
|
+
this.descriptor_1 = buildSerialDescriptor("kotlinx.serialization.json.JsonPrimitive", STRING_getInstance(), []);
|
|
3232
|
+
};
|
|
3233
|
+
initMetadataForObject3($, "JsonPrimitiveSerializer", VOID7, VOID7, [KSerializer()]);
|
|
3234
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3235
|
+
return this.descriptor_1;
|
|
3236
|
+
};
|
|
3237
|
+
protoOf7($).serialize_p6n2zb_k$ = function(encoder, value) {
|
|
3238
|
+
verify(encoder);
|
|
3239
|
+
var tmp;
|
|
3240
|
+
if (value instanceof JsonNull()) {
|
|
3241
|
+
encoder.encodeSerializableValue_3uuzip_k$(JsonNullSerializer_getInstance(), JsonNull_getInstance());
|
|
3242
|
+
tmp = Unit_instance7;
|
|
3243
|
+
} else {
|
|
3244
|
+
var tmp_0 = JsonLiteralSerializer_getInstance();
|
|
3245
|
+
encoder.encodeSerializableValue_3uuzip_k$(tmp_0, value instanceof JsonLiteral() ? value : THROW_CCE6());
|
|
3246
|
+
tmp = Unit_instance7;
|
|
3247
|
+
}
|
|
3248
|
+
return tmp;
|
|
3249
|
+
};
|
|
3250
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3251
|
+
return this.serialize_p6n2zb_k$(encoder, value instanceof JsonPrimitive() ? value : THROW_CCE6());
|
|
3252
|
+
};
|
|
3253
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3254
|
+
var jsonDecoder = asJsonDecoder(decoder);
|
|
3255
|
+
var result = jsonDecoder.decodeJsonElement_6lz9ye_k$();
|
|
3256
|
+
if (!(result instanceof JsonPrimitive())) {
|
|
3257
|
+
var shortMessage = "Unexpected JSON element, expected JsonPrimitive, had " + toString6(getKClassFromExpression4(result));
|
|
3258
|
+
var tmp;
|
|
3259
|
+
if (jsonDecoder.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
3260
|
+
var tmp$ret$3 = toString6(result);
|
|
3261
|
+
tmp = toString6(minify3(tmp$ret$3));
|
|
3262
|
+
} else {
|
|
3263
|
+
tmp = null;
|
|
3264
|
+
}
|
|
3265
|
+
var inputValue = tmp;
|
|
3266
|
+
throw new (JsonDecodingException3())(access$formatDecodingException$tJsonExceptionsKt3(-1, shortMessage, null, null, inputValue), shortMessage, -1, null, inputValue, null);
|
|
3267
|
+
}
|
|
3268
|
+
return result;
|
|
3269
|
+
};
|
|
3270
|
+
JsonPrimitiveSerializerClass = $;
|
|
3271
|
+
}
|
|
3272
|
+
return JsonPrimitiveSerializerClass;
|
|
3273
|
+
}
|
|
3274
|
+
var JsonPrimitiveSerializer_instance;
|
|
3275
|
+
function JsonPrimitiveSerializer_getInstance() {
|
|
3276
|
+
if (JsonPrimitiveSerializer_instance == null)
|
|
3277
|
+
new (JsonPrimitiveSerializer())();
|
|
3278
|
+
return JsonPrimitiveSerializer_instance;
|
|
3279
|
+
}
|
|
3280
|
+
var JsonObjectDescriptorClass;
|
|
3281
|
+
function JsonObjectDescriptor() {
|
|
3282
|
+
if (JsonObjectDescriptorClass === VOID7) {
|
|
3283
|
+
let $ = function() {
|
|
3284
|
+
JsonObjectDescriptor_instance = this;
|
|
3285
|
+
this.$$delegate_0__1 = MapSerializer(serializer3(StringCompanionObject_instance2), JsonElementSerializer_getInstance()).get_descriptor_wjt6a0_k$();
|
|
3286
|
+
this.serialName_1 = "kotlinx.serialization.json.JsonObject";
|
|
3287
|
+
};
|
|
3288
|
+
initMetadataForObject3($, "JsonObjectDescriptor", VOID7, VOID7, [SerialDescriptor()]);
|
|
3289
|
+
protoOf7($).get_serialName_u2rqhk_k$ = function() {
|
|
3290
|
+
return this.serialName_1;
|
|
3291
|
+
};
|
|
3292
|
+
protoOf7($).getElementName_u4sqmf_k$ = function(index) {
|
|
3293
|
+
return this.$$delegate_0__1.getElementName_u4sqmf_k$(index);
|
|
3294
|
+
};
|
|
3295
|
+
protoOf7($).getElementIndex_utfbym_k$ = function(name) {
|
|
3296
|
+
return this.$$delegate_0__1.getElementIndex_utfbym_k$(name);
|
|
3297
|
+
};
|
|
3298
|
+
protoOf7($).getElementAnnotations_omrjs6_k$ = function(index) {
|
|
3299
|
+
return this.$$delegate_0__1.getElementAnnotations_omrjs6_k$(index);
|
|
3300
|
+
};
|
|
3301
|
+
protoOf7($).getElementDescriptor_ncda77_k$ = function(index) {
|
|
3302
|
+
return this.$$delegate_0__1.getElementDescriptor_ncda77_k$(index);
|
|
3303
|
+
};
|
|
3304
|
+
protoOf7($).isElementOptional_heqq56_k$ = function(index) {
|
|
3305
|
+
return this.$$delegate_0__1.isElementOptional_heqq56_k$(index);
|
|
3306
|
+
};
|
|
3307
|
+
protoOf7($).get_kind_wop7ml_k$ = function() {
|
|
3308
|
+
return this.$$delegate_0__1.get_kind_wop7ml_k$();
|
|
3309
|
+
};
|
|
3310
|
+
protoOf7($).get_isNullable_67sy7o_k$ = function() {
|
|
3311
|
+
return this.$$delegate_0__1.get_isNullable_67sy7o_k$();
|
|
3312
|
+
};
|
|
3313
|
+
protoOf7($).get_isInline_usk17w_k$ = function() {
|
|
3314
|
+
return this.$$delegate_0__1.get_isInline_usk17w_k$();
|
|
3315
|
+
};
|
|
3316
|
+
protoOf7($).get_elementsCount_288r0x_k$ = function() {
|
|
3317
|
+
return this.$$delegate_0__1.get_elementsCount_288r0x_k$();
|
|
3318
|
+
};
|
|
3319
|
+
protoOf7($).get_annotations_20dirp_k$ = function() {
|
|
3320
|
+
return this.$$delegate_0__1.get_annotations_20dirp_k$();
|
|
3321
|
+
};
|
|
3322
|
+
JsonObjectDescriptorClass = $;
|
|
3323
|
+
}
|
|
3324
|
+
return JsonObjectDescriptorClass;
|
|
3325
|
+
}
|
|
3326
|
+
var JsonObjectDescriptor_instance;
|
|
3327
|
+
function JsonObjectDescriptor_getInstance() {
|
|
3328
|
+
if (JsonObjectDescriptor_instance == null)
|
|
3329
|
+
new (JsonObjectDescriptor())();
|
|
3330
|
+
return JsonObjectDescriptor_instance;
|
|
3331
|
+
}
|
|
3332
|
+
var JsonObjectSerializerClass;
|
|
3333
|
+
function JsonObjectSerializer() {
|
|
3334
|
+
if (JsonObjectSerializerClass === VOID7) {
|
|
3335
|
+
let $ = function() {
|
|
3336
|
+
JsonObjectSerializer_instance = this;
|
|
3337
|
+
this.descriptor_1 = JsonObjectDescriptor_getInstance();
|
|
3338
|
+
};
|
|
3339
|
+
initMetadataForObject3($, "JsonObjectSerializer", VOID7, VOID7, [KSerializer()]);
|
|
3340
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3341
|
+
return this.descriptor_1;
|
|
3342
|
+
};
|
|
3343
|
+
protoOf7($).serialize_5nm41s_k$ = function(encoder, value) {
|
|
3344
|
+
verify(encoder);
|
|
3345
|
+
MapSerializer(serializer3(StringCompanionObject_instance2), JsonElementSerializer_getInstance()).serialize_5ase3y_k$(encoder, value);
|
|
3346
|
+
};
|
|
3347
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3348
|
+
return this.serialize_5nm41s_k$(encoder, value instanceof JsonObject() ? value : THROW_CCE6());
|
|
3349
|
+
};
|
|
3350
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3351
|
+
verify_0(decoder);
|
|
3352
|
+
return new (JsonObject())(MapSerializer(serializer3(StringCompanionObject_instance2), JsonElementSerializer_getInstance()).deserialize_sy6x50_k$(decoder));
|
|
3353
|
+
};
|
|
3354
|
+
JsonObjectSerializerClass = $;
|
|
3355
|
+
}
|
|
3356
|
+
return JsonObjectSerializerClass;
|
|
3357
|
+
}
|
|
3358
|
+
var JsonObjectSerializer_instance;
|
|
3359
|
+
function JsonObjectSerializer_getInstance() {
|
|
3360
|
+
if (JsonObjectSerializer_instance == null)
|
|
3361
|
+
new (JsonObjectSerializer())();
|
|
3362
|
+
return JsonObjectSerializer_instance;
|
|
3363
|
+
}
|
|
3364
|
+
var JsonArrayDescriptorClass;
|
|
3365
|
+
function JsonArrayDescriptor() {
|
|
3366
|
+
if (JsonArrayDescriptorClass === VOID7) {
|
|
3367
|
+
let $ = function() {
|
|
3368
|
+
JsonArrayDescriptor_instance = this;
|
|
3369
|
+
this.$$delegate_0__1 = ListSerializer(JsonElementSerializer_getInstance()).get_descriptor_wjt6a0_k$();
|
|
3370
|
+
this.serialName_1 = "kotlinx.serialization.json.JsonArray";
|
|
3371
|
+
};
|
|
3372
|
+
initMetadataForObject3($, "JsonArrayDescriptor", VOID7, VOID7, [SerialDescriptor()]);
|
|
3373
|
+
protoOf7($).get_serialName_u2rqhk_k$ = function() {
|
|
3374
|
+
return this.serialName_1;
|
|
3375
|
+
};
|
|
3376
|
+
protoOf7($).getElementName_u4sqmf_k$ = function(index) {
|
|
3377
|
+
return this.$$delegate_0__1.getElementName_u4sqmf_k$(index);
|
|
3378
|
+
};
|
|
3379
|
+
protoOf7($).getElementIndex_utfbym_k$ = function(name) {
|
|
3380
|
+
return this.$$delegate_0__1.getElementIndex_utfbym_k$(name);
|
|
3381
|
+
};
|
|
3382
|
+
protoOf7($).getElementAnnotations_omrjs6_k$ = function(index) {
|
|
3383
|
+
return this.$$delegate_0__1.getElementAnnotations_omrjs6_k$(index);
|
|
3384
|
+
};
|
|
3385
|
+
protoOf7($).getElementDescriptor_ncda77_k$ = function(index) {
|
|
3386
|
+
return this.$$delegate_0__1.getElementDescriptor_ncda77_k$(index);
|
|
3387
|
+
};
|
|
3388
|
+
protoOf7($).isElementOptional_heqq56_k$ = function(index) {
|
|
3389
|
+
return this.$$delegate_0__1.isElementOptional_heqq56_k$(index);
|
|
3390
|
+
};
|
|
3391
|
+
protoOf7($).get_kind_wop7ml_k$ = function() {
|
|
3392
|
+
return this.$$delegate_0__1.get_kind_wop7ml_k$();
|
|
3393
|
+
};
|
|
3394
|
+
protoOf7($).get_isNullable_67sy7o_k$ = function() {
|
|
3395
|
+
return this.$$delegate_0__1.get_isNullable_67sy7o_k$();
|
|
3396
|
+
};
|
|
3397
|
+
protoOf7($).get_isInline_usk17w_k$ = function() {
|
|
3398
|
+
return this.$$delegate_0__1.get_isInline_usk17w_k$();
|
|
3399
|
+
};
|
|
3400
|
+
protoOf7($).get_elementsCount_288r0x_k$ = function() {
|
|
3401
|
+
return this.$$delegate_0__1.get_elementsCount_288r0x_k$();
|
|
3402
|
+
};
|
|
3403
|
+
protoOf7($).get_annotations_20dirp_k$ = function() {
|
|
3404
|
+
return this.$$delegate_0__1.get_annotations_20dirp_k$();
|
|
3405
|
+
};
|
|
3406
|
+
JsonArrayDescriptorClass = $;
|
|
3407
|
+
}
|
|
3408
|
+
return JsonArrayDescriptorClass;
|
|
3409
|
+
}
|
|
3410
|
+
var JsonArrayDescriptor_instance;
|
|
3411
|
+
function JsonArrayDescriptor_getInstance() {
|
|
3412
|
+
if (JsonArrayDescriptor_instance == null)
|
|
3413
|
+
new (JsonArrayDescriptor())();
|
|
3414
|
+
return JsonArrayDescriptor_instance;
|
|
3415
|
+
}
|
|
3416
|
+
var JsonArraySerializerClass;
|
|
3417
|
+
function JsonArraySerializer() {
|
|
3418
|
+
if (JsonArraySerializerClass === VOID7) {
|
|
3419
|
+
let $ = function() {
|
|
3420
|
+
JsonArraySerializer_instance = this;
|
|
3421
|
+
this.descriptor_1 = JsonArrayDescriptor_getInstance();
|
|
3422
|
+
};
|
|
3423
|
+
initMetadataForObject3($, "JsonArraySerializer", VOID7, VOID7, [KSerializer()]);
|
|
3424
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3425
|
+
return this.descriptor_1;
|
|
3426
|
+
};
|
|
3427
|
+
protoOf7($).serialize_1tf28e_k$ = function(encoder, value) {
|
|
3428
|
+
verify(encoder);
|
|
3429
|
+
ListSerializer(JsonElementSerializer_getInstance()).serialize_5ase3y_k$(encoder, value);
|
|
3430
|
+
};
|
|
3431
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3432
|
+
return this.serialize_1tf28e_k$(encoder, value instanceof JsonArray() ? value : THROW_CCE6());
|
|
3433
|
+
};
|
|
3434
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3435
|
+
verify_0(decoder);
|
|
3436
|
+
return new (JsonArray())(ListSerializer(JsonElementSerializer_getInstance()).deserialize_sy6x50_k$(decoder));
|
|
3437
|
+
};
|
|
3438
|
+
JsonArraySerializerClass = $;
|
|
3439
|
+
}
|
|
3440
|
+
return JsonArraySerializerClass;
|
|
3441
|
+
}
|
|
3442
|
+
var JsonArraySerializer_instance;
|
|
3443
|
+
function JsonArraySerializer_getInstance() {
|
|
3444
|
+
if (JsonArraySerializer_instance == null)
|
|
3445
|
+
new (JsonArraySerializer())();
|
|
3446
|
+
return JsonArraySerializer_instance;
|
|
3447
|
+
}
|
|
3448
|
+
var JsonNullSerializerClass;
|
|
3449
|
+
function JsonNullSerializer() {
|
|
3450
|
+
if (JsonNullSerializerClass === VOID7) {
|
|
3451
|
+
let $ = function() {
|
|
3452
|
+
JsonNullSerializer_instance = this;
|
|
3453
|
+
this.descriptor_1 = buildSerialDescriptor("kotlinx.serialization.json.JsonNull", ENUM_getInstance3(), []);
|
|
3454
|
+
};
|
|
3455
|
+
initMetadataForObject3($, "JsonNullSerializer", VOID7, VOID7, [KSerializer()]);
|
|
3456
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3457
|
+
return this.descriptor_1;
|
|
3458
|
+
};
|
|
3459
|
+
protoOf7($).serialize_52d5kl_k$ = function(encoder, value) {
|
|
3460
|
+
verify(encoder);
|
|
3461
|
+
encoder.encodeNull_ejiosz_k$();
|
|
3462
|
+
};
|
|
3463
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3464
|
+
return this.serialize_52d5kl_k$(encoder, value instanceof JsonNull() ? value : THROW_CCE6());
|
|
3465
|
+
};
|
|
3466
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3467
|
+
verify_0(decoder);
|
|
3468
|
+
if (decoder.decodeNotNullMark_us4ba1_k$()) {
|
|
3469
|
+
throw decodingExceptionOf("Expected 'null' literal");
|
|
3470
|
+
}
|
|
3471
|
+
decoder.decodeNull_jzrmuj_k$();
|
|
3472
|
+
return JsonNull_getInstance();
|
|
3473
|
+
};
|
|
3474
|
+
JsonNullSerializerClass = $;
|
|
3475
|
+
}
|
|
3476
|
+
return JsonNullSerializerClass;
|
|
3477
|
+
}
|
|
3478
|
+
var JsonNullSerializer_instance;
|
|
3479
|
+
function JsonNullSerializer_getInstance() {
|
|
3480
|
+
if (JsonNullSerializer_instance == null)
|
|
3481
|
+
new (JsonNullSerializer())();
|
|
3482
|
+
return JsonNullSerializer_instance;
|
|
3483
|
+
}
|
|
3484
|
+
function defer(deferred) {
|
|
3485
|
+
return new (defer$1())(deferred);
|
|
3486
|
+
}
|
|
3487
|
+
var JsonLiteralSerializerClass;
|
|
3488
|
+
function JsonLiteralSerializer() {
|
|
3489
|
+
if (JsonLiteralSerializerClass === VOID7) {
|
|
3490
|
+
let $ = function() {
|
|
3491
|
+
JsonLiteralSerializer_instance = this;
|
|
3492
|
+
this.descriptor_1 = PrimitiveSerialDescriptor("kotlinx.serialization.json.JsonLiteral", STRING_getInstance());
|
|
3493
|
+
};
|
|
3494
|
+
initMetadataForObject3($, "JsonLiteralSerializer", VOID7, VOID7, [KSerializer()]);
|
|
3495
|
+
protoOf7($).get_descriptor_wjt6a0_k$ = function() {
|
|
3496
|
+
return this.descriptor_1;
|
|
3497
|
+
};
|
|
3498
|
+
protoOf7($).serialize_1mrbye_k$ = function(encoder, value) {
|
|
3499
|
+
verify(encoder);
|
|
3500
|
+
if (value.isString_1) {
|
|
3501
|
+
return encoder.encodeString_424b5v_k$(value.content_1);
|
|
3502
|
+
}
|
|
3503
|
+
if (!(value.coerceToInlineType_1 == null)) {
|
|
3504
|
+
return encoder.encodeInline_wxp5pu_k$(value.coerceToInlineType_1).encodeString_424b5v_k$(value.content_1);
|
|
3505
|
+
}
|
|
3506
|
+
var tmp0_safe_receiver = toLongOrNull(value.content_1);
|
|
3507
|
+
if (tmp0_safe_receiver == null)
|
|
3508
|
+
null;
|
|
3509
|
+
else {
|
|
3510
|
+
return encoder.encodeLong_vlw3uq_k$(tmp0_safe_receiver);
|
|
3511
|
+
}
|
|
3512
|
+
var tmp1_safe_receiver = toULongOrNull(value.content_1);
|
|
3513
|
+
var tmp = tmp1_safe_receiver;
|
|
3514
|
+
if ((tmp == null ? null : new (ULong())(tmp)) == null)
|
|
3515
|
+
null;
|
|
3516
|
+
else {
|
|
3517
|
+
var tmp_0 = tmp1_safe_receiver;
|
|
3518
|
+
var it = (tmp_0 == null ? null : new (ULong())(tmp_0)).data_1;
|
|
3519
|
+
var tmp_1 = encoder.encodeInline_wxp5pu_k$(serializer_02(Companion_getInstance3()).get_descriptor_wjt6a0_k$());
|
|
3520
|
+
var tmp$ret$4 = _ULong___get_data__impl__fggpzb2(it);
|
|
3521
|
+
tmp_1.encodeLong_vlw3uq_k$(tmp$ret$4);
|
|
3522
|
+
return Unit_instance7;
|
|
3523
|
+
}
|
|
3524
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.content_1);
|
|
3525
|
+
if (tmp2_safe_receiver == null)
|
|
3526
|
+
null;
|
|
3527
|
+
else {
|
|
3528
|
+
return encoder.encodeDouble_n270q9_k$(tmp2_safe_receiver);
|
|
3529
|
+
}
|
|
3530
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull2(value.content_1);
|
|
3531
|
+
if (tmp3_safe_receiver == null)
|
|
3532
|
+
null;
|
|
3533
|
+
else {
|
|
3534
|
+
return encoder.encodeBoolean_tu2e59_k$(tmp3_safe_receiver);
|
|
3535
|
+
}
|
|
3536
|
+
encoder.encodeString_424b5v_k$(value.content_1);
|
|
3537
|
+
};
|
|
3538
|
+
protoOf7($).serialize_5ase3y_k$ = function(encoder, value) {
|
|
3539
|
+
return this.serialize_1mrbye_k$(encoder, value instanceof JsonLiteral() ? value : THROW_CCE6());
|
|
3540
|
+
};
|
|
3541
|
+
protoOf7($).deserialize_sy6x50_k$ = function(decoder) {
|
|
3542
|
+
var jsonDecoder = asJsonDecoder(decoder);
|
|
3543
|
+
var result = jsonDecoder.decodeJsonElement_6lz9ye_k$();
|
|
3544
|
+
if (!(result instanceof JsonLiteral())) {
|
|
3545
|
+
var shortMessage = "Unexpected JSON element, expected JsonLiteral, had " + toString6(getKClassFromExpression4(result));
|
|
3546
|
+
var tmp;
|
|
3547
|
+
if (jsonDecoder.get_json_woos35_k$().configuration_1.exceptionsWithDebugInfo_1) {
|
|
3548
|
+
var tmp$ret$3 = toString6(result);
|
|
3549
|
+
tmp = toString6(minify3(tmp$ret$3));
|
|
3550
|
+
} else {
|
|
3551
|
+
tmp = null;
|
|
3552
|
+
}
|
|
3553
|
+
var inputValue = tmp;
|
|
3554
|
+
throw new (JsonDecodingException3())(access$formatDecodingException$tJsonExceptionsKt3(-1, shortMessage, null, null, inputValue), shortMessage, -1, null, inputValue, null);
|
|
3555
|
+
}
|
|
3556
|
+
return result;
|
|
3557
|
+
};
|
|
3558
|
+
JsonLiteralSerializerClass = $;
|
|
3559
|
+
}
|
|
3560
|
+
return JsonLiteralSerializerClass;
|
|
3561
|
+
}
|
|
3562
|
+
var JsonLiteralSerializer_instance;
|
|
3563
|
+
function JsonLiteralSerializer_getInstance() {
|
|
3564
|
+
if (JsonLiteralSerializer_instance == null)
|
|
3565
|
+
new (JsonLiteralSerializer())();
|
|
3566
|
+
return JsonLiteralSerializer_instance;
|
|
3567
|
+
}
|
|
3568
|
+
function verify(encoder) {
|
|
3569
|
+
asJsonEncoder(encoder);
|
|
3570
|
+
}
|
|
3571
|
+
function asJsonDecoder(_this__u8e3s4) {
|
|
3572
|
+
var tmp0_elvis_lhs = isInterface4(_this__u8e3s4, JsonDecoder3()) ? _this__u8e3s4 : null;
|
|
3573
|
+
var tmp;
|
|
3574
|
+
if (tmp0_elvis_lhs == null) {
|
|
3575
|
+
throw IllegalStateException_init_$Create$2("This serializer can be used only with Json format." + ("Expected Decoder to be JsonDecoder, got " + toString6(getKClassFromExpression4(_this__u8e3s4))));
|
|
3576
|
+
} else {
|
|
3577
|
+
tmp = tmp0_elvis_lhs;
|
|
3578
|
+
}
|
|
3579
|
+
return tmp;
|
|
3580
|
+
}
|
|
3581
|
+
function verify_0(decoder) {
|
|
3582
|
+
asJsonDecoder(decoder);
|
|
3583
|
+
}
|
|
3584
|
+
function asJsonEncoder(_this__u8e3s4) {
|
|
3585
|
+
var tmp0_elvis_lhs = isInterface4(_this__u8e3s4, JsonEncoder2()) ? _this__u8e3s4 : null;
|
|
155
3586
|
var tmp;
|
|
156
|
-
if (
|
|
157
|
-
|
|
3587
|
+
if (tmp0_elvis_lhs == null) {
|
|
3588
|
+
throw IllegalStateException_init_$Create$2("This serializer can be used only with Json format." + ("Expected Encoder to be JsonEncoder, got " + toString6(getKClassFromExpression4(_this__u8e3s4))));
|
|
158
3589
|
} else {
|
|
159
|
-
tmp =
|
|
3590
|
+
tmp = tmp0_elvis_lhs;
|
|
160
3591
|
}
|
|
161
|
-
return
|
|
3592
|
+
return tmp;
|
|
3593
|
+
}
|
|
3594
|
+
function _get_original__l7ku1m($this) {
|
|
3595
|
+
var tmp0 = $this.original$delegate_1;
|
|
3596
|
+
var tmp = KProperty1();
|
|
3597
|
+
getPropertyCallableRef("original", 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
3598
|
+
return tmp0.get_value_j01efc_k$();
|
|
162
3599
|
}
|
|
163
|
-
function
|
|
164
|
-
return
|
|
3600
|
+
function defer$o$_get_original_$ref_3cje7k() {
|
|
3601
|
+
return constructCallableReference2(function(p0) {
|
|
3602
|
+
return _get_original__l7ku1m(p0);
|
|
3603
|
+
}, 1, 0, 50);
|
|
3604
|
+
}
|
|
3605
|
+
var defer$1Class;
|
|
3606
|
+
function defer$1() {
|
|
3607
|
+
if (defer$1Class === VOID7) {
|
|
3608
|
+
let $ = function($deferred) {
|
|
3609
|
+
this.original$delegate_1 = lazy($deferred);
|
|
3610
|
+
};
|
|
3611
|
+
initMetadataForClass7($, VOID7, VOID7, VOID7, [SerialDescriptor()]);
|
|
3612
|
+
protoOf7($).get_serialName_u2rqhk_k$ = function() {
|
|
3613
|
+
return _get_original__l7ku1m(this).get_serialName_u2rqhk_k$();
|
|
3614
|
+
};
|
|
3615
|
+
protoOf7($).get_kind_wop7ml_k$ = function() {
|
|
3616
|
+
return _get_original__l7ku1m(this).get_kind_wop7ml_k$();
|
|
3617
|
+
};
|
|
3618
|
+
protoOf7($).get_elementsCount_288r0x_k$ = function() {
|
|
3619
|
+
return _get_original__l7ku1m(this).get_elementsCount_288r0x_k$();
|
|
3620
|
+
};
|
|
3621
|
+
protoOf7($).getElementName_u4sqmf_k$ = function(index) {
|
|
3622
|
+
return _get_original__l7ku1m(this).getElementName_u4sqmf_k$(index);
|
|
3623
|
+
};
|
|
3624
|
+
protoOf7($).getElementIndex_utfbym_k$ = function(name) {
|
|
3625
|
+
return _get_original__l7ku1m(this).getElementIndex_utfbym_k$(name);
|
|
3626
|
+
};
|
|
3627
|
+
protoOf7($).getElementAnnotations_omrjs6_k$ = function(index) {
|
|
3628
|
+
return _get_original__l7ku1m(this).getElementAnnotations_omrjs6_k$(index);
|
|
3629
|
+
};
|
|
3630
|
+
protoOf7($).getElementDescriptor_ncda77_k$ = function(index) {
|
|
3631
|
+
return _get_original__l7ku1m(this).getElementDescriptor_ncda77_k$(index);
|
|
3632
|
+
};
|
|
3633
|
+
protoOf7($).isElementOptional_heqq56_k$ = function(index) {
|
|
3634
|
+
return _get_original__l7ku1m(this).isElementOptional_heqq56_k$(index);
|
|
3635
|
+
};
|
|
3636
|
+
protoOf7($).get_isNullable_67sy7o_k$ = get_isNullable;
|
|
3637
|
+
protoOf7($).get_isInline_usk17w_k$ = get_isInline;
|
|
3638
|
+
protoOf7($).get_annotations_20dirp_k$ = get_annotations;
|
|
3639
|
+
defer$1Class = $;
|
|
3640
|
+
}
|
|
3641
|
+
return defer$1Class;
|
|
165
3642
|
}
|
|
166
3643
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
3644
|
+
Default_getInstance as Default_getInstancevb13yk0g3h3e,
|
|
3645
|
+
JsonArray as JsonArray2urf8ey7u44sd,
|
|
3646
|
+
JsonArraySerializer_getInstance as JsonArraySerializer_getInstance2u75x9rgsas6i,
|
|
3647
|
+
JsonDecoderForUnsignedTypes as JsonDecoderForUnsignedTypesaowwj2t4rf8t,
|
|
3648
|
+
JsonElementSerializer_getInstance as JsonElementSerializer_getInstanceqpm5aw7w4cej,
|
|
3649
|
+
JsonElement as JsonElementf07o4p6p57al,
|
|
3650
|
+
JsonLiteral as JsonLiteral1u57id0qmqut7,
|
|
3651
|
+
JsonNull as JsonNull2liwjj96vm0w2,
|
|
3652
|
+
JsonNullSerializer_getInstance as JsonNullSerializer_getInstancejguwsicwxpex,
|
|
3653
|
+
JsonNull_getInstance as JsonNull_getInstance1i1hv1sbjynto,
|
|
3654
|
+
JsonObjectSerializer_getInstance as JsonObjectSerializer_getInstance15ehqyi55oo4q,
|
|
3655
|
+
JsonObject as JsonObjectee06ihoeeiqj,
|
|
3656
|
+
JsonPrimitive as JsonPrimitive3ttzjh2ft5dnx,
|
|
3657
|
+
JsonPrimitiveSerializer_getInstance as JsonPrimitiveSerializer_getInstance7mj253uvdtw6,
|
|
3658
|
+
JsonPrimitive_0 as JsonPrimitiveolttw629wj53,
|
|
3659
|
+
JsonTreeReader as JsonTreeReader1ycreu77eikqj,
|
|
3660
|
+
Json_0 as Jsonsmkyu9xjl7fv,
|
|
3661
|
+
StreamingJsonDecoder as StreamingJsonDecoderyo05rsghf9i6,
|
|
3662
|
+
StreamingJsonEncoder_init_$Create$ as StreamingJsonEncoder_init_$Create$1ozwn47kpe4l5,
|
|
3663
|
+
encodeByWriter as encodeByWriter108llwage8l5s,
|
|
3664
|
+
get_booleanOrNull as get_booleanOrNull376axlcpdhkmo,
|
|
3665
|
+
get_contentOrNull as get_contentOrNull35s97cgi8z9eo,
|
|
3666
|
+
get_double as get_double1785hcxaminy4,
|
|
3667
|
+
get_float as get_float1xtaobzj8js8m,
|
|
3668
|
+
get_isUnsignedNumber as get_isUnsignedNumber3dxwaa3af8ncr,
|
|
3669
|
+
get_jsonObject as get_jsonObject2u4z2ch1uuca9,
|
|
3670
|
+
get_jsonPrimitive as get_jsonPrimitivez17tyd5rw1ql,
|
|
3671
|
+
get_jsonUnquotedLiteralDescriptor as get_jsonUnquotedLiteralDescriptors6ipxyp7dsvf,
|
|
3672
|
+
parseLongImpl as parseLongImpl2gkj8byk018b9,
|
|
3673
|
+
readPolymorphicJson as readPolymorphicJson7wfdzotvo8aj
|
|
179
3674
|
};
|