git-digger 1.5.39 → 1.5.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs +5119 -0
  2. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/kotlin/bin/digger +0 -0
  4. package/kotlin/clikt-clikt-mordant.mjs +310 -0
  5. package/kotlin/clikt-clikt-mordant.mjs.map +1 -0
  6. package/kotlin/clikt-clikt.mjs +6663 -0
  7. package/kotlin/clikt-clikt.mjs.map +1 -0
  8. package/kotlin/colormath-root-colormath.mjs +1675 -0
  9. package/kotlin/colormath-root-colormath.mjs.map +1 -0
  10. package/kotlin/command-line-tools-digger-cli.mjs +498 -0
  11. package/kotlin/command-line-tools-digger-cli.mjs.map +1 -0
  12. package/kotlin/kotlin-kotlin-stdlib.mjs +11790 -0
  13. package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -0
  14. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  15. package/kotlin/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  16. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs +3640 -0
  17. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  18. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs +1140 -0
  19. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  20. package/kotlin/mordant-mordant-omnibus.mjs +4 -0
  21. package/kotlin/{mordant-mordant-omnibus.js.map → mordant-mordant-omnibus.mjs.map} +1 -1
  22. package/kotlin/mordant-mordant.mjs +10332 -0
  23. package/kotlin/mordant-mordant.mjs.map +1 -0
  24. package/kotlin/tools-cli-tools.mjs +30 -0
  25. package/kotlin/tools-cli-tools.mjs.map +1 -0
  26. package/kotlin/tools-digger-core.mjs +666 -0
  27. package/kotlin/tools-digger-core.mjs.map +1 -0
  28. package/kotlin/tools-digger-json.mjs +263 -0
  29. package/kotlin/tools-digger-json.mjs.map +1 -0
  30. package/kotlin/tools-digger-model.mjs +109 -0
  31. package/kotlin/tools-digger-model.mjs.map +1 -0
  32. package/kotlin/tools-git-adapter.mjs +261 -0
  33. package/kotlin/tools-git-adapter.mjs.map +1 -0
  34. package/package.json +2 -2
  35. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +0 -5104
  36. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
  37. package/kotlin/clikt-clikt-mordant.js +0 -303
  38. package/kotlin/clikt-clikt-mordant.js.map +0 -1
  39. package/kotlin/clikt-clikt.js +0 -6742
  40. package/kotlin/clikt-clikt.js.map +0 -1
  41. package/kotlin/colormath-root-colormath.js +0 -1627
  42. package/kotlin/colormath-root-colormath.js.map +0 -1
  43. package/kotlin/command-line-tools-digger-cli.js +0 -563
  44. package/kotlin/command-line-tools-digger-cli.js.map +0 -1
  45. package/kotlin/kotlin-kotlin-stdlib.js +0 -11651
  46. package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
  47. package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -8
  48. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +0 -3509
  49. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  50. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +0 -1118
  51. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  52. package/kotlin/mordant-mordant-omnibus.js +0 -8
  53. package/kotlin/mordant-mordant.js +0 -10271
  54. package/kotlin/mordant-mordant.js.map +0 -1
  55. package/kotlin/tools-cli-tools.js +0 -55
  56. package/kotlin/tools-cli-tools.js.map +0 -1
  57. package/kotlin/tools-digger-core.js +0 -659
  58. package/kotlin/tools-digger-core.js.map +0 -1
  59. package/kotlin/tools-digger-json.js +0 -256
  60. package/kotlin/tools-digger-json.js.map +0 -1
  61. package/kotlin/tools-digger-model.js +0 -107
  62. package/kotlin/tools-digger-model.js.map +0 -1
  63. package/kotlin/tools-git-adapter.js +0 -269
  64. package/kotlin/tools-git-adapter.js.map +0 -1
