@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13
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.
- package/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56590 -56248
- package/cardinal-sdk.mjs +126945 -106218
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3412 -2764
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2690 -2687
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/model.d.mts +0 -1
- package/model.mjs +0 -1
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
package/ktor-ktor-http-cio.mjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Long2qws0ah9gnpki as Long,
|
|
3
|
-
|
|
3
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
4
4
|
protoOf180f3jzyo7rfj as protoOf,
|
|
5
5
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
6
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
|
-
|
|
7
|
+
Unit_instance1fbcbse1fwigr as Unit_instance,
|
|
8
8
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
9
9
|
SequenceScope1coiso86pqzq2 as SequenceScope,
|
|
10
10
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
11
11
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
12
|
-
ArrayList_init_$Create$
|
|
12
|
+
ArrayList_init_$Create$149jv2ovkkvnt as ArrayList_init_$Create$,
|
|
13
13
|
sequence2vgswtrxvqoa7 as sequence,
|
|
14
14
|
toString1pkumu07cwy4m as toString,
|
|
15
|
-
IllegalArgumentException_init_$Create$
|
|
15
|
+
IllegalArgumentException_init_$Create$3ewkh27kzt8z8 as IllegalArgumentException_init_$Create$,
|
|
16
16
|
abs1kdzbjes1idip as abs,
|
|
17
|
-
StringBuilder_init_$Create$
|
|
17
|
+
StringBuilder_init_$Create$2qsge4ydj6bin as StringBuilder_init_$Create$,
|
|
18
18
|
fill2542d4m9l93pn as fill,
|
|
19
19
|
isIntArrayeijsubfngq38 as isIntArray,
|
|
20
|
-
|
|
20
|
+
_Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx,
|
|
21
21
|
endsWith1a79dp5rc3sfv as endsWith,
|
|
22
22
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
23
23
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
24
24
|
Char19o2r8palgjof as Char,
|
|
25
|
-
|
|
25
|
+
Char__compareTo_impl_ypi4mbdrkik40uwhqc as Char__compareTo_impl_ypi4mb,
|
|
26
26
|
contains2el4s70rdq4ld as contains,
|
|
27
27
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
28
|
-
|
|
28
|
+
Char__toInt_impl_vasixd1agw9q2fuvclj as Char__toInt_impl_vasixd,
|
|
29
29
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
30
|
-
IllegalStateException_init_$Init$
|
|
30
|
+
IllegalStateException_init_$Init$28k6zlhbptery as IllegalStateException_init_$Init$,
|
|
31
31
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
32
|
-
IllegalStateException_init_$Create$
|
|
32
|
+
IllegalStateException_init_$Create$2w9444nebyjns as IllegalStateException_init_$Create$,
|
|
33
33
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
34
34
|
setOf45ia9pnfhe90 as setOf,
|
|
35
35
|
listOf1jh22dvmctj1r as listOf,
|
|
@@ -38,38 +38,39 @@ import {
|
|
|
38
38
|
copyOfRange3alro60z4hhf8 as copyOfRange,
|
|
39
39
|
startsWith641pyr7vf687 as startsWith,
|
|
40
40
|
isInterface3d6p8outrmvmk as isInterface,
|
|
41
|
-
CancellationException_init_$Create$
|
|
41
|
+
CancellationException_init_$Create$2cv5nayrc39hr as CancellationException_init_$Create$,
|
|
42
42
|
toLongw1zpgk99d84b as toLong,
|
|
43
|
-
LinkedHashMap_init_$Create$
|
|
43
|
+
LinkedHashMap_init_$Create$1f9mb1z5f3dxn as LinkedHashMap_init_$Create$,
|
|
44
44
|
compareTo3ankvs086tmwq as compareTo,
|
|
45
|
-
NoSuchElementException_init_$Create$
|
|
45
|
+
NoSuchElementException_init_$Create$4w03vct39ryy as NoSuchElementException_init_$Create$,
|
|
46
46
|
Collection1k04j3hzsbod0 as Collection,
|
|
47
47
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
48
48
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
49
49
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
50
|
-
StringBuilder_init_$Create$
|
|
50
|
+
StringBuilder_init_$Create$2ujvu6cqvzuyn as StringBuilder_init_$Create$_0,
|
|
51
51
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
52
52
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
53
53
|
CharSequence1ceii1xorfwh7 as CharSequence,
|
|
54
|
-
IndexOutOfBoundsException_init_$Create$
|
|
54
|
+
IndexOutOfBoundsException_init_$Create$2w5dv25cjssuw as IndexOutOfBoundsException_init_$Create$,
|
|
55
55
|
charArray2ujmm1qusno00 as charArray,
|
|
56
|
-
NumberFormatException_init_$Create$
|
|
57
|
-
|
|
56
|
+
NumberFormatException_init_$Create$361k2w325ylq7 as NumberFormatException_init_$Create$,
|
|
57
|
+
toString3o7ifthqydp6e as toString_1,
|
|
58
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
58
59
|
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
59
60
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
60
|
-
ArrayList_init_$Create$
|
|
61
|
+
ArrayList_init_$Create$3bxttkj3v1mea as ArrayList_init_$Create$_0,
|
|
61
62
|
numberToLong1a4cndvg6c52s as numberToLong,
|
|
62
63
|
toLongArray23ixicpzp5r3w as toLongArray,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
Char__plus_impl_qi7pgj3akekecdud2w6 as Char__plus_impl_qi7pgj,
|
|
65
|
+
Char__minus_impl_a2frrh3t0v4pviuv4om as Char__minus_impl_a2frrh,
|
|
65
66
|
toByteArray3caw0hip00os as toByteArray,
|
|
66
67
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
67
68
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
68
69
|
import {
|
|
69
70
|
MultiPartData57syw40llxls as MultiPartData,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
HttpHeaders_getInstanceelogg8fjd54u as HttpHeaders_getInstance,
|
|
72
|
+
MultiPart_getInstance1zzge3g94afj6 as MultiPart_getInstance,
|
|
73
|
+
Companion_getInstance1p3cpld7r1jz3 as Companion_getInstance,
|
|
73
74
|
} from './ktor-ktor-http.mjs';
|
|
74
75
|
import {
|
|
75
76
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
@@ -79,32 +80,32 @@ import {
|
|
|
79
80
|
} from './kotlinx-coroutines-core.mjs';
|
|
80
81
|
import {
|
|
81
82
|
DefaultPool2gb1fm4epwgu9 as DefaultPool,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
readUTF8LineTo3cgartetbq4tk as readUTF8LineTo,
|
|
84
|
+
Companion_getInstance2zbi981hww1p4 as Companion_getInstance_0,
|
|
85
|
+
LineEndingMode__plus_impl_ttpz2j1vdcj3ndf6qez as LineEndingMode__plus_impl_ttpz2j,
|
|
86
|
+
readUntil2jtfemvkt7z1f as readUntil,
|
|
86
87
|
WriterScope3b0bo1enaee6b as WriterScope,
|
|
87
88
|
counted3iniv3aql3f9n as counted,
|
|
88
89
|
writer1eia5its2a1fh as writer,
|
|
89
|
-
|
|
90
|
+
readRemaining1x8kk1vq7p6gm as readRemaining,
|
|
90
91
|
get_remaining1lapv95kcmm0y as get_remaining,
|
|
91
|
-
|
|
92
|
+
skipIfFound1yms04v7e3tuk as skipIfFound,
|
|
92
93
|
ByteChannel3cxdguezl3lu7 as ByteChannel,
|
|
93
94
|
close3semq7pafb42g as close,
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
readPacket2q2gamtzwxjd1 as readPacket,
|
|
96
|
+
copyTo2vm7vz7rr51or as copyTo,
|
|
96
97
|
toByteArray1i3ns5jnoqlv6 as toByteArray_0,
|
|
97
98
|
NoPoolImplgos9n8jphzjp as NoPoolImpl,
|
|
98
99
|
} from './ktor-ktor-io.mjs';
|
|
99
100
|
import {
|
|
100
|
-
ByteString_init_$Create$
|
|
101
|
+
ByteString_init_$Create$1zmsyrjuj9mwj as ByteString_init_$Create$,
|
|
101
102
|
ByteString3c9fk8lsh3lvs as ByteString,
|
|
102
103
|
} from './kotlinx-io-kotlinx-io-bytestring.mjs';
|
|
103
104
|
import {
|
|
104
|
-
IOException_init_$Create$
|
|
105
|
-
EOFException_init_$Create$
|
|
105
|
+
IOException_init_$Create$1wkk79fgwuoz2 as IOException_init_$Create$,
|
|
106
|
+
EOFException_init_$Create$2ki37nn86l2yt as EOFException_init_$Create$,
|
|
106
107
|
IOException1wyutdmfe71nu as IOException,
|
|
107
|
-
IOException_init_$Init$
|
|
108
|
+
IOException_init_$Init$3tijvyh8jladu as IOException_init_$Init$,
|
|
108
109
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
109
110
|
//region block: imports
|
|
110
111
|
var imul = Math.imul;
|
|
@@ -117,16 +118,16 @@ initMetadataForClass(HttpHeadersMap, 'HttpHeadersMap');
|
|
|
117
118
|
initMetadataForClass(IntArrayPool$1, VOID, VOID, DefaultPool);
|
|
118
119
|
initMetadataForClass(HeadersDataPool$1, VOID, VOID, DefaultPool);
|
|
119
120
|
initMetadataForClass(ParserException, 'ParserException', VOID, IllegalStateException);
|
|
120
|
-
initMetadataForCoroutine($parseHeadersCOROUTINE
|
|
121
|
+
initMetadataForCoroutine($parseHeadersCOROUTINE$, CoroutineImpl);
|
|
121
122
|
initMetadataForClass(MultipartEvent, 'MultipartEvent');
|
|
122
123
|
initMetadataForClass(Preamble, 'Preamble', VOID, MultipartEvent);
|
|
123
124
|
initMetadataForClass(MultipartPart, 'MultipartPart', VOID, MultipartEvent);
|
|
124
125
|
initMetadataForClass(Epilogue, 'Epilogue', VOID, MultipartEvent);
|
|
125
126
|
initMetadataForLambda(parseMultipart$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
126
127
|
initMetadataForLambda(parseMultipart$slambda, CoroutineImpl, VOID, [1]);
|
|
127
|
-
initMetadataForCoroutine($parsePartHeadersImplCOROUTINE
|
|
128
|
-
initMetadataForCoroutine($parsePartBodyImplCOROUTINE
|
|
129
|
-
initMetadataForCoroutine($skipIfFoundReadCountCOROUTINE
|
|
128
|
+
initMetadataForCoroutine($parsePartHeadersImplCOROUTINE$, CoroutineImpl);
|
|
129
|
+
initMetadataForCoroutine($parsePartBodyImplCOROUTINE$, CoroutineImpl);
|
|
130
|
+
initMetadataForCoroutine($skipIfFoundReadCountCOROUTINE$, CoroutineImpl);
|
|
130
131
|
initMetadataForClass(Node, 'Node');
|
|
131
132
|
initMetadataForCompanion(Companion);
|
|
132
133
|
initMetadataForClass(AsciiCharTree, 'AsciiCharTree');
|
|
@@ -139,12 +140,12 @@ initMetadataForClass(MutableRange, 'MutableRange');
|
|
|
139
140
|
//endregion
|
|
140
141
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
141
142
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
143
|
+
this.i37_1 = coroutineContext;
|
|
144
|
+
this.j37_1 = null;
|
|
145
|
+
this.k37_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
145
146
|
}
|
|
146
|
-
protoOf(CIOMultipartDataBase).
|
|
147
|
-
return this.
|
|
147
|
+
protoOf(CIOMultipartDataBase).tq = function () {
|
|
148
|
+
return this.i37_1;
|
|
148
149
|
};
|
|
149
150
|
function get_IntArrayPool() {
|
|
150
151
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -157,94 +158,94 @@ function get_HeadersDataPool() {
|
|
|
157
158
|
}
|
|
158
159
|
var HeadersDataPool;
|
|
159
160
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
160
|
-
this.
|
|
161
|
+
this.t37_1 = this$0;
|
|
161
162
|
CoroutineImpl.call(this, resultContinuation);
|
|
162
163
|
}
|
|
163
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
164
|
-
var tmp = this.
|
|
165
|
-
tmp.
|
|
166
|
-
tmp.
|
|
167
|
-
return tmp.
|
|
164
|
+
protoOf(HeadersData$headersStarts$slambda).z37 = function ($this$sequence, $completion) {
|
|
165
|
+
var tmp = this.a38($this$sequence, $completion);
|
|
166
|
+
tmp.n9_1 = Unit_instance;
|
|
167
|
+
tmp.o9_1 = null;
|
|
168
|
+
return tmp.t9();
|
|
168
169
|
};
|
|
169
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
170
|
-
return this.
|
|
170
|
+
protoOf(HeadersData$headersStarts$slambda).ha = function (p1, $completion) {
|
|
171
|
+
return this.z37(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
171
172
|
};
|
|
172
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
173
|
-
var suspendResult = this.
|
|
173
|
+
protoOf(HeadersData$headersStarts$slambda).t9 = function () {
|
|
174
|
+
var suspendResult = this.n9_1;
|
|
174
175
|
$sm: do
|
|
175
176
|
try {
|
|
176
|
-
var tmp = this.
|
|
177
|
+
var tmp = this.l9_1;
|
|
177
178
|
switch (tmp) {
|
|
178
179
|
case 0:
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
180
|
+
this.m9_1 = 7;
|
|
181
|
+
this.v37_1 = 0;
|
|
182
|
+
this.w37_1 = this.t37_1.b38_1.q();
|
|
183
|
+
this.l9_1 = 1;
|
|
183
184
|
continue $sm;
|
|
184
185
|
case 1:
|
|
185
|
-
if (!this.
|
|
186
|
-
this.
|
|
186
|
+
if (!this.w37_1.r()) {
|
|
187
|
+
this.l9_1 = 6;
|
|
187
188
|
continue $sm;
|
|
188
189
|
}
|
|
189
190
|
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
191
|
+
this.x37_1 = this.w37_1.s();
|
|
192
|
+
this.y37_1 = 0;
|
|
193
|
+
this.l9_1 = 2;
|
|
193
194
|
continue $sm;
|
|
194
195
|
case 2:
|
|
195
|
-
if (!(this.
|
|
196
|
-
this.
|
|
196
|
+
if (!(this.y37_1 < this.x37_1.length)) {
|
|
197
|
+
this.l9_1 = 5;
|
|
197
198
|
continue $sm;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
|
-
if (!(this.
|
|
201
|
-
this.
|
|
202
|
-
suspendResult = this.
|
|
201
|
+
if (!(this.t37_1.c38(this.v37_1 + 0 | 0) === -1)) {
|
|
202
|
+
this.l9_1 = 3;
|
|
203
|
+
suspendResult = this.u37_1.ng(this.v37_1, this);
|
|
203
204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
204
205
|
return suspendResult;
|
|
205
206
|
}
|
|
206
207
|
continue $sm;
|
|
207
208
|
} else {
|
|
208
|
-
this.
|
|
209
|
+
this.l9_1 = 4;
|
|
209
210
|
continue $sm;
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
case 3:
|
|
213
|
-
this.
|
|
214
|
+
this.l9_1 = 4;
|
|
214
215
|
continue $sm;
|
|
215
216
|
case 4:
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
217
|
+
this.y37_1 = this.y37_1 + 6 | 0;
|
|
218
|
+
this.v37_1 = this.v37_1 + 6 | 0;
|
|
219
|
+
this.l9_1 = 2;
|
|
219
220
|
continue $sm;
|
|
220
221
|
case 5:
|
|
221
|
-
this.
|
|
222
|
+
this.l9_1 = 1;
|
|
222
223
|
continue $sm;
|
|
223
224
|
case 6:
|
|
224
225
|
return Unit_instance;
|
|
225
226
|
case 7:
|
|
226
|
-
throw this.
|
|
227
|
+
throw this.o9_1;
|
|
227
228
|
}
|
|
228
229
|
} catch ($p) {
|
|
229
230
|
var e = $p;
|
|
230
|
-
if (this.
|
|
231
|
+
if (this.m9_1 === 7) {
|
|
231
232
|
throw e;
|
|
232
233
|
} else {
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
234
|
+
this.l9_1 = this.m9_1;
|
|
235
|
+
this.o9_1 = e;
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
while (true);
|
|
238
239
|
};
|
|
239
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
240
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
241
|
-
i.
|
|
240
|
+
protoOf(HeadersData$headersStarts$slambda).a38 = function ($this$sequence, completion) {
|
|
241
|
+
var i = new HeadersData$headersStarts$slambda(this.t37_1, completion);
|
|
242
|
+
i.u37_1 = $this$sequence;
|
|
242
243
|
return i;
|
|
243
244
|
};
|
|
244
245
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
245
246
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
246
247
|
var l = function ($this$sequence, $completion) {
|
|
247
|
-
return i.
|
|
248
|
+
return i.z37($this$sequence, $completion);
|
|
248
249
|
};
|
|
249
250
|
l.$arity = 1;
|
|
250
251
|
return l;
|
|
@@ -252,137 +253,137 @@ function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
|
252
253
|
function HeadersData() {
|
|
253
254
|
var tmp = this;
|
|
254
255
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
255
|
-
tmp.
|
|
256
|
+
tmp.b38_1 = ArrayList_init_$Create$();
|
|
256
257
|
}
|
|
257
|
-
protoOf(HeadersData).
|
|
258
|
-
return this.
|
|
258
|
+
protoOf(HeadersData).d38 = function () {
|
|
259
|
+
return this.b38_1.t();
|
|
259
260
|
};
|
|
260
|
-
protoOf(HeadersData).
|
|
261
|
+
protoOf(HeadersData).e38 = function (subArraysCount) {
|
|
261
262
|
// Inline function 'kotlin.repeat' call
|
|
262
263
|
var inductionVariable = 0;
|
|
263
264
|
if (inductionVariable < subArraysCount)
|
|
264
265
|
do {
|
|
265
266
|
var index = inductionVariable;
|
|
266
267
|
inductionVariable = inductionVariable + 1 | 0;
|
|
267
|
-
this.
|
|
268
|
+
this.b38_1.k(get_IntArrayPool().y21());
|
|
268
269
|
}
|
|
269
270
|
while (inductionVariable < subArraysCount);
|
|
270
271
|
};
|
|
271
|
-
protoOf(HeadersData).
|
|
272
|
-
return this.
|
|
272
|
+
protoOf(HeadersData).c38 = function (index) {
|
|
273
|
+
return this.b38_1.v(index / 768 | 0)[index % 768 | 0];
|
|
273
274
|
};
|
|
274
|
-
protoOf(HeadersData).
|
|
275
|
-
this.
|
|
275
|
+
protoOf(HeadersData).f38 = function (index, value) {
|
|
276
|
+
this.b38_1.v(index / 768 | 0)[index % 768 | 0] = value;
|
|
276
277
|
};
|
|
277
|
-
protoOf(HeadersData).
|
|
278
|
+
protoOf(HeadersData).g38 = function () {
|
|
278
279
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
279
280
|
};
|
|
280
|
-
protoOf(HeadersData).
|
|
281
|
-
var _iterator__ex2g4s = this.
|
|
281
|
+
protoOf(HeadersData).r1j = function () {
|
|
282
|
+
var _iterator__ex2g4s = this.b38_1.q();
|
|
282
283
|
while (_iterator__ex2g4s.r()) {
|
|
283
284
|
var array = _iterator__ex2g4s.s();
|
|
284
|
-
get_IntArrayPool().
|
|
285
|
+
get_IntArrayPool().z21(array);
|
|
285
286
|
}
|
|
286
|
-
this.
|
|
287
|
+
this.b38_1.j2();
|
|
287
288
|
};
|
|
288
289
|
function thresholdReached($this) {
|
|
289
|
-
return $this.
|
|
290
|
+
return $this.i38_1 >= $this.j38_1 * 0.75;
|
|
290
291
|
}
|
|
291
292
|
function resize($this) {
|
|
292
|
-
var prevSize = $this.
|
|
293
|
-
var prevData = $this.
|
|
294
|
-
$this.
|
|
295
|
-
$this.
|
|
293
|
+
var prevSize = $this.i38_1;
|
|
294
|
+
var prevData = $this.k38_1;
|
|
295
|
+
$this.i38_1 = 0;
|
|
296
|
+
$this.j38_1 = imul($this.j38_1, 2) | 128;
|
|
296
297
|
var tmp = $this;
|
|
297
298
|
// Inline function 'kotlin.apply' call
|
|
298
|
-
var this_0 = get_HeadersDataPool().
|
|
299
|
-
this_0.
|
|
300
|
-
tmp.
|
|
301
|
-
var _iterator__ex2g4s = prevData.
|
|
299
|
+
var this_0 = get_HeadersDataPool().y21();
|
|
300
|
+
this_0.e38(imul(prevData.d38(), 2) | 1);
|
|
301
|
+
tmp.k38_1 = this_0;
|
|
302
|
+
var _iterator__ex2g4s = prevData.g38().q();
|
|
302
303
|
while (_iterator__ex2g4s.r()) {
|
|
303
304
|
var headerOffset = _iterator__ex2g4s.s();
|
|
304
|
-
$this.
|
|
305
|
+
$this.l38(prevData.c38(headerOffset + 1 | 0), prevData.c38(headerOffset + 2 | 0), prevData.c38(headerOffset + 3 | 0), prevData.c38(headerOffset + 4 | 0));
|
|
305
306
|
}
|
|
306
|
-
get_HeadersDataPool().
|
|
307
|
+
get_HeadersDataPool().z21(prevData);
|
|
307
308
|
// Inline function 'kotlin.require' call
|
|
308
309
|
// Inline function 'kotlin.require' call
|
|
309
|
-
if (!(prevSize === $this.
|
|
310
|
+
if (!(prevSize === $this.i38_1)) {
|
|
310
311
|
var message = 'Failed requirement.';
|
|
311
312
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
315
|
function headerHasName($this, name, headerOffset) {
|
|
315
|
-
var nameStartIndex = $this.
|
|
316
|
-
var nameEndIndex = $this.
|
|
317
|
-
return equalsLowerCase($this.
|
|
316
|
+
var nameStartIndex = $this.k38_1.c38(headerOffset + 1 | 0);
|
|
317
|
+
var nameEndIndex = $this.k38_1.c38(headerOffset + 2 | 0);
|
|
318
|
+
return equalsLowerCase($this.h38_1, nameStartIndex, nameEndIndex, name);
|
|
318
319
|
}
|
|
319
320
|
function HttpHeadersMap(builder) {
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
321
|
+
this.h38_1 = builder;
|
|
322
|
+
this.i38_1 = 0;
|
|
323
|
+
this.j38_1 = 0;
|
|
324
|
+
this.k38_1 = get_HeadersDataPool().y21();
|
|
324
325
|
}
|
|
325
|
-
protoOf(HttpHeadersMap).
|
|
326
|
-
if (this.
|
|
326
|
+
protoOf(HttpHeadersMap).b2p = function (name) {
|
|
327
|
+
if (this.i38_1 === 0)
|
|
327
328
|
return null;
|
|
328
329
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
329
330
|
var this_0 = hashCodeLowerCase(name);
|
|
330
331
|
var hash = abs(this_0);
|
|
331
|
-
var headerIndex = hash % this.
|
|
332
|
-
while (!(this.
|
|
332
|
+
var headerIndex = hash % this.j38_1 | 0;
|
|
333
|
+
while (!(this.k38_1.c38(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
333
334
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
334
|
-
return this.
|
|
335
|
+
return this.m38(imul(headerIndex, 6));
|
|
335
336
|
}
|
|
336
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
337
|
+
headerIndex = (headerIndex + 1 | 0) % this.j38_1 | 0;
|
|
337
338
|
}
|
|
338
339
|
return null;
|
|
339
340
|
};
|
|
340
|
-
protoOf(HttpHeadersMap).
|
|
341
|
-
return this.
|
|
341
|
+
protoOf(HttpHeadersMap).n38 = function () {
|
|
342
|
+
return this.k38_1.g38();
|
|
342
343
|
};
|
|
343
|
-
protoOf(HttpHeadersMap).
|
|
344
|
+
protoOf(HttpHeadersMap).l38 = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
344
345
|
if (thresholdReached(this)) {
|
|
345
346
|
resize(this);
|
|
346
347
|
}
|
|
347
348
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
348
|
-
var this_0 = hashCodeLowerCase(this.
|
|
349
|
+
var this_0 = hashCodeLowerCase(this.h38_1, nameStartIndex, nameEndIndex);
|
|
349
350
|
var hash = abs(this_0);
|
|
350
|
-
var name = this.
|
|
351
|
-
var headerIndex = hash % this.
|
|
351
|
+
var name = this.h38_1.c(nameStartIndex, nameEndIndex);
|
|
352
|
+
var headerIndex = hash % this.j38_1 | 0;
|
|
352
353
|
var sameNameHeaderIndex = -1;
|
|
353
|
-
while (!(this.
|
|
354
|
+
while (!(this.k38_1.c38(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
354
355
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
355
356
|
sameNameHeaderIndex = headerIndex;
|
|
356
357
|
}
|
|
357
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
358
|
+
headerIndex = (headerIndex + 1 | 0) % this.j38_1 | 0;
|
|
358
359
|
}
|
|
359
360
|
var headerOffset = imul(headerIndex, 6);
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
363
|
-
this.
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
361
|
+
this.k38_1.f38(headerOffset + 0 | 0, hash);
|
|
362
|
+
this.k38_1.f38(headerOffset + 1 | 0, nameStartIndex);
|
|
363
|
+
this.k38_1.f38(headerOffset + 2 | 0, nameEndIndex);
|
|
364
|
+
this.k38_1.f38(headerOffset + 3 | 0, valueStartIndex);
|
|
365
|
+
this.k38_1.f38(headerOffset + 4 | 0, valueEndIndex);
|
|
366
|
+
this.k38_1.f38(headerOffset + 5 | 0, -1);
|
|
366
367
|
if (!(sameNameHeaderIndex === -1)) {
|
|
367
|
-
this.
|
|
368
|
+
this.k38_1.f38(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
368
369
|
}
|
|
369
|
-
this.
|
|
370
|
+
this.i38_1 = this.i38_1 + 1 | 0;
|
|
370
371
|
};
|
|
371
|
-
protoOf(HttpHeadersMap).
|
|
372
|
-
var nameStartIndex = this.
|
|
373
|
-
var nameEndIndex = this.
|
|
374
|
-
return this.
|
|
372
|
+
protoOf(HttpHeadersMap).v38 = function (headerOffset) {
|
|
373
|
+
var nameStartIndex = this.k38_1.c38(headerOffset + 1 | 0);
|
|
374
|
+
var nameEndIndex = this.k38_1.c38(headerOffset + 2 | 0);
|
|
375
|
+
return this.h38_1.c(nameStartIndex, nameEndIndex);
|
|
375
376
|
};
|
|
376
|
-
protoOf(HttpHeadersMap).
|
|
377
|
-
var valueStartIndex = this.
|
|
378
|
-
var valueEndIndex = this.
|
|
379
|
-
return this.
|
|
377
|
+
protoOf(HttpHeadersMap).m38 = function (headerOffset) {
|
|
378
|
+
var valueStartIndex = this.k38_1.c38(headerOffset + 3 | 0);
|
|
379
|
+
var valueEndIndex = this.k38_1.c38(headerOffset + 4 | 0);
|
|
380
|
+
return this.h38_1.c(valueStartIndex, valueEndIndex);
|
|
380
381
|
};
|
|
381
|
-
protoOf(HttpHeadersMap).
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
get_HeadersDataPool().
|
|
385
|
-
this.
|
|
382
|
+
protoOf(HttpHeadersMap).r1j = function () {
|
|
383
|
+
this.i38_1 = 0;
|
|
384
|
+
this.j38_1 = 0;
|
|
385
|
+
get_HeadersDataPool().z21(this.k38_1);
|
|
386
|
+
this.k38_1 = get_HeadersDataPool().y21();
|
|
386
387
|
};
|
|
387
388
|
protoOf(HttpHeadersMap).toString = function () {
|
|
388
389
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -393,20 +394,20 @@ protoOf(HttpHeadersMap).toString = function () {
|
|
|
393
394
|
};
|
|
394
395
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
395
396
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
396
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
397
|
+
var _iterator__ex2g4s = _this__u8e3s4.n38().q();
|
|
397
398
|
while (_iterator__ex2g4s.r()) {
|
|
398
399
|
var offset = _iterator__ex2g4s.s();
|
|
399
400
|
out.o(indent);
|
|
400
|
-
out.o(_this__u8e3s4.
|
|
401
|
+
out.o(_this__u8e3s4.v38(offset));
|
|
401
402
|
out.o(' => ');
|
|
402
|
-
out.o(_this__u8e3s4.
|
|
403
|
+
out.o(_this__u8e3s4.m38(offset));
|
|
403
404
|
out.o('\n');
|
|
404
405
|
}
|
|
405
406
|
}
|
|
406
407
|
function IntArrayPool$1() {
|
|
407
408
|
DefaultPool.call(this, 1000);
|
|
408
409
|
}
|
|
409
|
-
protoOf(IntArrayPool$1).
|
|
410
|
+
protoOf(IntArrayPool$1).r21 = function () {
|
|
410
411
|
var tmp = 0;
|
|
411
412
|
var tmp_0 = new Int32Array(768);
|
|
412
413
|
while (tmp < 768) {
|
|
@@ -415,25 +416,25 @@ protoOf(IntArrayPool$1).r20 = function () {
|
|
|
415
416
|
}
|
|
416
417
|
return tmp_0;
|
|
417
418
|
};
|
|
418
|
-
protoOf(IntArrayPool$1).
|
|
419
|
+
protoOf(IntArrayPool$1).z38 = function (instance) {
|
|
419
420
|
fill(instance, -1);
|
|
420
|
-
return protoOf(DefaultPool).
|
|
421
|
+
return protoOf(DefaultPool).w21.call(this, instance);
|
|
421
422
|
};
|
|
422
|
-
protoOf(IntArrayPool$1).
|
|
423
|
-
return this.
|
|
423
|
+
protoOf(IntArrayPool$1).w21 = function (instance) {
|
|
424
|
+
return this.z38(isIntArray(instance) ? instance : THROW_CCE());
|
|
424
425
|
};
|
|
425
426
|
function HeadersDataPool$1() {
|
|
426
427
|
DefaultPool.call(this, 1000);
|
|
427
428
|
}
|
|
428
|
-
protoOf(HeadersDataPool$1).
|
|
429
|
+
protoOf(HeadersDataPool$1).r21 = function () {
|
|
429
430
|
return new HeadersData();
|
|
430
431
|
};
|
|
431
|
-
protoOf(HeadersDataPool$1).
|
|
432
|
-
instance.
|
|
433
|
-
return protoOf(DefaultPool).
|
|
432
|
+
protoOf(HeadersDataPool$1).d39 = function (instance) {
|
|
433
|
+
instance.r1j();
|
|
434
|
+
return protoOf(DefaultPool).w21.call(this, instance);
|
|
434
435
|
};
|
|
435
|
-
protoOf(HeadersDataPool$1).
|
|
436
|
-
return this.
|
|
436
|
+
protoOf(HeadersDataPool$1).w21 = function (instance) {
|
|
437
|
+
return this.d39(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
437
438
|
};
|
|
438
439
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
439
440
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -456,23 +457,23 @@ var httpLineEndings;
|
|
|
456
457
|
var versions;
|
|
457
458
|
function parseHeaders(input, builder, range, $completion) {
|
|
458
459
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
459
|
-
var tmp = new $parseHeadersCOROUTINE$
|
|
460
|
-
tmp.
|
|
461
|
-
tmp.
|
|
462
|
-
return tmp.
|
|
460
|
+
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
461
|
+
tmp.n9_1 = Unit_instance;
|
|
462
|
+
tmp.o9_1 = null;
|
|
463
|
+
return tmp.t9();
|
|
463
464
|
}
|
|
464
465
|
function parseHeaderName(text, range) {
|
|
465
466
|
_init_properties_HttpParser_kt__gbdom1();
|
|
466
|
-
var index = range.
|
|
467
|
-
var end = range.
|
|
467
|
+
var index = range.q39_1;
|
|
468
|
+
var end = range.r39_1;
|
|
468
469
|
while (index < end) {
|
|
469
470
|
var ch = text.b(index);
|
|
470
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
471
|
-
range.
|
|
471
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.q39_1)) {
|
|
472
|
+
range.q39_1 = index + 1 | 0;
|
|
472
473
|
return index;
|
|
473
474
|
}
|
|
474
475
|
if (isDelimiter(ch)) {
|
|
475
|
-
parseHeaderNameFailed(text, index, range.
|
|
476
|
+
parseHeaderNameFailed(text, index, range.q39_1, ch);
|
|
476
477
|
}
|
|
477
478
|
index = index + 1 | 0;
|
|
478
479
|
}
|
|
@@ -480,12 +481,12 @@ function parseHeaderName(text, range) {
|
|
|
480
481
|
}
|
|
481
482
|
function parseHeaderValue(text, range) {
|
|
482
483
|
_init_properties_HttpParser_kt__gbdom1();
|
|
483
|
-
var start = range.
|
|
484
|
-
var end = range.
|
|
484
|
+
var start = range.q39_1;
|
|
485
|
+
var end = range.r39_1;
|
|
485
486
|
var index = start;
|
|
486
487
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
487
488
|
if (index >= end) {
|
|
488
|
-
range.
|
|
489
|
+
range.q39_1 = end;
|
|
489
490
|
return Unit_instance;
|
|
490
491
|
}
|
|
491
492
|
var valueStart = index;
|
|
@@ -499,8 +500,8 @@ function parseHeaderValue(text, range) {
|
|
|
499
500
|
valueLastIndex = index;
|
|
500
501
|
index = index + 1 | 0;
|
|
501
502
|
}
|
|
502
|
-
range.
|
|
503
|
-
range.
|
|
503
|
+
range.q39_1 = valueStart;
|
|
504
|
+
range.r39_1 = valueLastIndex + 1 | 0;
|
|
504
505
|
}
|
|
505
506
|
function validateHostHeader(host) {
|
|
506
507
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -541,10 +542,10 @@ function parseHeaderNameFailed(text, index, start, ch) {
|
|
|
541
542
|
}
|
|
542
543
|
function noColonFound(text, range) {
|
|
543
544
|
_init_properties_HttpParser_kt__gbdom1();
|
|
544
|
-
var
|
|
545
|
+
var tmp2 = range.q39_1;
|
|
545
546
|
// Inline function 'kotlin.text.substring' call
|
|
546
|
-
var endIndex = range.
|
|
547
|
-
var tmp$ret$0 = toString(charSequenceSubSequence(text,
|
|
547
|
+
var endIndex = range.r39_1;
|
|
548
|
+
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
548
549
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
549
550
|
}
|
|
550
551
|
function characterIsNotAllowed(text, ch) {
|
|
@@ -557,32 +558,32 @@ function ParserException(message) {
|
|
|
557
558
|
IllegalStateException_init_$Init$(message, this);
|
|
558
559
|
captureStack(this, ParserException);
|
|
559
560
|
}
|
|
560
|
-
function $parseHeadersCOROUTINE$
|
|
561
|
+
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
561
562
|
CoroutineImpl.call(this, resultContinuation);
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
563
|
+
this.m39_1 = input;
|
|
564
|
+
this.n39_1 = builder;
|
|
565
|
+
this.o39_1 = range;
|
|
565
566
|
}
|
|
566
|
-
protoOf($parseHeadersCOROUTINE$
|
|
567
|
-
var suspendResult = this.
|
|
567
|
+
protoOf($parseHeadersCOROUTINE$).t9 = function () {
|
|
568
|
+
var suspendResult = this.n9_1;
|
|
568
569
|
$sm: do
|
|
569
570
|
try {
|
|
570
|
-
var tmp = this.
|
|
571
|
+
var tmp = this.l9_1;
|
|
571
572
|
switch (tmp) {
|
|
572
573
|
case 0:
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
574
|
+
this.m9_1 = 7;
|
|
575
|
+
this.p39_1 = new HttpHeadersMap(this.n39_1);
|
|
576
|
+
this.m9_1 = 6;
|
|
577
|
+
this.l9_1 = 1;
|
|
577
578
|
continue $sm;
|
|
578
579
|
case 1:
|
|
579
580
|
if (!true) {
|
|
580
|
-
this.
|
|
581
|
+
this.l9_1 = 5;
|
|
581
582
|
continue $sm;
|
|
582
583
|
}
|
|
583
584
|
|
|
584
|
-
this.
|
|
585
|
-
suspendResult = readUTF8LineTo(this.
|
|
585
|
+
this.l9_1 = 2;
|
|
586
|
+
suspendResult = readUTF8LineTo(this.m39_1, this.n39_1, 8192, get_httpLineEndings(), this);
|
|
586
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
587
588
|
return suspendResult;
|
|
588
589
|
}
|
|
@@ -591,21 +592,21 @@ protoOf($parseHeadersCOROUTINE$4).s9 = function () {
|
|
|
591
592
|
case 2:
|
|
592
593
|
var ARGUMENT = suspendResult;
|
|
593
594
|
if (!ARGUMENT) {
|
|
594
|
-
this.
|
|
595
|
+
this.p39_1.r1j();
|
|
595
596
|
return null;
|
|
596
597
|
} else {
|
|
597
|
-
this.
|
|
598
|
+
this.l9_1 = 3;
|
|
598
599
|
continue $sm;
|
|
599
600
|
}
|
|
600
601
|
|
|
601
602
|
case 3:
|
|
602
|
-
this.
|
|
603
|
-
var rangeLength = this.
|
|
603
|
+
this.o39_1.r39_1 = this.n39_1.u38_1;
|
|
604
|
+
var rangeLength = this.o39_1.r39_1 - this.o39_1.q39_1 | 0;
|
|
604
605
|
if (rangeLength === 0) {
|
|
605
|
-
this.
|
|
606
|
+
this.l9_1 = 5;
|
|
606
607
|
continue $sm;
|
|
607
608
|
} else {
|
|
608
|
-
this.
|
|
609
|
+
this.l9_1 = 4;
|
|
609
610
|
continue $sm;
|
|
610
611
|
}
|
|
611
612
|
|
|
@@ -615,44 +616,44 @@ protoOf($parseHeadersCOROUTINE$4).s9 = function () {
|
|
|
615
616
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
616
617
|
}
|
|
617
618
|
|
|
618
|
-
var nameStart = this.
|
|
619
|
-
var nameEnd = parseHeaderName(this.
|
|
620
|
-
var headerEnd = this.
|
|
621
|
-
parseHeaderValue(this.
|
|
622
|
-
var valueStart = this.
|
|
623
|
-
var valueEnd = this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
619
|
+
var nameStart = this.o39_1.q39_1;
|
|
620
|
+
var nameEnd = parseHeaderName(this.n39_1, this.o39_1);
|
|
621
|
+
var headerEnd = this.o39_1.r39_1;
|
|
622
|
+
parseHeaderValue(this.n39_1, this.o39_1);
|
|
623
|
+
var valueStart = this.o39_1.q39_1;
|
|
624
|
+
var valueEnd = this.o39_1.r39_1;
|
|
625
|
+
this.o39_1.q39_1 = headerEnd;
|
|
626
|
+
this.p39_1.l38(nameStart, nameEnd, valueStart, valueEnd);
|
|
627
|
+
this.l9_1 = 1;
|
|
627
628
|
continue $sm;
|
|
628
629
|
case 5:
|
|
629
|
-
var host = this.
|
|
630
|
+
var host = this.p39_1.b2p(HttpHeaders_getInstance().i2y_1);
|
|
630
631
|
if (!(host == null)) {
|
|
631
632
|
validateHostHeader(host);
|
|
632
633
|
}
|
|
633
634
|
|
|
634
|
-
return this.
|
|
635
|
+
return this.p39_1;
|
|
635
636
|
case 6:
|
|
636
|
-
this.
|
|
637
|
-
var tmp_0 = this.
|
|
637
|
+
this.m9_1 = 7;
|
|
638
|
+
var tmp_0 = this.o9_1;
|
|
638
639
|
if (tmp_0 instanceof Error) {
|
|
639
|
-
var t = this.
|
|
640
|
-
this.
|
|
640
|
+
var t = this.o9_1;
|
|
641
|
+
this.p39_1.r1j();
|
|
641
642
|
throw t;
|
|
642
643
|
} else {
|
|
643
|
-
throw this.
|
|
644
|
+
throw this.o9_1;
|
|
644
645
|
}
|
|
645
646
|
|
|
646
647
|
case 7:
|
|
647
|
-
throw this.
|
|
648
|
+
throw this.o9_1;
|
|
648
649
|
}
|
|
649
650
|
} catch ($p) {
|
|
650
651
|
var e = $p;
|
|
651
|
-
if (this.
|
|
652
|
+
if (this.m9_1 === 7) {
|
|
652
653
|
throw e;
|
|
653
654
|
} else {
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
655
|
+
this.l9_1 = this.m9_1;
|
|
656
|
+
this.o9_1 = e;
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
659
|
while (true);
|
|
@@ -662,8 +663,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
662
663
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
663
664
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
664
665
|
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))]);
|
|
665
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().
|
|
666
|
-
versions = Companion_instance.
|
|
666
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().s1w_1, Companion_getInstance_0().r1w_1);
|
|
667
|
+
versions = Companion_instance.s39(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
667
668
|
}
|
|
668
669
|
}
|
|
669
670
|
function get_CrLf() {
|
|
@@ -678,23 +679,23 @@ function get_PrefixString() {
|
|
|
678
679
|
var PrefixString;
|
|
679
680
|
function Preamble(body) {
|
|
680
681
|
MultipartEvent.call(this);
|
|
681
|
-
this.
|
|
682
|
+
this.t39_1 = body;
|
|
682
683
|
}
|
|
683
684
|
function MultipartPart(headers, body) {
|
|
684
685
|
MultipartEvent.call(this);
|
|
685
|
-
this.
|
|
686
|
-
this.
|
|
686
|
+
this.u39_1 = headers;
|
|
687
|
+
this.v39_1 = body;
|
|
687
688
|
}
|
|
688
689
|
function Epilogue(body) {
|
|
689
690
|
MultipartEvent.call(this);
|
|
690
|
-
this.
|
|
691
|
+
this.w39_1 = body;
|
|
691
692
|
}
|
|
692
693
|
function MultipartEvent() {
|
|
693
694
|
}
|
|
694
695
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
695
696
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
696
697
|
_init_properties_Multipart_kt__ato98a();
|
|
697
|
-
if (!MultiPart_getInstance().
|
|
698
|
+
if (!MultiPart_getInstance().y2v(contentType)) {
|
|
698
699
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
699
700
|
}
|
|
700
701
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -841,22 +842,22 @@ function parsePreambleImpl(boundary, input, output, limit, $completion) {
|
|
|
841
842
|
return readUntil(input, boundary, output, limit, true, $completion);
|
|
842
843
|
}
|
|
843
844
|
function parsePartHeadersImpl(input, $completion) {
|
|
844
|
-
var tmp = new $parsePartHeadersImplCOROUTINE$
|
|
845
|
-
tmp.
|
|
846
|
-
tmp.
|
|
847
|
-
return tmp.
|
|
845
|
+
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
846
|
+
tmp.n9_1 = Unit_instance;
|
|
847
|
+
tmp.o9_1 = null;
|
|
848
|
+
return tmp.t9();
|
|
848
849
|
}
|
|
849
850
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
850
|
-
var tmp = new $parsePartBodyImplCOROUTINE$
|
|
851
|
-
tmp.
|
|
852
|
-
tmp.
|
|
853
|
-
return tmp.
|
|
851
|
+
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
852
|
+
tmp.n9_1 = Unit_instance;
|
|
853
|
+
tmp.o9_1 = null;
|
|
854
|
+
return tmp.t9();
|
|
854
855
|
}
|
|
855
856
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
856
|
-
var tmp = new $skipIfFoundReadCountCOROUTINE$
|
|
857
|
-
tmp.
|
|
858
|
-
tmp.
|
|
859
|
-
return tmp.
|
|
857
|
+
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
858
|
+
tmp.n9_1 = Unit_instance;
|
|
859
|
+
tmp.o9_1 = null;
|
|
860
|
+
return tmp.t9();
|
|
860
861
|
}
|
|
861
862
|
function throwLimitExceeded(actual, limit) {
|
|
862
863
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -871,37 +872,37 @@ function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
|
871
872
|
boundaryBytes[_unary__edvuaz] = value;
|
|
872
873
|
}
|
|
873
874
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
874
|
-
this.
|
|
875
|
-
this.
|
|
875
|
+
this.s3b_1 = $firstBoundary;
|
|
876
|
+
this.t3b_1 = $countedInput;
|
|
876
877
|
CoroutineImpl.call(this, resultContinuation);
|
|
877
878
|
}
|
|
878
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
879
|
-
var tmp = this.
|
|
880
|
-
tmp.
|
|
881
|
-
tmp.
|
|
882
|
-
return tmp.
|
|
879
|
+
protoOf(parseMultipart$slambda$slambda).v3b = function ($this$writer, $completion) {
|
|
880
|
+
var tmp = this.w3b($this$writer, $completion);
|
|
881
|
+
tmp.n9_1 = Unit_instance;
|
|
882
|
+
tmp.o9_1 = null;
|
|
883
|
+
return tmp.t9();
|
|
883
884
|
};
|
|
884
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
885
|
-
return this.
|
|
885
|
+
protoOf(parseMultipart$slambda$slambda).ha = function (p1, $completion) {
|
|
886
|
+
return this.v3b(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
886
887
|
};
|
|
887
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
888
|
-
var suspendResult = this.
|
|
888
|
+
protoOf(parseMultipart$slambda$slambda).t9 = function () {
|
|
889
|
+
var suspendResult = this.n9_1;
|
|
889
890
|
$sm: do
|
|
890
891
|
try {
|
|
891
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.l9_1;
|
|
892
893
|
switch (tmp) {
|
|
893
894
|
case 0:
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
896
|
-
suspendResult = parsePreambleImpl(this.
|
|
895
|
+
this.m9_1 = 3;
|
|
896
|
+
this.l9_1 = 1;
|
|
897
|
+
suspendResult = parsePreambleImpl(this.s3b_1, this.t3b_1, this.u3b_1.g1z_1, new Long(8193, 0), this);
|
|
897
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
898
899
|
return suspendResult;
|
|
899
900
|
}
|
|
900
901
|
|
|
901
902
|
continue $sm;
|
|
902
903
|
case 1:
|
|
903
|
-
this.
|
|
904
|
-
suspendResult = this.
|
|
904
|
+
this.l9_1 = 2;
|
|
905
|
+
suspendResult = this.u3b_1.g1z_1.c1s(this);
|
|
905
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
906
907
|
return suspendResult;
|
|
907
908
|
}
|
|
@@ -910,217 +911,217 @@ protoOf(parseMultipart$slambda$slambda).s9 = function () {
|
|
|
910
911
|
case 2:
|
|
911
912
|
return Unit_instance;
|
|
912
913
|
case 3:
|
|
913
|
-
throw this.
|
|
914
|
+
throw this.o9_1;
|
|
914
915
|
}
|
|
915
916
|
} catch ($p) {
|
|
916
917
|
var e = $p;
|
|
917
|
-
if (this.
|
|
918
|
+
if (this.m9_1 === 3) {
|
|
918
919
|
throw e;
|
|
919
920
|
} else {
|
|
920
|
-
this.
|
|
921
|
-
this.
|
|
921
|
+
this.l9_1 = this.m9_1;
|
|
922
|
+
this.o9_1 = e;
|
|
922
923
|
}
|
|
923
924
|
}
|
|
924
925
|
while (true);
|
|
925
926
|
};
|
|
926
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
927
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
928
|
-
i.
|
|
927
|
+
protoOf(parseMultipart$slambda$slambda).w3b = function ($this$writer, completion) {
|
|
928
|
+
var i = new parseMultipart$slambda$slambda(this.s3b_1, this.t3b_1, completion);
|
|
929
|
+
i.u3b_1 = $this$writer;
|
|
929
930
|
return i;
|
|
930
931
|
};
|
|
931
932
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
932
933
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
933
934
|
var l = function ($this$writer, $completion) {
|
|
934
|
-
return i.
|
|
935
|
+
return i.v3b($this$writer, $completion);
|
|
935
936
|
};
|
|
936
937
|
l.$arity = 1;
|
|
937
938
|
return l;
|
|
938
939
|
}
|
|
939
940
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
941
|
+
this.f3c_1 = $input;
|
|
942
|
+
this.g3c_1 = $boundaryPrefixed;
|
|
943
|
+
this.h3c_1 = $maxPartSize;
|
|
944
|
+
this.i3c_1 = $totalLength;
|
|
944
945
|
CoroutineImpl.call(this, resultContinuation);
|
|
945
946
|
}
|
|
946
|
-
protoOf(parseMultipart$slambda).
|
|
947
|
-
var tmp = this.
|
|
948
|
-
tmp.
|
|
949
|
-
tmp.
|
|
950
|
-
return tmp.
|
|
947
|
+
protoOf(parseMultipart$slambda).a3d = function ($this$produce, $completion) {
|
|
948
|
+
var tmp = this.b3d($this$produce, $completion);
|
|
949
|
+
tmp.n9_1 = Unit_instance;
|
|
950
|
+
tmp.o9_1 = null;
|
|
951
|
+
return tmp.t9();
|
|
951
952
|
};
|
|
952
|
-
protoOf(parseMultipart$slambda).
|
|
953
|
-
return this.
|
|
953
|
+
protoOf(parseMultipart$slambda).ha = function (p1, $completion) {
|
|
954
|
+
return this.a3d((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
954
955
|
};
|
|
955
|
-
protoOf(parseMultipart$slambda).
|
|
956
|
-
var suspendResult = this.
|
|
956
|
+
protoOf(parseMultipart$slambda).t9 = function () {
|
|
957
|
+
var suspendResult = this.n9_1;
|
|
957
958
|
$sm: do
|
|
958
959
|
try {
|
|
959
|
-
var tmp = this.
|
|
960
|
+
var tmp = this.l9_1;
|
|
960
961
|
switch (tmp) {
|
|
961
962
|
case 0:
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
this.
|
|
967
|
-
suspendResult = readRemaining(writer(this.
|
|
963
|
+
this.m9_1 = 23;
|
|
964
|
+
this.k3c_1 = counted(this.f3c_1);
|
|
965
|
+
this.l3c_1 = this.k3c_1.f21();
|
|
966
|
+
this.m3c_1 = this.g3c_1.e1m(get_PrefixString().t());
|
|
967
|
+
this.l9_1 = 1;
|
|
968
|
+
suspendResult = readRemaining(writer(this.j3c_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.m3c_1, this.k3c_1, null)).e1z_1, this);
|
|
968
969
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
970
|
return suspendResult;
|
|
970
971
|
}
|
|
971
972
|
|
|
972
973
|
continue $sm;
|
|
973
974
|
case 1:
|
|
974
|
-
this.
|
|
975
|
-
if (get_remaining(this.
|
|
976
|
-
this.
|
|
977
|
-
suspendResult = this.
|
|
975
|
+
this.n3c_1 = suspendResult;
|
|
976
|
+
if (get_remaining(this.n3c_1).h1(new Long(0, 0)) > 0) {
|
|
977
|
+
this.l9_1 = 2;
|
|
978
|
+
suspendResult = this.j3c_1.h1b(new Preamble(this.n3c_1), this);
|
|
978
979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
979
980
|
return suspendResult;
|
|
980
981
|
}
|
|
981
982
|
continue $sm;
|
|
982
983
|
} else {
|
|
983
|
-
this.
|
|
984
|
+
this.l9_1 = 3;
|
|
984
985
|
continue $sm;
|
|
985
986
|
}
|
|
986
987
|
|
|
987
988
|
case 2:
|
|
988
|
-
this.
|
|
989
|
+
this.l9_1 = 3;
|
|
989
990
|
continue $sm;
|
|
990
991
|
case 3:
|
|
991
|
-
this.
|
|
992
|
+
this.l9_1 = 4;
|
|
992
993
|
continue $sm;
|
|
993
994
|
case 4:
|
|
994
|
-
if (!this.
|
|
995
|
-
this.
|
|
996
|
-
suspendResult = skipIfFound(this.
|
|
995
|
+
if (!this.k3c_1.z1r()) {
|
|
996
|
+
this.l9_1 = 5;
|
|
997
|
+
suspendResult = skipIfFound(this.k3c_1, get_PrefixString(), this);
|
|
997
998
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
998
999
|
return suspendResult;
|
|
999
1000
|
}
|
|
1000
1001
|
continue $sm;
|
|
1001
1002
|
} else {
|
|
1002
|
-
this.
|
|
1003
|
-
this.
|
|
1003
|
+
this.o3c_1 = false;
|
|
1004
|
+
this.l9_1 = 6;
|
|
1004
1005
|
continue $sm;
|
|
1005
1006
|
}
|
|
1006
1007
|
|
|
1007
1008
|
case 5:
|
|
1008
|
-
this.
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1009
|
+
this.p3c_1 = suspendResult;
|
|
1010
|
+
this.o3c_1 = !this.p3c_1;
|
|
1011
|
+
this.l9_1 = 6;
|
|
1011
1012
|
continue $sm;
|
|
1012
1013
|
case 6:
|
|
1013
|
-
if (!this.
|
|
1014
|
-
this.
|
|
1014
|
+
if (!this.o3c_1) {
|
|
1015
|
+
this.l9_1 = 13;
|
|
1015
1016
|
continue $sm;
|
|
1016
1017
|
}
|
|
1017
1018
|
|
|
1018
|
-
this.
|
|
1019
|
-
suspendResult = skipIfFound(this.
|
|
1019
|
+
this.l9_1 = 7;
|
|
1020
|
+
suspendResult = skipIfFound(this.k3c_1, get_CrLf(), this);
|
|
1020
1021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1021
1022
|
return suspendResult;
|
|
1022
1023
|
}
|
|
1023
1024
|
|
|
1024
1025
|
continue $sm;
|
|
1025
1026
|
case 7:
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1029
|
-
this.
|
|
1030
|
-
suspendResult = this.
|
|
1027
|
+
this.q3c_1 = new ByteChannel();
|
|
1028
|
+
this.r3c_1 = CompletableDeferred();
|
|
1029
|
+
this.s3c_1 = new MultipartPart(this.r3c_1, this.q3c_1);
|
|
1030
|
+
this.l9_1 = 8;
|
|
1031
|
+
suspendResult = this.j3c_1.h1b(this.s3c_1, this);
|
|
1031
1032
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1032
1033
|
return suspendResult;
|
|
1033
1034
|
}
|
|
1034
1035
|
|
|
1035
1036
|
continue $sm;
|
|
1036
1037
|
case 8:
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1040
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1038
|
+
this.t3c_1 = null;
|
|
1039
|
+
this.m9_1 = 12;
|
|
1040
|
+
this.l9_1 = 9;
|
|
1041
|
+
suspendResult = parsePartHeadersImpl(this.k3c_1, this);
|
|
1041
1042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1042
1043
|
return suspendResult;
|
|
1043
1044
|
}
|
|
1044
1045
|
|
|
1045
1046
|
continue $sm;
|
|
1046
1047
|
case 9:
|
|
1047
|
-
this.
|
|
1048
|
-
if (!this.
|
|
1049
|
-
this.
|
|
1048
|
+
this.t3c_1 = suspendResult;
|
|
1049
|
+
if (!this.r3c_1.py(this.t3c_1)) {
|
|
1050
|
+
this.t3c_1.r1j();
|
|
1050
1051
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1051
1052
|
}
|
|
1052
1053
|
|
|
1053
|
-
this.
|
|
1054
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1054
|
+
this.l9_1 = 10;
|
|
1055
|
+
suspendResult = parsePartBodyImpl(this.g3c_1, this.k3c_1, this.q3c_1, this.t3c_1, this.h3c_1, this);
|
|
1055
1056
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1056
1057
|
return suspendResult;
|
|
1057
1058
|
}
|
|
1058
1059
|
|
|
1059
1060
|
continue $sm;
|
|
1060
1061
|
case 10:
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1062
|
+
this.q3c_1.r4();
|
|
1063
|
+
this.m9_1 = 23;
|
|
1064
|
+
this.l9_1 = 11;
|
|
1064
1065
|
continue $sm;
|
|
1065
1066
|
case 11:
|
|
1066
|
-
this.
|
|
1067
|
-
this.
|
|
1067
|
+
this.m9_1 = 23;
|
|
1068
|
+
this.l9_1 = 4;
|
|
1068
1069
|
continue $sm;
|
|
1069
1070
|
case 12:
|
|
1070
|
-
this.
|
|
1071
|
-
var tmp_0 = this.
|
|
1071
|
+
this.m9_1 = 23;
|
|
1072
|
+
var tmp_0 = this.o9_1;
|
|
1072
1073
|
if (tmp_0 instanceof Error) {
|
|
1073
|
-
this.
|
|
1074
|
-
if (this.
|
|
1075
|
-
var tmp0_safe_receiver = this.
|
|
1074
|
+
this.u3c_1 = this.o9_1;
|
|
1075
|
+
if (this.r3c_1.qy(this.u3c_1)) {
|
|
1076
|
+
var tmp0_safe_receiver = this.t3c_1;
|
|
1076
1077
|
if (tmp0_safe_receiver == null)
|
|
1077
1078
|
null;
|
|
1078
1079
|
else {
|
|
1079
|
-
tmp0_safe_receiver.
|
|
1080
|
+
tmp0_safe_receiver.r1j();
|
|
1080
1081
|
}
|
|
1081
1082
|
}
|
|
1082
|
-
close(this.
|
|
1083
|
-
throw this.
|
|
1083
|
+
close(this.q3c_1, this.u3c_1);
|
|
1084
|
+
throw this.u3c_1;
|
|
1084
1085
|
} else {
|
|
1085
|
-
throw this.
|
|
1086
|
+
throw this.o9_1;
|
|
1086
1087
|
}
|
|
1087
1088
|
|
|
1088
1089
|
case 13:
|
|
1089
|
-
this.
|
|
1090
|
-
suspendResult = skipIfFound(this.
|
|
1090
|
+
this.l9_1 = 14;
|
|
1091
|
+
suspendResult = skipIfFound(this.k3c_1, get_CrLf(), this);
|
|
1091
1092
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1092
1093
|
return suspendResult;
|
|
1093
1094
|
}
|
|
1094
1095
|
|
|
1095
1096
|
continue $sm;
|
|
1096
1097
|
case 14:
|
|
1097
|
-
this.
|
|
1098
|
-
suspendResult = skipIfFound(this.
|
|
1098
|
+
this.l9_1 = 15;
|
|
1099
|
+
suspendResult = skipIfFound(this.k3c_1, get_CrLf(), this);
|
|
1099
1100
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1100
1101
|
return suspendResult;
|
|
1101
1102
|
}
|
|
1102
1103
|
|
|
1103
1104
|
continue $sm;
|
|
1104
1105
|
case 15:
|
|
1105
|
-
if (!(this.
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1108
|
-
if (this.
|
|
1106
|
+
if (!(this.i3c_1 == null)) {
|
|
1107
|
+
this.v3c_1 = this.k3c_1.f21().d3(this.l3c_1);
|
|
1108
|
+
this.w3c_1 = this.i3c_1.d3(this.v3c_1);
|
|
1109
|
+
if (this.w3c_1.h1(new Long(2147483647, 0)) > 0)
|
|
1109
1110
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1110
|
-
if (this.
|
|
1111
|
-
this.
|
|
1112
|
-
suspendResult = readPacket(this.
|
|
1111
|
+
if (this.w3c_1.h1(new Long(0, 0)) > 0) {
|
|
1112
|
+
this.l9_1 = 19;
|
|
1113
|
+
suspendResult = readPacket(this.k3c_1, this.w3c_1.m1(), this);
|
|
1113
1114
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1114
1115
|
return suspendResult;
|
|
1115
1116
|
}
|
|
1116
1117
|
continue $sm;
|
|
1117
1118
|
} else {
|
|
1118
|
-
this.
|
|
1119
|
+
this.l9_1 = 21;
|
|
1119
1120
|
continue $sm;
|
|
1120
1121
|
}
|
|
1121
1122
|
} else {
|
|
1122
|
-
this.
|
|
1123
|
-
suspendResult = readRemaining(this.
|
|
1123
|
+
this.l9_1 = 16;
|
|
1124
|
+
suspendResult = readRemaining(this.k3c_1, this);
|
|
1124
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1126
|
return suspendResult;
|
|
1126
1127
|
}
|
|
@@ -1128,86 +1129,86 @@ protoOf(parseMultipart$slambda).s9 = function () {
|
|
|
1128
1129
|
}
|
|
1129
1130
|
|
|
1130
1131
|
case 16:
|
|
1131
|
-
this.
|
|
1132
|
-
if (!this.
|
|
1133
|
-
this.
|
|
1134
|
-
suspendResult = this.
|
|
1132
|
+
this.x3c_1 = suspendResult;
|
|
1133
|
+
if (!this.x3c_1.m1m()) {
|
|
1134
|
+
this.l9_1 = 17;
|
|
1135
|
+
suspendResult = this.j3c_1.h1b(new Epilogue(this.x3c_1), this);
|
|
1135
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1137
|
return suspendResult;
|
|
1137
1138
|
}
|
|
1138
1139
|
continue $sm;
|
|
1139
1140
|
} else {
|
|
1140
|
-
this.
|
|
1141
|
+
this.l9_1 = 18;
|
|
1141
1142
|
continue $sm;
|
|
1142
1143
|
}
|
|
1143
1144
|
|
|
1144
1145
|
case 17:
|
|
1145
|
-
this.
|
|
1146
|
+
this.l9_1 = 18;
|
|
1146
1147
|
continue $sm;
|
|
1147
1148
|
case 18:
|
|
1148
|
-
this.
|
|
1149
|
+
this.l9_1 = 22;
|
|
1149
1150
|
continue $sm;
|
|
1150
1151
|
case 19:
|
|
1151
|
-
this.
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1154
|
-
suspendResult = this.
|
|
1152
|
+
this.y3c_1 = suspendResult;
|
|
1153
|
+
this.z3c_1 = new Epilogue(this.y3c_1);
|
|
1154
|
+
this.l9_1 = 20;
|
|
1155
|
+
suspendResult = this.j3c_1.h1b(this.z3c_1, this);
|
|
1155
1156
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1156
1157
|
return suspendResult;
|
|
1157
1158
|
}
|
|
1158
1159
|
|
|
1159
1160
|
continue $sm;
|
|
1160
1161
|
case 20:
|
|
1161
|
-
this.
|
|
1162
|
+
this.l9_1 = 21;
|
|
1162
1163
|
continue $sm;
|
|
1163
1164
|
case 21:
|
|
1164
|
-
this.
|
|
1165
|
+
this.l9_1 = 22;
|
|
1165
1166
|
continue $sm;
|
|
1166
1167
|
case 22:
|
|
1167
1168
|
return Unit_instance;
|
|
1168
1169
|
case 23:
|
|
1169
|
-
throw this.
|
|
1170
|
+
throw this.o9_1;
|
|
1170
1171
|
}
|
|
1171
1172
|
} catch ($p) {
|
|
1172
1173
|
var e = $p;
|
|
1173
|
-
if (this.
|
|
1174
|
+
if (this.m9_1 === 23) {
|
|
1174
1175
|
throw e;
|
|
1175
1176
|
} else {
|
|
1176
|
-
this.
|
|
1177
|
-
this.
|
|
1177
|
+
this.l9_1 = this.m9_1;
|
|
1178
|
+
this.o9_1 = e;
|
|
1178
1179
|
}
|
|
1179
1180
|
}
|
|
1180
1181
|
while (true);
|
|
1181
1182
|
};
|
|
1182
|
-
protoOf(parseMultipart$slambda).
|
|
1183
|
-
var i = new parseMultipart$slambda(this.
|
|
1184
|
-
i.
|
|
1183
|
+
protoOf(parseMultipart$slambda).b3d = function ($this$produce, completion) {
|
|
1184
|
+
var i = new parseMultipart$slambda(this.f3c_1, this.g3c_1, this.h3c_1, this.i3c_1, completion);
|
|
1185
|
+
i.j3c_1 = $this$produce;
|
|
1185
1186
|
return i;
|
|
1186
1187
|
};
|
|
1187
1188
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1188
1189
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1189
1190
|
var l = function ($this$produce, $completion) {
|
|
1190
|
-
return i.
|
|
1191
|
+
return i.a3d($this$produce, $completion);
|
|
1191
1192
|
};
|
|
1192
1193
|
l.$arity = 1;
|
|
1193
1194
|
return l;
|
|
1194
1195
|
}
|
|
1195
|
-
function $parsePartHeadersImplCOROUTINE$
|
|
1196
|
+
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1196
1197
|
CoroutineImpl.call(this, resultContinuation);
|
|
1197
|
-
this.
|
|
1198
|
+
this.f3a_1 = input;
|
|
1198
1199
|
}
|
|
1199
|
-
protoOf($parsePartHeadersImplCOROUTINE$
|
|
1200
|
-
var suspendResult = this.
|
|
1200
|
+
protoOf($parsePartHeadersImplCOROUTINE$).t9 = function () {
|
|
1201
|
+
var suspendResult = this.n9_1;
|
|
1201
1202
|
$sm: do
|
|
1202
1203
|
try {
|
|
1203
|
-
var tmp = this.
|
|
1204
|
+
var tmp = this.l9_1;
|
|
1204
1205
|
switch (tmp) {
|
|
1205
1206
|
case 0:
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1209
|
-
this.
|
|
1210
|
-
suspendResult = parseHeaders(this.
|
|
1207
|
+
this.m9_1 = 3;
|
|
1208
|
+
this.g3a_1 = new CharArrayBuilder();
|
|
1209
|
+
this.m9_1 = 2;
|
|
1210
|
+
this.l9_1 = 1;
|
|
1211
|
+
suspendResult = parseHeaders(this.f3a_1, this.g3a_1, VOID, this);
|
|
1211
1212
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1212
1213
|
return suspendResult;
|
|
1213
1214
|
}
|
|
@@ -1224,129 +1225,129 @@ protoOf($parsePartHeadersImplCOROUTINE$5).s9 = function () {
|
|
|
1224
1225
|
|
|
1225
1226
|
return tmp_0;
|
|
1226
1227
|
case 2:
|
|
1227
|
-
this.
|
|
1228
|
-
var tmp_1 = this.
|
|
1228
|
+
this.m9_1 = 3;
|
|
1229
|
+
var tmp_1 = this.o9_1;
|
|
1229
1230
|
if (tmp_1 instanceof Error) {
|
|
1230
|
-
var t = this.
|
|
1231
|
-
this.
|
|
1231
|
+
var t = this.o9_1;
|
|
1232
|
+
this.g3a_1.r1j();
|
|
1232
1233
|
throw t;
|
|
1233
1234
|
} else {
|
|
1234
|
-
throw this.
|
|
1235
|
+
throw this.o9_1;
|
|
1235
1236
|
}
|
|
1236
1237
|
|
|
1237
1238
|
case 3:
|
|
1238
|
-
throw this.
|
|
1239
|
+
throw this.o9_1;
|
|
1239
1240
|
}
|
|
1240
1241
|
} catch ($p) {
|
|
1241
1242
|
var e = $p;
|
|
1242
|
-
if (this.
|
|
1243
|
+
if (this.m9_1 === 3) {
|
|
1243
1244
|
throw e;
|
|
1244
1245
|
} else {
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1246
|
+
this.l9_1 = this.m9_1;
|
|
1247
|
+
this.o9_1 = e;
|
|
1247
1248
|
}
|
|
1248
1249
|
}
|
|
1249
1250
|
while (true);
|
|
1250
1251
|
};
|
|
1251
|
-
function $parsePartBodyImplCOROUTINE$
|
|
1252
|
+
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1252
1253
|
CoroutineImpl.call(this, resultContinuation);
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
}
|
|
1259
|
-
protoOf($parsePartBodyImplCOROUTINE$
|
|
1260
|
-
var suspendResult = this.
|
|
1254
|
+
this.p3a_1 = boundaryPrefixed;
|
|
1255
|
+
this.q3a_1 = input;
|
|
1256
|
+
this.r3a_1 = output;
|
|
1257
|
+
this.s3a_1 = headers;
|
|
1258
|
+
this.t3a_1 = limit;
|
|
1259
|
+
}
|
|
1260
|
+
protoOf($parsePartBodyImplCOROUTINE$).t9 = function () {
|
|
1261
|
+
var suspendResult = this.n9_1;
|
|
1261
1262
|
$sm: do
|
|
1262
1263
|
try {
|
|
1263
|
-
var tmp = this.
|
|
1264
|
+
var tmp = this.l9_1;
|
|
1264
1265
|
switch (tmp) {
|
|
1265
1266
|
case 0:
|
|
1266
|
-
this.
|
|
1267
|
+
this.m9_1 = 6;
|
|
1267
1268
|
var tmp_0 = this;
|
|
1268
|
-
var tmp0_safe_receiver = this.
|
|
1269
|
-
tmp_0.
|
|
1270
|
-
if (this.
|
|
1271
|
-
this.
|
|
1272
|
-
suspendResult = readUntil(this.
|
|
1269
|
+
var tmp0_safe_receiver = this.s3a_1.b2p('Content-Length');
|
|
1270
|
+
tmp_0.u3a_1 = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1271
|
+
if (this.u3a_1 == null) {
|
|
1272
|
+
this.l9_1 = 3;
|
|
1273
|
+
suspendResult = readUntil(this.q3a_1, this.p3a_1, this.r3a_1, this.t3a_1, true, this);
|
|
1273
1274
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1274
1275
|
return suspendResult;
|
|
1275
1276
|
}
|
|
1276
1277
|
continue $sm;
|
|
1277
1278
|
} else {
|
|
1278
|
-
if ((new Long(0, 0)).l3(this.
|
|
1279
|
-
this.
|
|
1280
|
-
suspendResult = copyTo(this.
|
|
1279
|
+
if ((new Long(0, 0)).l3(this.t3a_1).yj(this.u3a_1)) {
|
|
1280
|
+
this.l9_1 = 1;
|
|
1281
|
+
suspendResult = copyTo(this.q3a_1, this.r3a_1, this.u3a_1, this);
|
|
1281
1282
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1282
1283
|
return suspendResult;
|
|
1283
1284
|
}
|
|
1284
1285
|
continue $sm;
|
|
1285
1286
|
} else {
|
|
1286
1287
|
var tmp_1 = this;
|
|
1287
|
-
throwLimitExceeded(this.
|
|
1288
|
+
throwLimitExceeded(this.u3a_1, this.t3a_1);
|
|
1288
1289
|
}
|
|
1289
1290
|
}
|
|
1290
1291
|
|
|
1291
1292
|
break;
|
|
1292
1293
|
case 1:
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1294
|
+
this.w3a_1 = suspendResult;
|
|
1295
|
+
this.l9_1 = 2;
|
|
1296
|
+
suspendResult = skipIfFoundReadCount(this.q3a_1, this.p3a_1, this);
|
|
1296
1297
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1297
1298
|
return suspendResult;
|
|
1298
1299
|
}
|
|
1299
1300
|
|
|
1300
1301
|
continue $sm;
|
|
1301
1302
|
case 2:
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1303
|
+
this.x3a_1 = suspendResult;
|
|
1304
|
+
this.v3a_1 = this.w3a_1.c3(this.x3a_1);
|
|
1305
|
+
this.l9_1 = 4;
|
|
1305
1306
|
continue $sm;
|
|
1306
1307
|
case 3:
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1308
|
+
this.v3a_1 = suspendResult;
|
|
1309
|
+
this.l9_1 = 4;
|
|
1309
1310
|
continue $sm;
|
|
1310
1311
|
case 4:
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
suspendResult = this.
|
|
1312
|
+
this.y3a_1 = this.v3a_1;
|
|
1313
|
+
this.l9_1 = 5;
|
|
1314
|
+
suspendResult = this.r3a_1.r1r(this);
|
|
1314
1315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1315
1316
|
return suspendResult;
|
|
1316
1317
|
}
|
|
1317
1318
|
|
|
1318
1319
|
continue $sm;
|
|
1319
1320
|
case 5:
|
|
1320
|
-
return this.
|
|
1321
|
+
return this.y3a_1;
|
|
1321
1322
|
case 6:
|
|
1322
|
-
throw this.
|
|
1323
|
+
throw this.o9_1;
|
|
1323
1324
|
}
|
|
1324
1325
|
} catch ($p) {
|
|
1325
1326
|
var e = $p;
|
|
1326
|
-
if (this.
|
|
1327
|
+
if (this.m9_1 === 6) {
|
|
1327
1328
|
throw e;
|
|
1328
1329
|
} else {
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1330
|
+
this.l9_1 = this.m9_1;
|
|
1331
|
+
this.o9_1 = e;
|
|
1331
1332
|
}
|
|
1332
1333
|
}
|
|
1333
1334
|
while (true);
|
|
1334
1335
|
};
|
|
1335
|
-
function $skipIfFoundReadCountCOROUTINE$
|
|
1336
|
+
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1336
1337
|
CoroutineImpl.call(this, resultContinuation);
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1338
|
+
this.h3b_1 = _this__u8e3s4;
|
|
1339
|
+
this.i3b_1 = prefix;
|
|
1339
1340
|
}
|
|
1340
|
-
protoOf($skipIfFoundReadCountCOROUTINE$
|
|
1341
|
-
var suspendResult = this.
|
|
1341
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).t9 = function () {
|
|
1342
|
+
var suspendResult = this.n9_1;
|
|
1342
1343
|
$sm: do
|
|
1343
1344
|
try {
|
|
1344
|
-
var tmp = this.
|
|
1345
|
+
var tmp = this.l9_1;
|
|
1345
1346
|
switch (tmp) {
|
|
1346
1347
|
case 0:
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
suspendResult = skipIfFound(this.
|
|
1348
|
+
this.m9_1 = 3;
|
|
1349
|
+
this.l9_1 = 1;
|
|
1350
|
+
suspendResult = skipIfFound(this.h3b_1, this.i3b_1, this);
|
|
1350
1351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1351
1352
|
return suspendResult;
|
|
1352
1353
|
}
|
|
@@ -1355,28 +1356,28 @@ protoOf($skipIfFoundReadCountCOROUTINE$7).s9 = function () {
|
|
|
1355
1356
|
case 1:
|
|
1356
1357
|
if (suspendResult) {
|
|
1357
1358
|
var tmp_0 = this;
|
|
1358
|
-
tmp_0.
|
|
1359
|
-
this.
|
|
1359
|
+
tmp_0.j3b_1 = toLong(this.i3b_1.t());
|
|
1360
|
+
this.l9_1 = 2;
|
|
1360
1361
|
continue $sm;
|
|
1361
1362
|
} else {
|
|
1362
1363
|
var tmp_1 = this;
|
|
1363
|
-
tmp_1.
|
|
1364
|
-
this.
|
|
1364
|
+
tmp_1.j3b_1 = new Long(0, 0);
|
|
1365
|
+
this.l9_1 = 2;
|
|
1365
1366
|
continue $sm;
|
|
1366
1367
|
}
|
|
1367
1368
|
|
|
1368
1369
|
case 2:
|
|
1369
|
-
return this.
|
|
1370
|
+
return this.j3b_1;
|
|
1370
1371
|
case 3:
|
|
1371
|
-
throw this.
|
|
1372
|
+
throw this.o9_1;
|
|
1372
1373
|
}
|
|
1373
1374
|
} catch ($p) {
|
|
1374
1375
|
var e = $p;
|
|
1375
|
-
if (this.
|
|
1376
|
+
if (this.m9_1 === 3) {
|
|
1376
1377
|
throw e;
|
|
1377
1378
|
} else {
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1379
|
+
this.l9_1 = this.m9_1;
|
|
1380
|
+
this.o9_1 = e;
|
|
1380
1381
|
}
|
|
1381
1382
|
}
|
|
1382
1383
|
while (true);
|
|
@@ -1433,7 +1434,7 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
1433
1434
|
}
|
|
1434
1435
|
}
|
|
1435
1436
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1436
|
-
children.
|
|
1437
|
+
children.b6();
|
|
1437
1438
|
// Inline function 'kotlin.collections.filter' call
|
|
1438
1439
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1439
1440
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1454,26 +1455,26 @@ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
|
|
|
1454
1455
|
return new Char(charSequenceGet(s, idx));
|
|
1455
1456
|
}
|
|
1456
1457
|
function Node(ch, exact, children) {
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1458
|
+
this.c3d_1 = ch;
|
|
1459
|
+
this.d3d_1 = exact;
|
|
1460
|
+
this.e3d_1 = children;
|
|
1460
1461
|
var tmp = this;
|
|
1461
1462
|
var tmp_0 = 0;
|
|
1462
1463
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1463
1464
|
var tmp_1 = Array(256);
|
|
1464
1465
|
while (tmp_0 < 256) {
|
|
1465
1466
|
var tmp_2 = tmp_0;
|
|
1466
|
-
var
|
|
1467
|
+
var tmp0 = this.e3d_1;
|
|
1467
1468
|
var tmp$ret$3;
|
|
1468
1469
|
$l$block_0: {
|
|
1469
1470
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
1470
1471
|
var single = null;
|
|
1471
1472
|
var found = false;
|
|
1472
|
-
var _iterator__ex2g4s =
|
|
1473
|
+
var _iterator__ex2g4s = tmp0.q();
|
|
1473
1474
|
while (_iterator__ex2g4s.r()) {
|
|
1474
1475
|
var element = _iterator__ex2g4s.s();
|
|
1475
1476
|
// Inline function 'kotlin.code' call
|
|
1476
|
-
var this_0 = element.
|
|
1477
|
+
var this_0 = element.c3d_1;
|
|
1477
1478
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1478
1479
|
if (found) {
|
|
1479
1480
|
tmp$ret$3 = null;
|
|
@@ -1492,15 +1493,15 @@ function Node(ch, exact, children) {
|
|
|
1492
1493
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1493
1494
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1494
1495
|
}
|
|
1495
|
-
tmp.
|
|
1496
|
+
tmp.f3d_1 = tmp_1;
|
|
1496
1497
|
}
|
|
1497
1498
|
function Companion() {
|
|
1498
1499
|
}
|
|
1499
|
-
protoOf(Companion).
|
|
1500
|
+
protoOf(Companion).s39 = function (from) {
|
|
1500
1501
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1501
|
-
return this.
|
|
1502
|
+
return this.g3d(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1502
1503
|
};
|
|
1503
|
-
protoOf(Companion).
|
|
1504
|
+
protoOf(Companion).g3d = function (from, length, charAt) {
|
|
1504
1505
|
var tmp$ret$0;
|
|
1505
1506
|
$l$block_0: {
|
|
1506
1507
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1569,7 +1570,7 @@ protoOf(Companion).e3c = function (from, length, charAt) {
|
|
|
1569
1570
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1570
1571
|
var root = ArrayList_init_$Create$();
|
|
1571
1572
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1572
|
-
root.
|
|
1573
|
+
root.b6();
|
|
1573
1574
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1574
1575
|
};
|
|
1575
1576
|
var Companion_instance;
|
|
@@ -1577,10 +1578,10 @@ function Companion_getInstance_1() {
|
|
|
1577
1578
|
return Companion_instance;
|
|
1578
1579
|
}
|
|
1579
1580
|
function AsciiCharTree(root) {
|
|
1580
|
-
this.
|
|
1581
|
+
this.h3d_1 = root;
|
|
1581
1582
|
}
|
|
1582
1583
|
function getImpl($this, index) {
|
|
1583
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1584
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.q38_1).length | 0];
|
|
1584
1585
|
}
|
|
1585
1586
|
function copy($this, startIndex, endIndex) {
|
|
1586
1587
|
if (startIndex === endIndex)
|
|
@@ -1601,7 +1602,7 @@ function copy($this, startIndex, endIndex) {
|
|
|
1601
1602
|
do {
|
|
1602
1603
|
var innerIndex = inductionVariable;
|
|
1603
1604
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1604
|
-
builder.
|
|
1605
|
+
builder.t8(buffer[innerIndex]);
|
|
1605
1606
|
}
|
|
1606
1607
|
while (inductionVariable < innerEndIndex);
|
|
1607
1608
|
base = base + 2048 | 0;
|
|
@@ -1609,27 +1610,27 @@ function copy($this, startIndex, endIndex) {
|
|
|
1609
1610
|
return builder;
|
|
1610
1611
|
}
|
|
1611
1612
|
function SubSequenceImpl($outer, start, end) {
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1613
|
+
this.l3d_1 = $outer;
|
|
1614
|
+
this.i3d_1 = start;
|
|
1615
|
+
this.j3d_1 = end;
|
|
1616
|
+
this.k3d_1 = null;
|
|
1616
1617
|
}
|
|
1617
1618
|
protoOf(SubSequenceImpl).a = function () {
|
|
1618
|
-
return this.
|
|
1619
|
+
return this.j3d_1 - this.i3d_1 | 0;
|
|
1619
1620
|
};
|
|
1620
1621
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1621
|
-
var withOffset = index + this.
|
|
1622
|
+
var withOffset = index + this.i3d_1 | 0;
|
|
1622
1623
|
// Inline function 'kotlin.require' call
|
|
1623
1624
|
if (!(index >= 0)) {
|
|
1624
1625
|
var message = 'index is negative: ' + index;
|
|
1625
1626
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1626
1627
|
}
|
|
1627
1628
|
// Inline function 'kotlin.require' call
|
|
1628
|
-
if (!(withOffset < this.
|
|
1629
|
+
if (!(withOffset < this.j3d_1)) {
|
|
1629
1630
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1630
1631
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1631
1632
|
}
|
|
1632
|
-
return getImpl(this.
|
|
1633
|
+
return getImpl(this.l3d_1, withOffset);
|
|
1633
1634
|
};
|
|
1634
1635
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1635
1636
|
// Inline function 'kotlin.require' call
|
|
@@ -1643,21 +1644,21 @@ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
|
1643
1644
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1644
1645
|
}
|
|
1645
1646
|
// Inline function 'kotlin.require' call
|
|
1646
|
-
if (!(endIndex <= (this.
|
|
1647
|
+
if (!(endIndex <= (this.j3d_1 - this.i3d_1 | 0))) {
|
|
1647
1648
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1648
1649
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1649
1650
|
}
|
|
1650
1651
|
if (startIndex === endIndex)
|
|
1651
1652
|
return '';
|
|
1652
|
-
return new SubSequenceImpl(this.
|
|
1653
|
+
return new SubSequenceImpl(this.l3d_1, this.i3d_1 + startIndex | 0, this.i3d_1 + endIndex | 0);
|
|
1653
1654
|
};
|
|
1654
1655
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1655
|
-
var tmp0_elvis_lhs = this.
|
|
1656
|
+
var tmp0_elvis_lhs = this.k3d_1;
|
|
1656
1657
|
var tmp;
|
|
1657
1658
|
if (tmp0_elvis_lhs == null) {
|
|
1658
1659
|
// Inline function 'kotlin.also' call
|
|
1659
|
-
var this_0 = toString(copy(this.
|
|
1660
|
-
this.
|
|
1660
|
+
var this_0 = toString(copy(this.l3d_1, this.i3d_1, this.j3d_1));
|
|
1661
|
+
this.k3d_1 = this_0;
|
|
1661
1662
|
tmp = this_0;
|
|
1662
1663
|
} else {
|
|
1663
1664
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1669,20 +1670,20 @@ protoOf(SubSequenceImpl).equals = function (other) {
|
|
|
1669
1670
|
return false;
|
|
1670
1671
|
if (!(charSequenceLength(other) === this.a()))
|
|
1671
1672
|
return false;
|
|
1672
|
-
return rangeEqualsImpl(this.
|
|
1673
|
+
return rangeEqualsImpl(this.l3d_1, this.i3d_1, other, 0, this.a());
|
|
1673
1674
|
};
|
|
1674
1675
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1675
|
-
var tmp0_safe_receiver = this.
|
|
1676
|
+
var tmp0_safe_receiver = this.k3d_1;
|
|
1676
1677
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1677
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1678
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.l3d_1, this.i3d_1, this.j3d_1) : tmp1_elvis_lhs;
|
|
1678
1679
|
};
|
|
1679
1680
|
function bufferForIndex($this, index) {
|
|
1680
|
-
var list = $this.
|
|
1681
|
+
var list = $this.p38_1;
|
|
1681
1682
|
if (list == null) {
|
|
1682
1683
|
if (index >= 2048) {
|
|
1683
1684
|
throwSingleBuffer($this, index);
|
|
1684
1685
|
}
|
|
1685
|
-
var tmp0_elvis_lhs = $this.
|
|
1686
|
+
var tmp0_elvis_lhs = $this.q38_1;
|
|
1686
1687
|
var tmp;
|
|
1687
1688
|
if (tmp0_elvis_lhs == null) {
|
|
1688
1689
|
throwSingleBuffer($this, index);
|
|
@@ -1691,29 +1692,29 @@ function bufferForIndex($this, index) {
|
|
|
1691
1692
|
}
|
|
1692
1693
|
return tmp;
|
|
1693
1694
|
}
|
|
1694
|
-
return list.v(index / ensureNotNull($this.
|
|
1695
|
+
return list.v(index / ensureNotNull($this.q38_1).length | 0);
|
|
1695
1696
|
}
|
|
1696
1697
|
function throwSingleBuffer($this, index) {
|
|
1697
|
-
if ($this.
|
|
1698
|
+
if ($this.s38_1)
|
|
1698
1699
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1699
1700
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1700
1701
|
}
|
|
1701
1702
|
function nonFullBuffer($this) {
|
|
1702
|
-
return $this.
|
|
1703
|
+
return $this.t38_1 === 0 ? appendNewArray($this) : ensureNotNull($this.q38_1);
|
|
1703
1704
|
}
|
|
1704
1705
|
function appendNewArray($this) {
|
|
1705
|
-
var newBuffer = $this.
|
|
1706
|
-
var existing = $this.
|
|
1707
|
-
$this.
|
|
1708
|
-
$this.
|
|
1709
|
-
$this.
|
|
1706
|
+
var newBuffer = $this.o38_1.y21();
|
|
1707
|
+
var existing = $this.q38_1;
|
|
1708
|
+
$this.q38_1 = newBuffer;
|
|
1709
|
+
$this.t38_1 = newBuffer.length;
|
|
1710
|
+
$this.s38_1 = false;
|
|
1710
1711
|
if (!(existing == null)) {
|
|
1711
|
-
var tmp0_elvis_lhs = $this.
|
|
1712
|
+
var tmp0_elvis_lhs = $this.p38_1;
|
|
1712
1713
|
var tmp;
|
|
1713
1714
|
if (tmp0_elvis_lhs == null) {
|
|
1714
1715
|
// Inline function 'kotlin.also' call
|
|
1715
1716
|
var this_0 = ArrayList_init_$Create$();
|
|
1716
|
-
$this.
|
|
1717
|
+
$this.p38_1 = this_0;
|
|
1717
1718
|
this_0.k(existing);
|
|
1718
1719
|
tmp = this_0;
|
|
1719
1720
|
} else {
|
|
@@ -1752,20 +1753,20 @@ function hashCodeImpl($this, start, end) {
|
|
|
1752
1753
|
return hc;
|
|
1753
1754
|
}
|
|
1754
1755
|
function currentPosition($this) {
|
|
1755
|
-
return ensureNotNull($this.
|
|
1756
|
+
return ensureNotNull($this.q38_1).length - $this.t38_1 | 0;
|
|
1756
1757
|
}
|
|
1757
1758
|
function CharArrayBuilder(pool) {
|
|
1758
1759
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1759
|
-
this.
|
|
1760
|
-
this.
|
|
1761
|
-
this.
|
|
1762
|
-
this.
|
|
1763
|
-
this.
|
|
1764
|
-
this.
|
|
1765
|
-
this.
|
|
1760
|
+
this.o38_1 = pool;
|
|
1761
|
+
this.p38_1 = null;
|
|
1762
|
+
this.q38_1 = null;
|
|
1763
|
+
this.r38_1 = null;
|
|
1764
|
+
this.s38_1 = false;
|
|
1765
|
+
this.t38_1 = 0;
|
|
1766
|
+
this.u38_1 = 0;
|
|
1766
1767
|
}
|
|
1767
1768
|
protoOf(CharArrayBuilder).a = function () {
|
|
1768
|
-
return this.
|
|
1769
|
+
return this.u38_1;
|
|
1769
1770
|
};
|
|
1770
1771
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1771
1772
|
// Inline function 'kotlin.require' call
|
|
@@ -1774,8 +1775,8 @@ protoOf(CharArrayBuilder).b = function (index) {
|
|
|
1774
1775
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1775
1776
|
}
|
|
1776
1777
|
// Inline function 'kotlin.require' call
|
|
1777
|
-
if (!(index < this.
|
|
1778
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1778
|
+
if (!(index < this.u38_1)) {
|
|
1779
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.u38_1 + ')';
|
|
1779
1780
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1780
1781
|
}
|
|
1781
1782
|
return getImpl(this, index);
|
|
@@ -1792,19 +1793,19 @@ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
|
|
|
1792
1793
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1793
1794
|
}
|
|
1794
1795
|
// Inline function 'kotlin.require' call
|
|
1795
|
-
if (!(endIndex <= this.
|
|
1796
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1796
|
+
if (!(endIndex <= this.u38_1)) {
|
|
1797
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.u38_1 + ')';
|
|
1797
1798
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1798
1799
|
}
|
|
1799
1800
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1800
1801
|
};
|
|
1801
1802
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1802
|
-
var tmp0_elvis_lhs = this.
|
|
1803
|
+
var tmp0_elvis_lhs = this.r38_1;
|
|
1803
1804
|
var tmp;
|
|
1804
1805
|
if (tmp0_elvis_lhs == null) {
|
|
1805
1806
|
// Inline function 'kotlin.also' call
|
|
1806
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1807
|
-
this.
|
|
1807
|
+
var this_0 = toString(copy(this, 0, this.u38_1));
|
|
1808
|
+
this.r38_1 = this_0;
|
|
1808
1809
|
tmp = this_0;
|
|
1809
1810
|
} else {
|
|
1810
1811
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1814,32 +1815,32 @@ protoOf(CharArrayBuilder).toString = function () {
|
|
|
1814
1815
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1815
1816
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1816
1817
|
return false;
|
|
1817
|
-
if (!(this.
|
|
1818
|
+
if (!(this.u38_1 === charSequenceLength(other)))
|
|
1818
1819
|
return false;
|
|
1819
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1820
|
+
return rangeEqualsImpl(this, 0, other, 0, this.u38_1);
|
|
1820
1821
|
};
|
|
1821
1822
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1822
|
-
var tmp0_safe_receiver = this.
|
|
1823
|
+
var tmp0_safe_receiver = this.r38_1;
|
|
1823
1824
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1824
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1825
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.u38_1) : tmp1_elvis_lhs;
|
|
1825
1826
|
};
|
|
1826
|
-
protoOf(CharArrayBuilder).
|
|
1827
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1828
|
-
this.
|
|
1829
|
-
this.
|
|
1830
|
-
this.
|
|
1827
|
+
protoOf(CharArrayBuilder).t8 = function (value) {
|
|
1828
|
+
nonFullBuffer(this)[ensureNotNull(this.q38_1).length - this.t38_1 | 0] = value;
|
|
1829
|
+
this.r38_1 = null;
|
|
1830
|
+
this.t38_1 = this.t38_1 - 1 | 0;
|
|
1831
|
+
this.u38_1 = this.u38_1 + 1 | 0;
|
|
1831
1832
|
return this;
|
|
1832
1833
|
};
|
|
1833
|
-
protoOf(CharArrayBuilder).
|
|
1834
|
+
protoOf(CharArrayBuilder).jd = function (value, startIndex, endIndex) {
|
|
1834
1835
|
if (value == null)
|
|
1835
1836
|
return this;
|
|
1836
1837
|
var current = startIndex;
|
|
1837
1838
|
while (current < endIndex) {
|
|
1838
1839
|
var buffer = nonFullBuffer(this);
|
|
1839
|
-
var offset = buffer.length - this.
|
|
1840
|
+
var offset = buffer.length - this.t38_1 | 0;
|
|
1840
1841
|
var tmp0 = endIndex - current | 0;
|
|
1841
1842
|
// Inline function 'kotlin.math.min' call
|
|
1842
|
-
var b = this.
|
|
1843
|
+
var b = this.t38_1;
|
|
1843
1844
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1844
1845
|
var inductionVariable = 0;
|
|
1845
1846
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1850,45 +1851,45 @@ protoOf(CharArrayBuilder).id = function (value, startIndex, endIndex) {
|
|
|
1850
1851
|
}
|
|
1851
1852
|
while (inductionVariable < bytesToCopy);
|
|
1852
1853
|
current = current + bytesToCopy | 0;
|
|
1853
|
-
this.
|
|
1854
|
+
this.t38_1 = this.t38_1 - bytesToCopy | 0;
|
|
1854
1855
|
}
|
|
1855
|
-
this.
|
|
1856
|
-
this.
|
|
1856
|
+
this.r38_1 = null;
|
|
1857
|
+
this.u38_1 = this.u38_1 + (endIndex - startIndex | 0) | 0;
|
|
1857
1858
|
return this;
|
|
1858
1859
|
};
|
|
1859
1860
|
protoOf(CharArrayBuilder).o = function (value) {
|
|
1860
1861
|
if (value == null)
|
|
1861
1862
|
return this;
|
|
1862
|
-
return this.
|
|
1863
|
+
return this.jd(value, 0, charSequenceLength(value));
|
|
1863
1864
|
};
|
|
1864
|
-
protoOf(CharArrayBuilder).
|
|
1865
|
-
var list = this.
|
|
1865
|
+
protoOf(CharArrayBuilder).r1j = function () {
|
|
1866
|
+
var list = this.p38_1;
|
|
1866
1867
|
if (!(list == null)) {
|
|
1867
|
-
this.
|
|
1868
|
+
this.q38_1 = null;
|
|
1868
1869
|
var inductionVariable = 0;
|
|
1869
1870
|
var last = list.t();
|
|
1870
1871
|
if (inductionVariable < last)
|
|
1871
1872
|
do {
|
|
1872
1873
|
var i = inductionVariable;
|
|
1873
1874
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1874
|
-
this.
|
|
1875
|
+
this.o38_1.z21(list.v(i));
|
|
1875
1876
|
}
|
|
1876
1877
|
while (inductionVariable < last);
|
|
1877
1878
|
} else {
|
|
1878
|
-
var tmp0_safe_receiver = this.
|
|
1879
|
+
var tmp0_safe_receiver = this.q38_1;
|
|
1879
1880
|
if (tmp0_safe_receiver == null)
|
|
1880
1881
|
null;
|
|
1881
1882
|
else {
|
|
1882
1883
|
// Inline function 'kotlin.let' call
|
|
1883
|
-
this.
|
|
1884
|
+
this.o38_1.z21(tmp0_safe_receiver);
|
|
1884
1885
|
}
|
|
1885
|
-
this.
|
|
1886
|
+
this.q38_1 = null;
|
|
1886
1887
|
}
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1889
|
-
this.
|
|
1890
|
-
this.
|
|
1891
|
-
this.
|
|
1888
|
+
this.s38_1 = true;
|
|
1889
|
+
this.p38_1 = null;
|
|
1890
|
+
this.r38_1 = null;
|
|
1891
|
+
this.u38_1 = 0;
|
|
1892
|
+
this.t38_1 = 0;
|
|
1892
1893
|
};
|
|
1893
1894
|
function get_CharArrayPool() {
|
|
1894
1895
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1898,13 +1899,13 @@ var CharArrayPool;
|
|
|
1898
1899
|
function CharArrayPool$1() {
|
|
1899
1900
|
NoPoolImpl.call(this);
|
|
1900
1901
|
}
|
|
1901
|
-
protoOf(CharArrayPool$1).
|
|
1902
|
+
protoOf(CharArrayPool$1).y21 = function () {
|
|
1902
1903
|
return charArray(2048);
|
|
1903
1904
|
};
|
|
1904
1905
|
function CharArrayPool$2() {
|
|
1905
1906
|
DefaultPool.call(this, 4096);
|
|
1906
1907
|
}
|
|
1907
|
-
protoOf(CharArrayPool$2).
|
|
1908
|
+
protoOf(CharArrayPool$2).r21 = function () {
|
|
1908
1909
|
return charArray(2048);
|
|
1909
1910
|
};
|
|
1910
1911
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2095,20 +2096,20 @@ function numberFormatException_0(cs, idx) {
|
|
|
2095
2096
|
}
|
|
2096
2097
|
function DefaultHttpMethods$lambda(it) {
|
|
2097
2098
|
_init_properties_Chars_kt__d3i39x();
|
|
2098
|
-
return it.
|
|
2099
|
+
return it.q31_1.length;
|
|
2099
2100
|
}
|
|
2100
2101
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2101
2102
|
_init_properties_Chars_kt__d3i39x();
|
|
2102
|
-
return new Char(
|
|
2103
|
+
return new Char(charCodeAt(m.q31_1, idx));
|
|
2103
2104
|
}
|
|
2104
2105
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2105
2106
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2106
2107
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2107
2108
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2108
2109
|
var tmp = Companion_instance;
|
|
2109
|
-
var tmp_0 = Companion_getInstance().
|
|
2110
|
+
var tmp_0 = Companion_getInstance().p31_1;
|
|
2110
2111
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2111
|
-
DefaultHttpMethods = tmp.
|
|
2112
|
+
DefaultHttpMethods = tmp.g3d(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2112
2113
|
// Inline function 'kotlin.collections.map' call
|
|
2113
2114
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2114
2115
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2207,11 +2208,11 @@ function UnsupportedMediaTypeExceptionCIO(message) {
|
|
|
2207
2208
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2208
2209
|
}
|
|
2209
2210
|
function MutableRange(start, end) {
|
|
2210
|
-
this.
|
|
2211
|
-
this.
|
|
2211
|
+
this.q39_1 = start;
|
|
2212
|
+
this.r39_1 = end;
|
|
2212
2213
|
}
|
|
2213
2214
|
protoOf(MutableRange).toString = function () {
|
|
2214
|
-
return 'MutableRange(start=' + this.
|
|
2215
|
+
return 'MutableRange(start=' + this.q39_1 + ', end=' + this.r39_1 + ')';
|
|
2215
2216
|
};
|
|
2216
2217
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2217
2218
|
var index = start;
|