@doordeck/doordeck-headless-sdk 0.204.0 → 0.206.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 +58 -58
- package/kotlin/Kermit-kermit.js +7 -7
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +21 -2
- package/kotlin/doordeck-sdk.js +12895 -12809
- package/kotlin/kotlin-kotlin-stdlib.js +1727 -1595
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2092 -2114
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +48 -48
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1917 -1916
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1498 -1501
- package/kotlin/ktor-ktor-client-auth.js +284 -299
- package/kotlin/ktor-ktor-client-content-negotiation.js +160 -165
- package/kotlin/ktor-ktor-client-core.js +2380 -2491
- package/kotlin/ktor-ktor-client-logging.js +694 -719
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +381 -386
- package/kotlin/ktor-ktor-http.js +809 -808
- package/kotlin/ktor-ktor-io.js +702 -704
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +166 -173
- package/kotlin/ktor-ktor-serialization.js +76 -79
- package/kotlin/ktor-ktor-utils.js +927 -947
- package/kotlin/ktor-ktor-websockets.js +449 -464
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
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.$_$.
|
|
4
|
+
var Companion_instance = kotlin_kotlin.$_$.u2;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.z2;
|
|
6
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.m;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.hc;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.qb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.mh;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.jb;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.cb;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kb;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.ah;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.hg;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ob;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.ff;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.dc;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.kh;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.c;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.zb;
|
|
22
22
|
var FunctionAdapter = kotlin_kotlin.$_$.oa;
|
|
23
23
|
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
24
24
|
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
@@ -27,79 +27,81 @@
|
|
|
27
27
|
var add = kotlin_kotlin.$_$.y9;
|
|
28
28
|
var intercepted = kotlin_kotlin.$_$.e9;
|
|
29
29
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
30
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
31
|
-
var returnIfSuspended = kotlin_kotlin.$_$.
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ih;
|
|
31
|
+
var returnIfSuspended = kotlin_kotlin.$_$.g3;
|
|
32
32
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
33
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
33
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mb;
|
|
34
34
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
35
35
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
36
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
36
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z3;
|
|
37
37
|
var CancellationException = kotlin_kotlin.$_$.a9;
|
|
38
38
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
39
39
|
var convertToInt = kotlin_kotlin.$_$.aa;
|
|
40
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
41
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
42
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
43
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
40
|
+
var toString_1 = kotlin_kotlin.$_$.kc;
|
|
41
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s4;
|
|
42
|
+
var IllegalStateException = kotlin_kotlin.$_$.eg;
|
|
43
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.t4;
|
|
44
44
|
var captureStack = kotlin_kotlin.$_$.sa;
|
|
45
45
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
46
46
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
47
|
-
var replace = kotlin_kotlin.$_$.
|
|
47
|
+
var replace = kotlin_kotlin.$_$.fe;
|
|
48
48
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
49
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
49
|
+
var THROW_CCE = kotlin_kotlin.$_$.jg;
|
|
50
50
|
var get_ONE = kotlin_kotlin.$_$.x9;
|
|
51
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o4;
|
|
52
52
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
53
53
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
54
54
|
var subtract = kotlin_kotlin.$_$.ma;
|
|
55
55
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
56
|
-
var
|
|
56
|
+
var constructCallableReference = kotlin_kotlin.$_$.ab;
|
|
57
|
+
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.d2;
|
|
57
58
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
58
59
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
59
60
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
60
61
|
var Continuation = kotlin_kotlin.$_$.m9;
|
|
61
|
-
var
|
|
62
|
+
var KFunctionImpl = kotlin_kotlin.$_$.vc;
|
|
63
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.nb;
|
|
62
64
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
63
65
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
64
66
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
65
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
67
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.pb;
|
|
66
68
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
67
69
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
68
70
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
69
|
-
var Enum = kotlin_kotlin.$_$.
|
|
70
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
71
|
+
var Enum = kotlin_kotlin.$_$.ag;
|
|
72
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j3;
|
|
71
73
|
var listOf = kotlin_kotlin.$_$.t7;
|
|
72
74
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
73
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
75
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c4;
|
|
74
76
|
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
75
77
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
76
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
78
|
+
var encodeToByteArray = kotlin_kotlin.$_$.pd;
|
|
77
79
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
78
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
79
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
80
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
81
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
80
|
+
var AutoCloseable = kotlin_kotlin.$_$.tf;
|
|
81
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.e;
|
|
82
|
+
var replace_0 = kotlin_kotlin.$_$.ge;
|
|
83
|
+
var getStringHashCode = kotlin_kotlin.$_$.ib;
|
|
82
84
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
83
85
|
var charSequenceSubSequence = kotlin_kotlin.$_$.ya;
|
|
84
86
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
85
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
86
|
-
var trim = kotlin_kotlin.$_$.
|
|
87
|
-
var toByte = kotlin_kotlin.$_$.
|
|
88
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
87
|
+
var isCharSequence = kotlin_kotlin.$_$.vb;
|
|
88
|
+
var trim = kotlin_kotlin.$_$.nf;
|
|
89
|
+
var toByte = kotlin_kotlin.$_$.ic;
|
|
90
|
+
var decodeToString_0 = kotlin_kotlin.$_$.nd;
|
|
89
91
|
var setOf = kotlin_kotlin.$_$.f8;
|
|
90
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
92
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e;
|
|
91
93
|
var charSequenceGet = kotlin_kotlin.$_$.wa;
|
|
92
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
94
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.k;
|
|
93
95
|
//endregion
|
|
94
96
|
//region block: pre-declaration
|
|
95
97
|
initMetadataForCompanion(Companion);
|
|
96
98
|
initMetadataForObject(Empty, 'Empty');
|
|
97
99
|
initMetadataForClass(Closed, 'Closed');
|
|
98
100
|
function resume() {
|
|
99
|
-
return this.
|
|
101
|
+
return this.v1m().o9(Companion_getInstance().s1m_1);
|
|
100
102
|
}
|
|
101
103
|
function resume_0(throwable) {
|
|
102
|
-
var tmp = this.
|
|
104
|
+
var tmp = this.v1m();
|
|
103
105
|
var tmp_0;
|
|
104
106
|
if (throwable == null) {
|
|
105
107
|
tmp_0 = null;
|
|
@@ -110,7 +112,7 @@
|
|
|
110
112
|
tmp_0 = new Result(tmp$ret$0);
|
|
111
113
|
}
|
|
112
114
|
var tmp1_elvis_lhs = tmp_0;
|
|
113
|
-
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
115
|
+
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().s1m_1 : tmp1_elvis_lhs.vn_1);
|
|
114
116
|
}
|
|
115
117
|
initMetadataForInterface(Task, 'Task');
|
|
116
118
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -121,7 +123,7 @@
|
|
|
121
123
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
122
124
|
function awaitContent$default(min, $completion, $super) {
|
|
123
125
|
min = min === VOID ? 1 : min;
|
|
124
|
-
return $super === VOID ? this.
|
|
126
|
+
return $super === VOID ? this.c1p(min, $completion) : $super.c1p.call(this, min, $completion);
|
|
125
127
|
}
|
|
126
128
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
127
129
|
function get_autoFlush() {
|
|
@@ -152,7 +154,7 @@
|
|
|
152
154
|
initMetadataForClass(WriterJob, 'WriterJob');
|
|
153
155
|
initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
|
|
154
156
|
initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
|
|
155
|
-
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$
|
|
157
|
+
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref_0, KFunctionImpl, VOID, [0]);
|
|
156
158
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
157
159
|
initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
|
|
158
160
|
initMetadataForCompanion(Companion_1);
|
|
@@ -169,7 +171,7 @@
|
|
|
169
171
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
170
172
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
171
173
|
function close() {
|
|
172
|
-
this.
|
|
174
|
+
this.sw();
|
|
173
175
|
}
|
|
174
176
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
175
177
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -188,10 +190,10 @@
|
|
|
188
190
|
//endregion
|
|
189
191
|
function Companion() {
|
|
190
192
|
Companion_instance_0 = this;
|
|
191
|
-
this.
|
|
193
|
+
this.r1m_1 = new Closed(null);
|
|
192
194
|
var tmp = this;
|
|
193
195
|
// Inline function 'kotlin.Companion.success' call
|
|
194
|
-
tmp.
|
|
196
|
+
tmp.s1m_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
195
197
|
}
|
|
196
198
|
var Companion_instance_0;
|
|
197
199
|
function Companion_getInstance() {
|
|
@@ -219,102 +221,102 @@
|
|
|
219
221
|
return Empty_instance;
|
|
220
222
|
}
|
|
221
223
|
function Closed(cause) {
|
|
222
|
-
this.
|
|
224
|
+
this.t1m_1 = cause;
|
|
223
225
|
}
|
|
224
226
|
protoOf(Closed).toString = function () {
|
|
225
|
-
return 'Closed(cause=' + toString(this.
|
|
227
|
+
return 'Closed(cause=' + toString(this.t1m_1) + ')';
|
|
226
228
|
};
|
|
227
229
|
protoOf(Closed).hashCode = function () {
|
|
228
|
-
return this.
|
|
230
|
+
return this.t1m_1 == null ? 0 : hashCode(this.t1m_1);
|
|
229
231
|
};
|
|
230
232
|
protoOf(Closed).equals = function (other) {
|
|
231
233
|
if (this === other)
|
|
232
234
|
return true;
|
|
233
235
|
if (!(other instanceof Closed))
|
|
234
236
|
return false;
|
|
235
|
-
if (!equals(this.
|
|
237
|
+
if (!equals(this.t1m_1, other.t1m_1))
|
|
236
238
|
return false;
|
|
237
239
|
return true;
|
|
238
240
|
};
|
|
239
241
|
function Task() {
|
|
240
242
|
}
|
|
241
243
|
function Read(continuation) {
|
|
242
|
-
this.
|
|
243
|
-
this.
|
|
244
|
+
this.z1m_1 = continuation;
|
|
245
|
+
this.a1n_1 = null;
|
|
244
246
|
if (get_DEVELOPMENT_MODE()) {
|
|
245
247
|
var tmp = this;
|
|
246
248
|
// Inline function 'kotlin.also' call
|
|
247
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
249
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.z1m_1), 16));
|
|
248
250
|
stackTraceToString(this_0);
|
|
249
|
-
tmp.
|
|
251
|
+
tmp.a1n_1 = this_0;
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
|
-
protoOf(Read).
|
|
253
|
-
return this.
|
|
254
|
+
protoOf(Read).v1m = function () {
|
|
255
|
+
return this.z1m_1;
|
|
254
256
|
};
|
|
255
|
-
protoOf(Read).
|
|
256
|
-
return this.
|
|
257
|
+
protoOf(Read).u1m = function () {
|
|
258
|
+
return this.a1n_1;
|
|
257
259
|
};
|
|
258
|
-
protoOf(Read).
|
|
260
|
+
protoOf(Read).w1m = function () {
|
|
259
261
|
return 'read';
|
|
260
262
|
};
|
|
261
263
|
function Write(continuation) {
|
|
262
|
-
this.
|
|
263
|
-
this.
|
|
264
|
+
this.b1n_1 = continuation;
|
|
265
|
+
this.c1n_1 = null;
|
|
264
266
|
if (get_DEVELOPMENT_MODE()) {
|
|
265
267
|
var tmp = this;
|
|
266
268
|
// Inline function 'kotlin.also' call
|
|
267
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
269
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.b1n_1), 16));
|
|
268
270
|
stackTraceToString(this_0);
|
|
269
|
-
tmp.
|
|
271
|
+
tmp.c1n_1 = this_0;
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
|
-
protoOf(Write).
|
|
273
|
-
return this.
|
|
274
|
+
protoOf(Write).v1m = function () {
|
|
275
|
+
return this.b1n_1;
|
|
274
276
|
};
|
|
275
|
-
protoOf(Write).
|
|
276
|
-
return this.
|
|
277
|
+
protoOf(Write).u1m = function () {
|
|
278
|
+
return this.c1n_1;
|
|
277
279
|
};
|
|
278
|
-
protoOf(Write).
|
|
280
|
+
protoOf(Write).w1m = function () {
|
|
279
281
|
return 'write';
|
|
280
282
|
};
|
|
281
283
|
function moveFlushToReadBuffer($this) {
|
|
282
284
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
283
|
-
$this.
|
|
284
|
-
$this.
|
|
285
|
-
$this.
|
|
285
|
+
$this.g1n_1;
|
|
286
|
+
$this.e1n_1.mr($this.i1n_1);
|
|
287
|
+
$this.f1n_1 = 0;
|
|
286
288
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
287
|
-
var current = $this.
|
|
289
|
+
var current = $this.h1n_1.kotlinx$atomicfu$value;
|
|
288
290
|
var tmp;
|
|
289
291
|
if (current instanceof Write) {
|
|
290
|
-
tmp = $this.
|
|
292
|
+
tmp = $this.h1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
291
293
|
} else {
|
|
292
294
|
tmp = false;
|
|
293
295
|
}
|
|
294
296
|
if (tmp) {
|
|
295
|
-
current.
|
|
297
|
+
current.x1m();
|
|
296
298
|
}
|
|
297
299
|
}
|
|
298
300
|
function closeSlot($this, cause) {
|
|
299
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
300
|
-
var continuation = $this.
|
|
301
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().r1m_1;
|
|
302
|
+
var continuation = $this.h1n_1.atomicfu$getAndSet(closeContinuation);
|
|
301
303
|
if (isInterface(continuation, Task)) {
|
|
302
|
-
continuation.
|
|
304
|
+
continuation.y1m(cause);
|
|
303
305
|
}
|
|
304
|
-
var tmp0_safe_receiver = $this.
|
|
306
|
+
var tmp0_safe_receiver = $this.l1n_1.atomicfu$getAndSet(null);
|
|
305
307
|
if (tmp0_safe_receiver == null)
|
|
306
308
|
null;
|
|
307
309
|
else
|
|
308
310
|
tmp0_safe_receiver(cause);
|
|
309
311
|
}
|
|
310
312
|
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
311
|
-
this.
|
|
313
|
+
this.m1n_1 = function_0;
|
|
312
314
|
}
|
|
313
|
-
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).
|
|
314
|
-
return this.
|
|
315
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).sw = function () {
|
|
316
|
+
return this.m1n_1();
|
|
315
317
|
};
|
|
316
318
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).q3 = function () {
|
|
317
|
-
return this.
|
|
319
|
+
return this.m1n_1;
|
|
318
320
|
};
|
|
319
321
|
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
320
322
|
var tmp;
|
|
@@ -342,14 +344,14 @@
|
|
|
342
344
|
}
|
|
343
345
|
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
344
346
|
return function () {
|
|
345
|
-
this$0.
|
|
347
|
+
this$0.l1n_1.atomicfu$compareAndSet($handler, null);
|
|
346
348
|
return Unit_instance;
|
|
347
349
|
};
|
|
348
350
|
}
|
|
349
351
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
350
352
|
CoroutineImpl.call(this, resultContinuation);
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
353
|
+
this.v1n_1 = _this__u8e3s4;
|
|
354
|
+
this.w1n_1 = min;
|
|
353
355
|
}
|
|
354
356
|
protoOf($awaitContentCOROUTINE$).l9 = function () {
|
|
355
357
|
var suspendResult = this.f9_1;
|
|
@@ -359,39 +361,39 @@
|
|
|
359
361
|
switch (tmp) {
|
|
360
362
|
case 0:
|
|
361
363
|
this.e9_1 = 4;
|
|
362
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
363
|
-
if (this.
|
|
364
|
+
rethrowCloseCauseIfNeeded_0(this.v1n_1);
|
|
365
|
+
if (this.v1n_1.i1n_1.l1() >= fromInt(this.w1n_1))
|
|
364
366
|
return true;
|
|
365
|
-
this.
|
|
367
|
+
this.x1n_1 = this.v1n_1;
|
|
366
368
|
this.d9_1 = 1;
|
|
367
369
|
continue $sm;
|
|
368
370
|
case 1:
|
|
369
|
-
if (!(add(numberToLong(this.
|
|
371
|
+
if (!(add(numberToLong(this.v1n_1.f1n_1), this.v1n_1.i1n_1.l1()) < fromInt(this.w1n_1) && this.v1n_1.k1n_1.kotlinx$atomicfu$value == null)) {
|
|
370
372
|
this.d9_1 = 3;
|
|
371
373
|
continue $sm;
|
|
372
374
|
}
|
|
373
375
|
|
|
374
376
|
this.d9_1 = 2;
|
|
375
377
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
376
|
-
cancellable.
|
|
377
|
-
var tmp0 = this.
|
|
378
|
+
cancellable.vx();
|
|
379
|
+
var tmp0 = this.x1n_1;
|
|
378
380
|
var tmp2 = new Read(cancellable);
|
|
379
381
|
l$ret$1: do {
|
|
380
|
-
var previous = tmp0.
|
|
382
|
+
var previous = tmp0.h1n_1.kotlinx$atomicfu$value;
|
|
381
383
|
if (!(previous instanceof Closed)) {
|
|
382
|
-
if (!tmp0.
|
|
383
|
-
tmp2.
|
|
384
|
+
if (!tmp0.h1n_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
385
|
+
tmp2.x1m();
|
|
384
386
|
break l$ret$1;
|
|
385
387
|
}
|
|
386
388
|
}
|
|
387
389
|
if (previous instanceof Read) {
|
|
388
|
-
previous.
|
|
390
|
+
previous.y1m(new ConcurrentIOException(tmp2.w1m(), previous.u1m()));
|
|
389
391
|
} else {
|
|
390
392
|
if (isInterface(previous, Task)) {
|
|
391
|
-
previous.
|
|
393
|
+
previous.x1m();
|
|
392
394
|
} else {
|
|
393
395
|
if (previous instanceof Closed) {
|
|
394
|
-
tmp2.
|
|
396
|
+
tmp2.y1m(previous.t1m_1);
|
|
395
397
|
break l$ret$1;
|
|
396
398
|
} else {
|
|
397
399
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -400,21 +402,21 @@
|
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
404
|
}
|
|
403
|
-
if (!(add(numberToLong(this.
|
|
404
|
-
var current = tmp0.
|
|
405
|
+
if (!(add(numberToLong(this.v1n_1.f1n_1), this.v1n_1.i1n_1.l1()) < fromInt(this.w1n_1) && this.v1n_1.k1n_1.kotlinx$atomicfu$value == null)) {
|
|
406
|
+
var current = tmp0.h1n_1.kotlinx$atomicfu$value;
|
|
405
407
|
var tmp_0;
|
|
406
408
|
if (current instanceof Read) {
|
|
407
|
-
tmp_0 = tmp0.
|
|
409
|
+
tmp_0 = tmp0.h1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
408
410
|
} else {
|
|
409
411
|
tmp_0 = false;
|
|
410
412
|
}
|
|
411
413
|
if (tmp_0) {
|
|
412
|
-
current.
|
|
414
|
+
current.x1m();
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
while (false);
|
|
417
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
419
|
+
suspendResult = returnIfSuspended(cancellable.wx(), this);
|
|
418
420
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
419
421
|
return suspendResult;
|
|
420
422
|
}
|
|
@@ -424,11 +426,11 @@
|
|
|
424
426
|
this.d9_1 = 1;
|
|
425
427
|
continue $sm;
|
|
426
428
|
case 3:
|
|
427
|
-
if (this.
|
|
428
|
-
moveFlushToReadBuffer(this.
|
|
429
|
+
if (this.v1n_1.i1n_1.l1() < 1048576n) {
|
|
430
|
+
moveFlushToReadBuffer(this.v1n_1);
|
|
429
431
|
}
|
|
430
432
|
|
|
431
|
-
return this.
|
|
433
|
+
return this.v1n_1.i1n_1.l1() >= fromInt(this.w1n_1);
|
|
432
434
|
case 4:
|
|
433
435
|
throw this.g9_1;
|
|
434
436
|
}
|
|
@@ -445,7 +447,7 @@
|
|
|
445
447
|
};
|
|
446
448
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
447
449
|
CoroutineImpl.call(this, resultContinuation);
|
|
448
|
-
this.
|
|
450
|
+
this.g1o_1 = _this__u8e3s4;
|
|
449
451
|
}
|
|
450
452
|
protoOf($flushCOROUTINE$).l9 = function () {
|
|
451
453
|
var suspendResult = this.f9_1;
|
|
@@ -455,40 +457,40 @@
|
|
|
455
457
|
switch (tmp) {
|
|
456
458
|
case 0:
|
|
457
459
|
this.e9_1 = 4;
|
|
458
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
459
|
-
this.
|
|
460
|
-
if (this.
|
|
460
|
+
rethrowCloseCauseIfNeeded_0(this.g1o_1);
|
|
461
|
+
this.g1o_1.i1o();
|
|
462
|
+
if (this.g1o_1.j1o())
|
|
461
463
|
return Unit_instance;
|
|
462
|
-
this.
|
|
464
|
+
this.h1o_1 = this.g1o_1;
|
|
463
465
|
this.d9_1 = 1;
|
|
464
466
|
continue $sm;
|
|
465
467
|
case 1:
|
|
466
|
-
if (!(!this.
|
|
468
|
+
if (!(!this.g1o_1.j1o() && this.g1o_1.k1n_1.kotlinx$atomicfu$value == null)) {
|
|
467
469
|
this.d9_1 = 3;
|
|
468
470
|
continue $sm;
|
|
469
471
|
}
|
|
470
472
|
|
|
471
473
|
this.d9_1 = 2;
|
|
472
474
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
473
|
-
cancellable.
|
|
474
|
-
var tmp0 = this.
|
|
475
|
+
cancellable.vx();
|
|
476
|
+
var tmp0 = this.h1o_1;
|
|
475
477
|
var tmp2 = new Write(cancellable);
|
|
476
478
|
l$ret$1: do {
|
|
477
|
-
var previous = tmp0.
|
|
479
|
+
var previous = tmp0.h1n_1.kotlinx$atomicfu$value;
|
|
478
480
|
if (!(previous instanceof Closed)) {
|
|
479
|
-
if (!tmp0.
|
|
480
|
-
tmp2.
|
|
481
|
+
if (!tmp0.h1n_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
482
|
+
tmp2.x1m();
|
|
481
483
|
break l$ret$1;
|
|
482
484
|
}
|
|
483
485
|
}
|
|
484
486
|
if (previous instanceof Write) {
|
|
485
|
-
previous.
|
|
487
|
+
previous.y1m(new ConcurrentIOException(tmp2.w1m(), previous.u1m()));
|
|
486
488
|
} else {
|
|
487
489
|
if (isInterface(previous, Task)) {
|
|
488
|
-
previous.
|
|
490
|
+
previous.x1m();
|
|
489
491
|
} else {
|
|
490
492
|
if (previous instanceof Closed) {
|
|
491
|
-
tmp2.
|
|
493
|
+
tmp2.y1m(previous.t1m_1);
|
|
492
494
|
break l$ret$1;
|
|
493
495
|
} else {
|
|
494
496
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -497,21 +499,21 @@
|
|
|
497
499
|
}
|
|
498
500
|
}
|
|
499
501
|
}
|
|
500
|
-
if (!(!this.
|
|
501
|
-
var current = tmp0.
|
|
502
|
+
if (!(!this.g1o_1.j1o() && this.g1o_1.k1n_1.kotlinx$atomicfu$value == null)) {
|
|
503
|
+
var current = tmp0.h1n_1.kotlinx$atomicfu$value;
|
|
502
504
|
var tmp_0;
|
|
503
505
|
if (current instanceof Write) {
|
|
504
|
-
tmp_0 = tmp0.
|
|
506
|
+
tmp_0 = tmp0.h1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
505
507
|
} else {
|
|
506
508
|
tmp_0 = false;
|
|
507
509
|
}
|
|
508
510
|
if (tmp_0) {
|
|
509
|
-
current.
|
|
511
|
+
current.x1m();
|
|
510
512
|
}
|
|
511
513
|
}
|
|
512
514
|
}
|
|
513
515
|
while (false);
|
|
514
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
516
|
+
suspendResult = returnIfSuspended(cancellable.wx(), this);
|
|
515
517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
516
518
|
return suspendResult;
|
|
517
519
|
}
|
|
@@ -538,7 +540,7 @@
|
|
|
538
540
|
};
|
|
539
541
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
540
542
|
CoroutineImpl.call(this, resultContinuation);
|
|
541
|
-
this.
|
|
543
|
+
this.s1o_1 = _this__u8e3s4;
|
|
542
544
|
}
|
|
543
545
|
protoOf($flushAndCloseCOROUTINE$).l9 = function () {
|
|
544
546
|
var suspendResult = this.f9_1;
|
|
@@ -548,11 +550,11 @@
|
|
|
548
550
|
switch (tmp) {
|
|
549
551
|
case 0:
|
|
550
552
|
this.e9_1 = 4;
|
|
551
|
-
var this_0 = this.
|
|
553
|
+
var this_0 = this.s1o_1;
|
|
552
554
|
this.e9_1 = 2;
|
|
553
|
-
this.
|
|
555
|
+
this.u1o_1 = Companion_instance;
|
|
554
556
|
this.d9_1 = 1;
|
|
555
|
-
suspendResult = this_0.
|
|
557
|
+
suspendResult = this_0.v1o(this);
|
|
556
558
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
557
559
|
return suspendResult;
|
|
558
560
|
}
|
|
@@ -560,8 +562,8 @@
|
|
|
560
562
|
continue $sm;
|
|
561
563
|
case 1:
|
|
562
564
|
var tmp_0 = this;
|
|
563
|
-
this.
|
|
564
|
-
tmp_0.
|
|
565
|
+
this.u1o_1;
|
|
566
|
+
tmp_0.t1o_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
565
567
|
this.e9_1 = 4;
|
|
566
568
|
this.d9_1 = 3;
|
|
567
569
|
continue $sm;
|
|
@@ -571,7 +573,7 @@
|
|
|
571
573
|
if (tmp_1 instanceof Error) {
|
|
572
574
|
var e = this.g9_1;
|
|
573
575
|
var tmp_2 = this;
|
|
574
|
-
tmp_2.
|
|
576
|
+
tmp_2.t1o_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
575
577
|
this.d9_1 = 3;
|
|
576
578
|
continue $sm;
|
|
577
579
|
} else {
|
|
@@ -580,9 +582,9 @@
|
|
|
580
582
|
|
|
581
583
|
case 3:
|
|
582
584
|
this.e9_1 = 4;
|
|
583
|
-
if (!this.
|
|
585
|
+
if (!this.s1o_1.k1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
584
586
|
return Unit_instance;
|
|
585
|
-
closeSlot(this.
|
|
587
|
+
closeSlot(this.s1o_1, null);
|
|
586
588
|
return Unit_instance;
|
|
587
589
|
case 4:
|
|
588
590
|
throw this.g9_1;
|
|
@@ -600,24 +602,24 @@
|
|
|
600
602
|
};
|
|
601
603
|
function ByteChannel(autoFlush) {
|
|
602
604
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
603
|
-
this.
|
|
604
|
-
this.a1n_1 = new Buffer();
|
|
605
|
-
this.b1n_1 = 0;
|
|
606
|
-
this.c1n_1 = new Object();
|
|
607
|
-
this.d1n_1 = atomic$ref$1(Empty_instance);
|
|
605
|
+
this.d1n_1 = autoFlush;
|
|
608
606
|
this.e1n_1 = new Buffer();
|
|
609
|
-
this.f1n_1 =
|
|
610
|
-
this.g1n_1 =
|
|
611
|
-
this.h1n_1 = atomic$ref$1(
|
|
607
|
+
this.f1n_1 = 0;
|
|
608
|
+
this.g1n_1 = new Object();
|
|
609
|
+
this.h1n_1 = atomic$ref$1(Empty_instance);
|
|
610
|
+
this.i1n_1 = new Buffer();
|
|
611
|
+
this.j1n_1 = new Buffer();
|
|
612
|
+
this.k1n_1 = atomic$ref$1(null);
|
|
613
|
+
this.l1n_1 = atomic$ref$1(null);
|
|
612
614
|
}
|
|
613
|
-
protoOf(ByteChannel).
|
|
614
|
-
return this.
|
|
615
|
+
protoOf(ByteChannel).w1o = function () {
|
|
616
|
+
return this.d1n_1;
|
|
615
617
|
};
|
|
616
|
-
protoOf(ByteChannel).
|
|
617
|
-
return this.
|
|
618
|
+
protoOf(ByteChannel).j1o = function () {
|
|
619
|
+
return this.f1n_1 < 1048576;
|
|
618
620
|
};
|
|
619
|
-
protoOf(ByteChannel).
|
|
620
|
-
var tmp0_safe_receiver = this.
|
|
621
|
+
protoOf(ByteChannel).x1o = function () {
|
|
622
|
+
var tmp0_safe_receiver = this.k1n_1.kotlinx$atomicfu$value;
|
|
621
623
|
if (tmp0_safe_receiver == null)
|
|
622
624
|
null;
|
|
623
625
|
else {
|
|
@@ -629,7 +631,7 @@
|
|
|
629
631
|
tmp = null;
|
|
630
632
|
} else {
|
|
631
633
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
632
|
-
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
634
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).n12();
|
|
633
635
|
} else {
|
|
634
636
|
if (tmp0_subject instanceof CancellationException) {
|
|
635
637
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -648,14 +650,14 @@
|
|
|
648
650
|
throw tmp0_safe_receiver_0;
|
|
649
651
|
}
|
|
650
652
|
}
|
|
651
|
-
if (this.
|
|
653
|
+
if (this.i1n_1.jq()) {
|
|
652
654
|
moveFlushToReadBuffer(this);
|
|
653
655
|
}
|
|
654
|
-
return this.
|
|
656
|
+
return this.i1n_1;
|
|
655
657
|
};
|
|
656
|
-
protoOf(ByteChannel).
|
|
657
|
-
if (this.
|
|
658
|
-
var tmp0_safe_receiver = this.
|
|
658
|
+
protoOf(ByteChannel).y1o = function () {
|
|
659
|
+
if (this.z1o()) {
|
|
660
|
+
var tmp0_safe_receiver = this.k1n_1.kotlinx$atomicfu$value;
|
|
659
661
|
var tmp;
|
|
660
662
|
if (tmp0_safe_receiver == null) {
|
|
661
663
|
tmp = null;
|
|
@@ -668,7 +670,7 @@
|
|
|
668
670
|
tmp_0 = null;
|
|
669
671
|
} else {
|
|
670
672
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
671
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
673
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).n12();
|
|
672
674
|
} else {
|
|
673
675
|
if (tmp0_subject instanceof CancellationException) {
|
|
674
676
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -691,10 +693,10 @@
|
|
|
691
693
|
if (tmp == null)
|
|
692
694
|
throw new ClosedWriteChannelException();
|
|
693
695
|
}
|
|
694
|
-
return this.
|
|
696
|
+
return this.j1n_1;
|
|
695
697
|
};
|
|
696
|
-
protoOf(ByteChannel).
|
|
697
|
-
var tmp0_safe_receiver = this.
|
|
698
|
+
protoOf(ByteChannel).a1p = function () {
|
|
699
|
+
var tmp0_safe_receiver = this.k1n_1.kotlinx$atomicfu$value;
|
|
698
700
|
var tmp;
|
|
699
701
|
if (tmp0_safe_receiver == null) {
|
|
700
702
|
tmp = null;
|
|
@@ -706,7 +708,7 @@
|
|
|
706
708
|
tmp_0 = null;
|
|
707
709
|
} else {
|
|
708
710
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
709
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
711
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).n12();
|
|
710
712
|
} else {
|
|
711
713
|
if (tmp0_subject instanceof CancellationException) {
|
|
712
714
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -720,61 +722,61 @@
|
|
|
720
722
|
}
|
|
721
723
|
return tmp;
|
|
722
724
|
};
|
|
723
|
-
protoOf(ByteChannel).
|
|
724
|
-
return !(this.
|
|
725
|
+
protoOf(ByteChannel).z1o = function () {
|
|
726
|
+
return !(this.k1n_1.kotlinx$atomicfu$value == null);
|
|
725
727
|
};
|
|
726
|
-
protoOf(ByteChannel).
|
|
727
|
-
return !(this.
|
|
728
|
+
protoOf(ByteChannel).b1p = function () {
|
|
729
|
+
return !(this.a1p() == null) || (this.z1o() && this.f1n_1 === 0 && this.i1n_1.jq());
|
|
728
730
|
};
|
|
729
|
-
protoOf(ByteChannel).
|
|
731
|
+
protoOf(ByteChannel).c1p = function (min, $completion) {
|
|
730
732
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
731
733
|
tmp.f9_1 = Unit_instance;
|
|
732
734
|
tmp.g9_1 = null;
|
|
733
735
|
return tmp.l9();
|
|
734
736
|
};
|
|
735
|
-
protoOf(ByteChannel).
|
|
737
|
+
protoOf(ByteChannel).v1o = function ($completion) {
|
|
736
738
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
737
739
|
tmp.f9_1 = Unit_instance;
|
|
738
740
|
tmp.g9_1 = null;
|
|
739
741
|
return tmp.l9();
|
|
740
742
|
};
|
|
741
|
-
protoOf(ByteChannel).
|
|
742
|
-
if (this.
|
|
743
|
+
protoOf(ByteChannel).i1o = function () {
|
|
744
|
+
if (this.j1n_1.jq())
|
|
743
745
|
return Unit_instance;
|
|
744
746
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
745
|
-
this.
|
|
746
|
-
var count = convertToInt(this.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
747
|
+
this.g1n_1;
|
|
748
|
+
var count = convertToInt(this.j1n_1.l1());
|
|
749
|
+
this.e1n_1.bs(this.j1n_1);
|
|
750
|
+
this.f1n_1 = this.f1n_1 + count | 0;
|
|
749
751
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
750
|
-
var current = this.
|
|
752
|
+
var current = this.h1n_1.kotlinx$atomicfu$value;
|
|
751
753
|
var tmp;
|
|
752
754
|
if (current instanceof Read) {
|
|
753
|
-
tmp = this.
|
|
755
|
+
tmp = this.h1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
754
756
|
} else {
|
|
755
757
|
tmp = false;
|
|
756
758
|
}
|
|
757
759
|
if (tmp) {
|
|
758
|
-
current.
|
|
760
|
+
current.x1m();
|
|
759
761
|
}
|
|
760
762
|
};
|
|
761
763
|
protoOf(ByteChannel).o4 = function () {
|
|
762
|
-
this.
|
|
763
|
-
if (!this.
|
|
764
|
+
this.i1o();
|
|
765
|
+
if (!this.k1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
764
766
|
return Unit_instance;
|
|
765
767
|
closeSlot(this, null);
|
|
766
768
|
};
|
|
767
|
-
protoOf(ByteChannel).
|
|
769
|
+
protoOf(ByteChannel).e1p = function ($completion) {
|
|
768
770
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
769
771
|
tmp.f9_1 = Unit_instance;
|
|
770
772
|
tmp.g9_1 = null;
|
|
771
773
|
return tmp.l9();
|
|
772
774
|
};
|
|
773
|
-
protoOf(ByteChannel).
|
|
774
|
-
if (!(this.
|
|
775
|
+
protoOf(ByteChannel).f1p = function (cause) {
|
|
776
|
+
if (!(this.k1n_1.kotlinx$atomicfu$value == null))
|
|
775
777
|
return Unit_instance;
|
|
776
778
|
var closedToken = new CloseToken(cause);
|
|
777
|
-
this.
|
|
779
|
+
this.k1n_1.atomicfu$compareAndSet(null, closedToken);
|
|
778
780
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
779
781
|
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
780
782
|
var tmp;
|
|
@@ -782,7 +784,7 @@
|
|
|
782
784
|
tmp = null;
|
|
783
785
|
} else {
|
|
784
786
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
785
|
-
tmp = access$_get_origin__hdh1qz(closedToken).
|
|
787
|
+
tmp = access$_get_origin__hdh1qz(closedToken).n12();
|
|
786
788
|
} else {
|
|
787
789
|
if (tmp0_subject instanceof CancellationException) {
|
|
788
790
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
@@ -795,8 +797,8 @@
|
|
|
795
797
|
var wrappedCause = tmp;
|
|
796
798
|
closeSlot(this, wrappedCause);
|
|
797
799
|
};
|
|
798
|
-
protoOf(ByteChannel).
|
|
799
|
-
var existingCause = this.
|
|
800
|
+
protoOf(ByteChannel).g1p = function (handler) {
|
|
801
|
+
var existingCause = this.k1n_1.kotlinx$atomicfu$value;
|
|
800
802
|
if (!(existingCause == null)) {
|
|
801
803
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
802
804
|
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
@@ -805,7 +807,7 @@
|
|
|
805
807
|
tmp = null;
|
|
806
808
|
} else {
|
|
807
809
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
808
|
-
tmp = access$_get_origin__hdh1qz(existingCause).
|
|
810
|
+
tmp = access$_get_origin__hdh1qz(existingCause).n12();
|
|
809
811
|
} else {
|
|
810
812
|
if (tmp0_subject instanceof CancellationException) {
|
|
811
813
|
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
@@ -819,13 +821,13 @@
|
|
|
819
821
|
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
820
822
|
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
821
823
|
}
|
|
822
|
-
if (!this.
|
|
824
|
+
if (!this.l1n_1.atomicfu$compareAndSet(null, handler)) {
|
|
823
825
|
// Inline function 'kotlin.error' call
|
|
824
826
|
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
825
827
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
826
828
|
}
|
|
827
|
-
var cause = this.
|
|
828
|
-
if (!(cause == null) && this.
|
|
829
|
+
var cause = this.k1n_1.kotlinx$atomicfu$value;
|
|
830
|
+
if (!(cause == null) && this.l1n_1.atomicfu$compareAndSet(handler, null)) {
|
|
829
831
|
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
830
832
|
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
831
833
|
var tmp_1;
|
|
@@ -833,7 +835,7 @@
|
|
|
833
835
|
tmp_1 = null;
|
|
834
836
|
} else {
|
|
835
837
|
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
836
|
-
tmp_1 = access$_get_origin__hdh1qz(cause).
|
|
838
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).n12();
|
|
837
839
|
} else {
|
|
838
840
|
if (tmp0_subject_0 instanceof CancellationException) {
|
|
839
841
|
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
@@ -863,7 +865,7 @@
|
|
|
863
865
|
length = length === VOID ? content.length : length;
|
|
864
866
|
// Inline function 'kotlin.also' call
|
|
865
867
|
var this_0 = new Buffer();
|
|
866
|
-
this_0.
|
|
868
|
+
this_0.sr(content, offset, offset + length | 0);
|
|
867
869
|
var source = this_0;
|
|
868
870
|
return ByteReadChannel_0(source);
|
|
869
871
|
}
|
|
@@ -871,18 +873,18 @@
|
|
|
871
873
|
return new SourceByteReadChannel(source);
|
|
872
874
|
}
|
|
873
875
|
function buildPartialMatchTable($this) {
|
|
874
|
-
var table = new Int32Array($this.
|
|
876
|
+
var table = new Int32Array($this.i1p_1.l1());
|
|
875
877
|
var j = 0;
|
|
876
878
|
var inductionVariable = 1;
|
|
877
|
-
var last = $this.
|
|
879
|
+
var last = $this.i1p_1.l1();
|
|
878
880
|
if (inductionVariable < last)
|
|
879
881
|
do {
|
|
880
882
|
var i = inductionVariable;
|
|
881
883
|
inductionVariable = inductionVariable + 1 | 0;
|
|
882
|
-
while (j > 0 && !($this.
|
|
884
|
+
while (j > 0 && !($this.i1p_1.m1(i) === $this.i1p_1.m1(j))) {
|
|
883
885
|
j = table[j - 1 | 0];
|
|
884
886
|
}
|
|
885
|
-
if ($this.
|
|
887
|
+
if ($this.i1p_1.m1(i) === $this.i1p_1.m1(j)) {
|
|
886
888
|
j = j + 1 | 0;
|
|
887
889
|
}
|
|
888
890
|
table[i] = j;
|
|
@@ -903,8 +905,8 @@
|
|
|
903
905
|
return tmp.l9();
|
|
904
906
|
}
|
|
905
907
|
function checkBounds($this, extra) {
|
|
906
|
-
if (add($this.
|
|
907
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
908
|
+
if (add($this.o1p_1, extra) > $this.k1p_1) {
|
|
909
|
+
throw IOException_init_$Create$('Limit of ' + $this.k1p_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.i1p_1) + '"'));
|
|
908
910
|
}
|
|
909
911
|
}
|
|
910
912
|
function toSingleLineString($this, $receiver) {
|
|
@@ -912,8 +914,8 @@
|
|
|
912
914
|
}
|
|
913
915
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
914
916
|
CoroutineImpl.call(this, resultContinuation);
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
917
|
+
this.t1q_1 = _this__u8e3s4;
|
|
918
|
+
this.u1q_1 = ignoreMissing;
|
|
917
919
|
}
|
|
918
920
|
protoOf($findNextCOROUTINE$).l9 = function () {
|
|
919
921
|
var suspendResult = this.f9_1;
|
|
@@ -923,17 +925,17 @@
|
|
|
923
925
|
switch (tmp) {
|
|
924
926
|
case 0:
|
|
925
927
|
this.e9_1 = 9;
|
|
926
|
-
this.
|
|
928
|
+
this.t1q_1.o1p_1 = 0n;
|
|
927
929
|
this.d9_1 = 1;
|
|
928
930
|
continue $sm;
|
|
929
931
|
case 1:
|
|
930
|
-
if (!this.
|
|
931
|
-
this.
|
|
932
|
+
if (!this.t1q_1.l1p_1.jq()) {
|
|
933
|
+
this.v1q_1 = true;
|
|
932
934
|
this.d9_1 = 3;
|
|
933
935
|
continue $sm;
|
|
934
936
|
} else {
|
|
935
937
|
this.d9_1 = 2;
|
|
936
|
-
suspendResult = this.
|
|
938
|
+
suspendResult = this.t1q_1.h1p_1.d1p(VOID, this);
|
|
937
939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
938
940
|
return suspendResult;
|
|
939
941
|
}
|
|
@@ -941,17 +943,17 @@
|
|
|
941
943
|
}
|
|
942
944
|
|
|
943
945
|
case 2:
|
|
944
|
-
this.
|
|
946
|
+
this.v1q_1 = suspendResult;
|
|
945
947
|
this.d9_1 = 3;
|
|
946
948
|
continue $sm;
|
|
947
949
|
case 3:
|
|
948
|
-
if (!this.
|
|
950
|
+
if (!this.v1q_1) {
|
|
949
951
|
this.d9_1 = 7;
|
|
950
952
|
continue $sm;
|
|
951
953
|
}
|
|
952
954
|
|
|
953
955
|
this.d9_1 = 4;
|
|
954
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
956
|
+
suspendResult = advanceToNextPotentialMatch(this.t1q_1, this);
|
|
955
957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
956
958
|
return suspendResult;
|
|
957
959
|
}
|
|
@@ -959,7 +961,7 @@
|
|
|
959
961
|
continue $sm;
|
|
960
962
|
case 4:
|
|
961
963
|
this.d9_1 = 5;
|
|
962
|
-
suspendResult = checkFullMatch(this.
|
|
964
|
+
suspendResult = checkFullMatch(this.t1q_1, this);
|
|
963
965
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
964
966
|
return suspendResult;
|
|
965
967
|
}
|
|
@@ -967,7 +969,7 @@
|
|
|
967
969
|
continue $sm;
|
|
968
970
|
case 5:
|
|
969
971
|
if (suspendResult) {
|
|
970
|
-
return this.
|
|
972
|
+
return this.t1q_1.o1p_1;
|
|
971
973
|
} else {
|
|
972
974
|
this.d9_1 = 6;
|
|
973
975
|
continue $sm;
|
|
@@ -977,20 +979,20 @@
|
|
|
977
979
|
this.d9_1 = 1;
|
|
978
980
|
continue $sm;
|
|
979
981
|
case 7:
|
|
980
|
-
if (!this.
|
|
981
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
982
|
+
if (!this.u1q_1) {
|
|
983
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.t1q_1, this.t1q_1.i1p_1) + '" but encountered end of input');
|
|
982
984
|
}
|
|
983
985
|
|
|
984
|
-
this.
|
|
986
|
+
this.t1q_1.o1p_1 = add(this.t1q_1.o1p_1, this.t1q_1.n1p_1.mr(this.t1q_1.j1p_1.y1o()));
|
|
985
987
|
this.d9_1 = 8;
|
|
986
|
-
suspendResult = this.
|
|
988
|
+
suspendResult = this.t1q_1.j1p_1.v1o(this);
|
|
987
989
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
988
990
|
return suspendResult;
|
|
989
991
|
}
|
|
990
992
|
|
|
991
993
|
continue $sm;
|
|
992
994
|
case 8:
|
|
993
|
-
return this.
|
|
995
|
+
return this.t1q_1.o1p_1;
|
|
994
996
|
case 9:
|
|
995
997
|
throw this.g9_1;
|
|
996
998
|
}
|
|
@@ -1007,7 +1009,7 @@
|
|
|
1007
1009
|
};
|
|
1008
1010
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1009
1011
|
CoroutineImpl.call(this, resultContinuation);
|
|
1010
|
-
this.
|
|
1012
|
+
this.y1p_1 = _this__u8e3s4;
|
|
1011
1013
|
}
|
|
1012
1014
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).l9 = function () {
|
|
1013
1015
|
var suspendResult = this.f9_1;
|
|
@@ -1020,13 +1022,13 @@
|
|
|
1020
1022
|
this.d9_1 = 1;
|
|
1021
1023
|
continue $sm;
|
|
1022
1024
|
case 1:
|
|
1023
|
-
if (!this.
|
|
1024
|
-
this.
|
|
1025
|
+
if (!this.y1p_1.l1p_1.jq()) {
|
|
1026
|
+
this.z1p_1 = true;
|
|
1025
1027
|
this.d9_1 = 3;
|
|
1026
1028
|
continue $sm;
|
|
1027
1029
|
} else {
|
|
1028
1030
|
this.d9_1 = 2;
|
|
1029
|
-
suspendResult = this.
|
|
1031
|
+
suspendResult = this.y1p_1.h1p_1.d1p(VOID, this);
|
|
1030
1032
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1031
1033
|
return suspendResult;
|
|
1032
1034
|
}
|
|
@@ -1034,34 +1036,34 @@
|
|
|
1034
1036
|
}
|
|
1035
1037
|
|
|
1036
1038
|
case 2:
|
|
1037
|
-
this.
|
|
1039
|
+
this.z1p_1 = suspendResult;
|
|
1038
1040
|
this.d9_1 = 3;
|
|
1039
1041
|
continue $sm;
|
|
1040
1042
|
case 3:
|
|
1041
|
-
if (!this.
|
|
1043
|
+
if (!this.z1p_1) {
|
|
1042
1044
|
this.d9_1 = 7;
|
|
1043
1045
|
continue $sm;
|
|
1044
1046
|
}
|
|
1045
1047
|
|
|
1046
|
-
var nextMatch = indexOf(this.
|
|
1048
|
+
var nextMatch = indexOf(this.y1p_1.l1p_1, this.y1p_1.i1p_1.m1(0));
|
|
1047
1049
|
if (nextMatch === -1n) {
|
|
1048
|
-
var tmp_0 = this.
|
|
1049
|
-
checkBounds(this.
|
|
1050
|
-
this.
|
|
1050
|
+
var tmp_0 = this.y1p_1.l1p_1;
|
|
1051
|
+
checkBounds(this.y1p_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
1052
|
+
this.y1p_1.o1p_1 = add(this.y1p_1.o1p_1, this.y1p_1.l1p_1.mr(this.y1p_1.j1p_1.y1o()));
|
|
1051
1053
|
this.d9_1 = 5;
|
|
1052
|
-
suspendResult = flushIfNeeded(this.
|
|
1054
|
+
suspendResult = flushIfNeeded(this.y1p_1.j1p_1, this);
|
|
1053
1055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1054
1056
|
return suspendResult;
|
|
1055
1057
|
}
|
|
1056
1058
|
continue $sm;
|
|
1057
1059
|
} else {
|
|
1058
|
-
checkBounds(this.
|
|
1059
|
-
var tmp_1 = this.
|
|
1060
|
-
var tmp_2 = this.
|
|
1061
|
-
var tmp_3 = this.
|
|
1062
|
-
tmp_1.
|
|
1060
|
+
checkBounds(this.y1p_1, nextMatch);
|
|
1061
|
+
var tmp_1 = this.y1p_1;
|
|
1062
|
+
var tmp_2 = this.y1p_1.o1p_1;
|
|
1063
|
+
var tmp_3 = this.y1p_1.j1p_1.y1o();
|
|
1064
|
+
tmp_1.o1p_1 = add(tmp_2, this.y1p_1.l1p_1.jr(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1063
1065
|
this.d9_1 = 4;
|
|
1064
|
-
suspendResult = flushIfNeeded(this.
|
|
1066
|
+
suspendResult = flushIfNeeded(this.y1p_1.j1p_1, this);
|
|
1065
1067
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1066
1068
|
return suspendResult;
|
|
1067
1069
|
}
|
|
@@ -1094,7 +1096,7 @@
|
|
|
1094
1096
|
};
|
|
1095
1097
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1096
1098
|
CoroutineImpl.call(this, resultContinuation);
|
|
1097
|
-
this.
|
|
1099
|
+
this.i1q_1 = _this__u8e3s4;
|
|
1098
1100
|
}
|
|
1099
1101
|
protoOf($checkFullMatchCOROUTINE$).l9 = function () {
|
|
1100
1102
|
var suspendResult = this.f9_1;
|
|
@@ -1107,13 +1109,13 @@
|
|
|
1107
1109
|
this.d9_1 = 1;
|
|
1108
1110
|
continue $sm;
|
|
1109
1111
|
case 1:
|
|
1110
|
-
if (!this.
|
|
1111
|
-
this.
|
|
1112
|
+
if (!this.i1q_1.l1p_1.jq()) {
|
|
1113
|
+
this.k1q_1 = true;
|
|
1112
1114
|
this.d9_1 = 3;
|
|
1113
1115
|
continue $sm;
|
|
1114
1116
|
} else {
|
|
1115
1117
|
this.d9_1 = 2;
|
|
1116
|
-
suspendResult = this.
|
|
1118
|
+
suspendResult = this.i1q_1.h1p_1.d1p(VOID, this);
|
|
1117
1119
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1118
1120
|
return suspendResult;
|
|
1119
1121
|
}
|
|
@@ -1121,30 +1123,30 @@
|
|
|
1121
1123
|
}
|
|
1122
1124
|
|
|
1123
1125
|
case 2:
|
|
1124
|
-
this.
|
|
1126
|
+
this.k1q_1 = suspendResult;
|
|
1125
1127
|
this.d9_1 = 3;
|
|
1126
1128
|
continue $sm;
|
|
1127
1129
|
case 3:
|
|
1128
|
-
if (!this.
|
|
1130
|
+
if (!this.k1q_1) {
|
|
1129
1131
|
this.d9_1 = 7;
|
|
1130
1132
|
continue $sm;
|
|
1131
1133
|
}
|
|
1132
1134
|
|
|
1133
|
-
this.
|
|
1134
|
-
if (this.
|
|
1135
|
-
var oldMatchIndex = this.
|
|
1136
|
-
while (this.
|
|
1137
|
-
this.
|
|
1135
|
+
this.j1q_1 = this.i1q_1.l1p_1.mq();
|
|
1136
|
+
if (this.i1q_1.p1p_1 > 0 && !(this.j1q_1 === this.i1q_1.i1p_1.m1(this.i1q_1.p1p_1))) {
|
|
1137
|
+
var oldMatchIndex = this.i1q_1.p1p_1;
|
|
1138
|
+
while (this.i1q_1.p1p_1 > 0 && !(this.j1q_1 === this.i1q_1.i1p_1.m1(this.i1q_1.p1p_1))) {
|
|
1139
|
+
this.i1q_1.p1p_1 = this.i1q_1.m1p_1[this.i1q_1.p1p_1 - 1 | 0];
|
|
1138
1140
|
}
|
|
1139
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
1140
|
-
checkBounds(this.
|
|
1141
|
-
var tmp_0 = this.
|
|
1142
|
-
var tmp_1 = this.
|
|
1143
|
-
var tmp_2 = this.
|
|
1144
|
-
tmp_0.
|
|
1145
|
-
if (this.
|
|
1141
|
+
var retained = fromInt(oldMatchIndex - this.i1q_1.p1p_1 | 0);
|
|
1142
|
+
checkBounds(this.i1q_1, retained);
|
|
1143
|
+
var tmp_0 = this.i1q_1;
|
|
1144
|
+
var tmp_1 = this.i1q_1.o1p_1;
|
|
1145
|
+
var tmp_2 = this.i1q_1.j1p_1.y1o();
|
|
1146
|
+
tmp_0.o1p_1 = add(tmp_1, this.i1q_1.n1p_1.jr(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1147
|
+
if (this.i1q_1.p1p_1 === 0 && !(this.j1q_1 === this.i1q_1.i1p_1.m1(this.i1q_1.p1p_1))) {
|
|
1146
1148
|
this.d9_1 = 6;
|
|
1147
|
-
suspendResult = writeByte(this.
|
|
1149
|
+
suspendResult = writeByte(this.i1q_1.j1p_1, this.j1q_1, this);
|
|
1148
1150
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1149
1151
|
return suspendResult;
|
|
1150
1152
|
}
|
|
@@ -1162,17 +1164,17 @@
|
|
|
1162
1164
|
this.d9_1 = 5;
|
|
1163
1165
|
continue $sm;
|
|
1164
1166
|
case 5:
|
|
1165
|
-
this.
|
|
1166
|
-
if (this.
|
|
1167
|
+
this.i1q_1.p1p_1 = this.i1q_1.p1p_1 + 1 | 0;
|
|
1168
|
+
if (this.i1q_1.p1p_1 === this.i1q_1.i1p_1.l1()) {
|
|
1167
1169
|
return true;
|
|
1168
1170
|
}
|
|
1169
1171
|
|
|
1170
|
-
this.
|
|
1172
|
+
this.i1q_1.n1p_1.cs(this.j1q_1);
|
|
1171
1173
|
this.d9_1 = 1;
|
|
1172
1174
|
continue $sm;
|
|
1173
1175
|
case 6:
|
|
1174
|
-
var _unary__edvuaz = this.
|
|
1175
|
-
this.
|
|
1176
|
+
var _unary__edvuaz = this.i1q_1.o1p_1;
|
|
1177
|
+
this.i1q_1.o1p_1 = add(_unary__edvuaz, get_ONE());
|
|
1176
1178
|
return false;
|
|
1177
1179
|
case 7:
|
|
1178
1180
|
return false;
|
|
@@ -1192,68 +1194,68 @@
|
|
|
1192
1194
|
};
|
|
1193
1195
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1194
1196
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1195
|
-
this.
|
|
1196
|
-
this.
|
|
1197
|
-
this.
|
|
1198
|
-
this.
|
|
1197
|
+
this.h1p_1 = channel;
|
|
1198
|
+
this.i1p_1 = matchString;
|
|
1199
|
+
this.j1p_1 = writeChannel;
|
|
1200
|
+
this.k1p_1 = limit;
|
|
1199
1201
|
// Inline function 'kotlin.require' call
|
|
1200
|
-
if (!(this.
|
|
1202
|
+
if (!(this.i1p_1.l1() > 0)) {
|
|
1201
1203
|
var message = 'Empty match string not permitted for scanning';
|
|
1202
1204
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1203
1205
|
}
|
|
1204
|
-
this.
|
|
1205
|
-
this.
|
|
1206
|
-
this.
|
|
1207
|
-
this.
|
|
1208
|
-
this.
|
|
1206
|
+
this.l1p_1 = this.h1p_1.x1o();
|
|
1207
|
+
this.m1p_1 = buildPartialMatchTable(this);
|
|
1208
|
+
this.n1p_1 = new Buffer();
|
|
1209
|
+
this.o1p_1 = 0n;
|
|
1210
|
+
this.p1p_1 = 0;
|
|
1209
1211
|
}
|
|
1210
|
-
protoOf(ByteChannelScanner).
|
|
1212
|
+
protoOf(ByteChannelScanner).w1q = function (ignoreMissing, $completion) {
|
|
1211
1213
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1212
1214
|
tmp.f9_1 = Unit_instance;
|
|
1213
1215
|
tmp.g9_1 = null;
|
|
1214
1216
|
return tmp.l9();
|
|
1215
1217
|
};
|
|
1216
1218
|
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1217
|
-
var tmp = writerJob.
|
|
1219
|
+
var tmp = writerJob.x1q_1;
|
|
1218
1220
|
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1219
1221
|
if (tmp0_safe_receiver == null)
|
|
1220
1222
|
null;
|
|
1221
1223
|
else {
|
|
1222
|
-
tmp0_safe_receiver.
|
|
1224
|
+
tmp0_safe_receiver.g1p(attachWriterJob$lambda(_this__u8e3s4));
|
|
1223
1225
|
}
|
|
1224
1226
|
}
|
|
1225
1227
|
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1226
1228
|
return function (cause) {
|
|
1227
1229
|
var tmp;
|
|
1228
1230
|
if (!(cause == null)) {
|
|
1229
|
-
$this_attachWriterJob.
|
|
1231
|
+
$this_attachWriterJob.f1p(cause);
|
|
1230
1232
|
tmp = Unit_instance;
|
|
1231
1233
|
}
|
|
1232
1234
|
return Unit_instance;
|
|
1233
1235
|
};
|
|
1234
1236
|
}
|
|
1235
1237
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1236
|
-
this.
|
|
1237
|
-
this.
|
|
1238
|
+
this.z1q_1 = null;
|
|
1239
|
+
this.a1r_1 = new Buffer();
|
|
1238
1240
|
}
|
|
1239
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1240
|
-
return this.
|
|
1241
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1p = function () {
|
|
1242
|
+
return this.z1q_1;
|
|
1241
1243
|
};
|
|
1242
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1244
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1p = function () {
|
|
1243
1245
|
return true;
|
|
1244
1246
|
};
|
|
1245
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1246
|
-
return this.
|
|
1247
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1o = function () {
|
|
1248
|
+
return this.a1r_1;
|
|
1247
1249
|
};
|
|
1248
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1250
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1p = function (min, $completion) {
|
|
1249
1251
|
return false;
|
|
1250
1252
|
};
|
|
1251
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1253
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f1p = function (cause) {
|
|
1252
1254
|
};
|
|
1253
1255
|
function Companion_0() {
|
|
1254
1256
|
Companion_instance_1 = this;
|
|
1255
1257
|
var tmp = this;
|
|
1256
|
-
tmp.
|
|
1258
|
+
tmp.b1r_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1257
1259
|
}
|
|
1258
1260
|
var Companion_instance_1;
|
|
1259
1261
|
function Companion_getInstance_0() {
|
|
@@ -1264,7 +1266,7 @@
|
|
|
1264
1266
|
function ByteReadChannel_1() {
|
|
1265
1267
|
}
|
|
1266
1268
|
function cancel_0(_this__u8e3s4) {
|
|
1267
|
-
_this__u8e3s4.
|
|
1269
|
+
_this__u8e3s4.f1p(IOException_init_$Create$('Channel was cancelled'));
|
|
1268
1270
|
}
|
|
1269
1271
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1270
1272
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1299,7 +1301,7 @@
|
|
|
1299
1301
|
return tmp.l9();
|
|
1300
1302
|
}
|
|
1301
1303
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1302
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1304
|
+
var tmp0_safe_receiver = _this__u8e3s4.a1p();
|
|
1303
1305
|
if (tmp0_safe_receiver == null)
|
|
1304
1306
|
null;
|
|
1305
1307
|
else {
|
|
@@ -1329,7 +1331,7 @@
|
|
|
1329
1331
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1330
1332
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1331
1333
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1332
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1334
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).w1q(ignoreMissing, $completion);
|
|
1333
1335
|
}
|
|
1334
1336
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1335
1337
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1348,7 +1350,7 @@
|
|
|
1348
1350
|
return tmp.l9();
|
|
1349
1351
|
}
|
|
1350
1352
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1351
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1353
|
+
var tmp0_safe_receiver = _this__u8e3s4.a1p();
|
|
1352
1354
|
if (tmp0_safe_receiver == null)
|
|
1353
1355
|
null;
|
|
1354
1356
|
else {
|
|
@@ -1357,7 +1359,7 @@
|
|
|
1357
1359
|
}
|
|
1358
1360
|
}
|
|
1359
1361
|
function get_availableForRead(_this__u8e3s4) {
|
|
1360
|
-
return convertToInt(_this__u8e3s4.
|
|
1362
|
+
return convertToInt(_this__u8e3s4.x1o().iq().l1());
|
|
1361
1363
|
}
|
|
1362
1364
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1363
1365
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1378,7 +1380,7 @@
|
|
|
1378
1380
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1379
1381
|
}
|
|
1380
1382
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1381
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1383
|
+
var tmp0_safe_receiver = _this__u8e3s4.a1p();
|
|
1382
1384
|
if (tmp0_safe_receiver == null)
|
|
1383
1385
|
null;
|
|
1384
1386
|
else {
|
|
@@ -1423,7 +1425,7 @@
|
|
|
1423
1425
|
}
|
|
1424
1426
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1425
1427
|
CoroutineImpl.call(this, resultContinuation);
|
|
1426
|
-
this.
|
|
1428
|
+
this.k1r_1 = _this__u8e3s4;
|
|
1427
1429
|
}
|
|
1428
1430
|
protoOf($readBufferCOROUTINE$).l9 = function () {
|
|
1429
1431
|
var suspendResult = this.f9_1;
|
|
@@ -1433,18 +1435,18 @@
|
|
|
1433
1435
|
switch (tmp) {
|
|
1434
1436
|
case 0:
|
|
1435
1437
|
this.e9_1 = 4;
|
|
1436
|
-
this.
|
|
1438
|
+
this.l1r_1 = new Buffer();
|
|
1437
1439
|
this.d9_1 = 1;
|
|
1438
1440
|
continue $sm;
|
|
1439
1441
|
case 1:
|
|
1440
|
-
if (!!this.
|
|
1442
|
+
if (!!this.k1r_1.b1p()) {
|
|
1441
1443
|
this.d9_1 = 3;
|
|
1442
1444
|
continue $sm;
|
|
1443
1445
|
}
|
|
1444
1446
|
|
|
1445
|
-
this.
|
|
1447
|
+
this.l1r_1.bs(this.k1r_1.x1o());
|
|
1446
1448
|
this.d9_1 = 2;
|
|
1447
|
-
suspendResult = this.
|
|
1449
|
+
suspendResult = this.k1r_1.d1p(VOID, this);
|
|
1448
1450
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1449
1451
|
return suspendResult;
|
|
1450
1452
|
}
|
|
@@ -1454,14 +1456,14 @@
|
|
|
1454
1456
|
this.d9_1 = 1;
|
|
1455
1457
|
continue $sm;
|
|
1456
1458
|
case 3:
|
|
1457
|
-
var tmp0_safe_receiver = this.
|
|
1459
|
+
var tmp0_safe_receiver = this.k1r_1.a1p();
|
|
1458
1460
|
if (tmp0_safe_receiver == null)
|
|
1459
1461
|
null;
|
|
1460
1462
|
else {
|
|
1461
1463
|
throw tmp0_safe_receiver;
|
|
1462
1464
|
}
|
|
1463
1465
|
|
|
1464
|
-
return this.
|
|
1466
|
+
return this.l1r_1;
|
|
1465
1467
|
case 4:
|
|
1466
1468
|
throw this.g9_1;
|
|
1467
1469
|
}
|
|
@@ -1478,10 +1480,10 @@
|
|
|
1478
1480
|
};
|
|
1479
1481
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1480
1482
|
CoroutineImpl.call(this, resultContinuation);
|
|
1481
|
-
this.
|
|
1482
|
-
this.
|
|
1483
|
-
this.
|
|
1484
|
-
this.
|
|
1483
|
+
this.u1r_1 = _this__u8e3s4;
|
|
1484
|
+
this.v1r_1 = buffer;
|
|
1485
|
+
this.w1r_1 = offset;
|
|
1486
|
+
this.x1r_1 = length;
|
|
1485
1487
|
}
|
|
1486
1488
|
protoOf($readAvailableCOROUTINE$).l9 = function () {
|
|
1487
1489
|
var suspendResult = this.f9_1;
|
|
@@ -1491,11 +1493,11 @@
|
|
|
1491
1493
|
switch (tmp) {
|
|
1492
1494
|
case 0:
|
|
1493
1495
|
this.e9_1 = 3;
|
|
1494
|
-
if (this.
|
|
1496
|
+
if (this.u1r_1.b1p())
|
|
1495
1497
|
return -1;
|
|
1496
|
-
if (this.
|
|
1498
|
+
if (this.u1r_1.x1o().jq()) {
|
|
1497
1499
|
this.d9_1 = 1;
|
|
1498
|
-
suspendResult = this.
|
|
1500
|
+
suspendResult = this.u1r_1.d1p(VOID, this);
|
|
1499
1501
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1500
1502
|
return suspendResult;
|
|
1501
1503
|
}
|
|
@@ -1509,9 +1511,9 @@
|
|
|
1509
1511
|
this.d9_1 = 2;
|
|
1510
1512
|
continue $sm;
|
|
1511
1513
|
case 2:
|
|
1512
|
-
if (this.
|
|
1514
|
+
if (this.u1r_1.b1p())
|
|
1513
1515
|
return -1;
|
|
1514
|
-
return readAvailable_0(this.
|
|
1516
|
+
return readAvailable_0(this.u1r_1.x1o(), this.v1r_1, this.w1r_1, this.x1r_1);
|
|
1515
1517
|
case 3:
|
|
1516
1518
|
throw this.g9_1;
|
|
1517
1519
|
}
|
|
@@ -1528,7 +1530,7 @@
|
|
|
1528
1530
|
};
|
|
1529
1531
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1530
1532
|
CoroutineImpl.call(this, resultContinuation);
|
|
1531
|
-
this.
|
|
1533
|
+
this.g1s_1 = _this__u8e3s4;
|
|
1532
1534
|
}
|
|
1533
1535
|
protoOf($readRemainingCOROUTINE$).l9 = function () {
|
|
1534
1536
|
var suspendResult = this.f9_1;
|
|
@@ -1538,18 +1540,18 @@
|
|
|
1538
1540
|
switch (tmp) {
|
|
1539
1541
|
case 0:
|
|
1540
1542
|
this.e9_1 = 4;
|
|
1541
|
-
this.
|
|
1543
|
+
this.h1s_1 = BytePacketBuilder();
|
|
1542
1544
|
this.d9_1 = 1;
|
|
1543
1545
|
continue $sm;
|
|
1544
1546
|
case 1:
|
|
1545
|
-
if (!!this.
|
|
1547
|
+
if (!!this.g1s_1.b1p()) {
|
|
1546
1548
|
this.d9_1 = 3;
|
|
1547
1549
|
continue $sm;
|
|
1548
1550
|
}
|
|
1549
1551
|
|
|
1550
|
-
this.
|
|
1552
|
+
this.h1s_1.bs(this.g1s_1.x1o());
|
|
1551
1553
|
this.d9_1 = 2;
|
|
1552
|
-
suspendResult = this.
|
|
1554
|
+
suspendResult = this.g1s_1.d1p(VOID, this);
|
|
1553
1555
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1554
1556
|
return suspendResult;
|
|
1555
1557
|
}
|
|
@@ -1559,8 +1561,8 @@
|
|
|
1559
1561
|
this.d9_1 = 1;
|
|
1560
1562
|
continue $sm;
|
|
1561
1563
|
case 3:
|
|
1562
|
-
rethrowCloseCauseIfNeeded(this.
|
|
1563
|
-
return this.
|
|
1564
|
+
rethrowCloseCauseIfNeeded(this.g1s_1);
|
|
1565
|
+
return this.h1s_1.iq();
|
|
1564
1566
|
case 4:
|
|
1565
1567
|
throw this.g9_1;
|
|
1566
1568
|
}
|
|
@@ -1577,7 +1579,7 @@
|
|
|
1577
1579
|
};
|
|
1578
1580
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1579
1581
|
CoroutineImpl.call(this, resultContinuation);
|
|
1580
|
-
this.
|
|
1582
|
+
this.q1s_1 = _this__u8e3s4;
|
|
1581
1583
|
}
|
|
1582
1584
|
protoOf($toByteArrayCOROUTINE$).l9 = function () {
|
|
1583
1585
|
var suspendResult = this.f9_1;
|
|
@@ -1588,7 +1590,7 @@
|
|
|
1588
1590
|
case 0:
|
|
1589
1591
|
this.e9_1 = 2;
|
|
1590
1592
|
this.d9_1 = 1;
|
|
1591
|
-
suspendResult = readBuffer(this.
|
|
1593
|
+
suspendResult = readBuffer(this.q1s_1, this);
|
|
1592
1594
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1593
1595
|
return suspendResult;
|
|
1594
1596
|
}
|
|
@@ -1613,9 +1615,9 @@
|
|
|
1613
1615
|
};
|
|
1614
1616
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1615
1617
|
CoroutineImpl.call(this, resultContinuation);
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1618
|
+
this.z1s_1 = _this__u8e3s4;
|
|
1619
|
+
this.a1t_1 = channel;
|
|
1620
|
+
this.b1t_1 = limit;
|
|
1619
1621
|
}
|
|
1620
1622
|
protoOf($copyToCOROUTINE$).l9 = function () {
|
|
1621
1623
|
var suspendResult = this.f9_1;
|
|
@@ -1625,7 +1627,7 @@
|
|
|
1625
1627
|
switch (tmp) {
|
|
1626
1628
|
case 0:
|
|
1627
1629
|
this.e9_1 = 12;
|
|
1628
|
-
this.
|
|
1630
|
+
this.c1t_1 = this.b1t_1;
|
|
1629
1631
|
this.d9_1 = 1;
|
|
1630
1632
|
continue $sm;
|
|
1631
1633
|
case 1:
|
|
@@ -1634,14 +1636,14 @@
|
|
|
1634
1636
|
this.d9_1 = 2;
|
|
1635
1637
|
continue $sm;
|
|
1636
1638
|
case 2:
|
|
1637
|
-
if (!(!this.
|
|
1639
|
+
if (!(!this.z1s_1.b1p() && this.c1t_1 > 0n)) {
|
|
1638
1640
|
this.d9_1 = 6;
|
|
1639
1641
|
continue $sm;
|
|
1640
1642
|
}
|
|
1641
1643
|
|
|
1642
|
-
if (this.
|
|
1644
|
+
if (this.z1s_1.x1o().jq()) {
|
|
1643
1645
|
this.d9_1 = 3;
|
|
1644
|
-
suspendResult = this.
|
|
1646
|
+
suspendResult = this.z1s_1.d1p(VOID, this);
|
|
1645
1647
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1646
1648
|
return suspendResult;
|
|
1647
1649
|
}
|
|
@@ -1655,13 +1657,13 @@
|
|
|
1655
1657
|
this.d9_1 = 4;
|
|
1656
1658
|
continue $sm;
|
|
1657
1659
|
case 4:
|
|
1658
|
-
var tmp0 = this.
|
|
1659
|
-
var b = get_remaining(this.
|
|
1660
|
+
var tmp0 = this.c1t_1;
|
|
1661
|
+
var b = get_remaining(this.z1s_1.x1o());
|
|
1660
1662
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
+
this.z1s_1.x1o().lr(this.a1t_1.y1o(), count);
|
|
1664
|
+
this.c1t_1 = subtract(this.c1t_1, count);
|
|
1663
1665
|
this.d9_1 = 5;
|
|
1664
|
-
suspendResult = this.
|
|
1666
|
+
suspendResult = this.a1t_1.v1o(this);
|
|
1665
1667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1666
1668
|
return suspendResult;
|
|
1667
1669
|
}
|
|
@@ -1679,8 +1681,8 @@
|
|
|
1679
1681
|
var tmp_0 = this.g9_1;
|
|
1680
1682
|
if (tmp_0 instanceof Error) {
|
|
1681
1683
|
var cause = this.g9_1;
|
|
1682
|
-
this.
|
|
1683
|
-
close_0(this.
|
|
1684
|
+
this.z1s_1.f1p(cause);
|
|
1685
|
+
close_0(this.a1t_1, cause);
|
|
1684
1686
|
throw cause;
|
|
1685
1687
|
} else {
|
|
1686
1688
|
throw this.g9_1;
|
|
@@ -1688,27 +1690,27 @@
|
|
|
1688
1690
|
|
|
1689
1691
|
case 8:
|
|
1690
1692
|
this.e9_1 = 12;
|
|
1691
|
-
this.
|
|
1693
|
+
this.d1t_1 = this.g9_1;
|
|
1692
1694
|
this.d9_1 = 9;
|
|
1693
|
-
suspendResult = this.
|
|
1695
|
+
suspendResult = this.a1t_1.v1o(this);
|
|
1694
1696
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1695
1697
|
return suspendResult;
|
|
1696
1698
|
}
|
|
1697
1699
|
|
|
1698
1700
|
continue $sm;
|
|
1699
1701
|
case 9:
|
|
1700
|
-
throw this.
|
|
1702
|
+
throw this.d1t_1;
|
|
1701
1703
|
case 10:
|
|
1702
1704
|
this.e9_1 = 12;
|
|
1703
1705
|
this.d9_1 = 11;
|
|
1704
|
-
suspendResult = this.
|
|
1706
|
+
suspendResult = this.a1t_1.v1o(this);
|
|
1705
1707
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1706
1708
|
return suspendResult;
|
|
1707
1709
|
}
|
|
1708
1710
|
|
|
1709
1711
|
continue $sm;
|
|
1710
1712
|
case 11:
|
|
1711
|
-
return subtract(this.
|
|
1713
|
+
return subtract(this.b1t_1, this.c1t_1);
|
|
1712
1714
|
case 12:
|
|
1713
1715
|
throw this.g9_1;
|
|
1714
1716
|
}
|
|
@@ -1725,8 +1727,8 @@
|
|
|
1725
1727
|
};
|
|
1726
1728
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1727
1729
|
CoroutineImpl.call(this, resultContinuation);
|
|
1728
|
-
this.
|
|
1729
|
-
this.
|
|
1730
|
+
this.m1t_1 = _this__u8e3s4;
|
|
1731
|
+
this.n1t_1 = max;
|
|
1730
1732
|
}
|
|
1731
1733
|
protoOf($discardCOROUTINE$).l9 = function () {
|
|
1732
1734
|
var suspendResult = this.f9_1;
|
|
@@ -1736,18 +1738,18 @@
|
|
|
1736
1738
|
switch (tmp) {
|
|
1737
1739
|
case 0:
|
|
1738
1740
|
this.e9_1 = 5;
|
|
1739
|
-
this.
|
|
1741
|
+
this.o1t_1 = this.n1t_1;
|
|
1740
1742
|
this.d9_1 = 1;
|
|
1741
1743
|
continue $sm;
|
|
1742
1744
|
case 1:
|
|
1743
|
-
if (!(this.
|
|
1745
|
+
if (!(this.o1t_1 > 0n && !this.m1t_1.b1p())) {
|
|
1744
1746
|
this.d9_1 = 4;
|
|
1745
1747
|
continue $sm;
|
|
1746
1748
|
}
|
|
1747
1749
|
|
|
1748
|
-
if (get_availableForRead(this.
|
|
1750
|
+
if (get_availableForRead(this.m1t_1) === 0) {
|
|
1749
1751
|
this.d9_1 = 2;
|
|
1750
|
-
suspendResult = this.
|
|
1752
|
+
suspendResult = this.m1t_1.d1p(VOID, this);
|
|
1751
1753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1752
1754
|
return suspendResult;
|
|
1753
1755
|
}
|
|
@@ -1761,15 +1763,15 @@
|
|
|
1761
1763
|
this.d9_1 = 3;
|
|
1762
1764
|
continue $sm;
|
|
1763
1765
|
case 3:
|
|
1764
|
-
var tmp0 = this.
|
|
1765
|
-
var b = get_remaining(this.
|
|
1766
|
+
var tmp0 = this.o1t_1;
|
|
1767
|
+
var b = get_remaining(this.m1t_1.x1o());
|
|
1766
1768
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1767
|
-
discard_0(this.
|
|
1768
|
-
this.
|
|
1769
|
+
discard_0(this.m1t_1.x1o(), count);
|
|
1770
|
+
this.o1t_1 = subtract(this.o1t_1, count);
|
|
1769
1771
|
this.d9_1 = 1;
|
|
1770
1772
|
continue $sm;
|
|
1771
1773
|
case 4:
|
|
1772
|
-
return subtract(this.
|
|
1774
|
+
return subtract(this.n1t_1, this.o1t_1);
|
|
1773
1775
|
case 5:
|
|
1774
1776
|
throw this.g9_1;
|
|
1775
1777
|
}
|
|
@@ -1786,8 +1788,8 @@
|
|
|
1786
1788
|
};
|
|
1787
1789
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1788
1790
|
CoroutineImpl.call(this, resultContinuation);
|
|
1789
|
-
this.
|
|
1790
|
-
this.
|
|
1791
|
+
this.x1t_1 = _this__u8e3s4;
|
|
1792
|
+
this.y1t_1 = byteString;
|
|
1791
1793
|
}
|
|
1792
1794
|
protoOf($skipIfFoundCOROUTINE$).l9 = function () {
|
|
1793
1795
|
var suspendResult = this.f9_1;
|
|
@@ -1798,7 +1800,7 @@
|
|
|
1798
1800
|
case 0:
|
|
1799
1801
|
this.e9_1 = 4;
|
|
1800
1802
|
this.d9_1 = 1;
|
|
1801
|
-
suspendResult = peek(this.
|
|
1803
|
+
suspendResult = peek(this.x1t_1, this.y1t_1.l1(), this);
|
|
1802
1804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1803
1805
|
return suspendResult;
|
|
1804
1806
|
}
|
|
@@ -1806,9 +1808,9 @@
|
|
|
1806
1808
|
continue $sm;
|
|
1807
1809
|
case 1:
|
|
1808
1810
|
var ARGUMENT = suspendResult;
|
|
1809
|
-
if (equals(ARGUMENT, this.
|
|
1811
|
+
if (equals(ARGUMENT, this.y1t_1)) {
|
|
1810
1812
|
this.d9_1 = 3;
|
|
1811
|
-
suspendResult = discard(this.
|
|
1813
|
+
suspendResult = discard(this.x1t_1, fromInt(this.y1t_1.l1()), this);
|
|
1812
1814
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1813
1815
|
return suspendResult;
|
|
1814
1816
|
}
|
|
@@ -1838,8 +1840,8 @@
|
|
|
1838
1840
|
};
|
|
1839
1841
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1840
1842
|
CoroutineImpl.call(this, resultContinuation);
|
|
1841
|
-
this.
|
|
1842
|
-
this.
|
|
1843
|
+
this.h1u_1 = _this__u8e3s4;
|
|
1844
|
+
this.i1u_1 = packet;
|
|
1843
1845
|
}
|
|
1844
1846
|
protoOf($readPacketCOROUTINE$).l9 = function () {
|
|
1845
1847
|
var suspendResult = this.f9_1;
|
|
@@ -1849,18 +1851,18 @@
|
|
|
1849
1851
|
switch (tmp) {
|
|
1850
1852
|
case 0:
|
|
1851
1853
|
this.e9_1 = 6;
|
|
1852
|
-
this.
|
|
1854
|
+
this.j1u_1 = new Buffer();
|
|
1853
1855
|
this.d9_1 = 1;
|
|
1854
1856
|
continue $sm;
|
|
1855
1857
|
case 1:
|
|
1856
|
-
if (!(this.
|
|
1858
|
+
if (!(this.j1u_1.l1() < fromInt(this.i1u_1))) {
|
|
1857
1859
|
this.d9_1 = 5;
|
|
1858
1860
|
continue $sm;
|
|
1859
1861
|
}
|
|
1860
1862
|
|
|
1861
|
-
if (this.
|
|
1863
|
+
if (this.h1u_1.x1o().jq()) {
|
|
1862
1864
|
this.d9_1 = 2;
|
|
1863
|
-
suspendResult = this.
|
|
1865
|
+
suspendResult = this.h1u_1.d1p(VOID, this);
|
|
1864
1866
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1865
1867
|
return suspendResult;
|
|
1866
1868
|
}
|
|
@@ -1874,7 +1876,7 @@
|
|
|
1874
1876
|
this.d9_1 = 3;
|
|
1875
1877
|
continue $sm;
|
|
1876
1878
|
case 3:
|
|
1877
|
-
if (this.
|
|
1879
|
+
if (this.h1u_1.b1p()) {
|
|
1878
1880
|
this.d9_1 = 5;
|
|
1879
1881
|
continue $sm;
|
|
1880
1882
|
} else {
|
|
@@ -1883,20 +1885,20 @@
|
|
|
1883
1885
|
}
|
|
1884
1886
|
|
|
1885
1887
|
case 4:
|
|
1886
|
-
if (get_remaining(this.
|
|
1887
|
-
this.
|
|
1888
|
+
if (get_remaining(this.h1u_1.x1o()) > subtract(numberToLong(this.i1u_1), this.j1u_1.l1())) {
|
|
1889
|
+
this.h1u_1.x1o().lr(this.j1u_1, subtract(numberToLong(this.i1u_1), this.j1u_1.l1()));
|
|
1888
1890
|
} else {
|
|
1889
|
-
this.
|
|
1891
|
+
this.h1u_1.x1o().mr(this.j1u_1);
|
|
1890
1892
|
}
|
|
1891
1893
|
|
|
1892
1894
|
this.d9_1 = 1;
|
|
1893
1895
|
continue $sm;
|
|
1894
1896
|
case 5:
|
|
1895
|
-
if (this.
|
|
1896
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1897
|
+
if (this.j1u_1.l1() < fromInt(this.i1u_1)) {
|
|
1898
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.i1u_1 + ' bytes but only ' + this.j1u_1.l1().toString() + ' available');
|
|
1897
1899
|
}
|
|
1898
1900
|
|
|
1899
|
-
return this.
|
|
1901
|
+
return this.j1u_1;
|
|
1900
1902
|
case 6:
|
|
1901
1903
|
throw this.g9_1;
|
|
1902
1904
|
}
|
|
@@ -1913,8 +1915,8 @@
|
|
|
1913
1915
|
};
|
|
1914
1916
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1915
1917
|
CoroutineImpl.call(this, resultContinuation);
|
|
1916
|
-
this.
|
|
1917
|
-
this.
|
|
1918
|
+
this.s1u_1 = _this__u8e3s4;
|
|
1919
|
+
this.t1u_1 = max;
|
|
1918
1920
|
}
|
|
1919
1921
|
protoOf($readRemainingCOROUTINE$_0).l9 = function () {
|
|
1920
1922
|
var suspendResult = this.f9_1;
|
|
@@ -1924,26 +1926,26 @@
|
|
|
1924
1926
|
switch (tmp) {
|
|
1925
1927
|
case 0:
|
|
1926
1928
|
this.e9_1 = 4;
|
|
1927
|
-
this.
|
|
1928
|
-
this.
|
|
1929
|
+
this.u1u_1 = BytePacketBuilder();
|
|
1930
|
+
this.v1u_1 = this.t1u_1;
|
|
1929
1931
|
this.d9_1 = 1;
|
|
1930
1932
|
continue $sm;
|
|
1931
1933
|
case 1:
|
|
1932
|
-
if (!(!this.
|
|
1934
|
+
if (!(!this.s1u_1.b1p() && this.v1u_1 > 0n)) {
|
|
1933
1935
|
this.d9_1 = 3;
|
|
1934
1936
|
continue $sm;
|
|
1935
1937
|
}
|
|
1936
1938
|
|
|
1937
|
-
if (this.
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1939
|
+
if (this.v1u_1 >= get_remaining(this.s1u_1.x1o())) {
|
|
1940
|
+
this.v1u_1 = subtract(this.v1u_1, get_remaining(this.s1u_1.x1o()));
|
|
1941
|
+
this.s1u_1.x1o().mr(this.u1u_1);
|
|
1940
1942
|
} else {
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
+
this.s1u_1.x1o().lr(this.u1u_1, this.v1u_1);
|
|
1944
|
+
this.v1u_1 = 0n;
|
|
1943
1945
|
}
|
|
1944
1946
|
|
|
1945
1947
|
this.d9_1 = 2;
|
|
1946
|
-
suspendResult = this.
|
|
1948
|
+
suspendResult = this.s1u_1.d1p(VOID, this);
|
|
1947
1949
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1948
1950
|
return suspendResult;
|
|
1949
1951
|
}
|
|
@@ -1953,7 +1955,7 @@
|
|
|
1953
1955
|
this.d9_1 = 1;
|
|
1954
1956
|
continue $sm;
|
|
1955
1957
|
case 3:
|
|
1956
|
-
return this.
|
|
1958
|
+
return this.u1u_1.iq();
|
|
1957
1959
|
case 4:
|
|
1958
1960
|
throw this.g9_1;
|
|
1959
1961
|
}
|
|
@@ -1970,8 +1972,8 @@
|
|
|
1970
1972
|
};
|
|
1971
1973
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1972
1974
|
CoroutineImpl.call(this, resultContinuation);
|
|
1973
|
-
this.
|
|
1974
|
-
this.
|
|
1975
|
+
this.e1v_1 = _this__u8e3s4;
|
|
1976
|
+
this.f1v_1 = count;
|
|
1975
1977
|
}
|
|
1976
1978
|
protoOf($peekCOROUTINE$).l9 = function () {
|
|
1977
1979
|
var suspendResult = this.f9_1;
|
|
@@ -1981,10 +1983,10 @@
|
|
|
1981
1983
|
switch (tmp) {
|
|
1982
1984
|
case 0:
|
|
1983
1985
|
this.e9_1 = 3;
|
|
1984
|
-
if (this.
|
|
1986
|
+
if (this.e1v_1.b1p())
|
|
1985
1987
|
return null;
|
|
1986
1988
|
this.d9_1 = 1;
|
|
1987
|
-
suspendResult = this.
|
|
1989
|
+
suspendResult = this.e1v_1.c1p(this.f1v_1, this);
|
|
1988
1990
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1989
1991
|
return suspendResult;
|
|
1990
1992
|
}
|
|
@@ -1999,7 +2001,7 @@
|
|
|
1999
2001
|
}
|
|
2000
2002
|
|
|
2001
2003
|
case 2:
|
|
2002
|
-
return readByteString(this.
|
|
2004
|
+
return readByteString(this.e1v_1.x1o().nr(), this.f1v_1);
|
|
2003
2005
|
case 3:
|
|
2004
2006
|
throw this.g9_1;
|
|
2005
2007
|
}
|
|
@@ -2016,11 +2018,11 @@
|
|
|
2016
2018
|
};
|
|
2017
2019
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
2018
2020
|
CoroutineImpl.call(this, resultContinuation);
|
|
2019
|
-
this.
|
|
2020
|
-
this.
|
|
2021
|
-
this.
|
|
2022
|
-
this.
|
|
2023
|
-
this.
|
|
2021
|
+
this.o1v_1 = _this__u8e3s4;
|
|
2022
|
+
this.p1v_1 = out;
|
|
2023
|
+
this.q1v_1 = limit;
|
|
2024
|
+
this.r1v_1 = lenientLineEnding;
|
|
2025
|
+
this.s1v_1 = throwOnIncompleteLine;
|
|
2024
2026
|
}
|
|
2025
2027
|
protoOf($internalReadLineToCOROUTINE$).l9 = function () {
|
|
2026
2028
|
var suspendResult = this.f9_1;
|
|
@@ -2030,10 +2032,10 @@
|
|
|
2030
2032
|
switch (tmp) {
|
|
2031
2033
|
case 0:
|
|
2032
2034
|
this.e9_1 = 18;
|
|
2033
|
-
this.
|
|
2034
|
-
if (this.
|
|
2035
|
+
this.u1v_1 = this.o1v_1.x1o();
|
|
2036
|
+
if (this.u1v_1.jq()) {
|
|
2035
2037
|
this.d9_1 = 1;
|
|
2036
|
-
suspendResult = this.
|
|
2038
|
+
suspendResult = this.o1v_1.d1p(VOID, this);
|
|
2037
2039
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2038
2040
|
return suspendResult;
|
|
2039
2041
|
}
|
|
@@ -2047,94 +2049,94 @@
|
|
|
2047
2049
|
this.d9_1 = 2;
|
|
2048
2050
|
continue $sm;
|
|
2049
2051
|
case 2:
|
|
2050
|
-
if (this.
|
|
2052
|
+
if (this.o1v_1.b1p())
|
|
2051
2053
|
return -1n;
|
|
2052
|
-
this.
|
|
2054
|
+
this.t1v_1 = {_v: 0n};
|
|
2053
2055
|
this.d9_1 = 3;
|
|
2054
2056
|
continue $sm;
|
|
2055
2057
|
case 3:
|
|
2056
|
-
if (!(this.
|
|
2058
|
+
if (!(this.t1v_1._v < this.q1v_1 && !this.o1v_1.b1p())) {
|
|
2057
2059
|
this.d9_1 = 10;
|
|
2058
2060
|
continue $sm;
|
|
2059
2061
|
}
|
|
2060
2062
|
|
|
2061
|
-
var limitLeft = subtract(this.
|
|
2062
|
-
var lfIndex = indexOf(this.
|
|
2063
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2063
|
+
var limitLeft = subtract(this.q1v_1, this.t1v_1._v);
|
|
2064
|
+
var lfIndex = indexOf(this.u1v_1, 10, VOID, limitLeft);
|
|
2065
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.u1v_1, this.r1v_1, lfIndex, limitLeft);
|
|
2064
2066
|
if (crIndex >= 0n) {
|
|
2065
|
-
internalReadLineTo$transferString(this.
|
|
2066
|
-
discard_0(this.
|
|
2067
|
-
return this.
|
|
2067
|
+
internalReadLineTo$transferString(this.u1v_1, this.p1v_1, this.t1v_1, crIndex);
|
|
2068
|
+
discard_0(this.u1v_1, 1n);
|
|
2069
|
+
return this.t1v_1._v;
|
|
2068
2070
|
}
|
|
2069
2071
|
|
|
2070
2072
|
if (lfIndex === 0n) {
|
|
2071
|
-
discard_0(this.
|
|
2072
|
-
return this.
|
|
2073
|
+
discard_0(this.u1v_1, 1n);
|
|
2074
|
+
return this.t1v_1._v;
|
|
2073
2075
|
}
|
|
2074
2076
|
|
|
2075
2077
|
if (lfIndex > 0n) {
|
|
2076
2078
|
var tmp_0;
|
|
2077
|
-
var tmp_1 = this.
|
|
2078
|
-
if (tmp_1.
|
|
2079
|
+
var tmp_1 = this.u1v_1.iq();
|
|
2080
|
+
if (tmp_1.er(subtract(lfIndex, fromInt(1))) === 13) {
|
|
2079
2081
|
tmp_0 = 1n;
|
|
2080
2082
|
} else {
|
|
2081
2083
|
tmp_0 = 0n;
|
|
2082
2084
|
}
|
|
2083
2085
|
var isCrlf = tmp_0;
|
|
2084
|
-
internalReadLineTo$transferString(this.
|
|
2085
|
-
discard_0(this.
|
|
2086
|
-
return this.
|
|
2086
|
+
internalReadLineTo$transferString(this.u1v_1, this.p1v_1, this.t1v_1, subtract(lfIndex, isCrlf));
|
|
2087
|
+
discard_0(this.u1v_1, add(numberToLong(1), isCrlf));
|
|
2088
|
+
return this.t1v_1._v;
|
|
2087
2089
|
}
|
|
2088
2090
|
|
|
2089
|
-
var b = get_remaining(this.
|
|
2091
|
+
var b = get_remaining(this.u1v_1);
|
|
2090
2092
|
var count = limitLeft <= b ? limitLeft : b;
|
|
2091
|
-
var tmp_2 = this.
|
|
2092
|
-
if (tmp_2.
|
|
2093
|
-
internalReadLineTo$transferString(this.
|
|
2093
|
+
var tmp_2 = this.u1v_1.iq();
|
|
2094
|
+
if (tmp_2.er(subtract(count, fromInt(1))) === 13) {
|
|
2095
|
+
internalReadLineTo$transferString(this.u1v_1, this.p1v_1, this.t1v_1, subtract(count, fromInt(1)));
|
|
2094
2096
|
this.d9_1 = 4;
|
|
2095
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2097
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.u1v_1, this.o1v_1, this.r1v_1, this);
|
|
2096
2098
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2097
2099
|
return suspendResult;
|
|
2098
2100
|
}
|
|
2099
2101
|
continue $sm;
|
|
2100
2102
|
} else {
|
|
2101
|
-
internalReadLineTo$transferString(this.
|
|
2103
|
+
internalReadLineTo$transferString(this.u1v_1, this.p1v_1, this.t1v_1, count);
|
|
2102
2104
|
this.d9_1 = 6;
|
|
2103
2105
|
continue $sm;
|
|
2104
2106
|
}
|
|
2105
2107
|
|
|
2106
2108
|
case 4:
|
|
2107
2109
|
if (suspendResult) {
|
|
2108
|
-
return this.
|
|
2110
|
+
return this.t1v_1._v;
|
|
2109
2111
|
} else {
|
|
2110
2112
|
this.d9_1 = 5;
|
|
2111
2113
|
continue $sm;
|
|
2112
2114
|
}
|
|
2113
2115
|
|
|
2114
2116
|
case 5:
|
|
2115
|
-
internalReadLineTo$transferString(this.
|
|
2117
|
+
internalReadLineTo$transferString(this.u1v_1, this.p1v_1, this.t1v_1, 1n);
|
|
2116
2118
|
this.d9_1 = 6;
|
|
2117
2119
|
continue $sm;
|
|
2118
2120
|
case 6:
|
|
2119
|
-
if (this.
|
|
2121
|
+
if (this.t1v_1._v < this.q1v_1 && get_remaining(this.u1v_1) === 0n) {
|
|
2120
2122
|
this.d9_1 = 7;
|
|
2121
|
-
suspendResult = this.
|
|
2123
|
+
suspendResult = this.o1v_1.d1p(VOID, this);
|
|
2122
2124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2123
2125
|
return suspendResult;
|
|
2124
2126
|
}
|
|
2125
2127
|
continue $sm;
|
|
2126
2128
|
} else {
|
|
2127
|
-
this.
|
|
2129
|
+
this.w1v_1 = false;
|
|
2128
2130
|
this.d9_1 = 8;
|
|
2129
2131
|
continue $sm;
|
|
2130
2132
|
}
|
|
2131
2133
|
|
|
2132
2134
|
case 7:
|
|
2133
|
-
this.
|
|
2135
|
+
this.w1v_1 = !suspendResult;
|
|
2134
2136
|
this.d9_1 = 8;
|
|
2135
2137
|
continue $sm;
|
|
2136
2138
|
case 8:
|
|
2137
|
-
if (this.
|
|
2139
|
+
if (this.w1v_1) {
|
|
2138
2140
|
this.d9_1 = 10;
|
|
2139
2141
|
continue $sm;
|
|
2140
2142
|
} else {
|
|
@@ -2146,25 +2148,25 @@
|
|
|
2146
2148
|
this.d9_1 = 3;
|
|
2147
2149
|
continue $sm;
|
|
2148
2150
|
case 10:
|
|
2149
|
-
if (this.
|
|
2151
|
+
if (this.t1v_1._v === 0n && this.o1v_1.b1p())
|
|
2150
2152
|
return -1n;
|
|
2151
|
-
if (!(this.
|
|
2152
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2153
|
+
if (!(this.t1v_1._v <= this.q1v_1)) {
|
|
2154
|
+
var message = 'Consumed bytes exceed the limit: ' + this.t1v_1._v.toString() + ' > ' + this.q1v_1.toString() + ". It's an implementation bug, please report it.";
|
|
2153
2155
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
2154
2156
|
}
|
|
2155
2157
|
|
|
2156
|
-
if (this.
|
|
2157
|
-
if (this.
|
|
2158
|
+
if (this.t1v_1._v === this.q1v_1) {
|
|
2159
|
+
if (this.q1v_1 === 9223372036854775807n)
|
|
2158
2160
|
throw new TooLongLineException('Max line length exceeded');
|
|
2159
|
-
if (get_remaining(this.
|
|
2161
|
+
if (get_remaining(this.u1v_1) === 0n) {
|
|
2160
2162
|
this.d9_1 = 12;
|
|
2161
|
-
suspendResult = this.
|
|
2163
|
+
suspendResult = this.o1v_1.d1p(VOID, this);
|
|
2162
2164
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2163
2165
|
return suspendResult;
|
|
2164
2166
|
}
|
|
2165
2167
|
continue $sm;
|
|
2166
2168
|
} else {
|
|
2167
|
-
this.
|
|
2169
|
+
this.v1v_1 = false;
|
|
2168
2170
|
this.d9_1 = 13;
|
|
2169
2171
|
continue $sm;
|
|
2170
2172
|
}
|
|
@@ -2174,18 +2176,18 @@
|
|
|
2174
2176
|
}
|
|
2175
2177
|
|
|
2176
2178
|
case 11:
|
|
2177
|
-
if (this.
|
|
2178
|
-
throwEndOfStreamException(this.
|
|
2179
|
+
if (this.s1v_1) {
|
|
2180
|
+
throwEndOfStreamException(this.t1v_1._v);
|
|
2179
2181
|
}
|
|
2180
2182
|
|
|
2181
|
-
return this.
|
|
2183
|
+
return this.t1v_1._v;
|
|
2182
2184
|
case 12:
|
|
2183
|
-
this.
|
|
2185
|
+
this.v1v_1 = !suspendResult;
|
|
2184
2186
|
this.d9_1 = 13;
|
|
2185
2187
|
continue $sm;
|
|
2186
2188
|
case 13:
|
|
2187
|
-
if (this.
|
|
2188
|
-
throwEndOfStreamException(this.
|
|
2189
|
+
if (this.v1v_1) {
|
|
2190
|
+
throwEndOfStreamException(this.t1v_1._v);
|
|
2189
2191
|
} else {
|
|
2190
2192
|
this.d9_1 = 14;
|
|
2191
2193
|
continue $sm;
|
|
@@ -2193,14 +2195,14 @@
|
|
|
2193
2195
|
|
|
2194
2196
|
break;
|
|
2195
2197
|
case 14:
|
|
2196
|
-
var tmp0_subject = this.
|
|
2198
|
+
var tmp0_subject = this.u1v_1.iq().er(0n);
|
|
2197
2199
|
if (tmp0_subject === 10) {
|
|
2198
|
-
discard_0(this.
|
|
2199
|
-
return this.
|
|
2200
|
+
discard_0(this.u1v_1, 1n);
|
|
2201
|
+
return this.t1v_1._v;
|
|
2200
2202
|
} else {
|
|
2201
2203
|
if (tmp0_subject === 13) {
|
|
2202
2204
|
this.d9_1 = 15;
|
|
2203
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2205
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.u1v_1, this.o1v_1, this.r1v_1, this);
|
|
2204
2206
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2205
2207
|
return suspendResult;
|
|
2206
2208
|
}
|
|
@@ -2213,7 +2215,7 @@
|
|
|
2213
2215
|
|
|
2214
2216
|
case 15:
|
|
2215
2217
|
if (suspendResult) {
|
|
2216
|
-
return this.
|
|
2218
|
+
return this.t1v_1._v;
|
|
2217
2219
|
} else {
|
|
2218
2220
|
this.d9_1 = 16;
|
|
2219
2221
|
continue $sm;
|
|
@@ -2223,7 +2225,7 @@
|
|
|
2223
2225
|
this.d9_1 = 17;
|
|
2224
2226
|
continue $sm;
|
|
2225
2227
|
case 17:
|
|
2226
|
-
throwTooLongLineException(this.
|
|
2228
|
+
throwTooLongLineException(this.q1v_1);
|
|
2227
2229
|
break;
|
|
2228
2230
|
case 18:
|
|
2229
2231
|
throw this.g9_1;
|
|
@@ -2241,9 +2243,9 @@
|
|
|
2241
2243
|
};
|
|
2242
2244
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2243
2245
|
CoroutineImpl.call(this, resultContinuation);
|
|
2244
|
-
this.
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2246
|
+
this.f1w_1 = _this__u8e3s4;
|
|
2247
|
+
this.g1w_1 = $this_internalReadLineTo;
|
|
2248
|
+
this.h1w_1 = $lenientLineEnding;
|
|
2247
2249
|
}
|
|
2248
2250
|
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).l9 = function () {
|
|
2249
2251
|
var suspendResult = this.f9_1;
|
|
@@ -2253,13 +2255,13 @@
|
|
|
2253
2255
|
switch (tmp) {
|
|
2254
2256
|
case 0:
|
|
2255
2257
|
this.e9_1 = 5;
|
|
2256
|
-
if (get_remaining(this.
|
|
2257
|
-
this.
|
|
2258
|
+
if (get_remaining(this.f1w_1) >= 2n) {
|
|
2259
|
+
this.j1w_1 = true;
|
|
2258
2260
|
this.d9_1 = 2;
|
|
2259
2261
|
continue $sm;
|
|
2260
2262
|
} else {
|
|
2261
2263
|
this.d9_1 = 1;
|
|
2262
|
-
suspendResult = this.
|
|
2264
|
+
suspendResult = this.g1w_1.c1p(2, this);
|
|
2263
2265
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2264
2266
|
return suspendResult;
|
|
2265
2267
|
}
|
|
@@ -2267,23 +2269,23 @@
|
|
|
2267
2269
|
}
|
|
2268
2270
|
|
|
2269
2271
|
case 1:
|
|
2270
|
-
this.
|
|
2272
|
+
this.j1w_1 = suspendResult;
|
|
2271
2273
|
this.d9_1 = 2;
|
|
2272
2274
|
continue $sm;
|
|
2273
2275
|
case 2:
|
|
2274
|
-
if (this.
|
|
2275
|
-
this.
|
|
2276
|
+
if (this.j1w_1) {
|
|
2277
|
+
this.i1w_1 = this.f1w_1.iq().er(1n) === 10;
|
|
2276
2278
|
this.d9_1 = 3;
|
|
2277
2279
|
continue $sm;
|
|
2278
2280
|
} else {
|
|
2279
|
-
this.
|
|
2281
|
+
this.i1w_1 = false;
|
|
2280
2282
|
this.d9_1 = 3;
|
|
2281
2283
|
continue $sm;
|
|
2282
2284
|
}
|
|
2283
2285
|
|
|
2284
2286
|
case 3:
|
|
2285
|
-
if (this.
|
|
2286
|
-
discard_0(this.
|
|
2287
|
+
if (this.i1w_1) {
|
|
2288
|
+
discard_0(this.f1w_1, 2n);
|
|
2287
2289
|
return true;
|
|
2288
2290
|
} else {
|
|
2289
2291
|
this.d9_1 = 4;
|
|
@@ -2291,8 +2293,8 @@
|
|
|
2291
2293
|
}
|
|
2292
2294
|
|
|
2293
2295
|
case 4:
|
|
2294
|
-
if (this.
|
|
2295
|
-
discard_0(this.
|
|
2296
|
+
if (this.h1w_1) {
|
|
2297
|
+
discard_0(this.f1w_1, 1n);
|
|
2296
2298
|
return true;
|
|
2297
2299
|
}
|
|
2298
2300
|
|
|
@@ -2321,7 +2323,7 @@
|
|
|
2321
2323
|
}
|
|
2322
2324
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2323
2325
|
CoroutineImpl.call(this, resultContinuation);
|
|
2324
|
-
this.
|
|
2326
|
+
this.s1w_1 = _this__u8e3s4;
|
|
2325
2327
|
}
|
|
2326
2328
|
protoOf($flushIfNeededCOROUTINE$).l9 = function () {
|
|
2327
2329
|
var suspendResult = this.f9_1;
|
|
@@ -2331,10 +2333,10 @@
|
|
|
2331
2333
|
switch (tmp) {
|
|
2332
2334
|
case 0:
|
|
2333
2335
|
this.e9_1 = 3;
|
|
2334
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2335
|
-
if (this.
|
|
2336
|
+
rethrowCloseCauseIfNeeded_1(this.s1w_1);
|
|
2337
|
+
if (this.s1w_1.w1o() || get_size(this.s1w_1.y1o()) >= 1048576) {
|
|
2336
2338
|
this.d9_1 = 1;
|
|
2337
|
-
suspendResult = this.
|
|
2339
|
+
suspendResult = this.s1w_1.v1o(this);
|
|
2338
2340
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2341
|
return suspendResult;
|
|
2340
2342
|
}
|
|
@@ -2363,6 +2365,12 @@
|
|
|
2363
2365
|
}
|
|
2364
2366
|
while (true);
|
|
2365
2367
|
};
|
|
2368
|
+
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2369
|
+
var i = new ByteWriteChannel$flushAndClose$ref_0(p0);
|
|
2370
|
+
return constructCallableReference(function ($completion) {
|
|
2371
|
+
return i.x1w($completion);
|
|
2372
|
+
}, 0, 1, 9, 'flushAndClose', [p0]);
|
|
2373
|
+
}
|
|
2366
2374
|
function get_NO_CALLBACK() {
|
|
2367
2375
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2368
2376
|
return NO_CALLBACK;
|
|
@@ -2371,15 +2379,15 @@
|
|
|
2371
2379
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2372
2380
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2373
2381
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2374
|
-
_this__u8e3s4.
|
|
2382
|
+
_this__u8e3s4.y1o().sr(value, startIndex, endIndex);
|
|
2375
2383
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2376
2384
|
}
|
|
2377
2385
|
function WriterJob(channel, job) {
|
|
2378
|
-
this.
|
|
2379
|
-
this.
|
|
2386
|
+
this.x1q_1 = channel;
|
|
2387
|
+
this.y1q_1 = job;
|
|
2380
2388
|
}
|
|
2381
|
-
protoOf(WriterJob).
|
|
2382
|
-
return this.
|
|
2389
|
+
protoOf(WriterJob).gx = function () {
|
|
2390
|
+
return this.y1q_1;
|
|
2383
2391
|
};
|
|
2384
2392
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2385
2393
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2388,22 +2396,22 @@
|
|
|
2388
2396
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2389
2397
|
}
|
|
2390
2398
|
function WriterScope(channel, coroutineContext) {
|
|
2391
|
-
this.
|
|
2392
|
-
this.
|
|
2399
|
+
this.y1w_1 = channel;
|
|
2400
|
+
this.z1w_1 = coroutineContext;
|
|
2393
2401
|
}
|
|
2394
|
-
protoOf(WriterScope).
|
|
2395
|
-
return this.
|
|
2402
|
+
protoOf(WriterScope).ut = function () {
|
|
2403
|
+
return this.z1w_1;
|
|
2396
2404
|
};
|
|
2397
2405
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2398
2406
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2399
|
-
return _this__u8e3s4.
|
|
2407
|
+
return _this__u8e3s4.gx().wu(block);
|
|
2400
2408
|
}
|
|
2401
2409
|
function close_0(_this__u8e3s4, cause) {
|
|
2402
2410
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2403
2411
|
if (cause == null) {
|
|
2404
|
-
fireAndForget(ByteWriteChannel$flushAndClose$
|
|
2412
|
+
fireAndForget(ByteWriteChannel$flushAndClose$ref(_this__u8e3s4));
|
|
2405
2413
|
} else {
|
|
2406
|
-
_this__u8e3s4.
|
|
2414
|
+
_this__u8e3s4.f1p(cause);
|
|
2407
2415
|
}
|
|
2408
2416
|
}
|
|
2409
2417
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2421,19 +2429,19 @@
|
|
|
2421
2429
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2422
2430
|
// Inline function 'kotlin.apply' call
|
|
2423
2431
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2424
|
-
this_0.
|
|
2432
|
+
this_0.wu(writer$lambda(channel));
|
|
2425
2433
|
var job = this_0;
|
|
2426
2434
|
return new WriterJob(channel, job);
|
|
2427
2435
|
}
|
|
2428
2436
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2429
|
-
_this__u8e3s4.
|
|
2437
|
+
_this__u8e3s4.y1o().cs(value);
|
|
2430
2438
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2431
2439
|
}
|
|
2432
2440
|
function NO_CALLBACK$1() {
|
|
2433
|
-
this.
|
|
2441
|
+
this.k1x_1 = EmptyCoroutineContext_instance;
|
|
2434
2442
|
}
|
|
2435
2443
|
protoOf(NO_CALLBACK$1).j9 = function () {
|
|
2436
|
-
return this.
|
|
2444
|
+
return this.k1x_1;
|
|
2437
2445
|
};
|
|
2438
2446
|
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
2439
2447
|
return Unit_instance;
|
|
@@ -2441,37 +2449,29 @@
|
|
|
2441
2449
|
protoOf(NO_CALLBACK$1).o9 = function (result) {
|
|
2442
2450
|
return this.k9(result);
|
|
2443
2451
|
};
|
|
2444
|
-
function ByteWriteChannel$flushAndClose$
|
|
2445
|
-
this
|
|
2452
|
+
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2453
|
+
KFunctionImpl.call(this, 1, 1, 9);
|
|
2454
|
+
this.w1w_1 = p0;
|
|
2446
2455
|
}
|
|
2447
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2448
|
-
return this.
|
|
2456
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).x1w = function ($completion) {
|
|
2457
|
+
return this.w1w_1.e1p($completion);
|
|
2449
2458
|
};
|
|
2450
|
-
protoOf(ByteWriteChannel$flushAndClose$
|
|
2451
|
-
return this.
|
|
2459
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_0).x9 = function ($completion) {
|
|
2460
|
+
return this.x1w($completion);
|
|
2452
2461
|
};
|
|
2453
|
-
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2454
|
-
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2455
|
-
var l = function ($completion) {
|
|
2456
|
-
return i.d1x($completion);
|
|
2457
|
-
};
|
|
2458
|
-
l.callableName = 'flushAndClose';
|
|
2459
|
-
l.$arity = 0;
|
|
2460
|
-
return l;
|
|
2461
|
-
}
|
|
2462
2462
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2463
|
-
this.
|
|
2464
|
-
this.
|
|
2463
|
+
this.t1x_1 = $block;
|
|
2464
|
+
this.u1x_1 = $channel;
|
|
2465
2465
|
CoroutineImpl.call(this, resultContinuation);
|
|
2466
2466
|
}
|
|
2467
|
-
protoOf(writer$slambda).
|
|
2468
|
-
var tmp = this.
|
|
2467
|
+
protoOf(writer$slambda).c1y = function ($this$launch, $completion) {
|
|
2468
|
+
var tmp = this.d1y($this$launch, $completion);
|
|
2469
2469
|
tmp.f9_1 = Unit_instance;
|
|
2470
2470
|
tmp.g9_1 = null;
|
|
2471
2471
|
return tmp.l9();
|
|
2472
2472
|
};
|
|
2473
2473
|
protoOf(writer$slambda).y9 = function (p1, $completion) {
|
|
2474
|
-
return this.
|
|
2474
|
+
return this.c1y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2475
2475
|
};
|
|
2476
2476
|
protoOf(writer$slambda).l9 = function () {
|
|
2477
2477
|
var suspendResult = this.f9_1;
|
|
@@ -2481,24 +2481,24 @@
|
|
|
2481
2481
|
switch (tmp) {
|
|
2482
2482
|
case 0:
|
|
2483
2483
|
this.e9_1 = 14;
|
|
2484
|
-
this.
|
|
2484
|
+
this.y1x_1 = Job(get_job(this.v1x_1.ut()));
|
|
2485
2485
|
this.d9_1 = 1;
|
|
2486
2486
|
continue $sm;
|
|
2487
2487
|
case 1:
|
|
2488
2488
|
this.e9_1 = 4;
|
|
2489
2489
|
this.e9_1 = 3;
|
|
2490
2490
|
this.d9_1 = 2;
|
|
2491
|
-
suspendResult = this.
|
|
2491
|
+
suspendResult = this.t1x_1(new WriterScope(this.u1x_1, this.v1x_1.ut().gh(this.y1x_1)), this);
|
|
2492
2492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2493
2493
|
return suspendResult;
|
|
2494
2494
|
}
|
|
2495
2495
|
|
|
2496
2496
|
continue $sm;
|
|
2497
2497
|
case 2:
|
|
2498
|
-
this.
|
|
2498
|
+
this.y1x_1.e12();
|
|
2499
2499
|
var tmp_0;
|
|
2500
|
-
if (get_job(this.
|
|
2501
|
-
this.
|
|
2500
|
+
if (get_job(this.v1x_1.ut()).qu()) {
|
|
2501
|
+
this.u1x_1.f1p(get_job(this.v1x_1.ut()).tu());
|
|
2502
2502
|
tmp_0 = Unit_instance;
|
|
2503
2503
|
}
|
|
2504
2504
|
|
|
@@ -2510,8 +2510,8 @@
|
|
|
2510
2510
|
var tmp_1 = this.g9_1;
|
|
2511
2511
|
if (tmp_1 instanceof Error) {
|
|
2512
2512
|
var cause = this.g9_1;
|
|
2513
|
-
cancel(this.
|
|
2514
|
-
this.
|
|
2513
|
+
cancel(this.y1x_1, 'Exception thrown while writing to channel', cause);
|
|
2514
|
+
this.u1x_1.f1p(cause);
|
|
2515
2515
|
this.e9_1 = 14;
|
|
2516
2516
|
this.d9_1 = 9;
|
|
2517
2517
|
continue $sm;
|
|
@@ -2521,20 +2521,20 @@
|
|
|
2521
2521
|
|
|
2522
2522
|
case 4:
|
|
2523
2523
|
this.e9_1 = 14;
|
|
2524
|
-
this.
|
|
2524
|
+
this.z1x_1 = this.g9_1;
|
|
2525
2525
|
this.d9_1 = 5;
|
|
2526
|
-
suspendResult = this.
|
|
2526
|
+
suspendResult = this.y1x_1.av(this);
|
|
2527
2527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2528
2528
|
return suspendResult;
|
|
2529
2529
|
}
|
|
2530
2530
|
|
|
2531
2531
|
continue $sm;
|
|
2532
2532
|
case 5:
|
|
2533
|
-
this.
|
|
2533
|
+
this.v1x_1;
|
|
2534
2534
|
this.e9_1 = 7;
|
|
2535
|
-
this.
|
|
2535
|
+
this.b1y_1 = Companion_instance;
|
|
2536
2536
|
this.d9_1 = 6;
|
|
2537
|
-
suspendResult = this.
|
|
2537
|
+
suspendResult = this.u1x_1.e1p(this);
|
|
2538
2538
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2539
2539
|
return suspendResult;
|
|
2540
2540
|
}
|
|
@@ -2542,8 +2542,8 @@
|
|
|
2542
2542
|
continue $sm;
|
|
2543
2543
|
case 6:
|
|
2544
2544
|
var tmp_2 = this;
|
|
2545
|
-
this.
|
|
2546
|
-
tmp_2.
|
|
2545
|
+
this.b1y_1;
|
|
2546
|
+
tmp_2.a1y_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2547
2547
|
this.e9_1 = 14;
|
|
2548
2548
|
this.d9_1 = 8;
|
|
2549
2549
|
continue $sm;
|
|
@@ -2553,7 +2553,7 @@
|
|
|
2553
2553
|
if (tmp_3 instanceof Error) {
|
|
2554
2554
|
var e = this.g9_1;
|
|
2555
2555
|
var tmp_4 = this;
|
|
2556
|
-
tmp_4.
|
|
2556
|
+
tmp_4.a1y_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2557
2557
|
this.d9_1 = 8;
|
|
2558
2558
|
continue $sm;
|
|
2559
2559
|
} else {
|
|
@@ -2562,22 +2562,22 @@
|
|
|
2562
2562
|
|
|
2563
2563
|
case 8:
|
|
2564
2564
|
this.e9_1 = 14;
|
|
2565
|
-
throw this.
|
|
2565
|
+
throw this.z1x_1;
|
|
2566
2566
|
case 9:
|
|
2567
2567
|
this.e9_1 = 14;
|
|
2568
2568
|
this.d9_1 = 10;
|
|
2569
|
-
suspendResult = this.
|
|
2569
|
+
suspendResult = this.y1x_1.av(this);
|
|
2570
2570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2571
2571
|
return suspendResult;
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
2574
|
continue $sm;
|
|
2575
2575
|
case 10:
|
|
2576
|
-
this.
|
|
2576
|
+
this.v1x_1;
|
|
2577
2577
|
this.e9_1 = 12;
|
|
2578
|
-
this.
|
|
2578
|
+
this.x1x_1 = Companion_instance;
|
|
2579
2579
|
this.d9_1 = 11;
|
|
2580
|
-
suspendResult = this.
|
|
2580
|
+
suspendResult = this.u1x_1.e1p(this);
|
|
2581
2581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2582
2582
|
return suspendResult;
|
|
2583
2583
|
}
|
|
@@ -2585,8 +2585,8 @@
|
|
|
2585
2585
|
continue $sm;
|
|
2586
2586
|
case 11:
|
|
2587
2587
|
var tmp_5 = this;
|
|
2588
|
-
this.
|
|
2589
|
-
tmp_5.
|
|
2588
|
+
this.x1x_1;
|
|
2589
|
+
tmp_5.w1x_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2590
2590
|
this.e9_1 = 14;
|
|
2591
2591
|
this.d9_1 = 13;
|
|
2592
2592
|
continue $sm;
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
if (tmp_6 instanceof Error) {
|
|
2597
2597
|
var e_0 = this.g9_1;
|
|
2598
2598
|
var tmp_7 = this;
|
|
2599
|
-
tmp_7.
|
|
2599
|
+
tmp_7.w1x_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2600
2600
|
this.d9_1 = 13;
|
|
2601
2601
|
continue $sm;
|
|
2602
2602
|
} else {
|
|
@@ -2620,24 +2620,22 @@
|
|
|
2620
2620
|
}
|
|
2621
2621
|
while (true);
|
|
2622
2622
|
};
|
|
2623
|
-
protoOf(writer$slambda).
|
|
2624
|
-
var i = new writer$slambda(this.
|
|
2625
|
-
i.
|
|
2623
|
+
protoOf(writer$slambda).d1y = function ($this$launch, completion) {
|
|
2624
|
+
var i = new writer$slambda(this.t1x_1, this.u1x_1, completion);
|
|
2625
|
+
i.v1x_1 = $this$launch;
|
|
2626
2626
|
return i;
|
|
2627
2627
|
};
|
|
2628
2628
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2629
2629
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2630
|
-
|
|
2631
|
-
return i.
|
|
2632
|
-
};
|
|
2633
|
-
l.$arity = 1;
|
|
2634
|
-
return l;
|
|
2630
|
+
return constructCallableReference(function ($this$launch, $completion) {
|
|
2631
|
+
return i.c1y($this$launch, $completion);
|
|
2632
|
+
}, 1);
|
|
2635
2633
|
}
|
|
2636
2634
|
function writer$lambda($channel) {
|
|
2637
2635
|
return function (it) {
|
|
2638
2636
|
var tmp;
|
|
2639
|
-
if (!(it == null) && !$channel.
|
|
2640
|
-
$channel.
|
|
2637
|
+
if (!(it == null) && !$channel.z1o()) {
|
|
2638
|
+
$channel.f1p(it);
|
|
2641
2639
|
tmp = Unit_instance;
|
|
2642
2640
|
}
|
|
2643
2641
|
return Unit_instance;
|
|
@@ -2645,8 +2643,8 @@
|
|
|
2645
2643
|
}
|
|
2646
2644
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2647
2645
|
CoroutineImpl.call(this, resultContinuation);
|
|
2648
|
-
this.
|
|
2649
|
-
this.
|
|
2646
|
+
this.i1x_1 = _this__u8e3s4;
|
|
2647
|
+
this.j1x_1 = source;
|
|
2650
2648
|
}
|
|
2651
2649
|
protoOf($writePacketCOROUTINE$).l9 = function () {
|
|
2652
2650
|
var suspendResult = this.f9_1;
|
|
@@ -2659,14 +2657,14 @@
|
|
|
2659
2657
|
this.d9_1 = 1;
|
|
2660
2658
|
continue $sm;
|
|
2661
2659
|
case 1:
|
|
2662
|
-
if (!!this.
|
|
2660
|
+
if (!!this.j1x_1.jq()) {
|
|
2663
2661
|
this.d9_1 = 3;
|
|
2664
2662
|
continue $sm;
|
|
2665
2663
|
}
|
|
2666
2664
|
|
|
2667
|
-
this.
|
|
2665
|
+
this.i1x_1.y1o().wr(this.j1x_1, get_remaining(this.j1x_1));
|
|
2668
2666
|
this.d9_1 = 2;
|
|
2669
|
-
suspendResult = flushIfNeeded(this.
|
|
2667
|
+
suspendResult = flushIfNeeded(this.i1x_1, this);
|
|
2670
2668
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2671
2669
|
return suspendResult;
|
|
2672
2670
|
}
|
|
@@ -2710,10 +2708,10 @@
|
|
|
2710
2708
|
return Companion_instance_2;
|
|
2711
2709
|
}
|
|
2712
2710
|
function access$_get_origin__hdh1qz($this) {
|
|
2713
|
-
return $this.
|
|
2711
|
+
return $this.e1y_1;
|
|
2714
2712
|
}
|
|
2715
2713
|
function CloseToken(origin) {
|
|
2716
|
-
this.
|
|
2714
|
+
this.e1y_1 = origin;
|
|
2717
2715
|
}
|
|
2718
2716
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2719
2717
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
@@ -2724,17 +2722,17 @@
|
|
|
2724
2722
|
}
|
|
2725
2723
|
function transferFromDelegate($this) {
|
|
2726
2724
|
updateConsumed($this);
|
|
2727
|
-
var appended = $this.
|
|
2728
|
-
$this.
|
|
2725
|
+
var appended = $this.g1y_1.bs($this.f1y_1.x1o());
|
|
2726
|
+
$this.h1y_1 = add($this.h1y_1, appended);
|
|
2729
2727
|
}
|
|
2730
2728
|
function updateConsumed($this) {
|
|
2731
|
-
$this.
|
|
2732
|
-
$this.
|
|
2729
|
+
$this.i1y_1 = add($this.i1y_1, subtract($this.h1y_1, $this.g1y_1.l1()));
|
|
2730
|
+
$this.h1y_1 = $this.g1y_1.l1();
|
|
2733
2731
|
}
|
|
2734
2732
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2735
2733
|
CoroutineImpl.call(this, resultContinuation);
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2734
|
+
this.r1y_1 = _this__u8e3s4;
|
|
2735
|
+
this.s1y_1 = min;
|
|
2738
2736
|
}
|
|
2739
2737
|
protoOf($awaitContentCOROUTINE$_0).l9 = function () {
|
|
2740
2738
|
var suspendResult = this.f9_1;
|
|
@@ -2744,12 +2742,12 @@
|
|
|
2744
2742
|
switch (tmp) {
|
|
2745
2743
|
case 0:
|
|
2746
2744
|
this.e9_1 = 3;
|
|
2747
|
-
if (this.
|
|
2745
|
+
if (this.r1y_1.x1o().l1() >= fromInt(this.s1y_1)) {
|
|
2748
2746
|
return true;
|
|
2749
2747
|
}
|
|
2750
2748
|
|
|
2751
2749
|
this.d9_1 = 1;
|
|
2752
|
-
suspendResult = this.
|
|
2750
|
+
suspendResult = this.r1y_1.f1y_1.c1p(this.s1y_1, this);
|
|
2753
2751
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2754
2752
|
return suspendResult;
|
|
2755
2753
|
}
|
|
@@ -2757,7 +2755,7 @@
|
|
|
2757
2755
|
continue $sm;
|
|
2758
2756
|
case 1:
|
|
2759
2757
|
if (suspendResult) {
|
|
2760
|
-
transferFromDelegate(this.
|
|
2758
|
+
transferFromDelegate(this.r1y_1);
|
|
2761
2759
|
return true;
|
|
2762
2760
|
} else {
|
|
2763
2761
|
this.d9_1 = 2;
|
|
@@ -2781,34 +2779,34 @@
|
|
|
2781
2779
|
while (true);
|
|
2782
2780
|
};
|
|
2783
2781
|
function CountedByteReadChannel(delegate) {
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2786
|
-
this.
|
|
2787
|
-
this.
|
|
2782
|
+
this.f1y_1 = delegate;
|
|
2783
|
+
this.g1y_1 = new Buffer();
|
|
2784
|
+
this.h1y_1 = 0n;
|
|
2785
|
+
this.i1y_1 = 0n;
|
|
2788
2786
|
}
|
|
2789
|
-
protoOf(CountedByteReadChannel).
|
|
2787
|
+
protoOf(CountedByteReadChannel).t1y = function () {
|
|
2790
2788
|
updateConsumed(this);
|
|
2791
|
-
return this.
|
|
2789
|
+
return this.i1y_1;
|
|
2792
2790
|
};
|
|
2793
|
-
protoOf(CountedByteReadChannel).
|
|
2794
|
-
return this.
|
|
2791
|
+
protoOf(CountedByteReadChannel).a1p = function () {
|
|
2792
|
+
return this.f1y_1.a1p();
|
|
2795
2793
|
};
|
|
2796
|
-
protoOf(CountedByteReadChannel).
|
|
2797
|
-
return this.
|
|
2794
|
+
protoOf(CountedByteReadChannel).b1p = function () {
|
|
2795
|
+
return this.g1y_1.jq() && this.f1y_1.b1p();
|
|
2798
2796
|
};
|
|
2799
|
-
protoOf(CountedByteReadChannel).
|
|
2797
|
+
protoOf(CountedByteReadChannel).x1o = function () {
|
|
2800
2798
|
transferFromDelegate(this);
|
|
2801
|
-
return this.
|
|
2799
|
+
return this.g1y_1;
|
|
2802
2800
|
};
|
|
2803
|
-
protoOf(CountedByteReadChannel).
|
|
2801
|
+
protoOf(CountedByteReadChannel).c1p = function (min, $completion) {
|
|
2804
2802
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2805
2803
|
tmp.f9_1 = Unit_instance;
|
|
2806
2804
|
tmp.g9_1 = null;
|
|
2807
2805
|
return tmp.l9();
|
|
2808
2806
|
};
|
|
2809
|
-
protoOf(CountedByteReadChannel).
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2807
|
+
protoOf(CountedByteReadChannel).f1p = function (cause) {
|
|
2808
|
+
this.f1y_1.f1p(cause);
|
|
2809
|
+
this.g1y_1.o4();
|
|
2812
2810
|
};
|
|
2813
2811
|
function counted(_this__u8e3s4) {
|
|
2814
2812
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2866,21 +2864,21 @@
|
|
|
2866
2864
|
}
|
|
2867
2865
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2868
2866
|
var tmp;
|
|
2869
|
-
if ($this === Companion_getInstance_2().
|
|
2867
|
+
if ($this === Companion_getInstance_2().u1y_1) {
|
|
2870
2868
|
tmp = 'CR';
|
|
2871
|
-
} else if ($this === Companion_getInstance_2().
|
|
2869
|
+
} else if ($this === Companion_getInstance_2().v1y_1) {
|
|
2872
2870
|
tmp = 'LF';
|
|
2873
|
-
} else if ($this === Companion_getInstance_2().
|
|
2871
|
+
} else if ($this === Companion_getInstance_2().w1y_1) {
|
|
2874
2872
|
tmp = 'CRLF';
|
|
2875
2873
|
} else {
|
|
2876
2874
|
// Inline function 'kotlin.collections.filter' call
|
|
2877
|
-
var tmp0 = Companion_getInstance_2().
|
|
2875
|
+
var tmp0 = Companion_getInstance_2().y1y_1;
|
|
2878
2876
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2879
2877
|
var destination = ArrayList_init_$Create$();
|
|
2880
2878
|
var _iterator__ex2g4s = tmp0.t();
|
|
2881
2879
|
while (_iterator__ex2g4s.u()) {
|
|
2882
2880
|
var element = _iterator__ex2g4s.v();
|
|
2883
|
-
var it = element.
|
|
2881
|
+
var it = element.z1y_1;
|
|
2884
2882
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2885
2883
|
destination.j1(element);
|
|
2886
2884
|
}
|
|
@@ -2891,11 +2889,11 @@
|
|
|
2891
2889
|
}
|
|
2892
2890
|
function Companion_2() {
|
|
2893
2891
|
Companion_instance_3 = this;
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2892
|
+
this.u1y_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2893
|
+
this.v1y_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2894
|
+
this.w1y_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2895
|
+
this.x1y_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2896
|
+
this.y1y_1 = listOf([new LineEndingMode(this.u1y_1), new LineEndingMode(this.v1y_1), new LineEndingMode(this.w1y_1)]);
|
|
2899
2897
|
}
|
|
2900
2898
|
var Companion_instance_3;
|
|
2901
2899
|
function Companion_getInstance_2() {
|
|
@@ -2909,29 +2907,29 @@
|
|
|
2909
2907
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2910
2908
|
if (!(other instanceof LineEndingMode))
|
|
2911
2909
|
return false;
|
|
2912
|
-
if (!($this === other.
|
|
2910
|
+
if (!($this === other.z1y_1))
|
|
2913
2911
|
return false;
|
|
2914
2912
|
return true;
|
|
2915
2913
|
}
|
|
2916
2914
|
function LineEndingMode(mode) {
|
|
2917
2915
|
Companion_getInstance_2();
|
|
2918
|
-
this.
|
|
2916
|
+
this.z1y_1 = mode;
|
|
2919
2917
|
}
|
|
2920
2918
|
protoOf(LineEndingMode).toString = function () {
|
|
2921
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2919
|
+
return LineEndingMode__toString_impl_j4h76r(this.z1y_1);
|
|
2922
2920
|
};
|
|
2923
2921
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2924
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2922
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.z1y_1);
|
|
2925
2923
|
};
|
|
2926
2924
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2927
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2925
|
+
return LineEndingMode__equals_impl_qyr4nk(this.z1y_1, other);
|
|
2928
2926
|
};
|
|
2929
2927
|
function SourceByteReadChannel(source) {
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2928
|
+
this.a1z_1 = source;
|
|
2929
|
+
this.b1z_1 = null;
|
|
2932
2930
|
}
|
|
2933
|
-
protoOf(SourceByteReadChannel).
|
|
2934
|
-
var tmp0_safe_receiver = this.
|
|
2931
|
+
protoOf(SourceByteReadChannel).a1p = function () {
|
|
2932
|
+
var tmp0_safe_receiver = this.b1z_1;
|
|
2935
2933
|
var tmp;
|
|
2936
2934
|
if (tmp0_safe_receiver == null) {
|
|
2937
2935
|
tmp = null;
|
|
@@ -2943,7 +2941,7 @@
|
|
|
2943
2941
|
tmp_0 = null;
|
|
2944
2942
|
} else {
|
|
2945
2943
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2946
|
-
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).
|
|
2944
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).n12();
|
|
2947
2945
|
} else {
|
|
2948
2946
|
if (tmp0_subject instanceof CancellationException) {
|
|
2949
2947
|
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
@@ -2957,42 +2955,42 @@
|
|
|
2957
2955
|
}
|
|
2958
2956
|
return tmp;
|
|
2959
2957
|
};
|
|
2960
|
-
protoOf(SourceByteReadChannel).
|
|
2961
|
-
return this.
|
|
2958
|
+
protoOf(SourceByteReadChannel).b1p = function () {
|
|
2959
|
+
return this.a1z_1.jq();
|
|
2962
2960
|
};
|
|
2963
|
-
protoOf(SourceByteReadChannel).
|
|
2964
|
-
var tmp0_safe_receiver = this.
|
|
2961
|
+
protoOf(SourceByteReadChannel).x1o = function () {
|
|
2962
|
+
var tmp0_safe_receiver = this.a1p();
|
|
2965
2963
|
if (tmp0_safe_receiver == null)
|
|
2966
2964
|
null;
|
|
2967
2965
|
else {
|
|
2968
2966
|
// Inline function 'kotlin.let' call
|
|
2969
2967
|
throw tmp0_safe_receiver;
|
|
2970
2968
|
}
|
|
2971
|
-
return this.
|
|
2969
|
+
return this.a1z_1.iq();
|
|
2972
2970
|
};
|
|
2973
|
-
protoOf(SourceByteReadChannel).
|
|
2974
|
-
var tmp0_safe_receiver = this.
|
|
2971
|
+
protoOf(SourceByteReadChannel).c1p = function (min, $completion) {
|
|
2972
|
+
var tmp0_safe_receiver = this.a1p();
|
|
2975
2973
|
if (tmp0_safe_receiver == null)
|
|
2976
2974
|
null;
|
|
2977
2975
|
else {
|
|
2978
2976
|
// Inline function 'kotlin.let' call
|
|
2979
2977
|
throw tmp0_safe_receiver;
|
|
2980
2978
|
}
|
|
2981
|
-
return this.
|
|
2979
|
+
return this.a1z_1.lq(fromInt(min));
|
|
2982
2980
|
};
|
|
2983
|
-
protoOf(SourceByteReadChannel).
|
|
2984
|
-
if (!(this.
|
|
2981
|
+
protoOf(SourceByteReadChannel).f1p = function (cause) {
|
|
2982
|
+
if (!(this.b1z_1 == null))
|
|
2985
2983
|
return Unit_instance;
|
|
2986
|
-
this.
|
|
2984
|
+
this.a1z_1.o4();
|
|
2987
2985
|
var tmp = this;
|
|
2988
2986
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2989
|
-
tmp.
|
|
2987
|
+
tmp.b1z_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2990
2988
|
};
|
|
2991
2989
|
function decode(_this__u8e3s4, input, max) {
|
|
2992
2990
|
max = max === VOID ? 2147483647 : max;
|
|
2993
2991
|
var tmp0 = fromInt(max);
|
|
2994
2992
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2995
|
-
var b = input.
|
|
2993
|
+
var b = input.iq().l1();
|
|
2996
2994
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2997
2995
|
// Inline function 'kotlin.text.buildString' call
|
|
2998
2996
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -3029,7 +3027,7 @@
|
|
|
3029
3027
|
}
|
|
3030
3028
|
}
|
|
3031
3029
|
function canRead(_this__u8e3s4) {
|
|
3032
|
-
return !_this__u8e3s4.
|
|
3030
|
+
return !_this__u8e3s4.jq();
|
|
3033
3031
|
}
|
|
3034
3032
|
function readBytes(_this__u8e3s4, count) {
|
|
3035
3033
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -3038,35 +3036,35 @@
|
|
|
3038
3036
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
3039
3037
|
offset = offset === VOID ? 0 : offset;
|
|
3040
3038
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3041
|
-
_this__u8e3s4.
|
|
3039
|
+
_this__u8e3s4.sr(buffer, offset, offset + length | 0);
|
|
3042
3040
|
}
|
|
3043
3041
|
function BytePacketBuilder() {
|
|
3044
3042
|
return new Buffer();
|
|
3045
3043
|
}
|
|
3046
3044
|
function build(_this__u8e3s4) {
|
|
3047
|
-
return _this__u8e3s4.
|
|
3045
|
+
return _this__u8e3s4.iq();
|
|
3048
3046
|
}
|
|
3049
3047
|
function get_size(_this__u8e3s4) {
|
|
3050
|
-
return convertToInt(_this__u8e3s4.
|
|
3048
|
+
return convertToInt(_this__u8e3s4.iq().l1());
|
|
3051
3049
|
}
|
|
3052
3050
|
var ByteReadPacketEmpty;
|
|
3053
3051
|
function get_remaining(_this__u8e3s4) {
|
|
3054
3052
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3055
|
-
return _this__u8e3s4.
|
|
3053
|
+
return _this__u8e3s4.iq().l1();
|
|
3056
3054
|
}
|
|
3057
3055
|
function takeWhile(_this__u8e3s4, block) {
|
|
3058
3056
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3059
|
-
while (!_this__u8e3s4.
|
|
3057
|
+
while (!_this__u8e3s4.jq() && block(_this__u8e3s4.iq())) {
|
|
3060
3058
|
}
|
|
3061
3059
|
}
|
|
3062
3060
|
function discard_0(_this__u8e3s4, count) {
|
|
3063
3061
|
count = count === VOID ? 9223372036854775807n : count;
|
|
3064
3062
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3065
|
-
_this__u8e3s4.
|
|
3063
|
+
_this__u8e3s4.lq(count);
|
|
3066
3064
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3067
3065
|
var b = get_remaining(_this__u8e3s4);
|
|
3068
3066
|
var countToDiscard = count <= b ? count : b;
|
|
3069
|
-
_this__u8e3s4.
|
|
3067
|
+
_this__u8e3s4.iq().gr(countToDiscard);
|
|
3070
3068
|
return countToDiscard;
|
|
3071
3069
|
}
|
|
3072
3070
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -3079,37 +3077,37 @@
|
|
|
3079
3077
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3080
3078
|
offset = offset === VOID ? 0 : offset;
|
|
3081
3079
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3082
|
-
var result = _this__u8e3s4.
|
|
3080
|
+
var result = _this__u8e3s4.hr(buffer, offset, offset + length | 0);
|
|
3083
3081
|
return result === -1 ? 0 : result;
|
|
3084
3082
|
}
|
|
3085
3083
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3086
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3084
|
+
charset = charset === VOID ? Charsets_getInstance().c1z_1 : charset;
|
|
3087
3085
|
max = max === VOID ? 2147483647 : max;
|
|
3088
|
-
if (charset.equals(Charsets_getInstance().
|
|
3086
|
+
if (charset.equals(Charsets_getInstance().c1z_1)) {
|
|
3089
3087
|
if (max === 2147483647)
|
|
3090
3088
|
return readString_0(_this__u8e3s4);
|
|
3091
|
-
var tmp0 = _this__u8e3s4.
|
|
3089
|
+
var tmp0 = _this__u8e3s4.iq().l1();
|
|
3092
3090
|
// Inline function 'kotlin.math.min' call
|
|
3093
3091
|
var b = fromInt(max);
|
|
3094
3092
|
var count = tmp0 <= b ? tmp0 : b;
|
|
3095
3093
|
return readString(_this__u8e3s4, count);
|
|
3096
3094
|
}
|
|
3097
|
-
return decode(charset.
|
|
3095
|
+
return decode(charset.f1z(), _this__u8e3s4, max);
|
|
3098
3096
|
}
|
|
3099
3097
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3100
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3101
|
-
if (charset.equals(Charsets_getInstance().
|
|
3098
|
+
charset = charset === VOID ? Charsets_getInstance().c1z_1 : charset;
|
|
3099
|
+
if (charset.equals(Charsets_getInstance().c1z_1))
|
|
3102
3100
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
3103
|
-
return encodeToByteArray_0(charset.
|
|
3101
|
+
return encodeToByteArray_0(charset.g1z(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3104
3102
|
}
|
|
3105
3103
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3106
3104
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3107
3105
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3108
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3109
|
-
if (charset === Charsets_getInstance().
|
|
3106
|
+
charset = charset === VOID ? Charsets_getInstance().c1z_1 : charset;
|
|
3107
|
+
if (charset === Charsets_getInstance().c1z_1) {
|
|
3110
3108
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3111
3109
|
}
|
|
3112
|
-
encodeToImpl(charset.
|
|
3110
|
+
encodeToImpl(charset.g1z(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3113
3111
|
}
|
|
3114
3112
|
function get_ByteArrayPool() {
|
|
3115
3113
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3119,7 +3117,7 @@
|
|
|
3119
3117
|
function ByteArrayPool$1() {
|
|
3120
3118
|
DefaultPool.call(this, 128);
|
|
3121
3119
|
}
|
|
3122
|
-
protoOf(ByteArrayPool$1).
|
|
3120
|
+
protoOf(ByteArrayPool$1).k1z = function () {
|
|
3123
3121
|
return new Int8Array(4096);
|
|
3124
3122
|
};
|
|
3125
3123
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3133,21 +3131,21 @@
|
|
|
3133
3131
|
}
|
|
3134
3132
|
function NoPoolImpl() {
|
|
3135
3133
|
}
|
|
3136
|
-
protoOf(NoPoolImpl).
|
|
3134
|
+
protoOf(NoPoolImpl).s1z = function (instance) {
|
|
3137
3135
|
return Unit_instance;
|
|
3138
3136
|
};
|
|
3139
|
-
protoOf(NoPoolImpl).
|
|
3137
|
+
protoOf(NoPoolImpl).sw = function () {
|
|
3140
3138
|
return Unit_instance;
|
|
3141
3139
|
};
|
|
3142
3140
|
function Companion_3() {
|
|
3143
3141
|
}
|
|
3144
|
-
protoOf(Companion_3).
|
|
3142
|
+
protoOf(Companion_3).t1z = function (name) {
|
|
3145
3143
|
switch (name) {
|
|
3146
3144
|
case 'UTF-8':
|
|
3147
3145
|
case 'utf-8':
|
|
3148
3146
|
case 'UTF8':
|
|
3149
3147
|
case 'utf8':
|
|
3150
|
-
return Charsets_getInstance().
|
|
3148
|
+
return Charsets_getInstance().c1z_1;
|
|
3151
3149
|
}
|
|
3152
3150
|
var tmp;
|
|
3153
3151
|
var tmp_0;
|
|
@@ -3178,11 +3176,11 @@
|
|
|
3178
3176
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3179
3177
|
}
|
|
3180
3178
|
if (tmp) {
|
|
3181
|
-
return Charsets_getInstance().
|
|
3179
|
+
return Charsets_getInstance().d1z_1;
|
|
3182
3180
|
}
|
|
3183
3181
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3184
3182
|
};
|
|
3185
|
-
protoOf(Companion_3).
|
|
3183
|
+
protoOf(Companion_3).u1z = function (charset) {
|
|
3186
3184
|
var tmp;
|
|
3187
3185
|
switch (charset) {
|
|
3188
3186
|
case 'UTF-8':
|
|
@@ -3237,7 +3235,7 @@
|
|
|
3237
3235
|
return Companion_instance_4;
|
|
3238
3236
|
}
|
|
3239
3237
|
function Charset(_name) {
|
|
3240
|
-
this.
|
|
3238
|
+
this.e1z_1 = _name;
|
|
3241
3239
|
}
|
|
3242
3240
|
protoOf(Charset).equals = function (other) {
|
|
3243
3241
|
if (this === other)
|
|
@@ -3246,18 +3244,18 @@
|
|
|
3246
3244
|
return false;
|
|
3247
3245
|
if (!(other instanceof Charset))
|
|
3248
3246
|
THROW_CCE();
|
|
3249
|
-
return this.
|
|
3247
|
+
return this.e1z_1 === other.e1z_1;
|
|
3250
3248
|
};
|
|
3251
3249
|
protoOf(Charset).hashCode = function () {
|
|
3252
|
-
return getStringHashCode(this.
|
|
3250
|
+
return getStringHashCode(this.e1z_1);
|
|
3253
3251
|
};
|
|
3254
3252
|
protoOf(Charset).toString = function () {
|
|
3255
|
-
return this.
|
|
3253
|
+
return this.e1z_1;
|
|
3256
3254
|
};
|
|
3257
3255
|
function Charsets() {
|
|
3258
3256
|
Charsets_instance = this;
|
|
3259
|
-
this.
|
|
3260
|
-
this.
|
|
3257
|
+
this.c1z_1 = new CharsetImpl('UTF-8');
|
|
3258
|
+
this.d1z_1 = new CharsetImpl('ISO-8859-1');
|
|
3261
3259
|
}
|
|
3262
3260
|
var Charsets_instance;
|
|
3263
3261
|
function Charsets_getInstance() {
|
|
@@ -3266,27 +3264,27 @@
|
|
|
3266
3264
|
return Charsets_instance;
|
|
3267
3265
|
}
|
|
3268
3266
|
function CharsetDecoder(_charset) {
|
|
3269
|
-
this.
|
|
3267
|
+
this.v1z_1 = _charset;
|
|
3270
3268
|
}
|
|
3271
3269
|
function MalformedInputException(message) {
|
|
3272
3270
|
IOException_init_$Init$_0(message, this);
|
|
3273
3271
|
captureStack(this, MalformedInputException);
|
|
3274
3272
|
}
|
|
3275
3273
|
function get_name(_this__u8e3s4) {
|
|
3276
|
-
return _this__u8e3s4.
|
|
3274
|
+
return _this__u8e3s4.e1z_1;
|
|
3277
3275
|
}
|
|
3278
3276
|
function isSupported(_this__u8e3s4, name) {
|
|
3279
|
-
return Companion_instance_4.
|
|
3277
|
+
return Companion_instance_4.u1z(name);
|
|
3280
3278
|
}
|
|
3281
3279
|
function forName(_this__u8e3s4, name) {
|
|
3282
|
-
return Companion_instance_4.
|
|
3280
|
+
return Companion_instance_4.t1z(name);
|
|
3283
3281
|
}
|
|
3284
3282
|
function CharsetEncoder(_charset) {
|
|
3285
|
-
this.
|
|
3283
|
+
this.w1z_1 = _charset;
|
|
3286
3284
|
}
|
|
3287
3285
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3288
3286
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3289
|
-
var tmp0 = input.
|
|
3287
|
+
var tmp0 = input.iq().l1();
|
|
3290
3288
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3291
3289
|
var b = fromInt(max);
|
|
3292
3290
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3296,7 +3294,7 @@
|
|
|
3296
3294
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3297
3295
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3298
3296
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3299
|
-
tmp = decoder.
|
|
3297
|
+
tmp = decoder.x1z(array);
|
|
3300
3298
|
} catch ($p) {
|
|
3301
3299
|
var tmp_0;
|
|
3302
3300
|
if ($p instanceof Error) {
|
|
@@ -3318,11 +3316,11 @@
|
|
|
3318
3316
|
var message = 'Failed requirement.';
|
|
3319
3317
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3320
3318
|
}
|
|
3321
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3319
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().d1z_1)) {
|
|
3322
3320
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3323
3321
|
}
|
|
3324
3322
|
// Inline function 'kotlin.require' call
|
|
3325
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3323
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().c1z_1)) {
|
|
3326
3324
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3327
3325
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3328
3326
|
}
|
|
@@ -3332,7 +3330,7 @@
|
|
|
3332
3330
|
var result = encoder.encode(tmp$ret$5);
|
|
3333
3331
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3334
3332
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3335
|
-
dst.
|
|
3333
|
+
dst.vr(result);
|
|
3336
3334
|
return result.length;
|
|
3337
3335
|
}
|
|
3338
3336
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3343,17 +3341,17 @@
|
|
|
3343
3341
|
function CharsetImpl(name) {
|
|
3344
3342
|
Charset.call(this, name);
|
|
3345
3343
|
}
|
|
3346
|
-
protoOf(CharsetImpl).
|
|
3344
|
+
protoOf(CharsetImpl).g1z = function () {
|
|
3347
3345
|
return new CharsetEncoderImpl(this);
|
|
3348
3346
|
};
|
|
3349
|
-
protoOf(CharsetImpl).
|
|
3347
|
+
protoOf(CharsetImpl).f1z = function () {
|
|
3350
3348
|
return new CharsetDecoderImpl(this);
|
|
3351
3349
|
};
|
|
3352
3350
|
function get_charset(_this__u8e3s4) {
|
|
3353
|
-
return _this__u8e3s4.
|
|
3351
|
+
return _this__u8e3s4.v1z_1;
|
|
3354
3352
|
}
|
|
3355
3353
|
function get_charset_0(_this__u8e3s4) {
|
|
3356
|
-
return _this__u8e3s4.
|
|
3354
|
+
return _this__u8e3s4.w1z_1;
|
|
3357
3355
|
}
|
|
3358
3356
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3359
3357
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3372,39 +3370,39 @@
|
|
|
3372
3370
|
}
|
|
3373
3371
|
function CharsetEncoderImpl(charset) {
|
|
3374
3372
|
CharsetEncoder.call(this, charset);
|
|
3375
|
-
this.
|
|
3373
|
+
this.a20_1 = charset;
|
|
3376
3374
|
}
|
|
3377
3375
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3378
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3376
|
+
return 'CharsetEncoderImpl(charset=' + this.a20_1.toString() + ')';
|
|
3379
3377
|
};
|
|
3380
3378
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3381
|
-
return this.
|
|
3379
|
+
return this.a20_1.hashCode();
|
|
3382
3380
|
};
|
|
3383
3381
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3384
3382
|
if (this === other)
|
|
3385
3383
|
return true;
|
|
3386
3384
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3387
3385
|
return false;
|
|
3388
|
-
if (!this.
|
|
3386
|
+
if (!this.a20_1.equals(other.a20_1))
|
|
3389
3387
|
return false;
|
|
3390
3388
|
return true;
|
|
3391
3389
|
};
|
|
3392
3390
|
function CharsetDecoderImpl(charset) {
|
|
3393
3391
|
CharsetDecoder.call(this, charset);
|
|
3394
|
-
this.
|
|
3392
|
+
this.c20_1 = charset;
|
|
3395
3393
|
}
|
|
3396
3394
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3397
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3395
|
+
return 'CharsetDecoderImpl(charset=' + this.c20_1.toString() + ')';
|
|
3398
3396
|
};
|
|
3399
3397
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3400
|
-
return this.
|
|
3398
|
+
return this.c20_1.hashCode();
|
|
3401
3399
|
};
|
|
3402
3400
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3403
3401
|
if (this === other)
|
|
3404
3402
|
return true;
|
|
3405
3403
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3406
3404
|
return false;
|
|
3407
|
-
if (!this.
|
|
3405
|
+
if (!this.c20_1.equals(other.c20_1))
|
|
3408
3406
|
return false;
|
|
3409
3407
|
return true;
|
|
3410
3408
|
};
|
|
@@ -3438,10 +3436,10 @@
|
|
|
3438
3436
|
return this_0;
|
|
3439
3437
|
}
|
|
3440
3438
|
function toKtor$1($this_toKtor) {
|
|
3441
|
-
this.
|
|
3439
|
+
this.d20_1 = $this_toKtor;
|
|
3442
3440
|
}
|
|
3443
|
-
protoOf(toKtor$1).
|
|
3444
|
-
return this.
|
|
3441
|
+
protoOf(toKtor$1).x1z = function (buffer) {
|
|
3442
|
+
return this.d20_1.decode(buffer);
|
|
3445
3443
|
};
|
|
3446
3444
|
function get_ENCODING_ALIASES() {
|
|
3447
3445
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3454,7 +3452,7 @@
|
|
|
3454
3452
|
}
|
|
3455
3453
|
var REPLACEMENT;
|
|
3456
3454
|
function TextDecoderFallback(encoding, fatal) {
|
|
3457
|
-
this.
|
|
3455
|
+
this.e20_1 = fatal;
|
|
3458
3456
|
// Inline function 'kotlin.text.trim' call
|
|
3459
3457
|
// Inline function 'kotlin.text.lowercase' call
|
|
3460
3458
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3465,7 +3463,7 @@
|
|
|
3465
3463
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3466
3464
|
}
|
|
3467
3465
|
}
|
|
3468
|
-
protoOf(TextDecoderFallback).
|
|
3466
|
+
protoOf(TextDecoderFallback).x1z = function (buffer) {
|
|
3469
3467
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3470
3468
|
var builder = new Buffer();
|
|
3471
3469
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3481,7 +3479,7 @@
|
|
|
3481
3479
|
var point = toCodePoint(byte);
|
|
3482
3480
|
if (point < 0) {
|
|
3483
3481
|
// Inline function 'kotlin.check' call
|
|
3484
|
-
if (!!this.
|
|
3482
|
+
if (!!this.e20_1) {
|
|
3485
3483
|
var message = 'Invalid character: ' + point;
|
|
3486
3484
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3487
3485
|
}
|
|
@@ -3489,9 +3487,9 @@
|
|
|
3489
3487
|
continue $l$loop;
|
|
3490
3488
|
}
|
|
3491
3489
|
if (point > 255) {
|
|
3492
|
-
builder.
|
|
3490
|
+
builder.cs(toByte(point >> 8));
|
|
3493
3491
|
}
|
|
3494
|
-
builder.
|
|
3492
|
+
builder.cs(toByte(point & 255));
|
|
3495
3493
|
}
|
|
3496
3494
|
while (inductionVariable < last);
|
|
3497
3495
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3521,7 +3519,7 @@
|
|
|
3521
3519
|
return false;
|
|
3522
3520
|
}
|
|
3523
3521
|
function ioDispatcher() {
|
|
3524
|
-
return Dispatchers_getInstance().
|
|
3522
|
+
return Dispatchers_getInstance().k16_1;
|
|
3525
3523
|
}
|
|
3526
3524
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3527
3525
|
if (fromIndex >= toIndex)
|
|
@@ -3537,7 +3535,7 @@
|
|
|
3537
3535
|
if (character > 255) {
|
|
3538
3536
|
failedToMapError(character);
|
|
3539
3537
|
}
|
|
3540
|
-
dst.
|
|
3538
|
+
dst.cs(toByte(character));
|
|
3541
3539
|
}
|
|
3542
3540
|
while (inductionVariable < toIndex);
|
|
3543
3541
|
return toIndex - fromIndex | 0;
|
|
@@ -3559,64 +3557,64 @@
|
|
|
3559
3557
|
}
|
|
3560
3558
|
}
|
|
3561
3559
|
function DefaultPool(capacity) {
|
|
3562
|
-
this.
|
|
3560
|
+
this.l1z_1 = capacity;
|
|
3563
3561
|
var tmp = this;
|
|
3564
3562
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3565
|
-
var size = this.
|
|
3566
|
-
tmp.
|
|
3567
|
-
this.
|
|
3563
|
+
var size = this.l1z_1;
|
|
3564
|
+
tmp.m1z_1 = Array(size);
|
|
3565
|
+
this.n1z_1 = 0;
|
|
3568
3566
|
}
|
|
3569
|
-
protoOf(DefaultPool).
|
|
3567
|
+
protoOf(DefaultPool).o1z = function (instance) {
|
|
3570
3568
|
};
|
|
3571
|
-
protoOf(DefaultPool).
|
|
3569
|
+
protoOf(DefaultPool).p1z = function (instance) {
|
|
3572
3570
|
return instance;
|
|
3573
3571
|
};
|
|
3574
|
-
protoOf(DefaultPool).
|
|
3572
|
+
protoOf(DefaultPool).q1z = function (instance) {
|
|
3575
3573
|
};
|
|
3576
|
-
protoOf(DefaultPool).
|
|
3577
|
-
if (this.
|
|
3578
|
-
return this.
|
|
3579
|
-
this.
|
|
3580
|
-
var idx = this.
|
|
3581
|
-
var tmp = this.
|
|
3574
|
+
protoOf(DefaultPool).r1z = function () {
|
|
3575
|
+
if (this.n1z_1 === 0)
|
|
3576
|
+
return this.k1z();
|
|
3577
|
+
this.n1z_1 = this.n1z_1 - 1 | 0;
|
|
3578
|
+
var idx = this.n1z_1;
|
|
3579
|
+
var tmp = this.m1z_1[idx];
|
|
3582
3580
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3583
|
-
this.
|
|
3584
|
-
return this.
|
|
3581
|
+
this.m1z_1[idx] = null;
|
|
3582
|
+
return this.p1z(instance);
|
|
3585
3583
|
};
|
|
3586
|
-
protoOf(DefaultPool).
|
|
3587
|
-
this.
|
|
3588
|
-
if (this.
|
|
3589
|
-
this.
|
|
3584
|
+
protoOf(DefaultPool).s1z = function (instance) {
|
|
3585
|
+
this.q1z(instance);
|
|
3586
|
+
if (this.n1z_1 === this.l1z_1) {
|
|
3587
|
+
this.o1z(instance);
|
|
3590
3588
|
} else {
|
|
3591
|
-
var _unary__edvuaz = this.
|
|
3592
|
-
this.
|
|
3593
|
-
this.
|
|
3589
|
+
var _unary__edvuaz = this.n1z_1;
|
|
3590
|
+
this.n1z_1 = _unary__edvuaz + 1 | 0;
|
|
3591
|
+
this.m1z_1[_unary__edvuaz] = instance;
|
|
3594
3592
|
}
|
|
3595
3593
|
};
|
|
3596
|
-
protoOf(DefaultPool).
|
|
3594
|
+
protoOf(DefaultPool).sw = function () {
|
|
3597
3595
|
var inductionVariable = 0;
|
|
3598
|
-
var last = this.
|
|
3596
|
+
var last = this.n1z_1;
|
|
3599
3597
|
if (inductionVariable < last)
|
|
3600
3598
|
do {
|
|
3601
3599
|
var i = inductionVariable;
|
|
3602
3600
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3603
|
-
var tmp = this.
|
|
3601
|
+
var tmp = this.m1z_1[i];
|
|
3604
3602
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3605
|
-
this.
|
|
3606
|
-
this.
|
|
3603
|
+
this.m1z_1[i] = null;
|
|
3604
|
+
this.o1z(instance);
|
|
3607
3605
|
}
|
|
3608
3606
|
while (inductionVariable < last);
|
|
3609
|
-
this.
|
|
3607
|
+
this.n1z_1 = 0;
|
|
3610
3608
|
};
|
|
3611
3609
|
//region block: post-declaration
|
|
3612
|
-
protoOf(Read).
|
|
3613
|
-
protoOf(Read).
|
|
3614
|
-
protoOf(Write).
|
|
3615
|
-
protoOf(Write).
|
|
3616
|
-
protoOf(ByteChannel).
|
|
3617
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3618
|
-
protoOf(CountedByteReadChannel).
|
|
3619
|
-
protoOf(SourceByteReadChannel).
|
|
3610
|
+
protoOf(Read).x1m = resume;
|
|
3611
|
+
protoOf(Read).y1m = resume_0;
|
|
3612
|
+
protoOf(Write).x1m = resume;
|
|
3613
|
+
protoOf(Write).y1m = resume_0;
|
|
3614
|
+
protoOf(ByteChannel).d1p = awaitContent$default;
|
|
3615
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d1p = awaitContent$default;
|
|
3616
|
+
protoOf(CountedByteReadChannel).d1p = awaitContent$default;
|
|
3617
|
+
protoOf(SourceByteReadChannel).d1p = awaitContent$default;
|
|
3620
3618
|
protoOf(DefaultPool).o4 = close;
|
|
3621
3619
|
protoOf(NoPoolImpl).o4 = close;
|
|
3622
3620
|
//endregion
|
|
@@ -3627,23 +3625,23 @@
|
|
|
3627
3625
|
//endregion
|
|
3628
3626
|
//region block: exports
|
|
3629
3627
|
_.$_$ = _.$_$ || {};
|
|
3630
|
-
_.$_$.a =
|
|
3631
|
-
_.$_$.b =
|
|
3632
|
-
_.$_$.c =
|
|
3633
|
-
_.$_$.d =
|
|
3634
|
-
_.$_$.e =
|
|
3635
|
-
_.$_$.f =
|
|
3636
|
-
_.$_$.g =
|
|
3637
|
-
_.$_$.h =
|
|
3638
|
-
_.$_$.i =
|
|
3639
|
-
_.$_$.j =
|
|
3640
|
-
_.$_$.k =
|
|
3641
|
-
_.$_$.l =
|
|
3642
|
-
_.$_$.m =
|
|
3643
|
-
_.$_$.n =
|
|
3644
|
-
_.$_$.o =
|
|
3645
|
-
_.$_$.p =
|
|
3646
|
-
_.$_$.q =
|
|
3628
|
+
_.$_$.a = LineEndingMode__plus_impl_ttpz2j;
|
|
3629
|
+
_.$_$.b = Charsets_getInstance;
|
|
3630
|
+
_.$_$.c = Companion_getInstance_0;
|
|
3631
|
+
_.$_$.d = Companion_getInstance_2;
|
|
3632
|
+
_.$_$.e = copyTo;
|
|
3633
|
+
_.$_$.f = discard;
|
|
3634
|
+
_.$_$.g = readAvailable;
|
|
3635
|
+
_.$_$.h = readBuffer;
|
|
3636
|
+
_.$_$.i = readLineStrictTo;
|
|
3637
|
+
_.$_$.j = readPacket;
|
|
3638
|
+
_.$_$.k = readRemaining;
|
|
3639
|
+
_.$_$.l = readRemaining_0;
|
|
3640
|
+
_.$_$.m = readUntil;
|
|
3641
|
+
_.$_$.n = skipIfFound;
|
|
3642
|
+
_.$_$.o = toByteArray;
|
|
3643
|
+
_.$_$.p = writeFully;
|
|
3644
|
+
_.$_$.q = writePacket;
|
|
3647
3645
|
_.$_$.r = MalformedInputException;
|
|
3648
3646
|
_.$_$.s = decode;
|
|
3649
3647
|
_.$_$.t = encode;
|