@doordeck/doordeck-headless-sdk 0.31.0 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1484 -1484
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +33 -23
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js.map +1 -1
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +11 -11
- package/kotlin/Stately-stately-concurrency.js +9 -9
- package/kotlin/Stately-stately-concurrent-collections.js +87 -87
- package/kotlin/doordeck-sdk.d.ts +33 -27
- package/kotlin/doordeck-sdk.js +14002 -14031
- package/kotlin/doordeck-sdk.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +3422 -3210
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-atomicfu.js +71 -71
- package/kotlin/kotlinx-atomicfu.js.map +1 -1
- package/kotlin/kotlinx-coroutines-core.js +2854 -2898
- package/kotlin/kotlinx-coroutines-core.js.map +1 -1
- package/kotlin/kotlinx-io-kotlinx-io-core.js +938 -453
- package/kotlin/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2344 -2283
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js +8 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +2146 -1806
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-core.js +3510 -3374
- package/kotlin/ktor-ktor-client-ktor-client-core.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +490 -431
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js.map +1 -1
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +232 -232
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js.map +1 -1
- package/kotlin/ktor-ktor-http.js +1101 -1046
- package/kotlin/ktor-ktor-http.js.map +1 -1
- package/kotlin/ktor-ktor-io.js +947 -941
- package/kotlin/ktor-ktor-io.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-events.js +24 -24
- package/kotlin/ktor-ktor-shared-ktor-events.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +9 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +325 -325
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +130 -130
- package/kotlin/ktor-ktor-shared-ktor-serialization.js.map +1 -1
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +115 -101
- package/kotlin/ktor-ktor-shared-ktor-websockets.js.map +1 -1
- package/kotlin/ktor-ktor-utils.js +1133 -806
- package/kotlin/ktor-ktor-utils.js.map +1 -1
- package/kotlin/projects-core-koin-core.js +561 -527
- package/kotlin/projects-core-koin-core.js.map +1 -1
- package/package.json +3 -5
- package/kotlin/uuid.js +0 -152
- package/kotlin/uuid.js.map +0 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var plus = kotlin_kotlin.$_$.
|
|
7
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
8
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.nb;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.na;
|
|
6
|
+
var plus = kotlin_kotlin.$_$.x7;
|
|
7
|
+
var toMutableSet = kotlin_kotlin.$_$.t8;
|
|
8
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
9
9
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
10
10
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
11
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
11
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
12
12
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
13
|
-
var VOID = kotlin_kotlin.$_$.
|
|
14
|
-
var Exception = kotlin_kotlin.$_$.
|
|
15
|
-
var Exception_init_$Init$ = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
13
|
+
var VOID = kotlin_kotlin.$_$.h;
|
|
14
|
+
var Exception = kotlin_kotlin.$_$.re;
|
|
15
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.o1;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.y9;
|
|
17
17
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.h;
|
|
18
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
19
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
18
|
+
var CoroutineImpl = kotlin_kotlin.$_$.q9;
|
|
19
|
+
var THROW_CCE = kotlin_kotlin.$_$.af;
|
|
20
20
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
21
21
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
22
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.
|
|
23
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
22
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
23
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a9;
|
|
24
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.sa;
|
|
25
25
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
26
26
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.u;
|
|
27
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.
|
|
28
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
27
|
+
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.d1;
|
|
28
|
+
var isInterface = kotlin_kotlin.$_$.cb;
|
|
29
29
|
var contentType = kotlin_io_ktor_ktor_http.$_$.i1;
|
|
30
30
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
31
31
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
32
|
-
var toString = kotlin_kotlin.$_$.
|
|
32
|
+
var toString = kotlin_kotlin.$_$.rb;
|
|
33
33
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
34
34
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
35
|
-
var Collection = kotlin_kotlin.$_$.
|
|
35
|
+
var Collection = kotlin_kotlin.$_$.l5;
|
|
36
36
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
37
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
37
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
38
38
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
39
39
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
40
|
-
var Unit = kotlin_kotlin.$_$.
|
|
40
|
+
var Unit = kotlin_kotlin.$_$.lf;
|
|
41
41
|
var charset = kotlin_io_ktor_ktor_http.$_$.f1;
|
|
42
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
42
|
+
var ensureNotNull = kotlin_kotlin.$_$.rf;
|
|
43
43
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
44
|
-
var equals = kotlin_kotlin.$_$.
|
|
45
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
47
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
48
|
-
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.
|
|
44
|
+
var equals = kotlin_kotlin.$_$.ga;
|
|
45
|
+
var joinToString = kotlin_kotlin.$_$.m7;
|
|
46
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pa;
|
|
47
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.g6;
|
|
48
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
|
|
49
49
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
50
|
-
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.
|
|
51
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
50
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
51
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.y4;
|
|
52
52
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.w;
|
|
53
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
54
|
-
var setOf = kotlin_kotlin.$_$.
|
|
53
|
+
var getKClass = kotlin_kotlin.$_$.f;
|
|
54
|
+
var setOf = kotlin_kotlin.$_$.g8;
|
|
55
55
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
56
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
57
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
58
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
59
|
-
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.id;
|
|
57
|
+
var endsWith = kotlin_kotlin.$_$.oc;
|
|
58
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ta;
|
|
59
|
+
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
60
60
|
//endregion
|
|
61
61
|
//region block: pre-declaration
|
|
62
62
|
initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
|
|
@@ -85,35 +85,35 @@
|
|
|
85
85
|
}
|
|
86
86
|
var ContentNegotiation;
|
|
87
87
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
90
|
-
this.
|
|
88
|
+
this.f46_1 = converter;
|
|
89
|
+
this.g46_1 = contentTypeToSend;
|
|
90
|
+
this.h46_1 = contentTypeMatcher;
|
|
91
91
|
}
|
|
92
92
|
function defaultMatcher($this, pattern) {
|
|
93
93
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
94
94
|
}
|
|
95
95
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
96
|
-
this.
|
|
96
|
+
this.i46_1 = $pattern;
|
|
97
97
|
}
|
|
98
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
99
|
-
return contentType.
|
|
98
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).j46 = function (contentType) {
|
|
99
|
+
return contentType.f2e(this.i46_1);
|
|
100
100
|
};
|
|
101
101
|
function ContentNegotiationConfig() {
|
|
102
|
-
this.
|
|
102
|
+
this.k46_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
103
103
|
var tmp = this;
|
|
104
104
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
105
|
-
tmp.
|
|
105
|
+
tmp.l46_1 = ArrayList_init_$Create$();
|
|
106
106
|
}
|
|
107
|
-
protoOf(ContentNegotiationConfig).
|
|
108
|
-
var matcher = contentType.equals(Application_getInstance().
|
|
109
|
-
this.
|
|
107
|
+
protoOf(ContentNegotiationConfig).m2q = function (contentType, converter, configuration) {
|
|
108
|
+
var matcher = contentType.equals(Application_getInstance().x2c_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
109
|
+
this.m46(contentType, converter, matcher, configuration);
|
|
110
110
|
};
|
|
111
|
-
protoOf(ContentNegotiationConfig).
|
|
111
|
+
protoOf(ContentNegotiationConfig).m46 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
112
112
|
// Inline function 'kotlin.apply' call
|
|
113
113
|
// Inline function 'kotlin.contracts.contract' call
|
|
114
114
|
configuration(converter);
|
|
115
115
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
116
|
-
this.
|
|
116
|
+
this.l46_1.k(registration);
|
|
117
117
|
};
|
|
118
118
|
function ContentConverterException(message) {
|
|
119
119
|
Exception_init_$Init$(message, this);
|
|
@@ -128,53 +128,53 @@
|
|
|
128
128
|
}
|
|
129
129
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
130
130
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
131
|
-
var registrations = $this$createClientPlugin.
|
|
132
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
133
|
-
$this$createClientPlugin.
|
|
134
|
-
$this$createClientPlugin.
|
|
131
|
+
var registrations = $this$createClientPlugin.c33_1.l46_1;
|
|
132
|
+
var ignoredTypes = $this$createClientPlugin.c33_1.k46_1;
|
|
133
|
+
$this$createClientPlugin.v3l(ContentNegotiation$lambda$slambda_0(registrations, ignoredTypes, $this$createClientPlugin, null));
|
|
134
|
+
$this$createClientPlugin.a3e(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
135
135
|
return Unit_instance;
|
|
136
136
|
}
|
|
137
137
|
function invoke$convertRequest(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion) {
|
|
138
138
|
var tmp = new $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, $completion);
|
|
139
|
-
tmp.
|
|
140
|
-
tmp.
|
|
141
|
-
return tmp.
|
|
139
|
+
tmp.f9_1 = Unit_instance;
|
|
140
|
+
tmp.g9_1 = null;
|
|
141
|
+
return tmp.l9();
|
|
142
142
|
}
|
|
143
143
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
144
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
144
|
+
charset = charset === VOID ? Charsets_getInstance().o1k_1 : charset;
|
|
145
145
|
var tmp = new $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
146
|
-
tmp.
|
|
147
|
-
tmp.
|
|
148
|
-
return tmp.
|
|
146
|
+
tmp.f9_1 = Unit_instance;
|
|
147
|
+
tmp.g9_1 = null;
|
|
148
|
+
return tmp.l9();
|
|
149
149
|
}
|
|
150
150
|
function ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
151
|
+
this.g48_1 = $registrations;
|
|
152
|
+
this.h48_1 = $ignoredTypes;
|
|
153
|
+
this.i48_1 = $this_createClientPlugin;
|
|
154
154
|
CoroutineImpl.call(this, resultContinuation);
|
|
155
155
|
}
|
|
156
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
157
|
-
var tmp = this.
|
|
158
|
-
tmp.
|
|
159
|
-
tmp.
|
|
160
|
-
return tmp.
|
|
156
|
+
protoOf(ContentNegotiation$lambda$slambda).n48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
157
|
+
var tmp = this.o48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
158
|
+
tmp.f9_1 = Unit_instance;
|
|
159
|
+
tmp.g9_1 = null;
|
|
160
|
+
return tmp.l9();
|
|
161
161
|
};
|
|
162
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
162
|
+
protoOf(ContentNegotiation$lambda$slambda).f3f = function (p1, p2, p3, p4, $completion) {
|
|
163
163
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
164
164
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
165
165
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
166
|
-
return this.
|
|
166
|
+
return this.n48(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
167
167
|
};
|
|
168
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
169
|
-
var suspendResult = this.
|
|
168
|
+
protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
|
|
169
|
+
var suspendResult = this.f9_1;
|
|
170
170
|
$sm: do
|
|
171
171
|
try {
|
|
172
|
-
var tmp = this.
|
|
172
|
+
var tmp = this.d9_1;
|
|
173
173
|
switch (tmp) {
|
|
174
174
|
case 0:
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
suspendResult = invoke$convertRequest(this.
|
|
175
|
+
this.e9_1 = 2;
|
|
176
|
+
this.d9_1 = 1;
|
|
177
|
+
suspendResult = invoke$convertRequest(this.g48_1, this.h48_1, this.i48_1, this.k48_1, this.l48_1, this);
|
|
178
178
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
179
179
|
return suspendResult;
|
|
180
180
|
}
|
|
@@ -183,63 +183,63 @@
|
|
|
183
183
|
case 1:
|
|
184
184
|
return suspendResult;
|
|
185
185
|
case 2:
|
|
186
|
-
throw this.
|
|
186
|
+
throw this.g9_1;
|
|
187
187
|
}
|
|
188
188
|
} catch ($p) {
|
|
189
189
|
var e = $p;
|
|
190
|
-
if (this.
|
|
190
|
+
if (this.e9_1 === 2) {
|
|
191
191
|
throw e;
|
|
192
192
|
} else {
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
193
|
+
this.d9_1 = this.e9_1;
|
|
194
|
+
this.g9_1 = e;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
while (true);
|
|
198
198
|
};
|
|
199
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
200
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
201
|
-
i.
|
|
202
|
-
i.
|
|
203
|
-
i.
|
|
204
|
-
i.
|
|
199
|
+
protoOf(ContentNegotiation$lambda$slambda).o48 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
200
|
+
var i = new ContentNegotiation$lambda$slambda(this.g48_1, this.h48_1, this.i48_1, completion);
|
|
201
|
+
i.j48_1 = $this$transformRequestBody;
|
|
202
|
+
i.k48_1 = request;
|
|
203
|
+
i.l48_1 = body;
|
|
204
|
+
i.m48_1 = _unused_var__etf5q3;
|
|
205
205
|
return i;
|
|
206
206
|
};
|
|
207
207
|
function ContentNegotiation$lambda$slambda_0($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation) {
|
|
208
208
|
var i = new ContentNegotiation$lambda$slambda($registrations, $ignoredTypes, $this_createClientPlugin, resultContinuation);
|
|
209
209
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
210
|
-
return i.
|
|
210
|
+
return i.n48($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
211
211
|
};
|
|
212
212
|
l.$arity = 4;
|
|
213
213
|
return l;
|
|
214
214
|
}
|
|
215
215
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
216
|
+
this.x48_1 = $ignoredTypes;
|
|
217
|
+
this.y48_1 = $registrations;
|
|
218
|
+
this.z48_1 = $this_createClientPlugin;
|
|
219
219
|
CoroutineImpl.call(this, resultContinuation);
|
|
220
220
|
}
|
|
221
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
222
|
-
var tmp = this.
|
|
223
|
-
tmp.
|
|
224
|
-
tmp.
|
|
225
|
-
return tmp.
|
|
221
|
+
protoOf(ContentNegotiation$lambda$slambda_1).d3f = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
222
|
+
var tmp = this.e3f($this$transformResponseBody, response, body, info, $completion);
|
|
223
|
+
tmp.f9_1 = Unit_instance;
|
|
224
|
+
tmp.g9_1 = null;
|
|
225
|
+
return tmp.l9();
|
|
226
226
|
};
|
|
227
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
227
|
+
protoOf(ContentNegotiation$lambda$slambda_1).f3f = function (p1, p2, p3, p4, $completion) {
|
|
228
228
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
229
229
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
230
230
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
231
|
-
return this.
|
|
231
|
+
return this.d3f(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
232
232
|
};
|
|
233
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
234
|
-
var suspendResult = this.
|
|
233
|
+
protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
|
|
234
|
+
var suspendResult = this.f9_1;
|
|
235
235
|
$sm: do
|
|
236
236
|
try {
|
|
237
|
-
var tmp = this.
|
|
237
|
+
var tmp = this.d9_1;
|
|
238
238
|
switch (tmp) {
|
|
239
239
|
case 0:
|
|
240
|
-
this.
|
|
240
|
+
this.e9_1 = 2;
|
|
241
241
|
var tmp_0 = this;
|
|
242
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
242
|
+
var tmp0_elvis_lhs = contentType(this.b49_1);
|
|
243
243
|
var tmp_1;
|
|
244
244
|
if (tmp0_elvis_lhs == null) {
|
|
245
245
|
return null;
|
|
@@ -247,10 +247,10 @@
|
|
|
247
247
|
tmp_1 = tmp0_elvis_lhs;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
tmp_0.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
suspendResult = invoke$convertResponse(this.
|
|
250
|
+
tmp_0.e49_1 = tmp_1;
|
|
251
|
+
this.f49_1 = suitableCharset(get_request(this.b49_1).o2i());
|
|
252
|
+
this.d9_1 = 1;
|
|
253
|
+
suspendResult = invoke$convertResponse(this.x48_1, this.y48_1, this.z48_1, get_request(this.b49_1).c2x(), this.d49_1, this.c49_1, this.e49_1, this.f49_1, this);
|
|
254
254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
255
255
|
return suspendResult;
|
|
256
256
|
}
|
|
@@ -259,79 +259,79 @@
|
|
|
259
259
|
case 1:
|
|
260
260
|
return suspendResult;
|
|
261
261
|
case 2:
|
|
262
|
-
throw this.
|
|
262
|
+
throw this.g9_1;
|
|
263
263
|
}
|
|
264
264
|
} catch ($p) {
|
|
265
265
|
var e = $p;
|
|
266
|
-
if (this.
|
|
266
|
+
if (this.e9_1 === 2) {
|
|
267
267
|
throw e;
|
|
268
268
|
} else {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.d9_1 = this.e9_1;
|
|
270
|
+
this.g9_1 = e;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
while (true);
|
|
274
274
|
};
|
|
275
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
276
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
277
|
-
i.
|
|
278
|
-
i.
|
|
279
|
-
i.
|
|
280
|
-
i.
|
|
275
|
+
protoOf(ContentNegotiation$lambda$slambda_1).e3f = function ($this$transformResponseBody, response, body, info, completion) {
|
|
276
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.x48_1, this.y48_1, this.z48_1, completion);
|
|
277
|
+
i.a49_1 = $this$transformResponseBody;
|
|
278
|
+
i.b49_1 = response;
|
|
279
|
+
i.c49_1 = body;
|
|
280
|
+
i.d49_1 = info;
|
|
281
281
|
return i;
|
|
282
282
|
};
|
|
283
283
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
284
284
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
285
285
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
286
|
-
return i.
|
|
286
|
+
return i.d3f($this$transformResponseBody, response, body, info, $completion);
|
|
287
287
|
};
|
|
288
288
|
l.$arity = 4;
|
|
289
289
|
return l;
|
|
290
290
|
}
|
|
291
291
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
292
292
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
293
|
-
return toString(it.
|
|
293
|
+
return toString(it.f46_1);
|
|
294
294
|
}
|
|
295
295
|
function $invoke$convertRequestCOROUTINE$0(registrations, ignoredTypes, $this_createClientPlugin, request, body, resultContinuation) {
|
|
296
296
|
CoroutineImpl.call(this, resultContinuation);
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
297
|
+
this.v46_1 = registrations;
|
|
298
|
+
this.w46_1 = ignoredTypes;
|
|
299
|
+
this.x46_1 = $this_createClientPlugin;
|
|
300
|
+
this.y46_1 = request;
|
|
301
|
+
this.z46_1 = body;
|
|
302
302
|
}
|
|
303
|
-
protoOf($invoke$convertRequestCOROUTINE$0).
|
|
304
|
-
var suspendResult = this.
|
|
303
|
+
protoOf($invoke$convertRequestCOROUTINE$0).l9 = function () {
|
|
304
|
+
var suspendResult = this.f9_1;
|
|
305
305
|
$sm: do
|
|
306
306
|
try {
|
|
307
|
-
var tmp = this.
|
|
307
|
+
var tmp = this.d9_1;
|
|
308
308
|
switch (tmp) {
|
|
309
309
|
case 0:
|
|
310
|
-
this.
|
|
311
|
-
var tmp0_iterator = this.
|
|
312
|
-
while (tmp0_iterator.
|
|
313
|
-
var element = tmp0_iterator.
|
|
310
|
+
this.e9_1 = 7;
|
|
311
|
+
var tmp0_iterator = this.v46_1.p();
|
|
312
|
+
while (tmp0_iterator.q()) {
|
|
313
|
+
var element = tmp0_iterator.r();
|
|
314
314
|
l$ret$1: do {
|
|
315
|
-
get_LOGGER().
|
|
316
|
-
if (this.
|
|
315
|
+
get_LOGGER().k2c('Adding Accept=' + element.g46_1.b2e_1 + ' header for ' + this.y46_1.q2u_1.toString());
|
|
316
|
+
if (this.y46_1.s2u_1.g28(HttpHeaders_getInstance().l2e_1, element.g46_1.toString())) {
|
|
317
317
|
break l$ret$1;
|
|
318
318
|
}
|
|
319
|
-
accept(this.
|
|
319
|
+
accept(this.y46_1, element.g46_1);
|
|
320
320
|
}
|
|
321
321
|
while (false);
|
|
322
322
|
}
|
|
323
323
|
|
|
324
324
|
var tmp_0;
|
|
325
|
-
var tmp_1 = this.
|
|
325
|
+
var tmp_1 = this.z46_1;
|
|
326
326
|
if (tmp_1 instanceof OutgoingContent) {
|
|
327
327
|
tmp_0 = true;
|
|
328
328
|
} else {
|
|
329
329
|
var tmp$ret$2;
|
|
330
330
|
l$ret$3: do {
|
|
331
|
-
var this_0 = this.
|
|
331
|
+
var this_0 = this.w46_1;
|
|
332
332
|
var tmp_2;
|
|
333
333
|
if (isInterface(this_0, Collection)) {
|
|
334
|
-
tmp_2 = this_0.
|
|
334
|
+
tmp_2 = this_0.h();
|
|
335
335
|
} else {
|
|
336
336
|
tmp_2 = false;
|
|
337
337
|
}
|
|
@@ -339,10 +339,10 @@
|
|
|
339
339
|
tmp$ret$2 = false;
|
|
340
340
|
break l$ret$3;
|
|
341
341
|
}
|
|
342
|
-
var tmp0_iterator_0 = this_0.
|
|
343
|
-
while (tmp0_iterator_0.
|
|
344
|
-
var element_0 = tmp0_iterator_0.
|
|
345
|
-
if (element_0.
|
|
342
|
+
var tmp0_iterator_0 = this_0.p();
|
|
343
|
+
while (tmp0_iterator_0.q()) {
|
|
344
|
+
var element_0 = tmp0_iterator_0.r();
|
|
345
|
+
if (element_0.wa(this.z46_1)) {
|
|
346
346
|
tmp$ret$2 = true;
|
|
347
347
|
break l$ret$3;
|
|
348
348
|
}
|
|
@@ -354,42 +354,42 @@
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
if (tmp_0) {
|
|
357
|
-
get_LOGGER().
|
|
357
|
+
get_LOGGER().k2c('Body type ' + toString(getKClassFromExpression(this.z46_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.y46_1.q2u_1.toString() + '.'));
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
var tmp_3 = this;
|
|
362
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
362
|
+
var tmp0_elvis_lhs = contentType_0(this.y46_1);
|
|
363
363
|
var tmp_4;
|
|
364
364
|
if (tmp0_elvis_lhs == null) {
|
|
365
|
-
this.
|
|
366
|
-
get_LOGGER().
|
|
365
|
+
this.x46_1;
|
|
366
|
+
get_LOGGER().k2c("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.y46_1.q2u_1.toString() + '.');
|
|
367
367
|
return null;
|
|
368
368
|
} else {
|
|
369
369
|
tmp_4 = tmp0_elvis_lhs;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
tmp_3.
|
|
373
|
-
var tmp_5 = this.
|
|
372
|
+
tmp_3.a47_1 = tmp_4;
|
|
373
|
+
var tmp_5 = this.z46_1;
|
|
374
374
|
if (tmp_5 instanceof Unit) {
|
|
375
|
-
get_LOGGER().
|
|
376
|
-
this.
|
|
375
|
+
get_LOGGER().k2c('Sending empty body for ' + this.y46_1.q2u_1.toString());
|
|
376
|
+
this.y46_1.s2u_1.m28(HttpHeaders_getInstance().d2f_1);
|
|
377
377
|
return EmptyContent_getInstance();
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
var tmp_6 = this;
|
|
381
|
-
var this_1 = this.
|
|
381
|
+
var this_1 = this.v46_1;
|
|
382
382
|
var destination = ArrayList_init_$Create$();
|
|
383
|
-
var tmp0_iterator_1 = this_1.
|
|
384
|
-
while (tmp0_iterator_1.
|
|
385
|
-
var element_1 = tmp0_iterator_1.
|
|
386
|
-
if (element_1.
|
|
387
|
-
destination.
|
|
383
|
+
var tmp0_iterator_1 = this_1.p();
|
|
384
|
+
while (tmp0_iterator_1.q()) {
|
|
385
|
+
var element_1 = tmp0_iterator_1.r();
|
|
386
|
+
if (element_1.h46_1.j46(this.a47_1)) {
|
|
387
|
+
destination.k(element_1);
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
var tmp_7;
|
|
392
|
-
if (!destination.
|
|
392
|
+
if (!destination.h()) {
|
|
393
393
|
tmp_7 = destination;
|
|
394
394
|
} else {
|
|
395
395
|
tmp_7 = null;
|
|
@@ -398,42 +398,42 @@
|
|
|
398
398
|
var tmp1_elvis_lhs = tmp_7;
|
|
399
399
|
var tmp_8;
|
|
400
400
|
if (tmp1_elvis_lhs == null) {
|
|
401
|
-
this.
|
|
402
|
-
get_LOGGER().
|
|
401
|
+
this.x46_1;
|
|
402
|
+
get_LOGGER().k2c('None of the registered converters match request Content-Type=' + this.a47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.y46_1.q2u_1.toString() + '.'));
|
|
403
403
|
return null;
|
|
404
404
|
} else {
|
|
405
405
|
tmp_8 = tmp1_elvis_lhs;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
tmp_6.
|
|
409
|
-
if (this.
|
|
410
|
-
get_LOGGER().
|
|
408
|
+
tmp_6.b47_1 = tmp_8;
|
|
409
|
+
if (this.y46_1.e3o() == null) {
|
|
410
|
+
get_LOGGER().k2c('Request has unknown body type. Skipping ContentNegotiation for ' + this.y46_1.q2u_1.toString() + '.');
|
|
411
411
|
return null;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
this.
|
|
415
|
-
this.
|
|
414
|
+
this.y46_1.s2u_1.m28(HttpHeaders_getInstance().d2f_1);
|
|
415
|
+
this.d9_1 = 1;
|
|
416
416
|
continue $sm;
|
|
417
417
|
case 1:
|
|
418
418
|
var tmp_9 = this;
|
|
419
|
-
tmp_9.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
419
|
+
tmp_9.d47_1 = this.b47_1;
|
|
420
|
+
this.e47_1 = this.d47_1.p();
|
|
421
|
+
this.d9_1 = 2;
|
|
422
422
|
continue $sm;
|
|
423
423
|
case 2:
|
|
424
|
-
if (!this.
|
|
425
|
-
this.
|
|
424
|
+
if (!this.e47_1.q()) {
|
|
425
|
+
this.d9_1 = 5;
|
|
426
426
|
continue $sm;
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
this.
|
|
429
|
+
this.f47_1 = this.e47_1.r();
|
|
430
430
|
var tmp_10 = this;
|
|
431
|
-
tmp_10.
|
|
432
|
-
this.
|
|
433
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
434
|
-
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().
|
|
435
|
-
var tmp_12 = ensureNotNull(this.
|
|
436
|
-
var this_2 = this.
|
|
431
|
+
tmp_10.g47_1 = this.f47_1;
|
|
432
|
+
this.d9_1 = 3;
|
|
433
|
+
var tmp0_elvis_lhs_0 = charset(this.a47_1);
|
|
434
|
+
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().o1k_1 : tmp0_elvis_lhs_0;
|
|
435
|
+
var tmp_12 = ensureNotNull(this.y46_1.e3o());
|
|
436
|
+
var this_2 = this.z46_1;
|
|
437
437
|
var tmp_13;
|
|
438
438
|
if (!equals(this_2, NullBody_instance)) {
|
|
439
439
|
tmp_13 = this_2;
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
tmp_13 = null;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
suspendResult = this.
|
|
444
|
+
suspendResult = this.g47_1.f46_1.g49(this.a47_1, tmp_11, tmp_12, tmp_13, this);
|
|
445
445
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
446
446
|
return suspendResult;
|
|
447
447
|
}
|
|
@@ -450,37 +450,37 @@
|
|
|
450
450
|
case 3:
|
|
451
451
|
var result = suspendResult;
|
|
452
452
|
if (!(result == null)) {
|
|
453
|
-
get_LOGGER().
|
|
453
|
+
get_LOGGER().k2c('Converted request body using ' + toString(this.g47_1.f46_1) + ' for ' + this.y46_1.q2u_1.toString());
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
var result_0 = result;
|
|
457
457
|
if (!(result_0 == null)) {
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
458
|
+
this.c47_1 = result_0;
|
|
459
|
+
this.d9_1 = 6;
|
|
460
460
|
continue $sm;
|
|
461
461
|
} else {
|
|
462
|
-
this.
|
|
462
|
+
this.d9_1 = 4;
|
|
463
463
|
continue $sm;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
case 4:
|
|
467
|
-
this.
|
|
467
|
+
this.d9_1 = 2;
|
|
468
468
|
continue $sm;
|
|
469
469
|
case 5:
|
|
470
|
-
this.
|
|
470
|
+
this.c47_1 = null;
|
|
471
471
|
if (false) {
|
|
472
|
-
this.
|
|
472
|
+
this.d9_1 = 1;
|
|
473
473
|
continue $sm;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
this.
|
|
476
|
+
this.d9_1 = 6;
|
|
477
477
|
continue $sm;
|
|
478
478
|
case 6:
|
|
479
|
-
var tmp2_elvis_lhs = this.
|
|
479
|
+
var tmp2_elvis_lhs = this.c47_1;
|
|
480
480
|
var tmp_14;
|
|
481
481
|
if (tmp2_elvis_lhs == null) {
|
|
482
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
483
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
482
|
+
var tmp_15 = "Can't convert " + toString(this.z46_1) + ' with contentType ' + this.a47_1.toString() + ' using converters ';
|
|
483
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.b47_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
484
484
|
} else {
|
|
485
485
|
tmp_14 = tmp2_elvis_lhs;
|
|
486
486
|
}
|
|
@@ -488,69 +488,69 @@
|
|
|
488
488
|
var serializedContent = tmp_14;
|
|
489
489
|
return serializedContent;
|
|
490
490
|
case 7:
|
|
491
|
-
throw this.
|
|
491
|
+
throw this.g9_1;
|
|
492
492
|
}
|
|
493
493
|
} catch ($p) {
|
|
494
494
|
var e = $p;
|
|
495
|
-
if (this.
|
|
495
|
+
if (this.e9_1 === 7) {
|
|
496
496
|
throw e;
|
|
497
497
|
} else {
|
|
498
|
-
this.
|
|
499
|
-
this.
|
|
498
|
+
this.d9_1 = this.e9_1;
|
|
499
|
+
this.g9_1 = e;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
while (true);
|
|
503
503
|
};
|
|
504
504
|
function $invoke$convertResponseCOROUTINE$1(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
505
505
|
CoroutineImpl.call(this, resultContinuation);
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
506
|
+
this.p47_1 = ignoredTypes;
|
|
507
|
+
this.q47_1 = registrations;
|
|
508
|
+
this.r47_1 = $this_createClientPlugin;
|
|
509
|
+
this.s47_1 = requestUrl;
|
|
510
|
+
this.t47_1 = info;
|
|
511
|
+
this.u47_1 = body;
|
|
512
|
+
this.v47_1 = responseContentType;
|
|
513
|
+
this.w47_1 = charset;
|
|
514
514
|
}
|
|
515
|
-
protoOf($invoke$convertResponseCOROUTINE$1).
|
|
516
|
-
var suspendResult = this.
|
|
515
|
+
protoOf($invoke$convertResponseCOROUTINE$1).l9 = function () {
|
|
516
|
+
var suspendResult = this.f9_1;
|
|
517
517
|
$sm: do
|
|
518
518
|
try {
|
|
519
|
-
var tmp = this.
|
|
519
|
+
var tmp = this.d9_1;
|
|
520
520
|
switch (tmp) {
|
|
521
521
|
case 0:
|
|
522
|
-
this.
|
|
523
|
-
var tmp_0 = this.
|
|
522
|
+
this.e9_1 = 2;
|
|
523
|
+
var tmp_0 = this.u47_1;
|
|
524
524
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
525
|
-
get_LOGGER().
|
|
525
|
+
get_LOGGER().k2c('Response body is already transformed. Skipping ContentNegotiation for ' + this.s47_1.toString() + '.');
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
if (this.
|
|
530
|
-
get_LOGGER().
|
|
529
|
+
if (this.p47_1.x1(this.t47_1.y2b_1)) {
|
|
530
|
+
get_LOGGER().k2c('Response body type ' + toString(this.t47_1.y2b_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.s47_1.toString() + '.'));
|
|
531
531
|
return null;
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
var tmp_1 = this;
|
|
535
|
-
var this_0 = this.
|
|
535
|
+
var this_0 = this.q47_1;
|
|
536
536
|
var destination = ArrayList_init_$Create$();
|
|
537
|
-
var tmp0_iterator = this_0.
|
|
538
|
-
while (tmp0_iterator.
|
|
539
|
-
var element = tmp0_iterator.
|
|
540
|
-
if (element.
|
|
541
|
-
destination.
|
|
537
|
+
var tmp0_iterator = this_0.p();
|
|
538
|
+
while (tmp0_iterator.q()) {
|
|
539
|
+
var element = tmp0_iterator.r();
|
|
540
|
+
if (element.h46_1.j46(this.v47_1)) {
|
|
541
|
+
destination.k(element);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
|
|
546
|
-
var tmp0_iterator_0 = destination.
|
|
547
|
-
while (tmp0_iterator_0.
|
|
548
|
-
var item = tmp0_iterator_0.
|
|
549
|
-
destination_0.
|
|
546
|
+
var tmp0_iterator_0 = destination.p();
|
|
547
|
+
while (tmp0_iterator_0.q()) {
|
|
548
|
+
var item = tmp0_iterator_0.r();
|
|
549
|
+
destination_0.k(item.f46_1);
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
var tmp_2;
|
|
553
|
-
if (!destination_0.
|
|
553
|
+
if (!destination_0.h()) {
|
|
554
554
|
tmp_2 = destination_0;
|
|
555
555
|
} else {
|
|
556
556
|
tmp_2 = null;
|
|
@@ -559,16 +559,16 @@
|
|
|
559
559
|
var tmp0_elvis_lhs = tmp_2;
|
|
560
560
|
var tmp_3;
|
|
561
561
|
if (tmp0_elvis_lhs == null) {
|
|
562
|
-
this.
|
|
563
|
-
get_LOGGER().
|
|
562
|
+
this.r47_1;
|
|
563
|
+
get_LOGGER().k2c('None of the registered converters match response with Content-Type=' + this.v47_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.s47_1.toString() + '.'));
|
|
564
564
|
return null;
|
|
565
565
|
} else {
|
|
566
566
|
tmp_3 = tmp0_elvis_lhs;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
tmp_1.
|
|
570
|
-
this.
|
|
571
|
-
suspendResult = deserialize(this.
|
|
569
|
+
tmp_1.x47_1 = tmp_3;
|
|
570
|
+
this.d9_1 = 1;
|
|
571
|
+
suspendResult = deserialize(this.x47_1, this.u47_1, this.t47_1, this.w47_1, this);
|
|
572
572
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
573
573
|
return suspendResult;
|
|
574
574
|
}
|
|
@@ -577,20 +577,20 @@
|
|
|
577
577
|
case 1:
|
|
578
578
|
var result = suspendResult;
|
|
579
579
|
if (!isInterface(result, ByteReadChannel)) {
|
|
580
|
-
get_LOGGER().
|
|
580
|
+
get_LOGGER().k2c('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.s47_1.toString() + '.');
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
return result;
|
|
584
584
|
case 2:
|
|
585
|
-
throw this.
|
|
585
|
+
throw this.g9_1;
|
|
586
586
|
}
|
|
587
587
|
} catch ($p) {
|
|
588
588
|
var e = $p;
|
|
589
|
-
if (this.
|
|
589
|
+
if (this.e9_1 === 2) {
|
|
590
590
|
throw e;
|
|
591
591
|
} else {
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
592
|
+
this.d9_1 = this.e9_1;
|
|
593
|
+
this.g9_1 = e;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
while (true);
|
|
@@ -600,19 +600,19 @@
|
|
|
600
600
|
if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
|
|
601
601
|
properties_initialized_ContentNegotiation_kt_1ayduy = true;
|
|
602
602
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
|
|
603
|
-
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().
|
|
603
|
+
DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().fc(), PrimitiveClasses_getInstance().bc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent)]);
|
|
604
604
|
var tmp = ContentNegotiationConfig$_init_$ref_1ne3ob();
|
|
605
605
|
ContentNegotiation = createClientPlugin('ContentNegotiation', tmp, ContentNegotiation$lambda);
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
function JsonContentTypeMatcher() {
|
|
609
609
|
}
|
|
610
|
-
protoOf(JsonContentTypeMatcher).
|
|
611
|
-
if (contentType.
|
|
610
|
+
protoOf(JsonContentTypeMatcher).j46 = function (contentType) {
|
|
611
|
+
if (contentType.f2e(Application_getInstance().x2c_1)) {
|
|
612
612
|
return true;
|
|
613
613
|
}
|
|
614
|
-
var value = contentType.
|
|
615
|
-
return startsWith(value, 'application/') && endsWith(value, '+json');
|
|
614
|
+
var value = contentType.e2e().toString();
|
|
615
|
+
return startsWith(value, 'application/', true) && endsWith(value, '+json', true);
|
|
616
616
|
};
|
|
617
617
|
var JsonContentTypeMatcher_instance;
|
|
618
618
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -632,7 +632,7 @@
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
//region block: post-declaration
|
|
635
|
-
protoOf(ContentNegotiationConfig).
|
|
635
|
+
protoOf(ContentNegotiationConfig).n2q = register$default;
|
|
636
636
|
//endregion
|
|
637
637
|
//region block: init
|
|
638
638
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|