raspberry_games_server_game_logic 1.8.248

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.
Files changed (68) hide show
  1. package/Kosi-Kaverit-kaverit.js +339 -0
  2. package/Kosi-Kaverit-kaverit.js.map +1 -0
  3. package/Kosi-Kodein-kodein-di.js +2389 -0
  4. package/Kosi-Kodein-kodein-di.js.map +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime.js +6215 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
  7. package/Logic_Debertz-core.js +6885 -0
  8. package/Logic_Debertz-core.js.map +1 -0
  9. package/Logic_Debertz-engine.js +52055 -0
  10. package/Logic_Debertz-engine.js.map +1 -0
  11. package/Logic_Debertz-game_server.d.ts +1918 -0
  12. package/Logic_Debertz-game_server.js +5140 -0
  13. package/Logic_Debertz-game_server.js.map +1 -0
  14. package/kotlin-kotlin-stdlib.js +15597 -0
  15. package/kotlin-kotlin-stdlib.js.map +1 -0
  16. package/kotlin-kotlinx-atomicfu-runtime.js +15 -0
  17. package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -0
  18. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
  20. package/kotlinx-atomicfu.js +276 -0
  21. package/kotlinx-atomicfu.js.map +1 -0
  22. package/kotlinx-coroutines-core.js +11628 -0
  23. package/kotlinx-coroutines-core.js.map +1 -0
  24. package/kotlinx-io-kotlinx-io-bytestring.js +15 -0
  25. package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
  26. package/kotlinx-io-kotlinx-io-core.js +1557 -0
  27. package/kotlinx-io-kotlinx-io-core.js.map +1 -0
  28. package/kotlinx-serialization-kotlinx-serialization-core.js +6315 -0
  29. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
  30. package/kotlinx-serialization-kotlinx-serialization-json.js +5092 -0
  31. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
  32. package/ktor-ktor-client-content-negotiation.js +713 -0
  33. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  34. package/ktor-ktor-client-core.js +7235 -0
  35. package/ktor-ktor-client-core.js.map +1 -0
  36. package/ktor-ktor-client-js.js +15 -0
  37. package/ktor-ktor-client-js.js.map +1 -0
  38. package/ktor-ktor-client-logging.js +1530 -0
  39. package/ktor-ktor-client-logging.js.map +1 -0
  40. package/ktor-ktor-events.js +97 -0
  41. package/ktor-ktor-events.js.map +1 -0
  42. package/ktor-ktor-http.js +3285 -0
  43. package/ktor-ktor-http.js.map +1 -0
  44. package/ktor-ktor-io.js +6463 -0
  45. package/ktor-ktor-io.js.map +1 -0
  46. package/ktor-ktor-serialization-kotlinx-json.js +67 -0
  47. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  48. package/ktor-ktor-serialization-kotlinx.js +893 -0
  49. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  50. package/ktor-ktor-serialization.js +395 -0
  51. package/ktor-ktor-serialization.js.map +1 -0
  52. package/ktor-ktor-utils.js +2659 -0
  53. package/ktor-ktor-utils.js.map +1 -0
  54. package/ktor-ktor-websocket-serialization.js +15 -0
  55. package/ktor-ktor-websocket-serialization.js.map +1 -0
  56. package/ktor-ktor-websockets.js +466 -0
  57. package/ktor-ktor-websockets.js.map +1 -0
  58. package/package.json +13 -0
  59. package/raspberry-cardgame-lib-core.js +1429 -0
  60. package/raspberry-cardgame-lib-core.js.map +1 -0
  61. package/raspberry-cardgame-lib-logger.js +423 -0
  62. package/raspberry-cardgame-lib-logger.js.map +1 -0
  63. package/raspberry-cardgame-lib-random.js +3060 -0
  64. package/raspberry-cardgame-lib-random.js.map +1 -0
  65. package/secure-random-secure-random.js +173 -0
  66. package/secure-random-secure-random.js.map +1 -0
  67. package/uuid.js +163 -0
  68. package/uuid.js.map +1 -0
