mrs-toolbox-cli 0.0.87 → 0.0.90
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/88b0986a7186d029-atomicfu-js-ir.js +47 -65
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +632 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/clikt-clikt.js +6454 -0
- package/clikt-clikt.js.map +1 -0
- package/colormath-root-colormath.js +1367 -0
- package/colormath-root-colormath.js.map +1 -0
- package/com.mrs.platform.configuration.dto.js +5180 -6529
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +12925 -13905
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging-js-ir.js +68 -106
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +1 -2
- package/kotlin-node.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +8 -0
- package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js → kotlinx-html.js} +1 -1
- package/kotlinx-html.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6053 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +4903 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +2572 -3423
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +280 -290
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +3006 -3347
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +20 -25
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +1184 -1662
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +2091 -2972
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +12 -13
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +359 -388
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +146 -143
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +702 -900
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +92 -106
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +6653 -0
- package/markdown.js.map +1 -0
- package/mordant-mordant.js +11785 -0
- package/mordant-mordant.js.map +1 -0
- package/mrs-toolbox-cli.d.ts +159 -62
- package/mrs-toolbox-cli.js +169 -169
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +3 -2
- package/toolbox.js +5394 -6365
- package/toolbox.js.map +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +0 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +0 -1
- package/clikt-clikt-js-ir.js +0 -7044
- package/clikt-clikt-js-ir.js.hash +0 -1
- package/clikt-clikt-js-ir.js.map +0 -1
- package/clikt-clikt-js-ir.js.map.hash +0 -1
- package/com.mrs.platform.configuration.dto.js.hash +0 -1
- package/com.mrs.platform.configuration.dto.js.map.hash +0 -1
- package/kotlin-js.js.hash +0 -1
- package/kotlin-js.js.map.hash +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.hash +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +0 -1
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +0 -1
- package/kotlin-logging-js-ir.js.hash +0 -1
- package/kotlin-logging-js-ir.js.map.hash +0 -1
- package/kotlin-node.js.hash +0 -1
- package/kotlin-node.js.map.hash +0 -1
- package/kotlin-web.js.hash +0 -1
- package/kotlin-web.js.map.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +0 -6431
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +0 -5101
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +0 -1
- package/ktor-ktor-client-content-negotiation.js.hash +0 -1
- package/ktor-ktor-client-content-negotiation.js.map.hash +0 -1
- package/ktor-ktor-client-core.js.hash +0 -1
- package/ktor-ktor-client-core.js.map.hash +0 -1
- package/ktor-ktor-events.js.hash +0 -1
- package/ktor-ktor-events.js.map.hash +0 -1
- package/ktor-ktor-http.js.hash +0 -1
- package/ktor-ktor-http.js.map.hash +0 -1
- package/ktor-ktor-io.js.hash +0 -1
- package/ktor-ktor-io.js.map.hash +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js.hash +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js.map.hash +0 -1
- package/ktor-ktor-serialization-kotlinx.js.hash +0 -1
- package/ktor-ktor-serialization-kotlinx.js.map.hash +0 -1
- package/ktor-ktor-serialization.js.hash +0 -1
- package/ktor-ktor-serialization.js.map.hash +0 -1
- package/ktor-ktor-utils.js.hash +0 -1
- package/ktor-ktor-utils.js.map.hash +0 -1
- package/ktor-ktor-websocket-serialization.js.hash +0 -1
- package/ktor-ktor-websocket-serialization.js.map.hash +0 -1
- package/ktor-ktor-websockets.js.hash +0 -1
- package/ktor-ktor-websockets.js.map.hash +0 -1
- package/mrs-toolbox-cli.d.ts.hash +0 -1
- package/mrs-toolbox-cli.js.hash +0 -1
- package/mrs-toolbox-cli.js.map.hash +0 -1
- package/static/access.query.txt.hash +0 -1
- package/static/demo.test.ts.txt.hash +0 -1
- package/static/git.ignore.hash +0 -1
- package/static/graph.query.txt.hash +0 -1
- package/static/hook.ts.txt.hash +0 -1
- package/static/mrscconfig.json.hash +0 -1
- package/static/readme.md.hash +0 -1
- package/static/tsconfig.json.txt.hash +0 -1
- package/toolbox.js.hash +0 -1
- package/toolbox.js.map.hash +0 -1
- /package/{Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map} +0 -0
|
@@ -1,391 +1,395 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_serialization) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
9
|
-
var
|
|
10
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
11
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
12
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
13
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
14
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
15
|
-
var toString = kotlin_kotlin.$_$.
|
|
16
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
17
|
-
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.dc;
|
|
5
|
+
var interfaceMeta = kotlin_kotlin.$_$.gb;
|
|
6
|
+
var setMetadataFor = kotlin_kotlin.$_$.ec;
|
|
7
|
+
var VOID = kotlin_kotlin.$_$.g;
|
|
8
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
9
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
10
|
+
var CoroutineImpl = kotlin_kotlin.$_$.fa;
|
|
11
|
+
var THROW_CCE = kotlin_kotlin.$_$.ng;
|
|
12
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
13
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r9;
|
|
14
|
+
var classMeta = kotlin_kotlin.$_$.va;
|
|
15
|
+
var toString = kotlin_kotlin.$_$.ic;
|
|
16
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
17
|
+
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k2;
|
|
18
18
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.i;
|
|
19
|
-
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
19
|
+
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
20
20
|
var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
21
21
|
var TextContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
22
|
-
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
22
|
+
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
|
|
23
23
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
24
|
-
var isObject = kotlin_kotlin.$_$.ka;
|
|
25
24
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
26
25
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
27
|
-
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
26
|
+
var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
28
27
|
var discard = kotlin_io_ktor_ktor_io.$_$.u;
|
|
29
28
|
var readBytes = kotlin_io_ktor_ktor_io.$_$.v;
|
|
30
29
|
var readText = kotlin_io_ktor_ktor_io.$_$.x;
|
|
31
30
|
var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
32
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
31
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
33
32
|
var ContentConverter = kotlin_io_ktor_ktor_serialization.$_$.d;
|
|
34
|
-
var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
35
|
-
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
36
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
37
|
-
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
38
|
-
var Map = kotlin_kotlin.$_$.
|
|
39
|
-
var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
40
|
-
var Set = kotlin_kotlin.$_$.
|
|
41
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var
|
|
43
|
-
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
44
|
-
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
45
|
-
var isArray = kotlin_kotlin.$_$.
|
|
46
|
-
var List = kotlin_kotlin.$_$.
|
|
47
|
-
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.
|
|
48
|
-
var filterNotNull = kotlin_kotlin.$_$.
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
50
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
51
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
52
|
-
var singleOrNull = kotlin_kotlin.$_$.
|
|
53
|
-
var Collection = kotlin_kotlin.$_$.
|
|
54
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
33
|
+
var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
|
|
34
|
+
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
35
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
36
|
+
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
37
|
+
var Map = kotlin_kotlin.$_$.q5;
|
|
38
|
+
var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
39
|
+
var Set = kotlin_kotlin.$_$.u5;
|
|
40
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.x6;
|
|
41
|
+
var StringCompanionObject_instance = kotlin_kotlin.$_$.v4;
|
|
42
|
+
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
43
|
+
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
44
|
+
var isArray = kotlin_kotlin.$_$.hb;
|
|
45
|
+
var List = kotlin_kotlin.$_$.o5;
|
|
46
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
47
|
+
var filterNotNull = kotlin_kotlin.$_$.v6;
|
|
48
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
49
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
50
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
51
|
+
var singleOrNull = kotlin_kotlin.$_$.p8;
|
|
52
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
53
|
+
var emptyList = kotlin_kotlin.$_$.s6;
|
|
55
54
|
//endregion
|
|
56
55
|
//region block: pre-declaration
|
|
57
|
-
setMetadataFor(KotlinxSerializationExtension, 'KotlinxSerializationExtension', interfaceMeta, VOID, VOID, VOID, VOID, [4, 3]);
|
|
58
|
-
setMetadataFor(KotlinxSerializationConverter$serializeNullable$o$collect$slambda, 'KotlinxSerializationConverter$serializeNullable$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
56
|
+
setMetadataFor(KotlinxSerializationExtension, 'KotlinxSerializationExtension', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [4, 3]);
|
|
57
|
+
setMetadataFor(KotlinxSerializationConverter$serializeNullable$o$collect$slambda, 'KotlinxSerializationConverter$serializeNullable$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
59
58
|
setMetadataFor($collectCOROUTINE$2, '$collectCOROUTINE$2', classMeta, CoroutineImpl);
|
|
60
|
-
setMetadataFor(KotlinxSerializationConverter$deserialize$o$collect$slambda, 'KotlinxSerializationConverter$deserialize$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
59
|
+
setMetadataFor(KotlinxSerializationConverter$deserialize$o$collect$slambda, 'KotlinxSerializationConverter$deserialize$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
61
60
|
setMetadataFor($collectCOROUTINE$3, '$collectCOROUTINE$3', classMeta, CoroutineImpl);
|
|
62
|
-
setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, [1]);
|
|
63
|
-
setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, [1]);
|
|
64
|
-
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, VOID, VOID, VOID, [1]);
|
|
65
|
-
setMetadataFor(KotlinxSerializationConverter$serializeNullable$slambda, 'KotlinxSerializationConverter$serializeNullable$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
66
|
-
setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, VOID, VOID, VOID, [1]);
|
|
67
|
-
setMetadataFor(KotlinxSerializationConverter$deserialize$slambda, 'KotlinxSerializationConverter$deserialize$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
61
|
+
setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
62
|
+
setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
63
|
+
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
64
|
+
setMetadataFor(KotlinxSerializationConverter$serializeNullable$slambda, 'KotlinxSerializationConverter$serializeNullable$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
65
|
+
setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
66
|
+
setMetadataFor(KotlinxSerializationConverter$deserialize$slambda, 'KotlinxSerializationConverter$deserialize$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
68
67
|
setMetadataFor($serializeNullableCOROUTINE$0, '$serializeNullableCOROUTINE$0', classMeta, CoroutineImpl);
|
|
69
68
|
setMetadataFor($deserializeCOROUTINE$1, '$deserializeCOROUTINE$1', classMeta, CoroutineImpl);
|
|
70
|
-
setMetadataFor(KotlinxSerializationConverter, 'KotlinxSerializationConverter', classMeta, VOID, [ContentConverter], VOID, VOID, [4, 3]);
|
|
69
|
+
setMetadataFor(KotlinxSerializationConverter, 'KotlinxSerializationConverter', classMeta, VOID, [ContentConverter], VOID, VOID, VOID, [4, 3]);
|
|
71
70
|
//endregion
|
|
72
71
|
function KotlinxSerializationExtension() {
|
|
73
72
|
}
|
|
74
73
|
function extensions(format) {
|
|
75
|
-
var tmp$ret$3;
|
|
76
74
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
77
|
-
var tmp1_mapNotNull = get_providers();
|
|
78
|
-
var tmp$ret$2;
|
|
79
75
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
80
|
-
var
|
|
76
|
+
var this_0 = get_providers();
|
|
77
|
+
var destination = ArrayList_init_$Create$();
|
|
81
78
|
// Inline function 'kotlin.collections.forEach' call
|
|
82
|
-
var tmp0_iterator =
|
|
83
|
-
while (tmp0_iterator.
|
|
84
|
-
var element = tmp0_iterator.
|
|
79
|
+
var tmp0_iterator = this_0.v();
|
|
80
|
+
while (tmp0_iterator.w()) {
|
|
81
|
+
var element = tmp0_iterator.y();
|
|
85
82
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
86
|
-
var tmp$ret$0;
|
|
87
83
|
// Inline function 'io.ktor.serialization.kotlinx.extensions.<anonymous>' call
|
|
88
|
-
|
|
89
|
-
var tmp0_safe_receiver = tmp$ret$0;
|
|
84
|
+
var tmp0_safe_receiver = element.i2q(format);
|
|
90
85
|
if (tmp0_safe_receiver == null)
|
|
91
86
|
null;
|
|
92
87
|
else {
|
|
93
|
-
var tmp$ret$1;
|
|
94
88
|
// Inline function 'kotlin.let' call
|
|
95
89
|
// Inline function 'kotlin.contracts.contract' call
|
|
96
|
-
|
|
97
|
-
tmp$ret$1 = Unit_getInstance();
|
|
90
|
+
destination.s(tmp0_safe_receiver);
|
|
98
91
|
}
|
|
99
92
|
}
|
|
100
|
-
|
|
101
|
-
tmp$ret$3 = tmp$ret$2;
|
|
102
|
-
return tmp$ret$3;
|
|
93
|
+
return destination;
|
|
103
94
|
}
|
|
104
95
|
function serialization(_this__u8e3s4, contentType, format) {
|
|
105
|
-
_this__u8e3s4.
|
|
96
|
+
_this__u8e3s4.m23(contentType, new KotlinxSerializationConverter(format));
|
|
106
97
|
}
|
|
107
|
-
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda($
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
98
|
+
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
99
|
+
this.r2q_1 = $$this$unsafeFlow;
|
|
100
|
+
this.s2q_1 = $contentType;
|
|
101
|
+
this.t2q_1 = $charset;
|
|
102
|
+
this.u2q_1 = $typeInfo;
|
|
103
|
+
this.v2q_1 = $value;
|
|
113
104
|
CoroutineImpl.call(this, resultContinuation);
|
|
114
105
|
}
|
|
115
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).
|
|
116
|
-
var tmp = this.
|
|
117
|
-
tmp.
|
|
118
|
-
tmp.
|
|
119
|
-
return tmp.
|
|
106
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).b2r = function (value, $completion) {
|
|
107
|
+
var tmp = this.c2r(value, $completion);
|
|
108
|
+
tmp.zc_1 = Unit_instance;
|
|
109
|
+
tmp.ad_1 = null;
|
|
110
|
+
return tmp.kd();
|
|
120
111
|
};
|
|
121
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).
|
|
122
|
-
return this.
|
|
112
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).xd = function (p1, $completion) {
|
|
113
|
+
return this.b2r((!(p1 == null) ? isInterface(p1, KotlinxSerializationExtension) : false) ? p1 : THROW_CCE(), $completion);
|
|
123
114
|
};
|
|
124
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).
|
|
125
|
-
var suspendResult = this.
|
|
115
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).kd = function () {
|
|
116
|
+
var suspendResult = this.zc_1;
|
|
126
117
|
$sm: do
|
|
127
118
|
try {
|
|
128
|
-
var tmp = this.
|
|
119
|
+
var tmp = this.xc_1;
|
|
129
120
|
switch (tmp) {
|
|
130
121
|
case 0:
|
|
131
|
-
this.
|
|
132
|
-
|
|
133
|
-
|
|
122
|
+
this.yc_1 = 3;
|
|
123
|
+
var tmp_0 = this;
|
|
124
|
+
tmp_0.x2q_1 = this.r2q_1;
|
|
125
|
+
var tmp_1 = this;
|
|
126
|
+
tmp_1.y2q_1 = this.w2q_1;
|
|
127
|
+
var tmp_2 = this;
|
|
128
|
+
tmp_2.z2q_1 = this.y2q_1;
|
|
129
|
+
this.xc_1 = 1;
|
|
130
|
+
suspendResult = this.z2q_1.h2q(this.s2q_1, this.t2q_1, this.u2q_1, this.v2q_1, this);
|
|
134
131
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
132
|
return suspendResult;
|
|
136
133
|
}
|
|
137
134
|
|
|
138
135
|
continue $sm;
|
|
139
136
|
case 1:
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
142
|
-
suspendResult = this.
|
|
137
|
+
this.a2r_1 = suspendResult;
|
|
138
|
+
this.xc_1 = 2;
|
|
139
|
+
suspendResult = this.x2q_1.l12(this.a2r_1, this);
|
|
143
140
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
144
141
|
return suspendResult;
|
|
145
142
|
}
|
|
146
143
|
|
|
147
144
|
continue $sm;
|
|
148
145
|
case 2:
|
|
149
|
-
return
|
|
146
|
+
return Unit_instance;
|
|
150
147
|
case 3:
|
|
151
|
-
throw this.
|
|
148
|
+
throw this.ad_1;
|
|
152
149
|
}
|
|
153
150
|
} catch ($p) {
|
|
154
151
|
var e = $p;
|
|
155
|
-
if (this.
|
|
152
|
+
if (this.yc_1 === 3) {
|
|
156
153
|
throw e;
|
|
157
154
|
} else {
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
155
|
+
this.xc_1 = this.yc_1;
|
|
156
|
+
this.ad_1 = e;
|
|
160
157
|
}
|
|
161
158
|
}
|
|
162
159
|
while (true);
|
|
163
160
|
};
|
|
164
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).
|
|
165
|
-
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda(this.
|
|
166
|
-
i.
|
|
161
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).c2r = function (value, completion) {
|
|
162
|
+
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda(this.r2q_1, this.s2q_1, this.t2q_1, this.u2q_1, this.v2q_1, completion);
|
|
163
|
+
i.w2q_1 = value;
|
|
167
164
|
return i;
|
|
168
165
|
};
|
|
169
|
-
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0($
|
|
170
|
-
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda($
|
|
166
|
+
function KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
167
|
+
var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
171
168
|
var l = function (value, $completion) {
|
|
172
|
-
return i.
|
|
169
|
+
return i.b2r(value, $completion);
|
|
173
170
|
};
|
|
174
171
|
l.$arity = 1;
|
|
175
172
|
return l;
|
|
176
173
|
}
|
|
177
174
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
178
175
|
CoroutineImpl.call(this, resultContinuation);
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
176
|
+
this.l2r_1 = _this__u8e3s4;
|
|
177
|
+
this.m2r_1 = collector;
|
|
181
178
|
}
|
|
182
|
-
protoOf($collectCOROUTINE$2).
|
|
183
|
-
var suspendResult = this.
|
|
179
|
+
protoOf($collectCOROUTINE$2).kd = function () {
|
|
180
|
+
var suspendResult = this.zc_1;
|
|
184
181
|
$sm: do
|
|
185
182
|
try {
|
|
186
|
-
var tmp = this.
|
|
183
|
+
var tmp = this.xc_1;
|
|
187
184
|
switch (tmp) {
|
|
188
185
|
case 0:
|
|
189
|
-
this.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
this.yc_1 = 2;
|
|
187
|
+
var tmp_0 = this;
|
|
188
|
+
tmp_0.n2r_1 = this.m2r_1;
|
|
189
|
+
this.xc_1 = 1;
|
|
190
|
+
var tmp_1 = KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0(this.n2r_1, this.l2r_1.p2r_1, this.l2r_1.q2r_1, this.l2r_1.r2r_1, this.l2r_1.s2r_1, null);
|
|
191
|
+
suspendResult = this.l2r_1.o2r_1.m12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
193
192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
194
193
|
return suspendResult;
|
|
195
194
|
}
|
|
196
195
|
|
|
197
196
|
continue $sm;
|
|
198
197
|
case 1:
|
|
199
|
-
return
|
|
198
|
+
return Unit_instance;
|
|
200
199
|
case 2:
|
|
201
|
-
throw this.
|
|
200
|
+
throw this.ad_1;
|
|
202
201
|
}
|
|
203
202
|
} catch ($p) {
|
|
204
203
|
var e = $p;
|
|
205
|
-
if (this.
|
|
204
|
+
if (this.yc_1 === 2) {
|
|
206
205
|
throw e;
|
|
207
206
|
} else {
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
207
|
+
this.xc_1 = this.yc_1;
|
|
208
|
+
this.ad_1 = e;
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
while (true);
|
|
213
212
|
};
|
|
214
|
-
function KotlinxSerializationConverter$deserialize$o$collect$slambda($
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
213
|
+
function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
214
|
+
this.b2s_1 = $$this$unsafeFlow;
|
|
215
|
+
this.c2s_1 = $charset;
|
|
216
|
+
this.d2s_1 = $typeInfo;
|
|
217
|
+
this.e2s_1 = $content;
|
|
219
218
|
CoroutineImpl.call(this, resultContinuation);
|
|
220
219
|
}
|
|
221
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
222
|
-
var tmp = this.
|
|
223
|
-
tmp.
|
|
224
|
-
tmp.
|
|
225
|
-
return tmp.
|
|
220
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).b2r = function (value, $completion) {
|
|
221
|
+
var tmp = this.c2r(value, $completion);
|
|
222
|
+
tmp.zc_1 = Unit_instance;
|
|
223
|
+
tmp.ad_1 = null;
|
|
224
|
+
return tmp.kd();
|
|
226
225
|
};
|
|
227
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
228
|
-
return this.
|
|
226
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).xd = function (p1, $completion) {
|
|
227
|
+
return this.b2r((!(p1 == null) ? isInterface(p1, KotlinxSerializationExtension) : false) ? p1 : THROW_CCE(), $completion);
|
|
229
228
|
};
|
|
230
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
231
|
-
var suspendResult = this.
|
|
229
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).kd = function () {
|
|
230
|
+
var suspendResult = this.zc_1;
|
|
232
231
|
$sm: do
|
|
233
232
|
try {
|
|
234
|
-
var tmp = this.
|
|
233
|
+
var tmp = this.xc_1;
|
|
235
234
|
switch (tmp) {
|
|
236
235
|
case 0:
|
|
237
|
-
this.
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
this.yc_1 = 3;
|
|
237
|
+
var tmp_0 = this;
|
|
238
|
+
tmp_0.g2s_1 = this.b2s_1;
|
|
239
|
+
var tmp_1 = this;
|
|
240
|
+
tmp_1.h2s_1 = this.f2s_1;
|
|
241
|
+
var tmp_2 = this;
|
|
242
|
+
tmp_2.i2s_1 = this.h2s_1;
|
|
243
|
+
this.xc_1 = 1;
|
|
244
|
+
suspendResult = this.i2s_1.p23(this.c2s_1, this.d2s_1, this.e2s_1, this);
|
|
240
245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
241
246
|
return suspendResult;
|
|
242
247
|
}
|
|
243
248
|
|
|
244
249
|
continue $sm;
|
|
245
250
|
case 1:
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
248
|
-
suspendResult = this.
|
|
251
|
+
this.j2s_1 = suspendResult;
|
|
252
|
+
this.xc_1 = 2;
|
|
253
|
+
suspendResult = this.g2s_1.l12(this.j2s_1, this);
|
|
249
254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
250
255
|
return suspendResult;
|
|
251
256
|
}
|
|
252
257
|
|
|
253
258
|
continue $sm;
|
|
254
259
|
case 2:
|
|
255
|
-
return
|
|
260
|
+
return Unit_instance;
|
|
256
261
|
case 3:
|
|
257
|
-
throw this.
|
|
262
|
+
throw this.ad_1;
|
|
258
263
|
}
|
|
259
264
|
} catch ($p) {
|
|
260
265
|
var e = $p;
|
|
261
|
-
if (this.
|
|
266
|
+
if (this.yc_1 === 3) {
|
|
262
267
|
throw e;
|
|
263
268
|
} else {
|
|
264
|
-
this.
|
|
265
|
-
this.
|
|
269
|
+
this.xc_1 = this.yc_1;
|
|
270
|
+
this.ad_1 = e;
|
|
266
271
|
}
|
|
267
272
|
}
|
|
268
273
|
while (true);
|
|
269
274
|
};
|
|
270
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
271
|
-
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.
|
|
272
|
-
i.
|
|
275
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).c2r = function (value, completion) {
|
|
276
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.b2s_1, this.c2s_1, this.d2s_1, this.e2s_1, completion);
|
|
277
|
+
i.f2s_1 = value;
|
|
273
278
|
return i;
|
|
274
279
|
};
|
|
275
|
-
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($
|
|
276
|
-
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($
|
|
280
|
+
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
281
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
|
|
277
282
|
var l = function (value, $completion) {
|
|
278
|
-
return i.
|
|
283
|
+
return i.b2r(value, $completion);
|
|
279
284
|
};
|
|
280
285
|
l.$arity = 1;
|
|
281
286
|
return l;
|
|
282
287
|
}
|
|
283
288
|
function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
|
|
284
289
|
CoroutineImpl.call(this, resultContinuation);
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
290
|
+
this.s2s_1 = _this__u8e3s4;
|
|
291
|
+
this.t2s_1 = collector;
|
|
287
292
|
}
|
|
288
|
-
protoOf($collectCOROUTINE$3).
|
|
289
|
-
var suspendResult = this.
|
|
293
|
+
protoOf($collectCOROUTINE$3).kd = function () {
|
|
294
|
+
var suspendResult = this.zc_1;
|
|
290
295
|
$sm: do
|
|
291
296
|
try {
|
|
292
|
-
var tmp = this.
|
|
297
|
+
var tmp = this.xc_1;
|
|
293
298
|
switch (tmp) {
|
|
294
299
|
case 0:
|
|
295
|
-
this.
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
300
|
+
this.yc_1 = 2;
|
|
301
|
+
var tmp_0 = this;
|
|
302
|
+
tmp_0.u2s_1 = this.t2s_1;
|
|
303
|
+
this.xc_1 = 1;
|
|
304
|
+
var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.u2s_1, this.s2s_1.w2s_1, this.s2s_1.x2s_1, this.s2s_1.y2s_1, null);
|
|
305
|
+
suspendResult = this.s2s_1.v2s_1.m12(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
299
306
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
300
307
|
return suspendResult;
|
|
301
308
|
}
|
|
302
309
|
|
|
303
310
|
continue $sm;
|
|
304
311
|
case 1:
|
|
305
|
-
return
|
|
312
|
+
return Unit_instance;
|
|
306
313
|
case 2:
|
|
307
|
-
throw this.
|
|
314
|
+
throw this.ad_1;
|
|
308
315
|
}
|
|
309
316
|
} catch ($p) {
|
|
310
317
|
var e = $p;
|
|
311
|
-
if (this.
|
|
318
|
+
if (this.yc_1 === 2) {
|
|
312
319
|
throw e;
|
|
313
320
|
} else {
|
|
314
|
-
this.
|
|
315
|
-
this.
|
|
321
|
+
this.xc_1 = this.yc_1;
|
|
322
|
+
this.ad_1 = e;
|
|
316
323
|
}
|
|
317
324
|
}
|
|
318
325
|
while (true);
|
|
319
326
|
};
|
|
320
327
|
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
321
|
-
var tmp0_subject = format;
|
|
322
328
|
var tmp;
|
|
323
|
-
if (isInterface(
|
|
324
|
-
var content = format.
|
|
329
|
+
if (isInterface(format, StringFormat)) {
|
|
330
|
+
var content = format.b27(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
325
331
|
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
326
332
|
} else {
|
|
327
|
-
if (isInterface(
|
|
328
|
-
var content_0 = format.
|
|
333
|
+
if (isInterface(format, BinaryFormat)) {
|
|
334
|
+
var content_0 = format.e27(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
329
335
|
tmp = new ByteArrayContent(content_0, contentType);
|
|
330
336
|
} else {
|
|
331
|
-
var
|
|
332
|
-
throw IllegalStateException_init_$Create$(toString(
|
|
337
|
+
var message = 'Unsupported format ' + format;
|
|
338
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
333
339
|
}
|
|
334
340
|
}
|
|
335
341
|
return tmp;
|
|
336
342
|
}
|
|
337
343
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
338
|
-
this.
|
|
344
|
+
this.z2s_1 = function_0;
|
|
339
345
|
}
|
|
340
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
341
|
-
|
|
342
|
-
return tmp0;
|
|
346
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).l12 = function (value, $completion) {
|
|
347
|
+
return this.z2s_1(value, $completion);
|
|
343
348
|
};
|
|
344
349
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
345
|
-
this.
|
|
350
|
+
this.a2t_1 = function_0;
|
|
346
351
|
}
|
|
347
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
348
|
-
|
|
349
|
-
return tmp0;
|
|
352
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).l12 = function (value, $completion) {
|
|
353
|
+
return this.a2t_1(value, $completion);
|
|
350
354
|
};
|
|
351
|
-
function _no_name_provided__qut3iv($
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
355
|
+
function _no_name_provided__qut3iv($this, $contentType, $charset, $typeInfo, $value) {
|
|
356
|
+
this.o2r_1 = $this;
|
|
357
|
+
this.p2r_1 = $contentType;
|
|
358
|
+
this.q2r_1 = $charset;
|
|
359
|
+
this.r2r_1 = $typeInfo;
|
|
360
|
+
this.s2r_1 = $value;
|
|
357
361
|
}
|
|
358
|
-
protoOf(_no_name_provided__qut3iv).
|
|
362
|
+
protoOf(_no_name_provided__qut3iv).b2t = function (collector, $completion) {
|
|
359
363
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
360
|
-
tmp.
|
|
361
|
-
tmp.
|
|
362
|
-
return tmp.
|
|
364
|
+
tmp.zc_1 = Unit_instance;
|
|
365
|
+
tmp.ad_1 = null;
|
|
366
|
+
return tmp.kd();
|
|
363
367
|
};
|
|
364
|
-
protoOf(_no_name_provided__qut3iv).
|
|
365
|
-
return this.
|
|
368
|
+
protoOf(_no_name_provided__qut3iv).m12 = function (collector, $completion) {
|
|
369
|
+
return this.b2t(collector, $completion);
|
|
366
370
|
};
|
|
367
371
|
function KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation) {
|
|
368
372
|
CoroutineImpl.call(this, resultContinuation);
|
|
369
373
|
}
|
|
370
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).
|
|
371
|
-
var tmp = this.
|
|
372
|
-
tmp.
|
|
373
|
-
tmp.
|
|
374
|
-
return tmp.
|
|
374
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).l2t = function (it, $completion) {
|
|
375
|
+
var tmp = this.m2t(it, $completion);
|
|
376
|
+
tmp.zc_1 = Unit_instance;
|
|
377
|
+
tmp.ad_1 = null;
|
|
378
|
+
return tmp.kd();
|
|
375
379
|
};
|
|
376
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).
|
|
377
|
-
return this.
|
|
380
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).xd = function (p1, $completion) {
|
|
381
|
+
return this.l2t((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
378
382
|
};
|
|
379
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).
|
|
380
|
-
var suspendResult = this.
|
|
383
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).kd = function () {
|
|
384
|
+
var suspendResult = this.zc_1;
|
|
381
385
|
$sm: do
|
|
382
386
|
try {
|
|
383
|
-
var tmp = this.
|
|
387
|
+
var tmp = this.xc_1;
|
|
384
388
|
if (tmp === 0) {
|
|
385
|
-
this.
|
|
386
|
-
return !(this.
|
|
389
|
+
this.yc_1 = 1;
|
|
390
|
+
return !(this.k2t_1 == null);
|
|
387
391
|
} else if (tmp === 1) {
|
|
388
|
-
throw this.
|
|
392
|
+
throw this.ad_1;
|
|
389
393
|
}
|
|
390
394
|
} catch ($p) {
|
|
391
395
|
var e = $p;
|
|
@@ -393,57 +397,57 @@
|
|
|
393
397
|
}
|
|
394
398
|
while (true);
|
|
395
399
|
};
|
|
396
|
-
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).
|
|
400
|
+
protoOf(KotlinxSerializationConverter$serializeNullable$slambda).m2t = function (it, completion) {
|
|
397
401
|
var i = new KotlinxSerializationConverter$serializeNullable$slambda(completion);
|
|
398
|
-
i.
|
|
402
|
+
i.k2t_1 = it;
|
|
399
403
|
return i;
|
|
400
404
|
};
|
|
401
405
|
function KotlinxSerializationConverter$serializeNullable$slambda_0(resultContinuation) {
|
|
402
406
|
var i = new KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation);
|
|
403
407
|
var l = function (it, $completion) {
|
|
404
|
-
return i.
|
|
408
|
+
return i.l2t(it, $completion);
|
|
405
409
|
};
|
|
406
410
|
l.$arity = 1;
|
|
407
411
|
return l;
|
|
408
412
|
}
|
|
409
|
-
function _no_name_provided__qut3iv_0($
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
this.
|
|
413
|
-
this.
|
|
413
|
+
function _no_name_provided__qut3iv_0($this, $charset, $typeInfo, $content) {
|
|
414
|
+
this.v2s_1 = $this;
|
|
415
|
+
this.w2s_1 = $charset;
|
|
416
|
+
this.x2s_1 = $typeInfo;
|
|
417
|
+
this.y2s_1 = $content;
|
|
414
418
|
}
|
|
415
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
419
|
+
protoOf(_no_name_provided__qut3iv_0).l25 = function (collector, $completion) {
|
|
416
420
|
var tmp = new $collectCOROUTINE$3(this, collector, $completion);
|
|
417
|
-
tmp.
|
|
418
|
-
tmp.
|
|
419
|
-
return tmp.
|
|
421
|
+
tmp.zc_1 = Unit_instance;
|
|
422
|
+
tmp.ad_1 = null;
|
|
423
|
+
return tmp.kd();
|
|
420
424
|
};
|
|
421
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
422
|
-
return this.
|
|
425
|
+
protoOf(_no_name_provided__qut3iv_0).m12 = function (collector, $completion) {
|
|
426
|
+
return this.l25(collector, $completion);
|
|
423
427
|
};
|
|
424
428
|
function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
|
|
425
|
-
this.
|
|
429
|
+
this.v2t_1 = $content;
|
|
426
430
|
CoroutineImpl.call(this, resultContinuation);
|
|
427
431
|
}
|
|
428
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
429
|
-
var tmp = this.
|
|
430
|
-
tmp.
|
|
431
|
-
tmp.
|
|
432
|
-
return tmp.
|
|
432
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).w25 = function (it, $completion) {
|
|
433
|
+
var tmp = this.x25(it, $completion);
|
|
434
|
+
tmp.zc_1 = Unit_instance;
|
|
435
|
+
tmp.ad_1 = null;
|
|
436
|
+
return tmp.kd();
|
|
433
437
|
};
|
|
434
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
435
|
-
return this.
|
|
438
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).xd = function (p1, $completion) {
|
|
439
|
+
return this.w25((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
436
440
|
};
|
|
437
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
438
|
-
var suspendResult = this.
|
|
441
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).kd = function () {
|
|
442
|
+
var suspendResult = this.zc_1;
|
|
439
443
|
$sm: do
|
|
440
444
|
try {
|
|
441
|
-
var tmp = this.
|
|
445
|
+
var tmp = this.xc_1;
|
|
442
446
|
if (tmp === 0) {
|
|
443
|
-
this.
|
|
444
|
-
return !(this.
|
|
447
|
+
this.yc_1 = 1;
|
|
448
|
+
return !(this.w2t_1 == null) ? true : this.v2t_1.s17();
|
|
445
449
|
} else if (tmp === 1) {
|
|
446
|
-
throw this.
|
|
450
|
+
throw this.ad_1;
|
|
447
451
|
}
|
|
448
452
|
} catch ($p) {
|
|
449
453
|
var e = $p;
|
|
@@ -451,38 +455,38 @@
|
|
|
451
455
|
}
|
|
452
456
|
while (true);
|
|
453
457
|
};
|
|
454
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
455
|
-
var i = new KotlinxSerializationConverter$deserialize$slambda(this.
|
|
456
|
-
i.
|
|
458
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).x25 = function (it, completion) {
|
|
459
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda(this.v2t_1, completion);
|
|
460
|
+
i.w2t_1 = it;
|
|
457
461
|
return i;
|
|
458
462
|
};
|
|
459
463
|
function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
|
|
460
464
|
var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
|
|
461
465
|
var l = function (it, $completion) {
|
|
462
|
-
return i.
|
|
466
|
+
return i.w25(it, $completion);
|
|
463
467
|
};
|
|
464
468
|
l.$arity = 1;
|
|
465
469
|
return l;
|
|
466
470
|
}
|
|
467
471
|
function $serializeNullableCOROUTINE$0(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
468
472
|
CoroutineImpl.call(this, resultContinuation);
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
473
|
+
this.f2u_1 = _this__u8e3s4;
|
|
474
|
+
this.g2u_1 = contentType;
|
|
475
|
+
this.h2u_1 = charset;
|
|
476
|
+
this.i2u_1 = typeInfo;
|
|
477
|
+
this.j2u_1 = value;
|
|
474
478
|
}
|
|
475
|
-
protoOf($serializeNullableCOROUTINE$0).
|
|
476
|
-
var suspendResult = this.
|
|
479
|
+
protoOf($serializeNullableCOROUTINE$0).kd = function () {
|
|
480
|
+
var suspendResult = this.zc_1;
|
|
477
481
|
$sm: do
|
|
478
482
|
try {
|
|
479
|
-
var tmp = this.
|
|
483
|
+
var tmp = this.xc_1;
|
|
480
484
|
switch (tmp) {
|
|
481
485
|
case 0:
|
|
482
|
-
this.
|
|
483
|
-
this.
|
|
484
|
-
var
|
|
485
|
-
var tmp_0 = new _no_name_provided__qut3iv(
|
|
486
|
+
this.yc_1 = 2;
|
|
487
|
+
this.xc_1 = 1;
|
|
488
|
+
var this_0 = asFlow(this.f2u_1.l2u_1);
|
|
489
|
+
var tmp_0 = new _no_name_provided__qut3iv(this_0, this.g2u_1, this.h2u_1, this.i2u_1, this.j2u_1);
|
|
486
490
|
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serializeNullable$slambda_0(null), this);
|
|
487
491
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
488
492
|
return suspendResult;
|
|
@@ -495,12 +499,12 @@
|
|
|
495
499
|
return fromExtension;
|
|
496
500
|
var tmp_1;
|
|
497
501
|
try {
|
|
498
|
-
tmp_1 = serializerForTypeInfo(this.
|
|
502
|
+
tmp_1 = serializerForTypeInfo(this.f2u_1.k2u_1.d27(), this.i2u_1);
|
|
499
503
|
} catch ($p) {
|
|
500
504
|
var tmp_2;
|
|
501
505
|
if ($p instanceof SerializationException) {
|
|
502
506
|
var cause = $p;
|
|
503
|
-
tmp_2 = guessSerializer(this.
|
|
507
|
+
tmp_2 = guessSerializer(this.j2u_1, this.f2u_1.k2u_1.d27());
|
|
504
508
|
} else {
|
|
505
509
|
throw $p;
|
|
506
510
|
}
|
|
@@ -508,52 +512,52 @@
|
|
|
508
512
|
}
|
|
509
513
|
|
|
510
514
|
var serializer = tmp_1;
|
|
511
|
-
return serializeContent(this.
|
|
515
|
+
return serializeContent(this.f2u_1, serializer, this.f2u_1.k2u_1, this.j2u_1, this.g2u_1, this.h2u_1);
|
|
512
516
|
case 2:
|
|
513
|
-
throw this.
|
|
517
|
+
throw this.ad_1;
|
|
514
518
|
}
|
|
515
519
|
} catch ($p) {
|
|
516
520
|
var e = $p;
|
|
517
|
-
if (this.
|
|
521
|
+
if (this.yc_1 === 2) {
|
|
518
522
|
throw e;
|
|
519
523
|
} else {
|
|
520
|
-
this.
|
|
521
|
-
this.
|
|
524
|
+
this.xc_1 = this.yc_1;
|
|
525
|
+
this.ad_1 = e;
|
|
522
526
|
}
|
|
523
527
|
}
|
|
524
528
|
while (true);
|
|
525
529
|
};
|
|
526
530
|
function $deserializeCOROUTINE$1(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
527
531
|
CoroutineImpl.call(this, resultContinuation);
|
|
528
|
-
this.
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
+
this.u2u_1 = _this__u8e3s4;
|
|
533
|
+
this.v2u_1 = charset;
|
|
534
|
+
this.w2u_1 = typeInfo;
|
|
535
|
+
this.x2u_1 = content;
|
|
532
536
|
}
|
|
533
|
-
protoOf($deserializeCOROUTINE$1).
|
|
534
|
-
var suspendResult = this.
|
|
537
|
+
protoOf($deserializeCOROUTINE$1).kd = function () {
|
|
538
|
+
var suspendResult = this.zc_1;
|
|
535
539
|
$sm: do
|
|
536
540
|
try {
|
|
537
|
-
var tmp = this.
|
|
541
|
+
var tmp = this.xc_1;
|
|
538
542
|
switch (tmp) {
|
|
539
543
|
case 0:
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
var
|
|
543
|
-
var tmp_0 = new _no_name_provided__qut3iv_0(
|
|
544
|
-
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.
|
|
544
|
+
this.yc_1 = 5;
|
|
545
|
+
this.xc_1 = 1;
|
|
546
|
+
var this_0 = asFlow(this.u2u_1.l2u_1);
|
|
547
|
+
var tmp_0 = new _no_name_provided__qut3iv_0(this_0, this.v2u_1, this.w2u_1, this.x2u_1);
|
|
548
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.x2u_1, null), this);
|
|
545
549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
550
|
return suspendResult;
|
|
547
551
|
}
|
|
548
552
|
|
|
549
553
|
continue $sm;
|
|
550
554
|
case 1:
|
|
551
|
-
this.
|
|
552
|
-
if (!(this.
|
|
553
|
-
return this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
suspendResult = this.
|
|
555
|
+
this.y2u_1 = suspendResult;
|
|
556
|
+
if (!(this.y2u_1 == null) ? true : this.x2u_1.s17())
|
|
557
|
+
return this.y2u_1;
|
|
558
|
+
this.z2u_1 = serializerForTypeInfo(this.u2u_1.k2u_1.d27(), this.w2u_1);
|
|
559
|
+
this.xc_1 = 2;
|
|
560
|
+
suspendResult = this.x2u_1.w1c(VOID, this);
|
|
557
561
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
558
562
|
return suspendResult;
|
|
559
563
|
}
|
|
@@ -561,163 +565,149 @@
|
|
|
561
565
|
continue $sm;
|
|
562
566
|
case 2:
|
|
563
567
|
var contentPacket = suspendResult;
|
|
564
|
-
this.
|
|
565
|
-
var tmp0_subject = this.
|
|
568
|
+
this.yc_1 = 3;
|
|
569
|
+
var tmp0_subject = this.u2u_1.k2u_1;
|
|
566
570
|
var tmp_1;
|
|
567
571
|
if (isInterface(tmp0_subject, StringFormat)) {
|
|
568
|
-
tmp_1 = this.
|
|
572
|
+
tmp_1 = this.u2u_1.k2u_1.c27(this.z2u_1, readText(contentPacket, this.v2u_1));
|
|
569
573
|
} else {
|
|
570
574
|
if (isInterface(tmp0_subject, BinaryFormat)) {
|
|
571
|
-
tmp_1 = this.
|
|
575
|
+
tmp_1 = this.u2u_1.k2u_1.f27(this.z2u_1, readBytes(contentPacket));
|
|
572
576
|
} else {
|
|
573
577
|
discard(contentPacket);
|
|
574
|
-
var
|
|
575
|
-
throw IllegalStateException_init_$Create$(toString(
|
|
578
|
+
var message = 'Unsupported format ' + this.u2u_1.k2u_1;
|
|
579
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
576
580
|
}
|
|
577
581
|
}
|
|
578
582
|
|
|
579
583
|
return tmp_1;
|
|
580
584
|
case 3:
|
|
581
|
-
this.
|
|
582
|
-
var tmp_2 = this.
|
|
585
|
+
this.yc_1 = 5;
|
|
586
|
+
var tmp_2 = this.ad_1;
|
|
583
587
|
if (tmp_2 instanceof Error) {
|
|
584
|
-
var cause = this.
|
|
588
|
+
var cause = this.ad_1;
|
|
585
589
|
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
586
590
|
} else {
|
|
587
|
-
throw this.
|
|
591
|
+
throw this.ad_1;
|
|
588
592
|
}
|
|
589
593
|
|
|
590
|
-
break;
|
|
591
594
|
case 4:
|
|
592
|
-
this.
|
|
593
|
-
return
|
|
595
|
+
this.yc_1 = 5;
|
|
596
|
+
return Unit_instance;
|
|
594
597
|
case 5:
|
|
595
|
-
throw this.
|
|
598
|
+
throw this.ad_1;
|
|
596
599
|
}
|
|
597
600
|
} catch ($p) {
|
|
598
601
|
var e = $p;
|
|
599
|
-
if (this.
|
|
602
|
+
if (this.yc_1 === 5) {
|
|
600
603
|
throw e;
|
|
601
604
|
} else {
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
605
|
+
this.xc_1 = this.yc_1;
|
|
606
|
+
this.ad_1 = e;
|
|
604
607
|
}
|
|
605
608
|
}
|
|
606
609
|
while (true);
|
|
607
610
|
};
|
|
608
611
|
function KotlinxSerializationConverter(format) {
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
612
|
+
this.k2u_1 = format;
|
|
613
|
+
this.l2u_1 = extensions(this.k2u_1);
|
|
611
614
|
// Inline function 'kotlin.require' call
|
|
612
615
|
var tmp;
|
|
613
|
-
var tmp_0 = this.
|
|
616
|
+
var tmp_0 = this.k2u_1;
|
|
614
617
|
if (isInterface(tmp_0, BinaryFormat)) {
|
|
615
618
|
tmp = true;
|
|
616
619
|
} else {
|
|
617
|
-
var tmp_1 = this.
|
|
620
|
+
var tmp_1 = this.k2u_1;
|
|
618
621
|
tmp = isInterface(tmp_1, StringFormat);
|
|
619
622
|
}
|
|
620
|
-
var tmp0_require = tmp;
|
|
621
623
|
// Inline function 'kotlin.contracts.contract' call
|
|
622
|
-
if (!
|
|
623
|
-
var tmp$ret$0;
|
|
624
|
+
if (!tmp) {
|
|
624
625
|
// Inline function 'io.ktor.serialization.kotlinx.KotlinxSerializationConverter.<anonymous>' call
|
|
625
|
-
|
|
626
|
-
var message = tmp$ret$0;
|
|
626
|
+
var message = 'Only binary and string formats are supported, ' + this.k2u_1 + ' is not supported.';
|
|
627
627
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
protoOf(KotlinxSerializationConverter).
|
|
631
|
-
|
|
632
|
-
return tmp0;
|
|
630
|
+
protoOf(KotlinxSerializationConverter).a2v = function (contentType, charset, typeInfo, value, $completion) {
|
|
631
|
+
return this.b2v(contentType, charset, typeInfo, value, $completion);
|
|
633
632
|
};
|
|
634
|
-
protoOf(KotlinxSerializationConverter).
|
|
635
|
-
return this.
|
|
633
|
+
protoOf(KotlinxSerializationConverter).n23 = function (contentType, charset, typeInfo, value, $completion) {
|
|
634
|
+
return this.a2v(contentType, charset, typeInfo, value, $completion);
|
|
636
635
|
};
|
|
637
|
-
protoOf(KotlinxSerializationConverter).
|
|
636
|
+
protoOf(KotlinxSerializationConverter).b2v = function (contentType, charset, typeInfo, value, $completion) {
|
|
638
637
|
var tmp = new $serializeNullableCOROUTINE$0(this, contentType, charset, typeInfo, value, $completion);
|
|
639
|
-
tmp.
|
|
640
|
-
tmp.
|
|
641
|
-
return tmp.
|
|
638
|
+
tmp.zc_1 = Unit_instance;
|
|
639
|
+
tmp.ad_1 = null;
|
|
640
|
+
return tmp.kd();
|
|
642
641
|
};
|
|
643
|
-
protoOf(KotlinxSerializationConverter).
|
|
644
|
-
return this.
|
|
642
|
+
protoOf(KotlinxSerializationConverter).o23 = function (contentType, charset, typeInfo, value, $completion) {
|
|
643
|
+
return this.b2v(contentType, charset, typeInfo, value, $completion);
|
|
645
644
|
};
|
|
646
|
-
protoOf(KotlinxSerializationConverter).
|
|
645
|
+
protoOf(KotlinxSerializationConverter).p23 = function (charset, typeInfo, content, $completion) {
|
|
647
646
|
var tmp = new $deserializeCOROUTINE$1(this, charset, typeInfo, content, $completion);
|
|
648
|
-
tmp.
|
|
649
|
-
tmp.
|
|
650
|
-
return tmp.
|
|
647
|
+
tmp.zc_1 = Unit_instance;
|
|
648
|
+
tmp.ad_1 = null;
|
|
649
|
+
return tmp.kd();
|
|
651
650
|
};
|
|
652
651
|
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
653
652
|
var module_0 = _this__u8e3s4;
|
|
654
|
-
var tmp0_safe_receiver = typeInfo.
|
|
653
|
+
var tmp0_safe_receiver = typeInfo.u1q_1;
|
|
655
654
|
var tmp;
|
|
656
655
|
if (tmp0_safe_receiver == null) {
|
|
657
656
|
tmp = null;
|
|
658
657
|
} else {
|
|
659
|
-
var tmp$ret$1;
|
|
660
658
|
// Inline function 'kotlin.let' call
|
|
661
659
|
// Inline function 'kotlin.contracts.contract' call
|
|
662
|
-
var tmp$ret$0;
|
|
663
660
|
// Inline function 'io.ktor.serialization.kotlinx.serializerForTypeInfo.<anonymous>' call
|
|
664
661
|
var tmp_0;
|
|
665
|
-
if (tmp0_safe_receiver.
|
|
662
|
+
if (tmp0_safe_receiver.k7().e1()) {
|
|
666
663
|
tmp_0 = null;
|
|
667
664
|
} else {
|
|
668
665
|
tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
669
666
|
}
|
|
670
|
-
tmp
|
|
671
|
-
tmp$ret$1 = tmp$ret$0;
|
|
672
|
-
tmp = tmp$ret$1;
|
|
667
|
+
tmp = tmp_0;
|
|
673
668
|
}
|
|
674
669
|
var tmp2_elvis_lhs = tmp;
|
|
675
670
|
var tmp_1;
|
|
676
671
|
if (tmp2_elvis_lhs == null) {
|
|
677
|
-
var tmp1_safe_receiver = module_0.
|
|
672
|
+
var tmp1_safe_receiver = module_0.i27(typeInfo.s1q_1);
|
|
678
673
|
tmp_1 = tmp1_safe_receiver == null ? null : maybeNullable(tmp1_safe_receiver, typeInfo);
|
|
679
674
|
} else {
|
|
680
675
|
tmp_1 = tmp2_elvis_lhs;
|
|
681
676
|
}
|
|
682
677
|
var tmp3_elvis_lhs = tmp_1;
|
|
683
|
-
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.
|
|
678
|
+
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.s1q_1), typeInfo) : tmp3_elvis_lhs;
|
|
684
679
|
}
|
|
685
680
|
function guessSerializer(value, module_0) {
|
|
686
|
-
var tmp0_subject = value;
|
|
687
681
|
var tmp;
|
|
688
|
-
if (
|
|
689
|
-
tmp = get_nullable(serializer_0(
|
|
682
|
+
if (value == null) {
|
|
683
|
+
tmp = get_nullable(serializer_0(StringCompanionObject_instance));
|
|
690
684
|
} else {
|
|
691
|
-
if (!(
|
|
685
|
+
if (!(value == null) ? isInterface(value, List) : false) {
|
|
692
686
|
tmp = ListSerializer(elementSerializer(value, module_0));
|
|
693
687
|
} else {
|
|
694
|
-
if (!(
|
|
688
|
+
if (!(value == null) ? isArray(value) : false) {
|
|
695
689
|
var tmp1_safe_receiver = firstOrNull_0(value);
|
|
696
690
|
var tmp_0;
|
|
697
691
|
if (tmp1_safe_receiver == null) {
|
|
698
692
|
tmp_0 = null;
|
|
699
693
|
} else {
|
|
700
|
-
var tmp$ret$1;
|
|
701
694
|
// Inline function 'kotlin.let' call
|
|
702
695
|
// Inline function 'kotlin.contracts.contract' call
|
|
703
|
-
var tmp$ret$0;
|
|
704
696
|
// Inline function 'io.ktor.serialization.kotlinx.guessSerializer.<anonymous>' call
|
|
705
|
-
|
|
706
|
-
tmp$ret$1 = tmp$ret$0;
|
|
707
|
-
tmp_0 = tmp$ret$1;
|
|
697
|
+
tmp_0 = guessSerializer(tmp1_safe_receiver, module_0);
|
|
708
698
|
}
|
|
709
699
|
var tmp2_elvis_lhs = tmp_0;
|
|
710
|
-
tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(
|
|
700
|
+
tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(StringCompanionObject_instance)) : tmp2_elvis_lhs;
|
|
711
701
|
} else {
|
|
712
|
-
if (!(
|
|
702
|
+
if (!(value == null) ? isInterface(value, Set) : false) {
|
|
713
703
|
tmp = SetSerializer(elementSerializer(value, module_0));
|
|
714
704
|
} else {
|
|
715
|
-
if (!(
|
|
716
|
-
var keySerializer = elementSerializer(value.
|
|
717
|
-
var valueSerializer = elementSerializer(value.
|
|
705
|
+
if (!(value == null) ? isInterface(value, Map) : false) {
|
|
706
|
+
var keySerializer = elementSerializer(value.m2(), module_0);
|
|
707
|
+
var valueSerializer = elementSerializer(value.n2(), module_0);
|
|
718
708
|
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
719
709
|
} else {
|
|
720
|
-
var tmp3_elvis_lhs = module_0.
|
|
710
|
+
var tmp3_elvis_lhs = module_0.i27(getKClassFromExpression(value));
|
|
721
711
|
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
722
712
|
}
|
|
723
713
|
}
|
|
@@ -729,8 +719,8 @@
|
|
|
729
719
|
}
|
|
730
720
|
function maybeNullable(_this__u8e3s4, typeInfo) {
|
|
731
721
|
var tmp;
|
|
732
|
-
var tmp0_safe_receiver = typeInfo.
|
|
733
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
722
|
+
var tmp0_safe_receiver = typeInfo.u1q_1;
|
|
723
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l7()) === true) {
|
|
734
724
|
tmp = get_nullable(_this__u8e3s4);
|
|
735
725
|
} else {
|
|
736
726
|
tmp = _this__u8e3s4;
|
|
@@ -738,75 +728,58 @@
|
|
|
738
728
|
return tmp;
|
|
739
729
|
}
|
|
740
730
|
function elementSerializer(_this__u8e3s4, module_0) {
|
|
741
|
-
var tmp$ret$4;
|
|
742
731
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
743
|
-
var tmp$ret$2;
|
|
744
732
|
// Inline function 'kotlin.collections.map' call
|
|
745
|
-
var
|
|
746
|
-
var tmp$ret$1;
|
|
733
|
+
var this_0 = filterNotNull(_this__u8e3s4);
|
|
747
734
|
// Inline function 'kotlin.collections.mapTo' call
|
|
748
|
-
var
|
|
749
|
-
var tmp0_iterator =
|
|
750
|
-
while (tmp0_iterator.
|
|
751
|
-
var item = tmp0_iterator.
|
|
752
|
-
var tmp$ret$0;
|
|
735
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
736
|
+
var tmp0_iterator = this_0.v();
|
|
737
|
+
while (tmp0_iterator.w()) {
|
|
738
|
+
var item = tmp0_iterator.y();
|
|
753
739
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
754
|
-
tmp$ret$0 = guessSerializer(item, module_0);
|
|
755
|
-
|
|
740
|
+
var tmp$ret$0 = guessSerializer(item, module_0);
|
|
741
|
+
destination.s(tmp$ret$0);
|
|
756
742
|
}
|
|
757
|
-
tmp$ret$1 = tmp0_mapTo;
|
|
758
|
-
tmp$ret$2 = tmp$ret$1;
|
|
759
|
-
var tmp2_distinctBy = tmp$ret$2;
|
|
760
743
|
var set = HashSet_init_$Create$();
|
|
761
744
|
var list = ArrayList_init_$Create$();
|
|
762
|
-
var tmp0_iterator_0 =
|
|
763
|
-
while (tmp0_iterator_0.
|
|
764
|
-
var e = tmp0_iterator_0.
|
|
765
|
-
var tmp$ret$3;
|
|
745
|
+
var tmp0_iterator_0 = destination.v();
|
|
746
|
+
while (tmp0_iterator_0.w()) {
|
|
747
|
+
var e = tmp0_iterator_0.y();
|
|
766
748
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
list.a(e);
|
|
749
|
+
var key = e.y25().z26();
|
|
750
|
+
if (set.s(key)) {
|
|
751
|
+
list.s(e);
|
|
771
752
|
}
|
|
772
753
|
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
if (serializers.i() > 1) {
|
|
754
|
+
var serializers = list;
|
|
755
|
+
if (serializers.n() > 1) {
|
|
776
756
|
// Inline function 'kotlin.error' call
|
|
777
|
-
var tmp$ret$7;
|
|
778
757
|
// Inline function 'kotlin.collections.map' call
|
|
779
|
-
var tmp$ret$6;
|
|
780
758
|
// Inline function 'kotlin.collections.mapTo' call
|
|
781
|
-
var
|
|
782
|
-
var tmp0_iterator_1 = serializers.
|
|
783
|
-
while (tmp0_iterator_1.
|
|
784
|
-
var item_0 = tmp0_iterator_1.
|
|
785
|
-
var tmp$ret$5;
|
|
759
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
760
|
+
var tmp0_iterator_1 = serializers.v();
|
|
761
|
+
while (tmp0_iterator_1.w()) {
|
|
762
|
+
var item_0 = tmp0_iterator_1.y();
|
|
786
763
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
787
|
-
tmp$ret$5 = item_0.
|
|
788
|
-
|
|
764
|
+
var tmp$ret$5 = item_0.y25().z26();
|
|
765
|
+
destination_0.s(tmp$ret$5);
|
|
789
766
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
var tmp4_error = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + tmp$ret$7);
|
|
793
|
-
throw IllegalStateException_init_$Create$(toString(tmp4_error));
|
|
767
|
+
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + destination_0);
|
|
768
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
794
769
|
}
|
|
795
770
|
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
796
|
-
var selected = tmp0_elvis_lhs == null ? serializer_0(
|
|
797
|
-
if (selected.
|
|
771
|
+
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
772
|
+
if (selected.y25().l27()) {
|
|
798
773
|
return selected;
|
|
799
774
|
}
|
|
800
|
-
if (isInterface(selected, KSerializer))
|
|
801
|
-
selected;
|
|
802
|
-
else
|
|
775
|
+
if (!isInterface(selected, KSerializer))
|
|
803
776
|
THROW_CCE();
|
|
804
777
|
var tmp$ret$8;
|
|
805
778
|
$l$block_0: {
|
|
806
779
|
// Inline function 'kotlin.collections.any' call
|
|
807
780
|
var tmp;
|
|
808
781
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
809
|
-
tmp = _this__u8e3s4.
|
|
782
|
+
tmp = _this__u8e3s4.e1();
|
|
810
783
|
} else {
|
|
811
784
|
tmp = false;
|
|
812
785
|
}
|
|
@@ -814,13 +787,11 @@
|
|
|
814
787
|
tmp$ret$8 = false;
|
|
815
788
|
break $l$block_0;
|
|
816
789
|
}
|
|
817
|
-
var tmp0_iterator_2 = _this__u8e3s4.
|
|
818
|
-
while (tmp0_iterator_2.
|
|
819
|
-
var element = tmp0_iterator_2.
|
|
820
|
-
var tmp$ret$9;
|
|
790
|
+
var tmp0_iterator_2 = _this__u8e3s4.v();
|
|
791
|
+
while (tmp0_iterator_2.w()) {
|
|
792
|
+
var element = tmp0_iterator_2.y();
|
|
821
793
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
822
|
-
|
|
823
|
-
if (tmp$ret$9) {
|
|
794
|
+
if (element == null) {
|
|
824
795
|
tmp$ret$8 = true;
|
|
825
796
|
break $l$block_0;
|
|
826
797
|
}
|
|
@@ -840,6 +811,6 @@
|
|
|
840
811
|
_.$_$.a = serialization;
|
|
841
812
|
//endregion
|
|
842
813
|
return _;
|
|
843
|
-
}(module.exports, require('./kotlin-kotlin-stdlib
|
|
814
|
+
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-serialization.js')));
|
|
844
815
|
|
|
845
816
|
//# sourceMappingURL=ktor-ktor-serialization-kotlinx.js.map
|