@doordeck/doordeck-headless-sdk 0.155.0 → 0.156.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/Kermit-kermit-core.js +5 -5
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +1 -1
- package/kotlin/doordeck-sdk.js +3768 -3768
- package/kotlin/kotlin-kotlin-stdlib.js +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1671 -1671
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +306 -306
- package/kotlin/ktor-ktor-client-auth.js +52 -52
- package/kotlin/ktor-ktor-client-content-negotiation.js +43 -43
- package/kotlin/ktor-ktor-client-core.js +1568 -1578
- package/kotlin/ktor-ktor-client-logging.js +200 -200
- package/kotlin/ktor-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-http-cio.js +314 -314
- package/kotlin/ktor-ktor-http.js +685 -683
- package/kotlin/ktor-ktor-io.js +468 -463
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx.js +17 -17
- package/kotlin/ktor-ktor-serialization.js +6 -6
- package/kotlin/ktor-ktor-utils.js +635 -635
- package/kotlin/ktor-ktor-websockets.js +36 -36
- package/package.json +2 -2
package/kotlin/ktor-ktor-io.js
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
var toByte = kotlin_kotlin.$_$.ac;
|
|
90
90
|
var decodeToString_0 = kotlin_kotlin.$_$.dd;
|
|
91
91
|
var setOf = kotlin_kotlin.$_$.w7;
|
|
92
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
92
93
|
var charSequenceGet = kotlin_kotlin.$_$.na;
|
|
93
94
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.l2;
|
|
94
95
|
//endregion
|
|
@@ -121,10 +122,14 @@
|
|
|
121
122
|
initMetadataForCoroutine($flushAndCloseCOROUTINE$, CoroutineImpl);
|
|
122
123
|
function awaitContent$default(min, $completion, $super) {
|
|
123
124
|
min = min === VOID ? 1 : min;
|
|
124
|
-
return $super === VOID ? this.
|
|
125
|
+
return $super === VOID ? this.i1m(min, $completion) : $super.i1m.call(this, min, $completion);
|
|
125
126
|
}
|
|
126
127
|
initMetadataForInterface(ByteReadChannel_1, 'ByteReadChannel', VOID, VOID, VOID, [1]);
|
|
127
|
-
|
|
128
|
+
function get_autoFlush() {
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
initMetadataForInterface(ByteWriteChannel, 'ByteWriteChannel', VOID, VOID, VOID, [0]);
|
|
132
|
+
initMetadataForClass(ByteChannel, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel_1, ByteWriteChannel], [1, 0]);
|
|
128
133
|
initMetadataForClass(ConcurrentIOException, 'ConcurrentIOException', VOID, IllegalStateException);
|
|
129
134
|
initMetadataForCoroutine($findNextCOROUTINE$, CoroutineImpl);
|
|
130
135
|
initMetadataForCoroutine($advanceToNextPotentialMatchCOROUTINE$, CoroutineImpl);
|
|
@@ -577,42 +582,45 @@
|
|
|
577
582
|
this.q1k_1 = atomic$ref$1(null);
|
|
578
583
|
}
|
|
579
584
|
protoOf(ByteChannel).z1l = function () {
|
|
585
|
+
return this.j1k_1;
|
|
586
|
+
};
|
|
587
|
+
protoOf(ByteChannel).a1m = function () {
|
|
580
588
|
var tmp0_safe_receiver = this.q1k_1.kotlinx$atomicfu$value;
|
|
581
589
|
if (tmp0_safe_receiver == null)
|
|
582
590
|
null;
|
|
583
591
|
else {
|
|
584
|
-
tmp0_safe_receiver.
|
|
592
|
+
tmp0_safe_receiver.c1m(ClosedReadChannelException$_init_$ref_ix0089());
|
|
585
593
|
}
|
|
586
594
|
if (this.o1k_1.lp()) {
|
|
587
595
|
moveFlushToReadBuffer(this);
|
|
588
596
|
}
|
|
589
597
|
return this.o1k_1;
|
|
590
598
|
};
|
|
591
|
-
protoOf(ByteChannel).
|
|
592
|
-
if (this.
|
|
599
|
+
protoOf(ByteChannel).d1m = function () {
|
|
600
|
+
if (this.e1m()) {
|
|
593
601
|
var tmp0_safe_receiver = this.q1k_1.kotlinx$atomicfu$value;
|
|
594
602
|
var tmp;
|
|
595
603
|
if (tmp0_safe_receiver == null) {
|
|
596
604
|
tmp = null;
|
|
597
605
|
} else {
|
|
598
|
-
tmp = tmp0_safe_receiver.
|
|
606
|
+
tmp = tmp0_safe_receiver.c1m(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
599
607
|
}
|
|
600
608
|
if (tmp == null)
|
|
601
609
|
throw new ClosedWriteChannelException();
|
|
602
610
|
}
|
|
603
611
|
return this.p1k_1;
|
|
604
612
|
};
|
|
605
|
-
protoOf(ByteChannel).
|
|
613
|
+
protoOf(ByteChannel).f1m = function () {
|
|
606
614
|
var tmp0_safe_receiver = this.q1k_1.kotlinx$atomicfu$value;
|
|
607
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
615
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1m();
|
|
608
616
|
};
|
|
609
|
-
protoOf(ByteChannel).
|
|
617
|
+
protoOf(ByteChannel).e1m = function () {
|
|
610
618
|
return !(this.q1k_1.kotlinx$atomicfu$value == null);
|
|
611
619
|
};
|
|
612
|
-
protoOf(ByteChannel).
|
|
613
|
-
return !(this.
|
|
620
|
+
protoOf(ByteChannel).h1m = function () {
|
|
621
|
+
return !(this.f1m() == null) || (this.e1m() && this.l1k_1 === 0 && this.o1k_1.lp());
|
|
614
622
|
};
|
|
615
|
-
protoOf(ByteChannel).
|
|
623
|
+
protoOf(ByteChannel).i1m = function (min, $completion) {
|
|
616
624
|
var tmp = new $awaitContentCOROUTINE$(this, min, $completion);
|
|
617
625
|
tmp.w8_1 = Unit_instance;
|
|
618
626
|
tmp.x8_1 = null;
|
|
@@ -650,18 +658,18 @@
|
|
|
650
658
|
return Unit_instance;
|
|
651
659
|
closeSlot(this, null);
|
|
652
660
|
};
|
|
653
|
-
protoOf(ByteChannel).
|
|
661
|
+
protoOf(ByteChannel).k1m = function ($completion) {
|
|
654
662
|
var tmp = new $flushAndCloseCOROUTINE$(this, $completion);
|
|
655
663
|
tmp.w8_1 = Unit_instance;
|
|
656
664
|
tmp.x8_1 = null;
|
|
657
665
|
return tmp.c9();
|
|
658
666
|
};
|
|
659
|
-
protoOf(ByteChannel).
|
|
667
|
+
protoOf(ByteChannel).l1m = function (cause) {
|
|
660
668
|
if (!(this.q1k_1.kotlinx$atomicfu$value == null))
|
|
661
669
|
return Unit_instance;
|
|
662
670
|
var closedToken = new CloseToken(cause);
|
|
663
671
|
this.q1k_1.atomicfu$compareAndSet(null, closedToken);
|
|
664
|
-
var wrappedCause = closedToken.
|
|
672
|
+
var wrappedCause = closedToken.g1m();
|
|
665
673
|
closeSlot(this, wrappedCause);
|
|
666
674
|
};
|
|
667
675
|
protoOf(ByteChannel).toString = function () {
|
|
@@ -685,18 +693,18 @@
|
|
|
685
693
|
return new SourceByteReadChannel(source);
|
|
686
694
|
}
|
|
687
695
|
function buildPartialMatchTable($this) {
|
|
688
|
-
var table = new Int32Array($this.
|
|
696
|
+
var table = new Int32Array($this.n1m_1.u());
|
|
689
697
|
var j = 0;
|
|
690
698
|
var inductionVariable = 1;
|
|
691
|
-
var last = $this.
|
|
699
|
+
var last = $this.n1m_1.u();
|
|
692
700
|
if (inductionVariable < last)
|
|
693
701
|
do {
|
|
694
702
|
var i = inductionVariable;
|
|
695
703
|
inductionVariable = inductionVariable + 1 | 0;
|
|
696
|
-
while (j > 0 && !($this.
|
|
704
|
+
while (j > 0 && !($this.n1m_1.v(i) === $this.n1m_1.v(j))) {
|
|
697
705
|
j = table[j - 1 | 0];
|
|
698
706
|
}
|
|
699
|
-
if ($this.
|
|
707
|
+
if ($this.n1m_1.v(i) === $this.n1m_1.v(j)) {
|
|
700
708
|
j = j + 1 | 0;
|
|
701
709
|
}
|
|
702
710
|
table[i] = j;
|
|
@@ -717,8 +725,8 @@
|
|
|
717
725
|
return tmp.c9();
|
|
718
726
|
}
|
|
719
727
|
function checkBounds($this, extra) {
|
|
720
|
-
if (compare(add($this.
|
|
721
|
-
throw IOException_init_$Create$('Limit of ' + $this.
|
|
728
|
+
if (compare(add($this.t1m_1, extra), $this.p1m_1) > 0) {
|
|
729
|
+
throw IOException_init_$Create$('Limit of ' + $this.p1m_1.toString() + ' bytes exceeded ' + ('while searching for "' + toSingleLineString($this, $this.n1m_1) + '"'));
|
|
722
730
|
}
|
|
723
731
|
}
|
|
724
732
|
function toSingleLineString($this, _this__u8e3s4) {
|
|
@@ -726,8 +734,8 @@
|
|
|
726
734
|
}
|
|
727
735
|
function $findNextCOROUTINE$(_this__u8e3s4, ignoreMissing, resultContinuation) {
|
|
728
736
|
CoroutineImpl.call(this, resultContinuation);
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
737
|
+
this.y1n_1 = _this__u8e3s4;
|
|
738
|
+
this.z1n_1 = ignoreMissing;
|
|
731
739
|
}
|
|
732
740
|
protoOf($findNextCOROUTINE$).c9 = function () {
|
|
733
741
|
var suspendResult = this.w8_1;
|
|
@@ -737,17 +745,17 @@
|
|
|
737
745
|
switch (tmp) {
|
|
738
746
|
case 0:
|
|
739
747
|
this.v8_1 = 9;
|
|
740
|
-
this.
|
|
748
|
+
this.y1n_1.t1m_1 = new Long(0, 0);
|
|
741
749
|
this.u8_1 = 1;
|
|
742
750
|
continue $sm;
|
|
743
751
|
case 1:
|
|
744
|
-
if (!this.
|
|
745
|
-
this.
|
|
752
|
+
if (!this.y1n_1.q1m_1.lp()) {
|
|
753
|
+
this.a1o_1 = true;
|
|
746
754
|
this.u8_1 = 3;
|
|
747
755
|
continue $sm;
|
|
748
756
|
} else {
|
|
749
757
|
this.u8_1 = 2;
|
|
750
|
-
suspendResult = this.
|
|
758
|
+
suspendResult = this.y1n_1.m1m_1.j1m(VOID, this);
|
|
751
759
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
752
760
|
return suspendResult;
|
|
753
761
|
}
|
|
@@ -755,17 +763,17 @@
|
|
|
755
763
|
}
|
|
756
764
|
|
|
757
765
|
case 2:
|
|
758
|
-
this.
|
|
766
|
+
this.a1o_1 = suspendResult;
|
|
759
767
|
this.u8_1 = 3;
|
|
760
768
|
continue $sm;
|
|
761
769
|
case 3:
|
|
762
|
-
if (!this.
|
|
770
|
+
if (!this.a1o_1) {
|
|
763
771
|
this.u8_1 = 7;
|
|
764
772
|
continue $sm;
|
|
765
773
|
}
|
|
766
774
|
|
|
767
775
|
this.u8_1 = 4;
|
|
768
|
-
suspendResult = advanceToNextPotentialMatch(this.
|
|
776
|
+
suspendResult = advanceToNextPotentialMatch(this.y1n_1, this);
|
|
769
777
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
770
778
|
return suspendResult;
|
|
771
779
|
}
|
|
@@ -773,7 +781,7 @@
|
|
|
773
781
|
continue $sm;
|
|
774
782
|
case 4:
|
|
775
783
|
this.u8_1 = 5;
|
|
776
|
-
suspendResult = checkFullMatch(this.
|
|
784
|
+
suspendResult = checkFullMatch(this.y1n_1, this);
|
|
777
785
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
778
786
|
return suspendResult;
|
|
779
787
|
}
|
|
@@ -781,7 +789,7 @@
|
|
|
781
789
|
continue $sm;
|
|
782
790
|
case 5:
|
|
783
791
|
if (suspendResult) {
|
|
784
|
-
return this.
|
|
792
|
+
return this.y1n_1.t1m_1;
|
|
785
793
|
} else {
|
|
786
794
|
this.u8_1 = 6;
|
|
787
795
|
continue $sm;
|
|
@@ -791,20 +799,20 @@
|
|
|
791
799
|
this.u8_1 = 1;
|
|
792
800
|
continue $sm;
|
|
793
801
|
case 7:
|
|
794
|
-
if (!this.
|
|
795
|
-
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.
|
|
802
|
+
if (!this.z1n_1) {
|
|
803
|
+
throw IOException_init_$Create$('Expected "' + toSingleLineString(this.y1n_1, this.y1n_1.n1m_1) + '" but encountered end of input');
|
|
796
804
|
}
|
|
797
805
|
|
|
798
|
-
this.
|
|
806
|
+
this.y1n_1.t1m_1 = add(this.y1n_1.t1m_1, this.y1n_1.s1m_1.oq(this.y1n_1.o1m_1.d1m()));
|
|
799
807
|
this.u8_1 = 8;
|
|
800
|
-
suspendResult = this.
|
|
808
|
+
suspendResult = this.y1n_1.o1m_1.y1l(this);
|
|
801
809
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
802
810
|
return suspendResult;
|
|
803
811
|
}
|
|
804
812
|
|
|
805
813
|
continue $sm;
|
|
806
814
|
case 8:
|
|
807
|
-
return this.
|
|
815
|
+
return this.y1n_1.t1m_1;
|
|
808
816
|
case 9:
|
|
809
817
|
throw this.x8_1;
|
|
810
818
|
}
|
|
@@ -821,7 +829,7 @@
|
|
|
821
829
|
};
|
|
822
830
|
function $advanceToNextPotentialMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
823
831
|
CoroutineImpl.call(this, resultContinuation);
|
|
824
|
-
this.
|
|
832
|
+
this.d1n_1 = _this__u8e3s4;
|
|
825
833
|
}
|
|
826
834
|
protoOf($advanceToNextPotentialMatchCOROUTINE$).c9 = function () {
|
|
827
835
|
var suspendResult = this.w8_1;
|
|
@@ -834,13 +842,13 @@
|
|
|
834
842
|
this.u8_1 = 1;
|
|
835
843
|
continue $sm;
|
|
836
844
|
case 1:
|
|
837
|
-
if (!this.
|
|
838
|
-
this.
|
|
845
|
+
if (!this.d1n_1.q1m_1.lp()) {
|
|
846
|
+
this.e1n_1 = true;
|
|
839
847
|
this.u8_1 = 3;
|
|
840
848
|
continue $sm;
|
|
841
849
|
} else {
|
|
842
850
|
this.u8_1 = 2;
|
|
843
|
-
suspendResult = this.
|
|
851
|
+
suspendResult = this.d1n_1.m1m_1.j1m(VOID, this);
|
|
844
852
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
845
853
|
return suspendResult;
|
|
846
854
|
}
|
|
@@ -848,34 +856,34 @@
|
|
|
848
856
|
}
|
|
849
857
|
|
|
850
858
|
case 2:
|
|
851
|
-
this.
|
|
859
|
+
this.e1n_1 = suspendResult;
|
|
852
860
|
this.u8_1 = 3;
|
|
853
861
|
continue $sm;
|
|
854
862
|
case 3:
|
|
855
|
-
if (!this.
|
|
863
|
+
if (!this.e1n_1) {
|
|
856
864
|
this.u8_1 = 7;
|
|
857
865
|
continue $sm;
|
|
858
866
|
}
|
|
859
867
|
|
|
860
|
-
var nextMatch = indexOf(this.
|
|
868
|
+
var nextMatch = indexOf(this.d1n_1.q1m_1, this.d1n_1.n1m_1.v(0));
|
|
861
869
|
if (equalsLong(nextMatch, new Long(-1, -1))) {
|
|
862
|
-
var tmp_0 = this.
|
|
863
|
-
checkBounds(this.
|
|
864
|
-
this.
|
|
870
|
+
var tmp_0 = this.d1n_1.q1m_1;
|
|
871
|
+
checkBounds(this.d1n_1, (tmp_0 instanceof Buffer ? tmp_0 : THROW_CCE()).u());
|
|
872
|
+
this.d1n_1.t1m_1 = add(this.d1n_1.t1m_1, this.d1n_1.q1m_1.oq(this.d1n_1.o1m_1.d1m()));
|
|
865
873
|
this.u8_1 = 5;
|
|
866
|
-
suspendResult = flushIfNeeded(this.
|
|
874
|
+
suspendResult = flushIfNeeded(this.d1n_1.o1m_1, this);
|
|
867
875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
868
876
|
return suspendResult;
|
|
869
877
|
}
|
|
870
878
|
continue $sm;
|
|
871
879
|
} else {
|
|
872
|
-
checkBounds(this.
|
|
873
|
-
var tmp_1 = this.
|
|
874
|
-
var tmp_2 = this.
|
|
875
|
-
var tmp_3 = this.
|
|
876
|
-
tmp_1.
|
|
880
|
+
checkBounds(this.d1n_1, nextMatch);
|
|
881
|
+
var tmp_1 = this.d1n_1;
|
|
882
|
+
var tmp_2 = this.d1n_1.t1m_1;
|
|
883
|
+
var tmp_3 = this.d1n_1.o1m_1.d1m();
|
|
884
|
+
tmp_1.t1m_1 = add(tmp_2, this.d1n_1.q1m_1.lq(tmp_3 instanceof Buffer ? tmp_3 : THROW_CCE(), nextMatch));
|
|
877
885
|
this.u8_1 = 4;
|
|
878
|
-
suspendResult = flushIfNeeded(this.
|
|
886
|
+
suspendResult = flushIfNeeded(this.d1n_1.o1m_1, this);
|
|
879
887
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
880
888
|
return suspendResult;
|
|
881
889
|
}
|
|
@@ -908,7 +916,7 @@
|
|
|
908
916
|
};
|
|
909
917
|
function $checkFullMatchCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
910
918
|
CoroutineImpl.call(this, resultContinuation);
|
|
911
|
-
this.
|
|
919
|
+
this.n1n_1 = _this__u8e3s4;
|
|
912
920
|
}
|
|
913
921
|
protoOf($checkFullMatchCOROUTINE$).c9 = function () {
|
|
914
922
|
var suspendResult = this.w8_1;
|
|
@@ -921,13 +929,13 @@
|
|
|
921
929
|
this.u8_1 = 1;
|
|
922
930
|
continue $sm;
|
|
923
931
|
case 1:
|
|
924
|
-
if (!this.
|
|
925
|
-
this.
|
|
932
|
+
if (!this.n1n_1.q1m_1.lp()) {
|
|
933
|
+
this.p1n_1 = true;
|
|
926
934
|
this.u8_1 = 3;
|
|
927
935
|
continue $sm;
|
|
928
936
|
} else {
|
|
929
937
|
this.u8_1 = 2;
|
|
930
|
-
suspendResult = this.
|
|
938
|
+
suspendResult = this.n1n_1.m1m_1.j1m(VOID, this);
|
|
931
939
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
932
940
|
return suspendResult;
|
|
933
941
|
}
|
|
@@ -935,30 +943,30 @@
|
|
|
935
943
|
}
|
|
936
944
|
|
|
937
945
|
case 2:
|
|
938
|
-
this.
|
|
946
|
+
this.p1n_1 = suspendResult;
|
|
939
947
|
this.u8_1 = 3;
|
|
940
948
|
continue $sm;
|
|
941
949
|
case 3:
|
|
942
|
-
if (!this.
|
|
950
|
+
if (!this.p1n_1) {
|
|
943
951
|
this.u8_1 = 7;
|
|
944
952
|
continue $sm;
|
|
945
953
|
}
|
|
946
954
|
|
|
947
|
-
this.
|
|
948
|
-
if (this.
|
|
949
|
-
var oldMatchIndex = this.
|
|
950
|
-
while (this.
|
|
951
|
-
this.
|
|
955
|
+
this.o1n_1 = this.n1n_1.q1m_1.op();
|
|
956
|
+
if (this.n1n_1.u1m_1 > 0 && !(this.o1n_1 === this.n1n_1.n1m_1.v(this.n1n_1.u1m_1))) {
|
|
957
|
+
var oldMatchIndex = this.n1n_1.u1m_1;
|
|
958
|
+
while (this.n1n_1.u1m_1 > 0 && !(this.o1n_1 === this.n1n_1.n1m_1.v(this.n1n_1.u1m_1))) {
|
|
959
|
+
this.n1n_1.u1m_1 = this.n1n_1.r1m_1[this.n1n_1.u1m_1 - 1 | 0];
|
|
952
960
|
}
|
|
953
|
-
var retained = fromInt(oldMatchIndex - this.
|
|
954
|
-
checkBounds(this.
|
|
955
|
-
var tmp_0 = this.
|
|
956
|
-
var tmp_1 = this.
|
|
957
|
-
var tmp_2 = this.
|
|
958
|
-
tmp_0.
|
|
959
|
-
if (this.
|
|
961
|
+
var retained = fromInt(oldMatchIndex - this.n1n_1.u1m_1 | 0);
|
|
962
|
+
checkBounds(this.n1n_1, retained);
|
|
963
|
+
var tmp_0 = this.n1n_1;
|
|
964
|
+
var tmp_1 = this.n1n_1.t1m_1;
|
|
965
|
+
var tmp_2 = this.n1n_1.o1m_1.d1m();
|
|
966
|
+
tmp_0.t1m_1 = add(tmp_1, this.n1n_1.s1m_1.lq(tmp_2 instanceof Buffer ? tmp_2 : THROW_CCE(), retained));
|
|
967
|
+
if (this.n1n_1.u1m_1 === 0 && !(this.o1n_1 === this.n1n_1.n1m_1.v(this.n1n_1.u1m_1))) {
|
|
960
968
|
this.u8_1 = 6;
|
|
961
|
-
suspendResult = writeByte(this.
|
|
969
|
+
suspendResult = writeByte(this.n1n_1.o1m_1, this.o1n_1, this);
|
|
962
970
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
963
971
|
return suspendResult;
|
|
964
972
|
}
|
|
@@ -976,17 +984,17 @@
|
|
|
976
984
|
this.u8_1 = 5;
|
|
977
985
|
continue $sm;
|
|
978
986
|
case 5:
|
|
979
|
-
this.
|
|
980
|
-
if (this.
|
|
987
|
+
this.n1n_1.u1m_1 = this.n1n_1.u1m_1 + 1 | 0;
|
|
988
|
+
if (this.n1n_1.u1m_1 === this.n1n_1.n1m_1.u()) {
|
|
981
989
|
return true;
|
|
982
990
|
}
|
|
983
991
|
|
|
984
|
-
this.
|
|
992
|
+
this.n1n_1.s1m_1.er(this.o1n_1);
|
|
985
993
|
this.u8_1 = 1;
|
|
986
994
|
continue $sm;
|
|
987
995
|
case 6:
|
|
988
|
-
var _unary__edvuaz = this.
|
|
989
|
-
this.
|
|
996
|
+
var _unary__edvuaz = this.n1n_1.t1m_1;
|
|
997
|
+
this.n1n_1.t1m_1 = add(_unary__edvuaz, get_ONE());
|
|
990
998
|
return false;
|
|
991
999
|
case 7:
|
|
992
1000
|
return false;
|
|
@@ -1006,49 +1014,49 @@
|
|
|
1006
1014
|
};
|
|
1007
1015
|
function ByteChannelScanner(channel, matchString, writeChannel, limit) {
|
|
1008
1016
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1009
|
-
this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1012
|
-
this.
|
|
1017
|
+
this.m1m_1 = channel;
|
|
1018
|
+
this.n1m_1 = matchString;
|
|
1019
|
+
this.o1m_1 = writeChannel;
|
|
1020
|
+
this.p1m_1 = limit;
|
|
1013
1021
|
// Inline function 'kotlin.require' call
|
|
1014
|
-
if (!(this.
|
|
1022
|
+
if (!(this.n1m_1.u() > 0)) {
|
|
1015
1023
|
var message = 'Empty match string not permitted for scanning';
|
|
1016
1024
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
1017
1025
|
}
|
|
1018
|
-
this.
|
|
1019
|
-
this.
|
|
1020
|
-
this.
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1026
|
+
this.q1m_1 = this.m1m_1.a1m();
|
|
1027
|
+
this.r1m_1 = buildPartialMatchTable(this);
|
|
1028
|
+
this.s1m_1 = new Buffer();
|
|
1029
|
+
this.t1m_1 = new Long(0, 0);
|
|
1030
|
+
this.u1m_1 = 0;
|
|
1023
1031
|
}
|
|
1024
|
-
protoOf(ByteChannelScanner).
|
|
1032
|
+
protoOf(ByteChannelScanner).b1o = function (ignoreMissing, $completion) {
|
|
1025
1033
|
var tmp = new $findNextCOROUTINE$(this, ignoreMissing, $completion);
|
|
1026
1034
|
tmp.w8_1 = Unit_instance;
|
|
1027
1035
|
tmp.x8_1 = null;
|
|
1028
1036
|
return tmp.c9();
|
|
1029
1037
|
};
|
|
1030
1038
|
function ByteReadChannel$Companion$Empty$1() {
|
|
1031
|
-
this.
|
|
1032
|
-
this.
|
|
1039
|
+
this.c1o_1 = null;
|
|
1040
|
+
this.d1o_1 = new Buffer();
|
|
1033
1041
|
}
|
|
1034
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1035
|
-
return this.
|
|
1042
|
+
protoOf(ByteReadChannel$Companion$Empty$1).f1m = function () {
|
|
1043
|
+
return this.c1o_1;
|
|
1036
1044
|
};
|
|
1037
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1045
|
+
protoOf(ByteReadChannel$Companion$Empty$1).h1m = function () {
|
|
1038
1046
|
return true;
|
|
1039
1047
|
};
|
|
1040
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1041
|
-
return this.
|
|
1048
|
+
protoOf(ByteReadChannel$Companion$Empty$1).a1m = function () {
|
|
1049
|
+
return this.d1o_1;
|
|
1042
1050
|
};
|
|
1043
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1051
|
+
protoOf(ByteReadChannel$Companion$Empty$1).i1m = function (min, $completion) {
|
|
1044
1052
|
return false;
|
|
1045
1053
|
};
|
|
1046
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
1054
|
+
protoOf(ByteReadChannel$Companion$Empty$1).l1m = function (cause) {
|
|
1047
1055
|
};
|
|
1048
1056
|
function Companion_0() {
|
|
1049
1057
|
Companion_instance_1 = this;
|
|
1050
1058
|
var tmp = this;
|
|
1051
|
-
tmp.
|
|
1059
|
+
tmp.e1o_1 = new ByteReadChannel$Companion$Empty$1();
|
|
1052
1060
|
}
|
|
1053
1061
|
var Companion_instance_1;
|
|
1054
1062
|
function Companion_getInstance_0() {
|
|
@@ -1059,7 +1067,7 @@
|
|
|
1059
1067
|
function ByteReadChannel_1() {
|
|
1060
1068
|
}
|
|
1061
1069
|
function cancel_0(_this__u8e3s4) {
|
|
1062
|
-
_this__u8e3s4.
|
|
1070
|
+
_this__u8e3s4.l1m(IOException_init_$Create$('Channel was cancelled'));
|
|
1063
1071
|
}
|
|
1064
1072
|
function readAvailable(_this__u8e3s4, buffer, offset, length, $completion) {
|
|
1065
1073
|
offset = offset === VOID ? 0 : offset;
|
|
@@ -1115,11 +1123,11 @@
|
|
|
1115
1123
|
function readUntil(_this__u8e3s4, matchString, writeChannel, limit, ignoreMissing, $completion) {
|
|
1116
1124
|
limit = limit === VOID ? new Long(-1, 2147483647) : limit;
|
|
1117
1125
|
ignoreMissing = ignoreMissing === VOID ? false : ignoreMissing;
|
|
1118
|
-
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).
|
|
1126
|
+
return (new ByteChannelScanner(_this__u8e3s4, matchString, writeChannel, limit)).b1o(ignoreMissing, $completion);
|
|
1119
1127
|
}
|
|
1120
1128
|
function readUTF8LineTo(_this__u8e3s4, out, max, lineEnding, $completion) {
|
|
1121
1129
|
max = max === VOID ? 2147483647 : max;
|
|
1122
|
-
lineEnding = lineEnding === VOID ? Companion_getInstance_1().
|
|
1130
|
+
lineEnding = lineEnding === VOID ? Companion_getInstance_1().s1r_1 : lineEnding;
|
|
1123
1131
|
var tmp = new $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, $completion);
|
|
1124
1132
|
tmp.w8_1 = Unit_instance;
|
|
1125
1133
|
tmp.x8_1 = null;
|
|
@@ -1132,7 +1140,7 @@
|
|
|
1132
1140
|
return tmp.c9();
|
|
1133
1141
|
}
|
|
1134
1142
|
function rethrowCloseCauseIfNeeded(_this__u8e3s4) {
|
|
1135
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1143
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1m();
|
|
1136
1144
|
if (tmp0_safe_receiver == null)
|
|
1137
1145
|
null;
|
|
1138
1146
|
else {
|
|
@@ -1141,7 +1149,7 @@
|
|
|
1141
1149
|
}
|
|
1142
1150
|
}
|
|
1143
1151
|
function rethrowCloseCauseIfNeeded_0(_this__u8e3s4) {
|
|
1144
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1152
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1m();
|
|
1145
1153
|
if (tmp0_safe_receiver == null)
|
|
1146
1154
|
null;
|
|
1147
1155
|
else {
|
|
@@ -1156,7 +1164,7 @@
|
|
|
1156
1164
|
return tmp.c9();
|
|
1157
1165
|
}
|
|
1158
1166
|
function get_availableForRead(_this__u8e3s4) {
|
|
1159
|
-
return convertToInt(_this__u8e3s4.
|
|
1167
|
+
return convertToInt(_this__u8e3s4.a1m().kp().u());
|
|
1160
1168
|
}
|
|
1161
1169
|
function peek(_this__u8e3s4, count, $completion) {
|
|
1162
1170
|
var tmp = new $peekCOROUTINE$(_this__u8e3s4, count, $completion);
|
|
@@ -1165,7 +1173,7 @@
|
|
|
1165
1173
|
return tmp.c9();
|
|
1166
1174
|
}
|
|
1167
1175
|
function rethrowCloseCauseIfNeeded_1(_this__u8e3s4) {
|
|
1168
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1176
|
+
var tmp0_safe_receiver = _this__u8e3s4.f1m();
|
|
1169
1177
|
if (tmp0_safe_receiver == null)
|
|
1170
1178
|
null;
|
|
1171
1179
|
else {
|
|
@@ -1180,10 +1188,10 @@
|
|
|
1180
1188
|
}
|
|
1181
1189
|
function $readAvailableCOROUTINE$(_this__u8e3s4, buffer, offset, length, resultContinuation) {
|
|
1182
1190
|
CoroutineImpl.call(this, resultContinuation);
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1191
|
+
this.n1o_1 = _this__u8e3s4;
|
|
1192
|
+
this.o1o_1 = buffer;
|
|
1193
|
+
this.p1o_1 = offset;
|
|
1194
|
+
this.q1o_1 = length;
|
|
1187
1195
|
}
|
|
1188
1196
|
protoOf($readAvailableCOROUTINE$).c9 = function () {
|
|
1189
1197
|
var suspendResult = this.w8_1;
|
|
@@ -1193,11 +1201,11 @@
|
|
|
1193
1201
|
switch (tmp) {
|
|
1194
1202
|
case 0:
|
|
1195
1203
|
this.v8_1 = 3;
|
|
1196
|
-
if (this.
|
|
1204
|
+
if (this.n1o_1.h1m())
|
|
1197
1205
|
return -1;
|
|
1198
|
-
if (this.
|
|
1206
|
+
if (this.n1o_1.a1m().lp()) {
|
|
1199
1207
|
this.u8_1 = 1;
|
|
1200
|
-
suspendResult = this.
|
|
1208
|
+
suspendResult = this.n1o_1.j1m(VOID, this);
|
|
1201
1209
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1202
1210
|
return suspendResult;
|
|
1203
1211
|
}
|
|
@@ -1211,9 +1219,9 @@
|
|
|
1211
1219
|
this.u8_1 = 2;
|
|
1212
1220
|
continue $sm;
|
|
1213
1221
|
case 2:
|
|
1214
|
-
if (this.
|
|
1222
|
+
if (this.n1o_1.h1m())
|
|
1215
1223
|
return -1;
|
|
1216
|
-
return readAvailable_0(this.
|
|
1224
|
+
return readAvailable_0(this.n1o_1.a1m(), this.o1o_1, this.p1o_1, this.q1o_1);
|
|
1217
1225
|
case 3:
|
|
1218
1226
|
throw this.x8_1;
|
|
1219
1227
|
}
|
|
@@ -1230,8 +1238,8 @@
|
|
|
1230
1238
|
};
|
|
1231
1239
|
function $copyToCOROUTINE$(_this__u8e3s4, channel, resultContinuation) {
|
|
1232
1240
|
CoroutineImpl.call(this, resultContinuation);
|
|
1233
|
-
this.
|
|
1234
|
-
this.
|
|
1241
|
+
this.z1o_1 = _this__u8e3s4;
|
|
1242
|
+
this.a1p_1 = channel;
|
|
1235
1243
|
}
|
|
1236
1244
|
protoOf($copyToCOROUTINE$).c9 = function () {
|
|
1237
1245
|
var suspendResult = this.w8_1;
|
|
@@ -1241,7 +1249,7 @@
|
|
|
1241
1249
|
switch (tmp) {
|
|
1242
1250
|
case 0:
|
|
1243
1251
|
this.v8_1 = 11;
|
|
1244
|
-
this.
|
|
1252
|
+
this.b1p_1 = new Long(0, 0);
|
|
1245
1253
|
this.u8_1 = 1;
|
|
1246
1254
|
continue $sm;
|
|
1247
1255
|
case 1:
|
|
@@ -1250,14 +1258,14 @@
|
|
|
1250
1258
|
this.u8_1 = 2;
|
|
1251
1259
|
continue $sm;
|
|
1252
1260
|
case 2:
|
|
1253
|
-
if (!!this.
|
|
1261
|
+
if (!!this.z1o_1.h1m()) {
|
|
1254
1262
|
this.u8_1 = 5;
|
|
1255
1263
|
continue $sm;
|
|
1256
1264
|
}
|
|
1257
1265
|
|
|
1258
|
-
this.
|
|
1266
|
+
this.b1p_1 = add(this.b1p_1, this.z1o_1.a1m().oq(this.a1p_1.d1m()));
|
|
1259
1267
|
this.u8_1 = 3;
|
|
1260
|
-
suspendResult = this.
|
|
1268
|
+
suspendResult = this.a1p_1.y1l(this);
|
|
1261
1269
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1262
1270
|
return suspendResult;
|
|
1263
1271
|
}
|
|
@@ -1265,7 +1273,7 @@
|
|
|
1265
1273
|
continue $sm;
|
|
1266
1274
|
case 3:
|
|
1267
1275
|
this.u8_1 = 4;
|
|
1268
|
-
suspendResult = this.
|
|
1276
|
+
suspendResult = this.z1o_1.j1m(VOID, this);
|
|
1269
1277
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1270
1278
|
return suspendResult;
|
|
1271
1279
|
}
|
|
@@ -1283,8 +1291,8 @@
|
|
|
1283
1291
|
var tmp_0 = this.x8_1;
|
|
1284
1292
|
if (tmp_0 instanceof Error) {
|
|
1285
1293
|
var cause = this.x8_1;
|
|
1286
|
-
this.
|
|
1287
|
-
close_0(this.
|
|
1294
|
+
this.z1o_1.l1m(cause);
|
|
1295
|
+
close_0(this.a1p_1, cause);
|
|
1288
1296
|
throw cause;
|
|
1289
1297
|
} else {
|
|
1290
1298
|
throw this.x8_1;
|
|
@@ -1292,27 +1300,27 @@
|
|
|
1292
1300
|
|
|
1293
1301
|
case 7:
|
|
1294
1302
|
this.v8_1 = 11;
|
|
1295
|
-
this.
|
|
1303
|
+
this.c1p_1 = this.x8_1;
|
|
1296
1304
|
this.u8_1 = 8;
|
|
1297
|
-
suspendResult = this.
|
|
1305
|
+
suspendResult = this.a1p_1.y1l(this);
|
|
1298
1306
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1299
1307
|
return suspendResult;
|
|
1300
1308
|
}
|
|
1301
1309
|
|
|
1302
1310
|
continue $sm;
|
|
1303
1311
|
case 8:
|
|
1304
|
-
throw this.
|
|
1312
|
+
throw this.c1p_1;
|
|
1305
1313
|
case 9:
|
|
1306
1314
|
this.v8_1 = 11;
|
|
1307
1315
|
this.u8_1 = 10;
|
|
1308
|
-
suspendResult = this.
|
|
1316
|
+
suspendResult = this.a1p_1.y1l(this);
|
|
1309
1317
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1310
1318
|
return suspendResult;
|
|
1311
1319
|
}
|
|
1312
1320
|
|
|
1313
1321
|
continue $sm;
|
|
1314
1322
|
case 10:
|
|
1315
|
-
return this.
|
|
1323
|
+
return this.b1p_1;
|
|
1316
1324
|
case 11:
|
|
1317
1325
|
throw this.x8_1;
|
|
1318
1326
|
}
|
|
@@ -1329,7 +1337,7 @@
|
|
|
1329
1337
|
};
|
|
1330
1338
|
function $readRemainingCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1331
1339
|
CoroutineImpl.call(this, resultContinuation);
|
|
1332
|
-
this.
|
|
1340
|
+
this.l1p_1 = _this__u8e3s4;
|
|
1333
1341
|
}
|
|
1334
1342
|
protoOf($readRemainingCOROUTINE$).c9 = function () {
|
|
1335
1343
|
var suspendResult = this.w8_1;
|
|
@@ -1339,18 +1347,18 @@
|
|
|
1339
1347
|
switch (tmp) {
|
|
1340
1348
|
case 0:
|
|
1341
1349
|
this.v8_1 = 4;
|
|
1342
|
-
this.
|
|
1350
|
+
this.m1p_1 = BytePacketBuilder();
|
|
1343
1351
|
this.u8_1 = 1;
|
|
1344
1352
|
continue $sm;
|
|
1345
1353
|
case 1:
|
|
1346
|
-
if (!!this.
|
|
1354
|
+
if (!!this.l1p_1.h1m()) {
|
|
1347
1355
|
this.u8_1 = 3;
|
|
1348
1356
|
continue $sm;
|
|
1349
1357
|
}
|
|
1350
1358
|
|
|
1351
|
-
this.
|
|
1359
|
+
this.m1p_1.dr(this.l1p_1.a1m());
|
|
1352
1360
|
this.u8_1 = 2;
|
|
1353
|
-
suspendResult = this.
|
|
1361
|
+
suspendResult = this.l1p_1.j1m(VOID, this);
|
|
1354
1362
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1355
1363
|
return suspendResult;
|
|
1356
1364
|
}
|
|
@@ -1360,8 +1368,8 @@
|
|
|
1360
1368
|
this.u8_1 = 1;
|
|
1361
1369
|
continue $sm;
|
|
1362
1370
|
case 3:
|
|
1363
|
-
rethrowCloseCauseIfNeeded_0(this.
|
|
1364
|
-
return this.
|
|
1371
|
+
rethrowCloseCauseIfNeeded_0(this.l1p_1);
|
|
1372
|
+
return this.m1p_1.kp();
|
|
1365
1373
|
case 4:
|
|
1366
1374
|
throw this.x8_1;
|
|
1367
1375
|
}
|
|
@@ -1378,7 +1386,7 @@
|
|
|
1378
1386
|
};
|
|
1379
1387
|
function $toByteArrayCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1380
1388
|
CoroutineImpl.call(this, resultContinuation);
|
|
1381
|
-
this.
|
|
1389
|
+
this.v1p_1 = _this__u8e3s4;
|
|
1382
1390
|
}
|
|
1383
1391
|
protoOf($toByteArrayCOROUTINE$).c9 = function () {
|
|
1384
1392
|
var suspendResult = this.w8_1;
|
|
@@ -1389,7 +1397,7 @@
|
|
|
1389
1397
|
case 0:
|
|
1390
1398
|
this.v8_1 = 2;
|
|
1391
1399
|
this.u8_1 = 1;
|
|
1392
|
-
suspendResult = readBuffer(this.
|
|
1400
|
+
suspendResult = readBuffer(this.v1p_1, this);
|
|
1393
1401
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1394
1402
|
return suspendResult;
|
|
1395
1403
|
}
|
|
@@ -1414,9 +1422,9 @@
|
|
|
1414
1422
|
};
|
|
1415
1423
|
function $copyToCOROUTINE$_0(_this__u8e3s4, channel, limit, resultContinuation) {
|
|
1416
1424
|
CoroutineImpl.call(this, resultContinuation);
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1425
|
+
this.e1q_1 = _this__u8e3s4;
|
|
1426
|
+
this.f1q_1 = channel;
|
|
1427
|
+
this.g1q_1 = limit;
|
|
1420
1428
|
}
|
|
1421
1429
|
protoOf($copyToCOROUTINE$_0).c9 = function () {
|
|
1422
1430
|
var suspendResult = this.w8_1;
|
|
@@ -1426,7 +1434,7 @@
|
|
|
1426
1434
|
switch (tmp) {
|
|
1427
1435
|
case 0:
|
|
1428
1436
|
this.v8_1 = 12;
|
|
1429
|
-
this.
|
|
1437
|
+
this.h1q_1 = this.g1q_1;
|
|
1430
1438
|
this.u8_1 = 1;
|
|
1431
1439
|
continue $sm;
|
|
1432
1440
|
case 1:
|
|
@@ -1435,14 +1443,14 @@
|
|
|
1435
1443
|
this.u8_1 = 2;
|
|
1436
1444
|
continue $sm;
|
|
1437
1445
|
case 2:
|
|
1438
|
-
if (!(!this.
|
|
1446
|
+
if (!(!this.e1q_1.h1m() && compare(this.h1q_1, new Long(0, 0)) > 0)) {
|
|
1439
1447
|
this.u8_1 = 6;
|
|
1440
1448
|
continue $sm;
|
|
1441
1449
|
}
|
|
1442
1450
|
|
|
1443
|
-
if (this.
|
|
1451
|
+
if (this.e1q_1.a1m().lp()) {
|
|
1444
1452
|
this.u8_1 = 3;
|
|
1445
|
-
suspendResult = this.
|
|
1453
|
+
suspendResult = this.e1q_1.j1m(VOID, this);
|
|
1446
1454
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1447
1455
|
return suspendResult;
|
|
1448
1456
|
}
|
|
@@ -1456,13 +1464,13 @@
|
|
|
1456
1464
|
this.u8_1 = 4;
|
|
1457
1465
|
continue $sm;
|
|
1458
1466
|
case 4:
|
|
1459
|
-
var tmp0 = this.
|
|
1460
|
-
var b = get_remaining(this.
|
|
1467
|
+
var tmp0 = this.h1q_1;
|
|
1468
|
+
var b = get_remaining(this.e1q_1.a1m());
|
|
1461
1469
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1470
|
+
this.e1q_1.a1m().nq(this.f1q_1.d1m(), count);
|
|
1471
|
+
this.h1q_1 = subtract(this.h1q_1, count);
|
|
1464
1472
|
this.u8_1 = 5;
|
|
1465
|
-
suspendResult = this.
|
|
1473
|
+
suspendResult = this.f1q_1.y1l(this);
|
|
1466
1474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1467
1475
|
return suspendResult;
|
|
1468
1476
|
}
|
|
@@ -1480,8 +1488,8 @@
|
|
|
1480
1488
|
var tmp_0 = this.x8_1;
|
|
1481
1489
|
if (tmp_0 instanceof Error) {
|
|
1482
1490
|
var cause = this.x8_1;
|
|
1483
|
-
this.
|
|
1484
|
-
close_0(this.
|
|
1491
|
+
this.e1q_1.l1m(cause);
|
|
1492
|
+
close_0(this.f1q_1, cause);
|
|
1485
1493
|
throw cause;
|
|
1486
1494
|
} else {
|
|
1487
1495
|
throw this.x8_1;
|
|
@@ -1489,27 +1497,27 @@
|
|
|
1489
1497
|
|
|
1490
1498
|
case 8:
|
|
1491
1499
|
this.v8_1 = 12;
|
|
1492
|
-
this.
|
|
1500
|
+
this.i1q_1 = this.x8_1;
|
|
1493
1501
|
this.u8_1 = 9;
|
|
1494
|
-
suspendResult = this.
|
|
1502
|
+
suspendResult = this.f1q_1.y1l(this);
|
|
1495
1503
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1496
1504
|
return suspendResult;
|
|
1497
1505
|
}
|
|
1498
1506
|
|
|
1499
1507
|
continue $sm;
|
|
1500
1508
|
case 9:
|
|
1501
|
-
throw this.
|
|
1509
|
+
throw this.i1q_1;
|
|
1502
1510
|
case 10:
|
|
1503
1511
|
this.v8_1 = 12;
|
|
1504
1512
|
this.u8_1 = 11;
|
|
1505
|
-
suspendResult = this.
|
|
1513
|
+
suspendResult = this.f1q_1.y1l(this);
|
|
1506
1514
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1507
1515
|
return suspendResult;
|
|
1508
1516
|
}
|
|
1509
1517
|
|
|
1510
1518
|
continue $sm;
|
|
1511
1519
|
case 11:
|
|
1512
|
-
return subtract(this.
|
|
1520
|
+
return subtract(this.g1q_1, this.h1q_1);
|
|
1513
1521
|
case 12:
|
|
1514
1522
|
throw this.x8_1;
|
|
1515
1523
|
}
|
|
@@ -1526,8 +1534,8 @@
|
|
|
1526
1534
|
};
|
|
1527
1535
|
function $discardCOROUTINE$(_this__u8e3s4, max, resultContinuation) {
|
|
1528
1536
|
CoroutineImpl.call(this, resultContinuation);
|
|
1529
|
-
this.
|
|
1530
|
-
this.
|
|
1537
|
+
this.r1q_1 = _this__u8e3s4;
|
|
1538
|
+
this.s1q_1 = max;
|
|
1531
1539
|
}
|
|
1532
1540
|
protoOf($discardCOROUTINE$).c9 = function () {
|
|
1533
1541
|
var suspendResult = this.w8_1;
|
|
@@ -1537,18 +1545,18 @@
|
|
|
1537
1545
|
switch (tmp) {
|
|
1538
1546
|
case 0:
|
|
1539
1547
|
this.v8_1 = 5;
|
|
1540
|
-
this.
|
|
1548
|
+
this.t1q_1 = this.s1q_1;
|
|
1541
1549
|
this.u8_1 = 1;
|
|
1542
1550
|
continue $sm;
|
|
1543
1551
|
case 1:
|
|
1544
|
-
if (!(compare(this.
|
|
1552
|
+
if (!(compare(this.t1q_1, new Long(0, 0)) > 0 && !this.r1q_1.h1m())) {
|
|
1545
1553
|
this.u8_1 = 4;
|
|
1546
1554
|
continue $sm;
|
|
1547
1555
|
}
|
|
1548
1556
|
|
|
1549
|
-
if (get_availableForRead(this.
|
|
1557
|
+
if (get_availableForRead(this.r1q_1) === 0) {
|
|
1550
1558
|
this.u8_1 = 2;
|
|
1551
|
-
suspendResult = this.
|
|
1559
|
+
suspendResult = this.r1q_1.j1m(VOID, this);
|
|
1552
1560
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1553
1561
|
return suspendResult;
|
|
1554
1562
|
}
|
|
@@ -1562,15 +1570,15 @@
|
|
|
1562
1570
|
this.u8_1 = 3;
|
|
1563
1571
|
continue $sm;
|
|
1564
1572
|
case 3:
|
|
1565
|
-
var tmp0 = this.
|
|
1566
|
-
var b = get_remaining(this.
|
|
1573
|
+
var tmp0 = this.t1q_1;
|
|
1574
|
+
var b = get_remaining(this.r1q_1.a1m());
|
|
1567
1575
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
1568
|
-
discard_0(this.
|
|
1569
|
-
this.
|
|
1576
|
+
discard_0(this.r1q_1.a1m(), count);
|
|
1577
|
+
this.t1q_1 = subtract(this.t1q_1, count);
|
|
1570
1578
|
this.u8_1 = 1;
|
|
1571
1579
|
continue $sm;
|
|
1572
1580
|
case 4:
|
|
1573
|
-
return subtract(this.
|
|
1581
|
+
return subtract(this.s1q_1, this.t1q_1);
|
|
1574
1582
|
case 5:
|
|
1575
1583
|
throw this.x8_1;
|
|
1576
1584
|
}
|
|
@@ -1587,8 +1595,8 @@
|
|
|
1587
1595
|
};
|
|
1588
1596
|
function $skipIfFoundCOROUTINE$(_this__u8e3s4, byteString, resultContinuation) {
|
|
1589
1597
|
CoroutineImpl.call(this, resultContinuation);
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1598
|
+
this.c1r_1 = _this__u8e3s4;
|
|
1599
|
+
this.d1r_1 = byteString;
|
|
1592
1600
|
}
|
|
1593
1601
|
protoOf($skipIfFoundCOROUTINE$).c9 = function () {
|
|
1594
1602
|
var suspendResult = this.w8_1;
|
|
@@ -1599,7 +1607,7 @@
|
|
|
1599
1607
|
case 0:
|
|
1600
1608
|
this.v8_1 = 4;
|
|
1601
1609
|
this.u8_1 = 1;
|
|
1602
|
-
suspendResult = peek(this.
|
|
1610
|
+
suspendResult = peek(this.c1r_1, this.d1r_1.u(), this);
|
|
1603
1611
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1604
1612
|
return suspendResult;
|
|
1605
1613
|
}
|
|
@@ -1607,9 +1615,9 @@
|
|
|
1607
1615
|
continue $sm;
|
|
1608
1616
|
case 1:
|
|
1609
1617
|
var ARGUMENT = suspendResult;
|
|
1610
|
-
if (equals(ARGUMENT, this.
|
|
1618
|
+
if (equals(ARGUMENT, this.d1r_1)) {
|
|
1611
1619
|
this.u8_1 = 3;
|
|
1612
|
-
suspendResult = discard(this.
|
|
1620
|
+
suspendResult = discard(this.c1r_1, fromInt(this.d1r_1.u()), this);
|
|
1613
1621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1614
1622
|
return suspendResult;
|
|
1615
1623
|
}
|
|
@@ -1639,8 +1647,8 @@
|
|
|
1639
1647
|
};
|
|
1640
1648
|
function $readPacketCOROUTINE$(_this__u8e3s4, packet, resultContinuation) {
|
|
1641
1649
|
CoroutineImpl.call(this, resultContinuation);
|
|
1642
|
-
this.
|
|
1643
|
-
this.
|
|
1650
|
+
this.m1r_1 = _this__u8e3s4;
|
|
1651
|
+
this.n1r_1 = packet;
|
|
1644
1652
|
}
|
|
1645
1653
|
protoOf($readPacketCOROUTINE$).c9 = function () {
|
|
1646
1654
|
var suspendResult = this.w8_1;
|
|
@@ -1650,18 +1658,18 @@
|
|
|
1650
1658
|
switch (tmp) {
|
|
1651
1659
|
case 0:
|
|
1652
1660
|
this.v8_1 = 6;
|
|
1653
|
-
this.
|
|
1661
|
+
this.o1r_1 = new Buffer();
|
|
1654
1662
|
this.u8_1 = 1;
|
|
1655
1663
|
continue $sm;
|
|
1656
1664
|
case 1:
|
|
1657
|
-
if (!(compare(this.
|
|
1665
|
+
if (!(compare(this.o1r_1.u(), fromInt(this.n1r_1)) < 0)) {
|
|
1658
1666
|
this.u8_1 = 5;
|
|
1659
1667
|
continue $sm;
|
|
1660
1668
|
}
|
|
1661
1669
|
|
|
1662
|
-
if (this.
|
|
1670
|
+
if (this.m1r_1.a1m().lp()) {
|
|
1663
1671
|
this.u8_1 = 2;
|
|
1664
|
-
suspendResult = this.
|
|
1672
|
+
suspendResult = this.m1r_1.j1m(VOID, this);
|
|
1665
1673
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1666
1674
|
return suspendResult;
|
|
1667
1675
|
}
|
|
@@ -1675,7 +1683,7 @@
|
|
|
1675
1683
|
this.u8_1 = 3;
|
|
1676
1684
|
continue $sm;
|
|
1677
1685
|
case 3:
|
|
1678
|
-
if (this.
|
|
1686
|
+
if (this.m1r_1.h1m()) {
|
|
1679
1687
|
this.u8_1 = 5;
|
|
1680
1688
|
continue $sm;
|
|
1681
1689
|
} else {
|
|
@@ -1684,20 +1692,20 @@
|
|
|
1684
1692
|
}
|
|
1685
1693
|
|
|
1686
1694
|
case 4:
|
|
1687
|
-
if (compare(get_remaining(this.
|
|
1688
|
-
this.
|
|
1695
|
+
if (compare(get_remaining(this.m1r_1.a1m()), subtract(numberToLong(this.n1r_1), this.o1r_1.u())) > 0) {
|
|
1696
|
+
this.m1r_1.a1m().nq(this.o1r_1, subtract(numberToLong(this.n1r_1), this.o1r_1.u()));
|
|
1689
1697
|
} else {
|
|
1690
|
-
this.
|
|
1698
|
+
this.m1r_1.a1m().oq(this.o1r_1);
|
|
1691
1699
|
}
|
|
1692
1700
|
|
|
1693
1701
|
this.u8_1 = 1;
|
|
1694
1702
|
continue $sm;
|
|
1695
1703
|
case 5:
|
|
1696
|
-
if (compare(this.
|
|
1697
|
-
throw EOFException_init_$Create$('Not enough data available, required ' + this.
|
|
1704
|
+
if (compare(this.o1r_1.u(), fromInt(this.n1r_1)) < 0) {
|
|
1705
|
+
throw EOFException_init_$Create$('Not enough data available, required ' + this.n1r_1 + ' bytes but only ' + this.o1r_1.u().toString() + ' available');
|
|
1698
1706
|
}
|
|
1699
1707
|
|
|
1700
|
-
return this.
|
|
1708
|
+
return this.o1r_1;
|
|
1701
1709
|
case 6:
|
|
1702
1710
|
throw this.x8_1;
|
|
1703
1711
|
}
|
|
@@ -1714,10 +1722,10 @@
|
|
|
1714
1722
|
};
|
|
1715
1723
|
function $readUTF8LineToCOROUTINE$(_this__u8e3s4, out, max, lineEnding, resultContinuation) {
|
|
1716
1724
|
CoroutineImpl.call(this, resultContinuation);
|
|
1717
|
-
this.
|
|
1718
|
-
this.
|
|
1719
|
-
this.
|
|
1720
|
-
this.
|
|
1725
|
+
this.c1s_1 = _this__u8e3s4;
|
|
1726
|
+
this.d1s_1 = out;
|
|
1727
|
+
this.e1s_1 = max;
|
|
1728
|
+
this.f1s_1 = lineEnding;
|
|
1721
1729
|
}
|
|
1722
1730
|
protoOf($readUTF8LineToCOROUTINE$).c9 = function () {
|
|
1723
1731
|
var suspendResult = this.w8_1;
|
|
@@ -1727,9 +1735,9 @@
|
|
|
1727
1735
|
switch (tmp) {
|
|
1728
1736
|
case 0:
|
|
1729
1737
|
this.v8_1 = 21;
|
|
1730
|
-
if (this.
|
|
1738
|
+
if (this.c1s_1.a1m().lp()) {
|
|
1731
1739
|
this.u8_1 = 1;
|
|
1732
|
-
suspendResult = this.
|
|
1740
|
+
suspendResult = this.c1s_1.j1m(VOID, this);
|
|
1733
1741
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1734
1742
|
return suspendResult;
|
|
1735
1743
|
}
|
|
@@ -1743,15 +1751,15 @@
|
|
|
1743
1751
|
this.u8_1 = 2;
|
|
1744
1752
|
continue $sm;
|
|
1745
1753
|
case 2:
|
|
1746
|
-
if (this.
|
|
1754
|
+
if (this.c1s_1.h1m())
|
|
1747
1755
|
return false;
|
|
1748
1756
|
var tmp_0 = this;
|
|
1749
|
-
tmp_0.
|
|
1757
|
+
tmp_0.l1s_1 = new Buffer();
|
|
1750
1758
|
this.u8_1 = 3;
|
|
1751
1759
|
continue $sm;
|
|
1752
1760
|
case 3:
|
|
1753
|
-
this.
|
|
1754
|
-
this.
|
|
1761
|
+
this.i1s_1 = this.l1s_1;
|
|
1762
|
+
this.h1s_1 = null;
|
|
1755
1763
|
this.u8_1 = 4;
|
|
1756
1764
|
continue $sm;
|
|
1757
1765
|
case 4:
|
|
@@ -1763,11 +1771,11 @@
|
|
|
1763
1771
|
case 6:
|
|
1764
1772
|
this.v8_1 = 18;
|
|
1765
1773
|
this.v8_1 = 17;
|
|
1766
|
-
this.
|
|
1774
|
+
this.k1s_1 = this.i1s_1;
|
|
1767
1775
|
this.u8_1 = 7;
|
|
1768
1776
|
continue $sm;
|
|
1769
1777
|
case 7:
|
|
1770
|
-
if (!!this.
|
|
1778
|
+
if (!!this.c1s_1.h1m()) {
|
|
1771
1779
|
this.u8_1 = 14;
|
|
1772
1780
|
continue $sm;
|
|
1773
1781
|
}
|
|
@@ -1775,16 +1783,16 @@
|
|
|
1775
1783
|
this.u8_1 = 8;
|
|
1776
1784
|
continue $sm;
|
|
1777
1785
|
case 8:
|
|
1778
|
-
if (!!this.
|
|
1786
|
+
if (!!this.c1s_1.a1m().lp()) {
|
|
1779
1787
|
this.u8_1 = 12;
|
|
1780
1788
|
continue $sm;
|
|
1781
1789
|
}
|
|
1782
1790
|
|
|
1783
|
-
var b = this.
|
|
1791
|
+
var b = this.c1s_1.a1m().op();
|
|
1784
1792
|
if (b === 13) {
|
|
1785
|
-
if (this.
|
|
1793
|
+
if (this.c1s_1.a1m().lp()) {
|
|
1786
1794
|
this.u8_1 = 10;
|
|
1787
|
-
suspendResult = this.
|
|
1795
|
+
suspendResult = this.c1s_1.j1m(VOID, this);
|
|
1788
1796
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1789
1797
|
return suspendResult;
|
|
1790
1798
|
}
|
|
@@ -1795,14 +1803,14 @@
|
|
|
1795
1803
|
}
|
|
1796
1804
|
} else {
|
|
1797
1805
|
if (b === 10) {
|
|
1798
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1799
|
-
this.
|
|
1800
|
-
this.
|
|
1806
|
+
readUTF8LineTo$checkLineEndingAllowed(this.f1s_1, Companion_getInstance_1().q1r_1);
|
|
1807
|
+
this.d1s_1.q(readString(this.k1s_1));
|
|
1808
|
+
this.j1s_1 = true;
|
|
1801
1809
|
this.v8_1 = 21;
|
|
1802
1810
|
this.u8_1 = 15;
|
|
1803
1811
|
continue $sm;
|
|
1804
1812
|
} else {
|
|
1805
|
-
this.
|
|
1813
|
+
this.k1s_1.er(b);
|
|
1806
1814
|
this.u8_1 = 9;
|
|
1807
1815
|
continue $sm;
|
|
1808
1816
|
}
|
|
@@ -1815,25 +1823,25 @@
|
|
|
1815
1823
|
this.u8_1 = 11;
|
|
1816
1824
|
continue $sm;
|
|
1817
1825
|
case 11:
|
|
1818
|
-
if (this.
|
|
1819
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1820
|
-
discard_0(this.
|
|
1826
|
+
if (this.c1s_1.a1m().kp().gq(new Long(0, 0)) === 10) {
|
|
1827
|
+
readUTF8LineTo$checkLineEndingAllowed(this.f1s_1, Companion_getInstance_1().r1r_1);
|
|
1828
|
+
discard_0(this.c1s_1.a1m(), new Long(1, 0));
|
|
1821
1829
|
} else {
|
|
1822
|
-
readUTF8LineTo$checkLineEndingAllowed(this.
|
|
1830
|
+
readUTF8LineTo$checkLineEndingAllowed(this.f1s_1, Companion_getInstance_1().p1r_1);
|
|
1823
1831
|
}
|
|
1824
1832
|
|
|
1825
|
-
this.
|
|
1826
|
-
this.
|
|
1833
|
+
this.d1s_1.q(readString(this.k1s_1));
|
|
1834
|
+
this.j1s_1 = true;
|
|
1827
1835
|
this.v8_1 = 21;
|
|
1828
1836
|
this.u8_1 = 15;
|
|
1829
1837
|
continue $sm;
|
|
1830
1838
|
case 12:
|
|
1831
|
-
if (compare(this.
|
|
1832
|
-
throw new TooLongLineException('Line exceeds limit of ' + this.
|
|
1839
|
+
if (compare(this.k1s_1.u(), fromInt(this.e1s_1)) >= 0) {
|
|
1840
|
+
throw new TooLongLineException('Line exceeds limit of ' + this.e1s_1 + ' characters');
|
|
1833
1841
|
}
|
|
1834
1842
|
|
|
1835
1843
|
this.u8_1 = 13;
|
|
1836
|
-
suspendResult = this.
|
|
1844
|
+
suspendResult = this.c1s_1.j1m(VOID, this);
|
|
1837
1845
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1838
1846
|
return suspendResult;
|
|
1839
1847
|
}
|
|
@@ -1844,26 +1852,26 @@
|
|
|
1844
1852
|
continue $sm;
|
|
1845
1853
|
case 14:
|
|
1846
1854
|
var tmp_1 = this;
|
|
1847
|
-
var this_0 = compare(this.
|
|
1855
|
+
var this_0 = compare(this.k1s_1.u(), new Long(0, 0)) > 0;
|
|
1848
1856
|
if (this_0) {
|
|
1849
|
-
this.
|
|
1857
|
+
this.d1s_1.q(readString(this.k1s_1));
|
|
1850
1858
|
}
|
|
1851
1859
|
|
|
1852
|
-
tmp_1.
|
|
1860
|
+
tmp_1.j1s_1 = this_0;
|
|
1853
1861
|
this.v8_1 = 21;
|
|
1854
1862
|
this.u8_1 = 15;
|
|
1855
1863
|
var tmp_2 = this;
|
|
1856
1864
|
continue $sm;
|
|
1857
1865
|
case 15:
|
|
1858
|
-
var tmp_3 = this.
|
|
1866
|
+
var tmp_3 = this.j1s_1;
|
|
1859
1867
|
this.v8_1 = 21;
|
|
1860
|
-
closeFinally(this.
|
|
1868
|
+
closeFinally(this.i1s_1, this.h1s_1);
|
|
1861
1869
|
return tmp_3;
|
|
1862
1870
|
case 16:
|
|
1863
1871
|
this.v8_1 = 21;
|
|
1864
1872
|
var tmp_4 = this;
|
|
1865
|
-
closeFinally(this.
|
|
1866
|
-
tmp_4.
|
|
1873
|
+
closeFinally(this.i1s_1, this.h1s_1);
|
|
1874
|
+
tmp_4.g1s_1 = Unit_instance;
|
|
1867
1875
|
this.u8_1 = 20;
|
|
1868
1876
|
continue $sm;
|
|
1869
1877
|
case 17:
|
|
@@ -1872,7 +1880,7 @@
|
|
|
1872
1880
|
if (tmp_5 instanceof Error) {
|
|
1873
1881
|
var e = this.x8_1;
|
|
1874
1882
|
var tmp_6 = this;
|
|
1875
|
-
this.
|
|
1883
|
+
this.h1s_1 = e;
|
|
1876
1884
|
throw e;
|
|
1877
1885
|
} else {
|
|
1878
1886
|
throw this.x8_1;
|
|
@@ -1881,11 +1889,11 @@
|
|
|
1881
1889
|
case 18:
|
|
1882
1890
|
this.v8_1 = 21;
|
|
1883
1891
|
var t = this.x8_1;
|
|
1884
|
-
closeFinally(this.
|
|
1892
|
+
closeFinally(this.i1s_1, this.h1s_1);
|
|
1885
1893
|
throw t;
|
|
1886
1894
|
case 19:
|
|
1887
1895
|
this.v8_1 = 21;
|
|
1888
|
-
closeFinally(this.
|
|
1896
|
+
closeFinally(this.i1s_1, this.h1s_1);
|
|
1889
1897
|
if (false) {
|
|
1890
1898
|
this.u8_1 = 3;
|
|
1891
1899
|
continue $sm;
|
|
@@ -1911,8 +1919,8 @@
|
|
|
1911
1919
|
};
|
|
1912
1920
|
function $readRemainingCOROUTINE$_0(_this__u8e3s4, max, resultContinuation) {
|
|
1913
1921
|
CoroutineImpl.call(this, resultContinuation);
|
|
1914
|
-
this.
|
|
1915
|
-
this.
|
|
1922
|
+
this.u1s_1 = _this__u8e3s4;
|
|
1923
|
+
this.v1s_1 = max;
|
|
1916
1924
|
}
|
|
1917
1925
|
protoOf($readRemainingCOROUTINE$_0).c9 = function () {
|
|
1918
1926
|
var suspendResult = this.w8_1;
|
|
@@ -1922,26 +1930,26 @@
|
|
|
1922
1930
|
switch (tmp) {
|
|
1923
1931
|
case 0:
|
|
1924
1932
|
this.v8_1 = 4;
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1933
|
+
this.w1s_1 = BytePacketBuilder();
|
|
1934
|
+
this.x1s_1 = this.v1s_1;
|
|
1927
1935
|
this.u8_1 = 1;
|
|
1928
1936
|
continue $sm;
|
|
1929
1937
|
case 1:
|
|
1930
|
-
if (!(!this.
|
|
1938
|
+
if (!(!this.u1s_1.h1m() && compare(this.x1s_1, new Long(0, 0)) > 0)) {
|
|
1931
1939
|
this.u8_1 = 3;
|
|
1932
1940
|
continue $sm;
|
|
1933
1941
|
}
|
|
1934
1942
|
|
|
1935
|
-
if (compare(this.
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1943
|
+
if (compare(this.x1s_1, get_remaining(this.u1s_1.a1m())) >= 0) {
|
|
1944
|
+
this.x1s_1 = subtract(this.x1s_1, get_remaining(this.u1s_1.a1m()));
|
|
1945
|
+
this.u1s_1.a1m().oq(this.w1s_1);
|
|
1938
1946
|
} else {
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1947
|
+
this.u1s_1.a1m().nq(this.w1s_1, this.x1s_1);
|
|
1948
|
+
this.x1s_1 = new Long(0, 0);
|
|
1941
1949
|
}
|
|
1942
1950
|
|
|
1943
1951
|
this.u8_1 = 2;
|
|
1944
|
-
suspendResult = this.
|
|
1952
|
+
suspendResult = this.u1s_1.j1m(VOID, this);
|
|
1945
1953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1946
1954
|
return suspendResult;
|
|
1947
1955
|
}
|
|
@@ -1951,7 +1959,7 @@
|
|
|
1951
1959
|
this.u8_1 = 1;
|
|
1952
1960
|
continue $sm;
|
|
1953
1961
|
case 3:
|
|
1954
|
-
return this.
|
|
1962
|
+
return this.w1s_1.kp();
|
|
1955
1963
|
case 4:
|
|
1956
1964
|
throw this.x8_1;
|
|
1957
1965
|
}
|
|
@@ -1968,7 +1976,7 @@
|
|
|
1968
1976
|
};
|
|
1969
1977
|
function $readBufferCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
1970
1978
|
CoroutineImpl.call(this, resultContinuation);
|
|
1971
|
-
this.
|
|
1979
|
+
this.g1t_1 = _this__u8e3s4;
|
|
1972
1980
|
}
|
|
1973
1981
|
protoOf($readBufferCOROUTINE$).c9 = function () {
|
|
1974
1982
|
var suspendResult = this.w8_1;
|
|
@@ -1978,18 +1986,18 @@
|
|
|
1978
1986
|
switch (tmp) {
|
|
1979
1987
|
case 0:
|
|
1980
1988
|
this.v8_1 = 4;
|
|
1981
|
-
this.
|
|
1989
|
+
this.h1t_1 = new Buffer();
|
|
1982
1990
|
this.u8_1 = 1;
|
|
1983
1991
|
continue $sm;
|
|
1984
1992
|
case 1:
|
|
1985
|
-
if (!!this.
|
|
1993
|
+
if (!!this.g1t_1.h1m()) {
|
|
1986
1994
|
this.u8_1 = 3;
|
|
1987
1995
|
continue $sm;
|
|
1988
1996
|
}
|
|
1989
1997
|
|
|
1990
|
-
this.
|
|
1998
|
+
this.h1t_1.dr(this.g1t_1.a1m());
|
|
1991
1999
|
this.u8_1 = 2;
|
|
1992
|
-
suspendResult = this.
|
|
2000
|
+
suspendResult = this.g1t_1.j1m(VOID, this);
|
|
1993
2001
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1994
2002
|
return suspendResult;
|
|
1995
2003
|
}
|
|
@@ -1999,14 +2007,14 @@
|
|
|
1999
2007
|
this.u8_1 = 1;
|
|
2000
2008
|
continue $sm;
|
|
2001
2009
|
case 3:
|
|
2002
|
-
var tmp0_safe_receiver = this.
|
|
2010
|
+
var tmp0_safe_receiver = this.g1t_1.f1m();
|
|
2003
2011
|
if (tmp0_safe_receiver == null)
|
|
2004
2012
|
null;
|
|
2005
2013
|
else {
|
|
2006
2014
|
throw tmp0_safe_receiver;
|
|
2007
2015
|
}
|
|
2008
2016
|
|
|
2009
|
-
return this.
|
|
2017
|
+
return this.h1t_1;
|
|
2010
2018
|
case 4:
|
|
2011
2019
|
throw this.x8_1;
|
|
2012
2020
|
}
|
|
@@ -2023,8 +2031,8 @@
|
|
|
2023
2031
|
};
|
|
2024
2032
|
function $peekCOROUTINE$(_this__u8e3s4, count, resultContinuation) {
|
|
2025
2033
|
CoroutineImpl.call(this, resultContinuation);
|
|
2026
|
-
this.
|
|
2027
|
-
this.
|
|
2034
|
+
this.q1t_1 = _this__u8e3s4;
|
|
2035
|
+
this.r1t_1 = count;
|
|
2028
2036
|
}
|
|
2029
2037
|
protoOf($peekCOROUTINE$).c9 = function () {
|
|
2030
2038
|
var suspendResult = this.w8_1;
|
|
@@ -2034,10 +2042,10 @@
|
|
|
2034
2042
|
switch (tmp) {
|
|
2035
2043
|
case 0:
|
|
2036
2044
|
this.v8_1 = 3;
|
|
2037
|
-
if (this.
|
|
2045
|
+
if (this.q1t_1.h1m())
|
|
2038
2046
|
return null;
|
|
2039
2047
|
this.u8_1 = 1;
|
|
2040
|
-
suspendResult = this.
|
|
2048
|
+
suspendResult = this.q1t_1.i1m(this.r1t_1, this);
|
|
2041
2049
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2042
2050
|
return suspendResult;
|
|
2043
2051
|
}
|
|
@@ -2052,7 +2060,7 @@
|
|
|
2052
2060
|
}
|
|
2053
2061
|
|
|
2054
2062
|
case 2:
|
|
2055
|
-
return readByteString(this.
|
|
2063
|
+
return readByteString(this.q1t_1.a1m().pq(), this.r1t_1);
|
|
2056
2064
|
case 3:
|
|
2057
2065
|
throw this.x8_1;
|
|
2058
2066
|
}
|
|
@@ -2067,6 +2075,8 @@
|
|
|
2067
2075
|
}
|
|
2068
2076
|
while (true);
|
|
2069
2077
|
};
|
|
2078
|
+
function ByteWriteChannel() {
|
|
2079
|
+
}
|
|
2070
2080
|
function flushIfNeeded(_this__u8e3s4, $completion) {
|
|
2071
2081
|
var tmp = new $flushIfNeededCOROUTINE$(_this__u8e3s4, $completion);
|
|
2072
2082
|
tmp.w8_1 = Unit_instance;
|
|
@@ -2075,7 +2085,7 @@
|
|
|
2075
2085
|
}
|
|
2076
2086
|
function $flushIfNeededCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
2077
2087
|
CoroutineImpl.call(this, resultContinuation);
|
|
2078
|
-
this.
|
|
2088
|
+
this.a1u_1 = _this__u8e3s4;
|
|
2079
2089
|
}
|
|
2080
2090
|
protoOf($flushIfNeededCOROUTINE$).c9 = function () {
|
|
2081
2091
|
var suspendResult = this.w8_1;
|
|
@@ -2085,19 +2095,10 @@
|
|
|
2085
2095
|
switch (tmp) {
|
|
2086
2096
|
case 0:
|
|
2087
2097
|
this.v8_1 = 3;
|
|
2088
|
-
rethrowCloseCauseIfNeeded_1(this.
|
|
2089
|
-
|
|
2090
|
-
var tmp_1 = this.z1t_1;
|
|
2091
|
-
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel ? tmp_1 : null;
|
|
2092
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1k_1) === true) {
|
|
2093
|
-
tmp_0 = true;
|
|
2094
|
-
} else {
|
|
2095
|
-
tmp_0 = get_size(this.z1t_1.c1m()) >= 1048576;
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
if (tmp_0) {
|
|
2098
|
+
rethrowCloseCauseIfNeeded_1(this.a1u_1);
|
|
2099
|
+
if (this.a1u_1.z1l() || get_size(this.a1u_1.d1m()) >= 1048576) {
|
|
2099
2100
|
this.u8_1 = 1;
|
|
2100
|
-
suspendResult = this.
|
|
2101
|
+
suspendResult = this.a1u_1.y1l(this);
|
|
2101
2102
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2102
2103
|
return suspendResult;
|
|
2103
2104
|
}
|
|
@@ -2134,15 +2135,15 @@
|
|
|
2134
2135
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
2135
2136
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2136
2137
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
2137
|
-
_this__u8e3s4.
|
|
2138
|
+
_this__u8e3s4.d1m().uq(value, startIndex, endIndex);
|
|
2138
2139
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2139
2140
|
}
|
|
2140
2141
|
function WriterJob(channel, job) {
|
|
2141
|
-
this.
|
|
2142
|
-
this.
|
|
2142
|
+
this.b1u_1 = channel;
|
|
2143
|
+
this.c1u_1 = job;
|
|
2143
2144
|
}
|
|
2144
2145
|
protoOf(WriterJob).iw = function () {
|
|
2145
|
-
return this.
|
|
2146
|
+
return this.c1u_1;
|
|
2146
2147
|
};
|
|
2147
2148
|
function writer(_this__u8e3s4, coroutineContext, autoFlush, block) {
|
|
2148
2149
|
coroutineContext = coroutineContext === VOID ? EmptyCoroutineContext_getInstance() : coroutineContext;
|
|
@@ -2151,11 +2152,11 @@
|
|
|
2151
2152
|
return writer_0(_this__u8e3s4, coroutineContext, new ByteChannel(), block);
|
|
2152
2153
|
}
|
|
2153
2154
|
function WriterScope(channel, coroutineContext) {
|
|
2154
|
-
this.
|
|
2155
|
-
this.
|
|
2155
|
+
this.d1u_1 = channel;
|
|
2156
|
+
this.e1u_1 = coroutineContext;
|
|
2156
2157
|
}
|
|
2157
2158
|
protoOf(WriterScope).ws = function () {
|
|
2158
|
-
return this.
|
|
2159
|
+
return this.e1u_1;
|
|
2159
2160
|
};
|
|
2160
2161
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
2161
2162
|
_init_properties_ByteWriteChannelOperations_kt__i7slrs();
|
|
@@ -2166,7 +2167,7 @@
|
|
|
2166
2167
|
if (cause == null) {
|
|
2167
2168
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
2168
2169
|
} else {
|
|
2169
|
-
_this__u8e3s4.
|
|
2170
|
+
_this__u8e3s4.l1m(cause);
|
|
2170
2171
|
}
|
|
2171
2172
|
}
|
|
2172
2173
|
function writePacket(_this__u8e3s4, source, $completion) {
|
|
@@ -2189,14 +2190,14 @@
|
|
|
2189
2190
|
return new WriterJob(channel, job);
|
|
2190
2191
|
}
|
|
2191
2192
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
2192
|
-
_this__u8e3s4.
|
|
2193
|
+
_this__u8e3s4.d1m().er(value);
|
|
2193
2194
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
2194
2195
|
}
|
|
2195
2196
|
function NO_CALLBACK$1() {
|
|
2196
|
-
this.
|
|
2197
|
+
this.p1u_1 = EmptyCoroutineContext_getInstance();
|
|
2197
2198
|
}
|
|
2198
2199
|
protoOf(NO_CALLBACK$1).a9 = function () {
|
|
2199
|
-
return this.
|
|
2200
|
+
return this.p1u_1;
|
|
2200
2201
|
};
|
|
2201
2202
|
protoOf(NO_CALLBACK$1).b9 = function (result) {
|
|
2202
2203
|
return Unit_instance;
|
|
@@ -2205,36 +2206,36 @@
|
|
|
2205
2206
|
return this.b9(result);
|
|
2206
2207
|
};
|
|
2207
2208
|
function ByteWriteChannel$flushAndClose$ref(p0) {
|
|
2208
|
-
this.
|
|
2209
|
+
this.q1u_1 = p0;
|
|
2209
2210
|
}
|
|
2210
|
-
protoOf(ByteWriteChannel$flushAndClose$ref).
|
|
2211
|
-
return this.
|
|
2211
|
+
protoOf(ByteWriteChannel$flushAndClose$ref).r1u = function ($completion) {
|
|
2212
|
+
return this.q1u_1.k1m($completion);
|
|
2212
2213
|
};
|
|
2213
2214
|
protoOf(ByteWriteChannel$flushAndClose$ref).la = function ($completion) {
|
|
2214
|
-
return this.
|
|
2215
|
+
return this.r1u($completion);
|
|
2215
2216
|
};
|
|
2216
2217
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
2217
2218
|
var i = new ByteWriteChannel$flushAndClose$ref(p0);
|
|
2218
2219
|
var l = function ($completion) {
|
|
2219
|
-
return i.
|
|
2220
|
+
return i.r1u($completion);
|
|
2220
2221
|
};
|
|
2221
2222
|
l.callableName = 'flushAndClose';
|
|
2222
2223
|
l.$arity = 0;
|
|
2223
2224
|
return l;
|
|
2224
2225
|
}
|
|
2225
2226
|
function writer$slambda($block, $channel, resultContinuation) {
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2227
|
+
this.a1v_1 = $block;
|
|
2228
|
+
this.b1v_1 = $channel;
|
|
2228
2229
|
CoroutineImpl.call(this, resultContinuation);
|
|
2229
2230
|
}
|
|
2230
|
-
protoOf(writer$slambda).
|
|
2231
|
-
var tmp = this.
|
|
2231
|
+
protoOf(writer$slambda).j1v = function ($this$launch, $completion) {
|
|
2232
|
+
var tmp = this.k1v($this$launch, $completion);
|
|
2232
2233
|
tmp.w8_1 = Unit_instance;
|
|
2233
2234
|
tmp.x8_1 = null;
|
|
2234
2235
|
return tmp.c9();
|
|
2235
2236
|
};
|
|
2236
2237
|
protoOf(writer$slambda).o9 = function (p1, $completion) {
|
|
2237
|
-
return this.
|
|
2238
|
+
return this.j1v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2238
2239
|
};
|
|
2239
2240
|
protoOf(writer$slambda).c9 = function () {
|
|
2240
2241
|
var suspendResult = this.w8_1;
|
|
@@ -2244,24 +2245,24 @@
|
|
|
2244
2245
|
switch (tmp) {
|
|
2245
2246
|
case 0:
|
|
2246
2247
|
this.v8_1 = 14;
|
|
2247
|
-
this.
|
|
2248
|
+
this.f1v_1 = Job(get_job(this.c1v_1.ws()));
|
|
2248
2249
|
this.u8_1 = 1;
|
|
2249
2250
|
continue $sm;
|
|
2250
2251
|
case 1:
|
|
2251
2252
|
this.v8_1 = 4;
|
|
2252
2253
|
this.v8_1 = 3;
|
|
2253
2254
|
this.u8_1 = 2;
|
|
2254
|
-
suspendResult = this.
|
|
2255
|
+
suspendResult = this.a1v_1(new WriterScope(this.b1v_1, this.c1v_1.ws().gh(this.f1v_1)), this);
|
|
2255
2256
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2256
2257
|
return suspendResult;
|
|
2257
2258
|
}
|
|
2258
2259
|
|
|
2259
2260
|
continue $sm;
|
|
2260
2261
|
case 2:
|
|
2261
|
-
this.
|
|
2262
|
+
this.f1v_1.g11();
|
|
2262
2263
|
var tmp_0;
|
|
2263
|
-
if (get_job(this.
|
|
2264
|
-
this.
|
|
2264
|
+
if (get_job(this.c1v_1.ws()).st()) {
|
|
2265
|
+
this.b1v_1.l1m(get_job(this.c1v_1.ws()).vt());
|
|
2265
2266
|
tmp_0 = Unit_instance;
|
|
2266
2267
|
}
|
|
2267
2268
|
|
|
@@ -2273,8 +2274,8 @@
|
|
|
2273
2274
|
var tmp_1 = this.x8_1;
|
|
2274
2275
|
if (tmp_1 instanceof Error) {
|
|
2275
2276
|
var cause = this.x8_1;
|
|
2276
|
-
cancel(this.
|
|
2277
|
-
this.
|
|
2277
|
+
cancel(this.f1v_1, 'Exception thrown while writing to channel', cause);
|
|
2278
|
+
this.b1v_1.l1m(cause);
|
|
2278
2279
|
this.v8_1 = 14;
|
|
2279
2280
|
this.u8_1 = 9;
|
|
2280
2281
|
continue $sm;
|
|
@@ -2284,21 +2285,21 @@
|
|
|
2284
2285
|
|
|
2285
2286
|
case 4:
|
|
2286
2287
|
this.v8_1 = 14;
|
|
2287
|
-
this.
|
|
2288
|
+
this.g1v_1 = this.x8_1;
|
|
2288
2289
|
this.u8_1 = 5;
|
|
2289
|
-
suspendResult = this.
|
|
2290
|
+
suspendResult = this.f1v_1.cu(this);
|
|
2290
2291
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2291
2292
|
return suspendResult;
|
|
2292
2293
|
}
|
|
2293
2294
|
|
|
2294
2295
|
continue $sm;
|
|
2295
2296
|
case 5:
|
|
2296
|
-
this.
|
|
2297
|
+
this.c1v_1;
|
|
2297
2298
|
this.v8_1 = 7;
|
|
2298
2299
|
var tmp_2 = this;
|
|
2299
|
-
tmp_2.
|
|
2300
|
+
tmp_2.i1v_1 = Companion_instance;
|
|
2300
2301
|
this.u8_1 = 6;
|
|
2301
|
-
suspendResult = this.
|
|
2302
|
+
suspendResult = this.b1v_1.k1m(this);
|
|
2302
2303
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2303
2304
|
return suspendResult;
|
|
2304
2305
|
}
|
|
@@ -2306,8 +2307,8 @@
|
|
|
2306
2307
|
continue $sm;
|
|
2307
2308
|
case 6:
|
|
2308
2309
|
var tmp_3 = this;
|
|
2309
|
-
this.
|
|
2310
|
-
tmp_3.
|
|
2310
|
+
this.i1v_1;
|
|
2311
|
+
tmp_3.h1v_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2311
2312
|
this.v8_1 = 14;
|
|
2312
2313
|
this.u8_1 = 8;
|
|
2313
2314
|
continue $sm;
|
|
@@ -2317,7 +2318,7 @@
|
|
|
2317
2318
|
if (tmp_4 instanceof Error) {
|
|
2318
2319
|
var e = this.x8_1;
|
|
2319
2320
|
var tmp_5 = this;
|
|
2320
|
-
tmp_5.
|
|
2321
|
+
tmp_5.h1v_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
2321
2322
|
this.u8_1 = 8;
|
|
2322
2323
|
continue $sm;
|
|
2323
2324
|
} else {
|
|
@@ -2326,23 +2327,23 @@
|
|
|
2326
2327
|
|
|
2327
2328
|
case 8:
|
|
2328
2329
|
this.v8_1 = 14;
|
|
2329
|
-
throw this.
|
|
2330
|
+
throw this.g1v_1;
|
|
2330
2331
|
case 9:
|
|
2331
2332
|
this.v8_1 = 14;
|
|
2332
2333
|
this.u8_1 = 10;
|
|
2333
|
-
suspendResult = this.
|
|
2334
|
+
suspendResult = this.f1v_1.cu(this);
|
|
2334
2335
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2335
2336
|
return suspendResult;
|
|
2336
2337
|
}
|
|
2337
2338
|
|
|
2338
2339
|
continue $sm;
|
|
2339
2340
|
case 10:
|
|
2340
|
-
this.
|
|
2341
|
+
this.c1v_1;
|
|
2341
2342
|
this.v8_1 = 12;
|
|
2342
2343
|
var tmp_6 = this;
|
|
2343
|
-
tmp_6.
|
|
2344
|
+
tmp_6.e1v_1 = Companion_instance;
|
|
2344
2345
|
this.u8_1 = 11;
|
|
2345
|
-
suspendResult = this.
|
|
2346
|
+
suspendResult = this.b1v_1.k1m(this);
|
|
2346
2347
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2347
2348
|
return suspendResult;
|
|
2348
2349
|
}
|
|
@@ -2350,8 +2351,8 @@
|
|
|
2350
2351
|
continue $sm;
|
|
2351
2352
|
case 11:
|
|
2352
2353
|
var tmp_7 = this;
|
|
2353
|
-
this.
|
|
2354
|
-
tmp_7.
|
|
2354
|
+
this.e1v_1;
|
|
2355
|
+
tmp_7.d1v_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
2355
2356
|
this.v8_1 = 14;
|
|
2356
2357
|
this.u8_1 = 13;
|
|
2357
2358
|
continue $sm;
|
|
@@ -2361,7 +2362,7 @@
|
|
|
2361
2362
|
if (tmp_8 instanceof Error) {
|
|
2362
2363
|
var e_0 = this.x8_1;
|
|
2363
2364
|
var tmp_9 = this;
|
|
2364
|
-
tmp_9.
|
|
2365
|
+
tmp_9.d1v_1 = _Result___init__impl__xyqfz8(createFailure(e_0));
|
|
2365
2366
|
this.u8_1 = 13;
|
|
2366
2367
|
continue $sm;
|
|
2367
2368
|
} else {
|
|
@@ -2385,15 +2386,15 @@
|
|
|
2385
2386
|
}
|
|
2386
2387
|
while (true);
|
|
2387
2388
|
};
|
|
2388
|
-
protoOf(writer$slambda).
|
|
2389
|
-
var i = new writer$slambda(this.
|
|
2390
|
-
i.
|
|
2389
|
+
protoOf(writer$slambda).k1v = function ($this$launch, completion) {
|
|
2390
|
+
var i = new writer$slambda(this.a1v_1, this.b1v_1, completion);
|
|
2391
|
+
i.c1v_1 = $this$launch;
|
|
2391
2392
|
return i;
|
|
2392
2393
|
};
|
|
2393
2394
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
2394
2395
|
var i = new writer$slambda($block, $channel, resultContinuation);
|
|
2395
2396
|
var l = function ($this$launch, $completion) {
|
|
2396
|
-
return i.
|
|
2397
|
+
return i.j1v($this$launch, $completion);
|
|
2397
2398
|
};
|
|
2398
2399
|
l.$arity = 1;
|
|
2399
2400
|
return l;
|
|
@@ -2401,8 +2402,8 @@
|
|
|
2401
2402
|
function writer$lambda($channel) {
|
|
2402
2403
|
return function (it) {
|
|
2403
2404
|
var tmp;
|
|
2404
|
-
if (!(it == null) && !$channel.
|
|
2405
|
-
$channel.
|
|
2405
|
+
if (!(it == null) && !$channel.e1m()) {
|
|
2406
|
+
$channel.l1m(it);
|
|
2406
2407
|
tmp = Unit_instance;
|
|
2407
2408
|
}
|
|
2408
2409
|
return Unit_instance;
|
|
@@ -2410,8 +2411,8 @@
|
|
|
2410
2411
|
}
|
|
2411
2412
|
function $writePacketCOROUTINE$(_this__u8e3s4, source, resultContinuation) {
|
|
2412
2413
|
CoroutineImpl.call(this, resultContinuation);
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2414
|
+
this.n1u_1 = _this__u8e3s4;
|
|
2415
|
+
this.o1u_1 = source;
|
|
2415
2416
|
}
|
|
2416
2417
|
protoOf($writePacketCOROUTINE$).c9 = function () {
|
|
2417
2418
|
var suspendResult = this.w8_1;
|
|
@@ -2424,14 +2425,14 @@
|
|
|
2424
2425
|
this.u8_1 = 1;
|
|
2425
2426
|
continue $sm;
|
|
2426
2427
|
case 1:
|
|
2427
|
-
if (!!this.
|
|
2428
|
+
if (!!this.o1u_1.lp()) {
|
|
2428
2429
|
this.u8_1 = 3;
|
|
2429
2430
|
continue $sm;
|
|
2430
2431
|
}
|
|
2431
2432
|
|
|
2432
|
-
this.
|
|
2433
|
+
this.n1u_1.d1m().yq(this.o1u_1, get_remaining(this.o1u_1));
|
|
2433
2434
|
this.u8_1 = 2;
|
|
2434
|
-
suspendResult = flushIfNeeded(this.
|
|
2435
|
+
suspendResult = flushIfNeeded(this.n1u_1, this);
|
|
2435
2436
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2436
2437
|
return suspendResult;
|
|
2437
2438
|
}
|
|
@@ -2476,27 +2477,27 @@
|
|
|
2476
2477
|
return l;
|
|
2477
2478
|
}
|
|
2478
2479
|
function CloseToken(origin) {
|
|
2479
|
-
this.
|
|
2480
|
+
this.b1m_1 = origin;
|
|
2480
2481
|
}
|
|
2481
|
-
protoOf(CloseToken).
|
|
2482
|
-
var tmp0_subject = this.
|
|
2482
|
+
protoOf(CloseToken).l1v = function (wrap) {
|
|
2483
|
+
var tmp0_subject = this.b1m_1;
|
|
2483
2484
|
var tmp;
|
|
2484
2485
|
if (tmp0_subject == null) {
|
|
2485
2486
|
tmp = null;
|
|
2486
2487
|
} else {
|
|
2487
2488
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable) : false) {
|
|
2488
|
-
tmp = this.
|
|
2489
|
+
tmp = this.b1m_1.p11();
|
|
2489
2490
|
} else {
|
|
2490
2491
|
if (tmp0_subject instanceof CancellationException) {
|
|
2491
|
-
tmp = CancellationException_init_$Create$(this.
|
|
2492
|
+
tmp = CancellationException_init_$Create$(this.b1m_1.message, this.b1m_1);
|
|
2492
2493
|
} else {
|
|
2493
|
-
tmp = wrap(this.
|
|
2494
|
+
tmp = wrap(this.b1m_1);
|
|
2494
2495
|
}
|
|
2495
2496
|
}
|
|
2496
2497
|
}
|
|
2497
2498
|
return tmp;
|
|
2498
2499
|
};
|
|
2499
|
-
protoOf(CloseToken).
|
|
2500
|
+
protoOf(CloseToken).g1m = function (wrap, $super) {
|
|
2500
2501
|
var tmp;
|
|
2501
2502
|
if (wrap === VOID) {
|
|
2502
2503
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -2504,10 +2505,10 @@
|
|
|
2504
2505
|
tmp = wrap;
|
|
2505
2506
|
}
|
|
2506
2507
|
wrap = tmp;
|
|
2507
|
-
return $super === VOID ? this.
|
|
2508
|
+
return $super === VOID ? this.l1v(wrap) : $super.l1v.call(this, wrap);
|
|
2508
2509
|
};
|
|
2509
|
-
protoOf(CloseToken).
|
|
2510
|
-
var tmp0_safe_receiver = this.
|
|
2510
|
+
protoOf(CloseToken).c1m = function (wrap) {
|
|
2511
|
+
var tmp0_safe_receiver = this.l1v(wrap);
|
|
2511
2512
|
var tmp;
|
|
2512
2513
|
if (tmp0_safe_receiver == null) {
|
|
2513
2514
|
tmp = null;
|
|
@@ -2526,17 +2527,17 @@
|
|
|
2526
2527
|
}
|
|
2527
2528
|
function transferFromDelegate($this) {
|
|
2528
2529
|
updateConsumed($this);
|
|
2529
|
-
var appended = $this.
|
|
2530
|
-
$this.
|
|
2530
|
+
var appended = $this.n1v_1.dr($this.m1v_1.a1m());
|
|
2531
|
+
$this.o1v_1 = add($this.o1v_1, appended);
|
|
2531
2532
|
}
|
|
2532
2533
|
function updateConsumed($this) {
|
|
2533
|
-
$this.
|
|
2534
|
-
$this.
|
|
2534
|
+
$this.p1v_1 = add($this.p1v_1, subtract($this.o1v_1, $this.n1v_1.u()));
|
|
2535
|
+
$this.o1v_1 = $this.n1v_1.u();
|
|
2535
2536
|
}
|
|
2536
2537
|
function $awaitContentCOROUTINE$_0(_this__u8e3s4, min, resultContinuation) {
|
|
2537
2538
|
CoroutineImpl.call(this, resultContinuation);
|
|
2538
|
-
this.
|
|
2539
|
-
this.
|
|
2539
|
+
this.y1v_1 = _this__u8e3s4;
|
|
2540
|
+
this.z1v_1 = min;
|
|
2540
2541
|
}
|
|
2541
2542
|
protoOf($awaitContentCOROUTINE$_0).c9 = function () {
|
|
2542
2543
|
var suspendResult = this.w8_1;
|
|
@@ -2546,12 +2547,12 @@
|
|
|
2546
2547
|
switch (tmp) {
|
|
2547
2548
|
case 0:
|
|
2548
2549
|
this.v8_1 = 3;
|
|
2549
|
-
if (compare(this.
|
|
2550
|
+
if (compare(this.y1v_1.a1m().u(), fromInt(this.z1v_1)) >= 0) {
|
|
2550
2551
|
return true;
|
|
2551
2552
|
}
|
|
2552
2553
|
|
|
2553
2554
|
this.u8_1 = 1;
|
|
2554
|
-
suspendResult = this.
|
|
2555
|
+
suspendResult = this.y1v_1.m1v_1.i1m(this.z1v_1, this);
|
|
2555
2556
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2556
2557
|
return suspendResult;
|
|
2557
2558
|
}
|
|
@@ -2559,7 +2560,7 @@
|
|
|
2559
2560
|
continue $sm;
|
|
2560
2561
|
case 1:
|
|
2561
2562
|
if (suspendResult) {
|
|
2562
|
-
transferFromDelegate(this.
|
|
2563
|
+
transferFromDelegate(this.y1v_1);
|
|
2563
2564
|
return true;
|
|
2564
2565
|
} else {
|
|
2565
2566
|
this.u8_1 = 2;
|
|
@@ -2583,34 +2584,34 @@
|
|
|
2583
2584
|
while (true);
|
|
2584
2585
|
};
|
|
2585
2586
|
function CountedByteReadChannel(delegate) {
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.n1v_1 = new Long(0, 0);
|
|
2587
|
+
this.m1v_1 = delegate;
|
|
2588
|
+
this.n1v_1 = new Buffer();
|
|
2589
2589
|
this.o1v_1 = new Long(0, 0);
|
|
2590
|
+
this.p1v_1 = new Long(0, 0);
|
|
2590
2591
|
}
|
|
2591
|
-
protoOf(CountedByteReadChannel).
|
|
2592
|
+
protoOf(CountedByteReadChannel).a1w = function () {
|
|
2592
2593
|
updateConsumed(this);
|
|
2593
|
-
return this.
|
|
2594
|
+
return this.p1v_1;
|
|
2594
2595
|
};
|
|
2595
|
-
protoOf(CountedByteReadChannel).
|
|
2596
|
-
return this.
|
|
2596
|
+
protoOf(CountedByteReadChannel).f1m = function () {
|
|
2597
|
+
return this.m1v_1.f1m();
|
|
2597
2598
|
};
|
|
2598
|
-
protoOf(CountedByteReadChannel).
|
|
2599
|
-
return this.
|
|
2599
|
+
protoOf(CountedByteReadChannel).h1m = function () {
|
|
2600
|
+
return this.n1v_1.lp() && this.m1v_1.h1m();
|
|
2600
2601
|
};
|
|
2601
|
-
protoOf(CountedByteReadChannel).
|
|
2602
|
+
protoOf(CountedByteReadChannel).a1m = function () {
|
|
2602
2603
|
transferFromDelegate(this);
|
|
2603
|
-
return this.
|
|
2604
|
+
return this.n1v_1;
|
|
2604
2605
|
};
|
|
2605
|
-
protoOf(CountedByteReadChannel).
|
|
2606
|
+
protoOf(CountedByteReadChannel).i1m = function (min, $completion) {
|
|
2606
2607
|
var tmp = new $awaitContentCOROUTINE$_0(this, min, $completion);
|
|
2607
2608
|
tmp.w8_1 = Unit_instance;
|
|
2608
2609
|
tmp.x8_1 = null;
|
|
2609
2610
|
return tmp.c9();
|
|
2610
2611
|
};
|
|
2611
|
-
protoOf(CountedByteReadChannel).
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2612
|
+
protoOf(CountedByteReadChannel).l1m = function (cause) {
|
|
2613
|
+
this.m1v_1.l1m(cause);
|
|
2614
|
+
this.n1v_1.b4();
|
|
2614
2615
|
};
|
|
2615
2616
|
function counted(_this__u8e3s4) {
|
|
2616
2617
|
return new CountedByteReadChannel(_this__u8e3s4);
|
|
@@ -2647,21 +2648,21 @@
|
|
|
2647
2648
|
}
|
|
2648
2649
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
2649
2650
|
var tmp;
|
|
2650
|
-
if ($this === Companion_getInstance_1().
|
|
2651
|
+
if ($this === Companion_getInstance_1().p1r_1) {
|
|
2651
2652
|
tmp = 'CR';
|
|
2652
|
-
} else if ($this === Companion_getInstance_1().p1r_1) {
|
|
2653
|
-
tmp = 'LF';
|
|
2654
2653
|
} else if ($this === Companion_getInstance_1().q1r_1) {
|
|
2654
|
+
tmp = 'LF';
|
|
2655
|
+
} else if ($this === Companion_getInstance_1().r1r_1) {
|
|
2655
2656
|
tmp = 'CRLF';
|
|
2656
2657
|
} else {
|
|
2657
2658
|
// Inline function 'kotlin.collections.filter' call
|
|
2658
|
-
var tmp0 = Companion_getInstance_1().
|
|
2659
|
+
var tmp0 = Companion_getInstance_1().t1r_1;
|
|
2659
2660
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2660
2661
|
var destination = ArrayList_init_$Create$();
|
|
2661
2662
|
var _iterator__ex2g4s = tmp0.r();
|
|
2662
2663
|
while (_iterator__ex2g4s.s()) {
|
|
2663
2664
|
var element = _iterator__ex2g4s.t();
|
|
2664
|
-
var it = element.
|
|
2665
|
+
var it = element.b1w_1;
|
|
2665
2666
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
2666
2667
|
destination.p(element);
|
|
2667
2668
|
}
|
|
@@ -2672,11 +2673,11 @@
|
|
|
2672
2673
|
}
|
|
2673
2674
|
function Companion_1() {
|
|
2674
2675
|
Companion_instance_2 = this;
|
|
2675
|
-
this.
|
|
2676
|
-
this.
|
|
2677
|
-
this.
|
|
2678
|
-
this.
|
|
2679
|
-
this.
|
|
2676
|
+
this.p1r_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
2677
|
+
this.q1r_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
2678
|
+
this.r1r_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
2679
|
+
this.s1r_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
2680
|
+
this.t1r_1 = listOf([new LineEndingMode(this.p1r_1), new LineEndingMode(this.q1r_1), new LineEndingMode(this.r1r_1)]);
|
|
2680
2681
|
}
|
|
2681
2682
|
var Companion_instance_2;
|
|
2682
2683
|
function Companion_getInstance_1() {
|
|
@@ -2690,61 +2691,61 @@
|
|
|
2690
2691
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
2691
2692
|
if (!(other instanceof LineEndingMode))
|
|
2692
2693
|
return false;
|
|
2693
|
-
if (!($this === (other instanceof LineEndingMode ? other.
|
|
2694
|
+
if (!($this === (other instanceof LineEndingMode ? other.b1w_1 : THROW_CCE())))
|
|
2694
2695
|
return false;
|
|
2695
2696
|
return true;
|
|
2696
2697
|
}
|
|
2697
2698
|
function LineEndingMode(mode) {
|
|
2698
2699
|
Companion_getInstance_1();
|
|
2699
|
-
this.
|
|
2700
|
+
this.b1w_1 = mode;
|
|
2700
2701
|
}
|
|
2701
2702
|
protoOf(LineEndingMode).toString = function () {
|
|
2702
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
2703
|
+
return LineEndingMode__toString_impl_j4h76r(this.b1w_1);
|
|
2703
2704
|
};
|
|
2704
2705
|
protoOf(LineEndingMode).hashCode = function () {
|
|
2705
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
2706
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.b1w_1);
|
|
2706
2707
|
};
|
|
2707
2708
|
protoOf(LineEndingMode).equals = function (other) {
|
|
2708
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
2709
|
+
return LineEndingMode__equals_impl_qyr4nk(this.b1w_1, other);
|
|
2709
2710
|
};
|
|
2710
2711
|
function SourceByteReadChannel(source) {
|
|
2711
|
-
this.
|
|
2712
|
-
this.
|
|
2712
|
+
this.c1w_1 = source;
|
|
2713
|
+
this.d1w_1 = null;
|
|
2713
2714
|
}
|
|
2714
|
-
protoOf(SourceByteReadChannel).
|
|
2715
|
-
var tmp0_safe_receiver = this.
|
|
2716
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2715
|
+
protoOf(SourceByteReadChannel).f1m = function () {
|
|
2716
|
+
var tmp0_safe_receiver = this.d1w_1;
|
|
2717
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1m();
|
|
2717
2718
|
};
|
|
2718
|
-
protoOf(SourceByteReadChannel).
|
|
2719
|
-
return this.
|
|
2719
|
+
protoOf(SourceByteReadChannel).h1m = function () {
|
|
2720
|
+
return this.c1w_1.lp();
|
|
2720
2721
|
};
|
|
2721
|
-
protoOf(SourceByteReadChannel).
|
|
2722
|
-
var tmp0_safe_receiver = this.
|
|
2722
|
+
protoOf(SourceByteReadChannel).a1m = function () {
|
|
2723
|
+
var tmp0_safe_receiver = this.f1m();
|
|
2723
2724
|
if (tmp0_safe_receiver == null)
|
|
2724
2725
|
null;
|
|
2725
2726
|
else {
|
|
2726
2727
|
// Inline function 'kotlin.let' call
|
|
2727
2728
|
throw tmp0_safe_receiver;
|
|
2728
2729
|
}
|
|
2729
|
-
return this.
|
|
2730
|
+
return this.c1w_1.kp();
|
|
2730
2731
|
};
|
|
2731
|
-
protoOf(SourceByteReadChannel).
|
|
2732
|
-
var tmp0_safe_receiver = this.
|
|
2732
|
+
protoOf(SourceByteReadChannel).i1m = function (min, $completion) {
|
|
2733
|
+
var tmp0_safe_receiver = this.f1m();
|
|
2733
2734
|
if (tmp0_safe_receiver == null)
|
|
2734
2735
|
null;
|
|
2735
2736
|
else {
|
|
2736
2737
|
// Inline function 'kotlin.let' call
|
|
2737
2738
|
throw tmp0_safe_receiver;
|
|
2738
2739
|
}
|
|
2739
|
-
return this.
|
|
2740
|
+
return this.c1w_1.np(fromInt(min));
|
|
2740
2741
|
};
|
|
2741
|
-
protoOf(SourceByteReadChannel).
|
|
2742
|
-
if (!(this.
|
|
2742
|
+
protoOf(SourceByteReadChannel).l1m = function (cause) {
|
|
2743
|
+
if (!(this.d1w_1 == null))
|
|
2743
2744
|
return Unit_instance;
|
|
2744
|
-
this.
|
|
2745
|
+
this.c1w_1.b4();
|
|
2745
2746
|
var tmp = this;
|
|
2746
2747
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
2747
|
-
tmp.
|
|
2748
|
+
tmp.d1w_1 = new CloseToken(IOException_init_$Create$_0(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
2748
2749
|
};
|
|
2749
2750
|
function decode(_this__u8e3s4, input, max) {
|
|
2750
2751
|
max = max === VOID ? 2147483647 : max;
|
|
@@ -2838,9 +2839,9 @@
|
|
|
2838
2839
|
return result === -1 ? 0 : result;
|
|
2839
2840
|
}
|
|
2840
2841
|
function readText_0(_this__u8e3s4, charset, max) {
|
|
2841
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2842
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
2842
2843
|
max = max === VOID ? 2147483647 : max;
|
|
2843
|
-
if (charset.equals(Charsets_getInstance().
|
|
2844
|
+
if (charset.equals(Charsets_getInstance().e1w_1)) {
|
|
2844
2845
|
if (max === 2147483647)
|
|
2845
2846
|
return readString_0(_this__u8e3s4);
|
|
2846
2847
|
var tmp0 = _this__u8e3s4.kp().u();
|
|
@@ -2849,22 +2850,22 @@
|
|
|
2849
2850
|
var count = compare(tmp0, b) <= 0 ? tmp0 : b;
|
|
2850
2851
|
return readString_1(_this__u8e3s4, count);
|
|
2851
2852
|
}
|
|
2852
|
-
return decode(charset.
|
|
2853
|
+
return decode(charset.h1w(), _this__u8e3s4, max);
|
|
2853
2854
|
}
|
|
2854
2855
|
function toByteArray_0(_this__u8e3s4, charset) {
|
|
2855
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2856
|
-
if (charset.equals(Charsets_getInstance().
|
|
2856
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
2857
|
+
if (charset.equals(Charsets_getInstance().e1w_1))
|
|
2857
2858
|
return encodeToByteArray(_this__u8e3s4, VOID, VOID, true);
|
|
2858
|
-
return encodeToByteArray_0(charset.
|
|
2859
|
+
return encodeToByteArray_0(charset.i1w(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
2859
2860
|
}
|
|
2860
2861
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
2861
2862
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
2862
2863
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
2863
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
2864
|
-
if (charset === Charsets_getInstance().
|
|
2864
|
+
charset = charset === VOID ? Charsets_getInstance().e1w_1 : charset;
|
|
2865
|
+
if (charset === Charsets_getInstance().e1w_1) {
|
|
2865
2866
|
return writeString(_this__u8e3s4, toString_1(text), fromIndex, toIndex);
|
|
2866
2867
|
}
|
|
2867
|
-
encodeToImpl(charset.
|
|
2868
|
+
encodeToImpl(charset.i1w(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
2868
2869
|
}
|
|
2869
2870
|
function get_ByteArrayPool() {
|
|
2870
2871
|
_init_properties_ByteArrayPool_kt__kfi3uj();
|
|
@@ -2874,7 +2875,7 @@
|
|
|
2874
2875
|
function ByteArrayPool$1() {
|
|
2875
2876
|
DefaultPool.call(this, 128);
|
|
2876
2877
|
}
|
|
2877
|
-
protoOf(ByteArrayPool$1).
|
|
2878
|
+
protoOf(ByteArrayPool$1).m1w = function () {
|
|
2878
2879
|
return new Int8Array(4096);
|
|
2879
2880
|
};
|
|
2880
2881
|
var properties_initialized_ByteArrayPool_kt_td6pfh;
|
|
@@ -2888,7 +2889,7 @@
|
|
|
2888
2889
|
}
|
|
2889
2890
|
function NoPoolImpl() {
|
|
2890
2891
|
}
|
|
2891
|
-
protoOf(NoPoolImpl).
|
|
2892
|
+
protoOf(NoPoolImpl).u1w = function (instance) {
|
|
2892
2893
|
return Unit_instance;
|
|
2893
2894
|
};
|
|
2894
2895
|
protoOf(NoPoolImpl).uv = function () {
|
|
@@ -2896,13 +2897,13 @@
|
|
|
2896
2897
|
};
|
|
2897
2898
|
function Companion_2() {
|
|
2898
2899
|
}
|
|
2899
|
-
protoOf(Companion_2).
|
|
2900
|
+
protoOf(Companion_2).v1w = function (name) {
|
|
2900
2901
|
switch (name) {
|
|
2901
2902
|
case 'UTF-8':
|
|
2902
2903
|
case 'utf-8':
|
|
2903
2904
|
case 'UTF8':
|
|
2904
2905
|
case 'utf8':
|
|
2905
|
-
return Charsets_getInstance().
|
|
2906
|
+
return Charsets_getInstance().e1w_1;
|
|
2906
2907
|
}
|
|
2907
2908
|
var tmp;
|
|
2908
2909
|
var tmp_0;
|
|
@@ -2933,11 +2934,11 @@
|
|
|
2933
2934
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
2934
2935
|
}
|
|
2935
2936
|
if (tmp) {
|
|
2936
|
-
return Charsets_getInstance().
|
|
2937
|
+
return Charsets_getInstance().f1w_1;
|
|
2937
2938
|
}
|
|
2938
2939
|
throw IllegalArgumentException_init_$Create$('Charset ' + name + ' is not supported');
|
|
2939
2940
|
};
|
|
2940
|
-
protoOf(Companion_2).
|
|
2941
|
+
protoOf(Companion_2).w1w = function (charset) {
|
|
2941
2942
|
var tmp;
|
|
2942
2943
|
switch (charset) {
|
|
2943
2944
|
case 'UTF-8':
|
|
@@ -2992,7 +2993,7 @@
|
|
|
2992
2993
|
return Companion_instance_3;
|
|
2993
2994
|
}
|
|
2994
2995
|
function Charset(_name) {
|
|
2995
|
-
this.
|
|
2996
|
+
this.g1w_1 = _name;
|
|
2996
2997
|
}
|
|
2997
2998
|
protoOf(Charset).equals = function (other) {
|
|
2998
2999
|
if (this === other)
|
|
@@ -3001,18 +3002,18 @@
|
|
|
3001
3002
|
return false;
|
|
3002
3003
|
if (!(other instanceof Charset))
|
|
3003
3004
|
THROW_CCE();
|
|
3004
|
-
return this.
|
|
3005
|
+
return this.g1w_1 === other.g1w_1;
|
|
3005
3006
|
};
|
|
3006
3007
|
protoOf(Charset).hashCode = function () {
|
|
3007
|
-
return getStringHashCode(this.
|
|
3008
|
+
return getStringHashCode(this.g1w_1);
|
|
3008
3009
|
};
|
|
3009
3010
|
protoOf(Charset).toString = function () {
|
|
3010
|
-
return this.
|
|
3011
|
+
return this.g1w_1;
|
|
3011
3012
|
};
|
|
3012
3013
|
function Charsets() {
|
|
3013
3014
|
Charsets_instance = this;
|
|
3014
|
-
this.
|
|
3015
|
-
this.
|
|
3015
|
+
this.e1w_1 = new CharsetImpl('UTF-8');
|
|
3016
|
+
this.f1w_1 = new CharsetImpl('ISO-8859-1');
|
|
3016
3017
|
}
|
|
3017
3018
|
var Charsets_instance;
|
|
3018
3019
|
function Charsets_getInstance() {
|
|
@@ -3021,23 +3022,23 @@
|
|
|
3021
3022
|
return Charsets_instance;
|
|
3022
3023
|
}
|
|
3023
3024
|
function CharsetDecoder(_charset) {
|
|
3024
|
-
this.
|
|
3025
|
+
this.x1w_1 = _charset;
|
|
3025
3026
|
}
|
|
3026
3027
|
function MalformedInputException(message) {
|
|
3027
3028
|
IOException_init_$Init$_0(message, this);
|
|
3028
3029
|
captureStack(this, MalformedInputException);
|
|
3029
3030
|
}
|
|
3030
3031
|
function get_name(_this__u8e3s4) {
|
|
3031
|
-
return _this__u8e3s4.
|
|
3032
|
+
return _this__u8e3s4.g1w_1;
|
|
3032
3033
|
}
|
|
3033
3034
|
function isSupported(_this__u8e3s4, name) {
|
|
3034
|
-
return Companion_instance_3.
|
|
3035
|
+
return Companion_instance_3.w1w(name);
|
|
3035
3036
|
}
|
|
3036
3037
|
function forName(_this__u8e3s4, name) {
|
|
3037
|
-
return Companion_instance_3.
|
|
3038
|
+
return Companion_instance_3.v1w(name);
|
|
3038
3039
|
}
|
|
3039
3040
|
function CharsetEncoder(_charset) {
|
|
3040
|
-
this.
|
|
3041
|
+
this.y1w_1 = _charset;
|
|
3041
3042
|
}
|
|
3042
3043
|
function decode_0(_this__u8e3s4, input, dst, max) {
|
|
3043
3044
|
var decoder = Decoder(get_name(get_charset(_this__u8e3s4)), true);
|
|
@@ -3049,7 +3050,7 @@
|
|
|
3049
3050
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
3050
3051
|
var tmp_0;
|
|
3051
3052
|
try {
|
|
3052
|
-
tmp_0 = decoder.
|
|
3053
|
+
tmp_0 = decoder.z1w(array);
|
|
3053
3054
|
} catch ($p) {
|
|
3054
3055
|
var tmp_1;
|
|
3055
3056
|
if ($p instanceof Error) {
|
|
@@ -3071,11 +3072,11 @@
|
|
|
3071
3072
|
var message = 'Failed requirement.';
|
|
3072
3073
|
throw IllegalArgumentException_init_$Create$(toString_1(message));
|
|
3073
3074
|
}
|
|
3074
|
-
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().
|
|
3075
|
+
if (get_charset_0(_this__u8e3s4).equals(Charsets_getInstance().f1w_1)) {
|
|
3075
3076
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
3076
3077
|
}
|
|
3077
3078
|
// Inline function 'kotlin.require' call
|
|
3078
|
-
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().
|
|
3079
|
+
if (!(get_charset_0(_this__u8e3s4) === Charsets_getInstance().e1w_1)) {
|
|
3079
3080
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
3080
3081
|
throw IllegalArgumentException_init_$Create$(toString_1(message_0));
|
|
3081
3082
|
}
|
|
@@ -3096,17 +3097,17 @@
|
|
|
3096
3097
|
function CharsetImpl(name) {
|
|
3097
3098
|
Charset.call(this, name);
|
|
3098
3099
|
}
|
|
3099
|
-
protoOf(CharsetImpl).
|
|
3100
|
+
protoOf(CharsetImpl).i1w = function () {
|
|
3100
3101
|
return new CharsetEncoderImpl(this);
|
|
3101
3102
|
};
|
|
3102
|
-
protoOf(CharsetImpl).
|
|
3103
|
+
protoOf(CharsetImpl).h1w = function () {
|
|
3103
3104
|
return new CharsetDecoderImpl(this);
|
|
3104
3105
|
};
|
|
3105
3106
|
function get_charset(_this__u8e3s4) {
|
|
3106
|
-
return _this__u8e3s4.
|
|
3107
|
+
return _this__u8e3s4.x1w_1;
|
|
3107
3108
|
}
|
|
3108
3109
|
function get_charset_0(_this__u8e3s4) {
|
|
3109
|
-
return _this__u8e3s4.
|
|
3110
|
+
return _this__u8e3s4.y1w_1;
|
|
3110
3111
|
}
|
|
3111
3112
|
function encodeToByteArrayImpl(_this__u8e3s4, input, fromIndex, toIndex) {
|
|
3112
3113
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
@@ -3125,13 +3126,13 @@
|
|
|
3125
3126
|
}
|
|
3126
3127
|
function CharsetEncoderImpl(charset) {
|
|
3127
3128
|
CharsetEncoder.call(this, charset);
|
|
3128
|
-
this.
|
|
3129
|
+
this.c1x_1 = charset;
|
|
3129
3130
|
}
|
|
3130
3131
|
protoOf(CharsetEncoderImpl).toString = function () {
|
|
3131
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
3132
|
+
return 'CharsetEncoderImpl(charset=' + this.c1x_1.toString() + ')';
|
|
3132
3133
|
};
|
|
3133
3134
|
protoOf(CharsetEncoderImpl).hashCode = function () {
|
|
3134
|
-
return this.
|
|
3135
|
+
return this.c1x_1.hashCode();
|
|
3135
3136
|
};
|
|
3136
3137
|
protoOf(CharsetEncoderImpl).equals = function (other) {
|
|
3137
3138
|
if (this === other)
|
|
@@ -3139,19 +3140,19 @@
|
|
|
3139
3140
|
if (!(other instanceof CharsetEncoderImpl))
|
|
3140
3141
|
return false;
|
|
3141
3142
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl ? other : THROW_CCE();
|
|
3142
|
-
if (!this.
|
|
3143
|
+
if (!this.c1x_1.equals(tmp0_other_with_cast.c1x_1))
|
|
3143
3144
|
return false;
|
|
3144
3145
|
return true;
|
|
3145
3146
|
};
|
|
3146
3147
|
function CharsetDecoderImpl(charset) {
|
|
3147
3148
|
CharsetDecoder.call(this, charset);
|
|
3148
|
-
this.
|
|
3149
|
+
this.e1x_1 = charset;
|
|
3149
3150
|
}
|
|
3150
3151
|
protoOf(CharsetDecoderImpl).toString = function () {
|
|
3151
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
3152
|
+
return 'CharsetDecoderImpl(charset=' + this.e1x_1.toString() + ')';
|
|
3152
3153
|
};
|
|
3153
3154
|
protoOf(CharsetDecoderImpl).hashCode = function () {
|
|
3154
|
-
return this.
|
|
3155
|
+
return this.e1x_1.hashCode();
|
|
3155
3156
|
};
|
|
3156
3157
|
protoOf(CharsetDecoderImpl).equals = function (other) {
|
|
3157
3158
|
if (this === other)
|
|
@@ -3159,7 +3160,7 @@
|
|
|
3159
3160
|
if (!(other instanceof CharsetDecoderImpl))
|
|
3160
3161
|
return false;
|
|
3161
3162
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl ? other : THROW_CCE();
|
|
3162
|
-
if (!this.
|
|
3163
|
+
if (!this.e1x_1.equals(tmp0_other_with_cast.e1x_1))
|
|
3163
3164
|
return false;
|
|
3164
3165
|
return true;
|
|
3165
3166
|
};
|
|
@@ -3193,10 +3194,10 @@
|
|
|
3193
3194
|
return this_0;
|
|
3194
3195
|
}
|
|
3195
3196
|
function toKtor$1($this_toKtor) {
|
|
3196
|
-
this.
|
|
3197
|
+
this.f1x_1 = $this_toKtor;
|
|
3197
3198
|
}
|
|
3198
|
-
protoOf(toKtor$1).
|
|
3199
|
-
return this.
|
|
3199
|
+
protoOf(toKtor$1).z1w = function (buffer) {
|
|
3200
|
+
return this.f1x_1.decode(buffer);
|
|
3200
3201
|
};
|
|
3201
3202
|
function get_ENCODING_ALIASES() {
|
|
3202
3203
|
_init_properties_TextDecoderFallback_js_kt__an7r6m();
|
|
@@ -3209,7 +3210,7 @@
|
|
|
3209
3210
|
}
|
|
3210
3211
|
var REPLACEMENT;
|
|
3211
3212
|
function TextDecoderFallback(encoding, fatal) {
|
|
3212
|
-
this.
|
|
3213
|
+
this.g1x_1 = fatal;
|
|
3213
3214
|
// Inline function 'kotlin.text.trim' call
|
|
3214
3215
|
// Inline function 'kotlin.text.lowercase' call
|
|
3215
3216
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3220,7 +3221,7 @@
|
|
|
3220
3221
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3221
3222
|
}
|
|
3222
3223
|
}
|
|
3223
|
-
protoOf(TextDecoderFallback).
|
|
3224
|
+
protoOf(TextDecoderFallback).z1w = function (buffer) {
|
|
3224
3225
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
3225
3226
|
var builder = new Buffer();
|
|
3226
3227
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -3236,7 +3237,7 @@
|
|
|
3236
3237
|
var point = toCodePoint(byte);
|
|
3237
3238
|
if (point < 0) {
|
|
3238
3239
|
// Inline function 'kotlin.check' call
|
|
3239
|
-
if (!!this.
|
|
3240
|
+
if (!!this.g1x_1) {
|
|
3240
3241
|
var message = 'Invalid character: ' + point;
|
|
3241
3242
|
throw IllegalStateException_init_$Create$(toString_1(message));
|
|
3242
3243
|
}
|
|
@@ -3275,6 +3276,9 @@
|
|
|
3275
3276
|
function get_DEVELOPMENT_MODE() {
|
|
3276
3277
|
return false;
|
|
3277
3278
|
}
|
|
3279
|
+
function ioDispatcher() {
|
|
3280
|
+
return Dispatchers_getInstance().f15_1;
|
|
3281
|
+
}
|
|
3278
3282
|
function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
3279
3283
|
if (fromIndex >= toIndex)
|
|
3280
3284
|
return 0;
|
|
@@ -3311,64 +3315,64 @@
|
|
|
3311
3315
|
}
|
|
3312
3316
|
}
|
|
3313
3317
|
function DefaultPool(capacity) {
|
|
3314
|
-
this.
|
|
3318
|
+
this.n1w_1 = capacity;
|
|
3315
3319
|
var tmp = this;
|
|
3316
3320
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
3317
|
-
var size = this.
|
|
3318
|
-
tmp.
|
|
3319
|
-
this.
|
|
3321
|
+
var size = this.n1w_1;
|
|
3322
|
+
tmp.o1w_1 = Array(size);
|
|
3323
|
+
this.p1w_1 = 0;
|
|
3320
3324
|
}
|
|
3321
|
-
protoOf(DefaultPool).p1w = function (instance) {
|
|
3322
|
-
};
|
|
3323
3325
|
protoOf(DefaultPool).q1w = function (instance) {
|
|
3324
|
-
return instance;
|
|
3325
3326
|
};
|
|
3326
3327
|
protoOf(DefaultPool).r1w = function (instance) {
|
|
3328
|
+
return instance;
|
|
3329
|
+
};
|
|
3330
|
+
protoOf(DefaultPool).s1w = function (instance) {
|
|
3327
3331
|
};
|
|
3328
|
-
protoOf(DefaultPool).
|
|
3329
|
-
if (this.
|
|
3330
|
-
return this.
|
|
3331
|
-
this.
|
|
3332
|
-
var idx = this.
|
|
3333
|
-
var tmp = this.
|
|
3332
|
+
protoOf(DefaultPool).t1w = function () {
|
|
3333
|
+
if (this.p1w_1 === 0)
|
|
3334
|
+
return this.m1w();
|
|
3335
|
+
this.p1w_1 = this.p1w_1 - 1 | 0;
|
|
3336
|
+
var idx = this.p1w_1;
|
|
3337
|
+
var tmp = this.o1w_1[idx];
|
|
3334
3338
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3335
|
-
this.
|
|
3336
|
-
return this.
|
|
3339
|
+
this.o1w_1[idx] = null;
|
|
3340
|
+
return this.r1w(instance);
|
|
3337
3341
|
};
|
|
3338
|
-
protoOf(DefaultPool).
|
|
3339
|
-
this.
|
|
3340
|
-
if (this.
|
|
3341
|
-
this.
|
|
3342
|
+
protoOf(DefaultPool).u1w = function (instance) {
|
|
3343
|
+
this.s1w(instance);
|
|
3344
|
+
if (this.p1w_1 === this.n1w_1) {
|
|
3345
|
+
this.q1w(instance);
|
|
3342
3346
|
} else {
|
|
3343
|
-
var _unary__edvuaz = this.
|
|
3344
|
-
this.
|
|
3345
|
-
this.
|
|
3347
|
+
var _unary__edvuaz = this.p1w_1;
|
|
3348
|
+
this.p1w_1 = _unary__edvuaz + 1 | 0;
|
|
3349
|
+
this.o1w_1[_unary__edvuaz] = instance;
|
|
3346
3350
|
}
|
|
3347
3351
|
};
|
|
3348
3352
|
protoOf(DefaultPool).uv = function () {
|
|
3349
3353
|
var inductionVariable = 0;
|
|
3350
|
-
var last = this.
|
|
3354
|
+
var last = this.p1w_1;
|
|
3351
3355
|
if (inductionVariable < last)
|
|
3352
3356
|
do {
|
|
3353
3357
|
var i = inductionVariable;
|
|
3354
3358
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3355
|
-
var tmp = this.
|
|
3359
|
+
var tmp = this.o1w_1[i];
|
|
3356
3360
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
3357
|
-
this.
|
|
3358
|
-
this.
|
|
3361
|
+
this.o1w_1[i] = null;
|
|
3362
|
+
this.q1w(instance);
|
|
3359
3363
|
}
|
|
3360
3364
|
while (inductionVariable < last);
|
|
3361
|
-
this.
|
|
3365
|
+
this.p1w_1 = 0;
|
|
3362
3366
|
};
|
|
3363
3367
|
//region block: post-declaration
|
|
3364
3368
|
protoOf(Read).d1k = resume;
|
|
3365
3369
|
protoOf(Read).e1k = resume_0;
|
|
3366
3370
|
protoOf(Write).d1k = resume;
|
|
3367
3371
|
protoOf(Write).e1k = resume_0;
|
|
3368
|
-
protoOf(ByteChannel).
|
|
3369
|
-
protoOf(ByteReadChannel$Companion$Empty$1).
|
|
3370
|
-
protoOf(CountedByteReadChannel).
|
|
3371
|
-
protoOf(SourceByteReadChannel).
|
|
3372
|
+
protoOf(ByteChannel).j1m = awaitContent$default;
|
|
3373
|
+
protoOf(ByteReadChannel$Companion$Empty$1).j1m = awaitContent$default;
|
|
3374
|
+
protoOf(CountedByteReadChannel).j1m = awaitContent$default;
|
|
3375
|
+
protoOf(SourceByteReadChannel).j1m = awaitContent$default;
|
|
3372
3376
|
protoOf(DefaultPool).b4 = close;
|
|
3373
3377
|
protoOf(NoPoolImpl).b4 = close;
|
|
3374
3378
|
//endregion
|
|
@@ -3421,8 +3425,9 @@
|
|
|
3421
3425
|
_.$_$.o1 = close_0;
|
|
3422
3426
|
_.$_$.p1 = counted;
|
|
3423
3427
|
_.$_$.q1 = invokeOnCompletion;
|
|
3424
|
-
_.$_$.r1 =
|
|
3425
|
-
_.$_$.s1 =
|
|
3428
|
+
_.$_$.r1 = ioDispatcher;
|
|
3429
|
+
_.$_$.s1 = readText;
|
|
3430
|
+
_.$_$.t1 = writer;
|
|
3426
3431
|
//endregion
|
|
3427
3432
|
return _;
|
|
3428
3433
|
}(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')));
|