@doordeck/doordeck-headless-sdk 0.189.0 → 0.193.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 +23 -23
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +10137 -10173
- package/kotlin/kotlin-kotlin-stdlib.js +364 -366
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +1941 -1941
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +47 -47
- package/kotlin/kotlinx-io-kotlinx-io-core.js +476 -476
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1902 -1902
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1454 -1454
- package/kotlin/ktor-ktor-client-auth.js +258 -258
- package/kotlin/ktor-ktor-client-content-negotiation.js +158 -158
- package/kotlin/ktor-ktor-client-core.js +1995 -1995
- package/kotlin/ktor-ktor-client-logging.js +649 -649
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +370 -370
- package/kotlin/ktor-ktor-http.js +782 -782
- package/kotlin/ktor-ktor-io.js +651 -651
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +153 -153
- package/kotlin/ktor-ktor-serialization.js +72 -72
- package/kotlin/ktor-ktor-utils.js +741 -741
- package/kotlin/ktor-ktor-websockets.js +52 -52
- package/package.json +3 -4
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +0 -329
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
4
|
+
var Companion_instance = kotlin_kotlin.$_$.u4;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.z4;
|
|
6
6
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.n2;
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var equals = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
14
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
15
|
-
var Result = kotlin_kotlin.$_$.
|
|
16
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
19
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.vb;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.za;
|
|
9
|
+
var initMetadataForObject = kotlin_kotlin.$_$.eb;
|
|
10
|
+
var toString = kotlin_kotlin.$_$.wg;
|
|
11
|
+
var hashCode = kotlin_kotlin.$_$.xa;
|
|
12
|
+
var equals = kotlin_kotlin.$_$.qa;
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ya;
|
|
14
|
+
var createFailure = kotlin_kotlin.$_$.kg;
|
|
15
|
+
var Result = kotlin_kotlin.$_$.rf;
|
|
16
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.cb;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.qe;
|
|
18
|
+
var newThrowable = kotlin_kotlin.$_$.rb;
|
|
19
|
+
var stackTraceToString = kotlin_kotlin.$_$.ug;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
23
|
-
var fromInt = kotlin_kotlin.$_$.
|
|
24
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
25
|
-
var add = kotlin_kotlin.$_$.
|
|
26
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.nb;
|
|
22
|
+
var CoroutineImpl = kotlin_kotlin.$_$.h9;
|
|
23
|
+
var fromInt = kotlin_kotlin.$_$.s9;
|
|
24
|
+
var numberToLong = kotlin_kotlin.$_$.y9;
|
|
25
|
+
var add = kotlin_kotlin.$_$.n9;
|
|
26
|
+
var intercepted = kotlin_kotlin.$_$.u8;
|
|
27
27
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sg;
|
|
29
29
|
var returnIfSuspended = kotlin_kotlin.$_$.g;
|
|
30
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
30
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.r8;
|
|
31
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ab;
|
|
32
32
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
33
33
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
34
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
35
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
34
|
+
var convertToInt = kotlin_kotlin.$_$.p9;
|
|
35
|
+
var IllegalStateException = kotlin_kotlin.$_$.of;
|
|
36
36
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.s1;
|
|
37
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
37
|
+
var captureStack = kotlin_kotlin.$_$.ha;
|
|
38
38
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
39
39
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
40
|
-
var replace = kotlin_kotlin.$_$.
|
|
40
|
+
var replace = kotlin_kotlin.$_$.rd;
|
|
41
41
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
42
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
43
|
-
var get_ONE = kotlin_kotlin.$_$.
|
|
44
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
42
|
+
var THROW_CCE = kotlin_kotlin.$_$.tf;
|
|
43
|
+
var get_ONE = kotlin_kotlin.$_$.m9;
|
|
44
|
+
var toString_1 = kotlin_kotlin.$_$.yb;
|
|
45
45
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
46
|
-
var subtract = kotlin_kotlin.$_$.
|
|
46
|
+
var subtract = kotlin_kotlin.$_$.ba;
|
|
47
47
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
48
48
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
49
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
49
|
+
var closeFinally = kotlin_kotlin.$_$.ig;
|
|
50
50
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
51
|
-
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.
|
|
51
|
+
var EmptyCoroutineContext_instance = kotlin_kotlin.$_$.e4;
|
|
52
52
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
53
53
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
|
|
54
54
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l1;
|
|
55
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
56
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
55
|
+
var Continuation = kotlin_kotlin.$_$.b9;
|
|
56
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.bb;
|
|
57
57
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
|
|
58
58
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
59
59
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
60
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
60
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.db;
|
|
61
61
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
62
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
62
|
+
var CancellationException = kotlin_kotlin.$_$.q8;
|
|
63
63
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
64
64
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
65
65
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
66
66
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
67
67
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
|
|
68
|
-
var listOf = kotlin_kotlin.$_$.
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.k7;
|
|
69
69
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
70
70
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
71
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
71
|
+
var charSequenceLength = kotlin_kotlin.$_$.ma;
|
|
72
72
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
73
73
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
74
74
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
|
|
75
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
75
|
+
var encodeToByteArray = kotlin_kotlin.$_$.bd;
|
|
76
76
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
77
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
77
|
+
var AutoCloseable = kotlin_kotlin.$_$.df;
|
|
78
78
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.f2;
|
|
79
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
79
|
+
var replace_0 = kotlin_kotlin.$_$.sd;
|
|
80
|
+
var getStringHashCode = kotlin_kotlin.$_$.wa;
|
|
81
81
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
82
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
82
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.na;
|
|
83
83
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
84
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
85
|
-
var trim = kotlin_kotlin.$_$.
|
|
86
|
-
var toByte = kotlin_kotlin.$_$.
|
|
87
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
88
|
-
var setOf = kotlin_kotlin.$_$.
|
|
84
|
+
var isCharSequence = kotlin_kotlin.$_$.jb;
|
|
85
|
+
var trim = kotlin_kotlin.$_$.ye;
|
|
86
|
+
var toByte = kotlin_kotlin.$_$.wb;
|
|
87
|
+
var decodeToString_0 = kotlin_kotlin.$_$.zc;
|
|
88
|
+
var setOf = kotlin_kotlin.$_$.w7;
|
|
89
89
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
90
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
90
|
+
var charSequenceGet = kotlin_kotlin.$_$.la;
|
|
91
91
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
92
92
|
//endregion
|
|
93
93
|
//region block: pre-declaration
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
initMetadataForObject(Empty, 'Empty');
|
|
96
96
|
initMetadataForClass(Closed, 'Closed');
|
|
97
97
|
function resume() {
|
|
98
|
-
return this.
|
|
98
|
+
return this.v1i().l9(Companion_getInstance().s1i_1);
|
|
99
99
|
}
|
|
100
100
|
function resume_0(throwable) {
|
|
101
|
-
var tmp = this.
|
|
101
|
+
var tmp = this.v1i();
|
|
102
102
|
var tmp_0;
|
|
103
103
|
if (throwable == null) {
|
|
104
104
|
tmp_0 = null;
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
tmp_0 = new Result(tmp$ret$2);
|
|
110
110
|
}
|
|
111
111
|
var tmp1_elvis_lhs = tmp_0;
|
|
112
|
-
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
112
|
+
return tmp.l9(tmp1_elvis_lhs == null ? Companion_getInstance().s1i_1 : tmp1_elvis_lhs.il_1);
|
|
113
113
|
}
|
|
114
114
|
initMetadataForInterface(Task, 'Task');
|
|
115
115
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
120
120
|
function awaitContent$default(min, $completion, $super) {
|
|
121
121
|
min = min === VOID ? 1 : min;
|
|
122
|
-
return $super === VOID ? this.
|
|
122
|
+
return $super === VOID ? this.c1l(min, $completion) : $super.c1l.call(this, min, $completion);
|
|
123
123
|
}
|
|
124
124
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
125
125
|
function get_autoFlush() {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
initMetadataForClass(MalformedInputException, 'MalformedInputException', VOID, IOException);
|
|
166
166
|
initMetadataForClass(TooLongLineException, 'TooLongLineException', VOID, MalformedInputException);
|
|
167
167
|
function close() {
|
|
168
|
-
this.
|
|
168
|
+
this.ku();
|
|
169
169
|
}
|
|
170
170
|
initMetadataForInterface(ObjectPool, 'ObjectPool', VOID, VOID, [AutoCloseable]);
|
|
171
171
|
initMetadataForClass(DefaultPool, 'DefaultPool', VOID, VOID, [ObjectPool]);
|
|
@@ -184,10 +184,10 @@
|
|
|
184
184
|
//endregion
|
|
185
185
|
function Companion() {
|
|
186
186
|
Companion_instance_0 = this;
|
|
187
|
-
this.
|
|
187
|
+
this.r1i_1 = new Closed(null);
|
|
188
188
|
var tmp = this;
|
|
189
189
|
// Inline function 'kotlin.Companion.success' call
|
|
190
|
-
tmp.
|
|
190
|
+
tmp.s1i_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
191
191
|
}
|
|
192
192
|
var Companion_instance_0;
|
|
193
193
|
function Companion_getInstance() {
|
|
@@ -215,87 +215,87 @@
|
|
|
215
215
|
return Empty_instance;
|
|
216
216
|
}
|
|
217
217
|
function Closed(cause) {
|
|
218
|
-
this.
|
|
218
|
+
this.t1i_1 = cause;
|
|
219
219
|
}
|
|
220
220
|
protoOf(Closed).toString = function () {
|
|
221
|
-
return 'Closed(cause=' + toString(this.
|
|
221
|
+
return 'Closed(cause=' + toString(this.t1i_1) + ')';
|
|
222
222
|
};
|
|
223
223
|
protoOf(Closed).hashCode = function () {
|
|
224
|
-
return this.
|
|
224
|
+
return this.t1i_1 == null ? 0 : hashCode(this.t1i_1);
|
|
225
225
|
};
|
|
226
226
|
protoOf(Closed).equals = function (other) {
|
|
227
227
|
if (this === other)
|
|
228
228
|
return true;
|
|
229
229
|
if (!(other instanceof Closed))
|
|
230
230
|
return false;
|
|
231
|
-
if (!equals(this.
|
|
231
|
+
if (!equals(this.t1i_1, other.t1i_1))
|
|
232
232
|
return false;
|
|
233
233
|
return true;
|
|
234
234
|
};
|
|
235
235
|
function Task() {
|
|
236
236
|
}
|
|
237
237
|
function Read(continuation) {
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
238
|
+
this.z1i_1 = continuation;
|
|
239
|
+
this.a1j_1 = null;
|
|
240
240
|
if (get_DEVELOPMENT_MODE()) {
|
|
241
241
|
var tmp = this;
|
|
242
242
|
// Inline function 'kotlin.also' call
|
|
243
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
243
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.z1i_1), 16));
|
|
244
244
|
stackTraceToString(this_0);
|
|
245
|
-
tmp.
|
|
245
|
+
tmp.a1j_1 = this_0;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
protoOf(Read).
|
|
249
|
-
return this.
|
|
248
|
+
protoOf(Read).v1i = function () {
|
|
249
|
+
return this.z1i_1;
|
|
250
250
|
};
|
|
251
|
-
protoOf(Read).
|
|
252
|
-
return this.
|
|
251
|
+
protoOf(Read).u1i = function () {
|
|
252
|
+
return this.a1j_1;
|
|
253
253
|
};
|
|
254
|
-
protoOf(Read).
|
|
254
|
+
protoOf(Read).w1i = function () {
|
|
255
255
|
return 'read';
|
|
256
256
|
};
|
|
257
257
|
function Write(continuation) {
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
258
|
+
this.b1j_1 = continuation;
|
|
259
|
+
this.c1j_1 = null;
|
|
260
260
|
if (get_DEVELOPMENT_MODE()) {
|
|
261
261
|
var tmp = this;
|
|
262
262
|
// Inline function 'kotlin.also' call
|
|
263
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
263
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.b1j_1), 16));
|
|
264
264
|
stackTraceToString(this_0);
|
|
265
|
-
tmp.
|
|
265
|
+
tmp.c1j_1 = this_0;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
protoOf(Write).
|
|
269
|
-
return this.
|
|
268
|
+
protoOf(Write).v1i = function () {
|
|
269
|
+
return this.b1j_1;
|
|
270
270
|
};
|
|
271
|
-
protoOf(Write).
|
|
272
|
-
return this.
|
|
271
|
+
protoOf(Write).u1i = function () {
|
|
272
|
+
return this.c1j_1;
|
|
273
273
|
};
|
|
274
|
-
protoOf(Write).
|
|
274
|
+
protoOf(Write).w1i = function () {
|
|
275
275
|
return 'write';
|
|
276
276
|
};
|
|
277
277
|
function moveFlushToReadBuffer($this) {
|
|
278
278
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
279
|
-
$this.
|
|
280
|
-
$this.
|
|
281
|
-
$this.
|
|
279
|
+
$this.g1j_1;
|
|
280
|
+
$this.e1j_1.ep($this.i1j_1);
|
|
281
|
+
$this.f1j_1 = 0;
|
|
282
282
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
283
|
-
var current = $this.
|
|
283
|
+
var current = $this.h1j_1.kotlinx$atomicfu$value;
|
|
284
284
|
var tmp;
|
|
285
285
|
if (current instanceof Write) {
|
|
286
|
-
tmp = $this.
|
|
286
|
+
tmp = $this.h1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
287
287
|
} else {
|
|
288
288
|
tmp = false;
|
|
289
289
|
}
|
|
290
290
|
if (tmp) {
|
|
291
|
-
current.
|
|
291
|
+
current.x1i();
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
function closeSlot($this, cause) {
|
|
295
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
296
|
-
var continuation = $this.
|
|
295
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().r1i_1;
|
|
296
|
+
var continuation = $this.h1j_1.atomicfu$getAndSet(closeContinuation);
|
|
297
297
|
if (isInterface(continuation, Task)) {
|
|
298
|
-
continuation.
|
|
298
|
+
continuation.y1i(cause);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -314,8 +314,8 @@
|
|
|
314
314
|
}
|
|
315
315
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
316
316
|
CoroutineImpl.call(this, resultContinuation);
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
317
|
+
this.t1j_1 = _this__u8e3s4;
|
|
318
|
+
this.u1j_1 = min;
|
|
319
319
|
}
|
|
320
320
|
protoOf($awaitContentCOROUTINE$).i9 = function () {
|
|
321
321
|
var suspendResult = this.c9_1;
|
|
@@ -325,39 +325,39 @@
|
|
|
325
325
|
switch (tmp) {
|
|
326
326
|
case 0:
|
|
327
327
|
this.b9_1 = 4;
|
|
328
|
-
rethrowCloseCauseIfNeeded(this.
|
|
329
|
-
if (this.
|
|
328
|
+
rethrowCloseCauseIfNeeded(this.t1j_1);
|
|
329
|
+
if (this.t1j_1.i1j_1.l1() >= fromInt(this.u1j_1))
|
|
330
330
|
return true;
|
|
331
|
-
this.
|
|
331
|
+
this.v1j_1 = this.t1j_1;
|
|
332
332
|
this.a9_1 = 1;
|
|
333
333
|
continue $sm;
|
|
334
334
|
case 1:
|
|
335
|
-
if (!(add(numberToLong(this.
|
|
335
|
+
if (!(add(numberToLong(this.t1j_1.f1j_1), this.t1j_1.i1j_1.l1()) < fromInt(this.u1j_1) && this.t1j_1.k1j_1.kotlinx$atomicfu$value == null)) {
|
|
336
336
|
this.a9_1 = 3;
|
|
337
337
|
continue $sm;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
this.a9_1 = 2;
|
|
341
341
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
342
|
-
cancellable.
|
|
343
|
-
var tmp0 = this.
|
|
342
|
+
cancellable.nv();
|
|
343
|
+
var tmp0 = this.v1j_1;
|
|
344
344
|
var tmp2 = new Read(cancellable);
|
|
345
345
|
l$ret$1: do {
|
|
346
|
-
var previous = tmp0.
|
|
346
|
+
var previous = tmp0.h1j_1.kotlinx$atomicfu$value;
|
|
347
347
|
if (!(previous instanceof Closed)) {
|
|
348
|
-
if (!tmp0.
|
|
349
|
-
tmp2.
|
|
348
|
+
if (!tmp0.h1j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
349
|
+
tmp2.x1i();
|
|
350
350
|
break l$ret$1;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
if (previous instanceof Read) {
|
|
354
|
-
previous.
|
|
354
|
+
previous.y1i(new ConcurrentIOException(tmp2.w1i(), previous.u1i()));
|
|
355
355
|
} else {
|
|
356
356
|
if (isInterface(previous, Task)) {
|
|
357
|
-
previous.
|
|
357
|
+
previous.x1i();
|
|
358
358
|
} else {
|
|
359
359
|
if (previous instanceof Closed) {
|
|
360
|
-
tmp2.
|
|
360
|
+
tmp2.y1i(previous.t1i_1);
|
|
361
361
|
break l$ret$1;
|
|
362
362
|
} else {
|
|
363
363
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -366,21 +366,21 @@
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
if (!(add(numberToLong(this.
|
|
370
|
-
var current = tmp0.
|
|
369
|
+
if (!(add(numberToLong(this.t1j_1.f1j_1), this.t1j_1.i1j_1.l1()) < fromInt(this.u1j_1) && this.t1j_1.k1j_1.kotlinx$atomicfu$value == null)) {
|
|
370
|
+
var current = tmp0.h1j_1.kotlinx$atomicfu$value;
|
|
371
371
|
var tmp_0;
|
|
372
372
|
if (current instanceof Read) {
|
|
373
|
-
tmp_0 = tmp0.
|
|
373
|
+
tmp_0 = tmp0.h1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
374
374
|
} else {
|
|
375
375
|
tmp_0 = false;
|
|
376
376
|
}
|
|
377
377
|
if (tmp_0) {
|
|
378
|
-
current.
|
|
378
|
+
current.x1i();
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
while (false);
|
|
383
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
383
|
+
suspendResult = returnIfSuspended(cancellable.ov(), this);
|
|
384
384
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
385
385
|
return suspendResult;
|
|
386
386
|
}
|
|
@@ -390,11 +390,11 @@
|
|
|
390
390
|
this.a9_1 = 1;
|
|
391
391
|
continue $sm;
|
|
392
392
|
case 3:
|
|
393
|
-
if (this.
|
|
394
|
-
moveFlushToReadBuffer(this.
|
|
393
|
+
if (this.t1j_1.i1j_1.l1() < 1048576n) {
|
|
394
|
+
moveFlushToReadBuffer(this.t1j_1);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
return this.
|
|
397
|
+
return this.t1j_1.i1j_1.l1() >= fromInt(this.u1j_1);
|
|
398
398
|
case 4:
|
|
399
399
|
throw this.d9_1;
|
|
400
400
|
}
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
};
|
|
412
412
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
413
413
|
CoroutineImpl.call(this, resultContinuation);
|
|
414
|
-
this.
|
|
414
|
+
this.e1k_1 = _this__u8e3s4;
|
|
415
415
|
}
|
|
416
416
|
protoOf($flushCOROUTINE$).i9 = function () {
|
|
417
417
|
var suspendResult = this.c9_1;
|
|
@@ -421,40 +421,40 @@
|
|
|
421
421
|
switch (tmp) {
|
|
422
422
|
case 0:
|
|
423
423
|
this.b9_1 = 4;
|
|
424
|
-
rethrowCloseCauseIfNeeded(this.
|
|
425
|
-
this.
|
|
426
|
-
if (this.
|
|
424
|
+
rethrowCloseCauseIfNeeded(this.e1k_1);
|
|
425
|
+
this.e1k_1.g1k();
|
|
426
|
+
if (this.e1k_1.f1j_1 < 1048576)
|
|
427
427
|
return Unit_instance;
|
|
428
|
-
this.
|
|
428
|
+
this.f1k_1 = this.e1k_1;
|
|
429
429
|
this.a9_1 = 1;
|
|
430
430
|
continue $sm;
|
|
431
431
|
case 1:
|
|
432
|
-
if (!(this.
|
|
432
|
+
if (!(this.e1k_1.f1j_1 >= 1048576 && this.e1k_1.k1j_1.kotlinx$atomicfu$value == null)) {
|
|
433
433
|
this.a9_1 = 3;
|
|
434
434
|
continue $sm;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
this.a9_1 = 2;
|
|
438
438
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
439
|
-
cancellable.
|
|
440
|
-
var tmp0 = this.
|
|
439
|
+
cancellable.nv();
|
|
440
|
+
var tmp0 = this.f1k_1;
|
|
441
441
|
var tmp2 = new Write(cancellable);
|
|
442
442
|
l$ret$1: do {
|
|
443
|
-
var previous = tmp0.
|
|
443
|
+
var previous = tmp0.h1j_1.kotlinx$atomicfu$value;
|
|
444
444
|
if (!(previous instanceof Closed)) {
|
|
445
|
-
if (!tmp0.
|
|
446
|
-
tmp2.
|
|
445
|
+
if (!tmp0.h1j_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
446
|
+
tmp2.x1i();
|
|
447
447
|
break l$ret$1;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
if (previous instanceof Write) {
|
|
451
|
-
previous.
|
|
451
|
+
previous.y1i(new ConcurrentIOException(tmp2.w1i(), previous.u1i()));
|
|
452
452
|
} else {
|
|
453
453
|
if (isInterface(previous, Task)) {
|
|
454
|
-
previous.
|
|
454
|
+
previous.x1i();
|
|
455
455
|
} else {
|
|
456
456
|
if (previous instanceof Closed) {
|
|
457
|
-
tmp2.
|
|
457
|
+
tmp2.y1i(previous.t1i_1);
|
|
458
458
|
break l$ret$1;
|
|
459
459
|
} else {
|
|
460
460
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -463,21 +463,21 @@
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
if (!(this.
|
|
467
|
-
var current = tmp0.
|
|
466
|
+
if (!(this.e1k_1.f1j_1 >= 1048576 && this.e1k_1.k1j_1.kotlinx$atomicfu$value == null)) {
|
|
467
|
+
var current = tmp0.h1j_1.kotlinx$atomicfu$value;
|
|
468
468
|
var tmp_0;
|
|
469
469
|
if (current instanceof Write) {
|
|
470
|
-
tmp_0 = tmp0.
|
|
470
|
+
tmp_0 = tmp0.h1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
471
471
|
} else {
|
|
472
472
|
tmp_0 = false;
|
|
473
473
|
}
|
|
474
474
|
if (tmp_0) {
|
|
475
|
-
current.
|
|
475
|
+
current.x1i();
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
while (false);
|
|
480
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
480
|
+
suspendResult = returnIfSuspended(cancellable.ov(), this);
|
|
481
481
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
482
482
|
return suspendResult;
|
|
483
483
|
}
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
};
|
|
505
505
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
506
506
|
CoroutineImpl.call(this, resultContinuation);
|
|
507
|
-
this.
|
|
507
|
+
this.p1k_1 = _this__u8e3s4;
|
|
508
508
|
}
|
|
509
509
|
protoOf($flushAndCloseCOROUTINE$).i9 = function () {
|
|
510
510
|
var suspendResult = this.c9_1;
|
|
@@ -514,11 +514,11 @@
|
|
|
514
514
|
switch (tmp) {
|
|
515
515
|
case 0:
|
|
516
516
|
this.b9_1 = 4;
|
|
517
|
-
var this_0 = this.
|
|
517
|
+
var this_0 = this.p1k_1;
|
|
518
518
|
this.b9_1 = 2;
|
|
519
|
-
this.
|
|
519
|
+
this.r1k_1 = Companion_instance;
|
|
520
520
|
this.a9_1 = 1;
|
|
521
|
-
suspendResult = this_0.
|
|
521
|
+
suspendResult = this_0.s1k(this);
|
|
522
522
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
523
523
|
return suspendResult;
|
|
524
524
|
}
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
continue $sm;
|
|
527
527
|
case 1:
|
|
528
528
|
var tmp_0 = this;
|
|
529
|
-
this.
|
|
530
|
-
tmp_0.
|
|
529
|
+
this.r1k_1;
|
|
530
|
+
tmp_0.q1k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
531
531
|
this.b9_1 = 4;
|
|
532
532
|
this.a9_1 = 3;
|
|
533
533
|
continue $sm;
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
if (tmp_1 instanceof Error) {
|
|
538
538
|
var e = this.d9_1;
|
|
539
539
|
var tmp_2 = this;
|
|
540
|
-
tmp_2.
|
|
540
|
+
tmp_2.q1k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
541
541
|
this.a9_1 = 3;
|
|
542
542
|
continue $sm;
|
|
543
543
|
} else {
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
|
|
547
547
|
case 3:
|
|
548
548
|
this.b9_1 = 4;
|
|
549
|
-
if (!this.
|
|
549
|
+
if (!this.p1k_1.k1j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
550
550
|
return Unit_instance;
|
|
551
|
-
closeSlot(this.
|
|
551
|
+
closeSlot(this.p1k_1, null);
|
|
552
552
|
return Unit_instance;
|
|
553
553
|
case 4:
|
|
554
554
|
throw this.d9_1;
|
|
@@ -566,104 +566,104 @@
|
|
|
566
566
|
};
|
|
567
567
|
function ByteChannel(autoFlush) {
|
|
568
568
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
}
|
|
578
|
-
protoOf(ByteChannel).
|
|
579
|
-
return this.
|
|
580
|
-
};
|
|
581
|
-
protoOf(ByteChannel).
|
|
582
|
-
var tmp0_safe_receiver = this.
|
|
569
|
+
this.d1j_1 = autoFlush;
|
|
570
|
+
this.e1j_1 = new Buffer();
|
|
571
|
+
this.f1j_1 = 0;
|
|
572
|
+
this.g1j_1 = new Object();
|
|
573
|
+
this.h1j_1 = atomic$ref$1(Empty_instance);
|
|
574
|
+
this.i1j_1 = new Buffer();
|
|
575
|
+
this.j1j_1 = new Buffer();
|
|
576
|
+
this.k1j_1 = atomic$ref$1(null);
|
|
577
|
+
}
|
|
578
|
+
protoOf(ByteChannel).t1k = function () {
|
|
579
|
+
return this.d1j_1;
|
|
580
|
+
};
|
|
581
|
+
protoOf(ByteChannel).u1k = function () {
|
|
582
|
+
var tmp0_safe_receiver = this.k1j_1.kotlinx$atomicfu$value;
|
|
583
583
|
if (tmp0_safe_receiver == null)
|
|
584
584
|
null;
|
|
585
585
|
else {
|
|
586
|
-
tmp0_safe_receiver.
|
|
586
|
+
tmp0_safe_receiver.w1k(ClosedReadChannelException$_init_$ref_ix0089());
|
|
587
587
|
}
|
|
588
|
-
if (this.
|
|
588
|
+
if (this.i1j_1.bo()) {
|
|
589
589
|
moveFlushToReadBuffer(this);
|
|
590
590
|
}
|
|
591
|
-
return this.
|
|
591
|
+
return this.i1j_1;
|
|
592
592
|
};
|
|
593
|
-
protoOf(ByteChannel).
|
|
594
|
-
if (this.
|
|
595
|
-
var tmp0_safe_receiver = this.
|
|
593
|
+
protoOf(ByteChannel).x1k = function () {
|
|
594
|
+
if (this.y1k()) {
|
|
595
|
+
var tmp0_safe_receiver = this.k1j_1.kotlinx$atomicfu$value;
|
|
596
596
|
var tmp;
|
|
597
597
|
if (tmp0_safe_receiver == null) {
|
|
598
598
|
tmp = null;
|
|
599
599
|
} else {
|
|
600
|
-
tmp = tmp0_safe_receiver.
|
|
600
|
+
tmp = tmp0_safe_receiver.w1k(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
601
601
|
}
|
|
602
602
|
if (tmp == null)
|
|
603
603
|
throw new ClosedWriteChannelException();
|
|
604
604
|
}
|
|
605
|
-
return this.
|
|
605
|
+
return this.j1j_1;
|
|
606
606
|
};
|
|
607
|
-
protoOf(ByteChannel).
|
|
608
|
-
var tmp0_safe_receiver = this.
|
|
609
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
607
|
+
protoOf(ByteChannel).z1k = function () {
|
|
608
|
+
var tmp0_safe_receiver = this.k1j_1.kotlinx$atomicfu$value;
|
|
609
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l();
|
|
610
610
|
};
|
|
611
|
-
protoOf(ByteChannel).
|
|
612
|
-
return !(this.
|
|
611
|
+
protoOf(ByteChannel).y1k = function () {
|
|
612
|
+
return !(this.k1j_1.kotlinx$atomicfu$value == null);
|
|
613
613
|
};
|
|
614
|
-
protoOf(ByteChannel).
|
|
615
|
-
return !(this.
|
|
614
|
+
protoOf(ByteChannel).b1l = function () {
|
|
615
|
+
return !(this.z1k() == null) || (this.y1k() && this.f1j_1 === 0 && this.i1j_1.bo());
|
|
616
616
|
};
|
|
617
|
-
protoOf(ByteChannel).
|
|
617
|
+
protoOf(ByteChannel).c1l = function (min, $completion) {
|
|
618
618
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
619
619
|
tmp.c9_1 = Unit_instance;
|
|
620
620
|
tmp.d9_1 = null;
|
|
621
621
|
return tmp.i9();
|
|
622
622
|
};
|
|
623
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).s1k = function ($completion) {
|
|
624
624
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
625
625
|
tmp.c9_1 = Unit_instance;
|
|
626
626
|
tmp.d9_1 = null;
|
|
627
627
|
return tmp.i9();
|
|
628
628
|
};
|
|
629
|
-
protoOf(ByteChannel).
|
|
630
|
-
if (this.
|
|
629
|
+
protoOf(ByteChannel).g1k = function () {
|
|
630
|
+
if (this.j1j_1.bo())
|
|
631
631
|
return Unit_instance;
|
|
632
632
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
633
|
-
this.
|
|
634
|
-
var count = convertToInt(this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
633
|
+
this.g1j_1;
|
|
634
|
+
var count = convertToInt(this.j1j_1.l1());
|
|
635
|
+
this.e1j_1.tp(this.j1j_1);
|
|
636
|
+
this.f1j_1 = this.f1j_1 + count | 0;
|
|
637
637
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
638
|
-
var current = this.
|
|
638
|
+
var current = this.h1j_1.kotlinx$atomicfu$value;
|
|
639
639
|
var tmp;
|
|
640
640
|
if (current instanceof Read) {
|
|
641
|
-
tmp = this.
|
|
641
|
+
tmp = this.h1j_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
642
642
|
} else {
|
|
643
643
|
tmp = false;
|
|
644
644
|
}
|
|
645
645
|
if (tmp) {
|
|
646
|
-
current.
|
|
646
|
+
current.x1i();
|
|
647
647
|
}
|
|
648
648
|
};
|
|
649
649
|
protoOf(ByteChannel).l4 = function () {
|
|
650
|
-
this.
|
|
651
|
-
if (!this.
|
|
650
|
+
this.g1k();
|
|
651
|
+
if (!this.k1j_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
652
652
|
return Unit_instance;
|
|
653
653
|
closeSlot(this, null);
|
|
654
654
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
655
|
+
protoOf(ByteChannel).e1l = function ($completion) {
|
|
656
656
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
657
657
|
tmp.c9_1 = Unit_instance;
|
|
658
658
|
tmp.d9_1 = null;
|
|
659
659
|
return tmp.i9();
|
|
660
660
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
662
|
-
if (!(this.
|
|
661
|
+
protoOf(ByteChannel).f1l = function (cause) {
|
|
662
|
+
if (!(this.k1j_1.kotlinx$atomicfu$value == null))
|
|
663
663
|
return Unit_instance;
|
|
664
664
|
var closedToken = new CloseToken(cause);
|
|
665
|
-
this.
|
|
666
|
-
var wrappedCause = closedToken.
|
|
665
|
+
this.k1j_1.atomicfu$compareAndSet(null, closedToken);
|
|
666
|
+
var wrappedCause = closedToken.a1l();
|
|
667
667
|
closeSlot(this, wrappedCause);
|
|
668
668
|
};
|
|
669
669
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
length = length === VOID ? content.length : length;
|
|
680
680
|
// Inline function 'kotlin.also' call
|
|
681
681
|
var this_0 = new Buffer();
|
|
682
|
-
this_0.
|
|
682
|
+
this_0.kp(content, offset, offset + length | 0);
|
|
683
683
|
var source = this_0;
|
|
684
684
|
return ByteReadChannel_0(source);
|
|
685
685
|
}
|
|
@@ -687,18 +687,18 @@
|
|
|
687
687
|
return new SourceByteReadChannel(source);
|
|
688
688
|
}
|
|
689
689
|
function buildPartialMatchTable($this) {
|
|
690
|
-
var table = new Int32Array($this.
|
|
690
|
+
var table = new Int32Array($this.h1l_1.l1());
|
|
691
691
|
var j = 0;
|
|
692
692
|
var inductionVariable = 1;
|
|
693
|
-
var last = $this.
|
|
693
|
+
var last = $this.h1l_1.l1();
|
|
694
694
|
if (inductionVariable < last)
|
|
695
695
|
do {
|
|
696
696
|
var i = inductionVariable;
|
|
697
697
|
inductionVariable = inductionVariable + 1 | 0;
|
|
698
|
-
while (j > 0 && !($this.
|
|
698
|
+
while (j > 0 && !($this.h1l_1.m1(i) === $this.h1l_1.m1(j))) {
|
|
699
699
|
j = table[j - 1 | 0];
|
|
700
700
|
}
|
|
701
|
-
if ($this.
|
|
701
|
+
if ($this.h1l_1.m1(i) === $this.h1l_1.m1(j)) {
|
|
702
702
|
j = j + 1 | 0;
|
|
703
703
|
}
|
|
704
704
|
table[i] = j;
|
|
@@ -719,8 +719,8 @@
|
|
|
719
719
|
return tmp.i9();
|
|
720
720
|
}
|
|
721
721
|
function checkBounds($this, extra) {
|
|
722
|
-
if (add($this.
|
|
723
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
722
|
+
if (add($this.n1l_1, extra) > $this.j1l_1) {
|
|
723
|
+
throw IOException_init_$Create$('Limit of ' + $this.j1l_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.h1l_1) + '"'));
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -728,8 +728,8 @@
|
|
|
728
728
|
}
|
|
729
729
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
730
730
|
CoroutineImpl.call(this, resultContinuation);
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
731
|
+
this.s1m_1 = _this__u8e3s4;
|
|
732
|
+
this.t1m_1 = ignoreMissing;
|
|
733
733
|
}
|
|
734
734
|
protoOf($findNextCOROUTINE$).i9 = function () {
|
|
735
735
|
var suspendResult = this.c9_1;
|
|
@@ -739,17 +739,17 @@
|
|
|
739
739
|
switch (tmp) {
|
|
740
740
|
case 0:
|
|
741
741
|
this.b9_1 = 9;
|
|
742
|
-
this.
|
|
742
|
+
this.s1m_1.n1l_1 = 0n;
|
|
743
743
|
this.a9_1 = 1;
|
|
744
744
|
continue $sm;
|
|
745
745
|
case 1:
|
|
746
|
-
if (!this.
|
|
747
|
-
this.
|
|
746
|
+
if (!this.s1m_1.k1l_1.bo()) {
|
|
747
|
+
this.u1m_1 = true;
|
|
748
748
|
this.a9_1 = 3;
|
|
749
749
|
continue $sm;
|
|
750
750
|
} else {
|
|
751
751
|
this.a9_1 = 2;
|
|
752
|
-
suspendResult = this.
|
|
752
|
+
suspendResult = this.s1m_1.g1l_1.d1l(VOID, this);
|
|
753
753
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
754
754
|
return suspendResult;
|
|
755
755
|
}
|
|
@@ -757,17 +757,17 @@
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
case 2:
|
|
760
|
-
this.
|
|
760
|
+
this.u1m_1 = suspendResult;
|
|
761
761
|
this.a9_1 = 3;
|
|
762
762
|
continue $sm;
|
|
763
763
|
case 3:
|
|
764
|
-
if (!this.
|
|
764
|
+
if (!this.u1m_1) {
|
|
765
765
|
this.a9_1 = 7;
|
|
766
766
|
continue $sm;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
this.a9_1 = 4;
|
|
770
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
770
|
+
suspendResult = advanceToNextPotentialMatch(this.s1m_1, this);
|
|
771
771
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
772
772
|
return suspendResult;
|
|
773
773
|
}
|
|
@@ -775,7 +775,7 @@
|
|
|
775
775
|
continue $sm;
|
|
776
776
|
case 4:
|
|
777
777
|
this.a9_1 = 5;
|
|
778
|
-
suspendResult = checkFullMatch(this.
|
|
778
|
+
suspendResult = checkFullMatch(this.s1m_1, this);
|
|
779
779
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
780
780
|
return suspendResult;
|
|
781
781
|
}
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
continue $sm;
|
|
784
784
|
case 5:
|
|
785
785
|
if (suspendResult) {
|
|
786
|
-
return this.
|
|
786
|
+
return this.s1m_1.n1l_1;
|
|
787
787
|
} else {
|
|
788
788
|
this.a9_1 = 6;
|
|
789
789
|
continue $sm;
|
|
@@ -793,20 +793,20 @@
|
|
|
793
793
|
this.a9_1 = 1;
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 7:
|
|
796
|
-
if (!this.
|
|
797
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
796
|
+
if (!this.t1m_1) {
|
|
797
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.s1m_1, this.s1m_1.h1l_1) + '" but encountered end of input');
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
-
this.
|
|
800
|
+
this.s1m_1.n1l_1 = add(this.s1m_1.n1l_1, this.s1m_1.m1l_1.ep(this.s1m_1.i1l_1.x1k()));
|
|
801
801
|
this.a9_1 = 8;
|
|
802
|
-
suspendResult = this.
|
|
802
|
+
suspendResult = this.s1m_1.i1l_1.s1k(this);
|
|
803
803
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
804
804
|
return suspendResult;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
continue $sm;
|
|
808
808
|
case 8:
|
|
809
|
-
return this.
|
|
809
|
+
return this.s1m_1.n1l_1;
|
|
810
810
|
case 9:
|
|
811
811
|
throw this.d9_1;
|
|
812
812
|
}
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
};
|
|
824
824
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
825
825
|
CoroutineImpl.call(this, resultContinuation);
|
|
826
|
-
this.
|
|
826
|
+
this.x1l_1 = _this__u8e3s4;
|
|
827
827
|
}
|
|
828
828
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).i9 = function () {
|
|
829
829
|
var suspendResult = this.c9_1;
|
|
@@ -836,13 +836,13 @@
|
|
|
836
836
|
this.a9_1 = 1;
|
|
837
837
|
continue $sm;
|
|
838
838
|
case 1:
|
|
839
|
-
if (!this.
|
|
840
|
-
this.
|
|
839
|
+
if (!this.x1l_1.k1l_1.bo()) {
|
|
840
|
+
this.y1l_1 = true;
|
|
841
841
|
this.a9_1 = 3;
|
|
842
842
|
continue $sm;
|
|
843
843
|
} else {
|
|
844
844
|
this.a9_1 = 2;
|
|
845
|
-
suspendResult = this.
|
|
845
|
+
suspendResult = this.x1l_1.g1l_1.d1l(VOID, this);
|
|
846
846
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
847
847
|
return suspendResult;
|
|
848
848
|
}
|
|
@@ -850,34 +850,34 @@
|
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
case 2:
|
|
853
|
-
this.
|
|
853
|
+
this.y1l_1 = suspendResult;
|
|
854
854
|
this.a9_1 = 3;
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 3:
|
|
857
|
-
if (!this.
|
|
857
|
+
if (!this.y1l_1) {
|
|
858
858
|
this.a9_1 = 7;
|
|
859
859
|
continue $sm;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
var nextMatch = indexOf(this.
|
|
862
|
+
var nextMatch = indexOf(this.x1l_1.k1l_1, this.x1l_1.h1l_1.m1(0));
|
|
863
863
|
if (nextMatch === -1n) {
|
|
864
|
-
var tmp_0 = this.
|
|
865
|
-
checkBounds(this.
|
|
866
|
-
this.
|
|
864
|
+
var tmp_0 = this.x1l_1.k1l_1;
|
|
865
|
+
checkBounds(this.x1l_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).l1());
|
|
866
|
+
this.x1l_1.n1l_1 = add(this.x1l_1.n1l_1, this.x1l_1.k1l_1.ep(this.x1l_1.i1l_1.x1k()));
|
|
867
867
|
this.a9_1 = 5;
|
|
868
|
-
suspendResult = flushIfNeeded(this.
|
|
868
|
+
suspendResult = flushIfNeeded(this.x1l_1.i1l_1, this);
|
|
869
869
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
870
870
|
return suspendResult;
|
|
871
871
|
}
|
|
872
872
|
continue $sm;
|
|
873
873
|
} else {
|
|
874
|
-
checkBounds(this.
|
|
875
|
-
var tmp_1 = this.
|
|
876
|
-
var tmp_2 = this.
|
|
877
|
-
var tmp_3 = this.
|
|
878
|
-
tmp_1.
|
|
874
|
+
checkBounds(this.x1l_1, nextMatch);
|
|
875
|
+
var tmp_1 = this.x1l_1;
|
|
876
|
+
var tmp_2 = this.x1l_1.n1l_1;
|
|
877
|
+
var tmp_3 = this.x1l_1.i1l_1.x1k();
|
|
878
|
+
tmp_1.n1l_1 = add(tmp_2, this.x1l_1.k1l_1.bp(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
879
879
|
this.a9_1 = 4;
|
|
880
|
-
suspendResult = flushIfNeeded(this.
|
|
880
|
+
suspendResult = flushIfNeeded(this.x1l_1.i1l_1, this);
|
|
881
881
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
882
882
|
return suspendResult;
|
|
883
883
|
}
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
};
|
|
911
911
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
912
912
|
CoroutineImpl.call(this, resultContinuation);
|
|
913
|
-
this.
|
|
913
|
+
this.h1m_1 = _this__u8e3s4;
|
|
914
914
|
}
|
|
915
915
|
protoOf($checkFullMatchCOROUTINE$).i9 = function () {
|
|
916
916
|
var suspendResult = this.c9_1;
|
|
@@ -923,13 +923,13 @@
|
|
|
923
923
|
this.a9_1 = 1;
|
|
924
924
|
continue $sm;
|
|
925
925
|
case 1:
|
|
926
|
-
if (!this.
|
|
927
|
-
this.
|
|
926
|
+
if (!this.h1m_1.k1l_1.bo()) {
|
|
927
|
+
this.j1m_1 = true;
|
|
928
928
|
this.a9_1 = 3;
|
|
929
929
|
continue $sm;
|
|
930
930
|
} else {
|
|
931
931
|
this.a9_1 = 2;
|
|
932
|
-
suspendResult = this.
|
|
932
|
+
suspendResult = this.h1m_1.g1l_1.d1l(VOID, this);
|
|
933
933
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
934
934
|
return suspendResult;
|
|
935
935
|
}
|
|
@@ -937,30 +937,30 @@
|
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
case 2:
|
|
940
|
-
this.
|
|
940
|
+
this.j1m_1 = suspendResult;
|
|
941
941
|
this.a9_1 = 3;
|
|
942
942
|
continue $sm;
|
|
943
943
|
case 3:
|
|
944
|
-
if (!this.
|
|
944
|
+
if (!this.j1m_1) {
|
|
945
945
|
this.a9_1 = 7;
|
|
946
946
|
continue $sm;
|
|
947
947
|
}
|
|
948
948
|
|
|
949
|
-
this.
|
|
950
|
-
if (this.
|
|
951
|
-
var oldMatchIndex = this.
|
|
952
|
-
while (this.
|
|
953
|
-
this.
|
|
949
|
+
this.i1m_1 = this.h1m_1.k1l_1.eo();
|
|
950
|
+
if (this.h1m_1.o1l_1 > 0 && !(this.i1m_1 === this.h1m_1.h1l_1.m1(this.h1m_1.o1l_1))) {
|
|
951
|
+
var oldMatchIndex = this.h1m_1.o1l_1;
|
|
952
|
+
while (this.h1m_1.o1l_1 > 0 && !(this.i1m_1 === this.h1m_1.h1l_1.m1(this.h1m_1.o1l_1))) {
|
|
953
|
+
this.h1m_1.o1l_1 = this.h1m_1.l1l_1[this.h1m_1.o1l_1 - 1 | 0];
|
|
954
954
|
}
|
|
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.
|
|
955
|
+
var retained = fromInt(oldMatchIndex - this.h1m_1.o1l_1 | 0);
|
|
956
|
+
checkBounds(this.h1m_1, retained);
|
|
957
|
+
var tmp_0 = this.h1m_1;
|
|
958
|
+
var tmp_1 = this.h1m_1.n1l_1;
|
|
959
|
+
var tmp_2 = this.h1m_1.i1l_1.x1k();
|
|
960
|
+
tmp_0.n1l_1 = add(tmp_1, this.h1m_1.m1l_1.bp(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
961
|
+
if (this.h1m_1.o1l_1 === 0 && !(this.i1m_1 === this.h1m_1.h1l_1.m1(this.h1m_1.o1l_1))) {
|
|
962
962
|
this.a9_1 = 6;
|
|
963
|
-
suspendResult = writeByte(this.
|
|
963
|
+
suspendResult = writeByte(this.h1m_1.i1l_1, this.i1m_1, this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -978,17 +978,17 @@
|
|
|
978
978
|
this.a9_1 = 5;
|
|
979
979
|
continue $sm;
|
|
980
980
|
case 5:
|
|
981
|
-
this.
|
|
982
|
-
if (this.
|
|
981
|
+
this.h1m_1.o1l_1 = this.h1m_1.o1l_1 + 1 | 0;
|
|
982
|
+
if (this.h1m_1.o1l_1 === this.h1m_1.h1l_1.l1()) {
|
|
983
983
|
return true;
|
|
984
984
|
}
|
|
985
985
|
|
|
986
|
-
this.
|
|
986
|
+
this.h1m_1.m1l_1.up(this.i1m_1);
|
|
987
987
|
this.a9_1 = 1;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 6:
|
|
990
|
-
var _unary__edvuaz = this.
|
|
991
|
-
this.
|
|
990
|
+
var _unary__edvuaz = this.h1m_1.n1l_1;
|
|
991
|
+
this.h1m_1.n1l_1 = add(_unary__edvuaz, get_ONE());
|
|
992
992
|
return false;
|
|
993
993
|
case 7:
|
|
994
994
|
return false;
|
|
@@ -1008,49 +1008,49 @@
|
|
|
1008
1008
|
};
|
|
1009
1009
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1010
1010
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
this.
|
|
1011
|
+
this.g1l_1 = channel;
|
|
1012
|
+
this.h1l_1 = matchString;
|
|
1013
|
+
this.i1l_1 = writeChannel;
|
|
1014
|
+
this.j1l_1 = limit;
|
|
1015
1015
|
// Inline function 'kotlin.require' call
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.h1l_1.l1() > 0)) {
|
|
1017
1017
|
var message = 'Empty match string not permitted for scanning';
|
|
1018
1018
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1019
1019
|
}
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1023
|
-
this.
|
|
1024
|
-
this.
|
|
1020
|
+
this.k1l_1 = this.g1l_1.u1k();
|
|
1021
|
+
this.l1l_1 = buildPartialMatchTable(this);
|
|
1022
|
+
this.m1l_1 = new Buffer();
|
|
1023
|
+
this.n1l_1 = 0n;
|
|
1024
|
+
this.o1l_1 = 0;
|
|
1025
1025
|
}
|
|
1026
|
-
protoOf(ByteChannelScanner).
|
|
1026
|
+
protoOf(ByteChannelScanner).v1m = function (ignoreMissing, $completion) {
|
|
1027
1027
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1028
1028
|
tmp.c9_1 = Unit_instance;
|
|
1029
1029
|
tmp.d9_1 = null;
|
|
1030
1030
|
return tmp.i9();
|
|
1031
1031
|
};
|
|
1032
1032
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1033
|
+
this.w1m_1 = null;
|
|
1034
|
+
this.x1m_1 = new Buffer();
|
|
1035
1035
|
}
|
|
1036
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1037
|
-
return this.
|
|
1036
|
+
protoOf(ByteReadChannel$Companion$Empty$1).z1k = function () {
|
|
1037
|
+
return this.w1m_1;
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1039
|
+
protoOf(ByteReadChannel$Companion$Empty$1).b1l = function () {
|
|
1040
1040
|
return true;
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1043
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u1k = function () {
|
|
1043
|
+
return this.x1m_1;
|
|
1044
1044
|
};
|
|
1045
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).c1l = function (min, $completion) {
|
|
1046
1046
|
return false;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f1l = function (cause) {
|
|
1049
1049
|
};
|
|
1050
1050
|
function Companion_0() {
|
|
1051
1051
|
Companion_instance_1 = this;
|
|
1052
1052
|
var tmp = this;
|
|
1053
|
-
tmp.
|
|
1053
|
+
tmp.y1m_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1054
1054
|
}
|
|
1055
1055
|
var Companion_instance_1;
|
|
1056
1056
|
function Companion_getInstance_0() {
|
|
@@ -1061,7 +1061,7 @@
|
|
|
1061
1061
|
function ByteReadChannel_1() {
|
|
1062
1062
|
}
|
|
1063
1063
|
function cancel_0(_this__u8e3s4) {
|
|
1064
|
-
_this__u8e3s4.
|
|
1064
|
+
_this__u8e3s4.f1l(IOException_init_$Create$('Channel was cancelled'));
|
|
1065
1065
|
}
|
|
1066
1066
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1067
1067
|
offset = offset === VOID ? 0 : offset;
|
|
@@ -1117,11 +1117,11 @@
|
|
|
1117
1117
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1118
1118
|
limit = limit === VOID ? 9223372036854775807n : limit;
|
|
1119
1119
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1120
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1120
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).v1m(ignoreMissing, $completion);
|
|
1121
1121
|
}
|
|
1122
1122
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1123
1123
|
max = max === VOID ? 2147483647 : max;
|
|
1124
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1124
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().m1q_1 : lineEnding;
|
|
1125
1125
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1126
1126
|
tmp.c9_1 = Unit_instance;
|
|
1127
1127
|
tmp.d9_1 = null;
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
return tmp.i9();
|
|
1135
1135
|
}
|
|
1136
1136
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1137
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1137
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1k();
|
|
1138
1138
|
if (tmp0_safe_receiver == null)
|
|
1139
1139
|
null;
|
|
1140
1140
|
else {
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1146
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1146
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1k();
|
|
1147
1147
|
if (tmp0_safe_receiver == null)
|
|
1148
1148
|
null;
|
|
1149
1149
|
else {
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
return tmp.i9();
|
|
1159
1159
|
}
|
|
1160
1160
|
function get_availableForRead(_this__u8e3s4) {
|
|
1161
|
-
return convertToInt(_this__u8e3s4.
|
|
1161
|
+
return convertToInt(_this__u8e3s4.u1k().ao().l1());
|
|
1162
1162
|
}
|
|
1163
1163
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1164
1164
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1167,7 +1167,7 @@
|
|
|
1167
1167
|
return tmp.i9();
|
|
1168
1168
|
}
|
|
1169
1169
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1170
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1170
|
+
var tmp0_safe_receiver = _this__u8e3s4.z1k();
|
|
1171
1171
|
if (tmp0_safe_receiver == null)
|
|
1172
1172
|
null;
|
|
1173
1173
|
else {
|
|
@@ -1182,10 +1182,10 @@
|
|
|
1182
1182
|
}
|
|
1183
1183
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1184
1184
|
CoroutineImpl.call(this, resultContinuation);
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1185
|
+
this.h1n_1 = _this__u8e3s4;
|
|
1186
|
+
this.i1n_1 = buffer;
|
|
1187
|
+
this.j1n_1 = offset;
|
|
1188
|
+
this.k1n_1 = length;
|
|
1189
1189
|
}
|
|
1190
1190
|
protoOf($readAvailableCOROUTINE$).i9 = function () {
|
|
1191
1191
|
var suspendResult = this.c9_1;
|
|
@@ -1195,11 +1195,11 @@
|
|
|
1195
1195
|
switch (tmp) {
|
|
1196
1196
|
case 0:
|
|
1197
1197
|
this.b9_1 = 3;
|
|
1198
|
-
if (this.
|
|
1198
|
+
if (this.h1n_1.b1l())
|
|
1199
1199
|
return -1;
|
|
1200
|
-
if (this.
|
|
1200
|
+
if (this.h1n_1.u1k().bo()) {
|
|
1201
1201
|
this.a9_1 = 1;
|
|
1202
|
-
suspendResult = this.
|
|
1202
|
+
suspendResult = this.h1n_1.d1l(VOID, this);
|
|
1203
1203
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1204
1204
|
return suspendResult;
|
|
1205
1205
|
}
|
|
@@ -1213,9 +1213,9 @@
|
|
|
1213
1213
|
this.a9_1 = 2;
|
|
1214
1214
|
continue $sm;
|
|
1215
1215
|
case 2:
|
|
1216
|
-
if (this.
|
|
1216
|
+
if (this.h1n_1.b1l())
|
|
1217
1217
|
return -1;
|
|
1218
|
-
return readAvailable_0(this.
|
|
1218
|
+
return readAvailable_0(this.h1n_1.u1k(), this.i1n_1, this.j1n_1, this.k1n_1);
|
|
1219
1219
|
case 3:
|
|
1220
1220
|
throw this.d9_1;
|
|
1221
1221
|
}
|
|
@@ -1232,8 +1232,8 @@
|
|
|
1232
1232
|
};
|
|
1233
1233
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1234
1234
|
CoroutineImpl.call(this, resultContinuation);
|
|
1235
|
-
this.
|
|
1236
|
-
this.
|
|
1235
|
+
this.t1n_1 = _this__u8e3s4;
|
|
1236
|
+
this.u1n_1 = channel;
|
|
1237
1237
|
}
|
|
1238
1238
|
protoOf($copyToCOROUTINE$).i9 = function () {
|
|
1239
1239
|
var suspendResult = this.c9_1;
|
|
@@ -1243,7 +1243,7 @@
|
|
|
1243
1243
|
switch (tmp) {
|
|
1244
1244
|
case 0:
|
|
1245
1245
|
this.b9_1 = 11;
|
|
1246
|
-
this.
|
|
1246
|
+
this.v1n_1 = 0n;
|
|
1247
1247
|
this.a9_1 = 1;
|
|
1248
1248
|
continue $sm;
|
|
1249
1249
|
case 1:
|
|
@@ -1252,14 +1252,14 @@
|
|
|
1252
1252
|
this.a9_1 = 2;
|
|
1253
1253
|
continue $sm;
|
|
1254
1254
|
case 2:
|
|
1255
|
-
if (!!this.
|
|
1255
|
+
if (!!this.t1n_1.b1l()) {
|
|
1256
1256
|
this.a9_1 = 5;
|
|
1257
1257
|
continue $sm;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
this.
|
|
1260
|
+
this.v1n_1 = add(this.v1n_1, this.t1n_1.u1k().ep(this.u1n_1.x1k()));
|
|
1261
1261
|
this.a9_1 = 3;
|
|
1262
|
-
suspendResult = this.
|
|
1262
|
+
suspendResult = this.u1n_1.s1k(this);
|
|
1263
1263
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1264
1264
|
return suspendResult;
|
|
1265
1265
|
}
|
|
@@ -1267,7 +1267,7 @@
|
|
|
1267
1267
|
continue $sm;
|
|
1268
1268
|
case 3:
|
|
1269
1269
|
this.a9_1 = 4;
|
|
1270
|
-
suspendResult = this.
|
|
1270
|
+
suspendResult = this.t1n_1.d1l(VOID, this);
|
|
1271
1271
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1272
1272
|
return suspendResult;
|
|
1273
1273
|
}
|
|
@@ -1285,8 +1285,8 @@
|
|
|
1285
1285
|
var tmp_0 = this.d9_1;
|
|
1286
1286
|
if (tmp_0 instanceof Error) {
|
|
1287
1287
|
var cause = this.d9_1;
|
|
1288
|
-
this.
|
|
1289
|
-
close_0(this.
|
|
1288
|
+
this.t1n_1.f1l(cause);
|
|
1289
|
+
close_0(this.u1n_1, cause);
|
|
1290
1290
|
throw cause;
|
|
1291
1291
|
} else {
|
|
1292
1292
|
throw this.d9_1;
|
|
@@ -1294,27 +1294,27 @@
|
|
|
1294
1294
|
|
|
1295
1295
|
case 7:
|
|
1296
1296
|
this.b9_1 = 11;
|
|
1297
|
-
this.
|
|
1297
|
+
this.w1n_1 = this.d9_1;
|
|
1298
1298
|
this.a9_1 = 8;
|
|
1299
|
-
suspendResult = this.
|
|
1299
|
+
suspendResult = this.u1n_1.s1k(this);
|
|
1300
1300
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1301
1301
|
return suspendResult;
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
1304
|
continue $sm;
|
|
1305
1305
|
case 8:
|
|
1306
|
-
throw this.
|
|
1306
|
+
throw this.w1n_1;
|
|
1307
1307
|
case 9:
|
|
1308
1308
|
this.b9_1 = 11;
|
|
1309
1309
|
this.a9_1 = 10;
|
|
1310
|
-
suspendResult = this.
|
|
1310
|
+
suspendResult = this.u1n_1.s1k(this);
|
|
1311
1311
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1312
1312
|
return suspendResult;
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
1315
|
continue $sm;
|
|
1316
1316
|
case 10:
|
|
1317
|
-
return this.
|
|
1317
|
+
return this.v1n_1;
|
|
1318
1318
|
case 11:
|
|
1319
1319
|
throw this.d9_1;
|
|
1320
1320
|
}
|
|
@@ -1331,7 +1331,7 @@
|
|
|
1331
1331
|
};
|
|
1332
1332
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1333
1333
|
CoroutineImpl.call(this, resultContinuation);
|
|
1334
|
-
this.
|
|
1334
|
+
this.f1o_1 = _this__u8e3s4;
|
|
1335
1335
|
}
|
|
1336
1336
|
protoOf($readRemainingCOROUTINE$).i9 = function () {
|
|
1337
1337
|
var suspendResult = this.c9_1;
|
|
@@ -1341,18 +1341,18 @@
|
|
|
1341
1341
|
switch (tmp) {
|
|
1342
1342
|
case 0:
|
|
1343
1343
|
this.b9_1 = 4;
|
|
1344
|
-
this.
|
|
1344
|
+
this.g1o_1 = BytePacketBuilder();
|
|
1345
1345
|
this.a9_1 = 1;
|
|
1346
1346
|
continue $sm;
|
|
1347
1347
|
case 1:
|
|
1348
|
-
if (!!this.
|
|
1348
|
+
if (!!this.f1o_1.b1l()) {
|
|
1349
1349
|
this.a9_1 = 3;
|
|
1350
1350
|
continue $sm;
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
this.
|
|
1353
|
+
this.g1o_1.tp(this.f1o_1.u1k());
|
|
1354
1354
|
this.a9_1 = 2;
|
|
1355
|
-
suspendResult = this.
|
|
1355
|
+
suspendResult = this.f1o_1.d1l(VOID, this);
|
|
1356
1356
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1357
1357
|
return suspendResult;
|
|
1358
1358
|
}
|
|
@@ -1362,8 +1362,8 @@
|
|
|
1362
1362
|
this.a9_1 = 1;
|
|
1363
1363
|
continue $sm;
|
|
1364
1364
|
case 3:
|
|
1365
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1366
|
-
return this.
|
|
1365
|
+
rethrowCloseCauseIfNeeded_0(this.f1o_1);
|
|
1366
|
+
return this.g1o_1.ao();
|
|
1367
1367
|
case 4:
|
|
1368
1368
|
throw this.d9_1;
|
|
1369
1369
|
}
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
};
|
|
1381
1381
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1382
1382
|
CoroutineImpl.call(this, resultContinuation);
|
|
1383
|
-
this.
|
|
1383
|
+
this.p1o_1 = _this__u8e3s4;
|
|
1384
1384
|
}
|
|
1385
1385
|
protoOf($toByteArrayCOROUTINE$).i9 = function () {
|
|
1386
1386
|
var suspendResult = this.c9_1;
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
case 0:
|
|
1392
1392
|
this.b9_1 = 2;
|
|
1393
1393
|
this.a9_1 = 1;
|
|
1394
|
-
suspendResult = readBuffer(this.
|
|
1394
|
+
suspendResult = readBuffer(this.p1o_1, this);
|
|
1395
1395
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1396
1396
|
return suspendResult;
|
|
1397
1397
|
}
|
|
@@ -1416,9 +1416,9 @@
|
|
|
1416
1416
|
};
|
|
1417
1417
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1418
1418
|
CoroutineImpl.call(this, resultContinuation);
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1419
|
+
this.y1o_1 = _this__u8e3s4;
|
|
1420
|
+
this.z1o_1 = channel;
|
|
1421
|
+
this.a1p_1 = limit;
|
|
1422
1422
|
}
|
|
1423
1423
|
protoOf($copyToCOROUTINE$_0).i9 = function () {
|
|
1424
1424
|
var suspendResult = this.c9_1;
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
switch (tmp) {
|
|
1429
1429
|
case 0:
|
|
1430
1430
|
this.b9_1 = 12;
|
|
1431
|
-
this.
|
|
1431
|
+
this.b1p_1 = this.a1p_1;
|
|
1432
1432
|
this.a9_1 = 1;
|
|
1433
1433
|
continue $sm;
|
|
1434
1434
|
case 1:
|
|
@@ -1437,14 +1437,14 @@
|
|
|
1437
1437
|
this.a9_1 = 2;
|
|
1438
1438
|
continue $sm;
|
|
1439
1439
|
case 2:
|
|
1440
|
-
if (!(!this.
|
|
1440
|
+
if (!(!this.y1o_1.b1l() && this.b1p_1 > 0n)) {
|
|
1441
1441
|
this.a9_1 = 6;
|
|
1442
1442
|
continue $sm;
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
-
if (this.
|
|
1445
|
+
if (this.y1o_1.u1k().bo()) {
|
|
1446
1446
|
this.a9_1 = 3;
|
|
1447
|
-
suspendResult = this.
|
|
1447
|
+
suspendResult = this.y1o_1.d1l(VOID, this);
|
|
1448
1448
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1449
1449
|
return suspendResult;
|
|
1450
1450
|
}
|
|
@@ -1458,13 +1458,13 @@
|
|
|
1458
1458
|
this.a9_1 = 4;
|
|
1459
1459
|
continue $sm;
|
|
1460
1460
|
case 4:
|
|
1461
|
-
var tmp0 = this.
|
|
1462
|
-
var b = get_remaining(this.
|
|
1461
|
+
var tmp0 = this.b1p_1;
|
|
1462
|
+
var b = get_remaining(this.y1o_1.u1k());
|
|
1463
1463
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1464
|
-
this.
|
|
1465
|
-
this.
|
|
1464
|
+
this.y1o_1.u1k().dp(this.z1o_1.x1k(), count);
|
|
1465
|
+
this.b1p_1 = subtract(this.b1p_1, count);
|
|
1466
1466
|
this.a9_1 = 5;
|
|
1467
|
-
suspendResult = this.
|
|
1467
|
+
suspendResult = this.z1o_1.s1k(this);
|
|
1468
1468
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1469
1469
|
return suspendResult;
|
|
1470
1470
|
}
|
|
@@ -1482,8 +1482,8 @@
|
|
|
1482
1482
|
var tmp_0 = this.d9_1;
|
|
1483
1483
|
if (tmp_0 instanceof Error) {
|
|
1484
1484
|
var cause = this.d9_1;
|
|
1485
|
-
this.
|
|
1486
|
-
close_0(this.
|
|
1485
|
+
this.y1o_1.f1l(cause);
|
|
1486
|
+
close_0(this.z1o_1, cause);
|
|
1487
1487
|
throw cause;
|
|
1488
1488
|
} else {
|
|
1489
1489
|
throw this.d9_1;
|
|
@@ -1491,27 +1491,27 @@
|
|
|
1491
1491
|
|
|
1492
1492
|
case 8:
|
|
1493
1493
|
this.b9_1 = 12;
|
|
1494
|
-
this.
|
|
1494
|
+
this.c1p_1 = this.d9_1;
|
|
1495
1495
|
this.a9_1 = 9;
|
|
1496
|
-
suspendResult = this.
|
|
1496
|
+
suspendResult = this.z1o_1.s1k(this);
|
|
1497
1497
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1498
1498
|
return suspendResult;
|
|
1499
1499
|
}
|
|
1500
1500
|
|
|
1501
1501
|
continue $sm;
|
|
1502
1502
|
case 9:
|
|
1503
|
-
throw this.
|
|
1503
|
+
throw this.c1p_1;
|
|
1504
1504
|
case 10:
|
|
1505
1505
|
this.b9_1 = 12;
|
|
1506
1506
|
this.a9_1 = 11;
|
|
1507
|
-
suspendResult = this.
|
|
1507
|
+
suspendResult = this.z1o_1.s1k(this);
|
|
1508
1508
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1509
1509
|
return suspendResult;
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
1512
|
continue $sm;
|
|
1513
1513
|
case 11:
|
|
1514
|
-
return subtract(this.
|
|
1514
|
+
return subtract(this.a1p_1, this.b1p_1);
|
|
1515
1515
|
case 12:
|
|
1516
1516
|
throw this.d9_1;
|
|
1517
1517
|
}
|
|
@@ -1528,8 +1528,8 @@
|
|
|
1528
1528
|
};
|
|
1529
1529
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1530
1530
|
CoroutineImpl.call(this, resultContinuation);
|
|
1531
|
-
this.
|
|
1532
|
-
this.
|
|
1531
|
+
this.l1p_1 = _this__u8e3s4;
|
|
1532
|
+
this.m1p_1 = max;
|
|
1533
1533
|
}
|
|
1534
1534
|
protoOf($discardCOROUTINE$).i9 = function () {
|
|
1535
1535
|
var suspendResult = this.c9_1;
|
|
@@ -1539,18 +1539,18 @@
|
|
|
1539
1539
|
switch (tmp) {
|
|
1540
1540
|
case 0:
|
|
1541
1541
|
this.b9_1 = 5;
|
|
1542
|
-
this.
|
|
1542
|
+
this.n1p_1 = this.m1p_1;
|
|
1543
1543
|
this.a9_1 = 1;
|
|
1544
1544
|
continue $sm;
|
|
1545
1545
|
case 1:
|
|
1546
|
-
if (!(this.
|
|
1546
|
+
if (!(this.n1p_1 > 0n && !this.l1p_1.b1l())) {
|
|
1547
1547
|
this.a9_1 = 4;
|
|
1548
1548
|
continue $sm;
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
1551
|
-
if (get_availableForRead(this.
|
|
1551
|
+
if (get_availableForRead(this.l1p_1) === 0) {
|
|
1552
1552
|
this.a9_1 = 2;
|
|
1553
|
-
suspendResult = this.
|
|
1553
|
+
suspendResult = this.l1p_1.d1l(VOID, this);
|
|
1554
1554
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1555
1555
|
return suspendResult;
|
|
1556
1556
|
}
|
|
@@ -1564,15 +1564,15 @@
|
|
|
1564
1564
|
this.a9_1 = 3;
|
|
1565
1565
|
continue $sm;
|
|
1566
1566
|
case 3:
|
|
1567
|
-
var tmp0 = this.
|
|
1568
|
-
var b = get_remaining(this.
|
|
1567
|
+
var tmp0 = this.n1p_1;
|
|
1568
|
+
var b = get_remaining(this.l1p_1.u1k());
|
|
1569
1569
|
var count = tmp0 <= b ? tmp0 : b;
|
|
1570
|
-
discard_0(this.
|
|
1571
|
-
this.
|
|
1570
|
+
discard_0(this.l1p_1.u1k(), count);
|
|
1571
|
+
this.n1p_1 = subtract(this.n1p_1, count);
|
|
1572
1572
|
this.a9_1 = 1;
|
|
1573
1573
|
continue $sm;
|
|
1574
1574
|
case 4:
|
|
1575
|
-
return subtract(this.
|
|
1575
|
+
return subtract(this.m1p_1, this.n1p_1);
|
|
1576
1576
|
case 5:
|
|
1577
1577
|
throw this.d9_1;
|
|
1578
1578
|
}
|
|
@@ -1589,8 +1589,8 @@
|
|
|
1589
1589
|
};
|
|
1590
1590
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1591
1591
|
CoroutineImpl.call(this, resultContinuation);
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1592
|
+
this.w1p_1 = _this__u8e3s4;
|
|
1593
|
+
this.x1p_1 = byteString;
|
|
1594
1594
|
}
|
|
1595
1595
|
protoOf($skipIfFoundCOROUTINE$).i9 = function () {
|
|
1596
1596
|
var suspendResult = this.c9_1;
|
|
@@ -1601,7 +1601,7 @@
|
|
|
1601
1601
|
case 0:
|
|
1602
1602
|
this.b9_1 = 4;
|
|
1603
1603
|
this.a9_1 = 1;
|
|
1604
|
-
suspendResult = peek(this.
|
|
1604
|
+
suspendResult = peek(this.w1p_1, this.x1p_1.l1(), this);
|
|
1605
1605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1606
1606
|
return suspendResult;
|
|
1607
1607
|
}
|
|
@@ -1609,9 +1609,9 @@
|
|
|
1609
1609
|
continue $sm;
|
|
1610
1610
|
case 1:
|
|
1611
1611
|
var ARGUMENT = suspendResult;
|
|
1612
|
-
if (equals(ARGUMENT, this.
|
|
1612
|
+
if (equals(ARGUMENT, this.x1p_1)) {
|
|
1613
1613
|
this.a9_1 = 3;
|
|
1614
|
-
suspendResult = discard(this.
|
|
1614
|
+
suspendResult = discard(this.w1p_1, fromInt(this.x1p_1.l1()), this);
|
|
1615
1615
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1616
1616
|
return suspendResult;
|
|
1617
1617
|
}
|
|
@@ -1641,8 +1641,8 @@
|
|
|
1641
1641
|
};
|
|
1642
1642
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1643
1643
|
CoroutineImpl.call(this, resultContinuation);
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1644
|
+
this.g1q_1 = _this__u8e3s4;
|
|
1645
|
+
this.h1q_1 = packet;
|
|
1646
1646
|
}
|
|
1647
1647
|
protoOf($readPacketCOROUTINE$).i9 = function () {
|
|
1648
1648
|
var suspendResult = this.c9_1;
|
|
@@ -1652,18 +1652,18 @@
|
|
|
1652
1652
|
switch (tmp) {
|
|
1653
1653
|
case 0:
|
|
1654
1654
|
this.b9_1 = 6;
|
|
1655
|
-
this.
|
|
1655
|
+
this.i1q_1 = new Buffer();
|
|
1656
1656
|
this.a9_1 = 1;
|
|
1657
1657
|
continue $sm;
|
|
1658
1658
|
case 1:
|
|
1659
|
-
if (!(this.
|
|
1659
|
+
if (!(this.i1q_1.l1() < fromInt(this.h1q_1))) {
|
|
1660
1660
|
this.a9_1 = 5;
|
|
1661
1661
|
continue $sm;
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
-
if (this.
|
|
1664
|
+
if (this.g1q_1.u1k().bo()) {
|
|
1665
1665
|
this.a9_1 = 2;
|
|
1666
|
-
suspendResult = this.
|
|
1666
|
+
suspendResult = this.g1q_1.d1l(VOID, this);
|
|
1667
1667
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1668
1668
|
return suspendResult;
|
|
1669
1669
|
}
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
this.a9_1 = 3;
|
|
1678
1678
|
continue $sm;
|
|
1679
1679
|
case 3:
|
|
1680
|
-
if (this.
|
|
1680
|
+
if (this.g1q_1.b1l()) {
|
|
1681
1681
|
this.a9_1 = 5;
|
|
1682
1682
|
continue $sm;
|
|
1683
1683
|
} else {
|
|
@@ -1686,20 +1686,20 @@
|
|
|
1686
1686
|
}
|
|
1687
1687
|
|
|
1688
1688
|
case 4:
|
|
1689
|
-
if (get_remaining(this.
|
|
1690
|
-
this.
|
|
1689
|
+
if (get_remaining(this.g1q_1.u1k()) > subtract(numberToLong(this.h1q_1), this.i1q_1.l1())) {
|
|
1690
|
+
this.g1q_1.u1k().dp(this.i1q_1, subtract(numberToLong(this.h1q_1), this.i1q_1.l1()));
|
|
1691
1691
|
} else {
|
|
1692
|
-
this.
|
|
1692
|
+
this.g1q_1.u1k().ep(this.i1q_1);
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
1695
|
this.a9_1 = 1;
|
|
1696
1696
|
continue $sm;
|
|
1697
1697
|
case 5:
|
|
1698
|
-
if (this.
|
|
1699
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1698
|
+
if (this.i1q_1.l1() < fromInt(this.h1q_1)) {
|
|
1699
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.h1q_1 + ' bytes but only ' + this.i1q_1.l1().toString() + ' available');
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
|
-
return this.
|
|
1702
|
+
return this.i1q_1;
|
|
1703
1703
|
case 6:
|
|
1704
1704
|
throw this.d9_1;
|
|
1705
1705
|
}
|
|
@@ -1716,10 +1716,10 @@
|
|
|
1716
1716
|
};
|
|
1717
1717
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1718
1718
|
CoroutineImpl.call(this, resultContinuation);
|
|
1719
|
-
this.
|
|
1720
|
-
this.
|
|
1721
|
-
this.
|
|
1722
|
-
this.
|
|
1719
|
+
this.w1q_1 = _this__u8e3s4;
|
|
1720
|
+
this.x1q_1 = out;
|
|
1721
|
+
this.y1q_1 = max;
|
|
1722
|
+
this.z1q_1 = lineEnding;
|
|
1723
1723
|
}
|
|
1724
1724
|
protoOf($readUTF8LineToCOROUTINE$).i9 = function () {
|
|
1725
1725
|
var suspendResult = this.c9_1;
|
|
@@ -1729,9 +1729,9 @@
|
|
|
1729
1729
|
switch (tmp) {
|
|
1730
1730
|
case 0:
|
|
1731
1731
|
this.b9_1 = 21;
|
|
1732
|
-
if (this.
|
|
1732
|
+
if (this.w1q_1.u1k().bo()) {
|
|
1733
1733
|
this.a9_1 = 1;
|
|
1734
|
-
suspendResult = this.
|
|
1734
|
+
suspendResult = this.w1q_1.d1l(VOID, this);
|
|
1735
1735
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1736
1736
|
return suspendResult;
|
|
1737
1737
|
}
|
|
@@ -1745,14 +1745,14 @@
|
|
|
1745
1745
|
this.a9_1 = 2;
|
|
1746
1746
|
continue $sm;
|
|
1747
1747
|
case 2:
|
|
1748
|
-
if (this.
|
|
1748
|
+
if (this.w1q_1.b1l())
|
|
1749
1749
|
return false;
|
|
1750
|
-
this.
|
|
1750
|
+
this.f1r_1 = new Buffer();
|
|
1751
1751
|
this.a9_1 = 3;
|
|
1752
1752
|
continue $sm;
|
|
1753
1753
|
case 3:
|
|
1754
|
-
this.
|
|
1755
|
-
this.
|
|
1754
|
+
this.c1r_1 = this.f1r_1;
|
|
1755
|
+
this.b1r_1 = null;
|
|
1756
1756
|
this.a9_1 = 4;
|
|
1757
1757
|
continue $sm;
|
|
1758
1758
|
case 4:
|
|
@@ -1764,11 +1764,11 @@
|
|
|
1764
1764
|
case 6:
|
|
1765
1765
|
this.b9_1 = 18;
|
|
1766
1766
|
this.b9_1 = 17;
|
|
1767
|
-
this.
|
|
1767
|
+
this.e1r_1 = this.c1r_1;
|
|
1768
1768
|
this.a9_1 = 7;
|
|
1769
1769
|
continue $sm;
|
|
1770
1770
|
case 7:
|
|
1771
|
-
if (!!this.
|
|
1771
|
+
if (!!this.w1q_1.b1l()) {
|
|
1772
1772
|
this.a9_1 = 14;
|
|
1773
1773
|
continue $sm;
|
|
1774
1774
|
}
|
|
@@ -1776,16 +1776,16 @@
|
|
|
1776
1776
|
this.a9_1 = 8;
|
|
1777
1777
|
continue $sm;
|
|
1778
1778
|
case 8:
|
|
1779
|
-
if (!!this.
|
|
1779
|
+
if (!!this.w1q_1.u1k().bo()) {
|
|
1780
1780
|
this.a9_1 = 12;
|
|
1781
1781
|
continue $sm;
|
|
1782
1782
|
}
|
|
1783
1783
|
|
|
1784
|
-
var b = this.
|
|
1784
|
+
var b = this.w1q_1.u1k().eo();
|
|
1785
1785
|
if (b === 13) {
|
|
1786
|
-
if (this.
|
|
1786
|
+
if (this.w1q_1.u1k().bo()) {
|
|
1787
1787
|
this.a9_1 = 10;
|
|
1788
|
-
suspendResult = this.
|
|
1788
|
+
suspendResult = this.w1q_1.d1l(VOID, this);
|
|
1789
1789
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1790
1790
|
return suspendResult;
|
|
1791
1791
|
}
|
|
@@ -1796,14 +1796,14 @@
|
|
|
1796
1796
|
}
|
|
1797
1797
|
} else {
|
|
1798
1798
|
if (b === 10) {
|
|
1799
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1800
|
-
this.
|
|
1801
|
-
this.
|
|
1799
|
+
readUTF8LineTo$checkLineEndingAllowed(this.z1q_1, Companion_getInstance_1().k1q_1);
|
|
1800
|
+
this.x1q_1.k1(readString(this.e1r_1));
|
|
1801
|
+
this.d1r_1 = true;
|
|
1802
1802
|
this.b9_1 = 21;
|
|
1803
1803
|
this.a9_1 = 15;
|
|
1804
1804
|
continue $sm;
|
|
1805
1805
|
} else {
|
|
1806
|
-
this.
|
|
1806
|
+
this.e1r_1.up(b);
|
|
1807
1807
|
this.a9_1 = 9;
|
|
1808
1808
|
continue $sm;
|
|
1809
1809
|
}
|
|
@@ -1816,25 +1816,25 @@
|
|
|
1816
1816
|
this.a9_1 = 11;
|
|
1817
1817
|
continue $sm;
|
|
1818
1818
|
case 11:
|
|
1819
|
-
if (this.
|
|
1820
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1821
|
-
discard_0(this.
|
|
1819
|
+
if (this.w1q_1.u1k().ao().wo(0n) === 10) {
|
|
1820
|
+
readUTF8LineTo$checkLineEndingAllowed(this.z1q_1, Companion_getInstance_1().l1q_1);
|
|
1821
|
+
discard_0(this.w1q_1.u1k(), 1n);
|
|
1822
1822
|
} else {
|
|
1823
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1823
|
+
readUTF8LineTo$checkLineEndingAllowed(this.z1q_1, Companion_getInstance_1().j1q_1);
|
|
1824
1824
|
}
|
|
1825
1825
|
|
|
1826
|
-
this.
|
|
1827
|
-
this.
|
|
1826
|
+
this.x1q_1.k1(readString(this.e1r_1));
|
|
1827
|
+
this.d1r_1 = true;
|
|
1828
1828
|
this.b9_1 = 21;
|
|
1829
1829
|
this.a9_1 = 15;
|
|
1830
1830
|
continue $sm;
|
|
1831
1831
|
case 12:
|
|
1832
|
-
if (this.
|
|
1833
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1832
|
+
if (this.e1r_1.l1() >= fromInt(this.y1q_1)) {
|
|
1833
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.y1q_1 + ' characters');
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
1836
|
this.a9_1 = 13;
|
|
1837
|
-
suspendResult = this.
|
|
1837
|
+
suspendResult = this.w1q_1.d1l(VOID, this);
|
|
1838
1838
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1839
1839
|
return suspendResult;
|
|
1840
1840
|
}
|
|
@@ -1845,26 +1845,26 @@
|
|
|
1845
1845
|
continue $sm;
|
|
1846
1846
|
case 14:
|
|
1847
1847
|
var tmp_0 = this;
|
|
1848
|
-
var this_0 = this.
|
|
1848
|
+
var this_0 = this.e1r_1.l1() > 0n;
|
|
1849
1849
|
if (this_0) {
|
|
1850
|
-
this.
|
|
1850
|
+
this.x1q_1.k1(readString(this.e1r_1));
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
|
-
tmp_0.
|
|
1853
|
+
tmp_0.d1r_1 = this_0;
|
|
1854
1854
|
this.b9_1 = 21;
|
|
1855
1855
|
this.a9_1 = 15;
|
|
1856
1856
|
var tmp_1 = this;
|
|
1857
1857
|
continue $sm;
|
|
1858
1858
|
case 15:
|
|
1859
|
-
var tmp_2 = this.
|
|
1859
|
+
var tmp_2 = this.d1r_1;
|
|
1860
1860
|
this.b9_1 = 21;
|
|
1861
|
-
closeFinally(this.
|
|
1861
|
+
closeFinally(this.c1r_1, this.b1r_1);
|
|
1862
1862
|
return tmp_2;
|
|
1863
1863
|
case 16:
|
|
1864
1864
|
this.b9_1 = 21;
|
|
1865
1865
|
var tmp_3 = this;
|
|
1866
|
-
closeFinally(this.
|
|
1867
|
-
tmp_3.
|
|
1866
|
+
closeFinally(this.c1r_1, this.b1r_1);
|
|
1867
|
+
tmp_3.a1r_1 = Unit_instance;
|
|
1868
1868
|
this.a9_1 = 20;
|
|
1869
1869
|
continue $sm;
|
|
1870
1870
|
case 17:
|
|
@@ -1873,7 +1873,7 @@
|
|
|
1873
1873
|
if (tmp_4 instanceof Error) {
|
|
1874
1874
|
var e = this.d9_1;
|
|
1875
1875
|
var tmp_5 = this;
|
|
1876
|
-
this.
|
|
1876
|
+
this.b1r_1 = e;
|
|
1877
1877
|
throw e;
|
|
1878
1878
|
} else {
|
|
1879
1879
|
throw this.d9_1;
|
|
@@ -1882,11 +1882,11 @@
|
|
|
1882
1882
|
case 18:
|
|
1883
1883
|
this.b9_1 = 21;
|
|
1884
1884
|
var t = this.d9_1;
|
|
1885
|
-
closeFinally(this.
|
|
1885
|
+
closeFinally(this.c1r_1, this.b1r_1);
|
|
1886
1886
|
throw t;
|
|
1887
1887
|
case 19:
|
|
1888
1888
|
this.b9_1 = 21;
|
|
1889
|
-
closeFinally(this.
|
|
1889
|
+
closeFinally(this.c1r_1, this.b1r_1);
|
|
1890
1890
|
if (false) {
|
|
1891
1891
|
this.a9_1 = 3;
|
|
1892
1892
|
continue $sm;
|
|
@@ -1912,8 +1912,8 @@
|
|
|
1912
1912
|
};
|
|
1913
1913
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1914
1914
|
CoroutineImpl.call(this, resultContinuation);
|
|
1915
|
-
this.
|
|
1916
|
-
this.
|
|
1915
|
+
this.o1r_1 = _this__u8e3s4;
|
|
1916
|
+
this.p1r_1 = max;
|
|
1917
1917
|
}
|
|
1918
1918
|
protoOf($readRemainingCOROUTINE$_0).i9 = function () {
|
|
1919
1919
|
var suspendResult = this.c9_1;
|
|
@@ -1923,26 +1923,26 @@
|
|
|
1923
1923
|
switch (tmp) {
|
|
1924
1924
|
case 0:
|
|
1925
1925
|
this.b9_1 = 4;
|
|
1926
|
-
this.
|
|
1927
|
-
this.
|
|
1926
|
+
this.q1r_1 = BytePacketBuilder();
|
|
1927
|
+
this.r1r_1 = this.p1r_1;
|
|
1928
1928
|
this.a9_1 = 1;
|
|
1929
1929
|
continue $sm;
|
|
1930
1930
|
case 1:
|
|
1931
|
-
if (!(!this.
|
|
1931
|
+
if (!(!this.o1r_1.b1l() && this.r1r_1 > 0n)) {
|
|
1932
1932
|
this.a9_1 = 3;
|
|
1933
1933
|
continue $sm;
|
|
1934
1934
|
}
|
|
1935
1935
|
|
|
1936
|
-
if (this.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1936
|
+
if (this.r1r_1 >= get_remaining(this.o1r_1.u1k())) {
|
|
1937
|
+
this.r1r_1 = subtract(this.r1r_1, get_remaining(this.o1r_1.u1k()));
|
|
1938
|
+
this.o1r_1.u1k().ep(this.q1r_1);
|
|
1939
1939
|
} else {
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1940
|
+
this.o1r_1.u1k().dp(this.q1r_1, this.r1r_1);
|
|
1941
|
+
this.r1r_1 = 0n;
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
1944
|
this.a9_1 = 2;
|
|
1945
|
-
suspendResult = this.
|
|
1945
|
+
suspendResult = this.o1r_1.d1l(VOID, this);
|
|
1946
1946
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1947
1947
|
return suspendResult;
|
|
1948
1948
|
}
|
|
@@ -1952,7 +1952,7 @@
|
|
|
1952
1952
|
this.a9_1 = 1;
|
|
1953
1953
|
continue $sm;
|
|
1954
1954
|
case 3:
|
|
1955
|
-
return this.
|
|
1955
|
+
return this.q1r_1.ao();
|
|
1956
1956
|
case 4:
|
|
1957
1957
|
throw this.d9_1;
|
|
1958
1958
|
}
|
|
@@ -1969,7 +1969,7 @@
|
|
|
1969
1969
|
};
|
|
1970
1970
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1971
1971
|
CoroutineImpl.call(this, resultContinuation);
|
|
1972
|
-
this.
|
|
1972
|
+
this.a1s_1 = _this__u8e3s4;
|
|
1973
1973
|
}
|
|
1974
1974
|
protoOf($readBufferCOROUTINE$).i9 = function () {
|
|
1975
1975
|
var suspendResult = this.c9_1;
|
|
@@ -1979,18 +1979,18 @@
|
|
|
1979
1979
|
switch (tmp) {
|
|
1980
1980
|
case 0:
|
|
1981
1981
|
this.b9_1 = 4;
|
|
1982
|
-
this.
|
|
1982
|
+
this.b1s_1 = new Buffer();
|
|
1983
1983
|
this.a9_1 = 1;
|
|
1984
1984
|
continue $sm;
|
|
1985
1985
|
case 1:
|
|
1986
|
-
if (!!this.
|
|
1986
|
+
if (!!this.a1s_1.b1l()) {
|
|
1987
1987
|
this.a9_1 = 3;
|
|
1988
1988
|
continue $sm;
|
|
1989
1989
|
}
|
|
1990
1990
|
|
|
1991
|
-
this.
|
|
1991
|
+
this.b1s_1.tp(this.a1s_1.u1k());
|
|
1992
1992
|
this.a9_1 = 2;
|
|
1993
|
-
suspendResult = this.
|
|
1993
|
+
suspendResult = this.a1s_1.d1l(VOID, this);
|
|
1994
1994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1995
1995
|
return suspendResult;
|
|
1996
1996
|
}
|
|
@@ -2000,14 +2000,14 @@
|
|
|
2000
2000
|
this.a9_1 = 1;
|
|
2001
2001
|
continue $sm;
|
|
2002
2002
|
case 3:
|
|
2003
|
-
var tmp0_safe_receiver = this.
|
|
2003
|
+
var tmp0_safe_receiver = this.a1s_1.z1k();
|
|
2004
2004
|
if (tmp0_safe_receiver == null)
|
|
2005
2005
|
null;
|
|
2006
2006
|
else {
|
|
2007
2007
|
throw tmp0_safe_receiver;
|
|
2008
2008
|
}
|
|
2009
2009
|
|
|
2010
|
-
return this.
|
|
2010
|
+
return this.b1s_1;
|
|
2011
2011
|
case 4:
|
|
2012
2012
|
throw this.d9_1;
|
|
2013
2013
|
}
|
|
@@ -2024,8 +2024,8 @@
|
|
|
2024
2024
|
};
|
|
2025
2025
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2026
2026
|
CoroutineImpl.call(this, resultContinuation);
|
|
2027
|
-
this.
|
|
2028
|
-
this.
|
|
2027
|
+
this.k1s_1 = _this__u8e3s4;
|
|
2028
|
+
this.l1s_1 = count;
|
|
2029
2029
|
}
|
|
2030
2030
|
protoOf($peekCOROUTINE$).i9 = function () {
|
|
2031
2031
|
var suspendResult = this.c9_1;
|
|
@@ -2035,10 +2035,10 @@
|
|
|
2035
2035
|
switch (tmp) {
|
|
2036
2036
|
case 0:
|
|
2037
2037
|
this.b9_1 = 3;
|
|
2038
|
-
if (this.
|
|
2038
|
+
if (this.k1s_1.b1l())
|
|
2039
2039
|
return null;
|
|
2040
2040
|
this.a9_1 = 1;
|
|
2041
|
-
suspendResult = this.
|
|
2041
|
+
suspendResult = this.k1s_1.c1l(this.l1s_1, this);
|
|
2042
2042
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2043
2043
|
return suspendResult;
|
|
2044
2044
|
}
|
|
@@ -2053,7 +2053,7 @@
|
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
2055
|
case 2:
|
|
2056
|
-
return readByteString(this.
|
|
2056
|
+
return readByteString(this.k1s_1.u1k().fp(), this.l1s_1);
|
|
2057
2057
|
case 3:
|
|
2058
2058
|
throw this.d9_1;
|
|
2059
2059
|
}
|
|
@@ -2078,7 +2078,7 @@
|
|
|
2078
2078
|
}
|
|
2079
2079
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2080
2080
|
CoroutineImpl.call(this, resultContinuation);
|
|
2081
|
-
this.
|
|
2081
|
+
this.u1s_1 = _this__u8e3s4;
|
|
2082
2082
|
}
|
|
2083
2083
|
protoOf($flushIfNeededCOROUTINE$).i9 = function () {
|
|
2084
2084
|
var suspendResult = this.c9_1;
|
|
@@ -2088,10 +2088,10 @@
|
|
|
2088
2088
|
switch (tmp) {
|
|
2089
2089
|
case 0:
|
|
2090
2090
|
this.b9_1 = 3;
|
|
2091
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2092
|
-
if (this.
|
|
2091
|
+
rethrowCloseCauseIfNeeded_1(this.u1s_1);
|
|
2092
|
+
if (this.u1s_1.t1k() || get_size(this.u1s_1.x1k()) >= 1048576) {
|
|
2093
2093
|
this.a9_1 = 1;
|
|
2094
|
-
suspendResult = this.
|
|
2094
|
+
suspendResult = this.u1s_1.s1k(this);
|
|
2095
2095
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2096
2096
|
return suspendResult;
|
|
2097
2097
|
}
|
|
@@ -2128,15 +2128,15 @@
|
|
|
2128
2128
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2129
2129
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2130
2130
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2131
|
-
_this__u8e3s4.
|
|
2131
|
+
_this__u8e3s4.x1k().kp(value, startIndex, endIndex);
|
|
2132
2132
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2133
2133
|
}
|
|
2134
2134
|
function WriterJob(channel, job) {
|
|
2135
|
-
this.
|
|
2136
|
-
this.
|
|
2135
|
+
this.v1s_1 = channel;
|
|
2136
|
+
this.w1s_1 = job;
|
|
2137
2137
|
}
|
|
2138
|
-
protoOf(WriterJob).
|
|
2139
|
-
return this.
|
|
2138
|
+
protoOf(WriterJob).yu = function () {
|
|
2139
|
+
return this.w1s_1;
|
|
2140
2140
|
};
|
|
2141
2141
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2142
2142
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_instance : coroutineContext;
|
|
@@ -2145,22 +2145,22 @@
|
|
|
2145
2145
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2146
2146
|
}
|
|
2147
2147
|
function WriterScope(channel, coroutineContext) {
|
|
2148
|
-
this.
|
|
2149
|
-
this.
|
|
2148
|
+
this.x1s_1 = channel;
|
|
2149
|
+
this.y1s_1 = coroutineContext;
|
|
2150
2150
|
}
|
|
2151
|
-
protoOf(WriterScope).
|
|
2152
|
-
return this.
|
|
2151
|
+
protoOf(WriterScope).mr = function () {
|
|
2152
|
+
return this.y1s_1;
|
|
2153
2153
|
};
|
|
2154
2154
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2155
2155
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2156
|
-
return _this__u8e3s4.
|
|
2156
|
+
return _this__u8e3s4.yu().os(block);
|
|
2157
2157
|
}
|
|
2158
2158
|
function close_0(_this__u8e3s4, cause) {
|
|
2159
2159
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2160
2160
|
if (cause == null) {
|
|
2161
2161
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2162
2162
|
} else {
|
|
2163
|
-
_this__u8e3s4.
|
|
2163
|
+
_this__u8e3s4.f1l(cause);
|
|
2164
2164
|
}
|
|
2165
2165
|
}
|
|
2166
2166
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2178,19 +2178,19 @@
|
|
|
2178
2178
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
2179
2179
|
// Inline function 'kotlin.apply' call
|
|
2180
2180
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
2181
|
-
this_0.
|
|
2181
|
+
this_0.os(writer$lambda(channel));
|
|
2182
2182
|
var job = this_0;
|
|
2183
2183
|
return new WriterJob(channel, job);
|
|
2184
2184
|
}
|
|
2185
2185
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2186
|
-
_this__u8e3s4.
|
|
2186
|
+
_this__u8e3s4.x1k().up(value);
|
|
2187
2187
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2188
2188
|
}
|
|
2189
2189
|
function NO_CALLBACK$1() {
|
|
2190
|
-
this.
|
|
2190
|
+
this.j1t_1 = EmptyCoroutineContext_instance;
|
|
2191
2191
|
}
|
|
2192
2192
|
protoOf(NO_CALLBACK$1).g9 = function () {
|
|
2193
|
-
return this.
|
|
2193
|
+
return this.j1t_1;
|
|
2194
2194
|
};
|
|
2195
2195
|
protoOf(NO_CALLBACK$1).h9 = function (result) {
|
|
2196
2196
|
return Unit_instance;
|
|
@@ -2199,36 +2199,36 @@
|
|
|
2199
2199
|
return this.h9(result);
|
|
2200
2200
|
};
|
|
2201
2201
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2202
|
-
this.
|
|
2202
|
+
this.k1t_1 = p0;
|
|
2203
2203
|
}
|
|
2204
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2205
|
-
return this.
|
|
2204
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).l1t = function ($completion) {
|
|
2205
|
+
return this.k1t_1.e1l($completion);
|
|
2206
2206
|
};
|
|
2207
2207
|
protoOf(ByteWriteChannel$flushAndClose$ref).ra = function ($completion) {
|
|
2208
|
-
return this.
|
|
2208
|
+
return this.l1t($completion);
|
|
2209
2209
|
};
|
|
2210
2210
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2211
2211
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2212
2212
|
var l = function ($completion) {
|
|
2213
|
-
return i.
|
|
2213
|
+
return i.l1t($completion);
|
|
2214
2214
|
};
|
|
2215
2215
|
l.callableName = 'flushAndClose';
|
|
2216
2216
|
l.$arity = 0;
|
|
2217
2217
|
return l;
|
|
2218
2218
|
}
|
|
2219
2219
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2220
|
-
this.
|
|
2221
|
-
this.
|
|
2220
|
+
this.u1t_1 = $block;
|
|
2221
|
+
this.v1t_1 = $channel;
|
|
2222
2222
|
CoroutineImpl.call(this, resultContinuation);
|
|
2223
2223
|
}
|
|
2224
|
-
protoOf(writer$slambda).
|
|
2225
|
-
var tmp = this.
|
|
2224
|
+
protoOf(writer$slambda).d1u = function ($this$launch, $completion) {
|
|
2225
|
+
var tmp = this.e1u($this$launch, $completion);
|
|
2226
2226
|
tmp.c9_1 = Unit_instance;
|
|
2227
2227
|
tmp.d9_1 = null;
|
|
2228
2228
|
return tmp.i9();
|
|
2229
2229
|
};
|
|
2230
2230
|
protoOf(writer$slambda).u9 = function (p1, $completion) {
|
|
2231
|
-
return this.
|
|
2231
|
+
return this.d1u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2232
2232
|
};
|
|
2233
2233
|
protoOf(writer$slambda).i9 = function () {
|
|
2234
2234
|
var suspendResult = this.c9_1;
|
|
@@ -2238,24 +2238,24 @@
|
|
|
2238
2238
|
switch (tmp) {
|
|
2239
2239
|
case 0:
|
|
2240
2240
|
this.b9_1 = 14;
|
|
2241
|
-
this.
|
|
2241
|
+
this.z1t_1 = Job(get_job(this.w1t_1.mr()));
|
|
2242
2242
|
this.a9_1 = 1;
|
|
2243
2243
|
continue $sm;
|
|
2244
2244
|
case 1:
|
|
2245
2245
|
this.b9_1 = 4;
|
|
2246
2246
|
this.b9_1 = 3;
|
|
2247
2247
|
this.a9_1 = 2;
|
|
2248
|
-
suspendResult = this.
|
|
2248
|
+
suspendResult = this.u1t_1(new WriterScope(this.v1t_1, this.w1t_1.mr().ch(this.z1t_1)), this);
|
|
2249
2249
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2250
2250
|
return suspendResult;
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
2253
|
continue $sm;
|
|
2254
2254
|
case 2:
|
|
2255
|
-
this.
|
|
2255
|
+
this.z1t_1.wz();
|
|
2256
2256
|
var tmp_0;
|
|
2257
|
-
if (get_job(this.
|
|
2258
|
-
this.
|
|
2257
|
+
if (get_job(this.w1t_1.mr()).is()) {
|
|
2258
|
+
this.v1t_1.f1l(get_job(this.w1t_1.mr()).ls());
|
|
2259
2259
|
tmp_0 = Unit_instance;
|
|
2260
2260
|
}
|
|
2261
2261
|
|
|
@@ -2267,8 +2267,8 @@
|
|
|
2267
2267
|
var tmp_1 = this.d9_1;
|
|
2268
2268
|
if (tmp_1 instanceof Error) {
|
|
2269
2269
|
var cause = this.d9_1;
|
|
2270
|
-
cancel(this.
|
|
2271
|
-
this.
|
|
2270
|
+
cancel(this.z1t_1, 'Exception thrown while writing to channel', cause);
|
|
2271
|
+
this.v1t_1.f1l(cause);
|
|
2272
2272
|
this.b9_1 = 14;
|
|
2273
2273
|
this.a9_1 = 9;
|
|
2274
2274
|
continue $sm;
|
|
@@ -2278,20 +2278,20 @@
|
|
|
2278
2278
|
|
|
2279
2279
|
case 4:
|
|
2280
2280
|
this.b9_1 = 14;
|
|
2281
|
-
this.
|
|
2281
|
+
this.a1u_1 = this.d9_1;
|
|
2282
2282
|
this.a9_1 = 5;
|
|
2283
|
-
suspendResult = this.
|
|
2283
|
+
suspendResult = this.z1t_1.ss(this);
|
|
2284
2284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2285
2285
|
return suspendResult;
|
|
2286
2286
|
}
|
|
2287
2287
|
|
|
2288
2288
|
continue $sm;
|
|
2289
2289
|
case 5:
|
|
2290
|
-
this.
|
|
2290
|
+
this.w1t_1;
|
|
2291
2291
|
this.b9_1 = 7;
|
|
2292
|
-
this.
|
|
2292
|
+
this.c1u_1 = Companion_instance;
|
|
2293
2293
|
this.a9_1 = 6;
|
|
2294
|
-
suspendResult = this.
|
|
2294
|
+
suspendResult = this.v1t_1.e1l(this);
|
|
2295
2295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2296
2296
|
return suspendResult;
|
|
2297
2297
|
}
|
|
@@ -2299,8 +2299,8 @@
|
|
|
2299
2299
|
continue $sm;
|
|
2300
2300
|
case 6:
|
|
2301
2301
|
var tmp_2 = this;
|
|
2302
|
-
this.
|
|
2303
|
-
tmp_2.
|
|
2302
|
+
this.c1u_1;
|
|
2303
|
+
tmp_2.b1u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2304
2304
|
this.b9_1 = 14;
|
|
2305
2305
|
this.a9_1 = 8;
|
|
2306
2306
|
continue $sm;
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
if (tmp_3 instanceof Error) {
|
|
2311
2311
|
var e = this.d9_1;
|
|
2312
2312
|
var tmp_4 = this;
|
|
2313
|
-
tmp_4.
|
|
2313
|
+
tmp_4.b1u_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2314
2314
|
this.a9_1 = 8;
|
|
2315
2315
|
continue $sm;
|
|
2316
2316
|
} else {
|
|
@@ -2319,22 +2319,22 @@
|
|
|
2319
2319
|
|
|
2320
2320
|
case 8:
|
|
2321
2321
|
this.b9_1 = 14;
|
|
2322
|
-
throw this.
|
|
2322
|
+
throw this.a1u_1;
|
|
2323
2323
|
case 9:
|
|
2324
2324
|
this.b9_1 = 14;
|
|
2325
2325
|
this.a9_1 = 10;
|
|
2326
|
-
suspendResult = this.
|
|
2326
|
+
suspendResult = this.z1t_1.ss(this);
|
|
2327
2327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2328
2328
|
return suspendResult;
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
2331
|
continue $sm;
|
|
2332
2332
|
case 10:
|
|
2333
|
-
this.
|
|
2333
|
+
this.w1t_1;
|
|
2334
2334
|
this.b9_1 = 12;
|
|
2335
|
-
this.
|
|
2335
|
+
this.y1t_1 = Companion_instance;
|
|
2336
2336
|
this.a9_1 = 11;
|
|
2337
|
-
suspendResult = this.
|
|
2337
|
+
suspendResult = this.v1t_1.e1l(this);
|
|
2338
2338
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2339
2339
|
return suspendResult;
|
|
2340
2340
|
}
|
|
@@ -2342,8 +2342,8 @@
|
|
|
2342
2342
|
continue $sm;
|
|
2343
2343
|
case 11:
|
|
2344
2344
|
var tmp_5 = this;
|
|
2345
|
-
this.
|
|
2346
|
-
tmp_5.
|
|
2345
|
+
this.y1t_1;
|
|
2346
|
+
tmp_5.x1t_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2347
2347
|
this.b9_1 = 14;
|
|
2348
2348
|
this.a9_1 = 13;
|
|
2349
2349
|
continue $sm;
|
|
@@ -2353,7 +2353,7 @@
|
|
|
2353
2353
|
if (tmp_6 instanceof Error) {
|
|
2354
2354
|
var e_0 = this.d9_1;
|
|
2355
2355
|
var tmp_7 = this;
|
|
2356
|
-
tmp_7.
|
|
2356
|
+
tmp_7.x1t_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2357
2357
|
this.a9_1 = 13;
|
|
2358
2358
|
continue $sm;
|
|
2359
2359
|
} else {
|
|
@@ -2377,15 +2377,15 @@
|
|
|
2377
2377
|
}
|
|
2378
2378
|
while (true);
|
|
2379
2379
|
};
|
|
2380
|
-
protoOf(writer$slambda).
|
|
2381
|
-
var i = new writer$slambda(this.
|
|
2382
|
-
i.
|
|
2380
|
+
protoOf(writer$slambda).e1u = function ($this$launch, completion) {
|
|
2381
|
+
var i = new writer$slambda(this.u1t_1, this.v1t_1, completion);
|
|
2382
|
+
i.w1t_1 = $this$launch;
|
|
2383
2383
|
return i;
|
|
2384
2384
|
};
|
|
2385
2385
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2386
2386
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2387
2387
|
var l = function ($this$launch, $completion) {
|
|
2388
|
-
return i.
|
|
2388
|
+
return i.d1u($this$launch, $completion);
|
|
2389
2389
|
};
|
|
2390
2390
|
l.$arity = 1;
|
|
2391
2391
|
return l;
|
|
@@ -2393,8 +2393,8 @@
|
|
|
2393
2393
|
function writer$lambda($channel) {
|
|
2394
2394
|
return function (it) {
|
|
2395
2395
|
var tmp;
|
|
2396
|
-
if (!(it == null) && !$channel.
|
|
2397
|
-
$channel.
|
|
2396
|
+
if (!(it == null) && !$channel.y1k()) {
|
|
2397
|
+
$channel.f1l(it);
|
|
2398
2398
|
tmp = Unit_instance;
|
|
2399
2399
|
}
|
|
2400
2400
|
return Unit_instance;
|
|
@@ -2402,8 +2402,8 @@
|
|
|
2402
2402
|
}
|
|
2403
2403
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2404
2404
|
CoroutineImpl.call(this, resultContinuation);
|
|
2405
|
-
this.
|
|
2406
|
-
this.
|
|
2405
|
+
this.h1t_1 = _this__u8e3s4;
|
|
2406
|
+
this.i1t_1 = source;
|
|
2407
2407
|
}
|
|
2408
2408
|
protoOf($writePacketCOROUTINE$).i9 = function () {
|
|
2409
2409
|
var suspendResult = this.c9_1;
|
|
@@ -2416,14 +2416,14 @@
|
|
|
2416
2416
|
this.a9_1 = 1;
|
|
2417
2417
|
continue $sm;
|
|
2418
2418
|
case 1:
|
|
2419
|
-
if (!!this.
|
|
2419
|
+
if (!!this.i1t_1.bo()) {
|
|
2420
2420
|
this.a9_1 = 3;
|
|
2421
2421
|
continue $sm;
|
|
2422
2422
|
}
|
|
2423
2423
|
|
|
2424
|
-
this.
|
|
2424
|
+
this.h1t_1.x1k().op(this.i1t_1, get_remaining(this.i1t_1));
|
|
2425
2425
|
this.a9_1 = 2;
|
|
2426
|
-
suspendResult = flushIfNeeded(this.
|
|
2426
|
+
suspendResult = flushIfNeeded(this.h1t_1, this);
|
|
2427
2427
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2428
2428
|
return suspendResult;
|
|
2429
2429
|
}
|
|
@@ -2468,27 +2468,27 @@
|
|
|
2468
2468
|
return l;
|
|
2469
2469
|
}
|
|
2470
2470
|
function CloseToken(origin) {
|
|
2471
|
-
this.
|
|
2471
|
+
this.v1k_1 = origin;
|
|
2472
2472
|
}
|
|
2473
|
-
protoOf(CloseToken).
|
|
2474
|
-
var tmp0_subject = this.
|
|
2473
|
+
protoOf(CloseToken).f1u = function (wrap) {
|
|
2474
|
+
var tmp0_subject = this.v1k_1;
|
|
2475
2475
|
var tmp;
|
|
2476
2476
|
if (tmp0_subject == null) {
|
|
2477
2477
|
tmp = null;
|
|
2478
2478
|
} else {
|
|
2479
2479
|
if (isInterface(tmp0_subject, CopyableThrowable)) {
|
|
2480
|
-
tmp = this.
|
|
2480
|
+
tmp = this.v1k_1.f10();
|
|
2481
2481
|
} else {
|
|
2482
2482
|
if (tmp0_subject instanceof CancellationException) {
|
|
2483
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2483
|
+
tmp = CancellationException_init_$Create$(this.v1k_1.message, this.v1k_1);
|
|
2484
2484
|
} else {
|
|
2485
|
-
tmp = wrap(this.
|
|
2485
|
+
tmp = wrap(this.v1k_1);
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
2488
2488
|
}
|
|
2489
2489
|
return tmp;
|
|
2490
2490
|
};
|
|
2491
|
-
protoOf(CloseToken).
|
|
2491
|
+
protoOf(CloseToken).a1l = function (wrap, $super) {
|
|
2492
2492
|
var tmp;
|
|
2493
2493
|
if (wrap === VOID) {
|
|
2494
2494
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2496,10 +2496,10 @@
|
|
|
2496
2496
|
tmp = wrap;
|
|
2497
2497
|
}
|
|
2498
2498
|
wrap = tmp;
|
|
2499
|
-
return $super === VOID ? this.
|
|
2499
|
+
return $super === VOID ? this.f1u(wrap) : $super.f1u.call(this, wrap);
|
|
2500
2500
|
};
|
|
2501
|
-
protoOf(CloseToken).
|
|
2502
|
-
var tmp0_safe_receiver = this.
|
|
2501
|
+
protoOf(CloseToken).w1k = function (wrap) {
|
|
2502
|
+
var tmp0_safe_receiver = this.f1u(wrap);
|
|
2503
2503
|
var tmp;
|
|
2504
2504
|
if (tmp0_safe_receiver == null) {
|
|
2505
2505
|
tmp = null;
|
|
@@ -2518,17 +2518,17 @@
|
|
|
2518
2518
|
}
|
|
2519
2519
|
function transferFromDelegate($this) {
|
|
2520
2520
|
updateConsumed($this);
|
|
2521
|
-
var appended = $this.
|
|
2522
|
-
$this.
|
|
2521
|
+
var appended = $this.h1u_1.tp($this.g1u_1.u1k());
|
|
2522
|
+
$this.i1u_1 = add($this.i1u_1, appended);
|
|
2523
2523
|
}
|
|
2524
2524
|
function updateConsumed($this) {
|
|
2525
|
-
$this.
|
|
2526
|
-
$this.
|
|
2525
|
+
$this.j1u_1 = add($this.j1u_1, subtract($this.i1u_1, $this.h1u_1.l1()));
|
|
2526
|
+
$this.i1u_1 = $this.h1u_1.l1();
|
|
2527
2527
|
}
|
|
2528
2528
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2529
2529
|
CoroutineImpl.call(this, resultContinuation);
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2530
|
+
this.s1u_1 = _this__u8e3s4;
|
|
2531
|
+
this.t1u_1 = min;
|
|
2532
2532
|
}
|
|
2533
2533
|
protoOf($awaitContentCOROUTINE$_0).i9 = function () {
|
|
2534
2534
|
var suspendResult = this.c9_1;
|
|
@@ -2538,12 +2538,12 @@
|
|
|
2538
2538
|
switch (tmp) {
|
|
2539
2539
|
case 0:
|
|
2540
2540
|
this.b9_1 = 3;
|
|
2541
|
-
if (this.
|
|
2541
|
+
if (this.s1u_1.u1k().l1() >= fromInt(this.t1u_1)) {
|
|
2542
2542
|
return true;
|
|
2543
2543
|
}
|
|
2544
2544
|
|
|
2545
2545
|
this.a9_1 = 1;
|
|
2546
|
-
suspendResult = this.
|
|
2546
|
+
suspendResult = this.s1u_1.g1u_1.c1l(this.t1u_1, this);
|
|
2547
2547
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2548
2548
|
return suspendResult;
|
|
2549
2549
|
}
|
|
@@ -2551,7 +2551,7 @@
|
|
|
2551
2551
|
continue $sm;
|
|
2552
2552
|
case 1:
|
|
2553
2553
|
if (suspendResult) {
|
|
2554
|
-
transferFromDelegate(this.
|
|
2554
|
+
transferFromDelegate(this.s1u_1);
|
|
2555
2555
|
return true;
|
|
2556
2556
|
} else {
|
|
2557
2557
|
this.a9_1 = 2;
|
|
@@ -2575,34 +2575,34 @@
|
|
|
2575
2575
|
while (true);
|
|
2576
2576
|
};
|
|
2577
2577
|
function CountedByteReadChannel(delegate) {
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2578
|
+
this.g1u_1 = delegate;
|
|
2579
|
+
this.h1u_1 = new Buffer();
|
|
2580
|
+
this.i1u_1 = 0n;
|
|
2581
|
+
this.j1u_1 = 0n;
|
|
2582
2582
|
}
|
|
2583
|
-
protoOf(CountedByteReadChannel).
|
|
2583
|
+
protoOf(CountedByteReadChannel).u1u = function () {
|
|
2584
2584
|
updateConsumed(this);
|
|
2585
|
-
return this.
|
|
2585
|
+
return this.j1u_1;
|
|
2586
2586
|
};
|
|
2587
|
-
protoOf(CountedByteReadChannel).
|
|
2588
|
-
return this.
|
|
2587
|
+
protoOf(CountedByteReadChannel).z1k = function () {
|
|
2588
|
+
return this.g1u_1.z1k();
|
|
2589
2589
|
};
|
|
2590
|
-
protoOf(CountedByteReadChannel).
|
|
2591
|
-
return this.
|
|
2590
|
+
protoOf(CountedByteReadChannel).b1l = function () {
|
|
2591
|
+
return this.h1u_1.bo() && this.g1u_1.b1l();
|
|
2592
2592
|
};
|
|
2593
|
-
protoOf(CountedByteReadChannel).
|
|
2593
|
+
protoOf(CountedByteReadChannel).u1k = function () {
|
|
2594
2594
|
transferFromDelegate(this);
|
|
2595
|
-
return this.
|
|
2595
|
+
return this.h1u_1;
|
|
2596
2596
|
};
|
|
2597
|
-
protoOf(CountedByteReadChannel).
|
|
2597
|
+
protoOf(CountedByteReadChannel).c1l = function (min, $completion) {
|
|
2598
2598
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2599
2599
|
tmp.c9_1 = Unit_instance;
|
|
2600
2600
|
tmp.d9_1 = null;
|
|
2601
2601
|
return tmp.i9();
|
|
2602
2602
|
};
|
|
2603
|
-
protoOf(CountedByteReadChannel).
|
|
2604
|
-
this.
|
|
2605
|
-
this.
|
|
2603
|
+
protoOf(CountedByteReadChannel).f1l = function (cause) {
|
|
2604
|
+
this.g1u_1.f1l(cause);
|
|
2605
|
+
this.h1u_1.l4();
|
|
2606
2606
|
};
|
|
2607
2607
|
function counted(_this__u8e3s4) {
|
|
2608
2608
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2639,21 +2639,21 @@
|
|
|
2639
2639
|
}
|
|
2640
2640
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2641
2641
|
var tmp;
|
|
2642
|
-
if ($this === Companion_getInstance_1().
|
|
2642
|
+
if ($this === Companion_getInstance_1().j1q_1) {
|
|
2643
2643
|
tmp = 'CR';
|
|
2644
|
-
} else if ($this === Companion_getInstance_1().
|
|
2644
|
+
} else if ($this === Companion_getInstance_1().k1q_1) {
|
|
2645
2645
|
tmp = 'LF';
|
|
2646
|
-
} else if ($this === Companion_getInstance_1().
|
|
2646
|
+
} else if ($this === Companion_getInstance_1().l1q_1) {
|
|
2647
2647
|
tmp = 'CRLF';
|
|
2648
2648
|
} else {
|
|
2649
2649
|
// Inline function 'kotlin.collections.filter' call
|
|
2650
|
-
var tmp0 = Companion_getInstance_1().
|
|
2650
|
+
var tmp0 = Companion_getInstance_1().n1q_1;
|
|
2651
2651
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2652
2652
|
var destination = ArrayList_init_$Create$();
|
|
2653
2653
|
var _iterator__ex2g4s = tmp0.t();
|
|
2654
2654
|
while (_iterator__ex2g4s.u()) {
|
|
2655
2655
|
var element = _iterator__ex2g4s.v();
|
|
2656
|
-
var it = element.
|
|
2656
|
+
var it = element.v1u_1;
|
|
2657
2657
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2658
2658
|
destination.j1(element);
|
|
2659
2659
|
}
|
|
@@ -2664,11 +2664,11 @@
|
|
|
2664
2664
|
}
|
|
2665
2665
|
function Companion_1() {
|
|
2666
2666
|
Companion_instance_2 = this;
|
|
2667
|
-
this.
|
|
2668
|
-
this.
|
|
2669
|
-
this.
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2667
|
+
this.j1q_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2668
|
+
this.k1q_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2669
|
+
this.l1q_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2670
|
+
this.m1q_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2671
|
+
this.n1q_1 = listOf([new LineEndingMode(this.j1q_1), new LineEndingMode(this.k1q_1), new LineEndingMode(this.l1q_1)]);
|
|
2672
2672
|
}
|
|
2673
2673
|
var Companion_instance_2;
|
|
2674
2674
|
function Companion_getInstance_1() {
|
|
@@ -2682,67 +2682,67 @@
|
|
|
2682
2682
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2683
2683
|
if (!(other instanceof LineEndingMode))
|
|
2684
2684
|
return false;
|
|
2685
|
-
if (!($this === other.
|
|
2685
|
+
if (!($this === other.v1u_1))
|
|
2686
2686
|
return false;
|
|
2687
2687
|
return true;
|
|
2688
2688
|
}
|
|
2689
2689
|
function LineEndingMode(mode) {
|
|
2690
2690
|
Companion_getInstance_1();
|
|
2691
|
-
this.
|
|
2691
|
+
this.v1u_1 = mode;
|
|
2692
2692
|
}
|
|
2693
2693
|
protoOf(LineEndingMode).toString = function () {
|
|
2694
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2694
|
+
return LineEndingMode__toString_impl_j4h76r(this.v1u_1);
|
|
2695
2695
|
};
|
|
2696
2696
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2697
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2697
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.v1u_1);
|
|
2698
2698
|
};
|
|
2699
2699
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2700
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2700
|
+
return LineEndingMode__equals_impl_qyr4nk(this.v1u_1, other);
|
|
2701
2701
|
};
|
|
2702
2702
|
function SourceByteReadChannel(source) {
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2703
|
+
this.w1u_1 = source;
|
|
2704
|
+
this.x1u_1 = null;
|
|
2705
2705
|
}
|
|
2706
|
-
protoOf(SourceByteReadChannel).
|
|
2707
|
-
var tmp0_safe_receiver = this.
|
|
2708
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2706
|
+
protoOf(SourceByteReadChannel).z1k = function () {
|
|
2707
|
+
var tmp0_safe_receiver = this.x1u_1;
|
|
2708
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l();
|
|
2709
2709
|
};
|
|
2710
|
-
protoOf(SourceByteReadChannel).
|
|
2711
|
-
return this.
|
|
2710
|
+
protoOf(SourceByteReadChannel).b1l = function () {
|
|
2711
|
+
return this.w1u_1.bo();
|
|
2712
2712
|
};
|
|
2713
|
-
protoOf(SourceByteReadChannel).
|
|
2714
|
-
var tmp0_safe_receiver = this.
|
|
2713
|
+
protoOf(SourceByteReadChannel).u1k = function () {
|
|
2714
|
+
var tmp0_safe_receiver = this.z1k();
|
|
2715
2715
|
if (tmp0_safe_receiver == null)
|
|
2716
2716
|
null;
|
|
2717
2717
|
else {
|
|
2718
2718
|
// Inline function 'kotlin.let' call
|
|
2719
2719
|
throw tmp0_safe_receiver;
|
|
2720
2720
|
}
|
|
2721
|
-
return this.
|
|
2721
|
+
return this.w1u_1.ao();
|
|
2722
2722
|
};
|
|
2723
|
-
protoOf(SourceByteReadChannel).
|
|
2724
|
-
var tmp0_safe_receiver = this.
|
|
2723
|
+
protoOf(SourceByteReadChannel).c1l = function (min, $completion) {
|
|
2724
|
+
var tmp0_safe_receiver = this.z1k();
|
|
2725
2725
|
if (tmp0_safe_receiver == null)
|
|
2726
2726
|
null;
|
|
2727
2727
|
else {
|
|
2728
2728
|
// Inline function 'kotlin.let' call
|
|
2729
2729
|
throw tmp0_safe_receiver;
|
|
2730
2730
|
}
|
|
2731
|
-
return this.
|
|
2731
|
+
return this.w1u_1.do(fromInt(min));
|
|
2732
2732
|
};
|
|
2733
|
-
protoOf(SourceByteReadChannel).
|
|
2734
|
-
if (!(this.
|
|
2733
|
+
protoOf(SourceByteReadChannel).f1l = function (cause) {
|
|
2734
|
+
if (!(this.x1u_1 == null))
|
|
2735
2735
|
return Unit_instance;
|
|
2736
|
-
this.
|
|
2736
|
+
this.w1u_1.l4();
|
|
2737
2737
|
var tmp = this;
|
|
2738
2738
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2739
|
-
tmp.
|
|
2739
|
+
tmp.x1u_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2740
2740
|
};
|
|
2741
2741
|
function decode(_this__u8e3s4, input, max) {
|
|
2742
2742
|
max = max === VOID ? 2147483647 : max;
|
|
2743
2743
|
var tmp0 = fromInt(max);
|
|
2744
2744
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2745
|
-
var b = input.
|
|
2745
|
+
var b = input.ao().l1();
|
|
2746
2746
|
var tmp$ret$0 = tmp0 <= b ? tmp0 : b;
|
|
2747
2747
|
// Inline function 'kotlin.text.buildString' call
|
|
2748
2748
|
var capacity = convertToInt(tmp$ret$0);
|
|
@@ -2779,7 +2779,7 @@
|
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
function canRead(_this__u8e3s4) {
|
|
2782
|
-
return !_this__u8e3s4.
|
|
2782
|
+
return !_this__u8e3s4.bo();
|
|
2783
2783
|
}
|
|
2784
2784
|
function readBytes(_this__u8e3s4, count) {
|
|
2785
2785
|
count = count === VOID ? convertToInt(_this__u8e3s4.l1()) : count;
|
|
@@ -2788,32 +2788,32 @@
|
|
|
2788
2788
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
2789
2789
|
offset = offset === VOID ? 0 : offset;
|
|
2790
2790
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2791
|
-
_this__u8e3s4.
|
|
2791
|
+
_this__u8e3s4.kp(buffer, offset, offset + length | 0);
|
|
2792
2792
|
}
|
|
2793
2793
|
function BytePacketBuilder() {
|
|
2794
2794
|
return new Buffer();
|
|
2795
2795
|
}
|
|
2796
2796
|
function get_size(_this__u8e3s4) {
|
|
2797
|
-
return convertToInt(_this__u8e3s4.
|
|
2797
|
+
return convertToInt(_this__u8e3s4.ao().l1());
|
|
2798
2798
|
}
|
|
2799
2799
|
var ByteReadPacketEmpty;
|
|
2800
2800
|
function get_remaining(_this__u8e3s4) {
|
|
2801
2801
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2802
|
-
return _this__u8e3s4.
|
|
2802
|
+
return _this__u8e3s4.ao().l1();
|
|
2803
2803
|
}
|
|
2804
2804
|
function takeWhile(_this__u8e3s4, block) {
|
|
2805
2805
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2806
|
-
while (!_this__u8e3s4.
|
|
2806
|
+
while (!_this__u8e3s4.bo() && block(_this__u8e3s4.ao())) {
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
function discard_0(_this__u8e3s4, count) {
|
|
2810
2810
|
count = count === VOID ? 9223372036854775807n : count;
|
|
2811
2811
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
2812
|
-
_this__u8e3s4.
|
|
2812
|
+
_this__u8e3s4.do(count);
|
|
2813
2813
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2814
2814
|
var b = get_remaining(_this__u8e3s4);
|
|
2815
2815
|
var countToDiscard = count <= b ? count : b;
|
|
2816
|
-
_this__u8e3s4.
|
|
2816
|
+
_this__u8e3s4.ao().yo(countToDiscard);
|
|
2817
2817
|
return countToDiscard;
|
|
2818
2818
|
}
|
|
2819
2819
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -2826,37 +2826,37 @@
|
|
|
2826
2826
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
2827
2827
|
offset = offset === VOID ? 0 : offset;
|
|
2828
2828
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
2829
|
-
var result = _this__u8e3s4.
|
|
2829
|
+
var result = _this__u8e3s4.zo(buffer, offset, offset + length | 0);
|
|
2830
2830
|
return result === -1 ? 0 : result;
|
|
2831
2831
|
}
|
|
2832
2832
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2833
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2833
|
+
charset = charset === VOID ? Charsets_getInstance().y1u_1 : charset;
|
|
2834
2834
|
max = max === VOID ? 2147483647 : max;
|
|
2835
|
-
if (charset.equals(Charsets_getInstance().
|
|
2835
|
+
if (charset.equals(Charsets_getInstance().y1u_1)) {
|
|
2836
2836
|
if (max === 2147483647)
|
|
2837
2837
|
return readString_0(_this__u8e3s4);
|
|
2838
|
-
var tmp0 = _this__u8e3s4.
|
|
2838
|
+
var tmp0 = _this__u8e3s4.ao().l1();
|
|
2839
2839
|
// Inline function 'kotlin.math.min' call
|
|
2840
2840
|
var b = fromInt(max);
|
|
2841
2841
|
var count = tmp0 <= b ? tmp0 : b;
|
|
2842
2842
|
return readString_1(_this__u8e3s4, count);
|
|
2843
2843
|
}
|
|
2844
|
-
return decode(charset.
|
|
2844
|
+
return decode(charset.b1v(), _this__u8e3s4, max);
|
|
2845
2845
|
}
|
|
2846
2846
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2847
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2848
|
-
if (charset.equals(Charsets_getInstance().
|
|
2847
|
+
charset = charset === VOID ? Charsets_getInstance().y1u_1 : charset;
|
|
2848
|
+
if (charset.equals(Charsets_getInstance().y1u_1))
|
|
2849
2849
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2850
|
-
return encodeToByteArray_0(charset.
|
|
2850
|
+
return encodeToByteArray_0(charset.c1v(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2851
2851
|
}
|
|
2852
2852
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2853
2853
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2854
2854
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2855
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2856
|
-
if (charset === Charsets_getInstance().
|
|
2855
|
+
charset = charset === VOID ? Charsets_getInstance().y1u_1 : charset;
|
|
2856
|
+
if (charset === Charsets_getInstance().y1u_1) {
|
|
2857
2857
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2858
2858
|
}
|
|
2859
|
-
encodeToImpl(charset.
|
|
2859
|
+
encodeToImpl(charset.c1v(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2860
2860
|
}
|
|
2861
2861
|
function get_ByteArrayPool() {
|
|
2862
2862
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2866,7 +2866,7 @@
|
|
|
2866
2866
|
function ByteArrayPool$1() {
|
|
2867
2867
|
DefaultPool.call(this, 128);
|
|
2868
2868
|
}
|
|
2869
|
-
protoOf(ByteArrayPool$1).
|
|
2869
|
+
protoOf(ByteArrayPool$1).g1v = function () {
|
|
2870
2870
|
return new Int8Array(4096);
|
|
2871
2871
|
};
|
|
2872
2872
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2880,21 +2880,21 @@
|
|
|
2880
2880
|
}
|
|
2881
2881
|
function NoPoolImpl() {
|
|
2882
2882
|
}
|
|
2883
|
-
protoOf(NoPoolImpl).
|
|
2883
|
+
protoOf(NoPoolImpl).o1v = function (instance) {
|
|
2884
2884
|
return Unit_instance;
|
|
2885
2885
|
};
|
|
2886
|
-
protoOf(NoPoolImpl).
|
|
2886
|
+
protoOf(NoPoolImpl).ku = function () {
|
|
2887
2887
|
return Unit_instance;
|
|
2888
2888
|
};
|
|
2889
2889
|
function Companion_2() {
|
|
2890
2890
|
}
|
|
2891
|
-
protoOf(Companion_2).
|
|
2891
|
+
protoOf(Companion_2).p1v = function (name) {
|
|
2892
2892
|
switch (name) {
|
|
2893
2893
|
case 'UTF-8':
|
|
2894
2894
|
case 'utf-8':
|
|
2895
2895
|
case 'UTF8':
|
|
2896
2896
|
case 'utf8':
|
|
2897
|
-
return Charsets_getInstance().
|
|
2897
|
+
return Charsets_getInstance().y1u_1;
|
|
2898
2898
|
}
|
|
2899
2899
|
var tmp;
|
|
2900
2900
|
var tmp_0;
|
|
@@ -2925,11 +2925,11 @@
|
|
|
2925
2925
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2926
2926
|
}
|
|
2927
2927
|
if (tmp) {
|
|
2928
|
-
return Charsets_getInstance().
|
|
2928
|
+
return Charsets_getInstance().z1u_1;
|
|
2929
2929
|
}
|
|
2930
2930
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2931
2931
|
};
|
|
2932
|
-
protoOf(Companion_2).
|
|
2932
|
+
protoOf(Companion_2).q1v = function (charset) {
|
|
2933
2933
|
var tmp;
|
|
2934
2934
|
switch (charset) {
|
|
2935
2935
|
case 'UTF-8':
|
|
@@ -2984,7 +2984,7 @@
|
|
|
2984
2984
|
return Companion_instance_3;
|
|
2985
2985
|
}
|
|
2986
2986
|
function Charset(_name) {
|
|
2987
|
-
this.
|
|
2987
|
+
this.a1v_1 = _name;
|
|
2988
2988
|
}
|
|
2989
2989
|
protoOf(Charset).equals = function (other) {
|
|
2990
2990
|
if (this === other)
|
|
@@ -2993,18 +2993,18 @@
|
|
|
2993
2993
|
return false;
|
|
2994
2994
|
if (!(other instanceof Charset))
|
|
2995
2995
|
THROW_CCE();
|
|
2996
|
-
return this.
|
|
2996
|
+
return this.a1v_1 === other.a1v_1;
|
|
2997
2997
|
};
|
|
2998
2998
|
protoOf(Charset).hashCode = function () {
|
|
2999
|
-
return getStringHashCode(this.
|
|
2999
|
+
return getStringHashCode(this.a1v_1);
|
|
3000
3000
|
};
|
|
3001
3001
|
protoOf(Charset).toString = function () {
|
|
3002
|
-
return this.
|
|
3002
|
+
return this.a1v_1;
|
|
3003
3003
|
};
|
|
3004
3004
|
function Charsets() {
|
|
3005
3005
|
Charsets_instance = this;
|
|
3006
|
-
this.
|
|
3007
|
-
this.
|
|
3006
|
+
this.y1u_1 = new CharsetImpl('UTF-8');
|
|
3007
|
+
this.z1u_1 = new CharsetImpl('ISO-8859-1');
|
|
3008
3008
|
}
|
|
3009
3009
|
var Charsets_instance;
|
|
3010
3010
|
function Charsets_getInstance() {
|
|
@@ -3013,27 +3013,27 @@
|
|
|
3013
3013
|
return Charsets_instance;
|
|
3014
3014
|
}
|
|
3015
3015
|
function CharsetDecoder(_charset) {
|
|
3016
|
-
this.
|
|
3016
|
+
this.r1v_1 = _charset;
|
|
3017
3017
|
}
|
|
3018
3018
|
function MalformedInputException(message) {
|
|
3019
3019
|
IOException_init_$Init$_0(message, this);
|
|
3020
3020
|
captureStack(this, MalformedInputException);
|
|
3021
3021
|
}
|
|
3022
3022
|
function get_name(_this__u8e3s4) {
|
|
3023
|
-
return _this__u8e3s4.
|
|
3023
|
+
return _this__u8e3s4.a1v_1;
|
|
3024
3024
|
}
|
|
3025
3025
|
function isSupported(_this__u8e3s4, name) {
|
|
3026
|
-
return Companion_instance_3.
|
|
3026
|
+
return Companion_instance_3.q1v(name);
|
|
3027
3027
|
}
|
|
3028
3028
|
function forName(_this__u8e3s4, name) {
|
|
3029
|
-
return Companion_instance_3.
|
|
3029
|
+
return Companion_instance_3.p1v(name);
|
|
3030
3030
|
}
|
|
3031
3031
|
function CharsetEncoder(_charset) {
|
|
3032
|
-
this.
|
|
3032
|
+
this.s1v_1 = _charset;
|
|
3033
3033
|
}
|
|
3034
3034
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3035
3035
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
3036
|
-
var tmp0 = input.
|
|
3036
|
+
var tmp0 = input.ao().l1();
|
|
3037
3037
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3038
3038
|
var b = fromInt(max);
|
|
3039
3039
|
var count = tmp0 <= b ? tmp0 : b;
|
|
@@ -3041,7 +3041,7 @@
|
|
|
3041
3041
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3042
3042
|
var tmp_0;
|
|
3043
3043
|
try {
|
|
3044
|
-
tmp_0 = decoder.
|
|
3044
|
+
tmp_0 = decoder.t1v(array);
|
|
3045
3045
|
} catch ($p) {
|
|
3046
3046
|
var tmp_1;
|
|
3047
3047
|
if ($p instanceof Error) {
|
|
@@ -3063,11 +3063,11 @@
|
|
|
3063
3063
|
var message = 'Failed requirement.';
|
|
3064
3064
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3065
3065
|
}
|
|
3066
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3066
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().z1u_1)) {
|
|
3067
3067
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3068
3068
|
}
|
|
3069
3069
|
// Inline function 'kotlin.require' call
|
|
3070
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3070
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().y1u_1)) {
|
|
3071
3071
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3072
3072
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3073
3073
|
}
|
|
@@ -3077,7 +3077,7 @@
|
|
|
3077
3077
|
var result = encoder.encode(tmp$ret$5);
|
|
3078
3078
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3079
3079
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3080
|
-
dst.
|
|
3080
|
+
dst.np(result);
|
|
3081
3081
|
return result.length;
|
|
3082
3082
|
}
|
|
3083
3083
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3088,17 +3088,17 @@
|
|
|
3088
3088
|
function CharsetImpl(name) {
|
|
3089
3089
|
Charset.call(this, name);
|
|
3090
3090
|
}
|
|
3091
|
-
protoOf(CharsetImpl).
|
|
3091
|
+
protoOf(CharsetImpl).c1v = function () {
|
|
3092
3092
|
return new CharsetEncoderImpl(this);
|
|
3093
3093
|
};
|
|
3094
|
-
protoOf(CharsetImpl).
|
|
3094
|
+
protoOf(CharsetImpl).b1v = function () {
|
|
3095
3095
|
return new CharsetDecoderImpl(this);
|
|
3096
3096
|
};
|
|
3097
3097
|
function get_charset(_this__u8e3s4) {
|
|
3098
|
-
return _this__u8e3s4.
|
|
3098
|
+
return _this__u8e3s4.r1v_1;
|
|
3099
3099
|
}
|
|
3100
3100
|
function get_charset_0(_this__u8e3s4) {
|
|
3101
|
-
return _this__u8e3s4.
|
|
3101
|
+
return _this__u8e3s4.s1v_1;
|
|
3102
3102
|
}
|
|
3103
3103
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3104
3104
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3117,39 +3117,39 @@
|
|
|
3117
3117
|
}
|
|
3118
3118
|
function CharsetEncoderImpl(charset) {
|
|
3119
3119
|
CharsetEncoder.call(this, charset);
|
|
3120
|
-
this.
|
|
3120
|
+
this.w1v_1 = charset;
|
|
3121
3121
|
}
|
|
3122
3122
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3123
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3123
|
+
return 'CharsetEncoderImpl(charset=' + this.w1v_1.toString() + ')';
|
|
3124
3124
|
};
|
|
3125
3125
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3126
|
-
return this.
|
|
3126
|
+
return this.w1v_1.hashCode();
|
|
3127
3127
|
};
|
|
3128
3128
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3129
3129
|
if (this === other)
|
|
3130
3130
|
return true;
|
|
3131
3131
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3132
3132
|
return false;
|
|
3133
|
-
if (!this.
|
|
3133
|
+
if (!this.w1v_1.equals(other.w1v_1))
|
|
3134
3134
|
return false;
|
|
3135
3135
|
return true;
|
|
3136
3136
|
};
|
|
3137
3137
|
function CharsetDecoderImpl(charset) {
|
|
3138
3138
|
CharsetDecoder.call(this, charset);
|
|
3139
|
-
this.
|
|
3139
|
+
this.y1v_1 = charset;
|
|
3140
3140
|
}
|
|
3141
3141
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3142
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3142
|
+
return 'CharsetDecoderImpl(charset=' + this.y1v_1.toString() + ')';
|
|
3143
3143
|
};
|
|
3144
3144
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3145
|
-
return this.
|
|
3145
|
+
return this.y1v_1.hashCode();
|
|
3146
3146
|
};
|
|
3147
3147
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3148
3148
|
if (this === other)
|
|
3149
3149
|
return true;
|
|
3150
3150
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3151
3151
|
return false;
|
|
3152
|
-
if (!this.
|
|
3152
|
+
if (!this.y1v_1.equals(other.y1v_1))
|
|
3153
3153
|
return false;
|
|
3154
3154
|
return true;
|
|
3155
3155
|
};
|
|
@@ -3183,10 +3183,10 @@
|
|
|
3183
3183
|
return this_0;
|
|
3184
3184
|
}
|
|
3185
3185
|
function toKtor$1($this_toKtor) {
|
|
3186
|
-
this.
|
|
3186
|
+
this.z1v_1 = $this_toKtor;
|
|
3187
3187
|
}
|
|
3188
|
-
protoOf(toKtor$1).
|
|
3189
|
-
return this.
|
|
3188
|
+
protoOf(toKtor$1).t1v = function (buffer) {
|
|
3189
|
+
return this.z1v_1.decode(buffer);
|
|
3190
3190
|
};
|
|
3191
3191
|
function get_ENCODING_ALIASES() {
|
|
3192
3192
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3199,7 +3199,7 @@
|
|
|
3199
3199
|
}
|
|
3200
3200
|
var REPLACEMENT;
|
|
3201
3201
|
function TextDecoderFallback(encoding, fatal) {
|
|
3202
|
-
this.
|
|
3202
|
+
this.a1w_1 = fatal;
|
|
3203
3203
|
// Inline function 'kotlin.text.trim' call
|
|
3204
3204
|
// Inline function 'kotlin.text.lowercase' call
|
|
3205
3205
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3210,7 +3210,7 @@
|
|
|
3210
3210
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
|
-
protoOf(TextDecoderFallback).
|
|
3213
|
+
protoOf(TextDecoderFallback).t1v = function (buffer) {
|
|
3214
3214
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3215
3215
|
var builder = new Buffer();
|
|
3216
3216
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3226,7 +3226,7 @@
|
|
|
3226
3226
|
var point = toCodePoint(byte);
|
|
3227
3227
|
if (point < 0) {
|
|
3228
3228
|
// Inline function 'kotlin.check' call
|
|
3229
|
-
if (!!this.
|
|
3229
|
+
if (!!this.a1w_1) {
|
|
3230
3230
|
var message = 'Invalid character: ' + point;
|
|
3231
3231
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3232
3232
|
}
|
|
@@ -3234,9 +3234,9 @@
|
|
|
3234
3234
|
continue $l$loop;
|
|
3235
3235
|
}
|
|
3236
3236
|
if (point > 255) {
|
|
3237
|
-
builder.
|
|
3237
|
+
builder.up(toByte(point >> 8));
|
|
3238
3238
|
}
|
|
3239
|
-
builder.
|
|
3239
|
+
builder.up(toByte(point & 255));
|
|
3240
3240
|
}
|
|
3241
3241
|
while (inductionVariable < last);
|
|
3242
3242
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3266,7 +3266,7 @@
|
|
|
3266
3266
|
return false;
|
|
3267
3267
|
}
|
|
3268
3268
|
function ioDispatcher() {
|
|
3269
|
-
return Dispatchers_getInstance().
|
|
3269
|
+
return Dispatchers_getInstance().v13_1;
|
|
3270
3270
|
}
|
|
3271
3271
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3272
3272
|
if (fromIndex >= toIndex)
|
|
@@ -3282,7 +3282,7 @@
|
|
|
3282
3282
|
if (character > 255) {
|
|
3283
3283
|
failedToMapError(character);
|
|
3284
3284
|
}
|
|
3285
|
-
dst.
|
|
3285
|
+
dst.up(toByte(character));
|
|
3286
3286
|
}
|
|
3287
3287
|
while (inductionVariable < toIndex);
|
|
3288
3288
|
return toIndex - fromIndex | 0;
|
|
@@ -3304,64 +3304,64 @@
|
|
|
3304
3304
|
}
|
|
3305
3305
|
}
|
|
3306
3306
|
function DefaultPool(capacity) {
|
|
3307
|
-
this.
|
|
3307
|
+
this.h1v_1 = capacity;
|
|
3308
3308
|
var tmp = this;
|
|
3309
3309
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3310
|
-
var size = this.
|
|
3311
|
-
tmp.
|
|
3312
|
-
this.
|
|
3310
|
+
var size = this.h1v_1;
|
|
3311
|
+
tmp.i1v_1 = Array(size);
|
|
3312
|
+
this.j1v_1 = 0;
|
|
3313
3313
|
}
|
|
3314
|
-
protoOf(DefaultPool).
|
|
3314
|
+
protoOf(DefaultPool).k1v = function (instance) {
|
|
3315
3315
|
};
|
|
3316
|
-
protoOf(DefaultPool).
|
|
3316
|
+
protoOf(DefaultPool).l1v = function (instance) {
|
|
3317
3317
|
return instance;
|
|
3318
3318
|
};
|
|
3319
|
-
protoOf(DefaultPool).
|
|
3319
|
+
protoOf(DefaultPool).m1v = function (instance) {
|
|
3320
3320
|
};
|
|
3321
|
-
protoOf(DefaultPool).
|
|
3322
|
-
if (this.
|
|
3323
|
-
return this.
|
|
3324
|
-
this.
|
|
3325
|
-
var idx = this.
|
|
3326
|
-
var tmp = this.
|
|
3321
|
+
protoOf(DefaultPool).n1v = function () {
|
|
3322
|
+
if (this.j1v_1 === 0)
|
|
3323
|
+
return this.g1v();
|
|
3324
|
+
this.j1v_1 = this.j1v_1 - 1 | 0;
|
|
3325
|
+
var idx = this.j1v_1;
|
|
3326
|
+
var tmp = this.i1v_1[idx];
|
|
3327
3327
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3328
|
-
this.
|
|
3329
|
-
return this.
|
|
3328
|
+
this.i1v_1[idx] = null;
|
|
3329
|
+
return this.l1v(instance);
|
|
3330
3330
|
};
|
|
3331
|
-
protoOf(DefaultPool).
|
|
3332
|
-
this.
|
|
3333
|
-
if (this.
|
|
3334
|
-
this.
|
|
3331
|
+
protoOf(DefaultPool).o1v = function (instance) {
|
|
3332
|
+
this.m1v(instance);
|
|
3333
|
+
if (this.j1v_1 === this.h1v_1) {
|
|
3334
|
+
this.k1v(instance);
|
|
3335
3335
|
} else {
|
|
3336
|
-
var _unary__edvuaz = this.
|
|
3337
|
-
this.
|
|
3338
|
-
this.
|
|
3336
|
+
var _unary__edvuaz = this.j1v_1;
|
|
3337
|
+
this.j1v_1 = _unary__edvuaz + 1 | 0;
|
|
3338
|
+
this.i1v_1[_unary__edvuaz] = instance;
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
|
-
protoOf(DefaultPool).
|
|
3341
|
+
protoOf(DefaultPool).ku = function () {
|
|
3342
3342
|
var inductionVariable = 0;
|
|
3343
|
-
var last = this.
|
|
3343
|
+
var last = this.j1v_1;
|
|
3344
3344
|
if (inductionVariable < last)
|
|
3345
3345
|
do {
|
|
3346
3346
|
var i = inductionVariable;
|
|
3347
3347
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3348
|
-
var tmp = this.
|
|
3348
|
+
var tmp = this.i1v_1[i];
|
|
3349
3349
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3350
|
-
this.
|
|
3351
|
-
this.
|
|
3350
|
+
this.i1v_1[i] = null;
|
|
3351
|
+
this.k1v(instance);
|
|
3352
3352
|
}
|
|
3353
3353
|
while (inductionVariable < last);
|
|
3354
|
-
this.
|
|
3354
|
+
this.j1v_1 = 0;
|
|
3355
3355
|
};
|
|
3356
3356
|
//region block: post-declaration
|
|
3357
|
-
protoOf(Read).
|
|
3358
|
-
protoOf(Read).
|
|
3359
|
-
protoOf(Write).
|
|
3360
|
-
protoOf(Write).
|
|
3361
|
-
protoOf(ByteChannel).
|
|
3362
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3363
|
-
protoOf(CountedByteReadChannel).
|
|
3364
|
-
protoOf(SourceByteReadChannel).
|
|
3357
|
+
protoOf(Read).x1i = resume;
|
|
3358
|
+
protoOf(Read).y1i = resume_0;
|
|
3359
|
+
protoOf(Write).x1i = resume;
|
|
3360
|
+
protoOf(Write).y1i = resume_0;
|
|
3361
|
+
protoOf(ByteChannel).d1l = awaitContent$default;
|
|
3362
|
+
protoOf(ByteReadChannel$Companion$Empty$1).d1l = awaitContent$default;
|
|
3363
|
+
protoOf(CountedByteReadChannel).d1l = awaitContent$default;
|
|
3364
|
+
protoOf(SourceByteReadChannel).d1l = awaitContent$default;
|
|
3365
3365
|
protoOf(DefaultPool).l4 = close;
|
|
3366
3366
|
protoOf(NoPoolImpl).l4 = close;
|
|
3367
3367
|
//endregion
|