@doordeck/doordeck-headless-sdk 0.149.0 → 0.152.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/Kermit-kermit-core.js +65 -65
- package/kotlin/Kermit-kermit.js +9 -9
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +59 -59
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +25 -25
- package/kotlin/doordeck-sdk.d.ts +1 -1
- package/kotlin/doordeck-sdk.js +13870 -15047
- package/kotlin/kotlin-kotlin-stdlib.js +4885 -4837
- package/kotlin/kotlinx-atomicfu.js +92 -88
- package/kotlin/kotlinx-coroutines-core.js +2871 -2878
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +71 -71
- package/kotlin/kotlinx-io-kotlinx-io-core.js +697 -676
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2632 -2628
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1841 -1829
- package/kotlin/ktor-ktor-client-auth.js +493 -512
- package/kotlin/ktor-ktor-client-content-negotiation.js +300 -308
- package/kotlin/ktor-ktor-client-core.js +3260 -3343
- package/kotlin/ktor-ktor-client-logging.js +1267 -1301
- package/kotlin/ktor-ktor-events.js +18 -18
- package/kotlin/ktor-ktor-http-cio.js +724 -719
- package/kotlin/ktor-ktor-http.js +1171 -1166
- package/kotlin/ktor-ktor-io.js +1413 -1440
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/kotlin/ktor-ktor-serialization-kotlinx.js +295 -311
- package/kotlin/ktor-ktor-serialization.js +128 -136
- package/kotlin/ktor-ktor-utils.js +1128 -1129
- package/kotlin/ktor-ktor-websockets.js +68 -68
- package/package.json +3 -2
|
@@ -1,29 +1,29 @@
|
|
|
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_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_serialization) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
9
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
11
|
-
var VOID = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
13
|
-
var toString = kotlin_kotlin.$_$.
|
|
14
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
4
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
6
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.zb;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.yf;
|
|
9
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.eb;
|
|
11
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
12
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.bb;
|
|
13
|
+
var toString = kotlin_kotlin.$_$.cc;
|
|
14
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
15
15
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n2;
|
|
16
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
16
|
+
var isInterface = kotlin_kotlin.$_$.ob;
|
|
17
17
|
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.m;
|
|
18
18
|
var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l2;
|
|
19
19
|
var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.y1;
|
|
20
20
|
var TextContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
21
21
|
var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s2;
|
|
22
|
-
var equals = kotlin_kotlin.$_$.
|
|
23
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
22
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
23
|
+
var FunctionAdapter = kotlin_kotlin.$_$.fa;
|
|
24
24
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
25
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.ya;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.za;
|
|
27
27
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
28
28
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
29
29
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
|
|
@@ -33,28 +33,28 @@
|
|
|
33
33
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
34
34
|
var readText = kotlin_io_ktor_ktor_io.$_$.a1;
|
|
35
35
|
var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
36
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
36
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
37
37
|
var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2;
|
|
38
38
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2;
|
|
39
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
39
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.pc;
|
|
40
40
|
var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
41
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
41
|
+
var KtMap = kotlin_kotlin.$_$.j5;
|
|
42
42
|
var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
43
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
44
|
-
var firstOrNull_0 = kotlin_kotlin.$_$.
|
|
45
|
-
var StringCompanionObject_instance = kotlin_kotlin.$_$.
|
|
43
|
+
var KtSet = kotlin_kotlin.$_$.p5;
|
|
44
|
+
var firstOrNull_0 = kotlin_kotlin.$_$.u6;
|
|
45
|
+
var StringCompanionObject_instance = kotlin_kotlin.$_$.m4;
|
|
46
46
|
var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
47
47
|
var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
48
|
-
var isArray = kotlin_kotlin.$_$.
|
|
49
|
-
var KtList = kotlin_kotlin.$_$.
|
|
48
|
+
var isArray = kotlin_kotlin.$_$.gb;
|
|
49
|
+
var KtList = kotlin_kotlin.$_$.g5;
|
|
50
50
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
51
|
-
var filterNotNull = kotlin_kotlin.$_$.
|
|
52
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
53
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var HashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var singleOrNull = kotlin_kotlin.$_$.
|
|
56
|
-
var Collection = kotlin_kotlin.$_$.
|
|
57
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
51
|
+
var filterNotNull = kotlin_kotlin.$_$.s6;
|
|
52
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u5;
|
|
53
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
54
|
+
var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
55
|
+
var singleOrNull = kotlin_kotlin.$_$.x7;
|
|
56
|
+
var Collection = kotlin_kotlin.$_$.b5;
|
|
57
|
+
var emptyList = kotlin_kotlin.$_$.o6;
|
|
58
58
|
//endregion
|
|
59
59
|
//region block: pre-declaration
|
|
60
60
|
initMetadataForLambda(KotlinxSerializationConverter$serialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -77,67 +77,61 @@
|
|
|
77
77
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
78
78
|
var destination = ArrayList_init_$Create$();
|
|
79
79
|
// Inline function 'kotlin.collections.forEach' call
|
|
80
|
-
var _iterator__ex2g4s = tmp0.
|
|
81
|
-
while (_iterator__ex2g4s.
|
|
82
|
-
var element = _iterator__ex2g4s.
|
|
83
|
-
var tmp0_safe_receiver = element.
|
|
80
|
+
var _iterator__ex2g4s = tmp0.r();
|
|
81
|
+
while (_iterator__ex2g4s.s()) {
|
|
82
|
+
var element = _iterator__ex2g4s.t();
|
|
83
|
+
var tmp0_safe_receiver = element.w5k(format);
|
|
84
84
|
if (tmp0_safe_receiver == null)
|
|
85
85
|
null;
|
|
86
86
|
else {
|
|
87
87
|
// Inline function 'kotlin.let' call
|
|
88
|
-
destination.
|
|
88
|
+
destination.p(tmp0_safe_receiver);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
return destination;
|
|
92
92
|
}
|
|
93
93
|
function serialization(_this__u8e3s4, contentType, format) {
|
|
94
|
-
_this__u8e3s4.
|
|
94
|
+
_this__u8e3s4.z54(contentType, new KotlinxSerializationConverter(format));
|
|
95
95
|
}
|
|
96
96
|
function KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
97
|
+
this.f5l_1 = $$this$unsafeFlow;
|
|
98
|
+
this.g5l_1 = $contentType;
|
|
99
|
+
this.h5l_1 = $charset;
|
|
100
|
+
this.i5l_1 = $typeInfo;
|
|
101
|
+
this.j5l_1 = $value;
|
|
102
102
|
CoroutineImpl.call(this, resultContinuation);
|
|
103
103
|
}
|
|
104
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
105
|
-
var tmp = this.
|
|
106
|
-
tmp.
|
|
107
|
-
tmp.
|
|
108
|
-
return tmp.
|
|
104
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).p55 = function (value, $completion) {
|
|
105
|
+
var tmp = this.q55(value, $completion);
|
|
106
|
+
tmp.w8_1 = Unit_instance;
|
|
107
|
+
tmp.x8_1 = null;
|
|
108
|
+
return tmp.c9();
|
|
109
109
|
};
|
|
110
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
111
|
-
return this.
|
|
110
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).o9 = function (p1, $completion) {
|
|
111
|
+
return this.p55((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
112
112
|
};
|
|
113
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
114
|
-
var suspendResult = this.
|
|
113
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).c9 = function () {
|
|
114
|
+
var suspendResult = this.w8_1;
|
|
115
115
|
$sm: do
|
|
116
116
|
try {
|
|
117
|
-
var tmp = this.
|
|
117
|
+
var tmp = this.u8_1;
|
|
118
118
|
switch (tmp) {
|
|
119
119
|
case 0:
|
|
120
|
-
this.
|
|
121
|
-
var
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.
|
|
126
|
-
this.q5l_1 = this.o5l_1;
|
|
127
|
-
var tmp_2 = this;
|
|
128
|
-
tmp_2.r5l_1 = this.q5l_1;
|
|
129
|
-
this.s5l_1 = this.r5l_1;
|
|
130
|
-
this.n9_1 = 1;
|
|
131
|
-
suspendResult = this.s5l_1.x5k(this.i5l_1, this.j5l_1, this.k5l_1, this.l5l_1, this);
|
|
120
|
+
this.v8_1 = 3;
|
|
121
|
+
var tmp0 = this.f5l_1;
|
|
122
|
+
var tmp2 = this.k5l_1;
|
|
123
|
+
this.l5l_1 = tmp0;
|
|
124
|
+
this.u8_1 = 1;
|
|
125
|
+
suspendResult = tmp2.p59(this.g5l_1, this.h5l_1, this.i5l_1, this.j5l_1, this);
|
|
132
126
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
133
127
|
return suspendResult;
|
|
134
128
|
}
|
|
135
129
|
|
|
136
130
|
continue $sm;
|
|
137
131
|
case 1:
|
|
138
|
-
|
|
139
|
-
this.
|
|
140
|
-
suspendResult = this.
|
|
132
|
+
var ARGUMENT = suspendResult;
|
|
133
|
+
this.u8_1 = 2;
|
|
134
|
+
suspendResult = this.l5l_1.d1c(ARGUMENT, this);
|
|
141
135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
142
136
|
return suspendResult;
|
|
143
137
|
}
|
|
@@ -146,51 +140,49 @@
|
|
|
146
140
|
case 2:
|
|
147
141
|
return Unit_instance;
|
|
148
142
|
case 3:
|
|
149
|
-
throw this.
|
|
143
|
+
throw this.x8_1;
|
|
150
144
|
}
|
|
151
145
|
} catch ($p) {
|
|
152
146
|
var e = $p;
|
|
153
|
-
if (this.
|
|
147
|
+
if (this.v8_1 === 3) {
|
|
154
148
|
throw e;
|
|
155
149
|
} else {
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
150
|
+
this.u8_1 = this.v8_1;
|
|
151
|
+
this.x8_1 = e;
|
|
158
152
|
}
|
|
159
153
|
}
|
|
160
154
|
while (true);
|
|
161
155
|
};
|
|
162
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
163
|
-
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.
|
|
164
|
-
i.
|
|
156
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).q55 = function (value, completion) {
|
|
157
|
+
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.f5l_1, this.g5l_1, this.h5l_1, this.i5l_1, this.j5l_1, completion);
|
|
158
|
+
i.k5l_1 = value;
|
|
165
159
|
return i;
|
|
166
160
|
};
|
|
167
161
|
function KotlinxSerializationConverter$serialize$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
168
162
|
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
169
163
|
var l = function (value, $completion) {
|
|
170
|
-
return i.
|
|
164
|
+
return i.p55(value, $completion);
|
|
171
165
|
};
|
|
172
166
|
l.$arity = 1;
|
|
173
167
|
return l;
|
|
174
168
|
}
|
|
175
169
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
176
170
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
171
|
+
this.u5l_1 = _this__u8e3s4;
|
|
172
|
+
this.v5l_1 = collector;
|
|
179
173
|
}
|
|
180
|
-
protoOf($collectCOROUTINE$).
|
|
181
|
-
var suspendResult = this.
|
|
174
|
+
protoOf($collectCOROUTINE$).c9 = function () {
|
|
175
|
+
var suspendResult = this.w8_1;
|
|
182
176
|
$sm: do
|
|
183
177
|
try {
|
|
184
|
-
var tmp = this.
|
|
178
|
+
var tmp = this.u8_1;
|
|
185
179
|
switch (tmp) {
|
|
186
180
|
case 0:
|
|
187
|
-
this.
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
192
|
-
var tmp_1 = KotlinxSerializationConverter$serialize$o$collect$slambda_0(this.f5m_1, this.c5m_1.h5m_1, this.c5m_1.i5m_1, this.c5m_1.j5m_1, this.c5m_1.k5m_1, null);
|
|
193
|
-
suspendResult = this.c5m_1.g5m_1.q1a(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
181
|
+
this.v8_1 = 2;
|
|
182
|
+
var $this$unsafeFlow = this.v5l_1;
|
|
183
|
+
this.u8_1 = 1;
|
|
184
|
+
var tmp_0 = KotlinxSerializationConverter$serialize$o$collect$slambda_0($this$unsafeFlow, this.u5l_1.x5l_1, this.u5l_1.y5l_1, this.u5l_1.z5l_1, this.u5l_1.a5m_1, null);
|
|
185
|
+
suspendResult = this.u5l_1.w5l_1.f1c(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
194
186
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
195
187
|
return suspendResult;
|
|
196
188
|
}
|
|
@@ -199,63 +191,57 @@
|
|
|
199
191
|
case 1:
|
|
200
192
|
return Unit_instance;
|
|
201
193
|
case 2:
|
|
202
|
-
throw this.
|
|
194
|
+
throw this.x8_1;
|
|
203
195
|
}
|
|
204
196
|
} catch ($p) {
|
|
205
197
|
var e = $p;
|
|
206
|
-
if (this.
|
|
198
|
+
if (this.v8_1 === 2) {
|
|
207
199
|
throw e;
|
|
208
200
|
} else {
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
201
|
+
this.u8_1 = this.v8_1;
|
|
202
|
+
this.x8_1 = e;
|
|
211
203
|
}
|
|
212
204
|
}
|
|
213
205
|
while (true);
|
|
214
206
|
};
|
|
215
207
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
208
|
+
this.j5m_1 = $$this$unsafeFlow;
|
|
209
|
+
this.k5m_1 = $charset;
|
|
210
|
+
this.l5m_1 = $typeInfo;
|
|
211
|
+
this.m5m_1 = $content;
|
|
220
212
|
CoroutineImpl.call(this, resultContinuation);
|
|
221
213
|
}
|
|
222
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
223
|
-
var tmp = this.
|
|
224
|
-
tmp.
|
|
225
|
-
tmp.
|
|
226
|
-
return tmp.
|
|
214
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).p55 = function (value, $completion) {
|
|
215
|
+
var tmp = this.q55(value, $completion);
|
|
216
|
+
tmp.w8_1 = Unit_instance;
|
|
217
|
+
tmp.x8_1 = null;
|
|
218
|
+
return tmp.c9();
|
|
227
219
|
};
|
|
228
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
229
|
-
return this.
|
|
220
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).o9 = function (p1, $completion) {
|
|
221
|
+
return this.p55((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
230
222
|
};
|
|
231
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
232
|
-
var suspendResult = this.
|
|
223
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).c9 = function () {
|
|
224
|
+
var suspendResult = this.w8_1;
|
|
233
225
|
$sm: do
|
|
234
226
|
try {
|
|
235
|
-
var tmp = this.
|
|
227
|
+
var tmp = this.u8_1;
|
|
236
228
|
switch (tmp) {
|
|
237
229
|
case 0:
|
|
238
|
-
this.
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
this.
|
|
244
|
-
this.b5n_1 = this.z5m_1;
|
|
245
|
-
var tmp_2 = this;
|
|
246
|
-
tmp_2.c5n_1 = this.b5n_1;
|
|
247
|
-
this.d5n_1 = this.c5n_1;
|
|
248
|
-
this.n9_1 = 1;
|
|
249
|
-
suspendResult = this.d5n_1.e3g(this.u5m_1, this.v5m_1, this.w5m_1, this);
|
|
230
|
+
this.v8_1 = 3;
|
|
231
|
+
var tmp0 = this.j5m_1;
|
|
232
|
+
var tmp2 = this.n5m_1;
|
|
233
|
+
this.o5m_1 = tmp0;
|
|
234
|
+
this.u8_1 = 1;
|
|
235
|
+
suspendResult = tmp2.r55(this.k5m_1, this.l5m_1, this.m5m_1, this);
|
|
250
236
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
251
237
|
return suspendResult;
|
|
252
238
|
}
|
|
253
239
|
|
|
254
240
|
continue $sm;
|
|
255
241
|
case 1:
|
|
256
|
-
|
|
257
|
-
this.
|
|
258
|
-
suspendResult = this.
|
|
242
|
+
var ARGUMENT = suspendResult;
|
|
243
|
+
this.u8_1 = 2;
|
|
244
|
+
suspendResult = this.o5m_1.d1c(ARGUMENT, this);
|
|
259
245
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
260
246
|
return suspendResult;
|
|
261
247
|
}
|
|
@@ -264,51 +250,49 @@
|
|
|
264
250
|
case 2:
|
|
265
251
|
return Unit_instance;
|
|
266
252
|
case 3:
|
|
267
|
-
throw this.
|
|
253
|
+
throw this.x8_1;
|
|
268
254
|
}
|
|
269
255
|
} catch ($p) {
|
|
270
256
|
var e = $p;
|
|
271
|
-
if (this.
|
|
257
|
+
if (this.v8_1 === 3) {
|
|
272
258
|
throw e;
|
|
273
259
|
} else {
|
|
274
|
-
this.
|
|
275
|
-
this.
|
|
260
|
+
this.u8_1 = this.v8_1;
|
|
261
|
+
this.x8_1 = e;
|
|
276
262
|
}
|
|
277
263
|
}
|
|
278
264
|
while (true);
|
|
279
265
|
};
|
|
280
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
281
|
-
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.
|
|
282
|
-
i.
|
|
266
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).q55 = function (value, completion) {
|
|
267
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.j5m_1, this.k5m_1, this.l5m_1, this.m5m_1, completion);
|
|
268
|
+
i.n5m_1 = value;
|
|
283
269
|
return i;
|
|
284
270
|
};
|
|
285
271
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
286
272
|
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
|
|
287
273
|
var l = function (value, $completion) {
|
|
288
|
-
return i.
|
|
274
|
+
return i.p55(value, $completion);
|
|
289
275
|
};
|
|
290
276
|
l.$arity = 1;
|
|
291
277
|
return l;
|
|
292
278
|
}
|
|
293
279
|
function $collectCOROUTINE$_0(_this__u8e3s4, collector, resultContinuation) {
|
|
294
280
|
CoroutineImpl.call(this, resultContinuation);
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
281
|
+
this.x5m_1 = _this__u8e3s4;
|
|
282
|
+
this.y5m_1 = collector;
|
|
297
283
|
}
|
|
298
|
-
protoOf($collectCOROUTINE$_0).
|
|
299
|
-
var suspendResult = this.
|
|
284
|
+
protoOf($collectCOROUTINE$_0).c9 = function () {
|
|
285
|
+
var suspendResult = this.w8_1;
|
|
300
286
|
$sm: do
|
|
301
287
|
try {
|
|
302
|
-
var tmp = this.
|
|
288
|
+
var tmp = this.u8_1;
|
|
303
289
|
switch (tmp) {
|
|
304
290
|
case 0:
|
|
305
|
-
this.
|
|
306
|
-
var
|
|
307
|
-
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.q5n_1, this.n5n_1.s5n_1, this.n5n_1.t5n_1, this.n5n_1.u5n_1, null);
|
|
311
|
-
suspendResult = this.n5n_1.r5n_1.q1a(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
291
|
+
this.v8_1 = 2;
|
|
292
|
+
var $this$unsafeFlow = this.y5m_1;
|
|
293
|
+
this.u8_1 = 1;
|
|
294
|
+
var tmp_0 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0($this$unsafeFlow, this.x5m_1.a5n_1, this.x5m_1.b5n_1, this.x5m_1.c5n_1, null);
|
|
295
|
+
suspendResult = this.x5m_1.z5m_1.f1c(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
312
296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
313
297
|
return suspendResult;
|
|
314
298
|
}
|
|
@@ -317,15 +301,15 @@
|
|
|
317
301
|
case 1:
|
|
318
302
|
return Unit_instance;
|
|
319
303
|
case 2:
|
|
320
|
-
throw this.
|
|
304
|
+
throw this.x8_1;
|
|
321
305
|
}
|
|
322
306
|
} catch ($p) {
|
|
323
307
|
var e = $p;
|
|
324
|
-
if (this.
|
|
308
|
+
if (this.v8_1 === 2) {
|
|
325
309
|
throw e;
|
|
326
310
|
} else {
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
311
|
+
this.u8_1 = this.v8_1;
|
|
312
|
+
this.x8_1 = e;
|
|
329
313
|
}
|
|
330
314
|
}
|
|
331
315
|
while (true);
|
|
@@ -333,11 +317,11 @@
|
|
|
333
317
|
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
334
318
|
var tmp;
|
|
335
319
|
if (isInterface(format, StringFormat)) {
|
|
336
|
-
var content = format.
|
|
320
|
+
var content = format.j1y(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
337
321
|
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
338
322
|
} else {
|
|
339
323
|
if (isInterface(format, BinaryFormat)) {
|
|
340
|
-
var content_0 = format.
|
|
324
|
+
var content_0 = format.l1y(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
341
325
|
tmp = new ByteArrayContent(content_0, contentType);
|
|
342
326
|
} else {
|
|
343
327
|
var message = 'Unsupported format ' + toString(format);
|
|
@@ -347,20 +331,20 @@
|
|
|
347
331
|
return tmp;
|
|
348
332
|
}
|
|
349
333
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
350
|
-
this.
|
|
334
|
+
this.d5n_1 = function_0;
|
|
351
335
|
}
|
|
352
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
353
|
-
return this.
|
|
336
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).d1c = function (value, $completion) {
|
|
337
|
+
return this.d5n_1(value, $completion);
|
|
354
338
|
};
|
|
355
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
356
|
-
return this.
|
|
339
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).d3 = function () {
|
|
340
|
+
return this.d5n_1;
|
|
357
341
|
};
|
|
358
342
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
359
343
|
var tmp;
|
|
360
344
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
361
345
|
var tmp_0;
|
|
362
346
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
363
|
-
tmp_0 = equals(this.
|
|
347
|
+
tmp_0 = equals(this.d3(), other.d3());
|
|
364
348
|
} else {
|
|
365
349
|
tmp_0 = false;
|
|
366
350
|
}
|
|
@@ -371,23 +355,23 @@
|
|
|
371
355
|
return tmp;
|
|
372
356
|
};
|
|
373
357
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
374
|
-
return hashCode(this.
|
|
358
|
+
return hashCode(this.d3());
|
|
375
359
|
};
|
|
376
360
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
377
|
-
this.
|
|
361
|
+
this.e5n_1 = function_0;
|
|
378
362
|
}
|
|
379
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
380
|
-
return this.
|
|
363
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).d1c = function (value, $completion) {
|
|
364
|
+
return this.e5n_1(value, $completion);
|
|
381
365
|
};
|
|
382
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
383
|
-
return this.
|
|
366
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).d3 = function () {
|
|
367
|
+
return this.e5n_1;
|
|
384
368
|
};
|
|
385
369
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
386
370
|
var tmp;
|
|
387
371
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
388
372
|
var tmp_0;
|
|
389
373
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
390
|
-
tmp_0 = equals(this.
|
|
374
|
+
tmp_0 = equals(this.d3(), other.d3());
|
|
391
375
|
} else {
|
|
392
376
|
tmp_0 = false;
|
|
393
377
|
}
|
|
@@ -398,46 +382,46 @@
|
|
|
398
382
|
return tmp;
|
|
399
383
|
};
|
|
400
384
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
401
|
-
return hashCode(this.
|
|
385
|
+
return hashCode(this.d3());
|
|
402
386
|
};
|
|
403
387
|
function KotlinxSerializationConverter$serialize$$inlined$map$1($this, $contentType, $charset, $typeInfo, $value) {
|
|
404
|
-
this.
|
|
405
|
-
this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
408
|
-
this.
|
|
388
|
+
this.w5l_1 = $this;
|
|
389
|
+
this.x5l_1 = $contentType;
|
|
390
|
+
this.y5l_1 = $charset;
|
|
391
|
+
this.z5l_1 = $typeInfo;
|
|
392
|
+
this.a5m_1 = $value;
|
|
409
393
|
}
|
|
410
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
394
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).e1c = function (collector, $completion) {
|
|
411
395
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
412
|
-
tmp.
|
|
413
|
-
tmp.
|
|
414
|
-
return tmp.
|
|
396
|
+
tmp.w8_1 = Unit_instance;
|
|
397
|
+
tmp.x8_1 = null;
|
|
398
|
+
return tmp.c9();
|
|
415
399
|
};
|
|
416
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
417
|
-
return this.
|
|
400
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).f1c = function (collector, $completion) {
|
|
401
|
+
return this.e1c(collector, $completion);
|
|
418
402
|
};
|
|
419
403
|
function KotlinxSerializationConverter$serialize$slambda(resultContinuation) {
|
|
420
404
|
CoroutineImpl.call(this, resultContinuation);
|
|
421
405
|
}
|
|
422
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
423
|
-
var tmp = this.
|
|
424
|
-
tmp.
|
|
425
|
-
tmp.
|
|
426
|
-
return tmp.
|
|
406
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).o5n = function (it, $completion) {
|
|
407
|
+
var tmp = this.p5n(it, $completion);
|
|
408
|
+
tmp.w8_1 = Unit_instance;
|
|
409
|
+
tmp.x8_1 = null;
|
|
410
|
+
return tmp.c9();
|
|
427
411
|
};
|
|
428
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
429
|
-
return this.
|
|
412
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).o9 = function (p1, $completion) {
|
|
413
|
+
return this.o5n((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
430
414
|
};
|
|
431
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
432
|
-
var suspendResult = this.
|
|
415
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).c9 = function () {
|
|
416
|
+
var suspendResult = this.w8_1;
|
|
433
417
|
$sm: do
|
|
434
418
|
try {
|
|
435
|
-
var tmp = this.
|
|
419
|
+
var tmp = this.u8_1;
|
|
436
420
|
if (tmp === 0) {
|
|
437
|
-
this.
|
|
438
|
-
return !(this.
|
|
421
|
+
this.v8_1 = 1;
|
|
422
|
+
return !(this.n5n_1 == null);
|
|
439
423
|
} else if (tmp === 1) {
|
|
440
|
-
throw this.
|
|
424
|
+
throw this.x8_1;
|
|
441
425
|
}
|
|
442
426
|
} catch ($p) {
|
|
443
427
|
var e = $p;
|
|
@@ -445,57 +429,57 @@
|
|
|
445
429
|
}
|
|
446
430
|
while (true);
|
|
447
431
|
};
|
|
448
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
432
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).p5n = function (it, completion) {
|
|
449
433
|
var i = new KotlinxSerializationConverter$serialize$slambda(completion);
|
|
450
|
-
i.
|
|
434
|
+
i.n5n_1 = it;
|
|
451
435
|
return i;
|
|
452
436
|
};
|
|
453
437
|
function KotlinxSerializationConverter$serialize$slambda_0(resultContinuation) {
|
|
454
438
|
var i = new KotlinxSerializationConverter$serialize$slambda(resultContinuation);
|
|
455
439
|
var l = function (it, $completion) {
|
|
456
|
-
return i.
|
|
440
|
+
return i.o5n(it, $completion);
|
|
457
441
|
};
|
|
458
442
|
l.$arity = 1;
|
|
459
443
|
return l;
|
|
460
444
|
}
|
|
461
445
|
function KotlinxSerializationConverter$deserialize$$inlined$map$1($this, $charset, $typeInfo, $content) {
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
465
|
-
this.
|
|
446
|
+
this.z5m_1 = $this;
|
|
447
|
+
this.a5n_1 = $charset;
|
|
448
|
+
this.b5n_1 = $typeInfo;
|
|
449
|
+
this.c5n_1 = $content;
|
|
466
450
|
}
|
|
467
|
-
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).
|
|
451
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).e1c = function (collector, $completion) {
|
|
468
452
|
var tmp = new $collectCOROUTINE$_0(this, collector, $completion);
|
|
469
|
-
tmp.
|
|
470
|
-
tmp.
|
|
471
|
-
return tmp.
|
|
453
|
+
tmp.w8_1 = Unit_instance;
|
|
454
|
+
tmp.x8_1 = null;
|
|
455
|
+
return tmp.c9();
|
|
472
456
|
};
|
|
473
|
-
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).
|
|
474
|
-
return this.
|
|
457
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).f1c = function (collector, $completion) {
|
|
458
|
+
return this.e1c(collector, $completion);
|
|
475
459
|
};
|
|
476
460
|
function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
|
|
477
|
-
this.
|
|
461
|
+
this.y5n_1 = $content;
|
|
478
462
|
CoroutineImpl.call(this, resultContinuation);
|
|
479
463
|
}
|
|
480
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
481
|
-
var tmp = this.
|
|
482
|
-
tmp.
|
|
483
|
-
tmp.
|
|
484
|
-
return tmp.
|
|
464
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).q56 = function (it, $completion) {
|
|
465
|
+
var tmp = this.q55(it, $completion);
|
|
466
|
+
tmp.w8_1 = Unit_instance;
|
|
467
|
+
tmp.x8_1 = null;
|
|
468
|
+
return tmp.c9();
|
|
485
469
|
};
|
|
486
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
487
|
-
return this.
|
|
470
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).o9 = function (p1, $completion) {
|
|
471
|
+
return this.q56((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
488
472
|
};
|
|
489
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
490
|
-
var suspendResult = this.
|
|
473
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).c9 = function () {
|
|
474
|
+
var suspendResult = this.w8_1;
|
|
491
475
|
$sm: do
|
|
492
476
|
try {
|
|
493
|
-
var tmp = this.
|
|
477
|
+
var tmp = this.u8_1;
|
|
494
478
|
if (tmp === 0) {
|
|
495
|
-
this.
|
|
496
|
-
return !(this.
|
|
479
|
+
this.v8_1 = 1;
|
|
480
|
+
return !(this.z5n_1 == null) || this.y5n_1.g1m();
|
|
497
481
|
} else if (tmp === 1) {
|
|
498
|
-
throw this.
|
|
482
|
+
throw this.x8_1;
|
|
499
483
|
}
|
|
500
484
|
} catch ($p) {
|
|
501
485
|
var e = $p;
|
|
@@ -503,38 +487,38 @@
|
|
|
503
487
|
}
|
|
504
488
|
while (true);
|
|
505
489
|
};
|
|
506
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
507
|
-
var i = new KotlinxSerializationConverter$deserialize$slambda(this.
|
|
508
|
-
i.
|
|
490
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).q55 = function (it, completion) {
|
|
491
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda(this.y5n_1, completion);
|
|
492
|
+
i.z5n_1 = it;
|
|
509
493
|
return i;
|
|
510
494
|
};
|
|
511
495
|
function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
|
|
512
496
|
var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
|
|
513
497
|
var l = function (it, $completion) {
|
|
514
|
-
return i.
|
|
498
|
+
return i.q56(it, $completion);
|
|
515
499
|
};
|
|
516
500
|
l.$arity = 1;
|
|
517
501
|
return l;
|
|
518
502
|
}
|
|
519
503
|
function $serializeCOROUTINE$(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
520
504
|
CoroutineImpl.call(this, resultContinuation);
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
505
|
+
this.i5o_1 = _this__u8e3s4;
|
|
506
|
+
this.j5o_1 = contentType;
|
|
507
|
+
this.k5o_1 = charset;
|
|
508
|
+
this.l5o_1 = typeInfo;
|
|
509
|
+
this.m5o_1 = value;
|
|
526
510
|
}
|
|
527
|
-
protoOf($serializeCOROUTINE$).
|
|
528
|
-
var suspendResult = this.
|
|
511
|
+
protoOf($serializeCOROUTINE$).c9 = function () {
|
|
512
|
+
var suspendResult = this.w8_1;
|
|
529
513
|
$sm: do
|
|
530
514
|
try {
|
|
531
|
-
var tmp = this.
|
|
515
|
+
var tmp = this.u8_1;
|
|
532
516
|
switch (tmp) {
|
|
533
517
|
case 0:
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
536
|
-
var this_0 = asFlow(this.
|
|
537
|
-
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.
|
|
518
|
+
this.v8_1 = 2;
|
|
519
|
+
this.u8_1 = 1;
|
|
520
|
+
var this_0 = asFlow(this.i5o_1.o5o_1);
|
|
521
|
+
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.j5o_1, this.k5o_1, this.l5o_1, this.m5o_1);
|
|
538
522
|
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serialize$slambda_0(null), this);
|
|
539
523
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
524
|
return suspendResult;
|
|
@@ -547,12 +531,12 @@
|
|
|
547
531
|
return fromExtension;
|
|
548
532
|
var tmp_1;
|
|
549
533
|
try {
|
|
550
|
-
tmp_1 = serializerForTypeInfo(this.
|
|
534
|
+
tmp_1 = serializerForTypeInfo(this.i5o_1.n5o_1.i21(), this.l5o_1);
|
|
551
535
|
} catch ($p) {
|
|
552
536
|
var tmp_2;
|
|
553
537
|
if ($p instanceof SerializationException) {
|
|
554
538
|
var cause = $p;
|
|
555
|
-
tmp_2 = guessSerializer(this.
|
|
539
|
+
tmp_2 = guessSerializer(this.m5o_1, this.i5o_1.n5o_1.i21());
|
|
556
540
|
} else {
|
|
557
541
|
throw $p;
|
|
558
542
|
}
|
|
@@ -560,59 +544,59 @@
|
|
|
560
544
|
}
|
|
561
545
|
|
|
562
546
|
var serializer = tmp_1;
|
|
563
|
-
return serializeContent(this.
|
|
547
|
+
return serializeContent(this.i5o_1, serializer, this.i5o_1.n5o_1, this.m5o_1, this.j5o_1, this.k5o_1);
|
|
564
548
|
case 2:
|
|
565
|
-
throw this.
|
|
549
|
+
throw this.x8_1;
|
|
566
550
|
}
|
|
567
551
|
} catch ($p) {
|
|
568
552
|
var e = $p;
|
|
569
|
-
if (this.
|
|
553
|
+
if (this.v8_1 === 2) {
|
|
570
554
|
throw e;
|
|
571
555
|
} else {
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
556
|
+
this.u8_1 = this.v8_1;
|
|
557
|
+
this.x8_1 = e;
|
|
574
558
|
}
|
|
575
559
|
}
|
|
576
560
|
while (true);
|
|
577
561
|
};
|
|
578
562
|
function $deserializeCOROUTINE$(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
579
563
|
CoroutineImpl.call(this, resultContinuation);
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
564
|
+
this.x5o_1 = _this__u8e3s4;
|
|
565
|
+
this.y5o_1 = charset;
|
|
566
|
+
this.z5o_1 = typeInfo;
|
|
567
|
+
this.a5p_1 = content;
|
|
584
568
|
}
|
|
585
|
-
protoOf($deserializeCOROUTINE$).
|
|
586
|
-
var suspendResult = this.
|
|
569
|
+
protoOf($deserializeCOROUTINE$).c9 = function () {
|
|
570
|
+
var suspendResult = this.w8_1;
|
|
587
571
|
$sm: do
|
|
588
572
|
try {
|
|
589
|
-
var tmp = this.
|
|
573
|
+
var tmp = this.u8_1;
|
|
590
574
|
switch (tmp) {
|
|
591
575
|
case 0:
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
var this_0 = asFlow(this.
|
|
595
|
-
var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.
|
|
596
|
-
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.
|
|
576
|
+
this.v8_1 = 4;
|
|
577
|
+
this.u8_1 = 1;
|
|
578
|
+
var this_0 = asFlow(this.x5o_1.o5o_1);
|
|
579
|
+
var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.y5o_1, this.z5o_1, this.a5p_1);
|
|
580
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.a5p_1, null), this);
|
|
597
581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
598
582
|
return suspendResult;
|
|
599
583
|
}
|
|
600
584
|
|
|
601
585
|
continue $sm;
|
|
602
586
|
case 1:
|
|
603
|
-
|
|
587
|
+
var fromExtension = suspendResult;
|
|
604
588
|
var tmp_1;
|
|
605
|
-
if (!this.
|
|
606
|
-
tmp_1 = !(
|
|
589
|
+
if (!this.x5o_1.o5o_1.j()) {
|
|
590
|
+
tmp_1 = !(fromExtension == null) || this.a5p_1.g1m();
|
|
607
591
|
} else {
|
|
608
592
|
tmp_1 = false;
|
|
609
593
|
}
|
|
610
594
|
|
|
611
595
|
if (tmp_1)
|
|
612
|
-
return
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
suspendResult = readRemaining(this.
|
|
596
|
+
return fromExtension;
|
|
597
|
+
this.b5p_1 = serializerForTypeInfo(this.x5o_1.n5o_1.i21(), this.z5o_1);
|
|
598
|
+
this.u8_1 = 2;
|
|
599
|
+
suspendResult = readRemaining(this.a5p_1, this);
|
|
616
600
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
617
601
|
return suspendResult;
|
|
618
602
|
}
|
|
@@ -620,88 +604,88 @@
|
|
|
620
604
|
continue $sm;
|
|
621
605
|
case 2:
|
|
622
606
|
var contentPacket = suspendResult;
|
|
623
|
-
this.
|
|
624
|
-
var tmp0_subject = this.
|
|
607
|
+
this.v8_1 = 3;
|
|
608
|
+
var tmp0_subject = this.x5o_1.n5o_1;
|
|
625
609
|
var tmp_2;
|
|
626
610
|
if (isInterface(tmp0_subject, StringFormat)) {
|
|
627
|
-
tmp_2 = this.
|
|
611
|
+
tmp_2 = this.x5o_1.n5o_1.k1y(this.b5p_1, readText(contentPacket, this.y5o_1));
|
|
628
612
|
} else {
|
|
629
613
|
if (isInterface(tmp0_subject, BinaryFormat)) {
|
|
630
|
-
tmp_2 = this.
|
|
614
|
+
tmp_2 = this.x5o_1.n5o_1.m1y(this.b5p_1, readByteArray(contentPacket));
|
|
631
615
|
} else {
|
|
632
616
|
discard(contentPacket);
|
|
633
|
-
var message = 'Unsupported format ' + toString(this.
|
|
617
|
+
var message = 'Unsupported format ' + toString(this.x5o_1.n5o_1);
|
|
634
618
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
635
619
|
}
|
|
636
620
|
}
|
|
637
621
|
|
|
638
622
|
return tmp_2;
|
|
639
623
|
case 3:
|
|
640
|
-
this.
|
|
641
|
-
var tmp_3 = this.
|
|
624
|
+
this.v8_1 = 4;
|
|
625
|
+
var tmp_3 = this.x8_1;
|
|
642
626
|
if (tmp_3 instanceof Error) {
|
|
643
|
-
var cause = this.
|
|
627
|
+
var cause = this.x8_1;
|
|
644
628
|
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
645
629
|
} else {
|
|
646
|
-
throw this.
|
|
630
|
+
throw this.x8_1;
|
|
647
631
|
}
|
|
648
632
|
|
|
649
633
|
case 4:
|
|
650
|
-
throw this.
|
|
634
|
+
throw this.x8_1;
|
|
651
635
|
}
|
|
652
636
|
} catch ($p) {
|
|
653
637
|
var e = $p;
|
|
654
|
-
if (this.
|
|
638
|
+
if (this.v8_1 === 4) {
|
|
655
639
|
throw e;
|
|
656
640
|
} else {
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
641
|
+
this.u8_1 = this.v8_1;
|
|
642
|
+
this.x8_1 = e;
|
|
659
643
|
}
|
|
660
644
|
}
|
|
661
645
|
while (true);
|
|
662
646
|
};
|
|
663
647
|
function KotlinxSerializationConverter(format) {
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
648
|
+
this.n5o_1 = format;
|
|
649
|
+
this.o5o_1 = extensions(this.n5o_1);
|
|
666
650
|
var tmp;
|
|
667
|
-
var tmp_0 = this.
|
|
651
|
+
var tmp_0 = this.n5o_1;
|
|
668
652
|
if (isInterface(tmp_0, BinaryFormat)) {
|
|
669
653
|
tmp = true;
|
|
670
654
|
} else {
|
|
671
|
-
var tmp_1 = this.
|
|
655
|
+
var tmp_1 = this.n5o_1;
|
|
672
656
|
tmp = isInterface(tmp_1, StringFormat);
|
|
673
657
|
}
|
|
674
658
|
// Inline function 'kotlin.require' call
|
|
675
659
|
if (!tmp) {
|
|
676
|
-
var message = 'Only binary and string formats are supported, ' + toString(this.
|
|
660
|
+
var message = 'Only binary and string formats are supported, ' + toString(this.n5o_1) + ' is not supported.';
|
|
677
661
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
678
662
|
}
|
|
679
663
|
}
|
|
680
|
-
protoOf(KotlinxSerializationConverter).
|
|
664
|
+
protoOf(KotlinxSerializationConverter).c5p = function (contentType, charset, typeInfo, value, $completion) {
|
|
681
665
|
var tmp = new $serializeCOROUTINE$(this, contentType, charset, typeInfo, value, $completion);
|
|
682
|
-
tmp.
|
|
683
|
-
tmp.
|
|
684
|
-
return tmp.
|
|
666
|
+
tmp.w8_1 = Unit_instance;
|
|
667
|
+
tmp.x8_1 = null;
|
|
668
|
+
return tmp.c9();
|
|
685
669
|
};
|
|
686
|
-
protoOf(KotlinxSerializationConverter).
|
|
687
|
-
return this.
|
|
670
|
+
protoOf(KotlinxSerializationConverter).p59 = function (contentType, charset, typeInfo, value, $completion) {
|
|
671
|
+
return this.c5p(contentType, charset, typeInfo, value, $completion);
|
|
688
672
|
};
|
|
689
|
-
protoOf(KotlinxSerializationConverter).
|
|
673
|
+
protoOf(KotlinxSerializationConverter).r55 = function (charset, typeInfo, content, $completion) {
|
|
690
674
|
var tmp = new $deserializeCOROUTINE$(this, charset, typeInfo, content, $completion);
|
|
691
|
-
tmp.
|
|
692
|
-
tmp.
|
|
693
|
-
return tmp.
|
|
675
|
+
tmp.w8_1 = Unit_instance;
|
|
676
|
+
tmp.x8_1 = null;
|
|
677
|
+
return tmp.c9();
|
|
694
678
|
};
|
|
695
679
|
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
696
680
|
var module_0 = _this__u8e3s4;
|
|
697
|
-
var tmp0_safe_receiver = typeInfo.
|
|
681
|
+
var tmp0_safe_receiver = typeInfo.c2q_1;
|
|
698
682
|
var tmp;
|
|
699
683
|
if (tmp0_safe_receiver == null) {
|
|
700
684
|
tmp = null;
|
|
701
685
|
} else {
|
|
702
686
|
// Inline function 'kotlin.let' call
|
|
703
687
|
var tmp_0;
|
|
704
|
-
if (tmp0_safe_receiver.
|
|
688
|
+
if (tmp0_safe_receiver.kb().j()) {
|
|
705
689
|
tmp_0 = null;
|
|
706
690
|
} else {
|
|
707
691
|
tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
@@ -711,13 +695,13 @@
|
|
|
711
695
|
var tmp1_elvis_lhs = tmp;
|
|
712
696
|
var tmp_1;
|
|
713
697
|
if (tmp1_elvis_lhs == null) {
|
|
714
|
-
var tmp2_safe_receiver = module_0.
|
|
698
|
+
var tmp2_safe_receiver = module_0.p1y(typeInfo.b2q_1);
|
|
715
699
|
tmp_1 = tmp2_safe_receiver == null ? null : maybeNullable(tmp2_safe_receiver, typeInfo);
|
|
716
700
|
} else {
|
|
717
701
|
tmp_1 = tmp1_elvis_lhs;
|
|
718
702
|
}
|
|
719
703
|
var tmp3_elvis_lhs = tmp_1;
|
|
720
|
-
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.
|
|
704
|
+
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.b2q_1), typeInfo) : tmp3_elvis_lhs;
|
|
721
705
|
}
|
|
722
706
|
function guessSerializer(value, module_0) {
|
|
723
707
|
var tmp;
|
|
@@ -743,11 +727,11 @@
|
|
|
743
727
|
tmp = SetSerializer(elementSerializer(value, module_0));
|
|
744
728
|
} else {
|
|
745
729
|
if (!(value == null) ? isInterface(value, KtMap) : false) {
|
|
746
|
-
var keySerializer = elementSerializer(value.
|
|
747
|
-
var valueSerializer = elementSerializer(value.
|
|
730
|
+
var keySerializer = elementSerializer(value.j2(), module_0);
|
|
731
|
+
var valueSerializer = elementSerializer(value.k2(), module_0);
|
|
748
732
|
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
749
733
|
} else {
|
|
750
|
-
var tmp3_elvis_lhs = module_0.
|
|
734
|
+
var tmp3_elvis_lhs = module_0.p1y(getKClassFromExpression(value));
|
|
751
735
|
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
752
736
|
}
|
|
753
737
|
}
|
|
@@ -759,8 +743,8 @@
|
|
|
759
743
|
}
|
|
760
744
|
function maybeNullable(_this__u8e3s4, typeInfo) {
|
|
761
745
|
var tmp;
|
|
762
|
-
var tmp0_safe_receiver = typeInfo.
|
|
763
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
746
|
+
var tmp0_safe_receiver = typeInfo.c2q_1;
|
|
747
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lb()) === true) {
|
|
764
748
|
tmp = get_nullable(_this__u8e3s4);
|
|
765
749
|
} else {
|
|
766
750
|
tmp = _this__u8e3s4;
|
|
@@ -772,33 +756,33 @@
|
|
|
772
756
|
var this_0 = filterNotNull(_this__u8e3s4);
|
|
773
757
|
// Inline function 'kotlin.collections.mapTo' call
|
|
774
758
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
775
|
-
var _iterator__ex2g4s = this_0.
|
|
776
|
-
while (_iterator__ex2g4s.
|
|
777
|
-
var item = _iterator__ex2g4s.
|
|
759
|
+
var _iterator__ex2g4s = this_0.r();
|
|
760
|
+
while (_iterator__ex2g4s.s()) {
|
|
761
|
+
var item = _iterator__ex2g4s.t();
|
|
778
762
|
var tmp$ret$0 = guessSerializer(item, module_0);
|
|
779
|
-
destination.
|
|
763
|
+
destination.p(tmp$ret$0);
|
|
780
764
|
}
|
|
781
765
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
782
766
|
var set = HashSet_init_$Create$();
|
|
783
767
|
var list = ArrayList_init_$Create$();
|
|
784
|
-
var _iterator__ex2g4s_0 = destination.
|
|
785
|
-
while (_iterator__ex2g4s_0.
|
|
786
|
-
var e = _iterator__ex2g4s_0.
|
|
787
|
-
var key = e.
|
|
788
|
-
if (set.
|
|
789
|
-
list.
|
|
768
|
+
var _iterator__ex2g4s_0 = destination.r();
|
|
769
|
+
while (_iterator__ex2g4s_0.s()) {
|
|
770
|
+
var e = _iterator__ex2g4s_0.t();
|
|
771
|
+
var key = e.g1x().h1y();
|
|
772
|
+
if (set.p(key)) {
|
|
773
|
+
list.p(e);
|
|
790
774
|
}
|
|
791
775
|
}
|
|
792
776
|
var serializers = list;
|
|
793
|
-
if (serializers.
|
|
777
|
+
if (serializers.u() > 1) {
|
|
794
778
|
// Inline function 'kotlin.collections.map' call
|
|
795
779
|
// Inline function 'kotlin.collections.mapTo' call
|
|
796
780
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
797
|
-
var _iterator__ex2g4s_1 = serializers.
|
|
798
|
-
while (_iterator__ex2g4s_1.
|
|
799
|
-
var item_0 = _iterator__ex2g4s_1.
|
|
800
|
-
var tmp$ret$5 = item_0.
|
|
801
|
-
destination_0.
|
|
781
|
+
var _iterator__ex2g4s_1 = serializers.r();
|
|
782
|
+
while (_iterator__ex2g4s_1.s()) {
|
|
783
|
+
var item_0 = _iterator__ex2g4s_1.t();
|
|
784
|
+
var tmp$ret$5 = item_0.g1x().h1y();
|
|
785
|
+
destination_0.p(tmp$ret$5);
|
|
802
786
|
}
|
|
803
787
|
// Inline function 'kotlin.error' call
|
|
804
788
|
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
|
|
@@ -806,7 +790,7 @@
|
|
|
806
790
|
}
|
|
807
791
|
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
808
792
|
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
809
|
-
if (selected.
|
|
793
|
+
if (selected.g1x().t1y()) {
|
|
810
794
|
return selected;
|
|
811
795
|
}
|
|
812
796
|
if (!isInterface(selected, KSerializer))
|
|
@@ -816,7 +800,7 @@
|
|
|
816
800
|
// Inline function 'kotlin.collections.any' call
|
|
817
801
|
var tmp;
|
|
818
802
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
819
|
-
tmp = _this__u8e3s4.
|
|
803
|
+
tmp = _this__u8e3s4.j();
|
|
820
804
|
} else {
|
|
821
805
|
tmp = false;
|
|
822
806
|
}
|
|
@@ -824,9 +808,9 @@
|
|
|
824
808
|
tmp$ret$8 = false;
|
|
825
809
|
break $l$block_0;
|
|
826
810
|
}
|
|
827
|
-
var _iterator__ex2g4s_2 = _this__u8e3s4.
|
|
828
|
-
while (_iterator__ex2g4s_2.
|
|
829
|
-
var element = _iterator__ex2g4s_2.
|
|
811
|
+
var _iterator__ex2g4s_2 = _this__u8e3s4.r();
|
|
812
|
+
while (_iterator__ex2g4s_2.s()) {
|
|
813
|
+
var element = _iterator__ex2g4s_2.t();
|
|
830
814
|
if (element == null) {
|
|
831
815
|
tmp$ret$8 = true;
|
|
832
816
|
break $l$block_0;
|