@doordeck/doordeck-headless-sdk 0.186.0 → 0.188.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,8 +1,8 @@
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.$_$.cc;
5
- var initMetadataForClass = kotlin_kotlin.$_$.eb;
4
+ var protoOf = kotlin_kotlin.$_$.xb;
5
+ var initMetadataForClass = kotlin_kotlin.$_$.ab;
6
6
  var plus = kotlin_kotlin.$_$.q7;
7
7
  var toMutableSet = kotlin_kotlin.$_$.m8;
8
8
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
@@ -11,22 +11,22 @@
11
11
  var Unit_instance = kotlin_kotlin.$_$.b5;
12
12
  var Configuration = kotlin_io_ktor_ktor_serialization.$_$.c;
13
13
  var VOID = kotlin_kotlin.$_$.b;
14
- var Exception = kotlin_kotlin.$_$.tf;
14
+ var Exception = kotlin_kotlin.$_$.of;
15
15
  var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
16
- var captureStack = kotlin_kotlin.$_$.oa;
17
- var toString = kotlin_kotlin.$_$.fc;
16
+ var captureStack = kotlin_kotlin.$_$.ja;
17
+ var toString = kotlin_kotlin.$_$.ac;
18
18
  var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
19
19
  var CoroutineImpl = kotlin_kotlin.$_$.j9;
20
- var THROW_CCE = kotlin_kotlin.$_$.bg;
20
+ var THROW_CCE = kotlin_kotlin.$_$.vf;
21
21
  var TransformRequestBodyContext = kotlin_io_ktor_ktor_client_core.$_$.l;
22
22
  var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.b1;
23
23
  var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.m;
24
24
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
25
- var initMetadataForLambda = kotlin_kotlin.$_$.jb;
25
+ var initMetadataForLambda = kotlin_kotlin.$_$.fb;
26
26
  var TransformResponseBodyContext = kotlin_io_ktor_ktor_client_core.$_$.m;
27
27
  var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.i1;
28
28
  var ByteReadChannel = kotlin_io_ktor_ktor_io.$_$.l1;
29
- var isInterface = kotlin_kotlin.$_$.tb;
29
+ var isInterface = kotlin_kotlin.$_$.pb;
30
30
  var contentType = kotlin_io_ktor_ktor_http.$_$.n1;
31
31
  var get_request = kotlin_io_ktor_ktor_client_core.$_$.k1;
32
32
  var suitableCharset = kotlin_io_ktor_ktor_serialization.$_$.f;
@@ -36,35 +36,35 @@
36
36
  var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.c;
37
37
  var accept = kotlin_io_ktor_ktor_client_core.$_$.d1;
38
38
  var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.v;
39
- var getKClassFromExpression = kotlin_kotlin.$_$.sc;
39
+ var getKClassFromExpression = kotlin_kotlin.$_$.nc;
40
40
  var contentType_0 = kotlin_io_ktor_ktor_http.$_$.m1;
41
41
  var EmptyContent_getInstance = kotlin_io_ktor_ktor_client_core.$_$.g;
42
- var Unit = kotlin_kotlin.$_$.mg;
42
+ var Unit = kotlin_kotlin.$_$.gg;
43
43
  var charset = kotlin_io_ktor_ktor_http.$_$.k1;
44
- var ensureNotNull = kotlin_kotlin.$_$.tg;
44
+ var ensureNotNull = kotlin_kotlin.$_$.ng;
45
45
  var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
46
- var equals = kotlin_kotlin.$_$.xa;
46
+ var equals = kotlin_kotlin.$_$.sa;
47
47
  var joinToString = kotlin_kotlin.$_$.f7;
48
- var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
48
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
49
49
  var collectionSizeOrDefault = kotlin_kotlin.$_$.w5;
50
50
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
51
51
  var deserialize = kotlin_io_ktor_ktor_serialization.$_$.a;
52
52
  var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.h;
53
53
  var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.p4;
54
54
  var HttpStatusCode = kotlin_io_ktor_ktor_http.$_$.a1;
55
- var getKClass = kotlin_kotlin.$_$.tc;
55
+ var getKClass = kotlin_kotlin.$_$.oc;
56
56
  var ClientSSESession = kotlin_io_ktor_ktor_client_core.$_$.q;
57
57
  var ClientSSESessionWithDeserialization = kotlin_io_ktor_ktor_client_core.$_$.p;
58
58
  var setOf = kotlin_kotlin.$_$.y7;
59
59
  var KtList = kotlin_kotlin.$_$.i5;
60
60
  var ContentType = kotlin_io_ktor_ktor_http.$_$.y;
61
- var arrayOf = kotlin_kotlin.$_$.pg;
62
- var createKType = kotlin_kotlin.$_$.rc;
63
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.pc;
61
+ var arrayOf = kotlin_kotlin.$_$.jg;
62
+ var createKType = kotlin_kotlin.$_$.mc;
63
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.kc;
64
64
  var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.o;
65
65
  var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.n;
66
- var endsWith = kotlin_kotlin.$_$.ld;
67
- var initMetadataForObject = kotlin_kotlin.$_$.kb;
66
+ var endsWith = kotlin_kotlin.$_$.gd;
67
+ var initMetadataForObject = kotlin_kotlin.$_$.gb;
68
68
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.u;
69
69
  //endregion
