@xiuper/mpp-core 0.0.2 → 0.2.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-DateTime-library-kotlinx-datetime.js +1796 -1796
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +278 -278
- package/Xiuper-mpp-codegraph.js +240 -240
- package/kaml.js +639 -639
- package/koog-agents-agents-core.js +4606 -4606
- package/koog-agents-agents-tools.js +41 -41
- package/koog-agents-agents-utils.js +52 -52
- package/koog-http-client-http-client-core.js +4 -4
- package/koog-http-client-http-client-ktor.js +166 -166
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +906 -906
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +299 -299
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +838 -838
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +452 -452
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +1002 -1002
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +3358 -3358
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +532 -532
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +29 -29
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +25 -25
- package/koog-prompt-prompt-executor-prompt-executor-model.js +4 -4
- package/koog-prompt-prompt-llm.js +120 -120
- package/koog-prompt-prompt-markdown.js +30 -30
- package/koog-prompt-prompt-model.js +1055 -1055
- package/koog-prompt-prompt-structure.js +342 -342
- package/koog-utils.js +10 -10
- package/kotlin-kotlin-stdlib.js +453 -411
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging.js +116 -116
- package/kotlin-sdk-kotlin-sdk-client.js +260 -260
- package/kotlin-sdk-kotlin-sdk-core.js +2568 -2568
- package/kotlinx-atomicfu.js +5 -5
- package/kotlinx-coroutines-core.js +532 -654
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +40 -40
- package/kotlinx-io-kotlinx-io-core.js +605 -605
- package/kotlinx-serialization-kotlinx-serialization-core.js +75 -75
- package/kotlinx-serialization-kotlinx-serialization-json.js +95 -95
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +163 -163
- package/ktor-ktor-client-core.js +2237 -2235
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +15 -15
- package/ktor-ktor-http-cio.js +725 -725
- package/ktor-ktor-http.js +805 -805
- package/ktor-ktor-io.js +766 -766
- package/ktor-ktor-network.js +285 -285
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +130 -130
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-server-cio.js +724 -724
- package/ktor-ktor-server-core.js +1793 -1793
- package/ktor-ktor-server-sse.js +125 -125
- package/ktor-ktor-sse.js +40 -40
- package/ktor-ktor-utils.js +690 -690
- package/ktor-ktor-websockets.js +49 -49
- package/markdown.js +1561 -1561
- package/okio-parent-okio.js +368 -368
- package/package.json +1 -1
- package/snakeyaml-engine-kmp.js +2005 -2005
- package/urlencoder-urlencoder-lib.js +43 -43
- package/xiuper-mpp-core.d.ts +45 -7
- package/xiuper-mpp-core.js +22405 -18664
- package/xiuper-mpp-core.js.map +1 -1
- package/autodev-mpp-core.d.ts +0 -1312
- package/autodev-mpp-core.js +0 -86483
- package/autodev-mpp-core.js.map +0 -1
package/ktor-ktor-io.js
CHANGED
|
@@ -27,62 +27,62 @@
|
|
|
27
27
|
var Companion_instance = kotlin_kotlin.$_$.c6;
|
|
28
28
|
var Unit_instance = kotlin_kotlin.$_$.h6;
|
|
29
29
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.s3;
|
|
30
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
32
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
33
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
34
|
-
var toString = kotlin_kotlin.$_$.
|
|
35
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
36
|
-
var equals = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
38
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
39
|
-
var Result = kotlin_kotlin.$_$.
|
|
40
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
41
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var newThrowable = kotlin_kotlin.$_$.
|
|
43
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
30
|
+
var protoOf = kotlin_kotlin.$_$.ze;
|
|
31
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.yd;
|
|
32
|
+
var THROW_CCE = kotlin_kotlin.$_$.dl;
|
|
33
|
+
var initMetadataForObject = kotlin_kotlin.$_$.de;
|
|
34
|
+
var toString = kotlin_kotlin.$_$.km;
|
|
35
|
+
var hashCode = kotlin_kotlin.$_$.wd;
|
|
36
|
+
var equals = kotlin_kotlin.$_$.pd;
|
|
37
|
+
var initMetadataForClass = kotlin_kotlin.$_$.xd;
|
|
38
|
+
var createFailure = kotlin_kotlin.$_$.vl;
|
|
39
|
+
var Result = kotlin_kotlin.$_$.bl;
|
|
40
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.be;
|
|
41
|
+
var toString_0 = kotlin_kotlin.$_$.qj;
|
|
42
|
+
var newThrowable = kotlin_kotlin.$_$.te;
|
|
43
|
+
var stackTraceToString = kotlin_kotlin.$_$.gm;
|
|
44
44
|
var VOID = kotlin_kotlin.$_$.h;
|
|
45
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
46
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
47
|
-
var toLong = kotlin_kotlin.$_$.
|
|
48
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
49
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
50
|
-
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
51
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
45
|
+
var isInterface = kotlin_kotlin.$_$.me;
|
|
46
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wc;
|
|
47
|
+
var toLong = kotlin_kotlin.$_$.bf;
|
|
48
|
+
var numberToLong = kotlin_kotlin.$_$.xe;
|
|
49
|
+
var intercepted = kotlin_kotlin.$_$.jc;
|
|
50
|
+
var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t1;
|
|
51
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.dm;
|
|
52
52
|
var returnIfSuspended = kotlin_kotlin.$_$.p;
|
|
53
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
54
|
-
var Long = kotlin_kotlin.$_$.
|
|
55
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
53
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.gc;
|
|
54
|
+
var Long = kotlin_kotlin.$_$.wk;
|
|
55
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.zd;
|
|
56
56
|
var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
|
|
57
57
|
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
58
|
-
var IllegalStateException = kotlin_kotlin.$_$.
|
|
58
|
+
var IllegalStateException = kotlin_kotlin.$_$.uk;
|
|
59
59
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.k2;
|
|
60
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
60
|
+
var captureStack = kotlin_kotlin.$_$.gd;
|
|
61
61
|
var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
|
|
62
62
|
var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
|
|
63
|
-
var replace = kotlin_kotlin.$_$.
|
|
63
|
+
var replace = kotlin_kotlin.$_$.gi;
|
|
64
64
|
var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
|
|
65
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
65
|
+
var toString_1 = kotlin_kotlin.$_$.df;
|
|
66
66
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e2;
|
|
67
|
-
var cancelChildren = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
67
|
+
var cancelChildren = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h2;
|
|
68
68
|
var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.i5;
|
|
69
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
70
|
-
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
71
|
-
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
72
|
-
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
73
|
-
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
74
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
69
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b2;
|
|
70
|
+
var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p2;
|
|
71
|
+
var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o2;
|
|
72
|
+
var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c2;
|
|
73
|
+
var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l2;
|
|
74
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ce;
|
|
75
75
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
76
76
|
var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.u;
|
|
77
|
-
var closeFinally = kotlin_kotlin.$_$.
|
|
77
|
+
var closeFinally = kotlin_kotlin.$_$.sl;
|
|
78
78
|
var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
|
|
79
79
|
var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.r;
|
|
80
|
-
var initMetadataForFunctionReference = kotlin_kotlin.$_$.
|
|
81
|
-
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
82
|
-
var Continuation = kotlin_kotlin.$_$.
|
|
80
|
+
var initMetadataForFunctionReference = kotlin_kotlin.$_$.ae;
|
|
81
|
+
var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
82
|
+
var Continuation = kotlin_kotlin.$_$.qc;
|
|
83
83
|
var CancellationException_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
84
|
-
var CancellationException = kotlin_kotlin.$_$.
|
|
85
|
-
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
84
|
+
var CancellationException = kotlin_kotlin.$_$.fc;
|
|
85
|
+
var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y1;
|
|
86
86
|
var readString_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.s;
|
|
87
87
|
var IOException = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
|
|
88
88
|
var IOException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.d;
|
|
@@ -91,25 +91,25 @@
|
|
|
91
91
|
var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
|
|
92
92
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.o1;
|
|
93
93
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j2;
|
|
94
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
94
|
+
var charSequenceLength = kotlin_kotlin.$_$.ld;
|
|
95
95
|
var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
|
|
96
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
96
|
+
var encodeToByteArray = kotlin_kotlin.$_$.tg;
|
|
97
97
|
var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.t;
|
|
98
98
|
var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.v;
|
|
99
|
-
var AutoCloseable = kotlin_kotlin.$_$.
|
|
99
|
+
var AutoCloseable = kotlin_kotlin.$_$.jk;
|
|
100
100
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.j3;
|
|
101
|
-
var replace_0 = kotlin_kotlin.$_$.
|
|
102
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
101
|
+
var replace_0 = kotlin_kotlin.$_$.hi;
|
|
102
|
+
var getStringHashCode = kotlin_kotlin.$_$.vd;
|
|
103
103
|
var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
|
|
104
104
|
var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.q;
|
|
105
|
-
var charSequenceSubSequence = kotlin_kotlin.$_$.
|
|
106
|
-
var isCharSequence = kotlin_kotlin.$_$.
|
|
107
|
-
var trim = kotlin_kotlin.$_$.
|
|
108
|
-
var toByte = kotlin_kotlin.$_$.
|
|
109
|
-
var decodeToString_0 = kotlin_kotlin.$_$.
|
|
110
|
-
var setOf = kotlin_kotlin.$_$.
|
|
111
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
112
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
105
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.md;
|
|
106
|
+
var isCharSequence = kotlin_kotlin.$_$.ie;
|
|
107
|
+
var trim = kotlin_kotlin.$_$.ck;
|
|
108
|
+
var toByte = kotlin_kotlin.$_$.af;
|
|
109
|
+
var decodeToString_0 = kotlin_kotlin.$_$.pg;
|
|
110
|
+
var setOf = kotlin_kotlin.$_$.ra;
|
|
111
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.u;
|
|
112
|
+
var charSequenceGet = kotlin_kotlin.$_$.kd;
|
|
113
113
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.q3;
|
|
114
114
|
//endregion
|
|
115
115
|
//region block: pre-declaration
|
|
@@ -117,10 +117,10 @@
|
|
|
117
117
|
initMetadataForObject(Empty, 'Empty');
|
|
118
118
|
initMetadataForClass(Closed, 'Closed');
|
|
119
119
|
function resume() {
|
|
120
|
-
return this.
|
|
120
|
+
return this.e4f().ia(Companion_getInstance().b4f_1);
|
|
121
121
|
}
|
|
122
122
|
function resume_0(throwable) {
|
|
123
|
-
var tmp = this.
|
|
123
|
+
var tmp = this.e4f();
|
|
124
124
|
var tmp_0;
|
|
125
125
|
if (throwable == null) {
|
|
126
126
|
tmp_0 = null;
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
tmp_0 = new Result(tmp$ret$2);
|
|
132
132
|
}
|
|
133
133
|
var tmp1_elvis_lhs = tmp_0;
|
|
134
|
-
return tmp.ia(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
134
|
+
return tmp.ia(tmp1_elvis_lhs == null ? Companion_getInstance().b4f_1 : tmp1_elvis_lhs.vs_1);
|
|
135
135
|
}
|
|
136
136
|
initMetadataForInterface(Task, 'Task');
|
|
137
137
|
initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
142
142
|
function awaitContent$default(min, $completion, $super) {
|
|
143
143
|
min = min === VOID ? 1 : min;
|
|
144
|
-
return $super === VOID ? this.
|
|
144
|
+
return $super === VOID ? this.r4h(min, $completion) : $super.r4h.call(this, min, $completion);
|
|
145
145
|
}
|
|
146
146
|
initMetadataForInterface(ByteReadChannel_2, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
147
147
|
function get_autoFlush() {
|
|
@@ -216,10 +216,10 @@
|
|
|
216
216
|
//endregion
|
|
217
217
|
function Companion() {
|
|
218
218
|
Companion_instance_0 = this;
|
|
219
|
-
this.
|
|
219
|
+
this.a4f_1 = new Closed(null);
|
|
220
220
|
var tmp = this;
|
|
221
221
|
// Inline function 'kotlin.Companion.success' call
|
|
222
|
-
tmp.
|
|
222
|
+
tmp.b4f_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
223
223
|
}
|
|
224
224
|
var Companion_instance_0;
|
|
225
225
|
function Companion_getInstance() {
|
|
@@ -248,13 +248,13 @@
|
|
|
248
248
|
return Empty_instance;
|
|
249
249
|
}
|
|
250
250
|
function Closed(cause) {
|
|
251
|
-
this.
|
|
251
|
+
this.c4f_1 = cause;
|
|
252
252
|
}
|
|
253
253
|
protoOf(Closed).toString = function () {
|
|
254
|
-
return 'Closed(cause=' + toString(this.
|
|
254
|
+
return 'Closed(cause=' + toString(this.c4f_1) + ')';
|
|
255
255
|
};
|
|
256
256
|
protoOf(Closed).hashCode = function () {
|
|
257
|
-
return this.
|
|
257
|
+
return this.c4f_1 == null ? 0 : hashCode(this.c4f_1);
|
|
258
258
|
};
|
|
259
259
|
protoOf(Closed).equals = function (other) {
|
|
260
260
|
if (this === other)
|
|
@@ -262,74 +262,74 @@
|
|
|
262
262
|
if (!(other instanceof Closed))
|
|
263
263
|
return false;
|
|
264
264
|
var tmp0_other_with_cast = other instanceof Closed ? other : THROW_CCE();
|
|
265
|
-
if (!equals(this.
|
|
265
|
+
if (!equals(this.c4f_1, tmp0_other_with_cast.c4f_1))
|
|
266
266
|
return false;
|
|
267
267
|
return true;
|
|
268
268
|
};
|
|
269
269
|
function Task() {
|
|
270
270
|
}
|
|
271
271
|
function Read(continuation) {
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
272
|
+
this.i4f_1 = continuation;
|
|
273
|
+
this.j4f_1 = null;
|
|
274
274
|
if (get_DEVELOPMENT_MODE()) {
|
|
275
275
|
var tmp = this;
|
|
276
276
|
// Inline function 'kotlin.also' call
|
|
277
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
277
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.i4f_1), 16));
|
|
278
278
|
stackTraceToString(this_0);
|
|
279
|
-
tmp.
|
|
279
|
+
tmp.j4f_1 = this_0;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
protoOf(Read).
|
|
283
|
-
return this.
|
|
282
|
+
protoOf(Read).e4f = function () {
|
|
283
|
+
return this.i4f_1;
|
|
284
284
|
};
|
|
285
|
-
protoOf(Read).
|
|
286
|
-
return this.
|
|
285
|
+
protoOf(Read).d4f = function () {
|
|
286
|
+
return this.j4f_1;
|
|
287
287
|
};
|
|
288
|
-
protoOf(Read).
|
|
288
|
+
protoOf(Read).f4f = function () {
|
|
289
289
|
return 'read';
|
|
290
290
|
};
|
|
291
291
|
function Write(continuation) {
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
292
|
+
this.k4f_1 = continuation;
|
|
293
|
+
this.l4f_1 = null;
|
|
294
294
|
if (get_DEVELOPMENT_MODE()) {
|
|
295
295
|
var tmp = this;
|
|
296
296
|
// Inline function 'kotlin.also' call
|
|
297
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
297
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.k4f_1), 16));
|
|
298
298
|
stackTraceToString(this_0);
|
|
299
|
-
tmp.
|
|
299
|
+
tmp.l4f_1 = this_0;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
protoOf(Write).
|
|
303
|
-
return this.
|
|
302
|
+
protoOf(Write).e4f = function () {
|
|
303
|
+
return this.k4f_1;
|
|
304
304
|
};
|
|
305
|
-
protoOf(Write).
|
|
306
|
-
return this.
|
|
305
|
+
protoOf(Write).d4f = function () {
|
|
306
|
+
return this.l4f_1;
|
|
307
307
|
};
|
|
308
|
-
protoOf(Write).
|
|
308
|
+
protoOf(Write).f4f = function () {
|
|
309
309
|
return 'write';
|
|
310
310
|
};
|
|
311
311
|
function moveFlushToReadBuffer($this) {
|
|
312
312
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
313
|
-
$this.
|
|
314
|
-
$this.
|
|
315
|
-
$this.
|
|
313
|
+
$this.p4f_1;
|
|
314
|
+
$this.n4f_1.z3a($this.r4f_1);
|
|
315
|
+
$this.o4f_1 = 0;
|
|
316
316
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
317
|
-
var current = $this.
|
|
317
|
+
var current = $this.q4f_1.kotlinx$atomicfu$value;
|
|
318
318
|
var tmp;
|
|
319
319
|
if (current instanceof Write) {
|
|
320
|
-
tmp = $this.
|
|
320
|
+
tmp = $this.q4f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
321
321
|
} else {
|
|
322
322
|
tmp = false;
|
|
323
323
|
}
|
|
324
324
|
if (tmp) {
|
|
325
|
-
current.
|
|
325
|
+
current.g4f();
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
function closeSlot($this, cause) {
|
|
329
|
-
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().
|
|
330
|
-
var continuation = $this.
|
|
329
|
+
var closeContinuation = !(cause == null) ? new Closed(cause) : Companion_getInstance().a4f_1;
|
|
330
|
+
var continuation = $this.q4f_1.atomicfu$getAndSet(closeContinuation);
|
|
331
331
|
if (isInterface(continuation, Task)) {
|
|
332
|
-
continuation.
|
|
332
|
+
continuation.h4f(cause);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
@@ -348,8 +348,8 @@
|
|
|
348
348
|
}
|
|
349
349
|
function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
|
|
350
350
|
CoroutineImpl.call(this, resultContinuation);
|
|
351
|
-
this.
|
|
352
|
-
this.
|
|
351
|
+
this.c4g_1 = _this__u8e3s4;
|
|
352
|
+
this.d4g_1 = min;
|
|
353
353
|
}
|
|
354
354
|
protoOf($awaitContentCOROUTINE$).fa = function () {
|
|
355
355
|
var suspendResult = this.z9_1;
|
|
@@ -359,16 +359,16 @@
|
|
|
359
359
|
switch (tmp) {
|
|
360
360
|
case 0:
|
|
361
361
|
this.y9_1 = 4;
|
|
362
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
363
|
-
if (this.
|
|
362
|
+
rethrowCloseCauseIfNeeded_0(this.c4g_1);
|
|
363
|
+
if (this.c4g_1.r4f_1.s().j1(toLong(this.d4g_1)) >= 0)
|
|
364
364
|
return true;
|
|
365
365
|
var tmp_0 = this;
|
|
366
|
-
tmp_0.
|
|
367
|
-
this.
|
|
366
|
+
tmp_0.e4g_1 = this.c4g_1;
|
|
367
|
+
this.f4g_1 = this.e4g_1;
|
|
368
368
|
this.x9_1 = 1;
|
|
369
369
|
continue $sm;
|
|
370
370
|
case 1:
|
|
371
|
-
if (!(numberToLong(this.
|
|
371
|
+
if (!(numberToLong(this.c4g_1.o4f_1).b3(this.c4g_1.r4f_1.s()).j1(toLong(this.d4g_1)) < 0 && this.c4g_1.t4f_1.kotlinx$atomicfu$value == null)) {
|
|
372
372
|
this.x9_1 = 3;
|
|
373
373
|
continue $sm;
|
|
374
374
|
}
|
|
@@ -376,24 +376,24 @@
|
|
|
376
376
|
this.x9_1 = 2;
|
|
377
377
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
378
378
|
cancellable.b20();
|
|
379
|
-
var tmp0 = this.
|
|
379
|
+
var tmp0 = this.f4g_1;
|
|
380
380
|
var tmp2 = new Read(cancellable);
|
|
381
381
|
l$ret$1: do {
|
|
382
|
-
var previous = tmp0.
|
|
382
|
+
var previous = tmp0.q4f_1.kotlinx$atomicfu$value;
|
|
383
383
|
if (!(previous instanceof Closed)) {
|
|
384
|
-
if (!tmp0.
|
|
385
|
-
tmp2.
|
|
384
|
+
if (!tmp0.q4f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
385
|
+
tmp2.g4f();
|
|
386
386
|
break l$ret$1;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
if (previous instanceof Read) {
|
|
390
|
-
previous.
|
|
390
|
+
previous.h4f(new ConcurrentIOException(tmp2.f4f(), previous.d4f()));
|
|
391
391
|
} else {
|
|
392
392
|
if (isInterface(previous, Task)) {
|
|
393
|
-
previous.
|
|
393
|
+
previous.g4f();
|
|
394
394
|
} else {
|
|
395
395
|
if (previous instanceof Closed) {
|
|
396
|
-
tmp2.
|
|
396
|
+
tmp2.h4f(previous.c4f_1);
|
|
397
397
|
break l$ret$1;
|
|
398
398
|
} else {
|
|
399
399
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -402,16 +402,16 @@
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
if (!(numberToLong(this.
|
|
406
|
-
var current = tmp0.
|
|
405
|
+
if (!(numberToLong(this.c4g_1.o4f_1).b3(this.c4g_1.r4f_1.s()).j1(toLong(this.d4g_1)) < 0 && this.c4g_1.t4f_1.kotlinx$atomicfu$value == null)) {
|
|
406
|
+
var current = tmp0.q4f_1.kotlinx$atomicfu$value;
|
|
407
407
|
var tmp_1;
|
|
408
408
|
if (current instanceof Read) {
|
|
409
|
-
tmp_1 = tmp0.
|
|
409
|
+
tmp_1 = tmp0.q4f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
410
410
|
} else {
|
|
411
411
|
tmp_1 = false;
|
|
412
412
|
}
|
|
413
413
|
if (tmp_1) {
|
|
414
|
-
current.
|
|
414
|
+
current.g4f();
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -426,11 +426,11 @@
|
|
|
426
426
|
this.x9_1 = 1;
|
|
427
427
|
continue $sm;
|
|
428
428
|
case 3:
|
|
429
|
-
if (this.
|
|
430
|
-
moveFlushToReadBuffer(this.
|
|
429
|
+
if (this.c4g_1.r4f_1.s().j1(new Long(1048576, 0)) < 0) {
|
|
430
|
+
moveFlushToReadBuffer(this.c4g_1);
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
return this.
|
|
433
|
+
return this.c4g_1.r4f_1.s().j1(toLong(this.d4g_1)) >= 0;
|
|
434
434
|
case 4:
|
|
435
435
|
throw this.aa_1;
|
|
436
436
|
}
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
};
|
|
448
448
|
function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
449
449
|
CoroutineImpl.call(this, resultContinuation);
|
|
450
|
-
this.
|
|
450
|
+
this.o4g_1 = _this__u8e3s4;
|
|
451
451
|
}
|
|
452
452
|
protoOf($flushCOROUTINE$).fa = function () {
|
|
453
453
|
var suspendResult = this.z9_1;
|
|
@@ -457,17 +457,17 @@
|
|
|
457
457
|
switch (tmp) {
|
|
458
458
|
case 0:
|
|
459
459
|
this.y9_1 = 4;
|
|
460
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
461
|
-
this.
|
|
462
|
-
if (this.
|
|
460
|
+
rethrowCloseCauseIfNeeded_0(this.o4g_1);
|
|
461
|
+
this.o4g_1.r4g();
|
|
462
|
+
if (this.o4g_1.o4f_1 < 1048576)
|
|
463
463
|
return Unit_instance;
|
|
464
464
|
var tmp_0 = this;
|
|
465
|
-
tmp_0.
|
|
466
|
-
this.
|
|
465
|
+
tmp_0.p4g_1 = this.o4g_1;
|
|
466
|
+
this.q4g_1 = this.p4g_1;
|
|
467
467
|
this.x9_1 = 1;
|
|
468
468
|
continue $sm;
|
|
469
469
|
case 1:
|
|
470
|
-
if (!(this.
|
|
470
|
+
if (!(this.o4g_1.o4f_1 >= 1048576 && this.o4g_1.t4f_1.kotlinx$atomicfu$value == null)) {
|
|
471
471
|
this.x9_1 = 3;
|
|
472
472
|
continue $sm;
|
|
473
473
|
}
|
|
@@ -475,24 +475,24 @@
|
|
|
475
475
|
this.x9_1 = 2;
|
|
476
476
|
var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
|
|
477
477
|
cancellable.b20();
|
|
478
|
-
var tmp0 = this.
|
|
478
|
+
var tmp0 = this.q4g_1;
|
|
479
479
|
var tmp2 = new Write(cancellable);
|
|
480
480
|
l$ret$1: do {
|
|
481
|
-
var previous = tmp0.
|
|
481
|
+
var previous = tmp0.q4f_1.kotlinx$atomicfu$value;
|
|
482
482
|
if (!(previous instanceof Closed)) {
|
|
483
|
-
if (!tmp0.
|
|
484
|
-
tmp2.
|
|
483
|
+
if (!tmp0.q4f_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
484
|
+
tmp2.g4f();
|
|
485
485
|
break l$ret$1;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
if (previous instanceof Write) {
|
|
489
|
-
previous.
|
|
489
|
+
previous.h4f(new ConcurrentIOException(tmp2.f4f(), previous.d4f()));
|
|
490
490
|
} else {
|
|
491
491
|
if (isInterface(previous, Task)) {
|
|
492
|
-
previous.
|
|
492
|
+
previous.g4f();
|
|
493
493
|
} else {
|
|
494
494
|
if (previous instanceof Closed) {
|
|
495
|
-
tmp2.
|
|
495
|
+
tmp2.h4f(previous.c4f_1);
|
|
496
496
|
break l$ret$1;
|
|
497
497
|
} else {
|
|
498
498
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -501,16 +501,16 @@
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
if (!(this.
|
|
505
|
-
var current = tmp0.
|
|
504
|
+
if (!(this.o4g_1.o4f_1 >= 1048576 && this.o4g_1.t4f_1.kotlinx$atomicfu$value == null)) {
|
|
505
|
+
var current = tmp0.q4f_1.kotlinx$atomicfu$value;
|
|
506
506
|
var tmp_1;
|
|
507
507
|
if (current instanceof Write) {
|
|
508
|
-
tmp_1 = tmp0.
|
|
508
|
+
tmp_1 = tmp0.q4f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
509
509
|
} else {
|
|
510
510
|
tmp_1 = false;
|
|
511
511
|
}
|
|
512
512
|
if (tmp_1) {
|
|
513
|
-
current.
|
|
513
|
+
current.g4f();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
};
|
|
543
543
|
function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
544
544
|
CoroutineImpl.call(this, resultContinuation);
|
|
545
|
-
this.
|
|
545
|
+
this.a4h_1 = _this__u8e3s4;
|
|
546
546
|
}
|
|
547
547
|
protoOf($flushAndCloseCOROUTINE$).fa = function () {
|
|
548
548
|
var suspendResult = this.z9_1;
|
|
@@ -553,16 +553,16 @@
|
|
|
553
553
|
case 0:
|
|
554
554
|
this.y9_1 = 4;
|
|
555
555
|
var tmp_0 = this;
|
|
556
|
-
tmp_0.
|
|
557
|
-
this.
|
|
556
|
+
tmp_0.b4h_1 = this.a4h_1;
|
|
557
|
+
this.c4h_1 = this.b4h_1;
|
|
558
558
|
this.y9_1 = 2;
|
|
559
559
|
var tmp_1 = this;
|
|
560
|
-
tmp_1.
|
|
560
|
+
tmp_1.e4h_1 = Companion_instance;
|
|
561
561
|
var tmp_2 = this;
|
|
562
|
-
tmp_2.
|
|
563
|
-
this.
|
|
562
|
+
tmp_2.f4h_1 = this.c4h_1;
|
|
563
|
+
this.g4h_1 = this.f4h_1;
|
|
564
564
|
this.x9_1 = 1;
|
|
565
|
-
suspendResult = this.
|
|
565
|
+
suspendResult = this.g4h_1.h4h(this);
|
|
566
566
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
567
567
|
return suspendResult;
|
|
568
568
|
}
|
|
@@ -570,8 +570,8 @@
|
|
|
570
570
|
continue $sm;
|
|
571
571
|
case 1:
|
|
572
572
|
var tmp_3 = this;
|
|
573
|
-
this.
|
|
574
|
-
tmp_3.
|
|
573
|
+
this.e4h_1;
|
|
574
|
+
tmp_3.d4h_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
575
575
|
this.y9_1 = 4;
|
|
576
576
|
this.x9_1 = 3;
|
|
577
577
|
continue $sm;
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
if (tmp_4 instanceof Error) {
|
|
582
582
|
var e = this.aa_1;
|
|
583
583
|
var tmp_5 = this;
|
|
584
|
-
tmp_5.
|
|
584
|
+
tmp_5.d4h_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
585
585
|
this.x9_1 = 3;
|
|
586
586
|
continue $sm;
|
|
587
587
|
} else {
|
|
@@ -590,9 +590,9 @@
|
|
|
590
590
|
|
|
591
591
|
case 3:
|
|
592
592
|
this.y9_1 = 4;
|
|
593
|
-
if (!this.
|
|
593
|
+
if (!this.a4h_1.t4f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
594
594
|
return Unit_instance;
|
|
595
|
-
closeSlot(this.
|
|
595
|
+
closeSlot(this.a4h_1, null);
|
|
596
596
|
return Unit_instance;
|
|
597
597
|
case 4:
|
|
598
598
|
throw this.aa_1;
|
|
@@ -610,104 +610,104 @@
|
|
|
610
610
|
};
|
|
611
611
|
function ByteChannel(autoFlush) {
|
|
612
612
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
}
|
|
622
|
-
protoOf(ByteChannel).
|
|
623
|
-
return this.
|
|
613
|
+
this.m4f_1 = autoFlush;
|
|
614
|
+
this.n4f_1 = new Buffer();
|
|
615
|
+
this.o4f_1 = 0;
|
|
616
|
+
this.p4f_1 = new Object();
|
|
617
|
+
this.q4f_1 = atomic$ref$1(Empty_instance);
|
|
618
|
+
this.r4f_1 = new Buffer();
|
|
619
|
+
this.s4f_1 = new Buffer();
|
|
620
|
+
this.t4f_1 = atomic$ref$1(null);
|
|
621
|
+
}
|
|
622
|
+
protoOf(ByteChannel).i4h = function () {
|
|
623
|
+
return this.m4f_1;
|
|
624
624
|
};
|
|
625
|
-
protoOf(ByteChannel).
|
|
626
|
-
var tmp0_safe_receiver = this.
|
|
625
|
+
protoOf(ByteChannel).j4h = function () {
|
|
626
|
+
var tmp0_safe_receiver = this.t4f_1.kotlinx$atomicfu$value;
|
|
627
627
|
if (tmp0_safe_receiver == null)
|
|
628
628
|
null;
|
|
629
629
|
else {
|
|
630
|
-
tmp0_safe_receiver.
|
|
630
|
+
tmp0_safe_receiver.l4h(ClosedReadChannelException$_init_$ref_ix0089());
|
|
631
631
|
}
|
|
632
|
-
if (this.
|
|
632
|
+
if (this.r4f_1.w39()) {
|
|
633
633
|
moveFlushToReadBuffer(this);
|
|
634
634
|
}
|
|
635
|
-
return this.
|
|
635
|
+
return this.r4f_1;
|
|
636
636
|
};
|
|
637
|
-
protoOf(ByteChannel).
|
|
638
|
-
if (this.
|
|
639
|
-
var tmp0_safe_receiver = this.
|
|
637
|
+
protoOf(ByteChannel).m4h = function () {
|
|
638
|
+
if (this.n4h()) {
|
|
639
|
+
var tmp0_safe_receiver = this.t4f_1.kotlinx$atomicfu$value;
|
|
640
640
|
var tmp;
|
|
641
641
|
if (tmp0_safe_receiver == null) {
|
|
642
642
|
tmp = null;
|
|
643
643
|
} else {
|
|
644
|
-
tmp = tmp0_safe_receiver.
|
|
644
|
+
tmp = tmp0_safe_receiver.l4h(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
645
645
|
}
|
|
646
646
|
if (tmp == null)
|
|
647
647
|
throw new ClosedWriteChannelException();
|
|
648
648
|
}
|
|
649
|
-
return this.
|
|
649
|
+
return this.s4f_1;
|
|
650
650
|
};
|
|
651
|
-
protoOf(ByteChannel).
|
|
652
|
-
var tmp0_safe_receiver = this.
|
|
653
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
651
|
+
protoOf(ByteChannel).o4h = function () {
|
|
652
|
+
var tmp0_safe_receiver = this.t4f_1.kotlinx$atomicfu$value;
|
|
653
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p4h();
|
|
654
654
|
};
|
|
655
|
-
protoOf(ByteChannel).
|
|
656
|
-
return !(this.
|
|
655
|
+
protoOf(ByteChannel).n4h = function () {
|
|
656
|
+
return !(this.t4f_1.kotlinx$atomicfu$value == null);
|
|
657
657
|
};
|
|
658
|
-
protoOf(ByteChannel).
|
|
659
|
-
return !(this.
|
|
658
|
+
protoOf(ByteChannel).q4h = function () {
|
|
659
|
+
return !(this.o4h() == null) || (this.n4h() && this.o4f_1 === 0 && this.r4f_1.w39());
|
|
660
660
|
};
|
|
661
|
-
protoOf(ByteChannel).
|
|
661
|
+
protoOf(ByteChannel).r4h = function (min, $completion) {
|
|
662
662
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
663
663
|
tmp.z9_1 = Unit_instance;
|
|
664
664
|
tmp.aa_1 = null;
|
|
665
665
|
return tmp.fa();
|
|
666
666
|
};
|
|
667
|
-
protoOf(ByteChannel).
|
|
667
|
+
protoOf(ByteChannel).h4h = function ($completion) {
|
|
668
668
|
var tmp = new $flushCOROUTINE$(this, $completion);
|
|
669
669
|
tmp.z9_1 = Unit_instance;
|
|
670
670
|
tmp.aa_1 = null;
|
|
671
671
|
return tmp.fa();
|
|
672
672
|
};
|
|
673
|
-
protoOf(ByteChannel).
|
|
674
|
-
if (this.
|
|
673
|
+
protoOf(ByteChannel).r4g = function () {
|
|
674
|
+
if (this.s4f_1.w39())
|
|
675
675
|
return Unit_instance;
|
|
676
676
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
677
|
-
this.
|
|
678
|
-
var count = this.
|
|
679
|
-
this.
|
|
680
|
-
this.
|
|
677
|
+
this.p4f_1;
|
|
678
|
+
var count = this.s4f_1.s().l1();
|
|
679
|
+
this.n4f_1.o3b(this.s4f_1);
|
|
680
|
+
this.o4f_1 = this.o4f_1 + count | 0;
|
|
681
681
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
682
|
-
var current = this.
|
|
682
|
+
var current = this.q4f_1.kotlinx$atomicfu$value;
|
|
683
683
|
var tmp;
|
|
684
684
|
if (current instanceof Read) {
|
|
685
|
-
tmp = this.
|
|
685
|
+
tmp = this.q4f_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
686
686
|
} else {
|
|
687
687
|
tmp = false;
|
|
688
688
|
}
|
|
689
689
|
if (tmp) {
|
|
690
|
-
current.
|
|
690
|
+
current.g4f();
|
|
691
691
|
}
|
|
692
692
|
};
|
|
693
693
|
protoOf(ByteChannel).u4 = function () {
|
|
694
|
-
this.
|
|
695
|
-
if (!this.
|
|
694
|
+
this.r4g();
|
|
695
|
+
if (!this.t4f_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
696
696
|
return Unit_instance;
|
|
697
697
|
closeSlot(this, null);
|
|
698
698
|
};
|
|
699
|
-
protoOf(ByteChannel).
|
|
699
|
+
protoOf(ByteChannel).t4h = function ($completion) {
|
|
700
700
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
701
701
|
tmp.z9_1 = Unit_instance;
|
|
702
702
|
tmp.aa_1 = null;
|
|
703
703
|
return tmp.fa();
|
|
704
704
|
};
|
|
705
|
-
protoOf(ByteChannel).
|
|
706
|
-
if (!(this.
|
|
705
|
+
protoOf(ByteChannel).u4h = function (cause) {
|
|
706
|
+
if (!(this.t4f_1.kotlinx$atomicfu$value == null))
|
|
707
707
|
return Unit_instance;
|
|
708
708
|
var closedToken = new CloseToken(cause);
|
|
709
|
-
this.
|
|
710
|
-
var wrappedCause = closedToken.
|
|
709
|
+
this.t4f_1.atomicfu$compareAndSet(null, closedToken);
|
|
710
|
+
var wrappedCause = closedToken.p4h();
|
|
711
711
|
closeSlot(this, wrappedCause);
|
|
712
712
|
};
|
|
713
713
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
length = length === VOID ? content.length : length;
|
|
724
724
|
// Inline function 'kotlin.also' call
|
|
725
725
|
var this_0 = new Buffer();
|
|
726
|
-
this_0.
|
|
726
|
+
this_0.f3b(content, offset, offset + length | 0);
|
|
727
727
|
var source = this_0;
|
|
728
728
|
return ByteReadChannel_0(source);
|
|
729
729
|
}
|
|
@@ -731,22 +731,22 @@
|
|
|
731
731
|
return new SourceByteReadChannel(source);
|
|
732
732
|
}
|
|
733
733
|
function ByteReadChannel_1(text, charset) {
|
|
734
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
734
|
+
charset = charset === VOID ? Charsets_getInstance().v4h_1 : charset;
|
|
735
735
|
return ByteReadChannel(toByteArray_0(text, charset));
|
|
736
736
|
}
|
|
737
737
|
function buildPartialMatchTable($this) {
|
|
738
|
-
var table = new Int32Array($this.
|
|
738
|
+
var table = new Int32Array($this.y4h_1.s());
|
|
739
739
|
var j = 0;
|
|
740
740
|
var inductionVariable = 1;
|
|
741
|
-
var last = $this.
|
|
741
|
+
var last = $this.y4h_1.s();
|
|
742
742
|
if (inductionVariable < last)
|
|
743
743
|
do {
|
|
744
744
|
var i = inductionVariable;
|
|
745
745
|
inductionVariable = inductionVariable + 1 | 0;
|
|
746
|
-
while (j > 0 && !($this.
|
|
746
|
+
while (j > 0 && !($this.y4h_1.u(i) === $this.y4h_1.u(j))) {
|
|
747
747
|
j = table[j - 1 | 0];
|
|
748
748
|
}
|
|
749
|
-
if ($this.
|
|
749
|
+
if ($this.y4h_1.u(i) === $this.y4h_1.u(j)) {
|
|
750
750
|
j = j + 1 | 0;
|
|
751
751
|
}
|
|
752
752
|
table[i] = j;
|
|
@@ -767,8 +767,8 @@
|
|
|
767
767
|
return tmp.fa();
|
|
768
768
|
}
|
|
769
769
|
function checkBounds($this, extra) {
|
|
770
|
-
if ($this.
|
|
771
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
770
|
+
if ($this.e4i_1.b3(extra).j1($this.a4i_1) > 0) {
|
|
771
|
+
throw IOException_init_$Create$('Limit of ' + $this.a4i_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.y4h_1) + '"'));
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -776,8 +776,8 @@
|
|
|
776
776
|
}
|
|
777
777
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
778
778
|
CoroutineImpl.call(this, resultContinuation);
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
779
|
+
this.m4j_1 = _this__u8e3s4;
|
|
780
|
+
this.n4j_1 = ignoreMissing;
|
|
781
781
|
}
|
|
782
782
|
protoOf($findNextCOROUTINE$).fa = function () {
|
|
783
783
|
var suspendResult = this.z9_1;
|
|
@@ -787,17 +787,17 @@
|
|
|
787
787
|
switch (tmp) {
|
|
788
788
|
case 0:
|
|
789
789
|
this.y9_1 = 9;
|
|
790
|
-
this.
|
|
790
|
+
this.m4j_1.e4i_1 = new Long(0, 0);
|
|
791
791
|
this.x9_1 = 1;
|
|
792
792
|
continue $sm;
|
|
793
793
|
case 1:
|
|
794
|
-
if (!this.
|
|
795
|
-
this.
|
|
794
|
+
if (!this.m4j_1.b4i_1.w39()) {
|
|
795
|
+
this.o4j_1 = true;
|
|
796
796
|
this.x9_1 = 3;
|
|
797
797
|
continue $sm;
|
|
798
798
|
} else {
|
|
799
799
|
this.x9_1 = 2;
|
|
800
|
-
suspendResult = this.
|
|
800
|
+
suspendResult = this.m4j_1.x4h_1.s4h(VOID, this);
|
|
801
801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
802
802
|
return suspendResult;
|
|
803
803
|
}
|
|
@@ -805,17 +805,17 @@
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
case 2:
|
|
808
|
-
this.
|
|
808
|
+
this.o4j_1 = suspendResult;
|
|
809
809
|
this.x9_1 = 3;
|
|
810
810
|
continue $sm;
|
|
811
811
|
case 3:
|
|
812
|
-
if (!this.
|
|
812
|
+
if (!this.o4j_1) {
|
|
813
813
|
this.x9_1 = 7;
|
|
814
814
|
continue $sm;
|
|
815
815
|
}
|
|
816
816
|
|
|
817
817
|
this.x9_1 = 4;
|
|
818
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
818
|
+
suspendResult = advanceToNextPotentialMatch(this.m4j_1, this);
|
|
819
819
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
820
820
|
return suspendResult;
|
|
821
821
|
}
|
|
@@ -823,7 +823,7 @@
|
|
|
823
823
|
continue $sm;
|
|
824
824
|
case 4:
|
|
825
825
|
this.x9_1 = 5;
|
|
826
|
-
suspendResult = checkFullMatch(this.
|
|
826
|
+
suspendResult = checkFullMatch(this.m4j_1, this);
|
|
827
827
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
828
828
|
return suspendResult;
|
|
829
829
|
}
|
|
@@ -831,7 +831,7 @@
|
|
|
831
831
|
continue $sm;
|
|
832
832
|
case 5:
|
|
833
833
|
if (suspendResult) {
|
|
834
|
-
return this.
|
|
834
|
+
return this.m4j_1.e4i_1;
|
|
835
835
|
} else {
|
|
836
836
|
this.x9_1 = 6;
|
|
837
837
|
continue $sm;
|
|
@@ -841,20 +841,20 @@
|
|
|
841
841
|
this.x9_1 = 1;
|
|
842
842
|
continue $sm;
|
|
843
843
|
case 7:
|
|
844
|
-
if (!this.
|
|
845
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
844
|
+
if (!this.n4j_1) {
|
|
845
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.m4j_1, this.m4j_1.y4h_1) + '" but encountered end of input');
|
|
846
846
|
}
|
|
847
847
|
|
|
848
|
-
this.
|
|
848
|
+
this.m4j_1.e4i_1 = this.m4j_1.e4i_1.b3(this.m4j_1.d4i_1.z3a(this.m4j_1.z4h_1.m4h()));
|
|
849
849
|
this.x9_1 = 8;
|
|
850
|
-
suspendResult = this.
|
|
850
|
+
suspendResult = this.m4j_1.z4h_1.h4h(this);
|
|
851
851
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
852
852
|
return suspendResult;
|
|
853
853
|
}
|
|
854
854
|
|
|
855
855
|
continue $sm;
|
|
856
856
|
case 8:
|
|
857
|
-
return this.
|
|
857
|
+
return this.m4j_1.e4i_1;
|
|
858
858
|
case 9:
|
|
859
859
|
throw this.aa_1;
|
|
860
860
|
}
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
};
|
|
872
872
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
873
873
|
CoroutineImpl.call(this, resultContinuation);
|
|
874
|
-
this.
|
|
874
|
+
this.o4i_1 = _this__u8e3s4;
|
|
875
875
|
}
|
|
876
876
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).fa = function () {
|
|
877
877
|
var suspendResult = this.z9_1;
|
|
@@ -884,13 +884,13 @@
|
|
|
884
884
|
this.x9_1 = 1;
|
|
885
885
|
continue $sm;
|
|
886
886
|
case 1:
|
|
887
|
-
if (!this.
|
|
888
|
-
this.
|
|
887
|
+
if (!this.o4i_1.b4i_1.w39()) {
|
|
888
|
+
this.p4i_1 = true;
|
|
889
889
|
this.x9_1 = 3;
|
|
890
890
|
continue $sm;
|
|
891
891
|
} else {
|
|
892
892
|
this.x9_1 = 2;
|
|
893
|
-
suspendResult = this.
|
|
893
|
+
suspendResult = this.o4i_1.x4h_1.s4h(VOID, this);
|
|
894
894
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
895
895
|
return suspendResult;
|
|
896
896
|
}
|
|
@@ -898,34 +898,34 @@
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
case 2:
|
|
901
|
-
this.
|
|
901
|
+
this.p4i_1 = suspendResult;
|
|
902
902
|
this.x9_1 = 3;
|
|
903
903
|
continue $sm;
|
|
904
904
|
case 3:
|
|
905
|
-
if (!this.
|
|
905
|
+
if (!this.p4i_1) {
|
|
906
906
|
this.x9_1 = 7;
|
|
907
907
|
continue $sm;
|
|
908
908
|
}
|
|
909
909
|
|
|
910
|
-
this.
|
|
911
|
-
if (this.
|
|
912
|
-
var tmp_0 = this.
|
|
913
|
-
checkBounds(this.
|
|
914
|
-
this.
|
|
910
|
+
this.q4i_1 = indexOf(this.o4i_1.b4i_1, this.o4i_1.y4h_1.u(0));
|
|
911
|
+
if (this.q4i_1.equals(new Long(-1, -1))) {
|
|
912
|
+
var tmp_0 = this.o4i_1.b4i_1;
|
|
913
|
+
checkBounds(this.o4i_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).s());
|
|
914
|
+
this.o4i_1.e4i_1 = this.o4i_1.e4i_1.b3(this.o4i_1.b4i_1.z3a(this.o4i_1.z4h_1.m4h()));
|
|
915
915
|
this.x9_1 = 5;
|
|
916
|
-
suspendResult = flushIfNeeded(this.
|
|
916
|
+
suspendResult = flushIfNeeded(this.o4i_1.z4h_1, this);
|
|
917
917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
918
918
|
return suspendResult;
|
|
919
919
|
}
|
|
920
920
|
continue $sm;
|
|
921
921
|
} else {
|
|
922
|
-
checkBounds(this.
|
|
923
|
-
var tmp_1 = this.
|
|
924
|
-
var tmp_2 = this.
|
|
925
|
-
var tmp_3 = this.
|
|
926
|
-
tmp_1.
|
|
922
|
+
checkBounds(this.o4i_1, this.q4i_1);
|
|
923
|
+
var tmp_1 = this.o4i_1;
|
|
924
|
+
var tmp_2 = this.o4i_1.e4i_1;
|
|
925
|
+
var tmp_3 = this.o4i_1.z4h_1.m4h();
|
|
926
|
+
tmp_1.e4i_1 = tmp_2.b3(this.o4i_1.b4i_1.w3a(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), this.q4i_1));
|
|
927
927
|
this.x9_1 = 4;
|
|
928
|
-
suspendResult = flushIfNeeded(this.
|
|
928
|
+
suspendResult = flushIfNeeded(this.o4i_1.z4h_1, this);
|
|
929
929
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
930
930
|
return suspendResult;
|
|
931
931
|
}
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
};
|
|
959
959
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
960
960
|
CoroutineImpl.call(this, resultContinuation);
|
|
961
|
-
this.
|
|
961
|
+
this.z4i_1 = _this__u8e3s4;
|
|
962
962
|
}
|
|
963
963
|
protoOf($checkFullMatchCOROUTINE$).fa = function () {
|
|
964
964
|
var suspendResult = this.z9_1;
|
|
@@ -971,13 +971,13 @@
|
|
|
971
971
|
this.x9_1 = 1;
|
|
972
972
|
continue $sm;
|
|
973
973
|
case 1:
|
|
974
|
-
if (!this.
|
|
975
|
-
this.
|
|
974
|
+
if (!this.z4i_1.b4i_1.w39()) {
|
|
975
|
+
this.a4j_1 = true;
|
|
976
976
|
this.x9_1 = 3;
|
|
977
977
|
continue $sm;
|
|
978
978
|
} else {
|
|
979
979
|
this.x9_1 = 2;
|
|
980
|
-
suspendResult = this.
|
|
980
|
+
suspendResult = this.z4i_1.x4h_1.s4h(VOID, this);
|
|
981
981
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
982
982
|
return suspendResult;
|
|
983
983
|
}
|
|
@@ -985,30 +985,30 @@
|
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
case 2:
|
|
988
|
-
this.
|
|
988
|
+
this.a4j_1 = suspendResult;
|
|
989
989
|
this.x9_1 = 3;
|
|
990
990
|
continue $sm;
|
|
991
991
|
case 3:
|
|
992
|
-
if (!this.
|
|
992
|
+
if (!this.a4j_1) {
|
|
993
993
|
this.x9_1 = 7;
|
|
994
994
|
continue $sm;
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
this.
|
|
998
|
-
if (this.
|
|
999
|
-
this.
|
|
1000
|
-
while (this.
|
|
1001
|
-
this.
|
|
997
|
+
this.b4j_1 = this.z4i_1.b4i_1.z39();
|
|
998
|
+
if (this.z4i_1.f4i_1 > 0 && !(this.b4j_1 === this.z4i_1.y4h_1.u(this.z4i_1.f4i_1))) {
|
|
999
|
+
this.c4j_1 = this.z4i_1.f4i_1;
|
|
1000
|
+
while (this.z4i_1.f4i_1 > 0 && !(this.b4j_1 === this.z4i_1.y4h_1.u(this.z4i_1.f4i_1))) {
|
|
1001
|
+
this.z4i_1.f4i_1 = this.z4i_1.c4i_1[this.z4i_1.f4i_1 - 1 | 0];
|
|
1002
1002
|
}
|
|
1003
|
-
this.
|
|
1004
|
-
checkBounds(this.
|
|
1005
|
-
var tmp_0 = this.
|
|
1006
|
-
var tmp_1 = this.
|
|
1007
|
-
var tmp_2 = this.
|
|
1008
|
-
tmp_0.
|
|
1009
|
-
if (this.
|
|
1003
|
+
this.d4j_1 = toLong(this.c4j_1 - this.z4i_1.f4i_1 | 0);
|
|
1004
|
+
checkBounds(this.z4i_1, this.d4j_1);
|
|
1005
|
+
var tmp_0 = this.z4i_1;
|
|
1006
|
+
var tmp_1 = this.z4i_1.e4i_1;
|
|
1007
|
+
var tmp_2 = this.z4i_1.z4h_1.m4h();
|
|
1008
|
+
tmp_0.e4i_1 = tmp_1.b3(this.z4i_1.d4i_1.w3a(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), this.d4j_1));
|
|
1009
|
+
if (this.z4i_1.f4i_1 === 0 && !(this.b4j_1 === this.z4i_1.y4h_1.u(this.z4i_1.f4i_1))) {
|
|
1010
1010
|
this.x9_1 = 6;
|
|
1011
|
-
suspendResult = writeByte(this.
|
|
1011
|
+
suspendResult = writeByte(this.z4i_1.z4h_1, this.b4j_1, this);
|
|
1012
1012
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1013
1013
|
return suspendResult;
|
|
1014
1014
|
}
|
|
@@ -1026,17 +1026,17 @@
|
|
|
1026
1026
|
this.x9_1 = 5;
|
|
1027
1027
|
continue $sm;
|
|
1028
1028
|
case 5:
|
|
1029
|
-
this.
|
|
1030
|
-
if (this.
|
|
1029
|
+
this.z4i_1.f4i_1 = this.z4i_1.f4i_1 + 1 | 0;
|
|
1030
|
+
if (this.z4i_1.f4i_1 === this.z4i_1.y4h_1.s()) {
|
|
1031
1031
|
return true;
|
|
1032
1032
|
}
|
|
1033
1033
|
|
|
1034
|
-
this.
|
|
1034
|
+
this.z4i_1.d4i_1.p3b(this.b4j_1);
|
|
1035
1035
|
this.x9_1 = 1;
|
|
1036
1036
|
continue $sm;
|
|
1037
1037
|
case 6:
|
|
1038
|
-
var _unary__edvuaz = this.
|
|
1039
|
-
this.
|
|
1038
|
+
var _unary__edvuaz = this.z4i_1.e4i_1;
|
|
1039
|
+
this.z4i_1.e4i_1 = _unary__edvuaz.g3();
|
|
1040
1040
|
return false;
|
|
1041
1041
|
case 7:
|
|
1042
1042
|
return false;
|
|
@@ -1056,22 +1056,22 @@
|
|
|
1056
1056
|
};
|
|
1057
1057
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1058
1058
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1059
|
+
this.x4h_1 = channel;
|
|
1060
|
+
this.y4h_1 = matchString;
|
|
1061
|
+
this.z4h_1 = writeChannel;
|
|
1062
|
+
this.a4i_1 = limit;
|
|
1063
1063
|
// Inline function 'kotlin.require' call
|
|
1064
|
-
if (!(this.
|
|
1064
|
+
if (!(this.y4h_1.s() > 0)) {
|
|
1065
1065
|
var message = 'Empty match string not permitted for scanning';
|
|
1066
1066
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1067
1067
|
}
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1070
|
-
this.
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
1068
|
+
this.b4i_1 = this.x4h_1.j4h();
|
|
1069
|
+
this.c4i_1 = buildPartialMatchTable(this);
|
|
1070
|
+
this.d4i_1 = new Buffer();
|
|
1071
|
+
this.e4i_1 = new Long(0, 0);
|
|
1072
|
+
this.f4i_1 = 0;
|
|
1073
1073
|
}
|
|
1074
|
-
protoOf(ByteChannelScanner).
|
|
1074
|
+
protoOf(ByteChannelScanner).p4j = function (ignoreMissing, $completion) {
|
|
1075
1075
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1076
1076
|
tmp.z9_1 = Unit_instance;
|
|
1077
1077
|
tmp.aa_1 = null;
|
|
@@ -1087,34 +1087,34 @@
|
|
|
1087
1087
|
return function (it) {
|
|
1088
1088
|
var tmp;
|
|
1089
1089
|
if (!(it == null)) {
|
|
1090
|
-
$this_attachJob.
|
|
1090
|
+
$this_attachJob.u4h(it);
|
|
1091
1091
|
tmp = Unit_instance;
|
|
1092
1092
|
}
|
|
1093
1093
|
return Unit_instance;
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
1096
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1097
|
-
this.
|
|
1098
|
-
this.
|
|
1097
|
+
this.q4j_1 = null;
|
|
1098
|
+
this.r4j_1 = new Buffer();
|
|
1099
1099
|
}
|
|
1100
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1101
|
-
return this.
|
|
1100
|
+
protoOf(ByteReadChannel$Companion$Empty$1).o4h = function () {
|
|
1101
|
+
return this.q4j_1;
|
|
1102
1102
|
};
|
|
1103
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1103
|
+
protoOf(ByteReadChannel$Companion$Empty$1).q4h = function () {
|
|
1104
1104
|
return true;
|
|
1105
1105
|
};
|
|
1106
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1107
|
-
return this.
|
|
1106
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j4h = function () {
|
|
1107
|
+
return this.r4j_1;
|
|
1108
1108
|
};
|
|
1109
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1109
|
+
protoOf(ByteReadChannel$Companion$Empty$1).r4h = function (min, $completion) {
|
|
1110
1110
|
return false;
|
|
1111
1111
|
};
|
|
1112
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1112
|
+
protoOf(ByteReadChannel$Companion$Empty$1).u4h = function (cause) {
|
|
1113
1113
|
};
|
|
1114
1114
|
function Companion_0() {
|
|
1115
1115
|
Companion_instance_1 = this;
|
|
1116
1116
|
var tmp = this;
|
|
1117
|
-
tmp.
|
|
1117
|
+
tmp.s4j_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1118
1118
|
}
|
|
1119
1119
|
var Companion_instance_1;
|
|
1120
1120
|
function Companion_getInstance_0() {
|
|
@@ -1125,7 +1125,7 @@
|
|
|
1125
1125
|
function ByteReadChannel_2() {
|
|
1126
1126
|
}
|
|
1127
1127
|
function cancel_0(_this__u8e3s4) {
|
|
1128
|
-
_this__u8e3s4.
|
|
1128
|
+
_this__u8e3s4.u4h(IOException_init_$Create$('Channel was cancelled'));
|
|
1129
1129
|
}
|
|
1130
1130
|
function readRemaining(_this__u8e3s4, $completion) {
|
|
1131
1131
|
var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
return tmp.fa();
|
|
1181
1181
|
}
|
|
1182
1182
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1183
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1183
|
+
var tmp0_safe_receiver = _this__u8e3s4.o4h();
|
|
1184
1184
|
if (tmp0_safe_receiver == null)
|
|
1185
1185
|
null;
|
|
1186
1186
|
else {
|
|
@@ -1189,11 +1189,11 @@
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
function get_availableForRead(_this__u8e3s4) {
|
|
1192
|
-
return _this__u8e3s4.
|
|
1192
|
+
return _this__u8e3s4.j4h().v39().s().l1();
|
|
1193
1193
|
}
|
|
1194
1194
|
function readUTF8LineTo(_this__u8e3s4, out, max, $completion) {
|
|
1195
1195
|
max = max === VOID ? 2147483647 : max;
|
|
1196
|
-
return readUTF8LineTo_0(_this__u8e3s4, out, max, Companion_getInstance_1().
|
|
1196
|
+
return readUTF8LineTo_0(_this__u8e3s4, out, max, Companion_getInstance_1().q4n_1, $completion);
|
|
1197
1197
|
}
|
|
1198
1198
|
function readBuffer(_this__u8e3s4, $completion) {
|
|
1199
1199
|
var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
|
|
@@ -1203,14 +1203,14 @@
|
|
|
1203
1203
|
}
|
|
1204
1204
|
function readUTF8LineTo_0(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1205
1205
|
max = max === VOID ? 2147483647 : max;
|
|
1206
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1206
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().q4n_1 : lineEnding;
|
|
1207
1207
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1208
1208
|
tmp.z9_1 = Unit_instance;
|
|
1209
1209
|
tmp.aa_1 = null;
|
|
1210
1210
|
return tmp.fa();
|
|
1211
1211
|
}
|
|
1212
1212
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1213
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1213
|
+
var tmp0_safe_receiver = _this__u8e3s4.o4h();
|
|
1214
1214
|
if (tmp0_safe_receiver == null)
|
|
1215
1215
|
null;
|
|
1216
1216
|
else {
|
|
@@ -1219,7 +1219,7 @@
|
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1222
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1222
|
+
var tmp0_safe_receiver = _this__u8e3s4.o4h();
|
|
1223
1223
|
if (tmp0_safe_receiver == null)
|
|
1224
1224
|
null;
|
|
1225
1225
|
else {
|
|
@@ -1248,11 +1248,11 @@
|
|
|
1248
1248
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1249
1249
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1250
1250
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1251
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1251
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).p4j(ignoreMissing, $completion);
|
|
1252
1252
|
}
|
|
1253
1253
|
function $flushAndCloseCOROUTINE$_0(_this__u8e3s4, resultContinuation) {
|
|
1254
1254
|
CoroutineImpl.call(this, resultContinuation);
|
|
1255
|
-
this.
|
|
1255
|
+
this.m4q_1 = _this__u8e3s4;
|
|
1256
1256
|
}
|
|
1257
1257
|
protoOf($flushAndCloseCOROUTINE$_0).fa = function () {
|
|
1258
1258
|
var suspendResult = this.z9_1;
|
|
@@ -1262,26 +1262,26 @@
|
|
|
1262
1262
|
switch (tmp) {
|
|
1263
1263
|
case 0:
|
|
1264
1264
|
this.y9_1 = 5;
|
|
1265
|
-
cancelChildren(this.
|
|
1265
|
+
cancelChildren(this.m4q_1.u4q_1);
|
|
1266
1266
|
var tmp_0 = this;
|
|
1267
|
-
tmp_0.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1267
|
+
tmp_0.n4q_1 = this.m4q_1.u4q_1.s1x();
|
|
1268
|
+
this.o4q_1 = this.n4q_1;
|
|
1269
|
+
this.p4q_1 = this.o4q_1.p();
|
|
1270
1270
|
this.x9_1 = 1;
|
|
1271
1271
|
continue $sm;
|
|
1272
1272
|
case 1:
|
|
1273
|
-
if (!this.
|
|
1273
|
+
if (!this.p4q_1.q()) {
|
|
1274
1274
|
this.x9_1 = 3;
|
|
1275
1275
|
continue $sm;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
this.
|
|
1278
|
+
this.q4q_1 = this.p4q_1.r();
|
|
1279
1279
|
var tmp_1 = this;
|
|
1280
|
-
tmp_1.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1280
|
+
tmp_1.r4q_1 = this.q4q_1;
|
|
1281
|
+
this.s4q_1 = this.r4q_1;
|
|
1282
|
+
this.s4q_1.k1x();
|
|
1283
1283
|
this.x9_1 = 2;
|
|
1284
|
-
suspendResult = this.
|
|
1284
|
+
suspendResult = this.s4q_1.g1x(this);
|
|
1285
1285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1286
1286
|
return suspendResult;
|
|
1287
1287
|
}
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
continue $sm;
|
|
1293
1293
|
case 3:
|
|
1294
1294
|
this.x9_1 = 4;
|
|
1295
|
-
suspendResult = this.
|
|
1295
|
+
suspendResult = this.m4q_1.t4q_1.t4h(this);
|
|
1296
1296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1297
1297
|
return suspendResult;
|
|
1298
1298
|
}
|
|
@@ -1315,13 +1315,13 @@
|
|
|
1315
1315
|
while (true);
|
|
1316
1316
|
};
|
|
1317
1317
|
function ReaderJob(channel, job) {
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1318
|
+
this.t4q_1 = channel;
|
|
1319
|
+
this.u4q_1 = job;
|
|
1320
1320
|
}
|
|
1321
1321
|
protoOf(ReaderJob).m1z = function () {
|
|
1322
|
-
return this.
|
|
1322
|
+
return this.u4q_1;
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(ReaderJob).
|
|
1324
|
+
protoOf(ReaderJob).t4h = function ($completion) {
|
|
1325
1325
|
var tmp = new $flushAndCloseCOROUTINE$_0(this, $completion);
|
|
1326
1326
|
tmp.z9_1 = Unit_instance;
|
|
1327
1327
|
tmp.aa_1 = null;
|
|
@@ -1339,11 +1339,11 @@
|
|
|
1339
1339
|
return reader_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
1340
1340
|
}
|
|
1341
1341
|
function ReaderScope(channel, coroutineContext) {
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1342
|
+
this.f4r_1 = channel;
|
|
1343
|
+
this.g4r_1 = coroutineContext;
|
|
1344
1344
|
}
|
|
1345
1345
|
protoOf(ReaderScope).z1v = function () {
|
|
1346
|
-
return this.
|
|
1346
|
+
return this.g4r_1;
|
|
1347
1347
|
};
|
|
1348
1348
|
function reader_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
1349
1349
|
// Inline function 'kotlin.apply' call
|
|
@@ -1358,8 +1358,8 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
function reader$slambda($block, $channel, resultContinuation) {
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1361
|
+
this.p4r_1 = $block;
|
|
1362
|
+
this.q4r_1 = $channel;
|
|
1363
1363
|
CoroutineImpl.call(this, resultContinuation);
|
|
1364
1364
|
}
|
|
1365
1365
|
protoOf(reader$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -1379,29 +1379,29 @@
|
|
|
1379
1379
|
switch (tmp) {
|
|
1380
1380
|
case 0:
|
|
1381
1381
|
this.y9_1 = 8;
|
|
1382
|
-
this.
|
|
1382
|
+
this.s4r_1 = Job(get_job(this.r4r_1.z1v()));
|
|
1383
1383
|
this.x9_1 = 1;
|
|
1384
1384
|
continue $sm;
|
|
1385
1385
|
case 1:
|
|
1386
1386
|
this.y9_1 = 4;
|
|
1387
1387
|
this.y9_1 = 3;
|
|
1388
1388
|
this.x9_1 = 2;
|
|
1389
|
-
suspendResult = this.
|
|
1389
|
+
suspendResult = this.p4r_1(new ReaderScope(this.q4r_1, this.r4r_1.z1v().am(this.s4r_1)), this);
|
|
1390
1390
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1391
1391
|
return suspendResult;
|
|
1392
1392
|
}
|
|
1393
1393
|
|
|
1394
1394
|
continue $sm;
|
|
1395
1395
|
case 2:
|
|
1396
|
-
this.
|
|
1396
|
+
this.s4r_1.y24();
|
|
1397
1397
|
var tmp_0 = this;
|
|
1398
1398
|
var tmp_1;
|
|
1399
|
-
if (get_job(this.
|
|
1400
|
-
this.
|
|
1399
|
+
if (get_job(this.r4r_1.z1v()).w1w()) {
|
|
1400
|
+
this.q4r_1.u4h(get_job(this.r4r_1.z1v()).z1w());
|
|
1401
1401
|
tmp_1 = Unit_instance;
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
|
-
tmp_0.
|
|
1404
|
+
tmp_0.t4r_1 = tmp_1;
|
|
1405
1405
|
this.y9_1 = 8;
|
|
1406
1406
|
this.x9_1 = 6;
|
|
1407
1407
|
continue $sm;
|
|
@@ -1409,11 +1409,11 @@
|
|
|
1409
1409
|
this.y9_1 = 4;
|
|
1410
1410
|
var tmp_2 = this.aa_1;
|
|
1411
1411
|
if (tmp_2 instanceof Error) {
|
|
1412
|
-
this.
|
|
1412
|
+
this.u4r_1 = this.aa_1;
|
|
1413
1413
|
var tmp_3 = this;
|
|
1414
|
-
cancel(this.
|
|
1415
|
-
close_1(this.
|
|
1416
|
-
tmp_3.
|
|
1414
|
+
cancel(this.s4r_1, 'Exception thrown while reading from channel', this.u4r_1);
|
|
1415
|
+
close_1(this.q4r_1, this.u4r_1);
|
|
1416
|
+
tmp_3.t4r_1 = Unit_instance;
|
|
1417
1417
|
this.y9_1 = 8;
|
|
1418
1418
|
this.x9_1 = 6;
|
|
1419
1419
|
continue $sm;
|
|
@@ -1423,20 +1423,20 @@
|
|
|
1423
1423
|
|
|
1424
1424
|
case 4:
|
|
1425
1425
|
this.y9_1 = 8;
|
|
1426
|
-
this.
|
|
1426
|
+
this.v4r_1 = this.aa_1;
|
|
1427
1427
|
this.x9_1 = 5;
|
|
1428
|
-
suspendResult = this.
|
|
1428
|
+
suspendResult = this.s4r_1.g1x(this);
|
|
1429
1429
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1430
1430
|
return suspendResult;
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
continue $sm;
|
|
1434
1434
|
case 5:
|
|
1435
|
-
throw this.
|
|
1435
|
+
throw this.v4r_1;
|
|
1436
1436
|
case 6:
|
|
1437
1437
|
this.y9_1 = 8;
|
|
1438
1438
|
this.x9_1 = 7;
|
|
1439
|
-
suspendResult = this.
|
|
1439
|
+
suspendResult = this.s4r_1.g1x(this);
|
|
1440
1440
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1441
1441
|
return suspendResult;
|
|
1442
1442
|
}
|
|
@@ -1459,8 +1459,8 @@
|
|
|
1459
1459
|
while (true);
|
|
1460
1460
|
};
|
|
1461
1461
|
protoOf(reader$slambda).y2q = function ($this$launch, completion) {
|
|
1462
|
-
var i = new reader$slambda(this.
|
|
1463
|
-
i.
|
|
1462
|
+
var i = new reader$slambda(this.p4r_1, this.q4r_1, completion);
|
|
1463
|
+
i.r4r_1 = $this$launch;
|
|
1464
1464
|
return i;
|
|
1465
1465
|
};
|
|
1466
1466
|
function reader$slambda_0($block, $channel, resultContinuation) {
|
|
@@ -1474,25 +1474,25 @@
|
|
|
1474
1474
|
function reader$lambda($channel) {
|
|
1475
1475
|
return function (it) {
|
|
1476
1476
|
var tmp;
|
|
1477
|
-
if (!(it == null) && !$channel.
|
|
1478
|
-
$channel.
|
|
1477
|
+
if (!(it == null) && !$channel.q4h()) {
|
|
1478
|
+
$channel.u4h(it);
|
|
1479
1479
|
tmp = Unit_instance;
|
|
1480
1480
|
}
|
|
1481
1481
|
return Unit_instance;
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
1484
|
function reader$slambda_1($job, resultContinuation) {
|
|
1485
|
-
this.
|
|
1485
|
+
this.e4s_1 = $job;
|
|
1486
1486
|
CoroutineImpl.call(this, resultContinuation);
|
|
1487
1487
|
}
|
|
1488
|
-
protoOf(reader$slambda_1).
|
|
1489
|
-
var tmp = this.
|
|
1488
|
+
protoOf(reader$slambda_1).f4s = function ($completion) {
|
|
1489
|
+
var tmp = this.g4s($completion);
|
|
1490
1490
|
tmp.z9_1 = Unit_instance;
|
|
1491
1491
|
tmp.aa_1 = null;
|
|
1492
1492
|
return tmp.fa();
|
|
1493
1493
|
};
|
|
1494
1494
|
protoOf(reader$slambda_1).wb = function ($completion) {
|
|
1495
|
-
return this.
|
|
1495
|
+
return this.f4s($completion);
|
|
1496
1496
|
};
|
|
1497
1497
|
protoOf(reader$slambda_1).fa = function () {
|
|
1498
1498
|
var suspendResult = this.z9_1;
|
|
@@ -1503,7 +1503,7 @@
|
|
|
1503
1503
|
case 0:
|
|
1504
1504
|
this.y9_1 = 2;
|
|
1505
1505
|
this.x9_1 = 1;
|
|
1506
|
-
suspendResult = this.
|
|
1506
|
+
suspendResult = this.e4s_1.g1x(this);
|
|
1507
1507
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1508
1508
|
return suspendResult;
|
|
1509
1509
|
}
|
|
@@ -1525,20 +1525,20 @@
|
|
|
1525
1525
|
}
|
|
1526
1526
|
while (true);
|
|
1527
1527
|
};
|
|
1528
|
-
protoOf(reader$slambda_1).
|
|
1529
|
-
return new reader$slambda_1(this.
|
|
1528
|
+
protoOf(reader$slambda_1).g4s = function (completion) {
|
|
1529
|
+
return new reader$slambda_1(this.e4s_1, completion);
|
|
1530
1530
|
};
|
|
1531
1531
|
function reader$slambda_2($job, resultContinuation) {
|
|
1532
1532
|
var i = new reader$slambda_1($job, resultContinuation);
|
|
1533
1533
|
var l = function ($completion) {
|
|
1534
|
-
return i.
|
|
1534
|
+
return i.f4s($completion);
|
|
1535
1535
|
};
|
|
1536
1536
|
l.$arity = 0;
|
|
1537
1537
|
return l;
|
|
1538
1538
|
}
|
|
1539
1539
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1540
1540
|
CoroutineImpl.call(this, resultContinuation);
|
|
1541
|
-
this.
|
|
1541
|
+
this.b4k_1 = _this__u8e3s4;
|
|
1542
1542
|
}
|
|
1543
1543
|
protoOf($readRemainingCOROUTINE$).fa = function () {
|
|
1544
1544
|
var suspendResult = this.z9_1;
|
|
@@ -1548,18 +1548,18 @@
|
|
|
1548
1548
|
switch (tmp) {
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
this.y9_1 = 4;
|
|
1551
|
-
this.
|
|
1551
|
+
this.c4k_1 = BytePacketBuilder();
|
|
1552
1552
|
this.x9_1 = 1;
|
|
1553
1553
|
continue $sm;
|
|
1554
1554
|
case 1:
|
|
1555
|
-
if (!!this.
|
|
1555
|
+
if (!!this.b4k_1.q4h()) {
|
|
1556
1556
|
this.x9_1 = 3;
|
|
1557
1557
|
continue $sm;
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
|
-
this.
|
|
1560
|
+
this.c4k_1.o3b(this.b4k_1.j4h());
|
|
1561
1561
|
this.x9_1 = 2;
|
|
1562
|
-
suspendResult = this.
|
|
1562
|
+
suspendResult = this.b4k_1.s4h(VOID, this);
|
|
1563
1563
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1564
1564
|
return suspendResult;
|
|
1565
1565
|
}
|
|
@@ -1569,8 +1569,8 @@
|
|
|
1569
1569
|
this.x9_1 = 1;
|
|
1570
1570
|
continue $sm;
|
|
1571
1571
|
case 3:
|
|
1572
|
-
rethrowCloseCauseIfNeeded(this.
|
|
1573
|
-
return this.
|
|
1572
|
+
rethrowCloseCauseIfNeeded(this.b4k_1);
|
|
1573
|
+
return this.c4k_1.v39();
|
|
1574
1574
|
case 4:
|
|
1575
1575
|
throw this.aa_1;
|
|
1576
1576
|
}
|
|
@@ -1587,8 +1587,8 @@
|
|
|
1587
1587
|
};
|
|
1588
1588
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1589
1589
|
CoroutineImpl.call(this, resultContinuation);
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1590
|
+
this.l4k_1 = _this__u8e3s4;
|
|
1591
|
+
this.m4k_1 = max;
|
|
1592
1592
|
}
|
|
1593
1593
|
protoOf($discardCOROUTINE$).fa = function () {
|
|
1594
1594
|
var suspendResult = this.z9_1;
|
|
@@ -1598,18 +1598,18 @@
|
|
|
1598
1598
|
switch (tmp) {
|
|
1599
1599
|
case 0:
|
|
1600
1600
|
this.y9_1 = 5;
|
|
1601
|
-
this.
|
|
1601
|
+
this.n4k_1 = this.m4k_1;
|
|
1602
1602
|
this.x9_1 = 1;
|
|
1603
1603
|
continue $sm;
|
|
1604
1604
|
case 1:
|
|
1605
|
-
if (!(this.
|
|
1605
|
+
if (!(this.n4k_1.j1(new Long(0, 0)) > 0 && !this.l4k_1.q4h())) {
|
|
1606
1606
|
this.x9_1 = 4;
|
|
1607
1607
|
continue $sm;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
if (get_availableForRead(this.
|
|
1610
|
+
if (get_availableForRead(this.l4k_1) === 0) {
|
|
1611
1611
|
this.x9_1 = 2;
|
|
1612
|
-
suspendResult = this.
|
|
1612
|
+
suspendResult = this.l4k_1.s4h(VOID, this);
|
|
1613
1613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1614
1614
|
return suspendResult;
|
|
1615
1615
|
}
|
|
@@ -1623,15 +1623,15 @@
|
|
|
1623
1623
|
this.x9_1 = 3;
|
|
1624
1624
|
continue $sm;
|
|
1625
1625
|
case 3:
|
|
1626
|
-
var tmp0 = this.
|
|
1627
|
-
var b = get_remaining(this.
|
|
1626
|
+
var tmp0 = this.n4k_1;
|
|
1627
|
+
var b = get_remaining(this.l4k_1.j4h());
|
|
1628
1628
|
var count = tmp0.j1(b) <= 0 ? tmp0 : b;
|
|
1629
|
-
discard_0(this.
|
|
1630
|
-
this.
|
|
1629
|
+
discard_0(this.l4k_1.j4h(), count);
|
|
1630
|
+
this.n4k_1 = this.n4k_1.c3(count);
|
|
1631
1631
|
this.x9_1 = 1;
|
|
1632
1632
|
continue $sm;
|
|
1633
1633
|
case 4:
|
|
1634
|
-
return this.
|
|
1634
|
+
return this.m4k_1.c3(this.n4k_1);
|
|
1635
1635
|
case 5:
|
|
1636
1636
|
throw this.aa_1;
|
|
1637
1637
|
}
|
|
@@ -1648,8 +1648,8 @@
|
|
|
1648
1648
|
};
|
|
1649
1649
|
function $copyAndCloseCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1650
1650
|
CoroutineImpl.call(this, resultContinuation);
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1651
|
+
this.w4k_1 = _this__u8e3s4;
|
|
1652
|
+
this.x4k_1 = channel;
|
|
1653
1653
|
}
|
|
1654
1654
|
protoOf($copyAndCloseCOROUTINE$).fa = function () {
|
|
1655
1655
|
var suspendResult = this.z9_1;
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
switch (tmp) {
|
|
1660
1660
|
case 0:
|
|
1661
1661
|
this.y9_1 = 11;
|
|
1662
|
-
this.
|
|
1662
|
+
this.y4k_1 = new Long(0, 0);
|
|
1663
1663
|
this.x9_1 = 1;
|
|
1664
1664
|
continue $sm;
|
|
1665
1665
|
case 1:
|
|
@@ -1668,14 +1668,14 @@
|
|
|
1668
1668
|
this.x9_1 = 2;
|
|
1669
1669
|
continue $sm;
|
|
1670
1670
|
case 2:
|
|
1671
|
-
if (!!this.
|
|
1671
|
+
if (!!this.w4k_1.q4h()) {
|
|
1672
1672
|
this.x9_1 = 5;
|
|
1673
1673
|
continue $sm;
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
1676
|
-
this.
|
|
1676
|
+
this.y4k_1 = this.y4k_1.b3(this.w4k_1.j4h().z3a(this.x4k_1.m4h()));
|
|
1677
1677
|
this.x9_1 = 3;
|
|
1678
|
-
suspendResult = this.
|
|
1678
|
+
suspendResult = this.x4k_1.h4h(this);
|
|
1679
1679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1680
1680
|
return suspendResult;
|
|
1681
1681
|
}
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
continue $sm;
|
|
1684
1684
|
case 3:
|
|
1685
1685
|
this.x9_1 = 4;
|
|
1686
|
-
suspendResult = this.
|
|
1686
|
+
suspendResult = this.w4k_1.s4h(VOID, this);
|
|
1687
1687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1688
1688
|
return suspendResult;
|
|
1689
1689
|
}
|
|
@@ -1694,7 +1694,7 @@
|
|
|
1694
1694
|
continue $sm;
|
|
1695
1695
|
case 5:
|
|
1696
1696
|
var tmp_0 = this;
|
|
1697
|
-
var tmp0_safe_receiver = this.
|
|
1697
|
+
var tmp0_safe_receiver = this.w4k_1.o4h();
|
|
1698
1698
|
var tmp_1;
|
|
1699
1699
|
if (tmp0_safe_receiver == null) {
|
|
1700
1700
|
tmp_1 = null;
|
|
@@ -1702,7 +1702,7 @@
|
|
|
1702
1702
|
throw tmp0_safe_receiver;
|
|
1703
1703
|
}
|
|
1704
1704
|
|
|
1705
|
-
tmp_0.
|
|
1705
|
+
tmp_0.z4k_1 = tmp_1;
|
|
1706
1706
|
this.y9_1 = 11;
|
|
1707
1707
|
this.x9_1 = 9;
|
|
1708
1708
|
continue $sm;
|
|
@@ -1710,39 +1710,39 @@
|
|
|
1710
1710
|
this.y9_1 = 7;
|
|
1711
1711
|
var tmp_2 = this.aa_1;
|
|
1712
1712
|
if (tmp_2 instanceof Error) {
|
|
1713
|
-
this.
|
|
1713
|
+
this.a4l_1 = this.aa_1;
|
|
1714
1714
|
var tmp_3 = this;
|
|
1715
|
-
this.
|
|
1716
|
-
close_1(this.
|
|
1717
|
-
throw this.
|
|
1715
|
+
this.w4k_1.u4h(this.a4l_1);
|
|
1716
|
+
close_1(this.x4k_1, this.a4l_1);
|
|
1717
|
+
throw this.a4l_1;
|
|
1718
1718
|
} else {
|
|
1719
1719
|
throw this.aa_1;
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
1722
|
case 7:
|
|
1723
1723
|
this.y9_1 = 11;
|
|
1724
|
-
this.
|
|
1724
|
+
this.b4l_1 = this.aa_1;
|
|
1725
1725
|
this.x9_1 = 8;
|
|
1726
|
-
suspendResult = this.
|
|
1726
|
+
suspendResult = this.x4k_1.t4h(this);
|
|
1727
1727
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1728
1728
|
return suspendResult;
|
|
1729
1729
|
}
|
|
1730
1730
|
|
|
1731
1731
|
continue $sm;
|
|
1732
1732
|
case 8:
|
|
1733
|
-
throw this.
|
|
1733
|
+
throw this.b4l_1;
|
|
1734
1734
|
case 9:
|
|
1735
|
-
this.
|
|
1735
|
+
this.c4l_1 = this.z4k_1;
|
|
1736
1736
|
this.y9_1 = 11;
|
|
1737
1737
|
this.x9_1 = 10;
|
|
1738
|
-
suspendResult = this.
|
|
1738
|
+
suspendResult = this.x4k_1.t4h(this);
|
|
1739
1739
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1740
1740
|
return suspendResult;
|
|
1741
1741
|
}
|
|
1742
1742
|
|
|
1743
1743
|
continue $sm;
|
|
1744
1744
|
case 10:
|
|
1745
|
-
return this.
|
|
1745
|
+
return this.y4k_1;
|
|
1746
1746
|
case 11:
|
|
1747
1747
|
throw this.aa_1;
|
|
1748
1748
|
}
|
|
@@ -1759,10 +1759,10 @@
|
|
|
1759
1759
|
};
|
|
1760
1760
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1761
1761
|
CoroutineImpl.call(this, resultContinuation);
|
|
1762
|
-
this.
|
|
1763
|
-
this.
|
|
1764
|
-
this.
|
|
1765
|
-
this.
|
|
1762
|
+
this.l4l_1 = _this__u8e3s4;
|
|
1763
|
+
this.m4l_1 = buffer;
|
|
1764
|
+
this.n4l_1 = offset;
|
|
1765
|
+
this.o4l_1 = length;
|
|
1766
1766
|
}
|
|
1767
1767
|
protoOf($readAvailableCOROUTINE$).fa = function () {
|
|
1768
1768
|
var suspendResult = this.z9_1;
|
|
@@ -1772,11 +1772,11 @@
|
|
|
1772
1772
|
switch (tmp) {
|
|
1773
1773
|
case 0:
|
|
1774
1774
|
this.y9_1 = 3;
|
|
1775
|
-
if (this.
|
|
1775
|
+
if (this.l4l_1.q4h())
|
|
1776
1776
|
return -1;
|
|
1777
|
-
if (this.
|
|
1777
|
+
if (this.l4l_1.j4h().w39()) {
|
|
1778
1778
|
this.x9_1 = 1;
|
|
1779
|
-
suspendResult = this.
|
|
1779
|
+
suspendResult = this.l4l_1.s4h(VOID, this);
|
|
1780
1780
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1781
1781
|
return suspendResult;
|
|
1782
1782
|
}
|
|
@@ -1790,9 +1790,9 @@
|
|
|
1790
1790
|
this.x9_1 = 2;
|
|
1791
1791
|
continue $sm;
|
|
1792
1792
|
case 2:
|
|
1793
|
-
if (this.
|
|
1793
|
+
if (this.l4l_1.q4h())
|
|
1794
1794
|
return -1;
|
|
1795
|
-
return readAvailable_0(this.
|
|
1795
|
+
return readAvailable_0(this.l4l_1.j4h(), this.m4l_1, this.n4l_1, this.o4l_1);
|
|
1796
1796
|
case 3:
|
|
1797
1797
|
throw this.aa_1;
|
|
1798
1798
|
}
|
|
@@ -1809,8 +1809,8 @@
|
|
|
1809
1809
|
};
|
|
1810
1810
|
function $readUTF8LineCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1811
1811
|
CoroutineImpl.call(this, resultContinuation);
|
|
1812
|
-
this.
|
|
1813
|
-
this.
|
|
1812
|
+
this.x4l_1 = _this__u8e3s4;
|
|
1813
|
+
this.y4l_1 = max;
|
|
1814
1814
|
}
|
|
1815
1815
|
protoOf($readUTF8LineCOROUTINE$).fa = function () {
|
|
1816
1816
|
var suspendResult = this.z9_1;
|
|
@@ -1820,9 +1820,9 @@
|
|
|
1820
1820
|
switch (tmp) {
|
|
1821
1821
|
case 0:
|
|
1822
1822
|
this.y9_1 = 2;
|
|
1823
|
-
this.
|
|
1823
|
+
this.z4l_1 = StringBuilder_init_$Create$();
|
|
1824
1824
|
this.x9_1 = 1;
|
|
1825
|
-
suspendResult = readUTF8LineTo(this.
|
|
1825
|
+
suspendResult = readUTF8LineTo(this.x4l_1, this.z4l_1, this.y4l_1, this);
|
|
1826
1826
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1827
1827
|
return suspendResult;
|
|
1828
1828
|
}
|
|
@@ -1830,7 +1830,7 @@
|
|
|
1830
1830
|
continue $sm;
|
|
1831
1831
|
case 1:
|
|
1832
1832
|
var completed = suspendResult;
|
|
1833
|
-
return !completed ? null : this.
|
|
1833
|
+
return !completed ? null : this.z4l_1.toString();
|
|
1834
1834
|
case 2:
|
|
1835
1835
|
throw this.aa_1;
|
|
1836
1836
|
}
|
|
@@ -1847,7 +1847,7 @@
|
|
|
1847
1847
|
};
|
|
1848
1848
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1849
1849
|
CoroutineImpl.call(this, resultContinuation);
|
|
1850
|
-
this.
|
|
1850
|
+
this.i4m_1 = _this__u8e3s4;
|
|
1851
1851
|
}
|
|
1852
1852
|
protoOf($toByteArrayCOROUTINE$).fa = function () {
|
|
1853
1853
|
var suspendResult = this.z9_1;
|
|
@@ -1858,7 +1858,7 @@
|
|
|
1858
1858
|
case 0:
|
|
1859
1859
|
this.y9_1 = 2;
|
|
1860
1860
|
this.x9_1 = 1;
|
|
1861
|
-
suspendResult = readBuffer(this.
|
|
1861
|
+
suspendResult = readBuffer(this.i4m_1, this);
|
|
1862
1862
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1863
1863
|
return suspendResult;
|
|
1864
1864
|
}
|
|
@@ -1883,9 +1883,9 @@
|
|
|
1883
1883
|
};
|
|
1884
1884
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1885
1885
|
CoroutineImpl.call(this, resultContinuation);
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
this.
|
|
1886
|
+
this.r4m_1 = _this__u8e3s4;
|
|
1887
|
+
this.s4m_1 = channel;
|
|
1888
|
+
this.t4m_1 = limit;
|
|
1889
1889
|
}
|
|
1890
1890
|
protoOf($copyToCOROUTINE$).fa = function () {
|
|
1891
1891
|
var suspendResult = this.z9_1;
|
|
@@ -1895,7 +1895,7 @@
|
|
|
1895
1895
|
switch (tmp) {
|
|
1896
1896
|
case 0:
|
|
1897
1897
|
this.y9_1 = 12;
|
|
1898
|
-
this.
|
|
1898
|
+
this.u4m_1 = this.t4m_1;
|
|
1899
1899
|
this.x9_1 = 1;
|
|
1900
1900
|
continue $sm;
|
|
1901
1901
|
case 1:
|
|
@@ -1904,14 +1904,14 @@
|
|
|
1904
1904
|
this.x9_1 = 2;
|
|
1905
1905
|
continue $sm;
|
|
1906
1906
|
case 2:
|
|
1907
|
-
if (!(!this.
|
|
1907
|
+
if (!(!this.r4m_1.q4h() && this.u4m_1.j1(new Long(0, 0)) > 0)) {
|
|
1908
1908
|
this.x9_1 = 6;
|
|
1909
1909
|
continue $sm;
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
1912
|
-
if (this.
|
|
1912
|
+
if (this.r4m_1.j4h().w39()) {
|
|
1913
1913
|
this.x9_1 = 3;
|
|
1914
|
-
suspendResult = this.
|
|
1914
|
+
suspendResult = this.r4m_1.s4h(VOID, this);
|
|
1915
1915
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1916
1916
|
return suspendResult;
|
|
1917
1917
|
}
|
|
@@ -1926,13 +1926,13 @@
|
|
|
1926
1926
|
continue $sm;
|
|
1927
1927
|
case 4:
|
|
1928
1928
|
var tmp_0 = this;
|
|
1929
|
-
var tmp0 = this.
|
|
1930
|
-
var b = get_remaining(this.
|
|
1931
|
-
tmp_0.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1929
|
+
var tmp0 = this.u4m_1;
|
|
1930
|
+
var b = get_remaining(this.r4m_1.j4h());
|
|
1931
|
+
tmp_0.w4m_1 = tmp0.j1(b) <= 0 ? tmp0 : b;
|
|
1932
|
+
this.r4m_1.j4h().y3a(this.s4m_1.m4h(), this.w4m_1);
|
|
1933
|
+
this.u4m_1 = this.u4m_1.c3(this.w4m_1);
|
|
1934
1934
|
this.x9_1 = 5;
|
|
1935
|
-
suspendResult = this.
|
|
1935
|
+
suspendResult = this.s4m_1.h4h(this);
|
|
1936
1936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1937
1937
|
return suspendResult;
|
|
1938
1938
|
}
|
|
@@ -1942,7 +1942,7 @@
|
|
|
1942
1942
|
this.x9_1 = 2;
|
|
1943
1943
|
continue $sm;
|
|
1944
1944
|
case 6:
|
|
1945
|
-
this.
|
|
1945
|
+
this.v4m_1 = Unit_instance;
|
|
1946
1946
|
this.y9_1 = 12;
|
|
1947
1947
|
this.x9_1 = 10;
|
|
1948
1948
|
continue $sm;
|
|
@@ -1950,38 +1950,38 @@
|
|
|
1950
1950
|
this.y9_1 = 8;
|
|
1951
1951
|
var tmp_1 = this.aa_1;
|
|
1952
1952
|
if (tmp_1 instanceof Error) {
|
|
1953
|
-
this.
|
|
1953
|
+
this.x4m_1 = this.aa_1;
|
|
1954
1954
|
var tmp_2 = this;
|
|
1955
|
-
this.
|
|
1956
|
-
close_1(this.
|
|
1957
|
-
throw this.
|
|
1955
|
+
this.r4m_1.u4h(this.x4m_1);
|
|
1956
|
+
close_1(this.s4m_1, this.x4m_1);
|
|
1957
|
+
throw this.x4m_1;
|
|
1958
1958
|
} else {
|
|
1959
1959
|
throw this.aa_1;
|
|
1960
1960
|
}
|
|
1961
1961
|
|
|
1962
1962
|
case 8:
|
|
1963
1963
|
this.y9_1 = 12;
|
|
1964
|
-
this.
|
|
1964
|
+
this.y4m_1 = this.aa_1;
|
|
1965
1965
|
this.x9_1 = 9;
|
|
1966
|
-
suspendResult = this.
|
|
1966
|
+
suspendResult = this.s4m_1.h4h(this);
|
|
1967
1967
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1968
1968
|
return suspendResult;
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
1971
|
continue $sm;
|
|
1972
1972
|
case 9:
|
|
1973
|
-
throw this.
|
|
1973
|
+
throw this.y4m_1;
|
|
1974
1974
|
case 10:
|
|
1975
1975
|
this.y9_1 = 12;
|
|
1976
1976
|
this.x9_1 = 11;
|
|
1977
|
-
suspendResult = this.
|
|
1977
|
+
suspendResult = this.s4m_1.h4h(this);
|
|
1978
1978
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1979
1979
|
return suspendResult;
|
|
1980
1980
|
}
|
|
1981
1981
|
|
|
1982
1982
|
continue $sm;
|
|
1983
1983
|
case 11:
|
|
1984
|
-
return this.
|
|
1984
|
+
return this.t4m_1.c3(this.u4m_1);
|
|
1985
1985
|
case 12:
|
|
1986
1986
|
throw this.aa_1;
|
|
1987
1987
|
}
|
|
@@ -1998,8 +1998,8 @@
|
|
|
1998
1998
|
};
|
|
1999
1999
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
|
|
2000
2000
|
CoroutineImpl.call(this, resultContinuation);
|
|
2001
|
-
this.
|
|
2002
|
-
this.
|
|
2001
|
+
this.h4n_1 = _this__u8e3s4;
|
|
2002
|
+
this.i4n_1 = channel;
|
|
2003
2003
|
}
|
|
2004
2004
|
protoOf($copyToCOROUTINE$_0).fa = function () {
|
|
2005
2005
|
var suspendResult = this.z9_1;
|
|
@@ -2009,7 +2009,7 @@
|
|
|
2009
2009
|
switch (tmp) {
|
|
2010
2010
|
case 0:
|
|
2011
2011
|
this.y9_1 = 11;
|
|
2012
|
-
this.
|
|
2012
|
+
this.j4n_1 = new Long(0, 0);
|
|
2013
2013
|
this.x9_1 = 1;
|
|
2014
2014
|
continue $sm;
|
|
2015
2015
|
case 1:
|
|
@@ -2018,14 +2018,14 @@
|
|
|
2018
2018
|
this.x9_1 = 2;
|
|
2019
2019
|
continue $sm;
|
|
2020
2020
|
case 2:
|
|
2021
|
-
if (!!this.
|
|
2021
|
+
if (!!this.h4n_1.q4h()) {
|
|
2022
2022
|
this.x9_1 = 5;
|
|
2023
2023
|
continue $sm;
|
|
2024
2024
|
}
|
|
2025
2025
|
|
|
2026
|
-
this.
|
|
2026
|
+
this.j4n_1 = this.j4n_1.b3(this.h4n_1.j4h().z3a(this.i4n_1.m4h()));
|
|
2027
2027
|
this.x9_1 = 3;
|
|
2028
|
-
suspendResult = this.
|
|
2028
|
+
suspendResult = this.i4n_1.h4h(this);
|
|
2029
2029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2030
2030
|
return suspendResult;
|
|
2031
2031
|
}
|
|
@@ -2033,7 +2033,7 @@
|
|
|
2033
2033
|
continue $sm;
|
|
2034
2034
|
case 3:
|
|
2035
2035
|
this.x9_1 = 4;
|
|
2036
|
-
suspendResult = this.
|
|
2036
|
+
suspendResult = this.h4n_1.s4h(VOID, this);
|
|
2037
2037
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2038
2038
|
return suspendResult;
|
|
2039
2039
|
}
|
|
@@ -2043,7 +2043,7 @@
|
|
|
2043
2043
|
this.x9_1 = 2;
|
|
2044
2044
|
continue $sm;
|
|
2045
2045
|
case 5:
|
|
2046
|
-
this.
|
|
2046
|
+
this.k4n_1 = Unit_instance;
|
|
2047
2047
|
this.y9_1 = 11;
|
|
2048
2048
|
this.x9_1 = 9;
|
|
2049
2049
|
continue $sm;
|
|
@@ -2051,38 +2051,38 @@
|
|
|
2051
2051
|
this.y9_1 = 7;
|
|
2052
2052
|
var tmp_0 = this.aa_1;
|
|
2053
2053
|
if (tmp_0 instanceof Error) {
|
|
2054
|
-
this.
|
|
2054
|
+
this.l4n_1 = this.aa_1;
|
|
2055
2055
|
var tmp_1 = this;
|
|
2056
|
-
this.
|
|
2057
|
-
close_1(this.
|
|
2058
|
-
throw this.
|
|
2056
|
+
this.h4n_1.u4h(this.l4n_1);
|
|
2057
|
+
close_1(this.i4n_1, this.l4n_1);
|
|
2058
|
+
throw this.l4n_1;
|
|
2059
2059
|
} else {
|
|
2060
2060
|
throw this.aa_1;
|
|
2061
2061
|
}
|
|
2062
2062
|
|
|
2063
2063
|
case 7:
|
|
2064
2064
|
this.y9_1 = 11;
|
|
2065
|
-
this.
|
|
2065
|
+
this.m4n_1 = this.aa_1;
|
|
2066
2066
|
this.x9_1 = 8;
|
|
2067
|
-
suspendResult = this.
|
|
2067
|
+
suspendResult = this.i4n_1.h4h(this);
|
|
2068
2068
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2069
2069
|
return suspendResult;
|
|
2070
2070
|
}
|
|
2071
2071
|
|
|
2072
2072
|
continue $sm;
|
|
2073
2073
|
case 8:
|
|
2074
|
-
throw this.
|
|
2074
|
+
throw this.m4n_1;
|
|
2075
2075
|
case 9:
|
|
2076
2076
|
this.y9_1 = 11;
|
|
2077
2077
|
this.x9_1 = 10;
|
|
2078
|
-
suspendResult = this.
|
|
2078
|
+
suspendResult = this.i4n_1.h4h(this);
|
|
2079
2079
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2080
2080
|
return suspendResult;
|
|
2081
2081
|
}
|
|
2082
2082
|
|
|
2083
2083
|
continue $sm;
|
|
2084
2084
|
case 10:
|
|
2085
|
-
return this.
|
|
2085
|
+
return this.j4n_1;
|
|
2086
2086
|
case 11:
|
|
2087
2087
|
throw this.aa_1;
|
|
2088
2088
|
}
|
|
@@ -2099,7 +2099,7 @@
|
|
|
2099
2099
|
};
|
|
2100
2100
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2101
2101
|
CoroutineImpl.call(this, resultContinuation);
|
|
2102
|
-
this.
|
|
2102
|
+
this.a4o_1 = _this__u8e3s4;
|
|
2103
2103
|
}
|
|
2104
2104
|
protoOf($readBufferCOROUTINE$).fa = function () {
|
|
2105
2105
|
var suspendResult = this.z9_1;
|
|
@@ -2109,18 +2109,18 @@
|
|
|
2109
2109
|
switch (tmp) {
|
|
2110
2110
|
case 0:
|
|
2111
2111
|
this.y9_1 = 4;
|
|
2112
|
-
this.
|
|
2112
|
+
this.b4o_1 = new Buffer();
|
|
2113
2113
|
this.x9_1 = 1;
|
|
2114
2114
|
continue $sm;
|
|
2115
2115
|
case 1:
|
|
2116
|
-
if (!!this.
|
|
2116
|
+
if (!!this.a4o_1.q4h()) {
|
|
2117
2117
|
this.x9_1 = 3;
|
|
2118
2118
|
continue $sm;
|
|
2119
2119
|
}
|
|
2120
2120
|
|
|
2121
|
-
this.
|
|
2121
|
+
this.b4o_1.o3b(this.a4o_1.j4h());
|
|
2122
2122
|
this.x9_1 = 2;
|
|
2123
|
-
suspendResult = this.
|
|
2123
|
+
suspendResult = this.a4o_1.s4h(VOID, this);
|
|
2124
2124
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2125
2125
|
return suspendResult;
|
|
2126
2126
|
}
|
|
@@ -2130,14 +2130,14 @@
|
|
|
2130
2130
|
this.x9_1 = 1;
|
|
2131
2131
|
continue $sm;
|
|
2132
2132
|
case 3:
|
|
2133
|
-
var tmp0_safe_receiver = this.
|
|
2133
|
+
var tmp0_safe_receiver = this.a4o_1.o4h();
|
|
2134
2134
|
if (tmp0_safe_receiver == null)
|
|
2135
2135
|
null;
|
|
2136
2136
|
else {
|
|
2137
2137
|
throw tmp0_safe_receiver;
|
|
2138
2138
|
}
|
|
2139
2139
|
|
|
2140
|
-
return this.
|
|
2140
|
+
return this.b4o_1;
|
|
2141
2141
|
case 4:
|
|
2142
2142
|
throw this.aa_1;
|
|
2143
2143
|
}
|
|
@@ -2154,10 +2154,10 @@
|
|
|
2154
2154
|
};
|
|
2155
2155
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
2156
2156
|
CoroutineImpl.call(this, resultContinuation);
|
|
2157
|
-
this.
|
|
2158
|
-
this.
|
|
2159
|
-
this.
|
|
2160
|
-
this.
|
|
2157
|
+
this.k4o_1 = _this__u8e3s4;
|
|
2158
|
+
this.l4o_1 = out;
|
|
2159
|
+
this.m4o_1 = max;
|
|
2160
|
+
this.n4o_1 = lineEnding;
|
|
2161
2161
|
}
|
|
2162
2162
|
protoOf($readUTF8LineToCOROUTINE$).fa = function () {
|
|
2163
2163
|
var suspendResult = this.z9_1;
|
|
@@ -2167,9 +2167,9 @@
|
|
|
2167
2167
|
switch (tmp) {
|
|
2168
2168
|
case 0:
|
|
2169
2169
|
this.y9_1 = 21;
|
|
2170
|
-
if (this.
|
|
2170
|
+
if (this.k4o_1.j4h().w39()) {
|
|
2171
2171
|
this.x9_1 = 1;
|
|
2172
|
-
suspendResult = this.
|
|
2172
|
+
suspendResult = this.k4o_1.s4h(VOID, this);
|
|
2173
2173
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2174
2174
|
return suspendResult;
|
|
2175
2175
|
}
|
|
@@ -2183,15 +2183,15 @@
|
|
|
2183
2183
|
this.x9_1 = 2;
|
|
2184
2184
|
continue $sm;
|
|
2185
2185
|
case 2:
|
|
2186
|
-
if (this.
|
|
2186
|
+
if (this.k4o_1.q4h())
|
|
2187
2187
|
return false;
|
|
2188
2188
|
var tmp_0 = this;
|
|
2189
|
-
tmp_0.
|
|
2189
|
+
tmp_0.o4o_1 = new Buffer();
|
|
2190
2190
|
this.x9_1 = 3;
|
|
2191
2191
|
continue $sm;
|
|
2192
2192
|
case 3:
|
|
2193
|
-
this.
|
|
2194
|
-
this.
|
|
2193
|
+
this.q4o_1 = this.o4o_1;
|
|
2194
|
+
this.r4o_1 = null;
|
|
2195
2195
|
this.x9_1 = 4;
|
|
2196
2196
|
continue $sm;
|
|
2197
2197
|
case 4:
|
|
@@ -2204,12 +2204,12 @@
|
|
|
2204
2204
|
this.y9_1 = 18;
|
|
2205
2205
|
this.y9_1 = 17;
|
|
2206
2206
|
var tmp_1 = this;
|
|
2207
|
-
tmp_1.
|
|
2208
|
-
this.
|
|
2207
|
+
tmp_1.t4o_1 = this.q4o_1;
|
|
2208
|
+
this.u4o_1 = this.t4o_1;
|
|
2209
2209
|
this.x9_1 = 7;
|
|
2210
2210
|
continue $sm;
|
|
2211
2211
|
case 7:
|
|
2212
|
-
if (!!this.
|
|
2212
|
+
if (!!this.k4o_1.q4h()) {
|
|
2213
2213
|
this.x9_1 = 14;
|
|
2214
2214
|
continue $sm;
|
|
2215
2215
|
}
|
|
@@ -2217,16 +2217,16 @@
|
|
|
2217
2217
|
this.x9_1 = 8;
|
|
2218
2218
|
continue $sm;
|
|
2219
2219
|
case 8:
|
|
2220
|
-
if (!!this.
|
|
2220
|
+
if (!!this.k4o_1.j4h().w39()) {
|
|
2221
2221
|
this.x9_1 = 12;
|
|
2222
2222
|
continue $sm;
|
|
2223
2223
|
}
|
|
2224
2224
|
|
|
2225
|
-
this.
|
|
2226
|
-
if (this.
|
|
2227
|
-
if (this.
|
|
2225
|
+
this.v4o_1 = this.k4o_1.j4h().z39();
|
|
2226
|
+
if (this.v4o_1 === 13) {
|
|
2227
|
+
if (this.k4o_1.j4h().w39()) {
|
|
2228
2228
|
this.x9_1 = 10;
|
|
2229
|
-
suspendResult = this.
|
|
2229
|
+
suspendResult = this.k4o_1.s4h(VOID, this);
|
|
2230
2230
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2231
2231
|
return suspendResult;
|
|
2232
2232
|
}
|
|
@@ -2236,15 +2236,15 @@
|
|
|
2236
2236
|
continue $sm;
|
|
2237
2237
|
}
|
|
2238
2238
|
} else {
|
|
2239
|
-
if (this.
|
|
2240
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2239
|
+
if (this.v4o_1 === 10) {
|
|
2240
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n4o_1, Companion_getInstance_1().o4n_1);
|
|
2241
|
+
this.l4o_1.i(readString(this.u4o_1));
|
|
2242
|
+
this.s4o_1 = true;
|
|
2243
2243
|
this.y9_1 = 21;
|
|
2244
2244
|
this.x9_1 = 15;
|
|
2245
2245
|
continue $sm;
|
|
2246
2246
|
} else {
|
|
2247
|
-
this.
|
|
2247
|
+
this.u4o_1.p3b(this.v4o_1);
|
|
2248
2248
|
this.x9_1 = 9;
|
|
2249
2249
|
continue $sm;
|
|
2250
2250
|
}
|
|
@@ -2257,25 +2257,25 @@
|
|
|
2257
2257
|
this.x9_1 = 11;
|
|
2258
2258
|
continue $sm;
|
|
2259
2259
|
case 11:
|
|
2260
|
-
if (this.
|
|
2261
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
2262
|
-
discard_0(this.
|
|
2260
|
+
if (this.k4o_1.j4h().v39().r3a(new Long(0, 0)) === 10) {
|
|
2261
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n4o_1, Companion_getInstance_1().p4n_1);
|
|
2262
|
+
discard_0(this.k4o_1.j4h(), new Long(1, 0));
|
|
2263
2263
|
} else {
|
|
2264
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
2264
|
+
readUTF8LineTo$checkLineEndingAllowed(this.n4o_1, Companion_getInstance_1().n4n_1);
|
|
2265
2265
|
}
|
|
2266
2266
|
|
|
2267
|
-
this.
|
|
2268
|
-
this.
|
|
2267
|
+
this.l4o_1.i(readString(this.u4o_1));
|
|
2268
|
+
this.s4o_1 = true;
|
|
2269
2269
|
this.y9_1 = 21;
|
|
2270
2270
|
this.x9_1 = 15;
|
|
2271
2271
|
continue $sm;
|
|
2272
2272
|
case 12:
|
|
2273
|
-
if (this.
|
|
2274
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
2273
|
+
if (this.u4o_1.s().j1(toLong(this.m4o_1)) >= 0) {
|
|
2274
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.m4o_1 + ' characters');
|
|
2275
2275
|
}
|
|
2276
2276
|
|
|
2277
2277
|
this.x9_1 = 13;
|
|
2278
|
-
suspendResult = this.
|
|
2278
|
+
suspendResult = this.k4o_1.s4h(VOID, this);
|
|
2279
2279
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2280
2280
|
return suspendResult;
|
|
2281
2281
|
}
|
|
@@ -2286,26 +2286,26 @@
|
|
|
2286
2286
|
continue $sm;
|
|
2287
2287
|
case 14:
|
|
2288
2288
|
var tmp_2 = this;
|
|
2289
|
-
var this_0 = this.
|
|
2289
|
+
var this_0 = this.u4o_1.s().j1(new Long(0, 0)) > 0;
|
|
2290
2290
|
if (this_0) {
|
|
2291
|
-
this.
|
|
2291
|
+
this.l4o_1.i(readString(this.u4o_1));
|
|
2292
2292
|
}
|
|
2293
2293
|
|
|
2294
|
-
tmp_2.
|
|
2294
|
+
tmp_2.s4o_1 = this_0;
|
|
2295
2295
|
this.y9_1 = 21;
|
|
2296
2296
|
this.x9_1 = 15;
|
|
2297
2297
|
var tmp_3 = this;
|
|
2298
2298
|
continue $sm;
|
|
2299
2299
|
case 15:
|
|
2300
|
-
var tmp_4 = this.
|
|
2300
|
+
var tmp_4 = this.s4o_1;
|
|
2301
2301
|
this.y9_1 = 21;
|
|
2302
|
-
closeFinally(this.
|
|
2302
|
+
closeFinally(this.q4o_1, this.r4o_1);
|
|
2303
2303
|
return tmp_4;
|
|
2304
2304
|
case 16:
|
|
2305
2305
|
this.y9_1 = 21;
|
|
2306
2306
|
var tmp_5 = this;
|
|
2307
|
-
closeFinally(this.
|
|
2308
|
-
tmp_5.
|
|
2307
|
+
closeFinally(this.q4o_1, this.r4o_1);
|
|
2308
|
+
tmp_5.p4o_1 = Unit_instance;
|
|
2309
2309
|
this.x9_1 = 20;
|
|
2310
2310
|
continue $sm;
|
|
2311
2311
|
case 17:
|
|
@@ -2314,7 +2314,7 @@
|
|
|
2314
2314
|
if (tmp_6 instanceof Error) {
|
|
2315
2315
|
var e = this.aa_1;
|
|
2316
2316
|
var tmp_7 = this;
|
|
2317
|
-
this.
|
|
2317
|
+
this.r4o_1 = e;
|
|
2318
2318
|
throw e;
|
|
2319
2319
|
} else {
|
|
2320
2320
|
throw this.aa_1;
|
|
@@ -2323,11 +2323,11 @@
|
|
|
2323
2323
|
case 18:
|
|
2324
2324
|
this.y9_1 = 21;
|
|
2325
2325
|
var t = this.aa_1;
|
|
2326
|
-
closeFinally(this.
|
|
2326
|
+
closeFinally(this.q4o_1, this.r4o_1);
|
|
2327
2327
|
throw t;
|
|
2328
2328
|
case 19:
|
|
2329
2329
|
this.y9_1 = 21;
|
|
2330
|
-
closeFinally(this.
|
|
2330
|
+
closeFinally(this.q4o_1, this.r4o_1);
|
|
2331
2331
|
if (false) {
|
|
2332
2332
|
this.x9_1 = 3;
|
|
2333
2333
|
continue $sm;
|
|
@@ -2353,8 +2353,8 @@
|
|
|
2353
2353
|
};
|
|
2354
2354
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
2355
2355
|
CoroutineImpl.call(this, resultContinuation);
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2356
|
+
this.e4p_1 = _this__u8e3s4;
|
|
2357
|
+
this.f4p_1 = max;
|
|
2358
2358
|
}
|
|
2359
2359
|
protoOf($readRemainingCOROUTINE$_0).fa = function () {
|
|
2360
2360
|
var suspendResult = this.z9_1;
|
|
@@ -2364,26 +2364,26 @@
|
|
|
2364
2364
|
switch (tmp) {
|
|
2365
2365
|
case 0:
|
|
2366
2366
|
this.y9_1 = 4;
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2367
|
+
this.g4p_1 = BytePacketBuilder();
|
|
2368
|
+
this.h4p_1 = this.f4p_1;
|
|
2369
2369
|
this.x9_1 = 1;
|
|
2370
2370
|
continue $sm;
|
|
2371
2371
|
case 1:
|
|
2372
|
-
if (!(!this.
|
|
2372
|
+
if (!(!this.e4p_1.q4h() && this.h4p_1.j1(new Long(0, 0)) > 0)) {
|
|
2373
2373
|
this.x9_1 = 3;
|
|
2374
2374
|
continue $sm;
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
|
-
if (this.
|
|
2378
|
-
this.
|
|
2379
|
-
this.
|
|
2377
|
+
if (this.h4p_1.j1(get_remaining(this.e4p_1.j4h())) >= 0) {
|
|
2378
|
+
this.h4p_1 = this.h4p_1.c3(get_remaining(this.e4p_1.j4h()));
|
|
2379
|
+
this.e4p_1.j4h().z3a(this.g4p_1);
|
|
2380
2380
|
} else {
|
|
2381
|
-
this.
|
|
2382
|
-
this.
|
|
2381
|
+
this.e4p_1.j4h().y3a(this.g4p_1, this.h4p_1);
|
|
2382
|
+
this.h4p_1 = new Long(0, 0);
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
2385
|
this.x9_1 = 2;
|
|
2386
|
-
suspendResult = this.
|
|
2386
|
+
suspendResult = this.e4p_1.s4h(VOID, this);
|
|
2387
2387
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2388
2388
|
return suspendResult;
|
|
2389
2389
|
}
|
|
@@ -2393,7 +2393,7 @@
|
|
|
2393
2393
|
this.x9_1 = 1;
|
|
2394
2394
|
continue $sm;
|
|
2395
2395
|
case 3:
|
|
2396
|
-
return this.
|
|
2396
|
+
return this.g4p_1.v39();
|
|
2397
2397
|
case 4:
|
|
2398
2398
|
throw this.aa_1;
|
|
2399
2399
|
}
|
|
@@ -2410,8 +2410,8 @@
|
|
|
2410
2410
|
};
|
|
2411
2411
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
2412
2412
|
CoroutineImpl.call(this, resultContinuation);
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2413
|
+
this.q4p_1 = _this__u8e3s4;
|
|
2414
|
+
this.r4p_1 = byteString;
|
|
2415
2415
|
}
|
|
2416
2416
|
protoOf($skipIfFoundCOROUTINE$).fa = function () {
|
|
2417
2417
|
var suspendResult = this.z9_1;
|
|
@@ -2422,17 +2422,17 @@
|
|
|
2422
2422
|
case 0:
|
|
2423
2423
|
this.y9_1 = 4;
|
|
2424
2424
|
this.x9_1 = 1;
|
|
2425
|
-
suspendResult = peek(this.
|
|
2425
|
+
suspendResult = peek(this.q4p_1, this.r4p_1.s(), this);
|
|
2426
2426
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2427
2427
|
return suspendResult;
|
|
2428
2428
|
}
|
|
2429
2429
|
|
|
2430
2430
|
continue $sm;
|
|
2431
2431
|
case 1:
|
|
2432
|
-
this.
|
|
2433
|
-
if (equals(this.
|
|
2432
|
+
this.s4p_1 = suspendResult;
|
|
2433
|
+
if (equals(this.s4p_1, this.r4p_1)) {
|
|
2434
2434
|
this.x9_1 = 3;
|
|
2435
|
-
suspendResult = discard(this.
|
|
2435
|
+
suspendResult = discard(this.q4p_1, toLong(this.r4p_1.s()), this);
|
|
2436
2436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2437
2437
|
return suspendResult;
|
|
2438
2438
|
}
|
|
@@ -2462,8 +2462,8 @@
|
|
|
2462
2462
|
};
|
|
2463
2463
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
2464
2464
|
CoroutineImpl.call(this, resultContinuation);
|
|
2465
|
-
this.
|
|
2466
|
-
this.
|
|
2465
|
+
this.b4q_1 = _this__u8e3s4;
|
|
2466
|
+
this.c4q_1 = packet;
|
|
2467
2467
|
}
|
|
2468
2468
|
protoOf($readPacketCOROUTINE$).fa = function () {
|
|
2469
2469
|
var suspendResult = this.z9_1;
|
|
@@ -2473,18 +2473,18 @@
|
|
|
2473
2473
|
switch (tmp) {
|
|
2474
2474
|
case 0:
|
|
2475
2475
|
this.y9_1 = 6;
|
|
2476
|
-
this.
|
|
2476
|
+
this.d4q_1 = new Buffer();
|
|
2477
2477
|
this.x9_1 = 1;
|
|
2478
2478
|
continue $sm;
|
|
2479
2479
|
case 1:
|
|
2480
|
-
if (!(this.
|
|
2480
|
+
if (!(this.d4q_1.s().j1(toLong(this.c4q_1)) < 0)) {
|
|
2481
2481
|
this.x9_1 = 5;
|
|
2482
2482
|
continue $sm;
|
|
2483
2483
|
}
|
|
2484
2484
|
|
|
2485
|
-
if (this.
|
|
2485
|
+
if (this.b4q_1.j4h().w39()) {
|
|
2486
2486
|
this.x9_1 = 2;
|
|
2487
|
-
suspendResult = this.
|
|
2487
|
+
suspendResult = this.b4q_1.s4h(VOID, this);
|
|
2488
2488
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2489
2489
|
return suspendResult;
|
|
2490
2490
|
}
|
|
@@ -2498,7 +2498,7 @@
|
|
|
2498
2498
|
this.x9_1 = 3;
|
|
2499
2499
|
continue $sm;
|
|
2500
2500
|
case 3:
|
|
2501
|
-
if (this.
|
|
2501
|
+
if (this.b4q_1.q4h()) {
|
|
2502
2502
|
this.x9_1 = 5;
|
|
2503
2503
|
continue $sm;
|
|
2504
2504
|
} else {
|
|
@@ -2507,20 +2507,20 @@
|
|
|
2507
2507
|
}
|
|
2508
2508
|
|
|
2509
2509
|
case 4:
|
|
2510
|
-
if (get_remaining(this.
|
|
2511
|
-
this.
|
|
2510
|
+
if (get_remaining(this.b4q_1.j4h()).j1(numberToLong(this.c4q_1).c3(this.d4q_1.s())) > 0) {
|
|
2511
|
+
this.b4q_1.j4h().y3a(this.d4q_1, numberToLong(this.c4q_1).c3(this.d4q_1.s()));
|
|
2512
2512
|
} else {
|
|
2513
|
-
this.
|
|
2513
|
+
this.b4q_1.j4h().z3a(this.d4q_1);
|
|
2514
2514
|
}
|
|
2515
2515
|
|
|
2516
2516
|
this.x9_1 = 1;
|
|
2517
2517
|
continue $sm;
|
|
2518
2518
|
case 5:
|
|
2519
|
-
if (this.
|
|
2520
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
2519
|
+
if (this.d4q_1.s().j1(toLong(this.c4q_1)) < 0) {
|
|
2520
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.c4q_1 + ' bytes but only ' + this.d4q_1.s().toString() + ' available');
|
|
2521
2521
|
}
|
|
2522
2522
|
|
|
2523
|
-
return this.
|
|
2523
|
+
return this.d4q_1;
|
|
2524
2524
|
case 6:
|
|
2525
2525
|
throw this.aa_1;
|
|
2526
2526
|
}
|
|
@@ -2537,8 +2537,8 @@
|
|
|
2537
2537
|
};
|
|
2538
2538
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2539
2539
|
CoroutineImpl.call(this, resultContinuation);
|
|
2540
|
-
this.
|
|
2541
|
-
this.
|
|
2540
|
+
this.d4r_1 = _this__u8e3s4;
|
|
2541
|
+
this.e4r_1 = count;
|
|
2542
2542
|
}
|
|
2543
2543
|
protoOf($peekCOROUTINE$).fa = function () {
|
|
2544
2544
|
var suspendResult = this.z9_1;
|
|
@@ -2548,10 +2548,10 @@
|
|
|
2548
2548
|
switch (tmp) {
|
|
2549
2549
|
case 0:
|
|
2550
2550
|
this.y9_1 = 3;
|
|
2551
|
-
if (this.
|
|
2551
|
+
if (this.d4r_1.q4h())
|
|
2552
2552
|
return null;
|
|
2553
2553
|
this.x9_1 = 1;
|
|
2554
|
-
suspendResult = this.
|
|
2554
|
+
suspendResult = this.d4r_1.r4h(this.e4r_1, this);
|
|
2555
2555
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2556
2556
|
return suspendResult;
|
|
2557
2557
|
}
|
|
@@ -2567,7 +2567,7 @@
|
|
|
2567
2567
|
}
|
|
2568
2568
|
|
|
2569
2569
|
case 2:
|
|
2570
|
-
return readByteString(this.
|
|
2570
|
+
return readByteString(this.d4r_1.j4h().a3b(), this.e4r_1);
|
|
2571
2571
|
case 3:
|
|
2572
2572
|
throw this.aa_1;
|
|
2573
2573
|
}
|
|
@@ -2594,18 +2594,18 @@
|
|
|
2594
2594
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2595
2595
|
}
|
|
2596
2596
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2597
|
-
this.
|
|
2597
|
+
this.q4s_1 = p0;
|
|
2598
2598
|
}
|
|
2599
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2600
|
-
return this.
|
|
2599
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).f4s = function ($completion) {
|
|
2600
|
+
return this.q4s_1.t4h($completion);
|
|
2601
2601
|
};
|
|
2602
2602
|
protoOf(ByteWriteChannel$flushAndClose$ref).wb = function ($completion) {
|
|
2603
|
-
return this.
|
|
2603
|
+
return this.f4s($completion);
|
|
2604
2604
|
};
|
|
2605
2605
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2606
2606
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2607
2607
|
var l = function ($completion) {
|
|
2608
|
-
return i.
|
|
2608
|
+
return i.f4s($completion);
|
|
2609
2609
|
};
|
|
2610
2610
|
l.callableName = 'flushAndClose';
|
|
2611
2611
|
l.$arity = 0;
|
|
@@ -2613,7 +2613,7 @@
|
|
|
2613
2613
|
}
|
|
2614
2614
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2615
2615
|
CoroutineImpl.call(this, resultContinuation);
|
|
2616
|
-
this.
|
|
2616
|
+
this.p4s_1 = _this__u8e3s4;
|
|
2617
2617
|
}
|
|
2618
2618
|
protoOf($flushIfNeededCOROUTINE$).fa = function () {
|
|
2619
2619
|
var suspendResult = this.z9_1;
|
|
@@ -2623,10 +2623,10 @@
|
|
|
2623
2623
|
switch (tmp) {
|
|
2624
2624
|
case 0:
|
|
2625
2625
|
this.y9_1 = 3;
|
|
2626
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2627
|
-
if (this.
|
|
2626
|
+
rethrowCloseCauseIfNeeded_1(this.p4s_1);
|
|
2627
|
+
if (this.p4s_1.i4h() || get_size(this.p4s_1.m4h()) >= 1048576) {
|
|
2628
2628
|
this.x9_1 = 1;
|
|
2629
|
-
suspendResult = this.
|
|
2629
|
+
suspendResult = this.p4s_1.h4h(this);
|
|
2630
2630
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2631
2631
|
return suspendResult;
|
|
2632
2632
|
}
|
|
@@ -2661,11 +2661,11 @@
|
|
|
2661
2661
|
}
|
|
2662
2662
|
var NO_CALLBACK;
|
|
2663
2663
|
function WriterJob(channel, job) {
|
|
2664
|
-
this.
|
|
2665
|
-
this.
|
|
2664
|
+
this.r4s_1 = channel;
|
|
2665
|
+
this.s4s_1 = job;
|
|
2666
2666
|
}
|
|
2667
2667
|
protoOf(WriterJob).m1z = function () {
|
|
2668
|
-
return this.
|
|
2668
|
+
return this.s4s_1;
|
|
2669
2669
|
};
|
|
2670
2670
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2671
2671
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2674,16 +2674,16 @@
|
|
|
2674
2674
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2675
2675
|
}
|
|
2676
2676
|
function WriterScope(channel, coroutineContext) {
|
|
2677
|
-
this.
|
|
2678
|
-
this.
|
|
2677
|
+
this.t4s_1 = channel;
|
|
2678
|
+
this.u4s_1 = coroutineContext;
|
|
2679
2679
|
}
|
|
2680
2680
|
protoOf(WriterScope).z1v = function () {
|
|
2681
|
-
return this.
|
|
2681
|
+
return this.u4s_1;
|
|
2682
2682
|
};
|
|
2683
2683
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2684
2684
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2685
2685
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2686
|
-
_this__u8e3s4.
|
|
2686
|
+
_this__u8e3s4.m4h().f3b(value, startIndex, endIndex);
|
|
2687
2687
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2688
2688
|
}
|
|
2689
2689
|
function close_1(_this__u8e3s4, cause) {
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
if (cause == null) {
|
|
2692
2692
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_2(_this__u8e3s4));
|
|
2693
2693
|
} else {
|
|
2694
|
-
_this__u8e3s4.
|
|
2694
|
+
_this__u8e3s4.u4h(cause);
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
@@ -2718,19 +2718,19 @@
|
|
|
2718
2718
|
return tmp.fa();
|
|
2719
2719
|
}
|
|
2720
2720
|
function writeStringUtf8(_this__u8e3s4, value, $completion) {
|
|
2721
|
-
writeText(_this__u8e3s4.
|
|
2721
|
+
writeText(_this__u8e3s4.m4h(), value);
|
|
2722
2722
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2723
2723
|
}
|
|
2724
2724
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2725
|
-
_this__u8e3s4.
|
|
2725
|
+
_this__u8e3s4.m4h().p3b(value);
|
|
2726
2726
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2727
2727
|
}
|
|
2728
2728
|
function writeShort(_this__u8e3s4, value, $completion) {
|
|
2729
|
-
_this__u8e3s4.
|
|
2729
|
+
_this__u8e3s4.m4h().r3b(value);
|
|
2730
2730
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2731
2731
|
}
|
|
2732
2732
|
function writeByteArray(_this__u8e3s4, array, $completion) {
|
|
2733
|
-
_this__u8e3s4.
|
|
2733
|
+
_this__u8e3s4.m4h().i3b(array);
|
|
2734
2734
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2735
2735
|
}
|
|
2736
2736
|
function cancel_1(_this__u8e3s4) {
|
|
@@ -2750,10 +2750,10 @@
|
|
|
2750
2750
|
return _this__u8e3s4.m1z().z1w();
|
|
2751
2751
|
}
|
|
2752
2752
|
function NO_CALLBACK$1() {
|
|
2753
|
-
this.
|
|
2753
|
+
this.f4t_1 = EmptyCoroutineContext_getInstance();
|
|
2754
2754
|
}
|
|
2755
2755
|
protoOf(NO_CALLBACK$1).da = function () {
|
|
2756
|
-
return this.
|
|
2756
|
+
return this.f4t_1;
|
|
2757
2757
|
};
|
|
2758
2758
|
protoOf(NO_CALLBACK$1).ea = function (result) {
|
|
2759
2759
|
return Unit_instance;
|
|
@@ -2762,26 +2762,26 @@
|
|
|
2762
2762
|
return this.ea(result);
|
|
2763
2763
|
};
|
|
2764
2764
|
function ByteWriteChannel$flushAndClose$ref_1(p0) {
|
|
2765
|
-
this.
|
|
2765
|
+
this.g4t_1 = p0;
|
|
2766
2766
|
}
|
|
2767
|
-
protoOf(ByteWriteChannel$flushAndClose$ref_1).
|
|
2768
|
-
return this.
|
|
2767
|
+
protoOf(ByteWriteChannel$flushAndClose$ref_1).f4s = function ($completion) {
|
|
2768
|
+
return this.g4t_1.t4h($completion);
|
|
2769
2769
|
};
|
|
2770
2770
|
protoOf(ByteWriteChannel$flushAndClose$ref_1).wb = function ($completion) {
|
|
2771
|
-
return this.
|
|
2771
|
+
return this.f4s($completion);
|
|
2772
2772
|
};
|
|
2773
2773
|
function ByteWriteChannel$flushAndClose$ref_2(p0) {
|
|
2774
2774
|
var i = new ByteWriteChannel$flushAndClose$ref_1(p0);
|
|
2775
2775
|
var l = function ($completion) {
|
|
2776
|
-
return i.
|
|
2776
|
+
return i.f4s($completion);
|
|
2777
2777
|
};
|
|
2778
2778
|
l.callableName = 'flushAndClose';
|
|
2779
2779
|
l.$arity = 0;
|
|
2780
2780
|
return l;
|
|
2781
2781
|
}
|
|
2782
2782
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2783
|
-
this.
|
|
2784
|
-
this.
|
|
2783
|
+
this.p4t_1 = $block;
|
|
2784
|
+
this.q4t_1 = $channel;
|
|
2785
2785
|
CoroutineImpl.call(this, resultContinuation);
|
|
2786
2786
|
}
|
|
2787
2787
|
protoOf(writer$slambda).x2q = function ($this$launch, $completion) {
|
|
@@ -2801,29 +2801,29 @@
|
|
|
2801
2801
|
switch (tmp) {
|
|
2802
2802
|
case 0:
|
|
2803
2803
|
this.y9_1 = 14;
|
|
2804
|
-
this.
|
|
2804
|
+
this.s4t_1 = Job(get_job(this.r4t_1.z1v()));
|
|
2805
2805
|
this.x9_1 = 1;
|
|
2806
2806
|
continue $sm;
|
|
2807
2807
|
case 1:
|
|
2808
2808
|
this.y9_1 = 4;
|
|
2809
2809
|
this.y9_1 = 3;
|
|
2810
2810
|
this.x9_1 = 2;
|
|
2811
|
-
suspendResult = this.
|
|
2811
|
+
suspendResult = this.p4t_1(new WriterScope(this.q4t_1, this.r4t_1.z1v().am(this.s4t_1)), this);
|
|
2812
2812
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2813
2813
|
return suspendResult;
|
|
2814
2814
|
}
|
|
2815
2815
|
|
|
2816
2816
|
continue $sm;
|
|
2817
2817
|
case 2:
|
|
2818
|
-
this.
|
|
2818
|
+
this.s4t_1.y24();
|
|
2819
2819
|
var tmp_0 = this;
|
|
2820
2820
|
var tmp_1;
|
|
2821
|
-
if (get_job(this.
|
|
2822
|
-
this.
|
|
2821
|
+
if (get_job(this.r4t_1.z1v()).w1w()) {
|
|
2822
|
+
this.q4t_1.u4h(get_job(this.r4t_1.z1v()).z1w());
|
|
2823
2823
|
tmp_1 = Unit_instance;
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
2826
|
-
tmp_0.
|
|
2826
|
+
tmp_0.t4t_1 = tmp_1;
|
|
2827
2827
|
this.y9_1 = 14;
|
|
2828
2828
|
this.x9_1 = 9;
|
|
2829
2829
|
continue $sm;
|
|
@@ -2831,11 +2831,11 @@
|
|
|
2831
2831
|
this.y9_1 = 4;
|
|
2832
2832
|
var tmp_2 = this.aa_1;
|
|
2833
2833
|
if (tmp_2 instanceof Error) {
|
|
2834
|
-
this.
|
|
2834
|
+
this.u4t_1 = this.aa_1;
|
|
2835
2835
|
var tmp_3 = this;
|
|
2836
|
-
cancel(this.
|
|
2837
|
-
this.
|
|
2838
|
-
tmp_3.
|
|
2836
|
+
cancel(this.s4t_1, 'Exception thrown while writing to channel', this.u4t_1);
|
|
2837
|
+
this.q4t_1.u4h(this.u4t_1);
|
|
2838
|
+
tmp_3.t4t_1 = Unit_instance;
|
|
2839
2839
|
this.y9_1 = 14;
|
|
2840
2840
|
this.x9_1 = 9;
|
|
2841
2841
|
continue $sm;
|
|
@@ -2845,9 +2845,9 @@
|
|
|
2845
2845
|
|
|
2846
2846
|
case 4:
|
|
2847
2847
|
this.y9_1 = 14;
|
|
2848
|
-
this.
|
|
2848
|
+
this.v4t_1 = this.aa_1;
|
|
2849
2849
|
this.x9_1 = 5;
|
|
2850
|
-
suspendResult = this.
|
|
2850
|
+
suspendResult = this.s4t_1.g1x(this);
|
|
2851
2851
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2852
2852
|
return suspendResult;
|
|
2853
2853
|
}
|
|
@@ -2855,27 +2855,27 @@
|
|
|
2855
2855
|
continue $sm;
|
|
2856
2856
|
case 5:
|
|
2857
2857
|
var tmp_4 = this;
|
|
2858
|
-
tmp_4.
|
|
2859
|
-
this.
|
|
2858
|
+
tmp_4.w4t_1 = this.r4t_1;
|
|
2859
|
+
this.x4t_1 = this.w4t_1;
|
|
2860
2860
|
this.y9_1 = 7;
|
|
2861
2861
|
var tmp_5 = this;
|
|
2862
|
-
tmp_5.
|
|
2862
|
+
tmp_5.z4t_1 = Companion_instance;
|
|
2863
2863
|
var tmp_6 = this;
|
|
2864
|
-
tmp_6.
|
|
2865
|
-
this.
|
|
2864
|
+
tmp_6.a4u_1 = this.x4t_1;
|
|
2865
|
+
this.b4u_1 = this.a4u_1;
|
|
2866
2866
|
this.x9_1 = 6;
|
|
2867
|
-
suspendResult = this.
|
|
2867
|
+
suspendResult = this.q4t_1.t4h(this);
|
|
2868
2868
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2869
2869
|
return suspendResult;
|
|
2870
2870
|
}
|
|
2871
2871
|
|
|
2872
2872
|
continue $sm;
|
|
2873
2873
|
case 6:
|
|
2874
|
-
this.
|
|
2874
|
+
this.c4u_1 = Unit_instance;
|
|
2875
2875
|
var tmp_7 = this;
|
|
2876
|
-
this.
|
|
2877
|
-
var value = this.
|
|
2878
|
-
tmp_7.
|
|
2876
|
+
this.z4t_1;
|
|
2877
|
+
var value = this.c4u_1;
|
|
2878
|
+
tmp_7.y4t_1 = _Result___init__impl__xyqfz8(value);
|
|
2879
2879
|
this.y9_1 = 14;
|
|
2880
2880
|
this.x9_1 = 8;
|
|
2881
2881
|
continue $sm;
|
|
@@ -2883,10 +2883,10 @@
|
|
|
2883
2883
|
this.y9_1 = 14;
|
|
2884
2884
|
var tmp_8 = this.aa_1;
|
|
2885
2885
|
if (tmp_8 instanceof Error) {
|
|
2886
|
-
this.
|
|
2886
|
+
this.d4u_1 = this.aa_1;
|
|
2887
2887
|
var tmp_9 = this;
|
|
2888
|
-
var exception = this.
|
|
2889
|
-
tmp_9.
|
|
2888
|
+
var exception = this.d4u_1;
|
|
2889
|
+
tmp_9.y4t_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
2890
2890
|
this.x9_1 = 8;
|
|
2891
2891
|
continue $sm;
|
|
2892
2892
|
} else {
|
|
@@ -2895,11 +2895,11 @@
|
|
|
2895
2895
|
|
|
2896
2896
|
case 8:
|
|
2897
2897
|
this.y9_1 = 14;
|
|
2898
|
-
throw this.
|
|
2898
|
+
throw this.v4t_1;
|
|
2899
2899
|
case 9:
|
|
2900
2900
|
this.y9_1 = 14;
|
|
2901
2901
|
this.x9_1 = 10;
|
|
2902
|
-
suspendResult = this.
|
|
2902
|
+
suspendResult = this.s4t_1.g1x(this);
|
|
2903
2903
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2904
2904
|
return suspendResult;
|
|
2905
2905
|
}
|
|
@@ -2907,16 +2907,16 @@
|
|
|
2907
2907
|
continue $sm;
|
|
2908
2908
|
case 10:
|
|
2909
2909
|
var tmp_10 = this;
|
|
2910
|
-
tmp_10.
|
|
2911
|
-
this.
|
|
2910
|
+
tmp_10.e4u_1 = this.r4t_1;
|
|
2911
|
+
this.f4u_1 = this.e4u_1;
|
|
2912
2912
|
this.y9_1 = 12;
|
|
2913
2913
|
var tmp_11 = this;
|
|
2914
|
-
tmp_11.
|
|
2914
|
+
tmp_11.h4u_1 = Companion_instance;
|
|
2915
2915
|
var tmp_12 = this;
|
|
2916
|
-
tmp_12.
|
|
2917
|
-
this.
|
|
2916
|
+
tmp_12.i4u_1 = this.f4u_1;
|
|
2917
|
+
this.j4u_1 = this.i4u_1;
|
|
2918
2918
|
this.x9_1 = 11;
|
|
2919
|
-
suspendResult = this.
|
|
2919
|
+
suspendResult = this.q4t_1.t4h(this);
|
|
2920
2920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2921
2921
|
return suspendResult;
|
|
2922
2922
|
}
|
|
@@ -2924,8 +2924,8 @@
|
|
|
2924
2924
|
continue $sm;
|
|
2925
2925
|
case 11:
|
|
2926
2926
|
var tmp_13 = this;
|
|
2927
|
-
this.
|
|
2928
|
-
tmp_13.
|
|
2927
|
+
this.h4u_1;
|
|
2928
|
+
tmp_13.g4u_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2929
2929
|
this.y9_1 = 14;
|
|
2930
2930
|
this.x9_1 = 13;
|
|
2931
2931
|
continue $sm;
|
|
@@ -2935,7 +2935,7 @@
|
|
|
2935
2935
|
if (tmp_14 instanceof Error) {
|
|
2936
2936
|
var e = this.aa_1;
|
|
2937
2937
|
var tmp_15 = this;
|
|
2938
|
-
tmp_15.
|
|
2938
|
+
tmp_15.g4u_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2939
2939
|
this.x9_1 = 13;
|
|
2940
2940
|
continue $sm;
|
|
2941
2941
|
} else {
|
|
@@ -2960,8 +2960,8 @@
|
|
|
2960
2960
|
while (true);
|
|
2961
2961
|
};
|
|
2962
2962
|
protoOf(writer$slambda).y2q = function ($this$launch, completion) {
|
|
2963
|
-
var i = new writer$slambda(this.
|
|
2964
|
-
i.
|
|
2963
|
+
var i = new writer$slambda(this.p4t_1, this.q4t_1, completion);
|
|
2964
|
+
i.r4t_1 = $this$launch;
|
|
2965
2965
|
return i;
|
|
2966
2966
|
};
|
|
2967
2967
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
@@ -2975,8 +2975,8 @@
|
|
|
2975
2975
|
function writer$lambda($channel) {
|
|
2976
2976
|
return function (it) {
|
|
2977
2977
|
var tmp;
|
|
2978
|
-
if (!(it == null) && !$channel.
|
|
2979
|
-
$channel.
|
|
2978
|
+
if (!(it == null) && !$channel.n4h()) {
|
|
2979
|
+
$channel.u4h(it);
|
|
2980
2980
|
tmp = Unit_instance;
|
|
2981
2981
|
}
|
|
2982
2982
|
return Unit_instance;
|
|
@@ -2984,8 +2984,8 @@
|
|
|
2984
2984
|
}
|
|
2985
2985
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2986
2986
|
CoroutineImpl.call(this, resultContinuation);
|
|
2987
|
-
this.
|
|
2988
|
-
this.
|
|
2987
|
+
this.d4t_1 = _this__u8e3s4;
|
|
2988
|
+
this.e4t_1 = source;
|
|
2989
2989
|
}
|
|
2990
2990
|
protoOf($writePacketCOROUTINE$).fa = function () {
|
|
2991
2991
|
var suspendResult = this.z9_1;
|
|
@@ -2998,14 +2998,14 @@
|
|
|
2998
2998
|
this.x9_1 = 1;
|
|
2999
2999
|
continue $sm;
|
|
3000
3000
|
case 1:
|
|
3001
|
-
if (!!this.
|
|
3001
|
+
if (!!this.e4t_1.w39()) {
|
|
3002
3002
|
this.x9_1 = 3;
|
|
3003
3003
|
continue $sm;
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
|
-
this.
|
|
3006
|
+
this.d4t_1.m4h().j3b(this.e4t_1, get_remaining(this.e4t_1));
|
|
3007
3007
|
this.x9_1 = 2;
|
|
3008
|
-
suspendResult = flushIfNeeded(this.
|
|
3008
|
+
suspendResult = flushIfNeeded(this.d4t_1, this);
|
|
3009
3009
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3010
3010
|
return suspendResult;
|
|
3011
3011
|
}
|
|
@@ -3042,7 +3042,7 @@
|
|
|
3042
3042
|
}
|
|
3043
3043
|
function $flushAndCloseCOROUTINE$_1(_this__u8e3s4, resultContinuation) {
|
|
3044
3044
|
CoroutineImpl.call(this, resultContinuation);
|
|
3045
|
-
this.
|
|
3045
|
+
this.s4u_1 = _this__u8e3s4;
|
|
3046
3046
|
}
|
|
3047
3047
|
protoOf($flushAndCloseCOROUTINE$_1).fa = function () {
|
|
3048
3048
|
var suspendResult = this.z9_1;
|
|
@@ -3053,7 +3053,7 @@
|
|
|
3053
3053
|
case 0:
|
|
3054
3054
|
this.y9_1 = 3;
|
|
3055
3055
|
this.x9_1 = 1;
|
|
3056
|
-
suspendResult = this.
|
|
3056
|
+
suspendResult = this.s4u_1.t4u_1.t4h(this);
|
|
3057
3057
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3058
3058
|
return suspendResult;
|
|
3059
3059
|
}
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
continue $sm;
|
|
3062
3062
|
case 1:
|
|
3063
3063
|
this.x9_1 = 2;
|
|
3064
|
-
suspendResult = this.
|
|
3064
|
+
suspendResult = this.s4u_1.u4u_1(this);
|
|
3065
3065
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3066
3066
|
return suspendResult;
|
|
3067
3067
|
}
|
|
@@ -3084,29 +3084,29 @@
|
|
|
3084
3084
|
while (true);
|
|
3085
3085
|
};
|
|
3086
3086
|
function CloseHookByteWriteChannel(delegate, onClose) {
|
|
3087
|
-
this.
|
|
3088
|
-
this.
|
|
3087
|
+
this.t4u_1 = delegate;
|
|
3088
|
+
this.u4u_1 = onClose;
|
|
3089
3089
|
}
|
|
3090
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3091
|
-
return this.
|
|
3090
|
+
protoOf(CloseHookByteWriteChannel).i4h = function () {
|
|
3091
|
+
return this.t4u_1.i4h();
|
|
3092
3092
|
};
|
|
3093
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3093
|
+
protoOf(CloseHookByteWriteChannel).t4h = function ($completion) {
|
|
3094
3094
|
var tmp = new $flushAndCloseCOROUTINE$_1(this, $completion);
|
|
3095
3095
|
tmp.z9_1 = Unit_instance;
|
|
3096
3096
|
tmp.aa_1 = null;
|
|
3097
3097
|
return tmp.fa();
|
|
3098
3098
|
};
|
|
3099
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3100
|
-
return this.
|
|
3099
|
+
protoOf(CloseHookByteWriteChannel).o4h = function () {
|
|
3100
|
+
return this.t4u_1.o4h();
|
|
3101
3101
|
};
|
|
3102
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3103
|
-
return this.
|
|
3102
|
+
protoOf(CloseHookByteWriteChannel).m4h = function () {
|
|
3103
|
+
return this.t4u_1.m4h();
|
|
3104
3104
|
};
|
|
3105
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3106
|
-
return this.
|
|
3105
|
+
protoOf(CloseHookByteWriteChannel).h4h = function ($completion) {
|
|
3106
|
+
return this.t4u_1.h4h($completion);
|
|
3107
3107
|
};
|
|
3108
|
-
protoOf(CloseHookByteWriteChannel).
|
|
3109
|
-
this.
|
|
3108
|
+
protoOf(CloseHookByteWriteChannel).u4h = function (cause) {
|
|
3109
|
+
this.t4u_1.u4h(cause);
|
|
3110
3110
|
};
|
|
3111
3111
|
function get_CLOSED() {
|
|
3112
3112
|
_init_properties_CloseToken_kt__9ucr41();
|
|
@@ -3121,27 +3121,27 @@
|
|
|
3121
3121
|
return l;
|
|
3122
3122
|
}
|
|
3123
3123
|
function CloseToken(origin) {
|
|
3124
|
-
this.
|
|
3124
|
+
this.k4h_1 = origin;
|
|
3125
3125
|
}
|
|
3126
|
-
protoOf(CloseToken).
|
|
3127
|
-
var tmp0_subject = this.
|
|
3126
|
+
protoOf(CloseToken).v4u = function (wrap) {
|
|
3127
|
+
var tmp0_subject = this.k4h_1;
|
|
3128
3128
|
var tmp;
|
|
3129
3129
|
if (tmp0_subject == null) {
|
|
3130
3130
|
tmp = null;
|
|
3131
3131
|
} else {
|
|
3132
3132
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
3133
|
-
tmp = this.
|
|
3133
|
+
tmp = this.k4h_1.k25();
|
|
3134
3134
|
} else {
|
|
3135
3135
|
if (tmp0_subject instanceof CancellationException) {
|
|
3136
|
-
tmp = CancellationException_init_$Create$(this.
|
|
3136
|
+
tmp = CancellationException_init_$Create$(this.k4h_1.message, this.k4h_1);
|
|
3137
3137
|
} else {
|
|
3138
|
-
tmp = wrap(this.
|
|
3138
|
+
tmp = wrap(this.k4h_1);
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
3141
|
}
|
|
3142
3142
|
return tmp;
|
|
3143
3143
|
};
|
|
3144
|
-
protoOf(CloseToken).
|
|
3144
|
+
protoOf(CloseToken).p4h = function (wrap, $super) {
|
|
3145
3145
|
var tmp;
|
|
3146
3146
|
if (wrap === VOID) {
|
|
3147
3147
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -3149,10 +3149,10 @@
|
|
|
3149
3149
|
tmp = wrap;
|
|
3150
3150
|
}
|
|
3151
3151
|
wrap = tmp;
|
|
3152
|
-
return $super === VOID ? this.
|
|
3152
|
+
return $super === VOID ? this.v4u(wrap) : $super.v4u.call(this, wrap);
|
|
3153
3153
|
};
|
|
3154
|
-
protoOf(CloseToken).
|
|
3155
|
-
var tmp0_safe_receiver = this.
|
|
3154
|
+
protoOf(CloseToken).l4h = function (wrap) {
|
|
3155
|
+
var tmp0_safe_receiver = this.v4u(wrap);
|
|
3156
3156
|
var tmp;
|
|
3157
3157
|
if (tmp0_safe_receiver == null) {
|
|
3158
3158
|
tmp = null;
|
|
@@ -3171,17 +3171,17 @@
|
|
|
3171
3171
|
}
|
|
3172
3172
|
function transferFromDelegate($this) {
|
|
3173
3173
|
updateConsumed($this);
|
|
3174
|
-
var appended = $this.
|
|
3175
|
-
$this.
|
|
3174
|
+
var appended = $this.x4u_1.o3b($this.w4u_1.j4h());
|
|
3175
|
+
$this.y4u_1 = $this.y4u_1.b3(appended);
|
|
3176
3176
|
}
|
|
3177
3177
|
function updateConsumed($this) {
|
|
3178
|
-
$this.
|
|
3179
|
-
$this.
|
|
3178
|
+
$this.z4u_1 = $this.z4u_1.b3($this.y4u_1.c3($this.x4u_1.s()));
|
|
3179
|
+
$this.y4u_1 = $this.x4u_1.s();
|
|
3180
3180
|
}
|
|
3181
3181
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
3182
3182
|
CoroutineImpl.call(this, resultContinuation);
|
|
3183
|
-
this.
|
|
3184
|
-
this.
|
|
3183
|
+
this.i4v_1 = _this__u8e3s4;
|
|
3184
|
+
this.j4v_1 = min;
|
|
3185
3185
|
}
|
|
3186
3186
|
protoOf($awaitContentCOROUTINE$_0).fa = function () {
|
|
3187
3187
|
var suspendResult = this.z9_1;
|
|
@@ -3191,12 +3191,12 @@
|
|
|
3191
3191
|
switch (tmp) {
|
|
3192
3192
|
case 0:
|
|
3193
3193
|
this.y9_1 = 3;
|
|
3194
|
-
if (this.
|
|
3194
|
+
if (this.i4v_1.j4h().s().j1(toLong(this.j4v_1)) >= 0) {
|
|
3195
3195
|
return true;
|
|
3196
3196
|
}
|
|
3197
3197
|
|
|
3198
3198
|
this.x9_1 = 1;
|
|
3199
|
-
suspendResult = this.
|
|
3199
|
+
suspendResult = this.i4v_1.w4u_1.r4h(this.j4v_1, this);
|
|
3200
3200
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
3201
3201
|
return suspendResult;
|
|
3202
3202
|
}
|
|
@@ -3204,7 +3204,7 @@
|
|
|
3204
3204
|
continue $sm;
|
|
3205
3205
|
case 1:
|
|
3206
3206
|
if (suspendResult) {
|
|
3207
|
-
transferFromDelegate(this.
|
|
3207
|
+
transferFromDelegate(this.i4v_1);
|
|
3208
3208
|
return true;
|
|
3209
3209
|
} else {
|
|
3210
3210
|
this.x9_1 = 2;
|
|
@@ -3228,34 +3228,34 @@
|
|
|
3228
3228
|
while (true);
|
|
3229
3229
|
};
|
|
3230
3230
|
function CountedByteReadChannel(delegate) {
|
|
3231
|
-
this.
|
|
3232
|
-
this.
|
|
3233
|
-
this.
|
|
3234
|
-
this.
|
|
3231
|
+
this.w4u_1 = delegate;
|
|
3232
|
+
this.x4u_1 = new Buffer();
|
|
3233
|
+
this.y4u_1 = new Long(0, 0);
|
|
3234
|
+
this.z4u_1 = new Long(0, 0);
|
|
3235
3235
|
}
|
|
3236
|
-
protoOf(CountedByteReadChannel).
|
|
3236
|
+
protoOf(CountedByteReadChannel).k4v = function () {
|
|
3237
3237
|
updateConsumed(this);
|
|
3238
|
-
return this.
|
|
3238
|
+
return this.z4u_1;
|
|
3239
3239
|
};
|
|
3240
|
-
protoOf(CountedByteReadChannel).
|
|
3241
|
-
return this.
|
|
3240
|
+
protoOf(CountedByteReadChannel).o4h = function () {
|
|
3241
|
+
return this.w4u_1.o4h();
|
|
3242
3242
|
};
|
|
3243
|
-
protoOf(CountedByteReadChannel).
|
|
3244
|
-
return this.
|
|
3243
|
+
protoOf(CountedByteReadChannel).q4h = function () {
|
|
3244
|
+
return this.x4u_1.w39() && this.w4u_1.q4h();
|
|
3245
3245
|
};
|
|
3246
|
-
protoOf(CountedByteReadChannel).
|
|
3246
|
+
protoOf(CountedByteReadChannel).j4h = function () {
|
|
3247
3247
|
transferFromDelegate(this);
|
|
3248
|
-
return this.
|
|
3248
|
+
return this.x4u_1;
|
|
3249
3249
|
};
|
|
3250
|
-
protoOf(CountedByteReadChannel).
|
|
3250
|
+
protoOf(CountedByteReadChannel).r4h = function (min, $completion) {
|
|
3251
3251
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
3252
3252
|
tmp.z9_1 = Unit_instance;
|
|
3253
3253
|
tmp.aa_1 = null;
|
|
3254
3254
|
return tmp.fa();
|
|
3255
3255
|
};
|
|
3256
|
-
protoOf(CountedByteReadChannel).
|
|
3257
|
-
this.
|
|
3258
|
-
this.
|
|
3256
|
+
protoOf(CountedByteReadChannel).u4h = function (cause) {
|
|
3257
|
+
this.w4u_1.u4h(cause);
|
|
3258
|
+
this.x4u_1.u4();
|
|
3259
3259
|
};
|
|
3260
3260
|
function counted(_this__u8e3s4) {
|
|
3261
3261
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -3292,21 +3292,21 @@
|
|
|
3292
3292
|
}
|
|
3293
3293
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
3294
3294
|
var tmp;
|
|
3295
|
-
if ($this === Companion_getInstance_1().
|
|
3295
|
+
if ($this === Companion_getInstance_1().n4n_1) {
|
|
3296
3296
|
tmp = 'CR';
|
|
3297
|
-
} else if ($this === Companion_getInstance_1().
|
|
3297
|
+
} else if ($this === Companion_getInstance_1().o4n_1) {
|
|
3298
3298
|
tmp = 'LF';
|
|
3299
|
-
} else if ($this === Companion_getInstance_1().
|
|
3299
|
+
} else if ($this === Companion_getInstance_1().p4n_1) {
|
|
3300
3300
|
tmp = 'CRLF';
|
|
3301
3301
|
} else {
|
|
3302
3302
|
// Inline function 'kotlin.collections.filter' call
|
|
3303
|
-
var tmp0 = Companion_getInstance_1().
|
|
3303
|
+
var tmp0 = Companion_getInstance_1().r4n_1;
|
|
3304
3304
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3305
3305
|
var destination = ArrayList_init_$Create$();
|
|
3306
3306
|
var _iterator__ex2g4s = tmp0.p();
|
|
3307
3307
|
while (_iterator__ex2g4s.q()) {
|
|
3308
3308
|
var element = _iterator__ex2g4s.r();
|
|
3309
|
-
var it = element.
|
|
3309
|
+
var it = element.l4v_1;
|
|
3310
3310
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
3311
3311
|
destination.h(element);
|
|
3312
3312
|
}
|
|
@@ -3317,11 +3317,11 @@
|
|
|
3317
3317
|
}
|
|
3318
3318
|
function Companion_1() {
|
|
3319
3319
|
Companion_instance_2 = this;
|
|
3320
|
-
this.
|
|
3321
|
-
this.
|
|
3322
|
-
this.
|
|
3323
|
-
this.
|
|
3324
|
-
this.
|
|
3320
|
+
this.n4n_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
3321
|
+
this.o4n_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
3322
|
+
this.p4n_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
3323
|
+
this.q4n_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
3324
|
+
this.r4n_1 = listOf([new LineEndingMode(this.n4n_1), new LineEndingMode(this.o4n_1), new LineEndingMode(this.p4n_1)]);
|
|
3325
3325
|
}
|
|
3326
3326
|
var Companion_instance_2;
|
|
3327
3327
|
function Companion_getInstance_1() {
|
|
@@ -3335,67 +3335,67 @@
|
|
|
3335
3335
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
3336
3336
|
if (!(other instanceof LineEndingMode))
|
|
3337
3337
|
return false;
|
|
3338
|
-
if (!($this === (other instanceof LineEndingMode ? other.
|
|
3338
|
+
if (!($this === (other instanceof LineEndingMode ? other.l4v_1 : THROW_CCE())))
|
|
3339
3339
|
return false;
|
|
3340
3340
|
return true;
|
|
3341
3341
|
}
|
|
3342
3342
|
function LineEndingMode(mode) {
|
|
3343
3343
|
Companion_getInstance_1();
|
|
3344
|
-
this.
|
|
3344
|
+
this.l4v_1 = mode;
|
|
3345
3345
|
}
|
|
3346
3346
|
protoOf(LineEndingMode).toString = function () {
|
|
3347
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
3347
|
+
return LineEndingMode__toString_impl_j4h76r(this.l4v_1);
|
|
3348
3348
|
};
|
|
3349
3349
|
protoOf(LineEndingMode).hashCode = function () {
|
|
3350
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
3350
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.l4v_1);
|
|
3351
3351
|
};
|
|
3352
3352
|
protoOf(LineEndingMode).equals = function (other) {
|
|
3353
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
3353
|
+
return LineEndingMode__equals_impl_qyr4nk(this.l4v_1, other);
|
|
3354
3354
|
};
|
|
3355
3355
|
function SourceByteReadChannel(source) {
|
|
3356
|
-
this.
|
|
3357
|
-
this.
|
|
3356
|
+
this.m4v_1 = source;
|
|
3357
|
+
this.n4v_1 = null;
|
|
3358
3358
|
}
|
|
3359
|
-
protoOf(SourceByteReadChannel).
|
|
3360
|
-
var tmp0_safe_receiver = this.
|
|
3361
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3359
|
+
protoOf(SourceByteReadChannel).o4h = function () {
|
|
3360
|
+
var tmp0_safe_receiver = this.n4v_1;
|
|
3361
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p4h();
|
|
3362
3362
|
};
|
|
3363
|
-
protoOf(SourceByteReadChannel).
|
|
3364
|
-
return this.
|
|
3363
|
+
protoOf(SourceByteReadChannel).q4h = function () {
|
|
3364
|
+
return this.m4v_1.w39();
|
|
3365
3365
|
};
|
|
3366
|
-
protoOf(SourceByteReadChannel).
|
|
3367
|
-
var tmp0_safe_receiver = this.
|
|
3366
|
+
protoOf(SourceByteReadChannel).j4h = function () {
|
|
3367
|
+
var tmp0_safe_receiver = this.o4h();
|
|
3368
3368
|
if (tmp0_safe_receiver == null)
|
|
3369
3369
|
null;
|
|
3370
3370
|
else {
|
|
3371
3371
|
// Inline function 'kotlin.let' call
|
|
3372
3372
|
throw tmp0_safe_receiver;
|
|
3373
3373
|
}
|
|
3374
|
-
return this.
|
|
3374
|
+
return this.m4v_1.v39();
|
|
3375
3375
|
};
|
|
3376
|
-
protoOf(SourceByteReadChannel).
|
|
3377
|
-
var tmp0_safe_receiver = this.
|
|
3376
|
+
protoOf(SourceByteReadChannel).r4h = function (min, $completion) {
|
|
3377
|
+
var tmp0_safe_receiver = this.o4h();
|
|
3378
3378
|
if (tmp0_safe_receiver == null)
|
|
3379
3379
|
null;
|
|
3380
3380
|
else {
|
|
3381
3381
|
// Inline function 'kotlin.let' call
|
|
3382
3382
|
throw tmp0_safe_receiver;
|
|
3383
3383
|
}
|
|
3384
|
-
return this.
|
|
3384
|
+
return this.m4v_1.y39(toLong(min));
|
|
3385
3385
|
};
|
|
3386
|
-
protoOf(SourceByteReadChannel).
|
|
3387
|
-
if (!(this.
|
|
3386
|
+
protoOf(SourceByteReadChannel).u4h = function (cause) {
|
|
3387
|
+
if (!(this.n4v_1 == null))
|
|
3388
3388
|
return Unit_instance;
|
|
3389
|
-
this.
|
|
3389
|
+
this.m4v_1.u4();
|
|
3390
3390
|
var tmp = this;
|
|
3391
3391
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
3392
|
-
tmp.
|
|
3392
|
+
tmp.n4v_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
3393
3393
|
};
|
|
3394
3394
|
function decode(_this__u8e3s4, input, max) {
|
|
3395
3395
|
max = max === VOID ? 2147483647 : max;
|
|
3396
3396
|
var tmp0 = toLong(max);
|
|
3397
3397
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3398
|
-
var b = input.
|
|
3398
|
+
var b = input.v39().s();
|
|
3399
3399
|
// Inline function 'kotlin.text.buildString' call
|
|
3400
3400
|
var capacity = (tmp0.j1(b) <= 0 ? tmp0 : b).l1();
|
|
3401
3401
|
// Inline function 'kotlin.apply' call
|
|
@@ -3431,7 +3431,7 @@
|
|
|
3431
3431
|
return builder;
|
|
3432
3432
|
}
|
|
3433
3433
|
function canRead(_this__u8e3s4) {
|
|
3434
|
-
return !_this__u8e3s4.
|
|
3434
|
+
return !_this__u8e3s4.w39();
|
|
3435
3435
|
}
|
|
3436
3436
|
function readBytes(_this__u8e3s4, count) {
|
|
3437
3437
|
count = count === VOID ? _this__u8e3s4.s().l1() : count;
|
|
@@ -3440,13 +3440,13 @@
|
|
|
3440
3440
|
function writeFully_0(_this__u8e3s4, buffer, offset, length) {
|
|
3441
3441
|
offset = offset === VOID ? 0 : offset;
|
|
3442
3442
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3443
|
-
_this__u8e3s4.
|
|
3443
|
+
_this__u8e3s4.f3b(buffer, offset, offset + length | 0);
|
|
3444
3444
|
}
|
|
3445
3445
|
function BytePacketBuilder() {
|
|
3446
3446
|
return new Buffer();
|
|
3447
3447
|
}
|
|
3448
3448
|
function get_size(_this__u8e3s4) {
|
|
3449
|
-
return _this__u8e3s4.
|
|
3449
|
+
return _this__u8e3s4.v39().s().l1();
|
|
3450
3450
|
}
|
|
3451
3451
|
function append(_this__u8e3s4, value, startIndex, endIndex) {
|
|
3452
3452
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -3454,31 +3454,31 @@
|
|
|
3454
3454
|
writeText(_this__u8e3s4, value, startIndex, endIndex);
|
|
3455
3455
|
}
|
|
3456
3456
|
function build(_this__u8e3s4) {
|
|
3457
|
-
return _this__u8e3s4.
|
|
3457
|
+
return _this__u8e3s4.v39();
|
|
3458
3458
|
}
|
|
3459
3459
|
var ByteReadPacketEmpty;
|
|
3460
3460
|
function get_remaining(_this__u8e3s4) {
|
|
3461
3461
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3462
|
-
return _this__u8e3s4.
|
|
3462
|
+
return _this__u8e3s4.v39().s();
|
|
3463
3463
|
}
|
|
3464
3464
|
function discard_0(_this__u8e3s4, count) {
|
|
3465
3465
|
count = count === VOID ? new Long(-1, 2147483647) : count;
|
|
3466
3466
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3467
|
-
_this__u8e3s4.
|
|
3467
|
+
_this__u8e3s4.y39(count);
|
|
3468
3468
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3469
3469
|
var b = get_remaining(_this__u8e3s4);
|
|
3470
3470
|
var countToDiscard = count.j1(b) <= 0 ? count : b;
|
|
3471
|
-
_this__u8e3s4.
|
|
3471
|
+
_this__u8e3s4.v39().t3a(countToDiscard);
|
|
3472
3472
|
return countToDiscard;
|
|
3473
3473
|
}
|
|
3474
3474
|
function takeWhile(_this__u8e3s4, block) {
|
|
3475
3475
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3476
|
-
while (!_this__u8e3s4.
|
|
3476
|
+
while (!_this__u8e3s4.w39() && block(_this__u8e3s4.v39())) {
|
|
3477
3477
|
}
|
|
3478
3478
|
}
|
|
3479
3479
|
function copy(_this__u8e3s4) {
|
|
3480
3480
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
3481
|
-
return _this__u8e3s4.
|
|
3481
|
+
return _this__u8e3s4.a3b();
|
|
3482
3482
|
}
|
|
3483
3483
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
3484
3484
|
function _init_properties_ByteReadPacket_kt__28475y() {
|
|
@@ -3490,37 +3490,37 @@
|
|
|
3490
3490
|
function readAvailable_0(_this__u8e3s4, buffer, offset, length) {
|
|
3491
3491
|
offset = offset === VOID ? 0 : offset;
|
|
3492
3492
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
3493
|
-
var result = _this__u8e3s4.
|
|
3493
|
+
var result = _this__u8e3s4.u3a(buffer, offset, offset + length | 0);
|
|
3494
3494
|
return result === -1 ? 0 : result;
|
|
3495
3495
|
}
|
|
3496
3496
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
3497
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3498
|
-
if (charset.equals(Charsets_getInstance().
|
|
3497
|
+
charset = charset === VOID ? Charsets_getInstance().v4h_1 : charset;
|
|
3498
|
+
if (charset.equals(Charsets_getInstance().v4h_1))
|
|
3499
3499
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
3500
|
-
return encodeToByteArray_0(charset.
|
|
3500
|
+
return encodeToByteArray_0(charset.p4v(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
3501
3501
|
}
|
|
3502
3502
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
3503
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3503
|
+
charset = charset === VOID ? Charsets_getInstance().v4h_1 : charset;
|
|
3504
3504
|
max = max === VOID ? 2147483647 : max;
|
|
3505
|
-
if (charset.equals(Charsets_getInstance().
|
|
3505
|
+
if (charset.equals(Charsets_getInstance().v4h_1)) {
|
|
3506
3506
|
if (max === 2147483647)
|
|
3507
3507
|
return readString_0(_this__u8e3s4);
|
|
3508
|
-
var tmp0 = _this__u8e3s4.
|
|
3508
|
+
var tmp0 = _this__u8e3s4.v39().s();
|
|
3509
3509
|
// Inline function 'kotlin.math.min' call
|
|
3510
3510
|
var b = toLong(max);
|
|
3511
3511
|
var count = tmp0.j1(b) <= 0 ? tmp0 : b;
|
|
3512
3512
|
return readString_1(_this__u8e3s4, count);
|
|
3513
3513
|
}
|
|
3514
|
-
return decode(charset.
|
|
3514
|
+
return decode(charset.q4v(), _this__u8e3s4, max);
|
|
3515
3515
|
}
|
|
3516
3516
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
3517
3517
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
3518
3518
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
3519
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
3520
|
-
if (charset === Charsets_getInstance().
|
|
3519
|
+
charset = charset === VOID ? Charsets_getInstance().v4h_1 : charset;
|
|
3520
|
+
if (charset === Charsets_getInstance().v4h_1) {
|
|
3521
3521
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
3522
3522
|
}
|
|
3523
|
-
encodeToImpl(charset.
|
|
3523
|
+
encodeToImpl(charset.p4v(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
3524
3524
|
}
|
|
3525
3525
|
function get_ByteArrayPool() {
|
|
3526
3526
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -3530,7 +3530,7 @@
|
|
|
3530
3530
|
function ByteArrayPool$1() {
|
|
3531
3531
|
DefaultPool.call(this, 128);
|
|
3532
3532
|
}
|
|
3533
|
-
protoOf(ByteArrayPool$1).
|
|
3533
|
+
protoOf(ByteArrayPool$1).u4v = function () {
|
|
3534
3534
|
return new Int8Array(4096);
|
|
3535
3535
|
};
|
|
3536
3536
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -3544,7 +3544,7 @@
|
|
|
3544
3544
|
}
|
|
3545
3545
|
function NoPoolImpl() {
|
|
3546
3546
|
}
|
|
3547
|
-
protoOf(NoPoolImpl).
|
|
3547
|
+
protoOf(NoPoolImpl).c4w = function (instance) {
|
|
3548
3548
|
return Unit_instance;
|
|
3549
3549
|
};
|
|
3550
3550
|
protoOf(NoPoolImpl).y1y = function () {
|
|
@@ -3552,13 +3552,13 @@
|
|
|
3552
3552
|
};
|
|
3553
3553
|
function Companion_2() {
|
|
3554
3554
|
}
|
|
3555
|
-
protoOf(Companion_2).
|
|
3555
|
+
protoOf(Companion_2).d4w = function (name) {
|
|
3556
3556
|
switch (name) {
|
|
3557
3557
|
case 'UTF-8':
|
|
3558
3558
|
case 'utf-8':
|
|
3559
3559
|
case 'UTF8':
|
|
3560
3560
|
case 'utf8':
|
|
3561
|
-
return Charsets_getInstance().
|
|
3561
|
+
return Charsets_getInstance().v4h_1;
|
|
3562
3562
|
}
|
|
3563
3563
|
var tmp;
|
|
3564
3564
|
var tmp_0;
|
|
@@ -3589,11 +3589,11 @@
|
|
|
3589
3589
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
3590
3590
|
}
|
|
3591
3591
|
if (tmp) {
|
|
3592
|
-
return Charsets_getInstance().
|
|
3592
|
+
return Charsets_getInstance().w4h_1;
|
|
3593
3593
|
}
|
|
3594
3594
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
3595
3595
|
};
|
|
3596
|
-
protoOf(Companion_2).
|
|
3596
|
+
protoOf(Companion_2).e4w = function (charset) {
|
|
3597
3597
|
var tmp;
|
|
3598
3598
|
switch (charset) {
|
|
3599
3599
|
case 'UTF-8':
|
|
@@ -3648,7 +3648,7 @@
|
|
|
3648
3648
|
return Companion_instance_3;
|
|
3649
3649
|
}
|
|
3650
3650
|
function Charset(_name) {
|
|
3651
|
-
this.
|
|
3651
|
+
this.o4v_1 = _name;
|
|
3652
3652
|
}
|
|
3653
3653
|
protoOf(Charset).equals = function (other) {
|
|
3654
3654
|
if (this === other)
|
|
@@ -3657,21 +3657,21 @@
|
|
|
3657
3657
|
return false;
|
|
3658
3658
|
if (!(other instanceof Charset))
|
|
3659
3659
|
THROW_CCE();
|
|
3660
|
-
return this.
|
|
3660
|
+
return this.o4v_1 === other.o4v_1;
|
|
3661
3661
|
};
|
|
3662
3662
|
protoOf(Charset).hashCode = function () {
|
|
3663
|
-
return getStringHashCode(this.
|
|
3663
|
+
return getStringHashCode(this.o4v_1);
|
|
3664
3664
|
};
|
|
3665
3665
|
protoOf(Charset).toString = function () {
|
|
3666
|
-
return this.
|
|
3666
|
+
return this.o4v_1;
|
|
3667
3667
|
};
|
|
3668
3668
|
function get_name(_this__u8e3s4) {
|
|
3669
|
-
return _this__u8e3s4.
|
|
3669
|
+
return _this__u8e3s4.o4v_1;
|
|
3670
3670
|
}
|
|
3671
3671
|
function Charsets() {
|
|
3672
3672
|
Charsets_instance = this;
|
|
3673
|
-
this.
|
|
3674
|
-
this.
|
|
3673
|
+
this.v4h_1 = new CharsetImpl('UTF-8');
|
|
3674
|
+
this.w4h_1 = new CharsetImpl('ISO-8859-1');
|
|
3675
3675
|
}
|
|
3676
3676
|
var Charsets_instance;
|
|
3677
3677
|
function Charsets_getInstance() {
|
|
@@ -3684,7 +3684,7 @@
|
|
|
3684
3684
|
captureStack(this, MalformedInputException);
|
|
3685
3685
|
}
|
|
3686
3686
|
function CharsetDecoder(_charset) {
|
|
3687
|
-
this.
|
|
3687
|
+
this.f4w_1 = _charset;
|
|
3688
3688
|
}
|
|
3689
3689
|
function encodeToByteArray_0(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3690
3690
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3692,15 +3692,15 @@
|
|
|
3692
3692
|
return encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex);
|
|
3693
3693
|
}
|
|
3694
3694
|
function CharsetEncoder(_charset) {
|
|
3695
|
-
this.
|
|
3695
|
+
this.g4w_1 = _charset;
|
|
3696
3696
|
}
|
|
3697
3697
|
function CharsetImpl(name) {
|
|
3698
3698
|
Charset.call(this, name);
|
|
3699
3699
|
}
|
|
3700
|
-
protoOf(CharsetImpl).
|
|
3700
|
+
protoOf(CharsetImpl).p4v = function () {
|
|
3701
3701
|
return new CharsetEncoderImpl(this);
|
|
3702
3702
|
};
|
|
3703
|
-
protoOf(CharsetImpl).
|
|
3703
|
+
protoOf(CharsetImpl).q4v = function () {
|
|
3704
3704
|
return new CharsetDecoderImpl(this);
|
|
3705
3705
|
};
|
|
3706
3706
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
@@ -3720,13 +3720,13 @@
|
|
|
3720
3720
|
}
|
|
3721
3721
|
function CharsetEncoderImpl(charset) {
|
|
3722
3722
|
CharsetEncoder.call(this, charset);
|
|
3723
|
-
this.
|
|
3723
|
+
this.j4w_1 = charset;
|
|
3724
3724
|
}
|
|
3725
3725
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3726
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3726
|
+
return 'CharsetEncoderImpl(charset=' + this.j4w_1.toString() + ')';
|
|
3727
3727
|
};
|
|
3728
3728
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3729
|
-
return this.
|
|
3729
|
+
return this.j4w_1.hashCode();
|
|
3730
3730
|
};
|
|
3731
3731
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3732
3732
|
if (this === other)
|
|
@@ -3734,19 +3734,19 @@
|
|
|
3734
3734
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3735
3735
|
return false;
|
|
3736
3736
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
3737
|
-
if (!this.
|
|
3737
|
+
if (!this.j4w_1.equals(tmp0_other_with_cast.j4w_1))
|
|
3738
3738
|
return false;
|
|
3739
3739
|
return true;
|
|
3740
3740
|
};
|
|
3741
3741
|
function CharsetDecoderImpl(charset) {
|
|
3742
3742
|
CharsetDecoder.call(this, charset);
|
|
3743
|
-
this.
|
|
3743
|
+
this.l4w_1 = charset;
|
|
3744
3744
|
}
|
|
3745
3745
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3746
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3746
|
+
return 'CharsetDecoderImpl(charset=' + this.l4w_1.toString() + ')';
|
|
3747
3747
|
};
|
|
3748
3748
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3749
|
-
return this.
|
|
3749
|
+
return this.l4w_1.hashCode();
|
|
3750
3750
|
};
|
|
3751
3751
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3752
3752
|
if (this === other)
|
|
@@ -3754,7 +3754,7 @@
|
|
|
3754
3754
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3755
3755
|
return false;
|
|
3756
3756
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
3757
|
-
if (!this.
|
|
3757
|
+
if (!this.l4w_1.equals(tmp0_other_with_cast.l4w_1))
|
|
3758
3758
|
return false;
|
|
3759
3759
|
return true;
|
|
3760
3760
|
};
|
|
@@ -3765,11 +3765,11 @@
|
|
|
3765
3765
|
var message = 'Failed requirement.';
|
|
3766
3766
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3767
3767
|
}
|
|
3768
|
-
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3768
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().w4h_1)) {
|
|
3769
3769
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3770
3770
|
}
|
|
3771
3771
|
// Inline function 'kotlin.require' call
|
|
3772
|
-
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().
|
|
3772
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().v4h_1)) {
|
|
3773
3773
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3774
3774
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3775
3775
|
}
|
|
@@ -3779,15 +3779,15 @@
|
|
|
3779
3779
|
var result = encoder.encode(tmp$ret$5);
|
|
3780
3780
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3781
3781
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3782
|
-
dst.
|
|
3782
|
+
dst.i3b(result);
|
|
3783
3783
|
return result.length;
|
|
3784
3784
|
}
|
|
3785
3785
|
function get_charset(_this__u8e3s4) {
|
|
3786
|
-
return _this__u8e3s4.
|
|
3786
|
+
return _this__u8e3s4.g4w_1;
|
|
3787
3787
|
}
|
|
3788
3788
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3789
3789
|
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
3790
|
-
var tmp0 = input.
|
|
3790
|
+
var tmp0 = input.v39().s();
|
|
3791
3791
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3792
3792
|
var b = toLong(max);
|
|
3793
3793
|
var count = tmp0.j1(b) <= 0 ? tmp0 : b;
|
|
@@ -3795,7 +3795,7 @@
|
|
|
3795
3795
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3796
3796
|
var tmp_0;
|
|
3797
3797
|
try {
|
|
3798
|
-
tmp_0 = decoder.
|
|
3798
|
+
tmp_0 = decoder.m4w(array);
|
|
3799
3799
|
} catch ($p) {
|
|
3800
3800
|
var tmp_1;
|
|
3801
3801
|
if ($p instanceof Error) {
|
|
@@ -3811,13 +3811,13 @@
|
|
|
3811
3811
|
return result.length;
|
|
3812
3812
|
}
|
|
3813
3813
|
function get_charset_0(_this__u8e3s4) {
|
|
3814
|
-
return _this__u8e3s4.
|
|
3814
|
+
return _this__u8e3s4.f4w_1;
|
|
3815
3815
|
}
|
|
3816
3816
|
function forName(_this__u8e3s4, name) {
|
|
3817
|
-
return Companion_instance_3.
|
|
3817
|
+
return Companion_instance_3.d4w(name);
|
|
3818
3818
|
}
|
|
3819
3819
|
function isSupported(_this__u8e3s4, name) {
|
|
3820
|
-
return Companion_instance_3.
|
|
3820
|
+
return Companion_instance_3.e4w(name);
|
|
3821
3821
|
}
|
|
3822
3822
|
function Decoder(encoding, fatal) {
|
|
3823
3823
|
fatal = fatal === VOID ? true : fatal;
|
|
@@ -3849,10 +3849,10 @@
|
|
|
3849
3849
|
return this_0;
|
|
3850
3850
|
}
|
|
3851
3851
|
function toKtor$1($this_toKtor) {
|
|
3852
|
-
this.
|
|
3852
|
+
this.n4w_1 = $this_toKtor;
|
|
3853
3853
|
}
|
|
3854
|
-
protoOf(toKtor$1).
|
|
3855
|
-
return this.
|
|
3854
|
+
protoOf(toKtor$1).m4w = function (buffer) {
|
|
3855
|
+
return this.n4w_1.decode(buffer);
|
|
3856
3856
|
};
|
|
3857
3857
|
function get_ENCODING_ALIASES() {
|
|
3858
3858
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3865,7 +3865,7 @@
|
|
|
3865
3865
|
}
|
|
3866
3866
|
var REPLACEMENT;
|
|
3867
3867
|
function TextDecoderFallback(encoding, fatal) {
|
|
3868
|
-
this.
|
|
3868
|
+
this.o4w_1 = fatal;
|
|
3869
3869
|
// Inline function 'kotlin.text.trim' call
|
|
3870
3870
|
// Inline function 'kotlin.text.lowercase' call
|
|
3871
3871
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3876,7 +3876,7 @@
|
|
|
3876
3876
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3877
3877
|
}
|
|
3878
3878
|
}
|
|
3879
|
-
protoOf(TextDecoderFallback).
|
|
3879
|
+
protoOf(TextDecoderFallback).m4w = function (buffer) {
|
|
3880
3880
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3881
3881
|
var builder = new Buffer();
|
|
3882
3882
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3892,7 +3892,7 @@
|
|
|
3892
3892
|
var point = toCodePoint(byte);
|
|
3893
3893
|
if (point < 0) {
|
|
3894
3894
|
// Inline function 'kotlin.check' call
|
|
3895
|
-
if (!!this.
|
|
3895
|
+
if (!!this.o4w_1) {
|
|
3896
3896
|
var message = 'Invalid character: ' + point;
|
|
3897
3897
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3898
3898
|
}
|
|
@@ -3900,9 +3900,9 @@
|
|
|
3900
3900
|
continue $l$loop;
|
|
3901
3901
|
}
|
|
3902
3902
|
if (point > 255) {
|
|
3903
|
-
builder.
|
|
3903
|
+
builder.p3b(toByte(point >> 8));
|
|
3904
3904
|
}
|
|
3905
|
-
builder.
|
|
3905
|
+
builder.p3b(toByte(point & 255));
|
|
3906
3906
|
}
|
|
3907
3907
|
while (inductionVariable < last);
|
|
3908
3908
|
return decodeToString_0(readByteArray_0(builder));
|
|
@@ -3948,7 +3948,7 @@
|
|
|
3948
3948
|
if (character > 255) {
|
|
3949
3949
|
failedToMapError(character);
|
|
3950
3950
|
}
|
|
3951
|
-
dst.
|
|
3951
|
+
dst.p3b(toByte(character));
|
|
3952
3952
|
}
|
|
3953
3953
|
while (inductionVariable < toIndex);
|
|
3954
3954
|
return toIndex - fromIndex | 0;
|
|
@@ -3970,64 +3970,64 @@
|
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
function DefaultPool(capacity) {
|
|
3973
|
-
this.
|
|
3973
|
+
this.v4v_1 = capacity;
|
|
3974
3974
|
var tmp = this;
|
|
3975
3975
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3976
|
-
var size = this.
|
|
3977
|
-
tmp.
|
|
3978
|
-
this.
|
|
3976
|
+
var size = this.v4v_1;
|
|
3977
|
+
tmp.w4v_1 = Array(size);
|
|
3978
|
+
this.x4v_1 = 0;
|
|
3979
3979
|
}
|
|
3980
|
-
protoOf(DefaultPool).
|
|
3980
|
+
protoOf(DefaultPool).y4v = function (instance) {
|
|
3981
3981
|
};
|
|
3982
|
-
protoOf(DefaultPool).
|
|
3982
|
+
protoOf(DefaultPool).z4v = function (instance) {
|
|
3983
3983
|
return instance;
|
|
3984
3984
|
};
|
|
3985
|
-
protoOf(DefaultPool).
|
|
3985
|
+
protoOf(DefaultPool).a4w = function (instance) {
|
|
3986
3986
|
};
|
|
3987
|
-
protoOf(DefaultPool).
|
|
3988
|
-
if (this.
|
|
3989
|
-
return this.
|
|
3990
|
-
this.
|
|
3991
|
-
var idx = this.
|
|
3992
|
-
var tmp = this.
|
|
3987
|
+
protoOf(DefaultPool).b4w = function () {
|
|
3988
|
+
if (this.x4v_1 === 0)
|
|
3989
|
+
return this.u4v();
|
|
3990
|
+
this.x4v_1 = this.x4v_1 - 1 | 0;
|
|
3991
|
+
var idx = this.x4v_1;
|
|
3992
|
+
var tmp = this.w4v_1[idx];
|
|
3993
3993
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3994
|
-
this.
|
|
3995
|
-
return this.
|
|
3994
|
+
this.w4v_1[idx] = null;
|
|
3995
|
+
return this.z4v(instance);
|
|
3996
3996
|
};
|
|
3997
|
-
protoOf(DefaultPool).
|
|
3998
|
-
this.
|
|
3999
|
-
if (this.
|
|
4000
|
-
this.
|
|
3997
|
+
protoOf(DefaultPool).c4w = function (instance) {
|
|
3998
|
+
this.a4w(instance);
|
|
3999
|
+
if (this.x4v_1 === this.v4v_1) {
|
|
4000
|
+
this.y4v(instance);
|
|
4001
4001
|
} else {
|
|
4002
|
-
var _unary__edvuaz = this.
|
|
4003
|
-
this.
|
|
4004
|
-
this.
|
|
4002
|
+
var _unary__edvuaz = this.x4v_1;
|
|
4003
|
+
this.x4v_1 = _unary__edvuaz + 1 | 0;
|
|
4004
|
+
this.w4v_1[_unary__edvuaz] = instance;
|
|
4005
4005
|
}
|
|
4006
4006
|
};
|
|
4007
4007
|
protoOf(DefaultPool).y1y = function () {
|
|
4008
4008
|
var inductionVariable = 0;
|
|
4009
|
-
var last = this.
|
|
4009
|
+
var last = this.x4v_1;
|
|
4010
4010
|
if (inductionVariable < last)
|
|
4011
4011
|
do {
|
|
4012
4012
|
var i = inductionVariable;
|
|
4013
4013
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4014
|
-
var tmp = this.
|
|
4014
|
+
var tmp = this.w4v_1[i];
|
|
4015
4015
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
4016
|
-
this.
|
|
4017
|
-
this.
|
|
4016
|
+
this.w4v_1[i] = null;
|
|
4017
|
+
this.y4v(instance);
|
|
4018
4018
|
}
|
|
4019
4019
|
while (inductionVariable < last);
|
|
4020
|
-
this.
|
|
4020
|
+
this.x4v_1 = 0;
|
|
4021
4021
|
};
|
|
4022
4022
|
//region block: post-declaration
|
|
4023
|
-
protoOf(Read).
|
|
4024
|
-
protoOf(Read).
|
|
4025
|
-
protoOf(Write).
|
|
4026
|
-
protoOf(Write).
|
|
4027
|
-
protoOf(ByteChannel).
|
|
4028
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
4029
|
-
protoOf(CountedByteReadChannel).
|
|
4030
|
-
protoOf(SourceByteReadChannel).
|
|
4023
|
+
protoOf(Read).g4f = resume;
|
|
4024
|
+
protoOf(Read).h4f = resume_0;
|
|
4025
|
+
protoOf(Write).g4f = resume;
|
|
4026
|
+
protoOf(Write).h4f = resume_0;
|
|
4027
|
+
protoOf(ByteChannel).s4h = awaitContent$default;
|
|
4028
|
+
protoOf(ByteReadChannel$Companion$Empty$1).s4h = awaitContent$default;
|
|
4029
|
+
protoOf(CountedByteReadChannel).s4h = awaitContent$default;
|
|
4030
|
+
protoOf(SourceByteReadChannel).s4h = awaitContent$default;
|
|
4031
4031
|
protoOf(DefaultPool).u4 = close;
|
|
4032
4032
|
protoOf(NoPoolImpl).u4 = close;
|
|
4033
4033
|
//endregion
|