@@ -1,3509 +0,0 @@
1
- (function (_, kotlin_kotlin) {
2
- 'use strict';
3
- //region block: imports
4
- var imul = Math.imul;
5
- var protoOf = kotlin_kotlin.$_$.q8;
6
- var initMetadataForInterface = kotlin_kotlin.$_$.u7;
7
- var VOID = kotlin_kotlin.$_$.g;
8
- var StringCompanionObject_instance = kotlin_kotlin.$_$.x2;
9
- var Unit_instance = kotlin_kotlin.$_$.i3;
10
- var emptyList = kotlin_kotlin.$_$.n4;
11
- var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.j;
12
- var lazy = kotlin_kotlin.$_$.qc;
13
- var toString = kotlin_kotlin.$_$.t8;
14
- var initMetadataForClass = kotlin_kotlin.$_$.r7;
15
- var getKClassFromExpression = kotlin_kotlin.$_$.e;
16
- var KProperty1 = kotlin_kotlin.$_$.h9;
17
- var getPropertyCallableRef = kotlin_kotlin.$_$.o7;
18
- var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.b1;
19
- var objectCreate = kotlin_kotlin.$_$.p8;
20
- var captureStack = kotlin_kotlin.$_$.e7;
21
- var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.c1;
22
- var IllegalArgumentException = kotlin_kotlin.$_$.sb;
23
- var collectionSizeOrDefault = kotlin_kotlin.$_$.f4;
24
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
25
- var THROW_CCE = kotlin_kotlin.$_$.yb;
26
- var KClass = kotlin_kotlin.$_$.d9;
27
- var isInterface = kotlin_kotlin.$_$.f8;
28
- var Triple = kotlin_kotlin.$_$.zb;
29
- var getKClass = kotlin_kotlin.$_$.f;
30
- var Pair = kotlin_kotlin.$_$.vb;
31
- var Entry = kotlin_kotlin.$_$.q3;
32
- var KtMap = kotlin_kotlin.$_$.r3;
33
- var KtMutableMap = kotlin_kotlin.$_$.t3;
34
- var LinkedHashMap = kotlin_kotlin.$_$.n3;
35
- var HashMap = kotlin_kotlin.$_$.l3;
36
- var KtSet = kotlin_kotlin.$_$.v3;
37
- var KtMutableSet = kotlin_kotlin.$_$.u3;
38
- var LinkedHashSet = kotlin_kotlin.$_$.o3;
39
- var HashSet = kotlin_kotlin.$_$.m3;
40
- var Collection = kotlin_kotlin.$_$.k3;
41
- var KtList = kotlin_kotlin.$_$.p3;
42
- var KtMutableList = kotlin_kotlin.$_$.s3;
43
- var ArrayList = kotlin_kotlin.$_$.j3;
44
- var copyToArray = kotlin_kotlin.$_$.k4;
45
- var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.w1;
46
- var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.u1;
47
- var Result = kotlin_kotlin.$_$.wb;
48
- var ensureNotNull = kotlin_kotlin.$_$.nc;
49
- var equals = kotlin_kotlin.$_$.k7;
50
- var getStringHashCode = kotlin_kotlin.$_$.p7;
51
- var isBlank = kotlin_kotlin.$_$.ia;
52
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.d1;
53
- var toList = kotlin_kotlin.$_$.l6;
54
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
55
- var HashSet_init_$Create$ = kotlin_kotlin.$_$.p;
56
- var toHashSet = kotlin_kotlin.$_$.i6;
57
- var toBooleanArray = kotlin_kotlin.$_$.h6;
58
- var withIndex = kotlin_kotlin.$_$.r6;
59
- var to = kotlin_kotlin.$_$.wc;
60
- var toMap = kotlin_kotlin.$_$.m6;
61
- var lazy_0 = kotlin_kotlin.$_$.rc;
62
- var contentEquals = kotlin_kotlin.$_$.h4;
63
- var until = kotlin_kotlin.$_$.c9;
64
- var joinToString = kotlin_kotlin.$_$.y4;
65
- var initMetadataForObject = kotlin_kotlin.$_$.w7;
66
- var Char = kotlin_kotlin.$_$.mb;
67
- var Duration__toIsoString_impl_9h6wsm = kotlin_kotlin.$_$.o1;
68
- var Duration = kotlin_kotlin.$_$.jb;
69
- var Uuid = kotlin_kotlin.$_$.kb;
70
- var hashCode = kotlin_kotlin.$_$.q7;
71
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h1;
72
- var isArray = kotlin_kotlin.$_$.x7;
73
- var arrayIterator = kotlin_kotlin.$_$.c7;
74
- var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.o;
75
- var toString_0 = kotlin_kotlin.$_$.vc;
76
- var KTypeParameter = kotlin_kotlin.$_$.i9;
77
- var contentHashCode = kotlin_kotlin.$_$.j4;
78
- var HashMap_init_$Create$ = kotlin_kotlin.$_$.n;
79
- var fillArrayVal = kotlin_kotlin.$_$.l7;
80
- var booleanArray = kotlin_kotlin.$_$.d7;
81
- var emptyMap = kotlin_kotlin.$_$.o4;
82
- var Companion_getInstance = kotlin_kotlin.$_$.b3;
83
- var isCharArray = kotlin_kotlin.$_$.a8;
84
- var DoubleCompanionObject_instance = kotlin_kotlin.$_$.t2;
85
- var isDoubleArray = kotlin_kotlin.$_$.c8;
86
- var FloatCompanionObject_instance = kotlin_kotlin.$_$.u2;
87
- var isFloatArray = kotlin_kotlin.$_$.d8;
88
- var Companion_getInstance_0 = kotlin_kotlin.$_$.c3;
89
- var isLongArray = kotlin_kotlin.$_$.g8;
90
- var Companion_getInstance_1 = kotlin_kotlin.$_$.g3;
91
- var _ULongArray___get_size__impl__ju6dtr = kotlin_kotlin.$_$.l2;
92
- var ULongArray = kotlin_kotlin.$_$.ec;
93
- var ULongArray__get_impl_pr71q9 = kotlin_kotlin.$_$.k2;
94
- var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.i2;
95
- var IntCompanionObject_instance = kotlin_kotlin.$_$.v2;
96
- var isIntArray = kotlin_kotlin.$_$.e8;
97
- var Companion_getInstance_2 = kotlin_kotlin.$_$.f3;
98
- var _UIntArray___get_size__impl__r6l8ci = kotlin_kotlin.$_$.g2;
99
- var UIntArray = kotlin_kotlin.$_$.cc;
100
- var UIntArray__get_impl_gp5kza = kotlin_kotlin.$_$.f2;
101
- var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.d2;
102
- var ShortCompanionObject_instance = kotlin_kotlin.$_$.w2;
103
- var isShortArray = kotlin_kotlin.$_$.h8;
104
- var Companion_getInstance_3 = kotlin_kotlin.$_$.h3;
105
- var _UShortArray___get_size__impl__jqto1b = kotlin_kotlin.$_$.q2;
106
- var UShortArray = kotlin_kotlin.$_$.gc;
107
- var UShortArray__get_impl_fnbhmx = kotlin_kotlin.$_$.p2;
108
- var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.n2;
109
- var ByteCompanionObject_instance = kotlin_kotlin.$_$.s2;
110
- var isByteArray = kotlin_kotlin.$_$.z7;
111
- var Companion_getInstance_4 = kotlin_kotlin.$_$.e3;
112
- var _UByteArray___get_size__impl__h6pkdv = kotlin_kotlin.$_$.b2;
113
- var UByteArray = kotlin_kotlin.$_$.ac;
114
- var UByteArray__get_impl_t5f3hv = kotlin_kotlin.$_$.a2;
115
- var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.y1;
116
- var BooleanCompanionObject_instance = kotlin_kotlin.$_$.r2;
117
- var isBooleanArray = kotlin_kotlin.$_$.y7;
118
- var Long = kotlin_kotlin.$_$.ub;
119
- var Unit = kotlin_kotlin.$_$.ic;
120
- var trimIndent = kotlin_kotlin.$_$.fb;
121
- var ULong = kotlin_kotlin.$_$.fc;
122
- var UInt = kotlin_kotlin.$_$.dc;
123
- var UShort = kotlin_kotlin.$_$.hc;
124
- var UByte = kotlin_kotlin.$_$.bc;
125
- var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.y2;
126
- var Companion_getInstance_5 = kotlin_kotlin.$_$.z2;
127
- var Companion_getInstance_6 = kotlin_kotlin.$_$.a3;
128
- var mapOf = kotlin_kotlin.$_$.k5;
129
- var get_js = kotlin_kotlin.$_$.i8;
130
- var findAssociatedObject = kotlin_kotlin.$_$.d;
131
- var get_indices = kotlin_kotlin.$_$.w4;
132
- var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.i1;
133
- var Companion_instance = kotlin_kotlin.$_$.d3;
134
- var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t1;
135
- var createFailure = kotlin_kotlin.$_$.mc;
136
- //endregion
137
- //region block: pre-declaration
138
- initMetadataForInterface(SerializationStrategy, 'SerializationStrategy');
139
- initMetadataForInterface(KSerializer, 'KSerializer', VOID, VOID, [SerializationStrategy]);
140
- initMetadataForClass(AbstractPolymorphicSerializer, 'AbstractPolymorphicSerializer', VOID, VOID, [KSerializer]);
141
- initMetadataForClass(PolymorphicSerializer, 'PolymorphicSerializer', VOID, AbstractPolymorphicSerializer);
142
- initMetadataForClass(SealedClassSerializer, 'SealedClassSerializer', VOID, AbstractPolymorphicSerializer);
143
- initMetadataForClass(SerializationException, 'SerializationException', SerializationException_init_$Create$, IllegalArgumentException);
144
- function get_isNullable() {
145
- return false;
146
- }
147
- function get_isInline() {
148
- return false;
149
- }
150
- function get_annotations() {
151
- return emptyList();
152
- }
153
- initMetadataForInterface(SerialDescriptor, 'SerialDescriptor');
154
- initMetadataForClass(ContextDescriptor, 'ContextDescriptor', VOID, VOID, [SerialDescriptor]);
155
- initMetadataForClass(elementDescriptors$1);
156
- initMetadataForClass(elementDescriptors$$inlined$Iterable$1);
157
- initMetadataForClass(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder');
158
- initMetadataForInterface(CachedNames, 'CachedNames');
159
- initMetadataForClass(SerialDescriptorImpl, 'SerialDescriptorImpl', VOID, VOID, [SerialDescriptor, CachedNames]);
160
- initMetadataForClass(SerialKind, 'SerialKind');
161
- initMetadataForObject(ENUM, 'ENUM', VOID, SerialKind);
162
- initMetadataForObject(CONTEXTUAL, 'CONTEXTUAL', VOID, SerialKind);
163
- initMetadataForClass(PolymorphicKind, 'PolymorphicKind', VOID, SerialKind);
164
- initMetadataForObject(OPEN, 'OPEN', VOID, PolymorphicKind);
165
- initMetadataForClass(PrimitiveKind, 'PrimitiveKind', VOID, SerialKind);
166
- initMetadataForObject(BOOLEAN, 'BOOLEAN', VOID, PrimitiveKind);
167
- initMetadataForObject(BYTE, 'BYTE', VOID, PrimitiveKind);
168
- initMetadataForObject(CHAR, 'CHAR', VOID, PrimitiveKind);
169
- initMetadataForObject(SHORT, 'SHORT', VOID, PrimitiveKind);
170
- initMetadataForObject(INT, 'INT', VOID, PrimitiveKind);
171
- initMetadataForObject(LONG, 'LONG', VOID, PrimitiveKind);
172
- initMetadataForObject(FLOAT, 'FLOAT', VOID, PrimitiveKind);
173
- initMetadataForObject(DOUBLE, 'DOUBLE', VOID, PrimitiveKind);
174
- initMetadataForObject(STRING, 'STRING', VOID, PrimitiveKind);
175
- initMetadataForClass(StructureKind, 'StructureKind', VOID, SerialKind);
176
- initMetadataForObject(CLASS, 'CLASS', VOID, StructureKind);
177
- initMetadataForObject(LIST, 'LIST', VOID, StructureKind);
178
- initMetadataForObject(MAP, 'MAP', VOID, StructureKind);
179
- initMetadataForObject(OBJECT, 'OBJECT', VOID, StructureKind);
180
- function encodeNotNullMark() {
181
- }
182
- function beginCollection(descriptor, collectionSize) {
183
- return this.ql(descriptor);
184
- }
185
- function encodeSerializableValue(serializer, value) {
186
- serializer.pj(this, value);
187
- }
188
- function encodeNullableSerializableValue(serializer, value) {
189
- var isNullabilitySupported = serializer.oj().lk();
190
- if (isNullabilitySupported) {
191
- return this.qm(isInterface(serializer, SerializationStrategy) ? serializer : THROW_CCE(), value);
192
- }
193
- if (value == null) {
194
- this.ul();
195
- } else {
196
- this.um();
197
- this.qm(serializer, value);
198
- }
199
- }
200
- initMetadataForInterface(Encoder, 'Encoder');
201
- function shouldEncodeElementDefault(descriptor, index) {
202
- return true;
203
- }
204
- initMetadataForInterface(CompositeEncoder, 'CompositeEncoder');
205
- initMetadataForClass(AbstractEncoder, 'AbstractEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
206
- initMetadataForObject(NothingSerializer_0, 'NothingSerializer', VOID, VOID, [KSerializer]);
207
- initMetadataForObject(DurationSerializer, 'DurationSerializer', VOID, VOID, [KSerializer]);
208
- initMetadataForObject(UuidSerializer, 'UuidSerializer', VOID, VOID, [KSerializer]);
209
- initMetadataForClass(ListLikeDescriptor, 'ListLikeDescriptor', VOID, VOID, [SerialDescriptor]);
210
- initMetadataForClass(ArrayListClassDesc, 'ArrayListClassDesc', VOID, ListLikeDescriptor);
211
- initMetadataForClass(HashSetClassDesc, 'HashSetClassDesc', VOID, ListLikeDescriptor);
212
- initMetadataForClass(LinkedHashSetClassDesc, 'LinkedHashSetClassDesc', VOID, ListLikeDescriptor);
213
- initMetadataForClass(MapLikeDescriptor, 'MapLikeDescriptor', VOID, VOID, [SerialDescriptor]);
214
- initMetadataForClass(HashMapClassDesc, 'HashMapClassDesc', VOID, MapLikeDescriptor);
215
- initMetadataForClass(LinkedHashMapClassDesc, 'LinkedHashMapClassDesc', VOID, MapLikeDescriptor);
216
- initMetadataForClass(ArrayClassDesc, 'ArrayClassDesc', VOID, ListLikeDescriptor);
217
- initMetadataForClass(PrimitiveArrayDescriptor, 'PrimitiveArrayDescriptor', VOID, ListLikeDescriptor);
218
- initMetadataForClass(AbstractCollectionSerializer, 'AbstractCollectionSerializer', VOID, VOID, [KSerializer]);
219
- initMetadataForClass(CollectionLikeSerializer, 'CollectionLikeSerializer', VOID, AbstractCollectionSerializer);
220
- initMetadataForClass(CollectionSerializer, 'CollectionSerializer', VOID, CollectionLikeSerializer);
221
- initMetadataForClass(ArrayListSerializer, 'ArrayListSerializer', VOID, CollectionSerializer);
222
- initMetadataForClass(HashSetSerializer, 'HashSetSerializer', VOID, CollectionSerializer);
223
- initMetadataForClass(LinkedHashSetSerializer, 'LinkedHashSetSerializer', VOID, CollectionSerializer);
224
- initMetadataForClass(MapLikeSerializer, 'MapLikeSerializer', VOID, AbstractCollectionSerializer);
225
- initMetadataForClass(HashMapSerializer, 'HashMapSerializer', VOID, MapLikeSerializer);
226
- initMetadataForClass(LinkedHashMapSerializer, 'LinkedHashMapSerializer', VOID, MapLikeSerializer);
227
- initMetadataForClass(ReferenceArraySerializer, 'ReferenceArraySerializer', VOID, CollectionLikeSerializer);
228
- initMetadataForClass(PrimitiveArraySerializer, 'PrimitiveArraySerializer', VOID, CollectionLikeSerializer);
229
- initMetadataForClass(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', VOID, VOID, [SerialDescriptor, CachedNames]);
230
- initMetadataForClass(InlineClassDescriptor, 'InlineClassDescriptor', VOID, PluginGeneratedSerialDescriptor);
231
- function typeParametersSerializers() {
232
- return get_EMPTY_SERIALIZER_ARRAY();
233
- }
234
- initMetadataForInterface(GeneratedSerializer, 'GeneratedSerializer', VOID, VOID, [KSerializer]);
235
- initMetadataForClass(InlinePrimitiveDescriptor$1, VOID, VOID, VOID, [GeneratedSerializer]);
236
- initMetadataForObject(NoOpEncoder, 'NoOpEncoder', VOID, AbstractEncoder);
237
- initMetadataForObject(NothingSerialDescriptor, 'NothingSerialDescriptor', VOID, VOID, [SerialDescriptor]);
238
- initMetadataForClass(NullableSerializer, 'NullableSerializer', VOID, VOID, [KSerializer]);
239
- initMetadataForClass(SerialDescriptorForNullable, 'SerialDescriptorForNullable', VOID, VOID, [SerialDescriptor, CachedNames]);
240
- initMetadataForClass(ObjectSerializer, 'ObjectSerializer', VOID, VOID, [KSerializer]);
241
- initMetadataForInterface(SerializerFactory, 'SerializerFactory');
242
- initMetadataForObject(CharArraySerializer_0, 'CharArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
243
- initMetadataForObject(DoubleArraySerializer_0, 'DoubleArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
244
- initMetadataForObject(FloatArraySerializer_0, 'FloatArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
245
- initMetadataForObject(LongArraySerializer_0, 'LongArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
246
- initMetadataForObject(ULongArraySerializer_0, 'ULongArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
247
- initMetadataForObject(IntArraySerializer_0, 'IntArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
248
- initMetadataForObject(UIntArraySerializer_0, 'UIntArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
249
- initMetadataForObject(ShortArraySerializer_0, 'ShortArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
250
- initMetadataForObject(UShortArraySerializer_0, 'UShortArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
251
- initMetadataForObject(ByteArraySerializer_0, 'ByteArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
252
- initMetadataForObject(UByteArraySerializer_0, 'UByteArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
253
- initMetadataForObject(BooleanArraySerializer_0, 'BooleanArraySerializer', VOID, PrimitiveArraySerializer, [KSerializer, PrimitiveArraySerializer]);
254
- initMetadataForObject(StringSerializer, 'StringSerializer', VOID, VOID, [KSerializer]);
255
- initMetadataForObject(CharSerializer, 'CharSerializer', VOID, VOID, [KSerializer]);
256
- initMetadataForObject(DoubleSerializer, 'DoubleSerializer', VOID, VOID, [KSerializer]);
257
- initMetadataForObject(FloatSerializer, 'FloatSerializer', VOID, VOID, [KSerializer]);
258
- initMetadataForObject(LongSerializer, 'LongSerializer', VOID, VOID, [KSerializer]);
259
- initMetadataForObject(IntSerializer, 'IntSerializer', VOID, VOID, [KSerializer]);
260
- initMetadataForObject(ShortSerializer, 'ShortSerializer', VOID, VOID, [KSerializer]);
261
- initMetadataForObject(ByteSerializer, 'ByteSerializer', VOID, VOID, [KSerializer]);
262
- initMetadataForObject(BooleanSerializer, 'BooleanSerializer', VOID, VOID, [KSerializer]);
263
- initMetadataForObject(UnitSerializer, 'UnitSerializer', VOID, VOID, [KSerializer]);
264
- initMetadataForClass(PrimitiveSerialDescriptor_0, 'PrimitiveSerialDescriptor', VOID, VOID, [SerialDescriptor]);
265
- initMetadataForClass(KeyValueSerializer, 'KeyValueSerializer', VOID, VOID, [KSerializer]);
266
- initMetadataForClass(MapEntrySerializer_0, 'MapEntrySerializer', VOID, KeyValueSerializer);
267
- initMetadataForClass(PairSerializer_0, 'PairSerializer', VOID, KeyValueSerializer);
268
- initMetadataForClass(TripleSerializer_0, 'TripleSerializer', VOID, VOID, [KSerializer]);
269
- initMetadataForObject(ULongSerializer, 'ULongSerializer', VOID, VOID, [KSerializer]);
270
- initMetadataForObject(UIntSerializer, 'UIntSerializer', VOID, VOID, [KSerializer]);
271
- initMetadataForObject(UShortSerializer, 'UShortSerializer', VOID, VOID, [KSerializer]);
272
- initMetadataForObject(UByteSerializer, 'UByteSerializer', VOID, VOID, [KSerializer]);
273
- initMetadataForClass(SerializersModule, 'SerializersModule');
274
- initMetadataForClass(SerialModuleImpl, 'SerialModuleImpl', VOID, SerializersModule);
275
- initMetadataForClass(SerializableWith, 'SerializableWith', VOID, VOID, VOID, VOID, 0);
276
- initMetadataForClass(createCache$1);
277
- initMetadataForClass(createParametrizedCache$1);
278
- //endregion
279
- function KSerializer() {
280
- }
281
- function SerializationStrategy() {
282
- }
283
- function PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0) {
284
- return function ($this$buildSerialDescriptor) {
285
- $this$buildSerialDescriptor.yj('type', serializer_0(StringCompanionObject_instance).oj());
286
- $this$buildSerialDescriptor.yj('value', buildSerialDescriptor('kotlinx.serialization.Polymorphic<' + this$0.zj_1.aa() + '>', CONTEXTUAL_getInstance(), []));
287
- $this$buildSerialDescriptor.sj_1 = this$0.ak_1;
288
- return Unit_instance;
289
- };
290
- }
291
- function PolymorphicSerializer$descriptor$delegate$lambda(this$0) {
292
- return function () {
293
- var tmp = OPEN_getInstance();
294
- return withContext(buildSerialDescriptor('kotlinx.serialization.Polymorphic', tmp, [], PolymorphicSerializer$descriptor$delegate$lambda$lambda(this$0)), this$0.zj_1);
295
- };
296
- }
297
- function PolymorphicSerializer(baseClass) {
298
- AbstractPolymorphicSerializer.call(this);
299
- this.zj_1 = baseClass;
300
- this.ak_1 = emptyList();
301
- var tmp = this;
302
- var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
303
- tmp.bk_1 = lazy(tmp_0, PolymorphicSerializer$descriptor$delegate$lambda(this));
304
- }
305
- protoOf(PolymorphicSerializer).ck = function () {
306
- return this.zj_1;
307
- };
308
- protoOf(PolymorphicSerializer).oj = function () {
309
- var tmp0 = this.bk_1;
310
- // Inline function 'kotlin.getValue' call
311
- descriptor$factory();
312
- return tmp0.z();
313
- };
314
- protoOf(PolymorphicSerializer).toString = function () {
315
- return 'kotlinx.serialization.PolymorphicSerializer(baseClass: ' + toString(this.zj_1) + ')';
316
- };
317
- function findPolymorphicSerializer(_this__u8e3s4, encoder, value) {
318
- var tmp0_elvis_lhs = _this__u8e3s4.ek(encoder, value);
319
- var tmp;
320
- if (tmp0_elvis_lhs == null) {
321
- throwSubtypeNotRegistered(getKClassFromExpression(value), _this__u8e3s4.ck());
322
- } else {
323
- tmp = tmp0_elvis_lhs;
324
- }
325
- return tmp;
326
- }
327
- function descriptor$factory() {
328
- return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) {
329
- return receiver.oj();
330
- }, null);
331
- }
332
- function SealedClassSerializer() {
333
- }
334
- protoOf(SealedClassSerializer).oj = function () {
335
- var tmp0 = this.fk_1;
336
- // Inline function 'kotlin.getValue' call
337
- descriptor$factory_0();
338
- return tmp0.z();
339
- };
340
- function descriptor$factory_0() {
341
- return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) {
342
- return receiver.oj();
343
- }, null);
344
- }
345
- function SerializationException_init_$Init$($this) {
346
- IllegalArgumentException_init_$Init$($this);
347
- SerializationException.call($this);
348
- return $this;
349
- }
350
- function SerializationException_init_$Create$() {
351
- var tmp = SerializationException_init_$Init$(objectCreate(protoOf(SerializationException)));
352
- captureStack(tmp, SerializationException_init_$Create$);
353
- return tmp;
354
- }
355
- function SerializationException_init_$Init$_0(message, $this) {
356
- IllegalArgumentException_init_$Init$_0(message, $this);
357
- SerializationException.call($this);
358
- return $this;
359
- }
360
- function SerializationException_init_$Create$_0(message) {
361
- var tmp = SerializationException_init_$Init$_0(message, objectCreate(protoOf(SerializationException)));
362
- captureStack(tmp, SerializationException_init_$Create$_0);
363
- return tmp;
364
- }
365
- function SerializationException() {
366
- captureStack(this, SerializationException);
367
- }
368
- function serializerOrNull(_this__u8e3s4) {
369
- var tmp0_elvis_lhs = compiledSerializerImpl(_this__u8e3s4);
370
- return tmp0_elvis_lhs == null ? builtinSerializerOrNull(_this__u8e3s4) : tmp0_elvis_lhs;
371
- }
372
- function serializersForParameters(_this__u8e3s4, typeArguments, failOnMissingTypeArgSerializer) {
373
- var tmp;
374
- if (failOnMissingTypeArgSerializer) {
375
- // Inline function 'kotlin.collections.map' call
376
- // Inline function 'kotlin.collections.mapTo' call
377
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10));
378
- var _iterator__ex2g4s = typeArguments.m();
379
- while (_iterator__ex2g4s.n()) {
380
- var item = _iterator__ex2g4s.o();
381
- // Inline function 'kotlinx.serialization.serializersForParameters.<anonymous>' call
382
- var tmp$ret$0 = serializer(_this__u8e3s4, item);
383
- destination.e(tmp$ret$0);
384
- }
385
- tmp = destination;
386
- } else {
387
- // Inline function 'kotlin.collections.map' call
388
- // Inline function 'kotlin.collections.mapTo' call
389
- var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(typeArguments, 10));
390
- var _iterator__ex2g4s_0 = typeArguments.m();
391
- while (_iterator__ex2g4s_0.n()) {
392
- var item_0 = _iterator__ex2g4s_0.o();
393
- // Inline function 'kotlinx.serialization.serializersForParameters.<anonymous>' call
394
- var tmp0_elvis_lhs = serializerOrNull_0(_this__u8e3s4, item_0);
395
- var tmp_0;
396
- if (tmp0_elvis_lhs == null) {
397
- return null;
398
- } else {
399
- tmp_0 = tmp0_elvis_lhs;
400
- }
401
- var tmp$ret$3 = tmp_0;
402
- destination_0.e(tmp$ret$3);
403
- }
404
- tmp = destination_0;
405
- }
406
- var serializers = tmp;
407
- return serializers;
408
- }
409
- function parametrizedSerializerOrNull(_this__u8e3s4, serializers, elementClassifierIfArray) {
410
- var tmp0_elvis_lhs = builtinParametrizedSerializer(_this__u8e3s4, serializers, elementClassifierIfArray);
411
- return tmp0_elvis_lhs == null ? compiledParametrizedSerializer(_this__u8e3s4, serializers) : tmp0_elvis_lhs;
412
- }
413
- function serializer(_this__u8e3s4, type) {
414
- var tmp0_elvis_lhs = serializerByKTypeImpl(_this__u8e3s4, type, true);
415
- var tmp;
416
- if (tmp0_elvis_lhs == null) {
417
- platformSpecificSerializerNotRegistered(kclass(type));
418
- } else {
419
- tmp = tmp0_elvis_lhs;
420
- }
421
- return tmp;
422
- }
423
- function serializerOrNull_0(_this__u8e3s4, type) {
424
- return serializerByKTypeImpl(_this__u8e3s4, type, false);
425
- }
426
- function builtinParametrizedSerializer(_this__u8e3s4, serializers, elementClassifierIfArray) {
427
- var tmp;
428
- if (_this__u8e3s4.equals(getKClass(Collection)) || _this__u8e3s4.equals(getKClass(KtList)) || (_this__u8e3s4.equals(getKClass(KtMutableList)) || _this__u8e3s4.equals(getKClass(ArrayList)))) {
429
- tmp = new ArrayListSerializer(serializers.q(0));
430
- } else if (_this__u8e3s4.equals(getKClass(HashSet))) {
431
- tmp = new HashSetSerializer(serializers.q(0));
432
- } else if (_this__u8e3s4.equals(getKClass(KtSet)) || (_this__u8e3s4.equals(getKClass(KtMutableSet)) || _this__u8e3s4.equals(getKClass(LinkedHashSet)))) {
433
- tmp = new LinkedHashSetSerializer(serializers.q(0));
434
- } else if (_this__u8e3s4.equals(getKClass(HashMap))) {
435
- tmp = new HashMapSerializer(serializers.q(0), serializers.q(1));
436
- } else if (_this__u8e3s4.equals(getKClass(KtMap)) || (_this__u8e3s4.equals(getKClass(KtMutableMap)) || _this__u8e3s4.equals(getKClass(LinkedHashMap)))) {
437
- tmp = new LinkedHashMapSerializer(serializers.q(0), serializers.q(1));
438
- } else if (_this__u8e3s4.equals(getKClass(Entry))) {
439
- tmp = MapEntrySerializer(serializers.q(0), serializers.q(1));
440
- } else if (_this__u8e3s4.equals(getKClass(Pair))) {
441
- tmp = PairSerializer(serializers.q(0), serializers.q(1));
442
- } else if (_this__u8e3s4.equals(getKClass(Triple))) {
443
- tmp = TripleSerializer(serializers.q(0), serializers.q(1), serializers.q(2));
444
- } else {
445
- var tmp_0;
446
- if (isReferenceArray(_this__u8e3s4)) {
447
- var tmp_1 = elementClassifierIfArray();
448
- tmp_0 = ArraySerializer((!(tmp_1 == null) ? isInterface(tmp_1, KClass) : false) ? tmp_1 : THROW_CCE(), serializers.q(0));
449
- } else {
450
- tmp_0 = null;
451
- }
452
- tmp = tmp_0;
453
- }
454
- return tmp;
455
- }
456
- function compiledParametrizedSerializer(_this__u8e3s4, serializers) {
457
- // Inline function 'kotlin.collections.toTypedArray' call
458
- var tmp$ret$0 = copyToArray(serializers);
459
- return constructSerializerForGivenTypeArgs(_this__u8e3s4, tmp$ret$0.slice());
460
- }
461
- function serializerByKTypeImpl(_this__u8e3s4, type, failOnMissingTypeArgSerializer) {
462
- var rootClass = kclass(type);
463
- var isNullable = type.qa();
464
- // Inline function 'kotlin.collections.map' call
465
- var this_0 = type.pa();
466
- // Inline function 'kotlin.collections.mapTo' call
467
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
468
- var _iterator__ex2g4s = this_0.m();
469
- while (_iterator__ex2g4s.n()) {
470
- var item = _iterator__ex2g4s.o();
471
- // Inline function 'kotlinx.serialization.serializerByKTypeImpl.stub_for_inlining' call
472
- var tmp$ret$0 = typeOrThrow(item);
473
- destination.e(tmp$ret$0);
474
- }
475
- var typeArguments = destination;
476
- var tmp;
477
- if (typeArguments.j()) {
478
- var tmp_0;
479
- if (isInterface_0(rootClass) && !(_this__u8e3s4.hk(rootClass) == null)) {
480
- tmp_0 = null;
481
- } else {
482
- tmp_0 = findCachedSerializer(rootClass, isNullable);
483
- }
484
- tmp = tmp_0;
485
- } else {
486
- var tmp_1;
487
- if (_this__u8e3s4.gk()) {
488
- tmp_1 = null;
489
- } else {
490
- // Inline function 'kotlin.Result.getOrNull' call
491
- var this_1 = findParametrizedCachedSerializer(rootClass, typeArguments, isNullable);
492
- var tmp_2;
493
- if (_Result___get_isFailure__impl__jpiriv(this_1)) {
494
- tmp_2 = null;
495
- } else {
496
- var tmp_3 = _Result___get_value__impl__bjfvqg(this_1);
497
- tmp_2 = (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
498
- }
499
- tmp_1 = tmp_2;
500
- }
501
- tmp = tmp_1;
502
- }
503
- var cachedSerializer = tmp;
504
- if (!(cachedSerializer == null))
505
- return cachedSerializer;
506
- var tmp_4;
507
- if (typeArguments.j()) {
508
- var tmp0_elvis_lhs = serializerOrNull(rootClass);
509
- var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? _this__u8e3s4.hk(rootClass) : tmp0_elvis_lhs;
510
- var tmp_5;
511
- if (tmp1_elvis_lhs == null) {
512
- // Inline function 'kotlinx.serialization.polymorphicIfInterface' call
513
- tmp_5 = isInterface_0(rootClass) ? new PolymorphicSerializer(rootClass) : null;
514
- } else {
515
- tmp_5 = tmp1_elvis_lhs;
516
- }
517
- tmp_4 = tmp_5;
518
- } else {
519
- var tmp2_elvis_lhs = serializersForParameters(_this__u8e3s4, typeArguments, failOnMissingTypeArgSerializer);
520
- var tmp_6;
521
- if (tmp2_elvis_lhs == null) {
522
- return null;
523
- } else {
524
- tmp_6 = tmp2_elvis_lhs;
525
- }
526
- var serializers = tmp_6;
527
- var tmp3_elvis_lhs = parametrizedSerializerOrNull(rootClass, serializers, serializerByKTypeImpl$lambda(typeArguments));
528
- var tmp4_elvis_lhs = tmp3_elvis_lhs == null ? _this__u8e3s4.ik(rootClass, serializers) : tmp3_elvis_lhs;
529
- var tmp_7;
530
- if (tmp4_elvis_lhs == null) {
531
- // Inline function 'kotlinx.serialization.polymorphicIfInterface' call
532
- tmp_7 = isInterface_0(rootClass) ? new PolymorphicSerializer(rootClass) : null;
533
- } else {
534
- tmp_7 = tmp4_elvis_lhs;
535
- }
536
- tmp_4 = tmp_7;
537
- }
538
- var contextualSerializer = tmp_4;
539
- var tmp_8;
540
- if (contextualSerializer == null) {
541
- tmp_8 = null;
542
- } else {
543
- // Inline function 'kotlinx.serialization.internal.cast' call
544
- tmp_8 = isInterface(contextualSerializer, KSerializer) ? contextualSerializer : THROW_CCE();
545
- }
546
- var tmp6_safe_receiver = tmp_8;
547
- return tmp6_safe_receiver == null ? null : nullable(tmp6_safe_receiver, isNullable);
548
- }
549
- function nullable(_this__u8e3s4, shouldBeNullable) {
550
- if (shouldBeNullable)
551
- return get_nullable(_this__u8e3s4);
552
- return isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE();
553
- }
554
- function serializerByKTypeImpl$lambda($typeArguments) {
555
- return function () {
556
- return $typeArguments.q(0).oa();
557
- };
558
- }
559
- function get_SERIALIZERS_CACHE() {
560
- _init_properties_SerializersCache_kt__hgwi2p();
561
- return SERIALIZERS_CACHE;
562
- }
563
- var SERIALIZERS_CACHE;
564
- function get_SERIALIZERS_CACHE_NULLABLE() {
565
- _init_properties_SerializersCache_kt__hgwi2p();
566
- return SERIALIZERS_CACHE_NULLABLE;
567
- }
568
- var SERIALIZERS_CACHE_NULLABLE;
569
- function get_PARAMETRIZED_SERIALIZERS_CACHE() {
570
- _init_properties_SerializersCache_kt__hgwi2p();
571
- return PARAMETRIZED_SERIALIZERS_CACHE;
572
- }
573
- var PARAMETRIZED_SERIALIZERS_CACHE;
574
- function get_PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE() {
575
- _init_properties_SerializersCache_kt__hgwi2p();
576
- return PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE;
577
- }
578
- var PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE;
579
- function findCachedSerializer(clazz, isNullable) {
580
- _init_properties_SerializersCache_kt__hgwi2p();
581
- var tmp;
582
- if (!isNullable) {
583
- var tmp0_safe_receiver = get_SERIALIZERS_CACHE().jk(clazz);
584
- var tmp_0;
585
- if (tmp0_safe_receiver == null) {
586
- tmp_0 = null;
587
- } else {
588
- // Inline function 'kotlinx.serialization.internal.cast' call
589
- tmp_0 = isInterface(tmp0_safe_receiver, KSerializer) ? tmp0_safe_receiver : THROW_CCE();
590
- }
591
- tmp = tmp_0;
592
- } else {
593
- tmp = get_SERIALIZERS_CACHE_NULLABLE().jk(clazz);
594
- }
595
- return tmp;
596
- }
597
- function findParametrizedCachedSerializer(clazz, types, isNullable) {
598
- _init_properties_SerializersCache_kt__hgwi2p();
599
- var tmp;
600
- if (!isNullable) {
601
- var tmp_0 = get_PARAMETRIZED_SERIALIZERS_CACHE().kk(clazz, types);
602
- tmp = new Result(tmp_0) instanceof Result ? tmp_0 : THROW_CCE();
603
- } else {
604
- tmp = get_PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE().kk(clazz, types);
605
- }
606
- return tmp;
607
- }
608
- function SERIALIZERS_CACHE$lambda(it) {
609
- _init_properties_SerializersCache_kt__hgwi2p();
610
- var tmp0_elvis_lhs = serializerOrNull(it);
611
- var tmp;
612
- if (tmp0_elvis_lhs == null) {
613
- // Inline function 'kotlinx.serialization.polymorphicIfInterface' call
614
- tmp = isInterface_0(it) ? new PolymorphicSerializer(it) : null;
615
- } else {
616
- tmp = tmp0_elvis_lhs;
617
- }
618
- return tmp;
619
- }
620
- function SERIALIZERS_CACHE_NULLABLE$lambda(it) {
621
- _init_properties_SerializersCache_kt__hgwi2p();
622
- var tmp0_elvis_lhs = serializerOrNull(it);
623
- var tmp;
624
- if (tmp0_elvis_lhs == null) {
625
- // Inline function 'kotlinx.serialization.polymorphicIfInterface' call
626
- tmp = isInterface_0(it) ? new PolymorphicSerializer(it) : null;
627
- } else {
628
- tmp = tmp0_elvis_lhs;
629
- }
630
- var tmp1_safe_receiver = tmp;
631
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : get_nullable(tmp1_safe_receiver);
632
- var tmp_0;
633
- if (tmp2_safe_receiver == null) {
634
- tmp_0 = null;
635
- } else {
636
- // Inline function 'kotlinx.serialization.internal.cast' call
637
- tmp_0 = isInterface(tmp2_safe_receiver, KSerializer) ? tmp2_safe_receiver : THROW_CCE();
638
- }
639
- return tmp_0;
640
- }
641
- function PARAMETRIZED_SERIALIZERS_CACHE$lambda(clazz, types) {
642
- _init_properties_SerializersCache_kt__hgwi2p();
643
- var serializers = ensureNotNull(serializersForParameters(EmptySerializersModule_0(), types, true));
644
- return parametrizedSerializerOrNull(clazz, serializers, PARAMETRIZED_SERIALIZERS_CACHE$lambda$lambda(types));
645
- }
646
- function PARAMETRIZED_SERIALIZERS_CACHE$lambda$lambda($types) {
647
- return function () {
648
- return $types.q(0).oa();
649
- };
650
- }
651
- function PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE$lambda(clazz, types) {
652
- _init_properties_SerializersCache_kt__hgwi2p();
653
- var serializers = ensureNotNull(serializersForParameters(EmptySerializersModule_0(), types, true));
654
- var tmp0_safe_receiver = parametrizedSerializerOrNull(clazz, serializers, PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE$lambda$lambda(types));
655
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_nullable(tmp0_safe_receiver);
656
- var tmp;
657
- if (tmp1_safe_receiver == null) {
658
- tmp = null;
659
- } else {
660
- // Inline function 'kotlinx.serialization.internal.cast' call
661
- tmp = isInterface(tmp1_safe_receiver, KSerializer) ? tmp1_safe_receiver : THROW_CCE();
662
- }
663
- return tmp;
664
- }
665
- function PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE$lambda$lambda($types) {
666
- return function () {
667
- return $types.q(0).oa();
668
- };
669
- }
670
- var properties_initialized_SerializersCache_kt_q8kf25;
671
- function _init_properties_SerializersCache_kt__hgwi2p() {
672
- if (!properties_initialized_SerializersCache_kt_q8kf25) {
673
- properties_initialized_SerializersCache_kt_q8kf25 = true;
674
- SERIALIZERS_CACHE = createCache(SERIALIZERS_CACHE$lambda);
675
- SERIALIZERS_CACHE_NULLABLE = createCache(SERIALIZERS_CACHE_NULLABLE$lambda);
676
- PARAMETRIZED_SERIALIZERS_CACHE = createParametrizedCache(PARAMETRIZED_SERIALIZERS_CACHE$lambda);
677
- PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE = createParametrizedCache(PARAMETRIZED_SERIALIZERS_CACHE_NULLABLE$lambda);
678
- }
679
- }
680
- function get_nullable(_this__u8e3s4) {
681
- var tmp;
682
- if (_this__u8e3s4.oj().lk()) {
683
- tmp = isInterface(_this__u8e3s4, KSerializer) ? _this__u8e3s4 : THROW_CCE();
684
- } else {
685
- tmp = new NullableSerializer(_this__u8e3s4);
686
- }
687
- return tmp;
688
- }
689
- function serializer_0(_this__u8e3s4) {
690
- return StringSerializer_getInstance();
691
- }
692
- function serializer_1(_this__u8e3s4) {
693
- return CharSerializer_getInstance();
694
- }
695
- function CharArraySerializer() {
696
- return CharArraySerializer_getInstance();
697
- }
698
- function serializer_2(_this__u8e3s4) {
699
- return DoubleSerializer_getInstance();
700
- }
701
- function DoubleArraySerializer() {
702
- return DoubleArraySerializer_getInstance();
703
- }
704
- function serializer_3(_this__u8e3s4) {
705
- return FloatSerializer_getInstance();
706
- }
707
- function FloatArraySerializer() {
708
- return FloatArraySerializer_getInstance();
709
- }
710
- function serializer_4(_this__u8e3s4) {
711
- return LongSerializer_getInstance();
712
- }
713
- function LongArraySerializer() {
714
- return LongArraySerializer_getInstance();
715
- }
716
- function serializer_5(_this__u8e3s4) {
717
- return ULongSerializer_getInstance();
718
- }
719
- function ULongArraySerializer() {
720
- return ULongArraySerializer_getInstance();
721
- }
722
- function serializer_6(_this__u8e3s4) {
723
- return IntSerializer_getInstance();
724
- }
725
- function IntArraySerializer() {
726
- return IntArraySerializer_getInstance();
727
- }
728
- function serializer_7(_this__u8e3s4) {
729
- return UIntSerializer_getInstance();
730
- }
731
- function UIntArraySerializer() {
732
- return UIntArraySerializer_getInstance();
733
- }
734
- function serializer_8(_this__u8e3s4) {
735
- return ShortSerializer_getInstance();
736
- }
737
- function ShortArraySerializer() {
738
- return ShortArraySerializer_getInstance();
739
- }
740
- function serializer_9(_this__u8e3s4) {
741
- return UShortSerializer_getInstance();
742
- }
743
- function UShortArraySerializer() {
744
- return UShortArraySerializer_getInstance();
745
- }
746
- function serializer_10(_this__u8e3s4) {
747
- return ByteSerializer_getInstance();
748
- }
749
- function ByteArraySerializer() {
750
- return ByteArraySerializer_getInstance();
751
- }
752
- function serializer_11(_this__u8e3s4) {
753
- return UByteSerializer_getInstance();
754
- }
755
- function UByteArraySerializer() {
756
- return UByteArraySerializer_getInstance();
757
- }
758
- function serializer_12(_this__u8e3s4) {
759
- return BooleanSerializer_getInstance();
760
- }
761
- function BooleanArraySerializer() {
762
- return BooleanArraySerializer_getInstance();
763
- }
764
- function serializer_13(_this__u8e3s4) {
765
- return UnitSerializer_getInstance();
766
- }
767
- function NothingSerializer() {
768
- return NothingSerializer_getInstance();
769
- }
770
- function serializer_14(_this__u8e3s4) {
771
- return DurationSerializer_getInstance();
772
- }
773
- function serializer_15(_this__u8e3s4) {
774
- return UuidSerializer_getInstance();
775
- }
776
- function MapEntrySerializer(keySerializer, valueSerializer) {
777
- return new MapEntrySerializer_0(keySerializer, valueSerializer);
778
- }
779
- function PairSerializer(keySerializer, valueSerializer) {
780
- return new PairSerializer_0(keySerializer, valueSerializer);
781
- }
782
- function TripleSerializer(aSerializer, bSerializer, cSerializer) {
783
- return new TripleSerializer_0(aSerializer, bSerializer, cSerializer);
784
- }
785
- function ArraySerializer(kClass, elementSerializer) {
786
- return new ReferenceArraySerializer(kClass, elementSerializer);
787
- }
788
- function withContext(_this__u8e3s4, context) {
789
- return new ContextDescriptor(_this__u8e3s4, context);
790
- }
791
- function ContextDescriptor(original, kClass) {
792
- this.mk_1 = original;
793
- this.nk_1 = kClass;
794
- this.ok_1 = this.mk_1.pk() + '<' + this.nk_1.aa() + '>';
795
- }
796
- protoOf(ContextDescriptor).pk = function () {
797
- return this.ok_1;
798
- };
799
- protoOf(ContextDescriptor).equals = function (other) {
800
- var tmp0_elvis_lhs = other instanceof ContextDescriptor ? other : null;
801
- var tmp;
802
- if (tmp0_elvis_lhs == null) {
803
- return false;
804
- } else {
805
- tmp = tmp0_elvis_lhs;
806
- }
807
- var another = tmp;
808
- return equals(this.mk_1, another.mk_1) && another.nk_1.equals(this.nk_1);
809
- };
810
- protoOf(ContextDescriptor).hashCode = function () {
811
- var result = this.nk_1.hashCode();
812
- result = imul(31, result) + getStringHashCode(this.ok_1) | 0;
813
- return result;
814
- };
815
- protoOf(ContextDescriptor).toString = function () {
816
- return 'ContextDescriptor(kClass: ' + toString(this.nk_1) + ', original: ' + toString(this.mk_1) + ')';
817
- };
818
- protoOf(ContextDescriptor).qk = function () {
819
- return this.mk_1.qk();
820
- };
821
- protoOf(ContextDescriptor).lk = function () {
822
- return this.mk_1.lk();
823
- };
824
- protoOf(ContextDescriptor).rk = function () {
825
- return this.mk_1.rk();
826
- };
827
- protoOf(ContextDescriptor).sk = function () {
828
- return this.mk_1.sk();
829
- };
830
- protoOf(ContextDescriptor).tk = function () {
831
- return this.mk_1.tk();
832
- };
833
- protoOf(ContextDescriptor).uk = function (index) {
834
- return this.mk_1.uk(index);
835
- };
836
- protoOf(ContextDescriptor).vk = function (index) {
837
- return this.mk_1.vk(index);
838
- };
839
- function getContextualDescriptor(_this__u8e3s4, descriptor) {
840
- var tmp0_safe_receiver = get_capturedKClass(descriptor);
841
- var tmp;
842
- if (tmp0_safe_receiver == null) {
843
- tmp = null;
844
- } else {
845
- // Inline function 'kotlin.let' call
846
- // Inline function 'kotlinx.serialization.descriptors.getContextualDescriptor.<anonymous>' call
847
- var tmp0_safe_receiver_0 = _this__u8e3s4.hk(tmp0_safe_receiver);
848
- tmp = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.oj();
849
- }
850
- return tmp;
851
- }
852
- function get_capturedKClass(_this__u8e3s4) {
853
- var tmp;
854
- if (_this__u8e3s4 instanceof ContextDescriptor) {
855
- tmp = _this__u8e3s4.nk_1;
856
- } else {
857
- if (_this__u8e3s4 instanceof SerialDescriptorForNullable) {
858
- tmp = get_capturedKClass(_this__u8e3s4.wk_1);
859
- } else {
860
- tmp = null;
861
- }
862
- }
863
- return tmp;
864
- }
865
- function SerialDescriptor() {
866
- }
867
- function get_elementDescriptors(_this__u8e3s4) {
868
- // Inline function 'kotlin.collections.Iterable' call
869
- return new elementDescriptors$$inlined$Iterable$1(_this__u8e3s4);
870
- }
871
- function elementDescriptors$1($this_elementDescriptors) {
872
- this.al_1 = $this_elementDescriptors;
873
- this.zk_1 = $this_elementDescriptors.sk();
874
- }
875
- protoOf(elementDescriptors$1).n = function () {
876
- return this.zk_1 > 0;
877
- };
878
- protoOf(elementDescriptors$1).o = function () {
879
- var tmp = this.al_1.sk();
880
- var _unary__edvuaz = this.zk_1;
881
- this.zk_1 = _unary__edvuaz - 1 | 0;
882
- return this.al_1.vk(tmp - _unary__edvuaz | 0);
883
- };
884
- function elementDescriptors$$inlined$Iterable$1($this_elementDescriptors) {
885
- this.bl_1 = $this_elementDescriptors;
886
- }
887
- protoOf(elementDescriptors$$inlined$Iterable$1).m = function () {
888
- // Inline function 'kotlinx.serialization.descriptors.<get-elementDescriptors>.<anonymous>' call
889
- return new elementDescriptors$1(this.bl_1);
890
- };
891
- function buildSerialDescriptor(serialName, kind, typeParameters, builder) {
892
- var tmp;
893
- if (builder === VOID) {
894
- tmp = buildSerialDescriptor$lambda;
895
- } else {
896
- tmp = builder;
897
- }
898
- builder = tmp;
899
- // Inline function 'kotlin.text.isNotBlank' call
900
- // Inline function 'kotlin.require' call
901
- if (!!isBlank(serialName)) {
902
- // Inline function 'kotlinx.serialization.descriptors.buildSerialDescriptor.<anonymous>' call
903
- var message = 'Blank serial names are prohibited';
904
- throw IllegalArgumentException_init_$Create$(toString(message));
905
- }
906
- // Inline function 'kotlin.require' call
907
- if (!!equals(kind, CLASS_getInstance())) {
908
- // Inline function 'kotlinx.serialization.descriptors.buildSerialDescriptor.<anonymous>' call
909
- var message_0 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead";
910
- throw IllegalArgumentException_init_$Create$(toString(message_0));
911
- }
912
- var sdBuilder = new ClassSerialDescriptorBuilder(serialName);
913
- builder(sdBuilder);
914
- return new SerialDescriptorImpl(serialName, kind, sdBuilder.tj_1.p(), toList(typeParameters), sdBuilder);
915
- }
916
- function ClassSerialDescriptorBuilder(serialName) {
917
- this.qj_1 = serialName;
918
- this.rj_1 = false;
919
- this.sj_1 = emptyList();
920
- this.tj_1 = ArrayList_init_$Create$_0();
921
- this.uj_1 = HashSet_init_$Create$();
922
- this.vj_1 = ArrayList_init_$Create$_0();
923
- this.wj_1 = ArrayList_init_$Create$_0();
924
- this.xj_1 = ArrayList_init_$Create$_0();
925
- }
926
- protoOf(ClassSerialDescriptorBuilder).cl = function (elementName, descriptor, annotations, isOptional) {
927
- // Inline function 'kotlin.require' call
928
- if (!this.uj_1.e(elementName)) {
929
- // Inline function 'kotlinx.serialization.descriptors.ClassSerialDescriptorBuilder.element.<anonymous>' call
930
- var message = "Element with name '" + elementName + "' is already registered in " + this.qj_1;
931
- throw IllegalArgumentException_init_$Create$(toString(message));
932
- }
933
- // Inline function 'kotlin.collections.plusAssign' call
934
- this.tj_1.e(elementName);
935
- // Inline function 'kotlin.collections.plusAssign' call
936
- this.vj_1.e(descriptor);
937
- // Inline function 'kotlin.collections.plusAssign' call
938
- this.wj_1.e(annotations);
939
- // Inline function 'kotlin.collections.plusAssign' call
940
- this.xj_1.e(isOptional);
941
- };
942
- protoOf(ClassSerialDescriptorBuilder).yj = function (elementName, descriptor, annotations, isOptional, $super) {
943
- annotations = annotations === VOID ? emptyList() : annotations;
944
- isOptional = isOptional === VOID ? false : isOptional;
945
- var tmp;
946
- if ($super === VOID) {
947
- this.cl(elementName, descriptor, annotations, isOptional);
948
- tmp = Unit_instance;
949
- } else {
950
- tmp = $super.cl.call(this, elementName, descriptor, annotations, isOptional);
951
- }
952
- return tmp;
953
- };
954
- function _get__hashCode__tgwhef($this) {
955
- var tmp0 = $this.ol_1;
956
- // Inline function 'kotlin.getValue' call
957
- _hashCode$factory();
958
- return tmp0.z();
959
- }
960
- function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) {
961
- return function () {
962
- return hashCodeImpl(this$0, this$0.nl_1);
963
- };
964
- }
965
- function SerialDescriptorImpl$toString$lambda(this$0) {
966
- return function (it) {
967
- return this$0.uk(it) + ': ' + this$0.vk(it).pk();
968
- };
969
- }
970
- function SerialDescriptorImpl(serialName, kind, elementsCount, typeParameters, builder) {
971
- this.dl_1 = serialName;
972
- this.el_1 = kind;
973
- this.fl_1 = elementsCount;
974
- this.gl_1 = builder.sj_1;
975
- this.hl_1 = toHashSet(builder.tj_1);
976
- var tmp = this;
977
- // Inline function 'kotlin.collections.toTypedArray' call
978
- var this_0 = builder.tj_1;
979
- tmp.il_1 = copyToArray(this_0);
980
- this.jl_1 = compactArray(builder.vj_1);
981
- var tmp_0 = this;
982
- // Inline function 'kotlin.collections.toTypedArray' call
983
- var this_1 = builder.wj_1;
984
- tmp_0.kl_1 = copyToArray(this_1);
985
- this.ll_1 = toBooleanArray(builder.xj_1);
986
- var tmp_1 = this;
987
- // Inline function 'kotlin.collections.map' call
988
- var this_2 = withIndex(this.il_1);
989
- // Inline function 'kotlin.collections.mapTo' call
990
- var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
991
- var _iterator__ex2g4s = this_2.m();
992
- while (_iterator__ex2g4s.n()) {
993
- var item = _iterator__ex2g4s.o();
994
- // Inline function 'kotlinx.serialization.descriptors.SerialDescriptorImpl.name2Index.<anonymous>' call
995
- var tmp$ret$2 = to(item.ae_1, item.zd_1);
996
- destination.e(tmp$ret$2);
997
- }
998
- tmp_1.ml_1 = toMap(destination);
999
- this.nl_1 = compactArray(typeParameters);
1000
- var tmp_2 = this;
1001
- tmp_2.ol_1 = lazy_0(SerialDescriptorImpl$_hashCode$delegate$lambda(this));
1002
- }
1003
- protoOf(SerialDescriptorImpl).pk = function () {
1004
- return this.dl_1;
1005
- };
1006
- protoOf(SerialDescriptorImpl).qk = function () {
1007
- return this.el_1;
1008
- };
1009
- protoOf(SerialDescriptorImpl).sk = function () {
1010
- return this.fl_1;
1011
- };
1012
- protoOf(SerialDescriptorImpl).tk = function () {
1013
- return this.gl_1;
1014
- };
1015
- protoOf(SerialDescriptorImpl).pl = function () {
1016
- return this.hl_1;
1017
- };
1018
- protoOf(SerialDescriptorImpl).uk = function (index) {
1019
- return getChecked(this.il_1, index);
1020
- };
1021
- protoOf(SerialDescriptorImpl).vk = function (index) {
1022
- return getChecked(this.jl_1, index);
1023
- };
1024
- protoOf(SerialDescriptorImpl).equals = function (other) {
1025
- var tmp$ret$0;
1026
- $l$block_5: {
1027
- // Inline function 'kotlinx.serialization.internal.equalsImpl' call
1028
- if (this === other) {
1029
- tmp$ret$0 = true;
1030
- break $l$block_5;
1031
- }
1032
- if (!(other instanceof SerialDescriptorImpl)) {
1033
- tmp$ret$0 = false;
1034
- break $l$block_5;
1035
- }
1036
- if (!(this.pk() === other.pk())) {
1037
- tmp$ret$0 = false;
1038
- break $l$block_5;
1039
- }
1040
- // Inline function 'kotlinx.serialization.descriptors.SerialDescriptorImpl.equals.<anonymous>' call
1041
- if (!contentEquals(this.nl_1, other.nl_1)) {
1042
- tmp$ret$0 = false;
1043
- break $l$block_5;
1044
- }
1045
- if (!(this.sk() === other.sk())) {
1046
- tmp$ret$0 = false;
1047
- break $l$block_5;
1048
- }
1049
- var inductionVariable = 0;
1050
- var last = this.sk();
1051
- if (inductionVariable < last)
1052
- do {
1053
- var index = inductionVariable;
1054
- inductionVariable = inductionVariable + 1 | 0;
1055
- if (!(this.vk(index).pk() === other.vk(index).pk())) {
1056
- tmp$ret$0 = false;
1057
- break $l$block_5;
1058
- }
1059
- if (!equals(this.vk(index).qk(), other.vk(index).qk())) {
1060
- tmp$ret$0 = false;
1061
- break $l$block_5;
1062
- }
1063
- }
1064
- while (inductionVariable < last);
1065
- tmp$ret$0 = true;
1066
- }
1067
- return tmp$ret$0;
1068
- };
1069
- protoOf(SerialDescriptorImpl).hashCode = function () {
1070
- return _get__hashCode__tgwhef(this);
1071
- };
1072
- protoOf(SerialDescriptorImpl).toString = function () {
1073
- var tmp = until(0, this.fl_1);
1074
- var tmp_0 = this.dl_1 + '(';
1075
- return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, SerialDescriptorImpl$toString$lambda(this));
1076
- };
1077
- function buildClassSerialDescriptor(serialName, typeParameters, builderAction) {
1078
- var tmp;
1079
- if (builderAction === VOID) {
1080
- tmp = buildClassSerialDescriptor$lambda;
1081
- } else {
1082
- tmp = builderAction;
1083
- }
1084
- builderAction = tmp;
1085
- // Inline function 'kotlin.text.isNotBlank' call
1086
- // Inline function 'kotlin.require' call
1087
- if (!!isBlank(serialName)) {
1088
- // Inline function 'kotlinx.serialization.descriptors.buildClassSerialDescriptor.<anonymous>' call
1089
- var message = 'Blank serial names are prohibited';
1090
- throw IllegalArgumentException_init_$Create$(toString(message));
1091
- }
1092
- var sdBuilder = new ClassSerialDescriptorBuilder(serialName);
1093
- builderAction(sdBuilder);
1094
- return new SerialDescriptorImpl(serialName, CLASS_getInstance(), sdBuilder.tj_1.p(), toList(typeParameters), sdBuilder);
1095
- }
1096
- function PrimitiveSerialDescriptor(serialName, kind) {
1097
- // Inline function 'kotlin.text.isNotBlank' call
1098
- // Inline function 'kotlin.require' call
1099
- if (!!isBlank(serialName)) {
1100
- // Inline function 'kotlinx.serialization.descriptors.PrimitiveSerialDescriptor.<anonymous>' call
1101
- var message = 'Blank serial names are prohibited';
1102
- throw IllegalArgumentException_init_$Create$(toString(message));
1103
- }
1104
- return PrimitiveDescriptorSafe(serialName, kind);
1105
- }
1106
- function buildSerialDescriptor$lambda(_this__u8e3s4) {
1107
- return Unit_instance;
1108
- }
1109
- function buildClassSerialDescriptor$lambda(_this__u8e3s4) {
1110
- return Unit_instance;
1111
- }
1112
- function _hashCode$factory() {
1113
- return getPropertyCallableRef('_hashCode', 1, KProperty1, function (receiver) {
1114
- return _get__hashCode__tgwhef(receiver);
1115
- }, null);
1116
- }
1117
- function ENUM() {
1118
- ENUM_instance = this;
1119
- SerialKind.call(this);
1120
- }
1121
- var ENUM_instance;
1122
- function ENUM_getInstance() {
1123
- if (ENUM_instance == null)
1124
- new ENUM();
1125
- return ENUM_instance;
1126
- }
1127
- function CONTEXTUAL() {
1128
- CONTEXTUAL_instance = this;
1129
- SerialKind.call(this);
1130
- }
1131
- var CONTEXTUAL_instance;
1132
- function CONTEXTUAL_getInstance() {
1133
- if (CONTEXTUAL_instance == null)
1134
- new CONTEXTUAL();
1135
- return CONTEXTUAL_instance;
1136
- }
1137
- function SerialKind() {
1138
- }
1139
- protoOf(SerialKind).toString = function () {
1140
- return ensureNotNull(getKClassFromExpression(this).aa());
1141
- };
1142
- protoOf(SerialKind).hashCode = function () {
1143
- return getStringHashCode(this.toString());
1144
- };
1145
- function OPEN() {
1146
- OPEN_instance = this;
1147
- PolymorphicKind.call(this);
1148
- }
1149
- var OPEN_instance;
1150
- function OPEN_getInstance() {
1151
- if (OPEN_instance == null)
1152
- new OPEN();
1153
- return OPEN_instance;
1154
- }
1155
- function PolymorphicKind() {
1156
- SerialKind.call(this);
1157
- }
1158
- function BOOLEAN() {
1159
- BOOLEAN_instance = this;
1160
- PrimitiveKind.call(this);
1161
- }
1162
- var BOOLEAN_instance;
1163
- function BOOLEAN_getInstance() {
1164
- if (BOOLEAN_instance == null)
1165
- new BOOLEAN();
1166
- return BOOLEAN_instance;
1167
- }
1168
- function BYTE() {
1169
- BYTE_instance = this;
1170
- PrimitiveKind.call(this);
1171
- }
1172
- var BYTE_instance;
1173
- function BYTE_getInstance() {
1174
- if (BYTE_instance == null)
1175
- new BYTE();
1176
- return BYTE_instance;
1177
- }
1178
- function CHAR() {
1179
- CHAR_instance = this;
1180
- PrimitiveKind.call(this);
1181
- }
1182
- var CHAR_instance;
1183
- function CHAR_getInstance() {
1184
- if (CHAR_instance == null)
1185
- new CHAR();
1186
- return CHAR_instance;
1187
- }
1188
- function SHORT() {
1189
- SHORT_instance = this;
1190
- PrimitiveKind.call(this);
1191
- }
1192
- var SHORT_instance;
1193
- function SHORT_getInstance() {
1194
- if (SHORT_instance == null)
1195
- new SHORT();
1196
- return SHORT_instance;
1197
- }
1198
- function INT() {
1199
- INT_instance = this;
1200
- PrimitiveKind.call(this);
1201
- }
1202
- var INT_instance;
1203
- function INT_getInstance() {
1204
- if (INT_instance == null)
1205
- new INT();
1206
- return INT_instance;
1207
- }
1208
- function LONG() {
1209
- LONG_instance = this;
1210
- PrimitiveKind.call(this);
1211
- }
1212
- var LONG_instance;
1213
- function LONG_getInstance() {
1214
- if (LONG_instance == null)
1215
- new LONG();
1216
- return LONG_instance;
1217
- }
1218
- function FLOAT() {
1219
- FLOAT_instance = this;
1220
- PrimitiveKind.call(this);
1221
- }
1222
- var FLOAT_instance;
1223
- function FLOAT_getInstance() {
1224
- if (FLOAT_instance == null)
1225
- new FLOAT();
1226
- return FLOAT_instance;
1227
- }
1228
- function DOUBLE() {
1229
- DOUBLE_instance = this;
1230
- PrimitiveKind.call(this);
1231
- }
1232
- var DOUBLE_instance;
1233
- function DOUBLE_getInstance() {
1234
- if (DOUBLE_instance == null)
1235
- new DOUBLE();
1236
- return DOUBLE_instance;
1237
- }
1238
- function STRING() {
1239
- STRING_instance = this;
1240
- PrimitiveKind.call(this);
1241
- }
1242
- var STRING_instance;
1243
- function STRING_getInstance() {
1244
- if (STRING_instance == null)
1245
- new STRING();
1246
- return STRING_instance;
1247
- }
1248
- function PrimitiveKind() {
1249
- SerialKind.call(this);
1250
- }
1251
- function CLASS() {
1252
- CLASS_instance = this;
1253
- StructureKind.call(this);
1254
- }
1255
- var CLASS_instance;
1256
- function CLASS_getInstance() {
1257
- if (CLASS_instance == null)
1258
- new CLASS();
1259
- return CLASS_instance;
1260
- }
1261
- function LIST() {
1262
- LIST_instance = this;
1263
- StructureKind.call(this);
1264
- }
1265
- var LIST_instance;
1266
- function LIST_getInstance() {
1267
- if (LIST_instance == null)
1268
- new LIST();
1269
- return LIST_instance;
1270
- }
1271
- function MAP() {
1272
- MAP_instance = this;
1273
- StructureKind.call(this);
1274
- }
1275
- var MAP_instance;
1276
- function MAP_getInstance() {
1277
- if (MAP_instance == null)
1278
- new MAP();
1279
- return MAP_instance;
1280
- }
1281
- function OBJECT() {
1282
- OBJECT_instance = this;
1283
- StructureKind.call(this);
1284
- }
1285
- var OBJECT_instance;
1286
- function OBJECT_getInstance() {
1287
- if (OBJECT_instance == null)
1288
- new OBJECT();
1289
- return OBJECT_instance;
1290
- }
1291
- function StructureKind() {
1292
- SerialKind.call(this);
1293
- }
1294
- function AbstractEncoder() {
1295
- }
1296
- protoOf(AbstractEncoder).ql = function (descriptor) {
1297
- return this;
1298
- };
1299
- protoOf(AbstractEncoder).rl = function (descriptor) {
1300
- };
1301
- protoOf(AbstractEncoder).sl = function (descriptor, index) {
1302
- return true;
1303
- };
1304
- protoOf(AbstractEncoder).tl = function (value) {
1305
- throw SerializationException_init_$Create$_0('Non-serializable ' + toString(getKClassFromExpression(value)) + ' is not supported by ' + toString(getKClassFromExpression(this)) + ' encoder');
1306
- };
1307
- protoOf(AbstractEncoder).ul = function () {
1308
- throw SerializationException_init_$Create$_0("'null' is not supported by default");
1309
- };
1310
- protoOf(AbstractEncoder).vl = function (value) {
1311
- return this.tl(value);
1312
- };
1313
- protoOf(AbstractEncoder).wl = function (value) {
1314
- return this.tl(value);
1315
- };
1316
- protoOf(AbstractEncoder).xl = function (value) {
1317
- return this.tl(value);
1318
- };
1319
- protoOf(AbstractEncoder).yl = function (value) {
1320
- return this.tl(value);
1321
- };
1322
- protoOf(AbstractEncoder).zl = function (value) {
1323
- return this.tl(value);
1324
- };
1325
- protoOf(AbstractEncoder).am = function (value) {
1326
- return this.tl(value);
1327
- };
1328
- protoOf(AbstractEncoder).bm = function (value) {
1329
- return this.tl(value);
1330
- };
1331
- protoOf(AbstractEncoder).cm = function (value) {
1332
- return this.tl(new Char(value));
1333
- };
1334
- protoOf(AbstractEncoder).dm = function (value) {
1335
- return this.tl(value);
1336
- };
1337
- protoOf(AbstractEncoder).em = function (descriptor) {
1338
- return this;
1339
- };
1340
- protoOf(AbstractEncoder).fm = function (descriptor, index, value) {
1341
- if (this.sl(descriptor, index)) {
1342
- this.vl(value);
1343
- }
1344
- };
1345
- protoOf(AbstractEncoder).gm = function (descriptor, index, value) {
1346
- if (this.sl(descriptor, index)) {
1347
- this.wl(value);
1348
- }
1349
- };
1350
- protoOf(AbstractEncoder).hm = function (descriptor, index, value) {
1351
- if (this.sl(descriptor, index)) {
1352
- this.xl(value);
1353
- }
1354
- };
1355
- protoOf(AbstractEncoder).im = function (descriptor, index, value) {
1356
- if (this.sl(descriptor, index)) {
1357
- this.yl(value);
1358
- }
1359
- };
1360
- protoOf(AbstractEncoder).jm = function (descriptor, index, value) {
1361
- if (this.sl(descriptor, index)) {
1362
- this.zl(value);
1363
- }
1364
- };
1365
- protoOf(AbstractEncoder).km = function (descriptor, index, value) {
1366
- if (this.sl(descriptor, index)) {
1367
- this.am(value);
1368
- }
1369
- };
1370
- protoOf(AbstractEncoder).lm = function (descriptor, index, value) {
1371
- if (this.sl(descriptor, index)) {
1372
- this.bm(value);
1373
- }
1374
- };
1375
- protoOf(AbstractEncoder).mm = function (descriptor, index, value) {
1376
- if (this.sl(descriptor, index)) {
1377
- this.cm(value);
1378
- }
1379
- };
1380
- protoOf(AbstractEncoder).nm = function (descriptor, index, value) {
1381
- if (this.sl(descriptor, index)) {
1382
- this.dm(value);
1383
- }
1384
- };
1385
- protoOf(AbstractEncoder).om = function (descriptor, index) {
1386
- return this.sl(descriptor, index) ? this.em(descriptor.vk(index)) : NoOpEncoder_getInstance();
1387
- };
1388
- protoOf(AbstractEncoder).pm = function (descriptor, index, serializer, value) {
1389
- if (this.sl(descriptor, index)) {
1390
- this.qm(serializer, value);
1391
- }
1392
- };
1393
- protoOf(AbstractEncoder).rm = function (descriptor, index, serializer, value) {
1394
- if (this.sl(descriptor, index)) {
1395
- this.sm(serializer, value);
1396
- }
1397
- };
1398
- function Encoder() {
1399
- }
1400
- function CompositeEncoder() {
1401
- }
1402
- function AbstractPolymorphicSerializer() {
1403
- }
1404
- protoOf(AbstractPolymorphicSerializer).dk = function (encoder, value) {
1405
- var actualSerializer = findPolymorphicSerializer(this, encoder, value);
1406
- // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
1407
- var descriptor = this.oj();
1408
- var composite = encoder.ql(descriptor);
1409
- // Inline function 'kotlinx.serialization.internal.AbstractPolymorphicSerializer.serialize.<anonymous>' call
1410
- composite.nm(this.oj(), 0, actualSerializer.oj().pk());
1411
- var tmp = this.oj();
1412
- // Inline function 'kotlinx.serialization.internal.cast' call
1413
- var tmp$ret$0 = isInterface(actualSerializer, SerializationStrategy) ? actualSerializer : THROW_CCE();
1414
- composite.pm(tmp, 1, tmp$ret$0, value);
1415
- composite.rl(descriptor);
1416
- };
1417
- protoOf(AbstractPolymorphicSerializer).pj = function (encoder, value) {
1418
- return this.dk(encoder, !(value == null) ? value : THROW_CCE());
1419
- };
1420
- protoOf(AbstractPolymorphicSerializer).ek = function (encoder, value) {
1421
- return encoder.tm().xm(this.ck(), value);
1422
- };
1423
- function throwSubtypeNotRegistered(subClass, baseClass) {
1424
- var tmp0_elvis_lhs = subClass.aa();
1425
- throwSubtypeNotRegistered_0(tmp0_elvis_lhs == null ? toString(subClass) : tmp0_elvis_lhs, baseClass);
1426
- }
1427
- function throwSubtypeNotRegistered_0(subClassName, baseClass) {
1428
- var scope = "in the polymorphic scope of '" + baseClass.aa() + "'";
1429
- throw SerializationException_init_$Create$_0(subClassName == null ? 'Class discriminator was missing and no default serializers were registered ' + scope + '.' : "Serializer for subclass '" + subClassName + "' is not found " + scope + '.\n' + ("Check if class with serial name '" + subClassName + "' exists and serializer is registered in a corresponding SerializersModule.\n") + ("To be registered automatically, class '" + subClassName + "' has to be '@Serializable', and the base class '" + baseClass.aa() + "' has to be sealed and '@Serializable'."));
1430
- }
1431
- function NothingSerializer_0() {
1432
- NothingSerializer_instance = this;
1433
- this.ym_1 = NothingSerialDescriptor_getInstance();
1434
- }
1435
- protoOf(NothingSerializer_0).oj = function () {
1436
- return this.ym_1;
1437
- };
1438
- protoOf(NothingSerializer_0).zm = function (encoder, value) {
1439
- throw SerializationException_init_$Create$_0("'kotlin.Nothing' cannot be serialized");
1440
- };
1441
- protoOf(NothingSerializer_0).pj = function (encoder, value) {
1442
- var tmp;
1443
- if (false) {
1444
- tmp = value;
1445
- } else {
1446
- tmp = THROW_CCE();
1447
- }
1448
- return this.zm(encoder, tmp);
1449
- };
1450
- var NothingSerializer_instance;
1451
- function NothingSerializer_getInstance() {
1452
- if (NothingSerializer_instance == null)
1453
- new NothingSerializer_0();
1454
- return NothingSerializer_instance;
1455
- }
1456
- function DurationSerializer() {
1457
- DurationSerializer_instance = this;
1458
- this.an_1 = new PrimitiveSerialDescriptor_0('kotlin.time.Duration', STRING_getInstance());
1459
- }
1460
- protoOf(DurationSerializer).oj = function () {
1461
- return this.an_1;
1462
- };
1463
- protoOf(DurationSerializer).bn = function (encoder, value) {
1464
- encoder.dm(Duration__toIsoString_impl_9h6wsm(value));
1465
- };
1466
- protoOf(DurationSerializer).pj = function (encoder, value) {
1467
- return this.bn(encoder, value instanceof Duration ? value.eh_1 : THROW_CCE());
1468
- };
1469
- var DurationSerializer_instance;
1470
- function DurationSerializer_getInstance() {
1471
- if (DurationSerializer_instance == null)
1472
- new DurationSerializer();
1473
- return DurationSerializer_instance;
1474
- }
1475
- function UuidSerializer() {
1476
- UuidSerializer_instance = this;
1477
- this.cn_1 = new PrimitiveSerialDescriptor_0('kotlin.uuid.Uuid', STRING_getInstance());
1478
- }
1479
- protoOf(UuidSerializer).oj = function () {
1480
- return this.cn_1;
1481
- };
1482
- protoOf(UuidSerializer).dn = function (encoder, value) {
1483
- encoder.dm(value.toString());
1484
- };
1485
- protoOf(UuidSerializer).pj = function (encoder, value) {
1486
- return this.dn(encoder, value instanceof Uuid ? value : THROW_CCE());
1487
- };
1488
- var UuidSerializer_instance;
1489
- function UuidSerializer_getInstance() {
1490
- if (UuidSerializer_instance == null)
1491
- new UuidSerializer();
1492
- return UuidSerializer_instance;
1493
- }
1494
- function CachedNames() {
1495
- }
1496
- function ArrayListClassDesc(elementDesc) {
1497
- ListLikeDescriptor.call(this, elementDesc);
1498
- }
1499
- protoOf(ArrayListClassDesc).pk = function () {
1500
- return 'kotlin.collections.ArrayList';
1501
- };
1502
- function HashSetClassDesc(elementDesc) {
1503
- ListLikeDescriptor.call(this, elementDesc);
1504
- }
1505
- protoOf(HashSetClassDesc).pk = function () {
1506
- return 'kotlin.collections.HashSet';
1507
- };
1508
- function LinkedHashSetClassDesc(elementDesc) {
1509
- ListLikeDescriptor.call(this, elementDesc);
1510
- }
1511
- protoOf(LinkedHashSetClassDesc).pk = function () {
1512
- return 'kotlin.collections.LinkedHashSet';
1513
- };
1514
- function HashMapClassDesc(keyDesc, valueDesc) {
1515
- MapLikeDescriptor.call(this, 'kotlin.collections.HashMap', keyDesc, valueDesc);
1516
- }
1517
- function LinkedHashMapClassDesc(keyDesc, valueDesc) {
1518
- MapLikeDescriptor.call(this, 'kotlin.collections.LinkedHashMap', keyDesc, valueDesc);
1519
- }
1520
- function ArrayClassDesc(elementDesc) {
1521
- ListLikeDescriptor.call(this, elementDesc);
1522
- }
1523
- protoOf(ArrayClassDesc).pk = function () {
1524
- return 'kotlin.Array';
1525
- };
1526
- function ListLikeDescriptor(elementDescriptor) {
1527
- this.gn_1 = elementDescriptor;
1528
- this.hn_1 = 1;
1529
- }
1530
- protoOf(ListLikeDescriptor).qk = function () {
1531
- return LIST_getInstance();
1532
- };
1533
- protoOf(ListLikeDescriptor).sk = function () {
1534
- return this.hn_1;
1535
- };
1536
- protoOf(ListLikeDescriptor).uk = function (index) {
1537
- return index.toString();
1538
- };
1539
- protoOf(ListLikeDescriptor).vk = function (index) {
1540
- // Inline function 'kotlin.require' call
1541
- if (!(index >= 0)) {
1542
- // Inline function 'kotlinx.serialization.internal.ListLikeDescriptor.getElementDescriptor.<anonymous>' call
1543
- var message = 'Illegal index ' + index + ', ' + this.pk() + ' expects only non-negative indices';
1544
- throw IllegalArgumentException_init_$Create$(toString(message));
1545
- }
1546
- return this.gn_1;
1547
- };
1548
- protoOf(ListLikeDescriptor).equals = function (other) {
1549
- if (this === other)
1550
- return true;
1551
- if (!(other instanceof ListLikeDescriptor))
1552
- return false;
1553
- if (equals(this.gn_1, other.gn_1) && this.pk() === other.pk())
1554
- return true;
1555
- return false;
1556
- };
1557
- protoOf(ListLikeDescriptor).hashCode = function () {
1558
- return imul(hashCode(this.gn_1), 31) + getStringHashCode(this.pk()) | 0;
1559
- };
1560
- protoOf(ListLikeDescriptor).toString = function () {
1561
- return this.pk() + '(' + toString(this.gn_1) + ')';
1562
- };
1563
- function MapLikeDescriptor(serialName, keyDescriptor, valueDescriptor) {
1564
- this.mn_1 = serialName;
1565
- this.nn_1 = keyDescriptor;
1566
- this.on_1 = valueDescriptor;
1567
- this.pn_1 = 2;
1568
- }
1569
- protoOf(MapLikeDescriptor).pk = function () {
1570
- return this.mn_1;
1571
- };
1572
- protoOf(MapLikeDescriptor).qk = function () {
1573
- return MAP_getInstance();
1574
- };
1575
- protoOf(MapLikeDescriptor).sk = function () {
1576
- return this.pn_1;
1577
- };
1578
- protoOf(MapLikeDescriptor).uk = function (index) {
1579
- return index.toString();
1580
- };
1581
- protoOf(MapLikeDescriptor).vk = function (index) {
1582
- // Inline function 'kotlin.require' call
1583
- if (!(index >= 0)) {
1584
- // Inline function 'kotlinx.serialization.internal.MapLikeDescriptor.getElementDescriptor.<anonymous>' call
1585
- var message = 'Illegal index ' + index + ', ' + this.pk() + ' expects only non-negative indices';
1586
- throw IllegalArgumentException_init_$Create$(toString(message));
1587
- }
1588
- var tmp;
1589
- switch (index % 2 | 0) {
1590
- case 0:
1591
- tmp = this.nn_1;
1592
- break;
1593
- case 1:
1594
- tmp = this.on_1;
1595
- break;
1596
- default:
1597
- var message_0 = 'Unreached';
1598
- throw IllegalStateException_init_$Create$(toString(message_0));
1599
- }
1600
- return tmp;
1601
- };
1602
- protoOf(MapLikeDescriptor).equals = function (other) {
1603
- if (this === other)
1604
- return true;
1605
- if (!(other instanceof MapLikeDescriptor))
1606
- return false;
1607
- if (!(this.pk() === other.pk()))
1608
- return false;
1609
- if (!equals(this.nn_1, other.nn_1))
1610
- return false;
1611
- if (!equals(this.on_1, other.on_1))
1612
- return false;
1613
- return true;
1614
- };
1615
- protoOf(MapLikeDescriptor).hashCode = function () {
1616
- var result = getStringHashCode(this.pk());
1617
- result = imul(31, result) + hashCode(this.nn_1) | 0;
1618
- result = imul(31, result) + hashCode(this.on_1) | 0;
1619
- return result;
1620
- };
1621
- protoOf(MapLikeDescriptor).toString = function () {
1622
- return this.pk() + '(' + toString(this.nn_1) + ', ' + toString(this.on_1) + ')';
1623
- };
1624
- function PrimitiveArrayDescriptor(primitive) {
1625
- ListLikeDescriptor.call(this, primitive);
1626
- this.un_1 = primitive.pk() + 'Array';
1627
- }
1628
- protoOf(PrimitiveArrayDescriptor).pk = function () {
1629
- return this.un_1;
1630
- };
1631
- function ArrayListSerializer(element) {
1632
- CollectionSerializer.call(this, element);
1633
- this.wn_1 = new ArrayListClassDesc(element.oj());
1634
- }
1635
- protoOf(ArrayListSerializer).oj = function () {
1636
- return this.wn_1;
1637
- };
1638
- function HashSetSerializer(eSerializer) {
1639
- CollectionSerializer.call(this, eSerializer);
1640
- this.do_1 = new HashSetClassDesc(eSerializer.oj());
1641
- }
1642
- protoOf(HashSetSerializer).oj = function () {
1643
- return this.do_1;
1644
- };
1645
- function LinkedHashSetSerializer(eSerializer) {
1646
- CollectionSerializer.call(this, eSerializer);
1647
- this.fo_1 = new LinkedHashSetClassDesc(eSerializer.oj());
1648
- }
1649
- protoOf(LinkedHashSetSerializer).oj = function () {
1650
- return this.fo_1;
1651
- };
1652
- function HashMapSerializer(kSerializer, vSerializer) {
1653
- MapLikeSerializer.call(this, kSerializer, vSerializer);
1654
- this.io_1 = new HashMapClassDesc(kSerializer.oj(), vSerializer.oj());
1655
- }
1656
- protoOf(HashMapSerializer).oj = function () {
1657
- return this.io_1;
1658
- };
1659
- protoOf(HashMapSerializer).jo = function (_this__u8e3s4) {
1660
- return _this__u8e3s4.p();
1661
- };
1662
- protoOf(HashMapSerializer).ko = function (_this__u8e3s4) {
1663
- return this.jo((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtMap) : false) ? _this__u8e3s4 : THROW_CCE());
1664
- };
1665
- protoOf(HashMapSerializer).lo = function (_this__u8e3s4) {
1666
- // Inline function 'kotlin.collections.iterator' call
1667
- return _this__u8e3s4.x().m();
1668
- };
1669
- protoOf(HashMapSerializer).mo = function (_this__u8e3s4) {
1670
- return this.lo((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtMap) : false) ? _this__u8e3s4 : THROW_CCE());
1671
- };
1672
- function LinkedHashMapSerializer(kSerializer, vSerializer) {
1673
- MapLikeSerializer.call(this, kSerializer, vSerializer);
1674
- this.ro_1 = new LinkedHashMapClassDesc(kSerializer.oj(), vSerializer.oj());
1675
- }
1676
- protoOf(LinkedHashMapSerializer).oj = function () {
1677
- return this.ro_1;
1678
- };
1679
- protoOf(LinkedHashMapSerializer).jo = function (_this__u8e3s4) {
1680
- return _this__u8e3s4.p();
1681
- };
1682
- protoOf(LinkedHashMapSerializer).ko = function (_this__u8e3s4) {
1683
- return this.jo((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtMap) : false) ? _this__u8e3s4 : THROW_CCE());
1684
- };
1685
- protoOf(LinkedHashMapSerializer).lo = function (_this__u8e3s4) {
1686
- // Inline function 'kotlin.collections.iterator' call
1687
- return _this__u8e3s4.x().m();
1688
- };
1689
- protoOf(LinkedHashMapSerializer).mo = function (_this__u8e3s4) {
1690
- return this.lo((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtMap) : false) ? _this__u8e3s4 : THROW_CCE());
1691
- };
1692
- function ReferenceArraySerializer(kClass, eSerializer) {
1693
- CollectionLikeSerializer.call(this, eSerializer);
1694
- this.to_1 = kClass;
1695
- this.uo_1 = new ArrayClassDesc(eSerializer.oj());
1696
- }
1697
- protoOf(ReferenceArraySerializer).oj = function () {
1698
- return this.uo_1;
1699
- };
1700
- protoOf(ReferenceArraySerializer).vo = function (_this__u8e3s4) {
1701
- return _this__u8e3s4.length;
1702
- };
1703
- protoOf(ReferenceArraySerializer).ko = function (_this__u8e3s4) {
1704
- return this.vo((!(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
1705
- };
1706
- protoOf(ReferenceArraySerializer).wo = function (_this__u8e3s4) {
1707
- return arrayIterator(_this__u8e3s4);
1708
- };
1709
- protoOf(ReferenceArraySerializer).mo = function (_this__u8e3s4) {
1710
- return this.wo((!(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
1711
- };
1712
- function CollectionSerializer(element) {
1713
- CollectionLikeSerializer.call(this, element);
1714
- }
1715
- protoOf(CollectionSerializer).yn = function (_this__u8e3s4) {
1716
- return _this__u8e3s4.p();
1717
- };
1718
- protoOf(CollectionSerializer).ko = function (_this__u8e3s4) {
1719
- return this.yn((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Collection) : false) ? _this__u8e3s4 : THROW_CCE());
1720
- };
1721
- protoOf(CollectionSerializer).zn = function (_this__u8e3s4) {
1722
- return _this__u8e3s4.m();
1723
- };
1724
- protoOf(CollectionSerializer).mo = function (_this__u8e3s4) {
1725
- return this.zn((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Collection) : false) ? _this__u8e3s4 : THROW_CCE());
1726
- };
1727
- function MapLikeSerializer(keySerializer, valueSerializer) {
1728
- AbstractCollectionSerializer.call(this);
1729
- this.no_1 = keySerializer;
1730
- this.oo_1 = valueSerializer;
1731
- }
1732
- protoOf(MapLikeSerializer).bo = function (encoder, value) {
1733
- var size = this.ko(value);
1734
- // Inline function 'kotlinx.serialization.encoding.encodeCollection' call
1735
- var descriptor = this.oj();
1736
- var composite = encoder.vm(descriptor, size);
1737
- // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.serialize.<anonymous>' call
1738
- var iterator = this.mo(value);
1739
- var index = 0;
1740
- // Inline function 'kotlin.collections.forEach' call
1741
- // Inline function 'kotlin.collections.iterator' call
1742
- var _iterator__ex2g4s = iterator;
1743
- while (_iterator__ex2g4s.n()) {
1744
- var element = _iterator__ex2g4s.o();
1745
- // Inline function 'kotlinx.serialization.internal.MapLikeSerializer.serialize.<anonymous>.<anonymous>' call
1746
- // Inline function 'kotlin.collections.component1' call
1747
- var k = element.y();
1748
- // Inline function 'kotlin.collections.component2' call
1749
- var v = element.z();
1750
- var tmp = this.oj();
1751
- var _unary__edvuaz = index;
1752
- index = _unary__edvuaz + 1 | 0;
1753
- composite.pm(tmp, _unary__edvuaz, this.no_1, k);
1754
- var tmp_0 = this.oj();
1755
- var _unary__edvuaz_0 = index;
1756
- index = _unary__edvuaz_0 + 1 | 0;
1757
- composite.pm(tmp_0, _unary__edvuaz_0, this.oo_1, v);
1758
- }
1759
- composite.rl(descriptor);
1760
- };
1761
- protoOf(MapLikeSerializer).pj = function (encoder, value) {
1762
- return this.bo(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
1763
- };
1764
- function CollectionLikeSerializer(elementSerializer) {
1765
- AbstractCollectionSerializer.call(this);
1766
- this.ao_1 = elementSerializer;
1767
- }
1768
- protoOf(CollectionLikeSerializer).bo = function (encoder, value) {
1769
- var size = this.ko(value);
1770
- // Inline function 'kotlinx.serialization.encoding.encodeCollection' call
1771
- var descriptor = this.oj();
1772
- var composite = encoder.vm(descriptor, size);
1773
- // Inline function 'kotlinx.serialization.internal.CollectionLikeSerializer.serialize.<anonymous>' call
1774
- var iterator = this.mo(value);
1775
- var inductionVariable = 0;
1776
- if (inductionVariable < size)
1777
- do {
1778
- var index = inductionVariable;
1779
- inductionVariable = inductionVariable + 1 | 0;
1780
- composite.pm(this.oj(), index, this.ao_1, iterator.o());
1781
- }
1782
- while (inductionVariable < size);
1783
- composite.rl(descriptor);
1784
- };
1785
- protoOf(CollectionLikeSerializer).pj = function (encoder, value) {
1786
- return this.bo(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
1787
- };
1788
- function AbstractCollectionSerializer() {
1789
- }
1790
- function PrimitiveArraySerializer(primitiveSerializer) {
1791
- CollectionLikeSerializer.call(this, primitiveSerializer);
1792
- this.yo_1 = new PrimitiveArrayDescriptor(primitiveSerializer.oj());
1793
- }
1794
- protoOf(PrimitiveArraySerializer).oj = function () {
1795
- return this.yo_1;
1796
- };
1797
- protoOf(PrimitiveArraySerializer).zo = function (_this__u8e3s4) {
1798
- var message = 'This method lead to boxing and must not be used, use writeContents instead';
1799
- throw IllegalStateException_init_$Create$(toString(message));
1800
- };
1801
- protoOf(PrimitiveArraySerializer).mo = function (_this__u8e3s4) {
1802
- return this.zo((_this__u8e3s4 == null ? true : !(_this__u8e3s4 == null)) ? _this__u8e3s4 : THROW_CCE());
1803
- };
1804
- protoOf(PrimitiveArraySerializer).bp = function (encoder, value) {
1805
- var size = this.ko(value);
1806
- // Inline function 'kotlinx.serialization.encoding.encodeCollection' call
1807
- var descriptor = this.yo_1;
1808
- var composite = encoder.vm(descriptor, size);
1809
- // Inline function 'kotlinx.serialization.internal.PrimitiveArraySerializer.serialize.<anonymous>' call
1810
- this.ap(composite, value, size);
1811
- composite.rl(descriptor);
1812
- };
1813
- protoOf(PrimitiveArraySerializer).pj = function (encoder, value) {
1814
- return this.bp(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
1815
- };
1816
- protoOf(PrimitiveArraySerializer).bo = function (encoder, value) {
1817
- return this.bp(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
1818
- };
1819
- function InlinePrimitiveDescriptor(name, primitiveSerializer) {
1820
- return new InlineClassDescriptor(name, new InlinePrimitiveDescriptor$1(primitiveSerializer));
1821
- }
1822
- function InlineClassDescriptor(name, generatedSerializer) {
1823
- PluginGeneratedSerialDescriptor.call(this, name, generatedSerializer, 1);
1824
- this.op_1 = true;
1825
- }
1826
- protoOf(InlineClassDescriptor).rk = function () {
1827
- return this.op_1;
1828
- };
1829
- protoOf(InlineClassDescriptor).hashCode = function () {
1830
- return imul(protoOf(PluginGeneratedSerialDescriptor).hashCode.call(this), 31);
1831
- };
1832
- protoOf(InlineClassDescriptor).equals = function (other) {
1833
- var tmp$ret$0;
1834
- $l$block_5: {
1835
- // Inline function 'kotlinx.serialization.internal.equalsImpl' call
1836
- if (this === other) {
1837
- tmp$ret$0 = true;
1838
- break $l$block_5;
1839
- }
1840
- if (!(other instanceof InlineClassDescriptor)) {
1841
- tmp$ret$0 = false;
1842
- break $l$block_5;
1843
- }
1844
- if (!(this.pk() === other.pk())) {
1845
- tmp$ret$0 = false;
1846
- break $l$block_5;
1847
- }
1848
- // Inline function 'kotlinx.serialization.internal.InlineClassDescriptor.equals.<anonymous>' call
1849
- if (!(other.op_1 && contentEquals(this.bq(), other.bq()))) {
1850
- tmp$ret$0 = false;
1851
- break $l$block_5;
1852
- }
1853
- if (!(this.sk() === other.sk())) {
1854
- tmp$ret$0 = false;
1855
- break $l$block_5;
1856
- }
1857
- var inductionVariable = 0;
1858
- var last = this.sk();
1859
- if (inductionVariable < last)
1860
- do {
1861
- var index = inductionVariable;
1862
- inductionVariable = inductionVariable + 1 | 0;
1863
- if (!(this.vk(index).pk() === other.vk(index).pk())) {
1864
- tmp$ret$0 = false;
1865
- break $l$block_5;
1866
- }
1867
- if (!equals(this.vk(index).qk(), other.vk(index).qk())) {
1868
- tmp$ret$0 = false;
1869
- break $l$block_5;
1870
- }
1871
- }
1872
- while (inductionVariable < last);
1873
- tmp$ret$0 = true;
1874
- }
1875
- return tmp$ret$0;
1876
- };
1877
- function InlinePrimitiveDescriptor$1($primitiveSerializer) {
1878
- this.dq_1 = $primitiveSerializer;
1879
- }
1880
- protoOf(InlinePrimitiveDescriptor$1).eq = function () {
1881
- // Inline function 'kotlin.arrayOf' call
1882
- // Inline function 'kotlin.js.unsafeCast' call
1883
- // Inline function 'kotlin.js.asDynamic' call
1884
- return [this.dq_1];
1885
- };
1886
- protoOf(InlinePrimitiveDescriptor$1).oj = function () {
1887
- var message = 'unsupported';
1888
- throw IllegalStateException_init_$Create$(toString(message));
1889
- };
1890
- protoOf(InlinePrimitiveDescriptor$1).pj = function (encoder, value) {
1891
- // Inline function 'kotlin.error' call
1892
- var message = 'unsupported';
1893
- throw IllegalStateException_init_$Create$(toString(message));
1894
- };
1895
- function jsonCachedSerialNames(_this__u8e3s4) {
1896
- return cachedSerialNames(_this__u8e3s4);
1897
- }
1898
- function NoOpEncoder() {
1899
- NoOpEncoder_instance = this;
1900
- AbstractEncoder.call(this);
1901
- this.gq_1 = EmptySerializersModule_0();
1902
- }
1903
- protoOf(NoOpEncoder).tm = function () {
1904
- return this.gq_1;
1905
- };
1906
- protoOf(NoOpEncoder).tl = function (value) {
1907
- return Unit_instance;
1908
- };
1909
- protoOf(NoOpEncoder).ul = function () {
1910
- return Unit_instance;
1911
- };
1912
- protoOf(NoOpEncoder).vl = function (value) {
1913
- return Unit_instance;
1914
- };
1915
- protoOf(NoOpEncoder).wl = function (value) {
1916
- return Unit_instance;
1917
- };
1918
- protoOf(NoOpEncoder).xl = function (value) {
1919
- return Unit_instance;
1920
- };
1921
- protoOf(NoOpEncoder).yl = function (value) {
1922
- return Unit_instance;
1923
- };
1924
- protoOf(NoOpEncoder).zl = function (value) {
1925
- return Unit_instance;
1926
- };
1927
- protoOf(NoOpEncoder).am = function (value) {
1928
- return Unit_instance;
1929
- };
1930
- protoOf(NoOpEncoder).bm = function (value) {
1931
- return Unit_instance;
1932
- };
1933
- protoOf(NoOpEncoder).cm = function (value) {
1934
- return Unit_instance;
1935
- };
1936
- protoOf(NoOpEncoder).dm = function (value) {
1937
- return Unit_instance;
1938
- };
1939
- var NoOpEncoder_instance;
1940
- function NoOpEncoder_getInstance() {
1941
- if (NoOpEncoder_instance == null)
1942
- new NoOpEncoder();
1943
- return NoOpEncoder_instance;
1944
- }
1945
- function error($this) {
1946
- throw IllegalStateException_init_$Create$('Descriptor for type `kotlin.Nothing` does not have elements');
1947
- }
1948
- function NothingSerialDescriptor() {
1949
- NothingSerialDescriptor_instance = this;
1950
- this.hq_1 = OBJECT_getInstance();
1951
- this.iq_1 = 'kotlin.Nothing';
1952
- }
1953
- protoOf(NothingSerialDescriptor).qk = function () {
1954
- return this.hq_1;
1955
- };
1956
- protoOf(NothingSerialDescriptor).pk = function () {
1957
- return this.iq_1;
1958
- };
1959
- protoOf(NothingSerialDescriptor).sk = function () {
1960
- return 0;
1961
- };
1962
- protoOf(NothingSerialDescriptor).uk = function (index) {
1963
- error(this);
1964
- };
1965
- protoOf(NothingSerialDescriptor).vk = function (index) {
1966
- error(this);
1967
- };
1968
- protoOf(NothingSerialDescriptor).toString = function () {
1969
- return 'NothingSerialDescriptor';
1970
- };
1971
- protoOf(NothingSerialDescriptor).equals = function (other) {
1972
- return this === other;
1973
- };
1974
- protoOf(NothingSerialDescriptor).hashCode = function () {
1975
- return getStringHashCode(this.iq_1) + imul(31, this.hq_1.hashCode()) | 0;
1976
- };
1977
- var NothingSerialDescriptor_instance;
1978
- function NothingSerialDescriptor_getInstance() {
1979
- if (NothingSerialDescriptor_instance == null)
1980
- new NothingSerialDescriptor();
1981
- return NothingSerialDescriptor_instance;
1982
- }
1983
- function NullableSerializer(serializer) {
1984
- this.jq_1 = serializer;
1985
- this.kq_1 = new SerialDescriptorForNullable(this.jq_1.oj());
1986
- }
1987
- protoOf(NullableSerializer).oj = function () {
1988
- return this.kq_1;
1989
- };
1990
- protoOf(NullableSerializer).lq = function (encoder, value) {
1991
- if (!(value == null)) {
1992
- encoder.um();
1993
- encoder.qm(this.jq_1, value);
1994
- } else {
1995
- encoder.ul();
1996
- }
1997
- };
1998
- protoOf(NullableSerializer).pj = function (encoder, value) {
1999
- return this.lq(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
2000
- };
2001
- protoOf(NullableSerializer).equals = function (other) {
2002
- if (this === other)
2003
- return true;
2004
- if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
2005
- return false;
2006
- if (!(other instanceof NullableSerializer))
2007
- THROW_CCE();
2008
- if (!equals(this.jq_1, other.jq_1))
2009
- return false;
2010
- return true;
2011
- };
2012
- protoOf(NullableSerializer).hashCode = function () {
2013
- return hashCode(this.jq_1);
2014
- };
2015
- function SerialDescriptorForNullable(original) {
2016
- this.wk_1 = original;
2017
- this.xk_1 = this.wk_1.pk() + '?';
2018
- this.yk_1 = cachedSerialNames(this.wk_1);
2019
- }
2020
- protoOf(SerialDescriptorForNullable).pk = function () {
2021
- return this.xk_1;
2022
- };
2023
- protoOf(SerialDescriptorForNullable).pl = function () {
2024
- return this.yk_1;
2025
- };
2026
- protoOf(SerialDescriptorForNullable).lk = function () {
2027
- return true;
2028
- };
2029
- protoOf(SerialDescriptorForNullable).equals = function (other) {
2030
- if (this === other)
2031
- return true;
2032
- if (!(other instanceof SerialDescriptorForNullable))
2033
- return false;
2034
- if (!equals(this.wk_1, other.wk_1))
2035
- return false;
2036
- return true;
2037
- };
2038
- protoOf(SerialDescriptorForNullable).toString = function () {
2039
- return toString(this.wk_1) + '?';
2040
- };
2041
- protoOf(SerialDescriptorForNullable).hashCode = function () {
2042
- return imul(hashCode(this.wk_1), 31);
2043
- };
2044
- protoOf(SerialDescriptorForNullable).qk = function () {
2045
- return this.wk_1.qk();
2046
- };
2047
- protoOf(SerialDescriptorForNullable).rk = function () {
2048
- return this.wk_1.rk();
2049
- };
2050
- protoOf(SerialDescriptorForNullable).sk = function () {
2051
- return this.wk_1.sk();
2052
- };
2053
- protoOf(SerialDescriptorForNullable).tk = function () {
2054
- return this.wk_1.tk();
2055
- };
2056
- protoOf(SerialDescriptorForNullable).uk = function (index) {
2057
- return this.wk_1.uk(index);
2058
- };
2059
- protoOf(SerialDescriptorForNullable).vk = function (index) {
2060
- return this.wk_1.vk(index);
2061
- };
2062
- function ObjectSerializer$descriptor$delegate$lambda$lambda(this$0) {
2063
- return function ($this$buildSerialDescriptor) {
2064
- $this$buildSerialDescriptor.sj_1 = this$0.nq_1;
2065
- return Unit_instance;
2066
- };
2067
- }
2068
- function ObjectSerializer$descriptor$delegate$lambda($serialName, this$0) {
2069
- return function () {
2070
- var tmp = OBJECT_getInstance();
2071
- return buildSerialDescriptor($serialName, tmp, [], ObjectSerializer$descriptor$delegate$lambda$lambda(this$0));
2072
- };
2073
- }
2074
- function ObjectSerializer(serialName, objectInstance) {
2075
- this.mq_1 = objectInstance;
2076
- this.nq_1 = emptyList();
2077
- var tmp = this;
2078
- var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2079
- tmp.oq_1 = lazy(tmp_0, ObjectSerializer$descriptor$delegate$lambda(serialName, this));
2080
- }
2081
- protoOf(ObjectSerializer).oj = function () {
2082
- var tmp0 = this.oq_1;
2083
- // Inline function 'kotlin.getValue' call
2084
- descriptor$factory_1();
2085
- return tmp0.z();
2086
- };
2087
- protoOf(ObjectSerializer).dk = function (encoder, value) {
2088
- encoder.ql(this.oj()).rl(this.oj());
2089
- };
2090
- protoOf(ObjectSerializer).pj = function (encoder, value) {
2091
- return this.dk(encoder, !(value == null) ? value : THROW_CCE());
2092
- };
2093
- function descriptor$factory_1() {
2094
- return getPropertyCallableRef('descriptor', 1, KProperty1, function (receiver) {
2095
- return receiver.oj();
2096
- }, null);
2097
- }
2098
- function get_EMPTY_DESCRIPTOR_ARRAY() {
2099
- _init_properties_Platform_common_kt__3qzecs();
2100
- return EMPTY_DESCRIPTOR_ARRAY;
2101
- }
2102
- var EMPTY_DESCRIPTOR_ARRAY;
2103
- function cachedSerialNames(_this__u8e3s4) {
2104
- _init_properties_Platform_common_kt__3qzecs();
2105
- if (isInterface(_this__u8e3s4, CachedNames))
2106
- return _this__u8e3s4.pl();
2107
- var result = HashSet_init_$Create$_0(_this__u8e3s4.sk());
2108
- var inductionVariable = 0;
2109
- var last = _this__u8e3s4.sk();
2110
- if (inductionVariable < last)
2111
- do {
2112
- var i = inductionVariable;
2113
- inductionVariable = inductionVariable + 1 | 0;
2114
- // Inline function 'kotlin.collections.plusAssign' call
2115
- var element = _this__u8e3s4.uk(i);
2116
- result.e(element);
2117
- }
2118
- while (inductionVariable < last);
2119
- return result;
2120
- }
2121
- function kclass(_this__u8e3s4) {
2122
- _init_properties_Platform_common_kt__3qzecs();
2123
- var t = _this__u8e3s4.oa();
2124
- var tmp;
2125
- if (!(t == null) ? isInterface(t, KClass) : false) {
2126
- tmp = t;
2127
- } else {
2128
- if (!(t == null) ? isInterface(t, KTypeParameter) : false) {
2129
- throw IllegalArgumentException_init_$Create$('Captured type parameter ' + toString(t) + ' from generic non-reified function. ' + ('Such functionality cannot be supported because ' + toString(t) + ' is erased, either specify serializer explicitly or make ') + ('calling function inline with reified ' + toString(t) + '.'));
2130
- } else {
2131
- throw IllegalArgumentException_init_$Create$('Only KClass supported as classifier, got ' + toString_0(t));
2132
- }
2133
- }
2134
- var tmp_0 = tmp;
2135
- return isInterface(tmp_0, KClass) ? tmp_0 : THROW_CCE();
2136
- }
2137
- function typeOrThrow(_this__u8e3s4) {
2138
- _init_properties_Platform_common_kt__3qzecs();
2139
- var tmp0 = _this__u8e3s4.hg_1;
2140
- var tmp$ret$1;
2141
- $l$block: {
2142
- // Inline function 'kotlin.requireNotNull' call
2143
- if (tmp0 == null) {
2144
- // Inline function 'kotlinx.serialization.internal.typeOrThrow.<anonymous>' call
2145
- var message = 'Star projections in type arguments are not allowed, but had ' + toString_0(_this__u8e3s4.hg_1);
2146
- throw IllegalArgumentException_init_$Create$(toString(message));
2147
- } else {
2148
- tmp$ret$1 = tmp0;
2149
- break $l$block;
2150
- }
2151
- }
2152
- return tmp$ret$1;
2153
- }
2154
- function notRegisteredMessage(_this__u8e3s4) {
2155
- _init_properties_Platform_common_kt__3qzecs();
2156
- var tmp0_elvis_lhs = _this__u8e3s4.aa();
2157
- return notRegisteredMessage_0(tmp0_elvis_lhs == null ? '<local class name not available>' : tmp0_elvis_lhs);
2158
- }
2159
- function compactArray(_this__u8e3s4) {
2160
- _init_properties_Platform_common_kt__3qzecs();
2161
- // Inline function 'kotlin.takeUnless' call
2162
- var tmp;
2163
- // Inline function 'kotlinx.serialization.internal.compactArray.<anonymous>' call
2164
- // Inline function 'kotlin.collections.isNullOrEmpty' call
2165
- if (!(_this__u8e3s4 == null || _this__u8e3s4.j())) {
2166
- tmp = _this__u8e3s4;
2167
- } else {
2168
- tmp = null;
2169
- }
2170
- var tmp0_safe_receiver = tmp;
2171
- var tmp_0;
2172
- if (tmp0_safe_receiver == null) {
2173
- tmp_0 = null;
2174
- } else {
2175
- // Inline function 'kotlin.collections.toTypedArray' call
2176
- tmp_0 = copyToArray(tmp0_safe_receiver);
2177
- }
2178
- var tmp1_elvis_lhs = tmp_0;
2179
- return tmp1_elvis_lhs == null ? get_EMPTY_DESCRIPTOR_ARRAY() : tmp1_elvis_lhs;
2180
- }
2181
- function notRegisteredMessage_0(className) {
2182
- _init_properties_Platform_common_kt__3qzecs();
2183
- return "Serializer for class '" + className + "' is not found.\n" + "Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.\n";
2184
- }
2185
- var properties_initialized_Platform_common_kt_i7q4ty;
2186
- function _init_properties_Platform_common_kt__3qzecs() {
2187
- if (!properties_initialized_Platform_common_kt_i7q4ty) {
2188
- properties_initialized_Platform_common_kt_i7q4ty = true;
2189
- // Inline function 'kotlin.arrayOf' call
2190
- // Inline function 'kotlin.js.unsafeCast' call
2191
- // Inline function 'kotlin.js.asDynamic' call
2192
- EMPTY_DESCRIPTOR_ARRAY = [];
2193
- }
2194
- }
2195
- function hashCodeImpl(_this__u8e3s4, typeParams) {
2196
- var result = getStringHashCode(_this__u8e3s4.pk());
2197
- result = imul(31, result) + contentHashCode(typeParams) | 0;
2198
- var elementDescriptors = get_elementDescriptors(_this__u8e3s4);
2199
- // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
2200
- // Inline function 'kotlin.collections.fold' call
2201
- var accumulator = 1;
2202
- var _iterator__ex2g4s = elementDescriptors.m();
2203
- while (_iterator__ex2g4s.n()) {
2204
- var element = _iterator__ex2g4s.o();
2205
- // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy.<anonymous>' call
2206
- var hash = accumulator;
2207
- var tmp = imul(31, hash);
2208
- // Inline function 'kotlinx.serialization.internal.hashCodeImpl.<anonymous>' call
2209
- // Inline function 'kotlin.hashCode' call
2210
- var tmp0_safe_receiver = element.pk();
2211
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
2212
- accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
2213
- }
2214
- var namesHash = accumulator;
2215
- // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
2216
- // Inline function 'kotlin.collections.fold' call
2217
- var accumulator_0 = 1;
2218
- var _iterator__ex2g4s_0 = elementDescriptors.m();
2219
- while (_iterator__ex2g4s_0.n()) {
2220
- var element_0 = _iterator__ex2g4s_0.o();
2221
- // Inline function 'kotlinx.serialization.internal.elementsHashCodeBy.<anonymous>' call
2222
- var hash_0 = accumulator_0;
2223
- var tmp_0 = imul(31, hash_0);
2224
- // Inline function 'kotlinx.serialization.internal.hashCodeImpl.<anonymous>' call
2225
- // Inline function 'kotlin.hashCode' call
2226
- var tmp0_safe_receiver_0 = element_0.qk();
2227
- var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
2228
- accumulator_0 = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
2229
- }
2230
- var kindHash = accumulator_0;
2231
- result = imul(31, result) + namesHash | 0;
2232
- result = imul(31, result) + kindHash | 0;
2233
- return result;
2234
- }
2235
- function _get_childSerializers__7vnyfa($this) {
2236
- var tmp0 = $this.yp_1;
2237
- // Inline function 'kotlin.getValue' call
2238
- childSerializers$factory();
2239
- return tmp0.z();
2240
- }
2241
- function _get__hashCode__tgwhef_0($this) {
2242
- var tmp0 = $this.aq_1;
2243
- // Inline function 'kotlin.getValue' call
2244
- _hashCode$factory_0();
2245
- return tmp0.z();
2246
- }
2247
- function buildIndices($this) {
2248
- var indices = HashMap_init_$Create$();
2249
- var inductionVariable = 0;
2250
- var last = $this.tp_1.length - 1 | 0;
2251
- if (inductionVariable <= last)
2252
- do {
2253
- var i = inductionVariable;
2254
- inductionVariable = inductionVariable + 1 | 0;
2255
- // Inline function 'kotlin.collections.set' call
2256
- var key = $this.tp_1[i];
2257
- indices.e2(key, i);
2258
- }
2259
- while (inductionVariable <= last);
2260
- return indices;
2261
- }
2262
- function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) {
2263
- return function () {
2264
- var tmp0_safe_receiver = this$0.qp_1;
2265
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.eq();
2266
- return tmp1_elvis_lhs == null ? get_EMPTY_SERIALIZER_ARRAY() : tmp1_elvis_lhs;
2267
- };
2268
- }
2269
- function PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this$0) {
2270
- return function () {
2271
- var tmp0_safe_receiver = this$0.qp_1;
2272
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq();
2273
- var tmp;
2274
- if (tmp1_safe_receiver == null) {
2275
- tmp = null;
2276
- } else {
2277
- // Inline function 'kotlin.collections.map' call
2278
- // Inline function 'kotlin.collections.mapTo' call
2279
- var destination = ArrayList_init_$Create$(tmp1_safe_receiver.length);
2280
- var inductionVariable = 0;
2281
- var last = tmp1_safe_receiver.length;
2282
- while (inductionVariable < last) {
2283
- var item = tmp1_safe_receiver[inductionVariable];
2284
- inductionVariable = inductionVariable + 1 | 0;
2285
- // Inline function 'kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.typeParameterDescriptors$delegate.<anonymous>.<anonymous>' call
2286
- var tmp$ret$0 = item.oj();
2287
- destination.e(tmp$ret$0);
2288
- }
2289
- tmp = destination;
2290
- }
2291
- return compactArray(tmp);
2292
- };
2293
- }
2294
- function PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this$0) {
2295
- return function () {
2296
- return hashCodeImpl(this$0, this$0.bq());
2297
- };
2298
- }
2299
- function PluginGeneratedSerialDescriptor$toString$lambda(this$0) {
2300
- return function (i) {
2301
- return this$0.uk(i) + ': ' + this$0.vk(i).pk();
2302
- };
2303
- }
2304
- function PluginGeneratedSerialDescriptor(serialName, generatedSerializer, elementsCount) {
2305
- generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer;
2306
- this.pp_1 = serialName;
2307
- this.qp_1 = generatedSerializer;
2308
- this.rp_1 = elementsCount;
2309
- this.sp_1 = -1;
2310
- var tmp = this;
2311
- var tmp_0 = 0;
2312
- var tmp_1 = this.rp_1;
2313
- // Inline function 'kotlin.arrayOfNulls' call
2314
- var tmp_2 = fillArrayVal(Array(tmp_1), null);
2315
- while (tmp_0 < tmp_1) {
2316
- tmp_2[tmp_0] = '[UNINITIALIZED]';
2317
- tmp_0 = tmp_0 + 1 | 0;
2318
- }
2319
- tmp.tp_1 = tmp_2;
2320
- var tmp_3 = this;
2321
- // Inline function 'kotlin.arrayOfNulls' call
2322
- var size = this.rp_1;
2323
- tmp_3.up_1 = fillArrayVal(Array(size), null);
2324
- this.vp_1 = null;
2325
- this.wp_1 = booleanArray(this.rp_1);
2326
- this.xp_1 = emptyMap();
2327
- var tmp_4 = this;
2328
- var tmp_5 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2329
- tmp_4.yp_1 = lazy(tmp_5, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this));
2330
- var tmp_6 = this;
2331
- var tmp_7 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2332
- tmp_6.zp_1 = lazy(tmp_7, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this));
2333
- var tmp_8 = this;
2334
- var tmp_9 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2335
- tmp_8.aq_1 = lazy(tmp_9, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this));
2336
- }
2337
- protoOf(PluginGeneratedSerialDescriptor).pk = function () {
2338
- return this.pp_1;
2339
- };
2340
- protoOf(PluginGeneratedSerialDescriptor).sk = function () {
2341
- return this.rp_1;
2342
- };
2343
- protoOf(PluginGeneratedSerialDescriptor).qk = function () {
2344
- return CLASS_getInstance();
2345
- };
2346
- protoOf(PluginGeneratedSerialDescriptor).tk = function () {
2347
- var tmp0_elvis_lhs = this.vp_1;
2348
- return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
2349
- };
2350
- protoOf(PluginGeneratedSerialDescriptor).pl = function () {
2351
- return this.xp_1.x1();
2352
- };
2353
- protoOf(PluginGeneratedSerialDescriptor).bq = function () {
2354
- var tmp0 = this.zp_1;
2355
- // Inline function 'kotlin.getValue' call
2356
- typeParameterDescriptors$factory();
2357
- return tmp0.z();
2358
- };
2359
- protoOf(PluginGeneratedSerialDescriptor).cq = function (name, isOptional) {
2360
- this.sp_1 = this.sp_1 + 1 | 0;
2361
- this.tp_1[this.sp_1] = name;
2362
- this.wp_1[this.sp_1] = isOptional;
2363
- this.up_1[this.sp_1] = null;
2364
- if (this.sp_1 === (this.rp_1 - 1 | 0)) {
2365
- this.xp_1 = buildIndices(this);
2366
- }
2367
- };
2368
- protoOf(PluginGeneratedSerialDescriptor).vk = function (index) {
2369
- return getChecked(_get_childSerializers__7vnyfa(this), index).oj();
2370
- };
2371
- protoOf(PluginGeneratedSerialDescriptor).uk = function (index) {
2372
- return getChecked(this.tp_1, index);
2373
- };
2374
- protoOf(PluginGeneratedSerialDescriptor).equals = function (other) {
2375
- var tmp$ret$0;
2376
- $l$block_5: {
2377
- // Inline function 'kotlinx.serialization.internal.equalsImpl' call
2378
- if (this === other) {
2379
- tmp$ret$0 = true;
2380
- break $l$block_5;
2381
- }
2382
- if (!(other instanceof PluginGeneratedSerialDescriptor)) {
2383
- tmp$ret$0 = false;
2384
- break $l$block_5;
2385
- }
2386
- if (!(this.pk() === other.pk())) {
2387
- tmp$ret$0 = false;
2388
- break $l$block_5;
2389
- }
2390
- // Inline function 'kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.equals.<anonymous>' call
2391
- if (!contentEquals(this.bq(), other.bq())) {
2392
- tmp$ret$0 = false;
2393
- break $l$block_5;
2394
- }
2395
- if (!(this.sk() === other.sk())) {
2396
- tmp$ret$0 = false;
2397
- break $l$block_5;
2398
- }
2399
- var inductionVariable = 0;
2400
- var last = this.sk();
2401
- if (inductionVariable < last)
2402
- do {
2403
- var index = inductionVariable;
2404
- inductionVariable = inductionVariable + 1 | 0;
2405
- if (!(this.vk(index).pk() === other.vk(index).pk())) {
2406
- tmp$ret$0 = false;
2407
- break $l$block_5;
2408
- }
2409
- if (!equals(this.vk(index).qk(), other.vk(index).qk())) {
2410
- tmp$ret$0 = false;
2411
- break $l$block_5;
2412
- }
2413
- }
2414
- while (inductionVariable < last);
2415
- tmp$ret$0 = true;
2416
- }
2417
- return tmp$ret$0;
2418
- };
2419
- protoOf(PluginGeneratedSerialDescriptor).hashCode = function () {
2420
- return _get__hashCode__tgwhef_0(this);
2421
- };
2422
- protoOf(PluginGeneratedSerialDescriptor).toString = function () {
2423
- var tmp = until(0, this.rp_1);
2424
- var tmp_0 = this.pk() + '(';
2425
- return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, PluginGeneratedSerialDescriptor$toString$lambda(this));
2426
- };
2427
- function childSerializers$factory() {
2428
- return getPropertyCallableRef('childSerializers', 1, KProperty1, function (receiver) {
2429
- return _get_childSerializers__7vnyfa(receiver);
2430
- }, null);
2431
- }
2432
- function typeParameterDescriptors$factory() {
2433
- return getPropertyCallableRef('typeParameterDescriptors', 1, KProperty1, function (receiver) {
2434
- return receiver.bq();
2435
- }, null);
2436
- }
2437
- function _hashCode$factory_0() {
2438
- return getPropertyCallableRef('_hashCode', 1, KProperty1, function (receiver) {
2439
- return _get__hashCode__tgwhef_0(receiver);
2440
- }, null);
2441
- }
2442
- function get_EMPTY_SERIALIZER_ARRAY() {
2443
- _init_properties_PluginHelperInterfaces_kt__xgvzfp();
2444
- return EMPTY_SERIALIZER_ARRAY;
2445
- }
2446
- var EMPTY_SERIALIZER_ARRAY;
2447
- function SerializerFactory() {
2448
- }
2449
- function GeneratedSerializer() {
2450
- }
2451
- var properties_initialized_PluginHelperInterfaces_kt_ap8in1;
2452
- function _init_properties_PluginHelperInterfaces_kt__xgvzfp() {
2453
- if (!properties_initialized_PluginHelperInterfaces_kt_ap8in1) {
2454
- properties_initialized_PluginHelperInterfaces_kt_ap8in1 = true;
2455
- // Inline function 'kotlin.arrayOf' call
2456
- // Inline function 'kotlin.js.unsafeCast' call
2457
- // Inline function 'kotlin.js.asDynamic' call
2458
- EMPTY_SERIALIZER_ARRAY = [];
2459
- }
2460
- }
2461
- function CharArraySerializer_0() {
2462
- CharArraySerializer_instance = this;
2463
- PrimitiveArraySerializer.call(this, serializer_1(Companion_getInstance()));
2464
- }
2465
- protoOf(CharArraySerializer_0).sq = function (_this__u8e3s4) {
2466
- return _this__u8e3s4.length;
2467
- };
2468
- protoOf(CharArraySerializer_0).ko = function (_this__u8e3s4) {
2469
- return this.sq((!(_this__u8e3s4 == null) ? isCharArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2470
- };
2471
- protoOf(CharArraySerializer_0).tq = function (encoder, content, size) {
2472
- var inductionVariable = 0;
2473
- if (inductionVariable < size)
2474
- do {
2475
- var i = inductionVariable;
2476
- inductionVariable = inductionVariable + 1 | 0;
2477
- encoder.mm(this.yo_1, i, content[i]);
2478
- }
2479
- while (inductionVariable < size);
2480
- };
2481
- protoOf(CharArraySerializer_0).ap = function (encoder, content, size) {
2482
- return this.tq(encoder, (!(content == null) ? isCharArray(content) : false) ? content : THROW_CCE(), size);
2483
- };
2484
- var CharArraySerializer_instance;
2485
- function CharArraySerializer_getInstance() {
2486
- if (CharArraySerializer_instance == null)
2487
- new CharArraySerializer_0();
2488
- return CharArraySerializer_instance;
2489
- }
2490
- function DoubleArraySerializer_0() {
2491
- DoubleArraySerializer_instance = this;
2492
- PrimitiveArraySerializer.call(this, serializer_2(DoubleCompanionObject_instance));
2493
- }
2494
- protoOf(DoubleArraySerializer_0).wq = function (_this__u8e3s4) {
2495
- return _this__u8e3s4.length;
2496
- };
2497
- protoOf(DoubleArraySerializer_0).ko = function (_this__u8e3s4) {
2498
- return this.wq((!(_this__u8e3s4 == null) ? isDoubleArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2499
- };
2500
- protoOf(DoubleArraySerializer_0).xq = function (encoder, content, size) {
2501
- var inductionVariable = 0;
2502
- if (inductionVariable < size)
2503
- do {
2504
- var i = inductionVariable;
2505
- inductionVariable = inductionVariable + 1 | 0;
2506
- encoder.lm(this.yo_1, i, content[i]);
2507
- }
2508
- while (inductionVariable < size);
2509
- };
2510
- protoOf(DoubleArraySerializer_0).ap = function (encoder, content, size) {
2511
- return this.xq(encoder, (!(content == null) ? isDoubleArray(content) : false) ? content : THROW_CCE(), size);
2512
- };
2513
- var DoubleArraySerializer_instance;
2514
- function DoubleArraySerializer_getInstance() {
2515
- if (DoubleArraySerializer_instance == null)
2516
- new DoubleArraySerializer_0();
2517
- return DoubleArraySerializer_instance;
2518
- }
2519
- function FloatArraySerializer_0() {
2520
- FloatArraySerializer_instance = this;
2521
- PrimitiveArraySerializer.call(this, serializer_3(FloatCompanionObject_instance));
2522
- }
2523
- protoOf(FloatArraySerializer_0).ar = function (_this__u8e3s4) {
2524
- return _this__u8e3s4.length;
2525
- };
2526
- protoOf(FloatArraySerializer_0).ko = function (_this__u8e3s4) {
2527
- return this.ar((!(_this__u8e3s4 == null) ? isFloatArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2528
- };
2529
- protoOf(FloatArraySerializer_0).br = function (encoder, content, size) {
2530
- var inductionVariable = 0;
2531
- if (inductionVariable < size)
2532
- do {
2533
- var i = inductionVariable;
2534
- inductionVariable = inductionVariable + 1 | 0;
2535
- encoder.km(this.yo_1, i, content[i]);
2536
- }
2537
- while (inductionVariable < size);
2538
- };
2539
- protoOf(FloatArraySerializer_0).ap = function (encoder, content, size) {
2540
- return this.br(encoder, (!(content == null) ? isFloatArray(content) : false) ? content : THROW_CCE(), size);
2541
- };
2542
- var FloatArraySerializer_instance;
2543
- function FloatArraySerializer_getInstance() {
2544
- if (FloatArraySerializer_instance == null)
2545
- new FloatArraySerializer_0();
2546
- return FloatArraySerializer_instance;
2547
- }
2548
- function LongArraySerializer_0() {
2549
- LongArraySerializer_instance = this;
2550
- PrimitiveArraySerializer.call(this, serializer_4(Companion_getInstance_0()));
2551
- }
2552
- protoOf(LongArraySerializer_0).er = function (_this__u8e3s4) {
2553
- return _this__u8e3s4.length;
2554
- };
2555
- protoOf(LongArraySerializer_0).ko = function (_this__u8e3s4) {
2556
- return this.er((!(_this__u8e3s4 == null) ? isLongArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2557
- };
2558
- protoOf(LongArraySerializer_0).fr = function (encoder, content, size) {
2559
- var inductionVariable = 0;
2560
- if (inductionVariable < size)
2561
- do {
2562
- var i = inductionVariable;
2563
- inductionVariable = inductionVariable + 1 | 0;
2564
- encoder.jm(this.yo_1, i, content[i]);
2565
- }
2566
- while (inductionVariable < size);
2567
- };
2568
- protoOf(LongArraySerializer_0).ap = function (encoder, content, size) {
2569
- return this.fr(encoder, (!(content == null) ? isLongArray(content) : false) ? content : THROW_CCE(), size);
2570
- };
2571
- var LongArraySerializer_instance;
2572
- function LongArraySerializer_getInstance() {
2573
- if (LongArraySerializer_instance == null)
2574
- new LongArraySerializer_0();
2575
- return LongArraySerializer_instance;
2576
- }
2577
- function ULongArraySerializer_0() {
2578
- ULongArraySerializer_instance = this;
2579
- PrimitiveArraySerializer.call(this, serializer_5(Companion_getInstance_1()));
2580
- }
2581
- protoOf(ULongArraySerializer_0).ir = function (_this__u8e3s4) {
2582
- return _ULongArray___get_size__impl__ju6dtr(_this__u8e3s4);
2583
- };
2584
- protoOf(ULongArraySerializer_0).ko = function (_this__u8e3s4) {
2585
- return this.ir(_this__u8e3s4 instanceof ULongArray ? _this__u8e3s4.bj_1 : THROW_CCE());
2586
- };
2587
- protoOf(ULongArraySerializer_0).jr = function (encoder, content, size) {
2588
- var inductionVariable = 0;
2589
- if (inductionVariable < size)
2590
- do {
2591
- var i = inductionVariable;
2592
- inductionVariable = inductionVariable + 1 | 0;
2593
- var tmp = encoder.om(this.yo_1, i);
2594
- // Inline function 'kotlin.ULong.toLong' call
2595
- var this_0 = ULongArray__get_impl_pr71q9(content, i);
2596
- var tmp$ret$0 = _ULong___get_data__impl__fggpzb(this_0);
2597
- tmp.zl(tmp$ret$0);
2598
- }
2599
- while (inductionVariable < size);
2600
- };
2601
- protoOf(ULongArraySerializer_0).ap = function (encoder, content, size) {
2602
- return this.jr(encoder, content instanceof ULongArray ? content.bj_1 : THROW_CCE(), size);
2603
- };
2604
- var ULongArraySerializer_instance;
2605
- function ULongArraySerializer_getInstance() {
2606
- if (ULongArraySerializer_instance == null)
2607
- new ULongArraySerializer_0();
2608
- return ULongArraySerializer_instance;
2609
- }
2610
- function IntArraySerializer_0() {
2611
- IntArraySerializer_instance = this;
2612
- PrimitiveArraySerializer.call(this, serializer_6(IntCompanionObject_instance));
2613
- }
2614
- protoOf(IntArraySerializer_0).mr = function (_this__u8e3s4) {
2615
- return _this__u8e3s4.length;
2616
- };
2617
- protoOf(IntArraySerializer_0).ko = function (_this__u8e3s4) {
2618
- return this.mr((!(_this__u8e3s4 == null) ? isIntArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2619
- };
2620
- protoOf(IntArraySerializer_0).nr = function (encoder, content, size) {
2621
- var inductionVariable = 0;
2622
- if (inductionVariable < size)
2623
- do {
2624
- var i = inductionVariable;
2625
- inductionVariable = inductionVariable + 1 | 0;
2626
- encoder.im(this.yo_1, i, content[i]);
2627
- }
2628
- while (inductionVariable < size);
2629
- };
2630
- protoOf(IntArraySerializer_0).ap = function (encoder, content, size) {
2631
- return this.nr(encoder, (!(content == null) ? isIntArray(content) : false) ? content : THROW_CCE(), size);
2632
- };
2633
- var IntArraySerializer_instance;
2634
- function IntArraySerializer_getInstance() {
2635
- if (IntArraySerializer_instance == null)
2636
- new IntArraySerializer_0();
2637
- return IntArraySerializer_instance;
2638
- }
2639
- function UIntArraySerializer_0() {
2640
- UIntArraySerializer_instance = this;
2641
- PrimitiveArraySerializer.call(this, serializer_7(Companion_getInstance_2()));
2642
- }
2643
- protoOf(UIntArraySerializer_0).qr = function (_this__u8e3s4) {
2644
- return _UIntArray___get_size__impl__r6l8ci(_this__u8e3s4);
2645
- };
2646
- protoOf(UIntArraySerializer_0).ko = function (_this__u8e3s4) {
2647
- return this.qr(_this__u8e3s4 instanceof UIntArray ? _this__u8e3s4.qi_1 : THROW_CCE());
2648
- };
2649
- protoOf(UIntArraySerializer_0).rr = function (encoder, content, size) {
2650
- var inductionVariable = 0;
2651
- if (inductionVariable < size)
2652
- do {
2653
- var i = inductionVariable;
2654
- inductionVariable = inductionVariable + 1 | 0;
2655
- var tmp = encoder.om(this.yo_1, i);
2656
- // Inline function 'kotlin.UInt.toInt' call
2657
- var this_0 = UIntArray__get_impl_gp5kza(content, i);
2658
- var tmp$ret$0 = _UInt___get_data__impl__f0vqqw(this_0);
2659
- tmp.yl(tmp$ret$0);
2660
- }
2661
- while (inductionVariable < size);
2662
- };
2663
- protoOf(UIntArraySerializer_0).ap = function (encoder, content, size) {
2664
- return this.rr(encoder, content instanceof UIntArray ? content.qi_1 : THROW_CCE(), size);
2665
- };
2666
- var UIntArraySerializer_instance;
2667
- function UIntArraySerializer_getInstance() {
2668
- if (UIntArraySerializer_instance == null)
2669
- new UIntArraySerializer_0();
2670
- return UIntArraySerializer_instance;
2671
- }
2672
- function ShortArraySerializer_0() {
2673
- ShortArraySerializer_instance = this;
2674
- PrimitiveArraySerializer.call(this, serializer_8(ShortCompanionObject_instance));
2675
- }
2676
- protoOf(ShortArraySerializer_0).ur = function (_this__u8e3s4) {
2677
- return _this__u8e3s4.length;
2678
- };
2679
- protoOf(ShortArraySerializer_0).ko = function (_this__u8e3s4) {
2680
- return this.ur((!(_this__u8e3s4 == null) ? isShortArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2681
- };
2682
- protoOf(ShortArraySerializer_0).vr = function (encoder, content, size) {
2683
- var inductionVariable = 0;
2684
- if (inductionVariable < size)
2685
- do {
2686
- var i = inductionVariable;
2687
- inductionVariable = inductionVariable + 1 | 0;
2688
- encoder.hm(this.yo_1, i, content[i]);
2689
- }
2690
- while (inductionVariable < size);
2691
- };
2692
- protoOf(ShortArraySerializer_0).ap = function (encoder, content, size) {
2693
- return this.vr(encoder, (!(content == null) ? isShortArray(content) : false) ? content : THROW_CCE(), size);
2694
- };
2695
- var ShortArraySerializer_instance;
2696
- function ShortArraySerializer_getInstance() {
2697
- if (ShortArraySerializer_instance == null)
2698
- new ShortArraySerializer_0();
2699
- return ShortArraySerializer_instance;
2700
- }
2701
- function UShortArraySerializer_0() {
2702
- UShortArraySerializer_instance = this;
2703
- PrimitiveArraySerializer.call(this, serializer_9(Companion_getInstance_3()));
2704
- }
2705
- protoOf(UShortArraySerializer_0).yr = function (_this__u8e3s4) {
2706
- return _UShortArray___get_size__impl__jqto1b(_this__u8e3s4);
2707
- };
2708
- protoOf(UShortArraySerializer_0).ko = function (_this__u8e3s4) {
2709
- return this.yr(_this__u8e3s4 instanceof UShortArray ? _this__u8e3s4.mj_1 : THROW_CCE());
2710
- };
2711
- protoOf(UShortArraySerializer_0).zr = function (encoder, content, size) {
2712
- var inductionVariable = 0;
2713
- if (inductionVariable < size)
2714
- do {
2715
- var i = inductionVariable;
2716
- inductionVariable = inductionVariable + 1 | 0;
2717
- var tmp = encoder.om(this.yo_1, i);
2718
- // Inline function 'kotlin.UShort.toShort' call
2719
- var this_0 = UShortArray__get_impl_fnbhmx(content, i);
2720
- var tmp$ret$0 = _UShort___get_data__impl__g0245(this_0);
2721
- tmp.xl(tmp$ret$0);
2722
- }
2723
- while (inductionVariable < size);
2724
- };
2725
- protoOf(UShortArraySerializer_0).ap = function (encoder, content, size) {
2726
- return this.zr(encoder, content instanceof UShortArray ? content.mj_1 : THROW_CCE(), size);
2727
- };
2728
- var UShortArraySerializer_instance;
2729
- function UShortArraySerializer_getInstance() {
2730
- if (UShortArraySerializer_instance == null)
2731
- new UShortArraySerializer_0();
2732
- return UShortArraySerializer_instance;
2733
- }
2734
- function ByteArraySerializer_0() {
2735
- ByteArraySerializer_instance = this;
2736
- PrimitiveArraySerializer.call(this, serializer_10(ByteCompanionObject_instance));
2737
- }
2738
- protoOf(ByteArraySerializer_0).cs = function (_this__u8e3s4) {
2739
- return _this__u8e3s4.length;
2740
- };
2741
- protoOf(ByteArraySerializer_0).ko = function (_this__u8e3s4) {
2742
- return this.cs((!(_this__u8e3s4 == null) ? isByteArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2743
- };
2744
- protoOf(ByteArraySerializer_0).ds = function (encoder, content, size) {
2745
- var inductionVariable = 0;
2746
- if (inductionVariable < size)
2747
- do {
2748
- var i = inductionVariable;
2749
- inductionVariable = inductionVariable + 1 | 0;
2750
- encoder.gm(this.yo_1, i, content[i]);
2751
- }
2752
- while (inductionVariable < size);
2753
- };
2754
- protoOf(ByteArraySerializer_0).ap = function (encoder, content, size) {
2755
- return this.ds(encoder, (!(content == null) ? isByteArray(content) : false) ? content : THROW_CCE(), size);
2756
- };
2757
- var ByteArraySerializer_instance;
2758
- function ByteArraySerializer_getInstance() {
2759
- if (ByteArraySerializer_instance == null)
2760
- new ByteArraySerializer_0();
2761
- return ByteArraySerializer_instance;
2762
- }
2763
- function UByteArraySerializer_0() {
2764
- UByteArraySerializer_instance = this;
2765
- PrimitiveArraySerializer.call(this, serializer_11(Companion_getInstance_4()));
2766
- }
2767
- protoOf(UByteArraySerializer_0).gs = function (_this__u8e3s4) {
2768
- return _UByteArray___get_size__impl__h6pkdv(_this__u8e3s4);
2769
- };
2770
- protoOf(UByteArraySerializer_0).ko = function (_this__u8e3s4) {
2771
- return this.gs(_this__u8e3s4 instanceof UByteArray ? _this__u8e3s4.fi_1 : THROW_CCE());
2772
- };
2773
- protoOf(UByteArraySerializer_0).hs = function (encoder, content, size) {
2774
- var inductionVariable = 0;
2775
- if (inductionVariable < size)
2776
- do {
2777
- var i = inductionVariable;
2778
- inductionVariable = inductionVariable + 1 | 0;
2779
- var tmp = encoder.om(this.yo_1, i);
2780
- // Inline function 'kotlin.UByte.toByte' call
2781
- var this_0 = UByteArray__get_impl_t5f3hv(content, i);
2782
- var tmp$ret$0 = _UByte___get_data__impl__jof9qr(this_0);
2783
- tmp.wl(tmp$ret$0);
2784
- }
2785
- while (inductionVariable < size);
2786
- };
2787
- protoOf(UByteArraySerializer_0).ap = function (encoder, content, size) {
2788
- return this.hs(encoder, content instanceof UByteArray ? content.fi_1 : THROW_CCE(), size);
2789
- };
2790
- var UByteArraySerializer_instance;
2791
- function UByteArraySerializer_getInstance() {
2792
- if (UByteArraySerializer_instance == null)
2793
- new UByteArraySerializer_0();
2794
- return UByteArraySerializer_instance;
2795
- }
2796
- function BooleanArraySerializer_0() {
2797
- BooleanArraySerializer_instance = this;
2798
- PrimitiveArraySerializer.call(this, serializer_12(BooleanCompanionObject_instance));
2799
- }
2800
- protoOf(BooleanArraySerializer_0).ks = function (_this__u8e3s4) {
2801
- return _this__u8e3s4.length;
2802
- };
2803
- protoOf(BooleanArraySerializer_0).ko = function (_this__u8e3s4) {
2804
- return this.ks((!(_this__u8e3s4 == null) ? isBooleanArray(_this__u8e3s4) : false) ? _this__u8e3s4 : THROW_CCE());
2805
- };
2806
- protoOf(BooleanArraySerializer_0).ls = function (encoder, content, size) {
2807
- var inductionVariable = 0;
2808
- if (inductionVariable < size)
2809
- do {
2810
- var i = inductionVariable;
2811
- inductionVariable = inductionVariable + 1 | 0;
2812
- encoder.fm(this.yo_1, i, content[i]);
2813
- }
2814
- while (inductionVariable < size);
2815
- };
2816
- protoOf(BooleanArraySerializer_0).ap = function (encoder, content, size) {
2817
- return this.ls(encoder, (!(content == null) ? isBooleanArray(content) : false) ? content : THROW_CCE(), size);
2818
- };
2819
- var BooleanArraySerializer_instance;
2820
- function BooleanArraySerializer_getInstance() {
2821
- if (BooleanArraySerializer_instance == null)
2822
- new BooleanArraySerializer_0();
2823
- return BooleanArraySerializer_instance;
2824
- }
2825
- function get_BUILTIN_SERIALIZERS() {
2826
- _init_properties_Primitives_kt__k0eto4();
2827
- return BUILTIN_SERIALIZERS;
2828
- }
2829
- var BUILTIN_SERIALIZERS;
2830
- function builtinSerializerOrNull(_this__u8e3s4) {
2831
- _init_properties_Primitives_kt__k0eto4();
2832
- var tmp = get_BUILTIN_SERIALIZERS().w1(_this__u8e3s4);
2833
- return (tmp == null ? true : isInterface(tmp, KSerializer)) ? tmp : THROW_CCE();
2834
- }
2835
- function StringSerializer() {
2836
- StringSerializer_instance = this;
2837
- this.ms_1 = new PrimitiveSerialDescriptor_0('kotlin.String', STRING_getInstance());
2838
- }
2839
- protoOf(StringSerializer).oj = function () {
2840
- return this.ms_1;
2841
- };
2842
- protoOf(StringSerializer).ns = function (encoder, value) {
2843
- return encoder.dm(value);
2844
- };
2845
- protoOf(StringSerializer).pj = function (encoder, value) {
2846
- return this.ns(encoder, (!(value == null) ? typeof value === 'string' : false) ? value : THROW_CCE());
2847
- };
2848
- var StringSerializer_instance;
2849
- function StringSerializer_getInstance() {
2850
- if (StringSerializer_instance == null)
2851
- new StringSerializer();
2852
- return StringSerializer_instance;
2853
- }
2854
- function CharSerializer() {
2855
- CharSerializer_instance = this;
2856
- this.os_1 = new PrimitiveSerialDescriptor_0('kotlin.Char', CHAR_getInstance());
2857
- }
2858
- protoOf(CharSerializer).oj = function () {
2859
- return this.os_1;
2860
- };
2861
- protoOf(CharSerializer).ps = function (encoder, value) {
2862
- return encoder.cm(value);
2863
- };
2864
- protoOf(CharSerializer).pj = function (encoder, value) {
2865
- return this.ps(encoder, value instanceof Char ? value.f1_1 : THROW_CCE());
2866
- };
2867
- var CharSerializer_instance;
2868
- function CharSerializer_getInstance() {
2869
- if (CharSerializer_instance == null)
2870
- new CharSerializer();
2871
- return CharSerializer_instance;
2872
- }
2873
- function DoubleSerializer() {
2874
- DoubleSerializer_instance = this;
2875
- this.qs_1 = new PrimitiveSerialDescriptor_0('kotlin.Double', DOUBLE_getInstance());
2876
- }
2877
- protoOf(DoubleSerializer).oj = function () {
2878
- return this.qs_1;
2879
- };
2880
- protoOf(DoubleSerializer).rs = function (encoder, value) {
2881
- return encoder.bm(value);
2882
- };
2883
- protoOf(DoubleSerializer).pj = function (encoder, value) {
2884
- return this.rs(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
2885
- };
2886
- var DoubleSerializer_instance;
2887
- function DoubleSerializer_getInstance() {
2888
- if (DoubleSerializer_instance == null)
2889
- new DoubleSerializer();
2890
- return DoubleSerializer_instance;
2891
- }
2892
- function FloatSerializer() {
2893
- FloatSerializer_instance = this;
2894
- this.ss_1 = new PrimitiveSerialDescriptor_0('kotlin.Float', FLOAT_getInstance());
2895
- }
2896
- protoOf(FloatSerializer).oj = function () {
2897
- return this.ss_1;
2898
- };
2899
- protoOf(FloatSerializer).ts = function (encoder, value) {
2900
- return encoder.am(value);
2901
- };
2902
- protoOf(FloatSerializer).pj = function (encoder, value) {
2903
- return this.ts(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
2904
- };
2905
- var FloatSerializer_instance;
2906
- function FloatSerializer_getInstance() {
2907
- if (FloatSerializer_instance == null)
2908
- new FloatSerializer();
2909
- return FloatSerializer_instance;
2910
- }
2911
- function LongSerializer() {
2912
- LongSerializer_instance = this;
2913
- this.us_1 = new PrimitiveSerialDescriptor_0('kotlin.Long', LONG_getInstance());
2914
- }
2915
- protoOf(LongSerializer).oj = function () {
2916
- return this.us_1;
2917
- };
2918
- protoOf(LongSerializer).vs = function (encoder, value) {
2919
- return encoder.zl(value);
2920
- };
2921
- protoOf(LongSerializer).pj = function (encoder, value) {
2922
- return this.vs(encoder, value instanceof Long ? value : THROW_CCE());
2923
- };
2924
- var LongSerializer_instance;
2925
- function LongSerializer_getInstance() {
2926
- if (LongSerializer_instance == null)
2927
- new LongSerializer();
2928
- return LongSerializer_instance;
2929
- }
2930
- function IntSerializer() {
2931
- IntSerializer_instance = this;
2932
- this.ws_1 = new PrimitiveSerialDescriptor_0('kotlin.Int', INT_getInstance());
2933
- }
2934
- protoOf(IntSerializer).oj = function () {
2935
- return this.ws_1;
2936
- };
2937
- protoOf(IntSerializer).xs = function (encoder, value) {
2938
- return encoder.yl(value);
2939
- };
2940
- protoOf(IntSerializer).pj = function (encoder, value) {
2941
- return this.xs(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
2942
- };
2943
- var IntSerializer_instance;
2944
- function IntSerializer_getInstance() {
2945
- if (IntSerializer_instance == null)
2946
- new IntSerializer();
2947
- return IntSerializer_instance;
2948
- }
2949
- function ShortSerializer() {
2950
- ShortSerializer_instance = this;
2951
- this.ys_1 = new PrimitiveSerialDescriptor_0('kotlin.Short', SHORT_getInstance());
2952
- }
2953
- protoOf(ShortSerializer).oj = function () {
2954
- return this.ys_1;
2955
- };
2956
- protoOf(ShortSerializer).zs = function (encoder, value) {
2957
- return encoder.xl(value);
2958
- };
2959
- protoOf(ShortSerializer).pj = function (encoder, value) {
2960
- return this.zs(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
2961
- };
2962
- var ShortSerializer_instance;
2963
- function ShortSerializer_getInstance() {
2964
- if (ShortSerializer_instance == null)
2965
- new ShortSerializer();
2966
- return ShortSerializer_instance;
2967
- }
2968
- function ByteSerializer() {
2969
- ByteSerializer_instance = this;
2970
- this.at_1 = new PrimitiveSerialDescriptor_0('kotlin.Byte', BYTE_getInstance());
2971
- }
2972
- protoOf(ByteSerializer).oj = function () {
2973
- return this.at_1;
2974
- };
2975
- protoOf(ByteSerializer).bt = function (encoder, value) {
2976
- return encoder.wl(value);
2977
- };
2978
- protoOf(ByteSerializer).pj = function (encoder, value) {
2979
- return this.bt(encoder, (!(value == null) ? typeof value === 'number' : false) ? value : THROW_CCE());
2980
- };
2981
- var ByteSerializer_instance;
2982
- function ByteSerializer_getInstance() {
2983
- if (ByteSerializer_instance == null)
2984
- new ByteSerializer();
2985
- return ByteSerializer_instance;
2986
- }
2987
- function BooleanSerializer() {
2988
- BooleanSerializer_instance = this;
2989
- this.ct_1 = new PrimitiveSerialDescriptor_0('kotlin.Boolean', BOOLEAN_getInstance());
2990
- }
2991
- protoOf(BooleanSerializer).oj = function () {
2992
- return this.ct_1;
2993
- };
2994
- protoOf(BooleanSerializer).dt = function (encoder, value) {
2995
- return encoder.vl(value);
2996
- };
2997
- protoOf(BooleanSerializer).pj = function (encoder, value) {
2998
- return this.dt(encoder, (!(value == null) ? typeof value === 'boolean' : false) ? value : THROW_CCE());
2999
- };
3000
- var BooleanSerializer_instance;
3001
- function BooleanSerializer_getInstance() {
3002
- if (BooleanSerializer_instance == null)
3003
- new BooleanSerializer();
3004
- return BooleanSerializer_instance;
3005
- }
3006
- function UnitSerializer() {
3007
- UnitSerializer_instance = this;
3008
- this.et_1 = new ObjectSerializer('kotlin.Unit', Unit_instance);
3009
- }
3010
- protoOf(UnitSerializer).oj = function () {
3011
- return this.et_1.oj();
3012
- };
3013
- protoOf(UnitSerializer).ft = function (encoder, value) {
3014
- this.et_1.dk(encoder, Unit_instance);
3015
- };
3016
- protoOf(UnitSerializer).pj = function (encoder, value) {
3017
- return this.ft(encoder, value instanceof Unit ? value : THROW_CCE());
3018
- };
3019
- var UnitSerializer_instance;
3020
- function UnitSerializer_getInstance() {
3021
- if (UnitSerializer_instance == null)
3022
- new UnitSerializer();
3023
- return UnitSerializer_instance;
3024
- }
3025
- function error_0($this) {
3026
- throw IllegalStateException_init_$Create$('Primitive descriptor does not have elements');
3027
- }
3028
- function PrimitiveSerialDescriptor_0(serialName, kind) {
3029
- this.gt_1 = serialName;
3030
- this.ht_1 = kind;
3031
- }
3032
- protoOf(PrimitiveSerialDescriptor_0).pk = function () {
3033
- return this.gt_1;
3034
- };
3035
- protoOf(PrimitiveSerialDescriptor_0).qk = function () {
3036
- return this.ht_1;
3037
- };
3038
- protoOf(PrimitiveSerialDescriptor_0).sk = function () {
3039
- return 0;
3040
- };
3041
- protoOf(PrimitiveSerialDescriptor_0).uk = function (index) {
3042
- error_0(this);
3043
- };
3044
- protoOf(PrimitiveSerialDescriptor_0).vk = function (index) {
3045
- error_0(this);
3046
- };
3047
- protoOf(PrimitiveSerialDescriptor_0).toString = function () {
3048
- return 'PrimitiveDescriptor(' + this.gt_1 + ')';
3049
- };
3050
- protoOf(PrimitiveSerialDescriptor_0).equals = function (other) {
3051
- if (this === other)
3052
- return true;
3053
- if (!(other instanceof PrimitiveSerialDescriptor_0))
3054
- return false;
3055
- if (this.gt_1 === other.gt_1 && equals(this.ht_1, other.ht_1))
3056
- return true;
3057
- return false;
3058
- };
3059
- protoOf(PrimitiveSerialDescriptor_0).hashCode = function () {
3060
- return getStringHashCode(this.gt_1) + imul(31, this.ht_1.hashCode()) | 0;
3061
- };
3062
- function PrimitiveDescriptorSafe(serialName, kind) {
3063
- _init_properties_Primitives_kt__k0eto4();
3064
- checkName(serialName);
3065
- return new PrimitiveSerialDescriptor_0(serialName, kind);
3066
- }
3067
- function checkName(serialName) {
3068
- _init_properties_Primitives_kt__k0eto4();
3069
- var values = get_BUILTIN_SERIALIZERS().y1();
3070
- var _iterator__ex2g4s = values.m();
3071
- while (_iterator__ex2g4s.n()) {
3072
- var primitive = _iterator__ex2g4s.o();
3073
- var primitiveName = primitive.oj().pk();
3074
- if (serialName === primitiveName) {
3075
- throw IllegalArgumentException_init_$Create$(trimIndent('\n The name of serial descriptor should uniquely identify associated serializer.\n For serial name ' + serialName + ' there already exists ' + getKClassFromExpression(primitive).aa() + '.\n Please refer to SerialDescriptor documentation for additional information.\n '));
3076
- }
3077
- }
3078
- }
3079
- var properties_initialized_Primitives_kt_6dpii6;
3080
- function _init_properties_Primitives_kt__k0eto4() {
3081
- if (!properties_initialized_Primitives_kt_6dpii6) {
3082
- properties_initialized_Primitives_kt_6dpii6 = true;
3083
- BUILTIN_SERIALIZERS = initBuiltins();
3084
- }
3085
- }
3086
- function MapEntrySerializer$descriptor$lambda($keySerializer, $valueSerializer) {
3087
- return function ($this$buildSerialDescriptor) {
3088
- $this$buildSerialDescriptor.yj('key', $keySerializer.oj());
3089
- $this$buildSerialDescriptor.yj('value', $valueSerializer.oj());
3090
- return Unit_instance;
3091
- };
3092
- }
3093
- function MapEntrySerializer_0(keySerializer, valueSerializer) {
3094
- KeyValueSerializer.call(this, keySerializer, valueSerializer);
3095
- var tmp = this;
3096
- var tmp_0 = MAP_getInstance();
3097
- tmp.kt_1 = buildSerialDescriptor('kotlin.collections.Map.Entry', tmp_0, [], MapEntrySerializer$descriptor$lambda(keySerializer, valueSerializer));
3098
- }
3099
- protoOf(MapEntrySerializer_0).oj = function () {
3100
- return this.kt_1;
3101
- };
3102
- protoOf(MapEntrySerializer_0).lt = function (_this__u8e3s4) {
3103
- return _this__u8e3s4.y();
3104
- };
3105
- protoOf(MapEntrySerializer_0).mt = function (_this__u8e3s4) {
3106
- return this.lt((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Entry) : false) ? _this__u8e3s4 : THROW_CCE());
3107
- };
3108
- protoOf(MapEntrySerializer_0).nt = function (_this__u8e3s4) {
3109
- return _this__u8e3s4.z();
3110
- };
3111
- protoOf(MapEntrySerializer_0).ot = function (_this__u8e3s4) {
3112
- return this.nt((!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, Entry) : false) ? _this__u8e3s4 : THROW_CCE());
3113
- };
3114
- function PairSerializer$descriptor$lambda($keySerializer, $valueSerializer) {
3115
- return function ($this$buildClassSerialDescriptor) {
3116
- $this$buildClassSerialDescriptor.yj('first', $keySerializer.oj());
3117
- $this$buildClassSerialDescriptor.yj('second', $valueSerializer.oj());
3118
- return Unit_instance;
3119
- };
3120
- }
3121
- function PairSerializer_0(keySerializer, valueSerializer) {
3122
- KeyValueSerializer.call(this, keySerializer, valueSerializer);
3123
- var tmp = this;
3124
- tmp.ut_1 = buildClassSerialDescriptor('kotlin.Pair', [], PairSerializer$descriptor$lambda(keySerializer, valueSerializer));
3125
- }
3126
- protoOf(PairSerializer_0).oj = function () {
3127
- return this.ut_1;
3128
- };
3129
- protoOf(PairSerializer_0).vt = function (_this__u8e3s4) {
3130
- return _this__u8e3s4.u9_1;
3131
- };
3132
- protoOf(PairSerializer_0).mt = function (_this__u8e3s4) {
3133
- return this.vt(_this__u8e3s4 instanceof Pair ? _this__u8e3s4 : THROW_CCE());
3134
- };
3135
- protoOf(PairSerializer_0).wt = function (_this__u8e3s4) {
3136
- return _this__u8e3s4.v9_1;
3137
- };
3138
- protoOf(PairSerializer_0).ot = function (_this__u8e3s4) {
3139
- return this.wt(_this__u8e3s4 instanceof Pair ? _this__u8e3s4 : THROW_CCE());
3140
- };
3141
- function TripleSerializer$descriptor$lambda(this$0) {
3142
- return function ($this$buildClassSerialDescriptor) {
3143
- $this$buildClassSerialDescriptor.yj('first', this$0.xt_1.oj());
3144
- $this$buildClassSerialDescriptor.yj('second', this$0.yt_1.oj());
3145
- $this$buildClassSerialDescriptor.yj('third', this$0.zt_1.oj());
3146
- return Unit_instance;
3147
- };
3148
- }
3149
- function TripleSerializer_0(aSerializer, bSerializer, cSerializer) {
3150
- this.xt_1 = aSerializer;
3151
- this.yt_1 = bSerializer;
3152
- this.zt_1 = cSerializer;
3153
- var tmp = this;
3154
- tmp.au_1 = buildClassSerialDescriptor('kotlin.Triple', [], TripleSerializer$descriptor$lambda(this));
3155
- }
3156
- protoOf(TripleSerializer_0).oj = function () {
3157
- return this.au_1;
3158
- };
3159
- protoOf(TripleSerializer_0).bu = function (encoder, value) {
3160
- var structuredEncoder = encoder.ql(this.au_1);
3161
- structuredEncoder.pm(this.au_1, 0, this.xt_1, value.lh_1);
3162
- structuredEncoder.pm(this.au_1, 1, this.yt_1, value.mh_1);
3163
- structuredEncoder.pm(this.au_1, 2, this.zt_1, value.nh_1);
3164
- structuredEncoder.rl(this.au_1);
3165
- };
3166
- protoOf(TripleSerializer_0).pj = function (encoder, value) {
3167
- return this.bu(encoder, value instanceof Triple ? value : THROW_CCE());
3168
- };
3169
- function KeyValueSerializer(keySerializer, valueSerializer) {
3170
- this.pt_1 = keySerializer;
3171
- this.qt_1 = valueSerializer;
3172
- }
3173
- protoOf(KeyValueSerializer).rt = function (encoder, value) {
3174
- var structuredEncoder = encoder.ql(this.oj());
3175
- structuredEncoder.pm(this.oj(), 0, this.pt_1, this.mt(value));
3176
- structuredEncoder.pm(this.oj(), 1, this.qt_1, this.ot(value));
3177
- structuredEncoder.rl(this.oj());
3178
- };
3179
- protoOf(KeyValueSerializer).pj = function (encoder, value) {
3180
- return this.rt(encoder, (value == null ? true : !(value == null)) ? value : THROW_CCE());
3181
- };
3182
- function ULongSerializer() {
3183
- ULongSerializer_instance = this;
3184
- this.cu_1 = InlinePrimitiveDescriptor('kotlin.ULong', serializer_4(Companion_getInstance_0()));
3185
- }
3186
- protoOf(ULongSerializer).oj = function () {
3187
- return this.cu_1;
3188
- };
3189
- protoOf(ULongSerializer).du = function (encoder, value) {
3190
- var tmp = encoder.em(this.cu_1);
3191
- // Inline function 'kotlin.ULong.toLong' call
3192
- var tmp$ret$0 = _ULong___get_data__impl__fggpzb(value);
3193
- tmp.zl(tmp$ret$0);
3194
- };
3195
- protoOf(ULongSerializer).pj = function (encoder, value) {
3196
- return this.du(encoder, value instanceof ULong ? value.wi_1 : THROW_CCE());
3197
- };
3198
- var ULongSerializer_instance;
3199
- function ULongSerializer_getInstance() {
3200
- if (ULongSerializer_instance == null)
3201
- new ULongSerializer();
3202
- return ULongSerializer_instance;
3203
- }
3204
- function UIntSerializer() {
3205
- UIntSerializer_instance = this;
3206
- this.eu_1 = InlinePrimitiveDescriptor('kotlin.UInt', serializer_6(IntCompanionObject_instance));
3207
- }
3208
- protoOf(UIntSerializer).oj = function () {
3209
- return this.eu_1;
3210
- };
3211
- protoOf(UIntSerializer).fu = function (encoder, value) {
3212
- var tmp = encoder.em(this.eu_1);
3213
- // Inline function 'kotlin.UInt.toInt' call
3214
- var tmp$ret$0 = _UInt___get_data__impl__f0vqqw(value);
3215
- tmp.yl(tmp$ret$0);
3216
- };
3217
- protoOf(UIntSerializer).pj = function (encoder, value) {
3218
- return this.fu(encoder, value instanceof UInt ? value.li_1 : THROW_CCE());
3219
- };
3220
- var UIntSerializer_instance;
3221
- function UIntSerializer_getInstance() {
3222
- if (UIntSerializer_instance == null)
3223
- new UIntSerializer();
3224
- return UIntSerializer_instance;
3225
- }
3226
- function UShortSerializer() {
3227
- UShortSerializer_instance = this;
3228
- this.gu_1 = InlinePrimitiveDescriptor('kotlin.UShort', serializer_8(ShortCompanionObject_instance));
3229
- }
3230
- protoOf(UShortSerializer).oj = function () {
3231
- return this.gu_1;
3232
- };
3233
- protoOf(UShortSerializer).hu = function (encoder, value) {
3234
- var tmp = encoder.em(this.gu_1);
3235
- // Inline function 'kotlin.UShort.toShort' call
3236
- var tmp$ret$0 = _UShort___get_data__impl__g0245(value);
3237
- tmp.xl(tmp$ret$0);
3238
- };
3239
- protoOf(UShortSerializer).pj = function (encoder, value) {
3240
- return this.hu(encoder, value instanceof UShort ? value.hj_1 : THROW_CCE());
3241
- };
3242
- var UShortSerializer_instance;
3243
- function UShortSerializer_getInstance() {
3244
- if (UShortSerializer_instance == null)
3245
- new UShortSerializer();
3246
- return UShortSerializer_instance;
3247
- }
3248
- function UByteSerializer() {
3249
- UByteSerializer_instance = this;
3250
- this.iu_1 = InlinePrimitiveDescriptor('kotlin.UByte', serializer_10(ByteCompanionObject_instance));
3251
- }
3252
- protoOf(UByteSerializer).oj = function () {
3253
- return this.iu_1;
3254
- };
3255
- protoOf(UByteSerializer).ju = function (encoder, value) {
3256
- var tmp = encoder.em(this.iu_1);
3257
- // Inline function 'kotlin.UByte.toByte' call
3258
- var tmp$ret$0 = _UByte___get_data__impl__jof9qr(value);
3259
- tmp.wl(tmp$ret$0);
3260
- };
3261
- protoOf(UByteSerializer).pj = function (encoder, value) {
3262
- return this.ju(encoder, value instanceof UByte ? value.ai_1 : THROW_CCE());
3263
- };
3264
- var UByteSerializer_instance;
3265
- function UByteSerializer_getInstance() {
3266
- if (UByteSerializer_instance == null)
3267
- new UByteSerializer();
3268
- return UByteSerializer_instance;
3269
- }
3270
- function get_EmptySerializersModuleLegacyJs() {
3271
- _init_properties_SerializersModule_kt__u78ha3();
3272
- return EmptySerializersModule;
3273
- }
3274
- var EmptySerializersModule;
3275
- function SerializersModule() {
3276
- }
3277
- protoOf(SerializersModule).hk = function (kClass, typeArgumentsSerializers, $super) {
3278
- typeArgumentsSerializers = typeArgumentsSerializers === VOID ? emptyList() : typeArgumentsSerializers;
3279
- return $super === VOID ? this.ik(kClass, typeArgumentsSerializers) : $super.ik.call(this, kClass, typeArgumentsSerializers);
3280
- };
3281
- function SerialModuleImpl(class2ContextualFactory, polyBase2Serializers, polyBase2DefaultSerializerProvider, polyBase2NamedSerializers, polyBase2DefaultDeserializerProvider, hasInterfaceContextualSerializers) {
3282
- SerializersModule.call(this);
3283
- this.ku_1 = class2ContextualFactory;
3284
- this.lu_1 = polyBase2Serializers;
3285
- this.mu_1 = polyBase2DefaultSerializerProvider;
3286
- this.nu_1 = polyBase2NamedSerializers;
3287
- this.ou_1 = polyBase2DefaultDeserializerProvider;
3288
- this.pu_1 = hasInterfaceContextualSerializers;
3289
- }
3290
- protoOf(SerialModuleImpl).gk = function () {
3291
- return this.pu_1;
3292
- };
3293
- protoOf(SerialModuleImpl).xm = function (baseClass, value) {
3294
- if (!baseClass.ba(value))
3295
- return null;
3296
- var tmp0_safe_receiver = this.lu_1.w1(baseClass);
3297
- var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1(getKClassFromExpression(value));
3298
- var registered = (!(tmp == null) ? isInterface(tmp, SerializationStrategy) : false) ? tmp : null;
3299
- if (!(registered == null))
3300
- return registered;
3301
- var tmp_0 = this.mu_1.w1(baseClass);
3302
- var tmp1_safe_receiver = (!(tmp_0 == null) ? typeof tmp_0 === 'function' : false) ? tmp_0 : null;
3303
- return tmp1_safe_receiver == null ? null : tmp1_safe_receiver(value);
3304
- };
3305
- protoOf(SerialModuleImpl).ik = function (kClass, typeArgumentsSerializers) {
3306
- var tmp0_safe_receiver = this.ku_1.w1(kClass);
3307
- var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qu(typeArgumentsSerializers);
3308
- return (tmp == null ? true : isInterface(tmp, KSerializer)) ? tmp : null;
3309
- };
3310
- var properties_initialized_SerializersModule_kt_fjigjn;
3311
- function _init_properties_SerializersModule_kt__u78ha3() {
3312
- if (!properties_initialized_SerializersModule_kt_fjigjn) {
3313
- properties_initialized_SerializersModule_kt_fjigjn = true;
3314
- EmptySerializersModule = new SerialModuleImpl(emptyMap(), emptyMap(), emptyMap(), emptyMap(), emptyMap(), false);
3315
- }
3316
- }
3317
- function EmptySerializersModule_0() {
3318
- return get_EmptySerializersModuleLegacyJs();
3319
- }
3320
- function SerializableWith(serializer) {
3321
- this.ru_1 = serializer;
3322
- }
3323
- protoOf(SerializableWith).equals = function (other) {
3324
- if (!(other instanceof SerializableWith))
3325
- return false;
3326
- var tmp0_other_with_cast = other instanceof SerializableWith ? other : THROW_CCE();
3327
- if (!this.ru_1.equals(tmp0_other_with_cast.ru_1))
3328
- return false;
3329
- return true;
3330
- };
3331
- protoOf(SerializableWith).hashCode = function () {
3332
- return imul(getStringHashCode('serializer'), 127) ^ this.ru_1.hashCode();
3333
- };
3334
- protoOf(SerializableWith).toString = function () {
3335
- return '@kotlinx.serialization.SerializableWith(' + 'serializer=' + toString(this.ru_1) + ')';
3336
- };
3337
- function createCache(factory) {
3338
- return new createCache$1(factory);
3339
- }
3340
- function createParametrizedCache(factory) {
3341
- return new createParametrizedCache$1(factory);
3342
- }
3343
- function isInterface_0(_this__u8e3s4) {
3344
- return get_isInterface(_this__u8e3s4);
3345
- }
3346
- function initBuiltins() {
3347
- return mapOf([to(PrimitiveClasses_getInstance().bb(), serializer_0(StringCompanionObject_instance)), to(getKClass(Char), serializer_1(Companion_getInstance())), to(PrimitiveClasses_getInstance().eb(), CharArraySerializer()), to(PrimitiveClasses_getInstance().za(), serializer_2(DoubleCompanionObject_instance)), to(PrimitiveClasses_getInstance().kb(), DoubleArraySerializer()), to(PrimitiveClasses_getInstance().ya(), serializer_3(FloatCompanionObject_instance)), to(PrimitiveClasses_getInstance().jb(), FloatArraySerializer()), to(getKClass(Long), serializer_4(Companion_getInstance_0())), to(PrimitiveClasses_getInstance().ib(), LongArraySerializer()), to(getKClass(ULong), serializer_5(Companion_getInstance_1())), to(getKClass(ULongArray), ULongArraySerializer()), to(PrimitiveClasses_getInstance().xa(), serializer_6(IntCompanionObject_instance)), to(PrimitiveClasses_getInstance().hb(), IntArraySerializer()), to(getKClass(UInt), serializer_7(Companion_getInstance_2())), to(getKClass(UIntArray), UIntArraySerializer()), to(PrimitiveClasses_getInstance().wa(), serializer_8(ShortCompanionObject_instance)), to(PrimitiveClasses_getInstance().gb(), ShortArraySerializer()), to(getKClass(UShort), serializer_9(Companion_getInstance_3())), to(getKClass(UShortArray), UShortArraySerializer()), to(PrimitiveClasses_getInstance().va(), serializer_10(ByteCompanionObject_instance)), to(PrimitiveClasses_getInstance().fb(), ByteArraySerializer()), to(getKClass(UByte), serializer_11(Companion_getInstance_4())), to(getKClass(UByteArray), UByteArraySerializer()), to(PrimitiveClasses_getInstance().ua(), serializer_12(BooleanCompanionObject_instance)), to(PrimitiveClasses_getInstance().db(), BooleanArraySerializer()), to(getKClass(Unit), serializer_13(Unit_instance)), to(PrimitiveClasses_getInstance().ta(), NothingSerializer()), to(getKClass(Duration), serializer_14(Companion_getInstance_5())), to(getKClass(Uuid), serializer_15(Companion_getInstance_6()))]);
3348
- }
3349
- function get_isInterface(_this__u8e3s4) {
3350
- if (_this__u8e3s4 === PrimitiveClasses_getInstance().ta())
3351
- return false;
3352
- // Inline function 'kotlin.js.asDynamic' call
3353
- var tmp0_safe_receiver = get_js(_this__u8e3s4).$metadata$;
3354
- return (tmp0_safe_receiver == null ? null : tmp0_safe_receiver.kind) == 'interface';
3355
- }
3356
- function compiledSerializerImpl(_this__u8e3s4) {
3357
- var tmp0_elvis_lhs = constructSerializerForGivenTypeArgs(_this__u8e3s4, []);
3358
- var tmp;
3359
- if (tmp0_elvis_lhs == null) {
3360
- var tmp_0;
3361
- if (_this__u8e3s4 === PrimitiveClasses_getInstance().ta()) {
3362
- tmp_0 = NothingSerializer_getInstance();
3363
- } else {
3364
- // Inline function 'kotlin.js.asDynamic' call
3365
- var tmp1_safe_receiver = get_js(_this__u8e3s4).Companion;
3366
- tmp_0 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.serializer();
3367
- }
3368
- var tmp_1 = tmp_0;
3369
- tmp = (!(tmp_1 == null) ? isInterface(tmp_1, KSerializer) : false) ? tmp_1 : null;
3370
- } else {
3371
- tmp = tmp0_elvis_lhs;
3372
- }
3373
- return tmp;
3374
- }
3375
- function platformSpecificSerializerNotRegistered(_this__u8e3s4) {
3376
- throw SerializationException_init_$Create$_0(notRegisteredMessage(_this__u8e3s4) + 'To get enum serializer on Kotlin/JS, it should be annotated with @Serializable annotation.');
3377
- }
3378
- function isReferenceArray(rootClass) {
3379
- return rootClass.equals(PrimitiveClasses_getInstance().ab());
3380
- }
3381
- function constructSerializerForGivenTypeArgs(_this__u8e3s4, args) {
3382
- var tmp;
3383
- try {
3384
- // Inline function 'kotlin.reflect.findAssociatedObject' call
3385
- var assocObject = findAssociatedObject(_this__u8e3s4, getKClass(SerializableWith));
3386
- var tmp_0;
3387
- if (!(assocObject == null) ? isInterface(assocObject, KSerializer) : false) {
3388
- tmp_0 = isInterface(assocObject, KSerializer) ? assocObject : THROW_CCE();
3389
- } else {
3390
- if (!(assocObject == null) ? isInterface(assocObject, SerializerFactory) : false) {
3391
- var tmp_1 = assocObject.pq(args.slice());
3392
- tmp_0 = isInterface(tmp_1, KSerializer) ? tmp_1 : THROW_CCE();
3393
- } else {
3394
- tmp_0 = null;
3395
- }
3396
- }
3397
- tmp = tmp_0;
3398
- } catch ($p) {
3399
- var tmp_2;
3400
- var e = $p;
3401
- tmp_2 = null;
3402
- tmp = tmp_2;
3403
- }
3404
- return tmp;
3405
- }
3406
- function getChecked(_this__u8e3s4, index) {
3407
- if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false))
3408
- throw IndexOutOfBoundsException_init_$Create$('Index ' + index + ' out of bounds ' + get_indices(_this__u8e3s4).toString());
3409
- return _this__u8e3s4[index];
3410
- }
3411
- function createCache$1($factory) {
3412
- this.su_1 = $factory;
3413
- }
3414
- protoOf(createCache$1).jk = function (key) {
3415
- return this.su_1(key);
3416
- };
3417
- function createParametrizedCache$1($factory) {
3418
- this.tu_1 = $factory;
3419
- }
3420
- protoOf(createParametrizedCache$1).kk = function (key, types) {
3421
- // Inline function 'kotlin.runCatching' call
3422
- var tmp;
3423
- try {
3424
- // Inline function 'kotlinx.serialization.internal.<no name provided>.get.<anonymous>' call
3425
- // Inline function 'kotlin.Companion.success' call
3426
- var value = this.tu_1(key, types);
3427
- tmp = _Result___init__impl__xyqfz8(value);
3428
- } catch ($p) {
3429
- var tmp_0;
3430
- if ($p instanceof Error) {
3431
- var e = $p;
3432
- // Inline function 'kotlin.Companion.failure' call
3433
- tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
3434
- } else {
3435
- throw $p;
3436
- }
3437
- tmp = tmp_0;
3438
- }
3439
- return tmp;
3440
- };
3441
- //region block: post-declaration
3442
- protoOf(SerialDescriptorImpl).lk = get_isNullable;
3443
- protoOf(SerialDescriptorImpl).rk = get_isInline;
3444
- protoOf(AbstractEncoder).um = encodeNotNullMark;
3445
- protoOf(AbstractEncoder).vm = beginCollection;
3446
- protoOf(AbstractEncoder).qm = encodeSerializableValue;
3447
- protoOf(AbstractEncoder).sm = encodeNullableSerializableValue;
3448
- protoOf(AbstractEncoder).wm = shouldEncodeElementDefault;
3449
- protoOf(ListLikeDescriptor).lk = get_isNullable;
3450
- protoOf(ListLikeDescriptor).rk = get_isInline;
3451
- protoOf(ListLikeDescriptor).tk = get_annotations;
3452
- protoOf(MapLikeDescriptor).lk = get_isNullable;
3453
- protoOf(MapLikeDescriptor).rk = get_isInline;
3454
- protoOf(MapLikeDescriptor).tk = get_annotations;
3455
- protoOf(PluginGeneratedSerialDescriptor).lk = get_isNullable;
3456
- protoOf(PluginGeneratedSerialDescriptor).rk = get_isInline;
3457
- protoOf(InlinePrimitiveDescriptor$1).fq = typeParametersSerializers;
3458
- protoOf(NothingSerialDescriptor).lk = get_isNullable;
3459
- protoOf(NothingSerialDescriptor).rk = get_isInline;
3460
- protoOf(NothingSerialDescriptor).tk = get_annotations;
3461
- protoOf(PrimitiveSerialDescriptor_0).lk = get_isNullable;
3462
- protoOf(PrimitiveSerialDescriptor_0).rk = get_isInline;
3463
- protoOf(PrimitiveSerialDescriptor_0).tk = get_annotations;
3464
- //endregion
3465
- //region block: exports
3466
- _.$_$ = _.$_$ || {};
3467
- _.$_$.a = SerializationException_init_$Init$_0;
3468
- _.$_$.b = STRING_getInstance;
3469
- _.$_$.c = CONTEXTUAL_getInstance;
3470
- _.$_$.d = ENUM_getInstance;
3471
- _.$_$.e = CLASS_getInstance;
3472
- _.$_$.f = LIST_getInstance;
3473
- _.$_$.g = MAP_getInstance;
3474
- _.$_$.h = OBJECT_getInstance;
3475
- _.$_$.i = IntSerializer_getInstance;
3476
- _.$_$.j = StringSerializer_getInstance;
3477
- _.$_$.k = get_nullable;
3478
- _.$_$.l = serializer_0;
3479
- _.$_$.m = serializer_9;
3480
- _.$_$.n = serializer_7;
3481
- _.$_$.o = serializer_11;
3482
- _.$_$.p = serializer_5;
3483
- _.$_$.q = PolymorphicKind;
3484
- _.$_$.r = PrimitiveKind;
3485
- _.$_$.s = PrimitiveSerialDescriptor;
3486
- _.$_$.t = ENUM;
3487
- _.$_$.u = getContextualDescriptor;
3488
- _.$_$.v = AbstractEncoder;
3489
- _.$_$.w = CompositeEncoder;
3490
- _.$_$.x = Encoder;
3491
- _.$_$.y = AbstractPolymorphicSerializer;
3492
- _.$_$.z = ArrayListSerializer;
3493
- _.$_$.a1 = typeParametersSerializers;
3494
- _.$_$.b1 = GeneratedSerializer;
3495
- _.$_$.c1 = InlinePrimitiveDescriptor;
3496
- _.$_$.d1 = PluginGeneratedSerialDescriptor;
3497
- _.$_$.e1 = jsonCachedSerialNames;
3498
- _.$_$.f1 = EmptySerializersModule_0;
3499
- _.$_$.g1 = KSerializer;
3500
- _.$_$.h1 = SealedClassSerializer;
3501
- _.$_$.i1 = SerializationException;
3502
- _.$_$.j1 = SerializationStrategy;
3503
- _.$_$.k1 = findPolymorphicSerializer;
3504
- _.$_$.l1 = serializer;
3505
- //endregion
3506
- return _;
3507
- }(module.exports, require('./kotlin-kotlin-stdlib.js')));
3508
-
3509
- //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-core.js.map