@solibo/solibo-sdk 1.0.36 → 1.0.38

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