@doordeck/doordeck-headless-sdk 0.186.0 → 0.188.0
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/Kermit-kermit-core.js +56 -56
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +42 -42
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +37 -37
- package/kotlin/doordeck-sdk.js +12308 -12323
- package/kotlin/kotlin-kotlin-stdlib.js +2489 -2452
- package/kotlin/kotlinx-atomicfu.js +20 -21
- package/kotlin/kotlinx-coroutines-core.js +2285 -2303
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +43 -43
- package/kotlin/kotlinx-io-kotlinx-io-core.js +582 -588
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1826 -1831
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1465 -1468
- package/kotlin/ktor-ktor-client-auth.js +444 -444
- package/kotlin/ktor-ktor-client-content-negotiation.js +203 -203
- package/kotlin/ktor-ktor-client-core.js +3109 -3111
- package/kotlin/ktor-ktor-client-logging.js +1118 -1119
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +537 -539
- package/kotlin/ktor-ktor-http.js +778 -778
- package/kotlin/ktor-ktor-io.js +1106 -1109
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +246 -246
- package/kotlin/ktor-ktor-serialization.js +120 -120
- package/kotlin/ktor-ktor-utils.js +857 -857
- package/kotlin/ktor-ktor-websockets.js +48 -48
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -4,63 +4,60 @@
|
|
|
4
4
|
var Companion_instance = kotlin_kotlin.$_$.w4;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.b5;
|
|
6
6
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var equals = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
14
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
15
|
-
var Result = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.xb;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.bb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.gb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.yg;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.za;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.sa;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ab;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.mg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.tf;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.eb;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.se;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.tb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.wg;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.pb;
|
|
22
22
|
var CoroutineImpl = kotlin_kotlin.$_$.j9;
|
|
23
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
25
|
-
var numberToLong = kotlin_kotlin.$_$.fa;
|
|
23
|
+
var fromInt = kotlin_kotlin.$_$.u9;
|
|
24
|
+
var numberToLong = kotlin_kotlin.$_$.aa;
|
|
26
25
|
var add = kotlin_kotlin.$_$.p9;
|
|
27
26
|
var intercepted = kotlin_kotlin.$_$.w8;
|
|
28
27
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
29
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
|
|
30
29
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
31
30
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.t8;
|
|
32
|
-
var
|
|
33
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.gb;
|
|
31
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.cb;
|
|
34
32
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
35
33
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
36
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
37
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
34
|
+
var convertToInt = kotlin_kotlin.$_$.r9;
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.qf;
|
|
38
36
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
39
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.ja;
|
|
40
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
41
39
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
42
|
-
var replace = kotlin_kotlin.$_$.
|
|
40
|
+
var replace = kotlin_kotlin.$_$.td;
|
|
43
41
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
44
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
-
var equalsLong = kotlin_kotlin.$_$.x9;
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.vf;
|
|
46
43
|
var get_ONE = kotlin_kotlin.$_$.o9;
|
|
47
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
44
|
+
var toString_1 = kotlin_kotlin.$_$.ac;
|
|
48
45
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
49
|
-
var subtract = kotlin_kotlin.$_$.
|
|
46
|
+
var subtract = kotlin_kotlin.$_$.da;
|
|
50
47
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
51
48
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
52
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
49
|
+
var closeFinally = kotlin_kotlin.$_$.kg;
|
|
53
50
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
54
|
-
var
|
|
51
|
+
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.g4;
|
|
55
52
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
56
53
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
57
54
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
58
55
|
var Continuation = kotlin_kotlin.$_$.d9;
|
|
59
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
56
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.db;
|
|
60
57
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
61
58
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
62
59
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
63
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
60
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.fb;
|
|
64
61
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
65
62
|
var CancellationException = kotlin_kotlin.$_$.s8;
|
|
66
63
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
@@ -71,26 +68,26 @@
|
|
|
71
68
|
var listOf = kotlin_kotlin.$_$.m7;
|
|
72
69
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
73
70
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
74
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
71
|
+
var charSequenceLength = kotlin_kotlin.$_$.oa;
|
|
75
72
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
76
73
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
77
74
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
78
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
75
|
+
var encodeToByteArray = kotlin_kotlin.$_$.dd;
|
|
79
76
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
80
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
77
|
+
var AutoCloseable = kotlin_kotlin.$_$.ff;
|
|
81
78
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
82
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
83
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
79
|
+
var replace_0 = kotlin_kotlin.$_$.ud;
|
|
80
|
+
var getStringHashCode = kotlin_kotlin.$_$.ya;
|
|
84
81
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
85
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
82
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.pa;
|
|
86
83
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
87
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
88
|
-
var trim = kotlin_kotlin.$_$.
|
|
89
|
-
var toByte = kotlin_kotlin.$_$.
|
|
90
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
84
|
+
var isCharSequence = kotlin_kotlin.$_$.lb;
|
|
85
|
+
var trim = kotlin_kotlin.$_$.af;
|
|
86
|
+
var toByte = kotlin_kotlin.$_$.yb;
|
|
87
|
+
var decodeToString_0 = kotlin_kotlin.$_$.bd;
|
|
91
88
|
var setOf = kotlin_kotlin.$_$.y7;
|
|
92
89
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
93
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
90
|
+
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
94
91
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
95
92
|
//endregion
|
|
96
93
|
//region block: pre-declaration
|
|
@@ -98,10 +95,10 @@
|
|
|
98
95
|
initMetadataForObject(Empty, 'Empty');
|
|
99
96
|
initMetadataForClass(Closed, 'Closed');
|
|
100
97
|
function resume() {
|
|
101
|
-
return this.
|
|
98
|
+
return this.n1j().l9(Companion_getInstance().k1j_1);
|
|
102
99
|
}
|
|
103
100
|
function resume_0(throwable) {
|
|
104
|
-
var tmp = this.
|
|
101
|
+
var tmp = this.n1j();
|
|
105
102
|
var tmp_0;
|
|
106
103
|
if (throwable == null) {
|
|
107
104
|
tmp_0 = null;
|
|
@@ -112,7 +109,7 @@
|
|
|
112
109
|
tmp_0 = new Result(tmp$ret$2);
|
|
113
110
|
}
|
|
114
111
|
var tmp1_elvis_lhs = tmp_0;
|
|
115
|
-
return tmp.
|
|
112
|
+
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().k1j_1 : tmp1_elvis_lhs.il_1);
|
|
116
113
|
}
|
|
117
114
|
initMetadataForInterface(Task, 'Task');
|
|
118
115
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -122,7 +119,7 @@
|
|
|
122
119
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
123
120
|
function awaitContent$default(min, $completion, $super) {
|
|
124
121
|
min = min === VOID ? 1 : min;
|
|
125
|
-
return $super === VOID ? this.
|
|
122
|
+
return $super === VOID ? this.u1l(min, $completion) : $super.u1l.call(this, min, $completion);
|
|
126
123
|
}
|
|
127
124
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
128
125
|
function get_autoFlush() {
|
|
@@ -168,7 +165,7 @@
|
|
|
168
165
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
169
166
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
170
167
|
function close() {
|
|
171
|
-
this.
|
|
168
|
+
this.cv();
|
|
172
169
|
}
|
|
173
170
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
174
171
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -187,10 +184,10 @@
|
|
|
187
184
|
//endregion
|
|
188
185
|
function Companion() {
|
|
189
186
|
Companion_instance_0 = this;
|
|
190
|
-
this.
|
|
187
|
+
this.j1j_1 = new Closed(null);
|
|
191
188
|
var tmp = this;
|
|
192
189
|
// Inline function 'kotlin.Companion.success' call
|
|
193
|
-
tmp.
|
|
190
|
+
tmp.k1j_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
194
191
|
}
|
|
195
192
|
var Companion_instance_0;
|
|
196
193
|
function Companion_getInstance() {
|
|
@@ -218,87 +215,87 @@
|
|
|
218
215
|
return Empty_instance;
|
|
219
216
|
}
|
|
220
217
|
function Closed(cause) {
|
|
221
|
-
this.
|
|
218
|
+
this.l1j_1 = cause;
|
|
222
219
|
}
|
|
223
220
|
protoOf(Closed).toString = function () {
|
|
224
|
-
return 'Closed(cause=' + toString(this.
|
|
221
|
+
return 'Closed(cause=' + toString(this.l1j_1) + ')';
|
|
225
222
|
};
|
|
226
223
|
protoOf(Closed).hashCode = function () {
|
|
227
|
-
return this.
|
|
224
|
+
return this.l1j_1 == null ? 0 : hashCode(this.l1j_1);
|
|
228
225
|
};
|
|
229
226
|
protoOf(Closed).equals = function (other) {
|
|
230
227
|
if (this === other)
|
|
231
228
|
return true;
|
|
232
229
|
if (!(other instanceof Closed))
|
|
233
230
|
return false;
|
|
234
|
-
if (!equals(this.
|
|
231
|
+
if (!equals(this.l1j_1, other.l1j_1))
|
|
235
232
|
return false;
|
|
236
233
|
return true;
|
|
237
234
|
};
|
|
238
235
|
function Task() {
|
|
239
236
|
}
|
|
240
237
|
function Read(continuation) {
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
238
|
+
this.r1j_1 = continuation;
|
|
239
|
+
this.s1j_1 = null;
|
|
243
240
|
if (get_DEVELOPMENT_MODE()) {
|
|
244
241
|
var tmp = this;
|
|
245
242
|
// Inline function 'kotlin.also' call
|
|
246
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
243
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.r1j_1), 16));
|
|
247
244
|
stackTraceToString(this_0);
|
|
248
|
-
tmp.
|
|
245
|
+
tmp.s1j_1 = this_0;
|
|
249
246
|
}
|
|
250
247
|
}
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
248
|
+
protoOf(Read).n1j = function () {
|
|
249
|
+
return this.r1j_1;
|
|
253
250
|
};
|
|
254
|
-
protoOf(Read).
|
|
255
|
-
return this.
|
|
251
|
+
protoOf(Read).m1j = function () {
|
|
252
|
+
return this.s1j_1;
|
|
256
253
|
};
|
|
257
|
-
protoOf(Read).
|
|
254
|
+
protoOf(Read).o1j = function () {
|
|
258
255
|
return 'read';
|
|
259
256
|
};
|
|
260
257
|
function Write(continuation) {
|
|
261
|
-
this.
|
|
262
|
-
this.
|
|
258
|
+
this.t1j_1 = continuation;
|
|
259
|
+
this.u1j_1 = null;
|
|
263
260
|
if (get_DEVELOPMENT_MODE()) {
|
|
264
261
|
var tmp = this;
|
|
265
262
|
// Inline function 'kotlin.also' call
|
|
266
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
263
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.t1j_1), 16));
|
|
267
264
|
stackTraceToString(this_0);
|
|
268
|
-
tmp.
|
|
265
|
+
tmp.u1j_1 = this_0;
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
268
|
+
protoOf(Write).n1j = function () {
|
|
269
|
+
return this.t1j_1;
|
|
273
270
|
};
|
|
274
|
-
protoOf(Write).
|
|
275
|
-
return this.
|
|
271
|
+
protoOf(Write).m1j = function () {
|
|
272
|
+
return this.u1j_1;
|
|
276
273
|
};
|
|
277
|
-
protoOf(Write).
|
|
274
|
+
protoOf(Write).o1j = function () {
|
|
278
275
|
return 'write';
|
|
279
276
|
};
|
|
280
277
|
function moveFlushToReadBuffer($this) {
|
|
281
278
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
282
|
-
$this.
|
|
283
|
-
$this.
|
|
284
|
-
$this.
|
|
279
|
+
$this.y1j_1;
|
|
280
|
+
$this.w1j_1.wp($this.a1k_1);
|
|
281
|
+
$this.x1j_1 = 0;
|
|
285
282
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
286
|
-
var current = $this.
|
|
283
|
+
var current = $this.z1j_1.kotlinx$atomicfu$value;
|
|
287
284
|
var tmp;
|
|
288
285
|
if (current instanceof Write) {
|
|
289
|
-
tmp = $this.
|
|
286
|
+
tmp = $this.z1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
290
287
|
} else {
|
|
291
288
|
tmp = false;
|
|
292
289
|
}
|
|
293
290
|
if (tmp) {
|
|
294
|
-
current.
|
|
291
|
+
current.p1j();
|
|
295
292
|
}
|
|
296
293
|
}
|
|
297
294
|
function closeSlot($this, cause) {
|
|
298
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
299
|
-
var continuation = $this.
|
|
295
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().j1j_1;
|
|
296
|
+
var continuation = $this.z1j_1.atomicfu$getAndSet(closeContinuation);
|
|
300
297
|
if (isInterface(continuation, Task)) {
|
|
301
|
-
continuation.
|
|
298
|
+
continuation.q1j(cause);
|
|
302
299
|
}
|
|
303
300
|
}
|
|
304
301
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -317,50 +314,50 @@
|
|
|
317
314
|
}
|
|
318
315
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
319
316
|
CoroutineImpl.call(this, resultContinuation);
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
317
|
+
this.l1k_1 = _this__u8e3s4;
|
|
318
|
+
this.m1k_1 = min;
|
|
322
319
|
}
|
|
323
|
-
protoOf($awaitContentCOROUTINE$).
|
|
324
|
-
var suspendResult = this.
|
|
320
|
+
protoOf($awaitContentCOROUTINE$).i9 = function () {
|
|
321
|
+
var suspendResult = this.c9_1;
|
|
325
322
|
$sm: do
|
|
326
323
|
try {
|
|
327
|
-
var tmp = this.
|
|
324
|
+
var tmp = this.a9_1;
|
|
328
325
|
switch (tmp) {
|
|
329
326
|
case 0:
|
|
330
|
-
this.
|
|
331
|
-
rethrowCloseCauseIfNeeded(this.
|
|
332
|
-
if (
|
|
327
|
+
this.b9_1 = 4;
|
|
328
|
+
rethrowCloseCauseIfNeeded(this.l1k_1);
|
|
329
|
+
if (this.l1k_1.a1k_1.l1() >= fromInt(this.m1k_1))
|
|
333
330
|
return true;
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
331
|
+
this.n1k_1 = this.l1k_1;
|
|
332
|
+
this.a9_1 = 1;
|
|
336
333
|
continue $sm;
|
|
337
334
|
case 1:
|
|
338
|
-
if (!(
|
|
339
|
-
this.
|
|
335
|
+
if (!(add(numberToLong(this.l1k_1.x1j_1), this.l1k_1.a1k_1.l1()) < fromInt(this.m1k_1) && this.l1k_1.c1k_1.kotlinx$atomicfu$value == null)) {
|
|
336
|
+
this.a9_1 = 3;
|
|
340
337
|
continue $sm;
|
|
341
338
|
}
|
|
342
339
|
|
|
343
|
-
this.
|
|
340
|
+
this.a9_1 = 2;
|
|
344
341
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
345
|
-
cancellable.
|
|
346
|
-
var tmp0 = this.
|
|
342
|
+
cancellable.fw();
|
|
343
|
+
var tmp0 = this.n1k_1;
|
|
347
344
|
var tmp2 = new Read(cancellable);
|
|
348
345
|
l$ret$1: do {
|
|
349
|
-
var previous = tmp0.
|
|
346
|
+
var previous = tmp0.z1j_1.kotlinx$atomicfu$value;
|
|
350
347
|
if (!(previous instanceof Closed)) {
|
|
351
|
-
if (!tmp0.
|
|
352
|
-
tmp2.
|
|
348
|
+
if (!tmp0.z1j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
349
|
+
tmp2.p1j();
|
|
353
350
|
break l$ret$1;
|
|
354
351
|
}
|
|
355
352
|
}
|
|
356
353
|
if (previous instanceof Read) {
|
|
357
|
-
previous.
|
|
354
|
+
previous.q1j(new ConcurrentIOException(tmp2.o1j(), previous.m1j()));
|
|
358
355
|
} else {
|
|
359
356
|
if (isInterface(previous, Task)) {
|
|
360
|
-
previous.
|
|
357
|
+
previous.p1j();
|
|
361
358
|
} else {
|
|
362
359
|
if (previous instanceof Closed) {
|
|
363
|
-
tmp2.
|
|
360
|
+
tmp2.q1j(previous.l1j_1);
|
|
364
361
|
break l$ret$1;
|
|
365
362
|
} else {
|
|
366
363
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -369,95 +366,95 @@
|
|
|
369
366
|
}
|
|
370
367
|
}
|
|
371
368
|
}
|
|
372
|
-
if (!(
|
|
373
|
-
var current = tmp0.
|
|
369
|
+
if (!(add(numberToLong(this.l1k_1.x1j_1), this.l1k_1.a1k_1.l1()) < fromInt(this.m1k_1) && this.l1k_1.c1k_1.kotlinx$atomicfu$value == null)) {
|
|
370
|
+
var current = tmp0.z1j_1.kotlinx$atomicfu$value;
|
|
374
371
|
var tmp_0;
|
|
375
372
|
if (current instanceof Read) {
|
|
376
|
-
tmp_0 = tmp0.
|
|
373
|
+
tmp_0 = tmp0.z1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
377
374
|
} else {
|
|
378
375
|
tmp_0 = false;
|
|
379
376
|
}
|
|
380
377
|
if (tmp_0) {
|
|
381
|
-
current.
|
|
378
|
+
current.p1j();
|
|
382
379
|
}
|
|
383
380
|
}
|
|
384
381
|
}
|
|
385
382
|
while (false);
|
|
386
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
383
|
+
suspendResult = returnIfSuspended(cancellable.gw(), this);
|
|
387
384
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
388
385
|
return suspendResult;
|
|
389
386
|
}
|
|
390
387
|
|
|
391
388
|
continue $sm;
|
|
392
389
|
case 2:
|
|
393
|
-
this.
|
|
390
|
+
this.a9_1 = 1;
|
|
394
391
|
continue $sm;
|
|
395
392
|
case 3:
|
|
396
|
-
if (
|
|
397
|
-
moveFlushToReadBuffer(this.
|
|
393
|
+
if (this.l1k_1.a1k_1.l1() < 1048576n) {
|
|
394
|
+
moveFlushToReadBuffer(this.l1k_1);
|
|
398
395
|
}
|
|
399
396
|
|
|
400
|
-
return
|
|
397
|
+
return this.l1k_1.a1k_1.l1() >= fromInt(this.m1k_1);
|
|
401
398
|
case 4:
|
|
402
|
-
throw this.
|
|
399
|
+
throw this.d9_1;
|
|
403
400
|
}
|
|
404
401
|
} catch ($p) {
|
|
405
402
|
var e = $p;
|
|
406
|
-
if (this.
|
|
403
|
+
if (this.b9_1 === 4) {
|
|
407
404
|
throw e;
|
|
408
405
|
} else {
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
406
|
+
this.a9_1 = this.b9_1;
|
|
407
|
+
this.d9_1 = e;
|
|
411
408
|
}
|
|
412
409
|
}
|
|
413
410
|
while (true);
|
|
414
411
|
};
|
|
415
412
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
416
413
|
CoroutineImpl.call(this, resultContinuation);
|
|
417
|
-
this.
|
|
414
|
+
this.w1k_1 = _this__u8e3s4;
|
|
418
415
|
}
|
|
419
|
-
protoOf($flushCOROUTINE$).
|
|
420
|
-
var suspendResult = this.
|
|
416
|
+
protoOf($flushCOROUTINE$).i9 = function () {
|
|
417
|
+
var suspendResult = this.c9_1;
|
|
421
418
|
$sm: do
|
|
422
419
|
try {
|
|
423
|
-
var tmp = this.
|
|
420
|
+
var tmp = this.a9_1;
|
|
424
421
|
switch (tmp) {
|
|
425
422
|
case 0:
|
|
426
|
-
this.
|
|
427
|
-
rethrowCloseCauseIfNeeded(this.
|
|
428
|
-
this.
|
|
429
|
-
if (this.
|
|
423
|
+
this.b9_1 = 4;
|
|
424
|
+
rethrowCloseCauseIfNeeded(this.w1k_1);
|
|
425
|
+
this.w1k_1.y1k();
|
|
426
|
+
if (this.w1k_1.x1j_1 < 1048576)
|
|
430
427
|
return Unit_instance;
|
|
431
|
-
this.
|
|
432
|
-
this.
|
|
428
|
+
this.x1k_1 = this.w1k_1;
|
|
429
|
+
this.a9_1 = 1;
|
|
433
430
|
continue $sm;
|
|
434
431
|
case 1:
|
|
435
|
-
if (!(this.
|
|
436
|
-
this.
|
|
432
|
+
if (!(this.w1k_1.x1j_1 >= 1048576 && this.w1k_1.c1k_1.kotlinx$atomicfu$value == null)) {
|
|
433
|
+
this.a9_1 = 3;
|
|
437
434
|
continue $sm;
|
|
438
435
|
}
|
|
439
436
|
|
|
440
|
-
this.
|
|
437
|
+
this.a9_1 = 2;
|
|
441
438
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
442
|
-
cancellable.
|
|
443
|
-
var tmp0 = this.
|
|
439
|
+
cancellable.fw();
|
|
440
|
+
var tmp0 = this.x1k_1;
|
|
444
441
|
var tmp2 = new Write(cancellable);
|
|
445
442
|
l$ret$1: do {
|
|
446
|
-
var previous = tmp0.
|
|
443
|
+
var previous = tmp0.z1j_1.kotlinx$atomicfu$value;
|
|
447
444
|
if (!(previous instanceof Closed)) {
|
|
448
|
-
if (!tmp0.
|
|
449
|
-
tmp2.
|
|
445
|
+
if (!tmp0.z1j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
446
|
+
tmp2.p1j();
|
|
450
447
|
break l$ret$1;
|
|
451
448
|
}
|
|
452
449
|
}
|
|
453
450
|
if (previous instanceof Write) {
|
|
454
|
-
previous.
|
|
451
|
+
previous.q1j(new ConcurrentIOException(tmp2.o1j(), previous.m1j()));
|
|
455
452
|
} else {
|
|
456
453
|
if (isInterface(previous, Task)) {
|
|
457
|
-
previous.
|
|
454
|
+
previous.p1j();
|
|
458
455
|
} else {
|
|
459
456
|
if (previous instanceof Closed) {
|
|
460
|
-
tmp2.
|
|
457
|
+
tmp2.q1j(previous.l1j_1);
|
|
461
458
|
break l$ret$1;
|
|
462
459
|
} else {
|
|
463
460
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -466,62 +463,62 @@
|
|
|
466
463
|
}
|
|
467
464
|
}
|
|
468
465
|
}
|
|
469
|
-
if (!(this.
|
|
470
|
-
var current = tmp0.
|
|
466
|
+
if (!(this.w1k_1.x1j_1 >= 1048576 && this.w1k_1.c1k_1.kotlinx$atomicfu$value == null)) {
|
|
467
|
+
var current = tmp0.z1j_1.kotlinx$atomicfu$value;
|
|
471
468
|
var tmp_0;
|
|
472
469
|
if (current instanceof Write) {
|
|
473
|
-
tmp_0 = tmp0.
|
|
470
|
+
tmp_0 = tmp0.z1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
474
471
|
} else {
|
|
475
472
|
tmp_0 = false;
|
|
476
473
|
}
|
|
477
474
|
if (tmp_0) {
|
|
478
|
-
current.
|
|
475
|
+
current.p1j();
|
|
479
476
|
}
|
|
480
477
|
}
|
|
481
478
|
}
|
|
482
479
|
while (false);
|
|
483
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
480
|
+
suspendResult = returnIfSuspended(cancellable.gw(), this);
|
|
484
481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
485
482
|
return suspendResult;
|
|
486
483
|
}
|
|
487
484
|
|
|
488
485
|
continue $sm;
|
|
489
486
|
case 2:
|
|
490
|
-
this.
|
|
487
|
+
this.a9_1 = 1;
|
|
491
488
|
continue $sm;
|
|
492
489
|
case 3:
|
|
493
490
|
return Unit_instance;
|
|
494
491
|
case 4:
|
|
495
|
-
throw this.
|
|
492
|
+
throw this.d9_1;
|
|
496
493
|
}
|
|
497
494
|
} catch ($p) {
|
|
498
495
|
var e = $p;
|
|
499
|
-
if (this.
|
|
496
|
+
if (this.b9_1 === 4) {
|
|
500
497
|
throw e;
|
|
501
498
|
} else {
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
499
|
+
this.a9_1 = this.b9_1;
|
|
500
|
+
this.d9_1 = e;
|
|
504
501
|
}
|
|
505
502
|
}
|
|
506
503
|
while (true);
|
|
507
504
|
};
|
|
508
505
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
509
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
510
|
-
this.
|
|
507
|
+
this.h1l_1 = _this__u8e3s4;
|
|
511
508
|
}
|
|
512
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
513
|
-
var suspendResult = this.
|
|
509
|
+
protoOf($flushAndCloseCOROUTINE$).i9 = function () {
|
|
510
|
+
var suspendResult = this.c9_1;
|
|
514
511
|
$sm: do
|
|
515
512
|
try {
|
|
516
|
-
var tmp = this.
|
|
513
|
+
var tmp = this.a9_1;
|
|
517
514
|
switch (tmp) {
|
|
518
515
|
case 0:
|
|
519
|
-
this.
|
|
520
|
-
var this_0 = this.
|
|
521
|
-
this.
|
|
522
|
-
this.
|
|
523
|
-
this.
|
|
524
|
-
suspendResult = this_0.
|
|
516
|
+
this.b9_1 = 4;
|
|
517
|
+
var this_0 = this.h1l_1;
|
|
518
|
+
this.b9_1 = 2;
|
|
519
|
+
this.j1l_1 = Companion_instance;
|
|
520
|
+
this.a9_1 = 1;
|
|
521
|
+
suspendResult = this_0.k1l(this);
|
|
525
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
526
523
|
return suspendResult;
|
|
527
524
|
}
|
|
@@ -529,144 +526,144 @@
|
|
|
529
526
|
continue $sm;
|
|
530
527
|
case 1:
|
|
531
528
|
var tmp_0 = this;
|
|
532
|
-
this.
|
|
533
|
-
tmp_0.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
529
|
+
this.j1l_1;
|
|
530
|
+
tmp_0.i1l_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
531
|
+
this.b9_1 = 4;
|
|
532
|
+
this.a9_1 = 3;
|
|
536
533
|
continue $sm;
|
|
537
534
|
case 2:
|
|
538
|
-
this.
|
|
539
|
-
var tmp_1 = this.
|
|
535
|
+
this.b9_1 = 4;
|
|
536
|
+
var tmp_1 = this.d9_1;
|
|
540
537
|
if (tmp_1 instanceof Error) {
|
|
541
|
-
var e = this.
|
|
538
|
+
var e = this.d9_1;
|
|
542
539
|
var tmp_2 = this;
|
|
543
|
-
tmp_2.
|
|
544
|
-
this.
|
|
540
|
+
tmp_2.i1l_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
541
|
+
this.a9_1 = 3;
|
|
545
542
|
continue $sm;
|
|
546
543
|
} else {
|
|
547
|
-
throw this.
|
|
544
|
+
throw this.d9_1;
|
|
548
545
|
}
|
|
549
546
|
|
|
550
547
|
case 3:
|
|
551
|
-
this.
|
|
552
|
-
if (!this.
|
|
548
|
+
this.b9_1 = 4;
|
|
549
|
+
if (!this.h1l_1.c1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
553
550
|
return Unit_instance;
|
|
554
|
-
closeSlot(this.
|
|
551
|
+
closeSlot(this.h1l_1, null);
|
|
555
552
|
return Unit_instance;
|
|
556
553
|
case 4:
|
|
557
|
-
throw this.
|
|
554
|
+
throw this.d9_1;
|
|
558
555
|
}
|
|
559
556
|
} catch ($p) {
|
|
560
557
|
var e_0 = $p;
|
|
561
|
-
if (this.
|
|
558
|
+
if (this.b9_1 === 4) {
|
|
562
559
|
throw e_0;
|
|
563
560
|
} else {
|
|
564
|
-
this.
|
|
565
|
-
this.
|
|
561
|
+
this.a9_1 = this.b9_1;
|
|
562
|
+
this.d9_1 = e_0;
|
|
566
563
|
}
|
|
567
564
|
}
|
|
568
565
|
while (true);
|
|
569
566
|
};
|
|
570
567
|
function ByteChannel(autoFlush) {
|
|
571
568
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
579
|
-
this.
|
|
580
|
-
}
|
|
581
|
-
protoOf(ByteChannel).
|
|
582
|
-
return this.
|
|
569
|
+
this.v1j_1 = autoFlush;
|
|
570
|
+
this.w1j_1 = new Buffer();
|
|
571
|
+
this.x1j_1 = 0;
|
|
572
|
+
this.y1j_1 = new Object();
|
|
573
|
+
this.z1j_1 = atomic$ref$1(Empty_instance);
|
|
574
|
+
this.a1k_1 = new Buffer();
|
|
575
|
+
this.b1k_1 = new Buffer();
|
|
576
|
+
this.c1k_1 = atomic$ref$1(null);
|
|
577
|
+
}
|
|
578
|
+
protoOf(ByteChannel).l1l = function () {
|
|
579
|
+
return this.v1j_1;
|
|
583
580
|
};
|
|
584
|
-
protoOf(ByteChannel).
|
|
585
|
-
var tmp0_safe_receiver = this.
|
|
581
|
+
protoOf(ByteChannel).m1l = function () {
|
|
582
|
+
var tmp0_safe_receiver = this.c1k_1.kotlinx$atomicfu$value;
|
|
586
583
|
if (tmp0_safe_receiver == null)
|
|
587
584
|
null;
|
|
588
585
|
else {
|
|
589
|
-
tmp0_safe_receiver.
|
|
586
|
+
tmp0_safe_receiver.o1l(ClosedReadChannelException$_init_$ref_ix0089());
|
|
590
587
|
}
|
|
591
|
-
if (this.
|
|
588
|
+
if (this.a1k_1.to()) {
|
|
592
589
|
moveFlushToReadBuffer(this);
|
|
593
590
|
}
|
|
594
|
-
return this.
|
|
591
|
+
return this.a1k_1;
|
|
595
592
|
};
|
|
596
|
-
protoOf(ByteChannel).
|
|
597
|
-
if (this.
|
|
598
|
-
var tmp0_safe_receiver = this.
|
|
593
|
+
protoOf(ByteChannel).p1l = function () {
|
|
594
|
+
if (this.q1l()) {
|
|
595
|
+
var tmp0_safe_receiver = this.c1k_1.kotlinx$atomicfu$value;
|
|
599
596
|
var tmp;
|
|
600
597
|
if (tmp0_safe_receiver == null) {
|
|
601
598
|
tmp = null;
|
|
602
599
|
} else {
|
|
603
|
-
tmp = tmp0_safe_receiver.
|
|
600
|
+
tmp = tmp0_safe_receiver.o1l(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
604
601
|
}
|
|
605
602
|
if (tmp == null)
|
|
606
603
|
throw new ClosedWriteChannelException();
|
|
607
604
|
}
|
|
608
|
-
return this.
|
|
605
|
+
return this.b1k_1;
|
|
609
606
|
};
|
|
610
|
-
protoOf(ByteChannel).
|
|
611
|
-
var tmp0_safe_receiver = this.
|
|
612
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
607
|
+
protoOf(ByteChannel).r1l = function () {
|
|
608
|
+
var tmp0_safe_receiver = this.c1k_1.kotlinx$atomicfu$value;
|
|
609
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l();
|
|
613
610
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
return !(this.
|
|
611
|
+
protoOf(ByteChannel).q1l = function () {
|
|
612
|
+
return !(this.c1k_1.kotlinx$atomicfu$value == null);
|
|
616
613
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
618
|
-
return !(this.
|
|
614
|
+
protoOf(ByteChannel).t1l = function () {
|
|
615
|
+
return !(this.r1l() == null) || (this.q1l() && this.x1j_1 === 0 && this.a1k_1.to());
|
|
619
616
|
};
|
|
620
|
-
protoOf(ByteChannel).
|
|
617
|
+
protoOf(ByteChannel).u1l = function (min, $completion) {
|
|
621
618
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
622
|
-
tmp.
|
|
623
|
-
tmp.
|
|
624
|
-
return tmp.
|
|
619
|
+
tmp.c9_1 = Unit_instance;
|
|
620
|
+
tmp.d9_1 = null;
|
|
621
|
+
return tmp.i9();
|
|
625
622
|
};
|
|
626
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).k1l = function ($completion) {
|
|
627
624
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
628
|
-
tmp.
|
|
629
|
-
tmp.
|
|
630
|
-
return tmp.
|
|
625
|
+
tmp.c9_1 = Unit_instance;
|
|
626
|
+
tmp.d9_1 = null;
|
|
627
|
+
return tmp.i9();
|
|
631
628
|
};
|
|
632
|
-
protoOf(ByteChannel).
|
|
633
|
-
if (this.
|
|
629
|
+
protoOf(ByteChannel).y1k = function () {
|
|
630
|
+
if (this.b1k_1.to())
|
|
634
631
|
return Unit_instance;
|
|
635
632
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
636
|
-
this.
|
|
637
|
-
var count = convertToInt(this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
633
|
+
this.y1j_1;
|
|
634
|
+
var count = convertToInt(this.b1k_1.l1());
|
|
635
|
+
this.w1j_1.lq(this.b1k_1);
|
|
636
|
+
this.x1j_1 = this.x1j_1 + count | 0;
|
|
640
637
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
641
|
-
var current = this.
|
|
638
|
+
var current = this.z1j_1.kotlinx$atomicfu$value;
|
|
642
639
|
var tmp;
|
|
643
640
|
if (current instanceof Read) {
|
|
644
|
-
tmp = this.
|
|
641
|
+
tmp = this.z1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
645
642
|
} else {
|
|
646
643
|
tmp = false;
|
|
647
644
|
}
|
|
648
645
|
if (tmp) {
|
|
649
|
-
current.
|
|
646
|
+
current.p1j();
|
|
650
647
|
}
|
|
651
648
|
};
|
|
652
|
-
protoOf(ByteChannel).
|
|
653
|
-
this.
|
|
654
|
-
if (!this.
|
|
649
|
+
protoOf(ByteChannel).l4 = function () {
|
|
650
|
+
this.y1k();
|
|
651
|
+
if (!this.c1k_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
655
652
|
return Unit_instance;
|
|
656
653
|
closeSlot(this, null);
|
|
657
654
|
};
|
|
658
|
-
protoOf(ByteChannel).
|
|
655
|
+
protoOf(ByteChannel).w1l = function ($completion) {
|
|
659
656
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
660
|
-
tmp.
|
|
661
|
-
tmp.
|
|
662
|
-
return tmp.
|
|
657
|
+
tmp.c9_1 = Unit_instance;
|
|
658
|
+
tmp.d9_1 = null;
|
|
659
|
+
return tmp.i9();
|
|
663
660
|
};
|
|
664
|
-
protoOf(ByteChannel).
|
|
665
|
-
if (!(this.
|
|
661
|
+
protoOf(ByteChannel).x1l = function (cause) {
|
|
662
|
+
if (!(this.c1k_1.kotlinx$atomicfu$value == null))
|
|
666
663
|
return Unit_instance;
|
|
667
664
|
var closedToken = new CloseToken(cause);
|
|
668
|
-
this.
|
|
669
|
-
var wrappedCause = closedToken.
|
|
665
|
+
this.c1k_1.atomicfu$compareAndSet(null, closedToken);
|
|
666
|
+
var wrappedCause = closedToken.s1l();
|
|
670
667
|
closeSlot(this, wrappedCause);
|
|
671
668
|
};
|
|
672
669
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -682,7 +679,7 @@
|
|
|
682
679
|
length = length === VOID ? content.length : length;
|
|
683
680
|
// Inline function 'kotlin.also' call
|
|
684
681
|
var this_0 = new Buffer();
|
|
685
|
-
this_0.
|
|
682
|
+
this_0.cq(content, offset, offset + length | 0);
|
|
686
683
|
var source = this_0;
|
|
687
684
|
return ByteReadChannel_0(source);
|
|
688
685
|
}
|
|
@@ -690,18 +687,18 @@
|
|
|
690
687
|
return new SourceByteReadChannel(source);
|
|
691
688
|
}
|
|
692
689
|
function buildPartialMatchTable($this) {
|
|
693
|
-
var table = new Int32Array($this.
|
|
690
|
+
var table = new Int32Array($this.z1l_1.l1());
|
|
694
691
|
var j = 0;
|
|
695
692
|
var inductionVariable = 1;
|
|
696
|
-
var last = $this.
|
|
693
|
+
var last = $this.z1l_1.l1();
|
|
697
694
|
if (inductionVariable < last)
|
|
698
695
|
do {
|
|
699
696
|
var i = inductionVariable;
|
|
700
697
|
inductionVariable = inductionVariable + 1 | 0;
|
|
701
|
-
while (j > 0 && !($this.
|
|
698
|
+
while (j > 0 && !($this.z1l_1.m1(i) === $this.z1l_1.m1(j))) {
|
|
702
699
|
j = table[j - 1 | 0];
|
|
703
700
|
}
|
|
704
|
-
if ($this.
|
|
701
|
+
if ($this.z1l_1.m1(i) === $this.z1l_1.m1(j)) {
|
|
705
702
|
j = j + 1 | 0;
|
|
706
703
|
}
|
|
707
704
|
table[i] = j;
|
|
@@ -711,19 +708,19 @@
|
|
|
711
708
|
}
|
|
712
709
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
713
710
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
714
|
-
tmp.
|
|
715
|
-
tmp.
|
|
716
|
-
return tmp.
|
|
711
|
+
tmp.c9_1 = Unit_instance;
|
|
712
|
+
tmp.d9_1 = null;
|
|
713
|
+
return tmp.i9();
|
|
717
714
|
}
|
|
718
715
|
function checkFullMatch($this, $completion) {
|
|
719
716
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
720
|
-
tmp.
|
|
721
|
-
tmp.
|
|
722
|
-
return tmp.
|
|
717
|
+
tmp.c9_1 = Unit_instance;
|
|
718
|
+
tmp.d9_1 = null;
|
|
719
|
+
return tmp.i9();
|
|
723
720
|
}
|
|
724
721
|
function checkBounds($this, extra) {
|
|
725
|
-
if (
|
|
726
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
722
|
+
if (add($this.f1m_1, extra) > $this.b1m_1) {
|
|
723
|
+
throw IOException_init_$Create$('Limit of ' + $this.b1m_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.z1l_1) + '"'));
|
|
727
724
|
}
|
|
728
725
|
}
|
|
729
726
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -731,28 +728,28 @@
|
|
|
731
728
|
}
|
|
732
729
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
733
730
|
CoroutineImpl.call(this, resultContinuation);
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
731
|
+
this.k1n_1 = _this__u8e3s4;
|
|
732
|
+
this.l1n_1 = ignoreMissing;
|
|
736
733
|
}
|
|
737
|
-
protoOf($findNextCOROUTINE$).
|
|
738
|
-
var suspendResult = this.
|
|
734
|
+
protoOf($findNextCOROUTINE$).i9 = function () {
|
|
735
|
+
var suspendResult = this.c9_1;
|
|
739
736
|
$sm: do
|
|
740
737
|
try {
|
|
741
|
-
var tmp = this.
|
|
738
|
+
var tmp = this.a9_1;
|
|
742
739
|
switch (tmp) {
|
|
743
740
|
case 0:
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
741
|
+
this.b9_1 = 9;
|
|
742
|
+
this.k1n_1.f1m_1 = 0n;
|
|
743
|
+
this.a9_1 = 1;
|
|
747
744
|
continue $sm;
|
|
748
745
|
case 1:
|
|
749
|
-
if (!this.
|
|
750
|
-
this.
|
|
751
|
-
this.
|
|
746
|
+
if (!this.k1n_1.c1m_1.to()) {
|
|
747
|
+
this.m1n_1 = true;
|
|
748
|
+
this.a9_1 = 3;
|
|
752
749
|
continue $sm;
|
|
753
750
|
} else {
|
|
754
|
-
this.
|
|
755
|
-
suspendResult = this.
|
|
751
|
+
this.a9_1 = 2;
|
|
752
|
+
suspendResult = this.k1n_1.y1l_1.v1l(VOID, this);
|
|
756
753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
757
754
|
return suspendResult;
|
|
758
755
|
}
|
|
@@ -760,25 +757,25 @@
|
|
|
760
757
|
}
|
|
761
758
|
|
|
762
759
|
case 2:
|
|
763
|
-
this.
|
|
764
|
-
this.
|
|
760
|
+
this.m1n_1 = suspendResult;
|
|
761
|
+
this.a9_1 = 3;
|
|
765
762
|
continue $sm;
|
|
766
763
|
case 3:
|
|
767
|
-
if (!this.
|
|
768
|
-
this.
|
|
764
|
+
if (!this.m1n_1) {
|
|
765
|
+
this.a9_1 = 7;
|
|
769
766
|
continue $sm;
|
|
770
767
|
}
|
|
771
768
|
|
|
772
|
-
this.
|
|
773
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
769
|
+
this.a9_1 = 4;
|
|
770
|
+
suspendResult = advanceToNextPotentialMatch(this.k1n_1, this);
|
|
774
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
775
772
|
return suspendResult;
|
|
776
773
|
}
|
|
777
774
|
|
|
778
775
|
continue $sm;
|
|
779
776
|
case 4:
|
|
780
|
-
this.
|
|
781
|
-
suspendResult = checkFullMatch(this.
|
|
777
|
+
this.a9_1 = 5;
|
|
778
|
+
suspendResult = checkFullMatch(this.k1n_1, this);
|
|
782
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
783
780
|
return suspendResult;
|
|
784
781
|
}
|
|
@@ -786,66 +783,66 @@
|
|
|
786
783
|
continue $sm;
|
|
787
784
|
case 5:
|
|
788
785
|
if (suspendResult) {
|
|
789
|
-
return this.
|
|
786
|
+
return this.k1n_1.f1m_1;
|
|
790
787
|
} else {
|
|
791
|
-
this.
|
|
788
|
+
this.a9_1 = 6;
|
|
792
789
|
continue $sm;
|
|
793
790
|
}
|
|
794
791
|
|
|
795
792
|
case 6:
|
|
796
|
-
this.
|
|
793
|
+
this.a9_1 = 1;
|
|
797
794
|
continue $sm;
|
|
798
795
|
case 7:
|
|
799
|
-
if (!this.
|
|
800
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
796
|
+
if (!this.l1n_1) {
|
|
797
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.k1n_1, this.k1n_1.z1l_1) + '" but encountered end of input');
|
|
801
798
|
}
|
|
802
799
|
|
|
803
|
-
this.
|
|
804
|
-
this.
|
|
805
|
-
suspendResult = this.
|
|
800
|
+
this.k1n_1.f1m_1 = add(this.k1n_1.f1m_1, this.k1n_1.e1m_1.wp(this.k1n_1.a1m_1.p1l()));
|
|
801
|
+
this.a9_1 = 8;
|
|
802
|
+
suspendResult = this.k1n_1.a1m_1.k1l(this);
|
|
806
803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
807
804
|
return suspendResult;
|
|
808
805
|
}
|
|
809
806
|
|
|
810
807
|
continue $sm;
|
|
811
808
|
case 8:
|
|
812
|
-
return this.
|
|
809
|
+
return this.k1n_1.f1m_1;
|
|
813
810
|
case 9:
|
|
814
|
-
throw this.
|
|
811
|
+
throw this.d9_1;
|
|
815
812
|
}
|
|
816
813
|
} catch ($p) {
|
|
817
814
|
var e = $p;
|
|
818
|
-
if (this.
|
|
815
|
+
if (this.b9_1 === 9) {
|
|
819
816
|
throw e;
|
|
820
817
|
} else {
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
818
|
+
this.a9_1 = this.b9_1;
|
|
819
|
+
this.d9_1 = e;
|
|
823
820
|
}
|
|
824
821
|
}
|
|
825
822
|
while (true);
|
|
826
823
|
};
|
|
827
824
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
828
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
829
|
-
this.
|
|
826
|
+
this.p1m_1 = _this__u8e3s4;
|
|
830
827
|
}
|
|
831
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
832
|
-
var suspendResult = this.
|
|
828
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).i9 = function () {
|
|
829
|
+
var suspendResult = this.c9_1;
|
|
833
830
|
$sm: do
|
|
834
831
|
try {
|
|
835
|
-
var tmp = this.
|
|
832
|
+
var tmp = this.a9_1;
|
|
836
833
|
switch (tmp) {
|
|
837
834
|
case 0:
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
835
|
+
this.b9_1 = 8;
|
|
836
|
+
this.a9_1 = 1;
|
|
840
837
|
continue $sm;
|
|
841
838
|
case 1:
|
|
842
|
-
if (!this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
839
|
+
if (!this.p1m_1.c1m_1.to()) {
|
|
840
|
+
this.q1m_1 = true;
|
|
841
|
+
this.a9_1 = 3;
|
|
845
842
|
continue $sm;
|
|
846
843
|
} else {
|
|
847
|
-
this.
|
|
848
|
-
suspendResult = this.
|
|
844
|
+
this.a9_1 = 2;
|
|
845
|
+
suspendResult = this.p1m_1.y1l_1.v1l(VOID, this);
|
|
849
846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
850
847
|
return suspendResult;
|
|
851
848
|
}
|
|
@@ -853,34 +850,34 @@
|
|
|
853
850
|
}
|
|
854
851
|
|
|
855
852
|
case 2:
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
853
|
+
this.q1m_1 = suspendResult;
|
|
854
|
+
this.a9_1 = 3;
|
|
858
855
|
continue $sm;
|
|
859
856
|
case 3:
|
|
860
|
-
if (!this.
|
|
861
|
-
this.
|
|
857
|
+
if (!this.q1m_1) {
|
|
858
|
+
this.a9_1 = 7;
|
|
862
859
|
continue $sm;
|
|
863
860
|
}
|
|
864
861
|
|
|
865
|
-
var nextMatch = indexOf(this.
|
|
866
|
-
if (
|
|
867
|
-
var tmp_0 = this.
|
|
868
|
-
checkBounds(this.
|
|
869
|
-
this.
|
|
870
|
-
this.
|
|
871
|
-
suspendResult = flushIfNeeded(this.
|
|
862
|
+
var nextMatch = indexOf(this.p1m_1.c1m_1, this.p1m_1.z1l_1.m1(0));
|
|
863
|
+
if (nextMatch === -1n) {
|
|
864
|
+
var tmp_0 = this.p1m_1.c1m_1;
|
|
865
|
+
checkBounds(this.p1m_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
866
|
+
this.p1m_1.f1m_1 = add(this.p1m_1.f1m_1, this.p1m_1.c1m_1.wp(this.p1m_1.a1m_1.p1l()));
|
|
867
|
+
this.a9_1 = 5;
|
|
868
|
+
suspendResult = flushIfNeeded(this.p1m_1.a1m_1, this);
|
|
872
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
873
870
|
return suspendResult;
|
|
874
871
|
}
|
|
875
872
|
continue $sm;
|
|
876
873
|
} else {
|
|
877
|
-
checkBounds(this.
|
|
878
|
-
var tmp_1 = this.
|
|
879
|
-
var tmp_2 = this.
|
|
880
|
-
var tmp_3 = this.
|
|
881
|
-
tmp_1.
|
|
882
|
-
this.
|
|
883
|
-
suspendResult = flushIfNeeded(this.
|
|
874
|
+
checkBounds(this.p1m_1, nextMatch);
|
|
875
|
+
var tmp_1 = this.p1m_1;
|
|
876
|
+
var tmp_2 = this.p1m_1.f1m_1;
|
|
877
|
+
var tmp_3 = this.p1m_1.a1m_1.p1l();
|
|
878
|
+
tmp_1.f1m_1 = add(tmp_2, this.p1m_1.c1m_1.tp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
879
|
+
this.a9_1 = 4;
|
|
880
|
+
suspendResult = flushIfNeeded(this.p1m_1.a1m_1, this);
|
|
884
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
885
882
|
return suspendResult;
|
|
886
883
|
}
|
|
@@ -890,49 +887,49 @@
|
|
|
890
887
|
case 4:
|
|
891
888
|
return Unit_instance;
|
|
892
889
|
case 5:
|
|
893
|
-
this.
|
|
890
|
+
this.a9_1 = 6;
|
|
894
891
|
continue $sm;
|
|
895
892
|
case 6:
|
|
896
|
-
this.
|
|
893
|
+
this.a9_1 = 1;
|
|
897
894
|
continue $sm;
|
|
898
895
|
case 7:
|
|
899
896
|
return Unit_instance;
|
|
900
897
|
case 8:
|
|
901
|
-
throw this.
|
|
898
|
+
throw this.d9_1;
|
|
902
899
|
}
|
|
903
900
|
} catch ($p) {
|
|
904
901
|
var e = $p;
|
|
905
|
-
if (this.
|
|
902
|
+
if (this.b9_1 === 8) {
|
|
906
903
|
throw e;
|
|
907
904
|
} else {
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
905
|
+
this.a9_1 = this.b9_1;
|
|
906
|
+
this.d9_1 = e;
|
|
910
907
|
}
|
|
911
908
|
}
|
|
912
909
|
while (true);
|
|
913
910
|
};
|
|
914
911
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
915
912
|
CoroutineImpl.call(this, resultContinuation);
|
|
916
|
-
this.
|
|
913
|
+
this.z1m_1 = _this__u8e3s4;
|
|
917
914
|
}
|
|
918
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
919
|
-
var suspendResult = this.
|
|
915
|
+
protoOf($checkFullMatchCOROUTINE$).i9 = function () {
|
|
916
|
+
var suspendResult = this.c9_1;
|
|
920
917
|
$sm: do
|
|
921
918
|
try {
|
|
922
|
-
var tmp = this.
|
|
919
|
+
var tmp = this.a9_1;
|
|
923
920
|
switch (tmp) {
|
|
924
921
|
case 0:
|
|
925
|
-
this.
|
|
926
|
-
this.
|
|
922
|
+
this.b9_1 = 8;
|
|
923
|
+
this.a9_1 = 1;
|
|
927
924
|
continue $sm;
|
|
928
925
|
case 1:
|
|
929
|
-
if (!this.
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
926
|
+
if (!this.z1m_1.c1m_1.to()) {
|
|
927
|
+
this.b1n_1 = true;
|
|
928
|
+
this.a9_1 = 3;
|
|
932
929
|
continue $sm;
|
|
933
930
|
} else {
|
|
934
|
-
this.
|
|
935
|
-
suspendResult = this.
|
|
931
|
+
this.a9_1 = 2;
|
|
932
|
+
suspendResult = this.z1m_1.y1l_1.v1l(VOID, this);
|
|
936
933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
937
934
|
return suspendResult;
|
|
938
935
|
}
|
|
@@ -940,120 +937,120 @@
|
|
|
940
937
|
}
|
|
941
938
|
|
|
942
939
|
case 2:
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
940
|
+
this.b1n_1 = suspendResult;
|
|
941
|
+
this.a9_1 = 3;
|
|
945
942
|
continue $sm;
|
|
946
943
|
case 3:
|
|
947
|
-
if (!this.
|
|
948
|
-
this.
|
|
944
|
+
if (!this.b1n_1) {
|
|
945
|
+
this.a9_1 = 7;
|
|
949
946
|
continue $sm;
|
|
950
947
|
}
|
|
951
948
|
|
|
952
|
-
this.
|
|
953
|
-
if (this.
|
|
954
|
-
var oldMatchIndex = this.
|
|
955
|
-
while (this.
|
|
956
|
-
this.
|
|
949
|
+
this.a1n_1 = this.z1m_1.c1m_1.wo();
|
|
950
|
+
if (this.z1m_1.g1m_1 > 0 && !(this.a1n_1 === this.z1m_1.z1l_1.m1(this.z1m_1.g1m_1))) {
|
|
951
|
+
var oldMatchIndex = this.z1m_1.g1m_1;
|
|
952
|
+
while (this.z1m_1.g1m_1 > 0 && !(this.a1n_1 === this.z1m_1.z1l_1.m1(this.z1m_1.g1m_1))) {
|
|
953
|
+
this.z1m_1.g1m_1 = this.z1m_1.d1m_1[this.z1m_1.g1m_1 - 1 | 0];
|
|
957
954
|
}
|
|
958
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
959
|
-
checkBounds(this.
|
|
960
|
-
var tmp_0 = this.
|
|
961
|
-
var tmp_1 = this.
|
|
962
|
-
var tmp_2 = this.
|
|
963
|
-
tmp_0.
|
|
964
|
-
if (this.
|
|
965
|
-
this.
|
|
966
|
-
suspendResult = writeByte(this.
|
|
955
|
+
var retained = fromInt(oldMatchIndex - this.z1m_1.g1m_1 | 0);
|
|
956
|
+
checkBounds(this.z1m_1, retained);
|
|
957
|
+
var tmp_0 = this.z1m_1;
|
|
958
|
+
var tmp_1 = this.z1m_1.f1m_1;
|
|
959
|
+
var tmp_2 = this.z1m_1.a1m_1.p1l();
|
|
960
|
+
tmp_0.f1m_1 = add(tmp_1, this.z1m_1.e1m_1.tp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
961
|
+
if (this.z1m_1.g1m_1 === 0 && !(this.a1n_1 === this.z1m_1.z1l_1.m1(this.z1m_1.g1m_1))) {
|
|
962
|
+
this.a9_1 = 6;
|
|
963
|
+
suspendResult = writeByte(this.z1m_1.a1m_1, this.a1n_1, this);
|
|
967
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
968
965
|
return suspendResult;
|
|
969
966
|
}
|
|
970
967
|
continue $sm;
|
|
971
968
|
} else {
|
|
972
|
-
this.
|
|
969
|
+
this.a9_1 = 4;
|
|
973
970
|
continue $sm;
|
|
974
971
|
}
|
|
975
972
|
} else {
|
|
976
|
-
this.
|
|
973
|
+
this.a9_1 = 5;
|
|
977
974
|
continue $sm;
|
|
978
975
|
}
|
|
979
976
|
|
|
980
977
|
case 4:
|
|
981
|
-
this.
|
|
978
|
+
this.a9_1 = 5;
|
|
982
979
|
continue $sm;
|
|
983
980
|
case 5:
|
|
984
|
-
this.
|
|
985
|
-
if (this.
|
|
981
|
+
this.z1m_1.g1m_1 = this.z1m_1.g1m_1 + 1 | 0;
|
|
982
|
+
if (this.z1m_1.g1m_1 === this.z1m_1.z1l_1.l1()) {
|
|
986
983
|
return true;
|
|
987
984
|
}
|
|
988
985
|
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
986
|
+
this.z1m_1.e1m_1.mq(this.a1n_1);
|
|
987
|
+
this.a9_1 = 1;
|
|
991
988
|
continue $sm;
|
|
992
989
|
case 6:
|
|
993
|
-
var _unary__edvuaz = this.
|
|
994
|
-
this.
|
|
990
|
+
var _unary__edvuaz = this.z1m_1.f1m_1;
|
|
991
|
+
this.z1m_1.f1m_1 = add(_unary__edvuaz, get_ONE());
|
|
995
992
|
return false;
|
|
996
993
|
case 7:
|
|
997
994
|
return false;
|
|
998
995
|
case 8:
|
|
999
|
-
throw this.
|
|
996
|
+
throw this.d9_1;
|
|
1000
997
|
}
|
|
1001
998
|
} catch ($p) {
|
|
1002
999
|
var e = $p;
|
|
1003
|
-
if (this.
|
|
1000
|
+
if (this.b9_1 === 8) {
|
|
1004
1001
|
throw e;
|
|
1005
1002
|
} else {
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1003
|
+
this.a9_1 = this.b9_1;
|
|
1004
|
+
this.d9_1 = e;
|
|
1008
1005
|
}
|
|
1009
1006
|
}
|
|
1010
1007
|
while (true);
|
|
1011
1008
|
};
|
|
1012
1009
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1013
|
-
limit = limit === VOID ?
|
|
1014
|
-
this.
|
|
1015
|
-
this.
|
|
1016
|
-
this.
|
|
1017
|
-
this.
|
|
1010
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1011
|
+
this.y1l_1 = channel;
|
|
1012
|
+
this.z1l_1 = matchString;
|
|
1013
|
+
this.a1m_1 = writeChannel;
|
|
1014
|
+
this.b1m_1 = limit;
|
|
1018
1015
|
// Inline function 'kotlin.require' call
|
|
1019
|
-
if (!(this.
|
|
1016
|
+
if (!(this.z1l_1.l1() > 0)) {
|
|
1020
1017
|
var message = 'Empty match string not permitted for scanning';
|
|
1021
1018
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1022
1019
|
}
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1020
|
+
this.c1m_1 = this.y1l_1.m1l();
|
|
1021
|
+
this.d1m_1 = buildPartialMatchTable(this);
|
|
1022
|
+
this.e1m_1 = new Buffer();
|
|
1023
|
+
this.f1m_1 = 0n;
|
|
1024
|
+
this.g1m_1 = 0;
|
|
1028
1025
|
}
|
|
1029
|
-
protoOf(ByteChannelScanner).
|
|
1026
|
+
protoOf(ByteChannelScanner).n1n = function (ignoreMissing, $completion) {
|
|
1030
1027
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1031
|
-
tmp.
|
|
1032
|
-
tmp.
|
|
1033
|
-
return tmp.
|
|
1028
|
+
tmp.c9_1 = Unit_instance;
|
|
1029
|
+
tmp.d9_1 = null;
|
|
1030
|
+
return tmp.i9();
|
|
1034
1031
|
};
|
|
1035
1032
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1033
|
+
this.o1n_1 = null;
|
|
1034
|
+
this.p1n_1 = new Buffer();
|
|
1038
1035
|
}
|
|
1039
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1040
|
-
return this.
|
|
1036
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r1l = function () {
|
|
1037
|
+
return this.o1n_1;
|
|
1041
1038
|
};
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1039
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1l = function () {
|
|
1043
1040
|
return true;
|
|
1044
1041
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1046
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m1l = function () {
|
|
1043
|
+
return this.p1n_1;
|
|
1047
1044
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1l = function (min, $completion) {
|
|
1049
1046
|
return false;
|
|
1050
1047
|
};
|
|
1051
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1l = function (cause) {
|
|
1052
1049
|
};
|
|
1053
1050
|
function Companion_0() {
|
|
1054
1051
|
Companion_instance_1 = this;
|
|
1055
1052
|
var tmp = this;
|
|
1056
|
-
tmp.
|
|
1053
|
+
tmp.q1n_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1057
1054
|
}
|
|
1058
1055
|
var Companion_instance_1;
|
|
1059
1056
|
function Companion_getInstance_0() {
|
|
@@ -1064,80 +1061,80 @@
|
|
|
1064
1061
|
function ByteReadChannel_1() {
|
|
1065
1062
|
}
|
|
1066
1063
|
function cancel_0(_this__u8e3s4) {
|
|
1067
|
-
_this__u8e3s4.
|
|
1064
|
+
_this__u8e3s4.x1l(IOException_init_$Create$('Channel was cancelled'));
|
|
1068
1065
|
}
|
|
1069
1066
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1070
1067
|
offset = offset === VOID ? 0 : offset;
|
|
1071
1068
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1072
1069
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1073
|
-
tmp.
|
|
1074
|
-
tmp.
|
|
1075
|
-
return tmp.
|
|
1070
|
+
tmp.c9_1 = Unit_instance;
|
|
1071
|
+
tmp.d9_1 = null;
|
|
1072
|
+
return tmp.i9();
|
|
1076
1073
|
}
|
|
1077
1074
|
function copyTo(_this__u8e3s4, channel, $completion) {
|
|
1078
1075
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, $completion);
|
|
1079
|
-
tmp.
|
|
1080
|
-
tmp.
|
|
1081
|
-
return tmp.
|
|
1076
|
+
tmp.c9_1 = Unit_instance;
|
|
1077
|
+
tmp.d9_1 = null;
|
|
1078
|
+
return tmp.i9();
|
|
1082
1079
|
}
|
|
1083
1080
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1084
1081
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1085
|
-
tmp.
|
|
1086
|
-
tmp.
|
|
1087
|
-
return tmp.
|
|
1082
|
+
tmp.c9_1 = Unit_instance;
|
|
1083
|
+
tmp.d9_1 = null;
|
|
1084
|
+
return tmp.i9();
|
|
1088
1085
|
}
|
|
1089
1086
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1090
1087
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1091
|
-
tmp.
|
|
1092
|
-
tmp.
|
|
1093
|
-
return tmp.
|
|
1088
|
+
tmp.c9_1 = Unit_instance;
|
|
1089
|
+
tmp.d9_1 = null;
|
|
1090
|
+
return tmp.i9();
|
|
1094
1091
|
}
|
|
1095
1092
|
function copyTo_0(_this__u8e3s4, channel, limit, $completion) {
|
|
1096
1093
|
var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, $completion);
|
|
1097
|
-
tmp.
|
|
1098
|
-
tmp.
|
|
1099
|
-
return tmp.
|
|
1094
|
+
tmp.c9_1 = Unit_instance;
|
|
1095
|
+
tmp.d9_1 = null;
|
|
1096
|
+
return tmp.i9();
|
|
1100
1097
|
}
|
|
1101
1098
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1102
|
-
max = max === VOID ?
|
|
1099
|
+
max = max === VOID ? 9223372036854775807n : max;
|
|
1103
1100
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1104
|
-
tmp.
|
|
1105
|
-
tmp.
|
|
1106
|
-
return tmp.
|
|
1101
|
+
tmp.c9_1 = Unit_instance;
|
|
1102
|
+
tmp.d9_1 = null;
|
|
1103
|
+
return tmp.i9();
|
|
1107
1104
|
}
|
|
1108
1105
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1109
1106
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1110
|
-
tmp.
|
|
1111
|
-
tmp.
|
|
1112
|
-
return tmp.
|
|
1107
|
+
tmp.c9_1 = Unit_instance;
|
|
1108
|
+
tmp.d9_1 = null;
|
|
1109
|
+
return tmp.i9();
|
|
1113
1110
|
}
|
|
1114
1111
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1115
1112
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1116
|
-
tmp.
|
|
1117
|
-
tmp.
|
|
1118
|
-
return tmp.
|
|
1113
|
+
tmp.c9_1 = Unit_instance;
|
|
1114
|
+
tmp.d9_1 = null;
|
|
1115
|
+
return tmp.i9();
|
|
1119
1116
|
}
|
|
1120
1117
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1121
|
-
limit = limit === VOID ?
|
|
1118
|
+
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1122
1119
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1123
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1120
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).n1n(ignoreMissing, $completion);
|
|
1124
1121
|
}
|
|
1125
1122
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1126
1123
|
max = max === VOID ? 2147483647 : max;
|
|
1127
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1124
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().e1r_1 : lineEnding;
|
|
1128
1125
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1129
|
-
tmp.
|
|
1130
|
-
tmp.
|
|
1131
|
-
return tmp.
|
|
1126
|
+
tmp.c9_1 = Unit_instance;
|
|
1127
|
+
tmp.d9_1 = null;
|
|
1128
|
+
return tmp.i9();
|
|
1132
1129
|
}
|
|
1133
1130
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1134
1131
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
1135
|
-
tmp.
|
|
1136
|
-
tmp.
|
|
1137
|
-
return tmp.
|
|
1132
|
+
tmp.c9_1 = Unit_instance;
|
|
1133
|
+
tmp.d9_1 = null;
|
|
1134
|
+
return tmp.i9();
|
|
1138
1135
|
}
|
|
1139
1136
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1140
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1137
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1l();
|
|
1141
1138
|
if (tmp0_safe_receiver == null)
|
|
1142
1139
|
null;
|
|
1143
1140
|
else {
|
|
@@ -1146,7 +1143,7 @@
|
|
|
1146
1143
|
}
|
|
1147
1144
|
}
|
|
1148
1145
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1149
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1146
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1l();
|
|
1150
1147
|
if (tmp0_safe_receiver == null)
|
|
1151
1148
|
null;
|
|
1152
1149
|
else {
|
|
@@ -1156,21 +1153,21 @@
|
|
|
1156
1153
|
}
|
|
1157
1154
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1158
1155
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1159
|
-
tmp.
|
|
1160
|
-
tmp.
|
|
1161
|
-
return tmp.
|
|
1156
|
+
tmp.c9_1 = Unit_instance;
|
|
1157
|
+
tmp.d9_1 = null;
|
|
1158
|
+
return tmp.i9();
|
|
1162
1159
|
}
|
|
1163
1160
|
function get_availableForRead(_this__u8e3s4) {
|
|
1164
|
-
return convertToInt(_this__u8e3s4.
|
|
1161
|
+
return convertToInt(_this__u8e3s4.m1l().so().l1());
|
|
1165
1162
|
}
|
|
1166
1163
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1167
1164
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1168
|
-
tmp.
|
|
1169
|
-
tmp.
|
|
1170
|
-
return tmp.
|
|
1165
|
+
tmp.c9_1 = Unit_instance;
|
|
1166
|
+
tmp.d9_1 = null;
|
|
1167
|
+
return tmp.i9();
|
|
1171
1168
|
}
|
|
1172
1169
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1173
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1170
|
+
var tmp0_safe_receiver = _this__u8e3s4.r1l();
|
|
1174
1171
|
if (tmp0_safe_receiver == null)
|
|
1175
1172
|
null;
|
|
1176
1173
|
else {
|
|
@@ -1185,216 +1182,216 @@
|
|
|
1185
1182
|
}
|
|
1186
1183
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1187
1184
|
CoroutineImpl.call(this, resultContinuation);
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1185
|
+
this.z1n_1 = _this__u8e3s4;
|
|
1186
|
+
this.a1o_1 = buffer;
|
|
1187
|
+
this.b1o_1 = offset;
|
|
1188
|
+
this.c1o_1 = length;
|
|
1192
1189
|
}
|
|
1193
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1194
|
-
var suspendResult = this.
|
|
1190
|
+
protoOf($readAvailableCOROUTINE$).i9 = function () {
|
|
1191
|
+
var suspendResult = this.c9_1;
|
|
1195
1192
|
$sm: do
|
|
1196
1193
|
try {
|
|
1197
|
-
var tmp = this.
|
|
1194
|
+
var tmp = this.a9_1;
|
|
1198
1195
|
switch (tmp) {
|
|
1199
1196
|
case 0:
|
|
1200
|
-
this.
|
|
1201
|
-
if (this.
|
|
1197
|
+
this.b9_1 = 3;
|
|
1198
|
+
if (this.z1n_1.t1l())
|
|
1202
1199
|
return -1;
|
|
1203
|
-
if (this.
|
|
1204
|
-
this.
|
|
1205
|
-
suspendResult = this.
|
|
1200
|
+
if (this.z1n_1.m1l().to()) {
|
|
1201
|
+
this.a9_1 = 1;
|
|
1202
|
+
suspendResult = this.z1n_1.v1l(VOID, this);
|
|
1206
1203
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1207
1204
|
return suspendResult;
|
|
1208
1205
|
}
|
|
1209
1206
|
continue $sm;
|
|
1210
1207
|
} else {
|
|
1211
|
-
this.
|
|
1208
|
+
this.a9_1 = 2;
|
|
1212
1209
|
continue $sm;
|
|
1213
1210
|
}
|
|
1214
1211
|
|
|
1215
1212
|
case 1:
|
|
1216
|
-
this.
|
|
1213
|
+
this.a9_1 = 2;
|
|
1217
1214
|
continue $sm;
|
|
1218
1215
|
case 2:
|
|
1219
|
-
if (this.
|
|
1216
|
+
if (this.z1n_1.t1l())
|
|
1220
1217
|
return -1;
|
|
1221
|
-
return readAvailable_0(this.
|
|
1218
|
+
return readAvailable_0(this.z1n_1.m1l(), this.a1o_1, this.b1o_1, this.c1o_1);
|
|
1222
1219
|
case 3:
|
|
1223
|
-
throw this.
|
|
1220
|
+
throw this.d9_1;
|
|
1224
1221
|
}
|
|
1225
1222
|
} catch ($p) {
|
|
1226
1223
|
var e = $p;
|
|
1227
|
-
if (this.
|
|
1224
|
+
if (this.b9_1 === 3) {
|
|
1228
1225
|
throw e;
|
|
1229
1226
|
} else {
|
|
1230
|
-
this.
|
|
1231
|
-
this.
|
|
1227
|
+
this.a9_1 = this.b9_1;
|
|
1228
|
+
this.d9_1 = e;
|
|
1232
1229
|
}
|
|
1233
1230
|
}
|
|
1234
1231
|
while (true);
|
|
1235
1232
|
};
|
|
1236
1233
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1237
1234
|
CoroutineImpl.call(this, resultContinuation);
|
|
1238
|
-
this.
|
|
1239
|
-
this.
|
|
1235
|
+
this.l1o_1 = _this__u8e3s4;
|
|
1236
|
+
this.m1o_1 = channel;
|
|
1240
1237
|
}
|
|
1241
|
-
protoOf($copyToCOROUTINE$).
|
|
1242
|
-
var suspendResult = this.
|
|
1238
|
+
protoOf($copyToCOROUTINE$).i9 = function () {
|
|
1239
|
+
var suspendResult = this.c9_1;
|
|
1243
1240
|
$sm: do
|
|
1244
1241
|
try {
|
|
1245
|
-
var tmp = this.
|
|
1242
|
+
var tmp = this.a9_1;
|
|
1246
1243
|
switch (tmp) {
|
|
1247
1244
|
case 0:
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1245
|
+
this.b9_1 = 11;
|
|
1246
|
+
this.n1o_1 = 0n;
|
|
1247
|
+
this.a9_1 = 1;
|
|
1251
1248
|
continue $sm;
|
|
1252
1249
|
case 1:
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1250
|
+
this.b9_1 = 7;
|
|
1251
|
+
this.b9_1 = 6;
|
|
1252
|
+
this.a9_1 = 2;
|
|
1256
1253
|
continue $sm;
|
|
1257
1254
|
case 2:
|
|
1258
|
-
if (!!this.
|
|
1259
|
-
this.
|
|
1255
|
+
if (!!this.l1o_1.t1l()) {
|
|
1256
|
+
this.a9_1 = 5;
|
|
1260
1257
|
continue $sm;
|
|
1261
1258
|
}
|
|
1262
1259
|
|
|
1263
|
-
this.
|
|
1264
|
-
this.
|
|
1265
|
-
suspendResult = this.
|
|
1260
|
+
this.n1o_1 = add(this.n1o_1, this.l1o_1.m1l().wp(this.m1o_1.p1l()));
|
|
1261
|
+
this.a9_1 = 3;
|
|
1262
|
+
suspendResult = this.m1o_1.k1l(this);
|
|
1266
1263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1267
1264
|
return suspendResult;
|
|
1268
1265
|
}
|
|
1269
1266
|
|
|
1270
1267
|
continue $sm;
|
|
1271
1268
|
case 3:
|
|
1272
|
-
this.
|
|
1273
|
-
suspendResult = this.
|
|
1269
|
+
this.a9_1 = 4;
|
|
1270
|
+
suspendResult = this.l1o_1.v1l(VOID, this);
|
|
1274
1271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1275
1272
|
return suspendResult;
|
|
1276
1273
|
}
|
|
1277
1274
|
|
|
1278
1275
|
continue $sm;
|
|
1279
1276
|
case 4:
|
|
1280
|
-
this.
|
|
1277
|
+
this.a9_1 = 2;
|
|
1281
1278
|
continue $sm;
|
|
1282
1279
|
case 5:
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1280
|
+
this.b9_1 = 11;
|
|
1281
|
+
this.a9_1 = 9;
|
|
1285
1282
|
continue $sm;
|
|
1286
1283
|
case 6:
|
|
1287
|
-
this.
|
|
1288
|
-
var tmp_0 = this.
|
|
1284
|
+
this.b9_1 = 7;
|
|
1285
|
+
var tmp_0 = this.d9_1;
|
|
1289
1286
|
if (tmp_0 instanceof Error) {
|
|
1290
|
-
var cause = this.
|
|
1291
|
-
this.
|
|
1292
|
-
close_0(this.
|
|
1287
|
+
var cause = this.d9_1;
|
|
1288
|
+
this.l1o_1.x1l(cause);
|
|
1289
|
+
close_0(this.m1o_1, cause);
|
|
1293
1290
|
throw cause;
|
|
1294
1291
|
} else {
|
|
1295
|
-
throw this.
|
|
1292
|
+
throw this.d9_1;
|
|
1296
1293
|
}
|
|
1297
1294
|
|
|
1298
1295
|
case 7:
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
suspendResult = this.
|
|
1296
|
+
this.b9_1 = 11;
|
|
1297
|
+
this.o1o_1 = this.d9_1;
|
|
1298
|
+
this.a9_1 = 8;
|
|
1299
|
+
suspendResult = this.m1o_1.k1l(this);
|
|
1303
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1304
1301
|
return suspendResult;
|
|
1305
1302
|
}
|
|
1306
1303
|
|
|
1307
1304
|
continue $sm;
|
|
1308
1305
|
case 8:
|
|
1309
|
-
throw this.
|
|
1306
|
+
throw this.o1o_1;
|
|
1310
1307
|
case 9:
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
suspendResult = this.
|
|
1308
|
+
this.b9_1 = 11;
|
|
1309
|
+
this.a9_1 = 10;
|
|
1310
|
+
suspendResult = this.m1o_1.k1l(this);
|
|
1314
1311
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1315
1312
|
return suspendResult;
|
|
1316
1313
|
}
|
|
1317
1314
|
|
|
1318
1315
|
continue $sm;
|
|
1319
1316
|
case 10:
|
|
1320
|
-
return this.
|
|
1317
|
+
return this.n1o_1;
|
|
1321
1318
|
case 11:
|
|
1322
|
-
throw this.
|
|
1319
|
+
throw this.d9_1;
|
|
1323
1320
|
}
|
|
1324
1321
|
} catch ($p) {
|
|
1325
1322
|
var e = $p;
|
|
1326
|
-
if (this.
|
|
1323
|
+
if (this.b9_1 === 11) {
|
|
1327
1324
|
throw e;
|
|
1328
1325
|
} else {
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1326
|
+
this.a9_1 = this.b9_1;
|
|
1327
|
+
this.d9_1 = e;
|
|
1331
1328
|
}
|
|
1332
1329
|
}
|
|
1333
1330
|
while (true);
|
|
1334
1331
|
};
|
|
1335
1332
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1336
1333
|
CoroutineImpl.call(this, resultContinuation);
|
|
1337
|
-
this.
|
|
1334
|
+
this.x1o_1 = _this__u8e3s4;
|
|
1338
1335
|
}
|
|
1339
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1340
|
-
var suspendResult = this.
|
|
1336
|
+
protoOf($readRemainingCOROUTINE$).i9 = function () {
|
|
1337
|
+
var suspendResult = this.c9_1;
|
|
1341
1338
|
$sm: do
|
|
1342
1339
|
try {
|
|
1343
|
-
var tmp = this.
|
|
1340
|
+
var tmp = this.a9_1;
|
|
1344
1341
|
switch (tmp) {
|
|
1345
1342
|
case 0:
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1343
|
+
this.b9_1 = 4;
|
|
1344
|
+
this.y1o_1 = BytePacketBuilder();
|
|
1345
|
+
this.a9_1 = 1;
|
|
1349
1346
|
continue $sm;
|
|
1350
1347
|
case 1:
|
|
1351
|
-
if (!!this.
|
|
1352
|
-
this.
|
|
1348
|
+
if (!!this.x1o_1.t1l()) {
|
|
1349
|
+
this.a9_1 = 3;
|
|
1353
1350
|
continue $sm;
|
|
1354
1351
|
}
|
|
1355
1352
|
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
suspendResult = this.
|
|
1353
|
+
this.y1o_1.lq(this.x1o_1.m1l());
|
|
1354
|
+
this.a9_1 = 2;
|
|
1355
|
+
suspendResult = this.x1o_1.v1l(VOID, this);
|
|
1359
1356
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1360
1357
|
return suspendResult;
|
|
1361
1358
|
}
|
|
1362
1359
|
|
|
1363
1360
|
continue $sm;
|
|
1364
1361
|
case 2:
|
|
1365
|
-
this.
|
|
1362
|
+
this.a9_1 = 1;
|
|
1366
1363
|
continue $sm;
|
|
1367
1364
|
case 3:
|
|
1368
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1369
|
-
return this.
|
|
1365
|
+
rethrowCloseCauseIfNeeded_0(this.x1o_1);
|
|
1366
|
+
return this.y1o_1.so();
|
|
1370
1367
|
case 4:
|
|
1371
|
-
throw this.
|
|
1368
|
+
throw this.d9_1;
|
|
1372
1369
|
}
|
|
1373
1370
|
} catch ($p) {
|
|
1374
1371
|
var e = $p;
|
|
1375
|
-
if (this.
|
|
1372
|
+
if (this.b9_1 === 4) {
|
|
1376
1373
|
throw e;
|
|
1377
1374
|
} else {
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1375
|
+
this.a9_1 = this.b9_1;
|
|
1376
|
+
this.d9_1 = e;
|
|
1380
1377
|
}
|
|
1381
1378
|
}
|
|
1382
1379
|
while (true);
|
|
1383
1380
|
};
|
|
1384
1381
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1385
1382
|
CoroutineImpl.call(this, resultContinuation);
|
|
1386
|
-
this.
|
|
1383
|
+
this.h1p_1 = _this__u8e3s4;
|
|
1387
1384
|
}
|
|
1388
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1389
|
-
var suspendResult = this.
|
|
1385
|
+
protoOf($toByteArrayCOROUTINE$).i9 = function () {
|
|
1386
|
+
var suspendResult = this.c9_1;
|
|
1390
1387
|
$sm: do
|
|
1391
1388
|
try {
|
|
1392
|
-
var tmp = this.
|
|
1389
|
+
var tmp = this.a9_1;
|
|
1393
1390
|
switch (tmp) {
|
|
1394
1391
|
case 0:
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
suspendResult = readBuffer(this.
|
|
1392
|
+
this.b9_1 = 2;
|
|
1393
|
+
this.a9_1 = 1;
|
|
1394
|
+
suspendResult = readBuffer(this.h1p_1, this);
|
|
1398
1395
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1399
1396
|
return suspendResult;
|
|
1400
1397
|
}
|
|
@@ -1404,207 +1401,207 @@
|
|
|
1404
1401
|
var ARGUMENT = suspendResult;
|
|
1405
1402
|
return readBytes(ARGUMENT);
|
|
1406
1403
|
case 2:
|
|
1407
|
-
throw this.
|
|
1404
|
+
throw this.d9_1;
|
|
1408
1405
|
}
|
|
1409
1406
|
} catch ($p) {
|
|
1410
1407
|
var e = $p;
|
|
1411
|
-
if (this.
|
|
1408
|
+
if (this.b9_1 === 2) {
|
|
1412
1409
|
throw e;
|
|
1413
1410
|
} else {
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1411
|
+
this.a9_1 = this.b9_1;
|
|
1412
|
+
this.d9_1 = e;
|
|
1416
1413
|
}
|
|
1417
1414
|
}
|
|
1418
1415
|
while (true);
|
|
1419
1416
|
};
|
|
1420
1417
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1421
1418
|
CoroutineImpl.call(this, resultContinuation);
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1419
|
+
this.q1p_1 = _this__u8e3s4;
|
|
1420
|
+
this.r1p_1 = channel;
|
|
1421
|
+
this.s1p_1 = limit;
|
|
1425
1422
|
}
|
|
1426
|
-
protoOf($copyToCOROUTINE$_0).
|
|
1427
|
-
var suspendResult = this.
|
|
1423
|
+
protoOf($copyToCOROUTINE$_0).i9 = function () {
|
|
1424
|
+
var suspendResult = this.c9_1;
|
|
1428
1425
|
$sm: do
|
|
1429
1426
|
try {
|
|
1430
|
-
var tmp = this.
|
|
1427
|
+
var tmp = this.a9_1;
|
|
1431
1428
|
switch (tmp) {
|
|
1432
1429
|
case 0:
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1430
|
+
this.b9_1 = 12;
|
|
1431
|
+
this.t1p_1 = this.s1p_1;
|
|
1432
|
+
this.a9_1 = 1;
|
|
1436
1433
|
continue $sm;
|
|
1437
1434
|
case 1:
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1435
|
+
this.b9_1 = 8;
|
|
1436
|
+
this.b9_1 = 7;
|
|
1437
|
+
this.a9_1 = 2;
|
|
1441
1438
|
continue $sm;
|
|
1442
1439
|
case 2:
|
|
1443
|
-
if (!(!this.
|
|
1444
|
-
this.
|
|
1440
|
+
if (!(!this.q1p_1.t1l() && this.t1p_1 > 0n)) {
|
|
1441
|
+
this.a9_1 = 6;
|
|
1445
1442
|
continue $sm;
|
|
1446
1443
|
}
|
|
1447
1444
|
|
|
1448
|
-
if (this.
|
|
1449
|
-
this.
|
|
1450
|
-
suspendResult = this.
|
|
1445
|
+
if (this.q1p_1.m1l().to()) {
|
|
1446
|
+
this.a9_1 = 3;
|
|
1447
|
+
suspendResult = this.q1p_1.v1l(VOID, this);
|
|
1451
1448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1452
1449
|
return suspendResult;
|
|
1453
1450
|
}
|
|
1454
1451
|
continue $sm;
|
|
1455
1452
|
} else {
|
|
1456
|
-
this.
|
|
1453
|
+
this.a9_1 = 4;
|
|
1457
1454
|
continue $sm;
|
|
1458
1455
|
}
|
|
1459
1456
|
|
|
1460
1457
|
case 3:
|
|
1461
|
-
this.
|
|
1458
|
+
this.a9_1 = 4;
|
|
1462
1459
|
continue $sm;
|
|
1463
1460
|
case 4:
|
|
1464
|
-
var tmp0 = this.
|
|
1465
|
-
var b = get_remaining(this.
|
|
1466
|
-
var count =
|
|
1467
|
-
this.
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
suspendResult = this.
|
|
1461
|
+
var tmp0 = this.t1p_1;
|
|
1462
|
+
var b = get_remaining(this.q1p_1.m1l());
|
|
1463
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
1464
|
+
this.q1p_1.m1l().vp(this.r1p_1.p1l(), count);
|
|
1465
|
+
this.t1p_1 = subtract(this.t1p_1, count);
|
|
1466
|
+
this.a9_1 = 5;
|
|
1467
|
+
suspendResult = this.r1p_1.k1l(this);
|
|
1471
1468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1472
1469
|
return suspendResult;
|
|
1473
1470
|
}
|
|
1474
1471
|
|
|
1475
1472
|
continue $sm;
|
|
1476
1473
|
case 5:
|
|
1477
|
-
this.
|
|
1474
|
+
this.a9_1 = 2;
|
|
1478
1475
|
continue $sm;
|
|
1479
1476
|
case 6:
|
|
1480
|
-
this.
|
|
1481
|
-
this.
|
|
1477
|
+
this.b9_1 = 12;
|
|
1478
|
+
this.a9_1 = 10;
|
|
1482
1479
|
continue $sm;
|
|
1483
1480
|
case 7:
|
|
1484
|
-
this.
|
|
1485
|
-
var tmp_0 = this.
|
|
1481
|
+
this.b9_1 = 8;
|
|
1482
|
+
var tmp_0 = this.d9_1;
|
|
1486
1483
|
if (tmp_0 instanceof Error) {
|
|
1487
|
-
var cause = this.
|
|
1488
|
-
this.
|
|
1489
|
-
close_0(this.
|
|
1484
|
+
var cause = this.d9_1;
|
|
1485
|
+
this.q1p_1.x1l(cause);
|
|
1486
|
+
close_0(this.r1p_1, cause);
|
|
1490
1487
|
throw cause;
|
|
1491
1488
|
} else {
|
|
1492
|
-
throw this.
|
|
1489
|
+
throw this.d9_1;
|
|
1493
1490
|
}
|
|
1494
1491
|
|
|
1495
1492
|
case 8:
|
|
1496
|
-
this.
|
|
1497
|
-
this.
|
|
1498
|
-
this.
|
|
1499
|
-
suspendResult = this.
|
|
1493
|
+
this.b9_1 = 12;
|
|
1494
|
+
this.u1p_1 = this.d9_1;
|
|
1495
|
+
this.a9_1 = 9;
|
|
1496
|
+
suspendResult = this.r1p_1.k1l(this);
|
|
1500
1497
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1501
1498
|
return suspendResult;
|
|
1502
1499
|
}
|
|
1503
1500
|
|
|
1504
1501
|
continue $sm;
|
|
1505
1502
|
case 9:
|
|
1506
|
-
throw this.
|
|
1503
|
+
throw this.u1p_1;
|
|
1507
1504
|
case 10:
|
|
1508
|
-
this.
|
|
1509
|
-
this.
|
|
1510
|
-
suspendResult = this.
|
|
1505
|
+
this.b9_1 = 12;
|
|
1506
|
+
this.a9_1 = 11;
|
|
1507
|
+
suspendResult = this.r1p_1.k1l(this);
|
|
1511
1508
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1512
1509
|
return suspendResult;
|
|
1513
1510
|
}
|
|
1514
1511
|
|
|
1515
1512
|
continue $sm;
|
|
1516
1513
|
case 11:
|
|
1517
|
-
return subtract(this.
|
|
1514
|
+
return subtract(this.s1p_1, this.t1p_1);
|
|
1518
1515
|
case 12:
|
|
1519
|
-
throw this.
|
|
1516
|
+
throw this.d9_1;
|
|
1520
1517
|
}
|
|
1521
1518
|
} catch ($p) {
|
|
1522
1519
|
var e = $p;
|
|
1523
|
-
if (this.
|
|
1520
|
+
if (this.b9_1 === 12) {
|
|
1524
1521
|
throw e;
|
|
1525
1522
|
} else {
|
|
1526
|
-
this.
|
|
1527
|
-
this.
|
|
1523
|
+
this.a9_1 = this.b9_1;
|
|
1524
|
+
this.d9_1 = e;
|
|
1528
1525
|
}
|
|
1529
1526
|
}
|
|
1530
1527
|
while (true);
|
|
1531
1528
|
};
|
|
1532
1529
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1533
1530
|
CoroutineImpl.call(this, resultContinuation);
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1531
|
+
this.d1q_1 = _this__u8e3s4;
|
|
1532
|
+
this.e1q_1 = max;
|
|
1536
1533
|
}
|
|
1537
|
-
protoOf($discardCOROUTINE$).
|
|
1538
|
-
var suspendResult = this.
|
|
1534
|
+
protoOf($discardCOROUTINE$).i9 = function () {
|
|
1535
|
+
var suspendResult = this.c9_1;
|
|
1539
1536
|
$sm: do
|
|
1540
1537
|
try {
|
|
1541
|
-
var tmp = this.
|
|
1538
|
+
var tmp = this.a9_1;
|
|
1542
1539
|
switch (tmp) {
|
|
1543
1540
|
case 0:
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1541
|
+
this.b9_1 = 5;
|
|
1542
|
+
this.f1q_1 = this.e1q_1;
|
|
1543
|
+
this.a9_1 = 1;
|
|
1547
1544
|
continue $sm;
|
|
1548
1545
|
case 1:
|
|
1549
|
-
if (!(
|
|
1550
|
-
this.
|
|
1546
|
+
if (!(this.f1q_1 > 0n && !this.d1q_1.t1l())) {
|
|
1547
|
+
this.a9_1 = 4;
|
|
1551
1548
|
continue $sm;
|
|
1552
1549
|
}
|
|
1553
1550
|
|
|
1554
|
-
if (get_availableForRead(this.
|
|
1555
|
-
this.
|
|
1556
|
-
suspendResult = this.
|
|
1551
|
+
if (get_availableForRead(this.d1q_1) === 0) {
|
|
1552
|
+
this.a9_1 = 2;
|
|
1553
|
+
suspendResult = this.d1q_1.v1l(VOID, this);
|
|
1557
1554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1558
1555
|
return suspendResult;
|
|
1559
1556
|
}
|
|
1560
1557
|
continue $sm;
|
|
1561
1558
|
} else {
|
|
1562
|
-
this.
|
|
1559
|
+
this.a9_1 = 3;
|
|
1563
1560
|
continue $sm;
|
|
1564
1561
|
}
|
|
1565
1562
|
|
|
1566
1563
|
case 2:
|
|
1567
|
-
this.
|
|
1564
|
+
this.a9_1 = 3;
|
|
1568
1565
|
continue $sm;
|
|
1569
1566
|
case 3:
|
|
1570
|
-
var tmp0 = this.
|
|
1571
|
-
var b = get_remaining(this.
|
|
1572
|
-
var count =
|
|
1573
|
-
discard_0(this.
|
|
1574
|
-
this.
|
|
1575
|
-
this.
|
|
1567
|
+
var tmp0 = this.f1q_1;
|
|
1568
|
+
var b = get_remaining(this.d1q_1.m1l());
|
|
1569
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
1570
|
+
discard_0(this.d1q_1.m1l(), count);
|
|
1571
|
+
this.f1q_1 = subtract(this.f1q_1, count);
|
|
1572
|
+
this.a9_1 = 1;
|
|
1576
1573
|
continue $sm;
|
|
1577
1574
|
case 4:
|
|
1578
|
-
return subtract(this.
|
|
1575
|
+
return subtract(this.e1q_1, this.f1q_1);
|
|
1579
1576
|
case 5:
|
|
1580
|
-
throw this.
|
|
1577
|
+
throw this.d9_1;
|
|
1581
1578
|
}
|
|
1582
1579
|
} catch ($p) {
|
|
1583
1580
|
var e = $p;
|
|
1584
|
-
if (this.
|
|
1581
|
+
if (this.b9_1 === 5) {
|
|
1585
1582
|
throw e;
|
|
1586
1583
|
} else {
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1584
|
+
this.a9_1 = this.b9_1;
|
|
1585
|
+
this.d9_1 = e;
|
|
1589
1586
|
}
|
|
1590
1587
|
}
|
|
1591
1588
|
while (true);
|
|
1592
1589
|
};
|
|
1593
1590
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1594
1591
|
CoroutineImpl.call(this, resultContinuation);
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1592
|
+
this.o1q_1 = _this__u8e3s4;
|
|
1593
|
+
this.p1q_1 = byteString;
|
|
1597
1594
|
}
|
|
1598
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1599
|
-
var suspendResult = this.
|
|
1595
|
+
protoOf($skipIfFoundCOROUTINE$).i9 = function () {
|
|
1596
|
+
var suspendResult = this.c9_1;
|
|
1600
1597
|
$sm: do
|
|
1601
1598
|
try {
|
|
1602
|
-
var tmp = this.
|
|
1599
|
+
var tmp = this.a9_1;
|
|
1603
1600
|
switch (tmp) {
|
|
1604
1601
|
case 0:
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
suspendResult = peek(this.
|
|
1602
|
+
this.b9_1 = 4;
|
|
1603
|
+
this.a9_1 = 1;
|
|
1604
|
+
suspendResult = peek(this.o1q_1, this.p1q_1.l1(), this);
|
|
1608
1605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1609
1606
|
return suspendResult;
|
|
1610
1607
|
}
|
|
@@ -1612,15 +1609,15 @@
|
|
|
1612
1609
|
continue $sm;
|
|
1613
1610
|
case 1:
|
|
1614
1611
|
var ARGUMENT = suspendResult;
|
|
1615
|
-
if (equals(ARGUMENT, this.
|
|
1616
|
-
this.
|
|
1617
|
-
suspendResult = discard(this.
|
|
1612
|
+
if (equals(ARGUMENT, this.p1q_1)) {
|
|
1613
|
+
this.a9_1 = 3;
|
|
1614
|
+
suspendResult = discard(this.o1q_1, fromInt(this.p1q_1.l1()), this);
|
|
1618
1615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1619
1616
|
return suspendResult;
|
|
1620
1617
|
}
|
|
1621
1618
|
continue $sm;
|
|
1622
1619
|
} else {
|
|
1623
|
-
this.
|
|
1620
|
+
this.a9_1 = 2;
|
|
1624
1621
|
continue $sm;
|
|
1625
1622
|
}
|
|
1626
1623
|
|
|
@@ -1629,419 +1626,419 @@
|
|
|
1629
1626
|
case 3:
|
|
1630
1627
|
return true;
|
|
1631
1628
|
case 4:
|
|
1632
|
-
throw this.
|
|
1629
|
+
throw this.d9_1;
|
|
1633
1630
|
}
|
|
1634
1631
|
} catch ($p) {
|
|
1635
1632
|
var e = $p;
|
|
1636
|
-
if (this.
|
|
1633
|
+
if (this.b9_1 === 4) {
|
|
1637
1634
|
throw e;
|
|
1638
1635
|
} else {
|
|
1639
|
-
this.
|
|
1640
|
-
this.
|
|
1636
|
+
this.a9_1 = this.b9_1;
|
|
1637
|
+
this.d9_1 = e;
|
|
1641
1638
|
}
|
|
1642
1639
|
}
|
|
1643
1640
|
while (true);
|
|
1644
1641
|
};
|
|
1645
1642
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1646
1643
|
CoroutineImpl.call(this, resultContinuation);
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1644
|
+
this.y1q_1 = _this__u8e3s4;
|
|
1645
|
+
this.z1q_1 = packet;
|
|
1649
1646
|
}
|
|
1650
|
-
protoOf($readPacketCOROUTINE$).
|
|
1651
|
-
var suspendResult = this.
|
|
1647
|
+
protoOf($readPacketCOROUTINE$).i9 = function () {
|
|
1648
|
+
var suspendResult = this.c9_1;
|
|
1652
1649
|
$sm: do
|
|
1653
1650
|
try {
|
|
1654
|
-
var tmp = this.
|
|
1651
|
+
var tmp = this.a9_1;
|
|
1655
1652
|
switch (tmp) {
|
|
1656
1653
|
case 0:
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1654
|
+
this.b9_1 = 6;
|
|
1655
|
+
this.a1r_1 = new Buffer();
|
|
1656
|
+
this.a9_1 = 1;
|
|
1660
1657
|
continue $sm;
|
|
1661
1658
|
case 1:
|
|
1662
|
-
if (!(
|
|
1663
|
-
this.
|
|
1659
|
+
if (!(this.a1r_1.l1() < fromInt(this.z1q_1))) {
|
|
1660
|
+
this.a9_1 = 5;
|
|
1664
1661
|
continue $sm;
|
|
1665
1662
|
}
|
|
1666
1663
|
|
|
1667
|
-
if (this.
|
|
1668
|
-
this.
|
|
1669
|
-
suspendResult = this.
|
|
1664
|
+
if (this.y1q_1.m1l().to()) {
|
|
1665
|
+
this.a9_1 = 2;
|
|
1666
|
+
suspendResult = this.y1q_1.v1l(VOID, this);
|
|
1670
1667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1671
1668
|
return suspendResult;
|
|
1672
1669
|
}
|
|
1673
1670
|
continue $sm;
|
|
1674
1671
|
} else {
|
|
1675
|
-
this.
|
|
1672
|
+
this.a9_1 = 3;
|
|
1676
1673
|
continue $sm;
|
|
1677
1674
|
}
|
|
1678
1675
|
|
|
1679
1676
|
case 2:
|
|
1680
|
-
this.
|
|
1677
|
+
this.a9_1 = 3;
|
|
1681
1678
|
continue $sm;
|
|
1682
1679
|
case 3:
|
|
1683
|
-
if (this.
|
|
1684
|
-
this.
|
|
1680
|
+
if (this.y1q_1.t1l()) {
|
|
1681
|
+
this.a9_1 = 5;
|
|
1685
1682
|
continue $sm;
|
|
1686
1683
|
} else {
|
|
1687
|
-
this.
|
|
1684
|
+
this.a9_1 = 4;
|
|
1688
1685
|
continue $sm;
|
|
1689
1686
|
}
|
|
1690
1687
|
|
|
1691
1688
|
case 4:
|
|
1692
|
-
if (
|
|
1693
|
-
this.
|
|
1689
|
+
if (get_remaining(this.y1q_1.m1l()) > subtract(numberToLong(this.z1q_1), this.a1r_1.l1())) {
|
|
1690
|
+
this.y1q_1.m1l().vp(this.a1r_1, subtract(numberToLong(this.z1q_1), this.a1r_1.l1()));
|
|
1694
1691
|
} else {
|
|
1695
|
-
this.
|
|
1692
|
+
this.y1q_1.m1l().wp(this.a1r_1);
|
|
1696
1693
|
}
|
|
1697
1694
|
|
|
1698
|
-
this.
|
|
1695
|
+
this.a9_1 = 1;
|
|
1699
1696
|
continue $sm;
|
|
1700
1697
|
case 5:
|
|
1701
|
-
if (
|
|
1702
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1698
|
+
if (this.a1r_1.l1() < fromInt(this.z1q_1)) {
|
|
1699
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.z1q_1 + ' bytes but only ' + this.a1r_1.l1().toString() + ' available');
|
|
1703
1700
|
}
|
|
1704
1701
|
|
|
1705
|
-
return this.
|
|
1702
|
+
return this.a1r_1;
|
|
1706
1703
|
case 6:
|
|
1707
|
-
throw this.
|
|
1704
|
+
throw this.d9_1;
|
|
1708
1705
|
}
|
|
1709
1706
|
} catch ($p) {
|
|
1710
1707
|
var e = $p;
|
|
1711
|
-
if (this.
|
|
1708
|
+
if (this.b9_1 === 6) {
|
|
1712
1709
|
throw e;
|
|
1713
1710
|
} else {
|
|
1714
|
-
this.
|
|
1715
|
-
this.
|
|
1711
|
+
this.a9_1 = this.b9_1;
|
|
1712
|
+
this.d9_1 = e;
|
|
1716
1713
|
}
|
|
1717
1714
|
}
|
|
1718
1715
|
while (true);
|
|
1719
1716
|
};
|
|
1720
1717
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1721
1718
|
CoroutineImpl.call(this, resultContinuation);
|
|
1722
|
-
this.
|
|
1723
|
-
this.
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1719
|
+
this.o1r_1 = _this__u8e3s4;
|
|
1720
|
+
this.p1r_1 = out;
|
|
1721
|
+
this.q1r_1 = max;
|
|
1722
|
+
this.r1r_1 = lineEnding;
|
|
1726
1723
|
}
|
|
1727
|
-
protoOf($readUTF8LineToCOROUTINE$).
|
|
1728
|
-
var suspendResult = this.
|
|
1724
|
+
protoOf($readUTF8LineToCOROUTINE$).i9 = function () {
|
|
1725
|
+
var suspendResult = this.c9_1;
|
|
1729
1726
|
$sm: do
|
|
1730
1727
|
try {
|
|
1731
|
-
var tmp = this.
|
|
1728
|
+
var tmp = this.a9_1;
|
|
1732
1729
|
switch (tmp) {
|
|
1733
1730
|
case 0:
|
|
1734
|
-
this.
|
|
1735
|
-
if (this.
|
|
1736
|
-
this.
|
|
1737
|
-
suspendResult = this.
|
|
1731
|
+
this.b9_1 = 21;
|
|
1732
|
+
if (this.o1r_1.m1l().to()) {
|
|
1733
|
+
this.a9_1 = 1;
|
|
1734
|
+
suspendResult = this.o1r_1.v1l(VOID, this);
|
|
1738
1735
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1739
1736
|
return suspendResult;
|
|
1740
1737
|
}
|
|
1741
1738
|
continue $sm;
|
|
1742
1739
|
} else {
|
|
1743
|
-
this.
|
|
1740
|
+
this.a9_1 = 2;
|
|
1744
1741
|
continue $sm;
|
|
1745
1742
|
}
|
|
1746
1743
|
|
|
1747
1744
|
case 1:
|
|
1748
|
-
this.
|
|
1745
|
+
this.a9_1 = 2;
|
|
1749
1746
|
continue $sm;
|
|
1750
1747
|
case 2:
|
|
1751
|
-
if (this.
|
|
1748
|
+
if (this.o1r_1.t1l())
|
|
1752
1749
|
return false;
|
|
1753
|
-
this.
|
|
1754
|
-
this.
|
|
1750
|
+
this.x1r_1 = new Buffer();
|
|
1751
|
+
this.a9_1 = 3;
|
|
1755
1752
|
continue $sm;
|
|
1756
1753
|
case 3:
|
|
1757
|
-
this.
|
|
1758
|
-
this.
|
|
1759
|
-
this.
|
|
1754
|
+
this.u1r_1 = this.x1r_1;
|
|
1755
|
+
this.t1r_1 = null;
|
|
1756
|
+
this.a9_1 = 4;
|
|
1760
1757
|
continue $sm;
|
|
1761
1758
|
case 4:
|
|
1762
|
-
this.
|
|
1759
|
+
this.a9_1 = 5;
|
|
1763
1760
|
continue $sm;
|
|
1764
1761
|
case 5:
|
|
1765
|
-
this.
|
|
1762
|
+
this.a9_1 = 6;
|
|
1766
1763
|
continue $sm;
|
|
1767
1764
|
case 6:
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1765
|
+
this.b9_1 = 18;
|
|
1766
|
+
this.b9_1 = 17;
|
|
1767
|
+
this.w1r_1 = this.u1r_1;
|
|
1768
|
+
this.a9_1 = 7;
|
|
1772
1769
|
continue $sm;
|
|
1773
1770
|
case 7:
|
|
1774
|
-
if (!!this.
|
|
1775
|
-
this.
|
|
1771
|
+
if (!!this.o1r_1.t1l()) {
|
|
1772
|
+
this.a9_1 = 14;
|
|
1776
1773
|
continue $sm;
|
|
1777
1774
|
}
|
|
1778
1775
|
|
|
1779
|
-
this.
|
|
1776
|
+
this.a9_1 = 8;
|
|
1780
1777
|
continue $sm;
|
|
1781
1778
|
case 8:
|
|
1782
|
-
if (!!this.
|
|
1783
|
-
this.
|
|
1779
|
+
if (!!this.o1r_1.m1l().to()) {
|
|
1780
|
+
this.a9_1 = 12;
|
|
1784
1781
|
continue $sm;
|
|
1785
1782
|
}
|
|
1786
1783
|
|
|
1787
|
-
var b = this.
|
|
1784
|
+
var b = this.o1r_1.m1l().wo();
|
|
1788
1785
|
if (b === 13) {
|
|
1789
|
-
if (this.
|
|
1790
|
-
this.
|
|
1791
|
-
suspendResult = this.
|
|
1786
|
+
if (this.o1r_1.m1l().to()) {
|
|
1787
|
+
this.a9_1 = 10;
|
|
1788
|
+
suspendResult = this.o1r_1.v1l(VOID, this);
|
|
1792
1789
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1793
1790
|
return suspendResult;
|
|
1794
1791
|
}
|
|
1795
1792
|
continue $sm;
|
|
1796
1793
|
} else {
|
|
1797
|
-
this.
|
|
1794
|
+
this.a9_1 = 11;
|
|
1798
1795
|
continue $sm;
|
|
1799
1796
|
}
|
|
1800
1797
|
} else {
|
|
1801
1798
|
if (b === 10) {
|
|
1802
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1803
|
-
this.
|
|
1804
|
-
this.
|
|
1805
|
-
this.
|
|
1806
|
-
this.
|
|
1799
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r1r_1, Companion_getInstance_1().c1r_1);
|
|
1800
|
+
this.p1r_1.k1(readString(this.w1r_1));
|
|
1801
|
+
this.v1r_1 = true;
|
|
1802
|
+
this.b9_1 = 21;
|
|
1803
|
+
this.a9_1 = 15;
|
|
1807
1804
|
continue $sm;
|
|
1808
1805
|
} else {
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1806
|
+
this.w1r_1.mq(b);
|
|
1807
|
+
this.a9_1 = 9;
|
|
1811
1808
|
continue $sm;
|
|
1812
1809
|
}
|
|
1813
1810
|
}
|
|
1814
1811
|
|
|
1815
1812
|
case 9:
|
|
1816
|
-
this.
|
|
1813
|
+
this.a9_1 = 8;
|
|
1817
1814
|
continue $sm;
|
|
1818
1815
|
case 10:
|
|
1819
|
-
this.
|
|
1816
|
+
this.a9_1 = 11;
|
|
1820
1817
|
continue $sm;
|
|
1821
1818
|
case 11:
|
|
1822
|
-
if (this.
|
|
1823
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1824
|
-
discard_0(this.
|
|
1819
|
+
if (this.o1r_1.m1l().so().op(0n) === 10) {
|
|
1820
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r1r_1, Companion_getInstance_1().d1r_1);
|
|
1821
|
+
discard_0(this.o1r_1.m1l(), 1n);
|
|
1825
1822
|
} else {
|
|
1826
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1823
|
+
readUTF8LineTo$checkLineEndingAllowed(this.r1r_1, Companion_getInstance_1().b1r_1);
|
|
1827
1824
|
}
|
|
1828
1825
|
|
|
1829
|
-
this.
|
|
1830
|
-
this.
|
|
1831
|
-
this.
|
|
1832
|
-
this.
|
|
1826
|
+
this.p1r_1.k1(readString(this.w1r_1));
|
|
1827
|
+
this.v1r_1 = true;
|
|
1828
|
+
this.b9_1 = 21;
|
|
1829
|
+
this.a9_1 = 15;
|
|
1833
1830
|
continue $sm;
|
|
1834
1831
|
case 12:
|
|
1835
|
-
if (
|
|
1836
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1832
|
+
if (this.w1r_1.l1() >= fromInt(this.q1r_1)) {
|
|
1833
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.q1r_1 + ' characters');
|
|
1837
1834
|
}
|
|
1838
1835
|
|
|
1839
|
-
this.
|
|
1840
|
-
suspendResult = this.
|
|
1836
|
+
this.a9_1 = 13;
|
|
1837
|
+
suspendResult = this.o1r_1.v1l(VOID, this);
|
|
1841
1838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1842
1839
|
return suspendResult;
|
|
1843
1840
|
}
|
|
1844
1841
|
|
|
1845
1842
|
continue $sm;
|
|
1846
1843
|
case 13:
|
|
1847
|
-
this.
|
|
1844
|
+
this.a9_1 = 7;
|
|
1848
1845
|
continue $sm;
|
|
1849
1846
|
case 14:
|
|
1850
1847
|
var tmp_0 = this;
|
|
1851
|
-
var this_0 =
|
|
1848
|
+
var this_0 = this.w1r_1.l1() > 0n;
|
|
1852
1849
|
if (this_0) {
|
|
1853
|
-
this.
|
|
1850
|
+
this.p1r_1.k1(readString(this.w1r_1));
|
|
1854
1851
|
}
|
|
1855
1852
|
|
|
1856
|
-
tmp_0.
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1853
|
+
tmp_0.v1r_1 = this_0;
|
|
1854
|
+
this.b9_1 = 21;
|
|
1855
|
+
this.a9_1 = 15;
|
|
1859
1856
|
var tmp_1 = this;
|
|
1860
1857
|
continue $sm;
|
|
1861
1858
|
case 15:
|
|
1862
|
-
var tmp_2 = this.
|
|
1863
|
-
this.
|
|
1864
|
-
closeFinally(this.
|
|
1859
|
+
var tmp_2 = this.v1r_1;
|
|
1860
|
+
this.b9_1 = 21;
|
|
1861
|
+
closeFinally(this.u1r_1, this.t1r_1);
|
|
1865
1862
|
return tmp_2;
|
|
1866
1863
|
case 16:
|
|
1867
|
-
this.
|
|
1864
|
+
this.b9_1 = 21;
|
|
1868
1865
|
var tmp_3 = this;
|
|
1869
|
-
closeFinally(this.
|
|
1870
|
-
tmp_3.
|
|
1871
|
-
this.
|
|
1866
|
+
closeFinally(this.u1r_1, this.t1r_1);
|
|
1867
|
+
tmp_3.s1r_1 = Unit_instance;
|
|
1868
|
+
this.a9_1 = 20;
|
|
1872
1869
|
continue $sm;
|
|
1873
1870
|
case 17:
|
|
1874
|
-
this.
|
|
1875
|
-
var tmp_4 = this.
|
|
1871
|
+
this.b9_1 = 18;
|
|
1872
|
+
var tmp_4 = this.d9_1;
|
|
1876
1873
|
if (tmp_4 instanceof Error) {
|
|
1877
|
-
var e = this.
|
|
1874
|
+
var e = this.d9_1;
|
|
1878
1875
|
var tmp_5 = this;
|
|
1879
|
-
this.
|
|
1876
|
+
this.t1r_1 = e;
|
|
1880
1877
|
throw e;
|
|
1881
1878
|
} else {
|
|
1882
|
-
throw this.
|
|
1879
|
+
throw this.d9_1;
|
|
1883
1880
|
}
|
|
1884
1881
|
|
|
1885
1882
|
case 18:
|
|
1886
|
-
this.
|
|
1887
|
-
var t = this.
|
|
1888
|
-
closeFinally(this.
|
|
1883
|
+
this.b9_1 = 21;
|
|
1884
|
+
var t = this.d9_1;
|
|
1885
|
+
closeFinally(this.u1r_1, this.t1r_1);
|
|
1889
1886
|
throw t;
|
|
1890
1887
|
case 19:
|
|
1891
|
-
this.
|
|
1892
|
-
closeFinally(this.
|
|
1888
|
+
this.b9_1 = 21;
|
|
1889
|
+
closeFinally(this.u1r_1, this.t1r_1);
|
|
1893
1890
|
if (false) {
|
|
1894
|
-
this.
|
|
1891
|
+
this.a9_1 = 3;
|
|
1895
1892
|
continue $sm;
|
|
1896
1893
|
}
|
|
1897
1894
|
|
|
1898
|
-
this.
|
|
1895
|
+
this.a9_1 = 20;
|
|
1899
1896
|
continue $sm;
|
|
1900
1897
|
case 20:
|
|
1901
1898
|
return Unit_instance;
|
|
1902
1899
|
case 21:
|
|
1903
|
-
throw this.
|
|
1900
|
+
throw this.d9_1;
|
|
1904
1901
|
}
|
|
1905
1902
|
} catch ($p) {
|
|
1906
1903
|
var e_0 = $p;
|
|
1907
|
-
if (this.
|
|
1904
|
+
if (this.b9_1 === 21) {
|
|
1908
1905
|
throw e_0;
|
|
1909
1906
|
} else {
|
|
1910
|
-
this.
|
|
1911
|
-
this.
|
|
1907
|
+
this.a9_1 = this.b9_1;
|
|
1908
|
+
this.d9_1 = e_0;
|
|
1912
1909
|
}
|
|
1913
1910
|
}
|
|
1914
1911
|
while (true);
|
|
1915
1912
|
};
|
|
1916
1913
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1917
1914
|
CoroutineImpl.call(this, resultContinuation);
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1915
|
+
this.g1s_1 = _this__u8e3s4;
|
|
1916
|
+
this.h1s_1 = max;
|
|
1920
1917
|
}
|
|
1921
|
-
protoOf($readRemainingCOROUTINE$_0).
|
|
1922
|
-
var suspendResult = this.
|
|
1918
|
+
protoOf($readRemainingCOROUTINE$_0).i9 = function () {
|
|
1919
|
+
var suspendResult = this.c9_1;
|
|
1923
1920
|
$sm: do
|
|
1924
1921
|
try {
|
|
1925
|
-
var tmp = this.
|
|
1922
|
+
var tmp = this.a9_1;
|
|
1926
1923
|
switch (tmp) {
|
|
1927
1924
|
case 0:
|
|
1928
|
-
this.
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1925
|
+
this.b9_1 = 4;
|
|
1926
|
+
this.i1s_1 = BytePacketBuilder();
|
|
1927
|
+
this.j1s_1 = this.h1s_1;
|
|
1928
|
+
this.a9_1 = 1;
|
|
1932
1929
|
continue $sm;
|
|
1933
1930
|
case 1:
|
|
1934
|
-
if (!(!this.
|
|
1935
|
-
this.
|
|
1931
|
+
if (!(!this.g1s_1.t1l() && this.j1s_1 > 0n)) {
|
|
1932
|
+
this.a9_1 = 3;
|
|
1936
1933
|
continue $sm;
|
|
1937
1934
|
}
|
|
1938
1935
|
|
|
1939
|
-
if (
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1936
|
+
if (this.j1s_1 >= get_remaining(this.g1s_1.m1l())) {
|
|
1937
|
+
this.j1s_1 = subtract(this.j1s_1, get_remaining(this.g1s_1.m1l()));
|
|
1938
|
+
this.g1s_1.m1l().wp(this.i1s_1);
|
|
1942
1939
|
} else {
|
|
1943
|
-
this.
|
|
1944
|
-
this.
|
|
1940
|
+
this.g1s_1.m1l().vp(this.i1s_1, this.j1s_1);
|
|
1941
|
+
this.j1s_1 = 0n;
|
|
1945
1942
|
}
|
|
1946
1943
|
|
|
1947
|
-
this.
|
|
1948
|
-
suspendResult = this.
|
|
1944
|
+
this.a9_1 = 2;
|
|
1945
|
+
suspendResult = this.g1s_1.v1l(VOID, this);
|
|
1949
1946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1950
1947
|
return suspendResult;
|
|
1951
1948
|
}
|
|
1952
1949
|
|
|
1953
1950
|
continue $sm;
|
|
1954
1951
|
case 2:
|
|
1955
|
-
this.
|
|
1952
|
+
this.a9_1 = 1;
|
|
1956
1953
|
continue $sm;
|
|
1957
1954
|
case 3:
|
|
1958
|
-
return this.
|
|
1955
|
+
return this.i1s_1.so();
|
|
1959
1956
|
case 4:
|
|
1960
|
-
throw this.
|
|
1957
|
+
throw this.d9_1;
|
|
1961
1958
|
}
|
|
1962
1959
|
} catch ($p) {
|
|
1963
1960
|
var e = $p;
|
|
1964
|
-
if (this.
|
|
1961
|
+
if (this.b9_1 === 4) {
|
|
1965
1962
|
throw e;
|
|
1966
1963
|
} else {
|
|
1967
|
-
this.
|
|
1968
|
-
this.
|
|
1964
|
+
this.a9_1 = this.b9_1;
|
|
1965
|
+
this.d9_1 = e;
|
|
1969
1966
|
}
|
|
1970
1967
|
}
|
|
1971
1968
|
while (true);
|
|
1972
1969
|
};
|
|
1973
1970
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1974
1971
|
CoroutineImpl.call(this, resultContinuation);
|
|
1975
|
-
this.
|
|
1972
|
+
this.s1s_1 = _this__u8e3s4;
|
|
1976
1973
|
}
|
|
1977
|
-
protoOf($readBufferCOROUTINE$).
|
|
1978
|
-
var suspendResult = this.
|
|
1974
|
+
protoOf($readBufferCOROUTINE$).i9 = function () {
|
|
1975
|
+
var suspendResult = this.c9_1;
|
|
1979
1976
|
$sm: do
|
|
1980
1977
|
try {
|
|
1981
|
-
var tmp = this.
|
|
1978
|
+
var tmp = this.a9_1;
|
|
1982
1979
|
switch (tmp) {
|
|
1983
1980
|
case 0:
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
1986
|
-
this.
|
|
1981
|
+
this.b9_1 = 4;
|
|
1982
|
+
this.t1s_1 = new Buffer();
|
|
1983
|
+
this.a9_1 = 1;
|
|
1987
1984
|
continue $sm;
|
|
1988
1985
|
case 1:
|
|
1989
|
-
if (!!this.
|
|
1990
|
-
this.
|
|
1986
|
+
if (!!this.s1s_1.t1l()) {
|
|
1987
|
+
this.a9_1 = 3;
|
|
1991
1988
|
continue $sm;
|
|
1992
1989
|
}
|
|
1993
1990
|
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
suspendResult = this.
|
|
1991
|
+
this.t1s_1.lq(this.s1s_1.m1l());
|
|
1992
|
+
this.a9_1 = 2;
|
|
1993
|
+
suspendResult = this.s1s_1.v1l(VOID, this);
|
|
1997
1994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1998
1995
|
return suspendResult;
|
|
1999
1996
|
}
|
|
2000
1997
|
|
|
2001
1998
|
continue $sm;
|
|
2002
1999
|
case 2:
|
|
2003
|
-
this.
|
|
2000
|
+
this.a9_1 = 1;
|
|
2004
2001
|
continue $sm;
|
|
2005
2002
|
case 3:
|
|
2006
|
-
var tmp0_safe_receiver = this.
|
|
2003
|
+
var tmp0_safe_receiver = this.s1s_1.r1l();
|
|
2007
2004
|
if (tmp0_safe_receiver == null)
|
|
2008
2005
|
null;
|
|
2009
2006
|
else {
|
|
2010
2007
|
throw tmp0_safe_receiver;
|
|
2011
2008
|
}
|
|
2012
2009
|
|
|
2013
|
-
return this.
|
|
2010
|
+
return this.t1s_1;
|
|
2014
2011
|
case 4:
|
|
2015
|
-
throw this.
|
|
2012
|
+
throw this.d9_1;
|
|
2016
2013
|
}
|
|
2017
2014
|
} catch ($p) {
|
|
2018
2015
|
var e = $p;
|
|
2019
|
-
if (this.
|
|
2016
|
+
if (this.b9_1 === 4) {
|
|
2020
2017
|
throw e;
|
|
2021
2018
|
} else {
|
|
2022
|
-
this.
|
|
2023
|
-
this.
|
|
2019
|
+
this.a9_1 = this.b9_1;
|
|
2020
|
+
this.d9_1 = e;
|
|
2024
2021
|
}
|
|
2025
2022
|
}
|
|
2026
2023
|
while (true);
|
|
2027
2024
|
};
|
|
2028
2025
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2029
2026
|
CoroutineImpl.call(this, resultContinuation);
|
|
2030
|
-
this.
|
|
2031
|
-
this.
|
|
2027
|
+
this.c1t_1 = _this__u8e3s4;
|
|
2028
|
+
this.d1t_1 = count;
|
|
2032
2029
|
}
|
|
2033
|
-
protoOf($peekCOROUTINE$).
|
|
2034
|
-
var suspendResult = this.
|
|
2030
|
+
protoOf($peekCOROUTINE$).i9 = function () {
|
|
2031
|
+
var suspendResult = this.c9_1;
|
|
2035
2032
|
$sm: do
|
|
2036
2033
|
try {
|
|
2037
|
-
var tmp = this.
|
|
2034
|
+
var tmp = this.a9_1;
|
|
2038
2035
|
switch (tmp) {
|
|
2039
2036
|
case 0:
|
|
2040
|
-
this.
|
|
2041
|
-
if (this.
|
|
2037
|
+
this.b9_1 = 3;
|
|
2038
|
+
if (this.c1t_1.t1l())
|
|
2042
2039
|
return null;
|
|
2043
|
-
this.
|
|
2044
|
-
suspendResult = this.
|
|
2040
|
+
this.a9_1 = 1;
|
|
2041
|
+
suspendResult = this.c1t_1.u1l(this.d1t_1, this);
|
|
2045
2042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2046
2043
|
return suspendResult;
|
|
2047
2044
|
}
|
|
@@ -2051,22 +2048,22 @@
|
|
|
2051
2048
|
if (!suspendResult) {
|
|
2052
2049
|
return null;
|
|
2053
2050
|
} else {
|
|
2054
|
-
this.
|
|
2051
|
+
this.a9_1 = 2;
|
|
2055
2052
|
continue $sm;
|
|
2056
2053
|
}
|
|
2057
2054
|
|
|
2058
2055
|
case 2:
|
|
2059
|
-
return readByteString(this.
|
|
2056
|
+
return readByteString(this.c1t_1.m1l().xp(), this.d1t_1);
|
|
2060
2057
|
case 3:
|
|
2061
|
-
throw this.
|
|
2058
|
+
throw this.d9_1;
|
|
2062
2059
|
}
|
|
2063
2060
|
} catch ($p) {
|
|
2064
2061
|
var e = $p;
|
|
2065
|
-
if (this.
|
|
2062
|
+
if (this.b9_1 === 3) {
|
|
2066
2063
|
throw e;
|
|
2067
2064
|
} else {
|
|
2068
|
-
this.
|
|
2069
|
-
this.
|
|
2065
|
+
this.a9_1 = this.b9_1;
|
|
2066
|
+
this.d9_1 = e;
|
|
2070
2067
|
}
|
|
2071
2068
|
}
|
|
2072
2069
|
while (true);
|
|
@@ -2075,50 +2072,50 @@
|
|
|
2075
2072
|
}
|
|
2076
2073
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2077
2074
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2078
|
-
tmp.
|
|
2079
|
-
tmp.
|
|
2080
|
-
return tmp.
|
|
2075
|
+
tmp.c9_1 = Unit_instance;
|
|
2076
|
+
tmp.d9_1 = null;
|
|
2077
|
+
return tmp.i9();
|
|
2081
2078
|
}
|
|
2082
2079
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2083
2080
|
CoroutineImpl.call(this, resultContinuation);
|
|
2084
|
-
this.
|
|
2081
|
+
this.m1t_1 = _this__u8e3s4;
|
|
2085
2082
|
}
|
|
2086
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2087
|
-
var suspendResult = this.
|
|
2083
|
+
protoOf($flushIfNeededCOROUTINE$).i9 = function () {
|
|
2084
|
+
var suspendResult = this.c9_1;
|
|
2088
2085
|
$sm: do
|
|
2089
2086
|
try {
|
|
2090
|
-
var tmp = this.
|
|
2087
|
+
var tmp = this.a9_1;
|
|
2091
2088
|
switch (tmp) {
|
|
2092
2089
|
case 0:
|
|
2093
|
-
this.
|
|
2094
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2095
|
-
if (this.
|
|
2096
|
-
this.
|
|
2097
|
-
suspendResult = this.
|
|
2090
|
+
this.b9_1 = 3;
|
|
2091
|
+
rethrowCloseCauseIfNeeded_1(this.m1t_1);
|
|
2092
|
+
if (this.m1t_1.l1l() || get_size(this.m1t_1.p1l()) >= 1048576) {
|
|
2093
|
+
this.a9_1 = 1;
|
|
2094
|
+
suspendResult = this.m1t_1.k1l(this);
|
|
2098
2095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2099
2096
|
return suspendResult;
|
|
2100
2097
|
}
|
|
2101
2098
|
continue $sm;
|
|
2102
2099
|
} else {
|
|
2103
|
-
this.
|
|
2100
|
+
this.a9_1 = 2;
|
|
2104
2101
|
continue $sm;
|
|
2105
2102
|
}
|
|
2106
2103
|
|
|
2107
2104
|
case 1:
|
|
2108
|
-
this.
|
|
2105
|
+
this.a9_1 = 2;
|
|
2109
2106
|
continue $sm;
|
|
2110
2107
|
case 2:
|
|
2111
2108
|
return Unit_instance;
|
|
2112
2109
|
case 3:
|
|
2113
|
-
throw this.
|
|
2110
|
+
throw this.d9_1;
|
|
2114
2111
|
}
|
|
2115
2112
|
} catch ($p) {
|
|
2116
2113
|
var e = $p;
|
|
2117
|
-
if (this.
|
|
2114
|
+
if (this.b9_1 === 3) {
|
|
2118
2115
|
throw e;
|
|
2119
2116
|
} else {
|
|
2120
|
-
this.
|
|
2121
|
-
this.
|
|
2117
|
+
this.a9_1 = this.b9_1;
|
|
2118
|
+
this.d9_1 = e;
|
|
2122
2119
|
}
|
|
2123
2120
|
}
|
|
2124
2121
|
while (true);
|
|
@@ -2131,170 +2128,170 @@
|
|
|
2131
2128
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2132
2129
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2133
2130
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2134
|
-
_this__u8e3s4.
|
|
2131
|
+
_this__u8e3s4.p1l().cq(value, startIndex, endIndex);
|
|
2135
2132
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2136
2133
|
}
|
|
2137
2134
|
function WriterJob(channel, job) {
|
|
2138
|
-
this.
|
|
2139
|
-
this.
|
|
2135
|
+
this.n1t_1 = channel;
|
|
2136
|
+
this.o1t_1 = job;
|
|
2140
2137
|
}
|
|
2141
|
-
protoOf(WriterJob).
|
|
2142
|
-
return this.
|
|
2138
|
+
protoOf(WriterJob).qv = function () {
|
|
2139
|
+
return this.o1t_1;
|
|
2143
2140
|
};
|
|
2144
2141
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2145
|
-
coroutineContext = coroutineContext === VOID ?
|
|
2142
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
2146
2143
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
2147
2144
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2148
2145
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2149
2146
|
}
|
|
2150
2147
|
function WriterScope(channel, coroutineContext) {
|
|
2151
|
-
this.
|
|
2152
|
-
this.
|
|
2148
|
+
this.p1t_1 = channel;
|
|
2149
|
+
this.q1t_1 = coroutineContext;
|
|
2153
2150
|
}
|
|
2154
|
-
protoOf(WriterScope).
|
|
2155
|
-
return this.
|
|
2151
|
+
protoOf(WriterScope).es = function () {
|
|
2152
|
+
return this.q1t_1;
|
|
2156
2153
|
};
|
|
2157
2154
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2158
2155
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2159
|
-
return _this__u8e3s4.
|
|
2156
|
+
return _this__u8e3s4.qv().gt(block);
|
|
2160
2157
|
}
|
|
2161
2158
|
function close_0(_this__u8e3s4, cause) {
|
|
2162
2159
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2163
2160
|
if (cause == null) {
|
|
2164
2161
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2165
2162
|
} else {
|
|
2166
|
-
_this__u8e3s4.
|
|
2163
|
+
_this__u8e3s4.x1l(cause);
|
|
2167
2164
|
}
|
|
2168
2165
|
}
|
|
2169
2166
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2170
2167
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2171
|
-
tmp.
|
|
2172
|
-
tmp.
|
|
2173
|
-
return tmp.
|
|
2168
|
+
tmp.c9_1 = Unit_instance;
|
|
2169
|
+
tmp.d9_1 = null;
|
|
2170
|
+
return tmp.i9();
|
|
2174
2171
|
}
|
|
2175
2172
|
function fireAndForget(_this__u8e3s4) {
|
|
2176
2173
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2177
2174
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
2178
2175
|
}
|
|
2179
2176
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
2180
|
-
coroutineContext = coroutineContext === VOID ?
|
|
2177
|
+
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
2181
2178
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2182
2179
|
// Inline function 'kotlin.apply' call
|
|
2183
2180
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2184
|
-
this_0.
|
|
2181
|
+
this_0.gt(writer$lambda(channel));
|
|
2185
2182
|
var job = this_0;
|
|
2186
2183
|
return new WriterJob(channel, job);
|
|
2187
2184
|
}
|
|
2188
2185
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2189
|
-
_this__u8e3s4.
|
|
2186
|
+
_this__u8e3s4.p1l().mq(value);
|
|
2190
2187
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2191
2188
|
}
|
|
2192
2189
|
function NO_CALLBACK$1() {
|
|
2193
|
-
this.
|
|
2190
|
+
this.b1u_1 = EmptyCoroutineContext_instance;
|
|
2194
2191
|
}
|
|
2195
|
-
protoOf(NO_CALLBACK$1).
|
|
2196
|
-
return this.
|
|
2192
|
+
protoOf(NO_CALLBACK$1).g9 = function () {
|
|
2193
|
+
return this.b1u_1;
|
|
2197
2194
|
};
|
|
2198
|
-
protoOf(NO_CALLBACK$1).
|
|
2195
|
+
protoOf(NO_CALLBACK$1).h9 = function (result) {
|
|
2199
2196
|
return Unit_instance;
|
|
2200
2197
|
};
|
|
2201
|
-
protoOf(NO_CALLBACK$1).
|
|
2202
|
-
return this.
|
|
2198
|
+
protoOf(NO_CALLBACK$1).l9 = function (result) {
|
|
2199
|
+
return this.h9(result);
|
|
2203
2200
|
};
|
|
2204
2201
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2205
|
-
this.
|
|
2202
|
+
this.c1u_1 = p0;
|
|
2206
2203
|
}
|
|
2207
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2208
|
-
return this.
|
|
2204
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).d1u = function ($completion) {
|
|
2205
|
+
return this.c1u_1.w1l($completion);
|
|
2209
2206
|
};
|
|
2210
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2211
|
-
return this.
|
|
2207
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).ra = function ($completion) {
|
|
2208
|
+
return this.d1u($completion);
|
|
2212
2209
|
};
|
|
2213
2210
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2214
2211
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2215
2212
|
var l = function ($completion) {
|
|
2216
|
-
return i.
|
|
2213
|
+
return i.d1u($completion);
|
|
2217
2214
|
};
|
|
2218
2215
|
l.callableName = 'flushAndClose';
|
|
2219
2216
|
l.$arity = 0;
|
|
2220
2217
|
return l;
|
|
2221
2218
|
}
|
|
2222
2219
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2220
|
+
this.m1u_1 = $block;
|
|
2221
|
+
this.n1u_1 = $channel;
|
|
2225
2222
|
CoroutineImpl.call(this, resultContinuation);
|
|
2226
2223
|
}
|
|
2227
|
-
protoOf(writer$slambda).
|
|
2228
|
-
var tmp = this.
|
|
2229
|
-
tmp.
|
|
2230
|
-
tmp.
|
|
2231
|
-
return tmp.
|
|
2224
|
+
protoOf(writer$slambda).v1u = function ($this$launch, $completion) {
|
|
2225
|
+
var tmp = this.w1u($this$launch, $completion);
|
|
2226
|
+
tmp.c9_1 = Unit_instance;
|
|
2227
|
+
tmp.d9_1 = null;
|
|
2228
|
+
return tmp.i9();
|
|
2232
2229
|
};
|
|
2233
|
-
protoOf(writer$slambda).
|
|
2234
|
-
return this.
|
|
2230
|
+
protoOf(writer$slambda).u9 = function (p1, $completion) {
|
|
2231
|
+
return this.v1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2235
2232
|
};
|
|
2236
|
-
protoOf(writer$slambda).
|
|
2237
|
-
var suspendResult = this.
|
|
2233
|
+
protoOf(writer$slambda).i9 = function () {
|
|
2234
|
+
var suspendResult = this.c9_1;
|
|
2238
2235
|
$sm: do
|
|
2239
2236
|
try {
|
|
2240
|
-
var tmp = this.
|
|
2237
|
+
var tmp = this.a9_1;
|
|
2241
2238
|
switch (tmp) {
|
|
2242
2239
|
case 0:
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2240
|
+
this.b9_1 = 14;
|
|
2241
|
+
this.r1u_1 = Job(get_job(this.o1u_1.es()));
|
|
2242
|
+
this.a9_1 = 1;
|
|
2246
2243
|
continue $sm;
|
|
2247
2244
|
case 1:
|
|
2248
|
-
this.
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
suspendResult = this.
|
|
2245
|
+
this.b9_1 = 4;
|
|
2246
|
+
this.b9_1 = 3;
|
|
2247
|
+
this.a9_1 = 2;
|
|
2248
|
+
suspendResult = this.m1u_1(new WriterScope(this.n1u_1, this.o1u_1.es().ch(this.r1u_1)), this);
|
|
2252
2249
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2253
2250
|
return suspendResult;
|
|
2254
2251
|
}
|
|
2255
2252
|
|
|
2256
2253
|
continue $sm;
|
|
2257
2254
|
case 2:
|
|
2258
|
-
this.
|
|
2255
|
+
this.r1u_1.o10();
|
|
2259
2256
|
var tmp_0;
|
|
2260
|
-
if (get_job(this.
|
|
2261
|
-
this.
|
|
2257
|
+
if (get_job(this.o1u_1.es()).at()) {
|
|
2258
|
+
this.n1u_1.x1l(get_job(this.o1u_1.es()).dt());
|
|
2262
2259
|
tmp_0 = Unit_instance;
|
|
2263
2260
|
}
|
|
2264
2261
|
|
|
2265
|
-
this.
|
|
2266
|
-
this.
|
|
2262
|
+
this.b9_1 = 14;
|
|
2263
|
+
this.a9_1 = 9;
|
|
2267
2264
|
continue $sm;
|
|
2268
2265
|
case 3:
|
|
2269
|
-
this.
|
|
2270
|
-
var tmp_1 = this.
|
|
2266
|
+
this.b9_1 = 4;
|
|
2267
|
+
var tmp_1 = this.d9_1;
|
|
2271
2268
|
if (tmp_1 instanceof Error) {
|
|
2272
|
-
var cause = this.
|
|
2273
|
-
cancel(this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2276
|
-
this.
|
|
2269
|
+
var cause = this.d9_1;
|
|
2270
|
+
cancel(this.r1u_1, 'Exception thrown while writing to channel', cause);
|
|
2271
|
+
this.n1u_1.x1l(cause);
|
|
2272
|
+
this.b9_1 = 14;
|
|
2273
|
+
this.a9_1 = 9;
|
|
2277
2274
|
continue $sm;
|
|
2278
2275
|
} else {
|
|
2279
|
-
throw this.
|
|
2276
|
+
throw this.d9_1;
|
|
2280
2277
|
}
|
|
2281
2278
|
|
|
2282
2279
|
case 4:
|
|
2283
|
-
this.
|
|
2284
|
-
this.
|
|
2285
|
-
this.
|
|
2286
|
-
suspendResult = this.
|
|
2280
|
+
this.b9_1 = 14;
|
|
2281
|
+
this.s1u_1 = this.d9_1;
|
|
2282
|
+
this.a9_1 = 5;
|
|
2283
|
+
suspendResult = this.r1u_1.kt(this);
|
|
2287
2284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2288
2285
|
return suspendResult;
|
|
2289
2286
|
}
|
|
2290
2287
|
|
|
2291
2288
|
continue $sm;
|
|
2292
2289
|
case 5:
|
|
2293
|
-
this.
|
|
2294
|
-
this.
|
|
2295
|
-
this.
|
|
2296
|
-
this.
|
|
2297
|
-
suspendResult = this.
|
|
2290
|
+
this.o1u_1;
|
|
2291
|
+
this.b9_1 = 7;
|
|
2292
|
+
this.u1u_1 = Companion_instance;
|
|
2293
|
+
this.a9_1 = 6;
|
|
2294
|
+
suspendResult = this.n1u_1.w1l(this);
|
|
2298
2295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2299
2296
|
return suspendResult;
|
|
2300
2297
|
}
|
|
@@ -2302,42 +2299,42 @@
|
|
|
2302
2299
|
continue $sm;
|
|
2303
2300
|
case 6:
|
|
2304
2301
|
var tmp_2 = this;
|
|
2305
|
-
this.
|
|
2306
|
-
tmp_2.
|
|
2307
|
-
this.
|
|
2308
|
-
this.
|
|
2302
|
+
this.u1u_1;
|
|
2303
|
+
tmp_2.t1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2304
|
+
this.b9_1 = 14;
|
|
2305
|
+
this.a9_1 = 8;
|
|
2309
2306
|
continue $sm;
|
|
2310
2307
|
case 7:
|
|
2311
|
-
this.
|
|
2312
|
-
var tmp_3 = this.
|
|
2308
|
+
this.b9_1 = 14;
|
|
2309
|
+
var tmp_3 = this.d9_1;
|
|
2313
2310
|
if (tmp_3 instanceof Error) {
|
|
2314
|
-
var e = this.
|
|
2311
|
+
var e = this.d9_1;
|
|
2315
2312
|
var tmp_4 = this;
|
|
2316
|
-
tmp_4.
|
|
2317
|
-
this.
|
|
2313
|
+
tmp_4.t1u_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2314
|
+
this.a9_1 = 8;
|
|
2318
2315
|
continue $sm;
|
|
2319
2316
|
} else {
|
|
2320
|
-
throw this.
|
|
2317
|
+
throw this.d9_1;
|
|
2321
2318
|
}
|
|
2322
2319
|
|
|
2323
2320
|
case 8:
|
|
2324
|
-
this.
|
|
2325
|
-
throw this.
|
|
2321
|
+
this.b9_1 = 14;
|
|
2322
|
+
throw this.s1u_1;
|
|
2326
2323
|
case 9:
|
|
2327
|
-
this.
|
|
2328
|
-
this.
|
|
2329
|
-
suspendResult = this.
|
|
2324
|
+
this.b9_1 = 14;
|
|
2325
|
+
this.a9_1 = 10;
|
|
2326
|
+
suspendResult = this.r1u_1.kt(this);
|
|
2330
2327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2331
2328
|
return suspendResult;
|
|
2332
2329
|
}
|
|
2333
2330
|
|
|
2334
2331
|
continue $sm;
|
|
2335
2332
|
case 10:
|
|
2336
|
-
this.
|
|
2337
|
-
this.
|
|
2338
|
-
this.
|
|
2339
|
-
this.
|
|
2340
|
-
suspendResult = this.
|
|
2333
|
+
this.o1u_1;
|
|
2334
|
+
this.b9_1 = 12;
|
|
2335
|
+
this.q1u_1 = Companion_instance;
|
|
2336
|
+
this.a9_1 = 11;
|
|
2337
|
+
suspendResult = this.n1u_1.w1l(this);
|
|
2341
2338
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2342
2339
|
return suspendResult;
|
|
2343
2340
|
}
|
|
@@ -2345,50 +2342,50 @@
|
|
|
2345
2342
|
continue $sm;
|
|
2346
2343
|
case 11:
|
|
2347
2344
|
var tmp_5 = this;
|
|
2348
|
-
this.
|
|
2349
|
-
tmp_5.
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2345
|
+
this.q1u_1;
|
|
2346
|
+
tmp_5.p1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2347
|
+
this.b9_1 = 14;
|
|
2348
|
+
this.a9_1 = 13;
|
|
2352
2349
|
continue $sm;
|
|
2353
2350
|
case 12:
|
|
2354
|
-
this.
|
|
2355
|
-
var tmp_6 = this.
|
|
2351
|
+
this.b9_1 = 14;
|
|
2352
|
+
var tmp_6 = this.d9_1;
|
|
2356
2353
|
if (tmp_6 instanceof Error) {
|
|
2357
|
-
var e_0 = this.
|
|
2354
|
+
var e_0 = this.d9_1;
|
|
2358
2355
|
var tmp_7 = this;
|
|
2359
|
-
tmp_7.
|
|
2360
|
-
this.
|
|
2356
|
+
tmp_7.p1u_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2357
|
+
this.a9_1 = 13;
|
|
2361
2358
|
continue $sm;
|
|
2362
2359
|
} else {
|
|
2363
|
-
throw this.
|
|
2360
|
+
throw this.d9_1;
|
|
2364
2361
|
}
|
|
2365
2362
|
|
|
2366
2363
|
case 13:
|
|
2367
|
-
this.
|
|
2364
|
+
this.b9_1 = 14;
|
|
2368
2365
|
return Unit_instance;
|
|
2369
2366
|
case 14:
|
|
2370
|
-
throw this.
|
|
2367
|
+
throw this.d9_1;
|
|
2371
2368
|
}
|
|
2372
2369
|
} catch ($p) {
|
|
2373
2370
|
var e_1 = $p;
|
|
2374
|
-
if (this.
|
|
2371
|
+
if (this.b9_1 === 14) {
|
|
2375
2372
|
throw e_1;
|
|
2376
2373
|
} else {
|
|
2377
|
-
this.
|
|
2378
|
-
this.
|
|
2374
|
+
this.a9_1 = this.b9_1;
|
|
2375
|
+
this.d9_1 = e_1;
|
|
2379
2376
|
}
|
|
2380
2377
|
}
|
|
2381
2378
|
while (true);
|
|
2382
2379
|
};
|
|
2383
|
-
protoOf(writer$slambda).
|
|
2384
|
-
var i = new writer$slambda(this.
|
|
2385
|
-
i.
|
|
2380
|
+
protoOf(writer$slambda).w1u = function ($this$launch, completion) {
|
|
2381
|
+
var i = new writer$slambda(this.m1u_1, this.n1u_1, completion);
|
|
2382
|
+
i.o1u_1 = $this$launch;
|
|
2386
2383
|
return i;
|
|
2387
2384
|
};
|
|
2388
2385
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2389
2386
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2390
2387
|
var l = function ($this$launch, $completion) {
|
|
2391
|
-
return i.
|
|
2388
|
+
return i.v1u($this$launch, $completion);
|
|
2392
2389
|
};
|
|
2393
2390
|
l.$arity = 1;
|
|
2394
2391
|
return l;
|
|
@@ -2396,8 +2393,8 @@
|
|
|
2396
2393
|
function writer$lambda($channel) {
|
|
2397
2394
|
return function (it) {
|
|
2398
2395
|
var tmp;
|
|
2399
|
-
if (!(it == null) && !$channel.
|
|
2400
|
-
$channel.
|
|
2396
|
+
if (!(it == null) && !$channel.q1l()) {
|
|
2397
|
+
$channel.x1l(it);
|
|
2401
2398
|
tmp = Unit_instance;
|
|
2402
2399
|
}
|
|
2403
2400
|
return Unit_instance;
|
|
@@ -2405,48 +2402,48 @@
|
|
|
2405
2402
|
}
|
|
2406
2403
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2407
2404
|
CoroutineImpl.call(this, resultContinuation);
|
|
2408
|
-
this.
|
|
2409
|
-
this.
|
|
2405
|
+
this.z1t_1 = _this__u8e3s4;
|
|
2406
|
+
this.a1u_1 = source;
|
|
2410
2407
|
}
|
|
2411
|
-
protoOf($writePacketCOROUTINE$).
|
|
2412
|
-
var suspendResult = this.
|
|
2408
|
+
protoOf($writePacketCOROUTINE$).i9 = function () {
|
|
2409
|
+
var suspendResult = this.c9_1;
|
|
2413
2410
|
$sm: do
|
|
2414
2411
|
try {
|
|
2415
|
-
var tmp = this.
|
|
2412
|
+
var tmp = this.a9_1;
|
|
2416
2413
|
switch (tmp) {
|
|
2417
2414
|
case 0:
|
|
2418
|
-
this.
|
|
2419
|
-
this.
|
|
2415
|
+
this.b9_1 = 4;
|
|
2416
|
+
this.a9_1 = 1;
|
|
2420
2417
|
continue $sm;
|
|
2421
2418
|
case 1:
|
|
2422
|
-
if (!!this.
|
|
2423
|
-
this.
|
|
2419
|
+
if (!!this.a1u_1.to()) {
|
|
2420
|
+
this.a9_1 = 3;
|
|
2424
2421
|
continue $sm;
|
|
2425
2422
|
}
|
|
2426
2423
|
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2429
|
-
suspendResult = flushIfNeeded(this.
|
|
2424
|
+
this.z1t_1.p1l().gq(this.a1u_1, get_remaining(this.a1u_1));
|
|
2425
|
+
this.a9_1 = 2;
|
|
2426
|
+
suspendResult = flushIfNeeded(this.z1t_1, this);
|
|
2430
2427
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2431
2428
|
return suspendResult;
|
|
2432
2429
|
}
|
|
2433
2430
|
|
|
2434
2431
|
continue $sm;
|
|
2435
2432
|
case 2:
|
|
2436
|
-
this.
|
|
2433
|
+
this.a9_1 = 1;
|
|
2437
2434
|
continue $sm;
|
|
2438
2435
|
case 3:
|
|
2439
2436
|
return Unit_instance;
|
|
2440
2437
|
case 4:
|
|
2441
|
-
throw this.
|
|
2438
|
+
throw this.d9_1;
|
|
2442
2439
|
}
|
|
2443
2440
|
} catch ($p) {
|
|
2444
2441
|
var e = $p;
|
|
2445
|
-
if (this.
|
|
2442
|
+
if (this.b9_1 === 4) {
|
|
2446
2443
|
throw e;
|
|
2447
2444
|
} else {
|
|
2448
|
-
this.
|
|
2449
|
-
this.
|
|
2445
|
+
this.a9_1 = this.b9_1;
|
|
2446
|
+
this.d9_1 = e;
|
|
2450
2447
|
}
|
|
2451
2448
|
}
|
|
2452
2449
|
while (true);
|
|
@@ -2471,27 +2468,27 @@
|
|
|
2471
2468
|
return l;
|
|
2472
2469
|
}
|
|
2473
2470
|
function CloseToken(origin) {
|
|
2474
|
-
this.
|
|
2471
|
+
this.n1l_1 = origin;
|
|
2475
2472
|
}
|
|
2476
|
-
protoOf(CloseToken).
|
|
2477
|
-
var tmp0_subject = this.
|
|
2473
|
+
protoOf(CloseToken).x1u = function (wrap) {
|
|
2474
|
+
var tmp0_subject = this.n1l_1;
|
|
2478
2475
|
var tmp;
|
|
2479
2476
|
if (tmp0_subject == null) {
|
|
2480
2477
|
tmp = null;
|
|
2481
2478
|
} else {
|
|
2482
2479
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2483
|
-
tmp = this.
|
|
2480
|
+
tmp = this.n1l_1.x10();
|
|
2484
2481
|
} else {
|
|
2485
2482
|
if (tmp0_subject instanceof CancellationException) {
|
|
2486
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2483
|
+
tmp = CancellationException_init_$Create$(this.n1l_1.message, this.n1l_1);
|
|
2487
2484
|
} else {
|
|
2488
|
-
tmp = wrap(this.
|
|
2485
|
+
tmp = wrap(this.n1l_1);
|
|
2489
2486
|
}
|
|
2490
2487
|
}
|
|
2491
2488
|
}
|
|
2492
2489
|
return tmp;
|
|
2493
2490
|
};
|
|
2494
|
-
protoOf(CloseToken).
|
|
2491
|
+
protoOf(CloseToken).s1l = function (wrap, $super) {
|
|
2495
2492
|
var tmp;
|
|
2496
2493
|
if (wrap === VOID) {
|
|
2497
2494
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2499,10 +2496,10 @@
|
|
|
2499
2496
|
tmp = wrap;
|
|
2500
2497
|
}
|
|
2501
2498
|
wrap = tmp;
|
|
2502
|
-
return $super === VOID ? this.
|
|
2499
|
+
return $super === VOID ? this.x1u(wrap) : $super.x1u.call(this, wrap);
|
|
2503
2500
|
};
|
|
2504
|
-
protoOf(CloseToken).
|
|
2505
|
-
var tmp0_safe_receiver = this.
|
|
2501
|
+
protoOf(CloseToken).o1l = function (wrap) {
|
|
2502
|
+
var tmp0_safe_receiver = this.x1u(wrap);
|
|
2506
2503
|
var tmp;
|
|
2507
2504
|
if (tmp0_safe_receiver == null) {
|
|
2508
2505
|
tmp = null;
|
|
@@ -2521,32 +2518,32 @@
|
|
|
2521
2518
|
}
|
|
2522
2519
|
function transferFromDelegate($this) {
|
|
2523
2520
|
updateConsumed($this);
|
|
2524
|
-
var appended = $this.
|
|
2525
|
-
$this.
|
|
2521
|
+
var appended = $this.z1u_1.lq($this.y1u_1.m1l());
|
|
2522
|
+
$this.a1v_1 = add($this.a1v_1, appended);
|
|
2526
2523
|
}
|
|
2527
2524
|
function updateConsumed($this) {
|
|
2528
|
-
$this.
|
|
2529
|
-
$this.
|
|
2525
|
+
$this.b1v_1 = add($this.b1v_1, subtract($this.a1v_1, $this.z1u_1.l1()));
|
|
2526
|
+
$this.a1v_1 = $this.z1u_1.l1();
|
|
2530
2527
|
}
|
|
2531
2528
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2532
2529
|
CoroutineImpl.call(this, resultContinuation);
|
|
2533
|
-
this.
|
|
2534
|
-
this.
|
|
2530
|
+
this.k1v_1 = _this__u8e3s4;
|
|
2531
|
+
this.l1v_1 = min;
|
|
2535
2532
|
}
|
|
2536
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2537
|
-
var suspendResult = this.
|
|
2533
|
+
protoOf($awaitContentCOROUTINE$_0).i9 = function () {
|
|
2534
|
+
var suspendResult = this.c9_1;
|
|
2538
2535
|
$sm: do
|
|
2539
2536
|
try {
|
|
2540
|
-
var tmp = this.
|
|
2537
|
+
var tmp = this.a9_1;
|
|
2541
2538
|
switch (tmp) {
|
|
2542
2539
|
case 0:
|
|
2543
|
-
this.
|
|
2544
|
-
if (
|
|
2540
|
+
this.b9_1 = 3;
|
|
2541
|
+
if (this.k1v_1.m1l().l1() >= fromInt(this.l1v_1)) {
|
|
2545
2542
|
return true;
|
|
2546
2543
|
}
|
|
2547
2544
|
|
|
2548
|
-
this.
|
|
2549
|
-
suspendResult = this.
|
|
2545
|
+
this.a9_1 = 1;
|
|
2546
|
+
suspendResult = this.k1v_1.y1u_1.u1l(this.l1v_1, this);
|
|
2550
2547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2551
2548
|
return suspendResult;
|
|
2552
2549
|
}
|
|
@@ -2554,58 +2551,58 @@
|
|
|
2554
2551
|
continue $sm;
|
|
2555
2552
|
case 1:
|
|
2556
2553
|
if (suspendResult) {
|
|
2557
|
-
transferFromDelegate(this.
|
|
2554
|
+
transferFromDelegate(this.k1v_1);
|
|
2558
2555
|
return true;
|
|
2559
2556
|
} else {
|
|
2560
|
-
this.
|
|
2557
|
+
this.a9_1 = 2;
|
|
2561
2558
|
continue $sm;
|
|
2562
2559
|
}
|
|
2563
2560
|
|
|
2564
2561
|
case 2:
|
|
2565
2562
|
return false;
|
|
2566
2563
|
case 3:
|
|
2567
|
-
throw this.
|
|
2564
|
+
throw this.d9_1;
|
|
2568
2565
|
}
|
|
2569
2566
|
} catch ($p) {
|
|
2570
2567
|
var e = $p;
|
|
2571
|
-
if (this.
|
|
2568
|
+
if (this.b9_1 === 3) {
|
|
2572
2569
|
throw e;
|
|
2573
2570
|
} else {
|
|
2574
|
-
this.
|
|
2575
|
-
this.
|
|
2571
|
+
this.a9_1 = this.b9_1;
|
|
2572
|
+
this.d9_1 = e;
|
|
2576
2573
|
}
|
|
2577
2574
|
}
|
|
2578
2575
|
while (true);
|
|
2579
2576
|
};
|
|
2580
2577
|
function CountedByteReadChannel(delegate) {
|
|
2581
|
-
this.
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2578
|
+
this.y1u_1 = delegate;
|
|
2579
|
+
this.z1u_1 = new Buffer();
|
|
2580
|
+
this.a1v_1 = 0n;
|
|
2581
|
+
this.b1v_1 = 0n;
|
|
2585
2582
|
}
|
|
2586
|
-
protoOf(CountedByteReadChannel).
|
|
2583
|
+
protoOf(CountedByteReadChannel).m1v = function () {
|
|
2587
2584
|
updateConsumed(this);
|
|
2588
|
-
return this.
|
|
2585
|
+
return this.b1v_1;
|
|
2589
2586
|
};
|
|
2590
|
-
protoOf(CountedByteReadChannel).
|
|
2591
|
-
return this.
|
|
2587
|
+
protoOf(CountedByteReadChannel).r1l = function () {
|
|
2588
|
+
return this.y1u_1.r1l();
|
|
2592
2589
|
};
|
|
2593
|
-
protoOf(CountedByteReadChannel).
|
|
2594
|
-
return this.
|
|
2590
|
+
protoOf(CountedByteReadChannel).t1l = function () {
|
|
2591
|
+
return this.z1u_1.to() && this.y1u_1.t1l();
|
|
2595
2592
|
};
|
|
2596
|
-
protoOf(CountedByteReadChannel).
|
|
2593
|
+
protoOf(CountedByteReadChannel).m1l = function () {
|
|
2597
2594
|
transferFromDelegate(this);
|
|
2598
|
-
return this.
|
|
2595
|
+
return this.z1u_1;
|
|
2599
2596
|
};
|
|
2600
|
-
protoOf(CountedByteReadChannel).
|
|
2597
|
+
protoOf(CountedByteReadChannel).u1l = function (min, $completion) {
|
|
2601
2598
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2602
|
-
tmp.
|
|
2603
|
-
tmp.
|
|
2604
|
-
return tmp.
|
|
2599
|
+
tmp.c9_1 = Unit_instance;
|
|
2600
|
+
tmp.d9_1 = null;
|
|
2601
|
+
return tmp.i9();
|
|
2605
2602
|
};
|
|
2606
|
-
protoOf(CountedByteReadChannel).
|
|
2607
|
-
this.
|
|
2608
|
-
this.
|
|
2603
|
+
protoOf(CountedByteReadChannel).x1l = function (cause) {
|
|
2604
|
+
this.y1u_1.x1l(cause);
|
|
2605
|
+
this.z1u_1.l4();
|
|
2609
2606
|
};
|
|
2610
2607
|
function counted(_this__u8e3s4) {
|
|
2611
2608
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2642,21 +2639,21 @@
|
|
|
2642
2639
|
}
|
|
2643
2640
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2644
2641
|
var tmp;
|
|
2645
|
-
if ($this === Companion_getInstance_1().
|
|
2642
|
+
if ($this === Companion_getInstance_1().b1r_1) {
|
|
2646
2643
|
tmp = 'CR';
|
|
2647
|
-
} else if ($this === Companion_getInstance_1().
|
|
2644
|
+
} else if ($this === Companion_getInstance_1().c1r_1) {
|
|
2648
2645
|
tmp = 'LF';
|
|
2649
|
-
} else if ($this === Companion_getInstance_1().
|
|
2646
|
+
} else if ($this === Companion_getInstance_1().d1r_1) {
|
|
2650
2647
|
tmp = 'CRLF';
|
|
2651
2648
|
} else {
|
|
2652
2649
|
// Inline function 'kotlin.collections.filter' call
|
|
2653
|
-
var tmp0 = Companion_getInstance_1().
|
|
2650
|
+
var tmp0 = Companion_getInstance_1().f1r_1;
|
|
2654
2651
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2655
2652
|
var destination = ArrayList_init_$Create$();
|
|
2656
2653
|
var _iterator__ex2g4s = tmp0.t();
|
|
2657
2654
|
while (_iterator__ex2g4s.u()) {
|
|
2658
2655
|
var element = _iterator__ex2g4s.v();
|
|
2659
|
-
var it = element.
|
|
2656
|
+
var it = element.n1v_1;
|
|
2660
2657
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2661
2658
|
destination.j1(element);
|
|
2662
2659
|
}
|
|
@@ -2667,11 +2664,11 @@
|
|
|
2667
2664
|
}
|
|
2668
2665
|
function Companion_1() {
|
|
2669
2666
|
Companion_instance_2 = this;
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2673
|
-
this.
|
|
2674
|
-
this.
|
|
2667
|
+
this.b1r_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2668
|
+
this.c1r_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2669
|
+
this.d1r_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2670
|
+
this.e1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2671
|
+
this.f1r_1 = listOf([new LineEndingMode(this.b1r_1), new LineEndingMode(this.c1r_1), new LineEndingMode(this.d1r_1)]);
|
|
2675
2672
|
}
|
|
2676
2673
|
var Companion_instance_2;
|
|
2677
2674
|
function Companion_getInstance_1() {
|
|
@@ -2685,68 +2682,68 @@
|
|
|
2685
2682
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2686
2683
|
if (!(other instanceof LineEndingMode))
|
|
2687
2684
|
return false;
|
|
2688
|
-
if (!($this === other.
|
|
2685
|
+
if (!($this === other.n1v_1))
|
|
2689
2686
|
return false;
|
|
2690
2687
|
return true;
|
|
2691
2688
|
}
|
|
2692
2689
|
function LineEndingMode(mode) {
|
|
2693
2690
|
Companion_getInstance_1();
|
|
2694
|
-
this.
|
|
2691
|
+
this.n1v_1 = mode;
|
|
2695
2692
|
}
|
|
2696
2693
|
protoOf(LineEndingMode).toString = function () {
|
|
2697
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2694
|
+
return LineEndingMode__toString_impl_j4h76r(this.n1v_1);
|
|
2698
2695
|
};
|
|
2699
2696
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2700
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2697
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.n1v_1);
|
|
2701
2698
|
};
|
|
2702
2699
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2703
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2700
|
+
return LineEndingMode__equals_impl_qyr4nk(this.n1v_1, other);
|
|
2704
2701
|
};
|
|
2705
2702
|
function SourceByteReadChannel(source) {
|
|
2706
|
-
this.
|
|
2707
|
-
this.
|
|
2703
|
+
this.o1v_1 = source;
|
|
2704
|
+
this.p1v_1 = null;
|
|
2708
2705
|
}
|
|
2709
|
-
protoOf(SourceByteReadChannel).
|
|
2710
|
-
var tmp0_safe_receiver = this.
|
|
2711
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2706
|
+
protoOf(SourceByteReadChannel).r1l = function () {
|
|
2707
|
+
var tmp0_safe_receiver = this.p1v_1;
|
|
2708
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1l();
|
|
2712
2709
|
};
|
|
2713
|
-
protoOf(SourceByteReadChannel).
|
|
2714
|
-
return this.
|
|
2710
|
+
protoOf(SourceByteReadChannel).t1l = function () {
|
|
2711
|
+
return this.o1v_1.to();
|
|
2715
2712
|
};
|
|
2716
|
-
protoOf(SourceByteReadChannel).
|
|
2717
|
-
var tmp0_safe_receiver = this.
|
|
2713
|
+
protoOf(SourceByteReadChannel).m1l = function () {
|
|
2714
|
+
var tmp0_safe_receiver = this.r1l();
|
|
2718
2715
|
if (tmp0_safe_receiver == null)
|
|
2719
2716
|
null;
|
|
2720
2717
|
else {
|
|
2721
2718
|
// Inline function 'kotlin.let' call
|
|
2722
2719
|
throw tmp0_safe_receiver;
|
|
2723
2720
|
}
|
|
2724
|
-
return this.
|
|
2721
|
+
return this.o1v_1.so();
|
|
2725
2722
|
};
|
|
2726
|
-
protoOf(SourceByteReadChannel).
|
|
2727
|
-
var tmp0_safe_receiver = this.
|
|
2723
|
+
protoOf(SourceByteReadChannel).u1l = function (min, $completion) {
|
|
2724
|
+
var tmp0_safe_receiver = this.r1l();
|
|
2728
2725
|
if (tmp0_safe_receiver == null)
|
|
2729
2726
|
null;
|
|
2730
2727
|
else {
|
|
2731
2728
|
// Inline function 'kotlin.let' call
|
|
2732
2729
|
throw tmp0_safe_receiver;
|
|
2733
2730
|
}
|
|
2734
|
-
return this.
|
|
2731
|
+
return this.o1v_1.vo(fromInt(min));
|
|
2735
2732
|
};
|
|
2736
|
-
protoOf(SourceByteReadChannel).
|
|
2737
|
-
if (!(this.
|
|
2733
|
+
protoOf(SourceByteReadChannel).x1l = function (cause) {
|
|
2734
|
+
if (!(this.p1v_1 == null))
|
|
2738
2735
|
return Unit_instance;
|
|
2739
|
-
this.
|
|
2736
|
+
this.o1v_1.l4();
|
|
2740
2737
|
var tmp = this;
|
|
2741
2738
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2742
|
-
tmp.
|
|
2739
|
+
tmp.p1v_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2743
2740
|
};
|
|
2744
2741
|
function decode(_this__u8e3s4, input, max) {
|
|
2745
2742
|
max = max === VOID ? 2147483647 : max;
|
|
2746
2743
|
var tmp0 = fromInt(max);
|
|
2747
2744
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2748
|
-
var b = input.
|
|
2749
|
-
var tmp$ret$0 =
|
|
2745
|
+
var b = input.so().l1();
|
|
2746
|
+
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2750
2747
|
// Inline function 'kotlin.text.buildString' call
|
|
2751
2748
|
var capacity = convertToInt(tmp$ret$0);
|
|
2752
2749
|
// Inline function 'kotlin.apply' call
|
|
@@ -2782,7 +2779,7 @@
|
|
|
2782
2779
|
}
|
|
2783
2780
|
}
|
|
2784
2781
|
function canRead(_this__u8e3s4) {
|
|
2785
|
-
return !_this__u8e3s4.
|
|
2782
|
+
return !_this__u8e3s4.to();
|
|
2786
2783
|
}
|
|
2787
2784
|
function readBytes(_this__u8e3s4, count) {
|
|
2788
2785
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -2791,32 +2788,32 @@
|
|
|
2791
2788
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2792
2789
|
offset = offset === VOID ? 0 : offset;
|
|
2793
2790
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2794
|
-
_this__u8e3s4.
|
|
2791
|
+
_this__u8e3s4.cq(buffer, offset, offset + length | 0);
|
|
2795
2792
|
}
|
|
2796
2793
|
function BytePacketBuilder() {
|
|
2797
2794
|
return new Buffer();
|
|
2798
2795
|
}
|
|
2799
2796
|
function get_size(_this__u8e3s4) {
|
|
2800
|
-
return convertToInt(_this__u8e3s4.
|
|
2797
|
+
return convertToInt(_this__u8e3s4.so().l1());
|
|
2801
2798
|
}
|
|
2802
2799
|
var ByteReadPacketEmpty;
|
|
2803
2800
|
function get_remaining(_this__u8e3s4) {
|
|
2804
2801
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2805
|
-
return _this__u8e3s4.
|
|
2802
|
+
return _this__u8e3s4.so().l1();
|
|
2806
2803
|
}
|
|
2807
2804
|
function takeWhile(_this__u8e3s4, block) {
|
|
2808
2805
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2809
|
-
while (!_this__u8e3s4.
|
|
2806
|
+
while (!_this__u8e3s4.to() && block(_this__u8e3s4.so())) {
|
|
2810
2807
|
}
|
|
2811
2808
|
}
|
|
2812
2809
|
function discard_0(_this__u8e3s4, count) {
|
|
2813
|
-
count = count === VOID ?
|
|
2810
|
+
count = count === VOID ? 9223372036854775807n : count;
|
|
2814
2811
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2815
|
-
_this__u8e3s4.
|
|
2812
|
+
_this__u8e3s4.vo(count);
|
|
2816
2813
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2817
2814
|
var b = get_remaining(_this__u8e3s4);
|
|
2818
|
-
var countToDiscard =
|
|
2819
|
-
_this__u8e3s4.
|
|
2815
|
+
var countToDiscard = count <= b ? count : b;
|
|
2816
|
+
_this__u8e3s4.so().qp(countToDiscard);
|
|
2820
2817
|
return countToDiscard;
|
|
2821
2818
|
}
|
|
2822
2819
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2829,37 +2826,37 @@
|
|
|
2829
2826
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2830
2827
|
offset = offset === VOID ? 0 : offset;
|
|
2831
2828
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2832
|
-
var result = _this__u8e3s4.
|
|
2829
|
+
var result = _this__u8e3s4.rp(buffer, offset, offset + length | 0);
|
|
2833
2830
|
return result === -1 ? 0 : result;
|
|
2834
2831
|
}
|
|
2835
2832
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2836
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2833
|
+
charset = charset === VOID ? Charsets_getInstance().q1v_1 : charset;
|
|
2837
2834
|
max = max === VOID ? 2147483647 : max;
|
|
2838
|
-
if (charset.equals(Charsets_getInstance().
|
|
2835
|
+
if (charset.equals(Charsets_getInstance().q1v_1)) {
|
|
2839
2836
|
if (max === 2147483647)
|
|
2840
2837
|
return readString_0(_this__u8e3s4);
|
|
2841
|
-
var tmp0 = _this__u8e3s4.
|
|
2838
|
+
var tmp0 = _this__u8e3s4.so().l1();
|
|
2842
2839
|
// Inline function 'kotlin.math.min' call
|
|
2843
2840
|
var b = fromInt(max);
|
|
2844
|
-
var count =
|
|
2841
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
2845
2842
|
return readString_1(_this__u8e3s4, count);
|
|
2846
2843
|
}
|
|
2847
|
-
return decode(charset.
|
|
2844
|
+
return decode(charset.t1v(), _this__u8e3s4, max);
|
|
2848
2845
|
}
|
|
2849
2846
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2850
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2851
|
-
if (charset.equals(Charsets_getInstance().
|
|
2847
|
+
charset = charset === VOID ? Charsets_getInstance().q1v_1 : charset;
|
|
2848
|
+
if (charset.equals(Charsets_getInstance().q1v_1))
|
|
2852
2849
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2853
|
-
return encodeToByteArray_0(charset.
|
|
2850
|
+
return encodeToByteArray_0(charset.u1v(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2854
2851
|
}
|
|
2855
2852
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2856
2853
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2857
2854
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2858
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2859
|
-
if (charset === Charsets_getInstance().
|
|
2855
|
+
charset = charset === VOID ? Charsets_getInstance().q1v_1 : charset;
|
|
2856
|
+
if (charset === Charsets_getInstance().q1v_1) {
|
|
2860
2857
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2861
2858
|
}
|
|
2862
|
-
encodeToImpl(charset.
|
|
2859
|
+
encodeToImpl(charset.u1v(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2863
2860
|
}
|
|
2864
2861
|
function get_ByteArrayPool() {
|
|
2865
2862
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2869,7 +2866,7 @@
|
|
|
2869
2866
|
function ByteArrayPool$1() {
|
|
2870
2867
|
DefaultPool.call(this, 128);
|
|
2871
2868
|
}
|
|
2872
|
-
protoOf(ByteArrayPool$1).
|
|
2869
|
+
protoOf(ByteArrayPool$1).y1v = function () {
|
|
2873
2870
|
return new Int8Array(4096);
|
|
2874
2871
|
};
|
|
2875
2872
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2883,21 +2880,21 @@
|
|
|
2883
2880
|
}
|
|
2884
2881
|
function NoPoolImpl() {
|
|
2885
2882
|
}
|
|
2886
|
-
protoOf(NoPoolImpl).
|
|
2883
|
+
protoOf(NoPoolImpl).g1w = function (instance) {
|
|
2887
2884
|
return Unit_instance;
|
|
2888
2885
|
};
|
|
2889
|
-
protoOf(NoPoolImpl).
|
|
2886
|
+
protoOf(NoPoolImpl).cv = function () {
|
|
2890
2887
|
return Unit_instance;
|
|
2891
2888
|
};
|
|
2892
2889
|
function Companion_2() {
|
|
2893
2890
|
}
|
|
2894
|
-
protoOf(Companion_2).
|
|
2891
|
+
protoOf(Companion_2).h1w = function (name) {
|
|
2895
2892
|
switch (name) {
|
|
2896
2893
|
case 'UTF-8':
|
|
2897
2894
|
case 'utf-8':
|
|
2898
2895
|
case 'UTF8':
|
|
2899
2896
|
case 'utf8':
|
|
2900
|
-
return Charsets_getInstance().
|
|
2897
|
+
return Charsets_getInstance().q1v_1;
|
|
2901
2898
|
}
|
|
2902
2899
|
var tmp;
|
|
2903
2900
|
var tmp_0;
|
|
@@ -2928,11 +2925,11 @@
|
|
|
2928
2925
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2929
2926
|
}
|
|
2930
2927
|
if (tmp) {
|
|
2931
|
-
return Charsets_getInstance().
|
|
2928
|
+
return Charsets_getInstance().r1v_1;
|
|
2932
2929
|
}
|
|
2933
2930
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2934
2931
|
};
|
|
2935
|
-
protoOf(Companion_2).
|
|
2932
|
+
protoOf(Companion_2).i1w = function (charset) {
|
|
2936
2933
|
var tmp;
|
|
2937
2934
|
switch (charset) {
|
|
2938
2935
|
case 'UTF-8':
|
|
@@ -2987,7 +2984,7 @@
|
|
|
2987
2984
|
return Companion_instance_3;
|
|
2988
2985
|
}
|
|
2989
2986
|
function Charset(_name) {
|
|
2990
|
-
this.
|
|
2987
|
+
this.s1v_1 = _name;
|
|
2991
2988
|
}
|
|
2992
2989
|
protoOf(Charset).equals = function (other) {
|
|
2993
2990
|
if (this === other)
|
|
@@ -2996,18 +2993,18 @@
|
|
|
2996
2993
|
return false;
|
|
2997
2994
|
if (!(other instanceof Charset))
|
|
2998
2995
|
THROW_CCE();
|
|
2999
|
-
return this.
|
|
2996
|
+
return this.s1v_1 === other.s1v_1;
|
|
3000
2997
|
};
|
|
3001
2998
|
protoOf(Charset).hashCode = function () {
|
|
3002
|
-
return getStringHashCode(this.
|
|
2999
|
+
return getStringHashCode(this.s1v_1);
|
|
3003
3000
|
};
|
|
3004
3001
|
protoOf(Charset).toString = function () {
|
|
3005
|
-
return this.
|
|
3002
|
+
return this.s1v_1;
|
|
3006
3003
|
};
|
|
3007
3004
|
function Charsets() {
|
|
3008
3005
|
Charsets_instance = this;
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3006
|
+
this.q1v_1 = new CharsetImpl('UTF-8');
|
|
3007
|
+
this.r1v_1 = new CharsetImpl('ISO-8859-1');
|
|
3011
3008
|
}
|
|
3012
3009
|
var Charsets_instance;
|
|
3013
3010
|
function Charsets_getInstance() {
|
|
@@ -3016,35 +3013,35 @@
|
|
|
3016
3013
|
return Charsets_instance;
|
|
3017
3014
|
}
|
|
3018
3015
|
function CharsetDecoder(_charset) {
|
|
3019
|
-
this.
|
|
3016
|
+
this.j1w_1 = _charset;
|
|
3020
3017
|
}
|
|
3021
3018
|
function MalformedInputException(message) {
|
|
3022
3019
|
IOException_init_$Init$_0(message, this);
|
|
3023
3020
|
captureStack(this, MalformedInputException);
|
|
3024
3021
|
}
|
|
3025
3022
|
function get_name(_this__u8e3s4) {
|
|
3026
|
-
return _this__u8e3s4.
|
|
3023
|
+
return _this__u8e3s4.s1v_1;
|
|
3027
3024
|
}
|
|
3028
3025
|
function isSupported(_this__u8e3s4, name) {
|
|
3029
|
-
return Companion_instance_3.
|
|
3026
|
+
return Companion_instance_3.i1w(name);
|
|
3030
3027
|
}
|
|
3031
3028
|
function forName(_this__u8e3s4, name) {
|
|
3032
|
-
return Companion_instance_3.
|
|
3029
|
+
return Companion_instance_3.h1w(name);
|
|
3033
3030
|
}
|
|
3034
3031
|
function CharsetEncoder(_charset) {
|
|
3035
|
-
this.
|
|
3032
|
+
this.k1w_1 = _charset;
|
|
3036
3033
|
}
|
|
3037
3034
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3038
3035
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3039
|
-
var tmp0 = input.
|
|
3036
|
+
var tmp0 = input.so().l1();
|
|
3040
3037
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3041
3038
|
var b = fromInt(max);
|
|
3042
|
-
var count =
|
|
3039
|
+
var count = tmp0 <= b ? tmp0 : b;
|
|
3043
3040
|
var tmp = readByteArray(input, convertToInt(count));
|
|
3044
3041
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3045
3042
|
var tmp_0;
|
|
3046
3043
|
try {
|
|
3047
|
-
tmp_0 = decoder.
|
|
3044
|
+
tmp_0 = decoder.l1w(array);
|
|
3048
3045
|
} catch ($p) {
|
|
3049
3046
|
var tmp_1;
|
|
3050
3047
|
if ($p instanceof Error) {
|
|
@@ -3066,11 +3063,11 @@
|
|
|
3066
3063
|
var message = 'Failed requirement.';
|
|
3067
3064
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3068
3065
|
}
|
|
3069
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3066
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().r1v_1)) {
|
|
3070
3067
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3071
3068
|
}
|
|
3072
3069
|
// Inline function 'kotlin.require' call
|
|
3073
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3070
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().q1v_1)) {
|
|
3074
3071
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3075
3072
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3076
3073
|
}
|
|
@@ -3080,7 +3077,7 @@
|
|
|
3080
3077
|
var result = encoder.encode(tmp$ret$5);
|
|
3081
3078
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3082
3079
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3083
|
-
dst.
|
|
3080
|
+
dst.fq(result);
|
|
3084
3081
|
return result.length;
|
|
3085
3082
|
}
|
|
3086
3083
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3091,17 +3088,17 @@
|
|
|
3091
3088
|
function CharsetImpl(name) {
|
|
3092
3089
|
Charset.call(this, name);
|
|
3093
3090
|
}
|
|
3094
|
-
protoOf(CharsetImpl).
|
|
3091
|
+
protoOf(CharsetImpl).u1v = function () {
|
|
3095
3092
|
return new CharsetEncoderImpl(this);
|
|
3096
3093
|
};
|
|
3097
|
-
protoOf(CharsetImpl).
|
|
3094
|
+
protoOf(CharsetImpl).t1v = function () {
|
|
3098
3095
|
return new CharsetDecoderImpl(this);
|
|
3099
3096
|
};
|
|
3100
3097
|
function get_charset(_this__u8e3s4) {
|
|
3101
|
-
return _this__u8e3s4.
|
|
3098
|
+
return _this__u8e3s4.j1w_1;
|
|
3102
3099
|
}
|
|
3103
3100
|
function get_charset_0(_this__u8e3s4) {
|
|
3104
|
-
return _this__u8e3s4.
|
|
3101
|
+
return _this__u8e3s4.k1w_1;
|
|
3105
3102
|
}
|
|
3106
3103
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3107
3104
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3120,39 +3117,39 @@
|
|
|
3120
3117
|
}
|
|
3121
3118
|
function CharsetEncoderImpl(charset) {
|
|
3122
3119
|
CharsetEncoder.call(this, charset);
|
|
3123
|
-
this.
|
|
3120
|
+
this.o1w_1 = charset;
|
|
3124
3121
|
}
|
|
3125
3122
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3126
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3123
|
+
return 'CharsetEncoderImpl(charset=' + this.o1w_1.toString() + ')';
|
|
3127
3124
|
};
|
|
3128
3125
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3129
|
-
return this.
|
|
3126
|
+
return this.o1w_1.hashCode();
|
|
3130
3127
|
};
|
|
3131
3128
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3132
3129
|
if (this === other)
|
|
3133
3130
|
return true;
|
|
3134
3131
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3135
3132
|
return false;
|
|
3136
|
-
if (!this.
|
|
3133
|
+
if (!this.o1w_1.equals(other.o1w_1))
|
|
3137
3134
|
return false;
|
|
3138
3135
|
return true;
|
|
3139
3136
|
};
|
|
3140
3137
|
function CharsetDecoderImpl(charset) {
|
|
3141
3138
|
CharsetDecoder.call(this, charset);
|
|
3142
|
-
this.
|
|
3139
|
+
this.q1w_1 = charset;
|
|
3143
3140
|
}
|
|
3144
3141
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3145
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3142
|
+
return 'CharsetDecoderImpl(charset=' + this.q1w_1.toString() + ')';
|
|
3146
3143
|
};
|
|
3147
3144
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3148
|
-
return this.
|
|
3145
|
+
return this.q1w_1.hashCode();
|
|
3149
3146
|
};
|
|
3150
3147
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3151
3148
|
if (this === other)
|
|
3152
3149
|
return true;
|
|
3153
3150
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3154
3151
|
return false;
|
|
3155
|
-
if (!this.
|
|
3152
|
+
if (!this.q1w_1.equals(other.q1w_1))
|
|
3156
3153
|
return false;
|
|
3157
3154
|
return true;
|
|
3158
3155
|
};
|
|
@@ -3186,10 +3183,10 @@
|
|
|
3186
3183
|
return this_0;
|
|
3187
3184
|
}
|
|
3188
3185
|
function toKtor$1($this_toKtor) {
|
|
3189
|
-
this.
|
|
3186
|
+
this.r1w_1 = $this_toKtor;
|
|
3190
3187
|
}
|
|
3191
|
-
protoOf(toKtor$1).
|
|
3192
|
-
return this.
|
|
3188
|
+
protoOf(toKtor$1).l1w = function (buffer) {
|
|
3189
|
+
return this.r1w_1.decode(buffer);
|
|
3193
3190
|
};
|
|
3194
3191
|
function get_ENCODING_ALIASES() {
|
|
3195
3192
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3202,7 +3199,7 @@
|
|
|
3202
3199
|
}
|
|
3203
3200
|
var REPLACEMENT;
|
|
3204
3201
|
function TextDecoderFallback(encoding, fatal) {
|
|
3205
|
-
this.
|
|
3202
|
+
this.s1w_1 = fatal;
|
|
3206
3203
|
// Inline function 'kotlin.text.trim' call
|
|
3207
3204
|
// Inline function 'kotlin.text.lowercase' call
|
|
3208
3205
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3213,7 +3210,7 @@
|
|
|
3213
3210
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3214
3211
|
}
|
|
3215
3212
|
}
|
|
3216
|
-
protoOf(TextDecoderFallback).
|
|
3213
|
+
protoOf(TextDecoderFallback).l1w = function (buffer) {
|
|
3217
3214
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3218
3215
|
var builder = new Buffer();
|
|
3219
3216
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3229,7 +3226,7 @@
|
|
|
3229
3226
|
var point = toCodePoint(byte);
|
|
3230
3227
|
if (point < 0) {
|
|
3231
3228
|
// Inline function 'kotlin.check' call
|
|
3232
|
-
if (!!this.
|
|
3229
|
+
if (!!this.s1w_1) {
|
|
3233
3230
|
var message = 'Invalid character: ' + point;
|
|
3234
3231
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3235
3232
|
}
|
|
@@ -3237,9 +3234,9 @@
|
|
|
3237
3234
|
continue $l$loop;
|
|
3238
3235
|
}
|
|
3239
3236
|
if (point > 255) {
|
|
3240
|
-
builder.
|
|
3237
|
+
builder.mq(toByte(point >> 8));
|
|
3241
3238
|
}
|
|
3242
|
-
builder.
|
|
3239
|
+
builder.mq(toByte(point & 255));
|
|
3243
3240
|
}
|
|
3244
3241
|
while (inductionVariable < last);
|
|
3245
3242
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3269,7 +3266,7 @@
|
|
|
3269
3266
|
return false;
|
|
3270
3267
|
}
|
|
3271
3268
|
function ioDispatcher() {
|
|
3272
|
-
return Dispatchers_getInstance().
|
|
3269
|
+
return Dispatchers_getInstance().n14_1;
|
|
3273
3270
|
}
|
|
3274
3271
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3275
3272
|
if (fromIndex >= toIndex)
|
|
@@ -3285,7 +3282,7 @@
|
|
|
3285
3282
|
if (character > 255) {
|
|
3286
3283
|
failedToMapError(character);
|
|
3287
3284
|
}
|
|
3288
|
-
dst.
|
|
3285
|
+
dst.mq(toByte(character));
|
|
3289
3286
|
}
|
|
3290
3287
|
while (inductionVariable < toIndex);
|
|
3291
3288
|
return toIndex - fromIndex | 0;
|
|
@@ -3307,66 +3304,66 @@
|
|
|
3307
3304
|
}
|
|
3308
3305
|
}
|
|
3309
3306
|
function DefaultPool(capacity) {
|
|
3310
|
-
this.
|
|
3307
|
+
this.z1v_1 = capacity;
|
|
3311
3308
|
var tmp = this;
|
|
3312
3309
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3313
|
-
var size = this.
|
|
3314
|
-
tmp.
|
|
3315
|
-
this.
|
|
3310
|
+
var size = this.z1v_1;
|
|
3311
|
+
tmp.a1w_1 = Array(size);
|
|
3312
|
+
this.b1w_1 = 0;
|
|
3316
3313
|
}
|
|
3317
|
-
protoOf(DefaultPool).
|
|
3314
|
+
protoOf(DefaultPool).c1w = function (instance) {
|
|
3318
3315
|
};
|
|
3319
|
-
protoOf(DefaultPool).
|
|
3316
|
+
protoOf(DefaultPool).d1w = function (instance) {
|
|
3320
3317
|
return instance;
|
|
3321
3318
|
};
|
|
3322
|
-
protoOf(DefaultPool).
|
|
3319
|
+
protoOf(DefaultPool).e1w = function (instance) {
|
|
3323
3320
|
};
|
|
3324
|
-
protoOf(DefaultPool).
|
|
3325
|
-
if (this.
|
|
3326
|
-
return this.
|
|
3327
|
-
this.
|
|
3328
|
-
var idx = this.
|
|
3329
|
-
var tmp = this.
|
|
3321
|
+
protoOf(DefaultPool).f1w = function () {
|
|
3322
|
+
if (this.b1w_1 === 0)
|
|
3323
|
+
return this.y1v();
|
|
3324
|
+
this.b1w_1 = this.b1w_1 - 1 | 0;
|
|
3325
|
+
var idx = this.b1w_1;
|
|
3326
|
+
var tmp = this.a1w_1[idx];
|
|
3330
3327
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3331
|
-
this.
|
|
3332
|
-
return this.
|
|
3328
|
+
this.a1w_1[idx] = null;
|
|
3329
|
+
return this.d1w(instance);
|
|
3333
3330
|
};
|
|
3334
|
-
protoOf(DefaultPool).
|
|
3335
|
-
this.
|
|
3336
|
-
if (this.
|
|
3337
|
-
this.
|
|
3331
|
+
protoOf(DefaultPool).g1w = function (instance) {
|
|
3332
|
+
this.e1w(instance);
|
|
3333
|
+
if (this.b1w_1 === this.z1v_1) {
|
|
3334
|
+
this.c1w(instance);
|
|
3338
3335
|
} else {
|
|
3339
|
-
var _unary__edvuaz = this.
|
|
3340
|
-
this.
|
|
3341
|
-
this.
|
|
3336
|
+
var _unary__edvuaz = this.b1w_1;
|
|
3337
|
+
this.b1w_1 = _unary__edvuaz + 1 | 0;
|
|
3338
|
+
this.a1w_1[_unary__edvuaz] = instance;
|
|
3342
3339
|
}
|
|
3343
3340
|
};
|
|
3344
|
-
protoOf(DefaultPool).
|
|
3341
|
+
protoOf(DefaultPool).cv = function () {
|
|
3345
3342
|
var inductionVariable = 0;
|
|
3346
|
-
var last = this.
|
|
3343
|
+
var last = this.b1w_1;
|
|
3347
3344
|
if (inductionVariable < last)
|
|
3348
3345
|
do {
|
|
3349
3346
|
var i = inductionVariable;
|
|
3350
3347
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3351
|
-
var tmp = this.
|
|
3348
|
+
var tmp = this.a1w_1[i];
|
|
3352
3349
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3353
|
-
this.
|
|
3354
|
-
this.
|
|
3350
|
+
this.a1w_1[i] = null;
|
|
3351
|
+
this.c1w(instance);
|
|
3355
3352
|
}
|
|
3356
3353
|
while (inductionVariable < last);
|
|
3357
|
-
this.
|
|
3354
|
+
this.b1w_1 = 0;
|
|
3358
3355
|
};
|
|
3359
3356
|
//region block: post-declaration
|
|
3360
|
-
protoOf(Read).
|
|
3361
|
-
protoOf(Read).
|
|
3362
|
-
protoOf(Write).
|
|
3363
|
-
protoOf(Write).
|
|
3364
|
-
protoOf(ByteChannel).
|
|
3365
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3366
|
-
protoOf(CountedByteReadChannel).
|
|
3367
|
-
protoOf(SourceByteReadChannel).
|
|
3368
|
-
protoOf(DefaultPool).
|
|
3369
|
-
protoOf(NoPoolImpl).
|
|
3357
|
+
protoOf(Read).p1j = resume;
|
|
3358
|
+
protoOf(Read).q1j = resume_0;
|
|
3359
|
+
protoOf(Write).p1j = resume;
|
|
3360
|
+
protoOf(Write).q1j = resume_0;
|
|
3361
|
+
protoOf(ByteChannel).v1l = awaitContent$default;
|
|
3362
|
+
protoOf(ByteReadChannel$Companion$Empty$1).v1l = awaitContent$default;
|
|
3363
|
+
protoOf(CountedByteReadChannel).v1l = awaitContent$default;
|
|
3364
|
+
protoOf(SourceByteReadChannel).v1l = awaitContent$default;
|
|
3365
|
+
protoOf(DefaultPool).l4 = close;
|
|
3366
|
+
protoOf(NoPoolImpl).l4 = close;
|
|
3370
3367
|
//endregion
|
|
3371
3368
|
//region block: init
|
|
3372
3369
|
Empty_instance = new Empty();
|