@doordeck/doordeck-headless-sdk 0.114.0 → 0.116.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.
Files changed (31) hide show
  1. package/kotlin/Kermit-kermit-core.js +59 -58
  2. package/kotlin/Kermit-kermit.js +7 -7
  3. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1899 -1681
  4. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +6 -6
  5. package/kotlin/MultiplatformSettings-multiplatform-settings.js +30 -11
  6. package/kotlin/doordeck-sdk.d.ts +1576 -290
  7. package/kotlin/doordeck-sdk.js +6395 -6373
  8. package/kotlin/kotlin-kotlin-stdlib.js +590 -719
  9. package/kotlin/kotlinx-atomicfu.js +5 -5
  10. package/kotlin/kotlinx-coroutines-core.js +246 -243
  11. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +12 -12
  12. package/kotlin/kotlinx-io-kotlinx-io-core.js +104 -104
  13. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +126 -117
  14. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1216 -1214
  15. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js → ktor-ktor-client-auth.js} +283 -286
  16. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js → ktor-ktor-client-content-negotiation.js} +169 -169
  17. package/kotlin/{ktor-ktor-client-ktor-client-core.js → ktor-ktor-client-core.js} +2515 -2518
  18. package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js → ktor-ktor-client-logging.js} +926 -831
  19. package/kotlin/{ktor-ktor-shared-ktor-events.js → ktor-ktor-events.js} +9 -9
  20. package/kotlin/{ktor-ktor-http-ktor-http-cio.js → ktor-ktor-http-cio.js} +371 -370
  21. package/kotlin/ktor-ktor-http.js +867 -952
  22. package/kotlin/ktor-ktor-io.js +389 -411
  23. package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js → ktor-ktor-serialization-kotlinx-json.js} +7 -7
  24. package/kotlin/{ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js → ktor-ktor-serialization-kotlinx.js} +150 -150
  25. package/kotlin/{ktor-ktor-shared-ktor-serialization.js → ktor-ktor-serialization.js} +75 -75
  26. package/kotlin/ktor-ktor-utils.js +117 -92
  27. package/kotlin/{ktor-ktor-shared-ktor-websockets.js → ktor-ktor-websockets.js} +52 -52
  28. package/package.json +3 -3
  29. /package/kotlin/{ktor-ktor-client-ktor-client-plugins-ktor-client-encoding.js → ktor-ktor-client-encoding.js} +0 -0
  30. /package/kotlin/{ktor-ktor-shared-ktor-sse.js → ktor-ktor-sse.js} +0 -0
  31. /package/kotlin/{ktor-ktor-shared-ktor-websocket-serialization.js → ktor-ktor-websocket-serialization.js} +0 -0
@@ -4,57 +4,57 @@
4
4
  var Companion_instance = kotlin_kotlin.$_$.f5;
5
5
  var Unit_instance = kotlin_kotlin.$_$.k5;
6
6
  var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.b3;
7
- var protoOf = kotlin_kotlin.$_$.ub;
8
- var initMetadataForCompanion = kotlin_kotlin.$_$.ta;
9
- var THROW_CCE = kotlin_kotlin.$_$.sf;
10
- var initMetadataForObject = kotlin_kotlin.$_$.ya;
11
- var toString = kotlin_kotlin.$_$.vg;
12
- var hashCode = kotlin_kotlin.$_$.ra;
13
- var equals = kotlin_kotlin.$_$.la;
14
- var initMetadataForClass = kotlin_kotlin.$_$.sa;
15
- var createFailure = kotlin_kotlin.$_$.jg;
16
- var Result = kotlin_kotlin.$_$.qf;
17
- var initMetadataForInterface = kotlin_kotlin.$_$.wa;
18
- var toString_0 = kotlin_kotlin.$_$.ne;
19
- var newThrowable = kotlin_kotlin.$_$.nb;
20
- var stackTraceToString = kotlin_kotlin.$_$.tg;
7
+ var protoOf = kotlin_kotlin.$_$.vb;
8
+ var initMetadataForCompanion = kotlin_kotlin.$_$.ua;
9
+ var THROW_CCE = kotlin_kotlin.$_$.vf;
10
+ var initMetadataForObject = kotlin_kotlin.$_$.za;
11
+ var toString = kotlin_kotlin.$_$.yg;
12
+ var hashCode = kotlin_kotlin.$_$.sa;
13
+ var equals = kotlin_kotlin.$_$.ma;
14
+ var initMetadataForClass = kotlin_kotlin.$_$.ta;
15
+ var createFailure = kotlin_kotlin.$_$.mg;
16
+ var Result = kotlin_kotlin.$_$.tf;
17
+ var initMetadataForInterface = kotlin_kotlin.$_$.xa;
18
+ var toString_0 = kotlin_kotlin.$_$.qe;
19
+ var newThrowable = kotlin_kotlin.$_$.ob;
20
+ var stackTraceToString = kotlin_kotlin.$_$.wg;
21
21
  var VOID = kotlin_kotlin.$_$.h;
22
- var isInterface = kotlin_kotlin.$_$.hb;
22
+ var isInterface = kotlin_kotlin.$_$.ib;
23
23
  var CoroutineImpl = kotlin_kotlin.$_$.v9;
24
- var toLong = kotlin_kotlin.$_$.wb;
25
- var numberToLong = kotlin_kotlin.$_$.sb;
24
+ var toLong = kotlin_kotlin.$_$.xb;
25
+ var numberToLong = kotlin_kotlin.$_$.tb;
26
26
  var intercepted = kotlin_kotlin.$_$.i9;
27
27
  var CancellableContinuationImpl = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
28
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.rg;
28
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ug;
29
29
  var returnIfSuspended = kotlin_kotlin.$_$.m;
30
30
  var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.f9;
31
- var Long = kotlin_kotlin.$_$.mf;
32
- var initMetadataForCoroutine = kotlin_kotlin.$_$.ua;
31
+ var Long = kotlin_kotlin.$_$.pf;
32
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.va;
33
33
  var Buffer = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.f;
34
34
  var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
35
- var IllegalStateException = kotlin_kotlin.$_$.lf;
35
+ var IllegalStateException = kotlin_kotlin.$_$.of;
36
36
  var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2;
37
37
  var captureStack = kotlin_kotlin.$_$.da;
38
38
  var IOException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.c;
39
39
  var decodeToString = kotlin_org_jetbrains_kotlinx_kotlinx_io_bytestring.$_$.d;
40
- var replace = kotlin_kotlin.$_$.qd;
40
+ var replace = kotlin_kotlin.$_$.rd;
41
41
  var indexOf = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.i;
42
- var toString_1 = kotlin_kotlin.$_$.yb;
42
+ var toString_1 = kotlin_kotlin.$_$.zb;
43
43
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w1;
44
- var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
45
44
  var readString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.o;
46
- var closeFinally = kotlin_kotlin.$_$.hg;
45
+ var closeFinally = kotlin_kotlin.$_$.kg;
46
+ var EOFException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.a;
47
47
  var readByteString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.l;
48
48
  var EmptyCoroutineContext_getInstance = kotlin_kotlin.$_$.s4;
49
49
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.a1;
50
50
  var launch = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k1;
51
51
  var startCoroutineCancellable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
52
52
  var Continuation = kotlin_kotlin.$_$.p9;
53
- var initMetadataForFunctionReference = kotlin_kotlin.$_$.va;
53
+ var initMetadataForFunctionReference = kotlin_kotlin.$_$.wa;
54
54
  var get_job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
55
55
  var Job = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c1;
56
56
  var cancel = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
57
- var initMetadataForLambda = kotlin_kotlin.$_$.xa;
57
+ var initMetadataForLambda = kotlin_kotlin.$_$.ya;
58
58
  var CancellationException_init_$Create$ = kotlin_kotlin.$_$.f1;
59
59
  var CancellationException = kotlin_kotlin.$_$.e9;
60
60
  var CopyableThrowable = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
@@ -66,24 +66,24 @@
66
66
  var IOException_init_$Create$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.e;
67
67
  var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.i1;
68
68
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.a2;
69
- var charSequenceLength = kotlin_kotlin.$_$.ha;
69
+ var charSequenceLength = kotlin_kotlin.$_$.ia;
70
70
  var readByteArray = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.j;
71
- var encodeToByteArray = kotlin_kotlin.$_$.wc;
71
+ var encodeToByteArray = kotlin_kotlin.$_$.xc;
72
72
  var readString_1 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.n;
73
73
  var writeString = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.p;
74
- var AutoCloseable = kotlin_kotlin.$_$.af;
74
+ var AutoCloseable = kotlin_kotlin.$_$.df;
75
75
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
76
- var replace_0 = kotlin_kotlin.$_$.rd;
77
- var getStringHashCode = kotlin_kotlin.$_$.qa;
76
+ var replace_0 = kotlin_kotlin.$_$.sd;
77
+ var getStringHashCode = kotlin_kotlin.$_$.ra;
78
78
  var IOException_init_$Init$_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.b;
79
79
  var readByteArray_0 = kotlin_org_jetbrains_kotlinx_kotlinx_io_core.$_$.k;
80
- var charSequenceSubSequence = kotlin_kotlin.$_$.ia;
81
- var isCharSequence = kotlin_kotlin.$_$.db;
82
- var trim = kotlin_kotlin.$_$.ve;
83
- var toByte = kotlin_kotlin.$_$.vb;
84
- var decodeToString_0 = kotlin_kotlin.$_$.uc;
80
+ var charSequenceSubSequence = kotlin_kotlin.$_$.ja;
81
+ var isCharSequence = kotlin_kotlin.$_$.eb;
82
+ var trim = kotlin_kotlin.$_$.ye;
83
+ var toByte = kotlin_kotlin.$_$.wb;
84
+ var decodeToString_0 = kotlin_kotlin.$_$.vc;
85
85
  var setOf = kotlin_kotlin.$_$.j8;
86
- var charSequenceGet = kotlin_kotlin.$_$.ga;
86
+ var charSequenceGet = kotlin_kotlin.$_$.ha;
87
87
  var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
88
88
  //endregion
89
89
  //region block: pre-declaration
@@ -110,9 +110,9 @@
110
110
  initMetadataForInterface(Task, 'Task');
111
111
  initMetadataForClass(Read, 'Read', VOID, VOID, [Task]);
112
112
  initMetadataForClass(Write, 'Write', VOID, VOID, [Task]);
113
- initMetadataForCoroutine($awaitContentCOROUTINE$0, CoroutineImpl);
114
- initMetadataForCoroutine($flushCOROUTINE$1, CoroutineImpl);
115
- initMetadataForCoroutine($flushAndCloseCOROUTINE$2, CoroutineImpl);
113
+ initMetadataForCoroutine($awaitContentCOROUTINE$, CoroutineImpl);
114
+ initMetadataForCoroutine($flushCOROUTINE$, CoroutineImpl);
115
+ initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
116
116
  function awaitContent$default(min, $completion, $super) {
117
117
  min = min === VOID ? 1 : min;
118
118
  return $super === VOID ? this.c1n(min, $completion) : $super.c1n.call(this, min, $completion);
@@ -120,33 +120,33 @@
120
120
  initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
121
121
  initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1], [1, 0]);
