@doordeck/doordeck-headless-sdk 0.78.0 → 0.80.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.
Files changed (27) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1343 -1343
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
  4. package/kotlin/doordeck-sdk.d.ts +4 -0
  5. package/kotlin/doordeck-sdk.js +11570 -11569
  6. package/kotlin/kotlin-kotlin-stdlib.js +2786 -2285
  7. package/kotlin/kotlinx-atomicfu.js +19 -19
  8. package/kotlin/kotlinx-coroutines-core.js +2810 -2194
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +198 -2
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +536 -463
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1939 -1939
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1684
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +3455 -3134
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +540 -438
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +372 -271
  16. package/kotlin/ktor-ktor-http-ktor-http-cio.js +2017 -0
  17. package/kotlin/ktor-ktor-http.js +1012 -906
  18. package/kotlin/ktor-ktor-io.js +1853 -859
  19. package/kotlin/ktor-ktor-shared-ktor-events.js +13 -13
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +282 -282
  22. package/kotlin/ktor-ktor-shared-ktor-serialization.js +137 -137
  23. package/kotlin/ktor-ktor-shared-ktor-websockets.js +57 -57
  24. package/kotlin/ktor-ktor-utils.js +758 -669
  25. package/package.json +2 -2
  26. package/kotlin/kotlin-kotlinx-atomicfu-runtime.js +0 -6
  27. package/kotlin/ktor-ktor-client-ktor-client-js.js +0 -6
