mrs-toolbox-cli 0.0.1

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 (123) hide show
  1. package/88b0986a7186d029-atomicfu-js-ir.js +268 -0
  2. package/88b0986a7186d029-atomicfu-js-ir.js.hash +1 -0
  3. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
  4. package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +1 -0
  5. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +8 -0
  6. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +1 -0
  7. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -0
  8. package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +1 -0
  9. package/clikt-clikt-js-ir.js +7044 -0
  10. package/clikt-clikt-js-ir.js.hash +1 -0
  11. package/clikt-clikt-js-ir.js.map +1 -0
  12. package/clikt-clikt-js-ir.js.map.hash +1 -0
  13. package/com.mrs.platform.configuration.dto.js +17100 -0
  14. package/com.mrs.platform.configuration.dto.js.hash +1 -0
  15. package/com.mrs.platform.configuration.dto.js.map +1 -0
  16. package/com.mrs.platform.configuration.dto.js.map.hash +1 -0
  17. package/kotlin-js.js +8 -0
  18. package/kotlin-js.js.hash +1 -0
  19. package/kotlin-js.js.map +1 -0
  20. package/kotlin-js.js.map.hash +1 -0
  21. package/kotlin-kotlin-stdlib-js-ir.js +15789 -0
  22. package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -0
  23. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
  24. package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -0
  25. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +8 -0
  26. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +1 -0
  27. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
  28. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +1 -0
  29. package/kotlin-logging-js-ir.js +274 -0
  30. package/kotlin-logging-js-ir.js.hash +1 -0
  31. package/kotlin-logging-js-ir.js.map +1 -0
  32. package/kotlin-logging-js-ir.js.map.hash +1 -0
  33. package/kotlin-node.js +20 -0
  34. package/kotlin-node.js.hash +1 -0
  35. package/kotlin-node.js.map +1 -0
  36. package/kotlin-node.js.map.hash +1 -0
  37. package/kotlin-web.js +8 -0
  38. package/kotlin-web.js.hash +1 -0
  39. package/kotlin-web.js.map +1 -0
  40. package/kotlin-web.js.map.hash +1 -0
  41. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +6431 -0
  42. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -0
  43. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
  44. package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -0
  45. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5102 -0
  46. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -0
  47. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
  48. package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -0
  49. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +8964 -0
  50. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +1 -0
  51. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
  52. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +1 -0
  53. package/ktor-ktor-client-content-negotiation.js +690 -0
  54. package/ktor-ktor-client-content-negotiation.js.hash +1 -0
  55. package/ktor-ktor-client-content-negotiation.js.map +1 -0
  56. package/ktor-ktor-client-content-negotiation.js.map.hash +1 -0
  57. package/ktor-ktor-client-core.js +7572 -0
  58. package/ktor-ktor-client-core.js.hash +1 -0
  59. package/ktor-ktor-client-core.js.map +1 -0
  60. package/ktor-ktor-client-core.js.map.hash +1 -0
  61. package/ktor-ktor-events.js +88 -0
  62. package/ktor-ktor-events.js.hash +1 -0
  63. package/ktor-ktor-events.js.map +1 -0
  64. package/ktor-ktor-events.js.map.hash +1 -0
  65. package/ktor-ktor-http.js +3651 -0
  66. package/ktor-ktor-http.js.hash +1 -0
  67. package/ktor-ktor-http.js.map +1 -0
  68. package/ktor-ktor-http.js.map.hash +1 -0
  69. package/ktor-ktor-io.js +7053 -0
  70. package/ktor-ktor-io.js.hash +1 -0
  71. package/ktor-ktor-io.js.map +1 -0
  72. package/ktor-ktor-io.js.map.hash +1 -0
  73. package/ktor-ktor-serialization-kotlinx-json.js +48 -0
  74. package/ktor-ktor-serialization-kotlinx-json.js.hash +1 -0
  75. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
  76. package/ktor-ktor-serialization-kotlinx-json.js.map.hash +1 -0
  77. package/ktor-ktor-serialization-kotlinx.js +845 -0
  78. package/ktor-ktor-serialization-kotlinx.js.hash +1 -0
  79. package/ktor-ktor-serialization-kotlinx.js.map +1 -0
  80. package/ktor-ktor-serialization-kotlinx.js.map.hash +1 -0
  81. package/ktor-ktor-serialization.js +345 -0
  82. package/ktor-ktor-serialization.js.hash +1 -0
  83. package/ktor-ktor-serialization.js.map +1 -0
  84. package/ktor-ktor-serialization.js.map.hash +1 -0
  85. package/ktor-ktor-utils.js +2159 -0
  86. package/ktor-ktor-utils.js.hash +1 -0
  87. package/ktor-ktor-utils.js.map +1 -0
  88. package/ktor-ktor-utils.js.map.hash +1 -0
  89. package/ktor-ktor-websocket-serialization.js +8 -0
  90. package/ktor-ktor-websocket-serialization.js.hash +1 -0
  91. package/ktor-ktor-websocket-serialization.js.map +1 -0
  92. package/ktor-ktor-websocket-serialization.js.map.hash +1 -0
  93. package/ktor-ktor-websockets.js +466 -0
  94. package/ktor-ktor-websockets.js.hash +1 -0
  95. package/ktor-ktor-websockets.js.map +1 -0
  96. package/ktor-ktor-websockets.js.map.hash +1 -0
  97. package/mrs-toolbox-cli.d.ts +2587 -0
  98. package/mrs-toolbox-cli.d.ts.hash +1 -0
  99. package/mrs-toolbox-cli.js +389 -0
  100. package/mrs-toolbox-cli.js.hash +1 -0
  101. package/mrs-toolbox-cli.js.map +1 -0
  102. package/mrs-toolbox-cli.js.map.hash +1 -0
  103. package/package.json +25 -0
  104. package/static/access.query.txt +0 -0
  105. package/static/access.query.txt.hash +1 -0
  106. package/static/demo.test.ts.txt +26 -0
  107. package/static/demo.test.ts.txt.hash +1 -0
  108. package/static/git.ignore +5 -0
  109. package/static/git.ignore.hash +1 -0
  110. package/static/graph.query.txt +0 -0
  111. package/static/graph.query.txt.hash +1 -0
  112. package/static/hook.ts.txt +7 -0
  113. package/static/hook.ts.txt.hash +1 -0
  114. package/static/mrscconfig.json +15 -0
  115. package/static/mrscconfig.json.hash +1 -0
  116. package/static/readme.md +50 -0
  117. package/static/readme.md.hash +1 -0
  118. package/static/tsconfig.json.txt +8 -0
  119. package/static/tsconfig.json.txt.hash +1 -0
  120. package/toolbox.js +15864 -0
  121. package/toolbox.js.hash +1 -0
  122. package/toolbox.js.map +1 -0
  123. package/toolbox.js.map.hash +1 -0