122
122
  initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException', VOID, IllegalStateException);
123
- initMetadataForCoroutine($findNextCOROUTINE$3, CoroutineImpl);
124
- initMetadataForCoroutine($advanceToNextPotentialMatchCOROUTINE$4, CoroutineImpl);
125
- initMetadataForCoroutine($checkFullMatchCOROUTINE$5, CoroutineImpl);
123
+ initMetadataForCoroutine($findNextCOROUTINE$, CoroutineImpl);
124
+ initMetadataForCoroutine($advanceToNextPotentialMatchCOROUTINE$, CoroutineImpl);
125
+ initMetadataForCoroutine($checkFullMatchCOROUTINE$, CoroutineImpl);
126
126
  initMetadataForClass(ByteChannelScanner, 'ByteChannelScanner', VOID, VOID, VOID, [1, 0]);
127
127
  initMetadataForClass(ByteReadChannel$Companion$Empty$1, VOID, VOID, VOID, [ByteReadChannel_1], [1]);
128
128
  initMetadataForCompanion(Companion_0);
129
- initMetadataForCoroutine($readRemainingCOROUTINE$6, CoroutineImpl);
130
- initMetadataForCoroutine($readPacketCOROUTINE$7, CoroutineImpl);
131
- initMetadataForCoroutine($discardCOROUTINE$8, CoroutineImpl);
132
- initMetadataForCoroutine($readAvailableCOROUTINE$10, CoroutineImpl);
133
- initMetadataForCoroutine($toByteArrayCOROUTINE$12, CoroutineImpl);
134
- initMetadataForCoroutine($copyToCOROUTINE$13, CoroutineImpl);
135
- initMetadataForCoroutine($copyToCOROUTINE$14, CoroutineImpl);
136
- initMetadataForCoroutine($readBufferCOROUTINE$15, CoroutineImpl);
137
- initMetadataForCoroutine($readUTF8LineToCOROUTINE$16, CoroutineImpl);
138
- initMetadataForCoroutine($readRemainingCOROUTINE$17, CoroutineImpl);
139
- initMetadataForCoroutine($skipIfFoundCOROUTINE$18, CoroutineImpl);
140
- initMetadataForCoroutine($peekCOROUTINE$19, CoroutineImpl);
141
- initMetadataForCoroutine($flushIfNeededCOROUTINE$20, CoroutineImpl);
129
+ initMetadataForCoroutine($readRemainingCOROUTINE$, CoroutineImpl);
130
+ initMetadataForCoroutine($discardCOROUTINE$, CoroutineImpl);
131
+ initMetadataForCoroutine($readAvailableCOROUTINE$, CoroutineImpl);
132
+ initMetadataForCoroutine($toByteArrayCOROUTINE$, CoroutineImpl);
133
+ initMetadataForCoroutine($copyToCOROUTINE$, CoroutineImpl);
134
+ initMetadataForCoroutine($copyToCOROUTINE$_0, CoroutineImpl);
135
+ initMetadataForCoroutine($readBufferCOROUTINE$, CoroutineImpl);
136
+ initMetadataForCoroutine($readUTF8LineToCOROUTINE$, CoroutineImpl);
137
+ initMetadataForCoroutine($readRemainingCOROUTINE$_0, CoroutineImpl);
138
+ initMetadataForCoroutine($skipIfFoundCOROUTINE$, CoroutineImpl);
139
+ initMetadataForCoroutine($readPacketCOROUTINE$, CoroutineImpl);
140
+ initMetadataForCoroutine($peekCOROUTINE$, CoroutineImpl);
141
+ initMetadataForCoroutine($flushIfNeededCOROUTINE$, CoroutineImpl);
142
142
  initMetadataForClass(WriterJob, 'WriterJob');
143
143
  initMetadataForClass(WriterScope, 'WriterScope', VOID, VOID, [CoroutineScope]);
144
144
  initMetadataForClass(NO_CALLBACK$1, VOID, VOID, VOID, [Continuation]);
145
145
  initMetadataForFunctionReference(ByteWriteChannel$flushAndClose$ref, VOID, VOID, [0]);
146
146
  initMetadataForLambda(writer$slambda, CoroutineImpl, VOID, [1]);
147
- initMetadataForCoroutine($writePacketCOROUTINE$21, CoroutineImpl);
147
+ initMetadataForCoroutine($writePacketCOROUTINE$, CoroutineImpl);
148
148
  initMetadataForClass(CloseToken, 'CloseToken');
149
- initMetadataForCoroutine($awaitContentCOROUTINE$22, CoroutineImpl);
149
+ initMetadataForCoroutine($awaitContentCOROUTINE$_0, CoroutineImpl);
150
150
  initMetadataForClass(CountedByteReadChannel, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel_1], [1]);
151
151
  initMetadataForClass(ClosedByteChannelException, 'ClosedByteChannelException', ClosedByteChannelException, IOException);
152
152
  initMetadataForClass(ClosedReadChannelException, 'ClosedReadChannelException', ClosedReadChannelException, ClosedByteChannelException);
@@ -306,12 +306,12 @@
306
306
  l.callableName = '<init>';
307
307
  return l;
308
308
  }
