@doordeck/doordeck-headless-sdk 0.51.0 → 0.52.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/Kotlin-DateTime-library-kotlinx-datetime.js +1323 -1323
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
- package/kotlin/doordeck-sdk.d.ts +2 -3
- package/kotlin/doordeck-sdk.js +12511 -12705
- package/kotlin/kotlin-kotlin-stdlib.js +1845 -2257
- package/kotlin/kotlinx-atomicfu.js +19 -19
- package/kotlin/kotlinx-coroutines-core.js +1923 -1923
- package/kotlin/kotlinx-io-kotlinx-io-core.js +454 -454
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1937 -1937
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1541 -1541
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2846 -2847
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +403 -400
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +210 -210
- package/kotlin/ktor-ktor-http.js +814 -814
- package/kotlin/ktor-ktor-io.js +667 -667
- package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +271 -271
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +127 -127
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +55 -55
- package/kotlin/ktor-ktor-utils.js +632 -632
- package/package.json +1 -1
- package/kotlin/Stately-stately-concurrency.js +0 -30
- package/kotlin/Stately-stately-concurrent-collections.js +0 -302
- package/kotlin/Stately-stately-strict.js +0 -10
- package/kotlin/projects-core-koin-core.js +0 -1147
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_kotlinx_io_core, kotlin_org_jetbrains_kotlinx_atomicfu) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
5
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
6
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
7
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
8
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
9
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
10
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
12
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var equals = kotlin_kotlin.$_$.
|
|
14
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
15
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
16
|
-
var Result = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
4
|
+
var Companion_instance = kotlin_kotlin.$_$.b5;
|
|
5
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
6
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x2;
|
|
7
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
8
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ja;
|
|
9
|
+
var THROW_CCE = kotlin_kotlin.$_$.ue;
|
|
10
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
11
|
+
var toString = kotlin_kotlin.$_$.vf;
|
|
12
|
+
var hashCode = kotlin_kotlin.$_$.ha;
|
|
13
|
+
var equals = kotlin_kotlin.$_$.ba;
|
|
14
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
15
|
+
var createFailure = kotlin_kotlin.$_$.kf;
|
|
16
|
+
var Result = kotlin_kotlin.$_$.se;
|
|
17
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ma;
|
|
18
18
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
21
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
22
|
-
var toLong = kotlin_kotlin.$_$.
|
|
23
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
19
|
+
var isInterface = kotlin_kotlin.$_$.xa;
|
|
20
|
+
var CoroutineImpl = kotlin_kotlin.$_$.l9;
|
|
21
|
+
var numberToLong = kotlin_kotlin.$_$.gb;
|
|
22
|
+
var toLong = kotlin_kotlin.$_$.kb;
|
|
23
|
+
var intercepted = kotlin_kotlin.$_$.y8;
|
|
24
24
|
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.n;
|
|
25
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
25
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.sf;
|
|
26
26
|
var returnIfSuspended = kotlin_kotlin.$_$.m;
|
|
27
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
28
|
-
var Long = kotlin_kotlin.$_$.
|
|
29
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
27
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v8;
|
|
28
|
+
var Long = kotlin_kotlin.$_$.oe;
|
|
29
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ka;
|
|
30
30
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
|
|
31
31
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
32
32
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
33
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
34
|
-
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.
|
|
35
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
33
|
+
var IllegalStateException = kotlin_kotlin.$_$.ne;
|
|
34
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.x1;
|
|
35
|
+
var captureStack = kotlin_kotlin.$_$.t9;
|
|
36
36
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
37
|
-
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.
|
|
37
|
+
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.o4;
|
|
38
38
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
39
39
|
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
40
40
|
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
41
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
42
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
41
|
+
var Continuation = kotlin_kotlin.$_$.f9;
|
|
42
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.la;
|
|
43
43
|
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
44
44
|
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
45
45
|
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
46
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
46
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.na;
|
|
47
47
|
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
48
48
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.g;
|
|
49
49
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
50
|
-
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
50
|
+
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
51
|
+
var CancellationException = kotlin_kotlin.$_$.u8;
|
|
52
52
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
53
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
54
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
53
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
54
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.y1;
|
|
55
|
+
var charSequenceLength = kotlin_kotlin.$_$.x9;
|
|
56
56
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
|
|
57
57
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
|
|
58
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
59
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
58
|
+
var encodeToByteArray = kotlin_kotlin.$_$.hc;
|
|
59
|
+
var toString_0 = kotlin_kotlin.$_$.mb;
|
|
60
60
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.m;
|
|
61
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
62
|
-
var replace = kotlin_kotlin.$_$.
|
|
63
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
64
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
61
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p2;
|
|
62
|
+
var replace = kotlin_kotlin.$_$.zc;
|
|
63
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.u1;
|
|
64
|
+
var getStringHashCode = kotlin_kotlin.$_$.ga;
|
|
65
65
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
66
66
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
67
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
68
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
69
|
-
var trim = kotlin_kotlin.$_$.
|
|
70
|
-
var toByte = kotlin_kotlin.$_$.
|
|
71
|
-
var decodeToString = kotlin_kotlin.$_$.
|
|
72
|
-
var setOf = kotlin_kotlin.$_$.
|
|
73
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
74
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
75
|
-
var fillArrayVal = kotlin_kotlin.$_$.
|
|
67
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.y9;
|
|
68
|
+
var isCharSequence = kotlin_kotlin.$_$.ta;
|
|
69
|
+
var trim = kotlin_kotlin.$_$.zd;
|
|
70
|
+
var toByte = kotlin_kotlin.$_$.jb;
|
|
71
|
+
var decodeToString = kotlin_kotlin.$_$.fc;
|
|
72
|
+
var setOf = kotlin_kotlin.$_$.b8;
|
|
73
|
+
var charSequenceGet = kotlin_kotlin.$_$.w9;
|
|
74
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.v2;
|
|
75
|
+
var fillArrayVal = kotlin_kotlin.$_$.da;
|
|
76
76
|
//endregion
|
|
77
77
|
//region block: pre-declaration
|
|
78
78
|
initMetadataForCompanion(Companion);
|
|
79
79
|
initMetadataForObject(Empty, 'Empty');
|
|
80
80
|
initMetadataForClass(Closed, 'Closed');
|
|
81
81
|
function resume() {
|
|
82
|
-
return this.
|
|
82
|
+
return this.e1e().o9(Companion_getInstance().c1e_1);
|
|
83
83
|
}
|
|
84
84
|
function resume_0(throwable) {
|
|
85
|
-
var tmp = this.
|
|
85
|
+
var tmp = this.e1e();
|
|
86
86
|
var tmp_0;
|
|
87
87
|
if (throwable == null) {
|
|
88
88
|
tmp_0 = null;
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
tmp_0 = new Result(tmp$ret$2);
|
|
95
95
|
}
|
|
96
96
|
var tmp1_elvis_lhs = tmp_0;
|
|
97
|
-
return tmp.
|
|
97
|
+
return tmp.o9(tmp1_elvis_lhs == null ? Companion_getInstance().c1e_1 : tmp1_elvis_lhs.fk_1);
|
|
98
98
|
}
|
|
99
99
|
initMetadataForInterface(Task, 'Task');
|
|
100
100
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
|
|
105
105
|
function awaitContent$default(min, $completion, $super) {
|
|
106
106
|
min = min === VOID ? 1 : min;
|
|
107
|
-
return $super === VOID ? this.
|
|
107
|
+
return $super === VOID ? this.m1g(min, $completion) : $super.m1g.call(this, min, $completion);
|
|
108
108
|
}
|
|
109
109
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
110
110
|
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
|
|
@@ -141,10 +141,10 @@
|
|
|
141
141
|
//endregion
|
|
142
142
|
function Companion() {
|
|
143
143
|
Companion_instance_0 = this;
|
|
144
|
-
this.
|
|
144
|
+
this.b1e_1 = new Closed(null);
|
|
145
145
|
var tmp = this;
|
|
146
146
|
// Inline function 'kotlin.Companion.success' call
|
|
147
|
-
tmp.
|
|
147
|
+
tmp.c1e_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
148
148
|
}
|
|
149
149
|
var Companion_instance_0;
|
|
150
150
|
function Companion_getInstance() {
|
|
@@ -173,13 +173,13 @@
|
|
|
173
173
|
return Empty_instance;
|
|
174
174
|
}
|
|
175
175
|
function Closed(cause) {
|
|
176
|
-
this.
|
|
176
|
+
this.d1e_1 = cause;
|
|
177
177
|
}
|
|
178
178
|
protoOf(Closed).toString = function () {
|
|
179
|
-
return 'Closed(cause=' + toString(this.
|
|
179
|
+
return 'Closed(cause=' + toString(this.d1e_1) + ')';
|
|
180
180
|
};
|
|
181
181
|
protoOf(Closed).hashCode = function () {
|
|
182
|
-
return this.
|
|
182
|
+
return this.d1e_1 == null ? 0 : hashCode(this.d1e_1);
|
|
183
183
|
};
|
|
184
184
|
protoOf(Closed).equals = function (other) {
|
|
185
185
|
if (this === other)
|
|
@@ -187,103 +187,103 @@
|
|
|
187
187
|
if (!(other instanceof Closed))
|
|
188
188
|
return false;
|
|
189
189
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
190
|
-
if (!equals(this.
|
|
190
|
+
if (!equals(this.d1e_1, tmp0_other_with_cast.d1e_1))
|
|
191
191
|
return false;
|
|
192
192
|
return true;
|
|
193
193
|
};
|
|
194
194
|
function Task() {
|
|
195
195
|
}
|
|
196
196
|
function Read(continuation) {
|
|
197
|
-
this.
|
|
197
|
+
this.i1e_1 = continuation;
|
|
198
198
|
}
|
|
199
|
-
protoOf(Read).
|
|
200
|
-
return this.
|
|
199
|
+
protoOf(Read).e1e = function () {
|
|
200
|
+
return this.i1e_1;
|
|
201
201
|
};
|
|
202
|
-
protoOf(Read).
|
|
202
|
+
protoOf(Read).f1e = function () {
|
|
203
203
|
return 'read';
|
|
204
204
|
};
|
|
205
205
|
function Write(continuation) {
|
|
206
|
-
this.
|
|
206
|
+
this.j1e_1 = continuation;
|
|
207
207
|
}
|
|
208
|
-
protoOf(Write).
|
|
209
|
-
return this.
|
|
208
|
+
protoOf(Write).e1e = function () {
|
|
209
|
+
return this.j1e_1;
|
|
210
210
|
};
|
|
211
|
-
protoOf(Write).
|
|
211
|
+
protoOf(Write).f1e = function () {
|
|
212
212
|
return 'write';
|
|
213
213
|
};
|
|
214
214
|
function moveFlushToReadBuffer($this) {
|
|
215
215
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
216
|
-
$this.
|
|
216
|
+
$this.n1e_1;
|
|
217
217
|
// Inline function 'io.ktor.utils.io.ByteChannel.moveFlushToReadBuffer.<anonymous>' call
|
|
218
|
-
$this.
|
|
219
|
-
$this.
|
|
218
|
+
$this.l1e_1.f1c($this.p1e_1);
|
|
219
|
+
$this.m1e_1 = 0;
|
|
220
220
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
221
|
-
var current = $this.
|
|
221
|
+
var current = $this.o1e_1.kotlinx$atomicfu$value;
|
|
222
222
|
var tmp;
|
|
223
223
|
if (current instanceof Write) {
|
|
224
|
-
tmp = $this.
|
|
224
|
+
tmp = $this.o1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
225
225
|
} else {
|
|
226
226
|
tmp = false;
|
|
227
227
|
}
|
|
228
228
|
if (tmp) {
|
|
229
|
-
current.
|
|
229
|
+
current.g1e();
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
function closeSlot($this, cause) {
|
|
233
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
234
|
-
var continuation = $this.
|
|
233
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().b1e_1;
|
|
234
|
+
var continuation = $this.o1e_1.atomicfu$getAndSet(closeContinuation);
|
|
235
235
|
if (!isInterface(continuation, Task))
|
|
236
236
|
return Unit_instance;
|
|
237
|
-
continuation.
|
|
237
|
+
continuation.h1e(cause);
|
|
238
238
|
}
|
|
239
239
|
function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
|
|
240
240
|
CoroutineImpl.call(this, resultContinuation);
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
241
|
+
this.a1f_1 = _this__u8e3s4;
|
|
242
|
+
this.b1f_1 = min;
|
|
243
243
|
}
|
|
244
|
-
protoOf($awaitContentCOROUTINE$0).
|
|
245
|
-
var suspendResult = this.
|
|
244
|
+
protoOf($awaitContentCOROUTINE$0).l9 = function () {
|
|
245
|
+
var suspendResult = this.f9_1;
|
|
246
246
|
$sm: do
|
|
247
247
|
try {
|
|
248
|
-
var tmp = this.
|
|
248
|
+
var tmp = this.d9_1;
|
|
249
249
|
switch (tmp) {
|
|
250
250
|
case 0:
|
|
251
|
-
this.
|
|
252
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
253
|
-
if (numberToLong(this.
|
|
251
|
+
this.e9_1 = 4;
|
|
252
|
+
rethrowCloseCauseIfNeeded_1(this.a1f_1);
|
|
253
|
+
if (numberToLong(this.a1f_1.m1e_1).z2(this.a1f_1.p1e_1.s()).e1(toLong(this.b1f_1)) >= 0)
|
|
254
254
|
return true;
|
|
255
255
|
var tmp_0 = this;
|
|
256
|
-
tmp_0.
|
|
257
|
-
this.
|
|
258
|
-
this.
|
|
256
|
+
tmp_0.c1f_1 = this.a1f_1;
|
|
257
|
+
this.d1f_1 = this.c1f_1;
|
|
258
|
+
this.d9_1 = 1;
|
|
259
259
|
continue $sm;
|
|
260
260
|
case 1:
|
|
261
|
-
if (!(numberToLong(this.
|
|
262
|
-
this.
|
|
261
|
+
if (!(numberToLong(this.a1f_1.m1e_1).z2(this.a1f_1.p1e_1.s()).e1(toLong(this.b1f_1)) < 0 && this.a1f_1.r1e_1.kotlinx$atomicfu$value == null)) {
|
|
262
|
+
this.d9_1 = 3;
|
|
263
263
|
continue $sm;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
this.
|
|
266
|
+
this.d9_1 = 2;
|
|
267
267
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
268
|
-
cancellable.
|
|
269
|
-
var tmp0 = this.
|
|
268
|
+
cancellable.yr();
|
|
269
|
+
var tmp0 = this.d1f_1;
|
|
270
270
|
var tmp1 = new Read(cancellable);
|
|
271
271
|
l$ret$1: do {
|
|
272
|
-
var previous = tmp0.
|
|
272
|
+
var previous = tmp0.o1e_1.kotlinx$atomicfu$value;
|
|
273
273
|
if (!(previous instanceof Closed)) {
|
|
274
|
-
if (!tmp0.
|
|
275
|
-
tmp1.
|
|
274
|
+
if (!tmp0.o1e_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
275
|
+
tmp1.g1e();
|
|
276
276
|
break l$ret$1;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
if (previous instanceof Read) {
|
|
280
|
-
previous.
|
|
280
|
+
previous.h1e(new ConcurrentIOException(tmp1.f1e()));
|
|
281
281
|
} else {
|
|
282
282
|
if (isInterface(previous, Task)) {
|
|
283
|
-
previous.
|
|
283
|
+
previous.g1e();
|
|
284
284
|
} else {
|
|
285
285
|
if (previous instanceof Closed) {
|
|
286
|
-
tmp1.
|
|
286
|
+
tmp1.h1e(previous.d1e_1);
|
|
287
287
|
break l$ret$1;
|
|
288
288
|
} else {
|
|
289
289
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -292,97 +292,97 @@
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
if (!(numberToLong(this.
|
|
296
|
-
var current = tmp0.
|
|
295
|
+
if (!(numberToLong(this.a1f_1.m1e_1).z2(this.a1f_1.p1e_1.s()).e1(toLong(this.b1f_1)) < 0 && this.a1f_1.r1e_1.kotlinx$atomicfu$value == null)) {
|
|
296
|
+
var current = tmp0.o1e_1.kotlinx$atomicfu$value;
|
|
297
297
|
var tmp_1;
|
|
298
298
|
if (current instanceof Read) {
|
|
299
|
-
tmp_1 = tmp0.
|
|
299
|
+
tmp_1 = tmp0.o1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
300
300
|
} else {
|
|
301
301
|
tmp_1 = false;
|
|
302
302
|
}
|
|
303
303
|
if (tmp_1) {
|
|
304
|
-
current.
|
|
304
|
+
current.g1e();
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
while (false);
|
|
309
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
309
|
+
suspendResult = returnIfSuspended(cancellable.gs(), this);
|
|
310
310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
311
311
|
return suspendResult;
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
continue $sm;
|
|
315
315
|
case 2:
|
|
316
|
-
this.
|
|
316
|
+
this.d9_1 = 1;
|
|
317
317
|
continue $sm;
|
|
318
318
|
case 3:
|
|
319
|
-
if (this.
|
|
320
|
-
moveFlushToReadBuffer(this.
|
|
319
|
+
if (this.a1f_1.p1e_1.s().e1(new Long(1048576, 0)) < 0) {
|
|
320
|
+
moveFlushToReadBuffer(this.a1f_1);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
return this.
|
|
323
|
+
return this.a1f_1.p1e_1.s().e1(toLong(this.b1f_1)) >= 0;
|
|
324
324
|
case 4:
|
|
325
|
-
throw this.
|
|
325
|
+
throw this.g9_1;
|
|
326
326
|
}
|
|
327
327
|
} catch ($p) {
|
|
328
328
|
var e = $p;
|
|
329
|
-
if (this.
|
|
329
|
+
if (this.e9_1 === 4) {
|
|
330
330
|
throw e;
|
|
331
331
|
} else {
|
|
332
|
-
this.
|
|
333
|
-
this.
|
|
332
|
+
this.d9_1 = this.e9_1;
|
|
333
|
+
this.g9_1 = e;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
while (true);
|
|
337
337
|
};
|
|
338
338
|
function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
339
339
|
CoroutineImpl.call(this, resultContinuation);
|
|
340
|
-
this.
|
|
340
|
+
this.m1f_1 = _this__u8e3s4;
|
|
341
341
|
}
|
|
342
|
-
protoOf($flushCOROUTINE$1).
|
|
343
|
-
var suspendResult = this.
|
|
342
|
+
protoOf($flushCOROUTINE$1).l9 = function () {
|
|
343
|
+
var suspendResult = this.f9_1;
|
|
344
344
|
$sm: do
|
|
345
345
|
try {
|
|
346
|
-
var tmp = this.
|
|
346
|
+
var tmp = this.d9_1;
|
|
347
347
|
switch (tmp) {
|
|
348
348
|
case 0:
|
|
349
|
-
this.
|
|
350
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
351
|
-
this.
|
|
352
|
-
if (this.
|
|
349
|
+
this.e9_1 = 4;
|
|
350
|
+
rethrowCloseCauseIfNeeded_1(this.m1f_1);
|
|
351
|
+
this.m1f_1.p1f();
|
|
352
|
+
if (this.m1f_1.m1e_1 < 1048576)
|
|
353
353
|
return Unit_instance;
|
|
354
354
|
var tmp_0 = this;
|
|
355
|
-
tmp_0.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
355
|
+
tmp_0.n1f_1 = this.m1f_1;
|
|
356
|
+
this.o1f_1 = this.n1f_1;
|
|
357
|
+
this.d9_1 = 1;
|
|
358
358
|
continue $sm;
|
|
359
359
|
case 1:
|
|
360
|
-
if (!(this.
|
|
361
|
-
this.
|
|
360
|
+
if (!(this.m1f_1.m1e_1 >= 1048576 && this.m1f_1.r1e_1.kotlinx$atomicfu$value == null)) {
|
|
361
|
+
this.d9_1 = 3;
|
|
362
362
|
continue $sm;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
this.
|
|
365
|
+
this.d9_1 = 2;
|
|
366
366
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
367
|
-
cancellable.
|
|
368
|
-
var tmp0 = this.
|
|
367
|
+
cancellable.yr();
|
|
368
|
+
var tmp0 = this.o1f_1;
|
|
369
369
|
var tmp1 = new Write(cancellable);
|
|
370
370
|
l$ret$1: do {
|
|
371
|
-
var previous = tmp0.
|
|
371
|
+
var previous = tmp0.o1e_1.kotlinx$atomicfu$value;
|
|
372
372
|
if (!(previous instanceof Closed)) {
|
|
373
|
-
if (!tmp0.
|
|
374
|
-
tmp1.
|
|
373
|
+
if (!tmp0.o1e_1.atomicfu$compareAndSet(previous, tmp1)) {
|
|
374
|
+
tmp1.g1e();
|
|
375
375
|
break l$ret$1;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
if (previous instanceof Write) {
|
|
379
|
-
previous.
|
|
379
|
+
previous.h1e(new ConcurrentIOException(tmp1.f1e()));
|
|
380
380
|
} else {
|
|
381
381
|
if (isInterface(previous, Task)) {
|
|
382
|
-
previous.
|
|
382
|
+
previous.g1e();
|
|
383
383
|
} else {
|
|
384
384
|
if (previous instanceof Closed) {
|
|
385
|
-
tmp1.
|
|
385
|
+
tmp1.h1e(previous.d1e_1);
|
|
386
386
|
break l$ret$1;
|
|
387
387
|
} else {
|
|
388
388
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -391,68 +391,68 @@
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
if (!(this.
|
|
395
|
-
var current = tmp0.
|
|
394
|
+
if (!(this.m1f_1.m1e_1 >= 1048576 && this.m1f_1.r1e_1.kotlinx$atomicfu$value == null)) {
|
|
395
|
+
var current = tmp0.o1e_1.kotlinx$atomicfu$value;
|
|
396
396
|
var tmp_1;
|
|
397
397
|
if (current instanceof Write) {
|
|
398
|
-
tmp_1 = tmp0.
|
|
398
|
+
tmp_1 = tmp0.o1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
399
399
|
} else {
|
|
400
400
|
tmp_1 = false;
|
|
401
401
|
}
|
|
402
402
|
if (tmp_1) {
|
|
403
|
-
current.
|
|
403
|
+
current.g1e();
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
while (false);
|
|
408
|
-
suspendResult = returnIfSuspended(cancellable.
|
|
408
|
+
suspendResult = returnIfSuspended(cancellable.gs(), this);
|
|
409
409
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
410
410
|
return suspendResult;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
continue $sm;
|
|
414
414
|
case 2:
|
|
415
|
-
this.
|
|
415
|
+
this.d9_1 = 1;
|
|
416
416
|
continue $sm;
|
|
417
417
|
case 3:
|
|
418
418
|
return Unit_instance;
|
|
419
419
|
case 4:
|
|
420
|
-
throw this.
|
|
420
|
+
throw this.g9_1;
|
|
421
421
|
}
|
|
422
422
|
} catch ($p) {
|
|
423
423
|
var e = $p;
|
|
424
|
-
if (this.
|
|
424
|
+
if (this.e9_1 === 4) {
|
|
425
425
|
throw e;
|
|
426
426
|
} else {
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
427
|
+
this.d9_1 = this.e9_1;
|
|
428
|
+
this.g9_1 = e;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
while (true);
|
|
432
432
|
};
|
|
433
433
|
function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
|
|
434
434
|
CoroutineImpl.call(this, resultContinuation);
|
|
435
|
-
this.
|
|
435
|
+
this.y1f_1 = _this__u8e3s4;
|
|
436
436
|
}
|
|
437
|
-
protoOf($flushAndCloseCOROUTINE$2).
|
|
438
|
-
var suspendResult = this.
|
|
437
|
+
protoOf($flushAndCloseCOROUTINE$2).l9 = function () {
|
|
438
|
+
var suspendResult = this.f9_1;
|
|
439
439
|
$sm: do
|
|
440
440
|
try {
|
|
441
|
-
var tmp = this.
|
|
441
|
+
var tmp = this.d9_1;
|
|
442
442
|
switch (tmp) {
|
|
443
443
|
case 0:
|
|
444
|
-
this.
|
|
444
|
+
this.e9_1 = 4;
|
|
445
445
|
var tmp_0 = this;
|
|
446
|
-
tmp_0.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
446
|
+
tmp_0.z1f_1 = this.y1f_1;
|
|
447
|
+
this.a1g_1 = this.z1f_1;
|
|
448
|
+
this.e9_1 = 2;
|
|
449
449
|
var tmp_1 = this;
|
|
450
|
-
tmp_1.
|
|
450
|
+
tmp_1.c1g_1 = Companion_instance;
|
|
451
451
|
var tmp_2 = this;
|
|
452
|
-
tmp_2.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
455
|
-
suspendResult = this.
|
|
452
|
+
tmp_2.d1g_1 = this.a1g_1;
|
|
453
|
+
this.e1g_1 = this.d1g_1;
|
|
454
|
+
this.d9_1 = 1;
|
|
455
|
+
suspendResult = this.e1g_1.f1g(this);
|
|
456
456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
457
457
|
return suspendResult;
|
|
458
458
|
}
|
|
@@ -460,136 +460,136 @@
|
|
|
460
460
|
continue $sm;
|
|
461
461
|
case 1:
|
|
462
462
|
var tmp_3 = this;
|
|
463
|
-
this.
|
|
464
|
-
tmp_3.
|
|
465
|
-
this.
|
|
466
|
-
this.
|
|
463
|
+
this.c1g_1;
|
|
464
|
+
tmp_3.b1g_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
465
|
+
this.e9_1 = 4;
|
|
466
|
+
this.d9_1 = 3;
|
|
467
467
|
continue $sm;
|
|
468
468
|
case 2:
|
|
469
|
-
this.
|
|
470
|
-
var tmp_4 = this.
|
|
469
|
+
this.e9_1 = 4;
|
|
470
|
+
var tmp_4 = this.g9_1;
|
|
471
471
|
if (tmp_4 instanceof Error) {
|
|
472
|
-
var e = this.
|
|
472
|
+
var e = this.g9_1;
|
|
473
473
|
var tmp_5 = this;
|
|
474
|
-
tmp_5.
|
|
475
|
-
this.
|
|
474
|
+
tmp_5.b1g_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
475
|
+
this.d9_1 = 3;
|
|
476
476
|
continue $sm;
|
|
477
477
|
} else {
|
|
478
|
-
throw this.
|
|
478
|
+
throw this.g9_1;
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
case 3:
|
|
482
|
-
this.
|
|
483
|
-
if (!this.
|
|
482
|
+
this.e9_1 = 4;
|
|
483
|
+
if (!this.y1f_1.r1e_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
484
484
|
return Unit_instance;
|
|
485
|
-
closeSlot(this.
|
|
485
|
+
closeSlot(this.y1f_1, null);
|
|
486
486
|
return Unit_instance;
|
|
487
487
|
case 4:
|
|
488
|
-
throw this.
|
|
488
|
+
throw this.g9_1;
|
|
489
489
|
}
|
|
490
490
|
} catch ($p) {
|
|
491
491
|
var e_0 = $p;
|
|
492
|
-
if (this.
|
|
492
|
+
if (this.e9_1 === 4) {
|
|
493
493
|
throw e_0;
|
|
494
494
|
} else {
|
|
495
|
-
this.
|
|
496
|
-
this.
|
|
495
|
+
this.d9_1 = this.e9_1;
|
|
496
|
+
this.g9_1 = e_0;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
while (true);
|
|
500
500
|
};
|
|
501
501
|
function ByteChannel(autoFlush) {
|
|
502
502
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
505
|
-
this.
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
}
|
|
512
|
-
protoOf(ByteChannel).
|
|
513
|
-
var tmp0_safe_receiver = this.
|
|
503
|
+
this.k1e_1 = autoFlush;
|
|
504
|
+
this.l1e_1 = new Buffer();
|
|
505
|
+
this.m1e_1 = 0;
|
|
506
|
+
this.n1e_1 = new Object();
|
|
507
|
+
this.o1e_1 = atomic$ref$1(Empty_instance);
|
|
508
|
+
this.p1e_1 = new Buffer();
|
|
509
|
+
this.q1e_1 = new Buffer();
|
|
510
|
+
this.r1e_1 = atomic$ref$1(null);
|
|
511
|
+
}
|
|
512
|
+
protoOf(ByteChannel).g1g = function () {
|
|
513
|
+
var tmp0_safe_receiver = this.h1g();
|
|
514
514
|
if (tmp0_safe_receiver == null)
|
|
515
515
|
null;
|
|
516
516
|
else {
|
|
517
517
|
// Inline function 'kotlin.let' call
|
|
518
518
|
throw tmp0_safe_receiver;
|
|
519
519
|
}
|
|
520
|
-
if (this.
|
|
520
|
+
if (this.p1e_1.d1b()) {
|
|
521
521
|
moveFlushToReadBuffer(this);
|
|
522
522
|
}
|
|
523
|
-
return this.
|
|
523
|
+
return this.p1e_1;
|
|
524
524
|
};
|
|
525
|
-
protoOf(ByteChannel).
|
|
526
|
-
var tmp0_safe_receiver = this.
|
|
525
|
+
protoOf(ByteChannel).i1g = function () {
|
|
526
|
+
var tmp0_safe_receiver = this.h1g();
|
|
527
527
|
if (tmp0_safe_receiver == null)
|
|
528
528
|
null;
|
|
529
529
|
else {
|
|
530
530
|
// Inline function 'kotlin.let' call
|
|
531
531
|
throw tmp0_safe_receiver;
|
|
532
532
|
}
|
|
533
|
-
if (this.
|
|
533
|
+
if (this.j1g()) {
|
|
534
534
|
throw IOException_init_$Create$('Channel is closed for write');
|
|
535
535
|
}
|
|
536
|
-
return this.
|
|
536
|
+
return this.q1e_1;
|
|
537
537
|
};
|
|
538
|
-
protoOf(ByteChannel).
|
|
539
|
-
var tmp0_safe_receiver = this.
|
|
540
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
538
|
+
protoOf(ByteChannel).h1g = function () {
|
|
539
|
+
var tmp0_safe_receiver = this.r1e_1.kotlinx$atomicfu$value;
|
|
540
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9();
|
|
541
541
|
};
|
|
542
|
-
protoOf(ByteChannel).
|
|
543
|
-
return !(this.
|
|
542
|
+
protoOf(ByteChannel).j1g = function () {
|
|
543
|
+
return !(this.r1e_1.kotlinx$atomicfu$value == null);
|
|
544
544
|
};
|
|
545
|
-
protoOf(ByteChannel).
|
|
546
|
-
return !(this.
|
|
545
|
+
protoOf(ByteChannel).l1g = function () {
|
|
546
|
+
return !(this.h1g() == null) || (this.j1g() && this.m1e_1 === 0 && this.p1e_1.d1b());
|
|
547
547
|
};
|
|
548
|
-
protoOf(ByteChannel).
|
|
548
|
+
protoOf(ByteChannel).m1g = function (min, $completion) {
|
|
549
549
|
var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
|
|
550
|
-
tmp.
|
|
551
|
-
tmp.
|
|
552
|
-
return tmp.
|
|
550
|
+
tmp.f9_1 = Unit_instance;
|
|
551
|
+
tmp.g9_1 = null;
|
|
552
|
+
return tmp.l9();
|
|
553
553
|
};
|
|
554
|
-
protoOf(ByteChannel).
|
|
554
|
+
protoOf(ByteChannel).f1g = function ($completion) {
|
|
555
555
|
var tmp = new $flushCOROUTINE$1(this, $completion);
|
|
556
|
-
tmp.
|
|
557
|
-
tmp.
|
|
558
|
-
return tmp.
|
|
556
|
+
tmp.f9_1 = Unit_instance;
|
|
557
|
+
tmp.g9_1 = null;
|
|
558
|
+
return tmp.l9();
|
|
559
559
|
};
|
|
560
|
-
protoOf(ByteChannel).
|
|
561
|
-
if (this.
|
|
560
|
+
protoOf(ByteChannel).p1f = function () {
|
|
561
|
+
if (this.q1e_1.d1b())
|
|
562
562
|
return Unit_instance;
|
|
563
563
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
564
|
-
this.
|
|
564
|
+
this.n1e_1;
|
|
565
565
|
// Inline function 'io.ktor.utils.io.ByteChannel.flushWriteBuffer.<anonymous>' call
|
|
566
|
-
var count = this.
|
|
567
|
-
this.
|
|
568
|
-
this.
|
|
566
|
+
var count = this.q1e_1.s().j1();
|
|
567
|
+
this.l1e_1.t1c(this.q1e_1);
|
|
568
|
+
this.m1e_1 = this.m1e_1 + count | 0;
|
|
569
569
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
570
|
-
var current = this.
|
|
570
|
+
var current = this.o1e_1.kotlinx$atomicfu$value;
|
|
571
571
|
var tmp;
|
|
572
572
|
if (current instanceof Read) {
|
|
573
|
-
tmp = this.
|
|
573
|
+
tmp = this.o1e_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
574
574
|
} else {
|
|
575
575
|
tmp = false;
|
|
576
576
|
}
|
|
577
577
|
if (tmp) {
|
|
578
|
-
current.
|
|
578
|
+
current.g1e();
|
|
579
579
|
}
|
|
580
580
|
};
|
|
581
|
-
protoOf(ByteChannel).
|
|
581
|
+
protoOf(ByteChannel).o1g = function ($completion) {
|
|
582
582
|
var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
|
|
583
|
-
tmp.
|
|
584
|
-
tmp.
|
|
585
|
-
return tmp.
|
|
583
|
+
tmp.f9_1 = Unit_instance;
|
|
584
|
+
tmp.g9_1 = null;
|
|
585
|
+
return tmp.l9();
|
|
586
586
|
};
|
|
587
|
-
protoOf(ByteChannel).
|
|
588
|
-
if (!(this.
|
|
587
|
+
protoOf(ByteChannel).p1g = function (cause) {
|
|
588
|
+
if (!(this.r1e_1.kotlinx$atomicfu$value == null))
|
|
589
589
|
return Unit_instance;
|
|
590
590
|
var closedToken = new CloseToken(cause);
|
|
591
|
-
this.
|
|
592
|
-
var actualCause = closedToken.
|
|
591
|
+
this.r1e_1.atomicfu$compareAndSet(null, closedToken);
|
|
592
|
+
var actualCause = closedToken.u9();
|
|
593
593
|
closeSlot(this, actualCause);
|
|
594
594
|
};
|
|
595
595
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
// Inline function 'kotlin.also' call
|
|
606
606
|
var this_0 = new Buffer();
|
|
607
607
|
// Inline function 'io.ktor.utils.io.ByteReadChannel.<anonymous>' call
|
|
608
|
-
this_0.
|
|
608
|
+
this_0.l1c(content, offset, offset + length | 0);
|
|
609
609
|
var source = this_0;
|
|
610
610
|
return ByteReadChannel_0(source);
|
|
611
611
|
}
|
|
@@ -613,27 +613,27 @@
|
|
|
613
613
|
return new SourceByteReadChannel(source);
|
|
614
614
|
}
|
|
615
615
|
function ByteReadChannel$Companion$Empty$1() {
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
616
|
+
this.q1g_1 = null;
|
|
617
|
+
this.r1g_1 = new Buffer();
|
|
618
618
|
}
|
|
619
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
620
|
-
return this.
|
|
619
|
+
protoOf(ByteReadChannel$Companion$Empty$1).h1g = function () {
|
|
620
|
+
return this.q1g_1;
|
|
621
621
|
};
|
|
622
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
622
|
+
protoOf(ByteReadChannel$Companion$Empty$1).l1g = function () {
|
|
623
623
|
return true;
|
|
624
624
|
};
|
|
625
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
626
|
-
return this.
|
|
625
|
+
protoOf(ByteReadChannel$Companion$Empty$1).g1g = function () {
|
|
626
|
+
return this.r1g_1;
|
|
627
627
|
};
|
|
628
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
628
|
+
protoOf(ByteReadChannel$Companion$Empty$1).m1g = function (min, $completion) {
|
|
629
629
|
return false;
|
|
630
630
|
};
|
|
631
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
631
|
+
protoOf(ByteReadChannel$Companion$Empty$1).p1g = function (cause) {
|
|
632
632
|
};
|
|
633
633
|
function Companion_0() {
|
|
634
634
|
Companion_instance_1 = this;
|
|
635
635
|
var tmp = this;
|
|
636
|
-
tmp.
|
|
636
|
+
tmp.s1g_1 = new ByteReadChannel$Companion$Empty$1();
|
|
637
637
|
}
|
|
638
638
|
var Companion_instance_1;
|
|
639
639
|
function Companion_getInstance_0() {
|
|
@@ -644,45 +644,45 @@
|
|
|
644
644
|
function ByteReadChannel_1() {
|
|
645
645
|
}
|
|
646
646
|
function cancel_0(_this__u8e3s4) {
|
|
647
|
-
_this__u8e3s4.
|
|
647
|
+
_this__u8e3s4.p1g(IOException_init_$Create$('Channel was cancelled'));
|
|
648
648
|
}
|
|
649
649
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
650
650
|
var tmp = new $readRemainingCOROUTINE$3(_this__u8e3s4, $completion);
|
|
651
|
-
tmp.
|
|
652
|
-
tmp.
|
|
653
|
-
return tmp.
|
|
651
|
+
tmp.f9_1 = Unit_instance;
|
|
652
|
+
tmp.g9_1 = null;
|
|
653
|
+
return tmp.l9();
|
|
654
654
|
}
|
|
655
655
|
function get_availableForRead(_this__u8e3s4) {
|
|
656
|
-
return _this__u8e3s4.
|
|
656
|
+
return _this__u8e3s4.g1g().c1b().s().j1();
|
|
657
657
|
}
|
|
658
658
|
function readPacket(_this__u8e3s4, packet, $completion) {
|
|
659
659
|
var tmp = new $readPacketCOROUTINE$4(_this__u8e3s4, packet, $completion);
|
|
660
|
-
tmp.
|
|
661
|
-
tmp.
|
|
662
|
-
return tmp.
|
|
660
|
+
tmp.f9_1 = Unit_instance;
|
|
661
|
+
tmp.g9_1 = null;
|
|
662
|
+
return tmp.l9();
|
|
663
663
|
}
|
|
664
664
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
665
665
|
offset = offset === VOID ? 0 : offset;
|
|
666
666
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
667
667
|
var tmp = new $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, $completion);
|
|
668
|
-
tmp.
|
|
669
|
-
tmp.
|
|
670
|
-
return tmp.
|
|
668
|
+
tmp.f9_1 = Unit_instance;
|
|
669
|
+
tmp.g9_1 = null;
|
|
670
|
+
return tmp.l9();
|
|
671
671
|
}
|
|
672
672
|
function toByteArray(_this__u8e3s4, $completion) {
|
|
673
673
|
var tmp = new $toByteArrayCOROUTINE$9(_this__u8e3s4, $completion);
|
|
674
|
-
tmp.
|
|
675
|
-
tmp.
|
|
676
|
-
return tmp.
|
|
674
|
+
tmp.f9_1 = Unit_instance;
|
|
675
|
+
tmp.g9_1 = null;
|
|
676
|
+
return tmp.l9();
|
|
677
677
|
}
|
|
678
678
|
function copyTo(_this__u8e3s4, channel, limit, $completion) {
|
|
679
679
|
var tmp = new $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, $completion);
|
|
680
|
-
tmp.
|
|
681
|
-
tmp.
|
|
682
|
-
return tmp.
|
|
680
|
+
tmp.f9_1 = Unit_instance;
|
|
681
|
+
tmp.g9_1 = null;
|
|
682
|
+
return tmp.l9();
|
|
683
683
|
}
|
|
684
684
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
685
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
685
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1g();
|
|
686
686
|
if (tmp0_safe_receiver == null)
|
|
687
687
|
null;
|
|
688
688
|
else {
|
|
@@ -692,12 +692,12 @@
|
|
|
692
692
|
}
|
|
693
693
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
694
694
|
var tmp = new $readBufferCOROUTINE$12(_this__u8e3s4, $completion);
|
|
695
|
-
tmp.
|
|
696
|
-
tmp.
|
|
697
|
-
return tmp.
|
|
695
|
+
tmp.f9_1 = Unit_instance;
|
|
696
|
+
tmp.g9_1 = null;
|
|
697
|
+
return tmp.l9();
|
|
698
698
|
}
|
|
699
699
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
700
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
700
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1g();
|
|
701
701
|
if (tmp0_safe_receiver == null)
|
|
702
702
|
null;
|
|
703
703
|
else {
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
709
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
709
|
+
var tmp0_safe_receiver = _this__u8e3s4.h1g();
|
|
710
710
|
if (tmp0_safe_receiver == null)
|
|
711
711
|
null;
|
|
712
712
|
else {
|
|
@@ -716,192 +716,192 @@
|
|
|
716
716
|
}
|
|
717
717
|
function $readRemainingCOROUTINE$3(_this__u8e3s4, resultContinuation) {
|
|
718
718
|
CoroutineImpl.call(this, resultContinuation);
|
|
719
|
-
this.
|
|
719
|
+
this.b1h_1 = _this__u8e3s4;
|
|
720
720
|
}
|
|
721
|
-
protoOf($readRemainingCOROUTINE$3).
|
|
722
|
-
var suspendResult = this.
|
|
721
|
+
protoOf($readRemainingCOROUTINE$3).l9 = function () {
|
|
722
|
+
var suspendResult = this.f9_1;
|
|
723
723
|
$sm: do
|
|
724
724
|
try {
|
|
725
|
-
var tmp = this.
|
|
725
|
+
var tmp = this.d9_1;
|
|
726
726
|
switch (tmp) {
|
|
727
727
|
case 0:
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
728
|
+
this.e9_1 = 4;
|
|
729
|
+
this.c1h_1 = BytePacketBuilder();
|
|
730
|
+
this.d9_1 = 1;
|
|
731
731
|
continue $sm;
|
|
732
732
|
case 1:
|
|
733
|
-
if (!!this.
|
|
734
|
-
this.
|
|
733
|
+
if (!!this.b1h_1.l1g()) {
|
|
734
|
+
this.d9_1 = 3;
|
|
735
735
|
continue $sm;
|
|
736
736
|
}
|
|
737
737
|
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
740
|
-
suspendResult = this.
|
|
738
|
+
this.c1h_1.t1c(this.b1h_1.g1g());
|
|
739
|
+
this.d9_1 = 2;
|
|
740
|
+
suspendResult = this.b1h_1.n1g(VOID, this);
|
|
741
741
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
742
742
|
return suspendResult;
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
continue $sm;
|
|
746
746
|
case 2:
|
|
747
|
-
this.
|
|
747
|
+
this.d9_1 = 1;
|
|
748
748
|
continue $sm;
|
|
749
749
|
case 3:
|
|
750
|
-
rethrowCloseCauseIfNeeded(this.
|
|
751
|
-
return this.
|
|
750
|
+
rethrowCloseCauseIfNeeded(this.b1h_1);
|
|
751
|
+
return this.c1h_1.c1b();
|
|
752
752
|
case 4:
|
|
753
|
-
throw this.
|
|
753
|
+
throw this.g9_1;
|
|
754
754
|
}
|
|
755
755
|
} catch ($p) {
|
|
756
756
|
var e = $p;
|
|
757
|
-
if (this.
|
|
757
|
+
if (this.e9_1 === 4) {
|
|
758
758
|
throw e;
|
|
759
759
|
} else {
|
|
760
|
-
this.
|
|
761
|
-
this.
|
|
760
|
+
this.d9_1 = this.e9_1;
|
|
761
|
+
this.g9_1 = e;
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
while (true);
|
|
765
765
|
};
|
|
766
766
|
function $readPacketCOROUTINE$4(_this__u8e3s4, packet, resultContinuation) {
|
|
767
767
|
CoroutineImpl.call(this, resultContinuation);
|
|
768
|
-
this.
|
|
769
|
-
this.
|
|
768
|
+
this.l1h_1 = _this__u8e3s4;
|
|
769
|
+
this.m1h_1 = packet;
|
|
770
770
|
}
|
|
771
|
-
protoOf($readPacketCOROUTINE$4).
|
|
772
|
-
var suspendResult = this.
|
|
771
|
+
protoOf($readPacketCOROUTINE$4).l9 = function () {
|
|
772
|
+
var suspendResult = this.f9_1;
|
|
773
773
|
$sm: do
|
|
774
774
|
try {
|
|
775
|
-
var tmp = this.
|
|
775
|
+
var tmp = this.d9_1;
|
|
776
776
|
switch (tmp) {
|
|
777
777
|
case 0:
|
|
778
|
-
this.
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
778
|
+
this.e9_1 = 6;
|
|
779
|
+
this.n1h_1 = new Buffer();
|
|
780
|
+
this.d9_1 = 1;
|
|
781
781
|
continue $sm;
|
|
782
782
|
case 1:
|
|
783
|
-
if (!(this.
|
|
784
|
-
this.
|
|
783
|
+
if (!(this.n1h_1.s().e1(toLong(this.m1h_1)) < 0)) {
|
|
784
|
+
this.d9_1 = 5;
|
|
785
785
|
continue $sm;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
if (this.
|
|
789
|
-
this.
|
|
790
|
-
suspendResult = this.
|
|
788
|
+
if (this.l1h_1.g1g().d1b()) {
|
|
789
|
+
this.d9_1 = 2;
|
|
790
|
+
suspendResult = this.l1h_1.n1g(VOID, this);
|
|
791
791
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
792
792
|
return suspendResult;
|
|
793
793
|
}
|
|
794
794
|
continue $sm;
|
|
795
795
|
} else {
|
|
796
|
-
this.
|
|
796
|
+
this.d9_1 = 3;
|
|
797
797
|
continue $sm;
|
|
798
798
|
}
|
|
799
799
|
|
|
800
800
|
case 2:
|
|
801
|
-
this.
|
|
801
|
+
this.d9_1 = 3;
|
|
802
802
|
continue $sm;
|
|
803
803
|
case 3:
|
|
804
|
-
if (this.
|
|
805
|
-
this.
|
|
804
|
+
if (this.l1h_1.l1g()) {
|
|
805
|
+
this.d9_1 = 5;
|
|
806
806
|
continue $sm;
|
|
807
807
|
} else {
|
|
808
|
-
this.
|
|
808
|
+
this.d9_1 = 4;
|
|
809
809
|
continue $sm;
|
|
810
810
|
}
|
|
811
811
|
|
|
812
812
|
case 4:
|
|
813
|
-
if (get_remaining(this.
|
|
814
|
-
this.
|
|
813
|
+
if (get_remaining(this.l1h_1.g1g()).e1(numberToLong(this.m1h_1).a3(this.n1h_1.s())) > 0) {
|
|
814
|
+
this.l1h_1.g1g().e1c(this.n1h_1, numberToLong(this.m1h_1).a3(this.n1h_1.s()));
|
|
815
815
|
} else {
|
|
816
|
-
this.
|
|
816
|
+
this.l1h_1.g1g().f1c(this.n1h_1);
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
-
this.
|
|
819
|
+
this.d9_1 = 1;
|
|
820
820
|
continue $sm;
|
|
821
821
|
case 5:
|
|
822
|
-
if (this.
|
|
823
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
822
|
+
if (this.n1h_1.s().e1(toLong(this.m1h_1)) < 0) {
|
|
823
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.m1h_1 + ' bytes but only ' + this.n1h_1.s().toString() + ' available');
|
|
824
824
|
}
|
|
825
825
|
|
|
826
|
-
return this.
|
|
826
|
+
return this.n1h_1;
|
|
827
827
|
case 6:
|
|
828
|
-
throw this.
|
|
828
|
+
throw this.g9_1;
|
|
829
829
|
}
|
|
830
830
|
} catch ($p) {
|
|
831
831
|
var e = $p;
|
|
832
|
-
if (this.
|
|
832
|
+
if (this.e9_1 === 6) {
|
|
833
833
|
throw e;
|
|
834
834
|
} else {
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
835
|
+
this.d9_1 = this.e9_1;
|
|
836
|
+
this.g9_1 = e;
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
while (true);
|
|
840
840
|
};
|
|
841
841
|
function $readAvailableCOROUTINE$7(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
842
842
|
CoroutineImpl.call(this, resultContinuation);
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
843
|
+
this.w1h_1 = _this__u8e3s4;
|
|
844
|
+
this.x1h_1 = buffer;
|
|
845
|
+
this.y1h_1 = offset;
|
|
846
|
+
this.z1h_1 = length;
|
|
847
847
|
}
|
|
848
|
-
protoOf($readAvailableCOROUTINE$7).
|
|
849
|
-
var suspendResult = this.
|
|
848
|
+
protoOf($readAvailableCOROUTINE$7).l9 = function () {
|
|
849
|
+
var suspendResult = this.f9_1;
|
|
850
850
|
$sm: do
|
|
851
851
|
try {
|
|
852
|
-
var tmp = this.
|
|
852
|
+
var tmp = this.d9_1;
|
|
853
853
|
switch (tmp) {
|
|
854
854
|
case 0:
|
|
855
|
-
this.
|
|
856
|
-
if (this.
|
|
855
|
+
this.e9_1 = 3;
|
|
856
|
+
if (this.w1h_1.l1g())
|
|
857
857
|
return -1;
|
|
858
|
-
if (this.
|
|
859
|
-
this.
|
|
860
|
-
suspendResult = this.
|
|
858
|
+
if (this.w1h_1.g1g().d1b()) {
|
|
859
|
+
this.d9_1 = 1;
|
|
860
|
+
suspendResult = this.w1h_1.n1g(VOID, this);
|
|
861
861
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
862
862
|
return suspendResult;
|
|
863
863
|
}
|
|
864
864
|
continue $sm;
|
|
865
865
|
} else {
|
|
866
|
-
this.
|
|
866
|
+
this.d9_1 = 2;
|
|
867
867
|
continue $sm;
|
|
868
868
|
}
|
|
869
869
|
|
|
870
870
|
case 1:
|
|
871
|
-
this.
|
|
871
|
+
this.d9_1 = 2;
|
|
872
872
|
continue $sm;
|
|
873
873
|
case 2:
|
|
874
|
-
if (this.
|
|
874
|
+
if (this.w1h_1.l1g())
|
|
875
875
|
return -1;
|
|
876
|
-
return readAvailable_0(this.
|
|
876
|
+
return readAvailable_0(this.w1h_1.g1g(), this.x1h_1, this.y1h_1, this.z1h_1);
|
|
877
877
|
case 3:
|
|
878
|
-
throw this.
|
|
878
|
+
throw this.g9_1;
|
|
879
879
|
}
|
|
880
880
|
} catch ($p) {
|
|
881
881
|
var e = $p;
|
|
882
|
-
if (this.
|
|
882
|
+
if (this.e9_1 === 3) {
|
|
883
883
|
throw e;
|
|
884
884
|
} else {
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
885
|
+
this.d9_1 = this.e9_1;
|
|
886
|
+
this.g9_1 = e;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
while (true);
|
|
890
890
|
};
|
|
891
891
|
function $toByteArrayCOROUTINE$9(_this__u8e3s4, resultContinuation) {
|
|
892
892
|
CoroutineImpl.call(this, resultContinuation);
|
|
893
|
-
this.
|
|
893
|
+
this.i1i_1 = _this__u8e3s4;
|
|
894
894
|
}
|
|
895
|
-
protoOf($toByteArrayCOROUTINE$9).
|
|
896
|
-
var suspendResult = this.
|
|
895
|
+
protoOf($toByteArrayCOROUTINE$9).l9 = function () {
|
|
896
|
+
var suspendResult = this.f9_1;
|
|
897
897
|
$sm: do
|
|
898
898
|
try {
|
|
899
|
-
var tmp = this.
|
|
899
|
+
var tmp = this.d9_1;
|
|
900
900
|
switch (tmp) {
|
|
901
901
|
case 0:
|
|
902
|
-
this.
|
|
903
|
-
this.
|
|
904
|
-
suspendResult = readBuffer(this.
|
|
902
|
+
this.e9_1 = 2;
|
|
903
|
+
this.d9_1 = 1;
|
|
904
|
+
suspendResult = readBuffer(this.i1i_1, this);
|
|
905
905
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
906
906
|
return suspendResult;
|
|
907
907
|
}
|
|
@@ -911,244 +911,244 @@
|
|
|
911
911
|
var ARGUMENT = suspendResult;
|
|
912
912
|
return readBytes(ARGUMENT);
|
|
913
913
|
case 2:
|
|
914
|
-
throw this.
|
|
914
|
+
throw this.g9_1;
|
|
915
915
|
}
|
|
916
916
|
} catch ($p) {
|
|
917
917
|
var e = $p;
|
|
918
|
-
if (this.
|
|
918
|
+
if (this.e9_1 === 2) {
|
|
919
919
|
throw e;
|
|
920
920
|
} else {
|
|
921
|
-
this.
|
|
922
|
-
this.
|
|
921
|
+
this.d9_1 = this.e9_1;
|
|
922
|
+
this.g9_1 = e;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
while (true);
|
|
926
926
|
};
|
|
927
927
|
function $copyToCOROUTINE$10(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
928
928
|
CoroutineImpl.call(this, resultContinuation);
|
|
929
|
-
this.
|
|
930
|
-
this.
|
|
931
|
-
this.
|
|
929
|
+
this.r1i_1 = _this__u8e3s4;
|
|
930
|
+
this.s1i_1 = channel;
|
|
931
|
+
this.t1i_1 = limit;
|
|
932
932
|
}
|
|
933
|
-
protoOf($copyToCOROUTINE$10).
|
|
934
|
-
var suspendResult = this.
|
|
933
|
+
protoOf($copyToCOROUTINE$10).l9 = function () {
|
|
934
|
+
var suspendResult = this.f9_1;
|
|
935
935
|
$sm: do
|
|
936
936
|
try {
|
|
937
|
-
var tmp = this.
|
|
937
|
+
var tmp = this.d9_1;
|
|
938
938
|
switch (tmp) {
|
|
939
939
|
case 0:
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
940
|
+
this.e9_1 = 12;
|
|
941
|
+
this.u1i_1 = this.t1i_1;
|
|
942
|
+
this.d9_1 = 1;
|
|
943
943
|
continue $sm;
|
|
944
944
|
case 1:
|
|
945
|
-
this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
945
|
+
this.e9_1 = 8;
|
|
946
|
+
this.e9_1 = 7;
|
|
947
|
+
this.d9_1 = 2;
|
|
948
948
|
continue $sm;
|
|
949
949
|
case 2:
|
|
950
|
-
if (!(!this.
|
|
951
|
-
this.
|
|
950
|
+
if (!(!this.r1i_1.l1g() && this.u1i_1.e1(new Long(0, 0)) > 0)) {
|
|
951
|
+
this.d9_1 = 6;
|
|
952
952
|
continue $sm;
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
if (this.
|
|
956
|
-
this.
|
|
957
|
-
suspendResult = this.
|
|
955
|
+
if (this.r1i_1.g1g().d1b()) {
|
|
956
|
+
this.d9_1 = 3;
|
|
957
|
+
suspendResult = this.r1i_1.n1g(VOID, this);
|
|
958
958
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
959
959
|
return suspendResult;
|
|
960
960
|
}
|
|
961
961
|
continue $sm;
|
|
962
962
|
} else {
|
|
963
|
-
this.
|
|
963
|
+
this.d9_1 = 4;
|
|
964
964
|
continue $sm;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
case 3:
|
|
968
|
-
this.
|
|
968
|
+
this.d9_1 = 4;
|
|
969
969
|
continue $sm;
|
|
970
970
|
case 4:
|
|
971
971
|
var tmp_0 = this;
|
|
972
|
-
var tmp0 = this.
|
|
973
|
-
var b = get_remaining(this.
|
|
974
|
-
tmp_0.
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
978
|
-
suspendResult = this.
|
|
972
|
+
var tmp0 = this.u1i_1;
|
|
973
|
+
var b = get_remaining(this.r1i_1.g1g());
|
|
974
|
+
tmp_0.w1i_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
975
|
+
this.r1i_1.g1g().e1c(this.s1i_1.i1g(), this.w1i_1);
|
|
976
|
+
this.u1i_1 = this.u1i_1.a3(this.w1i_1);
|
|
977
|
+
this.d9_1 = 5;
|
|
978
|
+
suspendResult = this.s1i_1.f1g(this);
|
|
979
979
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
980
980
|
return suspendResult;
|
|
981
981
|
}
|
|
982
982
|
|
|
983
983
|
continue $sm;
|
|
984
984
|
case 5:
|
|
985
|
-
this.
|
|
985
|
+
this.d9_1 = 2;
|
|
986
986
|
continue $sm;
|
|
987
987
|
case 6:
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
988
|
+
this.v1i_1 = Unit_instance;
|
|
989
|
+
this.e9_1 = 12;
|
|
990
|
+
this.d9_1 = 10;
|
|
991
991
|
continue $sm;
|
|
992
992
|
case 7:
|
|
993
|
-
this.
|
|
994
|
-
var tmp_1 = this.
|
|
993
|
+
this.e9_1 = 8;
|
|
994
|
+
var tmp_1 = this.g9_1;
|
|
995
995
|
if (tmp_1 instanceof Error) {
|
|
996
|
-
this.
|
|
996
|
+
this.x1i_1 = this.g9_1;
|
|
997
997
|
var tmp_2 = this;
|
|
998
|
-
this.
|
|
999
|
-
close(this.
|
|
1000
|
-
throw this.
|
|
998
|
+
this.r1i_1.p1g(this.x1i_1);
|
|
999
|
+
close(this.s1i_1, this.x1i_1);
|
|
1000
|
+
throw this.x1i_1;
|
|
1001
1001
|
} else {
|
|
1002
|
-
throw this.
|
|
1002
|
+
throw this.g9_1;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
case 8:
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1009
|
-
suspendResult = this.
|
|
1006
|
+
this.e9_1 = 12;
|
|
1007
|
+
this.y1i_1 = this.g9_1;
|
|
1008
|
+
this.d9_1 = 9;
|
|
1009
|
+
suspendResult = this.s1i_1.f1g(this);
|
|
1010
1010
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1011
1011
|
return suspendResult;
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
continue $sm;
|
|
1015
1015
|
case 9:
|
|
1016
|
-
throw this.
|
|
1016
|
+
throw this.y1i_1;
|
|
1017
1017
|
case 10:
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
suspendResult = this.
|
|
1018
|
+
this.e9_1 = 12;
|
|
1019
|
+
this.d9_1 = 11;
|
|
1020
|
+
suspendResult = this.s1i_1.f1g(this);
|
|
1021
1021
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1022
1022
|
return suspendResult;
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
1025
1025
|
continue $sm;
|
|
1026
1026
|
case 11:
|
|
1027
|
-
return this.
|
|
1027
|
+
return this.t1i_1.a3(this.u1i_1);
|
|
1028
1028
|
case 12:
|
|
1029
|
-
throw this.
|
|
1029
|
+
throw this.g9_1;
|
|
1030
1030
|
}
|
|
1031
1031
|
} catch ($p) {
|
|
1032
1032
|
var e = $p;
|
|
1033
|
-
if (this.
|
|
1033
|
+
if (this.e9_1 === 12) {
|
|
1034
1034
|
throw e;
|
|
1035
1035
|
} else {
|
|
1036
|
-
this.
|
|
1037
|
-
this.
|
|
1036
|
+
this.d9_1 = this.e9_1;
|
|
1037
|
+
this.g9_1 = e;
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
while (true);
|
|
1041
1041
|
};
|
|
1042
1042
|
function $readBufferCOROUTINE$12(_this__u8e3s4, resultContinuation) {
|
|
1043
1043
|
CoroutineImpl.call(this, resultContinuation);
|
|
1044
|
-
this.
|
|
1044
|
+
this.h1j_1 = _this__u8e3s4;
|
|
1045
1045
|
}
|
|
1046
|
-
protoOf($readBufferCOROUTINE$12).
|
|
1047
|
-
var suspendResult = this.
|
|
1046
|
+
protoOf($readBufferCOROUTINE$12).l9 = function () {
|
|
1047
|
+
var suspendResult = this.f9_1;
|
|
1048
1048
|
$sm: do
|
|
1049
1049
|
try {
|
|
1050
|
-
var tmp = this.
|
|
1050
|
+
var tmp = this.d9_1;
|
|
1051
1051
|
switch (tmp) {
|
|
1052
1052
|
case 0:
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1053
|
+
this.e9_1 = 4;
|
|
1054
|
+
this.i1j_1 = new Buffer();
|
|
1055
|
+
this.d9_1 = 1;
|
|
1056
1056
|
continue $sm;
|
|
1057
1057
|
case 1:
|
|
1058
|
-
if (!!this.
|
|
1059
|
-
this.
|
|
1058
|
+
if (!!this.h1j_1.l1g()) {
|
|
1059
|
+
this.d9_1 = 3;
|
|
1060
1060
|
continue $sm;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
suspendResult = this.
|
|
1063
|
+
this.i1j_1.t1c(this.h1j_1.g1g());
|
|
1064
|
+
this.d9_1 = 2;
|
|
1065
|
+
suspendResult = this.h1j_1.n1g(VOID, this);
|
|
1066
1066
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1067
1067
|
return suspendResult;
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
continue $sm;
|
|
1071
1071
|
case 2:
|
|
1072
|
-
this.
|
|
1072
|
+
this.d9_1 = 1;
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
case 3:
|
|
1075
|
-
var tmp0_safe_receiver = this.
|
|
1075
|
+
var tmp0_safe_receiver = this.h1j_1.h1g();
|
|
1076
1076
|
if (tmp0_safe_receiver == null)
|
|
1077
1077
|
null;
|
|
1078
1078
|
else {
|
|
1079
1079
|
throw tmp0_safe_receiver;
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
|
-
return this.
|
|
1082
|
+
return this.i1j_1;
|
|
1083
1083
|
case 4:
|
|
1084
|
-
throw this.
|
|
1084
|
+
throw this.g9_1;
|
|
1085
1085
|
}
|
|
1086
1086
|
} catch ($p) {
|
|
1087
1087
|
var e = $p;
|
|
1088
|
-
if (this.
|
|
1088
|
+
if (this.e9_1 === 4) {
|
|
1089
1089
|
throw e;
|
|
1090
1090
|
} else {
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1091
|
+
this.d9_1 = this.e9_1;
|
|
1092
|
+
this.g9_1 = e;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
1095
|
while (true);
|
|
1096
1096
|
};
|
|
1097
1097
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
1098
1098
|
var tmp = new $flushIfNeededCOROUTINE$14(_this__u8e3s4, $completion);
|
|
1099
|
-
tmp.
|
|
1100
|
-
tmp.
|
|
1101
|
-
return tmp.
|
|
1099
|
+
tmp.f9_1 = Unit_instance;
|
|
1100
|
+
tmp.g9_1 = null;
|
|
1101
|
+
return tmp.l9();
|
|
1102
1102
|
}
|
|
1103
1103
|
function $flushIfNeededCOROUTINE$14(_this__u8e3s4, resultContinuation) {
|
|
1104
1104
|
CoroutineImpl.call(this, resultContinuation);
|
|
1105
|
-
this.
|
|
1105
|
+
this.r1j_1 = _this__u8e3s4;
|
|
1106
1106
|
}
|
|
1107
|
-
protoOf($flushIfNeededCOROUTINE$14).
|
|
1108
|
-
var suspendResult = this.
|
|
1107
|
+
protoOf($flushIfNeededCOROUTINE$14).l9 = function () {
|
|
1108
|
+
var suspendResult = this.f9_1;
|
|
1109
1109
|
$sm: do
|
|
1110
1110
|
try {
|
|
1111
|
-
var tmp = this.
|
|
1111
|
+
var tmp = this.d9_1;
|
|
1112
1112
|
switch (tmp) {
|
|
1113
1113
|
case 0:
|
|
1114
|
-
this.
|
|
1115
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1114
|
+
this.e9_1 = 3;
|
|
1115
|
+
rethrowCloseCauseIfNeeded_0(this.r1j_1);
|
|
1116
1116
|
var tmp_0;
|
|
1117
|
-
var tmp_1 = this.
|
|
1117
|
+
var tmp_1 = this.r1j_1;
|
|
1118
1118
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
1119
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1119
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1e_1) === true) {
|
|
1120
1120
|
tmp_0 = true;
|
|
1121
1121
|
} else {
|
|
1122
|
-
tmp_0 = get_size(this.
|
|
1122
|
+
tmp_0 = get_size(this.r1j_1.i1g()) >= 1048576;
|
|
1123
1123
|
}
|
|
1124
1124
|
|
|
1125
1125
|
if (tmp_0) {
|
|
1126
|
-
this.
|
|
1127
|
-
suspendResult = this.
|
|
1126
|
+
this.d9_1 = 1;
|
|
1127
|
+
suspendResult = this.r1j_1.f1g(this);
|
|
1128
1128
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1129
1129
|
return suspendResult;
|
|
1130
1130
|
}
|
|
1131
1131
|
continue $sm;
|
|
1132
1132
|
} else {
|
|
1133
|
-
this.
|
|
1133
|
+
this.d9_1 = 2;
|
|
1134
1134
|
continue $sm;
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
1137
|
case 1:
|
|
1138
|
-
this.
|
|
1138
|
+
this.d9_1 = 2;
|
|
1139
1139
|
continue $sm;
|
|
1140
1140
|
case 2:
|
|
1141
1141
|
return Unit_instance;
|
|
1142
1142
|
case 3:
|
|
1143
|
-
throw this.
|
|
1143
|
+
throw this.g9_1;
|
|
1144
1144
|
}
|
|
1145
1145
|
} catch ($p) {
|
|
1146
1146
|
var e = $p;
|
|
1147
|
-
if (this.
|
|
1147
|
+
if (this.e9_1 === 3) {
|
|
1148
1148
|
throw e;
|
|
1149
1149
|
} else {
|
|
1150
|
-
this.
|
|
1151
|
-
this.
|
|
1150
|
+
this.d9_1 = this.e9_1;
|
|
1151
|
+
this.g9_1 = e;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
1154
|
while (true);
|
|
@@ -1159,11 +1159,11 @@
|
|
|
1159
1159
|
}
|
|
1160
1160
|
var NO_CALLBACK;
|
|
1161
1161
|
function WriterJob(channel, job) {
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1162
|
+
this.s1j_1 = channel;
|
|
1163
|
+
this.t1j_1 = job;
|
|
1164
1164
|
}
|
|
1165
|
-
protoOf(WriterJob).
|
|
1166
|
-
return this.
|
|
1165
|
+
protoOf(WriterJob).ht = function () {
|
|
1166
|
+
return this.t1j_1;
|
|
1167
1167
|
};
|
|
1168
1168
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
1169
1169
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1172,38 +1172,38 @@
|
|
|
1172
1172
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1173
1173
|
}
|
|
1174
1174
|
function WriterScope(channel, coroutineContext) {
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1175
|
+
this.u1j_1 = channel;
|
|
1176
|
+
this.v1j_1 = coroutineContext;
|
|
1177
1177
|
}
|
|
1178
|
-
protoOf(WriterScope).
|
|
1179
|
-
return this.
|
|
1178
|
+
protoOf(WriterScope).in = function () {
|
|
1179
|
+
return this.v1j_1;
|
|
1180
1180
|
};
|
|
1181
1181
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
1182
1182
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
1183
1183
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
1184
|
-
_this__u8e3s4.
|
|
1184
|
+
_this__u8e3s4.i1g().l1c(value, startIndex, endIndex);
|
|
1185
1185
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1186
1186
|
}
|
|
1187
1187
|
function writePacket(_this__u8e3s4, copy, $completion) {
|
|
1188
|
-
_this__u8e3s4.
|
|
1188
|
+
_this__u8e3s4.i1g().t1c(copy);
|
|
1189
1189
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
1190
1190
|
}
|
|
1191
1191
|
function get_isCompleted(_this__u8e3s4) {
|
|
1192
1192
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1193
|
-
return _this__u8e3s4.
|
|
1193
|
+
return _this__u8e3s4.ht().do();
|
|
1194
1194
|
}
|
|
1195
1195
|
function close(_this__u8e3s4, cause) {
|
|
1196
1196
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1197
1197
|
if (cause == null) {
|
|
1198
1198
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
1199
1199
|
} else {
|
|
1200
|
-
_this__u8e3s4.
|
|
1200
|
+
_this__u8e3s4.p1g(cause);
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
1204
1204
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
1205
|
-
var tmp = _this__u8e3s4.
|
|
1206
|
-
tmp.
|
|
1205
|
+
var tmp = _this__u8e3s4.ht();
|
|
1206
|
+
tmp.ko(invokeOnCompletion$lambda(block));
|
|
1207
1207
|
}
|
|
1208
1208
|
function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1209
1209
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -1211,7 +1211,7 @@
|
|
|
1211
1211
|
// Inline function 'kotlin.apply' call
|
|
1212
1212
|
var this_0 = launch(_this__u8e3s4, coroutineContext, VOID, writer$slambda_0(block, channel, null));
|
|
1213
1213
|
// Inline function 'io.ktor.utils.io.writer.<anonymous>' call
|
|
1214
|
-
this_0.
|
|
1214
|
+
this_0.ko(writer$lambda(channel));
|
|
1215
1215
|
var job = this_0;
|
|
1216
1216
|
return new WriterJob(channel, job);
|
|
1217
1217
|
}
|
|
@@ -1220,30 +1220,30 @@
|
|
|
1220
1220
|
startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
|
|
1221
1221
|
}
|
|
1222
1222
|
function NO_CALLBACK$1() {
|
|
1223
|
-
this.
|
|
1223
|
+
this.w1j_1 = EmptyCoroutineContext_getInstance();
|
|
1224
1224
|
}
|
|
1225
|
-
protoOf(NO_CALLBACK$1).
|
|
1226
|
-
return this.
|
|
1225
|
+
protoOf(NO_CALLBACK$1).j9 = function () {
|
|
1226
|
+
return this.w1j_1;
|
|
1227
1227
|
};
|
|
1228
|
-
protoOf(NO_CALLBACK$1).
|
|
1228
|
+
protoOf(NO_CALLBACK$1).k9 = function (result) {
|
|
1229
1229
|
return Unit_instance;
|
|
1230
1230
|
};
|
|
1231
|
-
protoOf(NO_CALLBACK$1).
|
|
1232
|
-
return this.
|
|
1231
|
+
protoOf(NO_CALLBACK$1).o9 = function (result) {
|
|
1232
|
+
return this.k9(result);
|
|
1233
1233
|
};
|
|
1234
1234
|
function ByteWriteChannel$flushAndClose$ref($boundThis) {
|
|
1235
|
-
this.
|
|
1235
|
+
this.x1j_1 = $boundThis;
|
|
1236
1236
|
}
|
|
1237
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1238
|
-
return this.
|
|
1237
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).y1j = function ($completion) {
|
|
1238
|
+
return this.x1j_1.o1g($completion);
|
|
1239
1239
|
};
|
|
1240
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
1241
|
-
return this.
|
|
1240
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).ab = function ($completion) {
|
|
1241
|
+
return this.y1j($completion);
|
|
1242
1242
|
};
|
|
1243
1243
|
function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
|
|
1244
1244
|
var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
|
|
1245
1245
|
var l = function ($completion) {
|
|
1246
|
-
return i.
|
|
1246
|
+
return i.y1j($completion);
|
|
1247
1247
|
};
|
|
1248
1248
|
l.callableName = 'flushAndClose';
|
|
1249
1249
|
l.$arity = 0;
|
|
@@ -1256,74 +1256,74 @@
|
|
|
1256
1256
|
};
|
|
1257
1257
|
}
|
|
1258
1258
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1259
|
+
this.h1k_1 = $block;
|
|
1260
|
+
this.i1k_1 = $channel;
|
|
1261
1261
|
CoroutineImpl.call(this, resultContinuation);
|
|
1262
1262
|
}
|
|
1263
|
-
protoOf(writer$slambda).
|
|
1264
|
-
var tmp = this.
|
|
1265
|
-
tmp.
|
|
1266
|
-
tmp.
|
|
1267
|
-
return tmp.
|
|
1263
|
+
protoOf(writer$slambda).c1l = function ($this$launch, $completion) {
|
|
1264
|
+
var tmp = this.d1l($this$launch, $completion);
|
|
1265
|
+
tmp.f9_1 = Unit_instance;
|
|
1266
|
+
tmp.g9_1 = null;
|
|
1267
|
+
return tmp.l9();
|
|
1268
1268
|
};
|
|
1269
|
-
protoOf(writer$slambda).
|
|
1270
|
-
return this.
|
|
1269
|
+
protoOf(writer$slambda).v9 = function (p1, $completion) {
|
|
1270
|
+
return this.c1l((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1271
1271
|
};
|
|
1272
|
-
protoOf(writer$slambda).
|
|
1273
|
-
var suspendResult = this.
|
|
1272
|
+
protoOf(writer$slambda).l9 = function () {
|
|
1273
|
+
var suspendResult = this.f9_1;
|
|
1274
1274
|
$sm: do
|
|
1275
1275
|
try {
|
|
1276
|
-
var tmp = this.
|
|
1276
|
+
var tmp = this.d9_1;
|
|
1277
1277
|
switch (tmp) {
|
|
1278
1278
|
case 0:
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1279
|
+
this.e9_1 = 14;
|
|
1280
|
+
this.k1k_1 = Job(get_job(this.j1k_1.in()));
|
|
1281
|
+
this.d9_1 = 1;
|
|
1282
1282
|
continue $sm;
|
|
1283
1283
|
case 1:
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
suspendResult = this.
|
|
1284
|
+
this.e9_1 = 4;
|
|
1285
|
+
this.e9_1 = 3;
|
|
1286
|
+
this.d9_1 = 2;
|
|
1287
|
+
suspendResult = this.h1k_1(new WriterScope(this.i1k_1, this.j1k_1.in().sg(this.k1k_1)), this);
|
|
1288
1288
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1289
1289
|
return suspendResult;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
1292
|
continue $sm;
|
|
1293
1293
|
case 2:
|
|
1294
|
-
this.
|
|
1294
|
+
this.k1k_1.du();
|
|
1295
1295
|
var tmp_0 = this;
|
|
1296
1296
|
var tmp_1;
|
|
1297
|
-
if (get_job(this.
|
|
1298
|
-
this.
|
|
1297
|
+
if (get_job(this.j1k_1.in()).eo()) {
|
|
1298
|
+
this.i1k_1.p1g(get_job(this.j1k_1.in()).ho());
|
|
1299
1299
|
tmp_1 = Unit_instance;
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
tmp_0.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1302
|
+
tmp_0.l1k_1 = tmp_1;
|
|
1303
|
+
this.e9_1 = 14;
|
|
1304
|
+
this.d9_1 = 9;
|
|
1305
1305
|
continue $sm;
|
|
1306
1306
|
case 3:
|
|
1307
|
-
this.
|
|
1308
|
-
var tmp_2 = this.
|
|
1307
|
+
this.e9_1 = 4;
|
|
1308
|
+
var tmp_2 = this.g9_1;
|
|
1309
1309
|
if (tmp_2 instanceof Error) {
|
|
1310
|
-
this.
|
|
1310
|
+
this.m1k_1 = this.g9_1;
|
|
1311
1311
|
var tmp_3 = this;
|
|
1312
|
-
cancel(this.
|
|
1313
|
-
this.
|
|
1314
|
-
tmp_3.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1312
|
+
cancel(this.k1k_1, 'Exception thrown while writing to channel', this.m1k_1);
|
|
1313
|
+
this.i1k_1.p1g(this.m1k_1);
|
|
1314
|
+
tmp_3.l1k_1 = Unit_instance;
|
|
1315
|
+
this.e9_1 = 14;
|
|
1316
|
+
this.d9_1 = 9;
|
|
1317
1317
|
continue $sm;
|
|
1318
1318
|
} else {
|
|
1319
|
-
throw this.
|
|
1319
|
+
throw this.g9_1;
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
case 4:
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
suspendResult = this.
|
|
1323
|
+
this.e9_1 = 14;
|
|
1324
|
+
this.n1k_1 = this.g9_1;
|
|
1325
|
+
this.d9_1 = 5;
|
|
1326
|
+
suspendResult = this.k1k_1.eu(this);
|
|
1327
1327
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1328
1328
|
return suspendResult;
|
|
1329
1329
|
}
|
|
@@ -1331,16 +1331,16 @@
|
|
|
1331
1331
|
continue $sm;
|
|
1332
1332
|
case 5:
|
|
1333
1333
|
var tmp_4 = this;
|
|
1334
|
-
tmp_4.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1334
|
+
tmp_4.o1k_1 = this.j1k_1;
|
|
1335
|
+
this.p1k_1 = this.o1k_1;
|
|
1336
|
+
this.e9_1 = 7;
|
|
1337
1337
|
var tmp_5 = this;
|
|
1338
|
-
tmp_5.
|
|
1338
|
+
tmp_5.r1k_1 = Companion_instance;
|
|
1339
1339
|
var tmp_6 = this;
|
|
1340
|
-
tmp_6.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
suspendResult = this.
|
|
1340
|
+
tmp_6.s1k_1 = this.p1k_1;
|
|
1341
|
+
this.t1k_1 = this.s1k_1;
|
|
1342
|
+
this.d9_1 = 6;
|
|
1343
|
+
suspendResult = this.i1k_1.o1g(this);
|
|
1344
1344
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1345
1345
|
return suspendResult;
|
|
1346
1346
|
}
|
|
@@ -1348,35 +1348,35 @@
|
|
|
1348
1348
|
continue $sm;
|
|
1349
1349
|
case 6:
|
|
1350
1350
|
var tmp_7 = this;
|
|
1351
|
-
tmp_7.
|
|
1351
|
+
tmp_7.u1k_1 = Unit_instance;
|
|
1352
1352
|
var tmp_8 = this;
|
|
1353
|
-
this.
|
|
1354
|
-
var value = this.
|
|
1355
|
-
tmp_8.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1353
|
+
this.r1k_1;
|
|
1354
|
+
var value = this.u1k_1;
|
|
1355
|
+
tmp_8.q1k_1 = _Result___init__impl__xyqfz8(value);
|
|
1356
|
+
this.e9_1 = 14;
|
|
1357
|
+
this.d9_1 = 8;
|
|
1358
1358
|
continue $sm;
|
|
1359
1359
|
case 7:
|
|
1360
|
-
this.
|
|
1361
|
-
var tmp_9 = this.
|
|
1360
|
+
this.e9_1 = 14;
|
|
1361
|
+
var tmp_9 = this.g9_1;
|
|
1362
1362
|
if (tmp_9 instanceof Error) {
|
|
1363
|
-
this.
|
|
1363
|
+
this.v1k_1 = this.g9_1;
|
|
1364
1364
|
var tmp_10 = this;
|
|
1365
|
-
var exception = this.
|
|
1366
|
-
tmp_10.
|
|
1367
|
-
this.
|
|
1365
|
+
var exception = this.v1k_1;
|
|
1366
|
+
tmp_10.q1k_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1367
|
+
this.d9_1 = 8;
|
|
1368
1368
|
continue $sm;
|
|
1369
1369
|
} else {
|
|
1370
|
-
throw this.
|
|
1370
|
+
throw this.g9_1;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
case 8:
|
|
1374
|
-
this.
|
|
1375
|
-
throw this.
|
|
1374
|
+
this.e9_1 = 14;
|
|
1375
|
+
throw this.n1k_1;
|
|
1376
1376
|
case 9:
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
suspendResult = this.
|
|
1377
|
+
this.e9_1 = 14;
|
|
1378
|
+
this.d9_1 = 10;
|
|
1379
|
+
suspendResult = this.k1k_1.eu(this);
|
|
1380
1380
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1381
1381
|
return suspendResult;
|
|
1382
1382
|
}
|
|
@@ -1384,16 +1384,16 @@
|
|
|
1384
1384
|
continue $sm;
|
|
1385
1385
|
case 10:
|
|
1386
1386
|
var tmp_11 = this;
|
|
1387
|
-
tmp_11.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1387
|
+
tmp_11.w1k_1 = this.j1k_1;
|
|
1388
|
+
this.x1k_1 = this.w1k_1;
|
|
1389
|
+
this.e9_1 = 12;
|
|
1390
1390
|
var tmp_12 = this;
|
|
1391
|
-
tmp_12.
|
|
1391
|
+
tmp_12.z1k_1 = Companion_instance;
|
|
1392
1392
|
var tmp_13 = this;
|
|
1393
|
-
tmp_13.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
suspendResult = this.
|
|
1393
|
+
tmp_13.a1l_1 = this.x1k_1;
|
|
1394
|
+
this.b1l_1 = this.a1l_1;
|
|
1395
|
+
this.d9_1 = 11;
|
|
1396
|
+
suspendResult = this.i1k_1.o1g(this);
|
|
1397
1397
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1398
1398
|
return suspendResult;
|
|
1399
1399
|
}
|
|
@@ -1401,50 +1401,50 @@
|
|
|
1401
1401
|
continue $sm;
|
|
1402
1402
|
case 11:
|
|
1403
1403
|
var tmp_14 = this;
|
|
1404
|
-
this.
|
|
1405
|
-
tmp_14.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1404
|
+
this.z1k_1;
|
|
1405
|
+
tmp_14.y1k_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
1406
|
+
this.e9_1 = 14;
|
|
1407
|
+
this.d9_1 = 13;
|
|
1408
1408
|
continue $sm;
|
|
1409
1409
|
case 12:
|
|
1410
|
-
this.
|
|
1411
|
-
var tmp_15 = this.
|
|
1410
|
+
this.e9_1 = 14;
|
|
1411
|
+
var tmp_15 = this.g9_1;
|
|
1412
1412
|
if (tmp_15 instanceof Error) {
|
|
1413
|
-
var e = this.
|
|
1413
|
+
var e = this.g9_1;
|
|
1414
1414
|
var tmp_16 = this;
|
|
1415
|
-
tmp_16.
|
|
1416
|
-
this.
|
|
1415
|
+
tmp_16.y1k_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
1416
|
+
this.d9_1 = 13;
|
|
1417
1417
|
continue $sm;
|
|
1418
1418
|
} else {
|
|
1419
|
-
throw this.
|
|
1419
|
+
throw this.g9_1;
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
case 13:
|
|
1423
|
-
this.
|
|
1423
|
+
this.e9_1 = 14;
|
|
1424
1424
|
return Unit_instance;
|
|
1425
1425
|
case 14:
|
|
1426
|
-
throw this.
|
|
1426
|
+
throw this.g9_1;
|
|
1427
1427
|
}
|
|
1428
1428
|
} catch ($p) {
|
|
1429
1429
|
var e_0 = $p;
|
|
1430
|
-
if (this.
|
|
1430
|
+
if (this.e9_1 === 14) {
|
|
1431
1431
|
throw e_0;
|
|
1432
1432
|
} else {
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1433
|
+
this.d9_1 = this.e9_1;
|
|
1434
|
+
this.g9_1 = e_0;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
while (true);
|
|
1438
1438
|
};
|
|
1439
|
-
protoOf(writer$slambda).
|
|
1440
|
-
var i = new writer$slambda(this.
|
|
1441
|
-
i.
|
|
1439
|
+
protoOf(writer$slambda).d1l = function ($this$launch, completion) {
|
|
1440
|
+
var i = new writer$slambda(this.h1k_1, this.i1k_1, completion);
|
|
1441
|
+
i.j1k_1 = $this$launch;
|
|
1442
1442
|
return i;
|
|
1443
1443
|
};
|
|
1444
1444
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
1445
1445
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
1446
1446
|
var l = function ($this$launch, $completion) {
|
|
1447
|
-
return i.
|
|
1447
|
+
return i.c1l($this$launch, $completion);
|
|
1448
1448
|
};
|
|
1449
1449
|
l.$arity = 1;
|
|
1450
1450
|
return l;
|
|
@@ -1452,8 +1452,8 @@
|
|
|
1452
1452
|
function writer$lambda($channel) {
|
|
1453
1453
|
return function (it) {
|
|
1454
1454
|
var tmp;
|
|
1455
|
-
if (!(it == null) && !$channel.
|
|
1456
|
-
$channel.
|
|
1455
|
+
if (!(it == null) && !$channel.j1g()) {
|
|
1456
|
+
$channel.p1g(it);
|
|
1457
1457
|
tmp = Unit_instance;
|
|
1458
1458
|
}
|
|
1459
1459
|
return Unit_instance;
|
|
@@ -1480,7 +1480,7 @@
|
|
|
1480
1480
|
if (origin instanceof CancellationException) {
|
|
1481
1481
|
var tmp_1;
|
|
1482
1482
|
if (isInterface(origin, CopyableThrowable)) {
|
|
1483
|
-
tmp_1 = origin.
|
|
1483
|
+
tmp_1 = origin.mu();
|
|
1484
1484
|
} else {
|
|
1485
1485
|
var tmp0_elvis_lhs = origin.message;
|
|
1486
1486
|
tmp_1 = CancellationException_init_$Create$(tmp0_elvis_lhs == null ? 'Channel was cancelled' : tmp0_elvis_lhs, origin);
|
|
@@ -1494,37 +1494,37 @@
|
|
|
1494
1494
|
tmp_2 = false;
|
|
1495
1495
|
}
|
|
1496
1496
|
if (tmp_2) {
|
|
1497
|
-
tmp_0 = origin.
|
|
1497
|
+
tmp_0 = origin.mu();
|
|
1498
1498
|
} else {
|
|
1499
1499
|
var tmp1_elvis_lhs = origin.message;
|
|
1500
1500
|
tmp_0 = IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was closed' : tmp1_elvis_lhs, origin);
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
tmp.
|
|
1504
|
+
tmp.k1g_1 = tmp_0;
|
|
1505
1505
|
}
|
|
1506
|
-
protoOf(CloseToken).
|
|
1506
|
+
protoOf(CloseToken).u9 = function () {
|
|
1507
1507
|
var tmp;
|
|
1508
|
-
if (this.
|
|
1508
|
+
if (this.k1g_1 == null) {
|
|
1509
1509
|
tmp = null;
|
|
1510
1510
|
} else {
|
|
1511
|
-
var tmp_0 = this.
|
|
1511
|
+
var tmp_0 = this.k1g_1;
|
|
1512
1512
|
if (tmp_0 instanceof IOException) {
|
|
1513
1513
|
var tmp_1;
|
|
1514
|
-
var tmp_2 = this.
|
|
1514
|
+
var tmp_2 = this.k1g_1;
|
|
1515
1515
|
if (isInterface(tmp_2, CopyableThrowable)) {
|
|
1516
|
-
tmp_1 = this.
|
|
1516
|
+
tmp_1 = this.k1g_1.mu();
|
|
1517
1517
|
} else {
|
|
1518
|
-
tmp_1 = IOException_init_$Create$_0(this.
|
|
1518
|
+
tmp_1 = IOException_init_$Create$_0(this.k1g_1.message, this.k1g_1);
|
|
1519
1519
|
}
|
|
1520
1520
|
tmp = tmp_1;
|
|
1521
1521
|
} else {
|
|
1522
|
-
var tmp_3 = this.
|
|
1522
|
+
var tmp_3 = this.k1g_1;
|
|
1523
1523
|
if (!(tmp_3 == null) ? isInterface(tmp_3, CopyableThrowable) : false) {
|
|
1524
|
-
var tmp0_elvis_lhs = this.
|
|
1525
|
-
tmp = tmp0_elvis_lhs == null ? CancellationException_init_$Create$(this.
|
|
1524
|
+
var tmp0_elvis_lhs = this.k1g_1.mu();
|
|
1525
|
+
tmp = tmp0_elvis_lhs == null ? CancellationException_init_$Create$(this.k1g_1.message, this.k1g_1) : tmp0_elvis_lhs;
|
|
1526
1526
|
} else {
|
|
1527
|
-
tmp = CancellationException_init_$Create$(this.
|
|
1527
|
+
tmp = CancellationException_init_$Create$(this.k1g_1.message, this.k1g_1);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
@@ -1541,49 +1541,49 @@
|
|
|
1541
1541
|
return readString(_this__u8e3s4);
|
|
1542
1542
|
}
|
|
1543
1543
|
function SourceByteReadChannel(source) {
|
|
1544
|
-
this.
|
|
1545
|
-
this.
|
|
1544
|
+
this.e1l_1 = source;
|
|
1545
|
+
this.f1l_1 = null;
|
|
1546
1546
|
}
|
|
1547
|
-
protoOf(SourceByteReadChannel).
|
|
1548
|
-
var tmp0_safe_receiver = this.
|
|
1549
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1547
|
+
protoOf(SourceByteReadChannel).h1g = function () {
|
|
1548
|
+
var tmp0_safe_receiver = this.f1l_1;
|
|
1549
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u9();
|
|
1550
1550
|
};
|
|
1551
|
-
protoOf(SourceByteReadChannel).
|
|
1552
|
-
return this.
|
|
1551
|
+
protoOf(SourceByteReadChannel).l1g = function () {
|
|
1552
|
+
return this.e1l_1.d1b();
|
|
1553
1553
|
};
|
|
1554
|
-
protoOf(SourceByteReadChannel).
|
|
1555
|
-
var tmp0_safe_receiver = this.
|
|
1554
|
+
protoOf(SourceByteReadChannel).g1g = function () {
|
|
1555
|
+
var tmp0_safe_receiver = this.h1g();
|
|
1556
1556
|
if (tmp0_safe_receiver == null)
|
|
1557
1557
|
null;
|
|
1558
1558
|
else {
|
|
1559
1559
|
// Inline function 'kotlin.let' call
|
|
1560
1560
|
throw tmp0_safe_receiver;
|
|
1561
1561
|
}
|
|
1562
|
-
return this.
|
|
1562
|
+
return this.e1l_1;
|
|
1563
1563
|
};
|
|
1564
|
-
protoOf(SourceByteReadChannel).
|
|
1565
|
-
var tmp0_safe_receiver = this.
|
|
1564
|
+
protoOf(SourceByteReadChannel).m1g = function (min, $completion) {
|
|
1565
|
+
var tmp0_safe_receiver = this.h1g();
|
|
1566
1566
|
if (tmp0_safe_receiver == null)
|
|
1567
1567
|
null;
|
|
1568
1568
|
else {
|
|
1569
1569
|
// Inline function 'kotlin.let' call
|
|
1570
1570
|
throw tmp0_safe_receiver;
|
|
1571
1571
|
}
|
|
1572
|
-
return get_remaining(this.
|
|
1572
|
+
return get_remaining(this.e1l_1).e1(toLong(min)) >= 0;
|
|
1573
1573
|
};
|
|
1574
|
-
protoOf(SourceByteReadChannel).
|
|
1575
|
-
if (!(this.
|
|
1574
|
+
protoOf(SourceByteReadChannel).p1g = function (cause) {
|
|
1575
|
+
if (!(this.f1l_1 == null))
|
|
1576
1576
|
return Unit_instance;
|
|
1577
|
-
this.
|
|
1577
|
+
this.e1l_1.y1c();
|
|
1578
1578
|
var tmp = this;
|
|
1579
1579
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
1580
|
-
tmp.
|
|
1580
|
+
tmp.f1l_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
1581
1581
|
};
|
|
1582
1582
|
function decode(_this__u8e3s4, input, max) {
|
|
1583
1583
|
max = max === VOID ? 2147483647 : max;
|
|
1584
1584
|
var tmp0 = toLong(max);
|
|
1585
1585
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1586
|
-
var b = input.
|
|
1586
|
+
var b = input.c1b().s();
|
|
1587
1587
|
// Inline function 'kotlin.text.buildString' call
|
|
1588
1588
|
var capacity = (tmp0.e1(b) <= 0 ? tmp0 : b).j1();
|
|
1589
1589
|
// Inline function 'kotlin.apply' call
|
|
@@ -1617,7 +1617,7 @@
|
|
|
1617
1617
|
return builder;
|
|
1618
1618
|
}
|
|
1619
1619
|
function canRead(_this__u8e3s4) {
|
|
1620
|
-
return !_this__u8e3s4.
|
|
1620
|
+
return !_this__u8e3s4.d1b();
|
|
1621
1621
|
}
|
|
1622
1622
|
function readBytes(_this__u8e3s4, count) {
|
|
1623
1623
|
count = count === VOID ? _this__u8e3s4.s().j1() : count;
|
|
@@ -1627,37 +1627,37 @@
|
|
|
1627
1627
|
return new Buffer();
|
|
1628
1628
|
}
|
|
1629
1629
|
function writePacket_0(_this__u8e3s4, packet) {
|
|
1630
|
-
_this__u8e3s4.
|
|
1630
|
+
_this__u8e3s4.t1c(packet);
|
|
1631
1631
|
}
|
|
1632
1632
|
function build(_this__u8e3s4) {
|
|
1633
|
-
return _this__u8e3s4.
|
|
1633
|
+
return _this__u8e3s4.c1b();
|
|
1634
1634
|
}
|
|
1635
1635
|
function get_size(_this__u8e3s4) {
|
|
1636
|
-
return _this__u8e3s4.
|
|
1636
|
+
return _this__u8e3s4.c1b().s().j1();
|
|
1637
1637
|
}
|
|
1638
1638
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
1639
1639
|
offset = offset === VOID ? 0 : offset;
|
|
1640
1640
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1641
|
-
_this__u8e3s4.
|
|
1641
|
+
_this__u8e3s4.l1c(buffer, offset, offset + length | 0);
|
|
1642
1642
|
}
|
|
1643
1643
|
var ByteReadPacketEmpty;
|
|
1644
1644
|
function get_remaining(_this__u8e3s4) {
|
|
1645
1645
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1646
|
-
return _this__u8e3s4.
|
|
1646
|
+
return _this__u8e3s4.c1b().s();
|
|
1647
1647
|
}
|
|
1648
1648
|
function discard(_this__u8e3s4, count) {
|
|
1649
1649
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
1650
1650
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1651
|
-
_this__u8e3s4.
|
|
1651
|
+
_this__u8e3s4.f1b(count);
|
|
1652
1652
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1653
1653
|
var b = get_remaining(_this__u8e3s4);
|
|
1654
1654
|
var countToDiscard = count.e1(b) <= 0 ? count : b;
|
|
1655
|
-
_this__u8e3s4.
|
|
1655
|
+
_this__u8e3s4.c1b().z1b(countToDiscard);
|
|
1656
1656
|
return countToDiscard;
|
|
1657
1657
|
}
|
|
1658
1658
|
function takeWhile(_this__u8e3s4, block) {
|
|
1659
1659
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
1660
|
-
while (!_this__u8e3s4.
|
|
1660
|
+
while (!_this__u8e3s4.d1b() && block(_this__u8e3s4.c1b())) {
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -1670,37 +1670,37 @@
|
|
|
1670
1670
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
1671
1671
|
offset = offset === VOID ? 0 : offset;
|
|
1672
1672
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
1673
|
-
var result = _this__u8e3s4.
|
|
1673
|
+
var result = _this__u8e3s4.a1c(buffer, offset, offset + length | 0);
|
|
1674
1674
|
return result === -1 ? 0 : result;
|
|
1675
1675
|
}
|
|
1676
1676
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
1677
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1677
|
+
charset = charset === VOID ? Charsets_getInstance().g1l_1 : charset;
|
|
1678
1678
|
max = max === VOID ? 2147483647 : max;
|
|
1679
|
-
if (charset.equals(Charsets_getInstance().
|
|
1679
|
+
if (charset.equals(Charsets_getInstance().g1l_1)) {
|
|
1680
1680
|
if (max === 2147483647)
|
|
1681
1681
|
return readString(_this__u8e3s4);
|
|
1682
|
-
var tmp0 = _this__u8e3s4.
|
|
1682
|
+
var tmp0 = _this__u8e3s4.c1b().s();
|
|
1683
1683
|
// Inline function 'kotlin.math.min' call
|
|
1684
1684
|
var b = toLong(max);
|
|
1685
1685
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
1686
1686
|
return readString_0(_this__u8e3s4, count);
|
|
1687
1687
|
}
|
|
1688
|
-
return decode(charset.
|
|
1688
|
+
return decode(charset.j1l(), _this__u8e3s4, max);
|
|
1689
1689
|
}
|
|
1690
1690
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
1691
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1692
|
-
if (charset.equals(Charsets_getInstance().
|
|
1691
|
+
charset = charset === VOID ? Charsets_getInstance().g1l_1 : charset;
|
|
1692
|
+
if (charset.equals(Charsets_getInstance().g1l_1))
|
|
1693
1693
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
1694
|
-
return encodeToByteArray_0(charset.
|
|
1694
|
+
return encodeToByteArray_0(charset.k1l(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
1695
1695
|
}
|
|
1696
1696
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
1697
1697
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
1698
1698
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
1699
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
1700
|
-
if (charset === Charsets_getInstance().
|
|
1699
|
+
charset = charset === VOID ? Charsets_getInstance().g1l_1 : charset;
|
|
1700
|
+
if (charset === Charsets_getInstance().g1l_1) {
|
|
1701
1701
|
return writeString(_this__u8e3s4, toString_0(text), fromIndex, toIndex);
|
|
1702
1702
|
}
|
|
1703
|
-
encodeToImpl(charset.
|
|
1703
|
+
encodeToImpl(charset.k1l(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
1704
1704
|
}
|
|
1705
1705
|
function get_ByteArrayPool() {
|
|
1706
1706
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
function ByteArrayPool$1() {
|
|
1711
1711
|
DefaultPool.call(this, 128);
|
|
1712
1712
|
}
|
|
1713
|
-
protoOf(ByteArrayPool$1).
|
|
1713
|
+
protoOf(ByteArrayPool$1).o1l = function () {
|
|
1714
1714
|
return new Int8Array(4096);
|
|
1715
1715
|
};
|
|
1716
1716
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -1722,13 +1722,13 @@
|
|
|
1722
1722
|
}
|
|
1723
1723
|
function Companion_1() {
|
|
1724
1724
|
}
|
|
1725
|
-
protoOf(Companion_1).
|
|
1725
|
+
protoOf(Companion_1).x1l = function (name) {
|
|
1726
1726
|
switch (name) {
|
|
1727
1727
|
case 'UTF-8':
|
|
1728
1728
|
case 'utf-8':
|
|
1729
1729
|
case 'UTF8':
|
|
1730
1730
|
case 'utf8':
|
|
1731
|
-
return Charsets_getInstance().
|
|
1731
|
+
return Charsets_getInstance().g1l_1;
|
|
1732
1732
|
}
|
|
1733
1733
|
var tmp;
|
|
1734
1734
|
var tmp_0;
|
|
@@ -1767,11 +1767,11 @@
|
|
|
1767
1767
|
tmp = name === 'Latin1';
|
|
1768
1768
|
}
|
|
1769
1769
|
if (tmp) {
|
|
1770
|
-
return Charsets_getInstance().
|
|
1770
|
+
return Charsets_getInstance().h1l_1;
|
|
1771
1771
|
}
|
|
1772
1772
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
1773
1773
|
};
|
|
1774
|
-
protoOf(Companion_1).
|
|
1774
|
+
protoOf(Companion_1).y1l = function (charset) {
|
|
1775
1775
|
var tmp;
|
|
1776
1776
|
switch (charset) {
|
|
1777
1777
|
case 'UTF-8':
|
|
@@ -1828,7 +1828,7 @@
|
|
|
1828
1828
|
return Companion_instance_2;
|
|
1829
1829
|
}
|
|
1830
1830
|
function Charset(_name) {
|
|
1831
|
-
this.
|
|
1831
|
+
this.i1l_1 = _name;
|
|
1832
1832
|
}
|
|
1833
1833
|
protoOf(Charset).equals = function (other) {
|
|
1834
1834
|
if (this === other)
|
|
@@ -1837,21 +1837,21 @@
|
|
|
1837
1837
|
return false;
|
|
1838
1838
|
if (!(other instanceof Charset))
|
|
1839
1839
|
THROW_CCE();
|
|
1840
|
-
return this.
|
|
1840
|
+
return this.i1l_1 === other.i1l_1;
|
|
1841
1841
|
};
|
|
1842
1842
|
protoOf(Charset).hashCode = function () {
|
|
1843
|
-
return getStringHashCode(this.
|
|
1843
|
+
return getStringHashCode(this.i1l_1);
|
|
1844
1844
|
};
|
|
1845
1845
|
protoOf(Charset).toString = function () {
|
|
1846
|
-
return this.
|
|
1846
|
+
return this.i1l_1;
|
|
1847
1847
|
};
|
|
1848
1848
|
function get_name(_this__u8e3s4) {
|
|
1849
|
-
return _this__u8e3s4.
|
|
1849
|
+
return _this__u8e3s4.i1l_1;
|
|
1850
1850
|
}
|
|
1851
1851
|
function Charsets() {
|
|
1852
1852
|
Charsets_instance = this;
|
|
1853
|
-
this.
|
|
1854
|
-
this.
|
|
1853
|
+
this.g1l_1 = new CharsetImpl('UTF-8');
|
|
1854
|
+
this.h1l_1 = new CharsetImpl('ISO-8859-1');
|
|
1855
1855
|
}
|
|
1856
1856
|
var Charsets_instance;
|
|
1857
1857
|
function Charsets_getInstance() {
|
|
@@ -1864,29 +1864,29 @@
|
|
|
1864
1864
|
captureStack(this, MalformedInputException);
|
|
1865
1865
|
}
|
|
1866
1866
|
function CharsetDecoder(_charset) {
|
|
1867
|
-
this.
|
|
1867
|
+
this.z1l_1 = _charset;
|
|
1868
1868
|
}
|
|
1869
1869
|
function CharsetEncoder(_charset) {
|
|
1870
|
-
this.
|
|
1870
|
+
this.a1m_1 = _charset;
|
|
1871
1871
|
}
|
|
1872
1872
|
function CharsetImpl(name) {
|
|
1873
1873
|
Charset.call(this, name);
|
|
1874
1874
|
}
|
|
1875
|
-
protoOf(CharsetImpl).
|
|
1875
|
+
protoOf(CharsetImpl).k1l = function () {
|
|
1876
1876
|
return new CharsetEncoderImpl(this);
|
|
1877
1877
|
};
|
|
1878
|
-
protoOf(CharsetImpl).
|
|
1878
|
+
protoOf(CharsetImpl).j1l = function () {
|
|
1879
1879
|
return new CharsetDecoderImpl(this);
|
|
1880
1880
|
};
|
|
1881
1881
|
function CharsetEncoderImpl(charset) {
|
|
1882
1882
|
CharsetEncoder.call(this, charset);
|
|
1883
|
-
this.
|
|
1883
|
+
this.d1m_1 = charset;
|
|
1884
1884
|
}
|
|
1885
1885
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
1886
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
1886
|
+
return 'CharsetEncoderImpl(charset=' + this.d1m_1.toString() + ')';
|
|
1887
1887
|
};
|
|
1888
1888
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
1889
|
-
return this.
|
|
1889
|
+
return this.d1m_1.hashCode();
|
|
1890
1890
|
};
|
|
1891
1891
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
1892
1892
|
if (this === other)
|
|
@@ -1894,19 +1894,19 @@
|
|
|
1894
1894
|
if (!(other instanceof CharsetEncoderImpl))
|
|
1895
1895
|
return false;
|
|
1896
1896
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
1897
|
-
if (!this.
|
|
1897
|
+
if (!this.d1m_1.equals(tmp0_other_with_cast.d1m_1))
|
|
1898
1898
|
return false;
|
|
1899
1899
|
return true;
|
|
1900
1900
|
};
|
|
1901
1901
|
function CharsetDecoderImpl(charset) {
|
|
1902
1902
|
CharsetDecoder.call(this, charset);
|
|
1903
|
-
this.
|
|
1903
|
+
this.f1m_1 = charset;
|
|
1904
1904
|
}
|
|
1905
1905
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
1906
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
1906
|
+
return 'CharsetDecoderImpl(charset=' + this.f1m_1.toString() + ')';
|
|
1907
1907
|
};
|
|
1908
1908
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
1909
|
-
return this.
|
|
1909
|
+
return this.f1m_1.hashCode();
|
|
1910
1910
|
};
|
|
1911
1911
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
1912
1912
|
if (this === other)
|
|
@@ -1914,7 +1914,7 @@
|
|
|
1914
1914
|
if (!(other instanceof CharsetDecoderImpl))
|
|
1915
1915
|
return false;
|
|
1916
1916
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
1917
|
-
if (!this.
|
|
1917
|
+
if (!this.f1m_1.equals(tmp0_other_with_cast.f1m_1))
|
|
1918
1918
|
return false;
|
|
1919
1919
|
return true;
|
|
1920
1920
|
};
|
|
@@ -1925,7 +1925,7 @@
|
|
|
1925
1925
|
}
|
|
1926
1926
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
1927
1927
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
1928
|
-
var tmp0 = input.
|
|
1928
|
+
var tmp0 = input.c1b().s();
|
|
1929
1929
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1930
1930
|
var b = toLong(max);
|
|
1931
1931
|
var count = tmp0.e1(b) <= 0 ? tmp0 : b;
|
|
@@ -1933,7 +1933,7 @@
|
|
|
1933
1933
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
1934
1934
|
var tmp_0;
|
|
1935
1935
|
try {
|
|
1936
|
-
tmp_0 = decoder.
|
|
1936
|
+
tmp_0 = decoder.g1m(array);
|
|
1937
1937
|
} catch ($p) {
|
|
1938
1938
|
var tmp_1;
|
|
1939
1939
|
if ($p instanceof Error) {
|
|
@@ -1964,7 +1964,7 @@
|
|
|
1964
1964
|
return readByteArray_0(dst);
|
|
1965
1965
|
}
|
|
1966
1966
|
function get_charset(_this__u8e3s4) {
|
|
1967
|
-
return _this__u8e3s4.
|
|
1967
|
+
return _this__u8e3s4.z1l_1;
|
|
1968
1968
|
}
|
|
1969
1969
|
function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
1970
1970
|
// Inline function 'kotlin.require' call
|
|
@@ -1974,11 +1974,11 @@
|
|
|
1974
1974
|
var message = 'Failed requirement.';
|
|
1975
1975
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1976
1976
|
}
|
|
1977
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
1977
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().h1l_1)) {
|
|
1978
1978
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
1979
1979
|
}
|
|
1980
1980
|
// Inline function 'kotlin.require' call
|
|
1981
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
1981
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().g1l_1)) {
|
|
1982
1982
|
// Inline function 'io.ktor.utils.io.charsets.encodeImpl.<anonymous>' call
|
|
1983
1983
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
1984
1984
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
@@ -1989,17 +1989,17 @@
|
|
|
1989
1989
|
var result = encoder.encode(tmp$ret$2);
|
|
1990
1990
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1991
1991
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1992
|
-
dst.
|
|
1992
|
+
dst.o1c(result);
|
|
1993
1993
|
return result.length;
|
|
1994
1994
|
}
|
|
1995
1995
|
function get_charset_0(_this__u8e3s4) {
|
|
1996
|
-
return _this__u8e3s4.
|
|
1996
|
+
return _this__u8e3s4.a1m_1;
|
|
1997
1997
|
}
|
|
1998
1998
|
function forName(_this__u8e3s4, name) {
|
|
1999
|
-
return Companion_instance_2.
|
|
1999
|
+
return Companion_instance_2.x1l(name);
|
|
2000
2000
|
}
|
|
2001
2001
|
function isSupported(_this__u8e3s4, name) {
|
|
2002
|
-
return Companion_instance_2.
|
|
2002
|
+
return Companion_instance_2.y1l(name);
|
|
2003
2003
|
}
|
|
2004
2004
|
function Decoder(encoding, fatal) {
|
|
2005
2005
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -2033,10 +2033,10 @@
|
|
|
2033
2033
|
return this_0;
|
|
2034
2034
|
}
|
|
2035
2035
|
function toKtor$1($this_toKtor) {
|
|
2036
|
-
this.
|
|
2036
|
+
this.h1m_1 = $this_toKtor;
|
|
2037
2037
|
}
|
|
2038
|
-
protoOf(toKtor$1).
|
|
2039
|
-
return this.
|
|
2038
|
+
protoOf(toKtor$1).g1m = function (buffer) {
|
|
2039
|
+
return this.h1m_1.decode(buffer);
|
|
2040
2040
|
};
|
|
2041
2041
|
function get_ENCODING_ALIASES() {
|
|
2042
2042
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -2049,7 +2049,7 @@
|
|
|
2049
2049
|
}
|
|
2050
2050
|
var REPLACEMENT;
|
|
2051
2051
|
function TextDecoderFallback(encoding, fatal) {
|
|
2052
|
-
this.
|
|
2052
|
+
this.i1m_1 = fatal;
|
|
2053
2053
|
// Inline function 'kotlin.text.trim' call
|
|
2054
2054
|
// Inline function 'kotlin.text.lowercase' call
|
|
2055
2055
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2061,7 +2061,7 @@
|
|
|
2061
2061
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
-
protoOf(TextDecoderFallback).
|
|
2064
|
+
protoOf(TextDecoderFallback).g1m = function (buffer) {
|
|
2065
2065
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
2066
2066
|
var builder = new Buffer();
|
|
2067
2067
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>' call
|
|
@@ -2078,7 +2078,7 @@
|
|
|
2078
2078
|
var point = toCodePoint(byte);
|
|
2079
2079
|
if (point < 0) {
|
|
2080
2080
|
// Inline function 'kotlin.check' call
|
|
2081
|
-
if (!!this.
|
|
2081
|
+
if (!!this.i1m_1) {
|
|
2082
2082
|
// Inline function 'io.ktor.utils.io.charsets.TextDecoderFallback.decode.<anonymous>.<anonymous>' call
|
|
2083
2083
|
var message = 'Invalid character: ' + point;
|
|
2084
2084
|
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
@@ -2087,9 +2087,9 @@
|
|
|
2087
2087
|
continue $l$loop;
|
|
2088
2088
|
}
|
|
2089
2089
|
if (point > 255) {
|
|
2090
|
-
builder.
|
|
2090
|
+
builder.u1c(toByte(point >> 8));
|
|
2091
2091
|
}
|
|
2092
|
-
builder.
|
|
2092
|
+
builder.u1c(toByte(point & 255));
|
|
2093
2093
|
}
|
|
2094
2094
|
while (inductionVariable < last);
|
|
2095
2095
|
return decodeToString(readByteArray_0(builder));
|
|
@@ -2129,7 +2129,7 @@
|
|
|
2129
2129
|
if (character > 255) {
|
|
2130
2130
|
failedToMapError(character);
|
|
2131
2131
|
}
|
|
2132
|
-
dst.
|
|
2132
|
+
dst.u1c(toByte(character));
|
|
2133
2133
|
}
|
|
2134
2134
|
while (inductionVariable < toIndex);
|
|
2135
2135
|
return toIndex - fromIndex | 0;
|
|
@@ -2151,48 +2151,48 @@
|
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
function DefaultPool(capacity) {
|
|
2154
|
-
this.
|
|
2154
|
+
this.p1l_1 = capacity;
|
|
2155
2155
|
var tmp = this;
|
|
2156
2156
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
2157
|
-
var size = this.
|
|
2158
|
-
tmp.
|
|
2159
|
-
this.
|
|
2157
|
+
var size = this.p1l_1;
|
|
2158
|
+
tmp.q1l_1 = fillArrayVal(Array(size), null);
|
|
2159
|
+
this.r1l_1 = 0;
|
|
2160
2160
|
}
|
|
2161
|
-
protoOf(DefaultPool).
|
|
2161
|
+
protoOf(DefaultPool).s1l = function (instance) {
|
|
2162
2162
|
};
|
|
2163
|
-
protoOf(DefaultPool).
|
|
2163
|
+
protoOf(DefaultPool).t1l = function (instance) {
|
|
2164
2164
|
return instance;
|
|
2165
2165
|
};
|
|
2166
|
-
protoOf(DefaultPool).
|
|
2166
|
+
protoOf(DefaultPool).u1l = function (instance) {
|
|
2167
2167
|
};
|
|
2168
|
-
protoOf(DefaultPool).
|
|
2169
|
-
if (this.
|
|
2170
|
-
return this.
|
|
2171
|
-
this.
|
|
2172
|
-
var idx = this.
|
|
2173
|
-
var tmp = this.
|
|
2168
|
+
protoOf(DefaultPool).v1l = function () {
|
|
2169
|
+
if (this.r1l_1 === 0)
|
|
2170
|
+
return this.o1l();
|
|
2171
|
+
this.r1l_1 = this.r1l_1 - 1 | 0;
|
|
2172
|
+
var idx = this.r1l_1;
|
|
2173
|
+
var tmp = this.q1l_1[idx];
|
|
2174
2174
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
2175
|
-
this.
|
|
2176
|
-
return this.
|
|
2175
|
+
this.q1l_1[idx] = null;
|
|
2176
|
+
return this.t1l(instance);
|
|
2177
2177
|
};
|
|
2178
|
-
protoOf(DefaultPool).
|
|
2179
|
-
this.
|
|
2180
|
-
if (this.
|
|
2181
|
-
this.
|
|
2178
|
+
protoOf(DefaultPool).w1l = function (instance) {
|
|
2179
|
+
this.u1l(instance);
|
|
2180
|
+
if (this.r1l_1 === this.p1l_1) {
|
|
2181
|
+
this.s1l(instance);
|
|
2182
2182
|
} else {
|
|
2183
|
-
var _unary__edvuaz = this.
|
|
2184
|
-
this.
|
|
2185
|
-
this.
|
|
2183
|
+
var _unary__edvuaz = this.r1l_1;
|
|
2184
|
+
this.r1l_1 = _unary__edvuaz + 1 | 0;
|
|
2185
|
+
this.q1l_1[_unary__edvuaz] = instance;
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
2188
2188
|
//region block: post-declaration
|
|
2189
|
-
protoOf(Read).
|
|
2190
|
-
protoOf(Read).
|
|
2191
|
-
protoOf(Write).
|
|
2192
|
-
protoOf(Write).
|
|
2193
|
-
protoOf(ByteChannel).
|
|
2194
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
2195
|
-
protoOf(SourceByteReadChannel).
|
|
2189
|
+
protoOf(Read).g1e = resume;
|
|
2190
|
+
protoOf(Read).h1e = resume_0;
|
|
2191
|
+
protoOf(Write).g1e = resume;
|
|
2192
|
+
protoOf(Write).h1e = resume_0;
|
|
2193
|
+
protoOf(ByteChannel).n1g = awaitContent$default;
|
|
2194
|
+
protoOf(ByteReadChannel$Companion$Empty$1).n1g = awaitContent$default;
|
|
2195
|
+
protoOf(SourceByteReadChannel).n1g = awaitContent$default;
|
|
2196
2196
|
//endregion
|
|
2197
2197
|
//region block: init
|
|
2198
2198
|
Empty_instance = new Empty();
|