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