@@ -0,0 +1,2017 @@
1
+ (function (_, kotlin_kotlin, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring, kotlin_org_jetbrains_kotlinx_kotlinx_io_core) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var Long = kotlin_kotlin.$_$.ff;
6
+ var VOID = kotlin_kotlin.$_$.h;
7
+ var protoOf = kotlin_kotlin.$_$.sb;
8
+ var MultiPartData = kotlin_io_ktor_ktor_http.$_$.o;
9
+ var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
10
+ var initMetadataForClass = kotlin_kotlin.$_$.ra;
11
+ var NotImplementedError = kotlin_kotlin.$_$.hf;
12
+ var Unit_instance = kotlin_kotlin.$_$.j5;
13
+ var toString = kotlin_kotlin.$_$.wb;
14
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
15
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
16
+ var DefaultPool = kotlin_io_ktor_ktor_io.$_$.h1;
17
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s2;
18
+ var endsWith = kotlin_kotlin.$_$.tc;
19
+ var charSequenceLength = kotlin_kotlin.$_$.fa;
20
+ var charSequenceGet = kotlin_kotlin.$_$.ea;
21
+ var Char = kotlin_kotlin.$_$.ve;
22
+ var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.t2;
23
+ var contains = kotlin_kotlin.$_$.oc;
24
+ var charSequenceSubSequence = kotlin_kotlin.$_$.ga;
25
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.y2;
26
+ var IllegalStateException = kotlin_kotlin.$_$.ef;
27
+ var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.z1;
28
+ var captureStack = kotlin_kotlin.$_$.ba;
29
+ var CoroutineImpl = kotlin_kotlin.$_$.t9;
30
+ var readUTF8LineTo = kotlin_io_ktor_ktor_io.$_$.e;
31
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d9;
32
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
33
+ var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.g;
34
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.ta;
35
+ var setOf = kotlin_kotlin.$_$.h8;
36
+ var Companion_getInstance = kotlin_io_ktor_ktor_io.$_$.n;
37
+ var LineEndingMode__plus_impl_ttpz2j = kotlin_io_ktor_ktor_io.$_$.k;
38
+ var listOf = kotlin_kotlin.$_$.u7;
39
+ var MultiPart_getInstance = kotlin_io_ktor_ktor_http.$_$.d;
40
+ var ByteString_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.a;
41
+ var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
42
+ var toString_0 = kotlin_kotlin.$_$.ge;
43
+ var toByte = kotlin_kotlin.$_$.tb;
44
+ var copyOfRange = kotlin_kotlin.$_$.k6;
45
+ var produce = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
46
+ var startsWith = kotlin_kotlin.$_$.sd;
47
+ var readUntil = kotlin_io_ktor_ktor_io.$_$.f;
48
+ var THROW_CCE = kotlin_kotlin.$_$.lf;
49
+ var WriterScope = kotlin_io_ktor_ktor_io.$_$.m1;
50
+ var initMetadataForLambda = kotlin_kotlin.$_$.wa;
51
+ var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
52
+ var isInterface = kotlin_kotlin.$_$.gb;
53
+ var counted = kotlin_io_ktor_ktor_io.$_$.q1;
54
+ var writer = kotlin_io_ktor_ktor_io.$_$.u1;
55
+ var readRemaining = kotlin_io_ktor_ktor_io.$_$.d;
56
+ var get_remaining = kotlin_io_ktor_ktor_io.$_$.a1;
57
+ var skipIfFound = kotlin_io_ktor_ktor_io.$_$.g;
58
+ var ByteChannel = kotlin_io_ktor_ktor_io.$_$.j1;
59
+ var CompletableDeferred = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
60
+ var CancellationException_init_$Create$ = kotlin_kotlin.$_$.d1;
61
+ var close = kotlin_io_ktor_ktor_io.$_$.p1;
62
+ var readPacket = kotlin_io_ktor_ktor_io.$_$.c;
63
+ var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
64
+ var copyTo = kotlin_io_ktor_ktor_io.$_$.a;
65
+ var toLong = kotlin_kotlin.$_$.ub;
66
+ var toByteArray = kotlin_io_ktor_ktor_io.$_$.c1;
67
+ var ByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.c;
68
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.y;
69
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
70
+ var fillArrayVal = kotlin_kotlin.$_$.la;
71
+ var compareTo = kotlin_kotlin.$_$.ha;
72
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.g2;
73
+ var Collection = kotlin_kotlin.$_$.l5;
74
+ var emptyList = kotlin_kotlin.$_$.y6;
75
+ var initMetadataForCompanion = kotlin_kotlin.$_$.sa;
76
+ var ensureNotNull = kotlin_kotlin.$_$.dg;
77
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.i1;
78
+ var isCharSequence = kotlin_kotlin.$_$.cb;
79
+ var getStringHashCode = kotlin_kotlin.$_$.pa;
80
+ var CharSequence = kotlin_kotlin.$_$.ue;
81
+ var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.d2;
82
+ var NoPoolImpl = kotlin_io_ktor_ktor_io.$_$.i1;
83
+ var charArray = kotlin_kotlin.$_$.da;
84
+ var NumberFormatException_init_$Create$ = kotlin_kotlin.$_$.h2;
85
+ var toString_1 = kotlin_kotlin.$_$.z2;
86
+ var Companion_getInstance_0 = kotlin_io_ktor_ktor_http.$_$.h;
87
+ var numberRangeToNumber = kotlin_kotlin.$_$.nb;
88
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.e6;
89
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
90
+ var numberToLong = kotlin_kotlin.$_$.qb;
91
+ var toLongArray = kotlin_kotlin.$_$.t8;
92
+ var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.w2;
93
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.v2;
94
+ var toByteArray_0 = kotlin_kotlin.$_$.o8;
95
+ var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
96
+ var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
97
+ var isWhitespace = kotlin_kotlin.$_$.cd;
98
+ //endregion
99
+ //region block: pre-declaration
100
+ initMetadataForClass(CIOMultipartDataBase, 'CIOMultipartDataBase', VOID, VOID, [MultiPartData, CoroutineScope], [0, 1]);
101
+ initMetadataForClass(HttpHeadersMap, 'HttpHeadersMap');
102
+ initMetadataForClass(IntArrayPool$1, VOID, VOID, DefaultPool);
103
+ initMetadataForClass(ParserException, 'ParserException', VOID, IllegalStateException);
104
+ initMetadataForCoroutine($parseHeadersCOROUTINE$4, CoroutineImpl);
105
+ initMetadataForClass(MultipartEvent, 'MultipartEvent');
106
+ initMetadataForClass(Preamble, 'Preamble', VOID, MultipartEvent);
107
+ initMetadataForClass(MultipartPart, 'MultipartPart', VOID, MultipartEvent);
108
+ initMetadataForClass(Epilogue, 'Epilogue', VOID, MultipartEvent);
109
+ initMetadataForLambda(parseMultipart$slambda$slambda, CoroutineImpl, VOID, [1]);
110
+ initMetadataForLambda(parseMultipart$slambda, CoroutineImpl, VOID, [1]);
111
+ initMetadataForCoroutine($parsePartHeadersImplCOROUTINE$5, CoroutineImpl);
112
+ initMetadataForCoroutine($parsePartBodyImplCOROUTINE$6, CoroutineImpl);
113
+ initMetadataForCoroutine($skipIfFoundReadCountCOROUTINE$7, CoroutineImpl);
114
+ initMetadataForClass(Node, 'Node');
115
+ initMetadataForCompanion(Companion);
116
+ initMetadataForClass(AsciiCharTree, 'AsciiCharTree');
117
+ initMetadataForClass(SubSequenceImpl, 'SubSequenceImpl', VOID, VOID, [CharSequence]);
118
+ initMetadataForClass(CharArrayBuilder, 'CharArrayBuilder', CharArrayBuilder, VOID, [CharSequence]);
119
+ initMetadataForClass(CharArrayPool$1, VOID, VOID, NoPoolImpl);
120
+ initMetadataForClass(CharArrayPool$2, VOID, VOID, DefaultPool);
121
+ initMetadataForClass(UnsupportedMediaTypeExceptionCIO, 'UnsupportedMediaTypeExceptionCIO', VOID, IOException);
122
+ initMetadataForClass(MutableRange, 'MutableRange');
123
+ //endregion
124
+ function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
125
+ formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
126
+ this.o2y_1 = coroutineContext;
127
+ this.p2y_1 = null;
128
+ this.q2y_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
129
+ }
130
+ protoOf(CIOMultipartDataBase).ho = function () {
131
+ return this.o2y_1;
132
+ };
133
+ function get_EMPTY_INT_LIST() {
134
+ _init_properties_HttpHeadersMap_kt__hwatby();
135
+ return EMPTY_INT_LIST;
136
+ }
137
+ var EMPTY_INT_LIST;
138
+ function get_IntArrayPool() {
139
+ _init_properties_HttpHeadersMap_kt__hwatby();
140
+ return IntArrayPool;
141
+ }
142
+ var IntArrayPool;
143
+ function HttpHeadersMap(builder) {
144
+ this.r2y_1 = builder;
145
+ this.s2y_1 = 0;
146
+ this.t2y_1 = get_IntArrayPool().y1t();
147
+ }
148
+ protoOf(HttpHeadersMap).u2y = function (nameHash, valueHash, nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
149
+ var base = imul(this.s2y_1, 8);
150
+ var array = this.t2y_1;
151
+ if (base >= this.t2y_1.length) {
152
+ // Inline function 'kotlin.TODO' call
153
+ var reason = 'Implement headers overflow';
154
+ throw new NotImplementedError('An operation is not implemented: ' + reason);
155
+ }
156
+ array[base + 0 | 0] = nameHash;
157
+ array[base + 1 | 0] = valueHash;
158
+ array[base + 2 | 0] = nameStartIndex;
159
+ array[base + 3 | 0] = nameEndIndex;
160
+ array[base + 4 | 0] = valueStartIndex;
161
+ array[base + 5 | 0] = valueEndIndex;
162
+ array[base + 6 | 0] = -1;
163
+ array[base + 7 | 0] = -1;
164
+ this.s2y_1 = this.s2y_1 + 1 | 0;
165
+ };
166
+ protoOf(HttpHeadersMap).n2f = function (name) {
167
+ var nameHash = hashCodeLowerCase(name);
168
+ var inductionVariable = 0;
169
+ var last = this.s2y_1;
170
+ if (inductionVariable < last)
171
+ do {
172
+ var i = inductionVariable;
173
+ inductionVariable = inductionVariable + 1 | 0;
174
+ var offset = imul(i, 8);
175
+ if (this.t2y_1[offset] === nameHash) {
176
+ return this.r2y_1.c(this.t2y_1[offset + 4 | 0], this.t2y_1[offset + 5 | 0]);
177
+ }
178
+ }
179
+ while (inductionVariable < last);
180
+ return null;
181
+ };
182
+ protoOf(HttpHeadersMap).c2z = function (idx) {
183
+ // Inline function 'kotlin.require' call
184
+ // Inline function 'kotlin.require' call
185
+ if (!(idx >= 0)) {
186
+ // Inline function 'kotlin.require.<anonymous>' call
187
+ var message = 'Failed requirement.';
188
+ throw IllegalArgumentException_init_$Create$(toString(message));
189
+ }
190
+ // Inline function 'kotlin.require' call
191
+ // Inline function 'kotlin.require' call
192
+ if (!(idx < this.s2y_1)) {
193
+ // Inline function 'kotlin.require.<anonymous>' call
194
+ var message_0 = 'Failed requirement.';
195
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
196
+ }
197
+ var offset = imul(idx, 8);
198
+ var array = this.t2y_1;
199
+ var nameStart = array[offset + 2 | 0];
200
+ var nameEnd = array[offset + 3 | 0];
201
+ return this.r2y_1.c(nameStart, nameEnd);
202
+ };
203
+ protoOf(HttpHeadersMap).d2z = function (idx) {
204
+ // Inline function 'kotlin.require' call
205
+ // Inline function 'kotlin.require' call
206
+ if (!(idx >= 0)) {
207
+ // Inline function 'kotlin.require.<anonymous>' call
208
+ var message = 'Failed requirement.';
209
+ throw IllegalArgumentException_init_$Create$(toString(message));
210
+ }
211
+ // Inline function 'kotlin.require' call
212
+ // Inline function 'kotlin.require' call
213
+ if (!(idx < this.s2y_1)) {
214
+ // Inline function 'kotlin.require.<anonymous>' call
215
+ var message_0 = 'Failed requirement.';
216
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
217
+ }
218
+ var offset = imul(idx, 8);
219
+ var array = this.t2y_1;
220
+ var nameStart = array[offset + 4 | 0];
221
+ var nameEnd = array[offset + 5 | 0];
222
+ return this.r2y_1.c(nameStart, nameEnd);
223
+ };
224
+ protoOf(HttpHeadersMap).e2z = function () {
225
+ this.s2y_1 = 0;
226
+ var indexes = this.t2y_1;
227
+ this.t2y_1 = get_EMPTY_INT_LIST();
228
+ if (!(indexes === get_EMPTY_INT_LIST())) {
229
+ get_IntArrayPool().z1t(indexes);
230
+ }
231
+ };
232
+ protoOf(HttpHeadersMap).toString = function () {
233
+ // Inline function 'kotlin.text.buildString' call
234
+ // Inline function 'kotlin.apply' call
235
+ var this_0 = StringBuilder_init_$Create$();
236
+ // Inline function 'io.ktor.http.cio.HttpHeadersMap.toString.<anonymous>' call
237
+ dumpTo(this, '', this_0);
238
+ return this_0.toString();
239
+ };
240
+ function dumpTo(_this__u8e3s4, indent, out) {
241
+ _init_properties_HttpHeadersMap_kt__hwatby();
242
+ var inductionVariable = 0;
243
+ var last = _this__u8e3s4.s2y_1;
244
+ if (inductionVariable < last)
245
+ do {
246
+ var i = inductionVariable;
247
+ inductionVariable = inductionVariable + 1 | 0;
248
+ out.l(indent);
249
+ out.l(_this__u8e3s4.c2z(i));
250
+ out.l(' => ');
251
+ out.l(_this__u8e3s4.d2z(i));
252
+ out.l('\n');
253
+ }
254
+ while (inductionVariable < last);
255
+ }
256
+ function IntArrayPool$1() {
257
+ DefaultPool.call(this, 1000);
258
+ }
259
+ protoOf(IntArrayPool$1).r1t = function () {
260
+ return new Int32Array(4096);
261
+ };
262
+ var properties_initialized_HttpHeadersMap_kt_kotj4w;
263
+ function _init_properties_HttpHeadersMap_kt__hwatby() {
264
+ if (!properties_initialized_HttpHeadersMap_kt_kotj4w) {
265
+ properties_initialized_HttpHeadersMap_kt_kotj4w = true;
266
+ EMPTY_INT_LIST = new Int32Array(0);
267
+ IntArrayPool = new IntArrayPool$1();
268
+ }
269
+ }
270
+ function get_hostForbiddenSymbols() {
271
+ _init_properties_HttpParser_kt__gbdom1();
272
+ return hostForbiddenSymbols;
273
+ }
274
+ var hostForbiddenSymbols;
275
+ function get_httpLineEndings() {
276
+ _init_properties_HttpParser_kt__gbdom1();
277
+ return httpLineEndings;
278
+ }
279
+ var httpLineEndings;
280
+ var versions;
281
+ function parseHeaders(input, builder, range, $completion) {
282
+ range = range === VOID ? new MutableRange(0, 0) : range;
283
+ var tmp = new $parseHeadersCOROUTINE$4(input, builder, range, $completion);
284
+ tmp.i9_1 = Unit_instance;
285
+ tmp.j9_1 = null;
286
+ return tmp.o9();
287
+ }
288
+ function parseHeaderName(text, range) {
289
+ _init_properties_HttpParser_kt__gbdom1();
290
+ var index = range.u2z_1;
291
+ var end = range.v2z_1;
292
+ while (index < end) {
293
+ var ch = text.b(index);
294
+ if (ch === _Char___init__impl__6a9atx(58) && !(index === range.u2z_1)) {
295
+ range.u2z_1 = index + 1 | 0;
296
+ return index;
297
+ }
298
+ if (isDelimiter(ch)) {
299
+ parseHeaderNameFailed(text, index, range.u2z_1, ch);
300
+ }
301
+ index = index + 1 | 0;
302
+ }
303
+ noColonFound(text, range);
304
+ }
305
+ function parseHeaderValue(text, range) {
306
+ _init_properties_HttpParser_kt__gbdom1();
307
+ var start = range.u2z_1;
308
+ var end = range.v2z_1;
309
+ var index = start;
310
+ index = skipSpacesAndHorizontalTabs(text, index, end);
311
+ if (index >= end) {
312
+ range.u2z_1 = end;
313
+ return Unit_instance;
314
+ }
315
+ var valueStart = index;
316
+ var valueLastIndex = index;
317
+ while (index < end) {
318
+ var ch = text.b(index);
319
+ if (ch !== _Char___init__impl__6a9atx(9) && ch !== _Char___init__impl__6a9atx(32))
320
+ if (ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(10)) {
321
+ characterIsNotAllowed(text, ch);
322
+ } else
323
+ valueLastIndex = index;
324
+ index = index + 1 | 0;
325
+ }
326
+ range.u2z_1 = valueStart;
327
+ range.v2z_1 = valueLastIndex + 1 | 0;
328
+ }
329
+ function validateHostHeader(host) {
330
+ _init_properties_HttpParser_kt__gbdom1();
331
+ if (endsWith(host, ':')) {
332
+ throw new ParserException("Host header with ':' should contains port: " + toString(host));
333
+ }
334
+ var tmp$ret$1;
335
+ $l$block: {
336
+ // Inline function 'kotlin.text.any' call
337
+ var inductionVariable = 0;
338
+ while (inductionVariable < charSequenceLength(host)) {
339
+ var element = charSequenceGet(host, inductionVariable);
340
+ inductionVariable = inductionVariable + 1 | 0;
341
+ // Inline function 'io.ktor.http.cio.validateHostHeader.<anonymous>' call
342
+ if (get_hostForbiddenSymbols().x1(new Char(element))) {
343
+ tmp$ret$1 = true;
344
+ break $l$block;
345
+ }
346
+ }
347
+ tmp$ret$1 = false;
348
+ }
349
+ if (tmp$ret$1) {
350
+ throw new ParserException('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
351
+ }
352
+ }
353
+ function isDelimiter(ch) {
354
+ _init_properties_HttpParser_kt__gbdom1();
355
+ return Char__compareTo_impl_ypi4mb(ch, _Char___init__impl__6a9atx(32)) <= 0 || contains('"(),/:;<=>?@[\\]{}', ch);
356
+ }
357
+ function parseHeaderNameFailed(text, index, start, ch) {
358
+ _init_properties_HttpParser_kt__gbdom1();
359
+ if (ch === _Char___init__impl__6a9atx(58)) {
360
+ throw new ParserException('Empty header names are not allowed as per RFC7230.');
361
+ }
362
+ if (index === start) {
363
+ throw new ParserException('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
364
+ }
365
+ characterIsNotAllowed(text, ch);
366
+ }
367
+ function noColonFound(text, range) {
368
+ _init_properties_HttpParser_kt__gbdom1();
369
+ var tmp1 = range.u2z_1;
370
+ // Inline function 'kotlin.text.substring' call
371
+ var endIndex = range.v2z_1;
372
+ var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp1, endIndex));
373
+ throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
374
+ }
375
+ function characterIsNotAllowed(text, ch) {
376
+ _init_properties_HttpParser_kt__gbdom1();
377
+ // Inline function 'kotlin.code' call
378
+ var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
379
+ throw new ParserException('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
380
+ }
381
+ function ParserException(message) {
382
+ IllegalStateException_init_$Init$(message, this);
383
+ captureStack(this, ParserException);
384
+ }
385
+ function $parseHeadersCOROUTINE$4(input, builder, range, resultContinuation) {
386
+ CoroutineImpl.call(this, resultContinuation);
387
+ this.q2z_1 = input;
388
+ this.r2z_1 = builder;
389
+ this.s2z_1 = range;
390
+ }
391
+ protoOf($parseHeadersCOROUTINE$4).o9 = function () {
392
+ var suspendResult = this.i9_1;
393
+ $sm: do
394
+ try {
395
+ var tmp = this.g9_1;
396
+ switch (tmp) {
397
+ case 0:
398
+ this.h9_1 = 7;
399
+ this.t2z_1 = new HttpHeadersMap(this.r2z_1);
400
+ this.h9_1 = 6;
401
+ this.g9_1 = 1;
402
+ continue $sm;
403
+ case 1:
404
+ if (!true) {
405
+ this.g9_1 = 5;
406
+ continue $sm;
407
+ }
408
+
409
+ this.g9_1 = 2;
410
+ suspendResult = readUTF8LineTo(this.q2z_1, this.r2z_1, 8192, get_httpLineEndings(), this);
411
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
412
+ return suspendResult;
413
+ }
414
+
415
+ continue $sm;
416
+ case 2:
417
+ var ARGUMENT = suspendResult;
418
+ if (!ARGUMENT) {
419
+ this.t2z_1.e2z();
420
+ return null;
421
+ } else {
422
+ this.g9_1 = 3;
423
+ continue $sm;
424
+ }
425
+
426
+ case 3:
427
+ this.s2z_1.v2z_1 = this.r2z_1.b2z_1;
428
+ var rangeLength = this.s2z_1.v2z_1 - this.s2z_1.u2z_1 | 0;
429
+ if (rangeLength === 0) {
430
+ this.g9_1 = 5;
431
+ continue $sm;
432
+ } else {
433
+ this.g9_1 = 4;
434
+ continue $sm;
435
+ }
436
+
437
+ case 4:
438
+ if (rangeLength >= 8192) {
439
+ var message = 'Header line length limit exceeded';
440
+ throw IllegalStateException_init_$Create$(toString(message));
441
+ }
442
+
443
+ var nameStart = this.s2z_1.u2z_1;
444
+ var nameEnd = parseHeaderName(this.r2z_1, this.s2z_1);
445
+ var nameHash = hashCodeLowerCase(this.r2z_1, nameStart, nameEnd);
446
+ var headerEnd = this.s2z_1.v2z_1;
447
+ parseHeaderValue(this.r2z_1, this.s2z_1);
448
+ var valueStart = this.s2z_1.u2z_1;
449
+ var valueEnd = this.s2z_1.v2z_1;
450
+ var valueHash = hashCodeLowerCase(this.r2z_1, valueStart, valueEnd);
451
+ this.s2z_1.u2z_1 = headerEnd;
452
+ this.t2z_1.u2y(nameHash, valueHash, nameStart, nameEnd, valueStart, valueEnd);
453
+ this.g9_1 = 1;
454
+ continue $sm;
455
+ case 5:
456
+ var host = this.t2z_1.n2f(HttpHeaders_getInstance().b2p_1);
457
+ if (!(host == null)) {
458
+ validateHostHeader(host);
459
+ }
460
+
461
+ return this.t2z_1;
462
+ case 6:
463
+ this.h9_1 = 7;
464
+ var tmp_0 = this.j9_1;
465
+ if (tmp_0 instanceof Error) {
466
+ var t = this.j9_1;
467
+ this.t2z_1.e2z();
468
+ throw t;
469
+ } else {
470
+ throw this.j9_1;
471
+ }
472
+
473
+ case 7:
474
+ throw this.j9_1;
475
+ }
476
+ } catch ($p) {
477
+ var e = $p;
478
+ if (this.h9_1 === 7) {
479
+ throw e;
480
+ } else {
481
+ this.g9_1 = this.h9_1;
482
+ this.j9_1 = e;
483
+ }
484
+ }
485
+ while (true);
486
+ };
487
+ var properties_initialized_HttpParser_kt_uedryv;
488
+ function _init_properties_HttpParser_kt__gbdom1() {
489
+ if (!properties_initialized_HttpParser_kt_uedryv) {
490
+ properties_initialized_HttpParser_kt_uedryv = true;
491
+ hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
492
+ httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().e1n_1, Companion_getInstance().d1n_1);
493
+ versions = Companion_instance.w2z(listOf(['HTTP/1.0', 'HTTP/1.1']));
494
+ }
495
+ }
496
+ function get_CrLf() {
497
+ _init_properties_Multipart_kt__ato98a();
498
+ return CrLf;
499
+ }
500
+ var CrLf;
501
+ function get_PrefixString() {
502
+ _init_properties_Multipart_kt__ato98a();
503
+ return PrefixString;
504
+ }
505
+ var PrefixString;
506
+ function Preamble(body) {
507
+ MultipartEvent.call(this);
508
+ this.x2z_1 = body;
509
+ }
510
+ function MultipartPart(headers, body) {
511
+ MultipartEvent.call(this);
512
+ this.y2z_1 = headers;
513
+ this.z2z_1 = body;
514
+ }
515
+ function Epilogue(body) {
516
+ MultipartEvent.call(this);
517
+ this.a30_1 = body;
518
+ }
519
+ function MultipartEvent() {
520
+ }
521
+ function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
522
+ maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
523
+ _init_properties_Multipart_kt__ato98a();
524
+ if (!MultiPart_getInstance().r2m(contentType)) {
525
+ throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
526
+ }
527
+ var boundaryByteBuffer = parseBoundaryInternal(contentType);
528
+ var boundaryBytes = ByteString_init_$Create$(boundaryByteBuffer);
529
+ return parseMultipart_0(_this__u8e3s4, boundaryBytes, input, contentLength, maxPartSize);
530
+ }
531
+ function parseBoundaryInternal(contentType) {
532
+ _init_properties_Multipart_kt__ato98a();
533
+ var boundaryParameter = findBoundary(contentType);
534
+ if (boundaryParameter === -1) {
535
+ throw IOException_init_$Create$("Failed to parse multipart: Content-Type's boundary parameter is missing");
536
+ }
537
+ var boundaryStart = boundaryParameter + 9 | 0;
538
+ var boundaryBytes = new Int8Array(74);
539
+ var position = {_v: 0};
540
+ parseBoundaryInternal$put(position, boundaryBytes, 13);
541
+ parseBoundaryInternal$put(position, boundaryBytes, 10);
542
+ parseBoundaryInternal$put(position, boundaryBytes, 45);
543
+ parseBoundaryInternal$put(position, boundaryBytes, 45);
544
+ var state = 0;
545
+ var inductionVariable = boundaryStart;
546
+ var last = charSequenceLength(contentType);
547
+ if (inductionVariable < last)
548
+ loop: do {
549
+ var i = inductionVariable;
550
+ inductionVariable = inductionVariable + 1 | 0;
551
+ var ch = charSequenceGet(contentType, i);
552
+ // Inline function 'kotlin.code' call
553
+ var v = Char__toInt_impl_vasixd(ch) & 65535;
554
+ if ((v & 65535) > 127) {
555
+ throw IOException_init_$Create$('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
556
+ }
557
+ switch (state) {
558
+ case 0:
559
+ if (ch !== _Char___init__impl__6a9atx(32))
560
+ if (ch === _Char___init__impl__6a9atx(34)) {
561
+ state = 2;
562
+ } else if (ch === _Char___init__impl__6a9atx(59) || ch === _Char___init__impl__6a9atx(44)) {
563
+ break loop;
564
+ } else {
565
+ state = 1;
566
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
567
+ }
568
+
569
+ break;
570
+ case 1:
571
+ if (ch === _Char___init__impl__6a9atx(32) || ch === _Char___init__impl__6a9atx(44) || ch === _Char___init__impl__6a9atx(59)) {
572
+ break loop;
573
+ } else {
574
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
575
+ }
576
+
577
+ break;
578
+ case 2:
579
+ if (ch === _Char___init__impl__6a9atx(92)) {
580
+ state = 3;
581
+ } else if (ch === _Char___init__impl__6a9atx(34)) {
582
+ break loop;
583
+ } else {
584
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
585
+ }
586
+
587
+ break;
588
+ case 3:
589
+ parseBoundaryInternal$put(position, boundaryBytes, toByte(v));
590
+ state = 2;
591
+ break;
592
+ }
593
+ }
594
+ while (inductionVariable < last);
595
+ if (position._v === 4) {
596
+ throw IOException_init_$Create$('Empty multipart boundary is not allowed');
597
+ }
598
+ return copyOfRange(boundaryBytes, 0, position._v);
599
+ }
600
+ function parseMultipart_0(_this__u8e3s4, boundaryPrefixed, input, totalLength, maxPartSize) {
601
+ _init_properties_Multipart_kt__ato98a();
602
+ return produce(_this__u8e3s4, VOID, VOID, parseMultipart$slambda_0(input, boundaryPrefixed, maxPartSize, totalLength, null));
603
+ }
604
+ function findBoundary(contentType) {
605
+ _init_properties_Multipart_kt__ato98a();
606
+ var state = 0;
607
+ var paramNameCount = 0;
608
+ var inductionVariable = 0;
609
+ var last = charSequenceLength(contentType) - 1 | 0;
610
+ if (inductionVariable <= last)
611
+ do {
612
+ var i = inductionVariable;
613
+ inductionVariable = inductionVariable + 1 | 0;
614
+ var ch = charSequenceGet(contentType, i);
615
+ switch (state) {
616
+ case 0:
617
+ if (ch === _Char___init__impl__6a9atx(59)) {
618
+ state = 1;
619
+ paramNameCount = 0;
620
+ }
621
+
622
+ break;
623
+ case 1:
624
+ if (ch === _Char___init__impl__6a9atx(61)) {
625
+ state = 2;
626
+ } else if (ch === _Char___init__impl__6a9atx(59)) {
627
+ paramNameCount = 0;
628
+ } else if (ch === _Char___init__impl__6a9atx(44)) {
629
+ state = 0;
630
+ } else if (ch !== _Char___init__impl__6a9atx(32))
631
+ if (paramNameCount === 0 && startsWith(contentType, 'boundary=', i, true)) {
632
+ return i;
633
+ } else {
634
+ paramNameCount = paramNameCount + 1 | 0;
635
+ }
636
+
637
+ break;
638
+ case 2:
639
+ if (ch === _Char___init__impl__6a9atx(34))
640
+ state = 3;
641
+ else if (ch === _Char___init__impl__6a9atx(44))
642
+ state = 0;
643
+ else if (ch === _Char___init__impl__6a9atx(59)) {
644
+ state = 1;
645
+ paramNameCount = 0;
646
+ }
647
+
648
+ break;
649
+ case 3:
650
+ if (ch === _Char___init__impl__6a9atx(34)) {
651
+ state = 1;
652
+ paramNameCount = 0;
653
+ } else if (ch === _Char___init__impl__6a9atx(92)) {
654
+ state = 4;
655
+ }
656
+
657
+ break;
658
+ case 4:
659
+ state = 3;
660
+ break;
661
+ }
662
+ }
663
+ while (inductionVariable <= last);
664
+ return -1;
665
+ }
666
+ function parsePreambleImpl(boundary, input, output, limit, $completion) {
667
+ limit = limit === VOID ? new Long(-1, 2147483647) : limit;
668
+ return readUntil(input, boundary, output, limit, true, $completion);
669
+ }
670
+ function parsePartHeadersImpl(input, $completion) {
671
+ var tmp = new $parsePartHeadersImplCOROUTINE$5(input, $completion);
672
+ tmp.i9_1 = Unit_instance;
673
+ tmp.j9_1 = null;
674
+ return tmp.o9();
675
+ }
676
+ function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
677
+ var tmp = new $parsePartBodyImplCOROUTINE$6(boundaryPrefixed, input, output, headers, limit, $completion);
678
+ tmp.i9_1 = Unit_instance;
679
+ tmp.j9_1 = null;
680
+ return tmp.o9();
681
+ }
682
+ function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
683
+ var tmp = new $skipIfFoundReadCountCOROUTINE$7(_this__u8e3s4, prefix, $completion);
684
+ tmp.i9_1 = Unit_instance;
685
+ tmp.j9_1 = null;
686
+ return tmp.o9();
687
+ }
688
+ function throwLimitExceeded(actual, limit) {
689
+ _init_properties_Multipart_kt__ato98a();
690
+ throw IOException_init_$Create$('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
691
+ }
692
+ function parseBoundaryInternal$put(position, boundaryBytes, value) {
693
+ if (position._v >= boundaryBytes.length) {
694
+ throw IOException_init_$Create$("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
695
+ }
696
+ var _unary__edvuaz = position._v;
697
+ position._v = _unary__edvuaz + 1 | 0;
698
+ boundaryBytes[_unary__edvuaz] = value;
699
+ }
700
+ function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
701
+ this.w31_1 = $firstBoundary;
702
+ this.x31_1 = $countedInput;
703
+ CoroutineImpl.call(this, resultContinuation);
704
+ }
705
+ protoOf(parseMultipart$slambda$slambda).z31 = function ($this$writer, $completion) {
706
+ var tmp = this.a32($this$writer, $completion);
707
+ tmp.i9_1 = Unit_instance;
708
+ tmp.j9_1 = null;
709
+ return tmp.o9();
710
+ };
711
+ protoOf(parseMultipart$slambda$slambda).ca = function (p1, $completion) {
712
+ return this.z31(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
713
+ };
714
+ protoOf(parseMultipart$slambda$slambda).o9 = function () {
715
+ var suspendResult = this.i9_1;
716
+ $sm: do
717
+ try {
718
+ var tmp = this.g9_1;
719
+ switch (tmp) {
720
+ case 0:
721
+ this.h9_1 = 3;
722
+ this.g9_1 = 1;
723
+ suspendResult = parsePreambleImpl(this.w31_1, this.x31_1, this.y31_1.v1q_1, new Long(8193, 0), this);
724
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
725
+ return suspendResult;
726
+ }
727
+
728
+ continue $sm;
729
+ case 1:
730
+ this.g9_1 = 2;
731
+ suspendResult = this.y31_1.v1q_1.w1j(this);
732
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
733
+ return suspendResult;
734
+ }
735
+
736
+ continue $sm;
737
+ case 2:
738
+ return Unit_instance;
739
+ case 3:
740
+ throw this.j9_1;
741
+ }
742
+ } catch ($p) {
743
+ var e = $p;
744
+ if (this.h9_1 === 3) {
745
+ throw e;
746
+ } else {
747
+ this.g9_1 = this.h9_1;
748
+ this.j9_1 = e;
749
+ }
750
+ }
751
+ while (true);
752
+ };
753
+ protoOf(parseMultipart$slambda$slambda).a32 = function ($this$writer, completion) {
754
+ var i = new parseMultipart$slambda$slambda(this.w31_1, this.x31_1, completion);
755
+ i.y31_1 = $this$writer;
756
+ return i;
757
+ };
758
+ function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
759
+ var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
760
+ var l = function ($this$writer, $completion) {
761
+ return i.z31($this$writer, $completion);
762
+ };
763
+ l.$arity = 1;
764
+ return l;
765
+ }
766
+ function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
767
+ this.j32_1 = $input;
768
+ this.k32_1 = $boundaryPrefixed;
769
+ this.l32_1 = $maxPartSize;
770
+ this.m32_1 = $totalLength;
771
+ CoroutineImpl.call(this, resultContinuation);
772
+ }
773
+ protoOf(parseMultipart$slambda).e33 = function ($this$produce, $completion) {
774
+ var tmp = this.f33($this$produce, $completion);
775
+ tmp.i9_1 = Unit_instance;
776
+ tmp.j9_1 = null;
777
+ return tmp.o9();
778
+ };
779
+ protoOf(parseMultipart$slambda).ca = function (p1, $completion) {
780
+ return this.e33((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
781
+ };
782
+ protoOf(parseMultipart$slambda).o9 = function () {
783
+ var suspendResult = this.i9_1;
784
+ $sm: do
785
+ try {
786
+ var tmp = this.g9_1;
787
+ switch (tmp) {
788
+ case 0:
789
+ this.h9_1 = 23;
790
+ this.o32_1 = counted(this.j32_1);
791
+ this.p32_1 = this.o32_1.f1t();
792
+ this.q32_1 = this.k32_1.y1d(get_PrefixString().s());
793
+ this.g9_1 = 1;
794
+ suspendResult = readRemaining(writer(this.n32_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.q32_1, this.o32_1, null)).t1q_1, this);
795
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
796
+ return suspendResult;
797
+ }
798
+
799
+ continue $sm;
800
+ case 1:
801
+ this.r32_1 = suspendResult;
802
+ if (get_remaining(this.r32_1).e1(new Long(0, 0)) > 0) {
803
+ this.g9_1 = 2;
804
+ suspendResult = this.n32_1.v14(new Preamble(this.r32_1), this);
805
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
806
+ return suspendResult;
807
+ }
808
+ continue $sm;
809
+ } else {
810
+ this.g9_1 = 3;
811
+ continue $sm;
812
+ }
813
+
814
+ case 2:
815
+ this.g9_1 = 3;
816
+ continue $sm;
817
+ case 3:
818
+ this.g9_1 = 4;
819
+ continue $sm;
820
+ case 4:
821
+ if (!this.o32_1.t1j()) {
822
+ this.g9_1 = 5;
823
+ suspendResult = skipIfFound(this.o32_1, get_PrefixString(), this);
824
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
825
+ return suspendResult;
826
+ }
827
+ continue $sm;
828
+ } else {
829
+ this.s32_1 = false;
830
+ this.g9_1 = 6;
831
+ continue $sm;
832
+ }
833
+
834
+ case 5:
835
+ this.t32_1 = suspendResult;
836
+ this.s32_1 = !this.t32_1;
837
+ this.g9_1 = 6;
838
+ continue $sm;
839
+ case 6:
840
+ if (!this.s32_1) {
841
+ this.g9_1 = 13;
842
+ continue $sm;
843
+ }
844
+
845
+ this.g9_1 = 7;
846
+ suspendResult = skipIfFound(this.o32_1, get_CrLf(), this);
847
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
848
+ return suspendResult;
849
+ }
850
+
851
+ continue $sm;
852
+ case 7:
853
+ this.u32_1 = new ByteChannel();
854
+ this.v32_1 = CompletableDeferred();
855
+ this.w32_1 = new MultipartPart(this.v32_1, this.u32_1);
856
+ this.g9_1 = 8;
857
+ suspendResult = this.n32_1.v14(this.w32_1, this);
858
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
859
+ return suspendResult;
860
+ }
861
+
862
+ continue $sm;
863
+ case 8:
864
+ this.x32_1 = null;
865
+ this.h9_1 = 12;
866
+ this.g9_1 = 9;
867
+ suspendResult = parsePartHeadersImpl(this.o32_1, this);
868
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
869
+ return suspendResult;
870
+ }
871
+
872
+ continue $sm;
873
+ case 9:
874
+ this.x32_1 = suspendResult;
875
+ if (!this.v32_1.av(this.x32_1)) {
876
+ this.x32_1.e2z();
877
+ throw CancellationException_init_$Create$('Multipart processing has been cancelled');
878
+ }
879
+
880
+ this.g9_1 = 10;
881
+ suspendResult = parsePartBodyImpl(this.k32_1, this.o32_1, this.u32_1, this.x32_1, this.l32_1, this);
882
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
883
+ return suspendResult;
884
+ }
885
+
886
+ continue $sm;
887
+ case 10:
888
+ this.u32_1.p4();
889
+ this.h9_1 = 23;
890
+ this.g9_1 = 11;
891
+ continue $sm;
892
+ case 11:
893
+ this.h9_1 = 23;
894
+ this.g9_1 = 4;
895
+ continue $sm;
896
+ case 12:
897
+ this.h9_1 = 23;
898
+ var tmp_0 = this.j9_1;
899
+ if (tmp_0 instanceof Error) {
900
+ this.y32_1 = this.j9_1;
901
+ if (this.v32_1.cv(this.y32_1)) {
902
+ var tmp0_safe_receiver = this.x32_1;
903
+ if (tmp0_safe_receiver == null)
904
+ null;
905
+ else {
906
+ tmp0_safe_receiver.e2z();
907
+ }
908
+ }
909
+ close(this.u32_1, this.y32_1);
910
+ throw this.y32_1;
911
+ } else {
912
+ throw this.j9_1;
913
+ }
914
+
915
+ case 13:
916
+ this.g9_1 = 14;
917
+ suspendResult = skipIfFound(this.o32_1, get_CrLf(), this);
918
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
919
+ return suspendResult;
920
+ }
921
+
922
+ continue $sm;
923
+ case 14:
924
+ this.g9_1 = 15;
925
+ suspendResult = skipIfFound(this.o32_1, get_CrLf(), this);
926
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
927
+ return suspendResult;
928
+ }
929
+
930
+ continue $sm;
931
+ case 15:
932
+ if (!(this.m32_1 == null)) {
933
+ this.z32_1 = this.o32_1.f1t().a3(this.p32_1);
934
+ this.a33_1 = this.m32_1.a3(this.z32_1);
935
+ if (this.a33_1.e1(new Long(2147483647, 0)) > 0)
936
+ throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
937
+ if (this.a33_1.e1(new Long(0, 0)) > 0) {
938
+ this.g9_1 = 19;
939
+ suspendResult = readPacket(this.o32_1, this.a33_1.j1(), this);
940
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
941
+ return suspendResult;
942
+ }
943
+ continue $sm;
944
+ } else {
945
+ this.g9_1 = 21;
946
+ continue $sm;
947
+ }
948
+ } else {
949
+ this.g9_1 = 16;
950
+ suspendResult = readRemaining(this.o32_1, this);
951
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
952
+ return suspendResult;
953
+ }
954
+ continue $sm;
955
+ }
956
+
957
+ case 16:
958
+ this.b33_1 = suspendResult;
959
+ if (!this.b33_1.g1e()) {
960
+ this.g9_1 = 17;
961
+ suspendResult = this.n32_1.v14(new Epilogue(this.b33_1), this);
962
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
963
+ return suspendResult;
964
+ }
965
+ continue $sm;
966
+ } else {
967
+ this.g9_1 = 18;
968
+ continue $sm;
969
+ }
970
+
971
+ case 17:
972
+ this.g9_1 = 18;
973
+ continue $sm;
974
+ case 18:
975
+ this.g9_1 = 22;
976
+ continue $sm;
977
+ case 19:
978
+ this.c33_1 = suspendResult;
979
+ this.d33_1 = new Epilogue(this.c33_1);
980
+ this.g9_1 = 20;
981
+ suspendResult = this.n32_1.v14(this.d33_1, this);
982
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
983
+ return suspendResult;
984
+ }
985
+
986
+ continue $sm;
987
+ case 20:
988
+ this.g9_1 = 21;
989
+ continue $sm;
990
+ case 21:
991
+ this.g9_1 = 22;
992
+ continue $sm;
993
+ case 22:
994
+ return Unit_instance;
995
+ case 23:
996
+ throw this.j9_1;
997
+ }
998
+ } catch ($p) {
999
+ var e = $p;
1000
+ if (this.h9_1 === 23) {
1001
+ throw e;
1002
+ } else {
1003
+ this.g9_1 = this.h9_1;
1004
+ this.j9_1 = e;
1005
+ }
1006
+ }
1007
+ while (true);
1008
+ };
1009
+ protoOf(parseMultipart$slambda).f33 = function ($this$produce, completion) {
1010
+ var i = new parseMultipart$slambda(this.j32_1, this.k32_1, this.l32_1, this.m32_1, completion);
1011
+ i.n32_1 = $this$produce;
1012
+ return i;
1013
+ };
1014
+ function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
1015
+ var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
1016
+ var l = function ($this$produce, $completion) {
1017
+ return i.e33($this$produce, $completion);
1018
+ };
1019
+ l.$arity = 1;
1020
+ return l;
1021
+ }
1022
+ function $parsePartHeadersImplCOROUTINE$5(input, resultContinuation) {
1023
+ CoroutineImpl.call(this, resultContinuation);
1024
+ this.j30_1 = input;
1025
+ }
1026
+ protoOf($parsePartHeadersImplCOROUTINE$5).o9 = function () {
1027
+ var suspendResult = this.i9_1;
1028
+ $sm: do
1029
+ try {
1030
+ var tmp = this.g9_1;
1031
+ switch (tmp) {
1032
+ case 0:
1033
+ this.h9_1 = 3;
1034
+ this.k30_1 = new CharArrayBuilder();
1035
+ this.h9_1 = 2;
1036
+ this.g9_1 = 1;
1037
+ suspendResult = parseHeaders(this.j30_1, this.k30_1, VOID, this);
1038
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1039
+ return suspendResult;
1040
+ }
1041
+
1042
+ continue $sm;
1043
+ case 1:
1044
+ var tmp0_elvis_lhs = suspendResult;
1045
+ var tmp_0;
1046
+ if (tmp0_elvis_lhs == null) {
1047
+ throw EOFException_init_$Create$('Failed to parse multipart headers: unexpected end of stream');
1048
+ } else {
1049
+ tmp_0 = tmp0_elvis_lhs;
1050
+ }
1051
+
1052
+ return tmp_0;
1053
+ case 2:
1054
+ this.h9_1 = 3;
1055
+ var tmp_1 = this.j9_1;
1056
+ if (tmp_1 instanceof Error) {
1057
+ var t = this.j9_1;
1058
+ this.k30_1.e2z();
1059
+ throw t;
1060
+ } else {
1061
+ throw this.j9_1;
1062
+ }
1063
+
1064
+ case 3:
1065
+ throw this.j9_1;
1066
+ }
1067
+ } catch ($p) {
1068
+ var e = $p;
1069
+ if (this.h9_1 === 3) {
1070
+ throw e;
1071
+ } else {
1072
+ this.g9_1 = this.h9_1;
1073
+ this.j9_1 = e;
1074
+ }
1075
+ }
1076
+ while (true);
1077
+ };
1078
+ function $parsePartBodyImplCOROUTINE$6(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
1079
+ CoroutineImpl.call(this, resultContinuation);
1080
+ this.t30_1 = boundaryPrefixed;
1081
+ this.u30_1 = input;
1082
+ this.v30_1 = output;
1083
+ this.w30_1 = headers;
1084
+ this.x30_1 = limit;
1085
+ }
1086
+ protoOf($parsePartBodyImplCOROUTINE$6).o9 = function () {
1087
+ var suspendResult = this.i9_1;
1088
+ $sm: do
1089
+ try {
1090
+ var tmp = this.g9_1;
1091
+ switch (tmp) {
1092
+ case 0:
1093
+ this.h9_1 = 6;
1094
+ var tmp_0 = this;
1095
+ var tmp0_safe_receiver = this.w30_1.n2f('Content-Length');
1096
+ tmp_0.y30_1 = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
1097
+ if (this.y30_1 == null) {
1098
+ this.g9_1 = 3;
1099
+ suspendResult = readUntil(this.u30_1, this.t30_1, this.v30_1, this.x30_1, true, this);
1100
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1101
+ return suspendResult;
1102
+ }
1103
+ continue $sm;
1104
+ } else {
1105
+ if ((new Long(0, 0)).i3(this.x30_1).xh(this.y30_1)) {
1106
+ this.g9_1 = 1;
1107
+ suspendResult = copyTo(this.u30_1, this.v30_1, this.y30_1, this);
1108
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1109
+ return suspendResult;
1110
+ }
1111
+ continue $sm;
1112
+ } else {
1113
+ var tmp_1 = this;
1114
+ throwLimitExceeded(this.y30_1, this.x30_1);
1115
+ }
1116
+ }
1117
+
1118
+ break;
1119
+ case 1:
1120
+ this.a31_1 = suspendResult;
1121
+ this.g9_1 = 2;
1122
+ suspendResult = skipIfFoundReadCount(this.u30_1, this.t30_1, this);
1123
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1124
+ return suspendResult;
1125
+ }
1126
+
1127
+ continue $sm;
1128
+ case 2:
1129
+ this.b31_1 = suspendResult;
1130
+ this.z30_1 = this.a31_1.z2(this.b31_1);
1131
+ this.g9_1 = 4;
1132
+ continue $sm;
1133
+ case 3:
1134
+ this.z30_1 = suspendResult;
1135
+ this.g9_1 = 4;
1136
+ continue $sm;
1137
+ case 4:
1138
+ this.c31_1 = this.z30_1;
1139
+ this.g9_1 = 5;
1140
+ suspendResult = this.v30_1.l1j(this);
1141
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1142
+ return suspendResult;
1143
+ }
1144
+
1145
+ continue $sm;
1146
+ case 5:
1147
+ return this.c31_1;
1148
+ case 6:
1149
+ throw this.j9_1;
1150
+ }
1151
+ } catch ($p) {
1152
+ var e = $p;
1153
+ if (this.h9_1 === 6) {
1154
+ throw e;
1155
+ } else {
1156
+ this.g9_1 = this.h9_1;
1157
+ this.j9_1 = e;
1158
+ }
1159
+ }
1160
+ while (true);
1161
+ };
1162
+ function $skipIfFoundReadCountCOROUTINE$7(_this__u8e3s4, prefix, resultContinuation) {
1163
+ CoroutineImpl.call(this, resultContinuation);
1164
+ this.l31_1 = _this__u8e3s4;
1165
+ this.m31_1 = prefix;
1166
+ }
1167
+ protoOf($skipIfFoundReadCountCOROUTINE$7).o9 = function () {
1168
+ var suspendResult = this.i9_1;
1169
+ $sm: do
1170
+ try {
1171
+ var tmp = this.g9_1;
1172
+ switch (tmp) {
1173
+ case 0:
1174
+ this.h9_1 = 3;
1175
+ this.g9_1 = 1;
1176
+ suspendResult = skipIfFound(this.l31_1, this.m31_1, this);
1177
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1178
+ return suspendResult;
1179
+ }
1180
+
1181
+ continue $sm;
1182
+ case 1:
1183
+ if (suspendResult) {
1184
+ var tmp_0 = this;
1185
+ tmp_0.n31_1 = toLong(this.m31_1.s());
1186
+ this.g9_1 = 2;
1187
+ continue $sm;
1188
+ } else {
1189
+ var tmp_1 = this;
1190
+ tmp_1.n31_1 = new Long(0, 0);
1191
+ this.g9_1 = 2;
1192
+ continue $sm;
1193
+ }
1194
+
1195
+ case 2:
1196
+ return this.n31_1;
1197
+ case 3:
1198
+ throw this.j9_1;
1199
+ }
1200
+ } catch ($p) {
1201
+ var e = $p;
1202
+ if (this.h9_1 === 3) {
1203
+ throw e;
1204
+ } else {
1205
+ this.g9_1 = this.h9_1;
1206
+ this.j9_1 = e;
1207
+ }
1208
+ }
1209
+ while (true);
1210
+ };
1211
+ var properties_initialized_Multipart_kt_wu0sh0;
1212
+ function _init_properties_Multipart_kt__ato98a() {
1213
+ if (!properties_initialized_Multipart_kt_wu0sh0) {
1214
+ properties_initialized_Multipart_kt_wu0sh0 = true;
1215
+ CrLf = ByteString_init_$Create$(toByteArray('\r\n'));
1216
+ PrefixString = ByteString(new Int8Array([45, 45]));
1217
+ }
1218
+ }
1219
+ function build($this, resultList, from, maxLength, idx, length, charAt) {
1220
+ // Inline function 'kotlin.collections.groupBy' call
1221
+ // Inline function 'kotlin.collections.groupByTo' call
1222
+ var destination = LinkedHashMap_init_$Create$();
1223
+ var _iterator__ex2g4s = from.p();
1224
+ while (_iterator__ex2g4s.q()) {
1225
+ var element = _iterator__ex2g4s.r();
1226
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1227
+ var key = charAt(element, idx);
1228
+ // Inline function 'kotlin.collections.getOrPut' call
1229
+ var value = destination.k2(key);
1230
+ var tmp;
1231
+ if (value == null) {
1232
+ // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
1233
+ var answer = ArrayList_init_$Create$();
1234
+ destination.n2(key, answer);
1235
+ tmp = answer;
1236
+ } else {
1237
+ tmp = value;
1238
+ }
1239
+ var list = tmp;
1240
+ list.k(element);
1241
+ }
1242
+ // Inline function 'kotlin.collections.forEach' call
1243
+ // Inline function 'kotlin.collections.iterator' call
1244
+ var _iterator__ex2g4s_0 = destination.x().p();
1245
+ while (_iterator__ex2g4s_0.q()) {
1246
+ var element_0 = _iterator__ex2g4s_0.r();
1247
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1248
+ // Inline function 'kotlin.collections.component1' call
1249
+ var ch = element_0.y().l1_1;
1250
+ // Inline function 'kotlin.collections.component2' call
1251
+ var list_0 = element_0.z();
1252
+ var nextIdx = idx + 1 | 0;
1253
+ var children = ArrayList_init_$Create$();
1254
+ var tmp_0 = Companion_instance;
1255
+ // Inline function 'kotlin.collections.filter' call
1256
+ // Inline function 'kotlin.collections.filterTo' call
1257
+ var destination_0 = ArrayList_init_$Create$();
1258
+ var _iterator__ex2g4s_1 = list_0.p();
1259
+ while (_iterator__ex2g4s_1.q()) {
1260
+ var element_1 = _iterator__ex2g4s_1.r();
1261
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>.<anonymous>' call
1262
+ if (length(element_1) > nextIdx) {
1263
+ destination_0.k(element_1);
1264
+ }
1265
+ }
1266
+ build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
1267
+ children.y5();
1268
+ // Inline function 'kotlin.collections.filter' call
1269
+ // Inline function 'kotlin.collections.filterTo' call
1270
+ var destination_1 = ArrayList_init_$Create$();
1271
+ var _iterator__ex2g4s_2 = list_0.p();
1272
+ while (_iterator__ex2g4s_2.q()) {
1273
+ var element_2 = _iterator__ex2g4s_2.r();
1274
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>.<anonymous>' call
1275
+ if (length(element_2) === nextIdx) {
1276
+ destination_1.k(element_2);
1277
+ }
1278
+ }
1279
+ resultList.k(new Node(ch, destination_1, children));
1280
+ }
1281
+ }
1282
+ function AsciiCharTree$Companion$build$lambda(it) {
1283
+ return charSequenceLength(it);
1284
+ }
1285
+ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
1286
+ return new Char(charSequenceGet(s, idx));
1287
+ }
1288
+ function Node(ch, exact, children) {
1289
+ this.g33_1 = ch;
1290
+ this.h33_1 = exact;
1291
+ this.i33_1 = children;
1292
+ var tmp = this;
1293
+ var tmp_0 = 0;
1294
+ // Inline function 'kotlin.arrayOfNulls' call
1295
+ var tmp_1 = fillArrayVal(Array(256), null);
1296
+ while (tmp_0 < 256) {
1297
+ var tmp_2 = tmp_0;
1298
+ var tmp1 = this.i33_1;
1299
+ var tmp$ret$3;
1300
+ $l$block_0: {
1301
+ // Inline function 'kotlin.collections.singleOrNull' call
1302
+ var single = null;
1303
+ var found = false;
1304
+ var _iterator__ex2g4s = tmp1.p();
1305
+ while (_iterator__ex2g4s.q()) {
1306
+ var element = _iterator__ex2g4s.r();
1307
+ // Inline function 'io.ktor.http.cio.internals.Node.array.<anonymous>' call
1308
+ // Inline function 'kotlin.code' call
1309
+ var this_0 = element.g33_1;
1310
+ if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
1311
+ if (found) {
1312
+ tmp$ret$3 = null;
1313
+ break $l$block_0;
1314
+ }
1315
+ single = element;
1316
+ found = true;
1317
+ }
1318
+ }
1319
+ if (!found) {
1320
+ tmp$ret$3 = null;
1321
+ break $l$block_0;
1322
+ }
1323
+ tmp$ret$3 = single;
1324
+ }
1325
+ tmp_1[tmp_2] = tmp$ret$3;
1326
+ tmp_0 = tmp_0 + 1 | 0;
1327
+ }
1328
+ tmp.j33_1 = tmp_1;
1329
+ }
1330
+ function Companion() {
1331
+ }
1332
+ protoOf(Companion).w2z = function (from) {
1333
+ var tmp = AsciiCharTree$Companion$build$lambda;
1334
+ return this.k33(from, tmp, AsciiCharTree$Companion$build$lambda_0);
1335
+ };
1336
+ protoOf(Companion).k33 = function (from, length, charAt) {
1337
+ var tmp$ret$0;
1338
+ $l$block_0: {
1339
+ // Inline function 'kotlin.collections.maxByOrNull' call
1340
+ var iterator = from.p();
1341
+ if (!iterator.q()) {
1342
+ tmp$ret$0 = null;
1343
+ break $l$block_0;
1344
+ }
1345
+ var maxElem = iterator.r();
1346
+ if (!iterator.q()) {
1347
+ tmp$ret$0 = maxElem;
1348
+ break $l$block_0;
1349
+ }
1350
+ var maxValue = length(maxElem);
1351
+ do {
1352
+ var e = iterator.r();
1353
+ var v = length(e);
1354
+ if (compareTo(maxValue, v) < 0) {
1355
+ maxElem = e;
1356
+ maxValue = v;
1357
+ }
1358
+ }
1359
+ while (iterator.q());
1360
+ tmp$ret$0 = maxElem;
1361
+ }
1362
+ var tmp0_safe_receiver = tmp$ret$0;
1363
+ var tmp;
1364
+ if (tmp0_safe_receiver == null) {
1365
+ tmp = null;
1366
+ } else {
1367
+ // Inline function 'kotlin.let' call
1368
+ tmp = length(tmp0_safe_receiver);
1369
+ }
1370
+ var tmp1_elvis_lhs = tmp;
1371
+ var tmp_0;
1372
+ if (tmp1_elvis_lhs == null) {
1373
+ throw NoSuchElementException_init_$Create$('Unable to build char tree from an empty list');
1374
+ } else {
1375
+ tmp_0 = tmp1_elvis_lhs;
1376
+ }
1377
+ var maxLen = tmp_0;
1378
+ var tmp$ret$2;
1379
+ $l$block_2: {
1380
+ // Inline function 'kotlin.collections.any' call
1381
+ var tmp_1;
1382
+ if (isInterface(from, Collection)) {
1383
+ tmp_1 = from.h();
1384
+ } else {
1385
+ tmp_1 = false;
1386
+ }
1387
+ if (tmp_1) {
1388
+ tmp$ret$2 = false;
1389
+ break $l$block_2;
1390
+ }
1391
+ var _iterator__ex2g4s = from.p();
1392
+ while (_iterator__ex2g4s.q()) {
1393
+ var element = _iterator__ex2g4s.r();
1394
+ // Inline function 'io.ktor.http.cio.internals.Companion.build.<anonymous>' call
1395
+ if (length(element) === 0) {
1396
+ tmp$ret$2 = true;
1397
+ break $l$block_2;
1398
+ }
1399
+ }
1400
+ tmp$ret$2 = false;
1401
+ }
1402
+ if (tmp$ret$2)
1403
+ throw IllegalArgumentException_init_$Create$('There should be no empty entries');
1404
+ var root = ArrayList_init_$Create$();
1405
+ build(this, root, from, maxLen, 0, length, charAt);
1406
+ root.y5();
1407
+ return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
1408
+ };
1409
+ var Companion_instance;
1410
+ function Companion_getInstance_1() {
1411
+ return Companion_instance;
1412
+ }
1413
+ function AsciiCharTree(root) {
1414
+ this.l33_1 = root;
1415
+ }
1416
+ function getImpl($this, index) {
1417
+ return bufferForIndex($this, index)[index % ensureNotNull($this.x2y_1).length | 0];
1418
+ }
1419
+ function copy($this, startIndex, endIndex) {
1420
+ if (startIndex === endIndex)
1421
+ return '';
1422
+ var builder = StringBuilder_init_$Create$_0(endIndex - startIndex | 0);
1423
+ var buffer;
1424
+ var base = startIndex - (startIndex % 2048 | 0) | 0;
1425
+ while (base < endIndex) {
1426
+ buffer = bufferForIndex($this, base);
1427
+ // Inline function 'kotlin.comparisons.maxOf' call
1428
+ var b = startIndex - base | 0;
1429
+ var innerStartIndex = Math.max(0, b);
1430
+ // Inline function 'kotlin.comparisons.minOf' call
1431
+ var a = endIndex - base | 0;
1432
+ var innerEndIndex = Math.min(a, 2048);
1433
+ var inductionVariable = innerStartIndex;
1434
+ if (inductionVariable < innerEndIndex)
1435
+ do {
1436
+ var innerIndex = inductionVariable;
1437
+ inductionVariable = inductionVariable + 1 | 0;
1438
+ builder.s8(buffer[innerIndex]);
1439
+ }
1440
+ while (inductionVariable < innerEndIndex);
1441
+ base = base + 2048 | 0;
1442
+ }
1443
+ return builder;
1444
+ }
1445
+ function SubSequenceImpl($outer, start, end) {
1446
+ this.p33_1 = $outer;
1447
+ this.m33_1 = start;
1448
+ this.n33_1 = end;
1449
+ this.o33_1 = null;
1450
+ }
1451
+ protoOf(SubSequenceImpl).a = function () {
1452
+ return this.n33_1 - this.m33_1 | 0;
1453
+ };
1454
+ protoOf(SubSequenceImpl).b = function (index) {
1455
+ var withOffset = index + this.m33_1 | 0;
1456
+ // Inline function 'kotlin.require' call
1457
+ if (!(index >= 0)) {
1458
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.get.<anonymous>' call
1459
+ var message = 'index is negative: ' + index;
1460
+ throw IllegalArgumentException_init_$Create$(toString(message));
1461
+ }
1462
+ // Inline function 'kotlin.require' call
1463
+ if (!(withOffset < this.n33_1)) {
1464
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.get.<anonymous>' call
1465
+ var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
1466
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1467
+ }
1468
+ return getImpl(this.p33_1, withOffset);
1469
+ };
1470
+ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
1471
+ // Inline function 'kotlin.require' call
1472
+ if (!(startIndex >= 0)) {
1473
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1474
+ var message = 'start is negative: ' + startIndex;
1475
+ throw IllegalArgumentException_init_$Create$(toString(message));
1476
+ }
1477
+ // Inline function 'kotlin.require' call
1478
+ if (!(startIndex <= endIndex)) {
1479
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1480
+ var message_0 = 'start (' + startIndex + ') should be less or equal to end (' + endIndex + ')';
1481
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1482
+ }
1483
+ // Inline function 'kotlin.require' call
1484
+ if (!(endIndex <= (this.n33_1 - this.m33_1 | 0))) {
1485
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.subSequence.<anonymous>' call
1486
+ var message_1 = 'end should be less than length (' + this.a() + ')';
1487
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1488
+ }
1489
+ if (startIndex === endIndex)
1490
+ return '';
1491
+ return new SubSequenceImpl(this.p33_1, this.m33_1 + startIndex | 0, this.m33_1 + endIndex | 0);
1492
+ };
1493
+ protoOf(SubSequenceImpl).toString = function () {
1494
+ var tmp0_elvis_lhs = this.o33_1;
1495
+ var tmp;
1496
+ if (tmp0_elvis_lhs == null) {
1497
+ // Inline function 'kotlin.also' call
1498
+ var this_0 = toString(copy(this.p33_1, this.m33_1, this.n33_1));
1499
+ // Inline function 'io.ktor.http.cio.internals.SubSequenceImpl.toString.<anonymous>' call
1500
+ this.o33_1 = this_0;
1501
+ tmp = this_0;
1502
+ } else {
1503
+ tmp = tmp0_elvis_lhs;
1504
+ }
1505
+ return tmp;
1506
+ };
1507
+ protoOf(SubSequenceImpl).equals = function (other) {
1508
+ if (!(!(other == null) ? isCharSequence(other) : false))
1509
+ return false;
1510
+ if (!(charSequenceLength(other) === this.a()))
1511
+ return false;
1512
+ return rangeEqualsImpl(this.p33_1, this.m33_1, other, 0, this.a());
1513
+ };
1514
+ protoOf(SubSequenceImpl).hashCode = function () {
1515
+ var tmp0_safe_receiver = this.o33_1;
1516
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
1517
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this.p33_1, this.m33_1, this.n33_1) : tmp1_elvis_lhs;
1518
+ };
1519
+ function bufferForIndex($this, index) {
1520
+ var list = $this.w2y_1;
1521
+ if (list == null) {
1522
+ if (index >= 2048) {
1523
+ throwSingleBuffer($this, index);
1524
+ }
1525
+ var tmp0_elvis_lhs = $this.x2y_1;
1526
+ var tmp;
1527
+ if (tmp0_elvis_lhs == null) {
1528
+ throwSingleBuffer($this, index);
1529
+ } else {
1530
+ tmp = tmp0_elvis_lhs;
1531
+ }
1532
+ return tmp;
1533
+ }
1534
+ return list.u(index / ensureNotNull($this.x2y_1).length | 0);
1535
+ }
1536
+ function throwSingleBuffer($this, index) {
1537
+ if ($this.z2y_1)
1538
+ throw IllegalStateException_init_$Create$('Buffer is already released');
1539
+ throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
1540
+ }
1541
+ function nonFullBuffer($this) {
1542
+ return $this.a2z_1 === 0 ? appendNewArray($this) : ensureNotNull($this.x2y_1);
1543
+ }
1544
+ function appendNewArray($this) {
1545
+ var newBuffer = $this.v2y_1.y1t();
1546
+ var existing = $this.x2y_1;
1547
+ $this.x2y_1 = newBuffer;
1548
+ $this.a2z_1 = newBuffer.length;
1549
+ $this.z2y_1 = false;
1550
+ if (!(existing == null)) {
1551
+ var tmp0_elvis_lhs = $this.w2y_1;
1552
+ var tmp;
1553
+ if (tmp0_elvis_lhs == null) {
1554
+ // Inline function 'kotlin.also' call
1555
+ var this_0 = ArrayList_init_$Create$();
1556
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.appendNewArray.<anonymous>' call
1557
+ $this.w2y_1 = this_0;
1558
+ this_0.k(existing);
1559
+ tmp = this_0;
1560
+ } else {
1561
+ tmp = tmp0_elvis_lhs;
1562
+ }
1563
+ var list = tmp;
1564
+ list.k(newBuffer);
1565
+ }
1566
+ return newBuffer;
1567
+ }
1568
+ function rangeEqualsImpl($this, start, other, otherStart, length) {
1569
+ var inductionVariable = 0;
1570
+ if (inductionVariable < length)
1571
+ do {
1572
+ var i = inductionVariable;
1573
+ inductionVariable = inductionVariable + 1 | 0;
1574
+ if (!(getImpl($this, start + i | 0) === charSequenceGet(other, otherStart + i | 0)))
1575
+ return false;
1576
+ }
1577
+ while (inductionVariable < length);
1578
+ return true;
1579
+ }
1580
+ function hashCodeImpl($this, start, end) {
1581
+ var hc = 0;
1582
+ var inductionVariable = start;
1583
+ if (inductionVariable < end)
1584
+ do {
1585
+ var i = inductionVariable;
1586
+ inductionVariable = inductionVariable + 1 | 0;
1587
+ var tmp = imul(31, hc);
1588
+ // Inline function 'kotlin.code' call
1589
+ var this_0 = getImpl($this, i);
1590
+ hc = tmp + Char__toInt_impl_vasixd(this_0) | 0;
1591
+ }
1592
+ while (inductionVariable < end);
1593
+ return hc;
1594
+ }
1595
+ function currentPosition($this) {
1596
+ return ensureNotNull($this.x2y_1).length - $this.a2z_1 | 0;
1597
+ }
1598
+ function CharArrayBuilder(pool) {
1599
+ pool = pool === VOID ? get_CharArrayPool() : pool;
1600
+ this.v2y_1 = pool;
1601
+ this.w2y_1 = null;
1602
+ this.x2y_1 = null;
1603
+ this.y2y_1 = null;
1604
+ this.z2y_1 = false;
1605
+ this.a2z_1 = 0;
1606
+ this.b2z_1 = 0;
1607
+ }
1608
+ protoOf(CharArrayBuilder).a = function () {
1609
+ return this.b2z_1;
1610
+ };
1611
+ protoOf(CharArrayBuilder).b = function (index) {
1612
+ // Inline function 'kotlin.require' call
1613
+ if (!(index >= 0)) {
1614
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.get.<anonymous>' call
1615
+ var message = 'index is negative: ' + index;
1616
+ throw IllegalArgumentException_init_$Create$(toString(message));
1617
+ }
1618
+ // Inline function 'kotlin.require' call
1619
+ if (!(index < this.b2z_1)) {
1620
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.get.<anonymous>' call
1621
+ var message_0 = 'index ' + index + ' is not in range [0, ' + this.b2z_1 + ')';
1622
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1623
+ }
1624
+ return getImpl(this, index);
1625
+ };
1626
+ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
1627
+ // Inline function 'kotlin.require' call
1628
+ if (!(startIndex <= endIndex)) {
1629
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1630
+ var message = 'startIndex (' + startIndex + ') should be less or equal to endIndex (' + endIndex + ')';
1631
+ throw IllegalArgumentException_init_$Create$(toString(message));
1632
+ }
1633
+ // Inline function 'kotlin.require' call
1634
+ if (!(startIndex >= 0)) {
1635
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1636
+ var message_0 = 'startIndex is negative: ' + startIndex;
1637
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1638
+ }
1639
+ // Inline function 'kotlin.require' call
1640
+ if (!(endIndex <= this.b2z_1)) {
1641
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.subSequence.<anonymous>' call
1642
+ var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.b2z_1 + ')';
1643
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1644
+ }
1645
+ return new SubSequenceImpl(this, startIndex, endIndex);
1646
+ };
1647
+ protoOf(CharArrayBuilder).toString = function () {
1648
+ var tmp0_elvis_lhs = this.y2y_1;
1649
+ var tmp;
1650
+ if (tmp0_elvis_lhs == null) {
1651
+ // Inline function 'kotlin.also' call
1652
+ var this_0 = toString(copy(this, 0, this.b2z_1));
1653
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.toString.<anonymous>' call
1654
+ this.y2y_1 = this_0;
1655
+ tmp = this_0;
1656
+ } else {
1657
+ tmp = tmp0_elvis_lhs;
1658
+ }
1659
+ return tmp;
1660
+ };
1661
+ protoOf(CharArrayBuilder).equals = function (other) {
1662
+ if (!(!(other == null) ? isCharSequence(other) : false))
1663
+ return false;
1664
+ if (!(this.b2z_1 === charSequenceLength(other)))
1665
+ return false;
1666
+ return rangeEqualsImpl(this, 0, other, 0, this.b2z_1);
1667
+ };
1668
+ protoOf(CharArrayBuilder).hashCode = function () {
1669
+ var tmp0_safe_receiver = this.y2y_1;
1670
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
1671
+ return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.b2z_1) : tmp1_elvis_lhs;
1672
+ };
1673
+ protoOf(CharArrayBuilder).s8 = function (value) {
1674
+ nonFullBuffer(this)[ensureNotNull(this.x2y_1).length - this.a2z_1 | 0] = value;
1675
+ this.y2y_1 = null;
1676
+ this.a2z_1 = this.a2z_1 - 1 | 0;
1677
+ this.b2z_1 = this.b2z_1 + 1 | 0;
1678
+ return this;
1679
+ };
1680
+ protoOf(CharArrayBuilder).ad = function (value, startIndex, endIndex) {
1681
+ if (value == null)
1682
+ return this;
1683
+ var current = startIndex;
1684
+ while (current < endIndex) {
1685
+ var buffer = nonFullBuffer(this);
1686
+ var offset = buffer.length - this.a2z_1 | 0;
1687
+ var tmp0 = endIndex - current | 0;
1688
+ // Inline function 'kotlin.math.min' call
1689
+ var b = this.a2z_1;
1690
+ var bytesToCopy = Math.min(tmp0, b);
1691
+ var inductionVariable = 0;
1692
+ if (inductionVariable < bytesToCopy)
1693
+ do {
1694
+ var i = inductionVariable;
1695
+ inductionVariable = inductionVariable + 1 | 0;
1696
+ buffer[offset + i | 0] = charSequenceGet(value, current + i | 0);
1697
+ }
1698
+ while (inductionVariable < bytesToCopy);
1699
+ current = current + bytesToCopy | 0;
1700
+ this.a2z_1 = this.a2z_1 - bytesToCopy | 0;
1701
+ }
1702
+ this.y2y_1 = null;
1703
+ this.b2z_1 = this.b2z_1 + (endIndex - startIndex | 0) | 0;
1704
+ return this;
1705
+ };
1706
+ protoOf(CharArrayBuilder).l = function (value) {
1707
+ if (value == null)
1708
+ return this;
1709
+ return this.ad(value, 0, charSequenceLength(value));
1710
+ };
1711
+ protoOf(CharArrayBuilder).e2z = function () {
1712
+ var list = this.w2y_1;
1713
+ if (!(list == null)) {
1714
+ this.x2y_1 = null;
1715
+ var inductionVariable = 0;
1716
+ var last = list.s();
1717
+ if (inductionVariable < last)
1718
+ do {
1719
+ var i = inductionVariable;
1720
+ inductionVariable = inductionVariable + 1 | 0;
1721
+ this.v2y_1.z1t(list.u(i));
1722
+ }
1723
+ while (inductionVariable < last);
1724
+ } else {
1725
+ var tmp0_safe_receiver = this.x2y_1;
1726
+ if (tmp0_safe_receiver == null)
1727
+ null;
1728
+ else {
1729
+ // Inline function 'kotlin.let' call
1730
+ // Inline function 'io.ktor.http.cio.internals.CharArrayBuilder.release.<anonymous>' call
1731
+ this.v2y_1.z1t(tmp0_safe_receiver);
1732
+ }
1733
+ this.x2y_1 = null;
1734
+ }
1735
+ this.z2y_1 = true;
1736
+ this.w2y_1 = null;
1737
+ this.y2y_1 = null;
1738
+ this.b2z_1 = 0;
1739
+ this.a2z_1 = 0;
1740
+ };
1741
+ function get_CharArrayPool() {
1742
+ _init_properties_CharArrayPool_kt__u4nq0d();
1743
+ return CharArrayPool;
1744
+ }
1745
+ var CharArrayPool;
1746
+ function CharArrayPool$1() {
1747
+ NoPoolImpl.call(this);
1748
+ }
1749
+ protoOf(CharArrayPool$1).y1t = function () {
1750
+ return charArray(2048);
1751
+ };
1752
+ function CharArrayPool$2() {
1753
+ DefaultPool.call(this, 4096);
1754
+ }
1755
+ protoOf(CharArrayPool$2).r1t = function () {
1756
+ return charArray(2048);
1757
+ };
1758
+ var properties_initialized_CharArrayPool_kt_aq0u0f;
1759
+ function _init_properties_CharArrayPool_kt__u4nq0d() {
1760
+ if (!properties_initialized_CharArrayPool_kt_aq0u0f) {
1761
+ properties_initialized_CharArrayPool_kt_aq0u0f = true;
1762
+ var tmp;
1763
+ if (isPoolingDisabled()) {
1764
+ tmp = new CharArrayPool$1();
1765
+ } else {
1766
+ tmp = new CharArrayPool$2();
1767
+ }
1768
+ CharArrayPool = tmp;
1769
+ }
1770
+ }
1771
+ var DefaultHttpMethods;
1772
+ var HexTable;
1773
+ var HexLetterTable;
1774
+ function parseDecLong(_this__u8e3s4) {
1775
+ _init_properties_Chars_kt__d3i39x();
1776
+ var length = charSequenceLength(_this__u8e3s4);
1777
+ if (length > 19) {
1778
+ numberFormatException(_this__u8e3s4);
1779
+ }
1780
+ if (length === 19)
1781
+ return parseDecLongWithCheck(_this__u8e3s4);
1782
+ var result = new Long(0, 0);
1783
+ var inductionVariable = 0;
1784
+ if (inductionVariable < length)
1785
+ do {
1786
+ var i = inductionVariable;
1787
+ inductionVariable = inductionVariable + 1 | 0;
1788
+ // Inline function 'kotlin.code' call
1789
+ var this_0 = charSequenceGet(_this__u8e3s4, i);
1790
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1791
+ var digit = toLong(tmp$ret$0).a3(new Long(48, 0));
1792
+ if (digit.e1(new Long(0, 0)) < 0 || digit.e1(new Long(9, 0)) > 0) {
1793
+ numberFormatException_0(_this__u8e3s4, i);
1794
+ }
1795
+ result = result.j3(3).z2(result.j3(1)).z2(digit);
1796
+ }
1797
+ while (inductionVariable < length);
1798
+ return result;
1799
+ }
1800
+ function hashCodeLowerCase(_this__u8e3s4, start, end) {
1801
+ start = start === VOID ? 0 : start;
1802
+ end = end === VOID ? charSequenceLength(_this__u8e3s4) : end;
1803
+ _init_properties_Chars_kt__d3i39x();
1804
+ var hashCode = 0;
1805
+ var inductionVariable = start;
1806
+ if (inductionVariable < end)
1807
+ do {
1808
+ var pos = inductionVariable;
1809
+ inductionVariable = inductionVariable + 1 | 0;
1810
+ // Inline function 'kotlin.code' call
1811
+ var this_0 = charSequenceGet(_this__u8e3s4, pos);
1812
+ // Inline function 'io.ktor.http.cio.internals.toLowerCase' call
1813
+ var this_1 = Char__toInt_impl_vasixd(this_0);
1814
+ var tmp;
1815
+ // Inline function 'kotlin.code' call
1816
+ var this_2 = _Char___init__impl__6a9atx(65);
1817
+ var containsLower = Char__toInt_impl_vasixd(this_2);
1818
+ var tmp_0;
1819
+ // Inline function 'kotlin.code' call
1820
+ var this_3 = _Char___init__impl__6a9atx(90);
1821
+ if (this_1 <= Char__toInt_impl_vasixd(this_3)) {
1822
+ tmp_0 = containsLower <= this_1;
1823
+ } else {
1824
+ tmp_0 = false;
1825
+ }
1826
+ if (tmp_0) {
1827
+ // Inline function 'kotlin.code' call
1828
+ var this_4 = _Char___init__impl__6a9atx(97);
1829
+ var tmp_1 = Char__toInt_impl_vasixd(this_4);
1830
+ // Inline function 'kotlin.code' call
1831
+ var this_5 = _Char___init__impl__6a9atx(65);
1832
+ tmp = tmp_1 + (this_1 - Char__toInt_impl_vasixd(this_5) | 0) | 0;
1833
+ } else {
1834
+ tmp = this_1;
1835
+ }
1836
+ var v = tmp;
1837
+ hashCode = imul(31, hashCode) + v | 0;
1838
+ }
1839
+ while (inductionVariable < end);
1840
+ return hashCode;
1841
+ }
1842
+ function numberFormatException(cs) {
1843
+ _init_properties_Chars_kt__d3i39x();
1844
+ throw NumberFormatException_init_$Create$('Invalid number ' + toString(cs) + ': too large for Long type');
1845
+ }
1846
+ function parseDecLongWithCheck(_this__u8e3s4) {
1847
+ _init_properties_Chars_kt__d3i39x();
1848
+ var result = new Long(0, 0);
1849
+ var inductionVariable = 0;
1850
+ var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
1851
+ if (inductionVariable <= last)
1852
+ do {
1853
+ var i = inductionVariable;
1854
+ inductionVariable = inductionVariable + 1 | 0;
1855
+ // Inline function 'kotlin.code' call
1856
+ var this_0 = charSequenceGet(_this__u8e3s4, i);
1857
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1858
+ var digit = toLong(tmp$ret$0).a3(new Long(48, 0));
1859
+ if (digit.e1(new Long(0, 0)) < 0 || digit.e1(new Long(9, 0)) > 0) {
1860
+ numberFormatException_0(_this__u8e3s4, i);
1861
+ }
1862
+ result = result.j3(3).z2(result.j3(1)).z2(digit);
1863
+ if (result.e1(new Long(0, 0)) < 0) {
1864
+ numberFormatException(_this__u8e3s4);
1865
+ }
1866
+ }
1867
+ while (inductionVariable <= last);
1868
+ return result;
1869
+ }
1870
+ function numberFormatException_0(cs, idx) {
1871
+ _init_properties_Chars_kt__d3i39x();
1872
+ throw NumberFormatException_init_$Create$('Invalid number: ' + toString(cs) + ', wrong digit: ' + toString_1(charSequenceGet(cs, idx)) + ' at position ' + idx);
1873
+ }
1874
+ function DefaultHttpMethods$lambda(it) {
1875
+ _init_properties_Chars_kt__d3i39x();
1876
+ return it.j2s_1.length;
1877
+ }
1878
+ function DefaultHttpMethods$lambda_0(m, idx) {
1879
+ _init_properties_Chars_kt__d3i39x();
1880
+ return new Char(charSequenceGet(m.j2s_1, idx));
1881
+ }
1882
+ var properties_initialized_Chars_kt_phjfhp;
1883
+ function _init_properties_Chars_kt__d3i39x() {
1884
+ if (!properties_initialized_Chars_kt_phjfhp) {
1885
+ properties_initialized_Chars_kt_phjfhp = true;
1886
+ var tmp = Companion_instance;
1887
+ var tmp_0 = Companion_getInstance_0().i2s_1;
1888
+ var tmp_1 = DefaultHttpMethods$lambda;
1889
+ DefaultHttpMethods = tmp.k33(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
1890
+ // Inline function 'kotlin.collections.map' call
1891
+ var this_0 = numberRangeToNumber(0, 255);
1892
+ // Inline function 'kotlin.collections.mapTo' call
1893
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1894
+ var inductionVariable = this_0.f1_1;
1895
+ var last = this_0.g1_1;
1896
+ if (inductionVariable <= last)
1897
+ do {
1898
+ var item = inductionVariable;
1899
+ inductionVariable = inductionVariable + 1 | 0;
1900
+ // Inline function 'io.ktor.http.cio.internals.HexTable.<anonymous>' call
1901
+ var v = item;
1902
+ var tmp_2;
1903
+ if (48 <= v ? v <= 57 : false) {
1904
+ tmp_2 = numberToLong(v).a3(new Long(48, 0));
1905
+ } else {
1906
+ var tmp_3;
1907
+ var tmp_4 = toLong(v);
1908
+ // Inline function 'kotlin.code' call
1909
+ var this_1 = _Char___init__impl__6a9atx(97);
1910
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_1);
1911
+ if (tmp_4.e1(toLong(tmp$ret$0)) >= 0) {
1912
+ var tmp_5 = toLong(v);
1913
+ // Inline function 'kotlin.code' call
1914
+ var this_2 = _Char___init__impl__6a9atx(102);
1915
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_2);
1916
+ tmp_3 = tmp_5.e1(toLong(tmp$ret$1)) <= 0;
1917
+ } else {
1918
+ tmp_3 = false;
1919
+ }
1920
+ if (tmp_3) {
1921
+ // Inline function 'kotlin.code' call
1922
+ var this_3 = _Char___init__impl__6a9atx(97);
1923
+ var tmp$ret$2 = Char__toInt_impl_vasixd(this_3);
1924
+ // Inline function 'kotlin.Long.plus' call
1925
+ tmp_2 = numberToLong(v).a3(toLong(tmp$ret$2)).z2(toLong(10));
1926
+ } else {
1927
+ var tmp_6;
1928
+ var tmp_7 = toLong(v);
1929
+ // Inline function 'kotlin.code' call
1930
+ var this_4 = _Char___init__impl__6a9atx(65);
1931
+ var tmp$ret$4 = Char__toInt_impl_vasixd(this_4);
1932
+ if (tmp_7.e1(toLong(tmp$ret$4)) >= 0) {
1933
+ var tmp_8 = toLong(v);
1934
+ // Inline function 'kotlin.code' call
1935
+ var this_5 = _Char___init__impl__6a9atx(70);
1936
+ var tmp$ret$5 = Char__toInt_impl_vasixd(this_5);
1937
+ tmp_6 = tmp_8.e1(toLong(tmp$ret$5)) <= 0;
1938
+ } else {
1939
+ tmp_6 = false;
1940
+ }
1941
+ if (tmp_6) {
1942
+ // Inline function 'kotlin.code' call
1943
+ var this_6 = _Char___init__impl__6a9atx(65);
1944
+ var tmp$ret$6 = Char__toInt_impl_vasixd(this_6);
1945
+ // Inline function 'kotlin.Long.plus' call
1946
+ tmp_2 = numberToLong(v).a3(toLong(tmp$ret$6)).z2(toLong(10));
1947
+ } else {
1948
+ tmp_2 = new Long(-1, -1);
1949
+ }
1950
+ }
1951
+ }
1952
+ var tmp$ret$8 = tmp_2;
1953
+ destination.k(tmp$ret$8);
1954
+ }
1955
+ while (!(item === last));
1956
+ HexTable = toLongArray(destination);
1957
+ // Inline function 'kotlin.collections.map' call
1958
+ var this_7 = numberRangeToNumber(0, 15);
1959
+ // Inline function 'kotlin.collections.mapTo' call
1960
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
1961
+ var inductionVariable_0 = this_7.f1_1;
1962
+ var last_0 = this_7.g1_1;
1963
+ if (inductionVariable_0 <= last_0)
1964
+ do {
1965
+ var item_0 = inductionVariable_0;
1966
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1967
+ // Inline function 'io.ktor.http.cio.internals.HexLetterTable.<anonymous>' call
1968
+ var it = item_0;
1969
+ var tmp_9;
1970
+ if (it < 10) {
1971
+ tmp_9 = toByte(48 + it | 0);
1972
+ } else {
1973
+ // Inline function 'kotlin.code' call
1974
+ var this_8 = Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(97), it), 10);
1975
+ var tmp$ret$0_0 = Char__toInt_impl_vasixd(this_8);
1976
+ tmp_9 = toByte(tmp$ret$0_0);
1977
+ }
1978
+ var tmp$ret$1_0 = tmp_9;
1979
+ destination_0.k(tmp$ret$1_0);
1980
+ }
1981
+ while (!(item_0 === last_0));
1982
+ HexLetterTable = toByteArray_0(destination_0);
1983
+ }
1984
+ }
1985
+ function UnsupportedMediaTypeExceptionCIO(message) {
1986
+ IOException_init_$Init$(message, this);
1987
+ captureStack(this, UnsupportedMediaTypeExceptionCIO);
1988
+ }
1989
+ function MutableRange(start, end) {
1990
+ this.u2z_1 = start;
1991
+ this.v2z_1 = end;
1992
+ }
1993
+ protoOf(MutableRange).toString = function () {
1994
+ return 'MutableRange(start=' + this.u2z_1 + ', end=' + this.v2z_1 + ')';
1995
+ };
1996
+ function skipSpacesAndHorizontalTabs(text, start, end) {
1997
+ var index = start;
1998
+ $l$loop: while (index < end) {
1999
+ var ch = text.b(index);
2000
+ if (!isWhitespace(ch) && !(ch === _Char___init__impl__6a9atx(9)))
2001
+ break $l$loop;
2002
+ index = index + 1 | 0;
2003
+ }
2004
+ return index;
2005
+ }
2006
+ function isPoolingDisabled() {
2007
+ return false;
2008
+ }
2009
+ //region block: init
2010
+ Companion_instance = new Companion();
2011
+ //endregion
2012
+ //region block: exports
2013
+ _.$_$ = _.$_$ || {};
2014
+ _.$_$.a = CIOMultipartDataBase;
2015
+ //endregion
2016
+ return _;
2017
+ }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./ktor-ktor-io.js'), require('./kotlinx-io-kotlinx-io-bytestring.js'), require('./kotlinx-io-kotlinx-io-core.js')));