@doordeck/doordeck-headless-sdk 0.200.0 → 0.202.0

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.
@@ -1,69 +1,69 @@
1
1
  (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_io_ktor_ktor_serialization, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils) {
2
2
  'use strict';
3
3
  //region block: imports
4
- var protoOf = kotlin_kotlin.$_$.ec;
5
- var initMetadataForClass = kotlin_kotlin.$_$.hb;
6
- var plus = kotlin_kotlin.$_$.w7;
7
- var toMutableSet = kotlin_kotlin.$_$.s8;
4
+ var protoOf = kotlin_kotlin.$_$.gc;
5
+ var initMetadataForClass = kotlin_kotlin.$_$.jb;
6
+ var plus = kotlin_kotlin.$_$.x7;
7
+ var toMutableSet = kotlin_kotlin.$_$.t8;
8
8
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
9
9
  var Application_getInstance = kotlin_io_ktor_ktor_http.$_$.b;
10
10
  var register$default = kotlin_io_ktor_ktor_serialization.$_$.b;
11
11
  var Unit_instance = kotlin_kotlin.$_$.a1;
12
12
  var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
13
13
  var VOID = kotlin_kotlin.$_$.c;
14
- var Exception = kotlin_kotlin.$_$.xf;
15
- var Exception_init_$Init$ = kotlin_kotlin.$_$.i2;
16
- var captureStack = kotlin_kotlin.$_$.qa;
17
- var toString = kotlin_kotlin.$_$.hc;
14
+ var Exception = kotlin_kotlin.$_$.ag;
15
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.j2;
16
+ var captureStack = kotlin_kotlin.$_$.sa;
17
+ var toString = kotlin_kotlin.$_$.jc;
18
18
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.a;
19
- var CoroutineImpl = kotlin_kotlin.$_$.q9;
20
- var THROW_CCE = kotlin_kotlin.$_$.eg;
19
+ var CoroutineImpl = kotlin_kotlin.$_$.s9;
20
+ var THROW_CCE = kotlin_kotlin.$_$.hg;
21
21
  var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
22
22
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
23
- var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.p;
24
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.a9;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.mb;
23
+ var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
24
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
25
+ var initMetadataForLambda = kotlin_kotlin.$_$.ob;
26
26
  var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.n;
27
27
  var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
28
28
  var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.n1;
29
- var isInterface = kotlin_kotlin.$_$.wb;
29
+ var isInterface = kotlin_kotlin.$_$.yb;
30
30
  var contentType = kotlin_io_ktor_ktor_http.$_$.o1;
31
31
  var get_request = kotlin_io_ktor_ktor_client_core.$_$.m1;
32
32
  var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
33
- var Collection = kotlin_kotlin.$_$.h5;
34
- var emptyList = kotlin_kotlin.$_$.v6;
33
+ var Collection = kotlin_kotlin.$_$.i5;
34
+ var emptyList = kotlin_kotlin.$_$.w6;
35
35
  var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
36
36
  var accept = kotlin_io_ktor_ktor_client_core.$_$.f1;
37
37
  var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
38
- var getKClassFromExpression = kotlin_kotlin.$_$.vc;
38
+ var getKClassFromExpression = kotlin_kotlin.$_$.xc;
39
39
  var contentType_0 = kotlin_io_ktor_ktor_http.$_$.n1;
40
40
  var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.f;
41
- var Unit = kotlin_kotlin.$_$.pg;
41
+ var Unit = kotlin_kotlin.$_$.sg;
42
42
  var charset = kotlin_io_ktor_ktor_http.$_$.l1;
43
- var ensureNotNull = kotlin_kotlin.$_$.wg;
43
+ var ensureNotNull = kotlin_kotlin.$_$.zg;
44
44
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
45
- var equals = kotlin_kotlin.$_$.za;
46
- var joinToString = kotlin_kotlin.$_$.l7;
47
- var initMetadataForCoroutine = kotlin_kotlin.$_$.jb;
48
- var collectionSizeOrDefault = kotlin_kotlin.$_$.a6;
45
+ var equals = kotlin_kotlin.$_$.bb;
46
+ var joinToString = kotlin_kotlin.$_$.m7;
47
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
48
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
49
49
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
50
50
  var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
51
- var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.k;
51
+ var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
52
52
  var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
53
53
  var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.b1;
54
- var getKClass = kotlin_kotlin.$_$.wc;
54
+ var getKClass = kotlin_kotlin.$_$.yc;
55
55
  var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.r;
56
56
  var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.q;
57
- var setOf = kotlin_kotlin.$_$.e8;
58
- var KtList = kotlin_kotlin.$_$.m5;
57
+ var setOf = kotlin_kotlin.$_$.f8;
58
+ var KtList = kotlin_kotlin.$_$.n5;
59
59
  var ContentType = kotlin_io_ktor_ktor_http.$_$.z;
60
- var arrayOf = kotlin_kotlin.$_$.sg;
61
- var createKType = kotlin_kotlin.$_$.uc;
62
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.sc;
63
- var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.r;
60
+ var arrayOf = kotlin_kotlin.$_$.vg;
61
+ var createKType = kotlin_kotlin.$_$.wc;
62
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.uc;
63
+ var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
64
64
  var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
65
- var endsWith = kotlin_kotlin.$_$.od;
66
- var initMetadataForObject = kotlin_kotlin.$_$.nb;
65
+ var endsWith = kotlin_kotlin.$_$.qd;
66
+ var initMetadataForObject = kotlin_kotlin.$_$.pb;
67
67
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.v1;
68
68
  //endregion
69
69
  //region block: pre-declaration
@@ -98,35 +98,35 @@
98
98
  }
