@dmarket/p2p-tracker-core 1.4.1-SNAPSHOT-development.271 → 1.5.0-beta
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/dmarket-p2p-tracker-core-domain.mjs +5238 -5319
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1353 -1764
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2116 -2116
- 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 +451 -451
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1787 -1716
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1400 -1400
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +1963 -1963
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +320 -320
- package/ktor-ktor-http.mjs +787 -1735
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +628 -628
- package/ktor-ktor-utils.mjs +722 -725
- package/ktor-ktor-websockets.mjs +389 -389
- package/p2p-tracker-core.mjs +9982 -9486
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-http-cio.mjs
CHANGED
|
@@ -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.j51_1 = coroutineContext;
|
|
150
|
+
this.k51_1 = null;
|
|
151
|
+
this.l51_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
152
152
|
}
|
|
153
|
-
protoOf(CIOMultipartDataBase).
|
|
154
|
-
return this.
|
|
153
|
+
protoOf(CIOMultipartDataBase).p1p = function () {
|
|
154
|
+
return this.j51_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.n51_1 >= $this.o51_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.n51_1;
|
|
171
|
+
var prevData = $this.p51_1;
|
|
172
|
+
$this.n51_1 = 0;
|
|
173
|
+
$this.o51_1 = imul($this.o51_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().c47();
|
|
177
|
+
this_0.s51(imul(prevData.r51(), 2) | 1);
|
|
178
|
+
tmp.p51_1 = this_0;
|
|
179
|
+
var _iterator__ex2g4s = prevData.t51().t();
|
|
180
180
|
while (_iterator__ex2g4s.u()) {
|
|
181
181
|
var headerOffset = _iterator__ex2g4s.v();
|
|
182
|
-
$this.
|
|
182
|
+
$this.v51(prevData.u51(headerOffset + 1 | 0), prevData.u51(headerOffset + 2 | 0), prevData.u51(headerOffset + 3 | 0), prevData.u51(headerOffset + 4 | 0));
|
|
183
183
|
}
|
|
184
|
-
get_HeadersDataPool().
|
|
184
|
+
get_HeadersDataPool().d47(prevData);
|
|
185
185
|
// Inline function 'kotlin.require' call
|
|
186
186
|
// Inline function 'kotlin.require' call
|
|
187
|
-
if (!(prevSize === $this.
|
|
187
|
+
if (!(prevSize === $this.n51_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.p51_1.u51(headerOffset + 1 | 0);
|
|
194
|
+
var nameEndIndex = $this.p51_1.u51(headerOffset + 2 | 0);
|
|
195
|
+
return equalsLowerCase($this.m51_1, nameStartIndex, nameEndIndex, name);
|
|
196
196
|
}
|
|
197
197
|
function HttpHeadersMap(builder) {
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
198
|
+
this.m51_1 = builder;
|
|
199
|
+
this.n51_1 = 0;
|
|
200
|
+
this.o51_1 = 0;
|
|
201
|
+
this.p51_1 = get_HeadersDataPool().c47();
|
|
202
202
|
}
|
|
203
|
-
protoOf(HttpHeadersMap).
|
|
204
|
-
if (this.
|
|
203
|
+
protoOf(HttpHeadersMap).yd = function (name) {
|
|
204
|
+
if (this.n51_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.o51_1 | 0;
|
|
210
|
+
while (!(this.p51_1.u51(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
211
211
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
212
|
-
return this.
|
|
212
|
+
return this.w51(imul(headerIndex, 6));
|
|
213
213
|
}
|
|
214
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
214
|
+
headerIndex = (headerIndex + 1 | 0) % this.o51_1 | 0;
|
|
215
215
|
}
|
|
216
216
|
return null;
|
|
217
217
|
};
|
|
218
|
-
protoOf(HttpHeadersMap).
|
|
219
|
-
return this.
|
|
218
|
+
protoOf(HttpHeadersMap).x51 = function () {
|
|
219
|
+
return this.p51_1.t51();
|
|
220
220
|
};
|
|
221
|
-
protoOf(HttpHeadersMap).
|
|
221
|
+
protoOf(HttpHeadersMap).v51 = 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.m51_1, nameStartIndex, nameEndIndex);
|
|
227
227
|
var hash = abs(this_0);
|
|
228
|
-
var name = this.
|
|
229
|
-
var headerIndex = hash % this.
|
|
228
|
+
var name = this.m51_1.c(nameStartIndex, nameEndIndex);
|
|
229
|
+
var headerIndex = hash % this.o51_1 | 0;
|
|
230
230
|
var sameNameHeaderIndex = -1;
|
|
231
|
-
while (!(this.
|
|
231
|
+
while (!(this.p51_1.u51(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.o51_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.p51_1.f52(headerOffset + 0 | 0, hash);
|
|
239
|
+
this.p51_1.f52(headerOffset + 1 | 0, nameStartIndex);
|
|
240
|
+
this.p51_1.f52(headerOffset + 2 | 0, nameEndIndex);
|
|
241
|
+
this.p51_1.f52(headerOffset + 3 | 0, valueStartIndex);
|
|
242
|
+
this.p51_1.f52(headerOffset + 4 | 0, valueEndIndex);
|
|
243
|
+
this.p51_1.f52(headerOffset + 5 | 0, -1);
|
|
244
244
|
if (!(sameNameHeaderIndex === -1)) {
|
|
245
|
-
this.
|
|
245
|
+
this.p51_1.f52(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
246
246
|
}
|
|
247
|
-
this.
|
|
247
|
+
this.n51_1 = this.n51_1 + 1 | 0;
|
|
248
248
|
};
|
|
249
|
-
protoOf(HttpHeadersMap).
|
|
250
|
-
var nameStartIndex = this.
|
|
251
|
-
var nameEndIndex = this.
|
|
252
|
-
return this.
|
|
249
|
+
protoOf(HttpHeadersMap).g52 = function (headerOffset) {
|
|
250
|
+
var nameStartIndex = this.p51_1.u51(headerOffset + 1 | 0);
|
|
251
|
+
var nameEndIndex = this.p51_1.u51(headerOffset + 2 | 0);
|
|
252
|
+
return this.m51_1.c(nameStartIndex, nameEndIndex);
|
|
253
253
|
};
|
|
254
|
-
protoOf(HttpHeadersMap).
|
|
255
|
-
var valueStartIndex = this.
|
|
256
|
-
var valueEndIndex = this.
|
|
257
|
-
return this.
|
|
254
|
+
protoOf(HttpHeadersMap).w51 = function (headerOffset) {
|
|
255
|
+
var valueStartIndex = this.p51_1.u51(headerOffset + 3 | 0);
|
|
256
|
+
var valueEndIndex = this.p51_1.u51(headerOffset + 4 | 0);
|
|
257
|
+
return this.m51_1.c(valueStartIndex, valueEndIndex);
|
|
258
258
|
};
|
|
259
|
-
protoOf(HttpHeadersMap).
|
|
260
|
-
this.
|
|
261
|
-
this.
|
|
262
|
-
get_HeadersDataPool().
|
|
263
|
-
this.
|
|
259
|
+
protoOf(HttpHeadersMap).e1d = function () {
|
|
260
|
+
this.n51_1 = 0;
|
|
261
|
+
this.o51_1 = 0;
|
|
262
|
+
get_HeadersDataPool().d47(this.p51_1);
|
|
263
|
+
this.p51_1 = get_HeadersDataPool().c47();
|
|
264
264
|
};
|
|
265
265
|
protoOf(HttpHeadersMap).toString = function () {
|
|
266
266
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -270,17 +270,17 @@ 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.p52_1 = this$0;
|
|
274
274
|
CoroutineImpl.call(this, resultContinuation);
|
|
275
275
|
}
|
|
276
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
277
|
-
var tmp = this.
|
|
276
|
+
protoOf(HeadersData$headersStarts$slambda).v52 = function ($this$sequence, $completion) {
|
|
277
|
+
var tmp = this.w52($this$sequence, $completion);
|
|
278
278
|
tmp.d9_1 = Unit_instance;
|
|
279
279
|
tmp.e9_1 = null;
|
|
280
280
|
return tmp.j9();
|
|
281
281
|
};
|
|
282
282
|
protoOf(HeadersData$headersStarts$slambda).w9 = function (p1, $completion) {
|
|
283
|
-
return this.
|
|
283
|
+
return this.v52(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
284
284
|
};
|
|
285
285
|
protoOf(HeadersData$headersStarts$slambda).j9 = function () {
|
|
286
286
|
var suspendResult = this.d9_1;
|
|
@@ -290,29 +290,29 @@ protoOf(HeadersData$headersStarts$slambda).j9 = function () {
|
|
|
290
290
|
switch (tmp) {
|
|
291
291
|
case 0:
|
|
292
292
|
this.c9_1 = 7;
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
293
|
+
this.r52_1 = 0;
|
|
294
|
+
this.u52_1 = this.p52_1.q51_1.t();
|
|
295
295
|
this.b9_1 = 1;
|
|
296
296
|
continue $sm;
|
|
297
297
|
case 1:
|
|
298
|
-
if (!this.
|
|
298
|
+
if (!this.u52_1.u()) {
|
|
299
299
|
this.b9_1 = 6;
|
|
300
300
|
continue $sm;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
this.
|
|
304
|
-
this.
|
|
303
|
+
this.t52_1 = this.u52_1.v();
|
|
304
|
+
this.s52_1 = 0;
|
|
305
305
|
this.b9_1 = 2;
|
|
306
306
|
continue $sm;
|
|
307
307
|
case 2:
|
|
308
|
-
if (!(this.
|
|
308
|
+
if (!(this.s52_1 < this.t52_1.length)) {
|
|
309
309
|
this.b9_1 = 5;
|
|
310
310
|
continue $sm;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
if (!(this.
|
|
313
|
+
if (!(this.p52_1.u51(this.r52_1 + 0 | 0) === -1)) {
|
|
314
314
|
this.b9_1 = 3;
|
|
315
|
-
suspendResult = this.
|
|
315
|
+
suspendResult = this.q52_1.ph(this.r52_1, this);
|
|
316
316
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
317
317
|
return suspendResult;
|
|
318
318
|
}
|
|
@@ -326,8 +326,8 @@ protoOf(HeadersData$headersStarts$slambda).j9 = function () {
|
|
|
326
326
|
this.b9_1 = 4;
|
|
327
327
|
continue $sm;
|
|
328
328
|
case 4:
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
329
|
+
this.s52_1 = this.s52_1 + 6 | 0;
|
|
330
|
+
this.r52_1 = this.r52_1 + 6 | 0;
|
|
331
331
|
this.b9_1 = 2;
|
|
332
332
|
continue $sm;
|
|
333
333
|
case 5:
|
|
@@ -349,69 +349,69 @@ protoOf(HeadersData$headersStarts$slambda).j9 = function () {
|
|
|
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).w52 = function ($this$sequence, completion) {
|
|
353
|
+
var i = new HeadersData$headersStarts$slambda(this.p52_1, completion);
|
|
354
|
+
i.q52_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.v52($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.q51_1 = ArrayList_init_$Create$();
|
|
367
367
|
}
|
|
368
|
-
protoOf(HeadersData).
|
|
369
|
-
return this.
|
|
368
|
+
protoOf(HeadersData).r51 = function () {
|
|
369
|
+
return this.q51_1.e1();
|
|
370
370
|
};
|
|
371
|
-
protoOf(HeadersData).
|
|
371
|
+
protoOf(HeadersData).s51 = 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.q51_1.b1(get_IntArrayPool().c47());
|
|
379
379
|
}
|
|
380
380
|
while (inductionVariable < subArraysCount);
|
|
381
381
|
};
|
|
382
|
-
protoOf(HeadersData).
|
|
383
|
-
return this.
|
|
382
|
+
protoOf(HeadersData).u51 = function (index) {
|
|
383
|
+
return this.q51_1.f1(index / 768 | 0)[index % 768 | 0];
|
|
384
384
|
};
|
|
385
|
-
protoOf(HeadersData).
|
|
386
|
-
this.
|
|
385
|
+
protoOf(HeadersData).f52 = function (index, value) {
|
|
386
|
+
this.q51_1.f1(index / 768 | 0)[index % 768 | 0] = value;
|
|
387
387
|
};
|
|
388
|
-
protoOf(HeadersData).
|
|
388
|
+
protoOf(HeadersData).t51 = function () {
|
|
389
389
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
390
390
|
};
|
|
391
|
-
protoOf(HeadersData).
|
|
392
|
-
var _iterator__ex2g4s = this.
|
|
391
|
+
protoOf(HeadersData).e1d = function () {
|
|
392
|
+
var _iterator__ex2g4s = this.q51_1.t();
|
|
393
393
|
while (_iterator__ex2g4s.u()) {
|
|
394
394
|
var array = _iterator__ex2g4s.v();
|
|
395
|
-
get_IntArrayPool().
|
|
395
|
+
get_IntArrayPool().d47(array);
|
|
396
396
|
}
|
|
397
|
-
this.
|
|
397
|
+
this.q51_1.b3();
|
|
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.x51().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.g52(offset));
|
|
406
406
|
out.c1(' => ');
|
|
407
|
-
out.c1(_this__u8e3s4.
|
|
407
|
+
out.c1(_this__u8e3s4.w51(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).v46 = 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).p47 = function () {
|
|
|
420
420
|
}
|
|
421
421
|
return tmp_0;
|
|
422
422
|
};
|
|
423
|
-
protoOf(IntArrayPool$1).
|
|
423
|
+
protoOf(IntArrayPool$1).a53 = function (instance) {
|
|
424
424
|
fill(instance, -1);
|
|
425
|
-
return protoOf(DefaultPool).
|
|
425
|
+
return protoOf(DefaultPool).a47.call(this, instance);
|
|
426
426
|
};
|
|
427
|
-
protoOf(IntArrayPool$1).
|
|
428
|
-
return this.
|
|
427
|
+
protoOf(IntArrayPool$1).a47 = function (instance) {
|
|
428
|
+
return this.a53(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).v46 = function () {
|
|
434
434
|
return new HeadersData();
|
|
435
435
|
};
|
|
436
|
-
protoOf(HeadersDataPool$1).
|
|
437
|
-
instance.
|
|
438
|
-
return protoOf(DefaultPool).
|
|
436
|
+
protoOf(HeadersDataPool$1).e53 = function (instance) {
|
|
437
|
+
instance.e1d();
|
|
438
|
+
return protoOf(DefaultPool).a47.call(this, instance);
|
|
439
439
|
};
|
|
440
|
-
protoOf(HeadersDataPool$1).
|
|
441
|
-
return this.
|
|
440
|
+
protoOf(HeadersDataPool$1).a47 = function (instance) {
|
|
441
|
+
return this.e53(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
442
442
|
};
|
|
443
443
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
444
444
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -468,16 +468,16 @@ function parseHeaders(input, builder, range, $completion) {
|
|
|
468
468
|
}
|
|
469
469
|
function parseHeaderName(text, range) {
|
|
470
470
|
_init_properties_HttpParser_kt__gbdom1();
|
|
471
|
-
var index = range.
|
|
472
|
-
var end = range.
|
|
471
|
+
var index = range.s53_1;
|
|
472
|
+
var end = range.t53_1;
|
|
473
473
|
while (index < end) {
|
|
474
474
|
var ch = text.b(index);
|
|
475
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
476
|
-
range.
|
|
475
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.s53_1)) {
|
|
476
|
+
range.s53_1 = index + 1 | 0;
|
|
477
477
|
return index;
|
|
478
478
|
}
|
|
479
479
|
if (isDelimiter(ch)) {
|
|
480
|
-
parseHeaderNameFailed(text, index, range.
|
|
480
|
+
parseHeaderNameFailed(text, index, range.s53_1, ch);
|
|
481
481
|
}
|
|
482
482
|
index = index + 1 | 0;
|
|
483
483
|
}
|
|
@@ -485,12 +485,12 @@ function parseHeaderName(text, range) {
|
|
|
485
485
|
}
|
|
486
486
|
function parseHeaderValue(text, range) {
|
|
487
487
|
_init_properties_HttpParser_kt__gbdom1();
|
|
488
|
-
var start = range.
|
|
489
|
-
var end = range.
|
|
488
|
+
var start = range.s53_1;
|
|
489
|
+
var end = range.t53_1;
|
|
490
490
|
var index = start;
|
|
491
491
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
492
492
|
if (index >= end) {
|
|
493
|
-
range.
|
|
493
|
+
range.s53_1 = end;
|
|
494
494
|
return Unit_instance;
|
|
495
495
|
}
|
|
496
496
|
var valueStart = index;
|
|
@@ -504,8 +504,8 @@ function parseHeaderValue(text, range) {
|
|
|
504
504
|
valueLastIndex = index;
|
|
505
505
|
index = index + 1 | 0;
|
|
506
506
|
}
|
|
507
|
-
range.
|
|
508
|
-
range.
|
|
507
|
+
range.s53_1 = valueStart;
|
|
508
|
+
range.t53_1 = valueLastIndex + 1 | 0;
|
|
509
509
|
}
|
|
510
510
|
function validateHostHeader(host) {
|
|
511
511
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -546,9 +546,9 @@ function parseHeaderNameFailed(text, index, start, ch) {
|
|
|
546
546
|
}
|
|
547
547
|
function noColonFound(text, range) {
|
|
548
548
|
_init_properties_HttpParser_kt__gbdom1();
|
|
549
|
-
var tmp2 = range.
|
|
549
|
+
var tmp2 = range.s53_1;
|
|
550
550
|
// Inline function 'kotlin.text.substring' call
|
|
551
|
-
var endIndex = range.
|
|
551
|
+
var endIndex = range.t53_1;
|
|
552
552
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
553
553
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
554
554
|
}
|
|
@@ -560,9 +560,9 @@ function characterIsNotAllowed(text, ch) {
|
|
|
560
560
|
}
|
|
561
561
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
562
562
|
CoroutineImpl.call(this, resultContinuation);
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
563
|
+
this.n53_1 = input;
|
|
564
|
+
this.o53_1 = builder;
|
|
565
|
+
this.p53_1 = range;
|
|
566
566
|
}
|
|
567
567
|
protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
568
568
|
var suspendResult = this.d9_1;
|
|
@@ -572,7 +572,7 @@ protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
|
572
572
|
switch (tmp) {
|
|
573
573
|
case 0:
|
|
574
574
|
this.c9_1 = 7;
|
|
575
|
-
this.
|
|
575
|
+
this.q53_1 = new HttpHeadersMap(this.o53_1);
|
|
576
576
|
this.c9_1 = 6;
|
|
577
577
|
this.b9_1 = 1;
|
|
578
578
|
continue $sm;
|
|
@@ -583,7 +583,7 @@ protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
this.b9_1 = 2;
|
|
586
|
-
suspendResult = readLineStrictTo(this.
|
|
586
|
+
suspendResult = readLineStrictTo(this.n53_1, this.o53_1, new Long(8192, 0), VOID, this);
|
|
587
587
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
588
588
|
return suspendResult;
|
|
589
589
|
}
|
|
@@ -592,7 +592,7 @@ protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
|
592
592
|
case 2:
|
|
593
593
|
var ARGUMENT = suspendResult;
|
|
594
594
|
if (equalsLong(ARGUMENT, new Long(-1, -1))) {
|
|
595
|
-
this.
|
|
595
|
+
this.q53_1.e1d();
|
|
596
596
|
return null;
|
|
597
597
|
} else {
|
|
598
598
|
this.b9_1 = 3;
|
|
@@ -600,9 +600,9 @@ protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
case 3:
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
if (this.
|
|
603
|
+
this.p53_1.t53_1 = this.o53_1.e52_1;
|
|
604
|
+
this.r53_1 = this.p53_1.t53_1 - this.p53_1.s53_1 | 0;
|
|
605
|
+
if (this.r53_1 === 0) {
|
|
606
606
|
this.b9_1 = 5;
|
|
607
607
|
continue $sm;
|
|
608
608
|
} else {
|
|
@@ -611,34 +611,34 @@ protoOf($parseHeadersCOROUTINE$).j9 = function () {
|
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
case 4:
|
|
614
|
-
if (this.
|
|
614
|
+
if (this.r53_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.
|
|
619
|
+
var nameStart = this.p53_1.s53_1;
|
|
620
|
+
var nameEnd = parseHeaderName(this.o53_1, this.p53_1);
|
|
621
|
+
var headerEnd = this.p53_1.t53_1;
|
|
622
|
+
parseHeaderValue(this.o53_1, this.p53_1);
|
|
623
|
+
var valueStart = this.p53_1.s53_1;
|
|
624
|
+
var valueEnd = this.p53_1.t53_1;
|
|
625
|
+
this.p53_1.s53_1 = headerEnd;
|
|
626
|
+
this.q53_1.v51(nameStart, nameEnd, valueStart, valueEnd);
|
|
627
627
|
this.b9_1 = 1;
|
|
628
628
|
continue $sm;
|
|
629
629
|
case 5:
|
|
630
|
-
var host = this.
|
|
630
|
+
var host = this.q53_1.yd('Host');
|
|
631
631
|
if (!(host == null)) {
|
|
632
632
|
validateHostHeader(host);
|
|
633
633
|
}
|
|
634
634
|
|
|
635
|
-
return this.
|
|
635
|
+
return this.q53_1;
|
|
636
636
|
case 6:
|
|
637
637
|
this.c9_1 = 7;
|
|
638
638
|
var tmp_0 = this.e9_1;
|
|
639
639
|
if (tmp_0 instanceof Error) {
|
|
640
640
|
var t = this.e9_1;
|
|
641
|
-
this.
|
|
641
|
+
this.q53_1.e1d();
|
|
642
642
|
throw t;
|
|
643
643
|
} else {
|
|
644
644
|
throw this.e9_1;
|
|
@@ -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().i46_1, Companion_getInstance_0().h46_1);
|
|
667
|
+
versions = Companion_instance.u53(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.v53_1 = body;
|
|
683
683
|
}
|
|
684
684
|
function MultipartPart(headers, body) {
|
|
685
685
|
MultipartEvent.call(this);
|
|
686
|
-
this.
|
|
687
|
-
this.
|
|
686
|
+
this.w53_1 = headers;
|
|
687
|
+
this.x53_1 = body;
|
|
688
688
|
}
|
|
689
689
|
function Epilogue(body) {
|
|
690
690
|
MultipartEvent.call(this);
|
|
691
|
-
this.
|
|
691
|
+
this.y53_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().k4h(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);
|
|
@@ -872,18 +872,18 @@ 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.s55_1 = $firstBoundary;
|
|
876
|
+
this.t55_1 = $countedInput;
|
|
877
877
|
CoroutineImpl.call(this, resultContinuation);
|
|
878
878
|
}
|
|
879
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
880
|
-
var tmp = this.
|
|
879
|
+
protoOf(parseMultipart$slambda$slambda).v55 = function ($this$writer, $completion) {
|
|
880
|
+
var tmp = this.w55($this$writer, $completion);
|
|
881
881
|
tmp.d9_1 = Unit_instance;
|
|
882
882
|
tmp.e9_1 = null;
|
|
883
883
|
return tmp.j9();
|
|
884
884
|
};
|
|
885
885
|
protoOf(parseMultipart$slambda$slambda).w9 = function (p1, $completion) {
|
|
886
|
-
return this.
|
|
886
|
+
return this.v55(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
887
887
|
};
|
|
888
888
|
protoOf(parseMultipart$slambda$slambda).j9 = function () {
|
|
889
889
|
var suspendResult = this.d9_1;
|
|
@@ -894,7 +894,7 @@ protoOf(parseMultipart$slambda$slambda).j9 = function () {
|
|
|
894
894
|
case 0:
|
|
895
895
|
this.c9_1 = 3;
|
|
896
896
|
this.b9_1 = 1;
|
|
897
|
-
suspendResult = parsePreambleImpl(this.
|
|
897
|
+
suspendResult = parsePreambleImpl(this.s55_1, this.t55_1, this.u55_1.v44_1, new Long(8193, 0), this);
|
|
898
898
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
899
899
|
return suspendResult;
|
|
900
900
|
}
|
|
@@ -902,7 +902,7 @@ protoOf(parseMultipart$slambda$slambda).j9 = function () {
|
|
|
902
902
|
continue $sm;
|
|
903
903
|
case 1:
|
|
904
904
|
this.b9_1 = 2;
|
|
905
|
-
suspendResult = this.
|
|
905
|
+
suspendResult = this.u55_1.v44_1.t3x(this);
|
|
906
906
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
907
907
|
return suspendResult;
|
|
908
908
|
}
|
|
@@ -924,32 +924,32 @@ protoOf(parseMultipart$slambda$slambda).j9 = function () {
|
|
|
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).w55 = function ($this$writer, completion) {
|
|
928
|
+
var i = new parseMultipart$slambda$slambda(this.s55_1, this.t55_1, completion);
|
|
929
|
+
i.u55_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.v55($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.f56_1 = $input;
|
|
940
|
+
this.g56_1 = $boundaryPrefixed;
|
|
941
|
+
this.h56_1 = $maxPartSize;
|
|
942
|
+
this.i56_1 = $totalLength;
|
|
943
943
|
CoroutineImpl.call(this, resultContinuation);
|
|
944
944
|
}
|
|
945
|
-
protoOf(parseMultipart$slambda).
|
|
946
|
-
var tmp = this.
|
|
945
|
+
protoOf(parseMultipart$slambda).r56 = function ($this$produce, $completion) {
|
|
946
|
+
var tmp = this.s56($this$produce, $completion);
|
|
947
947
|
tmp.d9_1 = Unit_instance;
|
|
948
948
|
tmp.e9_1 = null;
|
|
949
949
|
return tmp.j9();
|
|
950
950
|
};
|
|
951
951
|
protoOf(parseMultipart$slambda).w9 = function (p1, $completion) {
|
|
952
|
-
return this.
|
|
952
|
+
return this.r56((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
953
953
|
};
|
|
954
954
|
protoOf(parseMultipart$slambda).j9 = function () {
|
|
955
955
|
var suspendResult = this.d9_1;
|
|
@@ -959,11 +959,11 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
959
959
|
switch (tmp) {
|
|
960
960
|
case 0:
|
|
961
961
|
this.c9_1 = 25;
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
962
|
+
this.k56_1 = counted(this.f56_1);
|
|
963
|
+
this.l56_1 = this.k56_1.f46();
|
|
964
|
+
this.p56_1 = this.g56_1.y3r(get_PrefixString().e1());
|
|
965
965
|
this.b9_1 = 1;
|
|
966
|
-
suspendResult = readBuffer(writer(this.
|
|
966
|
+
suspendResult = readBuffer(writer(this.j56_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.p56_1, this.k56_1, null)).m3z_1, this);
|
|
967
967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
968
968
|
return suspendResult;
|
|
969
969
|
}
|
|
@@ -973,7 +973,7 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
973
973
|
var preambleData = suspendResult;
|
|
974
974
|
if (compare(get_remaining(preambleData), new Long(0, 0)) > 0) {
|
|
975
975
|
this.b9_1 = 2;
|
|
976
|
-
suspendResult = this.
|
|
976
|
+
suspendResult = this.j56_1.b28(new Preamble(preambleData), this);
|
|
977
977
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
978
978
|
return suspendResult;
|
|
979
979
|
}
|
|
@@ -990,31 +990,31 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
990
990
|
this.b9_1 = 4;
|
|
991
991
|
continue $sm;
|
|
992
992
|
case 4:
|
|
993
|
-
if (!this.
|
|
993
|
+
if (!this.k56_1.o3x()) {
|
|
994
994
|
this.b9_1 = 5;
|
|
995
|
-
suspendResult = skipIfFound(this.
|
|
995
|
+
suspendResult = skipIfFound(this.k56_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.
|
|
1001
|
+
this.q56_1 = false;
|
|
1002
1002
|
this.b9_1 = 6;
|
|
1003
1003
|
continue $sm;
|
|
1004
1004
|
}
|
|
1005
1005
|
|
|
1006
1006
|
case 5:
|
|
1007
|
-
this.
|
|
1007
|
+
this.q56_1 = !suspendResult;
|
|
1008
1008
|
this.b9_1 = 6;
|
|
1009
1009
|
continue $sm;
|
|
1010
1010
|
case 6:
|
|
1011
|
-
if (!this.
|
|
1011
|
+
if (!this.q56_1) {
|
|
1012
1012
|
this.b9_1 = 15;
|
|
1013
1013
|
continue $sm;
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
1016
|
this.b9_1 = 7;
|
|
1017
|
-
suspendResult = skipIfFound(this.
|
|
1017
|
+
suspendResult = skipIfFound(this.k56_1, get_CrLf(), this);
|
|
1018
1018
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1019
1019
|
return suspendResult;
|
|
1020
1020
|
}
|
|
@@ -1022,7 +1022,7 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1022
1022
|
continue $sm;
|
|
1023
1023
|
case 7:
|
|
1024
1024
|
this.b9_1 = 8;
|
|
1025
|
-
suspendResult = skipIfFound(this.
|
|
1025
|
+
suspendResult = skipIfFound(this.k56_1, this.p56_1, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1038,42 +1038,42 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
1040
|
case 9:
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1043
|
-
var part = new MultipartPart(this.
|
|
1041
|
+
this.m56_1 = new ByteChannel();
|
|
1042
|
+
this.o56_1 = CompletableDeferred();
|
|
1043
|
+
var part = new MultipartPart(this.o56_1, this.m56_1);
|
|
1044
1044
|
this.b9_1 = 10;
|
|
1045
|
-
suspendResult = this.
|
|
1045
|
+
suspendResult = this.j56_1.b28(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.
|
|
1052
|
+
this.n56_1 = null;
|
|
1053
1053
|
this.c9_1 = 14;
|
|
1054
1054
|
this.b9_1 = 11;
|
|
1055
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1055
|
+
suspendResult = parsePartHeadersImpl(this.k56_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.n56_1 = suspendResult;
|
|
1063
|
+
if (!this.o56_1.w1x(this.n56_1)) {
|
|
1064
|
+
this.n56_1.e1d();
|
|
1065
1065
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
this.b9_1 = 12;
|
|
1069
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1069
|
+
suspendResult = parsePartBodyImpl(this.g56_1, this.k56_1, this.m56_1, this.n56_1, this.h56_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.
|
|
1076
|
+
this.m56_1.j4();
|
|
1077
1077
|
this.c9_1 = 25;
|
|
1078
1078
|
this.b9_1 = 13;
|
|
1079
1079
|
continue $sm;
|
|
@@ -1086,15 +1086,15 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1086
1086
|
var tmp_0 = this.e9_1;
|
|
1087
1087
|
if (tmp_0 instanceof Error) {
|
|
1088
1088
|
var cause = this.e9_1;
|
|
1089
|
-
if (this.
|
|
1090
|
-
var tmp0_safe_receiver = this.
|
|
1089
|
+
if (this.o56_1.x1x(cause)) {
|
|
1090
|
+
var tmp0_safe_receiver = this.n56_1;
|
|
1091
1091
|
if (tmp0_safe_receiver == null)
|
|
1092
1092
|
null;
|
|
1093
1093
|
else {
|
|
1094
|
-
tmp0_safe_receiver.
|
|
1094
|
+
tmp0_safe_receiver.e1d();
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
close(this.
|
|
1097
|
+
close(this.m56_1, cause);
|
|
1098
1098
|
throw cause;
|
|
1099
1099
|
} else {
|
|
1100
1100
|
throw this.e9_1;
|
|
@@ -1102,7 +1102,7 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1102
1102
|
|
|
1103
1103
|
case 15:
|
|
1104
1104
|
this.b9_1 = 16;
|
|
1105
|
-
suspendResult = skipIfFound(this.
|
|
1105
|
+
suspendResult = skipIfFound(this.k56_1, get_CrLf(), this);
|
|
1106
1106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1107
1107
|
return suspendResult;
|
|
1108
1108
|
}
|
|
@@ -1110,21 +1110,21 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1110
1110
|
continue $sm;
|
|
1111
1111
|
case 16:
|
|
1112
1112
|
this.b9_1 = 17;
|
|
1113
|
-
suspendResult = skipIfFound(this.
|
|
1113
|
+
suspendResult = skipIfFound(this.k56_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.i56_1 == null)) {
|
|
1121
|
+
var consumedExceptEpilogue = subtract(this.k56_1.f46(), this.l56_1);
|
|
1122
|
+
var size = subtract(this.i56_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
1126
|
this.b9_1 = 21;
|
|
1127
|
-
suspendResult = readPacket(this.
|
|
1127
|
+
suspendResult = readPacket(this.k56_1, convertToInt(size), this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
@@ -1135,7 +1135,7 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
} else {
|
|
1137
1137
|
this.b9_1 = 18;
|
|
1138
|
-
suspendResult = readBuffer(this.
|
|
1138
|
+
suspendResult = readBuffer(this.k56_1, this);
|
|
1139
1139
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1140
1140
|
return suspendResult;
|
|
1141
1141
|
}
|
|
@@ -1144,9 +1144,9 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1144
1144
|
|
|
1145
1145
|
case 18:
|
|
1146
1146
|
var epilogueContent = suspendResult;
|
|
1147
|
-
if (!epilogueContent.
|
|
1147
|
+
if (!epilogueContent.g3s()) {
|
|
1148
1148
|
this.b9_1 = 19;
|
|
1149
|
-
suspendResult = this.
|
|
1149
|
+
suspendResult = this.j56_1.b28(new Epilogue(epilogueContent), this);
|
|
1150
1150
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1151
1151
|
return suspendResult;
|
|
1152
1152
|
}
|
|
@@ -1166,7 +1166,7 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
1166
1166
|
var ARGUMENT = suspendResult;
|
|
1167
1167
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1168
1168
|
this.b9_1 = 22;
|
|
1169
|
-
suspendResult = this.
|
|
1169
|
+
suspendResult = this.j56_1.b28(ARGUMENT_0, this);
|
|
1170
1170
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1171
1171
|
return suspendResult;
|
|
1172
1172
|
}
|
|
@@ -1194,20 +1194,20 @@ protoOf(parseMultipart$slambda).j9 = function () {
|
|
|
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).s56 = function ($this$produce, completion) {
|
|
1198
|
+
var i = new parseMultipart$slambda(this.f56_1, this.g56_1, this.h56_1, this.i56_1, completion);
|
|
1199
|
+
i.j56_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.r56($this$produce, $completion);
|
|
1206
1206
|
}, 1);
|
|
1207
1207
|
}
|
|
1208
1208
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1209
1209
|
CoroutineImpl.call(this, resultContinuation);
|
|
1210
|
-
this.
|
|
1210
|
+
this.h54_1 = input;
|
|
1211
1211
|
}
|
|
1212
1212
|
protoOf($parsePartHeadersImplCOROUTINE$).j9 = function () {
|
|
1213
1213
|
var suspendResult = this.d9_1;
|
|
@@ -1217,10 +1217,10 @@ protoOf($parsePartHeadersImplCOROUTINE$).j9 = function () {
|
|
|
1217
1217
|
switch (tmp) {
|
|
1218
1218
|
case 0:
|
|
1219
1219
|
this.c9_1 = 3;
|
|
1220
|
-
this.
|
|
1220
|
+
this.i54_1 = new CharArrayBuilder();
|
|
1221
1221
|
this.c9_1 = 2;
|
|
1222
1222
|
this.b9_1 = 1;
|
|
1223
|
-
suspendResult = parseHeaders(this.
|
|
1223
|
+
suspendResult = parseHeaders(this.h54_1, this.i54_1, VOID, this);
|
|
1224
1224
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1225
1225
|
return suspendResult;
|
|
1226
1226
|
}
|
|
@@ -1241,7 +1241,7 @@ protoOf($parsePartHeadersImplCOROUTINE$).j9 = function () {
|
|
|
1241
1241
|
var tmp_1 = this.e9_1;
|
|
1242
1242
|
if (tmp_1 instanceof Error) {
|
|
1243
1243
|
var t = this.e9_1;
|
|
1244
|
-
this.
|
|
1244
|
+
this.i54_1.e1d();
|
|
1245
1245
|
throw t;
|
|
1246
1246
|
} else {
|
|
1247
1247
|
throw this.e9_1;
|
|
@@ -1263,11 +1263,11 @@ protoOf($parsePartHeadersImplCOROUTINE$).j9 = function () {
|
|
|
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.
|
|
1266
|
+
this.r54_1 = boundaryPrefixed;
|
|
1267
|
+
this.s54_1 = input;
|
|
1268
|
+
this.t54_1 = output;
|
|
1269
|
+
this.u54_1 = headers;
|
|
1270
|
+
this.v54_1 = limit;
|
|
1271
1271
|
}
|
|
1272
1272
|
protoOf($parsePartBodyImplCOROUTINE$).j9 = function () {
|
|
1273
1273
|
var suspendResult = this.d9_1;
|
|
@@ -1277,35 +1277,35 @@ protoOf($parsePartBodyImplCOROUTINE$).j9 = function () {
|
|
|
1277
1277
|
switch (tmp) {
|
|
1278
1278
|
case 0:
|
|
1279
1279
|
this.c9_1 = 6;
|
|
1280
|
-
var tmp0_safe_receiver = this.
|
|
1280
|
+
var tmp0_safe_receiver = this.u54_1.yd('Content-Length');
|
|
1281
1281
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1282
1282
|
if (contentLength == null) {
|
|
1283
1283
|
this.b9_1 = 3;
|
|
1284
|
-
suspendResult = readUntil(this.
|
|
1284
|
+
suspendResult = readUntil(this.s54_1, this.r54_1, this.t54_1, this.v54_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.v54_1;
|
|
1291
1291
|
if (compare(new Long(0, 0), contentLength) <= 0 ? compare(contentLength, containsUpper) <= 0 : false) {
|
|
1292
1292
|
this.b9_1 = 1;
|
|
1293
|
-
suspendResult = copyTo(this.
|
|
1293
|
+
suspendResult = copyTo(this.s54_1, this.t54_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.v54_1);
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
break;
|
|
1305
1305
|
case 1:
|
|
1306
|
-
this.
|
|
1306
|
+
this.y54_1 = suspendResult;
|
|
1307
1307
|
this.b9_1 = 2;
|
|
1308
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1308
|
+
suspendResult = skipIfFoundReadCount(this.s54_1, this.r54_1, this);
|
|
1309
1309
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1310
1310
|
return suspendResult;
|
|
1311
1311
|
}
|
|
@@ -1313,24 +1313,24 @@ protoOf($parsePartBodyImplCOROUTINE$).j9 = function () {
|
|
|
1313
1313
|
continue $sm;
|
|
1314
1314
|
case 2:
|
|
1315
1315
|
var ARGUMENT = suspendResult;
|
|
1316
|
-
this.
|
|
1316
|
+
this.x54_1 = add(this.y54_1, ARGUMENT);
|
|
1317
1317
|
this.b9_1 = 4;
|
|
1318
1318
|
continue $sm;
|
|
1319
1319
|
case 3:
|
|
1320
|
-
this.
|
|
1320
|
+
this.x54_1 = suspendResult;
|
|
1321
1321
|
this.b9_1 = 4;
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
case 4:
|
|
1324
|
-
this.
|
|
1324
|
+
this.w54_1 = this.x54_1;
|
|
1325
1325
|
this.b9_1 = 5;
|
|
1326
|
-
suspendResult = this.
|
|
1326
|
+
suspendResult = this.t54_1.j3x(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.w54_1;
|
|
1334
1334
|
case 6:
|
|
1335
1335
|
throw this.e9_1;
|
|
1336
1336
|
}
|
|
@@ -1347,8 +1347,8 @@ protoOf($parsePartBodyImplCOROUTINE$).j9 = function () {
|
|
|
1347
1347
|
};
|
|
1348
1348
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1349
1349
|
CoroutineImpl.call(this, resultContinuation);
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1350
|
+
this.h55_1 = _this__u8e3s4;
|
|
1351
|
+
this.i55_1 = prefix;
|
|
1352
1352
|
}
|
|
1353
1353
|
protoOf($skipIfFoundReadCountCOROUTINE$).j9 = function () {
|
|
1354
1354
|
var suspendResult = this.d9_1;
|
|
@@ -1359,7 +1359,7 @@ protoOf($skipIfFoundReadCountCOROUTINE$).j9 = function () {
|
|
|
1359
1359
|
case 0:
|
|
1360
1360
|
this.c9_1 = 3;
|
|
1361
1361
|
this.b9_1 = 1;
|
|
1362
|
-
suspendResult = skipIfFound(this.
|
|
1362
|
+
suspendResult = skipIfFound(this.h55_1, this.i55_1, this);
|
|
1363
1363
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1364
1364
|
return suspendResult;
|
|
1365
1365
|
}
|
|
@@ -1368,18 +1368,18 @@ protoOf($skipIfFoundReadCountCOROUTINE$).j9 = function () {
|
|
|
1368
1368
|
case 1:
|
|
1369
1369
|
if (suspendResult) {
|
|
1370
1370
|
var tmp_0 = this;
|
|
1371
|
-
tmp_0.
|
|
1371
|
+
tmp_0.j55_1 = fromInt(this.i55_1.e1());
|
|
1372
1372
|
this.b9_1 = 2;
|
|
1373
1373
|
continue $sm;
|
|
1374
1374
|
} else {
|
|
1375
1375
|
var tmp_1 = this;
|
|
1376
|
-
tmp_1.
|
|
1376
|
+
tmp_1.j55_1 = new Long(0, 0);
|
|
1377
1377
|
this.b9_1 = 2;
|
|
1378
1378
|
continue $sm;
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
1381
1381
|
case 2:
|
|
1382
|
-
return this.
|
|
1382
|
+
return this.j55_1;
|
|
1383
1383
|
case 3:
|
|
1384
1384
|
throw this.e9_1;
|
|
1385
1385
|
}
|
|
@@ -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.t56_1 = ch;
|
|
1471
|
+
this.u56_1 = exact;
|
|
1472
|
+
this.v56_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.v56_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.t56_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.w56_1 = tmp_1;
|
|
1509
1509
|
}
|
|
1510
1510
|
function Companion() {
|
|
1511
1511
|
}
|
|
1512
|
-
protoOf(Companion).
|
|
1512
|
+
protoOf(Companion).u53 = function (from) {
|
|
1513
1513
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1514
|
-
return this.
|
|
1514
|
+
return this.x56(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1515
1515
|
};
|
|
1516
|
-
protoOf(Companion).
|
|
1516
|
+
protoOf(Companion).x56 = function (from, length, charAt) {
|
|
1517
1517
|
var tmp$ret$0;
|
|
1518
1518
|
$l$block_0: {
|
|
1519
1519
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1590,10 +1590,10 @@ function Companion_getInstance_1() {
|
|
|
1590
1590
|
return Companion_instance;
|
|
1591
1591
|
}
|
|
1592
1592
|
function AsciiCharTree(root) {
|
|
1593
|
-
this.
|
|
1593
|
+
this.y56_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.a52_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.c57_1 = $outer;
|
|
1626
|
+
this.z56_1 = start;
|
|
1627
|
+
this.a57_1 = end;
|
|
1628
|
+
this.b57_1 = null;
|
|
1629
1629
|
}
|
|
1630
1630
|
protoOf(SubSequenceImpl).a = function () {
|
|
1631
|
-
return this.
|
|
1631
|
+
return this.a57_1 - this.z56_1 | 0;
|
|
1632
1632
|
};
|
|
1633
1633
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1634
|
-
var withOffset = index + this.
|
|
1634
|
+
var withOffset = index + this.z56_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.a57_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.c57_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.a57_1 - this.z56_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.c57_1, this.z56_1 + startIndex | 0, this.z56_1 + endIndex | 0);
|
|
1666
1666
|
};
|
|
1667
1667
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1668
|
-
var tmp0_elvis_lhs = this.
|
|
1668
|
+
var tmp0_elvis_lhs = this.b57_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.c57_1, this.z56_1, this.a57_1));
|
|
1673
|
+
this.b57_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.c57_1, this.z56_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.b57_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.c57_1, this.z56_1, this.a57_1) : tmp1_elvis_lhs;
|
|
1691
1691
|
};
|
|
1692
1692
|
function bufferForIndex($this, index) {
|
|
1693
|
-
var list = $this.
|
|
1693
|
+
var list = $this.z51_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.a52_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.a52_1).length | 0);
|
|
1708
1708
|
}
|
|
1709
1709
|
function throwSingleBuffer($this, index) {
|
|
1710
|
-
if ($this.
|
|
1710
|
+
if ($this.c52_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.d52_1 === 0 ? appendNewArray($this) : ensureNotNull($this.a52_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.y51_1.c47();
|
|
1719
|
+
var existing = $this.a52_1;
|
|
1720
|
+
$this.a52_1 = newBuffer;
|
|
1721
|
+
$this.d52_1 = newBuffer.length;
|
|
1722
|
+
$this.c52_1 = false;
|
|
1723
1723
|
if (!(existing == null)) {
|
|
1724
|
-
var tmp0_elvis_lhs = $this.
|
|
1724
|
+
var tmp0_elvis_lhs = $this.z51_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.z51_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.a52_1).length - $this.d52_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.y51_1 = pool;
|
|
1773
|
+
this.z51_1 = null;
|
|
1774
|
+
this.a52_1 = null;
|
|
1775
|
+
this.b52_1 = null;
|
|
1776
|
+
this.c52_1 = false;
|
|
1777
|
+
this.d52_1 = 0;
|
|
1778
|
+
this.e52_1 = 0;
|
|
1779
1779
|
}
|
|
1780
1780
|
protoOf(CharArrayBuilder).a = function () {
|
|
1781
|
-
return this.
|
|
1781
|
+
return this.e52_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.e52_1)) {
|
|
1791
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.e52_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.e52_1)) {
|
|
1809
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.e52_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.b52_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.e52_1));
|
|
1820
|
+
this.b52_1 = this_0;
|
|
1821
1821
|
tmp = this_0;
|
|
1822
1822
|
} else {
|
|
1823
1823
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1827,20 +1827,20 @@ 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.e52_1 === charSequenceLength(other)))
|
|
1831
1831
|
return false;
|
|
1832
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1832
|
+
return rangeEqualsImpl(this, 0, other, 0, this.e52_1);
|
|
1833
1833
|
};
|
|
1834
1834
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1835
|
-
var tmp0_safe_receiver = this.
|
|
1835
|
+
var tmp0_safe_receiver = this.b52_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.e52_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.a52_1).length - this.d52_1 | 0] = value;
|
|
1841
|
+
this.b52_1 = null;
|
|
1842
|
+
this.d52_1 = this.d52_1 - 1 | 0;
|
|
1843
|
+
this.e52_1 = this.e52_1 + 1 | 0;
|
|
1844
1844
|
return this;
|
|
1845
1845
|
};
|
|
1846
1846
|
protoOf(CharArrayBuilder).pc = function (value, startIndex, endIndex) {
|
|
@@ -1849,10 +1849,10 @@ protoOf(CharArrayBuilder).pc = function (value, startIndex, endIndex) {
|
|
|
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.d52_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.d52_1;
|
|
1856
1856
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1857
1857
|
var inductionVariable = 0;
|
|
1858
1858
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1863,10 +1863,10 @@ protoOf(CharArrayBuilder).pc = function (value, startIndex, endIndex) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
while (inductionVariable < bytesToCopy);
|
|
1865
1865
|
current = current + bytesToCopy | 0;
|
|
1866
|
-
this.
|
|
1866
|
+
this.d52_1 = this.d52_1 - bytesToCopy | 0;
|
|
1867
1867
|
}
|
|
1868
|
-
this.
|
|
1869
|
-
this.
|
|
1868
|
+
this.b52_1 = null;
|
|
1869
|
+
this.e52_1 = this.e52_1 + (endIndex - startIndex | 0) | 0;
|
|
1870
1870
|
return this;
|
|
1871
1871
|
};
|
|
1872
1872
|
protoOf(CharArrayBuilder).c1 = function (value) {
|
|
@@ -1874,34 +1874,34 @@ protoOf(CharArrayBuilder).c1 = function (value) {
|
|
|
1874
1874
|
return this;
|
|
1875
1875
|
return this.pc(value, 0, charSequenceLength(value));
|
|
1876
1876
|
};
|
|
1877
|
-
protoOf(CharArrayBuilder).
|
|
1878
|
-
var list = this.
|
|
1877
|
+
protoOf(CharArrayBuilder).e1d = function () {
|
|
1878
|
+
var list = this.z51_1;
|
|
1879
1879
|
if (!(list == null)) {
|
|
1880
|
-
this.
|
|
1880
|
+
this.a52_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.y51_1.d47(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.a52_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.y51_1.d47(tmp0_safe_receiver);
|
|
1897
1897
|
}
|
|
1898
|
-
this.
|
|
1898
|
+
this.a52_1 = null;
|
|
1899
1899
|
}
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1903
|
-
this.
|
|
1904
|
-
this.
|
|
1900
|
+
this.c52_1 = true;
|
|
1901
|
+
this.z51_1 = null;
|
|
1902
|
+
this.b52_1 = null;
|
|
1903
|
+
this.e52_1 = 0;
|
|
1904
|
+
this.d52_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).c47 = 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).v46 = 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.w4m_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.w4m_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().v4m_1;
|
|
2123
2123
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2124
|
-
DefaultHttpMethods = tmp.
|
|
2124
|
+
DefaultHttpMethods = tmp.x56(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.s53_1 = start;
|
|
2226
|
+
this.t53_1 = end;
|
|
2227
2227
|
}
|
|
2228
2228
|
protoOf(MutableRange).toString = function () {
|
|
2229
|
-
return 'MutableRange(start=' + this.
|
|
2229
|
+
return 'MutableRange(start=' + this.s53_1 + ', end=' + this.t53_1 + ')';
|
|
2230
2230
|
};
|
|
2231
2231
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2232
2232
|
var index = start;
|