@solibo/home-api 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +742 -742
- package/kotlin-kotlin-stdlib.js +3032 -1782
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +14 -14
- package/kotlinx-coroutines-core.js +1893 -1893
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +35 -35
- package/kotlinx-io-kotlinx-io-core.js +457 -457
- package/kotlinx-serialization-kotlinx-serialization-core.js +1798 -1798
- package/kotlinx-serialization-kotlinx-serialization-json.js +1409 -1409
- package/ktor-ktor-client-content-negotiation.js +190 -190
- package/ktor-ktor-client-core.js +2991 -2991
- package/ktor-ktor-events.js +8 -8
- package/ktor-ktor-http-cio.js +497 -497
- package/ktor-ktor-http.js +675 -675
- package/ktor-ktor-io.js +1099 -1104
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +230 -230
- package/ktor-ktor-serialization.js +107 -107
- package/ktor-ktor-utils.js +553 -553
- package/ktor-ktor-websockets.js +757 -757
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +395 -8
- package/solibo-sdk-sdk-home-api.js +74182 -68237
- package/solibo-sdk-sdk-home-api.js.map +1 -1
package/ktor-ktor-io.js
CHANGED
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
var protoOf = kotlin_kotlin.$_$.ub;
|
|
31
31
|
var initMetadataForCompanion = kotlin_kotlin.$_$.ya;
|
|
32
32
|
var initMetadataForObject = kotlin_kotlin.$_$.db;
|
|
33
|
-
var toString = kotlin_kotlin.$_$.
|
|
33
|
+
var toString = kotlin_kotlin.$_$.xg;
|
|
34
34
|
var hashCode = kotlin_kotlin.$_$.wa;
|
|
35
35
|
var equals = kotlin_kotlin.$_$.oa;
|
|
36
36
|
var initMetadataForClass = kotlin_kotlin.$_$.xa;
|
|
37
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
38
|
-
var Result = kotlin_kotlin.$_$.
|
|
37
|
+
var createFailure = kotlin_kotlin.$_$.mg;
|
|
38
|
+
var Result = kotlin_kotlin.$_$.tf;
|
|
39
39
|
var initMetadataForInterface = kotlin_kotlin.$_$.bb;
|
|
40
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
40
|
+
var toString_0 = kotlin_kotlin.$_$.pe;
|
|
41
41
|
var newThrowable = kotlin_kotlin.$_$.qb;
|
|
42
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
42
|
+
var stackTraceToString = kotlin_kotlin.$_$.wg;
|
|
43
43
|
var VOID = kotlin_kotlin.$_$.b;
|
|
44
44
|
var isInterface = kotlin_kotlin.$_$.mb;
|
|
45
45
|
var CoroutineImpl = kotlin_kotlin.$_$.g9;
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
var add = kotlin_kotlin.$_$.l9;
|
|
49
49
|
var intercepted = kotlin_kotlin.$_$.s8;
|
|
50
50
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
51
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
51
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
|
|
52
52
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
53
53
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.p8;
|
|
54
54
|
var initMetadataForCoroutine = kotlin_kotlin.$_$.za;
|
|
55
55
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
56
56
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
57
57
|
var convertToInt = kotlin_kotlin.$_$.n9;
|
|
58
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
58
|
+
var IllegalStateException = kotlin_kotlin.$_$.qf;
|
|
59
59
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
60
60
|
var captureStack = kotlin_kotlin.$_$.fa;
|
|
61
61
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
62
62
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
63
|
-
var replace = kotlin_kotlin.$_$.
|
|
63
|
+
var replace = kotlin_kotlin.$_$.sd;
|
|
64
64
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
65
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
66
66
|
var get_ONE = kotlin_kotlin.$_$.k9;
|
|
67
67
|
var toString_1 = kotlin_kotlin.$_$.xb;
|
|
68
68
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
88
88
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
89
89
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
90
|
-
var Enum = kotlin_kotlin.$_$.
|
|
90
|
+
var Enum = kotlin_kotlin.$_$.mf;
|
|
91
91
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
92
92
|
var listOf = kotlin_kotlin.$_$.g7;
|
|
93
93
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
@@ -96,15 +96,15 @@
|
|
|
96
96
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
97
97
|
var encodeToByteArray = kotlin_kotlin.$_$.bd;
|
|
98
98
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
99
|
-
var
|
|
100
|
-
var AutoCloseable = kotlin_kotlin.$_$.ef;
|
|
99
|
+
var AutoCloseable = kotlin_kotlin.$_$.ff;
|
|
101
100
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
102
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
101
|
+
var replace_0 = kotlin_kotlin.$_$.td;
|
|
103
102
|
var getStringHashCode = kotlin_kotlin.$_$.va;
|
|
104
103
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
105
104
|
var charSequenceSubSequence = kotlin_kotlin.$_$.la;
|
|
105
|
+
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
106
106
|
var isCharSequence = kotlin_kotlin.$_$.ib;
|
|
107
|
-
var trim = kotlin_kotlin.$_$.
|
|
107
|
+
var trim = kotlin_kotlin.$_$.ze;
|
|
108
108
|
var toByte = kotlin_kotlin.$_$.vb;
|
|
109
109
|
var decodeToString_0 = kotlin_kotlin.$_$.zc;
|
|
110
110
|
var setOf = kotlin_kotlin.$_$.t7;
|
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
initMetadataForObject(Empty, 'Empty');
|
|
118
118
|
initMetadataForClass(Closed, 'Closed');
|
|
119
119
|
function resume() {
|
|
120
|
-
return this.
|
|
120
|
+
return this.t1e().u8(Companion_getInstance().q1e_1);
|
|
121
121
|
}
|
|
122
122
|
function resume_0(throwable) {
|
|
123
|
-
var tmp = this.
|
|
123
|
+
var tmp = this.t1e();
|
|
124
124
|
var tmp_0;
|
|
125
125
|
if (throwable == null) {
|
|
126
126
|
tmp_0 = null;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
tmp_0 = new Result(tmp$ret$2);
|
|
132
132
|
}
|
|
133
133
|
var tmp1_elvis_lhs = tmp_0;
|
|
134
|
-
return tmp.
|
|
134
|
+
return tmp.u8(tmp1_elvis_lhs == null ? Companion_getInstance().q1e_1 : tmp1_elvis_lhs.cm_1);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(Task, 'Task');
|
|
137
137
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
142
142
|
function awaitContent$default(min, $completion, $super) {
|
|
143
143
|
min = min === VOID ? 1 : min;
|
|
144
|
-
return $super === VOID ? this.
|
|
144
|
+
return $super === VOID ? this.a1h(min, $completion) : $super.a1h.call(this, min, $completion);
|
|
145
145
|
}
|
|
146
146
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
147
147
|
function get_autoFlush() {
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
189
189
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
190
190
|
function close() {
|
|
191
|
-
this.
|
|
191
|
+
this.nv();
|
|
192
192
|
}
|
|
193
193
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
194
194
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -207,10 +207,10 @@
|
|
|
207
207
|
//endregion
|
|
208
208
|
function Companion() {
|
|
209
209
|
Companion_instance_0 = this;
|
|
210
|
-
this.
|
|
210
|
+
this.p1e_1 = new Closed(null);
|
|
211
211
|
var tmp = this;
|
|
212
212
|
// Inline function 'kotlin.Companion.success' call
|
|
213
|
-
tmp.
|
|
213
|
+
tmp.q1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
214
214
|
}
|
|
215
215
|
var Companion_instance_0;
|
|
216
216
|
function Companion_getInstance() {
|
|
@@ -238,87 +238,87 @@
|
|
|
238
238
|
return Empty_instance;
|
|
239
239
|
}
|
|
240
240
|
function Closed(cause) {
|
|
241
|
-
this.
|
|
241
|
+
this.r1e_1 = cause;
|
|
242
242
|
}
|
|
243
243
|
protoOf(Closed).toString = function () {
|
|
244
|
-
return 'Closed(cause=' + toString(this.
|
|
244
|
+
return 'Closed(cause=' + toString(this.r1e_1) + ')';
|
|
245
245
|
};
|
|
246
246
|
protoOf(Closed).hashCode = function () {
|
|
247
|
-
return this.
|
|
247
|
+
return this.r1e_1 == null ? 0 : hashCode(this.r1e_1);
|
|
248
248
|
};
|
|
249
249
|
protoOf(Closed).equals = function (other) {
|
|
250
250
|
if (this === other)
|
|
251
251
|
return true;
|
|
252
252
|
if (!(other instanceof Closed))
|
|
253
253
|
return false;
|
|
254
|
-
if (!equals(this.
|
|
254
|
+
if (!equals(this.r1e_1, other.r1e_1))
|
|
255
255
|
return false;
|
|
256
256
|
return true;
|
|
257
257
|
};
|
|
258
258
|
function Task() {
|
|
259
259
|
}
|
|
260
260
|
function Read(continuation) {
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
261
|
+
this.x1e_1 = continuation;
|
|
262
|
+
this.y1e_1 = null;
|
|
263
263
|
if (get_DEVELOPMENT_MODE()) {
|
|
264
264
|
var tmp = this;
|
|
265
265
|
// Inline function 'kotlin.also' call
|
|
266
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
266
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.x1e_1), 16));
|
|
267
267
|
stackTraceToString(this_0);
|
|
268
|
-
tmp.
|
|
268
|
+
tmp.y1e_1 = this_0;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
|
-
protoOf(Read).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(Read).t1e = function () {
|
|
272
|
+
return this.x1e_1;
|
|
273
273
|
};
|
|
274
|
-
protoOf(Read).
|
|
275
|
-
return this.
|
|
274
|
+
protoOf(Read).s1e = function () {
|
|
275
|
+
return this.y1e_1;
|
|
276
276
|
};
|
|
277
|
-
protoOf(Read).
|
|
277
|
+
protoOf(Read).u1e = function () {
|
|
278
278
|
return 'read';
|
|
279
279
|
};
|
|
280
280
|
function Write(continuation) {
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
281
|
+
this.z1e_1 = continuation;
|
|
282
|
+
this.a1f_1 = null;
|
|
283
283
|
if (get_DEVELOPMENT_MODE()) {
|
|
284
284
|
var tmp = this;
|
|
285
285
|
// Inline function 'kotlin.also' call
|
|
286
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
286
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.z1e_1), 16));
|
|
287
287
|
stackTraceToString(this_0);
|
|
288
|
-
tmp.
|
|
288
|
+
tmp.a1f_1 = this_0;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
|
-
protoOf(Write).
|
|
292
|
-
return this.
|
|
291
|
+
protoOf(Write).t1e = function () {
|
|
292
|
+
return this.z1e_1;
|
|
293
293
|
};
|
|
294
|
-
protoOf(Write).
|
|
295
|
-
return this.
|
|
294
|
+
protoOf(Write).s1e = function () {
|
|
295
|
+
return this.a1f_1;
|
|
296
296
|
};
|
|
297
|
-
protoOf(Write).
|
|
297
|
+
protoOf(Write).u1e = function () {
|
|
298
298
|
return 'write';
|
|
299
299
|
};
|
|
300
300
|
function moveFlushToReadBuffer($this) {
|
|
301
301
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
302
|
-
$this.
|
|
303
|
-
$this.
|
|
304
|
-
$this.
|
|
302
|
+
$this.e1f_1;
|
|
303
|
+
$this.c1f_1.up($this.g1f_1);
|
|
304
|
+
$this.d1f_1 = 0;
|
|
305
305
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
306
|
-
var current = $this.
|
|
306
|
+
var current = $this.f1f_1.kotlinx$atomicfu$value;
|
|
307
307
|
var tmp;
|
|
308
308
|
if (current instanceof Write) {
|
|
309
|
-
tmp = $this.
|
|
309
|
+
tmp = $this.f1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
310
310
|
} else {
|
|
311
311
|
tmp = false;
|
|
312
312
|
}
|
|
313
313
|
if (tmp) {
|
|
314
|
-
current.
|
|
314
|
+
current.v1e();
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
function closeSlot($this, cause) {
|
|
318
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
319
|
-
var continuation = $this.
|
|
318
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().p1e_1;
|
|
319
|
+
var continuation = $this.f1f_1.atomicfu$getAndSet(closeContinuation);
|
|
320
320
|
if (isInterface(continuation, Task)) {
|
|
321
|
-
continuation.
|
|
321
|
+
continuation.w1e(cause);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -337,50 +337,50 @@
|
|
|
337
337
|
}
|
|
338
338
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
339
339
|
CoroutineImpl.call(this, resultContinuation);
|
|
340
|
-
this.
|
|
341
|
-
this.
|
|
340
|
+
this.r1f_1 = _this__u8e3s4;
|
|
341
|
+
this.s1f_1 = min;
|
|
342
342
|
}
|
|
343
|
-
protoOf($awaitContentCOROUTINE$).
|
|
344
|
-
var suspendResult = this.
|
|
343
|
+
protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
344
|
+
var suspendResult = this.l8_1;
|
|
345
345
|
$sm: do
|
|
346
346
|
try {
|
|
347
|
-
var tmp = this.
|
|
347
|
+
var tmp = this.j8_1;
|
|
348
348
|
switch (tmp) {
|
|
349
349
|
case 0:
|
|
350
|
-
this.
|
|
351
|
-
rethrowCloseCauseIfNeeded(this.
|
|
352
|
-
if (this.
|
|
350
|
+
this.k8_1 = 4;
|
|
351
|
+
rethrowCloseCauseIfNeeded(this.r1f_1);
|
|
352
|
+
if (this.r1f_1.g1f_1.g1() >= fromInt(this.s1f_1))
|
|
353
353
|
return true;
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
354
|
+
this.t1f_1 = this.r1f_1;
|
|
355
|
+
this.j8_1 = 1;
|
|
356
356
|
continue $sm;
|
|
357
357
|
case 1:
|
|
358
|
-
if (!(add(numberToLong(this.
|
|
359
|
-
this.
|
|
358
|
+
if (!(add(numberToLong(this.r1f_1.d1f_1), this.r1f_1.g1f_1.g1()) < fromInt(this.s1f_1) && this.r1f_1.i1f_1.kotlinx$atomicfu$value == null)) {
|
|
359
|
+
this.j8_1 = 3;
|
|
360
360
|
continue $sm;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
this.
|
|
363
|
+
this.j8_1 = 2;
|
|
364
364
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
365
|
-
cancellable.
|
|
366
|
-
var tmp0 = this.
|
|
365
|
+
cancellable.qw();
|
|
366
|
+
var tmp0 = this.t1f_1;
|
|
367
367
|
var tmp2 = new Read(cancellable);
|
|
368
368
|
l$ret$1: do {
|
|
369
|
-
var previous = tmp0.
|
|
369
|
+
var previous = tmp0.f1f_1.kotlinx$atomicfu$value;
|
|
370
370
|
if (!(previous instanceof Closed)) {
|
|
371
|
-
if (!tmp0.
|
|
372
|
-
tmp2.
|
|
371
|
+
if (!tmp0.f1f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
372
|
+
tmp2.v1e();
|
|
373
373
|
break l$ret$1;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
if (previous instanceof Read) {
|
|
377
|
-
previous.
|
|
377
|
+
previous.w1e(new ConcurrentIOException(tmp2.u1e(), previous.s1e()));
|
|
378
378
|
} else {
|
|
379
379
|
if (isInterface(previous, Task)) {
|
|
380
|
-
previous.
|
|
380
|
+
previous.v1e();
|
|
381
381
|
} else {
|
|
382
382
|
if (previous instanceof Closed) {
|
|
383
|
-
tmp2.
|
|
383
|
+
tmp2.w1e(previous.r1e_1);
|
|
384
384
|
break l$ret$1;
|
|
385
385
|
} else {
|
|
386
386
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -389,95 +389,95 @@
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
if (!(add(numberToLong(this.
|
|
393
|
-
var current = tmp0.
|
|
392
|
+
if (!(add(numberToLong(this.r1f_1.d1f_1), this.r1f_1.g1f_1.g1()) < fromInt(this.s1f_1) && this.r1f_1.i1f_1.kotlinx$atomicfu$value == null)) {
|
|
393
|
+
var current = tmp0.f1f_1.kotlinx$atomicfu$value;
|
|
394
394
|
var tmp_0;
|
|
395
395
|
if (current instanceof Read) {
|
|
396
|
-
tmp_0 = tmp0.
|
|
396
|
+
tmp_0 = tmp0.f1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
397
397
|
} else {
|
|
398
398
|
tmp_0 = false;
|
|
399
399
|
}
|
|
400
400
|
if (tmp_0) {
|
|
401
|
-
current.
|
|
401
|
+
current.v1e();
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
while (false);
|
|
406
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
406
|
+
suspendResult = returnIfSuspended(cancellable.yw(), this);
|
|
407
407
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
408
408
|
return suspendResult;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
continue $sm;
|
|
412
412
|
case 2:
|
|
413
|
-
this.
|
|
413
|
+
this.j8_1 = 1;
|
|
414
414
|
continue $sm;
|
|
415
415
|
case 3:
|
|
416
|
-
if (this.
|
|
417
|
-
moveFlushToReadBuffer(this.
|
|
416
|
+
if (this.r1f_1.g1f_1.g1() < 1048576n) {
|
|
417
|
+
moveFlushToReadBuffer(this.r1f_1);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
return this.
|
|
420
|
+
return this.r1f_1.g1f_1.g1() >= fromInt(this.s1f_1);
|
|
421
421
|
case 4:
|
|
422
|
-
throw this.
|
|
422
|
+
throw this.m8_1;
|
|
423
423
|
}
|
|
424
424
|
} catch ($p) {
|
|
425
425
|
var e = $p;
|
|
426
|
-
if (this.
|
|
426
|
+
if (this.k8_1 === 4) {
|
|
427
427
|
throw e;
|
|
428
428
|
} else {
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
429
|
+
this.j8_1 = this.k8_1;
|
|
430
|
+
this.m8_1 = e;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
while (true);
|
|
434
434
|
};
|
|
435
435
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
436
436
|
CoroutineImpl.call(this, resultContinuation);
|
|
437
|
-
this.
|
|
437
|
+
this.c1g_1 = _this__u8e3s4;
|
|
438
438
|
}
|
|
439
|
-
protoOf($flushCOROUTINE$).
|
|
440
|
-
var suspendResult = this.
|
|
439
|
+
protoOf($flushCOROUTINE$).r8 = function () {
|
|
440
|
+
var suspendResult = this.l8_1;
|
|
441
441
|
$sm: do
|
|
442
442
|
try {
|
|
443
|
-
var tmp = this.
|
|
443
|
+
var tmp = this.j8_1;
|
|
444
444
|
switch (tmp) {
|
|
445
445
|
case 0:
|
|
446
|
-
this.
|
|
447
|
-
rethrowCloseCauseIfNeeded(this.
|
|
448
|
-
this.
|
|
449
|
-
if (this.
|
|
446
|
+
this.k8_1 = 4;
|
|
447
|
+
rethrowCloseCauseIfNeeded(this.c1g_1);
|
|
448
|
+
this.c1g_1.e1g();
|
|
449
|
+
if (this.c1g_1.d1f_1 < 1048576)
|
|
450
450
|
return Unit_instance;
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
451
|
+
this.d1g_1 = this.c1g_1;
|
|
452
|
+
this.j8_1 = 1;
|
|
453
453
|
continue $sm;
|
|
454
454
|
case 1:
|
|
455
|
-
if (!(this.
|
|
456
|
-
this.
|
|
455
|
+
if (!(this.c1g_1.d1f_1 >= 1048576 && this.c1g_1.i1f_1.kotlinx$atomicfu$value == null)) {
|
|
456
|
+
this.j8_1 = 3;
|
|
457
457
|
continue $sm;
|
|
458
458
|
}
|
|
459
459
|
|
|
460
|
-
this.
|
|
460
|
+
this.j8_1 = 2;
|
|
461
461
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
462
|
-
cancellable.
|
|
463
|
-
var tmp0 = this.
|
|
462
|
+
cancellable.qw();
|
|
463
|
+
var tmp0 = this.d1g_1;
|
|
464
464
|
var tmp2 = new Write(cancellable);
|
|
465
465
|
l$ret$1: do {
|
|
466
|
-
var previous = tmp0.
|
|
466
|
+
var previous = tmp0.f1f_1.kotlinx$atomicfu$value;
|
|
467
467
|
if (!(previous instanceof Closed)) {
|
|
468
|
-
if (!tmp0.
|
|
469
|
-
tmp2.
|
|
468
|
+
if (!tmp0.f1f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
469
|
+
tmp2.v1e();
|
|
470
470
|
break l$ret$1;
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
if (previous instanceof Write) {
|
|
474
|
-
previous.
|
|
474
|
+
previous.w1e(new ConcurrentIOException(tmp2.u1e(), previous.s1e()));
|
|
475
475
|
} else {
|
|
476
476
|
if (isInterface(previous, Task)) {
|
|
477
|
-
previous.
|
|
477
|
+
previous.v1e();
|
|
478
478
|
} else {
|
|
479
479
|
if (previous instanceof Closed) {
|
|
480
|
-
tmp2.
|
|
480
|
+
tmp2.w1e(previous.r1e_1);
|
|
481
481
|
break l$ret$1;
|
|
482
482
|
} else {
|
|
483
483
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -486,62 +486,62 @@
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
if (!(this.
|
|
490
|
-
var current = tmp0.
|
|
489
|
+
if (!(this.c1g_1.d1f_1 >= 1048576 && this.c1g_1.i1f_1.kotlinx$atomicfu$value == null)) {
|
|
490
|
+
var current = tmp0.f1f_1.kotlinx$atomicfu$value;
|
|
491
491
|
var tmp_0;
|
|
492
492
|
if (current instanceof Write) {
|
|
493
|
-
tmp_0 = tmp0.
|
|
493
|
+
tmp_0 = tmp0.f1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
494
494
|
} else {
|
|
495
495
|
tmp_0 = false;
|
|
496
496
|
}
|
|
497
497
|
if (tmp_0) {
|
|
498
|
-
current.
|
|
498
|
+
current.v1e();
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
while (false);
|
|
503
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
503
|
+
suspendResult = returnIfSuspended(cancellable.yw(), this);
|
|
504
504
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
505
505
|
return suspendResult;
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
continue $sm;
|
|
509
509
|
case 2:
|
|
510
|
-
this.
|
|
510
|
+
this.j8_1 = 1;
|
|
511
511
|
continue $sm;
|
|
512
512
|
case 3:
|
|
513
513
|
return Unit_instance;
|
|
514
514
|
case 4:
|
|
515
|
-
throw this.
|
|
515
|
+
throw this.m8_1;
|
|
516
516
|
}
|
|
517
517
|
} catch ($p) {
|
|
518
518
|
var e = $p;
|
|
519
|
-
if (this.
|
|
519
|
+
if (this.k8_1 === 4) {
|
|
520
520
|
throw e;
|
|
521
521
|
} else {
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
522
|
+
this.j8_1 = this.k8_1;
|
|
523
|
+
this.m8_1 = e;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
while (true);
|
|
527
527
|
};
|
|
528
528
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
529
529
|
CoroutineImpl.call(this, resultContinuation);
|
|
530
|
-
this.
|
|
530
|
+
this.n1g_1 = _this__u8e3s4;
|
|
531
531
|
}
|
|
532
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
533
|
-
var suspendResult = this.
|
|
532
|
+
protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
533
|
+
var suspendResult = this.l8_1;
|
|
534
534
|
$sm: do
|
|
535
535
|
try {
|
|
536
|
-
var tmp = this.
|
|
536
|
+
var tmp = this.j8_1;
|
|
537
537
|
switch (tmp) {
|
|
538
538
|
case 0:
|
|
539
|
-
this.
|
|
540
|
-
var this_0 = this.
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
suspendResult = this_0.
|
|
539
|
+
this.k8_1 = 4;
|
|
540
|
+
var this_0 = this.n1g_1;
|
|
541
|
+
this.k8_1 = 2;
|
|
542
|
+
this.p1g_1 = Companion_instance;
|
|
543
|
+
this.j8_1 = 1;
|
|
544
|
+
suspendResult = this_0.q1g(this);
|
|
545
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
546
|
return suspendResult;
|
|
547
547
|
}
|
|
@@ -549,144 +549,144 @@
|
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 1:
|
|
551
551
|
var tmp_0 = this;
|
|
552
|
-
this.
|
|
553
|
-
tmp_0.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
552
|
+
this.p1g_1;
|
|
553
|
+
tmp_0.o1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
554
|
+
this.k8_1 = 4;
|
|
555
|
+
this.j8_1 = 3;
|
|
556
556
|
continue $sm;
|
|
557
557
|
case 2:
|
|
558
|
-
this.
|
|
559
|
-
var tmp_1 = this.
|
|
558
|
+
this.k8_1 = 4;
|
|
559
|
+
var tmp_1 = this.m8_1;
|
|
560
560
|
if (tmp_1 instanceof Error) {
|
|
561
|
-
var e = this.
|
|
561
|
+
var e = this.m8_1;
|
|
562
562
|
var tmp_2 = this;
|
|
563
|
-
tmp_2.
|
|
564
|
-
this.
|
|
563
|
+
tmp_2.o1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
564
|
+
this.j8_1 = 3;
|
|
565
565
|
continue $sm;
|
|
566
566
|
} else {
|
|
567
|
-
throw this.
|
|
567
|
+
throw this.m8_1;
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
case 3:
|
|
571
|
-
this.
|
|
572
|
-
if (!this.
|
|
571
|
+
this.k8_1 = 4;
|
|
572
|
+
if (!this.n1g_1.i1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
573
573
|
return Unit_instance;
|
|
574
|
-
closeSlot(this.
|
|
574
|
+
closeSlot(this.n1g_1, null);
|
|
575
575
|
return Unit_instance;
|
|
576
576
|
case 4:
|
|
577
|
-
throw this.
|
|
577
|
+
throw this.m8_1;
|
|
578
578
|
}
|
|
579
579
|
} catch ($p) {
|
|
580
580
|
var e_0 = $p;
|
|
581
|
-
if (this.
|
|
581
|
+
if (this.k8_1 === 4) {
|
|
582
582
|
throw e_0;
|
|
583
583
|
} else {
|
|
584
|
-
this.
|
|
585
|
-
this.
|
|
584
|
+
this.j8_1 = this.k8_1;
|
|
585
|
+
this.m8_1 = e_0;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
while (true);
|
|
589
589
|
};
|
|
590
590
|
function ByteChannel(autoFlush) {
|
|
591
591
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
592
|
-
this.
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
}
|
|
601
|
-
protoOf(ByteChannel).
|
|
602
|
-
return this.
|
|
603
|
-
};
|
|
604
|
-
protoOf(ByteChannel).
|
|
605
|
-
var tmp0_safe_receiver = this.
|
|
592
|
+
this.b1f_1 = autoFlush;
|
|
593
|
+
this.c1f_1 = new Buffer();
|
|
594
|
+
this.d1f_1 = 0;
|
|
595
|
+
this.e1f_1 = new Object();
|
|
596
|
+
this.f1f_1 = atomic$ref$1(Empty_instance);
|
|
597
|
+
this.g1f_1 = new Buffer();
|
|
598
|
+
this.h1f_1 = new Buffer();
|
|
599
|
+
this.i1f_1 = atomic$ref$1(null);
|
|
600
|
+
}
|
|
601
|
+
protoOf(ByteChannel).r1g = function () {
|
|
602
|
+
return this.b1f_1;
|
|
603
|
+
};
|
|
604
|
+
protoOf(ByteChannel).s1g = function () {
|
|
605
|
+
var tmp0_safe_receiver = this.i1f_1.kotlinx$atomicfu$value;
|
|
606
606
|
if (tmp0_safe_receiver == null)
|
|
607
607
|
null;
|
|
608
608
|
else {
|
|
609
|
-
tmp0_safe_receiver.
|
|
609
|
+
tmp0_safe_receiver.u1g(ClosedReadChannelException$_init_$ref_ix0089());
|
|
610
610
|
}
|
|
611
|
-
if (this.
|
|
611
|
+
if (this.g1f_1.ro()) {
|
|
612
612
|
moveFlushToReadBuffer(this);
|
|
613
613
|
}
|
|
614
|
-
return this.
|
|
614
|
+
return this.g1f_1;
|
|
615
615
|
};
|
|
616
|
-
protoOf(ByteChannel).
|
|
617
|
-
if (this.
|
|
618
|
-
var tmp0_safe_receiver = this.
|
|
616
|
+
protoOf(ByteChannel).v1g = function () {
|
|
617
|
+
if (this.w1g()) {
|
|
618
|
+
var tmp0_safe_receiver = this.i1f_1.kotlinx$atomicfu$value;
|
|
619
619
|
var tmp;
|
|
620
620
|
if (tmp0_safe_receiver == null) {
|
|
621
621
|
tmp = null;
|
|
622
622
|
} else {
|
|
623
|
-
tmp = tmp0_safe_receiver.
|
|
623
|
+
tmp = tmp0_safe_receiver.u1g(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
624
624
|
}
|
|
625
625
|
if (tmp == null)
|
|
626
626
|
throw new ClosedWriteChannelException();
|
|
627
627
|
}
|
|
628
|
-
return this.
|
|
628
|
+
return this.h1f_1;
|
|
629
629
|
};
|
|
630
|
-
protoOf(ByteChannel).
|
|
631
|
-
var tmp0_safe_receiver = this.
|
|
632
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
630
|
+
protoOf(ByteChannel).x1g = function () {
|
|
631
|
+
var tmp0_safe_receiver = this.i1f_1.kotlinx$atomicfu$value;
|
|
632
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1g();
|
|
633
633
|
};
|
|
634
|
-
protoOf(ByteChannel).
|
|
635
|
-
return !(this.
|
|
634
|
+
protoOf(ByteChannel).w1g = function () {
|
|
635
|
+
return !(this.i1f_1.kotlinx$atomicfu$value == null);
|
|
636
636
|
};
|
|
637
|
-
protoOf(ByteChannel).
|
|
638
|
-
return !(this.
|
|
637
|
+
protoOf(ByteChannel).z1g = function () {
|
|
638
|
+
return !(this.x1g() == null) || (this.w1g() && this.d1f_1 === 0 && this.g1f_1.ro());
|
|
639
639
|
};
|
|
640
|
-
protoOf(ByteChannel).
|
|
640
|
+
protoOf(ByteChannel).a1h = function (min, $completion) {
|
|
641
641
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
642
|
-
tmp.
|
|
643
|
-
tmp.
|
|
644
|
-
return tmp.
|
|
642
|
+
tmp.l8_1 = Unit_instance;
|
|
643
|
+
tmp.m8_1 = null;
|
|
644
|
+
return tmp.r8();
|
|
645
645
|
};
|
|
646
|
-
protoOf(ByteChannel).
|
|
646
|
+
protoOf(ByteChannel).q1g = function ($completion) {
|
|
647
647
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
648
|
-
tmp.
|
|
649
|
-
tmp.
|
|
650
|
-
return tmp.
|
|
648
|
+
tmp.l8_1 = Unit_instance;
|
|
649
|
+
tmp.m8_1 = null;
|
|
650
|
+
return tmp.r8();
|
|
651
651
|
};
|
|
652
|
-
protoOf(ByteChannel).
|
|
653
|
-
if (this.
|
|
652
|
+
protoOf(ByteChannel).e1g = function () {
|
|
653
|
+
if (this.h1f_1.ro())
|
|
654
654
|
return Unit_instance;
|
|
655
655
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
656
|
-
this.
|
|
657
|
-
var count = convertToInt(this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
656
|
+
this.e1f_1;
|
|
657
|
+
var count = convertToInt(this.h1f_1.g1());
|
|
658
|
+
this.c1f_1.jq(this.h1f_1);
|
|
659
|
+
this.d1f_1 = this.d1f_1 + count | 0;
|
|
660
660
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
661
|
-
var current = this.
|
|
661
|
+
var current = this.f1f_1.kotlinx$atomicfu$value;
|
|
662
662
|
var tmp;
|
|
663
663
|
if (current instanceof Read) {
|
|
664
|
-
tmp = this.
|
|
664
|
+
tmp = this.f1f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
665
665
|
} else {
|
|
666
666
|
tmp = false;
|
|
667
667
|
}
|
|
668
668
|
if (tmp) {
|
|
669
|
-
current.
|
|
669
|
+
current.v1e();
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
protoOf(ByteChannel).
|
|
673
|
-
this.
|
|
674
|
-
if (!this.
|
|
672
|
+
protoOf(ByteChannel).j4 = function () {
|
|
673
|
+
this.e1g();
|
|
674
|
+
if (!this.i1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
675
675
|
return Unit_instance;
|
|
676
676
|
closeSlot(this, null);
|
|
677
677
|
};
|
|
678
|
-
protoOf(ByteChannel).
|
|
678
|
+
protoOf(ByteChannel).c1h = function ($completion) {
|
|
679
679
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
680
|
-
tmp.
|
|
681
|
-
tmp.
|
|
682
|
-
return tmp.
|
|
680
|
+
tmp.l8_1 = Unit_instance;
|
|
681
|
+
tmp.m8_1 = null;
|
|
682
|
+
return tmp.r8();
|
|
683
683
|
};
|
|
684
|
-
protoOf(ByteChannel).
|
|
685
|
-
if (!(this.
|
|
684
|
+
protoOf(ByteChannel).d1h = function (cause) {
|
|
685
|
+
if (!(this.i1f_1.kotlinx$atomicfu$value == null))
|
|
686
686
|
return Unit_instance;
|
|
687
687
|
var closedToken = new CloseToken(cause);
|
|
688
|
-
this.
|
|
689
|
-
var wrappedCause = closedToken.
|
|
688
|
+
this.i1f_1.atomicfu$compareAndSet(null, closedToken);
|
|
689
|
+
var wrappedCause = closedToken.y1g();
|
|
690
690
|
closeSlot(this, wrappedCause);
|
|
691
691
|
};
|
|
692
692
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
length = length === VOID ? content.length : length;
|
|
703
703
|
// Inline function 'kotlin.also' call
|
|
704
704
|
var this_0 = new Buffer();
|
|
705
|
-
this_0.
|
|
705
|
+
this_0.aq(content, offset, offset + length | 0);
|
|
706
706
|
var source = this_0;
|
|
707
707
|
return ByteReadChannel_0(source);
|
|
708
708
|
}
|
|
@@ -710,18 +710,18 @@
|
|
|
710
710
|
return new SourceByteReadChannel(source);
|
|
711
711
|
}
|
|
712
712
|
function buildPartialMatchTable($this) {
|
|
713
|
-
var table = new Int32Array($this.
|
|
713
|
+
var table = new Int32Array($this.f1h_1.g1());
|
|
714
714
|
var j = 0;
|
|
715
715
|
var inductionVariable = 1;
|
|
716
|
-
var last = $this.
|
|
716
|
+
var last = $this.f1h_1.g1();
|
|
717
717
|
if (inductionVariable < last)
|
|
718
718
|
do {
|
|
719
719
|
var i = inductionVariable;
|
|
720
720
|
inductionVariable = inductionVariable + 1 | 0;
|
|
721
|
-
while (j > 0 && !($this.
|
|
721
|
+
while (j > 0 && !($this.f1h_1.h1(i) === $this.f1h_1.h1(j))) {
|
|
722
722
|
j = table[j - 1 | 0];
|
|
723
723
|
}
|
|
724
|
-
if ($this.
|
|
724
|
+
if ($this.f1h_1.h1(i) === $this.f1h_1.h1(j)) {
|
|
725
725
|
j = j + 1 | 0;
|
|
726
726
|
}
|
|
727
727
|
table[i] = j;
|
|
@@ -731,19 +731,19 @@
|
|
|
731
731
|
}
|
|
732
732
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
733
733
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
734
|
-
tmp.
|
|
735
|
-
tmp.
|
|
736
|
-
return tmp.
|
|
734
|
+
tmp.l8_1 = Unit_instance;
|
|
735
|
+
tmp.m8_1 = null;
|
|
736
|
+
return tmp.r8();
|
|
737
737
|
}
|
|
738
738
|
function checkFullMatch($this, $completion) {
|
|
739
739
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
740
|
-
tmp.
|
|
741
|
-
tmp.
|
|
742
|
-
return tmp.
|
|
740
|
+
tmp.l8_1 = Unit_instance;
|
|
741
|
+
tmp.m8_1 = null;
|
|
742
|
+
return tmp.r8();
|
|
743
743
|
}
|
|
744
744
|
function checkBounds($this, extra) {
|
|
745
|
-
if (add($this.
|
|
746
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
745
|
+
if (add($this.l1h_1, extra) > $this.h1h_1) {
|
|
746
|
+
throw IOException_init_$Create$('Limit of ' + $this.h1h_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.f1h_1) + '"'));
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -751,28 +751,28 @@
|
|
|
751
751
|
}
|
|
752
752
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
753
753
|
CoroutineImpl.call(this, resultContinuation);
|
|
754
|
-
this.
|
|
755
|
-
this.
|
|
754
|
+
this.q1i_1 = _this__u8e3s4;
|
|
755
|
+
this.r1i_1 = ignoreMissing;
|
|
756
756
|
}
|
|
757
|
-
protoOf($findNextCOROUTINE$).
|
|
758
|
-
var suspendResult = this.
|
|
757
|
+
protoOf($findNextCOROUTINE$).r8 = function () {
|
|
758
|
+
var suspendResult = this.l8_1;
|
|
759
759
|
$sm: do
|
|
760
760
|
try {
|
|
761
|
-
var tmp = this.
|
|
761
|
+
var tmp = this.j8_1;
|
|
762
762
|
switch (tmp) {
|
|
763
763
|
case 0:
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
764
|
+
this.k8_1 = 9;
|
|
765
|
+
this.q1i_1.l1h_1 = 0n;
|
|
766
|
+
this.j8_1 = 1;
|
|
767
767
|
continue $sm;
|
|
768
768
|
case 1:
|
|
769
|
-
if (!this.i1h_1.
|
|
770
|
-
this.
|
|
771
|
-
this.
|
|
769
|
+
if (!this.q1i_1.i1h_1.ro()) {
|
|
770
|
+
this.s1i_1 = true;
|
|
771
|
+
this.j8_1 = 3;
|
|
772
772
|
continue $sm;
|
|
773
773
|
} else {
|
|
774
|
-
this.
|
|
775
|
-
suspendResult = this.
|
|
774
|
+
this.j8_1 = 2;
|
|
775
|
+
suspendResult = this.q1i_1.e1h_1.b1h(VOID, this);
|
|
776
776
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
777
777
|
return suspendResult;
|
|
778
778
|
}
|
|
@@ -780,25 +780,25 @@
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
case 2:
|
|
783
|
-
this.
|
|
784
|
-
this.
|
|
783
|
+
this.s1i_1 = suspendResult;
|
|
784
|
+
this.j8_1 = 3;
|
|
785
785
|
continue $sm;
|
|
786
786
|
case 3:
|
|
787
|
-
if (!this.
|
|
788
|
-
this.
|
|
787
|
+
if (!this.s1i_1) {
|
|
788
|
+
this.j8_1 = 7;
|
|
789
789
|
continue $sm;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
this.
|
|
793
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
792
|
+
this.j8_1 = 4;
|
|
793
|
+
suspendResult = advanceToNextPotentialMatch(this.q1i_1, this);
|
|
794
794
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
795
795
|
return suspendResult;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 4:
|
|
800
|
-
this.
|
|
801
|
-
suspendResult = checkFullMatch(this.
|
|
800
|
+
this.j8_1 = 5;
|
|
801
|
+
suspendResult = checkFullMatch(this.q1i_1, this);
|
|
802
802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
803
803
|
return suspendResult;
|
|
804
804
|
}
|
|
@@ -806,66 +806,66 @@
|
|
|
806
806
|
continue $sm;
|
|
807
807
|
case 5:
|
|
808
808
|
if (suspendResult) {
|
|
809
|
-
return this.
|
|
809
|
+
return this.q1i_1.l1h_1;
|
|
810
810
|
} else {
|
|
811
|
-
this.
|
|
811
|
+
this.j8_1 = 6;
|
|
812
812
|
continue $sm;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
case 6:
|
|
816
|
-
this.
|
|
816
|
+
this.j8_1 = 1;
|
|
817
817
|
continue $sm;
|
|
818
818
|
case 7:
|
|
819
|
-
if (!this.
|
|
820
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
819
|
+
if (!this.r1i_1) {
|
|
820
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.q1i_1, this.q1i_1.f1h_1) + '" but encountered end of input');
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
this.
|
|
824
|
-
this.
|
|
825
|
-
suspendResult = this.
|
|
823
|
+
this.q1i_1.l1h_1 = add(this.q1i_1.l1h_1, this.q1i_1.k1h_1.up(this.q1i_1.g1h_1.v1g()));
|
|
824
|
+
this.j8_1 = 8;
|
|
825
|
+
suspendResult = this.q1i_1.g1h_1.q1g(this);
|
|
826
826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
827
827
|
return suspendResult;
|
|
828
828
|
}
|
|
829
829
|
|
|
830
830
|
continue $sm;
|
|
831
831
|
case 8:
|
|
832
|
-
return this.
|
|
832
|
+
return this.q1i_1.l1h_1;
|
|
833
833
|
case 9:
|
|
834
|
-
throw this.
|
|
834
|
+
throw this.m8_1;
|
|
835
835
|
}
|
|
836
836
|
} catch ($p) {
|
|
837
837
|
var e = $p;
|
|
838
|
-
if (this.
|
|
838
|
+
if (this.k8_1 === 9) {
|
|
839
839
|
throw e;
|
|
840
840
|
} else {
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
841
|
+
this.j8_1 = this.k8_1;
|
|
842
|
+
this.m8_1 = e;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
while (true);
|
|
846
846
|
};
|
|
847
847
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
848
848
|
CoroutineImpl.call(this, resultContinuation);
|
|
849
|
-
this.
|
|
849
|
+
this.v1h_1 = _this__u8e3s4;
|
|
850
850
|
}
|
|
851
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
852
|
-
var suspendResult = this.
|
|
851
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
852
|
+
var suspendResult = this.l8_1;
|
|
853
853
|
$sm: do
|
|
854
854
|
try {
|
|
855
|
-
var tmp = this.
|
|
855
|
+
var tmp = this.j8_1;
|
|
856
856
|
switch (tmp) {
|
|
857
857
|
case 0:
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
858
|
+
this.k8_1 = 8;
|
|
859
|
+
this.j8_1 = 1;
|
|
860
860
|
continue $sm;
|
|
861
861
|
case 1:
|
|
862
|
-
if (!this.
|
|
863
|
-
this.
|
|
864
|
-
this.
|
|
862
|
+
if (!this.v1h_1.i1h_1.ro()) {
|
|
863
|
+
this.w1h_1 = true;
|
|
864
|
+
this.j8_1 = 3;
|
|
865
865
|
continue $sm;
|
|
866
866
|
} else {
|
|
867
|
-
this.
|
|
868
|
-
suspendResult = this.
|
|
867
|
+
this.j8_1 = 2;
|
|
868
|
+
suspendResult = this.v1h_1.e1h_1.b1h(VOID, this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
@@ -873,34 +873,34 @@
|
|
|
873
873
|
}
|
|
874
874
|
|
|
875
875
|
case 2:
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
876
|
+
this.w1h_1 = suspendResult;
|
|
877
|
+
this.j8_1 = 3;
|
|
878
878
|
continue $sm;
|
|
879
879
|
case 3:
|
|
880
|
-
if (!this.
|
|
881
|
-
this.
|
|
880
|
+
if (!this.w1h_1) {
|
|
881
|
+
this.j8_1 = 7;
|
|
882
882
|
continue $sm;
|
|
883
883
|
}
|
|
884
884
|
|
|
885
|
-
var nextMatch = indexOf(this.
|
|
885
|
+
var nextMatch = indexOf(this.v1h_1.i1h_1, this.v1h_1.f1h_1.h1(0));
|
|
886
886
|
if (nextMatch === -1n) {
|
|
887
|
-
var tmp_0 = this.
|
|
888
|
-
checkBounds(this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
891
|
-
suspendResult = flushIfNeeded(this.
|
|
887
|
+
var tmp_0 = this.v1h_1.i1h_1;
|
|
888
|
+
checkBounds(this.v1h_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
889
|
+
this.v1h_1.l1h_1 = add(this.v1h_1.l1h_1, this.v1h_1.i1h_1.up(this.v1h_1.g1h_1.v1g()));
|
|
890
|
+
this.j8_1 = 5;
|
|
891
|
+
suspendResult = flushIfNeeded(this.v1h_1.g1h_1, this);
|
|
892
892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
893
893
|
return suspendResult;
|
|
894
894
|
}
|
|
895
895
|
continue $sm;
|
|
896
896
|
} else {
|
|
897
|
-
checkBounds(this.
|
|
898
|
-
var tmp_1 = this.
|
|
899
|
-
var tmp_2 = this.
|
|
900
|
-
var tmp_3 = this.
|
|
901
|
-
tmp_1.
|
|
902
|
-
this.
|
|
903
|
-
suspendResult = flushIfNeeded(this.
|
|
897
|
+
checkBounds(this.v1h_1, nextMatch);
|
|
898
|
+
var tmp_1 = this.v1h_1;
|
|
899
|
+
var tmp_2 = this.v1h_1.l1h_1;
|
|
900
|
+
var tmp_3 = this.v1h_1.g1h_1.v1g();
|
|
901
|
+
tmp_1.l1h_1 = add(tmp_2, this.v1h_1.i1h_1.rp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
902
|
+
this.j8_1 = 4;
|
|
903
|
+
suspendResult = flushIfNeeded(this.v1h_1.g1h_1, this);
|
|
904
904
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
905
905
|
return suspendResult;
|
|
906
906
|
}
|
|
@@ -910,49 +910,49 @@
|
|
|
910
910
|
case 4:
|
|
911
911
|
return Unit_instance;
|
|
912
912
|
case 5:
|
|
913
|
-
this.
|
|
913
|
+
this.j8_1 = 6;
|
|
914
914
|
continue $sm;
|
|
915
915
|
case 6:
|
|
916
|
-
this.
|
|
916
|
+
this.j8_1 = 1;
|
|
917
917
|
continue $sm;
|
|
918
918
|
case 7:
|
|
919
919
|
return Unit_instance;
|
|
920
920
|
case 8:
|
|
921
|
-
throw this.
|
|
921
|
+
throw this.m8_1;
|
|
922
922
|
}
|
|
923
923
|
} catch ($p) {
|
|
924
924
|
var e = $p;
|
|
925
|
-
if (this.
|
|
925
|
+
if (this.k8_1 === 8) {
|
|
926
926
|
throw e;
|
|
927
927
|
} else {
|
|
928
|
-
this.
|
|
929
|
-
this.
|
|
928
|
+
this.j8_1 = this.k8_1;
|
|
929
|
+
this.m8_1 = e;
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
932
|
while (true);
|
|
933
933
|
};
|
|
934
934
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
935
935
|
CoroutineImpl.call(this, resultContinuation);
|
|
936
|
-
this.
|
|
936
|
+
this.f1i_1 = _this__u8e3s4;
|
|
937
937
|
}
|
|
938
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
939
|
-
var suspendResult = this.
|
|
938
|
+
protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
939
|
+
var suspendResult = this.l8_1;
|
|
940
940
|
$sm: do
|
|
941
941
|
try {
|
|
942
|
-
var tmp = this.
|
|
942
|
+
var tmp = this.j8_1;
|
|
943
943
|
switch (tmp) {
|
|
944
944
|
case 0:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
945
|
+
this.k8_1 = 8;
|
|
946
|
+
this.j8_1 = 1;
|
|
947
947
|
continue $sm;
|
|
948
948
|
case 1:
|
|
949
|
-
if (!this.
|
|
950
|
-
this.
|
|
951
|
-
this.
|
|
949
|
+
if (!this.f1i_1.i1h_1.ro()) {
|
|
950
|
+
this.h1i_1 = true;
|
|
951
|
+
this.j8_1 = 3;
|
|
952
952
|
continue $sm;
|
|
953
953
|
} else {
|
|
954
|
-
this.
|
|
955
|
-
suspendResult = this.
|
|
954
|
+
this.j8_1 = 2;
|
|
955
|
+
suspendResult = this.f1i_1.e1h_1.b1h(VOID, this);
|
|
956
956
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
957
957
|
return suspendResult;
|
|
958
958
|
}
|
|
@@ -960,120 +960,120 @@
|
|
|
960
960
|
}
|
|
961
961
|
|
|
962
962
|
case 2:
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
963
|
+
this.h1i_1 = suspendResult;
|
|
964
|
+
this.j8_1 = 3;
|
|
965
965
|
continue $sm;
|
|
966
966
|
case 3:
|
|
967
|
-
if (!this.
|
|
968
|
-
this.
|
|
967
|
+
if (!this.h1i_1) {
|
|
968
|
+
this.j8_1 = 7;
|
|
969
969
|
continue $sm;
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
this.
|
|
973
|
-
if (this.
|
|
974
|
-
var oldMatchIndex = this.
|
|
975
|
-
while (this.
|
|
976
|
-
this.
|
|
972
|
+
this.g1i_1 = this.f1i_1.i1h_1.uo();
|
|
973
|
+
if (this.f1i_1.m1h_1 > 0 && !(this.g1i_1 === this.f1i_1.f1h_1.h1(this.f1i_1.m1h_1))) {
|
|
974
|
+
var oldMatchIndex = this.f1i_1.m1h_1;
|
|
975
|
+
while (this.f1i_1.m1h_1 > 0 && !(this.g1i_1 === this.f1i_1.f1h_1.h1(this.f1i_1.m1h_1))) {
|
|
976
|
+
this.f1i_1.m1h_1 = this.f1i_1.j1h_1[this.f1i_1.m1h_1 - 1 | 0];
|
|
977
977
|
}
|
|
978
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
979
|
-
checkBounds(this.
|
|
980
|
-
var tmp_0 = this.
|
|
981
|
-
var tmp_1 = this.
|
|
982
|
-
var tmp_2 = this.
|
|
983
|
-
tmp_0.
|
|
984
|
-
if (this.
|
|
985
|
-
this.
|
|
986
|
-
suspendResult = writeByte(this.
|
|
978
|
+
var retained = fromInt(oldMatchIndex - this.f1i_1.m1h_1 | 0);
|
|
979
|
+
checkBounds(this.f1i_1, retained);
|
|
980
|
+
var tmp_0 = this.f1i_1;
|
|
981
|
+
var tmp_1 = this.f1i_1.l1h_1;
|
|
982
|
+
var tmp_2 = this.f1i_1.g1h_1.v1g();
|
|
983
|
+
tmp_0.l1h_1 = add(tmp_1, this.f1i_1.k1h_1.rp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
984
|
+
if (this.f1i_1.m1h_1 === 0 && !(this.g1i_1 === this.f1i_1.f1h_1.h1(this.f1i_1.m1h_1))) {
|
|
985
|
+
this.j8_1 = 6;
|
|
986
|
+
suspendResult = writeByte(this.f1i_1.g1h_1, this.g1i_1, this);
|
|
987
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
988
988
|
return suspendResult;
|
|
989
989
|
}
|
|
990
990
|
continue $sm;
|
|
991
991
|
} else {
|
|
992
|
-
this.
|
|
992
|
+
this.j8_1 = 4;
|
|
993
993
|
continue $sm;
|
|
994
994
|
}
|
|
995
995
|
} else {
|
|
996
|
-
this.
|
|
996
|
+
this.j8_1 = 5;
|
|
997
997
|
continue $sm;
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
1000
|
case 4:
|
|
1001
|
-
this.
|
|
1001
|
+
this.j8_1 = 5;
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
case 5:
|
|
1004
|
-
this.
|
|
1005
|
-
if (this.
|
|
1004
|
+
this.f1i_1.m1h_1 = this.f1i_1.m1h_1 + 1 | 0;
|
|
1005
|
+
if (this.f1i_1.m1h_1 === this.f1i_1.f1h_1.g1()) {
|
|
1006
1006
|
return true;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1009
|
+
this.f1i_1.k1h_1.kq(this.g1i_1);
|
|
1010
|
+
this.j8_1 = 1;
|
|
1011
1011
|
continue $sm;
|
|
1012
1012
|
case 6:
|
|
1013
|
-
var _unary__edvuaz = this.
|
|
1014
|
-
this.
|
|
1013
|
+
var _unary__edvuaz = this.f1i_1.l1h_1;
|
|
1014
|
+
this.f1i_1.l1h_1 = add(_unary__edvuaz, get_ONE());
|
|
1015
1015
|
return false;
|
|
1016
1016
|
case 7:
|
|
1017
1017
|
return false;
|
|
1018
1018
|
case 8:
|
|
1019
|
-
throw this.
|
|
1019
|
+
throw this.m8_1;
|
|
1020
1020
|
}
|
|
1021
1021
|
} catch ($p) {
|
|
1022
1022
|
var e = $p;
|
|
1023
|
-
if (this.
|
|
1023
|
+
if (this.k8_1 === 8) {
|
|
1024
1024
|
throw e;
|
|
1025
1025
|
} else {
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1026
|
+
this.j8_1 = this.k8_1;
|
|
1027
|
+
this.m8_1 = e;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
while (true);
|
|
1031
1031
|
};
|
|
1032
1032
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1033
1033
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1034
|
-
this.
|
|
1035
|
-
this.
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1034
|
+
this.e1h_1 = channel;
|
|
1035
|
+
this.f1h_1 = matchString;
|
|
1036
|
+
this.g1h_1 = writeChannel;
|
|
1037
|
+
this.h1h_1 = limit;
|
|
1038
1038
|
// Inline function 'kotlin.require' call
|
|
1039
|
-
if (!(this.
|
|
1039
|
+
if (!(this.f1h_1.g1() > 0)) {
|
|
1040
1040
|
var message = 'Empty match string not permitted for scanning';
|
|
1041
1041
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1042
1042
|
}
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1045
|
-
this.
|
|
1046
|
-
this.
|
|
1047
|
-
this.
|
|
1043
|
+
this.i1h_1 = this.e1h_1.s1g();
|
|
1044
|
+
this.j1h_1 = buildPartialMatchTable(this);
|
|
1045
|
+
this.k1h_1 = new Buffer();
|
|
1046
|
+
this.l1h_1 = 0n;
|
|
1047
|
+
this.m1h_1 = 0;
|
|
1048
1048
|
}
|
|
1049
|
-
protoOf(ByteChannelScanner).
|
|
1049
|
+
protoOf(ByteChannelScanner).t1i = function (ignoreMissing, $completion) {
|
|
1050
1050
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1051
|
-
tmp.
|
|
1052
|
-
tmp.
|
|
1053
|
-
return tmp.
|
|
1051
|
+
tmp.l8_1 = Unit_instance;
|
|
1052
|
+
tmp.m8_1 = null;
|
|
1053
|
+
return tmp.r8();
|
|
1054
1054
|
};
|
|
1055
1055
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1056
|
-
this.
|
|
1057
|
-
this.
|
|
1056
|
+
this.u1i_1 = null;
|
|
1057
|
+
this.v1i_1 = new Buffer();
|
|
1058
1058
|
}
|
|
1059
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1060
|
-
return this.
|
|
1059
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1g = function () {
|
|
1060
|
+
return this.u1i_1;
|
|
1061
1061
|
};
|
|
1062
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1062
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z1g = function () {
|
|
1063
1063
|
return true;
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1066
|
-
return this.
|
|
1065
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s1g = function () {
|
|
1066
|
+
return this.v1i_1;
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1068
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1h = function (min, $completion) {
|
|
1069
1069
|
return false;
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1071
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d1h = function (cause) {
|
|
1072
1072
|
};
|
|
1073
1073
|
function Companion_0() {
|
|
1074
1074
|
Companion_instance_1 = this;
|
|
1075
1075
|
var tmp = this;
|
|
1076
|
-
tmp.
|
|
1076
|
+
tmp.w1i_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1077
1077
|
}
|
|
1078
1078
|
var Companion_instance_1;
|
|
1079
1079
|
function Companion_getInstance_0() {
|
|
@@ -1084,69 +1084,69 @@
|
|
|
1084
1084
|
function ByteReadChannel_1() {
|
|
1085
1085
|
}
|
|
1086
1086
|
function cancel_0(_this__u8e3s4) {
|
|
1087
|
-
_this__u8e3s4.
|
|
1087
|
+
_this__u8e3s4.d1h(IOException_init_$Create$('Channel was cancelled'));
|
|
1088
1088
|
}
|
|
1089
1089
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1090
1090
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1091
|
-
tmp.
|
|
1092
|
-
tmp.
|
|
1093
|
-
return tmp.
|
|
1091
|
+
tmp.l8_1 = Unit_instance;
|
|
1092
|
+
tmp.m8_1 = null;
|
|
1093
|
+
return tmp.r8();
|
|
1094
1094
|
}
|
|
1095
1095
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1096
1096
|
offset = offset === VOID ? 0 : offset;
|
|
1097
1097
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1098
1098
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1099
|
-
tmp.
|
|
1100
|
-
tmp.
|
|
1101
|
-
return tmp.
|
|
1099
|
+
tmp.l8_1 = Unit_instance;
|
|
1100
|
+
tmp.m8_1 = null;
|
|
1101
|
+
return tmp.r8();
|
|
1102
1102
|
}
|
|
1103
1103
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1104
1104
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1105
|
-
tmp.
|
|
1106
|
-
tmp.
|
|
1107
|
-
return tmp.
|
|
1105
|
+
tmp.l8_1 = Unit_instance;
|
|
1106
|
+
tmp.m8_1 = null;
|
|
1107
|
+
return tmp.r8();
|
|
1108
1108
|
}
|
|
1109
1109
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1110
1110
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1111
|
-
tmp.
|
|
1112
|
-
tmp.
|
|
1113
|
-
return tmp.
|
|
1111
|
+
tmp.l8_1 = Unit_instance;
|
|
1112
|
+
tmp.m8_1 = null;
|
|
1113
|
+
return tmp.r8();
|
|
1114
1114
|
}
|
|
1115
1115
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1116
1116
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1117
|
-
tmp.
|
|
1118
|
-
tmp.
|
|
1119
|
-
return tmp.
|
|
1117
|
+
tmp.l8_1 = Unit_instance;
|
|
1118
|
+
tmp.m8_1 = null;
|
|
1119
|
+
return tmp.r8();
|
|
1120
1120
|
}
|
|
1121
1121
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1122
1122
|
max = max === VOID ? 9223372036854775807n : max;
|
|
1123
1123
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1124
|
-
tmp.
|
|
1125
|
-
tmp.
|
|
1126
|
-
return tmp.
|
|
1124
|
+
tmp.l8_1 = Unit_instance;
|
|
1125
|
+
tmp.m8_1 = null;
|
|
1126
|
+
return tmp.r8();
|
|
1127
1127
|
}
|
|
1128
1128
|
function copyTo_0(_this__u8e3s4, channel, $completion) {
|
|
1129
1129
|
var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, $completion);
|
|
1130
|
-
tmp.
|
|
1131
|
-
tmp.
|
|
1132
|
-
return tmp.
|
|
1130
|
+
tmp.l8_1 = Unit_instance;
|
|
1131
|
+
tmp.m8_1 = null;
|
|
1132
|
+
return tmp.r8();
|
|
1133
1133
|
}
|
|
1134
1134
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1135
1135
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1136
|
-
tmp.
|
|
1137
|
-
tmp.
|
|
1138
|
-
return tmp.
|
|
1136
|
+
tmp.l8_1 = Unit_instance;
|
|
1137
|
+
tmp.m8_1 = null;
|
|
1138
|
+
return tmp.r8();
|
|
1139
1139
|
}
|
|
1140
1140
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1141
1141
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1142
|
-
tmp.
|
|
1143
|
-
tmp.
|
|
1144
|
-
return tmp.
|
|
1142
|
+
tmp.l8_1 = Unit_instance;
|
|
1143
|
+
tmp.m8_1 = null;
|
|
1144
|
+
return tmp.r8();
|
|
1145
1145
|
}
|
|
1146
1146
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1147
1147
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1148
1148
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1149
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1149
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).t1i(ignoreMissing, $completion);
|
|
1150
1150
|
}
|
|
1151
1151
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1152
1152
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1159,7 +1159,7 @@
|
|
|
1159
1159
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1160
1160
|
}
|
|
1161
1161
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1162
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1162
|
+
var tmp0_safe_receiver = _this__u8e3s4.x1g();
|
|
1163
1163
|
if (tmp0_safe_receiver == null)
|
|
1164
1164
|
null;
|
|
1165
1165
|
else {
|
|
@@ -1168,7 +1168,7 @@
|
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1171
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1171
|
+
var tmp0_safe_receiver = _this__u8e3s4.x1g();
|
|
1172
1172
|
if (tmp0_safe_receiver == null)
|
|
1173
1173
|
null;
|
|
1174
1174
|
else {
|
|
@@ -1177,19 +1177,19 @@
|
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
1179
1179
|
function get_availableForRead(_this__u8e3s4) {
|
|
1180
|
-
return convertToInt(_this__u8e3s4.
|
|
1180
|
+
return convertToInt(_this__u8e3s4.s1g().qo().g1());
|
|
1181
1181
|
}
|
|
1182
1182
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1183
1183
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1184
|
-
tmp.
|
|
1185
|
-
tmp.
|
|
1186
|
-
return tmp.
|
|
1184
|
+
tmp.l8_1 = Unit_instance;
|
|
1185
|
+
tmp.m8_1 = null;
|
|
1186
|
+
return tmp.r8();
|
|
1187
1187
|
}
|
|
1188
1188
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1189
1189
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1190
|
-
tmp.
|
|
1191
|
-
tmp.
|
|
1192
|
-
return tmp.
|
|
1190
|
+
tmp.l8_1 = Unit_instance;
|
|
1191
|
+
tmp.m8_1 = null;
|
|
1192
|
+
return tmp.r8();
|
|
1193
1193
|
}
|
|
1194
1194
|
function throwEndOfStreamException(consumed) {
|
|
1195
1195
|
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
@@ -1198,7 +1198,7 @@
|
|
|
1198
1198
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1199
1199
|
}
|
|
1200
1200
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1201
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1201
|
+
var tmp0_safe_receiver = _this__u8e3s4.x1g();
|
|
1202
1202
|
if (tmp0_safe_receiver == null)
|
|
1203
1203
|
null;
|
|
1204
1204
|
else {
|
|
@@ -1237,178 +1237,178 @@
|
|
|
1237
1237
|
}
|
|
1238
1238
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1239
1239
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1240
|
-
tmp.
|
|
1241
|
-
tmp.
|
|
1242
|
-
return tmp.
|
|
1240
|
+
tmp.l8_1 = Unit_instance;
|
|
1241
|
+
tmp.m8_1 = null;
|
|
1242
|
+
return tmp.r8();
|
|
1243
1243
|
}
|
|
1244
1244
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1245
1245
|
CoroutineImpl.call(this, resultContinuation);
|
|
1246
|
-
this.
|
|
1246
|
+
this.f1j_1 = _this__u8e3s4;
|
|
1247
1247
|
}
|
|
1248
|
-
protoOf($readBufferCOROUTINE$).
|
|
1249
|
-
var suspendResult = this.
|
|
1248
|
+
protoOf($readBufferCOROUTINE$).r8 = function () {
|
|
1249
|
+
var suspendResult = this.l8_1;
|
|
1250
1250
|
$sm: do
|
|
1251
1251
|
try {
|
|
1252
|
-
var tmp = this.
|
|
1252
|
+
var tmp = this.j8_1;
|
|
1253
1253
|
switch (tmp) {
|
|
1254
1254
|
case 0:
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1255
|
+
this.k8_1 = 4;
|
|
1256
|
+
this.g1j_1 = new Buffer();
|
|
1257
|
+
this.j8_1 = 1;
|
|
1258
1258
|
continue $sm;
|
|
1259
1259
|
case 1:
|
|
1260
|
-
if (!!this.
|
|
1261
|
-
this.
|
|
1260
|
+
if (!!this.f1j_1.z1g()) {
|
|
1261
|
+
this.j8_1 = 3;
|
|
1262
1262
|
continue $sm;
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
suspendResult = this.
|
|
1265
|
+
this.g1j_1.jq(this.f1j_1.s1g());
|
|
1266
|
+
this.j8_1 = 2;
|
|
1267
|
+
suspendResult = this.f1j_1.b1h(VOID, this);
|
|
1268
1268
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1269
1269
|
return suspendResult;
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
1272
|
continue $sm;
|
|
1273
1273
|
case 2:
|
|
1274
|
-
this.
|
|
1274
|
+
this.j8_1 = 1;
|
|
1275
1275
|
continue $sm;
|
|
1276
1276
|
case 3:
|
|
1277
|
-
var tmp0_safe_receiver = this.
|
|
1277
|
+
var tmp0_safe_receiver = this.f1j_1.x1g();
|
|
1278
1278
|
if (tmp0_safe_receiver == null)
|
|
1279
1279
|
null;
|
|
1280
1280
|
else {
|
|
1281
1281
|
throw tmp0_safe_receiver;
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
-
return this.
|
|
1284
|
+
return this.g1j_1;
|
|
1285
1285
|
case 4:
|
|
1286
|
-
throw this.
|
|
1286
|
+
throw this.m8_1;
|
|
1287
1287
|
}
|
|
1288
1288
|
} catch ($p) {
|
|
1289
1289
|
var e = $p;
|
|
1290
|
-
if (this.
|
|
1290
|
+
if (this.k8_1 === 4) {
|
|
1291
1291
|
throw e;
|
|
1292
1292
|
} else {
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1293
|
+
this.j8_1 = this.k8_1;
|
|
1294
|
+
this.m8_1 = e;
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
1297
|
while (true);
|
|
1298
1298
|
};
|
|
1299
1299
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1300
1300
|
CoroutineImpl.call(this, resultContinuation);
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1301
|
+
this.p1j_1 = _this__u8e3s4;
|
|
1302
|
+
this.q1j_1 = buffer;
|
|
1303
|
+
this.r1j_1 = offset;
|
|
1304
|
+
this.s1j_1 = length;
|
|
1305
1305
|
}
|
|
1306
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1307
|
-
var suspendResult = this.
|
|
1306
|
+
protoOf($readAvailableCOROUTINE$).r8 = function () {
|
|
1307
|
+
var suspendResult = this.l8_1;
|
|
1308
1308
|
$sm: do
|
|
1309
1309
|
try {
|
|
1310
|
-
var tmp = this.
|
|
1310
|
+
var tmp = this.j8_1;
|
|
1311
1311
|
switch (tmp) {
|
|
1312
1312
|
case 0:
|
|
1313
|
-
this.
|
|
1314
|
-
if (this.
|
|
1313
|
+
this.k8_1 = 3;
|
|
1314
|
+
if (this.p1j_1.z1g())
|
|
1315
1315
|
return -1;
|
|
1316
|
-
if (this.
|
|
1317
|
-
this.
|
|
1318
|
-
suspendResult = this.
|
|
1316
|
+
if (this.p1j_1.s1g().ro()) {
|
|
1317
|
+
this.j8_1 = 1;
|
|
1318
|
+
suspendResult = this.p1j_1.b1h(VOID, this);
|
|
1319
1319
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1320
1320
|
return suspendResult;
|
|
1321
1321
|
}
|
|
1322
1322
|
continue $sm;
|
|
1323
1323
|
} else {
|
|
1324
|
-
this.
|
|
1324
|
+
this.j8_1 = 2;
|
|
1325
1325
|
continue $sm;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
case 1:
|
|
1329
|
-
this.
|
|
1329
|
+
this.j8_1 = 2;
|
|
1330
1330
|
continue $sm;
|
|
1331
1331
|
case 2:
|
|
1332
|
-
if (this.
|
|
1332
|
+
if (this.p1j_1.z1g())
|
|
1333
1333
|
return -1;
|
|
1334
|
-
return readAvailable_0(this.
|
|
1334
|
+
return readAvailable_0(this.p1j_1.s1g(), this.q1j_1, this.r1j_1, this.s1j_1);
|
|
1335
1335
|
case 3:
|
|
1336
|
-
throw this.
|
|
1336
|
+
throw this.m8_1;
|
|
1337
1337
|
}
|
|
1338
1338
|
} catch ($p) {
|
|
1339
1339
|
var e = $p;
|
|
1340
|
-
if (this.
|
|
1340
|
+
if (this.k8_1 === 3) {
|
|
1341
1341
|
throw e;
|
|
1342
1342
|
} else {
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1343
|
+
this.j8_1 = this.k8_1;
|
|
1344
|
+
this.m8_1 = e;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
while (true);
|
|
1348
1348
|
};
|
|
1349
1349
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1350
1350
|
CoroutineImpl.call(this, resultContinuation);
|
|
1351
|
-
this.
|
|
1351
|
+
this.b1k_1 = _this__u8e3s4;
|
|
1352
1352
|
}
|
|
1353
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1354
|
-
var suspendResult = this.
|
|
1353
|
+
protoOf($readRemainingCOROUTINE$).r8 = function () {
|
|
1354
|
+
var suspendResult = this.l8_1;
|
|
1355
1355
|
$sm: do
|
|
1356
1356
|
try {
|
|
1357
|
-
var tmp = this.
|
|
1357
|
+
var tmp = this.j8_1;
|
|
1358
1358
|
switch (tmp) {
|
|
1359
1359
|
case 0:
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1360
|
+
this.k8_1 = 4;
|
|
1361
|
+
this.c1k_1 = BytePacketBuilder();
|
|
1362
|
+
this.j8_1 = 1;
|
|
1363
1363
|
continue $sm;
|
|
1364
1364
|
case 1:
|
|
1365
|
-
if (!!this.
|
|
1366
|
-
this.
|
|
1365
|
+
if (!!this.b1k_1.z1g()) {
|
|
1366
|
+
this.j8_1 = 3;
|
|
1367
1367
|
continue $sm;
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
suspendResult = this.
|
|
1370
|
+
this.c1k_1.jq(this.b1k_1.s1g());
|
|
1371
|
+
this.j8_1 = 2;
|
|
1372
|
+
suspendResult = this.b1k_1.b1h(VOID, this);
|
|
1373
1373
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1374
1374
|
return suspendResult;
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
continue $sm;
|
|
1378
1378
|
case 2:
|
|
1379
|
-
this.
|
|
1379
|
+
this.j8_1 = 1;
|
|
1380
1380
|
continue $sm;
|
|
1381
1381
|
case 3:
|
|
1382
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1383
|
-
return this.
|
|
1382
|
+
rethrowCloseCauseIfNeeded_0(this.b1k_1);
|
|
1383
|
+
return this.c1k_1.qo();
|
|
1384
1384
|
case 4:
|
|
1385
|
-
throw this.
|
|
1385
|
+
throw this.m8_1;
|
|
1386
1386
|
}
|
|
1387
1387
|
} catch ($p) {
|
|
1388
1388
|
var e = $p;
|
|
1389
|
-
if (this.
|
|
1389
|
+
if (this.k8_1 === 4) {
|
|
1390
1390
|
throw e;
|
|
1391
1391
|
} else {
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1392
|
+
this.j8_1 = this.k8_1;
|
|
1393
|
+
this.m8_1 = e;
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
while (true);
|
|
1397
1397
|
};
|
|
1398
1398
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1399
1399
|
CoroutineImpl.call(this, resultContinuation);
|
|
1400
|
-
this.
|
|
1400
|
+
this.l1k_1 = _this__u8e3s4;
|
|
1401
1401
|
}
|
|
1402
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1403
|
-
var suspendResult = this.
|
|
1402
|
+
protoOf($toByteArrayCOROUTINE$).r8 = function () {
|
|
1403
|
+
var suspendResult = this.l8_1;
|
|
1404
1404
|
$sm: do
|
|
1405
1405
|
try {
|
|
1406
|
-
var tmp = this.
|
|
1406
|
+
var tmp = this.j8_1;
|
|
1407
1407
|
switch (tmp) {
|
|
1408
1408
|
case 0:
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
suspendResult = readBuffer(this.
|
|
1409
|
+
this.k8_1 = 2;
|
|
1410
|
+
this.j8_1 = 1;
|
|
1411
|
+
suspendResult = readBuffer(this.l1k_1, this);
|
|
1412
1412
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1413
1413
|
return suspendResult;
|
|
1414
1414
|
}
|
|
@@ -1418,306 +1418,306 @@
|
|
|
1418
1418
|
var ARGUMENT = suspendResult;
|
|
1419
1419
|
return readBytes(ARGUMENT);
|
|
1420
1420
|
case 2:
|
|
1421
|
-
throw this.
|
|
1421
|
+
throw this.m8_1;
|
|
1422
1422
|
}
|
|
1423
1423
|
} catch ($p) {
|
|
1424
1424
|
var e = $p;
|
|
1425
|
-
if (this.
|
|
1425
|
+
if (this.k8_1 === 2) {
|
|
1426
1426
|
throw e;
|
|
1427
1427
|
} else {
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1428
|
+
this.j8_1 = this.k8_1;
|
|
1429
|
+
this.m8_1 = e;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
while (true);
|
|
1433
1433
|
};
|
|
1434
1434
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1435
1435
|
CoroutineImpl.call(this, resultContinuation);
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1436
|
+
this.u1k_1 = _this__u8e3s4;
|
|
1437
|
+
this.v1k_1 = channel;
|
|
1438
|
+
this.w1k_1 = limit;
|
|
1439
1439
|
}
|
|
1440
|
-
protoOf($copyToCOROUTINE$).
|
|
1441
|
-
var suspendResult = this.
|
|
1440
|
+
protoOf($copyToCOROUTINE$).r8 = function () {
|
|
1441
|
+
var suspendResult = this.l8_1;
|
|
1442
1442
|
$sm: do
|
|
1443
1443
|
try {
|
|
1444
|
-
var tmp = this.
|
|
1444
|
+
var tmp = this.j8_1;
|
|
1445
1445
|
switch (tmp) {
|
|
1446
1446
|
case 0:
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1447
|
+
this.k8_1 = 12;
|
|
1448
|
+
this.x1k_1 = this.w1k_1;
|
|
1449
|
+
this.j8_1 = 1;
|
|
1450
1450
|
continue $sm;
|
|
1451
1451
|
case 1:
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1452
|
+
this.k8_1 = 8;
|
|
1453
|
+
this.k8_1 = 7;
|
|
1454
|
+
this.j8_1 = 2;
|
|
1455
1455
|
continue $sm;
|
|
1456
1456
|
case 2:
|
|
1457
|
-
if (!(!this.
|
|
1458
|
-
this.
|
|
1457
|
+
if (!(!this.u1k_1.z1g() && this.x1k_1 > 0n)) {
|
|
1458
|
+
this.j8_1 = 6;
|
|
1459
1459
|
continue $sm;
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
|
-
if (this.
|
|
1463
|
-
this.
|
|
1464
|
-
suspendResult = this.
|
|
1462
|
+
if (this.u1k_1.s1g().ro()) {
|
|
1463
|
+
this.j8_1 = 3;
|
|
1464
|
+
suspendResult = this.u1k_1.b1h(VOID, this);
|
|
1465
1465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1466
1466
|
return suspendResult;
|
|
1467
1467
|
}
|
|
1468
1468
|
continue $sm;
|
|
1469
1469
|
} else {
|
|
1470
|
-
this.
|
|
1470
|
+
this.j8_1 = 4;
|
|
1471
1471
|
continue $sm;
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
1474
|
case 3:
|
|
1475
|
-
this.
|
|
1475
|
+
this.j8_1 = 4;
|
|
1476
1476
|
continue $sm;
|
|
1477
1477
|
case 4:
|
|
1478
|
-
var tmp0 = this.
|
|
1479
|
-
var b = get_remaining(this.
|
|
1478
|
+
var tmp0 = this.x1k_1;
|
|
1479
|
+
var b = get_remaining(this.u1k_1.s1g());
|
|
1480
1480
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
suspendResult = this.
|
|
1481
|
+
this.u1k_1.s1g().tp(this.v1k_1.v1g(), count);
|
|
1482
|
+
this.x1k_1 = subtract(this.x1k_1, count);
|
|
1483
|
+
this.j8_1 = 5;
|
|
1484
|
+
suspendResult = this.v1k_1.q1g(this);
|
|
1485
1485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1486
1486
|
return suspendResult;
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
1489
|
continue $sm;
|
|
1490
1490
|
case 5:
|
|
1491
|
-
this.
|
|
1491
|
+
this.j8_1 = 2;
|
|
1492
1492
|
continue $sm;
|
|
1493
1493
|
case 6:
|
|
1494
|
-
this.
|
|
1495
|
-
this.
|
|
1494
|
+
this.k8_1 = 12;
|
|
1495
|
+
this.j8_1 = 10;
|
|
1496
1496
|
continue $sm;
|
|
1497
1497
|
case 7:
|
|
1498
|
-
this.
|
|
1499
|
-
var tmp_0 = this.
|
|
1498
|
+
this.k8_1 = 8;
|
|
1499
|
+
var tmp_0 = this.m8_1;
|
|
1500
1500
|
if (tmp_0 instanceof Error) {
|
|
1501
|
-
var cause = this.
|
|
1502
|
-
this.
|
|
1503
|
-
close_0(this.
|
|
1501
|
+
var cause = this.m8_1;
|
|
1502
|
+
this.u1k_1.d1h(cause);
|
|
1503
|
+
close_0(this.v1k_1, cause);
|
|
1504
1504
|
throw cause;
|
|
1505
1505
|
} else {
|
|
1506
|
-
throw this.
|
|
1506
|
+
throw this.m8_1;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
1509
|
case 8:
|
|
1510
|
-
this.
|
|
1511
|
-
this.
|
|
1512
|
-
this.
|
|
1513
|
-
suspendResult = this.
|
|
1510
|
+
this.k8_1 = 12;
|
|
1511
|
+
this.y1k_1 = this.m8_1;
|
|
1512
|
+
this.j8_1 = 9;
|
|
1513
|
+
suspendResult = this.v1k_1.q1g(this);
|
|
1514
1514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1515
1515
|
return suspendResult;
|
|
1516
1516
|
}
|
|
1517
1517
|
|
|
1518
1518
|
continue $sm;
|
|
1519
1519
|
case 9:
|
|
1520
|
-
throw this.
|
|
1520
|
+
throw this.y1k_1;
|
|
1521
1521
|
case 10:
|
|
1522
|
-
this.
|
|
1523
|
-
this.
|
|
1524
|
-
suspendResult = this.
|
|
1522
|
+
this.k8_1 = 12;
|
|
1523
|
+
this.j8_1 = 11;
|
|
1524
|
+
suspendResult = this.v1k_1.q1g(this);
|
|
1525
1525
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1526
1526
|
return suspendResult;
|
|
1527
1527
|
}
|
|
1528
1528
|
|
|
1529
1529
|
continue $sm;
|
|
1530
1530
|
case 11:
|
|
1531
|
-
return subtract(this.
|
|
1531
|
+
return subtract(this.w1k_1, this.x1k_1);
|
|
1532
1532
|
case 12:
|
|
1533
|
-
throw this.
|
|
1533
|
+
throw this.m8_1;
|
|
1534
1534
|
}
|
|
1535
1535
|
} catch ($p) {
|
|
1536
1536
|
var e = $p;
|
|
1537
|
-
if (this.
|
|
1537
|
+
if (this.k8_1 === 12) {
|
|
1538
1538
|
throw e;
|
|
1539
1539
|
} else {
|
|
1540
|
-
this.
|
|
1541
|
-
this.
|
|
1540
|
+
this.j8_1 = this.k8_1;
|
|
1541
|
+
this.m8_1 = e;
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
while (true);
|
|
1545
1545
|
};
|
|
1546
1546
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1547
1547
|
CoroutineImpl.call(this, resultContinuation);
|
|
1548
|
-
this.
|
|
1549
|
-
this.
|
|
1548
|
+
this.h1l_1 = _this__u8e3s4;
|
|
1549
|
+
this.i1l_1 = max;
|
|
1550
1550
|
}
|
|
1551
|
-
protoOf($discardCOROUTINE$).
|
|
1552
|
-
var suspendResult = this.
|
|
1551
|
+
protoOf($discardCOROUTINE$).r8 = function () {
|
|
1552
|
+
var suspendResult = this.l8_1;
|
|
1553
1553
|
$sm: do
|
|
1554
1554
|
try {
|
|
1555
|
-
var tmp = this.
|
|
1555
|
+
var tmp = this.j8_1;
|
|
1556
1556
|
switch (tmp) {
|
|
1557
1557
|
case 0:
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1558
|
+
this.k8_1 = 5;
|
|
1559
|
+
this.j1l_1 = this.i1l_1;
|
|
1560
|
+
this.j8_1 = 1;
|
|
1561
1561
|
continue $sm;
|
|
1562
1562
|
case 1:
|
|
1563
|
-
if (!(this.
|
|
1564
|
-
this.
|
|
1563
|
+
if (!(this.j1l_1 > 0n && !this.h1l_1.z1g())) {
|
|
1564
|
+
this.j8_1 = 4;
|
|
1565
1565
|
continue $sm;
|
|
1566
1566
|
}
|
|
1567
1567
|
|
|
1568
|
-
if (get_availableForRead(this.
|
|
1569
|
-
this.
|
|
1570
|
-
suspendResult = this.
|
|
1568
|
+
if (get_availableForRead(this.h1l_1) === 0) {
|
|
1569
|
+
this.j8_1 = 2;
|
|
1570
|
+
suspendResult = this.h1l_1.b1h(VOID, this);
|
|
1571
1571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1572
1572
|
return suspendResult;
|
|
1573
1573
|
}
|
|
1574
1574
|
continue $sm;
|
|
1575
1575
|
} else {
|
|
1576
|
-
this.
|
|
1576
|
+
this.j8_1 = 3;
|
|
1577
1577
|
continue $sm;
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
case 2:
|
|
1581
|
-
this.
|
|
1581
|
+
this.j8_1 = 3;
|
|
1582
1582
|
continue $sm;
|
|
1583
1583
|
case 3:
|
|
1584
|
-
var tmp0 = this.
|
|
1585
|
-
var b = get_remaining(this.
|
|
1584
|
+
var tmp0 = this.j1l_1;
|
|
1585
|
+
var b = get_remaining(this.h1l_1.s1g());
|
|
1586
1586
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1587
|
-
discard_0(this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1587
|
+
discard_0(this.h1l_1.s1g(), count);
|
|
1588
|
+
this.j1l_1 = subtract(this.j1l_1, count);
|
|
1589
|
+
this.j8_1 = 1;
|
|
1590
1590
|
continue $sm;
|
|
1591
1591
|
case 4:
|
|
1592
|
-
return subtract(this.
|
|
1592
|
+
return subtract(this.i1l_1, this.j1l_1);
|
|
1593
1593
|
case 5:
|
|
1594
|
-
throw this.
|
|
1594
|
+
throw this.m8_1;
|
|
1595
1595
|
}
|
|
1596
1596
|
} catch ($p) {
|
|
1597
1597
|
var e = $p;
|
|
1598
|
-
if (this.
|
|
1598
|
+
if (this.k8_1 === 5) {
|
|
1599
1599
|
throw e;
|
|
1600
1600
|
} else {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1601
|
+
this.j8_1 = this.k8_1;
|
|
1602
|
+
this.m8_1 = e;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
1605
|
while (true);
|
|
1606
1606
|
};
|
|
1607
1607
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
1608
1608
|
CoroutineImpl.call(this, resultContinuation);
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1609
|
+
this.s1l_1 = _this__u8e3s4;
|
|
1610
|
+
this.t1l_1 = channel;
|
|
1611
1611
|
}
|
|
1612
|
-
protoOf($copyToCOROUTINE$_0).
|
|
1613
|
-
var suspendResult = this.
|
|
1612
|
+
protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
1613
|
+
var suspendResult = this.l8_1;
|
|
1614
1614
|
$sm: do
|
|
1615
1615
|
try {
|
|
1616
|
-
var tmp = this.
|
|
1616
|
+
var tmp = this.j8_1;
|
|
1617
1617
|
switch (tmp) {
|
|
1618
1618
|
case 0:
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1619
|
+
this.k8_1 = 11;
|
|
1620
|
+
this.u1l_1 = 0n;
|
|
1621
|
+
this.j8_1 = 1;
|
|
1622
1622
|
continue $sm;
|
|
1623
1623
|
case 1:
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1624
|
+
this.k8_1 = 7;
|
|
1625
|
+
this.k8_1 = 6;
|
|
1626
|
+
this.j8_1 = 2;
|
|
1627
1627
|
continue $sm;
|
|
1628
1628
|
case 2:
|
|
1629
|
-
if (!!this.
|
|
1630
|
-
this.
|
|
1629
|
+
if (!!this.s1l_1.z1g()) {
|
|
1630
|
+
this.j8_1 = 5;
|
|
1631
1631
|
continue $sm;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
-
this.
|
|
1635
|
-
this.
|
|
1636
|
-
suspendResult = this.
|
|
1634
|
+
this.u1l_1 = add(this.u1l_1, this.s1l_1.s1g().up(this.t1l_1.v1g()));
|
|
1635
|
+
this.j8_1 = 3;
|
|
1636
|
+
suspendResult = this.t1l_1.q1g(this);
|
|
1637
1637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1638
1638
|
return suspendResult;
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
1641
|
continue $sm;
|
|
1642
1642
|
case 3:
|
|
1643
|
-
this.
|
|
1644
|
-
suspendResult = this.
|
|
1643
|
+
this.j8_1 = 4;
|
|
1644
|
+
suspendResult = this.s1l_1.b1h(VOID, this);
|
|
1645
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1646
1646
|
return suspendResult;
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
1649
|
continue $sm;
|
|
1650
1650
|
case 4:
|
|
1651
|
-
this.
|
|
1651
|
+
this.j8_1 = 2;
|
|
1652
1652
|
continue $sm;
|
|
1653
1653
|
case 5:
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1654
|
+
this.k8_1 = 11;
|
|
1655
|
+
this.j8_1 = 9;
|
|
1656
1656
|
continue $sm;
|
|
1657
1657
|
case 6:
|
|
1658
|
-
this.
|
|
1659
|
-
var tmp_0 = this.
|
|
1658
|
+
this.k8_1 = 7;
|
|
1659
|
+
var tmp_0 = this.m8_1;
|
|
1660
1660
|
if (tmp_0 instanceof Error) {
|
|
1661
|
-
var cause = this.
|
|
1662
|
-
this.
|
|
1663
|
-
close_0(this.
|
|
1661
|
+
var cause = this.m8_1;
|
|
1662
|
+
this.s1l_1.d1h(cause);
|
|
1663
|
+
close_0(this.t1l_1, cause);
|
|
1664
1664
|
throw cause;
|
|
1665
1665
|
} else {
|
|
1666
|
-
throw this.
|
|
1666
|
+
throw this.m8_1;
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
1669
|
case 7:
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
suspendResult = this.
|
|
1670
|
+
this.k8_1 = 11;
|
|
1671
|
+
this.v1l_1 = this.m8_1;
|
|
1672
|
+
this.j8_1 = 8;
|
|
1673
|
+
suspendResult = this.t1l_1.q1g(this);
|
|
1674
1674
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1675
1675
|
return suspendResult;
|
|
1676
1676
|
}
|
|
1677
1677
|
|
|
1678
1678
|
continue $sm;
|
|
1679
1679
|
case 8:
|
|
1680
|
-
throw this.
|
|
1680
|
+
throw this.v1l_1;
|
|
1681
1681
|
case 9:
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
suspendResult = this.
|
|
1682
|
+
this.k8_1 = 11;
|
|
1683
|
+
this.j8_1 = 10;
|
|
1684
|
+
suspendResult = this.t1l_1.q1g(this);
|
|
1685
1685
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1686
1686
|
return suspendResult;
|
|
1687
1687
|
}
|
|
1688
1688
|
|
|
1689
1689
|
continue $sm;
|
|
1690
1690
|
case 10:
|
|
1691
|
-
return this.
|
|
1691
|
+
return this.u1l_1;
|
|
1692
1692
|
case 11:
|
|
1693
|
-
throw this.
|
|
1693
|
+
throw this.m8_1;
|
|
1694
1694
|
}
|
|
1695
1695
|
} catch ($p) {
|
|
1696
1696
|
var e = $p;
|
|
1697
|
-
if (this.
|
|
1697
|
+
if (this.k8_1 === 11) {
|
|
1698
1698
|
throw e;
|
|
1699
1699
|
} else {
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1700
|
+
this.j8_1 = this.k8_1;
|
|
1701
|
+
this.m8_1 = e;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
while (true);
|
|
1705
1705
|
};
|
|
1706
1706
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1707
1707
|
CoroutineImpl.call(this, resultContinuation);
|
|
1708
|
-
this.
|
|
1709
|
-
this.
|
|
1708
|
+
this.e1m_1 = _this__u8e3s4;
|
|
1709
|
+
this.f1m_1 = byteString;
|
|
1710
1710
|
}
|
|
1711
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1712
|
-
var suspendResult = this.
|
|
1711
|
+
protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
1712
|
+
var suspendResult = this.l8_1;
|
|
1713
1713
|
$sm: do
|
|
1714
1714
|
try {
|
|
1715
|
-
var tmp = this.
|
|
1715
|
+
var tmp = this.j8_1;
|
|
1716
1716
|
switch (tmp) {
|
|
1717
1717
|
case 0:
|
|
1718
|
-
this.
|
|
1719
|
-
this.
|
|
1720
|
-
suspendResult = peek(this.
|
|
1718
|
+
this.k8_1 = 4;
|
|
1719
|
+
this.j8_1 = 1;
|
|
1720
|
+
suspendResult = peek(this.e1m_1, this.f1m_1.g1(), this);
|
|
1721
1721
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1722
1722
|
return suspendResult;
|
|
1723
1723
|
}
|
|
@@ -1725,15 +1725,15 @@
|
|
|
1725
1725
|
continue $sm;
|
|
1726
1726
|
case 1:
|
|
1727
1727
|
var ARGUMENT = suspendResult;
|
|
1728
|
-
if (equals(ARGUMENT, this.
|
|
1729
|
-
this.
|
|
1730
|
-
suspendResult = discard(this.
|
|
1728
|
+
if (equals(ARGUMENT, this.f1m_1)) {
|
|
1729
|
+
this.j8_1 = 3;
|
|
1730
|
+
suspendResult = discard(this.e1m_1, fromInt(this.f1m_1.g1()), this);
|
|
1731
1731
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1732
1732
|
return suspendResult;
|
|
1733
1733
|
}
|
|
1734
1734
|
continue $sm;
|
|
1735
1735
|
} else {
|
|
1736
|
-
this.
|
|
1736
|
+
this.j8_1 = 2;
|
|
1737
1737
|
continue $sm;
|
|
1738
1738
|
}
|
|
1739
1739
|
|
|
@@ -1742,111 +1742,111 @@
|
|
|
1742
1742
|
case 3:
|
|
1743
1743
|
return true;
|
|
1744
1744
|
case 4:
|
|
1745
|
-
throw this.
|
|
1745
|
+
throw this.m8_1;
|
|
1746
1746
|
}
|
|
1747
1747
|
} catch ($p) {
|
|
1748
1748
|
var e = $p;
|
|
1749
|
-
if (this.
|
|
1749
|
+
if (this.k8_1 === 4) {
|
|
1750
1750
|
throw e;
|
|
1751
1751
|
} else {
|
|
1752
|
-
this.
|
|
1753
|
-
this.
|
|
1752
|
+
this.j8_1 = this.k8_1;
|
|
1753
|
+
this.m8_1 = e;
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
while (true);
|
|
1757
1757
|
};
|
|
1758
1758
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1759
1759
|
CoroutineImpl.call(this, resultContinuation);
|
|
1760
|
-
this.
|
|
1761
|
-
this.
|
|
1760
|
+
this.o1m_1 = _this__u8e3s4;
|
|
1761
|
+
this.p1m_1 = packet;
|
|
1762
1762
|
}
|
|
1763
|
-
protoOf($readPacketCOROUTINE$).
|
|
1764
|
-
var suspendResult = this.
|
|
1763
|
+
protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
1764
|
+
var suspendResult = this.l8_1;
|
|
1765
1765
|
$sm: do
|
|
1766
1766
|
try {
|
|
1767
|
-
var tmp = this.
|
|
1767
|
+
var tmp = this.j8_1;
|
|
1768
1768
|
switch (tmp) {
|
|
1769
1769
|
case 0:
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1770
|
+
this.k8_1 = 6;
|
|
1771
|
+
this.q1m_1 = new Buffer();
|
|
1772
|
+
this.j8_1 = 1;
|
|
1773
1773
|
continue $sm;
|
|
1774
1774
|
case 1:
|
|
1775
|
-
if (!(this.
|
|
1776
|
-
this.
|
|
1775
|
+
if (!(this.q1m_1.g1() < fromInt(this.p1m_1))) {
|
|
1776
|
+
this.j8_1 = 5;
|
|
1777
1777
|
continue $sm;
|
|
1778
1778
|
}
|
|
1779
1779
|
|
|
1780
|
-
if (this.
|
|
1781
|
-
this.
|
|
1782
|
-
suspendResult = this.
|
|
1780
|
+
if (this.o1m_1.s1g().ro()) {
|
|
1781
|
+
this.j8_1 = 2;
|
|
1782
|
+
suspendResult = this.o1m_1.b1h(VOID, this);
|
|
1783
1783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1784
1784
|
return suspendResult;
|
|
1785
1785
|
}
|
|
1786
1786
|
continue $sm;
|
|
1787
1787
|
} else {
|
|
1788
|
-
this.
|
|
1788
|
+
this.j8_1 = 3;
|
|
1789
1789
|
continue $sm;
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
1792
|
case 2:
|
|
1793
|
-
this.
|
|
1793
|
+
this.j8_1 = 3;
|
|
1794
1794
|
continue $sm;
|
|
1795
1795
|
case 3:
|
|
1796
|
-
if (this.
|
|
1797
|
-
this.
|
|
1796
|
+
if (this.o1m_1.z1g()) {
|
|
1797
|
+
this.j8_1 = 5;
|
|
1798
1798
|
continue $sm;
|
|
1799
1799
|
} else {
|
|
1800
|
-
this.
|
|
1800
|
+
this.j8_1 = 4;
|
|
1801
1801
|
continue $sm;
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
1804
|
case 4:
|
|
1805
|
-
if (get_remaining(this.
|
|
1806
|
-
this.
|
|
1805
|
+
if (get_remaining(this.o1m_1.s1g()) > subtract(numberToLong(this.p1m_1), this.q1m_1.g1())) {
|
|
1806
|
+
this.o1m_1.s1g().tp(this.q1m_1, subtract(numberToLong(this.p1m_1), this.q1m_1.g1()));
|
|
1807
1807
|
} else {
|
|
1808
|
-
this.
|
|
1808
|
+
this.o1m_1.s1g().up(this.q1m_1);
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
|
-
this.
|
|
1811
|
+
this.j8_1 = 1;
|
|
1812
1812
|
continue $sm;
|
|
1813
1813
|
case 5:
|
|
1814
|
-
if (this.
|
|
1815
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1814
|
+
if (this.q1m_1.g1() < fromInt(this.p1m_1)) {
|
|
1815
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.p1m_1 + ' bytes but only ' + this.q1m_1.g1().toString() + ' available');
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
|
-
return this.
|
|
1818
|
+
return this.q1m_1;
|
|
1819
1819
|
case 6:
|
|
1820
|
-
throw this.
|
|
1820
|
+
throw this.m8_1;
|
|
1821
1821
|
}
|
|
1822
1822
|
} catch ($p) {
|
|
1823
1823
|
var e = $p;
|
|
1824
|
-
if (this.
|
|
1824
|
+
if (this.k8_1 === 6) {
|
|
1825
1825
|
throw e;
|
|
1826
1826
|
} else {
|
|
1827
|
-
this.
|
|
1828
|
-
this.
|
|
1827
|
+
this.j8_1 = this.k8_1;
|
|
1828
|
+
this.m8_1 = e;
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
while (true);
|
|
1832
1832
|
};
|
|
1833
1833
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1834
1834
|
CoroutineImpl.call(this, resultContinuation);
|
|
1835
|
-
this.
|
|
1836
|
-
this.
|
|
1835
|
+
this.z1m_1 = _this__u8e3s4;
|
|
1836
|
+
this.a1n_1 = count;
|
|
1837
1837
|
}
|
|
1838
|
-
protoOf($peekCOROUTINE$).
|
|
1839
|
-
var suspendResult = this.
|
|
1838
|
+
protoOf($peekCOROUTINE$).r8 = function () {
|
|
1839
|
+
var suspendResult = this.l8_1;
|
|
1840
1840
|
$sm: do
|
|
1841
1841
|
try {
|
|
1842
|
-
var tmp = this.
|
|
1842
|
+
var tmp = this.j8_1;
|
|
1843
1843
|
switch (tmp) {
|
|
1844
1844
|
case 0:
|
|
1845
|
-
this.
|
|
1846
|
-
if (this.
|
|
1845
|
+
this.k8_1 = 3;
|
|
1846
|
+
if (this.z1m_1.z1g())
|
|
1847
1847
|
return null;
|
|
1848
|
-
this.
|
|
1849
|
-
suspendResult = this.
|
|
1848
|
+
this.j8_1 = 1;
|
|
1849
|
+
suspendResult = this.z1m_1.a1h(this.a1n_1, this);
|
|
1850
1850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1851
1851
|
return suspendResult;
|
|
1852
1852
|
}
|
|
@@ -1856,272 +1856,272 @@
|
|
|
1856
1856
|
if (!suspendResult) {
|
|
1857
1857
|
return null;
|
|
1858
1858
|
} else {
|
|
1859
|
-
this.
|
|
1859
|
+
this.j8_1 = 2;
|
|
1860
1860
|
continue $sm;
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
1863
|
case 2:
|
|
1864
|
-
return readByteString(this.
|
|
1864
|
+
return readByteString(this.z1m_1.s1g().vp(), this.a1n_1);
|
|
1865
1865
|
case 3:
|
|
1866
|
-
throw this.
|
|
1866
|
+
throw this.m8_1;
|
|
1867
1867
|
}
|
|
1868
1868
|
} catch ($p) {
|
|
1869
1869
|
var e = $p;
|
|
1870
|
-
if (this.
|
|
1870
|
+
if (this.k8_1 === 3) {
|
|
1871
1871
|
throw e;
|
|
1872
1872
|
} else {
|
|
1873
|
-
this.
|
|
1874
|
-
this.
|
|
1873
|
+
this.j8_1 = this.k8_1;
|
|
1874
|
+
this.m8_1 = e;
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
while (true);
|
|
1878
1878
|
};
|
|
1879
1879
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1880
1880
|
CoroutineImpl.call(this, resultContinuation);
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1883
|
-
this.
|
|
1884
|
-
this.
|
|
1885
|
-
this.
|
|
1886
|
-
}
|
|
1887
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1888
|
-
var suspendResult = this.
|
|
1881
|
+
this.j1n_1 = _this__u8e3s4;
|
|
1882
|
+
this.k1n_1 = out;
|
|
1883
|
+
this.l1n_1 = limit;
|
|
1884
|
+
this.m1n_1 = lenientLineEnding;
|
|
1885
|
+
this.n1n_1 = throwOnIncompleteLine;
|
|
1886
|
+
}
|
|
1887
|
+
protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
1888
|
+
var suspendResult = this.l8_1;
|
|
1889
1889
|
$sm: do
|
|
1890
1890
|
try {
|
|
1891
|
-
var tmp = this.
|
|
1891
|
+
var tmp = this.j8_1;
|
|
1892
1892
|
switch (tmp) {
|
|
1893
1893
|
case 0:
|
|
1894
|
-
this.
|
|
1895
|
-
this.
|
|
1896
|
-
if (this.
|
|
1897
|
-
this.
|
|
1898
|
-
suspendResult = this.
|
|
1894
|
+
this.k8_1 = 18;
|
|
1895
|
+
this.p1n_1 = this.j1n_1.s1g();
|
|
1896
|
+
if (this.p1n_1.ro()) {
|
|
1897
|
+
this.j8_1 = 1;
|
|
1898
|
+
suspendResult = this.j1n_1.b1h(VOID, this);
|
|
1899
1899
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1900
1900
|
return suspendResult;
|
|
1901
1901
|
}
|
|
1902
1902
|
continue $sm;
|
|
1903
1903
|
} else {
|
|
1904
|
-
this.
|
|
1904
|
+
this.j8_1 = 2;
|
|
1905
1905
|
continue $sm;
|
|
1906
1906
|
}
|
|
1907
1907
|
|
|
1908
1908
|
case 1:
|
|
1909
|
-
this.
|
|
1909
|
+
this.j8_1 = 2;
|
|
1910
1910
|
continue $sm;
|
|
1911
1911
|
case 2:
|
|
1912
|
-
if (this.
|
|
1912
|
+
if (this.j1n_1.z1g())
|
|
1913
1913
|
return -1n;
|
|
1914
|
-
this.
|
|
1915
|
-
this.
|
|
1914
|
+
this.o1n_1 = {_v: 0n};
|
|
1915
|
+
this.j8_1 = 3;
|
|
1916
1916
|
continue $sm;
|
|
1917
1917
|
case 3:
|
|
1918
|
-
if (!(this.
|
|
1919
|
-
this.
|
|
1918
|
+
if (!(this.o1n_1._v < this.l1n_1 && !this.j1n_1.z1g())) {
|
|
1919
|
+
this.j8_1 = 10;
|
|
1920
1920
|
continue $sm;
|
|
1921
1921
|
}
|
|
1922
1922
|
|
|
1923
|
-
var limitLeft = subtract(this.
|
|
1924
|
-
var lfIndex = indexOf(this.
|
|
1925
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1923
|
+
var limitLeft = subtract(this.l1n_1, this.o1n_1._v);
|
|
1924
|
+
var lfIndex = indexOf(this.p1n_1, 10, VOID, limitLeft);
|
|
1925
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.p1n_1, this.m1n_1, lfIndex, limitLeft);
|
|
1926
1926
|
if (crIndex >= 0n) {
|
|
1927
|
-
internalReadLineTo$transferString(this.
|
|
1928
|
-
discard_0(this.
|
|
1929
|
-
return this.
|
|
1927
|
+
internalReadLineTo$transferString(this.p1n_1, this.k1n_1, this.o1n_1, crIndex);
|
|
1928
|
+
discard_0(this.p1n_1, 1n);
|
|
1929
|
+
return this.o1n_1._v;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
1932
|
if (lfIndex === 0n) {
|
|
1933
|
-
discard_0(this.
|
|
1934
|
-
return this.
|
|
1933
|
+
discard_0(this.p1n_1, 1n);
|
|
1934
|
+
return this.o1n_1._v;
|
|
1935
1935
|
}
|
|
1936
1936
|
|
|
1937
1937
|
if (lfIndex > 0n) {
|
|
1938
1938
|
var tmp_0;
|
|
1939
|
-
var tmp_1 = this.
|
|
1940
|
-
if (tmp_1.
|
|
1939
|
+
var tmp_1 = this.p1n_1.qo();
|
|
1940
|
+
if (tmp_1.mp(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1941
1941
|
tmp_0 = 1n;
|
|
1942
1942
|
} else {
|
|
1943
1943
|
tmp_0 = 0n;
|
|
1944
1944
|
}
|
|
1945
1945
|
var isCrlf = tmp_0;
|
|
1946
|
-
internalReadLineTo$transferString(this.
|
|
1947
|
-
discard_0(this.
|
|
1948
|
-
return this.
|
|
1946
|
+
internalReadLineTo$transferString(this.p1n_1, this.k1n_1, this.o1n_1, subtract(lfIndex, isCrlf));
|
|
1947
|
+
discard_0(this.p1n_1, add(numberToLong(1), isCrlf));
|
|
1948
|
+
return this.o1n_1._v;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
var b = get_remaining(this.
|
|
1951
|
+
var b = get_remaining(this.p1n_1);
|
|
1952
1952
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1953
|
-
var tmp_2 = this.
|
|
1954
|
-
if (tmp_2.
|
|
1955
|
-
internalReadLineTo$transferString(this.
|
|
1956
|
-
this.
|
|
1957
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
1953
|
+
var tmp_2 = this.p1n_1.qo();
|
|
1954
|
+
if (tmp_2.mp(subtract(count, fromInt(1))) === 13) {
|
|
1955
|
+
internalReadLineTo$transferString(this.p1n_1, this.k1n_1, this.o1n_1, subtract(count, fromInt(1)));
|
|
1956
|
+
this.j8_1 = 4;
|
|
1957
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.p1n_1, this.j1n_1, this.m1n_1, this);
|
|
1958
1958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1959
1959
|
return suspendResult;
|
|
1960
1960
|
}
|
|
1961
1961
|
continue $sm;
|
|
1962
1962
|
} else {
|
|
1963
|
-
internalReadLineTo$transferString(this.
|
|
1964
|
-
this.
|
|
1963
|
+
internalReadLineTo$transferString(this.p1n_1, this.k1n_1, this.o1n_1, count);
|
|
1964
|
+
this.j8_1 = 6;
|
|
1965
1965
|
continue $sm;
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
1968
|
case 4:
|
|
1969
1969
|
if (suspendResult) {
|
|
1970
|
-
return this.
|
|
1970
|
+
return this.o1n_1._v;
|
|
1971
1971
|
} else {
|
|
1972
|
-
this.
|
|
1972
|
+
this.j8_1 = 5;
|
|
1973
1973
|
continue $sm;
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
1976
|
case 5:
|
|
1977
|
-
internalReadLineTo$transferString(this.
|
|
1978
|
-
this.
|
|
1977
|
+
internalReadLineTo$transferString(this.p1n_1, this.k1n_1, this.o1n_1, 1n);
|
|
1978
|
+
this.j8_1 = 6;
|
|
1979
1979
|
continue $sm;
|
|
1980
1980
|
case 6:
|
|
1981
|
-
if (this.
|
|
1982
|
-
this.
|
|
1983
|
-
suspendResult = this.
|
|
1981
|
+
if (this.o1n_1._v < this.l1n_1 && get_remaining(this.p1n_1) === 0n) {
|
|
1982
|
+
this.j8_1 = 7;
|
|
1983
|
+
suspendResult = this.j1n_1.b1h(VOID, this);
|
|
1984
1984
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1985
1985
|
return suspendResult;
|
|
1986
1986
|
}
|
|
1987
1987
|
continue $sm;
|
|
1988
1988
|
} else {
|
|
1989
|
-
this.
|
|
1990
|
-
this.
|
|
1989
|
+
this.r1n_1 = false;
|
|
1990
|
+
this.j8_1 = 8;
|
|
1991
1991
|
continue $sm;
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
1994
|
case 7:
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1995
|
+
this.r1n_1 = !suspendResult;
|
|
1996
|
+
this.j8_1 = 8;
|
|
1997
1997
|
continue $sm;
|
|
1998
1998
|
case 8:
|
|
1999
|
-
if (this.
|
|
2000
|
-
this.
|
|
1999
|
+
if (this.r1n_1) {
|
|
2000
|
+
this.j8_1 = 10;
|
|
2001
2001
|
continue $sm;
|
|
2002
2002
|
} else {
|
|
2003
|
-
this.
|
|
2003
|
+
this.j8_1 = 9;
|
|
2004
2004
|
continue $sm;
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
2007
|
case 9:
|
|
2008
|
-
this.
|
|
2008
|
+
this.j8_1 = 3;
|
|
2009
2009
|
continue $sm;
|
|
2010
2010
|
case 10:
|
|
2011
|
-
if (this.
|
|
2011
|
+
if (this.o1n_1._v === 0n && this.j1n_1.z1g())
|
|
2012
2012
|
return -1n;
|
|
2013
|
-
if (!(this.
|
|
2014
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2013
|
+
if (!(this.o1n_1._v <= this.l1n_1)) {
|
|
2014
|
+
var message = 'Consumed bytes exceed the limit: ' + this.o1n_1._v.toString() + ' > ' + this.l1n_1.toString() + ". It's an implementation bug, please report it.";
|
|
2015
2015
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2016
2016
|
}
|
|
2017
2017
|
|
|
2018
|
-
if (this.
|
|
2019
|
-
if (this.
|
|
2018
|
+
if (this.o1n_1._v === this.l1n_1) {
|
|
2019
|
+
if (this.l1n_1 === 9223372036854775807n)
|
|
2020
2020
|
throw new TooLongLineException('Max line length exceeded');
|
|
2021
|
-
if (get_remaining(this.
|
|
2022
|
-
this.
|
|
2023
|
-
suspendResult = this.
|
|
2021
|
+
if (get_remaining(this.p1n_1) === 0n) {
|
|
2022
|
+
this.j8_1 = 12;
|
|
2023
|
+
suspendResult = this.j1n_1.b1h(VOID, this);
|
|
2024
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2025
|
return suspendResult;
|
|
2026
2026
|
}
|
|
2027
2027
|
continue $sm;
|
|
2028
2028
|
} else {
|
|
2029
|
-
this.
|
|
2030
|
-
this.
|
|
2029
|
+
this.q1n_1 = false;
|
|
2030
|
+
this.j8_1 = 13;
|
|
2031
2031
|
continue $sm;
|
|
2032
2032
|
}
|
|
2033
2033
|
} else {
|
|
2034
|
-
this.
|
|
2034
|
+
this.j8_1 = 11;
|
|
2035
2035
|
continue $sm;
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
case 11:
|
|
2039
|
-
if (this.
|
|
2040
|
-
throwEndOfStreamException(this.
|
|
2039
|
+
if (this.n1n_1) {
|
|
2040
|
+
throwEndOfStreamException(this.o1n_1._v);
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
2043
|
-
return this.
|
|
2043
|
+
return this.o1n_1._v;
|
|
2044
2044
|
case 12:
|
|
2045
|
-
this.
|
|
2046
|
-
this.
|
|
2045
|
+
this.q1n_1 = !suspendResult;
|
|
2046
|
+
this.j8_1 = 13;
|
|
2047
2047
|
continue $sm;
|
|
2048
2048
|
case 13:
|
|
2049
|
-
if (this.
|
|
2050
|
-
throwEndOfStreamException(this.
|
|
2049
|
+
if (this.q1n_1) {
|
|
2050
|
+
throwEndOfStreamException(this.o1n_1._v);
|
|
2051
2051
|
} else {
|
|
2052
|
-
this.
|
|
2052
|
+
this.j8_1 = 14;
|
|
2053
2053
|
continue $sm;
|
|
2054
2054
|
}
|
|
2055
2055
|
|
|
2056
2056
|
break;
|
|
2057
2057
|
case 14:
|
|
2058
|
-
var tmp0_subject = this.
|
|
2058
|
+
var tmp0_subject = this.p1n_1.qo().mp(0n);
|
|
2059
2059
|
if (tmp0_subject === 10) {
|
|
2060
|
-
discard_0(this.
|
|
2061
|
-
return this.
|
|
2060
|
+
discard_0(this.p1n_1, 1n);
|
|
2061
|
+
return this.o1n_1._v;
|
|
2062
2062
|
} else {
|
|
2063
2063
|
if (tmp0_subject === 13) {
|
|
2064
|
-
this.
|
|
2065
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2064
|
+
this.j8_1 = 15;
|
|
2065
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.p1n_1, this.j1n_1, this.m1n_1, this);
|
|
2066
2066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2067
2067
|
return suspendResult;
|
|
2068
2068
|
}
|
|
2069
2069
|
continue $sm;
|
|
2070
2070
|
} else {
|
|
2071
|
-
this.
|
|
2071
|
+
this.j8_1 = 17;
|
|
2072
2072
|
continue $sm;
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
2075
|
|
|
2076
2076
|
case 15:
|
|
2077
2077
|
if (suspendResult) {
|
|
2078
|
-
return this.
|
|
2078
|
+
return this.o1n_1._v;
|
|
2079
2079
|
} else {
|
|
2080
|
-
this.
|
|
2080
|
+
this.j8_1 = 16;
|
|
2081
2081
|
continue $sm;
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
2084
|
case 16:
|
|
2085
|
-
this.
|
|
2085
|
+
this.j8_1 = 17;
|
|
2086
2086
|
continue $sm;
|
|
2087
2087
|
case 17:
|
|
2088
|
-
throwTooLongLineException(this.
|
|
2088
|
+
throwTooLongLineException(this.l1n_1);
|
|
2089
2089
|
break;
|
|
2090
2090
|
case 18:
|
|
2091
|
-
throw this.
|
|
2091
|
+
throw this.m8_1;
|
|
2092
2092
|
}
|
|
2093
2093
|
} catch ($p) {
|
|
2094
2094
|
var e = $p;
|
|
2095
|
-
if (this.
|
|
2095
|
+
if (this.k8_1 === 18) {
|
|
2096
2096
|
throw e;
|
|
2097
2097
|
} else {
|
|
2098
|
-
this.
|
|
2099
|
-
this.
|
|
2098
|
+
this.j8_1 = this.k8_1;
|
|
2099
|
+
this.m8_1 = e;
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
2102
|
while (true);
|
|
2103
2103
|
};
|
|
2104
2104
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2105
2105
|
CoroutineImpl.call(this, resultContinuation);
|
|
2106
|
-
this.
|
|
2107
|
-
this.
|
|
2108
|
-
this.
|
|
2106
|
+
this.a1o_1 = _this__u8e3s4;
|
|
2107
|
+
this.b1o_1 = $this_internalReadLineTo;
|
|
2108
|
+
this.c1o_1 = $lenientLineEnding;
|
|
2109
2109
|
}
|
|
2110
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2111
|
-
var suspendResult = this.
|
|
2110
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
2111
|
+
var suspendResult = this.l8_1;
|
|
2112
2112
|
$sm: do
|
|
2113
2113
|
try {
|
|
2114
|
-
var tmp = this.
|
|
2114
|
+
var tmp = this.j8_1;
|
|
2115
2115
|
switch (tmp) {
|
|
2116
2116
|
case 0:
|
|
2117
|
-
this.
|
|
2118
|
-
if (get_remaining(this.
|
|
2119
|
-
this.
|
|
2120
|
-
this.
|
|
2117
|
+
this.k8_1 = 5;
|
|
2118
|
+
if (get_remaining(this.a1o_1) >= 2n) {
|
|
2119
|
+
this.e1o_1 = true;
|
|
2120
|
+
this.j8_1 = 2;
|
|
2121
2121
|
continue $sm;
|
|
2122
2122
|
} else {
|
|
2123
|
-
this.
|
|
2124
|
-
suspendResult = this.
|
|
2123
|
+
this.j8_1 = 1;
|
|
2124
|
+
suspendResult = this.b1o_1.a1h(2, this);
|
|
2125
2125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2126
2126
|
return suspendResult;
|
|
2127
2127
|
}
|
|
@@ -2129,46 +2129,46 @@
|
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
2131
|
case 1:
|
|
2132
|
-
this.
|
|
2133
|
-
this.
|
|
2132
|
+
this.e1o_1 = suspendResult;
|
|
2133
|
+
this.j8_1 = 2;
|
|
2134
2134
|
continue $sm;
|
|
2135
2135
|
case 2:
|
|
2136
|
-
if (this.
|
|
2137
|
-
this.
|
|
2138
|
-
this.
|
|
2136
|
+
if (this.e1o_1) {
|
|
2137
|
+
this.d1o_1 = this.a1o_1.qo().mp(1n) === 10;
|
|
2138
|
+
this.j8_1 = 3;
|
|
2139
2139
|
continue $sm;
|
|
2140
2140
|
} else {
|
|
2141
|
-
this.
|
|
2142
|
-
this.
|
|
2141
|
+
this.d1o_1 = false;
|
|
2142
|
+
this.j8_1 = 3;
|
|
2143
2143
|
continue $sm;
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
2146
|
case 3:
|
|
2147
|
-
if (this.
|
|
2148
|
-
discard_0(this.
|
|
2147
|
+
if (this.d1o_1) {
|
|
2148
|
+
discard_0(this.a1o_1, 2n);
|
|
2149
2149
|
return true;
|
|
2150
2150
|
} else {
|
|
2151
|
-
this.
|
|
2151
|
+
this.j8_1 = 4;
|
|
2152
2152
|
continue $sm;
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
2155
|
case 4:
|
|
2156
|
-
if (this.
|
|
2157
|
-
discard_0(this.
|
|
2156
|
+
if (this.c1o_1) {
|
|
2157
|
+
discard_0(this.a1o_1, 1n);
|
|
2158
2158
|
return true;
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
2161
|
return false;
|
|
2162
2162
|
case 5:
|
|
2163
|
-
throw this.
|
|
2163
|
+
throw this.m8_1;
|
|
2164
2164
|
}
|
|
2165
2165
|
} catch ($p) {
|
|
2166
2166
|
var e = $p;
|
|
2167
|
-
if (this.
|
|
2167
|
+
if (this.k8_1 === 5) {
|
|
2168
2168
|
throw e;
|
|
2169
2169
|
} else {
|
|
2170
|
-
this.
|
|
2171
|
-
this.
|
|
2170
|
+
this.j8_1 = this.k8_1;
|
|
2171
|
+
this.m8_1 = e;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
while (true);
|
|
@@ -2177,50 +2177,50 @@
|
|
|
2177
2177
|
}
|
|
2178
2178
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2179
2179
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2180
|
-
tmp.
|
|
2181
|
-
tmp.
|
|
2182
|
-
return tmp.
|
|
2180
|
+
tmp.l8_1 = Unit_instance;
|
|
2181
|
+
tmp.m8_1 = null;
|
|
2182
|
+
return tmp.r8();
|
|
2183
2183
|
}
|
|
2184
2184
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2185
2185
|
CoroutineImpl.call(this, resultContinuation);
|
|
2186
|
-
this.
|
|
2186
|
+
this.n1o_1 = _this__u8e3s4;
|
|
2187
2187
|
}
|
|
2188
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2189
|
-
var suspendResult = this.
|
|
2188
|
+
protoOf($flushIfNeededCOROUTINE$).r8 = function () {
|
|
2189
|
+
var suspendResult = this.l8_1;
|
|
2190
2190
|
$sm: do
|
|
2191
2191
|
try {
|
|
2192
|
-
var tmp = this.
|
|
2192
|
+
var tmp = this.j8_1;
|
|
2193
2193
|
switch (tmp) {
|
|
2194
2194
|
case 0:
|
|
2195
|
-
this.
|
|
2196
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2197
|
-
if (this.
|
|
2198
|
-
this.
|
|
2199
|
-
suspendResult = this.
|
|
2195
|
+
this.k8_1 = 3;
|
|
2196
|
+
rethrowCloseCauseIfNeeded_1(this.n1o_1);
|
|
2197
|
+
if (this.n1o_1.r1g() || get_size(this.n1o_1.v1g()) >= 1048576) {
|
|
2198
|
+
this.j8_1 = 1;
|
|
2199
|
+
suspendResult = this.n1o_1.q1g(this);
|
|
2200
2200
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2201
2201
|
return suspendResult;
|
|
2202
2202
|
}
|
|
2203
2203
|
continue $sm;
|
|
2204
2204
|
} else {
|
|
2205
|
-
this.
|
|
2205
|
+
this.j8_1 = 2;
|
|
2206
2206
|
continue $sm;
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
2209
|
case 1:
|
|
2210
|
-
this.
|
|
2210
|
+
this.j8_1 = 2;
|
|
2211
2211
|
continue $sm;
|
|
2212
2212
|
case 2:
|
|
2213
2213
|
return Unit_instance;
|
|
2214
2214
|
case 3:
|
|
2215
|
-
throw this.
|
|
2215
|
+
throw this.m8_1;
|
|
2216
2216
|
}
|
|
2217
2217
|
} catch ($p) {
|
|
2218
2218
|
var e = $p;
|
|
2219
|
-
if (this.
|
|
2219
|
+
if (this.k8_1 === 3) {
|
|
2220
2220
|
throw e;
|
|
2221
2221
|
} else {
|
|
2222
|
-
this.
|
|
2223
|
-
this.
|
|
2222
|
+
this.j8_1 = this.k8_1;
|
|
2223
|
+
this.m8_1 = e;
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
2226
|
while (true);
|
|
@@ -2233,15 +2233,15 @@
|
|
|
2233
2233
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2234
2234
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2235
2235
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2236
|
-
_this__u8e3s4.
|
|
2236
|
+
_this__u8e3s4.v1g().aq(value, startIndex, endIndex);
|
|
2237
2237
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2238
2238
|
}
|
|
2239
2239
|
function WriterJob(channel, job) {
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2240
|
+
this.o1o_1 = channel;
|
|
2241
|
+
this.p1o_1 = job;
|
|
2242
2242
|
}
|
|
2243
|
-
protoOf(WriterJob).
|
|
2244
|
-
return this.
|
|
2243
|
+
protoOf(WriterJob).zx = function () {
|
|
2244
|
+
return this.p1o_1;
|
|
2245
2245
|
};
|
|
2246
2246
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2247
2247
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2250,36 +2250,36 @@
|
|
|
2250
2250
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2251
2251
|
}
|
|
2252
2252
|
function WriterScope(channel, coroutineContext) {
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2253
|
+
this.q1o_1 = channel;
|
|
2254
|
+
this.r1o_1 = coroutineContext;
|
|
2255
2255
|
}
|
|
2256
|
-
protoOf(WriterScope).
|
|
2257
|
-
return this.
|
|
2256
|
+
protoOf(WriterScope).cs = function () {
|
|
2257
|
+
return this.r1o_1;
|
|
2258
2258
|
};
|
|
2259
2259
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2260
2260
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2261
|
-
return _this__u8e3s4.
|
|
2261
|
+
return _this__u8e3s4.zx().et(block);
|
|
2262
2262
|
}
|
|
2263
2263
|
function close_0(_this__u8e3s4, cause) {
|
|
2264
2264
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2265
2265
|
if (cause == null) {
|
|
2266
2266
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2267
2267
|
} else {
|
|
2268
|
-
_this__u8e3s4.
|
|
2268
|
+
_this__u8e3s4.d1h(cause);
|
|
2269
2269
|
}
|
|
2270
2270
|
}
|
|
2271
2271
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2272
2272
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2273
|
-
tmp.
|
|
2274
|
-
tmp.
|
|
2275
|
-
return tmp.
|
|
2273
|
+
tmp.l8_1 = Unit_instance;
|
|
2274
|
+
tmp.m8_1 = null;
|
|
2275
|
+
return tmp.r8();
|
|
2276
2276
|
}
|
|
2277
2277
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2278
2278
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
2279
2279
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2280
2280
|
// Inline function 'kotlin.apply' call
|
|
2281
2281
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2282
|
-
this_0.
|
|
2282
|
+
this_0.et(writer$lambda(channel));
|
|
2283
2283
|
var job = this_0;
|
|
2284
2284
|
return new WriterJob(channel, job);
|
|
2285
2285
|
}
|
|
@@ -2288,115 +2288,115 @@
|
|
|
2288
2288
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2289
2289
|
}
|
|
2290
2290
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2291
|
-
_this__u8e3s4.
|
|
2291
|
+
_this__u8e3s4.v1g().kq(value);
|
|
2292
2292
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2293
2293
|
}
|
|
2294
2294
|
function NO_CALLBACK$1() {
|
|
2295
|
-
this.
|
|
2295
|
+
this.c1p_1 = EmptyCoroutineContext_instance;
|
|
2296
2296
|
}
|
|
2297
|
-
protoOf(NO_CALLBACK$1).
|
|
2298
|
-
return this.
|
|
2297
|
+
protoOf(NO_CALLBACK$1).p8 = function () {
|
|
2298
|
+
return this.c1p_1;
|
|
2299
2299
|
};
|
|
2300
|
-
protoOf(NO_CALLBACK$1).
|
|
2300
|
+
protoOf(NO_CALLBACK$1).q8 = function (result) {
|
|
2301
2301
|
return Unit_instance;
|
|
2302
2302
|
};
|
|
2303
|
-
protoOf(NO_CALLBACK$1).
|
|
2304
|
-
return this.
|
|
2303
|
+
protoOf(NO_CALLBACK$1).u8 = function (result) {
|
|
2304
|
+
return this.q8(result);
|
|
2305
2305
|
};
|
|
2306
2306
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2307
|
-
this.
|
|
2307
|
+
this.d1p_1 = p0;
|
|
2308
2308
|
}
|
|
2309
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2310
|
-
return this.
|
|
2309
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).e1p = function ($completion) {
|
|
2310
|
+
return this.d1p_1.c1h($completion);
|
|
2311
2311
|
};
|
|
2312
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2313
|
-
return this.
|
|
2312
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).aa = function ($completion) {
|
|
2313
|
+
return this.e1p($completion);
|
|
2314
2314
|
};
|
|
2315
2315
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2316
2316
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2317
2317
|
var l = function ($completion) {
|
|
2318
|
-
return i.
|
|
2318
|
+
return i.e1p($completion);
|
|
2319
2319
|
};
|
|
2320
2320
|
l.callableName = 'flushAndClose';
|
|
2321
2321
|
l.$arity = 0;
|
|
2322
2322
|
return l;
|
|
2323
2323
|
}
|
|
2324
2324
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2325
|
-
this.
|
|
2326
|
-
this.
|
|
2325
|
+
this.n1p_1 = $block;
|
|
2326
|
+
this.o1p_1 = $channel;
|
|
2327
2327
|
CoroutineImpl.call(this, resultContinuation);
|
|
2328
2328
|
}
|
|
2329
|
-
protoOf(writer$slambda).
|
|
2330
|
-
var tmp = this.
|
|
2331
|
-
tmp.
|
|
2332
|
-
tmp.
|
|
2333
|
-
return tmp.
|
|
2329
|
+
protoOf(writer$slambda).w1p = function ($this$launch, $completion) {
|
|
2330
|
+
var tmp = this.x1p($this$launch, $completion);
|
|
2331
|
+
tmp.l8_1 = Unit_instance;
|
|
2332
|
+
tmp.m8_1 = null;
|
|
2333
|
+
return tmp.r8();
|
|
2334
2334
|
};
|
|
2335
|
-
protoOf(writer$slambda).
|
|
2336
|
-
return this.
|
|
2335
|
+
protoOf(writer$slambda).d9 = function (p1, $completion) {
|
|
2336
|
+
return this.w1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2337
2337
|
};
|
|
2338
|
-
protoOf(writer$slambda).
|
|
2339
|
-
var suspendResult = this.
|
|
2338
|
+
protoOf(writer$slambda).r8 = function () {
|
|
2339
|
+
var suspendResult = this.l8_1;
|
|
2340
2340
|
$sm: do
|
|
2341
2341
|
try {
|
|
2342
|
-
var tmp = this.
|
|
2342
|
+
var tmp = this.j8_1;
|
|
2343
2343
|
switch (tmp) {
|
|
2344
2344
|
case 0:
|
|
2345
|
-
this.
|
|
2346
|
-
this.
|
|
2347
|
-
this.
|
|
2345
|
+
this.k8_1 = 14;
|
|
2346
|
+
this.s1p_1 = Job(get_job(this.p1p_1.cs()));
|
|
2347
|
+
this.j8_1 = 1;
|
|
2348
2348
|
continue $sm;
|
|
2349
2349
|
case 1:
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2353
|
-
suspendResult = this.
|
|
2350
|
+
this.k8_1 = 4;
|
|
2351
|
+
this.k8_1 = 3;
|
|
2352
|
+
this.j8_1 = 2;
|
|
2353
|
+
suspendResult = this.n1p_1(new WriterScope(this.o1p_1, this.p1p_1.cs().lf(this.s1p_1)), this);
|
|
2354
2354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2355
2355
|
return suspendResult;
|
|
2356
2356
|
}
|
|
2357
2357
|
|
|
2358
2358
|
continue $sm;
|
|
2359
2359
|
case 2:
|
|
2360
|
-
this.
|
|
2360
|
+
this.s1p_1.uy();
|
|
2361
2361
|
var tmp_0;
|
|
2362
|
-
if (get_job(this.
|
|
2363
|
-
this.
|
|
2362
|
+
if (get_job(this.p1p_1.cs()).ys()) {
|
|
2363
|
+
this.o1p_1.d1h(get_job(this.p1p_1.cs()).bt());
|
|
2364
2364
|
tmp_0 = Unit_instance;
|
|
2365
2365
|
}
|
|
2366
2366
|
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2367
|
+
this.k8_1 = 14;
|
|
2368
|
+
this.j8_1 = 9;
|
|
2369
2369
|
continue $sm;
|
|
2370
2370
|
case 3:
|
|
2371
|
-
this.
|
|
2372
|
-
var tmp_1 = this.
|
|
2371
|
+
this.k8_1 = 4;
|
|
2372
|
+
var tmp_1 = this.m8_1;
|
|
2373
2373
|
if (tmp_1 instanceof Error) {
|
|
2374
|
-
var cause = this.
|
|
2375
|
-
cancel(this.
|
|
2376
|
-
this.
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2374
|
+
var cause = this.m8_1;
|
|
2375
|
+
cancel(this.s1p_1, 'Exception thrown while writing to channel', cause);
|
|
2376
|
+
this.o1p_1.d1h(cause);
|
|
2377
|
+
this.k8_1 = 14;
|
|
2378
|
+
this.j8_1 = 9;
|
|
2379
2379
|
continue $sm;
|
|
2380
2380
|
} else {
|
|
2381
|
-
throw this.
|
|
2381
|
+
throw this.m8_1;
|
|
2382
2382
|
}
|
|
2383
2383
|
|
|
2384
2384
|
case 4:
|
|
2385
|
-
this.
|
|
2386
|
-
this.
|
|
2387
|
-
this.
|
|
2388
|
-
suspendResult = this.
|
|
2385
|
+
this.k8_1 = 14;
|
|
2386
|
+
this.t1p_1 = this.m8_1;
|
|
2387
|
+
this.j8_1 = 5;
|
|
2388
|
+
suspendResult = this.s1p_1.it(this);
|
|
2389
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2390
2390
|
return suspendResult;
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
2393
|
continue $sm;
|
|
2394
2394
|
case 5:
|
|
2395
|
-
this.
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2398
|
-
this.
|
|
2399
|
-
suspendResult = this.
|
|
2395
|
+
this.p1p_1;
|
|
2396
|
+
this.k8_1 = 7;
|
|
2397
|
+
this.v1p_1 = Companion_instance;
|
|
2398
|
+
this.j8_1 = 6;
|
|
2399
|
+
suspendResult = this.o1p_1.c1h(this);
|
|
2400
2400
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2401
2401
|
return suspendResult;
|
|
2402
2402
|
}
|
|
@@ -2404,42 +2404,42 @@
|
|
|
2404
2404
|
continue $sm;
|
|
2405
2405
|
case 6:
|
|
2406
2406
|
var tmp_2 = this;
|
|
2407
|
-
this.
|
|
2408
|
-
tmp_2.
|
|
2409
|
-
this.
|
|
2410
|
-
this.
|
|
2407
|
+
this.v1p_1;
|
|
2408
|
+
tmp_2.u1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2409
|
+
this.k8_1 = 14;
|
|
2410
|
+
this.j8_1 = 8;
|
|
2411
2411
|
continue $sm;
|
|
2412
2412
|
case 7:
|
|
2413
|
-
this.
|
|
2414
|
-
var tmp_3 = this.
|
|
2413
|
+
this.k8_1 = 14;
|
|
2414
|
+
var tmp_3 = this.m8_1;
|
|
2415
2415
|
if (tmp_3 instanceof Error) {
|
|
2416
|
-
var e = this.
|
|
2416
|
+
var e = this.m8_1;
|
|
2417
2417
|
var tmp_4 = this;
|
|
2418
|
-
tmp_4.
|
|
2419
|
-
this.
|
|
2418
|
+
tmp_4.u1p_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2419
|
+
this.j8_1 = 8;
|
|
2420
2420
|
continue $sm;
|
|
2421
2421
|
} else {
|
|
2422
|
-
throw this.
|
|
2422
|
+
throw this.m8_1;
|
|
2423
2423
|
}
|
|
2424
2424
|
|
|
2425
2425
|
case 8:
|
|
2426
|
-
this.
|
|
2427
|
-
throw this.
|
|
2426
|
+
this.k8_1 = 14;
|
|
2427
|
+
throw this.t1p_1;
|
|
2428
2428
|
case 9:
|
|
2429
|
-
this.
|
|
2430
|
-
this.
|
|
2431
|
-
suspendResult = this.
|
|
2429
|
+
this.k8_1 = 14;
|
|
2430
|
+
this.j8_1 = 10;
|
|
2431
|
+
suspendResult = this.s1p_1.it(this);
|
|
2432
2432
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2433
2433
|
return suspendResult;
|
|
2434
2434
|
}
|
|
2435
2435
|
|
|
2436
2436
|
continue $sm;
|
|
2437
2437
|
case 10:
|
|
2438
|
-
this.
|
|
2439
|
-
this.
|
|
2440
|
-
this.
|
|
2441
|
-
this.
|
|
2442
|
-
suspendResult = this.
|
|
2438
|
+
this.p1p_1;
|
|
2439
|
+
this.k8_1 = 12;
|
|
2440
|
+
this.r1p_1 = Companion_instance;
|
|
2441
|
+
this.j8_1 = 11;
|
|
2442
|
+
suspendResult = this.o1p_1.c1h(this);
|
|
2443
2443
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2444
2444
|
return suspendResult;
|
|
2445
2445
|
}
|
|
@@ -2447,50 +2447,50 @@
|
|
|
2447
2447
|
continue $sm;
|
|
2448
2448
|
case 11:
|
|
2449
2449
|
var tmp_5 = this;
|
|
2450
|
-
this.
|
|
2451
|
-
tmp_5.
|
|
2452
|
-
this.
|
|
2453
|
-
this.
|
|
2450
|
+
this.r1p_1;
|
|
2451
|
+
tmp_5.q1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2452
|
+
this.k8_1 = 14;
|
|
2453
|
+
this.j8_1 = 13;
|
|
2454
2454
|
continue $sm;
|
|
2455
2455
|
case 12:
|
|
2456
|
-
this.
|
|
2457
|
-
var tmp_6 = this.
|
|
2456
|
+
this.k8_1 = 14;
|
|
2457
|
+
var tmp_6 = this.m8_1;
|
|
2458
2458
|
if (tmp_6 instanceof Error) {
|
|
2459
|
-
var e_0 = this.
|
|
2459
|
+
var e_0 = this.m8_1;
|
|
2460
2460
|
var tmp_7 = this;
|
|
2461
|
-
tmp_7.
|
|
2462
|
-
this.
|
|
2461
|
+
tmp_7.q1p_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2462
|
+
this.j8_1 = 13;
|
|
2463
2463
|
continue $sm;
|
|
2464
2464
|
} else {
|
|
2465
|
-
throw this.
|
|
2465
|
+
throw this.m8_1;
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
2468
|
case 13:
|
|
2469
|
-
this.
|
|
2469
|
+
this.k8_1 = 14;
|
|
2470
2470
|
return Unit_instance;
|
|
2471
2471
|
case 14:
|
|
2472
|
-
throw this.
|
|
2472
|
+
throw this.m8_1;
|
|
2473
2473
|
}
|
|
2474
2474
|
} catch ($p) {
|
|
2475
2475
|
var e_1 = $p;
|
|
2476
|
-
if (this.
|
|
2476
|
+
if (this.k8_1 === 14) {
|
|
2477
2477
|
throw e_1;
|
|
2478
2478
|
} else {
|
|
2479
|
-
this.
|
|
2480
|
-
this.
|
|
2479
|
+
this.j8_1 = this.k8_1;
|
|
2480
|
+
this.m8_1 = e_1;
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
while (true);
|
|
2484
2484
|
};
|
|
2485
|
-
protoOf(writer$slambda).
|
|
2486
|
-
var i = new writer$slambda(this.
|
|
2487
|
-
i.
|
|
2485
|
+
protoOf(writer$slambda).x1p = function ($this$launch, completion) {
|
|
2486
|
+
var i = new writer$slambda(this.n1p_1, this.o1p_1, completion);
|
|
2487
|
+
i.p1p_1 = $this$launch;
|
|
2488
2488
|
return i;
|
|
2489
2489
|
};
|
|
2490
2490
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2491
2491
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2492
2492
|
var l = function ($this$launch, $completion) {
|
|
2493
|
-
return i.
|
|
2493
|
+
return i.w1p($this$launch, $completion);
|
|
2494
2494
|
};
|
|
2495
2495
|
l.$arity = 1;
|
|
2496
2496
|
return l;
|
|
@@ -2498,8 +2498,8 @@
|
|
|
2498
2498
|
function writer$lambda($channel) {
|
|
2499
2499
|
return function (it) {
|
|
2500
2500
|
var tmp;
|
|
2501
|
-
if (!(it == null) && !$channel.
|
|
2502
|
-
$channel.
|
|
2501
|
+
if (!(it == null) && !$channel.w1g()) {
|
|
2502
|
+
$channel.d1h(it);
|
|
2503
2503
|
tmp = Unit_instance;
|
|
2504
2504
|
}
|
|
2505
2505
|
return Unit_instance;
|
|
@@ -2507,48 +2507,48 @@
|
|
|
2507
2507
|
}
|
|
2508
2508
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2509
2509
|
CoroutineImpl.call(this, resultContinuation);
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2510
|
+
this.a1p_1 = _this__u8e3s4;
|
|
2511
|
+
this.b1p_1 = source;
|
|
2512
2512
|
}
|
|
2513
|
-
protoOf($writePacketCOROUTINE$).
|
|
2514
|
-
var suspendResult = this.
|
|
2513
|
+
protoOf($writePacketCOROUTINE$).r8 = function () {
|
|
2514
|
+
var suspendResult = this.l8_1;
|
|
2515
2515
|
$sm: do
|
|
2516
2516
|
try {
|
|
2517
|
-
var tmp = this.
|
|
2517
|
+
var tmp = this.j8_1;
|
|
2518
2518
|
switch (tmp) {
|
|
2519
2519
|
case 0:
|
|
2520
|
-
this.
|
|
2521
|
-
this.
|
|
2520
|
+
this.k8_1 = 4;
|
|
2521
|
+
this.j8_1 = 1;
|
|
2522
2522
|
continue $sm;
|
|
2523
2523
|
case 1:
|
|
2524
|
-
if (!!this.
|
|
2525
|
-
this.
|
|
2524
|
+
if (!!this.b1p_1.ro()) {
|
|
2525
|
+
this.j8_1 = 3;
|
|
2526
2526
|
continue $sm;
|
|
2527
2527
|
}
|
|
2528
2528
|
|
|
2529
|
-
this.
|
|
2530
|
-
this.
|
|
2531
|
-
suspendResult = flushIfNeeded(this.
|
|
2529
|
+
this.a1p_1.v1g().eq(this.b1p_1, get_remaining(this.b1p_1));
|
|
2530
|
+
this.j8_1 = 2;
|
|
2531
|
+
suspendResult = flushIfNeeded(this.a1p_1, this);
|
|
2532
2532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2533
2533
|
return suspendResult;
|
|
2534
2534
|
}
|
|
2535
2535
|
|
|
2536
2536
|
continue $sm;
|
|
2537
2537
|
case 2:
|
|
2538
|
-
this.
|
|
2538
|
+
this.j8_1 = 1;
|
|
2539
2539
|
continue $sm;
|
|
2540
2540
|
case 3:
|
|
2541
2541
|
return Unit_instance;
|
|
2542
2542
|
case 4:
|
|
2543
|
-
throw this.
|
|
2543
|
+
throw this.m8_1;
|
|
2544
2544
|
}
|
|
2545
2545
|
} catch ($p) {
|
|
2546
2546
|
var e = $p;
|
|
2547
|
-
if (this.
|
|
2547
|
+
if (this.k8_1 === 4) {
|
|
2548
2548
|
throw e;
|
|
2549
2549
|
} else {
|
|
2550
|
-
this.
|
|
2551
|
-
this.
|
|
2550
|
+
this.j8_1 = this.k8_1;
|
|
2551
|
+
this.m8_1 = e;
|
|
2552
2552
|
}
|
|
2553
2553
|
}
|
|
2554
2554
|
while (true);
|
|
@@ -2573,27 +2573,27 @@
|
|
|
2573
2573
|
return l;
|
|
2574
2574
|
}
|
|
2575
2575
|
function CloseToken(origin) {
|
|
2576
|
-
this.
|
|
2576
|
+
this.t1g_1 = origin;
|
|
2577
2577
|
}
|
|
2578
|
-
protoOf(CloseToken).
|
|
2579
|
-
var tmp0_subject = this.
|
|
2578
|
+
protoOf(CloseToken).y1p = function (wrap) {
|
|
2579
|
+
var tmp0_subject = this.t1g_1;
|
|
2580
2580
|
var tmp;
|
|
2581
2581
|
if (tmp0_subject == null) {
|
|
2582
2582
|
tmp = null;
|
|
2583
2583
|
} else {
|
|
2584
2584
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2585
|
-
tmp = this.
|
|
2585
|
+
tmp = this.t1g_1.dz();
|
|
2586
2586
|
} else {
|
|
2587
2587
|
if (tmp0_subject instanceof CancellationException) {
|
|
2588
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2588
|
+
tmp = CancellationException_init_$Create$(this.t1g_1.message, this.t1g_1);
|
|
2589
2589
|
} else {
|
|
2590
|
-
tmp = wrap(this.
|
|
2590
|
+
tmp = wrap(this.t1g_1);
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
2594
|
return tmp;
|
|
2595
2595
|
};
|
|
2596
|
-
protoOf(CloseToken).
|
|
2596
|
+
protoOf(CloseToken).y1g = function (wrap, $super) {
|
|
2597
2597
|
var tmp;
|
|
2598
2598
|
if (wrap === VOID) {
|
|
2599
2599
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2601,10 +2601,10 @@
|
|
|
2601
2601
|
tmp = wrap;
|
|
2602
2602
|
}
|
|
2603
2603
|
wrap = tmp;
|
|
2604
|
-
return $super === VOID ? this.
|
|
2604
|
+
return $super === VOID ? this.y1p(wrap) : $super.y1p.call(this, wrap);
|
|
2605
2605
|
};
|
|
2606
|
-
protoOf(CloseToken).
|
|
2607
|
-
var tmp0_safe_receiver = this.
|
|
2606
|
+
protoOf(CloseToken).u1g = function (wrap) {
|
|
2607
|
+
var tmp0_safe_receiver = this.y1p(wrap);
|
|
2608
2608
|
var tmp;
|
|
2609
2609
|
if (tmp0_safe_receiver == null) {
|
|
2610
2610
|
tmp = null;
|
|
@@ -2623,32 +2623,32 @@
|
|
|
2623
2623
|
}
|
|
2624
2624
|
function transferFromDelegate($this) {
|
|
2625
2625
|
updateConsumed($this);
|
|
2626
|
-
var appended = $this.
|
|
2627
|
-
$this.
|
|
2626
|
+
var appended = $this.a1q_1.jq($this.z1p_1.s1g());
|
|
2627
|
+
$this.b1q_1 = add($this.b1q_1, appended);
|
|
2628
2628
|
}
|
|
2629
2629
|
function updateConsumed($this) {
|
|
2630
|
-
$this.
|
|
2631
|
-
$this.
|
|
2630
|
+
$this.c1q_1 = add($this.c1q_1, subtract($this.b1q_1, $this.a1q_1.g1()));
|
|
2631
|
+
$this.b1q_1 = $this.a1q_1.g1();
|
|
2632
2632
|
}
|
|
2633
2633
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2634
2634
|
CoroutineImpl.call(this, resultContinuation);
|
|
2635
|
-
this.
|
|
2636
|
-
this.
|
|
2635
|
+
this.l1q_1 = _this__u8e3s4;
|
|
2636
|
+
this.m1q_1 = min;
|
|
2637
2637
|
}
|
|
2638
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2639
|
-
var suspendResult = this.
|
|
2638
|
+
protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
2639
|
+
var suspendResult = this.l8_1;
|
|
2640
2640
|
$sm: do
|
|
2641
2641
|
try {
|
|
2642
|
-
var tmp = this.
|
|
2642
|
+
var tmp = this.j8_1;
|
|
2643
2643
|
switch (tmp) {
|
|
2644
2644
|
case 0:
|
|
2645
|
-
this.
|
|
2646
|
-
if (this.
|
|
2645
|
+
this.k8_1 = 3;
|
|
2646
|
+
if (this.l1q_1.s1g().g1() >= fromInt(this.m1q_1)) {
|
|
2647
2647
|
return true;
|
|
2648
2648
|
}
|
|
2649
2649
|
|
|
2650
|
-
this.
|
|
2651
|
-
suspendResult = this.
|
|
2650
|
+
this.j8_1 = 1;
|
|
2651
|
+
suspendResult = this.l1q_1.z1p_1.a1h(this.m1q_1, this);
|
|
2652
2652
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2653
2653
|
return suspendResult;
|
|
2654
2654
|
}
|
|
@@ -2656,58 +2656,58 @@
|
|
|
2656
2656
|
continue $sm;
|
|
2657
2657
|
case 1:
|
|
2658
2658
|
if (suspendResult) {
|
|
2659
|
-
transferFromDelegate(this.
|
|
2659
|
+
transferFromDelegate(this.l1q_1);
|
|
2660
2660
|
return true;
|
|
2661
2661
|
} else {
|
|
2662
|
-
this.
|
|
2662
|
+
this.j8_1 = 2;
|
|
2663
2663
|
continue $sm;
|
|
2664
2664
|
}
|
|
2665
2665
|
|
|
2666
2666
|
case 2:
|
|
2667
2667
|
return false;
|
|
2668
2668
|
case 3:
|
|
2669
|
-
throw this.
|
|
2669
|
+
throw this.m8_1;
|
|
2670
2670
|
}
|
|
2671
2671
|
} catch ($p) {
|
|
2672
2672
|
var e = $p;
|
|
2673
|
-
if (this.
|
|
2673
|
+
if (this.k8_1 === 3) {
|
|
2674
2674
|
throw e;
|
|
2675
2675
|
} else {
|
|
2676
|
-
this.
|
|
2677
|
-
this.
|
|
2676
|
+
this.j8_1 = this.k8_1;
|
|
2677
|
+
this.m8_1 = e;
|
|
2678
2678
|
}
|
|
2679
2679
|
}
|
|
2680
2680
|
while (true);
|
|
2681
2681
|
};
|
|
2682
2682
|
function CountedByteReadChannel(delegate) {
|
|
2683
|
-
this.
|
|
2684
|
-
this.
|
|
2685
|
-
this.
|
|
2686
|
-
this.
|
|
2683
|
+
this.z1p_1 = delegate;
|
|
2684
|
+
this.a1q_1 = new Buffer();
|
|
2685
|
+
this.b1q_1 = 0n;
|
|
2686
|
+
this.c1q_1 = 0n;
|
|
2687
2687
|
}
|
|
2688
|
-
protoOf(CountedByteReadChannel).
|
|
2688
|
+
protoOf(CountedByteReadChannel).n1q = function () {
|
|
2689
2689
|
updateConsumed(this);
|
|
2690
|
-
return this.
|
|
2690
|
+
return this.c1q_1;
|
|
2691
2691
|
};
|
|
2692
|
-
protoOf(CountedByteReadChannel).
|
|
2693
|
-
return this.
|
|
2692
|
+
protoOf(CountedByteReadChannel).x1g = function () {
|
|
2693
|
+
return this.z1p_1.x1g();
|
|
2694
2694
|
};
|
|
2695
|
-
protoOf(CountedByteReadChannel).
|
|
2696
|
-
return this.
|
|
2695
|
+
protoOf(CountedByteReadChannel).z1g = function () {
|
|
2696
|
+
return this.a1q_1.ro() && this.z1p_1.z1g();
|
|
2697
2697
|
};
|
|
2698
|
-
protoOf(CountedByteReadChannel).
|
|
2698
|
+
protoOf(CountedByteReadChannel).s1g = function () {
|
|
2699
2699
|
transferFromDelegate(this);
|
|
2700
|
-
return this.
|
|
2700
|
+
return this.a1q_1;
|
|
2701
2701
|
};
|
|
2702
|
-
protoOf(CountedByteReadChannel).
|
|
2702
|
+
protoOf(CountedByteReadChannel).a1h = function (min, $completion) {
|
|
2703
2703
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2704
|
-
tmp.
|
|
2705
|
-
tmp.
|
|
2706
|
-
return tmp.
|
|
2704
|
+
tmp.l8_1 = Unit_instance;
|
|
2705
|
+
tmp.m8_1 = null;
|
|
2706
|
+
return tmp.r8();
|
|
2707
2707
|
};
|
|
2708
|
-
protoOf(CountedByteReadChannel).
|
|
2709
|
-
this.
|
|
2710
|
-
this.
|
|
2708
|
+
protoOf(CountedByteReadChannel).d1h = function (cause) {
|
|
2709
|
+
this.z1p_1.d1h(cause);
|
|
2710
|
+
this.a1q_1.j4();
|
|
2711
2711
|
};
|
|
2712
2712
|
function counted(_this__u8e3s4) {
|
|
2713
2713
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2765,21 +2765,21 @@
|
|
|
2765
2765
|
}
|
|
2766
2766
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2767
2767
|
var tmp;
|
|
2768
|
-
if ($this === Companion_getInstance_1().
|
|
2768
|
+
if ($this === Companion_getInstance_1().o1q_1) {
|
|
2769
2769
|
tmp = 'CR';
|
|
2770
|
-
} else if ($this === Companion_getInstance_1().
|
|
2770
|
+
} else if ($this === Companion_getInstance_1().p1q_1) {
|
|
2771
2771
|
tmp = 'LF';
|
|
2772
|
-
} else if ($this === Companion_getInstance_1().
|
|
2772
|
+
} else if ($this === Companion_getInstance_1().q1q_1) {
|
|
2773
2773
|
tmp = 'CRLF';
|
|
2774
2774
|
} else {
|
|
2775
2775
|
// Inline function 'kotlin.collections.filter' call
|
|
2776
|
-
var tmp0 = Companion_getInstance_1().
|
|
2776
|
+
var tmp0 = Companion_getInstance_1().s1q_1;
|
|
2777
2777
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2778
2778
|
var destination = ArrayList_init_$Create$();
|
|
2779
2779
|
var _iterator__ex2g4s = tmp0.t();
|
|
2780
2780
|
while (_iterator__ex2g4s.u()) {
|
|
2781
2781
|
var element = _iterator__ex2g4s.v();
|
|
2782
|
-
var it = element.
|
|
2782
|
+
var it = element.t1q_1;
|
|
2783
2783
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2784
2784
|
destination.e1(element);
|
|
2785
2785
|
}
|
|
@@ -2790,11 +2790,11 @@
|
|
|
2790
2790
|
}
|
|
2791
2791
|
function Companion_1() {
|
|
2792
2792
|
Companion_instance_2 = this;
|
|
2793
|
-
this.
|
|
2794
|
-
this.
|
|
2795
|
-
this.
|
|
2796
|
-
this.
|
|
2797
|
-
this.
|
|
2793
|
+
this.o1q_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2794
|
+
this.p1q_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2795
|
+
this.q1q_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2796
|
+
this.r1q_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2797
|
+
this.s1q_1 = listOf([new LineEndingMode(this.o1q_1), new LineEndingMode(this.p1q_1), new LineEndingMode(this.q1q_1)]);
|
|
2798
2798
|
}
|
|
2799
2799
|
var Companion_instance_2;
|
|
2800
2800
|
function Companion_getInstance_1() {
|
|
@@ -2808,67 +2808,67 @@
|
|
|
2808
2808
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2809
2809
|
if (!(other instanceof LineEndingMode))
|
|
2810
2810
|
return false;
|
|
2811
|
-
if (!($this === other.
|
|
2811
|
+
if (!($this === other.t1q_1))
|
|
2812
2812
|
return false;
|
|
2813
2813
|
return true;
|
|
2814
2814
|
}
|
|
2815
2815
|
function LineEndingMode(mode) {
|
|
2816
2816
|
Companion_getInstance_1();
|
|
2817
|
-
this.
|
|
2817
|
+
this.t1q_1 = mode;
|
|
2818
2818
|
}
|
|
2819
2819
|
protoOf(LineEndingMode).toString = function () {
|
|
2820
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2820
|
+
return LineEndingMode__toString_impl_j4h76r(this.t1q_1);
|
|
2821
2821
|
};
|
|
2822
2822
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2823
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2823
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.t1q_1);
|
|
2824
2824
|
};
|
|
2825
2825
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2826
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2826
|
+
return LineEndingMode__equals_impl_qyr4nk(this.t1q_1, other);
|
|
2827
2827
|
};
|
|
2828
2828
|
function SourceByteReadChannel(source) {
|
|
2829
|
-
this.
|
|
2830
|
-
this.
|
|
2829
|
+
this.u1q_1 = source;
|
|
2830
|
+
this.v1q_1 = null;
|
|
2831
2831
|
}
|
|
2832
|
-
protoOf(SourceByteReadChannel).
|
|
2833
|
-
var tmp0_safe_receiver = this.
|
|
2834
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2832
|
+
protoOf(SourceByteReadChannel).x1g = function () {
|
|
2833
|
+
var tmp0_safe_receiver = this.v1q_1;
|
|
2834
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1g();
|
|
2835
2835
|
};
|
|
2836
|
-
protoOf(SourceByteReadChannel).
|
|
2837
|
-
return this.
|
|
2836
|
+
protoOf(SourceByteReadChannel).z1g = function () {
|
|
2837
|
+
return this.u1q_1.ro();
|
|
2838
2838
|
};
|
|
2839
|
-
protoOf(SourceByteReadChannel).
|
|
2840
|
-
var tmp0_safe_receiver = this.
|
|
2839
|
+
protoOf(SourceByteReadChannel).s1g = function () {
|
|
2840
|
+
var tmp0_safe_receiver = this.x1g();
|
|
2841
2841
|
if (tmp0_safe_receiver == null)
|
|
2842
2842
|
null;
|
|
2843
2843
|
else {
|
|
2844
2844
|
// Inline function 'kotlin.let' call
|
|
2845
2845
|
throw tmp0_safe_receiver;
|
|
2846
2846
|
}
|
|
2847
|
-
return this.
|
|
2847
|
+
return this.u1q_1.qo();
|
|
2848
2848
|
};
|
|
2849
|
-
protoOf(SourceByteReadChannel).
|
|
2850
|
-
var tmp0_safe_receiver = this.
|
|
2849
|
+
protoOf(SourceByteReadChannel).a1h = function (min, $completion) {
|
|
2850
|
+
var tmp0_safe_receiver = this.x1g();
|
|
2851
2851
|
if (tmp0_safe_receiver == null)
|
|
2852
2852
|
null;
|
|
2853
2853
|
else {
|
|
2854
2854
|
// Inline function 'kotlin.let' call
|
|
2855
2855
|
throw tmp0_safe_receiver;
|
|
2856
2856
|
}
|
|
2857
|
-
return this.
|
|
2857
|
+
return this.u1q_1.to(fromInt(min));
|
|
2858
2858
|
};
|
|
2859
|
-
protoOf(SourceByteReadChannel).
|
|
2860
|
-
if (!(this.
|
|
2859
|
+
protoOf(SourceByteReadChannel).d1h = function (cause) {
|
|
2860
|
+
if (!(this.v1q_1 == null))
|
|
2861
2861
|
return Unit_instance;
|
|
2862
|
-
this.
|
|
2862
|
+
this.u1q_1.j4();
|
|
2863
2863
|
var tmp = this;
|
|
2864
2864
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2865
|
-
tmp.
|
|
2865
|
+
tmp.v1q_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2866
2866
|
};
|
|
2867
2867
|
function decode(_this__u8e3s4, input, max) {
|
|
2868
2868
|
max = max === VOID ? 2147483647 : max;
|
|
2869
2869
|
var tmp0 = fromInt(max);
|
|
2870
2870
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2871
|
-
var b = input.
|
|
2871
|
+
var b = input.qo().g1();
|
|
2872
2872
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2873
2873
|
// Inline function 'kotlin.text.buildString' call
|
|
2874
2874
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2905,7 +2905,7 @@
|
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
2907
|
function canRead(_this__u8e3s4) {
|
|
2908
|
-
return !_this__u8e3s4.
|
|
2908
|
+
return !_this__u8e3s4.ro();
|
|
2909
2909
|
}
|
|
2910
2910
|
function readBytes(_this__u8e3s4, count) {
|
|
2911
2911
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2914,35 +2914,35 @@
|
|
|
2914
2914
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2915
2915
|
offset = offset === VOID ? 0 : offset;
|
|
2916
2916
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2917
|
-
_this__u8e3s4.
|
|
2917
|
+
_this__u8e3s4.aq(buffer, offset, offset + length | 0);
|
|
2918
2918
|
}
|
|
2919
2919
|
function BytePacketBuilder() {
|
|
2920
2920
|
return new Buffer();
|
|
2921
2921
|
}
|
|
2922
2922
|
function build(_this__u8e3s4) {
|
|
2923
|
-
return _this__u8e3s4.
|
|
2923
|
+
return _this__u8e3s4.qo();
|
|
2924
2924
|
}
|
|
2925
2925
|
function get_size(_this__u8e3s4) {
|
|
2926
|
-
return convertToInt(_this__u8e3s4.
|
|
2926
|
+
return convertToInt(_this__u8e3s4.qo().g1());
|
|
2927
2927
|
}
|
|
2928
2928
|
var ByteReadPacketEmpty;
|
|
2929
2929
|
function get_remaining(_this__u8e3s4) {
|
|
2930
2930
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2931
|
-
return _this__u8e3s4.
|
|
2931
|
+
return _this__u8e3s4.qo().g1();
|
|
2932
2932
|
}
|
|
2933
2933
|
function takeWhile(_this__u8e3s4, block) {
|
|
2934
2934
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2935
|
-
while (!_this__u8e3s4.
|
|
2935
|
+
while (!_this__u8e3s4.ro() && block(_this__u8e3s4.qo())) {
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
2938
|
function discard_0(_this__u8e3s4, count) {
|
|
2939
2939
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2940
2940
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2941
|
-
_this__u8e3s4.
|
|
2941
|
+
_this__u8e3s4.to(count);
|
|
2942
2942
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2943
2943
|
var b = get_remaining(_this__u8e3s4);
|
|
2944
2944
|
var countToDiscard = count <= b ? count : b;
|
|
2945
|
-
_this__u8e3s4.
|
|
2945
|
+
_this__u8e3s4.qo().op(countToDiscard);
|
|
2946
2946
|
return countToDiscard;
|
|
2947
2947
|
}
|
|
2948
2948
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2955,40 +2955,37 @@
|
|
|
2955
2955
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2956
2956
|
offset = offset === VOID ? 0 : offset;
|
|
2957
2957
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2958
|
-
var result = _this__u8e3s4.
|
|
2958
|
+
var result = _this__u8e3s4.pp(buffer, offset, offset + length | 0);
|
|
2959
2959
|
return result === -1 ? 0 : result;
|
|
2960
2960
|
}
|
|
2961
2961
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2962
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2962
|
+
charset = charset === VOID ? Charsets_getInstance().w1q_1 : charset;
|
|
2963
2963
|
max = max === VOID ? 2147483647 : max;
|
|
2964
|
-
if (charset.equals(Charsets_getInstance().
|
|
2964
|
+
if (charset.equals(Charsets_getInstance().w1q_1)) {
|
|
2965
2965
|
if (max === 2147483647)
|
|
2966
2966
|
return readString_0(_this__u8e3s4);
|
|
2967
|
-
var tmp0 = _this__u8e3s4.
|
|
2967
|
+
var tmp0 = _this__u8e3s4.qo().g1();
|
|
2968
2968
|
// Inline function 'kotlin.math.min' call
|
|
2969
2969
|
var b = fromInt(max);
|
|
2970
2970
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2971
2971
|
return readString(_this__u8e3s4, count);
|
|
2972
2972
|
}
|
|
2973
|
-
return decode(charset.
|
|
2973
|
+
return decode(charset.z1q(), _this__u8e3s4, max);
|
|
2974
2974
|
}
|
|
2975
2975
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2976
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2977
|
-
if (charset.equals(Charsets_getInstance().
|
|
2976
|
+
charset = charset === VOID ? Charsets_getInstance().w1q_1 : charset;
|
|
2977
|
+
if (charset.equals(Charsets_getInstance().w1q_1))
|
|
2978
2978
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2979
|
-
return encodeToByteArray_0(charset.
|
|
2979
|
+
return encodeToByteArray_0(charset.a1r(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2980
2980
|
}
|
|
2981
2981
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2982
2982
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2983
2983
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2984
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2985
|
-
if (charset === Charsets_getInstance().
|
|
2984
|
+
charset = charset === VOID ? Charsets_getInstance().w1q_1 : charset;
|
|
2985
|
+
if (charset === Charsets_getInstance().w1q_1) {
|
|
2986
2986
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2987
2987
|
}
|
|
2988
|
-
encodeToImpl(charset.
|
|
2989
|
-
}
|
|
2990
|
-
function readBytes_0(_this__u8e3s4) {
|
|
2991
|
-
return readByteArray_0(_this__u8e3s4);
|
|
2988
|
+
encodeToImpl(charset.a1r(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2992
2989
|
}
|
|
2993
2990
|
function get_ByteArrayPool() {
|
|
2994
2991
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2998,7 +2995,7 @@
|
|
|
2998
2995
|
function ByteArrayPool$1() {
|
|
2999
2996
|
DefaultPool.call(this, 128);
|
|
3000
2997
|
}
|
|
3001
|
-
protoOf(ByteArrayPool$1).
|
|
2998
|
+
protoOf(ByteArrayPool$1).e1r = function () {
|
|
3002
2999
|
return new Int8Array(4096);
|
|
3003
3000
|
};
|
|
3004
3001
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3012,21 +3009,21 @@
|
|
|
3012
3009
|
}
|
|
3013
3010
|
function NoPoolImpl() {
|
|
3014
3011
|
}
|
|
3015
|
-
protoOf(NoPoolImpl).
|
|
3012
|
+
protoOf(NoPoolImpl).m1r = function (instance) {
|
|
3016
3013
|
return Unit_instance;
|
|
3017
3014
|
};
|
|
3018
|
-
protoOf(NoPoolImpl).
|
|
3015
|
+
protoOf(NoPoolImpl).nv = function () {
|
|
3019
3016
|
return Unit_instance;
|
|
3020
3017
|
};
|
|
3021
3018
|
function Companion_2() {
|
|
3022
3019
|
}
|
|
3023
|
-
protoOf(Companion_2).
|
|
3020
|
+
protoOf(Companion_2).n1r = function (name) {
|
|
3024
3021
|
switch (name) {
|
|
3025
3022
|
case 'UTF-8':
|
|
3026
3023
|
case 'utf-8':
|
|
3027
3024
|
case 'UTF8':
|
|
3028
3025
|
case 'utf8':
|
|
3029
|
-
return Charsets_getInstance().
|
|
3026
|
+
return Charsets_getInstance().w1q_1;
|
|
3030
3027
|
}
|
|
3031
3028
|
var tmp;
|
|
3032
3029
|
var tmp_0;
|
|
@@ -3057,11 +3054,11 @@
|
|
|
3057
3054
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3058
3055
|
}
|
|
3059
3056
|
if (tmp) {
|
|
3060
|
-
return Charsets_getInstance().
|
|
3057
|
+
return Charsets_getInstance().x1q_1;
|
|
3061
3058
|
}
|
|
3062
3059
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3063
3060
|
};
|
|
3064
|
-
protoOf(Companion_2).
|
|
3061
|
+
protoOf(Companion_2).o1r = function (charset) {
|
|
3065
3062
|
var tmp;
|
|
3066
3063
|
switch (charset) {
|
|
3067
3064
|
case 'UTF-8':
|
|
@@ -3116,7 +3113,7 @@
|
|
|
3116
3113
|
return Companion_instance_3;
|
|
3117
3114
|
}
|
|
3118
3115
|
function Charset(_name) {
|
|
3119
|
-
this.
|
|
3116
|
+
this.y1q_1 = _name;
|
|
3120
3117
|
}
|
|
3121
3118
|
protoOf(Charset).equals = function (other) {
|
|
3122
3119
|
if (this === other)
|
|
@@ -3125,18 +3122,18 @@
|
|
|
3125
3122
|
return false;
|
|
3126
3123
|
if (!(other instanceof Charset))
|
|
3127
3124
|
THROW_CCE();
|
|
3128
|
-
return this.
|
|
3125
|
+
return this.y1q_1 === other.y1q_1;
|
|
3129
3126
|
};
|
|
3130
3127
|
protoOf(Charset).hashCode = function () {
|
|
3131
|
-
return getStringHashCode(this.
|
|
3128
|
+
return getStringHashCode(this.y1q_1);
|
|
3132
3129
|
};
|
|
3133
3130
|
protoOf(Charset).toString = function () {
|
|
3134
|
-
return this.
|
|
3131
|
+
return this.y1q_1;
|
|
3135
3132
|
};
|
|
3136
3133
|
function Charsets() {
|
|
3137
3134
|
Charsets_instance = this;
|
|
3138
|
-
this.
|
|
3139
|
-
this.
|
|
3135
|
+
this.w1q_1 = new CharsetImpl('UTF-8');
|
|
3136
|
+
this.x1q_1 = new CharsetImpl('ISO-8859-1');
|
|
3140
3137
|
}
|
|
3141
3138
|
var Charsets_instance;
|
|
3142
3139
|
function Charsets_getInstance() {
|
|
@@ -3145,27 +3142,27 @@
|
|
|
3145
3142
|
return Charsets_instance;
|
|
3146
3143
|
}
|
|
3147
3144
|
function CharsetDecoder(_charset) {
|
|
3148
|
-
this.
|
|
3145
|
+
this.p1r_1 = _charset;
|
|
3149
3146
|
}
|
|
3150
3147
|
function MalformedInputException(message) {
|
|
3151
3148
|
IOException_init_$Init$_0(message, this);
|
|
3152
3149
|
captureStack(this, MalformedInputException);
|
|
3153
3150
|
}
|
|
3154
3151
|
function get_name(_this__u8e3s4) {
|
|
3155
|
-
return _this__u8e3s4.
|
|
3152
|
+
return _this__u8e3s4.y1q_1;
|
|
3156
3153
|
}
|
|
3157
3154
|
function isSupported(_this__u8e3s4, name) {
|
|
3158
|
-
return Companion_instance_3.
|
|
3155
|
+
return Companion_instance_3.o1r(name);
|
|
3159
3156
|
}
|
|
3160
3157
|
function forName(_this__u8e3s4, name) {
|
|
3161
|
-
return Companion_instance_3.
|
|
3158
|
+
return Companion_instance_3.n1r(name);
|
|
3162
3159
|
}
|
|
3163
3160
|
function CharsetEncoder(_charset) {
|
|
3164
|
-
this.
|
|
3161
|
+
this.q1r_1 = _charset;
|
|
3165
3162
|
}
|
|
3166
3163
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3167
3164
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3168
|
-
var tmp0 = input.
|
|
3165
|
+
var tmp0 = input.qo().g1();
|
|
3169
3166
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3170
3167
|
var b = fromInt(max);
|
|
3171
3168
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3175,7 +3172,7 @@
|
|
|
3175
3172
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3176
3173
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3177
3174
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3178
|
-
tmp = decoder.
|
|
3175
|
+
tmp = decoder.r1r(array);
|
|
3179
3176
|
} catch ($p) {
|
|
3180
3177
|
var tmp_0;
|
|
3181
3178
|
if ($p instanceof Error) {
|
|
@@ -3197,11 +3194,11 @@
|
|
|
3197
3194
|
var message = 'Failed requirement.';
|
|
3198
3195
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3199
3196
|
}
|
|
3200
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3197
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().x1q_1)) {
|
|
3201
3198
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3202
3199
|
}
|
|
3203
3200
|
// Inline function 'kotlin.require' call
|
|
3204
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3201
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().w1q_1)) {
|
|
3205
3202
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3206
3203
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3207
3204
|
}
|
|
@@ -3211,7 +3208,7 @@
|
|
|
3211
3208
|
var result = encoder.encode(tmp$ret$5);
|
|
3212
3209
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3213
3210
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3214
|
-
dst.
|
|
3211
|
+
dst.dq(result);
|
|
3215
3212
|
return result.length;
|
|
3216
3213
|
}
|
|
3217
3214
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3222,17 +3219,17 @@
|
|
|
3222
3219
|
function CharsetImpl(name) {
|
|
3223
3220
|
Charset.call(this, name);
|
|
3224
3221
|
}
|
|
3225
|
-
protoOf(CharsetImpl).
|
|
3222
|
+
protoOf(CharsetImpl).a1r = function () {
|
|
3226
3223
|
return new CharsetEncoderImpl(this);
|
|
3227
3224
|
};
|
|
3228
|
-
protoOf(CharsetImpl).
|
|
3225
|
+
protoOf(CharsetImpl).z1q = function () {
|
|
3229
3226
|
return new CharsetDecoderImpl(this);
|
|
3230
3227
|
};
|
|
3231
3228
|
function get_charset(_this__u8e3s4) {
|
|
3232
|
-
return _this__u8e3s4.
|
|
3229
|
+
return _this__u8e3s4.p1r_1;
|
|
3233
3230
|
}
|
|
3234
3231
|
function get_charset_0(_this__u8e3s4) {
|
|
3235
|
-
return _this__u8e3s4.
|
|
3232
|
+
return _this__u8e3s4.q1r_1;
|
|
3236
3233
|
}
|
|
3237
3234
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3238
3235
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3251,39 +3248,39 @@
|
|
|
3251
3248
|
}
|
|
3252
3249
|
function CharsetEncoderImpl(charset) {
|
|
3253
3250
|
CharsetEncoder.call(this, charset);
|
|
3254
|
-
this.
|
|
3251
|
+
this.u1r_1 = charset;
|
|
3255
3252
|
}
|
|
3256
3253
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3257
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3254
|
+
return 'CharsetEncoderImpl(charset=' + this.u1r_1.toString() + ')';
|
|
3258
3255
|
};
|
|
3259
3256
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3260
|
-
return this.
|
|
3257
|
+
return this.u1r_1.hashCode();
|
|
3261
3258
|
};
|
|
3262
3259
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3263
3260
|
if (this === other)
|
|
3264
3261
|
return true;
|
|
3265
3262
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3266
3263
|
return false;
|
|
3267
|
-
if (!this.
|
|
3264
|
+
if (!this.u1r_1.equals(other.u1r_1))
|
|
3268
3265
|
return false;
|
|
3269
3266
|
return true;
|
|
3270
3267
|
};
|
|
3271
3268
|
function CharsetDecoderImpl(charset) {
|
|
3272
3269
|
CharsetDecoder.call(this, charset);
|
|
3273
|
-
this.
|
|
3270
|
+
this.w1r_1 = charset;
|
|
3274
3271
|
}
|
|
3275
3272
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3276
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3273
|
+
return 'CharsetDecoderImpl(charset=' + this.w1r_1.toString() + ')';
|
|
3277
3274
|
};
|
|
3278
3275
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3279
|
-
return this.
|
|
3276
|
+
return this.w1r_1.hashCode();
|
|
3280
3277
|
};
|
|
3281
3278
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3282
3279
|
if (this === other)
|
|
3283
3280
|
return true;
|
|
3284
3281
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3285
3282
|
return false;
|
|
3286
|
-
if (!this.
|
|
3283
|
+
if (!this.w1r_1.equals(other.w1r_1))
|
|
3287
3284
|
return false;
|
|
3288
3285
|
return true;
|
|
3289
3286
|
};
|
|
@@ -3317,10 +3314,10 @@
|
|
|
3317
3314
|
return this_0;
|
|
3318
3315
|
}
|
|
3319
3316
|
function toKtor$1($this_toKtor) {
|
|
3320
|
-
this.
|
|
3317
|
+
this.x1r_1 = $this_toKtor;
|
|
3321
3318
|
}
|
|
3322
|
-
protoOf(toKtor$1).
|
|
3323
|
-
return this.
|
|
3319
|
+
protoOf(toKtor$1).r1r = function (buffer) {
|
|
3320
|
+
return this.x1r_1.decode(buffer);
|
|
3324
3321
|
};
|
|
3325
3322
|
function get_ENCODING_ALIASES() {
|
|
3326
3323
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3333,7 +3330,7 @@
|
|
|
3333
3330
|
}
|
|
3334
3331
|
var REPLACEMENT;
|
|
3335
3332
|
function TextDecoderFallback(encoding, fatal) {
|
|
3336
|
-
this.
|
|
3333
|
+
this.y1r_1 = fatal;
|
|
3337
3334
|
// Inline function 'kotlin.text.trim' call
|
|
3338
3335
|
// Inline function 'kotlin.text.lowercase' call
|
|
3339
3336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3344,7 +3341,7 @@
|
|
|
3344
3341
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3345
3342
|
}
|
|
3346
3343
|
}
|
|
3347
|
-
protoOf(TextDecoderFallback).
|
|
3344
|
+
protoOf(TextDecoderFallback).r1r = function (buffer) {
|
|
3348
3345
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3349
3346
|
var builder = new Buffer();
|
|
3350
3347
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3360,7 +3357,7 @@
|
|
|
3360
3357
|
var point = toCodePoint(byte);
|
|
3361
3358
|
if (point < 0) {
|
|
3362
3359
|
// Inline function 'kotlin.check' call
|
|
3363
|
-
if (!!this.
|
|
3360
|
+
if (!!this.y1r_1) {
|
|
3364
3361
|
var message = 'Invalid character: ' + point;
|
|
3365
3362
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3366
3363
|
}
|
|
@@ -3368,9 +3365,9 @@
|
|
|
3368
3365
|
continue $l$loop;
|
|
3369
3366
|
}
|
|
3370
3367
|
if (point > 255) {
|
|
3371
|
-
builder.
|
|
3368
|
+
builder.kq(toByte(point >> 8));
|
|
3372
3369
|
}
|
|
3373
|
-
builder.
|
|
3370
|
+
builder.kq(toByte(point & 255));
|
|
3374
3371
|
}
|
|
3375
3372
|
while (inductionVariable < last);
|
|
3376
3373
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3400,7 +3397,7 @@
|
|
|
3400
3397
|
return false;
|
|
3401
3398
|
}
|
|
3402
3399
|
function ioDispatcher() {
|
|
3403
|
-
return Dispatchers_getInstance().
|
|
3400
|
+
return Dispatchers_getInstance().r12_1;
|
|
3404
3401
|
}
|
|
3405
3402
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3406
3403
|
if (fromIndex >= toIndex)
|
|
@@ -3416,7 +3413,7 @@
|
|
|
3416
3413
|
if (character > 255) {
|
|
3417
3414
|
failedToMapError(character);
|
|
3418
3415
|
}
|
|
3419
|
-
dst.
|
|
3416
|
+
dst.kq(toByte(character));
|
|
3420
3417
|
}
|
|
3421
3418
|
while (inductionVariable < toIndex);
|
|
3422
3419
|
return toIndex - fromIndex | 0;
|
|
@@ -3438,66 +3435,66 @@
|
|
|
3438
3435
|
}
|
|
3439
3436
|
}
|
|
3440
3437
|
function DefaultPool(capacity) {
|
|
3441
|
-
this.
|
|
3438
|
+
this.f1r_1 = capacity;
|
|
3442
3439
|
var tmp = this;
|
|
3443
3440
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3444
|
-
var size = this.
|
|
3445
|
-
tmp.
|
|
3446
|
-
this.
|
|
3441
|
+
var size = this.f1r_1;
|
|
3442
|
+
tmp.g1r_1 = Array(size);
|
|
3443
|
+
this.h1r_1 = 0;
|
|
3447
3444
|
}
|
|
3448
|
-
protoOf(DefaultPool).
|
|
3445
|
+
protoOf(DefaultPool).i1r = function (instance) {
|
|
3449
3446
|
};
|
|
3450
|
-
protoOf(DefaultPool).
|
|
3447
|
+
protoOf(DefaultPool).j1r = function (instance) {
|
|
3451
3448
|
return instance;
|
|
3452
3449
|
};
|
|
3453
|
-
protoOf(DefaultPool).
|
|
3450
|
+
protoOf(DefaultPool).k1r = function (instance) {
|
|
3454
3451
|
};
|
|
3455
|
-
protoOf(DefaultPool).
|
|
3456
|
-
if (this.
|
|
3457
|
-
return this.
|
|
3458
|
-
this.
|
|
3459
|
-
var idx = this.
|
|
3460
|
-
var tmp = this.
|
|
3452
|
+
protoOf(DefaultPool).l1r = function () {
|
|
3453
|
+
if (this.h1r_1 === 0)
|
|
3454
|
+
return this.e1r();
|
|
3455
|
+
this.h1r_1 = this.h1r_1 - 1 | 0;
|
|
3456
|
+
var idx = this.h1r_1;
|
|
3457
|
+
var tmp = this.g1r_1[idx];
|
|
3461
3458
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3462
|
-
this.
|
|
3463
|
-
return this.
|
|
3459
|
+
this.g1r_1[idx] = null;
|
|
3460
|
+
return this.j1r(instance);
|
|
3464
3461
|
};
|
|
3465
|
-
protoOf(DefaultPool).
|
|
3466
|
-
this.
|
|
3467
|
-
if (this.
|
|
3468
|
-
this.
|
|
3462
|
+
protoOf(DefaultPool).m1r = function (instance) {
|
|
3463
|
+
this.k1r(instance);
|
|
3464
|
+
if (this.h1r_1 === this.f1r_1) {
|
|
3465
|
+
this.i1r(instance);
|
|
3469
3466
|
} else {
|
|
3470
|
-
var _unary__edvuaz = this.
|
|
3471
|
-
this.
|
|
3472
|
-
this.
|
|
3467
|
+
var _unary__edvuaz = this.h1r_1;
|
|
3468
|
+
this.h1r_1 = _unary__edvuaz + 1 | 0;
|
|
3469
|
+
this.g1r_1[_unary__edvuaz] = instance;
|
|
3473
3470
|
}
|
|
3474
3471
|
};
|
|
3475
|
-
protoOf(DefaultPool).
|
|
3472
|
+
protoOf(DefaultPool).nv = function () {
|
|
3476
3473
|
var inductionVariable = 0;
|
|
3477
|
-
var last = this.
|
|
3474
|
+
var last = this.h1r_1;
|
|
3478
3475
|
if (inductionVariable < last)
|
|
3479
3476
|
do {
|
|
3480
3477
|
var i = inductionVariable;
|
|
3481
3478
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3482
|
-
var tmp = this.
|
|
3479
|
+
var tmp = this.g1r_1[i];
|
|
3483
3480
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3484
|
-
this.
|
|
3485
|
-
this.
|
|
3481
|
+
this.g1r_1[i] = null;
|
|
3482
|
+
this.i1r(instance);
|
|
3486
3483
|
}
|
|
3487
3484
|
while (inductionVariable < last);
|
|
3488
|
-
this.
|
|
3485
|
+
this.h1r_1 = 0;
|
|
3489
3486
|
};
|
|
3490
3487
|
//region block: post-declaration
|
|
3491
|
-
protoOf(Read).
|
|
3492
|
-
protoOf(Read).
|
|
3493
|
-
protoOf(Write).
|
|
3494
|
-
protoOf(Write).
|
|
3495
|
-
protoOf(ByteChannel).
|
|
3496
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3497
|
-
protoOf(CountedByteReadChannel).
|
|
3498
|
-
protoOf(SourceByteReadChannel).
|
|
3499
|
-
protoOf(DefaultPool).
|
|
3500
|
-
protoOf(NoPoolImpl).
|
|
3488
|
+
protoOf(Read).v1e = resume;
|
|
3489
|
+
protoOf(Read).w1e = resume_0;
|
|
3490
|
+
protoOf(Write).v1e = resume;
|
|
3491
|
+
protoOf(Write).w1e = resume_0;
|
|
3492
|
+
protoOf(ByteChannel).b1h = awaitContent$default;
|
|
3493
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1h = awaitContent$default;
|
|
3494
|
+
protoOf(CountedByteReadChannel).b1h = awaitContent$default;
|
|
3495
|
+
protoOf(SourceByteReadChannel).b1h = awaitContent$default;
|
|
3496
|
+
protoOf(DefaultPool).j4 = close;
|
|
3497
|
+
protoOf(NoPoolImpl).j4 = close;
|
|
3501
3498
|
//endregion
|
|
3502
3499
|
//region block: init
|
|
3503
3500
|
Empty_instance = new Empty();
|
|
@@ -3530,30 +3527,28 @@
|
|
|
3530
3527
|
_.$_$.w = build;
|
|
3531
3528
|
_.$_$.x = canRead;
|
|
3532
3529
|
_.$_$.y = discard_0;
|
|
3533
|
-
_.$_$.z =
|
|
3534
|
-
_.$_$.a1 =
|
|
3535
|
-
_.$_$.b1 =
|
|
3536
|
-
_.$_$.c1 =
|
|
3537
|
-
_.$_$.d1 =
|
|
3538
|
-
_.$_$.e1 =
|
|
3539
|
-
_.$_$.f1 =
|
|
3540
|
-
_.$_$.g1 =
|
|
3541
|
-
_.$_$.h1 =
|
|
3542
|
-
_.$_$.i1 =
|
|
3543
|
-
_.$_$.j1 =
|
|
3544
|
-
_.$_$.k1 =
|
|
3545
|
-
_.$_$.l1 =
|
|
3546
|
-
_.$_$.m1 =
|
|
3547
|
-
_.$_$.n1 =
|
|
3548
|
-
_.$_$.o1 =
|
|
3549
|
-
_.$_$.p1 =
|
|
3550
|
-
_.$_$.q1 =
|
|
3551
|
-
_.$_$.r1 =
|
|
3552
|
-
_.$_$.s1 =
|
|
3553
|
-
_.$_$.t1 =
|
|
3554
|
-
_.$_$.u1 =
|
|
3555
|
-
_.$_$.v1 = readText;
|
|
3556
|
-
_.$_$.w1 = writer;
|
|
3530
|
+
_.$_$.z = readText_0;
|
|
3531
|
+
_.$_$.a1 = get_remaining;
|
|
3532
|
+
_.$_$.b1 = get_size;
|
|
3533
|
+
_.$_$.c1 = takeWhile;
|
|
3534
|
+
_.$_$.d1 = toByteArray_0;
|
|
3535
|
+
_.$_$.e1 = writeFully_0;
|
|
3536
|
+
_.$_$.f1 = writeText;
|
|
3537
|
+
_.$_$.g1 = get_ByteArrayPool;
|
|
3538
|
+
_.$_$.h1 = DefaultPool;
|
|
3539
|
+
_.$_$.i1 = NoPoolImpl;
|
|
3540
|
+
_.$_$.j1 = ByteChannel;
|
|
3541
|
+
_.$_$.k1 = ByteReadChannel;
|
|
3542
|
+
_.$_$.l1 = ByteReadChannel_1;
|
|
3543
|
+
_.$_$.m1 = ClosedByteChannelException;
|
|
3544
|
+
_.$_$.n1 = WriterScope;
|
|
3545
|
+
_.$_$.o1 = cancel_0;
|
|
3546
|
+
_.$_$.p1 = close_0;
|
|
3547
|
+
_.$_$.q1 = counted;
|
|
3548
|
+
_.$_$.r1 = invokeOnCompletion;
|
|
3549
|
+
_.$_$.s1 = ioDispatcher;
|
|
3550
|
+
_.$_$.t1 = readText;
|
|
3551
|
+
_.$_$.u1 = writer;
|
|
3557
3552
|
//endregion
|
|
3558
3553
|
return _;
|
|
3559
3554
|
}));
|