@solibo/home-api 1.1.9 → 1.1.10

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 (113) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3601 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +4 -0
  4. package/{MultiplatformSettings-multiplatform-settings.js.map → MultiplatformSettings-multiplatform-settings-no-arg.mjs.map} +1 -1
  5. package/MultiplatformSettings-multiplatform-settings.mjs +4 -0
  6. package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → MultiplatformSettings-multiplatform-settings.mjs.map} +1 -1
  7. package/kotlin-kotlin-stdlib.mjs +17369 -0
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  9. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  10. package/{kotlinx-serialization-kotlinx-serialization-json-io.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  11. package/kotlinx-atomicfu.mjs +250 -0
  12. package/kotlinx-atomicfu.mjs.map +1 -0
  13. package/kotlinx-browser.mjs +8 -0
  14. package/{kotlinx-browser.js.map → kotlinx-browser.mjs.map} +1 -1
  15. package/kotlinx-coroutines-core.mjs +8888 -0
  16. package/kotlinx-coroutines-core.mjs.map +1 -0
  17. package/kotlinx-io-kotlinx-io-bytestring.mjs +202 -0
  18. package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
  19. package/kotlinx-io-kotlinx-io-core.mjs +2020 -0
  20. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  21. package/kotlinx-serialization-kotlinx-serialization-core.mjs +6045 -0
  22. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
  24. package/{MultiplatformSettings-multiplatform-settings-no-arg.js.map → kotlinx-serialization-kotlinx-serialization-json-io.mjs.map} +1 -1
  25. package/kotlinx-serialization-kotlinx-serialization-json.mjs +5061 -0
  26. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  27. package/ktor-ktor-client-auth.mjs +4 -0
  28. package/ktor-ktor-client-auth.mjs.map +1 -0
  29. package/ktor-ktor-client-content-negotiation.mjs +750 -0
  30. package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
  31. package/ktor-ktor-client-core.mjs +9810 -0
  32. package/ktor-ktor-client-core.mjs.map +1 -0
  33. package/ktor-ktor-client-logging.mjs +4 -0
  34. package/ktor-ktor-client-logging.mjs.map +1 -0
  35. package/ktor-ktor-events.mjs +81 -0
  36. package/ktor-ktor-events.mjs.map +1 -0
  37. package/ktor-ktor-http-cio.mjs +2254 -0
  38. package/ktor-ktor-http-cio.mjs.map +1 -0
  39. package/ktor-ktor-http.mjs +3238 -0
  40. package/ktor-ktor-http.mjs.map +1 -0
  41. package/ktor-ktor-io.mjs +3536 -0
  42. package/ktor-ktor-io.mjs.map +1 -0
  43. package/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
  44. package/{ktor-ktor-serialization-kotlinx-json.js.map → ktor-ktor-serialization-kotlinx-json.mjs.map} +1 -1
  45. package/ktor-ktor-serialization-kotlinx.mjs +843 -0
  46. package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
  47. package/ktor-ktor-serialization.mjs +364 -0
  48. package/ktor-ktor-serialization.mjs.map +1 -0
  49. package/ktor-ktor-sse.mjs +4 -0
  50. package/ktor-ktor-sse.mjs.map +1 -0
  51. package/ktor-ktor-utils.mjs +2620 -0
  52. package/ktor-ktor-utils.mjs.map +1 -0
  53. package/ktor-ktor-websocket-serialization.mjs +4 -0
  54. package/ktor-ktor-websocket-serialization.mjs.map +1 -0
  55. package/ktor-ktor-websockets.mjs +2535 -0
  56. package/ktor-ktor-websockets.mjs.map +1 -0
  57. package/package.json +2 -3
  58. package/solibo-sdk-sdk-home-api.d.mts +13419 -0
  59. package/solibo-sdk-sdk-home-api.mjs +199394 -0
  60. package/solibo-sdk-sdk-home-api.mjs.map +1 -0
  61. package/Kotlin-DateTime-library-kotlinx-datetime.js +0 -3614
  62. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
  63. package/MultiplatformSettings-multiplatform-settings-no-arg.js +0 -15
  64. package/MultiplatformSettings-multiplatform-settings.js +0 -15
  65. package/kotlin-kotlin-stdlib.js +0 -17392
  66. package/kotlin-kotlin-stdlib.js.map +0 -1
  67. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
  68. package/kotlinx-atomicfu.js +0 -262
  69. package/kotlinx-atomicfu.js.map +0 -1
  70. package/kotlinx-browser.js +0 -19
  71. package/kotlinx-coroutines-core.js +0 -8901
  72. package/kotlinx-coroutines-core.js.map +0 -1
  73. package/kotlinx-io-kotlinx-io-bytestring.js +0 -214
  74. package/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
  75. package/kotlinx-io-kotlinx-io-core.js +0 -2035
  76. package/kotlinx-io-kotlinx-io-core.js.map +0 -1
  77. package/kotlinx-serialization-kotlinx-serialization-core.js +0 -6057
  78. package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  79. package/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -15
  80. package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5074
  81. package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  82. package/ktor-ktor-client-auth.js +0 -15
  83. package/ktor-ktor-client-auth.js.map +0 -1
  84. package/ktor-ktor-client-content-negotiation.js +0 -767
  85. package/ktor-ktor-client-content-negotiation.js.map +0 -1
  86. package/ktor-ktor-client-core.js +0 -9839
  87. package/ktor-ktor-client-core.js.map +0 -1
  88. package/ktor-ktor-client-logging.js +0 -15
  89. package/ktor-ktor-client-logging.js.map +0 -1
  90. package/ktor-ktor-events.js +0 -94
  91. package/ktor-ktor-events.js.map +0 -1
  92. package/ktor-ktor-http-cio.js +0 -2271
  93. package/ktor-ktor-http-cio.js.map +0 -1
  94. package/ktor-ktor-http.js +0 -3253
  95. package/ktor-ktor-http.js.map +0 -1
  96. package/ktor-ktor-io.js +0 -3556
  97. package/ktor-ktor-io.js.map +0 -1
  98. package/ktor-ktor-serialization-kotlinx-json.js +0 -67
  99. package/ktor-ktor-serialization-kotlinx.js +0 -865
  100. package/ktor-ktor-serialization-kotlinx.js.map +0 -1
  101. package/ktor-ktor-serialization.js +0 -379
  102. package/ktor-ktor-serialization.js.map +0 -1
  103. package/ktor-ktor-sse.js +0 -15
  104. package/ktor-ktor-sse.js.map +0 -1
  105. package/ktor-ktor-utils.js +0 -2639
  106. package/ktor-ktor-utils.js.map +0 -1
  107. package/ktor-ktor-websocket-serialization.js +0 -15
  108. package/ktor-ktor-websocket-serialization.js.map +0 -1
  109. package/ktor-ktor-websockets.js +0 -2552
  110. package/ktor-ktor-websockets.js.map +0 -1
  111. package/solibo-sdk-sdk-home-api.d.ts +0 -12624
  112. package/solibo-sdk-sdk-home-api.js +0 -203510
  113. package/solibo-sdk-sdk-home-api.js.map +0 -1
@@ -0,0 +1,750 @@
1
+ import {
2
+ protoOf180f3jzyo7rfj as protoOf,
3
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
4
+ plus1ogy4liedzq5j as plus,
5
+ toMutableSetjdpdbr9jsqq8 as toMutableSet,
6
+ ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$,
7
+ Unit_instance28fytmsmm6r23 as Unit_instance,
8
+ VOID3gxj6tk5isa35 as VOID,
9
+ Exceptiondt2hlxn7j7vw as Exception,
10
+ Exception_init_$Init$2jymvyiuv5u42 as Exception_init_$Init$,
11
+ captureStack1fzi4aczwc4hg as captureStack,
12
+ toString1pkumu07cwy4m as toString,
13
+ CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
14
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
15
+ get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
16
+ initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
17
+ isInterface3d6p8outrmvmk as isInterface,
18
+ Collection1k04j3hzsbod0 as Collection,
19
+ emptyList1g2z5xcrvp2zy as emptyList,
20
+ getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
21
+ Unitkvevlwgzwiuc as Unit,
22
+ ensureNotNull1e947j3ixpazm as ensureNotNull,
23
+ equals2au1ep9vhcato as equals,
24
+ joinToString1cxrrlmo0chqs as joinToString,
25
+ initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
26
+ collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
27
+ ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$_0,
28
+ PrimitiveClasses_getInstance6p7zmos9nw3c as PrimitiveClasses_getInstance,
29
+ getKClass3t8tygqu4lcxf as getKClass,
30
+ setOf45ia9pnfhe90 as setOf,
31
+ KtList3hktaavzmj137 as KtList,
32
+ arrayOf1akklvh2at202 as arrayOf,
33
+ createKType31ecntyyaay3k as createKType,
34
+ createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
35
+ endsWith3cq61xxngobwh as endsWith,
36
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
37
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
38
+ } from './kotlin-kotlin-stdlib.mjs';
39
+ import {
40
+ Application_getInstanceueakgx5l255p as Application_getInstance,
41
+ contentType317fn4f991q9a as contentType,
42
+ Companion_getInstance24sa2b20ejg3q as Companion_getInstance,
43
+ OutgoingContent3t2ohmyam9o76 as OutgoingContent,
44
+ contentType2zzm38yxo3syt as contentType_0,
45
+ charset1dribv3ku48b1 as charset,
46
+ NullBody_instanceoz9dr731l81q as NullBody_instance,
47
+ HttpStatusCode3o1wkms10pg4k as HttpStatusCode,
48
+ ContentType1svlpabm9v7iz as ContentType,
49
+ } from './ktor-ktor-http.mjs';
50
+ import {
51
+ register$default3bjg8fus08vmt as register$default,
52
+ Configuration20xgygxdzhlk5 as Configuration,
53
+ suitableCharset1jgdcpdzbzgzn as suitableCharset,
54
+ deserializew5ebvcgde1j8 as deserialize,
55
+ } from './ktor-ktor-serialization.mjs';
56
+ import {
57
+ Charsets_getInstanceq0o82sizm30g as Charsets_getInstance,
58
+ ByteReadChannel2wzou76jce72d as ByteReadChannel,
59
+ } from './ktor-ktor-io.mjs';
60
+ import {
61
+ TransformRequestBodyContext3ll40opqaho0d as TransformRequestBodyContext,
62
+ HttpRequestBuilder15f2nnx9sjuv1 as HttpRequestBuilder,
63
+ TransformResponseBodyContext1axf7xx6ifwbj as TransformResponseBodyContext,
64
+ HttpResponse1532ob1hsse1y as HttpResponse,
65
+ get_request3dwcif5y0fvf1 as get_request,
66
+ accept2gi3b7wj4jds9 as accept,
67
+ EmptyContent_getInstance55lf7d2oew98 as EmptyContent_getInstance,
68
+ ClientSSESession332rusa1q4gim as ClientSSESession,
69
+ ClientSSESessionWithDeserialization37nab8162l18r as ClientSSESessionWithDeserialization,
70
+ createClientPluginjwpvufjows5r as createClientPlugin,
71
+ } from './ktor-ktor-client-core.mjs';
72
+ import {
73
+ TypeInfo2nbxsuf4v8os2 as TypeInfo,
74
+ KtorSimpleLogger1xdphsp5l4e48 as KtorSimpleLogger,
75
+ AttributeKey3aq8ytwgx54f7 as AttributeKey,
76
+ } from './ktor-ktor-utils.mjs';
77
+ //region block: imports
78
+ //endregion
79
+ //region block: pre-declaration
80
+ initMetadataForClass(ConverterRegistration, 'ConverterRegistration');
81
+ initMetadataForClass(ContentNegotiationConfig$defaultMatcher$1);
82
+ initMetadataForClass(ContentNegotiationConfig, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration]);
83
+ initMetadataForClass(ContentConverterException, 'ContentConverterException', VOID, Exception);
84
+ initMetadataForLambda(ContentNegotiation$lambda$slambda, CoroutineImpl, VOID, [4]);
85
+ initMetadataForLambda(ContentNegotiation$lambda$slambda_1, CoroutineImpl, VOID, [4]);
86
+ initMetadataForCoroutine($invoke$convertRequestCOROUTINE$, CoroutineImpl);
87
+ initMetadataForCoroutine($invoke$convertResponseCOROUTINE$, CoroutineImpl);
88
+ initMetadataForObject(JsonContentTypeMatcher, 'JsonContentTypeMatcher');
89
+ //endregion
90
+ function get_LOGGER() {
91
+ _init_properties_ContentNegotiation_kt__o183go();
92
+ return LOGGER;
93
+ }
94
+ var LOGGER;
95
+ function get_DefaultCommonIgnoredTypes() {
96
+ _init_properties_ContentNegotiation_kt__o183go();
97
+ return DefaultCommonIgnoredTypes;
98
+ }
99
+ var DefaultCommonIgnoredTypes;
100
+ function get_ExcludedContentTypes() {
101
+ _init_properties_ContentNegotiation_kt__o183go();
102
+ return ExcludedContentTypes;
103
+ }
104
+ var ExcludedContentTypes;
105
+ function get_ContentNegotiation() {
106
+ _init_properties_ContentNegotiation_kt__o183go();
107
+ return ContentNegotiation;
108
+ }
109
+ var ContentNegotiation;
110
+ function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
111
+ this.i4l_1 = converter;
112
+ this.j4l_1 = contentTypeToSend;
113
+ this.k4l_1 = contentTypeMatcher;
114
+ }
115
+ function defaultMatcher($this, pattern) {
116
+ return new ContentNegotiationConfig$defaultMatcher$1(pattern);
117
+ }
118
+ function ContentNegotiationConfig$defaultMatcher$1($pattern) {
119
+ this.l4l_1 = $pattern;
120
+ }
121
+ protoOf(ContentNegotiationConfig$defaultMatcher$1).m4l = function (contentType) {
122
+ return contentType.d2l(this.l4l_1);
123
+ };
124
+ function ContentNegotiationConfig() {
125
+ this.n4l_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
126
+ var tmp = this;
127
+ // Inline function 'kotlin.collections.mutableListOf' call
128
+ tmp.o4l_1 = ArrayList_init_$Create$();
129
+ this.p4l_1 = null;
130
+ }
131
+ protoOf(ContentNegotiationConfig).t3a = function (contentType, converter, configuration) {
132
+ var matcher = contentType.d2l(Application_getInstance().j2j_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
133
+ this.q4l(contentType, converter, matcher, configuration);
134
+ };
135
+ protoOf(ContentNegotiationConfig).q4l = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
136
+ // Inline function 'kotlin.apply' call
137
+ configuration(converter);
138
+ var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
139
+ this.o4l_1.e1(registration);
140
+ };
141
+ function ContentConverterException(message) {
142
+ Exception_init_$Init$(message, this);
143
+ captureStack(this, ContentConverterException);
144
+ }
145
+ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
146
+ var l = function () {
147
+ return new ContentNegotiationConfig();
148
+ };
149
+ l.callableName = '<init>';
150
+ return l;
151
+ }
152
+ function ContentNegotiation$lambda($this$createClientPlugin) {
153
+ _init_properties_ContentNegotiation_kt__o183go();
154
+ var registrations = $this$createClientPlugin.i3n_1.o4l_1;
155
+ var ignoredTypes = $this$createClientPlugin.i3n_1.n4l_1;
156
+ $this$createClientPlugin.h45(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
157
+ $this$createClientPlugin.u3v(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
158
+ return Unit_instance;
159
+ }
160
+ function ContentNegotiation$lambda$convertRequest$lambda(it) {
161
+ _init_properties_ContentNegotiation_kt__o183go();
162
+ return toString(it.i4l_1);
163
+ }
164
+ function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
165
+ var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
166
+ tmp.l8_1 = Unit_instance;
167
+ tmp.m8_1 = null;
168
+ return tmp.r8();
169
+ }
170
+ function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
171
+ charset = charset === VOID ? Charsets_getInstance().w1q_1 : charset;
172
+ var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
173
+ tmp.l8_1 = Unit_instance;
174
+ tmp.m8_1 = null;
175
+ return tmp.r8();
176
+ }
177
+ function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
178
+ this.i4n_1 = $registrations;
179
+ this.j4n_1 = $this_createClientPlugin;
180
+ this.k4n_1 = $ignoredTypes;
181
+ CoroutineImpl.call(this, resultContinuation);
182
+ }
183
+ protoOf(ContentNegotiation$lambda$slambda).p4n = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
184
+ var tmp = this.q4n($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
185
+ tmp.l8_1 = Unit_instance;
186
+ tmp.m8_1 = null;
187
+ return tmp.r8();
188
+ };
189
+ protoOf(ContentNegotiation$lambda$slambda).z3w = function (p1, p2, p3, p4, $completion) {
190
+ var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
191
+ var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
192
+ var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
193
+ return this.p4n(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
194
+ };
195
+ protoOf(ContentNegotiation$lambda$slambda).r8 = function () {
196
+ var suspendResult = this.l8_1;
197
+ $sm: do
198
+ try {
199
+ var tmp = this.j8_1;
200
+ switch (tmp) {
201
+ case 0:
202
+ this.k8_1 = 2;
203
+ this.j8_1 = 1;
204
+ suspendResult = invoke$convertRequest(this.i4n_1, this.j4n_1, this.k4n_1, this.m4n_1, this.n4n_1, this);
205
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
206
+ return suspendResult;
207
+ }
208
+
209
+ continue $sm;
210
+ case 1:
211
+ return suspendResult;
212
+ case 2:
213
+ throw this.m8_1;
214
+ }
215
+ } catch ($p) {
216
+ var e = $p;
217
+ if (this.k8_1 === 2) {
218
+ throw e;
219
+ } else {
220
+ this.j8_1 = this.k8_1;
221
+ this.m8_1 = e;
222
+ }
223
+ }
224
+ while (true);
225
+ };
226
+ protoOf(ContentNegotiation$lambda$slambda).q4n = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
227
+ var i = new ContentNegotiation$lambda$slambda(this.i4n_1, this.j4n_1, this.k4n_1, completion);
228
+ i.l4n_1 = $this$transformRequestBody;
229
+ i.m4n_1 = request;
230
+ i.n4n_1 = body;
231
+ i.o4n_1 = _unused_var__etf5q3;
232
+ return i;
233
+ };
234
+ function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
235
+ var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
236
+ var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
237
+ return i.p4n($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
238
+ };
239
+ l.$arity = 4;
240
+ return l;
241
+ }
242
+ function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
243
+ this.z4n_1 = $ignoredTypes;
244
+ this.a4o_1 = $registrations;
245
+ this.b4o_1 = $this_createClientPlugin;
246
+ CoroutineImpl.call(this, resultContinuation);
247
+ }
248
+ protoOf(ContentNegotiation$lambda$slambda_1).x3w = function ($this$transformResponseBody, response, body, info, $completion) {
249
+ var tmp = this.y3w($this$transformResponseBody, response, body, info, $completion);
250
+ tmp.l8_1 = Unit_instance;
251
+ tmp.m8_1 = null;
252
+ return tmp.r8();
253
+ };
254
+ protoOf(ContentNegotiation$lambda$slambda_1).z3w = function (p1, p2, p3, p4, $completion) {
255
+ var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
256
+ var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
257
+ var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
258
+ return this.x3w(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
259
+ };
260
+ protoOf(ContentNegotiation$lambda$slambda_1).r8 = function () {
261
+ var suspendResult = this.l8_1;
262
+ $sm: do
263
+ try {
264
+ var tmp = this.j8_1;
265
+ switch (tmp) {
266
+ case 0:
267
+ this.k8_1 = 2;
268
+ var tmp0_elvis_lhs = contentType(this.d4o_1);
269
+ var tmp_0;
270
+ if (tmp0_elvis_lhs == null) {
271
+ return null;
272
+ } else {
273
+ tmp_0 = tmp0_elvis_lhs;
274
+ }
275
+
276
+ var contentType_0 = tmp_0;
277
+ var charset = suitableCharset(get_request(this.d4o_1).n2p());
278
+ this.j8_1 = 1;
279
+ suspendResult = invoke$convertResponse(this.z4n_1, this.a4o_1, this.b4o_1, get_request(this.d4o_1).k3g(), this.f4o_1, this.e4o_1, contentType_0, charset, this);
280
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
281
+ return suspendResult;
282
+ }
283
+
284
+ continue $sm;
285
+ case 1:
286
+ return suspendResult;
287
+ case 2:
288
+ throw this.m8_1;
289
+ }
290
+ } catch ($p) {
291
+ var e = $p;
292
+ if (this.k8_1 === 2) {
293
+ throw e;
294
+ } else {
295
+ this.j8_1 = this.k8_1;
296
+ this.m8_1 = e;
297
+ }
298
+ }
299
+ while (true);
300
+ };
301
+ protoOf(ContentNegotiation$lambda$slambda_1).y3w = function ($this$transformResponseBody, response, body, info, completion) {
302
+ var i = new ContentNegotiation$lambda$slambda_1(this.z4n_1, this.a4o_1, this.b4o_1, completion);
303
+ i.c4o_1 = $this$transformResponseBody;
304
+ i.d4o_1 = response;
305
+ i.e4o_1 = body;
306
+ i.f4o_1 = info;
307
+ return i;
308
+ };
309
+ function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
310
+ var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
311
+ var l = function ($this$transformResponseBody, response, body, info, $completion) {
312
+ return i.x3w($this$transformResponseBody, response, body, info, $completion);
313
+ };
314
+ l.$arity = 4;
315
+ return l;
316
+ }
317
+ function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
318
+ CoroutineImpl.call(this, resultContinuation);
319
+ this.z4l_1 = registrations;
320
+ this.a4m_1 = $this_createClientPlugin;
321
+ this.b4m_1 = ignoredTypes;
322
+ this.c4m_1 = request;
323
+ this.d4m_1 = body;
324
+ }
325
+ protoOf($invoke$convertRequestCOROUTINE$).r8 = function () {
326
+ var suspendResult = this.l8_1;
327
+ $sm: do
328
+ try {
329
+ var tmp = this.j8_1;
330
+ switch (tmp) {
331
+ case 0:
332
+ this.k8_1 = 7;
333
+ var tmp_0;
334
+ if (this.c4m_1.x3e_1.u2c(get_ExcludedContentTypes())) {
335
+ var excluded = this.c4m_1.x3e_1.s2c(get_ExcludedContentTypes());
336
+ var tmp0 = this.z4l_1;
337
+ var destination = ArrayList_init_$Create$();
338
+ var _iterator__ex2g4s = tmp0.t();
339
+ while (_iterator__ex2g4s.u()) {
340
+ var element = _iterator__ex2g4s.v();
341
+ var tmp$ret$0;
342
+ l$ret$1: do {
343
+ var tmp_1;
344
+ if (isInterface(excluded, Collection)) {
345
+ tmp_1 = excluded.r();
346
+ } else {
347
+ tmp_1 = false;
348
+ }
349
+ if (tmp_1) {
350
+ tmp$ret$0 = true;
351
+ break l$ret$1;
352
+ }
353
+ var _iterator__ex2g4s_0 = excluded.t();
354
+ while (_iterator__ex2g4s_0.u()) {
355
+ var element_0 = _iterator__ex2g4s_0.v();
356
+ if (element.j4l_1.d2l(element_0)) {
357
+ tmp$ret$0 = false;
358
+ break l$ret$1;
359
+ }
360
+ }
361
+ tmp$ret$0 = true;
362
+ }
363
+ while (false);
364
+ if (tmp$ret$0) {
365
+ destination.e1(element);
366
+ }
367
+ }
368
+ tmp_0 = destination;
369
+ } else {
370
+ tmp_0 = this.z4l_1;
371
+ }
372
+
373
+ var requestRegistrations = tmp_0;
374
+ var tmp0_elvis_lhs = this.c4m_1.u3e_1.l2e('Accept');
375
+ var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
376
+ var _iterator__ex2g4s_1 = requestRegistrations.t();
377
+ while (_iterator__ex2g4s_1.u()) {
378
+ var element_1 = _iterator__ex2g4s_1.v();
379
+ var tmp$ret$2;
380
+ l$ret$3: do {
381
+ var tmp_2;
382
+ if (isInterface(acceptHeaders, Collection)) {
383
+ tmp_2 = acceptHeaders.r();
384
+ } else {
385
+ tmp_2 = false;
386
+ }
387
+ if (tmp_2) {
388
+ tmp$ret$2 = true;
389
+ break l$ret$3;
390
+ }
391
+ var _iterator__ex2g4s_2 = acceptHeaders.t();
392
+ while (_iterator__ex2g4s_2.u()) {
393
+ var element_2 = _iterator__ex2g4s_2.v();
394
+ if (Companion_getInstance().gm(element_2).d2l(element_1.j4l_1)) {
395
+ tmp$ret$2 = false;
396
+ break l$ret$3;
397
+ }
398
+ }
399
+ tmp$ret$2 = true;
400
+ }
401
+ while (false);
402
+ if (tmp$ret$2) {
403
+ var qValue = this.a4m_1.i3n_1.p4l_1;
404
+ var contentTypeToSend = qValue == null ? element_1.j4l_1 : element_1.j4l_1.b2l('q', qValue.toString());
405
+ get_LOGGER().r2i('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.c4m_1.s3e_1.toString());
406
+ accept(this.c4m_1, contentTypeToSend);
407
+ }
408
+ }
409
+
410
+ var tmp_3;
411
+ var tmp_4 = this.d4m_1;
412
+ if (tmp_4 instanceof OutgoingContent) {
413
+ tmp_3 = true;
414
+ } else {
415
+ var tmp0_0 = this.b4m_1;
416
+ var tmp$ret$4;
417
+ l$ret$5: do {
418
+ var tmp_5;
419
+ if (isInterface(tmp0_0, Collection)) {
420
+ tmp_5 = tmp0_0.r();
421
+ } else {
422
+ tmp_5 = false;
423
+ }
424
+ if (tmp_5) {
425
+ tmp$ret$4 = false;
426
+ break l$ret$5;
427
+ }
428
+ var _iterator__ex2g4s_3 = tmp0_0.t();
429
+ while (_iterator__ex2g4s_3.u()) {
430
+ var element_3 = _iterator__ex2g4s_3.v();
431
+ if (element_3.na(this.d4m_1)) {
432
+ tmp$ret$4 = true;
433
+ break l$ret$5;
434
+ }
435
+ }
436
+ tmp$ret$4 = false;
437
+ }
438
+ while (false);
439
+ tmp_3 = tmp$ret$4;
440
+ }
441
+
442
+ if (tmp_3) {
443
+ get_LOGGER().r2i('Body type ' + toString(getKClassFromExpression(this.d4m_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.'));
444
+ return null;
445
+ }
446
+
447
+ var tmp_6 = this;
448
+ var tmp0_elvis_lhs_0 = contentType_0(this.c4m_1);
449
+ var tmp_7;
450
+ if (tmp0_elvis_lhs_0 == null) {
451
+ this.a4m_1;
452
+ get_LOGGER().r2i("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.c4m_1.s3e_1.toString() + '.');
453
+ return null;
454
+ } else {
455
+ tmp_7 = tmp0_elvis_lhs_0;
456
+ }
457
+
458
+ tmp_6.f4m_1 = tmp_7;
459
+ var tmp_8 = this.d4m_1;
460
+ if (tmp_8 instanceof Unit) {
461
+ get_LOGGER().r2i('Sending empty body for ' + this.c4m_1.s3e_1.toString());
462
+ this.c4m_1.u3e_1.v2e('Content-Type');
463
+ return EmptyContent_getInstance();
464
+ }
465
+
466
+ var tmp_9 = this;
467
+ var tmp0_1 = this.z4l_1;
468
+ var destination_0 = ArrayList_init_$Create$();
469
+ var _iterator__ex2g4s_4 = tmp0_1.t();
470
+ while (_iterator__ex2g4s_4.u()) {
471
+ var element_4 = _iterator__ex2g4s_4.v();
472
+ if (element_4.k4l_1.m4l(this.f4m_1)) {
473
+ destination_0.e1(element_4);
474
+ }
475
+ }
476
+
477
+ var tmp_10;
478
+ if (!destination_0.r()) {
479
+ tmp_10 = destination_0;
480
+ } else {
481
+ tmp_10 = null;
482
+ }
483
+
484
+ var tmp1_elvis_lhs = tmp_10;
485
+ var tmp_11;
486
+ if (tmp1_elvis_lhs == null) {
487
+ this.a4m_1;
488
+ get_LOGGER().r2i('None of the registered converters match request Content-Type=' + this.f4m_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.'));
489
+ return null;
490
+ } else {
491
+ tmp_11 = tmp1_elvis_lhs;
492
+ }
493
+
494
+ tmp_9.e4m_1 = tmp_11;
495
+ if (this.c4m_1.p47() == null) {
496
+ get_LOGGER().r2i('Request has unknown body type. Skipping ContentNegotiation for ' + this.c4m_1.s3e_1.toString() + '.');
497
+ return null;
498
+ }
499
+
500
+ this.c4m_1.u3e_1.v2e('Content-Type');
501
+ this.j4m_1 = this.e4m_1;
502
+ this.j8_1 = 1;
503
+ continue $sm;
504
+ case 1:
505
+ this.i4m_1 = this.j4m_1.t();
506
+ this.j8_1 = 2;
507
+ continue $sm;
508
+ case 2:
509
+ if (!this.i4m_1.u()) {
510
+ this.j8_1 = 5;
511
+ continue $sm;
512
+ }
513
+
514
+ var element_5 = this.i4m_1.v();
515
+ this.h4m_1 = element_5;
516
+ this.j8_1 = 3;
517
+ var tmp0_elvis_lhs_1 = charset(this.f4m_1);
518
+ var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().w1q_1 : tmp0_elvis_lhs_1;
519
+ var tmp_13 = ensureNotNull(this.c4m_1.p47());
520
+ var this_0 = this.d4m_1;
521
+ var tmp_14;
522
+ if (!equals(this_0, NullBody_instance)) {
523
+ tmp_14 = this_0;
524
+ } else {
525
+ tmp_14 = null;
526
+ }
527
+
528
+ suspendResult = this.h4m_1.i4l_1.g4o(this.f4m_1, tmp_12, tmp_13, tmp_14, this);
529
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
530
+ return suspendResult;
531
+ }
532
+
533
+ continue $sm;
534
+ case 3:
535
+ var result = suspendResult;
536
+ if (!(result == null)) {
537
+ get_LOGGER().r2i('Converted request body using ' + toString(this.h4m_1.i4l_1) + ' for ' + this.c4m_1.s3e_1.toString());
538
+ }
539
+
540
+ var result_0 = result;
541
+ if (!(result_0 == null)) {
542
+ this.g4m_1 = result_0;
543
+ this.j8_1 = 6;
544
+ continue $sm;
545
+ } else {
546
+ this.j8_1 = 4;
547
+ continue $sm;
548
+ }
549
+
550
+ case 4:
551
+ this.j8_1 = 2;
552
+ continue $sm;
553
+ case 5:
554
+ this.g4m_1 = null;
555
+ if (false) {
556
+ this.j8_1 = 1;
557
+ continue $sm;
558
+ }
559
+
560
+ this.j8_1 = 6;
561
+ continue $sm;
562
+ case 6:
563
+ var tmp2_elvis_lhs = this.g4m_1;
564
+ var tmp_15;
565
+ if (tmp2_elvis_lhs == null) {
566
+ var tmp_16 = "Can't convert " + toString(this.d4m_1) + ' with contentType ' + this.f4m_1.toString() + ' using converters ';
567
+ throw new ContentConverterException(tmp_16 + joinToString(this.e4m_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
568
+ } else {
569
+ tmp_15 = tmp2_elvis_lhs;
570
+ }
571
+
572
+ var serializedContent = tmp_15;
573
+ return serializedContent;
574
+ case 7:
575
+ throw this.m8_1;
576
+ }
577
+ } catch ($p) {
578
+ var e = $p;
579
+ if (this.k8_1 === 7) {
580
+ throw e;
581
+ } else {
582
+ this.j8_1 = this.k8_1;
583
+ this.m8_1 = e;
584
+ }
585
+ }
586
+ while (true);
587
+ };
588
+ function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
589
+ CoroutineImpl.call(this, resultContinuation);
590
+ this.s4m_1 = ignoredTypes;
591
+ this.t4m_1 = registrations;
592
+ this.u4m_1 = $this_createClientPlugin;
593
+ this.v4m_1 = requestUrl;
594
+ this.w4m_1 = info;
595
+ this.x4m_1 = body;
596
+ this.y4m_1 = responseContentType;
597
+ this.z4m_1 = charset;
598
+ }
599
+ protoOf($invoke$convertResponseCOROUTINE$).r8 = function () {
600
+ var suspendResult = this.l8_1;
601
+ $sm: do
602
+ try {
603
+ var tmp = this.j8_1;
604
+ switch (tmp) {
605
+ case 0:
606
+ this.k8_1 = 2;
607
+ var tmp_0 = this.x4m_1;
608
+ if (!isInterface(tmp_0, ByteReadChannel)) {
609
+ get_LOGGER().r2i('Response body is already transformed. Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.');
610
+ return null;
611
+ }
612
+
613
+ if (this.s4m_1.h2(this.w4m_1.k2i_1)) {
614
+ get_LOGGER().r2i('Response body type ' + toString(this.w4m_1.k2i_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.'));
615
+ return null;
616
+ }
617
+
618
+ var tmp0 = this.t4m_1;
619
+ var destination = ArrayList_init_$Create$();
620
+ var _iterator__ex2g4s = tmp0.t();
621
+ while (_iterator__ex2g4s.u()) {
622
+ var element = _iterator__ex2g4s.v();
623
+ if (element.k4l_1.m4l(this.y4m_1)) {
624
+ destination.e1(element);
625
+ }
626
+ }
627
+
628
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
629
+ var _iterator__ex2g4s_0 = destination.t();
630
+ while (_iterator__ex2g4s_0.u()) {
631
+ var item = _iterator__ex2g4s_0.v();
632
+ destination_0.e1(item.i4l_1);
633
+ }
634
+
635
+ var tmp_1;
636
+ if (!destination_0.r()) {
637
+ tmp_1 = destination_0;
638
+ } else {
639
+ tmp_1 = null;
640
+ }
641
+
642
+ var tmp0_elvis_lhs = tmp_1;
643
+ var tmp_2;
644
+ if (tmp0_elvis_lhs == null) {
645
+ this.u4m_1;
646
+ get_LOGGER().r2i('None of the registered converters match response with Content-Type=' + this.y4m_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.v4m_1.toString() + '.'));
647
+ return null;
648
+ } else {
649
+ tmp_2 = tmp0_elvis_lhs;
650
+ }
651
+
652
+ var suitableConverters = tmp_2;
653
+ this.j8_1 = 1;
654
+ suspendResult = deserialize(suitableConverters, this.x4m_1, this.w4m_1, this.z4m_1, this);
655
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
656
+ return suspendResult;
657
+ }
658
+
659
+ continue $sm;
660
+ case 1:
661
+ var result = suspendResult;
662
+ if (!isInterface(result, ByteReadChannel)) {
663
+ get_LOGGER().r2i('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.v4m_1.toString() + '.');
664
+ }
665
+
666
+ return result;
667
+ case 2:
668
+ throw this.m8_1;
669
+ }
670
+ } catch ($p) {
671
+ var e = $p;
672
+ if (this.k8_1 === 2) {
673
+ throw e;
674
+ } else {
675
+ this.j8_1 = this.k8_1;
676
+ this.m8_1 = e;
677
+ }
678
+ }
679
+ while (true);
680
+ };
681
+ var properties_initialized_ContentNegotiation_kt_1ayduy;
682
+ function _init_properties_ContentNegotiation_kt__o183go() {
683
+ if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
684
+ properties_initialized_ContentNegotiation_kt_1ayduy = true;
685
+ LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
686
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().rb(), PrimitiveClasses_getInstance().nb(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
687
+ // Inline function 'io.ktor.util.AttributeKey' call
688
+ var name = 'ExcludedContentTypesAttr';
689
+ // Inline function 'io.ktor.util.reflect.typeInfo' call
690
+ var tmp = getKClass(KtList);
691
+ // Inline function 'io.ktor.util.reflect.typeOfOrNull' call
692
+ var tmp_0;
693
+ try {
694
+ tmp_0 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(ContentType), arrayOf([]), false))]), false);
695
+ } catch ($p) {
696
+ var tmp_1;
697
+ if ($p instanceof Error) {
698
+ var _unused_var__etf5q3 = $p;
699
+ tmp_1 = null;
700
+ } else {
701
+ throw $p;
702
+ }
703
+ tmp_0 = tmp_1;
704
+ }
705
+ var tmp$ret$0 = tmp_0;
706
+ var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$0);
707
+ ExcludedContentTypes = new AttributeKey(name, tmp$ret$1);
708
+ var tmp_2 = ContentNegotiationConfig$_init_$ref_1ne3ob();
709
+ ContentNegotiation = createClientPlugin('ContentNegotiation', tmp_2, ContentNegotiation$lambda);
710
+ }
711
+ }
712
+ function JsonContentTypeMatcher() {
713
+ }
714
+ protoOf(JsonContentTypeMatcher).m4l = function (contentType) {
715
+ if (contentType.d2l(Application_getInstance().j2j_1)) {
716
+ return true;
717
+ }
718
+ var value = contentType.c2l().toString();
719
+ return Application_getInstance().d2k(value) && endsWith(value, '+json', true);
720
+ };
721
+ var JsonContentTypeMatcher_instance;
722
+ function JsonContentTypeMatcher_getInstance() {
723
+ return JsonContentTypeMatcher_instance;
724
+ }
725
+ function get_DefaultIgnoredTypes() {
726
+ _init_properties_DefaultIgnoredTypes_web_kt__6eddjw();
727
+ return DefaultIgnoredTypes;
728
+ }
729
+ var DefaultIgnoredTypes;
730
+ var properties_initialized_DefaultIgnoredTypes_web_kt_23uj7m;
731
+ function _init_properties_DefaultIgnoredTypes_web_kt__6eddjw() {
732
+ if (!properties_initialized_DefaultIgnoredTypes_web_kt_23uj7m) {
733
+ properties_initialized_DefaultIgnoredTypes_web_kt_23uj7m = true;
734
+ // Inline function 'kotlin.collections.mutableSetOf' call
735
+ DefaultIgnoredTypes = LinkedHashSet_init_$Create$();
736
+ }
737
+ }
738
+ //region block: post-declaration
739
+ protoOf(ContentNegotiationConfig).u3a = register$default;
740
+ //endregion
741
+ //region block: init
742
+ JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
743
+ //endregion
744
+ //region block: exports
745
+ export {
746
+ get_ContentNegotiation as get_ContentNegotiationcp59ye9rorjc,
747
+ };
748
+ //endregion
749
+
750
+ //# sourceMappingURL=ktor-ktor-client-content-negotiation.mjs.map