client_plugin_logic_deb 1.8.471 → 1.8.472
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/Kosi-Kaverit-kaverit.js +77 -77
- package/Kosi-Kodein-kodein-di.js +595 -595
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1631 -1631
- package/Logic_Debertz-ai_module.js +544 -544
- package/Logic_Debertz-ai_module.js.map +1 -1
- package/Logic_Debertz-bot_engine.js +618 -614
- package/Logic_Debertz-bot_engine.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +4 -3
- package/Logic_Debertz-client_plugin.js +3271 -3272
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +1901 -1901
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +17728 -17689
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9591 -9591
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1411 -1411
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +1310 -957
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +22 -22
- package/kotlinx-coroutines-core.js +2591 -2591
- package/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlinx-io-kotlinx-io-core.js +582 -582
- package/kotlinx-serialization-kotlinx-serialization-core.js +1956 -1956
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1444 -1444
- package/ktor-ktor-client-content-negotiation.js +158 -158
- package/ktor-ktor-client-core.js +1977 -1977
- package/ktor-ktor-client-logging.js +652 -652
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http-cio.js +372 -372
- package/ktor-ktor-http.js +742 -742
- package/ktor-ktor-io.js +653 -653
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +153 -153
- package/ktor-ktor-serialization.js +72 -72
- package/ktor-ktor-utils.js +701 -701
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +52 -52
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +8 -8
- package/raspberry-cardgame-lib-core.js +224 -224
- package/raspberry-cardgame-lib-logger.js +106 -106
- package/raspberry-cardgame-lib-random.js +865 -865
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +29 -29
|
@@ -27,70 +27,70 @@
|
|
|
27
27
|
}(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) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
32
|
-
var plus = kotlin_kotlin.$_$.
|
|
33
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.oe;
|
|
31
|
+
var initMetadataForClass = kotlin_kotlin.$_$.nd;
|
|
32
|
+
var plus = kotlin_kotlin.$_$.h9;
|
|
33
|
+
var toMutableSet = kotlin_kotlin.$_$.qa;
|
|
34
34
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
35
35
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
36
36
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
37
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
37
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
38
38
|
var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
|
|
39
39
|
var VOID = kotlin_kotlin.$_$.b;
|
|
40
|
-
var Exception = kotlin_kotlin.$_$.
|
|
40
|
+
var Exception = kotlin_kotlin.$_$.ui;
|
|
41
41
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
|
|
42
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
43
|
-
var toString = kotlin_kotlin.$_$.
|
|
42
|
+
var captureStack = kotlin_kotlin.$_$.wc;
|
|
43
|
+
var toString = kotlin_kotlin.$_$.re;
|
|
44
44
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
45
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
+
var CoroutineImpl = kotlin_kotlin.$_$.pb;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.dj;
|
|
47
47
|
var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
48
48
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
49
49
|
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
50
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
51
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
50
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.za;
|
|
51
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.sd;
|
|
52
52
|
var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
53
53
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.w;
|
|
54
54
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
55
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
55
|
+
var isInterface = kotlin_kotlin.$_$.ce;
|
|
56
56
|
var contentType = kotlin_io_ktor_ktor_http.$_$.l1;
|
|
57
57
|
var get_request = kotlin_io_ktor_ktor_client_core.$_$.y;
|
|
58
58
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.e;
|
|
59
|
-
var Collection = kotlin_kotlin.$_$.
|
|
59
|
+
var Collection = kotlin_kotlin.$_$.n5;
|
|
60
60
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
|
|
61
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
61
|
+
var emptyList = kotlin_kotlin.$_$.p7;
|
|
62
62
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
|
|
63
63
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
64
64
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
65
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
65
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.kf;
|
|
66
66
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.j1;
|
|
67
67
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
68
|
-
var Unit = kotlin_kotlin.$_$.
|
|
68
|
+
var Unit = kotlin_kotlin.$_$.oj;
|
|
69
69
|
var charset = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
70
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
70
|
+
var ensureNotNull = kotlin_kotlin.$_$.vj;
|
|
71
71
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
72
|
-
var equals = kotlin_kotlin.$_$.
|
|
73
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
74
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
75
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
72
|
+
var equals = kotlin_kotlin.$_$.fd;
|
|
73
|
+
var joinToString = kotlin_kotlin.$_$.k8;
|
|
74
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.pd;
|
|
75
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.p6;
|
|
76
76
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
|
|
77
77
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
78
78
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
79
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
79
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.y4;
|
|
80
80
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.y;
|
|
81
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
81
|
+
var getKClass = kotlin_kotlin.$_$.lf;
|
|
82
82
|
var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.m;
|
|
83
83
|
var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
84
|
-
var setOf = kotlin_kotlin.$_$.
|
|
85
|
-
var KtList = kotlin_kotlin.$_$.
|
|
84
|
+
var setOf = kotlin_kotlin.$_$.t9;
|
|
85
|
+
var KtList = kotlin_kotlin.$_$.u5;
|
|
86
86
|
var ContentType = kotlin_io_ktor_ktor_http.$_$.w;
|
|
87
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
88
|
-
var createKType = kotlin_kotlin.$_$.
|
|
89
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
87
|
+
var arrayOf = kotlin_kotlin.$_$.rj;
|
|
88
|
+
var createKType = kotlin_kotlin.$_$.jf;
|
|
89
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.hf;
|
|
90
90
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
91
91
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
92
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
93
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
92
|
+
var endsWith = kotlin_kotlin.$_$.jg;
|
|
93
|
+
var initMetadataForObject = kotlin_kotlin.$_$.td;
|
|
94
94
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
95
95
|
//endregion
|
|
96
96
|
//region block: pre-declaration
|
|
@@ -125,35 +125,35 @@
|
|
|
125
125
|
}
|
|
126
126
|
var ContentNegotiation;
|
|
127
127
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
128
|
-
this.
|
|
129
|
-
this.
|
|
130
|
-
this.
|
|
128
|
+
this.s64_1 = converter;
|
|
129
|
+
this.t64_1 = contentTypeToSend;
|
|
130
|
+
this.u64_1 = contentTypeMatcher;
|
|
131
131
|
}
|
|
132
132
|
function defaultMatcher($this, pattern) {
|
|
133
133
|
return new ContentNegotiationConfig$defaultMatcher$1(pattern);
|
|
134
134
|
}
|
|
135
135
|
function ContentNegotiationConfig$defaultMatcher$1($pattern) {
|
|
136
|
-
this.
|
|
136
|
+
this.v64_1 = $pattern;
|
|
137
137
|
}
|
|
138
|
-
protoOf(ContentNegotiationConfig$defaultMatcher$1).
|
|
139
|
-
return contentType.
|
|
138
|
+
protoOf(ContentNegotiationConfig$defaultMatcher$1).w64 = function (contentType) {
|
|
139
|
+
return contentType.r3j(this.v64_1);
|
|
140
140
|
};
|
|
141
141
|
function ContentNegotiationConfig() {
|
|
142
|
-
this.
|
|
142
|
+
this.x64_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
143
143
|
var tmp = this;
|
|
144
144
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
145
|
-
tmp.
|
|
146
|
-
this.
|
|
145
|
+
tmp.y64_1 = ArrayList_init_$Create$();
|
|
146
|
+
this.z64_1 = null;
|
|
147
147
|
}
|
|
148
|
-
protoOf(ContentNegotiationConfig).
|
|
149
|
-
var matcher = contentType.
|
|
150
|
-
this.
|
|
148
|
+
protoOf(ContentNegotiationConfig).o41 = function (contentType, converter, configuration) {
|
|
149
|
+
var matcher = contentType.r3j(Application_getInstance().x3h_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
150
|
+
this.a65(contentType, converter, matcher, configuration);
|
|
151
151
|
};
|
|
152
|
-
protoOf(ContentNegotiationConfig).
|
|
152
|
+
protoOf(ContentNegotiationConfig).a65 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
153
153
|
// Inline function 'kotlin.apply' call
|
|
154
154
|
configuration(converter);
|
|
155
155
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
156
|
-
this.
|
|
156
|
+
this.y64_1.e1(registration);
|
|
157
157
|
};
|
|
158
158
|
function ContentConverterException(message) {
|
|
159
159
|
Exception_init_$Init$(message, this);
|
|
@@ -168,15 +168,15 @@
|
|
|
168
168
|
}
|
|
169
169
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
170
170
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
171
|
-
var registrations = $this$createClientPlugin.
|
|
172
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
173
|
-
$this$createClientPlugin.
|
|
174
|
-
$this$createClientPlugin.
|
|
171
|
+
var registrations = $this$createClientPlugin.o4d_1.y64_1;
|
|
172
|
+
var ignoredTypes = $this$createClientPlugin.o4d_1.x64_1;
|
|
173
|
+
$this$createClientPlugin.u4x(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
174
|
+
$this$createClientPlugin.t4m(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
175
175
|
return Unit_instance;
|
|
176
176
|
}
|
|
177
177
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
178
178
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
179
|
-
return toString(it.
|
|
179
|
+
return toString(it.s64_1);
|
|
180
180
|
}
|
|
181
181
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
182
182
|
var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
|
|
@@ -185,29 +185,29 @@
|
|
|
185
185
|
return tmp.q9();
|
|
186
186
|
}
|
|
187
187
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
188
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
188
|
+
charset = charset === VOID ? Charsets_getInstance().o37_1 : charset;
|
|
189
189
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
190
190
|
tmp.k9_1 = Unit_instance;
|
|
191
191
|
tmp.l9_1 = null;
|
|
192
192
|
return tmp.q9();
|
|
193
193
|
}
|
|
194
194
|
function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
195
|
+
this.s66_1 = $registrations;
|
|
196
|
+
this.t66_1 = $this_createClientPlugin;
|
|
197
|
+
this.u66_1 = $ignoredTypes;
|
|
198
198
|
CoroutineImpl.call(this, resultContinuation);
|
|
199
199
|
}
|
|
200
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
201
|
-
var tmp = this.
|
|
200
|
+
protoOf(ContentNegotiation$lambda$slambda).z66 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
201
|
+
var tmp = this.a67($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
202
202
|
tmp.k9_1 = Unit_instance;
|
|
203
203
|
tmp.l9_1 = null;
|
|
204
204
|
return tmp.q9();
|
|
205
205
|
};
|
|
206
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
206
|
+
protoOf(ContentNegotiation$lambda$slambda).y4n = function (p1, p2, p3, p4, $completion) {
|
|
207
207
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
208
208
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
209
209
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
210
|
-
return this.
|
|
210
|
+
return this.z66(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
|
|
211
211
|
};
|
|
212
212
|
protoOf(ContentNegotiation$lambda$slambda).q9 = function () {
|
|
213
213
|
var suspendResult = this.k9_1;
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
case 0:
|
|
219
219
|
this.j9_1 = 2;
|
|
220
220
|
this.i9_1 = 1;
|
|
221
|
-
suspendResult = invoke$convertRequest(this.
|
|
221
|
+
suspendResult = invoke$convertRequest(this.s66_1, this.t66_1, this.u66_1, this.w66_1, this.x66_1, this);
|
|
222
222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
223
223
|
return suspendResult;
|
|
224
224
|
}
|
|
@@ -240,39 +240,39 @@
|
|
|
240
240
|
}
|
|
241
241
|
while (true);
|
|
242
242
|
};
|
|
243
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
244
|
-
var i = new ContentNegotiation$lambda$slambda(this.
|
|
245
|
-
i.
|
|
246
|
-
i.
|
|
247
|
-
i.
|
|
248
|
-
i.
|
|
243
|
+
protoOf(ContentNegotiation$lambda$slambda).a67 = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
244
|
+
var i = new ContentNegotiation$lambda$slambda(this.s66_1, this.t66_1, this.u66_1, completion);
|
|
245
|
+
i.v66_1 = $this$transformRequestBody;
|
|
246
|
+
i.w66_1 = request;
|
|
247
|
+
i.x66_1 = body;
|
|
248
|
+
i.y66_1 = _unused_var__etf5q3;
|
|
249
249
|
return i;
|
|
250
250
|
};
|
|
251
251
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
252
252
|
var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
253
253
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
254
|
-
return i.
|
|
254
|
+
return i.z66($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
255
255
|
};
|
|
256
256
|
l.$arity = 4;
|
|
257
257
|
return l;
|
|
258
258
|
}
|
|
259
259
|
function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
260
|
+
this.j67_1 = $ignoredTypes;
|
|
261
|
+
this.k67_1 = $registrations;
|
|
262
|
+
this.l67_1 = $this_createClientPlugin;
|
|
263
263
|
CoroutineImpl.call(this, resultContinuation);
|
|
264
264
|
}
|
|
265
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
266
|
-
var tmp = this.
|
|
265
|
+
protoOf(ContentNegotiation$lambda$slambda_1).w4n = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
266
|
+
var tmp = this.x4n($this$transformResponseBody, response, body, info, $completion);
|
|
267
267
|
tmp.k9_1 = Unit_instance;
|
|
268
268
|
tmp.l9_1 = null;
|
|
269
269
|
return tmp.q9();
|
|
270
270
|
};
|
|
271
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
271
|
+
protoOf(ContentNegotiation$lambda$slambda_1).y4n = function (p1, p2, p3, p4, $completion) {
|
|
272
272
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
273
273
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
274
274
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
275
|
-
return this.
|
|
275
|
+
return this.w4n(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
276
276
|
};
|
|
277
277
|
protoOf(ContentNegotiation$lambda$slambda_1).q9 = function () {
|
|
278
278
|
var suspendResult = this.k9_1;
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
switch (tmp) {
|
|
283
283
|
case 0:
|
|
284
284
|
this.j9_1 = 2;
|
|
285
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
285
|
+
var tmp0_elvis_lhs = contentType(this.n67_1);
|
|
286
286
|
var tmp_0;
|
|
287
287
|
if (tmp0_elvis_lhs == null) {
|
|
288
288
|
return null;
|
|
@@ -291,9 +291,9 @@
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
var contentType_0 = tmp_0;
|
|
294
|
-
var charset = suitableCharset(get_request(this.
|
|
294
|
+
var charset = suitableCharset(get_request(this.n67_1).b3o());
|
|
295
295
|
this.i9_1 = 1;
|
|
296
|
-
suspendResult = invoke$convertResponse(this.
|
|
296
|
+
suspendResult = invoke$convertResponse(this.j67_1, this.k67_1, this.l67_1, get_request(this.n67_1).c47(), this.p67_1, this.o67_1, contentType_0, charset, this);
|
|
297
297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
298
298
|
return suspendResult;
|
|
299
299
|
}
|
|
@@ -315,29 +315,29 @@
|
|
|
315
315
|
}
|
|
316
316
|
while (true);
|
|
317
317
|
};
|
|
318
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
319
|
-
var i = new ContentNegotiation$lambda$slambda_1(this.
|
|
320
|
-
i.
|
|
321
|
-
i.
|
|
322
|
-
i.
|
|
323
|
-
i.
|
|
318
|
+
protoOf(ContentNegotiation$lambda$slambda_1).x4n = function ($this$transformResponseBody, response, body, info, completion) {
|
|
319
|
+
var i = new ContentNegotiation$lambda$slambda_1(this.j67_1, this.k67_1, this.l67_1, completion);
|
|
320
|
+
i.m67_1 = $this$transformResponseBody;
|
|
321
|
+
i.n67_1 = response;
|
|
322
|
+
i.o67_1 = body;
|
|
323
|
+
i.p67_1 = info;
|
|
324
324
|
return i;
|
|
325
325
|
};
|
|
326
326
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
327
327
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
328
328
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
329
|
-
return i.
|
|
329
|
+
return i.w4n($this$transformResponseBody, response, body, info, $completion);
|
|
330
330
|
};
|
|
331
331
|
l.$arity = 4;
|
|
332
332
|
return l;
|
|
333
333
|
}
|
|
334
334
|
function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
335
335
|
CoroutineImpl.call(this, resultContinuation);
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
336
|
+
this.j65_1 = registrations;
|
|
337
|
+
this.k65_1 = $this_createClientPlugin;
|
|
338
|
+
this.l65_1 = ignoredTypes;
|
|
339
|
+
this.m65_1 = request;
|
|
340
|
+
this.n65_1 = body;
|
|
341
341
|
}
|
|
342
342
|
protoOf($invoke$convertRequestCOROUTINE$).q9 = function () {
|
|
343
343
|
var suspendResult = this.k9_1;
|
|
@@ -348,9 +348,9 @@
|
|
|
348
348
|
case 0:
|
|
349
349
|
this.j9_1 = 7;
|
|
350
350
|
var tmp_0;
|
|
351
|
-
if (this.
|
|
352
|
-
var excluded = this.
|
|
353
|
-
var tmp0 = this.
|
|
351
|
+
if (this.m65_1.q45_1.v38(get_ExcludedContentTypes())) {
|
|
352
|
+
var excluded = this.m65_1.q45_1.t38(get_ExcludedContentTypes());
|
|
353
|
+
var tmp0 = this.j65_1;
|
|
354
354
|
var destination = ArrayList_init_$Create$();
|
|
355
355
|
var _iterator__ex2g4s = tmp0.t();
|
|
356
356
|
while (_iterator__ex2g4s.u()) {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
371
371
|
while (_iterator__ex2g4s_0.u()) {
|
|
372
372
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
373
|
-
if (element.
|
|
373
|
+
if (element.t64_1.r3j(element_0)) {
|
|
374
374
|
tmp$ret$0 = false;
|
|
375
375
|
break l$ret$1;
|
|
376
376
|
}
|
|
@@ -384,11 +384,11 @@
|
|
|
384
384
|
}
|
|
385
385
|
tmp_0 = destination;
|
|
386
386
|
} else {
|
|
387
|
-
tmp_0 = this.
|
|
387
|
+
tmp_0 = this.j65_1;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
var requestRegistrations = tmp_0;
|
|
391
|
-
var tmp0_elvis_lhs = this.
|
|
391
|
+
var tmp0_elvis_lhs = this.m65_1.n45_1.a3d(HttpHeaders_getInstance().w3j_1);
|
|
392
392
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
393
393
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
394
394
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
409
409
|
while (_iterator__ex2g4s_2.u()) {
|
|
410
410
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
411
|
-
if (Companion_getInstance().
|
|
411
|
+
if (Companion_getInstance().yn(element_2).r3j(element_1.t64_1)) {
|
|
412
412
|
tmp$ret$2 = false;
|
|
413
413
|
break l$ret$3;
|
|
414
414
|
}
|
|
@@ -417,19 +417,19 @@
|
|
|
417
417
|
}
|
|
418
418
|
while (false);
|
|
419
419
|
if (tmp$ret$2) {
|
|
420
|
-
var qValue = this.
|
|
421
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
422
|
-
get_LOGGER().
|
|
423
|
-
accept(this.
|
|
420
|
+
var qValue = this.k65_1.o4d_1.z64_1;
|
|
421
|
+
var contentTypeToSend = qValue == null ? element_1.t64_1 : element_1.t64_1.p3j('q', qValue.toString());
|
|
422
|
+
get_LOGGER().f3h('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.m65_1.l45_1.toString());
|
|
423
|
+
accept(this.m65_1, contentTypeToSend);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
var tmp_3;
|
|
428
|
-
var tmp_4 = this.
|
|
428
|
+
var tmp_4 = this.n65_1;
|
|
429
429
|
if (tmp_4 instanceof OutgoingContent) {
|
|
430
430
|
tmp_3 = true;
|
|
431
431
|
} else {
|
|
432
|
-
var tmp0_0 = this.
|
|
432
|
+
var tmp0_0 = this.l65_1;
|
|
433
433
|
var tmp$ret$4;
|
|
434
434
|
l$ret$5: do {
|
|
435
435
|
var tmp_5;
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
var _iterator__ex2g4s_3 = tmp0_0.t();
|
|
446
446
|
while (_iterator__ex2g4s_3.u()) {
|
|
447
447
|
var element_3 = _iterator__ex2g4s_3.v();
|
|
448
|
-
if (element_3.jb(this.
|
|
448
|
+
if (element_3.jb(this.n65_1)) {
|
|
449
449
|
tmp$ret$4 = true;
|
|
450
450
|
break l$ret$5;
|
|
451
451
|
}
|
|
@@ -457,36 +457,36 @@
|
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
if (tmp_3) {
|
|
460
|
-
get_LOGGER().
|
|
460
|
+
get_LOGGER().f3h('Body type ' + toString(getKClassFromExpression(this.n65_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.m65_1.l45_1.toString() + '.'));
|
|
461
461
|
return null;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
var tmp_6 = this;
|
|
465
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
465
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.m65_1);
|
|
466
466
|
var tmp_7;
|
|
467
467
|
if (tmp0_elvis_lhs_0 == null) {
|
|
468
|
-
this.
|
|
469
|
-
get_LOGGER().
|
|
468
|
+
this.k65_1;
|
|
469
|
+
get_LOGGER().f3h("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.m65_1.l45_1.toString() + '.');
|
|
470
470
|
return null;
|
|
471
471
|
} else {
|
|
472
472
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
tmp_6.
|
|
476
|
-
var tmp_8 = this.
|
|
475
|
+
tmp_6.p65_1 = tmp_7;
|
|
476
|
+
var tmp_8 = this.n65_1;
|
|
477
477
|
if (tmp_8 instanceof Unit) {
|
|
478
|
-
get_LOGGER().
|
|
479
|
-
this.
|
|
478
|
+
get_LOGGER().f3h('Sending empty body for ' + this.m65_1.l45_1.toString());
|
|
479
|
+
this.m65_1.n45_1.h3d(HttpHeaders_getInstance().o3k_1);
|
|
480
480
|
return EmptyContent_getInstance();
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
var tmp_9 = this;
|
|
484
|
-
var tmp0_1 = this.
|
|
484
|
+
var tmp0_1 = this.j65_1;
|
|
485
485
|
var destination_0 = ArrayList_init_$Create$();
|
|
486
486
|
var _iterator__ex2g4s_4 = tmp0_1.t();
|
|
487
487
|
while (_iterator__ex2g4s_4.u()) {
|
|
488
488
|
var element_4 = _iterator__ex2g4s_4.v();
|
|
489
|
-
if (element_4.
|
|
489
|
+
if (element_4.u64_1.w64(this.p65_1)) {
|
|
490
490
|
destination_0.e1(element_4);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
@@ -501,40 +501,40 @@
|
|
|
501
501
|
var tmp1_elvis_lhs = tmp_10;
|
|
502
502
|
var tmp_11;
|
|
503
503
|
if (tmp1_elvis_lhs == null) {
|
|
504
|
-
this.
|
|
505
|
-
get_LOGGER().
|
|
504
|
+
this.k65_1;
|
|
505
|
+
get_LOGGER().f3h('None of the registered converters match request Content-Type=' + this.p65_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.m65_1.l45_1.toString() + '.'));
|
|
506
506
|
return null;
|
|
507
507
|
} else {
|
|
508
508
|
tmp_11 = tmp1_elvis_lhs;
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
tmp_9.
|
|
512
|
-
if (this.
|
|
513
|
-
get_LOGGER().
|
|
511
|
+
tmp_9.o65_1 = tmp_11;
|
|
512
|
+
if (this.m65_1.c50() == null) {
|
|
513
|
+
get_LOGGER().f3h('Request has unknown body type. Skipping ContentNegotiation for ' + this.m65_1.l45_1.toString() + '.');
|
|
514
514
|
return null;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
517
|
+
this.m65_1.n45_1.h3d(HttpHeaders_getInstance().o3k_1);
|
|
518
|
+
this.t65_1 = this.o65_1;
|
|
519
519
|
this.i9_1 = 1;
|
|
520
520
|
continue $sm;
|
|
521
521
|
case 1:
|
|
522
|
-
this.
|
|
522
|
+
this.s65_1 = this.t65_1.t();
|
|
523
523
|
this.i9_1 = 2;
|
|
524
524
|
continue $sm;
|
|
525
525
|
case 2:
|
|
526
|
-
if (!this.
|
|
526
|
+
if (!this.s65_1.u()) {
|
|
527
527
|
this.i9_1 = 5;
|
|
528
528
|
continue $sm;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
var element_5 = this.
|
|
532
|
-
this.
|
|
531
|
+
var element_5 = this.s65_1.v();
|
|
532
|
+
this.r65_1 = element_5;
|
|
533
533
|
this.i9_1 = 3;
|
|
534
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
535
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
536
|
-
var tmp_13 = ensureNotNull(this.
|
|
537
|
-
var this_0 = this.
|
|
534
|
+
var tmp0_elvis_lhs_1 = charset(this.p65_1);
|
|
535
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().o37_1 : tmp0_elvis_lhs_1;
|
|
536
|
+
var tmp_13 = ensureNotNull(this.m65_1.c50());
|
|
537
|
+
var this_0 = this.n65_1;
|
|
538
538
|
var tmp_14;
|
|
539
539
|
if (!equals(this_0, NullBody_instance)) {
|
|
540
540
|
tmp_14 = this_0;
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
tmp_14 = null;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
suspendResult = this.
|
|
545
|
+
suspendResult = this.r65_1.s64_1.q67(this.p65_1, tmp_12, tmp_13, tmp_14, this);
|
|
546
546
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
547
547
|
return suspendResult;
|
|
548
548
|
}
|
|
@@ -551,12 +551,12 @@
|
|
|
551
551
|
case 3:
|
|
552
552
|
var result = suspendResult;
|
|
553
553
|
if (!(result == null)) {
|
|
554
|
-
get_LOGGER().
|
|
554
|
+
get_LOGGER().f3h('Converted request body using ' + toString(this.r65_1.s64_1) + ' for ' + this.m65_1.l45_1.toString());
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
var result_0 = result;
|
|
558
558
|
if (!(result_0 == null)) {
|
|
559
|
-
this.
|
|
559
|
+
this.q65_1 = result_0;
|
|
560
560
|
this.i9_1 = 6;
|
|
561
561
|
continue $sm;
|
|
562
562
|
} else {
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
this.i9_1 = 2;
|
|
569
569
|
continue $sm;
|
|
570
570
|
case 5:
|
|
571
|
-
this.
|
|
571
|
+
this.q65_1 = null;
|
|
572
572
|
if (false) {
|
|
573
573
|
this.i9_1 = 1;
|
|
574
574
|
continue $sm;
|
|
@@ -577,11 +577,11 @@
|
|
|
577
577
|
this.i9_1 = 6;
|
|
578
578
|
continue $sm;
|
|
579
579
|
case 6:
|
|
580
|
-
var tmp2_elvis_lhs = this.
|
|
580
|
+
var tmp2_elvis_lhs = this.q65_1;
|
|
581
581
|
var tmp_15;
|
|
582
582
|
if (tmp2_elvis_lhs == null) {
|
|
583
|
-
var tmp_16 = "Can't convert " + toString(this.
|
|
584
|
-
throw new ContentConverterException(tmp_16 + joinToString(this.
|
|
583
|
+
var tmp_16 = "Can't convert " + toString(this.n65_1) + ' with contentType ' + this.p65_1.toString() + ' using converters ';
|
|
584
|
+
throw new ContentConverterException(tmp_16 + joinToString(this.o65_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
585
585
|
} else {
|
|
586
586
|
tmp_15 = tmp2_elvis_lhs;
|
|
587
587
|
}
|
|
@@ -604,14 +604,14 @@
|
|
|
604
604
|
};
|
|
605
605
|
function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
606
606
|
CoroutineImpl.call(this, resultContinuation);
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
607
|
+
this.c66_1 = ignoredTypes;
|
|
608
|
+
this.d66_1 = registrations;
|
|
609
|
+
this.e66_1 = $this_createClientPlugin;
|
|
610
|
+
this.f66_1 = requestUrl;
|
|
611
|
+
this.g66_1 = info;
|
|
612
|
+
this.h66_1 = body;
|
|
613
|
+
this.i66_1 = responseContentType;
|
|
614
|
+
this.j66_1 = charset;
|
|
615
615
|
}
|
|
616
616
|
protoOf($invoke$convertResponseCOROUTINE$).q9 = function () {
|
|
617
617
|
var suspendResult = this.k9_1;
|
|
@@ -621,23 +621,23 @@
|
|
|
621
621
|
switch (tmp) {
|
|
622
622
|
case 0:
|
|
623
623
|
this.j9_1 = 2;
|
|
624
|
-
var tmp_0 = this.
|
|
624
|
+
var tmp_0 = this.h66_1;
|
|
625
625
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
626
|
-
get_LOGGER().
|
|
626
|
+
get_LOGGER().f3h('Response body is already transformed. Skipping ContentNegotiation for ' + this.f66_1.toString() + '.');
|
|
627
627
|
return null;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
if (this.
|
|
631
|
-
get_LOGGER().
|
|
630
|
+
if (this.c66_1.m2(this.g66_1.w3g_1)) {
|
|
631
|
+
get_LOGGER().f3h('Response body type ' + toString(this.g66_1.w3g_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.f66_1.toString() + '.'));
|
|
632
632
|
return null;
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
var tmp0 = this.
|
|
635
|
+
var tmp0 = this.d66_1;
|
|
636
636
|
var destination = ArrayList_init_$Create$();
|
|
637
637
|
var _iterator__ex2g4s = tmp0.t();
|
|
638
638
|
while (_iterator__ex2g4s.u()) {
|
|
639
639
|
var element = _iterator__ex2g4s.v();
|
|
640
|
-
if (element.
|
|
640
|
+
if (element.u64_1.w64(this.i66_1)) {
|
|
641
641
|
destination.e1(element);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
var _iterator__ex2g4s_0 = destination.t();
|
|
647
647
|
while (_iterator__ex2g4s_0.u()) {
|
|
648
648
|
var item = _iterator__ex2g4s_0.v();
|
|
649
|
-
destination_0.e1(item.
|
|
649
|
+
destination_0.e1(item.s64_1);
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
var tmp_1;
|
|
@@ -659,8 +659,8 @@
|
|
|
659
659
|
var tmp0_elvis_lhs = tmp_1;
|
|
660
660
|
var tmp_2;
|
|
661
661
|
if (tmp0_elvis_lhs == null) {
|
|
662
|
-
this.
|
|
663
|
-
get_LOGGER().
|
|
662
|
+
this.e66_1;
|
|
663
|
+
get_LOGGER().f3h('None of the registered converters match response with Content-Type=' + this.i66_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.f66_1.toString() + '.'));
|
|
664
664
|
return null;
|
|
665
665
|
} else {
|
|
666
666
|
tmp_2 = tmp0_elvis_lhs;
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
|
|
669
669
|
var suitableConverters = tmp_2;
|
|
670
670
|
this.i9_1 = 1;
|
|
671
|
-
suspendResult = deserialize(suitableConverters, this.
|
|
671
|
+
suspendResult = deserialize(suitableConverters, this.h66_1, this.g66_1, this.j66_1, this);
|
|
672
672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
673
673
|
return suspendResult;
|
|
674
674
|
}
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
case 1:
|
|
678
678
|
var result = suspendResult;
|
|
679
679
|
if (!isInterface(result, ByteReadChannel)) {
|
|
680
|
-
get_LOGGER().
|
|
680
|
+
get_LOGGER().f3h('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.f66_1.toString() + '.');
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
return result;
|
|
@@ -728,12 +728,12 @@
|
|
|
728
728
|
}
|
|
729
729
|
function JsonContentTypeMatcher() {
|
|
730
730
|
}
|
|
731
|
-
protoOf(JsonContentTypeMatcher).
|
|
732
|
-
if (contentType.
|
|
731
|
+
protoOf(JsonContentTypeMatcher).w64 = function (contentType) {
|
|
732
|
+
if (contentType.r3j(Application_getInstance().x3h_1)) {
|
|
733
733
|
return true;
|
|
734
734
|
}
|
|
735
|
-
var value = contentType.
|
|
736
|
-
return Application_getInstance().
|
|
735
|
+
var value = contentType.q3j().toString();
|
|
736
|
+
return Application_getInstance().r3i(value) && endsWith(value, '+json', true);
|
|
737
737
|
};
|
|
738
738
|
var JsonContentTypeMatcher_instance;
|
|
739
739
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
//region block: post-declaration
|
|
756
|
-
protoOf(ContentNegotiationConfig).
|
|
756
|
+
protoOf(ContentNegotiationConfig).p41 = register$default;
|
|
757
757
|
//endregion
|
|
758
758
|
//region block: init
|
|
759
759
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|