@doordeck/doordeck-headless-sdk 0.45.0 → 0.47.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/Kotlin-DateTime-library-kotlinx-datetime.js +1394 -1464
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +19 -21
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +6 -8
- package/kotlin/Stately-stately-concurrency.js +6 -8
- package/kotlin/Stately-stately-concurrent-collections.js +53 -55
- package/kotlin/Stately-stately-strict.js +0 -2
- package/kotlin/doordeck-sdk.js +11765 -11217
- package/kotlin/kotlin-kotlin-stdlib.js +1938 -1924
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -2
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -2
- package/kotlin/kotlinx-atomicfu.js +13 -15
- package/kotlin/kotlinx-coroutines-core.js +2051 -2089
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +0 -2
- package/kotlin/kotlinx-io-kotlinx-io-core.js +559 -550
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1849 -1872
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -2
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1523 -1523
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2832 -2843
- package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +388 -391
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +198 -199
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js +0 -2
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +0 -2
- package/kotlin/ktor-ktor-http.js +833 -860
- package/kotlin/ktor-ktor-io.js +641 -653
- package/kotlin/ktor-ktor-shared-ktor-events.js +7 -10
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +266 -263
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +113 -111
- package/kotlin/ktor-ktor-shared-ktor-sse.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js +0 -2
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +46 -46
- package/kotlin/ktor-ktor-utils.js +590 -606
- package/kotlin/projects-core-koin-core.js +299 -316
- package/package.json +4 -3
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +0 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js.map +0 -1
- package/kotlin/Stately-stately-concurrency.js.map +0 -1
- package/kotlin/Stately-stately-concurrent-collections.js.map +0 -1
- package/kotlin/Stately-stately-strict.js.map +0 -1
- package/kotlin/doordeck-sdk.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin-kotlinx-atomicfu-runtime.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +0 -1
- package/kotlin/kotlinx-atomicfu.js.map +0 -1
- package/kotlin/kotlinx-coroutines-core.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-js.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js.map +0 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js.map +0 -1
- package/kotlin/ktor-ktor-http.js.map +0 -1
- package/kotlin/ktor-ktor-io.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-sse.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websocket-serialization.js.map +0 -1
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +0 -1
- package/kotlin/ktor-ktor-utils.js.map +0 -1
- package/kotlin/projects-core-koin-core.js.map +0 -1
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
initMetadataForCoroutine($collectCOROUTINE$3, CoroutineImpl);
|
|
64
64
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
65
65
|
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
66
|
-
initMetadataForClass(
|
|
66
|
+
initMetadataForClass(KotlinxSerializationConverter$serialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
|
|
67
67
|
initMetadataForLambda(KotlinxSerializationConverter$serialize$slambda, CoroutineImpl, VOID, [1]);
|
|
68
|
-
initMetadataForClass(
|
|
68
|
+
initMetadataForClass(KotlinxSerializationConverter$deserialize$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
|
|
69
69
|
initMetadataForLambda(KotlinxSerializationConverter$deserialize$slambda, CoroutineImpl, VOID, [1]);
|
|
70
70
|
initMetadataForCoroutine($serializeCOROUTINE$0, CoroutineImpl);
|
|
71
71
|
initMetadataForCoroutine($deserializeCOROUTINE$1, CoroutineImpl);
|
|
@@ -73,71 +73,74 @@
|
|
|
73
73
|
//endregion
|
|
74
74
|
function extensions(format) {
|
|
75
75
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
76
|
+
var tmp0 = get_providers();
|
|
76
77
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
77
|
-
var this_0 = get_providers();
|
|
78
78
|
var destination = ArrayList_init_$Create$();
|
|
79
79
|
// Inline function 'kotlin.collections.forEach' call
|
|
80
|
-
var
|
|
81
|
-
while (
|
|
82
|
-
var element =
|
|
80
|
+
var _iterator__ex2g4s = tmp0.p();
|
|
81
|
+
while (_iterator__ex2g4s.q()) {
|
|
82
|
+
var element = _iterator__ex2g4s.r();
|
|
83
83
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
84
84
|
// Inline function 'io.ktor.serialization.kotlinx.extensions.<anonymous>' call
|
|
85
|
-
var tmp0_safe_receiver = element.
|
|
85
|
+
var tmp0_safe_receiver = element.m4b(format);
|
|
86
86
|
if (tmp0_safe_receiver == null)
|
|
87
87
|
null;
|
|
88
88
|
else {
|
|
89
89
|
// Inline function 'kotlin.let' call
|
|
90
|
-
// Inline function 'kotlin.
|
|
90
|
+
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>.<anonymous>' call
|
|
91
91
|
destination.k(tmp0_safe_receiver);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
return destination;
|
|
95
95
|
}
|
|
96
96
|
function serialization(_this__u8e3s4, contentType, format) {
|
|
97
|
-
_this__u8e3s4.
|
|
97
|
+
_this__u8e3s4.x2r(contentType, new KotlinxSerializationConverter(format));
|
|
98
98
|
}
|
|
99
99
|
function KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
100
|
+
this.v4b_1 = $$this$unsafeFlow;
|
|
101
|
+
this.w4b_1 = $contentType;
|
|
102
|
+
this.x4b_1 = $charset;
|
|
103
|
+
this.y4b_1 = $typeInfo;
|
|
104
|
+
this.z4b_1 = $value;
|
|
105
105
|
CoroutineImpl.call(this, resultContinuation);
|
|
106
106
|
}
|
|
107
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
108
|
-
var tmp = this.
|
|
109
|
-
tmp.
|
|
110
|
-
tmp.
|
|
111
|
-
return tmp.
|
|
107
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).t2s = function (value, $completion) {
|
|
108
|
+
var tmp = this.u2s(value, $completion);
|
|
109
|
+
tmp.g9_1 = Unit_instance;
|
|
110
|
+
tmp.h9_1 = null;
|
|
111
|
+
return tmp.m9();
|
|
112
112
|
};
|
|
113
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
114
|
-
return this.
|
|
113
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).w9 = function (p1, $completion) {
|
|
114
|
+
return this.t2s((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
115
115
|
};
|
|
116
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
117
|
-
var suspendResult = this.
|
|
116
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).m9 = function () {
|
|
117
|
+
var suspendResult = this.g9_1;
|
|
118
118
|
$sm: do
|
|
119
119
|
try {
|
|
120
|
-
var tmp = this.
|
|
120
|
+
var tmp = this.e9_1;
|
|
121
121
|
switch (tmp) {
|
|
122
122
|
case 0:
|
|
123
|
-
this.
|
|
123
|
+
this.f9_1 = 3;
|
|
124
124
|
var tmp_0 = this;
|
|
125
|
-
tmp_0.
|
|
125
|
+
tmp_0.b4c_1 = this.v4b_1;
|
|
126
126
|
var tmp_1 = this;
|
|
127
|
-
tmp_1.
|
|
127
|
+
tmp_1.c4c_1 = this.a4c_1;
|
|
128
|
+
this.d4c_1 = this.b4c_1;
|
|
129
|
+
this.e4c_1 = this.c4c_1;
|
|
128
130
|
var tmp_2 = this;
|
|
129
|
-
tmp_2.
|
|
130
|
-
this.
|
|
131
|
-
|
|
131
|
+
tmp_2.f4c_1 = this.e4c_1;
|
|
132
|
+
this.g4c_1 = this.f4c_1;
|
|
133
|
+
this.e9_1 = 1;
|
|
134
|
+
suspendResult = this.g4c_1.l4b(this.w4b_1, this.x4b_1, this.y4b_1, this.z4b_1, this);
|
|
132
135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
133
136
|
return suspendResult;
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
continue $sm;
|
|
137
140
|
case 1:
|
|
138
|
-
this.
|
|
139
|
-
this.
|
|
140
|
-
suspendResult = this.
|
|
141
|
+
this.h4c_1 = suspendResult;
|
|
142
|
+
this.e9_1 = 2;
|
|
143
|
+
suspendResult = this.d4c_1.c15(this.h4c_1, this);
|
|
141
144
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
142
145
|
return suspendResult;
|
|
143
146
|
}
|
|
@@ -146,50 +149,51 @@
|
|
|
146
149
|
case 2:
|
|
147
150
|
return Unit_instance;
|
|
148
151
|
case 3:
|
|
149
|
-
throw this.
|
|
152
|
+
throw this.h9_1;
|
|
150
153
|
}
|
|
151
154
|
} catch ($p) {
|
|
152
155
|
var e = $p;
|
|
153
|
-
if (this.
|
|
156
|
+
if (this.f9_1 === 3) {
|
|
154
157
|
throw e;
|
|
155
158
|
} else {
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
159
|
+
this.e9_1 = this.f9_1;
|
|
160
|
+
this.h9_1 = e;
|
|
158
161
|
}
|
|
159
162
|
}
|
|
160
163
|
while (true);
|
|
161
164
|
};
|
|
162
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
163
|
-
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.
|
|
164
|
-
i.
|
|
165
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).u2s = function (value, completion) {
|
|
166
|
+
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.v4b_1, this.w4b_1, this.x4b_1, this.y4b_1, this.z4b_1, completion);
|
|
167
|
+
i.a4c_1 = value;
|
|
165
168
|
return i;
|
|
166
169
|
};
|
|
167
170
|
function KotlinxSerializationConverter$serialize$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
168
171
|
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
169
172
|
var l = function (value, $completion) {
|
|
170
|
-
return i.
|
|
173
|
+
return i.t2s(value, $completion);
|
|
171
174
|
};
|
|
172
175
|
l.$arity = 1;
|
|
173
176
|
return l;
|
|
174
177
|
}
|
|
175
178
|
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
176
179
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
180
|
+
this.q4c_1 = _this__u8e3s4;
|
|
181
|
+
this.r4c_1 = collector;
|
|
179
182
|
}
|
|
180
|
-
protoOf($collectCOROUTINE$2).
|
|
181
|
-
var suspendResult = this.
|
|
183
|
+
protoOf($collectCOROUTINE$2).m9 = function () {
|
|
184
|
+
var suspendResult = this.g9_1;
|
|
182
185
|
$sm: do
|
|
183
186
|
try {
|
|
184
|
-
var tmp = this.
|
|
187
|
+
var tmp = this.e9_1;
|
|
185
188
|
switch (tmp) {
|
|
186
189
|
case 0:
|
|
187
|
-
this.
|
|
190
|
+
this.f9_1 = 2;
|
|
188
191
|
var tmp_0 = this;
|
|
189
|
-
tmp_0.
|
|
190
|
-
this.
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
tmp_0.s4c_1 = this.r4c_1;
|
|
193
|
+
this.t4c_1 = this.s4c_1;
|
|
194
|
+
this.e9_1 = 1;
|
|
195
|
+
var tmp_1 = KotlinxSerializationConverter$serialize$o$collect$slambda_0(this.t4c_1, this.q4c_1.v4c_1, this.q4c_1.w4c_1, this.q4c_1.x4c_1, this.q4c_1.y4c_1, null);
|
|
196
|
+
suspendResult = this.q4c_1.u4c_1.e15(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
193
197
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
194
198
|
return suspendResult;
|
|
195
199
|
}
|
|
@@ -198,60 +202,63 @@
|
|
|
198
202
|
case 1:
|
|
199
203
|
return Unit_instance;
|
|
200
204
|
case 2:
|
|
201
|
-
throw this.
|
|
205
|
+
throw this.h9_1;
|
|
202
206
|
}
|
|
203
207
|
} catch ($p) {
|
|
204
208
|
var e = $p;
|
|
205
|
-
if (this.
|
|
209
|
+
if (this.f9_1 === 2) {
|
|
206
210
|
throw e;
|
|
207
211
|
} else {
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
212
|
+
this.e9_1 = this.f9_1;
|
|
213
|
+
this.h9_1 = e;
|
|
210
214
|
}
|
|
211
215
|
}
|
|
212
216
|
while (true);
|
|
213
217
|
};
|
|
214
218
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
+
this.h4d_1 = $$this$unsafeFlow;
|
|
220
|
+
this.i4d_1 = $charset;
|
|
221
|
+
this.j4d_1 = $typeInfo;
|
|
222
|
+
this.k4d_1 = $content;
|
|
219
223
|
CoroutineImpl.call(this, resultContinuation);
|
|
220
224
|
}
|
|
221
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
222
|
-
var tmp = this.
|
|
223
|
-
tmp.
|
|
224
|
-
tmp.
|
|
225
|
-
return tmp.
|
|
225
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).t2s = function (value, $completion) {
|
|
226
|
+
var tmp = this.u2s(value, $completion);
|
|
227
|
+
tmp.g9_1 = Unit_instance;
|
|
228
|
+
tmp.h9_1 = null;
|
|
229
|
+
return tmp.m9();
|
|
226
230
|
};
|
|
227
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
228
|
-
return this.
|
|
231
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).w9 = function (p1, $completion) {
|
|
232
|
+
return this.t2s((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
229
233
|
};
|
|
230
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
231
|
-
var suspendResult = this.
|
|
234
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).m9 = function () {
|
|
235
|
+
var suspendResult = this.g9_1;
|
|
232
236
|
$sm: do
|
|
233
237
|
try {
|
|
234
|
-
var tmp = this.
|
|
238
|
+
var tmp = this.e9_1;
|
|
235
239
|
switch (tmp) {
|
|
236
240
|
case 0:
|
|
237
|
-
this.
|
|
241
|
+
this.f9_1 = 3;
|
|
238
242
|
var tmp_0 = this;
|
|
239
|
-
tmp_0.
|
|
243
|
+
tmp_0.m4d_1 = this.h4d_1;
|
|
240
244
|
var tmp_1 = this;
|
|
241
|
-
tmp_1.
|
|
245
|
+
tmp_1.n4d_1 = this.l4d_1;
|
|
246
|
+
this.o4d_1 = this.m4d_1;
|
|
247
|
+
this.p4d_1 = this.n4d_1;
|
|
242
248
|
var tmp_2 = this;
|
|
243
|
-
tmp_2.
|
|
244
|
-
this.
|
|
245
|
-
|
|
249
|
+
tmp_2.q4d_1 = this.p4d_1;
|
|
250
|
+
this.r4d_1 = this.q4d_1;
|
|
251
|
+
this.e9_1 = 1;
|
|
252
|
+
suspendResult = this.r4d_1.v2s(this.i4d_1, this.j4d_1, this.k4d_1, this);
|
|
246
253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
247
254
|
return suspendResult;
|
|
248
255
|
}
|
|
249
256
|
|
|
250
257
|
continue $sm;
|
|
251
258
|
case 1:
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
suspendResult = this.
|
|
259
|
+
this.s4d_1 = suspendResult;
|
|
260
|
+
this.e9_1 = 2;
|
|
261
|
+
suspendResult = this.o4d_1.c15(this.s4d_1, this);
|
|
255
262
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
256
263
|
return suspendResult;
|
|
257
264
|
}
|
|
@@ -260,50 +267,51 @@
|
|
|
260
267
|
case 2:
|
|
261
268
|
return Unit_instance;
|
|
262
269
|
case 3:
|
|
263
|
-
throw this.
|
|
270
|
+
throw this.h9_1;
|
|
264
271
|
}
|
|
265
272
|
} catch ($p) {
|
|
266
273
|
var e = $p;
|
|
267
|
-
if (this.
|
|
274
|
+
if (this.f9_1 === 3) {
|
|
268
275
|
throw e;
|
|
269
276
|
} else {
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
277
|
+
this.e9_1 = this.f9_1;
|
|
278
|
+
this.h9_1 = e;
|
|
272
279
|
}
|
|
273
280
|
}
|
|
274
281
|
while (true);
|
|
275
282
|
};
|
|
276
|
-
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).
|
|
277
|
-
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.
|
|
278
|
-
i.
|
|
283
|
+
protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).u2s = function (value, completion) {
|
|
284
|
+
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.h4d_1, this.i4d_1, this.j4d_1, this.k4d_1, completion);
|
|
285
|
+
i.l4d_1 = value;
|
|
279
286
|
return i;
|
|
280
287
|
};
|
|
281
288
|
function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
|
|
282
289
|
var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
|
|
283
290
|
var l = function (value, $completion) {
|
|
284
|
-
return i.
|
|
291
|
+
return i.t2s(value, $completion);
|
|
285
292
|
};
|
|
286
293
|
l.$arity = 1;
|
|
287
294
|
return l;
|
|
288
295
|
}
|
|
289
296
|
function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
|
|
290
297
|
CoroutineImpl.call(this, resultContinuation);
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
298
|
+
this.b4e_1 = _this__u8e3s4;
|
|
299
|
+
this.c4e_1 = collector;
|
|
293
300
|
}
|
|
294
|
-
protoOf($collectCOROUTINE$3).
|
|
295
|
-
var suspendResult = this.
|
|
301
|
+
protoOf($collectCOROUTINE$3).m9 = function () {
|
|
302
|
+
var suspendResult = this.g9_1;
|
|
296
303
|
$sm: do
|
|
297
304
|
try {
|
|
298
|
-
var tmp = this.
|
|
305
|
+
var tmp = this.e9_1;
|
|
299
306
|
switch (tmp) {
|
|
300
307
|
case 0:
|
|
301
|
-
this.
|
|
308
|
+
this.f9_1 = 2;
|
|
302
309
|
var tmp_0 = this;
|
|
303
|
-
tmp_0.
|
|
304
|
-
this.
|
|
305
|
-
|
|
306
|
-
|
|
310
|
+
tmp_0.d4e_1 = this.c4e_1;
|
|
311
|
+
this.e4e_1 = this.d4e_1;
|
|
312
|
+
this.e9_1 = 1;
|
|
313
|
+
var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.e4e_1, this.b4e_1.g4e_1, this.b4e_1.h4e_1, this.b4e_1.i4e_1, null);
|
|
314
|
+
suspendResult = this.b4e_1.f4e_1.e15(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
|
|
307
315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
308
316
|
return suspendResult;
|
|
309
317
|
}
|
|
@@ -312,15 +320,15 @@
|
|
|
312
320
|
case 1:
|
|
313
321
|
return Unit_instance;
|
|
314
322
|
case 2:
|
|
315
|
-
throw this.
|
|
323
|
+
throw this.h9_1;
|
|
316
324
|
}
|
|
317
325
|
} catch ($p) {
|
|
318
326
|
var e = $p;
|
|
319
|
-
if (this.
|
|
327
|
+
if (this.f9_1 === 2) {
|
|
320
328
|
throw e;
|
|
321
329
|
} else {
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
330
|
+
this.e9_1 = this.f9_1;
|
|
331
|
+
this.h9_1 = e;
|
|
324
332
|
}
|
|
325
333
|
}
|
|
326
334
|
while (true);
|
|
@@ -328,11 +336,11 @@
|
|
|
328
336
|
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
329
337
|
var tmp;
|
|
330
338
|
if (isInterface(format, StringFormat)) {
|
|
331
|
-
var content = format.
|
|
339
|
+
var content = format.e1o(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
332
340
|
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
333
341
|
} else {
|
|
334
342
|
if (isInterface(format, BinaryFormat)) {
|
|
335
|
-
var content_0 = format.
|
|
343
|
+
var content_0 = format.h1o(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
336
344
|
tmp = new ByteArrayContent(content_0, contentType);
|
|
337
345
|
} else {
|
|
338
346
|
var message = 'Unsupported format ' + toString(format);
|
|
@@ -342,13 +350,13 @@
|
|
|
342
350
|
return tmp;
|
|
343
351
|
}
|
|
344
352
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
345
|
-
this.
|
|
353
|
+
this.j4e_1 = function_0;
|
|
346
354
|
}
|
|
347
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
348
|
-
return this.
|
|
355
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).c15 = function (value, $completion) {
|
|
356
|
+
return this.j4e_1(value, $completion);
|
|
349
357
|
};
|
|
350
358
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).r3 = function () {
|
|
351
|
-
return this.
|
|
359
|
+
return this.j4e_1;
|
|
352
360
|
};
|
|
353
361
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
354
362
|
var tmp;
|
|
@@ -369,13 +377,13 @@
|
|
|
369
377
|
return hashCode(this.r3());
|
|
370
378
|
};
|
|
371
379
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
372
|
-
this.
|
|
380
|
+
this.k4e_1 = function_0;
|
|
373
381
|
}
|
|
374
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
375
|
-
return this.
|
|
382
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).c15 = function (value, $completion) {
|
|
383
|
+
return this.k4e_1(value, $completion);
|
|
376
384
|
};
|
|
377
385
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).r3 = function () {
|
|
378
|
-
return this.
|
|
386
|
+
return this.k4e_1;
|
|
379
387
|
};
|
|
380
388
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
381
389
|
var tmp;
|
|
@@ -395,44 +403,44 @@
|
|
|
395
403
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
|
|
396
404
|
return hashCode(this.r3());
|
|
397
405
|
};
|
|
398
|
-
function
|
|
399
|
-
this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
403
|
-
this.
|
|
406
|
+
function KotlinxSerializationConverter$serialize$$inlined$map$1($this, $contentType, $charset, $typeInfo, $value) {
|
|
407
|
+
this.u4c_1 = $this;
|
|
408
|
+
this.v4c_1 = $contentType;
|
|
409
|
+
this.w4c_1 = $charset;
|
|
410
|
+
this.x4c_1 = $typeInfo;
|
|
411
|
+
this.y4c_1 = $value;
|
|
404
412
|
}
|
|
405
|
-
protoOf(
|
|
413
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).d15 = function (collector, $completion) {
|
|
406
414
|
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
407
|
-
tmp.
|
|
408
|
-
tmp.
|
|
409
|
-
return tmp.
|
|
415
|
+
tmp.g9_1 = Unit_instance;
|
|
416
|
+
tmp.h9_1 = null;
|
|
417
|
+
return tmp.m9();
|
|
410
418
|
};
|
|
411
|
-
protoOf(
|
|
412
|
-
return this.
|
|
419
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).e15 = function (collector, $completion) {
|
|
420
|
+
return this.d15(collector, $completion);
|
|
413
421
|
};
|
|
414
422
|
function KotlinxSerializationConverter$serialize$slambda(resultContinuation) {
|
|
415
423
|
CoroutineImpl.call(this, resultContinuation);
|
|
416
424
|
}
|
|
417
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
418
|
-
var tmp = this.
|
|
419
|
-
tmp.
|
|
420
|
-
tmp.
|
|
421
|
-
return tmp.
|
|
425
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).u4e = function (it, $completion) {
|
|
426
|
+
var tmp = this.v4e(it, $completion);
|
|
427
|
+
tmp.g9_1 = Unit_instance;
|
|
428
|
+
tmp.h9_1 = null;
|
|
429
|
+
return tmp.m9();
|
|
422
430
|
};
|
|
423
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
424
|
-
return this.
|
|
431
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).w9 = function (p1, $completion) {
|
|
432
|
+
return this.u4e((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
425
433
|
};
|
|
426
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
427
|
-
var suspendResult = this.
|
|
434
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).m9 = function () {
|
|
435
|
+
var suspendResult = this.g9_1;
|
|
428
436
|
$sm: do
|
|
429
437
|
try {
|
|
430
|
-
var tmp = this.
|
|
438
|
+
var tmp = this.e9_1;
|
|
431
439
|
if (tmp === 0) {
|
|
432
|
-
this.
|
|
433
|
-
return !(this.
|
|
440
|
+
this.f9_1 = 1;
|
|
441
|
+
return !(this.t4e_1 == null);
|
|
434
442
|
} else if (tmp === 1) {
|
|
435
|
-
throw this.
|
|
443
|
+
throw this.h9_1;
|
|
436
444
|
}
|
|
437
445
|
} catch ($p) {
|
|
438
446
|
var e = $p;
|
|
@@ -440,57 +448,57 @@
|
|
|
440
448
|
}
|
|
441
449
|
while (true);
|
|
442
450
|
};
|
|
443
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
451
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).v4e = function (it, completion) {
|
|
444
452
|
var i = new KotlinxSerializationConverter$serialize$slambda(completion);
|
|
445
|
-
i.
|
|
453
|
+
i.t4e_1 = it;
|
|
446
454
|
return i;
|
|
447
455
|
};
|
|
448
456
|
function KotlinxSerializationConverter$serialize$slambda_0(resultContinuation) {
|
|
449
457
|
var i = new KotlinxSerializationConverter$serialize$slambda(resultContinuation);
|
|
450
458
|
var l = function (it, $completion) {
|
|
451
|
-
return i.
|
|
459
|
+
return i.u4e(it, $completion);
|
|
452
460
|
};
|
|
453
461
|
l.$arity = 1;
|
|
454
462
|
return l;
|
|
455
463
|
}
|
|
456
|
-
function
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
464
|
+
function KotlinxSerializationConverter$deserialize$$inlined$map$1($this, $charset, $typeInfo, $content) {
|
|
465
|
+
this.f4e_1 = $this;
|
|
466
|
+
this.g4e_1 = $charset;
|
|
467
|
+
this.h4e_1 = $typeInfo;
|
|
468
|
+
this.i4e_1 = $content;
|
|
461
469
|
}
|
|
462
|
-
protoOf(
|
|
470
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).d15 = function (collector, $completion) {
|
|
463
471
|
var tmp = new $collectCOROUTINE$3(this, collector, $completion);
|
|
464
|
-
tmp.
|
|
465
|
-
tmp.
|
|
466
|
-
return tmp.
|
|
472
|
+
tmp.g9_1 = Unit_instance;
|
|
473
|
+
tmp.h9_1 = null;
|
|
474
|
+
return tmp.m9();
|
|
467
475
|
};
|
|
468
|
-
protoOf(
|
|
469
|
-
return this.
|
|
476
|
+
protoOf(KotlinxSerializationConverter$deserialize$$inlined$map$1).e15 = function (collector, $completion) {
|
|
477
|
+
return this.d15(collector, $completion);
|
|
470
478
|
};
|
|
471
479
|
function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
|
|
472
|
-
this.
|
|
480
|
+
this.e4f_1 = $content;
|
|
473
481
|
CoroutineImpl.call(this, resultContinuation);
|
|
474
482
|
}
|
|
475
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
476
|
-
var tmp = this.
|
|
477
|
-
tmp.
|
|
478
|
-
tmp.
|
|
479
|
-
return tmp.
|
|
483
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).w2t = function (it, $completion) {
|
|
484
|
+
var tmp = this.u2s(it, $completion);
|
|
485
|
+
tmp.g9_1 = Unit_instance;
|
|
486
|
+
tmp.h9_1 = null;
|
|
487
|
+
return tmp.m9();
|
|
480
488
|
};
|
|
481
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
482
|
-
return this.
|
|
489
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).w9 = function (p1, $completion) {
|
|
490
|
+
return this.w2t((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
483
491
|
};
|
|
484
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
485
|
-
var suspendResult = this.
|
|
492
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).m9 = function () {
|
|
493
|
+
var suspendResult = this.g9_1;
|
|
486
494
|
$sm: do
|
|
487
495
|
try {
|
|
488
|
-
var tmp = this.
|
|
496
|
+
var tmp = this.e9_1;
|
|
489
497
|
if (tmp === 0) {
|
|
490
|
-
this.
|
|
491
|
-
return !(this.
|
|
498
|
+
this.f9_1 = 1;
|
|
499
|
+
return !(this.f4f_1 == null) || this.e4f_1.d1h();
|
|
492
500
|
} else if (tmp === 1) {
|
|
493
|
-
throw this.
|
|
501
|
+
throw this.h9_1;
|
|
494
502
|
}
|
|
495
503
|
} catch ($p) {
|
|
496
504
|
var e = $p;
|
|
@@ -498,38 +506,38 @@
|
|
|
498
506
|
}
|
|
499
507
|
while (true);
|
|
500
508
|
};
|
|
501
|
-
protoOf(KotlinxSerializationConverter$deserialize$slambda).
|
|
502
|
-
var i = new KotlinxSerializationConverter$deserialize$slambda(this.
|
|
503
|
-
i.
|
|
509
|
+
protoOf(KotlinxSerializationConverter$deserialize$slambda).u2s = function (it, completion) {
|
|
510
|
+
var i = new KotlinxSerializationConverter$deserialize$slambda(this.e4f_1, completion);
|
|
511
|
+
i.f4f_1 = it;
|
|
504
512
|
return i;
|
|
505
513
|
};
|
|
506
514
|
function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
|
|
507
515
|
var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
|
|
508
516
|
var l = function (it, $completion) {
|
|
509
|
-
return i.
|
|
517
|
+
return i.w2t(it, $completion);
|
|
510
518
|
};
|
|
511
519
|
l.$arity = 1;
|
|
512
520
|
return l;
|
|
513
521
|
}
|
|
514
522
|
function $serializeCOROUTINE$0(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
515
523
|
CoroutineImpl.call(this, resultContinuation);
|
|
516
|
-
this.
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
524
|
+
this.o4f_1 = _this__u8e3s4;
|
|
525
|
+
this.p4f_1 = contentType;
|
|
526
|
+
this.q4f_1 = charset;
|
|
527
|
+
this.r4f_1 = typeInfo;
|
|
528
|
+
this.s4f_1 = value;
|
|
521
529
|
}
|
|
522
|
-
protoOf($serializeCOROUTINE$0).
|
|
523
|
-
var suspendResult = this.
|
|
530
|
+
protoOf($serializeCOROUTINE$0).m9 = function () {
|
|
531
|
+
var suspendResult = this.g9_1;
|
|
524
532
|
$sm: do
|
|
525
533
|
try {
|
|
526
|
-
var tmp = this.
|
|
534
|
+
var tmp = this.e9_1;
|
|
527
535
|
switch (tmp) {
|
|
528
536
|
case 0:
|
|
529
|
-
this.
|
|
530
|
-
this.
|
|
531
|
-
var this_0 = asFlow(this.
|
|
532
|
-
var tmp_0 = new
|
|
537
|
+
this.f9_1 = 2;
|
|
538
|
+
this.e9_1 = 1;
|
|
539
|
+
var this_0 = asFlow(this.o4f_1.u4f_1);
|
|
540
|
+
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.p4f_1, this.q4f_1, this.r4f_1, this.s4f_1);
|
|
533
541
|
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serialize$slambda_0(null), this);
|
|
534
542
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
535
543
|
return suspendResult;
|
|
@@ -542,12 +550,12 @@
|
|
|
542
550
|
return fromExtension;
|
|
543
551
|
var tmp_1;
|
|
544
552
|
try {
|
|
545
|
-
tmp_1 = serializerForTypeInfo(this.
|
|
553
|
+
tmp_1 = serializerForTypeInfo(this.o4f_1.t4f_1.g1o(), this.r4f_1);
|
|
546
554
|
} catch ($p) {
|
|
547
555
|
var tmp_2;
|
|
548
556
|
if ($p instanceof SerializationException) {
|
|
549
557
|
var cause = $p;
|
|
550
|
-
tmp_2 = guessSerializer(this.
|
|
558
|
+
tmp_2 = guessSerializer(this.s4f_1, this.o4f_1.t4f_1.g1o());
|
|
551
559
|
} else {
|
|
552
560
|
throw $p;
|
|
553
561
|
}
|
|
@@ -555,59 +563,59 @@
|
|
|
555
563
|
}
|
|
556
564
|
|
|
557
565
|
var serializer = tmp_1;
|
|
558
|
-
return serializeContent(this.
|
|
566
|
+
return serializeContent(this.o4f_1, serializer, this.o4f_1.t4f_1, this.s4f_1, this.p4f_1, this.q4f_1);
|
|
559
567
|
case 2:
|
|
560
|
-
throw this.
|
|
568
|
+
throw this.h9_1;
|
|
561
569
|
}
|
|
562
570
|
} catch ($p) {
|
|
563
571
|
var e = $p;
|
|
564
|
-
if (this.
|
|
572
|
+
if (this.f9_1 === 2) {
|
|
565
573
|
throw e;
|
|
566
574
|
} else {
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
575
|
+
this.e9_1 = this.f9_1;
|
|
576
|
+
this.h9_1 = e;
|
|
569
577
|
}
|
|
570
578
|
}
|
|
571
579
|
while (true);
|
|
572
580
|
};
|
|
573
581
|
function $deserializeCOROUTINE$1(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
574
582
|
CoroutineImpl.call(this, resultContinuation);
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
583
|
+
this.d4g_1 = _this__u8e3s4;
|
|
584
|
+
this.e4g_1 = charset;
|
|
585
|
+
this.f4g_1 = typeInfo;
|
|
586
|
+
this.g4g_1 = content;
|
|
579
587
|
}
|
|
580
|
-
protoOf($deserializeCOROUTINE$1).
|
|
581
|
-
var suspendResult = this.
|
|
588
|
+
protoOf($deserializeCOROUTINE$1).m9 = function () {
|
|
589
|
+
var suspendResult = this.g9_1;
|
|
582
590
|
$sm: do
|
|
583
591
|
try {
|
|
584
|
-
var tmp = this.
|
|
592
|
+
var tmp = this.e9_1;
|
|
585
593
|
switch (tmp) {
|
|
586
594
|
case 0:
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
var this_0 = asFlow(this.
|
|
590
|
-
var tmp_0 = new
|
|
591
|
-
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.
|
|
595
|
+
this.f9_1 = 4;
|
|
596
|
+
this.e9_1 = 1;
|
|
597
|
+
var this_0 = asFlow(this.d4g_1.u4f_1);
|
|
598
|
+
var tmp_0 = new KotlinxSerializationConverter$deserialize$$inlined$map$1(this_0, this.e4g_1, this.f4g_1, this.g4g_1);
|
|
599
|
+
suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.g4g_1, null), this);
|
|
592
600
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
601
|
return suspendResult;
|
|
594
602
|
}
|
|
595
603
|
|
|
596
604
|
continue $sm;
|
|
597
605
|
case 1:
|
|
598
|
-
this.
|
|
606
|
+
this.h4g_1 = suspendResult;
|
|
599
607
|
var tmp_1;
|
|
600
|
-
if (!this.
|
|
601
|
-
tmp_1 = !(this.
|
|
608
|
+
if (!this.d4g_1.u4f_1.h()) {
|
|
609
|
+
tmp_1 = !(this.h4g_1 == null) || this.g4g_1.d1h();
|
|
602
610
|
} else {
|
|
603
611
|
tmp_1 = false;
|
|
604
612
|
}
|
|
605
613
|
|
|
606
614
|
if (tmp_1)
|
|
607
|
-
return this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
suspendResult = readRemaining(this.
|
|
615
|
+
return this.h4g_1;
|
|
616
|
+
this.i4g_1 = serializerForTypeInfo(this.d4g_1.t4f_1.g1o(), this.f4g_1);
|
|
617
|
+
this.e9_1 = 2;
|
|
618
|
+
suspendResult = readRemaining(this.g4g_1, this);
|
|
611
619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
612
620
|
return suspendResult;
|
|
613
621
|
}
|
|
@@ -615,92 +623,90 @@
|
|
|
615
623
|
continue $sm;
|
|
616
624
|
case 2:
|
|
617
625
|
var contentPacket = suspendResult;
|
|
618
|
-
this.
|
|
619
|
-
var tmp0_subject = this.
|
|
626
|
+
this.f9_1 = 3;
|
|
627
|
+
var tmp0_subject = this.d4g_1.t4f_1;
|
|
620
628
|
var tmp_2;
|
|
621
629
|
if (isInterface(tmp0_subject, StringFormat)) {
|
|
622
|
-
tmp_2 = this.
|
|
630
|
+
tmp_2 = this.d4g_1.t4f_1.f1o(this.i4g_1, readText(contentPacket, this.e4g_1));
|
|
623
631
|
} else {
|
|
624
632
|
if (isInterface(tmp0_subject, BinaryFormat)) {
|
|
625
|
-
tmp_2 = this.
|
|
633
|
+
tmp_2 = this.d4g_1.t4f_1.i1o(this.i4g_1, readByteArray(contentPacket));
|
|
626
634
|
} else {
|
|
627
635
|
discard(contentPacket);
|
|
628
|
-
var message = 'Unsupported format ' + toString(this.
|
|
636
|
+
var message = 'Unsupported format ' + toString(this.d4g_1.t4f_1);
|
|
629
637
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
630
638
|
}
|
|
631
639
|
}
|
|
632
640
|
|
|
633
641
|
return tmp_2;
|
|
634
642
|
case 3:
|
|
635
|
-
this.
|
|
636
|
-
var tmp_3 = this.
|
|
643
|
+
this.f9_1 = 4;
|
|
644
|
+
var tmp_3 = this.h9_1;
|
|
637
645
|
if (tmp_3 instanceof Error) {
|
|
638
|
-
var cause = this.
|
|
646
|
+
var cause = this.h9_1;
|
|
639
647
|
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
640
648
|
} else {
|
|
641
|
-
throw this.
|
|
649
|
+
throw this.h9_1;
|
|
642
650
|
}
|
|
643
651
|
|
|
644
652
|
case 4:
|
|
645
|
-
throw this.
|
|
653
|
+
throw this.h9_1;
|
|
646
654
|
}
|
|
647
655
|
} catch ($p) {
|
|
648
656
|
var e = $p;
|
|
649
|
-
if (this.
|
|
657
|
+
if (this.f9_1 === 4) {
|
|
650
658
|
throw e;
|
|
651
659
|
} else {
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
660
|
+
this.e9_1 = this.f9_1;
|
|
661
|
+
this.h9_1 = e;
|
|
654
662
|
}
|
|
655
663
|
}
|
|
656
664
|
while (true);
|
|
657
665
|
};
|
|
658
666
|
function KotlinxSerializationConverter(format) {
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
// Inline function 'kotlin.require' call
|
|
667
|
+
this.t4f_1 = format;
|
|
668
|
+
this.u4f_1 = extensions(this.t4f_1);
|
|
662
669
|
var tmp;
|
|
663
|
-
var tmp_0 = this.
|
|
670
|
+
var tmp_0 = this.t4f_1;
|
|
664
671
|
if (isInterface(tmp_0, BinaryFormat)) {
|
|
665
672
|
tmp = true;
|
|
666
673
|
} else {
|
|
667
|
-
var tmp_1 = this.
|
|
674
|
+
var tmp_1 = this.t4f_1;
|
|
668
675
|
tmp = isInterface(tmp_1, StringFormat);
|
|
669
676
|
}
|
|
670
|
-
// Inline function 'kotlin.
|
|
677
|
+
// Inline function 'kotlin.require' call
|
|
671
678
|
if (!tmp) {
|
|
672
679
|
// Inline function 'io.ktor.serialization.kotlinx.KotlinxSerializationConverter.<anonymous>' call
|
|
673
|
-
var message = 'Only binary and string formats are supported, ' + toString(this.
|
|
680
|
+
var message = 'Only binary and string formats are supported, ' + toString(this.t4f_1) + ' is not supported.';
|
|
674
681
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
675
682
|
}
|
|
676
683
|
}
|
|
677
|
-
protoOf(KotlinxSerializationConverter).
|
|
684
|
+
protoOf(KotlinxSerializationConverter).j4g = function (contentType, charset, typeInfo, value, $completion) {
|
|
678
685
|
var tmp = new $serializeCOROUTINE$0(this, contentType, charset, typeInfo, value, $completion);
|
|
679
|
-
tmp.
|
|
680
|
-
tmp.
|
|
681
|
-
return tmp.
|
|
686
|
+
tmp.g9_1 = Unit_instance;
|
|
687
|
+
tmp.h9_1 = null;
|
|
688
|
+
return tmp.m9();
|
|
682
689
|
};
|
|
683
|
-
protoOf(KotlinxSerializationConverter).
|
|
684
|
-
return this.
|
|
690
|
+
protoOf(KotlinxSerializationConverter).l4b = function (contentType, charset, typeInfo, value, $completion) {
|
|
691
|
+
return this.j4g(contentType, charset, typeInfo, value, $completion);
|
|
685
692
|
};
|
|
686
|
-
protoOf(KotlinxSerializationConverter).
|
|
693
|
+
protoOf(KotlinxSerializationConverter).v2s = function (charset, typeInfo, content, $completion) {
|
|
687
694
|
var tmp = new $deserializeCOROUTINE$1(this, charset, typeInfo, content, $completion);
|
|
688
|
-
tmp.
|
|
689
|
-
tmp.
|
|
690
|
-
return tmp.
|
|
695
|
+
tmp.g9_1 = Unit_instance;
|
|
696
|
+
tmp.h9_1 = null;
|
|
697
|
+
return tmp.m9();
|
|
691
698
|
};
|
|
692
699
|
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
693
700
|
var module_0 = _this__u8e3s4;
|
|
694
|
-
var tmp0_safe_receiver = typeInfo.
|
|
701
|
+
var tmp0_safe_receiver = typeInfo.j2d_1;
|
|
695
702
|
var tmp;
|
|
696
703
|
if (tmp0_safe_receiver == null) {
|
|
697
704
|
tmp = null;
|
|
698
705
|
} else {
|
|
699
706
|
// Inline function 'kotlin.let' call
|
|
700
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
701
707
|
// Inline function 'io.ktor.serialization.kotlinx.serializerForTypeInfo.<anonymous>' call
|
|
702
708
|
var tmp_0;
|
|
703
|
-
if (tmp0_safe_receiver.
|
|
709
|
+
if (tmp0_safe_receiver.ub().h()) {
|
|
704
710
|
tmp_0 = null;
|
|
705
711
|
} else {
|
|
706
712
|
tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
@@ -710,13 +716,13 @@
|
|
|
710
716
|
var tmp1_elvis_lhs = tmp;
|
|
711
717
|
var tmp_1;
|
|
712
718
|
if (tmp1_elvis_lhs == null) {
|
|
713
|
-
var tmp2_safe_receiver = module_0.
|
|
719
|
+
var tmp2_safe_receiver = module_0.l1o(typeInfo.i2d_1);
|
|
714
720
|
tmp_1 = tmp2_safe_receiver == null ? null : maybeNullable(tmp2_safe_receiver, typeInfo);
|
|
715
721
|
} else {
|
|
716
722
|
tmp_1 = tmp1_elvis_lhs;
|
|
717
723
|
}
|
|
718
724
|
var tmp3_elvis_lhs = tmp_1;
|
|
719
|
-
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.
|
|
725
|
+
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.i2d_1), typeInfo) : tmp3_elvis_lhs;
|
|
720
726
|
}
|
|
721
727
|
function guessSerializer(value, module_0) {
|
|
722
728
|
var tmp;
|
|
@@ -733,7 +739,6 @@
|
|
|
733
739
|
tmp_0 = null;
|
|
734
740
|
} else {
|
|
735
741
|
// Inline function 'kotlin.let' call
|
|
736
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
737
742
|
// Inline function 'io.ktor.serialization.kotlinx.guessSerializer.<anonymous>' call
|
|
738
743
|
tmp_0 = guessSerializer(tmp1_safe_receiver, module_0);
|
|
739
744
|
}
|
|
@@ -748,7 +753,7 @@
|
|
|
748
753
|
var valueSerializer = elementSerializer(value.m2(), module_0);
|
|
749
754
|
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
750
755
|
} else {
|
|
751
|
-
var tmp3_elvis_lhs = module_0.
|
|
756
|
+
var tmp3_elvis_lhs = module_0.l1o(getKClassFromExpression(value));
|
|
752
757
|
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
753
758
|
}
|
|
754
759
|
}
|
|
@@ -760,8 +765,8 @@
|
|
|
760
765
|
}
|
|
761
766
|
function maybeNullable(_this__u8e3s4, typeInfo) {
|
|
762
767
|
var tmp;
|
|
763
|
-
var tmp0_safe_receiver = typeInfo.
|
|
764
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
768
|
+
var tmp0_safe_receiver = typeInfo.j2d_1;
|
|
769
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.vb()) === true) {
|
|
765
770
|
tmp = get_nullable(_this__u8e3s4);
|
|
766
771
|
} else {
|
|
767
772
|
tmp = _this__u8e3s4;
|
|
@@ -769,48 +774,48 @@
|
|
|
769
774
|
return tmp;
|
|
770
775
|
}
|
|
771
776
|
function elementSerializer(_this__u8e3s4, module_0) {
|
|
772
|
-
// Inline function 'kotlin.collections.distinctBy' call
|
|
773
777
|
// Inline function 'kotlin.collections.map' call
|
|
774
778
|
var this_0 = filterNotNull(_this__u8e3s4);
|
|
775
779
|
// Inline function 'kotlin.collections.mapTo' call
|
|
776
780
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
777
|
-
var
|
|
778
|
-
while (
|
|
779
|
-
var item =
|
|
781
|
+
var _iterator__ex2g4s = this_0.p();
|
|
782
|
+
while (_iterator__ex2g4s.q()) {
|
|
783
|
+
var item = _iterator__ex2g4s.r();
|
|
780
784
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
781
785
|
var tmp$ret$0 = guessSerializer(item, module_0);
|
|
782
786
|
destination.k(tmp$ret$0);
|
|
783
787
|
}
|
|
788
|
+
// Inline function 'kotlin.collections.distinctBy' call
|
|
784
789
|
var set = HashSet_init_$Create$();
|
|
785
790
|
var list = ArrayList_init_$Create$();
|
|
786
|
-
var
|
|
787
|
-
while (
|
|
788
|
-
var e =
|
|
791
|
+
var _iterator__ex2g4s_0 = destination.p();
|
|
792
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
793
|
+
var e = _iterator__ex2g4s_0.r();
|
|
789
794
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
790
|
-
var key = e.
|
|
795
|
+
var key = e.b1n().c1o();
|
|
791
796
|
if (set.k(key)) {
|
|
792
797
|
list.k(e);
|
|
793
798
|
}
|
|
794
799
|
}
|
|
795
800
|
var serializers = list;
|
|
796
801
|
if (serializers.s() > 1) {
|
|
797
|
-
// Inline function 'kotlin.error' call
|
|
798
802
|
// Inline function 'kotlin.collections.map' call
|
|
799
803
|
// Inline function 'kotlin.collections.mapTo' call
|
|
800
804
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
801
|
-
var
|
|
802
|
-
while (
|
|
803
|
-
var item_0 =
|
|
805
|
+
var _iterator__ex2g4s_1 = serializers.p();
|
|
806
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
807
|
+
var item_0 = _iterator__ex2g4s_1.r();
|
|
804
808
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
805
|
-
var tmp$ret$5 = item_0.
|
|
809
|
+
var tmp$ret$5 = item_0.b1n().c1o();
|
|
806
810
|
destination_0.k(tmp$ret$5);
|
|
807
811
|
}
|
|
812
|
+
// Inline function 'kotlin.error' call
|
|
808
813
|
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
|
|
809
814
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
810
815
|
}
|
|
811
816
|
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
812
817
|
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
813
|
-
if (selected.
|
|
818
|
+
if (selected.b1n().p1o()) {
|
|
814
819
|
return selected;
|
|
815
820
|
}
|
|
816
821
|
if (!isInterface(selected, KSerializer))
|
|
@@ -828,9 +833,9 @@
|
|
|
828
833
|
tmp$ret$8 = false;
|
|
829
834
|
break $l$block_0;
|
|
830
835
|
}
|
|
831
|
-
var
|
|
832
|
-
while (
|
|
833
|
-
var element =
|
|
836
|
+
var _iterator__ex2g4s_2 = _this__u8e3s4.p();
|
|
837
|
+
while (_iterator__ex2g4s_2.q()) {
|
|
838
|
+
var element = _iterator__ex2g4s_2.r();
|
|
834
839
|
// Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
|
|
835
840
|
if (element == null) {
|
|
836
841
|
tmp$ret$8 = true;
|
|
@@ -853,5 +858,3 @@
|
|
|
853
858
|
//endregion
|
|
854
859
|
return _;
|
|
855
860
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./ktor-ktor-shared-ktor-serialization.js')));
|
|
856
|
-
|
|
857
|
-
//# sourceMappingURL=ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map
|