@solibo/solibo-sdk 1.0.35 → 1.0.37
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/KmLogging-logging.mjs +286 -0
- package/KmLogging-logging.mjs.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +7247 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/KotlinBigInteger-bignum.mjs +5987 -0
- package/KotlinBigInteger-bignum.mjs.map +1 -0
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +15 -0
- package/{MultiplatformSettings-multiplatform-settings-no-arg.js.map → MultiplatformSettings-multiplatform-settings-no-arg.mjs.map} +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs +70 -0
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -0
- package/Stately-stately-concurrency.mjs +25 -0
- package/{Stately-stately-concurrency.js.map → Stately-stately-concurrency.mjs.map} +1 -1
- package/Stately-stately-strict.mjs +8 -0
- package/{Stately-stately-strict.js.map → Stately-stately-strict.mjs.map} +1 -1
- package/cryptography-kotlin-cryptography-bigint.mjs +241 -0
- package/cryptography-kotlin-cryptography-bigint.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-core.mjs +1095 -0
- package/cryptography-kotlin-cryptography-core.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-provider-base.mjs +62 -0
- package/cryptography-kotlin-cryptography-provider-base.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-provider-optimal.mjs +4 -0
- package/{cryptography-kotlin-cryptography-provider-optimal.js.map → cryptography-kotlin-cryptography-provider-optimal.mjs.map} +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +1195 -0
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-random.mjs +127 -0
- package/cryptography-kotlin-cryptography-random.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +701 -0
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +1413 -0
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs.map +1 -0
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +153 -0
- package/cryptography-kotlin-cryptography-serialization-pem.mjs.map +1 -0
- package/index.d.ts +2 -579
- package/index.js +2 -578
- package/kotlin-kotlin-stdlib.mjs +19205 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlinx-atomicfu.mjs +250 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-browser.mjs +8 -0
- package/{kotlinx-browser.js.map → kotlinx-browser.mjs.map} +1 -1
- package/kotlinx-coroutines-core.mjs +9836 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs +202 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-core.mjs +2020 -0
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +6337 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/{kotlinx-serialization-kotlinx-serialization-json-io.js.map → kotlinx-serialization-kotlinx-serialization-json-io.mjs.map} +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +5104 -0
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/ktor-ktor-client-auth.mjs +1491 -0
- package/ktor-ktor-client-auth.mjs.map +1 -0
- package/ktor-ktor-client-content-negotiation.mjs +750 -0
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/ktor-ktor-client-core.mjs +14114 -0
- package/ktor-ktor-client-core.mjs.map +1 -0
- package/ktor-ktor-client-logging.mjs +3263 -0
- package/ktor-ktor-client-logging.mjs.map +1 -0
- package/ktor-ktor-client-mock.mjs +4 -0
- package/{ktor-ktor-client-mock.js.map → ktor-ktor-client-mock.mjs.map} +1 -1
- package/ktor-ktor-events.mjs +81 -0
- package/ktor-ktor-events.mjs.map +1 -0
- package/ktor-ktor-http-cio.mjs +2254 -0
- package/ktor-ktor-http-cio.mjs.map +1 -0
- package/ktor-ktor-http.mjs +5181 -0
- package/ktor-ktor-http.mjs.map +1 -0
- package/ktor-ktor-io.mjs +3608 -0
- package/ktor-ktor-io.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
- package/{ktor-ktor-serialization-kotlinx-json.js.map → ktor-ktor-serialization-kotlinx-json.mjs.map} +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +843 -0
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/ktor-ktor-serialization.mjs +364 -0
- package/ktor-ktor-serialization.mjs.map +1 -0
- package/ktor-ktor-sse.mjs +4 -0
- package/ktor-ktor-sse.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +3627 -0
- package/ktor-ktor-utils.mjs.map +1 -0
- package/ktor-ktor-websocket-serialization.mjs +4 -0
- package/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/ktor-ktor-websockets.mjs +2535 -0
- package/ktor-ktor-websockets.mjs.map +1 -0
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +193155 -0
- package/solibo-sdk-sdk-home-api.mjs.map +1 -0
- package/solibo-sdk-sdk.d.mts +13403 -0
- package/solibo-sdk-sdk.mjs +7814 -0
- package/solibo-sdk-sdk.mjs.map +1 -0
- package/KmLogging-logging.js +0 -301
- package/KmLogging-logging.js.map +0 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +0 -7261
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/KotlinBigInteger-bignum.js +0 -5999
- package/KotlinBigInteger-bignum.js.map +0 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.js +0 -29
- package/MultiplatformSettings-multiplatform-settings.js +0 -82
- package/MultiplatformSettings-multiplatform-settings.js.map +0 -1
- package/Stately-stately-concurrency.js +0 -37
- package/Stately-stately-strict.js +0 -19
- package/cryptography-kotlin-cryptography-bigint.js +0 -254
- package/cryptography-kotlin-cryptography-bigint.js.map +0 -1
- package/cryptography-kotlin-cryptography-core.js +0 -1110
- package/cryptography-kotlin-cryptography-core.js.map +0 -1
- package/cryptography-kotlin-cryptography-provider-base.js +0 -77
- package/cryptography-kotlin-cryptography-provider-base.js.map +0 -1
- package/cryptography-kotlin-cryptography-provider-optimal.js +0 -15
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +0 -1222
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +0 -1
- package/cryptography-kotlin-cryptography-random.js +0 -139
- package/cryptography-kotlin-cryptography-random.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +0 -715
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-asn1.js +0 -1427
- package/cryptography-kotlin-cryptography-serialization-asn1.js.map +0 -1
- package/cryptography-kotlin-cryptography-serialization-pem.js +0 -165
- package/cryptography-kotlin-cryptography-serialization-pem.js.map +0 -1
- package/kotlin-kotlin-stdlib.js +0 -19124
- package/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
- package/kotlinx-atomicfu.js +0 -262
- package/kotlinx-atomicfu.js.map +0 -1
- package/kotlinx-browser.js +0 -19
- package/kotlinx-coroutines-core.js +0 -9849
- package/kotlinx-coroutines-core.js.map +0 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +0 -214
- package/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
- package/kotlinx-io-kotlinx-io-core.js +0 -2035
- package/kotlinx-io-kotlinx-io-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +0 -6349
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -15
- package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5117
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/ktor-ktor-client-auth.js +0 -1510
- package/ktor-ktor-client-auth.js.map +0 -1
- package/ktor-ktor-client-content-negotiation.js +0 -767
- package/ktor-ktor-client-content-negotiation.js.map +0 -1
- package/ktor-ktor-client-core.js +0 -14143
- package/ktor-ktor-client-core.js.map +0 -1
- package/ktor-ktor-client-logging.js +0 -3286
- package/ktor-ktor-client-logging.js.map +0 -1
- package/ktor-ktor-client-mock.js +0 -15
- package/ktor-ktor-events.js +0 -94
- package/ktor-ktor-events.js.map +0 -1
- package/ktor-ktor-http-cio.js +0 -2271
- package/ktor-ktor-http-cio.js.map +0 -1
- package/ktor-ktor-http.js +0 -5196
- package/ktor-ktor-http.js.map +0 -1
- package/ktor-ktor-io.js +0 -3628
- package/ktor-ktor-io.js.map +0 -1
- package/ktor-ktor-serialization-kotlinx-json.js +0 -67
- package/ktor-ktor-serialization-kotlinx.js +0 -865
- package/ktor-ktor-serialization-kotlinx.js.map +0 -1
- package/ktor-ktor-serialization.js +0 -379
- package/ktor-ktor-serialization.js.map +0 -1
- package/ktor-ktor-sse.js +0 -15
- package/ktor-ktor-sse.js.map +0 -1
- package/ktor-ktor-utils.js +0 -3643
- package/ktor-ktor-utils.js.map +0 -1
- package/ktor-ktor-websocket-serialization.js +0 -15
- package/ktor-ktor-websocket-serialization.js.map +0 -1
- package/ktor-ktor-websockets.js +0 -2552
- package/ktor-ktor-websockets.js.map +0 -1
- package/solibo-sdk-sdk-home-api.js +0 -194775
- package/solibo-sdk-sdk-home-api.js.map +0 -1
- package/solibo-sdk-sdk.d.ts +0 -14248
- package/solibo-sdk-sdk.js +0 -7897
- package/solibo-sdk-sdk.js.map +0 -1
|
@@ -1,3286 +0,0 @@
|
|
|
1
|
-
(function (factory) {
|
|
2
|
-
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-coroutines-core.js', './kotlinx-atomicfu.js', './ktor-ktor-io.js', './ktor-ktor-http.js', './kotlinx-io-kotlinx-io-core.js', './ktor-ktor-utils.js', './ktor-ktor-client-core.js'], factory);
|
|
4
|
-
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-atomicfu.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-http.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-client-core.js'));
|
|
6
|
-
else {
|
|
7
|
-
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
9
|
-
}
|
|
10
|
-
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
12
|
-
}
|
|
13
|
-
if (typeof globalThis['kotlinx-atomicfu'] === 'undefined') {
|
|
14
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
15
|
-
}
|
|
16
|
-
if (typeof globalThis['ktor-ktor-io'] === 'undefined') {
|
|
17
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'ktor-ktor-io' was not found. Please, check whether 'ktor-ktor-io' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
18
|
-
}
|
|
19
|
-
if (typeof globalThis['ktor-ktor-http'] === 'undefined') {
|
|
20
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'ktor-ktor-http' was not found. Please, check whether 'ktor-ktor-http' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
21
|
-
}
|
|
22
|
-
if (typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined') {
|
|
23
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'kotlinx-io-kotlinx-io-core' was not found. Please, check whether 'kotlinx-io-kotlinx-io-core' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
24
|
-
}
|
|
25
|
-
if (typeof globalThis['ktor-ktor-utils'] === 'undefined') {
|
|
26
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
27
|
-
}
|
|
28
|
-
if (typeof globalThis['ktor-ktor-client-core'] === 'undefined') {
|
|
29
|
-
throw new Error("Error loading module 'ktor-ktor-client-logging'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'ktor-ktor-client-logging'.");
|
|
30
|
-
}
|
|
31
|
-
globalThis['ktor-ktor-client-logging'] = factory(typeof globalThis['ktor-ktor-client-logging'] === 'undefined' ? {} : globalThis['ktor-ktor-client-logging'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-coroutines-core'], globalThis['kotlinx-atomicfu'], globalThis['ktor-ktor-io'], globalThis['ktor-ktor-http'], globalThis['kotlinx-io-kotlinx-io-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-client-core']);
|
|
32
|
-
}
|
|
33
|
-
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_client_core) {
|
|
34
|
-
'use strict';
|
|
35
|
-
//region block: imports
|
|
36
|
-
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
37
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.z9;
|
|
38
|
-
var THROW_CCE = kotlin_kotlin.$_$.hi;
|
|
39
|
-
var isCharSequence = kotlin_kotlin.$_$.uc;
|
|
40
|
-
var trim = kotlin_kotlin.$_$.kh;
|
|
41
|
-
var toString = kotlin_kotlin.$_$.md;
|
|
42
|
-
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
43
|
-
var protoOf = kotlin_kotlin.$_$.jd;
|
|
44
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.lc;
|
|
45
|
-
var charSequenceLength = kotlin_kotlin.$_$.wb;
|
|
46
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
47
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p1;
|
|
48
|
-
var atomic$boolean$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.b;
|
|
49
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k2;
|
|
50
|
-
var initMetadataForClass = kotlin_kotlin.$_$.jc;
|
|
51
|
-
var VOID = kotlin_kotlin.$_$.c;
|
|
52
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.nc;
|
|
53
|
-
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
54
|
-
var readText = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
55
|
-
var readBuffer = kotlin_io_ktor_ktor_io.$_$.e;
|
|
56
|
-
var isTextType = kotlin_io_ktor_ktor_http.$_$.i2;
|
|
57
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.p;
|
|
58
|
-
var charset = kotlin_io_ktor_ktor_http.$_$.t1;
|
|
59
|
-
var readAvailable = kotlin_io_ktor_ktor_io.$_$.d;
|
|
60
|
-
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
61
|
-
var writeFully = kotlin_io_ktor_ktor_io.$_$.j1;
|
|
62
|
-
var decode = kotlin_io_ktor_ktor_io.$_$.t;
|
|
63
|
-
var MalformedInputException = kotlin_io_ktor_ktor_io.$_$.s;
|
|
64
|
-
var charCodeAt = kotlin_kotlin.$_$.ub;
|
|
65
|
-
var Enum = kotlin_kotlin.$_$.xh;
|
|
66
|
-
var ReadChannelContent = kotlin_io_ktor_ktor_http.$_$.v;
|
|
67
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.kc;
|
|
68
|
-
var println = kotlin_kotlin.$_$.ua;
|
|
69
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
70
|
-
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.x;
|
|
71
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
72
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.ce;
|
|
73
|
-
var ProtocolUpgrade = kotlin_io_ktor_ktor_http.$_$.u;
|
|
74
|
-
var NoContent = kotlin_io_ktor_ktor_http.$_$.t;
|
|
75
|
-
var ContentWrapper = kotlin_io_ktor_ktor_http.$_$.s;
|
|
76
|
-
var fromInt = kotlin_kotlin.$_$.bb;
|
|
77
|
-
var ByteArrayContent = kotlin_io_ktor_ktor_http.$_$.r;
|
|
78
|
-
var PipelineContext = kotlin_io_ktor_ktor_utils.$_$.t;
|
|
79
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.oc;
|
|
80
|
-
var Phases_getInstance = kotlin_io_ktor_ktor_client_core.$_$.e;
|
|
81
|
-
var isSuspendFunction = kotlin_kotlin.$_$.bd;
|
|
82
|
-
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.l1;
|
|
83
|
-
var PipelinePhase = kotlin_io_ktor_ktor_utils.$_$.u;
|
|
84
|
-
var Phases_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.f;
|
|
85
|
-
var HttpResponseContainer = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
86
|
-
var Phases_getInstance_1 = kotlin_io_ktor_ktor_client_core.$_$.g;
|
|
87
|
-
var get_ResponseObserver = kotlin_io_ktor_ktor_client_core.$_$.t;
|
|
88
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
89
|
-
var isInterface = kotlin_kotlin.$_$.yc;
|
|
90
|
-
var GZipEncoder_getInstance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
91
|
-
var readRemaining = kotlin_io_ktor_ktor_io.$_$.h;
|
|
92
|
-
var Collection = kotlin_kotlin.$_$.r5;
|
|
93
|
-
var toString_0 = kotlin_kotlin.$_$.mj;
|
|
94
|
-
var ByteChannel = kotlin_io_ktor_ktor_io.$_$.o1;
|
|
95
|
-
var GlobalScope_instance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
96
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
|
|
97
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x1;
|
|
98
|
-
var Url = kotlin_io_ktor_ktor_http.$_$.o1;
|
|
99
|
-
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.f1;
|
|
100
|
-
var joinToString = kotlin_kotlin.$_$.a8;
|
|
101
|
-
var equals = kotlin_kotlin.$_$.ac;
|
|
102
|
-
var get_isSaved = kotlin_io_ktor_ktor_client_core.$_$.b1;
|
|
103
|
-
var HttpClientCall = kotlin_io_ktor_ktor_client_core.$_$.i;
|
|
104
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.hj;
|
|
105
|
-
var split = kotlin_io_ktor_ktor_utils.$_$.r1;
|
|
106
|
-
var WriteChannelContent = kotlin_io_ktor_ktor_http.$_$.w;
|
|
107
|
-
var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
108
|
-
var FormItem = kotlin_io_ktor_ktor_http.$_$.b1;
|
|
109
|
-
var MultiPartFormDataContent = kotlin_io_ktor_ktor_client_core.$_$.e1;
|
|
110
|
-
var ObservableContent = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
111
|
-
var URLBuilder = kotlin_io_ktor_ktor_http.$_$.m1;
|
|
112
|
-
var takeFrom = kotlin_io_ktor_ktor_http.$_$.q2;
|
|
113
|
-
var HeadersBuilder = kotlin_io_ktor_ktor_http.$_$.h1;
|
|
114
|
-
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.i;
|
|
115
|
-
var EmptyContent = kotlin_io_ktor_ktor_client_core.$_$.o1;
|
|
116
|
-
var appendIfNameAbsent = kotlin_io_ktor_ktor_utils.$_$.k1;
|
|
117
|
-
var appendAll = kotlin_io_ktor_ktor_utils.$_$.j1;
|
|
118
|
-
var toLongOrNull = kotlin_kotlin.$_$.sg;
|
|
119
|
-
var contentLength = kotlin_io_ktor_ktor_http.$_$.v1;
|
|
120
|
-
var contentType = kotlin_io_ktor_ktor_http.$_$.y1;
|
|
121
|
-
var subtract = kotlin_kotlin.$_$.lb;
|
|
122
|
-
var get_request = kotlin_io_ktor_ktor_client_core.$_$.n1;
|
|
123
|
-
var Text_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
124
|
-
var replaceResponse = kotlin_io_ktor_ktor_client_core.$_$.j;
|
|
125
|
-
var getKClass = kotlin_kotlin.$_$.de;
|
|
126
|
-
var arrayOf = kotlin_kotlin.$_$.vi;
|
|
127
|
-
var createKType = kotlin_kotlin.$_$.be;
|
|
128
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
129
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
130
|
-
var Unit = kotlin_kotlin.$_$.si;
|
|
131
|
-
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
132
|
-
var toList = kotlin_kotlin.$_$.j9;
|
|
133
|
-
var sortedWith = kotlin_kotlin.$_$.c9;
|
|
134
|
-
var FunctionAdapter = kotlin_kotlin.$_$.nb;
|
|
135
|
-
var Comparator = kotlin_kotlin.$_$.uh;
|
|
136
|
-
var hashCode = kotlin_kotlin.$_$.ic;
|
|
137
|
-
var compareValues = kotlin_kotlin.$_$.x9;
|
|
138
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.z1;
|
|
139
|
-
var WriterScope = kotlin_io_ktor_ktor_io.$_$.s1;
|
|
140
|
-
var copyToBoth = kotlin_io_ktor_ktor_utils.$_$.l1;
|
|
141
|
-
var writeFully_0 = kotlin_io_ktor_ktor_io.$_$.m;
|
|
142
|
-
var get = kotlin_kotlin.$_$.ma;
|
|
143
|
-
var fold = kotlin_kotlin.$_$.la;
|
|
144
|
-
var minusKey = kotlin_kotlin.$_$.na;
|
|
145
|
-
var plus = kotlin_kotlin.$_$.pa;
|
|
146
|
-
var Element = kotlin_kotlin.$_$.oa;
|
|
147
|
-
//endregion
|
|
148
|
-
//region block: pre-declaration
|
|
149
|
-
initMetadataForCoroutine($logResponseExceptionCOROUTINE$, CoroutineImpl);
|
|
150
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
151
|
-
initMetadataForCoroutine($closeResponseLogCOROUTINE$, CoroutineImpl);
|
|
152
|
-
initMetadataForClass(HttpClientCallLogger, 'HttpClientCallLogger', VOID, VOID, VOID, [1, 0]);
|
|
153
|
-
function filterRequest(url, contentLength, contentType, headers, body, $completion) {
|
|
154
|
-
return this.dn9(contentLength, contentType, headers, body, $completion);
|
|
155
|
-
}
|
|
156
|
-
function filterResponse(url, contentLength, contentType, headers, body, $completion) {
|
|
157
|
-
return this.dn9(contentLength, contentType, headers, body, $completion);
|
|
158
|
-
}
|
|
159
|
-
initMetadataForInterface(CommonLogBodyFilter, 'CommonLogBodyFilter', VOID, VOID, VOID, [5, 4]);
|
|
160
|
-
function get_byteSize() {
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
initMetadataForInterface(BodyFilterResult, 'BodyFilterResult');
|
|
164
|
-
initMetadataForObject(Empty, 'Empty', VOID, VOID, [BodyFilterResult]);
|
|
165
|
-
initMetadataForClass(Skip, 'Skip', Skip, VOID, [BodyFilterResult]);
|
|
166
|
-
initMetadataForInterface(Content, 'Content', VOID, VOID, [BodyFilterResult]);
|
|
167
|
-
initMetadataForClass(BufferContent, 'BufferContent', VOID, VOID, [Content]);
|
|
168
|
-
initMetadataForCoroutine($filterAllCOROUTINE$, CoroutineImpl);
|
|
169
|
-
initMetadataForClass(BinaryLogBodyFilter$1, VOID, VOID, VOID, [CommonLogBodyFilter], [4, 5]);
|
|
170
|
-
initMetadataForClass(LogLevel, 'LogLevel', VOID, Enum);
|
|
171
|
-
initMetadataForClass(LoggedContent, 'LoggedContent', VOID, ReadChannelContent);
|
|
172
|
-
initMetadataForCompanion(Companion);
|
|
173
|
-
initMetadataForObject(SimpleLogger, 'SimpleLogger');
|
|
174
|
-
initMetadataForClass(LoggingConfig, 'LoggingConfig', LoggingConfig);
|
|
175
|
-
initMetadataForClass(SanitizedHeader, 'SanitizedHeader');
|
|
176
|
-
initMetadataForClass(LoggingFormat, 'LoggingFormat', VOID, Enum);
|
|
177
|
-
initMetadataForClass(Context, 'Context', VOID, VOID, VOID, [1, 0]);
|
|
178
|
-
initMetadataForLambda(SendHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
179
|
-
initMetadataForObject(SendHook, 'SendHook');
|
|
180
|
-
initMetadataForClass(Context_0, 'Context', VOID, VOID, VOID, [1]);
|
|
181
|
-
initMetadataForLambda(ResponseAfterEncodingHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
182
|
-
initMetadataForObject(ResponseAfterEncodingHook, 'ResponseAfterEncodingHook');
|
|
183
|
-
initMetadataForClass(Context_1, 'Context', VOID, VOID, VOID, [0]);
|
|
184
|
-
initMetadataForLambda(ResponseHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
185
|
-
initMetadataForObject(ResponseHook, 'ResponseHook');
|
|
186
|
-
initMetadataForClass(Context_2, 'Context', VOID, VOID, VOID, [0]);
|
|
187
|
-
initMetadataForLambda(ReceiveHook$install$slambda, CoroutineImpl, VOID, [2]);
|
|
188
|
-
initMetadataForObject(ReceiveHook, 'ReceiveHook');
|
|
189
|
-
initMetadataForLambda(Logging$lambda$logOutgoingContent$slambda, CoroutineImpl, VOID, [1]);
|
|
190
|
-
initMetadataForLambda(Logging$lambda$logRequestBody$slambda, CoroutineImpl, VOID, [1]);
|
|
191
|
-
initMetadataForLambda(Logging$lambda$slambda, CoroutineImpl, VOID, [2]);
|
|
192
|
-
initMetadataForLambda(Logging$lambda$slambda_1, CoroutineImpl, VOID, [2]);
|
|
193
|
-
initMetadataForLambda(Logging$lambda$slambda_3, CoroutineImpl, VOID, [2]);
|
|
194
|
-
initMetadataForLambda(Logging$lambda$slambda_5, CoroutineImpl, VOID, [2]);
|
|
195
|
-
initMetadataForLambda(Logging$lambda$lambda$slambda, CoroutineImpl, VOID, [1]);
|
|
196
|
-
initMetadataForCoroutine($invoke$logRequestBodyCOROUTINE$, CoroutineImpl);
|
|
197
|
-
initMetadataForCoroutine($invoke$logOutgoingContentCOROUTINE$, CoroutineImpl);
|
|
198
|
-
initMetadataForCoroutine($invoke$logRequestOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
199
|
-
initMetadataForCoroutine($invoke$logResponseBodyCOROUTINE$, CoroutineImpl);
|
|
200
|
-
initMetadataForCoroutine($invoke$logResponseOkHttpFormatCOROUTINE$, CoroutineImpl);
|
|
201
|
-
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
202
|
-
initMetadataForCoroutine($logResponseBodyCOROUTINE$_0, CoroutineImpl);
|
|
203
|
-
initMetadataForCoroutine($appendResponseBodyCOROUTINE$, CoroutineImpl);
|
|
204
|
-
initMetadataForLambda(toReadChannel$slambda, CoroutineImpl, VOID, [1]);
|
|
205
|
-
initMetadataForCoroutine($observeCOROUTINE$, CoroutineImpl);
|
|
206
|
-
initMetadataForObject(MDCContextKey, 'MDCContextKey');
|
|
207
|
-
initMetadataForObject(MDCContextElement, 'MDCContextElement', VOID, VOID, [Element]);
|
|
208
|
-
//endregion
|
|
209
|
-
function $logResponseExceptionCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
210
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
211
|
-
this.tn7_1 = _this__u8e3s4;
|
|
212
|
-
this.un7_1 = message;
|
|
213
|
-
}
|
|
214
|
-
protoOf($logResponseExceptionCOROUTINE$).q9 = function () {
|
|
215
|
-
var suspendResult = this.k9_1;
|
|
216
|
-
$sm: do
|
|
217
|
-
try {
|
|
218
|
-
var tmp = this.i9_1;
|
|
219
|
-
switch (tmp) {
|
|
220
|
-
case 0:
|
|
221
|
-
this.j9_1 = 2;
|
|
222
|
-
this.i9_1 = 1;
|
|
223
|
-
suspendResult = this.tn7_1.yn7_1.q1w(this);
|
|
224
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
225
|
-
return suspendResult;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
continue $sm;
|
|
229
|
-
case 1:
|
|
230
|
-
var this_0 = this.un7_1;
|
|
231
|
-
this.tn7_1.vn7_1.cn8(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())));
|
|
232
|
-
return Unit_instance;
|
|
233
|
-
case 2:
|
|
234
|
-
throw this.l9_1;
|
|
235
|
-
}
|
|
236
|
-
} catch ($p) {
|
|
237
|
-
var e = $p;
|
|
238
|
-
if (this.j9_1 === 2) {
|
|
239
|
-
throw e;
|
|
240
|
-
} else {
|
|
241
|
-
this.i9_1 = this.j9_1;
|
|
242
|
-
this.l9_1 = e;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
while (true);
|
|
246
|
-
};
|
|
247
|
-
function $logResponseBodyCOROUTINE$(_this__u8e3s4, message, resultContinuation) {
|
|
248
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
249
|
-
this.ln8_1 = _this__u8e3s4;
|
|
250
|
-
this.mn8_1 = message;
|
|
251
|
-
}
|
|
252
|
-
protoOf($logResponseBodyCOROUTINE$).q9 = function () {
|
|
253
|
-
var suspendResult = this.k9_1;
|
|
254
|
-
$sm: do
|
|
255
|
-
try {
|
|
256
|
-
var tmp = this.i9_1;
|
|
257
|
-
switch (tmp) {
|
|
258
|
-
case 0:
|
|
259
|
-
this.j9_1 = 2;
|
|
260
|
-
this.i9_1 = 1;
|
|
261
|
-
suspendResult = this.ln8_1.zn7_1.q1w(this);
|
|
262
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
263
|
-
return suspendResult;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
continue $sm;
|
|
267
|
-
case 1:
|
|
268
|
-
this.ln8_1.xn7_1.q(this.mn8_1);
|
|
269
|
-
return Unit_instance;
|
|
270
|
-
case 2:
|
|
271
|
-
throw this.l9_1;
|
|
272
|
-
}
|
|
273
|
-
} catch ($p) {
|
|
274
|
-
var e = $p;
|
|
275
|
-
if (this.j9_1 === 2) {
|
|
276
|
-
throw e;
|
|
277
|
-
} else {
|
|
278
|
-
this.i9_1 = this.j9_1;
|
|
279
|
-
this.l9_1 = e;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
while (true);
|
|
283
|
-
};
|
|
284
|
-
function $closeResponseLogCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
285
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
286
|
-
this.vn8_1 = _this__u8e3s4;
|
|
287
|
-
}
|
|
288
|
-
protoOf($closeResponseLogCOROUTINE$).q9 = function () {
|
|
289
|
-
var suspendResult = this.k9_1;
|
|
290
|
-
$sm: do
|
|
291
|
-
try {
|
|
292
|
-
var tmp = this.i9_1;
|
|
293
|
-
switch (tmp) {
|
|
294
|
-
case 0:
|
|
295
|
-
this.j9_1 = 2;
|
|
296
|
-
if (!this.vn8_1.bn8_1.atomicfu$compareAndSet(false, true))
|
|
297
|
-
return Unit_instance;
|
|
298
|
-
this.i9_1 = 1;
|
|
299
|
-
suspendResult = this.vn8_1.yn7_1.q1w(this);
|
|
300
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
301
|
-
return suspendResult;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
continue $sm;
|
|
305
|
-
case 1:
|
|
306
|
-
var message = toString(trim(this.vn8_1.xn7_1));
|
|
307
|
-
if (charSequenceLength(message) > 0) {
|
|
308
|
-
this.vn8_1.vn7_1.cn8(message);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return Unit_instance;
|
|
312
|
-
case 2:
|
|
313
|
-
throw this.l9_1;
|
|
314
|
-
}
|
|
315
|
-
} catch ($p) {
|
|
316
|
-
var e = $p;
|
|
317
|
-
if (this.j9_1 === 2) {
|
|
318
|
-
throw e;
|
|
319
|
-
} else {
|
|
320
|
-
this.i9_1 = this.j9_1;
|
|
321
|
-
this.l9_1 = e;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
while (true);
|
|
325
|
-
};
|
|
326
|
-
function HttpClientCallLogger(logger) {
|
|
327
|
-
this.vn7_1 = logger;
|
|
328
|
-
this.wn7_1 = StringBuilder_init_$Create$();
|
|
329
|
-
this.xn7_1 = StringBuilder_init_$Create$();
|
|
330
|
-
this.yn7_1 = Job();
|
|
331
|
-
this.zn7_1 = Job();
|
|
332
|
-
this.an8_1 = atomic$boolean$1(false);
|
|
333
|
-
this.bn8_1 = atomic$boolean$1(false);
|
|
334
|
-
}
|
|
335
|
-
protoOf(HttpClientCallLogger).wn8 = function (message) {
|
|
336
|
-
var tmp0 = this.wn7_1;
|
|
337
|
-
// Inline function 'kotlin.text.trim' call
|
|
338
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
339
|
-
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
340
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
341
|
-
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
342
|
-
};
|
|
343
|
-
protoOf(HttpClientCallLogger).xn8 = function (message) {
|
|
344
|
-
var tmp0 = this.xn7_1;
|
|
345
|
-
// Inline function 'kotlin.text.trim' call
|
|
346
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
347
|
-
var value = toString(trim(isCharSequence(message) ? message : THROW_CCE()));
|
|
348
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
349
|
-
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
350
|
-
this.zn7_1.r23();
|
|
351
|
-
};
|
|
352
|
-
protoOf(HttpClientCallLogger).yn8 = function (message, $completion) {
|
|
353
|
-
var tmp = new $logResponseExceptionCOROUTINE$(this, message, $completion);
|
|
354
|
-
tmp.k9_1 = Unit_instance;
|
|
355
|
-
tmp.l9_1 = null;
|
|
356
|
-
return tmp.q9();
|
|
357
|
-
};
|
|
358
|
-
protoOf(HttpClientCallLogger).zn8 = function (message, $completion) {
|
|
359
|
-
var tmp = new $logResponseBodyCOROUTINE$(this, message, $completion);
|
|
360
|
-
tmp.k9_1 = Unit_instance;
|
|
361
|
-
tmp.l9_1 = null;
|
|
362
|
-
return tmp.q9();
|
|
363
|
-
};
|
|
364
|
-
protoOf(HttpClientCallLogger).an9 = function () {
|
|
365
|
-
if (!this.an8_1.atomicfu$compareAndSet(false, true))
|
|
366
|
-
return Unit_instance;
|
|
367
|
-
try {
|
|
368
|
-
var message = toString(trim(this.wn7_1));
|
|
369
|
-
// Inline function 'kotlin.text.isNotEmpty' call
|
|
370
|
-
if (charSequenceLength(message) > 0) {
|
|
371
|
-
this.vn7_1.cn8(message);
|
|
372
|
-
}
|
|
373
|
-
}finally {
|
|
374
|
-
this.yn7_1.r23();
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
protoOf(HttpClientCallLogger).bn9 = function ($completion) {
|
|
378
|
-
var tmp = new $closeResponseLogCOROUTINE$(this, $completion);
|
|
379
|
-
tmp.k9_1 = Unit_instance;
|
|
380
|
-
tmp.l9_1 = null;
|
|
381
|
-
return tmp.q9();
|
|
382
|
-
};
|
|
383
|
-
function get_BinaryLogBodyFilter() {
|
|
384
|
-
_init_properties_LogBodyFilter_kt__oen9w();
|
|
385
|
-
return BinaryLogBodyFilter;
|
|
386
|
-
}
|
|
387
|
-
var BinaryLogBodyFilter;
|
|
388
|
-
function CommonLogBodyFilter() {
|
|
389
|
-
}
|
|
390
|
-
function Empty() {
|
|
391
|
-
}
|
|
392
|
-
var Empty_instance;
|
|
393
|
-
function Empty_getInstance() {
|
|
394
|
-
return Empty_instance;
|
|
395
|
-
}
|
|
396
|
-
function Skip(reason, byteSize) {
|
|
397
|
-
reason = reason === VOID ? null : reason;
|
|
398
|
-
byteSize = byteSize === VOID ? null : byteSize;
|
|
399
|
-
this.gn9_1 = reason;
|
|
400
|
-
this.hn9_1 = byteSize;
|
|
401
|
-
}
|
|
402
|
-
protoOf(Skip).fn9 = function () {
|
|
403
|
-
return this.hn9_1;
|
|
404
|
-
};
|
|
405
|
-
function Content() {
|
|
406
|
-
}
|
|
407
|
-
function BufferContent(buffer, charset, byteSize) {
|
|
408
|
-
byteSize = byteSize === VOID ? buffer.g1() : byteSize;
|
|
409
|
-
this.in9_1 = buffer;
|
|
410
|
-
this.jn9_1 = charset;
|
|
411
|
-
this.kn9_1 = byteSize;
|
|
412
|
-
}
|
|
413
|
-
protoOf(BufferContent).fn9 = function () {
|
|
414
|
-
return this.kn9_1;
|
|
415
|
-
};
|
|
416
|
-
protoOf(BufferContent).x66 = function () {
|
|
417
|
-
return readText(this.in9_1, this.jn9_1);
|
|
418
|
-
};
|
|
419
|
-
function BodyFilterResult() {
|
|
420
|
-
}
|
|
421
|
-
function $filterAllCOROUTINE$(_this__u8e3s4, contentLength, contentType, headers, body, resultContinuation) {
|
|
422
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
423
|
-
this.tn9_1 = _this__u8e3s4;
|
|
424
|
-
this.un9_1 = contentLength;
|
|
425
|
-
this.vn9_1 = contentType;
|
|
426
|
-
this.wn9_1 = headers;
|
|
427
|
-
this.xn9_1 = body;
|
|
428
|
-
}
|
|
429
|
-
protoOf($filterAllCOROUTINE$).q9 = function () {
|
|
430
|
-
var suspendResult = this.k9_1;
|
|
431
|
-
$sm: do
|
|
432
|
-
try {
|
|
433
|
-
var tmp = this.i9_1;
|
|
434
|
-
switch (tmp) {
|
|
435
|
-
case 0:
|
|
436
|
-
this.j9_1 = 6;
|
|
437
|
-
if (this.wn9_1.i36('Content-Encoding')) {
|
|
438
|
-
return new Skip('encoded', this.un9_1);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
if (!(this.vn9_1 == null) && isTextType(this.vn9_1)) {
|
|
442
|
-
this.i9_1 = 5;
|
|
443
|
-
suspendResult = readBuffer(this.xn9_1, this);
|
|
444
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
445
|
-
return suspendResult;
|
|
446
|
-
}
|
|
447
|
-
continue $sm;
|
|
448
|
-
} else {
|
|
449
|
-
this.i9_1 = 1;
|
|
450
|
-
continue $sm;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
case 1:
|
|
454
|
-
var tmp_0 = this;
|
|
455
|
-
var tmp_1;
|
|
456
|
-
if (!(this.vn9_1 == null)) {
|
|
457
|
-
var tmp1_elvis_lhs = charset(this.vn9_1);
|
|
458
|
-
tmp_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().d31_1 : tmp1_elvis_lhs;
|
|
459
|
-
} else {
|
|
460
|
-
tmp_1 = Charsets_getInstance().d31_1;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
tmp_0.dna_1 = tmp_1;
|
|
464
|
-
this.cna_1 = false;
|
|
465
|
-
this.bna_1 = new Int8Array(1024);
|
|
466
|
-
this.i9_1 = 2;
|
|
467
|
-
suspendResult = readAvailable(this.xn9_1, this.bna_1, VOID, VOID, this);
|
|
468
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
469
|
-
return suspendResult;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
continue $sm;
|
|
473
|
-
case 2:
|
|
474
|
-
var firstReadSize = suspendResult;
|
|
475
|
-
if (firstReadSize < 1) {
|
|
476
|
-
return Empty_instance;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
var this_0 = new Buffer();
|
|
480
|
-
writeFully(this_0, this.bna_1, 0, firstReadSize);
|
|
481
|
-
var buffer = this_0;
|
|
482
|
-
var tmp_2;
|
|
483
|
-
try {
|
|
484
|
-
tmp_2 = decode(this.dna_1.h31(), buffer);
|
|
485
|
-
} catch ($p) {
|
|
486
|
-
var tmp_3;
|
|
487
|
-
if ($p instanceof MalformedInputException) {
|
|
488
|
-
var _unused_var__etf5q3 = $p;
|
|
489
|
-
this.cna_1 = true;
|
|
490
|
-
tmp_3 = '';
|
|
491
|
-
} else {
|
|
492
|
-
throw $p;
|
|
493
|
-
}
|
|
494
|
-
tmp_2 = tmp_3;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
var firstChunkText = tmp_2;
|
|
498
|
-
if (!this.cna_1) {
|
|
499
|
-
var lastCharIndex = -1;
|
|
500
|
-
var inductionVariable = 0;
|
|
501
|
-
var last = firstChunkText.length;
|
|
502
|
-
while (inductionVariable < last) {
|
|
503
|
-
var ch = charCodeAt(firstChunkText, inductionVariable);
|
|
504
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
505
|
-
lastCharIndex = lastCharIndex + 1 | 0;
|
|
506
|
-
}
|
|
507
|
-
var inductionVariable_0 = 0;
|
|
508
|
-
var last_0 = firstChunkText.length;
|
|
509
|
-
$l$loop: while (inductionVariable_0 < last_0) {
|
|
510
|
-
var i = inductionVariable_0;
|
|
511
|
-
var ch_0 = charCodeAt(firstChunkText, inductionVariable_0);
|
|
512
|
-
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
513
|
-
if (ch_0 === _Char___init__impl__6a9atx(65533) && !(i === lastCharIndex)) {
|
|
514
|
-
this.cna_1 = true;
|
|
515
|
-
break $l$loop;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
if (this.cna_1) {
|
|
521
|
-
var tmp_4 = this;
|
|
522
|
-
tmp_4.yn9_1 = new Skip('binary', this.un9_1);
|
|
523
|
-
this.i9_1 = 4;
|
|
524
|
-
continue $sm;
|
|
525
|
-
} else {
|
|
526
|
-
this.zn9_1 = new Buffer();
|
|
527
|
-
this.ana_1 = this.zn9_1;
|
|
528
|
-
writeFully(this.ana_1, this.bna_1, 0, firstReadSize);
|
|
529
|
-
this.i9_1 = 3;
|
|
530
|
-
suspendResult = readBuffer(this.xn9_1, this);
|
|
531
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
532
|
-
return suspendResult;
|
|
533
|
-
}
|
|
534
|
-
continue $sm;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
case 3:
|
|
538
|
-
var ARGUMENT = suspendResult;
|
|
539
|
-
this.ana_1.e2n(ARGUMENT);
|
|
540
|
-
var ARGUMENT_0 = this.zn9_1;
|
|
541
|
-
var tmp_5 = this;
|
|
542
|
-
var tmp2_safe_receiver = this.vn9_1;
|
|
543
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : charset(tmp2_safe_receiver);
|
|
544
|
-
tmp_5.yn9_1 = new BufferContent(ARGUMENT_0, tmp3_elvis_lhs == null ? Charsets_getInstance().d31_1 : tmp3_elvis_lhs);
|
|
545
|
-
this.i9_1 = 4;
|
|
546
|
-
continue $sm;
|
|
547
|
-
case 4:
|
|
548
|
-
return this.yn9_1;
|
|
549
|
-
case 5:
|
|
550
|
-
var ARGUMENT_1 = suspendResult;
|
|
551
|
-
var tmp0_elvis_lhs = charset(this.vn9_1);
|
|
552
|
-
return new BufferContent(ARGUMENT_1, tmp0_elvis_lhs == null ? Charsets_getInstance().d31_1 : tmp0_elvis_lhs);
|
|
553
|
-
case 6:
|
|
554
|
-
throw this.l9_1;
|
|
555
|
-
}
|
|
556
|
-
} catch ($p) {
|
|
557
|
-
var e = $p;
|
|
558
|
-
if (this.j9_1 === 6) {
|
|
559
|
-
throw e;
|
|
560
|
-
} else {
|
|
561
|
-
this.i9_1 = this.j9_1;
|
|
562
|
-
this.l9_1 = e;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
while (true);
|
|
566
|
-
};
|
|
567
|
-
function BinaryLogBodyFilter$1() {
|
|
568
|
-
}
|
|
569
|
-
protoOf(BinaryLogBodyFilter$1).dn9 = function (contentLength, contentType, headers, body, $completion) {
|
|
570
|
-
var tmp = new $filterAllCOROUTINE$(this, contentLength, contentType, headers, body, $completion);
|
|
571
|
-
tmp.k9_1 = Unit_instance;
|
|
572
|
-
tmp.l9_1 = null;
|
|
573
|
-
return tmp.q9();
|
|
574
|
-
};
|
|
575
|
-
var properties_initialized_LogBodyFilter_kt_tiz4du;
|
|
576
|
-
function _init_properties_LogBodyFilter_kt__oen9w() {
|
|
577
|
-
if (!properties_initialized_LogBodyFilter_kt_tiz4du) {
|
|
578
|
-
properties_initialized_LogBodyFilter_kt_tiz4du = true;
|
|
579
|
-
BinaryLogBodyFilter = new BinaryLogBodyFilter$1();
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
var LogLevel_ALL_instance;
|
|
583
|
-
var LogLevel_HEADERS_instance;
|
|
584
|
-
var LogLevel_BODY_instance;
|
|
585
|
-
var LogLevel_INFO_instance;
|
|
586
|
-
var LogLevel_NONE_instance;
|
|
587
|
-
var LogLevel_entriesInitialized;
|
|
588
|
-
function LogLevel_initEntries() {
|
|
589
|
-
if (LogLevel_entriesInitialized)
|
|
590
|
-
return Unit_instance;
|
|
591
|
-
LogLevel_entriesInitialized = true;
|
|
592
|
-
LogLevel_ALL_instance = new LogLevel('ALL', 0, true, true, true);
|
|
593
|
-
LogLevel_HEADERS_instance = new LogLevel('HEADERS', 1, true, true, false);
|
|
594
|
-
LogLevel_BODY_instance = new LogLevel('BODY', 2, true, false, true);
|
|
595
|
-
LogLevel_INFO_instance = new LogLevel('INFO', 3, true, false, false);
|
|
596
|
-
LogLevel_NONE_instance = new LogLevel('NONE', 4, false, false, false);
|
|
597
|
-
}
|
|
598
|
-
function LogLevel(name, ordinal, info, headers, body) {
|
|
599
|
-
Enum.call(this, name, ordinal);
|
|
600
|
-
this.gna_1 = info;
|
|
601
|
-
this.hna_1 = headers;
|
|
602
|
-
this.ina_1 = body;
|
|
603
|
-
}
|
|
604
|
-
function LogLevel_ALL_getInstance() {
|
|
605
|
-
LogLevel_initEntries();
|
|
606
|
-
return LogLevel_ALL_instance;
|
|
607
|
-
}
|
|
608
|
-
function LogLevel_HEADERS_getInstance() {
|
|
609
|
-
LogLevel_initEntries();
|
|
610
|
-
return LogLevel_HEADERS_instance;
|
|
611
|
-
}
|
|
612
|
-
function LogLevel_BODY_getInstance() {
|
|
613
|
-
LogLevel_initEntries();
|
|
614
|
-
return LogLevel_BODY_instance;
|
|
615
|
-
}
|
|
616
|
-
function LogLevel_INFO_getInstance() {
|
|
617
|
-
LogLevel_initEntries();
|
|
618
|
-
return LogLevel_INFO_instance;
|
|
619
|
-
}
|
|
620
|
-
function LogLevel_NONE_getInstance() {
|
|
621
|
-
LogLevel_initEntries();
|
|
622
|
-
return LogLevel_NONE_instance;
|
|
623
|
-
}
|
|
624
|
-
function LoggedContent(originalContent, channel) {
|
|
625
|
-
ReadChannelContent.call(this);
|
|
626
|
-
this.kna_1 = originalContent;
|
|
627
|
-
this.lna_1 = channel;
|
|
628
|
-
this.mna_1 = this.kna_1.u3p();
|
|
629
|
-
this.nna_1 = this.kna_1.w3p();
|
|
630
|
-
this.ona_1 = this.kna_1.v3p();
|
|
631
|
-
this.pna_1 = this.kna_1.v3j();
|
|
632
|
-
}
|
|
633
|
-
protoOf(LoggedContent).u3p = function () {
|
|
634
|
-
return this.mna_1;
|
|
635
|
-
};
|
|
636
|
-
protoOf(LoggedContent).w3p = function () {
|
|
637
|
-
return this.nna_1;
|
|
638
|
-
};
|
|
639
|
-
protoOf(LoggedContent).v3p = function () {
|
|
640
|
-
return this.ona_1;
|
|
641
|
-
};
|
|
642
|
-
protoOf(LoggedContent).v3j = function () {
|
|
643
|
-
return this.pna_1;
|
|
644
|
-
};
|
|
645
|
-
protoOf(LoggedContent).a3q = function () {
|
|
646
|
-
return this.lna_1;
|
|
647
|
-
};
|
|
648
|
-
function Companion() {
|
|
649
|
-
}
|
|
650
|
-
var Companion_instance;
|
|
651
|
-
function Companion_getInstance_0() {
|
|
652
|
-
return Companion_instance;
|
|
653
|
-
}
|
|
654
|
-
function get_SIMPLE(_this__u8e3s4) {
|
|
655
|
-
return SimpleLogger_instance;
|
|
656
|
-
}
|
|
657
|
-
function SimpleLogger() {
|
|
658
|
-
}
|
|
659
|
-
protoOf(SimpleLogger).cn8 = function (message) {
|
|
660
|
-
println('HttpClient: ' + message);
|
|
661
|
-
};
|
|
662
|
-
var SimpleLogger_instance;
|
|
663
|
-
function SimpleLogger_getInstance() {
|
|
664
|
-
return SimpleLogger_instance;
|
|
665
|
-
}
|
|
666
|
-
function get_ClientCallLogger() {
|
|
667
|
-
_init_properties_Logging_kt__66pui5();
|
|
668
|
-
return ClientCallLogger;
|
|
669
|
-
}
|
|
670
|
-
var ClientCallLogger;
|
|
671
|
-
function get_DisableLogging() {
|
|
672
|
-
_init_properties_Logging_kt__66pui5();
|
|
673
|
-
return DisableLogging;
|
|
674
|
-
}
|
|
675
|
-
var DisableLogging;
|
|
676
|
-
function get_Logging() {
|
|
677
|
-
_init_properties_Logging_kt__66pui5();
|
|
678
|
-
return Logging;
|
|
679
|
-
}
|
|
680
|
-
var Logging;
|
|
681
|
-
function LoggingConfig() {
|
|
682
|
-
var tmp = this;
|
|
683
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
684
|
-
tmp.qna_1 = ArrayList_init_$Create$();
|
|
685
|
-
var tmp_0 = this;
|
|
686
|
-
// Inline function 'kotlin.collections.mutableListOf' call
|
|
687
|
-
tmp_0.rna_1 = ArrayList_init_$Create$();
|
|
688
|
-
this.sna_1 = null;
|
|
689
|
-
this.tna_1 = LoggingFormat_Default_getInstance();
|
|
690
|
-
this.una_1 = LogLevel_HEADERS_getInstance();
|
|
691
|
-
this.vna_1 = get_BinaryLogBodyFilter();
|
|
692
|
-
}
|
|
693
|
-
protoOf(LoggingConfig).wna = function () {
|
|
694
|
-
var tmp0_elvis_lhs = this.sna_1;
|
|
695
|
-
return tmp0_elvis_lhs == null ? get_DEFAULT(Companion_instance) : tmp0_elvis_lhs;
|
|
696
|
-
};
|
|
697
|
-
protoOf(LoggingConfig).xna = function (placeholder, predicate) {
|
|
698
|
-
this.rna_1.e1(new SanitizedHeader(placeholder, predicate));
|
|
699
|
-
};
|
|
700
|
-
protoOf(LoggingConfig).yna = function (placeholder, predicate, $super) {
|
|
701
|
-
placeholder = placeholder === VOID ? '***' : placeholder;
|
|
702
|
-
var tmp;
|
|
703
|
-
if ($super === VOID) {
|
|
704
|
-
this.xna(placeholder, predicate);
|
|
705
|
-
tmp = Unit_instance;
|
|
706
|
-
} else {
|
|
707
|
-
tmp = $super.xna.call(this, placeholder, predicate);
|
|
708
|
-
}
|
|
709
|
-
return tmp;
|
|
710
|
-
};
|
|
711
|
-
function SanitizedHeader(placeholder, predicate) {
|
|
712
|
-
this.zna_1 = placeholder;
|
|
713
|
-
this.anb_1 = predicate;
|
|
714
|
-
}
|
|
715
|
-
var LoggingFormat_Default_instance;
|
|
716
|
-
var LoggingFormat_OkHttp_instance;
|
|
717
|
-
var LoggingFormat_entriesInitialized;
|
|
718
|
-
function LoggingFormat_initEntries() {
|
|
719
|
-
if (LoggingFormat_entriesInitialized)
|
|
720
|
-
return Unit_instance;
|
|
721
|
-
LoggingFormat_entriesInitialized = true;
|
|
722
|
-
LoggingFormat_Default_instance = new LoggingFormat('Default', 0);
|
|
723
|
-
LoggingFormat_OkHttp_instance = new LoggingFormat('OkHttp', 1);
|
|
724
|
-
}
|
|
725
|
-
function LoggingFormat(name, ordinal) {
|
|
726
|
-
Enum.call(this, name, ordinal);
|
|
727
|
-
}
|
|
728
|
-
function pathQuery(_this__u8e3s4) {
|
|
729
|
-
_init_properties_Logging_kt__66pui5();
|
|
730
|
-
// Inline function 'kotlin.text.buildString' call
|
|
731
|
-
// Inline function 'kotlin.apply' call
|
|
732
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
733
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
734
|
-
var this_1 = _this__u8e3s4.z3o();
|
|
735
|
-
if (charSequenceLength(this_1) === 0) {
|
|
736
|
-
this_0.q('/');
|
|
737
|
-
} else {
|
|
738
|
-
this_0.q(_this__u8e3s4.z3o());
|
|
739
|
-
}
|
|
740
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
741
|
-
var this_2 = _this__u8e3s4.c3p();
|
|
742
|
-
if (!(charSequenceLength(this_2) === 0)) {
|
|
743
|
-
this_0.q('?');
|
|
744
|
-
this_0.q(_this__u8e3s4.c3p());
|
|
745
|
-
}
|
|
746
|
-
return this_0.toString();
|
|
747
|
-
}
|
|
748
|
-
function computeRequestBodySize(content) {
|
|
749
|
-
_init_properties_Logging_kt__66pui5();
|
|
750
|
-
// Inline function 'kotlin.check' call
|
|
751
|
-
if (!(content instanceof OutgoingContent)) {
|
|
752
|
-
throw IllegalStateException_init_$Create$('Check failed.');
|
|
753
|
-
}
|
|
754
|
-
var tmp;
|
|
755
|
-
if (content instanceof ByteArrayContent) {
|
|
756
|
-
tmp = fromInt(content.x3p().length);
|
|
757
|
-
} else {
|
|
758
|
-
if (content instanceof ContentWrapper) {
|
|
759
|
-
tmp = computeRequestBodySize(content.g3q());
|
|
760
|
-
} else {
|
|
761
|
-
if (content instanceof NoContent) {
|
|
762
|
-
tmp = 0n;
|
|
763
|
-
} else {
|
|
764
|
-
if (content instanceof ProtocolUpgrade) {
|
|
765
|
-
tmp = 0n;
|
|
766
|
-
} else {
|
|
767
|
-
var message = 'Unable to calculate the size for type ' + getKClassFromExpression(content).o();
|
|
768
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
return tmp;
|
|
774
|
-
}
|
|
775
|
-
function Context(context) {
|
|
776
|
-
this.bnb_1 = context;
|
|
777
|
-
}
|
|
778
|
-
protoOf(Context).cnb = function (content, $completion) {
|
|
779
|
-
return this.bnb_1.y39(content, $completion);
|
|
780
|
-
};
|
|
781
|
-
protoOf(Context).dnb = function ($completion) {
|
|
782
|
-
return this.bnb_1.z39($completion);
|
|
783
|
-
};
|
|
784
|
-
function SendHook$install$slambda($handler, resultContinuation) {
|
|
785
|
-
this.mnb_1 = $handler;
|
|
786
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
787
|
-
}
|
|
788
|
-
protoOf(SendHook$install$slambda).y48 = function ($this$intercept, it, $completion) {
|
|
789
|
-
var tmp = this.z48($this$intercept, it, $completion);
|
|
790
|
-
tmp.k9_1 = Unit_instance;
|
|
791
|
-
tmp.l9_1 = null;
|
|
792
|
-
return tmp.q9();
|
|
793
|
-
};
|
|
794
|
-
protoOf(SendHook$install$slambda).da = function (p1, p2, $completion) {
|
|
795
|
-
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
796
|
-
return this.y48(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
797
|
-
};
|
|
798
|
-
protoOf(SendHook$install$slambda).q9 = function () {
|
|
799
|
-
var suspendResult = this.k9_1;
|
|
800
|
-
$sm: do
|
|
801
|
-
try {
|
|
802
|
-
var tmp = this.i9_1;
|
|
803
|
-
switch (tmp) {
|
|
804
|
-
case 0:
|
|
805
|
-
this.j9_1 = 2;
|
|
806
|
-
this.i9_1 = 1;
|
|
807
|
-
suspendResult = this.mnb_1(new Context(this.nnb_1), this.nnb_1.u3a_1, this);
|
|
808
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
809
|
-
return suspendResult;
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
continue $sm;
|
|
813
|
-
case 1:
|
|
814
|
-
return Unit_instance;
|
|
815
|
-
case 2:
|
|
816
|
-
throw this.l9_1;
|
|
817
|
-
}
|
|
818
|
-
} catch ($p) {
|
|
819
|
-
var e = $p;
|
|
820
|
-
if (this.j9_1 === 2) {
|
|
821
|
-
throw e;
|
|
822
|
-
} else {
|
|
823
|
-
this.i9_1 = this.j9_1;
|
|
824
|
-
this.l9_1 = e;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
while (true);
|
|
828
|
-
};
|
|
829
|
-
protoOf(SendHook$install$slambda).z48 = function ($this$intercept, it, completion) {
|
|
830
|
-
var i = new SendHook$install$slambda(this.mnb_1, completion);
|
|
831
|
-
i.nnb_1 = $this$intercept;
|
|
832
|
-
i.onb_1 = it;
|
|
833
|
-
return i;
|
|
834
|
-
};
|
|
835
|
-
function SendHook$install$slambda_0($handler, resultContinuation) {
|
|
836
|
-
var i = new SendHook$install$slambda($handler, resultContinuation);
|
|
837
|
-
var l = function ($this$intercept, it, $completion) {
|
|
838
|
-
return i.y48($this$intercept, it, $completion);
|
|
839
|
-
};
|
|
840
|
-
l.$arity = 2;
|
|
841
|
-
return l;
|
|
842
|
-
}
|
|
843
|
-
function SendHook() {
|
|
844
|
-
}
|
|
845
|
-
protoOf(SendHook).pnb = function (client, handler) {
|
|
846
|
-
var tmp = Phases_getInstance().p4a_1;
|
|
847
|
-
client.h48_1.y3a(tmp, SendHook$install$slambda_0(handler, null));
|
|
848
|
-
};
|
|
849
|
-
protoOf(SendHook).b4i = function (client, handler) {
|
|
850
|
-
return this.pnb(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
851
|
-
};
|
|
852
|
-
var SendHook_instance;
|
|
853
|
-
function SendHook_getInstance() {
|
|
854
|
-
return SendHook_instance;
|
|
855
|
-
}
|
|
856
|
-
function Context_0(context) {
|
|
857
|
-
this.qnb_1 = context;
|
|
858
|
-
}
|
|
859
|
-
protoOf(Context_0).i5l = function (response, $completion) {
|
|
860
|
-
return this.qnb_1.y39(response, $completion);
|
|
861
|
-
};
|
|
862
|
-
function ResponseAfterEncodingHook$install$slambda($handler, resultContinuation) {
|
|
863
|
-
this.znb_1 = $handler;
|
|
864
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
865
|
-
}
|
|
866
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).n4i = function ($this$intercept, it, $completion) {
|
|
867
|
-
var tmp = this.o4i($this$intercept, it, $completion);
|
|
868
|
-
tmp.k9_1 = Unit_instance;
|
|
869
|
-
tmp.l9_1 = null;
|
|
870
|
-
return tmp.q9();
|
|
871
|
-
};
|
|
872
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).da = function (p1, p2, $completion) {
|
|
873
|
-
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
874
|
-
return this.n4i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
875
|
-
};
|
|
876
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).q9 = function () {
|
|
877
|
-
var suspendResult = this.k9_1;
|
|
878
|
-
$sm: do
|
|
879
|
-
try {
|
|
880
|
-
var tmp = this.i9_1;
|
|
881
|
-
switch (tmp) {
|
|
882
|
-
case 0:
|
|
883
|
-
this.j9_1 = 2;
|
|
884
|
-
this.i9_1 = 1;
|
|
885
|
-
suspendResult = this.znb_1(new Context_0(this.anc_1), this.anc_1.x39(), this);
|
|
886
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
887
|
-
return suspendResult;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
continue $sm;
|
|
891
|
-
case 1:
|
|
892
|
-
return Unit_instance;
|
|
893
|
-
case 2:
|
|
894
|
-
throw this.l9_1;
|
|
895
|
-
}
|
|
896
|
-
} catch ($p) {
|
|
897
|
-
var e = $p;
|
|
898
|
-
if (this.j9_1 === 2) {
|
|
899
|
-
throw e;
|
|
900
|
-
} else {
|
|
901
|
-
this.i9_1 = this.j9_1;
|
|
902
|
-
this.l9_1 = e;
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
while (true);
|
|
906
|
-
};
|
|
907
|
-
protoOf(ResponseAfterEncodingHook$install$slambda).o4i = function ($this$intercept, it, completion) {
|
|
908
|
-
var i = new ResponseAfterEncodingHook$install$slambda(this.znb_1, completion);
|
|
909
|
-
i.anc_1 = $this$intercept;
|
|
910
|
-
i.bnc_1 = it;
|
|
911
|
-
return i;
|
|
912
|
-
};
|
|
913
|
-
function ResponseAfterEncodingHook$install$slambda_0($handler, resultContinuation) {
|
|
914
|
-
var i = new ResponseAfterEncodingHook$install$slambda($handler, resultContinuation);
|
|
915
|
-
var l = function ($this$intercept, it, $completion) {
|
|
916
|
-
return i.n4i($this$intercept, it, $completion);
|
|
917
|
-
};
|
|
918
|
-
l.$arity = 2;
|
|
919
|
-
return l;
|
|
920
|
-
}
|
|
921
|
-
function ResponseAfterEncodingHook() {
|
|
922
|
-
}
|
|
923
|
-
protoOf(ResponseAfterEncodingHook).cnc = function (client, handler) {
|
|
924
|
-
var afterState = new PipelinePhase('AfterState');
|
|
925
|
-
client.i48_1.v3a(Phases_getInstance_0().r4i_1, afterState);
|
|
926
|
-
client.i48_1.y3a(afterState, ResponseAfterEncodingHook$install$slambda_0(handler, null));
|
|
927
|
-
};
|
|
928
|
-
protoOf(ResponseAfterEncodingHook).b4i = function (client, handler) {
|
|
929
|
-
return this.cnc(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
930
|
-
};
|
|
931
|
-
var ResponseAfterEncodingHook_instance;
|
|
932
|
-
function ResponseAfterEncodingHook_getInstance() {
|
|
933
|
-
return ResponseAfterEncodingHook_instance;
|
|
934
|
-
}
|
|
935
|
-
function Context_1(context) {
|
|
936
|
-
this.dnc_1 = context;
|
|
937
|
-
}
|
|
938
|
-
protoOf(Context_1).enc = function ($completion) {
|
|
939
|
-
return this.dnc_1.z39($completion);
|
|
940
|
-
};
|
|
941
|
-
function ResponseHook$install$slambda($handler, resultContinuation) {
|
|
942
|
-
this.nnc_1 = $handler;
|
|
943
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
944
|
-
}
|
|
945
|
-
protoOf(ResponseHook$install$slambda).n4i = function ($this$intercept, it, $completion) {
|
|
946
|
-
var tmp = this.o4i($this$intercept, it, $completion);
|
|
947
|
-
tmp.k9_1 = Unit_instance;
|
|
948
|
-
tmp.l9_1 = null;
|
|
949
|
-
return tmp.q9();
|
|
950
|
-
};
|
|
951
|
-
protoOf(ResponseHook$install$slambda).da = function (p1, p2, $completion) {
|
|
952
|
-
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
953
|
-
return this.n4i(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
954
|
-
};
|
|
955
|
-
protoOf(ResponseHook$install$slambda).q9 = function () {
|
|
956
|
-
var suspendResult = this.k9_1;
|
|
957
|
-
$sm: do
|
|
958
|
-
try {
|
|
959
|
-
var tmp = this.i9_1;
|
|
960
|
-
switch (tmp) {
|
|
961
|
-
case 0:
|
|
962
|
-
this.j9_1 = 2;
|
|
963
|
-
this.i9_1 = 1;
|
|
964
|
-
suspendResult = this.nnc_1(new Context_1(this.onc_1), this.onc_1.x39(), this);
|
|
965
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
966
|
-
return suspendResult;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
continue $sm;
|
|
970
|
-
case 1:
|
|
971
|
-
return Unit_instance;
|
|
972
|
-
case 2:
|
|
973
|
-
throw this.l9_1;
|
|
974
|
-
}
|
|
975
|
-
} catch ($p) {
|
|
976
|
-
var e = $p;
|
|
977
|
-
if (this.j9_1 === 2) {
|
|
978
|
-
throw e;
|
|
979
|
-
} else {
|
|
980
|
-
this.i9_1 = this.j9_1;
|
|
981
|
-
this.l9_1 = e;
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
while (true);
|
|
985
|
-
};
|
|
986
|
-
protoOf(ResponseHook$install$slambda).o4i = function ($this$intercept, it, completion) {
|
|
987
|
-
var i = new ResponseHook$install$slambda(this.nnc_1, completion);
|
|
988
|
-
i.onc_1 = $this$intercept;
|
|
989
|
-
i.pnc_1 = it;
|
|
990
|
-
return i;
|
|
991
|
-
};
|
|
992
|
-
function ResponseHook$install$slambda_0($handler, resultContinuation) {
|
|
993
|
-
var i = new ResponseHook$install$slambda($handler, resultContinuation);
|
|
994
|
-
var l = function ($this$intercept, it, $completion) {
|
|
995
|
-
return i.n4i($this$intercept, it, $completion);
|
|
996
|
-
};
|
|
997
|
-
l.$arity = 2;
|
|
998
|
-
return l;
|
|
999
|
-
}
|
|
1000
|
-
function ResponseHook() {
|
|
1001
|
-
}
|
|
1002
|
-
protoOf(ResponseHook).qnc = function (client, handler) {
|
|
1003
|
-
var tmp = Phases_getInstance_0().r4i_1;
|
|
1004
|
-
client.i48_1.y3a(tmp, ResponseHook$install$slambda_0(handler, null));
|
|
1005
|
-
};
|
|
1006
|
-
protoOf(ResponseHook).b4i = function (client, handler) {
|
|
1007
|
-
return this.qnc(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1008
|
-
};
|
|
1009
|
-
var ResponseHook_instance;
|
|
1010
|
-
function ResponseHook_getInstance() {
|
|
1011
|
-
return ResponseHook_instance;
|
|
1012
|
-
}
|
|
1013
|
-
function Context_2(context) {
|
|
1014
|
-
this.rnc_1 = context;
|
|
1015
|
-
}
|
|
1016
|
-
protoOf(Context_2).snc = function ($completion) {
|
|
1017
|
-
return this.rnc_1.z39($completion);
|
|
1018
|
-
};
|
|
1019
|
-
function ReceiveHook$install$slambda($handler, resultContinuation) {
|
|
1020
|
-
this.bnd_1 = $handler;
|
|
1021
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1022
|
-
}
|
|
1023
|
-
protoOf(ReceiveHook$install$slambda).t49 = function ($this$intercept, it, $completion) {
|
|
1024
|
-
var tmp = this.u49($this$intercept, it, $completion);
|
|
1025
|
-
tmp.k9_1 = Unit_instance;
|
|
1026
|
-
tmp.l9_1 = null;
|
|
1027
|
-
return tmp.q9();
|
|
1028
|
-
};
|
|
1029
|
-
protoOf(ReceiveHook$install$slambda).da = function (p1, p2, $completion) {
|
|
1030
|
-
var tmp = p1 instanceof PipelineContext ? p1 : THROW_CCE();
|
|
1031
|
-
return this.t49(tmp, p2 instanceof HttpResponseContainer ? p2 : THROW_CCE(), $completion);
|
|
1032
|
-
};
|
|
1033
|
-
protoOf(ReceiveHook$install$slambda).q9 = function () {
|
|
1034
|
-
var suspendResult = this.k9_1;
|
|
1035
|
-
$sm: do
|
|
1036
|
-
try {
|
|
1037
|
-
var tmp = this.i9_1;
|
|
1038
|
-
switch (tmp) {
|
|
1039
|
-
case 0:
|
|
1040
|
-
this.j9_1 = 2;
|
|
1041
|
-
this.i9_1 = 1;
|
|
1042
|
-
suspendResult = this.bnd_1(new Context_2(this.cnd_1), this.cnd_1.u3a_1, this);
|
|
1043
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1044
|
-
return suspendResult;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
continue $sm;
|
|
1048
|
-
case 1:
|
|
1049
|
-
return Unit_instance;
|
|
1050
|
-
case 2:
|
|
1051
|
-
throw this.l9_1;
|
|
1052
|
-
}
|
|
1053
|
-
} catch ($p) {
|
|
1054
|
-
var e = $p;
|
|
1055
|
-
if (this.j9_1 === 2) {
|
|
1056
|
-
throw e;
|
|
1057
|
-
} else {
|
|
1058
|
-
this.i9_1 = this.j9_1;
|
|
1059
|
-
this.l9_1 = e;
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
while (true);
|
|
1063
|
-
};
|
|
1064
|
-
protoOf(ReceiveHook$install$slambda).u49 = function ($this$intercept, it, completion) {
|
|
1065
|
-
var i = new ReceiveHook$install$slambda(this.bnd_1, completion);
|
|
1066
|
-
i.cnd_1 = $this$intercept;
|
|
1067
|
-
i.dnd_1 = it;
|
|
1068
|
-
return i;
|
|
1069
|
-
};
|
|
1070
|
-
function ReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
1071
|
-
var i = new ReceiveHook$install$slambda($handler, resultContinuation);
|
|
1072
|
-
var l = function ($this$intercept, it, $completion) {
|
|
1073
|
-
return i.t49($this$intercept, it, $completion);
|
|
1074
|
-
};
|
|
1075
|
-
l.$arity = 2;
|
|
1076
|
-
return l;
|
|
1077
|
-
}
|
|
1078
|
-
function ReceiveHook() {
|
|
1079
|
-
}
|
|
1080
|
-
protoOf(ReceiveHook).fnd = function (client, handler) {
|
|
1081
|
-
var tmp = Phases_getInstance_1().d4b_1;
|
|
1082
|
-
client.g48_1.y3a(tmp, ReceiveHook$install$slambda_0(handler, null));
|
|
1083
|
-
};
|
|
1084
|
-
protoOf(ReceiveHook).b4i = function (client, handler) {
|
|
1085
|
-
return this.fnd(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
1086
|
-
};
|
|
1087
|
-
var ReceiveHook_instance;
|
|
1088
|
-
function ReceiveHook_getInstance() {
|
|
1089
|
-
return ReceiveHook_instance;
|
|
1090
|
-
}
|
|
1091
|
-
function LoggingConfig$_init_$ref_f1nb0k() {
|
|
1092
|
-
var l = function () {
|
|
1093
|
-
return new LoggingConfig();
|
|
1094
|
-
};
|
|
1095
|
-
l.callableName = '<init>';
|
|
1096
|
-
return l;
|
|
1097
|
-
}
|
|
1098
|
-
function Logging$lambda($this$createClientPlugin) {
|
|
1099
|
-
_init_properties_Logging_kt__66pui5();
|
|
1100
|
-
var logger = $this$createClientPlugin.v4i_1.wna();
|
|
1101
|
-
var level = $this$createClientPlugin.v4i_1.una_1;
|
|
1102
|
-
var filters = $this$createClientPlugin.v4i_1.qna_1;
|
|
1103
|
-
var sanitizedHeaders = $this$createClientPlugin.v4i_1.rna_1;
|
|
1104
|
-
var okHttpFormat = $this$createClientPlugin.v4i_1.tna_1.equals(LoggingFormat_OkHttp_getInstance());
|
|
1105
|
-
var bodyFilter = $this$createClientPlugin.v4i_1.vna_1;
|
|
1106
|
-
var tmp = SendHook_instance;
|
|
1107
|
-
$this$createClientPlugin.y4i(tmp, Logging$lambda$slambda_0(okHttpFormat, logger, filters, sanitizedHeaders, level, $this$createClientPlugin, bodyFilter, null));
|
|
1108
|
-
var tmp_0 = ResponseAfterEncodingHook_instance;
|
|
1109
|
-
$this$createClientPlugin.y4i(tmp_0, Logging$lambda$slambda_2(okHttpFormat, logger, sanitizedHeaders, level, bodyFilter, null));
|
|
1110
|
-
var tmp_1 = ResponseHook_instance;
|
|
1111
|
-
$this$createClientPlugin.y4i(tmp_1, Logging$lambda$slambda_4(okHttpFormat, level, sanitizedHeaders, null));
|
|
1112
|
-
var tmp_2 = ReceiveHook_instance;
|
|
1113
|
-
$this$createClientPlugin.y4i(tmp_2, Logging$lambda$slambda_6(okHttpFormat, level, null));
|
|
1114
|
-
if (okHttpFormat)
|
|
1115
|
-
return Unit_instance;
|
|
1116
|
-
if (!level.ina_1)
|
|
1117
|
-
return Unit_instance;
|
|
1118
|
-
var tmp_3 = get_ResponseObserver();
|
|
1119
|
-
var responseObserver = tmp_3.k4b(Logging$lambda$lambda(level));
|
|
1120
|
-
get_ResponseObserver().l4b(responseObserver, $this$createClientPlugin.u4i_1);
|
|
1121
|
-
return Unit_instance;
|
|
1122
|
-
}
|
|
1123
|
-
function Logging$lambda$logOutgoingContent$lambda(it) {
|
|
1124
|
-
_init_properties_Logging_kt__66pui5();
|
|
1125
|
-
return it;
|
|
1126
|
-
}
|
|
1127
|
-
function Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation) {
|
|
1128
|
-
this.ond_1 = $content;
|
|
1129
|
-
this.pnd_1 = $channel;
|
|
1130
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1131
|
-
}
|
|
1132
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).d30 = function ($this$launch, $completion) {
|
|
1133
|
-
var tmp = this.e30($this$launch, $completion);
|
|
1134
|
-
tmp.k9_1 = Unit_instance;
|
|
1135
|
-
tmp.l9_1 = null;
|
|
1136
|
-
return tmp.q9();
|
|
1137
|
-
};
|
|
1138
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).ca = function (p1, $completion) {
|
|
1139
|
-
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1140
|
-
};
|
|
1141
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).q9 = function () {
|
|
1142
|
-
var suspendResult = this.k9_1;
|
|
1143
|
-
$sm: do
|
|
1144
|
-
try {
|
|
1145
|
-
var tmp = this.i9_1;
|
|
1146
|
-
switch (tmp) {
|
|
1147
|
-
case 0:
|
|
1148
|
-
this.j9_1 = 2;
|
|
1149
|
-
this.i9_1 = 1;
|
|
1150
|
-
suspendResult = this.ond_1.c3q(this.pnd_1, this);
|
|
1151
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1152
|
-
return suspendResult;
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
continue $sm;
|
|
1156
|
-
case 1:
|
|
1157
|
-
this.pnd_1.t4();
|
|
1158
|
-
return Unit_instance;
|
|
1159
|
-
case 2:
|
|
1160
|
-
throw this.l9_1;
|
|
1161
|
-
}
|
|
1162
|
-
} catch ($p) {
|
|
1163
|
-
var e = $p;
|
|
1164
|
-
if (this.j9_1 === 2) {
|
|
1165
|
-
throw e;
|
|
1166
|
-
} else {
|
|
1167
|
-
this.i9_1 = this.j9_1;
|
|
1168
|
-
this.l9_1 = e;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
while (true);
|
|
1172
|
-
};
|
|
1173
|
-
protoOf(Logging$lambda$logOutgoingContent$slambda).e30 = function ($this$launch, completion) {
|
|
1174
|
-
var i = new Logging$lambda$logOutgoingContent$slambda(this.ond_1, this.pnd_1, completion);
|
|
1175
|
-
i.qnd_1 = $this$launch;
|
|
1176
|
-
return i;
|
|
1177
|
-
};
|
|
1178
|
-
function Logging$lambda$logOutgoingContent$slambda_0($content, $channel, resultContinuation) {
|
|
1179
|
-
var i = new Logging$lambda$logOutgoingContent$slambda($content, $channel, resultContinuation);
|
|
1180
|
-
var l = function ($this$launch, $completion) {
|
|
1181
|
-
return i.d30($this$launch, $completion);
|
|
1182
|
-
};
|
|
1183
|
-
l.$arity = 1;
|
|
1184
|
-
return l;
|
|
1185
|
-
}
|
|
1186
|
-
function Logging$lambda$logRequestOkHttpFormat$lambda(channel) {
|
|
1187
|
-
_init_properties_Logging_kt__66pui5();
|
|
1188
|
-
return GZipEncoder_getInstance().w35(channel);
|
|
1189
|
-
}
|
|
1190
|
-
function Logging$lambda$logResponseOkHttpFormat$lambda($origChannel) {
|
|
1191
|
-
return function ($this$replaceResponse) {
|
|
1192
|
-
return $origChannel;
|
|
1193
|
-
};
|
|
1194
|
-
}
|
|
1195
|
-
function Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1196
|
-
this.znd_1 = $channel;
|
|
1197
|
-
this.ane_1 = $charset;
|
|
1198
|
-
this.bne_1 = $requestLog;
|
|
1199
|
-
this.cne_1 = $logger;
|
|
1200
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1201
|
-
}
|
|
1202
|
-
protoOf(Logging$lambda$logRequestBody$slambda).d30 = function ($this$launch, $completion) {
|
|
1203
|
-
var tmp = this.e30($this$launch, $completion);
|
|
1204
|
-
tmp.k9_1 = Unit_instance;
|
|
1205
|
-
tmp.l9_1 = null;
|
|
1206
|
-
return tmp.q9();
|
|
1207
|
-
};
|
|
1208
|
-
protoOf(Logging$lambda$logRequestBody$slambda).ca = function (p1, $completion) {
|
|
1209
|
-
return this.d30((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1210
|
-
};
|
|
1211
|
-
protoOf(Logging$lambda$logRequestBody$slambda).q9 = function () {
|
|
1212
|
-
var suspendResult = this.k9_1;
|
|
1213
|
-
$sm: do
|
|
1214
|
-
try {
|
|
1215
|
-
var tmp = this.i9_1;
|
|
1216
|
-
switch (tmp) {
|
|
1217
|
-
case 0:
|
|
1218
|
-
this.j9_1 = 7;
|
|
1219
|
-
this.i9_1 = 1;
|
|
1220
|
-
continue $sm;
|
|
1221
|
-
case 1:
|
|
1222
|
-
this.j9_1 = 6;
|
|
1223
|
-
var tmp0 = this.znd_1;
|
|
1224
|
-
this.gne_1 = this.ane_1;
|
|
1225
|
-
this.j9_1 = 3;
|
|
1226
|
-
this.i9_1 = 2;
|
|
1227
|
-
suspendResult = readRemaining(tmp0, this);
|
|
1228
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1229
|
-
return suspendResult;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
continue $sm;
|
|
1233
|
-
case 2:
|
|
1234
|
-
var ARGUMENT = suspendResult;
|
|
1235
|
-
this.fne_1 = readText(ARGUMENT, this.gne_1);
|
|
1236
|
-
this.j9_1 = 6;
|
|
1237
|
-
this.i9_1 = 4;
|
|
1238
|
-
continue $sm;
|
|
1239
|
-
case 3:
|
|
1240
|
-
this.j9_1 = 6;
|
|
1241
|
-
var tmp_0 = this.l9_1;
|
|
1242
|
-
if (tmp_0 instanceof Error) {
|
|
1243
|
-
var cause = this.l9_1;
|
|
1244
|
-
var tmp_1 = this;
|
|
1245
|
-
tmp_1.fne_1 = null;
|
|
1246
|
-
this.i9_1 = 4;
|
|
1247
|
-
continue $sm;
|
|
1248
|
-
} else {
|
|
1249
|
-
throw this.l9_1;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
case 4:
|
|
1253
|
-
this.j9_1 = 6;
|
|
1254
|
-
var tmp0_elvis_lhs = this.fne_1;
|
|
1255
|
-
var text = tmp0_elvis_lhs == null ? '[request body omitted]' : tmp0_elvis_lhs;
|
|
1256
|
-
var tmp0_0 = this.bne_1;
|
|
1257
|
-
var value = 'BODY START';
|
|
1258
|
-
tmp0_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1259
|
-
this.bne_1.q(text).s(_Char___init__impl__6a9atx(10));
|
|
1260
|
-
this.ene_1 = this.bne_1.q('BODY END');
|
|
1261
|
-
this.j9_1 = 7;
|
|
1262
|
-
this.i9_1 = 5;
|
|
1263
|
-
continue $sm;
|
|
1264
|
-
case 5:
|
|
1265
|
-
this.ene_1;
|
|
1266
|
-
this.j9_1 = 7;
|
|
1267
|
-
this.cne_1.wn8(this.bne_1.toString());
|
|
1268
|
-
this.cne_1.an9();
|
|
1269
|
-
return Unit_instance;
|
|
1270
|
-
case 6:
|
|
1271
|
-
this.j9_1 = 7;
|
|
1272
|
-
var t = this.l9_1;
|
|
1273
|
-
this.cne_1.wn8(this.bne_1.toString());
|
|
1274
|
-
this.cne_1.an9();
|
|
1275
|
-
throw t;
|
|
1276
|
-
case 7:
|
|
1277
|
-
throw this.l9_1;
|
|
1278
|
-
}
|
|
1279
|
-
} catch ($p) {
|
|
1280
|
-
var e = $p;
|
|
1281
|
-
if (this.j9_1 === 7) {
|
|
1282
|
-
throw e;
|
|
1283
|
-
} else {
|
|
1284
|
-
this.i9_1 = this.j9_1;
|
|
1285
|
-
this.l9_1 = e;
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
while (true);
|
|
1289
|
-
};
|
|
1290
|
-
protoOf(Logging$lambda$logRequestBody$slambda).e30 = function ($this$launch, completion) {
|
|
1291
|
-
var i = new Logging$lambda$logRequestBody$slambda(this.znd_1, this.ane_1, this.bne_1, this.cne_1, completion);
|
|
1292
|
-
i.dne_1 = $this$launch;
|
|
1293
|
-
return i;
|
|
1294
|
-
};
|
|
1295
|
-
function Logging$lambda$logRequestBody$slambda_0($channel, $charset, $requestLog, $logger, resultContinuation) {
|
|
1296
|
-
var i = new Logging$lambda$logRequestBody$slambda($channel, $charset, $requestLog, $logger, resultContinuation);
|
|
1297
|
-
var l = function ($this$launch, $completion) {
|
|
1298
|
-
return i.d30($this$launch, $completion);
|
|
1299
|
-
};
|
|
1300
|
-
l.$arity = 1;
|
|
1301
|
-
return l;
|
|
1302
|
-
}
|
|
1303
|
-
function invoke$shouldBeLogged(filters, request) {
|
|
1304
|
-
var tmp;
|
|
1305
|
-
if (filters.r()) {
|
|
1306
|
-
tmp = true;
|
|
1307
|
-
} else {
|
|
1308
|
-
var tmp$ret$0;
|
|
1309
|
-
$l$block_0: {
|
|
1310
|
-
// Inline function 'kotlin.collections.any' call
|
|
1311
|
-
var tmp_0;
|
|
1312
|
-
if (isInterface(filters, Collection)) {
|
|
1313
|
-
tmp_0 = filters.r();
|
|
1314
|
-
} else {
|
|
1315
|
-
tmp_0 = false;
|
|
1316
|
-
}
|
|
1317
|
-
if (tmp_0) {
|
|
1318
|
-
tmp$ret$0 = false;
|
|
1319
|
-
break $l$block_0;
|
|
1320
|
-
}
|
|
1321
|
-
var _iterator__ex2g4s = filters.t();
|
|
1322
|
-
while (_iterator__ex2g4s.u()) {
|
|
1323
|
-
var element = _iterator__ex2g4s.v();
|
|
1324
|
-
if (element(request)) {
|
|
1325
|
-
tmp$ret$0 = true;
|
|
1326
|
-
break $l$block_0;
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
tmp$ret$0 = false;
|
|
1330
|
-
}
|
|
1331
|
-
tmp = tmp$ret$0;
|
|
1332
|
-
}
|
|
1333
|
-
return tmp;
|
|
1334
|
-
}
|
|
1335
|
-
function invoke$isNone(level) {
|
|
1336
|
-
return level.equals(LogLevel_NONE_getInstance());
|
|
1337
|
-
}
|
|
1338
|
-
function invoke$isInfo(level) {
|
|
1339
|
-
return level.equals(LogLevel_INFO_getInstance());
|
|
1340
|
-
}
|
|
1341
|
-
function invoke$isHeaders(level) {
|
|
1342
|
-
return level.equals(LogLevel_HEADERS_getInstance());
|
|
1343
|
-
}
|
|
1344
|
-
function invoke$isBody(level) {
|
|
1345
|
-
return level.equals(LogLevel_BODY_getInstance()) || level.equals(LogLevel_ALL_getInstance());
|
|
1346
|
-
}
|
|
1347
|
-
function invoke$logRequestBody(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion) {
|
|
1348
|
-
var tmp = new $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, $completion);
|
|
1349
|
-
tmp.k9_1 = Unit_instance;
|
|
1350
|
-
tmp.l9_1 = null;
|
|
1351
|
-
return tmp.q9();
|
|
1352
|
-
}
|
|
1353
|
-
function invoke$logOutgoingContent($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion) {
|
|
1354
|
-
var tmp;
|
|
1355
|
-
if (process === VOID) {
|
|
1356
|
-
tmp = Logging$lambda$logOutgoingContent$lambda;
|
|
1357
|
-
} else {
|
|
1358
|
-
tmp = process;
|
|
1359
|
-
}
|
|
1360
|
-
process = tmp;
|
|
1361
|
-
var tmp_0 = new $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, $completion);
|
|
1362
|
-
tmp_0.k9_1 = Unit_instance;
|
|
1363
|
-
tmp_0.l9_1 = null;
|
|
1364
|
-
return tmp_0.q9();
|
|
1365
|
-
}
|
|
1366
|
-
function invoke$logRequestOkHttpFormat(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion) {
|
|
1367
|
-
var tmp = new $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, $completion);
|
|
1368
|
-
tmp.k9_1 = Unit_instance;
|
|
1369
|
-
tmp.l9_1 = null;
|
|
1370
|
-
return tmp.q9();
|
|
1371
|
-
}
|
|
1372
|
-
function invoke$logResponseBody(bodyFilter, response, body, logLines, $completion) {
|
|
1373
|
-
var tmp = new $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, $completion);
|
|
1374
|
-
tmp.k9_1 = Unit_instance;
|
|
1375
|
-
tmp.l9_1 = null;
|
|
1376
|
-
return tmp.q9();
|
|
1377
|
-
}
|
|
1378
|
-
function invoke$logResponseOkHttpFormat(sanitizedHeaders, level, bodyFilter, response, logLines, $completion) {
|
|
1379
|
-
var tmp = new $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, $completion);
|
|
1380
|
-
tmp.k9_1 = Unit_instance;
|
|
1381
|
-
tmp.l9_1 = null;
|
|
1382
|
-
return tmp.q9();
|
|
1383
|
-
}
|
|
1384
|
-
function invoke$logRequestBody_0(content, logger, $completion) {
|
|
1385
|
-
var requestLog = StringBuilder_init_$Create$();
|
|
1386
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1387
|
-
var value = 'BODY Content-Type: ' + toString_0(content.u3p());
|
|
1388
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1389
|
-
requestLog.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1390
|
-
var tmp0_safe_receiver = content.u3p();
|
|
1391
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1392
|
-
var charset_0 = tmp1_elvis_lhs == null ? Charsets_getInstance().d31_1 : tmp1_elvis_lhs;
|
|
1393
|
-
var channel = new ByteChannel();
|
|
1394
|
-
var tmp = GlobalScope_instance;
|
|
1395
|
-
var tmp_0 = Dispatchers_getInstance().o27_1.qj(MDCContext());
|
|
1396
|
-
launch(tmp, tmp_0, VOID, Logging$lambda$logRequestBody$slambda_0(channel, charset_0, requestLog, logger, null));
|
|
1397
|
-
return observe(content, channel, $completion);
|
|
1398
|
-
}
|
|
1399
|
-
function invoke$logRequestException(level, logger, context, cause) {
|
|
1400
|
-
if (level.gna_1) {
|
|
1401
|
-
logger.cn8('REQUEST ' + Url(context.f4a_1).toString() + ' failed with exception: ' + cause.toString());
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
function invoke$logRequest(logger, level, sanitizedHeaders, request, $completion) {
|
|
1405
|
-
var tmp = request.i4a_1;
|
|
1406
|
-
var content = tmp instanceof OutgoingContent ? tmp : THROW_CCE();
|
|
1407
|
-
var callLogger = new HttpClientCallLogger(logger);
|
|
1408
|
-
request.k4a_1.l32(get_ClientCallLogger(), callLogger);
|
|
1409
|
-
// Inline function 'kotlin.text.buildString' call
|
|
1410
|
-
// Inline function 'kotlin.apply' call
|
|
1411
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
1412
|
-
if (level.gna_1) {
|
|
1413
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1414
|
-
var value = 'REQUEST: ' + Url(request.f4a_1).toString();
|
|
1415
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1416
|
-
this_0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
1417
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1418
|
-
var value_0 = 'METHOD: ' + request.g4a_1.toString();
|
|
1419
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1420
|
-
this_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
1421
|
-
}
|
|
1422
|
-
if (level.hna_1) {
|
|
1423
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1424
|
-
var value_1 = 'COMMON HEADERS';
|
|
1425
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1426
|
-
this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
1427
|
-
logHeaders(this_0, request.h4a_1.k36(), sanitizedHeaders);
|
|
1428
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1429
|
-
var value_2 = 'CONTENT HEADERS';
|
|
1430
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
1431
|
-
this_0.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
1432
|
-
var tmp$ret$9;
|
|
1433
|
-
$l$block: {
|
|
1434
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1435
|
-
var _iterator__ex2g4s = sanitizedHeaders.t();
|
|
1436
|
-
while (_iterator__ex2g4s.u()) {
|
|
1437
|
-
var element = _iterator__ex2g4s.v();
|
|
1438
|
-
if (element.anb_1('Content-Length')) {
|
|
1439
|
-
tmp$ret$9 = element;
|
|
1440
|
-
break $l$block;
|
|
1441
|
-
}
|
|
1442
|
-
}
|
|
1443
|
-
tmp$ret$9 = null;
|
|
1444
|
-
}
|
|
1445
|
-
var tmp0_safe_receiver = tmp$ret$9;
|
|
1446
|
-
var contentLengthPlaceholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zna_1;
|
|
1447
|
-
var tmp$ret$11;
|
|
1448
|
-
$l$block_0: {
|
|
1449
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1450
|
-
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
1451
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
1452
|
-
var element_0 = _iterator__ex2g4s_0.v();
|
|
1453
|
-
if (element_0.anb_1('Content-Type')) {
|
|
1454
|
-
tmp$ret$11 = element_0;
|
|
1455
|
-
break $l$block_0;
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
tmp$ret$11 = null;
|
|
1459
|
-
}
|
|
1460
|
-
var tmp1_safe_receiver = tmp$ret$11;
|
|
1461
|
-
var contentTypePlaceholder = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.zna_1;
|
|
1462
|
-
var tmp2_safe_receiver = content.w3p();
|
|
1463
|
-
if (tmp2_safe_receiver == null)
|
|
1464
|
-
null;
|
|
1465
|
-
else {
|
|
1466
|
-
// Inline function 'kotlin.let' call
|
|
1467
|
-
logHeader(this_0, 'Content-Length', contentLengthPlaceholder == null ? tmp2_safe_receiver.toString() : contentLengthPlaceholder);
|
|
1468
|
-
}
|
|
1469
|
-
var tmp3_safe_receiver = content.u3p();
|
|
1470
|
-
if (tmp3_safe_receiver == null)
|
|
1471
|
-
null;
|
|
1472
|
-
else {
|
|
1473
|
-
// Inline function 'kotlin.let' call
|
|
1474
|
-
logHeader(this_0, 'Content-Type', contentTypePlaceholder == null ? tmp3_safe_receiver.toString() : contentTypePlaceholder);
|
|
1475
|
-
}
|
|
1476
|
-
logHeaders(this_0, content.v3j().k36(), sanitizedHeaders);
|
|
1477
|
-
}
|
|
1478
|
-
var message = this_0.toString();
|
|
1479
|
-
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1480
|
-
if (charSequenceLength(message) > 0) {
|
|
1481
|
-
callLogger.wn8(message);
|
|
1482
|
-
}
|
|
1483
|
-
var tmp_0;
|
|
1484
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
1485
|
-
if (charSequenceLength(message) === 0) {
|
|
1486
|
-
tmp_0 = true;
|
|
1487
|
-
} else {
|
|
1488
|
-
tmp_0 = !level.ina_1;
|
|
1489
|
-
}
|
|
1490
|
-
if (tmp_0) {
|
|
1491
|
-
callLogger.an9();
|
|
1492
|
-
return null;
|
|
1493
|
-
}
|
|
1494
|
-
return invoke$logRequestBody_0(content, callLogger, $completion);
|
|
1495
|
-
}
|
|
1496
|
-
function invoke$logResponseException(level, log, request, cause) {
|
|
1497
|
-
if (!level.gna_1)
|
|
1498
|
-
return Unit_instance;
|
|
1499
|
-
log.q('RESPONSE ' + request.y4b().toString() + ' failed with exception: ' + cause.toString());
|
|
1500
|
-
}
|
|
1501
|
-
function Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1502
|
-
this.nnh_1 = $okHttpFormat;
|
|
1503
|
-
this.onh_1 = $logger;
|
|
1504
|
-
this.pnh_1 = $filters;
|
|
1505
|
-
this.qnh_1 = $sanitizedHeaders;
|
|
1506
|
-
this.rnh_1 = $level;
|
|
1507
|
-
this.snh_1 = $this_createClientPlugin;
|
|
1508
|
-
this.tnh_1 = $bodyFilter;
|
|
1509
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1510
|
-
}
|
|
1511
|
-
protoOf(Logging$lambda$slambda).cni = function ($this$on, request, $completion) {
|
|
1512
|
-
var tmp = this.dni($this$on, request, $completion);
|
|
1513
|
-
tmp.k9_1 = Unit_instance;
|
|
1514
|
-
tmp.l9_1 = null;
|
|
1515
|
-
return tmp.q9();
|
|
1516
|
-
};
|
|
1517
|
-
protoOf(Logging$lambda$slambda).da = function (p1, p2, $completion) {
|
|
1518
|
-
var tmp = p1 instanceof Context ? p1 : THROW_CCE();
|
|
1519
|
-
return this.cni(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
1520
|
-
};
|
|
1521
|
-
protoOf(Logging$lambda$slambda).q9 = function () {
|
|
1522
|
-
var suspendResult = this.k9_1;
|
|
1523
|
-
$sm: do
|
|
1524
|
-
try {
|
|
1525
|
-
var tmp = this.i9_1;
|
|
1526
|
-
switch (tmp) {
|
|
1527
|
-
case 0:
|
|
1528
|
-
this.j9_1 = 16;
|
|
1529
|
-
if (!invoke$shouldBeLogged(this.pnh_1, this.vnh_1)) {
|
|
1530
|
-
this.vnh_1.k4a_1.l32(get_DisableLogging(), Unit_instance);
|
|
1531
|
-
return Unit_instance;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
if (this.nnh_1) {
|
|
1535
|
-
var tmp_0 = this;
|
|
1536
|
-
tmp_0.ynh_1 = ArrayList_init_$Create$();
|
|
1537
|
-
this.i9_1 = 10;
|
|
1538
|
-
suspendResult = invoke$logRequestOkHttpFormat(this.qnh_1, this.rnh_1, this.snh_1, this.tnh_1, this.vnh_1, this.ynh_1, this);
|
|
1539
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1540
|
-
return suspendResult;
|
|
1541
|
-
}
|
|
1542
|
-
continue $sm;
|
|
1543
|
-
} else {
|
|
1544
|
-
this.i9_1 = 1;
|
|
1545
|
-
continue $sm;
|
|
1546
|
-
}
|
|
1547
|
-
|
|
1548
|
-
case 1:
|
|
1549
|
-
this.j9_1 = 3;
|
|
1550
|
-
this.i9_1 = 2;
|
|
1551
|
-
suspendResult = invoke$logRequest(this.onh_1, this.rnh_1, this.qnh_1, this.vnh_1, this);
|
|
1552
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1553
|
-
return suspendResult;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
continue $sm;
|
|
1557
|
-
case 2:
|
|
1558
|
-
this.bni_1 = suspendResult;
|
|
1559
|
-
this.j9_1 = 16;
|
|
1560
|
-
this.i9_1 = 4;
|
|
1561
|
-
continue $sm;
|
|
1562
|
-
case 3:
|
|
1563
|
-
this.j9_1 = 16;
|
|
1564
|
-
var tmp_1 = this.l9_1;
|
|
1565
|
-
if (tmp_1 instanceof Error) {
|
|
1566
|
-
var _unused_var__etf5q3 = this.l9_1;
|
|
1567
|
-
var tmp_2 = this;
|
|
1568
|
-
tmp_2.bni_1 = null;
|
|
1569
|
-
this.i9_1 = 4;
|
|
1570
|
-
continue $sm;
|
|
1571
|
-
} else {
|
|
1572
|
-
throw this.l9_1;
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
case 4:
|
|
1576
|
-
this.j9_1 = 16;
|
|
1577
|
-
this.ani_1 = this.bni_1;
|
|
1578
|
-
this.znh_1 = Unit_instance;
|
|
1579
|
-
this.i9_1 = 5;
|
|
1580
|
-
continue $sm;
|
|
1581
|
-
case 5:
|
|
1582
|
-
this.j9_1 = 8;
|
|
1583
|
-
this.j9_1 = 7;
|
|
1584
|
-
this.i9_1 = 6;
|
|
1585
|
-
var tmp0_elvis_lhs = this.ani_1;
|
|
1586
|
-
suspendResult = this.unh_1.cnb(tmp0_elvis_lhs == null ? this.vnh_1.i4a_1 : tmp0_elvis_lhs, this);
|
|
1587
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1588
|
-
return suspendResult;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
continue $sm;
|
|
1592
|
-
case 6:
|
|
1593
|
-
this.znh_1 = suspendResult;
|
|
1594
|
-
this.j9_1 = 16;
|
|
1595
|
-
this.i9_1 = 9;
|
|
1596
|
-
continue $sm;
|
|
1597
|
-
case 7:
|
|
1598
|
-
this.j9_1 = 8;
|
|
1599
|
-
var tmp_3 = this.l9_1;
|
|
1600
|
-
if (tmp_3 instanceof Error) {
|
|
1601
|
-
var cause = this.l9_1;
|
|
1602
|
-
var tmp_4 = this;
|
|
1603
|
-
invoke$logRequestException(this.rnh_1, this.onh_1, this.vnh_1, cause);
|
|
1604
|
-
throw cause;
|
|
1605
|
-
} else {
|
|
1606
|
-
throw this.l9_1;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
case 8:
|
|
1610
|
-
this.j9_1 = 16;
|
|
1611
|
-
var t = this.l9_1;
|
|
1612
|
-
throw t;
|
|
1613
|
-
case 9:
|
|
1614
|
-
this.znh_1;
|
|
1615
|
-
this.j9_1 = 16;
|
|
1616
|
-
return Unit_instance;
|
|
1617
|
-
case 10:
|
|
1618
|
-
var content = suspendResult;
|
|
1619
|
-
if (this.ynh_1.g1() > 0) {
|
|
1620
|
-
this.onh_1.cn8(joinToString(this.ynh_1, '\n'));
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
this.j9_1 = 14;
|
|
1624
|
-
if (!(content == null)) {
|
|
1625
|
-
this.i9_1 = 12;
|
|
1626
|
-
suspendResult = this.unh_1.cnb(content, this);
|
|
1627
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1628
|
-
return suspendResult;
|
|
1629
|
-
}
|
|
1630
|
-
continue $sm;
|
|
1631
|
-
} else {
|
|
1632
|
-
this.i9_1 = 11;
|
|
1633
|
-
suspendResult = this.unh_1.dnb(this);
|
|
1634
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1635
|
-
return suspendResult;
|
|
1636
|
-
}
|
|
1637
|
-
continue $sm;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
case 11:
|
|
1641
|
-
this.xnh_1 = suspendResult;
|
|
1642
|
-
this.i9_1 = 13;
|
|
1643
|
-
continue $sm;
|
|
1644
|
-
case 12:
|
|
1645
|
-
this.xnh_1 = suspendResult;
|
|
1646
|
-
this.i9_1 = 13;
|
|
1647
|
-
continue $sm;
|
|
1648
|
-
case 13:
|
|
1649
|
-
this.wnh_1 = this.xnh_1;
|
|
1650
|
-
this.j9_1 = 16;
|
|
1651
|
-
this.i9_1 = 15;
|
|
1652
|
-
continue $sm;
|
|
1653
|
-
case 14:
|
|
1654
|
-
this.j9_1 = 16;
|
|
1655
|
-
var tmp_5 = this.l9_1;
|
|
1656
|
-
if (tmp_5 instanceof Error) {
|
|
1657
|
-
var cause_0 = this.l9_1;
|
|
1658
|
-
var tmp_6 = this;
|
|
1659
|
-
this.onh_1.cn8('<-- HTTP FAILED: ' + cause_0.toString());
|
|
1660
|
-
throw cause_0;
|
|
1661
|
-
} else {
|
|
1662
|
-
throw this.l9_1;
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
case 15:
|
|
1666
|
-
this.j9_1 = 16;
|
|
1667
|
-
return Unit_instance;
|
|
1668
|
-
case 16:
|
|
1669
|
-
throw this.l9_1;
|
|
1670
|
-
}
|
|
1671
|
-
} catch ($p) {
|
|
1672
|
-
var e = $p;
|
|
1673
|
-
if (this.j9_1 === 16) {
|
|
1674
|
-
throw e;
|
|
1675
|
-
} else {
|
|
1676
|
-
this.i9_1 = this.j9_1;
|
|
1677
|
-
this.l9_1 = e;
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
while (true);
|
|
1681
|
-
};
|
|
1682
|
-
protoOf(Logging$lambda$slambda).dni = function ($this$on, request, completion) {
|
|
1683
|
-
var i = new Logging$lambda$slambda(this.nnh_1, this.onh_1, this.pnh_1, this.qnh_1, this.rnh_1, this.snh_1, this.tnh_1, completion);
|
|
1684
|
-
i.unh_1 = $this$on;
|
|
1685
|
-
i.vnh_1 = request;
|
|
1686
|
-
return i;
|
|
1687
|
-
};
|
|
1688
|
-
function Logging$lambda$slambda_0($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation) {
|
|
1689
|
-
var i = new Logging$lambda$slambda($okHttpFormat, $logger, $filters, $sanitizedHeaders, $level, $this_createClientPlugin, $bodyFilter, resultContinuation);
|
|
1690
|
-
var l = function ($this$on, request, $completion) {
|
|
1691
|
-
return i.cni($this$on, request, $completion);
|
|
1692
|
-
};
|
|
1693
|
-
l.$arity = 2;
|
|
1694
|
-
return l;
|
|
1695
|
-
}
|
|
1696
|
-
function Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1697
|
-
this.mni_1 = $okHttpFormat;
|
|
1698
|
-
this.nni_1 = $logger;
|
|
1699
|
-
this.oni_1 = $sanitizedHeaders;
|
|
1700
|
-
this.pni_1 = $level;
|
|
1701
|
-
this.qni_1 = $bodyFilter;
|
|
1702
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1703
|
-
}
|
|
1704
|
-
protoOf(Logging$lambda$slambda_1).uni = function ($this$on, response, $completion) {
|
|
1705
|
-
var tmp = this.vni($this$on, response, $completion);
|
|
1706
|
-
tmp.k9_1 = Unit_instance;
|
|
1707
|
-
tmp.l9_1 = null;
|
|
1708
|
-
return tmp.q9();
|
|
1709
|
-
};
|
|
1710
|
-
protoOf(Logging$lambda$slambda_1).da = function (p1, p2, $completion) {
|
|
1711
|
-
var tmp = p1 instanceof Context_0 ? p1 : THROW_CCE();
|
|
1712
|
-
return this.uni(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1713
|
-
};
|
|
1714
|
-
protoOf(Logging$lambda$slambda_1).q9 = function () {
|
|
1715
|
-
var suspendResult = this.k9_1;
|
|
1716
|
-
$sm: do
|
|
1717
|
-
try {
|
|
1718
|
-
var tmp = this.i9_1;
|
|
1719
|
-
switch (tmp) {
|
|
1720
|
-
case 0:
|
|
1721
|
-
this.j9_1 = 5;
|
|
1722
|
-
if (this.mni_1) {
|
|
1723
|
-
var tmp_0 = this;
|
|
1724
|
-
tmp_0.tni_1 = ArrayList_init_$Create$();
|
|
1725
|
-
this.i9_1 = 1;
|
|
1726
|
-
suspendResult = invoke$logResponseOkHttpFormat(this.oni_1, this.pni_1, this.qni_1, this.sni_1, this.tni_1, this);
|
|
1727
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1728
|
-
return suspendResult;
|
|
1729
|
-
}
|
|
1730
|
-
continue $sm;
|
|
1731
|
-
} else {
|
|
1732
|
-
this.i9_1 = 4;
|
|
1733
|
-
continue $sm;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
case 1:
|
|
1737
|
-
var newResponse = suspendResult;
|
|
1738
|
-
if (this.tni_1.g1() > 0) {
|
|
1739
|
-
this.nni_1.cn8(joinToString(this.tni_1, '\n'));
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
if (!equals(newResponse, this.sni_1)) {
|
|
1743
|
-
this.i9_1 = 2;
|
|
1744
|
-
suspendResult = this.rni_1.i5l(newResponse, this);
|
|
1745
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1746
|
-
return suspendResult;
|
|
1747
|
-
}
|
|
1748
|
-
continue $sm;
|
|
1749
|
-
} else {
|
|
1750
|
-
this.i9_1 = 3;
|
|
1751
|
-
continue $sm;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
case 2:
|
|
1755
|
-
this.i9_1 = 3;
|
|
1756
|
-
continue $sm;
|
|
1757
|
-
case 3:
|
|
1758
|
-
this.i9_1 = 4;
|
|
1759
|
-
continue $sm;
|
|
1760
|
-
case 4:
|
|
1761
|
-
return Unit_instance;
|
|
1762
|
-
case 5:
|
|
1763
|
-
throw this.l9_1;
|
|
1764
|
-
}
|
|
1765
|
-
} catch ($p) {
|
|
1766
|
-
var e = $p;
|
|
1767
|
-
if (this.j9_1 === 5) {
|
|
1768
|
-
throw e;
|
|
1769
|
-
} else {
|
|
1770
|
-
this.i9_1 = this.j9_1;
|
|
1771
|
-
this.l9_1 = e;
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
while (true);
|
|
1775
|
-
};
|
|
1776
|
-
protoOf(Logging$lambda$slambda_1).vni = function ($this$on, response, completion) {
|
|
1777
|
-
var i = new Logging$lambda$slambda_1(this.mni_1, this.nni_1, this.oni_1, this.pni_1, this.qni_1, completion);
|
|
1778
|
-
i.rni_1 = $this$on;
|
|
1779
|
-
i.sni_1 = response;
|
|
1780
|
-
return i;
|
|
1781
|
-
};
|
|
1782
|
-
function Logging$lambda$slambda_2($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation) {
|
|
1783
|
-
var i = new Logging$lambda$slambda_1($okHttpFormat, $logger, $sanitizedHeaders, $level, $bodyFilter, resultContinuation);
|
|
1784
|
-
var l = function ($this$on, response, $completion) {
|
|
1785
|
-
return i.uni($this$on, response, $completion);
|
|
1786
|
-
};
|
|
1787
|
-
l.$arity = 2;
|
|
1788
|
-
return l;
|
|
1789
|
-
}
|
|
1790
|
-
function Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1791
|
-
this.enj_1 = $okHttpFormat;
|
|
1792
|
-
this.fnj_1 = $level;
|
|
1793
|
-
this.gnj_1 = $sanitizedHeaders;
|
|
1794
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1795
|
-
}
|
|
1796
|
-
protoOf(Logging$lambda$slambda_3).pnj = function ($this$on, response, $completion) {
|
|
1797
|
-
var tmp = this.qnj($this$on, response, $completion);
|
|
1798
|
-
tmp.k9_1 = Unit_instance;
|
|
1799
|
-
tmp.l9_1 = null;
|
|
1800
|
-
return tmp.q9();
|
|
1801
|
-
};
|
|
1802
|
-
protoOf(Logging$lambda$slambda_3).da = function (p1, p2, $completion) {
|
|
1803
|
-
var tmp = p1 instanceof Context_1 ? p1 : THROW_CCE();
|
|
1804
|
-
return this.pnj(tmp, p2 instanceof HttpResponse ? p2 : THROW_CCE(), $completion);
|
|
1805
|
-
};
|
|
1806
|
-
protoOf(Logging$lambda$slambda_3).q9 = function () {
|
|
1807
|
-
var suspendResult = this.k9_1;
|
|
1808
|
-
$sm: do
|
|
1809
|
-
try {
|
|
1810
|
-
var tmp = this.i9_1;
|
|
1811
|
-
switch (tmp) {
|
|
1812
|
-
case 0:
|
|
1813
|
-
this.j9_1 = 14;
|
|
1814
|
-
if (this.enj_1)
|
|
1815
|
-
return Unit_instance;
|
|
1816
|
-
if (this.fnj_1.equals(LogLevel_NONE_getInstance()) || this.inj_1.w4b().p4b().k32(get_DisableLogging()))
|
|
1817
|
-
return Unit_instance;
|
|
1818
|
-
this.knj_1 = this.inj_1.w4b().p4b().i32(get_ClientCallLogger());
|
|
1819
|
-
this.mnj_1 = StringBuilder_init_$Create$();
|
|
1820
|
-
this.lnj_1 = false;
|
|
1821
|
-
this.i9_1 = 1;
|
|
1822
|
-
continue $sm;
|
|
1823
|
-
case 1:
|
|
1824
|
-
this.j9_1 = 4;
|
|
1825
|
-
this.j9_1 = 3;
|
|
1826
|
-
logResponseHeader(this.mnj_1, this.inj_1.w4b().f49(), this.fnj_1, this.gnj_1);
|
|
1827
|
-
this.i9_1 = 2;
|
|
1828
|
-
suspendResult = this.hnj_1.enc(this);
|
|
1829
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1830
|
-
return suspendResult;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
continue $sm;
|
|
1834
|
-
case 2:
|
|
1835
|
-
this.nnj_1 = suspendResult;
|
|
1836
|
-
this.j9_1 = 14;
|
|
1837
|
-
this.i9_1 = 9;
|
|
1838
|
-
continue $sm;
|
|
1839
|
-
case 3:
|
|
1840
|
-
this.j9_1 = 4;
|
|
1841
|
-
var tmp_0 = this.l9_1;
|
|
1842
|
-
if (tmp_0 instanceof Error) {
|
|
1843
|
-
var cause = this.l9_1;
|
|
1844
|
-
var tmp_1 = this;
|
|
1845
|
-
invoke$logResponseException(this.fnj_1, this.mnj_1, this.inj_1.w4b().o4b(), cause);
|
|
1846
|
-
this.lnj_1 = true;
|
|
1847
|
-
throw cause;
|
|
1848
|
-
} else {
|
|
1849
|
-
throw this.l9_1;
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
case 4:
|
|
1853
|
-
this.j9_1 = 14;
|
|
1854
|
-
this.onj_1 = this.l9_1;
|
|
1855
|
-
this.knj_1.xn8(this.mnj_1.toString());
|
|
1856
|
-
if (this.lnj_1 || !this.fnj_1.ina_1) {
|
|
1857
|
-
this.i9_1 = 7;
|
|
1858
|
-
suspendResult = this.knj_1.bn9(this);
|
|
1859
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1860
|
-
return suspendResult;
|
|
1861
|
-
}
|
|
1862
|
-
continue $sm;
|
|
1863
|
-
} else {
|
|
1864
|
-
if (this.fnj_1.ina_1 && get_isSaved(this.inj_1)) {
|
|
1865
|
-
this.i9_1 = 5;
|
|
1866
|
-
suspendResult = logResponseBody(this.knj_1, this.inj_1, this);
|
|
1867
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1868
|
-
return suspendResult;
|
|
1869
|
-
}
|
|
1870
|
-
continue $sm;
|
|
1871
|
-
} else {
|
|
1872
|
-
this.i9_1 = 8;
|
|
1873
|
-
continue $sm;
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
case 5:
|
|
1878
|
-
this.i9_1 = 6;
|
|
1879
|
-
suspendResult = this.knj_1.bn9(this);
|
|
1880
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
|
-
return suspendResult;
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
continue $sm;
|
|
1885
|
-
case 6:
|
|
1886
|
-
this.i9_1 = 8;
|
|
1887
|
-
continue $sm;
|
|
1888
|
-
case 7:
|
|
1889
|
-
this.i9_1 = 8;
|
|
1890
|
-
continue $sm;
|
|
1891
|
-
case 8:
|
|
1892
|
-
throw this.onj_1;
|
|
1893
|
-
case 9:
|
|
1894
|
-
this.jnj_1 = this.nnj_1;
|
|
1895
|
-
this.j9_1 = 14;
|
|
1896
|
-
this.knj_1.xn8(this.mnj_1.toString());
|
|
1897
|
-
if (this.lnj_1 || !this.fnj_1.ina_1) {
|
|
1898
|
-
this.i9_1 = 12;
|
|
1899
|
-
suspendResult = this.knj_1.bn9(this);
|
|
1900
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1901
|
-
return suspendResult;
|
|
1902
|
-
}
|
|
1903
|
-
continue $sm;
|
|
1904
|
-
} else {
|
|
1905
|
-
if (this.fnj_1.ina_1 && get_isSaved(this.inj_1)) {
|
|
1906
|
-
this.i9_1 = 10;
|
|
1907
|
-
suspendResult = logResponseBody(this.knj_1, this.inj_1, this);
|
|
1908
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1909
|
-
return suspendResult;
|
|
1910
|
-
}
|
|
1911
|
-
continue $sm;
|
|
1912
|
-
} else {
|
|
1913
|
-
this.i9_1 = 13;
|
|
1914
|
-
continue $sm;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
case 10:
|
|
1919
|
-
this.i9_1 = 11;
|
|
1920
|
-
suspendResult = this.knj_1.bn9(this);
|
|
1921
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
|
-
return suspendResult;
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
continue $sm;
|
|
1926
|
-
case 11:
|
|
1927
|
-
this.i9_1 = 13;
|
|
1928
|
-
continue $sm;
|
|
1929
|
-
case 12:
|
|
1930
|
-
this.i9_1 = 13;
|
|
1931
|
-
continue $sm;
|
|
1932
|
-
case 13:
|
|
1933
|
-
return Unit_instance;
|
|
1934
|
-
case 14:
|
|
1935
|
-
throw this.l9_1;
|
|
1936
|
-
}
|
|
1937
|
-
} catch ($p) {
|
|
1938
|
-
var e = $p;
|
|
1939
|
-
if (this.j9_1 === 14) {
|
|
1940
|
-
throw e;
|
|
1941
|
-
} else {
|
|
1942
|
-
this.i9_1 = this.j9_1;
|
|
1943
|
-
this.l9_1 = e;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
while (true);
|
|
1947
|
-
};
|
|
1948
|
-
protoOf(Logging$lambda$slambda_3).qnj = function ($this$on, response, completion) {
|
|
1949
|
-
var i = new Logging$lambda$slambda_3(this.enj_1, this.fnj_1, this.gnj_1, completion);
|
|
1950
|
-
i.hnj_1 = $this$on;
|
|
1951
|
-
i.inj_1 = response;
|
|
1952
|
-
return i;
|
|
1953
|
-
};
|
|
1954
|
-
function Logging$lambda$slambda_4($okHttpFormat, $level, $sanitizedHeaders, resultContinuation) {
|
|
1955
|
-
var i = new Logging$lambda$slambda_3($okHttpFormat, $level, $sanitizedHeaders, resultContinuation);
|
|
1956
|
-
var l = function ($this$on, response, $completion) {
|
|
1957
|
-
return i.pnj($this$on, response, $completion);
|
|
1958
|
-
};
|
|
1959
|
-
l.$arity = 2;
|
|
1960
|
-
return l;
|
|
1961
|
-
}
|
|
1962
|
-
function Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation) {
|
|
1963
|
-
this.znj_1 = $okHttpFormat;
|
|
1964
|
-
this.ank_1 = $level;
|
|
1965
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
1966
|
-
}
|
|
1967
|
-
protoOf(Logging$lambda$slambda_5).gnk = function ($this$on, call, $completion) {
|
|
1968
|
-
var tmp = this.hnk($this$on, call, $completion);
|
|
1969
|
-
tmp.k9_1 = Unit_instance;
|
|
1970
|
-
tmp.l9_1 = null;
|
|
1971
|
-
return tmp.q9();
|
|
1972
|
-
};
|
|
1973
|
-
protoOf(Logging$lambda$slambda_5).da = function (p1, p2, $completion) {
|
|
1974
|
-
var tmp = p1 instanceof Context_2 ? p1 : THROW_CCE();
|
|
1975
|
-
return this.gnk(tmp, p2 instanceof HttpClientCall ? p2 : THROW_CCE(), $completion);
|
|
1976
|
-
};
|
|
1977
|
-
protoOf(Logging$lambda$slambda_5).q9 = function () {
|
|
1978
|
-
var suspendResult = this.k9_1;
|
|
1979
|
-
$sm: do
|
|
1980
|
-
try {
|
|
1981
|
-
var tmp = this.i9_1;
|
|
1982
|
-
switch (tmp) {
|
|
1983
|
-
case 0:
|
|
1984
|
-
this.j9_1 = 6;
|
|
1985
|
-
if (this.znj_1)
|
|
1986
|
-
return Unit_instance;
|
|
1987
|
-
if (this.ank_1.equals(LogLevel_NONE_getInstance()) || this.cnk_1.p4b().k32(get_DisableLogging())) {
|
|
1988
|
-
return Unit_instance;
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
this.j9_1 = 2;
|
|
1992
|
-
this.i9_1 = 1;
|
|
1993
|
-
suspendResult = this.bnk_1.snc(this);
|
|
1994
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1995
|
-
return suspendResult;
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
continue $sm;
|
|
1999
|
-
case 1:
|
|
2000
|
-
this.dnk_1 = suspendResult;
|
|
2001
|
-
this.j9_1 = 6;
|
|
2002
|
-
this.i9_1 = 5;
|
|
2003
|
-
continue $sm;
|
|
2004
|
-
case 2:
|
|
2005
|
-
this.j9_1 = 6;
|
|
2006
|
-
var tmp_0 = this.l9_1;
|
|
2007
|
-
if (tmp_0 instanceof Error) {
|
|
2008
|
-
this.enk_1 = this.l9_1;
|
|
2009
|
-
var log = StringBuilder_init_$Create$();
|
|
2010
|
-
this.fnk_1 = this.cnk_1.p4b().i32(get_ClientCallLogger());
|
|
2011
|
-
invoke$logResponseException(this.ank_1, log, this.cnk_1.o4b(), this.enk_1);
|
|
2012
|
-
this.i9_1 = 3;
|
|
2013
|
-
suspendResult = this.fnk_1.yn8(log.toString(), this);
|
|
2014
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2015
|
-
return suspendResult;
|
|
2016
|
-
}
|
|
2017
|
-
continue $sm;
|
|
2018
|
-
} else {
|
|
2019
|
-
throw this.l9_1;
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
case 3:
|
|
2023
|
-
this.i9_1 = 4;
|
|
2024
|
-
suspendResult = this.fnk_1.bn9(this);
|
|
2025
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2026
|
-
return suspendResult;
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
continue $sm;
|
|
2030
|
-
case 4:
|
|
2031
|
-
var tmp_1 = this;
|
|
2032
|
-
throw this.enk_1;
|
|
2033
|
-
case 5:
|
|
2034
|
-
this.j9_1 = 6;
|
|
2035
|
-
return Unit_instance;
|
|
2036
|
-
case 6:
|
|
2037
|
-
throw this.l9_1;
|
|
2038
|
-
}
|
|
2039
|
-
} catch ($p) {
|
|
2040
|
-
var e = $p;
|
|
2041
|
-
if (this.j9_1 === 6) {
|
|
2042
|
-
throw e;
|
|
2043
|
-
} else {
|
|
2044
|
-
this.i9_1 = this.j9_1;
|
|
2045
|
-
this.l9_1 = e;
|
|
2046
|
-
}
|
|
2047
|
-
}
|
|
2048
|
-
while (true);
|
|
2049
|
-
};
|
|
2050
|
-
protoOf(Logging$lambda$slambda_5).hnk = function ($this$on, call, completion) {
|
|
2051
|
-
var i = new Logging$lambda$slambda_5(this.znj_1, this.ank_1, completion);
|
|
2052
|
-
i.bnk_1 = $this$on;
|
|
2053
|
-
i.cnk_1 = call;
|
|
2054
|
-
return i;
|
|
2055
|
-
};
|
|
2056
|
-
function Logging$lambda$slambda_6($okHttpFormat, $level, resultContinuation) {
|
|
2057
|
-
var i = new Logging$lambda$slambda_5($okHttpFormat, $level, resultContinuation);
|
|
2058
|
-
var l = function ($this$on, call, $completion) {
|
|
2059
|
-
return i.gnk($this$on, call, $completion);
|
|
2060
|
-
};
|
|
2061
|
-
l.$arity = 2;
|
|
2062
|
-
return l;
|
|
2063
|
-
}
|
|
2064
|
-
function Logging$lambda$lambda$lambda(it) {
|
|
2065
|
-
_init_properties_Logging_kt__66pui5();
|
|
2066
|
-
return !get_isSaved(it.f49());
|
|
2067
|
-
}
|
|
2068
|
-
function Logging$lambda$lambda$slambda($level, resultContinuation) {
|
|
2069
|
-
this.qnk_1 = $level;
|
|
2070
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2071
|
-
}
|
|
2072
|
-
protoOf(Logging$lambda$lambda$slambda).h4l = function (response, $completion) {
|
|
2073
|
-
var tmp = this.v4j(response, $completion);
|
|
2074
|
-
tmp.k9_1 = Unit_instance;
|
|
2075
|
-
tmp.l9_1 = null;
|
|
2076
|
-
return tmp.q9();
|
|
2077
|
-
};
|
|
2078
|
-
protoOf(Logging$lambda$lambda$slambda).ca = function (p1, $completion) {
|
|
2079
|
-
return this.h4l(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
2080
|
-
};
|
|
2081
|
-
protoOf(Logging$lambda$lambda$slambda).q9 = function () {
|
|
2082
|
-
var suspendResult = this.k9_1;
|
|
2083
|
-
$sm: do
|
|
2084
|
-
try {
|
|
2085
|
-
var tmp = this.i9_1;
|
|
2086
|
-
switch (tmp) {
|
|
2087
|
-
case 0:
|
|
2088
|
-
this.j9_1 = 3;
|
|
2089
|
-
if (this.qnk_1.equals(LogLevel_NONE_getInstance()) || this.rnk_1.w4b().p4b().k32(get_DisableLogging()))
|
|
2090
|
-
return Unit_instance;
|
|
2091
|
-
this.snk_1 = this.rnk_1.w4b().p4b().i32(get_ClientCallLogger());
|
|
2092
|
-
this.i9_1 = 1;
|
|
2093
|
-
suspendResult = logResponseBody(this.snk_1, this.rnk_1, this);
|
|
2094
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2095
|
-
return suspendResult;
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
continue $sm;
|
|
2099
|
-
case 1:
|
|
2100
|
-
this.i9_1 = 2;
|
|
2101
|
-
suspendResult = this.snk_1.bn9(this);
|
|
2102
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2103
|
-
return suspendResult;
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
continue $sm;
|
|
2107
|
-
case 2:
|
|
2108
|
-
return Unit_instance;
|
|
2109
|
-
case 3:
|
|
2110
|
-
throw this.l9_1;
|
|
2111
|
-
}
|
|
2112
|
-
} catch ($p) {
|
|
2113
|
-
var e = $p;
|
|
2114
|
-
if (this.j9_1 === 3) {
|
|
2115
|
-
throw e;
|
|
2116
|
-
} else {
|
|
2117
|
-
this.i9_1 = this.j9_1;
|
|
2118
|
-
this.l9_1 = e;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
while (true);
|
|
2122
|
-
};
|
|
2123
|
-
protoOf(Logging$lambda$lambda$slambda).v4j = function (response, completion) {
|
|
2124
|
-
var i = new Logging$lambda$lambda$slambda(this.qnk_1, completion);
|
|
2125
|
-
i.rnk_1 = response;
|
|
2126
|
-
return i;
|
|
2127
|
-
};
|
|
2128
|
-
function Logging$lambda$lambda$slambda_0($level, resultContinuation) {
|
|
2129
|
-
var i = new Logging$lambda$lambda$slambda($level, resultContinuation);
|
|
2130
|
-
var l = function (response, $completion) {
|
|
2131
|
-
return i.h4l(response, $completion);
|
|
2132
|
-
};
|
|
2133
|
-
l.$arity = 1;
|
|
2134
|
-
return l;
|
|
2135
|
-
}
|
|
2136
|
-
function Logging$lambda$lambda($level) {
|
|
2137
|
-
return function ($this$prepare) {
|
|
2138
|
-
$this$prepare.g5l(Logging$lambda$lambda$lambda);
|
|
2139
|
-
$this$prepare.f5l(Logging$lambda$lambda$slambda_0($level, null));
|
|
2140
|
-
return Unit_instance;
|
|
2141
|
-
};
|
|
2142
|
-
}
|
|
2143
|
-
function $invoke$logRequestBodyCOROUTINE$(bodyFilter, url, content, contentLength, headers, method, logLines, body, resultContinuation) {
|
|
2144
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2145
|
-
this.pne_1 = bodyFilter;
|
|
2146
|
-
this.qne_1 = url;
|
|
2147
|
-
this.rne_1 = content;
|
|
2148
|
-
this.sne_1 = contentLength;
|
|
2149
|
-
this.tne_1 = headers;
|
|
2150
|
-
this.une_1 = method;
|
|
2151
|
-
this.vne_1 = logLines;
|
|
2152
|
-
this.wne_1 = body;
|
|
2153
|
-
}
|
|
2154
|
-
protoOf($invoke$logRequestBodyCOROUTINE$).q9 = function () {
|
|
2155
|
-
var suspendResult = this.k9_1;
|
|
2156
|
-
$sm: do
|
|
2157
|
-
try {
|
|
2158
|
-
var tmp = this.i9_1;
|
|
2159
|
-
switch (tmp) {
|
|
2160
|
-
case 0:
|
|
2161
|
-
this.j9_1 = 2;
|
|
2162
|
-
this.i9_1 = 1;
|
|
2163
|
-
suspendResult = this.pne_1.cn9(this.qne_1, this.sne_1, this.rne_1.u3p(), this.tne_1, this.wne_1, this);
|
|
2164
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2165
|
-
return suspendResult;
|
|
2166
|
-
}
|
|
2167
|
-
|
|
2168
|
-
continue $sm;
|
|
2169
|
-
case 1:
|
|
2170
|
-
var filteredBody = suspendResult;
|
|
2171
|
-
if (filteredBody instanceof Empty) {
|
|
2172
|
-
this.vne_1.e1('--> END ' + this.une_1.g3k_1 + ' (0-byte body)');
|
|
2173
|
-
} else {
|
|
2174
|
-
if (filteredBody instanceof Skip) {
|
|
2175
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2176
|
-
this_0.q('--> END ' + this.une_1.g3k_1 + ' (');
|
|
2177
|
-
var tmp0_safe_receiver = filteredBody.gn9_1;
|
|
2178
|
-
if (tmp0_safe_receiver == null)
|
|
2179
|
-
null;
|
|
2180
|
-
else {
|
|
2181
|
-
this_0.q(tmp0_safe_receiver + ' ');
|
|
2182
|
-
}
|
|
2183
|
-
var tmp1_safe_receiver = filteredBody.hn9_1;
|
|
2184
|
-
if (tmp1_safe_receiver == null)
|
|
2185
|
-
null;
|
|
2186
|
-
else {
|
|
2187
|
-
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2188
|
-
}
|
|
2189
|
-
this_0.q('body omitted)');
|
|
2190
|
-
this.vne_1.e1(this_0.toString());
|
|
2191
|
-
} else {
|
|
2192
|
-
if (isInterface(filteredBody, Content)) {
|
|
2193
|
-
this.vne_1.e1(filteredBody.x66());
|
|
2194
|
-
this.vne_1.e1('--> END ' + this.une_1.g3k_1 + ' (' + toString_0(filteredBody.fn9()) + '-byte body)');
|
|
2195
|
-
} else {
|
|
2196
|
-
noWhenBranchMatchedException();
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
return Unit_instance;
|
|
2202
|
-
case 2:
|
|
2203
|
-
throw this.l9_1;
|
|
2204
|
-
}
|
|
2205
|
-
} catch ($p) {
|
|
2206
|
-
var e = $p;
|
|
2207
|
-
if (this.j9_1 === 2) {
|
|
2208
|
-
throw e;
|
|
2209
|
-
} else {
|
|
2210
|
-
this.i9_1 = this.j9_1;
|
|
2211
|
-
this.l9_1 = e;
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
while (true);
|
|
2215
|
-
};
|
|
2216
|
-
function $invoke$logOutgoingContentCOROUTINE$($this_createClientPlugin, bodyFilter, url, content, method, headers, logLines, process, resultContinuation) {
|
|
2217
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2218
|
-
this.fnf_1 = $this_createClientPlugin;
|
|
2219
|
-
this.gnf_1 = bodyFilter;
|
|
2220
|
-
this.hnf_1 = url;
|
|
2221
|
-
this.inf_1 = content;
|
|
2222
|
-
this.jnf_1 = method;
|
|
2223
|
-
this.knf_1 = headers;
|
|
2224
|
-
this.lnf_1 = logLines;
|
|
2225
|
-
this.mnf_1 = process;
|
|
2226
|
-
}
|
|
2227
|
-
protoOf($invoke$logOutgoingContentCOROUTINE$).q9 = function () {
|
|
2228
|
-
var suspendResult = this.k9_1;
|
|
2229
|
-
$sm: do
|
|
2230
|
-
try {
|
|
2231
|
-
var tmp = this.i9_1;
|
|
2232
|
-
switch (tmp) {
|
|
2233
|
-
case 0:
|
|
2234
|
-
this.j9_1 = 7;
|
|
2235
|
-
var tmp0_subject = this.inf_1;
|
|
2236
|
-
if (tmp0_subject instanceof ObservableContent) {
|
|
2237
|
-
this.i9_1 = 5;
|
|
2238
|
-
suspendResult = invoke$logOutgoingContent(this.fnf_1, this.gnf_1, this.hnf_1, this.inf_1.r4e_1, this.jnf_1, this.knf_1, this.lnf_1, this.mnf_1, this);
|
|
2239
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2240
|
-
return suspendResult;
|
|
2241
|
-
}
|
|
2242
|
-
continue $sm;
|
|
2243
|
-
} else {
|
|
2244
|
-
if (tmp0_subject instanceof MultiPartFormDataContent) {
|
|
2245
|
-
var tmp_0 = this;
|
|
2246
|
-
var _iterator__ex2g4s = this.inf_1.g5r_1.t();
|
|
2247
|
-
while (_iterator__ex2g4s.u()) {
|
|
2248
|
-
var part = _iterator__ex2g4s.v();
|
|
2249
|
-
this.lnf_1.e1('--' + this.inf_1.h5r_1);
|
|
2250
|
-
var _iterator__ex2g4s_0 = part.x5r_1.k36().t();
|
|
2251
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
2252
|
-
var _destruct__k2r9zo = _iterator__ex2g4s_0.v();
|
|
2253
|
-
var key = _destruct__k2r9zo.m1();
|
|
2254
|
-
var values = _destruct__k2r9zo.n1();
|
|
2255
|
-
this.lnf_1.e1(key + ': ' + joinToString(values, '; '));
|
|
2256
|
-
}
|
|
2257
|
-
if (part instanceof FormItem) {
|
|
2258
|
-
this.lnf_1.e1('Content-Length: ' + part.b5s_1.length);
|
|
2259
|
-
this.lnf_1.e1('');
|
|
2260
|
-
this.lnf_1.e1(part.b5s_1);
|
|
2261
|
-
} else {
|
|
2262
|
-
this.lnf_1.e1('');
|
|
2263
|
-
var contentLength = part.x5r_1.b35('Content-Length');
|
|
2264
|
-
if (!(contentLength == null)) {
|
|
2265
|
-
this.lnf_1.e1('binary ' + contentLength + '-byte body omitted');
|
|
2266
|
-
} else {
|
|
2267
|
-
this.lnf_1.e1('binary body omitted');
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2271
|
-
this.lnf_1.e1('--' + this.inf_1.h5r_1 + '--');
|
|
2272
|
-
this.lnf_1.e1('--> END ' + this.jnf_1.g3k_1);
|
|
2273
|
-
tmp_0.nnf_1 = null;
|
|
2274
|
-
this.i9_1 = 6;
|
|
2275
|
-
continue $sm;
|
|
2276
|
-
} else {
|
|
2277
|
-
if (tmp0_subject instanceof ByteArrayContent) {
|
|
2278
|
-
var bytes = this.inf_1.x3p();
|
|
2279
|
-
this.i9_1 = 4;
|
|
2280
|
-
suspendResult = invoke$logRequestBody(this.gnf_1, this.hnf_1, this.inf_1, fromInt(bytes.length), this.knf_1, this.jnf_1, this.lnf_1, ByteReadChannel(bytes), this);
|
|
2281
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2282
|
-
return suspendResult;
|
|
2283
|
-
}
|
|
2284
|
-
continue $sm;
|
|
2285
|
-
} else {
|
|
2286
|
-
if (tmp0_subject instanceof ContentWrapper) {
|
|
2287
|
-
this.i9_1 = 3;
|
|
2288
|
-
suspendResult = invoke$logOutgoingContent(this.fnf_1, this.gnf_1, this.hnf_1, this.inf_1.g3q(), this.jnf_1, this.knf_1, this.lnf_1, this.mnf_1, this);
|
|
2289
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
|
-
return suspendResult;
|
|
2291
|
-
}
|
|
2292
|
-
continue $sm;
|
|
2293
|
-
} else {
|
|
2294
|
-
if (tmp0_subject instanceof NoContent) {
|
|
2295
|
-
var tmp_1 = this;
|
|
2296
|
-
this.lnf_1.e1('--> END ' + this.jnf_1.g3k_1);
|
|
2297
|
-
tmp_1.nnf_1 = null;
|
|
2298
|
-
this.i9_1 = 6;
|
|
2299
|
-
continue $sm;
|
|
2300
|
-
} else {
|
|
2301
|
-
if (tmp0_subject instanceof ProtocolUpgrade) {
|
|
2302
|
-
var tmp_2 = this;
|
|
2303
|
-
this.lnf_1.e1('--> END ' + this.jnf_1.g3k_1);
|
|
2304
|
-
tmp_2.nnf_1 = null;
|
|
2305
|
-
this.i9_1 = 6;
|
|
2306
|
-
continue $sm;
|
|
2307
|
-
} else {
|
|
2308
|
-
if (tmp0_subject instanceof ReadChannelContent) {
|
|
2309
|
-
var _destruct__k2r9zo_0 = split(this.inf_1.a3q(), this.fnf_1.u4i_1);
|
|
2310
|
-
this.onf_1 = _destruct__k2r9zo_0.xg();
|
|
2311
|
-
var newChannel = _destruct__k2r9zo_0.yg();
|
|
2312
|
-
this.i9_1 = 2;
|
|
2313
|
-
suspendResult = invoke$logRequestBody(this.gnf_1, this.hnf_1, this.inf_1, this.inf_1.w3p(), this.knf_1, this.jnf_1, this.lnf_1, newChannel, this);
|
|
2314
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2315
|
-
return suspendResult;
|
|
2316
|
-
}
|
|
2317
|
-
continue $sm;
|
|
2318
|
-
} else {
|
|
2319
|
-
if (tmp0_subject instanceof WriteChannelContent) {
|
|
2320
|
-
var channel = new ByteChannel();
|
|
2321
|
-
launch(this.fnf_1.u4i_1, VOID, VOID, Logging$lambda$logOutgoingContent$slambda_0(this.inf_1, channel, null));
|
|
2322
|
-
var _destruct__k2r9zo_1 = split(channel, this.fnf_1.u4i_1);
|
|
2323
|
-
this.pnf_1 = _destruct__k2r9zo_1.xg();
|
|
2324
|
-
var newChannel_0 = _destruct__k2r9zo_1.yg();
|
|
2325
|
-
this.i9_1 = 1;
|
|
2326
|
-
suspendResult = invoke$logRequestBody(this.gnf_1, this.hnf_1, this.inf_1, this.inf_1.w3p(), this.knf_1, this.jnf_1, this.lnf_1, newChannel_0, this);
|
|
2327
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
|
-
return suspendResult;
|
|
2329
|
-
}
|
|
2330
|
-
continue $sm;
|
|
2331
|
-
} else {
|
|
2332
|
-
var tmp_3 = this;
|
|
2333
|
-
noWhenBranchMatchedException();
|
|
2334
|
-
}
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
}
|
|
2338
|
-
}
|
|
2339
|
-
}
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
break;
|
|
2344
|
-
case 1:
|
|
2345
|
-
this.nnf_1 = new LoggedContent(this.inf_1, this.pnf_1);
|
|
2346
|
-
this.i9_1 = 6;
|
|
2347
|
-
continue $sm;
|
|
2348
|
-
case 2:
|
|
2349
|
-
this.nnf_1 = new LoggedContent(this.inf_1, this.onf_1);
|
|
2350
|
-
this.i9_1 = 6;
|
|
2351
|
-
continue $sm;
|
|
2352
|
-
case 3:
|
|
2353
|
-
this.nnf_1 = suspendResult;
|
|
2354
|
-
this.i9_1 = 6;
|
|
2355
|
-
continue $sm;
|
|
2356
|
-
case 4:
|
|
2357
|
-
this.nnf_1 = null;
|
|
2358
|
-
this.i9_1 = 6;
|
|
2359
|
-
continue $sm;
|
|
2360
|
-
case 5:
|
|
2361
|
-
this.nnf_1 = suspendResult;
|
|
2362
|
-
this.i9_1 = 6;
|
|
2363
|
-
continue $sm;
|
|
2364
|
-
case 6:
|
|
2365
|
-
return this.nnf_1;
|
|
2366
|
-
case 7:
|
|
2367
|
-
throw this.l9_1;
|
|
2368
|
-
}
|
|
2369
|
-
} catch ($p) {
|
|
2370
|
-
var e = $p;
|
|
2371
|
-
if (this.j9_1 === 7) {
|
|
2372
|
-
throw e;
|
|
2373
|
-
} else {
|
|
2374
|
-
this.i9_1 = this.j9_1;
|
|
2375
|
-
this.l9_1 = e;
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
while (true);
|
|
2379
|
-
};
|
|
2380
|
-
function $invoke$logRequestOkHttpFormatCOROUTINE$(sanitizedHeaders, level, $this_createClientPlugin, bodyFilter, request, logLines, resultContinuation) {
|
|
2381
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2382
|
-
this.ynf_1 = sanitizedHeaders;
|
|
2383
|
-
this.znf_1 = level;
|
|
2384
|
-
this.ang_1 = $this_createClientPlugin;
|
|
2385
|
-
this.bng_1 = bodyFilter;
|
|
2386
|
-
this.cng_1 = request;
|
|
2387
|
-
this.dng_1 = logLines;
|
|
2388
|
-
}
|
|
2389
|
-
protoOf($invoke$logRequestOkHttpFormatCOROUTINE$).q9 = function () {
|
|
2390
|
-
var suspendResult = this.k9_1;
|
|
2391
|
-
$sm: do
|
|
2392
|
-
try {
|
|
2393
|
-
var tmp = this.i9_1;
|
|
2394
|
-
switch (tmp) {
|
|
2395
|
-
case 0:
|
|
2396
|
-
this.j9_1 = 4;
|
|
2397
|
-
if (invoke$isNone(this.znf_1))
|
|
2398
|
-
return null;
|
|
2399
|
-
var uri = pathQuery(takeFrom(new URLBuilder(), this.cng_1.f4a_1).j1g());
|
|
2400
|
-
var body = this.cng_1.i4a_1;
|
|
2401
|
-
var this_0 = new HeadersBuilder();
|
|
2402
|
-
var tmp_0;
|
|
2403
|
-
var tmp_1;
|
|
2404
|
-
var tmp_2;
|
|
2405
|
-
if (body instanceof OutgoingContent) {
|
|
2406
|
-
tmp_2 = !this.cng_1.g4a_1.equals(Companion_getInstance().w3j_1);
|
|
2407
|
-
} else {
|
|
2408
|
-
tmp_2 = false;
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
if (tmp_2) {
|
|
2412
|
-
tmp_1 = !this.cng_1.g4a_1.equals(Companion_getInstance().b3k_1);
|
|
2413
|
-
} else {
|
|
2414
|
-
tmp_1 = false;
|
|
2415
|
-
}
|
|
2416
|
-
|
|
2417
|
-
if (tmp_1) {
|
|
2418
|
-
tmp_0 = !(body instanceof EmptyContent);
|
|
2419
|
-
} else {
|
|
2420
|
-
tmp_0 = false;
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
if (tmp_0) {
|
|
2424
|
-
var tmp0_safe_receiver = body.u3p();
|
|
2425
|
-
if (tmp0_safe_receiver == null)
|
|
2426
|
-
null;
|
|
2427
|
-
else {
|
|
2428
|
-
appendIfNameAbsent(this_0, 'Content-Type', tmp0_safe_receiver.toString());
|
|
2429
|
-
}
|
|
2430
|
-
var tmp1_safe_receiver = body.w3p();
|
|
2431
|
-
if (tmp1_safe_receiver == null)
|
|
2432
|
-
null;
|
|
2433
|
-
else {
|
|
2434
|
-
appendIfNameAbsent(this_0, 'Content-Length', tmp1_safe_receiver.toString());
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
appendAll(this_0, this.cng_1.h4a_1);
|
|
2439
|
-
var headers = this_0.j1g();
|
|
2440
|
-
var tmp0_safe_receiver_0 = headers.b35('Content-Length');
|
|
2441
|
-
var contentLength = tmp0_safe_receiver_0 == null ? null : toLongOrNull(tmp0_safe_receiver_0);
|
|
2442
|
-
var tmp_3;
|
|
2443
|
-
if (this.cng_1.g4a_1.equals(Companion_getInstance().w3j_1) || this.cng_1.g4a_1.equals(Companion_getInstance().b3k_1) || ((invoke$isHeaders(this.znf_1) || invoke$isBody(this.znf_1)) && !(contentLength == null)) || (invoke$isHeaders(this.znf_1) && contentLength == null) || headers.i36('Content-Encoding')) {
|
|
2444
|
-
tmp_3 = '--> ' + this.cng_1.g4a_1.g3k_1 + ' ' + uri;
|
|
2445
|
-
} else {
|
|
2446
|
-
if (invoke$isInfo(this.znf_1) && !(contentLength == null)) {
|
|
2447
|
-
tmp_3 = '--> ' + this.cng_1.g4a_1.g3k_1 + ' ' + uri + ' (' + contentLength.toString() + '-byte body)';
|
|
2448
|
-
} else {
|
|
2449
|
-
var tmp_4;
|
|
2450
|
-
if (body instanceof WriteChannelContent) {
|
|
2451
|
-
tmp_4 = true;
|
|
2452
|
-
} else {
|
|
2453
|
-
tmp_4 = body instanceof ReadChannelContent;
|
|
2454
|
-
}
|
|
2455
|
-
if (tmp_4) {
|
|
2456
|
-
tmp_3 = '--> ' + this.cng_1.g4a_1.g3k_1 + ' ' + uri + ' (unknown-byte body)';
|
|
2457
|
-
} else {
|
|
2458
|
-
var size = computeRequestBodySize(this.cng_1.i4a_1);
|
|
2459
|
-
tmp_3 = '--> ' + this.cng_1.g4a_1.g3k_1 + ' ' + uri + ' (' + size.toString() + '-byte body)';
|
|
2460
|
-
}
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
var startLine = tmp_3;
|
|
2465
|
-
this.dng_1.e1(startLine);
|
|
2466
|
-
if (!invoke$isHeaders(this.znf_1) && !invoke$isBody(this.znf_1)) {
|
|
2467
|
-
return null;
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
var _iterator__ex2g4s = headers.k36().t();
|
|
2471
|
-
while (_iterator__ex2g4s.u()) {
|
|
2472
|
-
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2473
|
-
var name = _destruct__k2r9zo.m1();
|
|
2474
|
-
var values = _destruct__k2r9zo.n1();
|
|
2475
|
-
var tmp0 = this.ynf_1;
|
|
2476
|
-
var tmp$ret$0 = Unit_instance;
|
|
2477
|
-
l$ret$1: do {
|
|
2478
|
-
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2479
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
2480
|
-
var element = _iterator__ex2g4s_0.v();
|
|
2481
|
-
if (element.anb_1(name)) {
|
|
2482
|
-
tmp$ret$0 = element;
|
|
2483
|
-
break l$ret$1;
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
tmp$ret$0 = null;
|
|
2487
|
-
}
|
|
2488
|
-
while (false);
|
|
2489
|
-
if (tmp$ret$0 == null) {
|
|
2490
|
-
this.dng_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2491
|
-
} else {
|
|
2492
|
-
this.dng_1.e1(name + ': \u2588\u2588');
|
|
2493
|
-
}
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
if (!invoke$isBody(this.znf_1) || this.cng_1.g4a_1.equals(Companion_getInstance().w3j_1) || this.cng_1.g4a_1.equals(Companion_getInstance().b3k_1)) {
|
|
2497
|
-
this.dng_1.e1('--> END ' + this.cng_1.g4a_1.g3k_1);
|
|
2498
|
-
return null;
|
|
2499
|
-
}
|
|
2500
|
-
|
|
2501
|
-
this.dng_1.e1('');
|
|
2502
|
-
if (!(body instanceof OutgoingContent)) {
|
|
2503
|
-
this.dng_1.e1('--> END ' + this.cng_1.g4a_1.g3k_1);
|
|
2504
|
-
return null;
|
|
2505
|
-
}
|
|
2506
|
-
|
|
2507
|
-
if (this.cng_1.h4a_1.b35('Content-Encoding') === 'gzip') {
|
|
2508
|
-
this.i9_1 = 2;
|
|
2509
|
-
var tmp_5 = this.cng_1.f4a_1.j1g();
|
|
2510
|
-
var tmp_6 = this.cng_1.g4a_1;
|
|
2511
|
-
suspendResult = invoke$logOutgoingContent(this.ang_1, this.bng_1, tmp_5, body, tmp_6, headers, this.dng_1, Logging$lambda$logRequestOkHttpFormat$lambda, this);
|
|
2512
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2513
|
-
return suspendResult;
|
|
2514
|
-
}
|
|
2515
|
-
continue $sm;
|
|
2516
|
-
} else {
|
|
2517
|
-
this.i9_1 = 1;
|
|
2518
|
-
suspendResult = invoke$logOutgoingContent(this.ang_1, this.bng_1, this.cng_1.f4a_1.j1g(), body, this.cng_1.g4a_1, headers, this.dng_1, VOID, this);
|
|
2519
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2520
|
-
return suspendResult;
|
|
2521
|
-
}
|
|
2522
|
-
continue $sm;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
case 1:
|
|
2526
|
-
this.eng_1 = suspendResult;
|
|
2527
|
-
this.i9_1 = 3;
|
|
2528
|
-
continue $sm;
|
|
2529
|
-
case 2:
|
|
2530
|
-
this.eng_1 = suspendResult;
|
|
2531
|
-
this.i9_1 = 3;
|
|
2532
|
-
continue $sm;
|
|
2533
|
-
case 3:
|
|
2534
|
-
var newContent = this.eng_1;
|
|
2535
|
-
return newContent;
|
|
2536
|
-
case 4:
|
|
2537
|
-
throw this.l9_1;
|
|
2538
|
-
}
|
|
2539
|
-
} catch ($p) {
|
|
2540
|
-
var e = $p;
|
|
2541
|
-
if (this.j9_1 === 4) {
|
|
2542
|
-
throw e;
|
|
2543
|
-
} else {
|
|
2544
|
-
this.i9_1 = this.j9_1;
|
|
2545
|
-
this.l9_1 = e;
|
|
2546
|
-
}
|
|
2547
|
-
}
|
|
2548
|
-
while (true);
|
|
2549
|
-
};
|
|
2550
|
-
function $invoke$logResponseBodyCOROUTINE$(bodyFilter, response, body, logLines, resultContinuation) {
|
|
2551
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2552
|
-
this.nng_1 = bodyFilter;
|
|
2553
|
-
this.ong_1 = response;
|
|
2554
|
-
this.png_1 = body;
|
|
2555
|
-
this.qng_1 = logLines;
|
|
2556
|
-
}
|
|
2557
|
-
protoOf($invoke$logResponseBodyCOROUTINE$).q9 = function () {
|
|
2558
|
-
var suspendResult = this.k9_1;
|
|
2559
|
-
$sm: do
|
|
2560
|
-
try {
|
|
2561
|
-
var tmp = this.i9_1;
|
|
2562
|
-
switch (tmp) {
|
|
2563
|
-
case 0:
|
|
2564
|
-
this.j9_1 = 2;
|
|
2565
|
-
this.qng_1.e1('');
|
|
2566
|
-
this.i9_1 = 1;
|
|
2567
|
-
suspendResult = this.nng_1.en9(this.ong_1.w4b().o4b().y4b(), contentLength(this.ong_1), contentType(this.ong_1), this.ong_1.v3j(), this.png_1, this);
|
|
2568
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2569
|
-
return suspendResult;
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
continue $sm;
|
|
2573
|
-
case 1:
|
|
2574
|
-
var filteredBody = suspendResult;
|
|
2575
|
-
var duration = subtract(this.ong_1.i4c().c38_1, this.ong_1.h4c().c38_1);
|
|
2576
|
-
if (filteredBody instanceof Empty) {
|
|
2577
|
-
this.qng_1.e1('<-- END HTTP (' + duration.toString() + 'ms, 0-byte body)');
|
|
2578
|
-
} else {
|
|
2579
|
-
if (filteredBody instanceof Skip) {
|
|
2580
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2581
|
-
this_0.q('<-- END HTTP (');
|
|
2582
|
-
this_0.zc(duration);
|
|
2583
|
-
this_0.q('ms, ');
|
|
2584
|
-
var tmp0_safe_receiver = filteredBody.gn9_1;
|
|
2585
|
-
if (tmp0_safe_receiver == null)
|
|
2586
|
-
null;
|
|
2587
|
-
else {
|
|
2588
|
-
this_0.q(tmp0_safe_receiver + ' ');
|
|
2589
|
-
}
|
|
2590
|
-
var tmp1_safe_receiver = filteredBody.hn9_1;
|
|
2591
|
-
if (tmp1_safe_receiver == null)
|
|
2592
|
-
null;
|
|
2593
|
-
else {
|
|
2594
|
-
this_0.q(tmp1_safe_receiver.toString() + '-byte ');
|
|
2595
|
-
}
|
|
2596
|
-
this_0.q('body omitted)');
|
|
2597
|
-
this.qng_1.e1(this_0.toString());
|
|
2598
|
-
} else {
|
|
2599
|
-
if (isInterface(filteredBody, Content)) {
|
|
2600
|
-
this.qng_1.e1(filteredBody.x66());
|
|
2601
|
-
this.qng_1.e1('<-- END HTTP (' + duration.toString() + 'ms, ' + toString_0(filteredBody.fn9()) + '-byte body)');
|
|
2602
|
-
} else {
|
|
2603
|
-
noWhenBranchMatchedException();
|
|
2604
|
-
}
|
|
2605
|
-
}
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
return Unit_instance;
|
|
2609
|
-
case 2:
|
|
2610
|
-
throw this.l9_1;
|
|
2611
|
-
}
|
|
2612
|
-
} catch ($p) {
|
|
2613
|
-
var e = $p;
|
|
2614
|
-
if (this.j9_1 === 2) {
|
|
2615
|
-
throw e;
|
|
2616
|
-
} else {
|
|
2617
|
-
this.i9_1 = this.j9_1;
|
|
2618
|
-
this.l9_1 = e;
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
while (true);
|
|
2622
|
-
};
|
|
2623
|
-
function $invoke$logResponseOkHttpFormatCOROUTINE$(sanitizedHeaders, level, bodyFilter, response, logLines, resultContinuation) {
|
|
2624
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2625
|
-
this.zng_1 = sanitizedHeaders;
|
|
2626
|
-
this.anh_1 = level;
|
|
2627
|
-
this.bnh_1 = bodyFilter;
|
|
2628
|
-
this.cnh_1 = response;
|
|
2629
|
-
this.dnh_1 = logLines;
|
|
2630
|
-
}
|
|
2631
|
-
protoOf($invoke$logResponseOkHttpFormatCOROUTINE$).q9 = function () {
|
|
2632
|
-
var suspendResult = this.k9_1;
|
|
2633
|
-
$sm: do
|
|
2634
|
-
try {
|
|
2635
|
-
var tmp = this.i9_1;
|
|
2636
|
-
switch (tmp) {
|
|
2637
|
-
case 0:
|
|
2638
|
-
this.j9_1 = 4;
|
|
2639
|
-
if (invoke$isNone(this.anh_1))
|
|
2640
|
-
return this.cnh_1;
|
|
2641
|
-
var tmp0_safe_receiver = this.cnh_1.v3j().b35('Content-Length');
|
|
2642
|
-
var contentLength = tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
2643
|
-
var request = get_request(this.cnh_1);
|
|
2644
|
-
var duration = subtract(this.cnh_1.i4c().c38_1, this.cnh_1.h4c().c38_1);
|
|
2645
|
-
var startLine = this.cnh_1.v3j().b35('Transfer-Encoding') === 'chunked' && (invoke$isInfo(this.anh_1) || invoke$isHeaders(this.anh_1)) ? '<-- ' + this.cnh_1.v3p().toString() + ' ' + pathQuery(request.y4b()) + ' (' + duration.toString() + 'ms, unknown-byte body)' : invoke$isInfo(this.anh_1) && !(contentLength == null) ? '<-- ' + this.cnh_1.v3p().toString() + ' ' + pathQuery(request.y4b()) + ' (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)' : invoke$isBody(this.anh_1) || (invoke$isInfo(this.anh_1) && contentLength == null) || (invoke$isHeaders(this.anh_1) && !(contentLength == null)) || this.cnh_1.v3j().b35('Content-Encoding') === 'gzip' ? '<-- ' + this.cnh_1.v3p().toString() + ' ' + pathQuery(request.y4b()) + ' (' + duration.toString() + 'ms)' : '<-- ' + this.cnh_1.v3p().toString() + ' ' + pathQuery(request.y4b()) + ' (' + duration.toString() + 'ms, unknown-byte body)';
|
|
2646
|
-
this.dnh_1.e1(startLine);
|
|
2647
|
-
if (!invoke$isHeaders(this.anh_1) && !invoke$isBody(this.anh_1)) {
|
|
2648
|
-
return this.cnh_1;
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
var _iterator__ex2g4s = this.cnh_1.v3j().k36().t();
|
|
2652
|
-
while (_iterator__ex2g4s.u()) {
|
|
2653
|
-
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
2654
|
-
var name = _destruct__k2r9zo.m1();
|
|
2655
|
-
var values = _destruct__k2r9zo.n1();
|
|
2656
|
-
var tmp0 = this.zng_1;
|
|
2657
|
-
var tmp$ret$0 = Unit_instance;
|
|
2658
|
-
l$ret$1: do {
|
|
2659
|
-
var _iterator__ex2g4s_0 = tmp0.t();
|
|
2660
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
2661
|
-
var element = _iterator__ex2g4s_0.v();
|
|
2662
|
-
if (element.anb_1(name)) {
|
|
2663
|
-
tmp$ret$0 = element;
|
|
2664
|
-
break l$ret$1;
|
|
2665
|
-
}
|
|
2666
|
-
}
|
|
2667
|
-
tmp$ret$0 = null;
|
|
2668
|
-
}
|
|
2669
|
-
while (false);
|
|
2670
|
-
if (tmp$ret$0 == null) {
|
|
2671
|
-
this.dnh_1.e1(name + ': ' + joinToString(values, ', '));
|
|
2672
|
-
} else {
|
|
2673
|
-
this.dnh_1.e1(name + ': \u2588\u2588');
|
|
2674
|
-
}
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
if (!invoke$isBody(this.anh_1)) {
|
|
2678
|
-
this.dnh_1.e1('<-- END HTTP');
|
|
2679
|
-
return this.cnh_1;
|
|
2680
|
-
}
|
|
2681
|
-
|
|
2682
|
-
if (!(contentLength == null) && contentLength === 0n) {
|
|
2683
|
-
this.dnh_1.e1('<-- END HTTP (' + duration.toString() + 'ms, ' + contentLength.toString() + '-byte body)');
|
|
2684
|
-
return this.cnh_1;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
if (equals(contentType(this.cnh_1), Text_getInstance().e3e_1)) {
|
|
2688
|
-
this.dnh_1.e1('<-- END HTTP (streaming)');
|
|
2689
|
-
return this.cnh_1;
|
|
2690
|
-
}
|
|
2691
|
-
|
|
2692
|
-
if (get_isSaved(this.cnh_1)) {
|
|
2693
|
-
this.i9_1 = 3;
|
|
2694
|
-
suspendResult = invoke$logResponseBody(this.bnh_1, this.cnh_1, this.cnh_1.f4c(), this.dnh_1, this);
|
|
2695
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2696
|
-
return suspendResult;
|
|
2697
|
-
}
|
|
2698
|
-
continue $sm;
|
|
2699
|
-
} else {
|
|
2700
|
-
this.i9_1 = 1;
|
|
2701
|
-
continue $sm;
|
|
2702
|
-
}
|
|
2703
|
-
|
|
2704
|
-
case 1:
|
|
2705
|
-
var _destruct__k2r9zo_0 = split(this.cnh_1.f4c(), this.cnh_1);
|
|
2706
|
-
this.enh_1 = _destruct__k2r9zo_0.xg();
|
|
2707
|
-
var newChannel = _destruct__k2r9zo_0.yg();
|
|
2708
|
-
this.i9_1 = 2;
|
|
2709
|
-
suspendResult = invoke$logResponseBody(this.bnh_1, this.cnh_1, newChannel, this.dnh_1, this);
|
|
2710
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2711
|
-
return suspendResult;
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
continue $sm;
|
|
2715
|
-
case 2:
|
|
2716
|
-
var tmp_0 = this.cnh_1.w4b();
|
|
2717
|
-
var call = replaceResponse(tmp_0, VOID, Logging$lambda$logResponseOkHttpFormat$lambda(this.enh_1));
|
|
2718
|
-
return call.f49();
|
|
2719
|
-
case 3:
|
|
2720
|
-
return this.cnh_1;
|
|
2721
|
-
case 4:
|
|
2722
|
-
throw this.l9_1;
|
|
2723
|
-
}
|
|
2724
|
-
} catch ($p) {
|
|
2725
|
-
var e = $p;
|
|
2726
|
-
if (this.j9_1 === 4) {
|
|
2727
|
-
throw e;
|
|
2728
|
-
} else {
|
|
2729
|
-
this.i9_1 = this.j9_1;
|
|
2730
|
-
this.l9_1 = e;
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
while (true);
|
|
2734
|
-
};
|
|
2735
|
-
function LoggingFormat_Default_getInstance() {
|
|
2736
|
-
LoggingFormat_initEntries();
|
|
2737
|
-
return LoggingFormat_Default_instance;
|
|
2738
|
-
}
|
|
2739
|
-
function LoggingFormat_OkHttp_getInstance() {
|
|
2740
|
-
LoggingFormat_initEntries();
|
|
2741
|
-
return LoggingFormat_OkHttp_instance;
|
|
2742
|
-
}
|
|
2743
|
-
var properties_initialized_Logging_kt_588vu7;
|
|
2744
|
-
function _init_properties_Logging_kt__66pui5() {
|
|
2745
|
-
if (!properties_initialized_Logging_kt_588vu7) {
|
|
2746
|
-
properties_initialized_Logging_kt_588vu7 = true;
|
|
2747
|
-
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2748
|
-
var name = 'CallLogger';
|
|
2749
|
-
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
2750
|
-
var tmp = getKClass(HttpClientCallLogger);
|
|
2751
|
-
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
2752
|
-
var tmp_0;
|
|
2753
|
-
try {
|
|
2754
|
-
tmp_0 = createKType(getKClass(HttpClientCallLogger), arrayOf([]), false);
|
|
2755
|
-
} catch ($p) {
|
|
2756
|
-
var tmp_1;
|
|
2757
|
-
if ($p instanceof Error) {
|
|
2758
|
-
var _unused_var__etf5q3 = $p;
|
|
2759
|
-
tmp_1 = null;
|
|
2760
|
-
} else {
|
|
2761
|
-
throw $p;
|
|
2762
|
-
}
|
|
2763
|
-
tmp_0 = tmp_1;
|
|
2764
|
-
}
|
|
2765
|
-
var tmp$ret$0 = tmp_0;
|
|
2766
|
-
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
|
|
2767
|
-
ClientCallLogger = new AttributeKey(name, tmp$ret$1);
|
|
2768
|
-
// Inline function 'io.ktor.util.AttributeKey' call
|
|
2769
|
-
var name_0 = 'DisableLogging';
|
|
2770
|
-
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
2771
|
-
var tmp_2 = getKClass(Unit);
|
|
2772
|
-
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
2773
|
-
var tmp_3;
|
|
2774
|
-
try {
|
|
2775
|
-
tmp_3 = createKType(getKClass(Unit), arrayOf([]), false);
|
|
2776
|
-
} catch ($p) {
|
|
2777
|
-
var tmp_4;
|
|
2778
|
-
if ($p instanceof Error) {
|
|
2779
|
-
var _unused_var__etf5q3_0 = $p;
|
|
2780
|
-
tmp_4 = null;
|
|
2781
|
-
} else {
|
|
2782
|
-
throw $p;
|
|
2783
|
-
}
|
|
2784
|
-
tmp_3 = tmp_4;
|
|
2785
|
-
}
|
|
2786
|
-
var tmp$ret$0_0 = tmp_3;
|
|
2787
|
-
var tmp$ret$1_0 = new TypeInfo(tmp_2, tmp$ret$0_0);
|
|
2788
|
-
DisableLogging = new AttributeKey(name_0, tmp$ret$1_0);
|
|
2789
|
-
var tmp_5 = LoggingConfig$_init_$ref_f1nb0k();
|
|
2790
|
-
Logging = createClientPlugin('Logging', tmp_5, Logging$lambda);
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
function logHeaders(_this__u8e3s4, headers, sanitizedHeaders) {
|
|
2794
|
-
// Inline function 'kotlin.collections.sortedBy' call
|
|
2795
|
-
var this_0 = toList(headers);
|
|
2796
|
-
// Inline function 'kotlin.comparisons.compareBy' call
|
|
2797
|
-
var tmp = logHeaders$lambda;
|
|
2798
|
-
var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
|
|
2799
|
-
var sortedHeaders = sortedWith(this_0, tmp$ret$0);
|
|
2800
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
2801
|
-
var _iterator__ex2g4s = sortedHeaders.t();
|
|
2802
|
-
while (_iterator__ex2g4s.u()) {
|
|
2803
|
-
var element = _iterator__ex2g4s.v();
|
|
2804
|
-
// Inline function 'kotlin.collections.component1' call
|
|
2805
|
-
var key = element.m1();
|
|
2806
|
-
// Inline function 'kotlin.collections.component2' call
|
|
2807
|
-
var values = element.n1();
|
|
2808
|
-
var tmp$ret$5;
|
|
2809
|
-
$l$block: {
|
|
2810
|
-
// Inline function 'kotlin.collections.firstOrNull' call
|
|
2811
|
-
var _iterator__ex2g4s_0 = sanitizedHeaders.t();
|
|
2812
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
2813
|
-
var element_0 = _iterator__ex2g4s_0.v();
|
|
2814
|
-
if (element_0.anb_1(key)) {
|
|
2815
|
-
tmp$ret$5 = element_0;
|
|
2816
|
-
break $l$block;
|
|
2817
|
-
}
|
|
2818
|
-
}
|
|
2819
|
-
tmp$ret$5 = null;
|
|
2820
|
-
}
|
|
2821
|
-
var tmp0_safe_receiver = tmp$ret$5;
|
|
2822
|
-
var placeholder = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.zna_1;
|
|
2823
|
-
logHeader(_this__u8e3s4, key, placeholder == null ? joinToString(values, '; ') : placeholder);
|
|
2824
|
-
}
|
|
2825
|
-
}
|
|
2826
|
-
function logHeader(_this__u8e3s4, key, value) {
|
|
2827
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2828
|
-
var value_0 = '-> ' + key + ': ' + value;
|
|
2829
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2830
|
-
_this__u8e3s4.f1(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2831
|
-
}
|
|
2832
|
-
function logResponseHeader(log, response, level, sanitizedHeaders) {
|
|
2833
|
-
// Inline function 'kotlin.with' call
|
|
2834
|
-
if (level.gna_1) {
|
|
2835
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2836
|
-
var value = 'RESPONSE: ' + response.v3p().toString();
|
|
2837
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2838
|
-
log.q(value).s(_Char___init__impl__6a9atx(10));
|
|
2839
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2840
|
-
var value_0 = 'METHOD: ' + response.w4b().o4b().x4b().toString();
|
|
2841
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2842
|
-
log.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
2843
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2844
|
-
var value_1 = 'FROM: ' + response.w4b().o4b().y4b().toString();
|
|
2845
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2846
|
-
log.q(value_1).s(_Char___init__impl__6a9atx(10));
|
|
2847
|
-
}
|
|
2848
|
-
if (level.hna_1) {
|
|
2849
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2850
|
-
var value_2 = 'COMMON HEADERS';
|
|
2851
|
-
// Inline function 'kotlin.text.appendLine' call
|
|
2852
|
-
log.q(value_2).s(_Char___init__impl__6a9atx(10));
|
|
2853
|
-
logHeaders(log, response.v3j().k36(), sanitizedHeaders);
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
function logResponseBody(_this__u8e3s4, response, $completion) {
|
|
2857
|
-
var tmp = new $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, $completion);
|
|
2858
|
-
tmp.k9_1 = Unit_instance;
|
|
2859
|
-
tmp.l9_1 = null;
|
|
2860
|
-
return tmp.q9();
|
|
2861
|
-
}
|
|
2862
|
-
function appendResponseBody(_this__u8e3s4, contentType, content, $completion) {
|
|
2863
|
-
var tmp = new $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, $completion);
|
|
2864
|
-
tmp.k9_1 = Unit_instance;
|
|
2865
|
-
tmp.l9_1 = null;
|
|
2866
|
-
return tmp.q9();
|
|
2867
|
-
}
|
|
2868
|
-
function sam$kotlin_Comparator$0(function_0) {
|
|
2869
|
-
this.snl_1 = function_0;
|
|
2870
|
-
}
|
|
2871
|
-
protoOf(sam$kotlin_Comparator$0).le = function (a, b) {
|
|
2872
|
-
return this.snl_1(a, b);
|
|
2873
|
-
};
|
|
2874
|
-
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
2875
|
-
return this.le(a, b);
|
|
2876
|
-
};
|
|
2877
|
-
protoOf(sam$kotlin_Comparator$0).q3 = function () {
|
|
2878
|
-
return this.snl_1;
|
|
2879
|
-
};
|
|
2880
|
-
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
2881
|
-
var tmp;
|
|
2882
|
-
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
2883
|
-
var tmp_0;
|
|
2884
|
-
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
2885
|
-
tmp_0 = equals(this.q3(), other.q3());
|
|
2886
|
-
} else {
|
|
2887
|
-
tmp_0 = false;
|
|
2888
|
-
}
|
|
2889
|
-
tmp = tmp_0;
|
|
2890
|
-
} else {
|
|
2891
|
-
tmp = false;
|
|
2892
|
-
}
|
|
2893
|
-
return tmp;
|
|
2894
|
-
};
|
|
2895
|
-
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
2896
|
-
return hashCode(this.q3());
|
|
2897
|
-
};
|
|
2898
|
-
function logHeaders$lambda(a, b) {
|
|
2899
|
-
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
2900
|
-
var tmp = a.m1();
|
|
2901
|
-
var tmp$ret$1 = b.m1();
|
|
2902
|
-
return compareValues(tmp, tmp$ret$1);
|
|
2903
|
-
}
|
|
2904
|
-
function $logResponseBodyCOROUTINE$_0(_this__u8e3s4, response, resultContinuation) {
|
|
2905
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2906
|
-
this.bnl_1 = _this__u8e3s4;
|
|
2907
|
-
this.cnl_1 = response;
|
|
2908
|
-
}
|
|
2909
|
-
protoOf($logResponseBodyCOROUTINE$_0).q9 = function () {
|
|
2910
|
-
var suspendResult = this.k9_1;
|
|
2911
|
-
$sm: do
|
|
2912
|
-
try {
|
|
2913
|
-
var tmp = this.i9_1;
|
|
2914
|
-
switch (tmp) {
|
|
2915
|
-
case 0:
|
|
2916
|
-
this.j9_1 = 8;
|
|
2917
|
-
this.dnl_1 = StringBuilder_init_$Create$();
|
|
2918
|
-
this.i9_1 = 1;
|
|
2919
|
-
continue $sm;
|
|
2920
|
-
case 1:
|
|
2921
|
-
this.j9_1 = 4;
|
|
2922
|
-
this.j9_1 = 3;
|
|
2923
|
-
this.i9_1 = 2;
|
|
2924
|
-
suspendResult = appendResponseBody(this.dnl_1, contentType(this.cnl_1), this.cnl_1.f4c(), this);
|
|
2925
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2926
|
-
return suspendResult;
|
|
2927
|
-
}
|
|
2928
|
-
|
|
2929
|
-
continue $sm;
|
|
2930
|
-
case 2:
|
|
2931
|
-
this.j9_1 = 8;
|
|
2932
|
-
this.i9_1 = 6;
|
|
2933
|
-
continue $sm;
|
|
2934
|
-
case 3:
|
|
2935
|
-
this.j9_1 = 4;
|
|
2936
|
-
var tmp_0 = this.l9_1;
|
|
2937
|
-
if (tmp_0 instanceof Error) {
|
|
2938
|
-
var _unused_var__etf5q3 = this.l9_1;
|
|
2939
|
-
this.j9_1 = 8;
|
|
2940
|
-
this.i9_1 = 6;
|
|
2941
|
-
continue $sm;
|
|
2942
|
-
} else {
|
|
2943
|
-
throw this.l9_1;
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
case 4:
|
|
2947
|
-
this.j9_1 = 8;
|
|
2948
|
-
this.enl_1 = this.l9_1;
|
|
2949
|
-
this.i9_1 = 5;
|
|
2950
|
-
var this_0 = this.dnl_1.toString();
|
|
2951
|
-
suspendResult = this.bnl_1.zn8(toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())), this);
|
|
2952
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2953
|
-
return suspendResult;
|
|
2954
|
-
}
|
|
2955
|
-
|
|
2956
|
-
continue $sm;
|
|
2957
|
-
case 5:
|
|
2958
|
-
throw this.enl_1;
|
|
2959
|
-
case 6:
|
|
2960
|
-
this.j9_1 = 8;
|
|
2961
|
-
this.i9_1 = 7;
|
|
2962
|
-
var this_1 = this.dnl_1.toString();
|
|
2963
|
-
suspendResult = this.bnl_1.zn8(toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE())), this);
|
|
2964
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2965
|
-
return suspendResult;
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
continue $sm;
|
|
2969
|
-
case 7:
|
|
2970
|
-
return Unit_instance;
|
|
2971
|
-
case 8:
|
|
2972
|
-
throw this.l9_1;
|
|
2973
|
-
}
|
|
2974
|
-
} catch ($p) {
|
|
2975
|
-
var e = $p;
|
|
2976
|
-
if (this.j9_1 === 8) {
|
|
2977
|
-
throw e;
|
|
2978
|
-
} else {
|
|
2979
|
-
this.i9_1 = this.j9_1;
|
|
2980
|
-
this.l9_1 = e;
|
|
2981
|
-
}
|
|
2982
|
-
}
|
|
2983
|
-
while (true);
|
|
2984
|
-
};
|
|
2985
|
-
function $appendResponseBodyCOROUTINE$(_this__u8e3s4, contentType, content, resultContinuation) {
|
|
2986
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2987
|
-
this.nnl_1 = _this__u8e3s4;
|
|
2988
|
-
this.onl_1 = contentType;
|
|
2989
|
-
this.pnl_1 = content;
|
|
2990
|
-
}
|
|
2991
|
-
protoOf($appendResponseBodyCOROUTINE$).q9 = function () {
|
|
2992
|
-
var suspendResult = this.k9_1;
|
|
2993
|
-
$sm: do
|
|
2994
|
-
try {
|
|
2995
|
-
var tmp = this.i9_1;
|
|
2996
|
-
switch (tmp) {
|
|
2997
|
-
case 0:
|
|
2998
|
-
this.j9_1 = 3;
|
|
2999
|
-
var tmp0 = this.nnl_1;
|
|
3000
|
-
var value = 'BODY Content-Type: ' + toString_0(this.onl_1);
|
|
3001
|
-
tmp0.q(value).s(_Char___init__impl__6a9atx(10));
|
|
3002
|
-
var tmp0_0 = this.nnl_1;
|
|
3003
|
-
var value_0 = 'BODY START';
|
|
3004
|
-
tmp0_0.q(value_0).s(_Char___init__impl__6a9atx(10));
|
|
3005
|
-
var tmp0_1 = this.pnl_1;
|
|
3006
|
-
var tmp0_safe_receiver = this.onl_1;
|
|
3007
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
3008
|
-
this.rnl_1 = tmp1_elvis_lhs == null ? Charsets_getInstance().d31_1 : tmp1_elvis_lhs;
|
|
3009
|
-
this.j9_1 = 2;
|
|
3010
|
-
this.i9_1 = 1;
|
|
3011
|
-
suspendResult = readRemaining(tmp0_1, this);
|
|
3012
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3013
|
-
return suspendResult;
|
|
3014
|
-
}
|
|
3015
|
-
|
|
3016
|
-
continue $sm;
|
|
3017
|
-
case 1:
|
|
3018
|
-
var ARGUMENT = suspendResult;
|
|
3019
|
-
this.qnl_1 = readText(ARGUMENT, this.rnl_1);
|
|
3020
|
-
this.j9_1 = 3;
|
|
3021
|
-
this.i9_1 = 4;
|
|
3022
|
-
continue $sm;
|
|
3023
|
-
case 2:
|
|
3024
|
-
this.j9_1 = 3;
|
|
3025
|
-
var tmp_0 = this.l9_1;
|
|
3026
|
-
if (tmp_0 instanceof Error) {
|
|
3027
|
-
var cause = this.l9_1;
|
|
3028
|
-
var tmp_1 = this;
|
|
3029
|
-
tmp_1.qnl_1 = null;
|
|
3030
|
-
this.i9_1 = 4;
|
|
3031
|
-
continue $sm;
|
|
3032
|
-
} else {
|
|
3033
|
-
throw this.l9_1;
|
|
3034
|
-
}
|
|
3035
|
-
|
|
3036
|
-
case 3:
|
|
3037
|
-
throw this.l9_1;
|
|
3038
|
-
case 4:
|
|
3039
|
-
this.j9_1 = 3;
|
|
3040
|
-
var tmp2_elvis_lhs = this.qnl_1;
|
|
3041
|
-
var message = tmp2_elvis_lhs == null ? '[response body omitted]' : tmp2_elvis_lhs;
|
|
3042
|
-
this.nnl_1.q(message).s(_Char___init__impl__6a9atx(10));
|
|
3043
|
-
this.nnl_1.q('BODY END');
|
|
3044
|
-
return Unit_instance;
|
|
3045
|
-
}
|
|
3046
|
-
} catch ($p) {
|
|
3047
|
-
var e = $p;
|
|
3048
|
-
if (this.j9_1 === 3) {
|
|
3049
|
-
throw e;
|
|
3050
|
-
} else {
|
|
3051
|
-
this.i9_1 = this.j9_1;
|
|
3052
|
-
this.l9_1 = e;
|
|
3053
|
-
}
|
|
3054
|
-
}
|
|
3055
|
-
while (true);
|
|
3056
|
-
};
|
|
3057
|
-
function observe(_this__u8e3s4, log, $completion) {
|
|
3058
|
-
var tmp = new $observeCOROUTINE$(_this__u8e3s4, log, $completion);
|
|
3059
|
-
tmp.k9_1 = Unit_instance;
|
|
3060
|
-
tmp.l9_1 = null;
|
|
3061
|
-
return tmp.q9();
|
|
3062
|
-
}
|
|
3063
|
-
function toReadChannel(_this__u8e3s4) {
|
|
3064
|
-
var tmp = GlobalScope_instance;
|
|
3065
|
-
var tmp_0 = Dispatchers_getInstance().o27_1;
|
|
3066
|
-
return writer(tmp, tmp_0, VOID, toReadChannel$slambda_0(_this__u8e3s4, null)).v2y_1;
|
|
3067
|
-
}
|
|
3068
|
-
function toReadChannel$slambda($this_toReadChannel, resultContinuation) {
|
|
3069
|
-
this.nnm_1 = $this_toReadChannel;
|
|
3070
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
3071
|
-
}
|
|
3072
|
-
protoOf(toReadChannel$slambda).r3v = function ($this$writer, $completion) {
|
|
3073
|
-
var tmp = this.s3v($this$writer, $completion);
|
|
3074
|
-
tmp.k9_1 = Unit_instance;
|
|
3075
|
-
tmp.l9_1 = null;
|
|
3076
|
-
return tmp.q9();
|
|
3077
|
-
};
|
|
3078
|
-
protoOf(toReadChannel$slambda).ca = function (p1, $completion) {
|
|
3079
|
-
return this.r3v(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
3080
|
-
};
|
|
3081
|
-
protoOf(toReadChannel$slambda).q9 = function () {
|
|
3082
|
-
var suspendResult = this.k9_1;
|
|
3083
|
-
$sm: do
|
|
3084
|
-
try {
|
|
3085
|
-
var tmp = this.i9_1;
|
|
3086
|
-
switch (tmp) {
|
|
3087
|
-
case 0:
|
|
3088
|
-
this.j9_1 = 2;
|
|
3089
|
-
this.i9_1 = 1;
|
|
3090
|
-
suspendResult = this.nnm_1.c3q(this.onm_1.x2y_1, this);
|
|
3091
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3092
|
-
return suspendResult;
|
|
3093
|
-
}
|
|
3094
|
-
|
|
3095
|
-
continue $sm;
|
|
3096
|
-
case 1:
|
|
3097
|
-
return Unit_instance;
|
|
3098
|
-
case 2:
|
|
3099
|
-
throw this.l9_1;
|
|
3100
|
-
}
|
|
3101
|
-
} catch ($p) {
|
|
3102
|
-
var e = $p;
|
|
3103
|
-
if (this.j9_1 === 2) {
|
|
3104
|
-
throw e;
|
|
3105
|
-
} else {
|
|
3106
|
-
this.i9_1 = this.j9_1;
|
|
3107
|
-
this.l9_1 = e;
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3110
|
-
while (true);
|
|
3111
|
-
};
|
|
3112
|
-
protoOf(toReadChannel$slambda).s3v = function ($this$writer, completion) {
|
|
3113
|
-
var i = new toReadChannel$slambda(this.nnm_1, completion);
|
|
3114
|
-
i.onm_1 = $this$writer;
|
|
3115
|
-
return i;
|
|
3116
|
-
};
|
|
3117
|
-
function toReadChannel$slambda_0($this_toReadChannel, resultContinuation) {
|
|
3118
|
-
var i = new toReadChannel$slambda($this_toReadChannel, resultContinuation);
|
|
3119
|
-
var l = function ($this$writer, $completion) {
|
|
3120
|
-
return i.r3v($this$writer, $completion);
|
|
3121
|
-
};
|
|
3122
|
-
l.$arity = 1;
|
|
3123
|
-
return l;
|
|
3124
|
-
}
|
|
3125
|
-
function $observeCOROUTINE$(_this__u8e3s4, log, resultContinuation) {
|
|
3126
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
3127
|
-
this.bnm_1 = _this__u8e3s4;
|
|
3128
|
-
this.cnm_1 = log;
|
|
3129
|
-
}
|
|
3130
|
-
protoOf($observeCOROUTINE$).q9 = function () {
|
|
3131
|
-
var suspendResult = this.k9_1;
|
|
3132
|
-
$sm: do
|
|
3133
|
-
try {
|
|
3134
|
-
var tmp = this.i9_1;
|
|
3135
|
-
switch (tmp) {
|
|
3136
|
-
case 0:
|
|
3137
|
-
this.j9_1 = 6;
|
|
3138
|
-
var tmp0_subject = this.bnm_1;
|
|
3139
|
-
if (tmp0_subject instanceof ByteArrayContent) {
|
|
3140
|
-
this.i9_1 = 3;
|
|
3141
|
-
suspendResult = writeFully_0(this.cnm_1, this.bnm_1.x3p(), VOID, VOID, this);
|
|
3142
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3143
|
-
return suspendResult;
|
|
3144
|
-
}
|
|
3145
|
-
continue $sm;
|
|
3146
|
-
} else {
|
|
3147
|
-
if (tmp0_subject instanceof ReadChannelContent) {
|
|
3148
|
-
var tmp_0 = this;
|
|
3149
|
-
var responseChannel = new ByteChannel();
|
|
3150
|
-
var content = this.bnm_1.a3q();
|
|
3151
|
-
copyToBoth(content, this.cnm_1, responseChannel);
|
|
3152
|
-
tmp_0.dnm_1 = new LoggedContent(this.bnm_1, responseChannel);
|
|
3153
|
-
this.i9_1 = 5;
|
|
3154
|
-
continue $sm;
|
|
3155
|
-
} else {
|
|
3156
|
-
if (tmp0_subject instanceof WriteChannelContent) {
|
|
3157
|
-
var tmp_1 = this;
|
|
3158
|
-
var responseChannel_0 = new ByteChannel();
|
|
3159
|
-
var content_0 = toReadChannel(this.bnm_1);
|
|
3160
|
-
copyToBoth(content_0, this.cnm_1, responseChannel_0);
|
|
3161
|
-
tmp_1.dnm_1 = new LoggedContent(this.bnm_1, responseChannel_0);
|
|
3162
|
-
this.i9_1 = 5;
|
|
3163
|
-
continue $sm;
|
|
3164
|
-
} else {
|
|
3165
|
-
if (tmp0_subject instanceof ContentWrapper) {
|
|
3166
|
-
this.enm_1 = this.bnm_1;
|
|
3167
|
-
this.i9_1 = 2;
|
|
3168
|
-
suspendResult = observe(this.bnm_1.g3q(), this.cnm_1, this);
|
|
3169
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3170
|
-
return suspendResult;
|
|
3171
|
-
}
|
|
3172
|
-
continue $sm;
|
|
3173
|
-
} else {
|
|
3174
|
-
var tmp_2;
|
|
3175
|
-
if (tmp0_subject instanceof NoContent) {
|
|
3176
|
-
tmp_2 = true;
|
|
3177
|
-
} else {
|
|
3178
|
-
tmp_2 = tmp0_subject instanceof ProtocolUpgrade;
|
|
3179
|
-
}
|
|
3180
|
-
if (tmp_2) {
|
|
3181
|
-
this.i9_1 = 1;
|
|
3182
|
-
suspendResult = this.cnm_1.x2q(this);
|
|
3183
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3184
|
-
return suspendResult;
|
|
3185
|
-
}
|
|
3186
|
-
continue $sm;
|
|
3187
|
-
} else {
|
|
3188
|
-
var tmp_3 = this;
|
|
3189
|
-
noWhenBranchMatchedException();
|
|
3190
|
-
}
|
|
3191
|
-
}
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
break;
|
|
3197
|
-
case 1:
|
|
3198
|
-
this.dnm_1 = this.bnm_1;
|
|
3199
|
-
this.i9_1 = 5;
|
|
3200
|
-
continue $sm;
|
|
3201
|
-
case 2:
|
|
3202
|
-
var ARGUMENT = suspendResult;
|
|
3203
|
-
this.dnm_1 = this.enm_1.h3q(ARGUMENT);
|
|
3204
|
-
this.i9_1 = 5;
|
|
3205
|
-
continue $sm;
|
|
3206
|
-
case 3:
|
|
3207
|
-
this.i9_1 = 4;
|
|
3208
|
-
suspendResult = this.cnm_1.x2q(this);
|
|
3209
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3210
|
-
return suspendResult;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
continue $sm;
|
|
3214
|
-
case 4:
|
|
3215
|
-
this.dnm_1 = this.bnm_1;
|
|
3216
|
-
this.i9_1 = 5;
|
|
3217
|
-
continue $sm;
|
|
3218
|
-
case 5:
|
|
3219
|
-
return this.dnm_1;
|
|
3220
|
-
case 6:
|
|
3221
|
-
throw this.l9_1;
|
|
3222
|
-
}
|
|
3223
|
-
} catch ($p) {
|
|
3224
|
-
var e = $p;
|
|
3225
|
-
if (this.j9_1 === 6) {
|
|
3226
|
-
throw e;
|
|
3227
|
-
} else {
|
|
3228
|
-
this.i9_1 = this.j9_1;
|
|
3229
|
-
this.l9_1 = e;
|
|
3230
|
-
}
|
|
3231
|
-
}
|
|
3232
|
-
while (true);
|
|
3233
|
-
};
|
|
3234
|
-
function MDCContext() {
|
|
3235
|
-
return MDCContextElement_instance;
|
|
3236
|
-
}
|
|
3237
|
-
function MDCContextKey() {
|
|
3238
|
-
}
|
|
3239
|
-
var MDCContextKey_instance;
|
|
3240
|
-
function MDCContextKey_getInstance() {
|
|
3241
|
-
return MDCContextKey_instance;
|
|
3242
|
-
}
|
|
3243
|
-
function MDCContextElement() {
|
|
3244
|
-
}
|
|
3245
|
-
protoOf(MDCContextElement).m1 = function () {
|
|
3246
|
-
return MDCContextKey_instance;
|
|
3247
|
-
};
|
|
3248
|
-
protoOf(MDCContextElement).toString = function () {
|
|
3249
|
-
return 'MDCContext';
|
|
3250
|
-
};
|
|
3251
|
-
var MDCContextElement_instance;
|
|
3252
|
-
function MDCContextElement_getInstance() {
|
|
3253
|
-
return MDCContextElement_instance;
|
|
3254
|
-
}
|
|
3255
|
-
function get_DEFAULT(_this__u8e3s4) {
|
|
3256
|
-
return get_SIMPLE(_this__u8e3s4);
|
|
3257
|
-
}
|
|
3258
|
-
//region block: post-declaration
|
|
3259
|
-
protoOf(Empty).fn9 = get_byteSize;
|
|
3260
|
-
protoOf(BinaryLogBodyFilter$1).cn9 = filterRequest;
|
|
3261
|
-
protoOf(BinaryLogBodyFilter$1).en9 = filterResponse;
|
|
3262
|
-
protoOf(MDCContextElement).v9 = get;
|
|
3263
|
-
protoOf(MDCContextElement).pj = fold;
|
|
3264
|
-
protoOf(MDCContextElement).oj = minusKey;
|
|
3265
|
-
protoOf(MDCContextElement).qj = plus;
|
|
3266
|
-
//endregion
|
|
3267
|
-
//region block: init
|
|
3268
|
-
Empty_instance = new Empty();
|
|
3269
|
-
Companion_instance = new Companion();
|
|
3270
|
-
SimpleLogger_instance = new SimpleLogger();
|
|
3271
|
-
SendHook_instance = new SendHook();
|
|
3272
|
-
ResponseAfterEncodingHook_instance = new ResponseAfterEncodingHook();
|
|
3273
|
-
ResponseHook_instance = new ResponseHook();
|
|
3274
|
-
ReceiveHook_instance = new ReceiveHook();
|
|
3275
|
-
MDCContextKey_instance = new MDCContextKey();
|
|
3276
|
-
MDCContextElement_instance = new MDCContextElement();
|
|
3277
|
-
//endregion
|
|
3278
|
-
//region block: exports
|
|
3279
|
-
_.$_$ = _.$_$ || {};
|
|
3280
|
-
_.$_$.a = LogLevel_NONE_getInstance;
|
|
3281
|
-
_.$_$.b = get_Logging;
|
|
3282
|
-
//endregion
|
|
3283
|
-
return _;
|
|
3284
|
-
}));
|
|
3285
|
-
|
|
3286
|
-
//# sourceMappingURL=ktor-ktor-client-logging.js.map
|