@solibo/home-api 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.js +11 -11
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +580 -596
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-websockets.js +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.ts +18 -0
- package/solibo-sdk-sdk-home-api.js +11578 -11261
- package/solibo-sdk-sdk-home-api.js.map +1 -1
|
@@ -29,8 +29,6 @@
|
|
|
29
29
|
var charSequenceGet = kotlin_kotlin.$_$.ia;
|
|
30
30
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
31
31
|
var equals = kotlin_kotlin.$_$.na;
|
|
32
|
-
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
33
|
-
var getStringHashCode = kotlin_kotlin.$_$.ua;
|
|
34
32
|
var toString_0 = kotlin_kotlin.$_$.ug;
|
|
35
33
|
var Enum = kotlin_kotlin.$_$.jf;
|
|
36
34
|
var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
|
|
@@ -40,11 +38,13 @@
|
|
|
40
38
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
41
39
|
var hashCode = kotlin_kotlin.$_$.va;
|
|
42
40
|
var joinToString = kotlin_kotlin.$_$.y6;
|
|
41
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
43
42
|
var KtMap = kotlin_kotlin.$_$.i5;
|
|
44
43
|
var KtList = kotlin_kotlin.$_$.f5;
|
|
45
44
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
|
|
46
45
|
var getKClassFromExpression = kotlin_kotlin.$_$.kc;
|
|
47
46
|
var getBooleanHashCode = kotlin_kotlin.$_$.qa;
|
|
47
|
+
var getStringHashCode = kotlin_kotlin.$_$.ua;
|
|
48
48
|
var toDouble = kotlin_kotlin.$_$.he;
|
|
49
49
|
var StringCompanionObject_instance = kotlin_kotlin.$_$.l4;
|
|
50
50
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
@@ -374,23 +374,8 @@
|
|
|
374
374
|
Json.call(this, configuration, module_0);
|
|
375
375
|
validateConfiguration(this);
|
|
376
376
|
}
|
|
377
|
-
function JsonClassDiscriminator(
|
|
378
|
-
this.p4o_1 = discriminator;
|
|
377
|
+
function JsonClassDiscriminator() {
|
|
379
378
|
}
|
|
380
|
-
protoOf(JsonClassDiscriminator).equals = function (other) {
|
|
381
|
-
if (!(other instanceof JsonClassDiscriminator))
|
|
382
|
-
return false;
|
|
383
|
-
var tmp0_other_with_cast = other instanceof JsonClassDiscriminator ? other : THROW_CCE();
|
|
384
|
-
if (!(this.p4o_1 === tmp0_other_with_cast.p4o_1))
|
|
385
|
-
return false;
|
|
386
|
-
return true;
|
|
387
|
-
};
|
|
388
|
-
protoOf(JsonClassDiscriminator).hashCode = function () {
|
|
389
|
-
return imul(getStringHashCode('discriminator'), 127) ^ getStringHashCode(this.p4o_1);
|
|
390
|
-
};
|
|
391
|
-
protoOf(JsonClassDiscriminator).toString = function () {
|
|
392
|
-
return '@kotlinx.serialization.json.JsonClassDiscriminator(' + 'discriminator=' + this.p4o_1 + ')';
|
|
393
|
-
};
|
|
394
379
|
function JsonIgnoreUnknownKeys() {
|
|
395
380
|
}
|
|
396
381
|
function JsonNames() {
|
|
@@ -505,39 +490,39 @@
|
|
|
505
490
|
}
|
|
506
491
|
function JsonObject(content) {
|
|
507
492
|
JsonElement.call(this);
|
|
508
|
-
this.
|
|
493
|
+
this.r4o_1 = content;
|
|
509
494
|
}
|
|
510
495
|
protoOf(JsonObject).equals = function (other) {
|
|
511
|
-
return equals(this.
|
|
496
|
+
return equals(this.r4o_1, other);
|
|
512
497
|
};
|
|
513
498
|
protoOf(JsonObject).hashCode = function () {
|
|
514
|
-
return hashCode(this.
|
|
499
|
+
return hashCode(this.r4o_1);
|
|
515
500
|
};
|
|
516
501
|
protoOf(JsonObject).toString = function () {
|
|
517
|
-
var tmp = this.
|
|
502
|
+
var tmp = this.r4o_1.k1();
|
|
518
503
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
519
504
|
};
|
|
520
505
|
protoOf(JsonObject).r = function () {
|
|
521
|
-
return this.
|
|
506
|
+
return this.r4o_1.r();
|
|
522
507
|
};
|
|
523
508
|
protoOf(JsonObject).v2b = function (key) {
|
|
524
|
-
return this.
|
|
509
|
+
return this.r4o_1.w2(key);
|
|
525
510
|
};
|
|
526
511
|
protoOf(JsonObject).w2 = function (key) {
|
|
527
512
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
528
513
|
return false;
|
|
529
514
|
return this.v2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
530
515
|
};
|
|
531
|
-
protoOf(JsonObject).
|
|
532
|
-
return this.
|
|
516
|
+
protoOf(JsonObject).s4o = function (value) {
|
|
517
|
+
return this.r4o_1.x2(value);
|
|
533
518
|
};
|
|
534
519
|
protoOf(JsonObject).x2 = function (value) {
|
|
535
520
|
if (!(value instanceof JsonElement))
|
|
536
521
|
return false;
|
|
537
|
-
return this.
|
|
522
|
+
return this.s4o(value instanceof JsonElement ? value : THROW_CCE());
|
|
538
523
|
};
|
|
539
524
|
protoOf(JsonObject).x2b = function (key) {
|
|
540
|
-
return this.
|
|
525
|
+
return this.r4o_1.y2(key);
|
|
541
526
|
};
|
|
542
527
|
protoOf(JsonObject).y2 = function (key) {
|
|
543
528
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
@@ -545,19 +530,19 @@
|
|
|
545
530
|
return this.x2b((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
546
531
|
};
|
|
547
532
|
protoOf(JsonObject).asJsReadonlyMapView = function () {
|
|
548
|
-
return this.
|
|
533
|
+
return this.r4o_1.asJsReadonlyMapView();
|
|
549
534
|
};
|
|
550
535
|
protoOf(JsonObject).g1 = function () {
|
|
551
|
-
return this.
|
|
536
|
+
return this.r4o_1.g1();
|
|
552
537
|
};
|
|
553
538
|
protoOf(JsonObject).u2 = function () {
|
|
554
|
-
return this.
|
|
539
|
+
return this.r4o_1.u2();
|
|
555
540
|
};
|
|
556
541
|
protoOf(JsonObject).v2 = function () {
|
|
557
|
-
return this.
|
|
542
|
+
return this.r4o_1.v2();
|
|
558
543
|
};
|
|
559
544
|
protoOf(JsonObject).k1 = function () {
|
|
560
|
-
return this.
|
|
545
|
+
return this.r4o_1.k1();
|
|
561
546
|
};
|
|
562
547
|
function Companion_2() {
|
|
563
548
|
}
|
|
@@ -567,84 +552,84 @@
|
|
|
567
552
|
}
|
|
568
553
|
function JsonArray(content) {
|
|
569
554
|
JsonElement.call(this);
|
|
570
|
-
this.
|
|
555
|
+
this.t4o_1 = content;
|
|
571
556
|
}
|
|
572
557
|
protoOf(JsonArray).equals = function (other) {
|
|
573
|
-
return equals(this.
|
|
558
|
+
return equals(this.t4o_1, other);
|
|
574
559
|
};
|
|
575
560
|
protoOf(JsonArray).hashCode = function () {
|
|
576
|
-
return hashCode(this.
|
|
561
|
+
return hashCode(this.t4o_1);
|
|
577
562
|
};
|
|
578
563
|
protoOf(JsonArray).toString = function () {
|
|
579
|
-
return joinToString(this.
|
|
564
|
+
return joinToString(this.t4o_1, ',', '[', ']');
|
|
580
565
|
};
|
|
581
566
|
protoOf(JsonArray).r = function () {
|
|
582
|
-
return this.
|
|
567
|
+
return this.t4o_1.r();
|
|
583
568
|
};
|
|
584
|
-
protoOf(JsonArray).
|
|
585
|
-
return this.
|
|
569
|
+
protoOf(JsonArray).u4o = function (element) {
|
|
570
|
+
return this.t4o_1.h2(element);
|
|
586
571
|
};
|
|
587
572
|
protoOf(JsonArray).h2 = function (element) {
|
|
588
573
|
if (!(element instanceof JsonElement))
|
|
589
574
|
return false;
|
|
590
|
-
return this.
|
|
575
|
+
return this.u4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
591
576
|
};
|
|
592
577
|
protoOf(JsonArray).t = function () {
|
|
593
|
-
return this.
|
|
578
|
+
return this.t4o_1.t();
|
|
594
579
|
};
|
|
595
|
-
protoOf(JsonArray).
|
|
596
|
-
return this.
|
|
580
|
+
protoOf(JsonArray).v4o = function (elements) {
|
|
581
|
+
return this.t4o_1.i2(elements);
|
|
597
582
|
};
|
|
598
583
|
protoOf(JsonArray).i2 = function (elements) {
|
|
599
|
-
return this.
|
|
584
|
+
return this.v4o(elements);
|
|
600
585
|
};
|
|
601
586
|
protoOf(JsonArray).h1 = function (index) {
|
|
602
|
-
return this.
|
|
587
|
+
return this.t4o_1.h1(index);
|
|
603
588
|
};
|
|
604
|
-
protoOf(JsonArray).
|
|
605
|
-
return this.
|
|
589
|
+
protoOf(JsonArray).w4o = function (element) {
|
|
590
|
+
return this.t4o_1.j2(element);
|
|
606
591
|
};
|
|
607
592
|
protoOf(JsonArray).j2 = function (element) {
|
|
608
593
|
if (!(element instanceof JsonElement))
|
|
609
594
|
return -1;
|
|
610
|
-
return this.
|
|
595
|
+
return this.w4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
611
596
|
};
|
|
612
|
-
protoOf(JsonArray).
|
|
613
|
-
return this.
|
|
597
|
+
protoOf(JsonArray).x4o = function (element) {
|
|
598
|
+
return this.t4o_1.k2(element);
|
|
614
599
|
};
|
|
615
600
|
protoOf(JsonArray).k2 = function (element) {
|
|
616
601
|
if (!(element instanceof JsonElement))
|
|
617
602
|
return -1;
|
|
618
|
-
return this.
|
|
603
|
+
return this.x4o(element instanceof JsonElement ? element : THROW_CCE());
|
|
619
604
|
};
|
|
620
605
|
protoOf(JsonArray).l2 = function () {
|
|
621
|
-
return this.
|
|
606
|
+
return this.t4o_1.l2();
|
|
622
607
|
};
|
|
623
608
|
protoOf(JsonArray).i1 = function (index) {
|
|
624
|
-
return this.
|
|
609
|
+
return this.t4o_1.i1(index);
|
|
625
610
|
};
|
|
626
611
|
protoOf(JsonArray).m2 = function (fromIndex, toIndex) {
|
|
627
|
-
return this.
|
|
612
|
+
return this.t4o_1.m2(fromIndex, toIndex);
|
|
628
613
|
};
|
|
629
614
|
protoOf(JsonArray).asJsReadonlyArrayView = function () {
|
|
630
|
-
return this.
|
|
615
|
+
return this.t4o_1.asJsReadonlyArrayView();
|
|
631
616
|
};
|
|
632
617
|
protoOf(JsonArray).g1 = function () {
|
|
633
|
-
return this.
|
|
618
|
+
return this.t4o_1.g1();
|
|
634
619
|
};
|
|
635
620
|
function JsonNull() {
|
|
636
621
|
JsonNull_instance = this;
|
|
637
622
|
JsonPrimitive.call(this);
|
|
638
|
-
this.
|
|
623
|
+
this.y4o_1 = 'null';
|
|
639
624
|
}
|
|
640
625
|
protoOf(JsonNull).c3f = function () {
|
|
641
|
-
return this.
|
|
626
|
+
return this.y4o_1;
|
|
642
627
|
};
|
|
643
|
-
protoOf(JsonNull).
|
|
628
|
+
protoOf(JsonNull).z4o = function () {
|
|
644
629
|
return JsonNullSerializer_getInstance();
|
|
645
630
|
};
|
|
646
631
|
protoOf(JsonNull).x22 = function (typeParamsSerializers) {
|
|
647
|
-
return this.
|
|
632
|
+
return this.z4o();
|
|
648
633
|
};
|
|
649
634
|
var JsonNull_instance;
|
|
650
635
|
function JsonNull_getInstance() {
|
|
@@ -655,31 +640,31 @@
|
|
|
655
640
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
656
641
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
657
642
|
JsonPrimitive.call(this);
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
if (!(this.
|
|
643
|
+
this.a4p_1 = isString;
|
|
644
|
+
this.b4p_1 = coerceToInlineType;
|
|
645
|
+
this.c4p_1 = toString(body);
|
|
646
|
+
if (!(this.b4p_1 == null)) {
|
|
662
647
|
// Inline function 'kotlin.require' call
|
|
663
648
|
// Inline function 'kotlin.require' call
|
|
664
|
-
if (!this.
|
|
649
|
+
if (!this.b4p_1.n1s()) {
|
|
665
650
|
var message = 'Failed requirement.';
|
|
666
651
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
667
652
|
}
|
|
668
653
|
}
|
|
669
654
|
}
|
|
670
655
|
protoOf(JsonLiteral).c3f = function () {
|
|
671
|
-
return this.
|
|
656
|
+
return this.c4p_1;
|
|
672
657
|
};
|
|
673
658
|
protoOf(JsonLiteral).toString = function () {
|
|
674
659
|
var tmp;
|
|
675
|
-
if (this.
|
|
660
|
+
if (this.a4p_1) {
|
|
676
661
|
// Inline function 'kotlin.text.buildString' call
|
|
677
662
|
// Inline function 'kotlin.apply' call
|
|
678
663
|
var this_0 = StringBuilder_init_$Create$();
|
|
679
|
-
printQuoted(this_0, this.
|
|
664
|
+
printQuoted(this_0, this.c4p_1);
|
|
680
665
|
tmp = this_0.toString();
|
|
681
666
|
} else {
|
|
682
|
-
tmp = this.
|
|
667
|
+
tmp = this.c4p_1;
|
|
683
668
|
}
|
|
684
669
|
return tmp;
|
|
685
670
|
};
|
|
@@ -690,15 +675,15 @@
|
|
|
690
675
|
return false;
|
|
691
676
|
if (!(other instanceof JsonLiteral))
|
|
692
677
|
THROW_CCE();
|
|
693
|
-
if (!(this.
|
|
678
|
+
if (!(this.a4p_1 === other.a4p_1))
|
|
694
679
|
return false;
|
|
695
|
-
if (!(this.
|
|
680
|
+
if (!(this.c4p_1 === other.c4p_1))
|
|
696
681
|
return false;
|
|
697
682
|
return true;
|
|
698
683
|
};
|
|
699
684
|
protoOf(JsonLiteral).hashCode = function () {
|
|
700
|
-
var result = getBooleanHashCode(this.
|
|
701
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
685
|
+
var result = getBooleanHashCode(this.a4p_1);
|
|
686
|
+
result = imul(31, result) + getStringHashCode(this.c4p_1) | 0;
|
|
702
687
|
return result;
|
|
703
688
|
};
|
|
704
689
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
@@ -707,7 +692,7 @@
|
|
|
707
692
|
}
|
|
708
693
|
function parseLongImpl(_this__u8e3s4) {
|
|
709
694
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
710
|
-
return (new StringJsonLexer(_this__u8e3s4.c3f())).
|
|
695
|
+
return (new StringJsonLexer(_this__u8e3s4.c3f())).d4p();
|
|
711
696
|
}
|
|
712
697
|
function get_float(_this__u8e3s4) {
|
|
713
698
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -768,30 +753,30 @@
|
|
|
768
753
|
return Unit_instance;
|
|
769
754
|
}
|
|
770
755
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
771
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
756
|
+
return JsonPrimitiveSerializer_getInstance().e4p_1;
|
|
772
757
|
}
|
|
773
758
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
774
|
-
return JsonNullSerializer_getInstance().
|
|
759
|
+
return JsonNullSerializer_getInstance().f4p_1;
|
|
775
760
|
}
|
|
776
761
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
777
|
-
return JsonLiteralSerializer_getInstance().
|
|
762
|
+
return JsonLiteralSerializer_getInstance().g4p_1;
|
|
778
763
|
}
|
|
779
764
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
780
|
-
return JsonObjectSerializer_getInstance().
|
|
765
|
+
return JsonObjectSerializer_getInstance().h4p_1;
|
|
781
766
|
}
|
|
782
767
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
783
|
-
return JsonArraySerializer_getInstance().
|
|
768
|
+
return JsonArraySerializer_getInstance().i4p_1;
|
|
784
769
|
}
|
|
785
770
|
function JsonElementSerializer() {
|
|
786
771
|
JsonElementSerializer_instance = this;
|
|
787
772
|
var tmp = this;
|
|
788
773
|
var tmp_0 = SEALED_getInstance();
|
|
789
|
-
tmp.
|
|
774
|
+
tmp.j4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
790
775
|
}
|
|
791
776
|
protoOf(JsonElementSerializer).r1q = function () {
|
|
792
|
-
return this.
|
|
777
|
+
return this.j4p_1;
|
|
793
778
|
};
|
|
794
|
-
protoOf(JsonElementSerializer).
|
|
779
|
+
protoOf(JsonElementSerializer).k4p = function (encoder, value) {
|
|
795
780
|
verify(encoder);
|
|
796
781
|
if (value instanceof JsonPrimitive) {
|
|
797
782
|
encoder.x1v(JsonPrimitiveSerializer_getInstance(), value);
|
|
@@ -808,11 +793,11 @@
|
|
|
808
793
|
}
|
|
809
794
|
};
|
|
810
795
|
protoOf(JsonElementSerializer).s1q = function (encoder, value) {
|
|
811
|
-
return this.
|
|
796
|
+
return this.k4p(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
812
797
|
};
|
|
813
798
|
protoOf(JsonElementSerializer).t1q = function (decoder) {
|
|
814
799
|
var input = asJsonDecoder(decoder);
|
|
815
|
-
return input.
|
|
800
|
+
return input.q4o();
|
|
816
801
|
};
|
|
817
802
|
var JsonElementSerializer_instance;
|
|
818
803
|
function JsonElementSerializer_getInstance() {
|
|
@@ -825,12 +810,12 @@
|
|
|
825
810
|
}
|
|
826
811
|
function JsonPrimitiveSerializer() {
|
|
827
812
|
JsonPrimitiveSerializer_instance = this;
|
|
828
|
-
this.
|
|
813
|
+
this.e4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
829
814
|
}
|
|
830
815
|
protoOf(JsonPrimitiveSerializer).r1q = function () {
|
|
831
|
-
return this.
|
|
816
|
+
return this.e4p_1;
|
|
832
817
|
};
|
|
833
|
-
protoOf(JsonPrimitiveSerializer).
|
|
818
|
+
protoOf(JsonPrimitiveSerializer).l4p = function (encoder, value) {
|
|
834
819
|
verify(encoder);
|
|
835
820
|
var tmp;
|
|
836
821
|
if (value instanceof JsonNull) {
|
|
@@ -844,10 +829,10 @@
|
|
|
844
829
|
return tmp;
|
|
845
830
|
};
|
|
846
831
|
protoOf(JsonPrimitiveSerializer).s1q = function (encoder, value) {
|
|
847
|
-
return this.
|
|
832
|
+
return this.l4p(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
848
833
|
};
|
|
849
834
|
protoOf(JsonPrimitiveSerializer).t1q = function (decoder) {
|
|
850
|
-
var result = asJsonDecoder(decoder).
|
|
835
|
+
var result = asJsonDecoder(decoder).q4o();
|
|
851
836
|
if (!(result instanceof JsonPrimitive))
|
|
852
837
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
853
838
|
return result;
|
|
@@ -860,17 +845,17 @@
|
|
|
860
845
|
}
|
|
861
846
|
function JsonNullSerializer() {
|
|
862
847
|
JsonNullSerializer_instance = this;
|
|
863
|
-
this.
|
|
848
|
+
this.f4p_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
864
849
|
}
|
|
865
850
|
protoOf(JsonNullSerializer).r1q = function () {
|
|
866
|
-
return this.
|
|
851
|
+
return this.f4p_1;
|
|
867
852
|
};
|
|
868
|
-
protoOf(JsonNullSerializer).
|
|
853
|
+
protoOf(JsonNullSerializer).m4p = function (encoder, value) {
|
|
869
854
|
verify(encoder);
|
|
870
855
|
encoder.a1v();
|
|
871
856
|
};
|
|
872
857
|
protoOf(JsonNullSerializer).s1q = function (encoder, value) {
|
|
873
|
-
return this.
|
|
858
|
+
return this.m4p(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
874
859
|
};
|
|
875
860
|
protoOf(JsonNullSerializer).t1q = function (decoder) {
|
|
876
861
|
verify_0(decoder);
|
|
@@ -888,27 +873,27 @@
|
|
|
888
873
|
}
|
|
889
874
|
function JsonLiteralSerializer() {
|
|
890
875
|
JsonLiteralSerializer_instance = this;
|
|
891
|
-
this.
|
|
876
|
+
this.g4p_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
892
877
|
}
|
|
893
878
|
protoOf(JsonLiteralSerializer).r1q = function () {
|
|
894
|
-
return this.
|
|
879
|
+
return this.g4p_1;
|
|
895
880
|
};
|
|
896
|
-
protoOf(JsonLiteralSerializer).
|
|
881
|
+
protoOf(JsonLiteralSerializer).n4p = function (encoder, value) {
|
|
897
882
|
verify(encoder);
|
|
898
|
-
if (value.
|
|
899
|
-
return encoder.j1v(value.
|
|
883
|
+
if (value.a4p_1) {
|
|
884
|
+
return encoder.j1v(value.c4p_1);
|
|
900
885
|
}
|
|
901
|
-
if (!(value.
|
|
902
|
-
return encoder.l1v(value.
|
|
886
|
+
if (!(value.b4p_1 == null)) {
|
|
887
|
+
return encoder.l1v(value.b4p_1).j1v(value.c4p_1);
|
|
903
888
|
}
|
|
904
|
-
var tmp0_safe_receiver = toLongOrNull(value.
|
|
889
|
+
var tmp0_safe_receiver = toLongOrNull(value.c4p_1);
|
|
905
890
|
if (tmp0_safe_receiver == null)
|
|
906
891
|
null;
|
|
907
892
|
else {
|
|
908
893
|
// Inline function 'kotlin.let' call
|
|
909
894
|
return encoder.f1v(tmp0_safe_receiver);
|
|
910
895
|
}
|
|
911
|
-
var tmp1_safe_receiver = toULongOrNull(value.
|
|
896
|
+
var tmp1_safe_receiver = toULongOrNull(value.c4p_1);
|
|
912
897
|
var tmp = tmp1_safe_receiver;
|
|
913
898
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
914
899
|
null;
|
|
@@ -922,27 +907,27 @@
|
|
|
922
907
|
tmp_1.f1v(tmp$ret$1);
|
|
923
908
|
return Unit_instance;
|
|
924
909
|
}
|
|
925
|
-
var tmp2_safe_receiver = toDoubleOrNull(value.
|
|
910
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.c4p_1);
|
|
926
911
|
if (tmp2_safe_receiver == null)
|
|
927
912
|
null;
|
|
928
913
|
else {
|
|
929
914
|
// Inline function 'kotlin.let' call
|
|
930
915
|
return encoder.h1v(tmp2_safe_receiver);
|
|
931
916
|
}
|
|
932
|
-
var tmp3_safe_receiver = toBooleanStrictOrNull(value.
|
|
917
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull(value.c4p_1);
|
|
933
918
|
if (tmp3_safe_receiver == null)
|
|
934
919
|
null;
|
|
935
920
|
else {
|
|
936
921
|
// Inline function 'kotlin.let' call
|
|
937
922
|
return encoder.b1v(tmp3_safe_receiver);
|
|
938
923
|
}
|
|
939
|
-
encoder.j1v(value.
|
|
924
|
+
encoder.j1v(value.c4p_1);
|
|
940
925
|
};
|
|
941
926
|
protoOf(JsonLiteralSerializer).s1q = function (encoder, value) {
|
|
942
|
-
return this.
|
|
927
|
+
return this.n4p(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
943
928
|
};
|
|
944
929
|
protoOf(JsonLiteralSerializer).t1q = function (decoder) {
|
|
945
|
-
var result = asJsonDecoder(decoder).
|
|
930
|
+
var result = asJsonDecoder(decoder).q4o();
|
|
946
931
|
if (!(result instanceof JsonLiteral))
|
|
947
932
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
948
933
|
return result;
|
|
@@ -955,41 +940,41 @@
|
|
|
955
940
|
}
|
|
956
941
|
function JsonObjectDescriptor() {
|
|
957
942
|
JsonObjectDescriptor_instance = this;
|
|
958
|
-
this.
|
|
959
|
-
this.
|
|
943
|
+
this.o4p_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).r1q();
|
|
944
|
+
this.p4p_1 = 'kotlinx.serialization.json.JsonObject';
|
|
960
945
|
}
|
|
961
946
|
protoOf(JsonObjectDescriptor).s1r = function () {
|
|
962
|
-
return this.
|
|
947
|
+
return this.p4p_1;
|
|
963
948
|
};
|
|
964
949
|
protoOf(JsonObjectDescriptor).q1s = function (index) {
|
|
965
|
-
return this.
|
|
950
|
+
return this.o4p_1.q1s(index);
|
|
966
951
|
};
|
|
967
952
|
protoOf(JsonObjectDescriptor).r1s = function (name) {
|
|
968
|
-
return this.
|
|
953
|
+
return this.o4p_1.r1s(name);
|
|
969
954
|
};
|
|
970
955
|
protoOf(JsonObjectDescriptor).s1s = function (index) {
|
|
971
|
-
return this.
|
|
956
|
+
return this.o4p_1.s1s(index);
|
|
972
957
|
};
|
|
973
958
|
protoOf(JsonObjectDescriptor).t1s = function (index) {
|
|
974
|
-
return this.
|
|
959
|
+
return this.o4p_1.t1s(index);
|
|
975
960
|
};
|
|
976
961
|
protoOf(JsonObjectDescriptor).u1s = function (index) {
|
|
977
|
-
return this.
|
|
962
|
+
return this.o4p_1.u1s(index);
|
|
978
963
|
};
|
|
979
964
|
protoOf(JsonObjectDescriptor).m1s = function () {
|
|
980
|
-
return this.
|
|
965
|
+
return this.o4p_1.m1s();
|
|
981
966
|
};
|
|
982
967
|
protoOf(JsonObjectDescriptor).f1s = function () {
|
|
983
|
-
return this.
|
|
968
|
+
return this.o4p_1.f1s();
|
|
984
969
|
};
|
|
985
970
|
protoOf(JsonObjectDescriptor).n1s = function () {
|
|
986
|
-
return this.
|
|
971
|
+
return this.o4p_1.n1s();
|
|
987
972
|
};
|
|
988
973
|
protoOf(JsonObjectDescriptor).o1s = function () {
|
|
989
|
-
return this.
|
|
974
|
+
return this.o4p_1.o1s();
|
|
990
975
|
};
|
|
991
976
|
protoOf(JsonObjectDescriptor).p1s = function () {
|
|
992
|
-
return this.
|
|
977
|
+
return this.o4p_1.p1s();
|
|
993
978
|
};
|
|
994
979
|
var JsonObjectDescriptor_instance;
|
|
995
980
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -999,17 +984,17 @@
|
|
|
999
984
|
}
|
|
1000
985
|
function JsonObjectSerializer() {
|
|
1001
986
|
JsonObjectSerializer_instance = this;
|
|
1002
|
-
this.
|
|
987
|
+
this.h4p_1 = JsonObjectDescriptor_getInstance();
|
|
1003
988
|
}
|
|
1004
989
|
protoOf(JsonObjectSerializer).r1q = function () {
|
|
1005
|
-
return this.
|
|
990
|
+
return this.h4p_1;
|
|
1006
991
|
};
|
|
1007
|
-
protoOf(JsonObjectSerializer).
|
|
992
|
+
protoOf(JsonObjectSerializer).q4p = function (encoder, value) {
|
|
1008
993
|
verify(encoder);
|
|
1009
994
|
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).s1q(encoder, value);
|
|
1010
995
|
};
|
|
1011
996
|
protoOf(JsonObjectSerializer).s1q = function (encoder, value) {
|
|
1012
|
-
return this.
|
|
997
|
+
return this.q4p(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
1013
998
|
};
|
|
1014
999
|
protoOf(JsonObjectSerializer).t1q = function (decoder) {
|
|
1015
1000
|
verify_0(decoder);
|
|
@@ -1023,41 +1008,41 @@
|
|
|
1023
1008
|
}
|
|
1024
1009
|
function JsonArrayDescriptor() {
|
|
1025
1010
|
JsonArrayDescriptor_instance = this;
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
1011
|
+
this.r4p_1 = ListSerializer(JsonElementSerializer_getInstance()).r1q();
|
|
1012
|
+
this.s4p_1 = 'kotlinx.serialization.json.JsonArray';
|
|
1028
1013
|
}
|
|
1029
1014
|
protoOf(JsonArrayDescriptor).s1r = function () {
|
|
1030
|
-
return this.
|
|
1015
|
+
return this.s4p_1;
|
|
1031
1016
|
};
|
|
1032
1017
|
protoOf(JsonArrayDescriptor).q1s = function (index) {
|
|
1033
|
-
return this.
|
|
1018
|
+
return this.r4p_1.q1s(index);
|
|
1034
1019
|
};
|
|
1035
1020
|
protoOf(JsonArrayDescriptor).r1s = function (name) {
|
|
1036
|
-
return this.
|
|
1021
|
+
return this.r4p_1.r1s(name);
|
|
1037
1022
|
};
|
|
1038
1023
|
protoOf(JsonArrayDescriptor).s1s = function (index) {
|
|
1039
|
-
return this.
|
|
1024
|
+
return this.r4p_1.s1s(index);
|
|
1040
1025
|
};
|
|
1041
1026
|
protoOf(JsonArrayDescriptor).t1s = function (index) {
|
|
1042
|
-
return this.
|
|
1027
|
+
return this.r4p_1.t1s(index);
|
|
1043
1028
|
};
|
|
1044
1029
|
protoOf(JsonArrayDescriptor).u1s = function (index) {
|
|
1045
|
-
return this.
|
|
1030
|
+
return this.r4p_1.u1s(index);
|
|
1046
1031
|
};
|
|
1047
1032
|
protoOf(JsonArrayDescriptor).m1s = function () {
|
|
1048
|
-
return this.
|
|
1033
|
+
return this.r4p_1.m1s();
|
|
1049
1034
|
};
|
|
1050
1035
|
protoOf(JsonArrayDescriptor).f1s = function () {
|
|
1051
|
-
return this.
|
|
1036
|
+
return this.r4p_1.f1s();
|
|
1052
1037
|
};
|
|
1053
1038
|
protoOf(JsonArrayDescriptor).n1s = function () {
|
|
1054
|
-
return this.
|
|
1039
|
+
return this.r4p_1.n1s();
|
|
1055
1040
|
};
|
|
1056
1041
|
protoOf(JsonArrayDescriptor).o1s = function () {
|
|
1057
|
-
return this.
|
|
1042
|
+
return this.r4p_1.o1s();
|
|
1058
1043
|
};
|
|
1059
1044
|
protoOf(JsonArrayDescriptor).p1s = function () {
|
|
1060
|
-
return this.
|
|
1045
|
+
return this.r4p_1.p1s();
|
|
1061
1046
|
};
|
|
1062
1047
|
var JsonArrayDescriptor_instance;
|
|
1063
1048
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -1067,17 +1052,17 @@
|
|
|
1067
1052
|
}
|
|
1068
1053
|
function JsonArraySerializer() {
|
|
1069
1054
|
JsonArraySerializer_instance = this;
|
|
1070
|
-
this.
|
|
1055
|
+
this.i4p_1 = JsonArrayDescriptor_getInstance();
|
|
1071
1056
|
}
|
|
1072
1057
|
protoOf(JsonArraySerializer).r1q = function () {
|
|
1073
|
-
return this.
|
|
1058
|
+
return this.i4p_1;
|
|
1074
1059
|
};
|
|
1075
|
-
protoOf(JsonArraySerializer).
|
|
1060
|
+
protoOf(JsonArraySerializer).t4p = function (encoder, value) {
|
|
1076
1061
|
verify(encoder);
|
|
1077
1062
|
ListSerializer(JsonElementSerializer_getInstance()).s1q(encoder, value);
|
|
1078
1063
|
};
|
|
1079
1064
|
protoOf(JsonArraySerializer).s1q = function (encoder, value) {
|
|
1080
|
-
return this.
|
|
1065
|
+
return this.t4p(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
1081
1066
|
};
|
|
1082
1067
|
protoOf(JsonArraySerializer).t1q = function (decoder) {
|
|
1083
1068
|
verify_0(decoder);
|
|
@@ -1116,7 +1101,7 @@
|
|
|
1116
1101
|
return tmp;
|
|
1117
1102
|
}
|
|
1118
1103
|
function _get_original__l7ku1m($this) {
|
|
1119
|
-
var tmp0 = $this.
|
|
1104
|
+
var tmp0 = $this.u4p_1;
|
|
1120
1105
|
var tmp = KProperty1;
|
|
1121
1106
|
// Inline function 'kotlin.getValue' call
|
|
1122
1107
|
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
@@ -1128,7 +1113,7 @@
|
|
|
1128
1113
|
};
|
|
1129
1114
|
}
|
|
1130
1115
|
function defer$1($deferred) {
|
|
1131
|
-
this.
|
|
1116
|
+
this.u4p_1 = lazy($deferred);
|
|
1132
1117
|
}
|
|
1133
1118
|
protoOf(defer$1).s1r = function () {
|
|
1134
1119
|
return _get_original__l7ku1m(this).s1r();
|
|
@@ -1157,155 +1142,155 @@
|
|
|
1157
1142
|
function JsonEncoder() {
|
|
1158
1143
|
}
|
|
1159
1144
|
function Composer(writer) {
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1145
|
+
this.v4p_1 = writer;
|
|
1146
|
+
this.w4p_1 = true;
|
|
1162
1147
|
}
|
|
1148
|
+
protoOf(Composer).x4p = function () {
|
|
1149
|
+
this.w4p_1 = true;
|
|
1150
|
+
};
|
|
1163
1151
|
protoOf(Composer).y4p = function () {
|
|
1164
|
-
|
|
1152
|
+
return Unit_instance;
|
|
1165
1153
|
};
|
|
1166
1154
|
protoOf(Composer).z4p = function () {
|
|
1167
|
-
|
|
1155
|
+
this.w4p_1 = false;
|
|
1168
1156
|
};
|
|
1169
1157
|
protoOf(Composer).a4q = function () {
|
|
1170
|
-
this.
|
|
1158
|
+
this.w4p_1 = false;
|
|
1171
1159
|
};
|
|
1172
1160
|
protoOf(Composer).b4q = function () {
|
|
1173
|
-
this.x4p_1 = false;
|
|
1174
|
-
};
|
|
1175
|
-
protoOf(Composer).c4q = function () {
|
|
1176
1161
|
return Unit_instance;
|
|
1177
1162
|
};
|
|
1178
|
-
protoOf(Composer).
|
|
1179
|
-
return this.
|
|
1163
|
+
protoOf(Composer).c4q = function (v) {
|
|
1164
|
+
return this.v4p_1.d4q(v);
|
|
1165
|
+
};
|
|
1166
|
+
protoOf(Composer).e4q = function (v) {
|
|
1167
|
+
return this.v4p_1.f4q(v);
|
|
1180
1168
|
};
|
|
1181
|
-
protoOf(Composer).
|
|
1182
|
-
return this.
|
|
1169
|
+
protoOf(Composer).g4q = function (v) {
|
|
1170
|
+
return this.v4p_1.f4q(v.toString());
|
|
1183
1171
|
};
|
|
1184
1172
|
protoOf(Composer).h4q = function (v) {
|
|
1185
|
-
return this.
|
|
1173
|
+
return this.v4p_1.f4q(v.toString());
|
|
1186
1174
|
};
|
|
1187
1175
|
protoOf(Composer).i4q = function (v) {
|
|
1188
|
-
return this.
|
|
1176
|
+
return this.v4p_1.j4q(fromInt(v));
|
|
1189
1177
|
};
|
|
1190
|
-
protoOf(Composer).
|
|
1191
|
-
return this.
|
|
1178
|
+
protoOf(Composer).k4q = function (v) {
|
|
1179
|
+
return this.v4p_1.j4q(fromInt(v));
|
|
1192
1180
|
};
|
|
1193
1181
|
protoOf(Composer).l4q = function (v) {
|
|
1194
|
-
return this.
|
|
1182
|
+
return this.v4p_1.j4q(fromInt(v));
|
|
1195
1183
|
};
|
|
1196
1184
|
protoOf(Composer).m4q = function (v) {
|
|
1197
|
-
return this.
|
|
1185
|
+
return this.v4p_1.j4q(v);
|
|
1198
1186
|
};
|
|
1199
1187
|
protoOf(Composer).n4q = function (v) {
|
|
1200
|
-
return this.
|
|
1188
|
+
return this.v4p_1.f4q(v.toString());
|
|
1201
1189
|
};
|
|
1202
|
-
protoOf(Composer).o4q = function (
|
|
1203
|
-
return this.
|
|
1204
|
-
};
|
|
1205
|
-
protoOf(Composer).p4q = function (value) {
|
|
1206
|
-
return this.w4p_1.q4q(value);
|
|
1190
|
+
protoOf(Composer).o4q = function (value) {
|
|
1191
|
+
return this.v4p_1.p4q(value);
|
|
1207
1192
|
};
|
|
1208
1193
|
function Composer_0(sb, json) {
|
|
1209
1194
|
return json.o4m_1.c4o_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1210
1195
|
}
|
|
1211
1196
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1212
1197
|
Composer.call(this, writer);
|
|
1213
|
-
this.
|
|
1198
|
+
this.s4q_1 = forceQuoting;
|
|
1214
1199
|
}
|
|
1215
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1216
|
-
if (this.
|
|
1200
|
+
protoOf(ComposerForUnsignedNumbers).l4q = function (v) {
|
|
1201
|
+
if (this.s4q_1) {
|
|
1217
1202
|
// Inline function 'kotlin.toUInt' call
|
|
1218
1203
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1219
|
-
this.
|
|
1204
|
+
this.o4q(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1220
1205
|
} else {
|
|
1221
1206
|
// Inline function 'kotlin.toUInt' call
|
|
1222
1207
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1223
|
-
this.
|
|
1208
|
+
this.e4q(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1224
1209
|
}
|
|
1225
1210
|
};
|
|
1226
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1227
|
-
if (this.
|
|
1211
|
+
protoOf(ComposerForUnsignedNumbers).m4q = function (v) {
|
|
1212
|
+
if (this.s4q_1) {
|
|
1228
1213
|
// Inline function 'kotlin.toULong' call
|
|
1229
1214
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1230
|
-
this.
|
|
1215
|
+
this.o4q(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1231
1216
|
} else {
|
|
1232
1217
|
// Inline function 'kotlin.toULong' call
|
|
1233
1218
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1234
|
-
this.
|
|
1219
|
+
this.e4q(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1235
1220
|
}
|
|
1236
1221
|
};
|
|
1237
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1238
|
-
if (this.
|
|
1222
|
+
protoOf(ComposerForUnsignedNumbers).i4q = function (v) {
|
|
1223
|
+
if (this.s4q_1) {
|
|
1239
1224
|
// Inline function 'kotlin.toUByte' call
|
|
1240
1225
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1241
|
-
this.
|
|
1226
|
+
this.o4q(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1242
1227
|
} else {
|
|
1243
1228
|
// Inline function 'kotlin.toUByte' call
|
|
1244
1229
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1245
|
-
this.
|
|
1230
|
+
this.e4q(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1246
1231
|
}
|
|
1247
1232
|
};
|
|
1248
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1249
|
-
if (this.
|
|
1233
|
+
protoOf(ComposerForUnsignedNumbers).k4q = function (v) {
|
|
1234
|
+
if (this.s4q_1) {
|
|
1250
1235
|
// Inline function 'kotlin.toUShort' call
|
|
1251
1236
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1252
|
-
this.
|
|
1237
|
+
this.o4q(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1253
1238
|
} else {
|
|
1254
1239
|
// Inline function 'kotlin.toUShort' call
|
|
1255
1240
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1256
|
-
this.
|
|
1241
|
+
this.e4q(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1257
1242
|
}
|
|
1258
1243
|
};
|
|
1259
1244
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1260
1245
|
Composer.call(this, writer);
|
|
1261
|
-
this.
|
|
1246
|
+
this.v4q_1 = forceQuoting;
|
|
1262
1247
|
}
|
|
1263
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1264
|
-
if (this.
|
|
1265
|
-
protoOf(Composer).
|
|
1248
|
+
protoOf(ComposerForUnquotedLiterals).o4q = function (value) {
|
|
1249
|
+
if (this.v4q_1) {
|
|
1250
|
+
protoOf(Composer).o4q.call(this, value);
|
|
1266
1251
|
} else {
|
|
1267
|
-
protoOf(Composer).
|
|
1252
|
+
protoOf(Composer).e4q.call(this, value);
|
|
1268
1253
|
}
|
|
1269
1254
|
};
|
|
1270
1255
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1271
1256
|
Composer.call(this, writer);
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1257
|
+
this.y4q_1 = json;
|
|
1258
|
+
this.z4q_1 = 0;
|
|
1274
1259
|
}
|
|
1260
|
+
protoOf(ComposerWithPrettyPrint).x4p = function () {
|
|
1261
|
+
this.w4p_1 = true;
|
|
1262
|
+
this.z4q_1 = this.z4q_1 + 1 | 0;
|
|
1263
|
+
};
|
|
1275
1264
|
protoOf(ComposerWithPrettyPrint).y4p = function () {
|
|
1276
|
-
this.
|
|
1277
|
-
this.a4r_1 = this.a4r_1 + 1 | 0;
|
|
1265
|
+
this.z4q_1 = this.z4q_1 - 1 | 0;
|
|
1278
1266
|
};
|
|
1279
1267
|
protoOf(ComposerWithPrettyPrint).z4p = function () {
|
|
1280
|
-
this.
|
|
1281
|
-
|
|
1282
|
-
protoOf(ComposerWithPrettyPrint).a4q = function () {
|
|
1283
|
-
this.x4p_1 = false;
|
|
1284
|
-
this.f4q('\n');
|
|
1268
|
+
this.w4p_1 = false;
|
|
1269
|
+
this.e4q('\n');
|
|
1285
1270
|
// Inline function 'kotlin.repeat' call
|
|
1286
|
-
var times = this.
|
|
1271
|
+
var times = this.z4q_1;
|
|
1287
1272
|
var inductionVariable = 0;
|
|
1288
1273
|
if (inductionVariable < times)
|
|
1289
1274
|
do {
|
|
1290
1275
|
var index = inductionVariable;
|
|
1291
1276
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1292
|
-
this.
|
|
1277
|
+
this.e4q(this.y4q_1.o4m_1.e4o_1);
|
|
1293
1278
|
}
|
|
1294
1279
|
while (inductionVariable < times);
|
|
1295
1280
|
};
|
|
1296
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1297
|
-
if (this.
|
|
1298
|
-
this.
|
|
1281
|
+
protoOf(ComposerWithPrettyPrint).a4q = function () {
|
|
1282
|
+
if (this.w4p_1)
|
|
1283
|
+
this.w4p_1 = false;
|
|
1299
1284
|
else {
|
|
1300
|
-
this.
|
|
1285
|
+
this.z4p();
|
|
1301
1286
|
}
|
|
1302
1287
|
};
|
|
1303
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1304
|
-
this.
|
|
1288
|
+
protoOf(ComposerWithPrettyPrint).b4q = function () {
|
|
1289
|
+
this.c4q(_Char___init__impl__6a9atx(32));
|
|
1305
1290
|
};
|
|
1306
1291
|
function readIfAbsent($this, descriptor, index) {
|
|
1307
|
-
$this.
|
|
1308
|
-
return $this.
|
|
1292
|
+
$this.b4r_1 = (!descriptor.u1s(index) && descriptor.t1s(index).f1s());
|
|
1293
|
+
return $this.b4r_1;
|
|
1309
1294
|
}
|
|
1310
1295
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1311
1296
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -1317,14 +1302,14 @@
|
|
|
1317
1302
|
}
|
|
1318
1303
|
function JsonElementMarker(descriptor) {
|
|
1319
1304
|
var tmp = this;
|
|
1320
|
-
tmp.
|
|
1321
|
-
this.
|
|
1305
|
+
tmp.a4r_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1306
|
+
this.b4r_1 = false;
|
|
1322
1307
|
}
|
|
1323
|
-
protoOf(JsonElementMarker).
|
|
1324
|
-
this.
|
|
1308
|
+
protoOf(JsonElementMarker).c4r = function (index) {
|
|
1309
|
+
this.a4r_1.n20(index);
|
|
1325
1310
|
};
|
|
1326
|
-
protoOf(JsonElementMarker).
|
|
1327
|
-
return this.
|
|
1311
|
+
protoOf(JsonElementMarker).d4r = function () {
|
|
1312
|
+
return this.a4r_1.o20();
|
|
1328
1313
|
};
|
|
1329
1314
|
function JsonDecodingException(message) {
|
|
1330
1315
|
JsonException.call(this, message);
|
|
@@ -1363,10 +1348,10 @@
|
|
|
1363
1348
|
}
|
|
1364
1349
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1365
1350
|
entity = entity === VOID ? 'object' : entity;
|
|
1366
|
-
_this__u8e3s4.
|
|
1351
|
+
_this__u8e3s4.e4r('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.a4n_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
1367
1352
|
}
|
|
1368
1353
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1369
|
-
_this__u8e3s4.
|
|
1354
|
+
_this__u8e3s4.f4r('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
|
|
1370
1355
|
}
|
|
1371
1356
|
function JsonEncodingException(message) {
|
|
1372
1357
|
JsonException.call(this, message);
|
|
@@ -1467,7 +1452,7 @@
|
|
|
1467
1452
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1468
1453
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1469
1454
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1470
|
-
return tmp.
|
|
1455
|
+
return tmp.h4r(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1471
1456
|
}
|
|
1472
1457
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1473
1458
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1482,7 +1467,7 @@
|
|
|
1482
1467
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1483
1468
|
var tmp = get_schemaCache(json);
|
|
1484
1469
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1485
|
-
return tmp.
|
|
1470
|
+
return tmp.h4r(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1486
1471
|
}
|
|
1487
1472
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1488
1473
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1508,7 +1493,7 @@
|
|
|
1508
1493
|
}
|
|
1509
1494
|
}
|
|
1510
1495
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
1511
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1496
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i4r_1;
|
|
1512
1497
|
if (tmp1_safe_receiver == null)
|
|
1513
1498
|
null;
|
|
1514
1499
|
else {
|
|
@@ -1535,7 +1520,7 @@
|
|
|
1535
1520
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1536
1521
|
tmp_0 = _this__u8e3s4.q1s(i).toLowerCase();
|
|
1537
1522
|
} else if (!(strategyForClasses == null)) {
|
|
1538
|
-
tmp_0 = strategyForClasses.
|
|
1523
|
+
tmp_0 = strategyForClasses.j4r(_this__u8e3s4, i, _this__u8e3s4.q1s(i));
|
|
1539
1524
|
} else {
|
|
1540
1525
|
tmp_0 = null;
|
|
1541
1526
|
}
|
|
@@ -1571,7 +1556,7 @@
|
|
|
1571
1556
|
while (tmp < tmp_0) {
|
|
1572
1557
|
var tmp_2 = tmp;
|
|
1573
1558
|
var baseName = $this_serializationNamesIndices.q1s(tmp_2);
|
|
1574
|
-
tmp_1[tmp_2] = $strategy.
|
|
1559
|
+
tmp_1[tmp_2] = $strategy.j4r($this_serializationNamesIndices, tmp_2, baseName);
|
|
1575
1560
|
tmp = tmp + 1 | 0;
|
|
1576
1561
|
}
|
|
1577
1562
|
return tmp_1;
|
|
@@ -1602,8 +1587,8 @@
|
|
|
1602
1587
|
return Tombstone_instance;
|
|
1603
1588
|
}
|
|
1604
1589
|
function resize($this) {
|
|
1605
|
-
var newSize = imul($this.
|
|
1606
|
-
$this.
|
|
1590
|
+
var newSize = imul($this.m4r_1, 2);
|
|
1591
|
+
$this.k4r_1 = copyOf($this.k4r_1, newSize);
|
|
1607
1592
|
var tmp = 0;
|
|
1608
1593
|
var tmp_0 = new Int32Array(newSize);
|
|
1609
1594
|
while (tmp < newSize) {
|
|
@@ -1612,7 +1597,7 @@
|
|
|
1612
1597
|
}
|
|
1613
1598
|
var newIndices = tmp_0;
|
|
1614
1599
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1615
|
-
var this_0 = $this.
|
|
1600
|
+
var this_0 = $this.l4r_1;
|
|
1616
1601
|
var endIndex = this_0.length;
|
|
1617
1602
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1618
1603
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1620,12 +1605,12 @@
|
|
|
1620
1605
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1621
1606
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1622
1607
|
arrayCopy(tmp_1, newIndices, 0, 0, endIndex);
|
|
1623
|
-
$this.
|
|
1608
|
+
$this.l4r_1 = newIndices;
|
|
1624
1609
|
}
|
|
1625
1610
|
function JsonPath() {
|
|
1626
1611
|
var tmp = this;
|
|
1627
1612
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1628
|
-
tmp.
|
|
1613
|
+
tmp.k4r_1 = Array(8);
|
|
1629
1614
|
var tmp_0 = this;
|
|
1630
1615
|
var tmp_1 = 0;
|
|
1631
1616
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1633,71 +1618,71 @@
|
|
|
1633
1618
|
tmp_2[tmp_1] = -1;
|
|
1634
1619
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1635
1620
|
}
|
|
1636
|
-
tmp_0.
|
|
1637
|
-
this.
|
|
1621
|
+
tmp_0.l4r_1 = tmp_2;
|
|
1622
|
+
this.m4r_1 = -1;
|
|
1638
1623
|
}
|
|
1639
|
-
protoOf(JsonPath).
|
|
1640
|
-
this.
|
|
1641
|
-
var depth = this.
|
|
1642
|
-
if (depth === this.
|
|
1624
|
+
protoOf(JsonPath).n4r = function (sd) {
|
|
1625
|
+
this.m4r_1 = this.m4r_1 + 1 | 0;
|
|
1626
|
+
var depth = this.m4r_1;
|
|
1627
|
+
if (depth === this.k4r_1.length) {
|
|
1643
1628
|
resize(this);
|
|
1644
1629
|
}
|
|
1645
|
-
this.
|
|
1630
|
+
this.k4r_1[depth] = sd;
|
|
1646
1631
|
};
|
|
1647
|
-
protoOf(JsonPath).
|
|
1648
|
-
this.
|
|
1632
|
+
protoOf(JsonPath).o4r = function (index) {
|
|
1633
|
+
this.l4r_1[this.m4r_1] = index;
|
|
1649
1634
|
};
|
|
1650
|
-
protoOf(JsonPath).
|
|
1635
|
+
protoOf(JsonPath).p4r = function (key) {
|
|
1651
1636
|
var tmp;
|
|
1652
|
-
if (!(this.
|
|
1653
|
-
this.
|
|
1654
|
-
tmp = this.
|
|
1637
|
+
if (!(this.l4r_1[this.m4r_1] === -2)) {
|
|
1638
|
+
this.m4r_1 = this.m4r_1 + 1 | 0;
|
|
1639
|
+
tmp = this.m4r_1 === this.k4r_1.length;
|
|
1655
1640
|
} else {
|
|
1656
1641
|
tmp = false;
|
|
1657
1642
|
}
|
|
1658
1643
|
if (tmp) {
|
|
1659
1644
|
resize(this);
|
|
1660
1645
|
}
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1646
|
+
this.k4r_1[this.m4r_1] = key;
|
|
1647
|
+
this.l4r_1[this.m4r_1] = -2;
|
|
1663
1648
|
};
|
|
1664
|
-
protoOf(JsonPath).
|
|
1665
|
-
if (this.
|
|
1666
|
-
this.
|
|
1649
|
+
protoOf(JsonPath).q4r = function () {
|
|
1650
|
+
if (this.l4r_1[this.m4r_1] === -2) {
|
|
1651
|
+
this.k4r_1[this.m4r_1] = Tombstone_instance;
|
|
1667
1652
|
}
|
|
1668
1653
|
};
|
|
1669
|
-
protoOf(JsonPath).
|
|
1670
|
-
var depth = this.
|
|
1671
|
-
if (this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1654
|
+
protoOf(JsonPath).r4r = function () {
|
|
1655
|
+
var depth = this.m4r_1;
|
|
1656
|
+
if (this.l4r_1[depth] === -2) {
|
|
1657
|
+
this.l4r_1[depth] = -1;
|
|
1658
|
+
this.m4r_1 = this.m4r_1 - 1 | 0;
|
|
1674
1659
|
}
|
|
1675
|
-
if (!(this.
|
|
1676
|
-
this.
|
|
1660
|
+
if (!(this.m4r_1 === -1)) {
|
|
1661
|
+
this.m4r_1 = this.m4r_1 - 1 | 0;
|
|
1677
1662
|
}
|
|
1678
1663
|
};
|
|
1679
|
-
protoOf(JsonPath).
|
|
1664
|
+
protoOf(JsonPath).s4r = function () {
|
|
1680
1665
|
// Inline function 'kotlin.text.buildString' call
|
|
1681
1666
|
// Inline function 'kotlin.apply' call
|
|
1682
1667
|
var this_0 = StringBuilder_init_$Create$();
|
|
1683
1668
|
this_0.q('$');
|
|
1684
1669
|
// Inline function 'kotlin.repeat' call
|
|
1685
|
-
var times = this.
|
|
1670
|
+
var times = this.m4r_1 + 1 | 0;
|
|
1686
1671
|
var inductionVariable = 0;
|
|
1687
1672
|
if (inductionVariable < times)
|
|
1688
1673
|
do {
|
|
1689
1674
|
var index = inductionVariable;
|
|
1690
1675
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1691
|
-
var element = this.
|
|
1676
|
+
var element = this.k4r_1[index];
|
|
1692
1677
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1693
1678
|
if (equals(element.m1s(), LIST_getInstance())) {
|
|
1694
|
-
if (!(this.
|
|
1679
|
+
if (!(this.l4r_1[index] === -1)) {
|
|
1695
1680
|
this_0.q('[');
|
|
1696
|
-
this_0.vb(this.
|
|
1681
|
+
this_0.vb(this.l4r_1[index]);
|
|
1697
1682
|
this_0.q(']');
|
|
1698
1683
|
}
|
|
1699
1684
|
} else {
|
|
1700
|
-
var idx = this.
|
|
1685
|
+
var idx = this.l4r_1[index];
|
|
1701
1686
|
if (idx >= 0) {
|
|
1702
1687
|
this_0.q('.');
|
|
1703
1688
|
this_0.q(element.q1s(idx));
|
|
@@ -1717,7 +1702,7 @@
|
|
|
1717
1702
|
return this_0.toString();
|
|
1718
1703
|
};
|
|
1719
1704
|
protoOf(JsonPath).toString = function () {
|
|
1720
|
-
return this.
|
|
1705
|
+
return this.s4r();
|
|
1721
1706
|
};
|
|
1722
1707
|
function checkKind($this, descriptor, actualClass) {
|
|
1723
1708
|
var kind = descriptor.m1s();
|
|
@@ -1730,9 +1715,9 @@
|
|
|
1730
1715
|
if (tmp) {
|
|
1731
1716
|
throw IllegalArgumentException_init_$Create$('Serializer for ' + actualClass.o() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
|
|
1732
1717
|
}
|
|
1733
|
-
if ($this.
|
|
1718
|
+
if ($this.u4r_1)
|
|
1734
1719
|
return Unit_instance;
|
|
1735
|
-
if (!$this.
|
|
1720
|
+
if (!$this.v4r_1)
|
|
1736
1721
|
return Unit_instance;
|
|
1737
1722
|
var tmp_0;
|
|
1738
1723
|
var tmp_1;
|
|
@@ -1758,23 +1743,23 @@
|
|
|
1758
1743
|
var i = inductionVariable;
|
|
1759
1744
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1760
1745
|
var name = descriptor.q1s(i);
|
|
1761
|
-
if (name === $this.
|
|
1746
|
+
if (name === $this.t4r_1) {
|
|
1762
1747
|
throw IllegalArgumentException_init_$Create$('Polymorphic serializer for ' + toString(actualClass) + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism');
|
|
1763
1748
|
}
|
|
1764
1749
|
}
|
|
1765
1750
|
while (inductionVariable < last);
|
|
1766
1751
|
}
|
|
1767
1752
|
function JsonSerializersModuleValidator(configuration) {
|
|
1768
|
-
this.
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1753
|
+
this.t4r_1 = configuration.h4o_1;
|
|
1754
|
+
this.u4r_1 = configuration.g4o_1;
|
|
1755
|
+
this.v4r_1 = !configuration.o4o_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
1771
1756
|
}
|
|
1772
1757
|
protoOf(JsonSerializersModuleValidator).z2a = function (kClass, provider) {
|
|
1773
1758
|
};
|
|
1774
1759
|
protoOf(JsonSerializersModuleValidator).c2b = function (baseClass, actualClass, actualSerializer) {
|
|
1775
1760
|
var descriptor = actualSerializer.r1q();
|
|
1776
1761
|
checkKind(this, descriptor, actualClass);
|
|
1777
|
-
if (!this.
|
|
1762
|
+
if (!this.u4r_1 && this.v4r_1) {
|
|
1778
1763
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1779
1764
|
}
|
|
1780
1765
|
};
|
|
@@ -1792,34 +1777,34 @@
|
|
|
1792
1777
|
}
|
|
1793
1778
|
function readObject($this) {
|
|
1794
1779
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1795
|
-
var lastToken = $this.
|
|
1796
|
-
if ($this.
|
|
1797
|
-
$this.
|
|
1780
|
+
var lastToken = $this.f4s_1.j4s(6);
|
|
1781
|
+
if ($this.f4s_1.k4s() === 4) {
|
|
1782
|
+
$this.f4s_1.f4r('Unexpected leading comma');
|
|
1798
1783
|
}
|
|
1799
1784
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1800
1785
|
var result = LinkedHashMap_init_$Create$();
|
|
1801
|
-
$l$loop: while ($this.
|
|
1802
|
-
var key = $this.
|
|
1803
|
-
$this.
|
|
1804
|
-
var element = $this.
|
|
1786
|
+
$l$loop: while ($this.f4s_1.l4s()) {
|
|
1787
|
+
var key = $this.g4s_1 ? $this.f4s_1.n4s() : $this.f4s_1.m4s();
|
|
1788
|
+
$this.f4s_1.j4s(5);
|
|
1789
|
+
var element = $this.o4s();
|
|
1805
1790
|
// Inline function 'kotlin.collections.set' call
|
|
1806
1791
|
result.r2(key, element);
|
|
1807
|
-
lastToken = $this.
|
|
1792
|
+
lastToken = $this.f4s_1.p4s();
|
|
1808
1793
|
var tmp0_subject = lastToken;
|
|
1809
1794
|
if (tmp0_subject !== 4)
|
|
1810
1795
|
if (tmp0_subject === 7)
|
|
1811
1796
|
break $l$loop;
|
|
1812
1797
|
else {
|
|
1813
|
-
$this.
|
|
1798
|
+
$this.f4s_1.f4r('Expected end of the object or comma');
|
|
1814
1799
|
}
|
|
1815
1800
|
}
|
|
1816
1801
|
if (lastToken === 6) {
|
|
1817
|
-
$this.
|
|
1802
|
+
$this.f4s_1.j4s(7);
|
|
1818
1803
|
} else if (lastToken === 4) {
|
|
1819
|
-
if (!$this.
|
|
1820
|
-
invalidTrailingComma($this.
|
|
1804
|
+
if (!$this.h4s_1) {
|
|
1805
|
+
invalidTrailingComma($this.f4s_1);
|
|
1821
1806
|
}
|
|
1822
|
-
$this.
|
|
1807
|
+
$this.f4s_1.j4s(7);
|
|
1823
1808
|
}
|
|
1824
1809
|
return new JsonObject(result);
|
|
1825
1810
|
}
|
|
@@ -1830,43 +1815,43 @@
|
|
|
1830
1815
|
return tmp.o8();
|
|
1831
1816
|
}
|
|
1832
1817
|
function readArray($this) {
|
|
1833
|
-
var lastToken = $this.
|
|
1834
|
-
if ($this.
|
|
1835
|
-
$this.
|
|
1818
|
+
var lastToken = $this.f4s_1.p4s();
|
|
1819
|
+
if ($this.f4s_1.k4s() === 4) {
|
|
1820
|
+
$this.f4s_1.f4r('Unexpected leading comma');
|
|
1836
1821
|
}
|
|
1837
1822
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1838
1823
|
var result = ArrayList_init_$Create$();
|
|
1839
|
-
while ($this.
|
|
1840
|
-
var element = $this.
|
|
1824
|
+
while ($this.f4s_1.l4s()) {
|
|
1825
|
+
var element = $this.o4s();
|
|
1841
1826
|
result.e1(element);
|
|
1842
|
-
lastToken = $this.
|
|
1827
|
+
lastToken = $this.f4s_1.p4s();
|
|
1843
1828
|
if (!(lastToken === 4)) {
|
|
1844
|
-
var tmp0 = $this.
|
|
1829
|
+
var tmp0 = $this.f4s_1;
|
|
1845
1830
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1846
1831
|
var condition = lastToken === 9;
|
|
1847
1832
|
var position = tmp0.a4n_1;
|
|
1848
1833
|
if (!condition) {
|
|
1849
1834
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
1850
|
-
tmp0.
|
|
1835
|
+
tmp0.f4r(tmp$ret$1, position);
|
|
1851
1836
|
}
|
|
1852
1837
|
}
|
|
1853
1838
|
}
|
|
1854
1839
|
if (lastToken === 8) {
|
|
1855
|
-
$this.
|
|
1840
|
+
$this.f4s_1.j4s(9);
|
|
1856
1841
|
} else if (lastToken === 4) {
|
|
1857
|
-
if (!$this.
|
|
1858
|
-
invalidTrailingComma($this.
|
|
1842
|
+
if (!$this.h4s_1) {
|
|
1843
|
+
invalidTrailingComma($this.f4s_1, 'array');
|
|
1859
1844
|
}
|
|
1860
|
-
$this.
|
|
1845
|
+
$this.f4s_1.j4s(9);
|
|
1861
1846
|
}
|
|
1862
1847
|
return new JsonArray(result);
|
|
1863
1848
|
}
|
|
1864
1849
|
function readValue($this, isString) {
|
|
1865
1850
|
var tmp;
|
|
1866
|
-
if ($this.
|
|
1867
|
-
tmp = $this.
|
|
1851
|
+
if ($this.g4s_1 || !isString) {
|
|
1852
|
+
tmp = $this.f4s_1.n4s();
|
|
1868
1853
|
} else {
|
|
1869
|
-
tmp = $this.
|
|
1854
|
+
tmp = $this.f4s_1.m4s();
|
|
1870
1855
|
}
|
|
1871
1856
|
var string = tmp;
|
|
1872
1857
|
if (!isString && string === 'null')
|
|
@@ -1877,18 +1862,18 @@
|
|
|
1877
1862
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1878
1863
|
}
|
|
1879
1864
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1880
|
-
this.
|
|
1865
|
+
this.m4t_1 = this$0;
|
|
1881
1866
|
CoroutineImpl.call(this, resultContinuation);
|
|
1882
1867
|
}
|
|
1883
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1884
|
-
var tmp = this.
|
|
1868
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).q4t = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1869
|
+
var tmp = this.r4t($this$DeepRecursiveFunction, it, $completion);
|
|
1885
1870
|
tmp.i8_1 = Unit_instance;
|
|
1886
1871
|
tmp.j8_1 = null;
|
|
1887
1872
|
return tmp.o8();
|
|
1888
1873
|
};
|
|
1889
1874
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).b9 = function (p1, p2, $completion) {
|
|
1890
1875
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1891
|
-
return this.
|
|
1876
|
+
return this.q4t(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1892
1877
|
};
|
|
1893
1878
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).o8 = function () {
|
|
1894
1879
|
var suspendResult = this.i8_1;
|
|
@@ -1898,32 +1883,32 @@
|
|
|
1898
1883
|
switch (tmp) {
|
|
1899
1884
|
case 0:
|
|
1900
1885
|
this.h8_1 = 3;
|
|
1901
|
-
var tmp0_subject = this.
|
|
1886
|
+
var tmp0_subject = this.m4t_1.f4s_1.k4s();
|
|
1902
1887
|
if (tmp0_subject === 1) {
|
|
1903
|
-
this.
|
|
1888
|
+
this.p4t_1 = readValue(this.m4t_1, true);
|
|
1904
1889
|
this.g8_1 = 2;
|
|
1905
1890
|
continue $sm;
|
|
1906
1891
|
} else {
|
|
1907
1892
|
if (tmp0_subject === 0) {
|
|
1908
|
-
this.
|
|
1893
|
+
this.p4t_1 = readValue(this.m4t_1, false);
|
|
1909
1894
|
this.g8_1 = 2;
|
|
1910
1895
|
continue $sm;
|
|
1911
1896
|
} else {
|
|
1912
1897
|
if (tmp0_subject === 6) {
|
|
1913
1898
|
this.g8_1 = 1;
|
|
1914
|
-
suspendResult = readObject_0(this.
|
|
1899
|
+
suspendResult = readObject_0(this.m4t_1, this.n4t_1, this);
|
|
1915
1900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1916
1901
|
return suspendResult;
|
|
1917
1902
|
}
|
|
1918
1903
|
continue $sm;
|
|
1919
1904
|
} else {
|
|
1920
1905
|
if (tmp0_subject === 8) {
|
|
1921
|
-
this.
|
|
1906
|
+
this.p4t_1 = readArray(this.m4t_1);
|
|
1922
1907
|
this.g8_1 = 2;
|
|
1923
1908
|
continue $sm;
|
|
1924
1909
|
} else {
|
|
1925
1910
|
var tmp_0 = this;
|
|
1926
|
-
this.
|
|
1911
|
+
this.m4t_1.f4s_1.f4r("Can't begin reading element, unexpected token");
|
|
1927
1912
|
}
|
|
1928
1913
|
}
|
|
1929
1914
|
}
|
|
@@ -1931,11 +1916,11 @@
|
|
|
1931
1916
|
|
|
1932
1917
|
break;
|
|
1933
1918
|
case 1:
|
|
1934
|
-
this.
|
|
1919
|
+
this.p4t_1 = suspendResult;
|
|
1935
1920
|
this.g8_1 = 2;
|
|
1936
1921
|
continue $sm;
|
|
1937
1922
|
case 2:
|
|
1938
|
-
return this.
|
|
1923
|
+
return this.p4t_1;
|
|
1939
1924
|
case 3:
|
|
1940
1925
|
throw this.j8_1;
|
|
1941
1926
|
}
|
|
@@ -1950,24 +1935,24 @@
|
|
|
1950
1935
|
}
|
|
1951
1936
|
while (true);
|
|
1952
1937
|
};
|
|
1953
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1954
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1955
|
-
i.
|
|
1956
|
-
i.
|
|
1938
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).r4t = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1939
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.m4t_1, completion);
|
|
1940
|
+
i.n4t_1 = $this$DeepRecursiveFunction;
|
|
1941
|
+
i.o4t_1 = it;
|
|
1957
1942
|
return i;
|
|
1958
1943
|
};
|
|
1959
1944
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1960
1945
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1961
1946
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1962
|
-
return i.
|
|
1947
|
+
return i.q4t($this$DeepRecursiveFunction, it, $completion);
|
|
1963
1948
|
};
|
|
1964
1949
|
l.$arity = 2;
|
|
1965
1950
|
return l;
|
|
1966
1951
|
}
|
|
1967
1952
|
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1968
1953
|
CoroutineImpl.call(this, resultContinuation);
|
|
1969
|
-
this.
|
|
1970
|
-
this.
|
|
1954
|
+
this.y4s_1 = _this__u8e3s4;
|
|
1955
|
+
this.z4s_1 = _this__u8e3s4_0;
|
|
1971
1956
|
}
|
|
1972
1957
|
protoOf($readObjectCOROUTINE$).o8 = function () {
|
|
1973
1958
|
var suspendResult = this.i8_1;
|
|
@@ -1977,26 +1962,26 @@
|
|
|
1977
1962
|
switch (tmp) {
|
|
1978
1963
|
case 0:
|
|
1979
1964
|
this.h8_1 = 5;
|
|
1980
|
-
this.
|
|
1981
|
-
this.
|
|
1982
|
-
if (this.
|
|
1983
|
-
this.
|
|
1965
|
+
this.b4t_1 = this.y4s_1;
|
|
1966
|
+
this.c4t_1 = this.b4t_1.f4s_1.j4s(6);
|
|
1967
|
+
if (this.b4t_1.f4s_1.k4s() === 4) {
|
|
1968
|
+
this.b4t_1.f4s_1.f4r('Unexpected leading comma');
|
|
1984
1969
|
}
|
|
1985
1970
|
|
|
1986
1971
|
var tmp_0 = this;
|
|
1987
|
-
tmp_0.
|
|
1972
|
+
tmp_0.a4t_1 = LinkedHashMap_init_$Create$();
|
|
1988
1973
|
this.g8_1 = 1;
|
|
1989
1974
|
continue $sm;
|
|
1990
1975
|
case 1:
|
|
1991
|
-
if (!this.
|
|
1976
|
+
if (!this.b4t_1.f4s_1.l4s()) {
|
|
1992
1977
|
this.g8_1 = 4;
|
|
1993
1978
|
continue $sm;
|
|
1994
1979
|
}
|
|
1995
1980
|
|
|
1996
|
-
this.
|
|
1997
|
-
this.
|
|
1981
|
+
this.d4t_1 = this.b4t_1.g4s_1 ? this.b4t_1.f4s_1.n4s() : this.b4t_1.f4s_1.m4s();
|
|
1982
|
+
this.b4t_1.f4s_1.j4s(5);
|
|
1998
1983
|
this.g8_1 = 2;
|
|
1999
|
-
suspendResult = this.
|
|
1984
|
+
suspendResult = this.z4s_1.jk(Unit_instance, this);
|
|
2000
1985
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2001
1986
|
return suspendResult;
|
|
2002
1987
|
}
|
|
@@ -2004,11 +1989,11 @@
|
|
|
2004
1989
|
continue $sm;
|
|
2005
1990
|
case 2:
|
|
2006
1991
|
var element = suspendResult;
|
|
2007
|
-
var tmp0 = this.
|
|
2008
|
-
var key = this.
|
|
1992
|
+
var tmp0 = this.a4t_1;
|
|
1993
|
+
var key = this.d4t_1;
|
|
2009
1994
|
tmp0.r2(key, element);
|
|
2010
|
-
this.
|
|
2011
|
-
var tmp0_subject = this.
|
|
1995
|
+
this.c4t_1 = this.b4t_1.f4s_1.p4s();
|
|
1996
|
+
var tmp0_subject = this.c4t_1;
|
|
2012
1997
|
if (tmp0_subject === 4) {
|
|
2013
1998
|
this.g8_1 = 3;
|
|
2014
1999
|
continue $sm;
|
|
@@ -2017,7 +2002,7 @@
|
|
|
2017
2002
|
this.g8_1 = 4;
|
|
2018
2003
|
continue $sm;
|
|
2019
2004
|
} else {
|
|
2020
|
-
this.
|
|
2005
|
+
this.b4t_1.f4s_1.f4r('Expected end of the object or comma');
|
|
2021
2006
|
}
|
|
2022
2007
|
}
|
|
2023
2008
|
|
|
@@ -2026,16 +2011,16 @@
|
|
|
2026
2011
|
this.g8_1 = 1;
|
|
2027
2012
|
continue $sm;
|
|
2028
2013
|
case 4:
|
|
2029
|
-
if (this.
|
|
2030
|
-
this.
|
|
2031
|
-
} else if (this.
|
|
2032
|
-
if (!this.
|
|
2033
|
-
invalidTrailingComma(this.
|
|
2014
|
+
if (this.c4t_1 === 6) {
|
|
2015
|
+
this.b4t_1.f4s_1.j4s(7);
|
|
2016
|
+
} else if (this.c4t_1 === 4) {
|
|
2017
|
+
if (!this.b4t_1.h4s_1) {
|
|
2018
|
+
invalidTrailingComma(this.b4t_1.f4s_1);
|
|
2034
2019
|
}
|
|
2035
|
-
this.
|
|
2020
|
+
this.b4t_1.f4s_1.j4s(7);
|
|
2036
2021
|
}
|
|
2037
2022
|
|
|
2038
|
-
return new JsonObject(this.
|
|
2023
|
+
return new JsonObject(this.a4t_1);
|
|
2039
2024
|
case 5:
|
|
2040
2025
|
throw this.j8_1;
|
|
2041
2026
|
}
|
|
@@ -2051,13 +2036,13 @@
|
|
|
2051
2036
|
while (true);
|
|
2052
2037
|
};
|
|
2053
2038
|
function JsonTreeReader(configuration, lexer) {
|
|
2054
|
-
this.
|
|
2055
|
-
this.
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2039
|
+
this.f4s_1 = lexer;
|
|
2040
|
+
this.g4s_1 = configuration.a4o_1;
|
|
2041
|
+
this.h4s_1 = configuration.m4o_1;
|
|
2042
|
+
this.i4s_1 = 0;
|
|
2058
2043
|
}
|
|
2059
|
-
protoOf(JsonTreeReader).
|
|
2060
|
-
var token = this.
|
|
2044
|
+
protoOf(JsonTreeReader).o4s = function () {
|
|
2045
|
+
var token = this.f4s_1.k4s();
|
|
2061
2046
|
var tmp;
|
|
2062
2047
|
if (token === 1) {
|
|
2063
2048
|
tmp = readValue(this, true);
|
|
@@ -2065,19 +2050,19 @@
|
|
|
2065
2050
|
tmp = readValue(this, false);
|
|
2066
2051
|
} else if (token === 6) {
|
|
2067
2052
|
var tmp_0;
|
|
2068
|
-
this.
|
|
2069
|
-
if (this.
|
|
2053
|
+
this.i4s_1 = this.i4s_1 + 1 | 0;
|
|
2054
|
+
if (this.i4s_1 === 200) {
|
|
2070
2055
|
tmp_0 = readDeepRecursive(this);
|
|
2071
2056
|
} else {
|
|
2072
2057
|
tmp_0 = readObject(this);
|
|
2073
2058
|
}
|
|
2074
2059
|
var result = tmp_0;
|
|
2075
|
-
this.
|
|
2060
|
+
this.i4s_1 = this.i4s_1 - 1 | 0;
|
|
2076
2061
|
tmp = result;
|
|
2077
2062
|
} else if (token === 8) {
|
|
2078
2063
|
tmp = readArray(this);
|
|
2079
2064
|
} else {
|
|
2080
|
-
this.
|
|
2065
|
+
this.f4s_1.f4r('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
2081
2066
|
}
|
|
2082
2067
|
return tmp;
|
|
2083
2068
|
};
|
|
@@ -2086,7 +2071,7 @@
|
|
|
2086
2071
|
while (_iterator__ex2g4s.u()) {
|
|
2087
2072
|
var annotation = _iterator__ex2g4s.v();
|
|
2088
2073
|
if (annotation instanceof JsonClassDiscriminator)
|
|
2089
|
-
return annotation.
|
|
2074
|
+
return annotation.s4t_1;
|
|
2090
2075
|
}
|
|
2091
2076
|
return json.o4m_1.h4o_1;
|
|
2092
2077
|
}
|
|
@@ -2124,11 +2109,11 @@
|
|
|
2124
2109
|
function Key() {
|
|
2125
2110
|
}
|
|
2126
2111
|
function DescriptorSchemaCache() {
|
|
2127
|
-
this.
|
|
2112
|
+
this.g4r_1 = createMapForCache(16);
|
|
2128
2113
|
}
|
|
2129
2114
|
protoOf(DescriptorSchemaCache).t4t = function (descriptor, key, value) {
|
|
2130
2115
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2131
|
-
var this_0 = this.
|
|
2116
|
+
var this_0 = this.g4r_1;
|
|
2132
2117
|
var value_0 = this_0.y2(descriptor);
|
|
2133
2118
|
var tmp;
|
|
2134
2119
|
if (value_0 == null) {
|
|
@@ -2144,7 +2129,7 @@
|
|
|
2144
2129
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2145
2130
|
tmp0.r2(tmp2, value_1);
|
|
2146
2131
|
};
|
|
2147
|
-
protoOf(DescriptorSchemaCache).
|
|
2132
|
+
protoOf(DescriptorSchemaCache).h4r = function (descriptor, key, defaultValue) {
|
|
2148
2133
|
var tmp0_safe_receiver = this.u4t(descriptor, key);
|
|
2149
2134
|
if (tmp0_safe_receiver == null)
|
|
2150
2135
|
null;
|
|
@@ -2157,7 +2142,7 @@
|
|
|
2157
2142
|
return value;
|
|
2158
2143
|
};
|
|
2159
2144
|
protoOf(DescriptorSchemaCache).u4t = function (descriptor, key) {
|
|
2160
|
-
var tmp0_safe_receiver = this.
|
|
2145
|
+
var tmp0_safe_receiver = this.g4r_1.y2(descriptor);
|
|
2161
2146
|
var tmp;
|
|
2162
2147
|
if (tmp0_safe_receiver == null) {
|
|
2163
2148
|
tmp = null;
|
|
@@ -2184,8 +2169,8 @@
|
|
|
2184
2169
|
}
|
|
2185
2170
|
}
|
|
2186
2171
|
function checkLeadingComma($this) {
|
|
2187
|
-
if ($this.u4m_1.
|
|
2188
|
-
$this.u4m_1.
|
|
2172
|
+
if ($this.u4m_1.k4s() === 4) {
|
|
2173
|
+
$this.u4m_1.f4r('Unexpected leading comma');
|
|
2189
2174
|
}
|
|
2190
2175
|
}
|
|
2191
2176
|
function decodeMapIndex($this) {
|
|
@@ -2199,7 +2184,7 @@
|
|
|
2199
2184
|
$this.u4m_1.w4t(_Char___init__impl__6a9atx(58));
|
|
2200
2185
|
}
|
|
2201
2186
|
var tmp;
|
|
2202
|
-
if ($this.u4m_1.
|
|
2187
|
+
if ($this.u4m_1.l4s()) {
|
|
2203
2188
|
if (decodingKey) {
|
|
2204
2189
|
if ($this.w4m_1 === -1) {
|
|
2205
2190
|
var tmp0 = $this.u4m_1;
|
|
@@ -2208,7 +2193,7 @@
|
|
|
2208
2193
|
var position = tmp0.a4n_1;
|
|
2209
2194
|
if (!condition) {
|
|
2210
2195
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
2211
|
-
tmp0.
|
|
2196
|
+
tmp0.f4r(tmp$ret$0, position);
|
|
2212
2197
|
}
|
|
2213
2198
|
} else {
|
|
2214
2199
|
var tmp0_0 = $this.u4m_1;
|
|
@@ -2217,7 +2202,7 @@
|
|
|
2217
2202
|
var position_0 = tmp0_0.a4n_1;
|
|
2218
2203
|
if (!condition_0) {
|
|
2219
2204
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
2220
|
-
tmp0_0.
|
|
2205
|
+
tmp0_0.f4r(tmp$ret$2, position_0);
|
|
2221
2206
|
}
|
|
2222
2207
|
}
|
|
2223
2208
|
}
|
|
@@ -2271,7 +2256,7 @@
|
|
|
2271
2256
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2272
2257
|
var coerceToNull = !tmp0.o4m_1.d4o_1 && elementDescriptor.f1s();
|
|
2273
2258
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2274
|
-
$this.u4m_1.
|
|
2259
|
+
$this.u4m_1.m4s();
|
|
2275
2260
|
tmp$ret$1 = true;
|
|
2276
2261
|
break $l$block_2;
|
|
2277
2262
|
}
|
|
@@ -2282,7 +2267,7 @@
|
|
|
2282
2267
|
}
|
|
2283
2268
|
function decodeObjectIndex($this, descriptor) {
|
|
2284
2269
|
var hasComma = $this.u4m_1.x4t();
|
|
2285
|
-
while ($this.u4m_1.
|
|
2270
|
+
while ($this.u4m_1.l4s()) {
|
|
2286
2271
|
hasComma = false;
|
|
2287
2272
|
var key = decodeStringKey($this);
|
|
2288
2273
|
$this.u4m_1.w4t(_Char___init__impl__6a9atx(58));
|
|
@@ -2298,7 +2283,7 @@
|
|
|
2298
2283
|
if (tmp0_safe_receiver == null)
|
|
2299
2284
|
null;
|
|
2300
2285
|
else {
|
|
2301
|
-
tmp0_safe_receiver.
|
|
2286
|
+
tmp0_safe_receiver.c4r(index);
|
|
2302
2287
|
}
|
|
2303
2288
|
return index;
|
|
2304
2289
|
}
|
|
@@ -2315,14 +2300,14 @@
|
|
|
2315
2300
|
invalidTrailingComma($this.u4m_1);
|
|
2316
2301
|
}
|
|
2317
2302
|
var tmp1_safe_receiver = $this.z4m_1;
|
|
2318
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2303
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d4r();
|
|
2319
2304
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2320
2305
|
}
|
|
2321
2306
|
function handleUnknown($this, descriptor, key) {
|
|
2322
2307
|
if (ignoreUnknownKeys(descriptor, $this.s4m_1) || trySkip($this, $this.x4m_1, key)) {
|
|
2323
2308
|
$this.u4m_1.b4u($this.y4m_1.a4o_1);
|
|
2324
2309
|
} else {
|
|
2325
|
-
$this.u4m_1.b4n_1.
|
|
2310
|
+
$this.u4m_1.b4n_1.r4r();
|
|
2326
2311
|
$this.u4m_1.a4u(key);
|
|
2327
2312
|
}
|
|
2328
2313
|
return $this.u4m_1.x4t();
|
|
@@ -2330,9 +2315,9 @@
|
|
|
2330
2315
|
function decodeListIndex($this) {
|
|
2331
2316
|
var hasComma = $this.u4m_1.x4t();
|
|
2332
2317
|
var tmp;
|
|
2333
|
-
if ($this.u4m_1.
|
|
2318
|
+
if ($this.u4m_1.l4s()) {
|
|
2334
2319
|
if (!($this.w4m_1 === -1) && !hasComma) {
|
|
2335
|
-
$this.u4m_1.
|
|
2320
|
+
$this.u4m_1.f4r('Expected end of the array or comma');
|
|
2336
2321
|
}
|
|
2337
2322
|
$this.w4m_1 = $this.w4m_1 + 1 | 0;
|
|
2338
2323
|
tmp = $this.w4m_1;
|
|
@@ -2364,14 +2349,14 @@
|
|
|
2364
2349
|
this.y4m_1 = this.s4m_1.o4m_1;
|
|
2365
2350
|
this.z4m_1 = this.y4m_1.d4o_1 ? null : new JsonElementMarker(descriptor);
|
|
2366
2351
|
}
|
|
2367
|
-
protoOf(StreamingJsonDecoder).
|
|
2352
|
+
protoOf(StreamingJsonDecoder).p4o = function () {
|
|
2368
2353
|
return this.s4m_1;
|
|
2369
2354
|
};
|
|
2370
2355
|
protoOf(StreamingJsonDecoder).u1u = function () {
|
|
2371
2356
|
return this.v4m_1;
|
|
2372
2357
|
};
|
|
2373
|
-
protoOf(StreamingJsonDecoder).
|
|
2374
|
-
return (new JsonTreeReader(this.s4m_1.o4m_1, this.u4m_1)).
|
|
2358
|
+
protoOf(StreamingJsonDecoder).q4o = function () {
|
|
2359
|
+
return (new JsonTreeReader(this.s4m_1.o4m_1, this.u4m_1)).o4s();
|
|
2375
2360
|
};
|
|
2376
2361
|
protoOf(StreamingJsonDecoder).e1u = function (deserializer) {
|
|
2377
2362
|
try {
|
|
@@ -2396,20 +2381,20 @@
|
|
|
2396
2381
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2397
2382
|
tmp_1 = true;
|
|
2398
2383
|
} else {
|
|
2399
|
-
tmp_1 = this.
|
|
2384
|
+
tmp_1 = this.p4o().o4m_1.g4o_1;
|
|
2400
2385
|
}
|
|
2401
2386
|
if (tmp_1) {
|
|
2402
2387
|
tmp$ret$0 = tmp2.t1q(this);
|
|
2403
2388
|
break $l$block;
|
|
2404
2389
|
}
|
|
2405
|
-
var discriminator_0 = classDiscriminator(tmp2.r1q(), this.
|
|
2406
|
-
var tmp0 = this.
|
|
2390
|
+
var discriminator_0 = classDiscriminator(tmp2.r1q(), this.p4o());
|
|
2391
|
+
var tmp0 = this.q4o();
|
|
2407
2392
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2408
2393
|
var serialName = tmp2.r1q().s1r();
|
|
2409
2394
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2410
2395
|
var tmp_2 = getKClass(JsonObject).o();
|
|
2411
2396
|
var tmp_3 = getKClassFromExpression(tmp0).o();
|
|
2412
|
-
var tmp$ret$1 = this.u4m_1.b4n_1.
|
|
2397
|
+
var tmp$ret$1 = this.u4m_1.b4n_1.s4r();
|
|
2413
2398
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
2414
2399
|
}
|
|
2415
2400
|
var jsonTree = tmp0;
|
|
@@ -2430,7 +2415,7 @@
|
|
|
2430
2415
|
}
|
|
2431
2416
|
var tmp_6 = tmp_4;
|
|
2432
2417
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2433
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2418
|
+
tmp$ret$0 = readPolymorphicJson(this.p4o(), discriminator_0, jsonTree, actualSerializer);
|
|
2434
2419
|
}
|
|
2435
2420
|
return tmp$ret$0;
|
|
2436
2421
|
} else {
|
|
@@ -2446,7 +2431,7 @@
|
|
|
2446
2431
|
var it_0 = $p;
|
|
2447
2432
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2448
2433
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2449
|
-
this.u4m_1.
|
|
2434
|
+
this.u4m_1.f4r(message, VOID, hint);
|
|
2450
2435
|
} else {
|
|
2451
2436
|
throw $p;
|
|
2452
2437
|
}
|
|
@@ -2461,7 +2446,7 @@
|
|
|
2461
2446
|
var e = $p;
|
|
2462
2447
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
2463
2448
|
throw e;
|
|
2464
|
-
throw MissingFieldException_init_$Create$(e.y1r_1, plus(e.message, ' at path: ') + this.u4m_1.b4n_1.
|
|
2449
|
+
throw MissingFieldException_init_$Create$(e.y1r_1, plus(e.message, ' at path: ') + this.u4m_1.b4n_1.s4r(), e);
|
|
2465
2450
|
} else {
|
|
2466
2451
|
throw $p;
|
|
2467
2452
|
}
|
|
@@ -2469,7 +2454,7 @@
|
|
|
2469
2454
|
};
|
|
2470
2455
|
protoOf(StreamingJsonDecoder).f1u = function (descriptor) {
|
|
2471
2456
|
var newMode = switchMode(this.s4m_1, descriptor);
|
|
2472
|
-
this.u4m_1.b4n_1.
|
|
2457
|
+
this.u4m_1.b4n_1.n4r(descriptor);
|
|
2473
2458
|
this.u4m_1.w4t(newMode.h4u_1);
|
|
2474
2459
|
checkLeadingComma(this);
|
|
2475
2460
|
var tmp;
|
|
@@ -2500,12 +2485,12 @@
|
|
|
2500
2485
|
invalidTrailingComma(this.u4m_1, '');
|
|
2501
2486
|
}
|
|
2502
2487
|
this.u4m_1.w4t(this.t4m_1.i4u_1);
|
|
2503
|
-
this.u4m_1.b4n_1.
|
|
2488
|
+
this.u4m_1.b4n_1.r4r();
|
|
2504
2489
|
};
|
|
2505
2490
|
protoOf(StreamingJsonDecoder).q1t = function () {
|
|
2506
2491
|
var tmp;
|
|
2507
2492
|
var tmp0_safe_receiver = this.z4m_1;
|
|
2508
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2493
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b4r_1;
|
|
2509
2494
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2510
2495
|
tmp = !this.u4m_1.j4u();
|
|
2511
2496
|
} else {
|
|
@@ -2519,11 +2504,11 @@
|
|
|
2519
2504
|
protoOf(StreamingJsonDecoder).r1u = function (descriptor, index, deserializer, previousValue) {
|
|
2520
2505
|
var isMapKey = this.t4m_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2521
2506
|
if (isMapKey) {
|
|
2522
|
-
this.u4m_1.b4n_1.
|
|
2507
|
+
this.u4m_1.b4n_1.q4r();
|
|
2523
2508
|
}
|
|
2524
2509
|
var value = protoOf(AbstractDecoder).r1u.call(this, descriptor, index, deserializer, previousValue);
|
|
2525
2510
|
if (isMapKey) {
|
|
2526
|
-
this.u4m_1.b4n_1.
|
|
2511
|
+
this.u4m_1.b4n_1.p4r(value);
|
|
2527
2512
|
}
|
|
2528
2513
|
return value;
|
|
2529
2514
|
};
|
|
@@ -2541,7 +2526,7 @@
|
|
|
2541
2526
|
break;
|
|
2542
2527
|
}
|
|
2543
2528
|
if (!this.t4m_1.equals(WriteMode_MAP_getInstance())) {
|
|
2544
|
-
this.u4m_1.b4n_1.
|
|
2529
|
+
this.u4m_1.b4n_1.o4r(index);
|
|
2545
2530
|
}
|
|
2546
2531
|
return index;
|
|
2547
2532
|
};
|
|
@@ -2551,21 +2536,21 @@
|
|
|
2551
2536
|
protoOf(StreamingJsonDecoder).t1t = function () {
|
|
2552
2537
|
var value = this.u4m_1.l4u();
|
|
2553
2538
|
if (!(value === fromInt(convertToByte(value)))) {
|
|
2554
|
-
this.u4m_1.
|
|
2539
|
+
this.u4m_1.f4r("Failed to parse byte for input '" + value.toString() + "'");
|
|
2555
2540
|
}
|
|
2556
2541
|
return convertToByte(value);
|
|
2557
2542
|
};
|
|
2558
2543
|
protoOf(StreamingJsonDecoder).u1t = function () {
|
|
2559
2544
|
var value = this.u4m_1.l4u();
|
|
2560
2545
|
if (!(value === fromInt(convertToShort(value)))) {
|
|
2561
|
-
this.u4m_1.
|
|
2546
|
+
this.u4m_1.f4r("Failed to parse short for input '" + value.toString() + "'");
|
|
2562
2547
|
}
|
|
2563
2548
|
return convertToShort(value);
|
|
2564
2549
|
};
|
|
2565
2550
|
protoOf(StreamingJsonDecoder).v1t = function () {
|
|
2566
2551
|
var value = this.u4m_1.l4u();
|
|
2567
2552
|
if (!(value === fromInt(convertToInt(value)))) {
|
|
2568
|
-
this.u4m_1.
|
|
2553
|
+
this.u4m_1.f4r("Failed to parse int for input '" + value.toString() + "'");
|
|
2569
2554
|
}
|
|
2570
2555
|
return convertToInt(value);
|
|
2571
2556
|
};
|
|
@@ -2577,7 +2562,7 @@
|
|
|
2577
2562
|
var tmp$ret$4;
|
|
2578
2563
|
$l$block: {
|
|
2579
2564
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2580
|
-
var input = tmp0.
|
|
2565
|
+
var input = tmp0.n4s();
|
|
2581
2566
|
try {
|
|
2582
2567
|
// Inline function 'kotlin.text.toFloat' call
|
|
2583
2568
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2587,7 +2572,7 @@
|
|
|
2587
2572
|
} catch ($p) {
|
|
2588
2573
|
if ($p instanceof IllegalArgumentException) {
|
|
2589
2574
|
var e = $p;
|
|
2590
|
-
tmp0.
|
|
2575
|
+
tmp0.f4r("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2591
2576
|
} else {
|
|
2592
2577
|
throw $p;
|
|
2593
2578
|
}
|
|
@@ -2604,14 +2589,14 @@
|
|
|
2604
2589
|
var tmp$ret$1;
|
|
2605
2590
|
$l$block: {
|
|
2606
2591
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2607
|
-
var input = tmp0.
|
|
2592
|
+
var input = tmp0.n4s();
|
|
2608
2593
|
try {
|
|
2609
2594
|
tmp$ret$1 = toDouble(input);
|
|
2610
2595
|
break $l$block;
|
|
2611
2596
|
} catch ($p) {
|
|
2612
2597
|
if ($p instanceof IllegalArgumentException) {
|
|
2613
2598
|
var e = $p;
|
|
2614
|
-
tmp0.
|
|
2599
|
+
tmp0.f4r("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2615
2600
|
} else {
|
|
2616
2601
|
throw $p;
|
|
2617
2602
|
}
|
|
@@ -2624,9 +2609,9 @@
|
|
|
2624
2609
|
throwInvalidFloatingPointDecoded(this.u4m_1, result);
|
|
2625
2610
|
};
|
|
2626
2611
|
protoOf(StreamingJsonDecoder).z1t = function () {
|
|
2627
|
-
var string = this.u4m_1.
|
|
2612
|
+
var string = this.u4m_1.n4s();
|
|
2628
2613
|
if (!(string.length === 1)) {
|
|
2629
|
-
this.u4m_1.
|
|
2614
|
+
this.u4m_1.f4r("Expected single char, but got '" + string + "'");
|
|
2630
2615
|
}
|
|
2631
2616
|
return charCodeAt(string, 0);
|
|
2632
2617
|
};
|
|
@@ -2635,7 +2620,7 @@
|
|
|
2635
2620
|
if (this.y4m_1.a4o_1) {
|
|
2636
2621
|
tmp = this.u4m_1.d4u();
|
|
2637
2622
|
} else {
|
|
2638
|
-
tmp = this.u4m_1.
|
|
2623
|
+
tmp = this.u4m_1.m4s();
|
|
2639
2624
|
}
|
|
2640
2625
|
return tmp;
|
|
2641
2626
|
};
|
|
@@ -2643,7 +2628,7 @@
|
|
|
2643
2628
|
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.u4m_1, this.s4m_1) : protoOf(AbstractDecoder).c1u.call(this, descriptor);
|
|
2644
2629
|
};
|
|
2645
2630
|
protoOf(StreamingJsonDecoder).b1u = function (enumDescriptor) {
|
|
2646
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.s4m_1, this.a1u(), ' at path ' + this.u4m_1.b4n_1.
|
|
2631
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.s4m_1, this.a1u(), ' at path ' + this.u4m_1.b4n_1.s4r());
|
|
2647
2632
|
};
|
|
2648
2633
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2649
2634
|
AbstractDecoder.call(this);
|
|
@@ -2662,7 +2647,7 @@
|
|
|
2662
2647
|
var tmp$ret$2;
|
|
2663
2648
|
$l$block: {
|
|
2664
2649
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2665
|
-
var input = tmp0.
|
|
2650
|
+
var input = tmp0.n4s();
|
|
2666
2651
|
try {
|
|
2667
2652
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2668
2653
|
var this_0 = toUInt(input);
|
|
@@ -2671,7 +2656,7 @@
|
|
|
2671
2656
|
} catch ($p) {
|
|
2672
2657
|
if ($p instanceof IllegalArgumentException) {
|
|
2673
2658
|
var e = $p;
|
|
2674
|
-
tmp0.
|
|
2659
|
+
tmp0.f4r("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2675
2660
|
} else {
|
|
2676
2661
|
throw $p;
|
|
2677
2662
|
}
|
|
@@ -2684,7 +2669,7 @@
|
|
|
2684
2669
|
var tmp$ret$2;
|
|
2685
2670
|
$l$block: {
|
|
2686
2671
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2687
|
-
var input = tmp0.
|
|
2672
|
+
var input = tmp0.n4s();
|
|
2688
2673
|
try {
|
|
2689
2674
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2690
2675
|
var this_0 = toULong(input);
|
|
@@ -2693,7 +2678,7 @@
|
|
|
2693
2678
|
} catch ($p) {
|
|
2694
2679
|
if ($p instanceof IllegalArgumentException) {
|
|
2695
2680
|
var e = $p;
|
|
2696
|
-
tmp0.
|
|
2681
|
+
tmp0.f4r("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2697
2682
|
} else {
|
|
2698
2683
|
throw $p;
|
|
2699
2684
|
}
|
|
@@ -2706,7 +2691,7 @@
|
|
|
2706
2691
|
var tmp$ret$2;
|
|
2707
2692
|
$l$block: {
|
|
2708
2693
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2709
|
-
var input = tmp0.
|
|
2694
|
+
var input = tmp0.n4s();
|
|
2710
2695
|
try {
|
|
2711
2696
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2712
2697
|
var this_0 = toUByte(input);
|
|
@@ -2715,7 +2700,7 @@
|
|
|
2715
2700
|
} catch ($p) {
|
|
2716
2701
|
if ($p instanceof IllegalArgumentException) {
|
|
2717
2702
|
var e = $p;
|
|
2718
|
-
tmp0.
|
|
2703
|
+
tmp0.f4r("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2719
2704
|
} else {
|
|
2720
2705
|
throw $p;
|
|
2721
2706
|
}
|
|
@@ -2728,7 +2713,7 @@
|
|
|
2728
2713
|
var tmp$ret$2;
|
|
2729
2714
|
$l$block: {
|
|
2730
2715
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2731
|
-
var input = tmp0.
|
|
2716
|
+
var input = tmp0.n4s();
|
|
2732
2717
|
try {
|
|
2733
2718
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2734
2719
|
var this_0 = toUShort(input);
|
|
@@ -2737,7 +2722,7 @@
|
|
|
2737
2722
|
} catch ($p) {
|
|
2738
2723
|
if ($p instanceof IllegalArgumentException) {
|
|
2739
2724
|
var e = $p;
|
|
2740
|
-
tmp0.
|
|
2725
|
+
tmp0.f4r("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2741
2726
|
} else {
|
|
2742
2727
|
throw $p;
|
|
2743
2728
|
}
|
|
@@ -2758,53 +2743,53 @@
|
|
|
2758
2743
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2759
2744
|
}
|
|
2760
2745
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2761
|
-
$this.
|
|
2746
|
+
$this.w4r_1.z4p();
|
|
2762
2747
|
$this.j1v(discriminator);
|
|
2763
|
-
$this.
|
|
2764
|
-
$this.
|
|
2748
|
+
$this.w4r_1.c4q(_Char___init__impl__6a9atx(58));
|
|
2749
|
+
$this.w4r_1.b4q();
|
|
2765
2750
|
$this.j1v(serialName);
|
|
2766
2751
|
}
|
|
2767
2752
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2768
2753
|
AbstractEncoder.call(this);
|
|
2769
|
-
this.
|
|
2770
|
-
this.
|
|
2771
|
-
this.
|
|
2772
|
-
this.
|
|
2773
|
-
this.
|
|
2774
|
-
this.
|
|
2775
|
-
this.
|
|
2754
|
+
this.w4r_1 = composer;
|
|
2755
|
+
this.x4r_1 = json;
|
|
2756
|
+
this.y4r_1 = mode;
|
|
2757
|
+
this.z4r_1 = modeReuseCache;
|
|
2758
|
+
this.a4s_1 = this.x4r_1.u1u();
|
|
2759
|
+
this.b4s_1 = this.x4r_1.o4m_1;
|
|
2760
|
+
this.c4s_1 = false;
|
|
2761
|
+
this.d4s_1 = null;
|
|
2776
2762
|
this.e4s_1 = null;
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
this.a4s_1[i] = this;
|
|
2763
|
+
var i = this.y4r_1.a1_1;
|
|
2764
|
+
if (!(this.z4r_1 == null)) {
|
|
2765
|
+
if (!(this.z4r_1[i] === null) || !(this.z4r_1[i] === this)) {
|
|
2766
|
+
this.z4r_1[i] = this;
|
|
2782
2767
|
}
|
|
2783
2768
|
}
|
|
2784
2769
|
}
|
|
2785
|
-
protoOf(StreamingJsonEncoder).
|
|
2786
|
-
return this.
|
|
2770
|
+
protoOf(StreamingJsonEncoder).p4o = function () {
|
|
2771
|
+
return this.x4r_1;
|
|
2787
2772
|
};
|
|
2788
2773
|
protoOf(StreamingJsonEncoder).u1u = function () {
|
|
2789
|
-
return this.
|
|
2774
|
+
return this.a4s_1;
|
|
2790
2775
|
};
|
|
2791
2776
|
protoOf(StreamingJsonEncoder).c1w = function (descriptor, index) {
|
|
2792
|
-
return this.
|
|
2777
|
+
return this.b4s_1.y4n_1;
|
|
2793
2778
|
};
|
|
2794
2779
|
protoOf(StreamingJsonEncoder).x1v = function (serializer, value) {
|
|
2795
2780
|
$l$block: {
|
|
2796
2781
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2797
|
-
if (this.
|
|
2782
|
+
if (this.p4o().o4m_1.g4o_1) {
|
|
2798
2783
|
serializer.s1q(this, value);
|
|
2799
2784
|
break $l$block;
|
|
2800
2785
|
}
|
|
2801
2786
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2802
2787
|
var tmp;
|
|
2803
2788
|
if (isPolymorphicSerializer) {
|
|
2804
|
-
tmp = !this.
|
|
2789
|
+
tmp = !this.p4o().o4m_1.o4o_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2805
2790
|
} else {
|
|
2806
2791
|
var tmp_0;
|
|
2807
|
-
switch (this.
|
|
2792
|
+
switch (this.p4o().o4m_1.o4o_1.a1_1) {
|
|
2808
2793
|
case 0:
|
|
2809
2794
|
case 2:
|
|
2810
2795
|
tmp_0 = false;
|
|
@@ -2822,7 +2807,7 @@
|
|
|
2822
2807
|
tmp = tmp_0;
|
|
2823
2808
|
}
|
|
2824
2809
|
var needDiscriminator = tmp;
|
|
2825
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.r1q(), this.
|
|
2810
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.r1q(), this.p4o()) : null;
|
|
2826
2811
|
var tmp_1;
|
|
2827
2812
|
if (isPolymorphicSerializer) {
|
|
2828
2813
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -2847,93 +2832,93 @@
|
|
|
2847
2832
|
var actualSerializer = tmp_1;
|
|
2848
2833
|
if (!(baseClassDiscriminator == null)) {
|
|
2849
2834
|
var serialName = actualSerializer.r1q().s1r();
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2835
|
+
this.d4s_1 = baseClassDiscriminator;
|
|
2836
|
+
this.e4s_1 = serialName;
|
|
2852
2837
|
}
|
|
2853
2838
|
actualSerializer.s1q(this, value);
|
|
2854
2839
|
}
|
|
2855
2840
|
};
|
|
2856
2841
|
protoOf(StreamingJsonEncoder).f1u = function (descriptor) {
|
|
2857
|
-
var newMode = switchMode(this.
|
|
2842
|
+
var newMode = switchMode(this.x4r_1, descriptor);
|
|
2858
2843
|
if (!(newMode.h4u_1 === _Char___init__impl__6a9atx(0))) {
|
|
2859
|
-
this.
|
|
2860
|
-
this.
|
|
2844
|
+
this.w4r_1.c4q(newMode.h4u_1);
|
|
2845
|
+
this.w4r_1.x4p();
|
|
2861
2846
|
}
|
|
2862
|
-
var discriminator = this.
|
|
2847
|
+
var discriminator = this.d4s_1;
|
|
2863
2848
|
if (!(discriminator == null)) {
|
|
2864
|
-
var tmp0_elvis_lhs = this.
|
|
2849
|
+
var tmp0_elvis_lhs = this.e4s_1;
|
|
2865
2850
|
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.s1r() : tmp0_elvis_lhs);
|
|
2851
|
+
this.d4s_1 = null;
|
|
2866
2852
|
this.e4s_1 = null;
|
|
2867
|
-
this.f4s_1 = null;
|
|
2868
2853
|
}
|
|
2869
|
-
if (this.
|
|
2854
|
+
if (this.y4r_1.equals(newMode)) {
|
|
2870
2855
|
return this;
|
|
2871
2856
|
}
|
|
2872
|
-
var tmp1_safe_receiver = this.
|
|
2857
|
+
var tmp1_safe_receiver = this.z4r_1;
|
|
2873
2858
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.a1_1];
|
|
2874
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2859
|
+
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.w4r_1, this.x4r_1, newMode, this.z4r_1) : tmp2_elvis_lhs;
|
|
2875
2860
|
};
|
|
2876
2861
|
protoOf(StreamingJsonEncoder).g1u = function (descriptor) {
|
|
2877
|
-
if (!(this.
|
|
2878
|
-
this.
|
|
2879
|
-
this.
|
|
2880
|
-
this.
|
|
2862
|
+
if (!(this.y4r_1.i4u_1 === _Char___init__impl__6a9atx(0))) {
|
|
2863
|
+
this.w4r_1.y4p();
|
|
2864
|
+
this.w4r_1.a4q();
|
|
2865
|
+
this.w4r_1.c4q(this.y4r_1.i4u_1);
|
|
2881
2866
|
}
|
|
2882
2867
|
};
|
|
2883
2868
|
protoOf(StreamingJsonEncoder).y1u = function (descriptor, index) {
|
|
2884
|
-
switch (this.
|
|
2869
|
+
switch (this.y4r_1.a1_1) {
|
|
2885
2870
|
case 1:
|
|
2886
|
-
if (!this.
|
|
2887
|
-
this.
|
|
2871
|
+
if (!this.w4r_1.w4p_1) {
|
|
2872
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(44));
|
|
2888
2873
|
}
|
|
2889
2874
|
|
|
2890
|
-
this.
|
|
2875
|
+
this.w4r_1.z4p();
|
|
2891
2876
|
break;
|
|
2892
2877
|
case 2:
|
|
2893
|
-
if (!this.
|
|
2878
|
+
if (!this.w4r_1.w4p_1) {
|
|
2894
2879
|
var tmp = this;
|
|
2895
2880
|
var tmp_0;
|
|
2896
2881
|
if ((index % 2 | 0) === 0) {
|
|
2897
|
-
this.
|
|
2898
|
-
this.
|
|
2882
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(44));
|
|
2883
|
+
this.w4r_1.z4p();
|
|
2899
2884
|
tmp_0 = true;
|
|
2900
2885
|
} else {
|
|
2901
|
-
this.
|
|
2902
|
-
this.
|
|
2886
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(58));
|
|
2887
|
+
this.w4r_1.b4q();
|
|
2903
2888
|
tmp_0 = false;
|
|
2904
2889
|
}
|
|
2905
|
-
tmp.
|
|
2890
|
+
tmp.c4s_1 = tmp_0;
|
|
2906
2891
|
} else {
|
|
2907
|
-
this.
|
|
2908
|
-
this.
|
|
2892
|
+
this.c4s_1 = true;
|
|
2893
|
+
this.w4r_1.z4p();
|
|
2909
2894
|
}
|
|
2910
2895
|
|
|
2911
2896
|
break;
|
|
2912
2897
|
case 3:
|
|
2913
2898
|
if (index === 0)
|
|
2914
|
-
this.
|
|
2899
|
+
this.c4s_1 = true;
|
|
2915
2900
|
if (index === 1) {
|
|
2916
|
-
this.
|
|
2917
|
-
this.
|
|
2918
|
-
this.
|
|
2901
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(44));
|
|
2902
|
+
this.w4r_1.b4q();
|
|
2903
|
+
this.c4s_1 = false;
|
|
2919
2904
|
}
|
|
2920
2905
|
|
|
2921
2906
|
break;
|
|
2922
2907
|
default:
|
|
2923
|
-
if (!this.
|
|
2924
|
-
this.
|
|
2908
|
+
if (!this.w4r_1.w4p_1) {
|
|
2909
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(44));
|
|
2925
2910
|
}
|
|
2926
2911
|
|
|
2927
|
-
this.
|
|
2928
|
-
this.j1v(getJsonElementName(descriptor, this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2912
|
+
this.w4r_1.z4p();
|
|
2913
|
+
this.j1v(getJsonElementName(descriptor, this.x4r_1, index));
|
|
2914
|
+
this.w4r_1.c4q(_Char___init__impl__6a9atx(58));
|
|
2915
|
+
this.w4r_1.b4q();
|
|
2931
2916
|
break;
|
|
2932
2917
|
}
|
|
2933
2918
|
return true;
|
|
2934
2919
|
};
|
|
2935
2920
|
protoOf(StreamingJsonEncoder).y1v = function (descriptor, index, serializer, value) {
|
|
2936
|
-
if (!(value == null) || this.
|
|
2921
|
+
if (!(value == null) || this.b4s_1.d4o_1) {
|
|
2937
2922
|
protoOf(AbstractEncoder).y1v.call(this, descriptor, index, serializer, value);
|
|
2938
2923
|
}
|
|
2939
2924
|
};
|
|
@@ -2942,32 +2927,32 @@
|
|
|
2942
2927
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2943
2928
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2944
2929
|
var tmp_0;
|
|
2945
|
-
var tmp_1 = this.
|
|
2930
|
+
var tmp_1 = this.w4r_1;
|
|
2946
2931
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2947
|
-
tmp_0 = this.
|
|
2932
|
+
tmp_0 = this.w4r_1;
|
|
2948
2933
|
} else {
|
|
2949
|
-
var tmp0 = this.
|
|
2950
|
-
var p1 = this.
|
|
2934
|
+
var tmp0 = this.w4r_1.v4p_1;
|
|
2935
|
+
var p1 = this.c4s_1;
|
|
2951
2936
|
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2952
2937
|
}
|
|
2953
2938
|
var tmp$ret$1 = tmp_0;
|
|
2954
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
2939
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.x4r_1, this.y4r_1, null);
|
|
2955
2940
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2956
2941
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2957
2942
|
var tmp_2;
|
|
2958
|
-
var tmp_3 = this.
|
|
2943
|
+
var tmp_3 = this.w4r_1;
|
|
2959
2944
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2960
|
-
tmp_2 = this.
|
|
2945
|
+
tmp_2 = this.w4r_1;
|
|
2961
2946
|
} else {
|
|
2962
|
-
var tmp0_0 = this.
|
|
2963
|
-
var p1_0 = this.
|
|
2947
|
+
var tmp0_0 = this.w4r_1.v4p_1;
|
|
2948
|
+
var p1_0 = this.c4s_1;
|
|
2964
2949
|
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2965
2950
|
}
|
|
2966
2951
|
var tmp$ret$3 = tmp_2;
|
|
2967
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
2968
|
-
} else if (!(this.
|
|
2952
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.x4r_1, this.y4r_1, null);
|
|
2953
|
+
} else if (!(this.d4s_1 == null)) {
|
|
2969
2954
|
// Inline function 'kotlin.apply' call
|
|
2970
|
-
this.
|
|
2955
|
+
this.e4s_1 = descriptor.s1r();
|
|
2971
2956
|
tmp = this;
|
|
2972
2957
|
} else {
|
|
2973
2958
|
tmp = protoOf(AbstractEncoder).l1v.call(this, descriptor);
|
|
@@ -2975,68 +2960,68 @@
|
|
|
2975
2960
|
return tmp;
|
|
2976
2961
|
};
|
|
2977
2962
|
protoOf(StreamingJsonEncoder).a1v = function () {
|
|
2978
|
-
this.
|
|
2963
|
+
this.w4r_1.e4q('null');
|
|
2979
2964
|
};
|
|
2980
2965
|
protoOf(StreamingJsonEncoder).b1v = function (value) {
|
|
2981
|
-
if (this.
|
|
2966
|
+
if (this.c4s_1) {
|
|
2982
2967
|
this.j1v(value.toString());
|
|
2983
2968
|
} else {
|
|
2984
|
-
this.
|
|
2969
|
+
this.w4r_1.n4q(value);
|
|
2985
2970
|
}
|
|
2986
2971
|
};
|
|
2987
2972
|
protoOf(StreamingJsonEncoder).c1v = function (value) {
|
|
2988
|
-
if (this.
|
|
2973
|
+
if (this.c4s_1) {
|
|
2989
2974
|
this.j1v(value.toString());
|
|
2990
2975
|
} else {
|
|
2991
|
-
this.
|
|
2976
|
+
this.w4r_1.i4q(value);
|
|
2992
2977
|
}
|
|
2993
2978
|
};
|
|
2994
2979
|
protoOf(StreamingJsonEncoder).d1v = function (value) {
|
|
2995
|
-
if (this.
|
|
2980
|
+
if (this.c4s_1) {
|
|
2996
2981
|
this.j1v(value.toString());
|
|
2997
2982
|
} else {
|
|
2998
|
-
this.
|
|
2983
|
+
this.w4r_1.k4q(value);
|
|
2999
2984
|
}
|
|
3000
2985
|
};
|
|
3001
2986
|
protoOf(StreamingJsonEncoder).e1v = function (value) {
|
|
3002
|
-
if (this.
|
|
2987
|
+
if (this.c4s_1) {
|
|
3003
2988
|
this.j1v(value.toString());
|
|
3004
2989
|
} else {
|
|
3005
|
-
this.
|
|
2990
|
+
this.w4r_1.l4q(value);
|
|
3006
2991
|
}
|
|
3007
2992
|
};
|
|
3008
2993
|
protoOf(StreamingJsonEncoder).f1v = function (value) {
|
|
3009
|
-
if (this.
|
|
2994
|
+
if (this.c4s_1) {
|
|
3010
2995
|
this.j1v(value.toString());
|
|
3011
2996
|
} else {
|
|
3012
|
-
this.
|
|
2997
|
+
this.w4r_1.m4q(value);
|
|
3013
2998
|
}
|
|
3014
2999
|
};
|
|
3015
3000
|
protoOf(StreamingJsonEncoder).g1v = function (value) {
|
|
3016
|
-
if (this.
|
|
3001
|
+
if (this.c4s_1) {
|
|
3017
3002
|
this.j1v(value.toString());
|
|
3018
3003
|
} else {
|
|
3019
|
-
this.
|
|
3004
|
+
this.w4r_1.g4q(value);
|
|
3020
3005
|
}
|
|
3021
|
-
if (!this.
|
|
3022
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3006
|
+
if (!this.b4s_1.i4o_1 && !isFinite(value)) {
|
|
3007
|
+
throw InvalidFloatingPointEncoded(value, toString(this.w4r_1.v4p_1));
|
|
3023
3008
|
}
|
|
3024
3009
|
};
|
|
3025
3010
|
protoOf(StreamingJsonEncoder).h1v = function (value) {
|
|
3026
|
-
if (this.
|
|
3011
|
+
if (this.c4s_1) {
|
|
3027
3012
|
this.j1v(value.toString());
|
|
3028
3013
|
} else {
|
|
3029
|
-
this.
|
|
3014
|
+
this.w4r_1.h4q(value);
|
|
3030
3015
|
}
|
|
3031
|
-
if (!this.
|
|
3032
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3016
|
+
if (!this.b4s_1.i4o_1 && !isFinite_0(value)) {
|
|
3017
|
+
throw InvalidFloatingPointEncoded(value, toString(this.w4r_1.v4p_1));
|
|
3033
3018
|
}
|
|
3034
3019
|
};
|
|
3035
3020
|
protoOf(StreamingJsonEncoder).i1v = function (value) {
|
|
3036
3021
|
this.j1v(toString_1(value));
|
|
3037
3022
|
};
|
|
3038
3023
|
protoOf(StreamingJsonEncoder).j1v = function (value) {
|
|
3039
|
-
return this.
|
|
3024
|
+
return this.w4r_1.o4q(value);
|
|
3040
3025
|
};
|
|
3041
3026
|
protoOf(StreamingJsonEncoder).k1v = function (enumDescriptor, index) {
|
|
3042
3027
|
this.j1v(enumDescriptor.q1s(index));
|
|
@@ -3218,16 +3203,16 @@
|
|
|
3218
3203
|
this.q4u_1 = json;
|
|
3219
3204
|
this.r4u_1 = value;
|
|
3220
3205
|
this.s4u_1 = polymorphicDiscriminator;
|
|
3221
|
-
this.t4u_1 = this.
|
|
3206
|
+
this.t4u_1 = this.p4o().o4m_1;
|
|
3222
3207
|
}
|
|
3223
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3208
|
+
protoOf(AbstractJsonTreeDecoder).p4o = function () {
|
|
3224
3209
|
return this.q4u_1;
|
|
3225
3210
|
};
|
|
3226
3211
|
protoOf(AbstractJsonTreeDecoder).m1 = function () {
|
|
3227
3212
|
return this.r4u_1;
|
|
3228
3213
|
};
|
|
3229
3214
|
protoOf(AbstractJsonTreeDecoder).u1u = function () {
|
|
3230
|
-
return this.
|
|
3215
|
+
return this.p4o().u1u();
|
|
3231
3216
|
};
|
|
3232
3217
|
protoOf(AbstractJsonTreeDecoder).v4u = function () {
|
|
3233
3218
|
var tmp0_safe_receiver = this.p28();
|
|
@@ -3244,7 +3229,7 @@
|
|
|
3244
3229
|
protoOf(AbstractJsonTreeDecoder).u4u = function (currentTag) {
|
|
3245
3230
|
return this.r28() + ('.' + currentTag);
|
|
3246
3231
|
};
|
|
3247
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3232
|
+
protoOf(AbstractJsonTreeDecoder).q4o = function () {
|
|
3248
3233
|
return this.v4u();
|
|
3249
3234
|
};
|
|
3250
3235
|
protoOf(AbstractJsonTreeDecoder).e1u = function (deserializer) {
|
|
@@ -3255,14 +3240,14 @@
|
|
|
3255
3240
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3256
3241
|
tmp = true;
|
|
3257
3242
|
} else {
|
|
3258
|
-
tmp = this.
|
|
3243
|
+
tmp = this.p4o().o4m_1.g4o_1;
|
|
3259
3244
|
}
|
|
3260
3245
|
if (tmp) {
|
|
3261
3246
|
tmp$ret$0 = deserializer.t1q(this);
|
|
3262
3247
|
break $l$block;
|
|
3263
3248
|
}
|
|
3264
|
-
var discriminator = classDiscriminator(deserializer.r1q(), this.
|
|
3265
|
-
var tmp0 = this.
|
|
3249
|
+
var discriminator = classDiscriminator(deserializer.r1q(), this.p4o());
|
|
3250
|
+
var tmp0 = this.q4o();
|
|
3266
3251
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3267
3252
|
var serialName = deserializer.r1q().s1r();
|
|
3268
3253
|
if (!(tmp0 instanceof JsonObject)) {
|
|
@@ -3289,7 +3274,7 @@
|
|
|
3289
3274
|
}
|
|
3290
3275
|
var tmp_4 = tmp_2;
|
|
3291
3276
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3292
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3277
|
+
tmp$ret$0 = readPolymorphicJson(this.p4o(), discriminator, jsonTree, actualSerializer);
|
|
3293
3278
|
}
|
|
3294
3279
|
return tmp$ret$0;
|
|
3295
3280
|
};
|
|
@@ -3307,7 +3292,7 @@
|
|
|
3307
3292
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
3308
3293
|
}
|
|
3309
3294
|
if (tmp_0) {
|
|
3310
|
-
var tmp_1 = this.
|
|
3295
|
+
var tmp_1 = this.p4o();
|
|
3311
3296
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3312
3297
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3313
3298
|
var serialName = descriptor.s1r();
|
|
@@ -3321,7 +3306,7 @@
|
|
|
3321
3306
|
} else {
|
|
3322
3307
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3323
3308
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3324
|
-
var this_0 = this.
|
|
3309
|
+
var this_0 = this.p4o();
|
|
3325
3310
|
var keyDescriptor = carrierDescriptor(descriptor.t1s(0), this_0.u1u());
|
|
3326
3311
|
var keyKind = keyDescriptor.m1s();
|
|
3327
3312
|
var tmp_4;
|
|
@@ -3332,7 +3317,7 @@
|
|
|
3332
3317
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3333
3318
|
}
|
|
3334
3319
|
if (tmp_5) {
|
|
3335
|
-
var tmp_6 = this.
|
|
3320
|
+
var tmp_6 = this.p4o();
|
|
3336
3321
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3337
3322
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3338
3323
|
var serialName_0 = descriptor.s1r();
|
|
@@ -3345,7 +3330,7 @@
|
|
|
3345
3330
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3346
3331
|
} else {
|
|
3347
3332
|
if (this_0.o4m_1.b4o_1) {
|
|
3348
|
-
var tmp_9 = this.
|
|
3333
|
+
var tmp_9 = this.p4o();
|
|
3349
3334
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3350
3335
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3351
3336
|
var serialName_1 = descriptor.s1r();
|
|
@@ -3362,7 +3347,7 @@
|
|
|
3362
3347
|
}
|
|
3363
3348
|
tmp = tmp_4;
|
|
3364
3349
|
} else {
|
|
3365
|
-
var tmp_12 = this.
|
|
3350
|
+
var tmp_12 = this.p4o();
|
|
3366
3351
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3367
3352
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3368
3353
|
var serialName_2 = descriptor.s1r();
|
|
@@ -3384,7 +3369,7 @@
|
|
|
3384
3369
|
return !(tmp instanceof JsonNull);
|
|
3385
3370
|
};
|
|
3386
3371
|
protoOf(AbstractJsonTreeDecoder).x4u = function (tag, enumDescriptor) {
|
|
3387
|
-
var tmp = this.
|
|
3372
|
+
var tmp = this.p4o();
|
|
3388
3373
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3389
3374
|
var tmp2 = this.w4u(tag);
|
|
3390
3375
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3658,7 +3643,7 @@
|
|
|
3658
3643
|
}
|
|
3659
3644
|
}
|
|
3660
3645
|
var result = tmp$ret$4;
|
|
3661
|
-
var specialFp = this.
|
|
3646
|
+
var specialFp = this.p4o().o4m_1.i4o_1;
|
|
3662
3647
|
if (specialFp || isFinite(result))
|
|
3663
3648
|
return result;
|
|
3664
3649
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v4u()));
|
|
@@ -3700,7 +3685,7 @@
|
|
|
3700
3685
|
}
|
|
3701
3686
|
}
|
|
3702
3687
|
var result = tmp$ret$4;
|
|
3703
|
-
var specialFp = this.
|
|
3688
|
+
var specialFp = this.p4o().o4m_1.i4o_1;
|
|
3704
3689
|
if (specialFp || isFinite_0(result))
|
|
3705
3690
|
return result;
|
|
3706
3691
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v4u()));
|
|
@@ -3759,10 +3744,10 @@
|
|
|
3759
3744
|
var value_0 = value;
|
|
3760
3745
|
if (!(value_0 instanceof JsonLiteral))
|
|
3761
3746
|
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.u4u(tag), toString(this.v4u()));
|
|
3762
|
-
if (!value_0.
|
|
3747
|
+
if (!value_0.a4p_1 && !this.p4o().o4m_1.a4o_1) {
|
|
3763
3748
|
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.u4u(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.v4u()));
|
|
3764
3749
|
}
|
|
3765
|
-
return value_0.
|
|
3750
|
+
return value_0.c4p_1;
|
|
3766
3751
|
};
|
|
3767
3752
|
protoOf(AbstractJsonTreeDecoder).c29 = function (tag) {
|
|
3768
3753
|
return this.h4v((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
@@ -3770,7 +3755,7 @@
|
|
|
3770
3755
|
protoOf(AbstractJsonTreeDecoder).i4v = function (tag, inlineDescriptor) {
|
|
3771
3756
|
var tmp;
|
|
3772
3757
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3773
|
-
var tmp_0 = this.
|
|
3758
|
+
var tmp_0 = this.p4o();
|
|
3774
3759
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3775
3760
|
var tmp2 = this.w4u(tag);
|
|
3776
3761
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3783,7 +3768,7 @@
|
|
|
3783
3768
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3784
3769
|
}
|
|
3785
3770
|
var lexer = StringJsonLexer_0(tmp_0, tmp2.c3f());
|
|
3786
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3771
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.p4o());
|
|
3787
3772
|
} else {
|
|
3788
3773
|
tmp = protoOf(NamedValueDecoder).e29.call(this, tag, inlineDescriptor);
|
|
3789
3774
|
}
|
|
@@ -3793,10 +3778,10 @@
|
|
|
3793
3778
|
return this.i4v((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3794
3779
|
};
|
|
3795
3780
|
protoOf(AbstractJsonTreeDecoder).c1u = function (descriptor) {
|
|
3796
|
-
return !(this.p28() == null) ? protoOf(NamedValueDecoder).c1u.call(this, descriptor) : (new JsonPrimitiveDecoder(this.
|
|
3781
|
+
return !(this.p28() == null) ? protoOf(NamedValueDecoder).c1u.call(this, descriptor) : (new JsonPrimitiveDecoder(this.p4o(), this.m1(), this.s4u_1)).c1u(descriptor);
|
|
3797
3782
|
};
|
|
3798
3783
|
function setForceNull($this, descriptor, index) {
|
|
3799
|
-
$this.s4v_1 = (!$this.
|
|
3784
|
+
$this.s4v_1 = (!$this.p4o().o4m_1.d4o_1 && !descriptor.u1s(index) && descriptor.t1s(index).f1s());
|
|
3800
3785
|
return $this.s4v_1;
|
|
3801
3786
|
}
|
|
3802
3787
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
@@ -3830,7 +3815,7 @@
|
|
|
3830
3815
|
if (tmp) {
|
|
3831
3816
|
if (!this.t4u_1.f4o_1)
|
|
3832
3817
|
return index;
|
|
3833
|
-
var tmp0 = this.
|
|
3818
|
+
var tmp0 = this.p4o();
|
|
3834
3819
|
var tmp$ret$3;
|
|
3835
3820
|
$l$block_2: {
|
|
3836
3821
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -3892,7 +3877,7 @@
|
|
|
3892
3877
|
return !this.s4v_1 && protoOf(AbstractJsonTreeDecoder).q1t.call(this);
|
|
3893
3878
|
};
|
|
3894
3879
|
protoOf(JsonTreeDecoder).l28 = function (descriptor, index) {
|
|
3895
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3880
|
+
var strategy = namingStrategy(descriptor, this.p4o());
|
|
3896
3881
|
var baseName = descriptor.q1s(index);
|
|
3897
3882
|
if (strategy == null) {
|
|
3898
3883
|
if (!this.t4u_1.j4o_1)
|
|
@@ -3900,7 +3885,7 @@
|
|
|
3900
3885
|
if (this.m1().u2().h2(baseName))
|
|
3901
3886
|
return baseName;
|
|
3902
3887
|
}
|
|
3903
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3888
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.p4o(), descriptor);
|
|
3904
3889
|
// Inline function 'kotlin.collections.find' call
|
|
3905
3890
|
var tmp0 = this.m1().u2();
|
|
3906
3891
|
var tmp$ret$1;
|
|
@@ -3923,7 +3908,7 @@
|
|
|
3923
3908
|
// Inline function 'kotlin.let' call
|
|
3924
3909
|
return tmp0_safe_receiver;
|
|
3925
3910
|
}
|
|
3926
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3911
|
+
var fallbackName = strategy == null ? null : strategy.j4r(descriptor, index, baseName);
|
|
3927
3912
|
return fallbackName == null ? baseName : fallbackName;
|
|
3928
3913
|
};
|
|
3929
3914
|
protoOf(JsonTreeDecoder).w4u = function (tag) {
|
|
@@ -3934,7 +3919,7 @@
|
|
|
3934
3919
|
};
|
|
3935
3920
|
protoOf(JsonTreeDecoder).f1u = function (descriptor) {
|
|
3936
3921
|
if (descriptor === this.q4v_1) {
|
|
3937
|
-
var tmp = this.
|
|
3922
|
+
var tmp = this.p4o();
|
|
3938
3923
|
var tmp2 = this.v4u();
|
|
3939
3924
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3940
3925
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
@@ -3951,7 +3936,7 @@
|
|
|
3951
3936
|
};
|
|
3952
3937
|
protoOf(JsonTreeDecoder).g1u = function (descriptor) {
|
|
3953
3938
|
var tmp;
|
|
3954
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
3939
|
+
if (ignoreUnknownKeys(descriptor, this.p4o())) {
|
|
3955
3940
|
tmp = true;
|
|
3956
3941
|
} else {
|
|
3957
3942
|
var tmp_0 = descriptor.m1s();
|
|
@@ -3959,15 +3944,15 @@
|
|
|
3959
3944
|
}
|
|
3960
3945
|
if (tmp)
|
|
3961
3946
|
return Unit_instance;
|
|
3962
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3947
|
+
var strategy = namingStrategy(descriptor, this.p4o());
|
|
3963
3948
|
var tmp_1;
|
|
3964
3949
|
if (strategy == null && !this.t4u_1.j4o_1) {
|
|
3965
3950
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3966
3951
|
} else if (!(strategy == null)) {
|
|
3967
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3952
|
+
tmp_1 = deserializationNamesMap(this.p4o(), descriptor).u2();
|
|
3968
3953
|
} else {
|
|
3969
3954
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3970
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
3955
|
+
var tmp0_safe_receiver = get_schemaCache(this.p4o()).u4t(descriptor, get_JsonDeserializationNamesKey());
|
|
3971
3956
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3972
3957
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2();
|
|
3973
3958
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -4170,7 +4155,7 @@
|
|
|
4170
4155
|
var currentPosition = startPosition;
|
|
4171
4156
|
currentPosition = $this.a4x(currentPosition);
|
|
4172
4157
|
if (currentPosition === -1) {
|
|
4173
|
-
$this.
|
|
4158
|
+
$this.f4r('Expected escape sequence to continue, got EOF');
|
|
4174
4159
|
}
|
|
4175
4160
|
var tmp = $this.z4w();
|
|
4176
4161
|
var _unary__edvuaz = currentPosition;
|
|
@@ -4183,7 +4168,7 @@
|
|
|
4183
4168
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4184
4169
|
var c = escapeToChar(tmp$ret$0);
|
|
4185
4170
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4186
|
-
$this.
|
|
4171
|
+
$this.f4r("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4187
4172
|
}
|
|
4188
4173
|
$this.d4n_1.s(c);
|
|
4189
4174
|
return currentPosition;
|
|
@@ -4193,7 +4178,7 @@
|
|
|
4193
4178
|
$this.a4n_1 = startPos;
|
|
4194
4179
|
$this.b4x();
|
|
4195
4180
|
if (($this.a4n_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4196
|
-
$this.
|
|
4181
|
+
$this.f4r('Unexpected EOF during unicode escape');
|
|
4197
4182
|
}
|
|
4198
4183
|
return appendHex($this, source, $this.a4n_1);
|
|
4199
4184
|
}
|
|
@@ -4222,14 +4207,14 @@
|
|
|
4222
4207
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4223
4208
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4224
4209
|
} else {
|
|
4225
|
-
$this.
|
|
4210
|
+
$this.f4r("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4226
4211
|
}
|
|
4227
4212
|
return tmp;
|
|
4228
4213
|
}
|
|
4229
4214
|
function consumeBoolean2($this, start) {
|
|
4230
4215
|
var current = $this.a4x(start);
|
|
4231
4216
|
if (current >= charSequenceLength($this.z4w()) || current === -1) {
|
|
4232
|
-
$this.
|
|
4217
|
+
$this.f4r('EOF');
|
|
4233
4218
|
}
|
|
4234
4219
|
var tmp = $this.z4w();
|
|
4235
4220
|
var _unary__edvuaz = current;
|
|
@@ -4250,14 +4235,14 @@
|
|
|
4250
4235
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4251
4236
|
tmp_0 = false;
|
|
4252
4237
|
} else {
|
|
4253
|
-
$this.
|
|
4238
|
+
$this.f4r("Expected valid boolean literal prefix, but had '" + $this.n4s() + "'");
|
|
4254
4239
|
}
|
|
4255
4240
|
}
|
|
4256
4241
|
return tmp_0;
|
|
4257
4242
|
}
|
|
4258
4243
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4259
4244
|
if ((charSequenceLength($this.z4w()) - current | 0) < literalSuffix.length) {
|
|
4260
|
-
$this.
|
|
4245
|
+
$this.f4r('Unexpected end of boolean literal');
|
|
4261
4246
|
}
|
|
4262
4247
|
var inductionVariable = 0;
|
|
4263
4248
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4271,7 +4256,7 @@
|
|
|
4271
4256
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4272
4257
|
// Inline function 'kotlin.code' call
|
|
4273
4258
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4274
|
-
$this.
|
|
4259
|
+
$this.f4r("Expected valid boolean literal prefix, but had '" + $this.n4s() + "'");
|
|
4275
4260
|
}
|
|
4276
4261
|
}
|
|
4277
4262
|
while (inductionVariable <= last);
|
|
@@ -4321,20 +4306,20 @@
|
|
|
4321
4306
|
return c === _Char___init__impl__6a9atx(125) || c === _Char___init__impl__6a9atx(93) || (c === _Char___init__impl__6a9atx(58) || c === _Char___init__impl__6a9atx(44)) ? false : true;
|
|
4322
4307
|
};
|
|
4323
4308
|
protoOf(AbstractJsonLexer).e4n = function () {
|
|
4324
|
-
var nextToken = this.
|
|
4309
|
+
var nextToken = this.p4s();
|
|
4325
4310
|
if (!(nextToken === 10)) {
|
|
4326
|
-
this.
|
|
4311
|
+
this.f4r('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.z4w(), this.a4n_1 - 1 | 0)) + ' instead');
|
|
4327
4312
|
}
|
|
4328
4313
|
};
|
|
4329
|
-
protoOf(AbstractJsonLexer).
|
|
4330
|
-
var token = this.
|
|
4314
|
+
protoOf(AbstractJsonLexer).j4s = function (expected) {
|
|
4315
|
+
var token = this.p4s();
|
|
4331
4316
|
if (!(token === expected)) {
|
|
4332
4317
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4333
4318
|
var expected_0 = tokenDescription(expected);
|
|
4334
4319
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4335
4320
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4336
4321
|
var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4337
|
-
this.
|
|
4322
|
+
this.f4r(tmp$ret$0, position);
|
|
4338
4323
|
}
|
|
4339
4324
|
return token;
|
|
4340
4325
|
};
|
|
@@ -4346,7 +4331,7 @@
|
|
|
4346
4331
|
var snapshot = this.a4n_1;
|
|
4347
4332
|
try {
|
|
4348
4333
|
this.a4n_1 = this.a4n_1 - 1 | 0;
|
|
4349
|
-
tmp$ret$1 = this.
|
|
4334
|
+
tmp$ret$1 = this.n4s();
|
|
4350
4335
|
break $l$block;
|
|
4351
4336
|
}finally {
|
|
4352
4337
|
this.a4n_1 = snapshot;
|
|
@@ -4354,7 +4339,7 @@
|
|
|
4354
4339
|
}
|
|
4355
4340
|
var inputLiteral = tmp$ret$1;
|
|
4356
4341
|
if (inputLiteral === 'null') {
|
|
4357
|
-
this.
|
|
4342
|
+
this.e4r("Expected string literal but 'null' literal was found", this.a4n_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4358
4343
|
}
|
|
4359
4344
|
}
|
|
4360
4345
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
@@ -4363,9 +4348,9 @@
|
|
|
4363
4348
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4364
4349
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4365
4350
|
var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4366
|
-
this.
|
|
4351
|
+
this.f4r(tmp$ret$2, position);
|
|
4367
4352
|
};
|
|
4368
|
-
protoOf(AbstractJsonLexer).
|
|
4353
|
+
protoOf(AbstractJsonLexer).k4s = function () {
|
|
4369
4354
|
var source = this.z4w();
|
|
4370
4355
|
var cpos = this.a4n_1;
|
|
4371
4356
|
$l$loop_0: while (true) {
|
|
@@ -4410,16 +4395,16 @@
|
|
|
4410
4395
|
return $super === VOID ? this.y4t(doConsume) : $super.y4t.call(this, doConsume);
|
|
4411
4396
|
};
|
|
4412
4397
|
protoOf(AbstractJsonLexer).z4t = function (isLenient) {
|
|
4413
|
-
var token = this.
|
|
4398
|
+
var token = this.k4s();
|
|
4414
4399
|
var tmp;
|
|
4415
4400
|
if (isLenient) {
|
|
4416
4401
|
if (!(token === 1) && !(token === 0))
|
|
4417
4402
|
return null;
|
|
4418
|
-
tmp = this.
|
|
4403
|
+
tmp = this.n4s();
|
|
4419
4404
|
} else {
|
|
4420
4405
|
if (!(token === 1))
|
|
4421
4406
|
return null;
|
|
4422
|
-
tmp = this.
|
|
4407
|
+
tmp = this.m4s();
|
|
4423
4408
|
}
|
|
4424
4409
|
var string = tmp;
|
|
4425
4410
|
this.c4n_1 = string;
|
|
@@ -4433,7 +4418,7 @@
|
|
|
4433
4418
|
var this_0 = this.z4w();
|
|
4434
4419
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4435
4420
|
};
|
|
4436
|
-
protoOf(AbstractJsonLexer).
|
|
4421
|
+
protoOf(AbstractJsonLexer).m4s = function () {
|
|
4437
4422
|
if (!(this.c4n_1 == null)) {
|
|
4438
4423
|
return takePeeked(this);
|
|
4439
4424
|
}
|
|
@@ -4449,7 +4434,7 @@
|
|
|
4449
4434
|
usedAppend = true;
|
|
4450
4435
|
currentPosition = this.a4x(appendEscape(this, lastPosition, currentPosition));
|
|
4451
4436
|
if (currentPosition === -1) {
|
|
4452
|
-
this.
|
|
4437
|
+
this.f4r('Unexpected EOF', currentPosition);
|
|
4453
4438
|
}
|
|
4454
4439
|
lastPosition = currentPosition;
|
|
4455
4440
|
} else {
|
|
@@ -4459,7 +4444,7 @@
|
|
|
4459
4444
|
this.y4w(lastPosition, currentPosition);
|
|
4460
4445
|
currentPosition = this.a4x(currentPosition);
|
|
4461
4446
|
if (currentPosition === -1) {
|
|
4462
|
-
this.
|
|
4447
|
+
this.f4r('Unexpected EOF', currentPosition);
|
|
4463
4448
|
}
|
|
4464
4449
|
lastPosition = currentPosition;
|
|
4465
4450
|
}
|
|
@@ -4477,26 +4462,26 @@
|
|
|
4477
4462
|
return string;
|
|
4478
4463
|
};
|
|
4479
4464
|
protoOf(AbstractJsonLexer).d4u = function () {
|
|
4480
|
-
var result = this.
|
|
4465
|
+
var result = this.n4s();
|
|
4481
4466
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4482
|
-
this.
|
|
4467
|
+
this.f4r("Unexpected 'null' value instead of string literal");
|
|
4483
4468
|
}
|
|
4484
4469
|
return result;
|
|
4485
4470
|
};
|
|
4486
|
-
protoOf(AbstractJsonLexer).
|
|
4471
|
+
protoOf(AbstractJsonLexer).n4s = function () {
|
|
4487
4472
|
if (!(this.c4n_1 == null)) {
|
|
4488
4473
|
return takePeeked(this);
|
|
4489
4474
|
}
|
|
4490
4475
|
var current = this.c4x();
|
|
4491
4476
|
if (current >= charSequenceLength(this.z4w()) || current === -1) {
|
|
4492
|
-
this.
|
|
4477
|
+
this.f4r('EOF', current);
|
|
4493
4478
|
}
|
|
4494
4479
|
var token = charToTokenClass(charSequenceGet(this.z4w(), current));
|
|
4495
4480
|
if (token === 1) {
|
|
4496
|
-
return this.
|
|
4481
|
+
return this.m4s();
|
|
4497
4482
|
}
|
|
4498
4483
|
if (!(token === 0)) {
|
|
4499
|
-
this.
|
|
4484
|
+
this.f4r('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.z4w(), current)));
|
|
4500
4485
|
}
|
|
4501
4486
|
var usedAppend = false;
|
|
4502
4487
|
while (charToTokenClass(charSequenceGet(this.z4w(), current)) === 0) {
|
|
@@ -4529,16 +4514,16 @@
|
|
|
4529
4514
|
protoOf(AbstractJsonLexer).b4u = function (allowLenientStrings) {
|
|
4530
4515
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4531
4516
|
var tokenStack = ArrayList_init_$Create$();
|
|
4532
|
-
var lastToken = this.
|
|
4517
|
+
var lastToken = this.k4s();
|
|
4533
4518
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4534
|
-
this.
|
|
4519
|
+
this.n4s();
|
|
4535
4520
|
return Unit_instance;
|
|
4536
4521
|
}
|
|
4537
4522
|
$l$loop: while (true) {
|
|
4538
|
-
lastToken = this.
|
|
4523
|
+
lastToken = this.k4s();
|
|
4539
4524
|
if (lastToken === 1) {
|
|
4540
4525
|
if (allowLenientStrings)
|
|
4541
|
-
this.
|
|
4526
|
+
this.n4s();
|
|
4542
4527
|
else
|
|
4543
4528
|
this.c4u();
|
|
4544
4529
|
continue $l$loop;
|
|
@@ -4555,9 +4540,9 @@
|
|
|
4555
4540
|
throw JsonDecodingException_0(this.a4n_1, 'found } instead of ] at path: ' + this.b4n_1.toString(), this.z4w());
|
|
4556
4541
|
removeLast(tokenStack);
|
|
4557
4542
|
} else if (tmp0_subject === 10) {
|
|
4558
|
-
this.
|
|
4543
|
+
this.f4r('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4559
4544
|
}
|
|
4560
|
-
this.
|
|
4545
|
+
this.p4s();
|
|
4561
4546
|
if (tokenStack.g1() === 0)
|
|
4562
4547
|
return Unit_instance;
|
|
4563
4548
|
}
|
|
@@ -4568,9 +4553,9 @@
|
|
|
4568
4553
|
protoOf(AbstractJsonLexer).a4u = function (key) {
|
|
4569
4554
|
var processed = this.an(0, this.a4n_1);
|
|
4570
4555
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4571
|
-
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.b4n_1.
|
|
4556
|
+
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.b4n_1.s4r() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.z4w(), lastIndexOf_0))));
|
|
4572
4557
|
};
|
|
4573
|
-
protoOf(AbstractJsonLexer).
|
|
4558
|
+
protoOf(AbstractJsonLexer).e4r = function (message, position, hint) {
|
|
4574
4559
|
var tmp;
|
|
4575
4560
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4576
4561
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4579,24 +4564,24 @@
|
|
|
4579
4564
|
tmp = '\n' + hint;
|
|
4580
4565
|
}
|
|
4581
4566
|
var hintMessage = tmp;
|
|
4582
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.b4n_1.
|
|
4567
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.b4n_1.s4r() + hintMessage, this.z4w());
|
|
4583
4568
|
};
|
|
4584
|
-
protoOf(AbstractJsonLexer).
|
|
4569
|
+
protoOf(AbstractJsonLexer).f4r = function (message, position, hint, $super) {
|
|
4585
4570
|
position = position === VOID ? this.a4n_1 : position;
|
|
4586
4571
|
hint = hint === VOID ? '' : hint;
|
|
4587
|
-
return $super === VOID ? this.
|
|
4572
|
+
return $super === VOID ? this.e4r(message, position, hint) : $super.e4r.call(this, message, position, hint);
|
|
4588
4573
|
};
|
|
4589
4574
|
protoOf(AbstractJsonLexer).l4u = function () {
|
|
4590
4575
|
var current = this.c4x();
|
|
4591
4576
|
current = this.a4x(current);
|
|
4592
4577
|
if (current >= charSequenceLength(this.z4w()) || current === -1) {
|
|
4593
|
-
this.
|
|
4578
|
+
this.f4r('EOF');
|
|
4594
4579
|
}
|
|
4595
4580
|
var tmp;
|
|
4596
4581
|
if (charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4597
4582
|
current = current + 1 | 0;
|
|
4598
4583
|
if (current === charSequenceLength(this.z4w())) {
|
|
4599
|
-
this.
|
|
4584
|
+
this.f4r('EOF');
|
|
4600
4585
|
}
|
|
4601
4586
|
tmp = true;
|
|
4602
4587
|
} else {
|
|
@@ -4613,7 +4598,7 @@
|
|
|
4613
4598
|
var ch = charSequenceGet(this.z4w(), current);
|
|
4614
4599
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
4615
4600
|
if (current === start) {
|
|
4616
|
-
this.
|
|
4601
|
+
this.f4r('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
4617
4602
|
}
|
|
4618
4603
|
isExponentPositive = true;
|
|
4619
4604
|
hasExponent = true;
|
|
@@ -4622,7 +4607,7 @@
|
|
|
4622
4607
|
}
|
|
4623
4608
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
4624
4609
|
if (current === start) {
|
|
4625
|
-
this.
|
|
4610
|
+
this.f4r("Unexpected symbol '-' in numeric literal");
|
|
4626
4611
|
}
|
|
4627
4612
|
isExponentPositive = false;
|
|
4628
4613
|
current = current + 1 | 0;
|
|
@@ -4630,7 +4615,7 @@
|
|
|
4630
4615
|
}
|
|
4631
4616
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
4632
4617
|
if (current === start) {
|
|
4633
|
-
this.
|
|
4618
|
+
this.f4r("Unexpected symbol '+' in numeric literal");
|
|
4634
4619
|
}
|
|
4635
4620
|
isExponentPositive = true;
|
|
4636
4621
|
current = current + 1 | 0;
|
|
@@ -4638,7 +4623,7 @@
|
|
|
4638
4623
|
}
|
|
4639
4624
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
4640
4625
|
if (!(current === start)) {
|
|
4641
|
-
this.
|
|
4626
|
+
this.f4r("Unexpected symbol '-' in numeric literal");
|
|
4642
4627
|
}
|
|
4643
4628
|
isNegative = true;
|
|
4644
4629
|
current = current + 1 | 0;
|
|
@@ -4650,7 +4635,7 @@
|
|
|
4650
4635
|
current = current + 1 | 0;
|
|
4651
4636
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
4652
4637
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
4653
|
-
this.
|
|
4638
|
+
this.f4r("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
4654
4639
|
}
|
|
4655
4640
|
if (hasExponent) {
|
|
4656
4641
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -4666,19 +4651,19 @@
|
|
|
4666
4651
|
var this_3 = multiply(this_2, fromInt(10));
|
|
4667
4652
|
accumulator = subtract(this_3, fromInt(digit));
|
|
4668
4653
|
if (accumulator > 0n) {
|
|
4669
|
-
this.
|
|
4654
|
+
this.f4r('Numeric value overflow');
|
|
4670
4655
|
}
|
|
4671
4656
|
}
|
|
4672
4657
|
var hasChars = !(current === start);
|
|
4673
4658
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
4674
|
-
this.
|
|
4659
|
+
this.f4r('Expected numeric literal');
|
|
4675
4660
|
}
|
|
4676
4661
|
if (hasQuotation) {
|
|
4677
4662
|
if (!hasChars) {
|
|
4678
|
-
this.
|
|
4663
|
+
this.f4r('EOF');
|
|
4679
4664
|
}
|
|
4680
4665
|
if (!(charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34))) {
|
|
4681
|
-
this.
|
|
4666
|
+
this.f4r('Expected closing quotation mark');
|
|
4682
4667
|
}
|
|
4683
4668
|
current = current + 1 | 0;
|
|
4684
4669
|
}
|
|
@@ -4686,11 +4671,11 @@
|
|
|
4686
4671
|
if (hasExponent) {
|
|
4687
4672
|
var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
4688
4673
|
if (doubleAccumulator > toNumber(9223372036854775807n) || doubleAccumulator < toNumber(-9223372036854775808n)) {
|
|
4689
|
-
this.
|
|
4674
|
+
this.f4r('Numeric value overflow');
|
|
4690
4675
|
}
|
|
4691
4676
|
// Inline function 'kotlin.math.floor' call
|
|
4692
4677
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
4693
|
-
this.
|
|
4678
|
+
this.f4r("Can't convert " + doubleAccumulator + ' to Long');
|
|
4694
4679
|
}
|
|
4695
4680
|
accumulator = numberToLong(doubleAccumulator);
|
|
4696
4681
|
}
|
|
@@ -4700,27 +4685,27 @@
|
|
|
4700
4685
|
} else if (!(accumulator === -9223372036854775808n)) {
|
|
4701
4686
|
tmp_0 = negate(accumulator);
|
|
4702
4687
|
} else {
|
|
4703
|
-
this.
|
|
4688
|
+
this.f4r('Numeric value overflow');
|
|
4704
4689
|
}
|
|
4705
4690
|
return tmp_0;
|
|
4706
4691
|
};
|
|
4707
|
-
protoOf(AbstractJsonLexer).
|
|
4692
|
+
protoOf(AbstractJsonLexer).d4p = function () {
|
|
4708
4693
|
var result = this.l4u();
|
|
4709
|
-
var next = this.
|
|
4694
|
+
var next = this.p4s();
|
|
4710
4695
|
if (!(next === 10)) {
|
|
4711
4696
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4712
4697
|
var expected = tokenDescription(10);
|
|
4713
4698
|
var position = true ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
4714
4699
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
4715
4700
|
var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
4716
|
-
this.
|
|
4701
|
+
this.f4r(tmp$ret$0, position);
|
|
4717
4702
|
}
|
|
4718
4703
|
return result;
|
|
4719
4704
|
};
|
|
4720
4705
|
protoOf(AbstractJsonLexer).k4u = function () {
|
|
4721
4706
|
var current = this.c4x();
|
|
4722
4707
|
if (current === charSequenceLength(this.z4w())) {
|
|
4723
|
-
this.
|
|
4708
|
+
this.f4r('EOF');
|
|
4724
4709
|
}
|
|
4725
4710
|
var tmp;
|
|
4726
4711
|
if (charSequenceGet(this.z4w(), current) === _Char___init__impl__6a9atx(34)) {
|
|
@@ -4733,10 +4718,10 @@
|
|
|
4733
4718
|
var result = consumeBoolean2(this, current);
|
|
4734
4719
|
if (hasQuotation) {
|
|
4735
4720
|
if (this.a4n_1 === charSequenceLength(this.z4w())) {
|
|
4736
|
-
this.
|
|
4721
|
+
this.f4r('EOF');
|
|
4737
4722
|
}
|
|
4738
4723
|
if (!(charSequenceGet(this.z4w(), this.a4n_1) === _Char___init__impl__6a9atx(34))) {
|
|
4739
|
-
this.
|
|
4724
|
+
this.f4r('Expected closing quotation mark');
|
|
4740
4725
|
}
|
|
4741
4726
|
this.a4n_1 = this.a4n_1 + 1 | 0;
|
|
4742
4727
|
}
|
|
@@ -4836,7 +4821,7 @@
|
|
|
4836
4821
|
function StringJsonLexerWithComments(source) {
|
|
4837
4822
|
StringJsonLexer.call(this, source);
|
|
4838
4823
|
}
|
|
4839
|
-
protoOf(StringJsonLexerWithComments).
|
|
4824
|
+
protoOf(StringJsonLexerWithComments).p4s = function () {
|
|
4840
4825
|
var source = this.z4w();
|
|
4841
4826
|
var cpos = this.c4x();
|
|
4842
4827
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4844,7 +4829,7 @@
|
|
|
4844
4829
|
this.a4n_1 = cpos + 1 | 0;
|
|
4845
4830
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
4846
4831
|
};
|
|
4847
|
-
protoOf(StringJsonLexerWithComments).
|
|
4832
|
+
protoOf(StringJsonLexerWithComments).l4s = function () {
|
|
4848
4833
|
var current = this.c4x();
|
|
4849
4834
|
if (current >= this.z4w().length || current === -1)
|
|
4850
4835
|
return false;
|
|
@@ -4865,7 +4850,7 @@
|
|
|
4865
4850
|
this.e4x(expected);
|
|
4866
4851
|
}
|
|
4867
4852
|
};
|
|
4868
|
-
protoOf(StringJsonLexerWithComments).
|
|
4853
|
+
protoOf(StringJsonLexerWithComments).k4s = function () {
|
|
4869
4854
|
var source = this.z4w();
|
|
4870
4855
|
var cpos = this.c4x();
|
|
4871
4856
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4899,7 +4884,7 @@
|
|
|
4899
4884
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
4900
4885
|
if (current === -1) {
|
|
4901
4886
|
this.a4n_1 = source.length;
|
|
4902
|
-
this.
|
|
4887
|
+
this.f4r('Expected end of the block comment: "*/", but had EOF instead');
|
|
4903
4888
|
} else {
|
|
4904
4889
|
current = current + 2 | 0;
|
|
4905
4890
|
}
|
|
@@ -4921,7 +4906,7 @@
|
|
|
4921
4906
|
protoOf(StringJsonLexer).a4x = function (position) {
|
|
4922
4907
|
return position < this.z4w().length ? position : -1;
|
|
4923
4908
|
};
|
|
4924
|
-
protoOf(StringJsonLexer).
|
|
4909
|
+
protoOf(StringJsonLexer).p4s = function () {
|
|
4925
4910
|
var source = this.z4w();
|
|
4926
4911
|
var cpos = this.a4n_1;
|
|
4927
4912
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
@@ -4937,7 +4922,7 @@
|
|
|
4937
4922
|
this.a4n_1 = source.length;
|
|
4938
4923
|
return 10;
|
|
4939
4924
|
};
|
|
4940
|
-
protoOf(StringJsonLexer).
|
|
4925
|
+
protoOf(StringJsonLexer).l4s = function () {
|
|
4941
4926
|
var current = this.a4n_1;
|
|
4942
4927
|
if (current === -1)
|
|
4943
4928
|
return false;
|
|
@@ -4998,13 +4983,13 @@
|
|
|
4998
4983
|
var current = this.a4n_1;
|
|
4999
4984
|
var closingQuote = indexOf_0(this.z4w(), _Char___init__impl__6a9atx(34), current);
|
|
5000
4985
|
if (closingQuote === -1) {
|
|
5001
|
-
this.
|
|
4986
|
+
this.n4s();
|
|
5002
4987
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
5003
4988
|
var expected = tokenDescription(1);
|
|
5004
4989
|
var position = false ? this.a4n_1 - 1 | 0 : this.a4n_1;
|
|
5005
4990
|
var s = this.a4n_1 === charSequenceLength(this.z4w()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z4w(), position));
|
|
5006
4991
|
var tmp$ret$0 = 'Expected ' + expected + ", but had '" + s + "' instead";
|
|
5007
|
-
this.
|
|
4992
|
+
this.f4r(tmp$ret$0, position);
|
|
5008
4993
|
}
|
|
5009
4994
|
var inductionVariable = current;
|
|
5010
4995
|
if (inductionVariable < closingQuote)
|
|
@@ -5022,13 +5007,13 @@
|
|
|
5022
5007
|
protoOf(StringJsonLexer).e4u = function (keyToMatch, isLenient) {
|
|
5023
5008
|
var positionSnapshot = this.a4n_1;
|
|
5024
5009
|
try {
|
|
5025
|
-
if (!(this.
|
|
5010
|
+
if (!(this.p4s() === 6))
|
|
5026
5011
|
return null;
|
|
5027
5012
|
var firstKey = this.z4t(isLenient);
|
|
5028
5013
|
if (!(firstKey === keyToMatch))
|
|
5029
5014
|
return null;
|
|
5030
5015
|
this.f4x();
|
|
5031
|
-
if (!(this.
|
|
5016
|
+
if (!(this.p4s() === 5))
|
|
5032
5017
|
return null;
|
|
5033
5018
|
return this.z4t(isLenient);
|
|
5034
5019
|
}finally {
|
|
@@ -5045,16 +5030,16 @@
|
|
|
5045
5030
|
function JsonToStringWriter() {
|
|
5046
5031
|
this.r4m_1 = StringBuilder_init_$Create$_0(128);
|
|
5047
5032
|
}
|
|
5048
|
-
protoOf(JsonToStringWriter).
|
|
5033
|
+
protoOf(JsonToStringWriter).j4q = function (value) {
|
|
5049
5034
|
this.r4m_1.wb(value);
|
|
5050
5035
|
};
|
|
5051
|
-
protoOf(JsonToStringWriter).
|
|
5036
|
+
protoOf(JsonToStringWriter).d4q = function (char) {
|
|
5052
5037
|
this.r4m_1.s(char);
|
|
5053
5038
|
};
|
|
5054
|
-
protoOf(JsonToStringWriter).
|
|
5039
|
+
protoOf(JsonToStringWriter).f4q = function (text) {
|
|
5055
5040
|
this.r4m_1.q(text);
|
|
5056
5041
|
};
|
|
5057
|
-
protoOf(JsonToStringWriter).
|
|
5042
|
+
protoOf(JsonToStringWriter).p4q = function (text) {
|
|
5058
5043
|
printQuoted(this.r4m_1, text);
|
|
5059
5044
|
};
|
|
5060
5045
|
protoOf(JsonToStringWriter).h2v = function () {
|
|
@@ -5081,8 +5066,7 @@
|
|
|
5081
5066
|
//endregion
|
|
5082
5067
|
//region block: exports
|
|
5083
5068
|
_.$_$ = _.$_$ || {};
|
|
5084
|
-
_.$_$.a =
|
|
5085
|
-
_.$_$.b = Json_0;
|
|
5069
|
+
_.$_$.a = Json_0;
|
|
5086
5070
|
//endregion
|
|
5087
5071
|
return _;
|
|
5088
5072
|
}));
|