@solibo/home-api 1.16.17 → 1.16.18
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-DateTime-library-kotlinx-datetime.mjs +964 -960
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3712 -3533
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-browser.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2054 -2054
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +57 -57
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +519 -519
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2285 -2286
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1713 -1711
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +452 -292
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3486 -3378
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +581 -581
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1231 -1174
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1172 -1223
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +84 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +216 -226
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +111 -116
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-sse.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1037 -983
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +925 -911
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +46 -46
- package/solibo-sdk-sdk-home-api.mjs +98430 -97370
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ArrayList_init_$Create$
|
|
3
|
-
|
|
2
|
+
ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$,
|
|
3
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
4
4
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
5
5
|
protoOf180f3jzyo7rfj as protoOf,
|
|
6
6
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
@@ -9,19 +9,19 @@ import {
|
|
|
9
9
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
10
10
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
11
11
|
toString1pkumu07cwy4m as toString,
|
|
12
|
-
IllegalStateException_init_$Create$
|
|
12
|
+
IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$,
|
|
13
13
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
14
14
|
isInterface3d6p8outrmvmk as isInterface,
|
|
15
15
|
equals2au1ep9vhcato as equals,
|
|
16
16
|
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
17
17
|
hashCodeq5arwsb9dgti as hashCode,
|
|
18
18
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
19
|
-
IllegalArgumentException_init_$Create$
|
|
19
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
|
|
20
20
|
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
21
21
|
KtMap140uvy3s5zad8 as KtMap,
|
|
22
22
|
KtSetjrjc7fhfd6b9 as KtSet,
|
|
23
23
|
firstOrNull1gk7vzkf4h3nq as firstOrNull,
|
|
24
|
-
|
|
24
|
+
StringCompanionObject_instance2dx16b5pp3v3z as StringCompanionObject_instance,
|
|
25
25
|
isArray1hxjqtqy632bc as isArray,
|
|
26
26
|
KtList3hktaavzmj137 as KtList,
|
|
27
27
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
to2cs3ny02qtbcb as to,
|
|
30
30
|
filterNotNull3qfgcwmxhwfxe as filterNotNull,
|
|
31
31
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
32
|
-
ArrayList_init_$Create$
|
|
33
|
-
HashSet_init_$Create$
|
|
32
|
+
ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$_0,
|
|
33
|
+
HashSet_init_$Create$b2fvq2b4c4v2 as HashSet_init_$Create$,
|
|
34
34
|
singleOrNullrknfaxokm1sl as singleOrNull,
|
|
35
35
|
Collection1k04j3hzsbod0 as Collection,
|
|
36
36
|
KClass1cc9rfeybg8hs as KClass,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
serializer1x79l67jvwntn as serializer_0,
|
|
49
49
|
ListSerializer1hxuk9dx5n9du as ListSerializer,
|
|
50
50
|
get_nullable197rfua9r7fsz as get_nullable,
|
|
51
|
-
SerializationException_init_$Create$
|
|
51
|
+
SerializationException_init_$Create$1oc2fm69kd4pj as SerializationException_init_$Create$,
|
|
52
52
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
53
53
|
import {
|
|
54
54
|
ByteArrayContent9zol65b22hp0 as ByteArrayContent,
|
|
@@ -59,16 +59,17 @@ import {
|
|
|
59
59
|
import {
|
|
60
60
|
FlowCollector26clgpmzihvke as FlowCollector,
|
|
61
61
|
asFlow3ngsnn5xpz8pw as asFlow,
|
|
62
|
-
|
|
62
|
+
firstOrNull1sz36fdcyca21 as firstOrNull_0,
|
|
63
63
|
} from './kotlinx-coroutines-core.mjs';
|
|
64
64
|
import {
|
|
65
|
-
|
|
65
|
+
readBuffery45c0omfxhxc as readBuffer,
|
|
66
66
|
ByteReadChannel2ndu7k90iil3s as ByteReadChannel,
|
|
67
67
|
discard3ugntd47xyll6 as discard,
|
|
68
68
|
readText27783kyxjxi1g as readText,
|
|
69
69
|
} from './ktor-ktor-io.mjs';
|
|
70
70
|
import { readByteArray1ri21h2rciakw as readByteArray } from './kotlinx-io-kotlinx-io-core.mjs';
|
|
71
71
|
import { JsonConvertExceptiongnc5x6xwaf77 as JsonConvertException } from './ktor-ktor-serialization.mjs';
|
|
72
|
+
import { KotlinxSerializerJsonSchemaInference2pgk3rid93x2d as KotlinxSerializerJsonSchemaInference } from './ktor-ktor-openapi-schema.mjs';
|
|
72
73
|
//region block: imports
|
|
73
74
|
//endregion
|
|
74
75
|
//region block: pre-declaration
|
|
@@ -87,52 +88,52 @@ function extensions(format) {
|
|
|
87
88
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
88
89
|
var destination = ArrayList_init_$Create$();
|
|
89
90
|
// Inline function 'kotlin.collections.forEach' call
|
|
90
|
-
var _iterator__ex2g4s = tmp0.
|
|
91
|
-
while (_iterator__ex2g4s.
|
|
92
|
-
var element = _iterator__ex2g4s.
|
|
93
|
-
var tmp0_safe_receiver = element.
|
|
91
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
92
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
93
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
94
|
+
var tmp0_safe_receiver = element.extension_u1a1up_k$(format);
|
|
94
95
|
if (tmp0_safe_receiver == null)
|
|
95
96
|
null;
|
|
96
97
|
else {
|
|
97
98
|
// Inline function 'kotlin.let' call
|
|
98
|
-
destination.
|
|
99
|
+
destination.add_utx5q5_k$(tmp0_safe_receiver);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
return destination;
|
|
102
103
|
}
|
|
103
104
|
function serialization(_this__u8e3s4, contentType, format) {
|
|
104
|
-
_this__u8e3s4.
|
|
105
|
+
_this__u8e3s4.register$default_yp0q2f_k$(contentType, new KotlinxSerializationConverter(format));
|
|
105
106
|
}
|
|
106
107
|
function KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
107
|
-
this
|
|
108
|
-
this
|
|
109
|
-
this
|
|
110
|
-
this
|
|
111
|
-
this
|
|
108
|
+
this.$$this$unsafeFlow_1 = $$this$unsafeFlow;
|
|
109
|
+
this.$contentType_1 = $contentType;
|
|
110
|
+
this.$charset_1 = $charset;
|
|
111
|
+
this.$typeInfo_1 = $typeInfo;
|
|
112
|
+
this.$value_1 = $value;
|
|
112
113
|
CoroutineImpl.call(this, resultContinuation);
|
|
113
114
|
}
|
|
114
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
115
|
-
var tmp = this.
|
|
116
|
-
tmp.
|
|
117
|
-
tmp.
|
|
118
|
-
return tmp.
|
|
115
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).invoke_e0ttvm_k$ = function (value, $completion) {
|
|
116
|
+
var tmp = this.create_wyq9v6_k$(value, $completion);
|
|
117
|
+
tmp.result_1 = Unit_instance;
|
|
118
|
+
tmp.exception_1 = null;
|
|
119
|
+
return tmp.doResume_5yljmg_k$();
|
|
119
120
|
};
|
|
120
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
121
|
-
return this.
|
|
121
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
122
|
+
return this.invoke_e0ttvm_k$(p1, $completion);
|
|
122
123
|
};
|
|
123
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
124
|
-
var suspendResult = this.
|
|
124
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).doResume_5yljmg_k$ = function () {
|
|
125
|
+
var suspendResult = this.result_1;
|
|
125
126
|
$sm: do
|
|
126
127
|
try {
|
|
127
|
-
var tmp = this.
|
|
128
|
+
var tmp = this.state_1;
|
|
128
129
|
switch (tmp) {
|
|
129
130
|
case 0:
|
|
130
|
-
this.
|
|
131
|
-
var tmp0 = this
|
|
132
|
-
var tmp2 = this.
|
|
133
|
-
this
|
|
134
|
-
this.
|
|
135
|
-
suspendResult = tmp2.
|
|
131
|
+
this.exceptionState_1 = 3;
|
|
132
|
+
var tmp0 = this.$$this$unsafeFlow_1;
|
|
133
|
+
var tmp2 = this.value_1;
|
|
134
|
+
this.$this$transform0__1 = tmp0;
|
|
135
|
+
this.state_1 = 1;
|
|
136
|
+
suspendResult = tmp2.serialize_vlmgdn_k$(this.$contentType_1, this.$charset_1, this.$typeInfo_1, this.$value_1, this);
|
|
136
137
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
137
138
|
return suspendResult;
|
|
138
139
|
}
|
|
@@ -140,8 +141,8 @@ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).s8 = function
|
|
|
140
141
|
continue $sm;
|
|
141
142
|
case 1:
|
|
142
143
|
var ARGUMENT = suspendResult;
|
|
143
|
-
this.
|
|
144
|
-
suspendResult = this.
|
|
144
|
+
this.state_1 = 2;
|
|
145
|
+
suspendResult = this.$this$transform0__1.emit_t92u1f_k$(ARGUMENT, this);
|
|
145
146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
146
147
|
return suspendResult;
|
|
147
148
|
}
|
|
@@ -150,47 +151,47 @@ protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).s8 = function
|
|
|
150
151
|
case 2:
|
|
151
152
|
return Unit_instance;
|
|
152
153
|
case 3:
|
|
153
|
-
throw this.
|
|
154
|
+
throw this.exception_1;
|
|
154
155
|
}
|
|
155
156
|
} catch ($p) {
|
|
156
157
|
var e = $p;
|
|
157
|
-
if (this.
|
|
158
|
+
if (this.exceptionState_1 === 3) {
|
|
158
159
|
throw e;
|
|
159
160
|
} else {
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
161
|
+
this.state_1 = this.exceptionState_1;
|
|
162
|
+
this.exception_1 = e;
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
165
|
while (true);
|
|
165
166
|
};
|
|
166
|
-
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).
|
|
167
|
-
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this
|
|
168
|
-
i.
|
|
167
|
+
protoOf(KotlinxSerializationConverter$serialize$o$collect$slambda).create_wyq9v6_k$ = function (value, completion) {
|
|
168
|
+
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda(this.$$this$unsafeFlow_1, this.$contentType_1, this.$charset_1, this.$typeInfo_1, this.$value_1, completion);
|
|
169
|
+
i.value_1 = value;
|
|
169
170
|
return i;
|
|
170
171
|
};
|
|
171
172
|
function KotlinxSerializationConverter$serialize$o$collect$slambda_0($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation) {
|
|
172
173
|
var i = new KotlinxSerializationConverter$serialize$o$collect$slambda($$this$unsafeFlow, $contentType, $charset, $typeInfo, $value, resultContinuation);
|
|
173
174
|
return constructCallableReference(function (value, $completion) {
|
|
174
|
-
return i.
|
|
175
|
+
return i.invoke_e0ttvm_k$(value, $completion);
|
|
175
176
|
}, 1);
|
|
176
177
|
}
|
|
177
178
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
178
179
|
CoroutineImpl.call(this, resultContinuation);
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
180
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
181
|
+
this.collector_1 = collector;
|
|
181
182
|
}
|
|
182
|
-
protoOf($collectCOROUTINE$).
|
|
183
|
-
var suspendResult = this.
|
|
183
|
+
protoOf($collectCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
184
|
+
var suspendResult = this.result_1;
|
|
184
185
|
$sm: do
|
|
185
186
|
try {
|
|
186
|
-
var tmp = this.
|
|
187
|
+
var tmp = this.state_1;
|
|
187
188
|
switch (tmp) {
|
|
188
189
|
case 0:
|
|
189
|
-
this.
|
|
190
|
-
var $this$unsafeFlow = this.
|
|
191
|
-
this.
|
|
192
|
-
var tmp_0 = KotlinxSerializationConverter$serialize$o$collect$slambda_0($this$unsafeFlow, this.
|
|
193
|
-
suspendResult = this.
|
|
190
|
+
this.exceptionState_1 = 2;
|
|
191
|
+
var $this$unsafeFlow = this.collector_1;
|
|
192
|
+
this.state_1 = 1;
|
|
193
|
+
var tmp_0 = KotlinxSerializationConverter$serialize$o$collect$slambda_0($this$unsafeFlow, this._this__u8e3s4__1.$contentType_1, this._this__u8e3s4__1.$charset_1, this._this__u8e3s4__1.$typeInfo_1, this._this__u8e3s4__1.$value_1, null);
|
|
194
|
+
suspendResult = this._this__u8e3s4__1.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
194
195
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
195
196
|
return suspendResult;
|
|
196
197
|
}
|
|
@@ -199,15 +200,15 @@ protoOf($collectCOROUTINE$).s8 = function () {
|
|
|
199
200
|
case 1:
|
|
200
201
|
return Unit_instance;
|
|
201
202
|
case 2:
|
|
202
|
-
throw this.
|
|
203
|
+
throw this.exception_1;
|
|
203
204
|
}
|
|
204
205
|
} catch ($p) {
|
|
205
206
|
var e = $p;
|
|
206
|
-
if (this.
|
|
207
|
+
if (this.exceptionState_1 === 2) {
|
|
207
208
|
throw e;
|
|
208
209
|
} else {
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
210
|
+
this.state_1 = this.exceptionState_1;
|
|
211
|
+
this.exception_1 = e;
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
while (true);
|
|
@@ -215,11 +216,11 @@ protoOf($collectCOROUTINE$).s8 = function () {
|
|
|
215
216
|
function serializeContent($this, serializer, format, value, contentType, charset) {
|
|
216
217
|
var tmp;
|
|
217
218
|
if (isInterface(format, StringFormat)) {
|
|
218
|
-
var content = format.
|
|
219
|
+
var content = format.encodeToString_k0apqx_k$(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
219
220
|
tmp = new TextContent(content, withCharsetIfNeeded(contentType, charset));
|
|
220
221
|
} else {
|
|
221
222
|
if (isInterface(format, BinaryFormat)) {
|
|
222
|
-
var content_0 = format.
|
|
223
|
+
var content_0 = format.encodeToByteArray_n90khx_k$(isInterface(serializer, KSerializer) ? serializer : THROW_CCE(), value);
|
|
223
224
|
tmp = new ByteArrayContent(content_0, contentType);
|
|
224
225
|
} else {
|
|
225
226
|
// Inline function 'kotlin.error' call
|
|
@@ -230,20 +231,20 @@ function serializeContent($this, serializer, format, value, contentType, charset
|
|
|
230
231
|
return tmp;
|
|
231
232
|
}
|
|
232
233
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
233
|
-
this.
|
|
234
|
+
this.function_1 = function_0;
|
|
234
235
|
}
|
|
235
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
236
|
-
return this.
|
|
236
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).emit_t92u1f_k$ = function (value, $completion) {
|
|
237
|
+
return this.function_1(value, $completion);
|
|
237
238
|
};
|
|
238
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
239
|
-
return this.
|
|
239
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).getFunctionDelegate_jtodtf_k$ = function () {
|
|
240
|
+
return this.function_1;
|
|
240
241
|
};
|
|
241
242
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
242
243
|
var tmp;
|
|
243
244
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
244
245
|
var tmp_0;
|
|
245
246
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
246
|
-
tmp_0 = equals(this.
|
|
247
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
247
248
|
} else {
|
|
248
249
|
tmp_0 = false;
|
|
249
250
|
}
|
|
@@ -254,46 +255,46 @@ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
|
254
255
|
return tmp;
|
|
255
256
|
};
|
|
256
257
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
257
|
-
return hashCode(this.
|
|
258
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
258
259
|
};
|
|
259
260
|
function KotlinxSerializationConverter$serialize$$inlined$map$1($this, $contentType, $charset, $typeInfo, $value) {
|
|
260
|
-
this
|
|
261
|
-
this
|
|
262
|
-
this
|
|
263
|
-
this
|
|
264
|
-
this
|
|
261
|
+
this.$this_1 = $this;
|
|
262
|
+
this.$contentType_1 = $contentType;
|
|
263
|
+
this.$charset_1 = $charset;
|
|
264
|
+
this.$typeInfo_1 = $typeInfo;
|
|
265
|
+
this.$value_1 = $value;
|
|
265
266
|
}
|
|
266
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
267
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).collect_ooju95_k$ = function (collector, $completion) {
|
|
267
268
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
268
|
-
tmp.
|
|
269
|
-
tmp.
|
|
270
|
-
return tmp.
|
|
269
|
+
tmp.result_1 = Unit_instance;
|
|
270
|
+
tmp.exception_1 = null;
|
|
271
|
+
return tmp.doResume_5yljmg_k$();
|
|
271
272
|
};
|
|
272
|
-
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).
|
|
273
|
-
return this.
|
|
273
|
+
protoOf(KotlinxSerializationConverter$serialize$$inlined$map$1).collect_aksokr_k$ = function (collector, $completion) {
|
|
274
|
+
return this.collect_ooju95_k$(collector, $completion);
|
|
274
275
|
};
|
|
275
276
|
function KotlinxSerializationConverter$serialize$slambda(resultContinuation) {
|
|
276
277
|
CoroutineImpl.call(this, resultContinuation);
|
|
277
278
|
}
|
|
278
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
279
|
-
var tmp = this.
|
|
280
|
-
tmp.
|
|
281
|
-
tmp.
|
|
282
|
-
return tmp.
|
|
279
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).invoke_tf1dmz_k$ = function (it, $completion) {
|
|
280
|
+
var tmp = this.create_ldx8i_k$(it, $completion);
|
|
281
|
+
tmp.result_1 = Unit_instance;
|
|
282
|
+
tmp.exception_1 = null;
|
|
283
|
+
return tmp.doResume_5yljmg_k$();
|
|
283
284
|
};
|
|
284
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
285
|
-
return this.
|
|
285
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
286
|
+
return this.invoke_tf1dmz_k$((p1 == null ? true : p1 instanceof OutgoingContent) ? p1 : THROW_CCE(), $completion);
|
|
286
287
|
};
|
|
287
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
288
|
-
var suspendResult = this.
|
|
288
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).doResume_5yljmg_k$ = function () {
|
|
289
|
+
var suspendResult = this.result_1;
|
|
289
290
|
$sm: do
|
|
290
291
|
try {
|
|
291
|
-
var tmp = this.
|
|
292
|
+
var tmp = this.state_1;
|
|
292
293
|
if (tmp === 0) {
|
|
293
|
-
this.
|
|
294
|
-
return !(this.
|
|
294
|
+
this.exceptionState_1 = 1;
|
|
295
|
+
return !(this.it_1 == null);
|
|
295
296
|
} else if (tmp === 1) {
|
|
296
|
-
throw this.
|
|
297
|
+
throw this.exception_1;
|
|
297
298
|
}
|
|
298
299
|
} catch ($p) {
|
|
299
300
|
var e = $p;
|
|
@@ -301,36 +302,36 @@ protoOf(KotlinxSerializationConverter$serialize$slambda).s8 = function () {
|
|
|
301
302
|
}
|
|
302
303
|
while (true);
|
|
303
304
|
};
|
|
304
|
-
protoOf(KotlinxSerializationConverter$serialize$slambda).
|
|
305
|
+
protoOf(KotlinxSerializationConverter$serialize$slambda).create_ldx8i_k$ = function (it, completion) {
|
|
305
306
|
var i = new KotlinxSerializationConverter$serialize$slambda(completion);
|
|
306
|
-
i.
|
|
307
|
+
i.it_1 = it;
|
|
307
308
|
return i;
|
|
308
309
|
};
|
|
309
310
|
function KotlinxSerializationConverter$serialize$slambda_0(resultContinuation) {
|
|
310
311
|
var i = new KotlinxSerializationConverter$serialize$slambda(resultContinuation);
|
|
311
312
|
return constructCallableReference(function (it, $completion) {
|
|
312
|
-
return i.
|
|
313
|
+
return i.invoke_tf1dmz_k$(it, $completion);
|
|
313
314
|
}, 1);
|
|
314
315
|
}
|
|
315
316
|
function $serializeCOROUTINE$(_this__u8e3s4, contentType, charset, typeInfo, value, resultContinuation) {
|
|
316
317
|
CoroutineImpl.call(this, resultContinuation);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
318
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
319
|
+
this.contentType_1 = contentType;
|
|
320
|
+
this.charset_1 = charset;
|
|
321
|
+
this.typeInfo_1 = typeInfo;
|
|
322
|
+
this.value_1 = value;
|
|
322
323
|
}
|
|
323
|
-
protoOf($serializeCOROUTINE$).
|
|
324
|
-
var suspendResult = this.
|
|
324
|
+
protoOf($serializeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
325
|
+
var suspendResult = this.result_1;
|
|
325
326
|
$sm: do
|
|
326
327
|
try {
|
|
327
|
-
var tmp = this.
|
|
328
|
+
var tmp = this.state_1;
|
|
328
329
|
switch (tmp) {
|
|
329
330
|
case 0:
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
var this_0 = asFlow(this.
|
|
333
|
-
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.
|
|
331
|
+
this.exceptionState_1 = 2;
|
|
332
|
+
this.state_1 = 1;
|
|
333
|
+
var this_0 = asFlow(this._this__u8e3s4__1.extensions_1);
|
|
334
|
+
var tmp_0 = new KotlinxSerializationConverter$serialize$$inlined$map$1(this_0, this.contentType_1, this.charset_1, this.typeInfo_1, this.value_1);
|
|
334
335
|
suspendResult = firstOrNull_0(tmp_0, KotlinxSerializationConverter$serialize$slambda_0(null), this);
|
|
335
336
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
336
337
|
return suspendResult;
|
|
@@ -343,12 +344,12 @@ protoOf($serializeCOROUTINE$).s8 = function () {
|
|
|
343
344
|
return fromExtension;
|
|
344
345
|
var tmp_1;
|
|
345
346
|
try {
|
|
346
|
-
tmp_1 = serializerForTypeInfo(this.
|
|
347
|
+
tmp_1 = serializerForTypeInfo(this._this__u8e3s4__1.format_1.get_serializersModule_piitvg_k$(), this.typeInfo_1);
|
|
347
348
|
} catch ($p) {
|
|
348
349
|
var tmp_2;
|
|
349
350
|
if ($p instanceof SerializationException) {
|
|
350
351
|
var cause = $p;
|
|
351
|
-
tmp_2 = guessSerializer(this.
|
|
352
|
+
tmp_2 = guessSerializer(this.value_1, this._this__u8e3s4__1.format_1.get_serializersModule_piitvg_k$());
|
|
352
353
|
} else {
|
|
353
354
|
throw $p;
|
|
354
355
|
}
|
|
@@ -356,57 +357,57 @@ protoOf($serializeCOROUTINE$).s8 = function () {
|
|
|
356
357
|
}
|
|
357
358
|
|
|
358
359
|
var serializer = tmp_1;
|
|
359
|
-
return serializeContent(this.
|
|
360
|
+
return serializeContent(this._this__u8e3s4__1, serializer, this._this__u8e3s4__1.format_1, this.value_1, this.contentType_1, this.charset_1);
|
|
360
361
|
case 2:
|
|
361
|
-
throw this.
|
|
362
|
+
throw this.exception_1;
|
|
362
363
|
}
|
|
363
364
|
} catch ($p_0) {
|
|
364
365
|
var e = $p_0;
|
|
365
|
-
if (this.
|
|
366
|
+
if (this.exceptionState_1 === 2) {
|
|
366
367
|
throw e;
|
|
367
368
|
} else {
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
369
|
+
this.state_1 = this.exceptionState_1;
|
|
370
|
+
this.exception_1 = e;
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
while (true);
|
|
373
374
|
};
|
|
374
375
|
function $deserializeCOROUTINE$(_this__u8e3s4, charset, typeInfo, content, resultContinuation) {
|
|
375
376
|
CoroutineImpl.call(this, resultContinuation);
|
|
376
|
-
this.
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
377
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
378
|
+
this.charset_1 = charset;
|
|
379
|
+
this.typeInfo_1 = typeInfo;
|
|
380
|
+
this.content_1 = content;
|
|
380
381
|
}
|
|
381
|
-
protoOf($deserializeCOROUTINE$).
|
|
382
|
-
var suspendResult = this.
|
|
382
|
+
protoOf($deserializeCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
383
|
+
var suspendResult = this.result_1;
|
|
383
384
|
$sm: do
|
|
384
385
|
try {
|
|
385
|
-
var tmp = this.
|
|
386
|
+
var tmp = this.state_1;
|
|
386
387
|
switch (tmp) {
|
|
387
388
|
case 0:
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
suspendResult =
|
|
389
|
+
this.exceptionState_1 = 7;
|
|
390
|
+
this.state_1 = 1;
|
|
391
|
+
suspendResult = readBuffer(this.content_1, this);
|
|
391
392
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
392
393
|
return suspendResult;
|
|
393
394
|
}
|
|
394
395
|
|
|
395
396
|
continue $sm;
|
|
396
397
|
case 1:
|
|
397
|
-
this.
|
|
398
|
-
this.
|
|
399
|
-
this.
|
|
398
|
+
this.contentPacket0__1 = suspendResult;
|
|
399
|
+
this._iterator_2_yqohr2__1 = this._this__u8e3s4__1.extensions_1.iterator_jk1svi_k$();
|
|
400
|
+
this.state_1 = 2;
|
|
400
401
|
continue $sm;
|
|
401
402
|
case 2:
|
|
402
|
-
if (!this.
|
|
403
|
-
this.
|
|
403
|
+
if (!this._iterator_2_yqohr2__1.hasNext_bitz1p_k$()) {
|
|
404
|
+
this.state_1 = 5;
|
|
404
405
|
continue $sm;
|
|
405
406
|
}
|
|
406
407
|
|
|
407
|
-
var ext = this.
|
|
408
|
-
this.
|
|
409
|
-
suspendResult = ext.
|
|
408
|
+
var ext = this._iterator_2_yqohr2__1.next_20eer_k$();
|
|
409
|
+
this.state_1 = 3;
|
|
410
|
+
suspendResult = ext.deserialize_4o4t3i_k$(this.charset_1, this.typeInfo_1, ByteReadChannel(this.contentPacket0__1), this);
|
|
410
411
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
411
412
|
return suspendResult;
|
|
412
413
|
}
|
|
@@ -415,101 +416,102 @@ protoOf($deserializeCOROUTINE$).s8 = function () {
|
|
|
415
416
|
case 3:
|
|
416
417
|
var tmp0_elvis_lhs = suspendResult;
|
|
417
418
|
if (tmp0_elvis_lhs == null) {
|
|
418
|
-
this.
|
|
419
|
+
this.state_1 = 2;
|
|
419
420
|
var tmp_0 = this;
|
|
420
421
|
continue $sm;
|
|
421
422
|
} else {
|
|
422
|
-
this.
|
|
423
|
-
this.
|
|
423
|
+
this.WHEN_RESULT1__1 = tmp0_elvis_lhs;
|
|
424
|
+
this.state_1 = 4;
|
|
424
425
|
continue $sm;
|
|
425
426
|
}
|
|
426
427
|
|
|
427
428
|
case 4:
|
|
428
|
-
return this.
|
|
429
|
+
return this.WHEN_RESULT1__1;
|
|
429
430
|
case 5:
|
|
430
|
-
var serializer = serializerForTypeInfo(this.
|
|
431
|
-
this.
|
|
432
|
-
var tmp1_subject = this.
|
|
431
|
+
var serializer = serializerForTypeInfo(this._this__u8e3s4__1.format_1.get_serializersModule_piitvg_k$(), this.typeInfo_1);
|
|
432
|
+
this.exceptionState_1 = 6;
|
|
433
|
+
var tmp1_subject = this._this__u8e3s4__1.format_1;
|
|
433
434
|
var tmp_1;
|
|
434
435
|
if (isInterface(tmp1_subject, StringFormat)) {
|
|
435
|
-
tmp_1 = this.
|
|
436
|
+
tmp_1 = this._this__u8e3s4__1.format_1.decodeFromString_jwu9sq_k$(serializer, readText(this.contentPacket0__1, this.charset_1));
|
|
436
437
|
} else {
|
|
437
438
|
if (isInterface(tmp1_subject, BinaryFormat)) {
|
|
438
|
-
tmp_1 = this.
|
|
439
|
+
tmp_1 = this._this__u8e3s4__1.format_1.decodeFromByteArray_8opj5c_k$(serializer, readByteArray(this.contentPacket0__1));
|
|
439
440
|
} else {
|
|
440
|
-
discard(this.
|
|
441
|
-
var message = 'Unsupported format ' + toString(this.
|
|
441
|
+
discard(this.contentPacket0__1);
|
|
442
|
+
var message = 'Unsupported format ' + toString(this._this__u8e3s4__1.format_1);
|
|
442
443
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
return tmp_1;
|
|
447
448
|
case 6:
|
|
448
|
-
this.
|
|
449
|
-
var tmp_2 = this.
|
|
449
|
+
this.exceptionState_1 = 7;
|
|
450
|
+
var tmp_2 = this.exception_1;
|
|
450
451
|
if (tmp_2 instanceof Error) {
|
|
451
|
-
var cause = this.
|
|
452
|
+
var cause = this.exception_1;
|
|
452
453
|
throw new JsonConvertException('Illegal input: ' + cause.message, cause);
|
|
453
454
|
} else {
|
|
454
|
-
throw this.
|
|
455
|
+
throw this.exception_1;
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
case 7:
|
|
458
|
-
throw this.
|
|
459
|
+
throw this.exception_1;
|
|
459
460
|
}
|
|
460
461
|
} catch ($p) {
|
|
461
462
|
var e = $p;
|
|
462
|
-
if (this.
|
|
463
|
+
if (this.exceptionState_1 === 7) {
|
|
463
464
|
throw e;
|
|
464
465
|
} else {
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
466
|
+
this.state_1 = this.exceptionState_1;
|
|
467
|
+
this.exception_1 = e;
|
|
467
468
|
}
|
|
468
469
|
}
|
|
469
470
|
while (true);
|
|
470
471
|
};
|
|
471
472
|
function KotlinxSerializationConverter(format) {
|
|
472
|
-
this.
|
|
473
|
-
this.
|
|
473
|
+
this.format_1 = format;
|
|
474
|
+
this.extensions_1 = extensions(this.format_1);
|
|
475
|
+
this.schemaInference_1 = new KotlinxSerializerJsonSchemaInference(this.format_1.get_serializersModule_piitvg_k$());
|
|
474
476
|
var tmp;
|
|
475
|
-
var tmp_0 = this.
|
|
477
|
+
var tmp_0 = this.format_1;
|
|
476
478
|
if (isInterface(tmp_0, BinaryFormat)) {
|
|
477
479
|
tmp = true;
|
|
478
480
|
} else {
|
|
479
|
-
var tmp_1 = this.
|
|
481
|
+
var tmp_1 = this.format_1;
|
|
480
482
|
tmp = isInterface(tmp_1, StringFormat);
|
|
481
483
|
}
|
|
482
484
|
// Inline function 'kotlin.require' call
|
|
483
485
|
if (!tmp) {
|
|
484
|
-
var message = 'Only binary and string formats are supported, ' + toString(this.
|
|
486
|
+
var message = 'Only binary and string formats are supported, ' + toString(this.format_1) + ' is not supported.';
|
|
485
487
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
486
488
|
}
|
|
487
489
|
}
|
|
488
|
-
protoOf(KotlinxSerializationConverter).
|
|
490
|
+
protoOf(KotlinxSerializationConverter).serialize_dzrloi_k$ = function (contentType, charset, typeInfo, value, $completion) {
|
|
489
491
|
var tmp = new $serializeCOROUTINE$(this, contentType, charset, typeInfo, value, $completion);
|
|
490
|
-
tmp.
|
|
491
|
-
tmp.
|
|
492
|
-
return tmp.
|
|
492
|
+
tmp.result_1 = Unit_instance;
|
|
493
|
+
tmp.exception_1 = null;
|
|
494
|
+
return tmp.doResume_5yljmg_k$();
|
|
493
495
|
};
|
|
494
|
-
protoOf(KotlinxSerializationConverter).
|
|
495
|
-
return this.
|
|
496
|
+
protoOf(KotlinxSerializationConverter).serialize_vlmgdn_k$ = function (contentType, charset, typeInfo, value, $completion) {
|
|
497
|
+
return this.serialize_dzrloi_k$(contentType, charset, typeInfo, value, $completion);
|
|
496
498
|
};
|
|
497
|
-
protoOf(KotlinxSerializationConverter).
|
|
499
|
+
protoOf(KotlinxSerializationConverter).deserialize_4o4t3i_k$ = function (charset, typeInfo, content, $completion) {
|
|
498
500
|
var tmp = new $deserializeCOROUTINE$(this, charset, typeInfo, content, $completion);
|
|
499
|
-
tmp.
|
|
500
|
-
tmp.
|
|
501
|
-
return tmp.
|
|
501
|
+
tmp.result_1 = Unit_instance;
|
|
502
|
+
tmp.exception_1 = null;
|
|
503
|
+
return tmp.doResume_5yljmg_k$();
|
|
502
504
|
};
|
|
503
505
|
function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
504
506
|
var module_0 = _this__u8e3s4;
|
|
505
|
-
var tmp0_safe_receiver = typeInfo.
|
|
507
|
+
var tmp0_safe_receiver = typeInfo.kotlinType_1;
|
|
506
508
|
var tmp;
|
|
507
509
|
if (tmp0_safe_receiver == null) {
|
|
508
510
|
tmp = null;
|
|
509
511
|
} else {
|
|
510
512
|
// Inline function 'kotlin.let' call
|
|
511
513
|
var tmp_0;
|
|
512
|
-
if (tmp0_safe_receiver.
|
|
514
|
+
if (tmp0_safe_receiver.get_arguments_p5ddub_k$().isEmpty_y1axqb_k$()) {
|
|
513
515
|
tmp_0 = null;
|
|
514
516
|
} else {
|
|
515
517
|
var tmp0_elvis_lhs = serializerOrNull(module_0, tmp0_safe_receiver);
|
|
@@ -518,15 +520,9 @@ function serializerForTypeInfo(_this__u8e3s4, typeInfo) {
|
|
|
518
520
|
tmp = tmp_0;
|
|
519
521
|
}
|
|
520
522
|
var tmp1_elvis_lhs = tmp;
|
|
521
|
-
var
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
tmp_1 = tmp2_safe_receiver == null ? null : maybeNullable(tmp2_safe_receiver, typeInfo);
|
|
525
|
-
} else {
|
|
526
|
-
tmp_1 = tmp1_elvis_lhs;
|
|
527
|
-
}
|
|
528
|
-
var tmp3_elvis_lhs = tmp_1;
|
|
529
|
-
return tmp3_elvis_lhs == null ? maybeNullable(serializer(typeInfo.v2j_1), typeInfo) : tmp3_elvis_lhs;
|
|
523
|
+
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? module_0.getContextual$default_5chm2b_k$(typeInfo.type_1) : tmp1_elvis_lhs;
|
|
524
|
+
var serializer_0 = tmp2_elvis_lhs == null ? serializer(typeInfo.type_1) : tmp2_elvis_lhs;
|
|
525
|
+
return maybeNullable(serializer_0, typeInfo.isNullable_1);
|
|
530
526
|
}
|
|
531
527
|
function guessSerializer(value, module_0) {
|
|
532
528
|
var tmp;
|
|
@@ -552,11 +548,11 @@ function guessSerializer(value, module_0) {
|
|
|
552
548
|
tmp = SetSerializer(elementSerializer(value, module_0));
|
|
553
549
|
} else {
|
|
554
550
|
if (isInterface(value, KtMap)) {
|
|
555
|
-
var keySerializer = elementSerializer(value.
|
|
556
|
-
var valueSerializer = elementSerializer(value.
|
|
551
|
+
var keySerializer = elementSerializer(value.get_keys_wop4xp_k$(), module_0);
|
|
552
|
+
var valueSerializer = elementSerializer(value.get_values_ksazhn_k$(), module_0);
|
|
557
553
|
tmp = MapSerializer(keySerializer, valueSerializer);
|
|
558
554
|
} else {
|
|
559
|
-
var tmp3_elvis_lhs = module_0.
|
|
555
|
+
var tmp3_elvis_lhs = module_0.getContextual$default_5chm2b_k$(getKClassFromExpression(value));
|
|
560
556
|
tmp = tmp3_elvis_lhs == null ? serializer(getKClassFromExpression(value)) : tmp3_elvis_lhs;
|
|
561
557
|
}
|
|
562
558
|
}
|
|
@@ -568,16 +564,16 @@ function guessSerializer(value, module_0) {
|
|
|
568
564
|
}
|
|
569
565
|
function checkTypeParameters(type, typeInfo, module_0) {
|
|
570
566
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
571
|
-
var tmp0 = type.
|
|
567
|
+
var tmp0 = type.get_arguments_p5ddub_k$();
|
|
572
568
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
573
569
|
var destination = ArrayList_init_$Create$();
|
|
574
570
|
// Inline function 'kotlin.collections.forEach' call
|
|
575
|
-
var _iterator__ex2g4s = tmp0.
|
|
576
|
-
while (_iterator__ex2g4s.
|
|
577
|
-
var element = _iterator__ex2g4s.
|
|
571
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
572
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
573
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
578
574
|
var tmp;
|
|
579
575
|
try {
|
|
580
|
-
var tmp0_safe_receiver = element.
|
|
576
|
+
var tmp0_safe_receiver = element.type_1;
|
|
581
577
|
var tmp_0;
|
|
582
578
|
if (tmp0_safe_receiver == null) {
|
|
583
579
|
tmp_0 = null;
|
|
@@ -605,29 +601,28 @@ function checkTypeParameters(type, typeInfo, module_0) {
|
|
|
605
601
|
null;
|
|
606
602
|
else {
|
|
607
603
|
// Inline function 'kotlin.let' call
|
|
608
|
-
destination.
|
|
604
|
+
destination.add_utx5q5_k$(tmp);
|
|
609
605
|
}
|
|
610
606
|
}
|
|
611
607
|
var nonSerializableArgs = destination;
|
|
612
|
-
if (nonSerializableArgs.
|
|
608
|
+
if (nonSerializableArgs.isEmpty_y1axqb_k$())
|
|
613
609
|
return null;
|
|
614
610
|
var argNames = joinToString(nonSerializableArgs, VOID, VOID, VOID, VOID, VOID, checkTypeParameters$lambda);
|
|
615
611
|
var tmp_3;
|
|
616
|
-
if (nonSerializableArgs.
|
|
612
|
+
if (nonSerializableArgs.get_size_woubt6_k$() === 1) {
|
|
617
613
|
tmp_3 = to('', 'is');
|
|
618
614
|
} else {
|
|
619
615
|
tmp_3 = to('s', 'are');
|
|
620
616
|
}
|
|
621
617
|
var _destruct__k2r9zo = tmp_3;
|
|
622
|
-
var s = _destruct__k2r9zo.
|
|
623
|
-
var be = _destruct__k2r9zo.
|
|
624
|
-
throw SerializationException_init_$Create$('Serializer for type argument' + s + ' ' + argNames + ' ' + be + " not found for '" + typeInfo.
|
|
618
|
+
var s = _destruct__k2r9zo.component1_7eebsc_k$();
|
|
619
|
+
var be = _destruct__k2r9zo.component2_7eebsb_k$();
|
|
620
|
+
throw SerializationException_init_$Create$('Serializer for type argument' + s + ' ' + argNames + ' ' + be + " not found for '" + typeInfo.type_1.get_simpleName_r6f8py_k$() + "'. " + ('Ensure that the listed type' + s + ' ' + be + " marked as '@Serializable'."));
|
|
625
621
|
}
|
|
626
|
-
function maybeNullable(_this__u8e3s4,
|
|
622
|
+
function maybeNullable(_this__u8e3s4, nullable) {
|
|
627
623
|
var tmp;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
tmp = get_nullable(_this__u8e3s4);
|
|
624
|
+
if (nullable) {
|
|
625
|
+
tmp = get_nullable(isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE());
|
|
631
626
|
} else {
|
|
632
627
|
tmp = _this__u8e3s4;
|
|
633
628
|
}
|
|
@@ -638,33 +633,33 @@ function elementSerializer(_this__u8e3s4, module_0) {
|
|
|
638
633
|
var this_0 = filterNotNull(_this__u8e3s4);
|
|
639
634
|
// Inline function 'kotlin.collections.mapTo' call
|
|
640
635
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
641
|
-
var _iterator__ex2g4s = this_0.
|
|
642
|
-
while (_iterator__ex2g4s.
|
|
643
|
-
var item = _iterator__ex2g4s.
|
|
636
|
+
var _iterator__ex2g4s = this_0.iterator_jk1svi_k$();
|
|
637
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
638
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
644
639
|
var tmp$ret$2 = guessSerializer(item, module_0);
|
|
645
|
-
destination.
|
|
640
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
646
641
|
}
|
|
647
642
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
648
643
|
var set = HashSet_init_$Create$();
|
|
649
644
|
var list = ArrayList_init_$Create$();
|
|
650
|
-
var _iterator__ex2g4s_0 = destination.
|
|
651
|
-
while (_iterator__ex2g4s_0.
|
|
652
|
-
var e = _iterator__ex2g4s_0.
|
|
653
|
-
var key = e.
|
|
654
|
-
if (set.
|
|
655
|
-
list.
|
|
645
|
+
var _iterator__ex2g4s_0 = destination.iterator_jk1svi_k$();
|
|
646
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
647
|
+
var e = _iterator__ex2g4s_0.next_20eer_k$();
|
|
648
|
+
var key = e.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
|
|
649
|
+
if (set.add_utx5q5_k$(key)) {
|
|
650
|
+
list.add_utx5q5_k$(e);
|
|
656
651
|
}
|
|
657
652
|
}
|
|
658
653
|
var serializers = list;
|
|
659
|
-
if (serializers.
|
|
654
|
+
if (serializers.get_size_woubt6_k$() > 1) {
|
|
660
655
|
// Inline function 'kotlin.collections.map' call
|
|
661
656
|
// Inline function 'kotlin.collections.mapTo' call
|
|
662
657
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(serializers, 10));
|
|
663
|
-
var _iterator__ex2g4s_1 = serializers.
|
|
664
|
-
while (_iterator__ex2g4s_1.
|
|
665
|
-
var item_0 = _iterator__ex2g4s_1.
|
|
666
|
-
var tmp$ret$7 = item_0.
|
|
667
|
-
destination_0.
|
|
658
|
+
var _iterator__ex2g4s_1 = serializers.iterator_jk1svi_k$();
|
|
659
|
+
while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
|
|
660
|
+
var item_0 = _iterator__ex2g4s_1.next_20eer_k$();
|
|
661
|
+
var tmp$ret$7 = item_0.get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
|
|
662
|
+
destination_0.add_utx5q5_k$(tmp$ret$7);
|
|
668
663
|
}
|
|
669
664
|
// Inline function 'kotlin.error' call
|
|
670
665
|
var message = 'Serializing collections of different element types is not yet supported. ' + ('Selected serializers: ' + toString(destination_0));
|
|
@@ -672,17 +667,15 @@ function elementSerializer(_this__u8e3s4, module_0) {
|
|
|
672
667
|
}
|
|
673
668
|
var tmp0_elvis_lhs = singleOrNull(serializers);
|
|
674
669
|
var selected = tmp0_elvis_lhs == null ? serializer_0(StringCompanionObject_instance) : tmp0_elvis_lhs;
|
|
675
|
-
if (selected.
|
|
670
|
+
if (selected.get_descriptor_wjt6a0_k$().get_isNullable_67sy7o_k$()) {
|
|
676
671
|
return selected;
|
|
677
672
|
}
|
|
678
|
-
if (!isInterface(selected, KSerializer))
|
|
679
|
-
THROW_CCE();
|
|
680
673
|
var tmp$ret$9;
|
|
681
674
|
$l$block_0: {
|
|
682
675
|
// Inline function 'kotlin.collections.any' call
|
|
683
676
|
var tmp;
|
|
684
677
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
685
|
-
tmp = _this__u8e3s4.
|
|
678
|
+
tmp = _this__u8e3s4.isEmpty_y1axqb_k$();
|
|
686
679
|
} else {
|
|
687
680
|
tmp = false;
|
|
688
681
|
}
|
|
@@ -690,9 +683,9 @@ function elementSerializer(_this__u8e3s4, module_0) {
|
|
|
690
683
|
tmp$ret$9 = false;
|
|
691
684
|
break $l$block_0;
|
|
692
685
|
}
|
|
693
|
-
var _iterator__ex2g4s_2 = _this__u8e3s4.
|
|
694
|
-
while (_iterator__ex2g4s_2.
|
|
695
|
-
var element = _iterator__ex2g4s_2.
|
|
686
|
+
var _iterator__ex2g4s_2 = _this__u8e3s4.iterator_jk1svi_k$();
|
|
687
|
+
while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
|
|
688
|
+
var element = _iterator__ex2g4s_2.next_20eer_k$();
|
|
696
689
|
if (element == null) {
|
|
697
690
|
tmp$ret$9 = true;
|
|
698
691
|
break $l$block_0;
|
|
@@ -700,16 +693,13 @@ function elementSerializer(_this__u8e3s4, module_0) {
|
|
|
700
693
|
}
|
|
701
694
|
tmp$ret$9 = false;
|
|
702
695
|
}
|
|
703
|
-
|
|
704
|
-
return get_nullable(selected);
|
|
705
|
-
}
|
|
706
|
-
return selected;
|
|
696
|
+
return maybeNullable(selected, tmp$ret$9);
|
|
707
697
|
}
|
|
708
698
|
function checkTypeParameters$lambda(it) {
|
|
709
|
-
var clz = it.
|
|
699
|
+
var clz = it.get_classifier_ottyl2_k$();
|
|
710
700
|
var tmp;
|
|
711
701
|
if (!(clz == null) ? isInterface(clz, KClass) : false) {
|
|
712
|
-
tmp = "'" + clz.
|
|
702
|
+
tmp = "'" + clz.get_simpleName_r6f8py_k$() + "'";
|
|
713
703
|
} else {
|
|
714
704
|
tmp = "'" + toString(it) + "'";
|
|
715
705
|
}
|