@dmarket/p2p-tracker-core 1.0.3-beta → 1.0.4-SNAPSHOT-development.97
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 +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/VERSION +6 -6
- package/dmarket-p2p-tracker-core-domain.mjs +4981 -4060
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2376 -2234
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2488 -2488
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1967 -1967
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1543 -1512
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3365 -3247
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +484 -484
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1118 -1010
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1062 -1113
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +4 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +977 -765
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +759 -748
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +9 -6
- package/p2p-tracker-core.mjs +21835 -18899
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/client_wasm.js +11 -3
- package/pkg/client_wasm_bg.wasm +0 -0
package/ktor-ktor-http-cio.mjs
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
WriterScope3b0bo1enaee6b as WriterScope,
|
|
94
94
|
counted3iniv3aql3f9n as counted,
|
|
95
95
|
writer1eia5its2a1fh as writer,
|
|
96
|
-
|
|
96
|
+
readBuffer1oyp7szwwpxy7 as readBuffer,
|
|
97
97
|
get_remaining1lapv95kcmm0y as get_remaining,
|
|
98
98
|
skipIfFound2z2la3mzzpubl as skipIfFound,
|
|
99
99
|
ByteChannel3cxdguezl3lu7 as ByteChannel,
|
|
@@ -146,12 +146,12 @@ initMetadataForClass(MutableRange, 'MutableRange');
|
|
|
146
146
|
//endregion
|
|
147
147
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
148
148
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
149
|
+
this.u4r_1 = coroutineContext;
|
|
150
|
+
this.v4r_1 = null;
|
|
151
|
+
this.w4r_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
152
152
|
}
|
|
153
|
-
protoOf(CIOMultipartDataBase).
|
|
154
|
-
return this.
|
|
153
|
+
protoOf(CIOMultipartDataBase).f1n = function () {
|
|
154
|
+
return this.u4r_1;
|
|
155
155
|
};
|
|
156
156
|
function get_IntArrayPool() {
|
|
157
157
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -164,103 +164,103 @@ function get_HeadersDataPool() {
|
|
|
164
164
|
}
|
|
165
165
|
var HeadersDataPool;
|
|
166
166
|
function thresholdReached($this) {
|
|
167
|
-
return $this.
|
|
167
|
+
return $this.y4r_1 >= $this.z4r_1 * 0.75;
|
|
168
168
|
}
|
|
169
169
|
function resize($this) {
|
|
170
|
-
var prevSize = $this.
|
|
171
|
-
var prevData = $this.
|
|
172
|
-
$this.
|
|
173
|
-
$this.
|
|
170
|
+
var prevSize = $this.y4r_1;
|
|
171
|
+
var prevData = $this.a4s_1;
|
|
172
|
+
$this.y4r_1 = 0;
|
|
173
|
+
$this.z4r_1 = imul($this.z4r_1, 2) | 128;
|
|
174
174
|
var tmp = $this;
|
|
175
175
|
// Inline function 'kotlin.apply' call
|
|
176
|
-
var this_0 = get_HeadersDataPool().
|
|
177
|
-
this_0.
|
|
178
|
-
tmp.
|
|
179
|
-
var _iterator__ex2g4s = prevData.
|
|
176
|
+
var this_0 = get_HeadersDataPool().n3x();
|
|
177
|
+
this_0.d4s(imul(prevData.c4s(), 2) | 1);
|
|
178
|
+
tmp.a4s_1 = this_0;
|
|
179
|
+
var _iterator__ex2g4s = prevData.e4s().t();
|
|
180
180
|
while (_iterator__ex2g4s.u()) {
|
|
181
181
|
var headerOffset = _iterator__ex2g4s.v();
|
|
182
|
-
$this.
|
|
182
|
+
$this.g4s(prevData.f4s(headerOffset + 1 | 0), prevData.f4s(headerOffset + 2 | 0), prevData.f4s(headerOffset + 3 | 0), prevData.f4s(headerOffset + 4 | 0));
|
|
183
183
|
}
|
|
184
|
-
get_HeadersDataPool().
|
|
184
|
+
get_HeadersDataPool().o3x(prevData);
|
|
185
185
|
// Inline function 'kotlin.require' call
|
|
186
186
|
// Inline function 'kotlin.require' call
|
|
187
|
-
if (!(prevSize === $this.
|
|
187
|
+
if (!(prevSize === $this.y4r_1)) {
|
|
188
188
|
var message = 'Failed requirement.';
|
|
189
189
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function headerHasName($this, name, headerOffset) {
|
|
193
|
-
var nameStartIndex = $this.
|
|
194
|
-
var nameEndIndex = $this.
|
|
195
|
-
return equalsLowerCase($this.
|
|
193
|
+
var nameStartIndex = $this.a4s_1.f4s(headerOffset + 1 | 0);
|
|
194
|
+
var nameEndIndex = $this.a4s_1.f4s(headerOffset + 2 | 0);
|
|
195
|
+
return equalsLowerCase($this.x4r_1, nameStartIndex, nameEndIndex, name);
|
|
196
196
|
}
|
|
197
197
|
function HttpHeadersMap(builder) {
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
198
|
+
this.x4r_1 = builder;
|
|
199
|
+
this.y4r_1 = 0;
|
|
200
|
+
this.z4r_1 = 0;
|
|
201
|
+
this.a4s_1 = get_HeadersDataPool().n3x();
|
|
202
202
|
}
|
|
203
|
-
protoOf(HttpHeadersMap).
|
|
204
|
-
if (this.
|
|
203
|
+
protoOf(HttpHeadersMap).td = function (name) {
|
|
204
|
+
if (this.y4r_1 === 0)
|
|
205
205
|
return null;
|
|
206
206
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
207
207
|
var this_0 = hashCodeLowerCase(name);
|
|
208
208
|
var hash = abs(this_0);
|
|
209
|
-
var headerIndex = hash % this.
|
|
210
|
-
while (!(this.
|
|
209
|
+
var headerIndex = hash % this.z4r_1 | 0;
|
|
210
|
+
while (!(this.a4s_1.f4s(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
211
211
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
212
|
-
return this.
|
|
212
|
+
return this.h4s(imul(headerIndex, 6));
|
|
213
213
|
}
|
|
214
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
214
|
+
headerIndex = (headerIndex + 1 | 0) % this.z4r_1 | 0;
|
|
215
215
|
}
|
|
216
216
|
return null;
|
|
217
217
|
};
|
|
218
|
-
protoOf(HttpHeadersMap).
|
|
219
|
-
return this.
|
|
218
|
+
protoOf(HttpHeadersMap).i4s = function () {
|
|
219
|
+
return this.a4s_1.e4s();
|
|
220
220
|
};
|
|
221
|
-
protoOf(HttpHeadersMap).
|
|
221
|
+
protoOf(HttpHeadersMap).g4s = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
222
222
|
if (thresholdReached(this)) {
|
|
223
223
|
resize(this);
|
|
224
224
|
}
|
|
225
225
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
226
|
-
var this_0 = hashCodeLowerCase(this.
|
|
226
|
+
var this_0 = hashCodeLowerCase(this.x4r_1, nameStartIndex, nameEndIndex);
|
|
227
227
|
var hash = abs(this_0);
|
|
228
|
-
var name = this.
|
|
229
|
-
var headerIndex = hash % this.
|
|
228
|
+
var name = this.x4r_1.c(nameStartIndex, nameEndIndex);
|
|
229
|
+
var headerIndex = hash % this.z4r_1 | 0;
|
|
230
230
|
var sameNameHeaderIndex = -1;
|
|
231
|
-
while (!(this.
|
|
231
|
+
while (!(this.a4s_1.f4s(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
232
232
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
233
233
|
sameNameHeaderIndex = headerIndex;
|
|
234
234
|
}
|
|
235
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
235
|
+
headerIndex = (headerIndex + 1 | 0) % this.z4r_1 | 0;
|
|
236
236
|
}
|
|
237
237
|
var headerOffset = imul(headerIndex, 6);
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
this.
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
238
|
+
this.a4s_1.q4s(headerOffset + 0 | 0, hash);
|
|
239
|
+
this.a4s_1.q4s(headerOffset + 1 | 0, nameStartIndex);
|
|
240
|
+
this.a4s_1.q4s(headerOffset + 2 | 0, nameEndIndex);
|
|
241
|
+
this.a4s_1.q4s(headerOffset + 3 | 0, valueStartIndex);
|
|
242
|
+
this.a4s_1.q4s(headerOffset + 4 | 0, valueEndIndex);
|
|
243
|
+
this.a4s_1.q4s(headerOffset + 5 | 0, -1);
|
|
244
244
|
if (!(sameNameHeaderIndex === -1)) {
|
|
245
|
-
this.
|
|
245
|
+
this.a4s_1.q4s(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
246
246
|
}
|
|
247
|
-
this.
|
|
247
|
+
this.y4r_1 = this.y4r_1 + 1 | 0;
|
|
248
248
|
};
|
|
249
|
-
protoOf(HttpHeadersMap).
|
|
250
|
-
var nameStartIndex = this.
|
|
251
|
-
var nameEndIndex = this.
|
|
252
|
-
return this.
|
|
249
|
+
protoOf(HttpHeadersMap).r4s = function (headerOffset) {
|
|
250
|
+
var nameStartIndex = this.a4s_1.f4s(headerOffset + 1 | 0);
|
|
251
|
+
var nameEndIndex = this.a4s_1.f4s(headerOffset + 2 | 0);
|
|
252
|
+
return this.x4r_1.c(nameStartIndex, nameEndIndex);
|
|
253
253
|
};
|
|
254
|
-
protoOf(HttpHeadersMap).
|
|
255
|
-
var valueStartIndex = this.
|
|
256
|
-
var valueEndIndex = this.
|
|
257
|
-
return this.
|
|
254
|
+
protoOf(HttpHeadersMap).h4s = function (headerOffset) {
|
|
255
|
+
var valueStartIndex = this.a4s_1.f4s(headerOffset + 3 | 0);
|
|
256
|
+
var valueEndIndex = this.a4s_1.f4s(headerOffset + 4 | 0);
|
|
257
|
+
return this.x4r_1.c(valueStartIndex, valueEndIndex);
|
|
258
258
|
};
|
|
259
|
-
protoOf(HttpHeadersMap).
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
get_HeadersDataPool().
|
|
263
|
-
this.
|
|
259
|
+
protoOf(HttpHeadersMap).u1a = function () {
|
|
260
|
+
this.y4r_1 = 0;
|
|
261
|
+
this.z4r_1 = 0;
|
|
262
|
+
get_HeadersDataPool().o3x(this.a4s_1);
|
|
263
|
+
this.a4s_1 = get_HeadersDataPool().n3x();
|
|
264
264
|
};
|
|
265
265
|
protoOf(HttpHeadersMap).toString = function () {
|
|
266
266
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -270,148 +270,148 @@ protoOf(HttpHeadersMap).toString = function () {
|
|
|
270
270
|
return this_0.toString();
|
|
271
271
|
};
|
|
272
272
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
273
|
-
this.
|
|
273
|
+
this.a4t_1 = this$0;
|
|
274
274
|
CoroutineImpl.call(this, resultContinuation);
|
|
275
275
|
}
|
|
276
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
277
|
-
var tmp = this.
|
|
278
|
-
tmp.
|
|
279
|
-
tmp.
|
|
280
|
-
return tmp.
|
|
276
|
+
protoOf(HeadersData$headersStarts$slambda).g4t = function ($this$sequence, $completion) {
|
|
277
|
+
var tmp = this.h4t($this$sequence, $completion);
|
|
278
|
+
tmp.y8_1 = Unit_instance;
|
|
279
|
+
tmp.z8_1 = null;
|
|
280
|
+
return tmp.e9();
|
|
281
281
|
};
|
|
282
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
283
|
-
return this.
|
|
282
|
+
protoOf(HeadersData$headersStarts$slambda).r9 = function (p1, $completion) {
|
|
283
|
+
return this.g4t(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
284
284
|
};
|
|
285
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
286
|
-
var suspendResult = this.
|
|
285
|
+
protoOf(HeadersData$headersStarts$slambda).e9 = function () {
|
|
286
|
+
var suspendResult = this.y8_1;
|
|
287
287
|
$sm: do
|
|
288
288
|
try {
|
|
289
|
-
var tmp = this.
|
|
289
|
+
var tmp = this.w8_1;
|
|
290
290
|
switch (tmp) {
|
|
291
291
|
case 0:
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
292
|
+
this.x8_1 = 7;
|
|
293
|
+
this.c4t_1 = 0;
|
|
294
|
+
this.f4t_1 = this.a4t_1.b4s_1.t();
|
|
295
|
+
this.w8_1 = 1;
|
|
296
296
|
continue $sm;
|
|
297
297
|
case 1:
|
|
298
|
-
if (!this.
|
|
299
|
-
this.
|
|
298
|
+
if (!this.f4t_1.u()) {
|
|
299
|
+
this.w8_1 = 6;
|
|
300
300
|
continue $sm;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
303
|
+
this.e4t_1 = this.f4t_1.v();
|
|
304
|
+
this.d4t_1 = 0;
|
|
305
|
+
this.w8_1 = 2;
|
|
306
306
|
continue $sm;
|
|
307
307
|
case 2:
|
|
308
|
-
if (!(this.
|
|
309
|
-
this.
|
|
308
|
+
if (!(this.d4t_1 < this.e4t_1.length)) {
|
|
309
|
+
this.w8_1 = 5;
|
|
310
310
|
continue $sm;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
if (!(this.
|
|
314
|
-
this.
|
|
315
|
-
suspendResult = this.
|
|
313
|
+
if (!(this.a4t_1.f4s(this.c4t_1 + 0 | 0) === -1)) {
|
|
314
|
+
this.w8_1 = 3;
|
|
315
|
+
suspendResult = this.b4t_1.dh(this.c4t_1, this);
|
|
316
316
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
317
317
|
return suspendResult;
|
|
318
318
|
}
|
|
319
319
|
continue $sm;
|
|
320
320
|
} else {
|
|
321
|
-
this.
|
|
321
|
+
this.w8_1 = 4;
|
|
322
322
|
continue $sm;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
case 3:
|
|
326
|
-
this.
|
|
326
|
+
this.w8_1 = 4;
|
|
327
327
|
continue $sm;
|
|
328
328
|
case 4:
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
this.
|
|
329
|
+
this.d4t_1 = this.d4t_1 + 6 | 0;
|
|
330
|
+
this.c4t_1 = this.c4t_1 + 6 | 0;
|
|
331
|
+
this.w8_1 = 2;
|
|
332
332
|
continue $sm;
|
|
333
333
|
case 5:
|
|
334
|
-
this.
|
|
334
|
+
this.w8_1 = 1;
|
|
335
335
|
continue $sm;
|
|
336
336
|
case 6:
|
|
337
337
|
return Unit_instance;
|
|
338
338
|
case 7:
|
|
339
|
-
throw this.
|
|
339
|
+
throw this.z8_1;
|
|
340
340
|
}
|
|
341
341
|
} catch ($p) {
|
|
342
342
|
var e = $p;
|
|
343
|
-
if (this.
|
|
343
|
+
if (this.x8_1 === 7) {
|
|
344
344
|
throw e;
|
|
345
345
|
} else {
|
|
346
|
-
this.
|
|
347
|
-
this.
|
|
346
|
+
this.w8_1 = this.x8_1;
|
|
347
|
+
this.z8_1 = e;
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
while (true);
|
|
351
351
|
};
|
|
352
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
353
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
354
|
-
i.
|
|
352
|
+
protoOf(HeadersData$headersStarts$slambda).h4t = function ($this$sequence, completion) {
|
|
353
|
+
var i = new HeadersData$headersStarts$slambda(this.a4t_1, completion);
|
|
354
|
+
i.b4t_1 = $this$sequence;
|
|
355
355
|
return i;
|
|
356
356
|
};
|
|
357
357
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
358
358
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
359
359
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
360
|
-
return i.
|
|
360
|
+
return i.g4t($this$sequence, $completion);
|
|
361
361
|
}, 1);
|
|
362
362
|
}
|
|
363
363
|
function HeadersData() {
|
|
364
364
|
var tmp = this;
|
|
365
365
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
366
|
-
tmp.
|
|
366
|
+
tmp.b4s_1 = ArrayList_init_$Create$();
|
|
367
367
|
}
|
|
368
|
-
protoOf(HeadersData).
|
|
369
|
-
return this.
|
|
368
|
+
protoOf(HeadersData).c4s = function () {
|
|
369
|
+
return this.b4s_1.e1();
|
|
370
370
|
};
|
|
371
|
-
protoOf(HeadersData).
|
|
371
|
+
protoOf(HeadersData).d4s = function (subArraysCount) {
|
|
372
372
|
// Inline function 'kotlin.repeat' call
|
|
373
373
|
var inductionVariable = 0;
|
|
374
374
|
if (inductionVariable < subArraysCount)
|
|
375
375
|
do {
|
|
376
376
|
var index = inductionVariable;
|
|
377
377
|
inductionVariable = inductionVariable + 1 | 0;
|
|
378
|
-
this.
|
|
378
|
+
this.b4s_1.b1(get_IntArrayPool().n3x());
|
|
379
379
|
}
|
|
380
380
|
while (inductionVariable < subArraysCount);
|
|
381
381
|
};
|
|
382
|
-
protoOf(HeadersData).
|
|
383
|
-
return this.
|
|
382
|
+
protoOf(HeadersData).f4s = function (index) {
|
|
383
|
+
return this.b4s_1.f1(index / 768 | 0)[index % 768 | 0];
|
|
384
384
|
};
|
|
385
|
-
protoOf(HeadersData).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(HeadersData).q4s = function (index, value) {
|
|
386
|
+
this.b4s_1.f1(index / 768 | 0)[index % 768 | 0] = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(HeadersData).
|
|
388
|
+
protoOf(HeadersData).e4s = function () {
|
|
389
389
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
390
390
|
};
|
|
391
|
-
protoOf(HeadersData).
|
|
392
|
-
var _iterator__ex2g4s = this.
|
|
391
|
+
protoOf(HeadersData).u1a = function () {
|
|
392
|
+
var _iterator__ex2g4s = this.b4s_1.t();
|
|
393
393
|
while (_iterator__ex2g4s.u()) {
|
|
394
394
|
var array = _iterator__ex2g4s.v();
|
|
395
|
-
get_IntArrayPool().
|
|
395
|
+
get_IntArrayPool().o3x(array);
|
|
396
396
|
}
|
|
397
|
-
this.
|
|
397
|
+
this.b4s_1.x2();
|
|
398
398
|
};
|
|
399
399
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
400
400
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
401
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
401
|
+
var _iterator__ex2g4s = _this__u8e3s4.i4s().t();
|
|
402
402
|
while (_iterator__ex2g4s.u()) {
|
|
403
403
|
var offset = _iterator__ex2g4s.v();
|
|
404
404
|
out.c1(indent);
|
|
405
|
-
out.c1(_this__u8e3s4.
|
|
405
|
+
out.c1(_this__u8e3s4.r4s(offset));
|
|
406
406
|
out.c1(' => ');
|
|
407
|
-
out.c1(_this__u8e3s4.
|
|
407
|
+
out.c1(_this__u8e3s4.h4s(offset));
|
|
408
408
|
out.c1('\n');
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function IntArrayPool$1() {
|
|
412
412
|
DefaultPool.call(this, 1000);
|
|
413
413
|
}
|
|
414
|
-
protoOf(IntArrayPool$1).
|
|
414
|
+
protoOf(IntArrayPool$1).g3x = function () {
|
|
415
415
|
var tmp = 0;
|
|
416
416
|
var tmp_0 = new Int32Array(768);
|
|
417
417
|
while (tmp < 768) {
|
|
@@ -420,25 +420,25 @@ protoOf(IntArrayPool$1).u3u = function () {
|
|
|
420
420
|
}
|
|
421
421
|
return tmp_0;
|
|
422
422
|
};
|
|
423
|
-
protoOf(IntArrayPool$1).
|
|
423
|
+
protoOf(IntArrayPool$1).l4t = function (instance) {
|
|
424
424
|
fill(instance, -1);
|
|
425
|
-
return protoOf(DefaultPool).
|
|
425
|
+
return protoOf(DefaultPool).l3x.call(this, instance);
|
|
426
426
|
};
|
|
427
|
-
protoOf(IntArrayPool$1).
|
|
428
|
-
return this.
|
|
427
|
+
protoOf(IntArrayPool$1).l3x = function (instance) {
|
|
428
|
+
return this.l4t(isIntArray(instance) ? instance : THROW_CCE());
|
|
429
429
|
};
|
|
430
430
|
function HeadersDataPool$1() {
|
|
431
431
|
DefaultPool.call(this, 1000);
|
|
432
432
|
}
|
|
433
|
-
protoOf(HeadersDataPool$1).
|
|
433
|
+
protoOf(HeadersDataPool$1).g3x = function () {
|
|
434
434
|
return new HeadersData();
|
|
435
435
|
};
|
|
436
|
-
protoOf(HeadersDataPool$1).
|
|
437
|
-
instance.
|
|
438
|
-
return protoOf(DefaultPool).
|
|
436
|
+
protoOf(HeadersDataPool$1).p4t = function (instance) {
|
|
437
|
+
instance.u1a();
|
|
438
|
+
return protoOf(DefaultPool).l3x.call(this, instance);
|
|
439
439
|
};
|
|
440
|
-
protoOf(HeadersDataPool$1).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(HeadersDataPool$1).l3x = function (instance) {
|
|
441
|
+
return this.p4t(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
442
442
|
};
|
|
443
443
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
444
444
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -458,22 +458,22 @@ var versions;
|
|
|
458
458
|
function parseHeaders(input, builder, range, $completion) {
|
|
459
459
|
range = range === VOID ? new MutableRange(0, 0) : range;
|
|
460
460
|
var tmp = new $parseHeadersCOROUTINE$(input, builder, range, $completion);
|
|
461
|
-
tmp.
|
|
462
|
-
tmp.
|
|
463
|
-
return tmp.
|
|
461
|
+
tmp.y8_1 = Unit_instance;
|
|
462
|
+
tmp.z8_1 = null;
|
|
463
|
+
return tmp.e9();
|
|
464
464
|
}
|
|
465
465
|
function parseHeaderName(text, range) {
|
|
466
466
|
_init_properties_HttpParser_kt__gbdom1();
|
|
467
|
-
var index = range.
|
|
468
|
-
var end = range.
|
|
467
|
+
var index = range.d4u_1;
|
|
468
|
+
var end = range.e4u_1;
|
|
469
469
|
while (index < end) {
|
|
470
470
|
var ch = text.b(index);
|
|
471
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
472
|
-
range.
|
|
471
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.d4u_1)) {
|
|
472
|
+
range.d4u_1 = index + 1 | 0;
|
|
473
473
|
return index;
|
|
474
474
|
}
|
|
475
475
|
if (isDelimiter(ch)) {
|
|
476
|
-
parseHeaderNameFailed(text, index, range.
|
|
476
|
+
parseHeaderNameFailed(text, index, range.d4u_1, ch);
|
|
477
477
|
}
|
|
478
478
|
index = index + 1 | 0;
|
|
479
479
|
}
|
|
@@ -481,12 +481,12 @@ function parseHeaderName(text, range) {
|
|
|
481
481
|
}
|
|
482
482
|
function parseHeaderValue(text, range) {
|
|
483
483
|
_init_properties_HttpParser_kt__gbdom1();
|
|
484
|
-
var start = range.
|
|
485
|
-
var end = range.
|
|
484
|
+
var start = range.d4u_1;
|
|
485
|
+
var end = range.e4u_1;
|
|
486
486
|
var index = start;
|
|
487
487
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
488
488
|
if (index >= end) {
|
|
489
|
-
range.
|
|
489
|
+
range.d4u_1 = end;
|
|
490
490
|
return Unit_instance;
|
|
491
491
|
}
|
|
492
492
|
var valueStart = index;
|
|
@@ -500,8 +500,8 @@ function parseHeaderValue(text, range) {
|
|
|
500
500
|
valueLastIndex = index;
|
|
501
501
|
index = index + 1 | 0;
|
|
502
502
|
}
|
|
503
|
-
range.
|
|
504
|
-
range.
|
|
503
|
+
range.d4u_1 = valueStart;
|
|
504
|
+
range.e4u_1 = valueLastIndex + 1 | 0;
|
|
505
505
|
}
|
|
506
506
|
function validateHostHeader(host) {
|
|
507
507
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -542,9 +542,9 @@ function parseHeaderNameFailed(text, index, start, ch) {
|
|
|
542
542
|
}
|
|
543
543
|
function noColonFound(text, range) {
|
|
544
544
|
_init_properties_HttpParser_kt__gbdom1();
|
|
545
|
-
var tmp2 = range.
|
|
545
|
+
var tmp2 = range.d4u_1;
|
|
546
546
|
// Inline function 'kotlin.text.substring' call
|
|
547
|
-
var endIndex = range.
|
|
547
|
+
var endIndex = range.e4u_1;
|
|
548
548
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
549
549
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
550
550
|
}
|
|
@@ -560,30 +560,30 @@ function ParserException(message) {
|
|
|
560
560
|
}
|
|
561
561
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
562
562
|
CoroutineImpl.call(this, resultContinuation);
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
563
|
+
this.y4t_1 = input;
|
|
564
|
+
this.z4t_1 = builder;
|
|
565
|
+
this.a4u_1 = range;
|
|
566
566
|
}
|
|
567
|
-
protoOf($parseHeadersCOROUTINE$).
|
|
568
|
-
var suspendResult = this.
|
|
567
|
+
protoOf($parseHeadersCOROUTINE$).e9 = function () {
|
|
568
|
+
var suspendResult = this.y8_1;
|
|
569
569
|
$sm: do
|
|
570
570
|
try {
|
|
571
|
-
var tmp = this.
|
|
571
|
+
var tmp = this.w8_1;
|
|
572
572
|
switch (tmp) {
|
|
573
573
|
case 0:
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
574
|
+
this.x8_1 = 7;
|
|
575
|
+
this.b4u_1 = new HttpHeadersMap(this.z4t_1);
|
|
576
|
+
this.x8_1 = 6;
|
|
577
|
+
this.w8_1 = 1;
|
|
578
578
|
continue $sm;
|
|
579
579
|
case 1:
|
|
580
580
|
if (!true) {
|
|
581
|
-
this.
|
|
581
|
+
this.w8_1 = 5;
|
|
582
582
|
continue $sm;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
this.
|
|
586
|
-
suspendResult = readLineStrictTo(this.
|
|
585
|
+
this.w8_1 = 2;
|
|
586
|
+
suspendResult = readLineStrictTo(this.y4t_1, this.z4t_1, new Long(8192, 0), VOID, this);
|
|
587
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
588
|
return suspendResult;
|
|
589
589
|
}
|
|
@@ -592,68 +592,68 @@ protoOf($parseHeadersCOROUTINE$).d9 = function () {
|
|
|
592
592
|
case 2:
|
|
593
593
|
var ARGUMENT = suspendResult;
|
|
594
594
|
if (equalsLong(ARGUMENT, new Long(-1, -1))) {
|
|
595
|
-
this.
|
|
595
|
+
this.b4u_1.u1a();
|
|
596
596
|
return null;
|
|
597
597
|
} else {
|
|
598
|
-
this.
|
|
598
|
+
this.w8_1 = 3;
|
|
599
599
|
continue $sm;
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
case 3:
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
if (this.
|
|
606
|
-
this.
|
|
603
|
+
this.a4u_1.e4u_1 = this.z4t_1.p4s_1;
|
|
604
|
+
this.c4u_1 = this.a4u_1.e4u_1 - this.a4u_1.d4u_1 | 0;
|
|
605
|
+
if (this.c4u_1 === 0) {
|
|
606
|
+
this.w8_1 = 5;
|
|
607
607
|
continue $sm;
|
|
608
608
|
} else {
|
|
609
|
-
this.
|
|
609
|
+
this.w8_1 = 4;
|
|
610
610
|
continue $sm;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
case 4:
|
|
614
|
-
if (this.
|
|
614
|
+
if (this.c4u_1 >= 8192) {
|
|
615
615
|
var message = 'Header line length limit exceeded';
|
|
616
616
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
-
var nameStart = this.
|
|
620
|
-
var nameEnd = parseHeaderName(this.
|
|
621
|
-
var headerEnd = this.
|
|
622
|
-
parseHeaderValue(this.
|
|
623
|
-
var valueStart = this.
|
|
624
|
-
var valueEnd = this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
619
|
+
var nameStart = this.a4u_1.d4u_1;
|
|
620
|
+
var nameEnd = parseHeaderName(this.z4t_1, this.a4u_1);
|
|
621
|
+
var headerEnd = this.a4u_1.e4u_1;
|
|
622
|
+
parseHeaderValue(this.z4t_1, this.a4u_1);
|
|
623
|
+
var valueStart = this.a4u_1.d4u_1;
|
|
624
|
+
var valueEnd = this.a4u_1.e4u_1;
|
|
625
|
+
this.a4u_1.d4u_1 = headerEnd;
|
|
626
|
+
this.b4u_1.g4s(nameStart, nameEnd, valueStart, valueEnd);
|
|
627
|
+
this.w8_1 = 1;
|
|
628
628
|
continue $sm;
|
|
629
629
|
case 5:
|
|
630
|
-
var host = this.
|
|
630
|
+
var host = this.b4u_1.td('Host');
|
|
631
631
|
if (!(host == null)) {
|
|
632
632
|
validateHostHeader(host);
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
return this.
|
|
635
|
+
return this.b4u_1;
|
|
636
636
|
case 6:
|
|
637
|
-
this.
|
|
638
|
-
var tmp_0 = this.
|
|
637
|
+
this.x8_1 = 7;
|
|
638
|
+
var tmp_0 = this.z8_1;
|
|
639
639
|
if (tmp_0 instanceof Error) {
|
|
640
|
-
var t = this.
|
|
641
|
-
this.
|
|
640
|
+
var t = this.z8_1;
|
|
641
|
+
this.b4u_1.u1a();
|
|
642
642
|
throw t;
|
|
643
643
|
} else {
|
|
644
|
-
throw this.
|
|
644
|
+
throw this.z8_1;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
case 7:
|
|
648
|
-
throw this.
|
|
648
|
+
throw this.z8_1;
|
|
649
649
|
}
|
|
650
650
|
} catch ($p) {
|
|
651
651
|
var e = $p;
|
|
652
|
-
if (this.
|
|
652
|
+
if (this.x8_1 === 7) {
|
|
653
653
|
throw e;
|
|
654
654
|
} else {
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
655
|
+
this.w8_1 = this.x8_1;
|
|
656
|
+
this.z8_1 = e;
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
while (true);
|
|
@@ -663,8 +663,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
663
663
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
664
664
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
665
665
|
hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
|
|
666
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().
|
|
667
|
-
versions = Companion_instance.
|
|
666
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().t3w_1, Companion_getInstance_0().s3w_1);
|
|
667
|
+
versions = Companion_instance.f4u(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
function get_CrLf() {
|
|
@@ -679,23 +679,23 @@ function get_PrefixString() {
|
|
|
679
679
|
var PrefixString;
|
|
680
680
|
function Preamble(body) {
|
|
681
681
|
MultipartEvent.call(this);
|
|
682
|
-
this.
|
|
682
|
+
this.g4u_1 = body;
|
|
683
683
|
}
|
|
684
684
|
function MultipartPart(headers, body) {
|
|
685
685
|
MultipartEvent.call(this);
|
|
686
|
-
this.
|
|
687
|
-
this.
|
|
686
|
+
this.h4u_1 = headers;
|
|
687
|
+
this.i4u_1 = body;
|
|
688
688
|
}
|
|
689
689
|
function Epilogue(body) {
|
|
690
690
|
MultipartEvent.call(this);
|
|
691
|
-
this.
|
|
691
|
+
this.j4u_1 = body;
|
|
692
692
|
}
|
|
693
693
|
function MultipartEvent() {
|
|
694
694
|
}
|
|
695
695
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
696
696
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
697
697
|
_init_properties_Multipart_kt__ato98a();
|
|
698
|
-
if (!MultiPart_getInstance().
|
|
698
|
+
if (!MultiPart_getInstance().v47(contentType)) {
|
|
699
699
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
700
700
|
}
|
|
701
701
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -843,21 +843,21 @@ function parsePreambleImpl(boundary, input, output, limit, $completion) {
|
|
|
843
843
|
}
|
|
844
844
|
function parsePartHeadersImpl(input, $completion) {
|
|
845
845
|
var tmp = new $parsePartHeadersImplCOROUTINE$(input, $completion);
|
|
846
|
-
tmp.
|
|
847
|
-
tmp.
|
|
848
|
-
return tmp.
|
|
846
|
+
tmp.y8_1 = Unit_instance;
|
|
847
|
+
tmp.z8_1 = null;
|
|
848
|
+
return tmp.e9();
|
|
849
849
|
}
|
|
850
850
|
function parsePartBodyImpl(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
851
851
|
var tmp = new $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, $completion);
|
|
852
|
-
tmp.
|
|
853
|
-
tmp.
|
|
854
|
-
return tmp.
|
|
852
|
+
tmp.y8_1 = Unit_instance;
|
|
853
|
+
tmp.z8_1 = null;
|
|
854
|
+
return tmp.e9();
|
|
855
855
|
}
|
|
856
856
|
function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
857
857
|
var tmp = new $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, $completion);
|
|
858
|
-
tmp.
|
|
859
|
-
tmp.
|
|
860
|
-
return tmp.
|
|
858
|
+
tmp.y8_1 = Unit_instance;
|
|
859
|
+
tmp.z8_1 = null;
|
|
860
|
+
return tmp.e9();
|
|
861
861
|
}
|
|
862
862
|
function throwLimitExceeded(actual, limit) {
|
|
863
863
|
_init_properties_Multipart_kt__ato98a();
|
|
@@ -872,37 +872,37 @@ function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
|
872
872
|
boundaryBytes[_unary__edvuaz] = value;
|
|
873
873
|
}
|
|
874
874
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
875
|
-
this.
|
|
876
|
-
this.
|
|
875
|
+
this.d4w_1 = $firstBoundary;
|
|
876
|
+
this.e4w_1 = $countedInput;
|
|
877
877
|
CoroutineImpl.call(this, resultContinuation);
|
|
878
878
|
}
|
|
879
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
880
|
-
var tmp = this.
|
|
881
|
-
tmp.
|
|
882
|
-
tmp.
|
|
883
|
-
return tmp.
|
|
879
|
+
protoOf(parseMultipart$slambda$slambda).g4w = function ($this$writer, $completion) {
|
|
880
|
+
var tmp = this.h4w($this$writer, $completion);
|
|
881
|
+
tmp.y8_1 = Unit_instance;
|
|
882
|
+
tmp.z8_1 = null;
|
|
883
|
+
return tmp.e9();
|
|
884
884
|
};
|
|
885
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
886
|
-
return this.
|
|
885
|
+
protoOf(parseMultipart$slambda$slambda).r9 = function (p1, $completion) {
|
|
886
|
+
return this.g4w(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
887
887
|
};
|
|
888
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
889
|
-
var suspendResult = this.
|
|
888
|
+
protoOf(parseMultipart$slambda$slambda).e9 = function () {
|
|
889
|
+
var suspendResult = this.y8_1;
|
|
890
890
|
$sm: do
|
|
891
891
|
try {
|
|
892
|
-
var tmp = this.
|
|
892
|
+
var tmp = this.w8_1;
|
|
893
893
|
switch (tmp) {
|
|
894
894
|
case 0:
|
|
895
|
-
this.
|
|
896
|
-
this.
|
|
897
|
-
suspendResult = parsePreambleImpl(this.
|
|
895
|
+
this.x8_1 = 3;
|
|
896
|
+
this.w8_1 = 1;
|
|
897
|
+
suspendResult = parsePreambleImpl(this.d4w_1, this.e4w_1, this.f4w_1.f3v_1, new Long(8193, 0), this);
|
|
898
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
899
|
return suspendResult;
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
continue $sm;
|
|
903
903
|
case 1:
|
|
904
|
-
this.
|
|
905
|
-
suspendResult = this.
|
|
904
|
+
this.w8_1 = 2;
|
|
905
|
+
suspendResult = this.f4w_1.f3v_1.d3o(this);
|
|
906
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
907
907
|
return suspendResult;
|
|
908
908
|
}
|
|
@@ -911,59 +911,59 @@ protoOf(parseMultipart$slambda$slambda).d9 = function () {
|
|
|
911
911
|
case 2:
|
|
912
912
|
return Unit_instance;
|
|
913
913
|
case 3:
|
|
914
|
-
throw this.
|
|
914
|
+
throw this.z8_1;
|
|
915
915
|
}
|
|
916
916
|
} catch ($p) {
|
|
917
917
|
var e = $p;
|
|
918
|
-
if (this.
|
|
918
|
+
if (this.x8_1 === 3) {
|
|
919
919
|
throw e;
|
|
920
920
|
} else {
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
921
|
+
this.w8_1 = this.x8_1;
|
|
922
|
+
this.z8_1 = e;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
while (true);
|
|
926
926
|
};
|
|
927
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
928
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
929
|
-
i.
|
|
927
|
+
protoOf(parseMultipart$slambda$slambda).h4w = function ($this$writer, completion) {
|
|
928
|
+
var i = new parseMultipart$slambda$slambda(this.d4w_1, this.e4w_1, completion);
|
|
929
|
+
i.f4w_1 = $this$writer;
|
|
930
930
|
return i;
|
|
931
931
|
};
|
|
932
932
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
933
933
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
934
934
|
return constructCallableReference(function ($this$writer, $completion) {
|
|
935
|
-
return i.
|
|
935
|
+
return i.g4w($this$writer, $completion);
|
|
936
936
|
}, 1);
|
|
937
937
|
}
|
|
938
938
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
939
|
+
this.q4w_1 = $input;
|
|
940
|
+
this.r4w_1 = $boundaryPrefixed;
|
|
941
|
+
this.s4w_1 = $maxPartSize;
|
|
942
|
+
this.t4w_1 = $totalLength;
|
|
943
943
|
CoroutineImpl.call(this, resultContinuation);
|
|
944
944
|
}
|
|
945
|
-
protoOf(parseMultipart$slambda).
|
|
946
|
-
var tmp = this.
|
|
947
|
-
tmp.
|
|
948
|
-
tmp.
|
|
949
|
-
return tmp.
|
|
945
|
+
protoOf(parseMultipart$slambda).c4x = function ($this$produce, $completion) {
|
|
946
|
+
var tmp = this.d4x($this$produce, $completion);
|
|
947
|
+
tmp.y8_1 = Unit_instance;
|
|
948
|
+
tmp.z8_1 = null;
|
|
949
|
+
return tmp.e9();
|
|
950
950
|
};
|
|
951
|
-
protoOf(parseMultipart$slambda).
|
|
952
|
-
return this.
|
|
951
|
+
protoOf(parseMultipart$slambda).r9 = function (p1, $completion) {
|
|
952
|
+
return this.c4x((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
953
953
|
};
|
|
954
|
-
protoOf(parseMultipart$slambda).
|
|
955
|
-
var suspendResult = this.
|
|
954
|
+
protoOf(parseMultipart$slambda).e9 = function () {
|
|
955
|
+
var suspendResult = this.y8_1;
|
|
956
956
|
$sm: do
|
|
957
957
|
try {
|
|
958
|
-
var tmp = this.
|
|
958
|
+
var tmp = this.w8_1;
|
|
959
959
|
switch (tmp) {
|
|
960
960
|
case 0:
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
966
|
-
suspendResult =
|
|
961
|
+
this.x8_1 = 25;
|
|
962
|
+
this.v4w_1 = counted(this.q4w_1);
|
|
963
|
+
this.w4w_1 = this.v4w_1.q3w();
|
|
964
|
+
this.a4x_1 = this.r4w_1.k3i(get_PrefixString().e1());
|
|
965
|
+
this.w8_1 = 1;
|
|
966
|
+
suspendResult = readBuffer(writer(this.u4w_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.a4x_1, this.v4w_1, null)).w3p_1, this);
|
|
967
967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
968
968
|
return suspendResult;
|
|
969
969
|
}
|
|
@@ -972,57 +972,57 @@ protoOf(parseMultipart$slambda).d9 = function () {
|
|
|
972
972
|
case 1:
|
|
973
973
|
var preambleData = suspendResult;
|
|
974
974
|
if (compare(get_remaining(preambleData), new Long(0, 0)) > 0) {
|
|
975
|
-
this.
|
|
976
|
-
suspendResult = this.
|
|
975
|
+
this.w8_1 = 2;
|
|
976
|
+
suspendResult = this.u4w_1.r25(new Preamble(preambleData), this);
|
|
977
977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
978
|
return suspendResult;
|
|
979
979
|
}
|
|
980
980
|
continue $sm;
|
|
981
981
|
} else {
|
|
982
|
-
this.
|
|
982
|
+
this.w8_1 = 3;
|
|
983
983
|
continue $sm;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
986
|
case 2:
|
|
987
|
-
this.
|
|
987
|
+
this.w8_1 = 3;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 3:
|
|
990
|
-
this.
|
|
990
|
+
this.w8_1 = 4;
|
|
991
991
|
continue $sm;
|
|
992
992
|
case 4:
|
|
993
|
-
if (!this.
|
|
994
|
-
this.
|
|
995
|
-
suspendResult = skipIfFound(this.
|
|
993
|
+
if (!this.v4w_1.a3o()) {
|
|
994
|
+
this.w8_1 = 5;
|
|
995
|
+
suspendResult = skipIfFound(this.v4w_1, get_PrefixString(), this);
|
|
996
996
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
997
997
|
return suspendResult;
|
|
998
998
|
}
|
|
999
999
|
continue $sm;
|
|
1000
1000
|
} else {
|
|
1001
|
-
this.
|
|
1002
|
-
this.
|
|
1001
|
+
this.b4x_1 = false;
|
|
1002
|
+
this.w8_1 = 6;
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
case 5:
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1007
|
+
this.b4x_1 = !suspendResult;
|
|
1008
|
+
this.w8_1 = 6;
|
|
1009
1009
|
continue $sm;
|
|
1010
1010
|
case 6:
|
|
1011
|
-
if (!this.
|
|
1012
|
-
this.
|
|
1011
|
+
if (!this.b4x_1) {
|
|
1012
|
+
this.w8_1 = 15;
|
|
1013
1013
|
continue $sm;
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
|
-
this.
|
|
1017
|
-
suspendResult = skipIfFound(this.
|
|
1016
|
+
this.w8_1 = 7;
|
|
1017
|
+
suspendResult = skipIfFound(this.v4w_1, get_CrLf(), this);
|
|
1018
1018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1019
|
return suspendResult;
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
1022
|
continue $sm;
|
|
1023
1023
|
case 7:
|
|
1024
|
-
this.
|
|
1025
|
-
suspendResult = skipIfFound(this.
|
|
1024
|
+
this.w8_1 = 8;
|
|
1025
|
+
suspendResult = skipIfFound(this.v4w_1, this.a4x_1, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1030,112 +1030,112 @@ protoOf(parseMultipart$slambda).d9 = function () {
|
|
|
1030
1030
|
continue $sm;
|
|
1031
1031
|
case 8:
|
|
1032
1032
|
if (suspendResult) {
|
|
1033
|
-
this.
|
|
1033
|
+
this.w8_1 = 4;
|
|
1034
1034
|
continue $sm;
|
|
1035
1035
|
} else {
|
|
1036
|
-
this.
|
|
1036
|
+
this.w8_1 = 9;
|
|
1037
1037
|
continue $sm;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
case 9:
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
var part = new MultipartPart(this.
|
|
1044
|
-
this.
|
|
1045
|
-
suspendResult = this.
|
|
1041
|
+
this.x4w_1 = new ByteChannel();
|
|
1042
|
+
this.z4w_1 = CompletableDeferred();
|
|
1043
|
+
var part = new MultipartPart(this.z4w_1, this.x4w_1);
|
|
1044
|
+
this.w8_1 = 10;
|
|
1045
|
+
suspendResult = this.u4w_1.r25(part, this);
|
|
1046
1046
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1047
1047
|
return suspendResult;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
1050
|
continue $sm;
|
|
1051
1051
|
case 10:
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1052
|
+
this.y4w_1 = null;
|
|
1053
|
+
this.x8_1 = 14;
|
|
1054
|
+
this.w8_1 = 11;
|
|
1055
|
+
suspendResult = parsePartHeadersImpl(this.v4w_1, this);
|
|
1056
1056
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1057
1057
|
return suspendResult;
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
case 11:
|
|
1062
|
-
this.
|
|
1063
|
-
if (!this.
|
|
1064
|
-
this.
|
|
1062
|
+
this.y4w_1 = suspendResult;
|
|
1063
|
+
if (!this.z4w_1.m1v(this.y4w_1)) {
|
|
1064
|
+
this.y4w_1.u1a();
|
|
1065
1065
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
|
-
this.
|
|
1069
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1068
|
+
this.w8_1 = 12;
|
|
1069
|
+
suspendResult = parsePartBodyImpl(this.r4w_1, this.v4w_1, this.x4w_1, this.y4w_1, this.s4w_1, this);
|
|
1070
1070
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1071
1071
|
return suspendResult;
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
1074
|
continue $sm;
|
|
1075
1075
|
case 12:
|
|
1076
|
-
this.
|
|
1077
|
-
this.
|
|
1078
|
-
this.
|
|
1076
|
+
this.x4w_1.e4();
|
|
1077
|
+
this.x8_1 = 25;
|
|
1078
|
+
this.w8_1 = 13;
|
|
1079
1079
|
continue $sm;
|
|
1080
1080
|
case 13:
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1081
|
+
this.x8_1 = 25;
|
|
1082
|
+
this.w8_1 = 4;
|
|
1083
1083
|
continue $sm;
|
|
1084
1084
|
case 14:
|
|
1085
|
-
this.
|
|
1086
|
-
var tmp_0 = this.
|
|
1085
|
+
this.x8_1 = 25;
|
|
1086
|
+
var tmp_0 = this.z8_1;
|
|
1087
1087
|
if (tmp_0 instanceof Error) {
|
|
1088
|
-
var cause = this.
|
|
1089
|
-
if (this.
|
|
1090
|
-
var tmp0_safe_receiver = this.
|
|
1088
|
+
var cause = this.z8_1;
|
|
1089
|
+
if (this.z4w_1.n1v(cause)) {
|
|
1090
|
+
var tmp0_safe_receiver = this.y4w_1;
|
|
1091
1091
|
if (tmp0_safe_receiver == null)
|
|
1092
1092
|
null;
|
|
1093
1093
|
else {
|
|
1094
|
-
tmp0_safe_receiver.
|
|
1094
|
+
tmp0_safe_receiver.u1a();
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
close(this.
|
|
1097
|
+
close(this.x4w_1, cause);
|
|
1098
1098
|
throw cause;
|
|
1099
1099
|
} else {
|
|
1100
|
-
throw this.
|
|
1100
|
+
throw this.z8_1;
|
|
1101
1101
|
}
|
|
1102
1102
|
|
|
1103
1103
|
case 15:
|
|
1104
|
-
this.
|
|
1105
|
-
suspendResult = skipIfFound(this.
|
|
1104
|
+
this.w8_1 = 16;
|
|
1105
|
+
suspendResult = skipIfFound(this.v4w_1, get_CrLf(), this);
|
|
1106
1106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1107
1107
|
return suspendResult;
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
1110
|
continue $sm;
|
|
1111
1111
|
case 16:
|
|
1112
|
-
this.
|
|
1113
|
-
suspendResult = skipIfFound(this.
|
|
1112
|
+
this.w8_1 = 17;
|
|
1113
|
+
suspendResult = skipIfFound(this.v4w_1, get_CrLf(), this);
|
|
1114
1114
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1115
1115
|
return suspendResult;
|
|
1116
1116
|
}
|
|
1117
1117
|
|
|
1118
1118
|
continue $sm;
|
|
1119
1119
|
case 17:
|
|
1120
|
-
if (!(this.
|
|
1121
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1122
|
-
var size = subtract(this.
|
|
1120
|
+
if (!(this.t4w_1 == null)) {
|
|
1121
|
+
var consumedExceptEpilogue = subtract(this.v4w_1.q3w(), this.w4w_1);
|
|
1122
|
+
var size = subtract(this.t4w_1, consumedExceptEpilogue);
|
|
1123
1123
|
if (compare(size, new Long(2147483647, 0)) > 0)
|
|
1124
1124
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1125
1125
|
if (compare(size, new Long(0, 0)) > 0) {
|
|
1126
|
-
this.
|
|
1127
|
-
suspendResult = readPacket(this.
|
|
1126
|
+
this.w8_1 = 21;
|
|
1127
|
+
suspendResult = readPacket(this.v4w_1, convertToInt(size), this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
} else {
|
|
1133
|
-
this.
|
|
1133
|
+
this.w8_1 = 23;
|
|
1134
1134
|
continue $sm;
|
|
1135
1135
|
}
|
|
1136
1136
|
} else {
|
|
1137
|
-
this.
|
|
1138
|
-
suspendResult =
|
|
1137
|
+
this.w8_1 = 18;
|
|
1138
|
+
suspendResult = readBuffer(this.v4w_1, this);
|
|
1139
1139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1140
1140
|
return suspendResult;
|
|
1141
1141
|
}
|
|
@@ -1144,83 +1144,83 @@ protoOf(parseMultipart$slambda).d9 = function () {
|
|
|
1144
1144
|
|
|
1145
1145
|
case 18:
|
|
1146
1146
|
var epilogueContent = suspendResult;
|
|
1147
|
-
if (!epilogueContent.
|
|
1148
|
-
this.
|
|
1149
|
-
suspendResult = this.
|
|
1147
|
+
if (!epilogueContent.s3i()) {
|
|
1148
|
+
this.w8_1 = 19;
|
|
1149
|
+
suspendResult = this.u4w_1.r25(new Epilogue(epilogueContent), this);
|
|
1150
1150
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1151
1151
|
return suspendResult;
|
|
1152
1152
|
}
|
|
1153
1153
|
continue $sm;
|
|
1154
1154
|
} else {
|
|
1155
|
-
this.
|
|
1155
|
+
this.w8_1 = 20;
|
|
1156
1156
|
continue $sm;
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
case 19:
|
|
1160
|
-
this.
|
|
1160
|
+
this.w8_1 = 20;
|
|
1161
1161
|
continue $sm;
|
|
1162
1162
|
case 20:
|
|
1163
|
-
this.
|
|
1163
|
+
this.w8_1 = 24;
|
|
1164
1164
|
continue $sm;
|
|
1165
1165
|
case 21:
|
|
1166
1166
|
var ARGUMENT = suspendResult;
|
|
1167
1167
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1168
|
-
this.
|
|
1169
|
-
suspendResult = this.
|
|
1168
|
+
this.w8_1 = 22;
|
|
1169
|
+
suspendResult = this.u4w_1.r25(ARGUMENT_0, this);
|
|
1170
1170
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1171
1171
|
return suspendResult;
|
|
1172
1172
|
}
|
|
1173
1173
|
|
|
1174
1174
|
continue $sm;
|
|
1175
1175
|
case 22:
|
|
1176
|
-
this.
|
|
1176
|
+
this.w8_1 = 23;
|
|
1177
1177
|
continue $sm;
|
|
1178
1178
|
case 23:
|
|
1179
|
-
this.
|
|
1179
|
+
this.w8_1 = 24;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 24:
|
|
1182
1182
|
return Unit_instance;
|
|
1183
1183
|
case 25:
|
|
1184
|
-
throw this.
|
|
1184
|
+
throw this.z8_1;
|
|
1185
1185
|
}
|
|
1186
1186
|
} catch ($p) {
|
|
1187
1187
|
var e = $p;
|
|
1188
|
-
if (this.
|
|
1188
|
+
if (this.x8_1 === 25) {
|
|
1189
1189
|
throw e;
|
|
1190
1190
|
} else {
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1191
|
+
this.w8_1 = this.x8_1;
|
|
1192
|
+
this.z8_1 = e;
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
while (true);
|
|
1196
1196
|
};
|
|
1197
|
-
protoOf(parseMultipart$slambda).
|
|
1198
|
-
var i = new parseMultipart$slambda(this.
|
|
1199
|
-
i.
|
|
1197
|
+
protoOf(parseMultipart$slambda).d4x = function ($this$produce, completion) {
|
|
1198
|
+
var i = new parseMultipart$slambda(this.q4w_1, this.r4w_1, this.s4w_1, this.t4w_1, completion);
|
|
1199
|
+
i.u4w_1 = $this$produce;
|
|
1200
1200
|
return i;
|
|
1201
1201
|
};
|
|
1202
1202
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1203
1203
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1204
1204
|
return constructCallableReference(function ($this$produce, $completion) {
|
|
1205
|
-
return i.
|
|
1205
|
+
return i.c4x($this$produce, $completion);
|
|
1206
1206
|
}, 1);
|
|
1207
1207
|
}
|
|
1208
1208
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1209
1209
|
CoroutineImpl.call(this, resultContinuation);
|
|
1210
|
-
this.
|
|
1210
|
+
this.s4u_1 = input;
|
|
1211
1211
|
}
|
|
1212
|
-
protoOf($parsePartHeadersImplCOROUTINE$).
|
|
1213
|
-
var suspendResult = this.
|
|
1212
|
+
protoOf($parsePartHeadersImplCOROUTINE$).e9 = function () {
|
|
1213
|
+
var suspendResult = this.y8_1;
|
|
1214
1214
|
$sm: do
|
|
1215
1215
|
try {
|
|
1216
|
-
var tmp = this.
|
|
1216
|
+
var tmp = this.w8_1;
|
|
1217
1217
|
switch (tmp) {
|
|
1218
1218
|
case 0:
|
|
1219
|
-
this.
|
|
1220
|
-
this.
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
suspendResult = parseHeaders(this.
|
|
1219
|
+
this.x8_1 = 3;
|
|
1220
|
+
this.t4u_1 = new CharArrayBuilder();
|
|
1221
|
+
this.x8_1 = 2;
|
|
1222
|
+
this.w8_1 = 1;
|
|
1223
|
+
suspendResult = parseHeaders(this.s4u_1, this.t4u_1, VOID, this);
|
|
1224
1224
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1225
1225
|
return suspendResult;
|
|
1226
1226
|
}
|
|
@@ -1237,75 +1237,75 @@ protoOf($parsePartHeadersImplCOROUTINE$).d9 = function () {
|
|
|
1237
1237
|
|
|
1238
1238
|
return tmp_0;
|
|
1239
1239
|
case 2:
|
|
1240
|
-
this.
|
|
1241
|
-
var tmp_1 = this.
|
|
1240
|
+
this.x8_1 = 3;
|
|
1241
|
+
var tmp_1 = this.z8_1;
|
|
1242
1242
|
if (tmp_1 instanceof Error) {
|
|
1243
|
-
var t = this.
|
|
1244
|
-
this.
|
|
1243
|
+
var t = this.z8_1;
|
|
1244
|
+
this.t4u_1.u1a();
|
|
1245
1245
|
throw t;
|
|
1246
1246
|
} else {
|
|
1247
|
-
throw this.
|
|
1247
|
+
throw this.z8_1;
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
1250
|
case 3:
|
|
1251
|
-
throw this.
|
|
1251
|
+
throw this.z8_1;
|
|
1252
1252
|
}
|
|
1253
1253
|
} catch ($p) {
|
|
1254
1254
|
var e = $p;
|
|
1255
|
-
if (this.
|
|
1255
|
+
if (this.x8_1 === 3) {
|
|
1256
1256
|
throw e;
|
|
1257
1257
|
} else {
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1258
|
+
this.w8_1 = this.x8_1;
|
|
1259
|
+
this.z8_1 = e;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
1262
1262
|
while (true);
|
|
1263
1263
|
};
|
|
1264
1264
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1265
1265
|
CoroutineImpl.call(this, resultContinuation);
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1271
|
-
}
|
|
1272
|
-
protoOf($parsePartBodyImplCOROUTINE$).
|
|
1273
|
-
var suspendResult = this.
|
|
1266
|
+
this.c4v_1 = boundaryPrefixed;
|
|
1267
|
+
this.d4v_1 = input;
|
|
1268
|
+
this.e4v_1 = output;
|
|
1269
|
+
this.f4v_1 = headers;
|
|
1270
|
+
this.g4v_1 = limit;
|
|
1271
|
+
}
|
|
1272
|
+
protoOf($parsePartBodyImplCOROUTINE$).e9 = function () {
|
|
1273
|
+
var suspendResult = this.y8_1;
|
|
1274
1274
|
$sm: do
|
|
1275
1275
|
try {
|
|
1276
|
-
var tmp = this.
|
|
1276
|
+
var tmp = this.w8_1;
|
|
1277
1277
|
switch (tmp) {
|
|
1278
1278
|
case 0:
|
|
1279
|
-
this.
|
|
1280
|
-
var tmp0_safe_receiver = this.
|
|
1279
|
+
this.x8_1 = 6;
|
|
1280
|
+
var tmp0_safe_receiver = this.f4v_1.td('Content-Length');
|
|
1281
1281
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1282
1282
|
if (contentLength == null) {
|
|
1283
|
-
this.
|
|
1284
|
-
suspendResult = readUntil(this.
|
|
1283
|
+
this.w8_1 = 3;
|
|
1284
|
+
suspendResult = readUntil(this.d4v_1, this.c4v_1, this.e4v_1, this.g4v_1, true, this);
|
|
1285
1285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1286
1286
|
return suspendResult;
|
|
1287
1287
|
}
|
|
1288
1288
|
continue $sm;
|
|
1289
1289
|
} else {
|
|
1290
|
-
var containsUpper = this.
|
|
1290
|
+
var containsUpper = this.g4v_1;
|
|
1291
1291
|
if (compare(new Long(0, 0), contentLength) <= 0 ? compare(contentLength, containsUpper) <= 0 : false) {
|
|
1292
|
-
this.
|
|
1293
|
-
suspendResult = copyTo(this.
|
|
1292
|
+
this.w8_1 = 1;
|
|
1293
|
+
suspendResult = copyTo(this.d4v_1, this.e4v_1, contentLength, this);
|
|
1294
1294
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1295
1295
|
return suspendResult;
|
|
1296
1296
|
}
|
|
1297
1297
|
continue $sm;
|
|
1298
1298
|
} else {
|
|
1299
1299
|
var tmp_0 = this;
|
|
1300
|
-
throwLimitExceeded(contentLength, this.
|
|
1300
|
+
throwLimitExceeded(contentLength, this.g4v_1);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
break;
|
|
1305
1305
|
case 1:
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1306
|
+
this.j4v_1 = suspendResult;
|
|
1307
|
+
this.w8_1 = 2;
|
|
1308
|
+
suspendResult = skipIfFoundReadCount(this.d4v_1, this.c4v_1, this);
|
|
1309
1309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1310
1310
|
return suspendResult;
|
|
1311
1311
|
}
|
|
@@ -1313,53 +1313,53 @@ protoOf($parsePartBodyImplCOROUTINE$).d9 = function () {
|
|
|
1313
1313
|
continue $sm;
|
|
1314
1314
|
case 2:
|
|
1315
1315
|
var ARGUMENT = suspendResult;
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1316
|
+
this.i4v_1 = add(this.j4v_1, ARGUMENT);
|
|
1317
|
+
this.w8_1 = 4;
|
|
1318
1318
|
continue $sm;
|
|
1319
1319
|
case 3:
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1320
|
+
this.i4v_1 = suspendResult;
|
|
1321
|
+
this.w8_1 = 4;
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
case 4:
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
suspendResult = this.
|
|
1324
|
+
this.h4v_1 = this.i4v_1;
|
|
1325
|
+
this.w8_1 = 5;
|
|
1326
|
+
suspendResult = this.e4v_1.v3n(this);
|
|
1327
1327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1328
1328
|
return suspendResult;
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
continue $sm;
|
|
1332
1332
|
case 5:
|
|
1333
|
-
return this.
|
|
1333
|
+
return this.h4v_1;
|
|
1334
1334
|
case 6:
|
|
1335
|
-
throw this.
|
|
1335
|
+
throw this.z8_1;
|
|
1336
1336
|
}
|
|
1337
1337
|
} catch ($p) {
|
|
1338
1338
|
var e = $p;
|
|
1339
|
-
if (this.
|
|
1339
|
+
if (this.x8_1 === 6) {
|
|
1340
1340
|
throw e;
|
|
1341
1341
|
} else {
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1342
|
+
this.w8_1 = this.x8_1;
|
|
1343
|
+
this.z8_1 = e;
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
while (true);
|
|
1347
1347
|
};
|
|
1348
1348
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1349
1349
|
CoroutineImpl.call(this, resultContinuation);
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1350
|
+
this.s4v_1 = _this__u8e3s4;
|
|
1351
|
+
this.t4v_1 = prefix;
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf($skipIfFoundReadCountCOROUTINE$).
|
|
1354
|
-
var suspendResult = this.
|
|
1353
|
+
protoOf($skipIfFoundReadCountCOROUTINE$).e9 = function () {
|
|
1354
|
+
var suspendResult = this.y8_1;
|
|
1355
1355
|
$sm: do
|
|
1356
1356
|
try {
|
|
1357
|
-
var tmp = this.
|
|
1357
|
+
var tmp = this.w8_1;
|
|
1358
1358
|
switch (tmp) {
|
|
1359
1359
|
case 0:
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
suspendResult = skipIfFound(this.
|
|
1360
|
+
this.x8_1 = 3;
|
|
1361
|
+
this.w8_1 = 1;
|
|
1362
|
+
suspendResult = skipIfFound(this.s4v_1, this.t4v_1, this);
|
|
1363
1363
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1364
1364
|
return suspendResult;
|
|
1365
1365
|
}
|
|
@@ -1368,28 +1368,28 @@ protoOf($skipIfFoundReadCountCOROUTINE$).d9 = function () {
|
|
|
1368
1368
|
case 1:
|
|
1369
1369
|
if (suspendResult) {
|
|
1370
1370
|
var tmp_0 = this;
|
|
1371
|
-
tmp_0.
|
|
1372
|
-
this.
|
|
1371
|
+
tmp_0.u4v_1 = fromInt(this.t4v_1.e1());
|
|
1372
|
+
this.w8_1 = 2;
|
|
1373
1373
|
continue $sm;
|
|
1374
1374
|
} else {
|
|
1375
1375
|
var tmp_1 = this;
|
|
1376
|
-
tmp_1.
|
|
1377
|
-
this.
|
|
1376
|
+
tmp_1.u4v_1 = new Long(0, 0);
|
|
1377
|
+
this.w8_1 = 2;
|
|
1378
1378
|
continue $sm;
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
1381
|
case 2:
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.u4v_1;
|
|
1383
1383
|
case 3:
|
|
1384
|
-
throw this.
|
|
1384
|
+
throw this.z8_1;
|
|
1385
1385
|
}
|
|
1386
1386
|
} catch ($p) {
|
|
1387
1387
|
var e = $p;
|
|
1388
|
-
if (this.
|
|
1388
|
+
if (this.x8_1 === 3) {
|
|
1389
1389
|
throw e;
|
|
1390
1390
|
} else {
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1391
|
+
this.w8_1 = this.x8_1;
|
|
1392
|
+
this.z8_1 = e;
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
while (true);
|
|
@@ -1411,11 +1411,11 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
1411
1411
|
var element = _iterator__ex2g4s.v();
|
|
1412
1412
|
var key = charAt(element, idx);
|
|
1413
1413
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1414
|
-
var value = destination.
|
|
1414
|
+
var value = destination.t2(key);
|
|
1415
1415
|
var tmp;
|
|
1416
1416
|
if (value == null) {
|
|
1417
1417
|
var answer = ArrayList_init_$Create$();
|
|
1418
|
-
destination.
|
|
1418
|
+
destination.c3(key, answer);
|
|
1419
1419
|
tmp = answer;
|
|
1420
1420
|
} else {
|
|
1421
1421
|
tmp = value;
|
|
@@ -1429,7 +1429,7 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
1429
1429
|
while (_iterator__ex2g4s_0.u()) {
|
|
1430
1430
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
1431
1431
|
// Inline function 'kotlin.collections.component1' call
|
|
1432
|
-
var ch = element_0.o1().
|
|
1432
|
+
var ch = element_0.o1().a2_1;
|
|
1433
1433
|
// Inline function 'kotlin.collections.component2' call
|
|
1434
1434
|
var list_0 = element_0.p1();
|
|
1435
1435
|
var nextIdx = idx + 1 | 0;
|
|
@@ -1446,7 +1446,7 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
1449
|
-
children.
|
|
1449
|
+
children.p5();
|
|
1450
1450
|
// Inline function 'kotlin.collections.filter' call
|
|
1451
1451
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1452
1452
|
var destination_1 = ArrayList_init_$Create$();
|
|
@@ -1467,16 +1467,16 @@ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
|
|
|
1467
1467
|
return new Char(charSequenceGet(s, idx));
|
|
1468
1468
|
}
|
|
1469
1469
|
function Node(ch, exact, children) {
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1470
|
+
this.e4x_1 = ch;
|
|
1471
|
+
this.f4x_1 = exact;
|
|
1472
|
+
this.g4x_1 = children;
|
|
1473
1473
|
var tmp = this;
|
|
1474
1474
|
var tmp_0 = 0;
|
|
1475
1475
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1476
1476
|
var tmp_1 = Array(256);
|
|
1477
1477
|
while (tmp_0 < 256) {
|
|
1478
1478
|
var tmp_2 = tmp_0;
|
|
1479
|
-
var tmp0 = this.
|
|
1479
|
+
var tmp0 = this.g4x_1;
|
|
1480
1480
|
var tmp$ret$2;
|
|
1481
1481
|
$l$block_0: {
|
|
1482
1482
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1486,7 +1486,7 @@ function Node(ch, exact, children) {
|
|
|
1486
1486
|
while (_iterator__ex2g4s.u()) {
|
|
1487
1487
|
var element = _iterator__ex2g4s.v();
|
|
1488
1488
|
// Inline function 'kotlin.code' call
|
|
1489
|
-
var this_0 = element.
|
|
1489
|
+
var this_0 = element.e4x_1;
|
|
1490
1490
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1491
1491
|
if (found) {
|
|
1492
1492
|
tmp$ret$2 = null;
|
|
@@ -1505,15 +1505,15 @@ function Node(ch, exact, children) {
|
|
|
1505
1505
|
tmp_1[tmp_2] = tmp$ret$2;
|
|
1506
1506
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1507
1507
|
}
|
|
1508
|
-
tmp.
|
|
1508
|
+
tmp.h4x_1 = tmp_1;
|
|
1509
1509
|
}
|
|
1510
1510
|
function Companion() {
|
|
1511
1511
|
}
|
|
1512
|
-
protoOf(Companion).
|
|
1512
|
+
protoOf(Companion).f4u = function (from) {
|
|
1513
1513
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1514
|
-
return this.
|
|
1514
|
+
return this.i4x(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1515
1515
|
};
|
|
1516
|
-
protoOf(Companion).
|
|
1516
|
+
protoOf(Companion).i4x = function (from, length, charAt) {
|
|
1517
1517
|
var tmp$ret$0;
|
|
1518
1518
|
$l$block_0: {
|
|
1519
1519
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1582,7 +1582,7 @@ protoOf(Companion).u4t = function (from, length, charAt) {
|
|
|
1582
1582
|
throw IllegalArgumentException_init_$Create$('There should be no empty entries');
|
|
1583
1583
|
var root = ArrayList_init_$Create$();
|
|
1584
1584
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
1585
|
-
root.
|
|
1585
|
+
root.p5();
|
|
1586
1586
|
return new AsciiCharTree(new Node(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
1587
1587
|
};
|
|
1588
1588
|
var Companion_instance;
|
|
@@ -1590,10 +1590,10 @@ function Companion_getInstance_1() {
|
|
|
1590
1590
|
return Companion_instance;
|
|
1591
1591
|
}
|
|
1592
1592
|
function AsciiCharTree(root) {
|
|
1593
|
-
this.
|
|
1593
|
+
this.j4x_1 = root;
|
|
1594
1594
|
}
|
|
1595
1595
|
function getImpl($this, index) {
|
|
1596
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1596
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.l4s_1).length | 0];
|
|
1597
1597
|
}
|
|
1598
1598
|
function copy($this, startIndex, endIndex) {
|
|
1599
1599
|
if (startIndex === endIndex)
|
|
@@ -1622,27 +1622,27 @@ function copy($this, startIndex, endIndex) {
|
|
|
1622
1622
|
return builder;
|
|
1623
1623
|
}
|
|
1624
1624
|
function SubSequenceImpl($outer, start, end) {
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1625
|
+
this.n4x_1 = $outer;
|
|
1626
|
+
this.k4x_1 = start;
|
|
1627
|
+
this.l4x_1 = end;
|
|
1628
|
+
this.m4x_1 = null;
|
|
1629
1629
|
}
|
|
1630
1630
|
protoOf(SubSequenceImpl).a = function () {
|
|
1631
|
-
return this.
|
|
1631
|
+
return this.l4x_1 - this.k4x_1 | 0;
|
|
1632
1632
|
};
|
|
1633
1633
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1634
|
-
var withOffset = index + this.
|
|
1634
|
+
var withOffset = index + this.k4x_1 | 0;
|
|
1635
1635
|
// Inline function 'kotlin.require' call
|
|
1636
1636
|
if (!(index >= 0)) {
|
|
1637
1637
|
var message = 'index is negative: ' + index;
|
|
1638
1638
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1639
1639
|
}
|
|
1640
1640
|
// Inline function 'kotlin.require' call
|
|
1641
|
-
if (!(withOffset < this.
|
|
1641
|
+
if (!(withOffset < this.l4x_1)) {
|
|
1642
1642
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1643
1643
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1644
1644
|
}
|
|
1645
|
-
return getImpl(this.
|
|
1645
|
+
return getImpl(this.n4x_1, withOffset);
|
|
1646
1646
|
};
|
|
1647
1647
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1648
1648
|
// Inline function 'kotlin.require' call
|
|
@@ -1656,21 +1656,21 @@ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
|
1656
1656
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1657
1657
|
}
|
|
1658
1658
|
// Inline function 'kotlin.require' call
|
|
1659
|
-
if (!(endIndex <= (this.
|
|
1659
|
+
if (!(endIndex <= (this.l4x_1 - this.k4x_1 | 0))) {
|
|
1660
1660
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1661
1661
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1662
1662
|
}
|
|
1663
1663
|
if (startIndex === endIndex)
|
|
1664
1664
|
return '';
|
|
1665
|
-
return new SubSequenceImpl(this.
|
|
1665
|
+
return new SubSequenceImpl(this.n4x_1, this.k4x_1 + startIndex | 0, this.k4x_1 + endIndex | 0);
|
|
1666
1666
|
};
|
|
1667
1667
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1668
|
-
var tmp0_elvis_lhs = this.
|
|
1668
|
+
var tmp0_elvis_lhs = this.m4x_1;
|
|
1669
1669
|
var tmp;
|
|
1670
1670
|
if (tmp0_elvis_lhs == null) {
|
|
1671
1671
|
// Inline function 'kotlin.also' call
|
|
1672
|
-
var this_0 = toString(copy(this.
|
|
1673
|
-
this.
|
|
1672
|
+
var this_0 = toString(copy(this.n4x_1, this.k4x_1, this.l4x_1));
|
|
1673
|
+
this.m4x_1 = this_0;
|
|
1674
1674
|
tmp = this_0;
|
|
1675
1675
|
} else {
|
|
1676
1676
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1682,20 +1682,20 @@ protoOf(SubSequenceImpl).equals = function (other) {
|
|
|
1682
1682
|
return false;
|
|
1683
1683
|
if (!(charSequenceLength(other) === this.a()))
|
|
1684
1684
|
return false;
|
|
1685
|
-
return rangeEqualsImpl(this.
|
|
1685
|
+
return rangeEqualsImpl(this.n4x_1, this.k4x_1, other, 0, this.a());
|
|
1686
1686
|
};
|
|
1687
1687
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1688
|
-
var tmp0_safe_receiver = this.
|
|
1688
|
+
var tmp0_safe_receiver = this.m4x_1;
|
|
1689
1689
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1690
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1690
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.n4x_1, this.k4x_1, this.l4x_1) : tmp1_elvis_lhs;
|
|
1691
1691
|
};
|
|
1692
1692
|
function bufferForIndex($this, index) {
|
|
1693
|
-
var list = $this.
|
|
1693
|
+
var list = $this.k4s_1;
|
|
1694
1694
|
if (list == null) {
|
|
1695
1695
|
if (index >= 2048) {
|
|
1696
1696
|
throwSingleBuffer($this, index);
|
|
1697
1697
|
}
|
|
1698
|
-
var tmp0_elvis_lhs = $this.
|
|
1698
|
+
var tmp0_elvis_lhs = $this.l4s_1;
|
|
1699
1699
|
var tmp;
|
|
1700
1700
|
if (tmp0_elvis_lhs == null) {
|
|
1701
1701
|
throwSingleBuffer($this, index);
|
|
@@ -1704,29 +1704,29 @@ function bufferForIndex($this, index) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
return tmp;
|
|
1706
1706
|
}
|
|
1707
|
-
return list.f1(index / ensureNotNull($this.
|
|
1707
|
+
return list.f1(index / ensureNotNull($this.l4s_1).length | 0);
|
|
1708
1708
|
}
|
|
1709
1709
|
function throwSingleBuffer($this, index) {
|
|
1710
|
-
if ($this.
|
|
1710
|
+
if ($this.n4s_1)
|
|
1711
1711
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1712
1712
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1713
1713
|
}
|
|
1714
1714
|
function nonFullBuffer($this) {
|
|
1715
|
-
return $this.
|
|
1715
|
+
return $this.o4s_1 === 0 ? appendNewArray($this) : ensureNotNull($this.l4s_1);
|
|
1716
1716
|
}
|
|
1717
1717
|
function appendNewArray($this) {
|
|
1718
|
-
var newBuffer = $this.
|
|
1719
|
-
var existing = $this.
|
|
1720
|
-
$this.
|
|
1721
|
-
$this.
|
|
1722
|
-
$this.
|
|
1718
|
+
var newBuffer = $this.j4s_1.n3x();
|
|
1719
|
+
var existing = $this.l4s_1;
|
|
1720
|
+
$this.l4s_1 = newBuffer;
|
|
1721
|
+
$this.o4s_1 = newBuffer.length;
|
|
1722
|
+
$this.n4s_1 = false;
|
|
1723
1723
|
if (!(existing == null)) {
|
|
1724
|
-
var tmp0_elvis_lhs = $this.
|
|
1724
|
+
var tmp0_elvis_lhs = $this.k4s_1;
|
|
1725
1725
|
var tmp;
|
|
1726
1726
|
if (tmp0_elvis_lhs == null) {
|
|
1727
1727
|
// Inline function 'kotlin.also' call
|
|
1728
1728
|
var this_0 = ArrayList_init_$Create$();
|
|
1729
|
-
$this.
|
|
1729
|
+
$this.k4s_1 = this_0;
|
|
1730
1730
|
this_0.b1(existing);
|
|
1731
1731
|
tmp = this_0;
|
|
1732
1732
|
} else {
|
|
@@ -1765,20 +1765,20 @@ function hashCodeImpl($this, start, end) {
|
|
|
1765
1765
|
return hc;
|
|
1766
1766
|
}
|
|
1767
1767
|
function currentPosition($this) {
|
|
1768
|
-
return ensureNotNull($this.
|
|
1768
|
+
return ensureNotNull($this.l4s_1).length - $this.o4s_1 | 0;
|
|
1769
1769
|
}
|
|
1770
1770
|
function CharArrayBuilder(pool) {
|
|
1771
1771
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
this.
|
|
1777
|
-
this.
|
|
1778
|
-
this.
|
|
1772
|
+
this.j4s_1 = pool;
|
|
1773
|
+
this.k4s_1 = null;
|
|
1774
|
+
this.l4s_1 = null;
|
|
1775
|
+
this.m4s_1 = null;
|
|
1776
|
+
this.n4s_1 = false;
|
|
1777
|
+
this.o4s_1 = 0;
|
|
1778
|
+
this.p4s_1 = 0;
|
|
1779
1779
|
}
|
|
1780
1780
|
protoOf(CharArrayBuilder).a = function () {
|
|
1781
|
-
return this.
|
|
1781
|
+
return this.p4s_1;
|
|
1782
1782
|
};
|
|
1783
1783
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1784
1784
|
// Inline function 'kotlin.require' call
|
|
@@ -1787,8 +1787,8 @@ protoOf(CharArrayBuilder).b = function (index) {
|
|
|
1787
1787
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1788
1788
|
}
|
|
1789
1789
|
// Inline function 'kotlin.require' call
|
|
1790
|
-
if (!(index < this.
|
|
1791
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1790
|
+
if (!(index < this.p4s_1)) {
|
|
1791
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.p4s_1 + ')';
|
|
1792
1792
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1793
1793
|
}
|
|
1794
1794
|
return getImpl(this, index);
|
|
@@ -1805,19 +1805,19 @@ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
|
|
|
1805
1805
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1806
1806
|
}
|
|
1807
1807
|
// Inline function 'kotlin.require' call
|
|
1808
|
-
if (!(endIndex <= this.
|
|
1809
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1808
|
+
if (!(endIndex <= this.p4s_1)) {
|
|
1809
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.p4s_1 + ')';
|
|
1810
1810
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1811
1811
|
}
|
|
1812
1812
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1813
1813
|
};
|
|
1814
1814
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1815
|
-
var tmp0_elvis_lhs = this.
|
|
1815
|
+
var tmp0_elvis_lhs = this.m4s_1;
|
|
1816
1816
|
var tmp;
|
|
1817
1817
|
if (tmp0_elvis_lhs == null) {
|
|
1818
1818
|
// Inline function 'kotlin.also' call
|
|
1819
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1820
|
-
this.
|
|
1819
|
+
var this_0 = toString(copy(this, 0, this.p4s_1));
|
|
1820
|
+
this.m4s_1 = this_0;
|
|
1821
1821
|
tmp = this_0;
|
|
1822
1822
|
} else {
|
|
1823
1823
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1827,32 +1827,32 @@ protoOf(CharArrayBuilder).toString = function () {
|
|
|
1827
1827
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1828
1828
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1829
1829
|
return false;
|
|
1830
|
-
if (!(this.
|
|
1830
|
+
if (!(this.p4s_1 === charSequenceLength(other)))
|
|
1831
1831
|
return false;
|
|
1832
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1832
|
+
return rangeEqualsImpl(this, 0, other, 0, this.p4s_1);
|
|
1833
1833
|
};
|
|
1834
1834
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1835
|
-
var tmp0_safe_receiver = this.
|
|
1835
|
+
var tmp0_safe_receiver = this.m4s_1;
|
|
1836
1836
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1837
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1837
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.p4s_1) : tmp1_elvis_lhs;
|
|
1838
1838
|
};
|
|
1839
1839
|
protoOf(CharArrayBuilder).s = function (value) {
|
|
1840
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1841
|
-
this.
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1840
|
+
nonFullBuffer(this)[ensureNotNull(this.l4s_1).length - this.o4s_1 | 0] = value;
|
|
1841
|
+
this.m4s_1 = null;
|
|
1842
|
+
this.o4s_1 = this.o4s_1 - 1 | 0;
|
|
1843
|
+
this.p4s_1 = this.p4s_1 + 1 | 0;
|
|
1844
1844
|
return this;
|
|
1845
1845
|
};
|
|
1846
|
-
protoOf(CharArrayBuilder).
|
|
1846
|
+
protoOf(CharArrayBuilder).kc = function (value, startIndex, endIndex) {
|
|
1847
1847
|
if (value == null)
|
|
1848
1848
|
return this;
|
|
1849
1849
|
var current = startIndex;
|
|
1850
1850
|
while (current < endIndex) {
|
|
1851
1851
|
var buffer = nonFullBuffer(this);
|
|
1852
|
-
var offset = buffer.length - this.
|
|
1852
|
+
var offset = buffer.length - this.o4s_1 | 0;
|
|
1853
1853
|
var tmp0 = endIndex - current | 0;
|
|
1854
1854
|
// Inline function 'kotlin.math.min' call
|
|
1855
|
-
var b = this.
|
|
1855
|
+
var b = this.o4s_1;
|
|
1856
1856
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1857
1857
|
var inductionVariable = 0;
|
|
1858
1858
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1863,45 +1863,45 @@ protoOf(CharArrayBuilder).jc = function (value, startIndex, endIndex) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
while (inductionVariable < bytesToCopy);
|
|
1865
1865
|
current = current + bytesToCopy | 0;
|
|
1866
|
-
this.
|
|
1866
|
+
this.o4s_1 = this.o4s_1 - bytesToCopy | 0;
|
|
1867
1867
|
}
|
|
1868
|
-
this.
|
|
1869
|
-
this.
|
|
1868
|
+
this.m4s_1 = null;
|
|
1869
|
+
this.p4s_1 = this.p4s_1 + (endIndex - startIndex | 0) | 0;
|
|
1870
1870
|
return this;
|
|
1871
1871
|
};
|
|
1872
1872
|
protoOf(CharArrayBuilder).c1 = function (value) {
|
|
1873
1873
|
if (value == null)
|
|
1874
1874
|
return this;
|
|
1875
|
-
return this.
|
|
1875
|
+
return this.kc(value, 0, charSequenceLength(value));
|
|
1876
1876
|
};
|
|
1877
|
-
protoOf(CharArrayBuilder).
|
|
1878
|
-
var list = this.
|
|
1877
|
+
protoOf(CharArrayBuilder).u1a = function () {
|
|
1878
|
+
var list = this.k4s_1;
|
|
1879
1879
|
if (!(list == null)) {
|
|
1880
|
-
this.
|
|
1880
|
+
this.l4s_1 = null;
|
|
1881
1881
|
var inductionVariable = 0;
|
|
1882
1882
|
var last = list.e1();
|
|
1883
1883
|
if (inductionVariable < last)
|
|
1884
1884
|
do {
|
|
1885
1885
|
var i = inductionVariable;
|
|
1886
1886
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1887
|
-
this.
|
|
1887
|
+
this.j4s_1.o3x(list.f1(i));
|
|
1888
1888
|
}
|
|
1889
1889
|
while (inductionVariable < last);
|
|
1890
1890
|
} else {
|
|
1891
|
-
var tmp0_safe_receiver = this.
|
|
1891
|
+
var tmp0_safe_receiver = this.l4s_1;
|
|
1892
1892
|
if (tmp0_safe_receiver == null)
|
|
1893
1893
|
null;
|
|
1894
1894
|
else {
|
|
1895
1895
|
// Inline function 'kotlin.let' call
|
|
1896
|
-
this.
|
|
1896
|
+
this.j4s_1.o3x(tmp0_safe_receiver);
|
|
1897
1897
|
}
|
|
1898
|
-
this.
|
|
1898
|
+
this.l4s_1 = null;
|
|
1899
1899
|
}
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1903
|
-
this.
|
|
1904
|
-
this.
|
|
1900
|
+
this.n4s_1 = true;
|
|
1901
|
+
this.k4s_1 = null;
|
|
1902
|
+
this.m4s_1 = null;
|
|
1903
|
+
this.p4s_1 = 0;
|
|
1904
|
+
this.o4s_1 = 0;
|
|
1905
1905
|
};
|
|
1906
1906
|
function get_CharArrayPool() {
|
|
1907
1907
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1911,13 +1911,13 @@ var CharArrayPool;
|
|
|
1911
1911
|
function CharArrayPool$1() {
|
|
1912
1912
|
NoPoolImpl.call(this);
|
|
1913
1913
|
}
|
|
1914
|
-
protoOf(CharArrayPool$1).
|
|
1914
|
+
protoOf(CharArrayPool$1).n3x = function () {
|
|
1915
1915
|
return charArray(2048);
|
|
1916
1916
|
};
|
|
1917
1917
|
function CharArrayPool$2() {
|
|
1918
1918
|
DefaultPool.call(this, 4096);
|
|
1919
1919
|
}
|
|
1920
|
-
protoOf(CharArrayPool$2).
|
|
1920
|
+
protoOf(CharArrayPool$2).g3x = function () {
|
|
1921
1921
|
return charArray(2048);
|
|
1922
1922
|
};
|
|
1923
1923
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2108,20 +2108,20 @@ function numberFormatException_0(cs, idx) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
function DefaultHttpMethods$lambda(it) {
|
|
2110
2110
|
_init_properties_Chars_kt__d3i39x();
|
|
2111
|
-
return it.
|
|
2111
|
+
return it.h4d_1.length;
|
|
2112
2112
|
}
|
|
2113
2113
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2114
2114
|
_init_properties_Chars_kt__d3i39x();
|
|
2115
|
-
return new Char(charCodeAt(m.
|
|
2115
|
+
return new Char(charCodeAt(m.h4d_1, idx));
|
|
2116
2116
|
}
|
|
2117
2117
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2118
2118
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2119
2119
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2120
2120
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2121
2121
|
var tmp = Companion_instance;
|
|
2122
|
-
var tmp_0 = Companion_getInstance().
|
|
2122
|
+
var tmp_0 = Companion_getInstance().g4d_1;
|
|
2123
2123
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2124
|
-
DefaultHttpMethods = tmp.
|
|
2124
|
+
DefaultHttpMethods = tmp.i4x(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2125
2125
|
// Inline function 'kotlin.collections.map' call
|
|
2126
2126
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2127
2127
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2222,11 +2222,11 @@ function UnsupportedMediaTypeExceptionCIO(message) {
|
|
|
2222
2222
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2223
2223
|
}
|
|
2224
2224
|
function MutableRange(start, end) {
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2225
|
+
this.d4u_1 = start;
|
|
2226
|
+
this.e4u_1 = end;
|
|
2227
2227
|
}
|
|
2228
2228
|
protoOf(MutableRange).toString = function () {
|
|
2229
|
-
return 'MutableRange(start=' + this.
|
|
2229
|
+
return 'MutableRange(start=' + this.d4u_1 + ', end=' + this.e4u_1 + ')';
|
|
2230
2230
|
};
|
|
2231
2231
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2232
2232
|
var index = start;
|