mrs-toolbox-cli 0.0.115 → 0.0.116
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.js +71 -71
- package/clikt-clikt.js +1126 -1126
- package/colormath-root-colormath.js +362 -362
- package/com.mrs.platform.configuration.dto.js +166 -276
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +9 -9
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +34 -34
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +6 -6
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +125 -125
- package/ktor-ktor-client-core.js +1404 -1404
- package/ktor-ktor-events.js +4 -4
- package/markdown.js +1798 -1798
- package/mordant-mordant.js +1638 -1638
- package/mrs-toolbox-cli.d.ts +3 -25
- package/mrs-toolbox-cli.js +90 -90
- package/package.json +1 -1
- package/toolbox.js +1992 -1992
|
@@ -80,32 +80,32 @@
|
|
|
80
80
|
}
|
|
81
81
|
var DefaultCommonIgnoredTypes;
|
|
82
82
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
83
|
+
this.k4y_1 = converter;
|
|
84
|
+
this.l4y_1 = contentTypeToSend;
|
|
85
|
+
this.m4y_1 = contentTypeMatcher;
|
|
86
86
|
}
|
|
87
87
|
function defaultMatcher($this, pattern) {
|
|
88
88
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
89
89
|
}
|
|
90
90
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
91
|
-
this.
|
|
91
|
+
this.n4y_1 = $pattern;
|
|
92
92
|
}
|
|
93
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
94
|
-
return contentType.r1s(this.
|
|
93
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).o4y = function (contentType) {
|
|
94
|
+
return contentType.r1s(this.n4y_1);
|
|
95
95
|
};
|
|
96
96
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
97
|
-
this.
|
|
97
|
+
this.x4y_1 = $plugin;
|
|
98
98
|
CoroutineImpl.call(this, resultContinuation);
|
|
99
99
|
}
|
|
100
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
101
|
-
var tmp = this.
|
|
100
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).n3y = function ($this$intercept, it, $completion) {
|
|
101
|
+
var tmp = this.o3y($this$intercept, it, $completion);
|
|
102
102
|
tmp.zc_1 = Unit_instance;
|
|
103
103
|
tmp.ad_1 = null;
|
|
104
104
|
return tmp.kd();
|
|
105
105
|
};
|
|
106
106
|
protoOf(ContentNegotiation$Plugin$install$slambda).qj = function (p1, p2, $completion) {
|
|
107
107
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
108
|
-
return this.
|
|
108
|
+
return this.n3y(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
109
109
|
};
|
|
110
110
|
protoOf(ContentNegotiation$Plugin$install$slambda).kd = function () {
|
|
111
111
|
var suspendResult = this.zc_1;
|
|
@@ -116,25 +116,25 @@
|
|
|
116
116
|
case 0:
|
|
117
117
|
this.yc_1 = 3;
|
|
118
118
|
this.xc_1 = 1;
|
|
119
|
-
suspendResult = this.
|
|
119
|
+
suspendResult = this.x4y_1.e4z(this.y4y_1.b1q_1, this.y4y_1.e1p(), this);
|
|
120
120
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
121
121
|
return suspendResult;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
continue $sm;
|
|
125
125
|
case 1:
|
|
126
|
-
this.
|
|
126
|
+
this.a4z_1 = suspendResult;
|
|
127
127
|
var tmp_0 = this;
|
|
128
128
|
var tmp_1;
|
|
129
|
-
if (this.
|
|
129
|
+
if (this.a4z_1 == null) {
|
|
130
130
|
return Unit_instance;
|
|
131
131
|
} else {
|
|
132
|
-
tmp_1 = this.
|
|
132
|
+
tmp_1 = this.a4z_1;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
tmp_0.
|
|
135
|
+
tmp_0.b4z_1 = tmp_1;
|
|
136
136
|
this.xc_1 = 2;
|
|
137
|
-
suspendResult = this.
|
|
137
|
+
suspendResult = this.y4y_1.f1p(this.b4z_1, this);
|
|
138
138
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
139
139
|
return suspendResult;
|
|
140
140
|
}
|
|
@@ -156,33 +156,33 @@
|
|
|
156
156
|
}
|
|
157
157
|
while (true);
|
|
158
158
|
};
|
|
159
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
160
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
161
|
-
i.
|
|
162
|
-
i.
|
|
159
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).o3y = function ($this$intercept, it, completion) {
|
|
160
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.x4y_1, completion);
|
|
161
|
+
i.y4y_1 = $this$intercept;
|
|
162
|
+
i.z4y_1 = it;
|
|
163
163
|
return i;
|
|
164
164
|
};
|
|
165
165
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
166
166
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
167
167
|
var l = function ($this$intercept, it, $completion) {
|
|
168
|
-
return i.
|
|
168
|
+
return i.n3y($this$intercept, it, $completion);
|
|
169
169
|
};
|
|
170
170
|
l.$arity = 2;
|
|
171
171
|
return l;
|
|
172
172
|
}
|
|
173
173
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
174
|
-
this.
|
|
174
|
+
this.n4z_1 = $plugin;
|
|
175
175
|
CoroutineImpl.call(this, resultContinuation);
|
|
176
176
|
}
|
|
177
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
178
|
-
var tmp = this.
|
|
177
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).h3z = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
178
|
+
var tmp = this.i3z($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
179
179
|
tmp.zc_1 = Unit_instance;
|
|
180
180
|
tmp.ad_1 = null;
|
|
181
181
|
return tmp.kd();
|
|
182
182
|
};
|
|
183
183
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).qj = function (p1, p2, $completion) {
|
|
184
184
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
185
|
-
return this.
|
|
185
|
+
return this.h3z(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
186
186
|
};
|
|
187
187
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).kd = function () {
|
|
188
188
|
var suspendResult = this.zc_1;
|
|
@@ -192,42 +192,42 @@
|
|
|
192
192
|
switch (tmp) {
|
|
193
193
|
case 0:
|
|
194
194
|
this.yc_1 = 3;
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
195
|
+
this.q4z_1 = this.p4z_1.hf();
|
|
196
|
+
this.r4z_1 = this.p4z_1.if();
|
|
197
197
|
var tmp_0 = this;
|
|
198
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
198
|
+
var tmp0_elvis_lhs = contentType(this.o4z_1.b1q_1.u3y());
|
|
199
199
|
var tmp_1;
|
|
200
200
|
if (tmp0_elvis_lhs == null) {
|
|
201
|
-
this.
|
|
201
|
+
this.o4z_1;
|
|
202
202
|
get_LOGGER().w1q('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
203
203
|
return Unit_instance;
|
|
204
204
|
} else {
|
|
205
205
|
tmp_1 = tmp0_elvis_lhs;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
tmp_0.
|
|
209
|
-
this.
|
|
208
|
+
tmp_0.s4z_1 = tmp_1;
|
|
209
|
+
this.t4z_1 = suitableCharset(this.o4z_1.b1q_1.d42().z1w());
|
|
210
210
|
this.xc_1 = 1;
|
|
211
|
-
suspendResult = this.
|
|
211
|
+
suspendResult = this.n4z_1.x4z(this.o4z_1.b1q_1.d42().b3i(), this.q4z_1, this.r4z_1, this.s4z_1, this.t4z_1, this);
|
|
212
212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
213
213
|
return suspendResult;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
continue $sm;
|
|
217
217
|
case 1:
|
|
218
|
-
this.
|
|
218
|
+
this.u4z_1 = suspendResult;
|
|
219
219
|
var tmp_2 = this;
|
|
220
220
|
var tmp_3;
|
|
221
|
-
if (this.
|
|
221
|
+
if (this.u4z_1 == null) {
|
|
222
222
|
return Unit_instance;
|
|
223
223
|
} else {
|
|
224
|
-
tmp_3 = this.
|
|
224
|
+
tmp_3 = this.u4z_1;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
tmp_2.
|
|
228
|
-
this.
|
|
227
|
+
tmp_2.v4z_1 = tmp_3;
|
|
228
|
+
this.w4z_1 = new HttpResponseContainer(this.q4z_1, this.v4z_1);
|
|
229
229
|
this.xc_1 = 2;
|
|
230
|
-
suspendResult = this.
|
|
230
|
+
suspendResult = this.o4z_1.f1p(this.w4z_1, this);
|
|
231
231
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
232
232
|
return suspendResult;
|
|
233
233
|
}
|
|
@@ -249,63 +249,63 @@
|
|
|
249
249
|
}
|
|
250
250
|
while (true);
|
|
251
251
|
};
|
|
252
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
253
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
254
|
-
i.
|
|
255
|
-
i.
|
|
252
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).i3z = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
253
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.n4z_1, completion);
|
|
254
|
+
i.o4z_1 = $this$intercept;
|
|
255
|
+
i.p4z_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
256
256
|
return i;
|
|
257
257
|
};
|
|
258
258
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
259
259
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
260
260
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
261
|
-
return i.
|
|
261
|
+
return i.h3z($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
262
262
|
};
|
|
263
263
|
l.$arity = 2;
|
|
264
264
|
return l;
|
|
265
265
|
}
|
|
266
266
|
function Config() {
|
|
267
|
-
this.
|
|
267
|
+
this.y4z_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
268
268
|
var tmp = this;
|
|
269
269
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
270
|
-
tmp.
|
|
270
|
+
tmp.z4z_1 = ArrayList_init_$Create$();
|
|
271
271
|
}
|
|
272
272
|
protoOf(Config).l23 = function (contentType, converter, configuration) {
|
|
273
273
|
var matcher = contentType.equals(Application_getInstance().k1r_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
274
|
-
this.
|
|
274
|
+
this.a50(contentType, converter, matcher, configuration);
|
|
275
275
|
};
|
|
276
|
-
protoOf(Config).
|
|
276
|
+
protoOf(Config).a50 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
277
277
|
// Inline function 'kotlin.apply' call
|
|
278
278
|
// Inline function 'kotlin.contracts.contract' call
|
|
279
279
|
configuration(converter);
|
|
280
280
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
281
|
-
this.
|
|
281
|
+
this.z4z_1.s(registration);
|
|
282
282
|
};
|
|
283
283
|
function Plugin() {
|
|
284
284
|
Plugin_instance = this;
|
|
285
|
-
this.
|
|
285
|
+
this.b50_1 = new AttributeKey('ContentNegotiation');
|
|
286
286
|
}
|
|
287
287
|
protoOf(Plugin).r2 = function () {
|
|
288
|
-
return this.
|
|
288
|
+
return this.b50_1;
|
|
289
289
|
};
|
|
290
|
-
protoOf(Plugin).
|
|
290
|
+
protoOf(Plugin).c50 = function (block) {
|
|
291
291
|
// Inline function 'kotlin.apply' call
|
|
292
292
|
var this_0 = new Config();
|
|
293
293
|
// Inline function 'kotlin.contracts.contract' call
|
|
294
294
|
block(this_0);
|
|
295
295
|
var config = this_0;
|
|
296
|
-
return new ContentNegotiation(config.
|
|
296
|
+
return new ContentNegotiation(config.z4z_1, config.y4z_1);
|
|
297
297
|
};
|
|
298
|
-
protoOf(Plugin).
|
|
299
|
-
return this.
|
|
298
|
+
protoOf(Plugin).y40 = function (block) {
|
|
299
|
+
return this.c50(block);
|
|
300
300
|
};
|
|
301
|
-
protoOf(Plugin).
|
|
302
|
-
var tmp = Phases_getInstance().
|
|
303
|
-
scope.
|
|
304
|
-
var tmp_0 = Phases_getInstance_0().
|
|
305
|
-
scope.
|
|
301
|
+
protoOf(Plugin).d50 = function (plugin, scope) {
|
|
302
|
+
var tmp = Phases_getInstance().p46_1;
|
|
303
|
+
scope.t3x_1.f1q(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
304
|
+
var tmp_0 = Phases_getInstance_0().t40_1;
|
|
305
|
+
scope.u3x_1.f1q(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
306
306
|
};
|
|
307
|
-
protoOf(Plugin).
|
|
308
|
-
return this.
|
|
307
|
+
protoOf(Plugin).z40 = function (plugin, scope) {
|
|
308
|
+
return this.d50(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
309
309
|
};
|
|
310
310
|
var Plugin_instance;
|
|
311
311
|
function Plugin_getInstance() {
|
|
@@ -314,13 +314,13 @@
|
|
|
314
314
|
return Plugin_instance;
|
|
315
315
|
}
|
|
316
316
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
317
|
-
return toString(it.
|
|
317
|
+
return toString(it.k4y_1);
|
|
318
318
|
}
|
|
319
319
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
320
320
|
CoroutineImpl.call(this, resultContinuation);
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
321
|
+
this.m50_1 = _this__u8e3s4;
|
|
322
|
+
this.n50_1 = request;
|
|
323
|
+
this.o50_1 = body;
|
|
324
324
|
}
|
|
325
325
|
protoOf($convertRequestCOROUTINE$0).kd = function () {
|
|
326
326
|
var suspendResult = this.zc_1;
|
|
@@ -330,21 +330,21 @@
|
|
|
330
330
|
switch (tmp) {
|
|
331
331
|
case 0:
|
|
332
332
|
this.yc_1 = 7;
|
|
333
|
-
var tmp0_iterator = this.
|
|
333
|
+
var tmp0_iterator = this.m50_1.c4z_1.v();
|
|
334
334
|
while (tmp0_iterator.w()) {
|
|
335
335
|
var element = tmp0_iterator.y();
|
|
336
|
-
get_LOGGER().w1q('Adding Accept=' + element.
|
|
337
|
-
accept(this.
|
|
336
|
+
get_LOGGER().w1q('Adding Accept=' + element.l4y_1.n1s_1 + ' header for ' + this.n50_1.t3z_1);
|
|
337
|
+
accept(this.n50_1, element.l4y_1);
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
var tmp_0;
|
|
341
|
-
var tmp_1 = this.
|
|
341
|
+
var tmp_1 = this.o50_1;
|
|
342
342
|
if (tmp_1 instanceof OutgoingContent) {
|
|
343
343
|
tmp_0 = true;
|
|
344
344
|
} else {
|
|
345
345
|
var tmp$ret$0;
|
|
346
346
|
l$ret$1: do {
|
|
347
|
-
var this_0 = this.
|
|
347
|
+
var this_0 = this.m50_1.d4z_1;
|
|
348
348
|
var tmp_2;
|
|
349
349
|
if (isInterface(this_0, Collection)) {
|
|
350
350
|
tmp_2 = this_0.e1();
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
var tmp0_iterator_0 = this_0.v();
|
|
359
359
|
while (tmp0_iterator_0.w()) {
|
|
360
360
|
var element_0 = tmp0_iterator_0.y();
|
|
361
|
-
if (element_0.w6(this.
|
|
361
|
+
if (element_0.w6(this.o50_1)) {
|
|
362
362
|
tmp$ret$0 = true;
|
|
363
363
|
break l$ret$1;
|
|
364
364
|
}
|
|
@@ -370,36 +370,36 @@
|
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
if (tmp_0) {
|
|
373
|
-
get_LOGGER().w1q('Body type ' + getKClassFromExpression(this.
|
|
373
|
+
get_LOGGER().w1q('Body type ' + getKClassFromExpression(this.o50_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.n50_1.t3z_1 + '.'));
|
|
374
374
|
return null;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
var tmp_3 = this;
|
|
378
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
378
|
+
var tmp0_elvis_lhs = contentType_0(this.n50_1);
|
|
379
379
|
var tmp_4;
|
|
380
380
|
if (tmp0_elvis_lhs == null) {
|
|
381
|
-
this.
|
|
382
|
-
get_LOGGER().w1q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.
|
|
381
|
+
this.m50_1;
|
|
382
|
+
get_LOGGER().w1q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.n50_1.t3z_1 + '.');
|
|
383
383
|
return null;
|
|
384
384
|
} else {
|
|
385
385
|
tmp_4 = tmp0_elvis_lhs;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
tmp_3.
|
|
389
|
-
var tmp_5 = this.
|
|
388
|
+
tmp_3.p50_1 = tmp_4;
|
|
389
|
+
var tmp_5 = this.o50_1;
|
|
390
390
|
if (tmp_5 instanceof Unit) {
|
|
391
|
-
get_LOGGER().w1q('Sending empty body for ' + this.
|
|
392
|
-
this.
|
|
391
|
+
get_LOGGER().w1q('Sending empty body for ' + this.n50_1.t3z_1);
|
|
392
|
+
this.n50_1.v3z_1.p1n(HttpHeaders_getInstance().o1t_1);
|
|
393
393
|
return EmptyContent_getInstance();
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
var tmp_6 = this;
|
|
397
|
-
var this_1 = this.
|
|
397
|
+
var this_1 = this.m50_1.c4z_1;
|
|
398
398
|
var destination = ArrayList_init_$Create$();
|
|
399
399
|
var tmp0_iterator_1 = this_1.v();
|
|
400
400
|
while (tmp0_iterator_1.w()) {
|
|
401
401
|
var element_1 = tmp0_iterator_1.y();
|
|
402
|
-
if (element_1.
|
|
402
|
+
if (element_1.m4y_1.o4y(this.p50_1)) {
|
|
403
403
|
destination.s(element_1);
|
|
404
404
|
}
|
|
405
405
|
}
|
|
@@ -414,42 +414,42 @@
|
|
|
414
414
|
var tmp1_elvis_lhs = tmp_7;
|
|
415
415
|
var tmp_8;
|
|
416
416
|
if (tmp1_elvis_lhs == null) {
|
|
417
|
-
this.
|
|
418
|
-
get_LOGGER().w1q('None of the registered converters match request Content-Type=' + this.
|
|
417
|
+
this.m50_1;
|
|
418
|
+
get_LOGGER().w1q('None of the registered converters match request Content-Type=' + this.p50_1 + '. ' + ('Skipping ContentNegotiation for ' + this.n50_1.t3z_1 + '.'));
|
|
419
419
|
return null;
|
|
420
420
|
} else {
|
|
421
421
|
tmp_8 = tmp1_elvis_lhs;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
tmp_6.
|
|
425
|
-
if (this.
|
|
426
|
-
get_LOGGER().w1q('Request has unknown body type. Skipping ContentNegotiation for ' + this.
|
|
424
|
+
tmp_6.q50_1 = tmp_8;
|
|
425
|
+
if (this.n50_1.v4o() == null) {
|
|
426
|
+
get_LOGGER().w1q('Request has unknown body type. Skipping ContentNegotiation for ' + this.n50_1.t3z_1 + '.');
|
|
427
427
|
return null;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
this.
|
|
430
|
+
this.n50_1.v3z_1.p1n(HttpHeaders_getInstance().o1t_1);
|
|
431
431
|
this.xc_1 = 1;
|
|
432
432
|
continue $sm;
|
|
433
433
|
case 1:
|
|
434
434
|
var tmp_9 = this;
|
|
435
|
-
tmp_9.
|
|
436
|
-
this.
|
|
435
|
+
tmp_9.s50_1 = this.q50_1;
|
|
436
|
+
this.t50_1 = this.s50_1.v();
|
|
437
437
|
this.xc_1 = 2;
|
|
438
438
|
continue $sm;
|
|
439
439
|
case 2:
|
|
440
|
-
if (!this.
|
|
440
|
+
if (!this.t50_1.w()) {
|
|
441
441
|
this.xc_1 = 5;
|
|
442
442
|
continue $sm;
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
this.
|
|
445
|
+
this.u50_1 = this.t50_1.y();
|
|
446
446
|
var tmp_10 = this;
|
|
447
|
-
tmp_10.
|
|
447
|
+
tmp_10.v50_1 = this.u50_1;
|
|
448
448
|
this.xc_1 = 3;
|
|
449
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
449
|
+
var tmp0_elvis_lhs_0 = charset(this.p50_1);
|
|
450
450
|
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().o1h_1 : tmp0_elvis_lhs_0;
|
|
451
|
-
var tmp_12 = ensureNotNull(this.
|
|
452
|
-
var this_2 = this.
|
|
451
|
+
var tmp_12 = ensureNotNull(this.n50_1.v4o());
|
|
452
|
+
var this_2 = this.o50_1;
|
|
453
453
|
var tmp_13;
|
|
454
454
|
if (!equals(this_2, NullBody_instance)) {
|
|
455
455
|
tmp_13 = this_2;
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
tmp_13 = null;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
suspendResult = this.
|
|
460
|
+
suspendResult = this.v50_1.k4y_1.o23(this.p50_1, tmp_11, tmp_12, tmp_13, this);
|
|
461
461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
462
462
|
return suspendResult;
|
|
463
463
|
}
|
|
@@ -466,12 +466,12 @@
|
|
|
466
466
|
case 3:
|
|
467
467
|
var result = suspendResult;
|
|
468
468
|
if (!(result == null)) {
|
|
469
|
-
get_LOGGER().w1q('Converted request body using ' + this.
|
|
469
|
+
get_LOGGER().w1q('Converted request body using ' + this.v50_1.k4y_1 + ' for ' + this.n50_1.t3z_1);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
var result_0 = result;
|
|
473
473
|
if (!(result_0 == null)) {
|
|
474
|
-
this.
|
|
474
|
+
this.r50_1 = result_0;
|
|
475
475
|
this.xc_1 = 6;
|
|
476
476
|
continue $sm;
|
|
477
477
|
} else {
|
|
@@ -483,7 +483,7 @@
|
|
|
483
483
|
this.xc_1 = 2;
|
|
484
484
|
continue $sm;
|
|
485
485
|
case 5:
|
|
486
|
-
this.
|
|
486
|
+
this.r50_1 = null;
|
|
487
487
|
if (false) {
|
|
488
488
|
this.xc_1 = 1;
|
|
489
489
|
continue $sm;
|
|
@@ -492,11 +492,11 @@
|
|
|
492
492
|
this.xc_1 = 6;
|
|
493
493
|
continue $sm;
|
|
494
494
|
case 6:
|
|
495
|
-
var tmp2_elvis_lhs = this.
|
|
495
|
+
var tmp2_elvis_lhs = this.r50_1;
|
|
496
496
|
var tmp_14;
|
|
497
497
|
if (tmp2_elvis_lhs == null) {
|
|
498
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
499
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
498
|
+
var tmp_15 = "Can't convert " + toString(this.o50_1) + ' with contentType ' + this.p50_1 + ' using converters ';
|
|
499
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.q50_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
500
500
|
} else {
|
|
501
501
|
tmp_14 = tmp2_elvis_lhs;
|
|
502
502
|
}
|
|
@@ -519,12 +519,12 @@
|
|
|
519
519
|
};
|
|
520
520
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
521
521
|
CoroutineImpl.call(this, resultContinuation);
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
522
|
+
this.e51_1 = _this__u8e3s4;
|
|
523
|
+
this.f51_1 = requestUrl;
|
|
524
|
+
this.g51_1 = info;
|
|
525
|
+
this.h51_1 = body;
|
|
526
|
+
this.i51_1 = responseContentType;
|
|
527
|
+
this.j51_1 = charset;
|
|
528
528
|
}
|
|
529
529
|
protoOf($convertResponseCOROUTINE$1).kd = function () {
|
|
530
530
|
var suspendResult = this.zc_1;
|
|
@@ -534,24 +534,24 @@
|
|
|
534
534
|
switch (tmp) {
|
|
535
535
|
case 0:
|
|
536
536
|
this.yc_1 = 2;
|
|
537
|
-
var tmp_0 = this.
|
|
537
|
+
var tmp_0 = this.h51_1;
|
|
538
538
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
539
|
-
get_LOGGER().w1q('Response body is already transformed. Skipping ContentNegotiation for ' + this.
|
|
539
|
+
get_LOGGER().w1q('Response body is already transformed. Skipping ContentNegotiation for ' + this.f51_1 + '.');
|
|
540
540
|
return null;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
-
if (this.
|
|
544
|
-
get_LOGGER().w1q('Response body type ' + this.
|
|
543
|
+
if (this.e51_1.d4z_1.r(this.g51_1.s1q_1)) {
|
|
544
|
+
get_LOGGER().w1q('Response body type ' + this.g51_1.s1q_1 + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.f51_1 + '.'));
|
|
545
545
|
return null;
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
var tmp_1 = this;
|
|
549
|
-
var this_0 = this.
|
|
549
|
+
var this_0 = this.e51_1.c4z_1;
|
|
550
550
|
var destination = ArrayList_init_$Create$();
|
|
551
551
|
var tmp0_iterator = this_0.v();
|
|
552
552
|
while (tmp0_iterator.w()) {
|
|
553
553
|
var element = tmp0_iterator.y();
|
|
554
|
-
if (element.
|
|
554
|
+
if (element.m4y_1.o4y(this.i51_1)) {
|
|
555
555
|
destination.s(element);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
var tmp0_iterator_0 = destination.v();
|
|
561
561
|
while (tmp0_iterator_0.w()) {
|
|
562
562
|
var item = tmp0_iterator_0.y();
|
|
563
|
-
destination_0.s(item.
|
|
563
|
+
destination_0.s(item.k4y_1);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
var tmp_2;
|
|
@@ -573,16 +573,16 @@
|
|
|
573
573
|
var tmp0_elvis_lhs = tmp_2;
|
|
574
574
|
var tmp_3;
|
|
575
575
|
if (tmp0_elvis_lhs == null) {
|
|
576
|
-
this.
|
|
577
|
-
get_LOGGER().w1q('None of the registered converters match response with Content-Type=' + this.
|
|
576
|
+
this.e51_1;
|
|
577
|
+
get_LOGGER().w1q('None of the registered converters match response with Content-Type=' + this.i51_1 + '. ' + ('Skipping ContentNegotiation for ' + this.f51_1 + '.'));
|
|
578
578
|
return null;
|
|
579
579
|
} else {
|
|
580
580
|
tmp_3 = tmp0_elvis_lhs;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
-
tmp_1.
|
|
583
|
+
tmp_1.k51_1 = tmp_3;
|
|
584
584
|
this.xc_1 = 1;
|
|
585
|
-
suspendResult = deserialize(this.
|
|
585
|
+
suspendResult = deserialize(this.k51_1, this.h51_1, this.g51_1, this.j51_1, this);
|
|
586
586
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
587
587
|
return suspendResult;
|
|
588
588
|
}
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
case 1:
|
|
592
592
|
var result = suspendResult;
|
|
593
593
|
if (!isInterface(result, ByteReadChannel)) {
|
|
594
|
-
get_LOGGER().w1q('Response body was converted to ' + getKClassFromExpression(result) + ' for ' + this.
|
|
594
|
+
get_LOGGER().w1q('Response body was converted to ' + getKClassFromExpression(result) + ' for ' + this.f51_1 + '.');
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
return result;
|
|
@@ -611,16 +611,16 @@
|
|
|
611
611
|
};
|
|
612
612
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
613
613
|
Plugin_getInstance();
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
614
|
+
this.c4z_1 = registrations;
|
|
615
|
+
this.d4z_1 = ignoredTypes;
|
|
616
616
|
}
|
|
617
|
-
protoOf(ContentNegotiation).
|
|
617
|
+
protoOf(ContentNegotiation).e4z = function (request, body, $completion) {
|
|
618
618
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
619
619
|
tmp.zc_1 = Unit_instance;
|
|
620
620
|
tmp.ad_1 = null;
|
|
621
621
|
return tmp.kd();
|
|
622
622
|
};
|
|
623
|
-
protoOf(ContentNegotiation).
|
|
623
|
+
protoOf(ContentNegotiation).x4z = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
624
624
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
625
625
|
tmp.zc_1 = Unit_instance;
|
|
626
626
|
tmp.ad_1 = null;
|
|
@@ -640,7 +640,7 @@
|
|
|
640
640
|
}
|
|
641
641
|
function JsonContentTypeMatcher() {
|
|
642
642
|
}
|
|
643
|
-
protoOf(JsonContentTypeMatcher).
|
|
643
|
+
protoOf(JsonContentTypeMatcher).o4y = function (contentType) {
|
|
644
644
|
if (contentType.r1s(Application_getInstance().k1r_1)) {
|
|
645
645
|
return true;
|
|
646
646
|
}
|