mrs-toolbox-cli 0.0.133 → 0.0.136
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/88b0986a7186d029-atomicfu-js-ir.js +6 -6
- package/clikt-clikt-mordant.js +37 -37
- package/clikt-clikt.js +1396 -1396
- package/colormath-root-colormath.js +462 -462
- package/com.mrs.platform.configuration.dto.js +1912 -1717
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +441 -415
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +46 -46
- package/kotlinx-serialization-kotlinx-serialization-core.js +170 -170
- package/kotlinx-serialization-kotlinx-serialization-json.js +109 -109
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +71 -71
- package/ktor-ktor-client-content-negotiation.js +150 -150
- package/ktor-ktor-client-core.js +1475 -1475
- package/ktor-ktor-events.js +10 -10
- package/ktor-ktor-http.js +89 -89
- package/ktor-ktor-io.js +51 -51
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +21 -21
- package/ktor-ktor-serialization.js +12 -12
- package/ktor-ktor-utils.js +63 -63
- package/ktor-ktor-websockets.js +17 -17
- package/mordant-mordant.js +629 -629
- package/mrs-toolbox-cli.d.ts +16 -27
- package/mrs-toolbox-cli.js +221 -221
- package/package.json +1 -1
- package/toolbox.js +4811 -4306
- package/toolbox.js.map +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
5
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
7
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
8
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
4
|
+
var protoOf = kotlin_kotlin.$_$.dc;
|
|
5
|
+
var initMetadataForClass = kotlin_kotlin.$_$.db;
|
|
6
|
+
var CoroutineImpl = kotlin_kotlin.$_$.da;
|
|
7
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
8
|
+
var THROW_CCE = kotlin_kotlin.$_$.rg;
|
|
9
9
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.g;
|
|
10
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
11
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n9;
|
|
11
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ib;
|
|
12
12
|
var VOID = kotlin_kotlin.$_$.g;
|
|
13
13
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
14
14
|
var contentType = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
15
15
|
var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
|
|
16
|
-
var plus = kotlin_kotlin.$_$.
|
|
17
|
-
var toMutableSet = kotlin_kotlin.$_$.
|
|
16
|
+
var plus = kotlin_kotlin.$_$.h8;
|
|
17
|
+
var toMutableSet = kotlin_kotlin.$_$.e9;
|
|
18
18
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
19
19
|
var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
|
|
20
20
|
var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
24
24
|
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.d;
|
|
25
25
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
26
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
27
|
-
var toString = kotlin_kotlin.$_$.
|
|
26
|
+
var initMetadataForObject = kotlin_kotlin.$_$.jb;
|
|
27
|
+
var toString = kotlin_kotlin.$_$.ic;
|
|
28
28
|
var accept = kotlin_io_ktor_ktor_client_core.$_$.h;
|
|
29
|
-
var Collection = kotlin_kotlin.$_$.
|
|
30
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
29
|
+
var Collection = kotlin_kotlin.$_$.i5;
|
|
30
|
+
var isInterface = kotlin_kotlin.$_$.sb;
|
|
31
31
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.o;
|
|
32
32
|
var getKClassFromExpression = kotlin_kotlin.$_$.e;
|
|
33
33
|
var contentType_0 = kotlin_io_ktor_ktor_http.$_$.z;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
35
35
|
var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
36
|
-
var Unit = kotlin_kotlin.$_$.
|
|
36
|
+
var Unit = kotlin_kotlin.$_$.ch;
|
|
37
37
|
var charset = kotlin_io_ktor_ktor_http.$_$.x;
|
|
38
38
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
39
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
39
|
+
var ensureNotNull = kotlin_kotlin.$_$.jh;
|
|
40
40
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
41
|
-
var equals = kotlin_kotlin.$_$.
|
|
42
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
41
|
+
var equals = kotlin_kotlin.$_$.va;
|
|
42
|
+
var joinToString = kotlin_kotlin.$_$.l7;
|
|
43
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.fb;
|
|
44
44
|
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
45
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
45
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.d6;
|
|
46
46
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
47
47
|
var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
|
|
48
|
-
var Exception = kotlin_kotlin.$_$.
|
|
48
|
+
var Exception = kotlin_kotlin.$_$.jg;
|
|
49
49
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.k1;
|
|
50
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
50
|
+
var captureStack = kotlin_kotlin.$_$.na;
|
|
51
51
|
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.f;
|
|
52
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
52
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.v4;
|
|
53
53
|
var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.r;
|
|
54
54
|
var getKClass = kotlin_kotlin.$_$.f;
|
|
55
|
-
var setOf = kotlin_kotlin.$_$.
|
|
56
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
57
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
55
|
+
var setOf = kotlin_kotlin.$_$.q8;
|
|
56
|
+
var startsWith = kotlin_kotlin.$_$.af;
|
|
57
|
+
var endsWith = kotlin_kotlin.$_$.xd;
|
|
58
58
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
|
|
59
59
|
//endregion
|
|
60
60
|
//region block: pre-declaration
|
|
@@ -81,32 +81,32 @@
|
|
|
81
81
|
}
|
|
82
82
|
var DefaultCommonIgnoredTypes;
|
|
83
83
|
function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
|
|
84
|
-
this.
|
|
85
|
-
this.
|
|
86
|
-
this.
|
|
84
|
+
this.m53_1 = converter;
|
|
85
|
+
this.n53_1 = contentTypeToSend;
|
|
86
|
+
this.o53_1 = contentTypeMatcher;
|
|
87
87
|
}
|
|
88
88
|
function defaultMatcher($this, pattern) {
|
|
89
89
|
return new ContentNegotiation$Config$defaultMatcher$1(pattern);
|
|
90
90
|
}
|
|
91
91
|
function ContentNegotiation$Config$defaultMatcher$1($pattern) {
|
|
92
|
-
this.
|
|
92
|
+
this.p53_1 = $pattern;
|
|
93
93
|
}
|
|
94
|
-
protoOf(ContentNegotiation$Config$defaultMatcher$1).
|
|
95
|
-
return contentType.b20(this.
|
|
94
|
+
protoOf(ContentNegotiation$Config$defaultMatcher$1).q53 = function (contentType) {
|
|
95
|
+
return contentType.b20(this.p53_1);
|
|
96
96
|
};
|
|
97
97
|
function ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation) {
|
|
98
|
-
this.
|
|
98
|
+
this.z53_1 = $plugin;
|
|
99
99
|
CoroutineImpl.call(this, resultContinuation);
|
|
100
100
|
}
|
|
101
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
102
|
-
var tmp = this.
|
|
101
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).o43 = function ($this$intercept, it, $completion) {
|
|
102
|
+
var tmp = this.p43($this$intercept, it, $completion);
|
|
103
103
|
tmp.n9_1 = Unit_instance;
|
|
104
104
|
tmp.o9_1 = null;
|
|
105
105
|
return tmp.t9();
|
|
106
106
|
};
|
|
107
107
|
protoOf(ContentNegotiation$Plugin$install$slambda).ca = function (p1, p2, $completion) {
|
|
108
108
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
109
|
-
return this.
|
|
109
|
+
return this.o43(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
110
110
|
};
|
|
111
111
|
protoOf(ContentNegotiation$Plugin$install$slambda).t9 = function () {
|
|
112
112
|
var suspendResult = this.n9_1;
|
|
@@ -117,25 +117,25 @@
|
|
|
117
117
|
case 0:
|
|
118
118
|
this.m9_1 = 3;
|
|
119
119
|
this.l9_1 = 1;
|
|
120
|
-
suspendResult = this.
|
|
120
|
+
suspendResult = this.z53_1.g54(this.a54_1.n1x_1, this.a54_1.q1w(), this);
|
|
121
121
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
122
122
|
return suspendResult;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
continue $sm;
|
|
126
126
|
case 1:
|
|
127
|
-
this.
|
|
127
|
+
this.c54_1 = suspendResult;
|
|
128
128
|
var tmp_0 = this;
|
|
129
129
|
var tmp_1;
|
|
130
|
-
if (this.
|
|
130
|
+
if (this.c54_1 == null) {
|
|
131
131
|
return Unit_instance;
|
|
132
132
|
} else {
|
|
133
|
-
tmp_1 = this.
|
|
133
|
+
tmp_1 = this.c54_1;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
tmp_0.
|
|
136
|
+
tmp_0.d54_1 = tmp_1;
|
|
137
137
|
this.l9_1 = 2;
|
|
138
|
-
suspendResult = this.
|
|
138
|
+
suspendResult = this.a54_1.r1w(this.d54_1, this);
|
|
139
139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
140
140
|
return suspendResult;
|
|
141
141
|
}
|
|
@@ -157,33 +157,33 @@
|
|
|
157
157
|
}
|
|
158
158
|
while (true);
|
|
159
159
|
};
|
|
160
|
-
protoOf(ContentNegotiation$Plugin$install$slambda).
|
|
161
|
-
var i = new ContentNegotiation$Plugin$install$slambda(this.
|
|
162
|
-
i.
|
|
163
|
-
i.
|
|
160
|
+
protoOf(ContentNegotiation$Plugin$install$slambda).p43 = function ($this$intercept, it, completion) {
|
|
161
|
+
var i = new ContentNegotiation$Plugin$install$slambda(this.z53_1, completion);
|
|
162
|
+
i.a54_1 = $this$intercept;
|
|
163
|
+
i.b54_1 = it;
|
|
164
164
|
return i;
|
|
165
165
|
};
|
|
166
166
|
function ContentNegotiation$Plugin$install$slambda_0($plugin, resultContinuation) {
|
|
167
167
|
var i = new ContentNegotiation$Plugin$install$slambda($plugin, resultContinuation);
|
|
168
168
|
var l = function ($this$intercept, it, $completion) {
|
|
169
|
-
return i.
|
|
169
|
+
return i.o43($this$intercept, it, $completion);
|
|
170
170
|
};
|
|
171
171
|
l.$arity = 2;
|
|
172
172
|
return l;
|
|
173
173
|
}
|
|
174
174
|
function ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation) {
|
|
175
|
-
this.
|
|
175
|
+
this.p54_1 = $plugin;
|
|
176
176
|
CoroutineImpl.call(this, resultContinuation);
|
|
177
177
|
}
|
|
178
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
179
|
-
var tmp = this.
|
|
178
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).i44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
179
|
+
var tmp = this.j44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
180
180
|
tmp.n9_1 = Unit_instance;
|
|
181
181
|
tmp.o9_1 = null;
|
|
182
182
|
return tmp.t9();
|
|
183
183
|
};
|
|
184
184
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).ca = function (p1, p2, $completion) {
|
|
185
185
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
186
|
-
return this.
|
|
186
|
+
return this.i44(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
187
187
|
};
|
|
188
188
|
protoOf(ContentNegotiation$Plugin$install$slambda_1).t9 = function () {
|
|
189
189
|
var suspendResult = this.n9_1;
|
|
@@ -193,42 +193,42 @@
|
|
|
193
193
|
switch (tmp) {
|
|
194
194
|
case 0:
|
|
195
195
|
this.m9_1 = 3;
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
196
|
+
this.s54_1 = this.r54_1.qg();
|
|
197
|
+
this.t54_1 = this.r54_1.rg();
|
|
198
198
|
var tmp_0 = this;
|
|
199
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
199
|
+
var tmp0_elvis_lhs = contentType(this.q54_1.n1x_1.v43());
|
|
200
200
|
var tmp_1;
|
|
201
201
|
if (tmp0_elvis_lhs == null) {
|
|
202
|
-
this.
|
|
202
|
+
this.q54_1;
|
|
203
203
|
get_LOGGER().h1y('Response doesn\'t have "Content-Type" header, skipping ContentNegotiation plugin');
|
|
204
204
|
return Unit_instance;
|
|
205
205
|
} else {
|
|
206
206
|
tmp_1 = tmp0_elvis_lhs;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
tmp_0.
|
|
210
|
-
this.
|
|
209
|
+
tmp_0.u54_1 = tmp_1;
|
|
210
|
+
this.v54_1 = suitableCharset(this.q54_1.n1x_1.d47().j24());
|
|
211
211
|
this.l9_1 = 1;
|
|
212
|
-
suspendResult = this.
|
|
212
|
+
suspendResult = this.p54_1.z54(this.q54_1.n1x_1.d47().f3p(), this.s54_1, this.t54_1, this.u54_1, this.v54_1, this);
|
|
213
213
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
214
214
|
return suspendResult;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
continue $sm;
|
|
218
218
|
case 1:
|
|
219
|
-
this.
|
|
219
|
+
this.w54_1 = suspendResult;
|
|
220
220
|
var tmp_2 = this;
|
|
221
221
|
var tmp_3;
|
|
222
|
-
if (this.
|
|
222
|
+
if (this.w54_1 == null) {
|
|
223
223
|
return Unit_instance;
|
|
224
224
|
} else {
|
|
225
|
-
tmp_3 = this.
|
|
225
|
+
tmp_3 = this.w54_1;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
tmp_2.
|
|
229
|
-
this.
|
|
228
|
+
tmp_2.x54_1 = tmp_3;
|
|
229
|
+
this.y54_1 = new HttpResponseContainer(this.s54_1, this.x54_1);
|
|
230
230
|
this.l9_1 = 2;
|
|
231
|
-
suspendResult = this.
|
|
231
|
+
suspendResult = this.q54_1.r1w(this.y54_1, this);
|
|
232
232
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
233
233
|
return suspendResult;
|
|
234
234
|
}
|
|
@@ -250,63 +250,63 @@
|
|
|
250
250
|
}
|
|
251
251
|
while (true);
|
|
252
252
|
};
|
|
253
|
-
protoOf(ContentNegotiation$Plugin$install$slambda_1).
|
|
254
|
-
var i = new ContentNegotiation$Plugin$install$slambda_1(this.
|
|
255
|
-
i.
|
|
256
|
-
i.
|
|
253
|
+
protoOf(ContentNegotiation$Plugin$install$slambda_1).j44 = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, completion) {
|
|
254
|
+
var i = new ContentNegotiation$Plugin$install$slambda_1(this.p54_1, completion);
|
|
255
|
+
i.q54_1 = $this$intercept;
|
|
256
|
+
i.r54_1 = _name_for_destructuring_parameter_0__wldtmu;
|
|
257
257
|
return i;
|
|
258
258
|
};
|
|
259
259
|
function ContentNegotiation$Plugin$install$slambda_2($plugin, resultContinuation) {
|
|
260
260
|
var i = new ContentNegotiation$Plugin$install$slambda_1($plugin, resultContinuation);
|
|
261
261
|
var l = function ($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion) {
|
|
262
|
-
return i.
|
|
262
|
+
return i.i44($this$intercept, _name_for_destructuring_parameter_0__wldtmu, $completion);
|
|
263
263
|
};
|
|
264
264
|
l.$arity = 2;
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
267
|
function Config() {
|
|
268
|
-
this.
|
|
268
|
+
this.a55_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
269
269
|
var tmp = this;
|
|
270
270
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
271
|
-
tmp.
|
|
271
|
+
tmp.b55_1 = ArrayList_init_$Create$();
|
|
272
272
|
}
|
|
273
273
|
protoOf(Config).v2a = function (contentType, converter, configuration) {
|
|
274
274
|
var matcher = contentType.equals(Application_getInstance().u1y_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
275
|
-
this.
|
|
275
|
+
this.c55(contentType, converter, matcher, configuration);
|
|
276
276
|
};
|
|
277
|
-
protoOf(Config).
|
|
277
|
+
protoOf(Config).c55 = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
278
278
|
// Inline function 'kotlin.apply' call
|
|
279
279
|
// Inline function 'kotlin.contracts.contract' call
|
|
280
280
|
configuration(converter);
|
|
281
281
|
var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
|
|
282
|
-
this.
|
|
282
|
+
this.b55_1.e(registration);
|
|
283
283
|
};
|
|
284
284
|
function Plugin() {
|
|
285
285
|
Plugin_instance = this;
|
|
286
|
-
this.
|
|
286
|
+
this.d55_1 = new AttributeKey('ContentNegotiation');
|
|
287
287
|
}
|
|
288
288
|
protoOf(Plugin).u = function () {
|
|
289
|
-
return this.
|
|
289
|
+
return this.d55_1;
|
|
290
290
|
};
|
|
291
|
-
protoOf(Plugin).
|
|
291
|
+
protoOf(Plugin).e55 = function (block) {
|
|
292
292
|
// Inline function 'kotlin.apply' call
|
|
293
293
|
var this_0 = new Config();
|
|
294
294
|
// Inline function 'kotlin.contracts.contract' call
|
|
295
295
|
block(this_0);
|
|
296
296
|
var config = this_0;
|
|
297
|
-
return new ContentNegotiation(config.
|
|
297
|
+
return new ContentNegotiation(config.b55_1, config.a55_1);
|
|
298
298
|
};
|
|
299
|
-
protoOf(Plugin).
|
|
300
|
-
return this.
|
|
299
|
+
protoOf(Plugin).z45 = function (block) {
|
|
300
|
+
return this.e55(block);
|
|
301
301
|
};
|
|
302
|
-
protoOf(Plugin).
|
|
303
|
-
var tmp = Phases_getInstance().
|
|
304
|
-
scope.
|
|
305
|
-
var tmp_0 = Phases_getInstance_0().
|
|
306
|
-
scope.
|
|
302
|
+
protoOf(Plugin).f55 = function (plugin, scope) {
|
|
303
|
+
var tmp = Phases_getInstance().p4b_1;
|
|
304
|
+
scope.u42_1.r1x(tmp, ContentNegotiation$Plugin$install$slambda_0(plugin, null));
|
|
305
|
+
var tmp_0 = Phases_getInstance_0().u45_1;
|
|
306
|
+
scope.v42_1.r1x(tmp_0, ContentNegotiation$Plugin$install$slambda_2(plugin, null));
|
|
307
307
|
};
|
|
308
|
-
protoOf(Plugin).
|
|
309
|
-
return this.
|
|
308
|
+
protoOf(Plugin).a46 = function (plugin, scope) {
|
|
309
|
+
return this.f55(plugin instanceof ContentNegotiation ? plugin : THROW_CCE(), scope);
|
|
310
310
|
};
|
|
311
311
|
var Plugin_instance;
|
|
312
312
|
function Plugin_getInstance() {
|
|
@@ -315,13 +315,13 @@
|
|
|
315
315
|
return Plugin_instance;
|
|
316
316
|
}
|
|
317
317
|
function ContentNegotiation$convertRequest$lambda(it) {
|
|
318
|
-
return toString(it.
|
|
318
|
+
return toString(it.m53_1);
|
|
319
319
|
}
|
|
320
320
|
function $convertRequestCOROUTINE$0(_this__u8e3s4, request, body, resultContinuation) {
|
|
321
321
|
CoroutineImpl.call(this, resultContinuation);
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
322
|
+
this.o55_1 = _this__u8e3s4;
|
|
323
|
+
this.p55_1 = request;
|
|
324
|
+
this.q55_1 = body;
|
|
325
325
|
}
|
|
326
326
|
protoOf($convertRequestCOROUTINE$0).t9 = function () {
|
|
327
327
|
var suspendResult = this.n9_1;
|
|
@@ -331,21 +331,21 @@
|
|
|
331
331
|
switch (tmp) {
|
|
332
332
|
case 0:
|
|
333
333
|
this.m9_1 = 7;
|
|
334
|
-
var tmp0_iterator = this.
|
|
334
|
+
var tmp0_iterator = this.o55_1.e54_1.k();
|
|
335
335
|
while (tmp0_iterator.l()) {
|
|
336
336
|
var element = tmp0_iterator.m();
|
|
337
|
-
get_LOGGER().h1y('Adding Accept=' + element.
|
|
338
|
-
accept(this.
|
|
337
|
+
get_LOGGER().h1y('Adding Accept=' + element.n53_1.x1z_1 + ' header for ' + this.p55_1.u44_1.toString());
|
|
338
|
+
accept(this.p55_1, element.n53_1);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
var tmp_0;
|
|
342
|
-
var tmp_1 = this.
|
|
342
|
+
var tmp_1 = this.q55_1;
|
|
343
343
|
if (tmp_1 instanceof OutgoingContent) {
|
|
344
344
|
tmp_0 = true;
|
|
345
345
|
} else {
|
|
346
346
|
var tmp$ret$0;
|
|
347
347
|
l$ret$1: do {
|
|
348
|
-
var this_0 = this.
|
|
348
|
+
var this_0 = this.o55_1.f54_1;
|
|
349
349
|
var tmp_2;
|
|
350
350
|
if (isInterface(this_0, Collection)) {
|
|
351
351
|
tmp_2 = this_0.q();
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
var tmp0_iterator_0 = this_0.k();
|
|
360
360
|
while (tmp0_iterator_0.l()) {
|
|
361
361
|
var element_0 = tmp0_iterator_0.m();
|
|
362
|
-
if (element_0.sa(this.
|
|
362
|
+
if (element_0.sa(this.q55_1)) {
|
|
363
363
|
tmp$ret$0 = true;
|
|
364
364
|
break l$ret$1;
|
|
365
365
|
}
|
|
@@ -371,36 +371,36 @@
|
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
if (tmp_0) {
|
|
374
|
-
get_LOGGER().h1y('Body type ' + toString(getKClassFromExpression(this.
|
|
374
|
+
get_LOGGER().h1y('Body type ' + toString(getKClassFromExpression(this.q55_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
|
|
375
375
|
return null;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
var tmp_3 = this;
|
|
379
|
-
var tmp0_elvis_lhs = contentType_0(this.
|
|
379
|
+
var tmp0_elvis_lhs = contentType_0(this.p55_1);
|
|
380
380
|
var tmp_4;
|
|
381
381
|
if (tmp0_elvis_lhs == null) {
|
|
382
|
-
this.
|
|
383
|
-
get_LOGGER().h1y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.
|
|
382
|
+
this.o55_1;
|
|
383
|
+
get_LOGGER().h1y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.p55_1.u44_1.toString() + '.');
|
|
384
384
|
return null;
|
|
385
385
|
} else {
|
|
386
386
|
tmp_4 = tmp0_elvis_lhs;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
tmp_3.
|
|
390
|
-
var tmp_5 = this.
|
|
389
|
+
tmp_3.r55_1 = tmp_4;
|
|
390
|
+
var tmp_5 = this.q55_1;
|
|
391
391
|
if (tmp_5 instanceof Unit) {
|
|
392
|
-
get_LOGGER().h1y('Sending empty body for ' + this.
|
|
393
|
-
this.
|
|
392
|
+
get_LOGGER().h1y('Sending empty body for ' + this.p55_1.u44_1.toString());
|
|
393
|
+
this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
394
394
|
return EmptyContent_getInstance();
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
var tmp_6 = this;
|
|
398
|
-
var this_1 = this.
|
|
398
|
+
var this_1 = this.o55_1.e54_1;
|
|
399
399
|
var destination = ArrayList_init_$Create$();
|
|
400
400
|
var tmp0_iterator_1 = this_1.k();
|
|
401
401
|
while (tmp0_iterator_1.l()) {
|
|
402
402
|
var element_1 = tmp0_iterator_1.m();
|
|
403
|
-
if (element_1.
|
|
403
|
+
if (element_1.o53_1.q53(this.r55_1)) {
|
|
404
404
|
destination.e(element_1);
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -415,42 +415,42 @@
|
|
|
415
415
|
var tmp1_elvis_lhs = tmp_7;
|
|
416
416
|
var tmp_8;
|
|
417
417
|
if (tmp1_elvis_lhs == null) {
|
|
418
|
-
this.
|
|
419
|
-
get_LOGGER().h1y('None of the registered converters match request Content-Type=' + this.
|
|
418
|
+
this.o55_1;
|
|
419
|
+
get_LOGGER().h1y('None of the registered converters match request Content-Type=' + this.r55_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.'));
|
|
420
420
|
return null;
|
|
421
421
|
} else {
|
|
422
422
|
tmp_8 = tmp1_elvis_lhs;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
tmp_6.
|
|
426
|
-
if (this.
|
|
427
|
-
get_LOGGER().h1y('Request has unknown body type. Skipping ContentNegotiation for ' + this.
|
|
425
|
+
tmp_6.s55_1 = tmp_8;
|
|
426
|
+
if (this.p55_1.x4t() == null) {
|
|
427
|
+
get_LOGGER().h1y('Request has unknown body type. Skipping ContentNegotiation for ' + this.p55_1.u44_1.toString() + '.');
|
|
428
428
|
return null;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
this.
|
|
431
|
+
this.p55_1.w44_1.b1v(HttpHeaders_getInstance().y20_1);
|
|
432
432
|
this.l9_1 = 1;
|
|
433
433
|
continue $sm;
|
|
434
434
|
case 1:
|
|
435
435
|
var tmp_9 = this;
|
|
436
|
-
tmp_9.
|
|
437
|
-
this.
|
|
436
|
+
tmp_9.u55_1 = this.s55_1;
|
|
437
|
+
this.v55_1 = this.u55_1.k();
|
|
438
438
|
this.l9_1 = 2;
|
|
439
439
|
continue $sm;
|
|
440
440
|
case 2:
|
|
441
|
-
if (!this.
|
|
441
|
+
if (!this.v55_1.l()) {
|
|
442
442
|
this.l9_1 = 5;
|
|
443
443
|
continue $sm;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
this.
|
|
446
|
+
this.w55_1 = this.v55_1.m();
|
|
447
447
|
var tmp_10 = this;
|
|
448
|
-
tmp_10.
|
|
448
|
+
tmp_10.x55_1 = this.w55_1;
|
|
449
449
|
this.l9_1 = 3;
|
|
450
|
-
var tmp0_elvis_lhs_0 = charset(this.
|
|
450
|
+
var tmp0_elvis_lhs_0 = charset(this.r55_1);
|
|
451
451
|
var tmp_11 = tmp0_elvis_lhs_0 == null ? Charsets_getInstance().a1p_1 : tmp0_elvis_lhs_0;
|
|
452
|
-
var tmp_12 = ensureNotNull(this.
|
|
453
|
-
var this_2 = this.
|
|
452
|
+
var tmp_12 = ensureNotNull(this.p55_1.x4t());
|
|
453
|
+
var this_2 = this.q55_1;
|
|
454
454
|
var tmp_13;
|
|
455
455
|
if (!equals(this_2, NullBody_instance)) {
|
|
456
456
|
tmp_13 = this_2;
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
tmp_13 = null;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
suspendResult = this.
|
|
461
|
+
suspendResult = this.x55_1.m53_1.y2a(this.r55_1, tmp_11, tmp_12, tmp_13, this);
|
|
462
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
463
463
|
return suspendResult;
|
|
464
464
|
}
|
|
@@ -467,12 +467,12 @@
|
|
|
467
467
|
case 3:
|
|
468
468
|
var result = suspendResult;
|
|
469
469
|
if (!(result == null)) {
|
|
470
|
-
get_LOGGER().h1y('Converted request body using ' + toString(this.
|
|
470
|
+
get_LOGGER().h1y('Converted request body using ' + toString(this.x55_1.m53_1) + ' for ' + this.p55_1.u44_1.toString());
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
var result_0 = result;
|
|
474
474
|
if (!(result_0 == null)) {
|
|
475
|
-
this.
|
|
475
|
+
this.t55_1 = result_0;
|
|
476
476
|
this.l9_1 = 6;
|
|
477
477
|
continue $sm;
|
|
478
478
|
} else {
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
this.l9_1 = 2;
|
|
485
485
|
continue $sm;
|
|
486
486
|
case 5:
|
|
487
|
-
this.
|
|
487
|
+
this.t55_1 = null;
|
|
488
488
|
if (false) {
|
|
489
489
|
this.l9_1 = 1;
|
|
490
490
|
continue $sm;
|
|
@@ -493,11 +493,11 @@
|
|
|
493
493
|
this.l9_1 = 6;
|
|
494
494
|
continue $sm;
|
|
495
495
|
case 6:
|
|
496
|
-
var tmp2_elvis_lhs = this.
|
|
496
|
+
var tmp2_elvis_lhs = this.t55_1;
|
|
497
497
|
var tmp_14;
|
|
498
498
|
if (tmp2_elvis_lhs == null) {
|
|
499
|
-
var tmp_15 = "Can't convert " + toString(this.
|
|
500
|
-
throw new ContentConverterException(tmp_15 + joinToString(this.
|
|
499
|
+
var tmp_15 = "Can't convert " + toString(this.q55_1) + ' with contentType ' + this.r55_1.toString() + ' using converters ';
|
|
500
|
+
throw new ContentConverterException(tmp_15 + joinToString(this.s55_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$convertRequest$lambda));
|
|
501
501
|
} else {
|
|
502
502
|
tmp_14 = tmp2_elvis_lhs;
|
|
503
503
|
}
|
|
@@ -520,12 +520,12 @@
|
|
|
520
520
|
};
|
|
521
521
|
function $convertResponseCOROUTINE$1(_this__u8e3s4, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
522
522
|
CoroutineImpl.call(this, resultContinuation);
|
|
523
|
-
this.
|
|
524
|
-
this.
|
|
525
|
-
this.
|
|
526
|
-
this.
|
|
527
|
-
this.
|
|
528
|
-
this.
|
|
523
|
+
this.g56_1 = _this__u8e3s4;
|
|
524
|
+
this.h56_1 = requestUrl;
|
|
525
|
+
this.i56_1 = info;
|
|
526
|
+
this.j56_1 = body;
|
|
527
|
+
this.k56_1 = responseContentType;
|
|
528
|
+
this.l56_1 = charset;
|
|
529
529
|
}
|
|
530
530
|
protoOf($convertResponseCOROUTINE$1).t9 = function () {
|
|
531
531
|
var suspendResult = this.n9_1;
|
|
@@ -535,24 +535,24 @@
|
|
|
535
535
|
switch (tmp) {
|
|
536
536
|
case 0:
|
|
537
537
|
this.m9_1 = 2;
|
|
538
|
-
var tmp_0 = this.
|
|
538
|
+
var tmp_0 = this.j56_1;
|
|
539
539
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
540
|
-
get_LOGGER().h1y('Response body is already transformed. Skipping ContentNegotiation for ' + this.
|
|
540
|
+
get_LOGGER().h1y('Response body is already transformed. Skipping ContentNegotiation for ' + this.h56_1.toString() + '.');
|
|
541
541
|
return null;
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
if (this.
|
|
545
|
-
get_LOGGER().h1y('Response body type ' + toString(this.
|
|
544
|
+
if (this.g56_1.f54_1.h1(this.i56_1.d1y_1)) {
|
|
545
|
+
get_LOGGER().h1y('Response body type ' + toString(this.i56_1.d1y_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
|
|
546
546
|
return null;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
var tmp_1 = this;
|
|
550
|
-
var this_0 = this.
|
|
550
|
+
var this_0 = this.g56_1.e54_1;
|
|
551
551
|
var destination = ArrayList_init_$Create$();
|
|
552
552
|
var tmp0_iterator = this_0.k();
|
|
553
553
|
while (tmp0_iterator.l()) {
|
|
554
554
|
var element = tmp0_iterator.m();
|
|
555
|
-
if (element.
|
|
555
|
+
if (element.o53_1.q53(this.k56_1)) {
|
|
556
556
|
destination.e(element);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
var tmp0_iterator_0 = destination.k();
|
|
562
562
|
while (tmp0_iterator_0.l()) {
|
|
563
563
|
var item = tmp0_iterator_0.m();
|
|
564
|
-
destination_0.e(item.
|
|
564
|
+
destination_0.e(item.m53_1);
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
var tmp_2;
|
|
@@ -574,16 +574,16 @@
|
|
|
574
574
|
var tmp0_elvis_lhs = tmp_2;
|
|
575
575
|
var tmp_3;
|
|
576
576
|
if (tmp0_elvis_lhs == null) {
|
|
577
|
-
this.
|
|
578
|
-
get_LOGGER().h1y('None of the registered converters match response with Content-Type=' + this.
|
|
577
|
+
this.g56_1;
|
|
578
|
+
get_LOGGER().h1y('None of the registered converters match response with Content-Type=' + this.k56_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.h56_1.toString() + '.'));
|
|
579
579
|
return null;
|
|
580
580
|
} else {
|
|
581
581
|
tmp_3 = tmp0_elvis_lhs;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
|
-
tmp_1.
|
|
584
|
+
tmp_1.m56_1 = tmp_3;
|
|
585
585
|
this.l9_1 = 1;
|
|
586
|
-
suspendResult = deserialize(this.
|
|
586
|
+
suspendResult = deserialize(this.m56_1, this.j56_1, this.i56_1, this.l56_1, this);
|
|
587
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
588
|
return suspendResult;
|
|
589
589
|
}
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
case 1:
|
|
593
593
|
var result = suspendResult;
|
|
594
594
|
if (!isInterface(result, ByteReadChannel)) {
|
|
595
|
-
get_LOGGER().h1y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.
|
|
595
|
+
get_LOGGER().h1y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.h56_1.toString() + '.');
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
return result;
|
|
@@ -612,16 +612,16 @@
|
|
|
612
612
|
};
|
|
613
613
|
function ContentNegotiation(registrations, ignoredTypes) {
|
|
614
614
|
Plugin_getInstance();
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
615
|
+
this.e54_1 = registrations;
|
|
616
|
+
this.f54_1 = ignoredTypes;
|
|
617
617
|
}
|
|
618
|
-
protoOf(ContentNegotiation).
|
|
618
|
+
protoOf(ContentNegotiation).g54 = function (request, body, $completion) {
|
|
619
619
|
var tmp = new $convertRequestCOROUTINE$0(this, request, body, $completion);
|
|
620
620
|
tmp.n9_1 = Unit_instance;
|
|
621
621
|
tmp.o9_1 = null;
|
|
622
622
|
return tmp.t9();
|
|
623
623
|
};
|
|
624
|
-
protoOf(ContentNegotiation).
|
|
624
|
+
protoOf(ContentNegotiation).z54 = function (requestUrl, info, body, responseContentType, charset, $completion) {
|
|
625
625
|
var tmp = new $convertResponseCOROUTINE$1(this, requestUrl, info, body, responseContentType, charset, $completion);
|
|
626
626
|
tmp.n9_1 = Unit_instance;
|
|
627
627
|
tmp.o9_1 = null;
|
|
@@ -641,7 +641,7 @@
|
|
|
641
641
|
}
|
|
642
642
|
function JsonContentTypeMatcher() {
|
|
643
643
|
}
|
|
644
|
-
protoOf(JsonContentTypeMatcher).
|
|
644
|
+
protoOf(JsonContentTypeMatcher).q53 = function (contentType) {
|
|
645
645
|
if (contentType.b20(Application_getInstance().u1y_1)) {
|
|
646
646
|
return true;
|
|
647
647
|
}
|