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