-
Notifications
You must be signed in to change notification settings - Fork 0
/
kotlinx-serialization-kotlinx-serialization-core.js
6929 lines (6927 loc) · 318 KB
/
kotlinx-serialization-kotlinx-serialization-core.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(function (factory) {
if (typeof define === 'function' && define.amd)
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
else {
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-core'.");
}
globalThis['kotlinx-serialization-kotlinx-serialization-core'] = factory(typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined' ? {} : globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlin-kotlin-stdlib']);
}
}(function (_, kotlin_kotlin) {
'use strict';
//region block: imports
var imul = Math.imul;
var protoOf = kotlin_kotlin.$_$.wb;
var THROW_CCE = kotlin_kotlin.$_$.bg;
var Annotation = kotlin_kotlin.$_$.jf;
var initMetadataForClass = kotlin_kotlin.$_$.wa;
var VOID = kotlin_kotlin.$_$.f;
var getKClass = kotlin_kotlin.$_$.e;
var getStringHashCode = kotlin_kotlin.$_$.ua;
var toString = kotlin_kotlin.$_$.ac;
var initMetadataForInterface = kotlin_kotlin.$_$.za;
var asList = kotlin_kotlin.$_$.i6;
var objectCreate = kotlin_kotlin.$_$.vb;
var StringCompanionObject_getInstance = kotlin_kotlin.$_$.w4;
var Unit_getInstance = kotlin_kotlin.$_$.j5;
var emptyList = kotlin_kotlin.$_$.e7;
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
var lazy = kotlin_kotlin.$_$.xg;
var getKClassFromExpression = kotlin_kotlin.$_$.d;
var KProperty1 = kotlin_kotlin.$_$.rc;
var getPropertyCallableRef = kotlin_kotlin.$_$.ta;
var Grouping = kotlin_kotlin.$_$.m5;
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
var zip = kotlin_kotlin.$_$.e9;
var toMap = kotlin_kotlin.$_$.y8;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
var mapCapacity = kotlin_kotlin.$_$.b8;
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
var KtMap = kotlin_kotlin.$_$.w5;
var isInterface = kotlin_kotlin.$_$.kb;
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.p1;
var captureStack = kotlin_kotlin.$_$.ha;
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.q1;
var IllegalArgumentException_init_$Init$_1 = kotlin_kotlin.$_$.s1;
var IllegalArgumentException_init_$Init$_2 = kotlin_kotlin.$_$.n1;
var IllegalArgumentException = kotlin_kotlin.$_$.uf;
var listOf = kotlin_kotlin.$_$.z7;
var collectionSizeOrDefault = kotlin_kotlin.$_$.o6;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
var KClass = kotlin_kotlin.$_$.nc;
var Triple = kotlin_kotlin.$_$.dg;
var Pair = kotlin_kotlin.$_$.yf;
var Entry = kotlin_kotlin.$_$.u5;
var KtMutableMap = kotlin_kotlin.$_$.b6;
var LinkedHashMap = kotlin_kotlin.$_$.r5;
var HashMap = kotlin_kotlin.$_$.n5;
var KtSet = kotlin_kotlin.$_$.f6;
var KtMutableSet = kotlin_kotlin.$_$.d6;
var LinkedHashSet = kotlin_kotlin.$_$.s5;
var HashSet = kotlin_kotlin.$_$.o5;
var Collection = kotlin_kotlin.$_$.l5;
var KtList = kotlin_kotlin.$_$.t5;
var KtMutableList = kotlin_kotlin.$_$.y5;
var ArrayList = kotlin_kotlin.$_$.k5;
var copyToArray = kotlin_kotlin.$_$.a7;
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.d3;
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.c3;
var Result = kotlin_kotlin.$_$.zf;
var ensureNotNull = kotlin_kotlin.$_$.sg;
var equals = kotlin_kotlin.$_$.pa;
var Iterator = kotlin_kotlin.$_$.q5;
var Iterable = kotlin_kotlin.$_$.p5;
var isBlank = kotlin_kotlin.$_$.md;
var toList = kotlin_kotlin.$_$.x8;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
var HashSet_init_$Create$ = kotlin_kotlin.$_$.s;
var toHashSet = kotlin_kotlin.$_$.u8;
var toBooleanArray = kotlin_kotlin.$_$.t8;
var withIndex = kotlin_kotlin.$_$.d9;
var to = kotlin_kotlin.$_$.gh;
var lazy_0 = kotlin_kotlin.$_$.yg;
var contentEquals = kotlin_kotlin.$_$.p6;
var until = kotlin_kotlin.$_$.mc;
var joinToString = kotlin_kotlin.$_$.r7;
var initMetadataForObject = kotlin_kotlin.$_$.bb;
var Long = kotlin_kotlin.$_$.wf;
var Char = kotlin_kotlin.$_$.mf;
var initMetadataForCompanion = kotlin_kotlin.$_$.xa;
var Duration__toIsoString_impl_9h6wsm = kotlin_kotlin.$_$.q2;
var Duration = kotlin_kotlin.$_$.gf;
var Companion_getInstance = kotlin_kotlin.$_$.a5;
var Uuid = kotlin_kotlin.$_$.if;
var Companion_getInstance_0 = kotlin_kotlin.$_$.b5;
var toIntOrNull = kotlin_kotlin.$_$.se;
var hashCode = kotlin_kotlin.$_$.va;
var ArrayList_init_$Create$_1 = kotlin_kotlin.$_$.n;
var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.t;
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.x;
var LinkedHashSet_init_$Create$_0 = kotlin_kotlin.$_$.y;
var HashMap_init_$Create$ = kotlin_kotlin.$_$.p;
var HashMap_init_$Create$_0 = kotlin_kotlin.$_$.q;
var LinkedHashMap_init_$Create$_1 = kotlin_kotlin.$_$.w;
var isArray = kotlin_kotlin.$_$.cb;
var arrayIterator = kotlin_kotlin.$_$.fa;
var step = kotlin_kotlin.$_$.lc;
var getValue = kotlin_kotlin.$_$.n7;
var longArray = kotlin_kotlin.$_$.qb;
var get_lastIndex = kotlin_kotlin.$_$.u7;
var countTrailingZeroBits = kotlin_kotlin.$_$.qg;
var HashSet_init_$Create$_1 = kotlin_kotlin.$_$.r;
var toString_0 = kotlin_kotlin.$_$.fh;
var KTypeParameter = kotlin_kotlin.$_$.sc;
var contentHashCode = kotlin_kotlin.$_$.q6;
var fillArrayVal = kotlin_kotlin.$_$.ra;
var booleanArray = kotlin_kotlin.$_$.ga;
var emptyMap = kotlin_kotlin.$_$.f7;
var Companion_getInstance_1 = kotlin_kotlin.$_$.c5;
var isCharArray = kotlin_kotlin.$_$.fb;
var charArray = kotlin_kotlin.$_$.ja;
var DoubleCompanionObject_getInstance = kotlin_kotlin.$_$.s4;
var isDoubleArray = kotlin_kotlin.$_$.hb;
var FloatCompanionObject_getInstance = kotlin_kotlin.$_$.t4;
var isFloatArray = kotlin_kotlin.$_$.ib;
var Companion_getInstance_2 = kotlin_kotlin.$_$.d5;
var isLongArray = kotlin_kotlin.$_$.lb;
var Companion_getInstance_3 = kotlin_kotlin.$_$.h5;
var _ULongArray___get_size__impl__ju6dtr = kotlin_kotlin.$_$.d4;
var ULongArray = kotlin_kotlin.$_$.ig;
var _ULongArray___init__impl__twm1l3 = kotlin_kotlin.$_$.z3;
var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.w3;
var ULongArray__get_impl_pr71q9 = kotlin_kotlin.$_$.b4;
var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.x3;
var IntCompanionObject_getInstance = kotlin_kotlin.$_$.u4;
var isIntArray = kotlin_kotlin.$_$.jb;
var Companion_getInstance_4 = kotlin_kotlin.$_$.g5;
var _UIntArray___get_size__impl__r6l8ci = kotlin_kotlin.$_$.u3;
var UIntArray = kotlin_kotlin.$_$.gg;
var _UIntArray___init__impl__ghjpc6 = kotlin_kotlin.$_$.q3;
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.n3;
var UIntArray__get_impl_gp5kza = kotlin_kotlin.$_$.s3;
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.o3;
var ShortCompanionObject_getInstance = kotlin_kotlin.$_$.v4;
var isShortArray = kotlin_kotlin.$_$.nb;
var Companion_getInstance_5 = kotlin_kotlin.$_$.i5;
var _UShortArray___get_size__impl__jqto1b = kotlin_kotlin.$_$.m4;
var UShortArray = kotlin_kotlin.$_$.kg;
var _UShortArray___init__impl__9b26ef = kotlin_kotlin.$_$.i4;
var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.f4;
var UShortArray__get_impl_fnbhmx = kotlin_kotlin.$_$.k4;
var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.g4;
var ByteCompanionObject_getInstance = kotlin_kotlin.$_$.r4;
var isByteArray = kotlin_kotlin.$_$.eb;
var Companion_getInstance_6 = kotlin_kotlin.$_$.f5;
var _UByteArray___get_size__impl__h6pkdv = kotlin_kotlin.$_$.l3;
var UByteArray = kotlin_kotlin.$_$.eg;
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.i3;
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.e3;
var UByteArray__get_impl_t5f3hv = kotlin_kotlin.$_$.j3;
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.f3;
var BooleanCompanionObject_getInstance = kotlin_kotlin.$_$.q4;
var isBooleanArray = kotlin_kotlin.$_$.db;
var coerceAtLeast = kotlin_kotlin.$_$.fc;
var copyOf = kotlin_kotlin.$_$.u6;
var copyOf_0 = kotlin_kotlin.$_$.w6;
var copyOf_1 = kotlin_kotlin.$_$.x6;
var copyOf_2 = kotlin_kotlin.$_$.s6;
var _ULongArray___get_storage__impl__28e64j = kotlin_kotlin.$_$.e4;
var _ULongArray___init__impl__twm1l3_0 = kotlin_kotlin.$_$.a4;
var ULongArray__set_impl_z19mvh = kotlin_kotlin.$_$.c4;
var copyOf_3 = kotlin_kotlin.$_$.z6;
var _UIntArray___get_storage__impl__92a0v0 = kotlin_kotlin.$_$.v3;
var _UIntArray___init__impl__ghjpc6_0 = kotlin_kotlin.$_$.r3;
var UIntArray__set_impl_7f2zu2 = kotlin_kotlin.$_$.t3;
var copyOf_4 = kotlin_kotlin.$_$.r6;
var _UShortArray___get_storage__impl__t2jpv5 = kotlin_kotlin.$_$.n4;
var _UShortArray___init__impl__9b26ef_0 = kotlin_kotlin.$_$.j4;
var UShortArray__set_impl_6d8whp = kotlin_kotlin.$_$.l4;
var copyOf_5 = kotlin_kotlin.$_$.v6;
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.m3;
var _UByteArray___init__impl__ip4y9n_0 = kotlin_kotlin.$_$.h3;
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.k3;
var copyOf_6 = kotlin_kotlin.$_$.t6;
var Unit = kotlin_kotlin.$_$.mg;
var trimIndent = kotlin_kotlin.$_$.df;
var charSequenceLength = kotlin_kotlin.$_$.la;
var last = kotlin_kotlin.$_$.y7;
var lastOrNull = kotlin_kotlin.$_$.x7;
var get_lastIndex_0 = kotlin_kotlin.$_$.v7;
var ULong = kotlin_kotlin.$_$.jg;
var UInt = kotlin_kotlin.$_$.hg;
var UShort = kotlin_kotlin.$_$.lg;
var UByte = kotlin_kotlin.$_$.fg;
var noWhenBranchMatchedException = kotlin_kotlin.$_$.zg;
var asSequence = kotlin_kotlin.$_$.j6;
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.y4;
var mapOf = kotlin_kotlin.$_$.c8;
var get_js = kotlin_kotlin.$_$.pb;
var findAssociatedObject = kotlin_kotlin.$_$.c;
var get_indices = kotlin_kotlin.$_$.p7;
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.a2;
var get_indices_0 = kotlin_kotlin.$_$.o7;
var Companion_getInstance_7 = kotlin_kotlin.$_$.e5;
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.a3;
var createFailure = kotlin_kotlin.$_$.rg;
//endregion
//region block: pre-declaration
initMetadataForClass(ExperimentalSerializationApi, 'ExperimentalSerializationApi', VOID, VOID, [Annotation]);
initMetadataForClass(InternalSerializationApi, 'InternalSerializationApi', VOID, VOID, [Annotation]);
initMetadataForClass(Serializable, 'Serializable', VOID, VOID, [Annotation]);
initMetadataForClass(SerialName, 'SerialName', VOID, VOID, [Annotation]);
initMetadataForClass(InheritableSerialInfo, 'InheritableSerialInfo', VOID, VOID, [Annotation]);
initMetadataForClass(SerialInfo, 'SerialInfo', VOID, VOID, [Annotation]);
initMetadataForInterface(SerializationStrategy, 'SerializationStrategy');
initMetadataForInterface(DeserializationStrategy, 'DeserializationStrategy');
initMetadataForInterface(KSerializer, 'KSerializer', VOID, VOID, [SerializationStrategy, DeserializationStrategy]);
initMetadataForClass(AbstractPolymorphicSerializer, 'AbstractPolymorphicSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(PolymorphicSerializer, 'PolymorphicSerializer', VOID, AbstractPolymorphicSerializer);
initMetadataForClass(_no_name_provided__qut3iv, VOID, VOID, VOID, [Grouping]);
initMetadataForClass(SealedClassSerializer, 'SealedClassSerializer', VOID, AbstractPolymorphicSerializer);
initMetadataForInterface(SerialFormat, 'SerialFormat');
initMetadataForInterface(StringFormat, 'StringFormat', VOID, VOID, [SerialFormat]);
initMetadataForClass(SerializationException, 'SerializationException', SerializationException_init_$Create$, IllegalArgumentException);
initMetadataForClass(UnknownFieldException, 'UnknownFieldException', VOID, SerializationException);
initMetadataForClass(MissingFieldException, 'MissingFieldException', VOID, SerializationException);
function get_isNullable() {
return false;
}
function get_isInline() {
return false;
}
function get_annotations() {
return emptyList();
}
initMetadataForInterface(SerialDescriptor, 'SerialDescriptor');
initMetadataForClass(ContextDescriptor, 'ContextDescriptor', VOID, VOID, [SerialDescriptor]);
initMetadataForClass(elementDescriptors$1, VOID, VOID, VOID, [Iterator]);
initMetadataForClass(_no_name_provided__qut3iv_0, VOID, VOID, VOID, [Iterable]);
initMetadataForClass(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder');
initMetadataForInterface(CachedNames, 'CachedNames');
initMetadataForClass(SerialDescriptorImpl, 'SerialDescriptorImpl', VOID, VOID, [SerialDescriptor, CachedNames]);
initMetadataForClass(SerialKind, 'SerialKind');
initMetadataForObject(ENUM, 'ENUM', VOID, SerialKind);
initMetadataForObject(CONTEXTUAL, 'CONTEXTUAL', VOID, SerialKind);
initMetadataForClass(PolymorphicKind, 'PolymorphicKind', VOID, SerialKind);
initMetadataForObject(SEALED, 'SEALED', VOID, PolymorphicKind);
initMetadataForObject(OPEN, 'OPEN', VOID, PolymorphicKind);
initMetadataForClass(PrimitiveKind, 'PrimitiveKind', VOID, SerialKind);
initMetadataForObject(BOOLEAN, 'BOOLEAN', VOID, PrimitiveKind);
initMetadataForObject(BYTE, 'BYTE', VOID, PrimitiveKind);
initMetadataForObject(CHAR, 'CHAR', VOID, PrimitiveKind);
initMetadataForObject(SHORT, 'SHORT', VOID, PrimitiveKind);
initMetadataForObject(INT, 'INT', VOID, PrimitiveKind);
initMetadataForObject(LONG, 'LONG', VOID, PrimitiveKind);
initMetadataForObject(FLOAT, 'FLOAT', VOID, PrimitiveKind);
initMetadataForObject(DOUBLE, 'DOUBLE', VOID, PrimitiveKind);
initMetadataForObject(STRING, 'STRING', VOID, PrimitiveKind);
initMetadataForClass(StructureKind, 'StructureKind', VOID, SerialKind);
initMetadataForObject(CLASS, 'CLASS', VOID, StructureKind);
initMetadataForObject(LIST, 'LIST', VOID, StructureKind);
initMetadataForObject(MAP, 'MAP', VOID, StructureKind);
initMetadataForObject(OBJECT, 'OBJECT', VOID, StructureKind);
function decodeSerializableValue(deserializer) {
return deserializer.deserialize_sy6x50_k$(this);
}
function decodeNullableSerializableValue(deserializer) {
// Inline function 'kotlinx.serialization.encoding.decodeIfNullable' call
var isNullabilitySupported = deserializer.get_descriptor_wjt6a0_k$().get_isNullable_67sy7o_k$();
var tmp;
if (isNullabilitySupported || this.decodeNotNullMark_us4ba1_k$()) {
// Inline function 'kotlinx.serialization.encoding.Decoder.decodeNullableSerializableValue.<anonymous>' call
tmp = this.decodeSerializableValue_xpnpad_k$(deserializer);
} else {
tmp = this.decodeNull_jzrmuj_k$();
}
return tmp;
}
initMetadataForInterface(Decoder, 'Decoder');
function decodeSequentially() {
return false;
}
function decodeCollectionSize(descriptor) {
return -1;
}
function decodeSerializableElement$default(descriptor, index, deserializer, previousValue, $super) {
previousValue = previousValue === VOID ? null : previousValue;
return $super === VOID ? this.decodeSerializableElement_uahnnv_k$(descriptor, index, deserializer, previousValue) : $super.decodeSerializableElement_uahnnv_k$.call(this, descriptor, index, deserializer, previousValue);
}
function decodeNullableSerializableElement$default(descriptor, index, deserializer, previousValue, $super) {
previousValue = previousValue === VOID ? null : previousValue;
return $super === VOID ? this.decodeNullableSerializableElement_k2y6ab_k$(descriptor, index, deserializer, previousValue) : $super.decodeNullableSerializableElement_k2y6ab_k$.call(this, descriptor, index, deserializer, previousValue);
}
initMetadataForInterface(CompositeDecoder, 'CompositeDecoder');
initMetadataForClass(AbstractDecoder, 'AbstractDecoder', VOID, VOID, [Decoder, CompositeDecoder]);
function encodeNotNullMark() {
}
function beginCollection(descriptor, collectionSize) {
return this.beginStructure_yljocp_k$(descriptor);
}
function encodeSerializableValue(serializer, value) {
serializer.serialize_5ase3y_k$(this, value);
}
function encodeNullableSerializableValue(serializer, value) {
var isNullabilitySupported = serializer.get_descriptor_wjt6a0_k$().get_isNullable_67sy7o_k$();
if (isNullabilitySupported) {
return this.encodeSerializableValue_3uuzip_k$(isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value);
}
if (value == null) {
this.encodeNull_ejiosz_k$();
} else {
this.encodeNotNullMark_415a1t_k$();
this.encodeSerializableValue_3uuzip_k$(serializer, value);
}
}
initMetadataForInterface(Encoder, 'Encoder');
function shouldEncodeElementDefault(descriptor, index) {
return true;
}
initMetadataForInterface(CompositeEncoder, 'CompositeEncoder');
initMetadataForClass(AbstractEncoder, 'AbstractEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
initMetadataForInterface(ChunkedDecoder, 'ChunkedDecoder');
initMetadataForCompanion(Companion);
initMetadataForObject(NothingSerializer_0, 'NothingSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(DurationSerializer, 'DurationSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(UuidSerializer, 'UuidSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(ListLikeDescriptor, 'ListLikeDescriptor', VOID, VOID, [SerialDescriptor]);
initMetadataForClass(ArrayListClassDesc, 'ArrayListClassDesc', VOID, ListLikeDescriptor);
initMetadataForClass(HashSetClassDesc, 'HashSetClassDesc', VOID, ListLikeDescriptor);
initMetadataForClass(LinkedHashSetClassDesc, 'LinkedHashSetClassDesc', VOID, ListLikeDescriptor);
initMetadataForClass(MapLikeDescriptor, 'MapLikeDescriptor', VOID, VOID, [SerialDescriptor]);
initMetadataForClass(HashMapClassDesc, 'HashMapClassDesc', VOID, MapLikeDescriptor);
initMetadataForClass(LinkedHashMapClassDesc, 'LinkedHashMapClassDesc', VOID, MapLikeDescriptor);
initMetadataForClass(ArrayClassDesc, 'ArrayClassDesc', VOID, ListLikeDescriptor);
initMetadataForClass(PrimitiveArrayDescriptor, 'PrimitiveArrayDescriptor', VOID, ListLikeDescriptor);
initMetadataForClass(AbstractCollectionSerializer, 'AbstractCollectionSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(CollectionLikeSerializer, 'CollectionLikeSerializer', VOID, AbstractCollectionSerializer);
initMetadataForClass(CollectionSerializer, 'CollectionSerializer', VOID, CollectionLikeSerializer);
initMetadataForClass(ArrayListSerializer, 'ArrayListSerializer', VOID, CollectionSerializer);
initMetadataForClass(HashSetSerializer, 'HashSetSerializer', VOID, CollectionSerializer);
initMetadataForClass(LinkedHashSetSerializer, 'LinkedHashSetSerializer', VOID, CollectionSerializer);
initMetadataForClass(MapLikeSerializer, 'MapLikeSerializer', VOID, AbstractCollectionSerializer);
initMetadataForClass(HashMapSerializer, 'HashMapSerializer', VOID, MapLikeSerializer);
initMetadataForClass(LinkedHashMapSerializer, 'LinkedHashMapSerializer', VOID, MapLikeSerializer);
initMetadataForClass(ReferenceArraySerializer, 'ReferenceArraySerializer', VOID, CollectionLikeSerializer);
initMetadataForClass(PrimitiveArraySerializer, 'PrimitiveArraySerializer', VOID, CollectionLikeSerializer);
initMetadataForClass(PrimitiveArrayBuilder, 'PrimitiveArrayBuilder');
initMetadataForCompanion(Companion_0);
initMetadataForClass(ElementMarker, 'ElementMarker');
initMetadataForClass(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', VOID, VOID, [SerialDescriptor, CachedNames]);
initMetadataForClass(InlineClassDescriptor, 'InlineClassDescriptor', VOID, PluginGeneratedSerialDescriptor);
function typeParametersSerializers() {
return get_EMPTY_SERIALIZER_ARRAY();
}
initMetadataForInterface(GeneratedSerializer, 'GeneratedSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(InlinePrimitiveDescriptor$1, VOID, VOID, VOID, [GeneratedSerializer]);
initMetadataForClass(CoreFriendModuleApi, 'CoreFriendModuleApi', VOID, VOID, [Annotation]);
initMetadataForObject(NoOpEncoder, 'NoOpEncoder', VOID, AbstractEncoder);
initMetadataForObject(NothingSerialDescriptor, 'NothingSerialDescriptor', VOID, VOID, [SerialDescriptor]);
initMetadataForClass(NullableSerializer, 'NullableSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(SerialDescriptorForNullable, 'SerialDescriptorForNullable', VOID, VOID, [SerialDescriptor, CachedNames]);
initMetadataForClass(ObjectSerializer, 'ObjectSerializer', VOID, VOID, [KSerializer]);
function isStored(key) {
return false;
}
initMetadataForInterface(SerializerCache, 'SerializerCache');
function get$default(key, types, $super) {
types = types === VOID ? emptyList() : types;
return $super === VOID ? this.get_zd31r2_k$(key, types) : $super.get_zd31r2_k$.call(this, key, types).value_1;
}
initMetadataForInterface(ParametrizedSerializerCache, 'ParametrizedSerializerCache');
initMetadataForInterface(SerializerFactory, 'SerializerFactory');
initMetadataForObject(CharArraySerializer_0, 'CharArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(DoubleArraySerializer_0, 'DoubleArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(FloatArraySerializer_0, 'FloatArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(LongArraySerializer_0, 'LongArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(ULongArraySerializer_0, 'ULongArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(IntArraySerializer_0, 'IntArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(UIntArraySerializer_0, 'UIntArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(ShortArraySerializer_0, 'ShortArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(UShortArraySerializer_0, 'UShortArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(ByteArraySerializer_0, 'ByteArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(UByteArraySerializer_0, 'UByteArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForObject(BooleanArraySerializer_0, 'BooleanArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
initMetadataForClass(CharArrayBuilder, 'CharArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(DoubleArrayBuilder, 'DoubleArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(FloatArrayBuilder, 'FloatArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(LongArrayBuilder, 'LongArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(ULongArrayBuilder, 'ULongArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(IntArrayBuilder, 'IntArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(UIntArrayBuilder, 'UIntArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(ShortArrayBuilder, 'ShortArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(UShortArrayBuilder, 'UShortArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(ByteArrayBuilder, 'ByteArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(UByteArrayBuilder, 'UByteArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForClass(BooleanArrayBuilder, 'BooleanArrayBuilder', VOID, PrimitiveArrayBuilder);
initMetadataForObject(StringSerializer, 'StringSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(CharSerializer, 'CharSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(DoubleSerializer, 'DoubleSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(FloatSerializer, 'FloatSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(LongSerializer, 'LongSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(IntSerializer, 'IntSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(ShortSerializer, 'ShortSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(ByteSerializer, 'ByteSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(BooleanSerializer, 'BooleanSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(UnitSerializer, 'UnitSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(PrimitiveSerialDescriptor_0, 'PrimitiveSerialDescriptor', VOID, VOID, [SerialDescriptor]);
initMetadataForClass(SerializationConstructorMarker, 'SerializationConstructorMarker');
initMetadataForClass(TaggedEncoder, 'TaggedEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
initMetadataForClass(NamedValueEncoder, 'NamedValueEncoder', VOID, TaggedEncoder);
initMetadataForClass(TaggedDecoder, 'TaggedDecoder', VOID, VOID, [Decoder, CompositeDecoder]);
initMetadataForClass(NamedValueDecoder, 'NamedValueDecoder', VOID, TaggedDecoder);
initMetadataForClass(MapEntry, 'MapEntry', VOID, VOID, [Entry]);
initMetadataForClass(KeyValueSerializer, 'KeyValueSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(MapEntrySerializer_0, 'MapEntrySerializer', VOID, KeyValueSerializer);
initMetadataForClass(PairSerializer_0, 'PairSerializer', VOID, KeyValueSerializer);
initMetadataForClass(TripleSerializer_0, 'TripleSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(ULongSerializer, 'ULongSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(UIntSerializer, 'UIntSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(UShortSerializer, 'UShortSerializer', VOID, VOID, [KSerializer]);
initMetadataForObject(UByteSerializer, 'UByteSerializer', VOID, VOID, [KSerializer]);
initMetadataForClass(SerializersModule, 'SerializersModule');
initMetadataForClass(SerialModuleImpl, 'SerialModuleImpl', VOID, SerializersModule);
initMetadataForClass(ContextualProvider, 'ContextualProvider');
initMetadataForClass(Argless, 'Argless', VOID, ContextualProvider);
initMetadataForClass(WithTypeArguments, 'WithTypeArguments', VOID, ContextualProvider);
function contextual(kClass, serializer) {
return this.contextual_lh3eph_k$(kClass, SerializersModuleCollector$contextual$lambda(serializer));
}
function polymorphicDefault(baseClass, defaultDeserializerProvider) {
this.polymorphicDefaultDeserializer_ur850q_k$(baseClass, defaultDeserializerProvider);
}
initMetadataForInterface(SerializersModuleCollector, 'SerializersModuleCollector');
initMetadataForClass(SerializersModuleBuilder, 'SerializersModuleBuilder', VOID, VOID, [SerializersModuleCollector]);
initMetadataForClass(SerializerAlreadyRegisteredException, 'SerializerAlreadyRegisteredException', VOID, IllegalArgumentException);
initMetadataForClass(SerializableWith, 'SerializableWith', VOID, VOID, [Annotation], VOID, 0);
initMetadataForClass(createCache$1, VOID, VOID, VOID, [SerializerCache]);
initMetadataForClass(createParametrizedCache$1, VOID, VOID, VOID, [ParametrizedSerializerCache]);
//endregion
function ExperimentalSerializationApi() {
}
protoOf(ExperimentalSerializationApi).equals = function (other) {
if (!(other instanceof ExperimentalSerializationApi))
return false;
other instanceof ExperimentalSerializationApi || THROW_CCE();
return true;
};
protoOf(ExperimentalSerializationApi).hashCode = function () {
return 0;
};
protoOf(ExperimentalSerializationApi).toString = function () {
return '@kotlinx.serialization.ExperimentalSerializationApi(' + ')';
};
function InternalSerializationApi() {
}
protoOf(InternalSerializationApi).equals = function (other) {
if (!(other instanceof InternalSerializationApi))
return false;
other instanceof InternalSerializationApi || THROW_CCE();
return true;
};
protoOf(InternalSerializationApi).hashCode = function () {
return 0;
};
protoOf(InternalSerializationApi).toString = function () {
return '@kotlinx.serialization.InternalSerializationApi(' + ')';
};
function Serializable(with_0) {
with_0 = with_0 === VOID ? getKClass(KSerializer) : with_0;
this.with_1 = with_0;
}
protoOf(Serializable).get_with_wowvm7_k$ = function () {
return this.with_1;
};
protoOf(Serializable).equals = function (other) {
if (!(other instanceof Serializable))
return false;
var tmp0_other_with_cast = other instanceof Serializable ? other : THROW_CCE();
if (!this.with_1.equals(tmp0_other_with_cast.with_1))
return false;
return true;
};
protoOf(Serializable).hashCode = function () {
return imul(getStringHashCode('with'), 127) ^ this.with_1.hashCode();
};
protoOf(Serializable).toString = function () {
return '@kotlinx.serialization.Serializable(' + 'with=' + toString(this.with_1) + ')';
};
function SerialName(value) {
this.value_1 = value;
}
protoOf(SerialName).get_value_j01efc_k$ = function () {
return this.value_1;
};
protoOf(SerialName).equals = function (other) {
if (!(other instanceof SerialName))
return false;
var tmp0_other_with_cast = other instanceof SerialName ? other : THROW_CCE();
if (!(this.value_1 === tmp0_other_with_cast.value_1))
return false;
return true;
};
protoOf(SerialName).hashCode = function () {
return imul(getStringHashCode('value'), 127) ^ getStringHashCode(this.value_1);
};
protoOf(SerialName).toString = function () {
return '@kotlinx.serialization.SerialName(' + 'value=' + this.value_1 + ')';
};
function InheritableSerialInfo() {
}
protoOf(InheritableSerialInfo).equals = function (other) {
if (!(other instanceof InheritableSerialInfo))
return false;
other instanceof InheritableSerialInfo || THROW_CCE();
return true;
};
protoOf(InheritableSerialInfo).hashCode = function () {
return 0;
};
protoOf(InheritableSerialInfo).toString = function () {
return '@kotlinx.serialization.InheritableSerialInfo(' + ')';
};
function SerialInfo() {
}
protoOf(SerialInfo).equals = function (other) {
if (!(other instanceof SerialInfo))
return false;
other instanceof SerialInfo || THROW_CCE();
return true;
};
protoOf(SerialInfo).hashCode = function () {
return 0;
};
protoOf(SerialInfo).toString = function () {
return '@kotlinx.serialization.SerialInfo(' + ')';
};
function KSerializer() {
}
function SerializationStrategy() {
}
function DeserializationStrategy() {
}
function PolymorphicSerializer_init_$Init$(baseClass, classAnnotations, $this) {
PolymorphicSerializer.call($this, baseClass);
$this._annotations_1 = asList(classAnnotations);
return $this;
}
function PolymorphicSerializer_init_$Create$(baseClass, classAnnotations) {
return PolymorphicSerializer_init_$Init$(baseClass, classAnnotations, objectCreate(protoOf(PolymorphicSerializer)));
}
function _set__annotations__kk13ma($this, _set____db54di) {
$this._annotations_1 = _set____db54di;
}
function _get__annotations__yxc7sq($this) {
return $this._annotations_1;
}
function PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
$this$buildSerialDescriptor.element$default_ey7ac9_k$('type', serializer_0(StringCompanionObject_getInstance()).get_descriptor_wjt6a0_k$());
$this$buildSerialDescriptor.element$default_ey7ac9_k$('value', buildSerialDescriptor('kotlinx.serialization.Polymorphic<' + this$0.baseClass_1.get_simpleName_r6f8py_k$() + '>', CONTEXTUAL_getInstance(), []));
$this$buildSerialDescriptor.set_annotations_x27pt8_k$(this$0._annotations_1);
return Unit_getInstance();
};
}
function PolymorphicSerializer$descriptor$delegate$lambda(this$0) {
return function () {
var tmp = OPEN_getInstance();
return withContext(buildSerialDescriptor('kotlinx.serialization.Polymorphic', tmp, [], PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0)), this$0.baseClass_1);
};
}
function PolymorphicSerializer(baseClass) {
AbstractPolymorphicSerializer.call(this);
this.baseClass_1 = baseClass;
this._annotations_1 = emptyList();
var tmp = this;
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp.descriptor$delegate_1 = lazy(tmp_0, PolymorphicSerializer$descriptor$delegate$lambda(this));
}
protoOf(PolymorphicSerializer).get_baseClass_lygw3m_k$ = function () {
return this.baseClass_1;
};
protoOf(PolymorphicSerializer).get_descriptor_wjt6a0_k$ = function () {
// Inline function 'kotlin.getValue' call
var this_0 = this.descriptor$delegate_1;
descriptor$factory();
return this_0.get_value_j01efc_k$();
};
protoOf(PolymorphicSerializer).toString = function () {
return 'kotlinx.serialization.PolymorphicSerializer(baseClass: ' + toString(this.baseClass_1) + ')';
};
function findPolymorphicSerializer(_this__u8e3s4, encoder, value) {
var tmp0_elvis_lhs = _this__u8e3s4.findPolymorphicSerializerOrNull_sqpvzc_k$(encoder, value);
var tmp;
if (tmp0_elvis_lhs == null) {
throwSubtypeNotRegistered(getKClassFromExpression(value), _this__u8e3s4.get_baseClass_lygw3m_k$());
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
function findPolymorphicSerializer_0(_this__u8e3s4, decoder, klassName) {
var tmp0_elvis_lhs = _this__u8e3s4.findPolymorphicSerializerOrNull_o3cszk_k$(decoder, klassName);
var tmp;
if (tmp0_elvis_lhs == null) {
throwSubtypeNotRegistered_0(klassName, _this__u8e3s4.get_baseClass_lygw3m_k$());
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
function descriptor$factory() {
return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) {
return receiver.get_descriptor_wjt6a0_k$();
}, null);
}
function SealedClassSerializer_init_$Init$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations, $this) {
SealedClassSerializer.call($this, serialName, baseClass, subclasses, subclassSerializers);
$this._annotations_1 = asList(classAnnotations);
return $this;
}
function SealedClassSerializer_init_$Create$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations) {
return SealedClassSerializer_init_$Init$(serialName, baseClass, subclasses, subclassSerializers, classAnnotations, objectCreate(protoOf(SealedClassSerializer)));
}
function _set__annotations__kk13ma_0($this, _set____db54di) {
$this._annotations_1 = _set____db54di;
}
function _get__annotations__yxc7sq_0($this) {
return $this._annotations_1;
}
function _get_class2Serializer__mdbm1r($this) {
return $this.class2Serializer_1;
}
function _get_serialName2Serializer__sjlyic($this) {
return $this.serialName2Serializer_1;
}
function SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
// Inline function 'kotlin.collections.iterator' call
var tmp0_iterator = this$0.serialName2Serializer_1.get_entries_p20ztl_k$().iterator_jk1svi_k$();
while (tmp0_iterator.hasNext_bitz1p_k$()) {
var element = tmp0_iterator.next_20eer_k$();
// Inline function 'kotlinx.serialization.SealedClassSerializer.descriptor$delegate.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
// Inline function 'kotlin.collections.component1' call
var name = element.get_key_18j28a_k$();
// Inline function 'kotlin.collections.component2' call
var serializer = element.get_value_j01efc_k$();
$this$buildSerialDescriptor.element$default_ey7ac9_k$(name, serializer.get_descriptor_wjt6a0_k$());
}
return Unit_getInstance();
};
}
function SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0) {
return function ($this$buildSerialDescriptor) {
$this$buildSerialDescriptor.element$default_ey7ac9_k$('type', serializer_0(StringCompanionObject_getInstance()).get_descriptor_wjt6a0_k$());
var tmp = 'kotlinx.serialization.Sealed<' + this$0.baseClass_1.get_simpleName_r6f8py_k$() + '>';
var tmp_0 = CONTEXTUAL_getInstance();
var elementDescriptor = buildSerialDescriptor(tmp, tmp_0, [], SealedClassSerializer$descriptor$delegate$lambda$lambda$lambda(this$0));
$this$buildSerialDescriptor.element$default_ey7ac9_k$('value', elementDescriptor);
$this$buildSerialDescriptor.set_annotations_x27pt8_k$(this$0._annotations_1);
return Unit_getInstance();
};
}
function SealedClassSerializer$descriptor$delegate$lambda($serialName, this$0) {
return function () {
var tmp = SEALED_getInstance();
return buildSerialDescriptor($serialName, tmp, [], SealedClassSerializer$descriptor$delegate$lambda$lambda(this$0));
};
}
function _no_name_provided__qut3iv($this) {
this.$this_1 = $this;
}
protoOf(_no_name_provided__qut3iv).sourceIterator_2zqxcn_k$ = function () {
return this.$this_1.iterator_jk1svi_k$();
};
protoOf(_no_name_provided__qut3iv).keyOf_qdhuon_k$ = function (element) {
// Inline function 'kotlinx.serialization.SealedClassSerializer.<anonymous>' call
return element.get_value_j01efc_k$().get_descriptor_wjt6a0_k$().get_serialName_u2rqhk_k$();
};
protoOf(_no_name_provided__qut3iv).keyOf_d1fr09_k$ = function (element) {
return this.keyOf_qdhuon_k$((element == null ? true : !(element == null)) ? element : THROW_CCE());
};
function SealedClassSerializer(serialName, baseClass, subclasses, subclassSerializers) {
AbstractPolymorphicSerializer.call(this);
this.baseClass_1 = baseClass;
this._annotations_1 = emptyList();
var tmp = this;
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp.descriptor$delegate_1 = lazy(tmp_0, SealedClassSerializer$descriptor$delegate$lambda(serialName, this));
if (!(subclasses.length === subclassSerializers.length)) {
throw IllegalArgumentException_init_$Create$('All subclasses of sealed class ' + this.baseClass_1.get_simpleName_r6f8py_k$() + ' should be marked @Serializable');
}
this.class2Serializer_1 = toMap(zip(subclasses, subclassSerializers));
var tmp_1 = this;
// Inline function 'kotlin.collections.mapValues' call
// Inline function 'kotlin.collections.aggregate' call
// Inline function 'kotlin.collections.groupingBy' call
var this_0 = this.class2Serializer_1.get_entries_p20ztl_k$();
// Inline function 'kotlin.collections.aggregateTo' call
var this_1 = new _no_name_provided__qut3iv(this_0);
// Inline function 'kotlin.collections.mutableMapOf' call
var destination = LinkedHashMap_init_$Create$();
// Inline function 'kotlin.collections.iterator' call
var tmp0_iterator = this_1.sourceIterator_2zqxcn_k$();
while (tmp0_iterator.hasNext_bitz1p_k$()) {
var e = tmp0_iterator.next_20eer_k$();
var key = this_1.keyOf_d1fr09_k$(e);
var accumulator = destination.get_wei43m_k$(key);
// Inline function 'kotlin.collections.set' call
// Inline function 'kotlinx.serialization.SealedClassSerializer.<anonymous>' call
accumulator == null && !destination.containsKey_aw81wo_k$(key);
if (!(accumulator == null)) {
// Inline function 'kotlin.error' call
var message = "Multiple sealed subclasses of '" + toString(this.baseClass_1) + "' have the same serial name '" + key + "':" + (" '" + toString(accumulator.get_key_18j28a_k$()) + "', '" + toString(e.get_key_18j28a_k$()) + "'");
throw IllegalStateException_init_$Create$(toString(message));
}
destination.put_4fpzoq_k$(key, e);
}
// Inline function 'kotlin.collections.mapValuesTo' call
var destination_0 = LinkedHashMap_init_$Create$_0(mapCapacity(destination.get_size_woubt6_k$()));
// Inline function 'kotlin.collections.associateByTo' call
var tmp0_iterator_0 = destination.get_entries_p20ztl_k$().iterator_jk1svi_k$();
while (tmp0_iterator_0.hasNext_bitz1p_k$()) {
var element = tmp0_iterator_0.next_20eer_k$();
// Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
var tmp_2 = element.get_key_18j28a_k$();
// Inline function 'kotlinx.serialization.SealedClassSerializer.<anonymous>' call
var tmp$ret$7 = element.get_value_j01efc_k$().get_value_j01efc_k$();
destination_0.put_4fpzoq_k$(tmp_2, tmp$ret$7);
}
tmp_1.serialName2Serializer_1 = destination_0;
}
protoOf(SealedClassSerializer).get_baseClass_lygw3m_k$ = function () {
return this.baseClass_1;
};
protoOf(SealedClassSerializer).get_descriptor_wjt6a0_k$ = function () {
// Inline function 'kotlin.getValue' call
var this_0 = this.descriptor$delegate_1;
descriptor$factory_0();
return this_0.get_value_j01efc_k$();
};
protoOf(SealedClassSerializer).findPolymorphicSerializerOrNull_o3cszk_k$ = function (decoder, klassName) {
// Inline function 'kotlin.collections.get' call
var this_0 = this.serialName2Serializer_1;
var tmp0_elvis_lhs = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).get_wei43m_k$(klassName);
return tmp0_elvis_lhs == null ? protoOf(AbstractPolymorphicSerializer).findPolymorphicSerializerOrNull_o3cszk_k$.call(this, decoder, klassName) : tmp0_elvis_lhs;
};
protoOf(SealedClassSerializer).findPolymorphicSerializerOrNull_sqpvzc_k$ = function (encoder, value) {
var tmp0_elvis_lhs = this.class2Serializer_1.get_wei43m_k$(getKClassFromExpression(value));
var tmp1_safe_receiver = tmp0_elvis_lhs == null ? protoOf(AbstractPolymorphicSerializer).findPolymorphicSerializerOrNull_sqpvzc_k$.call(this, encoder, value) : tmp0_elvis_lhs;
var tmp;
if (tmp1_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlinx.serialization.internal.cast' call
tmp = isInterface(tmp1_safe_receiver, SerializationStrategy) ? tmp1_safe_receiver : THROW_CCE();
}
return tmp;
};
function descriptor$factory_0() {
return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) {
return receiver.get_descriptor_wjt6a0_k$();
}, null);
}
function StringFormat() {
}
function SerialFormat() {
}
function SerializationException_init_$Init$($this) {
IllegalArgumentException_init_$Init$($this);
SerializationException.call($this);
return $this;
}
function SerializationException_init_$Create$() {
var tmp = SerializationException_init_$Init$(objectCreate(protoOf(SerializationException)));
captureStack(tmp, SerializationException_init_$Create$);
return tmp;
}
function SerializationException_init_$Init$_0(message, $this) {
IllegalArgumentException_init_$Init$_0(message, $this);
SerializationException.call($this);
return $this;
}
function SerializationException_init_$Create$_0(message) {
var tmp = SerializationException_init_$Init$_0(message, objectCreate(protoOf(SerializationException)));
captureStack(tmp, SerializationException_init_$Create$_0);
return tmp;
}
function SerializationException_init_$Init$_1(message, cause, $this) {
IllegalArgumentException_init_$Init$_1(message, cause, $this);
SerializationException.call($this);
return $this;
}
function SerializationException_init_$Create$_1(message, cause) {
var tmp = SerializationException_init_$Init$_1(message, cause, objectCreate(protoOf(SerializationException)));
captureStack(tmp, SerializationException_init_$Create$_1);
return tmp;
}
function SerializationException_init_$Init$_2(cause, $this) {
IllegalArgumentException_init_$Init$_2(cause, $this);
SerializationException.call($this);
return $this;
}
function SerializationException_init_$Create$_2(cause) {
var tmp = SerializationException_init_$Init$_2(cause, objectCreate(protoOf(SerializationException)));
captureStack(tmp, SerializationException_init_$Create$_2);
return tmp;
}
function SerializationException() {
captureStack(this, SerializationException);
}
function UnknownFieldException_init_$Init$(index, $this) {
UnknownFieldException.call($this, 'An unknown field for index ' + index);
return $this;
}
function UnknownFieldException_init_$Create$(index) {
var tmp = UnknownFieldException_init_$Init$(index, objectCreate(protoOf(UnknownFieldException)));
captureStack(tmp, UnknownFieldException_init_$Create$);
return tmp;
}
function UnknownFieldException(message) {
SerializationException_init_$Init$_0(message, this);
captureStack(this, UnknownFieldException);
}
function MissingFieldException_init_$Init$(missingFields, serialName, $this) {
MissingFieldException.call($this, missingFields, missingFields.get_size_woubt6_k$() === 1 ? "Field '" + missingFields.get_c1px32_k$(0) + "' is required for type with serial name '" + serialName + "', but it was missing" : 'Fields ' + toString(missingFields) + " are required for type with serial name '" + serialName + "', but they were missing", null);
return $this;
}
function MissingFieldException_init_$Create$(missingFields, serialName) {
var tmp = MissingFieldException_init_$Init$(missingFields, serialName, objectCreate(protoOf(MissingFieldException)));
captureStack(tmp, MissingFieldException_init_$Create$);
return tmp;
}
function MissingFieldException_init_$Init$_0(missingField, serialName, $this) {
MissingFieldException.call($this, listOf(missingField), "Field '" + missingField + "' is required for type with serial name '" + serialName + "', but it was missing", null);
return $this;
}
function MissingFieldException_init_$Create$_0(missingField, serialName) {
var tmp = MissingFieldException_init_$Init$_0(missingField, serialName, objectCreate(protoOf(MissingFieldException)));
captureStack(tmp, MissingFieldException_init_$Create$_0);
return tmp;
}
function MissingFieldException_init_$Init$_1(missingField, $this) {
MissingFieldException.call($this, listOf(missingField), "Field '" + missingField + "' is required, but it was missing", null);
return $this;
}
function MissingFieldException_init_$Create$_1(missingField) {
var tmp = MissingFieldException_init_$Init$_1(missingField, objectCreate(protoOf(MissingFieldException)));
captureStack(tmp, MissingFieldException_init_$Create$_1);
return tmp;
}
function MissingFieldException(missingFields, message, cause) {
SerializationException_init_$Init$_1(message, cause, this);
captureStack(this, MissingFieldException);
this.missingFields_1 = missingFields;
}
protoOf(MissingFieldException).get_missingFields_wryzxm_k$ = function () {
return this.missingFields_1;
};
function serializerOrNull(_this__u8e3s4) {
var tmp0_elvis_lhs = compiledSerializerImpl(_this__u8e3s4);
return tmp0_elvis_lhs == null ? builtinSerializerOrNull(_this__u8e3s4) : tmp0_elvis_lhs;
}
function serializersForParameters(_this__u8e3s4, typeArguments, failOnMissingTypeArgSerializer) {
var tmp;
if (failOnMissingTypeArgSerializer) {
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10));
var tmp0_iterator = typeArguments.iterator_jk1svi_k$();
while (tmp0_iterator.hasNext_bitz1p_k$()) {
var item = tmp0_iterator.next_20eer_k$();
// Inline function 'kotlinx.serialization.serializersForParameters.<anonymous>' call
var tmp$ret$0 = serializer(_this__u8e3s4, item);
destination.add_utx5q5_k$(tmp$ret$0);
}
tmp = destination;
} else {
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10));
var tmp0_iterator_0 = typeArguments.iterator_jk1svi_k$();
while (tmp0_iterator_0.hasNext_bitz1p_k$()) {
var item_0 = tmp0_iterator_0.next_20eer_k$();
// Inline function 'kotlinx.serialization.serializersForParameters.<anonymous>' call
var tmp0_elvis_lhs = serializerOrNull_0(_this__u8e3s4, item_0);
var tmp_0;
if (tmp0_elvis_lhs == null) {
return null;
} else {
tmp_0 = tmp0_elvis_lhs;
}
var tmp$ret$3 = tmp_0;
destination_0.add_utx5q5_k$(tmp$ret$3);
}
tmp = destination_0;
}
var serializers = tmp;
return serializers;
}
function parametrizedSerializerOrNull(_this__u8e3s4, serializers, elementClassifierIfArray) {
var tmp0_elvis_lhs = builtinParametrizedSerializer(_this__u8e3s4, serializers, elementClassifierIfArray);
return tmp0_elvis_lhs == null ? compiledParametrizedSerializer(_this__u8e3s4, serializers) : tmp0_elvis_lhs;
}
function serializer(_this__u8e3s4, type) {
var tmp0_elvis_lhs = serializerByKTypeImpl(_this__u8e3s4, type, true);
var tmp;
if (tmp0_elvis_lhs == null) {
platformSpecificSerializerNotRegistered(kclass(type));
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
function serializerOrNull_0(_this__u8e3s4, type) {
return serializerByKTypeImpl(_this__u8e3s4, type, false);
}
function builtinParametrizedSerializer(_this__u8e3s4, serializers, elementClassifierIfArray) {
var tmp;
if (_this__u8e3s4.equals(getKClass(Collection)) || _this__u8e3s4.equals(getKClass(KtList)) || (_this__u8e3s4.equals(getKClass(KtMutableList)) || _this__u8e3s4.equals(getKClass(ArrayList)))) {
tmp = new ArrayListSerializer(serializers.get_c1px32_k$(0));
} else if (_this__u8e3s4.equals(getKClass(HashSet))) {
tmp = new HashSetSerializer(serializers.get_c1px32_k$(0));
} else if (_this__u8e3s4.equals(getKClass(KtSet)) || (_this__u8e3s4.equals(getKClass(KtMutableSet)) || _this__u8e3s4.equals(getKClass(LinkedHashSet)))) {
tmp = new LinkedHashSetSerializer(serializers.get_c1px32_k$(0));
} else if (_this__u8e3s4.equals(getKClass(HashMap))) {
tmp = new HashMapSerializer(serializers.get_c1px32_k$(0), serializers.get_c1px32_k$(1));
} else if (_this__u8e3s4.equals(getKClass(KtMap)) || (_this__u8e3s4.equals(getKClass(KtMutableMap)) || _this__u8e3s4.equals(getKClass(LinkedHashMap)))) {
tmp = new LinkedHashMapSerializer(serializers.get_c1px32_k$(0), serializers.get_c1px32_k$(1));
} else if (_this__u8e3s4.equals(getKClass(Entry))) {
tmp = MapEntrySerializer(serializers.get_c1px32_k$(0), serializers.get_c1px32_k$(1));
} else if (_this__u8e3s4.equals(getKClass(Pair))) {
tmp = PairSerializer(serializers.get_c1px32_k$(0), serializers.get_c1px32_k$(1));
} else if (_this__u8e3s4.equals(getKClass(Triple))) {
tmp = TripleSerializer(serializers.get_c1px32_k$(0), serializers.get_c1px32_k$(1), serializers.get_c1px32_k$(2));
} else {
var tmp_0;
if (isReferenceArray(_this__u8e3s4)) {
var tmp_1 = elementClassifierIfArray();
tmp_0 = ArraySerializer((!(tmp_1 == null) ? isInterface(tmp_1, KClass) : false) ? tmp_1 : THROW_CCE(), serializers.get_c1px32_k$(0));
} else {
tmp_0 = null;
}
tmp = tmp_0;
}
return tmp;
}
function compiledParametrizedSerializer(_this__u8e3s4, serializers) {
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$0 = copyToArray(serializers);
return constructSerializerForGivenTypeArgs(_this__u8e3s4, tmp$ret$0.slice());
}
function serializerByKTypeImpl(_this__u8e3s4, type, failOnMissingTypeArgSerializer) {
var rootClass = kclass(type);
var isNullable = type.get_isMarkedNullable_4el8ow_k$();
// Inline function 'kotlin.collections.map' call
var this_0 = type.get_arguments_p5ddub_k$();
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
var tmp0_iterator = this_0.iterator_jk1svi_k$();
while (tmp0_iterator.hasNext_bitz1p_k$()) {
var item = tmp0_iterator.next_20eer_k$();
var tmp$ret$0 = typeOrThrow(item);
destination.add_utx5q5_k$(tmp$ret$0);
}
var typeArguments = destination;
var tmp;
if (typeArguments.isEmpty_y1axqb_k$()) {
var tmp_0;
if (isInterface_0(rootClass) && !(_this__u8e3s4.getContextual$default_o8kdzb_k$(rootClass) == null)) {
tmp_0 = null;
} else {
tmp_0 = findCachedSerializer(rootClass, isNullable);
}
tmp = tmp_0;
} else {
var tmp_1;
if (_this__u8e3s4.get_hasInterfaceContextualSerializers_ia3ak6_k$()) {
tmp_1 = null;
} else {
// Inline function 'kotlin.Result.getOrNull' call
var this_1 = findParametrizedCachedSerializer(rootClass, typeArguments, isNullable);
var tmp_2;
if (_Result___get_isFailure__impl__jpiriv(this_1)) {
tmp_2 = null;
} else {
var tmp_3 = _Result___get_value__impl__bjfvqg(this_1);
tmp_2 = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
}
tmp_1 = tmp_2;
}
tmp = tmp_1;
}
var cachedSerializer = tmp;
if (!(cachedSerializer == null))
return cachedSerializer;
var tmp_4;
if (typeArguments.isEmpty_y1axqb_k$()) {
var tmp0_elvis_lhs = serializerOrNull(rootClass);