@solibo/solibo-sdk 1.0.30 → 1.0.31-SNAPSHOT
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/KmLogging-logging.js +91 -91
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/KotlinBigInteger-bignum.js +1111 -1111
- package/MultiplatformSettings-multiplatform-settings.js +16 -16
- package/Stately-stately-concurrency.js +4 -4
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/kotlin-kotlin-stdlib.js +15 -15
- 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 +621 -606
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +224 -224
- package/ktor-ktor-client-core.js +39 -39
- package/ktor-ktor-client-logging.js +519 -519
- package/ktor-ktor-http-cio.js +3 -3
- package/ktor-ktor-http.js +6 -6
- package/ktor-ktor-serialization.js +1 -1
- package/ktor-ktor-utils.js +7 -7
- package/ktor-ktor-websockets.js +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +17163 -17108
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +25 -25
- package/solibo-sdk-sdk.js +1397 -1397
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
var charSequenceGet = kotlin_kotlin.$_$.ub;
|
|
30
30
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k2;
|
|
31
31
|
var equals = kotlin_kotlin.$_$.zb;
|
|
32
|
+
var THROW_CCE = kotlin_kotlin.$_$.gi;
|
|
33
|
+
var getStringHashCode = kotlin_kotlin.$_$.gc;
|
|
32
34
|
var toString_0 = kotlin_kotlin.$_$.lj;
|
|
33
35
|
var Enum = kotlin_kotlin.$_$.wh;
|
|
34
36
|
var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
@@ -38,13 +40,11 @@
|
|
|
38
40
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
39
41
|
var hashCode = kotlin_kotlin.$_$.hc;
|
|
40
42
|
var joinToString = kotlin_kotlin.$_$.z7;
|
|
41
|
-
var THROW_CCE = kotlin_kotlin.$_$.gi;
|
|
42
43
|
var KtMap = kotlin_kotlin.$_$.z5;
|
|
43
44
|
var KtList = kotlin_kotlin.$_$.w5;
|
|
44
45
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
45
46
|
var getKClassFromExpression = kotlin_kotlin.$_$.be;
|
|
46
47
|
var getBooleanHashCode = kotlin_kotlin.$_$.cc;
|
|
47
|
-
var getStringHashCode = kotlin_kotlin.$_$.gc;
|
|
48
48
|
var toDouble = kotlin_kotlin.$_$.mg;
|
|
49
49
|
var StringCompanionObject_instance = kotlin_kotlin.$_$.a5;
|
|
50
50
|
var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
|
|
@@ -378,8 +378,23 @@
|
|
|
378
378
|
Json.call(this, configuration, module_0);
|
|
379
379
|
validateConfiguration(this);
|
|
380
380
|
}
|
|
381
|
-
function JsonClassDiscriminator() {
|
|
381
|
+
function JsonClassDiscriminator(discriminator) {
|
|
382
|
+
this.j1f_1 = discriminator;
|
|
382
383
|
}
|
|
384
|
+
protoOf(JsonClassDiscriminator).equals = function (other) {
|
|
385
|
+
if (!(other instanceof JsonClassDiscriminator))
|
|
386
|
+
return false;
|
|
387
|
+
var tmp0_other_with_cast = other instanceof JsonClassDiscriminator ? other : THROW_CCE();
|
|
388
|
+
if (!(this.j1f_1 === tmp0_other_with_cast.j1f_1))
|
|
389
|
+
return false;
|
|
390
|
+
return true;
|
|
391
|
+
};
|
|
392
|
+
protoOf(JsonClassDiscriminator).hashCode = function () {
|
|
393
|
+
return imul(getStringHashCode('discriminator'), 127) ^ getStringHashCode(this.j1f_1);
|
|
394
|
+
};
|
|
395
|
+
protoOf(JsonClassDiscriminator).toString = function () {
|
|
396
|
+
return '@kotlinx.serialization.json.JsonClassDiscriminator(' + 'discriminator=' + this.j1f_1 + ')';
|
|
397
|
+
};
|
|
383
398
|
function JsonIgnoreUnknownKeys() {
|
|
384
399
|
}
|
|
385
400
|
function JsonNames() {
|
|
@@ -471,7 +486,7 @@
|
|
|
471
486
|
JsonElement.call(this);
|
|
472
487
|
}
|
|
473
488
|
protoOf(JsonPrimitive).toString = function () {
|
|
474
|
-
return this.
|
|
489
|
+
return this.n1f();
|
|
475
490
|
};
|
|
476
491
|
function Companion_1() {
|
|
477
492
|
}
|
|
@@ -494,59 +509,59 @@
|
|
|
494
509
|
}
|
|
495
510
|
function JsonObject(content) {
|
|
496
511
|
JsonElement.call(this);
|
|
497
|
-
this.
|
|
512
|
+
this.o1f_1 = content;
|
|
498
513
|
}
|
|
499
514
|
protoOf(JsonObject).equals = function (other) {
|
|
500
|
-
return equals(this.
|
|
515
|
+
return equals(this.o1f_1, other);
|
|
501
516
|
};
|
|
502
517
|
protoOf(JsonObject).hashCode = function () {
|
|
503
|
-
return hashCode(this.
|
|
518
|
+
return hashCode(this.o1f_1);
|
|
504
519
|
};
|
|
505
520
|
protoOf(JsonObject).toString = function () {
|
|
506
|
-
var tmp = this.
|
|
521
|
+
var tmp = this.o1f_1.l1();
|
|
507
522
|
return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
|
|
508
523
|
};
|
|
509
524
|
protoOf(JsonObject).r = function () {
|
|
510
|
-
return this.
|
|
525
|
+
return this.o1f_1.r();
|
|
511
526
|
};
|
|
512
|
-
protoOf(JsonObject).
|
|
513
|
-
return this.
|
|
527
|
+
protoOf(JsonObject).p1f = function (key) {
|
|
528
|
+
return this.o1f_1.x2(key);
|
|
514
529
|
};
|
|
515
530
|
protoOf(JsonObject).x2 = function (key) {
|
|
516
531
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
517
532
|
return false;
|
|
518
|
-
return this.
|
|
533
|
+
return this.p1f((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
519
534
|
};
|
|
520
|
-
protoOf(JsonObject).
|
|
521
|
-
return this.
|
|
535
|
+
protoOf(JsonObject).q1f = function (value) {
|
|
536
|
+
return this.o1f_1.y2(value);
|
|
522
537
|
};
|
|
523
538
|
protoOf(JsonObject).y2 = function (value) {
|
|
524
539
|
if (!(value instanceof JsonElement))
|
|
525
540
|
return false;
|
|
526
|
-
return this.
|
|
541
|
+
return this.q1f(value instanceof JsonElement ? value : THROW_CCE());
|
|
527
542
|
};
|
|
528
|
-
protoOf(JsonObject).
|
|
529
|
-
return this.
|
|
543
|
+
protoOf(JsonObject).r1f = function (key) {
|
|
544
|
+
return this.o1f_1.z2(key);
|
|
530
545
|
};
|
|
531
546
|
protoOf(JsonObject).z2 = function (key) {
|
|
532
547
|
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
533
548
|
return null;
|
|
534
|
-
return this.
|
|
549
|
+
return this.r1f((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
535
550
|
};
|
|
536
551
|
protoOf(JsonObject).asJsReadonlyMapView = function () {
|
|
537
|
-
return this.
|
|
552
|
+
return this.o1f_1.asJsReadonlyMapView();
|
|
538
553
|
};
|
|
539
554
|
protoOf(JsonObject).g1 = function () {
|
|
540
|
-
return this.
|
|
555
|
+
return this.o1f_1.g1();
|
|
541
556
|
};
|
|
542
557
|
protoOf(JsonObject).a3 = function () {
|
|
543
|
-
return this.
|
|
558
|
+
return this.o1f_1.a3();
|
|
544
559
|
};
|
|
545
560
|
protoOf(JsonObject).b3 = function () {
|
|
546
|
-
return this.
|
|
561
|
+
return this.o1f_1.b3();
|
|
547
562
|
};
|
|
548
563
|
protoOf(JsonObject).l1 = function () {
|
|
549
|
-
return this.
|
|
564
|
+
return this.o1f_1.l1();
|
|
550
565
|
};
|
|
551
566
|
function Companion_2() {
|
|
552
567
|
}
|
|
@@ -556,87 +571,87 @@
|
|
|
556
571
|
}
|
|
557
572
|
function JsonArray(content) {
|
|
558
573
|
JsonElement.call(this);
|
|
559
|
-
this.
|
|
574
|
+
this.s1f_1 = content;
|
|
560
575
|
}
|
|
561
576
|
protoOf(JsonArray).equals = function (other) {
|
|
562
|
-
return equals(this.
|
|
577
|
+
return equals(this.s1f_1, other);
|
|
563
578
|
};
|
|
564
579
|
protoOf(JsonArray).hashCode = function () {
|
|
565
|
-
return hashCode(this.
|
|
580
|
+
return hashCode(this.s1f_1);
|
|
566
581
|
};
|
|
567
582
|
protoOf(JsonArray).toString = function () {
|
|
568
|
-
return joinToString(this.
|
|
583
|
+
return joinToString(this.s1f_1, ',', '[', ']');
|
|
569
584
|
};
|
|
570
585
|
protoOf(JsonArray).r = function () {
|
|
571
|
-
return this.
|
|
586
|
+
return this.s1f_1.r();
|
|
572
587
|
};
|
|
573
|
-
protoOf(JsonArray).
|
|
574
|
-
return this.
|
|
588
|
+
protoOf(JsonArray).t1f = function (element) {
|
|
589
|
+
return this.s1f_1.q2(element);
|
|
575
590
|
};
|
|
576
591
|
protoOf(JsonArray).q2 = function (element) {
|
|
577
592
|
if (!(element instanceof JsonElement))
|
|
578
593
|
return false;
|
|
579
|
-
return this.
|
|
594
|
+
return this.t1f(element instanceof JsonElement ? element : THROW_CCE());
|
|
580
595
|
};
|
|
581
596
|
protoOf(JsonArray).t = function () {
|
|
582
|
-
return this.
|
|
597
|
+
return this.s1f_1.t();
|
|
583
598
|
};
|
|
584
|
-
protoOf(JsonArray).
|
|
585
|
-
return this.
|
|
599
|
+
protoOf(JsonArray).u1f = function (elements) {
|
|
600
|
+
return this.s1f_1.r2(elements);
|
|
586
601
|
};
|
|
587
602
|
protoOf(JsonArray).r2 = function (elements) {
|
|
588
|
-
return this.
|
|
603
|
+
return this.u1f(elements);
|
|
589
604
|
};
|
|
590
605
|
protoOf(JsonArray).h1 = function (index) {
|
|
591
|
-
return this.
|
|
606
|
+
return this.s1f_1.h1(index);
|
|
592
607
|
};
|
|
593
|
-
protoOf(JsonArray).
|
|
594
|
-
return this.
|
|
608
|
+
protoOf(JsonArray).v1f = function (element) {
|
|
609
|
+
return this.s1f_1.s2(element);
|
|
595
610
|
};
|
|
596
611
|
protoOf(JsonArray).s2 = function (element) {
|
|
597
612
|
if (!(element instanceof JsonElement))
|
|
598
613
|
return -1;
|
|
599
|
-
return this.
|
|
614
|
+
return this.v1f(element instanceof JsonElement ? element : THROW_CCE());
|
|
600
615
|
};
|
|
601
|
-
protoOf(JsonArray).
|
|
602
|
-
return this.
|
|
616
|
+
protoOf(JsonArray).w1f = function (element) {
|
|
617
|
+
return this.s1f_1.t2(element);
|
|
603
618
|
};
|
|
604
619
|
protoOf(JsonArray).t2 = function (element) {
|
|
605
620
|
if (!(element instanceof JsonElement))
|
|
606
621
|
return -1;
|
|
607
|
-
return this.
|
|
622
|
+
return this.w1f(element instanceof JsonElement ? element : THROW_CCE());
|
|
608
623
|
};
|
|
609
624
|
protoOf(JsonArray).u2 = function () {
|
|
610
|
-
return this.
|
|
625
|
+
return this.s1f_1.u2();
|
|
611
626
|
};
|
|
612
627
|
protoOf(JsonArray).i1 = function (index) {
|
|
613
|
-
return this.
|
|
628
|
+
return this.s1f_1.i1(index);
|
|
614
629
|
};
|
|
615
630
|
protoOf(JsonArray).v2 = function (fromIndex, toIndex) {
|
|
616
|
-
return this.
|
|
631
|
+
return this.s1f_1.v2(fromIndex, toIndex);
|
|
617
632
|
};
|
|
618
633
|
protoOf(JsonArray).asJsReadonlyArrayView = function () {
|
|
619
|
-
return this.
|
|
634
|
+
return this.s1f_1.asJsReadonlyArrayView();
|
|
620
635
|
};
|
|
621
636
|
protoOf(JsonArray).g1 = function () {
|
|
622
|
-
return this.
|
|
637
|
+
return this.s1f_1.g1();
|
|
623
638
|
};
|
|
624
639
|
function JsonNull() {
|
|
625
640
|
JsonNull_instance = this;
|
|
626
641
|
JsonPrimitive.call(this);
|
|
627
|
-
this.
|
|
642
|
+
this.x1f_1 = 'null';
|
|
628
643
|
}
|
|
629
|
-
protoOf(JsonNull).
|
|
644
|
+
protoOf(JsonNull).m1f = function () {
|
|
630
645
|
return false;
|
|
631
646
|
};
|
|
632
|
-
protoOf(JsonNull).
|
|
633
|
-
return this.
|
|
647
|
+
protoOf(JsonNull).n1f = function () {
|
|
648
|
+
return this.x1f_1;
|
|
634
649
|
};
|
|
635
|
-
protoOf(JsonNull).
|
|
650
|
+
protoOf(JsonNull).y1f = function () {
|
|
636
651
|
return JsonNullSerializer_getInstance();
|
|
637
652
|
};
|
|
638
653
|
protoOf(JsonNull).v14 = function (typeParamsSerializers) {
|
|
639
|
-
return this.
|
|
654
|
+
return this.y1f();
|
|
640
655
|
};
|
|
641
656
|
var JsonNull_instance;
|
|
642
657
|
function JsonNull_getInstance() {
|
|
@@ -647,34 +662,34 @@
|
|
|
647
662
|
function JsonLiteral(body, isString, coerceToInlineType) {
|
|
648
663
|
coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
|
|
649
664
|
JsonPrimitive.call(this);
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
if (!(this.
|
|
665
|
+
this.z1f_1 = isString;
|
|
666
|
+
this.a1g_1 = coerceToInlineType;
|
|
667
|
+
this.b1g_1 = toString(body);
|
|
668
|
+
if (!(this.a1g_1 == null)) {
|
|
654
669
|
// Inline function 'kotlin.require' call
|
|
655
670
|
// Inline function 'kotlin.require' call
|
|
656
|
-
if (!this.
|
|
671
|
+
if (!this.a1g_1.ou()) {
|
|
657
672
|
var message = 'Failed requirement.';
|
|
658
673
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
659
674
|
}
|
|
660
675
|
}
|
|
661
676
|
}
|
|
662
|
-
protoOf(JsonLiteral).l1f = function () {
|
|
663
|
-
return this.y1f_1;
|
|
664
|
-
};
|
|
665
677
|
protoOf(JsonLiteral).m1f = function () {
|
|
666
|
-
return this.
|
|
678
|
+
return this.z1f_1;
|
|
679
|
+
};
|
|
680
|
+
protoOf(JsonLiteral).n1f = function () {
|
|
681
|
+
return this.b1g_1;
|
|
667
682
|
};
|
|
668
683
|
protoOf(JsonLiteral).toString = function () {
|
|
669
684
|
var tmp;
|
|
670
|
-
if (this.
|
|
685
|
+
if (this.z1f_1) {
|
|
671
686
|
// Inline function 'kotlin.text.buildString' call
|
|
672
687
|
// Inline function 'kotlin.apply' call
|
|
673
688
|
var this_0 = StringBuilder_init_$Create$();
|
|
674
|
-
printQuoted(this_0, this.
|
|
689
|
+
printQuoted(this_0, this.b1g_1);
|
|
675
690
|
tmp = this_0.toString();
|
|
676
691
|
} else {
|
|
677
|
-
tmp = this.
|
|
692
|
+
tmp = this.b1g_1;
|
|
678
693
|
}
|
|
679
694
|
return tmp;
|
|
680
695
|
};
|
|
@@ -685,36 +700,36 @@
|
|
|
685
700
|
return false;
|
|
686
701
|
if (!(other instanceof JsonLiteral))
|
|
687
702
|
THROW_CCE();
|
|
688
|
-
if (!(this.
|
|
703
|
+
if (!(this.z1f_1 === other.z1f_1))
|
|
689
704
|
return false;
|
|
690
|
-
if (!(this.
|
|
705
|
+
if (!(this.b1g_1 === other.b1g_1))
|
|
691
706
|
return false;
|
|
692
707
|
return true;
|
|
693
708
|
};
|
|
694
709
|
protoOf(JsonLiteral).hashCode = function () {
|
|
695
|
-
var result = getBooleanHashCode(this.
|
|
696
|
-
result = imul(31, result) + getStringHashCode(this.
|
|
710
|
+
var result = getBooleanHashCode(this.z1f_1);
|
|
711
|
+
result = imul(31, result) + getStringHashCode(this.b1g_1) | 0;
|
|
697
712
|
return result;
|
|
698
713
|
};
|
|
699
714
|
function get_booleanOrNull(_this__u8e3s4) {
|
|
700
715
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
701
|
-
return toBooleanStrictOrNull_0(_this__u8e3s4.
|
|
716
|
+
return toBooleanStrictOrNull_0(_this__u8e3s4.n1f());
|
|
702
717
|
}
|
|
703
718
|
function parseLongImpl(_this__u8e3s4) {
|
|
704
719
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
705
|
-
return (new StringJsonLexer(_this__u8e3s4.
|
|
720
|
+
return (new StringJsonLexer(_this__u8e3s4.n1f())).c1g();
|
|
706
721
|
}
|
|
707
722
|
function get_float(_this__u8e3s4) {
|
|
708
723
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
709
724
|
// Inline function 'kotlin.text.toFloat' call
|
|
710
|
-
var this_0 = _this__u8e3s4.
|
|
725
|
+
var this_0 = _this__u8e3s4.n1f();
|
|
711
726
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
712
727
|
// Inline function 'kotlin.js.asDynamic' call
|
|
713
728
|
return toDouble(this_0);
|
|
714
729
|
}
|
|
715
730
|
function get_double(_this__u8e3s4) {
|
|
716
731
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
717
|
-
return toDouble(_this__u8e3s4.
|
|
732
|
+
return toDouble(_this__u8e3s4.n1f());
|
|
718
733
|
}
|
|
719
734
|
function get_contentOrNull(_this__u8e3s4) {
|
|
720
735
|
_init_properties_JsonElement_kt__7cbdc2();
|
|
@@ -722,7 +737,7 @@
|
|
|
722
737
|
if (_this__u8e3s4 instanceof JsonNull) {
|
|
723
738
|
tmp = null;
|
|
724
739
|
} else {
|
|
725
|
-
tmp = _this__u8e3s4.
|
|
740
|
+
tmp = _this__u8e3s4.n1f();
|
|
726
741
|
}
|
|
727
742
|
return tmp;
|
|
728
743
|
}
|
|
@@ -768,13 +783,13 @@
|
|
|
768
783
|
function JsonObjectBuilder() {
|
|
769
784
|
var tmp = this;
|
|
770
785
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
771
|
-
tmp.
|
|
786
|
+
tmp.d1g_1 = LinkedHashMap_init_$Create$();
|
|
772
787
|
}
|
|
773
|
-
protoOf(JsonObjectBuilder).
|
|
774
|
-
return this.
|
|
788
|
+
protoOf(JsonObjectBuilder).e1g = function (key, element) {
|
|
789
|
+
return this.d1g_1.c3(key, element);
|
|
775
790
|
};
|
|
776
791
|
protoOf(JsonObjectBuilder).r1e = function () {
|
|
777
|
-
return new JsonObject(this.
|
|
792
|
+
return new JsonObject(this.d1g_1);
|
|
778
793
|
};
|
|
779
794
|
function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
|
|
780
795
|
$this$buildSerialDescriptor.it('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
|
|
@@ -785,30 +800,30 @@
|
|
|
785
800
|
return Unit_instance;
|
|
786
801
|
}
|
|
787
802
|
function JsonElementSerializer$descriptor$lambda$lambda() {
|
|
788
|
-
return JsonPrimitiveSerializer_getInstance().
|
|
803
|
+
return JsonPrimitiveSerializer_getInstance().f1g_1;
|
|
789
804
|
}
|
|
790
805
|
function JsonElementSerializer$descriptor$lambda$lambda_0() {
|
|
791
|
-
return JsonNullSerializer_getInstance().
|
|
806
|
+
return JsonNullSerializer_getInstance().g1g_1;
|
|
792
807
|
}
|
|
793
808
|
function JsonElementSerializer$descriptor$lambda$lambda_1() {
|
|
794
|
-
return JsonLiteralSerializer_getInstance().
|
|
809
|
+
return JsonLiteralSerializer_getInstance().h1g_1;
|
|
795
810
|
}
|
|
796
811
|
function JsonElementSerializer$descriptor$lambda$lambda_2() {
|
|
797
|
-
return JsonObjectSerializer_getInstance().
|
|
812
|
+
return JsonObjectSerializer_getInstance().i1g_1;
|
|
798
813
|
}
|
|
799
814
|
function JsonElementSerializer$descriptor$lambda$lambda_3() {
|
|
800
|
-
return JsonArraySerializer_getInstance().
|
|
815
|
+
return JsonArraySerializer_getInstance().j1g_1;
|
|
801
816
|
}
|
|
802
817
|
function JsonElementSerializer() {
|
|
803
818
|
JsonElementSerializer_instance = this;
|
|
804
819
|
var tmp = this;
|
|
805
820
|
var tmp_0 = SEALED_getInstance();
|
|
806
|
-
tmp.
|
|
821
|
+
tmp.k1g_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
|
|
807
822
|
}
|
|
808
823
|
protoOf(JsonElementSerializer).ps = function () {
|
|
809
|
-
return this.
|
|
824
|
+
return this.k1g_1;
|
|
810
825
|
};
|
|
811
|
-
protoOf(JsonElementSerializer).
|
|
826
|
+
protoOf(JsonElementSerializer).l1g = function (encoder, value) {
|
|
812
827
|
verify(encoder);
|
|
813
828
|
if (value instanceof JsonPrimitive) {
|
|
814
829
|
encoder.bt(JsonPrimitiveSerializer_getInstance(), value);
|
|
@@ -825,11 +840,11 @@
|
|
|
825
840
|
}
|
|
826
841
|
};
|
|
827
842
|
protoOf(JsonElementSerializer).ct = function (encoder, value) {
|
|
828
|
-
return this.
|
|
843
|
+
return this.l1g(encoder, value instanceof JsonElement ? value : THROW_CCE());
|
|
829
844
|
};
|
|
830
845
|
protoOf(JsonElementSerializer).dt = function (decoder) {
|
|
831
846
|
var input = asJsonDecoder(decoder);
|
|
832
|
-
return input.
|
|
847
|
+
return input.l1f();
|
|
833
848
|
};
|
|
834
849
|
var JsonElementSerializer_instance;
|
|
835
850
|
function JsonElementSerializer_getInstance() {
|
|
@@ -842,12 +857,12 @@
|
|
|
842
857
|
}
|
|
843
858
|
function JsonPrimitiveSerializer() {
|
|
844
859
|
JsonPrimitiveSerializer_instance = this;
|
|
845
|
-
this.
|
|
860
|
+
this.f1g_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
|
|
846
861
|
}
|
|
847
862
|
protoOf(JsonPrimitiveSerializer).ps = function () {
|
|
848
|
-
return this.
|
|
863
|
+
return this.f1g_1;
|
|
849
864
|
};
|
|
850
|
-
protoOf(JsonPrimitiveSerializer).
|
|
865
|
+
protoOf(JsonPrimitiveSerializer).m1g = function (encoder, value) {
|
|
851
866
|
verify(encoder);
|
|
852
867
|
var tmp;
|
|
853
868
|
if (value instanceof JsonNull) {
|
|
@@ -861,10 +876,10 @@
|
|
|
861
876
|
return tmp;
|
|
862
877
|
};
|
|
863
878
|
protoOf(JsonPrimitiveSerializer).ct = function (encoder, value) {
|
|
864
|
-
return this.
|
|
879
|
+
return this.m1g(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
|
|
865
880
|
};
|
|
866
881
|
protoOf(JsonPrimitiveSerializer).dt = function (decoder) {
|
|
867
|
-
var result = asJsonDecoder(decoder).
|
|
882
|
+
var result = asJsonDecoder(decoder).l1f();
|
|
868
883
|
if (!(result instanceof JsonPrimitive))
|
|
869
884
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
870
885
|
return result;
|
|
@@ -877,17 +892,17 @@
|
|
|
877
892
|
}
|
|
878
893
|
function JsonNullSerializer() {
|
|
879
894
|
JsonNullSerializer_instance = this;
|
|
880
|
-
this.
|
|
895
|
+
this.g1g_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
|
|
881
896
|
}
|
|
882
897
|
protoOf(JsonNullSerializer).ps = function () {
|
|
883
|
-
return this.
|
|
898
|
+
return this.g1g_1;
|
|
884
899
|
};
|
|
885
|
-
protoOf(JsonNullSerializer).
|
|
900
|
+
protoOf(JsonNullSerializer).n1g = function (encoder, value) {
|
|
886
901
|
verify(encoder);
|
|
887
902
|
encoder.zw();
|
|
888
903
|
};
|
|
889
904
|
protoOf(JsonNullSerializer).ct = function (encoder, value) {
|
|
890
|
-
return this.
|
|
905
|
+
return this.n1g(encoder, value instanceof JsonNull ? value : THROW_CCE());
|
|
891
906
|
};
|
|
892
907
|
protoOf(JsonNullSerializer).dt = function (decoder) {
|
|
893
908
|
verify_0(decoder);
|
|
@@ -905,27 +920,27 @@
|
|
|
905
920
|
}
|
|
906
921
|
function JsonLiteralSerializer() {
|
|
907
922
|
JsonLiteralSerializer_instance = this;
|
|
908
|
-
this.
|
|
923
|
+
this.h1g_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
|
|
909
924
|
}
|
|
910
925
|
protoOf(JsonLiteralSerializer).ps = function () {
|
|
911
|
-
return this.
|
|
926
|
+
return this.h1g_1;
|
|
912
927
|
};
|
|
913
|
-
protoOf(JsonLiteralSerializer).
|
|
928
|
+
protoOf(JsonLiteralSerializer).o1g = function (encoder, value) {
|
|
914
929
|
verify(encoder);
|
|
915
|
-
if (value.
|
|
916
|
-
return encoder.ix(value.
|
|
930
|
+
if (value.z1f_1) {
|
|
931
|
+
return encoder.ix(value.b1g_1);
|
|
917
932
|
}
|
|
918
|
-
if (!(value.
|
|
919
|
-
return encoder.kx(value.
|
|
933
|
+
if (!(value.a1g_1 == null)) {
|
|
934
|
+
return encoder.kx(value.a1g_1).ix(value.b1g_1);
|
|
920
935
|
}
|
|
921
|
-
var tmp0_safe_receiver = toLongOrNull(value.
|
|
936
|
+
var tmp0_safe_receiver = toLongOrNull(value.b1g_1);
|
|
922
937
|
if (tmp0_safe_receiver == null)
|
|
923
938
|
null;
|
|
924
939
|
else {
|
|
925
940
|
// Inline function 'kotlin.let' call
|
|
926
941
|
return encoder.ex(tmp0_safe_receiver);
|
|
927
942
|
}
|
|
928
|
-
var tmp1_safe_receiver = toULongOrNull(value.
|
|
943
|
+
var tmp1_safe_receiver = toULongOrNull(value.b1g_1);
|
|
929
944
|
var tmp = tmp1_safe_receiver;
|
|
930
945
|
if ((tmp == null ? null : new ULong(tmp)) == null)
|
|
931
946
|
null;
|
|
@@ -939,27 +954,27 @@
|
|
|
939
954
|
tmp_1.ex(tmp$ret$1);
|
|
940
955
|
return Unit_instance;
|
|
941
956
|
}
|
|
942
|
-
var tmp2_safe_receiver = toDoubleOrNull(value.
|
|
957
|
+
var tmp2_safe_receiver = toDoubleOrNull(value.b1g_1);
|
|
943
958
|
if (tmp2_safe_receiver == null)
|
|
944
959
|
null;
|
|
945
960
|
else {
|
|
946
961
|
// Inline function 'kotlin.let' call
|
|
947
962
|
return encoder.gx(tmp2_safe_receiver);
|
|
948
963
|
}
|
|
949
|
-
var tmp3_safe_receiver = toBooleanStrictOrNull(value.
|
|
964
|
+
var tmp3_safe_receiver = toBooleanStrictOrNull(value.b1g_1);
|
|
950
965
|
if (tmp3_safe_receiver == null)
|
|
951
966
|
null;
|
|
952
967
|
else {
|
|
953
968
|
// Inline function 'kotlin.let' call
|
|
954
969
|
return encoder.ax(tmp3_safe_receiver);
|
|
955
970
|
}
|
|
956
|
-
encoder.ix(value.
|
|
971
|
+
encoder.ix(value.b1g_1);
|
|
957
972
|
};
|
|
958
973
|
protoOf(JsonLiteralSerializer).ct = function (encoder, value) {
|
|
959
|
-
return this.
|
|
974
|
+
return this.o1g(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
|
|
960
975
|
};
|
|
961
976
|
protoOf(JsonLiteralSerializer).dt = function (decoder) {
|
|
962
|
-
var result = asJsonDecoder(decoder).
|
|
977
|
+
var result = asJsonDecoder(decoder).l1f();
|
|
963
978
|
if (!(result instanceof JsonLiteral))
|
|
964
979
|
throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString(getKClassFromExpression(result)), toString(result));
|
|
965
980
|
return result;
|
|
@@ -972,41 +987,41 @@
|
|
|
972
987
|
}
|
|
973
988
|
function JsonObjectDescriptor() {
|
|
974
989
|
JsonObjectDescriptor_instance = this;
|
|
975
|
-
this.
|
|
976
|
-
this.
|
|
990
|
+
this.p1g_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ps();
|
|
991
|
+
this.q1g_1 = 'kotlinx.serialization.json.JsonObject';
|
|
977
992
|
}
|
|
978
993
|
protoOf(JsonObjectDescriptor).ut = function () {
|
|
979
|
-
return this.
|
|
994
|
+
return this.q1g_1;
|
|
980
995
|
};
|
|
981
996
|
protoOf(JsonObjectDescriptor).qu = function (index) {
|
|
982
|
-
return this.
|
|
997
|
+
return this.p1g_1.qu(index);
|
|
983
998
|
};
|
|
984
999
|
protoOf(JsonObjectDescriptor).ru = function (name) {
|
|
985
|
-
return this.
|
|
1000
|
+
return this.p1g_1.ru(name);
|
|
986
1001
|
};
|
|
987
1002
|
protoOf(JsonObjectDescriptor).su = function (index) {
|
|
988
|
-
return this.
|
|
1003
|
+
return this.p1g_1.su(index);
|
|
989
1004
|
};
|
|
990
1005
|
protoOf(JsonObjectDescriptor).tu = function (index) {
|
|
991
|
-
return this.
|
|
1006
|
+
return this.p1g_1.tu(index);
|
|
992
1007
|
};
|
|
993
1008
|
protoOf(JsonObjectDescriptor).uu = function (index) {
|
|
994
|
-
return this.
|
|
1009
|
+
return this.p1g_1.uu(index);
|
|
995
1010
|
};
|
|
996
1011
|
protoOf(JsonObjectDescriptor).nu = function () {
|
|
997
|
-
return this.
|
|
1012
|
+
return this.p1g_1.nu();
|
|
998
1013
|
};
|
|
999
1014
|
protoOf(JsonObjectDescriptor).gu = function () {
|
|
1000
|
-
return this.
|
|
1015
|
+
return this.p1g_1.gu();
|
|
1001
1016
|
};
|
|
1002
1017
|
protoOf(JsonObjectDescriptor).ou = function () {
|
|
1003
|
-
return this.
|
|
1018
|
+
return this.p1g_1.ou();
|
|
1004
1019
|
};
|
|
1005
1020
|
protoOf(JsonObjectDescriptor).pu = function () {
|
|
1006
|
-
return this.
|
|
1021
|
+
return this.p1g_1.pu();
|
|
1007
1022
|
};
|
|
1008
1023
|
protoOf(JsonObjectDescriptor).qs = function () {
|
|
1009
|
-
return this.
|
|
1024
|
+
return this.p1g_1.qs();
|
|
1010
1025
|
};
|
|
1011
1026
|
var JsonObjectDescriptor_instance;
|
|
1012
1027
|
function JsonObjectDescriptor_getInstance() {
|
|
@@ -1016,17 +1031,17 @@
|
|
|
1016
1031
|
}
|
|
1017
1032
|
function JsonObjectSerializer() {
|
|
1018
1033
|
JsonObjectSerializer_instance = this;
|
|
1019
|
-
this.
|
|
1034
|
+
this.i1g_1 = JsonObjectDescriptor_getInstance();
|
|
1020
1035
|
}
|
|
1021
1036
|
protoOf(JsonObjectSerializer).ps = function () {
|
|
1022
|
-
return this.
|
|
1037
|
+
return this.i1g_1;
|
|
1023
1038
|
};
|
|
1024
|
-
protoOf(JsonObjectSerializer).
|
|
1039
|
+
protoOf(JsonObjectSerializer).r1g = function (encoder, value) {
|
|
1025
1040
|
verify(encoder);
|
|
1026
1041
|
MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ct(encoder, value);
|
|
1027
1042
|
};
|
|
1028
1043
|
protoOf(JsonObjectSerializer).ct = function (encoder, value) {
|
|
1029
|
-
return this.
|
|
1044
|
+
return this.r1g(encoder, value instanceof JsonObject ? value : THROW_CCE());
|
|
1030
1045
|
};
|
|
1031
1046
|
protoOf(JsonObjectSerializer).dt = function (decoder) {
|
|
1032
1047
|
verify_0(decoder);
|
|
@@ -1040,41 +1055,41 @@
|
|
|
1040
1055
|
}
|
|
1041
1056
|
function JsonArrayDescriptor() {
|
|
1042
1057
|
JsonArrayDescriptor_instance = this;
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1058
|
+
this.s1g_1 = ListSerializer(JsonElementSerializer_getInstance()).ps();
|
|
1059
|
+
this.t1g_1 = 'kotlinx.serialization.json.JsonArray';
|
|
1045
1060
|
}
|
|
1046
1061
|
protoOf(JsonArrayDescriptor).ut = function () {
|
|
1047
|
-
return this.
|
|
1062
|
+
return this.t1g_1;
|
|
1048
1063
|
};
|
|
1049
1064
|
protoOf(JsonArrayDescriptor).qu = function (index) {
|
|
1050
|
-
return this.
|
|
1065
|
+
return this.s1g_1.qu(index);
|
|
1051
1066
|
};
|
|
1052
1067
|
protoOf(JsonArrayDescriptor).ru = function (name) {
|
|
1053
|
-
return this.
|
|
1068
|
+
return this.s1g_1.ru(name);
|
|
1054
1069
|
};
|
|
1055
1070
|
protoOf(JsonArrayDescriptor).su = function (index) {
|
|
1056
|
-
return this.
|
|
1071
|
+
return this.s1g_1.su(index);
|
|
1057
1072
|
};
|
|
1058
1073
|
protoOf(JsonArrayDescriptor).tu = function (index) {
|
|
1059
|
-
return this.
|
|
1074
|
+
return this.s1g_1.tu(index);
|
|
1060
1075
|
};
|
|
1061
1076
|
protoOf(JsonArrayDescriptor).uu = function (index) {
|
|
1062
|
-
return this.
|
|
1077
|
+
return this.s1g_1.uu(index);
|
|
1063
1078
|
};
|
|
1064
1079
|
protoOf(JsonArrayDescriptor).nu = function () {
|
|
1065
|
-
return this.
|
|
1080
|
+
return this.s1g_1.nu();
|
|
1066
1081
|
};
|
|
1067
1082
|
protoOf(JsonArrayDescriptor).gu = function () {
|
|
1068
|
-
return this.
|
|
1083
|
+
return this.s1g_1.gu();
|
|
1069
1084
|
};
|
|
1070
1085
|
protoOf(JsonArrayDescriptor).ou = function () {
|
|
1071
|
-
return this.
|
|
1086
|
+
return this.s1g_1.ou();
|
|
1072
1087
|
};
|
|
1073
1088
|
protoOf(JsonArrayDescriptor).pu = function () {
|
|
1074
|
-
return this.
|
|
1089
|
+
return this.s1g_1.pu();
|
|
1075
1090
|
};
|
|
1076
1091
|
protoOf(JsonArrayDescriptor).qs = function () {
|
|
1077
|
-
return this.
|
|
1092
|
+
return this.s1g_1.qs();
|
|
1078
1093
|
};
|
|
1079
1094
|
var JsonArrayDescriptor_instance;
|
|
1080
1095
|
function JsonArrayDescriptor_getInstance() {
|
|
@@ -1084,17 +1099,17 @@
|
|
|
1084
1099
|
}
|
|
1085
1100
|
function JsonArraySerializer() {
|
|
1086
1101
|
JsonArraySerializer_instance = this;
|
|
1087
|
-
this.
|
|
1102
|
+
this.j1g_1 = JsonArrayDescriptor_getInstance();
|
|
1088
1103
|
}
|
|
1089
1104
|
protoOf(JsonArraySerializer).ps = function () {
|
|
1090
|
-
return this.
|
|
1105
|
+
return this.j1g_1;
|
|
1091
1106
|
};
|
|
1092
|
-
protoOf(JsonArraySerializer).
|
|
1107
|
+
protoOf(JsonArraySerializer).u1g = function (encoder, value) {
|
|
1093
1108
|
verify(encoder);
|
|
1094
1109
|
ListSerializer(JsonElementSerializer_getInstance()).ct(encoder, value);
|
|
1095
1110
|
};
|
|
1096
1111
|
protoOf(JsonArraySerializer).ct = function (encoder, value) {
|
|
1097
|
-
return this.
|
|
1112
|
+
return this.u1g(encoder, value instanceof JsonArray ? value : THROW_CCE());
|
|
1098
1113
|
};
|
|
1099
1114
|
protoOf(JsonArraySerializer).dt = function (decoder) {
|
|
1100
1115
|
verify_0(decoder);
|
|
@@ -1133,7 +1148,7 @@
|
|
|
1133
1148
|
return tmp;
|
|
1134
1149
|
}
|
|
1135
1150
|
function _get_original__l7ku1m($this) {
|
|
1136
|
-
var tmp0 = $this.
|
|
1151
|
+
var tmp0 = $this.v1g_1;
|
|
1137
1152
|
var tmp = KProperty1;
|
|
1138
1153
|
// Inline function 'kotlin.getValue' call
|
|
1139
1154
|
getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
|
|
@@ -1145,7 +1160,7 @@
|
|
|
1145
1160
|
};
|
|
1146
1161
|
}
|
|
1147
1162
|
function defer$1($deferred) {
|
|
1148
|
-
this.
|
|
1163
|
+
this.v1g_1 = lazy($deferred);
|
|
1149
1164
|
}
|
|
1150
1165
|
protoOf(defer$1).ut = function () {
|
|
1151
1166
|
return _get_original__l7ku1m(this).ut();
|
|
@@ -1174,155 +1189,155 @@
|
|
|
1174
1189
|
function JsonEncoder() {
|
|
1175
1190
|
}
|
|
1176
1191
|
function Composer(writer) {
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1192
|
+
this.w1g_1 = writer;
|
|
1193
|
+
this.x1g_1 = true;
|
|
1179
1194
|
}
|
|
1180
|
-
protoOf(Composer).x1g = function () {
|
|
1181
|
-
this.w1g_1 = true;
|
|
1182
|
-
};
|
|
1183
1195
|
protoOf(Composer).y1g = function () {
|
|
1184
|
-
|
|
1196
|
+
this.x1g_1 = true;
|
|
1185
1197
|
};
|
|
1186
1198
|
protoOf(Composer).z1g = function () {
|
|
1187
|
-
|
|
1199
|
+
return Unit_instance;
|
|
1188
1200
|
};
|
|
1189
1201
|
protoOf(Composer).a1h = function () {
|
|
1190
|
-
this.
|
|
1202
|
+
this.x1g_1 = false;
|
|
1191
1203
|
};
|
|
1192
1204
|
protoOf(Composer).b1h = function () {
|
|
1193
|
-
|
|
1205
|
+
this.x1g_1 = false;
|
|
1194
1206
|
};
|
|
1195
|
-
protoOf(Composer).c1h = function (
|
|
1196
|
-
return
|
|
1207
|
+
protoOf(Composer).c1h = function () {
|
|
1208
|
+
return Unit_instance;
|
|
1197
1209
|
};
|
|
1198
|
-
protoOf(Composer).
|
|
1199
|
-
return this.
|
|
1210
|
+
protoOf(Composer).d1h = function (v) {
|
|
1211
|
+
return this.w1g_1.e1h(v);
|
|
1200
1212
|
};
|
|
1201
|
-
protoOf(Composer).
|
|
1202
|
-
return this.
|
|
1213
|
+
protoOf(Composer).f1h = function (v) {
|
|
1214
|
+
return this.w1g_1.g1h(v);
|
|
1203
1215
|
};
|
|
1204
1216
|
protoOf(Composer).h1h = function (v) {
|
|
1205
|
-
return this.
|
|
1217
|
+
return this.w1g_1.g1h(v.toString());
|
|
1206
1218
|
};
|
|
1207
1219
|
protoOf(Composer).i1h = function (v) {
|
|
1208
|
-
return this.
|
|
1220
|
+
return this.w1g_1.g1h(v.toString());
|
|
1209
1221
|
};
|
|
1210
|
-
protoOf(Composer).
|
|
1211
|
-
return this.
|
|
1222
|
+
protoOf(Composer).j1h = function (v) {
|
|
1223
|
+
return this.w1g_1.k1h(fromInt(v));
|
|
1212
1224
|
};
|
|
1213
1225
|
protoOf(Composer).l1h = function (v) {
|
|
1214
|
-
return this.
|
|
1226
|
+
return this.w1g_1.k1h(fromInt(v));
|
|
1215
1227
|
};
|
|
1216
1228
|
protoOf(Composer).m1h = function (v) {
|
|
1217
|
-
return this.
|
|
1229
|
+
return this.w1g_1.k1h(fromInt(v));
|
|
1218
1230
|
};
|
|
1219
1231
|
protoOf(Composer).n1h = function (v) {
|
|
1220
|
-
return this.
|
|
1232
|
+
return this.w1g_1.k1h(v);
|
|
1221
1233
|
};
|
|
1222
|
-
protoOf(Composer).o1h = function (
|
|
1223
|
-
return this.
|
|
1234
|
+
protoOf(Composer).o1h = function (v) {
|
|
1235
|
+
return this.w1g_1.g1h(v.toString());
|
|
1236
|
+
};
|
|
1237
|
+
protoOf(Composer).p1h = function (value) {
|
|
1238
|
+
return this.w1g_1.q1h(value);
|
|
1224
1239
|
};
|
|
1225
1240
|
function Composer_0(sb, json) {
|
|
1226
1241
|
return json.g1d_1.w1e_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
1227
1242
|
}
|
|
1228
1243
|
function ComposerForUnsignedNumbers(writer, forceQuoting) {
|
|
1229
1244
|
Composer.call(this, writer);
|
|
1230
|
-
this.
|
|
1245
|
+
this.t1h_1 = forceQuoting;
|
|
1231
1246
|
}
|
|
1232
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1233
|
-
if (this.
|
|
1247
|
+
protoOf(ComposerForUnsignedNumbers).m1h = function (v) {
|
|
1248
|
+
if (this.t1h_1) {
|
|
1234
1249
|
// Inline function 'kotlin.toUInt' call
|
|
1235
1250
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
1236
|
-
this.
|
|
1251
|
+
this.p1h(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
1237
1252
|
} else {
|
|
1238
1253
|
// Inline function 'kotlin.toUInt' call
|
|
1239
1254
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
1240
|
-
this.
|
|
1255
|
+
this.f1h(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
1241
1256
|
}
|
|
1242
1257
|
};
|
|
1243
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1244
|
-
if (this.
|
|
1258
|
+
protoOf(ComposerForUnsignedNumbers).n1h = function (v) {
|
|
1259
|
+
if (this.t1h_1) {
|
|
1245
1260
|
// Inline function 'kotlin.toULong' call
|
|
1246
1261
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
1247
|
-
this.
|
|
1262
|
+
this.p1h(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
1248
1263
|
} else {
|
|
1249
1264
|
// Inline function 'kotlin.toULong' call
|
|
1250
1265
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
1251
|
-
this.
|
|
1266
|
+
this.f1h(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
1252
1267
|
}
|
|
1253
1268
|
};
|
|
1254
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1255
|
-
if (this.
|
|
1269
|
+
protoOf(ComposerForUnsignedNumbers).j1h = function (v) {
|
|
1270
|
+
if (this.t1h_1) {
|
|
1256
1271
|
// Inline function 'kotlin.toUByte' call
|
|
1257
1272
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
1258
|
-
this.
|
|
1273
|
+
this.p1h(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
1259
1274
|
} else {
|
|
1260
1275
|
// Inline function 'kotlin.toUByte' call
|
|
1261
1276
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
1262
|
-
this.
|
|
1277
|
+
this.f1h(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
1263
1278
|
}
|
|
1264
1279
|
};
|
|
1265
|
-
protoOf(ComposerForUnsignedNumbers).
|
|
1266
|
-
if (this.
|
|
1280
|
+
protoOf(ComposerForUnsignedNumbers).l1h = function (v) {
|
|
1281
|
+
if (this.t1h_1) {
|
|
1267
1282
|
// Inline function 'kotlin.toUShort' call
|
|
1268
1283
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
1269
|
-
this.
|
|
1284
|
+
this.p1h(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
1270
1285
|
} else {
|
|
1271
1286
|
// Inline function 'kotlin.toUShort' call
|
|
1272
1287
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
1273
|
-
this.
|
|
1288
|
+
this.f1h(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
1274
1289
|
}
|
|
1275
1290
|
};
|
|
1276
1291
|
function ComposerForUnquotedLiterals(writer, forceQuoting) {
|
|
1277
1292
|
Composer.call(this, writer);
|
|
1278
|
-
this.
|
|
1293
|
+
this.w1h_1 = forceQuoting;
|
|
1279
1294
|
}
|
|
1280
|
-
protoOf(ComposerForUnquotedLiterals).
|
|
1281
|
-
if (this.
|
|
1282
|
-
protoOf(Composer).
|
|
1295
|
+
protoOf(ComposerForUnquotedLiterals).p1h = function (value) {
|
|
1296
|
+
if (this.w1h_1) {
|
|
1297
|
+
protoOf(Composer).p1h.call(this, value);
|
|
1283
1298
|
} else {
|
|
1284
|
-
protoOf(Composer).
|
|
1299
|
+
protoOf(Composer).f1h.call(this, value);
|
|
1285
1300
|
}
|
|
1286
1301
|
};
|
|
1287
1302
|
function ComposerWithPrettyPrint(writer, json) {
|
|
1288
1303
|
Composer.call(this, writer);
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1304
|
+
this.z1h_1 = json;
|
|
1305
|
+
this.a1i_1 = 0;
|
|
1291
1306
|
}
|
|
1292
|
-
protoOf(ComposerWithPrettyPrint).x1g = function () {
|
|
1293
|
-
this.w1g_1 = true;
|
|
1294
|
-
this.z1h_1 = this.z1h_1 + 1 | 0;
|
|
1295
|
-
};
|
|
1296
1307
|
protoOf(ComposerWithPrettyPrint).y1g = function () {
|
|
1297
|
-
this.
|
|
1308
|
+
this.x1g_1 = true;
|
|
1309
|
+
this.a1i_1 = this.a1i_1 + 1 | 0;
|
|
1298
1310
|
};
|
|
1299
1311
|
protoOf(ComposerWithPrettyPrint).z1g = function () {
|
|
1300
|
-
this.
|
|
1301
|
-
|
|
1312
|
+
this.a1i_1 = this.a1i_1 - 1 | 0;
|
|
1313
|
+
};
|
|
1314
|
+
protoOf(ComposerWithPrettyPrint).a1h = function () {
|
|
1315
|
+
this.x1g_1 = false;
|
|
1316
|
+
this.f1h('\n');
|
|
1302
1317
|
// Inline function 'kotlin.repeat' call
|
|
1303
|
-
var times = this.
|
|
1318
|
+
var times = this.a1i_1;
|
|
1304
1319
|
var inductionVariable = 0;
|
|
1305
1320
|
if (inductionVariable < times)
|
|
1306
1321
|
do {
|
|
1307
1322
|
var index = inductionVariable;
|
|
1308
1323
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1309
|
-
this.
|
|
1324
|
+
this.f1h(this.z1h_1.g1d_1.y1e_1);
|
|
1310
1325
|
}
|
|
1311
1326
|
while (inductionVariable < times);
|
|
1312
1327
|
};
|
|
1313
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1314
|
-
if (this.
|
|
1315
|
-
this.
|
|
1328
|
+
protoOf(ComposerWithPrettyPrint).b1h = function () {
|
|
1329
|
+
if (this.x1g_1)
|
|
1330
|
+
this.x1g_1 = false;
|
|
1316
1331
|
else {
|
|
1317
|
-
this.
|
|
1332
|
+
this.a1h();
|
|
1318
1333
|
}
|
|
1319
1334
|
};
|
|
1320
|
-
protoOf(ComposerWithPrettyPrint).
|
|
1321
|
-
this.
|
|
1335
|
+
protoOf(ComposerWithPrettyPrint).c1h = function () {
|
|
1336
|
+
this.d1h(_Char___init__impl__6a9atx(32));
|
|
1322
1337
|
};
|
|
1323
1338
|
function readIfAbsent($this, descriptor, index) {
|
|
1324
|
-
$this.
|
|
1325
|
-
return $this.
|
|
1339
|
+
$this.c1i_1 = (!descriptor.uu(index) && descriptor.tu(index).gu());
|
|
1340
|
+
return $this.c1i_1;
|
|
1326
1341
|
}
|
|
1327
1342
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
1328
1343
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -1334,14 +1349,14 @@
|
|
|
1334
1349
|
}
|
|
1335
1350
|
function JsonElementMarker(descriptor) {
|
|
1336
1351
|
var tmp = this;
|
|
1337
|
-
tmp.
|
|
1338
|
-
this.
|
|
1352
|
+
tmp.b1i_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
1353
|
+
this.c1i_1 = false;
|
|
1339
1354
|
}
|
|
1340
|
-
protoOf(JsonElementMarker).
|
|
1341
|
-
this.
|
|
1355
|
+
protoOf(JsonElementMarker).d1i = function (index) {
|
|
1356
|
+
this.b1i_1.l12(index);
|
|
1342
1357
|
};
|
|
1343
|
-
protoOf(JsonElementMarker).
|
|
1344
|
-
return this.
|
|
1358
|
+
protoOf(JsonElementMarker).e1i = function () {
|
|
1359
|
+
return this.b1i_1.m12();
|
|
1345
1360
|
};
|
|
1346
1361
|
function JsonDecodingException(message) {
|
|
1347
1362
|
JsonException.call(this, message);
|
|
@@ -1380,10 +1395,10 @@
|
|
|
1380
1395
|
}
|
|
1381
1396
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
1382
1397
|
entity = entity === VOID ? 'object' : entity;
|
|
1383
|
-
_this__u8e3s4.
|
|
1398
|
+
_this__u8e3s4.f1i('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.u1d_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
1384
1399
|
}
|
|
1385
1400
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
1386
|
-
_this__u8e3s4.
|
|
1401
|
+
_this__u8e3s4.g1i('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'");
|
|
1387
1402
|
}
|
|
1388
1403
|
function JsonEncodingException(message) {
|
|
1389
1404
|
JsonException.call(this, message);
|
|
@@ -1484,7 +1499,7 @@
|
|
|
1484
1499
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1485
1500
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
1486
1501
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
1487
|
-
return tmp.
|
|
1502
|
+
return tmp.i1i(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
1488
1503
|
}
|
|
1489
1504
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
1490
1505
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1499,7 +1514,7 @@
|
|
|
1499
1514
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
1500
1515
|
var tmp = get_schemaCache(json);
|
|
1501
1516
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
1502
|
-
return tmp.
|
|
1517
|
+
return tmp.i1i(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
1503
1518
|
}
|
|
1504
1519
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
1505
1520
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -1525,7 +1540,7 @@
|
|
|
1525
1540
|
}
|
|
1526
1541
|
}
|
|
1527
1542
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
1528
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1543
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1i_1;
|
|
1529
1544
|
if (tmp1_safe_receiver == null)
|
|
1530
1545
|
null;
|
|
1531
1546
|
else {
|
|
@@ -1552,7 +1567,7 @@
|
|
|
1552
1567
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1553
1568
|
tmp_0 = _this__u8e3s4.qu(i).toLowerCase();
|
|
1554
1569
|
} else if (!(strategyForClasses == null)) {
|
|
1555
|
-
tmp_0 = strategyForClasses.
|
|
1570
|
+
tmp_0 = strategyForClasses.k1i(_this__u8e3s4, i, _this__u8e3s4.qu(i));
|
|
1556
1571
|
} else {
|
|
1557
1572
|
tmp_0 = null;
|
|
1558
1573
|
}
|
|
@@ -1588,7 +1603,7 @@
|
|
|
1588
1603
|
while (tmp < tmp_0) {
|
|
1589
1604
|
var tmp_2 = tmp;
|
|
1590
1605
|
var baseName = $this_serializationNamesIndices.qu(tmp_2);
|
|
1591
|
-
tmp_1[tmp_2] = $strategy.
|
|
1606
|
+
tmp_1[tmp_2] = $strategy.k1i($this_serializationNamesIndices, tmp_2, baseName);
|
|
1592
1607
|
tmp = tmp + 1 | 0;
|
|
1593
1608
|
}
|
|
1594
1609
|
return tmp_1;
|
|
@@ -1619,8 +1634,8 @@
|
|
|
1619
1634
|
return Tombstone_instance;
|
|
1620
1635
|
}
|
|
1621
1636
|
function resize($this) {
|
|
1622
|
-
var newSize = imul($this.
|
|
1623
|
-
$this.
|
|
1637
|
+
var newSize = imul($this.n1i_1, 2);
|
|
1638
|
+
$this.l1i_1 = copyOf($this.l1i_1, newSize);
|
|
1624
1639
|
var tmp = 0;
|
|
1625
1640
|
var tmp_0 = new Int32Array(newSize);
|
|
1626
1641
|
while (tmp < newSize) {
|
|
@@ -1629,7 +1644,7 @@
|
|
|
1629
1644
|
}
|
|
1630
1645
|
var newIndices = tmp_0;
|
|
1631
1646
|
// Inline function 'kotlin.collections.copyInto' call
|
|
1632
|
-
var this_0 = $this.
|
|
1647
|
+
var this_0 = $this.m1i_1;
|
|
1633
1648
|
var endIndex = this_0.length;
|
|
1634
1649
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1635
1650
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1637,12 +1652,12 @@
|
|
|
1637
1652
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1638
1653
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1639
1654
|
arrayCopy(tmp_1, newIndices, 0, 0, endIndex);
|
|
1640
|
-
$this.
|
|
1655
|
+
$this.m1i_1 = newIndices;
|
|
1641
1656
|
}
|
|
1642
1657
|
function JsonPath() {
|
|
1643
1658
|
var tmp = this;
|
|
1644
1659
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1645
|
-
tmp.
|
|
1660
|
+
tmp.l1i_1 = Array(8);
|
|
1646
1661
|
var tmp_0 = this;
|
|
1647
1662
|
var tmp_1 = 0;
|
|
1648
1663
|
var tmp_2 = new Int32Array(8);
|
|
@@ -1650,71 +1665,71 @@
|
|
|
1650
1665
|
tmp_2[tmp_1] = -1;
|
|
1651
1666
|
tmp_1 = tmp_1 + 1 | 0;
|
|
1652
1667
|
}
|
|
1653
|
-
tmp_0.
|
|
1654
|
-
this.
|
|
1668
|
+
tmp_0.m1i_1 = tmp_2;
|
|
1669
|
+
this.n1i_1 = -1;
|
|
1655
1670
|
}
|
|
1656
|
-
protoOf(JsonPath).
|
|
1657
|
-
this.
|
|
1658
|
-
var depth = this.
|
|
1659
|
-
if (depth === this.
|
|
1671
|
+
protoOf(JsonPath).o1i = function (sd) {
|
|
1672
|
+
this.n1i_1 = this.n1i_1 + 1 | 0;
|
|
1673
|
+
var depth = this.n1i_1;
|
|
1674
|
+
if (depth === this.l1i_1.length) {
|
|
1660
1675
|
resize(this);
|
|
1661
1676
|
}
|
|
1662
|
-
this.
|
|
1677
|
+
this.l1i_1[depth] = sd;
|
|
1663
1678
|
};
|
|
1664
|
-
protoOf(JsonPath).
|
|
1665
|
-
this.
|
|
1679
|
+
protoOf(JsonPath).p1i = function (index) {
|
|
1680
|
+
this.m1i_1[this.n1i_1] = index;
|
|
1666
1681
|
};
|
|
1667
|
-
protoOf(JsonPath).
|
|
1682
|
+
protoOf(JsonPath).q1i = function (key) {
|
|
1668
1683
|
var tmp;
|
|
1669
|
-
if (!(this.
|
|
1670
|
-
this.
|
|
1671
|
-
tmp = this.
|
|
1684
|
+
if (!(this.m1i_1[this.n1i_1] === -2)) {
|
|
1685
|
+
this.n1i_1 = this.n1i_1 + 1 | 0;
|
|
1686
|
+
tmp = this.n1i_1 === this.l1i_1.length;
|
|
1672
1687
|
} else {
|
|
1673
1688
|
tmp = false;
|
|
1674
1689
|
}
|
|
1675
1690
|
if (tmp) {
|
|
1676
1691
|
resize(this);
|
|
1677
1692
|
}
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1693
|
+
this.l1i_1[this.n1i_1] = key;
|
|
1694
|
+
this.m1i_1[this.n1i_1] = -2;
|
|
1680
1695
|
};
|
|
1681
|
-
protoOf(JsonPath).
|
|
1682
|
-
if (this.
|
|
1683
|
-
this.
|
|
1696
|
+
protoOf(JsonPath).r1i = function () {
|
|
1697
|
+
if (this.m1i_1[this.n1i_1] === -2) {
|
|
1698
|
+
this.l1i_1[this.n1i_1] = Tombstone_instance;
|
|
1684
1699
|
}
|
|
1685
1700
|
};
|
|
1686
|
-
protoOf(JsonPath).
|
|
1687
|
-
var depth = this.
|
|
1688
|
-
if (this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1701
|
+
protoOf(JsonPath).s1i = function () {
|
|
1702
|
+
var depth = this.n1i_1;
|
|
1703
|
+
if (this.m1i_1[depth] === -2) {
|
|
1704
|
+
this.m1i_1[depth] = -1;
|
|
1705
|
+
this.n1i_1 = this.n1i_1 - 1 | 0;
|
|
1691
1706
|
}
|
|
1692
|
-
if (!(this.
|
|
1693
|
-
this.
|
|
1707
|
+
if (!(this.n1i_1 === -1)) {
|
|
1708
|
+
this.n1i_1 = this.n1i_1 - 1 | 0;
|
|
1694
1709
|
}
|
|
1695
1710
|
};
|
|
1696
|
-
protoOf(JsonPath).
|
|
1711
|
+
protoOf(JsonPath).t1i = function () {
|
|
1697
1712
|
// Inline function 'kotlin.text.buildString' call
|
|
1698
1713
|
// Inline function 'kotlin.apply' call
|
|
1699
1714
|
var this_0 = StringBuilder_init_$Create$();
|
|
1700
1715
|
this_0.q('$');
|
|
1701
1716
|
// Inline function 'kotlin.repeat' call
|
|
1702
|
-
var times = this.
|
|
1717
|
+
var times = this.n1i_1 + 1 | 0;
|
|
1703
1718
|
var inductionVariable = 0;
|
|
1704
1719
|
if (inductionVariable < times)
|
|
1705
1720
|
do {
|
|
1706
1721
|
var index = inductionVariable;
|
|
1707
1722
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1708
|
-
var element = this.
|
|
1723
|
+
var element = this.l1i_1[index];
|
|
1709
1724
|
if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
|
|
1710
1725
|
if (equals(element.nu(), LIST_getInstance())) {
|
|
1711
|
-
if (!(this.
|
|
1726
|
+
if (!(this.m1i_1[index] === -1)) {
|
|
1712
1727
|
this_0.q('[');
|
|
1713
|
-
this_0.yc(this.
|
|
1728
|
+
this_0.yc(this.m1i_1[index]);
|
|
1714
1729
|
this_0.q(']');
|
|
1715
1730
|
}
|
|
1716
1731
|
} else {
|
|
1717
|
-
var idx = this.
|
|
1732
|
+
var idx = this.m1i_1[index];
|
|
1718
1733
|
if (idx >= 0) {
|
|
1719
1734
|
this_0.q('.');
|
|
1720
1735
|
this_0.q(element.qu(idx));
|
|
@@ -1734,7 +1749,7 @@
|
|
|
1734
1749
|
return this_0.toString();
|
|
1735
1750
|
};
|
|
1736
1751
|
protoOf(JsonPath).toString = function () {
|
|
1737
|
-
return this.
|
|
1752
|
+
return this.t1i();
|
|
1738
1753
|
};
|
|
1739
1754
|
function checkKind($this, descriptor, actualClass) {
|
|
1740
1755
|
var kind = descriptor.nu();
|
|
@@ -1747,9 +1762,9 @@
|
|
|
1747
1762
|
if (tmp) {
|
|
1748
1763
|
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.'));
|
|
1749
1764
|
}
|
|
1750
|
-
if ($this.
|
|
1765
|
+
if ($this.v1i_1)
|
|
1751
1766
|
return Unit_instance;
|
|
1752
|
-
if (!$this.
|
|
1767
|
+
if (!$this.w1i_1)
|
|
1753
1768
|
return Unit_instance;
|
|
1754
1769
|
var tmp_0;
|
|
1755
1770
|
var tmp_1;
|
|
@@ -1775,23 +1790,23 @@
|
|
|
1775
1790
|
var i = inductionVariable;
|
|
1776
1791
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1777
1792
|
var name = descriptor.qu(i);
|
|
1778
|
-
if (name === $this.
|
|
1793
|
+
if (name === $this.u1i_1) {
|
|
1779
1794
|
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');
|
|
1780
1795
|
}
|
|
1781
1796
|
}
|
|
1782
1797
|
while (inductionVariable < last);
|
|
1783
1798
|
}
|
|
1784
1799
|
function JsonSerializersModuleValidator(configuration) {
|
|
1785
|
-
this.
|
|
1786
|
-
this.
|
|
1787
|
-
this.
|
|
1800
|
+
this.u1i_1 = configuration.b1f_1;
|
|
1801
|
+
this.v1i_1 = configuration.a1f_1;
|
|
1802
|
+
this.w1i_1 = !configuration.i1f_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
1788
1803
|
}
|
|
1789
1804
|
protoOf(JsonSerializersModuleValidator).x1c = function (kClass, provider) {
|
|
1790
1805
|
};
|
|
1791
1806
|
protoOf(JsonSerializersModuleValidator).a1d = function (baseClass, actualClass, actualSerializer) {
|
|
1792
1807
|
var descriptor = actualSerializer.ps();
|
|
1793
1808
|
checkKind(this, descriptor, actualClass);
|
|
1794
|
-
if (!this.
|
|
1809
|
+
if (!this.v1i_1 && this.w1i_1) {
|
|
1795
1810
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
1796
1811
|
}
|
|
1797
1812
|
};
|
|
@@ -1809,34 +1824,34 @@
|
|
|
1809
1824
|
}
|
|
1810
1825
|
function readObject($this) {
|
|
1811
1826
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
1812
|
-
var lastToken = $this.
|
|
1813
|
-
if ($this.
|
|
1814
|
-
$this.
|
|
1827
|
+
var lastToken = $this.g1j_1.k1j(6);
|
|
1828
|
+
if ($this.g1j_1.l1j() === 4) {
|
|
1829
|
+
$this.g1j_1.g1i('Unexpected leading comma');
|
|
1815
1830
|
}
|
|
1816
1831
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
1817
1832
|
var result = LinkedHashMap_init_$Create$();
|
|
1818
|
-
$l$loop: while ($this.
|
|
1819
|
-
var key = $this.
|
|
1820
|
-
$this.
|
|
1821
|
-
var element = $this.
|
|
1833
|
+
$l$loop: while ($this.g1j_1.m1j()) {
|
|
1834
|
+
var key = $this.h1j_1 ? $this.g1j_1.o1j() : $this.g1j_1.n1j();
|
|
1835
|
+
$this.g1j_1.k1j(5);
|
|
1836
|
+
var element = $this.p1j();
|
|
1822
1837
|
// Inline function 'kotlin.collections.set' call
|
|
1823
1838
|
result.c3(key, element);
|
|
1824
|
-
lastToken = $this.
|
|
1839
|
+
lastToken = $this.g1j_1.q1j();
|
|
1825
1840
|
var tmp0_subject = lastToken;
|
|
1826
1841
|
if (tmp0_subject !== 4)
|
|
1827
1842
|
if (tmp0_subject === 7)
|
|
1828
1843
|
break $l$loop;
|
|
1829
1844
|
else {
|
|
1830
|
-
$this.
|
|
1845
|
+
$this.g1j_1.g1i('Expected end of the object or comma');
|
|
1831
1846
|
}
|
|
1832
1847
|
}
|
|
1833
1848
|
if (lastToken === 6) {
|
|
1834
|
-
$this.
|
|
1849
|
+
$this.g1j_1.k1j(7);
|
|
1835
1850
|
} else if (lastToken === 4) {
|
|
1836
|
-
if (!$this.
|
|
1837
|
-
invalidTrailingComma($this.
|
|
1851
|
+
if (!$this.i1j_1) {
|
|
1852
|
+
invalidTrailingComma($this.g1j_1);
|
|
1838
1853
|
}
|
|
1839
|
-
$this.
|
|
1854
|
+
$this.g1j_1.k1j(7);
|
|
1840
1855
|
}
|
|
1841
1856
|
return new JsonObject(result);
|
|
1842
1857
|
}
|
|
@@ -1847,43 +1862,43 @@
|
|
|
1847
1862
|
return tmp.q9();
|
|
1848
1863
|
}
|
|
1849
1864
|
function readArray($this) {
|
|
1850
|
-
var lastToken = $this.
|
|
1851
|
-
if ($this.
|
|
1852
|
-
$this.
|
|
1865
|
+
var lastToken = $this.g1j_1.q1j();
|
|
1866
|
+
if ($this.g1j_1.l1j() === 4) {
|
|
1867
|
+
$this.g1j_1.g1i('Unexpected leading comma');
|
|
1853
1868
|
}
|
|
1854
1869
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1855
1870
|
var result = ArrayList_init_$Create$();
|
|
1856
|
-
while ($this.
|
|
1857
|
-
var element = $this.
|
|
1871
|
+
while ($this.g1j_1.m1j()) {
|
|
1872
|
+
var element = $this.p1j();
|
|
1858
1873
|
result.e1(element);
|
|
1859
|
-
lastToken = $this.
|
|
1874
|
+
lastToken = $this.g1j_1.q1j();
|
|
1860
1875
|
if (!(lastToken === 4)) {
|
|
1861
|
-
var tmp0 = $this.
|
|
1876
|
+
var tmp0 = $this.g1j_1;
|
|
1862
1877
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
1863
1878
|
var condition = lastToken === 9;
|
|
1864
1879
|
var position = tmp0.u1d_1;
|
|
1865
1880
|
if (!condition) {
|
|
1866
1881
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
1867
|
-
tmp0.
|
|
1882
|
+
tmp0.g1i(tmp$ret$1, position);
|
|
1868
1883
|
}
|
|
1869
1884
|
}
|
|
1870
1885
|
}
|
|
1871
1886
|
if (lastToken === 8) {
|
|
1872
|
-
$this.
|
|
1887
|
+
$this.g1j_1.k1j(9);
|
|
1873
1888
|
} else if (lastToken === 4) {
|
|
1874
|
-
if (!$this.
|
|
1875
|
-
invalidTrailingComma($this.
|
|
1889
|
+
if (!$this.i1j_1) {
|
|
1890
|
+
invalidTrailingComma($this.g1j_1, 'array');
|
|
1876
1891
|
}
|
|
1877
|
-
$this.
|
|
1892
|
+
$this.g1j_1.k1j(9);
|
|
1878
1893
|
}
|
|
1879
1894
|
return new JsonArray(result);
|
|
1880
1895
|
}
|
|
1881
1896
|
function readValue($this, isString) {
|
|
1882
1897
|
var tmp;
|
|
1883
|
-
if ($this.
|
|
1884
|
-
tmp = $this.
|
|
1898
|
+
if ($this.h1j_1 || !isString) {
|
|
1899
|
+
tmp = $this.g1j_1.o1j();
|
|
1885
1900
|
} else {
|
|
1886
|
-
tmp = $this.
|
|
1901
|
+
tmp = $this.g1j_1.n1j();
|
|
1887
1902
|
}
|
|
1888
1903
|
var string = tmp;
|
|
1889
1904
|
if (!isString && string === 'null')
|
|
@@ -1894,18 +1909,18 @@
|
|
|
1894
1909
|
return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
|
|
1895
1910
|
}
|
|
1896
1911
|
function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
|
|
1897
|
-
this.
|
|
1912
|
+
this.n1k_1 = this$0;
|
|
1898
1913
|
CoroutineImpl.call(this, resultContinuation);
|
|
1899
1914
|
}
|
|
1900
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1901
|
-
var tmp = this.
|
|
1915
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).r1k = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1916
|
+
var tmp = this.s1k($this$DeepRecursiveFunction, it, $completion);
|
|
1902
1917
|
tmp.k9_1 = Unit_instance;
|
|
1903
1918
|
tmp.l9_1 = null;
|
|
1904
1919
|
return tmp.q9();
|
|
1905
1920
|
};
|
|
1906
1921
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).da = function (p1, p2, $completion) {
|
|
1907
1922
|
var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
|
|
1908
|
-
return this.
|
|
1923
|
+
return this.r1k(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
|
|
1909
1924
|
};
|
|
1910
1925
|
protoOf(JsonTreeReader$readDeepRecursive$slambda).q9 = function () {
|
|
1911
1926
|
var suspendResult = this.k9_1;
|
|
@@ -1915,32 +1930,32 @@
|
|
|
1915
1930
|
switch (tmp) {
|
|
1916
1931
|
case 0:
|
|
1917
1932
|
this.j9_1 = 3;
|
|
1918
|
-
var tmp0_subject = this.
|
|
1933
|
+
var tmp0_subject = this.n1k_1.g1j_1.l1j();
|
|
1919
1934
|
if (tmp0_subject === 1) {
|
|
1920
|
-
this.
|
|
1935
|
+
this.q1k_1 = readValue(this.n1k_1, true);
|
|
1921
1936
|
this.i9_1 = 2;
|
|
1922
1937
|
continue $sm;
|
|
1923
1938
|
} else {
|
|
1924
1939
|
if (tmp0_subject === 0) {
|
|
1925
|
-
this.
|
|
1940
|
+
this.q1k_1 = readValue(this.n1k_1, false);
|
|
1926
1941
|
this.i9_1 = 2;
|
|
1927
1942
|
continue $sm;
|
|
1928
1943
|
} else {
|
|
1929
1944
|
if (tmp0_subject === 6) {
|
|
1930
1945
|
this.i9_1 = 1;
|
|
1931
|
-
suspendResult = readObject_0(this.
|
|
1946
|
+
suspendResult = readObject_0(this.n1k_1, this.o1k_1, this);
|
|
1932
1947
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1933
1948
|
return suspendResult;
|
|
1934
1949
|
}
|
|
1935
1950
|
continue $sm;
|
|
1936
1951
|
} else {
|
|
1937
1952
|
if (tmp0_subject === 8) {
|
|
1938
|
-
this.
|
|
1953
|
+
this.q1k_1 = readArray(this.n1k_1);
|
|
1939
1954
|
this.i9_1 = 2;
|
|
1940
1955
|
continue $sm;
|
|
1941
1956
|
} else {
|
|
1942
1957
|
var tmp_0 = this;
|
|
1943
|
-
this.
|
|
1958
|
+
this.n1k_1.g1j_1.g1i("Can't begin reading element, unexpected token");
|
|
1944
1959
|
}
|
|
1945
1960
|
}
|
|
1946
1961
|
}
|
|
@@ -1948,11 +1963,11 @@
|
|
|
1948
1963
|
|
|
1949
1964
|
break;
|
|
1950
1965
|
case 1:
|
|
1951
|
-
this.
|
|
1966
|
+
this.q1k_1 = suspendResult;
|
|
1952
1967
|
this.i9_1 = 2;
|
|
1953
1968
|
continue $sm;
|
|
1954
1969
|
case 2:
|
|
1955
|
-
return this.
|
|
1970
|
+
return this.q1k_1;
|
|
1956
1971
|
case 3:
|
|
1957
1972
|
throw this.l9_1;
|
|
1958
1973
|
}
|
|
@@ -1967,24 +1982,24 @@
|
|
|
1967
1982
|
}
|
|
1968
1983
|
while (true);
|
|
1969
1984
|
};
|
|
1970
|
-
protoOf(JsonTreeReader$readDeepRecursive$slambda).
|
|
1971
|
-
var i = new JsonTreeReader$readDeepRecursive$slambda(this.
|
|
1972
|
-
i.
|
|
1973
|
-
i.
|
|
1985
|
+
protoOf(JsonTreeReader$readDeepRecursive$slambda).s1k = function ($this$DeepRecursiveFunction, it, completion) {
|
|
1986
|
+
var i = new JsonTreeReader$readDeepRecursive$slambda(this.n1k_1, completion);
|
|
1987
|
+
i.o1k_1 = $this$DeepRecursiveFunction;
|
|
1988
|
+
i.p1k_1 = it;
|
|
1974
1989
|
return i;
|
|
1975
1990
|
};
|
|
1976
1991
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
1977
1992
|
var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
|
|
1978
1993
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
1979
|
-
return i.
|
|
1994
|
+
return i.r1k($this$DeepRecursiveFunction, it, $completion);
|
|
1980
1995
|
};
|
|
1981
1996
|
l.$arity = 2;
|
|
1982
1997
|
return l;
|
|
1983
1998
|
}
|
|
1984
1999
|
function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
1985
2000
|
CoroutineImpl.call(this, resultContinuation);
|
|
1986
|
-
this.
|
|
1987
|
-
this.
|
|
2001
|
+
this.z1j_1 = _this__u8e3s4;
|
|
2002
|
+
this.a1k_1 = _this__u8e3s4_0;
|
|
1988
2003
|
}
|
|
1989
2004
|
protoOf($readObjectCOROUTINE$).q9 = function () {
|
|
1990
2005
|
var suspendResult = this.k9_1;
|
|
@@ -1994,26 +2009,26 @@
|
|
|
1994
2009
|
switch (tmp) {
|
|
1995
2010
|
case 0:
|
|
1996
2011
|
this.j9_1 = 5;
|
|
1997
|
-
this.
|
|
1998
|
-
this.
|
|
1999
|
-
if (this.
|
|
2000
|
-
this.
|
|
2012
|
+
this.c1k_1 = this.z1j_1;
|
|
2013
|
+
this.d1k_1 = this.c1k_1.g1j_1.k1j(6);
|
|
2014
|
+
if (this.c1k_1.g1j_1.l1j() === 4) {
|
|
2015
|
+
this.c1k_1.g1j_1.g1i('Unexpected leading comma');
|
|
2001
2016
|
}
|
|
2002
2017
|
|
|
2003
2018
|
var tmp_0 = this;
|
|
2004
|
-
tmp_0.
|
|
2019
|
+
tmp_0.b1k_1 = LinkedHashMap_init_$Create$();
|
|
2005
2020
|
this.i9_1 = 1;
|
|
2006
2021
|
continue $sm;
|
|
2007
2022
|
case 1:
|
|
2008
|
-
if (!this.
|
|
2023
|
+
if (!this.c1k_1.g1j_1.m1j()) {
|
|
2009
2024
|
this.i9_1 = 4;
|
|
2010
2025
|
continue $sm;
|
|
2011
2026
|
}
|
|
2012
2027
|
|
|
2013
|
-
this.
|
|
2014
|
-
this.
|
|
2028
|
+
this.e1k_1 = this.c1k_1.h1j_1 ? this.c1k_1.g1j_1.o1j() : this.c1k_1.g1j_1.n1j();
|
|
2029
|
+
this.c1k_1.g1j_1.k1j(5);
|
|
2015
2030
|
this.i9_1 = 2;
|
|
2016
|
-
suspendResult = this.
|
|
2031
|
+
suspendResult = this.a1k_1.tp(Unit_instance, this);
|
|
2017
2032
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2018
2033
|
return suspendResult;
|
|
2019
2034
|
}
|
|
@@ -2021,11 +2036,11 @@
|
|
|
2021
2036
|
continue $sm;
|
|
2022
2037
|
case 2:
|
|
2023
2038
|
var element = suspendResult;
|
|
2024
|
-
var tmp0 = this.
|
|
2025
|
-
var key = this.
|
|
2039
|
+
var tmp0 = this.b1k_1;
|
|
2040
|
+
var key = this.e1k_1;
|
|
2026
2041
|
tmp0.c3(key, element);
|
|
2027
|
-
this.
|
|
2028
|
-
var tmp0_subject = this.
|
|
2042
|
+
this.d1k_1 = this.c1k_1.g1j_1.q1j();
|
|
2043
|
+
var tmp0_subject = this.d1k_1;
|
|
2029
2044
|
if (tmp0_subject === 4) {
|
|
2030
2045
|
this.i9_1 = 3;
|
|
2031
2046
|
continue $sm;
|
|
@@ -2034,7 +2049,7 @@
|
|
|
2034
2049
|
this.i9_1 = 4;
|
|
2035
2050
|
continue $sm;
|
|
2036
2051
|
} else {
|
|
2037
|
-
this.
|
|
2052
|
+
this.c1k_1.g1j_1.g1i('Expected end of the object or comma');
|
|
2038
2053
|
}
|
|
2039
2054
|
}
|
|
2040
2055
|
|
|
@@ -2043,16 +2058,16 @@
|
|
|
2043
2058
|
this.i9_1 = 1;
|
|
2044
2059
|
continue $sm;
|
|
2045
2060
|
case 4:
|
|
2046
|
-
if (this.
|
|
2047
|
-
this.
|
|
2048
|
-
} else if (this.
|
|
2049
|
-
if (!this.
|
|
2050
|
-
invalidTrailingComma(this.
|
|
2061
|
+
if (this.d1k_1 === 6) {
|
|
2062
|
+
this.c1k_1.g1j_1.k1j(7);
|
|
2063
|
+
} else if (this.d1k_1 === 4) {
|
|
2064
|
+
if (!this.c1k_1.i1j_1) {
|
|
2065
|
+
invalidTrailingComma(this.c1k_1.g1j_1);
|
|
2051
2066
|
}
|
|
2052
|
-
this.
|
|
2067
|
+
this.c1k_1.g1j_1.k1j(7);
|
|
2053
2068
|
}
|
|
2054
2069
|
|
|
2055
|
-
return new JsonObject(this.
|
|
2070
|
+
return new JsonObject(this.b1k_1);
|
|
2056
2071
|
case 5:
|
|
2057
2072
|
throw this.l9_1;
|
|
2058
2073
|
}
|
|
@@ -2068,13 +2083,13 @@
|
|
|
2068
2083
|
while (true);
|
|
2069
2084
|
};
|
|
2070
2085
|
function JsonTreeReader(configuration, lexer) {
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2086
|
+
this.g1j_1 = lexer;
|
|
2087
|
+
this.h1j_1 = configuration.u1e_1;
|
|
2088
|
+
this.i1j_1 = configuration.g1f_1;
|
|
2089
|
+
this.j1j_1 = 0;
|
|
2075
2090
|
}
|
|
2076
|
-
protoOf(JsonTreeReader).
|
|
2077
|
-
var token = this.
|
|
2091
|
+
protoOf(JsonTreeReader).p1j = function () {
|
|
2092
|
+
var token = this.g1j_1.l1j();
|
|
2078
2093
|
var tmp;
|
|
2079
2094
|
if (token === 1) {
|
|
2080
2095
|
tmp = readValue(this, true);
|
|
@@ -2082,19 +2097,19 @@
|
|
|
2082
2097
|
tmp = readValue(this, false);
|
|
2083
2098
|
} else if (token === 6) {
|
|
2084
2099
|
var tmp_0;
|
|
2085
|
-
this.
|
|
2086
|
-
if (this.
|
|
2100
|
+
this.j1j_1 = this.j1j_1 + 1 | 0;
|
|
2101
|
+
if (this.j1j_1 === 200) {
|
|
2087
2102
|
tmp_0 = readDeepRecursive(this);
|
|
2088
2103
|
} else {
|
|
2089
2104
|
tmp_0 = readObject(this);
|
|
2090
2105
|
}
|
|
2091
2106
|
var result = tmp_0;
|
|
2092
|
-
this.
|
|
2107
|
+
this.j1j_1 = this.j1j_1 - 1 | 0;
|
|
2093
2108
|
tmp = result;
|
|
2094
2109
|
} else if (token === 8) {
|
|
2095
2110
|
tmp = readArray(this);
|
|
2096
2111
|
} else {
|
|
2097
|
-
this.
|
|
2112
|
+
this.g1j_1.g1i('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
2098
2113
|
}
|
|
2099
2114
|
return tmp;
|
|
2100
2115
|
};
|
|
@@ -2103,7 +2118,7 @@
|
|
|
2103
2118
|
while (_iterator__ex2g4s.u()) {
|
|
2104
2119
|
var annotation = _iterator__ex2g4s.v();
|
|
2105
2120
|
if (annotation instanceof JsonClassDiscriminator)
|
|
2106
|
-
return annotation.
|
|
2121
|
+
return annotation.j1f_1;
|
|
2107
2122
|
}
|
|
2108
2123
|
return json.g1d_1.b1f_1;
|
|
2109
2124
|
}
|
|
@@ -2141,11 +2156,11 @@
|
|
|
2141
2156
|
function Key() {
|
|
2142
2157
|
}
|
|
2143
2158
|
function DescriptorSchemaCache() {
|
|
2144
|
-
this.
|
|
2159
|
+
this.h1i_1 = createMapForCache(16);
|
|
2145
2160
|
}
|
|
2146
2161
|
protoOf(DescriptorSchemaCache).t1k = function (descriptor, key, value) {
|
|
2147
2162
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2148
|
-
var this_0 = this.
|
|
2163
|
+
var this_0 = this.h1i_1;
|
|
2149
2164
|
var value_0 = this_0.z2(descriptor);
|
|
2150
2165
|
var tmp;
|
|
2151
2166
|
if (value_0 == null) {
|
|
@@ -2161,7 +2176,7 @@
|
|
|
2161
2176
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
2162
2177
|
tmp0.c3(tmp2, value_1);
|
|
2163
2178
|
};
|
|
2164
|
-
protoOf(DescriptorSchemaCache).
|
|
2179
|
+
protoOf(DescriptorSchemaCache).i1i = function (descriptor, key, defaultValue) {
|
|
2165
2180
|
var tmp0_safe_receiver = this.u1k(descriptor, key);
|
|
2166
2181
|
if (tmp0_safe_receiver == null)
|
|
2167
2182
|
null;
|
|
@@ -2174,7 +2189,7 @@
|
|
|
2174
2189
|
return value;
|
|
2175
2190
|
};
|
|
2176
2191
|
protoOf(DescriptorSchemaCache).u1k = function (descriptor, key) {
|
|
2177
|
-
var tmp0_safe_receiver = this.
|
|
2192
|
+
var tmp0_safe_receiver = this.h1i_1.z2(descriptor);
|
|
2178
2193
|
var tmp;
|
|
2179
2194
|
if (tmp0_safe_receiver == null) {
|
|
2180
2195
|
tmp = null;
|
|
@@ -2201,8 +2216,8 @@
|
|
|
2201
2216
|
}
|
|
2202
2217
|
}
|
|
2203
2218
|
function checkLeadingComma($this) {
|
|
2204
|
-
if ($this.o1d_1.
|
|
2205
|
-
$this.o1d_1.
|
|
2219
|
+
if ($this.o1d_1.l1j() === 4) {
|
|
2220
|
+
$this.o1d_1.g1i('Unexpected leading comma');
|
|
2206
2221
|
}
|
|
2207
2222
|
}
|
|
2208
2223
|
function decodeMapIndex($this) {
|
|
@@ -2216,7 +2231,7 @@
|
|
|
2216
2231
|
$this.o1d_1.w1k(_Char___init__impl__6a9atx(58));
|
|
2217
2232
|
}
|
|
2218
2233
|
var tmp;
|
|
2219
|
-
if ($this.o1d_1.
|
|
2234
|
+
if ($this.o1d_1.m1j()) {
|
|
2220
2235
|
if (decodingKey) {
|
|
2221
2236
|
if ($this.q1d_1 === -1) {
|
|
2222
2237
|
var tmp0 = $this.o1d_1;
|
|
@@ -2225,7 +2240,7 @@
|
|
|
2225
2240
|
var position = tmp0.u1d_1;
|
|
2226
2241
|
if (!condition) {
|
|
2227
2242
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
2228
|
-
tmp0.
|
|
2243
|
+
tmp0.g1i(tmp$ret$0, position);
|
|
2229
2244
|
}
|
|
2230
2245
|
} else {
|
|
2231
2246
|
var tmp0_0 = $this.o1d_1;
|
|
@@ -2234,7 +2249,7 @@
|
|
|
2234
2249
|
var position_0 = tmp0_0.u1d_1;
|
|
2235
2250
|
if (!condition_0) {
|
|
2236
2251
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
2237
|
-
tmp0_0.
|
|
2252
|
+
tmp0_0.g1i(tmp$ret$2, position_0);
|
|
2238
2253
|
}
|
|
2239
2254
|
}
|
|
2240
2255
|
}
|
|
@@ -2288,7 +2303,7 @@
|
|
|
2288
2303
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
2289
2304
|
var coerceToNull = !tmp0.g1d_1.x1e_1 && elementDescriptor.gu();
|
|
2290
2305
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
2291
|
-
$this.o1d_1.
|
|
2306
|
+
$this.o1d_1.n1j();
|
|
2292
2307
|
tmp$ret$1 = true;
|
|
2293
2308
|
break $l$block_2;
|
|
2294
2309
|
}
|
|
@@ -2299,7 +2314,7 @@
|
|
|
2299
2314
|
}
|
|
2300
2315
|
function decodeObjectIndex($this, descriptor) {
|
|
2301
2316
|
var hasComma = $this.o1d_1.x1k();
|
|
2302
|
-
while ($this.o1d_1.
|
|
2317
|
+
while ($this.o1d_1.m1j()) {
|
|
2303
2318
|
hasComma = false;
|
|
2304
2319
|
var key = decodeStringKey($this);
|
|
2305
2320
|
$this.o1d_1.w1k(_Char___init__impl__6a9atx(58));
|
|
@@ -2315,7 +2330,7 @@
|
|
|
2315
2330
|
if (tmp0_safe_receiver == null)
|
|
2316
2331
|
null;
|
|
2317
2332
|
else {
|
|
2318
|
-
tmp0_safe_receiver.
|
|
2333
|
+
tmp0_safe_receiver.d1i(index);
|
|
2319
2334
|
}
|
|
2320
2335
|
return index;
|
|
2321
2336
|
}
|
|
@@ -2332,14 +2347,14 @@
|
|
|
2332
2347
|
invalidTrailingComma($this.o1d_1);
|
|
2333
2348
|
}
|
|
2334
2349
|
var tmp1_safe_receiver = $this.t1d_1;
|
|
2335
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2350
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e1i();
|
|
2336
2351
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
2337
2352
|
}
|
|
2338
2353
|
function handleUnknown($this, descriptor, key) {
|
|
2339
2354
|
if (ignoreUnknownKeys(descriptor, $this.m1d_1) || trySkip($this, $this.r1d_1, key)) {
|
|
2340
2355
|
$this.o1d_1.b1l($this.s1d_1.u1e_1);
|
|
2341
2356
|
} else {
|
|
2342
|
-
$this.o1d_1.v1d_1.
|
|
2357
|
+
$this.o1d_1.v1d_1.s1i();
|
|
2343
2358
|
$this.o1d_1.a1l(key);
|
|
2344
2359
|
}
|
|
2345
2360
|
return $this.o1d_1.x1k();
|
|
@@ -2347,9 +2362,9 @@
|
|
|
2347
2362
|
function decodeListIndex($this) {
|
|
2348
2363
|
var hasComma = $this.o1d_1.x1k();
|
|
2349
2364
|
var tmp;
|
|
2350
|
-
if ($this.o1d_1.
|
|
2365
|
+
if ($this.o1d_1.m1j()) {
|
|
2351
2366
|
if (!($this.q1d_1 === -1) && !hasComma) {
|
|
2352
|
-
$this.o1d_1.
|
|
2367
|
+
$this.o1d_1.g1i('Expected end of the array or comma');
|
|
2353
2368
|
}
|
|
2354
2369
|
$this.q1d_1 = $this.q1d_1 + 1 | 0;
|
|
2355
2370
|
tmp = $this.q1d_1;
|
|
@@ -2381,14 +2396,14 @@
|
|
|
2381
2396
|
this.s1d_1 = this.m1d_1.g1d_1;
|
|
2382
2397
|
this.t1d_1 = this.s1d_1.x1e_1 ? null : new JsonElementMarker(descriptor);
|
|
2383
2398
|
}
|
|
2384
|
-
protoOf(StreamingJsonDecoder).
|
|
2399
|
+
protoOf(StreamingJsonDecoder).k1f = function () {
|
|
2385
2400
|
return this.m1d_1;
|
|
2386
2401
|
};
|
|
2387
2402
|
protoOf(StreamingJsonDecoder).at = function () {
|
|
2388
2403
|
return this.p1d_1;
|
|
2389
2404
|
};
|
|
2390
|
-
protoOf(StreamingJsonDecoder).
|
|
2391
|
-
return (new JsonTreeReader(this.m1d_1.g1d_1, this.o1d_1)).
|
|
2405
|
+
protoOf(StreamingJsonDecoder).l1f = function () {
|
|
2406
|
+
return (new JsonTreeReader(this.m1d_1.g1d_1, this.o1d_1)).p1j();
|
|
2392
2407
|
};
|
|
2393
2408
|
protoOf(StreamingJsonDecoder).et = function (deserializer) {
|
|
2394
2409
|
try {
|
|
@@ -2413,24 +2428,24 @@
|
|
|
2413
2428
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
|
|
2414
2429
|
tmp_1 = true;
|
|
2415
2430
|
} else {
|
|
2416
|
-
tmp_1 = this.
|
|
2431
|
+
tmp_1 = this.k1f().g1d_1.a1f_1;
|
|
2417
2432
|
}
|
|
2418
2433
|
if (tmp_1) {
|
|
2419
2434
|
tmp$ret$0 = tmp2.dt(this);
|
|
2420
2435
|
break $l$block;
|
|
2421
2436
|
}
|
|
2422
|
-
var discriminator_0 = classDiscriminator(tmp2.ps(), this.
|
|
2423
|
-
var tmp0 = this.
|
|
2437
|
+
var discriminator_0 = classDiscriminator(tmp2.ps(), this.k1f());
|
|
2438
|
+
var tmp0 = this.l1f();
|
|
2424
2439
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
2425
2440
|
var serialName = tmp2.ps().ut();
|
|
2426
2441
|
if (!(tmp0 instanceof JsonObject)) {
|
|
2427
2442
|
var tmp_2 = getKClass(JsonObject).o();
|
|
2428
2443
|
var tmp_3 = getKClassFromExpression(tmp0).o();
|
|
2429
|
-
var tmp$ret$1 = this.o1d_1.v1d_1.
|
|
2444
|
+
var tmp$ret$1 = this.o1d_1.v1d_1.t1i();
|
|
2430
2445
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
2431
2446
|
}
|
|
2432
2447
|
var jsonTree = tmp0;
|
|
2433
|
-
var tmp0_safe_receiver = jsonTree.
|
|
2448
|
+
var tmp0_safe_receiver = jsonTree.r1f(discriminator_0);
|
|
2434
2449
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
2435
2450
|
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
2436
2451
|
var tmp_4;
|
|
@@ -2447,7 +2462,7 @@
|
|
|
2447
2462
|
}
|
|
2448
2463
|
var tmp_6 = tmp_4;
|
|
2449
2464
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
|
|
2450
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
2465
|
+
tmp$ret$0 = readPolymorphicJson(this.k1f(), discriminator_0, jsonTree, actualSerializer);
|
|
2451
2466
|
}
|
|
2452
2467
|
return tmp$ret$0;
|
|
2453
2468
|
} else {
|
|
@@ -2463,7 +2478,7 @@
|
|
|
2463
2478
|
var it_0 = $p;
|
|
2464
2479
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
2465
2480
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
2466
|
-
this.o1d_1.
|
|
2481
|
+
this.o1d_1.g1i(message, VOID, hint);
|
|
2467
2482
|
} else {
|
|
2468
2483
|
throw $p;
|
|
2469
2484
|
}
|
|
@@ -2478,7 +2493,7 @@
|
|
|
2478
2493
|
var e = $p;
|
|
2479
2494
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
2480
2495
|
throw e;
|
|
2481
|
-
throw MissingFieldException_init_$Create$(e.au_1, plus(e.message, ' at path: ') + this.o1d_1.v1d_1.
|
|
2496
|
+
throw MissingFieldException_init_$Create$(e.au_1, plus(e.message, ' at path: ') + this.o1d_1.v1d_1.t1i(), e);
|
|
2482
2497
|
} else {
|
|
2483
2498
|
throw $p;
|
|
2484
2499
|
}
|
|
@@ -2486,7 +2501,7 @@
|
|
|
2486
2501
|
};
|
|
2487
2502
|
protoOf(StreamingJsonDecoder).ew = function (descriptor) {
|
|
2488
2503
|
var newMode = switchMode(this.m1d_1, descriptor);
|
|
2489
|
-
this.o1d_1.v1d_1.
|
|
2504
|
+
this.o1d_1.v1d_1.o1i(descriptor);
|
|
2490
2505
|
this.o1d_1.w1k(newMode.h1l_1);
|
|
2491
2506
|
checkLeadingComma(this);
|
|
2492
2507
|
var tmp;
|
|
@@ -2517,12 +2532,12 @@
|
|
|
2517
2532
|
invalidTrailingComma(this.o1d_1, '');
|
|
2518
2533
|
}
|
|
2519
2534
|
this.o1d_1.w1k(this.n1d_1.i1l_1);
|
|
2520
|
-
this.o1d_1.v1d_1.
|
|
2535
|
+
this.o1d_1.v1d_1.s1i();
|
|
2521
2536
|
};
|
|
2522
2537
|
protoOf(StreamingJsonDecoder).qv = function () {
|
|
2523
2538
|
var tmp;
|
|
2524
2539
|
var tmp0_safe_receiver = this.t1d_1;
|
|
2525
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2540
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1i_1;
|
|
2526
2541
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
2527
2542
|
tmp = !this.o1d_1.j1l();
|
|
2528
2543
|
} else {
|
|
@@ -2536,11 +2551,11 @@
|
|
|
2536
2551
|
protoOf(StreamingJsonDecoder).qw = function (descriptor, index, deserializer, previousValue) {
|
|
2537
2552
|
var isMapKey = this.n1d_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
2538
2553
|
if (isMapKey) {
|
|
2539
|
-
this.o1d_1.v1d_1.
|
|
2554
|
+
this.o1d_1.v1d_1.r1i();
|
|
2540
2555
|
}
|
|
2541
2556
|
var value = protoOf(AbstractDecoder).qw.call(this, descriptor, index, deserializer, previousValue);
|
|
2542
2557
|
if (isMapKey) {
|
|
2543
|
-
this.o1d_1.v1d_1.
|
|
2558
|
+
this.o1d_1.v1d_1.q1i(value);
|
|
2544
2559
|
}
|
|
2545
2560
|
return value;
|
|
2546
2561
|
};
|
|
@@ -2558,7 +2573,7 @@
|
|
|
2558
2573
|
break;
|
|
2559
2574
|
}
|
|
2560
2575
|
if (!this.n1d_1.equals(WriteMode_MAP_getInstance())) {
|
|
2561
|
-
this.o1d_1.v1d_1.
|
|
2576
|
+
this.o1d_1.v1d_1.p1i(index);
|
|
2562
2577
|
}
|
|
2563
2578
|
return index;
|
|
2564
2579
|
};
|
|
@@ -2568,21 +2583,21 @@
|
|
|
2568
2583
|
protoOf(StreamingJsonDecoder).tv = function () {
|
|
2569
2584
|
var value = this.o1d_1.l1l();
|
|
2570
2585
|
if (!(value === fromInt(convertToByte(value)))) {
|
|
2571
|
-
this.o1d_1.
|
|
2586
|
+
this.o1d_1.g1i("Failed to parse byte for input '" + value.toString() + "'");
|
|
2572
2587
|
}
|
|
2573
2588
|
return convertToByte(value);
|
|
2574
2589
|
};
|
|
2575
2590
|
protoOf(StreamingJsonDecoder).uv = function () {
|
|
2576
2591
|
var value = this.o1d_1.l1l();
|
|
2577
2592
|
if (!(value === fromInt(convertToShort(value)))) {
|
|
2578
|
-
this.o1d_1.
|
|
2593
|
+
this.o1d_1.g1i("Failed to parse short for input '" + value.toString() + "'");
|
|
2579
2594
|
}
|
|
2580
2595
|
return convertToShort(value);
|
|
2581
2596
|
};
|
|
2582
2597
|
protoOf(StreamingJsonDecoder).vv = function () {
|
|
2583
2598
|
var value = this.o1d_1.l1l();
|
|
2584
2599
|
if (!(value === fromInt(convertToInt(value)))) {
|
|
2585
|
-
this.o1d_1.
|
|
2600
|
+
this.o1d_1.g1i("Failed to parse int for input '" + value.toString() + "'");
|
|
2586
2601
|
}
|
|
2587
2602
|
return convertToInt(value);
|
|
2588
2603
|
};
|
|
@@ -2594,7 +2609,7 @@
|
|
|
2594
2609
|
var tmp$ret$4;
|
|
2595
2610
|
$l$block: {
|
|
2596
2611
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2597
|
-
var input = tmp0.
|
|
2612
|
+
var input = tmp0.o1j();
|
|
2598
2613
|
try {
|
|
2599
2614
|
// Inline function 'kotlin.text.toFloat' call
|
|
2600
2615
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -2604,7 +2619,7 @@
|
|
|
2604
2619
|
} catch ($p) {
|
|
2605
2620
|
if ($p instanceof IllegalArgumentException) {
|
|
2606
2621
|
var e = $p;
|
|
2607
|
-
tmp0.
|
|
2622
|
+
tmp0.g1i("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
2608
2623
|
} else {
|
|
2609
2624
|
throw $p;
|
|
2610
2625
|
}
|
|
@@ -2621,14 +2636,14 @@
|
|
|
2621
2636
|
var tmp$ret$1;
|
|
2622
2637
|
$l$block: {
|
|
2623
2638
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2624
|
-
var input = tmp0.
|
|
2639
|
+
var input = tmp0.o1j();
|
|
2625
2640
|
try {
|
|
2626
2641
|
tmp$ret$1 = toDouble(input);
|
|
2627
2642
|
break $l$block;
|
|
2628
2643
|
} catch ($p) {
|
|
2629
2644
|
if ($p instanceof IllegalArgumentException) {
|
|
2630
2645
|
var e = $p;
|
|
2631
|
-
tmp0.
|
|
2646
|
+
tmp0.g1i("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
2632
2647
|
} else {
|
|
2633
2648
|
throw $p;
|
|
2634
2649
|
}
|
|
@@ -2641,9 +2656,9 @@
|
|
|
2641
2656
|
throwInvalidFloatingPointDecoded(this.o1d_1, result);
|
|
2642
2657
|
};
|
|
2643
2658
|
protoOf(StreamingJsonDecoder).zv = function () {
|
|
2644
|
-
var string = this.o1d_1.
|
|
2659
|
+
var string = this.o1d_1.o1j();
|
|
2645
2660
|
if (!(string.length === 1)) {
|
|
2646
|
-
this.o1d_1.
|
|
2661
|
+
this.o1d_1.g1i("Expected single char, but got '" + string + "'");
|
|
2647
2662
|
}
|
|
2648
2663
|
return charCodeAt(string, 0);
|
|
2649
2664
|
};
|
|
@@ -2652,7 +2667,7 @@
|
|
|
2652
2667
|
if (this.s1d_1.u1e_1) {
|
|
2653
2668
|
tmp = this.o1d_1.d1l();
|
|
2654
2669
|
} else {
|
|
2655
|
-
tmp = this.o1d_1.
|
|
2670
|
+
tmp = this.o1d_1.n1j();
|
|
2656
2671
|
}
|
|
2657
2672
|
return tmp;
|
|
2658
2673
|
};
|
|
@@ -2660,7 +2675,7 @@
|
|
|
2660
2675
|
return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.o1d_1, this.m1d_1) : protoOf(AbstractDecoder).cw.call(this, descriptor);
|
|
2661
2676
|
};
|
|
2662
2677
|
protoOf(StreamingJsonDecoder).bw = function (enumDescriptor) {
|
|
2663
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.m1d_1, this.aw(), ' at path ' + this.o1d_1.v1d_1.
|
|
2678
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.m1d_1, this.aw(), ' at path ' + this.o1d_1.v1d_1.t1i());
|
|
2664
2679
|
};
|
|
2665
2680
|
function JsonDecoderForUnsignedTypes(lexer, json) {
|
|
2666
2681
|
AbstractDecoder.call(this);
|
|
@@ -2679,7 +2694,7 @@
|
|
|
2679
2694
|
var tmp$ret$2;
|
|
2680
2695
|
$l$block: {
|
|
2681
2696
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2682
|
-
var input = tmp0.
|
|
2697
|
+
var input = tmp0.o1j();
|
|
2683
2698
|
try {
|
|
2684
2699
|
// Inline function 'kotlin.UInt.toInt' call
|
|
2685
2700
|
var this_0 = toUInt(input);
|
|
@@ -2688,7 +2703,7 @@
|
|
|
2688
2703
|
} catch ($p) {
|
|
2689
2704
|
if ($p instanceof IllegalArgumentException) {
|
|
2690
2705
|
var e = $p;
|
|
2691
|
-
tmp0.
|
|
2706
|
+
tmp0.g1i("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
2692
2707
|
} else {
|
|
2693
2708
|
throw $p;
|
|
2694
2709
|
}
|
|
@@ -2701,7 +2716,7 @@
|
|
|
2701
2716
|
var tmp$ret$2;
|
|
2702
2717
|
$l$block: {
|
|
2703
2718
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2704
|
-
var input = tmp0.
|
|
2719
|
+
var input = tmp0.o1j();
|
|
2705
2720
|
try {
|
|
2706
2721
|
// Inline function 'kotlin.ULong.toLong' call
|
|
2707
2722
|
var this_0 = toULong(input);
|
|
@@ -2710,7 +2725,7 @@
|
|
|
2710
2725
|
} catch ($p) {
|
|
2711
2726
|
if ($p instanceof IllegalArgumentException) {
|
|
2712
2727
|
var e = $p;
|
|
2713
|
-
tmp0.
|
|
2728
|
+
tmp0.g1i("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
2714
2729
|
} else {
|
|
2715
2730
|
throw $p;
|
|
2716
2731
|
}
|
|
@@ -2723,7 +2738,7 @@
|
|
|
2723
2738
|
var tmp$ret$2;
|
|
2724
2739
|
$l$block: {
|
|
2725
2740
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2726
|
-
var input = tmp0.
|
|
2741
|
+
var input = tmp0.o1j();
|
|
2727
2742
|
try {
|
|
2728
2743
|
// Inline function 'kotlin.UByte.toByte' call
|
|
2729
2744
|
var this_0 = toUByte(input);
|
|
@@ -2732,7 +2747,7 @@
|
|
|
2732
2747
|
} catch ($p) {
|
|
2733
2748
|
if ($p instanceof IllegalArgumentException) {
|
|
2734
2749
|
var e = $p;
|
|
2735
|
-
tmp0.
|
|
2750
|
+
tmp0.g1i("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
2736
2751
|
} else {
|
|
2737
2752
|
throw $p;
|
|
2738
2753
|
}
|
|
@@ -2745,7 +2760,7 @@
|
|
|
2745
2760
|
var tmp$ret$2;
|
|
2746
2761
|
$l$block: {
|
|
2747
2762
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
2748
|
-
var input = tmp0.
|
|
2763
|
+
var input = tmp0.o1j();
|
|
2749
2764
|
try {
|
|
2750
2765
|
// Inline function 'kotlin.UShort.toShort' call
|
|
2751
2766
|
var this_0 = toUShort(input);
|
|
@@ -2754,7 +2769,7 @@
|
|
|
2754
2769
|
} catch ($p) {
|
|
2755
2770
|
if ($p instanceof IllegalArgumentException) {
|
|
2756
2771
|
var e = $p;
|
|
2757
|
-
tmp0.
|
|
2772
|
+
tmp0.g1i("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
2758
2773
|
} else {
|
|
2759
2774
|
throw $p;
|
|
2760
2775
|
}
|
|
@@ -2775,53 +2790,53 @@
|
|
|
2775
2790
|
return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
|
|
2776
2791
|
}
|
|
2777
2792
|
function encodeTypeInfo($this, discriminator, serialName) {
|
|
2778
|
-
$this.
|
|
2793
|
+
$this.x1i_1.a1h();
|
|
2779
2794
|
$this.ix(discriminator);
|
|
2780
|
-
$this.
|
|
2781
|
-
$this.
|
|
2795
|
+
$this.x1i_1.d1h(_Char___init__impl__6a9atx(58));
|
|
2796
|
+
$this.x1i_1.c1h();
|
|
2782
2797
|
$this.ix(serialName);
|
|
2783
2798
|
}
|
|
2784
2799
|
function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
|
|
2785
2800
|
AbstractEncoder.call(this);
|
|
2786
|
-
this.
|
|
2787
|
-
this.
|
|
2788
|
-
this.
|
|
2789
|
-
this.
|
|
2790
|
-
this.
|
|
2791
|
-
this.
|
|
2792
|
-
this.
|
|
2793
|
-
this.d1j_1 = null;
|
|
2801
|
+
this.x1i_1 = composer;
|
|
2802
|
+
this.y1i_1 = json;
|
|
2803
|
+
this.z1i_1 = mode;
|
|
2804
|
+
this.a1j_1 = modeReuseCache;
|
|
2805
|
+
this.b1j_1 = this.y1i_1.at();
|
|
2806
|
+
this.c1j_1 = this.y1i_1.g1d_1;
|
|
2807
|
+
this.d1j_1 = false;
|
|
2794
2808
|
this.e1j_1 = null;
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2809
|
+
this.f1j_1 = null;
|
|
2810
|
+
var i = this.z1i_1.a1_1;
|
|
2811
|
+
if (!(this.a1j_1 == null)) {
|
|
2812
|
+
if (!(this.a1j_1[i] === null) || !(this.a1j_1[i] === this)) {
|
|
2813
|
+
this.a1j_1[i] = this;
|
|
2799
2814
|
}
|
|
2800
2815
|
}
|
|
2801
2816
|
}
|
|
2802
|
-
protoOf(StreamingJsonEncoder).
|
|
2803
|
-
return this.
|
|
2817
|
+
protoOf(StreamingJsonEncoder).k1f = function () {
|
|
2818
|
+
return this.y1i_1;
|
|
2804
2819
|
};
|
|
2805
2820
|
protoOf(StreamingJsonEncoder).at = function () {
|
|
2806
|
-
return this.
|
|
2821
|
+
return this.b1j_1;
|
|
2807
2822
|
};
|
|
2808
2823
|
protoOf(StreamingJsonEncoder).ay = function (descriptor, index) {
|
|
2809
|
-
return this.
|
|
2824
|
+
return this.c1j_1.s1e_1;
|
|
2810
2825
|
};
|
|
2811
2826
|
protoOf(StreamingJsonEncoder).bt = function (serializer, value) {
|
|
2812
2827
|
$l$block: {
|
|
2813
2828
|
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
2814
|
-
if (this.
|
|
2829
|
+
if (this.k1f().g1d_1.a1f_1) {
|
|
2815
2830
|
serializer.ct(this, value);
|
|
2816
2831
|
break $l$block;
|
|
2817
2832
|
}
|
|
2818
2833
|
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
2819
2834
|
var tmp;
|
|
2820
2835
|
if (isPolymorphicSerializer) {
|
|
2821
|
-
tmp = !this.
|
|
2836
|
+
tmp = !this.k1f().g1d_1.i1f_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
2822
2837
|
} else {
|
|
2823
2838
|
var tmp_0;
|
|
2824
|
-
switch (this.
|
|
2839
|
+
switch (this.k1f().g1d_1.i1f_1.a1_1) {
|
|
2825
2840
|
case 0:
|
|
2826
2841
|
case 2:
|
|
2827
2842
|
tmp_0 = false;
|
|
@@ -2839,7 +2854,7 @@
|
|
|
2839
2854
|
tmp = tmp_0;
|
|
2840
2855
|
}
|
|
2841
2856
|
var needDiscriminator = tmp;
|
|
2842
|
-
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.ps(), this.
|
|
2857
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.ps(), this.k1f()) : null;
|
|
2843
2858
|
var tmp_1;
|
|
2844
2859
|
if (isPolymorphicSerializer) {
|
|
2845
2860
|
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
@@ -2864,93 +2879,93 @@
|
|
|
2864
2879
|
var actualSerializer = tmp_1;
|
|
2865
2880
|
if (!(baseClassDiscriminator == null)) {
|
|
2866
2881
|
var serialName = actualSerializer.ps().ut();
|
|
2867
|
-
this.
|
|
2868
|
-
this.
|
|
2882
|
+
this.e1j_1 = baseClassDiscriminator;
|
|
2883
|
+
this.f1j_1 = serialName;
|
|
2869
2884
|
}
|
|
2870
2885
|
actualSerializer.ct(this, value);
|
|
2871
2886
|
}
|
|
2872
2887
|
};
|
|
2873
2888
|
protoOf(StreamingJsonEncoder).ew = function (descriptor) {
|
|
2874
|
-
var newMode = switchMode(this.
|
|
2889
|
+
var newMode = switchMode(this.y1i_1, descriptor);
|
|
2875
2890
|
if (!(newMode.h1l_1 === _Char___init__impl__6a9atx(0))) {
|
|
2876
|
-
this.
|
|
2877
|
-
this.
|
|
2891
|
+
this.x1i_1.d1h(newMode.h1l_1);
|
|
2892
|
+
this.x1i_1.y1g();
|
|
2878
2893
|
}
|
|
2879
|
-
var discriminator = this.
|
|
2894
|
+
var discriminator = this.e1j_1;
|
|
2880
2895
|
if (!(discriminator == null)) {
|
|
2881
|
-
var tmp0_elvis_lhs = this.
|
|
2896
|
+
var tmp0_elvis_lhs = this.f1j_1;
|
|
2882
2897
|
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.ut() : tmp0_elvis_lhs);
|
|
2883
|
-
this.d1j_1 = null;
|
|
2884
2898
|
this.e1j_1 = null;
|
|
2899
|
+
this.f1j_1 = null;
|
|
2885
2900
|
}
|
|
2886
|
-
if (this.
|
|
2901
|
+
if (this.z1i_1.equals(newMode)) {
|
|
2887
2902
|
return this;
|
|
2888
2903
|
}
|
|
2889
|
-
var tmp1_safe_receiver = this.
|
|
2904
|
+
var tmp1_safe_receiver = this.a1j_1;
|
|
2890
2905
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.a1_1];
|
|
2891
|
-
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.
|
|
2906
|
+
return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.x1i_1, this.y1i_1, newMode, this.a1j_1) : tmp2_elvis_lhs;
|
|
2892
2907
|
};
|
|
2893
2908
|
protoOf(StreamingJsonEncoder).fw = function (descriptor) {
|
|
2894
|
-
if (!(this.
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2909
|
+
if (!(this.z1i_1.i1l_1 === _Char___init__impl__6a9atx(0))) {
|
|
2910
|
+
this.x1i_1.z1g();
|
|
2911
|
+
this.x1i_1.b1h();
|
|
2912
|
+
this.x1i_1.d1h(this.z1i_1.i1l_1);
|
|
2898
2913
|
}
|
|
2899
2914
|
};
|
|
2900
2915
|
protoOf(StreamingJsonEncoder).xw = function (descriptor, index) {
|
|
2901
|
-
switch (this.
|
|
2916
|
+
switch (this.z1i_1.a1_1) {
|
|
2902
2917
|
case 1:
|
|
2903
|
-
if (!this.
|
|
2904
|
-
this.
|
|
2918
|
+
if (!this.x1i_1.x1g_1) {
|
|
2919
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(44));
|
|
2905
2920
|
}
|
|
2906
2921
|
|
|
2907
|
-
this.
|
|
2922
|
+
this.x1i_1.a1h();
|
|
2908
2923
|
break;
|
|
2909
2924
|
case 2:
|
|
2910
|
-
if (!this.
|
|
2925
|
+
if (!this.x1i_1.x1g_1) {
|
|
2911
2926
|
var tmp = this;
|
|
2912
2927
|
var tmp_0;
|
|
2913
2928
|
if ((index % 2 | 0) === 0) {
|
|
2914
|
-
this.
|
|
2915
|
-
this.
|
|
2929
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(44));
|
|
2930
|
+
this.x1i_1.a1h();
|
|
2916
2931
|
tmp_0 = true;
|
|
2917
2932
|
} else {
|
|
2918
|
-
this.
|
|
2919
|
-
this.
|
|
2933
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(58));
|
|
2934
|
+
this.x1i_1.c1h();
|
|
2920
2935
|
tmp_0 = false;
|
|
2921
2936
|
}
|
|
2922
|
-
tmp.
|
|
2937
|
+
tmp.d1j_1 = tmp_0;
|
|
2923
2938
|
} else {
|
|
2924
|
-
this.
|
|
2925
|
-
this.
|
|
2939
|
+
this.d1j_1 = true;
|
|
2940
|
+
this.x1i_1.a1h();
|
|
2926
2941
|
}
|
|
2927
2942
|
|
|
2928
2943
|
break;
|
|
2929
2944
|
case 3:
|
|
2930
2945
|
if (index === 0)
|
|
2931
|
-
this.
|
|
2946
|
+
this.d1j_1 = true;
|
|
2932
2947
|
if (index === 1) {
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2948
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(44));
|
|
2949
|
+
this.x1i_1.c1h();
|
|
2950
|
+
this.d1j_1 = false;
|
|
2936
2951
|
}
|
|
2937
2952
|
|
|
2938
2953
|
break;
|
|
2939
2954
|
default:
|
|
2940
|
-
if (!this.
|
|
2941
|
-
this.
|
|
2955
|
+
if (!this.x1i_1.x1g_1) {
|
|
2956
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(44));
|
|
2942
2957
|
}
|
|
2943
2958
|
|
|
2944
|
-
this.
|
|
2945
|
-
this.ix(getJsonElementName(descriptor, this.
|
|
2946
|
-
this.
|
|
2947
|
-
this.
|
|
2959
|
+
this.x1i_1.a1h();
|
|
2960
|
+
this.ix(getJsonElementName(descriptor, this.y1i_1, index));
|
|
2961
|
+
this.x1i_1.d1h(_Char___init__impl__6a9atx(58));
|
|
2962
|
+
this.x1i_1.c1h();
|
|
2948
2963
|
break;
|
|
2949
2964
|
}
|
|
2950
2965
|
return true;
|
|
2951
2966
|
};
|
|
2952
2967
|
protoOf(StreamingJsonEncoder).wx = function (descriptor, index, serializer, value) {
|
|
2953
|
-
if (!(value == null) || this.
|
|
2968
|
+
if (!(value == null) || this.c1j_1.x1e_1) {
|
|
2954
2969
|
protoOf(AbstractEncoder).wx.call(this, descriptor, index, serializer, value);
|
|
2955
2970
|
}
|
|
2956
2971
|
};
|
|
@@ -2959,32 +2974,32 @@
|
|
|
2959
2974
|
if (get_isUnsignedNumber(descriptor)) {
|
|
2960
2975
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2961
2976
|
var tmp_0;
|
|
2962
|
-
var tmp_1 = this.
|
|
2977
|
+
var tmp_1 = this.x1i_1;
|
|
2963
2978
|
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
2964
|
-
tmp_0 = this.
|
|
2979
|
+
tmp_0 = this.x1i_1;
|
|
2965
2980
|
} else {
|
|
2966
|
-
var tmp0 = this.
|
|
2967
|
-
var p1 = this.
|
|
2981
|
+
var tmp0 = this.x1i_1.w1g_1;
|
|
2982
|
+
var p1 = this.d1j_1;
|
|
2968
2983
|
tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
|
|
2969
2984
|
}
|
|
2970
2985
|
var tmp$ret$1 = tmp_0;
|
|
2971
|
-
tmp = new StreamingJsonEncoder(tmp$ret$1, this.
|
|
2986
|
+
tmp = new StreamingJsonEncoder(tmp$ret$1, this.y1i_1, this.z1i_1, null);
|
|
2972
2987
|
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
2973
2988
|
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
2974
2989
|
var tmp_2;
|
|
2975
|
-
var tmp_3 = this.
|
|
2990
|
+
var tmp_3 = this.x1i_1;
|
|
2976
2991
|
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
2977
|
-
tmp_2 = this.
|
|
2992
|
+
tmp_2 = this.x1i_1;
|
|
2978
2993
|
} else {
|
|
2979
|
-
var tmp0_0 = this.
|
|
2980
|
-
var p1_0 = this.
|
|
2994
|
+
var tmp0_0 = this.x1i_1.w1g_1;
|
|
2995
|
+
var p1_0 = this.d1j_1;
|
|
2981
2996
|
tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
|
|
2982
2997
|
}
|
|
2983
2998
|
var tmp$ret$3 = tmp_2;
|
|
2984
|
-
tmp = new StreamingJsonEncoder(tmp$ret$3, this.
|
|
2985
|
-
} else if (!(this.
|
|
2999
|
+
tmp = new StreamingJsonEncoder(tmp$ret$3, this.y1i_1, this.z1i_1, null);
|
|
3000
|
+
} else if (!(this.e1j_1 == null)) {
|
|
2986
3001
|
// Inline function 'kotlin.apply' call
|
|
2987
|
-
this.
|
|
3002
|
+
this.f1j_1 = descriptor.ut();
|
|
2988
3003
|
tmp = this;
|
|
2989
3004
|
} else {
|
|
2990
3005
|
tmp = protoOf(AbstractEncoder).kx.call(this, descriptor);
|
|
@@ -2992,68 +3007,68 @@
|
|
|
2992
3007
|
return tmp;
|
|
2993
3008
|
};
|
|
2994
3009
|
protoOf(StreamingJsonEncoder).zw = function () {
|
|
2995
|
-
this.
|
|
3010
|
+
this.x1i_1.f1h('null');
|
|
2996
3011
|
};
|
|
2997
3012
|
protoOf(StreamingJsonEncoder).ax = function (value) {
|
|
2998
|
-
if (this.
|
|
3013
|
+
if (this.d1j_1) {
|
|
2999
3014
|
this.ix(value.toString());
|
|
3000
3015
|
} else {
|
|
3001
|
-
this.
|
|
3016
|
+
this.x1i_1.o1h(value);
|
|
3002
3017
|
}
|
|
3003
3018
|
};
|
|
3004
3019
|
protoOf(StreamingJsonEncoder).bx = function (value) {
|
|
3005
|
-
if (this.
|
|
3020
|
+
if (this.d1j_1) {
|
|
3006
3021
|
this.ix(value.toString());
|
|
3007
3022
|
} else {
|
|
3008
|
-
this.
|
|
3023
|
+
this.x1i_1.j1h(value);
|
|
3009
3024
|
}
|
|
3010
3025
|
};
|
|
3011
3026
|
protoOf(StreamingJsonEncoder).cx = function (value) {
|
|
3012
|
-
if (this.
|
|
3027
|
+
if (this.d1j_1) {
|
|
3013
3028
|
this.ix(value.toString());
|
|
3014
3029
|
} else {
|
|
3015
|
-
this.
|
|
3030
|
+
this.x1i_1.l1h(value);
|
|
3016
3031
|
}
|
|
3017
3032
|
};
|
|
3018
3033
|
protoOf(StreamingJsonEncoder).dx = function (value) {
|
|
3019
|
-
if (this.
|
|
3034
|
+
if (this.d1j_1) {
|
|
3020
3035
|
this.ix(value.toString());
|
|
3021
3036
|
} else {
|
|
3022
|
-
this.
|
|
3037
|
+
this.x1i_1.m1h(value);
|
|
3023
3038
|
}
|
|
3024
3039
|
};
|
|
3025
3040
|
protoOf(StreamingJsonEncoder).ex = function (value) {
|
|
3026
|
-
if (this.
|
|
3041
|
+
if (this.d1j_1) {
|
|
3027
3042
|
this.ix(value.toString());
|
|
3028
3043
|
} else {
|
|
3029
|
-
this.
|
|
3044
|
+
this.x1i_1.n1h(value);
|
|
3030
3045
|
}
|
|
3031
3046
|
};
|
|
3032
3047
|
protoOf(StreamingJsonEncoder).fx = function (value) {
|
|
3033
|
-
if (this.
|
|
3048
|
+
if (this.d1j_1) {
|
|
3034
3049
|
this.ix(value.toString());
|
|
3035
3050
|
} else {
|
|
3036
|
-
this.
|
|
3051
|
+
this.x1i_1.h1h(value);
|
|
3037
3052
|
}
|
|
3038
|
-
if (!this.
|
|
3039
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3053
|
+
if (!this.c1j_1.c1f_1 && !isFinite(value)) {
|
|
3054
|
+
throw InvalidFloatingPointEncoded(value, toString(this.x1i_1.w1g_1));
|
|
3040
3055
|
}
|
|
3041
3056
|
};
|
|
3042
3057
|
protoOf(StreamingJsonEncoder).gx = function (value) {
|
|
3043
|
-
if (this.
|
|
3058
|
+
if (this.d1j_1) {
|
|
3044
3059
|
this.ix(value.toString());
|
|
3045
3060
|
} else {
|
|
3046
|
-
this.
|
|
3061
|
+
this.x1i_1.i1h(value);
|
|
3047
3062
|
}
|
|
3048
|
-
if (!this.
|
|
3049
|
-
throw InvalidFloatingPointEncoded(value, toString(this.
|
|
3063
|
+
if (!this.c1j_1.c1f_1 && !isFinite_0(value)) {
|
|
3064
|
+
throw InvalidFloatingPointEncoded(value, toString(this.x1i_1.w1g_1));
|
|
3050
3065
|
}
|
|
3051
3066
|
};
|
|
3052
3067
|
protoOf(StreamingJsonEncoder).hx = function (value) {
|
|
3053
3068
|
this.ix(toString_1(value));
|
|
3054
3069
|
};
|
|
3055
3070
|
protoOf(StreamingJsonEncoder).ix = function (value) {
|
|
3056
|
-
return this.
|
|
3071
|
+
return this.x1i_1.p1h(value);
|
|
3057
3072
|
};
|
|
3058
3073
|
protoOf(StreamingJsonEncoder).jx = function (enumDescriptor, index) {
|
|
3059
3074
|
this.ix(enumDescriptor.qu(index));
|
|
@@ -3235,16 +3250,16 @@
|
|
|
3235
3250
|
this.q1l_1 = json;
|
|
3236
3251
|
this.r1l_1 = value;
|
|
3237
3252
|
this.s1l_1 = polymorphicDiscriminator;
|
|
3238
|
-
this.t1l_1 = this.
|
|
3253
|
+
this.t1l_1 = this.k1f().g1d_1;
|
|
3239
3254
|
}
|
|
3240
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3255
|
+
protoOf(AbstractJsonTreeDecoder).k1f = function () {
|
|
3241
3256
|
return this.q1l_1;
|
|
3242
3257
|
};
|
|
3243
3258
|
protoOf(AbstractJsonTreeDecoder).n1 = function () {
|
|
3244
3259
|
return this.r1l_1;
|
|
3245
3260
|
};
|
|
3246
3261
|
protoOf(AbstractJsonTreeDecoder).at = function () {
|
|
3247
|
-
return this.
|
|
3262
|
+
return this.k1f().at();
|
|
3248
3263
|
};
|
|
3249
3264
|
protoOf(AbstractJsonTreeDecoder).v1l = function () {
|
|
3250
3265
|
var tmp0_safe_receiver = this.n1a();
|
|
@@ -3261,7 +3276,7 @@
|
|
|
3261
3276
|
protoOf(AbstractJsonTreeDecoder).u1l = function (currentTag) {
|
|
3262
3277
|
return this.p1a() + ('.' + currentTag);
|
|
3263
3278
|
};
|
|
3264
|
-
protoOf(AbstractJsonTreeDecoder).
|
|
3279
|
+
protoOf(AbstractJsonTreeDecoder).l1f = function () {
|
|
3265
3280
|
return this.v1l();
|
|
3266
3281
|
};
|
|
3267
3282
|
protoOf(AbstractJsonTreeDecoder).et = function (deserializer) {
|
|
@@ -3272,14 +3287,14 @@
|
|
|
3272
3287
|
if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
|
|
3273
3288
|
tmp = true;
|
|
3274
3289
|
} else {
|
|
3275
|
-
tmp = this.
|
|
3290
|
+
tmp = this.k1f().g1d_1.a1f_1;
|
|
3276
3291
|
}
|
|
3277
3292
|
if (tmp) {
|
|
3278
3293
|
tmp$ret$0 = deserializer.dt(this);
|
|
3279
3294
|
break $l$block;
|
|
3280
3295
|
}
|
|
3281
|
-
var discriminator = classDiscriminator(deserializer.ps(), this.
|
|
3282
|
-
var tmp0 = this.
|
|
3296
|
+
var discriminator = classDiscriminator(deserializer.ps(), this.k1f());
|
|
3297
|
+
var tmp0 = this.l1f();
|
|
3283
3298
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3284
3299
|
var serialName = deserializer.ps().ut();
|
|
3285
3300
|
if (!(tmp0 instanceof JsonObject)) {
|
|
@@ -3289,7 +3304,7 @@
|
|
|
3289
3304
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
3290
3305
|
}
|
|
3291
3306
|
var jsonTree = tmp0;
|
|
3292
|
-
var tmp0_safe_receiver = jsonTree.
|
|
3307
|
+
var tmp0_safe_receiver = jsonTree.r1f(discriminator);
|
|
3293
3308
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
3294
3309
|
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
3295
3310
|
var tmp_2;
|
|
@@ -3306,7 +3321,7 @@
|
|
|
3306
3321
|
}
|
|
3307
3322
|
var tmp_4 = tmp_2;
|
|
3308
3323
|
var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
|
|
3309
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
3324
|
+
tmp$ret$0 = readPolymorphicJson(this.k1f(), discriminator, jsonTree, actualSerializer);
|
|
3310
3325
|
}
|
|
3311
3326
|
return tmp$ret$0;
|
|
3312
3327
|
};
|
|
@@ -3324,7 +3339,7 @@
|
|
|
3324
3339
|
tmp_0 = tmp0_subject instanceof PolymorphicKind;
|
|
3325
3340
|
}
|
|
3326
3341
|
if (tmp_0) {
|
|
3327
|
-
var tmp_1 = this.
|
|
3342
|
+
var tmp_1 = this.k1f();
|
|
3328
3343
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3329
3344
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3330
3345
|
var serialName = descriptor.ut();
|
|
@@ -3338,7 +3353,7 @@
|
|
|
3338
3353
|
} else {
|
|
3339
3354
|
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
3340
3355
|
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
3341
|
-
var this_0 = this.
|
|
3356
|
+
var this_0 = this.k1f();
|
|
3342
3357
|
var keyDescriptor = carrierDescriptor(descriptor.tu(0), this_0.at());
|
|
3343
3358
|
var keyKind = keyDescriptor.nu();
|
|
3344
3359
|
var tmp_4;
|
|
@@ -3349,7 +3364,7 @@
|
|
|
3349
3364
|
tmp_5 = equals(keyKind, ENUM_getInstance());
|
|
3350
3365
|
}
|
|
3351
3366
|
if (tmp_5) {
|
|
3352
|
-
var tmp_6 = this.
|
|
3367
|
+
var tmp_6 = this.k1f();
|
|
3353
3368
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3354
3369
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3355
3370
|
var serialName_0 = descriptor.ut();
|
|
@@ -3362,7 +3377,7 @@
|
|
|
3362
3377
|
tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
|
|
3363
3378
|
} else {
|
|
3364
3379
|
if (this_0.g1d_1.v1e_1) {
|
|
3365
|
-
var tmp_9 = this.
|
|
3380
|
+
var tmp_9 = this.k1f();
|
|
3366
3381
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3367
3382
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3368
3383
|
var serialName_1 = descriptor.ut();
|
|
@@ -3379,7 +3394,7 @@
|
|
|
3379
3394
|
}
|
|
3380
3395
|
tmp = tmp_4;
|
|
3381
3396
|
} else {
|
|
3382
|
-
var tmp_12 = this.
|
|
3397
|
+
var tmp_12 = this.k1f();
|
|
3383
3398
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3384
3399
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
3385
3400
|
var serialName_2 = descriptor.ut();
|
|
@@ -3401,7 +3416,7 @@
|
|
|
3401
3416
|
return !(tmp instanceof JsonNull);
|
|
3402
3417
|
};
|
|
3403
3418
|
protoOf(AbstractJsonTreeDecoder).x1l = function (tag, enumDescriptor) {
|
|
3404
|
-
var tmp = this.
|
|
3419
|
+
var tmp = this.k1f();
|
|
3405
3420
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3406
3421
|
var tmp2 = this.w1l(tag);
|
|
3407
3422
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3413,7 +3428,7 @@
|
|
|
3413
3428
|
var tmp$ret$0 = this.u1l(tag);
|
|
3414
3429
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3415
3430
|
}
|
|
3416
|
-
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.
|
|
3431
|
+
return getJsonNameIndexOrThrow(enumDescriptor, tmp, tmp2.n1f());
|
|
3417
3432
|
};
|
|
3418
3433
|
protoOf(AbstractJsonTreeDecoder).b1b = function (tag, enumDescriptor) {
|
|
3419
3434
|
return this.x1l((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), enumDescriptor);
|
|
@@ -3675,7 +3690,7 @@
|
|
|
3675
3690
|
}
|
|
3676
3691
|
}
|
|
3677
3692
|
var result = tmp$ret$4;
|
|
3678
|
-
var specialFp = this.
|
|
3693
|
+
var specialFp = this.k1f().g1d_1.c1f_1;
|
|
3679
3694
|
if (specialFp || isFinite(result))
|
|
3680
3695
|
return result;
|
|
3681
3696
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v1l()));
|
|
@@ -3717,7 +3732,7 @@
|
|
|
3717
3732
|
}
|
|
3718
3733
|
}
|
|
3719
3734
|
var result = tmp$ret$4;
|
|
3720
|
-
var specialFp = this.
|
|
3735
|
+
var specialFp = this.k1f().g1d_1.c1f_1;
|
|
3721
3736
|
if (specialFp || isFinite_0(result))
|
|
3722
3737
|
return result;
|
|
3723
3738
|
throw InvalidFloatingPointDecoded(result, tag, toString(this.v1l()));
|
|
@@ -3740,7 +3755,7 @@
|
|
|
3740
3755
|
}
|
|
3741
3756
|
var literal = value;
|
|
3742
3757
|
try {
|
|
3743
|
-
var tmp0_elvis_lhs = new Char(single(literal.
|
|
3758
|
+
var tmp0_elvis_lhs = new Char(single(literal.n1f()));
|
|
3744
3759
|
var tmp_1;
|
|
3745
3760
|
if (tmp0_elvis_lhs == null) {
|
|
3746
3761
|
unparsedPrimitive(this, literal, 'char', tag);
|
|
@@ -3776,10 +3791,10 @@
|
|
|
3776
3791
|
var value_0 = value;
|
|
3777
3792
|
if (!(value_0 instanceof JsonLiteral))
|
|
3778
3793
|
throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.u1l(tag), toString(this.v1l()));
|
|
3779
|
-
if (!value_0.
|
|
3794
|
+
if (!value_0.z1f_1 && !this.k1f().g1d_1.u1e_1) {
|
|
3780
3795
|
throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.u1l(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString(this.v1l()));
|
|
3781
3796
|
}
|
|
3782
|
-
return value_0.
|
|
3797
|
+
return value_0.b1g_1;
|
|
3783
3798
|
};
|
|
3784
3799
|
protoOf(AbstractJsonTreeDecoder).a1b = function (tag) {
|
|
3785
3800
|
return this.h1m((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
|
|
@@ -3787,7 +3802,7 @@
|
|
|
3787
3802
|
protoOf(AbstractJsonTreeDecoder).i1m = function (tag, inlineDescriptor) {
|
|
3788
3803
|
var tmp;
|
|
3789
3804
|
if (get_isUnsignedNumber(inlineDescriptor)) {
|
|
3790
|
-
var tmp_0 = this.
|
|
3805
|
+
var tmp_0 = this.k1f();
|
|
3791
3806
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
|
|
3792
3807
|
var tmp2 = this.w1l(tag);
|
|
3793
3808
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
@@ -3799,8 +3814,8 @@
|
|
|
3799
3814
|
var tmp$ret$0 = this.u1l(tag);
|
|
3800
3815
|
throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString(tmp2));
|
|
3801
3816
|
}
|
|
3802
|
-
var lexer = StringJsonLexer_0(tmp_0, tmp2.
|
|
3803
|
-
tmp = new JsonDecoderForUnsignedTypes(lexer, this.
|
|
3817
|
+
var lexer = StringJsonLexer_0(tmp_0, tmp2.n1f());
|
|
3818
|
+
tmp = new JsonDecoderForUnsignedTypes(lexer, this.k1f());
|
|
3804
3819
|
} else {
|
|
3805
3820
|
tmp = protoOf(NamedValueDecoder).c1b.call(this, tag, inlineDescriptor);
|
|
3806
3821
|
}
|
|
@@ -3810,10 +3825,10 @@
|
|
|
3810
3825
|
return this.i1m((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
|
|
3811
3826
|
};
|
|
3812
3827
|
protoOf(AbstractJsonTreeDecoder).cw = function (descriptor) {
|
|
3813
|
-
return !(this.n1a() == null) ? protoOf(NamedValueDecoder).cw.call(this, descriptor) : (new JsonPrimitiveDecoder(this.
|
|
3828
|
+
return !(this.n1a() == null) ? protoOf(NamedValueDecoder).cw.call(this, descriptor) : (new JsonPrimitiveDecoder(this.k1f(), this.n1(), this.s1l_1)).cw(descriptor);
|
|
3814
3829
|
};
|
|
3815
3830
|
function setForceNull($this, descriptor, index) {
|
|
3816
|
-
$this.s1m_1 = (!$this.
|
|
3831
|
+
$this.s1m_1 = (!$this.k1f().g1d_1.x1e_1 && !descriptor.uu(index) && descriptor.tu(index).gu());
|
|
3817
3832
|
return $this.s1m_1;
|
|
3818
3833
|
}
|
|
3819
3834
|
function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
|
|
@@ -3847,7 +3862,7 @@
|
|
|
3847
3862
|
if (tmp) {
|
|
3848
3863
|
if (!this.t1l_1.z1e_1)
|
|
3849
3864
|
return index;
|
|
3850
|
-
var tmp0 = this.
|
|
3865
|
+
var tmp0 = this.k1f();
|
|
3851
3866
|
var tmp$ret$3;
|
|
3852
3867
|
$l$block_2: {
|
|
3853
3868
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -3909,7 +3924,7 @@
|
|
|
3909
3924
|
return !this.s1m_1 && protoOf(AbstractJsonTreeDecoder).qv.call(this);
|
|
3910
3925
|
};
|
|
3911
3926
|
protoOf(JsonTreeDecoder).j1a = function (descriptor, index) {
|
|
3912
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3927
|
+
var strategy = namingStrategy(descriptor, this.k1f());
|
|
3913
3928
|
var baseName = descriptor.qu(index);
|
|
3914
3929
|
if (strategy == null) {
|
|
3915
3930
|
if (!this.t1l_1.d1f_1)
|
|
@@ -3917,7 +3932,7 @@
|
|
|
3917
3932
|
if (this.n1().a3().q2(baseName))
|
|
3918
3933
|
return baseName;
|
|
3919
3934
|
}
|
|
3920
|
-
var deserializationNamesMap_0 = deserializationNamesMap(this.
|
|
3935
|
+
var deserializationNamesMap_0 = deserializationNamesMap(this.k1f(), descriptor);
|
|
3921
3936
|
// Inline function 'kotlin.collections.find' call
|
|
3922
3937
|
var tmp0 = this.n1().a3();
|
|
3923
3938
|
var tmp$ret$1;
|
|
@@ -3940,18 +3955,18 @@
|
|
|
3940
3955
|
// Inline function 'kotlin.let' call
|
|
3941
3956
|
return tmp0_safe_receiver;
|
|
3942
3957
|
}
|
|
3943
|
-
var fallbackName = strategy == null ? null : strategy.
|
|
3958
|
+
var fallbackName = strategy == null ? null : strategy.k1i(descriptor, index, baseName);
|
|
3944
3959
|
return fallbackName == null ? baseName : fallbackName;
|
|
3945
3960
|
};
|
|
3946
3961
|
protoOf(JsonTreeDecoder).w1l = function (tag) {
|
|
3947
3962
|
return getValue(this.n1(), tag);
|
|
3948
3963
|
};
|
|
3949
3964
|
protoOf(JsonTreeDecoder).t1m = function (tag) {
|
|
3950
|
-
return this.n1().
|
|
3965
|
+
return this.n1().r1f(tag);
|
|
3951
3966
|
};
|
|
3952
3967
|
protoOf(JsonTreeDecoder).ew = function (descriptor) {
|
|
3953
3968
|
if (descriptor === this.q1m_1) {
|
|
3954
|
-
var tmp = this.
|
|
3969
|
+
var tmp = this.k1f();
|
|
3955
3970
|
var tmp2 = this.v1l();
|
|
3956
3971
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
|
|
3957
3972
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
@@ -3968,7 +3983,7 @@
|
|
|
3968
3983
|
};
|
|
3969
3984
|
protoOf(JsonTreeDecoder).fw = function (descriptor) {
|
|
3970
3985
|
var tmp;
|
|
3971
|
-
if (ignoreUnknownKeys(descriptor, this.
|
|
3986
|
+
if (ignoreUnknownKeys(descriptor, this.k1f())) {
|
|
3972
3987
|
tmp = true;
|
|
3973
3988
|
} else {
|
|
3974
3989
|
var tmp_0 = descriptor.nu();
|
|
@@ -3976,15 +3991,15 @@
|
|
|
3976
3991
|
}
|
|
3977
3992
|
if (tmp)
|
|
3978
3993
|
return Unit_instance;
|
|
3979
|
-
var strategy = namingStrategy(descriptor, this.
|
|
3994
|
+
var strategy = namingStrategy(descriptor, this.k1f());
|
|
3980
3995
|
var tmp_1;
|
|
3981
3996
|
if (strategy == null && !this.t1l_1.d1f_1) {
|
|
3982
3997
|
tmp_1 = jsonCachedSerialNames(descriptor);
|
|
3983
3998
|
} else if (!(strategy == null)) {
|
|
3984
|
-
tmp_1 = deserializationNamesMap(this.
|
|
3999
|
+
tmp_1 = deserializationNamesMap(this.k1f(), descriptor).a3();
|
|
3985
4000
|
} else {
|
|
3986
4001
|
var tmp_2 = jsonCachedSerialNames(descriptor);
|
|
3987
|
-
var tmp0_safe_receiver = get_schemaCache(this.
|
|
4002
|
+
var tmp0_safe_receiver = get_schemaCache(this.k1f()).u1k(descriptor, get_JsonDeserializationNamesKey());
|
|
3988
4003
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3989
4004
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a3();
|
|
3990
4005
|
var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -4187,7 +4202,7 @@
|
|
|
4187
4202
|
var currentPosition = startPosition;
|
|
4188
4203
|
currentPosition = $this.a1o(currentPosition);
|
|
4189
4204
|
if (currentPosition === -1) {
|
|
4190
|
-
$this.
|
|
4205
|
+
$this.g1i('Expected escape sequence to continue, got EOF');
|
|
4191
4206
|
}
|
|
4192
4207
|
var tmp = $this.z1n();
|
|
4193
4208
|
var _unary__edvuaz = currentPosition;
|
|
@@ -4200,7 +4215,7 @@
|
|
|
4200
4215
|
var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
|
|
4201
4216
|
var c = escapeToChar(tmp$ret$0);
|
|
4202
4217
|
if (c === _Char___init__impl__6a9atx(0)) {
|
|
4203
|
-
$this.
|
|
4218
|
+
$this.g1i("Invalid escaped char '" + toString_1(currentChar) + "'");
|
|
4204
4219
|
}
|
|
4205
4220
|
$this.x1d_1.s(c);
|
|
4206
4221
|
return currentPosition;
|
|
@@ -4210,7 +4225,7 @@
|
|
|
4210
4225
|
$this.u1d_1 = startPos;
|
|
4211
4226
|
$this.b1o();
|
|
4212
4227
|
if (($this.u1d_1 + 4 | 0) >= charSequenceLength(source)) {
|
|
4213
|
-
$this.
|
|
4228
|
+
$this.g1i('Unexpected EOF during unicode escape');
|
|
4214
4229
|
}
|
|
4215
4230
|
return appendHex($this, source, $this.u1d_1);
|
|
4216
4231
|
}
|
|
@@ -4239,14 +4254,14 @@
|
|
|
4239
4254
|
var this_2 = _Char___init__impl__6a9atx(65);
|
|
4240
4255
|
tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
|
|
4241
4256
|
} else {
|
|
4242
|
-
$this.
|
|
4257
|
+
$this.g1i("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
|
|
4243
4258
|
}
|
|
4244
4259
|
return tmp;
|
|
4245
4260
|
}
|
|
4246
4261
|
function consumeBoolean2($this, start) {
|
|
4247
4262
|
var current = $this.a1o(start);
|
|
4248
4263
|
if (current >= charSequenceLength($this.z1n()) || current === -1) {
|
|
4249
|
-
$this.
|
|
4264
|
+
$this.g1i('EOF');
|
|
4250
4265
|
}
|
|
4251
4266
|
var tmp = $this.z1n();
|
|
4252
4267
|
var _unary__edvuaz = current;
|
|
@@ -4267,14 +4282,14 @@
|
|
|
4267
4282
|
consumeBooleanLiteral($this, 'alse', current);
|
|
4268
4283
|
tmp_0 = false;
|
|
4269
4284
|
} else {
|
|
4270
|
-
$this.
|
|
4285
|
+
$this.g1i("Expected valid boolean literal prefix, but had '" + $this.o1j() + "'");
|
|
4271
4286
|
}
|
|
4272
4287
|
}
|
|
4273
4288
|
return tmp_0;
|
|
4274
4289
|
}
|
|
4275
4290
|
function consumeBooleanLiteral($this, literalSuffix, current) {
|
|
4276
4291
|
if ((charSequenceLength($this.z1n()) - current | 0) < literalSuffix.length) {
|
|
4277
|
-
$this.
|
|
4292
|
+
$this.g1i('Unexpected end of boolean literal');
|
|
4278
4293
|
}
|
|
4279
4294
|
var inductionVariable = 0;
|
|
4280
4295
|
var last = charSequenceLength(literalSuffix) - 1 | 0;
|
|
@@ -4288,7 +4303,7 @@
|
|
|
4288
4303
|
var tmp = Char__toInt_impl_vasixd(expected);
|
|
4289
4304
|
// Inline function 'kotlin.code' call
|
|
4290
4305
|
if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
|
|
4291
|
-
$this.
|
|
4306
|
+
$this.g1i("Expected valid boolean literal prefix, but had '" + $this.o1j() + "'");
|
|
4292
4307
|
}
|
|
4293
4308
|
}
|
|
4294
4309
|
while (inductionVariable <= last);
|
|
@@ -4338,20 +4353,20 @@
|
|
|
4338
4353
|
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;
|
|
4339
4354
|
};
|
|
4340
4355
|
protoOf(AbstractJsonLexer).y1d = function () {
|
|
4341
|
-
var nextToken = this.
|
|
4356
|
+
var nextToken = this.q1j();
|
|
4342
4357
|
if (!(nextToken === 10)) {
|
|
4343
|
-
this.
|
|
4358
|
+
this.g1i('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.z1n(), this.u1d_1 - 1 | 0)) + ' instead');
|
|
4344
4359
|
}
|
|
4345
4360
|
};
|
|
4346
|
-
protoOf(AbstractJsonLexer).
|
|
4347
|
-
var token = this.
|
|
4361
|
+
protoOf(AbstractJsonLexer).k1j = function (expected) {
|
|
4362
|
+
var token = this.q1j();
|
|
4348
4363
|
if (!(token === expected)) {
|
|
4349
4364
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4350
4365
|
var expected_0 = tokenDescription(expected);
|
|
4351
4366
|
var position = true ? this.u1d_1 - 1 | 0 : this.u1d_1;
|
|
4352
4367
|
var s = this.u1d_1 === charSequenceLength(this.z1n()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z1n(), position));
|
|
4353
4368
|
var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4354
|
-
this.
|
|
4369
|
+
this.g1i(tmp$ret$0, position);
|
|
4355
4370
|
}
|
|
4356
4371
|
return token;
|
|
4357
4372
|
};
|
|
@@ -4363,7 +4378,7 @@
|
|
|
4363
4378
|
var snapshot = this.u1d_1;
|
|
4364
4379
|
try {
|
|
4365
4380
|
this.u1d_1 = this.u1d_1 - 1 | 0;
|
|
4366
|
-
tmp$ret$1 = this.
|
|
4381
|
+
tmp$ret$1 = this.o1j();
|
|
4367
4382
|
break $l$block;
|
|
4368
4383
|
}finally {
|
|
4369
4384
|
this.u1d_1 = snapshot;
|
|
@@ -4371,7 +4386,7 @@
|
|
|
4371
4386
|
}
|
|
4372
4387
|
var inputLiteral = tmp$ret$1;
|
|
4373
4388
|
if (inputLiteral === 'null') {
|
|
4374
|
-
this.
|
|
4389
|
+
this.f1i("Expected string literal but 'null' literal was found", this.u1d_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
|
|
4375
4390
|
}
|
|
4376
4391
|
}
|
|
4377
4392
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
@@ -4380,9 +4395,9 @@
|
|
|
4380
4395
|
var position = true ? this.u1d_1 - 1 | 0 : this.u1d_1;
|
|
4381
4396
|
var s = this.u1d_1 === charSequenceLength(this.z1n()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z1n(), position));
|
|
4382
4397
|
var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
|
|
4383
|
-
this.
|
|
4398
|
+
this.g1i(tmp$ret$2, position);
|
|
4384
4399
|
};
|
|
4385
|
-
protoOf(AbstractJsonLexer).
|
|
4400
|
+
protoOf(AbstractJsonLexer).l1j = function () {
|
|
4386
4401
|
var source = this.z1n();
|
|
4387
4402
|
var cpos = this.u1d_1;
|
|
4388
4403
|
$l$loop_0: while (true) {
|
|
@@ -4427,16 +4442,16 @@
|
|
|
4427
4442
|
return $super === VOID ? this.y1k(doConsume) : $super.y1k.call(this, doConsume);
|
|
4428
4443
|
};
|
|
4429
4444
|
protoOf(AbstractJsonLexer).z1k = function (isLenient) {
|
|
4430
|
-
var token = this.
|
|
4445
|
+
var token = this.l1j();
|
|
4431
4446
|
var tmp;
|
|
4432
4447
|
if (isLenient) {
|
|
4433
4448
|
if (!(token === 1) && !(token === 0))
|
|
4434
4449
|
return null;
|
|
4435
|
-
tmp = this.
|
|
4450
|
+
tmp = this.o1j();
|
|
4436
4451
|
} else {
|
|
4437
4452
|
if (!(token === 1))
|
|
4438
4453
|
return null;
|
|
4439
|
-
tmp = this.
|
|
4454
|
+
tmp = this.n1j();
|
|
4440
4455
|
}
|
|
4441
4456
|
var string = tmp;
|
|
4442
4457
|
this.w1d_1 = string;
|
|
@@ -4450,7 +4465,7 @@
|
|
|
4450
4465
|
var this_0 = this.z1n();
|
|
4451
4466
|
return toString(charSequenceSubSequence(this_0, startPos, endPos));
|
|
4452
4467
|
};
|
|
4453
|
-
protoOf(AbstractJsonLexer).
|
|
4468
|
+
protoOf(AbstractJsonLexer).n1j = function () {
|
|
4454
4469
|
if (!(this.w1d_1 == null)) {
|
|
4455
4470
|
return takePeeked(this);
|
|
4456
4471
|
}
|
|
@@ -4466,7 +4481,7 @@
|
|
|
4466
4481
|
usedAppend = true;
|
|
4467
4482
|
currentPosition = this.a1o(appendEscape(this, lastPosition, currentPosition));
|
|
4468
4483
|
if (currentPosition === -1) {
|
|
4469
|
-
this.
|
|
4484
|
+
this.g1i('Unexpected EOF', currentPosition);
|
|
4470
4485
|
}
|
|
4471
4486
|
lastPosition = currentPosition;
|
|
4472
4487
|
} else {
|
|
@@ -4476,7 +4491,7 @@
|
|
|
4476
4491
|
this.y1n(lastPosition, currentPosition);
|
|
4477
4492
|
currentPosition = this.a1o(currentPosition);
|
|
4478
4493
|
if (currentPosition === -1) {
|
|
4479
|
-
this.
|
|
4494
|
+
this.g1i('Unexpected EOF', currentPosition);
|
|
4480
4495
|
}
|
|
4481
4496
|
lastPosition = currentPosition;
|
|
4482
4497
|
}
|
|
@@ -4494,26 +4509,26 @@
|
|
|
4494
4509
|
return string;
|
|
4495
4510
|
};
|
|
4496
4511
|
protoOf(AbstractJsonLexer).d1l = function () {
|
|
4497
|
-
var result = this.
|
|
4512
|
+
var result = this.o1j();
|
|
4498
4513
|
if (result === 'null' && wasUnquotedString(this)) {
|
|
4499
|
-
this.
|
|
4514
|
+
this.g1i("Unexpected 'null' value instead of string literal");
|
|
4500
4515
|
}
|
|
4501
4516
|
return result;
|
|
4502
4517
|
};
|
|
4503
|
-
protoOf(AbstractJsonLexer).
|
|
4518
|
+
protoOf(AbstractJsonLexer).o1j = function () {
|
|
4504
4519
|
if (!(this.w1d_1 == null)) {
|
|
4505
4520
|
return takePeeked(this);
|
|
4506
4521
|
}
|
|
4507
4522
|
var current = this.c1o();
|
|
4508
4523
|
if (current >= charSequenceLength(this.z1n()) || current === -1) {
|
|
4509
|
-
this.
|
|
4524
|
+
this.g1i('EOF', current);
|
|
4510
4525
|
}
|
|
4511
4526
|
var token = charToTokenClass(charSequenceGet(this.z1n(), current));
|
|
4512
4527
|
if (token === 1) {
|
|
4513
|
-
return this.
|
|
4528
|
+
return this.n1j();
|
|
4514
4529
|
}
|
|
4515
4530
|
if (!(token === 0)) {
|
|
4516
|
-
this.
|
|
4531
|
+
this.g1i('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.z1n(), current)));
|
|
4517
4532
|
}
|
|
4518
4533
|
var usedAppend = false;
|
|
4519
4534
|
while (charToTokenClass(charSequenceGet(this.z1n(), current)) === 0) {
|
|
@@ -4546,16 +4561,16 @@
|
|
|
4546
4561
|
protoOf(AbstractJsonLexer).b1l = function (allowLenientStrings) {
|
|
4547
4562
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
4548
4563
|
var tokenStack = ArrayList_init_$Create$();
|
|
4549
|
-
var lastToken = this.
|
|
4564
|
+
var lastToken = this.l1j();
|
|
4550
4565
|
if (!(lastToken === 8) && !(lastToken === 6)) {
|
|
4551
|
-
this.
|
|
4566
|
+
this.o1j();
|
|
4552
4567
|
return Unit_instance;
|
|
4553
4568
|
}
|
|
4554
4569
|
$l$loop: while (true) {
|
|
4555
|
-
lastToken = this.
|
|
4570
|
+
lastToken = this.l1j();
|
|
4556
4571
|
if (lastToken === 1) {
|
|
4557
4572
|
if (allowLenientStrings)
|
|
4558
|
-
this.
|
|
4573
|
+
this.o1j();
|
|
4559
4574
|
else
|
|
4560
4575
|
this.c1l();
|
|
4561
4576
|
continue $l$loop;
|
|
@@ -4572,9 +4587,9 @@
|
|
|
4572
4587
|
throw JsonDecodingException_0(this.u1d_1, 'found } instead of ] at path: ' + this.v1d_1.toString(), this.z1n());
|
|
4573
4588
|
removeLast(tokenStack);
|
|
4574
4589
|
} else if (tmp0_subject === 10) {
|
|
4575
|
-
this.
|
|
4590
|
+
this.g1i('Unexpected end of input due to malformed JSON during ignoring unknown keys');
|
|
4576
4591
|
}
|
|
4577
|
-
this.
|
|
4592
|
+
this.q1j();
|
|
4578
4593
|
if (tokenStack.g1() === 0)
|
|
4579
4594
|
return Unit_instance;
|
|
4580
4595
|
}
|
|
@@ -4585,9 +4600,9 @@
|
|
|
4585
4600
|
protoOf(AbstractJsonLexer).a1l = function (key) {
|
|
4586
4601
|
var processed = this.g1o(0, this.u1d_1);
|
|
4587
4602
|
var lastIndexOf_0 = lastIndexOf(processed, key);
|
|
4588
|
-
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.v1d_1.
|
|
4603
|
+
throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.v1d_1.t1i() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString(minify(this.z1n(), lastIndexOf_0))));
|
|
4589
4604
|
};
|
|
4590
|
-
protoOf(AbstractJsonLexer).
|
|
4605
|
+
protoOf(AbstractJsonLexer).f1i = function (message, position, hint) {
|
|
4591
4606
|
var tmp;
|
|
4592
4607
|
// Inline function 'kotlin.text.isEmpty' call
|
|
4593
4608
|
if (charSequenceLength(hint) === 0) {
|
|
@@ -4596,24 +4611,24 @@
|
|
|
4596
4611
|
tmp = '\n' + hint;
|
|
4597
4612
|
}
|
|
4598
4613
|
var hintMessage = tmp;
|
|
4599
|
-
throw JsonDecodingException_0(position, message + ' at path: ' + this.v1d_1.
|
|
4614
|
+
throw JsonDecodingException_0(position, message + ' at path: ' + this.v1d_1.t1i() + hintMessage, this.z1n());
|
|
4600
4615
|
};
|
|
4601
|
-
protoOf(AbstractJsonLexer).
|
|
4616
|
+
protoOf(AbstractJsonLexer).g1i = function (message, position, hint, $super) {
|
|
4602
4617
|
position = position === VOID ? this.u1d_1 : position;
|
|
4603
4618
|
hint = hint === VOID ? '' : hint;
|
|
4604
|
-
return $super === VOID ? this.
|
|
4619
|
+
return $super === VOID ? this.f1i(message, position, hint) : $super.f1i.call(this, message, position, hint);
|
|
4605
4620
|
};
|
|
4606
4621
|
protoOf(AbstractJsonLexer).l1l = function () {
|
|
4607
4622
|
var current = this.c1o();
|
|
4608
4623
|
current = this.a1o(current);
|
|
4609
4624
|
if (current >= charSequenceLength(this.z1n()) || current === -1) {
|
|
4610
|
-
this.
|
|
4625
|
+
this.g1i('EOF');
|
|
4611
4626
|
}
|
|
4612
4627
|
var tmp;
|
|
4613
4628
|
if (charSequenceGet(this.z1n(), current) === _Char___init__impl__6a9atx(34)) {
|
|
4614
4629
|
current = current + 1 | 0;
|
|
4615
4630
|
if (current === charSequenceLength(this.z1n())) {
|
|
4616
|
-
this.
|
|
4631
|
+
this.g1i('EOF');
|
|
4617
4632
|
}
|
|
4618
4633
|
tmp = true;
|
|
4619
4634
|
} else {
|
|
@@ -4630,7 +4645,7 @@
|
|
|
4630
4645
|
var ch = charSequenceGet(this.z1n(), current);
|
|
4631
4646
|
if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
|
|
4632
4647
|
if (current === start) {
|
|
4633
|
-
this.
|
|
4648
|
+
this.g1i('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
|
|
4634
4649
|
}
|
|
4635
4650
|
isExponentPositive = true;
|
|
4636
4651
|
hasExponent = true;
|
|
@@ -4639,7 +4654,7 @@
|
|
|
4639
4654
|
}
|
|
4640
4655
|
if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
|
|
4641
4656
|
if (current === start) {
|
|
4642
|
-
this.
|
|
4657
|
+
this.g1i("Unexpected symbol '-' in numeric literal");
|
|
4643
4658
|
}
|
|
4644
4659
|
isExponentPositive = false;
|
|
4645
4660
|
current = current + 1 | 0;
|
|
@@ -4647,7 +4662,7 @@
|
|
|
4647
4662
|
}
|
|
4648
4663
|
if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
|
|
4649
4664
|
if (current === start) {
|
|
4650
|
-
this.
|
|
4665
|
+
this.g1i("Unexpected symbol '+' in numeric literal");
|
|
4651
4666
|
}
|
|
4652
4667
|
isExponentPositive = true;
|
|
4653
4668
|
current = current + 1 | 0;
|
|
@@ -4655,7 +4670,7 @@
|
|
|
4655
4670
|
}
|
|
4656
4671
|
if (ch === _Char___init__impl__6a9atx(45)) {
|
|
4657
4672
|
if (!(current === start)) {
|
|
4658
|
-
this.
|
|
4673
|
+
this.g1i("Unexpected symbol '-' in numeric literal");
|
|
4659
4674
|
}
|
|
4660
4675
|
isNegative = true;
|
|
4661
4676
|
current = current + 1 | 0;
|
|
@@ -4667,7 +4682,7 @@
|
|
|
4667
4682
|
current = current + 1 | 0;
|
|
4668
4683
|
var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
|
|
4669
4684
|
if (!(0 <= digit ? digit <= 9 : false)) {
|
|
4670
|
-
this.
|
|
4685
|
+
this.g1i("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
|
|
4671
4686
|
}
|
|
4672
4687
|
if (hasExponent) {
|
|
4673
4688
|
// Inline function 'kotlin.Long.times' call
|
|
@@ -4683,19 +4698,19 @@
|
|
|
4683
4698
|
var this_3 = multiply(this_2, fromInt(10));
|
|
4684
4699
|
accumulator = subtract(this_3, fromInt(digit));
|
|
4685
4700
|
if (accumulator > 0n) {
|
|
4686
|
-
this.
|
|
4701
|
+
this.g1i('Numeric value overflow');
|
|
4687
4702
|
}
|
|
4688
4703
|
}
|
|
4689
4704
|
var hasChars = !(current === start);
|
|
4690
4705
|
if (start === current || (isNegative && start === (current - 1 | 0))) {
|
|
4691
|
-
this.
|
|
4706
|
+
this.g1i('Expected numeric literal');
|
|
4692
4707
|
}
|
|
4693
4708
|
if (hasQuotation) {
|
|
4694
4709
|
if (!hasChars) {
|
|
4695
|
-
this.
|
|
4710
|
+
this.g1i('EOF');
|
|
4696
4711
|
}
|
|
4697
4712
|
if (!(charSequenceGet(this.z1n(), current) === _Char___init__impl__6a9atx(34))) {
|
|
4698
|
-
this.
|
|
4713
|
+
this.g1i('Expected closing quotation mark');
|
|
4699
4714
|
}
|
|
4700
4715
|
current = current + 1 | 0;
|
|
4701
4716
|
}
|
|
@@ -4703,11 +4718,11 @@
|
|
|
4703
4718
|
if (hasExponent) {
|
|
4704
4719
|
var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
|
|
4705
4720
|
if (doubleAccumulator > toNumber(9223372036854775807n) || doubleAccumulator < toNumber(-9223372036854775808n)) {
|
|
4706
|
-
this.
|
|
4721
|
+
this.g1i('Numeric value overflow');
|
|
4707
4722
|
}
|
|
4708
4723
|
// Inline function 'kotlin.math.floor' call
|
|
4709
4724
|
if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
|
|
4710
|
-
this.
|
|
4725
|
+
this.g1i("Can't convert " + doubleAccumulator + ' to Long');
|
|
4711
4726
|
}
|
|
4712
4727
|
accumulator = numberToLong(doubleAccumulator);
|
|
4713
4728
|
}
|
|
@@ -4717,27 +4732,27 @@
|
|
|
4717
4732
|
} else if (!(accumulator === -9223372036854775808n)) {
|
|
4718
4733
|
tmp_0 = negate(accumulator);
|
|
4719
4734
|
} else {
|
|
4720
|
-
this.
|
|
4735
|
+
this.g1i('Numeric value overflow');
|
|
4721
4736
|
}
|
|
4722
4737
|
return tmp_0;
|
|
4723
4738
|
};
|
|
4724
|
-
protoOf(AbstractJsonLexer).
|
|
4739
|
+
protoOf(AbstractJsonLexer).c1g = function () {
|
|
4725
4740
|
var result = this.l1l();
|
|
4726
|
-
var next = this.
|
|
4741
|
+
var next = this.q1j();
|
|
4727
4742
|
if (!(next === 10)) {
|
|
4728
4743
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
4729
4744
|
var expected = tokenDescription(10);
|
|
4730
4745
|
var position = true ? this.u1d_1 - 1 | 0 : this.u1d_1;
|
|
4731
4746
|
var s = this.u1d_1 === charSequenceLength(this.z1n()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z1n(), position));
|
|
4732
4747
|
var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
|
|
4733
|
-
this.
|
|
4748
|
+
this.g1i(tmp$ret$0, position);
|
|
4734
4749
|
}
|
|
4735
4750
|
return result;
|
|
4736
4751
|
};
|
|
4737
4752
|
protoOf(AbstractJsonLexer).k1l = function () {
|
|
4738
4753
|
var current = this.c1o();
|
|
4739
4754
|
if (current === charSequenceLength(this.z1n())) {
|
|
4740
|
-
this.
|
|
4755
|
+
this.g1i('EOF');
|
|
4741
4756
|
}
|
|
4742
4757
|
var tmp;
|
|
4743
4758
|
if (charSequenceGet(this.z1n(), current) === _Char___init__impl__6a9atx(34)) {
|
|
@@ -4750,10 +4765,10 @@
|
|
|
4750
4765
|
var result = consumeBoolean2(this, current);
|
|
4751
4766
|
if (hasQuotation) {
|
|
4752
4767
|
if (this.u1d_1 === charSequenceLength(this.z1n())) {
|
|
4753
|
-
this.
|
|
4768
|
+
this.g1i('EOF');
|
|
4754
4769
|
}
|
|
4755
4770
|
if (!(charSequenceGet(this.z1n(), this.u1d_1) === _Char___init__impl__6a9atx(34))) {
|
|
4756
|
-
this.
|
|
4771
|
+
this.g1i('Expected closing quotation mark');
|
|
4757
4772
|
}
|
|
4758
4773
|
this.u1d_1 = this.u1d_1 + 1 | 0;
|
|
4759
4774
|
}
|
|
@@ -4853,7 +4868,7 @@
|
|
|
4853
4868
|
function StringJsonLexerWithComments(source) {
|
|
4854
4869
|
StringJsonLexer.call(this, source);
|
|
4855
4870
|
}
|
|
4856
|
-
protoOf(StringJsonLexerWithComments).
|
|
4871
|
+
protoOf(StringJsonLexerWithComments).q1j = function () {
|
|
4857
4872
|
var source = this.z1n();
|
|
4858
4873
|
var cpos = this.c1o();
|
|
4859
4874
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4861,7 +4876,7 @@
|
|
|
4861
4876
|
this.u1d_1 = cpos + 1 | 0;
|
|
4862
4877
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
4863
4878
|
};
|
|
4864
|
-
protoOf(StringJsonLexerWithComments).
|
|
4879
|
+
protoOf(StringJsonLexerWithComments).m1j = function () {
|
|
4865
4880
|
var current = this.c1o();
|
|
4866
4881
|
if (current >= this.z1n().length || current === -1)
|
|
4867
4882
|
return false;
|
|
@@ -4882,7 +4897,7 @@
|
|
|
4882
4897
|
this.e1o(expected);
|
|
4883
4898
|
}
|
|
4884
4899
|
};
|
|
4885
|
-
protoOf(StringJsonLexerWithComments).
|
|
4900
|
+
protoOf(StringJsonLexerWithComments).l1j = function () {
|
|
4886
4901
|
var source = this.z1n();
|
|
4887
4902
|
var cpos = this.c1o();
|
|
4888
4903
|
if (cpos >= source.length || cpos === -1)
|
|
@@ -4916,7 +4931,7 @@
|
|
|
4916
4931
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
4917
4932
|
if (current === -1) {
|
|
4918
4933
|
this.u1d_1 = source.length;
|
|
4919
|
-
this.
|
|
4934
|
+
this.g1i('Expected end of the block comment: "*/", but had EOF instead');
|
|
4920
4935
|
} else {
|
|
4921
4936
|
current = current + 2 | 0;
|
|
4922
4937
|
}
|
|
@@ -4938,7 +4953,7 @@
|
|
|
4938
4953
|
protoOf(StringJsonLexer).a1o = function (position) {
|
|
4939
4954
|
return position < this.z1n().length ? position : -1;
|
|
4940
4955
|
};
|
|
4941
|
-
protoOf(StringJsonLexer).
|
|
4956
|
+
protoOf(StringJsonLexer).q1j = function () {
|
|
4942
4957
|
var source = this.z1n();
|
|
4943
4958
|
var cpos = this.u1d_1;
|
|
4944
4959
|
$l$loop: while (!(cpos === -1) && cpos < source.length) {
|
|
@@ -4954,7 +4969,7 @@
|
|
|
4954
4969
|
this.u1d_1 = source.length;
|
|
4955
4970
|
return 10;
|
|
4956
4971
|
};
|
|
4957
|
-
protoOf(StringJsonLexer).
|
|
4972
|
+
protoOf(StringJsonLexer).m1j = function () {
|
|
4958
4973
|
var current = this.u1d_1;
|
|
4959
4974
|
if (current === -1)
|
|
4960
4975
|
return false;
|
|
@@ -5015,13 +5030,13 @@
|
|
|
5015
5030
|
var current = this.u1d_1;
|
|
5016
5031
|
var closingQuote = indexOf_0(this.z1n(), _Char___init__impl__6a9atx(34), current);
|
|
5017
5032
|
if (closingQuote === -1) {
|
|
5018
|
-
this.
|
|
5033
|
+
this.o1j();
|
|
5019
5034
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
|
|
5020
5035
|
var expected = tokenDescription(1);
|
|
5021
5036
|
var position = false ? this.u1d_1 - 1 | 0 : this.u1d_1;
|
|
5022
5037
|
var s = this.u1d_1 === charSequenceLength(this.z1n()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.z1n(), position));
|
|
5023
5038
|
var tmp$ret$0 = 'Expected ' + expected + ", but had '" + s + "' instead";
|
|
5024
|
-
this.
|
|
5039
|
+
this.g1i(tmp$ret$0, position);
|
|
5025
5040
|
}
|
|
5026
5041
|
var inductionVariable = current;
|
|
5027
5042
|
if (inductionVariable < closingQuote)
|
|
@@ -5039,13 +5054,13 @@
|
|
|
5039
5054
|
protoOf(StringJsonLexer).e1l = function (keyToMatch, isLenient) {
|
|
5040
5055
|
var positionSnapshot = this.u1d_1;
|
|
5041
5056
|
try {
|
|
5042
|
-
if (!(this.
|
|
5057
|
+
if (!(this.q1j() === 6))
|
|
5043
5058
|
return null;
|
|
5044
5059
|
var firstKey = this.z1k(isLenient);
|
|
5045
5060
|
if (!(firstKey === keyToMatch))
|
|
5046
5061
|
return null;
|
|
5047
5062
|
this.f1o();
|
|
5048
|
-
if (!(this.
|
|
5063
|
+
if (!(this.q1j() === 5))
|
|
5049
5064
|
return null;
|
|
5050
5065
|
return this.z1k(isLenient);
|
|
5051
5066
|
}finally {
|
|
@@ -5062,16 +5077,16 @@
|
|
|
5062
5077
|
function JsonToStringWriter() {
|
|
5063
5078
|
this.k1d_1 = StringBuilder_init_$Create$_0(128);
|
|
5064
5079
|
}
|
|
5065
|
-
protoOf(JsonToStringWriter).
|
|
5080
|
+
protoOf(JsonToStringWriter).k1h = function (value) {
|
|
5066
5081
|
this.k1d_1.zc(value);
|
|
5067
5082
|
};
|
|
5068
|
-
protoOf(JsonToStringWriter).
|
|
5083
|
+
protoOf(JsonToStringWriter).e1h = function (char) {
|
|
5069
5084
|
this.k1d_1.s(char);
|
|
5070
5085
|
};
|
|
5071
|
-
protoOf(JsonToStringWriter).
|
|
5086
|
+
protoOf(JsonToStringWriter).g1h = function (text) {
|
|
5072
5087
|
this.k1d_1.q(text);
|
|
5073
5088
|
};
|
|
5074
|
-
protoOf(JsonToStringWriter).
|
|
5089
|
+
protoOf(JsonToStringWriter).q1h = function (text) {
|
|
5075
5090
|
printQuoted(this.k1d_1, text);
|
|
5076
5091
|
};
|
|
5077
5092
|
protoOf(JsonToStringWriter).l1d = function () {
|
|
@@ -5099,9 +5114,9 @@
|
|
|
5099
5114
|
//region block: exports
|
|
5100
5115
|
_.$_$ = _.$_$ || {};
|
|
5101
5116
|
_.$_$.a = Default_getInstance;
|
|
5102
|
-
_.$_$.b =
|
|
5103
|
-
_.$_$.c =
|
|
5104
|
-
_.$_$.d =
|
|
5117
|
+
_.$_$.b = JsonNull_getInstance;
|
|
5118
|
+
_.$_$.c = JsonArray;
|
|
5119
|
+
_.$_$.d = JsonClassDiscriminator;
|
|
5105
5120
|
_.$_$.e = JsonElement;
|
|
5106
5121
|
_.$_$.f = JsonNull;
|
|
5107
5122
|
_.$_$.g = JsonObjectBuilder;
|