@dmarket/p2p-tracker-core 1.1.0-beta → 1.2.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 +5277 -4033
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +3385 -2426
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-coroutines-core.mjs +2496 -2489
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1732 -1731
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1468 -1456
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3008 -3008
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-http-cio.mjs +483 -483
- package/ktor-ktor-http.mjs +665 -660
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1038 -1038
- package/ktor-ktor-utils.mjs +783 -783
- package/ktor-ktor-websockets.mjs +748 -748
- package/p2p-tracker-core.d.mts +18 -4
- package/p2p-tracker-core.mjs +19293 -15135
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -106,10 +106,10 @@ initMetadataForCompanion(Companion);
|
|
|
106
106
|
initMetadataForObject(Empty, 'Empty');
|
|
107
107
|
initMetadataForClass(Closed, 'Closed');
|
|
108
108
|
function resume() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.q3q().m9(Companion_getInstance().n3q_1);
|
|
110
110
|
}
|
|
111
111
|
function resume_0(throwable) {
|
|
112
|
-
var tmp = this.
|
|
112
|
+
var tmp = this.q3q();
|
|
113
113
|
var tmp_0;
|
|
114
114
|
if (throwable == null) {
|
|
115
115
|
tmp_0 = null;
|
|
@@ -120,7 +120,7 @@ function resume_0(throwable) {
|
|
|
120
120
|
tmp_0 = new Result(tmp$ret$0);
|
|
121
121
|
}
|
|
122
122
|
var tmp1_elvis_lhs = tmp_0;
|
|
123
|
-
return tmp.
|
|
123
|
+
return tmp.m9(tmp1_elvis_lhs == null ? Companion_getInstance().n3q_1 : tmp1_elvis_lhs.lq_1);
|
|
124
124
|
}
|
|
125
125
|
initMetadataForInterface(Task, 'Task');
|
|
126
126
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -131,7 +131,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
131
131
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
132
132
|
function awaitContent$default(min, $completion, $super) {
|
|
133
133
|
min = min === VOID ? 1 : min;
|
|
134
|
-
return $super === VOID ? this.
|
|
134
|
+
return $super === VOID ? this.x3s(min, $completion) : $super.x3s.call(this, min, $completion);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
137
137
|
function get_autoFlush() {
|
|
@@ -176,7 +176,7 @@ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID,
|
|
|
176
176
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
177
177
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
178
178
|
function close() {
|
|
179
|
-
this.
|
|
179
|
+
this.i1s();
|
|
180
180
|
}
|
|
181
181
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
182
182
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -195,10 +195,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
195
195
|
//endregion
|
|
196
196
|
function Companion() {
|
|
197
197
|
Companion_instance_0 = this;
|
|
198
|
-
this.
|
|
198
|
+
this.m3q_1 = new Closed(null);
|
|
199
199
|
var tmp = this;
|
|
200
200
|
// Inline function 'kotlin.Companion.success' call
|
|
201
|
-
tmp.
|
|
201
|
+
tmp.n3q_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
202
202
|
}
|
|
203
203
|
var Companion_instance_0;
|
|
204
204
|
function Companion_getInstance() {
|
|
@@ -226,67 +226,67 @@ function Empty_getInstance() {
|
|
|
226
226
|
return Empty_instance;
|
|
227
227
|
}
|
|
228
228
|
function Closed(cause) {
|
|
229
|
-
this.
|
|
229
|
+
this.o3q_1 = cause;
|
|
230
230
|
}
|
|
231
231
|
protoOf(Closed).toString = function () {
|
|
232
|
-
return 'Closed(cause=' + toString(this.
|
|
232
|
+
return 'Closed(cause=' + toString(this.o3q_1) + ')';
|
|
233
233
|
};
|
|
234
234
|
protoOf(Closed).hashCode = function () {
|
|
235
|
-
return this.
|
|
235
|
+
return this.o3q_1 == null ? 0 : hashCode(this.o3q_1);
|
|
236
236
|
};
|
|
237
237
|
protoOf(Closed).equals = function (other) {
|
|
238
238
|
if (this === other)
|
|
239
239
|
return true;
|
|
240
240
|
if (!(other instanceof Closed))
|
|
241
241
|
return false;
|
|
242
|
-
if (!equals(this.
|
|
242
|
+
if (!equals(this.o3q_1, other.o3q_1))
|
|
243
243
|
return false;
|
|
244
244
|
return true;
|
|
245
245
|
};
|
|
246
246
|
function Task() {
|
|
247
247
|
}
|
|
248
248
|
function Read(continuation) {
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
249
|
+
this.u3q_1 = continuation;
|
|
250
|
+
this.v3q_1 = null;
|
|
251
251
|
if (get_DEVELOPMENT_MODE()) {
|
|
252
252
|
var tmp = this;
|
|
253
253
|
// Inline function 'kotlin.also' call
|
|
254
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
254
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.u3q_1), 16));
|
|
255
255
|
stackTraceToString(this_0);
|
|
256
|
-
tmp.
|
|
256
|
+
tmp.v3q_1 = this_0;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
protoOf(Read).
|
|
260
|
-
return this.
|
|
259
|
+
protoOf(Read).q3q = function () {
|
|
260
|
+
return this.u3q_1;
|
|
261
261
|
};
|
|
262
|
-
protoOf(Read).
|
|
263
|
-
return this.
|
|
262
|
+
protoOf(Read).p3q = function () {
|
|
263
|
+
return this.v3q_1;
|
|
264
264
|
};
|
|
265
|
-
protoOf(Read).
|
|
265
|
+
protoOf(Read).r3q = function () {
|
|
266
266
|
return 'read';
|
|
267
267
|
};
|
|
268
268
|
function Write(continuation) {
|
|
269
|
-
this.
|
|
270
|
-
this.
|
|
269
|
+
this.w3q_1 = continuation;
|
|
270
|
+
this.x3q_1 = null;
|
|
271
271
|
if (get_DEVELOPMENT_MODE()) {
|
|
272
272
|
var tmp = this;
|
|
273
273
|
// Inline function 'kotlin.also' call
|
|
274
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
274
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.w3q_1), 16));
|
|
275
275
|
stackTraceToString(this_0);
|
|
276
|
-
tmp.
|
|
276
|
+
tmp.x3q_1 = this_0;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
protoOf(Write).
|
|
280
|
-
return this.
|
|
279
|
+
protoOf(Write).q3q = function () {
|
|
280
|
+
return this.w3q_1;
|
|
281
281
|
};
|
|
282
|
-
protoOf(Write).
|
|
283
|
-
return this.
|
|
282
|
+
protoOf(Write).p3q = function () {
|
|
283
|
+
return this.x3q_1;
|
|
284
284
|
};
|
|
285
|
-
protoOf(Write).
|
|
285
|
+
protoOf(Write).r3q = function () {
|
|
286
286
|
return 'write';
|
|
287
287
|
};
|
|
288
288
|
function rethrowCloseCauseIfNeeded($this) {
|
|
289
|
-
var tmp0_safe_receiver = $this.
|
|
289
|
+
var tmp0_safe_receiver = $this.h3r();
|
|
290
290
|
if (tmp0_safe_receiver == null)
|
|
291
291
|
null;
|
|
292
292
|
else {
|
|
@@ -296,48 +296,48 @@ function rethrowCloseCauseIfNeeded($this) {
|
|
|
296
296
|
}
|
|
297
297
|
function moveFlushToReadBuffer($this) {
|
|
298
298
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
299
|
-
$this.
|
|
300
|
-
$this.
|
|
301
|
-
$this.
|
|
299
|
+
$this.b3r_1;
|
|
300
|
+
$this.z3q_1.r3o($this.d3r_1);
|
|
301
|
+
$this.a3r_1 = 0;
|
|
302
302
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
303
|
-
var current = $this.
|
|
303
|
+
var current = $this.c3r_1.kotlinx$atomicfu$value;
|
|
304
304
|
var tmp;
|
|
305
305
|
if (current instanceof Write) {
|
|
306
|
-
tmp = $this.
|
|
306
|
+
tmp = $this.c3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
307
307
|
} else {
|
|
308
308
|
tmp = false;
|
|
309
309
|
}
|
|
310
310
|
if (tmp) {
|
|
311
|
-
current.
|
|
311
|
+
current.s3q();
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
function closeSlot($this, cause) {
|
|
315
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
316
|
-
var continuation = $this.
|
|
315
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().m3q_1;
|
|
316
|
+
var continuation = $this.c3r_1.atomicfu$getAndSet(closeContinuation);
|
|
317
317
|
if (isInterface(continuation, Task)) {
|
|
318
|
-
continuation.
|
|
318
|
+
continuation.t3q(cause);
|
|
319
319
|
}
|
|
320
|
-
var tmp0_safe_receiver = $this.
|
|
320
|
+
var tmp0_safe_receiver = $this.g3r_1.atomicfu$getAndSet(null);
|
|
321
321
|
if (tmp0_safe_receiver == null)
|
|
322
322
|
null;
|
|
323
323
|
else
|
|
324
324
|
tmp0_safe_receiver(cause);
|
|
325
325
|
}
|
|
326
326
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
327
|
-
this.
|
|
327
|
+
this.i3r_1 = function_0;
|
|
328
328
|
}
|
|
329
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
330
|
-
return this.
|
|
329
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).i1s = function () {
|
|
330
|
+
return this.i3r_1();
|
|
331
331
|
};
|
|
332
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
333
|
-
return this.
|
|
332
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).r3 = function () {
|
|
333
|
+
return this.i3r_1;
|
|
334
334
|
};
|
|
335
335
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
336
336
|
var tmp;
|
|
337
337
|
if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
|
|
338
338
|
var tmp_0;
|
|
339
339
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
340
|
-
tmp_0 = equals(this.
|
|
340
|
+
tmp_0 = equals(this.r3(), other.r3());
|
|
341
341
|
} else {
|
|
342
342
|
tmp_0 = false;
|
|
343
343
|
}
|
|
@@ -348,7 +348,7 @@ protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
|
348
348
|
return tmp;
|
|
349
349
|
};
|
|
350
350
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).hashCode = function () {
|
|
351
|
-
return hashCode(this.
|
|
351
|
+
return hashCode(this.r3());
|
|
352
352
|
};
|
|
353
353
|
function ByteChannel$invokeOnClose$lambda() {
|
|
354
354
|
return Unit_instance;
|
|
@@ -358,56 +358,56 @@ function ByteChannel$invokeOnClose$lambda_0() {
|
|
|
358
358
|
}
|
|
359
359
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
360
360
|
return function () {
|
|
361
|
-
this$0.
|
|
361
|
+
this$0.g3r_1.atomicfu$compareAndSet($handler, null);
|
|
362
362
|
return Unit_instance;
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
365
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
366
366
|
CoroutineImpl.call(this, resultContinuation);
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
367
|
+
this.r3r_1 = _this__u8e3s4;
|
|
368
|
+
this.s3r_1 = min;
|
|
369
369
|
}
|
|
370
|
-
protoOf($awaitContentCOROUTINE$).
|
|
371
|
-
var suspendResult = this.
|
|
370
|
+
protoOf($awaitContentCOROUTINE$).j9 = function () {
|
|
371
|
+
var suspendResult = this.d9_1;
|
|
372
372
|
$sm: do
|
|
373
373
|
try {
|
|
374
|
-
var tmp = this.
|
|
374
|
+
var tmp = this.b9_1;
|
|
375
375
|
switch (tmp) {
|
|
376
376
|
case 0:
|
|
377
|
-
this.
|
|
378
|
-
rethrowCloseCauseIfNeeded(this.
|
|
379
|
-
if (compare(this.
|
|
377
|
+
this.c9_1 = 4;
|
|
378
|
+
rethrowCloseCauseIfNeeded(this.r3r_1);
|
|
379
|
+
if (compare(this.r3r_1.d3r_1.e1(), fromInt(this.s3r_1)) >= 0)
|
|
380
380
|
return true;
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
381
|
+
this.t3r_1 = this.r3r_1;
|
|
382
|
+
this.b9_1 = 1;
|
|
383
383
|
continue $sm;
|
|
384
384
|
case 1:
|
|
385
|
-
if (!(compare(add(numberToLong(this.
|
|
386
|
-
this.
|
|
385
|
+
if (!(compare(add(numberToLong(this.r3r_1.a3r_1), this.r3r_1.d3r_1.e1()), fromInt(this.s3r_1)) < 0 && this.r3r_1.f3r_1.kotlinx$atomicfu$value == null)) {
|
|
386
|
+
this.b9_1 = 3;
|
|
387
387
|
continue $sm;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
|
-
this.
|
|
390
|
+
this.b9_1 = 2;
|
|
391
391
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
392
|
-
cancellable.
|
|
393
|
-
var tmp0 = this.
|
|
392
|
+
cancellable.l1t();
|
|
393
|
+
var tmp0 = this.t3r_1;
|
|
394
394
|
var tmp2 = new Read(cancellable);
|
|
395
395
|
l$ret$1: do {
|
|
396
|
-
var previous = tmp0.
|
|
396
|
+
var previous = tmp0.c3r_1.kotlinx$atomicfu$value;
|
|
397
397
|
if (!(previous instanceof Closed)) {
|
|
398
|
-
if (!tmp0.
|
|
399
|
-
tmp2.
|
|
398
|
+
if (!tmp0.c3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
399
|
+
tmp2.s3q();
|
|
400
400
|
break l$ret$1;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
if (previous instanceof Read) {
|
|
404
|
-
previous.
|
|
404
|
+
previous.t3q(new ConcurrentIOException(tmp2.r3q(), previous.p3q()));
|
|
405
405
|
} else {
|
|
406
406
|
if (isInterface(previous, Task)) {
|
|
407
|
-
previous.
|
|
407
|
+
previous.s3q();
|
|
408
408
|
} else {
|
|
409
409
|
if (previous instanceof Closed) {
|
|
410
|
-
tmp2.
|
|
410
|
+
tmp2.t3q(previous.o3q_1);
|
|
411
411
|
break l$ret$1;
|
|
412
412
|
} else {
|
|
413
413
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -416,96 +416,96 @@ protoOf($awaitContentCOROUTINE$).e9 = function () {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
if (!(compare(add(numberToLong(this.
|
|
420
|
-
var current = tmp0.
|
|
419
|
+
if (!(compare(add(numberToLong(this.r3r_1.a3r_1), this.r3r_1.d3r_1.e1()), fromInt(this.s3r_1)) < 0 && this.r3r_1.f3r_1.kotlinx$atomicfu$value == null)) {
|
|
420
|
+
var current = tmp0.c3r_1.kotlinx$atomicfu$value;
|
|
421
421
|
var tmp_0;
|
|
422
422
|
if (current instanceof Read) {
|
|
423
|
-
tmp_0 = tmp0.
|
|
423
|
+
tmp_0 = tmp0.c3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
424
424
|
} else {
|
|
425
425
|
tmp_0 = false;
|
|
426
426
|
}
|
|
427
427
|
if (tmp_0) {
|
|
428
|
-
current.
|
|
428
|
+
current.s3q();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
while (false);
|
|
433
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
433
|
+
suspendResult = returnIfSuspended(cancellable.m1t(), this);
|
|
434
434
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
435
435
|
return suspendResult;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
continue $sm;
|
|
439
439
|
case 2:
|
|
440
|
-
this.
|
|
440
|
+
this.b9_1 = 1;
|
|
441
441
|
continue $sm;
|
|
442
442
|
case 3:
|
|
443
|
-
rethrowCloseCauseIfNeeded(this.
|
|
444
|
-
if (compare(this.
|
|
445
|
-
moveFlushToReadBuffer(this.
|
|
443
|
+
rethrowCloseCauseIfNeeded(this.r3r_1);
|
|
444
|
+
if (compare(this.r3r_1.d3r_1.e1(), new Long(1048576, 0)) < 0) {
|
|
445
|
+
moveFlushToReadBuffer(this.r3r_1);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
return compare(this.
|
|
448
|
+
return compare(this.r3r_1.d3r_1.e1(), fromInt(this.s3r_1)) >= 0;
|
|
449
449
|
case 4:
|
|
450
|
-
throw this.
|
|
450
|
+
throw this.e9_1;
|
|
451
451
|
}
|
|
452
452
|
} catch ($p) {
|
|
453
453
|
var e = $p;
|
|
454
|
-
if (this.
|
|
454
|
+
if (this.c9_1 === 4) {
|
|
455
455
|
throw e;
|
|
456
456
|
} else {
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
457
|
+
this.b9_1 = this.c9_1;
|
|
458
|
+
this.e9_1 = e;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
while (true);
|
|
462
462
|
};
|
|
463
463
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
464
464
|
CoroutineImpl.call(this, resultContinuation);
|
|
465
|
-
this.
|
|
465
|
+
this.c3s_1 = _this__u8e3s4;
|
|
466
466
|
}
|
|
467
|
-
protoOf($flushCOROUTINE$).
|
|
468
|
-
var suspendResult = this.
|
|
467
|
+
protoOf($flushCOROUTINE$).j9 = function () {
|
|
468
|
+
var suspendResult = this.d9_1;
|
|
469
469
|
$sm: do
|
|
470
470
|
try {
|
|
471
|
-
var tmp = this.
|
|
471
|
+
var tmp = this.b9_1;
|
|
472
472
|
switch (tmp) {
|
|
473
473
|
case 0:
|
|
474
|
-
this.
|
|
475
|
-
rethrowCloseCauseIfNeeded(this.
|
|
476
|
-
this.
|
|
477
|
-
if (this.
|
|
474
|
+
this.c9_1 = 4;
|
|
475
|
+
rethrowCloseCauseIfNeeded(this.c3s_1);
|
|
476
|
+
this.c3s_1.e3s();
|
|
477
|
+
if (this.c3s_1.f3s())
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
this.
|
|
480
|
-
this.
|
|
479
|
+
this.d3s_1 = this.c3s_1;
|
|
480
|
+
this.b9_1 = 1;
|
|
481
481
|
continue $sm;
|
|
482
482
|
case 1:
|
|
483
|
-
if (!(!this.
|
|
484
|
-
this.
|
|
483
|
+
if (!(!this.c3s_1.f3s() && this.c3s_1.f3r_1.kotlinx$atomicfu$value == null)) {
|
|
484
|
+
this.b9_1 = 3;
|
|
485
485
|
continue $sm;
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
this.
|
|
488
|
+
this.b9_1 = 2;
|
|
489
489
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
490
|
-
cancellable.
|
|
491
|
-
var tmp0 = this.
|
|
490
|
+
cancellable.l1t();
|
|
491
|
+
var tmp0 = this.d3s_1;
|
|
492
492
|
var tmp2 = new Write(cancellable);
|
|
493
493
|
l$ret$1: do {
|
|
494
|
-
var previous = tmp0.
|
|
494
|
+
var previous = tmp0.c3r_1.kotlinx$atomicfu$value;
|
|
495
495
|
if (!(previous instanceof Closed)) {
|
|
496
|
-
if (!tmp0.
|
|
497
|
-
tmp2.
|
|
496
|
+
if (!tmp0.c3r_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
497
|
+
tmp2.s3q();
|
|
498
498
|
break l$ret$1;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
if (previous instanceof Write) {
|
|
502
|
-
previous.
|
|
502
|
+
previous.t3q(new ConcurrentIOException(tmp2.r3q(), previous.p3q()));
|
|
503
503
|
} else {
|
|
504
504
|
if (isInterface(previous, Task)) {
|
|
505
|
-
previous.
|
|
505
|
+
previous.s3q();
|
|
506
506
|
} else {
|
|
507
507
|
if (previous instanceof Closed) {
|
|
508
|
-
tmp2.
|
|
508
|
+
tmp2.t3q(previous.o3q_1);
|
|
509
509
|
break l$ret$1;
|
|
510
510
|
} else {
|
|
511
511
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -514,62 +514,62 @@ protoOf($flushCOROUTINE$).e9 = function () {
|
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
if (!(!this.
|
|
518
|
-
var current = tmp0.
|
|
517
|
+
if (!(!this.c3s_1.f3s() && this.c3s_1.f3r_1.kotlinx$atomicfu$value == null)) {
|
|
518
|
+
var current = tmp0.c3r_1.kotlinx$atomicfu$value;
|
|
519
519
|
var tmp_0;
|
|
520
520
|
if (current instanceof Write) {
|
|
521
|
-
tmp_0 = tmp0.
|
|
521
|
+
tmp_0 = tmp0.c3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
522
522
|
} else {
|
|
523
523
|
tmp_0 = false;
|
|
524
524
|
}
|
|
525
525
|
if (tmp_0) {
|
|
526
|
-
current.
|
|
526
|
+
current.s3q();
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
while (false);
|
|
531
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
531
|
+
suspendResult = returnIfSuspended(cancellable.m1t(), this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
continue $sm;
|
|
537
537
|
case 2:
|
|
538
|
-
this.
|
|
538
|
+
this.b9_1 = 1;
|
|
539
539
|
continue $sm;
|
|
540
540
|
case 3:
|
|
541
541
|
return Unit_instance;
|
|
542
542
|
case 4:
|
|
543
|
-
throw this.
|
|
543
|
+
throw this.e9_1;
|
|
544
544
|
}
|
|
545
545
|
} catch ($p) {
|
|
546
546
|
var e = $p;
|
|
547
|
-
if (this.
|
|
547
|
+
if (this.c9_1 === 4) {
|
|
548
548
|
throw e;
|
|
549
549
|
} else {
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
550
|
+
this.b9_1 = this.c9_1;
|
|
551
|
+
this.e9_1 = e;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
while (true);
|
|
555
555
|
};
|
|
556
556
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
557
557
|
CoroutineImpl.call(this, resultContinuation);
|
|
558
|
-
this.
|
|
558
|
+
this.o3s_1 = _this__u8e3s4;
|
|
559
559
|
}
|
|
560
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
561
|
-
var suspendResult = this.
|
|
560
|
+
protoOf($flushAndCloseCOROUTINE$).j9 = function () {
|
|
561
|
+
var suspendResult = this.d9_1;
|
|
562
562
|
$sm: do
|
|
563
563
|
try {
|
|
564
|
-
var tmp = this.
|
|
564
|
+
var tmp = this.b9_1;
|
|
565
565
|
switch (tmp) {
|
|
566
566
|
case 0:
|
|
567
|
-
this.
|
|
568
|
-
var this_0 = this.
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
suspendResult = this_0.
|
|
567
|
+
this.c9_1 = 4;
|
|
568
|
+
var this_0 = this.o3s_1;
|
|
569
|
+
this.c9_1 = 2;
|
|
570
|
+
this.q3s_1 = Companion_instance;
|
|
571
|
+
this.b9_1 = 1;
|
|
572
|
+
suspendResult = this_0.r3s(this);
|
|
573
573
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
574
574
|
return suspendResult;
|
|
575
575
|
}
|
|
@@ -577,64 +577,64 @@ protoOf($flushAndCloseCOROUTINE$).e9 = function () {
|
|
|
577
577
|
continue $sm;
|
|
578
578
|
case 1:
|
|
579
579
|
var tmp_0 = this;
|
|
580
|
-
this.
|
|
581
|
-
tmp_0.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
580
|
+
this.q3s_1;
|
|
581
|
+
tmp_0.p3s_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
582
|
+
this.c9_1 = 4;
|
|
583
|
+
this.b9_1 = 3;
|
|
584
584
|
continue $sm;
|
|
585
585
|
case 2:
|
|
586
|
-
this.
|
|
587
|
-
var tmp_1 = this.
|
|
586
|
+
this.c9_1 = 4;
|
|
587
|
+
var tmp_1 = this.e9_1;
|
|
588
588
|
if (tmp_1 instanceof Error) {
|
|
589
|
-
var e = this.
|
|
589
|
+
var e = this.e9_1;
|
|
590
590
|
var tmp_2 = this;
|
|
591
|
-
tmp_2.
|
|
592
|
-
this.
|
|
591
|
+
tmp_2.p3s_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
592
|
+
this.b9_1 = 3;
|
|
593
593
|
continue $sm;
|
|
594
594
|
} else {
|
|
595
|
-
throw this.
|
|
595
|
+
throw this.e9_1;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
case 3:
|
|
599
|
-
this.
|
|
600
|
-
if (!this.
|
|
599
|
+
this.c9_1 = 4;
|
|
600
|
+
if (!this.o3s_1.f3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
601
601
|
return Unit_instance;
|
|
602
|
-
closeSlot(this.
|
|
602
|
+
closeSlot(this.o3s_1, null);
|
|
603
603
|
return Unit_instance;
|
|
604
604
|
case 4:
|
|
605
|
-
throw this.
|
|
605
|
+
throw this.e9_1;
|
|
606
606
|
}
|
|
607
607
|
} catch ($p) {
|
|
608
608
|
var e_0 = $p;
|
|
609
|
-
if (this.
|
|
609
|
+
if (this.c9_1 === 4) {
|
|
610
610
|
throw e_0;
|
|
611
611
|
} else {
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
612
|
+
this.b9_1 = this.c9_1;
|
|
613
|
+
this.e9_1 = e_0;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
while (true);
|
|
617
617
|
};
|
|
618
618
|
function ByteChannel(autoFlush) {
|
|
619
619
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
}
|
|
630
|
-
protoOf(ByteChannel).
|
|
631
|
-
return this.
|
|
632
|
-
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
return this.
|
|
635
|
-
};
|
|
636
|
-
protoOf(ByteChannel).
|
|
637
|
-
var tmp0_safe_receiver = this.
|
|
620
|
+
this.y3q_1 = autoFlush;
|
|
621
|
+
this.z3q_1 = new Buffer();
|
|
622
|
+
this.a3r_1 = 0;
|
|
623
|
+
this.b3r_1 = new Object();
|
|
624
|
+
this.c3r_1 = atomic$ref$1(Empty_instance);
|
|
625
|
+
this.d3r_1 = new Buffer();
|
|
626
|
+
this.e3r_1 = new Buffer();
|
|
627
|
+
this.f3r_1 = atomic$ref$1(null);
|
|
628
|
+
this.g3r_1 = atomic$ref$1(null);
|
|
629
|
+
}
|
|
630
|
+
protoOf(ByteChannel).s3s = function () {
|
|
631
|
+
return this.y3q_1;
|
|
632
|
+
};
|
|
633
|
+
protoOf(ByteChannel).f3s = function () {
|
|
634
|
+
return this.a3r_1 < 1048576;
|
|
635
|
+
};
|
|
636
|
+
protoOf(ByteChannel).t3s = function () {
|
|
637
|
+
var tmp0_safe_receiver = this.f3r_1.kotlinx$atomicfu$value;
|
|
638
638
|
if (tmp0_safe_receiver == null)
|
|
639
639
|
null;
|
|
640
640
|
else {
|
|
@@ -646,7 +646,7 @@ protoOf(ByteChannel).f3o = function () {
|
|
|
646
646
|
tmp = null;
|
|
647
647
|
} else {
|
|
648
648
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
649
|
-
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
649
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).c1y();
|
|
650
650
|
} else {
|
|
651
651
|
if (tmp0_subject instanceof CancellationException) {
|
|
652
652
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -665,14 +665,14 @@ protoOf(ByteChannel).f3o = function () {
|
|
|
665
665
|
throw tmp0_safe_receiver_0;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
if (this.
|
|
668
|
+
if (this.d3r_1.o3n()) {
|
|
669
669
|
moveFlushToReadBuffer(this);
|
|
670
670
|
}
|
|
671
|
-
return this.
|
|
671
|
+
return this.d3r_1;
|
|
672
672
|
};
|
|
673
|
-
protoOf(ByteChannel).
|
|
674
|
-
if (this.
|
|
675
|
-
var tmp0_safe_receiver = this.
|
|
673
|
+
protoOf(ByteChannel).u3s = function () {
|
|
674
|
+
if (this.v3s()) {
|
|
675
|
+
var tmp0_safe_receiver = this.f3r_1.kotlinx$atomicfu$value;
|
|
676
676
|
var tmp;
|
|
677
677
|
if (tmp0_safe_receiver == null) {
|
|
678
678
|
tmp = null;
|
|
@@ -685,7 +685,7 @@ protoOf(ByteChannel).g3o = function () {
|
|
|
685
685
|
tmp_0 = null;
|
|
686
686
|
} else {
|
|
687
687
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
688
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
688
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).c1y();
|
|
689
689
|
} else {
|
|
690
690
|
if (tmp0_subject instanceof CancellationException) {
|
|
691
691
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -708,10 +708,10 @@ protoOf(ByteChannel).g3o = function () {
|
|
|
708
708
|
if (tmp == null)
|
|
709
709
|
throw new ClosedWriteChannelException();
|
|
710
710
|
}
|
|
711
|
-
return this.
|
|
711
|
+
return this.e3r_1;
|
|
712
712
|
};
|
|
713
|
-
protoOf(ByteChannel).
|
|
714
|
-
var tmp0_safe_receiver = this.
|
|
713
|
+
protoOf(ByteChannel).h3r = function () {
|
|
714
|
+
var tmp0_safe_receiver = this.f3r_1.kotlinx$atomicfu$value;
|
|
715
715
|
var tmp;
|
|
716
716
|
if (tmp0_safe_receiver == null) {
|
|
717
717
|
tmp = null;
|
|
@@ -723,7 +723,7 @@ protoOf(ByteChannel).t3m = function () {
|
|
|
723
723
|
tmp_0 = null;
|
|
724
724
|
} else {
|
|
725
725
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
726
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
726
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).c1y();
|
|
727
727
|
} else {
|
|
728
728
|
if (tmp0_subject instanceof CancellationException) {
|
|
729
729
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -737,61 +737,61 @@ protoOf(ByteChannel).t3m = function () {
|
|
|
737
737
|
}
|
|
738
738
|
return tmp;
|
|
739
739
|
};
|
|
740
|
-
protoOf(ByteChannel).
|
|
741
|
-
return !(this.
|
|
740
|
+
protoOf(ByteChannel).v3s = function () {
|
|
741
|
+
return !(this.f3r_1.kotlinx$atomicfu$value == null);
|
|
742
742
|
};
|
|
743
|
-
protoOf(ByteChannel).
|
|
744
|
-
return !(this.
|
|
743
|
+
protoOf(ByteChannel).w3s = function () {
|
|
744
|
+
return !(this.h3r() == null) || (this.v3s() && this.a3r_1 === 0 && this.d3r_1.o3n());
|
|
745
745
|
};
|
|
746
|
-
protoOf(ByteChannel).
|
|
746
|
+
protoOf(ByteChannel).x3s = function (min, $completion) {
|
|
747
747
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
748
|
-
tmp.
|
|
749
|
-
tmp.
|
|
750
|
-
return tmp.
|
|
748
|
+
tmp.d9_1 = Unit_instance;
|
|
749
|
+
tmp.e9_1 = null;
|
|
750
|
+
return tmp.j9();
|
|
751
751
|
};
|
|
752
|
-
protoOf(ByteChannel).
|
|
752
|
+
protoOf(ByteChannel).r3s = function ($completion) {
|
|
753
753
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
754
|
-
tmp.
|
|
755
|
-
tmp.
|
|
756
|
-
return tmp.
|
|
754
|
+
tmp.d9_1 = Unit_instance;
|
|
755
|
+
tmp.e9_1 = null;
|
|
756
|
+
return tmp.j9();
|
|
757
757
|
};
|
|
758
|
-
protoOf(ByteChannel).
|
|
759
|
-
if (this.
|
|
758
|
+
protoOf(ByteChannel).e3s = function () {
|
|
759
|
+
if (this.e3r_1.o3n())
|
|
760
760
|
return Unit_instance;
|
|
761
761
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
762
|
-
this.
|
|
763
|
-
var count = convertToInt(this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
762
|
+
this.b3r_1;
|
|
763
|
+
var count = convertToInt(this.e3r_1.e1());
|
|
764
|
+
this.z3q_1.g3p(this.e3r_1);
|
|
765
|
+
this.a3r_1 = this.a3r_1 + count | 0;
|
|
766
766
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
767
|
-
var current = this.
|
|
767
|
+
var current = this.c3r_1.kotlinx$atomicfu$value;
|
|
768
768
|
var tmp;
|
|
769
769
|
if (current instanceof Read) {
|
|
770
|
-
tmp = this.
|
|
770
|
+
tmp = this.c3r_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
771
771
|
} else {
|
|
772
772
|
tmp = false;
|
|
773
773
|
}
|
|
774
774
|
if (tmp) {
|
|
775
|
-
current.
|
|
775
|
+
current.s3q();
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
|
-
protoOf(ByteChannel).
|
|
779
|
-
this.
|
|
780
|
-
if (!this.
|
|
778
|
+
protoOf(ByteChannel).j4 = function () {
|
|
779
|
+
this.e3s();
|
|
780
|
+
if (!this.f3r_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
781
781
|
return Unit_instance;
|
|
782
782
|
closeSlot(this, null);
|
|
783
783
|
};
|
|
784
|
-
protoOf(ByteChannel).
|
|
784
|
+
protoOf(ByteChannel).z3s = function ($completion) {
|
|
785
785
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
786
|
-
tmp.
|
|
787
|
-
tmp.
|
|
788
|
-
return tmp.
|
|
786
|
+
tmp.d9_1 = Unit_instance;
|
|
787
|
+
tmp.e9_1 = null;
|
|
788
|
+
return tmp.j9();
|
|
789
789
|
};
|
|
790
|
-
protoOf(ByteChannel).
|
|
791
|
-
if (!(this.
|
|
790
|
+
protoOf(ByteChannel).a3t = function (cause) {
|
|
791
|
+
if (!(this.f3r_1.kotlinx$atomicfu$value == null))
|
|
792
792
|
return Unit_instance;
|
|
793
793
|
var closedToken = new CloseToken(cause);
|
|
794
|
-
this.
|
|
794
|
+
this.f3r_1.atomicfu$compareAndSet(null, closedToken);
|
|
795
795
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
796
796
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
797
797
|
var tmp;
|
|
@@ -799,7 +799,7 @@ protoOf(ByteChannel).m3o = function (cause) {
|
|
|
799
799
|
tmp = null;
|
|
800
800
|
} else {
|
|
801
801
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
802
|
-
tmp = access$_get_origin__hdh1qz(closedToken).
|
|
802
|
+
tmp = access$_get_origin__hdh1qz(closedToken).c1y();
|
|
803
803
|
} else {
|
|
804
804
|
if (tmp0_subject instanceof CancellationException) {
|
|
805
805
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
@@ -812,8 +812,8 @@ protoOf(ByteChannel).m3o = function (cause) {
|
|
|
812
812
|
var wrappedCause = tmp;
|
|
813
813
|
closeSlot(this, wrappedCause);
|
|
814
814
|
};
|
|
815
|
-
protoOf(ByteChannel).
|
|
816
|
-
var existingCause = this.
|
|
815
|
+
protoOf(ByteChannel).b3t = function (handler) {
|
|
816
|
+
var existingCause = this.f3r_1.kotlinx$atomicfu$value;
|
|
817
817
|
if (!(existingCause == null)) {
|
|
818
818
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
819
819
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -822,7 +822,7 @@ protoOf(ByteChannel).n3o = function (handler) {
|
|
|
822
822
|
tmp = null;
|
|
823
823
|
} else {
|
|
824
824
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
825
|
-
tmp = access$_get_origin__hdh1qz(existingCause).
|
|
825
|
+
tmp = access$_get_origin__hdh1qz(existingCause).c1y();
|
|
826
826
|
} else {
|
|
827
827
|
if (tmp0_subject instanceof CancellationException) {
|
|
828
828
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
@@ -836,13 +836,13 @@ protoOf(ByteChannel).n3o = function (handler) {
|
|
|
836
836
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
837
837
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
838
838
|
}
|
|
839
|
-
if (!this.
|
|
839
|
+
if (!this.g3r_1.atomicfu$compareAndSet(null, handler)) {
|
|
840
840
|
// Inline function 'kotlin.error' call
|
|
841
841
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
842
842
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
843
843
|
}
|
|
844
|
-
var cause = this.
|
|
845
|
-
if (!(cause == null) && this.
|
|
844
|
+
var cause = this.f3r_1.kotlinx$atomicfu$value;
|
|
845
|
+
if (!(cause == null) && this.g3r_1.atomicfu$compareAndSet(handler, null)) {
|
|
846
846
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
847
847
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
848
848
|
var tmp_1;
|
|
@@ -850,7 +850,7 @@ protoOf(ByteChannel).n3o = function (handler) {
|
|
|
850
850
|
tmp_1 = null;
|
|
851
851
|
} else {
|
|
852
852
|
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
853
|
-
tmp_1 = access$_get_origin__hdh1qz(cause).
|
|
853
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).c1y();
|
|
854
854
|
} else {
|
|
855
855
|
if (tmp0_subject_0 instanceof CancellationException) {
|
|
856
856
|
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
@@ -880,7 +880,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
880
880
|
length = length === VOID ? content.length : length;
|
|
881
881
|
// Inline function 'kotlin.also' call
|
|
882
882
|
var this_0 = new Buffer();
|
|
883
|
-
this_0.
|
|
883
|
+
this_0.x3o(content, offset, offset + length | 0);
|
|
884
884
|
var source = this_0;
|
|
885
885
|
return ByteReadChannel_0(source);
|
|
886
886
|
}
|
|
@@ -888,18 +888,18 @@ function ByteReadChannel_0(source) {
|
|
|
888
888
|
return new SourceByteReadChannel(source);
|
|
889
889
|
}
|
|
890
890
|
function buildPartialMatchTable($this) {
|
|
891
|
-
var table = new Int32Array($this.
|
|
891
|
+
var table = new Int32Array($this.d3t_1.e1());
|
|
892
892
|
var j = 0;
|
|
893
893
|
var inductionVariable = 1;
|
|
894
|
-
var last = $this.
|
|
894
|
+
var last = $this.d3t_1.e1();
|
|
895
895
|
if (inductionVariable < last)
|
|
896
896
|
do {
|
|
897
897
|
var i = inductionVariable;
|
|
898
898
|
inductionVariable = inductionVariable + 1 | 0;
|
|
899
|
-
while (j > 0 && !($this.
|
|
899
|
+
while (j > 0 && !($this.d3t_1.f1(i) === $this.d3t_1.f1(j))) {
|
|
900
900
|
j = table[j - 1 | 0];
|
|
901
901
|
}
|
|
902
|
-
if ($this.
|
|
902
|
+
if ($this.d3t_1.f1(i) === $this.d3t_1.f1(j)) {
|
|
903
903
|
j = j + 1 | 0;
|
|
904
904
|
}
|
|
905
905
|
table[i] = j;
|
|
@@ -909,19 +909,19 @@ function buildPartialMatchTable($this) {
|
|
|
909
909
|
}
|
|
910
910
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
911
911
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
912
|
-
tmp.
|
|
913
|
-
tmp.
|
|
914
|
-
return tmp.
|
|
912
|
+
tmp.d9_1 = Unit_instance;
|
|
913
|
+
tmp.e9_1 = null;
|
|
914
|
+
return tmp.j9();
|
|
915
915
|
}
|
|
916
916
|
function checkFullMatch($this, $completion) {
|
|
917
917
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
918
|
-
tmp.
|
|
919
|
-
tmp.
|
|
920
|
-
return tmp.
|
|
918
|
+
tmp.d9_1 = Unit_instance;
|
|
919
|
+
tmp.e9_1 = null;
|
|
920
|
+
return tmp.j9();
|
|
921
921
|
}
|
|
922
922
|
function checkBounds($this, extra) {
|
|
923
|
-
if (compare(add($this.
|
|
924
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
923
|
+
if (compare(add($this.j3t_1, extra), $this.f3t_1) > 0) {
|
|
924
|
+
throw IOException_init_$Create$('Limit of ' + $this.f3t_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.d3t_1) + '"'));
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
function toSingleLineString($this, $receiver) {
|
|
@@ -929,28 +929,28 @@ function toSingleLineString($this, $receiver) {
|
|
|
929
929
|
}
|
|
930
930
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
931
931
|
CoroutineImpl.call(this, resultContinuation);
|
|
932
|
-
this.
|
|
933
|
-
this.
|
|
932
|
+
this.o3u_1 = _this__u8e3s4;
|
|
933
|
+
this.p3u_1 = ignoreMissing;
|
|
934
934
|
}
|
|
935
|
-
protoOf($findNextCOROUTINE$).
|
|
936
|
-
var suspendResult = this.
|
|
935
|
+
protoOf($findNextCOROUTINE$).j9 = function () {
|
|
936
|
+
var suspendResult = this.d9_1;
|
|
937
937
|
$sm: do
|
|
938
938
|
try {
|
|
939
|
-
var tmp = this.
|
|
939
|
+
var tmp = this.b9_1;
|
|
940
940
|
switch (tmp) {
|
|
941
941
|
case 0:
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
942
|
+
this.c9_1 = 9;
|
|
943
|
+
this.o3u_1.j3t_1 = new Long(0, 0);
|
|
944
|
+
this.b9_1 = 1;
|
|
945
945
|
continue $sm;
|
|
946
946
|
case 1:
|
|
947
|
-
if (!this.
|
|
948
|
-
this.
|
|
949
|
-
this.
|
|
947
|
+
if (!this.o3u_1.g3t_1.o3n()) {
|
|
948
|
+
this.q3u_1 = true;
|
|
949
|
+
this.b9_1 = 3;
|
|
950
950
|
continue $sm;
|
|
951
951
|
} else {
|
|
952
|
-
this.
|
|
953
|
-
suspendResult = this.
|
|
952
|
+
this.b9_1 = 2;
|
|
953
|
+
suspendResult = this.o3u_1.c3t_1.y3s(VOID, this);
|
|
954
954
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
955
955
|
return suspendResult;
|
|
956
956
|
}
|
|
@@ -958,25 +958,25 @@ protoOf($findNextCOROUTINE$).e9 = function () {
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
case 2:
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
961
|
+
this.q3u_1 = suspendResult;
|
|
962
|
+
this.b9_1 = 3;
|
|
963
963
|
continue $sm;
|
|
964
964
|
case 3:
|
|
965
|
-
if (!this.
|
|
966
|
-
this.
|
|
965
|
+
if (!this.q3u_1) {
|
|
966
|
+
this.b9_1 = 7;
|
|
967
967
|
continue $sm;
|
|
968
968
|
}
|
|
969
969
|
|
|
970
|
-
this.
|
|
971
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
970
|
+
this.b9_1 = 4;
|
|
971
|
+
suspendResult = advanceToNextPotentialMatch(this.o3u_1, this);
|
|
972
972
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
973
973
|
return suspendResult;
|
|
974
974
|
}
|
|
975
975
|
|
|
976
976
|
continue $sm;
|
|
977
977
|
case 4:
|
|
978
|
-
this.
|
|
979
|
-
suspendResult = checkFullMatch(this.
|
|
978
|
+
this.b9_1 = 5;
|
|
979
|
+
suspendResult = checkFullMatch(this.o3u_1, this);
|
|
980
980
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
981
981
|
return suspendResult;
|
|
982
982
|
}
|
|
@@ -984,66 +984,66 @@ protoOf($findNextCOROUTINE$).e9 = function () {
|
|
|
984
984
|
continue $sm;
|
|
985
985
|
case 5:
|
|
986
986
|
if (suspendResult) {
|
|
987
|
-
return this.
|
|
987
|
+
return this.o3u_1.j3t_1;
|
|
988
988
|
} else {
|
|
989
|
-
this.
|
|
989
|
+
this.b9_1 = 6;
|
|
990
990
|
continue $sm;
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
case 6:
|
|
994
|
-
this.
|
|
994
|
+
this.b9_1 = 1;
|
|
995
995
|
continue $sm;
|
|
996
996
|
case 7:
|
|
997
|
-
if (!this.
|
|
998
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
997
|
+
if (!this.p3u_1) {
|
|
998
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.o3u_1, this.o3u_1.d3t_1) + '" but encountered end of input');
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
|
-
this.
|
|
1002
|
-
this.
|
|
1003
|
-
suspendResult = this.
|
|
1001
|
+
this.o3u_1.j3t_1 = add(this.o3u_1.j3t_1, this.o3u_1.i3t_1.r3o(this.o3u_1.e3t_1.u3s()));
|
|
1002
|
+
this.b9_1 = 8;
|
|
1003
|
+
suspendResult = this.o3u_1.e3t_1.r3s(this);
|
|
1004
1004
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1005
1005
|
return suspendResult;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
continue $sm;
|
|
1009
1009
|
case 8:
|
|
1010
|
-
return this.
|
|
1010
|
+
return this.o3u_1.j3t_1;
|
|
1011
1011
|
case 9:
|
|
1012
|
-
throw this.
|
|
1012
|
+
throw this.e9_1;
|
|
1013
1013
|
}
|
|
1014
1014
|
} catch ($p) {
|
|
1015
1015
|
var e = $p;
|
|
1016
|
-
if (this.
|
|
1016
|
+
if (this.c9_1 === 9) {
|
|
1017
1017
|
throw e;
|
|
1018
1018
|
} else {
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1019
|
+
this.b9_1 = this.c9_1;
|
|
1020
|
+
this.e9_1 = e;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
1023
|
while (true);
|
|
1024
1024
|
};
|
|
1025
1025
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1026
1026
|
CoroutineImpl.call(this, resultContinuation);
|
|
1027
|
-
this.
|
|
1027
|
+
this.t3t_1 = _this__u8e3s4;
|
|
1028
1028
|
}
|
|
1029
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
1030
|
-
var suspendResult = this.
|
|
1029
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).j9 = function () {
|
|
1030
|
+
var suspendResult = this.d9_1;
|
|
1031
1031
|
$sm: do
|
|
1032
1032
|
try {
|
|
1033
|
-
var tmp = this.
|
|
1033
|
+
var tmp = this.b9_1;
|
|
1034
1034
|
switch (tmp) {
|
|
1035
1035
|
case 0:
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1036
|
+
this.c9_1 = 8;
|
|
1037
|
+
this.b9_1 = 1;
|
|
1038
1038
|
continue $sm;
|
|
1039
1039
|
case 1:
|
|
1040
|
-
if (!this.
|
|
1041
|
-
this.
|
|
1042
|
-
this.
|
|
1040
|
+
if (!this.t3t_1.g3t_1.o3n()) {
|
|
1041
|
+
this.u3t_1 = true;
|
|
1042
|
+
this.b9_1 = 3;
|
|
1043
1043
|
continue $sm;
|
|
1044
1044
|
} else {
|
|
1045
|
-
this.
|
|
1046
|
-
suspendResult = this.
|
|
1045
|
+
this.b9_1 = 2;
|
|
1046
|
+
suspendResult = this.t3t_1.c3t_1.y3s(VOID, this);
|
|
1047
1047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1048
1048
|
return suspendResult;
|
|
1049
1049
|
}
|
|
@@ -1051,34 +1051,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).e9 = function () {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
1053
|
case 2:
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1054
|
+
this.u3t_1 = suspendResult;
|
|
1055
|
+
this.b9_1 = 3;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 3:
|
|
1058
|
-
if (!this.
|
|
1059
|
-
this.
|
|
1058
|
+
if (!this.u3t_1) {
|
|
1059
|
+
this.b9_1 = 7;
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
var nextMatch = indexOf(this.
|
|
1063
|
+
var nextMatch = indexOf(this.t3t_1.g3t_1, this.t3t_1.d3t_1.f1(0));
|
|
1064
1064
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
1065
|
-
var tmp_0 = this.
|
|
1066
|
-
checkBounds(this.
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1069
|
-
suspendResult = flushIfNeeded(this.
|
|
1065
|
+
var tmp_0 = this.t3t_1.g3t_1;
|
|
1066
|
+
checkBounds(this.t3t_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).e1());
|
|
1067
|
+
this.t3t_1.j3t_1 = add(this.t3t_1.j3t_1, this.t3t_1.g3t_1.r3o(this.t3t_1.e3t_1.u3s()));
|
|
1068
|
+
this.b9_1 = 5;
|
|
1069
|
+
suspendResult = flushIfNeeded(this.t3t_1.e3t_1, this);
|
|
1070
1070
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1071
1071
|
return suspendResult;
|
|
1072
1072
|
}
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
} else {
|
|
1075
|
-
checkBounds(this.
|
|
1076
|
-
var tmp_1 = this.
|
|
1077
|
-
var tmp_2 = this.
|
|
1078
|
-
var tmp_3 = this.
|
|
1079
|
-
tmp_1.
|
|
1080
|
-
this.
|
|
1081
|
-
suspendResult = flushIfNeeded(this.
|
|
1075
|
+
checkBounds(this.t3t_1, nextMatch);
|
|
1076
|
+
var tmp_1 = this.t3t_1;
|
|
1077
|
+
var tmp_2 = this.t3t_1.j3t_1;
|
|
1078
|
+
var tmp_3 = this.t3t_1.e3t_1.u3s();
|
|
1079
|
+
tmp_1.j3t_1 = add(tmp_2, this.t3t_1.g3t_1.o3o(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1080
|
+
this.b9_1 = 4;
|
|
1081
|
+
suspendResult = flushIfNeeded(this.t3t_1.e3t_1, this);
|
|
1082
1082
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1083
1083
|
return suspendResult;
|
|
1084
1084
|
}
|
|
@@ -1088,49 +1088,49 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).e9 = function () {
|
|
|
1088
1088
|
case 4:
|
|
1089
1089
|
return Unit_instance;
|
|
1090
1090
|
case 5:
|
|
1091
|
-
this.
|
|
1091
|
+
this.b9_1 = 6;
|
|
1092
1092
|
continue $sm;
|
|
1093
1093
|
case 6:
|
|
1094
|
-
this.
|
|
1094
|
+
this.b9_1 = 1;
|
|
1095
1095
|
continue $sm;
|
|
1096
1096
|
case 7:
|
|
1097
1097
|
return Unit_instance;
|
|
1098
1098
|
case 8:
|
|
1099
|
-
throw this.
|
|
1099
|
+
throw this.e9_1;
|
|
1100
1100
|
}
|
|
1101
1101
|
} catch ($p) {
|
|
1102
1102
|
var e = $p;
|
|
1103
|
-
if (this.
|
|
1103
|
+
if (this.c9_1 === 8) {
|
|
1104
1104
|
throw e;
|
|
1105
1105
|
} else {
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1106
|
+
this.b9_1 = this.c9_1;
|
|
1107
|
+
this.e9_1 = e;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
1110
|
while (true);
|
|
1111
1111
|
};
|
|
1112
1112
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1113
1113
|
CoroutineImpl.call(this, resultContinuation);
|
|
1114
|
-
this.
|
|
1114
|
+
this.d3u_1 = _this__u8e3s4;
|
|
1115
1115
|
}
|
|
1116
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
1117
|
-
var suspendResult = this.
|
|
1116
|
+
protoOf($checkFullMatchCOROUTINE$).j9 = function () {
|
|
1117
|
+
var suspendResult = this.d9_1;
|
|
1118
1118
|
$sm: do
|
|
1119
1119
|
try {
|
|
1120
|
-
var tmp = this.
|
|
1120
|
+
var tmp = this.b9_1;
|
|
1121
1121
|
switch (tmp) {
|
|
1122
1122
|
case 0:
|
|
1123
|
-
this.
|
|
1124
|
-
this.
|
|
1123
|
+
this.c9_1 = 8;
|
|
1124
|
+
this.b9_1 = 1;
|
|
1125
1125
|
continue $sm;
|
|
1126
1126
|
case 1:
|
|
1127
|
-
if (!this.
|
|
1128
|
-
this.
|
|
1129
|
-
this.
|
|
1127
|
+
if (!this.d3u_1.g3t_1.o3n()) {
|
|
1128
|
+
this.f3u_1 = true;
|
|
1129
|
+
this.b9_1 = 3;
|
|
1130
1130
|
continue $sm;
|
|
1131
1131
|
} else {
|
|
1132
|
-
this.
|
|
1133
|
-
suspendResult = this.
|
|
1132
|
+
this.b9_1 = 2;
|
|
1133
|
+
suspendResult = this.d3u_1.c3t_1.y3s(VOID, this);
|
|
1134
1134
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1135
1135
|
return suspendResult;
|
|
1136
1136
|
}
|
|
@@ -1138,139 +1138,139 @@ protoOf($checkFullMatchCOROUTINE$).e9 = function () {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
1140
|
case 2:
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1141
|
+
this.f3u_1 = suspendResult;
|
|
1142
|
+
this.b9_1 = 3;
|
|
1143
1143
|
continue $sm;
|
|
1144
1144
|
case 3:
|
|
1145
|
-
if (!this.
|
|
1146
|
-
this.
|
|
1145
|
+
if (!this.f3u_1) {
|
|
1146
|
+
this.b9_1 = 7;
|
|
1147
1147
|
continue $sm;
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
-
this.
|
|
1151
|
-
if (this.
|
|
1152
|
-
var oldMatchIndex = this.
|
|
1153
|
-
while (this.
|
|
1154
|
-
this.
|
|
1150
|
+
this.e3u_1 = this.d3u_1.g3t_1.r3n();
|
|
1151
|
+
if (this.d3u_1.k3t_1 > 0 && !(this.e3u_1 === this.d3u_1.d3t_1.f1(this.d3u_1.k3t_1))) {
|
|
1152
|
+
var oldMatchIndex = this.d3u_1.k3t_1;
|
|
1153
|
+
while (this.d3u_1.k3t_1 > 0 && !(this.e3u_1 === this.d3u_1.d3t_1.f1(this.d3u_1.k3t_1))) {
|
|
1154
|
+
this.d3u_1.k3t_1 = this.d3u_1.h3t_1[this.d3u_1.k3t_1 - 1 | 0];
|
|
1155
1155
|
}
|
|
1156
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1157
|
-
checkBounds(this.
|
|
1158
|
-
var tmp_0 = this.
|
|
1159
|
-
var tmp_1 = this.
|
|
1160
|
-
var tmp_2 = this.
|
|
1161
|
-
tmp_0.
|
|
1162
|
-
if (this.
|
|
1163
|
-
this.
|
|
1164
|
-
suspendResult = writeByte(this.
|
|
1156
|
+
var retained = fromInt(oldMatchIndex - this.d3u_1.k3t_1 | 0);
|
|
1157
|
+
checkBounds(this.d3u_1, retained);
|
|
1158
|
+
var tmp_0 = this.d3u_1;
|
|
1159
|
+
var tmp_1 = this.d3u_1.j3t_1;
|
|
1160
|
+
var tmp_2 = this.d3u_1.e3t_1.u3s();
|
|
1161
|
+
tmp_0.j3t_1 = add(tmp_1, this.d3u_1.i3t_1.o3o(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1162
|
+
if (this.d3u_1.k3t_1 === 0 && !(this.e3u_1 === this.d3u_1.d3t_1.f1(this.d3u_1.k3t_1))) {
|
|
1163
|
+
this.b9_1 = 6;
|
|
1164
|
+
suspendResult = writeByte(this.d3u_1.e3t_1, this.e3u_1, this);
|
|
1165
1165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1166
1166
|
return suspendResult;
|
|
1167
1167
|
}
|
|
1168
1168
|
continue $sm;
|
|
1169
1169
|
} else {
|
|
1170
|
-
this.
|
|
1170
|
+
this.b9_1 = 4;
|
|
1171
1171
|
continue $sm;
|
|
1172
1172
|
}
|
|
1173
1173
|
} else {
|
|
1174
|
-
this.
|
|
1174
|
+
this.b9_1 = 5;
|
|
1175
1175
|
continue $sm;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
case 4:
|
|
1179
|
-
this.
|
|
1179
|
+
this.b9_1 = 5;
|
|
1180
1180
|
continue $sm;
|
|
1181
1181
|
case 5:
|
|
1182
|
-
this.
|
|
1183
|
-
if (this.
|
|
1182
|
+
this.d3u_1.k3t_1 = this.d3u_1.k3t_1 + 1 | 0;
|
|
1183
|
+
if (this.d3u_1.k3t_1 === this.d3u_1.d3t_1.e1()) {
|
|
1184
1184
|
return true;
|
|
1185
1185
|
}
|
|
1186
1186
|
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1187
|
+
this.d3u_1.i3t_1.h3p(this.e3u_1);
|
|
1188
|
+
this.b9_1 = 1;
|
|
1189
1189
|
continue $sm;
|
|
1190
1190
|
case 6:
|
|
1191
|
-
var _unary__edvuaz = this.
|
|
1192
|
-
this.
|
|
1191
|
+
var _unary__edvuaz = this.d3u_1.j3t_1;
|
|
1192
|
+
this.d3u_1.j3t_1 = add(_unary__edvuaz, get_ONE());
|
|
1193
1193
|
return false;
|
|
1194
1194
|
case 7:
|
|
1195
1195
|
return false;
|
|
1196
1196
|
case 8:
|
|
1197
|
-
throw this.
|
|
1197
|
+
throw this.e9_1;
|
|
1198
1198
|
}
|
|
1199
1199
|
} catch ($p) {
|
|
1200
1200
|
var e = $p;
|
|
1201
|
-
if (this.
|
|
1201
|
+
if (this.c9_1 === 8) {
|
|
1202
1202
|
throw e;
|
|
1203
1203
|
} else {
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1204
|
+
this.b9_1 = this.c9_1;
|
|
1205
|
+
this.e9_1 = e;
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
while (true);
|
|
1209
1209
|
};
|
|
1210
1210
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1211
1211
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1212
|
-
this.
|
|
1213
|
-
this.
|
|
1214
|
-
this.
|
|
1215
|
-
this.
|
|
1212
|
+
this.c3t_1 = channel;
|
|
1213
|
+
this.d3t_1 = matchString;
|
|
1214
|
+
this.e3t_1 = writeChannel;
|
|
1215
|
+
this.f3t_1 = limit;
|
|
1216
1216
|
// Inline function 'kotlin.require' call
|
|
1217
|
-
if (!(this.
|
|
1217
|
+
if (!(this.d3t_1.e1() > 0)) {
|
|
1218
1218
|
var message = 'Empty match string not permitted for scanning';
|
|
1219
1219
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1220
1220
|
}
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1225
|
-
this.
|
|
1221
|
+
this.g3t_1 = this.c3t_1.t3s();
|
|
1222
|
+
this.h3t_1 = buildPartialMatchTable(this);
|
|
1223
|
+
this.i3t_1 = new Buffer();
|
|
1224
|
+
this.j3t_1 = new Long(0, 0);
|
|
1225
|
+
this.k3t_1 = 0;
|
|
1226
1226
|
}
|
|
1227
|
-
protoOf(ByteChannelScanner).
|
|
1227
|
+
protoOf(ByteChannelScanner).r3u = function (ignoreMissing, $completion) {
|
|
1228
1228
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1229
|
-
tmp.
|
|
1230
|
-
tmp.
|
|
1231
|
-
return tmp.
|
|
1229
|
+
tmp.d9_1 = Unit_instance;
|
|
1230
|
+
tmp.e9_1 = null;
|
|
1231
|
+
return tmp.j9();
|
|
1232
1232
|
};
|
|
1233
1233
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1234
|
-
var tmp = writerJob.
|
|
1234
|
+
var tmp = writerJob.s3u_1;
|
|
1235
1235
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1236
1236
|
if (tmp0_safe_receiver == null)
|
|
1237
1237
|
null;
|
|
1238
1238
|
else {
|
|
1239
|
-
tmp0_safe_receiver.
|
|
1239
|
+
tmp0_safe_receiver.b3t(attachWriterJob$lambda(_this__u8e3s4));
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1243
1243
|
return function (cause) {
|
|
1244
1244
|
var tmp;
|
|
1245
1245
|
if (!(cause == null)) {
|
|
1246
|
-
$this_attachWriterJob.
|
|
1246
|
+
$this_attachWriterJob.a3t(cause);
|
|
1247
1247
|
tmp = Unit_instance;
|
|
1248
1248
|
}
|
|
1249
1249
|
return Unit_instance;
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
1252
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1253
|
+
this.u3u_1 = null;
|
|
1254
|
+
this.v3u_1 = new Buffer();
|
|
1255
1255
|
}
|
|
1256
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1257
|
-
return this.
|
|
1256
|
+
protoOf(ByteReadChannel$Companion$Empty$1).h3r = function () {
|
|
1257
|
+
return this.u3u_1;
|
|
1258
1258
|
};
|
|
1259
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1259
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w3s = function () {
|
|
1260
1260
|
return true;
|
|
1261
1261
|
};
|
|
1262
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1263
|
-
return this.
|
|
1262
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t3s = function () {
|
|
1263
|
+
return this.v3u_1;
|
|
1264
1264
|
};
|
|
1265
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1265
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x3s = function (min, $completion) {
|
|
1266
1266
|
return false;
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1268
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a3t = function (cause) {
|
|
1269
1269
|
};
|
|
1270
1270
|
function Companion_0() {
|
|
1271
1271
|
Companion_instance_1 = this;
|
|
1272
1272
|
var tmp = this;
|
|
1273
|
-
tmp.
|
|
1273
|
+
tmp.w3u_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1274
1274
|
}
|
|
1275
1275
|
var Companion_instance_1;
|
|
1276
1276
|
function Companion_getInstance_0() {
|
|
@@ -1281,43 +1281,43 @@ function Companion_getInstance_0() {
|
|
|
1281
1281
|
function ByteReadChannel_1() {
|
|
1282
1282
|
}
|
|
1283
1283
|
function cancel_0(_this__u8e3s4) {
|
|
1284
|
-
_this__u8e3s4.
|
|
1284
|
+
_this__u8e3s4.a3t(IOException_init_$Create$('Channel was cancelled'));
|
|
1285
1285
|
}
|
|
1286
1286
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1287
1287
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1288
|
-
tmp.
|
|
1289
|
-
tmp.
|
|
1290
|
-
return tmp.
|
|
1288
|
+
tmp.d9_1 = Unit_instance;
|
|
1289
|
+
tmp.e9_1 = null;
|
|
1290
|
+
return tmp.j9();
|
|
1291
1291
|
}
|
|
1292
1292
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1293
1293
|
max = max === VOID ? new Long(-1, 2147483647) : max;
|
|
1294
1294
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1295
|
-
tmp.
|
|
1296
|
-
tmp.
|
|
1297
|
-
return tmp.
|
|
1295
|
+
tmp.d9_1 = Unit_instance;
|
|
1296
|
+
tmp.e9_1 = null;
|
|
1297
|
+
return tmp.j9();
|
|
1298
1298
|
}
|
|
1299
1299
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1300
1300
|
offset = offset === VOID ? 0 : offset;
|
|
1301
1301
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1302
1302
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1303
|
-
tmp.
|
|
1304
|
-
tmp.
|
|
1305
|
-
return tmp.
|
|
1303
|
+
tmp.d9_1 = Unit_instance;
|
|
1304
|
+
tmp.e9_1 = null;
|
|
1305
|
+
return tmp.j9();
|
|
1306
1306
|
}
|
|
1307
1307
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1308
1308
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1309
|
-
tmp.
|
|
1310
|
-
tmp.
|
|
1311
|
-
return tmp.
|
|
1309
|
+
tmp.d9_1 = Unit_instance;
|
|
1310
|
+
tmp.e9_1 = null;
|
|
1311
|
+
return tmp.j9();
|
|
1312
1312
|
}
|
|
1313
1313
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1314
1314
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1315
|
-
tmp.
|
|
1316
|
-
tmp.
|
|
1317
|
-
return tmp.
|
|
1315
|
+
tmp.d9_1 = Unit_instance;
|
|
1316
|
+
tmp.e9_1 = null;
|
|
1317
|
+
return tmp.j9();
|
|
1318
1318
|
}
|
|
1319
1319
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1320
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1320
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3r();
|
|
1321
1321
|
if (tmp0_safe_receiver == null)
|
|
1322
1322
|
null;
|
|
1323
1323
|
else {
|
|
@@ -1327,20 +1327,20 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1329
1329
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1330
|
-
tmp.
|
|
1331
|
-
tmp.
|
|
1332
|
-
return tmp.
|
|
1330
|
+
tmp.d9_1 = Unit_instance;
|
|
1331
|
+
tmp.e9_1 = null;
|
|
1332
|
+
return tmp.j9();
|
|
1333
1333
|
}
|
|
1334
1334
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1335
1335
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1336
|
-
tmp.
|
|
1337
|
-
tmp.
|
|
1338
|
-
return tmp.
|
|
1336
|
+
tmp.d9_1 = Unit_instance;
|
|
1337
|
+
tmp.e9_1 = null;
|
|
1338
|
+
return tmp.j9();
|
|
1339
1339
|
}
|
|
1340
1340
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1341
1341
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1342
1342
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1343
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1343
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).r3u(ignoreMissing, $completion);
|
|
1344
1344
|
}
|
|
1345
1345
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1346
1346
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
@@ -1353,19 +1353,19 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1353
1353
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1354
1354
|
}
|
|
1355
1355
|
function get_availableForRead(_this__u8e3s4) {
|
|
1356
|
-
return convertToInt(_this__u8e3s4.
|
|
1356
|
+
return convertToInt(_this__u8e3s4.t3s().n3n().e1());
|
|
1357
1357
|
}
|
|
1358
1358
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1359
1359
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1360
|
-
tmp.
|
|
1361
|
-
tmp.
|
|
1362
|
-
return tmp.
|
|
1360
|
+
tmp.d9_1 = Unit_instance;
|
|
1361
|
+
tmp.e9_1 = null;
|
|
1362
|
+
return tmp.j9();
|
|
1363
1363
|
}
|
|
1364
1364
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1365
1365
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1366
|
-
tmp.
|
|
1367
|
-
tmp.
|
|
1368
|
-
return tmp.
|
|
1366
|
+
tmp.d9_1 = Unit_instance;
|
|
1367
|
+
tmp.e9_1 = null;
|
|
1368
|
+
return tmp.j9();
|
|
1369
1369
|
}
|
|
1370
1370
|
function throwEndOfStreamException(consumed) {
|
|
1371
1371
|
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' bytes');
|
|
@@ -1374,7 +1374,7 @@ function throwTooLongLineException(limit) {
|
|
|
1374
1374
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' bytes');
|
|
1375
1375
|
}
|
|
1376
1376
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1377
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1377
|
+
var tmp0_safe_receiver = _this__u8e3s4.h3r();
|
|
1378
1378
|
if (tmp0_safe_receiver == null)
|
|
1379
1379
|
null;
|
|
1380
1380
|
else {
|
|
@@ -1387,7 +1387,7 @@ function internalReadLineTo$bufferBytes(outBuffer, readBuffer, consumed, count)
|
|
|
1387
1387
|
if (outBuffer._v == null) {
|
|
1388
1388
|
outBuffer._v = new Buffer();
|
|
1389
1389
|
}
|
|
1390
|
-
outBuffer._v.
|
|
1390
|
+
outBuffer._v.b3p(readBuffer, count);
|
|
1391
1391
|
consumed._v = add(consumed._v, count);
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
@@ -1422,192 +1422,192 @@ function internalReadLineTo$scanForSoleCr(_this__u8e3s4, $lenientLineEnding, lfI
|
|
|
1422
1422
|
}
|
|
1423
1423
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1424
1424
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1425
|
-
tmp.
|
|
1426
|
-
tmp.
|
|
1427
|
-
return tmp.
|
|
1425
|
+
tmp.d9_1 = Unit_instance;
|
|
1426
|
+
tmp.e9_1 = null;
|
|
1427
|
+
return tmp.j9();
|
|
1428
1428
|
}
|
|
1429
1429
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1430
1430
|
CoroutineImpl.call(this, resultContinuation);
|
|
1431
|
-
this.
|
|
1431
|
+
this.f3v_1 = _this__u8e3s4;
|
|
1432
1432
|
}
|
|
1433
|
-
protoOf($readBufferCOROUTINE$).
|
|
1434
|
-
var suspendResult = this.
|
|
1433
|
+
protoOf($readBufferCOROUTINE$).j9 = function () {
|
|
1434
|
+
var suspendResult = this.d9_1;
|
|
1435
1435
|
$sm: do
|
|
1436
1436
|
try {
|
|
1437
|
-
var tmp = this.
|
|
1437
|
+
var tmp = this.b9_1;
|
|
1438
1438
|
switch (tmp) {
|
|
1439
1439
|
case 0:
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1440
|
+
this.c9_1 = 5;
|
|
1441
|
+
this.g3v_1 = new Buffer();
|
|
1442
|
+
this.b9_1 = 1;
|
|
1443
1443
|
continue $sm;
|
|
1444
1444
|
case 1:
|
|
1445
|
-
if (!!this.
|
|
1446
|
-
this.
|
|
1445
|
+
if (!!this.f3v_1.w3s()) {
|
|
1446
|
+
this.b9_1 = 4;
|
|
1447
1447
|
continue $sm;
|
|
1448
1448
|
}
|
|
1449
1449
|
|
|
1450
|
-
if (this.
|
|
1451
|
-
this.
|
|
1452
|
-
suspendResult = this.
|
|
1450
|
+
if (this.f3v_1.t3s().o3n()) {
|
|
1451
|
+
this.b9_1 = 2;
|
|
1452
|
+
suspendResult = this.f3v_1.y3s(VOID, this);
|
|
1453
1453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1454
1454
|
return suspendResult;
|
|
1455
1455
|
}
|
|
1456
1456
|
continue $sm;
|
|
1457
1457
|
} else {
|
|
1458
|
-
this.
|
|
1458
|
+
this.b9_1 = 3;
|
|
1459
1459
|
continue $sm;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
case 2:
|
|
1463
|
-
this.
|
|
1463
|
+
this.b9_1 = 3;
|
|
1464
1464
|
continue $sm;
|
|
1465
1465
|
case 3:
|
|
1466
|
-
this.
|
|
1467
|
-
this.
|
|
1466
|
+
this.g3v_1.g3p(this.f3v_1.t3s());
|
|
1467
|
+
this.b9_1 = 1;
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
case 4:
|
|
1470
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1471
|
-
return this.
|
|
1470
|
+
rethrowCloseCauseIfNeeded_0(this.f3v_1);
|
|
1471
|
+
return this.g3v_1;
|
|
1472
1472
|
case 5:
|
|
1473
|
-
throw this.
|
|
1473
|
+
throw this.e9_1;
|
|
1474
1474
|
}
|
|
1475
1475
|
} catch ($p) {
|
|
1476
1476
|
var e = $p;
|
|
1477
|
-
if (this.
|
|
1477
|
+
if (this.c9_1 === 5) {
|
|
1478
1478
|
throw e;
|
|
1479
1479
|
} else {
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1480
|
+
this.b9_1 = this.c9_1;
|
|
1481
|
+
this.e9_1 = e;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
while (true);
|
|
1485
1485
|
};
|
|
1486
1486
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1487
1487
|
CoroutineImpl.call(this, resultContinuation);
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1488
|
+
this.p3v_1 = _this__u8e3s4;
|
|
1489
|
+
this.q3v_1 = max;
|
|
1490
1490
|
}
|
|
1491
|
-
protoOf($discardCOROUTINE$).
|
|
1492
|
-
var suspendResult = this.
|
|
1491
|
+
protoOf($discardCOROUTINE$).j9 = function () {
|
|
1492
|
+
var suspendResult = this.d9_1;
|
|
1493
1493
|
$sm: do
|
|
1494
1494
|
try {
|
|
1495
|
-
var tmp = this.
|
|
1495
|
+
var tmp = this.b9_1;
|
|
1496
1496
|
switch (tmp) {
|
|
1497
1497
|
case 0:
|
|
1498
|
-
this.
|
|
1499
|
-
this.
|
|
1500
|
-
this.
|
|
1498
|
+
this.c9_1 = 5;
|
|
1499
|
+
this.r3v_1 = this.q3v_1;
|
|
1500
|
+
this.b9_1 = 1;
|
|
1501
1501
|
continue $sm;
|
|
1502
1502
|
case 1:
|
|
1503
|
-
if (!(compare(this.
|
|
1504
|
-
this.
|
|
1503
|
+
if (!(compare(this.r3v_1, new Long(0, 0)) > 0 && !this.p3v_1.w3s())) {
|
|
1504
|
+
this.b9_1 = 4;
|
|
1505
1505
|
continue $sm;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
if (get_availableForRead(this.
|
|
1509
|
-
this.
|
|
1510
|
-
suspendResult = this.
|
|
1508
|
+
if (get_availableForRead(this.p3v_1) === 0) {
|
|
1509
|
+
this.b9_1 = 2;
|
|
1510
|
+
suspendResult = this.p3v_1.y3s(VOID, this);
|
|
1511
1511
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1512
1512
|
return suspendResult;
|
|
1513
1513
|
}
|
|
1514
1514
|
continue $sm;
|
|
1515
1515
|
} else {
|
|
1516
|
-
this.
|
|
1516
|
+
this.b9_1 = 3;
|
|
1517
1517
|
continue $sm;
|
|
1518
1518
|
}
|
|
1519
1519
|
|
|
1520
1520
|
case 2:
|
|
1521
|
-
this.
|
|
1521
|
+
this.b9_1 = 3;
|
|
1522
1522
|
continue $sm;
|
|
1523
1523
|
case 3:
|
|
1524
|
-
var tmp0 = this.
|
|
1525
|
-
var b = get_remaining(this.
|
|
1524
|
+
var tmp0 = this.r3v_1;
|
|
1525
|
+
var b = get_remaining(this.p3v_1.t3s());
|
|
1526
1526
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1527
|
-
discard_0(this.
|
|
1528
|
-
this.
|
|
1529
|
-
this.
|
|
1527
|
+
discard_0(this.p3v_1.t3s(), count);
|
|
1528
|
+
this.r3v_1 = subtract(this.r3v_1, count);
|
|
1529
|
+
this.b9_1 = 1;
|
|
1530
1530
|
continue $sm;
|
|
1531
1531
|
case 4:
|
|
1532
|
-
return subtract(this.
|
|
1532
|
+
return subtract(this.q3v_1, this.r3v_1);
|
|
1533
1533
|
case 5:
|
|
1534
|
-
throw this.
|
|
1534
|
+
throw this.e9_1;
|
|
1535
1535
|
}
|
|
1536
1536
|
} catch ($p) {
|
|
1537
1537
|
var e = $p;
|
|
1538
|
-
if (this.
|
|
1538
|
+
if (this.c9_1 === 5) {
|
|
1539
1539
|
throw e;
|
|
1540
1540
|
} else {
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1541
|
+
this.b9_1 = this.c9_1;
|
|
1542
|
+
this.e9_1 = e;
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
1545
|
while (true);
|
|
1546
1546
|
};
|
|
1547
1547
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1548
1548
|
CoroutineImpl.call(this, resultContinuation);
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1549
|
+
this.a3w_1 = _this__u8e3s4;
|
|
1550
|
+
this.b3w_1 = buffer;
|
|
1551
|
+
this.c3w_1 = offset;
|
|
1552
|
+
this.d3w_1 = length;
|
|
1553
1553
|
}
|
|
1554
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1555
|
-
var suspendResult = this.
|
|
1554
|
+
protoOf($readAvailableCOROUTINE$).j9 = function () {
|
|
1555
|
+
var suspendResult = this.d9_1;
|
|
1556
1556
|
$sm: do
|
|
1557
1557
|
try {
|
|
1558
|
-
var tmp = this.
|
|
1558
|
+
var tmp = this.b9_1;
|
|
1559
1559
|
switch (tmp) {
|
|
1560
1560
|
case 0:
|
|
1561
|
-
this.
|
|
1562
|
-
if (this.
|
|
1561
|
+
this.c9_1 = 3;
|
|
1562
|
+
if (this.a3w_1.w3s())
|
|
1563
1563
|
return -1;
|
|
1564
|
-
if (this.
|
|
1565
|
-
this.
|
|
1566
|
-
suspendResult = this.
|
|
1564
|
+
if (this.a3w_1.t3s().o3n()) {
|
|
1565
|
+
this.b9_1 = 1;
|
|
1566
|
+
suspendResult = this.a3w_1.y3s(VOID, this);
|
|
1567
1567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1568
1568
|
return suspendResult;
|
|
1569
1569
|
}
|
|
1570
1570
|
continue $sm;
|
|
1571
1571
|
} else {
|
|
1572
|
-
this.
|
|
1572
|
+
this.b9_1 = 2;
|
|
1573
1573
|
continue $sm;
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
1576
|
case 1:
|
|
1577
|
-
this.
|
|
1577
|
+
this.b9_1 = 2;
|
|
1578
1578
|
continue $sm;
|
|
1579
1579
|
case 2:
|
|
1580
|
-
if (this.
|
|
1580
|
+
if (this.a3w_1.w3s())
|
|
1581
1581
|
return -1;
|
|
1582
|
-
return readAvailable_0(this.
|
|
1582
|
+
return readAvailable_0(this.a3w_1.t3s(), this.b3w_1, this.c3w_1, this.d3w_1);
|
|
1583
1583
|
case 3:
|
|
1584
|
-
throw this.
|
|
1584
|
+
throw this.e9_1;
|
|
1585
1585
|
}
|
|
1586
1586
|
} catch ($p) {
|
|
1587
1587
|
var e = $p;
|
|
1588
|
-
if (this.
|
|
1588
|
+
if (this.c9_1 === 3) {
|
|
1589
1589
|
throw e;
|
|
1590
1590
|
} else {
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1591
|
+
this.b9_1 = this.c9_1;
|
|
1592
|
+
this.e9_1 = e;
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
while (true);
|
|
1596
1596
|
};
|
|
1597
1597
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1598
1598
|
CoroutineImpl.call(this, resultContinuation);
|
|
1599
|
-
this.
|
|
1599
|
+
this.m3w_1 = _this__u8e3s4;
|
|
1600
1600
|
}
|
|
1601
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1602
|
-
var suspendResult = this.
|
|
1601
|
+
protoOf($toByteArrayCOROUTINE$).j9 = function () {
|
|
1602
|
+
var suspendResult = this.d9_1;
|
|
1603
1603
|
$sm: do
|
|
1604
1604
|
try {
|
|
1605
|
-
var tmp = this.
|
|
1605
|
+
var tmp = this.b9_1;
|
|
1606
1606
|
switch (tmp) {
|
|
1607
1607
|
case 0:
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
suspendResult = readBuffer(this.
|
|
1608
|
+
this.c9_1 = 2;
|
|
1609
|
+
this.b9_1 = 1;
|
|
1610
|
+
suspendResult = readBuffer(this.m3w_1, this);
|
|
1611
1611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1612
1612
|
return suspendResult;
|
|
1613
1613
|
}
|
|
@@ -1617,146 +1617,146 @@ protoOf($toByteArrayCOROUTINE$).e9 = function () {
|
|
|
1617
1617
|
var ARGUMENT = suspendResult;
|
|
1618
1618
|
return readBytes(ARGUMENT);
|
|
1619
1619
|
case 2:
|
|
1620
|
-
throw this.
|
|
1620
|
+
throw this.e9_1;
|
|
1621
1621
|
}
|
|
1622
1622
|
} catch ($p) {
|
|
1623
1623
|
var e = $p;
|
|
1624
|
-
if (this.
|
|
1624
|
+
if (this.c9_1 === 2) {
|
|
1625
1625
|
throw e;
|
|
1626
1626
|
} else {
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1627
|
+
this.b9_1 = this.c9_1;
|
|
1628
|
+
this.e9_1 = e;
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
while (true);
|
|
1632
1632
|
};
|
|
1633
1633
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1634
1634
|
CoroutineImpl.call(this, resultContinuation);
|
|
1635
|
-
this.
|
|
1636
|
-
this.
|
|
1637
|
-
this.
|
|
1635
|
+
this.v3w_1 = _this__u8e3s4;
|
|
1636
|
+
this.w3w_1 = channel;
|
|
1637
|
+
this.x3w_1 = limit;
|
|
1638
1638
|
}
|
|
1639
|
-
protoOf($copyToCOROUTINE$).
|
|
1640
|
-
var suspendResult = this.
|
|
1639
|
+
protoOf($copyToCOROUTINE$).j9 = function () {
|
|
1640
|
+
var suspendResult = this.d9_1;
|
|
1641
1641
|
$sm: do
|
|
1642
1642
|
try {
|
|
1643
|
-
var tmp = this.
|
|
1643
|
+
var tmp = this.b9_1;
|
|
1644
1644
|
switch (tmp) {
|
|
1645
1645
|
case 0:
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1646
|
+
this.c9_1 = 12;
|
|
1647
|
+
this.y3w_1 = this.x3w_1;
|
|
1648
|
+
this.b9_1 = 1;
|
|
1649
1649
|
continue $sm;
|
|
1650
1650
|
case 1:
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1651
|
+
this.c9_1 = 8;
|
|
1652
|
+
this.c9_1 = 7;
|
|
1653
|
+
this.b9_1 = 2;
|
|
1654
1654
|
continue $sm;
|
|
1655
1655
|
case 2:
|
|
1656
|
-
if (!(!this.
|
|
1657
|
-
this.
|
|
1656
|
+
if (!(!this.v3w_1.w3s() && compare(this.y3w_1, new Long(0, 0)) > 0)) {
|
|
1657
|
+
this.b9_1 = 6;
|
|
1658
1658
|
continue $sm;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
if (this.
|
|
1662
|
-
this.
|
|
1663
|
-
suspendResult = this.
|
|
1661
|
+
if (this.v3w_1.t3s().o3n()) {
|
|
1662
|
+
this.b9_1 = 3;
|
|
1663
|
+
suspendResult = this.v3w_1.y3s(VOID, this);
|
|
1664
1664
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1665
1665
|
return suspendResult;
|
|
1666
1666
|
}
|
|
1667
1667
|
continue $sm;
|
|
1668
1668
|
} else {
|
|
1669
|
-
this.
|
|
1669
|
+
this.b9_1 = 4;
|
|
1670
1670
|
continue $sm;
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
case 3:
|
|
1674
|
-
this.
|
|
1674
|
+
this.b9_1 = 4;
|
|
1675
1675
|
continue $sm;
|
|
1676
1676
|
case 4:
|
|
1677
|
-
var tmp0 = this.
|
|
1678
|
-
var b = get_remaining(this.
|
|
1677
|
+
var tmp0 = this.y3w_1;
|
|
1678
|
+
var b = get_remaining(this.v3w_1.t3s());
|
|
1679
1679
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
suspendResult = this.
|
|
1680
|
+
this.v3w_1.t3s().q3o(this.w3w_1.u3s(), count);
|
|
1681
|
+
this.y3w_1 = subtract(this.y3w_1, count);
|
|
1682
|
+
this.b9_1 = 5;
|
|
1683
|
+
suspendResult = this.w3w_1.r3s(this);
|
|
1684
1684
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1685
1685
|
return suspendResult;
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
1688
|
continue $sm;
|
|
1689
1689
|
case 5:
|
|
1690
|
-
this.
|
|
1690
|
+
this.b9_1 = 2;
|
|
1691
1691
|
continue $sm;
|
|
1692
1692
|
case 6:
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1693
|
+
this.c9_1 = 12;
|
|
1694
|
+
this.b9_1 = 10;
|
|
1695
1695
|
continue $sm;
|
|
1696
1696
|
case 7:
|
|
1697
|
-
this.
|
|
1698
|
-
var tmp_0 = this.
|
|
1697
|
+
this.c9_1 = 8;
|
|
1698
|
+
var tmp_0 = this.e9_1;
|
|
1699
1699
|
if (tmp_0 instanceof Error) {
|
|
1700
|
-
var cause = this.
|
|
1701
|
-
this.
|
|
1702
|
-
close_0(this.
|
|
1700
|
+
var cause = this.e9_1;
|
|
1701
|
+
this.v3w_1.a3t(cause);
|
|
1702
|
+
close_0(this.w3w_1, cause);
|
|
1703
1703
|
throw cause;
|
|
1704
1704
|
} else {
|
|
1705
|
-
throw this.
|
|
1705
|
+
throw this.e9_1;
|
|
1706
1706
|
}
|
|
1707
1707
|
|
|
1708
1708
|
case 8:
|
|
1709
|
-
this.
|
|
1710
|
-
this.
|
|
1711
|
-
this.
|
|
1712
|
-
suspendResult = this.
|
|
1709
|
+
this.c9_1 = 12;
|
|
1710
|
+
this.z3w_1 = this.e9_1;
|
|
1711
|
+
this.b9_1 = 9;
|
|
1712
|
+
suspendResult = this.w3w_1.r3s(this);
|
|
1713
1713
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1714
1714
|
return suspendResult;
|
|
1715
1715
|
}
|
|
1716
1716
|
|
|
1717
1717
|
continue $sm;
|
|
1718
1718
|
case 9:
|
|
1719
|
-
throw this.
|
|
1719
|
+
throw this.z3w_1;
|
|
1720
1720
|
case 10:
|
|
1721
|
-
this.
|
|
1722
|
-
this.
|
|
1723
|
-
suspendResult = this.
|
|
1721
|
+
this.c9_1 = 12;
|
|
1722
|
+
this.b9_1 = 11;
|
|
1723
|
+
suspendResult = this.w3w_1.r3s(this);
|
|
1724
1724
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1725
1725
|
return suspendResult;
|
|
1726
1726
|
}
|
|
1727
1727
|
|
|
1728
1728
|
continue $sm;
|
|
1729
1729
|
case 11:
|
|
1730
|
-
return subtract(this.
|
|
1730
|
+
return subtract(this.x3w_1, this.y3w_1);
|
|
1731
1731
|
case 12:
|
|
1732
|
-
throw this.
|
|
1732
|
+
throw this.e9_1;
|
|
1733
1733
|
}
|
|
1734
1734
|
} catch ($p) {
|
|
1735
1735
|
var e = $p;
|
|
1736
|
-
if (this.
|
|
1736
|
+
if (this.c9_1 === 12) {
|
|
1737
1737
|
throw e;
|
|
1738
1738
|
} else {
|
|
1739
|
-
this.
|
|
1740
|
-
this.
|
|
1739
|
+
this.b9_1 = this.c9_1;
|
|
1740
|
+
this.e9_1 = e;
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
1743
|
while (true);
|
|
1744
1744
|
};
|
|
1745
1745
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1746
1746
|
CoroutineImpl.call(this, resultContinuation);
|
|
1747
|
-
this.
|
|
1748
|
-
this.
|
|
1747
|
+
this.i3x_1 = _this__u8e3s4;
|
|
1748
|
+
this.j3x_1 = byteString;
|
|
1749
1749
|
}
|
|
1750
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1751
|
-
var suspendResult = this.
|
|
1750
|
+
protoOf($skipIfFoundCOROUTINE$).j9 = function () {
|
|
1751
|
+
var suspendResult = this.d9_1;
|
|
1752
1752
|
$sm: do
|
|
1753
1753
|
try {
|
|
1754
|
-
var tmp = this.
|
|
1754
|
+
var tmp = this.b9_1;
|
|
1755
1755
|
switch (tmp) {
|
|
1756
1756
|
case 0:
|
|
1757
|
-
this.
|
|
1758
|
-
this.
|
|
1759
|
-
suspendResult = peek(this.
|
|
1757
|
+
this.c9_1 = 4;
|
|
1758
|
+
this.b9_1 = 1;
|
|
1759
|
+
suspendResult = peek(this.i3x_1, this.j3x_1.e1(), this);
|
|
1760
1760
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1761
1761
|
return suspendResult;
|
|
1762
1762
|
}
|
|
@@ -1764,15 +1764,15 @@ protoOf($skipIfFoundCOROUTINE$).e9 = function () {
|
|
|
1764
1764
|
continue $sm;
|
|
1765
1765
|
case 1:
|
|
1766
1766
|
var ARGUMENT = suspendResult;
|
|
1767
|
-
if (equals(ARGUMENT, this.
|
|
1768
|
-
this.
|
|
1769
|
-
suspendResult = discard(this.
|
|
1767
|
+
if (equals(ARGUMENT, this.j3x_1)) {
|
|
1768
|
+
this.b9_1 = 3;
|
|
1769
|
+
suspendResult = discard(this.i3x_1, fromInt(this.j3x_1.e1()), this);
|
|
1770
1770
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1771
1771
|
return suspendResult;
|
|
1772
1772
|
}
|
|
1773
1773
|
continue $sm;
|
|
1774
1774
|
} else {
|
|
1775
|
-
this.
|
|
1775
|
+
this.b9_1 = 2;
|
|
1776
1776
|
continue $sm;
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
@@ -1781,111 +1781,111 @@ protoOf($skipIfFoundCOROUTINE$).e9 = function () {
|
|
|
1781
1781
|
case 3:
|
|
1782
1782
|
return true;
|
|
1783
1783
|
case 4:
|
|
1784
|
-
throw this.
|
|
1784
|
+
throw this.e9_1;
|
|
1785
1785
|
}
|
|
1786
1786
|
} catch ($p) {
|
|
1787
1787
|
var e = $p;
|
|
1788
|
-
if (this.
|
|
1788
|
+
if (this.c9_1 === 4) {
|
|
1789
1789
|
throw e;
|
|
1790
1790
|
} else {
|
|
1791
|
-
this.
|
|
1792
|
-
this.
|
|
1791
|
+
this.b9_1 = this.c9_1;
|
|
1792
|
+
this.e9_1 = e;
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
1795
|
while (true);
|
|
1796
1796
|
};
|
|
1797
1797
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1798
1798
|
CoroutineImpl.call(this, resultContinuation);
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1799
|
+
this.s3x_1 = _this__u8e3s4;
|
|
1800
|
+
this.t3x_1 = packet;
|
|
1801
1801
|
}
|
|
1802
|
-
protoOf($readPacketCOROUTINE$).
|
|
1803
|
-
var suspendResult = this.
|
|
1802
|
+
protoOf($readPacketCOROUTINE$).j9 = function () {
|
|
1803
|
+
var suspendResult = this.d9_1;
|
|
1804
1804
|
$sm: do
|
|
1805
1805
|
try {
|
|
1806
|
-
var tmp = this.
|
|
1806
|
+
var tmp = this.b9_1;
|
|
1807
1807
|
switch (tmp) {
|
|
1808
1808
|
case 0:
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1809
|
+
this.c9_1 = 6;
|
|
1810
|
+
this.u3x_1 = new Buffer();
|
|
1811
|
+
this.b9_1 = 1;
|
|
1812
1812
|
continue $sm;
|
|
1813
1813
|
case 1:
|
|
1814
|
-
if (!(compare(this.
|
|
1815
|
-
this.
|
|
1814
|
+
if (!(compare(this.u3x_1.e1(), fromInt(this.t3x_1)) < 0)) {
|
|
1815
|
+
this.b9_1 = 5;
|
|
1816
1816
|
continue $sm;
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
|
-
if (this.
|
|
1820
|
-
this.
|
|
1821
|
-
suspendResult = this.
|
|
1819
|
+
if (this.s3x_1.t3s().o3n()) {
|
|
1820
|
+
this.b9_1 = 2;
|
|
1821
|
+
suspendResult = this.s3x_1.y3s(VOID, this);
|
|
1822
1822
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1823
1823
|
return suspendResult;
|
|
1824
1824
|
}
|
|
1825
1825
|
continue $sm;
|
|
1826
1826
|
} else {
|
|
1827
|
-
this.
|
|
1827
|
+
this.b9_1 = 3;
|
|
1828
1828
|
continue $sm;
|
|
1829
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
case 2:
|
|
1832
|
-
this.
|
|
1832
|
+
this.b9_1 = 3;
|
|
1833
1833
|
continue $sm;
|
|
1834
1834
|
case 3:
|
|
1835
|
-
if (this.
|
|
1836
|
-
this.
|
|
1835
|
+
if (this.s3x_1.w3s()) {
|
|
1836
|
+
this.b9_1 = 5;
|
|
1837
1837
|
continue $sm;
|
|
1838
1838
|
} else {
|
|
1839
|
-
this.
|
|
1839
|
+
this.b9_1 = 4;
|
|
1840
1840
|
continue $sm;
|
|
1841
1841
|
}
|
|
1842
1842
|
|
|
1843
1843
|
case 4:
|
|
1844
|
-
if (compare(get_remaining(this.
|
|
1845
|
-
this.
|
|
1844
|
+
if (compare(get_remaining(this.s3x_1.t3s()), subtract(numberToLong(this.t3x_1), this.u3x_1.e1())) > 0) {
|
|
1845
|
+
this.s3x_1.t3s().q3o(this.u3x_1, subtract(numberToLong(this.t3x_1), this.u3x_1.e1()));
|
|
1846
1846
|
} else {
|
|
1847
|
-
this.
|
|
1847
|
+
this.s3x_1.t3s().r3o(this.u3x_1);
|
|
1848
1848
|
}
|
|
1849
1849
|
|
|
1850
|
-
this.
|
|
1850
|
+
this.b9_1 = 1;
|
|
1851
1851
|
continue $sm;
|
|
1852
1852
|
case 5:
|
|
1853
|
-
if (compare(this.
|
|
1854
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1853
|
+
if (compare(this.u3x_1.e1(), fromInt(this.t3x_1)) < 0) {
|
|
1854
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.t3x_1 + ' bytes but only ' + this.u3x_1.e1().toString() + ' available');
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
|
-
return this.
|
|
1857
|
+
return this.u3x_1;
|
|
1858
1858
|
case 6:
|
|
1859
|
-
throw this.
|
|
1859
|
+
throw this.e9_1;
|
|
1860
1860
|
}
|
|
1861
1861
|
} catch ($p) {
|
|
1862
1862
|
var e = $p;
|
|
1863
|
-
if (this.
|
|
1863
|
+
if (this.c9_1 === 6) {
|
|
1864
1864
|
throw e;
|
|
1865
1865
|
} else {
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1866
|
+
this.b9_1 = this.c9_1;
|
|
1867
|
+
this.e9_1 = e;
|
|
1868
1868
|
}
|
|
1869
1869
|
}
|
|
1870
1870
|
while (true);
|
|
1871
1871
|
};
|
|
1872
1872
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1873
1873
|
CoroutineImpl.call(this, resultContinuation);
|
|
1874
|
-
this.
|
|
1875
|
-
this.
|
|
1874
|
+
this.d3y_1 = _this__u8e3s4;
|
|
1875
|
+
this.e3y_1 = count;
|
|
1876
1876
|
}
|
|
1877
|
-
protoOf($peekCOROUTINE$).
|
|
1878
|
-
var suspendResult = this.
|
|
1877
|
+
protoOf($peekCOROUTINE$).j9 = function () {
|
|
1878
|
+
var suspendResult = this.d9_1;
|
|
1879
1879
|
$sm: do
|
|
1880
1880
|
try {
|
|
1881
|
-
var tmp = this.
|
|
1881
|
+
var tmp = this.b9_1;
|
|
1882
1882
|
switch (tmp) {
|
|
1883
1883
|
case 0:
|
|
1884
|
-
this.
|
|
1885
|
-
if (this.
|
|
1884
|
+
this.c9_1 = 3;
|
|
1885
|
+
if (this.d3y_1.w3s())
|
|
1886
1886
|
return null;
|
|
1887
|
-
this.
|
|
1888
|
-
suspendResult = this.
|
|
1887
|
+
this.b9_1 = 1;
|
|
1888
|
+
suspendResult = this.d3y_1.x3s(this.e3y_1, this);
|
|
1889
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1890
|
return suspendResult;
|
|
1891
1891
|
}
|
|
@@ -1895,348 +1895,348 @@ protoOf($peekCOROUTINE$).e9 = function () {
|
|
|
1895
1895
|
if (!suspendResult) {
|
|
1896
1896
|
return null;
|
|
1897
1897
|
} else {
|
|
1898
|
-
this.
|
|
1898
|
+
this.b9_1 = 2;
|
|
1899
1899
|
continue $sm;
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
1902
|
case 2:
|
|
1903
|
-
return readByteString(this.
|
|
1903
|
+
return readByteString(this.d3y_1.t3s().s3o(), this.e3y_1);
|
|
1904
1904
|
case 3:
|
|
1905
|
-
throw this.
|
|
1905
|
+
throw this.e9_1;
|
|
1906
1906
|
}
|
|
1907
1907
|
} catch ($p) {
|
|
1908
1908
|
var e = $p;
|
|
1909
|
-
if (this.
|
|
1909
|
+
if (this.c9_1 === 3) {
|
|
1910
1910
|
throw e;
|
|
1911
1911
|
} else {
|
|
1912
|
-
this.
|
|
1913
|
-
this.
|
|
1912
|
+
this.b9_1 = this.c9_1;
|
|
1913
|
+
this.e9_1 = e;
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
1916
|
while (true);
|
|
1917
1917
|
};
|
|
1918
1918
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1919
1919
|
CoroutineImpl.call(this, resultContinuation);
|
|
1920
|
-
this.
|
|
1921
|
-
this.
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
}
|
|
1926
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1927
|
-
var suspendResult = this.
|
|
1920
|
+
this.n3y_1 = _this__u8e3s4;
|
|
1921
|
+
this.o3y_1 = out;
|
|
1922
|
+
this.p3y_1 = limit;
|
|
1923
|
+
this.q3y_1 = lenientLineEnding;
|
|
1924
|
+
this.r3y_1 = throwOnIncompleteLine;
|
|
1925
|
+
}
|
|
1926
|
+
protoOf($internalReadLineToCOROUTINE$).j9 = function () {
|
|
1927
|
+
var suspendResult = this.d9_1;
|
|
1928
1928
|
$sm: do
|
|
1929
1929
|
try {
|
|
1930
|
-
var tmp = this.
|
|
1930
|
+
var tmp = this.b9_1;
|
|
1931
1931
|
switch (tmp) {
|
|
1932
1932
|
case 0:
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1935
|
-
if (this.
|
|
1936
|
-
this.
|
|
1937
|
-
suspendResult = this.
|
|
1933
|
+
this.c9_1 = 27;
|
|
1934
|
+
this.v3y_1 = this.n3y_1.t3s();
|
|
1935
|
+
if (this.v3y_1.o3n()) {
|
|
1936
|
+
this.b9_1 = 1;
|
|
1937
|
+
suspendResult = this.n3y_1.y3s(VOID, this);
|
|
1938
1938
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1939
1939
|
return suspendResult;
|
|
1940
1940
|
}
|
|
1941
1941
|
continue $sm;
|
|
1942
1942
|
} else {
|
|
1943
|
-
this.
|
|
1943
|
+
this.b9_1 = 2;
|
|
1944
1944
|
continue $sm;
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
1947
|
case 1:
|
|
1948
|
-
this.
|
|
1948
|
+
this.b9_1 = 2;
|
|
1949
1949
|
continue $sm;
|
|
1950
1950
|
case 2:
|
|
1951
|
-
if (this.
|
|
1951
|
+
if (this.n3y_1.w3s())
|
|
1952
1952
|
return new Long(-1, -1);
|
|
1953
|
-
this.
|
|
1954
|
-
this.
|
|
1955
|
-
this.
|
|
1953
|
+
this.u3y_1 = {_v: new Long(0, 0)};
|
|
1954
|
+
this.s3y_1 = {_v: null};
|
|
1955
|
+
this.b9_1 = 3;
|
|
1956
1956
|
continue $sm;
|
|
1957
1957
|
case 3:
|
|
1958
|
-
this.
|
|
1958
|
+
this.b9_1 = 4;
|
|
1959
1959
|
continue $sm;
|
|
1960
1960
|
case 4:
|
|
1961
|
-
this.
|
|
1962
|
-
this.
|
|
1961
|
+
this.c9_1 = 24;
|
|
1962
|
+
this.b9_1 = 5;
|
|
1963
1963
|
continue $sm;
|
|
1964
1964
|
case 5:
|
|
1965
|
-
if (!(compare(this.
|
|
1966
|
-
this.
|
|
1965
|
+
if (!(compare(this.u3y_1._v, this.p3y_1) < 0 && !this.n3y_1.w3s())) {
|
|
1966
|
+
this.b9_1 = 15;
|
|
1967
1967
|
continue $sm;
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
|
-
this.
|
|
1971
|
-
this.
|
|
1972
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1970
|
+
this.y3y_1 = subtract(this.p3y_1, this.u3y_1._v);
|
|
1971
|
+
this.z3y_1 = indexOf(this.v3y_1, 10, VOID, this.y3y_1);
|
|
1972
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.v3y_1, this.q3y_1, this.z3y_1, this.y3y_1);
|
|
1973
1973
|
if (compare(crIndex, new Long(0, 0)) >= 0) {
|
|
1974
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
1975
|
-
discard_0(this.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1978
|
-
this.
|
|
1974
|
+
internalReadLineTo$appendOrBuffer(this.s3y_1, this.o3y_1, this.v3y_1, this.u3y_1, crIndex);
|
|
1975
|
+
discard_0(this.v3y_1, new Long(1, 0));
|
|
1976
|
+
this.t3y_1 = this.u3y_1._v;
|
|
1977
|
+
this.c9_1 = 27;
|
|
1978
|
+
this.b9_1 = 25;
|
|
1979
1979
|
continue $sm;
|
|
1980
1980
|
} else {
|
|
1981
|
-
this.
|
|
1981
|
+
this.b9_1 = 6;
|
|
1982
1982
|
continue $sm;
|
|
1983
1983
|
}
|
|
1984
1984
|
|
|
1985
1985
|
case 6:
|
|
1986
|
-
if (equalsLong(this.
|
|
1987
|
-
discard_0(this.
|
|
1988
|
-
this.
|
|
1989
|
-
this.
|
|
1990
|
-
this.
|
|
1986
|
+
if (equalsLong(this.z3y_1, new Long(0, 0))) {
|
|
1987
|
+
discard_0(this.v3y_1, new Long(1, 0));
|
|
1988
|
+
this.t3y_1 = this.u3y_1._v;
|
|
1989
|
+
this.c9_1 = 27;
|
|
1990
|
+
this.b9_1 = 25;
|
|
1991
1991
|
continue $sm;
|
|
1992
1992
|
} else {
|
|
1993
|
-
this.
|
|
1993
|
+
this.b9_1 = 7;
|
|
1994
1994
|
continue $sm;
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
1997
|
case 7:
|
|
1998
|
-
if (compare(this.
|
|
1998
|
+
if (compare(this.z3y_1, new Long(0, 0)) > 0) {
|
|
1999
1999
|
var tmp_0;
|
|
2000
|
-
var tmp_1 = this.
|
|
2001
|
-
var this_0 = this.
|
|
2002
|
-
if (tmp_1.
|
|
2000
|
+
var tmp_1 = this.v3y_1.n3n();
|
|
2001
|
+
var this_0 = this.z3y_1;
|
|
2002
|
+
if (tmp_1.j3o(subtract(this_0, fromInt(1))) === 13) {
|
|
2003
2003
|
tmp_0 = new Long(1, 0);
|
|
2004
2004
|
} else {
|
|
2005
2005
|
tmp_0 = new Long(0, 0);
|
|
2006
2006
|
}
|
|
2007
2007
|
var isCrlf = tmp_0;
|
|
2008
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2009
|
-
discard_0(this.
|
|
2010
|
-
this.
|
|
2011
|
-
this.
|
|
2012
|
-
this.
|
|
2008
|
+
internalReadLineTo$appendOrBuffer(this.s3y_1, this.o3y_1, this.v3y_1, this.u3y_1, subtract(this.z3y_1, isCrlf));
|
|
2009
|
+
discard_0(this.v3y_1, add(numberToLong(1), isCrlf));
|
|
2010
|
+
this.t3y_1 = this.u3y_1._v;
|
|
2011
|
+
this.c9_1 = 27;
|
|
2012
|
+
this.b9_1 = 25;
|
|
2013
2013
|
continue $sm;
|
|
2014
2014
|
} else {
|
|
2015
|
-
this.
|
|
2015
|
+
this.b9_1 = 8;
|
|
2016
2016
|
continue $sm;
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
case 8:
|
|
2020
|
-
var tmp0 = this.
|
|
2021
|
-
var b = get_remaining(this.
|
|
2020
|
+
var tmp0 = this.y3y_1;
|
|
2021
|
+
var b = get_remaining(this.v3y_1);
|
|
2022
2022
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2023
|
-
var tmp_2 = this.
|
|
2024
|
-
if (tmp_2.
|
|
2025
|
-
internalReadLineTo$appendOrBuffer(this.
|
|
2026
|
-
this.
|
|
2027
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2023
|
+
var tmp_2 = this.v3y_1.n3n();
|
|
2024
|
+
if (tmp_2.j3o(subtract(count, fromInt(1))) === 13) {
|
|
2025
|
+
internalReadLineTo$appendOrBuffer(this.s3y_1, this.o3y_1, this.v3y_1, this.u3y_1, subtract(count, fromInt(1)));
|
|
2026
|
+
this.b9_1 = 9;
|
|
2027
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.v3y_1, this.n3y_1, this.q3y_1, this);
|
|
2028
2028
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2029
2029
|
return suspendResult;
|
|
2030
2030
|
}
|
|
2031
2031
|
continue $sm;
|
|
2032
2032
|
} else {
|
|
2033
|
-
internalReadLineTo$bufferBytes(this.
|
|
2034
|
-
this.
|
|
2033
|
+
internalReadLineTo$bufferBytes(this.s3y_1, this.v3y_1, this.u3y_1, count);
|
|
2034
|
+
this.b9_1 = 11;
|
|
2035
2035
|
continue $sm;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
case 9:
|
|
2039
2039
|
if (suspendResult) {
|
|
2040
|
-
this.
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2040
|
+
this.t3y_1 = this.u3y_1._v;
|
|
2041
|
+
this.c9_1 = 27;
|
|
2042
|
+
this.b9_1 = 25;
|
|
2043
2043
|
continue $sm;
|
|
2044
2044
|
} else {
|
|
2045
|
-
internalReadLineTo$bufferBytes(this.
|
|
2046
|
-
this.
|
|
2045
|
+
internalReadLineTo$bufferBytes(this.s3y_1, this.v3y_1, this.u3y_1, new Long(1, 0));
|
|
2046
|
+
this.b9_1 = 10;
|
|
2047
2047
|
continue $sm;
|
|
2048
2048
|
}
|
|
2049
2049
|
|
|
2050
2050
|
case 10:
|
|
2051
|
-
this.
|
|
2051
|
+
this.b9_1 = 11;
|
|
2052
2052
|
continue $sm;
|
|
2053
2053
|
case 11:
|
|
2054
|
-
if (compare(this.
|
|
2055
|
-
this.
|
|
2056
|
-
suspendResult = this.
|
|
2054
|
+
if (compare(this.u3y_1._v, this.p3y_1) < 0 && equalsLong(get_remaining(this.v3y_1), new Long(0, 0))) {
|
|
2055
|
+
this.b9_1 = 12;
|
|
2056
|
+
suspendResult = this.n3y_1.y3s(VOID, this);
|
|
2057
2057
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2058
2058
|
return suspendResult;
|
|
2059
2059
|
}
|
|
2060
2060
|
continue $sm;
|
|
2061
2061
|
} else {
|
|
2062
|
-
this.
|
|
2063
|
-
this.
|
|
2062
|
+
this.x3y_1 = false;
|
|
2063
|
+
this.b9_1 = 13;
|
|
2064
2064
|
continue $sm;
|
|
2065
2065
|
}
|
|
2066
2066
|
|
|
2067
2067
|
case 12:
|
|
2068
|
-
this.
|
|
2069
|
-
this.
|
|
2068
|
+
this.x3y_1 = !suspendResult;
|
|
2069
|
+
this.b9_1 = 13;
|
|
2070
2070
|
continue $sm;
|
|
2071
2071
|
case 13:
|
|
2072
|
-
if (this.
|
|
2073
|
-
this.
|
|
2072
|
+
if (this.x3y_1) {
|
|
2073
|
+
this.b9_1 = 15;
|
|
2074
2074
|
continue $sm;
|
|
2075
2075
|
} else {
|
|
2076
|
-
this.
|
|
2076
|
+
this.b9_1 = 14;
|
|
2077
2077
|
continue $sm;
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
2080
|
case 14:
|
|
2081
|
-
this.
|
|
2081
|
+
this.b9_1 = 5;
|
|
2082
2082
|
continue $sm;
|
|
2083
2083
|
case 15:
|
|
2084
|
-
if (equalsLong(this.
|
|
2085
|
-
this.
|
|
2086
|
-
this.
|
|
2087
|
-
this.
|
|
2084
|
+
if (equalsLong(this.u3y_1._v, new Long(0, 0)) && this.n3y_1.w3s()) {
|
|
2085
|
+
this.t3y_1 = new Long(-1, -1);
|
|
2086
|
+
this.c9_1 = 27;
|
|
2087
|
+
this.b9_1 = 25;
|
|
2088
2088
|
continue $sm;
|
|
2089
2089
|
} else {
|
|
2090
|
-
this.
|
|
2090
|
+
this.b9_1 = 16;
|
|
2091
2091
|
continue $sm;
|
|
2092
2092
|
}
|
|
2093
2093
|
|
|
2094
2094
|
case 16:
|
|
2095
|
-
if (!(compare(this.
|
|
2096
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2095
|
+
if (!(compare(this.u3y_1._v, this.p3y_1) <= 0)) {
|
|
2096
|
+
var message = 'Consumed bytes exceed the limit: ' + this.u3y_1._v.toString() + ' > ' + this.p3y_1.toString() + ". It's an implementation bug, please report it.";
|
|
2097
2097
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
-
if (equalsLong(this.
|
|
2101
|
-
if (equalsLong(this.
|
|
2100
|
+
if (equalsLong(this.u3y_1._v, this.p3y_1)) {
|
|
2101
|
+
if (equalsLong(this.p3y_1, new Long(-1, 2147483647)))
|
|
2102
2102
|
throw new TooLongLineException('Max line length exceeded');
|
|
2103
|
-
if (equalsLong(get_remaining(this.
|
|
2104
|
-
this.
|
|
2105
|
-
suspendResult = this.
|
|
2103
|
+
if (equalsLong(get_remaining(this.v3y_1), new Long(0, 0))) {
|
|
2104
|
+
this.b9_1 = 18;
|
|
2105
|
+
suspendResult = this.n3y_1.y3s(VOID, this);
|
|
2106
2106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2107
|
return suspendResult;
|
|
2108
2108
|
}
|
|
2109
2109
|
continue $sm;
|
|
2110
2110
|
} else {
|
|
2111
|
-
this.
|
|
2112
|
-
this.
|
|
2111
|
+
this.w3y_1 = false;
|
|
2112
|
+
this.b9_1 = 19;
|
|
2113
2113
|
continue $sm;
|
|
2114
2114
|
}
|
|
2115
2115
|
} else {
|
|
2116
|
-
this.
|
|
2116
|
+
this.b9_1 = 17;
|
|
2117
2117
|
continue $sm;
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
case 17:
|
|
2121
|
-
if (this.
|
|
2122
|
-
throwEndOfStreamException(this.
|
|
2121
|
+
if (this.r3y_1) {
|
|
2122
|
+
throwEndOfStreamException(this.u3y_1._v);
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
this.
|
|
2126
|
-
this.
|
|
2127
|
-
this.
|
|
2125
|
+
this.t3y_1 = this.u3y_1._v;
|
|
2126
|
+
this.c9_1 = 27;
|
|
2127
|
+
this.b9_1 = 25;
|
|
2128
2128
|
var tmp_3 = this;
|
|
2129
2129
|
continue $sm;
|
|
2130
2130
|
case 18:
|
|
2131
|
-
this.
|
|
2132
|
-
this.
|
|
2131
|
+
this.w3y_1 = !suspendResult;
|
|
2132
|
+
this.b9_1 = 19;
|
|
2133
2133
|
continue $sm;
|
|
2134
2134
|
case 19:
|
|
2135
|
-
if (this.
|
|
2136
|
-
throwEndOfStreamException(this.
|
|
2135
|
+
if (this.w3y_1) {
|
|
2136
|
+
throwEndOfStreamException(this.u3y_1._v);
|
|
2137
2137
|
} else {
|
|
2138
|
-
this.
|
|
2138
|
+
this.b9_1 = 20;
|
|
2139
2139
|
continue $sm;
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
2142
2142
|
break;
|
|
2143
2143
|
case 20:
|
|
2144
|
-
var tmp0_subject = this.
|
|
2144
|
+
var tmp0_subject = this.v3y_1.n3n().j3o(new Long(0, 0));
|
|
2145
2145
|
if (tmp0_subject === 10) {
|
|
2146
|
-
discard_0(this.
|
|
2147
|
-
this.
|
|
2148
|
-
this.
|
|
2149
|
-
this.
|
|
2146
|
+
discard_0(this.v3y_1, new Long(1, 0));
|
|
2147
|
+
this.t3y_1 = this.u3y_1._v;
|
|
2148
|
+
this.c9_1 = 27;
|
|
2149
|
+
this.b9_1 = 25;
|
|
2150
2150
|
continue $sm;
|
|
2151
2151
|
} else {
|
|
2152
2152
|
if (tmp0_subject === 13) {
|
|
2153
|
-
this.
|
|
2154
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2153
|
+
this.b9_1 = 21;
|
|
2154
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.v3y_1, this.n3y_1, this.q3y_1, this);
|
|
2155
2155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2156
2156
|
return suspendResult;
|
|
2157
2157
|
}
|
|
2158
2158
|
continue $sm;
|
|
2159
2159
|
} else {
|
|
2160
|
-
this.
|
|
2160
|
+
this.b9_1 = 23;
|
|
2161
2161
|
continue $sm;
|
|
2162
2162
|
}
|
|
2163
2163
|
}
|
|
2164
2164
|
|
|
2165
2165
|
case 21:
|
|
2166
2166
|
if (suspendResult) {
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2167
|
+
this.t3y_1 = this.u3y_1._v;
|
|
2168
|
+
this.c9_1 = 27;
|
|
2169
|
+
this.b9_1 = 25;
|
|
2170
2170
|
continue $sm;
|
|
2171
2171
|
} else {
|
|
2172
|
-
this.
|
|
2172
|
+
this.b9_1 = 22;
|
|
2173
2173
|
continue $sm;
|
|
2174
2174
|
}
|
|
2175
2175
|
|
|
2176
2176
|
case 22:
|
|
2177
|
-
this.
|
|
2177
|
+
this.b9_1 = 23;
|
|
2178
2178
|
continue $sm;
|
|
2179
2179
|
case 23:
|
|
2180
|
-
throwTooLongLineException(this.
|
|
2180
|
+
throwTooLongLineException(this.p3y_1);
|
|
2181
2181
|
break;
|
|
2182
2182
|
case 24:
|
|
2183
|
-
this.
|
|
2184
|
-
var t = this.
|
|
2185
|
-
if (!(this.
|
|
2186
|
-
this.
|
|
2183
|
+
this.c9_1 = 27;
|
|
2184
|
+
var t = this.e9_1;
|
|
2185
|
+
if (!(this.s3y_1._v == null)) {
|
|
2186
|
+
this.o3y_1.c1(readString_0(this.s3y_1._v));
|
|
2187
2187
|
}
|
|
2188
2188
|
|
|
2189
2189
|
throw t;
|
|
2190
2190
|
case 25:
|
|
2191
|
-
var tmp_4 = this.
|
|
2192
|
-
this.
|
|
2193
|
-
if (!(this.
|
|
2194
|
-
this.
|
|
2191
|
+
var tmp_4 = this.t3y_1;
|
|
2192
|
+
this.c9_1 = 27;
|
|
2193
|
+
if (!(this.s3y_1._v == null)) {
|
|
2194
|
+
this.o3y_1.c1(readString_0(this.s3y_1._v));
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
2197
|
return tmp_4;
|
|
2198
2198
|
case 26:
|
|
2199
|
-
this.
|
|
2200
|
-
if (!(this.
|
|
2201
|
-
this.
|
|
2199
|
+
this.c9_1 = 27;
|
|
2200
|
+
if (!(this.s3y_1._v == null)) {
|
|
2201
|
+
this.o3y_1.c1(readString_0(this.s3y_1._v));
|
|
2202
2202
|
}
|
|
2203
2203
|
|
|
2204
2204
|
return Unit_instance;
|
|
2205
2205
|
case 27:
|
|
2206
|
-
throw this.
|
|
2206
|
+
throw this.e9_1;
|
|
2207
2207
|
}
|
|
2208
2208
|
} catch ($p) {
|
|
2209
2209
|
var e = $p;
|
|
2210
|
-
if (this.
|
|
2210
|
+
if (this.c9_1 === 27) {
|
|
2211
2211
|
throw e;
|
|
2212
2212
|
} else {
|
|
2213
|
-
this.
|
|
2214
|
-
this.
|
|
2213
|
+
this.b9_1 = this.c9_1;
|
|
2214
|
+
this.e9_1 = e;
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
2217
2217
|
while (true);
|
|
2218
2218
|
};
|
|
2219
2219
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2220
2220
|
CoroutineImpl.call(this, resultContinuation);
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2221
|
+
this.i3z_1 = _this__u8e3s4;
|
|
2222
|
+
this.j3z_1 = $this_internalReadLineTo;
|
|
2223
|
+
this.k3z_1 = $lenientLineEnding;
|
|
2224
2224
|
}
|
|
2225
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2226
|
-
var suspendResult = this.
|
|
2225
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).j9 = function () {
|
|
2226
|
+
var suspendResult = this.d9_1;
|
|
2227
2227
|
$sm: do
|
|
2228
2228
|
try {
|
|
2229
|
-
var tmp = this.
|
|
2229
|
+
var tmp = this.b9_1;
|
|
2230
2230
|
switch (tmp) {
|
|
2231
2231
|
case 0:
|
|
2232
|
-
this.
|
|
2233
|
-
if (compare(get_remaining(this.
|
|
2234
|
-
this.
|
|
2235
|
-
this.
|
|
2232
|
+
this.c9_1 = 5;
|
|
2233
|
+
if (compare(get_remaining(this.i3z_1), new Long(2, 0)) >= 0) {
|
|
2234
|
+
this.m3z_1 = true;
|
|
2235
|
+
this.b9_1 = 2;
|
|
2236
2236
|
continue $sm;
|
|
2237
2237
|
} else {
|
|
2238
|
-
this.
|
|
2239
|
-
suspendResult = this.
|
|
2238
|
+
this.b9_1 = 1;
|
|
2239
|
+
suspendResult = this.j3z_1.x3s(2, this);
|
|
2240
2240
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2241
2241
|
return suspendResult;
|
|
2242
2242
|
}
|
|
@@ -2244,46 +2244,46 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).e9 = function () {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
|
|
2246
2246
|
case 1:
|
|
2247
|
-
this.
|
|
2248
|
-
this.
|
|
2247
|
+
this.m3z_1 = suspendResult;
|
|
2248
|
+
this.b9_1 = 2;
|
|
2249
2249
|
continue $sm;
|
|
2250
2250
|
case 2:
|
|
2251
|
-
if (this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2251
|
+
if (this.m3z_1) {
|
|
2252
|
+
this.l3z_1 = this.i3z_1.n3n().j3o(new Long(1, 0)) === 10;
|
|
2253
|
+
this.b9_1 = 3;
|
|
2254
2254
|
continue $sm;
|
|
2255
2255
|
} else {
|
|
2256
|
-
this.
|
|
2257
|
-
this.
|
|
2256
|
+
this.l3z_1 = false;
|
|
2257
|
+
this.b9_1 = 3;
|
|
2258
2258
|
continue $sm;
|
|
2259
2259
|
}
|
|
2260
2260
|
|
|
2261
2261
|
case 3:
|
|
2262
|
-
if (this.
|
|
2263
|
-
discard_0(this.
|
|
2262
|
+
if (this.l3z_1) {
|
|
2263
|
+
discard_0(this.i3z_1, new Long(2, 0));
|
|
2264
2264
|
return true;
|
|
2265
2265
|
} else {
|
|
2266
|
-
this.
|
|
2266
|
+
this.b9_1 = 4;
|
|
2267
2267
|
continue $sm;
|
|
2268
2268
|
}
|
|
2269
2269
|
|
|
2270
2270
|
case 4:
|
|
2271
|
-
if (this.
|
|
2272
|
-
discard_0(this.
|
|
2271
|
+
if (this.k3z_1) {
|
|
2272
|
+
discard_0(this.i3z_1, new Long(1, 0));
|
|
2273
2273
|
return true;
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
return false;
|
|
2277
2277
|
case 5:
|
|
2278
|
-
throw this.
|
|
2278
|
+
throw this.e9_1;
|
|
2279
2279
|
}
|
|
2280
2280
|
} catch ($p) {
|
|
2281
2281
|
var e = $p;
|
|
2282
|
-
if (this.
|
|
2282
|
+
if (this.c9_1 === 5) {
|
|
2283
2283
|
throw e;
|
|
2284
2284
|
} else {
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2285
|
+
this.b9_1 = this.c9_1;
|
|
2286
|
+
this.e9_1 = e;
|
|
2287
2287
|
}
|
|
2288
2288
|
}
|
|
2289
2289
|
while (true);
|
|
@@ -2292,50 +2292,50 @@ function ByteWriteChannel() {
|
|
|
2292
2292
|
}
|
|
2293
2293
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2294
2294
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2295
|
-
tmp.
|
|
2296
|
-
tmp.
|
|
2297
|
-
return tmp.
|
|
2295
|
+
tmp.d9_1 = Unit_instance;
|
|
2296
|
+
tmp.e9_1 = null;
|
|
2297
|
+
return tmp.j9();
|
|
2298
2298
|
}
|
|
2299
2299
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2300
2300
|
CoroutineImpl.call(this, resultContinuation);
|
|
2301
|
-
this.
|
|
2301
|
+
this.v3z_1 = _this__u8e3s4;
|
|
2302
2302
|
}
|
|
2303
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2304
|
-
var suspendResult = this.
|
|
2303
|
+
protoOf($flushIfNeededCOROUTINE$).j9 = function () {
|
|
2304
|
+
var suspendResult = this.d9_1;
|
|
2305
2305
|
$sm: do
|
|
2306
2306
|
try {
|
|
2307
|
-
var tmp = this.
|
|
2307
|
+
var tmp = this.b9_1;
|
|
2308
2308
|
switch (tmp) {
|
|
2309
2309
|
case 0:
|
|
2310
|
-
this.
|
|
2311
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2312
|
-
if (this.
|
|
2313
|
-
this.
|
|
2314
|
-
suspendResult = this.
|
|
2310
|
+
this.c9_1 = 3;
|
|
2311
|
+
rethrowCloseCauseIfNeeded_1(this.v3z_1);
|
|
2312
|
+
if (this.v3z_1.s3s() || get_size(this.v3z_1.u3s()) >= 1048576) {
|
|
2313
|
+
this.b9_1 = 1;
|
|
2314
|
+
suspendResult = this.v3z_1.r3s(this);
|
|
2315
2315
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2316
2316
|
return suspendResult;
|
|
2317
2317
|
}
|
|
2318
2318
|
continue $sm;
|
|
2319
2319
|
} else {
|
|
2320
|
-
this.
|
|
2320
|
+
this.b9_1 = 2;
|
|
2321
2321
|
continue $sm;
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
2324
|
case 1:
|
|
2325
|
-
this.
|
|
2325
|
+
this.b9_1 = 2;
|
|
2326
2326
|
continue $sm;
|
|
2327
2327
|
case 2:
|
|
2328
2328
|
return Unit_instance;
|
|
2329
2329
|
case 3:
|
|
2330
|
-
throw this.
|
|
2330
|
+
throw this.e9_1;
|
|
2331
2331
|
}
|
|
2332
2332
|
} catch ($p) {
|
|
2333
2333
|
var e = $p;
|
|
2334
|
-
if (this.
|
|
2334
|
+
if (this.c9_1 === 3) {
|
|
2335
2335
|
throw e;
|
|
2336
2336
|
} else {
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2337
|
+
this.b9_1 = this.c9_1;
|
|
2338
|
+
this.e9_1 = e;
|
|
2339
2339
|
}
|
|
2340
2340
|
}
|
|
2341
2341
|
while (true);
|
|
@@ -2343,7 +2343,7 @@ protoOf($flushIfNeededCOROUTINE$).e9 = function () {
|
|
|
2343
2343
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2344
2344
|
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2345
2345
|
return constructCallableReference(function ($completion) {
|
|
2346
|
-
return i.
|
|
2346
|
+
return i.a40($completion);
|
|
2347
2347
|
}, 0, 1, 17, 'flushAndClose', [p0]);
|
|
2348
2348
|
}
|
|
2349
2349
|
function get_NO_CALLBACK() {
|
|
@@ -2352,11 +2352,11 @@ function get_NO_CALLBACK() {
|
|
|
2352
2352
|
}
|
|
2353
2353
|
var NO_CALLBACK;
|
|
2354
2354
|
function WriterJob(channel, job) {
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2355
|
+
this.s3u_1 = channel;
|
|
2356
|
+
this.t3u_1 = job;
|
|
2357
2357
|
}
|
|
2358
|
-
protoOf(WriterJob).
|
|
2359
|
-
return this.
|
|
2358
|
+
protoOf(WriterJob).w1s = function () {
|
|
2359
|
+
return this.t3u_1;
|
|
2360
2360
|
};
|
|
2361
2361
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2362
2362
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2365,16 +2365,16 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2365
2365
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(autoFlush), block);
|
|
2366
2366
|
}
|
|
2367
2367
|
function WriterScope(channel, coroutineContext) {
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2368
|
+
this.b40_1 = channel;
|
|
2369
|
+
this.c40_1 = coroutineContext;
|
|
2370
2370
|
}
|
|
2371
|
-
protoOf(WriterScope).
|
|
2372
|
-
return this.
|
|
2371
|
+
protoOf(WriterScope).k1p = function () {
|
|
2372
|
+
return this.c40_1;
|
|
2373
2373
|
};
|
|
2374
2374
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2375
2375
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2376
2376
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2377
|
-
_this__u8e3s4.
|
|
2377
|
+
_this__u8e3s4.u3s().x3o(value, startIndex, endIndex);
|
|
2378
2378
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2379
2379
|
}
|
|
2380
2380
|
function close_0(_this__u8e3s4, cause) {
|
|
@@ -2382,19 +2382,19 @@ function close_0(_this__u8e3s4, cause) {
|
|
|
2382
2382
|
if (cause == null) {
|
|
2383
2383
|
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2384
2384
|
} else {
|
|
2385
|
-
_this__u8e3s4.
|
|
2385
|
+
_this__u8e3s4.a3t(cause);
|
|
2386
2386
|
}
|
|
2387
2387
|
}
|
|
2388
2388
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2389
2389
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2390
|
-
return _this__u8e3s4.
|
|
2390
|
+
return _this__u8e3s4.w1s().n1q(block);
|
|
2391
2391
|
}
|
|
2392
2392
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2393
2393
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
2394
2394
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2395
2395
|
// Inline function 'kotlin.apply' call
|
|
2396
2396
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2397
|
-
this_0.
|
|
2397
|
+
this_0.n1q(writer$lambda(channel));
|
|
2398
2398
|
var job = this_0;
|
|
2399
2399
|
return new WriterJob(channel, job);
|
|
2400
2400
|
}
|
|
@@ -2403,107 +2403,107 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2403
2403
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2404
2404
|
}
|
|
2405
2405
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2406
|
-
_this__u8e3s4.
|
|
2406
|
+
_this__u8e3s4.u3s().h3p(value);
|
|
2407
2407
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2408
2408
|
}
|
|
2409
2409
|
function NO_CALLBACK$1() {
|
|
2410
|
-
this.
|
|
2410
|
+
this.d40_1 = EmptyCoroutineContext_getInstance();
|
|
2411
2411
|
}
|
|
2412
|
-
protoOf(NO_CALLBACK$1).
|
|
2413
|
-
return this.
|
|
2412
|
+
protoOf(NO_CALLBACK$1).h9 = function () {
|
|
2413
|
+
return this.d40_1;
|
|
2414
2414
|
};
|
|
2415
|
-
protoOf(NO_CALLBACK$1).
|
|
2415
|
+
protoOf(NO_CALLBACK$1).i9 = function (result) {
|
|
2416
2416
|
return Unit_instance;
|
|
2417
2417
|
};
|
|
2418
|
-
protoOf(NO_CALLBACK$1).
|
|
2419
|
-
return this.
|
|
2418
|
+
protoOf(NO_CALLBACK$1).m9 = function (result) {
|
|
2419
|
+
return this.i9(result);
|
|
2420
2420
|
};
|
|
2421
2421
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2422
2422
|
KFunctionImpl.call(this, 1, 1, 17);
|
|
2423
|
-
this.
|
|
2423
|
+
this.z3z_1 = p0;
|
|
2424
2424
|
}
|
|
2425
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2426
|
-
return this.
|
|
2425
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).a40 = function ($completion) {
|
|
2426
|
+
return this.z3z_1.z3s($completion);
|
|
2427
2427
|
};
|
|
2428
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_0).
|
|
2429
|
-
return this.
|
|
2428
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).v9 = function ($completion) {
|
|
2429
|
+
return this.a40($completion);
|
|
2430
2430
|
};
|
|
2431
2431
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2432
|
-
this.
|
|
2433
|
-
this.
|
|
2432
|
+
this.m40_1 = $block;
|
|
2433
|
+
this.n40_1 = $channel;
|
|
2434
2434
|
CoroutineImpl.call(this, resultContinuation);
|
|
2435
2435
|
}
|
|
2436
|
-
protoOf(writer$slambda).
|
|
2437
|
-
var tmp = this.
|
|
2438
|
-
tmp.
|
|
2439
|
-
tmp.
|
|
2440
|
-
return tmp.
|
|
2436
|
+
protoOf(writer$slambda).v40 = function ($this$launch, $completion) {
|
|
2437
|
+
var tmp = this.w40($this$launch, $completion);
|
|
2438
|
+
tmp.d9_1 = Unit_instance;
|
|
2439
|
+
tmp.e9_1 = null;
|
|
2440
|
+
return tmp.j9();
|
|
2441
2441
|
};
|
|
2442
|
-
protoOf(writer$slambda).
|
|
2443
|
-
return this.
|
|
2442
|
+
protoOf(writer$slambda).w9 = function (p1, $completion) {
|
|
2443
|
+
return this.v40((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2444
2444
|
};
|
|
2445
|
-
protoOf(writer$slambda).
|
|
2446
|
-
var suspendResult = this.
|
|
2445
|
+
protoOf(writer$slambda).j9 = function () {
|
|
2446
|
+
var suspendResult = this.d9_1;
|
|
2447
2447
|
$sm: do
|
|
2448
2448
|
try {
|
|
2449
|
-
var tmp = this.
|
|
2449
|
+
var tmp = this.b9_1;
|
|
2450
2450
|
switch (tmp) {
|
|
2451
2451
|
case 0:
|
|
2452
|
-
this.
|
|
2453
|
-
this.
|
|
2454
|
-
this.
|
|
2452
|
+
this.c9_1 = 14;
|
|
2453
|
+
this.r40_1 = Job(get_job(this.o40_1.k1p()));
|
|
2454
|
+
this.b9_1 = 1;
|
|
2455
2455
|
continue $sm;
|
|
2456
2456
|
case 1:
|
|
2457
|
-
this.
|
|
2458
|
-
this.
|
|
2459
|
-
this.
|
|
2460
|
-
suspendResult = this.
|
|
2457
|
+
this.c9_1 = 4;
|
|
2458
|
+
this.c9_1 = 3;
|
|
2459
|
+
this.b9_1 = 2;
|
|
2460
|
+
suspendResult = this.m40_1(new WriterScope(this.n40_1, this.o40_1.k1p().rj(this.r40_1)), this);
|
|
2461
2461
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2462
2462
|
return suspendResult;
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
2465
|
continue $sm;
|
|
2466
2466
|
case 2:
|
|
2467
|
-
this.
|
|
2467
|
+
this.r40_1.t1x();
|
|
2468
2468
|
var tmp_0;
|
|
2469
|
-
if (get_job(this.
|
|
2470
|
-
this.
|
|
2469
|
+
if (get_job(this.o40_1.k1p()).h1q()) {
|
|
2470
|
+
this.n40_1.a3t(get_job(this.o40_1.k1p()).k1q());
|
|
2471
2471
|
tmp_0 = Unit_instance;
|
|
2472
2472
|
}
|
|
2473
2473
|
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2474
|
+
this.c9_1 = 14;
|
|
2475
|
+
this.b9_1 = 9;
|
|
2476
2476
|
continue $sm;
|
|
2477
2477
|
case 3:
|
|
2478
|
-
this.
|
|
2479
|
-
var tmp_1 = this.
|
|
2478
|
+
this.c9_1 = 4;
|
|
2479
|
+
var tmp_1 = this.e9_1;
|
|
2480
2480
|
if (tmp_1 instanceof Error) {
|
|
2481
|
-
var cause = this.
|
|
2482
|
-
cancel(this.
|
|
2483
|
-
this.
|
|
2484
|
-
this.
|
|
2485
|
-
this.
|
|
2481
|
+
var cause = this.e9_1;
|
|
2482
|
+
cancel(this.r40_1, 'Exception thrown while writing to channel', cause);
|
|
2483
|
+
this.n40_1.a3t(cause);
|
|
2484
|
+
this.c9_1 = 14;
|
|
2485
|
+
this.b9_1 = 9;
|
|
2486
2486
|
continue $sm;
|
|
2487
2487
|
} else {
|
|
2488
|
-
throw this.
|
|
2488
|
+
throw this.e9_1;
|
|
2489
2489
|
}
|
|
2490
2490
|
|
|
2491
2491
|
case 4:
|
|
2492
|
-
this.
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
suspendResult = this.
|
|
2492
|
+
this.c9_1 = 14;
|
|
2493
|
+
this.s40_1 = this.e9_1;
|
|
2494
|
+
this.b9_1 = 5;
|
|
2495
|
+
suspendResult = this.r40_1.r1q(this);
|
|
2496
2496
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2497
2497
|
return suspendResult;
|
|
2498
2498
|
}
|
|
2499
2499
|
|
|
2500
2500
|
continue $sm;
|
|
2501
2501
|
case 5:
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
suspendResult = this.
|
|
2502
|
+
this.o40_1;
|
|
2503
|
+
this.c9_1 = 7;
|
|
2504
|
+
this.u40_1 = Companion_instance;
|
|
2505
|
+
this.b9_1 = 6;
|
|
2506
|
+
suspendResult = this.n40_1.z3s(this);
|
|
2507
2507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2508
|
return suspendResult;
|
|
2509
2509
|
}
|
|
@@ -2511,42 +2511,42 @@ protoOf(writer$slambda).e9 = function () {
|
|
|
2511
2511
|
continue $sm;
|
|
2512
2512
|
case 6:
|
|
2513
2513
|
var tmp_2 = this;
|
|
2514
|
-
this.
|
|
2515
|
-
tmp_2.
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2514
|
+
this.u40_1;
|
|
2515
|
+
tmp_2.t40_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2516
|
+
this.c9_1 = 14;
|
|
2517
|
+
this.b9_1 = 8;
|
|
2518
2518
|
continue $sm;
|
|
2519
2519
|
case 7:
|
|
2520
|
-
this.
|
|
2521
|
-
var tmp_3 = this.
|
|
2520
|
+
this.c9_1 = 14;
|
|
2521
|
+
var tmp_3 = this.e9_1;
|
|
2522
2522
|
if (tmp_3 instanceof Error) {
|
|
2523
|
-
var e = this.
|
|
2523
|
+
var e = this.e9_1;
|
|
2524
2524
|
var tmp_4 = this;
|
|
2525
|
-
tmp_4.
|
|
2526
|
-
this.
|
|
2525
|
+
tmp_4.t40_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2526
|
+
this.b9_1 = 8;
|
|
2527
2527
|
continue $sm;
|
|
2528
2528
|
} else {
|
|
2529
|
-
throw this.
|
|
2529
|
+
throw this.e9_1;
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
2532
|
case 8:
|
|
2533
|
-
this.
|
|
2534
|
-
throw this.
|
|
2533
|
+
this.c9_1 = 14;
|
|
2534
|
+
throw this.s40_1;
|
|
2535
2535
|
case 9:
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
suspendResult = this.
|
|
2536
|
+
this.c9_1 = 14;
|
|
2537
|
+
this.b9_1 = 10;
|
|
2538
|
+
suspendResult = this.r40_1.r1q(this);
|
|
2539
2539
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2540
2540
|
return suspendResult;
|
|
2541
2541
|
}
|
|
2542
2542
|
|
|
2543
2543
|
continue $sm;
|
|
2544
2544
|
case 10:
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
suspendResult = this.
|
|
2545
|
+
this.o40_1;
|
|
2546
|
+
this.c9_1 = 12;
|
|
2547
|
+
this.q40_1 = Companion_instance;
|
|
2548
|
+
this.b9_1 = 11;
|
|
2549
|
+
suspendResult = this.n40_1.z3s(this);
|
|
2550
2550
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2551
|
return suspendResult;
|
|
2552
2552
|
}
|
|
@@ -2554,57 +2554,57 @@ protoOf(writer$slambda).e9 = function () {
|
|
|
2554
2554
|
continue $sm;
|
|
2555
2555
|
case 11:
|
|
2556
2556
|
var tmp_5 = this;
|
|
2557
|
-
this.
|
|
2558
|
-
tmp_5.
|
|
2559
|
-
this.
|
|
2560
|
-
this.
|
|
2557
|
+
this.q40_1;
|
|
2558
|
+
tmp_5.p40_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2559
|
+
this.c9_1 = 14;
|
|
2560
|
+
this.b9_1 = 13;
|
|
2561
2561
|
continue $sm;
|
|
2562
2562
|
case 12:
|
|
2563
|
-
this.
|
|
2564
|
-
var tmp_6 = this.
|
|
2563
|
+
this.c9_1 = 14;
|
|
2564
|
+
var tmp_6 = this.e9_1;
|
|
2565
2565
|
if (tmp_6 instanceof Error) {
|
|
2566
|
-
var e_0 = this.
|
|
2566
|
+
var e_0 = this.e9_1;
|
|
2567
2567
|
var tmp_7 = this;
|
|
2568
|
-
tmp_7.
|
|
2569
|
-
this.
|
|
2568
|
+
tmp_7.p40_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2569
|
+
this.b9_1 = 13;
|
|
2570
2570
|
continue $sm;
|
|
2571
2571
|
} else {
|
|
2572
|
-
throw this.
|
|
2572
|
+
throw this.e9_1;
|
|
2573
2573
|
}
|
|
2574
2574
|
|
|
2575
2575
|
case 13:
|
|
2576
|
-
this.
|
|
2576
|
+
this.c9_1 = 14;
|
|
2577
2577
|
return Unit_instance;
|
|
2578
2578
|
case 14:
|
|
2579
|
-
throw this.
|
|
2579
|
+
throw this.e9_1;
|
|
2580
2580
|
}
|
|
2581
2581
|
} catch ($p) {
|
|
2582
2582
|
var e_1 = $p;
|
|
2583
|
-
if (this.
|
|
2583
|
+
if (this.c9_1 === 14) {
|
|
2584
2584
|
throw e_1;
|
|
2585
2585
|
} else {
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2586
|
+
this.b9_1 = this.c9_1;
|
|
2587
|
+
this.e9_1 = e_1;
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
while (true);
|
|
2591
2591
|
};
|
|
2592
|
-
protoOf(writer$slambda).
|
|
2593
|
-
var i = new writer$slambda(this.
|
|
2594
|
-
i.
|
|
2592
|
+
protoOf(writer$slambda).w40 = function ($this$launch, completion) {
|
|
2593
|
+
var i = new writer$slambda(this.m40_1, this.n40_1, completion);
|
|
2594
|
+
i.o40_1 = $this$launch;
|
|
2595
2595
|
return i;
|
|
2596
2596
|
};
|
|
2597
2597
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2598
2598
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2599
2599
|
return constructCallableReference(function ($this$launch, $completion) {
|
|
2600
|
-
return i.
|
|
2600
|
+
return i.v40($this$launch, $completion);
|
|
2601
2601
|
}, 1);
|
|
2602
2602
|
}
|
|
2603
2603
|
function writer$lambda($channel) {
|
|
2604
2604
|
return function (it) {
|
|
2605
2605
|
var tmp;
|
|
2606
|
-
if (!(it == null) && !$channel.
|
|
2607
|
-
$channel.
|
|
2606
|
+
if (!(it == null) && !$channel.v3s()) {
|
|
2607
|
+
$channel.a3t(it);
|
|
2608
2608
|
tmp = Unit_instance;
|
|
2609
2609
|
}
|
|
2610
2610
|
return Unit_instance;
|
|
@@ -2629,10 +2629,10 @@ function Companion_getInstance_1() {
|
|
|
2629
2629
|
return Companion_instance_2;
|
|
2630
2630
|
}
|
|
2631
2631
|
function access$_get_origin__hdh1qz($this) {
|
|
2632
|
-
return $this.
|
|
2632
|
+
return $this.x40_1;
|
|
2633
2633
|
}
|
|
2634
2634
|
function CloseToken(origin) {
|
|
2635
|
-
this.
|
|
2635
|
+
this.x40_1 = origin;
|
|
2636
2636
|
}
|
|
2637
2637
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2638
2638
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2643,32 +2643,32 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
function transferFromDelegate($this) {
|
|
2645
2645
|
updateConsumed($this);
|
|
2646
|
-
var appended = $this.
|
|
2647
|
-
$this.
|
|
2646
|
+
var appended = $this.z40_1.g3p($this.y40_1.t3s());
|
|
2647
|
+
$this.a41_1 = add($this.a41_1, appended);
|
|
2648
2648
|
}
|
|
2649
2649
|
function updateConsumed($this) {
|
|
2650
|
-
$this.
|
|
2651
|
-
$this.
|
|
2650
|
+
$this.b41_1 = add($this.b41_1, subtract($this.a41_1, $this.z40_1.e1()));
|
|
2651
|
+
$this.a41_1 = $this.z40_1.e1();
|
|
2652
2652
|
}
|
|
2653
2653
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2654
2654
|
CoroutineImpl.call(this, resultContinuation);
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2655
|
+
this.k41_1 = _this__u8e3s4;
|
|
2656
|
+
this.l41_1 = min;
|
|
2657
2657
|
}
|
|
2658
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2659
|
-
var suspendResult = this.
|
|
2658
|
+
protoOf($awaitContentCOROUTINE$_0).j9 = function () {
|
|
2659
|
+
var suspendResult = this.d9_1;
|
|
2660
2660
|
$sm: do
|
|
2661
2661
|
try {
|
|
2662
|
-
var tmp = this.
|
|
2662
|
+
var tmp = this.b9_1;
|
|
2663
2663
|
switch (tmp) {
|
|
2664
2664
|
case 0:
|
|
2665
|
-
this.
|
|
2666
|
-
if (compare(this.
|
|
2665
|
+
this.c9_1 = 3;
|
|
2666
|
+
if (compare(this.k41_1.t3s().e1(), fromInt(this.l41_1)) >= 0) {
|
|
2667
2667
|
return true;
|
|
2668
2668
|
}
|
|
2669
2669
|
|
|
2670
|
-
this.
|
|
2671
|
-
suspendResult = this.
|
|
2670
|
+
this.b9_1 = 1;
|
|
2671
|
+
suspendResult = this.k41_1.y40_1.x3s(this.l41_1, this);
|
|
2672
2672
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2673
2673
|
return suspendResult;
|
|
2674
2674
|
}
|
|
@@ -2676,58 +2676,58 @@ protoOf($awaitContentCOROUTINE$_0).e9 = function () {
|
|
|
2676
2676
|
continue $sm;
|
|
2677
2677
|
case 1:
|
|
2678
2678
|
if (suspendResult) {
|
|
2679
|
-
transferFromDelegate(this.
|
|
2679
|
+
transferFromDelegate(this.k41_1);
|
|
2680
2680
|
return true;
|
|
2681
2681
|
} else {
|
|
2682
|
-
this.
|
|
2682
|
+
this.b9_1 = 2;
|
|
2683
2683
|
continue $sm;
|
|
2684
2684
|
}
|
|
2685
2685
|
|
|
2686
2686
|
case 2:
|
|
2687
2687
|
return false;
|
|
2688
2688
|
case 3:
|
|
2689
|
-
throw this.
|
|
2689
|
+
throw this.e9_1;
|
|
2690
2690
|
}
|
|
2691
2691
|
} catch ($p) {
|
|
2692
2692
|
var e = $p;
|
|
2693
|
-
if (this.
|
|
2693
|
+
if (this.c9_1 === 3) {
|
|
2694
2694
|
throw e;
|
|
2695
2695
|
} else {
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2696
|
+
this.b9_1 = this.c9_1;
|
|
2697
|
+
this.e9_1 = e;
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
2700
|
while (true);
|
|
2701
2701
|
};
|
|
2702
2702
|
function CountedByteReadChannel(delegate) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2705
|
-
this.
|
|
2706
|
-
this.
|
|
2703
|
+
this.y40_1 = delegate;
|
|
2704
|
+
this.z40_1 = new Buffer();
|
|
2705
|
+
this.a41_1 = new Long(0, 0);
|
|
2706
|
+
this.b41_1 = new Long(0, 0);
|
|
2707
2707
|
}
|
|
2708
|
-
protoOf(CountedByteReadChannel).
|
|
2708
|
+
protoOf(CountedByteReadChannel).m41 = function () {
|
|
2709
2709
|
updateConsumed(this);
|
|
2710
|
-
return this.
|
|
2710
|
+
return this.b41_1;
|
|
2711
2711
|
};
|
|
2712
|
-
protoOf(CountedByteReadChannel).
|
|
2713
|
-
return this.
|
|
2712
|
+
protoOf(CountedByteReadChannel).h3r = function () {
|
|
2713
|
+
return this.y40_1.h3r();
|
|
2714
2714
|
};
|
|
2715
|
-
protoOf(CountedByteReadChannel).
|
|
2716
|
-
return this.
|
|
2715
|
+
protoOf(CountedByteReadChannel).w3s = function () {
|
|
2716
|
+
return this.z40_1.o3n() && this.y40_1.w3s();
|
|
2717
2717
|
};
|
|
2718
|
-
protoOf(CountedByteReadChannel).
|
|
2718
|
+
protoOf(CountedByteReadChannel).t3s = function () {
|
|
2719
2719
|
transferFromDelegate(this);
|
|
2720
|
-
return this.
|
|
2720
|
+
return this.z40_1;
|
|
2721
2721
|
};
|
|
2722
|
-
protoOf(CountedByteReadChannel).
|
|
2722
|
+
protoOf(CountedByteReadChannel).x3s = function (min, $completion) {
|
|
2723
2723
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2724
|
-
tmp.
|
|
2725
|
-
tmp.
|
|
2726
|
-
return tmp.
|
|
2724
|
+
tmp.d9_1 = Unit_instance;
|
|
2725
|
+
tmp.e9_1 = null;
|
|
2726
|
+
return tmp.j9();
|
|
2727
2727
|
};
|
|
2728
|
-
protoOf(CountedByteReadChannel).
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2728
|
+
protoOf(CountedByteReadChannel).a3t = function (cause) {
|
|
2729
|
+
this.y40_1.a3t(cause);
|
|
2730
|
+
this.z40_1.j4();
|
|
2731
2731
|
};
|
|
2732
2732
|
function counted(_this__u8e3s4) {
|
|
2733
2733
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2785,21 +2785,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2787
2787
|
var tmp;
|
|
2788
|
-
if ($this === Companion_getInstance_2().
|
|
2788
|
+
if ($this === Companion_getInstance_2().n41_1) {
|
|
2789
2789
|
tmp = 'CR';
|
|
2790
|
-
} else if ($this === Companion_getInstance_2().
|
|
2790
|
+
} else if ($this === Companion_getInstance_2().o41_1) {
|
|
2791
2791
|
tmp = 'LF';
|
|
2792
|
-
} else if ($this === Companion_getInstance_2().
|
|
2792
|
+
} else if ($this === Companion_getInstance_2().p41_1) {
|
|
2793
2793
|
tmp = 'CRLF';
|
|
2794
2794
|
} else {
|
|
2795
2795
|
// Inline function 'kotlin.collections.filter' call
|
|
2796
|
-
var tmp0 = Companion_getInstance_2().
|
|
2796
|
+
var tmp0 = Companion_getInstance_2().r41_1;
|
|
2797
2797
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2798
2798
|
var destination = ArrayList_init_$Create$();
|
|
2799
2799
|
var _iterator__ex2g4s = tmp0.t();
|
|
2800
2800
|
while (_iterator__ex2g4s.u()) {
|
|
2801
2801
|
var element = _iterator__ex2g4s.v();
|
|
2802
|
-
var it = element.
|
|
2802
|
+
var it = element.s41_1;
|
|
2803
2803
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2804
2804
|
destination.b1(element);
|
|
2805
2805
|
}
|
|
@@ -2810,11 +2810,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
function Companion_2() {
|
|
2812
2812
|
Companion_instance_3 = this;
|
|
2813
|
-
this.
|
|
2814
|
-
this.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2813
|
+
this.n41_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2814
|
+
this.o41_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2815
|
+
this.p41_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2816
|
+
this.q41_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2817
|
+
this.r41_1 = listOf([new LineEndingMode(this.n41_1), new LineEndingMode(this.o41_1), new LineEndingMode(this.p41_1)]);
|
|
2818
2818
|
}
|
|
2819
2819
|
var Companion_instance_3;
|
|
2820
2820
|
function Companion_getInstance_2() {
|
|
@@ -2828,29 +2828,29 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2828
2828
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2829
2829
|
if (!(other instanceof LineEndingMode))
|
|
2830
2830
|
return false;
|
|
2831
|
-
if (!($this === other.
|
|
2831
|
+
if (!($this === other.s41_1))
|
|
2832
2832
|
return false;
|
|
2833
2833
|
return true;
|
|
2834
2834
|
}
|
|
2835
2835
|
function LineEndingMode(mode) {
|
|
2836
2836
|
Companion_getInstance_2();
|
|
2837
|
-
this.
|
|
2837
|
+
this.s41_1 = mode;
|
|
2838
2838
|
}
|
|
2839
2839
|
protoOf(LineEndingMode).toString = function () {
|
|
2840
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2840
|
+
return LineEndingMode__toString_impl_j4h76r(this.s41_1);
|
|
2841
2841
|
};
|
|
2842
2842
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2843
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2843
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.s41_1);
|
|
2844
2844
|
};
|
|
2845
2845
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2846
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2846
|
+
return LineEndingMode__equals_impl_qyr4nk(this.s41_1, other);
|
|
2847
2847
|
};
|
|
2848
2848
|
function SourceByteReadChannel(source) {
|
|
2849
|
-
this.
|
|
2850
|
-
this.
|
|
2849
|
+
this.t41_1 = source;
|
|
2850
|
+
this.u41_1 = null;
|
|
2851
2851
|
}
|
|
2852
|
-
protoOf(SourceByteReadChannel).
|
|
2853
|
-
var tmp0_safe_receiver = this.
|
|
2852
|
+
protoOf(SourceByteReadChannel).h3r = function () {
|
|
2853
|
+
var tmp0_safe_receiver = this.u41_1;
|
|
2854
2854
|
var tmp;
|
|
2855
2855
|
if (tmp0_safe_receiver == null) {
|
|
2856
2856
|
tmp = null;
|
|
@@ -2862,7 +2862,7 @@ protoOf(SourceByteReadChannel).t3m = function () {
|
|
|
2862
2862
|
tmp_0 = null;
|
|
2863
2863
|
} else {
|
|
2864
2864
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2865
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
2865
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).c1y();
|
|
2866
2866
|
} else {
|
|
2867
2867
|
if (tmp0_subject instanceof CancellationException) {
|
|
2868
2868
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -2876,42 +2876,42 @@ protoOf(SourceByteReadChannel).t3m = function () {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
return tmp;
|
|
2878
2878
|
};
|
|
2879
|
-
protoOf(SourceByteReadChannel).
|
|
2880
|
-
return this.
|
|
2879
|
+
protoOf(SourceByteReadChannel).w3s = function () {
|
|
2880
|
+
return this.t41_1.o3n();
|
|
2881
2881
|
};
|
|
2882
|
-
protoOf(SourceByteReadChannel).
|
|
2883
|
-
var tmp0_safe_receiver = this.
|
|
2882
|
+
protoOf(SourceByteReadChannel).t3s = function () {
|
|
2883
|
+
var tmp0_safe_receiver = this.h3r();
|
|
2884
2884
|
if (tmp0_safe_receiver == null)
|
|
2885
2885
|
null;
|
|
2886
2886
|
else {
|
|
2887
2887
|
// Inline function 'kotlin.let' call
|
|
2888
2888
|
throw tmp0_safe_receiver;
|
|
2889
2889
|
}
|
|
2890
|
-
return this.
|
|
2890
|
+
return this.t41_1.n3n();
|
|
2891
2891
|
};
|
|
2892
|
-
protoOf(SourceByteReadChannel).
|
|
2893
|
-
var tmp0_safe_receiver = this.
|
|
2892
|
+
protoOf(SourceByteReadChannel).x3s = function (min, $completion) {
|
|
2893
|
+
var tmp0_safe_receiver = this.h3r();
|
|
2894
2894
|
if (tmp0_safe_receiver == null)
|
|
2895
2895
|
null;
|
|
2896
2896
|
else {
|
|
2897
2897
|
// Inline function 'kotlin.let' call
|
|
2898
2898
|
throw tmp0_safe_receiver;
|
|
2899
2899
|
}
|
|
2900
|
-
return this.
|
|
2900
|
+
return this.t41_1.q3n(fromInt(min));
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(SourceByteReadChannel).
|
|
2903
|
-
if (!(this.
|
|
2902
|
+
protoOf(SourceByteReadChannel).a3t = function (cause) {
|
|
2903
|
+
if (!(this.u41_1 == null))
|
|
2904
2904
|
return Unit_instance;
|
|
2905
|
-
this.
|
|
2905
|
+
this.t41_1.j4();
|
|
2906
2906
|
var tmp = this;
|
|
2907
2907
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2908
|
-
tmp.
|
|
2908
|
+
tmp.u41_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2909
2909
|
};
|
|
2910
2910
|
function decode(_this__u8e3s4, input, max) {
|
|
2911
2911
|
max = max === VOID ? 2147483647 : max;
|
|
2912
2912
|
var tmp0 = fromInt(max);
|
|
2913
2913
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2914
|
-
var b = input.
|
|
2914
|
+
var b = input.n3n().e1();
|
|
2915
2915
|
var tmp$ret$0 = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2916
2916
|
// Inline function 'kotlin.text.buildString' call
|
|
2917
2917
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2948,7 +2948,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
}
|
|
2950
2950
|
function canRead(_this__u8e3s4) {
|
|
2951
|
-
return !_this__u8e3s4.
|
|
2951
|
+
return !_this__u8e3s4.o3n();
|
|
2952
2952
|
}
|
|
2953
2953
|
function readBytes(_this__u8e3s4, count) {
|
|
2954
2954
|
count = count === VOID ? convertToInt(_this__u8e3s4.e1()) : count;
|
|
@@ -2957,35 +2957,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2957
2957
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2958
2958
|
offset = offset === VOID ? 0 : offset;
|
|
2959
2959
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2960
|
-
_this__u8e3s4.
|
|
2960
|
+
_this__u8e3s4.x3o(buffer, offset, offset + length | 0);
|
|
2961
2961
|
}
|
|
2962
2962
|
function BytePacketBuilder() {
|
|
2963
2963
|
return new Buffer();
|
|
2964
2964
|
}
|
|
2965
2965
|
function build(_this__u8e3s4) {
|
|
2966
|
-
return _this__u8e3s4.
|
|
2966
|
+
return _this__u8e3s4.n3n();
|
|
2967
2967
|
}
|
|
2968
2968
|
function get_size(_this__u8e3s4) {
|
|
2969
|
-
return convertToInt(_this__u8e3s4.
|
|
2969
|
+
return convertToInt(_this__u8e3s4.n3n().e1());
|
|
2970
2970
|
}
|
|
2971
2971
|
var ByteReadPacketEmpty;
|
|
2972
2972
|
function get_remaining(_this__u8e3s4) {
|
|
2973
2973
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2974
|
-
return _this__u8e3s4.
|
|
2974
|
+
return _this__u8e3s4.n3n().e1();
|
|
2975
2975
|
}
|
|
2976
2976
|
function takeWhile(_this__u8e3s4, block) {
|
|
2977
2977
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2978
|
-
while (!_this__u8e3s4.
|
|
2978
|
+
while (!_this__u8e3s4.o3n() && block(_this__u8e3s4.n3n())) {
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
function discard_0(_this__u8e3s4, count) {
|
|
2982
2982
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
2983
2983
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2984
|
-
_this__u8e3s4.
|
|
2984
|
+
_this__u8e3s4.q3n(count);
|
|
2985
2985
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2986
2986
|
var b = get_remaining(_this__u8e3s4);
|
|
2987
2987
|
var countToDiscard = compare(count, b) <= 0 ? count : b;
|
|
2988
|
-
_this__u8e3s4.
|
|
2988
|
+
_this__u8e3s4.n3n().l3o(countToDiscard);
|
|
2989
2989
|
return countToDiscard;
|
|
2990
2990
|
}
|
|
2991
2991
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2998,23 +2998,23 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2998
2998
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2999
2999
|
offset = offset === VOID ? 0 : offset;
|
|
3000
3000
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3001
|
-
var result = _this__u8e3s4.
|
|
3001
|
+
var result = _this__u8e3s4.m3o(buffer, offset, offset + length | 0);
|
|
3002
3002
|
return result === -1 ? 0 : result;
|
|
3003
3003
|
}
|
|
3004
3004
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3005
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3006
|
-
if (charset.equals(Charsets_getInstance().
|
|
3005
|
+
charset = charset === VOID ? Charsets_getInstance().v41_1 : charset;
|
|
3006
|
+
if (charset.equals(Charsets_getInstance().v41_1))
|
|
3007
3007
|
return encodeToByteArray(_this__u8e3s4);
|
|
3008
|
-
return encodeToByteArray_0(charset.
|
|
3008
|
+
return encodeToByteArray_0(charset.y41(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3009
3009
|
}
|
|
3010
3010
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3011
3011
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3012
3012
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3013
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3014
|
-
if (charset === Charsets_getInstance().
|
|
3013
|
+
charset = charset === VOID ? Charsets_getInstance().v41_1 : charset;
|
|
3014
|
+
if (charset === Charsets_getInstance().v41_1) {
|
|
3015
3015
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3016
3016
|
}
|
|
3017
|
-
encodeToImpl(charset.
|
|
3017
|
+
encodeToImpl(charset.y41(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3018
3018
|
}
|
|
3019
3019
|
function get_ByteArrayPool() {
|
|
3020
3020
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3024,7 +3024,7 @@ var ByteArrayPool;
|
|
|
3024
3024
|
function ByteArrayPool$1() {
|
|
3025
3025
|
DefaultPool.call(this, 128);
|
|
3026
3026
|
}
|
|
3027
|
-
protoOf(ByteArrayPool$1).
|
|
3027
|
+
protoOf(ByteArrayPool$1).c42 = function () {
|
|
3028
3028
|
return new Int8Array(4096);
|
|
3029
3029
|
};
|
|
3030
3030
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3038,21 +3038,21 @@ function ObjectPool() {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
function NoPoolImpl() {
|
|
3040
3040
|
}
|
|
3041
|
-
protoOf(NoPoolImpl).
|
|
3041
|
+
protoOf(NoPoolImpl).k42 = function (instance) {
|
|
3042
3042
|
return Unit_instance;
|
|
3043
3043
|
};
|
|
3044
|
-
protoOf(NoPoolImpl).
|
|
3044
|
+
protoOf(NoPoolImpl).i1s = function () {
|
|
3045
3045
|
return Unit_instance;
|
|
3046
3046
|
};
|
|
3047
3047
|
function Companion_3() {
|
|
3048
3048
|
}
|
|
3049
|
-
protoOf(Companion_3).
|
|
3049
|
+
protoOf(Companion_3).l42 = function (name) {
|
|
3050
3050
|
switch (name) {
|
|
3051
3051
|
case 'UTF-8':
|
|
3052
3052
|
case 'utf-8':
|
|
3053
3053
|
case 'UTF8':
|
|
3054
3054
|
case 'utf8':
|
|
3055
|
-
return Charsets_getInstance().
|
|
3055
|
+
return Charsets_getInstance().v41_1;
|
|
3056
3056
|
}
|
|
3057
3057
|
var tmp;
|
|
3058
3058
|
var tmp_0;
|
|
@@ -3083,7 +3083,7 @@ protoOf(Companion_3).x3x = function (name) {
|
|
|
3083
3083
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3084
3084
|
}
|
|
3085
3085
|
if (tmp) {
|
|
3086
|
-
return Charsets_getInstance().
|
|
3086
|
+
return Charsets_getInstance().w41_1;
|
|
3087
3087
|
}
|
|
3088
3088
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3089
3089
|
};
|
|
@@ -3092,7 +3092,7 @@ function Companion_getInstance_3() {
|
|
|
3092
3092
|
return Companion_instance_4;
|
|
3093
3093
|
}
|
|
3094
3094
|
function Charset(_name) {
|
|
3095
|
-
this.
|
|
3095
|
+
this.x41_1 = _name;
|
|
3096
3096
|
}
|
|
3097
3097
|
protoOf(Charset).equals = function (other) {
|
|
3098
3098
|
if (this === other)
|
|
@@ -3101,18 +3101,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3101
3101
|
return false;
|
|
3102
3102
|
if (!(other instanceof Charset))
|
|
3103
3103
|
THROW_CCE();
|
|
3104
|
-
return this.
|
|
3104
|
+
return this.x41_1 === other.x41_1;
|
|
3105
3105
|
};
|
|
3106
3106
|
protoOf(Charset).hashCode = function () {
|
|
3107
|
-
return getStringHashCode(this.
|
|
3107
|
+
return getStringHashCode(this.x41_1);
|
|
3108
3108
|
};
|
|
3109
3109
|
protoOf(Charset).toString = function () {
|
|
3110
|
-
return this.
|
|
3110
|
+
return this.x41_1;
|
|
3111
3111
|
};
|
|
3112
3112
|
function Charsets() {
|
|
3113
3113
|
Charsets_instance = this;
|
|
3114
|
-
this.
|
|
3115
|
-
this.
|
|
3114
|
+
this.v41_1 = new CharsetImpl('UTF-8');
|
|
3115
|
+
this.w41_1 = new CharsetImpl('ISO-8859-1');
|
|
3116
3116
|
}
|
|
3117
3117
|
var Charsets_instance;
|
|
3118
3118
|
function Charsets_getInstance() {
|
|
@@ -3121,25 +3121,25 @@ function Charsets_getInstance() {
|
|
|
3121
3121
|
return Charsets_instance;
|
|
3122
3122
|
}
|
|
3123
3123
|
function get_name(_this__u8e3s4) {
|
|
3124
|
-
return _this__u8e3s4.
|
|
3124
|
+
return _this__u8e3s4.x41_1;
|
|
3125
3125
|
}
|
|
3126
3126
|
function MalformedInputException(message) {
|
|
3127
3127
|
IOException_init_$Init$_0(message, this);
|
|
3128
3128
|
captureStack(this, MalformedInputException);
|
|
3129
3129
|
}
|
|
3130
3130
|
function CharsetDecoder(_charset) {
|
|
3131
|
-
this.
|
|
3131
|
+
this.n42_1 = _charset;
|
|
3132
3132
|
}
|
|
3133
3133
|
function forName(_this__u8e3s4, name) {
|
|
3134
|
-
return Companion_instance_4.
|
|
3134
|
+
return Companion_instance_4.l42(name);
|
|
3135
3135
|
}
|
|
3136
3136
|
function CharsetEncoder(_charset) {
|
|
3137
|
-
this.
|
|
3137
|
+
this.o42_1 = _charset;
|
|
3138
3138
|
}
|
|
3139
3139
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3140
3140
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3141
|
-
input.
|
|
3142
|
-
var tmp0 = input.
|
|
3141
|
+
input.q3n(fromInt(max));
|
|
3142
|
+
var tmp0 = input.n3n().e1();
|
|
3143
3143
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3144
3144
|
var b = fromInt(max);
|
|
3145
3145
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
@@ -3149,7 +3149,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3149
3149
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3150
3150
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3151
3151
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3152
|
-
tmp = decoder.
|
|
3152
|
+
tmp = decoder.p42(array);
|
|
3153
3153
|
} catch ($p) {
|
|
3154
3154
|
var tmp_0;
|
|
3155
3155
|
if ($p instanceof Error) {
|
|
@@ -3171,11 +3171,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3171
3171
|
var message = 'Failed requirement.';
|
|
3172
3172
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3173
3173
|
}
|
|
3174
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3174
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().w41_1)) {
|
|
3175
3175
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3176
3176
|
}
|
|
3177
3177
|
// Inline function 'kotlin.require' call
|
|
3178
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3178
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().v41_1)) {
|
|
3179
3179
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3180
3180
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3181
3181
|
}
|
|
@@ -3185,7 +3185,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3185
3185
|
var result = encoder.encode(tmp$ret$5);
|
|
3186
3186
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3187
3187
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3188
|
-
dst.
|
|
3188
|
+
dst.a3p(result);
|
|
3189
3189
|
return result.length;
|
|
3190
3190
|
}
|
|
3191
3191
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3196,17 +3196,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3196
3196
|
function CharsetImpl(name) {
|
|
3197
3197
|
Charset.call(this, name);
|
|
3198
3198
|
}
|
|
3199
|
-
protoOf(CharsetImpl).
|
|
3199
|
+
protoOf(CharsetImpl).y41 = function () {
|
|
3200
3200
|
return new CharsetEncoderImpl(this);
|
|
3201
3201
|
};
|
|
3202
|
-
protoOf(CharsetImpl).
|
|
3202
|
+
protoOf(CharsetImpl).m42 = function () {
|
|
3203
3203
|
return new CharsetDecoderImpl(this);
|
|
3204
3204
|
};
|
|
3205
3205
|
function get_charset(_this__u8e3s4) {
|
|
3206
|
-
return _this__u8e3s4.
|
|
3206
|
+
return _this__u8e3s4.n42_1;
|
|
3207
3207
|
}
|
|
3208
3208
|
function get_charset_0(_this__u8e3s4) {
|
|
3209
|
-
return _this__u8e3s4.
|
|
3209
|
+
return _this__u8e3s4.o42_1;
|
|
3210
3210
|
}
|
|
3211
3211
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3212
3212
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3225,39 +3225,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3225
3225
|
}
|
|
3226
3226
|
function CharsetEncoderImpl(charset) {
|
|
3227
3227
|
CharsetEncoder.call(this, charset);
|
|
3228
|
-
this.
|
|
3228
|
+
this.s42_1 = charset;
|
|
3229
3229
|
}
|
|
3230
3230
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3231
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3231
|
+
return 'CharsetEncoderImpl(charset=' + this.s42_1.toString() + ')';
|
|
3232
3232
|
};
|
|
3233
3233
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3234
|
-
return this.
|
|
3234
|
+
return this.s42_1.hashCode();
|
|
3235
3235
|
};
|
|
3236
3236
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3237
3237
|
if (this === other)
|
|
3238
3238
|
return true;
|
|
3239
3239
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3240
3240
|
return false;
|
|
3241
|
-
if (!this.
|
|
3241
|
+
if (!this.s42_1.equals(other.s42_1))
|
|
3242
3242
|
return false;
|
|
3243
3243
|
return true;
|
|
3244
3244
|
};
|
|
3245
3245
|
function CharsetDecoderImpl(charset) {
|
|
3246
3246
|
CharsetDecoder.call(this, charset);
|
|
3247
|
-
this.
|
|
3247
|
+
this.u42_1 = charset;
|
|
3248
3248
|
}
|
|
3249
3249
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3250
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3250
|
+
return 'CharsetDecoderImpl(charset=' + this.u42_1.toString() + ')';
|
|
3251
3251
|
};
|
|
3252
3252
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3253
|
-
return this.
|
|
3253
|
+
return this.u42_1.hashCode();
|
|
3254
3254
|
};
|
|
3255
3255
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3256
3256
|
if (this === other)
|
|
3257
3257
|
return true;
|
|
3258
3258
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3259
3259
|
return false;
|
|
3260
|
-
if (!this.
|
|
3260
|
+
if (!this.u42_1.equals(other.u42_1))
|
|
3261
3261
|
return false;
|
|
3262
3262
|
return true;
|
|
3263
3263
|
};
|
|
@@ -3291,10 +3291,10 @@ function textDecoderOptions(fatal) {
|
|
|
3291
3291
|
return this_0;
|
|
3292
3292
|
}
|
|
3293
3293
|
function toKtor$1($this_toKtor) {
|
|
3294
|
-
this.
|
|
3294
|
+
this.v42_1 = $this_toKtor;
|
|
3295
3295
|
}
|
|
3296
|
-
protoOf(toKtor$1).
|
|
3297
|
-
return this.
|
|
3296
|
+
protoOf(toKtor$1).p42 = function (buffer) {
|
|
3297
|
+
return this.v42_1.decode(buffer);
|
|
3298
3298
|
};
|
|
3299
3299
|
function get_ENCODING_ALIASES() {
|
|
3300
3300
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3307,7 +3307,7 @@ function get_REPLACEMENT() {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
var REPLACEMENT;
|
|
3309
3309
|
function TextDecoderFallback(encoding, fatal) {
|
|
3310
|
-
this.
|
|
3310
|
+
this.w42_1 = fatal;
|
|
3311
3311
|
// Inline function 'kotlin.text.trim' call
|
|
3312
3312
|
// Inline function 'kotlin.text.lowercase' call
|
|
3313
3313
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3318,7 +3318,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3318
3318
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
|
-
protoOf(TextDecoderFallback).
|
|
3321
|
+
protoOf(TextDecoderFallback).p42 = function (buffer) {
|
|
3322
3322
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3323
3323
|
var builder = new Buffer();
|
|
3324
3324
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3334,7 +3334,7 @@ protoOf(TextDecoderFallback).b3y = function (buffer) {
|
|
|
3334
3334
|
var point = toCodePoint(byte);
|
|
3335
3335
|
if (point < 0) {
|
|
3336
3336
|
// Inline function 'kotlin.check' call
|
|
3337
|
-
if (!!this.
|
|
3337
|
+
if (!!this.w42_1) {
|
|
3338
3338
|
var message = 'Invalid character: ' + point;
|
|
3339
3339
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3340
3340
|
}
|
|
@@ -3342,9 +3342,9 @@ protoOf(TextDecoderFallback).b3y = function (buffer) {
|
|
|
3342
3342
|
continue $l$loop;
|
|
3343
3343
|
}
|
|
3344
3344
|
if (point > 255) {
|
|
3345
|
-
builder.
|
|
3345
|
+
builder.h3p(toByte(point >> 8));
|
|
3346
3346
|
}
|
|
3347
|
-
builder.
|
|
3347
|
+
builder.h3p(toByte(point & 255));
|
|
3348
3348
|
}
|
|
3349
3349
|
while (inductionVariable < last);
|
|
3350
3350
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3371,25 +3371,25 @@ function _init_properties_TextDecoderFallback_js_kt__an7r6m() {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
3373
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3374
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3374
|
+
charset = charset === VOID ? Charsets_getInstance().v41_1 : charset;
|
|
3375
3375
|
max = max === VOID ? 2147483647 : max;
|
|
3376
|
-
if (charset.equals(Charsets_getInstance().
|
|
3376
|
+
if (charset.equals(Charsets_getInstance().v41_1)) {
|
|
3377
3377
|
if (max === 2147483647)
|
|
3378
3378
|
return readString_1(_this__u8e3s4);
|
|
3379
|
-
_this__u8e3s4.
|
|
3380
|
-
var tmp0 = _this__u8e3s4.
|
|
3379
|
+
_this__u8e3s4.q3n(fromInt(max));
|
|
3380
|
+
var tmp0 = _this__u8e3s4.n3n().e1();
|
|
3381
3381
|
// Inline function 'kotlin.math.min' call
|
|
3382
3382
|
var b = fromInt(max);
|
|
3383
3383
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
3384
3384
|
return readString(_this__u8e3s4, count);
|
|
3385
3385
|
}
|
|
3386
|
-
return decode(charset.
|
|
3386
|
+
return decode(charset.m42(), _this__u8e3s4, max);
|
|
3387
3387
|
}
|
|
3388
3388
|
function get_DEVELOPMENT_MODE() {
|
|
3389
3389
|
return false;
|
|
3390
3390
|
}
|
|
3391
3391
|
function ioDispatcher() {
|
|
3392
|
-
return Dispatchers_getInstance().
|
|
3392
|
+
return Dispatchers_getInstance().q21_1;
|
|
3393
3393
|
}
|
|
3394
3394
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3395
3395
|
if (fromIndex >= toIndex)
|
|
@@ -3405,7 +3405,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3405
3405
|
if (character > 255) {
|
|
3406
3406
|
failedToMapError(character);
|
|
3407
3407
|
}
|
|
3408
|
-
dst.
|
|
3408
|
+
dst.h3p(toByte(character));
|
|
3409
3409
|
}
|
|
3410
3410
|
while (inductionVariable < toIndex);
|
|
3411
3411
|
return toIndex - fromIndex | 0;
|
|
@@ -3427,66 +3427,66 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
}
|
|
3429
3429
|
function DefaultPool(capacity) {
|
|
3430
|
-
this.
|
|
3430
|
+
this.d42_1 = capacity;
|
|
3431
3431
|
var tmp = this;
|
|
3432
3432
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3433
|
-
var size = this.
|
|
3434
|
-
tmp.
|
|
3435
|
-
this.
|
|
3433
|
+
var size = this.d42_1;
|
|
3434
|
+
tmp.e42_1 = Array(size);
|
|
3435
|
+
this.f42_1 = 0;
|
|
3436
3436
|
}
|
|
3437
|
-
protoOf(DefaultPool).
|
|
3437
|
+
protoOf(DefaultPool).g42 = function (instance) {
|
|
3438
3438
|
};
|
|
3439
|
-
protoOf(DefaultPool).
|
|
3439
|
+
protoOf(DefaultPool).h42 = function (instance) {
|
|
3440
3440
|
return instance;
|
|
3441
3441
|
};
|
|
3442
|
-
protoOf(DefaultPool).
|
|
3442
|
+
protoOf(DefaultPool).i42 = function (instance) {
|
|
3443
3443
|
};
|
|
3444
|
-
protoOf(DefaultPool).
|
|
3445
|
-
if (this.
|
|
3446
|
-
return this.
|
|
3447
|
-
this.
|
|
3448
|
-
var idx = this.
|
|
3449
|
-
var tmp = this.
|
|
3444
|
+
protoOf(DefaultPool).j42 = function () {
|
|
3445
|
+
if (this.f42_1 === 0)
|
|
3446
|
+
return this.c42();
|
|
3447
|
+
this.f42_1 = this.f42_1 - 1 | 0;
|
|
3448
|
+
var idx = this.f42_1;
|
|
3449
|
+
var tmp = this.e42_1[idx];
|
|
3450
3450
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3451
|
-
this.
|
|
3452
|
-
return this.
|
|
3451
|
+
this.e42_1[idx] = null;
|
|
3452
|
+
return this.h42(instance);
|
|
3453
3453
|
};
|
|
3454
|
-
protoOf(DefaultPool).
|
|
3455
|
-
this.
|
|
3456
|
-
if (this.
|
|
3457
|
-
this.
|
|
3454
|
+
protoOf(DefaultPool).k42 = function (instance) {
|
|
3455
|
+
this.i42(instance);
|
|
3456
|
+
if (this.f42_1 === this.d42_1) {
|
|
3457
|
+
this.g42(instance);
|
|
3458
3458
|
} else {
|
|
3459
|
-
var _unary__edvuaz = this.
|
|
3460
|
-
this.
|
|
3461
|
-
this.
|
|
3459
|
+
var _unary__edvuaz = this.f42_1;
|
|
3460
|
+
this.f42_1 = _unary__edvuaz + 1 | 0;
|
|
3461
|
+
this.e42_1[_unary__edvuaz] = instance;
|
|
3462
3462
|
}
|
|
3463
3463
|
};
|
|
3464
|
-
protoOf(DefaultPool).
|
|
3464
|
+
protoOf(DefaultPool).i1s = function () {
|
|
3465
3465
|
var inductionVariable = 0;
|
|
3466
|
-
var last = this.
|
|
3466
|
+
var last = this.f42_1;
|
|
3467
3467
|
if (inductionVariable < last)
|
|
3468
3468
|
do {
|
|
3469
3469
|
var i = inductionVariable;
|
|
3470
3470
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3471
|
-
var tmp = this.
|
|
3471
|
+
var tmp = this.e42_1[i];
|
|
3472
3472
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3473
|
-
this.
|
|
3474
|
-
this.
|
|
3473
|
+
this.e42_1[i] = null;
|
|
3474
|
+
this.g42(instance);
|
|
3475
3475
|
}
|
|
3476
3476
|
while (inductionVariable < last);
|
|
3477
|
-
this.
|
|
3477
|
+
this.f42_1 = 0;
|
|
3478
3478
|
};
|
|
3479
3479
|
//region block: post-declaration
|
|
3480
|
-
protoOf(Read).
|
|
3481
|
-
protoOf(Read).
|
|
3482
|
-
protoOf(Write).
|
|
3483
|
-
protoOf(Write).
|
|
3484
|
-
protoOf(ByteChannel).
|
|
3485
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3486
|
-
protoOf(CountedByteReadChannel).
|
|
3487
|
-
protoOf(SourceByteReadChannel).
|
|
3488
|
-
protoOf(DefaultPool).
|
|
3489
|
-
protoOf(NoPoolImpl).
|
|
3480
|
+
protoOf(Read).s3q = resume;
|
|
3481
|
+
protoOf(Read).t3q = resume_0;
|
|
3482
|
+
protoOf(Write).s3q = resume;
|
|
3483
|
+
protoOf(Write).t3q = resume_0;
|
|
3484
|
+
protoOf(ByteChannel).y3s = awaitContent$default;
|
|
3485
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y3s = awaitContent$default;
|
|
3486
|
+
protoOf(CountedByteReadChannel).y3s = awaitContent$default;
|
|
3487
|
+
protoOf(SourceByteReadChannel).y3s = awaitContent$default;
|
|
3488
|
+
protoOf(DefaultPool).j4 = close;
|
|
3489
|
+
protoOf(NoPoolImpl).j4 = close;
|
|
3490
3490
|
//endregion
|
|
3491
3491
|
//region block: init
|
|
3492
3492
|
Empty_instance = new Empty();
|