game_client_logic_deb 1.8.358 → 1.8.363
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 +95 -95
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +797 -794
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2091 -2030
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1860 -1900
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18086 -18114
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +28 -1
- package/Logic_Debertz-game_client.js +5346 -5632
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +7 -7
- package/kotlin-kotlin-stdlib.js +5728 -5677
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +83 -79
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3213 -3216
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +431 -415
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2654 -2650
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1803 -1791
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +262 -269
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2653 -2729
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +581 -606
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +13 -13
- package/ktor-ktor-http.js +903 -899
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1985 -1976
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +300 -316
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +133 -141
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +846 -856
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +61 -61
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/random-library-crypto-rand.js +16 -16
- package/random-library-crypto-rand.js.map +1 -1
- package/random-library-secure-random.js +10 -10
- package/random-library-secure-random.js.map +1 -1
- package/raspberry-cardgame-lib-core.js +379 -382
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +119 -119
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +1095 -1119
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +39 -39
- package/uuid.js.map +1 -1
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_utils) {
|
|
31
31
|
'use strict';
|
|
32
32
|
//region block: imports
|
|
33
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
34
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
35
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
37
|
-
var trim = kotlin_kotlin.$_$.
|
|
38
|
-
var toString = kotlin_kotlin.$_$.
|
|
39
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
40
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
43
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
33
|
+
var CoroutineImpl = kotlin_kotlin.$_$.na;
|
|
34
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y9;
|
|
35
|
+
var THROW_CCE = kotlin_kotlin.$_$.lh;
|
|
36
|
+
var isCharSequence = kotlin_kotlin.$_$.rc;
|
|
37
|
+
var trim = kotlin_kotlin.$_$.ng;
|
|
38
|
+
var toString = kotlin_kotlin.$_$.kd;
|
|
39
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
40
|
+
var protoOf = kotlin_kotlin.$_$.hd;
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.jc;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.wb;
|
|
43
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
44
44
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
45
45
|
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
|
|
46
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
48
|
-
var VOID = kotlin_kotlin.$_$.
|
|
49
|
-
var Enum = kotlin_kotlin.$_$.
|
|
46
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.l2;
|
|
47
|
+
var initMetadataForClass = kotlin_kotlin.$_$.hc;
|
|
48
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
49
|
+
var Enum = kotlin_kotlin.$_$.ah;
|
|
50
50
|
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.n;
|
|
51
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
52
|
-
var println = kotlin_kotlin.$_$.
|
|
53
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ic;
|
|
52
|
+
var println = kotlin_kotlin.$_$.qa;
|
|
53
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
54
54
|
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
55
55
|
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
56
56
|
var Url = kotlin_io_ktor_ktor_http.$_$.x;
|
|
57
57
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
58
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
58
|
+
var toString_0 = kotlin_kotlin.$_$.pi;
|
|
59
59
|
var charset = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
60
60
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
61
61
|
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
@@ -68,24 +68,24 @@
|
|
|
68
68
|
var ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
69
69
|
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.m;
|
|
70
70
|
var HttpClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
71
|
-
var Collection = kotlin_kotlin.$_$.
|
|
72
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
71
|
+
var Collection = kotlin_kotlin.$_$.h5;
|
|
72
|
+
var isInterface = kotlin_kotlin.$_$.vc;
|
|
73
73
|
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.h;
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
74
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.lc;
|
|
75
75
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
76
76
|
var readText = kotlin_io_ktor_ktor_io.$_$.z;
|
|
77
77
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.q;
|
|
78
78
|
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.p;
|
|
79
79
|
var contentType = kotlin_io_ktor_ktor_http.$_$.e1;
|
|
80
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
81
|
-
var toList = kotlin_kotlin.$_$.
|
|
82
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
83
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
84
|
-
var equals = kotlin_kotlin.$_$.
|
|
85
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
86
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
87
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
88
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
80
|
+
var emptyList = kotlin_kotlin.$_$.d7;
|
|
81
|
+
var toList = kotlin_kotlin.$_$.j9;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.b9;
|
|
83
|
+
var joinToString = kotlin_kotlin.$_$.v7;
|
|
84
|
+
var equals = kotlin_kotlin.$_$.ac;
|
|
85
|
+
var FunctionAdapter = kotlin_kotlin.$_$.nb;
|
|
86
|
+
var Comparator = kotlin_kotlin.$_$.xg;
|
|
87
|
+
var hashCode = kotlin_kotlin.$_$.gc;
|
|
88
|
+
var compareValues = kotlin_kotlin.$_$.w9;
|
|
89
89
|
var writer = kotlin_io_ktor_ktor_io.$_$.l1;
|
|
90
90
|
var WriterScope = kotlin_io_ktor_ktor_io.$_$.i1;
|
|
91
91
|
var close = kotlin_io_ktor_ktor_io.$_$.k1;
|
|
@@ -118,177 +118,177 @@
|
|
|
118
118
|
//endregion
|
|
119
119
|
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
120
120
|
CoroutineImpl.call(this, resultContinuation);
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
121
|
+
this.b4n_1 = _this__u8e3s4;
|
|
122
|
+
this.c4n_1 = message;
|
|
123
123
|
}
|
|
124
|
-
protoOf($logResponseExceptionCOROUTINE$).
|
|
125
|
-
var suspendResult = this.
|
|
124
|
+
protoOf($logResponseExceptionCOROUTINE$).z8 = function () {
|
|
125
|
+
var suspendResult = this.t8_1;
|
|
126
126
|
$sm: do
|
|
127
127
|
try {
|
|
128
|
-
var tmp = this.
|
|
128
|
+
var tmp = this.r8_1;
|
|
129
129
|
switch (tmp) {
|
|
130
130
|
case 0:
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
133
|
-
suspendResult = this.
|
|
131
|
+
this.s8_1 = 2;
|
|
132
|
+
this.r8_1 = 1;
|
|
133
|
+
suspendResult = this.b4n_1.g4n_1.j1q(this);
|
|
134
134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
135
135
|
return suspendResult;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
continue $sm;
|
|
139
139
|
case 1:
|
|
140
|
-
var this_0 = this.
|
|
141
|
-
this.
|
|
140
|
+
var this_0 = this.c4n_1;
|
|
141
|
+
this.b4n_1.d4n_1.k4n(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
142
142
|
return Unit_instance;
|
|
143
143
|
case 2:
|
|
144
|
-
throw this.
|
|
144
|
+
throw this.u8_1;
|
|
145
145
|
}
|
|
146
146
|
} catch ($p) {
|
|
147
147
|
var e = $p;
|
|
148
|
-
if (this.
|
|
148
|
+
if (this.s8_1 === 2) {
|
|
149
149
|
throw e;
|
|
150
150
|
} else {
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
151
|
+
this.r8_1 = this.s8_1;
|
|
152
|
+
this.u8_1 = e;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
while (true);
|
|
156
156
|
};
|
|
157
157
|
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
158
158
|
CoroutineImpl.call(this, resultContinuation);
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
159
|
+
this.t4n_1 = _this__u8e3s4;
|
|
160
|
+
this.u4n_1 = message;
|
|
161
161
|
}
|
|
162
|
-
protoOf($logResponseBodyCOROUTINE$).
|
|
163
|
-
var suspendResult = this.
|
|
162
|
+
protoOf($logResponseBodyCOROUTINE$).z8 = function () {
|
|
163
|
+
var suspendResult = this.t8_1;
|
|
164
164
|
$sm: do
|
|
165
165
|
try {
|
|
166
|
-
var tmp = this.
|
|
166
|
+
var tmp = this.r8_1;
|
|
167
167
|
switch (tmp) {
|
|
168
168
|
case 0:
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
suspendResult = this.
|
|
169
|
+
this.s8_1 = 2;
|
|
170
|
+
this.r8_1 = 1;
|
|
171
|
+
suspendResult = this.t4n_1.h4n_1.j1q(this);
|
|
172
172
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
173
173
|
return suspendResult;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
continue $sm;
|
|
177
177
|
case 1:
|
|
178
|
-
this.
|
|
178
|
+
this.t4n_1.f4n_1.c8(this.u4n_1);
|
|
179
179
|
return Unit_instance;
|
|
180
180
|
case 2:
|
|
181
|
-
throw this.
|
|
181
|
+
throw this.u8_1;
|
|
182
182
|
}
|
|
183
183
|
} catch ($p) {
|
|
184
184
|
var e = $p;
|
|
185
|
-
if (this.
|
|
185
|
+
if (this.s8_1 === 2) {
|
|
186
186
|
throw e;
|
|
187
187
|
} else {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
188
|
+
this.r8_1 = this.s8_1;
|
|
189
|
+
this.u8_1 = e;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
while (true);
|
|
193
193
|
};
|
|
194
194
|
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
195
195
|
CoroutineImpl.call(this, resultContinuation);
|
|
196
|
-
this.
|
|
196
|
+
this.d4o_1 = _this__u8e3s4;
|
|
197
197
|
}
|
|
198
|
-
protoOf($closeResponseLogCOROUTINE$).
|
|
199
|
-
var suspendResult = this.
|
|
198
|
+
protoOf($closeResponseLogCOROUTINE$).z8 = function () {
|
|
199
|
+
var suspendResult = this.t8_1;
|
|
200
200
|
$sm: do
|
|
201
201
|
try {
|
|
202
|
-
var tmp = this.
|
|
202
|
+
var tmp = this.r8_1;
|
|
203
203
|
switch (tmp) {
|
|
204
204
|
case 0:
|
|
205
|
-
this.
|
|
206
|
-
if (!this.
|
|
205
|
+
this.s8_1 = 2;
|
|
206
|
+
if (!this.d4o_1.j4n_1.atomicfu$compareAndSet(false, true))
|
|
207
207
|
return Unit_instance;
|
|
208
|
-
this.
|
|
209
|
-
suspendResult = this.
|
|
208
|
+
this.r8_1 = 1;
|
|
209
|
+
suspendResult = this.d4o_1.g4n_1.j1q(this);
|
|
210
210
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
211
211
|
return suspendResult;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
continue $sm;
|
|
215
215
|
case 1:
|
|
216
|
-
var message = toString(trim(this.
|
|
216
|
+
var message = toString(trim(this.d4o_1.f4n_1));
|
|
217
217
|
if (charSequenceLength(message) > 0) {
|
|
218
|
-
this.
|
|
218
|
+
this.d4o_1.d4n_1.k4n(message);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
return Unit_instance;
|
|
222
222
|
case 2:
|
|
223
|
-
throw this.
|
|
223
|
+
throw this.u8_1;
|
|
224
224
|
}
|
|
225
225
|
} catch ($p) {
|
|
226
226
|
var e = $p;
|
|
227
|
-
if (this.
|
|
227
|
+
if (this.s8_1 === 2) {
|
|
228
228
|
throw e;
|
|
229
229
|
} else {
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
230
|
+
this.r8_1 = this.s8_1;
|
|
231
|
+
this.u8_1 = e;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
while (true);
|
|
235
235
|
};
|
|
236
236
|
function HttpClientCallLogger(logger) {
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
237
|
+
this.d4n_1 = logger;
|
|
238
|
+
this.e4n_1 = StringBuilder_init_$Create$();
|
|
239
|
+
this.f4n_1 = StringBuilder_init_$Create$();
|
|
240
|
+
this.g4n_1 = Job();
|
|
241
|
+
this.h4n_1 = Job();
|
|
242
|
+
this.i4n_1 = atomic$boolean$1(false);
|
|
243
|
+
this.j4n_1 = atomic$boolean$1(false);
|
|
244
244
|
}
|
|
245
|
-
protoOf(HttpClientCallLogger).
|
|
246
|
-
var tmp0 = this.
|
|
245
|
+
protoOf(HttpClientCallLogger).e4o = function (message) {
|
|
246
|
+
var tmp0 = this.e4n_1;
|
|
247
247
|
// Inline function 'kotlin.text.trim' call
|
|
248
248
|
// Inline function 'kotlin.text.appendLine' call
|
|
249
249
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
250
250
|
// Inline function 'kotlin.text.appendLine' call
|
|
251
|
-
tmp0.
|
|
251
|
+
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
252
252
|
};
|
|
253
|
-
protoOf(HttpClientCallLogger).
|
|
254
|
-
var tmp0 = this.
|
|
253
|
+
protoOf(HttpClientCallLogger).f4o = function (message) {
|
|
254
|
+
var tmp0 = this.f4n_1;
|
|
255
255
|
// Inline function 'kotlin.text.trim' call
|
|
256
256
|
// Inline function 'kotlin.text.appendLine' call
|
|
257
257
|
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
258
258
|
// Inline function 'kotlin.text.appendLine' call
|
|
259
|
-
tmp0.
|
|
260
|
-
this.
|
|
259
|
+
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
260
|
+
this.h4n_1.k1x();
|
|
261
261
|
};
|
|
262
|
-
protoOf(HttpClientCallLogger).
|
|
262
|
+
protoOf(HttpClientCallLogger).g4o = function (message, $completion) {
|
|
263
263
|
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
264
|
-
tmp.
|
|
265
|
-
tmp.
|
|
266
|
-
return tmp.
|
|
264
|
+
tmp.t8_1 = Unit_instance;
|
|
265
|
+
tmp.u8_1 = null;
|
|
266
|
+
return tmp.z8();
|
|
267
267
|
};
|
|
268
|
-
protoOf(HttpClientCallLogger).
|
|
268
|
+
protoOf(HttpClientCallLogger).h4o = function (message, $completion) {
|
|
269
269
|
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
270
|
-
tmp.
|
|
271
|
-
tmp.
|
|
272
|
-
return tmp.
|
|
270
|
+
tmp.t8_1 = Unit_instance;
|
|
271
|
+
tmp.u8_1 = null;
|
|
272
|
+
return tmp.z8();
|
|
273
273
|
};
|
|
274
|
-
protoOf(HttpClientCallLogger).
|
|
275
|
-
if (!this.
|
|
274
|
+
protoOf(HttpClientCallLogger).i4o = function () {
|
|
275
|
+
if (!this.i4n_1.atomicfu$compareAndSet(false, true))
|
|
276
276
|
return Unit_instance;
|
|
277
277
|
try {
|
|
278
|
-
var message = toString(trim(this.
|
|
278
|
+
var message = toString(trim(this.e4n_1));
|
|
279
279
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
280
280
|
if (charSequenceLength(message) > 0) {
|
|
281
|
-
this.
|
|
281
|
+
this.d4n_1.k4n(message);
|
|
282
282
|
}
|
|
283
283
|
}finally {
|
|
284
|
-
this.
|
|
284
|
+
this.g4n_1.k1x();
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
|
-
protoOf(HttpClientCallLogger).
|
|
287
|
+
protoOf(HttpClientCallLogger).j4o = function ($completion) {
|
|
288
288
|
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
289
|
-
tmp.
|
|
290
|
-
tmp.
|
|
291
|
-
return tmp.
|
|
289
|
+
tmp.t8_1 = Unit_instance;
|
|
290
|
+
tmp.u8_1 = null;
|
|
291
|
+
return tmp.z8();
|
|
292
292
|
};
|
|
293
293
|
var LogLevel_ALL_instance;
|
|
294
294
|
var LogLevel_HEADERS_instance;
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
}
|
|
309
309
|
function LogLevel(name, ordinal, info, headers, body) {
|
|
310
310
|
Enum.call(this, name, ordinal);
|
|
311
|
-
this.
|
|
312
|
-
this.
|
|
313
|
-
this.
|
|
311
|
+
this.m4o_1 = info;
|
|
312
|
+
this.n4o_1 = headers;
|
|
313
|
+
this.o4o_1 = body;
|
|
314
314
|
}
|
|
315
315
|
function LogLevel_ALL_getInstance() {
|
|
316
316
|
LogLevel_initEntries();
|
|
@@ -326,27 +326,27 @@
|
|
|
326
326
|
}
|
|
327
327
|
function LoggedContent(originalContent, channel) {
|
|
328
328
|
ReadChannelContent.call(this);
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
329
|
+
this.q4o_1 = originalContent;
|
|
330
|
+
this.r4o_1 = channel;
|
|
331
|
+
this.s4o_1 = this.q4o_1.k3n();
|
|
332
|
+
this.t4o_1 = this.q4o_1.m3n();
|
|
333
|
+
this.u4o_1 = this.q4o_1.l3n();
|
|
334
|
+
this.v4o_1 = this.q4o_1.g3i();
|
|
335
335
|
}
|
|
336
|
-
protoOf(LoggedContent).
|
|
337
|
-
return this.
|
|
336
|
+
protoOf(LoggedContent).k3n = function () {
|
|
337
|
+
return this.s4o_1;
|
|
338
338
|
};
|
|
339
|
-
protoOf(LoggedContent).
|
|
340
|
-
return this.
|
|
339
|
+
protoOf(LoggedContent).m3n = function () {
|
|
340
|
+
return this.t4o_1;
|
|
341
341
|
};
|
|
342
|
-
protoOf(LoggedContent).
|
|
343
|
-
return this.
|
|
342
|
+
protoOf(LoggedContent).l3n = function () {
|
|
343
|
+
return this.u4o_1;
|
|
344
344
|
};
|
|
345
|
-
protoOf(LoggedContent).
|
|
346
|
-
return this.
|
|
345
|
+
protoOf(LoggedContent).g3i = function () {
|
|
346
|
+
return this.v4o_1;
|
|
347
347
|
};
|
|
348
|
-
protoOf(LoggedContent).
|
|
349
|
-
return this.
|
|
348
|
+
protoOf(LoggedContent).q3n = function () {
|
|
349
|
+
return this.r4o_1;
|
|
350
350
|
};
|
|
351
351
|
function Companion() {
|
|
352
352
|
}
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
function SimpleLogger() {
|
|
361
361
|
}
|
|
362
|
-
protoOf(SimpleLogger).
|
|
362
|
+
protoOf(SimpleLogger).k4n = function (message) {
|
|
363
363
|
println('HttpClient: ' + message);
|
|
364
364
|
};
|
|
365
365
|
function get_ClientCallLogger() {
|
|
@@ -375,60 +375,60 @@
|
|
|
375
375
|
function Config() {
|
|
376
376
|
var tmp = this;
|
|
377
377
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
378
|
-
tmp.
|
|
378
|
+
tmp.w4o_1 = ArrayList_init_$Create$();
|
|
379
379
|
var tmp_0 = this;
|
|
380
380
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
381
|
-
tmp_0.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
381
|
+
tmp_0.x4o_1 = ArrayList_init_$Create$();
|
|
382
|
+
this.y4o_1 = null;
|
|
383
|
+
this.z4o_1 = LogLevel_HEADERS_getInstance();
|
|
384
384
|
}
|
|
385
|
-
protoOf(Config).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(Config).a4p = function (value) {
|
|
386
|
+
this.y4o_1 = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(Config).
|
|
389
|
-
var tmp0_elvis_lhs = this.
|
|
388
|
+
protoOf(Config).b4p = function () {
|
|
389
|
+
var tmp0_elvis_lhs = this.y4o_1;
|
|
390
390
|
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
391
391
|
};
|
|
392
392
|
function setupRequestLogging($this, client) {
|
|
393
|
-
var tmp = Phases_getInstance().
|
|
394
|
-
client.
|
|
393
|
+
var tmp = Phases_getInstance().x3r_1;
|
|
394
|
+
client.i3p_1.m3b(tmp, Logging$setupRequestLogging$slambda_0($this, null));
|
|
395
395
|
}
|
|
396
396
|
function logRequest($this, request, $completion) {
|
|
397
|
-
var tmp = request.
|
|
397
|
+
var tmp = request.i3r_1;
|
|
398
398
|
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
399
|
-
var logger = new HttpClientCallLogger($this.
|
|
400
|
-
request.
|
|
399
|
+
var logger = new HttpClientCallLogger($this.c4p_1);
|
|
400
|
+
request.k3r_1.k34(get_ClientCallLogger(), logger);
|
|
401
401
|
// Inline function 'kotlin.text.buildString' call
|
|
402
402
|
// Inline function 'kotlin.apply' call
|
|
403
403
|
var this_0 = StringBuilder_init_$Create$();
|
|
404
|
-
if ($this.
|
|
404
|
+
if ($this.d4p_1.m4o_1) {
|
|
405
405
|
// Inline function 'kotlin.text.appendLine' call
|
|
406
|
-
var value = 'REQUEST: ' + Url(request.
|
|
406
|
+
var value = 'REQUEST: ' + Url(request.f3r_1).toString();
|
|
407
407
|
// Inline function 'kotlin.text.appendLine' call
|
|
408
|
-
this_0.
|
|
408
|
+
this_0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
409
409
|
// Inline function 'kotlin.text.appendLine' call
|
|
410
|
-
var value_0 = 'METHOD: ' + request.
|
|
410
|
+
var value_0 = 'METHOD: ' + request.g3r_1.toString();
|
|
411
411
|
// Inline function 'kotlin.text.appendLine' call
|
|
412
|
-
this_0.
|
|
412
|
+
this_0.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
413
413
|
}
|
|
414
|
-
if ($this.
|
|
414
|
+
if ($this.d4p_1.n4o_1) {
|
|
415
415
|
// Inline function 'kotlin.text.appendLine' call
|
|
416
416
|
var value_1 = 'COMMON HEADERS';
|
|
417
417
|
// Inline function 'kotlin.text.appendLine' call
|
|
418
|
-
this_0.
|
|
419
|
-
logHeaders(this_0, request.
|
|
418
|
+
this_0.c8(value_1).d8(_Char___init__impl__6a9atx(10));
|
|
419
|
+
logHeaders(this_0, request.h3r_1.d38(), $this.f4p_1);
|
|
420
420
|
// Inline function 'kotlin.text.appendLine' call
|
|
421
421
|
var value_2 = 'CONTENT HEADERS';
|
|
422
422
|
// Inline function 'kotlin.text.appendLine' call
|
|
423
|
-
this_0.
|
|
424
|
-
var tmp0 = $this.
|
|
423
|
+
this_0.c8(value_2).d8(_Char___init__impl__6a9atx(10));
|
|
424
|
+
var tmp0 = $this.f4p_1;
|
|
425
425
|
var tmp$ret$9;
|
|
426
426
|
$l$block: {
|
|
427
427
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
428
|
-
var _iterator__ex2g4s = tmp0.
|
|
429
|
-
while (_iterator__ex2g4s.
|
|
430
|
-
var element = _iterator__ex2g4s.
|
|
431
|
-
if (element.
|
|
428
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
429
|
+
while (_iterator__ex2g4s.m()) {
|
|
430
|
+
var element = _iterator__ex2g4s.n();
|
|
431
|
+
if (element.h4p_1(HttpHeaders_getInstance().s3e_1)) {
|
|
432
432
|
tmp$ret$9 = element;
|
|
433
433
|
break $l$block;
|
|
434
434
|
}
|
|
@@ -436,15 +436,15 @@
|
|
|
436
436
|
tmp$ret$9 = null;
|
|
437
437
|
}
|
|
438
438
|
var tmp0_safe_receiver = tmp$ret$9;
|
|
439
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
440
|
-
var tmp0_0 = $this.
|
|
439
|
+
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g4p_1;
|
|
440
|
+
var tmp0_0 = $this.f4p_1;
|
|
441
441
|
var tmp$ret$11;
|
|
442
442
|
$l$block_0: {
|
|
443
443
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
444
|
-
var _iterator__ex2g4s_0 = tmp0_0.
|
|
445
|
-
while (_iterator__ex2g4s_0.
|
|
446
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
447
|
-
if (element_0.
|
|
444
|
+
var _iterator__ex2g4s_0 = tmp0_0.l();
|
|
445
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
446
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
447
|
+
if (element_0.h4p_1(HttpHeaders_getInstance().v3e_1)) {
|
|
448
448
|
tmp$ret$11 = element_0;
|
|
449
449
|
break $l$block_0;
|
|
450
450
|
}
|
|
@@ -452,39 +452,39 @@
|
|
|
452
452
|
tmp$ret$11 = null;
|
|
453
453
|
}
|
|
454
454
|
var tmp1_safe_receiver = tmp$ret$11;
|
|
455
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
456
|
-
var tmp2_safe_receiver = content.
|
|
455
|
+
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g4p_1;
|
|
456
|
+
var tmp2_safe_receiver = content.m3n();
|
|
457
457
|
if (tmp2_safe_receiver == null)
|
|
458
458
|
null;
|
|
459
459
|
else {
|
|
460
460
|
// Inline function 'kotlin.let' call
|
|
461
|
-
var tmp_0 = HttpHeaders_getInstance().
|
|
461
|
+
var tmp_0 = HttpHeaders_getInstance().s3e_1;
|
|
462
462
|
logHeader(this_0, tmp_0, contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
463
463
|
}
|
|
464
|
-
var tmp3_safe_receiver = content.
|
|
464
|
+
var tmp3_safe_receiver = content.k3n();
|
|
465
465
|
if (tmp3_safe_receiver == null)
|
|
466
466
|
null;
|
|
467
467
|
else {
|
|
468
468
|
// Inline function 'kotlin.let' call
|
|
469
|
-
var tmp_1 = HttpHeaders_getInstance().
|
|
469
|
+
var tmp_1 = HttpHeaders_getInstance().v3e_1;
|
|
470
470
|
logHeader(this_0, tmp_1, contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
471
471
|
}
|
|
472
|
-
logHeaders(this_0, content.
|
|
472
|
+
logHeaders(this_0, content.g3i().d38(), $this.f4p_1);
|
|
473
473
|
}
|
|
474
474
|
var message = this_0.toString();
|
|
475
475
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
476
476
|
if (charSequenceLength(message) > 0) {
|
|
477
|
-
logger.
|
|
477
|
+
logger.e4o(message);
|
|
478
478
|
}
|
|
479
479
|
var tmp_2;
|
|
480
480
|
// Inline function 'kotlin.text.isEmpty' call
|
|
481
481
|
if (charSequenceLength(message) === 0) {
|
|
482
482
|
tmp_2 = true;
|
|
483
483
|
} else {
|
|
484
|
-
tmp_2 = !$this.
|
|
484
|
+
tmp_2 = !$this.d4p_1.o4o_1;
|
|
485
485
|
}
|
|
486
486
|
if (tmp_2) {
|
|
487
|
-
logger.
|
|
487
|
+
logger.i4o();
|
|
488
488
|
return null;
|
|
489
489
|
}
|
|
490
490
|
return logRequestBody($this, content, logger, $completion);
|
|
@@ -492,62 +492,62 @@
|
|
|
492
492
|
function logRequestBody($this, content, logger, $completion) {
|
|
493
493
|
var requestLog = StringBuilder_init_$Create$();
|
|
494
494
|
// Inline function 'kotlin.text.appendLine' call
|
|
495
|
-
var value = 'BODY Content-Type: ' + toString_0(content.
|
|
495
|
+
var value = 'BODY Content-Type: ' + toString_0(content.k3n());
|
|
496
496
|
// Inline function 'kotlin.text.appendLine' call
|
|
497
|
-
requestLog.
|
|
498
|
-
var tmp0_safe_receiver = content.
|
|
497
|
+
requestLog.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
498
|
+
var tmp0_safe_receiver = content.k3n();
|
|
499
499
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
500
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().
|
|
500
|
+
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().p30_1 : tmp1_elvis_lhs;
|
|
501
501
|
var channel = ByteChannel();
|
|
502
502
|
var tmp = GlobalScope_instance;
|
|
503
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
503
|
+
var tmp_0 = Dispatchers_getInstance().a21_1;
|
|
504
504
|
var tmp_1 = launch(tmp, tmp_0, VOID, Logging$logRequestBody$slambda_0(channel, charset_0, requestLog, null));
|
|
505
|
-
tmp_1.
|
|
505
|
+
tmp_1.f1q(Logging$logRequestBody$lambda(logger, requestLog));
|
|
506
506
|
return observe(content, channel, $completion);
|
|
507
507
|
}
|
|
508
508
|
function logRequestException($this, context, cause) {
|
|
509
|
-
if ($this.
|
|
510
|
-
$this.
|
|
509
|
+
if ($this.d4p_1.m4o_1) {
|
|
510
|
+
$this.c4p_1.k4n('REQUEST ' + Url(context.f3r_1).toString() + ' failed with exception: ' + cause.toString());
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
function setupResponseLogging($this, client) {
|
|
514
|
-
var tmp = Phases_getInstance_0().
|
|
515
|
-
client.
|
|
516
|
-
var tmp_0 = Phases_getInstance_1().
|
|
517
|
-
client.
|
|
518
|
-
if (!$this.
|
|
514
|
+
var tmp = Phases_getInstance_0().y3x_1;
|
|
515
|
+
client.j3p_1.m3b(tmp, Logging$setupResponseLogging$slambda_0($this, null));
|
|
516
|
+
var tmp_0 = Phases_getInstance_1().d3s_1;
|
|
517
|
+
client.h3p_1.m3b(tmp_0, Logging$setupResponseLogging$slambda_2($this, null));
|
|
518
|
+
if (!$this.d4p_1.o4o_1)
|
|
519
519
|
return Unit_instance;
|
|
520
520
|
var observer = Logging$setupResponseLogging$slambda_4($this, null);
|
|
521
|
-
Plugin_getInstance().
|
|
521
|
+
Plugin_getInstance().n4d(new ResponseObserver(observer), client);
|
|
522
522
|
}
|
|
523
523
|
function logResponseException($this, log, request, cause) {
|
|
524
|
-
if (!$this.
|
|
524
|
+
if (!$this.d4p_1.m4o_1)
|
|
525
525
|
return Unit_instance;
|
|
526
|
-
log.
|
|
526
|
+
log.c8('RESPONSE ' + request.o3t().toString() + ' failed with exception: ' + cause.toString());
|
|
527
527
|
}
|
|
528
528
|
function Companion_0() {
|
|
529
529
|
Companion_instance_0 = this;
|
|
530
|
-
this.
|
|
530
|
+
this.i4p_1 = new AttributeKey('ClientLogging');
|
|
531
531
|
}
|
|
532
|
-
protoOf(Companion_0).
|
|
533
|
-
return this.
|
|
532
|
+
protoOf(Companion_0).v = function () {
|
|
533
|
+
return this.i4p_1;
|
|
534
534
|
};
|
|
535
|
-
protoOf(Companion_0).
|
|
535
|
+
protoOf(Companion_0).j4p = function (block) {
|
|
536
536
|
// Inline function 'kotlin.apply' call
|
|
537
537
|
var this_0 = new Config();
|
|
538
538
|
block(this_0);
|
|
539
539
|
var config = this_0;
|
|
540
|
-
return new Logging(config.
|
|
540
|
+
return new Logging(config.b4p(), config.z4o_1, config.w4o_1, config.x4o_1);
|
|
541
541
|
};
|
|
542
|
-
protoOf(Companion_0).
|
|
543
|
-
return this.
|
|
542
|
+
protoOf(Companion_0).k3s = function (block) {
|
|
543
|
+
return this.j4p(block);
|
|
544
544
|
};
|
|
545
|
-
protoOf(Companion_0).
|
|
545
|
+
protoOf(Companion_0).k4p = function (plugin, scope) {
|
|
546
546
|
setupRequestLogging(plugin, scope);
|
|
547
547
|
setupResponseLogging(plugin, scope);
|
|
548
548
|
};
|
|
549
|
-
protoOf(Companion_0).
|
|
550
|
-
return this.
|
|
549
|
+
protoOf(Companion_0).l3s = function (plugin, scope) {
|
|
550
|
+
return this.k4p(plugin instanceof Logging ? plugin : THROW_CCE(), scope);
|
|
551
551
|
};
|
|
552
552
|
var Companion_instance_0;
|
|
553
553
|
function Companion_getInstance_0() {
|
|
@@ -557,16 +557,16 @@
|
|
|
557
557
|
}
|
|
558
558
|
function shouldBeLogged($this, request) {
|
|
559
559
|
var tmp;
|
|
560
|
-
if ($this.
|
|
560
|
+
if ($this.e4p_1.r()) {
|
|
561
561
|
tmp = true;
|
|
562
562
|
} else {
|
|
563
|
-
var tmp0 = $this.
|
|
563
|
+
var tmp0 = $this.e4p_1;
|
|
564
564
|
var tmp$ret$0;
|
|
565
565
|
$l$block_0: {
|
|
566
566
|
// Inline function 'kotlin.collections.any' call
|
|
567
567
|
var tmp_0;
|
|
568
568
|
if (isInterface(tmp0, Collection)) {
|
|
569
|
-
tmp_0 = tmp0.
|
|
569
|
+
tmp_0 = tmp0.r();
|
|
570
570
|
} else {
|
|
571
571
|
tmp_0 = false;
|
|
572
572
|
}
|
|
@@ -574,9 +574,9 @@
|
|
|
574
574
|
tmp$ret$0 = false;
|
|
575
575
|
break $l$block_0;
|
|
576
576
|
}
|
|
577
|
-
var _iterator__ex2g4s = tmp0.
|
|
578
|
-
while (_iterator__ex2g4s.
|
|
579
|
-
var element = _iterator__ex2g4s.
|
|
577
|
+
var _iterator__ex2g4s = tmp0.l();
|
|
578
|
+
while (_iterator__ex2g4s.m()) {
|
|
579
|
+
var element = _iterator__ex2g4s.n();
|
|
580
580
|
if (element(request)) {
|
|
581
581
|
tmp$ret$0 = true;
|
|
582
582
|
break $l$block_0;
|
|
@@ -589,159 +589,152 @@
|
|
|
589
589
|
return tmp;
|
|
590
590
|
}
|
|
591
591
|
function Logging$setupRequestLogging$slambda(this$0, resultContinuation) {
|
|
592
|
-
this.
|
|
592
|
+
this.t4p_1 = this$0;
|
|
593
593
|
CoroutineImpl.call(this, resultContinuation);
|
|
594
594
|
}
|
|
595
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
596
|
-
var tmp = this.
|
|
597
|
-
tmp.
|
|
598
|
-
tmp.
|
|
599
|
-
return tmp.
|
|
595
|
+
protoOf(Logging$setupRequestLogging$slambda).z3p = function ($this$intercept, it, $completion) {
|
|
596
|
+
var tmp = this.a3q($this$intercept, it, $completion);
|
|
597
|
+
tmp.t8_1 = Unit_instance;
|
|
598
|
+
tmp.u8_1 = null;
|
|
599
|
+
return tmp.z8();
|
|
600
600
|
};
|
|
601
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
601
|
+
protoOf(Logging$setupRequestLogging$slambda).i9 = function (p1, p2, $completion) {
|
|
602
602
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
603
|
-
return this.
|
|
603
|
+
return this.z3p(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
604
604
|
};
|
|
605
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
606
|
-
var suspendResult = this.
|
|
605
|
+
protoOf(Logging$setupRequestLogging$slambda).z8 = function () {
|
|
606
|
+
var suspendResult = this.t8_1;
|
|
607
607
|
$sm: do
|
|
608
608
|
try {
|
|
609
|
-
var tmp = this.
|
|
609
|
+
var tmp = this.r8_1;
|
|
610
610
|
switch (tmp) {
|
|
611
611
|
case 0:
|
|
612
|
-
this.
|
|
613
|
-
if (!shouldBeLogged(this.
|
|
614
|
-
this.
|
|
612
|
+
this.s8_1 = 8;
|
|
613
|
+
if (!shouldBeLogged(this.t4p_1, this.u4p_1.i3b_1)) {
|
|
614
|
+
this.u4p_1.i3b_1.k3r_1.k34(get_DisableLogging(), Unit_instance);
|
|
615
615
|
return Unit_instance;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
suspendResult = logRequest(this.
|
|
618
|
+
this.s8_1 = 2;
|
|
619
|
+
this.r8_1 = 1;
|
|
620
|
+
suspendResult = logRequest(this.t4p_1, this.u4p_1.i3b_1, this);
|
|
621
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
622
|
return suspendResult;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 1:
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
627
|
+
this.x4p_1 = suspendResult;
|
|
628
|
+
this.s8_1 = 8;
|
|
629
|
+
this.r8_1 = 3;
|
|
630
630
|
continue $sm;
|
|
631
631
|
case 2:
|
|
632
|
-
this.
|
|
633
|
-
var tmp_0 = this.
|
|
632
|
+
this.s8_1 = 8;
|
|
633
|
+
var tmp_0 = this.u8_1;
|
|
634
634
|
if (tmp_0 instanceof Error) {
|
|
635
|
-
|
|
635
|
+
var _ = this.u8_1;
|
|
636
636
|
var tmp_1 = this;
|
|
637
|
-
tmp_1.
|
|
638
|
-
this.
|
|
637
|
+
tmp_1.x4p_1 = null;
|
|
638
|
+
this.r8_1 = 3;
|
|
639
639
|
continue $sm;
|
|
640
640
|
} else {
|
|
641
|
-
throw this.
|
|
641
|
+
throw this.u8_1;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
case 3:
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
645
|
+
this.s8_1 = 8;
|
|
646
|
+
this.w4p_1 = this.x4p_1;
|
|
647
|
+
this.r8_1 = 4;
|
|
648
648
|
continue $sm;
|
|
649
649
|
case 4:
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
var tmp0_elvis_lhs = this.
|
|
654
|
-
suspendResult = this.
|
|
650
|
+
this.s8_1 = 7;
|
|
651
|
+
this.s8_1 = 6;
|
|
652
|
+
this.r8_1 = 5;
|
|
653
|
+
var tmp0_elvis_lhs = this.w4p_1;
|
|
654
|
+
suspendResult = this.u4p_1.m3a(tmp0_elvis_lhs == null ? this.u4p_1.l3a() : tmp0_elvis_lhs, this);
|
|
655
655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
656
656
|
return suspendResult;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
continue $sm;
|
|
660
660
|
case 5:
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
this.m9_1 = 8;
|
|
664
|
-
this.l9_1 = 9;
|
|
661
|
+
this.s8_1 = 8;
|
|
662
|
+
this.r8_1 = 9;
|
|
665
663
|
continue $sm;
|
|
666
664
|
case 6:
|
|
667
|
-
this.
|
|
668
|
-
var
|
|
669
|
-
if (
|
|
670
|
-
var cause = this.
|
|
671
|
-
|
|
672
|
-
logRequestException(this.c40_1, this.d40_1.f2f_1, cause);
|
|
665
|
+
this.s8_1 = 7;
|
|
666
|
+
var tmp_2 = this.u8_1;
|
|
667
|
+
if (tmp_2 instanceof Error) {
|
|
668
|
+
var cause = this.u8_1;
|
|
669
|
+
logRequestException(this.t4p_1, this.u4p_1.i3b_1, cause);
|
|
673
670
|
throw cause;
|
|
674
671
|
} else {
|
|
675
|
-
throw this.
|
|
672
|
+
throw this.u8_1;
|
|
676
673
|
}
|
|
677
674
|
|
|
678
675
|
case 7:
|
|
679
|
-
this.
|
|
680
|
-
var t = this.
|
|
676
|
+
this.s8_1 = 8;
|
|
677
|
+
var t = this.u8_1;
|
|
681
678
|
throw t;
|
|
682
679
|
case 8:
|
|
683
|
-
throw this.
|
|
680
|
+
throw this.u8_1;
|
|
684
681
|
case 9:
|
|
685
|
-
this.
|
|
682
|
+
this.s8_1 = 8;
|
|
686
683
|
return Unit_instance;
|
|
687
684
|
}
|
|
688
685
|
} catch ($p) {
|
|
689
686
|
var e = $p;
|
|
690
|
-
if (this.
|
|
687
|
+
if (this.s8_1 === 8) {
|
|
691
688
|
throw e;
|
|
692
689
|
} else {
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
690
|
+
this.r8_1 = this.s8_1;
|
|
691
|
+
this.u8_1 = e;
|
|
695
692
|
}
|
|
696
693
|
}
|
|
697
694
|
while (true);
|
|
698
695
|
};
|
|
699
|
-
protoOf(Logging$setupRequestLogging$slambda).
|
|
700
|
-
var i = new Logging$setupRequestLogging$slambda(this.
|
|
701
|
-
i.
|
|
702
|
-
i.
|
|
696
|
+
protoOf(Logging$setupRequestLogging$slambda).a3q = function ($this$intercept, it, completion) {
|
|
697
|
+
var i = new Logging$setupRequestLogging$slambda(this.t4p_1, completion);
|
|
698
|
+
i.u4p_1 = $this$intercept;
|
|
699
|
+
i.v4p_1 = it;
|
|
703
700
|
return i;
|
|
704
701
|
};
|
|
705
702
|
function Logging$setupRequestLogging$slambda_0(this$0, resultContinuation) {
|
|
706
703
|
var i = new Logging$setupRequestLogging$slambda(this$0, resultContinuation);
|
|
707
704
|
var l = function ($this$intercept, it, $completion) {
|
|
708
|
-
return i.
|
|
705
|
+
return i.z3p($this$intercept, it, $completion);
|
|
709
706
|
};
|
|
710
707
|
l.$arity = 2;
|
|
711
708
|
return l;
|
|
712
709
|
}
|
|
713
710
|
function Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation) {
|
|
714
|
-
this.
|
|
715
|
-
this.
|
|
716
|
-
this.
|
|
711
|
+
this.g4q_1 = $channel;
|
|
712
|
+
this.h4q_1 = $charset;
|
|
713
|
+
this.i4q_1 = $requestLog;
|
|
717
714
|
CoroutineImpl.call(this, resultContinuation);
|
|
718
715
|
}
|
|
719
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
720
|
-
var tmp = this.
|
|
721
|
-
tmp.
|
|
722
|
-
tmp.
|
|
723
|
-
return tmp.
|
|
716
|
+
protoOf(Logging$logRequestBody$slambda).h2d = function ($this$launch, $completion) {
|
|
717
|
+
var tmp = this.i2d($this$launch, $completion);
|
|
718
|
+
tmp.t8_1 = Unit_instance;
|
|
719
|
+
tmp.u8_1 = null;
|
|
720
|
+
return tmp.z8();
|
|
724
721
|
};
|
|
725
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
726
|
-
return this.
|
|
722
|
+
protoOf(Logging$logRequestBody$slambda).h9 = function (p1, $completion) {
|
|
723
|
+
return this.h2d((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
727
724
|
};
|
|
728
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
729
|
-
var suspendResult = this.
|
|
725
|
+
protoOf(Logging$logRequestBody$slambda).z8 = function () {
|
|
726
|
+
var suspendResult = this.t8_1;
|
|
730
727
|
$sm: do
|
|
731
728
|
try {
|
|
732
|
-
var tmp = this.
|
|
729
|
+
var tmp = this.r8_1;
|
|
733
730
|
switch (tmp) {
|
|
734
731
|
case 0:
|
|
735
|
-
this.
|
|
736
|
-
var
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
this.y40_1 = this.w40_1;
|
|
742
|
-
this.m9_1 = 2;
|
|
743
|
-
this.l9_1 = 1;
|
|
744
|
-
suspendResult = this.x40_1.o1z(VOID, this);
|
|
732
|
+
this.s8_1 = 3;
|
|
733
|
+
var tmp0 = this.g4q_1;
|
|
734
|
+
this.l4q_1 = this.h4q_1;
|
|
735
|
+
this.s8_1 = 2;
|
|
736
|
+
this.r8_1 = 1;
|
|
737
|
+
suspendResult = tmp0.d2w(VOID, this);
|
|
745
738
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
746
739
|
return suspendResult;
|
|
747
740
|
}
|
|
@@ -749,384 +742,378 @@
|
|
|
749
742
|
continue $sm;
|
|
750
743
|
case 1:
|
|
751
744
|
var ARGUMENT = suspendResult;
|
|
752
|
-
this.
|
|
753
|
-
this.
|
|
754
|
-
this.
|
|
745
|
+
this.k4q_1 = readText(ARGUMENT, this.l4q_1);
|
|
746
|
+
this.s8_1 = 3;
|
|
747
|
+
this.r8_1 = 4;
|
|
755
748
|
continue $sm;
|
|
756
749
|
case 2:
|
|
757
|
-
this.
|
|
758
|
-
var
|
|
759
|
-
if (
|
|
760
|
-
var cause = this.
|
|
761
|
-
var
|
|
762
|
-
|
|
763
|
-
this.
|
|
750
|
+
this.s8_1 = 3;
|
|
751
|
+
var tmp_0 = this.u8_1;
|
|
752
|
+
if (tmp_0 instanceof Error) {
|
|
753
|
+
var cause = this.u8_1;
|
|
754
|
+
var tmp_1 = this;
|
|
755
|
+
tmp_1.k4q_1 = null;
|
|
756
|
+
this.r8_1 = 4;
|
|
764
757
|
continue $sm;
|
|
765
758
|
} else {
|
|
766
|
-
throw this.
|
|
759
|
+
throw this.u8_1;
|
|
767
760
|
}
|
|
768
761
|
|
|
769
762
|
case 3:
|
|
770
|
-
throw this.
|
|
763
|
+
throw this.u8_1;
|
|
771
764
|
case 4:
|
|
772
|
-
this.
|
|
773
|
-
var tmp0_elvis_lhs = this.
|
|
765
|
+
this.s8_1 = 3;
|
|
766
|
+
var tmp0_elvis_lhs = this.k4q_1;
|
|
774
767
|
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
775
|
-
var
|
|
768
|
+
var tmp0_0 = this.i4q_1;
|
|
776
769
|
var value = 'BODY START';
|
|
777
|
-
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
770
|
+
tmp0_0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
771
|
+
this.i4q_1.c8(text).d8(_Char___init__impl__6a9atx(10));
|
|
772
|
+
this.i4q_1.c8('BODY END');
|
|
780
773
|
return Unit_instance;
|
|
781
774
|
}
|
|
782
775
|
} catch ($p) {
|
|
783
776
|
var e = $p;
|
|
784
|
-
if (this.
|
|
777
|
+
if (this.s8_1 === 3) {
|
|
785
778
|
throw e;
|
|
786
779
|
} else {
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
780
|
+
this.r8_1 = this.s8_1;
|
|
781
|
+
this.u8_1 = e;
|
|
789
782
|
}
|
|
790
783
|
}
|
|
791
784
|
while (true);
|
|
792
785
|
};
|
|
793
|
-
protoOf(Logging$logRequestBody$slambda).
|
|
794
|
-
var i = new Logging$logRequestBody$slambda(this.
|
|
795
|
-
i.
|
|
786
|
+
protoOf(Logging$logRequestBody$slambda).i2d = function ($this$launch, completion) {
|
|
787
|
+
var i = new Logging$logRequestBody$slambda(this.g4q_1, this.h4q_1, this.i4q_1, completion);
|
|
788
|
+
i.j4q_1 = $this$launch;
|
|
796
789
|
return i;
|
|
797
790
|
};
|
|
798
791
|
function Logging$logRequestBody$slambda_0($channel, $charset, $requestLog, resultContinuation) {
|
|
799
792
|
var i = new Logging$logRequestBody$slambda($channel, $charset, $requestLog, resultContinuation);
|
|
800
793
|
var l = function ($this$launch, $completion) {
|
|
801
|
-
return i.
|
|
794
|
+
return i.h2d($this$launch, $completion);
|
|
802
795
|
};
|
|
803
796
|
l.$arity = 1;
|
|
804
797
|
return l;
|
|
805
798
|
}
|
|
806
799
|
function Logging$logRequestBody$lambda($logger, $requestLog) {
|
|
807
800
|
return function (it) {
|
|
808
|
-
$logger.
|
|
809
|
-
$logger.
|
|
801
|
+
$logger.e4o($requestLog.toString());
|
|
802
|
+
$logger.i4o();
|
|
810
803
|
return Unit_instance;
|
|
811
804
|
};
|
|
812
805
|
}
|
|
813
806
|
function Logging$setupResponseLogging$slambda(this$0, resultContinuation) {
|
|
814
|
-
this.
|
|
807
|
+
this.u4q_1 = this$0;
|
|
815
808
|
CoroutineImpl.call(this, resultContinuation);
|
|
816
809
|
}
|
|
817
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
818
|
-
var tmp = this.
|
|
819
|
-
tmp.
|
|
820
|
-
tmp.
|
|
821
|
-
return tmp.
|
|
810
|
+
protoOf(Logging$setupResponseLogging$slambda).x3y = function ($this$intercept, response, $completion) {
|
|
811
|
+
var tmp = this.y3y($this$intercept, response, $completion);
|
|
812
|
+
tmp.t8_1 = Unit_instance;
|
|
813
|
+
tmp.u8_1 = null;
|
|
814
|
+
return tmp.z8();
|
|
822
815
|
};
|
|
823
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
816
|
+
protoOf(Logging$setupResponseLogging$slambda).i9 = function (p1, p2, $completion) {
|
|
824
817
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
825
|
-
return this.
|
|
818
|
+
return this.x3y(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
826
819
|
};
|
|
827
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
828
|
-
var suspendResult = this.
|
|
820
|
+
protoOf(Logging$setupResponseLogging$slambda).z8 = function () {
|
|
821
|
+
var suspendResult = this.t8_1;
|
|
829
822
|
$sm: do
|
|
830
823
|
try {
|
|
831
|
-
var tmp = this.
|
|
824
|
+
var tmp = this.r8_1;
|
|
832
825
|
switch (tmp) {
|
|
833
826
|
case 0:
|
|
834
|
-
this.
|
|
835
|
-
if (this.
|
|
827
|
+
this.s8_1 = 10;
|
|
828
|
+
if (this.u4q_1.d4p_1.equals(LogLevel_NONE_getInstance()) || this.w4q_1.j3u().u3s().j34(get_DisableLogging()))
|
|
836
829
|
return Unit_instance;
|
|
837
|
-
this.
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
830
|
+
this.x4q_1 = this.w4q_1.j3u().u3s().h34(get_ClientCallLogger());
|
|
831
|
+
this.z4q_1 = StringBuilder_init_$Create$();
|
|
832
|
+
this.y4q_1 = false;
|
|
833
|
+
this.r8_1 = 1;
|
|
841
834
|
continue $sm;
|
|
842
835
|
case 1:
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
logResponseHeader(this.
|
|
846
|
-
this.
|
|
847
|
-
suspendResult = this.
|
|
836
|
+
this.s8_1 = 4;
|
|
837
|
+
this.s8_1 = 3;
|
|
838
|
+
logResponseHeader(this.z4q_1, this.w4q_1.j3u().g3q(), this.u4q_1.d4p_1, this.u4q_1.f4p_1);
|
|
839
|
+
this.r8_1 = 2;
|
|
840
|
+
suspendResult = this.v4q_1.m3a(this.v4q_1.l3a(), this);
|
|
848
841
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
849
842
|
return suspendResult;
|
|
850
843
|
}
|
|
851
844
|
|
|
852
845
|
continue $sm;
|
|
853
846
|
case 2:
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
this.m9_1 = 10;
|
|
857
|
-
this.l9_1 = 7;
|
|
847
|
+
this.s8_1 = 10;
|
|
848
|
+
this.r8_1 = 7;
|
|
858
849
|
continue $sm;
|
|
859
850
|
case 3:
|
|
860
|
-
this.
|
|
861
|
-
var
|
|
862
|
-
if (
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
throw this.p41_1;
|
|
851
|
+
this.s8_1 = 4;
|
|
852
|
+
var tmp_0 = this.u8_1;
|
|
853
|
+
if (tmp_0 instanceof Error) {
|
|
854
|
+
var cause = this.u8_1;
|
|
855
|
+
logResponseException(this.u4q_1, this.z4q_1, this.w4q_1.j3u().m3t(), cause);
|
|
856
|
+
this.y4q_1 = true;
|
|
857
|
+
throw cause;
|
|
868
858
|
} else {
|
|
869
|
-
throw this.
|
|
859
|
+
throw this.u8_1;
|
|
870
860
|
}
|
|
871
861
|
|
|
872
862
|
case 4:
|
|
873
|
-
this.
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
876
|
-
if (this.
|
|
877
|
-
this.
|
|
878
|
-
suspendResult = this.
|
|
863
|
+
this.s8_1 = 10;
|
|
864
|
+
this.a4r_1 = this.u8_1;
|
|
865
|
+
this.x4q_1.f4o(this.z4q_1.toString());
|
|
866
|
+
if (this.y4q_1 || !this.u4q_1.d4p_1.o4o_1) {
|
|
867
|
+
this.r8_1 = 5;
|
|
868
|
+
suspendResult = this.x4q_1.j4o(this);
|
|
879
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
870
|
return suspendResult;
|
|
881
871
|
}
|
|
882
872
|
continue $sm;
|
|
883
873
|
} else {
|
|
884
|
-
this.
|
|
874
|
+
this.r8_1 = 6;
|
|
885
875
|
continue $sm;
|
|
886
876
|
}
|
|
887
877
|
|
|
888
878
|
case 5:
|
|
889
|
-
this.
|
|
879
|
+
this.r8_1 = 6;
|
|
890
880
|
continue $sm;
|
|
891
881
|
case 6:
|
|
892
|
-
throw this.
|
|
882
|
+
throw this.a4r_1;
|
|
893
883
|
case 7:
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
if (this.
|
|
897
|
-
this.
|
|
898
|
-
suspendResult = this.
|
|
884
|
+
this.s8_1 = 10;
|
|
885
|
+
this.x4q_1.f4o(this.z4q_1.toString());
|
|
886
|
+
if (this.y4q_1 || !this.u4q_1.d4p_1.o4o_1) {
|
|
887
|
+
this.r8_1 = 8;
|
|
888
|
+
suspendResult = this.x4q_1.j4o(this);
|
|
899
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
900
890
|
return suspendResult;
|
|
901
891
|
}
|
|
902
892
|
continue $sm;
|
|
903
893
|
} else {
|
|
904
|
-
this.
|
|
894
|
+
this.r8_1 = 9;
|
|
905
895
|
continue $sm;
|
|
906
896
|
}
|
|
907
897
|
|
|
908
898
|
case 8:
|
|
909
|
-
this.
|
|
899
|
+
this.r8_1 = 9;
|
|
910
900
|
continue $sm;
|
|
911
901
|
case 9:
|
|
912
902
|
return Unit_instance;
|
|
913
903
|
case 10:
|
|
914
|
-
throw this.
|
|
904
|
+
throw this.u8_1;
|
|
915
905
|
}
|
|
916
906
|
} catch ($p) {
|
|
917
907
|
var e = $p;
|
|
918
|
-
if (this.
|
|
908
|
+
if (this.s8_1 === 10) {
|
|
919
909
|
throw e;
|
|
920
910
|
} else {
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
911
|
+
this.r8_1 = this.s8_1;
|
|
912
|
+
this.u8_1 = e;
|
|
923
913
|
}
|
|
924
914
|
}
|
|
925
915
|
while (true);
|
|
926
916
|
};
|
|
927
|
-
protoOf(Logging$setupResponseLogging$slambda).
|
|
928
|
-
var i = new Logging$setupResponseLogging$slambda(this.
|
|
929
|
-
i.
|
|
930
|
-
i.
|
|
917
|
+
protoOf(Logging$setupResponseLogging$slambda).y3y = function ($this$intercept, response, completion) {
|
|
918
|
+
var i = new Logging$setupResponseLogging$slambda(this.u4q_1, completion);
|
|
919
|
+
i.v4q_1 = $this$intercept;
|
|
920
|
+
i.w4q_1 = response;
|
|
931
921
|
return i;
|
|
932
922
|
};
|
|
933
923
|
function Logging$setupResponseLogging$slambda_0(this$0, resultContinuation) {
|
|
934
924
|
var i = new Logging$setupResponseLogging$slambda(this$0, resultContinuation);
|
|
935
925
|
var l = function ($this$intercept, response, $completion) {
|
|
936
|
-
return i.
|
|
926
|
+
return i.x3y($this$intercept, response, $completion);
|
|
937
927
|
};
|
|
938
928
|
l.$arity = 2;
|
|
939
929
|
return l;
|
|
940
930
|
}
|
|
941
931
|
function Logging$setupResponseLogging$slambda_1(this$0, resultContinuation) {
|
|
942
|
-
this.
|
|
932
|
+
this.j4r_1 = this$0;
|
|
943
933
|
CoroutineImpl.call(this, resultContinuation);
|
|
944
934
|
}
|
|
945
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
946
|
-
var tmp = this.
|
|
947
|
-
tmp.
|
|
948
|
-
tmp.
|
|
949
|
-
return tmp.
|
|
935
|
+
protoOf(Logging$setupResponseLogging$slambda_1).t3q = function ($this$intercept, it, $completion) {
|
|
936
|
+
var tmp = this.u3q($this$intercept, it, $completion);
|
|
937
|
+
tmp.t8_1 = Unit_instance;
|
|
938
|
+
tmp.u8_1 = null;
|
|
939
|
+
return tmp.z8();
|
|
950
940
|
};
|
|
951
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
941
|
+
protoOf(Logging$setupResponseLogging$slambda_1).i9 = function (p1, p2, $completion) {
|
|
952
942
|
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
953
|
-
return this.
|
|
943
|
+
return this.t3q(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
954
944
|
};
|
|
955
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
956
|
-
var suspendResult = this.
|
|
945
|
+
protoOf(Logging$setupResponseLogging$slambda_1).z8 = function () {
|
|
946
|
+
var suspendResult = this.t8_1;
|
|
957
947
|
$sm: do
|
|
958
948
|
try {
|
|
959
|
-
var tmp = this.
|
|
949
|
+
var tmp = this.r8_1;
|
|
960
950
|
switch (tmp) {
|
|
961
951
|
case 0:
|
|
962
|
-
this.
|
|
963
|
-
if (this.
|
|
952
|
+
this.s8_1 = 6;
|
|
953
|
+
if (this.j4r_1.d4p_1.equals(LogLevel_NONE_getInstance()) || this.k4r_1.i3b_1.u3s().j34(get_DisableLogging())) {
|
|
964
954
|
return Unit_instance;
|
|
965
955
|
}
|
|
966
956
|
|
|
967
|
-
this.
|
|
968
|
-
this.
|
|
969
|
-
suspendResult = this.
|
|
957
|
+
this.s8_1 = 3;
|
|
958
|
+
this.r8_1 = 1;
|
|
959
|
+
suspendResult = this.k4r_1.n3a(this);
|
|
970
960
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
971
961
|
return suspendResult;
|
|
972
962
|
}
|
|
973
963
|
|
|
974
964
|
continue $sm;
|
|
975
965
|
case 1:
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
966
|
+
this.s8_1 = 6;
|
|
967
|
+
this.r8_1 = 2;
|
|
978
968
|
continue $sm;
|
|
979
969
|
case 2:
|
|
980
|
-
this.
|
|
970
|
+
this.s8_1 = 6;
|
|
981
971
|
return Unit_instance;
|
|
982
972
|
case 3:
|
|
983
|
-
this.
|
|
984
|
-
var tmp_0 = this.
|
|
973
|
+
this.s8_1 = 6;
|
|
974
|
+
var tmp_0 = this.u8_1;
|
|
985
975
|
if (tmp_0 instanceof Error) {
|
|
986
|
-
this.
|
|
987
|
-
|
|
988
|
-
this.
|
|
989
|
-
logResponseException(this.
|
|
990
|
-
this.
|
|
991
|
-
suspendResult = this.
|
|
976
|
+
this.m4r_1 = this.u8_1;
|
|
977
|
+
var log = StringBuilder_init_$Create$();
|
|
978
|
+
this.n4r_1 = this.k4r_1.i3b_1.u3s().h34(get_ClientCallLogger());
|
|
979
|
+
logResponseException(this.j4r_1, log, this.k4r_1.i3b_1.m3t(), this.m4r_1);
|
|
980
|
+
this.r8_1 = 4;
|
|
981
|
+
suspendResult = this.n4r_1.g4o(log.toString(), this);
|
|
992
982
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
993
983
|
return suspendResult;
|
|
994
984
|
}
|
|
995
985
|
continue $sm;
|
|
996
986
|
} else {
|
|
997
|
-
throw this.
|
|
987
|
+
throw this.u8_1;
|
|
998
988
|
}
|
|
999
989
|
|
|
1000
990
|
case 4:
|
|
1001
|
-
this.
|
|
1002
|
-
suspendResult = this.
|
|
991
|
+
this.r8_1 = 5;
|
|
992
|
+
suspendResult = this.n4r_1.j4o(this);
|
|
1003
993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1004
994
|
return suspendResult;
|
|
1005
995
|
}
|
|
1006
996
|
|
|
1007
997
|
continue $sm;
|
|
1008
998
|
case 5:
|
|
1009
|
-
throw this.
|
|
999
|
+
throw this.m4r_1;
|
|
1010
1000
|
case 6:
|
|
1011
|
-
throw this.
|
|
1001
|
+
throw this.u8_1;
|
|
1012
1002
|
}
|
|
1013
1003
|
} catch ($p) {
|
|
1014
1004
|
var e = $p;
|
|
1015
|
-
if (this.
|
|
1005
|
+
if (this.s8_1 === 6) {
|
|
1016
1006
|
throw e;
|
|
1017
1007
|
} else {
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1008
|
+
this.r8_1 = this.s8_1;
|
|
1009
|
+
this.u8_1 = e;
|
|
1020
1010
|
}
|
|
1021
1011
|
}
|
|
1022
1012
|
while (true);
|
|
1023
1013
|
};
|
|
1024
|
-
protoOf(Logging$setupResponseLogging$slambda_1).
|
|
1025
|
-
var i = new Logging$setupResponseLogging$slambda_1(this.
|
|
1026
|
-
i.
|
|
1027
|
-
i.
|
|
1014
|
+
protoOf(Logging$setupResponseLogging$slambda_1).u3q = function ($this$intercept, it, completion) {
|
|
1015
|
+
var i = new Logging$setupResponseLogging$slambda_1(this.j4r_1, completion);
|
|
1016
|
+
i.k4r_1 = $this$intercept;
|
|
1017
|
+
i.l4r_1 = it;
|
|
1028
1018
|
return i;
|
|
1029
1019
|
};
|
|
1030
1020
|
function Logging$setupResponseLogging$slambda_2(this$0, resultContinuation) {
|
|
1031
1021
|
var i = new Logging$setupResponseLogging$slambda_1(this$0, resultContinuation);
|
|
1032
1022
|
var l = function ($this$intercept, it, $completion) {
|
|
1033
|
-
return i.
|
|
1023
|
+
return i.t3q($this$intercept, it, $completion);
|
|
1034
1024
|
};
|
|
1035
1025
|
l.$arity = 2;
|
|
1036
1026
|
return l;
|
|
1037
1027
|
}
|
|
1038
1028
|
function Logging$setupResponseLogging$slambda_3(this$0, resultContinuation) {
|
|
1039
|
-
this.
|
|
1029
|
+
this.w4r_1 = this$0;
|
|
1040
1030
|
CoroutineImpl.call(this, resultContinuation);
|
|
1041
1031
|
}
|
|
1042
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1043
|
-
var tmp = this.
|
|
1044
|
-
tmp.
|
|
1045
|
-
tmp.
|
|
1046
|
-
return tmp.
|
|
1032
|
+
protoOf(Logging$setupResponseLogging$slambda_3).l40 = function (it, $completion) {
|
|
1033
|
+
var tmp = this.m40(it, $completion);
|
|
1034
|
+
tmp.t8_1 = Unit_instance;
|
|
1035
|
+
tmp.u8_1 = null;
|
|
1036
|
+
return tmp.z8();
|
|
1047
1037
|
};
|
|
1048
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1049
|
-
return this.
|
|
1038
|
+
protoOf(Logging$setupResponseLogging$slambda_3).h9 = function (p1, $completion) {
|
|
1039
|
+
return this.l40(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
1050
1040
|
};
|
|
1051
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1052
|
-
var suspendResult = this.
|
|
1041
|
+
protoOf(Logging$setupResponseLogging$slambda_3).z8 = function () {
|
|
1042
|
+
var suspendResult = this.t8_1;
|
|
1053
1043
|
$sm: do
|
|
1054
1044
|
try {
|
|
1055
|
-
var tmp = this.
|
|
1045
|
+
var tmp = this.r8_1;
|
|
1056
1046
|
switch (tmp) {
|
|
1057
1047
|
case 0:
|
|
1058
|
-
this.
|
|
1059
|
-
if (this.
|
|
1048
|
+
this.s8_1 = 10;
|
|
1049
|
+
if (this.w4r_1.d4p_1.equals(LogLevel_NONE_getInstance()) || this.x4r_1.j3u().u3s().j34(get_DisableLogging())) {
|
|
1060
1050
|
return Unit_instance;
|
|
1061
1051
|
}
|
|
1062
1052
|
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1053
|
+
this.y4r_1 = this.x4r_1.j3u().u3s().h34(get_ClientCallLogger());
|
|
1054
|
+
this.z4r_1 = StringBuilder_init_$Create$();
|
|
1055
|
+
this.r8_1 = 1;
|
|
1066
1056
|
continue $sm;
|
|
1067
1057
|
case 1:
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1071
|
-
suspendResult = logResponseBody(this.
|
|
1058
|
+
this.s8_1 = 4;
|
|
1059
|
+
this.s8_1 = 3;
|
|
1060
|
+
this.r8_1 = 2;
|
|
1061
|
+
suspendResult = logResponseBody(this.z4r_1, contentType(this.x4r_1), this.x4r_1.p1b(), this);
|
|
1072
1062
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1073
1063
|
return suspendResult;
|
|
1074
1064
|
}
|
|
1075
1065
|
|
|
1076
1066
|
continue $sm;
|
|
1077
1067
|
case 2:
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.l9_1 = 7;
|
|
1068
|
+
this.s8_1 = 10;
|
|
1069
|
+
this.r8_1 = 7;
|
|
1081
1070
|
continue $sm;
|
|
1082
1071
|
case 3:
|
|
1083
|
-
this.
|
|
1084
|
-
var tmp_0 = this.
|
|
1072
|
+
this.s8_1 = 4;
|
|
1073
|
+
var tmp_0 = this.u8_1;
|
|
1085
1074
|
if (tmp_0 instanceof Error) {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
this.m9_1 = 10;
|
|
1090
|
-
this.l9_1 = 7;
|
|
1075
|
+
var _ = this.u8_1;
|
|
1076
|
+
this.s8_1 = 10;
|
|
1077
|
+
this.r8_1 = 7;
|
|
1091
1078
|
continue $sm;
|
|
1092
1079
|
} else {
|
|
1093
|
-
throw this.
|
|
1080
|
+
throw this.u8_1;
|
|
1094
1081
|
}
|
|
1095
1082
|
|
|
1096
1083
|
case 4:
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1099
|
-
this.
|
|
1100
|
-
var this_0 = this.
|
|
1101
|
-
suspendResult = this.
|
|
1084
|
+
this.s8_1 = 10;
|
|
1085
|
+
this.a4s_1 = this.u8_1;
|
|
1086
|
+
this.r8_1 = 5;
|
|
1087
|
+
var this_0 = this.z4r_1.toString();
|
|
1088
|
+
suspendResult = this.y4r_1.h4o(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
1102
1089
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1103
1090
|
return suspendResult;
|
|
1104
1091
|
}
|
|
1105
1092
|
|
|
1106
1093
|
continue $sm;
|
|
1107
1094
|
case 5:
|
|
1108
|
-
this.
|
|
1109
|
-
suspendResult = this.
|
|
1095
|
+
this.r8_1 = 6;
|
|
1096
|
+
suspendResult = this.y4r_1.j4o(this);
|
|
1110
1097
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1111
1098
|
return suspendResult;
|
|
1112
1099
|
}
|
|
1113
1100
|
|
|
1114
1101
|
continue $sm;
|
|
1115
1102
|
case 6:
|
|
1116
|
-
throw this.
|
|
1103
|
+
throw this.a4s_1;
|
|
1117
1104
|
case 7:
|
|
1118
|
-
this.
|
|
1119
|
-
this.
|
|
1120
|
-
var this_1 = this.
|
|
1121
|
-
suspendResult = this.
|
|
1105
|
+
this.s8_1 = 10;
|
|
1106
|
+
this.r8_1 = 8;
|
|
1107
|
+
var this_1 = this.z4r_1.toString();
|
|
1108
|
+
suspendResult = this.y4r_1.h4o(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
1122
1109
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1123
1110
|
return suspendResult;
|
|
1124
1111
|
}
|
|
1125
1112
|
|
|
1126
1113
|
continue $sm;
|
|
1127
1114
|
case 8:
|
|
1128
|
-
this.
|
|
1129
|
-
suspendResult = this.
|
|
1115
|
+
this.r8_1 = 9;
|
|
1116
|
+
suspendResult = this.y4r_1.j4o(this);
|
|
1130
1117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1131
1118
|
return suspendResult;
|
|
1132
1119
|
}
|
|
@@ -1135,28 +1122,28 @@
|
|
|
1135
1122
|
case 9:
|
|
1136
1123
|
return Unit_instance;
|
|
1137
1124
|
case 10:
|
|
1138
|
-
throw this.
|
|
1125
|
+
throw this.u8_1;
|
|
1139
1126
|
}
|
|
1140
1127
|
} catch ($p) {
|
|
1141
1128
|
var e = $p;
|
|
1142
|
-
if (this.
|
|
1129
|
+
if (this.s8_1 === 10) {
|
|
1143
1130
|
throw e;
|
|
1144
1131
|
} else {
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1132
|
+
this.r8_1 = this.s8_1;
|
|
1133
|
+
this.u8_1 = e;
|
|
1147
1134
|
}
|
|
1148
1135
|
}
|
|
1149
1136
|
while (true);
|
|
1150
1137
|
};
|
|
1151
|
-
protoOf(Logging$setupResponseLogging$slambda_3).
|
|
1152
|
-
var i = new Logging$setupResponseLogging$slambda_3(this.
|
|
1153
|
-
i.
|
|
1138
|
+
protoOf(Logging$setupResponseLogging$slambda_3).m40 = function (it, completion) {
|
|
1139
|
+
var i = new Logging$setupResponseLogging$slambda_3(this.w4r_1, completion);
|
|
1140
|
+
i.x4r_1 = it;
|
|
1154
1141
|
return i;
|
|
1155
1142
|
};
|
|
1156
1143
|
function Logging$setupResponseLogging$slambda_4(this$0, resultContinuation) {
|
|
1157
1144
|
var i = new Logging$setupResponseLogging$slambda_3(this$0, resultContinuation);
|
|
1158
1145
|
var l = function (it, $completion) {
|
|
1159
|
-
return i.
|
|
1146
|
+
return i.l40(it, $completion);
|
|
1160
1147
|
};
|
|
1161
1148
|
l.$arity = 1;
|
|
1162
1149
|
return l;
|
|
@@ -1164,10 +1151,10 @@
|
|
|
1164
1151
|
function Logging(logger, level, filters, sanitizedHeaders) {
|
|
1165
1152
|
Companion_getInstance_0();
|
|
1166
1153
|
filters = filters === VOID ? emptyList() : filters;
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1154
|
+
this.c4p_1 = logger;
|
|
1155
|
+
this.d4p_1 = level;
|
|
1156
|
+
this.e4p_1 = filters;
|
|
1157
|
+
this.f4p_1 = sanitizedHeaders;
|
|
1171
1158
|
}
|
|
1172
1159
|
var properties_initialized_Logging_kt_588vu7;
|
|
1173
1160
|
function _init_properties_Logging_kt__66pui5() {
|
|
@@ -1185,20 +1172,20 @@
|
|
|
1185
1172
|
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
1186
1173
|
var sortedHeaders = sortedWith(this_0, tmp$ret$0);
|
|
1187
1174
|
// Inline function 'kotlin.collections.forEach' call
|
|
1188
|
-
var _iterator__ex2g4s = sortedHeaders.
|
|
1189
|
-
while (_iterator__ex2g4s.
|
|
1190
|
-
var element = _iterator__ex2g4s.
|
|
1175
|
+
var _iterator__ex2g4s = sortedHeaders.l();
|
|
1176
|
+
while (_iterator__ex2g4s.m()) {
|
|
1177
|
+
var element = _iterator__ex2g4s.n();
|
|
1191
1178
|
// Inline function 'kotlin.collections.component1' call
|
|
1192
|
-
var key = element.
|
|
1179
|
+
var key = element.v();
|
|
1193
1180
|
// Inline function 'kotlin.collections.component2' call
|
|
1194
|
-
var values = element.
|
|
1181
|
+
var values = element.w();
|
|
1195
1182
|
var tmp$ret$5;
|
|
1196
1183
|
$l$block: {
|
|
1197
1184
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1198
|
-
var _iterator__ex2g4s_0 = sanitizedHeaders.
|
|
1199
|
-
while (_iterator__ex2g4s_0.
|
|
1200
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1201
|
-
if (element_0.
|
|
1185
|
+
var _iterator__ex2g4s_0 = sanitizedHeaders.l();
|
|
1186
|
+
while (_iterator__ex2g4s_0.m()) {
|
|
1187
|
+
var element_0 = _iterator__ex2g4s_0.n();
|
|
1188
|
+
if (element_0.h4p_1(key)) {
|
|
1202
1189
|
tmp$ret$5 = element_0;
|
|
1203
1190
|
break $l$block;
|
|
1204
1191
|
}
|
|
@@ -1206,7 +1193,7 @@
|
|
|
1206
1193
|
tmp$ret$5 = null;
|
|
1207
1194
|
}
|
|
1208
1195
|
var tmp0_safe_receiver = tmp$ret$5;
|
|
1209
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1196
|
+
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g4p_1;
|
|
1210
1197
|
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
1211
1198
|
}
|
|
1212
1199
|
}
|
|
@@ -1214,56 +1201,56 @@
|
|
|
1214
1201
|
// Inline function 'kotlin.text.appendLine' call
|
|
1215
1202
|
var value_0 = '-> ' + key + ': ' + value;
|
|
1216
1203
|
// Inline function 'kotlin.text.appendLine' call
|
|
1217
|
-
_this__u8e3s4.
|
|
1204
|
+
_this__u8e3s4.k(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
1218
1205
|
}
|
|
1219
1206
|
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
1220
1207
|
// Inline function 'kotlin.with' call
|
|
1221
|
-
if (level.
|
|
1208
|
+
if (level.m4o_1) {
|
|
1222
1209
|
// Inline function 'kotlin.text.appendLine' call
|
|
1223
|
-
var value = 'RESPONSE: ' + response.
|
|
1210
|
+
var value = 'RESPONSE: ' + response.l3n().toString();
|
|
1224
1211
|
// Inline function 'kotlin.text.appendLine' call
|
|
1225
|
-
log.
|
|
1212
|
+
log.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
1226
1213
|
// Inline function 'kotlin.text.appendLine' call
|
|
1227
|
-
var value_0 = 'METHOD: ' + response.
|
|
1214
|
+
var value_0 = 'METHOD: ' + response.j3u().m3t().k3u().toString();
|
|
1228
1215
|
// Inline function 'kotlin.text.appendLine' call
|
|
1229
|
-
log.
|
|
1216
|
+
log.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
1230
1217
|
// Inline function 'kotlin.text.appendLine' call
|
|
1231
|
-
var value_1 = 'FROM: ' + response.
|
|
1218
|
+
var value_1 = 'FROM: ' + response.j3u().m3t().o3t().toString();
|
|
1232
1219
|
// Inline function 'kotlin.text.appendLine' call
|
|
1233
|
-
log.
|
|
1220
|
+
log.c8(value_1).d8(_Char___init__impl__6a9atx(10));
|
|
1234
1221
|
}
|
|
1235
|
-
if (level.
|
|
1222
|
+
if (level.n4o_1) {
|
|
1236
1223
|
// Inline function 'kotlin.text.appendLine' call
|
|
1237
1224
|
var value_2 = 'COMMON HEADERS';
|
|
1238
1225
|
// Inline function 'kotlin.text.appendLine' call
|
|
1239
|
-
log.
|
|
1240
|
-
logHeaders(log, response.
|
|
1226
|
+
log.c8(value_2).d8(_Char___init__impl__6a9atx(10));
|
|
1227
|
+
logHeaders(log, response.g3i().d38(), sanitizedHeaders);
|
|
1241
1228
|
}
|
|
1242
1229
|
}
|
|
1243
1230
|
function logResponseBody(log, contentType, content, $completion) {
|
|
1244
1231
|
var tmp = new $logResponseBodyCOROUTINE$_0(log, contentType, content, $completion);
|
|
1245
|
-
tmp.
|
|
1246
|
-
tmp.
|
|
1247
|
-
return tmp.
|
|
1232
|
+
tmp.t8_1 = Unit_instance;
|
|
1233
|
+
tmp.u8_1 = null;
|
|
1234
|
+
return tmp.z8();
|
|
1248
1235
|
}
|
|
1249
1236
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1250
|
-
this.
|
|
1237
|
+
this.p4s_1 = function_0;
|
|
1251
1238
|
}
|
|
1252
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1253
|
-
return this.
|
|
1239
|
+
protoOf(sam$kotlin_Comparator$0).ec = function (a, b) {
|
|
1240
|
+
return this.p4s_1(a, b);
|
|
1254
1241
|
};
|
|
1255
1242
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1256
|
-
return this.
|
|
1243
|
+
return this.ec(a, b);
|
|
1257
1244
|
};
|
|
1258
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1259
|
-
return this.
|
|
1245
|
+
protoOf(sam$kotlin_Comparator$0).a3 = function () {
|
|
1246
|
+
return this.p4s_1;
|
|
1260
1247
|
};
|
|
1261
1248
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1262
1249
|
var tmp;
|
|
1263
1250
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1264
1251
|
var tmp_0;
|
|
1265
1252
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1266
|
-
tmp_0 = equals(this.
|
|
1253
|
+
tmp_0 = equals(this.a3(), other.a3());
|
|
1267
1254
|
} else {
|
|
1268
1255
|
tmp_0 = false;
|
|
1269
1256
|
}
|
|
@@ -1274,51 +1261,42 @@
|
|
|
1274
1261
|
return tmp;
|
|
1275
1262
|
};
|
|
1276
1263
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1277
|
-
return hashCode(this.
|
|
1264
|
+
return hashCode(this.a3());
|
|
1278
1265
|
};
|
|
1279
1266
|
function logHeaders$lambda(a, b) {
|
|
1280
1267
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1281
|
-
var tmp = a.
|
|
1282
|
-
var tmp$ret$1 = b.
|
|
1268
|
+
var tmp = a.v();
|
|
1269
|
+
var tmp$ret$1 = b.v();
|
|
1283
1270
|
return compareValues(tmp, tmp$ret$1);
|
|
1284
1271
|
}
|
|
1285
1272
|
function $logResponseBodyCOROUTINE$_0(log, contentType, content, resultContinuation) {
|
|
1286
1273
|
CoroutineImpl.call(this, resultContinuation);
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1274
|
+
this.j4s_1 = log;
|
|
1275
|
+
this.k4s_1 = contentType;
|
|
1276
|
+
this.l4s_1 = content;
|
|
1290
1277
|
}
|
|
1291
|
-
protoOf($logResponseBodyCOROUTINE$_0).
|
|
1292
|
-
var suspendResult = this.
|
|
1278
|
+
protoOf($logResponseBodyCOROUTINE$_0).z8 = function () {
|
|
1279
|
+
var suspendResult = this.t8_1;
|
|
1293
1280
|
$sm: do
|
|
1294
1281
|
try {
|
|
1295
|
-
var tmp = this.
|
|
1282
|
+
var tmp = this.r8_1;
|
|
1296
1283
|
switch (tmp) {
|
|
1297
1284
|
case 0:
|
|
1298
|
-
this.
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
this.i43_1 = this.h43_1;
|
|
1305
|
-
var tmp0 = this.i43_1;
|
|
1306
|
-
var value = 'BODY Content-Type: ' + toString_0(this.d43_1);
|
|
1307
|
-
tmp0.w8(value).x8(_Char___init__impl__6a9atx(10));
|
|
1308
|
-
var tmp0_0 = this.i43_1;
|
|
1285
|
+
this.s8_1 = 3;
|
|
1286
|
+
this.m4s_1 = this.j4s_1;
|
|
1287
|
+
var tmp0 = this.m4s_1;
|
|
1288
|
+
var value = 'BODY Content-Type: ' + toString_0(this.k4s_1);
|
|
1289
|
+
tmp0.c8(value).d8(_Char___init__impl__6a9atx(10));
|
|
1290
|
+
var tmp0_0 = this.m4s_1;
|
|
1309
1291
|
var value_0 = 'BODY START';
|
|
1310
|
-
tmp0_0.
|
|
1311
|
-
var
|
|
1312
|
-
|
|
1313
|
-
var tmp_3 = this;
|
|
1314
|
-
var tmp0_safe_receiver = this.d43_1;
|
|
1292
|
+
tmp0_0.c8(value_0).d8(_Char___init__impl__6a9atx(10));
|
|
1293
|
+
var tmp0_1 = this.l4s_1;
|
|
1294
|
+
var tmp0_safe_receiver = this.k4s_1;
|
|
1315
1295
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1316
|
-
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
|
|
1320
|
-
this.l9_1 = 1;
|
|
1321
|
-
suspendResult = this.l43_1.o1z(VOID, this);
|
|
1296
|
+
this.o4s_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().p30_1 : tmp1_elvis_lhs;
|
|
1297
|
+
this.s8_1 = 2;
|
|
1298
|
+
this.r8_1 = 1;
|
|
1299
|
+
suspendResult = tmp0_1.d2w(VOID, this);
|
|
1322
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1323
1301
|
return suspendResult;
|
|
1324
1302
|
}
|
|
@@ -1326,78 +1304,78 @@
|
|
|
1326
1304
|
continue $sm;
|
|
1327
1305
|
case 1:
|
|
1328
1306
|
var ARGUMENT = suspendResult;
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1307
|
+
this.n4s_1 = readText(ARGUMENT, this.o4s_1);
|
|
1308
|
+
this.s8_1 = 3;
|
|
1309
|
+
this.r8_1 = 4;
|
|
1332
1310
|
continue $sm;
|
|
1333
1311
|
case 2:
|
|
1334
|
-
this.
|
|
1335
|
-
var
|
|
1336
|
-
if (
|
|
1337
|
-
var cause = this.
|
|
1338
|
-
var
|
|
1339
|
-
|
|
1340
|
-
this.
|
|
1312
|
+
this.s8_1 = 3;
|
|
1313
|
+
var tmp_0 = this.u8_1;
|
|
1314
|
+
if (tmp_0 instanceof Error) {
|
|
1315
|
+
var cause = this.u8_1;
|
|
1316
|
+
var tmp_1 = this;
|
|
1317
|
+
tmp_1.n4s_1 = null;
|
|
1318
|
+
this.r8_1 = 4;
|
|
1341
1319
|
continue $sm;
|
|
1342
1320
|
} else {
|
|
1343
|
-
throw this.
|
|
1321
|
+
throw this.u8_1;
|
|
1344
1322
|
}
|
|
1345
1323
|
|
|
1346
1324
|
case 3:
|
|
1347
|
-
throw this.
|
|
1325
|
+
throw this.u8_1;
|
|
1348
1326
|
case 4:
|
|
1349
|
-
this.
|
|
1350
|
-
var tmp2_elvis_lhs = this.
|
|
1327
|
+
this.s8_1 = 3;
|
|
1328
|
+
var tmp2_elvis_lhs = this.n4s_1;
|
|
1351
1329
|
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
1352
|
-
this.
|
|
1353
|
-
this.
|
|
1330
|
+
this.m4s_1.c8(message).d8(_Char___init__impl__6a9atx(10));
|
|
1331
|
+
this.m4s_1.c8('BODY END');
|
|
1354
1332
|
return Unit_instance;
|
|
1355
1333
|
}
|
|
1356
1334
|
} catch ($p) {
|
|
1357
1335
|
var e = $p;
|
|
1358
|
-
if (this.
|
|
1336
|
+
if (this.s8_1 === 3) {
|
|
1359
1337
|
throw e;
|
|
1360
1338
|
} else {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1339
|
+
this.r8_1 = this.s8_1;
|
|
1340
|
+
this.u8_1 = e;
|
|
1363
1341
|
}
|
|
1364
1342
|
}
|
|
1365
1343
|
while (true);
|
|
1366
1344
|
};
|
|
1367
1345
|
function observe(_this__u8e3s4, log, $completion) {
|
|
1368
1346
|
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
1369
|
-
tmp.
|
|
1370
|
-
tmp.
|
|
1371
|
-
return tmp.
|
|
1347
|
+
tmp.t8_1 = Unit_instance;
|
|
1348
|
+
tmp.u8_1 = null;
|
|
1349
|
+
return tmp.z8();
|
|
1372
1350
|
}
|
|
1373
1351
|
function toReadChannel(_this__u8e3s4) {
|
|
1374
1352
|
var tmp = GlobalScope_instance;
|
|
1375
|
-
var tmp_0 = Dispatchers_getInstance().
|
|
1376
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).
|
|
1353
|
+
var tmp_0 = Dispatchers_getInstance().z20_1;
|
|
1354
|
+
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).q21();
|
|
1377
1355
|
}
|
|
1378
1356
|
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
1379
|
-
this.
|
|
1357
|
+
this.j4t_1 = $this_toReadChannel;
|
|
1380
1358
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
1359
|
}
|
|
1382
|
-
protoOf(toReadChannel$slambda).
|
|
1383
|
-
var tmp = this.
|
|
1384
|
-
tmp.
|
|
1385
|
-
tmp.
|
|
1386
|
-
return tmp.
|
|
1360
|
+
protoOf(toReadChannel$slambda).h3v = function ($this$writer, $completion) {
|
|
1361
|
+
var tmp = this.i3v($this$writer, $completion);
|
|
1362
|
+
tmp.t8_1 = Unit_instance;
|
|
1363
|
+
tmp.u8_1 = null;
|
|
1364
|
+
return tmp.z8();
|
|
1387
1365
|
};
|
|
1388
|
-
protoOf(toReadChannel$slambda).
|
|
1389
|
-
return this.
|
|
1366
|
+
protoOf(toReadChannel$slambda).h9 = function (p1, $completion) {
|
|
1367
|
+
return this.h3v((!(p1 == null) ? isInterface(p1, WriterScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1390
1368
|
};
|
|
1391
|
-
protoOf(toReadChannel$slambda).
|
|
1392
|
-
var suspendResult = this.
|
|
1369
|
+
protoOf(toReadChannel$slambda).z8 = function () {
|
|
1370
|
+
var suspendResult = this.t8_1;
|
|
1393
1371
|
$sm: do
|
|
1394
1372
|
try {
|
|
1395
|
-
var tmp = this.
|
|
1373
|
+
var tmp = this.r8_1;
|
|
1396
1374
|
switch (tmp) {
|
|
1397
1375
|
case 0:
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
suspendResult = this.
|
|
1376
|
+
this.s8_1 = 2;
|
|
1377
|
+
this.r8_1 = 1;
|
|
1378
|
+
suspendResult = this.j4t_1.s3n(this.k4t_1.q21(), this);
|
|
1401
1379
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1402
1380
|
return suspendResult;
|
|
1403
1381
|
}
|
|
@@ -1406,101 +1384,98 @@
|
|
|
1406
1384
|
case 1:
|
|
1407
1385
|
return Unit_instance;
|
|
1408
1386
|
case 2:
|
|
1409
|
-
throw this.
|
|
1387
|
+
throw this.u8_1;
|
|
1410
1388
|
}
|
|
1411
1389
|
} catch ($p) {
|
|
1412
1390
|
var e = $p;
|
|
1413
|
-
if (this.
|
|
1391
|
+
if (this.s8_1 === 2) {
|
|
1414
1392
|
throw e;
|
|
1415
1393
|
} else {
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1394
|
+
this.r8_1 = this.s8_1;
|
|
1395
|
+
this.u8_1 = e;
|
|
1418
1396
|
}
|
|
1419
1397
|
}
|
|
1420
1398
|
while (true);
|
|
1421
1399
|
};
|
|
1422
|
-
protoOf(toReadChannel$slambda).
|
|
1423
|
-
var i = new toReadChannel$slambda(this.
|
|
1424
|
-
i.
|
|
1400
|
+
protoOf(toReadChannel$slambda).i3v = function ($this$writer, completion) {
|
|
1401
|
+
var i = new toReadChannel$slambda(this.j4t_1, completion);
|
|
1402
|
+
i.k4t_1 = $this$writer;
|
|
1425
1403
|
return i;
|
|
1426
1404
|
};
|
|
1427
1405
|
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
1428
1406
|
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
1429
1407
|
var l = function ($this$writer, $completion) {
|
|
1430
|
-
return i.
|
|
1408
|
+
return i.h3v($this$writer, $completion);
|
|
1431
1409
|
};
|
|
1432
1410
|
l.$arity = 1;
|
|
1433
1411
|
return l;
|
|
1434
1412
|
}
|
|
1435
1413
|
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
1436
1414
|
CoroutineImpl.call(this, resultContinuation);
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1415
|
+
this.y4s_1 = _this__u8e3s4;
|
|
1416
|
+
this.z4s_1 = log;
|
|
1439
1417
|
}
|
|
1440
|
-
protoOf($observeCOROUTINE$).
|
|
1441
|
-
var suspendResult = this.
|
|
1418
|
+
protoOf($observeCOROUTINE$).z8 = function () {
|
|
1419
|
+
var suspendResult = this.t8_1;
|
|
1442
1420
|
$sm: do
|
|
1443
1421
|
try {
|
|
1444
|
-
var tmp = this.
|
|
1422
|
+
var tmp = this.r8_1;
|
|
1445
1423
|
switch (tmp) {
|
|
1446
1424
|
case 0:
|
|
1447
|
-
this.
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
this.
|
|
1452
|
-
suspendResult = writeFully(this.y43_1, this.x43_1.k2r(), this);
|
|
1425
|
+
this.s8_1 = 3;
|
|
1426
|
+
var tmp0_subject = this.y4s_1;
|
|
1427
|
+
if (tmp0_subject instanceof ByteArrayContent) {
|
|
1428
|
+
this.r8_1 = 1;
|
|
1429
|
+
suspendResult = writeFully(this.z4s_1, this.y4s_1.n3n(), this);
|
|
1453
1430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1431
|
return suspendResult;
|
|
1455
1432
|
}
|
|
1456
1433
|
continue $sm;
|
|
1457
1434
|
} else {
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
var tmp_2 = this;
|
|
1435
|
+
if (tmp0_subject instanceof ReadChannelContent) {
|
|
1436
|
+
var tmp_0 = this;
|
|
1461
1437
|
var responseChannel = ByteChannel();
|
|
1462
|
-
var content = this.
|
|
1463
|
-
copyToBoth(content, this.
|
|
1464
|
-
|
|
1465
|
-
this.
|
|
1438
|
+
var content = this.y4s_1.q3n();
|
|
1439
|
+
copyToBoth(content, this.z4s_1, responseChannel);
|
|
1440
|
+
tmp_0.a4t_1 = new LoggedContent(this.y4s_1, responseChannel);
|
|
1441
|
+
this.r8_1 = 2;
|
|
1466
1442
|
continue $sm;
|
|
1467
1443
|
} else {
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
var tmp_4 = this;
|
|
1444
|
+
if (tmp0_subject instanceof WriteChannelContent) {
|
|
1445
|
+
var tmp_1 = this;
|
|
1471
1446
|
var responseChannel_0 = ByteChannel();
|
|
1472
|
-
var content_0 = toReadChannel(this.
|
|
1473
|
-
copyToBoth(content_0, this.
|
|
1474
|
-
|
|
1475
|
-
this.
|
|
1447
|
+
var content_0 = toReadChannel(this.y4s_1);
|
|
1448
|
+
copyToBoth(content_0, this.z4s_1, responseChannel_0);
|
|
1449
|
+
tmp_1.a4t_1 = new LoggedContent(this.y4s_1, responseChannel_0);
|
|
1450
|
+
this.r8_1 = 2;
|
|
1476
1451
|
continue $sm;
|
|
1477
1452
|
} else {
|
|
1478
|
-
var
|
|
1479
|
-
close(this.
|
|
1480
|
-
|
|
1481
|
-
this.
|
|
1453
|
+
var tmp_2 = this;
|
|
1454
|
+
close(this.z4s_1);
|
|
1455
|
+
tmp_2.a4t_1 = this.y4s_1;
|
|
1456
|
+
this.r8_1 = 2;
|
|
1482
1457
|
continue $sm;
|
|
1483
1458
|
}
|
|
1484
1459
|
}
|
|
1485
1460
|
}
|
|
1486
1461
|
|
|
1487
1462
|
case 1:
|
|
1488
|
-
close(this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1463
|
+
close(this.z4s_1);
|
|
1464
|
+
this.a4t_1 = this.y4s_1;
|
|
1465
|
+
this.r8_1 = 2;
|
|
1491
1466
|
continue $sm;
|
|
1492
1467
|
case 2:
|
|
1493
|
-
return this.
|
|
1468
|
+
return this.a4t_1;
|
|
1494
1469
|
case 3:
|
|
1495
|
-
throw this.
|
|
1470
|
+
throw this.u8_1;
|
|
1496
1471
|
}
|
|
1497
1472
|
} catch ($p) {
|
|
1498
1473
|
var e = $p;
|
|
1499
|
-
if (this.
|
|
1474
|
+
if (this.s8_1 === 3) {
|
|
1500
1475
|
throw e;
|
|
1501
1476
|
} else {
|
|
1502
|
-
this.
|
|
1503
|
-
this.
|
|
1477
|
+
this.r8_1 = this.s8_1;
|
|
1478
|
+
this.u8_1 = e;
|
|
1504
1479
|
}
|
|
1505
1480
|
}
|
|
1506
1481
|
while (true);
|