@solibo/home-api 1.1.110 → 1.1.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +777 -778
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +1329 -1746
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2004 -1993
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +42 -42
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +629 -625
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1934 -1944
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1497 -1496
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation.mjs +142 -142
- package/ktor-ktor-client-content-negotiation.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +2181 -2080
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +7 -7
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +380 -380
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +728 -728
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +658 -658
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +147 -146
- package/ktor-ktor-serialization-kotlinx.mjs.map +1 -1
- package/ktor-ktor-serialization.mjs +65 -66
- package/ktor-ktor-serialization.mjs.map +1 -1
- package/ktor-ktor-utils.mjs +1354 -788
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +425 -427
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +152 -151
- package/solibo-sdk-sdk-home-api.mjs +48826 -48700
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-io.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Companion_instance1xjg859pd52fi as Companion_instance,
|
|
3
|
+
Unit_instancev9v8hjid95df as Unit_instance,
|
|
4
|
+
_Result___init__impl__xyqfz823vatsdepqb9n as _Result___init__impl__xyqfz8,
|
|
5
5
|
protoOf180f3jzyo7rfj as protoOf,
|
|
6
6
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
7
7
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -23,34 +23,34 @@ import {
|
|
|
23
23
|
add2suhfggl4zvkk as add,
|
|
24
24
|
intercepted2ogpsikxxj4u0 as intercepted,
|
|
25
25
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
26
|
-
|
|
26
|
+
returnIfSuspended2cp16c6mekw0k as returnIfSuspended,
|
|
27
27
|
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
|
|
28
28
|
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
29
29
|
convertToInty04h231mmjoh as convertToInt,
|
|
30
30
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
31
|
-
IllegalStateException_init_$Init$
|
|
31
|
+
IllegalStateException_init_$Init$3r27qucv8qq4u as IllegalStateException_init_$Init$,
|
|
32
32
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
33
33
|
replace3le3ie7l9k8aq as replace,
|
|
34
34
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
35
35
|
get_ONEazvfdh9ju3d4 as get_ONE,
|
|
36
36
|
toString1pkumu07cwy4m as toString_1,
|
|
37
|
-
IllegalArgumentException_init_$Create$
|
|
37
|
+
IllegalArgumentException_init_$Create$i4126l9nkbuo as IllegalArgumentException_init_$Create$,
|
|
38
38
|
subtract2orl8z9upxd9l as subtract,
|
|
39
|
-
IllegalStateException_init_$Create$
|
|
40
|
-
|
|
39
|
+
IllegalStateException_init_$Create$1h4bcfod21ri0 as IllegalStateException_init_$Create$,
|
|
40
|
+
EmptyCoroutineContext_instance101eax45qp7ot as EmptyCoroutineContext_instance,
|
|
41
41
|
Continuation1aa2oekvx7jm7 as Continuation,
|
|
42
42
|
initMetadataForFunctionReferencen3g5fpj34t8u as initMetadataForFunctionReference,
|
|
43
43
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
44
|
-
CancellationException_init_$Create$
|
|
44
|
+
CancellationException_init_$Create$3ch6sfo7bilrl as CancellationException_init_$Create$,
|
|
45
45
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
46
46
|
Enum3alwj03lh1n41 as Enum,
|
|
47
|
-
ArrayList_init_$Create$
|
|
47
|
+
ArrayList_init_$Create$37gc04va6yfo2 as ArrayList_init_$Create$,
|
|
48
48
|
listOf1jh22dvmctj1r as listOf,
|
|
49
|
-
StringBuilder_init_$Create$
|
|
49
|
+
StringBuilder_init_$Create$3pdhqn0ol6juo as StringBuilder_init_$Create$,
|
|
50
50
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
51
51
|
encodeToByteArray22651fhg4p67t as encodeToByteArray,
|
|
52
52
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
53
|
-
|
|
53
|
+
_Char___init__impl__6a9atx2gndcvjvc5pke as _Char___init__impl__6a9atx,
|
|
54
54
|
replaceqbix900hl8kl as replace_0,
|
|
55
55
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
56
56
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
decodeToString1x4faah2liw2p as decodeToString,
|
|
61
61
|
setOf45ia9pnfhe90 as setOf,
|
|
62
62
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
63
|
-
|
|
63
|
+
Char__toInt_impl_vasixdnyockrdnmht5 as Char__toInt_impl_vasixd,
|
|
64
64
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
65
65
|
import {
|
|
66
66
|
CancellableContinuationImpl1cx201opicavg as CancellableContinuationImpl,
|
|
@@ -71,22 +71,22 @@ import {
|
|
|
71
71
|
Job13y4jkazwjho0 as Job,
|
|
72
72
|
cancel1xim2hrvjmwpn as cancel,
|
|
73
73
|
CopyableThrowable1mvc99jcyvivf as CopyableThrowable,
|
|
74
|
-
|
|
74
|
+
Dispatchers_getInstance2p2r3ndn98nn as Dispatchers_getInstance,
|
|
75
75
|
} from './kotlinx-coroutines-core.mjs';
|
|
76
76
|
import {
|
|
77
77
|
Buffergs925ekssbch as Buffer,
|
|
78
|
-
IOException_init_$Create$
|
|
78
|
+
IOException_init_$Create$1sfdrtkx2q59o as IOException_init_$Create$,
|
|
79
79
|
indexOf29nspdgx2e3ap as indexOf,
|
|
80
|
-
EOFException_init_$Create$
|
|
80
|
+
EOFException_init_$Create$1bfeevmh0hfbn as EOFException_init_$Create$,
|
|
81
81
|
readString3v6duspiz33tv as readString,
|
|
82
82
|
readByteString2hnsbql6t4ads as readByteString,
|
|
83
83
|
readString2nvggcfaijfhd as readString_0,
|
|
84
84
|
IOException1wyutdmfe71nu as IOException,
|
|
85
|
-
IOException_init_$Init$
|
|
86
|
-
IOException_init_$Create$
|
|
85
|
+
IOException_init_$Init$2ln63wnwl6kd2 as IOException_init_$Init$,
|
|
86
|
+
IOException_init_$Create$1h61d73rydu58 as IOException_init_$Create$_0,
|
|
87
87
|
readByteArray1fhzfwi2j014k as readByteArray,
|
|
88
88
|
writeString33ca4btrgctw7 as writeString,
|
|
89
|
-
IOException_init_$Init$
|
|
89
|
+
IOException_init_$Init$2t3b4cq5mf3nb as IOException_init_$Init$_0,
|
|
90
90
|
readByteArray1ri21h2rciakw as readByteArray_0,
|
|
91
91
|
} from './kotlinx-io-kotlinx-io-core.mjs';
|
|
92
92
|
import { atomic$ref$130aurmcwdfdf1 as atomic$ref$1 } from './kotlinx-atomicfu.mjs';
|
|
@@ -98,21 +98,21 @@ initMetadataForCompanion(Companion);
|
|
|
98
98
|
initMetadataForObject(Empty, 'Empty');
|
|
99
99
|
initMetadataForClass(Closed, 'Closed');
|
|
100
100
|
function resume() {
|
|
101
|
-
return this.
|
|
101
|
+
return this.l1e().u8(Companion_getInstance().i1e_1);
|
|
102
102
|
}
|
|
103
103
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
104
|
+
var tmp = this.l1e();
|
|
105
105
|
var tmp_0;
|
|
106
106
|
if (throwable == null) {
|
|
107
107
|
tmp_0 = null;
|
|
108
108
|
} else {
|
|
109
109
|
// Inline function 'kotlin.let' call
|
|
110
110
|
// Inline function 'kotlin.Companion.failure' call
|
|
111
|
-
var tmp$ret$
|
|
112
|
-
tmp_0 = new Result(tmp$ret$
|
|
111
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(throwable));
|
|
112
|
+
tmp_0 = new Result(tmp$ret$0);
|
|
113
113
|
}
|
|
114
114
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.u8(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
115
|
+
return tmp.u8(tmp1_elvis_lhs == null ? Companion_getInstance().i1e_1 : tmp1_elvis_lhs.yl_1);
|
|
116
116
|
}
|
|
117
117
|
initMetadataForInterface(Task, 'Task');
|
|
118
118
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -122,7 +122,7 @@ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
|
122
122
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
123
|
function awaitContent$default(min, $completion, $super) {
|
|
124
124
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
125
|
+
return $super === VOID ? this.s1g(min, $completion) : $super.s1g.call(this, min, $completion);
|
|
126
126
|
}
|
|
127
127
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
128
|
function get_autoFlush() {
|
|
@@ -169,7 +169,7 @@ initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID,
|
|
|
169
169
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
170
170
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
171
171
|
function close() {
|
|
172
|
-
this.
|
|
172
|
+
this.fv();
|
|
173
173
|
}
|
|
174
174
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
175
175
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -188,10 +188,10 @@ initMetadataForClass(TextDecoderFallback, 'TextDecoderFallback');
|
|
|
188
188
|
//endregion
|
|
189
189
|
function Companion() {
|
|
190
190
|
Companion_instance_0 = this;
|
|
191
|
-
this.
|
|
191
|
+
this.h1e_1 = new Closed(null);
|
|
192
192
|
var tmp = this;
|
|
193
193
|
// Inline function 'kotlin.Companion.success' call
|
|
194
|
-
tmp.
|
|
194
|
+
tmp.i1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
195
195
|
}
|
|
196
196
|
var Companion_instance_0;
|
|
197
197
|
function Companion_getInstance() {
|
|
@@ -219,87 +219,87 @@ function Empty_getInstance() {
|
|
|
219
219
|
return Empty_instance;
|
|
220
220
|
}
|
|
221
221
|
function Closed(cause) {
|
|
222
|
-
this.
|
|
222
|
+
this.j1e_1 = cause;
|
|
223
223
|
}
|
|
224
224
|
protoOf(Closed).toString = function () {
|
|
225
|
-
return 'Closed(cause=' + toString(this.
|
|
225
|
+
return 'Closed(cause=' + toString(this.j1e_1) + ')';
|
|
226
226
|
};
|
|
227
227
|
protoOf(Closed).hashCode = function () {
|
|
228
|
-
return this.
|
|
228
|
+
return this.j1e_1 == null ? 0 : hashCode(this.j1e_1);
|
|
229
229
|
};
|
|
230
230
|
protoOf(Closed).equals = function (other) {
|
|
231
231
|
if (this === other)
|
|
232
232
|
return true;
|
|
233
233
|
if (!(other instanceof Closed))
|
|
234
234
|
return false;
|
|
235
|
-
if (!equals(this.
|
|
235
|
+
if (!equals(this.j1e_1, other.j1e_1))
|
|
236
236
|
return false;
|
|
237
237
|
return true;
|
|
238
238
|
};
|
|
239
239
|
function Task() {
|
|
240
240
|
}
|
|
241
241
|
function Read(continuation) {
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
242
|
+
this.p1e_1 = continuation;
|
|
243
|
+
this.q1e_1 = null;
|
|
244
244
|
if (get_DEVELOPMENT_MODE()) {
|
|
245
245
|
var tmp = this;
|
|
246
246
|
// Inline function 'kotlin.also' call
|
|
247
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
247
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.p1e_1), 16));
|
|
248
248
|
stackTraceToString(this_0);
|
|
249
|
-
tmp.
|
|
249
|
+
tmp.q1e_1 = this_0;
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
protoOf(Read).
|
|
253
|
-
return this.
|
|
252
|
+
protoOf(Read).l1e = function () {
|
|
253
|
+
return this.p1e_1;
|
|
254
254
|
};
|
|
255
|
-
protoOf(Read).
|
|
256
|
-
return this.
|
|
255
|
+
protoOf(Read).k1e = function () {
|
|
256
|
+
return this.q1e_1;
|
|
257
257
|
};
|
|
258
|
-
protoOf(Read).
|
|
258
|
+
protoOf(Read).m1e = function () {
|
|
259
259
|
return 'read';
|
|
260
260
|
};
|
|
261
261
|
function Write(continuation) {
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
262
|
+
this.r1e_1 = continuation;
|
|
263
|
+
this.s1e_1 = null;
|
|
264
264
|
if (get_DEVELOPMENT_MODE()) {
|
|
265
265
|
var tmp = this;
|
|
266
266
|
// Inline function 'kotlin.also' call
|
|
267
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
267
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.r1e_1), 16));
|
|
268
268
|
stackTraceToString(this_0);
|
|
269
|
-
tmp.
|
|
269
|
+
tmp.s1e_1 = this_0;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
protoOf(Write).
|
|
273
|
-
return this.
|
|
272
|
+
protoOf(Write).l1e = function () {
|
|
273
|
+
return this.r1e_1;
|
|
274
274
|
};
|
|
275
|
-
protoOf(Write).
|
|
276
|
-
return this.
|
|
275
|
+
protoOf(Write).k1e = function () {
|
|
276
|
+
return this.s1e_1;
|
|
277
277
|
};
|
|
278
|
-
protoOf(Write).
|
|
278
|
+
protoOf(Write).m1e = function () {
|
|
279
279
|
return 'write';
|
|
280
280
|
};
|
|
281
281
|
function moveFlushToReadBuffer($this) {
|
|
282
282
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
283
|
-
$this.
|
|
284
|
-
$this.
|
|
285
|
-
$this.
|
|
283
|
+
$this.w1e_1;
|
|
284
|
+
$this.u1e_1.mp($this.y1e_1);
|
|
285
|
+
$this.v1e_1 = 0;
|
|
286
286
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
287
|
-
var current = $this.
|
|
287
|
+
var current = $this.x1e_1.kotlinx$atomicfu$value;
|
|
288
288
|
var tmp;
|
|
289
289
|
if (current instanceof Write) {
|
|
290
|
-
tmp = $this.
|
|
290
|
+
tmp = $this.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
291
291
|
} else {
|
|
292
292
|
tmp = false;
|
|
293
293
|
}
|
|
294
294
|
if (tmp) {
|
|
295
|
-
current.
|
|
295
|
+
current.n1e();
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
function closeSlot($this, cause) {
|
|
299
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
300
|
-
var continuation = $this.
|
|
299
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().h1e_1;
|
|
300
|
+
var continuation = $this.x1e_1.atomicfu$getAndSet(closeContinuation);
|
|
301
301
|
if (isInterface(continuation, Task)) {
|
|
302
|
-
continuation.
|
|
302
|
+
continuation.o1e(cause);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -318,8 +318,8 @@ function ClosedWriteChannelException$_init_$ref_ef15ty() {
|
|
|
318
318
|
}
|
|
319
319
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
320
320
|
CoroutineImpl.call(this, resultContinuation);
|
|
321
|
-
this.
|
|
322
|
-
this.
|
|
321
|
+
this.j1f_1 = _this__u8e3s4;
|
|
322
|
+
this.k1f_1 = min;
|
|
323
323
|
}
|
|
324
324
|
protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
325
325
|
var suspendResult = this.l8_1;
|
|
@@ -329,39 +329,39 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
|
329
329
|
switch (tmp) {
|
|
330
330
|
case 0:
|
|
331
331
|
this.k8_1 = 4;
|
|
332
|
-
rethrowCloseCauseIfNeeded(this.
|
|
333
|
-
if (this.
|
|
332
|
+
rethrowCloseCauseIfNeeded(this.j1f_1);
|
|
333
|
+
if (this.j1f_1.y1e_1.g1() >= fromInt(this.k1f_1))
|
|
334
334
|
return true;
|
|
335
|
-
this.
|
|
335
|
+
this.l1f_1 = this.j1f_1;
|
|
336
336
|
this.j8_1 = 1;
|
|
337
337
|
continue $sm;
|
|
338
338
|
case 1:
|
|
339
|
-
if (!(add(numberToLong(this.
|
|
339
|
+
if (!(add(numberToLong(this.j1f_1.v1e_1), this.j1f_1.y1e_1.g1()) < fromInt(this.k1f_1) && this.j1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
|
|
340
340
|
this.j8_1 = 3;
|
|
341
341
|
continue $sm;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
this.j8_1 = 2;
|
|
345
345
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
346
|
-
cancellable.
|
|
347
|
-
var tmp0 = this.
|
|
346
|
+
cancellable.iw();
|
|
347
|
+
var tmp0 = this.l1f_1;
|
|
348
348
|
var tmp2 = new Read(cancellable);
|
|
349
349
|
l$ret$1: do {
|
|
350
|
-
var previous = tmp0.
|
|
350
|
+
var previous = tmp0.x1e_1.kotlinx$atomicfu$value;
|
|
351
351
|
if (!(previous instanceof Closed)) {
|
|
352
|
-
if (!tmp0.
|
|
353
|
-
tmp2.
|
|
352
|
+
if (!tmp0.x1e_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
353
|
+
tmp2.n1e();
|
|
354
354
|
break l$ret$1;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
if (previous instanceof Read) {
|
|
358
|
-
previous.
|
|
358
|
+
previous.o1e(new ConcurrentIOException(tmp2.m1e(), previous.k1e()));
|
|
359
359
|
} else {
|
|
360
360
|
if (isInterface(previous, Task)) {
|
|
361
|
-
previous.
|
|
361
|
+
previous.n1e();
|
|
362
362
|
} else {
|
|
363
363
|
if (previous instanceof Closed) {
|
|
364
|
-
tmp2.
|
|
364
|
+
tmp2.o1e(previous.j1e_1);
|
|
365
365
|
break l$ret$1;
|
|
366
366
|
} else {
|
|
367
367
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -370,21 +370,21 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
if (!(add(numberToLong(this.
|
|
374
|
-
var current = tmp0.
|
|
373
|
+
if (!(add(numberToLong(this.j1f_1.v1e_1), this.j1f_1.y1e_1.g1()) < fromInt(this.k1f_1) && this.j1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
|
|
374
|
+
var current = tmp0.x1e_1.kotlinx$atomicfu$value;
|
|
375
375
|
var tmp_0;
|
|
376
376
|
if (current instanceof Read) {
|
|
377
|
-
tmp_0 = tmp0.
|
|
377
|
+
tmp_0 = tmp0.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
378
378
|
} else {
|
|
379
379
|
tmp_0 = false;
|
|
380
380
|
}
|
|
381
381
|
if (tmp_0) {
|
|
382
|
-
current.
|
|
382
|
+
current.n1e();
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
while (false);
|
|
387
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
387
|
+
suspendResult = returnIfSuspended(cancellable.qw(), this);
|
|
388
388
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
389
389
|
return suspendResult;
|
|
390
390
|
}
|
|
@@ -394,11 +394,11 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
|
394
394
|
this.j8_1 = 1;
|
|
395
395
|
continue $sm;
|
|
396
396
|
case 3:
|
|
397
|
-
if (this.
|
|
398
|
-
moveFlushToReadBuffer(this.
|
|
397
|
+
if (this.j1f_1.y1e_1.g1() < 1048576n) {
|
|
398
|
+
moveFlushToReadBuffer(this.j1f_1);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
return this.
|
|
401
|
+
return this.j1f_1.y1e_1.g1() >= fromInt(this.k1f_1);
|
|
402
402
|
case 4:
|
|
403
403
|
throw this.m8_1;
|
|
404
404
|
}
|
|
@@ -415,7 +415,7 @@ protoOf($awaitContentCOROUTINE$).r8 = function () {
|
|
|
415
415
|
};
|
|
416
416
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
417
417
|
CoroutineImpl.call(this, resultContinuation);
|
|
418
|
-
this.
|
|
418
|
+
this.u1f_1 = _this__u8e3s4;
|
|
419
419
|
}
|
|
420
420
|
protoOf($flushCOROUTINE$).r8 = function () {
|
|
421
421
|
var suspendResult = this.l8_1;
|
|
@@ -425,40 +425,40 @@ protoOf($flushCOROUTINE$).r8 = function () {
|
|
|
425
425
|
switch (tmp) {
|
|
426
426
|
case 0:
|
|
427
427
|
this.k8_1 = 4;
|
|
428
|
-
rethrowCloseCauseIfNeeded(this.
|
|
429
|
-
this.
|
|
430
|
-
if (this.
|
|
428
|
+
rethrowCloseCauseIfNeeded(this.u1f_1);
|
|
429
|
+
this.u1f_1.w1f();
|
|
430
|
+
if (this.u1f_1.v1e_1 < 1048576)
|
|
431
431
|
return Unit_instance;
|
|
432
|
-
this.
|
|
432
|
+
this.v1f_1 = this.u1f_1;
|
|
433
433
|
this.j8_1 = 1;
|
|
434
434
|
continue $sm;
|
|
435
435
|
case 1:
|
|
436
|
-
if (!(this.
|
|
436
|
+
if (!(this.u1f_1.v1e_1 >= 1048576 && this.u1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
|
|
437
437
|
this.j8_1 = 3;
|
|
438
438
|
continue $sm;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
this.j8_1 = 2;
|
|
442
442
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
443
|
-
cancellable.
|
|
444
|
-
var tmp0 = this.
|
|
443
|
+
cancellable.iw();
|
|
444
|
+
var tmp0 = this.v1f_1;
|
|
445
445
|
var tmp2 = new Write(cancellable);
|
|
446
446
|
l$ret$1: do {
|
|
447
|
-
var previous = tmp0.
|
|
447
|
+
var previous = tmp0.x1e_1.kotlinx$atomicfu$value;
|
|
448
448
|
if (!(previous instanceof Closed)) {
|
|
449
|
-
if (!tmp0.
|
|
450
|
-
tmp2.
|
|
449
|
+
if (!tmp0.x1e_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
450
|
+
tmp2.n1e();
|
|
451
451
|
break l$ret$1;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
if (previous instanceof Write) {
|
|
455
|
-
previous.
|
|
455
|
+
previous.o1e(new ConcurrentIOException(tmp2.m1e(), previous.k1e()));
|
|
456
456
|
} else {
|
|
457
457
|
if (isInterface(previous, Task)) {
|
|
458
|
-
previous.
|
|
458
|
+
previous.n1e();
|
|
459
459
|
} else {
|
|
460
460
|
if (previous instanceof Closed) {
|
|
461
|
-
tmp2.
|
|
461
|
+
tmp2.o1e(previous.j1e_1);
|
|
462
462
|
break l$ret$1;
|
|
463
463
|
} else {
|
|
464
464
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -467,21 +467,21 @@ protoOf($flushCOROUTINE$).r8 = function () {
|
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
if (!(this.
|
|
471
|
-
var current = tmp0.
|
|
470
|
+
if (!(this.u1f_1.v1e_1 >= 1048576 && this.u1f_1.a1f_1.kotlinx$atomicfu$value == null)) {
|
|
471
|
+
var current = tmp0.x1e_1.kotlinx$atomicfu$value;
|
|
472
472
|
var tmp_0;
|
|
473
473
|
if (current instanceof Write) {
|
|
474
|
-
tmp_0 = tmp0.
|
|
474
|
+
tmp_0 = tmp0.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
475
475
|
} else {
|
|
476
476
|
tmp_0 = false;
|
|
477
477
|
}
|
|
478
478
|
if (tmp_0) {
|
|
479
|
-
current.
|
|
479
|
+
current.n1e();
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
while (false);
|
|
484
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
484
|
+
suspendResult = returnIfSuspended(cancellable.qw(), this);
|
|
485
485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
486
486
|
return suspendResult;
|
|
487
487
|
}
|
|
@@ -508,7 +508,7 @@ protoOf($flushCOROUTINE$).r8 = function () {
|
|
|
508
508
|
};
|
|
509
509
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
510
510
|
CoroutineImpl.call(this, resultContinuation);
|
|
511
|
-
this.
|
|
511
|
+
this.f1g_1 = _this__u8e3s4;
|
|
512
512
|
}
|
|
513
513
|
protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
514
514
|
var suspendResult = this.l8_1;
|
|
@@ -518,11 +518,11 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
518
518
|
switch (tmp) {
|
|
519
519
|
case 0:
|
|
520
520
|
this.k8_1 = 4;
|
|
521
|
-
var this_0 = this.
|
|
521
|
+
var this_0 = this.f1g_1;
|
|
522
522
|
this.k8_1 = 2;
|
|
523
|
-
this.
|
|
523
|
+
this.h1g_1 = Companion_instance;
|
|
524
524
|
this.j8_1 = 1;
|
|
525
|
-
suspendResult = this_0.
|
|
525
|
+
suspendResult = this_0.i1g(this);
|
|
526
526
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
527
527
|
return suspendResult;
|
|
528
528
|
}
|
|
@@ -530,8 +530,8 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
530
530
|
continue $sm;
|
|
531
531
|
case 1:
|
|
532
532
|
var tmp_0 = this;
|
|
533
|
-
this.
|
|
534
|
-
tmp_0.
|
|
533
|
+
this.h1g_1;
|
|
534
|
+
tmp_0.g1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
535
535
|
this.k8_1 = 4;
|
|
536
536
|
this.j8_1 = 3;
|
|
537
537
|
continue $sm;
|
|
@@ -541,7 +541,7 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
541
541
|
if (tmp_1 instanceof Error) {
|
|
542
542
|
var e = this.m8_1;
|
|
543
543
|
var tmp_2 = this;
|
|
544
|
-
tmp_2.
|
|
544
|
+
tmp_2.g1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
545
545
|
this.j8_1 = 3;
|
|
546
546
|
continue $sm;
|
|
547
547
|
} else {
|
|
@@ -550,9 +550,9 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
550
550
|
|
|
551
551
|
case 3:
|
|
552
552
|
this.k8_1 = 4;
|
|
553
|
-
if (!this.
|
|
553
|
+
if (!this.f1g_1.a1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
554
554
|
return Unit_instance;
|
|
555
|
-
closeSlot(this.
|
|
555
|
+
closeSlot(this.f1g_1, null);
|
|
556
556
|
return Unit_instance;
|
|
557
557
|
case 4:
|
|
558
558
|
throw this.m8_1;
|
|
@@ -570,104 +570,104 @@ protoOf($flushAndCloseCOROUTINE$).r8 = function () {
|
|
|
570
570
|
};
|
|
571
571
|
function ByteChannel(autoFlush) {
|
|
572
572
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
this.
|
|
581
|
-
}
|
|
582
|
-
protoOf(ByteChannel).
|
|
583
|
-
return this.
|
|
584
|
-
};
|
|
585
|
-
protoOf(ByteChannel).
|
|
586
|
-
var tmp0_safe_receiver = this.
|
|
573
|
+
this.t1e_1 = autoFlush;
|
|
574
|
+
this.u1e_1 = new Buffer();
|
|
575
|
+
this.v1e_1 = 0;
|
|
576
|
+
this.w1e_1 = new Object();
|
|
577
|
+
this.x1e_1 = atomic$ref$1(Empty_instance);
|
|
578
|
+
this.y1e_1 = new Buffer();
|
|
579
|
+
this.z1e_1 = new Buffer();
|
|
580
|
+
this.a1f_1 = atomic$ref$1(null);
|
|
581
|
+
}
|
|
582
|
+
protoOf(ByteChannel).j1g = function () {
|
|
583
|
+
return this.t1e_1;
|
|
584
|
+
};
|
|
585
|
+
protoOf(ByteChannel).k1g = function () {
|
|
586
|
+
var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
|
|
587
587
|
if (tmp0_safe_receiver == null)
|
|
588
588
|
null;
|
|
589
589
|
else {
|
|
590
|
-
tmp0_safe_receiver.
|
|
590
|
+
tmp0_safe_receiver.m1g(ClosedReadChannelException$_init_$ref_ix0089());
|
|
591
591
|
}
|
|
592
|
-
if (this.
|
|
592
|
+
if (this.y1e_1.jo()) {
|
|
593
593
|
moveFlushToReadBuffer(this);
|
|
594
594
|
}
|
|
595
|
-
return this.
|
|
595
|
+
return this.y1e_1;
|
|
596
596
|
};
|
|
597
|
-
protoOf(ByteChannel).
|
|
598
|
-
if (this.
|
|
599
|
-
var tmp0_safe_receiver = this.
|
|
597
|
+
protoOf(ByteChannel).n1g = function () {
|
|
598
|
+
if (this.o1g()) {
|
|
599
|
+
var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
|
|
600
600
|
var tmp;
|
|
601
601
|
if (tmp0_safe_receiver == null) {
|
|
602
602
|
tmp = null;
|
|
603
603
|
} else {
|
|
604
|
-
tmp = tmp0_safe_receiver.
|
|
604
|
+
tmp = tmp0_safe_receiver.m1g(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
605
605
|
}
|
|
606
606
|
if (tmp == null)
|
|
607
607
|
throw new ClosedWriteChannelException();
|
|
608
608
|
}
|
|
609
|
-
return this.
|
|
609
|
+
return this.z1e_1;
|
|
610
610
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
var tmp0_safe_receiver = this.
|
|
613
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
611
|
+
protoOf(ByteChannel).p1g = function () {
|
|
612
|
+
var tmp0_safe_receiver = this.a1f_1.kotlinx$atomicfu$value;
|
|
613
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1g();
|
|
614
614
|
};
|
|
615
|
-
protoOf(ByteChannel).
|
|
616
|
-
return !(this.
|
|
615
|
+
protoOf(ByteChannel).o1g = function () {
|
|
616
|
+
return !(this.a1f_1.kotlinx$atomicfu$value == null);
|
|
617
617
|
};
|
|
618
|
-
protoOf(ByteChannel).
|
|
619
|
-
return !(this.
|
|
618
|
+
protoOf(ByteChannel).r1g = function () {
|
|
619
|
+
return !(this.p1g() == null) || (this.o1g() && this.v1e_1 === 0 && this.y1e_1.jo());
|
|
620
620
|
};
|
|
621
|
-
protoOf(ByteChannel).
|
|
621
|
+
protoOf(ByteChannel).s1g = function (min, $completion) {
|
|
622
622
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
623
623
|
tmp.l8_1 = Unit_instance;
|
|
624
624
|
tmp.m8_1 = null;
|
|
625
625
|
return tmp.r8();
|
|
626
626
|
};
|
|
627
|
-
protoOf(ByteChannel).
|
|
627
|
+
protoOf(ByteChannel).i1g = function ($completion) {
|
|
628
628
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
629
629
|
tmp.l8_1 = Unit_instance;
|
|
630
630
|
tmp.m8_1 = null;
|
|
631
631
|
return tmp.r8();
|
|
632
632
|
};
|
|
633
|
-
protoOf(ByteChannel).
|
|
634
|
-
if (this.
|
|
633
|
+
protoOf(ByteChannel).w1f = function () {
|
|
634
|
+
if (this.z1e_1.jo())
|
|
635
635
|
return Unit_instance;
|
|
636
636
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
637
|
-
this.
|
|
638
|
-
var count = convertToInt(this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
637
|
+
this.w1e_1;
|
|
638
|
+
var count = convertToInt(this.z1e_1.g1());
|
|
639
|
+
this.u1e_1.bq(this.z1e_1);
|
|
640
|
+
this.v1e_1 = this.v1e_1 + count | 0;
|
|
641
641
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
642
|
-
var current = this.
|
|
642
|
+
var current = this.x1e_1.kotlinx$atomicfu$value;
|
|
643
643
|
var tmp;
|
|
644
644
|
if (current instanceof Read) {
|
|
645
|
-
tmp = this.
|
|
645
|
+
tmp = this.x1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
646
646
|
} else {
|
|
647
647
|
tmp = false;
|
|
648
648
|
}
|
|
649
649
|
if (tmp) {
|
|
650
|
-
current.
|
|
650
|
+
current.n1e();
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
protoOf(ByteChannel).j4 = function () {
|
|
654
|
-
this.
|
|
655
|
-
if (!this.
|
|
654
|
+
this.w1f();
|
|
655
|
+
if (!this.a1f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
656
656
|
return Unit_instance;
|
|
657
657
|
closeSlot(this, null);
|
|
658
658
|
};
|
|
659
|
-
protoOf(ByteChannel).
|
|
659
|
+
protoOf(ByteChannel).u1g = function ($completion) {
|
|
660
660
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
661
661
|
tmp.l8_1 = Unit_instance;
|
|
662
662
|
tmp.m8_1 = null;
|
|
663
663
|
return tmp.r8();
|
|
664
664
|
};
|
|
665
|
-
protoOf(ByteChannel).
|
|
666
|
-
if (!(this.
|
|
665
|
+
protoOf(ByteChannel).v1g = function (cause) {
|
|
666
|
+
if (!(this.a1f_1.kotlinx$atomicfu$value == null))
|
|
667
667
|
return Unit_instance;
|
|
668
668
|
var closedToken = new CloseToken(cause);
|
|
669
|
-
this.
|
|
670
|
-
var wrappedCause = closedToken.
|
|
669
|
+
this.a1f_1.atomicfu$compareAndSet(null, closedToken);
|
|
670
|
+
var wrappedCause = closedToken.q1g();
|
|
671
671
|
closeSlot(this, wrappedCause);
|
|
672
672
|
};
|
|
673
673
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -683,7 +683,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
683
683
|
length = length === VOID ? content.length : length;
|
|
684
684
|
// Inline function 'kotlin.also' call
|
|
685
685
|
var this_0 = new Buffer();
|
|
686
|
-
this_0.
|
|
686
|
+
this_0.sp(content, offset, offset + length | 0);
|
|
687
687
|
var source = this_0;
|
|
688
688
|
return ByteReadChannel_0(source);
|
|
689
689
|
}
|
|
@@ -691,18 +691,18 @@ function ByteReadChannel_0(source) {
|
|
|
691
691
|
return new SourceByteReadChannel(source);
|
|
692
692
|
}
|
|
693
693
|
function buildPartialMatchTable($this) {
|
|
694
|
-
var table = new Int32Array($this.
|
|
694
|
+
var table = new Int32Array($this.x1g_1.g1());
|
|
695
695
|
var j = 0;
|
|
696
696
|
var inductionVariable = 1;
|
|
697
|
-
var last = $this.
|
|
697
|
+
var last = $this.x1g_1.g1();
|
|
698
698
|
if (inductionVariable < last)
|
|
699
699
|
do {
|
|
700
700
|
var i = inductionVariable;
|
|
701
701
|
inductionVariable = inductionVariable + 1 | 0;
|
|
702
|
-
while (j > 0 && !($this.
|
|
702
|
+
while (j > 0 && !($this.x1g_1.h1(i) === $this.x1g_1.h1(j))) {
|
|
703
703
|
j = table[j - 1 | 0];
|
|
704
704
|
}
|
|
705
|
-
if ($this.
|
|
705
|
+
if ($this.x1g_1.h1(i) === $this.x1g_1.h1(j)) {
|
|
706
706
|
j = j + 1 | 0;
|
|
707
707
|
}
|
|
708
708
|
table[i] = j;
|
|
@@ -723,17 +723,17 @@ function checkFullMatch($this, $completion) {
|
|
|
723
723
|
return tmp.r8();
|
|
724
724
|
}
|
|
725
725
|
function checkBounds($this, extra) {
|
|
726
|
-
if (add($this.
|
|
727
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
726
|
+
if (add($this.d1h_1, extra) > $this.z1g_1) {
|
|
727
|
+
throw IOException_init_$Create$('Limit of ' + $this.z1g_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.x1g_1) + '"'));
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
function toSingleLineString($this,
|
|
731
|
-
return replace(decodeToString_0(
|
|
730
|
+
function toSingleLineString($this, $receiver) {
|
|
731
|
+
return replace(decodeToString_0($receiver), '\n', '\\n');
|
|
732
732
|
}
|
|
733
733
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
734
734
|
CoroutineImpl.call(this, resultContinuation);
|
|
735
|
-
this.
|
|
736
|
-
this.
|
|
735
|
+
this.i1i_1 = _this__u8e3s4;
|
|
736
|
+
this.j1i_1 = ignoreMissing;
|
|
737
737
|
}
|
|
738
738
|
protoOf($findNextCOROUTINE$).r8 = function () {
|
|
739
739
|
var suspendResult = this.l8_1;
|
|
@@ -743,17 +743,17 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
743
743
|
switch (tmp) {
|
|
744
744
|
case 0:
|
|
745
745
|
this.k8_1 = 9;
|
|
746
|
-
this.
|
|
746
|
+
this.i1i_1.d1h_1 = 0n;
|
|
747
747
|
this.j8_1 = 1;
|
|
748
748
|
continue $sm;
|
|
749
749
|
case 1:
|
|
750
|
-
if (!this.
|
|
751
|
-
this.
|
|
750
|
+
if (!this.i1i_1.a1h_1.jo()) {
|
|
751
|
+
this.k1i_1 = true;
|
|
752
752
|
this.j8_1 = 3;
|
|
753
753
|
continue $sm;
|
|
754
754
|
} else {
|
|
755
755
|
this.j8_1 = 2;
|
|
756
|
-
suspendResult = this.
|
|
756
|
+
suspendResult = this.i1i_1.w1g_1.t1g(VOID, this);
|
|
757
757
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
758
758
|
return suspendResult;
|
|
759
759
|
}
|
|
@@ -761,17 +761,17 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
case 2:
|
|
764
|
-
this.
|
|
764
|
+
this.k1i_1 = suspendResult;
|
|
765
765
|
this.j8_1 = 3;
|
|
766
766
|
continue $sm;
|
|
767
767
|
case 3:
|
|
768
|
-
if (!this.
|
|
768
|
+
if (!this.k1i_1) {
|
|
769
769
|
this.j8_1 = 7;
|
|
770
770
|
continue $sm;
|
|
771
771
|
}
|
|
772
772
|
|
|
773
773
|
this.j8_1 = 4;
|
|
774
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
774
|
+
suspendResult = advanceToNextPotentialMatch(this.i1i_1, this);
|
|
775
775
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
776
776
|
return suspendResult;
|
|
777
777
|
}
|
|
@@ -779,7 +779,7 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
779
779
|
continue $sm;
|
|
780
780
|
case 4:
|
|
781
781
|
this.j8_1 = 5;
|
|
782
|
-
suspendResult = checkFullMatch(this.
|
|
782
|
+
suspendResult = checkFullMatch(this.i1i_1, this);
|
|
783
783
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
784
784
|
return suspendResult;
|
|
785
785
|
}
|
|
@@ -787,7 +787,7 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
787
787
|
continue $sm;
|
|
788
788
|
case 5:
|
|
789
789
|
if (suspendResult) {
|
|
790
|
-
return this.
|
|
790
|
+
return this.i1i_1.d1h_1;
|
|
791
791
|
} else {
|
|
792
792
|
this.j8_1 = 6;
|
|
793
793
|
continue $sm;
|
|
@@ -797,20 +797,20 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
797
797
|
this.j8_1 = 1;
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 7:
|
|
800
|
-
if (!this.
|
|
801
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
800
|
+
if (!this.j1i_1) {
|
|
801
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.i1i_1, this.i1i_1.x1g_1) + '" but encountered end of input');
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
this.
|
|
804
|
+
this.i1i_1.d1h_1 = add(this.i1i_1.d1h_1, this.i1i_1.c1h_1.mp(this.i1i_1.y1g_1.n1g()));
|
|
805
805
|
this.j8_1 = 8;
|
|
806
|
-
suspendResult = this.
|
|
806
|
+
suspendResult = this.i1i_1.y1g_1.i1g(this);
|
|
807
807
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
808
808
|
return suspendResult;
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
continue $sm;
|
|
812
812
|
case 8:
|
|
813
|
-
return this.
|
|
813
|
+
return this.i1i_1.d1h_1;
|
|
814
814
|
case 9:
|
|
815
815
|
throw this.m8_1;
|
|
816
816
|
}
|
|
@@ -827,7 +827,7 @@ protoOf($findNextCOROUTINE$).r8 = function () {
|
|
|
827
827
|
};
|
|
828
828
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
829
829
|
CoroutineImpl.call(this, resultContinuation);
|
|
830
|
-
this.
|
|
830
|
+
this.n1h_1 = _this__u8e3s4;
|
|
831
831
|
}
|
|
832
832
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
833
833
|
var suspendResult = this.l8_1;
|
|
@@ -840,13 +840,13 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
|
840
840
|
this.j8_1 = 1;
|
|
841
841
|
continue $sm;
|
|
842
842
|
case 1:
|
|
843
|
-
if (!this.
|
|
844
|
-
this.
|
|
843
|
+
if (!this.n1h_1.a1h_1.jo()) {
|
|
844
|
+
this.o1h_1 = true;
|
|
845
845
|
this.j8_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
} else {
|
|
848
848
|
this.j8_1 = 2;
|
|
849
|
-
suspendResult = this.
|
|
849
|
+
suspendResult = this.n1h_1.w1g_1.t1g(VOID, this);
|
|
850
850
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
851
851
|
return suspendResult;
|
|
852
852
|
}
|
|
@@ -854,34 +854,34 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
case 2:
|
|
857
|
-
this.
|
|
857
|
+
this.o1h_1 = suspendResult;
|
|
858
858
|
this.j8_1 = 3;
|
|
859
859
|
continue $sm;
|
|
860
860
|
case 3:
|
|
861
|
-
if (!this.
|
|
861
|
+
if (!this.o1h_1) {
|
|
862
862
|
this.j8_1 = 7;
|
|
863
863
|
continue $sm;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
var nextMatch = indexOf(this.
|
|
866
|
+
var nextMatch = indexOf(this.n1h_1.a1h_1, this.n1h_1.x1g_1.h1(0));
|
|
867
867
|
if (nextMatch === -1n) {
|
|
868
|
-
var tmp_0 = this.
|
|
869
|
-
checkBounds(this.
|
|
870
|
-
this.
|
|
868
|
+
var tmp_0 = this.n1h_1.a1h_1;
|
|
869
|
+
checkBounds(this.n1h_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).g1());
|
|
870
|
+
this.n1h_1.d1h_1 = add(this.n1h_1.d1h_1, this.n1h_1.a1h_1.mp(this.n1h_1.y1g_1.n1g()));
|
|
871
871
|
this.j8_1 = 5;
|
|
872
|
-
suspendResult = flushIfNeeded(this.
|
|
872
|
+
suspendResult = flushIfNeeded(this.n1h_1.y1g_1, this);
|
|
873
873
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
874
874
|
return suspendResult;
|
|
875
875
|
}
|
|
876
876
|
continue $sm;
|
|
877
877
|
} else {
|
|
878
|
-
checkBounds(this.
|
|
879
|
-
var tmp_1 = this.
|
|
880
|
-
var tmp_2 = this.
|
|
881
|
-
var tmp_3 = this.
|
|
882
|
-
tmp_1.
|
|
878
|
+
checkBounds(this.n1h_1, nextMatch);
|
|
879
|
+
var tmp_1 = this.n1h_1;
|
|
880
|
+
var tmp_2 = this.n1h_1.d1h_1;
|
|
881
|
+
var tmp_3 = this.n1h_1.y1g_1.n1g();
|
|
882
|
+
tmp_1.d1h_1 = add(tmp_2, this.n1h_1.a1h_1.jp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
883
883
|
this.j8_1 = 4;
|
|
884
|
-
suspendResult = flushIfNeeded(this.
|
|
884
|
+
suspendResult = flushIfNeeded(this.n1h_1.y1g_1, this);
|
|
885
885
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
886
886
|
return suspendResult;
|
|
887
887
|
}
|
|
@@ -914,7 +914,7 @@ protoOf($advanceToNextPotentialMatchCOROUTINE$).r8 = function () {
|
|
|
914
914
|
};
|
|
915
915
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
916
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
917
|
-
this.
|
|
917
|
+
this.x1h_1 = _this__u8e3s4;
|
|
918
918
|
}
|
|
919
919
|
protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
920
920
|
var suspendResult = this.l8_1;
|
|
@@ -927,13 +927,13 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
|
927
927
|
this.j8_1 = 1;
|
|
928
928
|
continue $sm;
|
|
929
929
|
case 1:
|
|
930
|
-
if (!this.
|
|
931
|
-
this.
|
|
930
|
+
if (!this.x1h_1.a1h_1.jo()) {
|
|
931
|
+
this.z1h_1 = true;
|
|
932
932
|
this.j8_1 = 3;
|
|
933
933
|
continue $sm;
|
|
934
934
|
} else {
|
|
935
935
|
this.j8_1 = 2;
|
|
936
|
-
suspendResult = this.
|
|
936
|
+
suspendResult = this.x1h_1.w1g_1.t1g(VOID, this);
|
|
937
937
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
938
|
return suspendResult;
|
|
939
939
|
}
|
|
@@ -941,30 +941,30 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
case 2:
|
|
944
|
-
this.
|
|
944
|
+
this.z1h_1 = suspendResult;
|
|
945
945
|
this.j8_1 = 3;
|
|
946
946
|
continue $sm;
|
|
947
947
|
case 3:
|
|
948
|
-
if (!this.
|
|
948
|
+
if (!this.z1h_1) {
|
|
949
949
|
this.j8_1 = 7;
|
|
950
950
|
continue $sm;
|
|
951
951
|
}
|
|
952
952
|
|
|
953
|
-
this.
|
|
954
|
-
if (this.
|
|
955
|
-
var oldMatchIndex = this.
|
|
956
|
-
while (this.
|
|
957
|
-
this.
|
|
953
|
+
this.y1h_1 = this.x1h_1.a1h_1.mo();
|
|
954
|
+
if (this.x1h_1.e1h_1 > 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
|
|
955
|
+
var oldMatchIndex = this.x1h_1.e1h_1;
|
|
956
|
+
while (this.x1h_1.e1h_1 > 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
|
|
957
|
+
this.x1h_1.e1h_1 = this.x1h_1.b1h_1[this.x1h_1.e1h_1 - 1 | 0];
|
|
958
958
|
}
|
|
959
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
960
|
-
checkBounds(this.
|
|
961
|
-
var tmp_0 = this.
|
|
962
|
-
var tmp_1 = this.
|
|
963
|
-
var tmp_2 = this.
|
|
964
|
-
tmp_0.
|
|
965
|
-
if (this.
|
|
959
|
+
var retained = fromInt(oldMatchIndex - this.x1h_1.e1h_1 | 0);
|
|
960
|
+
checkBounds(this.x1h_1, retained);
|
|
961
|
+
var tmp_0 = this.x1h_1;
|
|
962
|
+
var tmp_1 = this.x1h_1.d1h_1;
|
|
963
|
+
var tmp_2 = this.x1h_1.y1g_1.n1g();
|
|
964
|
+
tmp_0.d1h_1 = add(tmp_1, this.x1h_1.c1h_1.jp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
965
|
+
if (this.x1h_1.e1h_1 === 0 && !(this.y1h_1 === this.x1h_1.x1g_1.h1(this.x1h_1.e1h_1))) {
|
|
966
966
|
this.j8_1 = 6;
|
|
967
|
-
suspendResult = writeByte(this.
|
|
967
|
+
suspendResult = writeByte(this.x1h_1.y1g_1, this.y1h_1, this);
|
|
968
968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
969
969
|
return suspendResult;
|
|
970
970
|
}
|
|
@@ -982,17 +982,17 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
|
982
982
|
this.j8_1 = 5;
|
|
983
983
|
continue $sm;
|
|
984
984
|
case 5:
|
|
985
|
-
this.
|
|
986
|
-
if (this.
|
|
985
|
+
this.x1h_1.e1h_1 = this.x1h_1.e1h_1 + 1 | 0;
|
|
986
|
+
if (this.x1h_1.e1h_1 === this.x1h_1.x1g_1.g1()) {
|
|
987
987
|
return true;
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
this.
|
|
990
|
+
this.x1h_1.c1h_1.cq(this.y1h_1);
|
|
991
991
|
this.j8_1 = 1;
|
|
992
992
|
continue $sm;
|
|
993
993
|
case 6:
|
|
994
|
-
var _unary__edvuaz = this.
|
|
995
|
-
this.
|
|
994
|
+
var _unary__edvuaz = this.x1h_1.d1h_1;
|
|
995
|
+
this.x1h_1.d1h_1 = add(_unary__edvuaz, get_ONE());
|
|
996
996
|
return false;
|
|
997
997
|
case 7:
|
|
998
998
|
return false;
|
|
@@ -1012,49 +1012,49 @@ protoOf($checkFullMatchCOROUTINE$).r8 = function () {
|
|
|
1012
1012
|
};
|
|
1013
1013
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1014
1014
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1018
|
-
this.
|
|
1015
|
+
this.w1g_1 = channel;
|
|
1016
|
+
this.x1g_1 = matchString;
|
|
1017
|
+
this.y1g_1 = writeChannel;
|
|
1018
|
+
this.z1g_1 = limit;
|
|
1019
1019
|
// Inline function 'kotlin.require' call
|
|
1020
|
-
if (!(this.
|
|
1020
|
+
if (!(this.x1g_1.g1() > 0)) {
|
|
1021
1021
|
var message = 'Empty match string not permitted for scanning';
|
|
1022
1022
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1023
1023
|
}
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1028
|
-
this.
|
|
1024
|
+
this.a1h_1 = this.w1g_1.k1g();
|
|
1025
|
+
this.b1h_1 = buildPartialMatchTable(this);
|
|
1026
|
+
this.c1h_1 = new Buffer();
|
|
1027
|
+
this.d1h_1 = 0n;
|
|
1028
|
+
this.e1h_1 = 0;
|
|
1029
1029
|
}
|
|
1030
|
-
protoOf(ByteChannelScanner).
|
|
1030
|
+
protoOf(ByteChannelScanner).l1i = function (ignoreMissing, $completion) {
|
|
1031
1031
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1032
1032
|
tmp.l8_1 = Unit_instance;
|
|
1033
1033
|
tmp.m8_1 = null;
|
|
1034
1034
|
return tmp.r8();
|
|
1035
1035
|
};
|
|
1036
1036
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1037
|
-
this.
|
|
1038
|
-
this.
|
|
1037
|
+
this.m1i_1 = null;
|
|
1038
|
+
this.n1i_1 = new Buffer();
|
|
1039
1039
|
}
|
|
1040
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1041
|
-
return this.
|
|
1040
|
+
protoOf(ByteReadChannel$Companion$Empty$1).p1g = function () {
|
|
1041
|
+
return this.m1i_1;
|
|
1042
1042
|
};
|
|
1043
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r1g = function () {
|
|
1044
1044
|
return true;
|
|
1045
1045
|
};
|
|
1046
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1047
|
-
return this.
|
|
1046
|
+
protoOf(ByteReadChannel$Companion$Empty$1).k1g = function () {
|
|
1047
|
+
return this.n1i_1;
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1049
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s1g = function (min, $completion) {
|
|
1050
1050
|
return false;
|
|
1051
1051
|
};
|
|
1052
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1052
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v1g = function (cause) {
|
|
1053
1053
|
};
|
|
1054
1054
|
function Companion_0() {
|
|
1055
1055
|
Companion_instance_1 = this;
|
|
1056
1056
|
var tmp = this;
|
|
1057
|
-
tmp.
|
|
1057
|
+
tmp.o1i_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1058
1058
|
}
|
|
1059
1059
|
var Companion_instance_1;
|
|
1060
1060
|
function Companion_getInstance_0() {
|
|
@@ -1065,7 +1065,7 @@ function Companion_getInstance_0() {
|
|
|
1065
1065
|
function ByteReadChannel_1() {
|
|
1066
1066
|
}
|
|
1067
1067
|
function cancel_0(_this__u8e3s4) {
|
|
1068
|
-
_this__u8e3s4.
|
|
1068
|
+
_this__u8e3s4.v1g(IOException_init_$Create$('Channel was cancelled'));
|
|
1069
1069
|
}
|
|
1070
1070
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1071
1071
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1127,7 +1127,7 @@ function readPacket(_this__u8e3s4, packet, $completion) {
|
|
|
1127
1127
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1128
1128
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1129
1129
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1130
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1130
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).l1i(ignoreMissing, $completion);
|
|
1131
1131
|
}
|
|
1132
1132
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1133
1133
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1140,7 +1140,7 @@ function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
|
1140
1140
|
return internalReadLineTo(_this__u8e3s4, out, limit, lineEnding.equals(LineEnding_Lenient_getInstance()), true, $completion);
|
|
1141
1141
|
}
|
|
1142
1142
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1143
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1143
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1g();
|
|
1144
1144
|
if (tmp0_safe_receiver == null)
|
|
1145
1145
|
null;
|
|
1146
1146
|
else {
|
|
@@ -1149,7 +1149,7 @@ function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1152
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1152
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1g();
|
|
1153
1153
|
if (tmp0_safe_receiver == null)
|
|
1154
1154
|
null;
|
|
1155
1155
|
else {
|
|
@@ -1158,7 +1158,7 @@ function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
function get_availableForRead(_this__u8e3s4) {
|
|
1161
|
-
return convertToInt(_this__u8e3s4.
|
|
1161
|
+
return convertToInt(_this__u8e3s4.k1g().io().g1());
|
|
1162
1162
|
}
|
|
1163
1163
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1164
1164
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1179,7 +1179,7 @@ function throwTooLongLineException(limit) {
|
|
|
1179
1179
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1180
1180
|
}
|
|
1181
1181
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1182
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1182
|
+
var tmp0_safe_receiver = _this__u8e3s4.p1g();
|
|
1183
1183
|
if (tmp0_safe_receiver == null)
|
|
1184
1184
|
null;
|
|
1185
1185
|
else {
|
|
@@ -1224,7 +1224,7 @@ function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLin
|
|
|
1224
1224
|
}
|
|
1225
1225
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1226
1226
|
CoroutineImpl.call(this, resultContinuation);
|
|
1227
|
-
this.
|
|
1227
|
+
this.x1i_1 = _this__u8e3s4;
|
|
1228
1228
|
}
|
|
1229
1229
|
protoOf($readBufferCOROUTINE$).r8 = function () {
|
|
1230
1230
|
var suspendResult = this.l8_1;
|
|
@@ -1234,18 +1234,18 @@ protoOf($readBufferCOROUTINE$).r8 = function () {
|
|
|
1234
1234
|
switch (tmp) {
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
this.k8_1 = 4;
|
|
1237
|
-
this.
|
|
1237
|
+
this.y1i_1 = new Buffer();
|
|
1238
1238
|
this.j8_1 = 1;
|
|
1239
1239
|
continue $sm;
|
|
1240
1240
|
case 1:
|
|
1241
|
-
if (!!this.
|
|
1241
|
+
if (!!this.x1i_1.r1g()) {
|
|
1242
1242
|
this.j8_1 = 3;
|
|
1243
1243
|
continue $sm;
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
|
-
this.
|
|
1246
|
+
this.y1i_1.bq(this.x1i_1.k1g());
|
|
1247
1247
|
this.j8_1 = 2;
|
|
1248
|
-
suspendResult = this.
|
|
1248
|
+
suspendResult = this.x1i_1.t1g(VOID, this);
|
|
1249
1249
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1250
1250
|
return suspendResult;
|
|
1251
1251
|
}
|
|
@@ -1255,14 +1255,14 @@ protoOf($readBufferCOROUTINE$).r8 = function () {
|
|
|
1255
1255
|
this.j8_1 = 1;
|
|
1256
1256
|
continue $sm;
|
|
1257
1257
|
case 3:
|
|
1258
|
-
var tmp0_safe_receiver = this.
|
|
1258
|
+
var tmp0_safe_receiver = this.x1i_1.p1g();
|
|
1259
1259
|
if (tmp0_safe_receiver == null)
|
|
1260
1260
|
null;
|
|
1261
1261
|
else {
|
|
1262
1262
|
throw tmp0_safe_receiver;
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
return this.
|
|
1265
|
+
return this.y1i_1;
|
|
1266
1266
|
case 4:
|
|
1267
1267
|
throw this.m8_1;
|
|
1268
1268
|
}
|
|
@@ -1279,10 +1279,10 @@ protoOf($readBufferCOROUTINE$).r8 = function () {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1281
1281
|
CoroutineImpl.call(this, resultContinuation);
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1282
|
+
this.h1j_1 = _this__u8e3s4;
|
|
1283
|
+
this.i1j_1 = buffer;
|
|
1284
|
+
this.j1j_1 = offset;
|
|
1285
|
+
this.k1j_1 = length;
|
|
1286
1286
|
}
|
|
1287
1287
|
protoOf($readAvailableCOROUTINE$).r8 = function () {
|
|
1288
1288
|
var suspendResult = this.l8_1;
|
|
@@ -1292,11 +1292,11 @@ protoOf($readAvailableCOROUTINE$).r8 = function () {
|
|
|
1292
1292
|
switch (tmp) {
|
|
1293
1293
|
case 0:
|
|
1294
1294
|
this.k8_1 = 3;
|
|
1295
|
-
if (this.
|
|
1295
|
+
if (this.h1j_1.r1g())
|
|
1296
1296
|
return -1;
|
|
1297
|
-
if (this.
|
|
1297
|
+
if (this.h1j_1.k1g().jo()) {
|
|
1298
1298
|
this.j8_1 = 1;
|
|
1299
|
-
suspendResult = this.
|
|
1299
|
+
suspendResult = this.h1j_1.t1g(VOID, this);
|
|
1300
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1301
|
return suspendResult;
|
|
1302
1302
|
}
|
|
@@ -1310,9 +1310,9 @@ protoOf($readAvailableCOROUTINE$).r8 = function () {
|
|
|
1310
1310
|
this.j8_1 = 2;
|
|
1311
1311
|
continue $sm;
|
|
1312
1312
|
case 2:
|
|
1313
|
-
if (this.
|
|
1313
|
+
if (this.h1j_1.r1g())
|
|
1314
1314
|
return -1;
|
|
1315
|
-
return readAvailable_0(this.
|
|
1315
|
+
return readAvailable_0(this.h1j_1.k1g(), this.i1j_1, this.j1j_1, this.k1j_1);
|
|
1316
1316
|
case 3:
|
|
1317
1317
|
throw this.m8_1;
|
|
1318
1318
|
}
|
|
@@ -1329,7 +1329,7 @@ protoOf($readAvailableCOROUTINE$).r8 = function () {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1331
1331
|
CoroutineImpl.call(this, resultContinuation);
|
|
1332
|
-
this.
|
|
1332
|
+
this.t1j_1 = _this__u8e3s4;
|
|
1333
1333
|
}
|
|
1334
1334
|
protoOf($readRemainingCOROUTINE$).r8 = function () {
|
|
1335
1335
|
var suspendResult = this.l8_1;
|
|
@@ -1339,18 +1339,18 @@ protoOf($readRemainingCOROUTINE$).r8 = function () {
|
|
|
1339
1339
|
switch (tmp) {
|
|
1340
1340
|
case 0:
|
|
1341
1341
|
this.k8_1 = 4;
|
|
1342
|
-
this.
|
|
1342
|
+
this.u1j_1 = BytePacketBuilder();
|
|
1343
1343
|
this.j8_1 = 1;
|
|
1344
1344
|
continue $sm;
|
|
1345
1345
|
case 1:
|
|
1346
|
-
if (!!this.
|
|
1346
|
+
if (!!this.t1j_1.r1g()) {
|
|
1347
1347
|
this.j8_1 = 3;
|
|
1348
1348
|
continue $sm;
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
this.
|
|
1351
|
+
this.u1j_1.bq(this.t1j_1.k1g());
|
|
1352
1352
|
this.j8_1 = 2;
|
|
1353
|
-
suspendResult = this.
|
|
1353
|
+
suspendResult = this.t1j_1.t1g(VOID, this);
|
|
1354
1354
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1355
1355
|
return suspendResult;
|
|
1356
1356
|
}
|
|
@@ -1360,8 +1360,8 @@ protoOf($readRemainingCOROUTINE$).r8 = function () {
|
|
|
1360
1360
|
this.j8_1 = 1;
|
|
1361
1361
|
continue $sm;
|
|
1362
1362
|
case 3:
|
|
1363
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1364
|
-
return this.
|
|
1363
|
+
rethrowCloseCauseIfNeeded_0(this.t1j_1);
|
|
1364
|
+
return this.u1j_1.io();
|
|
1365
1365
|
case 4:
|
|
1366
1366
|
throw this.m8_1;
|
|
1367
1367
|
}
|
|
@@ -1378,7 +1378,7 @@ protoOf($readRemainingCOROUTINE$).r8 = function () {
|
|
|
1378
1378
|
};
|
|
1379
1379
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1380
1380
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
|
-
this.
|
|
1381
|
+
this.d1k_1 = _this__u8e3s4;
|
|
1382
1382
|
}
|
|
1383
1383
|
protoOf($toByteArrayCOROUTINE$).r8 = function () {
|
|
1384
1384
|
var suspendResult = this.l8_1;
|
|
@@ -1389,7 +1389,7 @@ protoOf($toByteArrayCOROUTINE$).r8 = function () {
|
|
|
1389
1389
|
case 0:
|
|
1390
1390
|
this.k8_1 = 2;
|
|
1391
1391
|
this.j8_1 = 1;
|
|
1392
|
-
suspendResult = readBuffer(this.
|
|
1392
|
+
suspendResult = readBuffer(this.d1k_1, this);
|
|
1393
1393
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1394
1394
|
return suspendResult;
|
|
1395
1395
|
}
|
|
@@ -1414,9 +1414,9 @@ protoOf($toByteArrayCOROUTINE$).r8 = function () {
|
|
|
1414
1414
|
};
|
|
1415
1415
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1416
1416
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1417
|
+
this.m1k_1 = _this__u8e3s4;
|
|
1418
|
+
this.n1k_1 = channel;
|
|
1419
|
+
this.o1k_1 = limit;
|
|
1420
1420
|
}
|
|
1421
1421
|
protoOf($copyToCOROUTINE$).r8 = function () {
|
|
1422
1422
|
var suspendResult = this.l8_1;
|
|
@@ -1426,7 +1426,7 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1426
1426
|
switch (tmp) {
|
|
1427
1427
|
case 0:
|
|
1428
1428
|
this.k8_1 = 12;
|
|
1429
|
-
this.
|
|
1429
|
+
this.p1k_1 = this.o1k_1;
|
|
1430
1430
|
this.j8_1 = 1;
|
|
1431
1431
|
continue $sm;
|
|
1432
1432
|
case 1:
|
|
@@ -1435,14 +1435,14 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1435
1435
|
this.j8_1 = 2;
|
|
1436
1436
|
continue $sm;
|
|
1437
1437
|
case 2:
|
|
1438
|
-
if (!(!this.
|
|
1438
|
+
if (!(!this.m1k_1.r1g() && this.p1k_1 > 0n)) {
|
|
1439
1439
|
this.j8_1 = 6;
|
|
1440
1440
|
continue $sm;
|
|
1441
1441
|
}
|
|
1442
1442
|
|
|
1443
|
-
if (this.
|
|
1443
|
+
if (this.m1k_1.k1g().jo()) {
|
|
1444
1444
|
this.j8_1 = 3;
|
|
1445
|
-
suspendResult = this.
|
|
1445
|
+
suspendResult = this.m1k_1.t1g(VOID, this);
|
|
1446
1446
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1447
|
return suspendResult;
|
|
1448
1448
|
}
|
|
@@ -1456,13 +1456,13 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1456
1456
|
this.j8_1 = 4;
|
|
1457
1457
|
continue $sm;
|
|
1458
1458
|
case 4:
|
|
1459
|
-
var tmp0 = this.
|
|
1460
|
-
var b = get_remaining(this.
|
|
1459
|
+
var tmp0 = this.p1k_1;
|
|
1460
|
+
var b = get_remaining(this.m1k_1.k1g());
|
|
1461
1461
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1462
|
+
this.m1k_1.k1g().lp(this.n1k_1.n1g(), count);
|
|
1463
|
+
this.p1k_1 = subtract(this.p1k_1, count);
|
|
1464
1464
|
this.j8_1 = 5;
|
|
1465
|
-
suspendResult = this.
|
|
1465
|
+
suspendResult = this.n1k_1.i1g(this);
|
|
1466
1466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1467
1467
|
return suspendResult;
|
|
1468
1468
|
}
|
|
@@ -1480,8 +1480,8 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1480
1480
|
var tmp_0 = this.m8_1;
|
|
1481
1481
|
if (tmp_0 instanceof Error) {
|
|
1482
1482
|
var cause = this.m8_1;
|
|
1483
|
-
this.
|
|
1484
|
-
close_0(this.
|
|
1483
|
+
this.m1k_1.v1g(cause);
|
|
1484
|
+
close_0(this.n1k_1, cause);
|
|
1485
1485
|
throw cause;
|
|
1486
1486
|
} else {
|
|
1487
1487
|
throw this.m8_1;
|
|
@@ -1489,27 +1489,27 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1489
1489
|
|
|
1490
1490
|
case 8:
|
|
1491
1491
|
this.k8_1 = 12;
|
|
1492
|
-
this.
|
|
1492
|
+
this.q1k_1 = this.m8_1;
|
|
1493
1493
|
this.j8_1 = 9;
|
|
1494
|
-
suspendResult = this.
|
|
1494
|
+
suspendResult = this.n1k_1.i1g(this);
|
|
1495
1495
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1496
1496
|
return suspendResult;
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
1499
|
continue $sm;
|
|
1500
1500
|
case 9:
|
|
1501
|
-
throw this.
|
|
1501
|
+
throw this.q1k_1;
|
|
1502
1502
|
case 10:
|
|
1503
1503
|
this.k8_1 = 12;
|
|
1504
1504
|
this.j8_1 = 11;
|
|
1505
|
-
suspendResult = this.
|
|
1505
|
+
suspendResult = this.n1k_1.i1g(this);
|
|
1506
1506
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1507
1507
|
return suspendResult;
|
|
1508
1508
|
}
|
|
1509
1509
|
|
|
1510
1510
|
continue $sm;
|
|
1511
1511
|
case 11:
|
|
1512
|
-
return subtract(this.
|
|
1512
|
+
return subtract(this.o1k_1, this.p1k_1);
|
|
1513
1513
|
case 12:
|
|
1514
1514
|
throw this.m8_1;
|
|
1515
1515
|
}
|
|
@@ -1526,8 +1526,8 @@ protoOf($copyToCOROUTINE$).r8 = function () {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1528
1528
|
CoroutineImpl.call(this, resultContinuation);
|
|
1529
|
-
this.
|
|
1530
|
-
this.
|
|
1529
|
+
this.z1k_1 = _this__u8e3s4;
|
|
1530
|
+
this.a1l_1 = max;
|
|
1531
1531
|
}
|
|
1532
1532
|
protoOf($discardCOROUTINE$).r8 = function () {
|
|
1533
1533
|
var suspendResult = this.l8_1;
|
|
@@ -1537,18 +1537,18 @@ protoOf($discardCOROUTINE$).r8 = function () {
|
|
|
1537
1537
|
switch (tmp) {
|
|
1538
1538
|
case 0:
|
|
1539
1539
|
this.k8_1 = 5;
|
|
1540
|
-
this.
|
|
1540
|
+
this.b1l_1 = this.a1l_1;
|
|
1541
1541
|
this.j8_1 = 1;
|
|
1542
1542
|
continue $sm;
|
|
1543
1543
|
case 1:
|
|
1544
|
-
if (!(this.
|
|
1544
|
+
if (!(this.b1l_1 > 0n && !this.z1k_1.r1g())) {
|
|
1545
1545
|
this.j8_1 = 4;
|
|
1546
1546
|
continue $sm;
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
-
if (get_availableForRead(this.
|
|
1549
|
+
if (get_availableForRead(this.z1k_1) === 0) {
|
|
1550
1550
|
this.j8_1 = 2;
|
|
1551
|
-
suspendResult = this.
|
|
1551
|
+
suspendResult = this.z1k_1.t1g(VOID, this);
|
|
1552
1552
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1553
1553
|
return suspendResult;
|
|
1554
1554
|
}
|
|
@@ -1562,15 +1562,15 @@ protoOf($discardCOROUTINE$).r8 = function () {
|
|
|
1562
1562
|
this.j8_1 = 3;
|
|
1563
1563
|
continue $sm;
|
|
1564
1564
|
case 3:
|
|
1565
|
-
var tmp0 = this.
|
|
1566
|
-
var b = get_remaining(this.
|
|
1565
|
+
var tmp0 = this.b1l_1;
|
|
1566
|
+
var b = get_remaining(this.z1k_1.k1g());
|
|
1567
1567
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1568
|
-
discard_0(this.
|
|
1569
|
-
this.
|
|
1568
|
+
discard_0(this.z1k_1.k1g(), count);
|
|
1569
|
+
this.b1l_1 = subtract(this.b1l_1, count);
|
|
1570
1570
|
this.j8_1 = 1;
|
|
1571
1571
|
continue $sm;
|
|
1572
1572
|
case 4:
|
|
1573
|
-
return subtract(this.
|
|
1573
|
+
return subtract(this.a1l_1, this.b1l_1);
|
|
1574
1574
|
case 5:
|
|
1575
1575
|
throw this.m8_1;
|
|
1576
1576
|
}
|
|
@@ -1587,8 +1587,8 @@ protoOf($discardCOROUTINE$).r8 = function () {
|
|
|
1587
1587
|
};
|
|
1588
1588
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
1589
1589
|
CoroutineImpl.call(this, resultContinuation);
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1590
|
+
this.k1l_1 = _this__u8e3s4;
|
|
1591
|
+
this.l1l_1 = channel;
|
|
1592
1592
|
}
|
|
1593
1593
|
protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
1594
1594
|
var suspendResult = this.l8_1;
|
|
@@ -1598,7 +1598,7 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1598
1598
|
switch (tmp) {
|
|
1599
1599
|
case 0:
|
|
1600
1600
|
this.k8_1 = 11;
|
|
1601
|
-
this.
|
|
1601
|
+
this.m1l_1 = 0n;
|
|
1602
1602
|
this.j8_1 = 1;
|
|
1603
1603
|
continue $sm;
|
|
1604
1604
|
case 1:
|
|
@@ -1607,14 +1607,14 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1607
1607
|
this.j8_1 = 2;
|
|
1608
1608
|
continue $sm;
|
|
1609
1609
|
case 2:
|
|
1610
|
-
if (!!this.
|
|
1610
|
+
if (!!this.k1l_1.r1g()) {
|
|
1611
1611
|
this.j8_1 = 5;
|
|
1612
1612
|
continue $sm;
|
|
1613
1613
|
}
|
|
1614
1614
|
|
|
1615
|
-
this.
|
|
1615
|
+
this.m1l_1 = add(this.m1l_1, this.k1l_1.k1g().mp(this.l1l_1.n1g()));
|
|
1616
1616
|
this.j8_1 = 3;
|
|
1617
|
-
suspendResult = this.
|
|
1617
|
+
suspendResult = this.l1l_1.i1g(this);
|
|
1618
1618
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1619
1619
|
return suspendResult;
|
|
1620
1620
|
}
|
|
@@ -1622,7 +1622,7 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1622
1622
|
continue $sm;
|
|
1623
1623
|
case 3:
|
|
1624
1624
|
this.j8_1 = 4;
|
|
1625
|
-
suspendResult = this.
|
|
1625
|
+
suspendResult = this.k1l_1.t1g(VOID, this);
|
|
1626
1626
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1627
1627
|
return suspendResult;
|
|
1628
1628
|
}
|
|
@@ -1640,8 +1640,8 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1640
1640
|
var tmp_0 = this.m8_1;
|
|
1641
1641
|
if (tmp_0 instanceof Error) {
|
|
1642
1642
|
var cause = this.m8_1;
|
|
1643
|
-
this.
|
|
1644
|
-
close_0(this.
|
|
1643
|
+
this.k1l_1.v1g(cause);
|
|
1644
|
+
close_0(this.l1l_1, cause);
|
|
1645
1645
|
throw cause;
|
|
1646
1646
|
} else {
|
|
1647
1647
|
throw this.m8_1;
|
|
@@ -1649,27 +1649,27 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1649
1649
|
|
|
1650
1650
|
case 7:
|
|
1651
1651
|
this.k8_1 = 11;
|
|
1652
|
-
this.
|
|
1652
|
+
this.n1l_1 = this.m8_1;
|
|
1653
1653
|
this.j8_1 = 8;
|
|
1654
|
-
suspendResult = this.
|
|
1654
|
+
suspendResult = this.l1l_1.i1g(this);
|
|
1655
1655
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1656
1656
|
return suspendResult;
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
1659
|
continue $sm;
|
|
1660
1660
|
case 8:
|
|
1661
|
-
throw this.
|
|
1661
|
+
throw this.n1l_1;
|
|
1662
1662
|
case 9:
|
|
1663
1663
|
this.k8_1 = 11;
|
|
1664
1664
|
this.j8_1 = 10;
|
|
1665
|
-
suspendResult = this.
|
|
1665
|
+
suspendResult = this.l1l_1.i1g(this);
|
|
1666
1666
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1667
1667
|
return suspendResult;
|
|
1668
1668
|
}
|
|
1669
1669
|
|
|
1670
1670
|
continue $sm;
|
|
1671
1671
|
case 10:
|
|
1672
|
-
return this.
|
|
1672
|
+
return this.m1l_1;
|
|
1673
1673
|
case 11:
|
|
1674
1674
|
throw this.m8_1;
|
|
1675
1675
|
}
|
|
@@ -1686,8 +1686,8 @@ protoOf($copyToCOROUTINE$_0).r8 = function () {
|
|
|
1686
1686
|
};
|
|
1687
1687
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1688
1688
|
CoroutineImpl.call(this, resultContinuation);
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1689
|
+
this.w1l_1 = _this__u8e3s4;
|
|
1690
|
+
this.x1l_1 = byteString;
|
|
1691
1691
|
}
|
|
1692
1692
|
protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
1693
1693
|
var suspendResult = this.l8_1;
|
|
@@ -1698,7 +1698,7 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
|
1698
1698
|
case 0:
|
|
1699
1699
|
this.k8_1 = 4;
|
|
1700
1700
|
this.j8_1 = 1;
|
|
1701
|
-
suspendResult = peek(this.
|
|
1701
|
+
suspendResult = peek(this.w1l_1, this.x1l_1.g1(), this);
|
|
1702
1702
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1703
1703
|
return suspendResult;
|
|
1704
1704
|
}
|
|
@@ -1706,9 +1706,9 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
|
1706
1706
|
continue $sm;
|
|
1707
1707
|
case 1:
|
|
1708
1708
|
var ARGUMENT = suspendResult;
|
|
1709
|
-
if (equals(ARGUMENT, this.
|
|
1709
|
+
if (equals(ARGUMENT, this.x1l_1)) {
|
|
1710
1710
|
this.j8_1 = 3;
|
|
1711
|
-
suspendResult = discard(this.
|
|
1711
|
+
suspendResult = discard(this.w1l_1, fromInt(this.x1l_1.g1()), this);
|
|
1712
1712
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1713
1713
|
return suspendResult;
|
|
1714
1714
|
}
|
|
@@ -1738,8 +1738,8 @@ protoOf($skipIfFoundCOROUTINE$).r8 = function () {
|
|
|
1738
1738
|
};
|
|
1739
1739
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1740
1740
|
CoroutineImpl.call(this, resultContinuation);
|
|
1741
|
-
this.
|
|
1742
|
-
this.
|
|
1741
|
+
this.g1m_1 = _this__u8e3s4;
|
|
1742
|
+
this.h1m_1 = packet;
|
|
1743
1743
|
}
|
|
1744
1744
|
protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
1745
1745
|
var suspendResult = this.l8_1;
|
|
@@ -1749,18 +1749,18 @@ protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
|
1749
1749
|
switch (tmp) {
|
|
1750
1750
|
case 0:
|
|
1751
1751
|
this.k8_1 = 6;
|
|
1752
|
-
this.
|
|
1752
|
+
this.i1m_1 = new Buffer();
|
|
1753
1753
|
this.j8_1 = 1;
|
|
1754
1754
|
continue $sm;
|
|
1755
1755
|
case 1:
|
|
1756
|
-
if (!(this.
|
|
1756
|
+
if (!(this.i1m_1.g1() < fromInt(this.h1m_1))) {
|
|
1757
1757
|
this.j8_1 = 5;
|
|
1758
1758
|
continue $sm;
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
|
-
if (this.
|
|
1761
|
+
if (this.g1m_1.k1g().jo()) {
|
|
1762
1762
|
this.j8_1 = 2;
|
|
1763
|
-
suspendResult = this.
|
|
1763
|
+
suspendResult = this.g1m_1.t1g(VOID, this);
|
|
1764
1764
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1765
1765
|
return suspendResult;
|
|
1766
1766
|
}
|
|
@@ -1774,7 +1774,7 @@ protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
|
1774
1774
|
this.j8_1 = 3;
|
|
1775
1775
|
continue $sm;
|
|
1776
1776
|
case 3:
|
|
1777
|
-
if (this.
|
|
1777
|
+
if (this.g1m_1.r1g()) {
|
|
1778
1778
|
this.j8_1 = 5;
|
|
1779
1779
|
continue $sm;
|
|
1780
1780
|
} else {
|
|
@@ -1783,20 +1783,20 @@ protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
|
|
1785
1785
|
case 4:
|
|
1786
|
-
if (get_remaining(this.
|
|
1787
|
-
this.
|
|
1786
|
+
if (get_remaining(this.g1m_1.k1g()) > subtract(numberToLong(this.h1m_1), this.i1m_1.g1())) {
|
|
1787
|
+
this.g1m_1.k1g().lp(this.i1m_1, subtract(numberToLong(this.h1m_1), this.i1m_1.g1()));
|
|
1788
1788
|
} else {
|
|
1789
|
-
this.
|
|
1789
|
+
this.g1m_1.k1g().mp(this.i1m_1);
|
|
1790
1790
|
}
|
|
1791
1791
|
|
|
1792
1792
|
this.j8_1 = 1;
|
|
1793
1793
|
continue $sm;
|
|
1794
1794
|
case 5:
|
|
1795
|
-
if (this.
|
|
1796
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1795
|
+
if (this.i1m_1.g1() < fromInt(this.h1m_1)) {
|
|
1796
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.h1m_1 + ' bytes but only ' + this.i1m_1.g1().toString() + ' available');
|
|
1797
1797
|
}
|
|
1798
1798
|
|
|
1799
|
-
return this.
|
|
1799
|
+
return this.i1m_1;
|
|
1800
1800
|
case 6:
|
|
1801
1801
|
throw this.m8_1;
|
|
1802
1802
|
}
|
|
@@ -1813,8 +1813,8 @@ protoOf($readPacketCOROUTINE$).r8 = function () {
|
|
|
1813
1813
|
};
|
|
1814
1814
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1815
1815
|
CoroutineImpl.call(this, resultContinuation);
|
|
1816
|
-
this.
|
|
1817
|
-
this.
|
|
1816
|
+
this.r1m_1 = _this__u8e3s4;
|
|
1817
|
+
this.s1m_1 = count;
|
|
1818
1818
|
}
|
|
1819
1819
|
protoOf($peekCOROUTINE$).r8 = function () {
|
|
1820
1820
|
var suspendResult = this.l8_1;
|
|
@@ -1824,10 +1824,10 @@ protoOf($peekCOROUTINE$).r8 = function () {
|
|
|
1824
1824
|
switch (tmp) {
|
|
1825
1825
|
case 0:
|
|
1826
1826
|
this.k8_1 = 3;
|
|
1827
|
-
if (this.
|
|
1827
|
+
if (this.r1m_1.r1g())
|
|
1828
1828
|
return null;
|
|
1829
1829
|
this.j8_1 = 1;
|
|
1830
|
-
suspendResult = this.
|
|
1830
|
+
suspendResult = this.r1m_1.s1g(this.s1m_1, this);
|
|
1831
1831
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1832
1832
|
return suspendResult;
|
|
1833
1833
|
}
|
|
@@ -1842,7 +1842,7 @@ protoOf($peekCOROUTINE$).r8 = function () {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
1844
|
case 2:
|
|
1845
|
-
return readByteString(this.
|
|
1845
|
+
return readByteString(this.r1m_1.k1g().np(), this.s1m_1);
|
|
1846
1846
|
case 3:
|
|
1847
1847
|
throw this.m8_1;
|
|
1848
1848
|
}
|
|
@@ -1859,11 +1859,11 @@ protoOf($peekCOROUTINE$).r8 = function () {
|
|
|
1859
1859
|
};
|
|
1860
1860
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1861
1861
|
CoroutineImpl.call(this, resultContinuation);
|
|
1862
|
-
this.
|
|
1863
|
-
this.
|
|
1864
|
-
this.
|
|
1865
|
-
this.
|
|
1866
|
-
this.
|
|
1862
|
+
this.b1n_1 = _this__u8e3s4;
|
|
1863
|
+
this.c1n_1 = out;
|
|
1864
|
+
this.d1n_1 = limit;
|
|
1865
|
+
this.e1n_1 = lenientLineEnding;
|
|
1866
|
+
this.f1n_1 = throwOnIncompleteLine;
|
|
1867
1867
|
}
|
|
1868
1868
|
protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
1869
1869
|
var suspendResult = this.l8_1;
|
|
@@ -1873,10 +1873,10 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
1873
1873
|
switch (tmp) {
|
|
1874
1874
|
case 0:
|
|
1875
1875
|
this.k8_1 = 18;
|
|
1876
|
-
this.
|
|
1877
|
-
if (this.
|
|
1876
|
+
this.h1n_1 = this.b1n_1.k1g();
|
|
1877
|
+
if (this.h1n_1.jo()) {
|
|
1878
1878
|
this.j8_1 = 1;
|
|
1879
|
-
suspendResult = this.
|
|
1879
|
+
suspendResult = this.b1n_1.t1g(VOID, this);
|
|
1880
1880
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1881
1881
|
return suspendResult;
|
|
1882
1882
|
}
|
|
@@ -1890,94 +1890,94 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
1890
1890
|
this.j8_1 = 2;
|
|
1891
1891
|
continue $sm;
|
|
1892
1892
|
case 2:
|
|
1893
|
-
if (this.
|
|
1893
|
+
if (this.b1n_1.r1g())
|
|
1894
1894
|
return -1n;
|
|
1895
|
-
this.
|
|
1895
|
+
this.g1n_1 = {_v: 0n};
|
|
1896
1896
|
this.j8_1 = 3;
|
|
1897
1897
|
continue $sm;
|
|
1898
1898
|
case 3:
|
|
1899
|
-
if (!(this.
|
|
1899
|
+
if (!(this.g1n_1._v < this.d1n_1 && !this.b1n_1.r1g())) {
|
|
1900
1900
|
this.j8_1 = 10;
|
|
1901
1901
|
continue $sm;
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
1904
|
-
var limitLeft = subtract(this.
|
|
1905
|
-
var lfIndex = indexOf(this.
|
|
1906
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
1904
|
+
var limitLeft = subtract(this.d1n_1, this.g1n_1._v);
|
|
1905
|
+
var lfIndex = indexOf(this.h1n_1, 10, VOID, limitLeft);
|
|
1906
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.h1n_1, this.e1n_1, lfIndex, limitLeft);
|
|
1907
1907
|
if (crIndex >= 0n) {
|
|
1908
|
-
internalReadLineTo$transferString(this.
|
|
1909
|
-
discard_0(this.
|
|
1910
|
-
return this.
|
|
1908
|
+
internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, crIndex);
|
|
1909
|
+
discard_0(this.h1n_1, 1n);
|
|
1910
|
+
return this.g1n_1._v;
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
1913
|
if (lfIndex === 0n) {
|
|
1914
|
-
discard_0(this.
|
|
1915
|
-
return this.
|
|
1914
|
+
discard_0(this.h1n_1, 1n);
|
|
1915
|
+
return this.g1n_1._v;
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
if (lfIndex > 0n) {
|
|
1919
1919
|
var tmp_0;
|
|
1920
|
-
var tmp_1 = this.
|
|
1921
|
-
if (tmp_1.
|
|
1920
|
+
var tmp_1 = this.h1n_1.io();
|
|
1921
|
+
if (tmp_1.ep(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1922
1922
|
tmp_0 = 1n;
|
|
1923
1923
|
} else {
|
|
1924
1924
|
tmp_0 = 0n;
|
|
1925
1925
|
}
|
|
1926
1926
|
var isCrlf = tmp_0;
|
|
1927
|
-
internalReadLineTo$transferString(this.
|
|
1928
|
-
discard_0(this.
|
|
1929
|
-
return this.
|
|
1927
|
+
internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, subtract(lfIndex, isCrlf));
|
|
1928
|
+
discard_0(this.h1n_1, add(numberToLong(1), isCrlf));
|
|
1929
|
+
return this.g1n_1._v;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
var b = get_remaining(this.
|
|
1932
|
+
var b = get_remaining(this.h1n_1);
|
|
1933
1933
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1934
|
-
var tmp_2 = this.
|
|
1935
|
-
if (tmp_2.
|
|
1936
|
-
internalReadLineTo$transferString(this.
|
|
1934
|
+
var tmp_2 = this.h1n_1.io();
|
|
1935
|
+
if (tmp_2.ep(subtract(count, fromInt(1))) === 13) {
|
|
1936
|
+
internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, subtract(count, fromInt(1)));
|
|
1937
1937
|
this.j8_1 = 4;
|
|
1938
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
1938
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1n_1, this.b1n_1, this.e1n_1, this);
|
|
1939
1939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1940
1940
|
return suspendResult;
|
|
1941
1941
|
}
|
|
1942
1942
|
continue $sm;
|
|
1943
1943
|
} else {
|
|
1944
|
-
internalReadLineTo$transferString(this.
|
|
1944
|
+
internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, count);
|
|
1945
1945
|
this.j8_1 = 6;
|
|
1946
1946
|
continue $sm;
|
|
1947
1947
|
}
|
|
1948
1948
|
|
|
1949
1949
|
case 4:
|
|
1950
1950
|
if (suspendResult) {
|
|
1951
|
-
return this.
|
|
1951
|
+
return this.g1n_1._v;
|
|
1952
1952
|
} else {
|
|
1953
1953
|
this.j8_1 = 5;
|
|
1954
1954
|
continue $sm;
|
|
1955
1955
|
}
|
|
1956
1956
|
|
|
1957
1957
|
case 5:
|
|
1958
|
-
internalReadLineTo$transferString(this.
|
|
1958
|
+
internalReadLineTo$transferString(this.h1n_1, this.c1n_1, this.g1n_1, 1n);
|
|
1959
1959
|
this.j8_1 = 6;
|
|
1960
1960
|
continue $sm;
|
|
1961
1961
|
case 6:
|
|
1962
|
-
if (this.
|
|
1962
|
+
if (this.g1n_1._v < this.d1n_1 && get_remaining(this.h1n_1) === 0n) {
|
|
1963
1963
|
this.j8_1 = 7;
|
|
1964
|
-
suspendResult = this.
|
|
1964
|
+
suspendResult = this.b1n_1.t1g(VOID, this);
|
|
1965
1965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1966
1966
|
return suspendResult;
|
|
1967
1967
|
}
|
|
1968
1968
|
continue $sm;
|
|
1969
1969
|
} else {
|
|
1970
|
-
this.
|
|
1970
|
+
this.j1n_1 = false;
|
|
1971
1971
|
this.j8_1 = 8;
|
|
1972
1972
|
continue $sm;
|
|
1973
1973
|
}
|
|
1974
1974
|
|
|
1975
1975
|
case 7:
|
|
1976
|
-
this.
|
|
1976
|
+
this.j1n_1 = !suspendResult;
|
|
1977
1977
|
this.j8_1 = 8;
|
|
1978
1978
|
continue $sm;
|
|
1979
1979
|
case 8:
|
|
1980
|
-
if (this.
|
|
1980
|
+
if (this.j1n_1) {
|
|
1981
1981
|
this.j8_1 = 10;
|
|
1982
1982
|
continue $sm;
|
|
1983
1983
|
} else {
|
|
@@ -1989,25 +1989,25 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
1989
1989
|
this.j8_1 = 3;
|
|
1990
1990
|
continue $sm;
|
|
1991
1991
|
case 10:
|
|
1992
|
-
if (this.
|
|
1992
|
+
if (this.g1n_1._v === 0n && this.b1n_1.r1g())
|
|
1993
1993
|
return -1n;
|
|
1994
|
-
if (!(this.
|
|
1995
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
1994
|
+
if (!(this.g1n_1._v <= this.d1n_1)) {
|
|
1995
|
+
var message = 'Consumed bytes exceed the limit: ' + this.g1n_1._v.toString() + ' > ' + this.d1n_1.toString() + ". It's an implementation bug, please report it.";
|
|
1996
1996
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1997
1997
|
}
|
|
1998
1998
|
|
|
1999
|
-
if (this.
|
|
2000
|
-
if (this.
|
|
1999
|
+
if (this.g1n_1._v === this.d1n_1) {
|
|
2000
|
+
if (this.d1n_1 === 9223372036854775807n)
|
|
2001
2001
|
throw new TooLongLineException('Max line length exceeded');
|
|
2002
|
-
if (get_remaining(this.
|
|
2002
|
+
if (get_remaining(this.h1n_1) === 0n) {
|
|
2003
2003
|
this.j8_1 = 12;
|
|
2004
|
-
suspendResult = this.
|
|
2004
|
+
suspendResult = this.b1n_1.t1g(VOID, this);
|
|
2005
2005
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2006
2006
|
return suspendResult;
|
|
2007
2007
|
}
|
|
2008
2008
|
continue $sm;
|
|
2009
2009
|
} else {
|
|
2010
|
-
this.
|
|
2010
|
+
this.i1n_1 = false;
|
|
2011
2011
|
this.j8_1 = 13;
|
|
2012
2012
|
continue $sm;
|
|
2013
2013
|
}
|
|
@@ -2017,18 +2017,18 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
|
|
2019
2019
|
case 11:
|
|
2020
|
-
if (this.
|
|
2021
|
-
throwEndOfStreamException(this.
|
|
2020
|
+
if (this.f1n_1) {
|
|
2021
|
+
throwEndOfStreamException(this.g1n_1._v);
|
|
2022
2022
|
}
|
|
2023
2023
|
|
|
2024
|
-
return this.
|
|
2024
|
+
return this.g1n_1._v;
|
|
2025
2025
|
case 12:
|
|
2026
|
-
this.
|
|
2026
|
+
this.i1n_1 = !suspendResult;
|
|
2027
2027
|
this.j8_1 = 13;
|
|
2028
2028
|
continue $sm;
|
|
2029
2029
|
case 13:
|
|
2030
|
-
if (this.
|
|
2031
|
-
throwEndOfStreamException(this.
|
|
2030
|
+
if (this.i1n_1) {
|
|
2031
|
+
throwEndOfStreamException(this.g1n_1._v);
|
|
2032
2032
|
} else {
|
|
2033
2033
|
this.j8_1 = 14;
|
|
2034
2034
|
continue $sm;
|
|
@@ -2036,14 +2036,14 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
2036
2036
|
|
|
2037
2037
|
break;
|
|
2038
2038
|
case 14:
|
|
2039
|
-
var tmp0_subject = this.
|
|
2039
|
+
var tmp0_subject = this.h1n_1.io().ep(0n);
|
|
2040
2040
|
if (tmp0_subject === 10) {
|
|
2041
|
-
discard_0(this.
|
|
2042
|
-
return this.
|
|
2041
|
+
discard_0(this.h1n_1, 1n);
|
|
2042
|
+
return this.g1n_1._v;
|
|
2043
2043
|
} else {
|
|
2044
2044
|
if (tmp0_subject === 13) {
|
|
2045
2045
|
this.j8_1 = 15;
|
|
2046
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2046
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.h1n_1, this.b1n_1, this.e1n_1, this);
|
|
2047
2047
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2048
2048
|
return suspendResult;
|
|
2049
2049
|
}
|
|
@@ -2056,7 +2056,7 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
2056
2056
|
|
|
2057
2057
|
case 15:
|
|
2058
2058
|
if (suspendResult) {
|
|
2059
|
-
return this.
|
|
2059
|
+
return this.g1n_1._v;
|
|
2060
2060
|
} else {
|
|
2061
2061
|
this.j8_1 = 16;
|
|
2062
2062
|
continue $sm;
|
|
@@ -2066,7 +2066,7 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
2066
2066
|
this.j8_1 = 17;
|
|
2067
2067
|
continue $sm;
|
|
2068
2068
|
case 17:
|
|
2069
|
-
throwTooLongLineException(this.
|
|
2069
|
+
throwTooLongLineException(this.d1n_1);
|
|
2070
2070
|
break;
|
|
2071
2071
|
case 18:
|
|
2072
2072
|
throw this.m8_1;
|
|
@@ -2084,9 +2084,9 @@ protoOf($internalReadLineToCOROUTINE$).r8 = function () {
|
|
|
2084
2084
|
};
|
|
2085
2085
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2086
2086
|
CoroutineImpl.call(this, resultContinuation);
|
|
2087
|
-
this.
|
|
2088
|
-
this.
|
|
2089
|
-
this.
|
|
2087
|
+
this.s1n_1 = _this__u8e3s4;
|
|
2088
|
+
this.t1n_1 = $this_internalReadLineTo;
|
|
2089
|
+
this.u1n_1 = $lenientLineEnding;
|
|
2090
2090
|
}
|
|
2091
2091
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
2092
2092
|
var suspendResult = this.l8_1;
|
|
@@ -2096,13 +2096,13 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
|
2096
2096
|
switch (tmp) {
|
|
2097
2097
|
case 0:
|
|
2098
2098
|
this.k8_1 = 5;
|
|
2099
|
-
if (get_remaining(this.
|
|
2100
|
-
this.
|
|
2099
|
+
if (get_remaining(this.s1n_1) >= 2n) {
|
|
2100
|
+
this.w1n_1 = true;
|
|
2101
2101
|
this.j8_1 = 2;
|
|
2102
2102
|
continue $sm;
|
|
2103
2103
|
} else {
|
|
2104
2104
|
this.j8_1 = 1;
|
|
2105
|
-
suspendResult = this.
|
|
2105
|
+
suspendResult = this.t1n_1.s1g(2, this);
|
|
2106
2106
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2107
2107
|
return suspendResult;
|
|
2108
2108
|
}
|
|
@@ -2110,23 +2110,23 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
|
|
2112
2112
|
case 1:
|
|
2113
|
-
this.
|
|
2113
|
+
this.w1n_1 = suspendResult;
|
|
2114
2114
|
this.j8_1 = 2;
|
|
2115
2115
|
continue $sm;
|
|
2116
2116
|
case 2:
|
|
2117
|
-
if (this.
|
|
2118
|
-
this.
|
|
2117
|
+
if (this.w1n_1) {
|
|
2118
|
+
this.v1n_1 = this.s1n_1.io().ep(1n) === 10;
|
|
2119
2119
|
this.j8_1 = 3;
|
|
2120
2120
|
continue $sm;
|
|
2121
2121
|
} else {
|
|
2122
|
-
this.
|
|
2122
|
+
this.v1n_1 = false;
|
|
2123
2123
|
this.j8_1 = 3;
|
|
2124
2124
|
continue $sm;
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
2127
|
case 3:
|
|
2128
|
-
if (this.
|
|
2129
|
-
discard_0(this.
|
|
2128
|
+
if (this.v1n_1) {
|
|
2129
|
+
discard_0(this.s1n_1, 2n);
|
|
2130
2130
|
return true;
|
|
2131
2131
|
} else {
|
|
2132
2132
|
this.j8_1 = 4;
|
|
@@ -2134,8 +2134,8 @@ protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).r8 = function () {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
|
|
2136
2136
|
case 4:
|
|
2137
|
-
if (this.
|
|
2138
|
-
discard_0(this.
|
|
2137
|
+
if (this.u1n_1) {
|
|
2138
|
+
discard_0(this.s1n_1, 1n);
|
|
2139
2139
|
return true;
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
@@ -2164,7 +2164,7 @@ function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
|
2164
2164
|
}
|
|
2165
2165
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2166
2166
|
CoroutineImpl.call(this, resultContinuation);
|
|
2167
|
-
this.
|
|
2167
|
+
this.f1o_1 = _this__u8e3s4;
|
|
2168
2168
|
}
|
|
2169
2169
|
protoOf($flushIfNeededCOROUTINE$).r8 = function () {
|
|
2170
2170
|
var suspendResult = this.l8_1;
|
|
@@ -2174,10 +2174,10 @@ protoOf($flushIfNeededCOROUTINE$).r8 = function () {
|
|
|
2174
2174
|
switch (tmp) {
|
|
2175
2175
|
case 0:
|
|
2176
2176
|
this.k8_1 = 3;
|
|
2177
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2178
|
-
if (this.
|
|
2177
|
+
rethrowCloseCauseIfNeeded_1(this.f1o_1);
|
|
2178
|
+
if (this.f1o_1.j1g() || get_size(this.f1o_1.n1g()) >= 1048576) {
|
|
2179
2179
|
this.j8_1 = 1;
|
|
2180
|
-
suspendResult = this.
|
|
2180
|
+
suspendResult = this.f1o_1.i1g(this);
|
|
2181
2181
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2182
2182
|
return suspendResult;
|
|
2183
2183
|
}
|
|
@@ -2214,15 +2214,15 @@ var NO_CALLBACK;
|
|
|
2214
2214
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2215
2215
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2216
2216
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2217
|
-
_this__u8e3s4.
|
|
2217
|
+
_this__u8e3s4.n1g().sp(value, startIndex, endIndex);
|
|
2218
2218
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2219
2219
|
}
|
|
2220
2220
|
function WriterJob(channel, job) {
|
|
2221
|
-
this.
|
|
2222
|
-
this.
|
|
2221
|
+
this.g1o_1 = channel;
|
|
2222
|
+
this.h1o_1 = job;
|
|
2223
2223
|
}
|
|
2224
|
-
protoOf(WriterJob).
|
|
2225
|
-
return this.
|
|
2224
|
+
protoOf(WriterJob).rx = function () {
|
|
2225
|
+
return this.h1o_1;
|
|
2226
2226
|
};
|
|
2227
2227
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2228
2228
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2231,22 +2231,22 @@ function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
|
2231
2231
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2232
2232
|
}
|
|
2233
2233
|
function WriterScope(channel, coroutineContext) {
|
|
2234
|
-
this.
|
|
2235
|
-
this.
|
|
2234
|
+
this.i1o_1 = channel;
|
|
2235
|
+
this.j1o_1 = coroutineContext;
|
|
2236
2236
|
}
|
|
2237
|
-
protoOf(WriterScope).
|
|
2238
|
-
return this.
|
|
2237
|
+
protoOf(WriterScope).ur = function () {
|
|
2238
|
+
return this.j1o_1;
|
|
2239
2239
|
};
|
|
2240
2240
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2241
2241
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2242
|
-
return _this__u8e3s4.
|
|
2242
|
+
return _this__u8e3s4.rx().ws(block);
|
|
2243
2243
|
}
|
|
2244
2244
|
function close_0(_this__u8e3s4, cause) {
|
|
2245
2245
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2246
2246
|
if (cause == null) {
|
|
2247
2247
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2248
2248
|
} else {
|
|
2249
|
-
_this__u8e3s4.
|
|
2249
|
+
_this__u8e3s4.v1g(cause);
|
|
2250
2250
|
}
|
|
2251
2251
|
}
|
|
2252
2252
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2260,7 +2260,7 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
|
2260
2260
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2261
2261
|
// Inline function 'kotlin.apply' call
|
|
2262
2262
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2263
|
-
this_0.
|
|
2263
|
+
this_0.ws(writer$lambda(channel));
|
|
2264
2264
|
var job = this_0;
|
|
2265
2265
|
return new WriterJob(channel, job);
|
|
2266
2266
|
}
|
|
@@ -2269,14 +2269,14 @@ function fireAndForget(_this__u8e3s4) {
|
|
|
2269
2269
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2270
2270
|
}
|
|
2271
2271
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2272
|
-
_this__u8e3s4.
|
|
2272
|
+
_this__u8e3s4.n1g().cq(value);
|
|
2273
2273
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2274
2274
|
}
|
|
2275
2275
|
function NO_CALLBACK$1() {
|
|
2276
|
-
this.
|
|
2276
|
+
this.u1o_1 = EmptyCoroutineContext_instance;
|
|
2277
2277
|
}
|
|
2278
2278
|
protoOf(NO_CALLBACK$1).p8 = function () {
|
|
2279
|
-
return this.
|
|
2279
|
+
return this.u1o_1;
|
|
2280
2280
|
};
|
|
2281
2281
|
protoOf(NO_CALLBACK$1).q8 = function (result) {
|
|
2282
2282
|
return Unit_instance;
|
|
@@ -2285,36 +2285,36 @@ protoOf(NO_CALLBACK$1).u8 = function (result) {
|
|
|
2285
2285
|
return this.q8(result);
|
|
2286
2286
|
};
|
|
2287
2287
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2288
|
-
this.
|
|
2288
|
+
this.v1o_1 = p0;
|
|
2289
2289
|
}
|
|
2290
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2291
|
-
return this.
|
|
2290
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).w1o = function ($completion) {
|
|
2291
|
+
return this.v1o_1.u1g($completion);
|
|
2292
2292
|
};
|
|
2293
2293
|
protoOf(ByteWriteChannel$flushAndClose$ref).aa = function ($completion) {
|
|
2294
|
-
return this.
|
|
2294
|
+
return this.w1o($completion);
|
|
2295
2295
|
};
|
|
2296
2296
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2297
2297
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2298
2298
|
var l = function ($completion) {
|
|
2299
|
-
return i.
|
|
2299
|
+
return i.w1o($completion);
|
|
2300
2300
|
};
|
|
2301
2301
|
l.callableName = 'flushAndClose';
|
|
2302
2302
|
l.$arity = 0;
|
|
2303
2303
|
return l;
|
|
2304
2304
|
}
|
|
2305
2305
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2306
|
-
this.
|
|
2307
|
-
this.
|
|
2306
|
+
this.f1p_1 = $block;
|
|
2307
|
+
this.g1p_1 = $channel;
|
|
2308
2308
|
CoroutineImpl.call(this, resultContinuation);
|
|
2309
2309
|
}
|
|
2310
|
-
protoOf(writer$slambda).
|
|
2311
|
-
var tmp = this.
|
|
2310
|
+
protoOf(writer$slambda).o1p = function ($this$launch, $completion) {
|
|
2311
|
+
var tmp = this.p1p($this$launch, $completion);
|
|
2312
2312
|
tmp.l8_1 = Unit_instance;
|
|
2313
2313
|
tmp.m8_1 = null;
|
|
2314
2314
|
return tmp.r8();
|
|
2315
2315
|
};
|
|
2316
2316
|
protoOf(writer$slambda).d9 = function (p1, $completion) {
|
|
2317
|
-
return this.
|
|
2317
|
+
return this.o1p((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2318
2318
|
};
|
|
2319
2319
|
protoOf(writer$slambda).r8 = function () {
|
|
2320
2320
|
var suspendResult = this.l8_1;
|
|
@@ -2324,24 +2324,24 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2324
2324
|
switch (tmp) {
|
|
2325
2325
|
case 0:
|
|
2326
2326
|
this.k8_1 = 14;
|
|
2327
|
-
this.
|
|
2327
|
+
this.k1p_1 = Job(get_job(this.h1p_1.ur()));
|
|
2328
2328
|
this.j8_1 = 1;
|
|
2329
2329
|
continue $sm;
|
|
2330
2330
|
case 1:
|
|
2331
2331
|
this.k8_1 = 4;
|
|
2332
2332
|
this.k8_1 = 3;
|
|
2333
2333
|
this.j8_1 = 2;
|
|
2334
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.f1p_1(new WriterScope(this.g1p_1, this.h1p_1.ur().hf(this.k1p_1)), this);
|
|
2335
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2336
|
return suspendResult;
|
|
2337
2337
|
}
|
|
2338
2338
|
|
|
2339
2339
|
continue $sm;
|
|
2340
2340
|
case 2:
|
|
2341
|
-
this.
|
|
2341
|
+
this.k1p_1.my();
|
|
2342
2342
|
var tmp_0;
|
|
2343
|
-
if (get_job(this.
|
|
2344
|
-
this.
|
|
2343
|
+
if (get_job(this.h1p_1.ur()).qs()) {
|
|
2344
|
+
this.g1p_1.v1g(get_job(this.h1p_1.ur()).ts());
|
|
2345
2345
|
tmp_0 = Unit_instance;
|
|
2346
2346
|
}
|
|
2347
2347
|
|
|
@@ -2353,8 +2353,8 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2353
2353
|
var tmp_1 = this.m8_1;
|
|
2354
2354
|
if (tmp_1 instanceof Error) {
|
|
2355
2355
|
var cause = this.m8_1;
|
|
2356
|
-
cancel(this.
|
|
2357
|
-
this.
|
|
2356
|
+
cancel(this.k1p_1, 'Exception thrown while writing to channel', cause);
|
|
2357
|
+
this.g1p_1.v1g(cause);
|
|
2358
2358
|
this.k8_1 = 14;
|
|
2359
2359
|
this.j8_1 = 9;
|
|
2360
2360
|
continue $sm;
|
|
@@ -2364,20 +2364,20 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2364
2364
|
|
|
2365
2365
|
case 4:
|
|
2366
2366
|
this.k8_1 = 14;
|
|
2367
|
-
this.
|
|
2367
|
+
this.l1p_1 = this.m8_1;
|
|
2368
2368
|
this.j8_1 = 5;
|
|
2369
|
-
suspendResult = this.
|
|
2369
|
+
suspendResult = this.k1p_1.at(this);
|
|
2370
2370
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2371
2371
|
return suspendResult;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
2374
|
continue $sm;
|
|
2375
2375
|
case 5:
|
|
2376
|
-
this.
|
|
2376
|
+
this.h1p_1;
|
|
2377
2377
|
this.k8_1 = 7;
|
|
2378
|
-
this.
|
|
2378
|
+
this.n1p_1 = Companion_instance;
|
|
2379
2379
|
this.j8_1 = 6;
|
|
2380
|
-
suspendResult = this.
|
|
2380
|
+
suspendResult = this.g1p_1.u1g(this);
|
|
2381
2381
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2382
2382
|
return suspendResult;
|
|
2383
2383
|
}
|
|
@@ -2385,8 +2385,8 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2385
2385
|
continue $sm;
|
|
2386
2386
|
case 6:
|
|
2387
2387
|
var tmp_2 = this;
|
|
2388
|
-
this.
|
|
2389
|
-
tmp_2.
|
|
2388
|
+
this.n1p_1;
|
|
2389
|
+
tmp_2.m1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2390
2390
|
this.k8_1 = 14;
|
|
2391
2391
|
this.j8_1 = 8;
|
|
2392
2392
|
continue $sm;
|
|
@@ -2396,7 +2396,7 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2396
2396
|
if (tmp_3 instanceof Error) {
|
|
2397
2397
|
var e = this.m8_1;
|
|
2398
2398
|
var tmp_4 = this;
|
|
2399
|
-
tmp_4.
|
|
2399
|
+
tmp_4.m1p_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2400
2400
|
this.j8_1 = 8;
|
|
2401
2401
|
continue $sm;
|
|
2402
2402
|
} else {
|
|
@@ -2405,22 +2405,22 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2405
2405
|
|
|
2406
2406
|
case 8:
|
|
2407
2407
|
this.k8_1 = 14;
|
|
2408
|
-
throw this.
|
|
2408
|
+
throw this.l1p_1;
|
|
2409
2409
|
case 9:
|
|
2410
2410
|
this.k8_1 = 14;
|
|
2411
2411
|
this.j8_1 = 10;
|
|
2412
|
-
suspendResult = this.
|
|
2412
|
+
suspendResult = this.k1p_1.at(this);
|
|
2413
2413
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2414
2414
|
return suspendResult;
|
|
2415
2415
|
}
|
|
2416
2416
|
|
|
2417
2417
|
continue $sm;
|
|
2418
2418
|
case 10:
|
|
2419
|
-
this.
|
|
2419
|
+
this.h1p_1;
|
|
2420
2420
|
this.k8_1 = 12;
|
|
2421
|
-
this.
|
|
2421
|
+
this.j1p_1 = Companion_instance;
|
|
2422
2422
|
this.j8_1 = 11;
|
|
2423
|
-
suspendResult = this.
|
|
2423
|
+
suspendResult = this.g1p_1.u1g(this);
|
|
2424
2424
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2425
2425
|
return suspendResult;
|
|
2426
2426
|
}
|
|
@@ -2428,8 +2428,8 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2428
2428
|
continue $sm;
|
|
2429
2429
|
case 11:
|
|
2430
2430
|
var tmp_5 = this;
|
|
2431
|
-
this.
|
|
2432
|
-
tmp_5.
|
|
2431
|
+
this.j1p_1;
|
|
2432
|
+
tmp_5.i1p_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2433
2433
|
this.k8_1 = 14;
|
|
2434
2434
|
this.j8_1 = 13;
|
|
2435
2435
|
continue $sm;
|
|
@@ -2439,7 +2439,7 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2439
2439
|
if (tmp_6 instanceof Error) {
|
|
2440
2440
|
var e_0 = this.m8_1;
|
|
2441
2441
|
var tmp_7 = this;
|
|
2442
|
-
tmp_7.
|
|
2442
|
+
tmp_7.i1p_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2443
2443
|
this.j8_1 = 13;
|
|
2444
2444
|
continue $sm;
|
|
2445
2445
|
} else {
|
|
@@ -2463,15 +2463,15 @@ protoOf(writer$slambda).r8 = function () {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
while (true);
|
|
2465
2465
|
};
|
|
2466
|
-
protoOf(writer$slambda).
|
|
2467
|
-
var i = new writer$slambda(this.
|
|
2468
|
-
i.
|
|
2466
|
+
protoOf(writer$slambda).p1p = function ($this$launch, completion) {
|
|
2467
|
+
var i = new writer$slambda(this.f1p_1, this.g1p_1, completion);
|
|
2468
|
+
i.h1p_1 = $this$launch;
|
|
2469
2469
|
return i;
|
|
2470
2470
|
};
|
|
2471
2471
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2472
2472
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2473
2473
|
var l = function ($this$launch, $completion) {
|
|
2474
|
-
return i.
|
|
2474
|
+
return i.o1p($this$launch, $completion);
|
|
2475
2475
|
};
|
|
2476
2476
|
l.$arity = 1;
|
|
2477
2477
|
return l;
|
|
@@ -2479,8 +2479,8 @@ function writer$slambda_0($block, $channel, resultContinuation) {
|
|
|
2479
2479
|
function writer$lambda($channel) {
|
|
2480
2480
|
return function (it) {
|
|
2481
2481
|
var tmp;
|
|
2482
|
-
if (!(it == null) && !$channel.
|
|
2483
|
-
$channel.
|
|
2482
|
+
if (!(it == null) && !$channel.o1g()) {
|
|
2483
|
+
$channel.v1g(it);
|
|
2484
2484
|
tmp = Unit_instance;
|
|
2485
2485
|
}
|
|
2486
2486
|
return Unit_instance;
|
|
@@ -2488,8 +2488,8 @@ function writer$lambda($channel) {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2490
2490
|
CoroutineImpl.call(this, resultContinuation);
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2491
|
+
this.s1o_1 = _this__u8e3s4;
|
|
2492
|
+
this.t1o_1 = source;
|
|
2493
2493
|
}
|
|
2494
2494
|
protoOf($writePacketCOROUTINE$).r8 = function () {
|
|
2495
2495
|
var suspendResult = this.l8_1;
|
|
@@ -2502,14 +2502,14 @@ protoOf($writePacketCOROUTINE$).r8 = function () {
|
|
|
2502
2502
|
this.j8_1 = 1;
|
|
2503
2503
|
continue $sm;
|
|
2504
2504
|
case 1:
|
|
2505
|
-
if (!!this.
|
|
2505
|
+
if (!!this.t1o_1.jo()) {
|
|
2506
2506
|
this.j8_1 = 3;
|
|
2507
2507
|
continue $sm;
|
|
2508
2508
|
}
|
|
2509
2509
|
|
|
2510
|
-
this.
|
|
2510
|
+
this.s1o_1.n1g().wp(this.t1o_1, get_remaining(this.t1o_1));
|
|
2511
2511
|
this.j8_1 = 2;
|
|
2512
|
-
suspendResult = flushIfNeeded(this.
|
|
2512
|
+
suspendResult = flushIfNeeded(this.s1o_1, this);
|
|
2513
2513
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2514
2514
|
return suspendResult;
|
|
2515
2515
|
}
|
|
@@ -2554,27 +2554,27 @@ function ClosedByteChannelException$_init_$ref_yjp351() {
|
|
|
2554
2554
|
return l;
|
|
2555
2555
|
}
|
|
2556
2556
|
function CloseToken(origin) {
|
|
2557
|
-
this.
|
|
2557
|
+
this.l1g_1 = origin;
|
|
2558
2558
|
}
|
|
2559
|
-
protoOf(CloseToken).
|
|
2560
|
-
var tmp0_subject = this.
|
|
2559
|
+
protoOf(CloseToken).q1p = function (wrap) {
|
|
2560
|
+
var tmp0_subject = this.l1g_1;
|
|
2561
2561
|
var tmp;
|
|
2562
2562
|
if (tmp0_subject == null) {
|
|
2563
2563
|
tmp = null;
|
|
2564
2564
|
} else {
|
|
2565
2565
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2566
|
-
tmp = this.
|
|
2566
|
+
tmp = this.l1g_1.vy();
|
|
2567
2567
|
} else {
|
|
2568
2568
|
if (tmp0_subject instanceof CancellationException) {
|
|
2569
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2569
|
+
tmp = CancellationException_init_$Create$(this.l1g_1.message, this.l1g_1);
|
|
2570
2570
|
} else {
|
|
2571
|
-
tmp = wrap(this.
|
|
2571
|
+
tmp = wrap(this.l1g_1);
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
return tmp;
|
|
2576
2576
|
};
|
|
2577
|
-
protoOf(CloseToken).
|
|
2577
|
+
protoOf(CloseToken).q1g = function (wrap, $super) {
|
|
2578
2578
|
var tmp;
|
|
2579
2579
|
if (wrap === VOID) {
|
|
2580
2580
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2582,10 +2582,10 @@ protoOf(CloseToken).y1g = function (wrap, $super) {
|
|
|
2582
2582
|
tmp = wrap;
|
|
2583
2583
|
}
|
|
2584
2584
|
wrap = tmp;
|
|
2585
|
-
return $super === VOID ? this.
|
|
2585
|
+
return $super === VOID ? this.q1p(wrap) : $super.q1p.call(this, wrap);
|
|
2586
2586
|
};
|
|
2587
|
-
protoOf(CloseToken).
|
|
2588
|
-
var tmp0_safe_receiver = this.
|
|
2587
|
+
protoOf(CloseToken).m1g = function (wrap) {
|
|
2588
|
+
var tmp0_safe_receiver = this.q1p(wrap);
|
|
2589
2589
|
var tmp;
|
|
2590
2590
|
if (tmp0_safe_receiver == null) {
|
|
2591
2591
|
tmp = null;
|
|
@@ -2604,17 +2604,17 @@ function _init_properties_CloseToken_kt__9ucr41() {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
function transferFromDelegate($this) {
|
|
2606
2606
|
updateConsumed($this);
|
|
2607
|
-
var appended = $this.
|
|
2608
|
-
$this.
|
|
2607
|
+
var appended = $this.s1p_1.bq($this.r1p_1.k1g());
|
|
2608
|
+
$this.t1p_1 = add($this.t1p_1, appended);
|
|
2609
2609
|
}
|
|
2610
2610
|
function updateConsumed($this) {
|
|
2611
|
-
$this.
|
|
2612
|
-
$this.
|
|
2611
|
+
$this.u1p_1 = add($this.u1p_1, subtract($this.t1p_1, $this.s1p_1.g1()));
|
|
2612
|
+
$this.t1p_1 = $this.s1p_1.g1();
|
|
2613
2613
|
}
|
|
2614
2614
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2615
2615
|
CoroutineImpl.call(this, resultContinuation);
|
|
2616
|
-
this.
|
|
2617
|
-
this.
|
|
2616
|
+
this.d1q_1 = _this__u8e3s4;
|
|
2617
|
+
this.e1q_1 = min;
|
|
2618
2618
|
}
|
|
2619
2619
|
protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
2620
2620
|
var suspendResult = this.l8_1;
|
|
@@ -2624,12 +2624,12 @@ protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
|
2624
2624
|
switch (tmp) {
|
|
2625
2625
|
case 0:
|
|
2626
2626
|
this.k8_1 = 3;
|
|
2627
|
-
if (this.
|
|
2627
|
+
if (this.d1q_1.k1g().g1() >= fromInt(this.e1q_1)) {
|
|
2628
2628
|
return true;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
2631
|
this.j8_1 = 1;
|
|
2632
|
-
suspendResult = this.
|
|
2632
|
+
suspendResult = this.d1q_1.r1p_1.s1g(this.e1q_1, this);
|
|
2633
2633
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2634
2634
|
return suspendResult;
|
|
2635
2635
|
}
|
|
@@ -2637,7 +2637,7 @@ protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
|
2637
2637
|
continue $sm;
|
|
2638
2638
|
case 1:
|
|
2639
2639
|
if (suspendResult) {
|
|
2640
|
-
transferFromDelegate(this.
|
|
2640
|
+
transferFromDelegate(this.d1q_1);
|
|
2641
2641
|
return true;
|
|
2642
2642
|
} else {
|
|
2643
2643
|
this.j8_1 = 2;
|
|
@@ -2661,34 +2661,34 @@ protoOf($awaitContentCOROUTINE$_0).r8 = function () {
|
|
|
2661
2661
|
while (true);
|
|
2662
2662
|
};
|
|
2663
2663
|
function CountedByteReadChannel(delegate) {
|
|
2664
|
-
this.
|
|
2665
|
-
this.
|
|
2666
|
-
this.
|
|
2667
|
-
this.
|
|
2664
|
+
this.r1p_1 = delegate;
|
|
2665
|
+
this.s1p_1 = new Buffer();
|
|
2666
|
+
this.t1p_1 = 0n;
|
|
2667
|
+
this.u1p_1 = 0n;
|
|
2668
2668
|
}
|
|
2669
|
-
protoOf(CountedByteReadChannel).
|
|
2669
|
+
protoOf(CountedByteReadChannel).f1q = function () {
|
|
2670
2670
|
updateConsumed(this);
|
|
2671
|
-
return this.
|
|
2671
|
+
return this.u1p_1;
|
|
2672
2672
|
};
|
|
2673
|
-
protoOf(CountedByteReadChannel).
|
|
2674
|
-
return this.
|
|
2673
|
+
protoOf(CountedByteReadChannel).p1g = function () {
|
|
2674
|
+
return this.r1p_1.p1g();
|
|
2675
2675
|
};
|
|
2676
|
-
protoOf(CountedByteReadChannel).
|
|
2677
|
-
return this.
|
|
2676
|
+
protoOf(CountedByteReadChannel).r1g = function () {
|
|
2677
|
+
return this.s1p_1.jo() && this.r1p_1.r1g();
|
|
2678
2678
|
};
|
|
2679
|
-
protoOf(CountedByteReadChannel).
|
|
2679
|
+
protoOf(CountedByteReadChannel).k1g = function () {
|
|
2680
2680
|
transferFromDelegate(this);
|
|
2681
|
-
return this.
|
|
2681
|
+
return this.s1p_1;
|
|
2682
2682
|
};
|
|
2683
|
-
protoOf(CountedByteReadChannel).
|
|
2683
|
+
protoOf(CountedByteReadChannel).s1g = function (min, $completion) {
|
|
2684
2684
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2685
2685
|
tmp.l8_1 = Unit_instance;
|
|
2686
2686
|
tmp.m8_1 = null;
|
|
2687
2687
|
return tmp.r8();
|
|
2688
2688
|
};
|
|
2689
|
-
protoOf(CountedByteReadChannel).
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2689
|
+
protoOf(CountedByteReadChannel).v1g = function (cause) {
|
|
2690
|
+
this.r1p_1.v1g(cause);
|
|
2691
|
+
this.s1p_1.j4();
|
|
2692
2692
|
};
|
|
2693
2693
|
function counted(_this__u8e3s4) {
|
|
2694
2694
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2746,21 +2746,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2748
2748
|
var tmp;
|
|
2749
|
-
if ($this === Companion_getInstance_1().
|
|
2749
|
+
if ($this === Companion_getInstance_1().g1q_1) {
|
|
2750
2750
|
tmp = 'CR';
|
|
2751
|
-
} else if ($this === Companion_getInstance_1().
|
|
2751
|
+
} else if ($this === Companion_getInstance_1().h1q_1) {
|
|
2752
2752
|
tmp = 'LF';
|
|
2753
|
-
} else if ($this === Companion_getInstance_1().
|
|
2753
|
+
} else if ($this === Companion_getInstance_1().i1q_1) {
|
|
2754
2754
|
tmp = 'CRLF';
|
|
2755
2755
|
} else {
|
|
2756
2756
|
// Inline function 'kotlin.collections.filter' call
|
|
2757
|
-
var tmp0 = Companion_getInstance_1().
|
|
2757
|
+
var tmp0 = Companion_getInstance_1().k1q_1;
|
|
2758
2758
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2759
2759
|
var destination = ArrayList_init_$Create$();
|
|
2760
2760
|
var _iterator__ex2g4s = tmp0.t();
|
|
2761
2761
|
while (_iterator__ex2g4s.u()) {
|
|
2762
2762
|
var element = _iterator__ex2g4s.v();
|
|
2763
|
-
var it = element.
|
|
2763
|
+
var it = element.l1q_1;
|
|
2764
2764
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2765
2765
|
destination.e1(element);
|
|
2766
2766
|
}
|
|
@@ -2771,11 +2771,11 @@ function LineEndingMode__toString_impl_j4h76r($this) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
function Companion_1() {
|
|
2773
2773
|
Companion_instance_2 = this;
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2776
|
-
this.
|
|
2777
|
-
this.
|
|
2778
|
-
this.
|
|
2774
|
+
this.g1q_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2775
|
+
this.h1q_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2776
|
+
this.i1q_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2777
|
+
this.j1q_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2778
|
+
this.k1q_1 = listOf([new LineEndingMode(this.g1q_1), new LineEndingMode(this.h1q_1), new LineEndingMode(this.i1q_1)]);
|
|
2779
2779
|
}
|
|
2780
2780
|
var Companion_instance_2;
|
|
2781
2781
|
function Companion_getInstance_1() {
|
|
@@ -2789,67 +2789,67 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
2789
2789
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2790
2790
|
if (!(other instanceof LineEndingMode))
|
|
2791
2791
|
return false;
|
|
2792
|
-
if (!($this === other.
|
|
2792
|
+
if (!($this === other.l1q_1))
|
|
2793
2793
|
return false;
|
|
2794
2794
|
return true;
|
|
2795
2795
|
}
|
|
2796
2796
|
function LineEndingMode(mode) {
|
|
2797
2797
|
Companion_getInstance_1();
|
|
2798
|
-
this.
|
|
2798
|
+
this.l1q_1 = mode;
|
|
2799
2799
|
}
|
|
2800
2800
|
protoOf(LineEndingMode).toString = function () {
|
|
2801
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2801
|
+
return LineEndingMode__toString_impl_j4h76r(this.l1q_1);
|
|
2802
2802
|
};
|
|
2803
2803
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2804
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2804
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.l1q_1);
|
|
2805
2805
|
};
|
|
2806
2806
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2807
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2807
|
+
return LineEndingMode__equals_impl_qyr4nk(this.l1q_1, other);
|
|
2808
2808
|
};
|
|
2809
2809
|
function SourceByteReadChannel(source) {
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2810
|
+
this.m1q_1 = source;
|
|
2811
|
+
this.n1q_1 = null;
|
|
2812
2812
|
}
|
|
2813
|
-
protoOf(SourceByteReadChannel).
|
|
2814
|
-
var tmp0_safe_receiver = this.
|
|
2815
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2813
|
+
protoOf(SourceByteReadChannel).p1g = function () {
|
|
2814
|
+
var tmp0_safe_receiver = this.n1q_1;
|
|
2815
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1g();
|
|
2816
2816
|
};
|
|
2817
|
-
protoOf(SourceByteReadChannel).
|
|
2818
|
-
return this.
|
|
2817
|
+
protoOf(SourceByteReadChannel).r1g = function () {
|
|
2818
|
+
return this.m1q_1.jo();
|
|
2819
2819
|
};
|
|
2820
|
-
protoOf(SourceByteReadChannel).
|
|
2821
|
-
var tmp0_safe_receiver = this.
|
|
2820
|
+
protoOf(SourceByteReadChannel).k1g = function () {
|
|
2821
|
+
var tmp0_safe_receiver = this.p1g();
|
|
2822
2822
|
if (tmp0_safe_receiver == null)
|
|
2823
2823
|
null;
|
|
2824
2824
|
else {
|
|
2825
2825
|
// Inline function 'kotlin.let' call
|
|
2826
2826
|
throw tmp0_safe_receiver;
|
|
2827
2827
|
}
|
|
2828
|
-
return this.
|
|
2828
|
+
return this.m1q_1.io();
|
|
2829
2829
|
};
|
|
2830
|
-
protoOf(SourceByteReadChannel).
|
|
2831
|
-
var tmp0_safe_receiver = this.
|
|
2830
|
+
protoOf(SourceByteReadChannel).s1g = function (min, $completion) {
|
|
2831
|
+
var tmp0_safe_receiver = this.p1g();
|
|
2832
2832
|
if (tmp0_safe_receiver == null)
|
|
2833
2833
|
null;
|
|
2834
2834
|
else {
|
|
2835
2835
|
// Inline function 'kotlin.let' call
|
|
2836
2836
|
throw tmp0_safe_receiver;
|
|
2837
2837
|
}
|
|
2838
|
-
return this.
|
|
2838
|
+
return this.m1q_1.lo(fromInt(min));
|
|
2839
2839
|
};
|
|
2840
|
-
protoOf(SourceByteReadChannel).
|
|
2841
|
-
if (!(this.
|
|
2840
|
+
protoOf(SourceByteReadChannel).v1g = function (cause) {
|
|
2841
|
+
if (!(this.n1q_1 == null))
|
|
2842
2842
|
return Unit_instance;
|
|
2843
|
-
this.
|
|
2843
|
+
this.m1q_1.j4();
|
|
2844
2844
|
var tmp = this;
|
|
2845
2845
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2846
|
-
tmp.
|
|
2846
|
+
tmp.n1q_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2847
2847
|
};
|
|
2848
2848
|
function decode(_this__u8e3s4, input, max) {
|
|
2849
2849
|
max = max === VOID ? 2147483647 : max;
|
|
2850
2850
|
var tmp0 = fromInt(max);
|
|
2851
2851
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2852
|
-
var b = input.
|
|
2852
|
+
var b = input.io().g1();
|
|
2853
2853
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2854
2854
|
// Inline function 'kotlin.text.buildString' call
|
|
2855
2855
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2886,7 +2886,7 @@ function encodeToImpl(_this__u8e3s4, destination, input, fromIndex, toIndex) {
|
|
|
2886
2886
|
}
|
|
2887
2887
|
}
|
|
2888
2888
|
function canRead(_this__u8e3s4) {
|
|
2889
|
-
return !_this__u8e3s4.
|
|
2889
|
+
return !_this__u8e3s4.jo();
|
|
2890
2890
|
}
|
|
2891
2891
|
function readBytes(_this__u8e3s4, count) {
|
|
2892
2892
|
count = count === VOID ? convertToInt(_this__u8e3s4.g1()) : count;
|
|
@@ -2895,35 +2895,35 @@ function readBytes(_this__u8e3s4, count) {
|
|
|
2895
2895
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2896
2896
|
offset = offset === VOID ? 0 : offset;
|
|
2897
2897
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2898
|
-
_this__u8e3s4.
|
|
2898
|
+
_this__u8e3s4.sp(buffer, offset, offset + length | 0);
|
|
2899
2899
|
}
|
|
2900
2900
|
function BytePacketBuilder() {
|
|
2901
2901
|
return new Buffer();
|
|
2902
2902
|
}
|
|
2903
2903
|
function build(_this__u8e3s4) {
|
|
2904
|
-
return _this__u8e3s4.
|
|
2904
|
+
return _this__u8e3s4.io();
|
|
2905
2905
|
}
|
|
2906
2906
|
function get_size(_this__u8e3s4) {
|
|
2907
|
-
return convertToInt(_this__u8e3s4.
|
|
2907
|
+
return convertToInt(_this__u8e3s4.io().g1());
|
|
2908
2908
|
}
|
|
2909
2909
|
var ByteReadPacketEmpty;
|
|
2910
2910
|
function get_remaining(_this__u8e3s4) {
|
|
2911
2911
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2912
|
-
return _this__u8e3s4.
|
|
2912
|
+
return _this__u8e3s4.io().g1();
|
|
2913
2913
|
}
|
|
2914
2914
|
function takeWhile(_this__u8e3s4, block) {
|
|
2915
2915
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2916
|
-
while (!_this__u8e3s4.
|
|
2916
|
+
while (!_this__u8e3s4.jo() && block(_this__u8e3s4.io())) {
|
|
2917
2917
|
}
|
|
2918
2918
|
}
|
|
2919
2919
|
function discard_0(_this__u8e3s4, count) {
|
|
2920
2920
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2921
2921
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2922
|
-
_this__u8e3s4.
|
|
2922
|
+
_this__u8e3s4.lo(count);
|
|
2923
2923
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2924
2924
|
var b = get_remaining(_this__u8e3s4);
|
|
2925
2925
|
var countToDiscard = count <= b ? count : b;
|
|
2926
|
-
_this__u8e3s4.
|
|
2926
|
+
_this__u8e3s4.io().gp(countToDiscard);
|
|
2927
2927
|
return countToDiscard;
|
|
2928
2928
|
}
|
|
2929
2929
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2936,37 +2936,37 @@ function _init_properties_ByteReadPacket_kt__28475y() {
|
|
|
2936
2936
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2937
2937
|
offset = offset === VOID ? 0 : offset;
|
|
2938
2938
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2939
|
-
var result = _this__u8e3s4.
|
|
2939
|
+
var result = _this__u8e3s4.hp(buffer, offset, offset + length | 0);
|
|
2940
2940
|
return result === -1 ? 0 : result;
|
|
2941
2941
|
}
|
|
2942
2942
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2943
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2943
|
+
charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
|
|
2944
2944
|
max = max === VOID ? 2147483647 : max;
|
|
2945
|
-
if (charset.equals(Charsets_getInstance().
|
|
2945
|
+
if (charset.equals(Charsets_getInstance().o1q_1)) {
|
|
2946
2946
|
if (max === 2147483647)
|
|
2947
2947
|
return readString_0(_this__u8e3s4);
|
|
2948
|
-
var tmp0 = _this__u8e3s4.
|
|
2948
|
+
var tmp0 = _this__u8e3s4.io().g1();
|
|
2949
2949
|
// Inline function 'kotlin.math.min' call
|
|
2950
2950
|
var b = fromInt(max);
|
|
2951
2951
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2952
2952
|
return readString(_this__u8e3s4, count);
|
|
2953
2953
|
}
|
|
2954
|
-
return decode(charset.
|
|
2954
|
+
return decode(charset.r1q(), _this__u8e3s4, max);
|
|
2955
2955
|
}
|
|
2956
2956
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2957
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2958
|
-
if (charset.equals(Charsets_getInstance().
|
|
2957
|
+
charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
|
|
2958
|
+
if (charset.equals(Charsets_getInstance().o1q_1))
|
|
2959
2959
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2960
|
-
return encodeToByteArray_0(charset.
|
|
2960
|
+
return encodeToByteArray_0(charset.s1q(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2961
2961
|
}
|
|
2962
2962
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2963
2963
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2964
2964
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2965
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2966
|
-
if (charset === Charsets_getInstance().
|
|
2965
|
+
charset = charset === VOID ? Charsets_getInstance().o1q_1 : charset;
|
|
2966
|
+
if (charset === Charsets_getInstance().o1q_1) {
|
|
2967
2967
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2968
2968
|
}
|
|
2969
|
-
encodeToImpl(charset.
|
|
2969
|
+
encodeToImpl(charset.s1q(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2970
2970
|
}
|
|
2971
2971
|
function get_ByteArrayPool() {
|
|
2972
2972
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2976,7 +2976,7 @@ var ByteArrayPool;
|
|
|
2976
2976
|
function ByteArrayPool$1() {
|
|
2977
2977
|
DefaultPool.call(this, 128);
|
|
2978
2978
|
}
|
|
2979
|
-
protoOf(ByteArrayPool$1).
|
|
2979
|
+
protoOf(ByteArrayPool$1).w1q = function () {
|
|
2980
2980
|
return new Int8Array(4096);
|
|
2981
2981
|
};
|
|
2982
2982
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2990,21 +2990,21 @@ function ObjectPool() {
|
|
|
2990
2990
|
}
|
|
2991
2991
|
function NoPoolImpl() {
|
|
2992
2992
|
}
|
|
2993
|
-
protoOf(NoPoolImpl).
|
|
2993
|
+
protoOf(NoPoolImpl).e1r = function (instance) {
|
|
2994
2994
|
return Unit_instance;
|
|
2995
2995
|
};
|
|
2996
|
-
protoOf(NoPoolImpl).
|
|
2996
|
+
protoOf(NoPoolImpl).fv = function () {
|
|
2997
2997
|
return Unit_instance;
|
|
2998
2998
|
};
|
|
2999
2999
|
function Companion_2() {
|
|
3000
3000
|
}
|
|
3001
|
-
protoOf(Companion_2).
|
|
3001
|
+
protoOf(Companion_2).f1r = function (name) {
|
|
3002
3002
|
switch (name) {
|
|
3003
3003
|
case 'UTF-8':
|
|
3004
3004
|
case 'utf-8':
|
|
3005
3005
|
case 'UTF8':
|
|
3006
3006
|
case 'utf8':
|
|
3007
|
-
return Charsets_getInstance().
|
|
3007
|
+
return Charsets_getInstance().o1q_1;
|
|
3008
3008
|
}
|
|
3009
3009
|
var tmp;
|
|
3010
3010
|
var tmp_0;
|
|
@@ -3035,11 +3035,11 @@ protoOf(Companion_2).n1r = function (name) {
|
|
|
3035
3035
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3036
3036
|
}
|
|
3037
3037
|
if (tmp) {
|
|
3038
|
-
return Charsets_getInstance().
|
|
3038
|
+
return Charsets_getInstance().p1q_1;
|
|
3039
3039
|
}
|
|
3040
3040
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3041
3041
|
};
|
|
3042
|
-
protoOf(Companion_2).
|
|
3042
|
+
protoOf(Companion_2).g1r = function (charset) {
|
|
3043
3043
|
var tmp;
|
|
3044
3044
|
switch (charset) {
|
|
3045
3045
|
case 'UTF-8':
|
|
@@ -3094,7 +3094,7 @@ function Companion_getInstance_2() {
|
|
|
3094
3094
|
return Companion_instance_3;
|
|
3095
3095
|
}
|
|
3096
3096
|
function Charset(_name) {
|
|
3097
|
-
this.
|
|
3097
|
+
this.q1q_1 = _name;
|
|
3098
3098
|
}
|
|
3099
3099
|
protoOf(Charset).equals = function (other) {
|
|
3100
3100
|
if (this === other)
|
|
@@ -3103,18 +3103,18 @@ protoOf(Charset).equals = function (other) {
|
|
|
3103
3103
|
return false;
|
|
3104
3104
|
if (!(other instanceof Charset))
|
|
3105
3105
|
THROW_CCE();
|
|
3106
|
-
return this.
|
|
3106
|
+
return this.q1q_1 === other.q1q_1;
|
|
3107
3107
|
};
|
|
3108
3108
|
protoOf(Charset).hashCode = function () {
|
|
3109
|
-
return getStringHashCode(this.
|
|
3109
|
+
return getStringHashCode(this.q1q_1);
|
|
3110
3110
|
};
|
|
3111
3111
|
protoOf(Charset).toString = function () {
|
|
3112
|
-
return this.
|
|
3112
|
+
return this.q1q_1;
|
|
3113
3113
|
};
|
|
3114
3114
|
function Charsets() {
|
|
3115
3115
|
Charsets_instance = this;
|
|
3116
|
-
this.
|
|
3117
|
-
this.
|
|
3116
|
+
this.o1q_1 = new CharsetImpl('UTF-8');
|
|
3117
|
+
this.p1q_1 = new CharsetImpl('ISO-8859-1');
|
|
3118
3118
|
}
|
|
3119
3119
|
var Charsets_instance;
|
|
3120
3120
|
function Charsets_getInstance() {
|
|
@@ -3123,27 +3123,27 @@ function Charsets_getInstance() {
|
|
|
3123
3123
|
return Charsets_instance;
|
|
3124
3124
|
}
|
|
3125
3125
|
function CharsetDecoder(_charset) {
|
|
3126
|
-
this.
|
|
3126
|
+
this.h1r_1 = _charset;
|
|
3127
3127
|
}
|
|
3128
3128
|
function MalformedInputException(message) {
|
|
3129
3129
|
IOException_init_$Init$_0(message, this);
|
|
3130
3130
|
captureStack(this, MalformedInputException);
|
|
3131
3131
|
}
|
|
3132
3132
|
function get_name(_this__u8e3s4) {
|
|
3133
|
-
return _this__u8e3s4.
|
|
3133
|
+
return _this__u8e3s4.q1q_1;
|
|
3134
3134
|
}
|
|
3135
3135
|
function isSupported(_this__u8e3s4, name) {
|
|
3136
|
-
return Companion_instance_3.
|
|
3136
|
+
return Companion_instance_3.g1r(name);
|
|
3137
3137
|
}
|
|
3138
3138
|
function forName(_this__u8e3s4, name) {
|
|
3139
|
-
return Companion_instance_3.
|
|
3139
|
+
return Companion_instance_3.f1r(name);
|
|
3140
3140
|
}
|
|
3141
3141
|
function CharsetEncoder(_charset) {
|
|
3142
|
-
this.
|
|
3142
|
+
this.i1r_1 = _charset;
|
|
3143
3143
|
}
|
|
3144
3144
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3145
3145
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3146
|
-
var tmp0 = input.
|
|
3146
|
+
var tmp0 = input.io().g1();
|
|
3147
3147
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3148
3148
|
var b = fromInt(max);
|
|
3149
3149
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3153,7 +3153,7 @@ function decode_0(_this__u8e3s4, input, dst, max) {
|
|
|
3153
3153
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3154
3154
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3155
3155
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3156
|
-
tmp = decoder.
|
|
3156
|
+
tmp = decoder.j1r(array);
|
|
3157
3157
|
} catch ($p) {
|
|
3158
3158
|
var tmp_0;
|
|
3159
3159
|
if ($p instanceof Error) {
|
|
@@ -3175,11 +3175,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3175
3175
|
var message = 'Failed requirement.';
|
|
3176
3176
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3177
3177
|
}
|
|
3178
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3178
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().p1q_1)) {
|
|
3179
3179
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3180
3180
|
}
|
|
3181
3181
|
// Inline function 'kotlin.require' call
|
|
3182
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3182
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().o1q_1)) {
|
|
3183
3183
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3184
3184
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3185
3185
|
}
|
|
@@ -3189,7 +3189,7 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
3189
3189
|
var result = encoder.encode(tmp$ret$5);
|
|
3190
3190
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3191
3191
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3192
|
-
dst.
|
|
3192
|
+
dst.vp(result);
|
|
3193
3193
|
return result.length;
|
|
3194
3194
|
}
|
|
3195
3195
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3200,17 +3200,17 @@ function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3200
3200
|
function CharsetImpl(name) {
|
|
3201
3201
|
Charset.call(this, name);
|
|
3202
3202
|
}
|
|
3203
|
-
protoOf(CharsetImpl).
|
|
3203
|
+
protoOf(CharsetImpl).s1q = function () {
|
|
3204
3204
|
return new CharsetEncoderImpl(this);
|
|
3205
3205
|
};
|
|
3206
|
-
protoOf(CharsetImpl).
|
|
3206
|
+
protoOf(CharsetImpl).r1q = function () {
|
|
3207
3207
|
return new CharsetDecoderImpl(this);
|
|
3208
3208
|
};
|
|
3209
3209
|
function get_charset(_this__u8e3s4) {
|
|
3210
|
-
return _this__u8e3s4.
|
|
3210
|
+
return _this__u8e3s4.h1r_1;
|
|
3211
3211
|
}
|
|
3212
3212
|
function get_charset_0(_this__u8e3s4) {
|
|
3213
|
-
return _this__u8e3s4.
|
|
3213
|
+
return _this__u8e3s4.i1r_1;
|
|
3214
3214
|
}
|
|
3215
3215
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3216
3216
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3229,39 +3229,39 @@ function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
function CharsetEncoderImpl(charset) {
|
|
3231
3231
|
CharsetEncoder.call(this, charset);
|
|
3232
|
-
this.
|
|
3232
|
+
this.m1r_1 = charset;
|
|
3233
3233
|
}
|
|
3234
3234
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3235
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3235
|
+
return 'CharsetEncoderImpl(charset=' + this.m1r_1.toString() + ')';
|
|
3236
3236
|
};
|
|
3237
3237
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3238
|
-
return this.
|
|
3238
|
+
return this.m1r_1.hashCode();
|
|
3239
3239
|
};
|
|
3240
3240
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3241
3241
|
if (this === other)
|
|
3242
3242
|
return true;
|
|
3243
3243
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3244
3244
|
return false;
|
|
3245
|
-
if (!this.
|
|
3245
|
+
if (!this.m1r_1.equals(other.m1r_1))
|
|
3246
3246
|
return false;
|
|
3247
3247
|
return true;
|
|
3248
3248
|
};
|
|
3249
3249
|
function CharsetDecoderImpl(charset) {
|
|
3250
3250
|
CharsetDecoder.call(this, charset);
|
|
3251
|
-
this.
|
|
3251
|
+
this.o1r_1 = charset;
|
|
3252
3252
|
}
|
|
3253
3253
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3254
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3254
|
+
return 'CharsetDecoderImpl(charset=' + this.o1r_1.toString() + ')';
|
|
3255
3255
|
};
|
|
3256
3256
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3257
|
-
return this.
|
|
3257
|
+
return this.o1r_1.hashCode();
|
|
3258
3258
|
};
|
|
3259
3259
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3260
3260
|
if (this === other)
|
|
3261
3261
|
return true;
|
|
3262
3262
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3263
3263
|
return false;
|
|
3264
|
-
if (!this.
|
|
3264
|
+
if (!this.o1r_1.equals(other.o1r_1))
|
|
3265
3265
|
return false;
|
|
3266
3266
|
return true;
|
|
3267
3267
|
};
|
|
@@ -3295,10 +3295,10 @@ function textDecoderOptions(fatal) {
|
|
|
3295
3295
|
return this_0;
|
|
3296
3296
|
}
|
|
3297
3297
|
function toKtor$1($this_toKtor) {
|
|
3298
|
-
this.
|
|
3298
|
+
this.p1r_1 = $this_toKtor;
|
|
3299
3299
|
}
|
|
3300
|
-
protoOf(toKtor$1).
|
|
3301
|
-
return this.
|
|
3300
|
+
protoOf(toKtor$1).j1r = function (buffer) {
|
|
3301
|
+
return this.p1r_1.decode(buffer);
|
|
3302
3302
|
};
|
|
3303
3303
|
function get_ENCODING_ALIASES() {
|
|
3304
3304
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3311,7 +3311,7 @@ function get_REPLACEMENT() {
|
|
|
3311
3311
|
}
|
|
3312
3312
|
var REPLACEMENT;
|
|
3313
3313
|
function TextDecoderFallback(encoding, fatal) {
|
|
3314
|
-
this.
|
|
3314
|
+
this.q1r_1 = fatal;
|
|
3315
3315
|
// Inline function 'kotlin.text.trim' call
|
|
3316
3316
|
// Inline function 'kotlin.text.lowercase' call
|
|
3317
3317
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3322,7 +3322,7 @@ function TextDecoderFallback(encoding, fatal) {
|
|
|
3322
3322
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3323
3323
|
}
|
|
3324
3324
|
}
|
|
3325
|
-
protoOf(TextDecoderFallback).
|
|
3325
|
+
protoOf(TextDecoderFallback).j1r = function (buffer) {
|
|
3326
3326
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3327
3327
|
var builder = new Buffer();
|
|
3328
3328
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3338,7 +3338,7 @@ protoOf(TextDecoderFallback).r1r = function (buffer) {
|
|
|
3338
3338
|
var point = toCodePoint(byte);
|
|
3339
3339
|
if (point < 0) {
|
|
3340
3340
|
// Inline function 'kotlin.check' call
|
|
3341
|
-
if (!!this.
|
|
3341
|
+
if (!!this.q1r_1) {
|
|
3342
3342
|
var message = 'Invalid character: ' + point;
|
|
3343
3343
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3344
3344
|
}
|
|
@@ -3346,9 +3346,9 @@ protoOf(TextDecoderFallback).r1r = function (buffer) {
|
|
|
3346
3346
|
continue $l$loop;
|
|
3347
3347
|
}
|
|
3348
3348
|
if (point > 255) {
|
|
3349
|
-
builder.
|
|
3349
|
+
builder.cq(toByte(point >> 8));
|
|
3350
3350
|
}
|
|
3351
|
-
builder.
|
|
3351
|
+
builder.cq(toByte(point & 255));
|
|
3352
3352
|
}
|
|
3353
3353
|
while (inductionVariable < last);
|
|
3354
3354
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -3378,7 +3378,7 @@ function get_DEVELOPMENT_MODE() {
|
|
|
3378
3378
|
return false;
|
|
3379
3379
|
}
|
|
3380
3380
|
function ioDispatcher() {
|
|
3381
|
-
return Dispatchers_getInstance().
|
|
3381
|
+
return Dispatchers_getInstance().j12_1;
|
|
3382
3382
|
}
|
|
3383
3383
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3384
3384
|
if (fromIndex >= toIndex)
|
|
@@ -3394,7 +3394,7 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
3394
3394
|
if (character > 255) {
|
|
3395
3395
|
failedToMapError(character);
|
|
3396
3396
|
}
|
|
3397
|
-
dst.
|
|
3397
|
+
dst.cq(toByte(character));
|
|
3398
3398
|
}
|
|
3399
3399
|
while (inductionVariable < toIndex);
|
|
3400
3400
|
return toIndex - fromIndex | 0;
|
|
@@ -3416,64 +3416,64 @@ function _init_properties_Win1252Table_kt__tl0v64() {
|
|
|
3416
3416
|
}
|
|
3417
3417
|
}
|
|
3418
3418
|
function DefaultPool(capacity) {
|
|
3419
|
-
this.
|
|
3419
|
+
this.x1q_1 = capacity;
|
|
3420
3420
|
var tmp = this;
|
|
3421
3421
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3422
|
-
var size = this.
|
|
3423
|
-
tmp.
|
|
3424
|
-
this.
|
|
3422
|
+
var size = this.x1q_1;
|
|
3423
|
+
tmp.y1q_1 = Array(size);
|
|
3424
|
+
this.z1q_1 = 0;
|
|
3425
3425
|
}
|
|
3426
|
-
protoOf(DefaultPool).
|
|
3426
|
+
protoOf(DefaultPool).a1r = function (instance) {
|
|
3427
3427
|
};
|
|
3428
|
-
protoOf(DefaultPool).
|
|
3428
|
+
protoOf(DefaultPool).b1r = function (instance) {
|
|
3429
3429
|
return instance;
|
|
3430
3430
|
};
|
|
3431
|
-
protoOf(DefaultPool).
|
|
3431
|
+
protoOf(DefaultPool).c1r = function (instance) {
|
|
3432
3432
|
};
|
|
3433
|
-
protoOf(DefaultPool).
|
|
3434
|
-
if (this.
|
|
3435
|
-
return this.
|
|
3436
|
-
this.
|
|
3437
|
-
var idx = this.
|
|
3438
|
-
var tmp = this.
|
|
3433
|
+
protoOf(DefaultPool).d1r = function () {
|
|
3434
|
+
if (this.z1q_1 === 0)
|
|
3435
|
+
return this.w1q();
|
|
3436
|
+
this.z1q_1 = this.z1q_1 - 1 | 0;
|
|
3437
|
+
var idx = this.z1q_1;
|
|
3438
|
+
var tmp = this.y1q_1[idx];
|
|
3439
3439
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3440
|
-
this.
|
|
3441
|
-
return this.
|
|
3440
|
+
this.y1q_1[idx] = null;
|
|
3441
|
+
return this.b1r(instance);
|
|
3442
3442
|
};
|
|
3443
|
-
protoOf(DefaultPool).
|
|
3444
|
-
this.
|
|
3445
|
-
if (this.
|
|
3446
|
-
this.
|
|
3443
|
+
protoOf(DefaultPool).e1r = function (instance) {
|
|
3444
|
+
this.c1r(instance);
|
|
3445
|
+
if (this.z1q_1 === this.x1q_1) {
|
|
3446
|
+
this.a1r(instance);
|
|
3447
3447
|
} else {
|
|
3448
|
-
var _unary__edvuaz = this.
|
|
3449
|
-
this.
|
|
3450
|
-
this.
|
|
3448
|
+
var _unary__edvuaz = this.z1q_1;
|
|
3449
|
+
this.z1q_1 = _unary__edvuaz + 1 | 0;
|
|
3450
|
+
this.y1q_1[_unary__edvuaz] = instance;
|
|
3451
3451
|
}
|
|
3452
3452
|
};
|
|
3453
|
-
protoOf(DefaultPool).
|
|
3453
|
+
protoOf(DefaultPool).fv = function () {
|
|
3454
3454
|
var inductionVariable = 0;
|
|
3455
|
-
var last = this.
|
|
3455
|
+
var last = this.z1q_1;
|
|
3456
3456
|
if (inductionVariable < last)
|
|
3457
3457
|
do {
|
|
3458
3458
|
var i = inductionVariable;
|
|
3459
3459
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3460
|
-
var tmp = this.
|
|
3460
|
+
var tmp = this.y1q_1[i];
|
|
3461
3461
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3462
|
-
this.
|
|
3463
|
-
this.
|
|
3462
|
+
this.y1q_1[i] = null;
|
|
3463
|
+
this.a1r(instance);
|
|
3464
3464
|
}
|
|
3465
3465
|
while (inductionVariable < last);
|
|
3466
|
-
this.
|
|
3466
|
+
this.z1q_1 = 0;
|
|
3467
3467
|
};
|
|
3468
3468
|
//region block: post-declaration
|
|
3469
|
-
protoOf(Read).
|
|
3470
|
-
protoOf(Read).
|
|
3471
|
-
protoOf(Write).
|
|
3472
|
-
protoOf(Write).
|
|
3473
|
-
protoOf(ByteChannel).
|
|
3474
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3475
|
-
protoOf(CountedByteReadChannel).
|
|
3476
|
-
protoOf(SourceByteReadChannel).
|
|
3469
|
+
protoOf(Read).n1e = resume;
|
|
3470
|
+
protoOf(Read).o1e = resume_0;
|
|
3471
|
+
protoOf(Write).n1e = resume;
|
|
3472
|
+
protoOf(Write).o1e = resume_0;
|
|
3473
|
+
protoOf(ByteChannel).t1g = awaitContent$default;
|
|
3474
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1g = awaitContent$default;
|
|
3475
|
+
protoOf(CountedByteReadChannel).t1g = awaitContent$default;
|
|
3476
|
+
protoOf(SourceByteReadChannel).t1g = awaitContent$default;
|
|
3477
3477
|
protoOf(DefaultPool).j4 = close;
|
|
3478
3478
|
protoOf(NoPoolImpl).j4 = close;
|
|
3479
3479
|
//endregion
|
|
@@ -3483,21 +3483,21 @@ Companion_instance_3 = new Companion_2();
|
|
|
3483
3483
|
//endregion
|
|
3484
3484
|
//region block: exports
|
|
3485
3485
|
export {
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3486
|
+
Charsets_getInstance as Charsets_getInstanceqkyjyusuh1b0,
|
|
3487
|
+
Companion_getInstance_0 as Companion_getInstance16dzvgcii8pc4,
|
|
3488
|
+
Companion_getInstance_1 as Companion_getInstanceu6i25dezdn6m,
|
|
3489
|
+
copyTo as copyTo2si6ixg3c5rjz,
|
|
3490
|
+
copyTo_0 as copyTo3d5z1yutz1t4g,
|
|
3491
|
+
readAvailable as readAvailable2v9sgy82btrhn,
|
|
3492
|
+
readLineStrictTo as readLineStrictTo1xxmy01uq4bp,
|
|
3493
|
+
readPacket as readPacket1qzyfym3sry67,
|
|
3494
|
+
readRemaining as readRemaining1u8soafhjma7y,
|
|
3495
|
+
readUntil as readUntil3qqal0dj72fys,
|
|
3496
|
+
skipIfFound as skipIfFound34xzbgurmhd09,
|
|
3497
|
+
toByteArray as toByteArray39hw81iegcnuw,
|
|
3498
|
+
writeFully as writeFully1yd4favg5iwxl,
|
|
3499
|
+
writePacket as writePacket2srkw4h0yhov0,
|
|
3500
|
+
LineEndingMode__plus_impl_ttpz2j as LineEndingMode__plus_impl_ttpz2jpqrbpe81vmkf,
|
|
3501
3501
|
MalformedInputException as MalformedInputExceptionbvc6h5ij0ias,
|
|
3502
3502
|
decode as decode1t43jmuxrxpmo,
|
|
3503
3503
|
encode as encode35e4rpnc94tb5,
|