@doordeck/doordeck-headless-sdk 0.200.0 → 0.202.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 +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +26 -0
- package/kotlin/doordeck-sdk.js +13201 -12566
- package/kotlin/kotlin-kotlin-stdlib.js +2784 -2211
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2831 -2753
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +487 -487
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1918 -1918
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1540 -1540
- package/kotlin/ktor-ktor-client-auth.js +461 -461
- package/kotlin/ktor-ktor-client-content-negotiation.js +217 -217
- package/kotlin/ktor-ktor-client-core.js +3364 -3349
- package/kotlin/ktor-ktor-client-logging.js +1128 -1128
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +548 -548
- package/kotlin/ktor-ktor-http.js +834 -832
- package/kotlin/ktor-ktor-io.js +1373 -1181
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +327 -254
- package/kotlin/ktor-ktor-serialization.js +119 -119
- package/kotlin/ktor-ktor-utils.js +1169 -1134
- package/kotlin/ktor-ktor-websockets.js +790 -792
- package/package.json +1 -1
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -3,101 +3,103 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var Companion_instance = kotlin_kotlin.$_$.v;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
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.$_$.
|
|
6
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.p3;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.kh;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.ib;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.yg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.fg;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nb;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.df;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.cc;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.ih;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.c;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
22
|
+
var FunctionAdapter = kotlin_kotlin.$_$.oa;
|
|
23
|
+
var DisposableHandle = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s1;
|
|
24
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
25
|
+
var fromInt = kotlin_kotlin.$_$.da;
|
|
26
|
+
var numberToLong = kotlin_kotlin.$_$.ja;
|
|
27
|
+
var add = kotlin_kotlin.$_$.y9;
|
|
28
|
+
var intercepted = kotlin_kotlin.$_$.e9;
|
|
27
29
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
30
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.gh;
|
|
29
31
|
var returnIfSuspended = kotlin_kotlin.$_$.h1;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
32
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
33
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
32
34
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
33
35
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
37
|
+
var CancellationException = kotlin_kotlin.$_$.a9;
|
|
38
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
39
|
+
var convertToInt = kotlin_kotlin.$_$.aa;
|
|
40
|
+
var toString_1 = kotlin_kotlin.$_$.jc;
|
|
41
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
|
|
42
|
+
var IllegalStateException = kotlin_kotlin.$_$.cg;
|
|
43
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.u2;
|
|
44
|
+
var captureStack = kotlin_kotlin.$_$.sa;
|
|
38
45
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
39
46
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
|
-
var replace = kotlin_kotlin.$_$.
|
|
47
|
+
var replace = kotlin_kotlin.$_$.de;
|
|
41
48
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
44
|
-
var
|
|
45
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o2;
|
|
49
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
50
|
+
var get_ONE = kotlin_kotlin.$_$.x9;
|
|
51
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p2;
|
|
46
52
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
47
53
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
48
|
-
var subtract = kotlin_kotlin.$_$.
|
|
54
|
+
var subtract = kotlin_kotlin.$_$.ma;
|
|
49
55
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
50
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.s2;
|
|
51
56
|
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.e;
|
|
52
57
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
53
58
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g1;
|
|
54
59
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
55
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
60
|
+
var Continuation = kotlin_kotlin.$_$.m9;
|
|
61
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.mb;
|
|
57
62
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a2;
|
|
58
63
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
59
64
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z1;
|
|
60
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
61
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.a2;
|
|
62
|
-
var CancellationException = kotlin_kotlin.$_$.z8;
|
|
63
|
-
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n1;
|
|
65
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
64
66
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
65
67
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
66
68
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
67
|
-
var Enum = kotlin_kotlin.$_$.
|
|
69
|
+
var Enum = kotlin_kotlin.$_$.yf;
|
|
68
70
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
69
|
-
var listOf = kotlin_kotlin.$_$.
|
|
71
|
+
var listOf = kotlin_kotlin.$_$.t7;
|
|
70
72
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
71
73
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d2;
|
|
72
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
74
|
+
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
73
75
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
74
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
76
|
+
var encodeToByteArray = kotlin_kotlin.$_$.nd;
|
|
75
77
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
76
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
77
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
78
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
79
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
78
|
+
var AutoCloseable = kotlin_kotlin.$_$.rf;
|
|
79
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.h3;
|
|
80
|
+
var replace_0 = kotlin_kotlin.$_$.ee;
|
|
81
|
+
var getStringHashCode = kotlin_kotlin.$_$.hb;
|
|
80
82
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
81
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
83
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.ya;
|
|
82
84
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
83
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
84
|
-
var trim = kotlin_kotlin.$_$.
|
|
85
|
-
var toByte = kotlin_kotlin.$_$.
|
|
86
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
87
|
-
var setOf = kotlin_kotlin.$_$.
|
|
85
|
+
var isCharSequence = kotlin_kotlin.$_$.ub;
|
|
86
|
+
var trim = kotlin_kotlin.$_$.lf;
|
|
87
|
+
var toByte = kotlin_kotlin.$_$.hc;
|
|
88
|
+
var decodeToString_0 = kotlin_kotlin.$_$.ld;
|
|
89
|
+
var setOf = kotlin_kotlin.$_$.f8;
|
|
88
90
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
89
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
90
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
91
|
+
var charSequenceGet = kotlin_kotlin.$_$.wa;
|
|
92
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.n3;
|
|
91
93
|
//endregion
|
|
92
94
|
//region block: pre-declaration
|
|
93
95
|
initMetadataForCompanion(Companion);
|
|
94
96
|
initMetadataForObject(Empty, 'Empty');
|
|
95
97
|
initMetadataForClass(Closed, 'Closed');
|
|
96
98
|
function resume() {
|
|
97
|
-
return this.
|
|
99
|
+
return this.r1m().o9(Companion_getInstance().o1m_1);
|
|
98
100
|
}
|
|
99
101
|
function resume_0(throwable) {
|
|
100
|
-
var tmp = this.
|
|
102
|
+
var tmp = this.r1m();
|
|
101
103
|
var tmp_0;
|
|
102
104
|
if (throwable == null) {
|
|
103
105
|
tmp_0 = null;
|
|
@@ -108,17 +110,18 @@
|
|
|
108
110
|
tmp_0 = new Result(tmp$ret$0);
|
|
109
111
|
}
|
|
110
112
|
var tmp1_elvis_lhs = tmp_0;
|
|
111
|
-
return tmp.
|
|
113
|
+
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().o1m_1 : tmp1_elvis_lhs.rn_1);
|
|
112
114
|
}
|
|
113
115
|
initMetadataForInterface(Task, 'Task');
|
|
114
116
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
115
117
|
initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
|
|
118
|
+
initMetadataForClass(sam$kotlinx_coroutines_DisposableHandle$0, 'sam$kotlinx_coroutines_DisposableHandle$0', VOID, VOID, [DisposableHandle, FunctionAdapter]);
|
|
116
119
|
initMetadataForCoroutine($awaitContentCOROUTINE$, CoroutineImpl);
|
|
117
120
|
initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
|
|
118
121
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
119
122
|
function awaitContent$default(min, $completion, $super) {
|
|
120
123
|
min = min === VOID ? 1 : min;
|
|
121
|
-
return $super === VOID ? this.
|
|
124
|
+
return $super === VOID ? this.y1o(min, $completion) : $super.y1o.call(this, min, $completion);
|
|
122
125
|
}
|
|
123
126
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
124
127
|
function get_autoFlush() {
|
|
@@ -152,6 +155,7 @@
|
|
|
152
155
|
initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
|
|
153
156
|
initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
|
|
154
157
|
initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
|
|
158
|
+
initMetadataForCompanion(Companion_1);
|
|
155
159
|
initMetadataForClass(CloseToken, 'CloseToken');
|
|
156
160
|
initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
|
|
157
161
|
initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
@@ -159,19 +163,19 @@
|
|
|
159
163
|
initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
|
|
160
164
|
initMetadataForClass(ClosedWriteChannelException, 'ClosedWriteChannelException', ClosedWriteChannelException, ClosedByteChannelException);
|
|
161
165
|
initMetadataForClass(LineEnding, 'LineEnding', VOID, Enum);
|
|
162
|
-
initMetadataForCompanion(
|
|
166
|
+
initMetadataForCompanion(Companion_2);
|
|
163
167
|
initMetadataForClass(LineEndingMode, 'LineEndingMode');
|
|
164
168
|
initMetadataForClass(SourceByteReadChannel, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
|
|
165
169
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
166
170
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
167
171
|
function close() {
|
|
168
|
-
this.
|
|
172
|
+
this.ow();
|
|
169
173
|
}
|
|
170
174
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
171
175
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
172
176
|
initMetadataForClass(ByteArrayPool$1, VOID, VOID, DefaultPool);
|
|
173
177
|
initMetadataForClass(NoPoolImpl, 'NoPoolImpl', VOID, VOID, [ObjectPool]);
|
|
174
|
-
initMetadataForCompanion(
|
|
178
|
+
initMetadataForCompanion(Companion_3);
|
|
175
179
|
initMetadataForClass(Charset, 'Charset');
|
|
176
180
|
initMetadataForObject(Charsets, 'Charsets');
|
|
177
181
|
initMetadataForClass(CharsetDecoder, 'CharsetDecoder');
|
|
@@ -184,10 +188,10 @@
|
|
|
184
188
|
//endregion
|
|
185
189
|
function Companion() {
|
|
186
190
|
Companion_instance_0 = this;
|
|
187
|
-
this.
|
|
191
|
+
this.n1m_1 = new Closed(null);
|
|
188
192
|
var tmp = this;
|
|
189
193
|
// Inline function 'kotlin.Companion.success' call
|
|
190
|
-
tmp.
|
|
194
|
+
tmp.o1m_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
191
195
|
}
|
|
192
196
|
var Companion_instance_0;
|
|
193
197
|
function Companion_getInstance() {
|
|
@@ -215,149 +219,179 @@
|
|
|
215
219
|
return Empty_instance;
|
|
216
220
|
}
|
|
217
221
|
function Closed(cause) {
|
|
218
|
-
this.
|
|
222
|
+
this.p1m_1 = cause;
|
|
219
223
|
}
|
|
220
224
|
protoOf(Closed).toString = function () {
|
|
221
|
-
return 'Closed(cause=' + toString(this.
|
|
225
|
+
return 'Closed(cause=' + toString(this.p1m_1) + ')';
|
|
222
226
|
};
|
|
223
227
|
protoOf(Closed).hashCode = function () {
|
|
224
|
-
return this.
|
|
228
|
+
return this.p1m_1 == null ? 0 : hashCode(this.p1m_1);
|
|
225
229
|
};
|
|
226
230
|
protoOf(Closed).equals = function (other) {
|
|
227
231
|
if (this === other)
|
|
228
232
|
return true;
|
|
229
233
|
if (!(other instanceof Closed))
|
|
230
234
|
return false;
|
|
231
|
-
if (!equals(this.
|
|
235
|
+
if (!equals(this.p1m_1, other.p1m_1))
|
|
232
236
|
return false;
|
|
233
237
|
return true;
|
|
234
238
|
};
|
|
235
239
|
function Task() {
|
|
236
240
|
}
|
|
237
241
|
function Read(continuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
242
|
+
this.v1m_1 = continuation;
|
|
243
|
+
this.w1m_1 = null;
|
|
240
244
|
if (get_DEVELOPMENT_MODE()) {
|
|
241
245
|
var tmp = this;
|
|
242
246
|
// Inline function 'kotlin.also' call
|
|
243
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
247
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.v1m_1), 16));
|
|
244
248
|
stackTraceToString(this_0);
|
|
245
|
-
tmp.
|
|
249
|
+
tmp.w1m_1 = this_0;
|
|
246
250
|
}
|
|
247
251
|
}
|
|
248
|
-
protoOf(Read).
|
|
249
|
-
return this.
|
|
252
|
+
protoOf(Read).r1m = function () {
|
|
253
|
+
return this.v1m_1;
|
|
250
254
|
};
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
255
|
+
protoOf(Read).q1m = function () {
|
|
256
|
+
return this.w1m_1;
|
|
253
257
|
};
|
|
254
|
-
protoOf(Read).
|
|
258
|
+
protoOf(Read).s1m = function () {
|
|
255
259
|
return 'read';
|
|
256
260
|
};
|
|
257
261
|
function Write(continuation) {
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
262
|
+
this.x1m_1 = continuation;
|
|
263
|
+
this.y1m_1 = null;
|
|
260
264
|
if (get_DEVELOPMENT_MODE()) {
|
|
261
265
|
var tmp = this;
|
|
262
266
|
// Inline function 'kotlin.also' call
|
|
263
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
267
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.x1m_1), 16));
|
|
264
268
|
stackTraceToString(this_0);
|
|
265
|
-
tmp.
|
|
269
|
+
tmp.y1m_1 = this_0;
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
|
-
protoOf(Write).
|
|
269
|
-
return this.
|
|
272
|
+
protoOf(Write).r1m = function () {
|
|
273
|
+
return this.x1m_1;
|
|
270
274
|
};
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
275
|
+
protoOf(Write).q1m = function () {
|
|
276
|
+
return this.y1m_1;
|
|
273
277
|
};
|
|
274
|
-
protoOf(Write).
|
|
278
|
+
protoOf(Write).s1m = function () {
|
|
275
279
|
return 'write';
|
|
276
280
|
};
|
|
277
281
|
function moveFlushToReadBuffer($this) {
|
|
278
282
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
279
|
-
$this.
|
|
280
|
-
$this.
|
|
281
|
-
$this.
|
|
283
|
+
$this.c1n_1;
|
|
284
|
+
$this.a1n_1.ir($this.e1n_1);
|
|
285
|
+
$this.b1n_1 = 0;
|
|
282
286
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
283
|
-
var current = $this.
|
|
287
|
+
var current = $this.d1n_1.kotlinx$atomicfu$value;
|
|
284
288
|
var tmp;
|
|
285
289
|
if (current instanceof Write) {
|
|
286
|
-
tmp = $this.
|
|
290
|
+
tmp = $this.d1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
287
291
|
} else {
|
|
288
292
|
tmp = false;
|
|
289
293
|
}
|
|
290
294
|
if (tmp) {
|
|
291
|
-
current.
|
|
295
|
+
current.t1m();
|
|
292
296
|
}
|
|
293
297
|
}
|
|
294
298
|
function closeSlot($this, cause) {
|
|
295
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
296
|
-
var continuation = $this.
|
|
299
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().n1m_1;
|
|
300
|
+
var continuation = $this.d1n_1.atomicfu$getAndSet(closeContinuation);
|
|
297
301
|
if (isInterface(continuation, Task)) {
|
|
298
|
-
continuation.
|
|
302
|
+
continuation.u1m(cause);
|
|
299
303
|
}
|
|
304
|
+
var tmp0_safe_receiver = $this.h1n_1.atomicfu$getAndSet(null);
|
|
305
|
+
if (tmp0_safe_receiver == null)
|
|
306
|
+
null;
|
|
307
|
+
else
|
|
308
|
+
tmp0_safe_receiver(cause);
|
|
300
309
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
310
|
+
function sam$kotlinx_coroutines_DisposableHandle$0(function_0) {
|
|
311
|
+
this.i1n_1 = function_0;
|
|
312
|
+
}
|
|
313
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).ow = function () {
|
|
314
|
+
return this.i1n_1();
|
|
315
|
+
};
|
|
316
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).q3 = function () {
|
|
317
|
+
return this.i1n_1;
|
|
318
|
+
};
|
|
319
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).equals = function (other) {
|
|
320
|
+
var tmp;
|
|
321
|
+
if (!(other == null) ? isInterface(other, DisposableHandle) : false) {
|
|
322
|
+
var tmp_0;
|
|
323
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
324
|
+
tmp_0 = equals(this.q3(), other.q3());
|
|
325
|
+
} else {
|
|
326
|
+
tmp_0 = false;
|
|
327
|
+
}
|
|
328
|
+
tmp = tmp_0;
|
|
329
|
+
} else {
|
|
330
|
+
tmp = false;
|
|
331
|
+
}
|
|
332
|
+
return tmp;
|
|
333
|
+
};
|
|
334
|
+
protoOf(sam$kotlinx_coroutines_DisposableHandle$0).hashCode = function () {
|
|
335
|
+
return hashCode(this.q3());
|
|
336
|
+
};
|
|
337
|
+
function ByteChannel$invokeOnClose$lambda() {
|
|
338
|
+
return Unit_instance;
|
|
339
|
+
}
|
|
340
|
+
function ByteChannel$invokeOnClose$lambda_0() {
|
|
341
|
+
return Unit_instance;
|
|
307
342
|
}
|
|
308
|
-
function
|
|
309
|
-
|
|
310
|
-
|
|
343
|
+
function ByteChannel$invokeOnClose$lambda_1(this$0, $handler) {
|
|
344
|
+
return function () {
|
|
345
|
+
this$0.h1n_1.atomicfu$compareAndSet($handler, null);
|
|
346
|
+
return Unit_instance;
|
|
311
347
|
};
|
|
312
|
-
l.callableName = '<init>';
|
|
313
|
-
return l;
|
|
314
348
|
}
|
|
315
349
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
316
350
|
CoroutineImpl.call(this, resultContinuation);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
351
|
+
this.r1n_1 = _this__u8e3s4;
|
|
352
|
+
this.s1n_1 = min;
|
|
319
353
|
}
|
|
320
|
-
protoOf($awaitContentCOROUTINE$).
|
|
321
|
-
var suspendResult = this.
|
|
354
|
+
protoOf($awaitContentCOROUTINE$).l9 = function () {
|
|
355
|
+
var suspendResult = this.f9_1;
|
|
322
356
|
$sm: do
|
|
323
357
|
try {
|
|
324
|
-
var tmp = this.
|
|
358
|
+
var tmp = this.d9_1;
|
|
325
359
|
switch (tmp) {
|
|
326
360
|
case 0:
|
|
327
|
-
this.
|
|
328
|
-
|
|
329
|
-
if (this.
|
|
361
|
+
this.e9_1 = 4;
|
|
362
|
+
rethrowCloseCauseIfNeeded_0(this.r1n_1);
|
|
363
|
+
if (this.r1n_1.e1n_1.l1() >= fromInt(this.s1n_1))
|
|
330
364
|
return true;
|
|
331
|
-
this.
|
|
332
|
-
this.
|
|
365
|
+
this.t1n_1 = this.r1n_1;
|
|
366
|
+
this.d9_1 = 1;
|
|
333
367
|
continue $sm;
|
|
334
368
|
case 1:
|
|
335
|
-
if (!(add(numberToLong(this.
|
|
336
|
-
this.
|
|
369
|
+
if (!(add(numberToLong(this.r1n_1.b1n_1), this.r1n_1.e1n_1.l1()) < fromInt(this.s1n_1) && this.r1n_1.g1n_1.kotlinx$atomicfu$value == null)) {
|
|
370
|
+
this.d9_1 = 3;
|
|
337
371
|
continue $sm;
|
|
338
372
|
}
|
|
339
373
|
|
|
340
|
-
this.
|
|
374
|
+
this.d9_1 = 2;
|
|
341
375
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
342
|
-
cancellable.
|
|
343
|
-
var tmp0 = this.
|
|
376
|
+
cancellable.rx();
|
|
377
|
+
var tmp0 = this.t1n_1;
|
|
344
378
|
var tmp2 = new Read(cancellable);
|
|
345
379
|
l$ret$1: do {
|
|
346
|
-
var previous = tmp0.
|
|
380
|
+
var previous = tmp0.d1n_1.kotlinx$atomicfu$value;
|
|
347
381
|
if (!(previous instanceof Closed)) {
|
|
348
|
-
if (!tmp0.
|
|
349
|
-
tmp2.
|
|
382
|
+
if (!tmp0.d1n_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
383
|
+
tmp2.t1m();
|
|
350
384
|
break l$ret$1;
|
|
351
385
|
}
|
|
352
386
|
}
|
|
353
387
|
if (previous instanceof Read) {
|
|
354
|
-
previous.
|
|
388
|
+
previous.u1m(new ConcurrentIOException(tmp2.s1m(), previous.q1m()));
|
|
355
389
|
} else {
|
|
356
390
|
if (isInterface(previous, Task)) {
|
|
357
|
-
previous.
|
|
391
|
+
previous.t1m();
|
|
358
392
|
} else {
|
|
359
393
|
if (previous instanceof Closed) {
|
|
360
|
-
tmp2.
|
|
394
|
+
tmp2.u1m(previous.p1m_1);
|
|
361
395
|
break l$ret$1;
|
|
362
396
|
} else {
|
|
363
397
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -366,95 +400,95 @@
|
|
|
366
400
|
}
|
|
367
401
|
}
|
|
368
402
|
}
|
|
369
|
-
if (!(add(numberToLong(this.
|
|
370
|
-
var current = tmp0.
|
|
403
|
+
if (!(add(numberToLong(this.r1n_1.b1n_1), this.r1n_1.e1n_1.l1()) < fromInt(this.s1n_1) && this.r1n_1.g1n_1.kotlinx$atomicfu$value == null)) {
|
|
404
|
+
var current = tmp0.d1n_1.kotlinx$atomicfu$value;
|
|
371
405
|
var tmp_0;
|
|
372
406
|
if (current instanceof Read) {
|
|
373
|
-
tmp_0 = tmp0.
|
|
407
|
+
tmp_0 = tmp0.d1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
374
408
|
} else {
|
|
375
409
|
tmp_0 = false;
|
|
376
410
|
}
|
|
377
411
|
if (tmp_0) {
|
|
378
|
-
current.
|
|
412
|
+
current.t1m();
|
|
379
413
|
}
|
|
380
414
|
}
|
|
381
415
|
}
|
|
382
416
|
while (false);
|
|
383
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
417
|
+
suspendResult = returnIfSuspended(cancellable.sx(), this);
|
|
384
418
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
385
419
|
return suspendResult;
|
|
386
420
|
}
|
|
387
421
|
|
|
388
422
|
continue $sm;
|
|
389
423
|
case 2:
|
|
390
|
-
this.
|
|
424
|
+
this.d9_1 = 1;
|
|
391
425
|
continue $sm;
|
|
392
426
|
case 3:
|
|
393
|
-
if (this.
|
|
394
|
-
moveFlushToReadBuffer(this.
|
|
427
|
+
if (this.r1n_1.e1n_1.l1() < 1048576n) {
|
|
428
|
+
moveFlushToReadBuffer(this.r1n_1);
|
|
395
429
|
}
|
|
396
430
|
|
|
397
|
-
return this.
|
|
431
|
+
return this.r1n_1.e1n_1.l1() >= fromInt(this.s1n_1);
|
|
398
432
|
case 4:
|
|
399
|
-
throw this.
|
|
433
|
+
throw this.g9_1;
|
|
400
434
|
}
|
|
401
435
|
} catch ($p) {
|
|
402
436
|
var e = $p;
|
|
403
|
-
if (this.
|
|
437
|
+
if (this.e9_1 === 4) {
|
|
404
438
|
throw e;
|
|
405
439
|
} else {
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
440
|
+
this.d9_1 = this.e9_1;
|
|
441
|
+
this.g9_1 = e;
|
|
408
442
|
}
|
|
409
443
|
}
|
|
410
444
|
while (true);
|
|
411
445
|
};
|
|
412
446
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
413
447
|
CoroutineImpl.call(this, resultContinuation);
|
|
414
|
-
this.
|
|
448
|
+
this.c1o_1 = _this__u8e3s4;
|
|
415
449
|
}
|
|
416
|
-
protoOf($flushCOROUTINE$).
|
|
417
|
-
var suspendResult = this.
|
|
450
|
+
protoOf($flushCOROUTINE$).l9 = function () {
|
|
451
|
+
var suspendResult = this.f9_1;
|
|
418
452
|
$sm: do
|
|
419
453
|
try {
|
|
420
|
-
var tmp = this.
|
|
454
|
+
var tmp = this.d9_1;
|
|
421
455
|
switch (tmp) {
|
|
422
456
|
case 0:
|
|
423
|
-
this.
|
|
424
|
-
|
|
425
|
-
this.
|
|
426
|
-
if (this.
|
|
457
|
+
this.e9_1 = 4;
|
|
458
|
+
rethrowCloseCauseIfNeeded_0(this.c1o_1);
|
|
459
|
+
this.c1o_1.e1o();
|
|
460
|
+
if (this.c1o_1.f1o())
|
|
427
461
|
return Unit_instance;
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
462
|
+
this.d1o_1 = this.c1o_1;
|
|
463
|
+
this.d9_1 = 1;
|
|
430
464
|
continue $sm;
|
|
431
465
|
case 1:
|
|
432
|
-
if (!(this.
|
|
433
|
-
this.
|
|
466
|
+
if (!(!this.c1o_1.f1o() && this.c1o_1.g1n_1.kotlinx$atomicfu$value == null)) {
|
|
467
|
+
this.d9_1 = 3;
|
|
434
468
|
continue $sm;
|
|
435
469
|
}
|
|
436
470
|
|
|
437
|
-
this.
|
|
471
|
+
this.d9_1 = 2;
|
|
438
472
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
439
|
-
cancellable.
|
|
440
|
-
var tmp0 = this.
|
|
473
|
+
cancellable.rx();
|
|
474
|
+
var tmp0 = this.d1o_1;
|
|
441
475
|
var tmp2 = new Write(cancellable);
|
|
442
476
|
l$ret$1: do {
|
|
443
|
-
var previous = tmp0.
|
|
477
|
+
var previous = tmp0.d1n_1.kotlinx$atomicfu$value;
|
|
444
478
|
if (!(previous instanceof Closed)) {
|
|
445
|
-
if (!tmp0.
|
|
446
|
-
tmp2.
|
|
479
|
+
if (!tmp0.d1n_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
480
|
+
tmp2.t1m();
|
|
447
481
|
break l$ret$1;
|
|
448
482
|
}
|
|
449
483
|
}
|
|
450
484
|
if (previous instanceof Write) {
|
|
451
|
-
previous.
|
|
485
|
+
previous.u1m(new ConcurrentIOException(tmp2.s1m(), previous.q1m()));
|
|
452
486
|
} else {
|
|
453
487
|
if (isInterface(previous, Task)) {
|
|
454
|
-
previous.
|
|
488
|
+
previous.t1m();
|
|
455
489
|
} else {
|
|
456
490
|
if (previous instanceof Closed) {
|
|
457
|
-
tmp2.
|
|
491
|
+
tmp2.u1m(previous.p1m_1);
|
|
458
492
|
break l$ret$1;
|
|
459
493
|
} else {
|
|
460
494
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -463,62 +497,62 @@
|
|
|
463
497
|
}
|
|
464
498
|
}
|
|
465
499
|
}
|
|
466
|
-
if (!(this.
|
|
467
|
-
var current = tmp0.
|
|
500
|
+
if (!(!this.c1o_1.f1o() && this.c1o_1.g1n_1.kotlinx$atomicfu$value == null)) {
|
|
501
|
+
var current = tmp0.d1n_1.kotlinx$atomicfu$value;
|
|
468
502
|
var tmp_0;
|
|
469
503
|
if (current instanceof Write) {
|
|
470
|
-
tmp_0 = tmp0.
|
|
504
|
+
tmp_0 = tmp0.d1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
471
505
|
} else {
|
|
472
506
|
tmp_0 = false;
|
|
473
507
|
}
|
|
474
508
|
if (tmp_0) {
|
|
475
|
-
current.
|
|
509
|
+
current.t1m();
|
|
476
510
|
}
|
|
477
511
|
}
|
|
478
512
|
}
|
|
479
513
|
while (false);
|
|
480
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
514
|
+
suspendResult = returnIfSuspended(cancellable.sx(), this);
|
|
481
515
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
516
|
return suspendResult;
|
|
483
517
|
}
|
|
484
518
|
|
|
485
519
|
continue $sm;
|
|
486
520
|
case 2:
|
|
487
|
-
this.
|
|
521
|
+
this.d9_1 = 1;
|
|
488
522
|
continue $sm;
|
|
489
523
|
case 3:
|
|
490
524
|
return Unit_instance;
|
|
491
525
|
case 4:
|
|
492
|
-
throw this.
|
|
526
|
+
throw this.g9_1;
|
|
493
527
|
}
|
|
494
528
|
} catch ($p) {
|
|
495
529
|
var e = $p;
|
|
496
|
-
if (this.
|
|
530
|
+
if (this.e9_1 === 4) {
|
|
497
531
|
throw e;
|
|
498
532
|
} else {
|
|
499
|
-
this.
|
|
500
|
-
this.
|
|
533
|
+
this.d9_1 = this.e9_1;
|
|
534
|
+
this.g9_1 = e;
|
|
501
535
|
}
|
|
502
536
|
}
|
|
503
537
|
while (true);
|
|
504
538
|
};
|
|
505
539
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
506
540
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
|
-
this.
|
|
541
|
+
this.o1o_1 = _this__u8e3s4;
|
|
508
542
|
}
|
|
509
|
-
protoOf($flushAndCloseCOROUTINE$).
|
|
510
|
-
var suspendResult = this.
|
|
543
|
+
protoOf($flushAndCloseCOROUTINE$).l9 = function () {
|
|
544
|
+
var suspendResult = this.f9_1;
|
|
511
545
|
$sm: do
|
|
512
546
|
try {
|
|
513
|
-
var tmp = this.
|
|
547
|
+
var tmp = this.d9_1;
|
|
514
548
|
switch (tmp) {
|
|
515
549
|
case 0:
|
|
516
|
-
this.
|
|
517
|
-
var this_0 = this.
|
|
518
|
-
this.
|
|
519
|
-
this.
|
|
520
|
-
this.
|
|
521
|
-
suspendResult = this_0.
|
|
550
|
+
this.e9_1 = 4;
|
|
551
|
+
var this_0 = this.o1o_1;
|
|
552
|
+
this.e9_1 = 2;
|
|
553
|
+
this.q1o_1 = Companion_instance;
|
|
554
|
+
this.d9_1 = 1;
|
|
555
|
+
suspendResult = this_0.r1o(this);
|
|
522
556
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
557
|
return suspendResult;
|
|
524
558
|
}
|
|
@@ -526,146 +560,296 @@
|
|
|
526
560
|
continue $sm;
|
|
527
561
|
case 1:
|
|
528
562
|
var tmp_0 = this;
|
|
529
|
-
this.
|
|
530
|
-
tmp_0.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
563
|
+
this.q1o_1;
|
|
564
|
+
tmp_0.p1o_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
565
|
+
this.e9_1 = 4;
|
|
566
|
+
this.d9_1 = 3;
|
|
533
567
|
continue $sm;
|
|
534
568
|
case 2:
|
|
535
|
-
this.
|
|
536
|
-
var tmp_1 = this.
|
|
569
|
+
this.e9_1 = 4;
|
|
570
|
+
var tmp_1 = this.g9_1;
|
|
537
571
|
if (tmp_1 instanceof Error) {
|
|
538
|
-
var e = this.
|
|
572
|
+
var e = this.g9_1;
|
|
539
573
|
var tmp_2 = this;
|
|
540
|
-
tmp_2.
|
|
541
|
-
this.
|
|
574
|
+
tmp_2.p1o_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
575
|
+
this.d9_1 = 3;
|
|
542
576
|
continue $sm;
|
|
543
577
|
} else {
|
|
544
|
-
throw this.
|
|
578
|
+
throw this.g9_1;
|
|
545
579
|
}
|
|
546
580
|
|
|
547
581
|
case 3:
|
|
548
|
-
this.
|
|
549
|
-
if (!this.
|
|
582
|
+
this.e9_1 = 4;
|
|
583
|
+
if (!this.o1o_1.g1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
550
584
|
return Unit_instance;
|
|
551
|
-
closeSlot(this.
|
|
585
|
+
closeSlot(this.o1o_1, null);
|
|
552
586
|
return Unit_instance;
|
|
553
587
|
case 4:
|
|
554
|
-
throw this.
|
|
588
|
+
throw this.g9_1;
|
|
555
589
|
}
|
|
556
590
|
} catch ($p) {
|
|
557
591
|
var e_0 = $p;
|
|
558
|
-
if (this.
|
|
592
|
+
if (this.e9_1 === 4) {
|
|
559
593
|
throw e_0;
|
|
560
594
|
} else {
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
595
|
+
this.d9_1 = this.e9_1;
|
|
596
|
+
this.g9_1 = e_0;
|
|
563
597
|
}
|
|
564
598
|
}
|
|
565
599
|
while (true);
|
|
566
600
|
};
|
|
567
601
|
function ByteChannel(autoFlush) {
|
|
568
602
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
603
|
+
this.z1m_1 = autoFlush;
|
|
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);
|
|
608
|
+
this.e1n_1 = new Buffer();
|
|
609
|
+
this.f1n_1 = new Buffer();
|
|
610
|
+
this.g1n_1 = atomic$ref$1(null);
|
|
611
|
+
this.h1n_1 = atomic$ref$1(null);
|
|
612
|
+
}
|
|
613
|
+
protoOf(ByteChannel).s1o = function () {
|
|
614
|
+
return this.z1m_1;
|
|
615
|
+
};
|
|
616
|
+
protoOf(ByteChannel).f1o = function () {
|
|
617
|
+
return this.b1n_1 < 1048576;
|
|
618
|
+
};
|
|
619
|
+
protoOf(ByteChannel).t1o = function () {
|
|
620
|
+
var tmp0_safe_receiver = this.g1n_1.kotlinx$atomicfu$value;
|
|
583
621
|
if (tmp0_safe_receiver == null)
|
|
584
622
|
null;
|
|
585
623
|
else {
|
|
586
|
-
|
|
624
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
625
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
626
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
627
|
+
var tmp;
|
|
628
|
+
if (tmp0_subject == null) {
|
|
629
|
+
tmp = null;
|
|
630
|
+
} else {
|
|
631
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
632
|
+
tmp = access$_get_origin__hdh1qz(tmp0_safe_receiver).j12();
|
|
633
|
+
} else {
|
|
634
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
635
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
636
|
+
} else {
|
|
637
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
638
|
+
tmp = new ClosedReadChannelException(p0);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
643
|
+
var tmp_0;
|
|
644
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
645
|
+
tmp_0 = null;
|
|
646
|
+
} else {
|
|
647
|
+
// Inline function 'kotlin.let' call
|
|
648
|
+
throw tmp0_safe_receiver_0;
|
|
649
|
+
}
|
|
587
650
|
}
|
|
588
|
-
if (this.
|
|
651
|
+
if (this.e1n_1.fq()) {
|
|
589
652
|
moveFlushToReadBuffer(this);
|
|
590
653
|
}
|
|
591
|
-
return this.
|
|
654
|
+
return this.e1n_1;
|
|
592
655
|
};
|
|
593
|
-
protoOf(ByteChannel).
|
|
594
|
-
if (this.
|
|
595
|
-
var tmp0_safe_receiver = this.
|
|
656
|
+
protoOf(ByteChannel).u1o = function () {
|
|
657
|
+
if (this.v1o()) {
|
|
658
|
+
var tmp0_safe_receiver = this.g1n_1.kotlinx$atomicfu$value;
|
|
596
659
|
var tmp;
|
|
597
660
|
if (tmp0_safe_receiver == null) {
|
|
598
661
|
tmp = null;
|
|
599
662
|
} else {
|
|
600
|
-
|
|
663
|
+
// Inline function 'io.ktor.utils.io.Companion.throwOrNull' call
|
|
664
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
665
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
666
|
+
var tmp_0;
|
|
667
|
+
if (tmp0_subject == null) {
|
|
668
|
+
tmp_0 = null;
|
|
669
|
+
} else {
|
|
670
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
671
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).j12();
|
|
672
|
+
} else {
|
|
673
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
674
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
675
|
+
} else {
|
|
676
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
677
|
+
tmp_0 = new ClosedWriteChannelException(p0);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
var tmp0_safe_receiver_0 = tmp_0;
|
|
682
|
+
var tmp_1;
|
|
683
|
+
if (tmp0_safe_receiver_0 == null) {
|
|
684
|
+
tmp_1 = null;
|
|
685
|
+
} else {
|
|
686
|
+
// Inline function 'kotlin.let' call
|
|
687
|
+
throw tmp0_safe_receiver_0;
|
|
688
|
+
}
|
|
689
|
+
tmp = tmp_1;
|
|
601
690
|
}
|
|
602
691
|
if (tmp == null)
|
|
603
692
|
throw new ClosedWriteChannelException();
|
|
604
693
|
}
|
|
605
|
-
return this.
|
|
694
|
+
return this.f1n_1;
|
|
606
695
|
};
|
|
607
|
-
protoOf(ByteChannel).
|
|
608
|
-
var tmp0_safe_receiver = this.
|
|
609
|
-
|
|
696
|
+
protoOf(ByteChannel).w1o = function () {
|
|
697
|
+
var tmp0_safe_receiver = this.g1n_1.kotlinx$atomicfu$value;
|
|
698
|
+
var tmp;
|
|
699
|
+
if (tmp0_safe_receiver == null) {
|
|
700
|
+
tmp = null;
|
|
701
|
+
} else {
|
|
702
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
703
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
704
|
+
var tmp_0;
|
|
705
|
+
if (tmp0_subject == null) {
|
|
706
|
+
tmp_0 = null;
|
|
707
|
+
} else {
|
|
708
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
709
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).j12();
|
|
710
|
+
} else {
|
|
711
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
712
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
713
|
+
} else {
|
|
714
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
715
|
+
tmp_0 = new ClosedByteChannelException(p0);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
tmp = tmp_0;
|
|
720
|
+
}
|
|
721
|
+
return tmp;
|
|
610
722
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
return !(this.
|
|
723
|
+
protoOf(ByteChannel).v1o = function () {
|
|
724
|
+
return !(this.g1n_1.kotlinx$atomicfu$value == null);
|
|
613
725
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
return !(this.
|
|
726
|
+
protoOf(ByteChannel).x1o = function () {
|
|
727
|
+
return !(this.w1o() == null) || (this.v1o() && this.b1n_1 === 0 && this.e1n_1.fq());
|
|
616
728
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
729
|
+
protoOf(ByteChannel).y1o = function (min, $completion) {
|
|
618
730
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
619
|
-
tmp.
|
|
620
|
-
tmp.
|
|
621
|
-
return tmp.
|
|
731
|
+
tmp.f9_1 = Unit_instance;
|
|
732
|
+
tmp.g9_1 = null;
|
|
733
|
+
return tmp.l9();
|
|
622
734
|
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
735
|
+
protoOf(ByteChannel).r1o = function ($completion) {
|
|
624
736
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
625
|
-
tmp.
|
|
626
|
-
tmp.
|
|
627
|
-
return tmp.
|
|
737
|
+
tmp.f9_1 = Unit_instance;
|
|
738
|
+
tmp.g9_1 = null;
|
|
739
|
+
return tmp.l9();
|
|
628
740
|
};
|
|
629
|
-
protoOf(ByteChannel).
|
|
630
|
-
if (this.
|
|
741
|
+
protoOf(ByteChannel).e1o = function () {
|
|
742
|
+
if (this.f1n_1.fq())
|
|
631
743
|
return Unit_instance;
|
|
632
744
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
633
|
-
this.
|
|
634
|
-
var count = convertToInt(this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
745
|
+
this.c1n_1;
|
|
746
|
+
var count = convertToInt(this.f1n_1.l1());
|
|
747
|
+
this.a1n_1.xr(this.f1n_1);
|
|
748
|
+
this.b1n_1 = this.b1n_1 + count | 0;
|
|
637
749
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
638
|
-
var current = this.
|
|
750
|
+
var current = this.d1n_1.kotlinx$atomicfu$value;
|
|
639
751
|
var tmp;
|
|
640
752
|
if (current instanceof Read) {
|
|
641
|
-
tmp = this.
|
|
753
|
+
tmp = this.d1n_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
642
754
|
} else {
|
|
643
755
|
tmp = false;
|
|
644
756
|
}
|
|
645
757
|
if (tmp) {
|
|
646
|
-
current.
|
|
758
|
+
current.t1m();
|
|
647
759
|
}
|
|
648
760
|
};
|
|
649
|
-
protoOf(ByteChannel).
|
|
650
|
-
this.
|
|
651
|
-
if (!this.
|
|
761
|
+
protoOf(ByteChannel).o4 = function () {
|
|
762
|
+
this.e1o();
|
|
763
|
+
if (!this.g1n_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
652
764
|
return Unit_instance;
|
|
653
765
|
closeSlot(this, null);
|
|
654
766
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
767
|
+
protoOf(ByteChannel).a1p = function ($completion) {
|
|
656
768
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
657
|
-
tmp.
|
|
658
|
-
tmp.
|
|
659
|
-
return tmp.
|
|
769
|
+
tmp.f9_1 = Unit_instance;
|
|
770
|
+
tmp.g9_1 = null;
|
|
771
|
+
return tmp.l9();
|
|
660
772
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
662
|
-
if (!(this.
|
|
773
|
+
protoOf(ByteChannel).b1p = function (cause) {
|
|
774
|
+
if (!(this.g1n_1.kotlinx$atomicfu$value == null))
|
|
663
775
|
return Unit_instance;
|
|
664
776
|
var closedToken = new CloseToken(cause);
|
|
665
|
-
this.
|
|
666
|
-
|
|
777
|
+
this.g1n_1.atomicfu$compareAndSet(null, closedToken);
|
|
778
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
779
|
+
var tmp0_subject = access$_get_origin__hdh1qz(closedToken);
|
|
780
|
+
var tmp;
|
|
781
|
+
if (tmp0_subject == null) {
|
|
782
|
+
tmp = null;
|
|
783
|
+
} else {
|
|
784
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
785
|
+
tmp = access$_get_origin__hdh1qz(closedToken).j12();
|
|
786
|
+
} else {
|
|
787
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
788
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(closedToken).message, access$_get_origin__hdh1qz(closedToken));
|
|
789
|
+
} else {
|
|
790
|
+
var p0 = access$_get_origin__hdh1qz(closedToken);
|
|
791
|
+
tmp = new ClosedByteChannelException(p0);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
var wrappedCause = tmp;
|
|
667
796
|
closeSlot(this, wrappedCause);
|
|
668
797
|
};
|
|
798
|
+
protoOf(ByteChannel).c1p = function (handler) {
|
|
799
|
+
var existingCause = this.g1n_1.kotlinx$atomicfu$value;
|
|
800
|
+
if (!(existingCause == null)) {
|
|
801
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
802
|
+
var tmp0_subject = access$_get_origin__hdh1qz(existingCause);
|
|
803
|
+
var tmp;
|
|
804
|
+
if (tmp0_subject == null) {
|
|
805
|
+
tmp = null;
|
|
806
|
+
} else {
|
|
807
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
808
|
+
tmp = access$_get_origin__hdh1qz(existingCause).j12();
|
|
809
|
+
} else {
|
|
810
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
811
|
+
tmp = CancellationException_init_$Create$(access$_get_origin__hdh1qz(existingCause).message, access$_get_origin__hdh1qz(existingCause));
|
|
812
|
+
} else {
|
|
813
|
+
var p0 = access$_get_origin__hdh1qz(existingCause);
|
|
814
|
+
tmp = new ClosedByteChannelException(p0);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
handler(tmp);
|
|
819
|
+
var tmp_0 = ByteChannel$invokeOnClose$lambda;
|
|
820
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_0);
|
|
821
|
+
}
|
|
822
|
+
if (!this.h1n_1.atomicfu$compareAndSet(null, handler)) {
|
|
823
|
+
// Inline function 'kotlin.error' call
|
|
824
|
+
var message = 'Only one invokeOnClose handler is supported per channel';
|
|
825
|
+
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
826
|
+
}
|
|
827
|
+
var cause = this.g1n_1.kotlinx$atomicfu$value;
|
|
828
|
+
if (!(cause == null) && this.h1n_1.atomicfu$compareAndSet(handler, null)) {
|
|
829
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
830
|
+
var tmp0_subject_0 = access$_get_origin__hdh1qz(cause);
|
|
831
|
+
var tmp_1;
|
|
832
|
+
if (tmp0_subject_0 == null) {
|
|
833
|
+
tmp_1 = null;
|
|
834
|
+
} else {
|
|
835
|
+
if (isInterface(tmp0_subject_0, CopyableThrowable)) {
|
|
836
|
+
tmp_1 = access$_get_origin__hdh1qz(cause).j12();
|
|
837
|
+
} else {
|
|
838
|
+
if (tmp0_subject_0 instanceof CancellationException) {
|
|
839
|
+
tmp_1 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(cause).message, access$_get_origin__hdh1qz(cause));
|
|
840
|
+
} else {
|
|
841
|
+
var p0_0 = access$_get_origin__hdh1qz(cause);
|
|
842
|
+
tmp_1 = new ClosedByteChannelException(p0_0);
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
handler(tmp_1);
|
|
847
|
+
var tmp_2 = ByteChannel$invokeOnClose$lambda_0;
|
|
848
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_2);
|
|
849
|
+
}
|
|
850
|
+
var tmp_3 = ByteChannel$invokeOnClose$lambda_1(this, handler);
|
|
851
|
+
return new sam$kotlinx_coroutines_DisposableHandle$0(tmp_3);
|
|
852
|
+
};
|
|
669
853
|
protoOf(ByteChannel).toString = function () {
|
|
670
854
|
return 'ByteChannel[' + hashCode(this) + ']';
|
|
671
855
|
};
|
|
@@ -679,7 +863,7 @@
|
|
|
679
863
|
length = length === VOID ? content.length : length;
|
|
680
864
|
// Inline function 'kotlin.also' call
|
|
681
865
|
var this_0 = new Buffer();
|
|
682
|
-
this_0.
|
|
866
|
+
this_0.or(content, offset, offset + length | 0);
|
|
683
867
|
var source = this_0;
|
|
684
868
|
return ByteReadChannel_0(source);
|
|
685
869
|
}
|
|
@@ -687,18 +871,18 @@
|
|
|
687
871
|
return new SourceByteReadChannel(source);
|
|
688
872
|
}
|
|
689
873
|
function buildPartialMatchTable($this) {
|
|
690
|
-
var table = new Int32Array($this.
|
|
874
|
+
var table = new Int32Array($this.e1p_1.l1());
|
|
691
875
|
var j = 0;
|
|
692
876
|
var inductionVariable = 1;
|
|
693
|
-
var last = $this.
|
|
877
|
+
var last = $this.e1p_1.l1();
|
|
694
878
|
if (inductionVariable < last)
|
|
695
879
|
do {
|
|
696
880
|
var i = inductionVariable;
|
|
697
881
|
inductionVariable = inductionVariable + 1 | 0;
|
|
698
|
-
while (j > 0 && !($this.
|
|
882
|
+
while (j > 0 && !($this.e1p_1.m1(i) === $this.e1p_1.m1(j))) {
|
|
699
883
|
j = table[j - 1 | 0];
|
|
700
884
|
}
|
|
701
|
-
if ($this.
|
|
885
|
+
if ($this.e1p_1.m1(i) === $this.e1p_1.m1(j)) {
|
|
702
886
|
j = j + 1 | 0;
|
|
703
887
|
}
|
|
704
888
|
table[i] = j;
|
|
@@ -708,19 +892,19 @@
|
|
|
708
892
|
}
|
|
709
893
|
function advanceToNextPotentialMatch($this, $completion) {
|
|
710
894
|
var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
|
|
711
|
-
tmp.
|
|
712
|
-
tmp.
|
|
713
|
-
return tmp.
|
|
895
|
+
tmp.f9_1 = Unit_instance;
|
|
896
|
+
tmp.g9_1 = null;
|
|
897
|
+
return tmp.l9();
|
|
714
898
|
}
|
|
715
899
|
function checkFullMatch($this, $completion) {
|
|
716
900
|
var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
|
|
717
|
-
tmp.
|
|
718
|
-
tmp.
|
|
719
|
-
return tmp.
|
|
901
|
+
tmp.f9_1 = Unit_instance;
|
|
902
|
+
tmp.g9_1 = null;
|
|
903
|
+
return tmp.l9();
|
|
720
904
|
}
|
|
721
905
|
function checkBounds($this, extra) {
|
|
722
|
-
if (add($this.
|
|
723
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
906
|
+
if (add($this.k1p_1, extra) > $this.g1p_1) {
|
|
907
|
+
throw IOException_init_$Create$('Limit of ' + $this.g1p_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.e1p_1) + '"'));
|
|
724
908
|
}
|
|
725
909
|
}
|
|
726
910
|
function toSingleLineString($this, $receiver) {
|
|
@@ -728,28 +912,28 @@
|
|
|
728
912
|
}
|
|
729
913
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
730
914
|
CoroutineImpl.call(this, resultContinuation);
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
915
|
+
this.p1q_1 = _this__u8e3s4;
|
|
916
|
+
this.q1q_1 = ignoreMissing;
|
|
733
917
|
}
|
|
734
|
-
protoOf($findNextCOROUTINE$).
|
|
735
|
-
var suspendResult = this.
|
|
918
|
+
protoOf($findNextCOROUTINE$).l9 = function () {
|
|
919
|
+
var suspendResult = this.f9_1;
|
|
736
920
|
$sm: do
|
|
737
921
|
try {
|
|
738
|
-
var tmp = this.
|
|
922
|
+
var tmp = this.d9_1;
|
|
739
923
|
switch (tmp) {
|
|
740
924
|
case 0:
|
|
741
|
-
this.
|
|
742
|
-
this.
|
|
743
|
-
this.
|
|
925
|
+
this.e9_1 = 9;
|
|
926
|
+
this.p1q_1.k1p_1 = 0n;
|
|
927
|
+
this.d9_1 = 1;
|
|
744
928
|
continue $sm;
|
|
745
929
|
case 1:
|
|
746
|
-
if (!this.
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
930
|
+
if (!this.p1q_1.h1p_1.fq()) {
|
|
931
|
+
this.r1q_1 = true;
|
|
932
|
+
this.d9_1 = 3;
|
|
749
933
|
continue $sm;
|
|
750
934
|
} else {
|
|
751
|
-
this.
|
|
752
|
-
suspendResult = this.
|
|
935
|
+
this.d9_1 = 2;
|
|
936
|
+
suspendResult = this.p1q_1.d1p_1.z1o(VOID, this);
|
|
753
937
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
754
938
|
return suspendResult;
|
|
755
939
|
}
|
|
@@ -757,25 +941,25 @@
|
|
|
757
941
|
}
|
|
758
942
|
|
|
759
943
|
case 2:
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
944
|
+
this.r1q_1 = suspendResult;
|
|
945
|
+
this.d9_1 = 3;
|
|
762
946
|
continue $sm;
|
|
763
947
|
case 3:
|
|
764
|
-
if (!this.
|
|
765
|
-
this.
|
|
948
|
+
if (!this.r1q_1) {
|
|
949
|
+
this.d9_1 = 7;
|
|
766
950
|
continue $sm;
|
|
767
951
|
}
|
|
768
952
|
|
|
769
|
-
this.
|
|
770
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
953
|
+
this.d9_1 = 4;
|
|
954
|
+
suspendResult = advanceToNextPotentialMatch(this.p1q_1, this);
|
|
771
955
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
772
956
|
return suspendResult;
|
|
773
957
|
}
|
|
774
958
|
|
|
775
959
|
continue $sm;
|
|
776
960
|
case 4:
|
|
777
|
-
this.
|
|
778
|
-
suspendResult = checkFullMatch(this.
|
|
961
|
+
this.d9_1 = 5;
|
|
962
|
+
suspendResult = checkFullMatch(this.p1q_1, this);
|
|
779
963
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
964
|
return suspendResult;
|
|
781
965
|
}
|
|
@@ -783,66 +967,66 @@
|
|
|
783
967
|
continue $sm;
|
|
784
968
|
case 5:
|
|
785
969
|
if (suspendResult) {
|
|
786
|
-
return this.
|
|
970
|
+
return this.p1q_1.k1p_1;
|
|
787
971
|
} else {
|
|
788
|
-
this.
|
|
972
|
+
this.d9_1 = 6;
|
|
789
973
|
continue $sm;
|
|
790
974
|
}
|
|
791
975
|
|
|
792
976
|
case 6:
|
|
793
|
-
this.
|
|
977
|
+
this.d9_1 = 1;
|
|
794
978
|
continue $sm;
|
|
795
979
|
case 7:
|
|
796
|
-
if (!this.
|
|
797
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
980
|
+
if (!this.q1q_1) {
|
|
981
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.p1q_1, this.p1q_1.e1p_1) + '" but encountered end of input');
|
|
798
982
|
}
|
|
799
983
|
|
|
800
|
-
this.
|
|
801
|
-
this.
|
|
802
|
-
suspendResult = this.
|
|
984
|
+
this.p1q_1.k1p_1 = add(this.p1q_1.k1p_1, this.p1q_1.j1p_1.ir(this.p1q_1.f1p_1.u1o()));
|
|
985
|
+
this.d9_1 = 8;
|
|
986
|
+
suspendResult = this.p1q_1.f1p_1.r1o(this);
|
|
803
987
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
804
988
|
return suspendResult;
|
|
805
989
|
}
|
|
806
990
|
|
|
807
991
|
continue $sm;
|
|
808
992
|
case 8:
|
|
809
|
-
return this.
|
|
993
|
+
return this.p1q_1.k1p_1;
|
|
810
994
|
case 9:
|
|
811
|
-
throw this.
|
|
995
|
+
throw this.g9_1;
|
|
812
996
|
}
|
|
813
997
|
} catch ($p) {
|
|
814
998
|
var e = $p;
|
|
815
|
-
if (this.
|
|
999
|
+
if (this.e9_1 === 9) {
|
|
816
1000
|
throw e;
|
|
817
1001
|
} else {
|
|
818
|
-
this.
|
|
819
|
-
this.
|
|
1002
|
+
this.d9_1 = this.e9_1;
|
|
1003
|
+
this.g9_1 = e;
|
|
820
1004
|
}
|
|
821
1005
|
}
|
|
822
1006
|
while (true);
|
|
823
1007
|
};
|
|
824
1008
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
825
1009
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
|
-
this.
|
|
1010
|
+
this.u1p_1 = _this__u8e3s4;
|
|
827
1011
|
}
|
|
828
|
-
protoOf($advanceToNextPotentialMatchCOROUTINE$).
|
|
829
|
-
var suspendResult = this.
|
|
1012
|
+
protoOf($advanceToNextPotentialMatchCOROUTINE$).l9 = function () {
|
|
1013
|
+
var suspendResult = this.f9_1;
|
|
830
1014
|
$sm: do
|
|
831
1015
|
try {
|
|
832
|
-
var tmp = this.
|
|
1016
|
+
var tmp = this.d9_1;
|
|
833
1017
|
switch (tmp) {
|
|
834
1018
|
case 0:
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
1019
|
+
this.e9_1 = 8;
|
|
1020
|
+
this.d9_1 = 1;
|
|
837
1021
|
continue $sm;
|
|
838
1022
|
case 1:
|
|
839
|
-
if (!this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
1023
|
+
if (!this.u1p_1.h1p_1.fq()) {
|
|
1024
|
+
this.v1p_1 = true;
|
|
1025
|
+
this.d9_1 = 3;
|
|
842
1026
|
continue $sm;
|
|
843
1027
|
} else {
|
|
844
|
-
this.
|
|
845
|
-
suspendResult = this.
|
|
1028
|
+
this.d9_1 = 2;
|
|
1029
|
+
suspendResult = this.u1p_1.d1p_1.z1o(VOID, this);
|
|
846
1030
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
847
1031
|
return suspendResult;
|
|
848
1032
|
}
|
|
@@ -850,34 +1034,34 @@
|
|
|
850
1034
|
}
|
|
851
1035
|
|
|
852
1036
|
case 2:
|
|
853
|
-
this.
|
|
854
|
-
this.
|
|
1037
|
+
this.v1p_1 = suspendResult;
|
|
1038
|
+
this.d9_1 = 3;
|
|
855
1039
|
continue $sm;
|
|
856
1040
|
case 3:
|
|
857
|
-
if (!this.
|
|
858
|
-
this.
|
|
1041
|
+
if (!this.v1p_1) {
|
|
1042
|
+
this.d9_1 = 7;
|
|
859
1043
|
continue $sm;
|
|
860
1044
|
}
|
|
861
1045
|
|
|
862
|
-
var nextMatch = indexOf(this.
|
|
1046
|
+
var nextMatch = indexOf(this.u1p_1.h1p_1, this.u1p_1.e1p_1.m1(0));
|
|
863
1047
|
if (nextMatch === -1n) {
|
|
864
|
-
var tmp_0 = this.
|
|
865
|
-
checkBounds(this.
|
|
866
|
-
this.
|
|
867
|
-
this.
|
|
868
|
-
suspendResult = flushIfNeeded(this.
|
|
1048
|
+
var tmp_0 = this.u1p_1.h1p_1;
|
|
1049
|
+
checkBounds(this.u1p_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
1050
|
+
this.u1p_1.k1p_1 = add(this.u1p_1.k1p_1, this.u1p_1.h1p_1.ir(this.u1p_1.f1p_1.u1o()));
|
|
1051
|
+
this.d9_1 = 5;
|
|
1052
|
+
suspendResult = flushIfNeeded(this.u1p_1.f1p_1, this);
|
|
869
1053
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
1054
|
return suspendResult;
|
|
871
1055
|
}
|
|
872
1056
|
continue $sm;
|
|
873
1057
|
} else {
|
|
874
|
-
checkBounds(this.
|
|
875
|
-
var tmp_1 = this.
|
|
876
|
-
var tmp_2 = this.
|
|
877
|
-
var tmp_3 = this.
|
|
878
|
-
tmp_1.
|
|
879
|
-
this.
|
|
880
|
-
suspendResult = flushIfNeeded(this.
|
|
1058
|
+
checkBounds(this.u1p_1, nextMatch);
|
|
1059
|
+
var tmp_1 = this.u1p_1;
|
|
1060
|
+
var tmp_2 = this.u1p_1.k1p_1;
|
|
1061
|
+
var tmp_3 = this.u1p_1.f1p_1.u1o();
|
|
1062
|
+
tmp_1.k1p_1 = add(tmp_2, this.u1p_1.h1p_1.fr(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
1063
|
+
this.d9_1 = 4;
|
|
1064
|
+
suspendResult = flushIfNeeded(this.u1p_1.f1p_1, this);
|
|
881
1065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
882
1066
|
return suspendResult;
|
|
883
1067
|
}
|
|
@@ -887,49 +1071,49 @@
|
|
|
887
1071
|
case 4:
|
|
888
1072
|
return Unit_instance;
|
|
889
1073
|
case 5:
|
|
890
|
-
this.
|
|
1074
|
+
this.d9_1 = 6;
|
|
891
1075
|
continue $sm;
|
|
892
1076
|
case 6:
|
|
893
|
-
this.
|
|
1077
|
+
this.d9_1 = 1;
|
|
894
1078
|
continue $sm;
|
|
895
1079
|
case 7:
|
|
896
1080
|
return Unit_instance;
|
|
897
1081
|
case 8:
|
|
898
|
-
throw this.
|
|
1082
|
+
throw this.g9_1;
|
|
899
1083
|
}
|
|
900
1084
|
} catch ($p) {
|
|
901
1085
|
var e = $p;
|
|
902
|
-
if (this.
|
|
1086
|
+
if (this.e9_1 === 8) {
|
|
903
1087
|
throw e;
|
|
904
1088
|
} else {
|
|
905
|
-
this.
|
|
906
|
-
this.
|
|
1089
|
+
this.d9_1 = this.e9_1;
|
|
1090
|
+
this.g9_1 = e;
|
|
907
1091
|
}
|
|
908
1092
|
}
|
|
909
1093
|
while (true);
|
|
910
1094
|
};
|
|
911
1095
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
912
1096
|
CoroutineImpl.call(this, resultContinuation);
|
|
913
|
-
this.
|
|
1097
|
+
this.e1q_1 = _this__u8e3s4;
|
|
914
1098
|
}
|
|
915
|
-
protoOf($checkFullMatchCOROUTINE$).
|
|
916
|
-
var suspendResult = this.
|
|
1099
|
+
protoOf($checkFullMatchCOROUTINE$).l9 = function () {
|
|
1100
|
+
var suspendResult = this.f9_1;
|
|
917
1101
|
$sm: do
|
|
918
1102
|
try {
|
|
919
|
-
var tmp = this.
|
|
1103
|
+
var tmp = this.d9_1;
|
|
920
1104
|
switch (tmp) {
|
|
921
1105
|
case 0:
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
1106
|
+
this.e9_1 = 8;
|
|
1107
|
+
this.d9_1 = 1;
|
|
924
1108
|
continue $sm;
|
|
925
1109
|
case 1:
|
|
926
|
-
if (!this.
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
1110
|
+
if (!this.e1q_1.h1p_1.fq()) {
|
|
1111
|
+
this.g1q_1 = true;
|
|
1112
|
+
this.d9_1 = 3;
|
|
929
1113
|
continue $sm;
|
|
930
1114
|
} else {
|
|
931
|
-
this.
|
|
932
|
-
suspendResult = this.
|
|
1115
|
+
this.d9_1 = 2;
|
|
1116
|
+
suspendResult = this.e1q_1.d1p_1.z1o(VOID, this);
|
|
933
1117
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
1118
|
return suspendResult;
|
|
935
1119
|
}
|
|
@@ -937,120 +1121,139 @@
|
|
|
937
1121
|
}
|
|
938
1122
|
|
|
939
1123
|
case 2:
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
1124
|
+
this.g1q_1 = suspendResult;
|
|
1125
|
+
this.d9_1 = 3;
|
|
942
1126
|
continue $sm;
|
|
943
1127
|
case 3:
|
|
944
|
-
if (!this.
|
|
945
|
-
this.
|
|
1128
|
+
if (!this.g1q_1) {
|
|
1129
|
+
this.d9_1 = 7;
|
|
946
1130
|
continue $sm;
|
|
947
1131
|
}
|
|
948
1132
|
|
|
949
|
-
this.
|
|
950
|
-
if (this.
|
|
951
|
-
var oldMatchIndex = this.
|
|
952
|
-
while (this.
|
|
953
|
-
this.
|
|
1133
|
+
this.f1q_1 = this.e1q_1.h1p_1.iq();
|
|
1134
|
+
if (this.e1q_1.l1p_1 > 0 && !(this.f1q_1 === this.e1q_1.e1p_1.m1(this.e1q_1.l1p_1))) {
|
|
1135
|
+
var oldMatchIndex = this.e1q_1.l1p_1;
|
|
1136
|
+
while (this.e1q_1.l1p_1 > 0 && !(this.f1q_1 === this.e1q_1.e1p_1.m1(this.e1q_1.l1p_1))) {
|
|
1137
|
+
this.e1q_1.l1p_1 = this.e1q_1.i1p_1[this.e1q_1.l1p_1 - 1 | 0];
|
|
954
1138
|
}
|
|
955
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
956
|
-
checkBounds(this.
|
|
957
|
-
var tmp_0 = this.
|
|
958
|
-
var tmp_1 = this.
|
|
959
|
-
var tmp_2 = this.
|
|
960
|
-
tmp_0.
|
|
961
|
-
if (this.
|
|
962
|
-
this.
|
|
963
|
-
suspendResult = writeByte(this.
|
|
1139
|
+
var retained = fromInt(oldMatchIndex - this.e1q_1.l1p_1 | 0);
|
|
1140
|
+
checkBounds(this.e1q_1, retained);
|
|
1141
|
+
var tmp_0 = this.e1q_1;
|
|
1142
|
+
var tmp_1 = this.e1q_1.k1p_1;
|
|
1143
|
+
var tmp_2 = this.e1q_1.f1p_1.u1o();
|
|
1144
|
+
tmp_0.k1p_1 = add(tmp_1, this.e1q_1.j1p_1.fr(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
1145
|
+
if (this.e1q_1.l1p_1 === 0 && !(this.f1q_1 === this.e1q_1.e1p_1.m1(this.e1q_1.l1p_1))) {
|
|
1146
|
+
this.d9_1 = 6;
|
|
1147
|
+
suspendResult = writeByte(this.e1q_1.f1p_1, this.f1q_1, this);
|
|
964
1148
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
1149
|
return suspendResult;
|
|
966
1150
|
}
|
|
967
1151
|
continue $sm;
|
|
968
1152
|
} else {
|
|
969
|
-
this.
|
|
1153
|
+
this.d9_1 = 4;
|
|
970
1154
|
continue $sm;
|
|
971
1155
|
}
|
|
972
1156
|
} else {
|
|
973
|
-
this.
|
|
1157
|
+
this.d9_1 = 5;
|
|
974
1158
|
continue $sm;
|
|
975
1159
|
}
|
|
976
1160
|
|
|
977
1161
|
case 4:
|
|
978
|
-
this.
|
|
1162
|
+
this.d9_1 = 5;
|
|
979
1163
|
continue $sm;
|
|
980
1164
|
case 5:
|
|
981
|
-
this.
|
|
982
|
-
if (this.
|
|
1165
|
+
this.e1q_1.l1p_1 = this.e1q_1.l1p_1 + 1 | 0;
|
|
1166
|
+
if (this.e1q_1.l1p_1 === this.e1q_1.e1p_1.l1()) {
|
|
983
1167
|
return true;
|
|
984
1168
|
}
|
|
985
1169
|
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
1170
|
+
this.e1q_1.j1p_1.yr(this.f1q_1);
|
|
1171
|
+
this.d9_1 = 1;
|
|
988
1172
|
continue $sm;
|
|
989
1173
|
case 6:
|
|
990
|
-
var _unary__edvuaz = this.
|
|
991
|
-
this.
|
|
1174
|
+
var _unary__edvuaz = this.e1q_1.k1p_1;
|
|
1175
|
+
this.e1q_1.k1p_1 = add(_unary__edvuaz, get_ONE());
|
|
992
1176
|
return false;
|
|
993
1177
|
case 7:
|
|
994
1178
|
return false;
|
|
995
1179
|
case 8:
|
|
996
|
-
throw this.
|
|
1180
|
+
throw this.g9_1;
|
|
997
1181
|
}
|
|
998
1182
|
} catch ($p) {
|
|
999
1183
|
var e = $p;
|
|
1000
|
-
if (this.
|
|
1184
|
+
if (this.e9_1 === 8) {
|
|
1001
1185
|
throw e;
|
|
1002
1186
|
} else {
|
|
1003
|
-
this.
|
|
1004
|
-
this.
|
|
1187
|
+
this.d9_1 = this.e9_1;
|
|
1188
|
+
this.g9_1 = e;
|
|
1005
1189
|
}
|
|
1006
1190
|
}
|
|
1007
1191
|
while (true);
|
|
1008
1192
|
};
|
|
1009
1193
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1010
1194
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1195
|
+
this.d1p_1 = channel;
|
|
1196
|
+
this.e1p_1 = matchString;
|
|
1197
|
+
this.f1p_1 = writeChannel;
|
|
1198
|
+
this.g1p_1 = limit;
|
|
1015
1199
|
// Inline function 'kotlin.require' call
|
|
1016
|
-
if (!(this.
|
|
1200
|
+
if (!(this.e1p_1.l1() > 0)) {
|
|
1017
1201
|
var message = 'Empty match string not permitted for scanning';
|
|
1018
1202
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1019
1203
|
}
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1204
|
+
this.h1p_1 = this.d1p_1.t1o();
|
|
1205
|
+
this.i1p_1 = buildPartialMatchTable(this);
|
|
1206
|
+
this.j1p_1 = new Buffer();
|
|
1207
|
+
this.k1p_1 = 0n;
|
|
1208
|
+
this.l1p_1 = 0;
|
|
1025
1209
|
}
|
|
1026
|
-
protoOf(ByteChannelScanner).
|
|
1210
|
+
protoOf(ByteChannelScanner).s1q = function (ignoreMissing, $completion) {
|
|
1027
1211
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1028
|
-
tmp.
|
|
1029
|
-
tmp.
|
|
1030
|
-
return tmp.
|
|
1212
|
+
tmp.f9_1 = Unit_instance;
|
|
1213
|
+
tmp.g9_1 = null;
|
|
1214
|
+
return tmp.l9();
|
|
1031
1215
|
};
|
|
1216
|
+
function attachWriterJob(_this__u8e3s4, writerJob) {
|
|
1217
|
+
var tmp = writerJob.t1q_1;
|
|
1218
|
+
var tmp0_safe_receiver = tmp instanceof ByteChannel ? tmp : null;
|
|
1219
|
+
if (tmp0_safe_receiver == null)
|
|
1220
|
+
null;
|
|
1221
|
+
else {
|
|
1222
|
+
tmp0_safe_receiver.c1p(attachWriterJob$lambda(_this__u8e3s4));
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
function attachWriterJob$lambda($this_attachWriterJob) {
|
|
1226
|
+
return function (cause) {
|
|
1227
|
+
var tmp;
|
|
1228
|
+
if (!(cause == null)) {
|
|
1229
|
+
$this_attachWriterJob.b1p(cause);
|
|
1230
|
+
tmp = Unit_instance;
|
|
1231
|
+
}
|
|
1232
|
+
return Unit_instance;
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1032
1235
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1236
|
+
this.v1q_1 = null;
|
|
1237
|
+
this.w1q_1 = new Buffer();
|
|
1035
1238
|
}
|
|
1036
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1037
|
-
return this.
|
|
1239
|
+
protoOf(ByteReadChannel$Companion$Empty$1).w1o = function () {
|
|
1240
|
+
return this.v1q_1;
|
|
1038
1241
|
};
|
|
1039
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1242
|
+
protoOf(ByteReadChannel$Companion$Empty$1).x1o = function () {
|
|
1040
1243
|
return true;
|
|
1041
1244
|
};
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
-
return this.
|
|
1245
|
+
protoOf(ByteReadChannel$Companion$Empty$1).t1o = function () {
|
|
1246
|
+
return this.w1q_1;
|
|
1044
1247
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1248
|
+
protoOf(ByteReadChannel$Companion$Empty$1).y1o = function (min, $completion) {
|
|
1046
1249
|
return false;
|
|
1047
1250
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1251
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1p = function (cause) {
|
|
1049
1252
|
};
|
|
1050
1253
|
function Companion_0() {
|
|
1051
1254
|
Companion_instance_1 = this;
|
|
1052
1255
|
var tmp = this;
|
|
1053
|
-
tmp.
|
|
1256
|
+
tmp.x1q_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1054
1257
|
}
|
|
1055
1258
|
var Companion_instance_1;
|
|
1056
1259
|
function Companion_getInstance_0() {
|
|
@@ -1061,63 +1264,72 @@
|
|
|
1061
1264
|
function ByteReadChannel_1() {
|
|
1062
1265
|
}
|
|
1063
1266
|
function cancel_0(_this__u8e3s4) {
|
|
1064
|
-
_this__u8e3s4.
|
|
1267
|
+
_this__u8e3s4.b1p(IOException_init_$Create$('Channel was cancelled'));
|
|
1065
1268
|
}
|
|
1066
1269
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1067
1270
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
1068
|
-
tmp.
|
|
1069
|
-
tmp.
|
|
1070
|
-
return tmp.
|
|
1271
|
+
tmp.f9_1 = Unit_instance;
|
|
1272
|
+
tmp.g9_1 = null;
|
|
1273
|
+
return tmp.l9();
|
|
1071
1274
|
}
|
|
1072
1275
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1073
1276
|
offset = offset === VOID ? 0 : offset;
|
|
1074
1277
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1075
1278
|
var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
|
|
1076
|
-
tmp.
|
|
1077
|
-
tmp.
|
|
1078
|
-
return tmp.
|
|
1279
|
+
tmp.f9_1 = Unit_instance;
|
|
1280
|
+
tmp.g9_1 = null;
|
|
1281
|
+
return tmp.l9();
|
|
1079
1282
|
}
|
|
1080
1283
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1081
1284
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
1082
|
-
tmp.
|
|
1083
|
-
tmp.
|
|
1084
|
-
return tmp.
|
|
1285
|
+
tmp.f9_1 = Unit_instance;
|
|
1286
|
+
tmp.g9_1 = null;
|
|
1287
|
+
return tmp.l9();
|
|
1085
1288
|
}
|
|
1086
1289
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
1087
1290
|
var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
|
|
1088
|
-
tmp.
|
|
1089
|
-
tmp.
|
|
1090
|
-
return tmp.
|
|
1291
|
+
tmp.f9_1 = Unit_instance;
|
|
1292
|
+
tmp.g9_1 = null;
|
|
1293
|
+
return tmp.l9();
|
|
1091
1294
|
}
|
|
1092
1295
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
1093
1296
|
var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
|
|
1094
|
-
tmp.
|
|
1095
|
-
tmp.
|
|
1096
|
-
return tmp.
|
|
1297
|
+
tmp.f9_1 = Unit_instance;
|
|
1298
|
+
tmp.g9_1 = null;
|
|
1299
|
+
return tmp.l9();
|
|
1300
|
+
}
|
|
1301
|
+
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1302
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1o();
|
|
1303
|
+
if (tmp0_safe_receiver == null)
|
|
1304
|
+
null;
|
|
1305
|
+
else {
|
|
1306
|
+
// Inline function 'kotlin.let' call
|
|
1307
|
+
throw tmp0_safe_receiver;
|
|
1308
|
+
}
|
|
1097
1309
|
}
|
|
1098
1310
|
function discard(_this__u8e3s4, max, $completion) {
|
|
1099
1311
|
max = max === VOID ? 9223372036854775807n : max;
|
|
1100
1312
|
var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
|
|
1101
|
-
tmp.
|
|
1102
|
-
tmp.
|
|
1103
|
-
return tmp.
|
|
1313
|
+
tmp.f9_1 = Unit_instance;
|
|
1314
|
+
tmp.g9_1 = null;
|
|
1315
|
+
return tmp.l9();
|
|
1104
1316
|
}
|
|
1105
1317
|
function skipIfFound(_this__u8e3s4, byteString, $completion) {
|
|
1106
1318
|
var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
|
|
1107
|
-
tmp.
|
|
1108
|
-
tmp.
|
|
1109
|
-
return tmp.
|
|
1319
|
+
tmp.f9_1 = Unit_instance;
|
|
1320
|
+
tmp.g9_1 = null;
|
|
1321
|
+
return tmp.l9();
|
|
1110
1322
|
}
|
|
1111
1323
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
1112
1324
|
var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
|
|
1113
|
-
tmp.
|
|
1114
|
-
tmp.
|
|
1115
|
-
return tmp.
|
|
1325
|
+
tmp.f9_1 = Unit_instance;
|
|
1326
|
+
tmp.g9_1 = null;
|
|
1327
|
+
return tmp.l9();
|
|
1116
1328
|
}
|
|
1117
1329
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1118
1330
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1119
1331
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1120
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1332
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).s1q(ignoreMissing, $completion);
|
|
1121
1333
|
}
|
|
1122
1334
|
function readLineStrictTo(_this__u8e3s4, out, limit, lineEnding, $completion) {
|
|
1123
1335
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
@@ -1131,21 +1343,12 @@
|
|
|
1131
1343
|
}
|
|
1132
1344
|
function readRemaining_0(_this__u8e3s4, max, $completion) {
|
|
1133
1345
|
var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
|
|
1134
|
-
tmp.
|
|
1135
|
-
tmp.
|
|
1136
|
-
return tmp.
|
|
1137
|
-
}
|
|
1138
|
-
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1139
|
-
var tmp0_safe_receiver = _this__u8e3s4.u1n();
|
|
1140
|
-
if (tmp0_safe_receiver == null)
|
|
1141
|
-
null;
|
|
1142
|
-
else {
|
|
1143
|
-
// Inline function 'kotlin.let' call
|
|
1144
|
-
throw tmp0_safe_receiver;
|
|
1145
|
-
}
|
|
1346
|
+
tmp.f9_1 = Unit_instance;
|
|
1347
|
+
tmp.g9_1 = null;
|
|
1348
|
+
return tmp.l9();
|
|
1146
1349
|
}
|
|
1147
1350
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1148
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1351
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1o();
|
|
1149
1352
|
if (tmp0_safe_receiver == null)
|
|
1150
1353
|
null;
|
|
1151
1354
|
else {
|
|
@@ -1154,19 +1357,19 @@
|
|
|
1154
1357
|
}
|
|
1155
1358
|
}
|
|
1156
1359
|
function get_availableForRead(_this__u8e3s4) {
|
|
1157
|
-
return convertToInt(_this__u8e3s4.
|
|
1360
|
+
return convertToInt(_this__u8e3s4.t1o().eq().l1());
|
|
1158
1361
|
}
|
|
1159
1362
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1160
1363
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
1161
|
-
tmp.
|
|
1162
|
-
tmp.
|
|
1163
|
-
return tmp.
|
|
1364
|
+
tmp.f9_1 = Unit_instance;
|
|
1365
|
+
tmp.g9_1 = null;
|
|
1366
|
+
return tmp.l9();
|
|
1164
1367
|
}
|
|
1165
1368
|
function internalReadLineTo(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion) {
|
|
1166
1369
|
var tmp = new $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, $completion);
|
|
1167
|
-
tmp.
|
|
1168
|
-
tmp.
|
|
1169
|
-
return tmp.
|
|
1370
|
+
tmp.f9_1 = Unit_instance;
|
|
1371
|
+
tmp.g9_1 = null;
|
|
1372
|
+
return tmp.l9();
|
|
1170
1373
|
}
|
|
1171
1374
|
function throwEndOfStreamException(consumed) {
|
|
1172
1375
|
throw EOFException_init_$Create$('Unexpected end of stream after reading ' + consumed.toString() + ' characters');
|
|
@@ -1175,7 +1378,7 @@
|
|
|
1175
1378
|
throw new TooLongLineException('Line exceeds limit of ' + limit.toString() + ' characters');
|
|
1176
1379
|
}
|
|
1177
1380
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1178
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1381
|
+
var tmp0_safe_receiver = _this__u8e3s4.w1o();
|
|
1179
1382
|
if (tmp0_safe_receiver == null)
|
|
1180
1383
|
null;
|
|
1181
1384
|
else {
|
|
@@ -1214,178 +1417,178 @@
|
|
|
1214
1417
|
}
|
|
1215
1418
|
function internalReadLineTo$discardCrlfOrCr(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion) {
|
|
1216
1419
|
var tmp = new $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, $completion);
|
|
1217
|
-
tmp.
|
|
1218
|
-
tmp.
|
|
1219
|
-
return tmp.
|
|
1420
|
+
tmp.f9_1 = Unit_instance;
|
|
1421
|
+
tmp.g9_1 = null;
|
|
1422
|
+
return tmp.l9();
|
|
1220
1423
|
}
|
|
1221
1424
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1222
1425
|
CoroutineImpl.call(this, resultContinuation);
|
|
1223
|
-
this.
|
|
1426
|
+
this.g1r_1 = _this__u8e3s4;
|
|
1224
1427
|
}
|
|
1225
|
-
protoOf($readBufferCOROUTINE$).
|
|
1226
|
-
var suspendResult = this.
|
|
1428
|
+
protoOf($readBufferCOROUTINE$).l9 = function () {
|
|
1429
|
+
var suspendResult = this.f9_1;
|
|
1227
1430
|
$sm: do
|
|
1228
1431
|
try {
|
|
1229
|
-
var tmp = this.
|
|
1432
|
+
var tmp = this.d9_1;
|
|
1230
1433
|
switch (tmp) {
|
|
1231
1434
|
case 0:
|
|
1232
|
-
this.
|
|
1233
|
-
this.
|
|
1234
|
-
this.
|
|
1435
|
+
this.e9_1 = 4;
|
|
1436
|
+
this.h1r_1 = new Buffer();
|
|
1437
|
+
this.d9_1 = 1;
|
|
1235
1438
|
continue $sm;
|
|
1236
1439
|
case 1:
|
|
1237
|
-
if (!!this.
|
|
1238
|
-
this.
|
|
1440
|
+
if (!!this.g1r_1.x1o()) {
|
|
1441
|
+
this.d9_1 = 3;
|
|
1239
1442
|
continue $sm;
|
|
1240
1443
|
}
|
|
1241
1444
|
|
|
1242
|
-
this.
|
|
1243
|
-
this.
|
|
1244
|
-
suspendResult = this.
|
|
1445
|
+
this.h1r_1.xr(this.g1r_1.t1o());
|
|
1446
|
+
this.d9_1 = 2;
|
|
1447
|
+
suspendResult = this.g1r_1.z1o(VOID, this);
|
|
1245
1448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1246
1449
|
return suspendResult;
|
|
1247
1450
|
}
|
|
1248
1451
|
|
|
1249
1452
|
continue $sm;
|
|
1250
1453
|
case 2:
|
|
1251
|
-
this.
|
|
1454
|
+
this.d9_1 = 1;
|
|
1252
1455
|
continue $sm;
|
|
1253
1456
|
case 3:
|
|
1254
|
-
var tmp0_safe_receiver = this.
|
|
1457
|
+
var tmp0_safe_receiver = this.g1r_1.w1o();
|
|
1255
1458
|
if (tmp0_safe_receiver == null)
|
|
1256
1459
|
null;
|
|
1257
1460
|
else {
|
|
1258
1461
|
throw tmp0_safe_receiver;
|
|
1259
1462
|
}
|
|
1260
1463
|
|
|
1261
|
-
return this.
|
|
1464
|
+
return this.h1r_1;
|
|
1262
1465
|
case 4:
|
|
1263
|
-
throw this.
|
|
1466
|
+
throw this.g9_1;
|
|
1264
1467
|
}
|
|
1265
1468
|
} catch ($p) {
|
|
1266
1469
|
var e = $p;
|
|
1267
|
-
if (this.
|
|
1470
|
+
if (this.e9_1 === 4) {
|
|
1268
1471
|
throw e;
|
|
1269
1472
|
} else {
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1473
|
+
this.d9_1 = this.e9_1;
|
|
1474
|
+
this.g9_1 = e;
|
|
1272
1475
|
}
|
|
1273
1476
|
}
|
|
1274
1477
|
while (true);
|
|
1275
1478
|
};
|
|
1276
1479
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1277
1480
|
CoroutineImpl.call(this, resultContinuation);
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1481
|
+
this.q1r_1 = _this__u8e3s4;
|
|
1482
|
+
this.r1r_1 = buffer;
|
|
1483
|
+
this.s1r_1 = offset;
|
|
1484
|
+
this.t1r_1 = length;
|
|
1282
1485
|
}
|
|
1283
|
-
protoOf($readAvailableCOROUTINE$).
|
|
1284
|
-
var suspendResult = this.
|
|
1486
|
+
protoOf($readAvailableCOROUTINE$).l9 = function () {
|
|
1487
|
+
var suspendResult = this.f9_1;
|
|
1285
1488
|
$sm: do
|
|
1286
1489
|
try {
|
|
1287
|
-
var tmp = this.
|
|
1490
|
+
var tmp = this.d9_1;
|
|
1288
1491
|
switch (tmp) {
|
|
1289
1492
|
case 0:
|
|
1290
|
-
this.
|
|
1291
|
-
if (this.
|
|
1493
|
+
this.e9_1 = 3;
|
|
1494
|
+
if (this.q1r_1.x1o())
|
|
1292
1495
|
return -1;
|
|
1293
|
-
if (this.
|
|
1294
|
-
this.
|
|
1295
|
-
suspendResult = this.
|
|
1496
|
+
if (this.q1r_1.t1o().fq()) {
|
|
1497
|
+
this.d9_1 = 1;
|
|
1498
|
+
suspendResult = this.q1r_1.z1o(VOID, this);
|
|
1296
1499
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1297
1500
|
return suspendResult;
|
|
1298
1501
|
}
|
|
1299
1502
|
continue $sm;
|
|
1300
1503
|
} else {
|
|
1301
|
-
this.
|
|
1504
|
+
this.d9_1 = 2;
|
|
1302
1505
|
continue $sm;
|
|
1303
1506
|
}
|
|
1304
1507
|
|
|
1305
1508
|
case 1:
|
|
1306
|
-
this.
|
|
1509
|
+
this.d9_1 = 2;
|
|
1307
1510
|
continue $sm;
|
|
1308
1511
|
case 2:
|
|
1309
|
-
if (this.
|
|
1512
|
+
if (this.q1r_1.x1o())
|
|
1310
1513
|
return -1;
|
|
1311
|
-
return readAvailable_0(this.
|
|
1514
|
+
return readAvailable_0(this.q1r_1.t1o(), this.r1r_1, this.s1r_1, this.t1r_1);
|
|
1312
1515
|
case 3:
|
|
1313
|
-
throw this.
|
|
1516
|
+
throw this.g9_1;
|
|
1314
1517
|
}
|
|
1315
1518
|
} catch ($p) {
|
|
1316
1519
|
var e = $p;
|
|
1317
|
-
if (this.
|
|
1520
|
+
if (this.e9_1 === 3) {
|
|
1318
1521
|
throw e;
|
|
1319
1522
|
} else {
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1523
|
+
this.d9_1 = this.e9_1;
|
|
1524
|
+
this.g9_1 = e;
|
|
1322
1525
|
}
|
|
1323
1526
|
}
|
|
1324
1527
|
while (true);
|
|
1325
1528
|
};
|
|
1326
1529
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1327
1530
|
CoroutineImpl.call(this, resultContinuation);
|
|
1328
|
-
this.
|
|
1531
|
+
this.c1s_1 = _this__u8e3s4;
|
|
1329
1532
|
}
|
|
1330
|
-
protoOf($readRemainingCOROUTINE$).
|
|
1331
|
-
var suspendResult = this.
|
|
1533
|
+
protoOf($readRemainingCOROUTINE$).l9 = function () {
|
|
1534
|
+
var suspendResult = this.f9_1;
|
|
1332
1535
|
$sm: do
|
|
1333
1536
|
try {
|
|
1334
|
-
var tmp = this.
|
|
1537
|
+
var tmp = this.d9_1;
|
|
1335
1538
|
switch (tmp) {
|
|
1336
1539
|
case 0:
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1540
|
+
this.e9_1 = 4;
|
|
1541
|
+
this.d1s_1 = BytePacketBuilder();
|
|
1542
|
+
this.d9_1 = 1;
|
|
1340
1543
|
continue $sm;
|
|
1341
1544
|
case 1:
|
|
1342
|
-
if (!!this.
|
|
1343
|
-
this.
|
|
1545
|
+
if (!!this.c1s_1.x1o()) {
|
|
1546
|
+
this.d9_1 = 3;
|
|
1344
1547
|
continue $sm;
|
|
1345
1548
|
}
|
|
1346
1549
|
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
suspendResult = this.
|
|
1550
|
+
this.d1s_1.xr(this.c1s_1.t1o());
|
|
1551
|
+
this.d9_1 = 2;
|
|
1552
|
+
suspendResult = this.c1s_1.z1o(VOID, this);
|
|
1350
1553
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1351
1554
|
return suspendResult;
|
|
1352
1555
|
}
|
|
1353
1556
|
|
|
1354
1557
|
continue $sm;
|
|
1355
1558
|
case 2:
|
|
1356
|
-
this.
|
|
1559
|
+
this.d9_1 = 1;
|
|
1357
1560
|
continue $sm;
|
|
1358
1561
|
case 3:
|
|
1359
|
-
|
|
1360
|
-
return this.
|
|
1562
|
+
rethrowCloseCauseIfNeeded(this.c1s_1);
|
|
1563
|
+
return this.d1s_1.eq();
|
|
1361
1564
|
case 4:
|
|
1362
|
-
throw this.
|
|
1565
|
+
throw this.g9_1;
|
|
1363
1566
|
}
|
|
1364
1567
|
} catch ($p) {
|
|
1365
1568
|
var e = $p;
|
|
1366
|
-
if (this.
|
|
1569
|
+
if (this.e9_1 === 4) {
|
|
1367
1570
|
throw e;
|
|
1368
1571
|
} else {
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1572
|
+
this.d9_1 = this.e9_1;
|
|
1573
|
+
this.g9_1 = e;
|
|
1371
1574
|
}
|
|
1372
1575
|
}
|
|
1373
1576
|
while (true);
|
|
1374
1577
|
};
|
|
1375
1578
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1376
1579
|
CoroutineImpl.call(this, resultContinuation);
|
|
1377
|
-
this.
|
|
1580
|
+
this.m1s_1 = _this__u8e3s4;
|
|
1378
1581
|
}
|
|
1379
|
-
protoOf($toByteArrayCOROUTINE$).
|
|
1380
|
-
var suspendResult = this.
|
|
1582
|
+
protoOf($toByteArrayCOROUTINE$).l9 = function () {
|
|
1583
|
+
var suspendResult = this.f9_1;
|
|
1381
1584
|
$sm: do
|
|
1382
1585
|
try {
|
|
1383
|
-
var tmp = this.
|
|
1586
|
+
var tmp = this.d9_1;
|
|
1384
1587
|
switch (tmp) {
|
|
1385
1588
|
case 0:
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
suspendResult = readBuffer(this.
|
|
1589
|
+
this.e9_1 = 2;
|
|
1590
|
+
this.d9_1 = 1;
|
|
1591
|
+
suspendResult = readBuffer(this.m1s_1, this);
|
|
1389
1592
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1390
1593
|
return suspendResult;
|
|
1391
1594
|
}
|
|
@@ -1395,207 +1598,207 @@
|
|
|
1395
1598
|
var ARGUMENT = suspendResult;
|
|
1396
1599
|
return readBytes(ARGUMENT);
|
|
1397
1600
|
case 2:
|
|
1398
|
-
throw this.
|
|
1601
|
+
throw this.g9_1;
|
|
1399
1602
|
}
|
|
1400
1603
|
} catch ($p) {
|
|
1401
1604
|
var e = $p;
|
|
1402
|
-
if (this.
|
|
1605
|
+
if (this.e9_1 === 2) {
|
|
1403
1606
|
throw e;
|
|
1404
1607
|
} else {
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1608
|
+
this.d9_1 = this.e9_1;
|
|
1609
|
+
this.g9_1 = e;
|
|
1407
1610
|
}
|
|
1408
1611
|
}
|
|
1409
1612
|
while (true);
|
|
1410
1613
|
};
|
|
1411
1614
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1412
1615
|
CoroutineImpl.call(this, resultContinuation);
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1616
|
+
this.v1s_1 = _this__u8e3s4;
|
|
1617
|
+
this.w1s_1 = channel;
|
|
1618
|
+
this.x1s_1 = limit;
|
|
1416
1619
|
}
|
|
1417
|
-
protoOf($copyToCOROUTINE$).
|
|
1418
|
-
var suspendResult = this.
|
|
1620
|
+
protoOf($copyToCOROUTINE$).l9 = function () {
|
|
1621
|
+
var suspendResult = this.f9_1;
|
|
1419
1622
|
$sm: do
|
|
1420
1623
|
try {
|
|
1421
|
-
var tmp = this.
|
|
1624
|
+
var tmp = this.d9_1;
|
|
1422
1625
|
switch (tmp) {
|
|
1423
1626
|
case 0:
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1627
|
+
this.e9_1 = 12;
|
|
1628
|
+
this.y1s_1 = this.x1s_1;
|
|
1629
|
+
this.d9_1 = 1;
|
|
1427
1630
|
continue $sm;
|
|
1428
1631
|
case 1:
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1632
|
+
this.e9_1 = 8;
|
|
1633
|
+
this.e9_1 = 7;
|
|
1634
|
+
this.d9_1 = 2;
|
|
1432
1635
|
continue $sm;
|
|
1433
1636
|
case 2:
|
|
1434
|
-
if (!(!this.
|
|
1435
|
-
this.
|
|
1637
|
+
if (!(!this.v1s_1.x1o() && this.y1s_1 > 0n)) {
|
|
1638
|
+
this.d9_1 = 6;
|
|
1436
1639
|
continue $sm;
|
|
1437
1640
|
}
|
|
1438
1641
|
|
|
1439
|
-
if (this.
|
|
1440
|
-
this.
|
|
1441
|
-
suspendResult = this.
|
|
1642
|
+
if (this.v1s_1.t1o().fq()) {
|
|
1643
|
+
this.d9_1 = 3;
|
|
1644
|
+
suspendResult = this.v1s_1.z1o(VOID, this);
|
|
1442
1645
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1443
1646
|
return suspendResult;
|
|
1444
1647
|
}
|
|
1445
1648
|
continue $sm;
|
|
1446
1649
|
} else {
|
|
1447
|
-
this.
|
|
1650
|
+
this.d9_1 = 4;
|
|
1448
1651
|
continue $sm;
|
|
1449
1652
|
}
|
|
1450
1653
|
|
|
1451
1654
|
case 3:
|
|
1452
|
-
this.
|
|
1655
|
+
this.d9_1 = 4;
|
|
1453
1656
|
continue $sm;
|
|
1454
1657
|
case 4:
|
|
1455
|
-
var tmp0 = this.
|
|
1456
|
-
var b = get_remaining(this.
|
|
1658
|
+
var tmp0 = this.y1s_1;
|
|
1659
|
+
var b = get_remaining(this.v1s_1.t1o());
|
|
1457
1660
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
suspendResult = this.
|
|
1661
|
+
this.v1s_1.t1o().hr(this.w1s_1.u1o(), count);
|
|
1662
|
+
this.y1s_1 = subtract(this.y1s_1, count);
|
|
1663
|
+
this.d9_1 = 5;
|
|
1664
|
+
suspendResult = this.w1s_1.r1o(this);
|
|
1462
1665
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1463
1666
|
return suspendResult;
|
|
1464
1667
|
}
|
|
1465
1668
|
|
|
1466
1669
|
continue $sm;
|
|
1467
1670
|
case 5:
|
|
1468
|
-
this.
|
|
1671
|
+
this.d9_1 = 2;
|
|
1469
1672
|
continue $sm;
|
|
1470
1673
|
case 6:
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1674
|
+
this.e9_1 = 12;
|
|
1675
|
+
this.d9_1 = 10;
|
|
1473
1676
|
continue $sm;
|
|
1474
1677
|
case 7:
|
|
1475
|
-
this.
|
|
1476
|
-
var tmp_0 = this.
|
|
1678
|
+
this.e9_1 = 8;
|
|
1679
|
+
var tmp_0 = this.g9_1;
|
|
1477
1680
|
if (tmp_0 instanceof Error) {
|
|
1478
|
-
var cause = this.
|
|
1479
|
-
this.
|
|
1480
|
-
close_0(this.
|
|
1681
|
+
var cause = this.g9_1;
|
|
1682
|
+
this.v1s_1.b1p(cause);
|
|
1683
|
+
close_0(this.w1s_1, cause);
|
|
1481
1684
|
throw cause;
|
|
1482
1685
|
} else {
|
|
1483
|
-
throw this.
|
|
1686
|
+
throw this.g9_1;
|
|
1484
1687
|
}
|
|
1485
1688
|
|
|
1486
1689
|
case 8:
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
suspendResult = this.
|
|
1690
|
+
this.e9_1 = 12;
|
|
1691
|
+
this.z1s_1 = this.g9_1;
|
|
1692
|
+
this.d9_1 = 9;
|
|
1693
|
+
suspendResult = this.w1s_1.r1o(this);
|
|
1491
1694
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1492
1695
|
return suspendResult;
|
|
1493
1696
|
}
|
|
1494
1697
|
|
|
1495
1698
|
continue $sm;
|
|
1496
1699
|
case 9:
|
|
1497
|
-
throw this.
|
|
1700
|
+
throw this.z1s_1;
|
|
1498
1701
|
case 10:
|
|
1499
|
-
this.
|
|
1500
|
-
this.
|
|
1501
|
-
suspendResult = this.
|
|
1702
|
+
this.e9_1 = 12;
|
|
1703
|
+
this.d9_1 = 11;
|
|
1704
|
+
suspendResult = this.w1s_1.r1o(this);
|
|
1502
1705
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1503
1706
|
return suspendResult;
|
|
1504
1707
|
}
|
|
1505
1708
|
|
|
1506
1709
|
continue $sm;
|
|
1507
1710
|
case 11:
|
|
1508
|
-
return subtract(this.
|
|
1711
|
+
return subtract(this.x1s_1, this.y1s_1);
|
|
1509
1712
|
case 12:
|
|
1510
|
-
throw this.
|
|
1713
|
+
throw this.g9_1;
|
|
1511
1714
|
}
|
|
1512
1715
|
} catch ($p) {
|
|
1513
1716
|
var e = $p;
|
|
1514
|
-
if (this.
|
|
1717
|
+
if (this.e9_1 === 12) {
|
|
1515
1718
|
throw e;
|
|
1516
1719
|
} else {
|
|
1517
|
-
this.
|
|
1518
|
-
this.
|
|
1720
|
+
this.d9_1 = this.e9_1;
|
|
1721
|
+
this.g9_1 = e;
|
|
1519
1722
|
}
|
|
1520
1723
|
}
|
|
1521
1724
|
while (true);
|
|
1522
1725
|
};
|
|
1523
1726
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1524
1727
|
CoroutineImpl.call(this, resultContinuation);
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1728
|
+
this.i1t_1 = _this__u8e3s4;
|
|
1729
|
+
this.j1t_1 = max;
|
|
1527
1730
|
}
|
|
1528
|
-
protoOf($discardCOROUTINE$).
|
|
1529
|
-
var suspendResult = this.
|
|
1731
|
+
protoOf($discardCOROUTINE$).l9 = function () {
|
|
1732
|
+
var suspendResult = this.f9_1;
|
|
1530
1733
|
$sm: do
|
|
1531
1734
|
try {
|
|
1532
|
-
var tmp = this.
|
|
1735
|
+
var tmp = this.d9_1;
|
|
1533
1736
|
switch (tmp) {
|
|
1534
1737
|
case 0:
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1738
|
+
this.e9_1 = 5;
|
|
1739
|
+
this.k1t_1 = this.j1t_1;
|
|
1740
|
+
this.d9_1 = 1;
|
|
1538
1741
|
continue $sm;
|
|
1539
1742
|
case 1:
|
|
1540
|
-
if (!(this.
|
|
1541
|
-
this.
|
|
1743
|
+
if (!(this.k1t_1 > 0n && !this.i1t_1.x1o())) {
|
|
1744
|
+
this.d9_1 = 4;
|
|
1542
1745
|
continue $sm;
|
|
1543
1746
|
}
|
|
1544
1747
|
|
|
1545
|
-
if (get_availableForRead(this.
|
|
1546
|
-
this.
|
|
1547
|
-
suspendResult = this.
|
|
1748
|
+
if (get_availableForRead(this.i1t_1) === 0) {
|
|
1749
|
+
this.d9_1 = 2;
|
|
1750
|
+
suspendResult = this.i1t_1.z1o(VOID, this);
|
|
1548
1751
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1549
1752
|
return suspendResult;
|
|
1550
1753
|
}
|
|
1551
1754
|
continue $sm;
|
|
1552
1755
|
} else {
|
|
1553
|
-
this.
|
|
1756
|
+
this.d9_1 = 3;
|
|
1554
1757
|
continue $sm;
|
|
1555
1758
|
}
|
|
1556
1759
|
|
|
1557
1760
|
case 2:
|
|
1558
|
-
this.
|
|
1761
|
+
this.d9_1 = 3;
|
|
1559
1762
|
continue $sm;
|
|
1560
1763
|
case 3:
|
|
1561
|
-
var tmp0 = this.
|
|
1562
|
-
var b = get_remaining(this.
|
|
1764
|
+
var tmp0 = this.k1t_1;
|
|
1765
|
+
var b = get_remaining(this.i1t_1.t1o());
|
|
1563
1766
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1564
|
-
discard_0(this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1767
|
+
discard_0(this.i1t_1.t1o(), count);
|
|
1768
|
+
this.k1t_1 = subtract(this.k1t_1, count);
|
|
1769
|
+
this.d9_1 = 1;
|
|
1567
1770
|
continue $sm;
|
|
1568
1771
|
case 4:
|
|
1569
|
-
return subtract(this.
|
|
1772
|
+
return subtract(this.j1t_1, this.k1t_1);
|
|
1570
1773
|
case 5:
|
|
1571
|
-
throw this.
|
|
1774
|
+
throw this.g9_1;
|
|
1572
1775
|
}
|
|
1573
1776
|
} catch ($p) {
|
|
1574
1777
|
var e = $p;
|
|
1575
|
-
if (this.
|
|
1778
|
+
if (this.e9_1 === 5) {
|
|
1576
1779
|
throw e;
|
|
1577
1780
|
} else {
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1781
|
+
this.d9_1 = this.e9_1;
|
|
1782
|
+
this.g9_1 = e;
|
|
1580
1783
|
}
|
|
1581
1784
|
}
|
|
1582
1785
|
while (true);
|
|
1583
1786
|
};
|
|
1584
1787
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1585
1788
|
CoroutineImpl.call(this, resultContinuation);
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1789
|
+
this.t1t_1 = _this__u8e3s4;
|
|
1790
|
+
this.u1t_1 = byteString;
|
|
1588
1791
|
}
|
|
1589
|
-
protoOf($skipIfFoundCOROUTINE$).
|
|
1590
|
-
var suspendResult = this.
|
|
1792
|
+
protoOf($skipIfFoundCOROUTINE$).l9 = function () {
|
|
1793
|
+
var suspendResult = this.f9_1;
|
|
1591
1794
|
$sm: do
|
|
1592
1795
|
try {
|
|
1593
|
-
var tmp = this.
|
|
1796
|
+
var tmp = this.d9_1;
|
|
1594
1797
|
switch (tmp) {
|
|
1595
1798
|
case 0:
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
suspendResult = peek(this.
|
|
1799
|
+
this.e9_1 = 4;
|
|
1800
|
+
this.d9_1 = 1;
|
|
1801
|
+
suspendResult = peek(this.t1t_1, this.u1t_1.l1(), this);
|
|
1599
1802
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1600
1803
|
return suspendResult;
|
|
1601
1804
|
}
|
|
@@ -1603,15 +1806,15 @@
|
|
|
1603
1806
|
continue $sm;
|
|
1604
1807
|
case 1:
|
|
1605
1808
|
var ARGUMENT = suspendResult;
|
|
1606
|
-
if (equals(ARGUMENT, this.
|
|
1607
|
-
this.
|
|
1608
|
-
suspendResult = discard(this.
|
|
1809
|
+
if (equals(ARGUMENT, this.u1t_1)) {
|
|
1810
|
+
this.d9_1 = 3;
|
|
1811
|
+
suspendResult = discard(this.t1t_1, fromInt(this.u1t_1.l1()), this);
|
|
1609
1812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1610
1813
|
return suspendResult;
|
|
1611
1814
|
}
|
|
1612
1815
|
continue $sm;
|
|
1613
1816
|
} else {
|
|
1614
|
-
this.
|
|
1817
|
+
this.d9_1 = 2;
|
|
1615
1818
|
continue $sm;
|
|
1616
1819
|
}
|
|
1617
1820
|
|
|
@@ -1620,168 +1823,168 @@
|
|
|
1620
1823
|
case 3:
|
|
1621
1824
|
return true;
|
|
1622
1825
|
case 4:
|
|
1623
|
-
throw this.
|
|
1826
|
+
throw this.g9_1;
|
|
1624
1827
|
}
|
|
1625
1828
|
} catch ($p) {
|
|
1626
1829
|
var e = $p;
|
|
1627
|
-
if (this.
|
|
1830
|
+
if (this.e9_1 === 4) {
|
|
1628
1831
|
throw e;
|
|
1629
1832
|
} else {
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1833
|
+
this.d9_1 = this.e9_1;
|
|
1834
|
+
this.g9_1 = e;
|
|
1632
1835
|
}
|
|
1633
1836
|
}
|
|
1634
1837
|
while (true);
|
|
1635
1838
|
};
|
|
1636
1839
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1637
1840
|
CoroutineImpl.call(this, resultContinuation);
|
|
1638
|
-
this.
|
|
1639
|
-
this.
|
|
1841
|
+
this.d1u_1 = _this__u8e3s4;
|
|
1842
|
+
this.e1u_1 = packet;
|
|
1640
1843
|
}
|
|
1641
|
-
protoOf($readPacketCOROUTINE$).
|
|
1642
|
-
var suspendResult = this.
|
|
1844
|
+
protoOf($readPacketCOROUTINE$).l9 = function () {
|
|
1845
|
+
var suspendResult = this.f9_1;
|
|
1643
1846
|
$sm: do
|
|
1644
1847
|
try {
|
|
1645
|
-
var tmp = this.
|
|
1848
|
+
var tmp = this.d9_1;
|
|
1646
1849
|
switch (tmp) {
|
|
1647
1850
|
case 0:
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1851
|
+
this.e9_1 = 6;
|
|
1852
|
+
this.f1u_1 = new Buffer();
|
|
1853
|
+
this.d9_1 = 1;
|
|
1651
1854
|
continue $sm;
|
|
1652
1855
|
case 1:
|
|
1653
|
-
if (!(this.
|
|
1654
|
-
this.
|
|
1856
|
+
if (!(this.f1u_1.l1() < fromInt(this.e1u_1))) {
|
|
1857
|
+
this.d9_1 = 5;
|
|
1655
1858
|
continue $sm;
|
|
1656
1859
|
}
|
|
1657
1860
|
|
|
1658
|
-
if (this.
|
|
1659
|
-
this.
|
|
1660
|
-
suspendResult = this.
|
|
1861
|
+
if (this.d1u_1.t1o().fq()) {
|
|
1862
|
+
this.d9_1 = 2;
|
|
1863
|
+
suspendResult = this.d1u_1.z1o(VOID, this);
|
|
1661
1864
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1662
1865
|
return suspendResult;
|
|
1663
1866
|
}
|
|
1664
1867
|
continue $sm;
|
|
1665
1868
|
} else {
|
|
1666
|
-
this.
|
|
1869
|
+
this.d9_1 = 3;
|
|
1667
1870
|
continue $sm;
|
|
1668
1871
|
}
|
|
1669
1872
|
|
|
1670
1873
|
case 2:
|
|
1671
|
-
this.
|
|
1874
|
+
this.d9_1 = 3;
|
|
1672
1875
|
continue $sm;
|
|
1673
1876
|
case 3:
|
|
1674
|
-
if (this.
|
|
1675
|
-
this.
|
|
1877
|
+
if (this.d1u_1.x1o()) {
|
|
1878
|
+
this.d9_1 = 5;
|
|
1676
1879
|
continue $sm;
|
|
1677
1880
|
} else {
|
|
1678
|
-
this.
|
|
1881
|
+
this.d9_1 = 4;
|
|
1679
1882
|
continue $sm;
|
|
1680
1883
|
}
|
|
1681
1884
|
|
|
1682
1885
|
case 4:
|
|
1683
|
-
if (get_remaining(this.
|
|
1684
|
-
this.
|
|
1886
|
+
if (get_remaining(this.d1u_1.t1o()) > subtract(numberToLong(this.e1u_1), this.f1u_1.l1())) {
|
|
1887
|
+
this.d1u_1.t1o().hr(this.f1u_1, subtract(numberToLong(this.e1u_1), this.f1u_1.l1()));
|
|
1685
1888
|
} else {
|
|
1686
|
-
this.
|
|
1889
|
+
this.d1u_1.t1o().ir(this.f1u_1);
|
|
1687
1890
|
}
|
|
1688
1891
|
|
|
1689
|
-
this.
|
|
1892
|
+
this.d9_1 = 1;
|
|
1690
1893
|
continue $sm;
|
|
1691
1894
|
case 5:
|
|
1692
|
-
if (this.
|
|
1693
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1895
|
+
if (this.f1u_1.l1() < fromInt(this.e1u_1)) {
|
|
1896
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.e1u_1 + ' bytes but only ' + this.f1u_1.l1().toString() + ' available');
|
|
1694
1897
|
}
|
|
1695
1898
|
|
|
1696
|
-
return this.
|
|
1899
|
+
return this.f1u_1;
|
|
1697
1900
|
case 6:
|
|
1698
|
-
throw this.
|
|
1901
|
+
throw this.g9_1;
|
|
1699
1902
|
}
|
|
1700
1903
|
} catch ($p) {
|
|
1701
1904
|
var e = $p;
|
|
1702
|
-
if (this.
|
|
1905
|
+
if (this.e9_1 === 6) {
|
|
1703
1906
|
throw e;
|
|
1704
1907
|
} else {
|
|
1705
|
-
this.
|
|
1706
|
-
this.
|
|
1908
|
+
this.d9_1 = this.e9_1;
|
|
1909
|
+
this.g9_1 = e;
|
|
1707
1910
|
}
|
|
1708
1911
|
}
|
|
1709
1912
|
while (true);
|
|
1710
1913
|
};
|
|
1711
1914
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1712
1915
|
CoroutineImpl.call(this, resultContinuation);
|
|
1713
|
-
this.
|
|
1714
|
-
this.
|
|
1916
|
+
this.o1u_1 = _this__u8e3s4;
|
|
1917
|
+
this.p1u_1 = max;
|
|
1715
1918
|
}
|
|
1716
|
-
protoOf($readRemainingCOROUTINE$_0).
|
|
1717
|
-
var suspendResult = this.
|
|
1919
|
+
protoOf($readRemainingCOROUTINE$_0).l9 = function () {
|
|
1920
|
+
var suspendResult = this.f9_1;
|
|
1718
1921
|
$sm: do
|
|
1719
1922
|
try {
|
|
1720
|
-
var tmp = this.
|
|
1923
|
+
var tmp = this.d9_1;
|
|
1721
1924
|
switch (tmp) {
|
|
1722
1925
|
case 0:
|
|
1723
|
-
this.
|
|
1724
|
-
this.
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1926
|
+
this.e9_1 = 4;
|
|
1927
|
+
this.q1u_1 = BytePacketBuilder();
|
|
1928
|
+
this.r1u_1 = this.p1u_1;
|
|
1929
|
+
this.d9_1 = 1;
|
|
1727
1930
|
continue $sm;
|
|
1728
1931
|
case 1:
|
|
1729
|
-
if (!(!this.
|
|
1730
|
-
this.
|
|
1932
|
+
if (!(!this.o1u_1.x1o() && this.r1u_1 > 0n)) {
|
|
1933
|
+
this.d9_1 = 3;
|
|
1731
1934
|
continue $sm;
|
|
1732
1935
|
}
|
|
1733
1936
|
|
|
1734
|
-
if (this.
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1937
|
+
if (this.r1u_1 >= get_remaining(this.o1u_1.t1o())) {
|
|
1938
|
+
this.r1u_1 = subtract(this.r1u_1, get_remaining(this.o1u_1.t1o()));
|
|
1939
|
+
this.o1u_1.t1o().ir(this.q1u_1);
|
|
1737
1940
|
} else {
|
|
1738
|
-
this.
|
|
1739
|
-
this.
|
|
1941
|
+
this.o1u_1.t1o().hr(this.q1u_1, this.r1u_1);
|
|
1942
|
+
this.r1u_1 = 0n;
|
|
1740
1943
|
}
|
|
1741
1944
|
|
|
1742
|
-
this.
|
|
1743
|
-
suspendResult = this.
|
|
1945
|
+
this.d9_1 = 2;
|
|
1946
|
+
suspendResult = this.o1u_1.z1o(VOID, this);
|
|
1744
1947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1745
1948
|
return suspendResult;
|
|
1746
1949
|
}
|
|
1747
1950
|
|
|
1748
1951
|
continue $sm;
|
|
1749
1952
|
case 2:
|
|
1750
|
-
this.
|
|
1953
|
+
this.d9_1 = 1;
|
|
1751
1954
|
continue $sm;
|
|
1752
1955
|
case 3:
|
|
1753
|
-
return this.
|
|
1956
|
+
return this.q1u_1.eq();
|
|
1754
1957
|
case 4:
|
|
1755
|
-
throw this.
|
|
1958
|
+
throw this.g9_1;
|
|
1756
1959
|
}
|
|
1757
1960
|
} catch ($p) {
|
|
1758
1961
|
var e = $p;
|
|
1759
|
-
if (this.
|
|
1962
|
+
if (this.e9_1 === 4) {
|
|
1760
1963
|
throw e;
|
|
1761
1964
|
} else {
|
|
1762
|
-
this.
|
|
1763
|
-
this.
|
|
1965
|
+
this.d9_1 = this.e9_1;
|
|
1966
|
+
this.g9_1 = e;
|
|
1764
1967
|
}
|
|
1765
1968
|
}
|
|
1766
1969
|
while (true);
|
|
1767
1970
|
};
|
|
1768
1971
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
1769
1972
|
CoroutineImpl.call(this, resultContinuation);
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1973
|
+
this.a1v_1 = _this__u8e3s4;
|
|
1974
|
+
this.b1v_1 = count;
|
|
1772
1975
|
}
|
|
1773
|
-
protoOf($peekCOROUTINE$).
|
|
1774
|
-
var suspendResult = this.
|
|
1976
|
+
protoOf($peekCOROUTINE$).l9 = function () {
|
|
1977
|
+
var suspendResult = this.f9_1;
|
|
1775
1978
|
$sm: do
|
|
1776
1979
|
try {
|
|
1777
|
-
var tmp = this.
|
|
1980
|
+
var tmp = this.d9_1;
|
|
1778
1981
|
switch (tmp) {
|
|
1779
1982
|
case 0:
|
|
1780
|
-
this.
|
|
1781
|
-
if (this.
|
|
1983
|
+
this.e9_1 = 3;
|
|
1984
|
+
if (this.a1v_1.x1o())
|
|
1782
1985
|
return null;
|
|
1783
|
-
this.
|
|
1784
|
-
suspendResult = this.
|
|
1986
|
+
this.d9_1 = 1;
|
|
1987
|
+
suspendResult = this.a1v_1.y1o(this.b1v_1, this);
|
|
1785
1988
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1786
1989
|
return suspendResult;
|
|
1787
1990
|
}
|
|
@@ -1791,272 +1994,272 @@
|
|
|
1791
1994
|
if (!suspendResult) {
|
|
1792
1995
|
return null;
|
|
1793
1996
|
} else {
|
|
1794
|
-
this.
|
|
1997
|
+
this.d9_1 = 2;
|
|
1795
1998
|
continue $sm;
|
|
1796
1999
|
}
|
|
1797
2000
|
|
|
1798
2001
|
case 2:
|
|
1799
|
-
return readByteString(this.
|
|
2002
|
+
return readByteString(this.a1v_1.t1o().jr(), this.b1v_1);
|
|
1800
2003
|
case 3:
|
|
1801
|
-
throw this.
|
|
2004
|
+
throw this.g9_1;
|
|
1802
2005
|
}
|
|
1803
2006
|
} catch ($p) {
|
|
1804
2007
|
var e = $p;
|
|
1805
|
-
if (this.
|
|
2008
|
+
if (this.e9_1 === 3) {
|
|
1806
2009
|
throw e;
|
|
1807
2010
|
} else {
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
2011
|
+
this.d9_1 = this.e9_1;
|
|
2012
|
+
this.g9_1 = e;
|
|
1810
2013
|
}
|
|
1811
2014
|
}
|
|
1812
2015
|
while (true);
|
|
1813
2016
|
};
|
|
1814
2017
|
function $internalReadLineToCOROUTINE$(_this__u8e3s4, out, limit, lenientLineEnding, throwOnIncompleteLine, resultContinuation) {
|
|
1815
2018
|
CoroutineImpl.call(this, resultContinuation);
|
|
1816
|
-
this.
|
|
1817
|
-
this.
|
|
1818
|
-
this.
|
|
1819
|
-
this.
|
|
1820
|
-
this.
|
|
1821
|
-
}
|
|
1822
|
-
protoOf($internalReadLineToCOROUTINE$).
|
|
1823
|
-
var suspendResult = this.
|
|
2019
|
+
this.k1v_1 = _this__u8e3s4;
|
|
2020
|
+
this.l1v_1 = out;
|
|
2021
|
+
this.m1v_1 = limit;
|
|
2022
|
+
this.n1v_1 = lenientLineEnding;
|
|
2023
|
+
this.o1v_1 = throwOnIncompleteLine;
|
|
2024
|
+
}
|
|
2025
|
+
protoOf($internalReadLineToCOROUTINE$).l9 = function () {
|
|
2026
|
+
var suspendResult = this.f9_1;
|
|
1824
2027
|
$sm: do
|
|
1825
2028
|
try {
|
|
1826
|
-
var tmp = this.
|
|
2029
|
+
var tmp = this.d9_1;
|
|
1827
2030
|
switch (tmp) {
|
|
1828
2031
|
case 0:
|
|
1829
|
-
this.
|
|
1830
|
-
this.
|
|
1831
|
-
if (this.
|
|
1832
|
-
this.
|
|
1833
|
-
suspendResult = this.
|
|
2032
|
+
this.e9_1 = 18;
|
|
2033
|
+
this.q1v_1 = this.k1v_1.t1o();
|
|
2034
|
+
if (this.q1v_1.fq()) {
|
|
2035
|
+
this.d9_1 = 1;
|
|
2036
|
+
suspendResult = this.k1v_1.z1o(VOID, this);
|
|
1834
2037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1835
2038
|
return suspendResult;
|
|
1836
2039
|
}
|
|
1837
2040
|
continue $sm;
|
|
1838
2041
|
} else {
|
|
1839
|
-
this.
|
|
2042
|
+
this.d9_1 = 2;
|
|
1840
2043
|
continue $sm;
|
|
1841
2044
|
}
|
|
1842
2045
|
|
|
1843
2046
|
case 1:
|
|
1844
|
-
this.
|
|
2047
|
+
this.d9_1 = 2;
|
|
1845
2048
|
continue $sm;
|
|
1846
2049
|
case 2:
|
|
1847
|
-
if (this.
|
|
2050
|
+
if (this.k1v_1.x1o())
|
|
1848
2051
|
return -1n;
|
|
1849
|
-
this.
|
|
1850
|
-
this.
|
|
2052
|
+
this.p1v_1 = {_v: 0n};
|
|
2053
|
+
this.d9_1 = 3;
|
|
1851
2054
|
continue $sm;
|
|
1852
2055
|
case 3:
|
|
1853
|
-
if (!(this.
|
|
1854
|
-
this.
|
|
2056
|
+
if (!(this.p1v_1._v < this.m1v_1 && !this.k1v_1.x1o())) {
|
|
2057
|
+
this.d9_1 = 10;
|
|
1855
2058
|
continue $sm;
|
|
1856
2059
|
}
|
|
1857
2060
|
|
|
1858
|
-
var limitLeft = subtract(this.
|
|
1859
|
-
var lfIndex = indexOf(this.
|
|
1860
|
-
var crIndex = internalReadLineTo$scanForSoleCr(this.
|
|
2061
|
+
var limitLeft = subtract(this.m1v_1, this.p1v_1._v);
|
|
2062
|
+
var lfIndex = indexOf(this.q1v_1, 10, VOID, limitLeft);
|
|
2063
|
+
var crIndex = internalReadLineTo$scanForSoleCr(this.q1v_1, this.n1v_1, lfIndex, limitLeft);
|
|
1861
2064
|
if (crIndex >= 0n) {
|
|
1862
|
-
internalReadLineTo$transferString(this.
|
|
1863
|
-
discard_0(this.
|
|
1864
|
-
return this.
|
|
2065
|
+
internalReadLineTo$transferString(this.q1v_1, this.l1v_1, this.p1v_1, crIndex);
|
|
2066
|
+
discard_0(this.q1v_1, 1n);
|
|
2067
|
+
return this.p1v_1._v;
|
|
1865
2068
|
}
|
|
1866
2069
|
|
|
1867
2070
|
if (lfIndex === 0n) {
|
|
1868
|
-
discard_0(this.
|
|
1869
|
-
return this.
|
|
2071
|
+
discard_0(this.q1v_1, 1n);
|
|
2072
|
+
return this.p1v_1._v;
|
|
1870
2073
|
}
|
|
1871
2074
|
|
|
1872
2075
|
if (lfIndex > 0n) {
|
|
1873
2076
|
var tmp_0;
|
|
1874
|
-
var tmp_1 = this.
|
|
1875
|
-
if (tmp_1.
|
|
2077
|
+
var tmp_1 = this.q1v_1.eq();
|
|
2078
|
+
if (tmp_1.ar(subtract(lfIndex, fromInt(1))) === 13) {
|
|
1876
2079
|
tmp_0 = 1n;
|
|
1877
2080
|
} else {
|
|
1878
2081
|
tmp_0 = 0n;
|
|
1879
2082
|
}
|
|
1880
2083
|
var isCrlf = tmp_0;
|
|
1881
|
-
internalReadLineTo$transferString(this.
|
|
1882
|
-
discard_0(this.
|
|
1883
|
-
return this.
|
|
2084
|
+
internalReadLineTo$transferString(this.q1v_1, this.l1v_1, this.p1v_1, subtract(lfIndex, isCrlf));
|
|
2085
|
+
discard_0(this.q1v_1, add(numberToLong(1), isCrlf));
|
|
2086
|
+
return this.p1v_1._v;
|
|
1884
2087
|
}
|
|
1885
2088
|
|
|
1886
|
-
var b = get_remaining(this.
|
|
2089
|
+
var b = get_remaining(this.q1v_1);
|
|
1887
2090
|
var count = limitLeft <= b ? limitLeft : b;
|
|
1888
|
-
var tmp_2 = this.
|
|
1889
|
-
if (tmp_2.
|
|
1890
|
-
internalReadLineTo$transferString(this.
|
|
1891
|
-
this.
|
|
1892
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2091
|
+
var tmp_2 = this.q1v_1.eq();
|
|
2092
|
+
if (tmp_2.ar(subtract(count, fromInt(1))) === 13) {
|
|
2093
|
+
internalReadLineTo$transferString(this.q1v_1, this.l1v_1, this.p1v_1, subtract(count, fromInt(1)));
|
|
2094
|
+
this.d9_1 = 4;
|
|
2095
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.q1v_1, this.k1v_1, this.n1v_1, this);
|
|
1893
2096
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1894
2097
|
return suspendResult;
|
|
1895
2098
|
}
|
|
1896
2099
|
continue $sm;
|
|
1897
2100
|
} else {
|
|
1898
|
-
internalReadLineTo$transferString(this.
|
|
1899
|
-
this.
|
|
2101
|
+
internalReadLineTo$transferString(this.q1v_1, this.l1v_1, this.p1v_1, count);
|
|
2102
|
+
this.d9_1 = 6;
|
|
1900
2103
|
continue $sm;
|
|
1901
2104
|
}
|
|
1902
2105
|
|
|
1903
2106
|
case 4:
|
|
1904
2107
|
if (suspendResult) {
|
|
1905
|
-
return this.
|
|
2108
|
+
return this.p1v_1._v;
|
|
1906
2109
|
} else {
|
|
1907
|
-
this.
|
|
2110
|
+
this.d9_1 = 5;
|
|
1908
2111
|
continue $sm;
|
|
1909
2112
|
}
|
|
1910
2113
|
|
|
1911
2114
|
case 5:
|
|
1912
|
-
internalReadLineTo$transferString(this.
|
|
1913
|
-
this.
|
|
2115
|
+
internalReadLineTo$transferString(this.q1v_1, this.l1v_1, this.p1v_1, 1n);
|
|
2116
|
+
this.d9_1 = 6;
|
|
1914
2117
|
continue $sm;
|
|
1915
2118
|
case 6:
|
|
1916
|
-
if (this.
|
|
1917
|
-
this.
|
|
1918
|
-
suspendResult = this.
|
|
2119
|
+
if (this.p1v_1._v < this.m1v_1 && get_remaining(this.q1v_1) === 0n) {
|
|
2120
|
+
this.d9_1 = 7;
|
|
2121
|
+
suspendResult = this.k1v_1.z1o(VOID, this);
|
|
1919
2122
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1920
2123
|
return suspendResult;
|
|
1921
2124
|
}
|
|
1922
2125
|
continue $sm;
|
|
1923
2126
|
} else {
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
2127
|
+
this.s1v_1 = false;
|
|
2128
|
+
this.d9_1 = 8;
|
|
1926
2129
|
continue $sm;
|
|
1927
2130
|
}
|
|
1928
2131
|
|
|
1929
2132
|
case 7:
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
2133
|
+
this.s1v_1 = !suspendResult;
|
|
2134
|
+
this.d9_1 = 8;
|
|
1932
2135
|
continue $sm;
|
|
1933
2136
|
case 8:
|
|
1934
|
-
if (this.
|
|
1935
|
-
this.
|
|
2137
|
+
if (this.s1v_1) {
|
|
2138
|
+
this.d9_1 = 10;
|
|
1936
2139
|
continue $sm;
|
|
1937
2140
|
} else {
|
|
1938
|
-
this.
|
|
2141
|
+
this.d9_1 = 9;
|
|
1939
2142
|
continue $sm;
|
|
1940
2143
|
}
|
|
1941
2144
|
|
|
1942
2145
|
case 9:
|
|
1943
|
-
this.
|
|
2146
|
+
this.d9_1 = 3;
|
|
1944
2147
|
continue $sm;
|
|
1945
2148
|
case 10:
|
|
1946
|
-
if (this.
|
|
2149
|
+
if (this.p1v_1._v === 0n && this.k1v_1.x1o())
|
|
1947
2150
|
return -1n;
|
|
1948
|
-
if (!(this.
|
|
1949
|
-
var message = 'Consumed bytes exceed the limit: ' + this.
|
|
2151
|
+
if (!(this.p1v_1._v <= this.m1v_1)) {
|
|
2152
|
+
var message = 'Consumed bytes exceed the limit: ' + this.p1v_1._v.toString() + ' > ' + this.m1v_1.toString() + ". It's an implementation bug, please report it.";
|
|
1950
2153
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
1951
2154
|
}
|
|
1952
2155
|
|
|
1953
|
-
if (this.
|
|
1954
|
-
if (this.
|
|
2156
|
+
if (this.p1v_1._v === this.m1v_1) {
|
|
2157
|
+
if (this.m1v_1 === 9223372036854775807n)
|
|
1955
2158
|
throw new TooLongLineException('Max line length exceeded');
|
|
1956
|
-
if (get_remaining(this.
|
|
1957
|
-
this.
|
|
1958
|
-
suspendResult = this.
|
|
2159
|
+
if (get_remaining(this.q1v_1) === 0n) {
|
|
2160
|
+
this.d9_1 = 12;
|
|
2161
|
+
suspendResult = this.k1v_1.z1o(VOID, this);
|
|
1959
2162
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1960
2163
|
return suspendResult;
|
|
1961
2164
|
}
|
|
1962
2165
|
continue $sm;
|
|
1963
2166
|
} else {
|
|
1964
|
-
this.
|
|
1965
|
-
this.
|
|
2167
|
+
this.r1v_1 = false;
|
|
2168
|
+
this.d9_1 = 13;
|
|
1966
2169
|
continue $sm;
|
|
1967
2170
|
}
|
|
1968
2171
|
} else {
|
|
1969
|
-
this.
|
|
2172
|
+
this.d9_1 = 11;
|
|
1970
2173
|
continue $sm;
|
|
1971
2174
|
}
|
|
1972
2175
|
|
|
1973
2176
|
case 11:
|
|
1974
|
-
if (this.
|
|
1975
|
-
throwEndOfStreamException(this.
|
|
2177
|
+
if (this.o1v_1) {
|
|
2178
|
+
throwEndOfStreamException(this.p1v_1._v);
|
|
1976
2179
|
}
|
|
1977
2180
|
|
|
1978
|
-
return this.
|
|
2181
|
+
return this.p1v_1._v;
|
|
1979
2182
|
case 12:
|
|
1980
|
-
this.
|
|
1981
|
-
this.
|
|
2183
|
+
this.r1v_1 = !suspendResult;
|
|
2184
|
+
this.d9_1 = 13;
|
|
1982
2185
|
continue $sm;
|
|
1983
2186
|
case 13:
|
|
1984
|
-
if (this.
|
|
1985
|
-
throwEndOfStreamException(this.
|
|
2187
|
+
if (this.r1v_1) {
|
|
2188
|
+
throwEndOfStreamException(this.p1v_1._v);
|
|
1986
2189
|
} else {
|
|
1987
|
-
this.
|
|
2190
|
+
this.d9_1 = 14;
|
|
1988
2191
|
continue $sm;
|
|
1989
2192
|
}
|
|
1990
2193
|
|
|
1991
2194
|
break;
|
|
1992
2195
|
case 14:
|
|
1993
|
-
var tmp0_subject = this.
|
|
2196
|
+
var tmp0_subject = this.q1v_1.eq().ar(0n);
|
|
1994
2197
|
if (tmp0_subject === 10) {
|
|
1995
|
-
discard_0(this.
|
|
1996
|
-
return this.
|
|
2198
|
+
discard_0(this.q1v_1, 1n);
|
|
2199
|
+
return this.p1v_1._v;
|
|
1997
2200
|
} else {
|
|
1998
2201
|
if (tmp0_subject === 13) {
|
|
1999
|
-
this.
|
|
2000
|
-
suspendResult = internalReadLineTo$discardCrlfOrCr(this.
|
|
2202
|
+
this.d9_1 = 15;
|
|
2203
|
+
suspendResult = internalReadLineTo$discardCrlfOrCr(this.q1v_1, this.k1v_1, this.n1v_1, this);
|
|
2001
2204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2002
2205
|
return suspendResult;
|
|
2003
2206
|
}
|
|
2004
2207
|
continue $sm;
|
|
2005
2208
|
} else {
|
|
2006
|
-
this.
|
|
2209
|
+
this.d9_1 = 17;
|
|
2007
2210
|
continue $sm;
|
|
2008
2211
|
}
|
|
2009
2212
|
}
|
|
2010
2213
|
|
|
2011
2214
|
case 15:
|
|
2012
2215
|
if (suspendResult) {
|
|
2013
|
-
return this.
|
|
2216
|
+
return this.p1v_1._v;
|
|
2014
2217
|
} else {
|
|
2015
|
-
this.
|
|
2218
|
+
this.d9_1 = 16;
|
|
2016
2219
|
continue $sm;
|
|
2017
2220
|
}
|
|
2018
2221
|
|
|
2019
2222
|
case 16:
|
|
2020
|
-
this.
|
|
2223
|
+
this.d9_1 = 17;
|
|
2021
2224
|
continue $sm;
|
|
2022
2225
|
case 17:
|
|
2023
|
-
throwTooLongLineException(this.
|
|
2226
|
+
throwTooLongLineException(this.m1v_1);
|
|
2024
2227
|
break;
|
|
2025
2228
|
case 18:
|
|
2026
|
-
throw this.
|
|
2229
|
+
throw this.g9_1;
|
|
2027
2230
|
}
|
|
2028
2231
|
} catch ($p) {
|
|
2029
2232
|
var e = $p;
|
|
2030
|
-
if (this.
|
|
2233
|
+
if (this.e9_1 === 18) {
|
|
2031
2234
|
throw e;
|
|
2032
2235
|
} else {
|
|
2033
|
-
this.
|
|
2034
|
-
this.
|
|
2236
|
+
this.d9_1 = this.e9_1;
|
|
2237
|
+
this.g9_1 = e;
|
|
2035
2238
|
}
|
|
2036
2239
|
}
|
|
2037
2240
|
while (true);
|
|
2038
2241
|
};
|
|
2039
2242
|
function $internalReadLineTo$discardCrlfOrCrCOROUTINE$(_this__u8e3s4, $this_internalReadLineTo, $lenientLineEnding, resultContinuation) {
|
|
2040
2243
|
CoroutineImpl.call(this, resultContinuation);
|
|
2041
|
-
this.
|
|
2042
|
-
this.
|
|
2043
|
-
this.
|
|
2244
|
+
this.b1w_1 = _this__u8e3s4;
|
|
2245
|
+
this.c1w_1 = $this_internalReadLineTo;
|
|
2246
|
+
this.d1w_1 = $lenientLineEnding;
|
|
2044
2247
|
}
|
|
2045
|
-
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).
|
|
2046
|
-
var suspendResult = this.
|
|
2248
|
+
protoOf($internalReadLineTo$discardCrlfOrCrCOROUTINE$).l9 = function () {
|
|
2249
|
+
var suspendResult = this.f9_1;
|
|
2047
2250
|
$sm: do
|
|
2048
2251
|
try {
|
|
2049
|
-
var tmp = this.
|
|
2252
|
+
var tmp = this.d9_1;
|
|
2050
2253
|
switch (tmp) {
|
|
2051
2254
|
case 0:
|
|
2052
|
-
this.
|
|
2053
|
-
if (get_remaining(this.
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2255
|
+
this.e9_1 = 5;
|
|
2256
|
+
if (get_remaining(this.b1w_1) >= 2n) {
|
|
2257
|
+
this.f1w_1 = true;
|
|
2258
|
+
this.d9_1 = 2;
|
|
2056
2259
|
continue $sm;
|
|
2057
2260
|
} else {
|
|
2058
|
-
this.
|
|
2059
|
-
suspendResult = this.
|
|
2261
|
+
this.d9_1 = 1;
|
|
2262
|
+
suspendResult = this.c1w_1.y1o(2, this);
|
|
2060
2263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2061
2264
|
return suspendResult;
|
|
2062
2265
|
}
|
|
@@ -2064,46 +2267,46 @@
|
|
|
2064
2267
|
}
|
|
2065
2268
|
|
|
2066
2269
|
case 1:
|
|
2067
|
-
this.
|
|
2068
|
-
this.
|
|
2270
|
+
this.f1w_1 = suspendResult;
|
|
2271
|
+
this.d9_1 = 2;
|
|
2069
2272
|
continue $sm;
|
|
2070
2273
|
case 2:
|
|
2071
|
-
if (this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2274
|
+
if (this.f1w_1) {
|
|
2275
|
+
this.e1w_1 = this.b1w_1.eq().ar(1n) === 10;
|
|
2276
|
+
this.d9_1 = 3;
|
|
2074
2277
|
continue $sm;
|
|
2075
2278
|
} else {
|
|
2076
|
-
this.
|
|
2077
|
-
this.
|
|
2279
|
+
this.e1w_1 = false;
|
|
2280
|
+
this.d9_1 = 3;
|
|
2078
2281
|
continue $sm;
|
|
2079
2282
|
}
|
|
2080
2283
|
|
|
2081
2284
|
case 3:
|
|
2082
|
-
if (this.
|
|
2083
|
-
discard_0(this.
|
|
2285
|
+
if (this.e1w_1) {
|
|
2286
|
+
discard_0(this.b1w_1, 2n);
|
|
2084
2287
|
return true;
|
|
2085
2288
|
} else {
|
|
2086
|
-
this.
|
|
2289
|
+
this.d9_1 = 4;
|
|
2087
2290
|
continue $sm;
|
|
2088
2291
|
}
|
|
2089
2292
|
|
|
2090
2293
|
case 4:
|
|
2091
|
-
if (this.
|
|
2092
|
-
discard_0(this.
|
|
2294
|
+
if (this.d1w_1) {
|
|
2295
|
+
discard_0(this.b1w_1, 1n);
|
|
2093
2296
|
return true;
|
|
2094
2297
|
}
|
|
2095
2298
|
|
|
2096
2299
|
return false;
|
|
2097
2300
|
case 5:
|
|
2098
|
-
throw this.
|
|
2301
|
+
throw this.g9_1;
|
|
2099
2302
|
}
|
|
2100
2303
|
} catch ($p) {
|
|
2101
2304
|
var e = $p;
|
|
2102
|
-
if (this.
|
|
2305
|
+
if (this.e9_1 === 5) {
|
|
2103
2306
|
throw e;
|
|
2104
2307
|
} else {
|
|
2105
|
-
this.
|
|
2106
|
-
this.
|
|
2308
|
+
this.d9_1 = this.e9_1;
|
|
2309
|
+
this.g9_1 = e;
|
|
2107
2310
|
}
|
|
2108
2311
|
}
|
|
2109
2312
|
while (true);
|
|
@@ -2112,50 +2315,50 @@
|
|
|
2112
2315
|
}
|
|
2113
2316
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2114
2317
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2115
|
-
tmp.
|
|
2116
|
-
tmp.
|
|
2117
|
-
return tmp.
|
|
2318
|
+
tmp.f9_1 = Unit_instance;
|
|
2319
|
+
tmp.g9_1 = null;
|
|
2320
|
+
return tmp.l9();
|
|
2118
2321
|
}
|
|
2119
2322
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2120
2323
|
CoroutineImpl.call(this, resultContinuation);
|
|
2121
|
-
this.
|
|
2324
|
+
this.o1w_1 = _this__u8e3s4;
|
|
2122
2325
|
}
|
|
2123
|
-
protoOf($flushIfNeededCOROUTINE$).
|
|
2124
|
-
var suspendResult = this.
|
|
2326
|
+
protoOf($flushIfNeededCOROUTINE$).l9 = function () {
|
|
2327
|
+
var suspendResult = this.f9_1;
|
|
2125
2328
|
$sm: do
|
|
2126
2329
|
try {
|
|
2127
|
-
var tmp = this.
|
|
2330
|
+
var tmp = this.d9_1;
|
|
2128
2331
|
switch (tmp) {
|
|
2129
2332
|
case 0:
|
|
2130
|
-
this.
|
|
2131
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2132
|
-
if (this.
|
|
2133
|
-
this.
|
|
2134
|
-
suspendResult = this.
|
|
2333
|
+
this.e9_1 = 3;
|
|
2334
|
+
rethrowCloseCauseIfNeeded_1(this.o1w_1);
|
|
2335
|
+
if (this.o1w_1.s1o() || get_size(this.o1w_1.u1o()) >= 1048576) {
|
|
2336
|
+
this.d9_1 = 1;
|
|
2337
|
+
suspendResult = this.o1w_1.r1o(this);
|
|
2135
2338
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2136
2339
|
return suspendResult;
|
|
2137
2340
|
}
|
|
2138
2341
|
continue $sm;
|
|
2139
2342
|
} else {
|
|
2140
|
-
this.
|
|
2343
|
+
this.d9_1 = 2;
|
|
2141
2344
|
continue $sm;
|
|
2142
2345
|
}
|
|
2143
2346
|
|
|
2144
2347
|
case 1:
|
|
2145
|
-
this.
|
|
2348
|
+
this.d9_1 = 2;
|
|
2146
2349
|
continue $sm;
|
|
2147
2350
|
case 2:
|
|
2148
2351
|
return Unit_instance;
|
|
2149
2352
|
case 3:
|
|
2150
|
-
throw this.
|
|
2353
|
+
throw this.g9_1;
|
|
2151
2354
|
}
|
|
2152
2355
|
} catch ($p) {
|
|
2153
2356
|
var e = $p;
|
|
2154
|
-
if (this.
|
|
2357
|
+
if (this.e9_1 === 3) {
|
|
2155
2358
|
throw e;
|
|
2156
2359
|
} else {
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2360
|
+
this.d9_1 = this.e9_1;
|
|
2361
|
+
this.g9_1 = e;
|
|
2159
2362
|
}
|
|
2160
2363
|
}
|
|
2161
2364
|
while (true);
|
|
@@ -2168,15 +2371,15 @@
|
|
|
2168
2371
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2169
2372
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2170
2373
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2171
|
-
_this__u8e3s4.
|
|
2374
|
+
_this__u8e3s4.u1o().or(value, startIndex, endIndex);
|
|
2172
2375
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2173
2376
|
}
|
|
2174
2377
|
function WriterJob(channel, job) {
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2378
|
+
this.t1q_1 = channel;
|
|
2379
|
+
this.u1q_1 = job;
|
|
2177
2380
|
}
|
|
2178
|
-
protoOf(WriterJob).
|
|
2179
|
-
return this.
|
|
2381
|
+
protoOf(WriterJob).cx = function () {
|
|
2382
|
+
return this.u1q_1;
|
|
2180
2383
|
};
|
|
2181
2384
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2182
2385
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2185,29 +2388,29 @@
|
|
|
2185
2388
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2186
2389
|
}
|
|
2187
2390
|
function WriterScope(channel, coroutineContext) {
|
|
2188
|
-
this.
|
|
2189
|
-
this.
|
|
2391
|
+
this.p1w_1 = channel;
|
|
2392
|
+
this.q1w_1 = coroutineContext;
|
|
2190
2393
|
}
|
|
2191
|
-
protoOf(WriterScope).
|
|
2192
|
-
return this.
|
|
2394
|
+
protoOf(WriterScope).qt = function () {
|
|
2395
|
+
return this.q1w_1;
|
|
2193
2396
|
};
|
|
2194
2397
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2195
2398
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2196
|
-
return _this__u8e3s4.
|
|
2399
|
+
return _this__u8e3s4.cx().su(block);
|
|
2197
2400
|
}
|
|
2198
2401
|
function close_0(_this__u8e3s4, cause) {
|
|
2199
2402
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2200
2403
|
if (cause == null) {
|
|
2201
2404
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2202
2405
|
} else {
|
|
2203
|
-
_this__u8e3s4.
|
|
2406
|
+
_this__u8e3s4.b1p(cause);
|
|
2204
2407
|
}
|
|
2205
2408
|
}
|
|
2206
2409
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
2207
2410
|
var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
|
|
2208
|
-
tmp.
|
|
2209
|
-
tmp.
|
|
2210
|
-
return tmp.
|
|
2411
|
+
tmp.f9_1 = Unit_instance;
|
|
2412
|
+
tmp.g9_1 = null;
|
|
2413
|
+
return tmp.l9();
|
|
2211
2414
|
}
|
|
2212
2415
|
function fireAndForget(_this__u8e3s4) {
|
|
2213
2416
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
@@ -2218,120 +2421,120 @@
|
|
|
2218
2421
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2219
2422
|
// Inline function 'kotlin.apply' call
|
|
2220
2423
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2221
|
-
this_0.
|
|
2424
|
+
this_0.su(writer$lambda(channel));
|
|
2222
2425
|
var job = this_0;
|
|
2223
2426
|
return new WriterJob(channel, job);
|
|
2224
2427
|
}
|
|
2225
2428
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2226
|
-
_this__u8e3s4.
|
|
2429
|
+
_this__u8e3s4.u1o().yr(value);
|
|
2227
2430
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2228
2431
|
}
|
|
2229
2432
|
function NO_CALLBACK$1() {
|
|
2230
|
-
this.
|
|
2433
|
+
this.b1x_1 = EmptyCoroutineContext_instance;
|
|
2231
2434
|
}
|
|
2232
|
-
protoOf(NO_CALLBACK$1).
|
|
2233
|
-
return this.
|
|
2435
|
+
protoOf(NO_CALLBACK$1).j9 = function () {
|
|
2436
|
+
return this.b1x_1;
|
|
2234
2437
|
};
|
|
2235
|
-
protoOf(NO_CALLBACK$1).
|
|
2438
|
+
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
2236
2439
|
return Unit_instance;
|
|
2237
2440
|
};
|
|
2238
|
-
protoOf(NO_CALLBACK$1).
|
|
2239
|
-
return this.
|
|
2441
|
+
protoOf(NO_CALLBACK$1).o9 = function (result) {
|
|
2442
|
+
return this.k9(result);
|
|
2240
2443
|
};
|
|
2241
2444
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2242
|
-
this.
|
|
2445
|
+
this.c1x_1 = p0;
|
|
2243
2446
|
}
|
|
2244
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2245
|
-
return this.
|
|
2447
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).d1x = function ($completion) {
|
|
2448
|
+
return this.c1x_1.a1p($completion);
|
|
2246
2449
|
};
|
|
2247
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2248
|
-
return this.
|
|
2450
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).x9 = function ($completion) {
|
|
2451
|
+
return this.d1x($completion);
|
|
2249
2452
|
};
|
|
2250
2453
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2251
2454
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2252
2455
|
var l = function ($completion) {
|
|
2253
|
-
return i.
|
|
2456
|
+
return i.d1x($completion);
|
|
2254
2457
|
};
|
|
2255
2458
|
l.callableName = 'flushAndClose';
|
|
2256
2459
|
l.$arity = 0;
|
|
2257
2460
|
return l;
|
|
2258
2461
|
}
|
|
2259
2462
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2260
|
-
this.
|
|
2261
|
-
this.
|
|
2463
|
+
this.m1x_1 = $block;
|
|
2464
|
+
this.n1x_1 = $channel;
|
|
2262
2465
|
CoroutineImpl.call(this, resultContinuation);
|
|
2263
2466
|
}
|
|
2264
|
-
protoOf(writer$slambda).
|
|
2265
|
-
var tmp = this.
|
|
2266
|
-
tmp.
|
|
2267
|
-
tmp.
|
|
2268
|
-
return tmp.
|
|
2467
|
+
protoOf(writer$slambda).v1x = function ($this$launch, $completion) {
|
|
2468
|
+
var tmp = this.w1x($this$launch, $completion);
|
|
2469
|
+
tmp.f9_1 = Unit_instance;
|
|
2470
|
+
tmp.g9_1 = null;
|
|
2471
|
+
return tmp.l9();
|
|
2269
2472
|
};
|
|
2270
|
-
protoOf(writer$slambda).
|
|
2271
|
-
return this.
|
|
2473
|
+
protoOf(writer$slambda).y9 = function (p1, $completion) {
|
|
2474
|
+
return this.v1x((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2272
2475
|
};
|
|
2273
|
-
protoOf(writer$slambda).
|
|
2274
|
-
var suspendResult = this.
|
|
2476
|
+
protoOf(writer$slambda).l9 = function () {
|
|
2477
|
+
var suspendResult = this.f9_1;
|
|
2275
2478
|
$sm: do
|
|
2276
2479
|
try {
|
|
2277
|
-
var tmp = this.
|
|
2480
|
+
var tmp = this.d9_1;
|
|
2278
2481
|
switch (tmp) {
|
|
2279
2482
|
case 0:
|
|
2280
|
-
this.
|
|
2281
|
-
this.
|
|
2282
|
-
this.
|
|
2483
|
+
this.e9_1 = 14;
|
|
2484
|
+
this.r1x_1 = Job(get_job(this.o1x_1.qt()));
|
|
2485
|
+
this.d9_1 = 1;
|
|
2283
2486
|
continue $sm;
|
|
2284
2487
|
case 1:
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
suspendResult = this.
|
|
2488
|
+
this.e9_1 = 4;
|
|
2489
|
+
this.e9_1 = 3;
|
|
2490
|
+
this.d9_1 = 2;
|
|
2491
|
+
suspendResult = this.m1x_1(new WriterScope(this.n1x_1, this.o1x_1.qt().ch(this.r1x_1)), this);
|
|
2289
2492
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
2493
|
return suspendResult;
|
|
2291
2494
|
}
|
|
2292
2495
|
|
|
2293
2496
|
continue $sm;
|
|
2294
2497
|
case 2:
|
|
2295
|
-
this.
|
|
2498
|
+
this.r1x_1.a12();
|
|
2296
2499
|
var tmp_0;
|
|
2297
|
-
if (get_job(this.
|
|
2298
|
-
this.
|
|
2500
|
+
if (get_job(this.o1x_1.qt()).mu()) {
|
|
2501
|
+
this.n1x_1.b1p(get_job(this.o1x_1.qt()).pu());
|
|
2299
2502
|
tmp_0 = Unit_instance;
|
|
2300
2503
|
}
|
|
2301
2504
|
|
|
2302
|
-
this.
|
|
2303
|
-
this.
|
|
2505
|
+
this.e9_1 = 14;
|
|
2506
|
+
this.d9_1 = 9;
|
|
2304
2507
|
continue $sm;
|
|
2305
2508
|
case 3:
|
|
2306
|
-
this.
|
|
2307
|
-
var tmp_1 = this.
|
|
2509
|
+
this.e9_1 = 4;
|
|
2510
|
+
var tmp_1 = this.g9_1;
|
|
2308
2511
|
if (tmp_1 instanceof Error) {
|
|
2309
|
-
var cause = this.
|
|
2310
|
-
cancel(this.
|
|
2311
|
-
this.
|
|
2312
|
-
this.
|
|
2313
|
-
this.
|
|
2512
|
+
var cause = this.g9_1;
|
|
2513
|
+
cancel(this.r1x_1, 'Exception thrown while writing to channel', cause);
|
|
2514
|
+
this.n1x_1.b1p(cause);
|
|
2515
|
+
this.e9_1 = 14;
|
|
2516
|
+
this.d9_1 = 9;
|
|
2314
2517
|
continue $sm;
|
|
2315
2518
|
} else {
|
|
2316
|
-
throw this.
|
|
2519
|
+
throw this.g9_1;
|
|
2317
2520
|
}
|
|
2318
2521
|
|
|
2319
2522
|
case 4:
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
suspendResult = this.
|
|
2523
|
+
this.e9_1 = 14;
|
|
2524
|
+
this.s1x_1 = this.g9_1;
|
|
2525
|
+
this.d9_1 = 5;
|
|
2526
|
+
suspendResult = this.r1x_1.wu(this);
|
|
2324
2527
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2325
2528
|
return suspendResult;
|
|
2326
2529
|
}
|
|
2327
2530
|
|
|
2328
2531
|
continue $sm;
|
|
2329
2532
|
case 5:
|
|
2330
|
-
this.
|
|
2331
|
-
this.
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2334
|
-
suspendResult = this.
|
|
2533
|
+
this.o1x_1;
|
|
2534
|
+
this.e9_1 = 7;
|
|
2535
|
+
this.u1x_1 = Companion_instance;
|
|
2536
|
+
this.d9_1 = 6;
|
|
2537
|
+
suspendResult = this.n1x_1.a1p(this);
|
|
2335
2538
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2336
2539
|
return suspendResult;
|
|
2337
2540
|
}
|
|
@@ -2339,42 +2542,42 @@
|
|
|
2339
2542
|
continue $sm;
|
|
2340
2543
|
case 6:
|
|
2341
2544
|
var tmp_2 = this;
|
|
2342
|
-
this.
|
|
2343
|
-
tmp_2.
|
|
2344
|
-
this.
|
|
2345
|
-
this.
|
|
2545
|
+
this.u1x_1;
|
|
2546
|
+
tmp_2.t1x_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2547
|
+
this.e9_1 = 14;
|
|
2548
|
+
this.d9_1 = 8;
|
|
2346
2549
|
continue $sm;
|
|
2347
2550
|
case 7:
|
|
2348
|
-
this.
|
|
2349
|
-
var tmp_3 = this.
|
|
2551
|
+
this.e9_1 = 14;
|
|
2552
|
+
var tmp_3 = this.g9_1;
|
|
2350
2553
|
if (tmp_3 instanceof Error) {
|
|
2351
|
-
var e = this.
|
|
2554
|
+
var e = this.g9_1;
|
|
2352
2555
|
var tmp_4 = this;
|
|
2353
|
-
tmp_4.
|
|
2354
|
-
this.
|
|
2556
|
+
tmp_4.t1x_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2557
|
+
this.d9_1 = 8;
|
|
2355
2558
|
continue $sm;
|
|
2356
2559
|
} else {
|
|
2357
|
-
throw this.
|
|
2560
|
+
throw this.g9_1;
|
|
2358
2561
|
}
|
|
2359
2562
|
|
|
2360
2563
|
case 8:
|
|
2361
|
-
this.
|
|
2362
|
-
throw this.
|
|
2564
|
+
this.e9_1 = 14;
|
|
2565
|
+
throw this.s1x_1;
|
|
2363
2566
|
case 9:
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2366
|
-
suspendResult = this.
|
|
2567
|
+
this.e9_1 = 14;
|
|
2568
|
+
this.d9_1 = 10;
|
|
2569
|
+
suspendResult = this.r1x_1.wu(this);
|
|
2367
2570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2368
2571
|
return suspendResult;
|
|
2369
2572
|
}
|
|
2370
2573
|
|
|
2371
2574
|
continue $sm;
|
|
2372
2575
|
case 10:
|
|
2373
|
-
this.
|
|
2374
|
-
this.
|
|
2375
|
-
this.
|
|
2376
|
-
this.
|
|
2377
|
-
suspendResult = this.
|
|
2576
|
+
this.o1x_1;
|
|
2577
|
+
this.e9_1 = 12;
|
|
2578
|
+
this.q1x_1 = Companion_instance;
|
|
2579
|
+
this.d9_1 = 11;
|
|
2580
|
+
suspendResult = this.n1x_1.a1p(this);
|
|
2378
2581
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2379
2582
|
return suspendResult;
|
|
2380
2583
|
}
|
|
@@ -2382,50 +2585,50 @@
|
|
|
2382
2585
|
continue $sm;
|
|
2383
2586
|
case 11:
|
|
2384
2587
|
var tmp_5 = this;
|
|
2385
|
-
this.
|
|
2386
|
-
tmp_5.
|
|
2387
|
-
this.
|
|
2388
|
-
this.
|
|
2588
|
+
this.q1x_1;
|
|
2589
|
+
tmp_5.p1x_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2590
|
+
this.e9_1 = 14;
|
|
2591
|
+
this.d9_1 = 13;
|
|
2389
2592
|
continue $sm;
|
|
2390
2593
|
case 12:
|
|
2391
|
-
this.
|
|
2392
|
-
var tmp_6 = this.
|
|
2594
|
+
this.e9_1 = 14;
|
|
2595
|
+
var tmp_6 = this.g9_1;
|
|
2393
2596
|
if (tmp_6 instanceof Error) {
|
|
2394
|
-
var e_0 = this.
|
|
2597
|
+
var e_0 = this.g9_1;
|
|
2395
2598
|
var tmp_7 = this;
|
|
2396
|
-
tmp_7.
|
|
2397
|
-
this.
|
|
2599
|
+
tmp_7.p1x_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2600
|
+
this.d9_1 = 13;
|
|
2398
2601
|
continue $sm;
|
|
2399
2602
|
} else {
|
|
2400
|
-
throw this.
|
|
2603
|
+
throw this.g9_1;
|
|
2401
2604
|
}
|
|
2402
2605
|
|
|
2403
2606
|
case 13:
|
|
2404
|
-
this.
|
|
2607
|
+
this.e9_1 = 14;
|
|
2405
2608
|
return Unit_instance;
|
|
2406
2609
|
case 14:
|
|
2407
|
-
throw this.
|
|
2610
|
+
throw this.g9_1;
|
|
2408
2611
|
}
|
|
2409
2612
|
} catch ($p) {
|
|
2410
2613
|
var e_1 = $p;
|
|
2411
|
-
if (this.
|
|
2614
|
+
if (this.e9_1 === 14) {
|
|
2412
2615
|
throw e_1;
|
|
2413
2616
|
} else {
|
|
2414
|
-
this.
|
|
2415
|
-
this.
|
|
2617
|
+
this.d9_1 = this.e9_1;
|
|
2618
|
+
this.g9_1 = e_1;
|
|
2416
2619
|
}
|
|
2417
2620
|
}
|
|
2418
2621
|
while (true);
|
|
2419
2622
|
};
|
|
2420
|
-
protoOf(writer$slambda).
|
|
2421
|
-
var i = new writer$slambda(this.
|
|
2422
|
-
i.
|
|
2623
|
+
protoOf(writer$slambda).w1x = function ($this$launch, completion) {
|
|
2624
|
+
var i = new writer$slambda(this.m1x_1, this.n1x_1, completion);
|
|
2625
|
+
i.o1x_1 = $this$launch;
|
|
2423
2626
|
return i;
|
|
2424
2627
|
};
|
|
2425
2628
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2426
2629
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2427
2630
|
var l = function ($this$launch, $completion) {
|
|
2428
|
-
return i.
|
|
2631
|
+
return i.v1x($this$launch, $completion);
|
|
2429
2632
|
};
|
|
2430
2633
|
l.$arity = 1;
|
|
2431
2634
|
return l;
|
|
@@ -2433,8 +2636,8 @@
|
|
|
2433
2636
|
function writer$lambda($channel) {
|
|
2434
2637
|
return function (it) {
|
|
2435
2638
|
var tmp;
|
|
2436
|
-
if (!(it == null) && !$channel.
|
|
2437
|
-
$channel.
|
|
2639
|
+
if (!(it == null) && !$channel.v1o()) {
|
|
2640
|
+
$channel.b1p(it);
|
|
2438
2641
|
tmp = Unit_instance;
|
|
2439
2642
|
}
|
|
2440
2643
|
return Unit_instance;
|
|
@@ -2442,48 +2645,48 @@
|
|
|
2442
2645
|
}
|
|
2443
2646
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2444
2647
|
CoroutineImpl.call(this, resultContinuation);
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2648
|
+
this.z1w_1 = _this__u8e3s4;
|
|
2649
|
+
this.a1x_1 = source;
|
|
2447
2650
|
}
|
|
2448
|
-
protoOf($writePacketCOROUTINE$).
|
|
2449
|
-
var suspendResult = this.
|
|
2651
|
+
protoOf($writePacketCOROUTINE$).l9 = function () {
|
|
2652
|
+
var suspendResult = this.f9_1;
|
|
2450
2653
|
$sm: do
|
|
2451
2654
|
try {
|
|
2452
|
-
var tmp = this.
|
|
2655
|
+
var tmp = this.d9_1;
|
|
2453
2656
|
switch (tmp) {
|
|
2454
2657
|
case 0:
|
|
2455
|
-
this.
|
|
2456
|
-
this.
|
|
2658
|
+
this.e9_1 = 4;
|
|
2659
|
+
this.d9_1 = 1;
|
|
2457
2660
|
continue $sm;
|
|
2458
2661
|
case 1:
|
|
2459
|
-
if (!!this.
|
|
2460
|
-
this.
|
|
2662
|
+
if (!!this.a1x_1.fq()) {
|
|
2663
|
+
this.d9_1 = 3;
|
|
2461
2664
|
continue $sm;
|
|
2462
2665
|
}
|
|
2463
2666
|
|
|
2464
|
-
this.
|
|
2465
|
-
this.
|
|
2466
|
-
suspendResult = flushIfNeeded(this.
|
|
2667
|
+
this.z1w_1.u1o().sr(this.a1x_1, get_remaining(this.a1x_1));
|
|
2668
|
+
this.d9_1 = 2;
|
|
2669
|
+
suspendResult = flushIfNeeded(this.z1w_1, this);
|
|
2467
2670
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2468
2671
|
return suspendResult;
|
|
2469
2672
|
}
|
|
2470
2673
|
|
|
2471
2674
|
continue $sm;
|
|
2472
2675
|
case 2:
|
|
2473
|
-
this.
|
|
2676
|
+
this.d9_1 = 1;
|
|
2474
2677
|
continue $sm;
|
|
2475
2678
|
case 3:
|
|
2476
2679
|
return Unit_instance;
|
|
2477
2680
|
case 4:
|
|
2478
|
-
throw this.
|
|
2681
|
+
throw this.g9_1;
|
|
2479
2682
|
}
|
|
2480
2683
|
} catch ($p) {
|
|
2481
2684
|
var e = $p;
|
|
2482
|
-
if (this.
|
|
2685
|
+
if (this.e9_1 === 4) {
|
|
2483
2686
|
throw e;
|
|
2484
2687
|
} else {
|
|
2485
|
-
this.
|
|
2486
|
-
this.
|
|
2688
|
+
this.d9_1 = this.e9_1;
|
|
2689
|
+
this.g9_1 = e;
|
|
2487
2690
|
}
|
|
2488
2691
|
}
|
|
2489
2692
|
while (true);
|
|
@@ -2500,55 +2703,18 @@
|
|
|
2500
2703
|
return CLOSED;
|
|
2501
2704
|
}
|
|
2502
2705
|
var CLOSED;
|
|
2503
|
-
function
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2706
|
+
function Companion_1() {
|
|
2707
|
+
}
|
|
2708
|
+
var Companion_instance_2;
|
|
2709
|
+
function Companion_getInstance_1() {
|
|
2710
|
+
return Companion_instance_2;
|
|
2711
|
+
}
|
|
2712
|
+
function access$_get_origin__hdh1qz($this) {
|
|
2713
|
+
return $this.x1x_1;
|
|
2509
2714
|
}
|
|
2510
2715
|
function CloseToken(origin) {
|
|
2511
|
-
this.
|
|
2716
|
+
this.x1x_1 = origin;
|
|
2512
2717
|
}
|
|
2513
|
-
protoOf(CloseToken).v1w = function (wrap) {
|
|
2514
|
-
var tmp0_subject = this.q1n_1;
|
|
2515
|
-
var tmp;
|
|
2516
|
-
if (tmp0_subject == null) {
|
|
2517
|
-
tmp = null;
|
|
2518
|
-
} else {
|
|
2519
|
-
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2520
|
-
tmp = this.q1n_1.h11();
|
|
2521
|
-
} else {
|
|
2522
|
-
if (tmp0_subject instanceof CancellationException) {
|
|
2523
|
-
tmp = CancellationException_init_$Create$(this.q1n_1.message, this.q1n_1);
|
|
2524
|
-
} else {
|
|
2525
|
-
tmp = wrap(this.q1n_1);
|
|
2526
|
-
}
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
|
-
return tmp;
|
|
2530
|
-
};
|
|
2531
|
-
protoOf(CloseToken).v1n = function (wrap, $super) {
|
|
2532
|
-
var tmp;
|
|
2533
|
-
if (wrap === VOID) {
|
|
2534
|
-
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
2535
|
-
} else {
|
|
2536
|
-
tmp = wrap;
|
|
2537
|
-
}
|
|
2538
|
-
wrap = tmp;
|
|
2539
|
-
return $super === VOID ? this.v1w(wrap) : $super.v1w.call(this, wrap);
|
|
2540
|
-
};
|
|
2541
|
-
protoOf(CloseToken).r1n = function (wrap) {
|
|
2542
|
-
var tmp0_safe_receiver = this.v1w(wrap);
|
|
2543
|
-
var tmp;
|
|
2544
|
-
if (tmp0_safe_receiver == null) {
|
|
2545
|
-
tmp = null;
|
|
2546
|
-
} else {
|
|
2547
|
-
// Inline function 'kotlin.let' call
|
|
2548
|
-
throw tmp0_safe_receiver;
|
|
2549
|
-
}
|
|
2550
|
-
return tmp;
|
|
2551
|
-
};
|
|
2552
2718
|
var properties_initialized_CloseToken_kt_lgg8zn;
|
|
2553
2719
|
function _init_properties_CloseToken_kt__9ucr41() {
|
|
2554
2720
|
if (!properties_initialized_CloseToken_kt_lgg8zn) {
|
|
@@ -2558,32 +2724,32 @@
|
|
|
2558
2724
|
}
|
|
2559
2725
|
function transferFromDelegate($this) {
|
|
2560
2726
|
updateConsumed($this);
|
|
2561
|
-
var appended = $this.
|
|
2562
|
-
$this.
|
|
2727
|
+
var appended = $this.z1x_1.xr($this.y1x_1.t1o());
|
|
2728
|
+
$this.a1y_1 = add($this.a1y_1, appended);
|
|
2563
2729
|
}
|
|
2564
2730
|
function updateConsumed($this) {
|
|
2565
|
-
$this.
|
|
2566
|
-
$this.
|
|
2731
|
+
$this.b1y_1 = add($this.b1y_1, subtract($this.a1y_1, $this.z1x_1.l1()));
|
|
2732
|
+
$this.a1y_1 = $this.z1x_1.l1();
|
|
2567
2733
|
}
|
|
2568
2734
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2569
2735
|
CoroutineImpl.call(this, resultContinuation);
|
|
2570
|
-
this.
|
|
2571
|
-
this.
|
|
2736
|
+
this.k1y_1 = _this__u8e3s4;
|
|
2737
|
+
this.l1y_1 = min;
|
|
2572
2738
|
}
|
|
2573
|
-
protoOf($awaitContentCOROUTINE$_0).
|
|
2574
|
-
var suspendResult = this.
|
|
2739
|
+
protoOf($awaitContentCOROUTINE$_0).l9 = function () {
|
|
2740
|
+
var suspendResult = this.f9_1;
|
|
2575
2741
|
$sm: do
|
|
2576
2742
|
try {
|
|
2577
|
-
var tmp = this.
|
|
2743
|
+
var tmp = this.d9_1;
|
|
2578
2744
|
switch (tmp) {
|
|
2579
2745
|
case 0:
|
|
2580
|
-
this.
|
|
2581
|
-
if (this.
|
|
2746
|
+
this.e9_1 = 3;
|
|
2747
|
+
if (this.k1y_1.t1o().l1() >= fromInt(this.l1y_1)) {
|
|
2582
2748
|
return true;
|
|
2583
2749
|
}
|
|
2584
2750
|
|
|
2585
|
-
this.
|
|
2586
|
-
suspendResult = this.
|
|
2751
|
+
this.d9_1 = 1;
|
|
2752
|
+
suspendResult = this.k1y_1.y1x_1.y1o(this.l1y_1, this);
|
|
2587
2753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2588
2754
|
return suspendResult;
|
|
2589
2755
|
}
|
|
@@ -2591,58 +2757,58 @@
|
|
|
2591
2757
|
continue $sm;
|
|
2592
2758
|
case 1:
|
|
2593
2759
|
if (suspendResult) {
|
|
2594
|
-
transferFromDelegate(this.
|
|
2760
|
+
transferFromDelegate(this.k1y_1);
|
|
2595
2761
|
return true;
|
|
2596
2762
|
} else {
|
|
2597
|
-
this.
|
|
2763
|
+
this.d9_1 = 2;
|
|
2598
2764
|
continue $sm;
|
|
2599
2765
|
}
|
|
2600
2766
|
|
|
2601
2767
|
case 2:
|
|
2602
2768
|
return false;
|
|
2603
2769
|
case 3:
|
|
2604
|
-
throw this.
|
|
2770
|
+
throw this.g9_1;
|
|
2605
2771
|
}
|
|
2606
2772
|
} catch ($p) {
|
|
2607
2773
|
var e = $p;
|
|
2608
|
-
if (this.
|
|
2774
|
+
if (this.e9_1 === 3) {
|
|
2609
2775
|
throw e;
|
|
2610
2776
|
} else {
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2777
|
+
this.d9_1 = this.e9_1;
|
|
2778
|
+
this.g9_1 = e;
|
|
2613
2779
|
}
|
|
2614
2780
|
}
|
|
2615
2781
|
while (true);
|
|
2616
2782
|
};
|
|
2617
2783
|
function CountedByteReadChannel(delegate) {
|
|
2618
|
-
this.
|
|
2619
|
-
this.
|
|
2620
|
-
this.
|
|
2621
|
-
this.
|
|
2784
|
+
this.y1x_1 = delegate;
|
|
2785
|
+
this.z1x_1 = new Buffer();
|
|
2786
|
+
this.a1y_1 = 0n;
|
|
2787
|
+
this.b1y_1 = 0n;
|
|
2622
2788
|
}
|
|
2623
|
-
protoOf(CountedByteReadChannel).
|
|
2789
|
+
protoOf(CountedByteReadChannel).m1y = function () {
|
|
2624
2790
|
updateConsumed(this);
|
|
2625
|
-
return this.
|
|
2791
|
+
return this.b1y_1;
|
|
2626
2792
|
};
|
|
2627
|
-
protoOf(CountedByteReadChannel).
|
|
2628
|
-
return this.
|
|
2793
|
+
protoOf(CountedByteReadChannel).w1o = function () {
|
|
2794
|
+
return this.y1x_1.w1o();
|
|
2629
2795
|
};
|
|
2630
|
-
protoOf(CountedByteReadChannel).
|
|
2631
|
-
return this.
|
|
2796
|
+
protoOf(CountedByteReadChannel).x1o = function () {
|
|
2797
|
+
return this.z1x_1.fq() && this.y1x_1.x1o();
|
|
2632
2798
|
};
|
|
2633
|
-
protoOf(CountedByteReadChannel).
|
|
2799
|
+
protoOf(CountedByteReadChannel).t1o = function () {
|
|
2634
2800
|
transferFromDelegate(this);
|
|
2635
|
-
return this.
|
|
2801
|
+
return this.z1x_1;
|
|
2636
2802
|
};
|
|
2637
|
-
protoOf(CountedByteReadChannel).
|
|
2803
|
+
protoOf(CountedByteReadChannel).y1o = function (min, $completion) {
|
|
2638
2804
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2639
|
-
tmp.
|
|
2640
|
-
tmp.
|
|
2641
|
-
return tmp.
|
|
2805
|
+
tmp.f9_1 = Unit_instance;
|
|
2806
|
+
tmp.g9_1 = null;
|
|
2807
|
+
return tmp.l9();
|
|
2642
2808
|
};
|
|
2643
|
-
protoOf(CountedByteReadChannel).
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2809
|
+
protoOf(CountedByteReadChannel).b1p = function (cause) {
|
|
2810
|
+
this.y1x_1.b1p(cause);
|
|
2811
|
+
this.z1x_1.o4();
|
|
2646
2812
|
};
|
|
2647
2813
|
function counted(_this__u8e3s4) {
|
|
2648
2814
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2700,21 +2866,21 @@
|
|
|
2700
2866
|
}
|
|
2701
2867
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2702
2868
|
var tmp;
|
|
2703
|
-
if ($this ===
|
|
2869
|
+
if ($this === Companion_getInstance_2().n1y_1) {
|
|
2704
2870
|
tmp = 'CR';
|
|
2705
|
-
} else if ($this ===
|
|
2871
|
+
} else if ($this === Companion_getInstance_2().o1y_1) {
|
|
2706
2872
|
tmp = 'LF';
|
|
2707
|
-
} else if ($this ===
|
|
2873
|
+
} else if ($this === Companion_getInstance_2().p1y_1) {
|
|
2708
2874
|
tmp = 'CRLF';
|
|
2709
2875
|
} else {
|
|
2710
2876
|
// Inline function 'kotlin.collections.filter' call
|
|
2711
|
-
var tmp0 =
|
|
2877
|
+
var tmp0 = Companion_getInstance_2().r1y_1;
|
|
2712
2878
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2713
2879
|
var destination = ArrayList_init_$Create$();
|
|
2714
2880
|
var _iterator__ex2g4s = tmp0.t();
|
|
2715
2881
|
while (_iterator__ex2g4s.u()) {
|
|
2716
2882
|
var element = _iterator__ex2g4s.v();
|
|
2717
|
-
var it = element.
|
|
2883
|
+
var it = element.s1y_1;
|
|
2718
2884
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2719
2885
|
destination.j1(element);
|
|
2720
2886
|
}
|
|
@@ -2723,19 +2889,19 @@
|
|
|
2723
2889
|
}
|
|
2724
2890
|
return tmp;
|
|
2725
2891
|
}
|
|
2726
|
-
function
|
|
2727
|
-
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2892
|
+
function Companion_2() {
|
|
2893
|
+
Companion_instance_3 = this;
|
|
2894
|
+
this.n1y_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2895
|
+
this.o1y_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2896
|
+
this.p1y_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2897
|
+
this.q1y_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2898
|
+
this.r1y_1 = listOf([new LineEndingMode(this.n1y_1), new LineEndingMode(this.o1y_1), new LineEndingMode(this.p1y_1)]);
|
|
2733
2899
|
}
|
|
2734
|
-
var
|
|
2735
|
-
function
|
|
2736
|
-
if (
|
|
2737
|
-
new
|
|
2738
|
-
return
|
|
2900
|
+
var Companion_instance_3;
|
|
2901
|
+
function Companion_getInstance_2() {
|
|
2902
|
+
if (Companion_instance_3 == null)
|
|
2903
|
+
new Companion_2();
|
|
2904
|
+
return Companion_instance_3;
|
|
2739
2905
|
}
|
|
2740
2906
|
function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
2741
2907
|
return $this;
|
|
@@ -2743,67 +2909,90 @@
|
|
|
2743
2909
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2744
2910
|
if (!(other instanceof LineEndingMode))
|
|
2745
2911
|
return false;
|
|
2746
|
-
if (!($this === other.
|
|
2912
|
+
if (!($this === other.s1y_1))
|
|
2747
2913
|
return false;
|
|
2748
2914
|
return true;
|
|
2749
2915
|
}
|
|
2750
2916
|
function LineEndingMode(mode) {
|
|
2751
|
-
|
|
2752
|
-
this.
|
|
2917
|
+
Companion_getInstance_2();
|
|
2918
|
+
this.s1y_1 = mode;
|
|
2753
2919
|
}
|
|
2754
2920
|
protoOf(LineEndingMode).toString = function () {
|
|
2755
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2921
|
+
return LineEndingMode__toString_impl_j4h76r(this.s1y_1);
|
|
2756
2922
|
};
|
|
2757
2923
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2758
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2924
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.s1y_1);
|
|
2759
2925
|
};
|
|
2760
2926
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2761
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2927
|
+
return LineEndingMode__equals_impl_qyr4nk(this.s1y_1, other);
|
|
2762
2928
|
};
|
|
2763
2929
|
function SourceByteReadChannel(source) {
|
|
2764
|
-
this.
|
|
2765
|
-
this.
|
|
2930
|
+
this.t1y_1 = source;
|
|
2931
|
+
this.u1y_1 = null;
|
|
2766
2932
|
}
|
|
2767
|
-
protoOf(SourceByteReadChannel).
|
|
2768
|
-
var tmp0_safe_receiver = this.
|
|
2769
|
-
|
|
2933
|
+
protoOf(SourceByteReadChannel).w1o = function () {
|
|
2934
|
+
var tmp0_safe_receiver = this.u1y_1;
|
|
2935
|
+
var tmp;
|
|
2936
|
+
if (tmp0_safe_receiver == null) {
|
|
2937
|
+
tmp = null;
|
|
2938
|
+
} else {
|
|
2939
|
+
// Inline function 'io.ktor.utils.io.Companion.wrapCause' call
|
|
2940
|
+
var tmp0_subject = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
2941
|
+
var tmp_0;
|
|
2942
|
+
if (tmp0_subject == null) {
|
|
2943
|
+
tmp_0 = null;
|
|
2944
|
+
} else {
|
|
2945
|
+
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2946
|
+
tmp_0 = access$_get_origin__hdh1qz(tmp0_safe_receiver).j12();
|
|
2947
|
+
} else {
|
|
2948
|
+
if (tmp0_subject instanceof CancellationException) {
|
|
2949
|
+
tmp_0 = CancellationException_init_$Create$(access$_get_origin__hdh1qz(tmp0_safe_receiver).message, access$_get_origin__hdh1qz(tmp0_safe_receiver));
|
|
2950
|
+
} else {
|
|
2951
|
+
var p0 = access$_get_origin__hdh1qz(tmp0_safe_receiver);
|
|
2952
|
+
tmp_0 = new ClosedByteChannelException(p0);
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
tmp = tmp_0;
|
|
2957
|
+
}
|
|
2958
|
+
return tmp;
|
|
2770
2959
|
};
|
|
2771
|
-
protoOf(SourceByteReadChannel).
|
|
2772
|
-
return this.
|
|
2960
|
+
protoOf(SourceByteReadChannel).x1o = function () {
|
|
2961
|
+
return this.t1y_1.fq();
|
|
2773
2962
|
};
|
|
2774
|
-
protoOf(SourceByteReadChannel).
|
|
2775
|
-
var tmp0_safe_receiver = this.
|
|
2963
|
+
protoOf(SourceByteReadChannel).t1o = function () {
|
|
2964
|
+
var tmp0_safe_receiver = this.w1o();
|
|
2776
2965
|
if (tmp0_safe_receiver == null)
|
|
2777
2966
|
null;
|
|
2778
2967
|
else {
|
|
2779
2968
|
// Inline function 'kotlin.let' call
|
|
2780
2969
|
throw tmp0_safe_receiver;
|
|
2781
2970
|
}
|
|
2782
|
-
return this.
|
|
2971
|
+
return this.t1y_1.eq();
|
|
2783
2972
|
};
|
|
2784
|
-
protoOf(SourceByteReadChannel).
|
|
2785
|
-
var tmp0_safe_receiver = this.
|
|
2973
|
+
protoOf(SourceByteReadChannel).y1o = function (min, $completion) {
|
|
2974
|
+
var tmp0_safe_receiver = this.w1o();
|
|
2786
2975
|
if (tmp0_safe_receiver == null)
|
|
2787
2976
|
null;
|
|
2788
2977
|
else {
|
|
2789
2978
|
// Inline function 'kotlin.let' call
|
|
2790
2979
|
throw tmp0_safe_receiver;
|
|
2791
2980
|
}
|
|
2792
|
-
return this.
|
|
2981
|
+
return this.t1y_1.hq(fromInt(min));
|
|
2793
2982
|
};
|
|
2794
|
-
protoOf(SourceByteReadChannel).
|
|
2795
|
-
if (!(this.
|
|
2983
|
+
protoOf(SourceByteReadChannel).b1p = function (cause) {
|
|
2984
|
+
if (!(this.u1y_1 == null))
|
|
2796
2985
|
return Unit_instance;
|
|
2797
|
-
this.
|
|
2986
|
+
this.t1y_1.o4();
|
|
2798
2987
|
var tmp = this;
|
|
2799
2988
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2800
|
-
tmp.
|
|
2989
|
+
tmp.u1y_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2801
2990
|
};
|
|
2802
2991
|
function decode(_this__u8e3s4, input, max) {
|
|
2803
2992
|
max = max === VOID ? 2147483647 : max;
|
|
2804
2993
|
var tmp0 = fromInt(max);
|
|
2805
2994
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2806
|
-
var b = input.
|
|
2995
|
+
var b = input.eq().l1();
|
|
2807
2996
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2808
2997
|
// Inline function 'kotlin.text.buildString' call
|
|
2809
2998
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2840,7 +3029,7 @@
|
|
|
2840
3029
|
}
|
|
2841
3030
|
}
|
|
2842
3031
|
function canRead(_this__u8e3s4) {
|
|
2843
|
-
return !_this__u8e3s4.
|
|
3032
|
+
return !_this__u8e3s4.fq();
|
|
2844
3033
|
}
|
|
2845
3034
|
function readBytes(_this__u8e3s4, count) {
|
|
2846
3035
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -2849,35 +3038,35 @@
|
|
|
2849
3038
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2850
3039
|
offset = offset === VOID ? 0 : offset;
|
|
2851
3040
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2852
|
-
_this__u8e3s4.
|
|
3041
|
+
_this__u8e3s4.or(buffer, offset, offset + length | 0);
|
|
2853
3042
|
}
|
|
2854
3043
|
function BytePacketBuilder() {
|
|
2855
3044
|
return new Buffer();
|
|
2856
3045
|
}
|
|
2857
3046
|
function build(_this__u8e3s4) {
|
|
2858
|
-
return _this__u8e3s4.
|
|
3047
|
+
return _this__u8e3s4.eq();
|
|
2859
3048
|
}
|
|
2860
3049
|
function get_size(_this__u8e3s4) {
|
|
2861
|
-
return convertToInt(_this__u8e3s4.
|
|
3050
|
+
return convertToInt(_this__u8e3s4.eq().l1());
|
|
2862
3051
|
}
|
|
2863
3052
|
var ByteReadPacketEmpty;
|
|
2864
3053
|
function get_remaining(_this__u8e3s4) {
|
|
2865
3054
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2866
|
-
return _this__u8e3s4.
|
|
3055
|
+
return _this__u8e3s4.eq().l1();
|
|
2867
3056
|
}
|
|
2868
3057
|
function takeWhile(_this__u8e3s4, block) {
|
|
2869
3058
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2870
|
-
while (!_this__u8e3s4.
|
|
3059
|
+
while (!_this__u8e3s4.fq() && block(_this__u8e3s4.eq())) {
|
|
2871
3060
|
}
|
|
2872
3061
|
}
|
|
2873
3062
|
function discard_0(_this__u8e3s4, count) {
|
|
2874
3063
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2875
3064
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2876
|
-
_this__u8e3s4.
|
|
3065
|
+
_this__u8e3s4.hq(count);
|
|
2877
3066
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2878
3067
|
var b = get_remaining(_this__u8e3s4);
|
|
2879
3068
|
var countToDiscard = count <= b ? count : b;
|
|
2880
|
-
_this__u8e3s4.
|
|
3069
|
+
_this__u8e3s4.eq().cr(countToDiscard);
|
|
2881
3070
|
return countToDiscard;
|
|
2882
3071
|
}
|
|
2883
3072
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2890,37 +3079,37 @@
|
|
|
2890
3079
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2891
3080
|
offset = offset === VOID ? 0 : offset;
|
|
2892
3081
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2893
|
-
var result = _this__u8e3s4.
|
|
3082
|
+
var result = _this__u8e3s4.dr(buffer, offset, offset + length | 0);
|
|
2894
3083
|
return result === -1 ? 0 : result;
|
|
2895
3084
|
}
|
|
2896
3085
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2897
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3086
|
+
charset = charset === VOID ? Charsets_getInstance().v1y_1 : charset;
|
|
2898
3087
|
max = max === VOID ? 2147483647 : max;
|
|
2899
|
-
if (charset.equals(Charsets_getInstance().
|
|
3088
|
+
if (charset.equals(Charsets_getInstance().v1y_1)) {
|
|
2900
3089
|
if (max === 2147483647)
|
|
2901
3090
|
return readString_0(_this__u8e3s4);
|
|
2902
|
-
var tmp0 = _this__u8e3s4.
|
|
3091
|
+
var tmp0 = _this__u8e3s4.eq().l1();
|
|
2903
3092
|
// Inline function 'kotlin.math.min' call
|
|
2904
3093
|
var b = fromInt(max);
|
|
2905
3094
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2906
3095
|
return readString(_this__u8e3s4, count);
|
|
2907
3096
|
}
|
|
2908
|
-
return decode(charset.
|
|
3097
|
+
return decode(charset.y1y(), _this__u8e3s4, max);
|
|
2909
3098
|
}
|
|
2910
3099
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2911
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2912
|
-
if (charset.equals(Charsets_getInstance().
|
|
3100
|
+
charset = charset === VOID ? Charsets_getInstance().v1y_1 : charset;
|
|
3101
|
+
if (charset.equals(Charsets_getInstance().v1y_1))
|
|
2913
3102
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2914
|
-
return encodeToByteArray_0(charset.
|
|
3103
|
+
return encodeToByteArray_0(charset.z1y(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2915
3104
|
}
|
|
2916
3105
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2917
3106
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2918
3107
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2919
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2920
|
-
if (charset === Charsets_getInstance().
|
|
3108
|
+
charset = charset === VOID ? Charsets_getInstance().v1y_1 : charset;
|
|
3109
|
+
if (charset === Charsets_getInstance().v1y_1) {
|
|
2921
3110
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2922
3111
|
}
|
|
2923
|
-
encodeToImpl(charset.
|
|
3112
|
+
encodeToImpl(charset.z1y(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2924
3113
|
}
|
|
2925
3114
|
function get_ByteArrayPool() {
|
|
2926
3115
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2930,7 +3119,7 @@
|
|
|
2930
3119
|
function ByteArrayPool$1() {
|
|
2931
3120
|
DefaultPool.call(this, 128);
|
|
2932
3121
|
}
|
|
2933
|
-
protoOf(ByteArrayPool$1).
|
|
3122
|
+
protoOf(ByteArrayPool$1).d1z = function () {
|
|
2934
3123
|
return new Int8Array(4096);
|
|
2935
3124
|
};
|
|
2936
3125
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2944,21 +3133,21 @@
|
|
|
2944
3133
|
}
|
|
2945
3134
|
function NoPoolImpl() {
|
|
2946
3135
|
}
|
|
2947
|
-
protoOf(NoPoolImpl).
|
|
3136
|
+
protoOf(NoPoolImpl).l1z = function (instance) {
|
|
2948
3137
|
return Unit_instance;
|
|
2949
3138
|
};
|
|
2950
|
-
protoOf(NoPoolImpl).
|
|
3139
|
+
protoOf(NoPoolImpl).ow = function () {
|
|
2951
3140
|
return Unit_instance;
|
|
2952
3141
|
};
|
|
2953
|
-
function
|
|
3142
|
+
function Companion_3() {
|
|
2954
3143
|
}
|
|
2955
|
-
protoOf(
|
|
3144
|
+
protoOf(Companion_3).m1z = function (name) {
|
|
2956
3145
|
switch (name) {
|
|
2957
3146
|
case 'UTF-8':
|
|
2958
3147
|
case 'utf-8':
|
|
2959
3148
|
case 'UTF8':
|
|
2960
3149
|
case 'utf8':
|
|
2961
|
-
return Charsets_getInstance().
|
|
3150
|
+
return Charsets_getInstance().v1y_1;
|
|
2962
3151
|
}
|
|
2963
3152
|
var tmp;
|
|
2964
3153
|
var tmp_0;
|
|
@@ -2989,11 +3178,11 @@
|
|
|
2989
3178
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2990
3179
|
}
|
|
2991
3180
|
if (tmp) {
|
|
2992
|
-
return Charsets_getInstance().
|
|
3181
|
+
return Charsets_getInstance().w1y_1;
|
|
2993
3182
|
}
|
|
2994
3183
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2995
3184
|
};
|
|
2996
|
-
protoOf(
|
|
3185
|
+
protoOf(Companion_3).n1z = function (charset) {
|
|
2997
3186
|
var tmp;
|
|
2998
3187
|
switch (charset) {
|
|
2999
3188
|
case 'UTF-8':
|
|
@@ -3043,12 +3232,12 @@
|
|
|
3043
3232
|
}
|
|
3044
3233
|
return tmp;
|
|
3045
3234
|
};
|
|
3046
|
-
var
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3235
|
+
var Companion_instance_4;
|
|
3236
|
+
function Companion_getInstance_3() {
|
|
3237
|
+
return Companion_instance_4;
|
|
3049
3238
|
}
|
|
3050
3239
|
function Charset(_name) {
|
|
3051
|
-
this.
|
|
3240
|
+
this.x1y_1 = _name;
|
|
3052
3241
|
}
|
|
3053
3242
|
protoOf(Charset).equals = function (other) {
|
|
3054
3243
|
if (this === other)
|
|
@@ -3057,18 +3246,18 @@
|
|
|
3057
3246
|
return false;
|
|
3058
3247
|
if (!(other instanceof Charset))
|
|
3059
3248
|
THROW_CCE();
|
|
3060
|
-
return this.
|
|
3249
|
+
return this.x1y_1 === other.x1y_1;
|
|
3061
3250
|
};
|
|
3062
3251
|
protoOf(Charset).hashCode = function () {
|
|
3063
|
-
return getStringHashCode(this.
|
|
3252
|
+
return getStringHashCode(this.x1y_1);
|
|
3064
3253
|
};
|
|
3065
3254
|
protoOf(Charset).toString = function () {
|
|
3066
|
-
return this.
|
|
3255
|
+
return this.x1y_1;
|
|
3067
3256
|
};
|
|
3068
3257
|
function Charsets() {
|
|
3069
3258
|
Charsets_instance = this;
|
|
3070
|
-
this.
|
|
3071
|
-
this.
|
|
3259
|
+
this.v1y_1 = new CharsetImpl('UTF-8');
|
|
3260
|
+
this.w1y_1 = new CharsetImpl('ISO-8859-1');
|
|
3072
3261
|
}
|
|
3073
3262
|
var Charsets_instance;
|
|
3074
3263
|
function Charsets_getInstance() {
|
|
@@ -3077,27 +3266,27 @@
|
|
|
3077
3266
|
return Charsets_instance;
|
|
3078
3267
|
}
|
|
3079
3268
|
function CharsetDecoder(_charset) {
|
|
3080
|
-
this.
|
|
3269
|
+
this.o1z_1 = _charset;
|
|
3081
3270
|
}
|
|
3082
3271
|
function MalformedInputException(message) {
|
|
3083
3272
|
IOException_init_$Init$_0(message, this);
|
|
3084
3273
|
captureStack(this, MalformedInputException);
|
|
3085
3274
|
}
|
|
3086
3275
|
function get_name(_this__u8e3s4) {
|
|
3087
|
-
return _this__u8e3s4.
|
|
3276
|
+
return _this__u8e3s4.x1y_1;
|
|
3088
3277
|
}
|
|
3089
3278
|
function isSupported(_this__u8e3s4, name) {
|
|
3090
|
-
return
|
|
3279
|
+
return Companion_instance_4.n1z(name);
|
|
3091
3280
|
}
|
|
3092
3281
|
function forName(_this__u8e3s4, name) {
|
|
3093
|
-
return
|
|
3282
|
+
return Companion_instance_4.m1z(name);
|
|
3094
3283
|
}
|
|
3095
3284
|
function CharsetEncoder(_charset) {
|
|
3096
|
-
this.
|
|
3285
|
+
this.p1z_1 = _charset;
|
|
3097
3286
|
}
|
|
3098
3287
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3099
3288
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3100
|
-
var tmp0 = input.
|
|
3289
|
+
var tmp0 = input.eq().l1();
|
|
3101
3290
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3102
3291
|
var b = fromInt(max);
|
|
3103
3292
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3107,7 +3296,7 @@
|
|
|
3107
3296
|
// Inline function 'org.khronos.webgl.toInt8Array' call
|
|
3108
3297
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3109
3298
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3110
|
-
tmp = decoder.
|
|
3299
|
+
tmp = decoder.q1z(array);
|
|
3111
3300
|
} catch ($p) {
|
|
3112
3301
|
var tmp_0;
|
|
3113
3302
|
if ($p instanceof Error) {
|
|
@@ -3129,11 +3318,11 @@
|
|
|
3129
3318
|
var message = 'Failed requirement.';
|
|
3130
3319
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3131
3320
|
}
|
|
3132
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3321
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().w1y_1)) {
|
|
3133
3322
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3134
3323
|
}
|
|
3135
3324
|
// Inline function 'kotlin.require' call
|
|
3136
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3325
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().v1y_1)) {
|
|
3137
3326
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3138
3327
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3139
3328
|
}
|
|
@@ -3143,7 +3332,7 @@
|
|
|
3143
3332
|
var result = encoder.encode(tmp$ret$5);
|
|
3144
3333
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3145
3334
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3146
|
-
dst.
|
|
3335
|
+
dst.rr(result);
|
|
3147
3336
|
return result.length;
|
|
3148
3337
|
}
|
|
3149
3338
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3154,17 +3343,17 @@
|
|
|
3154
3343
|
function CharsetImpl(name) {
|
|
3155
3344
|
Charset.call(this, name);
|
|
3156
3345
|
}
|
|
3157
|
-
protoOf(CharsetImpl).
|
|
3346
|
+
protoOf(CharsetImpl).z1y = function () {
|
|
3158
3347
|
return new CharsetEncoderImpl(this);
|
|
3159
3348
|
};
|
|
3160
|
-
protoOf(CharsetImpl).
|
|
3349
|
+
protoOf(CharsetImpl).y1y = function () {
|
|
3161
3350
|
return new CharsetDecoderImpl(this);
|
|
3162
3351
|
};
|
|
3163
3352
|
function get_charset(_this__u8e3s4) {
|
|
3164
|
-
return _this__u8e3s4.
|
|
3353
|
+
return _this__u8e3s4.o1z_1;
|
|
3165
3354
|
}
|
|
3166
3355
|
function get_charset_0(_this__u8e3s4) {
|
|
3167
|
-
return _this__u8e3s4.
|
|
3356
|
+
return _this__u8e3s4.p1z_1;
|
|
3168
3357
|
}
|
|
3169
3358
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3170
3359
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3183,39 +3372,39 @@
|
|
|
3183
3372
|
}
|
|
3184
3373
|
function CharsetEncoderImpl(charset) {
|
|
3185
3374
|
CharsetEncoder.call(this, charset);
|
|
3186
|
-
this.
|
|
3375
|
+
this.t1z_1 = charset;
|
|
3187
3376
|
}
|
|
3188
3377
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3189
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3378
|
+
return 'CharsetEncoderImpl(charset=' + this.t1z_1.toString() + ')';
|
|
3190
3379
|
};
|
|
3191
3380
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3192
|
-
return this.
|
|
3381
|
+
return this.t1z_1.hashCode();
|
|
3193
3382
|
};
|
|
3194
3383
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3195
3384
|
if (this === other)
|
|
3196
3385
|
return true;
|
|
3197
3386
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3198
3387
|
return false;
|
|
3199
|
-
if (!this.
|
|
3388
|
+
if (!this.t1z_1.equals(other.t1z_1))
|
|
3200
3389
|
return false;
|
|
3201
3390
|
return true;
|
|
3202
3391
|
};
|
|
3203
3392
|
function CharsetDecoderImpl(charset) {
|
|
3204
3393
|
CharsetDecoder.call(this, charset);
|
|
3205
|
-
this.
|
|
3394
|
+
this.v1z_1 = charset;
|
|
3206
3395
|
}
|
|
3207
3396
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3208
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3397
|
+
return 'CharsetDecoderImpl(charset=' + this.v1z_1.toString() + ')';
|
|
3209
3398
|
};
|
|
3210
3399
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3211
|
-
return this.
|
|
3400
|
+
return this.v1z_1.hashCode();
|
|
3212
3401
|
};
|
|
3213
3402
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3214
3403
|
if (this === other)
|
|
3215
3404
|
return true;
|
|
3216
3405
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3217
3406
|
return false;
|
|
3218
|
-
if (!this.
|
|
3407
|
+
if (!this.v1z_1.equals(other.v1z_1))
|
|
3219
3408
|
return false;
|
|
3220
3409
|
return true;
|
|
3221
3410
|
};
|
|
@@ -3249,10 +3438,10 @@
|
|
|
3249
3438
|
return this_0;
|
|
3250
3439
|
}
|
|
3251
3440
|
function toKtor$1($this_toKtor) {
|
|
3252
|
-
this.
|
|
3441
|
+
this.w1z_1 = $this_toKtor;
|
|
3253
3442
|
}
|
|
3254
|
-
protoOf(toKtor$1).
|
|
3255
|
-
return this.
|
|
3443
|
+
protoOf(toKtor$1).q1z = function (buffer) {
|
|
3444
|
+
return this.w1z_1.decode(buffer);
|
|
3256
3445
|
};
|
|
3257
3446
|
function get_ENCODING_ALIASES() {
|
|
3258
3447
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3265,7 +3454,7 @@
|
|
|
3265
3454
|
}
|
|
3266
3455
|
var REPLACEMENT;
|
|
3267
3456
|
function TextDecoderFallback(encoding, fatal) {
|
|
3268
|
-
this.
|
|
3457
|
+
this.x1z_1 = fatal;
|
|
3269
3458
|
// Inline function 'kotlin.text.trim' call
|
|
3270
3459
|
// Inline function 'kotlin.text.lowercase' call
|
|
3271
3460
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3276,7 +3465,7 @@
|
|
|
3276
3465
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3277
3466
|
}
|
|
3278
3467
|
}
|
|
3279
|
-
protoOf(TextDecoderFallback).
|
|
3468
|
+
protoOf(TextDecoderFallback).q1z = function (buffer) {
|
|
3280
3469
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3281
3470
|
var builder = new Buffer();
|
|
3282
3471
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3292,7 +3481,7 @@
|
|
|
3292
3481
|
var point = toCodePoint(byte);
|
|
3293
3482
|
if (point < 0) {
|
|
3294
3483
|
// Inline function 'kotlin.check' call
|
|
3295
|
-
if (!!this.
|
|
3484
|
+
if (!!this.x1z_1) {
|
|
3296
3485
|
var message = 'Invalid character: ' + point;
|
|
3297
3486
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3298
3487
|
}
|
|
@@ -3300,9 +3489,9 @@
|
|
|
3300
3489
|
continue $l$loop;
|
|
3301
3490
|
}
|
|
3302
3491
|
if (point > 255) {
|
|
3303
|
-
builder.
|
|
3492
|
+
builder.yr(toByte(point >> 8));
|
|
3304
3493
|
}
|
|
3305
|
-
builder.
|
|
3494
|
+
builder.yr(toByte(point & 255));
|
|
3306
3495
|
}
|
|
3307
3496
|
while (inductionVariable < last);
|
|
3308
3497
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3332,7 +3521,7 @@
|
|
|
3332
3521
|
return false;
|
|
3333
3522
|
}
|
|
3334
3523
|
function ioDispatcher() {
|
|
3335
|
-
return Dispatchers_getInstance().
|
|
3524
|
+
return Dispatchers_getInstance().g16_1;
|
|
3336
3525
|
}
|
|
3337
3526
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3338
3527
|
if (fromIndex >= toIndex)
|
|
@@ -3348,7 +3537,7 @@
|
|
|
3348
3537
|
if (character > 255) {
|
|
3349
3538
|
failedToMapError(character);
|
|
3350
3539
|
}
|
|
3351
|
-
dst.
|
|
3540
|
+
dst.yr(toByte(character));
|
|
3352
3541
|
}
|
|
3353
3542
|
while (inductionVariable < toIndex);
|
|
3354
3543
|
return toIndex - fromIndex | 0;
|
|
@@ -3370,76 +3559,77 @@
|
|
|
3370
3559
|
}
|
|
3371
3560
|
}
|
|
3372
3561
|
function DefaultPool(capacity) {
|
|
3373
|
-
this.
|
|
3562
|
+
this.e1z_1 = capacity;
|
|
3374
3563
|
var tmp = this;
|
|
3375
3564
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3376
|
-
var size = this.
|
|
3377
|
-
tmp.
|
|
3378
|
-
this.
|
|
3565
|
+
var size = this.e1z_1;
|
|
3566
|
+
tmp.f1z_1 = Array(size);
|
|
3567
|
+
this.g1z_1 = 0;
|
|
3379
3568
|
}
|
|
3380
|
-
protoOf(DefaultPool).
|
|
3569
|
+
protoOf(DefaultPool).h1z = function (instance) {
|
|
3381
3570
|
};
|
|
3382
|
-
protoOf(DefaultPool).
|
|
3571
|
+
protoOf(DefaultPool).i1z = function (instance) {
|
|
3383
3572
|
return instance;
|
|
3384
3573
|
};
|
|
3385
|
-
protoOf(DefaultPool).
|
|
3574
|
+
protoOf(DefaultPool).j1z = function (instance) {
|
|
3386
3575
|
};
|
|
3387
|
-
protoOf(DefaultPool).
|
|
3388
|
-
if (this.
|
|
3389
|
-
return this.
|
|
3390
|
-
this.
|
|
3391
|
-
var idx = this.
|
|
3392
|
-
var tmp = this.
|
|
3576
|
+
protoOf(DefaultPool).k1z = function () {
|
|
3577
|
+
if (this.g1z_1 === 0)
|
|
3578
|
+
return this.d1z();
|
|
3579
|
+
this.g1z_1 = this.g1z_1 - 1 | 0;
|
|
3580
|
+
var idx = this.g1z_1;
|
|
3581
|
+
var tmp = this.f1z_1[idx];
|
|
3393
3582
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3394
|
-
this.
|
|
3395
|
-
return this.
|
|
3583
|
+
this.f1z_1[idx] = null;
|
|
3584
|
+
return this.i1z(instance);
|
|
3396
3585
|
};
|
|
3397
|
-
protoOf(DefaultPool).
|
|
3398
|
-
this.
|
|
3399
|
-
if (this.
|
|
3400
|
-
this.
|
|
3586
|
+
protoOf(DefaultPool).l1z = function (instance) {
|
|
3587
|
+
this.j1z(instance);
|
|
3588
|
+
if (this.g1z_1 === this.e1z_1) {
|
|
3589
|
+
this.h1z(instance);
|
|
3401
3590
|
} else {
|
|
3402
|
-
var _unary__edvuaz = this.
|
|
3403
|
-
this.
|
|
3404
|
-
this.
|
|
3591
|
+
var _unary__edvuaz = this.g1z_1;
|
|
3592
|
+
this.g1z_1 = _unary__edvuaz + 1 | 0;
|
|
3593
|
+
this.f1z_1[_unary__edvuaz] = instance;
|
|
3405
3594
|
}
|
|
3406
3595
|
};
|
|
3407
|
-
protoOf(DefaultPool).
|
|
3596
|
+
protoOf(DefaultPool).ow = function () {
|
|
3408
3597
|
var inductionVariable = 0;
|
|
3409
|
-
var last = this.
|
|
3598
|
+
var last = this.g1z_1;
|
|
3410
3599
|
if (inductionVariable < last)
|
|
3411
3600
|
do {
|
|
3412
3601
|
var i = inductionVariable;
|
|
3413
3602
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3414
|
-
var tmp = this.
|
|
3603
|
+
var tmp = this.f1z_1[i];
|
|
3415
3604
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3416
|
-
this.
|
|
3417
|
-
this.
|
|
3605
|
+
this.f1z_1[i] = null;
|
|
3606
|
+
this.h1z(instance);
|
|
3418
3607
|
}
|
|
3419
3608
|
while (inductionVariable < last);
|
|
3420
|
-
this.
|
|
3609
|
+
this.g1z_1 = 0;
|
|
3421
3610
|
};
|
|
3422
3611
|
//region block: post-declaration
|
|
3423
|
-
protoOf(Read).
|
|
3424
|
-
protoOf(Read).
|
|
3425
|
-
protoOf(Write).
|
|
3426
|
-
protoOf(Write).
|
|
3427
|
-
protoOf(ByteChannel).
|
|
3428
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3429
|
-
protoOf(CountedByteReadChannel).
|
|
3430
|
-
protoOf(SourceByteReadChannel).
|
|
3431
|
-
protoOf(DefaultPool).
|
|
3432
|
-
protoOf(NoPoolImpl).
|
|
3612
|
+
protoOf(Read).t1m = resume;
|
|
3613
|
+
protoOf(Read).u1m = resume_0;
|
|
3614
|
+
protoOf(Write).t1m = resume;
|
|
3615
|
+
protoOf(Write).u1m = resume_0;
|
|
3616
|
+
protoOf(ByteChannel).z1o = awaitContent$default;
|
|
3617
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z1o = awaitContent$default;
|
|
3618
|
+
protoOf(CountedByteReadChannel).z1o = awaitContent$default;
|
|
3619
|
+
protoOf(SourceByteReadChannel).z1o = awaitContent$default;
|
|
3620
|
+
protoOf(DefaultPool).o4 = close;
|
|
3621
|
+
protoOf(NoPoolImpl).o4 = close;
|
|
3433
3622
|
//endregion
|
|
3434
3623
|
//region block: init
|
|
3435
3624
|
Empty_instance = new Empty();
|
|
3436
|
-
|
|
3625
|
+
Companion_instance_2 = new Companion_1();
|
|
3626
|
+
Companion_instance_4 = new Companion_3();
|
|
3437
3627
|
//endregion
|
|
3438
3628
|
//region block: exports
|
|
3439
3629
|
_.$_$ = _.$_$ || {};
|
|
3440
3630
|
_.$_$.a = Charsets_getInstance;
|
|
3441
3631
|
_.$_$.b = Companion_getInstance_0;
|
|
3442
|
-
_.$_$.c =
|
|
3632
|
+
_.$_$.c = Companion_getInstance_2;
|
|
3443
3633
|
_.$_$.d = copyTo;
|
|
3444
3634
|
_.$_$.e = discard;
|
|
3445
3635
|
_.$_$.f = readAvailable;
|
|
@@ -3479,13 +3669,15 @@
|
|
|
3479
3669
|
_.$_$.n1 = ByteReadChannel_1;
|
|
3480
3670
|
_.$_$.o1 = ClosedByteChannelException;
|
|
3481
3671
|
_.$_$.p1 = WriterScope;
|
|
3482
|
-
_.$_$.q1 =
|
|
3483
|
-
_.$_$.r1 =
|
|
3484
|
-
_.$_$.s1 =
|
|
3485
|
-
_.$_$.t1 =
|
|
3486
|
-
_.$_$.u1 =
|
|
3487
|
-
_.$_$.v1 =
|
|
3488
|
-
_.$_$.w1 =
|
|
3672
|
+
_.$_$.q1 = attachWriterJob;
|
|
3673
|
+
_.$_$.r1 = cancel_0;
|
|
3674
|
+
_.$_$.s1 = close_0;
|
|
3675
|
+
_.$_$.t1 = counted;
|
|
3676
|
+
_.$_$.u1 = invokeOnCompletion;
|
|
3677
|
+
_.$_$.v1 = ioDispatcher;
|
|
3678
|
+
_.$_$.w1 = readText;
|
|
3679
|
+
_.$_$.x1 = rethrowCloseCauseIfNeeded;
|
|
3680
|
+
_.$_$.y1 = writer;
|
|
3489
3681
|
//endregion
|
|
3490
3682
|
return _;
|
|
3491
3683
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));
|