@@ -0,0 +1,845 @@
1
+ (function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_serialization) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var protoOf = kotlin_kotlin.$_$.ua;
5
+ var interfaceMeta = kotlin_kotlin.$_$.x9;
6
+ var VOID = kotlin_kotlin.$_$.tf;
7
+ var setMetadataFor = kotlin_kotlin.$_$.va;
8
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
9
+ var Unit_getInstance = kotlin_kotlin.$_$.v4;
10
+ var CoroutineImpl = kotlin_kotlin.$_$.c9;
11
+ var THROW_CCE = kotlin_kotlin.$_$.pe;
12
+ var isInterface = kotlin_kotlin.$_$.ga;
13
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o8;
14
+ var classMeta = kotlin_kotlin.$_$.o9;
15
+ var toString = kotlin_kotlin.$_$.za;
16
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
17
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
18
+ var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.i;
19
+ var BinaryFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p2;
20
+ var withCharsetIfNeeded = kotlin_io_ktor_ktor_http.$_$.h1;
21
+ var TextContent = kotlin_io_ktor_ktor_http.$_$.p;
22
+ var StringFormat = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v2;
23
+ var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
24
+ var isObject = kotlin_kotlin.$_$.ia;
25
+ var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
26
+ var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a;
27
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u2;
28
+ var discard = kotlin_io_ktor_ktor_io.$_$.u;
29
+ var readBytes = kotlin_io_ktor_ktor_io.$_$.v;
30
+ var readText = kotlin_io_ktor_ktor_io.$_$.x;
31
+ var JsonConvertException = kotlin_io_ktor_ktor_serialization.$_$.e;
32
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.m1;
33
+ var ContentConverter = kotlin_io_ktor_ktor_serialization.$_$.d;
34
+ var serializerOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2;
35
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y2;
36
+ var getKClassFromExpression = kotlin_kotlin.$_$.d;
37
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
38
+ var Map = kotlin_kotlin.$_$.f5;
39
+ var SetSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
40
+ var Set = kotlin_kotlin.$_$.k5;
41
+ var firstOrNull_0 = kotlin_kotlin.$_$.k6;
42
+ var StringCompanionObject_getInstance = kotlin_kotlin.$_$.k4;
43
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
44
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
45
+ var isArray = kotlin_kotlin.$_$.y9;
46
+ var List = kotlin_kotlin.$_$.d5;
47
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
48
+ var filterNotNull = kotlin_kotlin.$_$.i6;
49
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.p5;
50
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
51
+ var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
52
+ var singleOrNull = kotlin_kotlin.$_$.s7;
53
+ var Collection = kotlin_kotlin.$_$.x4;
54
+ var emptyList = kotlin_kotlin.$_$.f6;
55
+ //endregion
56
+ //region block: pre-declaration
57
+ setMetadataFor(KotlinxSerializationExtension, 'KotlinxSerializationExtension', interfaceMeta, VOID, VOID, VOID, VOID, [4, 3]);
58
+ setMetadataFor(KotlinxSerializationConverter$serializeNullable$o$collect$slambda, 'KotlinxSerializationConverter$serializeNullable$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
59
+ setMetadataFor($collectCOROUTINE$2, '$collectCOROUTINE$2', classMeta, CoroutineImpl);
60
+ setMetadataFor(KotlinxSerializationConverter$deserialize$o$collect$slambda, 'KotlinxSerializationConverter$deserialize$o$collect$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
61
+ setMetadataFor($collectCOROUTINE$3, '$collectCOROUTINE$3', classMeta, CoroutineImpl);
62
+ setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, [1]);
63
+ setMetadataFor(sam$kotlinx_coroutines_flow_FlowCollector$0_0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', classMeta, VOID, VOID, VOID, VOID, [1]);
64
+ setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, VOID, VOID, VOID, VOID, [1]);
65
+ setMetadataFor(KotlinxSerializationConverter$serializeNullable$slambda, 'KotlinxSerializationConverter$serializeNullable$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
66
+ setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, VOID, VOID, VOID, [1]);
67
+ setMetadataFor(KotlinxSerializationConverter$deserialize$slambda, 'KotlinxSerializationConverter$deserialize$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
68
+ setMetadataFor($serializeNullableCOROUTINE$0, '$serializeNullableCOROUTINE$0', classMeta, CoroutineImpl);
69
+ setMetadataFor($deserializeCOROUTINE$1, '$deserializeCOROUTINE$1', classMeta, CoroutineImpl);
70
+ setMetadataFor(KotlinxSerializationConverter, 'KotlinxSerializationConverter', classMeta, VOID, [ContentConverter], VOID, VOID, [4, 3]);
71
+ //endregion
72
+ function KotlinxSerializationExtension() {
73
+ }
74
+ function extensions(format) {
75
+ var tmp$ret$3;
76
+ // Inline function 'kotlin.collections.mapNotNull' call
77
+ var tmp1_mapNotNull = get_providers();
78
+ var tmp$ret$2;
79
+ // Inline function 'kotlin.collections.mapNotNullTo' call
80
+ var tmp0_mapNotNullTo = ArrayList_init_$Create$();
81
+ // Inline function 'kotlin.collections.forEach' call
82
+ var tmp0_iterator = tmp1_mapNotNull.f();
83
+ while (tmp0_iterator.g()) {
84
+ var element = tmp0_iterator.h();
85
+ // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
86
+ var tmp$ret$0;
87
+ // Inline function 'io.ktor.serialization.kotlinx.extensions.<anonymous>' call
88
+ tmp$ret$0 = element.t3s(format);
89
+ var tmp0_safe_receiver = tmp$ret$0;
90
+ if (tmp0_safe_receiver == null)
91
+ null;
92
+ else {
93
+ var tmp$ret$1;
94
+ // Inline function 'kotlin.let' call
95
+ // Inline function 'kotlin.contracts.contract' call
96
+ tmp0_mapNotNullTo.a(tmp0_safe_receiver);
97
+ tmp$ret$1 = Unit_getInstance();
98
+ }
99
+ }
100
+ tmp$ret$2 = tmp0_mapNotNullTo;
101
+ tmp$ret$3 = tmp$ret$2;
102
+ return tmp$ret$3;
103
+ }
104
+ function serialization(_this__u8e3s4, contentType, format) {
105
+ _this__u8e3s4.v22(contentType, new KotlinxSerializationConverter(format));
106
+ }
107
+ function KotlinxSerializationConverter$serializeNullable$o$collect$slambda($collector, $contentType, $charset, $typeInfo, $value, resultContinuation) {
108
+ this.c3t_1 = $collector;
109
+ this.d3t_1 = $contentType;
110
+ this.e3t_1 = $charset;
111
+ this.f3t_1 = $typeInfo;
112
+ this.g3t_1 = $value;
113
+ CoroutineImpl.call(this, resultContinuation);
114
+ }
115
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).j3t = function (value, $completion) {
116
+ var tmp = this.k3t(value, $completion);
117
+ tmp.lk_1 = Unit_getInstance();
118
+ tmp.mk_1 = null;
119
+ return tmp.sk();
120
+ };
121
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).el = function (p1, $completion) {
122
+ return this.j3t((!(p1 == null) ? isInterface(p1, KotlinxSerializationExtension) : false) ? p1 : THROW_CCE(), $completion);
123
+ };
124
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).sk = function () {
125
+ var suspendResult = this.lk_1;
126
+ $sm: do
127
+ try {
128
+ var tmp = this.jk_1;
129
+ switch (tmp) {
130
+ case 0:
131
+ this.kk_1 = 3;
132
+ this.jk_1 = 1;
133
+ suspendResult = this.h3t_1.s3s(this.d3t_1, this.e3t_1, this.f3t_1, this.g3t_1, this);
134
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
135
+ return suspendResult;
136
+ }
137
+
138
+ continue $sm;
139
+ case 1:
140
+ this.i3t_1 = suspendResult;
141
+ this.jk_1 = 2;
142
+ suspendResult = this.c3t_1.o11(this.i3t_1, this);
143
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
144
+ return suspendResult;
145
+ }
146
+
147
+ continue $sm;
148
+ case 2:
149
+ return Unit_getInstance();
150
+ case 3:
151
+ throw this.mk_1;
152
+ }
153
+ } catch ($p) {
154
+ var e = $p;
155
+ if (this.kk_1 === 3) {
156
+ throw e;
157
+ } else {
158
+ this.jk_1 = this.kk_1;
159
+ this.mk_1 = e;
160
+ }
161
+ }
162
+ while (true);
163
+ };
164
+ protoOf(KotlinxSerializationConverter$serializeNullable$o$collect$slambda).k3t = function (value, completion) {
165
+ var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda(this.c3t_1, this.d3t_1, this.e3t_1, this.f3t_1, this.g3t_1, completion);
166
+ i.h3t_1 = value;
167
+ return i;
168
+ };
169
+ function KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0($collector, $contentType, $charset, $typeInfo, $value, resultContinuation) {
170
+ var i = new KotlinxSerializationConverter$serializeNullable$o$collect$slambda($collector, $contentType, $charset, $typeInfo, $value, resultContinuation);
171
+ var l = function (value, $completion) {
172
+ return i.j3t(value, $completion);
173
+ };
174
+ l.$arity = 1;
175
+ return l;
176
+ }
177
+ function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
178
+ CoroutineImpl.call(this, resultContinuation);
179
+ this.t3t_1 = _this__u8e3s4;
180
+ this.u3t_1 = collector;
181
+ }
182
+ protoOf($collectCOROUTINE$2).sk = function () {
183
+ var suspendResult = this.lk_1;
184
+ $sm: do
185
+ try {
186
+ var tmp = this.jk_1;
187
+ switch (tmp) {
188
+ case 0:
189
+ this.kk_1 = 2;
190
+ this.jk_1 = 1;
191
+ var tmp_0 = KotlinxSerializationConverter$serializeNullable$o$collect$slambda_0(this.u3t_1, this.t3t_1.w3t_1, this.t3t_1.x3t_1, this.t3t_1.y3t_1, this.t3t_1.z3t_1, null);
192
+ suspendResult = this.t3t_1.v3t_1.p11(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
193
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
194
+ return suspendResult;
195
+ }
196
+
197
+ continue $sm;
198
+ case 1:
199
+ return Unit_getInstance();
200
+ case 2:
201
+ throw this.mk_1;
202
+ }
203
+ } catch ($p) {
204
+ var e = $p;
205
+ if (this.kk_1 === 2) {
206
+ throw e;
207
+ } else {
208
+ this.jk_1 = this.kk_1;
209
+ this.mk_1 = e;
210
+ }
211
+ }
212
+ while (true);
213
+ };
214
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda($collector, $charset, $typeInfo, $content, resultContinuation) {
215
+ this.i3u_1 = $collector;
216
+ this.j3u_1 = $charset;
217
+ this.k3u_1 = $typeInfo;
218
+ this.l3u_1 = $content;
219
+ CoroutineImpl.call(this, resultContinuation);
220
+ }
221
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).j3t = function (value, $completion) {
222
+ var tmp = this.k3t(value, $completion);
223
+ tmp.lk_1 = Unit_getInstance();
224
+ tmp.mk_1 = null;
225
+ return tmp.sk();
226
+ };
227
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).el = function (p1, $completion) {
228
+ return this.j3t((!(p1 == null) ? isInterface(p1, KotlinxSerializationExtension) : false) ? p1 : THROW_CCE(), $completion);
229
+ };
230
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).sk = function () {
231
+ var suspendResult = this.lk_1;
232
+ $sm: do
233
+ try {
234
+ var tmp = this.jk_1;
235
+ switch (tmp) {
236
+ case 0:
237
+ this.kk_1 = 3;
238
+ this.jk_1 = 1;
239
+ suspendResult = this.m3u_1.y22(this.j3u_1, this.k3u_1, this.l3u_1, this);
240
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
241
+ return suspendResult;
242
+ }
243
+
244
+ continue $sm;
245
+ case 1:
246
+ this.n3u_1 = suspendResult;
247
+ this.jk_1 = 2;
248
+ suspendResult = this.i3u_1.o11(this.n3u_1, this);
249
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
250
+ return suspendResult;
251
+ }
252
+
253
+ continue $sm;
254
+ case 2:
255
+ return Unit_getInstance();
256
+ case 3:
257
+ throw this.mk_1;
258
+ }
259
+ } catch ($p) {
260
+ var e = $p;
261
+ if (this.kk_1 === 3) {
262
+ throw e;
263
+ } else {
264
+ this.jk_1 = this.kk_1;
265
+ this.mk_1 = e;
266
+ }
267
+ }
268
+ while (true);
269
+ };
270
+ protoOf(KotlinxSerializationConverter$deserialize$o$collect$slambda).k3t = function (value, completion) {
271
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda(this.i3u_1, this.j3u_1, this.k3u_1, this.l3u_1, completion);
272
+ i.m3u_1 = value;
273
+ return i;
274
+ };
275
+ function KotlinxSerializationConverter$deserialize$o$collect$slambda_0($collector, $charset, $typeInfo, $content, resultContinuation) {
276
+ var i = new KotlinxSerializationConverter$deserialize$o$collect$slambda($collector, $charset, $typeInfo, $content, resultContinuation);
277
+ var l = function (value, $completion) {
278
+ return i.j3t(value, $completion);
279
+ };
280
+ l.$arity = 1;
281
+ return l;
282
+ }
283
+ function $collectCOROUTINE$3(_this__u8e3s4, collector, resultContinuation) {
284
+ CoroutineImpl.call(this, resultContinuation);
285
+ this.w3u_1 = _this__u8e3s4;
286
+ this.x3u_1 = collector;
287
+ }
288
+ protoOf($collectCOROUTINE$3).sk = function () {
289
+ var suspendResult = this.lk_1;
290
+ $sm: do
291
+ try {
292
+ var tmp = this.jk_1;
293
+ switch (tmp) {
294
+ case 0:
295
+ this.kk_1 = 2;
296
+ this.jk_1 = 1;
297
+ var tmp_0 = KotlinxSerializationConverter$deserialize$o$collect$slambda_0(this.x3u_1, this.w3u_1.z3u_1, this.w3u_1.a3v_1, this.w3u_1.b3v_1, null);
298
+ suspendResult = this.w3u_1.y3u_1.p11(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
299
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
300
+ return suspendResult;
301
+ }
302
+
303
+ continue $sm;
304
+ case 1:
305
+ return Unit_getInstance();
306
+ case 2:
307
+ throw this.mk_1;
308
+ }
309
+ } catch ($p) {
310
+ var e = $p;
311
+ if (this.kk_1 === 2) {
312
+ throw e;
313
+ } else {
314
+ this.jk_1 = this.kk_1;
315
+ this.mk_1 = e;
316
+ }
317
+ }
318
+ while (true);
319
+ };
320
+ function serializeContent($this, serializer, format, value, contentType, charset) {
321
+ var tmp0_subject = format;
322
+ var tmp;
323
+ if (isInterface(tmp0_subject, StringFormat)) {
324
+ var content = format.u39(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
325
+ tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
326
+ } else {
327
+ if (isInterface(tmp0_subject, BinaryFormat)) {
328
+ var content_0 = format.x39(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
329
+ tmp = new ByteArrayContent(content_0, contentType);
330
+ } else {
331
+ var tmp0_error = 'Unsupported format ' + format;
332
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
333
+ }
334
+ }
335
+ return tmp;
336
+ }
337
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
338
+ this.c3v_1 = function_0;
339
+ }
340
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).o11 = function (value, $completion) {
341
+ var tmp0 = this.c3v_1(value, $completion);
342
+ return tmp0;
343
+ };
344
+ function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
345
+ this.d3v_1 = function_0;
346
+ }
347
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).o11 = function (value, $completion) {
348
+ var tmp0 = this.d3v_1(value, $completion);
349
+ return tmp0;
350
+ };
351
+ function _no_name_provided__qut3iv($tmp0_map, $contentType, $charset, $typeInfo, $value) {
352
+ this.v3t_1 = $tmp0_map;
353
+ this.w3t_1 = $contentType;
354
+ this.x3t_1 = $charset;
355
+ this.y3t_1 = $typeInfo;
356
+ this.z3t_1 = $value;
357
+ }
358
+ protoOf(_no_name_provided__qut3iv).e3v = function (collector, $completion) {
359
+ var tmp = new $collectCOROUTINE$2(this, collector, $completion);
360
+ tmp.lk_1 = Unit_getInstance();
361
+ tmp.mk_1 = null;
362
+ return tmp.sk();
363
+ };
364
+ protoOf(_no_name_provided__qut3iv).p11 = function (collector, $completion) {
365
+ return this.e3v(collector, $completion);
366
+ };
367
+ function KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation) {
368
+ CoroutineImpl.call(this, resultContinuation);
369
+ }
370
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).o3v = function (it, $completion) {
371
+ var tmp = this.p3v(it, $completion);
372
+ tmp.lk_1 = Unit_getInstance();
373
+ tmp.mk_1 = null;
374
+ return tmp.sk();
375
+ };
376
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).el = function (p1, $completion) {
377
+ return this.o3v((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
378
+ };
379
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).sk = function () {
380
+ var suspendResult = this.lk_1;
381
+ $sm: do
382
+ try {
383
+ var tmp = this.jk_1;
384
+ if (tmp === 0) {
385
+ this.kk_1 = 1;
386
+ return !(this.n3v_1 == null);
387
+ } else if (tmp === 1) {
388
+ throw this.mk_1;
389
+ }
390
+ } catch ($p) {
391
+ var e = $p;
392
+ throw e;
393
+ }
394
+ while (true);
395
+ };
396
+ protoOf(KotlinxSerializationConverter$serializeNullable$slambda).p3v = function (it, completion) {
397
+ var i = new KotlinxSerializationConverter$serializeNullable$slambda(completion);
398
+ i.n3v_1 = it;
399
+ return i;
400
+ };
401
+ function KotlinxSerializationConverter$serializeNullable$slambda_0(resultContinuation) {
402
+ var i = new KotlinxSerializationConverter$serializeNullable$slambda(resultContinuation);
403
+ var l = function (it, $completion) {
404
+ return i.o3v(it, $completion);
405
+ };
406
+ l.$arity = 1;
407
+ return l;
408
+ }
409
+ function _no_name_provided__qut3iv_0($tmp0_map, $charset, $typeInfo, $content) {
410
+ this.y3u_1 = $tmp0_map;
411
+ this.z3u_1 = $charset;
412
+ this.a3v_1 = $typeInfo;
413
+ this.b3v_1 = $content;
414
+ }
415
+ protoOf(_no_name_provided__qut3iv_0).q24 = function (collector, $completion) {
416
+ var tmp = new $collectCOROUTINE$3(this, collector, $completion);
417
+ tmp.lk_1 = Unit_getInstance();
418
+ tmp.mk_1 = null;
419
+ return tmp.sk();
420
+ };
421
+ protoOf(_no_name_provided__qut3iv_0).p11 = function (collector, $completion) {
422
+ return this.q24(collector, $completion);
423
+ };
424
+ function KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation) {
425
+ this.y3v_1 = $content;
426
+ CoroutineImpl.call(this, resultContinuation);
427
+ }
428
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).b25 = function (it, $completion) {
429
+ var tmp = this.c25(it, $completion);
430
+ tmp.lk_1 = Unit_getInstance();
431
+ tmp.mk_1 = null;
432
+ return tmp.sk();
433
+ };
434
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).el = function (p1, $completion) {
435
+ return this.b25((p1 == null ? true : isObject(p1)) ? p1 : THROW_CCE(), $completion);
436
+ };
437
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).sk = function () {
438
+ var suspendResult = this.lk_1;
439
+ $sm: do
440
+ try {
441
+ var tmp = this.jk_1;
442
+ if (tmp === 0) {
443
+ this.kk_1 = 1;
444
+ return !(this.z3v_1 == null) ? true : this.y3v_1.u16();
445
+ } else if (tmp === 1) {
446
+ throw this.mk_1;
447
+ }
448
+ } catch ($p) {
449
+ var e = $p;
450
+ throw e;
451
+ }
452
+ while (true);
453
+ };
454
+ protoOf(KotlinxSerializationConverter$deserialize$slambda).c25 = function (it, completion) {
455
+ var i = new KotlinxSerializationConverter$deserialize$slambda(this.y3v_1, completion);
456
+ i.z3v_1 = it;
457
+ return i;
458
+ };
459
+ function KotlinxSerializationConverter$deserialize$slambda_0($content, resultContinuation) {
460
+ var i = new KotlinxSerializationConverter$deserialize$slambda($content, resultContinuation);
461
+ var l = function (it, $completion) {
462
+ return i.b25(it, $completion);
463
+ };
464
+ l.$arity = 1;
465
+ return l;
466
+ }
467
+ function $serializeNullableCOROUTINE$0(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
468
+ CoroutineImpl.call(this, resultContinuation);
469
+ this.i3w_1 = _this__u8e3s4;
470
+ this.j3w_1 = contentType;
471
+ this.k3w_1 = charset;
472
+ this.l3w_1 = typeInfo;
473
+ this.m3w_1 = value;
474
+ }
475
+ protoOf($serializeNullableCOROUTINE$0).sk = function () {
476
+ var suspendResult = this.lk_1;
477
+ $sm: do
478
+ try {
479
+ var tmp = this.jk_1;
480
+ switch (tmp) {
481
+ case 0:
482
+ this.kk_1 = 2;
483
+ this.jk_1 = 1;
484
+ var tmp0_map = asFlow(this.i3w_1.o3w_1);
485
+ var tmp_0 = new _no_name_provided__qut3iv(tmp0_map, this.j3w_1, this.k3w_1, this.l3w_1, this.m3w_1);
486
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$serializeNullable$slambda_0(null), this);
487
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
488
+ return suspendResult;
489
+ }
490
+
491
+ continue $sm;
492
+ case 1:
493
+ var fromExtension = suspendResult;
494
+ if (!(fromExtension == null))
495
+ return fromExtension;
496
+ var tmp_1;
497
+ try {
498
+ tmp_1 = serializerForTypeInfo(this.i3w_1.n3w_1.w39(), this.l3w_1);
499
+ } catch ($p) {
500
+ var tmp_2;
501
+ if ($p instanceof SerializationException) {
502
+ var cause = $p;
503
+ tmp_2 = guessSerializer(this.m3w_1, this.i3w_1.n3w_1.w39());
504
+ } else {
505
+ throw $p;
506
+ }
507
+ tmp_1 = tmp_2;
508
+ }
509
+
510
+ var serializer = tmp_1;
511
+ return serializeContent(this.i3w_1, serializer, this.i3w_1.n3w_1, this.m3w_1, this.j3w_1, this.k3w_1);
512
+ case 2:
513
+ throw this.mk_1;
514
+ }
515
+ } catch ($p) {
516
+ var e = $p;
517
+ if (this.kk_1 === 2) {
518
+ throw e;
519
+ } else {
520
+ this.jk_1 = this.kk_1;
521
+ this.mk_1 = e;
522
+ }
523
+ }
524
+ while (true);
525
+ };
526
+ function $deserializeCOROUTINE$1(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
527
+ CoroutineImpl.call(this, resultContinuation);
528
+ this.x3w_1 = _this__u8e3s4;
529
+ this.y3w_1 = charset;
530
+ this.z3w_1 = typeInfo;
531
+ this.a3x_1 = content;
532
+ }
533
+ protoOf($deserializeCOROUTINE$1).sk = function () {
534
+ var suspendResult = this.lk_1;
535
+ $sm: do
536
+ try {
537
+ var tmp = this.jk_1;
538
+ switch (tmp) {
539
+ case 0:
540
+ this.kk_1 = 5;
541
+ this.jk_1 = 1;
542
+ var tmp0_map = asFlow(this.x3w_1.o3w_1);
543
+ var tmp_0 = new _no_name_provided__qut3iv_0(tmp0_map, this.y3w_1, this.z3w_1, this.a3x_1);
544
+ suspendResult = firstOrNull(tmp_0, KotlinxSerializationConverter$deserialize$slambda_0(this.a3x_1, null), this);
545
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
546
+ return suspendResult;
547
+ }
548
+
549
+ continue $sm;
550
+ case 1:
551
+ this.b3x_1 = suspendResult;
552
+ if (!(this.b3x_1 == null) ? true : this.a3x_1.u16())
553
+ return this.b3x_1;
554
+ this.c3x_1 = serializerForTypeInfo(this.x3w_1.n3w_1.w39(), this.z3w_1);
555
+ this.jk_1 = 2;
556
+ suspendResult = this.a3x_1.z1b(VOID, this);
557
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
558
+ return suspendResult;
559
+ }
560
+
561
+ continue $sm;
562
+ case 2:
563
+ var contentPacket = suspendResult;
564
+ this.kk_1 = 3;
565
+ var tmp0_subject = this.x3w_1.n3w_1;
566
+ var tmp_1;
567
+ if (isInterface(tmp0_subject, StringFormat)) {
568
+ tmp_1 = this.x3w_1.n3w_1.v39(this.c3x_1, readText(contentPacket, this.y3w_1));
569
+ } else {
570
+ if (isInterface(tmp0_subject, BinaryFormat)) {
571
+ tmp_1 = this.x3w_1.n3w_1.y39(this.c3x_1, readBytes(contentPacket));
572
+ } else {
573
+ discard(contentPacket);
574
+ var tmp1_error = 'Unsupported format ' + this.x3w_1.n3w_1;
575
+ throw IllegalStateException_init_$Create$(toString(tmp1_error));
576
+ }
577
+ }
578
+
579
+ return tmp_1;
580
+ case 3:
581
+ this.kk_1 = 5;
582
+ var tmp_2 = this.mk_1;
583
+ if (tmp_2 instanceof Error) {
584
+ var cause = this.mk_1;
585
+ throw new JsonConvertException('Illegal input: ' + cause.message, cause);
586
+ } else {
587
+ throw this.mk_1;
588
+ }
589
+
590
+ break;
591
+ case 4:
592
+ this.kk_1 = 5;
593
+ return Unit_getInstance();
594
+ case 5:
595
+ throw this.mk_1;
596
+ }
597
+ } catch ($p) {
598
+ var e = $p;
599
+ if (this.kk_1 === 5) {
600
+ throw e;
601
+ } else {
602
+ this.jk_1 = this.kk_1;
603
+ this.mk_1 = e;
604
+ }
605
+ }
606
+ while (true);
607
+ };
608
+ function KotlinxSerializationConverter(format) {
609
+ this.n3w_1 = format;
610
+ this.o3w_1 = extensions(this.n3w_1);
611
+ // Inline function 'kotlin.require' call
612
+ var tmp;
613
+ var tmp_0 = this.n3w_1;
614
+ if (isInterface(tmp_0, BinaryFormat)) {
615
+ tmp = true;
616
+ } else {
617
+ var tmp_1 = this.n3w_1;
618
+ tmp = isInterface(tmp_1, StringFormat);
619
+ }
620
+ var tmp0_require = tmp;
621
+ // Inline function 'kotlin.contracts.contract' call
622
+ if (!tmp0_require) {
623
+ var tmp$ret$0;
624
+ // Inline function 'io.ktor.serialization.kotlinx.KotlinxSerializationConverter.<anonymous>' call
625
+ tmp$ret$0 = 'Only binary and string formats are supported, ' + this.n3w_1 + ' is not supported.';
626
+ var message = tmp$ret$0;
627
+ throw IllegalArgumentException_init_$Create$(toString(message));
628
+ }
629
+ }
630
+ protoOf(KotlinxSerializationConverter).d3x = function (contentType, charset, typeInfo, value, $completion) {
631
+ var tmp0 = this.e3x(contentType, charset, typeInfo, value, $completion);
632
+ return tmp0;
633
+ };
634
+ protoOf(KotlinxSerializationConverter).w22 = function (contentType, charset, typeInfo, value, $completion) {
635
+ return this.d3x(contentType, charset, typeInfo, value, $completion);
636
+ };
637
+ protoOf(KotlinxSerializationConverter).e3x = function (contentType, charset, typeInfo, value, $completion) {
638
+ var tmp = new $serializeNullableCOROUTINE$0(this, contentType, charset, typeInfo, value, $completion);
639
+ tmp.lk_1 = Unit_getInstance();
640
+ tmp.mk_1 = null;
641
+ return tmp.sk();
642
+ };
643
+ protoOf(KotlinxSerializationConverter).x22 = function (contentType, charset, typeInfo, value, $completion) {
644
+ return this.e3x(contentType, charset, typeInfo, value, $completion);
645
+ };
646
+ protoOf(KotlinxSerializationConverter).y22 = function (charset, typeInfo, content, $completion) {
647
+ var tmp = new $deserializeCOROUTINE$1(this, charset, typeInfo, content, $completion);
648
+ tmp.lk_1 = Unit_getInstance();
649
+ tmp.mk_1 = null;
650
+ return tmp.sk();
651
+ };
652
+ function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
653
+ var module_0 = _this__u8e3s4;
654
+ var tmp0_safe_receiver = typeInfo.x1p_1;
655
+ var tmp;
656
+ if (tmp0_safe_receiver == null) {
657
+ tmp = null;
658
+ } else {
659
+ var tmp$ret$1;
660
+ // Inline function 'kotlin.let' call
661
+ // Inline function 'kotlin.contracts.contract' call
662
+ var tmp$ret$0;
663
+ // Inline function 'io.ktor.serialization.kotlinx.serializerForTypeInfo.<anonymous>' call
664
+ var tmp_0;
665
+ if (tmp0_safe_receiver.jg().l()) {
666
+ tmp_0 = null;
667
+ } else {
668
+ tmp_0 = serializerOrNull(module_0, tmp0_safe_receiver);
669
+ }
670
+ tmp$ret$0 = tmp_0;
671
+ tmp$ret$1 = tmp$ret$0;
672
+ tmp = tmp$ret$1;
673
+ }
674
+ var tmp2_elvis_lhs = tmp;
675
+ var tmp_1;
676
+ if (tmp2_elvis_lhs == null) {
677
+ var tmp1_safe_receiver = module_0.b3a(typeInfo.v1p_1);
678
+ tmp_1 = tmp1_safe_receiver == null ? null : maybeNullable(tmp1_safe_receiver, typeInfo);
679
+ } else {
680
+ tmp_1 = tmp2_elvis_lhs;
681
+ }
682
+ var tmp3_elvis_lhs = tmp_1;
683
+ return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.v1p_1), typeInfo) : tmp3_elvis_lhs;
684
+ }
685
+ function guessSerializer(value, module_0) {
686
+ var tmp0_subject = value;
687
+ var tmp;
688
+ if (tmp0_subject == null) {
689
+ tmp = get_nullable(serializer_0(StringCompanionObject_getInstance()));
690
+ } else {
691
+ if (!(tmp0_subject == null) ? isInterface(tmp0_subject, List) : false) {
692
+ tmp = ListSerializer(elementSerializer(value, module_0));
693
+ } else {
694
+ if (!(tmp0_subject == null) ? isArray(tmp0_subject) : false) {
695
+ var tmp1_safe_receiver = firstOrNull_0(value);
696
+ var tmp_0;
697
+ if (tmp1_safe_receiver == null) {
698
+ tmp_0 = null;
699
+ } else {
700
+ var tmp$ret$1;
701
+ // Inline function 'kotlin.let' call
702
+ // Inline function 'kotlin.contracts.contract' call
703
+ var tmp$ret$0;
704
+ // Inline function 'io.ktor.serialization.kotlinx.guessSerializer.<anonymous>' call
705
+ tmp$ret$0 = guessSerializer(tmp1_safe_receiver, module_0);
706
+ tmp$ret$1 = tmp$ret$0;
707
+ tmp_0 = tmp$ret$1;
708
+ }
709
+ var tmp2_elvis_lhs = tmp_0;
710
+ tmp = tmp2_elvis_lhs == null ? ListSerializer(serializer_0(StringCompanionObject_getInstance())) : tmp2_elvis_lhs;
711
+ } else {
712
+ if (!(tmp0_subject == null) ? isInterface(tmp0_subject, Set) : false) {
713
+ tmp = SetSerializer(elementSerializer(value, module_0));
714
+ } else {
715
+ if (!(tmp0_subject == null) ? isInterface(tmp0_subject, Map) : false) {
716
+ var keySerializer = elementSerializer(value.q2(), module_0);
717
+ var valueSerializer = elementSerializer(value.r2(), module_0);
718
+ tmp = MapSerializer(keySerializer, valueSerializer);
719
+ } else {
720
+ var tmp3_elvis_lhs = module_0.b3a(getKClassFromExpression(value));
721
+ tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
722
+ }
723
+ }
724
+ }
725
+ }
726
+ }
727
+ var tmp_1 = tmp;
728
+ return isInterface(tmp_1, KSerializer) ? tmp_1 : THROW_CCE();
729
+ }
730
+ function maybeNullable(_this__u8e3s4, typeInfo) {
731
+ var tmp;
732
+ var tmp0_safe_receiver = typeInfo.x1p_1;
733
+ if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kg()) === true) {
734
+ tmp = get_nullable(_this__u8e3s4);
735
+ } else {
736
+ tmp = _this__u8e3s4;
737
+ }
738
+ return tmp;
739
+ }
740
+ function elementSerializer(_this__u8e3s4, module_0) {
741
+ var tmp$ret$4;
742
+ // Inline function 'kotlin.collections.distinctBy' call
743
+ var tmp$ret$2;
744
+ // Inline function 'kotlin.collections.map' call
745
+ var tmp1_map = filterNotNull(_this__u8e3s4);
746
+ var tmp$ret$1;
747
+ // Inline function 'kotlin.collections.mapTo' call
748
+ var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
749
+ var tmp0_iterator = tmp1_map.f();
750
+ while (tmp0_iterator.g()) {
751
+ var item = tmp0_iterator.h();
752
+ var tmp$ret$0;
753
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
754
+ tmp$ret$0 = guessSerializer(item, module_0);
755
+ tmp0_mapTo.a(tmp$ret$0);
756
+ }
757
+ tmp$ret$1 = tmp0_mapTo;
758
+ tmp$ret$2 = tmp$ret$1;
759
+ var tmp2_distinctBy = tmp$ret$2;
760
+ var set = HashSet_init_$Create$();
761
+ var list = ArrayList_init_$Create$();
762
+ var tmp0_iterator_0 = tmp2_distinctBy.f();
763
+ while (tmp0_iterator_0.g()) {
764
+ var e = tmp0_iterator_0.h();
765
+ var tmp$ret$3;
766
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
767
+ tmp$ret$3 = e.s38().s39();
768
+ var key = tmp$ret$3;
769
+ if (set.a(key)) {
770
+ list.a(e);
771
+ }
772
+ }
773
+ tmp$ret$4 = list;
774
+ var serializers = tmp$ret$4;
775
+ if (serializers.i() > 1) {
776
+ // Inline function 'kotlin.error' call
777
+ var tmp$ret$7;
778
+ // Inline function 'kotlin.collections.map' call
779
+ var tmp$ret$6;
780
+ // Inline function 'kotlin.collections.mapTo' call
781
+ var tmp3_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
782
+ var tmp0_iterator_1 = serializers.f();
783
+ while (tmp0_iterator_1.g()) {
784
+ var item_0 = tmp0_iterator_1.h();
785
+ var tmp$ret$5;
786
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
787
+ tmp$ret$5 = item_0.s38().s39();
788
+ tmp3_mapTo.a(tmp$ret$5);
789
+ }
790
+ tmp$ret$6 = tmp3_mapTo;
791
+ tmp$ret$7 = tmp$ret$6;
792
+ var tmp4_error = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + tmp$ret$7);
793
+ throw IllegalStateException_init_$Create$(toString(tmp4_error));
794
+ }
795
+ var tmp0_elvis_lhs = singleOrNull(serializers);
796
+ var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_getInstance()) : tmp0_elvis_lhs;
797
+ if (selected.s38().e3a()) {
798
+ return selected;
799
+ }
800
+ if (isInterface(selected, KSerializer))
801
+ selected;
802
+ else
803
+ THROW_CCE();
804
+ var tmp$ret$8;
805
+ $l$block_0: {
806
+ // Inline function 'kotlin.collections.any' call
807
+ var tmp;
808
+ if (isInterface(_this__u8e3s4, Collection)) {
809
+ tmp = _this__u8e3s4.l();
810
+ } else {
811
+ tmp = false;
812
+ }
813
+ if (tmp) {
814
+ tmp$ret$8 = false;
815
+ break $l$block_0;
816
+ }
817
+ var tmp0_iterator_2 = _this__u8e3s4.f();
818
+ while (tmp0_iterator_2.g()) {
819
+ var element = tmp0_iterator_2.h();
820
+ var tmp$ret$9;
821
+ // Inline function 'io.ktor.serialization.kotlinx.elementSerializer.<anonymous>' call
822
+ tmp$ret$9 = element == null;
823
+ if (tmp$ret$9) {
824
+ tmp$ret$8 = true;
825
+ break $l$block_0;
826
+ }
827
+ }
828
+ tmp$ret$8 = false;
829
+ }
830
+ if (tmp$ret$8) {
831
+ return get_nullable(selected);
832
+ }
833
+ return selected;
834
+ }
835
+ function get_providers() {
836
+ return emptyList();
837
+ }
838
+ //region block: exports
839
+ _.$_$ = _.$_$ || {};
840
+ _.$_$.a = serialization;
841
+ //endregion
842
+ return _;
843
+ }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlinx-serialization-kotlinx-serialization-core-js-ir.js'), require('./ktor-ktor-http.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-serialization.js')));
844
+
845
+ //# sourceMappingURL=ktor-ktor-serialization-kotlinx.js.map