309
- function $awaitContentCOROUTINE$0(_this__u8e3s4, min, resultContinuation) {
309
+ function $awaitContentCOROUTINE$(_this__u8e3s4, min, resultContinuation) {
310
310
  CoroutineImpl.call(this, resultContinuation);
311
311
  this.o1l_1 = _this__u8e3s4;
312
312
  this.p1l_1 = min;
313
313
  }
314
- protoOf($awaitContentCOROUTINE$0).o9 = function () {
314
+ protoOf($awaitContentCOROUTINE$).o9 = function () {
315
315
  var suspendResult = this.i9_1;
316
316
  $sm: do
317
317
  try {
@@ -319,7 +319,7 @@
319
319
  switch (tmp) {
320
320
  case 0:
321
321
  this.h9_1 = 4;
322
- rethrowCloseCauseIfNeeded_1(this.o1l_1);
322
+ rethrowCloseCauseIfNeeded_0(this.o1l_1);
323
323
  if (this.o1l_1.d1l_1.s().e1(toLong(this.p1l_1)) >= 0)
324
324
  return true;
325
325
  var tmp_0 = this;
@@ -337,23 +337,23 @@
337
337
  var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
338
338
  cancellable.ps();
339
339
  var tmp0 = this.r1l_1;
340
- var tmp1 = new Read(cancellable);
340
+ var tmp2 = new Read(cancellable);
341
341
  l$ret$1: do {
342
342
  var previous = tmp0.c1l_1.kotlinx$atomicfu$value;
343
343
  if (!(previous instanceof Closed)) {
344
- if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp1)) {
345
- tmp1.s1k();
344
+ if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp2)) {
345
+ tmp2.s1k();
346
346
  break l$ret$1;
347
347
  }
348
348
  }
349
349
  if (previous instanceof Read) {
350
- previous.t1k(new ConcurrentIOException(tmp1.r1k(), previous.p1k()));
350
+ previous.t1k(new ConcurrentIOException(tmp2.r1k(), previous.p1k()));
351
351
  } else {
352
352
  if (isInterface(previous, Task)) {
353
353
  previous.s1k();
354
354
  } else {
355
355
  if (previous instanceof Closed) {
356
- tmp1.t1k(previous.o1k_1);
356
+ tmp2.t1k(previous.o1k_1);
357
357
  break l$ret$1;
358
358
  } else {
359
359
  if (!equals(previous, Empty_instance)) {
@@ -405,11 +405,11 @@
405
405
  }
406
406
  while (true);
407
407
  };
408
- function $flushCOROUTINE$1(_this__u8e3s4, resultContinuation) {
408
+ function $flushCOROUTINE$(_this__u8e3s4, resultContinuation) {
409
409
  CoroutineImpl.call(this, resultContinuation);
410
410
  this.a1m_1 = _this__u8e3s4;
411
411
  }
412
- protoOf($flushCOROUTINE$1).o9 = function () {
412
+ protoOf($flushCOROUTINE$).o9 = function () {
413
413
  var suspendResult = this.i9_1;
414
414
  $sm: do
415
415
  try {
@@ -417,7 +417,7 @@
417
417
  switch (tmp) {
418
418
  case 0:
419
419
  this.h9_1 = 4;
420
- rethrowCloseCauseIfNeeded_1(this.a1m_1);
420
+ rethrowCloseCauseIfNeeded_0(this.a1m_1);
421
421
  this.a1m_1.d1m();
422
422
  if (this.a1m_1.a1l_1 < 1048576)
423
423
  return Unit_instance;
@@ -436,23 +436,23 @@
436
436
  var cancellable = new CancellableContinuationImpl(intercepted(this), 1);
437
437
  cancellable.ps();
438
438
  var tmp0 = this.c1m_1;
439
- var tmp1 = new Write(cancellable);
439
+ var tmp2 = new Write(cancellable);
440
440
  l$ret$1: do {
441
441
  var previous = tmp0.c1l_1.kotlinx$atomicfu$value;
442
442
  if (!(previous instanceof Closed)) {
443
- if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp1)) {
444
- tmp1.s1k();
443
+ if (!tmp0.c1l_1.atomicfu$compareAndSet(previous, tmp2)) {
444
+ tmp2.s1k();
445
445
  break l$ret$1;
446
446
  }
447
447
  }
448
448
  if (previous instanceof Write) {
449
- previous.t1k(new ConcurrentIOException(tmp1.r1k(), previous.p1k()));
449
+ previous.t1k(new ConcurrentIOException(tmp2.r1k(), previous.p1k()));
450
450
  } else {
451
451
  if (isInterface(previous, Task)) {
452
452
  previous.s1k();
453
453
  } else {
454
454
  if (previous instanceof Closed) {
455
- tmp1.t1k(previous.o1k_1);
455
+ tmp2.t1k(previous.o1k_1);
456
456
  break l$ret$1;
457
457
  } else {
458
458
  if (!equals(previous, Empty_instance)) {
@@ -500,11 +500,11 @@
500
500
  }
501
501
  while (true);
502
502
  };
503
- function $flushAndCloseCOROUTINE$2(_this__u8e3s4, resultContinuation) {
503
+ function $flushAndCloseCOROUTINE$(_this__u8e3s4, resultContinuation) {
504
504
  CoroutineImpl.call(this, resultContinuation);
505
505
  this.m1m_1 = _this__u8e3s4;
506
506
  }
507
- protoOf($flushAndCloseCOROUTINE$2).o9 = function () {
507
+ protoOf($flushAndCloseCOROUTINE$).o9 = function () {
508
508
  var suspendResult = this.i9_1;
509
509
  $sm: do
510
510
  try {
@@ -616,13 +616,13 @@
616
616
  return !(this.z1m() == null) || (this.y1m() && this.a1l_1 === 0 && this.d1l_1.o1h());
617
617
  };
618
618
  protoOf(ByteChannel).c1n = function (min, $completion) {
619
- var tmp = new $awaitContentCOROUTINE$0(this, min, $completion);
619
+ var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
620
620
  tmp.i9_1 = Unit_instance;
621
621
  tmp.j9_1 = null;
622
622
  return tmp.o9();
623
623
  };
624
624
  protoOf(ByteChannel).t1m = function ($completion) {
625
- var tmp = new $flushCOROUTINE$1(this, $completion);
625
+ var tmp = new $flushCOROUTINE$(this, $completion);
626
626
  tmp.i9_1 = Unit_instance;
627
627
  tmp.j9_1 = null;
628
628
  return tmp.o9();
@@ -654,7 +654,7 @@
654
654
  closeSlot(this, null);
655
655
  };
656
656
  protoOf(ByteChannel).e1n = function ($completion) {
657
- var tmp = new $flushAndCloseCOROUTINE$2(this, $completion);
657
+ var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
658
658
  tmp.i9_1 = Unit_instance;
659
659
  tmp.j9_1 = null;
660
660
  return tmp.o9();
@@ -708,13 +708,13 @@
708
708
  return table;
709
709
  }
710
710
  function advanceToNextPotentialMatch($this, $completion) {
711
- var tmp = new $advanceToNextPotentialMatchCOROUTINE$4($this, $completion);
711
+ var tmp = new $advanceToNextPotentialMatchCOROUTINE$($this, $completion);
712
712
  tmp.i9_1 = Unit_instance;
713
713
  tmp.j9_1 = null;
714
714
  return tmp.o9();
715
715
  }
716
716
  function checkFullMatch($this, $completion) {
717
- var tmp = new $checkFullMatchCOROUTINE$5($this, $completion);
717
+ var tmp = new $checkFullMatchCOROUTINE$($this, $completion);
718
718
  tmp.i9_1 = Unit_instance;
719
719
  tmp.j9_1 = null;
720
720
  return tmp.o9();
@@ -727,12 +727,12 @@
727
727
  function toSingleLineString($this, _this__u8e3s4) {
728
728
  return replace(decodeToString(_this__u8e3s4), '\n', '\\n');
729
729
  }
730
- function $findNextCOROUTINE$3(_this__u8e3s4, ignoreMissing, resultContinuation) {
730
+ function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
731
731
  CoroutineImpl.call(this, resultContinuation);
732
732
  this.v1o_1 = _this__u8e3s4;
733
733
  this.w1o_1 = ignoreMissing;
734
734
  }
735
- protoOf($findNextCOROUTINE$3).o9 = function () {
735
+ protoOf($findNextCOROUTINE$).o9 = function () {
736
736
  var suspendResult = this.i9_1;
737
737
  $sm: do
738
738
  try {
@@ -822,11 +822,11 @@
822
822
  }
823
823
  while (true);
824
824
  };
825
- function $advanceToNextPotentialMatchCOROUTINE$4(_this__u8e3s4, resultContinuation) {
825
+ function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
826
826
  CoroutineImpl.call(this, resultContinuation);
827
827
  this.x1n_1 = _this__u8e3s4;
828
828
  }
829
- protoOf($advanceToNextPotentialMatchCOROUTINE$4).o9 = function () {
829
+ protoOf($advanceToNextPotentialMatchCOROUTINE$).o9 = function () {
830
830
  var suspendResult = this.i9_1;
831
831
  $sm: do
832
832
  try {
@@ -909,11 +909,11 @@
909
909
  }
910
910
  while (true);
911
911
  };
912
- function $checkFullMatchCOROUTINE$5(_this__u8e3s4, resultContinuation) {
912
+ function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
913
913
  CoroutineImpl.call(this, resultContinuation);
914
914
  this.i1o_1 = _this__u8e3s4;
915
915
  }
916
- protoOf($checkFullMatchCOROUTINE$5).o9 = function () {
916
+ protoOf($checkFullMatchCOROUTINE$).o9 = function () {
917
917
  var suspendResult = this.i9_1;
918
918
  $sm: do
919
919
  try {
@@ -1025,7 +1025,7 @@
1025
1025
  this.o1n_1 = 0;
1026
1026
  }
1027
1027
  protoOf(ByteChannelScanner).y1o = function (ignoreMissing, $completion) {
1028
- var tmp = new $findNextCOROUTINE$3(this, ignoreMissing, $completion);
1028
+ var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
1029
1029
  tmp.i9_1 = Unit_instance;
1030
1030
  tmp.j9_1 = null;
1031
1031
  return tmp.o9();
@@ -1065,23 +1065,14 @@
1065
1065
  _this__u8e3s4.f1n(IOException_init_$Create$('Channel was cancelled'));
1066
1066
  }
1067
1067
  function readRemaining(_this__u8e3s4, $completion) {
1068
- var tmp = new $readRemainingCOROUTINE$6(_this__u8e3s4, $completion);
1069
- tmp.i9_1 = Unit_instance;
1070
- tmp.j9_1 = null;
1071
- return tmp.o9();
1072
- }
1073
- function get_availableForRead(_this__u8e3s4) {
1074
- return _this__u8e3s4.u1m().n1h().s().j1();
1075
- }
1076
- function readPacket(_this__u8e3s4, packet, $completion) {
1077
- var tmp = new $readPacketCOROUTINE$7(_this__u8e3s4, packet, $completion);
1068
+ var tmp = new $readRemainingCOROUTINE$(_this__u8e3s4, $completion);
1078
1069
  tmp.i9_1 = Unit_instance;
1079
1070
  tmp.j9_1 = null;
1080
1071
  return tmp.o9();
1081
1072
  }
1082
1073
  function discard(_this__u8e3s4, max, $completion) {
1083
1074
  max = max === VOID ? new Long(-1, 2147483647) : max;
1084
- var tmp = new $discardCOROUTINE$8(_this__u8e3s4, max, $completion);
1075
+ var tmp = new $discardCOROUTINE$(_this__u8e3s4, max, $completion);
1085
1076
  tmp.i9_1 = Unit_instance;
1086
1077
  tmp.j9_1 = null;
1087
1078
  return tmp.o9();
@@ -1089,25 +1080,25 @@
1089
1080
  function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
1090
1081
  offset = offset === VOID ? 0 : offset;
1091
1082
  length = length === VOID ? buffer.length - offset | 0 : length;
1092
- var tmp = new $readAvailableCOROUTINE$10(_this__u8e3s4, buffer, offset, length, $completion);
1083
+ var tmp = new $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, $completion);
1093
1084
  tmp.i9_1 = Unit_instance;
1094
1085
  tmp.j9_1 = null;
1095
1086
  return tmp.o9();
1096
1087
  }
1097
1088
  function toByteArray(_this__u8e3s4, $completion) {
1098
- var tmp = new $toByteArrayCOROUTINE$12(_this__u8e3s4, $completion);
1089
+ var tmp = new $toByteArrayCOROUTINE$(_this__u8e3s4, $completion);
1099
1090
  tmp.i9_1 = Unit_instance;
1100
1091
  tmp.j9_1 = null;
1101
1092
  return tmp.o9();
1102
1093
  }
1103
1094
  function copyTo(_this__u8e3s4, channel, limit, $completion) {
1104
- var tmp = new $copyToCOROUTINE$13(_this__u8e3s4, channel, limit, $completion);
1095
+ var tmp = new $copyToCOROUTINE$(_this__u8e3s4, channel, limit, $completion);
1105
1096
  tmp.i9_1 = Unit_instance;
1106
1097
  tmp.j9_1 = null;
1107
1098
  return tmp.o9();
1108
1099
  }
1109
1100
  function copyTo_0(_this__u8e3s4, channel, $completion) {
1110
- var tmp = new $copyToCOROUTINE$14(_this__u8e3s4, channel, $completion);
1101
+ var tmp = new $copyToCOROUTINE$_0(_this__u8e3s4, channel, $completion);
1111
1102
  tmp.i9_1 = Unit_instance;
1112
1103
  tmp.j9_1 = null;
1113
1104
  return tmp.o9();
@@ -1121,16 +1112,19 @@
1121
1112
  throw tmp0_safe_receiver;
1122
1113
  }
1123
1114
  }
1115
+ function get_availableForRead(_this__u8e3s4) {
1116
+ return _this__u8e3s4.u1m().n1h().s().j1();
1117
+ }
1124
1118
  function readBuffer(_this__u8e3s4, $completion) {
1125
- var tmp = new $readBufferCOROUTINE$15(_this__u8e3s4, $completion);
1119
+ var tmp = new $readBufferCOROUTINE$(_this__u8e3s4, $completion);
1126
1120
  tmp.i9_1 = Unit_instance;
1127
1121
  tmp.j9_1 = null;
1128
1122
  return tmp.o9();
1129
1123
  }
1130
1124
  function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
1131
1125
  max = max === VOID ? 2147483647 : max;
1132
- lineEnding = lineEnding === VOID ? Companion_getInstance_1().u1s_1 : lineEnding;
1133
- var tmp = new $readUTF8LineToCOROUTINE$16(_this__u8e3s4, out, max, lineEnding, $completion);
1126
+ lineEnding = lineEnding === VOID ? Companion_getInstance_1().j1s_1 : lineEnding;
1127
+ var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
1134
1128
  tmp.i9_1 = Unit_instance;
1135
1129
  tmp.j9_1 = null;
1136
1130
  return tmp.o9();
@@ -1154,13 +1148,19 @@
1154
1148
  }
1155
1149
  }
1156
1150
  function readRemaining_0(_this__u8e3s4, max, $completion) {
1157
- var tmp = new $readRemainingCOROUTINE$17(_this__u8e3s4, max, $completion);
1151
+ var tmp = new $readRemainingCOROUTINE$_0(_this__u8e3s4, max, $completion);
1158
1152
  tmp.i9_1 = Unit_instance;
1159
1153
  tmp.j9_1 = null;
1160
1154
  return tmp.o9();
1161
1155
  }
1162
1156
  function skipIfFound(_this__u8e3s4, byteString, $completion) {
1163
- var tmp = new $skipIfFoundCOROUTINE$18(_this__u8e3s4, byteString, $completion);
1157
+ var tmp = new $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, $completion);
1158
+ tmp.i9_1 = Unit_instance;
1159
+ tmp.j9_1 = null;
1160
+ return tmp.o9();
1161
+ }
1162
+ function readPacket(_this__u8e3s4, packet, $completion) {
1163
+ var tmp = new $readPacketCOROUTINE$(_this__u8e3s4, packet, $completion);
1164
1164
  tmp.i9_1 = Unit_instance;
1165
1165
  tmp.j9_1 = null;
1166
1166
  return tmp.o9();
@@ -1171,7 +1171,7 @@
1171
1171
  return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).y1o(ignoreMissing, $completion);
1172
1172
  }
1173
1173
  function peek(_this__u8e3s4, count, $completion) {
1174
- var tmp = new $peekCOROUTINE$19(_this__u8e3s4, count, $completion);
1174
+ var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
1175
1175
  tmp.i9_1 = Unit_instance;
1176
1176
  tmp.j9_1 = null;
1177
1177
  return tmp.o9();
@@ -1181,11 +1181,11 @@
1181
1181
  throw IOException_init_$Create$('Unexpected line ending ' + LineEndingMode__toString_impl_j4h76r(lineEndingToCheck) + ', while expected ' + LineEndingMode__toString_impl_j4h76r($lineEnding));
1182
1182
  }
1183
1183
  }
1184
- function $readRemainingCOROUTINE$6(_this__u8e3s4, resultContinuation) {
1184
+ function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
1185
1185
  CoroutineImpl.call(this, resultContinuation);
1186
1186
  this.k1p_1 = _this__u8e3s4;
1187
1187
  }
1188
- protoOf($readRemainingCOROUTINE$6).o9 = function () {
1188
+ protoOf($readRemainingCOROUTINE$).o9 = function () {
1189
1189
  var suspendResult = this.i9_1;
1190
1190
  $sm: do
1191
1191
  try {
@@ -1230,87 +1230,12 @@
1230
1230
  }
1231
1231
  while (true);
1232
1232
  };
1233
- function $readPacketCOROUTINE$7(_this__u8e3s4, packet, resultContinuation) {
1233
+ function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
1234
1234
  CoroutineImpl.call(this, resultContinuation);
1235
1235
  this.u1p_1 = _this__u8e3s4;
1236
- this.v1p_1 = packet;
1236
+ this.v1p_1 = max;
1237
1237
  }
1238
- protoOf($readPacketCOROUTINE$7).o9 = function () {
1239
- var suspendResult = this.i9_1;
1240
- $sm: do
1241
- try {
1242
- var tmp = this.g9_1;
1243
- switch (tmp) {
1244
- case 0:
1245
- this.h9_1 = 6;
1246
- this.w1p_1 = new Buffer();
1247
- this.g9_1 = 1;
1248
- continue $sm;
1249
- case 1:
1250
- if (!(this.w1p_1.s().e1(toLong(this.v1p_1)) < 0)) {
1251
- this.g9_1 = 5;
1252
- continue $sm;
1253
- }
1254
-
1255
- if (this.u1p_1.u1m().o1h()) {
1256
- this.g9_1 = 2;
1257
- suspendResult = this.u1p_1.d1n(VOID, this);
1258
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
1259
- return suspendResult;
1260
- }
1261
- continue $sm;
1262
- } else {
1263
- this.g9_1 = 3;
1264
- continue $sm;
1265
- }
1266
-
1267
- case 2:
1268
- this.g9_1 = 3;
1269
- continue $sm;
1270
- case 3:
1271
- if (this.u1p_1.b1n()) {
1272
- this.g9_1 = 5;
1273
- continue $sm;
1274
- } else {
1275
- this.g9_1 = 4;
1276
- continue $sm;
1277
- }
1278
-
1279
- case 4:
1280
- if (get_remaining(this.u1p_1.u1m()).e1(numberToLong(this.v1p_1).a3(this.w1p_1.s())) > 0) {
1281
- this.u1p_1.u1m().q1i(this.w1p_1, numberToLong(this.v1p_1).a3(this.w1p_1.s()));
1282
- } else {
1283
- this.u1p_1.u1m().r1i(this.w1p_1);
1284
- }
1285
-
1286
- this.g9_1 = 1;
1287
- continue $sm;
1288
- case 5:
1289
- if (this.w1p_1.s().e1(toLong(this.v1p_1)) < 0) {
1290
- throw EOFException_init_$Create$('Not enough data available, required ' + this.v1p_1 + ' bytes but only ' + this.w1p_1.s().toString() + ' available');
1291
- }
1292
-
1293
- return this.w1p_1;
1294
- case 6:
1295
- throw this.j9_1;
1296
- }
1297
- } catch ($p) {
1298
- var e = $p;
1299
- if (this.h9_1 === 6) {
1300
- throw e;
1301
- } else {
1302
- this.g9_1 = this.h9_1;
1303
- this.j9_1 = e;
1304
- }
1305
- }
1306
- while (true);
1307
- };
1308
- function $discardCOROUTINE$8(_this__u8e3s4, max, resultContinuation) {
1309
- CoroutineImpl.call(this, resultContinuation);
1310
- this.f1q_1 = _this__u8e3s4;
1311
- this.g1q_1 = max;
1312
- }
1313
- protoOf($discardCOROUTINE$8).o9 = function () {
1238
+ protoOf($discardCOROUTINE$).o9 = function () {
1314
1239
  var suspendResult = this.i9_1;
1315
1240
  $sm: do
1316
1241
  try {
@@ -1318,18 +1243,18 @@
1318
1243
  switch (tmp) {
1319
1244
  case 0:
1320
1245
  this.h9_1 = 5;
1321
- this.h1q_1 = this.g1q_1;
1246
+ this.w1p_1 = this.v1p_1;
1322
1247
  this.g9_1 = 1;
1323
1248
  continue $sm;
1324
1249
  case 1:
1325
- if (!(this.h1q_1.e1(new Long(0, 0)) > 0 && !this.f1q_1.b1n())) {
1250
+ if (!(this.w1p_1.e1(new Long(0, 0)) > 0 && !this.u1p_1.b1n())) {
1326
1251
  this.g9_1 = 4;
1327
1252
  continue $sm;
1328
1253
  }
1329
1254
 
1330
- if (get_availableForRead(this.f1q_1) === 0) {
1255
+ if (get_availableForRead(this.u1p_1) === 0) {
1331
1256
  this.g9_1 = 2;
1332
- suspendResult = this.f1q_1.d1n(VOID, this);
1257
+ suspendResult = this.u1p_1.d1n(VOID, this);
1333
1258
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1334
1259
  return suspendResult;
1335
1260
  }
@@ -1343,15 +1268,15 @@
1343
1268
  this.g9_1 = 3;
1344
1269
  continue $sm;
1345
1270
  case 3:
1346
- var tmp0 = this.h1q_1;
1347
- var b = get_remaining(this.f1q_1.u1m());
1271
+ var tmp0 = this.w1p_1;
1272
+ var b = get_remaining(this.u1p_1.u1m());
1348
1273
  var count = tmp0.e1(b) <= 0 ? tmp0 : b;
1349
- discard_0(this.f1q_1.u1m(), count);
1350
- this.h1q_1 = this.h1q_1.a3(count);
1274
+ discard_0(this.u1p_1.u1m(), count);
1275
+ this.w1p_1 = this.w1p_1.a3(count);
1351
1276
  this.g9_1 = 1;
1352
1277
  continue $sm;
1353
1278
  case 4:
1354
- return this.g1q_1.a3(this.h1q_1);
1279
+ return this.v1p_1.a3(this.w1p_1);
1355
1280
  case 5:
1356
1281
  throw this.j9_1;
1357
1282
  }
@@ -1366,14 +1291,14 @@
1366
1291
  }
1367
1292
  while (true);
1368
1293
  };
1369
- function $readAvailableCOROUTINE$10(_this__u8e3s4, buffer, offset, length, resultContinuation) {
1294
+ function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
1370
1295
  CoroutineImpl.call(this, resultContinuation);
1371
- this.q1q_1 = _this__u8e3s4;
1372
- this.r1q_1 = buffer;
1373
- this.s1q_1 = offset;
1374
- this.t1q_1 = length;
1296
+ this.f1q_1 = _this__u8e3s4;
1297
+ this.g1q_1 = buffer;
1298
+ this.h1q_1 = offset;
1299
+ this.i1q_1 = length;
1375
1300
  }
1376
- protoOf($readAvailableCOROUTINE$10).o9 = function () {
1301
+ protoOf($readAvailableCOROUTINE$).o9 = function () {
1377
1302
  var suspendResult = this.i9_1;
1378
1303
  $sm: do
1379
1304
  try {
@@ -1381,11 +1306,11 @@
1381
1306
  switch (tmp) {
1382
1307
  case 0:
1383
1308
  this.h9_1 = 3;
1384
- if (this.q1q_1.b1n())
1309
+ if (this.f1q_1.b1n())
1385
1310
  return -1;
1386
- if (this.q1q_1.u1m().o1h()) {
1311
+ if (this.f1q_1.u1m().o1h()) {
1387
1312
  this.g9_1 = 1;
1388
- suspendResult = this.q1q_1.d1n(VOID, this);
1313
+ suspendResult = this.f1q_1.d1n(VOID, this);
1389
1314
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1390
1315
  return suspendResult;
1391
1316
  }
@@ -1399,9 +1324,9 @@
1399
1324
  this.g9_1 = 2;
1400
1325
  continue $sm;
1401
1326
  case 2:
1402
- if (this.q1q_1.b1n())
1327
+ if (this.f1q_1.b1n())
1403
1328
  return -1;
1404
- return readAvailable_0(this.q1q_1.u1m(), this.r1q_1, this.s1q_1, this.t1q_1);
1329
+ return readAvailable_0(this.f1q_1.u1m(), this.g1q_1, this.h1q_1, this.i1q_1);
1405
1330
  case 3:
1406
1331
  throw this.j9_1;
1407
1332
  }
@@ -1416,11 +1341,11 @@
1416
1341
  }
1417
1342
  while (true);
1418
1343
  };
1419
- function $toByteArrayCOROUTINE$12(_this__u8e3s4, resultContinuation) {
1344
+ function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
1420
1345
  CoroutineImpl.call(this, resultContinuation);
1421
- this.c1r_1 = _this__u8e3s4;
1346
+ this.r1q_1 = _this__u8e3s4;
1422
1347
  }
1423
- protoOf($toByteArrayCOROUTINE$12).o9 = function () {
1348
+ protoOf($toByteArrayCOROUTINE$).o9 = function () {
1424
1349
  var suspendResult = this.i9_1;
1425
1350
  $sm: do
1426
1351
  try {
@@ -1429,7 +1354,7 @@
1429
1354
  case 0:
1430
1355
  this.h9_1 = 2;
1431
1356
  this.g9_1 = 1;
1432
- suspendResult = readBuffer(this.c1r_1, this);
1357
+ suspendResult = readBuffer(this.r1q_1, this);
1433
1358
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1434
1359
  return suspendResult;
1435
1360
  }
@@ -1452,13 +1377,13 @@
1452
1377
  }
1453
1378
  while (true);
1454
1379
  };
1455
- function $copyToCOROUTINE$13(_this__u8e3s4, channel, limit, resultContinuation) {
1380
+ function $copyToCOROUTINE$(_this__u8e3s4, channel, limit, resultContinuation) {
1456
1381
  CoroutineImpl.call(this, resultContinuation);
1457
- this.l1r_1 = _this__u8e3s4;
1458
- this.m1r_1 = channel;
1459
- this.n1r_1 = limit;
1382
+ this.a1r_1 = _this__u8e3s4;
1383
+ this.b1r_1 = channel;
1384
+ this.c1r_1 = limit;
1460
1385
  }
1461
- protoOf($copyToCOROUTINE$13).o9 = function () {
1386
+ protoOf($copyToCOROUTINE$).o9 = function () {
1462
1387
  var suspendResult = this.i9_1;
1463
1388
  $sm: do
1464
1389
  try {
@@ -1466,7 +1391,7 @@
1466
1391
  switch (tmp) {
1467
1392
  case 0:
1468
1393
  this.h9_1 = 12;
1469
- this.o1r_1 = this.n1r_1;
1394
+ this.d1r_1 = this.c1r_1;
1470
1395
  this.g9_1 = 1;
1471
1396
  continue $sm;
1472
1397
  case 1:
@@ -1475,14 +1400,14 @@
1475
1400
  this.g9_1 = 2;
1476
1401
  continue $sm;
1477
1402
  case 2:
1478
- if (!(!this.l1r_1.b1n() && this.o1r_1.e1(new Long(0, 0)) > 0)) {
1403
+ if (!(!this.a1r_1.b1n() && this.d1r_1.e1(new Long(0, 0)) > 0)) {
1479
1404
  this.g9_1 = 6;
1480
1405
  continue $sm;
1481
1406
  }
1482
1407
 
1483
- if (this.l1r_1.u1m().o1h()) {
1408
+ if (this.a1r_1.u1m().o1h()) {
1484
1409
  this.g9_1 = 3;
1485
- suspendResult = this.l1r_1.d1n(VOID, this);
1410
+ suspendResult = this.a1r_1.d1n(VOID, this);
1486
1411
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1487
1412
  return suspendResult;
1488
1413
  }
@@ -1497,13 +1422,13 @@
1497
1422
  continue $sm;
1498
1423
  case 4:
1499
1424
  var tmp_0 = this;
1500
- var tmp0 = this.o1r_1;
1501
- var b = get_remaining(this.l1r_1.u1m());
1502
- tmp_0.q1r_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
1503
- this.l1r_1.u1m().q1i(this.m1r_1.x1m(), this.q1r_1);
1504
- this.o1r_1 = this.o1r_1.a3(this.q1r_1);
1425
+ var tmp0 = this.d1r_1;
1426
+ var b = get_remaining(this.a1r_1.u1m());
1427
+ tmp_0.f1r_1 = tmp0.e1(b) <= 0 ? tmp0 : b;
1428
+ this.a1r_1.u1m().q1i(this.b1r_1.x1m(), this.f1r_1);
1429
+ this.d1r_1 = this.d1r_1.a3(this.f1r_1);
1505
1430
  this.g9_1 = 5;
1506
- suspendResult = this.m1r_1.t1m(this);
1431
+ suspendResult = this.b1r_1.t1m(this);
1507
1432
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1508
1433
  return suspendResult;
1509
1434
  }
@@ -1513,7 +1438,7 @@
1513
1438
  this.g9_1 = 2;
1514
1439
  continue $sm;
1515
1440
  case 6:
1516
- this.p1r_1 = Unit_instance;
1441
+ this.e1r_1 = Unit_instance;
1517
1442
  this.h9_1 = 12;
1518
1443
  this.g9_1 = 10;
1519
1444
  continue $sm;
@@ -1521,38 +1446,38 @@
1521
1446
  this.h9_1 = 8;
1522
1447
  var tmp_1 = this.j9_1;
1523
1448
  if (tmp_1 instanceof Error) {
1524
- this.r1r_1 = this.j9_1;
1449
+ this.g1r_1 = this.j9_1;
1525
1450
  var tmp_2 = this;
1526
- this.l1r_1.f1n(this.r1r_1);
1527
- close_0(this.m1r_1, this.r1r_1);
1528
- throw this.r1r_1;
1451
+ this.a1r_1.f1n(this.g1r_1);
1452
+ close_0(this.b1r_1, this.g1r_1);
1453
+ throw this.g1r_1;
1529
1454
  } else {
1530
1455
  throw this.j9_1;
1531
1456
  }
1532
1457
 
1533
1458
  case 8:
1534
1459
  this.h9_1 = 12;
1535
- this.s1r_1 = this.j9_1;
1460
+ this.h1r_1 = this.j9_1;
1536
1461
  this.g9_1 = 9;
1537
- suspendResult = this.m1r_1.t1m(this);
1462
+ suspendResult = this.b1r_1.t1m(this);
1538
1463
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1539
1464
  return suspendResult;
1540
1465
  }
1541
1466
 
1542
1467
  continue $sm;
1543
1468
  case 9:
1544
- throw this.s1r_1;
1469
+ throw this.h1r_1;
1545
1470
  case 10:
1546
1471
  this.h9_1 = 12;
1547
1472
  this.g9_1 = 11;
1548
- suspendResult = this.m1r_1.t1m(this);
1473
+ suspendResult = this.b1r_1.t1m(this);
1549
1474
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1550
1475
  return suspendResult;
1551
1476
  }
1552
1477
 
1553
1478
  continue $sm;
1554
1479
  case 11:
1555
- return this.n1r_1.a3(this.o1r_1);
1480
+ return this.c1r_1.a3(this.d1r_1);
1556
1481
  case 12:
1557
1482
  throw this.j9_1;
1558
1483
  }
@@ -1567,12 +1492,12 @@
1567
1492
  }
1568
1493
  while (true);
1569
1494
  };
1570
- function $copyToCOROUTINE$14(_this__u8e3s4, channel, resultContinuation) {
1495
+ function $copyToCOROUTINE$_0(_this__u8e3s4, channel, resultContinuation) {
1571
1496
  CoroutineImpl.call(this, resultContinuation);
1572
- this.b1s_1 = _this__u8e3s4;
1573
- this.c1s_1 = channel;
1497
+ this.q1r_1 = _this__u8e3s4;
1498
+ this.r1r_1 = channel;
1574
1499
  }
1575
- protoOf($copyToCOROUTINE$14).o9 = function () {
1500
+ protoOf($copyToCOROUTINE$_0).o9 = function () {
1576
1501
  var suspendResult = this.i9_1;
1577
1502
  $sm: do
1578
1503
  try {
@@ -1580,7 +1505,7 @@
1580
1505
  switch (tmp) {
1581
1506
  case 0:
1582
1507
  this.h9_1 = 11;
1583
- this.d1s_1 = new Long(0, 0);
1508
+ this.s1r_1 = new Long(0, 0);
1584
1509
  this.g9_1 = 1;
1585
1510
  continue $sm;
1586
1511
  case 1:
@@ -1589,14 +1514,14 @@
1589
1514
  this.g9_1 = 2;
1590
1515
  continue $sm;
1591
1516
  case 2:
1592
- if (!!this.b1s_1.b1n()) {
1517
+ if (!!this.q1r_1.b1n()) {
1593
1518
  this.g9_1 = 5;
1594
1519
  continue $sm;
1595
1520
  }
1596
1521
 
1597
- this.d1s_1 = this.d1s_1.z2(this.b1s_1.u1m().r1i(this.c1s_1.x1m()));
1522
+ this.s1r_1 = this.s1r_1.z2(this.q1r_1.u1m().r1i(this.r1r_1.x1m()));
1598
1523
  this.g9_1 = 3;
1599
- suspendResult = this.c1s_1.t1m(this);
1524
+ suspendResult = this.r1r_1.t1m(this);
1600
1525
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1601
1526
  return suspendResult;
1602
1527
  }
@@ -1604,7 +1529,7 @@
1604
1529
  continue $sm;
1605
1530
  case 3:
1606
1531
  this.g9_1 = 4;
1607
- suspendResult = this.b1s_1.d1n(VOID, this);
1532
+ suspendResult = this.q1r_1.d1n(VOID, this);
1608
1533
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1609
1534
  return suspendResult;
1610
1535
  }
@@ -1614,7 +1539,7 @@
1614
1539
  this.g9_1 = 2;
1615
1540
  continue $sm;
1616
1541
  case 5:
1617
- this.e1s_1 = Unit_instance;
1542
+ this.t1r_1 = Unit_instance;
1618
1543
  this.h9_1 = 11;
1619
1544
  this.g9_1 = 9;
1620
1545
  continue $sm;
@@ -1622,38 +1547,38 @@
1622
1547
  this.h9_1 = 7;
1623
1548
  var tmp_0 = this.j9_1;
1624
1549
  if (tmp_0 instanceof Error) {
1625
- this.f1s_1 = this.j9_1;
1550
+ this.u1r_1 = this.j9_1;
1626
1551
  var tmp_1 = this;
1627
- this.b1s_1.f1n(this.f1s_1);
1628
- close_0(this.c1s_1, this.f1s_1);
1629
- throw this.f1s_1;
1552
+ this.q1r_1.f1n(this.u1r_1);
1553
+ close_0(this.r1r_1, this.u1r_1);
1554
+ throw this.u1r_1;
1630
1555
  } else {
1631
1556
  throw this.j9_1;
1632
1557
  }
1633
1558
 
1634
1559
  case 7:
1635
1560
  this.h9_1 = 11;
1636
- this.g1s_1 = this.j9_1;
1561
+ this.v1r_1 = this.j9_1;
1637
1562
  this.g9_1 = 8;
1638
- suspendResult = this.c1s_1.t1m(this);
1563
+ suspendResult = this.r1r_1.t1m(this);
1639
1564
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1640
1565
  return suspendResult;
1641
1566
  }
1642
1567
 
1643
1568
  continue $sm;
1644
1569
  case 8:
1645
- throw this.g1s_1;
1570
+ throw this.v1r_1;
1646
1571
  case 9:
1647
1572
  this.h9_1 = 11;
1648
1573
  this.g9_1 = 10;
1649
- suspendResult = this.c1s_1.t1m(this);
1574
+ suspendResult = this.r1r_1.t1m(this);
1650
1575
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1651
1576
  return suspendResult;
1652
1577
  }
1653
1578
 
1654
1579
  continue $sm;
1655
1580
  case 10:
1656
- return this.d1s_1;
1581
+ return this.s1r_1;
1657
1582
  case 11:
1658
1583
  throw this.j9_1;
1659
1584
  }
@@ -1668,11 +1593,11 @@
1668
1593
  }
1669
1594
  while (true);
1670
1595
  };
1671
- function $readBufferCOROUTINE$15(_this__u8e3s4, resultContinuation) {
1596
+ function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
1672
1597
  CoroutineImpl.call(this, resultContinuation);
1673
- this.p1s_1 = _this__u8e3s4;
1598
+ this.e1s_1 = _this__u8e3s4;
1674
1599
  }
1675
- protoOf($readBufferCOROUTINE$15).o9 = function () {
1600
+ protoOf($readBufferCOROUTINE$).o9 = function () {
1676
1601
  var suspendResult = this.i9_1;
1677
1602
  $sm: do
1678
1603
  try {
@@ -1680,18 +1605,18 @@
1680
1605
  switch (tmp) {
1681
1606
  case 0:
1682
1607
  this.h9_1 = 4;
1683
- this.q1s_1 = new Buffer();
1608
+ this.f1s_1 = new Buffer();
1684
1609
  this.g9_1 = 1;
1685
1610
  continue $sm;
1686
1611
  case 1:
1687
- if (!!this.p1s_1.b1n()) {
1612
+ if (!!this.e1s_1.b1n()) {
1688
1613
  this.g9_1 = 3;
1689
1614
  continue $sm;
1690
1615
  }
1691
1616
 
1692
- this.q1s_1.g1j(this.p1s_1.u1m());
1617
+ this.f1s_1.g1j(this.e1s_1.u1m());
1693
1618
  this.g9_1 = 2;
1694
- suspendResult = this.p1s_1.d1n(VOID, this);
1619
+ suspendResult = this.e1s_1.d1n(VOID, this);
1695
1620
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1696
1621
  return suspendResult;
1697
1622
  }
@@ -1701,14 +1626,14 @@
1701
1626
  this.g9_1 = 1;
1702
1627
  continue $sm;
1703
1628
  case 3:
1704
- var tmp0_safe_receiver = this.p1s_1.z1m();
1629
+ var tmp0_safe_receiver = this.e1s_1.z1m();
1705
1630
  if (tmp0_safe_receiver == null)
1706
1631
  null;
1707
1632
  else {
1708
1633
  throw tmp0_safe_receiver;
1709
1634
  }
1710
1635
 
1711
- return this.q1s_1;
1636
+ return this.f1s_1;
1712
1637
  case 4:
1713
1638
  throw this.j9_1;
1714
1639
  }
@@ -1723,14 +1648,14 @@
1723
1648
  }
1724
1649
  while (true);
1725
1650
  };
1726
- function $readUTF8LineToCOROUTINE$16(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
1651
+ function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
1727
1652
  CoroutineImpl.call(this, resultContinuation);
1728
- this.e1t_1 = _this__u8e3s4;
1729
- this.f1t_1 = out;
1730
- this.g1t_1 = max;
1731
- this.h1t_1 = lineEnding;
1653
+ this.t1s_1 = _this__u8e3s4;
1654
+ this.u1s_1 = out;
1655
+ this.v1s_1 = max;
1656
+ this.w1s_1 = lineEnding;
1732
1657
  }
1733
- protoOf($readUTF8LineToCOROUTINE$16).o9 = function () {
1658
+ protoOf($readUTF8LineToCOROUTINE$).o9 = function () {
1734
1659
  var suspendResult = this.i9_1;
1735
1660
  $sm: do
1736
1661
  try {
@@ -1738,9 +1663,9 @@
1738
1663
  switch (tmp) {
1739
1664
  case 0:
1740
1665
  this.h9_1 = 21;
1741
- if (this.e1t_1.u1m().o1h()) {
1666
+ if (this.t1s_1.u1m().o1h()) {
1742
1667
  this.g9_1 = 1;
1743
- suspendResult = this.e1t_1.d1n(VOID, this);
1668
+ suspendResult = this.t1s_1.d1n(VOID, this);
1744
1669
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1745
1670
  return suspendResult;
1746
1671
  }
@@ -1754,15 +1679,15 @@
1754
1679
  this.g9_1 = 2;
1755
1680
  continue $sm;
1756
1681
  case 2:
1757
- if (this.e1t_1.b1n())
1682
+ if (this.t1s_1.b1n())
1758
1683
  return false;
1759
1684
  var tmp_0 = this;
1760
- tmp_0.i1t_1 = new Buffer();
1685
+ tmp_0.x1s_1 = new Buffer();
1761
1686
  this.g9_1 = 3;
1762
1687
  continue $sm;
1763
1688
  case 3:
1764
- this.k1t_1 = this.i1t_1;
1765
- this.l1t_1 = null;
1689
+ this.z1s_1 = this.x1s_1;
1690
+ this.a1t_1 = null;
1766
1691
  this.g9_1 = 4;
1767
1692
  continue $sm;
1768
1693
  case 4:
@@ -1775,12 +1700,12 @@
1775
1700
  this.h9_1 = 18;
1776
1701
  this.h9_1 = 17;
1777
1702
  var tmp_1 = this;
1778
- tmp_1.n1t_1 = this.k1t_1;
1779
- this.o1t_1 = this.n1t_1;
1703
+ tmp_1.c1t_1 = this.z1s_1;
1704
+ this.d1t_1 = this.c1t_1;
1780
1705
  this.g9_1 = 7;
1781
1706
  continue $sm;
1782
1707
  case 7:
1783
- if (!!this.e1t_1.b1n()) {
1708
+ if (!!this.t1s_1.b1n()) {
1784
1709
  this.g9_1 = 14;
1785
1710
  continue $sm;
1786
1711
  }
@@ -1788,16 +1713,16 @@
1788
1713
  this.g9_1 = 8;
1789
1714
  continue $sm;
1790
1715
  case 8:
1791
- if (!!this.e1t_1.u1m().o1h()) {
1716
+ if (!!this.t1s_1.u1m().o1h()) {
1792
1717
  this.g9_1 = 12;
1793
1718
  continue $sm;
1794
1719
  }
1795
1720
 
1796
- this.p1t_1 = this.e1t_1.u1m().r1h();
1797
- if (this.p1t_1 === 13) {
1798
- if (this.e1t_1.u1m().o1h()) {
1721
+ this.e1t_1 = this.t1s_1.u1m().r1h();
1722
+ if (this.e1t_1 === 13) {
1723
+ if (this.t1s_1.u1m().o1h()) {
1799
1724
  this.g9_1 = 10;
1800
- suspendResult = this.e1t_1.d1n(VOID, this);
1725
+ suspendResult = this.t1s_1.d1n(VOID, this);
1801
1726
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1802
1727
  return suspendResult;
1803
1728
  }
@@ -1807,15 +1732,15 @@
1807
1732
  continue $sm;
1808
1733
  }
1809
1734
  } else {
1810
- if (this.p1t_1 === 10) {
1811
- readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().s1s_1);
1812
- this.f1t_1.l(readString(this.o1t_1));
1813
- this.m1t_1 = true;
1735
+ if (this.e1t_1 === 10) {
1736
+ readUTF8LineTo$checkLineEndingAllowed(this.w1s_1, Companion_getInstance_1().h1s_1);
1737
+ this.u1s_1.l(readString(this.d1t_1));
1738
+ this.b1t_1 = true;
1814
1739
  this.h9_1 = 21;
1815
1740
  this.g9_1 = 15;
1816
1741
  continue $sm;
1817
1742
  } else {
1818
- this.o1t_1.h1j(this.p1t_1);
1743
+ this.d1t_1.h1j(this.e1t_1);
1819
1744
  this.g9_1 = 9;
1820
1745
  continue $sm;
1821
1746
  }
@@ -1828,25 +1753,25 @@
1828
1753
  this.g9_1 = 11;
1829
1754
  continue $sm;
1830
1755
  case 11:
1831
- if (this.e1t_1.u1m().n1h().j1i(new Long(0, 0)) === 10) {
1832
- readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().t1s_1);
1833
- discard_0(this.e1t_1.u1m(), new Long(1, 0));
1756
+ if (this.t1s_1.u1m().n1h().j1i(new Long(0, 0)) === 10) {
1757
+ readUTF8LineTo$checkLineEndingAllowed(this.w1s_1, Companion_getInstance_1().i1s_1);
1758
+ discard_0(this.t1s_1.u1m(), new Long(1, 0));
1834
1759
  } else {
1835
- readUTF8LineTo$checkLineEndingAllowed(this.h1t_1, Companion_getInstance_1().r1s_1);
1760
+ readUTF8LineTo$checkLineEndingAllowed(this.w1s_1, Companion_getInstance_1().g1s_1);
1836
1761
  }
1837
1762
 
1838
- this.f1t_1.l(readString(this.o1t_1));
1839
- this.m1t_1 = true;
1763
+ this.u1s_1.l(readString(this.d1t_1));
1764
+ this.b1t_1 = true;
1840
1765
  this.h9_1 = 21;
1841
1766
  this.g9_1 = 15;
1842
1767
  continue $sm;
1843
1768
  case 12:
1844
- if (this.o1t_1.s().e1(toLong(this.g1t_1)) >= 0) {
1845
- throw new TooLongLineException('Line exceeds limit of ' + this.g1t_1 + ' characters');
1769
+ if (this.d1t_1.s().e1(toLong(this.v1s_1)) >= 0) {
1770
+ throw new TooLongLineException('Line exceeds limit of ' + this.v1s_1 + ' characters');
1846
1771
  }
1847
1772
 
1848
1773
  this.g9_1 = 13;
1849
- suspendResult = this.e1t_1.d1n(VOID, this);
1774
+ suspendResult = this.t1s_1.d1n(VOID, this);
1850
1775
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1851
1776
  return suspendResult;
1852
1777
  }
@@ -1857,26 +1782,26 @@
1857
1782
  continue $sm;
1858
1783
  case 14:
1859
1784
  var tmp_2 = this;
1860
- var this_0 = this.o1t_1.s().e1(new Long(0, 0)) > 0;
1785
+ var this_0 = this.d1t_1.s().e1(new Long(0, 0)) > 0;
1861
1786
  if (this_0) {
1862
- this.f1t_1.l(readString(this.o1t_1));
1787
+ this.u1s_1.l(readString(this.d1t_1));
1863
1788
  }
1864
1789
 
1865
- tmp_2.m1t_1 = this_0;
1790
+ tmp_2.b1t_1 = this_0;
1866
1791
  this.h9_1 = 21;
1867
1792
  this.g9_1 = 15;
1868
1793
  var tmp_3 = this;
1869
1794
  continue $sm;
1870
1795
  case 15:
1871
- var tmp_4 = this.m1t_1;
1796
+ var tmp_4 = this.b1t_1;
1872
1797
  this.h9_1 = 21;
1873
- closeFinally(this.k1t_1, this.l1t_1);
1798
+ closeFinally(this.z1s_1, this.a1t_1);
1874
1799
  return tmp_4;
1875
1800
  case 16:
1876
1801
  this.h9_1 = 21;
1877
1802
  var tmp_5 = this;
1878
- closeFinally(this.k1t_1, this.l1t_1);
1879
- tmp_5.j1t_1 = Unit_instance;
1803
+ closeFinally(this.z1s_1, this.a1t_1);
1804
+ tmp_5.y1s_1 = Unit_instance;
1880
1805
  this.g9_1 = 20;
1881
1806
  continue $sm;
1882
1807
  case 17:
@@ -1885,7 +1810,7 @@
1885
1810
  if (tmp_6 instanceof Error) {
1886
1811
  var e = this.j9_1;
1887
1812
  var tmp_7 = this;
1888
- this.l1t_1 = e;
1813
+ this.a1t_1 = e;
1889
1814
  throw e;
1890
1815
  } else {
1891
1816
  throw this.j9_1;
@@ -1894,11 +1819,11 @@
1894
1819
  case 18:
1895
1820
  this.h9_1 = 21;
1896
1821
  var t = this.j9_1;
1897
- closeFinally(this.k1t_1, this.l1t_1);
1822
+ closeFinally(this.z1s_1, this.a1t_1);
1898
1823
  throw t;
1899
1824
  case 19:
1900
1825
  this.h9_1 = 21;
1901
- closeFinally(this.k1t_1, this.l1t_1);
1826
+ closeFinally(this.z1s_1, this.a1t_1);
1902
1827
  if (false) {
1903
1828
  this.g9_1 = 3;
1904
1829
  continue $sm;
@@ -1922,12 +1847,12 @@
1922
1847
  }
1923
1848
  while (true);
1924
1849
  };
1925
- function $readRemainingCOROUTINE$17(_this__u8e3s4, max, resultContinuation) {
1850
+ function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
1926
1851
  CoroutineImpl.call(this, resultContinuation);
1927
- this.y1t_1 = _this__u8e3s4;
1928
- this.z1t_1 = max;
1852
+ this.n1t_1 = _this__u8e3s4;
1853
+ this.o1t_1 = max;
1929
1854
  }
1930
- protoOf($readRemainingCOROUTINE$17).o9 = function () {
1855
+ protoOf($readRemainingCOROUTINE$_0).o9 = function () {
1931
1856
  var suspendResult = this.i9_1;
1932
1857
  $sm: do
1933
1858
  try {
@@ -1935,26 +1860,26 @@
1935
1860
  switch (tmp) {
1936
1861
  case 0:
1937
1862
  this.h9_1 = 4;
1938
- this.a1u_1 = BytePacketBuilder();
1939
- this.b1u_1 = this.z1t_1;
1863
+ this.p1t_1 = BytePacketBuilder();
1864
+ this.q1t_1 = this.o1t_1;
1940
1865
  this.g9_1 = 1;
1941
1866
  continue $sm;
1942
1867
  case 1:
1943
- if (!(!this.y1t_1.b1n() && this.b1u_1.e1(new Long(0, 0)) > 0)) {
1868
+ if (!(!this.n1t_1.b1n() && this.q1t_1.e1(new Long(0, 0)) > 0)) {
1944
1869
  this.g9_1 = 3;
1945
1870
  continue $sm;
1946
1871
  }
1947
1872
 
1948
- if (this.b1u_1.e1(get_remaining(this.y1t_1.u1m())) >= 0) {
1949
- this.b1u_1 = this.b1u_1.a3(get_remaining(this.y1t_1.u1m()));
1950
- this.y1t_1.u1m().r1i(this.a1u_1);
1873
+ if (this.q1t_1.e1(get_remaining(this.n1t_1.u1m())) >= 0) {
1874
+ this.q1t_1 = this.q1t_1.a3(get_remaining(this.n1t_1.u1m()));
1875
+ this.n1t_1.u1m().r1i(this.p1t_1);
1951
1876
  } else {
1952
- this.y1t_1.u1m().q1i(this.a1u_1, this.b1u_1);
1953
- this.b1u_1 = new Long(0, 0);
1877
+ this.n1t_1.u1m().q1i(this.p1t_1, this.q1t_1);
1878
+ this.q1t_1 = new Long(0, 0);
1954
1879
  }
1955
1880
 
1956
1881
  this.g9_1 = 2;
1957
- suspendResult = this.y1t_1.d1n(VOID, this);
1882
+ suspendResult = this.n1t_1.d1n(VOID, this);
1958
1883
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1959
1884
  return suspendResult;
1960
1885
  }
@@ -1964,7 +1889,7 @@
1964
1889
  this.g9_1 = 1;
1965
1890
  continue $sm;
1966
1891
  case 3:
1967
- return this.a1u_1.n1h();
1892
+ return this.p1t_1.n1h();
1968
1893
  case 4:
1969
1894
  throw this.j9_1;
1970
1895
  }
@@ -1979,12 +1904,12 @@
1979
1904
  }
1980
1905
  while (true);
1981
1906
  };
1982
- function $skipIfFoundCOROUTINE$18(_this__u8e3s4, byteString, resultContinuation) {
1907
+ function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
1983
1908
  CoroutineImpl.call(this, resultContinuation);
1984
- this.k1u_1 = _this__u8e3s4;
1985
- this.l1u_1 = byteString;
1909
+ this.z1t_1 = _this__u8e3s4;
1910
+ this.a1u_1 = byteString;
1986
1911
  }
1987
- protoOf($skipIfFoundCOROUTINE$18).o9 = function () {
1912
+ protoOf($skipIfFoundCOROUTINE$).o9 = function () {
1988
1913
  var suspendResult = this.i9_1;
1989
1914
  $sm: do
1990
1915
  try {
@@ -1993,17 +1918,17 @@
1993
1918
  case 0:
1994
1919
  this.h9_1 = 4;
1995
1920
  this.g9_1 = 1;
1996
- suspendResult = peek(this.k1u_1, this.l1u_1.s(), this);
1921
+ suspendResult = peek(this.z1t_1, this.a1u_1.s(), this);
1997
1922
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
1998
1923
  return suspendResult;
1999
1924
  }
2000
1925
 
2001
1926
  continue $sm;
2002
1927
  case 1:
2003
- this.m1u_1 = suspendResult;
2004
- if (equals(this.m1u_1, this.l1u_1)) {
1928
+ this.b1u_1 = suspendResult;
1929
+ if (equals(this.b1u_1, this.a1u_1)) {
2005
1930
  this.g9_1 = 3;
2006
- suspendResult = discard(this.k1u_1, toLong(this.l1u_1.s()), this);
1931
+ suspendResult = discard(this.z1t_1, toLong(this.a1u_1.s()), this);
2007
1932
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
2008
1933
  return suspendResult;
2009
1934
  }
@@ -2031,12 +1956,87 @@
2031
1956
  }
2032
1957
  while (true);
2033
1958
  };
2034
- function $peekCOROUTINE$19(_this__u8e3s4, count, resultContinuation) {
1959
+ function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
1960
+ CoroutineImpl.call(this, resultContinuation);
1961
+ this.k1u_1 = _this__u8e3s4;
1962
+ this.l1u_1 = packet;
1963
+ }
1964
+ protoOf($readPacketCOROUTINE$).o9 = function () {
1965
+ var suspendResult = this.i9_1;
1966
+ $sm: do
1967
+ try {
1968
+ var tmp = this.g9_1;
1969
+ switch (tmp) {
1970
+ case 0:
1971
+ this.h9_1 = 6;
1972
+ this.m1u_1 = new Buffer();
1973
+ this.g9_1 = 1;
1974
+ continue $sm;
1975
+ case 1:
1976
+ if (!(this.m1u_1.s().e1(toLong(this.l1u_1)) < 0)) {
1977
+ this.g9_1 = 5;
1978
+ continue $sm;
1979
+ }
1980
+
1981
+ if (this.k1u_1.u1m().o1h()) {
1982
+ this.g9_1 = 2;
1983
+ suspendResult = this.k1u_1.d1n(VOID, this);
1984
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1985
+ return suspendResult;
1986
+ }
1987
+ continue $sm;
1988
+ } else {
1989
+ this.g9_1 = 3;
1990
+ continue $sm;
1991
+ }
1992
+
1993
+ case 2:
1994
+ this.g9_1 = 3;
1995
+ continue $sm;
1996
+ case 3:
1997
+ if (this.k1u_1.b1n()) {
1998
+ this.g9_1 = 5;
1999
+ continue $sm;
2000
+ } else {
2001
+ this.g9_1 = 4;
2002
+ continue $sm;
2003
+ }
2004
+
2005
+ case 4:
2006
+ if (get_remaining(this.k1u_1.u1m()).e1(numberToLong(this.l1u_1).a3(this.m1u_1.s())) > 0) {
2007
+ this.k1u_1.u1m().q1i(this.m1u_1, numberToLong(this.l1u_1).a3(this.m1u_1.s()));
2008
+ } else {
2009
+ this.k1u_1.u1m().r1i(this.m1u_1);
2010
+ }
2011
+
2012
+ this.g9_1 = 1;
2013
+ continue $sm;
2014
+ case 5:
2015
+ if (this.m1u_1.s().e1(toLong(this.l1u_1)) < 0) {
2016
+ throw EOFException_init_$Create$('Not enough data available, required ' + this.l1u_1 + ' bytes but only ' + this.m1u_1.s().toString() + ' available');
2017
+ }
2018
+
2019
+ return this.m1u_1;
2020
+ case 6:
2021
+ throw this.j9_1;
2022
+ }
2023
+ } catch ($p) {
2024
+ var e = $p;
2025
+ if (this.h9_1 === 6) {
2026
+ throw e;
2027
+ } else {
2028
+ this.g9_1 = this.h9_1;
2029
+ this.j9_1 = e;
2030
+ }
2031
+ }
2032
+ while (true);
2033
+ };
2034
+ function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
2035
2035
  CoroutineImpl.call(this, resultContinuation);
2036
2036
  this.v1u_1 = _this__u8e3s4;
2037
2037
  this.w1u_1 = count;
2038
2038
  }
2039
- protoOf($peekCOROUTINE$19).o9 = function () {
2039
+ protoOf($peekCOROUTINE$).o9 = function () {
2040
2040
  var suspendResult = this.i9_1;
2041
2041
  $sm: do
2042
2042
  try {
@@ -2079,16 +2079,16 @@
2079
2079
  while (true);
2080
2080
  };
2081
2081
  function flushIfNeeded(_this__u8e3s4, $completion) {
2082
- var tmp = new $flushIfNeededCOROUTINE$20(_this__u8e3s4, $completion);
2082
+ var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
2083
2083
  tmp.i9_1 = Unit_instance;
2084
2084
  tmp.j9_1 = null;
2085
2085
  return tmp.o9();
2086
2086
  }
2087
- function $flushIfNeededCOROUTINE$20(_this__u8e3s4, resultContinuation) {
2087
+ function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
2088
2088
  CoroutineImpl.call(this, resultContinuation);
2089
2089
  this.f1v_1 = _this__u8e3s4;
2090
2090
  }
2091
- protoOf($flushIfNeededCOROUTINE$20).o9 = function () {
2091
+ protoOf($flushIfNeededCOROUTINE$).o9 = function () {
2092
2092
  var suspendResult = this.i9_1;
2093
2093
  $sm: do
2094
2094
  try {
@@ -2096,7 +2096,7 @@
2096
2096
  switch (tmp) {
2097
2097
  case 0:
2098
2098
  this.h9_1 = 3;
2099
- rethrowCloseCauseIfNeeded_0(this.f1v_1);
2099
+ rethrowCloseCauseIfNeeded_1(this.f1v_1);
2100
2100
  var tmp_0;
2101
2101
  var tmp_1 = this.f1v_1;
2102
2102
  var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
@@ -2168,16 +2168,6 @@
2168
2168
  _this__u8e3s4.x1m().x1i(value, startIndex, endIndex);
2169
2169
  return flushIfNeeded(_this__u8e3s4, $completion);
2170
2170
  }
2171
- function writePacket(_this__u8e3s4, source, $completion) {
2172
- var tmp = new $writePacketCOROUTINE$21(_this__u8e3s4, source, $completion);
2173
- tmp.i9_1 = Unit_instance;
2174
- tmp.j9_1 = null;
2175
- return tmp.o9();
2176
- }
2177
- function get_isCompleted(_this__u8e3s4) {
2178
- _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2179
- return _this__u8e3s4.as().kp();
2180
- }
2181
2171
  function close_0(_this__u8e3s4, cause) {
2182
2172
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2183
2173
  if (cause == null) {
@@ -2188,8 +2178,7 @@
2188
2178
  }
2189
2179
  function invokeOnCompletion(_this__u8e3s4, block) {
2190
2180
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2191
- var tmp = _this__u8e3s4.as();
2192
- tmp.rp(invokeOnCompletion$lambda(block));
2181
+ return _this__u8e3s4.as().rp(block);
2193
2182
  }
2194
2183
  function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
2195
2184
  coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
@@ -2204,6 +2193,12 @@
2204
2193
  _init_properties_ByteWriteChannelOperations_kt__i7slrs();
2205
2194
  startCoroutineCancellable(_this__u8e3s4, get_NO_CALLBACK());
2206
2195
  }
2196
+ function writePacket(_this__u8e3s4, source, $completion) {
2197
+ var tmp = new $writePacketCOROUTINE$(_this__u8e3s4, source, $completion);
2198
+ tmp.i9_1 = Unit_instance;
2199
+ tmp.j9_1 = null;
2200
+ return tmp.o9();
2201
+ }
2207
2202
  function writeByte(_this__u8e3s4, value, $completion) {
2208
2203
  _this__u8e3s4.x1m().h1j(value);
2209
2204
  return flushIfNeeded(_this__u8e3s4, $completion);
@@ -2220,8 +2215,8 @@
2220
2215
  protoOf(NO_CALLBACK$1).r9 = function (result) {
2221
2216
  return this.n9(result);
2222
2217
  };
2223
- function ByteWriteChannel$flushAndClose$ref($boundThis) {
2224
- this.v1v_1 = $boundThis;
2218
+ function ByteWriteChannel$flushAndClose$ref(p0) {
2219
+ this.v1v_1 = p0;
2225
2220
  }
2226
2221
  protoOf(ByteWriteChannel$flushAndClose$ref).w1v = function ($completion) {
2227
2222
  return this.v1v_1.e1n($completion);
@@ -2229,8 +2224,8 @@
2229
2224
  protoOf(ByteWriteChannel$flushAndClose$ref).hb = function ($completion) {
2230
2225
  return this.w1v($completion);
2231
2226
  };
2232
- function ByteWriteChannel$flushAndClose$ref_0($boundThis) {
2233
- var i = new ByteWriteChannel$flushAndClose$ref($boundThis);
2227
+ function ByteWriteChannel$flushAndClose$ref_0(p0) {
2228
+ var i = new ByteWriteChannel$flushAndClose$ref(p0);
2234
2229
  var l = function ($completion) {
2235
2230
  return i.w1v($completion);
2236
2231
  };
@@ -2238,12 +2233,6 @@
2238
2233
  l.$arity = 0;
2239
2234
  return l;
2240
2235
  }
2241
- function invokeOnCompletion$lambda($block) {
2242
- return function (it) {
2243
- $block();
2244
- return Unit_instance;
2245
- };
2246
- }
2247
2236
  function writer$slambda($block, $channel, resultContinuation) {
2248
2237
  this.f1w_1 = $block;
2249
2238
  this.g1w_1 = $channel;
@@ -2447,12 +2436,12 @@
2447
2436
  return Unit_instance;
2448
2437
  };
2449
2438
  }
2450
- function $writePacketCOROUTINE$21(_this__u8e3s4, source, resultContinuation) {
2439
+ function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
2451
2440
  CoroutineImpl.call(this, resultContinuation);
2452
2441
  this.s1v_1 = _this__u8e3s4;
2453
2442
  this.t1v_1 = source;
2454
2443
  }
2455
- protoOf($writePacketCOROUTINE$21).o9 = function () {
2444
+ protoOf($writePacketCOROUTINE$).o9 = function () {
2456
2445
  var suspendResult = this.i9_1;
2457
2446
  $sm: do
2458
2447
  try {
@@ -2572,12 +2561,12 @@
2572
2561
  $this.g1x_1 = $this.g1x_1.z2($this.f1x_1.a3($this.e1x_1.s()));
2573
2562
  $this.f1x_1 = $this.e1x_1.s();
2574
2563
  }
2575
- function $awaitContentCOROUTINE$22(_this__u8e3s4, min, resultContinuation) {
2564
+ function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
2576
2565
  CoroutineImpl.call(this, resultContinuation);
2577
2566
  this.p1x_1 = _this__u8e3s4;
2578
2567
  this.q1x_1 = min;
2579
2568
  }
2580
- protoOf($awaitContentCOROUTINE$22).o9 = function () {
2569
+ protoOf($awaitContentCOROUTINE$_0).o9 = function () {
2581
2570
  var suspendResult = this.i9_1;
2582
2571
  $sm: do
2583
2572
  try {
@@ -2642,7 +2631,7 @@
2642
2631
  return this.e1x_1;
2643
2632
  };
2644
2633
  protoOf(CountedByteReadChannel).c1n = function (min, $completion) {
2645
- var tmp = new $awaitContentCOROUTINE$22(this, min, $completion);
2634
+ var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
2646
2635
  tmp.i9_1 = Unit_instance;
2647
2636
  tmp.j9_1 = null;
2648
2637
  return tmp.o9();
@@ -2686,15 +2675,15 @@
2686
2675
  }
2687
2676
  function LineEndingMode__toString_impl_j4h76r($this) {
2688
2677
  var tmp;
2689
- if ($this === Companion_getInstance_1().r1s_1) {
2678
+ if ($this === Companion_getInstance_1().g1s_1) {
2690
2679
  tmp = 'CR';
2691
- } else if ($this === Companion_getInstance_1().s1s_1) {
2680
+ } else if ($this === Companion_getInstance_1().h1s_1) {
2692
2681
  tmp = 'LF';
2693
- } else if ($this === Companion_getInstance_1().t1s_1) {
2682
+ } else if ($this === Companion_getInstance_1().i1s_1) {
2694
2683
  tmp = 'CRLF';
2695
2684
  } else {
2696
2685
  // Inline function 'kotlin.collections.filter' call
2697
- var tmp0 = Companion_getInstance_1().v1s_1;
2686
+ var tmp0 = Companion_getInstance_1().k1s_1;
2698
2687
  // Inline function 'kotlin.collections.filterTo' call
2699
2688
  var destination = ArrayList_init_$Create$();
2700
2689
  var _iterator__ex2g4s = tmp0.p();
@@ -2711,11 +2700,11 @@
2711
2700
  }
2712
2701
  function Companion_1() {
2713
2702
  Companion_instance_2 = this;
2714
- this.r1s_1 = _LineEndingMode___init__impl__jo5bul(1);
2715
- this.s1s_1 = _LineEndingMode___init__impl__jo5bul(2);
2716
- this.t1s_1 = _LineEndingMode___init__impl__jo5bul(4);
2717
- this.u1s_1 = _LineEndingMode___init__impl__jo5bul(7);
2718
- this.v1s_1 = listOf([new LineEndingMode(this.r1s_1), new LineEndingMode(this.s1s_1), new LineEndingMode(this.t1s_1)]);
2703
+ this.g1s_1 = _LineEndingMode___init__impl__jo5bul(1);
2704
+ this.h1s_1 = _LineEndingMode___init__impl__jo5bul(2);
2705
+ this.i1s_1 = _LineEndingMode___init__impl__jo5bul(4);
2706
+ this.j1s_1 = _LineEndingMode___init__impl__jo5bul(7);
2707
+ this.k1s_1 = listOf([new LineEndingMode(this.g1s_1), new LineEndingMode(this.h1s_1), new LineEndingMode(this.i1s_1)]);
2719
2708
  }
2720
2709
  var Companion_instance_2;
2721
2710
  function Companion_getInstance_1() {
@@ -2831,20 +2820,14 @@
2831
2820
  count = count === VOID ? _this__u8e3s4.s().j1() : count;
2832
2821
  return readByteArray(_this__u8e3s4, count);
2833
2822
  }
2834
- function BytePacketBuilder() {
2835
- return new Buffer();
2836
- }
2837
- function writePacket_0(_this__u8e3s4, packet) {
2838
- _this__u8e3s4.g1j(packet);
2839
- }
2840
- function build(_this__u8e3s4) {
2841
- return _this__u8e3s4.n1h();
2842
- }
2843
2823
  function writeFully_0(_this__u8e3s4, buffer, offset, length) {
2844
2824
  offset = offset === VOID ? 0 : offset;
2845
2825
  length = length === VOID ? buffer.length - offset | 0 : length;
2846
2826
  _this__u8e3s4.x1i(buffer, offset, offset + length | 0);
2847
2827
  }
2828
+ function BytePacketBuilder() {
2829
+ return new Buffer();
2830
+ }
2848
2831
  function get_size(_this__u8e3s4) {
2849
2832
  return _this__u8e3s4.n1h().s().j1();
2850
2833
  }
@@ -3445,33 +3428,28 @@
3445
3428
  _.$_$.u = forName;
3446
3429
  _.$_$.v = isSupported;
3447
3430
  _.$_$.w = get_name;
3448
- _.$_$.x = BytePacketBuilder;
3449
- _.$_$.y = build;
3450
- _.$_$.z = canRead;
3451
- _.$_$.a1 = discard_0;
3452
- _.$_$.b1 = readAvailable_0;
3453
- _.$_$.c1 = readText_0;
3454
- _.$_$.d1 = get_remaining;
3455
- _.$_$.e1 = takeWhile;
3456
- _.$_$.f1 = toByteArray_0;
3457
- _.$_$.g1 = writeFully_0;
3458
- _.$_$.h1 = writePacket_0;
3459
- _.$_$.i1 = writeText;
3460
- _.$_$.j1 = get_ByteArrayPool;
3461
- _.$_$.k1 = DefaultPool;
3462
- _.$_$.l1 = NoPoolImpl;
3463
- _.$_$.m1 = ByteChannel;
3464
- _.$_$.n1 = ByteReadChannel;
3465
- _.$_$.o1 = ByteReadChannel_1;
3466
- _.$_$.p1 = WriterScope;
3467
- _.$_$.q1 = get_availableForRead;
3468
- _.$_$.r1 = cancel_0;
3469
- _.$_$.s1 = close_0;
3470
- _.$_$.t1 = counted;
3471
- _.$_$.u1 = invokeOnCompletion;
3472
- _.$_$.v1 = get_isCompleted;
3473
- _.$_$.w1 = readText;
3474
- _.$_$.x1 = writer;
3431
+ _.$_$.x = canRead;
3432
+ _.$_$.y = discard_0;
3433
+ _.$_$.z = readAvailable_0;
3434
+ _.$_$.a1 = readText_0;
3435
+ _.$_$.b1 = get_remaining;
3436
+ _.$_$.c1 = takeWhile;
3437
+ _.$_$.d1 = toByteArray_0;
3438
+ _.$_$.e1 = writeFully_0;
3439
+ _.$_$.f1 = writeText;
3440
+ _.$_$.g1 = get_ByteArrayPool;
3441
+ _.$_$.h1 = DefaultPool;
3442
+ _.$_$.i1 = NoPoolImpl;
3443
+ _.$_$.j1 = ByteChannel;
3444
+ _.$_$.k1 = ByteReadChannel;
3445
+ _.$_$.l1 = ByteReadChannel_1;
3446
+ _.$_$.m1 = WriterScope;
3447
+ _.$_$.n1 = cancel_0;
3448
+ _.$_$.o1 = close_0;
3449
+ _.$_$.p1 = counted;
3450
+ _.$_$.q1 = invokeOnCompletion;
3451
+ _.$_$.r1 = readText;
3452
+ _.$_$.s1 = writer;
3475
3453
  //endregion
3476
3454
  return _;
3477
3455
  }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'), require('./kotlinx-io-kotlinx-io-core.js'), require('./kotlinx-atomicfu.js'), require('./kotlinx-io-kotlinx-io-bytestring.js')));