@solibo/home-api 1.16.17 → 1.16.18
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/Kotlin-DateTime-library-kotlinx-datetime.mjs +964 -960
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings-no-arg.mjs.map +1 -1
- package/MultiplatformSettings-multiplatform-settings.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3712 -3533
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-browser.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2054 -2054
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +57 -57
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +519 -519
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2285 -2286
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1713 -1711
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +452 -292
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3486 -3378
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-client-encoding.mjs.map +1 -1
- package/ktor-ktor-client-logging.mjs.map +1 -1
- package/ktor-ktor-client-websockets.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +581 -581
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1231 -1174
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1172 -1223
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +84 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.mjs +9 -9
- package/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx.mjs +216 -226
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +111 -116
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-sse.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1037 -983
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websocket-serialization.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +925 -911
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +46 -46
- package/solibo-sdk-sdk-home-api.mjs +98430 -97370
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-http-cio.mjs
CHANGED
|
@@ -2,34 +2,34 @@ import {
|
|
|
2
2
|
VOID3gxj6tk5isa35 as VOID,
|
|
3
3
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
4
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
5
|
-
|
|
5
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
6
6
|
toString1pkumu07cwy4m as toString,
|
|
7
|
-
IllegalArgumentException_init_$Create$
|
|
7
|
+
IllegalArgumentException_init_$Create$1gox8sdqs91jy as IllegalArgumentException_init_$Create$,
|
|
8
8
|
abs1kdzbjes1idip as abs,
|
|
9
|
-
StringBuilder_init_$Create$
|
|
9
|
+
StringBuilder_init_$Create$b2348mky3co as StringBuilder_init_$Create$,
|
|
10
10
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
11
11
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
12
12
|
SequenceScope1coiso86pqzq2 as SequenceScope,
|
|
13
13
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
14
14
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
15
15
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
16
|
-
ArrayList_init_$Create$
|
|
16
|
+
ArrayList_init_$Create$2xrifdqz5xirg as ArrayList_init_$Create$,
|
|
17
17
|
sequence2vgswtrxvqoa7 as sequence,
|
|
18
18
|
fill2542d4m9l93pn as fill,
|
|
19
19
|
isIntArrayeijsubfngq38 as isIntArray,
|
|
20
|
-
|
|
20
|
+
_Char___init__impl__6a9atxrzocepzq3zgi 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_ypi4mb3bl0kdwnivnp6 as Char__compareTo_impl_ypi4mb,
|
|
26
26
|
contains2el4s70rdq4ld as contains,
|
|
27
27
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
28
|
-
|
|
28
|
+
Char__toInt_impl_vasixd28v1p2u6jau5g as Char__toInt_impl_vasixd,
|
|
29
29
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
30
|
-
IllegalStateException_init_$Init$
|
|
30
|
+
IllegalStateException_init_$Init$2lydy6bjiiso9 as IllegalStateException_init_$Init$,
|
|
31
31
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
32
|
-
IllegalStateException_init_$Create$
|
|
32
|
+
IllegalStateException_init_$Create$38ax6c90susjc as IllegalStateException_init_$Create$,
|
|
33
33
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
34
34
|
setOf45ia9pnfhe90 as setOf,
|
|
35
35
|
listOf1jh22dvmctj1r as listOf,
|
|
@@ -38,42 +38,42 @@ import {
|
|
|
38
38
|
copyOfRange3alro60z4hhf8 as copyOfRange,
|
|
39
39
|
startsWith641pyr7vf687 as startsWith,
|
|
40
40
|
isInterface3d6p8outrmvmk as isInterface,
|
|
41
|
-
CancellationException_init_$Create$
|
|
41
|
+
CancellationException_init_$Create$1flhbcsrur0zx as CancellationException_init_$Create$,
|
|
42
42
|
subtract2orl8z9upxd9l as subtract,
|
|
43
43
|
convertToInty04h231mmjoh as convertToInt,
|
|
44
44
|
add2suhfggl4zvkk as add,
|
|
45
45
|
fromInt2ii0rejb1w62w as fromInt,
|
|
46
|
-
LinkedHashMap_init_$Create$
|
|
46
|
+
LinkedHashMap_init_$Create$s27yccuovnls as LinkedHashMap_init_$Create$,
|
|
47
47
|
compareTo3ankvs086tmwq as compareTo,
|
|
48
|
-
NoSuchElementException_init_$Create$
|
|
48
|
+
NoSuchElementException_init_$Create$2uedmacu7g3r8 as NoSuchElementException_init_$Create$,
|
|
49
49
|
Collection1k04j3hzsbod0 as Collection,
|
|
50
50
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
51
51
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
52
52
|
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
53
|
-
StringBuilder_init_$Create$
|
|
53
|
+
StringBuilder_init_$Create$yggnhbmai7wr as StringBuilder_init_$Create$_0,
|
|
54
54
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
55
55
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
56
56
|
CharSequence1ceii1xorfwh7 as CharSequence,
|
|
57
|
-
IndexOutOfBoundsException_init_$Create$
|
|
57
|
+
IndexOutOfBoundsException_init_$Create$k95f9vzk11af as IndexOutOfBoundsException_init_$Create$,
|
|
58
58
|
charArray2ujmm1qusno00 as charArray,
|
|
59
59
|
shiftLeft3tsh2sstjchzn as shiftLeft,
|
|
60
|
-
NumberFormatException_init_$Create$
|
|
61
|
-
|
|
60
|
+
NumberFormatException_init_$Create$18mw0iwc7e1dn as NumberFormatException_init_$Create$,
|
|
61
|
+
toString1n9qg6fb0b5i8 as toString_1,
|
|
62
62
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
63
63
|
numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
|
|
64
64
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
65
|
-
ArrayList_init_$Create$
|
|
65
|
+
ArrayList_init_$Create$a978fvbbts3d as ArrayList_init_$Create$_0,
|
|
66
66
|
numberToLong2pakxeg38estk as numberToLong,
|
|
67
67
|
toLongArray23ixicpzp5r3w as toLongArray,
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
Char__plus_impl_qi7pgj12gj4qbkhmj1y as Char__plus_impl_qi7pgj,
|
|
69
|
+
Char__minus_impl_a2frrh4e9xgjqbj3za as Char__minus_impl_a2frrh,
|
|
70
70
|
toByteArray3caw0hip00os as toByteArray,
|
|
71
71
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
72
72
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
73
73
|
import {
|
|
74
74
|
MultiPartData57syw40llxls as MultiPartData,
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
MultiPart_getInstance5h1nld8q49pe as MultiPart_getInstance,
|
|
76
|
+
Companion_getInstance29j9s2wnmk34z as Companion_getInstance,
|
|
77
77
|
} from './ktor-ktor-http.mjs';
|
|
78
78
|
import {
|
|
79
79
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
@@ -83,32 +83,32 @@ import {
|
|
|
83
83
|
} from './kotlinx-coroutines-core.mjs';
|
|
84
84
|
import {
|
|
85
85
|
DefaultPool2gb1fm4epwgu9 as DefaultPool,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
readLineStrictTo1b1nwo5trwh7s as readLineStrictTo,
|
|
87
|
+
Companion_getInstance325d2evlpmaqk as Companion_getInstance_0,
|
|
88
|
+
LineEndingMode__plus_impl_ttpz2j3huakwvr4g74l as LineEndingMode__plus_impl_ttpz2j,
|
|
89
|
+
readUntil2ls7o0c1kzd4x as readUntil,
|
|
90
90
|
WriterScope3b0bo1enaee6b as WriterScope,
|
|
91
91
|
counted3iniv3aql3f9n as counted,
|
|
92
92
|
writer1eia5its2a1fh as writer,
|
|
93
|
-
|
|
93
|
+
readBuffery45c0omfxhxc as readBuffer,
|
|
94
94
|
get_remaining1lapv95kcmm0y as get_remaining,
|
|
95
|
-
|
|
95
|
+
skipIfFoundarb6fjv6fvg7 as skipIfFound,
|
|
96
96
|
ByteChannel3cxdguezl3lu7 as ByteChannel,
|
|
97
97
|
close3semq7pafb42g as close,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
readPacket290wjvm56mmfy as readPacket,
|
|
99
|
+
copyTo2t9ovypu2ttur as copyTo,
|
|
100
100
|
toByteArray1i3ns5jnoqlv6 as toByteArray_0,
|
|
101
101
|
NoPoolImplgos9n8jphzjp as NoPoolImpl,
|
|
102
102
|
} from './ktor-ktor-io.mjs';
|
|
103
103
|
import {
|
|
104
|
-
ByteString_init_$Create$
|
|
104
|
+
ByteString_init_$Create$kugk4mtkbg81 as ByteString_init_$Create$,
|
|
105
105
|
ByteString3c9fk8lsh3lvs as ByteString,
|
|
106
106
|
} from './kotlinx-io-kotlinx-io-bytestring.mjs';
|
|
107
107
|
import {
|
|
108
|
-
IOException_init_$Create$
|
|
109
|
-
EOFException_init_$Create$
|
|
108
|
+
IOException_init_$Create$1kq3iqv4goy5s as IOException_init_$Create$,
|
|
109
|
+
EOFException_init_$Create$1dnh68zpaekzl as EOFException_init_$Create$,
|
|
110
110
|
IOException1wyutdmfe71nu as IOException,
|
|
111
|
-
IOException_init_$Init$
|
|
111
|
+
IOException_init_$Init$25x2y9dednbo9 as IOException_init_$Init$,
|
|
112
112
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
113
113
|
//region block: imports
|
|
114
114
|
var imul = Math.imul;
|
|
@@ -143,12 +143,12 @@ initMetadataForClass(MutableRange, 'MutableRange');
|
|
|
143
143
|
//endregion
|
|
144
144
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
145
145
|
formFieldLimit = formFieldLimit === VOID ? 65536n : formFieldLimit;
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
146
|
+
this.coroutineContext_1 = coroutineContext;
|
|
147
|
+
this.previousPart_1 = null;
|
|
148
|
+
this.events_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
149
149
|
}
|
|
150
|
-
protoOf(CIOMultipartDataBase).
|
|
151
|
-
return this.
|
|
150
|
+
protoOf(CIOMultipartDataBase).get_coroutineContext_115oqo_k$ = function () {
|
|
151
|
+
return this.coroutineContext_1;
|
|
152
152
|
};
|
|
153
153
|
function get_IntArrayPool() {
|
|
154
154
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -161,103 +161,103 @@ function get_HeadersDataPool() {
|
|
|
161
161
|
}
|
|
162
162
|
var HeadersDataPool;
|
|
163
163
|
function thresholdReached($this) {
|
|
164
|
-
return $this.
|
|
164
|
+
return $this.size_1 >= $this.headerCapacity_1 * 0.75;
|
|
165
165
|
}
|
|
166
166
|
function resize($this) {
|
|
167
|
-
var prevSize = $this.
|
|
168
|
-
var prevData = $this.
|
|
169
|
-
$this.
|
|
170
|
-
$this.
|
|
167
|
+
var prevSize = $this.size_1;
|
|
168
|
+
var prevData = $this.headersData_1;
|
|
169
|
+
$this.size_1 = 0;
|
|
170
|
+
$this.headerCapacity_1 = imul($this.headerCapacity_1, 2) | 128;
|
|
171
171
|
var tmp = $this;
|
|
172
172
|
// Inline function 'kotlin.apply' call
|
|
173
|
-
var this_0 = get_HeadersDataPool().
|
|
174
|
-
this_0.
|
|
175
|
-
tmp.
|
|
176
|
-
var _iterator__ex2g4s = prevData.
|
|
177
|
-
while (_iterator__ex2g4s.
|
|
178
|
-
var headerOffset = _iterator__ex2g4s.
|
|
179
|
-
$this.
|
|
173
|
+
var this_0 = get_HeadersDataPool().borrow_mvkpor_k$();
|
|
174
|
+
this_0.prepare_vwo6lb_k$(imul(prevData.arraysCount_qdzoj9_k$(), 2) | 1);
|
|
175
|
+
tmp.headersData_1 = this_0;
|
|
176
|
+
var _iterator__ex2g4s = prevData.headersStarts_9a2v7t_k$().iterator_jk1svi_k$();
|
|
177
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
178
|
+
var headerOffset = _iterator__ex2g4s.next_20eer_k$();
|
|
179
|
+
$this.put_ca69tt_k$(prevData.at_whxqnv_k$(headerOffset + 1 | 0), prevData.at_whxqnv_k$(headerOffset + 2 | 0), prevData.at_whxqnv_k$(headerOffset + 3 | 0), prevData.at_whxqnv_k$(headerOffset + 4 | 0));
|
|
180
180
|
}
|
|
181
|
-
get_HeadersDataPool().
|
|
181
|
+
get_HeadersDataPool().recycle_d2xv5h_k$(prevData);
|
|
182
182
|
// Inline function 'kotlin.require' call
|
|
183
183
|
// Inline function 'kotlin.require' call
|
|
184
|
-
if (!(prevSize === $this.
|
|
184
|
+
if (!(prevSize === $this.size_1)) {
|
|
185
185
|
var message = 'Failed requirement.';
|
|
186
186
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function headerHasName($this, name, headerOffset) {
|
|
190
|
-
var nameStartIndex = $this.
|
|
191
|
-
var nameEndIndex = $this.
|
|
192
|
-
return equalsLowerCase($this.
|
|
190
|
+
var nameStartIndex = $this.headersData_1.at_whxqnv_k$(headerOffset + 1 | 0);
|
|
191
|
+
var nameEndIndex = $this.headersData_1.at_whxqnv_k$(headerOffset + 2 | 0);
|
|
192
|
+
return equalsLowerCase($this.builder_1, nameStartIndex, nameEndIndex, name);
|
|
193
193
|
}
|
|
194
194
|
function HttpHeadersMap(builder) {
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
198
|
-
this.
|
|
195
|
+
this.builder_1 = builder;
|
|
196
|
+
this.size_1 = 0;
|
|
197
|
+
this.headerCapacity_1 = 0;
|
|
198
|
+
this.headersData_1 = get_HeadersDataPool().borrow_mvkpor_k$();
|
|
199
199
|
}
|
|
200
|
-
protoOf(HttpHeadersMap).
|
|
201
|
-
if (this.
|
|
200
|
+
protoOf(HttpHeadersMap).get_6bo4tg_k$ = function (name) {
|
|
201
|
+
if (this.size_1 === 0)
|
|
202
202
|
return null;
|
|
203
203
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
204
204
|
var this_0 = hashCodeLowerCase(name);
|
|
205
205
|
var hash = abs(this_0);
|
|
206
|
-
var headerIndex = hash % this.
|
|
207
|
-
while (!(this.
|
|
206
|
+
var headerIndex = hash % this.headerCapacity_1 | 0;
|
|
207
|
+
while (!(this.headersData_1.at_whxqnv_k$(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
208
208
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
209
|
-
return this.
|
|
209
|
+
return this.valueAtOffset_rvq37j_k$(imul(headerIndex, 6));
|
|
210
210
|
}
|
|
211
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
211
|
+
headerIndex = (headerIndex + 1 | 0) % this.headerCapacity_1 | 0;
|
|
212
212
|
}
|
|
213
213
|
return null;
|
|
214
214
|
};
|
|
215
|
-
protoOf(HttpHeadersMap).
|
|
216
|
-
return this.
|
|
215
|
+
protoOf(HttpHeadersMap).offsets_plvqo0_k$ = function () {
|
|
216
|
+
return this.headersData_1.headersStarts_9a2v7t_k$();
|
|
217
217
|
};
|
|
218
|
-
protoOf(HttpHeadersMap).
|
|
218
|
+
protoOf(HttpHeadersMap).put_ca69tt_k$ = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
219
219
|
if (thresholdReached(this)) {
|
|
220
220
|
resize(this);
|
|
221
221
|
}
|
|
222
222
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
223
|
-
var this_0 = hashCodeLowerCase(this.
|
|
223
|
+
var this_0 = hashCodeLowerCase(this.builder_1, nameStartIndex, nameEndIndex);
|
|
224
224
|
var hash = abs(this_0);
|
|
225
|
-
var name = this.
|
|
226
|
-
var headerIndex = hash % this.
|
|
225
|
+
var name = this.builder_1.subSequence_hm5hnj_k$(nameStartIndex, nameEndIndex);
|
|
226
|
+
var headerIndex = hash % this.headerCapacity_1 | 0;
|
|
227
227
|
var sameNameHeaderIndex = -1;
|
|
228
|
-
while (!(this.
|
|
228
|
+
while (!(this.headersData_1.at_whxqnv_k$(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
229
229
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
230
230
|
sameNameHeaderIndex = headerIndex;
|
|
231
231
|
}
|
|
232
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
232
|
+
headerIndex = (headerIndex + 1 | 0) % this.headerCapacity_1 | 0;
|
|
233
233
|
}
|
|
234
234
|
var headerOffset = imul(headerIndex, 6);
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
235
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 0 | 0, hash);
|
|
236
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 1 | 0, nameStartIndex);
|
|
237
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 2 | 0, nameEndIndex);
|
|
238
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 3 | 0, valueStartIndex);
|
|
239
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 4 | 0, valueEndIndex);
|
|
240
|
+
this.headersData_1.set_g707pu_k$(headerOffset + 5 | 0, -1);
|
|
241
241
|
if (!(sameNameHeaderIndex === -1)) {
|
|
242
|
-
this.
|
|
242
|
+
this.headersData_1.set_g707pu_k$(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
243
243
|
}
|
|
244
|
-
this.
|
|
244
|
+
this.size_1 = this.size_1 + 1 | 0;
|
|
245
245
|
};
|
|
246
|
-
protoOf(HttpHeadersMap).
|
|
247
|
-
var nameStartIndex = this.
|
|
248
|
-
var nameEndIndex = this.
|
|
249
|
-
return this.
|
|
246
|
+
protoOf(HttpHeadersMap).nameAtOffset_nevk7t_k$ = function (headerOffset) {
|
|
247
|
+
var nameStartIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 1 | 0);
|
|
248
|
+
var nameEndIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 2 | 0);
|
|
249
|
+
return this.builder_1.subSequence_hm5hnj_k$(nameStartIndex, nameEndIndex);
|
|
250
250
|
};
|
|
251
|
-
protoOf(HttpHeadersMap).
|
|
252
|
-
var valueStartIndex = this.
|
|
253
|
-
var valueEndIndex = this.
|
|
254
|
-
return this.
|
|
251
|
+
protoOf(HttpHeadersMap).valueAtOffset_rvq37j_k$ = function (headerOffset) {
|
|
252
|
+
var valueStartIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 3 | 0);
|
|
253
|
+
var valueEndIndex = this.headersData_1.at_whxqnv_k$(headerOffset + 4 | 0);
|
|
254
|
+
return this.builder_1.subSequence_hm5hnj_k$(valueStartIndex, valueEndIndex);
|
|
255
255
|
};
|
|
256
|
-
protoOf(HttpHeadersMap).
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
259
|
-
get_HeadersDataPool().
|
|
260
|
-
this.
|
|
256
|
+
protoOf(HttpHeadersMap).release_wu5yyf_k$ = function () {
|
|
257
|
+
this.size_1 = 0;
|
|
258
|
+
this.headerCapacity_1 = 0;
|
|
259
|
+
get_HeadersDataPool().recycle_d2xv5h_k$(this.headersData_1);
|
|
260
|
+
this.headersData_1 = get_HeadersDataPool().borrow_mvkpor_k$();
|
|
261
261
|
};
|
|
262
262
|
protoOf(HttpHeadersMap).toString = function () {
|
|
263
263
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -267,148 +267,148 @@ protoOf(HttpHeadersMap).toString = function () {
|
|
|
267
267
|
return this_0.toString();
|
|
268
268
|
};
|
|
269
269
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
270
|
-
this.
|
|
270
|
+
this.this$0__1 = this$0;
|
|
271
271
|
CoroutineImpl.call(this, resultContinuation);
|
|
272
272
|
}
|
|
273
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
274
|
-
var tmp = this.
|
|
275
|
-
tmp.
|
|
276
|
-
tmp.
|
|
277
|
-
return tmp.
|
|
273
|
+
protoOf(HeadersData$headersStarts$slambda).invoke_pgsqqr_k$ = function ($this$sequence, $completion) {
|
|
274
|
+
var tmp = this.create_rkcuc7_k$($this$sequence, $completion);
|
|
275
|
+
tmp.result_1 = Unit_instance;
|
|
276
|
+
tmp.exception_1 = null;
|
|
277
|
+
return tmp.doResume_5yljmg_k$();
|
|
278
278
|
};
|
|
279
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
280
|
-
return this.
|
|
279
|
+
protoOf(HeadersData$headersStarts$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
280
|
+
return this.invoke_pgsqqr_k$(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
281
281
|
};
|
|
282
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
283
|
-
var suspendResult = this.
|
|
282
|
+
protoOf(HeadersData$headersStarts$slambda).doResume_5yljmg_k$ = function () {
|
|
283
|
+
var suspendResult = this.result_1;
|
|
284
284
|
$sm: do
|
|
285
285
|
try {
|
|
286
|
-
var tmp = this.
|
|
286
|
+
var tmp = this.state_1;
|
|
287
287
|
switch (tmp) {
|
|
288
288
|
case 0:
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
289
|
+
this.exceptionState_1 = 7;
|
|
290
|
+
this.joinedIndex0__1 = 0;
|
|
291
|
+
this._iterator_3_yqohr3__1 = this.this$0__1.arrays_1.iterator_jk1svi_k$();
|
|
292
|
+
this.state_1 = 1;
|
|
293
293
|
continue $sm;
|
|
294
294
|
case 1:
|
|
295
|
-
if (!this.
|
|
296
|
-
this.
|
|
295
|
+
if (!this._iterator_3_yqohr3__1.hasNext_bitz1p_k$()) {
|
|
296
|
+
this.state_1 = 6;
|
|
297
297
|
continue $sm;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
this.
|
|
300
|
+
this.arr2__1 = this._iterator_3_yqohr3__1.next_20eer_k$();
|
|
301
|
+
this.localIndex1__1 = 0;
|
|
302
|
+
this.state_1 = 2;
|
|
303
303
|
continue $sm;
|
|
304
304
|
case 2:
|
|
305
|
-
if (!(this.
|
|
306
|
-
this.
|
|
305
|
+
if (!(this.localIndex1__1 < this.arr2__1.length)) {
|
|
306
|
+
this.state_1 = 5;
|
|
307
307
|
continue $sm;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
if (!(this.
|
|
311
|
-
this.
|
|
312
|
-
suspendResult = this.
|
|
310
|
+
if (!(this.this$0__1.at_whxqnv_k$(this.joinedIndex0__1 + 0 | 0) === -1)) {
|
|
311
|
+
this.state_1 = 3;
|
|
312
|
+
suspendResult = this.$this$sequence_1.yield_3xhcex_k$(this.joinedIndex0__1, this);
|
|
313
313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
314
314
|
return suspendResult;
|
|
315
315
|
}
|
|
316
316
|
continue $sm;
|
|
317
317
|
} else {
|
|
318
|
-
this.
|
|
318
|
+
this.state_1 = 4;
|
|
319
319
|
continue $sm;
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
case 3:
|
|
323
|
-
this.
|
|
323
|
+
this.state_1 = 4;
|
|
324
324
|
continue $sm;
|
|
325
325
|
case 4:
|
|
326
|
-
this.
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
326
|
+
this.localIndex1__1 = this.localIndex1__1 + 6 | 0;
|
|
327
|
+
this.joinedIndex0__1 = this.joinedIndex0__1 + 6 | 0;
|
|
328
|
+
this.state_1 = 2;
|
|
329
329
|
continue $sm;
|
|
330
330
|
case 5:
|
|
331
|
-
this.
|
|
331
|
+
this.state_1 = 1;
|
|
332
332
|
continue $sm;
|
|
333
333
|
case 6:
|
|
334
334
|
return Unit_instance;
|
|
335
335
|
case 7:
|
|
336
|
-
throw this.
|
|
336
|
+
throw this.exception_1;
|
|
337
337
|
}
|
|
338
338
|
} catch ($p) {
|
|
339
339
|
var e = $p;
|
|
340
|
-
if (this.
|
|
340
|
+
if (this.exceptionState_1 === 7) {
|
|
341
341
|
throw e;
|
|
342
342
|
} else {
|
|
343
|
-
this.
|
|
344
|
-
this.
|
|
343
|
+
this.state_1 = this.exceptionState_1;
|
|
344
|
+
this.exception_1 = e;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
while (true);
|
|
348
348
|
};
|
|
349
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
350
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
351
|
-
i
|
|
349
|
+
protoOf(HeadersData$headersStarts$slambda).create_rkcuc7_k$ = function ($this$sequence, completion) {
|
|
350
|
+
var i = new HeadersData$headersStarts$slambda(this.this$0__1, completion);
|
|
351
|
+
i.$this$sequence_1 = $this$sequence;
|
|
352
352
|
return i;
|
|
353
353
|
};
|
|
354
354
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
355
355
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
356
356
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
357
|
-
return i.
|
|
357
|
+
return i.invoke_pgsqqr_k$($this$sequence, $completion);
|
|
358
358
|
}, 1);
|
|
359
359
|
}
|
|
360
360
|
function HeadersData() {
|
|
361
361
|
var tmp = this;
|
|
362
362
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
363
|
-
tmp.
|
|
363
|
+
tmp.arrays_1 = ArrayList_init_$Create$();
|
|
364
364
|
}
|
|
365
|
-
protoOf(HeadersData).
|
|
366
|
-
return this.
|
|
365
|
+
protoOf(HeadersData).arraysCount_qdzoj9_k$ = function () {
|
|
366
|
+
return this.arrays_1.get_size_woubt6_k$();
|
|
367
367
|
};
|
|
368
|
-
protoOf(HeadersData).
|
|
368
|
+
protoOf(HeadersData).prepare_vwo6lb_k$ = function (subArraysCount) {
|
|
369
369
|
// Inline function 'kotlin.repeat' call
|
|
370
370
|
var inductionVariable = 0;
|
|
371
371
|
if (inductionVariable < subArraysCount)
|
|
372
372
|
do {
|
|
373
373
|
var index = inductionVariable;
|
|
374
374
|
inductionVariable = inductionVariable + 1 | 0;
|
|
375
|
-
this.
|
|
375
|
+
this.arrays_1.add_utx5q5_k$(get_IntArrayPool().borrow_mvkpor_k$());
|
|
376
376
|
}
|
|
377
377
|
while (inductionVariable < subArraysCount);
|
|
378
378
|
};
|
|
379
|
-
protoOf(HeadersData).
|
|
380
|
-
return this.
|
|
379
|
+
protoOf(HeadersData).at_whxqnv_k$ = function (index) {
|
|
380
|
+
return this.arrays_1.get_c1px32_k$(index / 768 | 0)[index % 768 | 0];
|
|
381
381
|
};
|
|
382
|
-
protoOf(HeadersData).
|
|
383
|
-
this.
|
|
382
|
+
protoOf(HeadersData).set_g707pu_k$ = function (index, value) {
|
|
383
|
+
this.arrays_1.get_c1px32_k$(index / 768 | 0)[index % 768 | 0] = value;
|
|
384
384
|
};
|
|
385
|
-
protoOf(HeadersData).
|
|
385
|
+
protoOf(HeadersData).headersStarts_9a2v7t_k$ = function () {
|
|
386
386
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
387
387
|
};
|
|
388
|
-
protoOf(HeadersData).
|
|
389
|
-
var _iterator__ex2g4s = this.
|
|
390
|
-
while (_iterator__ex2g4s.
|
|
391
|
-
var array = _iterator__ex2g4s.
|
|
392
|
-
get_IntArrayPool().
|
|
388
|
+
protoOf(HeadersData).release_wu5yyf_k$ = function () {
|
|
389
|
+
var _iterator__ex2g4s = this.arrays_1.iterator_jk1svi_k$();
|
|
390
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
391
|
+
var array = _iterator__ex2g4s.next_20eer_k$();
|
|
392
|
+
get_IntArrayPool().recycle_d2xv5h_k$(array);
|
|
393
393
|
}
|
|
394
|
-
this.
|
|
394
|
+
this.arrays_1.clear_j9egeb_k$();
|
|
395
395
|
};
|
|
396
396
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
397
397
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
398
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
399
|
-
while (_iterator__ex2g4s.
|
|
400
|
-
var offset = _iterator__ex2g4s.
|
|
401
|
-
out.
|
|
402
|
-
out.
|
|
403
|
-
out.
|
|
404
|
-
out.
|
|
405
|
-
out.
|
|
398
|
+
var _iterator__ex2g4s = _this__u8e3s4.offsets_plvqo0_k$().iterator_jk1svi_k$();
|
|
399
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
400
|
+
var offset = _iterator__ex2g4s.next_20eer_k$();
|
|
401
|
+
out.append_jgojdo_k$(indent);
|
|
402
|
+
out.append_jgojdo_k$(_this__u8e3s4.nameAtOffset_nevk7t_k$(offset));
|
|
403
|
+
out.append_jgojdo_k$(' => ');
|
|
404
|
+
out.append_jgojdo_k$(_this__u8e3s4.valueAtOffset_rvq37j_k$(offset));
|
|
405
|
+
out.append_jgojdo_k$('\n');
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
function IntArrayPool$1() {
|
|
409
409
|
DefaultPool.call(this, 1000);
|
|
410
410
|
}
|
|
411
|
-
protoOf(IntArrayPool$1).
|
|
411
|
+
protoOf(IntArrayPool$1).produceInstance_xswihh_k$ = function () {
|
|
412
412
|
var tmp = 0;
|
|
413
413
|
var tmp_0 = new Int32Array(768);
|
|
414
414
|
while (tmp < 768) {
|
|
@@ -417,25 +417,25 @@ protoOf(IntArrayPool$1).q1r = function () {
|
|
|
417
417
|
}
|
|
418
418
|
return tmp_0;
|
|
419
419
|
};
|
|
420
|
-
protoOf(IntArrayPool$1).
|
|
420
|
+
protoOf(IntArrayPool$1).clearInstance_c5szmx_k$ = function (instance) {
|
|
421
421
|
fill(instance, -1);
|
|
422
|
-
return protoOf(DefaultPool).
|
|
422
|
+
return protoOf(DefaultPool).clearInstance_nfz4jw_k$.call(this, instance);
|
|
423
423
|
};
|
|
424
|
-
protoOf(IntArrayPool$1).
|
|
425
|
-
return this.
|
|
424
|
+
protoOf(IntArrayPool$1).clearInstance_nfz4jw_k$ = function (instance) {
|
|
425
|
+
return this.clearInstance_c5szmx_k$(isIntArray(instance) ? instance : THROW_CCE());
|
|
426
426
|
};
|
|
427
427
|
function HeadersDataPool$1() {
|
|
428
428
|
DefaultPool.call(this, 1000);
|
|
429
429
|
}
|
|
430
|
-
protoOf(HeadersDataPool$1).
|
|
430
|
+
protoOf(HeadersDataPool$1).produceInstance_xswihh_k$ = function () {
|
|
431
431
|
return new HeadersData();
|
|
432
432
|
};
|
|
433
|
-
protoOf(HeadersDataPool$1).
|
|
434
|
-
instance.
|
|
435
|
-
return protoOf(DefaultPool).
|
|
433
|
+
protoOf(HeadersDataPool$1).clearInstance_adg7k9_k$ = function (instance) {
|
|
434
|
+
instance.release_wu5yyf_k$();
|
|
435
|
+
return protoOf(DefaultPool).clearInstance_nfz4jw_k$.call(this, instance);
|
|
436
436
|
};
|
|
437
|
-
protoOf(HeadersDataPool$1).
|
|
438
|
-
return this.
|
|
437
|
+
protoOf(HeadersDataPool$1).clearInstance_nfz4jw_k$ = function (instance) {
|
|
438
|
+
return this.clearInstance_adg7k9_k$(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
439
439
|
};
|
|
440
440
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
441
441
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -455,22 +455,22 @@ var versions;
|
|
|
455
455
|
function parseHeaders(input, builder, range, $completion) {
|
|
456
456
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
457
457
|
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
458
|
-
tmp.
|
|
459
|
-
tmp.
|
|
460
|
-
return tmp.
|
|
458
|
+
tmp.result_1 = Unit_instance;
|
|
459
|
+
tmp.exception_1 = null;
|
|
460
|
+
return tmp.doResume_5yljmg_k$();
|
|
461
461
|
}
|
|
462
462
|
function parseHeaderName(text, range) {
|
|
463
463
|
_init_properties_HttpParser_kt__gbdom1();
|
|
464
|
-
var index = range.
|
|
465
|
-
var end = range.
|
|
464
|
+
var index = range.start_1;
|
|
465
|
+
var end = range.end_1;
|
|
466
466
|
while (index < end) {
|
|
467
|
-
var ch = text.
|
|
468
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
469
|
-
range.
|
|
467
|
+
var ch = text.get_kdzpvg_k$(index);
|
|
468
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.start_1)) {
|
|
469
|
+
range.start_1 = index + 1 | 0;
|
|
470
470
|
return index;
|
|
471
471
|
}
|
|
472
472
|
if (isDelimiter(ch)) {
|
|
473
|
-
parseHeaderNameFailed(text, index, range.
|
|
473
|
+
parseHeaderNameFailed(text, index, range.start_1, ch);
|
|
474
474
|
}
|
|
475
475
|
index = index + 1 | 0;
|
|
476
476
|
}
|
|
@@ -478,18 +478,18 @@ function parseHeaderName(text, range) {
|
|
|
478
478
|
}
|
|
479
479
|
function parseHeaderValue(text, range) {
|
|
480
480
|
_init_properties_HttpParser_kt__gbdom1();
|
|
481
|
-
var start = range.
|
|
482
|
-
var end = range.
|
|
481
|
+
var start = range.start_1;
|
|
482
|
+
var end = range.end_1;
|
|
483
483
|
var index = start;
|
|
484
484
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
485
485
|
if (index >= end) {
|
|
486
|
-
range.
|
|
486
|
+
range.start_1 = end;
|
|
487
487
|
return Unit_instance;
|
|
488
488
|
}
|
|
489
489
|
var valueStart = index;
|
|
490
490
|
var valueLastIndex = index;
|
|
491
491
|
while (index < end) {
|
|
492
|
-
var ch = text.
|
|
492
|
+
var ch = text.get_kdzpvg_k$(index);
|
|
493
493
|
if (ch !== _Char___init__impl__6a9atx(9) && ch !== _Char___init__impl__6a9atx(32))
|
|
494
494
|
if (ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(10)) {
|
|
495
495
|
characterIsNotAllowed(text, ch);
|
|
@@ -497,8 +497,8 @@ function parseHeaderValue(text, range) {
|
|
|
497
497
|
valueLastIndex = index;
|
|
498
498
|
index = index + 1 | 0;
|
|
499
499
|
}
|
|
500
|
-
range.
|
|
501
|
-
range.
|
|
500
|
+
range.start_1 = valueStart;
|
|
501
|
+
range.end_1 = valueLastIndex + 1 | 0;
|
|
502
502
|
}
|
|
503
503
|
function validateHostHeader(host) {
|
|
504
504
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -512,7 +512,7 @@ function validateHostHeader(host) {
|
|
|
512
512
|
while (inductionVariable < charSequenceLength(host)) {
|
|
513
513
|
var element = charSequenceGet(host, inductionVariable);
|
|
514
514
|
inductionVariable = inductionVariable + 1 | 0;
|
|
515
|
-
if (get_hostForbiddenSymbols().
|
|
515
|
+
if (get_hostForbiddenSymbols().contains_aljjnj_k$(new Char(element))) {
|
|
516
516
|
tmp$ret$0 = true;
|
|
517
517
|
break $l$block;
|
|
518
518
|
}
|
|
@@ -539,9 +539,9 @@ function parseHeaderNameFailed(text, index, start, ch) {
|
|
|
539
539
|
}
|
|
540
540
|
function noColonFound(text, range) {
|
|
541
541
|
_init_properties_HttpParser_kt__gbdom1();
|
|
542
|
-
var tmp2 = range.
|
|
542
|
+
var tmp2 = range.start_1;
|
|
543
543
|
// Inline function 'kotlin.text.substring' call
|
|
544
|
-
var endIndex = range.
|
|
544
|
+
var endIndex = range.end_1;
|
|
545
545
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
546
546
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
547
547
|
}
|
|
@@ -557,30 +557,30 @@ function ParserException(message) {
|
|
|
557
557
|
}
|
|
558
558
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
559
559
|
CoroutineImpl.call(this, resultContinuation);
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
560
|
+
this.input_1 = input;
|
|
561
|
+
this.builder_1 = builder;
|
|
562
|
+
this.range_1 = range;
|
|
563
563
|
}
|
|
564
|
-
protoOf($parseHeadersCOROUTINE$).
|
|
565
|
-
var suspendResult = this.
|
|
564
|
+
protoOf($parseHeadersCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
565
|
+
var suspendResult = this.result_1;
|
|
566
566
|
$sm: do
|
|
567
567
|
try {
|
|
568
|
-
var tmp = this.
|
|
568
|
+
var tmp = this.state_1;
|
|
569
569
|
switch (tmp) {
|
|
570
570
|
case 0:
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
571
|
+
this.exceptionState_1 = 7;
|
|
572
|
+
this.headers0__1 = new HttpHeadersMap(this.builder_1);
|
|
573
|
+
this.exceptionState_1 = 6;
|
|
574
|
+
this.state_1 = 1;
|
|
575
575
|
continue $sm;
|
|
576
576
|
case 1:
|
|
577
577
|
if (!true) {
|
|
578
|
-
this.
|
|
578
|
+
this.state_1 = 5;
|
|
579
579
|
continue $sm;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
this.
|
|
583
|
-
suspendResult = readLineStrictTo(this.
|
|
582
|
+
this.state_1 = 2;
|
|
583
|
+
suspendResult = readLineStrictTo(this.input_1, this.builder_1, 8192n, VOID, this);
|
|
584
584
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
585
585
|
return suspendResult;
|
|
586
586
|
}
|
|
@@ -588,68 +588,68 @@ protoOf($parseHeadersCOROUTINE$).s8 = function () {
|
|
|
588
588
|
continue $sm;
|
|
589
589
|
case 2:
|
|
590
590
|
if (suspendResult === -1n) {
|
|
591
|
-
this.
|
|
591
|
+
this.headers0__1.release_wu5yyf_k$();
|
|
592
592
|
return null;
|
|
593
593
|
} else {
|
|
594
|
-
this.
|
|
594
|
+
this.state_1 = 3;
|
|
595
595
|
continue $sm;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
case 3:
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
if (this.
|
|
602
|
-
this.
|
|
599
|
+
this.range_1.end_1 = this.builder_1.length_1;
|
|
600
|
+
this.rangeLength1__1 = this.range_1.end_1 - this.range_1.start_1 | 0;
|
|
601
|
+
if (this.rangeLength1__1 === 0) {
|
|
602
|
+
this.state_1 = 5;
|
|
603
603
|
continue $sm;
|
|
604
604
|
} else {
|
|
605
|
-
this.
|
|
605
|
+
this.state_1 = 4;
|
|
606
606
|
continue $sm;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
case 4:
|
|
610
|
-
if (this.
|
|
610
|
+
if (this.rangeLength1__1 >= 8192) {
|
|
611
611
|
var message = 'Header line length limit exceeded';
|
|
612
612
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
613
613
|
}
|
|
614
614
|
|
|
615
|
-
var nameStart = this.
|
|
616
|
-
var nameEnd = parseHeaderName(this.
|
|
617
|
-
var headerEnd = this.
|
|
618
|
-
parseHeaderValue(this.
|
|
619
|
-
var valueStart = this.
|
|
620
|
-
var valueEnd = this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
615
|
+
var nameStart = this.range_1.start_1;
|
|
616
|
+
var nameEnd = parseHeaderName(this.builder_1, this.range_1);
|
|
617
|
+
var headerEnd = this.range_1.end_1;
|
|
618
|
+
parseHeaderValue(this.builder_1, this.range_1);
|
|
619
|
+
var valueStart = this.range_1.start_1;
|
|
620
|
+
var valueEnd = this.range_1.end_1;
|
|
621
|
+
this.range_1.start_1 = headerEnd;
|
|
622
|
+
this.headers0__1.put_ca69tt_k$(nameStart, nameEnd, valueStart, valueEnd);
|
|
623
|
+
this.state_1 = 1;
|
|
624
624
|
continue $sm;
|
|
625
625
|
case 5:
|
|
626
|
-
var host = this.
|
|
626
|
+
var host = this.headers0__1.get_6bo4tg_k$('Host');
|
|
627
627
|
if (!(host == null)) {
|
|
628
628
|
validateHostHeader(host);
|
|
629
629
|
}
|
|
630
630
|
|
|
631
|
-
return this.
|
|
631
|
+
return this.headers0__1;
|
|
632
632
|
case 6:
|
|
633
|
-
this.
|
|
634
|
-
var tmp_0 = this.
|
|
633
|
+
this.exceptionState_1 = 7;
|
|
634
|
+
var tmp_0 = this.exception_1;
|
|
635
635
|
if (tmp_0 instanceof Error) {
|
|
636
|
-
var t = this.
|
|
637
|
-
this.
|
|
636
|
+
var t = this.exception_1;
|
|
637
|
+
this.headers0__1.release_wu5yyf_k$();
|
|
638
638
|
throw t;
|
|
639
639
|
} else {
|
|
640
|
-
throw this.
|
|
640
|
+
throw this.exception_1;
|
|
641
641
|
}
|
|
642
642
|
|
|
643
643
|
case 7:
|
|
644
|
-
throw this.
|
|
644
|
+
throw this.exception_1;
|
|
645
645
|
}
|
|
646
646
|
} catch ($p) {
|
|
647
647
|
var e = $p;
|
|
648
|
-
if (this.
|
|
648
|
+
if (this.exceptionState_1 === 7) {
|
|
649
649
|
throw e;
|
|
650
650
|
} else {
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
651
|
+
this.state_1 = this.exceptionState_1;
|
|
652
|
+
this.exception_1 = e;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
while (true);
|
|
@@ -659,8 +659,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
659
659
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
660
660
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
661
661
|
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))]);
|
|
662
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().
|
|
663
|
-
versions = Companion_instance.
|
|
662
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().CRLF_1, Companion_getInstance_0().LF_1);
|
|
663
|
+
versions = Companion_instance.build_qfjo4r_k$(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
function get_CrLf() {
|
|
@@ -675,23 +675,23 @@ function get_PrefixString() {
|
|
|
675
675
|
var PrefixString;
|
|
676
676
|
function Preamble(body) {
|
|
677
677
|
MultipartEvent.call(this);
|
|
678
|
-
this.
|
|
678
|
+
this.body_1 = body;
|
|
679
679
|
}
|
|
680
680
|
function MultipartPart(headers, body) {
|
|
681
681
|
MultipartEvent.call(this);
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
682
|
+
this.headers_1 = headers;
|
|
683
|
+
this.body_1 = body;
|
|
684
684
|
}
|
|
685
685
|
function Epilogue(body) {
|
|
686
686
|
MultipartEvent.call(this);
|
|
687
|
-
this.
|
|
687
|
+
this.body_1 = body;
|
|
688
688
|
}
|
|
689
689
|
function MultipartEvent() {
|
|
690
690
|
}
|
|
691
691
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
692
692
|
maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
|
|
693
693
|
_init_properties_Multipart_kt__ato98a();
|
|
694
|
-
if (!MultiPart_getInstance().
|
|
694
|
+
if (!MultiPart_getInstance().contains_vaykv6_k$(contentType)) {
|
|
695
695
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
696
696
|
}
|
|
697
697
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -839,21 +839,21 @@ function parsePreambleImpl(boundary, input, output, limit, $completion) {
|
|
|
839
839
|
}
|
|
840
840
|
function parsePartHeadersImpl(input, $completion) {
|
|
841
841
|
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
842
|
-
tmp.
|
|
843
|
-
tmp.
|
|
844
|
-
return tmp.
|
|
842
|
+
tmp.result_1 = Unit_instance;
|
|
843
|
+
tmp.exception_1 = null;
|
|
844
|
+
return tmp.doResume_5yljmg_k$();
|
|
845
845
|
}
|
|
846
846
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
847
847
|
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
848
|
-
tmp.
|
|
849
|
-
tmp.
|
|
850
|
-
return tmp.
|
|
848
|
+
tmp.result_1 = Unit_instance;
|
|
849
|
+
tmp.exception_1 = null;
|
|
850
|
+
return tmp.doResume_5yljmg_k$();
|
|
851
851
|
}
|
|
852
852
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
853
853
|
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
854
|
-
tmp.
|
|
855
|
-
tmp.
|
|
856
|
-
return tmp.
|
|
854
|
+
tmp.result_1 = Unit_instance;
|
|
855
|
+
tmp.exception_1 = null;
|
|
856
|
+
return tmp.doResume_5yljmg_k$();
|
|
857
857
|
}
|
|
858
858
|
function throwLimitExceeded(actual, limit) {
|
|
859
859
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -868,37 +868,37 @@ function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
|
868
868
|
boundaryBytes[_unary__edvuaz] = value;
|
|
869
869
|
}
|
|
870
870
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
871
|
-
this
|
|
872
|
-
this
|
|
871
|
+
this.$firstBoundary_1 = $firstBoundary;
|
|
872
|
+
this.$countedInput_1 = $countedInput;
|
|
873
873
|
CoroutineImpl.call(this, resultContinuation);
|
|
874
874
|
}
|
|
875
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
876
|
-
var tmp = this.
|
|
877
|
-
tmp.
|
|
878
|
-
tmp.
|
|
879
|
-
return tmp.
|
|
875
|
+
protoOf(parseMultipart$slambda$slambda).invoke_86bb4c_k$ = function ($this$writer, $completion) {
|
|
876
|
+
var tmp = this.create_fmjhmg_k$($this$writer, $completion);
|
|
877
|
+
tmp.result_1 = Unit_instance;
|
|
878
|
+
tmp.exception_1 = null;
|
|
879
|
+
return tmp.doResume_5yljmg_k$();
|
|
880
880
|
};
|
|
881
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
882
|
-
return this.
|
|
881
|
+
protoOf(parseMultipart$slambda$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
882
|
+
return this.invoke_86bb4c_k$(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
883
883
|
};
|
|
884
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
885
|
-
var suspendResult = this.
|
|
884
|
+
protoOf(parseMultipart$slambda$slambda).doResume_5yljmg_k$ = function () {
|
|
885
|
+
var suspendResult = this.result_1;
|
|
886
886
|
$sm: do
|
|
887
887
|
try {
|
|
888
|
-
var tmp = this.
|
|
888
|
+
var tmp = this.state_1;
|
|
889
889
|
switch (tmp) {
|
|
890
890
|
case 0:
|
|
891
|
-
this.
|
|
892
|
-
this.
|
|
893
|
-
suspendResult = parsePreambleImpl(this
|
|
891
|
+
this.exceptionState_1 = 3;
|
|
892
|
+
this.state_1 = 1;
|
|
893
|
+
suspendResult = parsePreambleImpl(this.$firstBoundary_1, this.$countedInput_1, this.$this$writer_1.channel_1, 8193n, this);
|
|
894
894
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
895
895
|
return suspendResult;
|
|
896
896
|
}
|
|
897
897
|
|
|
898
898
|
continue $sm;
|
|
899
899
|
case 1:
|
|
900
|
-
this.
|
|
901
|
-
suspendResult = this.
|
|
900
|
+
this.state_1 = 2;
|
|
901
|
+
suspendResult = this.$this$writer_1.channel_1.flushAndClose_3zd2q_k$(this);
|
|
902
902
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
903
903
|
return suspendResult;
|
|
904
904
|
}
|
|
@@ -907,59 +907,59 @@ protoOf(parseMultipart$slambda$slambda).s8 = function () {
|
|
|
907
907
|
case 2:
|
|
908
908
|
return Unit_instance;
|
|
909
909
|
case 3:
|
|
910
|
-
throw this.
|
|
910
|
+
throw this.exception_1;
|
|
911
911
|
}
|
|
912
912
|
} catch ($p) {
|
|
913
913
|
var e = $p;
|
|
914
|
-
if (this.
|
|
914
|
+
if (this.exceptionState_1 === 3) {
|
|
915
915
|
throw e;
|
|
916
916
|
} else {
|
|
917
|
-
this.
|
|
918
|
-
this.
|
|
917
|
+
this.state_1 = this.exceptionState_1;
|
|
918
|
+
this.exception_1 = e;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
while (true);
|
|
922
922
|
};
|
|
923
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
924
|
-
var i = new parseMultipart$slambda$slambda(this
|
|
925
|
-
i
|
|
923
|
+
protoOf(parseMultipart$slambda$slambda).create_fmjhmg_k$ = function ($this$writer, completion) {
|
|
924
|
+
var i = new parseMultipart$slambda$slambda(this.$firstBoundary_1, this.$countedInput_1, completion);
|
|
925
|
+
i.$this$writer_1 = $this$writer;
|
|
926
926
|
return i;
|
|
927
927
|
};
|
|
928
928
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
929
929
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
930
930
|
return constructCallableReference(function ($this$writer, $completion) {
|
|
931
|
-
return i.
|
|
931
|
+
return i.invoke_86bb4c_k$($this$writer, $completion);
|
|
932
932
|
}, 1);
|
|
933
933
|
}
|
|
934
934
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
935
|
-
this
|
|
936
|
-
this
|
|
937
|
-
this
|
|
938
|
-
this
|
|
935
|
+
this.$input_1 = $input;
|
|
936
|
+
this.$boundaryPrefixed_1 = $boundaryPrefixed;
|
|
937
|
+
this.$maxPartSize_1 = $maxPartSize;
|
|
938
|
+
this.$totalLength_1 = $totalLength;
|
|
939
939
|
CoroutineImpl.call(this, resultContinuation);
|
|
940
940
|
}
|
|
941
|
-
protoOf(parseMultipart$slambda).
|
|
942
|
-
var tmp = this.
|
|
943
|
-
tmp.
|
|
944
|
-
tmp.
|
|
945
|
-
return tmp.
|
|
941
|
+
protoOf(parseMultipart$slambda).invoke_xu0y9h_k$ = function ($this$produce, $completion) {
|
|
942
|
+
var tmp = this.create_bp8dz3_k$($this$produce, $completion);
|
|
943
|
+
tmp.result_1 = Unit_instance;
|
|
944
|
+
tmp.exception_1 = null;
|
|
945
|
+
return tmp.doResume_5yljmg_k$();
|
|
946
946
|
};
|
|
947
|
-
protoOf(parseMultipart$slambda).
|
|
948
|
-
return this.
|
|
947
|
+
protoOf(parseMultipart$slambda).invoke_qns8j1_k$ = function (p1, $completion) {
|
|
948
|
+
return this.invoke_xu0y9h_k$((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
949
949
|
};
|
|
950
|
-
protoOf(parseMultipart$slambda).
|
|
951
|
-
var suspendResult = this.
|
|
950
|
+
protoOf(parseMultipart$slambda).doResume_5yljmg_k$ = function () {
|
|
951
|
+
var suspendResult = this.result_1;
|
|
952
952
|
$sm: do
|
|
953
953
|
try {
|
|
954
|
-
var tmp = this.
|
|
954
|
+
var tmp = this.state_1;
|
|
955
955
|
switch (tmp) {
|
|
956
956
|
case 0:
|
|
957
|
-
this.
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
suspendResult =
|
|
957
|
+
this.exceptionState_1 = 25;
|
|
958
|
+
this.countedInput0__1 = counted(this.$input_1);
|
|
959
|
+
this.readBeforeParse1__1 = this.countedInput0__1.get_totalBytesRead_dai8jq_k$();
|
|
960
|
+
this.firstBoundary5__1 = this.$boundaryPrefixed_1.substring$default_wq769b_k$(get_PrefixString().get_size_woubt6_k$());
|
|
961
|
+
this.state_1 = 1;
|
|
962
|
+
suspendResult = readBuffer(writer(this.$this$produce_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.firstBoundary5__1, this.countedInput0__1, null)).channel_1, this);
|
|
963
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
964
|
return suspendResult;
|
|
965
965
|
}
|
|
@@ -968,57 +968,57 @@ protoOf(parseMultipart$slambda).s8 = function () {
|
|
|
968
968
|
case 1:
|
|
969
969
|
var preambleData = suspendResult;
|
|
970
970
|
if (get_remaining(preambleData) > 0n) {
|
|
971
|
-
this.
|
|
972
|
-
suspendResult = this.
|
|
971
|
+
this.state_1 = 2;
|
|
972
|
+
suspendResult = this.$this$produce_1.send_44jogj_k$(new Preamble(preambleData), this);
|
|
973
973
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
974
974
|
return suspendResult;
|
|
975
975
|
}
|
|
976
976
|
continue $sm;
|
|
977
977
|
} else {
|
|
978
|
-
this.
|
|
978
|
+
this.state_1 = 3;
|
|
979
979
|
continue $sm;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
982
|
case 2:
|
|
983
|
-
this.
|
|
983
|
+
this.state_1 = 3;
|
|
984
984
|
continue $sm;
|
|
985
985
|
case 3:
|
|
986
|
-
this.
|
|
986
|
+
this.state_1 = 4;
|
|
987
987
|
continue $sm;
|
|
988
988
|
case 4:
|
|
989
|
-
if (!this.
|
|
990
|
-
this.
|
|
991
|
-
suspendResult = skipIfFound(this.
|
|
989
|
+
if (!this.countedInput0__1.get_isClosedForRead_ajcc1s_k$()) {
|
|
990
|
+
this.state_1 = 5;
|
|
991
|
+
suspendResult = skipIfFound(this.countedInput0__1, get_PrefixString(), this);
|
|
992
992
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
993
993
|
return suspendResult;
|
|
994
994
|
}
|
|
995
995
|
continue $sm;
|
|
996
996
|
} else {
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
997
|
+
this.WHEN_RESULT6__1 = false;
|
|
998
|
+
this.state_1 = 6;
|
|
999
999
|
continue $sm;
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
1002
|
case 5:
|
|
1003
|
-
this.
|
|
1004
|
-
this.
|
|
1003
|
+
this.WHEN_RESULT6__1 = !suspendResult;
|
|
1004
|
+
this.state_1 = 6;
|
|
1005
1005
|
continue $sm;
|
|
1006
1006
|
case 6:
|
|
1007
|
-
if (!this.
|
|
1008
|
-
this.
|
|
1007
|
+
if (!this.WHEN_RESULT6__1) {
|
|
1008
|
+
this.state_1 = 15;
|
|
1009
1009
|
continue $sm;
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
|
-
this.
|
|
1013
|
-
suspendResult = skipIfFound(this.
|
|
1012
|
+
this.state_1 = 7;
|
|
1013
|
+
suspendResult = skipIfFound(this.countedInput0__1, get_CrLf(), this);
|
|
1014
1014
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1015
1015
|
return suspendResult;
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
continue $sm;
|
|
1019
1019
|
case 7:
|
|
1020
|
-
this.
|
|
1021
|
-
suspendResult = skipIfFound(this.
|
|
1020
|
+
this.state_1 = 8;
|
|
1021
|
+
suspendResult = skipIfFound(this.countedInput0__1, this.firstBoundary5__1, this);
|
|
1022
1022
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1023
1023
|
return suspendResult;
|
|
1024
1024
|
}
|
|
@@ -1026,112 +1026,112 @@ protoOf(parseMultipart$slambda).s8 = function () {
|
|
|
1026
1026
|
continue $sm;
|
|
1027
1027
|
case 8:
|
|
1028
1028
|
if (suspendResult) {
|
|
1029
|
-
this.
|
|
1029
|
+
this.state_1 = 4;
|
|
1030
1030
|
continue $sm;
|
|
1031
1031
|
} else {
|
|
1032
|
-
this.
|
|
1032
|
+
this.state_1 = 9;
|
|
1033
1033
|
continue $sm;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
case 9:
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1039
|
-
var part = new MultipartPart(this.
|
|
1040
|
-
this.
|
|
1041
|
-
suspendResult = this.
|
|
1037
|
+
this.body2__1 = new ByteChannel();
|
|
1038
|
+
this.headers4__1 = CompletableDeferred();
|
|
1039
|
+
var part = new MultipartPart(this.headers4__1, this.body2__1);
|
|
1040
|
+
this.state_1 = 10;
|
|
1041
|
+
suspendResult = this.$this$produce_1.send_44jogj_k$(part, this);
|
|
1042
1042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1043
1043
|
return suspendResult;
|
|
1044
1044
|
}
|
|
1045
1045
|
|
|
1046
1046
|
continue $sm;
|
|
1047
1047
|
case 10:
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
this.
|
|
1051
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1048
|
+
this.headersMap3__1 = null;
|
|
1049
|
+
this.exceptionState_1 = 14;
|
|
1050
|
+
this.state_1 = 11;
|
|
1051
|
+
suspendResult = parsePartHeadersImpl(this.countedInput0__1, this);
|
|
1052
1052
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1053
1053
|
return suspendResult;
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 11:
|
|
1058
|
-
this.
|
|
1059
|
-
if (!this.
|
|
1060
|
-
this.
|
|
1058
|
+
this.headersMap3__1 = suspendResult;
|
|
1059
|
+
if (!this.headers4__1.complete_ixf84q_k$(this.headersMap3__1)) {
|
|
1060
|
+
this.headersMap3__1.release_wu5yyf_k$();
|
|
1061
1061
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
-
this.
|
|
1065
|
-
suspendResult = parsePartBodyImpl(this
|
|
1064
|
+
this.state_1 = 12;
|
|
1065
|
+
suspendResult = parsePartBodyImpl(this.$boundaryPrefixed_1, this.countedInput0__1, this.body2__1, this.headersMap3__1, this.$maxPartSize_1, this);
|
|
1066
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
1067
|
return suspendResult;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
continue $sm;
|
|
1071
1071
|
case 12:
|
|
1072
|
-
this.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1072
|
+
this.body2__1.close_yn9xrc_k$();
|
|
1073
|
+
this.exceptionState_1 = 25;
|
|
1074
|
+
this.state_1 = 13;
|
|
1075
1075
|
continue $sm;
|
|
1076
1076
|
case 13:
|
|
1077
|
-
this.
|
|
1078
|
-
this.
|
|
1077
|
+
this.exceptionState_1 = 25;
|
|
1078
|
+
this.state_1 = 4;
|
|
1079
1079
|
continue $sm;
|
|
1080
1080
|
case 14:
|
|
1081
|
-
this.
|
|
1082
|
-
var tmp_0 = this.
|
|
1081
|
+
this.exceptionState_1 = 25;
|
|
1082
|
+
var tmp_0 = this.exception_1;
|
|
1083
1083
|
if (tmp_0 instanceof Error) {
|
|
1084
|
-
var cause = this.
|
|
1085
|
-
if (this.
|
|
1086
|
-
var tmp0_safe_receiver = this.
|
|
1084
|
+
var cause = this.exception_1;
|
|
1085
|
+
if (this.headers4__1.completeExceptionally_xyzekf_k$(cause)) {
|
|
1086
|
+
var tmp0_safe_receiver = this.headersMap3__1;
|
|
1087
1087
|
if (tmp0_safe_receiver == null)
|
|
1088
1088
|
null;
|
|
1089
1089
|
else {
|
|
1090
|
-
tmp0_safe_receiver.
|
|
1090
|
+
tmp0_safe_receiver.release_wu5yyf_k$();
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
|
-
close(this.
|
|
1093
|
+
close(this.body2__1, cause);
|
|
1094
1094
|
throw cause;
|
|
1095
1095
|
} else {
|
|
1096
|
-
throw this.
|
|
1096
|
+
throw this.exception_1;
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
1099
|
case 15:
|
|
1100
|
-
this.
|
|
1101
|
-
suspendResult = skipIfFound(this.
|
|
1100
|
+
this.state_1 = 16;
|
|
1101
|
+
suspendResult = skipIfFound(this.countedInput0__1, get_CrLf(), this);
|
|
1102
1102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1103
1103
|
return suspendResult;
|
|
1104
1104
|
}
|
|
1105
1105
|
|
|
1106
1106
|
continue $sm;
|
|
1107
1107
|
case 16:
|
|
1108
|
-
this.
|
|
1109
|
-
suspendResult = skipIfFound(this.
|
|
1108
|
+
this.state_1 = 17;
|
|
1109
|
+
suspendResult = skipIfFound(this.countedInput0__1, get_CrLf(), this);
|
|
1110
1110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1111
1111
|
return suspendResult;
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
1114
|
continue $sm;
|
|
1115
1115
|
case 17:
|
|
1116
|
-
if (!(this
|
|
1117
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1118
|
-
var size = subtract(this
|
|
1116
|
+
if (!(this.$totalLength_1 == null)) {
|
|
1117
|
+
var consumedExceptEpilogue = subtract(this.countedInput0__1.get_totalBytesRead_dai8jq_k$(), this.readBeforeParse1__1);
|
|
1118
|
+
var size = subtract(this.$totalLength_1, consumedExceptEpilogue);
|
|
1119
1119
|
if (size > 2147483647n)
|
|
1120
1120
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1121
1121
|
if (size > 0n) {
|
|
1122
|
-
this.
|
|
1123
|
-
suspendResult = readPacket(this.
|
|
1122
|
+
this.state_1 = 21;
|
|
1123
|
+
suspendResult = readPacket(this.countedInput0__1, convertToInt(size), this);
|
|
1124
1124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1125
1125
|
return suspendResult;
|
|
1126
1126
|
}
|
|
1127
1127
|
continue $sm;
|
|
1128
1128
|
} else {
|
|
1129
|
-
this.
|
|
1129
|
+
this.state_1 = 23;
|
|
1130
1130
|
continue $sm;
|
|
1131
1131
|
}
|
|
1132
1132
|
} else {
|
|
1133
|
-
this.
|
|
1134
|
-
suspendResult =
|
|
1133
|
+
this.state_1 = 18;
|
|
1134
|
+
suspendResult = readBuffer(this.countedInput0__1, this);
|
|
1135
1135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1136
1136
|
return suspendResult;
|
|
1137
1137
|
}
|
|
@@ -1140,83 +1140,83 @@ protoOf(parseMultipart$slambda).s8 = function () {
|
|
|
1140
1140
|
|
|
1141
1141
|
case 18:
|
|
1142
1142
|
var epilogueContent = suspendResult;
|
|
1143
|
-
if (!epilogueContent.
|
|
1144
|
-
this.
|
|
1145
|
-
suspendResult = this.
|
|
1143
|
+
if (!epilogueContent.exhausted_p1jt55_k$()) {
|
|
1144
|
+
this.state_1 = 19;
|
|
1145
|
+
suspendResult = this.$this$produce_1.send_44jogj_k$(new Epilogue(epilogueContent), this);
|
|
1146
1146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1147
1147
|
return suspendResult;
|
|
1148
1148
|
}
|
|
1149
1149
|
continue $sm;
|
|
1150
1150
|
} else {
|
|
1151
|
-
this.
|
|
1151
|
+
this.state_1 = 20;
|
|
1152
1152
|
continue $sm;
|
|
1153
1153
|
}
|
|
1154
1154
|
|
|
1155
1155
|
case 19:
|
|
1156
|
-
this.
|
|
1156
|
+
this.state_1 = 20;
|
|
1157
1157
|
continue $sm;
|
|
1158
1158
|
case 20:
|
|
1159
|
-
this.
|
|
1159
|
+
this.state_1 = 24;
|
|
1160
1160
|
continue $sm;
|
|
1161
1161
|
case 21:
|
|
1162
1162
|
var ARGUMENT = suspendResult;
|
|
1163
1163
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1164
|
-
this.
|
|
1165
|
-
suspendResult = this.
|
|
1164
|
+
this.state_1 = 22;
|
|
1165
|
+
suspendResult = this.$this$produce_1.send_44jogj_k$(ARGUMENT_0, this);
|
|
1166
1166
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1167
1167
|
return suspendResult;
|
|
1168
1168
|
}
|
|
1169
1169
|
|
|
1170
1170
|
continue $sm;
|
|
1171
1171
|
case 22:
|
|
1172
|
-
this.
|
|
1172
|
+
this.state_1 = 23;
|
|
1173
1173
|
continue $sm;
|
|
1174
1174
|
case 23:
|
|
1175
|
-
this.
|
|
1175
|
+
this.state_1 = 24;
|
|
1176
1176
|
continue $sm;
|
|
1177
1177
|
case 24:
|
|
1178
1178
|
return Unit_instance;
|
|
1179
1179
|
case 25:
|
|
1180
|
-
throw this.
|
|
1180
|
+
throw this.exception_1;
|
|
1181
1181
|
}
|
|
1182
1182
|
} catch ($p) {
|
|
1183
1183
|
var e = $p;
|
|
1184
|
-
if (this.
|
|
1184
|
+
if (this.exceptionState_1 === 25) {
|
|
1185
1185
|
throw e;
|
|
1186
1186
|
} else {
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1187
|
+
this.state_1 = this.exceptionState_1;
|
|
1188
|
+
this.exception_1 = e;
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
while (true);
|
|
1192
1192
|
};
|
|
1193
|
-
protoOf(parseMultipart$slambda).
|
|
1194
|
-
var i = new parseMultipart$slambda(this
|
|
1195
|
-
i
|
|
1193
|
+
protoOf(parseMultipart$slambda).create_bp8dz3_k$ = function ($this$produce, completion) {
|
|
1194
|
+
var i = new parseMultipart$slambda(this.$input_1, this.$boundaryPrefixed_1, this.$maxPartSize_1, this.$totalLength_1, completion);
|
|
1195
|
+
i.$this$produce_1 = $this$produce;
|
|
1196
1196
|
return i;
|
|
1197
1197
|
};
|
|
1198
1198
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1199
1199
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1200
1200
|
return constructCallableReference(function ($this$produce, $completion) {
|
|
1201
|
-
return i.
|
|
1201
|
+
return i.invoke_xu0y9h_k$($this$produce, $completion);
|
|
1202
1202
|
}, 1);
|
|
1203
1203
|
}
|
|
1204
1204
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1205
1205
|
CoroutineImpl.call(this, resultContinuation);
|
|
1206
|
-
this.
|
|
1206
|
+
this.input_1 = input;
|
|
1207
1207
|
}
|
|
1208
|
-
protoOf($parsePartHeadersImplCOROUTINE$).
|
|
1209
|
-
var suspendResult = this.
|
|
1208
|
+
protoOf($parsePartHeadersImplCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1209
|
+
var suspendResult = this.result_1;
|
|
1210
1210
|
$sm: do
|
|
1211
1211
|
try {
|
|
1212
|
-
var tmp = this.
|
|
1212
|
+
var tmp = this.state_1;
|
|
1213
1213
|
switch (tmp) {
|
|
1214
1214
|
case 0:
|
|
1215
|
-
this.
|
|
1216
|
-
this.
|
|
1217
|
-
this.
|
|
1218
|
-
this.
|
|
1219
|
-
suspendResult = parseHeaders(this.
|
|
1215
|
+
this.exceptionState_1 = 3;
|
|
1216
|
+
this.builder0__1 = new CharArrayBuilder();
|
|
1217
|
+
this.exceptionState_1 = 2;
|
|
1218
|
+
this.state_1 = 1;
|
|
1219
|
+
suspendResult = parseHeaders(this.input_1, this.builder0__1, VOID, this);
|
|
1220
1220
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1221
1221
|
return suspendResult;
|
|
1222
1222
|
}
|
|
@@ -1233,75 +1233,75 @@ protoOf($parsePartHeadersImplCOROUTINE$).s8 = function () {
|
|
|
1233
1233
|
|
|
1234
1234
|
return tmp_0;
|
|
1235
1235
|
case 2:
|
|
1236
|
-
this.
|
|
1237
|
-
var tmp_1 = this.
|
|
1236
|
+
this.exceptionState_1 = 3;
|
|
1237
|
+
var tmp_1 = this.exception_1;
|
|
1238
1238
|
if (tmp_1 instanceof Error) {
|
|
1239
|
-
var t = this.
|
|
1240
|
-
this.
|
|
1239
|
+
var t = this.exception_1;
|
|
1240
|
+
this.builder0__1.release_wu5yyf_k$();
|
|
1241
1241
|
throw t;
|
|
1242
1242
|
} else {
|
|
1243
|
-
throw this.
|
|
1243
|
+
throw this.exception_1;
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
1246
|
case 3:
|
|
1247
|
-
throw this.
|
|
1247
|
+
throw this.exception_1;
|
|
1248
1248
|
}
|
|
1249
1249
|
} catch ($p) {
|
|
1250
1250
|
var e = $p;
|
|
1251
|
-
if (this.
|
|
1251
|
+
if (this.exceptionState_1 === 3) {
|
|
1252
1252
|
throw e;
|
|
1253
1253
|
} else {
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1254
|
+
this.state_1 = this.exceptionState_1;
|
|
1255
|
+
this.exception_1 = e;
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
1258
|
while (true);
|
|
1259
1259
|
};
|
|
1260
1260
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1261
1261
|
CoroutineImpl.call(this, resultContinuation);
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
}
|
|
1268
|
-
protoOf($parsePartBodyImplCOROUTINE$).
|
|
1269
|
-
var suspendResult = this.
|
|
1262
|
+
this.boundaryPrefixed_1 = boundaryPrefixed;
|
|
1263
|
+
this.input_1 = input;
|
|
1264
|
+
this.output_1 = output;
|
|
1265
|
+
this.headers_1 = headers;
|
|
1266
|
+
this.limit_1 = limit;
|
|
1267
|
+
}
|
|
1268
|
+
protoOf($parsePartBodyImplCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1269
|
+
var suspendResult = this.result_1;
|
|
1270
1270
|
$sm: do
|
|
1271
1271
|
try {
|
|
1272
|
-
var tmp = this.
|
|
1272
|
+
var tmp = this.state_1;
|
|
1273
1273
|
switch (tmp) {
|
|
1274
1274
|
case 0:
|
|
1275
|
-
this.
|
|
1276
|
-
var tmp0_safe_receiver = this.
|
|
1275
|
+
this.exceptionState_1 = 6;
|
|
1276
|
+
var tmp0_safe_receiver = this.headers_1.get_6bo4tg_k$('Content-Length');
|
|
1277
1277
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1278
1278
|
if (contentLength == null) {
|
|
1279
|
-
this.
|
|
1280
|
-
suspendResult = readUntil(this.
|
|
1279
|
+
this.state_1 = 3;
|
|
1280
|
+
suspendResult = readUntil(this.input_1, this.boundaryPrefixed_1, this.output_1, this.limit_1, true, this);
|
|
1281
1281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1282
1282
|
return suspendResult;
|
|
1283
1283
|
}
|
|
1284
1284
|
continue $sm;
|
|
1285
1285
|
} else {
|
|
1286
|
-
var containsUpper = this.
|
|
1286
|
+
var containsUpper = this.limit_1;
|
|
1287
1287
|
if (0n <= contentLength ? contentLength <= containsUpper : false) {
|
|
1288
|
-
this.
|
|
1289
|
-
suspendResult = copyTo(this.
|
|
1288
|
+
this.state_1 = 1;
|
|
1289
|
+
suspendResult = copyTo(this.input_1, this.output_1, contentLength, this);
|
|
1290
1290
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1291
1291
|
return suspendResult;
|
|
1292
1292
|
}
|
|
1293
1293
|
continue $sm;
|
|
1294
1294
|
} else {
|
|
1295
1295
|
var tmp_0 = this;
|
|
1296
|
-
throwLimitExceeded(contentLength, this.
|
|
1296
|
+
throwLimitExceeded(contentLength, this.limit_1);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
break;
|
|
1301
1301
|
case 1:
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1302
|
+
this.ARGUMENT2__1 = suspendResult;
|
|
1303
|
+
this.state_1 = 2;
|
|
1304
|
+
suspendResult = skipIfFoundReadCount(this.input_1, this.boundaryPrefixed_1, this);
|
|
1305
1305
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1306
1306
|
return suspendResult;
|
|
1307
1307
|
}
|
|
@@ -1309,53 +1309,53 @@ protoOf($parsePartBodyImplCOROUTINE$).s8 = function () {
|
|
|
1309
1309
|
continue $sm;
|
|
1310
1310
|
case 2:
|
|
1311
1311
|
var ARGUMENT = suspendResult;
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1312
|
+
this.WHEN_RESULT1__1 = add(this.ARGUMENT2__1, ARGUMENT);
|
|
1313
|
+
this.state_1 = 4;
|
|
1314
1314
|
continue $sm;
|
|
1315
1315
|
case 3:
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1316
|
+
this.WHEN_RESULT1__1 = suspendResult;
|
|
1317
|
+
this.state_1 = 4;
|
|
1318
1318
|
continue $sm;
|
|
1319
1319
|
case 4:
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
suspendResult = this.
|
|
1320
|
+
this.byteCount0__1 = this.WHEN_RESULT1__1;
|
|
1321
|
+
this.state_1 = 5;
|
|
1322
|
+
suspendResult = this.output_1.flush_4wsz1p_k$(this);
|
|
1323
1323
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1324
1324
|
return suspendResult;
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
continue $sm;
|
|
1328
1328
|
case 5:
|
|
1329
|
-
return this.
|
|
1329
|
+
return this.byteCount0__1;
|
|
1330
1330
|
case 6:
|
|
1331
|
-
throw this.
|
|
1331
|
+
throw this.exception_1;
|
|
1332
1332
|
}
|
|
1333
1333
|
} catch ($p) {
|
|
1334
1334
|
var e = $p;
|
|
1335
|
-
if (this.
|
|
1335
|
+
if (this.exceptionState_1 === 6) {
|
|
1336
1336
|
throw e;
|
|
1337
1337
|
} else {
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1338
|
+
this.state_1 = this.exceptionState_1;
|
|
1339
|
+
this.exception_1 = e;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
while (true);
|
|
1343
1343
|
};
|
|
1344
1344
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1345
1345
|
CoroutineImpl.call(this, resultContinuation);
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1346
|
+
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1347
|
+
this.prefix_1 = prefix;
|
|
1348
1348
|
}
|
|
1349
|
-
protoOf($skipIfFoundReadCountCOROUTINE$).
|
|
1350
|
-
var suspendResult = this.
|
|
1349
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).doResume_5yljmg_k$ = function () {
|
|
1350
|
+
var suspendResult = this.result_1;
|
|
1351
1351
|
$sm: do
|
|
1352
1352
|
try {
|
|
1353
|
-
var tmp = this.
|
|
1353
|
+
var tmp = this.state_1;
|
|
1354
1354
|
switch (tmp) {
|
|
1355
1355
|
case 0:
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
suspendResult = skipIfFound(this.
|
|
1356
|
+
this.exceptionState_1 = 3;
|
|
1357
|
+
this.state_1 = 1;
|
|
1358
|
+
suspendResult = skipIfFound(this._this__u8e3s4__1, this.prefix_1, this);
|
|
1359
1359
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1360
1360
|
return suspendResult;
|
|
1361
1361
|
}
|
|
@@ -1364,28 +1364,28 @@ protoOf($skipIfFoundReadCountCOROUTINE$).s8 = function () {
|
|
|
1364
1364
|
case 1:
|
|
1365
1365
|
if (suspendResult) {
|
|
1366
1366
|
var tmp_0 = this;
|
|
1367
|
-
tmp_0.
|
|
1368
|
-
this.
|
|
1367
|
+
tmp_0.WHEN_RESULT0__1 = fromInt(this.prefix_1.get_size_woubt6_k$());
|
|
1368
|
+
this.state_1 = 2;
|
|
1369
1369
|
continue $sm;
|
|
1370
1370
|
} else {
|
|
1371
1371
|
var tmp_1 = this;
|
|
1372
|
-
tmp_1.
|
|
1373
|
-
this.
|
|
1372
|
+
tmp_1.WHEN_RESULT0__1 = 0n;
|
|
1373
|
+
this.state_1 = 2;
|
|
1374
1374
|
continue $sm;
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
case 2:
|
|
1378
|
-
return this.
|
|
1378
|
+
return this.WHEN_RESULT0__1;
|
|
1379
1379
|
case 3:
|
|
1380
|
-
throw this.
|
|
1380
|
+
throw this.exception_1;
|
|
1381
1381
|
}
|
|
1382
1382
|
} catch ($p) {
|
|
1383
1383
|
var e = $p;
|
|
1384
|
-
if (this.
|
|
1384
|
+
if (this.exceptionState_1 === 3) {
|
|
1385
1385
|
throw e;
|
|
1386
1386
|
} else {
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1387
|
+
this.state_1 = this.exceptionState_1;
|
|
1388
|
+
this.exception_1 = e;
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
1391
|
while (true);
|
|
@@ -1402,58 +1402,58 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
1402
1402
|
// Inline function 'kotlin.collections.groupBy' call
|
|
1403
1403
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
1404
1404
|
var destination = LinkedHashMap_init_$Create$();
|
|
1405
|
-
var _iterator__ex2g4s = from.
|
|
1406
|
-
while (_iterator__ex2g4s.
|
|
1407
|
-
var element = _iterator__ex2g4s.
|
|
1405
|
+
var _iterator__ex2g4s = from.iterator_jk1svi_k$();
|
|
1406
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1407
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1408
1408
|
var key = charAt(element, idx);
|
|
1409
1409
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1410
|
-
var value = destination.
|
|
1410
|
+
var value = destination.get_wei43m_k$(key);
|
|
1411
1411
|
var tmp;
|
|
1412
1412
|
if (value == null) {
|
|
1413
1413
|
var answer = ArrayList_init_$Create$();
|
|
1414
|
-
destination.
|
|
1414
|
+
destination.put_4fpzoq_k$(key, answer);
|
|
1415
1415
|
tmp = answer;
|
|
1416
1416
|
} else {
|
|
1417
1417
|
tmp = value;
|
|
1418
1418
|
}
|
|
1419
1419
|
var list = tmp;
|
|
1420
|
-
list.
|
|
1420
|
+
list.add_utx5q5_k$(element);
|
|
1421
1421
|
}
|
|
1422
1422
|
// Inline function 'kotlin.collections.forEach' call
|
|
1423
1423
|
// Inline function 'kotlin.collections.iterator' call
|
|
1424
|
-
var _iterator__ex2g4s_0 = destination.
|
|
1425
|
-
while (_iterator__ex2g4s_0.
|
|
1426
|
-
var element_0 = _iterator__ex2g4s_0.
|
|
1424
|
+
var _iterator__ex2g4s_0 = destination.get_entries_p20ztl_k$().iterator_jk1svi_k$();
|
|
1425
|
+
while (_iterator__ex2g4s_0.hasNext_bitz1p_k$()) {
|
|
1426
|
+
var element_0 = _iterator__ex2g4s_0.next_20eer_k$();
|
|
1427
1427
|
// Inline function 'kotlin.collections.component1' call
|
|
1428
|
-
var ch = element_0.
|
|
1428
|
+
var ch = element_0.get_key_18j28a_k$().value_1;
|
|
1429
1429
|
// Inline function 'kotlin.collections.component2' call
|
|
1430
|
-
var list_0 = element_0.
|
|
1430
|
+
var list_0 = element_0.get_value_j01efc_k$();
|
|
1431
1431
|
var nextIdx = idx + 1 | 0;
|
|
1432
1432
|
var children = ArrayList_init_$Create$();
|
|
1433
1433
|
var tmp_0 = Companion_instance;
|
|
1434
1434
|
// Inline function 'kotlin.collections.filter' call
|
|
1435
1435
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1436
1436
|
var destination_0 = ArrayList_init_$Create$();
|
|
1437
|
-
var _iterator__ex2g4s_1 = list_0.
|
|
1438
|
-
while (_iterator__ex2g4s_1.
|
|
1439
|
-
var element_1 = _iterator__ex2g4s_1.
|
|
1437
|
+
var _iterator__ex2g4s_1 = list_0.iterator_jk1svi_k$();
|
|
1438
|
+
while (_iterator__ex2g4s_1.hasNext_bitz1p_k$()) {
|
|
1439
|
+
var element_1 = _iterator__ex2g4s_1.next_20eer_k$();
|
|
1440
1440
|
if (length(element_1) > nextIdx) {
|
|
1441
|
-
destination_0.
|
|
1441
|
+
destination_0.add_utx5q5_k$(element_1);
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1445
|
-
children.
|
|
1445
|
+
children.trimToSize_dmxq0i_k$();
|
|
1446
1446
|
// Inline function 'kotlin.collections.filter' call
|
|
1447
1447
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1448
1448
|
var destination_1 = ArrayList_init_$Create$();
|
|
1449
|
-
var _iterator__ex2g4s_2 = list_0.
|
|
1450
|
-
while (_iterator__ex2g4s_2.
|
|
1451
|
-
var element_2 = _iterator__ex2g4s_2.
|
|
1449
|
+
var _iterator__ex2g4s_2 = list_0.iterator_jk1svi_k$();
|
|
1450
|
+
while (_iterator__ex2g4s_2.hasNext_bitz1p_k$()) {
|
|
1451
|
+
var element_2 = _iterator__ex2g4s_2.next_20eer_k$();
|
|
1452
1452
|
if (length(element_2) === nextIdx) {
|
|
1453
|
-
destination_1.
|
|
1453
|
+
destination_1.add_utx5q5_k$(element_2);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
resultList.
|
|
1456
|
+
resultList.add_utx5q5_k$(new Node(ch, destination_1, children));
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
function AsciiCharTree$Companion$build$lambda(it) {
|
|
@@ -1463,26 +1463,26 @@ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
|
|
|
1463
1463
|
return new Char(charSequenceGet(s, idx));
|
|
1464
1464
|
}
|
|
1465
1465
|
function Node(ch, exact, children) {
|
|
1466
|
-
this.
|
|
1467
|
-
this.
|
|
1468
|
-
this.
|
|
1466
|
+
this.ch_1 = ch;
|
|
1467
|
+
this.exact_1 = exact;
|
|
1468
|
+
this.children_1 = children;
|
|
1469
1469
|
var tmp = this;
|
|
1470
1470
|
var tmp_0 = 0;
|
|
1471
1471
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1472
1472
|
var tmp_1 = Array(256);
|
|
1473
1473
|
while (tmp_0 < 256) {
|
|
1474
1474
|
var tmp_2 = tmp_0;
|
|
1475
|
-
var tmp0 = this.
|
|
1475
|
+
var tmp0 = this.children_1;
|
|
1476
1476
|
var tmp$ret$2;
|
|
1477
1477
|
$l$block_0: {
|
|
1478
1478
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
1479
1479
|
var single = null;
|
|
1480
1480
|
var found = false;
|
|
1481
|
-
var _iterator__ex2g4s = tmp0.
|
|
1482
|
-
while (_iterator__ex2g4s.
|
|
1483
|
-
var element = _iterator__ex2g4s.
|
|
1481
|
+
var _iterator__ex2g4s = tmp0.iterator_jk1svi_k$();
|
|
1482
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1483
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1484
1484
|
// Inline function 'kotlin.code' call
|
|
1485
|
-
var this_0 = element.
|
|
1485
|
+
var this_0 = element.ch_1;
|
|
1486
1486
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1487
1487
|
if (found) {
|
|
1488
1488
|
tmp$ret$2 = null;
|
|
@@ -1501,38 +1501,38 @@ function Node(ch, exact, children) {
|
|
|
1501
1501
|
tmp_1[tmp_2] = tmp$ret$2;
|
|
1502
1502
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1503
1503
|
}
|
|
1504
|
-
tmp.
|
|
1504
|
+
tmp.array_1 = tmp_1;
|
|
1505
1505
|
}
|
|
1506
1506
|
function Companion() {
|
|
1507
1507
|
}
|
|
1508
|
-
protoOf(Companion).
|
|
1508
|
+
protoOf(Companion).build_qfjo4r_k$ = function (from) {
|
|
1509
1509
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1510
|
-
return this.
|
|
1510
|
+
return this.build_su3zc2_k$(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1511
1511
|
};
|
|
1512
|
-
protoOf(Companion).
|
|
1512
|
+
protoOf(Companion).build_su3zc2_k$ = function (from, length, charAt) {
|
|
1513
1513
|
var tmp$ret$0;
|
|
1514
1514
|
$l$block_0: {
|
|
1515
1515
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
1516
|
-
var iterator = from.
|
|
1517
|
-
if (!iterator.
|
|
1516
|
+
var iterator = from.iterator_jk1svi_k$();
|
|
1517
|
+
if (!iterator.hasNext_bitz1p_k$()) {
|
|
1518
1518
|
tmp$ret$0 = null;
|
|
1519
1519
|
break $l$block_0;
|
|
1520
1520
|
}
|
|
1521
|
-
var maxElem = iterator.
|
|
1522
|
-
if (!iterator.
|
|
1521
|
+
var maxElem = iterator.next_20eer_k$();
|
|
1522
|
+
if (!iterator.hasNext_bitz1p_k$()) {
|
|
1523
1523
|
tmp$ret$0 = maxElem;
|
|
1524
1524
|
break $l$block_0;
|
|
1525
1525
|
}
|
|
1526
1526
|
var maxValue = length(maxElem);
|
|
1527
1527
|
do {
|
|
1528
|
-
var e = iterator.
|
|
1528
|
+
var e = iterator.next_20eer_k$();
|
|
1529
1529
|
var v = length(e);
|
|
1530
1530
|
if (compareTo(maxValue, v) < 0) {
|
|
1531
1531
|
maxElem = e;
|
|
1532
1532
|
maxValue = v;
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
while (iterator.
|
|
1535
|
+
while (iterator.hasNext_bitz1p_k$());
|
|
1536
1536
|
tmp$ret$0 = maxElem;
|
|
1537
1537
|
}
|
|
1538
1538
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
@@ -1556,7 +1556,7 @@ protoOf(Companion).e33 = function (from, length, charAt) {
|
|
|
1556
1556
|
// Inline function 'kotlin.collections.any' call
|
|
1557
1557
|
var tmp_1;
|
|
1558
1558
|
if (isInterface(from, Collection)) {
|
|
1559
|
-
tmp_1 = from.
|
|
1559
|
+
tmp_1 = from.isEmpty_y1axqb_k$();
|
|
1560
1560
|
} else {
|
|
1561
1561
|
tmp_1 = false;
|
|
1562
1562
|
}
|
|
@@ -1564,9 +1564,9 @@ protoOf(Companion).e33 = function (from, length, charAt) {
|
|
|
1564
1564
|
tmp$ret$2 = false;
|
|
1565
1565
|
break $l$block_2;
|
|
1566
1566
|
}
|
|
1567
|
-
var _iterator__ex2g4s = from.
|
|
1568
|
-
while (_iterator__ex2g4s.
|
|
1569
|
-
var element = _iterator__ex2g4s.
|
|
1567
|
+
var _iterator__ex2g4s = from.iterator_jk1svi_k$();
|
|
1568
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
1569
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
1570
1570
|
if (length(element) === 0) {
|
|
1571
1571
|
tmp$ret$2 = true;
|
|
1572
1572
|
break $l$block_2;
|
|
@@ -1578,7 +1578,7 @@ protoOf(Companion).e33 = function (from, length, charAt) {
|
|
|
1578
1578
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1579
1579
|
var root = ArrayList_init_$Create$();
|
|
1580
1580
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1581
|
-
root.
|
|
1581
|
+
root.trimToSize_dmxq0i_k$();
|
|
1582
1582
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1583
1583
|
};
|
|
1584
1584
|
var Companion_instance;
|
|
@@ -1586,10 +1586,10 @@ function Companion_getInstance_1() {
|
|
|
1586
1586
|
return Companion_instance;
|
|
1587
1587
|
}
|
|
1588
1588
|
function AsciiCharTree(root) {
|
|
1589
|
-
this.
|
|
1589
|
+
this.root_1 = root;
|
|
1590
1590
|
}
|
|
1591
1591
|
function getImpl($this, index) {
|
|
1592
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1592
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.current_1).length | 0];
|
|
1593
1593
|
}
|
|
1594
1594
|
function copy($this, startIndex, endIndex) {
|
|
1595
1595
|
if (startIndex === endIndex)
|
|
@@ -1610,7 +1610,7 @@ function copy($this, startIndex, endIndex) {
|
|
|
1610
1610
|
do {
|
|
1611
1611
|
var innerIndex = inductionVariable;
|
|
1612
1612
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1613
|
-
builder.
|
|
1613
|
+
builder.append_58al37_k$(buffer[innerIndex]);
|
|
1614
1614
|
}
|
|
1615
1615
|
while (inductionVariable < innerEndIndex);
|
|
1616
1616
|
base = base + 2048 | 0;
|
|
@@ -1618,29 +1618,29 @@ function copy($this, startIndex, endIndex) {
|
|
|
1618
1618
|
return builder;
|
|
1619
1619
|
}
|
|
1620
1620
|
function SubSequenceImpl($outer, start, end) {
|
|
1621
|
-
this
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1621
|
+
this.$this_1 = $outer;
|
|
1622
|
+
this.start_1 = start;
|
|
1623
|
+
this.end_1 = end;
|
|
1624
|
+
this.stringified_1 = null;
|
|
1625
1625
|
}
|
|
1626
|
-
protoOf(SubSequenceImpl).
|
|
1627
|
-
return this.
|
|
1626
|
+
protoOf(SubSequenceImpl).get_length_g42xv3_k$ = function () {
|
|
1627
|
+
return this.end_1 - this.start_1 | 0;
|
|
1628
1628
|
};
|
|
1629
|
-
protoOf(SubSequenceImpl).
|
|
1630
|
-
var withOffset = index + this.
|
|
1629
|
+
protoOf(SubSequenceImpl).get_kdzpvg_k$ = function (index) {
|
|
1630
|
+
var withOffset = index + this.start_1 | 0;
|
|
1631
1631
|
// Inline function 'kotlin.require' call
|
|
1632
1632
|
if (!(index >= 0)) {
|
|
1633
1633
|
var message = 'index is negative: ' + index;
|
|
1634
1634
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1635
1635
|
}
|
|
1636
1636
|
// Inline function 'kotlin.require' call
|
|
1637
|
-
if (!(withOffset < this.
|
|
1638
|
-
var message_0 = 'index (' + index + ') should be less than length (' + this.
|
|
1637
|
+
if (!(withOffset < this.end_1)) {
|
|
1638
|
+
var message_0 = 'index (' + index + ') should be less than length (' + this.get_length_g42xv3_k$() + ')';
|
|
1639
1639
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1640
1640
|
}
|
|
1641
|
-
return getImpl(this
|
|
1641
|
+
return getImpl(this.$this_1, withOffset);
|
|
1642
1642
|
};
|
|
1643
|
-
protoOf(SubSequenceImpl).
|
|
1643
|
+
protoOf(SubSequenceImpl).subSequence_hm5hnj_k$ = function (startIndex, endIndex) {
|
|
1644
1644
|
// Inline function 'kotlin.require' call
|
|
1645
1645
|
if (!(startIndex >= 0)) {
|
|
1646
1646
|
var message = 'start is negative: ' + startIndex;
|
|
@@ -1652,21 +1652,21 @@ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
|
1652
1652
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1653
1653
|
}
|
|
1654
1654
|
// Inline function 'kotlin.require' call
|
|
1655
|
-
if (!(endIndex <= (this.
|
|
1656
|
-
var message_1 = 'end should be less than length (' + this.
|
|
1655
|
+
if (!(endIndex <= (this.end_1 - this.start_1 | 0))) {
|
|
1656
|
+
var message_1 = 'end should be less than length (' + this.get_length_g42xv3_k$() + ')';
|
|
1657
1657
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1658
1658
|
}
|
|
1659
1659
|
if (startIndex === endIndex)
|
|
1660
1660
|
return '';
|
|
1661
|
-
return new SubSequenceImpl(this
|
|
1661
|
+
return new SubSequenceImpl(this.$this_1, this.start_1 + startIndex | 0, this.start_1 + endIndex | 0);
|
|
1662
1662
|
};
|
|
1663
1663
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1664
|
-
var tmp0_elvis_lhs = this.
|
|
1664
|
+
var tmp0_elvis_lhs = this.stringified_1;
|
|
1665
1665
|
var tmp;
|
|
1666
1666
|
if (tmp0_elvis_lhs == null) {
|
|
1667
1667
|
// Inline function 'kotlin.also' call
|
|
1668
|
-
var this_0 = toString(copy(this
|
|
1669
|
-
this.
|
|
1668
|
+
var this_0 = toString(copy(this.$this_1, this.start_1, this.end_1));
|
|
1669
|
+
this.stringified_1 = this_0;
|
|
1670
1670
|
tmp = this_0;
|
|
1671
1671
|
} else {
|
|
1672
1672
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1676,22 +1676,22 @@ protoOf(SubSequenceImpl).toString = function () {
|
|
|
1676
1676
|
protoOf(SubSequenceImpl).equals = function (other) {
|
|
1677
1677
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1678
1678
|
return false;
|
|
1679
|
-
if (!(charSequenceLength(other) === this.
|
|
1679
|
+
if (!(charSequenceLength(other) === this.get_length_g42xv3_k$()))
|
|
1680
1680
|
return false;
|
|
1681
|
-
return rangeEqualsImpl(this
|
|
1681
|
+
return rangeEqualsImpl(this.$this_1, this.start_1, other, 0, this.get_length_g42xv3_k$());
|
|
1682
1682
|
};
|
|
1683
1683
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1684
|
-
var tmp0_safe_receiver = this.
|
|
1684
|
+
var tmp0_safe_receiver = this.stringified_1;
|
|
1685
1685
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1686
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this
|
|
1686
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.$this_1, this.start_1, this.end_1) : tmp1_elvis_lhs;
|
|
1687
1687
|
};
|
|
1688
1688
|
function bufferForIndex($this, index) {
|
|
1689
|
-
var list = $this.
|
|
1689
|
+
var list = $this.buffers_1;
|
|
1690
1690
|
if (list == null) {
|
|
1691
1691
|
if (index >= 2048) {
|
|
1692
1692
|
throwSingleBuffer($this, index);
|
|
1693
1693
|
}
|
|
1694
|
-
var tmp0_elvis_lhs = $this.
|
|
1694
|
+
var tmp0_elvis_lhs = $this.current_1;
|
|
1695
1695
|
var tmp;
|
|
1696
1696
|
if (tmp0_elvis_lhs == null) {
|
|
1697
1697
|
throwSingleBuffer($this, index);
|
|
@@ -1700,36 +1700,36 @@ function bufferForIndex($this, index) {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
return tmp;
|
|
1702
1702
|
}
|
|
1703
|
-
return list.
|
|
1703
|
+
return list.get_c1px32_k$(index / ensureNotNull($this.current_1).length | 0);
|
|
1704
1704
|
}
|
|
1705
1705
|
function throwSingleBuffer($this, index) {
|
|
1706
|
-
if ($this.
|
|
1706
|
+
if ($this.released_1)
|
|
1707
1707
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1708
1708
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1709
1709
|
}
|
|
1710
1710
|
function nonFullBuffer($this) {
|
|
1711
|
-
return $this.
|
|
1711
|
+
return $this.remaining_1 === 0 ? appendNewArray($this) : ensureNotNull($this.current_1);
|
|
1712
1712
|
}
|
|
1713
1713
|
function appendNewArray($this) {
|
|
1714
|
-
var newBuffer = $this.
|
|
1715
|
-
var existing = $this.
|
|
1716
|
-
$this.
|
|
1717
|
-
$this.
|
|
1718
|
-
$this.
|
|
1714
|
+
var newBuffer = $this.pool_1.borrow_mvkpor_k$();
|
|
1715
|
+
var existing = $this.current_1;
|
|
1716
|
+
$this.current_1 = newBuffer;
|
|
1717
|
+
$this.remaining_1 = newBuffer.length;
|
|
1718
|
+
$this.released_1 = false;
|
|
1719
1719
|
if (!(existing == null)) {
|
|
1720
|
-
var tmp0_elvis_lhs = $this.
|
|
1720
|
+
var tmp0_elvis_lhs = $this.buffers_1;
|
|
1721
1721
|
var tmp;
|
|
1722
1722
|
if (tmp0_elvis_lhs == null) {
|
|
1723
1723
|
// Inline function 'kotlin.also' call
|
|
1724
1724
|
var this_0 = ArrayList_init_$Create$();
|
|
1725
|
-
$this.
|
|
1726
|
-
this_0.
|
|
1725
|
+
$this.buffers_1 = this_0;
|
|
1726
|
+
this_0.add_utx5q5_k$(existing);
|
|
1727
1727
|
tmp = this_0;
|
|
1728
1728
|
} else {
|
|
1729
1729
|
tmp = tmp0_elvis_lhs;
|
|
1730
1730
|
}
|
|
1731
1731
|
var list = tmp;
|
|
1732
|
-
list.
|
|
1732
|
+
list.add_utx5q5_k$(newBuffer);
|
|
1733
1733
|
}
|
|
1734
1734
|
return newBuffer;
|
|
1735
1735
|
}
|
|
@@ -1761,35 +1761,35 @@ function hashCodeImpl($this, start, end) {
|
|
|
1761
1761
|
return hc;
|
|
1762
1762
|
}
|
|
1763
1763
|
function currentPosition($this) {
|
|
1764
|
-
return ensureNotNull($this.
|
|
1764
|
+
return ensureNotNull($this.current_1).length - $this.remaining_1 | 0;
|
|
1765
1765
|
}
|
|
1766
1766
|
function CharArrayBuilder(pool) {
|
|
1767
1767
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1774
|
-
this.
|
|
1775
|
-
}
|
|
1776
|
-
protoOf(CharArrayBuilder).
|
|
1777
|
-
return this.
|
|
1768
|
+
this.pool_1 = pool;
|
|
1769
|
+
this.buffers_1 = null;
|
|
1770
|
+
this.current_1 = null;
|
|
1771
|
+
this.stringified_1 = null;
|
|
1772
|
+
this.released_1 = false;
|
|
1773
|
+
this.remaining_1 = 0;
|
|
1774
|
+
this.length_1 = 0;
|
|
1775
|
+
}
|
|
1776
|
+
protoOf(CharArrayBuilder).get_length_g42xv3_k$ = function () {
|
|
1777
|
+
return this.length_1;
|
|
1778
1778
|
};
|
|
1779
|
-
protoOf(CharArrayBuilder).
|
|
1779
|
+
protoOf(CharArrayBuilder).get_kdzpvg_k$ = function (index) {
|
|
1780
1780
|
// Inline function 'kotlin.require' call
|
|
1781
1781
|
if (!(index >= 0)) {
|
|
1782
1782
|
var message = 'index is negative: ' + index;
|
|
1783
1783
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1784
1784
|
}
|
|
1785
1785
|
// Inline function 'kotlin.require' call
|
|
1786
|
-
if (!(index < this.
|
|
1787
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1786
|
+
if (!(index < this.length_1)) {
|
|
1787
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.length_1 + ')';
|
|
1788
1788
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1789
1789
|
}
|
|
1790
1790
|
return getImpl(this, index);
|
|
1791
1791
|
};
|
|
1792
|
-
protoOf(CharArrayBuilder).
|
|
1792
|
+
protoOf(CharArrayBuilder).subSequence_hm5hnj_k$ = function (startIndex, endIndex) {
|
|
1793
1793
|
// Inline function 'kotlin.require' call
|
|
1794
1794
|
if (!(startIndex <= endIndex)) {
|
|
1795
1795
|
var message = 'startIndex (' + startIndex + ') should be less or equal to endIndex (' + endIndex + ')';
|
|
@@ -1801,19 +1801,19 @@ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
|
|
|
1801
1801
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1802
1802
|
}
|
|
1803
1803
|
// Inline function 'kotlin.require' call
|
|
1804
|
-
if (!(endIndex <= this.
|
|
1805
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1804
|
+
if (!(endIndex <= this.length_1)) {
|
|
1805
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.length_1 + ')';
|
|
1806
1806
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1807
1807
|
}
|
|
1808
1808
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1809
1809
|
};
|
|
1810
1810
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1811
|
-
var tmp0_elvis_lhs = this.
|
|
1811
|
+
var tmp0_elvis_lhs = this.stringified_1;
|
|
1812
1812
|
var tmp;
|
|
1813
1813
|
if (tmp0_elvis_lhs == null) {
|
|
1814
1814
|
// Inline function 'kotlin.also' call
|
|
1815
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1816
|
-
this.
|
|
1815
|
+
var this_0 = toString(copy(this, 0, this.length_1));
|
|
1816
|
+
this.stringified_1 = this_0;
|
|
1817
1817
|
tmp = this_0;
|
|
1818
1818
|
} else {
|
|
1819
1819
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1823,32 +1823,32 @@ protoOf(CharArrayBuilder).toString = function () {
|
|
|
1823
1823
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1824
1824
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1825
1825
|
return false;
|
|
1826
|
-
if (!(this.
|
|
1826
|
+
if (!(this.length_1 === charSequenceLength(other)))
|
|
1827
1827
|
return false;
|
|
1828
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1828
|
+
return rangeEqualsImpl(this, 0, other, 0, this.length_1);
|
|
1829
1829
|
};
|
|
1830
1830
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1831
|
-
var tmp0_safe_receiver = this.
|
|
1831
|
+
var tmp0_safe_receiver = this.stringified_1;
|
|
1832
1832
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1833
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1833
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.length_1) : tmp1_elvis_lhs;
|
|
1834
1834
|
};
|
|
1835
|
-
protoOf(CharArrayBuilder).
|
|
1836
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1837
|
-
this.
|
|
1838
|
-
this.
|
|
1839
|
-
this.
|
|
1835
|
+
protoOf(CharArrayBuilder).append_58al37_k$ = function (value) {
|
|
1836
|
+
nonFullBuffer(this)[ensureNotNull(this.current_1).length - this.remaining_1 | 0] = value;
|
|
1837
|
+
this.stringified_1 = null;
|
|
1838
|
+
this.remaining_1 = this.remaining_1 - 1 | 0;
|
|
1839
|
+
this.length_1 = this.length_1 + 1 | 0;
|
|
1840
1840
|
return this;
|
|
1841
1841
|
};
|
|
1842
|
-
protoOf(CharArrayBuilder).
|
|
1842
|
+
protoOf(CharArrayBuilder).append_xdc1zw_k$ = function (value, startIndex, endIndex) {
|
|
1843
1843
|
if (value == null)
|
|
1844
1844
|
return this;
|
|
1845
1845
|
var current = startIndex;
|
|
1846
1846
|
while (current < endIndex) {
|
|
1847
1847
|
var buffer = nonFullBuffer(this);
|
|
1848
|
-
var offset = buffer.length - this.
|
|
1848
|
+
var offset = buffer.length - this.remaining_1 | 0;
|
|
1849
1849
|
var tmp0 = endIndex - current | 0;
|
|
1850
1850
|
// Inline function 'kotlin.math.min' call
|
|
1851
|
-
var b = this.
|
|
1851
|
+
var b = this.remaining_1;
|
|
1852
1852
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1853
1853
|
var inductionVariable = 0;
|
|
1854
1854
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1859,45 +1859,45 @@ protoOf(CharArrayBuilder).bc = function (value, startIndex, endIndex) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
while (inductionVariable < bytesToCopy);
|
|
1861
1861
|
current = current + bytesToCopy | 0;
|
|
1862
|
-
this.
|
|
1862
|
+
this.remaining_1 = this.remaining_1 - bytesToCopy | 0;
|
|
1863
1863
|
}
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1864
|
+
this.stringified_1 = null;
|
|
1865
|
+
this.length_1 = this.length_1 + (endIndex - startIndex | 0) | 0;
|
|
1866
1866
|
return this;
|
|
1867
1867
|
};
|
|
1868
|
-
protoOf(CharArrayBuilder).
|
|
1868
|
+
protoOf(CharArrayBuilder).append_jgojdo_k$ = function (value) {
|
|
1869
1869
|
if (value == null)
|
|
1870
1870
|
return this;
|
|
1871
|
-
return this.
|
|
1871
|
+
return this.append_xdc1zw_k$(value, 0, charSequenceLength(value));
|
|
1872
1872
|
};
|
|
1873
|
-
protoOf(CharArrayBuilder).
|
|
1874
|
-
var list = this.
|
|
1873
|
+
protoOf(CharArrayBuilder).release_wu5yyf_k$ = function () {
|
|
1874
|
+
var list = this.buffers_1;
|
|
1875
1875
|
if (!(list == null)) {
|
|
1876
|
-
this.
|
|
1876
|
+
this.current_1 = null;
|
|
1877
1877
|
var inductionVariable = 0;
|
|
1878
|
-
var last = list.
|
|
1878
|
+
var last = list.get_size_woubt6_k$();
|
|
1879
1879
|
if (inductionVariable < last)
|
|
1880
1880
|
do {
|
|
1881
1881
|
var i = inductionVariable;
|
|
1882
1882
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1883
|
-
this.
|
|
1883
|
+
this.pool_1.recycle_d2xv5h_k$(list.get_c1px32_k$(i));
|
|
1884
1884
|
}
|
|
1885
1885
|
while (inductionVariable < last);
|
|
1886
1886
|
} else {
|
|
1887
|
-
var tmp0_safe_receiver = this.
|
|
1887
|
+
var tmp0_safe_receiver = this.current_1;
|
|
1888
1888
|
if (tmp0_safe_receiver == null)
|
|
1889
1889
|
null;
|
|
1890
1890
|
else {
|
|
1891
1891
|
// Inline function 'kotlin.let' call
|
|
1892
|
-
this.
|
|
1892
|
+
this.pool_1.recycle_d2xv5h_k$(tmp0_safe_receiver);
|
|
1893
1893
|
}
|
|
1894
|
-
this.
|
|
1894
|
+
this.current_1 = null;
|
|
1895
1895
|
}
|
|
1896
|
-
this.
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1896
|
+
this.released_1 = true;
|
|
1897
|
+
this.buffers_1 = null;
|
|
1898
|
+
this.stringified_1 = null;
|
|
1899
|
+
this.length_1 = 0;
|
|
1900
|
+
this.remaining_1 = 0;
|
|
1901
1901
|
};
|
|
1902
1902
|
function get_CharArrayPool() {
|
|
1903
1903
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1907,13 +1907,13 @@ var CharArrayPool;
|
|
|
1907
1907
|
function CharArrayPool$1() {
|
|
1908
1908
|
NoPoolImpl.call(this);
|
|
1909
1909
|
}
|
|
1910
|
-
protoOf(CharArrayPool$1).
|
|
1910
|
+
protoOf(CharArrayPool$1).borrow_mvkpor_k$ = function () {
|
|
1911
1911
|
return charArray(2048);
|
|
1912
1912
|
};
|
|
1913
1913
|
function CharArrayPool$2() {
|
|
1914
1914
|
DefaultPool.call(this, 4096);
|
|
1915
1915
|
}
|
|
1916
|
-
protoOf(CharArrayPool$2).
|
|
1916
|
+
protoOf(CharArrayPool$2).produceInstance_xswihh_k$ = function () {
|
|
1917
1917
|
return charArray(2048);
|
|
1918
1918
|
};
|
|
1919
1919
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2104,26 +2104,26 @@ function numberFormatException_0(cs, idx) {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
function DefaultHttpMethods$lambda(it) {
|
|
2106
2106
|
_init_properties_Chars_kt__d3i39x();
|
|
2107
|
-
return it.
|
|
2107
|
+
return it.value_1.length;
|
|
2108
2108
|
}
|
|
2109
2109
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2110
2110
|
_init_properties_Chars_kt__d3i39x();
|
|
2111
|
-
return new Char(charCodeAt(m.
|
|
2111
|
+
return new Char(charCodeAt(m.value_1, idx));
|
|
2112
2112
|
}
|
|
2113
2113
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2114
2114
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2115
2115
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2116
2116
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2117
2117
|
var tmp = Companion_instance;
|
|
2118
|
-
var tmp_0 = Companion_getInstance().
|
|
2118
|
+
var tmp_0 = Companion_getInstance().DefaultMethods_1;
|
|
2119
2119
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2120
|
-
DefaultHttpMethods = tmp.
|
|
2120
|
+
DefaultHttpMethods = tmp.build_su3zc2_k$(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2121
2121
|
// Inline function 'kotlin.collections.map' call
|
|
2122
2122
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2123
2123
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2124
2124
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2125
|
-
var inductionVariable = this_0.
|
|
2126
|
-
var last = this_0.
|
|
2125
|
+
var inductionVariable = this_0.first_1;
|
|
2126
|
+
var last = this_0.last_1;
|
|
2127
2127
|
if (inductionVariable <= last)
|
|
2128
2128
|
do {
|
|
2129
2129
|
var item = inductionVariable;
|
|
@@ -2182,7 +2182,7 @@ function _init_properties_Chars_kt__d3i39x() {
|
|
|
2182
2182
|
}
|
|
2183
2183
|
}
|
|
2184
2184
|
var tmp$ret$2 = tmp_2;
|
|
2185
|
-
destination.
|
|
2185
|
+
destination.add_utx5q5_k$(tmp$ret$2);
|
|
2186
2186
|
}
|
|
2187
2187
|
while (!(item === last));
|
|
2188
2188
|
HexTable = toLongArray(destination);
|
|
@@ -2190,8 +2190,8 @@ function _init_properties_Chars_kt__d3i39x() {
|
|
|
2190
2190
|
var this_9 = numberRangeToNumber(0, 15);
|
|
2191
2191
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2192
2192
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_9, 10));
|
|
2193
|
-
var inductionVariable_0 = this_9.
|
|
2194
|
-
var last_0 = this_9.
|
|
2193
|
+
var inductionVariable_0 = this_9.first_1;
|
|
2194
|
+
var last_0 = this_9.last_1;
|
|
2195
2195
|
if (inductionVariable_0 <= last_0)
|
|
2196
2196
|
do {
|
|
2197
2197
|
var item_0 = inductionVariable_0;
|
|
@@ -2207,7 +2207,7 @@ function _init_properties_Chars_kt__d3i39x() {
|
|
|
2207
2207
|
tmp_9 = toByte(tmp$ret$3_0);
|
|
2208
2208
|
}
|
|
2209
2209
|
var tmp$ret$2_0 = tmp_9;
|
|
2210
|
-
destination_0.
|
|
2210
|
+
destination_0.add_utx5q5_k$(tmp$ret$2_0);
|
|
2211
2211
|
}
|
|
2212
2212
|
while (!(item_0 === last_0));
|
|
2213
2213
|
HexLetterTable = toByteArray(destination_0);
|
|
@@ -2218,16 +2218,16 @@ function UnsupportedMediaTypeExceptionCIO(message) {
|
|
|
2218
2218
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2219
2219
|
}
|
|
2220
2220
|
function MutableRange(start, end) {
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2221
|
+
this.start_1 = start;
|
|
2222
|
+
this.end_1 = end;
|
|
2223
2223
|
}
|
|
2224
2224
|
protoOf(MutableRange).toString = function () {
|
|
2225
|
-
return 'MutableRange(start=' + this.
|
|
2225
|
+
return 'MutableRange(start=' + this.start_1 + ', end=' + this.end_1 + ')';
|
|
2226
2226
|
};
|
|
2227
2227
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2228
2228
|
var index = start;
|
|
2229
2229
|
$l$loop: while (index < end) {
|
|
2230
|
-
var ch = text.
|
|
2230
|
+
var ch = text.get_kdzpvg_k$(index);
|
|
2231
2231
|
if (!isWhitespace(ch) && !(ch === _Char___init__impl__6a9atx(9)))
|
|
2232
2232
|
break $l$loop;
|
|
2233
2233
|
index = index + 1 | 0;
|