@@ -0,0 +1,893 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './ktor-ktor-io.js', './ktor-ktor-serialization.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(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('./ktor-ktor-serialization.js'));
6
+ else {
7
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
8
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
12
+ }
13
+ if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
14
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
15
+ }
16
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
17
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
18
+ }
19
+ if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
20
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
21
+ }
22
+ if (typeof globalThis['ktor-ktor-serialization'] === 'undefined') {
23
+ throw new Error("Error loading module 'ktor-ktor-serialization-kotlinx'. Its dependency 'ktor-ktor-serialization' was not found. Please, check whether 'ktor-ktor-serialization' is loaded prior to 'ktor-ktor-serialization-kotlinx'.");
24
+ }
25
+ globalThis['ktor-ktor-serialization-kotlinx'] = factory(typeof globalThis['ktor-ktor-serialization-kotlinx'] === 'undefined' ? {} : globalThis['ktor-ktor-serialization-kotlinx'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-serialization']);
26
+ }
27
+ }(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_serialization) {
28
+ 'use strict';
29
+ //region block: imports
30
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
31
+ var Unit_instance = kotlin_kotlin.$_$.p5;
32
+ var CoroutineImpl = kotlin_kotlin.$_$.va;
33
+ var protoOf = kotlin_kotlin.$_$.uc;
34
+ var THROW_CCE = kotlin_kotlin.$_$.rg;
35
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
36
+ var initMetadataForLambda = kotlin_kotlin.$_$.xb;
37
+ var VOID = kotlin_kotlin.$_$.f;
38
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
39
+ var toString = kotlin_kotlin.$_$.yc;
40
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
41
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
42
+ var isInterface = kotlin_kotlin.$_$.hc;
43
+ var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.j;
44
+ var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m2;
45
+ var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.k1;
46
+ var TextContent = kotlin_io_ktor_ktor_http.$_$.q;
47
+ var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t2;
48
+ var equals = kotlin_kotlin.$_$.lb;
49
+ var FunctionAdapter = kotlin_kotlin.$_$.za;
50
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
51
+ var hashCode = kotlin_kotlin.$_$.sb;
52
+ var initMetadataForClass = kotlin_kotlin.$_$.tb;
53
+ var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
54
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
55
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
56
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b;
57
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
58
+ var discard = kotlin_io_ktor_ktor_io.$_$.w;
59
+ var readBytes = kotlin_io_ktor_ktor_io.$_$.x;
60
+ var readText = kotlin_io_ktor_ktor_io.$_$.z;
61
+ var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.e;
62
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
63
+ var ContentConverter = kotlin_io_ktor_ktor_serialization.$_$.d;
64
+ var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w2;
65
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2;
66
+ var getKClassFromExpression = kotlin_kotlin.$_$.d;
67
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
68
+ var KtMap = kotlin_kotlin.$_$.a6;
69
+ var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
70
+ var KtSet = kotlin_kotlin.$_$.f6;
71
+ var firstOrNull_0 = kotlin_kotlin.$_$.t7;
72
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.c5;
73
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
74
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
75
+ var isArray = kotlin_kotlin.$_$.zb;
76
+ var KtList = kotlin_kotlin.$_$.x5;
77
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
78
+ var filterNotNull = kotlin_kotlin.$_$.q7;
79
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
80
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
81
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.t;
82
+ var singleOrNull = kotlin_kotlin.$_$.h9;
83
+ var Collection = kotlin_kotlin.$_$.r5;
84
+ var emptyList = kotlin_kotlin.$_$.n7;
85
+ //endregion
86
+ //region block: pre-declaration
87
+ initMetadataForLambda(KotlinxSerializationConverter$serializeNullable$o$collect$slambda, CoroutineImpl, VOID, [1]);
88
+ initMetadataForCoroutine($collectCOROUTINE$2, CoroutineImpl);
89
+ initMetadataForLambda(KotlinxSerializationConverter$deserialize$o$collect$slambda, CoroutineImpl, VOID, [1]);
90
+ initMetadataForCoroutine($collectCOROUTINE$3, CoroutineImpl);
91
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
92
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
93
+ initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, [Flow], [1]);
94
+ initMetadataForLambda(KotlinxSerializationConverter$serializeNullable$slambda, CoroutineImpl, VOID, [1]);
95
+ initMetadataForClass(_no_name_provided__qut3iv_0, VOID, VOID, VOID, [Flow], [1]);
96
+ initMetadataForLambda(KotlinxSerializationConverter$deserialize$slambda, CoroutineImpl, VOID, [1]);
97
+ initMetadataForCoroutine($serializeNullableCOROUTINE$0, CoroutineImpl);
98
+ initMetadataForCoroutine($deserializeCOROUTINE$1, CoroutineImpl);
99
+ initMetadataForClass(KotlinxSerializationConverter, 'KotlinxSerializationConverter', VOID, VOID, [ContentConverter], [4, 3]);
100
+ //endregion
101
+ function extensions(format) {
102
+ // Inline function 'kotlin.collections.mapNotNull' call
103
+ // Inline function 'kotlin.collections.mapNotNullTo' call
104
+ var this_0 = get_providers();
105
+ var destination = ArrayList_init_$Create$();
106
+ // Inline function 'kotlin.collections.forEach' call
107
+ var tmp0_iterator = this_0.j();
108
+ while (tmp0_iterator.k()) {
109
+ var element = tmp0_iterator.l();
110
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
111
+ // Inline function 'io.ktor.serialization.kotlinx.extensions.<anonymous>' call
112
+ var tmp0_safe_receiver = element.l4m(format);
113
+ if (tmp0_safe_receiver == null)
114
+ null;
115
+ else {
116
+ // Inline function 'kotlin.let' call
117
+ // Inline function 'kotlin.contracts.contract' call
118
+ destination.e(tmp0_safe_receiver);
119
+ }
120
+ }
121
+ return destination;
122
+ }
123
+ function serialization(_this__u8e3s4, contentType, format) {
124
+ _this__u8e3s4.t2n(contentType, new KotlinxSerializationConverter(format));
125
+ }
126
+ function KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
127
+ this.u4m_1 = $$this$unsafeFlow;
128
+ this.v4m_1 = $contentType;
129
+ this.w4m_1 = $charset;
130
+ this.x4m_1 = $typeInfo;
131
+ this.y4m_1 = $value;
132
+ CoroutineImpl.call(this, resultContinuation);
133
+ }
134
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).t1e = function (value, $completion) {
135
+ var tmp = this.u1e(value, $completion);
136
+ tmp.g9_1 = Unit_instance;
137
+ tmp.h9_1 = null;
138
+ return tmp.m9();
139
+ };
140
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).w9 = function (p1, $completion) {
141
+ return this.t1e((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
142
+ };
143
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).m9 = function () {
144
+ var suspendResult = this.g9_1;
145
+ $sm: do
146
+ try {
147
+ var tmp = this.e9_1;
148
+ switch (tmp) {
149
+ case 0:
150
+ this.f9_1 = 3;
151
+ var tmp_0 = this;
152
+ tmp_0.a4n_1 = this.u4m_1;
153
+ var tmp_1 = this;
154
+ tmp_1.b4n_1 = this.z4m_1;
155
+ var tmp_2 = this;
156
+ tmp_2.c4n_1 = this.b4n_1;
157
+ this.e9_1 = 1;
158
+ suspendResult = this.c4n_1.e4n(this.v4m_1, this.w4m_1, this.x4m_1, this.y4m_1, this);
159
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
160
+ return suspendResult;
161
+ }
162
+
163
+ continue $sm;
164
+ case 1:
165
+ this.d4n_1 = suspendResult;
166
+ this.e9_1 = 2;
167
+ suspendResult = this.a4n_1.p18(this.d4n_1, this);
168
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
169
+ return suspendResult;
170
+ }
171
+
172
+ continue $sm;
173
+ case 2:
174
+ return Unit_instance;
175
+ case 3:
176
+ throw this.h9_1;
177
+ }
178
+ } catch ($p) {
179
+ var e = $p;
180
+ if (this.f9_1 === 3) {
181
+ throw e;
182
+ } else {
183
+ this.e9_1 = this.f9_1;
184
+ this.h9_1 = e;
185
+ }
186
+ }
187
+ while (true);
188
+ };
189
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).u1e = function (value, completion) {
190
+ var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda(this.u4m_1, this.v4m_1, this.w4m_1, this.x4m_1, this.y4m_1, completion);
191
+ i.z4m_1 = value;
192
+ return i;
193
+ };
194
+ function KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
195
+ var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
196
+ var l = function (value, $completion) {
197
+ return i.t1e(value, $completion);
198
+ };
199
+ l.$arity = 1;
200
+ return l;
201
+ }
202
+ function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
203
+ CoroutineImpl.call(this, resultContinuation);
204
+ this.n4n_1 = _this__u8e3s4;
205
+ this.o4n_1 = collector;
206
+ }
207
+ protoOf($collectCOROUTINE$2).m9 = function () {
208
+ var suspendResult = this.g9_1;
209
+ $sm: do
210
+ try {
211
+ var tmp = this.e9_1;
212
+ switch (tmp) {
213
+ case 0:
214
+ this.f9_1 = 2;
215
+ var tmp_0 = this;
216
+ tmp_0.p4n_1 = this.o4n_1;
217
+ this.e9_1 = 1;
218
+ var tmp_1 = KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0(this.p4n_1, this.n4n_1.r4n_1, this.n4n_1.s4n_1, this.n4n_1.t4n_1, this.n4n_1.u4n_1, null);
219
+ suspendResult = this.n4n_1.q4n_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
220
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
221
+ return suspendResult;
222
+ }
223
+
224
+ continue $sm;
225
+ case 1:
226
+ return Unit_instance;
227
+ case 2:
228
+ throw this.h9_1;
229
+ }
230
+ } catch ($p) {
231
+ var e = $p;
232
+ if (this.f9_1 === 2) {
233
+ throw e;
234
+ } else {
235
+ this.e9_1 = this.f9_1;
236
+ this.h9_1 = e;
237
+ }
238
+ }
239
+ while (true);
240
+ };
241
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
242
+ this.d4o_1 = $$this$unsafeFlow;
243
+ this.e4o_1 = $charset;
244
+ this.f4o_1 = $typeInfo;
245
+ this.g4o_1 = $content;
246
+ CoroutineImpl.call(this, resultContinuation);
247
+ }
248
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).t1e = function (value, $completion) {
249
+ var tmp = this.u1e(value, $completion);
250
+ tmp.g9_1 = Unit_instance;
251
+ tmp.h9_1 = null;
252
+ return tmp.m9();
253
+ };
254
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).w9 = function (p1, $completion) {
255
+ return this.t1e((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
256
+ };
257
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).m9 = function () {
258
+ var suspendResult = this.g9_1;
259
+ $sm: do
260
+ try {
261
+ var tmp = this.e9_1;
262
+ switch (tmp) {
263
+ case 0:
264
+ this.f9_1 = 3;
265
+ var tmp_0 = this;
266
+ tmp_0.i4o_1 = this.d4o_1;
267
+ var tmp_1 = this;
268
+ tmp_1.j4o_1 = this.h4o_1;
269
+ var tmp_2 = this;
270
+ tmp_2.k4o_1 = this.j4o_1;
271
+ this.e9_1 = 1;
272
+ suspendResult = this.k4o_1.w2n(this.e4o_1, this.f4o_1, this.g4o_1, this);
273
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
274
+ return suspendResult;
275
+ }
276
+
277
+ continue $sm;
278
+ case 1:
279
+ this.l4o_1 = suspendResult;
280
+ this.e9_1 = 2;
281
+ suspendResult = this.i4o_1.p18(this.l4o_1, this);
282
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
283
+ return suspendResult;
284
+ }
285
+
286
+ continue $sm;
287
+ case 2:
288
+ return Unit_instance;
289
+ case 3:
290
+ throw this.h9_1;
291
+ }
292
+ } catch ($p) {
293
+ var e = $p;
294
+ if (this.f9_1 === 3) {
295
+ throw e;
296
+ } else {
297
+ this.e9_1 = this.f9_1;
298
+ this.h9_1 = e;
299
+ }
300
+ }
301
+ while (true);
302
+ };
303
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).u1e = function (value, completion) {
304
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.d4o_1, this.e4o_1, this.f4o_1, this.g4o_1, completion);
305
+ i.h4o_1 = value;
306
+ return i;
307
+ };
308
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation) {
309
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $content, resultContinuation);
310
+ var l = function (value, $completion) {
311
+ return i.t1e(value, $completion);
312
+ };
313
+ l.$arity = 1;
314
+ return l;
315
+ }
316
+ function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
317
+ CoroutineImpl.call(this, resultContinuation);
318
+ this.u4o_1 = _this__u8e3s4;
319
+ this.v4o_1 = collector;
320
+ }
321
+ protoOf($collectCOROUTINE$3).m9 = function () {
322
+ var suspendResult = this.g9_1;
323
+ $sm: do
324
+ try {
325
+ var tmp = this.e9_1;
326
+ switch (tmp) {
327
+ case 0:
328
+ this.f9_1 = 2;
329
+ var tmp_0 = this;
330
+ tmp_0.w4o_1 = this.v4o_1;
331
+ this.e9_1 = 1;
332
+ var tmp_1 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.w4o_1, this.u4o_1.y4o_1, this.u4o_1.z4o_1, this.u4o_1.a4p_1, null);
333
+ suspendResult = this.u4o_1.x4o_1.m17(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_1), this);
334
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
335
+ return suspendResult;
336
+ }
337
+
338
+ continue $sm;
339
+ case 1:
340
+ return Unit_instance;
341
+ case 2:
342
+ throw this.h9_1;
343
+ }
344
+ } catch ($p) {
345
+ var e = $p;
346
+ if (this.f9_1 === 2) {
347
+ throw e;
348
+ } else {
349
+ this.e9_1 = this.f9_1;
350
+ this.h9_1 = e;
351
+ }
352
+ }
353
+ while (true);
354
+ };
355
+ function serializeContent($this, serializer, format, value, contentType, charset) {
356
+ var tmp;
357
+ if (isInterface(format, StringFormat)) {
358
+ var content = format.h42(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
359
+ tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
360
+ } else {
361
+ if (isInterface(format, BinaryFormat)) {
362
+ var content_0 = format.k42(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
363
+ tmp = new ByteArrayContent(content_0, contentType);
364
+ } else {
365
+ var message = 'Unsupported format ' + toString(format);
366
+ throw IllegalStateException_init_$Create$(toString(message));
367
+ }
368
+ }
369
+ return tmp;
370
+ }
371
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
372
+ this.b4p_1 = function_0;
373
+ }
374
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).p18 = function (value, $completion) {
375
+ return this.b4p_1(value, $completion);
376
+ };
377
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o3 = function () {
378
+ return this.b4p_1;
379
+ };
380
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
381
+ var tmp;
382
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
383
+ var tmp_0;
384
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
385
+ tmp_0 = equals(this.o3(), other.o3());
386
+ } else {
387
+ tmp_0 = false;
388
+ }
389
+ tmp = tmp_0;
390
+ } else {
391
+ tmp = false;
392
+ }
393
+ return tmp;
394
+ };
395
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
396
+ return hashCode(this.o3());
397
+ };
398
+ function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
399
+ this.c4p_1 = function_0;
400
+ }
401
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).p18 = function (value, $completion) {
402
+ return this.c4p_1(value, $completion);
403
+ };
404
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o3 = function () {
405
+ return this.c4p_1;
406
+ };
407
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
408
+ var tmp;
409
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
410
+ var tmp_0;
411
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
412
+ tmp_0 = equals(this.o3(), other.o3());
413
+ } else {
414
+ tmp_0 = false;
415
+ }
416
+ tmp = tmp_0;
417
+ } else {
418
+ tmp = false;
419
+ }
420
+ return tmp;
421
+ };
422
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
423
+ return hashCode(this.o3());
424
+ };
425
+ function _no_name_provided__qut3iv($this, $contentType, $charset, $typeInfo, $value) {
426
+ this.q4n_1 = $this;
427
+ this.r4n_1 = $contentType;
428
+ this.s4n_1 = $charset;
429
+ this.t4n_1 = $typeInfo;
430
+ this.u4n_1 = $value;
431
+ }
432
+ protoOf(_no_name_provided__qut3iv).q18 = function (collector, $completion) {
433
+ var tmp = new $collectCOROUTINE$2(this, collector, $completion);
434
+ tmp.g9_1 = Unit_instance;
435
+ tmp.h9_1 = null;
436
+ return tmp.m9();
437
+ };
438
+ protoOf(_no_name_provided__qut3iv).m17 = function (collector, $completion) {
439
+ return this.q18(collector, $completion);
440
+ };
441
+ function KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation) {
442
+ CoroutineImpl.call(this, resultContinuation);
443
+ }
444
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).m4p = function (it, $completion) {
445
+ var tmp = this.n4p(it, $completion);
446
+ tmp.g9_1 = Unit_instance;
447
+ tmp.h9_1 = null;
448
+ return tmp.m9();
449
+ };
450
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).w9 = function (p1, $completion) {
451
+ return this.m4p((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
452
+ };
453
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).m9 = function () {
454
+ var suspendResult = this.g9_1;
455
+ $sm: do
456
+ try {
457
+ var tmp = this.e9_1;
458
+ if (tmp === 0) {
459
+ this.f9_1 = 1;
460
+ return !(this.l4p_1 == null);
461
+ } else if (tmp === 1) {
462
+ throw this.h9_1;
463
+ }
464
+ } catch ($p) {
465
+ var e = $p;
466
+ throw e;
467
+ }
468
+ while (true);
469
+ };
470
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).n4p = function (it, completion) {
471
+ var i = new KotlinxSerializationConverter$serializeNullable$slambda(completion);
472
+ i.l4p_1 = it;
473
+ return i;
474
+ };
475
+ function KotlinxSerializationConverter$serializeNullable$slambda_0(resultContinuation) {
476
+ var i = new KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation);
477
+ var l = function (it, $completion) {
478
+ return i.m4p(it, $completion);
479
+ };
480
+ l.$arity = 1;
481
+ return l;
482
+ }
483
+ function _no_name_provided__qut3iv_0($this, $charset, $typeInfo, $content) {
484
+ this.x4o_1 = $this;
485
+ this.y4o_1 = $charset;
486
+ this.z4o_1 = $typeInfo;
487
+ this.a4p_1 = $content;
488
+ }
489
+ protoOf(_no_name_provided__qut3iv_0).q18 = function (collector, $completion) {
490
+ var tmp = new $collectCOROUTINE$3(this, collector, $completion);
491
+ tmp.g9_1 = Unit_instance;
492
+ tmp.h9_1 = null;
493
+ return tmp.m9();
494
+ };
495
+ protoOf(_no_name_provided__qut3iv_0).m17 = function (collector, $completion) {
496
+ return this.q18(collector, $completion);
497
+ };
498
+ function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
499
+ this.w4p_1 = $content;
500
+ CoroutineImpl.call(this, resultContinuation);
501
+ }
502
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).a2q = function (it, $completion) {
503
+ var tmp = this.u1e(it, $completion);
504
+ tmp.g9_1 = Unit_instance;
505
+ tmp.h9_1 = null;
506
+ return tmp.m9();
507
+ };
508
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).w9 = function (p1, $completion) {
509
+ return this.a2q((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
510
+ };
511
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).m9 = function () {
512
+ var suspendResult = this.g9_1;
513
+ $sm: do
514
+ try {
515
+ var tmp = this.e9_1;
516
+ if (tmp === 0) {
517
+ this.f9_1 = 1;
518
+ return !(this.x4p_1 == null) || this.w4p_1.q1o();
519
+ } else if (tmp === 1) {
520
+ throw this.h9_1;
521
+ }
522
+ } catch ($p) {
523
+ var e = $p;
524
+ throw e;
525
+ }
526
+ while (true);
527
+ };
528
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).u1e = function (it, completion) {
529
+ var i = new KotlinxSerializationConverter$deserialize$slambda(this.w4p_1, completion);
530
+ i.x4p_1 = it;
531
+ return i;
532
+ };
533
+ function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
534
+ var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
535
+ var l = function (it, $completion) {
536
+ return i.a2q(it, $completion);
537
+ };
538
+ l.$arity = 1;
539
+ return l;
540
+ }
541
+ function $serializeNullableCOROUTINE$0(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
542
+ CoroutineImpl.call(this, resultContinuation);
543
+ this.g4q_1 = _this__u8e3s4;
544
+ this.h4q_1 = contentType;
545
+ this.i4q_1 = charset;
546
+ this.j4q_1 = typeInfo;
547
+ this.k4q_1 = value;
548
+ }
549
+ protoOf($serializeNullableCOROUTINE$0).m9 = function () {
550
+ var suspendResult = this.g9_1;
551
+ $sm: do
552
+ try {
553
+ var tmp = this.e9_1;
554
+ switch (tmp) {
555
+ case 0:
556
+ this.f9_1 = 2;
557
+ this.e9_1 = 1;
558
+ var this_0 = asFlow(this.g4q_1.m4q_1);
559
+ var tmp_0 = new _no_name_provided__qut3iv(this_0, this.h4q_1, this.i4q_1, this.j4q_1, this.k4q_1);
560
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serializeNullable$slambda_0(null), this);
561
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
562
+ return suspendResult;
563
+ }
564
+
565
+ continue $sm;
566
+ case 1:
567
+ var fromExtension = suspendResult;
568
+ if (!(fromExtension == null))
569
+ return fromExtension;
570
+ var tmp_1;
571
+ try {
572
+ tmp_1 = serializerForTypeInfo(this.g4q_1.l4q_1.j42(), this.j4q_1);
573
+ } catch ($p) {
574
+ var tmp_2;
575
+ if ($p instanceof SerializationException) {
576
+ var cause = $p;
577
+ tmp_2 = guessSerializer(this.k4q_1, this.g4q_1.l4q_1.j42());
578
+ } else {
579
+ throw $p;
580
+ }
581
+ tmp_1 = tmp_2;
582
+ }
583
+
584
+ var serializer = tmp_1;
585
+ return serializeContent(this.g4q_1, serializer, this.g4q_1.l4q_1, this.k4q_1, this.h4q_1, this.i4q_1);
586
+ case 2:
587
+ throw this.h9_1;
588
+ }
589
+ } catch ($p) {
590
+ var e = $p;
591
+ if (this.f9_1 === 2) {
592
+ throw e;
593
+ } else {
594
+ this.e9_1 = this.f9_1;
595
+ this.h9_1 = e;
596
+ }
597
+ }
598
+ while (true);
599
+ };
600
+ function $deserializeCOROUTINE$1(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
601
+ CoroutineImpl.call(this, resultContinuation);
602
+ this.v4q_1 = _this__u8e3s4;
603
+ this.w4q_1 = charset;
604
+ this.x4q_1 = typeInfo;
605
+ this.y4q_1 = content;
606
+ }
607
+ protoOf($deserializeCOROUTINE$1).m9 = function () {
608
+ var suspendResult = this.g9_1;
609
+ $sm: do
610
+ try {
611
+ var tmp = this.e9_1;
612
+ switch (tmp) {
613
+ case 0:
614
+ this.f9_1 = 5;
615
+ this.e9_1 = 1;
616
+ var this_0 = asFlow(this.v4q_1.m4q_1);
617
+ var tmp_0 = new _no_name_provided__qut3iv_0(this_0, this.w4q_1, this.x4q_1, this.y4q_1);
618
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.y4q_1, null), this);
619
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
620
+ return suspendResult;
621
+ }
622
+
623
+ continue $sm;
624
+ case 1:
625
+ this.z4q_1 = suspendResult;
626
+ var tmp_1;
627
+ if (!this.v4q_1.m4q_1.p()) {
628
+ tmp_1 = !(this.z4q_1 == null) || this.y4q_1.q1o();
629
+ } else {
630
+ tmp_1 = false;
631
+ }
632
+
633
+ if (tmp_1)
634
+ return this.z4q_1;
635
+ this.a4r_1 = serializerForTypeInfo(this.v4q_1.l4q_1.j42(), this.x4q_1);
636
+ this.e9_1 = 2;
637
+ suspendResult = this.y4q_1.l1u(VOID, this);
638
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
639
+ return suspendResult;
640
+ }
641
+
642
+ continue $sm;
643
+ case 2:
644
+ var contentPacket = suspendResult;
645
+ this.f9_1 = 3;
646
+ var tmp0_subject = this.v4q_1.l4q_1;
647
+ var tmp_2;
648
+ if (isInterface(tmp0_subject, StringFormat)) {
649
+ tmp_2 = this.v4q_1.l4q_1.i42(this.a4r_1, readText(contentPacket, this.w4q_1));
650
+ } else {
651
+ if (isInterface(tmp0_subject, BinaryFormat)) {
652
+ tmp_2 = this.v4q_1.l4q_1.l42(this.a4r_1, readBytes(contentPacket));
653
+ } else {
654
+ discard(contentPacket);
655
+ var message = 'Unsupported format ' + toString(this.v4q_1.l4q_1);
656
+ throw IllegalStateException_init_$Create$(toString(message));
657
+ }
658
+ }
659
+
660
+ return tmp_2;
661
+ case 3:
662
+ this.f9_1 = 5;
663
+ var tmp_3 = this.h9_1;
664
+ if (tmp_3 instanceof Error) {
665
+ var cause = this.h9_1;
666
+ throw new JsonConvertException('Illegal input: ' + cause.message, cause);
667
+ } else {
668
+ throw this.h9_1;
669
+ }
670
+
671
+ case 4:
672
+ this.f9_1 = 5;
673
+ return Unit_instance;
674
+ case 5:
675
+ throw this.h9_1;
676
+ }
677
+ } catch ($p) {
678
+ var e = $p;
679
+ if (this.f9_1 === 5) {
680
+ throw e;
681
+ } else {
682
+ this.e9_1 = this.f9_1;
683
+ this.h9_1 = e;
684
+ }
685
+ }
686
+ while (true);
687
+ };
688
+ function KotlinxSerializationConverter(format) {
689
+ this.l4q_1 = format;
690
+ this.m4q_1 = extensions(this.l4q_1);
691
+ // Inline function 'kotlin.require' call
692
+ var tmp;
693
+ var tmp_0 = this.l4q_1;
694
+ if (isInterface(tmp_0, BinaryFormat)) {
695
+ tmp = true;
696
+ } else {
697
+ var tmp_1 = this.l4q_1;
698
+ tmp = isInterface(tmp_1, StringFormat);
699
+ }
700
+ // Inline function 'kotlin.contracts.contract' call
701
+ if (!tmp) {
702
+ // Inline function 'io.ktor.serialization.kotlinx.KotlinxSerializationConverter.<anonymous>' call
703
+ var message = 'Only binary and string formats are supported, ' + toString(this.l4q_1) + ' is not supported.';
704
+ throw IllegalArgumentException_init_$Create$(toString(message));
705
+ }
706
+ }
707
+ protoOf(KotlinxSerializationConverter).b4r = function (contentType, charset, typeInfo, value, $completion) {
708
+ return this.c4r(contentType, charset, typeInfo, value, $completion);
709
+ };
710
+ protoOf(KotlinxSerializationConverter).u2n = function (contentType, charset, typeInfo, value, $completion) {
711
+ return this.b4r(contentType, charset, typeInfo, value, $completion);
712
+ };
713
+ protoOf(KotlinxSerializationConverter).c4r = function (contentType, charset, typeInfo, value, $completion) {
714
+ var tmp = new $serializeNullableCOROUTINE$0(this, contentType, charset, typeInfo, value, $completion);
715
+ tmp.g9_1 = Unit_instance;
716
+ tmp.h9_1 = null;
717
+ return tmp.m9();
718
+ };
719
+ protoOf(KotlinxSerializationConverter).v2n = function (contentType, charset, typeInfo, value, $completion) {
720
+ return this.c4r(contentType, charset, typeInfo, value, $completion);
721
+ };
722
+ protoOf(KotlinxSerializationConverter).w2n = function (charset, typeInfo, content, $completion) {
723
+ var tmp = new $deserializeCOROUTINE$1(this, charset, typeInfo, content, $completion);
724
+ tmp.g9_1 = Unit_instance;
725
+ tmp.h9_1 = null;
726
+ return tmp.m9();
727
+ };
728
+ function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
729
+ var module_0 = _this__u8e3s4;
730
+ var tmp0_safe_receiver = typeInfo.t2a_1;
731
+ var tmp;
732
+ if (tmp0_safe_receiver == null) {
733
+ tmp = null;
734
+ } else {
735
+ // Inline function 'kotlin.let' call
736
+ // Inline function 'kotlin.contracts.contract' call
737
+ // Inline function 'io.ktor.serialization.kotlinx.serializerForTypeInfo.<anonymous>' call
738
+ var tmp_0;
739
+ if (tmp0_safe_receiver.ab().p()) {
740
+ tmp_0 = null;
741
+ } else {
742
+ tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
743
+ }
744
+ tmp = tmp_0;
745
+ }
746
+ var tmp2_elvis_lhs = tmp;
747
+ var tmp_1;
748
+ if (tmp2_elvis_lhs == null) {
749
+ var tmp1_safe_receiver = module_0.o42(typeInfo.r2a_1);
750
+ tmp_1 = tmp1_safe_receiver == null ? null : maybeNullable(tmp1_safe_receiver, typeInfo);
751
+ } else {
752
+ tmp_1 = tmp2_elvis_lhs;
753
+ }
754
+ var tmp3_elvis_lhs = tmp_1;
755
+ return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.r2a_1), typeInfo) : tmp3_elvis_lhs;
756
+ }
757
+ function guessSerializer(value, module_0) {
758
+ var tmp;
759
+ if (value == null) {
760
+ tmp = get_nullable(serializer_0(StringCompanionObject_instance));
761
+ } else {
762
+ if (!(value == null) ? isInterface(value, KtList) : false) {
763
+ tmp = ListSerializer(elementSerializer(value, module_0));
764
+ } else {
765
+ if (!(value == null) ? isArray(value) : false) {
766
+ var tmp1_safe_receiver = firstOrNull_0(value);
767
+ var tmp_0;
768
+ if (tmp1_safe_receiver == null) {
769
+ tmp_0 = null;
770
+ } else {
771
+ // Inline function 'kotlin.let' call
772
+ // Inline function 'kotlin.contracts.contract' call
773
+ // Inline function 'io.ktor.serialization.kotlinx.guessSerializer.<anonymous>' call
774
+ tmp_0 = guessSerializer(tmp1_safe_receiver, module_0);
775
+ }
776
+ var tmp2_elvis_lhs = tmp_0;
777
+ tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(StringCompanionObject_instance)) : tmp2_elvis_lhs;
778
+ } else {
779
+ if (!(value == null) ? isInterface(value, KtSet) : false) {
780
+ tmp = SetSerializer(elementSerializer(value, module_0));
781
+ } else {
782
+ if (!(value == null) ? isInterface(value, KtMap) : false) {
783
+ var keySerializer = elementSerializer(value.h2(), module_0);
784
+ var valueSerializer = elementSerializer(value.i2(), module_0);
785
+ tmp = MapSerializer(keySerializer, valueSerializer);
786
+ } else {
787
+ var tmp3_elvis_lhs = module_0.o42(getKClassFromExpression(value));
788
+ tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
789
+ }
790
+ }
791
+ }
792
+ }
793
+ }
794
+ var tmp_1 = tmp;
795
+ return isInterface(tmp_1, KSerializer) ? tmp_1 : THROW_CCE();
796
+ }
797
+ function maybeNullable(_this__u8e3s4, typeInfo) {
798
+ var tmp;
799
+ var tmp0_safe_receiver = typeInfo.t2a_1;
800
+ if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.bb()) === true) {
801
+ tmp = get_nullable(_this__u8e3s4);
802
+ } else {
803
+ tmp = _this__u8e3s4;
804
+ }
805
+ return tmp;
806
+ }
807
+ function elementSerializer(_this__u8e3s4, module_0) {
808
+ // Inline function 'kotlin.collections.distinctBy' call
809
+ // Inline function 'kotlin.collections.map' call
810
+ var this_0 = filterNotNull(_this__u8e3s4);
811
+ // Inline function 'kotlin.collections.mapTo' call
812
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
813
+ var tmp0_iterator = this_0.j();
814
+ while (tmp0_iterator.k()) {
815
+ var item = tmp0_iterator.l();
816
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
817
+ var tmp$ret$0 = guessSerializer(item, module_0);
818
+ destination.e(tmp$ret$0);
819
+ }
820
+ var set = HashSet_init_$Create$();
821
+ var list = ArrayList_init_$Create$();
822
+ var tmp0_iterator_0 = destination.j();
823
+ while (tmp0_iterator_0.k()) {
824
+ var e = tmp0_iterator_0.l();
825
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
826
+ var key = e.e41().f42();
827
+ if (set.e(key)) {
828
+ list.e(e);
829
+ }
830
+ }
831
+ var serializers = list;
832
+ if (serializers.m() > 1) {
833
+ // Inline function 'kotlin.error' call
834
+ // Inline function 'kotlin.collections.map' call
835
+ // Inline function 'kotlin.collections.mapTo' call
836
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
837
+ var tmp0_iterator_1 = serializers.j();
838
+ while (tmp0_iterator_1.k()) {
839
+ var item_0 = tmp0_iterator_1.l();
840
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
841
+ var tmp$ret$5 = item_0.e41().f42();
842
+ destination_0.e(tmp$ret$5);
843
+ }
844
+ var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
845
+ throw IllegalStateException_init_$Create$(toString(message));
846
+ }
847
+ var tmp0_elvis_lhs = singleOrNull(serializers);
848
+ var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
849
+ if (selected.e41().s42()) {
850
+ return selected;
851
+ }
852
+ if (!isInterface(selected, KSerializer))
853
+ THROW_CCE();
854
+ var tmp$ret$8;
855
+ $l$block_0: {
856
+ // Inline function 'kotlin.collections.any' call
857
+ var tmp;
858
+ if (isInterface(_this__u8e3s4, Collection)) {
859
+ tmp = _this__u8e3s4.p();
860
+ } else {
861
+ tmp = false;
862
+ }
863
+ if (tmp) {
864
+ tmp$ret$8 = false;
865
+ break $l$block_0;
866
+ }
867
+ var tmp0_iterator_2 = _this__u8e3s4.j();
868
+ while (tmp0_iterator_2.k()) {
869
+ var element = tmp0_iterator_2.l();
870
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
871
+ if (element == null) {
872
+ tmp$ret$8 = true;
873
+ break $l$block_0;
874
+ }
875
+ }
876
+ tmp$ret$8 = false;
877
+ }
878
+ if (tmp$ret$8) {
879
+ return get_nullable(selected);
880
+ }
881
+ return selected;
882
+ }
883
+ function get_providers() {
884
+ return emptyList();
885
+ }
886
+ //region block: exports
887
+ _.$_$ = _.$_$ || {};
888
+ _.$_$.a = serialization;
889
+ //endregion
890
+ return _;
891
+ }));
892
+
893
+ //# sourceMappingURL=ktor-ktor-serialization-kotlinx.js.map