99
99
  var ContentNegotiation;
100
100
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
101
- this.o5m_1 = converter;
102
- this.p5m_1 = contentTypeToSend;
103
- this.q5m_1 = contentTypeMatcher;
101
+ this.d5o_1 = converter;
102
+ this.e5o_1 = contentTypeToSend;
103
+ this.f5o_1 = contentTypeMatcher;
104
104
  }
105
105
  function defaultMatcher($this, pattern) {
106
106
  return new ContentNegotiationConfig$defaultMatcher$1(pattern);
107
107
  }
108
108
  function ContentNegotiationConfig$defaultMatcher$1($pattern) {
109
- this.r5m_1 = $pattern;
109
+ this.g5o_1 = $pattern;
110
110
  }
111
- protoOf(ContentNegotiationConfig$defaultMatcher$1).s5m = function (contentType) {
112
- return contentType.p2v(this.r5m_1);
111
+ protoOf(ContentNegotiationConfig$defaultMatcher$1).h5o = function (contentType) {
112
+ return contentType.d2x(this.g5o_1);
113
113
  };
114
114
  function ContentNegotiationConfig() {
115
- this.t5m_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
115
+ this.i5o_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
116
116
  var tmp = this;
117
117
  // Inline function 'kotlin.collections.mutableListOf' call
118
- tmp.u5m_1 = ArrayList_init_$Create$();
119
- this.v5m_1 = null;
118
+ tmp.j5o_1 = ArrayList_init_$Create$();
119
+ this.k5o_1 = null;
120
120
  }
121
- protoOf(ContentNegotiationConfig).t3l = function (contentType, converter, configuration) {
122
- var matcher = contentType.p2v(Application_getInstance().v2t_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
123
- this.w5m(contentType, converter, matcher, configuration);
121
+ protoOf(ContentNegotiationConfig).j3n = function (contentType, converter, configuration) {
122
+ var matcher = contentType.d2x(Application_getInstance().j2v_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
123
+ this.l5o(contentType, converter, matcher, configuration);
124
124
  };
125
- protoOf(ContentNegotiationConfig).w5m = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
125
+ protoOf(ContentNegotiationConfig).l5o = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
126
126
  // Inline function 'kotlin.apply' call
127
127
  configuration(converter);
128
128
  var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
129
- this.u5m_1.j1(registration);
129
+ this.j5o_1.j1(registration);
130
130
  };
131
131
  function ContentConverterException(message) {
132
132
  Exception_init_$Init$(message, this);
@@ -141,57 +141,57 @@
141
141
  }
142
142
  function ContentNegotiation$lambda($this$createClientPlugin) {
143
143
  _init_properties_ContentNegotiation_kt__o183go();
144
- var registrations = $this$createClientPlugin.x3x_1.u5m_1;
145
- var ignoredTypes = $this$createClientPlugin.x3x_1.t5m_1;
146
- $this$createClientPlugin.r4i(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
147
- $this$createClientPlugin.d47(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
144
+ var registrations = $this$createClientPlugin.n3z_1.j5o_1;
145
+ var ignoredTypes = $this$createClientPlugin.n3z_1.i5o_1;
146
+ $this$createClientPlugin.g4k(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
147
+ $this$createClientPlugin.s48(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
148
148
  return Unit_instance;
149
149
  }
150
150
  function ContentNegotiation$lambda$convertRequest$lambda(it) {
151
151
  _init_properties_ContentNegotiation_kt__o183go();
152
- return toString(it.o5m_1);
152
+ return toString(it.d5o_1);
153
153
  }
154
154
  function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
155
155
  var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
156
- tmp.c9_1 = Unit_instance;
157
- tmp.d9_1 = null;
158
- return tmp.i9();
156
+ tmp.f9_1 = Unit_instance;
157
+ tmp.g9_1 = null;
158
+ return tmp.l9();
159
159
  }
160
160
  function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
161
- charset = charset === VOID ? Charsets_getInstance().t1x_1 : charset;
161
+ charset = charset === VOID ? Charsets_getInstance().v1y_1 : charset;
162
162
  var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
163
- tmp.c9_1 = Unit_instance;
164
- tmp.d9_1 = null;
165
- return tmp.i9();
163
+ tmp.f9_1 = Unit_instance;
164
+ tmp.g9_1 = null;
165
+ return tmp.l9();
166
166
  }
167
167
  function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
168
- this.o5o_1 = $registrations;
169
- this.p5o_1 = $this_createClientPlugin;
170
- this.q5o_1 = $ignoredTypes;
168
+ this.d5q_1 = $registrations;
169
+ this.e5q_1 = $this_createClientPlugin;
170
+ this.f5q_1 = $ignoredTypes;
171
171
  CoroutineImpl.call(this, resultContinuation);
172
172
  }
173
- protoOf(ContentNegotiation$lambda$slambda).v5o = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
174
- var tmp = this.w5o($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
175
- tmp.c9_1 = Unit_instance;
176
- tmp.d9_1 = null;
177
- return tmp.i9();
173
+ protoOf(ContentNegotiation$lambda$slambda).k5q = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
174
+ var tmp = this.l5q($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
175
+ tmp.f9_1 = Unit_instance;
176
+ tmp.g9_1 = null;
177
+ return tmp.l9();
178
178
  };
179
- protoOf(ContentNegotiation$lambda$slambda).i48 = function (p1, p2, p3, p4, $completion) {
179
+ protoOf(ContentNegotiation$lambda$slambda).x49 = function (p1, p2, p3, p4, $completion) {
180
180
  var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
181
181
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
182
182
  var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
183
- return this.v5o(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
183
+ return this.k5q(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
184
184
  };
185
- protoOf(ContentNegotiation$lambda$slambda).i9 = function () {
186
- var suspendResult = this.c9_1;
185
+ protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
186
+ var suspendResult = this.f9_1;
187
187
  $sm: do
188
188
  try {
189
- var tmp = this.a9_1;
189
+ var tmp = this.d9_1;
190
190
  switch (tmp) {
191
191
  case 0:
192
- this.b9_1 = 2;
193
- this.a9_1 = 1;
194
- suspendResult = invoke$convertRequest(this.o5o_1, this.p5o_1, this.q5o_1, this.s5o_1, this.t5o_1, this);
192
+ this.e9_1 = 2;
193
+ this.d9_1 = 1;
194
+ suspendResult = invoke$convertRequest(this.d5q_1, this.e5q_1, this.f5q_1, this.h5q_1, this.i5q_1, this);
195
195
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
196
196
  return suspendResult;
197
197
  }
@@ -200,62 +200,62 @@
200
200
  case 1:
201
201
  return suspendResult;
202
202
  case 2:
203
- throw this.d9_1;
203
+ throw this.g9_1;
204
204
  }
205
205
  } catch ($p) {
206
206
  var e = $p;
207
- if (this.b9_1 === 2) {
207
+ if (this.e9_1 === 2) {
208
208
  throw e;
209
209
  } else {
210
- this.a9_1 = this.b9_1;
211
- this.d9_1 = e;
210
+ this.d9_1 = this.e9_1;
211
+ this.g9_1 = e;
212
212
  }
213
213
  }
214
214
  while (true);
215
215
  };
216
- protoOf(ContentNegotiation$lambda$slambda).w5o = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
217
- var i = new ContentNegotiation$lambda$slambda(this.o5o_1, this.p5o_1, this.q5o_1, completion);
218
- i.r5o_1 = $this$transformRequestBody;
219
- i.s5o_1 = request;
220
- i.t5o_1 = body;
221
- i.u5o_1 = _unused_var__etf5q3;
216
+ protoOf(ContentNegotiation$lambda$slambda).l5q = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
217
+ var i = new ContentNegotiation$lambda$slambda(this.d5q_1, this.e5q_1, this.f5q_1, completion);
218
+ i.g5q_1 = $this$transformRequestBody;
219
+ i.h5q_1 = request;
220
+ i.i5q_1 = body;
221
+ i.j5q_1 = _unused_var__etf5q3;
222
222
  return i;
223
223
  };
224
224
  function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
225
225
  var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
226
226
  var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
227
- return i.v5o($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
227
+ return i.k5q($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
228
228
  };
229
229
  l.$arity = 4;
230
230
  return l;
231
231
  }
232
232
  function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
233
- this.f5p_1 = $ignoredTypes;
234
- this.g5p_1 = $registrations;
235
- this.h5p_1 = $this_createClientPlugin;
233
+ this.u5q_1 = $ignoredTypes;
234
+ this.v5q_1 = $registrations;
235
+ this.w5q_1 = $this_createClientPlugin;
236
236
  CoroutineImpl.call(this, resultContinuation);
237
237
  }
238
- protoOf(ContentNegotiation$lambda$slambda_1).g48 = function ($this$transformResponseBody, response, body, info, $completion) {
239
- var tmp = this.h48($this$transformResponseBody, response, body, info, $completion);
240
- tmp.c9_1 = Unit_instance;
241
- tmp.d9_1 = null;
242
- return tmp.i9();
238
+ protoOf(ContentNegotiation$lambda$slambda_1).v49 = function ($this$transformResponseBody, response, body, info, $completion) {
239
+ var tmp = this.w49($this$transformResponseBody, response, body, info, $completion);
240
+ tmp.f9_1 = Unit_instance;
241
+ tmp.g9_1 = null;
242
+ return tmp.l9();
243
243
  };
244
- protoOf(ContentNegotiation$lambda$slambda_1).i48 = function (p1, p2, p3, p4, $completion) {
244
+ protoOf(ContentNegotiation$lambda$slambda_1).x49 = function (p1, p2, p3, p4, $completion) {
245
245
  var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
246
246
  var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
247
247
  var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
248
- return this.g48(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
248
+ return this.v49(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
249
249
  };
250
- protoOf(ContentNegotiation$lambda$slambda_1).i9 = function () {
251
- var suspendResult = this.c9_1;
250
+ protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
251
+ var suspendResult = this.f9_1;
252
252
  $sm: do
253
253
  try {
254
- var tmp = this.a9_1;
254
+ var tmp = this.d9_1;
255
255
  switch (tmp) {
256
256
  case 0:
257
- this.b9_1 = 2;
258
- var tmp0_elvis_lhs = contentType(this.j5p_1);
257
+ this.e9_1 = 2;
258
+ var tmp0_elvis_lhs = contentType(this.y5q_1);
259
259
  var tmp_0;
260
260
  if (tmp0_elvis_lhs == null) {
261
261
  return null;
@@ -264,9 +264,9 @@
264
264
  }
265
265
 
266
266
  var contentType_0 = tmp_0;
267
- var charset = suitableCharset(get_request(this.j5p_1).z2z());
268
- this.a9_1 = 1;
269
- suspendResult = invoke$convertResponse(this.f5p_1, this.g5p_1, this.h5p_1, get_request(this.j5p_1).o3r(), this.l5p_1, this.k5p_1, contentType_0, charset, this);
267
+ var charset = suitableCharset(get_request(this.y5q_1).p31());
268
+ this.d9_1 = 1;
269
+ suspendResult = invoke$convertResponse(this.u5q_1, this.v5q_1, this.w5q_1, get_request(this.y5q_1).e3t(), this.a5r_1, this.z5q_1, contentType_0, charset, this);
270
270
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
271
271
  return suspendResult;
272
272
  }
@@ -275,55 +275,55 @@
275
275
  case 1:
276
276
  return suspendResult;
277
277
  case 2:
278
- throw this.d9_1;
278
+ throw this.g9_1;
279
279
  }
280
280
  } catch ($p) {
281
281
  var e = $p;
282
- if (this.b9_1 === 2) {
282
+ if (this.e9_1 === 2) {
283
283
  throw e;
284
284
  } else {
285
- this.a9_1 = this.b9_1;
286
- this.d9_1 = e;
285
+ this.d9_1 = this.e9_1;
286
+ this.g9_1 = e;
287
287
  }
288
288
  }
289
289
  while (true);
290
290
  };
291
- protoOf(ContentNegotiation$lambda$slambda_1).h48 = function ($this$transformResponseBody, response, body, info, completion) {
292
- var i = new ContentNegotiation$lambda$slambda_1(this.f5p_1, this.g5p_1, this.h5p_1, completion);
293
- i.i5p_1 = $this$transformResponseBody;
294
- i.j5p_1 = response;
295
- i.k5p_1 = body;
296
- i.l5p_1 = info;
291
+ protoOf(ContentNegotiation$lambda$slambda_1).w49 = function ($this$transformResponseBody, response, body, info, completion) {
292
+ var i = new ContentNegotiation$lambda$slambda_1(this.u5q_1, this.v5q_1, this.w5q_1, completion);
293
+ i.x5q_1 = $this$transformResponseBody;
294
+ i.y5q_1 = response;
295
+ i.z5q_1 = body;
296
+ i.a5r_1 = info;
297
297
  return i;
298
298
  };
299
299
  function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
300
300
  var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
301
301
  var l = function ($this$transformResponseBody, response, body, info, $completion) {
302
- return i.g48($this$transformResponseBody, response, body, info, $completion);
302
+ return i.v49($this$transformResponseBody, response, body, info, $completion);
303
303
  };
304
304
  l.$arity = 4;
305
305
  return l;
306
306
  }
307
307
  function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
308
308
  CoroutineImpl.call(this, resultContinuation);
309
- this.f5n_1 = registrations;
310
- this.g5n_1 = $this_createClientPlugin;
311
- this.h5n_1 = ignoredTypes;
312
- this.i5n_1 = request;
313
- this.j5n_1 = body;
309
+ this.u5o_1 = registrations;
310
+ this.v5o_1 = $this_createClientPlugin;
311
+ this.w5o_1 = ignoredTypes;
312
+ this.x5o_1 = request;
313
+ this.y5o_1 = body;
314
314
  }
315
- protoOf($invoke$convertRequestCOROUTINE$).i9 = function () {
316
- var suspendResult = this.c9_1;
315
+ protoOf($invoke$convertRequestCOROUTINE$).l9 = function () {
316
+ var suspendResult = this.f9_1;
317
317
  $sm: do
318
318
  try {
319
- var tmp = this.a9_1;
319
+ var tmp = this.d9_1;
320
320
  switch (tmp) {
321
321
  case 0:
322
- this.b9_1 = 7;
322
+ this.e9_1 = 7;
323
323
  var tmp_0;
324
- if (this.i5n_1.c3q_1.s2j(get_ExcludedContentTypes())) {
325
- var excluded = this.i5n_1.c3q_1.q2j(get_ExcludedContentTypes());
326
- var tmp0 = this.f5n_1;
324
+ if (this.x5o_1.s3r_1.u2k(get_ExcludedContentTypes())) {
325
+ var excluded = this.x5o_1.s3r_1.s2k(get_ExcludedContentTypes());
326
+ var tmp0 = this.u5o_1;
327
327
  var destination = ArrayList_init_$Create$();
328
328
  var _iterator__ex2g4s = tmp0.t();
329
329
  while (_iterator__ex2g4s.u()) {
@@ -343,7 +343,7 @@
343
343
  var _iterator__ex2g4s_0 = excluded.t();
344
344
  while (_iterator__ex2g4s_0.u()) {
345
345
  var element_0 = _iterator__ex2g4s_0.v();
346
- if (element.p5m_1.p2v(element_0)) {
346
+ if (element.e5o_1.d2x(element_0)) {
347
347
  tmp$ret$0 = false;
348
348
  break l$ret$1;
349
349
  }
@@ -357,11 +357,11 @@
357
357
  }
358
358
  tmp_0 = destination;
359
359
  } else {
360
- tmp_0 = this.f5n_1;
360
+ tmp_0 = this.u5o_1;
361
361
  }
362
362
 
363
363
  var requestRegistrations = tmp_0;
364
- var tmp0_elvis_lhs = this.i5n_1.z3p_1.h2o('Accept');
364
+ var tmp0_elvis_lhs = this.x5o_1.p3r_1.j2p('Accept');
365
365
  var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
366
366
  var _iterator__ex2g4s_1 = requestRegistrations.t();
367
367
  while (_iterator__ex2g4s_1.u()) {
@@ -381,7 +381,7 @@
381
381
  var _iterator__ex2g4s_2 = acceptHeaders.t();
382
382
  while (_iterator__ex2g4s_2.u()) {
383
383
  var element_2 = _iterator__ex2g4s_2.v();
384
- if (Companion_getInstance().um(element_2).p2v(element_1.p5m_1)) {
384
+ if (Companion_getInstance().wn(element_2).d2x(element_1.e5o_1)) {
385
385
  tmp$ret$2 = false;
386
386
  break l$ret$3;
387
387
  }
@@ -390,19 +390,19 @@
390
390
  }
391
391
  while (false);
392
392
  if (tmp$ret$2) {
393
- var qValue = this.g5n_1.x3x_1.v5m_1;
394
- var contentTypeToSend = qValue == null ? element_1.p5m_1 : element_1.p5m_1.n2v('q', qValue.toString());
395
- get_LOGGER().d2t('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.i5n_1.x3p_1.toString());
396
- accept(this.i5n_1, contentTypeToSend);
393
+ var qValue = this.v5o_1.n3z_1.k5o_1;
394
+ var contentTypeToSend = qValue == null ? element_1.e5o_1 : element_1.e5o_1.b2x('q', qValue.toString());
395
+ get_LOGGER().f2u('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.x5o_1.n3r_1.toString());
396
+ accept(this.x5o_1, contentTypeToSend);
397
397
  }
398
398
  }
399
399
 
400
400
  var tmp_3;
401
- var tmp_4 = this.j5n_1;
401
+ var tmp_4 = this.y5o_1;
402
402
  if (tmp_4 instanceof OutgoingContent) {
403
403
  tmp_3 = true;
404
404
  } else {
405
- var tmp0_0 = this.h5n_1;
405
+ var tmp0_0 = this.w5o_1;
406
406
  var tmp$ret$4;
407
407
  l$ret$5: do {
408
408
  var tmp_5;
@@ -418,7 +418,7 @@
418
418
  var _iterator__ex2g4s_3 = tmp0_0.t();
419
419
  while (_iterator__ex2g4s_3.u()) {
420
420
  var element_3 = _iterator__ex2g4s_3.v();
421
- if (element_3.bb(this.j5n_1)) {
421
+ if (element_3.eb(this.y5o_1)) {
422
422
  tmp$ret$4 = true;
423
423
  break l$ret$5;
424
424
  }
@@ -430,36 +430,36 @@
430
430
  }
431
431
 
432
432
  if (tmp_3) {
433
- get_LOGGER().d2t('Body type ' + toString(getKClassFromExpression(this.j5n_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.'));
433
+ get_LOGGER().f2u('Body type ' + toString(getKClassFromExpression(this.y5o_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.'));
434
434
  return null;
435
435
  }
436
436
 
437
437
  var tmp_6 = this;
438
- var tmp0_elvis_lhs_0 = contentType_0(this.i5n_1);
438
+ var tmp0_elvis_lhs_0 = contentType_0(this.x5o_1);
439
439
  var tmp_7;
440
440
  if (tmp0_elvis_lhs_0 == null) {
441
- this.g5n_1;
442
- get_LOGGER().d2t("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.i5n_1.x3p_1.toString() + '.');
441
+ this.v5o_1;
442
+ get_LOGGER().f2u("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.x5o_1.n3r_1.toString() + '.');
443
443
  return null;
444
444
  } else {
445
445
  tmp_7 = tmp0_elvis_lhs_0;
446
446
  }
447
447
 
448
- tmp_6.l5n_1 = tmp_7;
449
- var tmp_8 = this.j5n_1;
448
+ tmp_6.a5p_1 = tmp_7;
449
+ var tmp_8 = this.y5o_1;
450
450
  if (tmp_8 instanceof Unit) {
451
- get_LOGGER().d2t('Sending empty body for ' + this.i5n_1.x3p_1.toString());
452
- this.i5n_1.z3p_1.r2o('Content-Type');
451
+ get_LOGGER().f2u('Sending empty body for ' + this.x5o_1.n3r_1.toString());
452
+ this.x5o_1.p3r_1.t2p('Content-Type');
453
453
  return EmptyContent_getInstance();
454
454
  }
455
455
 
456
456
  var tmp_9 = this;
457
- var tmp0_1 = this.f5n_1;
457
+ var tmp0_1 = this.u5o_1;
458
458
  var destination_0 = ArrayList_init_$Create$();
459
459
  var _iterator__ex2g4s_4 = tmp0_1.t();
460
460
  while (_iterator__ex2g4s_4.u()) {
461
461
  var element_4 = _iterator__ex2g4s_4.v();
462
- if (element_4.q5m_1.s5m(this.l5n_1)) {
462
+ if (element_4.f5o_1.h5o(this.a5p_1)) {
463
463
  destination_0.j1(element_4);
464
464
  }
465
465
  }
@@ -474,40 +474,40 @@
474
474
  var tmp1_elvis_lhs = tmp_10;
475
475
  var tmp_11;
476
476
  if (tmp1_elvis_lhs == null) {
477
- this.g5n_1;
478
- get_LOGGER().d2t('None of the registered converters match request Content-Type=' + this.l5n_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.'));
477
+ this.v5o_1;
478
+ get_LOGGER().f2u('None of the registered converters match request Content-Type=' + this.a5p_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.'));
479
479
  return null;
480
480
  } else {
481
481
  tmp_11 = tmp1_elvis_lhs;
482
482
  }
483
483
 
484
- tmp_9.k5n_1 = tmp_11;
485
- if (this.i5n_1.z4k() == null) {
486
- get_LOGGER().d2t('Request has unknown body type. Skipping ContentNegotiation for ' + this.i5n_1.x3p_1.toString() + '.');
484
+ tmp_9.z5o_1 = tmp_11;
485
+ if (this.x5o_1.o4m() == null) {
486
+ get_LOGGER().f2u('Request has unknown body type. Skipping ContentNegotiation for ' + this.x5o_1.n3r_1.toString() + '.');
487
487
  return null;
488
488
  }
489
489
 
490
- this.i5n_1.z3p_1.r2o('Content-Type');
491
- this.p5n_1 = this.k5n_1;
492
- this.a9_1 = 1;
490
+ this.x5o_1.p3r_1.t2p('Content-Type');
491
+ this.e5p_1 = this.z5o_1;
492
+ this.d9_1 = 1;
493
493
  continue $sm;
494
494
  case 1:
495
- this.o5n_1 = this.p5n_1.t();
496
- this.a9_1 = 2;
495
+ this.d5p_1 = this.e5p_1.t();
496
+ this.d9_1 = 2;
497
497
  continue $sm;
498
498
  case 2:
499
- if (!this.o5n_1.u()) {
500
- this.a9_1 = 5;
499
+ if (!this.d5p_1.u()) {
500
+ this.d9_1 = 5;
501
501
  continue $sm;
502
502
  }
503
503
 
504
- var element_5 = this.o5n_1.v();
505
- this.n5n_1 = element_5;
506
- this.a9_1 = 3;
507
- var tmp0_elvis_lhs_1 = charset(this.l5n_1);
508
- var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().t1x_1 : tmp0_elvis_lhs_1;
509
- var tmp_13 = ensureNotNull(this.i5n_1.z4k());
510
- var this_0 = this.j5n_1;
504
+ var element_5 = this.d5p_1.v();
505
+ this.c5p_1 = element_5;
506
+ this.d9_1 = 3;
507
+ var tmp0_elvis_lhs_1 = charset(this.a5p_1);
508
+ var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().v1y_1 : tmp0_elvis_lhs_1;
509
+ var tmp_13 = ensureNotNull(this.x5o_1.o4m());
510
+ var this_0 = this.y5o_1;
511
511
  var tmp_14;
512
512
  if (!equals(this_0, NullBody_instance)) {
513
513
  tmp_14 = this_0;
@@ -515,7 +515,7 @@
515
515
  tmp_14 = null;
516
516
  }
517
517
 
518
- suspendResult = this.n5n_1.o5m_1.m5p(this.l5n_1, tmp_12, tmp_13, tmp_14, this);
518
+ suspendResult = this.c5p_1.d5o_1.b5r(this.a5p_1, tmp_12, tmp_13, tmp_14, this);
519
519
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
520
520
  return suspendResult;
521
521
  }
@@ -524,37 +524,37 @@
524
524
  case 3:
525
525
  var result = suspendResult;
526
526
  if (!(result == null)) {
527
- get_LOGGER().d2t('Converted request body using ' + toString(this.n5n_1.o5m_1) + ' for ' + this.i5n_1.x3p_1.toString());
527
+ get_LOGGER().f2u('Converted request body using ' + toString(this.c5p_1.d5o_1) + ' for ' + this.x5o_1.n3r_1.toString());
528
528
  }
529
529
 
530
530
  var result_0 = result;
531
531
  if (!(result_0 == null)) {
532
- this.m5n_1 = result_0;
533
- this.a9_1 = 6;
532
+ this.b5p_1 = result_0;
533
+ this.d9_1 = 6;
534
534
  continue $sm;
535
535
  } else {
536
- this.a9_1 = 4;
536
+ this.d9_1 = 4;
537
537
  continue $sm;
538
538
  }
539
539
 
540
540
  case 4:
541
- this.a9_1 = 2;
541
+ this.d9_1 = 2;
542
542
  continue $sm;
543
543
  case 5:
544
- this.m5n_1 = null;
544
+ this.b5p_1 = null;
545
545
  if (false) {
546
- this.a9_1 = 1;
546
+ this.d9_1 = 1;
547
547
  continue $sm;
548
548
  }
549
549
 
550
- this.a9_1 = 6;
550
+ this.d9_1 = 6;
551
551
  continue $sm;
552
552
  case 6:
553
- var tmp2_elvis_lhs = this.m5n_1;
553
+ var tmp2_elvis_lhs = this.b5p_1;
554
554
  var tmp_15;
555
555
  if (tmp2_elvis_lhs == null) {
556
- var tmp_16 = "Can't convert " + toString(this.j5n_1) + ' with contentType ' + this.l5n_1.toString() + ' using converters ';
557
- throw new ContentConverterException(tmp_16 + joinToString(this.k5n_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
556
+ var tmp_16 = "Can't convert " + toString(this.y5o_1) + ' with contentType ' + this.a5p_1.toString() + ' using converters ';
557
+ throw new ContentConverterException(tmp_16 + joinToString(this.z5o_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
558
558
  } else {
559
559
  tmp_15 = tmp2_elvis_lhs;
560
560
  }
@@ -562,55 +562,55 @@
562
562
  var serializedContent = tmp_15;
563
563
  return serializedContent;
564
564
  case 7:
565
- throw this.d9_1;
565
+ throw this.g9_1;
566
566
  }
567
567
  } catch ($p) {
568
568
  var e = $p;
569
- if (this.b9_1 === 7) {
569
+ if (this.e9_1 === 7) {
570
570
  throw e;
571
571
  } else {
572
- this.a9_1 = this.b9_1;
573
- this.d9_1 = e;
572
+ this.d9_1 = this.e9_1;
573
+ this.g9_1 = e;
574
574
  }
575
575
  }
576
576
  while (true);
577
577
  };
578
578
  function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
579
579
  CoroutineImpl.call(this, resultContinuation);
580
- this.y5n_1 = ignoredTypes;
581
- this.z5n_1 = registrations;
582
- this.a5o_1 = $this_createClientPlugin;
583
- this.b5o_1 = requestUrl;
584
- this.c5o_1 = info;
585
- this.d5o_1 = body;
586
- this.e5o_1 = responseContentType;
587
- this.f5o_1 = charset;
580
+ this.n5p_1 = ignoredTypes;
581
+ this.o5p_1 = registrations;
582
+ this.p5p_1 = $this_createClientPlugin;
583
+ this.q5p_1 = requestUrl;
584
+ this.r5p_1 = info;
585
+ this.s5p_1 = body;
586
+ this.t5p_1 = responseContentType;
587
+ this.u5p_1 = charset;
588
588
  }
589
- protoOf($invoke$convertResponseCOROUTINE$).i9 = function () {
590
- var suspendResult = this.c9_1;
589
+ protoOf($invoke$convertResponseCOROUTINE$).l9 = function () {
590
+ var suspendResult = this.f9_1;
591
591
  $sm: do
592
592
  try {
593
- var tmp = this.a9_1;
593
+ var tmp = this.d9_1;
594
594
  switch (tmp) {
595
595
  case 0:
596
- this.b9_1 = 2;
597
- var tmp_0 = this.d5o_1;
596
+ this.e9_1 = 2;
597
+ var tmp_0 = this.s5p_1;
598
598
  if (!isInterface(tmp_0, ByteReadChannel)) {
599
- get_LOGGER().d2t('Response body is already transformed. Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.');
599
+ get_LOGGER().f2u('Response body is already transformed. Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.');
600
600
  return null;
601
601
  }
602
602
 
603
- if (this.y5n_1.n2(this.c5o_1.m2s_1)) {
604
- get_LOGGER().d2t('Response body type ' + toString(this.c5o_1.m2s_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.'));
603
+ if (this.n5p_1.n2(this.r5p_1.o2t_1)) {
604
+ get_LOGGER().f2u('Response body type ' + toString(this.r5p_1.o2t_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.'));
605
605
  return null;
606
606
  }
607
607
 
608
- var tmp0 = this.z5n_1;
608
+ var tmp0 = this.o5p_1;
609
609
  var destination = ArrayList_init_$Create$();
610
610
  var _iterator__ex2g4s = tmp0.t();
611
611
  while (_iterator__ex2g4s.u()) {
612
612
  var element = _iterator__ex2g4s.v();
613
- if (element.q5m_1.s5m(this.e5o_1)) {
613
+ if (element.f5o_1.h5o(this.t5p_1)) {
614
614
  destination.j1(element);
615
615
  }
616
616
  }
@@ -619,7 +619,7 @@
619
619
  var _iterator__ex2g4s_0 = destination.t();
620
620
  while (_iterator__ex2g4s_0.u()) {
621
621
  var item = _iterator__ex2g4s_0.v();
622
- destination_0.j1(item.o5m_1);
622
+ destination_0.j1(item.d5o_1);
623
623
  }
624
624
 
625
625
  var tmp_1;
@@ -632,16 +632,16 @@
632
632
  var tmp0_elvis_lhs = tmp_1;
633
633
  var tmp_2;
634
634
  if (tmp0_elvis_lhs == null) {
635
- this.a5o_1;
636
- get_LOGGER().d2t('None of the registered converters match response with Content-Type=' + this.e5o_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.b5o_1.toString() + '.'));
635
+ this.p5p_1;
636
+ get_LOGGER().f2u('None of the registered converters match response with Content-Type=' + this.t5p_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.q5p_1.toString() + '.'));
637
637
  return null;
638
638
  } else {
639
639
  tmp_2 = tmp0_elvis_lhs;
640
640
  }
641
641
 
642
642
  var suitableConverters = tmp_2;
643
- this.a9_1 = 1;
644
- suspendResult = deserialize(suitableConverters, this.d5o_1, this.c5o_1, this.f5o_1, this);
643
+ this.d9_1 = 1;
644
+ suspendResult = deserialize(suitableConverters, this.s5p_1, this.r5p_1, this.u5p_1, this);
645
645
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
646
646
  return suspendResult;
647
647
  }
@@ -650,20 +650,20 @@
650
650
  case 1:
651
651
  var result = suspendResult;
652
652
  if (!isInterface(result, ByteReadChannel)) {
653
- get_LOGGER().d2t('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.b5o_1.toString() + '.');
653
+ get_LOGGER().f2u('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.q5p_1.toString() + '.');
654
654
  }
655
655
 
656
656
  return result;
657
657
  case 2:
658
- throw this.d9_1;
658
+ throw this.g9_1;
659
659
  }
660
660
  } catch ($p) {
661
661
  var e = $p;
662
- if (this.b9_1 === 2) {
662
+ if (this.e9_1 === 2) {
663
663
  throw e;
664
664
  } else {
665
- this.a9_1 = this.b9_1;
666
- this.d9_1 = e;
665
+ this.d9_1 = this.e9_1;
666
+ this.g9_1 = e;
667
667
  }
668
668
  }
669
669
  while (true);
@@ -673,7 +673,7 @@
673
673
  if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
674
674
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
675
675
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
676
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().fc(), PrimitiveClasses_getInstance().bc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
676
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ic(), PrimitiveClasses_getInstance().ec(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
677
677
  // Inline function 'io.ktor.util.AttributeKey' call
678
678
  var name = 'ExcludedContentTypesAttr';
679
679
  // Inline function 'io.ktor.util.reflect.typeInfo' call
@@ -701,12 +701,12 @@
701
701
  }
702
702
  function JsonContentTypeMatcher() {
703
703
  }
704
- protoOf(JsonContentTypeMatcher).s5m = function (contentType) {
705
- if (contentType.p2v(Application_getInstance().v2t_1)) {
704
+ protoOf(JsonContentTypeMatcher).h5o = function (contentType) {
705
+ if (contentType.d2x(Application_getInstance().j2v_1)) {
706
706
  return true;
707
707
  }
708
- var value = contentType.o2v().toString();
709
- return Application_getInstance().p2u(value) && endsWith(value, '+json', true);
708
+ var value = contentType.c2x().toString();
709
+ return Application_getInstance().d2w(value) && endsWith(value, '+json', true);
710
710
  };
711
711
  var JsonContentTypeMatcher_instance;
712
712
  function JsonContentTypeMatcher_getInstance() {
@@ -726,7 +726,7 @@
726
726
  }
727
727
  }
728
728
  //region block: post-declaration
729
- protoOf(ContentNegotiationConfig).u3l = register$default;
729
+ protoOf(ContentNegotiationConfig).k3n = register$default;
730
730
  //endregion
731
731
  //region block: init
732
732
  JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();