70
70
  //region block: pre-declaration
@@ -99,35 +99,35 @@
99
99
  }
100
100
  var ContentNegotiation;
101
101
  function ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher) {
102
- this.y59_1 = converter;
103
- this.z59_1 = contentTypeToSend;
104
- this.a5a_1 = contentTypeMatcher;
102
+ this.v59_1 = converter;
103
+ this.w59_1 = contentTypeToSend;
104
+ this.x59_1 = contentTypeMatcher;
105
105
  }
106
106
  function defaultMatcher($this, pattern) {
107
107
  return new ContentNegotiationConfig$defaultMatcher$1(pattern);
108
108
  }
109
109
  function ContentNegotiationConfig$defaultMatcher$1($pattern) {
110
- this.b5a_1 = $pattern;
110
+ this.y59_1 = $pattern;
111
111
  }
112
- protoOf(ContentNegotiationConfig$defaultMatcher$1).c5a = function (contentType) {
113
- return contentType.u2s(this.b5a_1);
112
+ protoOf(ContentNegotiationConfig$defaultMatcher$1).z59 = function (contentType) {
113
+ return contentType.r2s(this.y59_1);
114
114
  };
115
115
  function ContentNegotiationConfig() {
116
- this.d5a_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
116
+ this.a5a_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
117
117
  var tmp = this;
118
118
  // Inline function 'kotlin.collections.mutableListOf' call
119
- tmp.e5a_1 = ArrayList_init_$Create$();
120
- this.f5a_1 = null;
119
+ tmp.b5a_1 = ArrayList_init_$Create$();
120
+ this.c5a_1 = null;
121
121
  }
122
- protoOf(ContentNegotiationConfig).b3b = function (contentType, converter, configuration) {
123
- var matcher = contentType.u2s(Application_getInstance().a2r_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
124
- this.g5a(contentType, converter, matcher, configuration);
122
+ protoOf(ContentNegotiationConfig).y3a = function (contentType, converter, configuration) {
123
+ var matcher = contentType.r2s(Application_getInstance().x2q_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
124
+ this.d5a(contentType, converter, matcher, configuration);
125
125
  };
126
- protoOf(ContentNegotiationConfig).g5a = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
126
+ protoOf(ContentNegotiationConfig).d5a = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
127
127
  // Inline function 'kotlin.apply' call
128
128
  configuration(converter);
129
129
  var registration = new ConverterRegistration(converter, contentTypeToSend, contentTypeMatcher);
130
- this.e5a_1.j1(registration);
130
+ this.b5a_1.j1(registration);
131
131
  };
132
132
  function ContentConverterException(message) {
133
133
  Exception_init_$Init$(message, this);
@@ -142,57 +142,57 @@
142
142
  }
143
143
  function ContentNegotiation$lambda($this$createClientPlugin) {
144
144
  _init_properties_ContentNegotiation_kt__o183go();
145
- var registrations = $this$createClientPlugin.d3n_1.e5a_1;
146
- var ignoredTypes = $this$createClientPlugin.d3n_1.d5a_1;
147
- $this$createClientPlugin.x47(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
148
- $this$createClientPlugin.j3w(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
145
+ var registrations = $this$createClientPlugin.a3n_1.b5a_1;
146
+ var ignoredTypes = $this$createClientPlugin.a3n_1.a5a_1;
147
+ $this$createClientPlugin.u47(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
148
+ $this$createClientPlugin.g3w(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
149
149
  return Unit_instance;
150
150
  }
151
151
  function ContentNegotiation$lambda$convertRequest$lambda(it) {
152
152
  _init_properties_ContentNegotiation_kt__o183go();
153
- return toString(it.y59_1);
153
+ return toString(it.v59_1);
154
154
  }
155
155
  function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
156
156
  var tmp = new $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion);
157
- tmp.f9_1 = Unit_instance;
158
- tmp.g9_1 = null;
159
- return tmp.l9();
157
+ tmp.c9_1 = Unit_instance;
158
+ tmp.d9_1 = null;
159
+ return tmp.i9();
160
160
  }
161
161
  function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
162
- charset = charset === VOID ? Charsets_getInstance().t1v_1 : charset;
162
+ charset = charset === VOID ? Charsets_getInstance().q1v_1 : charset;
163
163
  var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
164
- tmp.f9_1 = Unit_instance;
165
- tmp.g9_1 = null;
166
- return tmp.l9();
164
+ tmp.c9_1 = Unit_instance;
165
+ tmp.d9_1 = null;
166
+ return tmp.i9();
167
167
  }
168
168
  function ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
169
- this.y5b_1 = $registrations;
170
- this.z5b_1 = $this_createClientPlugin;
171
- this.a5c_1 = $ignoredTypes;
169
+ this.v5b_1 = $registrations;
170
+ this.w5b_1 = $this_createClientPlugin;
171
+ this.x5b_1 = $ignoredTypes;
172
172
  CoroutineImpl.call(this, resultContinuation);
173
173
  }
174
- protoOf(ContentNegotiation$lambda$slambda).f5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
175
- var tmp = this.g5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
176
- tmp.f9_1 = Unit_instance;
177
- tmp.g9_1 = null;
178
- return tmp.l9();
174
+ protoOf(ContentNegotiation$lambda$slambda).c5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
175
+ var tmp = this.d5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
176
+ tmp.c9_1 = Unit_instance;
177
+ tmp.d9_1 = null;
178
+ return tmp.i9();
179
179
  };
180
- protoOf(ContentNegotiation$lambda$slambda).o3x = function (p1, p2, p3, p4, $completion) {
180
+ protoOf(ContentNegotiation$lambda$slambda).l3x = function (p1, p2, p3, p4, $completion) {
181
181
  var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
182
182
  var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
183
183
  var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
184
- return this.f5c(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
184
+ return this.c5c(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo) ? p4 : THROW_CCE(), $completion);
185
185
  };
186
- protoOf(ContentNegotiation$lambda$slambda).l9 = function () {
187
- var suspendResult = this.f9_1;
186
+ protoOf(ContentNegotiation$lambda$slambda).i9 = function () {
187
+ var suspendResult = this.c9_1;
188
188
  $sm: do
189
189
  try {
190
- var tmp = this.d9_1;
190
+ var tmp = this.a9_1;
191
191
  switch (tmp) {
192
192
  case 0:
193
- this.e9_1 = 2;
194
- this.d9_1 = 1;
195
- suspendResult = invoke$convertRequest(this.y5b_1, this.z5b_1, this.a5c_1, this.c5c_1, this.d5c_1, this);
193
+ this.b9_1 = 2;
194
+ this.a9_1 = 1;
195
+ suspendResult = invoke$convertRequest(this.v5b_1, this.w5b_1, this.x5b_1, this.z5b_1, this.a5c_1, this);
196
196
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
197
197
  return suspendResult;
198
198
  }
@@ -201,62 +201,62 @@
201
201
  case 1:
202
202
  return suspendResult;
203
203
  case 2:
204
- throw this.g9_1;
204
+ throw this.d9_1;
205
205
  }
206
206
  } catch ($p) {
207
207
  var e = $p;
208
- if (this.e9_1 === 2) {
208
+ if (this.b9_1 === 2) {
209
209
  throw e;
210
210
  } else {
211
- this.d9_1 = this.e9_1;
212
- this.g9_1 = e;
211
+ this.a9_1 = this.b9_1;
212
+ this.d9_1 = e;
213
213
  }
214
214
  }
215
215
  while (true);
216
216
  };
217
- protoOf(ContentNegotiation$lambda$slambda).g5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
218
- var i = new ContentNegotiation$lambda$slambda(this.y5b_1, this.z5b_1, this.a5c_1, completion);
219
- i.b5c_1 = $this$transformRequestBody;
220
- i.c5c_1 = request;
221
- i.d5c_1 = body;
222
- i.e5c_1 = _unused_var__etf5q3;
217
+ protoOf(ContentNegotiation$lambda$slambda).d5c = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
218
+ var i = new ContentNegotiation$lambda$slambda(this.v5b_1, this.w5b_1, this.x5b_1, completion);
219
+ i.y5b_1 = $this$transformRequestBody;
220
+ i.z5b_1 = request;
221
+ i.a5c_1 = body;
222
+ i.b5c_1 = _unused_var__etf5q3;
223
223
  return i;
224
224
  };
225
225
  function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
226
226
  var i = new ContentNegotiation$lambda$slambda($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
227
227
  var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
228
- return i.f5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
228
+ return i.c5c($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
229
229
  };
230
230
  l.$arity = 4;
231
231
  return l;
232
232
  }
233
233
  function ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
234
- this.p5c_1 = $ignoredTypes;
235
- this.q5c_1 = $registrations;
236
- this.r5c_1 = $this_createClientPlugin;
234
+ this.m5c_1 = $ignoredTypes;
235
+ this.n5c_1 = $registrations;
236
+ this.o5c_1 = $this_createClientPlugin;
237
237
  CoroutineImpl.call(this, resultContinuation);
238
238
  }
239
- protoOf(ContentNegotiation$lambda$slambda_1).m3x = function ($this$transformResponseBody, response, body, info, $completion) {
240
- var tmp = this.n3x($this$transformResponseBody, response, body, info, $completion);
241
- tmp.f9_1 = Unit_instance;
242
- tmp.g9_1 = null;
243
- return tmp.l9();
239
+ protoOf(ContentNegotiation$lambda$slambda_1).j3x = function ($this$transformResponseBody, response, body, info, $completion) {
240
+ var tmp = this.k3x($this$transformResponseBody, response, body, info, $completion);
241
+ tmp.c9_1 = Unit_instance;
242
+ tmp.d9_1 = null;
243
+ return tmp.i9();
244
244
  };
245
- protoOf(ContentNegotiation$lambda$slambda_1).o3x = function (p1, p2, p3, p4, $completion) {
245
+ protoOf(ContentNegotiation$lambda$slambda_1).l3x = function (p1, p2, p3, p4, $completion) {
246
246
  var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
247
247
  var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
248
248
  var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
249
- return this.m3x(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
249
+ return this.j3x(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
250
250
  };
251
- protoOf(ContentNegotiation$lambda$slambda_1).l9 = function () {
252
- var suspendResult = this.f9_1;
251
+ protoOf(ContentNegotiation$lambda$slambda_1).i9 = function () {
252
+ var suspendResult = this.c9_1;
253
253
  $sm: do
254
254
  try {
255
- var tmp = this.d9_1;
255
+ var tmp = this.a9_1;
256
256
  switch (tmp) {
257
257
  case 0:
258
- this.e9_1 = 2;
259
- var tmp0_elvis_lhs = contentType(this.t5c_1);
258
+ this.b9_1 = 2;
259
+ var tmp0_elvis_lhs = contentType(this.q5c_1);
260
260
  var tmp_0;
261
261
  if (tmp0_elvis_lhs == null) {
262
262
  return null;
@@ -265,9 +265,9 @@
265
265
  }
266
266
 
267
267
  var contentType_0 = tmp_0;
268
- var charset = suitableCharset(get_request(this.t5c_1).e2x());
269
- this.d9_1 = 1;
270
- suspendResult = invoke$convertResponse(this.p5c_1, this.q5c_1, this.r5c_1, get_request(this.t5c_1).r3g(), this.v5c_1, this.u5c_1, contentType_0, charset, this);
268
+ var charset = suitableCharset(get_request(this.q5c_1).b2x());
269
+ this.a9_1 = 1;
270
+ suspendResult = invoke$convertResponse(this.m5c_1, this.n5c_1, this.o5c_1, get_request(this.q5c_1).o3g(), this.s5c_1, this.r5c_1, contentType_0, charset, this);
271
271
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
272
272
  return suspendResult;
273
273
  }
@@ -276,55 +276,55 @@
276
276
  case 1:
277
277
  return suspendResult;
278
278
  case 2:
279
- throw this.g9_1;
279
+ throw this.d9_1;
280
280
  }
281
281
  } catch ($p) {
282
282
  var e = $p;
283
- if (this.e9_1 === 2) {
283
+ if (this.b9_1 === 2) {
284
284
  throw e;
285
285
  } else {
286
- this.d9_1 = this.e9_1;
287
- this.g9_1 = e;
286
+ this.a9_1 = this.b9_1;
287
+ this.d9_1 = e;
288
288
  }
289
289
  }
290
290
  while (true);
291
291
  };
292
- protoOf(ContentNegotiation$lambda$slambda_1).n3x = function ($this$transformResponseBody, response, body, info, completion) {
293
- var i = new ContentNegotiation$lambda$slambda_1(this.p5c_1, this.q5c_1, this.r5c_1, completion);
294
- i.s5c_1 = $this$transformResponseBody;
295
- i.t5c_1 = response;
296
- i.u5c_1 = body;
297
- i.v5c_1 = info;
292
+ protoOf(ContentNegotiation$lambda$slambda_1).k3x = function ($this$transformResponseBody, response, body, info, completion) {
293
+ var i = new ContentNegotiation$lambda$slambda_1(this.m5c_1, this.n5c_1, this.o5c_1, completion);
294
+ i.p5c_1 = $this$transformResponseBody;
295
+ i.q5c_1 = response;
296
+ i.r5c_1 = body;
297
+ i.s5c_1 = info;
298
298
  return i;
299
299
  };
300
300
  function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
301
301
  var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
302
302
  var l = function ($this$transformResponseBody, response, body, info, $completion) {
303
- return i.m3x($this$transformResponseBody, response, body, info, $completion);
303
+ return i.j3x($this$transformResponseBody, response, body, info, $completion);
304
304
  };
305
305
  l.$arity = 4;
306
306
  return l;
307
307
  }
308
308
  function $invoke$convertRequestCOROUTINE$(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
309
309
  CoroutineImpl.call(this, resultContinuation);
310
- this.p5a_1 = registrations;
311
- this.q5a_1 = $this_createClientPlugin;
312
- this.r5a_1 = ignoredTypes;
313
- this.s5a_1 = request;
314
- this.t5a_1 = body;
310
+ this.m5a_1 = registrations;
311
+ this.n5a_1 = $this_createClientPlugin;
312
+ this.o5a_1 = ignoredTypes;
313
+ this.p5a_1 = request;
314
+ this.q5a_1 = body;
315
315
  }
316
- protoOf($invoke$convertRequestCOROUTINE$).l9 = function () {
317
- var suspendResult = this.f9_1;
316
+ protoOf($invoke$convertRequestCOROUTINE$).i9 = function () {
317
+ var suspendResult = this.c9_1;
318
318
  $sm: do
319
319
  try {
320
- var tmp = this.d9_1;
320
+ var tmp = this.a9_1;
321
321
  switch (tmp) {
322
322
  case 0:
323
- this.e9_1 = 7;
323
+ this.b9_1 = 7;
324
324
  var tmp_0;
325
- if (this.s5a_1.f3f_1.q2h(get_ExcludedContentTypes())) {
326
- var excluded = this.s5a_1.f3f_1.o2h(get_ExcludedContentTypes());
327
- var tmp0 = this.p5a_1;
325
+ if (this.p5a_1.c3f_1.n2h(get_ExcludedContentTypes())) {
326
+ var excluded = this.p5a_1.c3f_1.l2h(get_ExcludedContentTypes());
327
+ var tmp0 = this.m5a_1;
328
328
  var destination = ArrayList_init_$Create$();
329
329
  var _iterator__ex2g4s = tmp0.t();
330
330
  while (_iterator__ex2g4s.u()) {
@@ -344,7 +344,7 @@
344
344
  var _iterator__ex2g4s_0 = excluded.t();
345
345
  while (_iterator__ex2g4s_0.u()) {
346
346
  var element_0 = _iterator__ex2g4s_0.v();
347
- if (element.z59_1.u2s(element_0)) {
347
+ if (element.w59_1.r2s(element_0)) {
348
348
  tmp$ret$0 = false;
349
349
  break l$ret$1;
350
350
  }
@@ -358,11 +358,11 @@
358
358
  }
359
359
  tmp_0 = destination;
360
360
  } else {
361
- tmp_0 = this.p5a_1;
361
+ tmp_0 = this.m5a_1;
362
362
  }
363
363
 
364
364
  var requestRegistrations = tmp_0;
365
- var tmp0_elvis_lhs = this.s5a_1.c3f_1.s2l(HttpHeaders_getInstance().a2t_1);
365
+ var tmp0_elvis_lhs = this.p5a_1.z3e_1.p2l(HttpHeaders_getInstance().x2s_1);
366
366
  var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
367
367
  var _iterator__ex2g4s_1 = requestRegistrations.t();
368
368
  while (_iterator__ex2g4s_1.u()) {
@@ -382,7 +382,7 @@
382
382
  var _iterator__ex2g4s_2 = acceptHeaders.t();
383
383
  while (_iterator__ex2g4s_2.u()) {
384
384
  var element_2 = _iterator__ex2g4s_2.v();
385
- if (Companion_getInstance().rl(element_2).u2s(element_1.z59_1)) {
385
+ if (Companion_getInstance().ol(element_2).r2s(element_1.w59_1)) {
386
386
  tmp$ret$2 = false;
387
387
  break l$ret$3;
388
388
  }
@@ -391,19 +391,19 @@
391
391
  }
392
392
  while (false);
393
393
  if (tmp$ret$2) {
394
- var qValue = this.q5a_1.d3n_1.f5a_1;
395
- var contentTypeToSend = qValue == null ? element_1.z59_1 : element_1.z59_1.s2s('q', qValue.toString());
396
- get_LOGGER().i2q('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.s5a_1.a3f_1.toString());
397
- accept(this.s5a_1, contentTypeToSend);
394
+ var qValue = this.n5a_1.a3n_1.c5a_1;
395
+ var contentTypeToSend = qValue == null ? element_1.w59_1 : element_1.w59_1.p2s('q', qValue.toString());
396
+ get_LOGGER().f2q('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.p5a_1.x3e_1.toString());
397
+ accept(this.p5a_1, contentTypeToSend);
398
398
  }
399
399
  }
400
400
 
401
401
  var tmp_3;
402
- var tmp_4 = this.t5a_1;
402
+ var tmp_4 = this.q5a_1;
403
403
  if (tmp_4 instanceof OutgoingContent) {
404
404
  tmp_3 = true;
405
405
  } else {
406
- var tmp0_0 = this.r5a_1;
406
+ var tmp0_0 = this.o5a_1;
407
407
  var tmp$ret$4;
408
408
  l$ret$5: do {
409
409
  var tmp_5;
@@ -419,7 +419,7 @@
419
419
  var _iterator__ex2g4s_3 = tmp0_0.t();
420
420
  while (_iterator__ex2g4s_3.u()) {
421
421
  var element_3 = _iterator__ex2g4s_3.v();
422
- if (element_3.eb(this.t5a_1)) {
422
+ if (element_3.bb(this.q5a_1)) {
423
423
  tmp$ret$4 = true;
424
424
  break l$ret$5;
425
425
  }
@@ -431,36 +431,36 @@
431
431
  }
432
432
 
433
433
  if (tmp_3) {
434
- get_LOGGER().i2q('Body type ' + toString(getKClassFromExpression(this.t5a_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.'));
434
+ get_LOGGER().f2q('Body type ' + toString(getKClassFromExpression(this.q5a_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.p5a_1.x3e_1.toString() + '.'));
435
435
  return null;
436
436
  }
437
437
 
438
438
  var tmp_6 = this;
439
- var tmp0_elvis_lhs_0 = contentType_0(this.s5a_1);
439
+ var tmp0_elvis_lhs_0 = contentType_0(this.p5a_1);
440
440
  var tmp_7;
441
441
  if (tmp0_elvis_lhs_0 == null) {
442
- this.q5a_1;
443
- get_LOGGER().i2q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.s5a_1.a3f_1.toString() + '.');
442
+ this.n5a_1;
443
+ get_LOGGER().f2q("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.p5a_1.x3e_1.toString() + '.');
444
444
  return null;
445
445
  } else {
446
446
  tmp_7 = tmp0_elvis_lhs_0;
447
447
  }
448
448
 
449
- tmp_6.v5a_1 = tmp_7;
450
- var tmp_8 = this.t5a_1;
449
+ tmp_6.s5a_1 = tmp_7;
450
+ var tmp_8 = this.q5a_1;
451
451
  if (tmp_8 instanceof Unit) {
452
- get_LOGGER().i2q('Sending empty body for ' + this.s5a_1.a3f_1.toString());
453
- this.s5a_1.c3f_1.c2m(HttpHeaders_getInstance().s2t_1);
452
+ get_LOGGER().f2q('Sending empty body for ' + this.p5a_1.x3e_1.toString());
453
+ this.p5a_1.z3e_1.z2l(HttpHeaders_getInstance().p2t_1);
454
454
  return EmptyContent_getInstance();
455
455
  }
456
456
 
457
457
  var tmp_9 = this;
458
- var tmp0_1 = this.p5a_1;
458
+ var tmp0_1 = this.m5a_1;
459
459
  var destination_0 = ArrayList_init_$Create$();
460
460
  var _iterator__ex2g4s_4 = tmp0_1.t();
461
461
  while (_iterator__ex2g4s_4.u()) {
462
462
  var element_4 = _iterator__ex2g4s_4.v();
463
- if (element_4.a5a_1.c5a(this.v5a_1)) {
463
+ if (element_4.x59_1.z59(this.s5a_1)) {
464
464
  destination_0.j1(element_4);
465
465
  }
466
466
  }
@@ -475,40 +475,40 @@
475
475
  var tmp1_elvis_lhs = tmp_10;
476
476
  var tmp_11;
477
477
  if (tmp1_elvis_lhs == null) {
478
- this.q5a_1;
479
- get_LOGGER().i2q('None of the registered converters match request Content-Type=' + this.v5a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.'));
478
+ this.n5a_1;
479
+ get_LOGGER().f2q('None of the registered converters match request Content-Type=' + this.s5a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.p5a_1.x3e_1.toString() + '.'));
480
480
  return null;
481
481
  } else {
482
482
  tmp_11 = tmp1_elvis_lhs;
483
483
  }
484
484
 
485
- tmp_9.u5a_1 = tmp_11;
486
- if (this.s5a_1.f4a() == null) {
487
- get_LOGGER().i2q('Request has unknown body type. Skipping ContentNegotiation for ' + this.s5a_1.a3f_1.toString() + '.');
485
+ tmp_9.r5a_1 = tmp_11;
486
+ if (this.p5a_1.c4a() == null) {
487
+ get_LOGGER().f2q('Request has unknown body type. Skipping ContentNegotiation for ' + this.p5a_1.x3e_1.toString() + '.');
488
488
  return null;
489
489
  }
490
490
 
491
- this.s5a_1.c3f_1.c2m(HttpHeaders_getInstance().s2t_1);
492
- this.z5a_1 = this.u5a_1;
493
- this.d9_1 = 1;
491
+ this.p5a_1.z3e_1.z2l(HttpHeaders_getInstance().p2t_1);
492
+ this.w5a_1 = this.r5a_1;
493
+ this.a9_1 = 1;
494
494
  continue $sm;
495
495
  case 1:
496
- this.y5a_1 = this.z5a_1.t();
497
- this.d9_1 = 2;
496
+ this.v5a_1 = this.w5a_1.t();
497
+ this.a9_1 = 2;
498
498
  continue $sm;
499
499
  case 2:
500
- if (!this.y5a_1.u()) {
501
- this.d9_1 = 5;
500
+ if (!this.v5a_1.u()) {
501
+ this.a9_1 = 5;
502
502
  continue $sm;
503
503
  }
504
504
 
505
- var element_5 = this.y5a_1.v();
506
- this.x5a_1 = element_5;
507
- this.d9_1 = 3;
508
- var tmp0_elvis_lhs_1 = charset(this.v5a_1);
509
- var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().t1v_1 : tmp0_elvis_lhs_1;
510
- var tmp_13 = ensureNotNull(this.s5a_1.f4a());
511
- var this_0 = this.t5a_1;
505
+ var element_5 = this.v5a_1.v();
506
+ this.u5a_1 = element_5;
507
+ this.a9_1 = 3;
508
+ var tmp0_elvis_lhs_1 = charset(this.s5a_1);
509
+ var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().q1v_1 : tmp0_elvis_lhs_1;
510
+ var tmp_13 = ensureNotNull(this.p5a_1.c4a());
511
+ var this_0 = this.q5a_1;
512
512
  var tmp_14;
513
513
  if (!equals(this_0, NullBody_instance)) {
514
514
  tmp_14 = this_0;
@@ -516,7 +516,7 @@
516
516
  tmp_14 = null;
517
517
  }
518
518
 
519
- suspendResult = this.x5a_1.y59_1.w5c(this.v5a_1, tmp_12, tmp_13, tmp_14, this);
519
+ suspendResult = this.u5a_1.v59_1.t5c(this.s5a_1, tmp_12, tmp_13, tmp_14, this);
520
520
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
521
521
  return suspendResult;
522
522
  }
@@ -525,37 +525,37 @@
525
525
  case 3:
526
526
  var result = suspendResult;
527
527
  if (!(result == null)) {
528
- get_LOGGER().i2q('Converted request body using ' + toString(this.x5a_1.y59_1) + ' for ' + this.s5a_1.a3f_1.toString());
528
+ get_LOGGER().f2q('Converted request body using ' + toString(this.u5a_1.v59_1) + ' for ' + this.p5a_1.x3e_1.toString());
529
529
  }
530
530
 
531
531
  var result_0 = result;
532
532
  if (!(result_0 == null)) {
533
- this.w5a_1 = result_0;
534
- this.d9_1 = 6;
533
+ this.t5a_1 = result_0;
534
+ this.a9_1 = 6;
535
535
  continue $sm;
536
536
  } else {
537
- this.d9_1 = 4;
537
+ this.a9_1 = 4;
538
538
  continue $sm;
539
539
  }
540
540
 
541
541
  case 4:
542
- this.d9_1 = 2;
542
+ this.a9_1 = 2;
543
543
  continue $sm;
544
544
  case 5:
545
- this.w5a_1 = null;
545
+ this.t5a_1 = null;
546
546
  if (false) {
547
- this.d9_1 = 1;
547
+ this.a9_1 = 1;
548
548
  continue $sm;
549
549
  }
550
550
 
551
- this.d9_1 = 6;
551
+ this.a9_1 = 6;
552
552
  continue $sm;
553
553
  case 6:
554
- var tmp2_elvis_lhs = this.w5a_1;
554
+ var tmp2_elvis_lhs = this.t5a_1;
555
555
  var tmp_15;
556
556
  if (tmp2_elvis_lhs == null) {
557
- var tmp_16 = "Can't convert " + toString(this.t5a_1) + ' with contentType ' + this.v5a_1.toString() + ' using converters ';
558
- throw new ContentConverterException(tmp_16 + joinToString(this.u5a_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
557
+ var tmp_16 = "Can't convert " + toString(this.q5a_1) + ' with contentType ' + this.s5a_1.toString() + ' using converters ';
558
+ throw new ContentConverterException(tmp_16 + joinToString(this.r5a_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
559
559
  } else {
560
560
  tmp_15 = tmp2_elvis_lhs;
561
561
  }
@@ -563,55 +563,55 @@
563
563
  var serializedContent = tmp_15;
564
564
  return serializedContent;
565
565
  case 7:
566
- throw this.g9_1;
566
+ throw this.d9_1;
567
567
  }
568
568
  } catch ($p) {
569
569
  var e = $p;
570
- if (this.e9_1 === 7) {
570
+ if (this.b9_1 === 7) {
571
571
  throw e;
572
572
  } else {
573
- this.d9_1 = this.e9_1;
574
- this.g9_1 = e;
573
+ this.a9_1 = this.b9_1;
574
+ this.d9_1 = e;
575
575
  }
576
576
  }
577
577
  while (true);
578
578
  };
579
579
  function $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
580
580
  CoroutineImpl.call(this, resultContinuation);
581
- this.i5b_1 = ignoredTypes;
582
- this.j5b_1 = registrations;
583
- this.k5b_1 = $this_createClientPlugin;
584
- this.l5b_1 = requestUrl;
585
- this.m5b_1 = info;
586
- this.n5b_1 = body;
587
- this.o5b_1 = responseContentType;
588
- this.p5b_1 = charset;
581
+ this.f5b_1 = ignoredTypes;
582
+ this.g5b_1 = registrations;
583
+ this.h5b_1 = $this_createClientPlugin;
584
+ this.i5b_1 = requestUrl;
585
+ this.j5b_1 = info;
586
+ this.k5b_1 = body;
587
+ this.l5b_1 = responseContentType;
588
+ this.m5b_1 = charset;
589
589
  }
590
- protoOf($invoke$convertResponseCOROUTINE$).l9 = function () {
591
- var suspendResult = this.f9_1;
590
+ protoOf($invoke$convertResponseCOROUTINE$).i9 = function () {
591
+ var suspendResult = this.c9_1;
592
592
  $sm: do
593
593
  try {
594
- var tmp = this.d9_1;
594
+ var tmp = this.a9_1;
595
595
  switch (tmp) {
596
596
  case 0:
597
- this.e9_1 = 2;
598
- var tmp_0 = this.n5b_1;
597
+ this.b9_1 = 2;
598
+ var tmp_0 = this.k5b_1;
599
599
  if (!isInterface(tmp_0, ByteReadChannel)) {
600
- get_LOGGER().i2q('Response body is already transformed. Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.');
600
+ get_LOGGER().f2q('Response body is already transformed. Skipping ContentNegotiation for ' + this.i5b_1.toString() + '.');
601
601
  return null;
602
602
  }
603
603
 
604
- if (this.i5b_1.m2(this.m5b_1.r2p_1)) {
605
- get_LOGGER().i2q('Response body type ' + toString(this.m5b_1.r2p_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.'));
604
+ if (this.f5b_1.m2(this.j5b_1.o2p_1)) {
605
+ get_LOGGER().f2q('Response body type ' + toString(this.j5b_1.o2p_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.i5b_1.toString() + '.'));
606
606
  return null;
607
607
  }
608
608
 
609
- var tmp0 = this.j5b_1;
609
+ var tmp0 = this.g5b_1;
610
610
  var destination = ArrayList_init_$Create$();
611
611
  var _iterator__ex2g4s = tmp0.t();
612
612
  while (_iterator__ex2g4s.u()) {
613
613
  var element = _iterator__ex2g4s.v();
614
- if (element.a5a_1.c5a(this.o5b_1)) {
614
+ if (element.x59_1.z59(this.l5b_1)) {
615
615
  destination.j1(element);
616
616
  }
617
617
  }
@@ -620,7 +620,7 @@
620
620
  var _iterator__ex2g4s_0 = destination.t();
621
621
  while (_iterator__ex2g4s_0.u()) {
622
622
  var item = _iterator__ex2g4s_0.v();
623
- destination_0.j1(item.y59_1);
623
+ destination_0.j1(item.v59_1);
624
624
  }
625
625
 
626
626
  var tmp_1;
@@ -633,16 +633,16 @@
633
633
  var tmp0_elvis_lhs = tmp_1;
634
634
  var tmp_2;
635
635
  if (tmp0_elvis_lhs == null) {
636
- this.k5b_1;
637
- get_LOGGER().i2q('None of the registered converters match response with Content-Type=' + this.o5b_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.l5b_1.toString() + '.'));
636
+ this.h5b_1;
637
+ get_LOGGER().f2q('None of the registered converters match response with Content-Type=' + this.l5b_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.i5b_1.toString() + '.'));
638
638
  return null;
639
639
  } else {
640
640
  tmp_2 = tmp0_elvis_lhs;
641
641
  }
642
642
 
643
643
  var suitableConverters = tmp_2;
644
- this.d9_1 = 1;
645
- suspendResult = deserialize(suitableConverters, this.n5b_1, this.m5b_1, this.p5b_1, this);
644
+ this.a9_1 = 1;
645
+ suspendResult = deserialize(suitableConverters, this.k5b_1, this.j5b_1, this.m5b_1, this);
646
646
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
647
647
  return suspendResult;
648
648
  }
@@ -651,20 +651,20 @@
651
651
  case 1:
652
652
  var result = suspendResult;
653
653
  if (!isInterface(result, ByteReadChannel)) {
654
- get_LOGGER().i2q('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.l5b_1.toString() + '.');
654
+ get_LOGGER().f2q('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.i5b_1.toString() + '.');
655
655
  }
656
656
 
657
657
  return result;
658
658
  case 2:
659
- throw this.g9_1;
659
+ throw this.d9_1;
660
660
  }
661
661
  } catch ($p) {
662
662
  var e = $p;
663
- if (this.e9_1 === 2) {
663
+ if (this.b9_1 === 2) {
664
664
  throw e;
665
665
  } else {
666
- this.d9_1 = this.e9_1;
667
- this.g9_1 = e;
666
+ this.a9_1 = this.b9_1;
667
+ this.d9_1 = e;
668
668
  }
669
669
  }
670
670
  while (true);
@@ -674,7 +674,7 @@
674
674
  if (!properties_initialized_ContentNegotiation_kt_1ayduy) {
675
675
  properties_initialized_ContentNegotiation_kt_1ayduy = true;
676
676
  LOGGER = KtorSimpleLogger('io.ktor.client.plugins.contentnegotiation.ContentNegotiation');
677
- DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().ic(), PrimitiveClasses_getInstance().ec(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
677
+ DefaultCommonIgnoredTypes = setOf([PrimitiveClasses_getInstance().fc(), PrimitiveClasses_getInstance().bc(), getKClass(HttpStatusCode), getKClass(ByteReadChannel), getKClass(OutgoingContent), getKClass(ClientSSESession), getKClass(ClientSSESessionWithDeserialization)]);
678
678
  // Inline function 'io.ktor.util.AttributeKey' call
679
679
  var name = 'ExcludedContentTypesAttr';
680
680
  // Inline function 'io.ktor.util.reflect.typeInfo' call
@@ -702,12 +702,12 @@
702
702
  }
703
703
  function JsonContentTypeMatcher() {
704
704
  }
705
- protoOf(JsonContentTypeMatcher).c5a = function (contentType) {
706
- if (contentType.u2s(Application_getInstance().a2r_1)) {
705
+ protoOf(JsonContentTypeMatcher).z59 = function (contentType) {
706
+ if (contentType.r2s(Application_getInstance().x2q_1)) {
707
707
  return true;
708
708
  }
709
- var value = contentType.t2s().toString();
710
- return Application_getInstance().u2r(value) && endsWith(value, '+json', true);
709
+ var value = contentType.q2s().toString();
710
+ return Application_getInstance().r2r(value) && endsWith(value, '+json', true);
711
711
  };
712
712
  var JsonContentTypeMatcher_instance;
713
713
  function JsonContentTypeMatcher_getInstance() {
@@ -727,7 +727,7 @@
727
727
  }
728
728
  }
729
729
  //region block: post-declaration
730
- protoOf(ContentNegotiationConfig).c3b = register$default;
730
+ protoOf(ContentNegotiationConfig).z3a = register$default;
731
731
  //endregion
732
732
  //region block: init
733
733
  JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();