@guardian/feast-multiplatform-library 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4867 @@
1
+ (function (_, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_kotlin) {
2
+ 'use strict';
3
+ //region block: imports
4
+ var imul = Math.imul;
5
+ var EmptySerializersModule = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
6
+ var protoOf = kotlin_kotlin.$_$.l7;
7
+ var initMetadataForObject = kotlin_kotlin.$_$.u6;
8
+ var VOID = kotlin_kotlin.$_$.b;
9
+ var Unit_instance = kotlin_kotlin.$_$.j3;
10
+ var initMetadataForClass = kotlin_kotlin.$_$.p6;
11
+ var toString = kotlin_kotlin.$_$.ha;
12
+ var Enum = kotlin_kotlin.$_$.f9;
13
+ var Decoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.k1;
14
+ var CompositeDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i1;
15
+ var initMetadataForInterface = kotlin_kotlin.$_$.s6;
16
+ var initMetadataForCompanion = kotlin_kotlin.$_$.q6;
17
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.s;
18
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.a1;
19
+ var equals = kotlin_kotlin.$_$.j6;
20
+ var hashCode = kotlin_kotlin.$_$.o6;
21
+ var joinToString = kotlin_kotlin.$_$.s4;
22
+ var THROW_CCE = kotlin_kotlin.$_$.l9;
23
+ var KtMap = kotlin_kotlin.$_$.s3;
24
+ var getKClassFromExpression = kotlin_kotlin.$_$.v7;
25
+ var toString_0 = kotlin_kotlin.$_$.n7;
26
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.v;
27
+ var KtList = kotlin_kotlin.$_$.q3;
28
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
29
+ var getBooleanHashCode = kotlin_kotlin.$_$.k6;
30
+ var getStringHashCode = kotlin_kotlin.$_$.n6;
31
+ var toDouble = kotlin_kotlin.$_$.p8;
32
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.x2;
33
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
34
+ var InlinePrimitiveDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q1;
35
+ var MapSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
36
+ var SerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c1;
37
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
38
+ var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
39
+ var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e1;
40
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.fa;
41
+ var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
42
+ var ENUM_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
43
+ var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
44
+ var toLongOrNull = kotlin_kotlin.$_$.s8;
45
+ var toULongOrNull = kotlin_kotlin.$_$.v8;
46
+ var ULong = kotlin_kotlin.$_$.s9;
47
+ var Companion_getInstance = kotlin_kotlin.$_$.h3;
48
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
49
+ var _ULong___get_data__impl__fggpzb = kotlin_kotlin.$_$.a2;
50
+ var toDoubleOrNull = kotlin_kotlin.$_$.o8;
51
+ var toBooleanStrictOrNull = kotlin_kotlin.$_$.n8;
52
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
53
+ var isInterface = kotlin_kotlin.$_$.c7;
54
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.x;
55
+ var KProperty1 = kotlin_kotlin.$_$.y7;
56
+ var getPropertyCallableRef = kotlin_kotlin.$_$.m6;
57
+ var lazy = kotlin_kotlin.$_$.ea;
58
+ var get_isNullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b1;
59
+ var get_isInline = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a1;
60
+ var get_annotations = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
61
+ var Encoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
62
+ var CompositeEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j1;
63
+ var fromInt = kotlin_kotlin.$_$.t5;
64
+ var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.q1;
65
+ var UInt__toString_impl_dbgl21 = kotlin_kotlin.$_$.s1;
66
+ var _ULong___init__impl__c78o9k = kotlin_kotlin.$_$.z1;
67
+ var ULong__toString_impl_f9au7k = kotlin_kotlin.$_$.b2;
68
+ var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.h1;
69
+ var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.j1;
70
+ var _UShort___init__impl__jigrne = kotlin_kotlin.$_$.i2;
71
+ var UShort__toString_impl_edaoee = kotlin_kotlin.$_$.k2;
72
+ var ElementMarker = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n1;
73
+ var captureStack = kotlin_kotlin.$_$.d6;
74
+ var charSequenceLength = kotlin_kotlin.$_$.h6;
75
+ var charSequenceSubSequence = kotlin_kotlin.$_$.i6;
76
+ var coerceAtLeast = kotlin_kotlin.$_$.p7;
77
+ var coerceAtMost = kotlin_kotlin.$_$.q7;
78
+ var SerializationException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
79
+ var SerializationException_init_$Init$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
80
+ var Collection = kotlin_kotlin.$_$.l3;
81
+ var CLASS_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
82
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.m;
83
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
84
+ var singleOrNull = kotlin_kotlin.$_$.b5;
85
+ var emptyMap = kotlin_kotlin.$_$.n4;
86
+ var getValue = kotlin_kotlin.$_$.p4;
87
+ var copyOf = kotlin_kotlin.$_$.j4;
88
+ var arrayCopy = kotlin_kotlin.$_$.x3;
89
+ var LIST_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
90
+ var DeepRecursiveFunction = kotlin_kotlin.$_$.d9;
91
+ var invoke = kotlin_kotlin.$_$.aa;
92
+ var CoroutineImpl = kotlin_kotlin.$_$.j5;
93
+ var DeepRecursiveScope = kotlin_kotlin.$_$.e9;
94
+ var Unit = kotlin_kotlin.$_$.v9;
95
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i5;
96
+ var initMetadataForLambda = kotlin_kotlin.$_$.t6;
97
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.r6;
98
+ var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
99
+ var jsonCachedSerialNames = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
100
+ var ENUM = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d1;
101
+ var PrimitiveKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
102
+ var PolymorphicKind = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
103
+ var AbstractDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
104
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.m1;
105
+ var DeserializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
106
+ var getKClass = kotlin_kotlin.$_$.w7;
107
+ var findPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
108
+ var ensureNotNull = kotlin_kotlin.$_$.z9;
109
+ var substringBefore = kotlin_kotlin.$_$.k8;
110
+ var removeSuffix = kotlin_kotlin.$_$.g8;
111
+ var substringAfter = kotlin_kotlin.$_$.j8;
112
+ var contains = kotlin_kotlin.$_$.a8;
113
+ var plus = kotlin_kotlin.$_$.ga;
114
+ var MissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
115
+ var convertToByte = kotlin_kotlin.$_$.p5;
116
+ var equalsLong = kotlin_kotlin.$_$.s5;
117
+ var convertToShort = kotlin_kotlin.$_$.r5;
118
+ var convertToInt = kotlin_kotlin.$_$.q5;
119
+ var IllegalArgumentException = kotlin_kotlin.$_$.h9;
120
+ var isFinite = kotlin_kotlin.$_$.ca;
121
+ var isFinite_0 = kotlin_kotlin.$_$.ba;
122
+ var charCodeAt = kotlin_kotlin.$_$.f6;
123
+ var toUInt = kotlin_kotlin.$_$.u8;
124
+ var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.r1;
125
+ var toULong = kotlin_kotlin.$_$.w8;
126
+ var toUByte = kotlin_kotlin.$_$.t8;
127
+ var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.i1;
128
+ var toUShort = kotlin_kotlin.$_$.x8;
129
+ var _UShort___get_data__impl__g0245 = kotlin_kotlin.$_$.j2;
130
+ var objectCreate = kotlin_kotlin.$_$.k7;
131
+ var AbstractEncoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h1;
132
+ var OBJECT_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
133
+ var findPolymorphicSerializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
134
+ var SerializationStrategy = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
135
+ var toString_1 = kotlin_kotlin.$_$.d1;
136
+ var Companion_getInstance_0 = kotlin_kotlin.$_$.g3;
137
+ var serializer_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
138
+ var Companion_getInstance_1 = kotlin_kotlin.$_$.f3;
139
+ var serializer_2 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
140
+ var Companion_getInstance_2 = kotlin_kotlin.$_$.i3;
141
+ var serializer_3 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
142
+ var setOf = kotlin_kotlin.$_$.a5;
143
+ var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.c1;
144
+ var numberToChar = kotlin_kotlin.$_$.i7;
145
+ var equals_0 = kotlin_kotlin.$_$.b8;
146
+ var toByte = kotlin_kotlin.$_$.m7;
147
+ var startsWith = kotlin_kotlin.$_$.i8;
148
+ var NamedValueDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
149
+ var MAP_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i;
150
+ var numberRangeToNumber = kotlin_kotlin.$_$.h7;
151
+ var ClosedRange = kotlin_kotlin.$_$.o7;
152
+ var contains_0 = kotlin_kotlin.$_$.r7;
153
+ var single = kotlin_kotlin.$_$.h8;
154
+ var Char = kotlin_kotlin.$_$.c9;
155
+ var emptySet = kotlin_kotlin.$_$.o4;
156
+ var plus_0 = kotlin_kotlin.$_$.y4;
157
+ var toInt = kotlin_kotlin.$_$.r8;
158
+ var toList = kotlin_kotlin.$_$.e5;
159
+ var enumEntries = kotlin_kotlin.$_$.k5;
160
+ var getContextualDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
161
+ var CONTEXTUAL_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
162
+ var charSequenceGet = kotlin_kotlin.$_$.g6;
163
+ var toNumber = kotlin_kotlin.$_$.a6;
164
+ var last = kotlin_kotlin.$_$.w4;
165
+ var removeLast = kotlin_kotlin.$_$.z4;
166
+ var lastIndexOf = kotlin_kotlin.$_$.f8;
167
+ var Long = kotlin_kotlin.$_$.i9;
168
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.b1;
169
+ var multiply = kotlin_kotlin.$_$.v5;
170
+ var add = kotlin_kotlin.$_$.m5;
171
+ var subtract = kotlin_kotlin.$_$.z5;
172
+ var compare = kotlin_kotlin.$_$.o5;
173
+ var numberToLong = kotlin_kotlin.$_$.x5;
174
+ var negate = kotlin_kotlin.$_$.w5;
175
+ var charArray = kotlin_kotlin.$_$.e6;
176
+ var indexOf = kotlin_kotlin.$_$.c8;
177
+ var indexOf_0 = kotlin_kotlin.$_$.d8;
178
+ var substring = kotlin_kotlin.$_$.m8;
179
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.r;
180
+ var HashMap_init_$Create$ = kotlin_kotlin.$_$.g;
181
+ //endregion
182
+ //region block: pre-declaration
183
+ initMetadataForClass(Json, 'Json');
184
+ initMetadataForObject(Default, 'Default', VOID, Json);
185
+ initMetadataForClass(JsonClassDiscriminator, 'JsonClassDiscriminator');
186
+ initMetadataForClass(JsonIgnoreUnknownKeys, 'JsonIgnoreUnknownKeys');
187
+ initMetadataForClass(JsonNames, 'JsonNames');
188
+ initMetadataForClass(JsonConfiguration, 'JsonConfiguration');
189
+ initMetadataForClass(ClassDiscriminatorMode, 'ClassDiscriminatorMode', VOID, Enum);
190
+ initMetadataForInterface(JsonDecoder, 'JsonDecoder', VOID, VOID, [Decoder, CompositeDecoder]);
191
+ initMetadataForCompanion(Companion);
192
+ initMetadataForClass(JsonElement, 'JsonElement', VOID, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
193
+ initMetadataForClass(JsonObject, 'JsonObject', VOID, JsonElement, [JsonElement, KtMap], VOID, VOID, {0: JsonObjectSerializer_getInstance});
194
+ initMetadataForCompanion(Companion_0);
195
+ initMetadataForCompanion(Companion_1);
196
+ initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
197
+ initMetadataForCompanion(Companion_2);
198
+ initMetadataForClass(JsonArray, 'JsonArray', VOID, JsonElement, [JsonElement, KtList], VOID, VOID, {0: JsonArraySerializer_getInstance});
199
+ initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, [JsonPrimitive, SerializerFactory], VOID, VOID, {0: JsonNullSerializer_getInstance});
200
+ initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
201
+ initMetadataForObject(JsonObjectDescriptor, 'JsonObjectDescriptor', VOID, VOID, [SerialDescriptor]);
202
+ initMetadataForObject(JsonObjectSerializer, 'JsonObjectSerializer', VOID, VOID, [KSerializer]);
203
+ initMetadataForObject(JsonElementSerializer, 'JsonElementSerializer', VOID, VOID, [KSerializer]);
204
+ initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
205
+ initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
206
+ initMetadataForObject(JsonLiteralSerializer, 'JsonLiteralSerializer', VOID, VOID, [KSerializer]);
207
+ initMetadataForObject(JsonArrayDescriptor, 'JsonArrayDescriptor', VOID, VOID, [SerialDescriptor]);
208
+ initMetadataForObject(JsonArraySerializer, 'JsonArraySerializer', VOID, VOID, [KSerializer]);
209
+ initMetadataForClass(defer$1, VOID, VOID, VOID, [SerialDescriptor]);
210
+ initMetadataForInterface(JsonEncoder, 'JsonEncoder', VOID, VOID, [Encoder, CompositeEncoder]);
211
+ initMetadataForClass(Composer, 'Composer');
212
+ initMetadataForClass(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', VOID, Composer);
213
+ initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', VOID, Composer);
214
+ initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', VOID, Composer);
215
+ initMetadataForClass(JsonElementMarker, 'JsonElementMarker');
216
+ initMetadataForClass(JsonException, 'JsonException', VOID, SerializationException);
217
+ initMetadataForClass(JsonDecodingException, 'JsonDecodingException', VOID, JsonException);
218
+ initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
219
+ initMetadataForObject(Tombstone, 'Tombstone');
220
+ initMetadataForClass(JsonPath, 'JsonPath', JsonPath);
221
+ initMetadataForLambda(JsonTreeReader$readDeepRecursive$slambda, CoroutineImpl, VOID, [2]);
222
+ initMetadataForCoroutine($readObjectCOROUTINE$, CoroutineImpl);
223
+ initMetadataForClass(JsonTreeReader, 'JsonTreeReader', VOID, VOID, VOID, [1]);
224
+ initMetadataForClass(Key, 'Key', Key);
225
+ initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
226
+ initMetadataForClass(DiscriminatorHolder, 'DiscriminatorHolder');
227
+ initMetadataForClass(StreamingJsonDecoder, 'StreamingJsonDecoder', VOID, AbstractDecoder, [JsonDecoder, AbstractDecoder]);
228
+ initMetadataForClass(JsonDecoderForUnsignedTypes, 'JsonDecoderForUnsignedTypes', VOID, AbstractDecoder);
229
+ initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [JsonEncoder, AbstractEncoder]);
230
+ initMetadataForClass(AbstractJsonTreeDecoder, 'AbstractJsonTreeDecoder', VOID, NamedValueDecoder, [NamedValueDecoder, JsonDecoder]);
231
+ initMetadataForClass(JsonTreeDecoder, 'JsonTreeDecoder', VOID, AbstractJsonTreeDecoder);
232
+ initMetadataForClass(JsonTreeListDecoder, 'JsonTreeListDecoder', VOID, AbstractJsonTreeDecoder);
233
+ initMetadataForClass(JsonPrimitiveDecoder, 'JsonPrimitiveDecoder', VOID, AbstractJsonTreeDecoder);
234
+ initMetadataForClass(JsonTreeMapDecoder, 'JsonTreeMapDecoder', VOID, JsonTreeDecoder);
235
+ initMetadataForClass(WriteMode, 'WriteMode', VOID, Enum);
236
+ initMetadataForClass(AbstractJsonLexer, 'AbstractJsonLexer');
237
+ initMetadataForObject(CharMappings, 'CharMappings');
238
+ initMetadataForClass(StringJsonLexer, 'StringJsonLexer', VOID, AbstractJsonLexer);
239
+ initMetadataForClass(StringJsonLexerWithComments, 'StringJsonLexerWithComments', VOID, StringJsonLexer);
240
+ initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
241
+ //endregion
242
+ function Default() {
243
+ Default_instance = this;
244
+ Json.call(this, new JsonConfiguration(), EmptySerializersModule());
245
+ }
246
+ var Default_instance;
247
+ function Default_getInstance() {
248
+ if (Default_instance == null)
249
+ new Default();
250
+ return Default_instance;
251
+ }
252
+ function Json(configuration, serializersModule) {
253
+ Default_getInstance();
254
+ this.n10_1 = configuration;
255
+ this.o10_1 = serializersModule;
256
+ this.p10_1 = new DescriptorSchemaCache();
257
+ }
258
+ protoOf(Json).cl = function () {
259
+ return this.o10_1;
260
+ };
261
+ protoOf(Json).q10 = function (serializer, value) {
262
+ var result = new JsonToStringWriter();
263
+ try {
264
+ encodeByWriter(this, result, serializer, value);
265
+ return result.toString();
266
+ }finally {
267
+ result.v10();
268
+ }
269
+ };
270
+ protoOf(Json).r10 = function (deserializer, string) {
271
+ var lexer = StringJsonLexer_0(this, string);
272
+ var input = new StreamingJsonDecoder(this, WriteMode_OBJ_getInstance(), lexer, deserializer.qh(), null);
273
+ var result = input.mk(deserializer);
274
+ lexer.i11();
275
+ return result;
276
+ };
277
+ protoOf(Json).s10 = function (deserializer, element) {
278
+ return readJson(this, element, deserializer);
279
+ };
280
+ protoOf(Json).t10 = function (string) {
281
+ return this.r10(JsonElementSerializer_getInstance(), string);
282
+ };
283
+ function JsonClassDiscriminator() {
284
+ }
285
+ function JsonIgnoreUnknownKeys() {
286
+ }
287
+ function JsonNames() {
288
+ }
289
+ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma, allowComments, classDiscriminatorMode) {
290
+ encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
291
+ ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
292
+ isLenient = isLenient === VOID ? false : isLenient;
293
+ allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
294
+ prettyPrint = prettyPrint === VOID ? false : prettyPrint;
295
+ explicitNulls = explicitNulls === VOID ? true : explicitNulls;
296
+ prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
297
+ coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
298
+ useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
299
+ classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
300
+ allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
301
+ useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
302
+ namingStrategy = namingStrategy === VOID ? null : namingStrategy;
303
+ decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
304
+ allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
305
+ allowComments = allowComments === VOID ? false : allowComments;
306
+ classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
307
+ this.j11_1 = encodeDefaults;
308
+ this.k11_1 = ignoreUnknownKeys;
309
+ this.l11_1 = isLenient;
310
+ this.m11_1 = allowStructuredMapKeys;
311
+ this.n11_1 = prettyPrint;
312
+ this.o11_1 = explicitNulls;
313
+ this.p11_1 = prettyPrintIndent;
314
+ this.q11_1 = coerceInputValues;
315
+ this.r11_1 = useArrayPolymorphism;
316
+ this.s11_1 = classDiscriminator;
317
+ this.t11_1 = allowSpecialFloatingPointValues;
318
+ this.u11_1 = useAlternativeNames;
319
+ this.v11_1 = namingStrategy;
320
+ this.w11_1 = decodeEnumsCaseInsensitive;
321
+ this.x11_1 = allowTrailingComma;
322
+ this.y11_1 = allowComments;
323
+ this.z11_1 = classDiscriminatorMode;
324
+ }
325
+ protoOf(JsonConfiguration).toString = function () {
326
+ return 'JsonConfiguration(encodeDefaults=' + this.j11_1 + ', ignoreUnknownKeys=' + this.k11_1 + ', isLenient=' + this.l11_1 + ', ' + ('allowStructuredMapKeys=' + this.m11_1 + ', prettyPrint=' + this.n11_1 + ', explicitNulls=' + this.o11_1 + ', ') + ("prettyPrintIndent='" + this.p11_1 + "', coerceInputValues=" + this.q11_1 + ', useArrayPolymorphism=' + this.r11_1 + ', ') + ("classDiscriminator='" + this.s11_1 + "', allowSpecialFloatingPointValues=" + this.t11_1 + ', ') + ('useAlternativeNames=' + this.u11_1 + ', namingStrategy=' + toString(this.v11_1) + ', decodeEnumsCaseInsensitive=' + this.w11_1 + ', ') + ('allowTrailingComma=' + this.x11_1 + ', allowComments=' + this.y11_1 + ', classDiscriminatorMode=' + this.z11_1.toString() + ')');
327
+ };
328
+ var ClassDiscriminatorMode_NONE_instance;
329
+ var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
330
+ var ClassDiscriminatorMode_POLYMORPHIC_instance;
331
+ var ClassDiscriminatorMode_entriesInitialized;
332
+ function ClassDiscriminatorMode_initEntries() {
333
+ if (ClassDiscriminatorMode_entriesInitialized)
334
+ return Unit_instance;
335
+ ClassDiscriminatorMode_entriesInitialized = true;
336
+ ClassDiscriminatorMode_NONE_instance = new ClassDiscriminatorMode('NONE', 0);
337
+ ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance = new ClassDiscriminatorMode('ALL_JSON_OBJECTS', 1);
338
+ ClassDiscriminatorMode_POLYMORPHIC_instance = new ClassDiscriminatorMode('POLYMORPHIC', 2);
339
+ }
340
+ function ClassDiscriminatorMode(name, ordinal) {
341
+ Enum.call(this, name, ordinal);
342
+ }
343
+ function ClassDiscriminatorMode_NONE_getInstance() {
344
+ ClassDiscriminatorMode_initEntries();
345
+ return ClassDiscriminatorMode_NONE_instance;
346
+ }
347
+ function ClassDiscriminatorMode_POLYMORPHIC_getInstance() {
348
+ ClassDiscriminatorMode_initEntries();
349
+ return ClassDiscriminatorMode_POLYMORPHIC_instance;
350
+ }
351
+ function JsonDecoder() {
352
+ }
353
+ function get_jsonUnquotedLiteralDescriptor() {
354
+ _init_properties_JsonElement_kt__7cbdc2();
355
+ return jsonUnquotedLiteralDescriptor;
356
+ }
357
+ var jsonUnquotedLiteralDescriptor;
358
+ function Companion() {
359
+ }
360
+ var Companion_instance;
361
+ function Companion_getInstance_3() {
362
+ return Companion_instance;
363
+ }
364
+ function JsonObject$toString$lambda(_destruct__k2r9zo) {
365
+ // Inline function 'kotlin.collections.component1' call
366
+ var k = _destruct__k2r9zo.n1();
367
+ // Inline function 'kotlin.collections.component2' call
368
+ var v = _destruct__k2r9zo.o1();
369
+ // Inline function 'kotlin.text.buildString' call
370
+ // Inline function 'kotlin.apply' call
371
+ var this_0 = StringBuilder_init_$Create$();
372
+ printQuoted(this_0, k);
373
+ this_0.o6(_Char___init__impl__6a9atx(58));
374
+ this_0.m6(v);
375
+ return this_0.toString();
376
+ }
377
+ function JsonObject(content) {
378
+ JsonElement.call(this);
379
+ this.c12_1 = content;
380
+ }
381
+ protoOf(JsonObject).equals = function (other) {
382
+ return equals(this.c12_1, other);
383
+ };
384
+ protoOf(JsonObject).hashCode = function () {
385
+ return hashCode(this.c12_1);
386
+ };
387
+ protoOf(JsonObject).toString = function () {
388
+ var tmp = this.c12_1.u1();
389
+ return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
390
+ };
391
+ protoOf(JsonObject).m = function () {
392
+ return this.c12_1.m();
393
+ };
394
+ protoOf(JsonObject).d12 = function (key) {
395
+ return this.c12_1.p1(key);
396
+ };
397
+ protoOf(JsonObject).p1 = function (key) {
398
+ if (!(!(key == null) ? typeof key === 'string' : false))
399
+ return false;
400
+ return this.d12((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
401
+ };
402
+ protoOf(JsonObject).e12 = function (key) {
403
+ return this.c12_1.r1(key);
404
+ };
405
+ protoOf(JsonObject).r1 = function (key) {
406
+ if (!(!(key == null) ? typeof key === 'string' : false))
407
+ return null;
408
+ return this.e12((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
409
+ };
410
+ protoOf(JsonObject).k = function () {
411
+ return this.c12_1.k();
412
+ };
413
+ protoOf(JsonObject).s1 = function () {
414
+ return this.c12_1.s1();
415
+ };
416
+ protoOf(JsonObject).t1 = function () {
417
+ return this.c12_1.t1();
418
+ };
419
+ protoOf(JsonObject).u1 = function () {
420
+ return this.c12_1.u1();
421
+ };
422
+ function get_jsonObject(_this__u8e3s4) {
423
+ _init_properties_JsonElement_kt__7cbdc2();
424
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonObject ? _this__u8e3s4 : null;
425
+ var tmp;
426
+ if (tmp0_elvis_lhs == null) {
427
+ error(_this__u8e3s4, 'JsonObject');
428
+ } else {
429
+ tmp = tmp0_elvis_lhs;
430
+ }
431
+ return tmp;
432
+ }
433
+ function Companion_0() {
434
+ }
435
+ var Companion_instance_0;
436
+ function Companion_getInstance_4() {
437
+ return Companion_instance_0;
438
+ }
439
+ function JsonElement() {
440
+ }
441
+ function error(_this__u8e3s4, element) {
442
+ _init_properties_JsonElement_kt__7cbdc2();
443
+ throw IllegalArgumentException_init_$Create$('Element ' + toString_0(getKClassFromExpression(_this__u8e3s4)) + ' is not a ' + element);
444
+ }
445
+ function Companion_1() {
446
+ }
447
+ var Companion_instance_1;
448
+ function Companion_getInstance_5() {
449
+ return Companion_instance_1;
450
+ }
451
+ function JsonPrimitive() {
452
+ JsonElement.call(this);
453
+ }
454
+ protoOf(JsonPrimitive).toString = function () {
455
+ return this.f12();
456
+ };
457
+ function Companion_2() {
458
+ }
459
+ var Companion_instance_2;
460
+ function Companion_getInstance_6() {
461
+ return Companion_instance_2;
462
+ }
463
+ function JsonArray(content) {
464
+ JsonElement.call(this);
465
+ this.g12_1 = content;
466
+ }
467
+ protoOf(JsonArray).equals = function (other) {
468
+ return equals(this.g12_1, other);
469
+ };
470
+ protoOf(JsonArray).hashCode = function () {
471
+ return hashCode(this.g12_1);
472
+ };
473
+ protoOf(JsonArray).toString = function () {
474
+ return joinToString(this.g12_1, ',', '[', ']');
475
+ };
476
+ protoOf(JsonArray).m = function () {
477
+ return this.g12_1.m();
478
+ };
479
+ protoOf(JsonArray).h = function () {
480
+ return this.g12_1.h();
481
+ };
482
+ protoOf(JsonArray).l = function (index) {
483
+ return this.g12_1.l(index);
484
+ };
485
+ protoOf(JsonArray).k = function () {
486
+ return this.g12_1.k();
487
+ };
488
+ function JsonNull() {
489
+ JsonNull_instance = this;
490
+ JsonPrimitive.call(this);
491
+ this.h12_1 = 'null';
492
+ }
493
+ protoOf(JsonNull).f12 = function () {
494
+ return this.h12_1;
495
+ };
496
+ protoOf(JsonNull).i12 = function () {
497
+ return JsonNullSerializer_getInstance();
498
+ };
499
+ protoOf(JsonNull).ls = function (typeParamsSerializers) {
500
+ return this.i12();
501
+ };
502
+ var JsonNull_instance;
503
+ function JsonNull_getInstance() {
504
+ if (JsonNull_instance == null)
505
+ new JsonNull();
506
+ return JsonNull_instance;
507
+ }
508
+ function JsonLiteral(body, isString, coerceToInlineType) {
509
+ coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
510
+ JsonPrimitive.call(this);
511
+ this.j12_1 = isString;
512
+ this.k12_1 = coerceToInlineType;
513
+ this.l12_1 = toString_0(body);
514
+ if (!(this.k12_1 == null)) {
515
+ // Inline function 'kotlin.require' call
516
+ // Inline function 'kotlin.require' call
517
+ if (!this.k12_1.wi()) {
518
+ var message = 'Failed requirement.';
519
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
520
+ }
521
+ }
522
+ }
523
+ protoOf(JsonLiteral).f12 = function () {
524
+ return this.l12_1;
525
+ };
526
+ protoOf(JsonLiteral).toString = function () {
527
+ var tmp;
528
+ if (this.j12_1) {
529
+ // Inline function 'kotlin.text.buildString' call
530
+ // Inline function 'kotlin.apply' call
531
+ var this_0 = StringBuilder_init_$Create$();
532
+ printQuoted(this_0, this.l12_1);
533
+ tmp = this_0.toString();
534
+ } else {
535
+ tmp = this.l12_1;
536
+ }
537
+ return tmp;
538
+ };
539
+ protoOf(JsonLiteral).equals = function (other) {
540
+ if (this === other)
541
+ return true;
542
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
543
+ return false;
544
+ if (!(other instanceof JsonLiteral))
545
+ THROW_CCE();
546
+ if (!(this.j12_1 === other.j12_1))
547
+ return false;
548
+ if (!(this.l12_1 === other.l12_1))
549
+ return false;
550
+ return true;
551
+ };
552
+ protoOf(JsonLiteral).hashCode = function () {
553
+ var result = getBooleanHashCode(this.j12_1);
554
+ result = imul(31, result) + getStringHashCode(this.l12_1) | 0;
555
+ return result;
556
+ };
557
+ function JsonPrimitive_0(value) {
558
+ _init_properties_JsonElement_kt__7cbdc2();
559
+ if (value == null)
560
+ return JsonNull_getInstance();
561
+ return new JsonLiteral(value, true);
562
+ }
563
+ function get_booleanOrNull(_this__u8e3s4) {
564
+ _init_properties_JsonElement_kt__7cbdc2();
565
+ return toBooleanStrictOrNull_0(_this__u8e3s4.f12());
566
+ }
567
+ function parseLongImpl(_this__u8e3s4) {
568
+ _init_properties_JsonElement_kt__7cbdc2();
569
+ return (new StringJsonLexer(_this__u8e3s4.f12())).m12();
570
+ }
571
+ function get_float(_this__u8e3s4) {
572
+ _init_properties_JsonElement_kt__7cbdc2();
573
+ // Inline function 'kotlin.text.toFloat' call
574
+ var this_0 = _this__u8e3s4.f12();
575
+ // Inline function 'kotlin.js.unsafeCast' call
576
+ // Inline function 'kotlin.js.asDynamic' call
577
+ return toDouble(this_0);
578
+ }
579
+ function get_double(_this__u8e3s4) {
580
+ _init_properties_JsonElement_kt__7cbdc2();
581
+ return toDouble(_this__u8e3s4.f12());
582
+ }
583
+ function get_contentOrNull(_this__u8e3s4) {
584
+ _init_properties_JsonElement_kt__7cbdc2();
585
+ var tmp;
586
+ if (_this__u8e3s4 instanceof JsonNull) {
587
+ tmp = null;
588
+ } else {
589
+ tmp = _this__u8e3s4.f12();
590
+ }
591
+ return tmp;
592
+ }
593
+ function get_jsonPrimitive(_this__u8e3s4) {
594
+ _init_properties_JsonElement_kt__7cbdc2();
595
+ var tmp0_elvis_lhs = _this__u8e3s4 instanceof JsonPrimitive ? _this__u8e3s4 : null;
596
+ var tmp;
597
+ if (tmp0_elvis_lhs == null) {
598
+ error(_this__u8e3s4, 'JsonPrimitive');
599
+ } else {
600
+ tmp = tmp0_elvis_lhs;
601
+ }
602
+ return tmp;
603
+ }
604
+ var properties_initialized_JsonElement_kt_abxy8s;
605
+ function _init_properties_JsonElement_kt__7cbdc2() {
606
+ if (!properties_initialized_JsonElement_kt_abxy8s) {
607
+ properties_initialized_JsonElement_kt_abxy8s = true;
608
+ jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
609
+ }
610
+ }
611
+ function JsonObjectDescriptor() {
612
+ JsonObjectDescriptor_instance = this;
613
+ this.n12_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).qh();
614
+ this.o12_1 = 'kotlinx.serialization.json.JsonObject';
615
+ }
616
+ protoOf(JsonObjectDescriptor).ui = function () {
617
+ return this.o12_1;
618
+ };
619
+ protoOf(JsonObjectDescriptor).zi = function (index) {
620
+ return this.n12_1.zi(index);
621
+ };
622
+ protoOf(JsonObjectDescriptor).aj = function (name) {
623
+ return this.n12_1.aj(name);
624
+ };
625
+ protoOf(JsonObjectDescriptor).bj = function (index) {
626
+ return this.n12_1.bj(index);
627
+ };
628
+ protoOf(JsonObjectDescriptor).cj = function (index) {
629
+ return this.n12_1.cj(index);
630
+ };
631
+ protoOf(JsonObjectDescriptor).dj = function (index) {
632
+ return this.n12_1.dj(index);
633
+ };
634
+ protoOf(JsonObjectDescriptor).vi = function () {
635
+ return this.n12_1.vi();
636
+ };
637
+ protoOf(JsonObjectDescriptor).qi = function () {
638
+ return this.n12_1.qi();
639
+ };
640
+ protoOf(JsonObjectDescriptor).wi = function () {
641
+ return this.n12_1.wi();
642
+ };
643
+ protoOf(JsonObjectDescriptor).xi = function () {
644
+ return this.n12_1.xi();
645
+ };
646
+ protoOf(JsonObjectDescriptor).yi = function () {
647
+ return this.n12_1.yi();
648
+ };
649
+ var JsonObjectDescriptor_instance;
650
+ function JsonObjectDescriptor_getInstance() {
651
+ if (JsonObjectDescriptor_instance == null)
652
+ new JsonObjectDescriptor();
653
+ return JsonObjectDescriptor_instance;
654
+ }
655
+ function JsonObjectSerializer() {
656
+ JsonObjectSerializer_instance = this;
657
+ this.p12_1 = JsonObjectDescriptor_getInstance();
658
+ }
659
+ protoOf(JsonObjectSerializer).qh = function () {
660
+ return this.p12_1;
661
+ };
662
+ protoOf(JsonObjectSerializer).q12 = function (encoder, value) {
663
+ verify(encoder);
664
+ MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).rh(encoder, value);
665
+ };
666
+ protoOf(JsonObjectSerializer).rh = function (encoder, value) {
667
+ return this.q12(encoder, value instanceof JsonObject ? value : THROW_CCE());
668
+ };
669
+ protoOf(JsonObjectSerializer).sh = function (decoder) {
670
+ verify_0(decoder);
671
+ return new JsonObject(MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).sh(decoder));
672
+ };
673
+ var JsonObjectSerializer_instance;
674
+ function JsonObjectSerializer_getInstance() {
675
+ if (JsonObjectSerializer_instance == null)
676
+ new JsonObjectSerializer();
677
+ return JsonObjectSerializer_instance;
678
+ }
679
+ function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
680
+ $this$buildSerialDescriptor.bi('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
681
+ $this$buildSerialDescriptor.bi('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
682
+ $this$buildSerialDescriptor.bi('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
683
+ $this$buildSerialDescriptor.bi('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
684
+ $this$buildSerialDescriptor.bi('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
685
+ return Unit_instance;
686
+ }
687
+ function JsonElementSerializer$descriptor$lambda$lambda() {
688
+ return JsonPrimitiveSerializer_getInstance().r12_1;
689
+ }
690
+ function JsonElementSerializer$descriptor$lambda$lambda_0() {
691
+ return JsonNullSerializer_getInstance().s12_1;
692
+ }
693
+ function JsonElementSerializer$descriptor$lambda$lambda_1() {
694
+ return JsonLiteralSerializer_getInstance().t12_1;
695
+ }
696
+ function JsonElementSerializer$descriptor$lambda$lambda_2() {
697
+ return JsonObjectSerializer_getInstance().p12_1;
698
+ }
699
+ function JsonElementSerializer$descriptor$lambda$lambda_3() {
700
+ return JsonArraySerializer_getInstance().u12_1;
701
+ }
702
+ function JsonElementSerializer() {
703
+ JsonElementSerializer_instance = this;
704
+ var tmp = this;
705
+ var tmp_0 = SEALED_getInstance();
706
+ tmp.v12_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
707
+ }
708
+ protoOf(JsonElementSerializer).qh = function () {
709
+ return this.v12_1;
710
+ };
711
+ protoOf(JsonElementSerializer).w12 = function (encoder, value) {
712
+ verify(encoder);
713
+ if (value instanceof JsonPrimitive) {
714
+ encoder.em(JsonPrimitiveSerializer_getInstance(), value);
715
+ } else {
716
+ if (value instanceof JsonObject) {
717
+ encoder.em(JsonObjectSerializer_getInstance(), value);
718
+ } else {
719
+ if (value instanceof JsonArray) {
720
+ encoder.em(JsonArraySerializer_getInstance(), value);
721
+ } else {
722
+ noWhenBranchMatchedException();
723
+ }
724
+ }
725
+ }
726
+ };
727
+ protoOf(JsonElementSerializer).rh = function (encoder, value) {
728
+ return this.w12(encoder, value instanceof JsonElement ? value : THROW_CCE());
729
+ };
730
+ protoOf(JsonElementSerializer).sh = function (decoder) {
731
+ var input = asJsonDecoder(decoder);
732
+ return input.b12();
733
+ };
734
+ var JsonElementSerializer_instance;
735
+ function JsonElementSerializer_getInstance() {
736
+ if (JsonElementSerializer_instance == null)
737
+ new JsonElementSerializer();
738
+ return JsonElementSerializer_instance;
739
+ }
740
+ function verify(encoder) {
741
+ asJsonEncoder(encoder);
742
+ }
743
+ function verify_0(decoder) {
744
+ asJsonDecoder(decoder);
745
+ }
746
+ function defer(deferred) {
747
+ return new defer$1(deferred);
748
+ }
749
+ function JsonPrimitiveSerializer() {
750
+ JsonPrimitiveSerializer_instance = this;
751
+ this.r12_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
752
+ }
753
+ protoOf(JsonPrimitiveSerializer).qh = function () {
754
+ return this.r12_1;
755
+ };
756
+ protoOf(JsonPrimitiveSerializer).x12 = function (encoder, value) {
757
+ verify(encoder);
758
+ var tmp;
759
+ if (value instanceof JsonNull) {
760
+ encoder.em(JsonNullSerializer_getInstance(), JsonNull_getInstance());
761
+ tmp = Unit_instance;
762
+ } else {
763
+ var tmp_0 = JsonLiteralSerializer_getInstance();
764
+ encoder.em(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
765
+ tmp = Unit_instance;
766
+ }
767
+ return tmp;
768
+ };
769
+ protoOf(JsonPrimitiveSerializer).rh = function (encoder, value) {
770
+ return this.x12(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
771
+ };
772
+ protoOf(JsonPrimitiveSerializer).sh = function (decoder) {
773
+ var result = asJsonDecoder(decoder).b12();
774
+ if (!(result instanceof JsonPrimitive))
775
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonPrimitive, had ' + toString_0(getKClassFromExpression(result)), toString_0(result));
776
+ return result;
777
+ };
778
+ var JsonPrimitiveSerializer_instance;
779
+ function JsonPrimitiveSerializer_getInstance() {
780
+ if (JsonPrimitiveSerializer_instance == null)
781
+ new JsonPrimitiveSerializer();
782
+ return JsonPrimitiveSerializer_instance;
783
+ }
784
+ function JsonNullSerializer() {
785
+ JsonNullSerializer_instance = this;
786
+ this.s12_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
787
+ }
788
+ protoOf(JsonNullSerializer).qh = function () {
789
+ return this.s12_1;
790
+ };
791
+ protoOf(JsonNullSerializer).y12 = function (encoder, value) {
792
+ verify(encoder);
793
+ encoder.il();
794
+ };
795
+ protoOf(JsonNullSerializer).rh = function (encoder, value) {
796
+ return this.y12(encoder, value instanceof JsonNull ? value : THROW_CCE());
797
+ };
798
+ protoOf(JsonNullSerializer).sh = function (decoder) {
799
+ verify_0(decoder);
800
+ if (decoder.zj()) {
801
+ throw new JsonDecodingException("Expected 'null' literal");
802
+ }
803
+ decoder.ak();
804
+ return JsonNull_getInstance();
805
+ };
806
+ var JsonNullSerializer_instance;
807
+ function JsonNullSerializer_getInstance() {
808
+ if (JsonNullSerializer_instance == null)
809
+ new JsonNullSerializer();
810
+ return JsonNullSerializer_instance;
811
+ }
812
+ function JsonLiteralSerializer() {
813
+ JsonLiteralSerializer_instance = this;
814
+ this.t12_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
815
+ }
816
+ protoOf(JsonLiteralSerializer).qh = function () {
817
+ return this.t12_1;
818
+ };
819
+ protoOf(JsonLiteralSerializer).z12 = function (encoder, value) {
820
+ verify(encoder);
821
+ if (value.j12_1) {
822
+ return encoder.rl(value.l12_1);
823
+ }
824
+ if (!(value.k12_1 == null)) {
825
+ return encoder.sl(value.k12_1).rl(value.l12_1);
826
+ }
827
+ var tmp0_safe_receiver = toLongOrNull(value.l12_1);
828
+ if (tmp0_safe_receiver == null)
829
+ null;
830
+ else {
831
+ // Inline function 'kotlin.let' call
832
+ return encoder.nl(tmp0_safe_receiver);
833
+ }
834
+ var tmp1_safe_receiver = toULongOrNull(value.l12_1);
835
+ var tmp = tmp1_safe_receiver;
836
+ if ((tmp == null ? null : new ULong(tmp)) == null)
837
+ null;
838
+ else {
839
+ var tmp_0 = tmp1_safe_receiver;
840
+ // Inline function 'kotlin.let' call
841
+ var it = (tmp_0 == null ? null : new ULong(tmp_0)).ah_1;
842
+ var tmp_1 = encoder.sl(serializer_0(Companion_getInstance()).qh());
843
+ // Inline function 'kotlin.ULong.toLong' call
844
+ var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it);
845
+ tmp_1.nl(tmp$ret$1);
846
+ return Unit_instance;
847
+ }
848
+ var tmp2_safe_receiver = toDoubleOrNull(value.l12_1);
849
+ if (tmp2_safe_receiver == null)
850
+ null;
851
+ else {
852
+ // Inline function 'kotlin.let' call
853
+ return encoder.pl(tmp2_safe_receiver);
854
+ }
855
+ var tmp3_safe_receiver = toBooleanStrictOrNull(value.l12_1);
856
+ if (tmp3_safe_receiver == null)
857
+ null;
858
+ else {
859
+ // Inline function 'kotlin.let' call
860
+ return encoder.jl(tmp3_safe_receiver);
861
+ }
862
+ encoder.rl(value.l12_1);
863
+ };
864
+ protoOf(JsonLiteralSerializer).rh = function (encoder, value) {
865
+ return this.z12(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
866
+ };
867
+ protoOf(JsonLiteralSerializer).sh = function (decoder) {
868
+ var result = asJsonDecoder(decoder).b12();
869
+ if (!(result instanceof JsonLiteral))
870
+ throw JsonDecodingException_0(-1, 'Unexpected JSON element, expected JsonLiteral, had ' + toString_0(getKClassFromExpression(result)), toString_0(result));
871
+ return result;
872
+ };
873
+ var JsonLiteralSerializer_instance;
874
+ function JsonLiteralSerializer_getInstance() {
875
+ if (JsonLiteralSerializer_instance == null)
876
+ new JsonLiteralSerializer();
877
+ return JsonLiteralSerializer_instance;
878
+ }
879
+ function JsonArrayDescriptor() {
880
+ JsonArrayDescriptor_instance = this;
881
+ this.a13_1 = ListSerializer(JsonElementSerializer_getInstance()).qh();
882
+ this.b13_1 = 'kotlinx.serialization.json.JsonArray';
883
+ }
884
+ protoOf(JsonArrayDescriptor).ui = function () {
885
+ return this.b13_1;
886
+ };
887
+ protoOf(JsonArrayDescriptor).zi = function (index) {
888
+ return this.a13_1.zi(index);
889
+ };
890
+ protoOf(JsonArrayDescriptor).aj = function (name) {
891
+ return this.a13_1.aj(name);
892
+ };
893
+ protoOf(JsonArrayDescriptor).bj = function (index) {
894
+ return this.a13_1.bj(index);
895
+ };
896
+ protoOf(JsonArrayDescriptor).cj = function (index) {
897
+ return this.a13_1.cj(index);
898
+ };
899
+ protoOf(JsonArrayDescriptor).dj = function (index) {
900
+ return this.a13_1.dj(index);
901
+ };
902
+ protoOf(JsonArrayDescriptor).vi = function () {
903
+ return this.a13_1.vi();
904
+ };
905
+ protoOf(JsonArrayDescriptor).qi = function () {
906
+ return this.a13_1.qi();
907
+ };
908
+ protoOf(JsonArrayDescriptor).wi = function () {
909
+ return this.a13_1.wi();
910
+ };
911
+ protoOf(JsonArrayDescriptor).xi = function () {
912
+ return this.a13_1.xi();
913
+ };
914
+ protoOf(JsonArrayDescriptor).yi = function () {
915
+ return this.a13_1.yi();
916
+ };
917
+ var JsonArrayDescriptor_instance;
918
+ function JsonArrayDescriptor_getInstance() {
919
+ if (JsonArrayDescriptor_instance == null)
920
+ new JsonArrayDescriptor();
921
+ return JsonArrayDescriptor_instance;
922
+ }
923
+ function JsonArraySerializer() {
924
+ JsonArraySerializer_instance = this;
925
+ this.u12_1 = JsonArrayDescriptor_getInstance();
926
+ }
927
+ protoOf(JsonArraySerializer).qh = function () {
928
+ return this.u12_1;
929
+ };
930
+ protoOf(JsonArraySerializer).c13 = function (encoder, value) {
931
+ verify(encoder);
932
+ ListSerializer(JsonElementSerializer_getInstance()).rh(encoder, value);
933
+ };
934
+ protoOf(JsonArraySerializer).rh = function (encoder, value) {
935
+ return this.c13(encoder, value instanceof JsonArray ? value : THROW_CCE());
936
+ };
937
+ protoOf(JsonArraySerializer).sh = function (decoder) {
938
+ verify_0(decoder);
939
+ return new JsonArray(ListSerializer(JsonElementSerializer_getInstance()).sh(decoder));
940
+ };
941
+ var JsonArraySerializer_instance;
942
+ function JsonArraySerializer_getInstance() {
943
+ if (JsonArraySerializer_instance == null)
944
+ new JsonArraySerializer();
945
+ return JsonArraySerializer_instance;
946
+ }
947
+ function asJsonDecoder(_this__u8e3s4) {
948
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonDecoder) ? _this__u8e3s4 : null;
949
+ var tmp;
950
+ if (tmp0_elvis_lhs == null) {
951
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Decoder to be JsonDecoder, got ' + toString_0(getKClassFromExpression(_this__u8e3s4))));
952
+ } else {
953
+ tmp = tmp0_elvis_lhs;
954
+ }
955
+ return tmp;
956
+ }
957
+ function asJsonEncoder(_this__u8e3s4) {
958
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonEncoder) ? _this__u8e3s4 : null;
959
+ var tmp;
960
+ if (tmp0_elvis_lhs == null) {
961
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Encoder to be JsonEncoder, got ' + toString_0(getKClassFromExpression(_this__u8e3s4))));
962
+ } else {
963
+ tmp = tmp0_elvis_lhs;
964
+ }
965
+ return tmp;
966
+ }
967
+ function _get_original__l7ku1m($this) {
968
+ var tmp0 = $this.d13_1;
969
+ var tmp = KProperty1;
970
+ // Inline function 'kotlin.getValue' call
971
+ getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
972
+ return tmp0.o1();
973
+ }
974
+ function defer$o$_get_original_$ref_3cje7k() {
975
+ return function (p0) {
976
+ return _get_original__l7ku1m(p0);
977
+ };
978
+ }
979
+ function defer$1($deferred) {
980
+ this.d13_1 = lazy($deferred);
981
+ }
982
+ protoOf(defer$1).ui = function () {
983
+ return _get_original__l7ku1m(this).ui();
984
+ };
985
+ protoOf(defer$1).vi = function () {
986
+ return _get_original__l7ku1m(this).vi();
987
+ };
988
+ protoOf(defer$1).xi = function () {
989
+ return _get_original__l7ku1m(this).xi();
990
+ };
991
+ protoOf(defer$1).zi = function (index) {
992
+ return _get_original__l7ku1m(this).zi(index);
993
+ };
994
+ protoOf(defer$1).aj = function (name) {
995
+ return _get_original__l7ku1m(this).aj(name);
996
+ };
997
+ protoOf(defer$1).bj = function (index) {
998
+ return _get_original__l7ku1m(this).bj(index);
999
+ };
1000
+ protoOf(defer$1).cj = function (index) {
1001
+ return _get_original__l7ku1m(this).cj(index);
1002
+ };
1003
+ protoOf(defer$1).dj = function (index) {
1004
+ return _get_original__l7ku1m(this).dj(index);
1005
+ };
1006
+ function JsonEncoder() {
1007
+ }
1008
+ function Composer(writer) {
1009
+ this.e13_1 = writer;
1010
+ this.f13_1 = true;
1011
+ }
1012
+ protoOf(Composer).g13 = function () {
1013
+ this.f13_1 = true;
1014
+ };
1015
+ protoOf(Composer).h13 = function () {
1016
+ return Unit_instance;
1017
+ };
1018
+ protoOf(Composer).i13 = function () {
1019
+ this.f13_1 = false;
1020
+ };
1021
+ protoOf(Composer).j13 = function () {
1022
+ this.f13_1 = false;
1023
+ };
1024
+ protoOf(Composer).k13 = function () {
1025
+ return Unit_instance;
1026
+ };
1027
+ protoOf(Composer).l13 = function (v) {
1028
+ return this.e13_1.m13(v);
1029
+ };
1030
+ protoOf(Composer).n13 = function (v) {
1031
+ return this.e13_1.o13(v);
1032
+ };
1033
+ protoOf(Composer).p13 = function (v) {
1034
+ return this.e13_1.o13(v.toString());
1035
+ };
1036
+ protoOf(Composer).q13 = function (v) {
1037
+ return this.e13_1.o13(v.toString());
1038
+ };
1039
+ protoOf(Composer).r13 = function (v) {
1040
+ return this.e13_1.s13(fromInt(v));
1041
+ };
1042
+ protoOf(Composer).t13 = function (v) {
1043
+ return this.e13_1.s13(fromInt(v));
1044
+ };
1045
+ protoOf(Composer).u13 = function (v) {
1046
+ return this.e13_1.s13(fromInt(v));
1047
+ };
1048
+ protoOf(Composer).v13 = function (v) {
1049
+ return this.e13_1.s13(v);
1050
+ };
1051
+ protoOf(Composer).w13 = function (v) {
1052
+ return this.e13_1.o13(v.toString());
1053
+ };
1054
+ protoOf(Composer).x13 = function (value) {
1055
+ return this.e13_1.y13(value);
1056
+ };
1057
+ function Composer_0(sb, json) {
1058
+ return json.n10_1.n11_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
1059
+ }
1060
+ function ComposerForUnsignedNumbers(writer, forceQuoting) {
1061
+ Composer.call(this, writer);
1062
+ this.b14_1 = forceQuoting;
1063
+ }
1064
+ protoOf(ComposerForUnsignedNumbers).u13 = function (v) {
1065
+ if (this.b14_1) {
1066
+ // Inline function 'kotlin.toUInt' call
1067
+ var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
1068
+ this.x13(UInt__toString_impl_dbgl21(tmp$ret$0));
1069
+ } else {
1070
+ // Inline function 'kotlin.toUInt' call
1071
+ var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
1072
+ this.n13(UInt__toString_impl_dbgl21(tmp$ret$1));
1073
+ }
1074
+ };
1075
+ protoOf(ComposerForUnsignedNumbers).v13 = function (v) {
1076
+ if (this.b14_1) {
1077
+ // Inline function 'kotlin.toULong' call
1078
+ var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
1079
+ this.x13(ULong__toString_impl_f9au7k(tmp$ret$0));
1080
+ } else {
1081
+ // Inline function 'kotlin.toULong' call
1082
+ var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
1083
+ this.n13(ULong__toString_impl_f9au7k(tmp$ret$1));
1084
+ }
1085
+ };
1086
+ protoOf(ComposerForUnsignedNumbers).r13 = function (v) {
1087
+ if (this.b14_1) {
1088
+ // Inline function 'kotlin.toUByte' call
1089
+ var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
1090
+ this.x13(UByte__toString_impl_v72jg(tmp$ret$0));
1091
+ } else {
1092
+ // Inline function 'kotlin.toUByte' call
1093
+ var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
1094
+ this.n13(UByte__toString_impl_v72jg(tmp$ret$1));
1095
+ }
1096
+ };
1097
+ protoOf(ComposerForUnsignedNumbers).t13 = function (v) {
1098
+ if (this.b14_1) {
1099
+ // Inline function 'kotlin.toUShort' call
1100
+ var tmp$ret$0 = _UShort___init__impl__jigrne(v);
1101
+ this.x13(UShort__toString_impl_edaoee(tmp$ret$0));
1102
+ } else {
1103
+ // Inline function 'kotlin.toUShort' call
1104
+ var tmp$ret$1 = _UShort___init__impl__jigrne(v);
1105
+ this.n13(UShort__toString_impl_edaoee(tmp$ret$1));
1106
+ }
1107
+ };
1108
+ function ComposerForUnquotedLiterals(writer, forceQuoting) {
1109
+ Composer.call(this, writer);
1110
+ this.e14_1 = forceQuoting;
1111
+ }
1112
+ protoOf(ComposerForUnquotedLiterals).x13 = function (value) {
1113
+ if (this.e14_1) {
1114
+ protoOf(Composer).x13.call(this, value);
1115
+ } else {
1116
+ protoOf(Composer).n13.call(this, value);
1117
+ }
1118
+ };
1119
+ function ComposerWithPrettyPrint(writer, json) {
1120
+ Composer.call(this, writer);
1121
+ this.h14_1 = json;
1122
+ this.i14_1 = 0;
1123
+ }
1124
+ protoOf(ComposerWithPrettyPrint).g13 = function () {
1125
+ this.f13_1 = true;
1126
+ this.i14_1 = this.i14_1 + 1 | 0;
1127
+ };
1128
+ protoOf(ComposerWithPrettyPrint).h13 = function () {
1129
+ this.i14_1 = this.i14_1 - 1 | 0;
1130
+ };
1131
+ protoOf(ComposerWithPrettyPrint).i13 = function () {
1132
+ this.f13_1 = false;
1133
+ this.n13('\n');
1134
+ // Inline function 'kotlin.repeat' call
1135
+ var times = this.i14_1;
1136
+ var inductionVariable = 0;
1137
+ if (inductionVariable < times)
1138
+ do {
1139
+ var index = inductionVariable;
1140
+ inductionVariable = inductionVariable + 1 | 0;
1141
+ this.n13(this.h14_1.n10_1.p11_1);
1142
+ }
1143
+ while (inductionVariable < times);
1144
+ };
1145
+ protoOf(ComposerWithPrettyPrint).j13 = function () {
1146
+ if (this.f13_1)
1147
+ this.f13_1 = false;
1148
+ else {
1149
+ this.i13();
1150
+ }
1151
+ };
1152
+ protoOf(ComposerWithPrettyPrint).k13 = function () {
1153
+ this.l13(_Char___init__impl__6a9atx(32));
1154
+ };
1155
+ function readIfAbsent($this, descriptor, index) {
1156
+ $this.k14_1 = (!descriptor.dj(index) && descriptor.cj(index).qi());
1157
+ return $this.k14_1;
1158
+ }
1159
+ function JsonElementMarker$readIfAbsent$ref(p0) {
1160
+ var l = function (_this__u8e3s4, p0_0) {
1161
+ var tmp0 = p0;
1162
+ return readIfAbsent(tmp0, _this__u8e3s4, p0_0);
1163
+ };
1164
+ l.callableName = 'readIfAbsent';
1165
+ return l;
1166
+ }
1167
+ function JsonElementMarker(descriptor) {
1168
+ var tmp = this;
1169
+ tmp.j14_1 = new ElementMarker(descriptor, JsonElementMarker$readIfAbsent$ref(this));
1170
+ this.k14_1 = false;
1171
+ }
1172
+ protoOf(JsonElementMarker).l14 = function (index) {
1173
+ this.j14_1.uq(index);
1174
+ };
1175
+ protoOf(JsonElementMarker).m14 = function () {
1176
+ return this.j14_1.vq();
1177
+ };
1178
+ function JsonDecodingException(message) {
1179
+ JsonException.call(this, message);
1180
+ captureStack(this, JsonDecodingException);
1181
+ }
1182
+ function JsonDecodingException_0(offset, message, input) {
1183
+ return JsonDecodingException_1(offset, message + '\nJSON input: ' + toString_0(minify(input, offset)));
1184
+ }
1185
+ function invalidTrailingComma(_this__u8e3s4, entity) {
1186
+ entity = entity === VOID ? 'object' : entity;
1187
+ _this__u8e3s4.n14('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.e11_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
1188
+ }
1189
+ function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
1190
+ _this__u8e3s4.o14('Unexpected special floating-point value ' + toString_0(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
1191
+ }
1192
+ function JsonEncodingException(message) {
1193
+ JsonException.call(this, message);
1194
+ captureStack(this, JsonEncodingException);
1195
+ }
1196
+ function InvalidKeyKindException(keyDescriptor) {
1197
+ return new JsonEncodingException("Value of type '" + keyDescriptor.ui() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.vi().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
1198
+ }
1199
+ function InvalidFloatingPointDecoded(value, key, output) {
1200
+ return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
1201
+ }
1202
+ function JsonDecodingException_1(offset, message) {
1203
+ return new JsonDecodingException(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message);
1204
+ }
1205
+ function minify(_this__u8e3s4, offset) {
1206
+ offset = offset === VOID ? -1 : offset;
1207
+ if (charSequenceLength(_this__u8e3s4) < 200)
1208
+ return _this__u8e3s4;
1209
+ if (offset === -1) {
1210
+ var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
1211
+ if (start <= 0)
1212
+ return _this__u8e3s4;
1213
+ // Inline function 'kotlin.text.substring' call
1214
+ var endIndex = charSequenceLength(_this__u8e3s4);
1215
+ return '.....' + toString_0(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
1216
+ }
1217
+ var start_0 = offset - 30 | 0;
1218
+ var end = offset + 30 | 0;
1219
+ var prefix = start_0 <= 0 ? '' : '.....';
1220
+ var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
1221
+ var tmp2 = coerceAtLeast(start_0, 0);
1222
+ // Inline function 'kotlin.text.substring' call
1223
+ var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
1224
+ return prefix + toString_0(charSequenceSubSequence(_this__u8e3s4, tmp2, endIndex_0)) + suffix;
1225
+ }
1226
+ function JsonException(message) {
1227
+ SerializationException_init_$Init$(message, this);
1228
+ captureStack(this, JsonException);
1229
+ }
1230
+ function unexpectedFpErrorMessage(value, key, output) {
1231
+ return 'Unexpected special floating-point value ' + toString_0(value) + ' with key ' + key + '. By default, ' + "non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString_0(minify(output)));
1232
+ }
1233
+ function InvalidFloatingPointEncoded(value, output) {
1234
+ return new JsonEncodingException('Unexpected special floating-point value ' + toString_0(value) + '. By default, ' + "non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString_0(minify(output))));
1235
+ }
1236
+ function get_JsonDeserializationNamesKey() {
1237
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1238
+ return JsonDeserializationNamesKey;
1239
+ }
1240
+ var JsonDeserializationNamesKey;
1241
+ function get_JsonSerializationNamesKey() {
1242
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1243
+ return JsonSerializationNamesKey;
1244
+ }
1245
+ var JsonSerializationNamesKey;
1246
+ function ignoreUnknownKeys(_this__u8e3s4, json) {
1247
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1248
+ var tmp;
1249
+ if (json.n10_1.k11_1) {
1250
+ tmp = true;
1251
+ } else {
1252
+ var tmp0 = _this__u8e3s4.yi();
1253
+ var tmp$ret$0;
1254
+ $l$block_0: {
1255
+ // Inline function 'kotlin.collections.any' call
1256
+ var tmp_0;
1257
+ if (isInterface(tmp0, Collection)) {
1258
+ tmp_0 = tmp0.m();
1259
+ } else {
1260
+ tmp_0 = false;
1261
+ }
1262
+ if (tmp_0) {
1263
+ tmp$ret$0 = false;
1264
+ break $l$block_0;
1265
+ }
1266
+ var _iterator__ex2g4s = tmp0.h();
1267
+ while (_iterator__ex2g4s.i()) {
1268
+ var element = _iterator__ex2g4s.j();
1269
+ if (element instanceof JsonIgnoreUnknownKeys) {
1270
+ tmp$ret$0 = true;
1271
+ break $l$block_0;
1272
+ }
1273
+ }
1274
+ tmp$ret$0 = false;
1275
+ }
1276
+ tmp = tmp$ret$0;
1277
+ }
1278
+ return tmp;
1279
+ }
1280
+ function getJsonNameIndex(_this__u8e3s4, json, name) {
1281
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1282
+ if (decodeCaseInsensitive(json, _this__u8e3s4)) {
1283
+ // Inline function 'kotlin.text.lowercase' call
1284
+ // Inline function 'kotlin.js.asDynamic' call
1285
+ var tmp$ret$1 = name.toLowerCase();
1286
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, tmp$ret$1);
1287
+ }
1288
+ var strategy = namingStrategy(_this__u8e3s4, json);
1289
+ if (!(strategy == null))
1290
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
1291
+ var index = _this__u8e3s4.aj(name);
1292
+ if (!(index === -3))
1293
+ return index;
1294
+ if (!json.n10_1.u11_1)
1295
+ return index;
1296
+ return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
1297
+ }
1298
+ function getJsonElementName(_this__u8e3s4, json, index) {
1299
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1300
+ var strategy = namingStrategy(_this__u8e3s4, json);
1301
+ return strategy == null ? _this__u8e3s4.zi(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
1302
+ }
1303
+ function namingStrategy(_this__u8e3s4, json) {
1304
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1305
+ return equals(_this__u8e3s4.vi(), CLASS_getInstance()) ? json.n10_1.v11_1 : null;
1306
+ }
1307
+ function deserializationNamesMap(_this__u8e3s4, descriptor) {
1308
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1309
+ var tmp = get_schemaCache(_this__u8e3s4);
1310
+ var tmp_0 = get_JsonDeserializationNamesKey();
1311
+ return tmp.q14(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
1312
+ }
1313
+ function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
1314
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1315
+ return _this__u8e3s4.n10_1.w11_1 && equals(descriptor.vi(), ENUM_getInstance());
1316
+ }
1317
+ function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
1318
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1319
+ var tmp0_elvis_lhs = deserializationNamesMap(json, _this__u8e3s4).r1(name);
1320
+ return tmp0_elvis_lhs == null ? -3 : tmp0_elvis_lhs;
1321
+ }
1322
+ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
1323
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1324
+ var tmp = get_schemaCache(json);
1325
+ var tmp_0 = get_JsonSerializationNamesKey();
1326
+ return tmp.q14(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
1327
+ }
1328
+ function buildDeserializationNamesMap(_this__u8e3s4, json) {
1329
+ _init_properties_JsonNamesMap_kt__cbbp0k();
1330
+ // Inline function 'kotlin.collections.mutableMapOf' call
1331
+ var builder = LinkedHashMap_init_$Create$();
1332
+ var useLowercaseEnums = decodeCaseInsensitive(json, _this__u8e3s4);
1333
+ var strategyForClasses = namingStrategy(_this__u8e3s4, json);
1334
+ var inductionVariable = 0;
1335
+ var last = _this__u8e3s4.xi();
1336
+ if (inductionVariable < last)
1337
+ do {
1338
+ var i = inductionVariable;
1339
+ inductionVariable = inductionVariable + 1 | 0;
1340
+ // Inline function 'kotlin.collections.filterIsInstance' call
1341
+ var tmp0 = _this__u8e3s4.bj(i);
1342
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
1343
+ var destination = ArrayList_init_$Create$();
1344
+ var _iterator__ex2g4s = tmp0.h();
1345
+ while (_iterator__ex2g4s.i()) {
1346
+ var element = _iterator__ex2g4s.j();
1347
+ if (element instanceof JsonNames) {
1348
+ destination.f(element);
1349
+ }
1350
+ }
1351
+ var tmp0_safe_receiver = singleOrNull(destination);
1352
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r14_1;
1353
+ if (tmp1_safe_receiver == null)
1354
+ null;
1355
+ else {
1356
+ // Inline function 'kotlin.collections.forEach' call
1357
+ var inductionVariable_0 = 0;
1358
+ var last_0 = tmp1_safe_receiver.length;
1359
+ while (inductionVariable_0 < last_0) {
1360
+ var element_0 = tmp1_safe_receiver[inductionVariable_0];
1361
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1362
+ var tmp;
1363
+ if (useLowercaseEnums) {
1364
+ // Inline function 'kotlin.text.lowercase' call
1365
+ // Inline function 'kotlin.js.asDynamic' call
1366
+ tmp = element_0.toLowerCase();
1367
+ } else {
1368
+ tmp = element_0;
1369
+ }
1370
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, tmp, i);
1371
+ }
1372
+ }
1373
+ var tmp_0;
1374
+ if (useLowercaseEnums) {
1375
+ // Inline function 'kotlin.text.lowercase' call
1376
+ // Inline function 'kotlin.js.asDynamic' call
1377
+ tmp_0 = _this__u8e3s4.zi(i).toLowerCase();
1378
+ } else if (!(strategyForClasses == null)) {
1379
+ tmp_0 = strategyForClasses.s14(_this__u8e3s4, i, _this__u8e3s4.zi(i));
1380
+ } else {
1381
+ tmp_0 = null;
1382
+ }
1383
+ var nameToPut = tmp_0;
1384
+ if (nameToPut == null)
1385
+ null;
1386
+ else {
1387
+ // Inline function 'kotlin.let' call
1388
+ buildDeserializationNamesMap$putOrThrow(builder, _this__u8e3s4, nameToPut, i);
1389
+ }
1390
+ }
1391
+ while (inductionVariable < last);
1392
+ // Inline function 'kotlin.collections.ifEmpty' call
1393
+ var tmp_1;
1394
+ if (builder.m()) {
1395
+ tmp_1 = emptyMap();
1396
+ } else {
1397
+ tmp_1 = builder;
1398
+ }
1399
+ return tmp_1;
1400
+ }
1401
+ function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeserializationNamesMap, name, index) {
1402
+ var entity = equals($this_buildDeserializationNamesMap.vi(), ENUM_getInstance()) ? 'enum value' : 'property';
1403
+ // Inline function 'kotlin.collections.contains' call
1404
+ // Inline function 'kotlin.collections.containsKey' call
1405
+ if ((isInterface(_this__u8e3s4, KtMap) ? _this__u8e3s4 : THROW_CCE()).p1(name)) {
1406
+ throw new JsonException("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.zi(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.zi(getValue(_this__u8e3s4, name)) + ' in ' + toString_0($this_buildDeserializationNamesMap)));
1407
+ }
1408
+ // Inline function 'kotlin.collections.set' call
1409
+ _this__u8e3s4.v1(name, index);
1410
+ }
1411
+ function deserializationNamesMap$lambda($descriptor, $this_deserializationNamesMap) {
1412
+ return function () {
1413
+ return buildDeserializationNamesMap($descriptor, $this_deserializationNamesMap);
1414
+ };
1415
+ }
1416
+ function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
1417
+ return function () {
1418
+ var tmp = 0;
1419
+ var tmp_0 = $this_serializationNamesIndices.xi();
1420
+ // Inline function 'kotlin.arrayOfNulls' call
1421
+ var tmp_1 = Array(tmp_0);
1422
+ while (tmp < tmp_0) {
1423
+ var tmp_2 = tmp;
1424
+ var baseName = $this_serializationNamesIndices.zi(tmp_2);
1425
+ tmp_1[tmp_2] = $strategy.s14($this_serializationNamesIndices, tmp_2, baseName);
1426
+ tmp = tmp + 1 | 0;
1427
+ }
1428
+ return tmp_1;
1429
+ };
1430
+ }
1431
+ var properties_initialized_JsonNamesMap_kt_ljpf42;
1432
+ function _init_properties_JsonNamesMap_kt__cbbp0k() {
1433
+ if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
1434
+ properties_initialized_JsonNamesMap_kt_ljpf42 = true;
1435
+ JsonDeserializationNamesKey = new Key();
1436
+ JsonSerializationNamesKey = new Key();
1437
+ }
1438
+ }
1439
+ function Tombstone() {
1440
+ }
1441
+ var Tombstone_instance;
1442
+ function Tombstone_getInstance() {
1443
+ return Tombstone_instance;
1444
+ }
1445
+ function resize($this) {
1446
+ var newSize = imul($this.v14_1, 2);
1447
+ $this.t14_1 = copyOf($this.t14_1, newSize);
1448
+ var tmp = 0;
1449
+ var tmp_0 = new Int32Array(newSize);
1450
+ while (tmp < newSize) {
1451
+ tmp_0[tmp] = -1;
1452
+ tmp = tmp + 1 | 0;
1453
+ }
1454
+ var newIndices = tmp_0;
1455
+ // Inline function 'kotlin.collections.copyInto' call
1456
+ var this_0 = $this.u14_1;
1457
+ var endIndex = this_0.length;
1458
+ // Inline function 'kotlin.js.unsafeCast' call
1459
+ // Inline function 'kotlin.js.asDynamic' call
1460
+ var tmp_1 = this_0;
1461
+ // Inline function 'kotlin.js.unsafeCast' call
1462
+ // Inline function 'kotlin.js.asDynamic' call
1463
+ arrayCopy(tmp_1, newIndices, 0, 0, endIndex);
1464
+ $this.u14_1 = newIndices;
1465
+ }
1466
+ function JsonPath() {
1467
+ var tmp = this;
1468
+ // Inline function 'kotlin.arrayOfNulls' call
1469
+ tmp.t14_1 = Array(8);
1470
+ var tmp_0 = this;
1471
+ var tmp_1 = 0;
1472
+ var tmp_2 = new Int32Array(8);
1473
+ while (tmp_1 < 8) {
1474
+ tmp_2[tmp_1] = -1;
1475
+ tmp_1 = tmp_1 + 1 | 0;
1476
+ }
1477
+ tmp_0.u14_1 = tmp_2;
1478
+ this.v14_1 = -1;
1479
+ }
1480
+ protoOf(JsonPath).w14 = function (sd) {
1481
+ this.v14_1 = this.v14_1 + 1 | 0;
1482
+ var depth = this.v14_1;
1483
+ if (depth === this.t14_1.length) {
1484
+ resize(this);
1485
+ }
1486
+ this.t14_1[depth] = sd;
1487
+ };
1488
+ protoOf(JsonPath).x14 = function (index) {
1489
+ this.u14_1[this.v14_1] = index;
1490
+ };
1491
+ protoOf(JsonPath).y14 = function (key) {
1492
+ var tmp;
1493
+ if (!(this.u14_1[this.v14_1] === -2)) {
1494
+ this.v14_1 = this.v14_1 + 1 | 0;
1495
+ tmp = this.v14_1 === this.t14_1.length;
1496
+ } else {
1497
+ tmp = false;
1498
+ }
1499
+ if (tmp) {
1500
+ resize(this);
1501
+ }
1502
+ this.t14_1[this.v14_1] = key;
1503
+ this.u14_1[this.v14_1] = -2;
1504
+ };
1505
+ protoOf(JsonPath).z14 = function () {
1506
+ if (this.u14_1[this.v14_1] === -2) {
1507
+ this.t14_1[this.v14_1] = Tombstone_instance;
1508
+ }
1509
+ };
1510
+ protoOf(JsonPath).a15 = function () {
1511
+ var depth = this.v14_1;
1512
+ if (this.u14_1[depth] === -2) {
1513
+ this.u14_1[depth] = -1;
1514
+ this.v14_1 = this.v14_1 - 1 | 0;
1515
+ }
1516
+ if (!(this.v14_1 === -1)) {
1517
+ this.v14_1 = this.v14_1 - 1 | 0;
1518
+ }
1519
+ };
1520
+ protoOf(JsonPath).b15 = function () {
1521
+ // Inline function 'kotlin.text.buildString' call
1522
+ // Inline function 'kotlin.apply' call
1523
+ var this_0 = StringBuilder_init_$Create$();
1524
+ this_0.n6('$');
1525
+ // Inline function 'kotlin.repeat' call
1526
+ var times = this.v14_1 + 1 | 0;
1527
+ var inductionVariable = 0;
1528
+ if (inductionVariable < times)
1529
+ do {
1530
+ var index = inductionVariable;
1531
+ inductionVariable = inductionVariable + 1 | 0;
1532
+ var element = this.t14_1[index];
1533
+ if (!(element == null) ? isInterface(element, SerialDescriptor) : false) {
1534
+ if (equals(element.vi(), LIST_getInstance())) {
1535
+ if (!(this.u14_1[index] === -1)) {
1536
+ this_0.n6('[');
1537
+ this_0.o9(this.u14_1[index]);
1538
+ this_0.n6(']');
1539
+ }
1540
+ } else {
1541
+ var idx = this.u14_1[index];
1542
+ if (idx >= 0) {
1543
+ this_0.n6('.');
1544
+ this_0.n6(element.zi(idx));
1545
+ }
1546
+ }
1547
+ } else {
1548
+ if (!(element === Tombstone_instance)) {
1549
+ this_0.n6('[');
1550
+ this_0.n6("'");
1551
+ this_0.m6(element);
1552
+ this_0.n6("'");
1553
+ this_0.n6(']');
1554
+ }
1555
+ }
1556
+ }
1557
+ while (inductionVariable < times);
1558
+ return this_0.toString();
1559
+ };
1560
+ protoOf(JsonPath).toString = function () {
1561
+ return this.b15();
1562
+ };
1563
+ function encodeByWriter(json, writer, serializer, value) {
1564
+ var tmp = WriteMode_OBJ_getInstance();
1565
+ // Inline function 'kotlin.arrayOfNulls' call
1566
+ var size = get_entries().k();
1567
+ var tmp$ret$0 = Array(size);
1568
+ var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
1569
+ encoder.em(serializer, value);
1570
+ }
1571
+ function readObject($this) {
1572
+ // Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
1573
+ var lastToken = $this.l15_1.p15(6);
1574
+ if ($this.l15_1.q15() === 4) {
1575
+ $this.l15_1.o14('Unexpected leading comma');
1576
+ }
1577
+ // Inline function 'kotlin.collections.linkedMapOf' call
1578
+ var result = LinkedHashMap_init_$Create$();
1579
+ $l$loop: while ($this.l15_1.r15()) {
1580
+ var key = $this.m15_1 ? $this.l15_1.t15() : $this.l15_1.s15();
1581
+ $this.l15_1.p15(5);
1582
+ var element = $this.u15();
1583
+ // Inline function 'kotlin.collections.set' call
1584
+ result.v1(key, element);
1585
+ lastToken = $this.l15_1.v15();
1586
+ var tmp0_subject = lastToken;
1587
+ if (tmp0_subject !== 4)
1588
+ if (tmp0_subject === 7)
1589
+ break $l$loop;
1590
+ else {
1591
+ $this.l15_1.o14('Expected end of the object or comma');
1592
+ }
1593
+ }
1594
+ if (lastToken === 6) {
1595
+ $this.l15_1.p15(7);
1596
+ } else if (lastToken === 4) {
1597
+ if (!$this.n15_1) {
1598
+ invalidTrailingComma($this.l15_1);
1599
+ }
1600
+ $this.l15_1.p15(7);
1601
+ }
1602
+ return new JsonObject(result);
1603
+ }
1604
+ function readObject_0($this, _this__u8e3s4, $completion) {
1605
+ var tmp = new $readObjectCOROUTINE$($this, _this__u8e3s4, $completion);
1606
+ tmp.g7_1 = Unit_instance;
1607
+ tmp.h7_1 = null;
1608
+ return tmp.m7();
1609
+ }
1610
+ function readArray($this) {
1611
+ var lastToken = $this.l15_1.v15();
1612
+ if ($this.l15_1.q15() === 4) {
1613
+ $this.l15_1.o14('Unexpected leading comma');
1614
+ }
1615
+ // Inline function 'kotlin.collections.arrayListOf' call
1616
+ var result = ArrayList_init_$Create$();
1617
+ while ($this.l15_1.r15()) {
1618
+ var element = $this.u15();
1619
+ result.f(element);
1620
+ lastToken = $this.l15_1.v15();
1621
+ if (!(lastToken === 4)) {
1622
+ var tmp0 = $this.l15_1;
1623
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1624
+ var condition = lastToken === 9;
1625
+ var position = tmp0.e11_1;
1626
+ if (!condition) {
1627
+ var tmp$ret$1 = 'Expected end of the array or comma';
1628
+ tmp0.o14(tmp$ret$1, position);
1629
+ }
1630
+ }
1631
+ }
1632
+ if (lastToken === 8) {
1633
+ $this.l15_1.p15(9);
1634
+ } else if (lastToken === 4) {
1635
+ if (!$this.n15_1) {
1636
+ invalidTrailingComma($this.l15_1, 'array');
1637
+ }
1638
+ $this.l15_1.p15(9);
1639
+ }
1640
+ return new JsonArray(result);
1641
+ }
1642
+ function readValue($this, isString) {
1643
+ var tmp;
1644
+ if ($this.m15_1 || !isString) {
1645
+ tmp = $this.l15_1.t15();
1646
+ } else {
1647
+ tmp = $this.l15_1.s15();
1648
+ }
1649
+ var string = tmp;
1650
+ if (!isString && string === 'null')
1651
+ return JsonNull_getInstance();
1652
+ return new JsonLiteral(string, isString);
1653
+ }
1654
+ function readDeepRecursive($this) {
1655
+ return invoke(new DeepRecursiveFunction(JsonTreeReader$readDeepRecursive$slambda_0($this, null)), Unit_instance);
1656
+ }
1657
+ function JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation) {
1658
+ this.s16_1 = this$0;
1659
+ CoroutineImpl.call(this, resultContinuation);
1660
+ }
1661
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).w16 = function ($this$DeepRecursiveFunction, it, $completion) {
1662
+ var tmp = this.x16($this$DeepRecursiveFunction, it, $completion);
1663
+ tmp.g7_1 = Unit_instance;
1664
+ tmp.h7_1 = null;
1665
+ return tmp.m7();
1666
+ };
1667
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).s7 = function (p1, p2, $completion) {
1668
+ var tmp = p1 instanceof DeepRecursiveScope ? p1 : THROW_CCE();
1669
+ return this.w16(tmp, p2 instanceof Unit ? p2 : THROW_CCE(), $completion);
1670
+ };
1671
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).m7 = function () {
1672
+ var suspendResult = this.g7_1;
1673
+ $sm: do
1674
+ try {
1675
+ var tmp = this.e7_1;
1676
+ switch (tmp) {
1677
+ case 0:
1678
+ this.f7_1 = 3;
1679
+ var tmp0_subject = this.s16_1.l15_1.q15();
1680
+ if (tmp0_subject === 1) {
1681
+ this.v16_1 = readValue(this.s16_1, true);
1682
+ this.e7_1 = 2;
1683
+ continue $sm;
1684
+ } else {
1685
+ if (tmp0_subject === 0) {
1686
+ this.v16_1 = readValue(this.s16_1, false);
1687
+ this.e7_1 = 2;
1688
+ continue $sm;
1689
+ } else {
1690
+ if (tmp0_subject === 6) {
1691
+ this.e7_1 = 1;
1692
+ suspendResult = readObject_0(this.s16_1, this.t16_1, this);
1693
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1694
+ return suspendResult;
1695
+ }
1696
+ continue $sm;
1697
+ } else {
1698
+ if (tmp0_subject === 8) {
1699
+ this.v16_1 = readArray(this.s16_1);
1700
+ this.e7_1 = 2;
1701
+ continue $sm;
1702
+ } else {
1703
+ var tmp_0 = this;
1704
+ this.s16_1.l15_1.o14("Can't begin reading element, unexpected token");
1705
+ }
1706
+ }
1707
+ }
1708
+ }
1709
+
1710
+ break;
1711
+ case 1:
1712
+ this.v16_1 = suspendResult;
1713
+ this.e7_1 = 2;
1714
+ continue $sm;
1715
+ case 2:
1716
+ return this.v16_1;
1717
+ case 3:
1718
+ throw this.h7_1;
1719
+ }
1720
+ } catch ($p) {
1721
+ var e = $p;
1722
+ if (this.f7_1 === 3) {
1723
+ throw e;
1724
+ } else {
1725
+ this.e7_1 = this.f7_1;
1726
+ this.h7_1 = e;
1727
+ }
1728
+ }
1729
+ while (true);
1730
+ };
1731
+ protoOf(JsonTreeReader$readDeepRecursive$slambda).x16 = function ($this$DeepRecursiveFunction, it, completion) {
1732
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this.s16_1, completion);
1733
+ i.t16_1 = $this$DeepRecursiveFunction;
1734
+ i.u16_1 = it;
1735
+ return i;
1736
+ };
1737
+ function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
1738
+ var i = new JsonTreeReader$readDeepRecursive$slambda(this$0, resultContinuation);
1739
+ var l = function ($this$DeepRecursiveFunction, it, $completion) {
1740
+ return i.w16($this$DeepRecursiveFunction, it, $completion);
1741
+ };
1742
+ l.$arity = 2;
1743
+ return l;
1744
+ }
1745
+ function $readObjectCOROUTINE$(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
1746
+ CoroutineImpl.call(this, resultContinuation);
1747
+ this.e16_1 = _this__u8e3s4;
1748
+ this.f16_1 = _this__u8e3s4_0;
1749
+ }
1750
+ protoOf($readObjectCOROUTINE$).m7 = function () {
1751
+ var suspendResult = this.g7_1;
1752
+ $sm: do
1753
+ try {
1754
+ var tmp = this.e7_1;
1755
+ switch (tmp) {
1756
+ case 0:
1757
+ this.f7_1 = 5;
1758
+ this.h16_1 = this.e16_1;
1759
+ this.i16_1 = this.h16_1.l15_1.p15(6);
1760
+ if (this.h16_1.l15_1.q15() === 4) {
1761
+ this.h16_1.l15_1.o14('Unexpected leading comma');
1762
+ }
1763
+
1764
+ var tmp_0 = this;
1765
+ tmp_0.g16_1 = LinkedHashMap_init_$Create$();
1766
+ this.e7_1 = 1;
1767
+ continue $sm;
1768
+ case 1:
1769
+ if (!this.h16_1.l15_1.r15()) {
1770
+ this.e7_1 = 4;
1771
+ continue $sm;
1772
+ }
1773
+
1774
+ this.j16_1 = this.h16_1.m15_1 ? this.h16_1.l15_1.t15() : this.h16_1.l15_1.s15();
1775
+ this.h16_1.l15_1.p15(5);
1776
+ this.e7_1 = 2;
1777
+ suspendResult = this.f16_1.hf(Unit_instance, this);
1778
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
1779
+ return suspendResult;
1780
+ }
1781
+
1782
+ continue $sm;
1783
+ case 2:
1784
+ var element = suspendResult;
1785
+ var tmp0 = this.g16_1;
1786
+ var key = this.j16_1;
1787
+ tmp0.v1(key, element);
1788
+ this.i16_1 = this.h16_1.l15_1.v15();
1789
+ var tmp0_subject = this.i16_1;
1790
+ if (tmp0_subject === 4) {
1791
+ this.e7_1 = 3;
1792
+ continue $sm;
1793
+ } else {
1794
+ if (tmp0_subject === 7) {
1795
+ this.e7_1 = 4;
1796
+ continue $sm;
1797
+ } else {
1798
+ this.h16_1.l15_1.o14('Expected end of the object or comma');
1799
+ }
1800
+ }
1801
+
1802
+ break;
1803
+ case 3:
1804
+ this.e7_1 = 1;
1805
+ continue $sm;
1806
+ case 4:
1807
+ if (this.i16_1 === 6) {
1808
+ this.h16_1.l15_1.p15(7);
1809
+ } else if (this.i16_1 === 4) {
1810
+ if (!this.h16_1.n15_1) {
1811
+ invalidTrailingComma(this.h16_1.l15_1);
1812
+ }
1813
+ this.h16_1.l15_1.p15(7);
1814
+ }
1815
+
1816
+ return new JsonObject(this.g16_1);
1817
+ case 5:
1818
+ throw this.h7_1;
1819
+ }
1820
+ } catch ($p) {
1821
+ var e = $p;
1822
+ if (this.f7_1 === 5) {
1823
+ throw e;
1824
+ } else {
1825
+ this.e7_1 = this.f7_1;
1826
+ this.h7_1 = e;
1827
+ }
1828
+ }
1829
+ while (true);
1830
+ };
1831
+ function JsonTreeReader(configuration, lexer) {
1832
+ this.l15_1 = lexer;
1833
+ this.m15_1 = configuration.l11_1;
1834
+ this.n15_1 = configuration.x11_1;
1835
+ this.o15_1 = 0;
1836
+ }
1837
+ protoOf(JsonTreeReader).u15 = function () {
1838
+ var token = this.l15_1.q15();
1839
+ var tmp;
1840
+ if (token === 1) {
1841
+ tmp = readValue(this, true);
1842
+ } else if (token === 0) {
1843
+ tmp = readValue(this, false);
1844
+ } else if (token === 6) {
1845
+ var tmp_0;
1846
+ this.o15_1 = this.o15_1 + 1 | 0;
1847
+ if (this.o15_1 === 200) {
1848
+ tmp_0 = readDeepRecursive(this);
1849
+ } else {
1850
+ tmp_0 = readObject(this);
1851
+ }
1852
+ var result = tmp_0;
1853
+ this.o15_1 = this.o15_1 - 1 | 0;
1854
+ tmp = result;
1855
+ } else if (token === 8) {
1856
+ tmp = readArray(this);
1857
+ } else {
1858
+ this.l15_1.o14('Cannot read Json element because of unexpected ' + tokenDescription(token));
1859
+ }
1860
+ return tmp;
1861
+ };
1862
+ function classDiscriminator(_this__u8e3s4, json) {
1863
+ var _iterator__ex2g4s = _this__u8e3s4.yi().h();
1864
+ while (_iterator__ex2g4s.i()) {
1865
+ var annotation = _iterator__ex2g4s.j();
1866
+ if (annotation instanceof JsonClassDiscriminator)
1867
+ return annotation.y16_1;
1868
+ }
1869
+ return json.n10_1.s11_1;
1870
+ }
1871
+ function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
1872
+ if (!(serializer instanceof SealedClassSerializer))
1873
+ return Unit_instance;
1874
+ if (jsonCachedSerialNames(actualSerializer.qh()).l1(classDiscriminator)) {
1875
+ var baseName = serializer.qh().ui();
1876
+ var actualName = actualSerializer.qh().ui();
1877
+ // Inline function 'kotlin.error' call
1878
+ var message = "Sealed class '" + actualName + "' cannot be serialized as base class '" + baseName + "' because" + (" it has property name that conflicts with JSON class discriminator '" + classDiscriminator + "'. ") + 'You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism';
1879
+ throw IllegalStateException_init_$Create$(toString_0(message));
1880
+ }
1881
+ }
1882
+ function checkKind(kind) {
1883
+ if (kind instanceof ENUM) {
1884
+ // Inline function 'kotlin.error' call
1885
+ var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
1886
+ throw IllegalStateException_init_$Create$(toString_0(message));
1887
+ }
1888
+ if (kind instanceof PrimitiveKind) {
1889
+ // Inline function 'kotlin.error' call
1890
+ var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
1891
+ throw IllegalStateException_init_$Create$(toString_0(message_0));
1892
+ }
1893
+ if (kind instanceof PolymorphicKind) {
1894
+ // Inline function 'kotlin.error' call
1895
+ var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
1896
+ throw IllegalStateException_init_$Create$(toString_0(message_1));
1897
+ }
1898
+ }
1899
+ function access$validateIfSealed$tPolymorphicKt(serializer, actualSerializer, classDiscriminator) {
1900
+ return validateIfSealed(serializer, actualSerializer, classDiscriminator);
1901
+ }
1902
+ function Key() {
1903
+ }
1904
+ function DescriptorSchemaCache() {
1905
+ this.p14_1 = createMapForCache(16);
1906
+ }
1907
+ protoOf(DescriptorSchemaCache).z16 = function (descriptor, key, value) {
1908
+ // Inline function 'kotlin.collections.getOrPut' call
1909
+ var this_0 = this.p14_1;
1910
+ var value_0 = this_0.r1(descriptor);
1911
+ var tmp;
1912
+ if (value_0 == null) {
1913
+ var answer = createMapForCache(2);
1914
+ this_0.v1(descriptor, answer);
1915
+ tmp = answer;
1916
+ } else {
1917
+ tmp = value_0;
1918
+ }
1919
+ var tmp0 = tmp;
1920
+ var tmp2 = key instanceof Key ? key : THROW_CCE();
1921
+ // Inline function 'kotlin.collections.set' call
1922
+ var value_1 = !(value == null) ? value : THROW_CCE();
1923
+ tmp0.v1(tmp2, value_1);
1924
+ };
1925
+ protoOf(DescriptorSchemaCache).q14 = function (descriptor, key, defaultValue) {
1926
+ var tmp0_safe_receiver = this.a17(descriptor, key);
1927
+ if (tmp0_safe_receiver == null)
1928
+ null;
1929
+ else {
1930
+ // Inline function 'kotlin.let' call
1931
+ return tmp0_safe_receiver;
1932
+ }
1933
+ var value = defaultValue();
1934
+ this.z16(descriptor, key, value);
1935
+ return value;
1936
+ };
1937
+ protoOf(DescriptorSchemaCache).a17 = function (descriptor, key) {
1938
+ var tmp0_safe_receiver = this.p14_1.r1(descriptor);
1939
+ var tmp;
1940
+ if (tmp0_safe_receiver == null) {
1941
+ tmp = null;
1942
+ } else {
1943
+ tmp = tmp0_safe_receiver.r1(key instanceof Key ? key : THROW_CCE());
1944
+ }
1945
+ var tmp_0 = tmp;
1946
+ return !(tmp_0 == null) ? tmp_0 : null;
1947
+ };
1948
+ function DiscriminatorHolder(discriminatorToSkip) {
1949
+ this.b17_1 = discriminatorToSkip;
1950
+ }
1951
+ function trySkip($this, _this__u8e3s4, unknownKey) {
1952
+ if (_this__u8e3s4 == null)
1953
+ return false;
1954
+ if (_this__u8e3s4.b17_1 === unknownKey) {
1955
+ _this__u8e3s4.b17_1 = null;
1956
+ return true;
1957
+ }
1958
+ return false;
1959
+ }
1960
+ function skipLeftoverElements($this, descriptor) {
1961
+ while (!($this.el(descriptor) === -1)) {
1962
+ }
1963
+ }
1964
+ function checkLeadingComma($this) {
1965
+ if ($this.y10_1.q15() === 4) {
1966
+ $this.y10_1.o14('Unexpected leading comma');
1967
+ }
1968
+ }
1969
+ function decodeMapIndex($this) {
1970
+ var hasComma = false;
1971
+ var decodingKey = !(($this.a11_1 % 2 | 0) === 0);
1972
+ if (decodingKey) {
1973
+ if (!($this.a11_1 === -1)) {
1974
+ hasComma = $this.y10_1.d17();
1975
+ }
1976
+ } else {
1977
+ $this.y10_1.c17(_Char___init__impl__6a9atx(58));
1978
+ }
1979
+ var tmp;
1980
+ if ($this.y10_1.r15()) {
1981
+ if (decodingKey) {
1982
+ if ($this.a11_1 === -1) {
1983
+ var tmp0 = $this.y10_1;
1984
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1985
+ var condition = !hasComma;
1986
+ var position = tmp0.e11_1;
1987
+ if (!condition) {
1988
+ var tmp$ret$0 = 'Unexpected leading comma';
1989
+ tmp0.o14(tmp$ret$0, position);
1990
+ }
1991
+ } else {
1992
+ var tmp0_0 = $this.y10_1;
1993
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
1994
+ var condition_0 = hasComma;
1995
+ var position_0 = tmp0_0.e11_1;
1996
+ if (!condition_0) {
1997
+ var tmp$ret$2 = 'Expected comma after the key-value pair';
1998
+ tmp0_0.o14(tmp$ret$2, position_0);
1999
+ }
2000
+ }
2001
+ }
2002
+ $this.a11_1 = $this.a11_1 + 1 | 0;
2003
+ tmp = $this.a11_1;
2004
+ } else {
2005
+ if (hasComma && !$this.w10_1.n10_1.x11_1) {
2006
+ invalidTrailingComma($this.y10_1);
2007
+ }
2008
+ tmp = -1;
2009
+ }
2010
+ return tmp;
2011
+ }
2012
+ function coerceInputValue($this, descriptor, index) {
2013
+ var tmp0 = $this.w10_1;
2014
+ var tmp$ret$1;
2015
+ $l$block_2: {
2016
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
2017
+ var isOptional = descriptor.dj(index);
2018
+ var elementDescriptor = descriptor.cj(index);
2019
+ var tmp;
2020
+ if (isOptional && !elementDescriptor.qi()) {
2021
+ tmp = $this.y10_1.e17(true);
2022
+ } else {
2023
+ tmp = false;
2024
+ }
2025
+ if (tmp) {
2026
+ tmp$ret$1 = true;
2027
+ break $l$block_2;
2028
+ }
2029
+ if (equals(elementDescriptor.vi(), ENUM_getInstance())) {
2030
+ var tmp_0;
2031
+ if (elementDescriptor.qi()) {
2032
+ tmp_0 = $this.y10_1.e17(false);
2033
+ } else {
2034
+ tmp_0 = false;
2035
+ }
2036
+ if (tmp_0) {
2037
+ tmp$ret$1 = false;
2038
+ break $l$block_2;
2039
+ }
2040
+ var tmp0_elvis_lhs = $this.y10_1.f17($this.c11_1.l11_1);
2041
+ var tmp_1;
2042
+ if (tmp0_elvis_lhs == null) {
2043
+ tmp$ret$1 = false;
2044
+ break $l$block_2;
2045
+ } else {
2046
+ tmp_1 = tmp0_elvis_lhs;
2047
+ }
2048
+ var enumValue = tmp_1;
2049
+ var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
2050
+ var coerceToNull = !tmp0.n10_1.o11_1 && elementDescriptor.qi();
2051
+ if (enumIndex === -3 && (isOptional || coerceToNull)) {
2052
+ $this.y10_1.s15();
2053
+ tmp$ret$1 = true;
2054
+ break $l$block_2;
2055
+ }
2056
+ }
2057
+ tmp$ret$1 = false;
2058
+ }
2059
+ return tmp$ret$1;
2060
+ }
2061
+ function decodeObjectIndex($this, descriptor) {
2062
+ var hasComma = $this.y10_1.d17();
2063
+ while ($this.y10_1.r15()) {
2064
+ hasComma = false;
2065
+ var key = decodeStringKey($this);
2066
+ $this.y10_1.c17(_Char___init__impl__6a9atx(58));
2067
+ var index = getJsonNameIndex(descriptor, $this.w10_1, key);
2068
+ var tmp;
2069
+ if (!(index === -3)) {
2070
+ var tmp_0;
2071
+ if ($this.c11_1.q11_1 && coerceInputValue($this, descriptor, index)) {
2072
+ hasComma = $this.y10_1.d17();
2073
+ tmp_0 = false;
2074
+ } else {
2075
+ var tmp0_safe_receiver = $this.d11_1;
2076
+ if (tmp0_safe_receiver == null)
2077
+ null;
2078
+ else {
2079
+ tmp0_safe_receiver.l14(index);
2080
+ }
2081
+ return index;
2082
+ }
2083
+ tmp = tmp_0;
2084
+ } else {
2085
+ tmp = true;
2086
+ }
2087
+ var isUnknown = tmp;
2088
+ if (isUnknown) {
2089
+ hasComma = handleUnknown($this, descriptor, key);
2090
+ }
2091
+ }
2092
+ if (hasComma && !$this.w10_1.n10_1.x11_1) {
2093
+ invalidTrailingComma($this.y10_1);
2094
+ }
2095
+ var tmp1_safe_receiver = $this.d11_1;
2096
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m14();
2097
+ return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
2098
+ }
2099
+ function handleUnknown($this, descriptor, key) {
2100
+ if (ignoreUnknownKeys(descriptor, $this.w10_1) || trySkip($this, $this.b11_1, key)) {
2101
+ $this.y10_1.h17($this.c11_1.l11_1);
2102
+ } else {
2103
+ $this.y10_1.f11_1.a15();
2104
+ $this.y10_1.g17(key);
2105
+ }
2106
+ return $this.y10_1.d17();
2107
+ }
2108
+ function decodeListIndex($this) {
2109
+ var hasComma = $this.y10_1.d17();
2110
+ var tmp;
2111
+ if ($this.y10_1.r15()) {
2112
+ if (!($this.a11_1 === -1) && !hasComma) {
2113
+ $this.y10_1.o14('Expected end of the array or comma');
2114
+ }
2115
+ $this.a11_1 = $this.a11_1 + 1 | 0;
2116
+ tmp = $this.a11_1;
2117
+ } else {
2118
+ if (hasComma && !$this.w10_1.n10_1.x11_1) {
2119
+ invalidTrailingComma($this.y10_1, 'array');
2120
+ }
2121
+ tmp = -1;
2122
+ }
2123
+ return tmp;
2124
+ }
2125
+ function decodeStringKey($this) {
2126
+ var tmp;
2127
+ if ($this.c11_1.l11_1) {
2128
+ tmp = $this.y10_1.j17();
2129
+ } else {
2130
+ tmp = $this.y10_1.i17();
2131
+ }
2132
+ return tmp;
2133
+ }
2134
+ function StreamingJsonDecoder(json, mode, lexer, descriptor, discriminatorHolder) {
2135
+ AbstractDecoder.call(this);
2136
+ this.w10_1 = json;
2137
+ this.x10_1 = mode;
2138
+ this.y10_1 = lexer;
2139
+ this.z10_1 = this.w10_1.cl();
2140
+ this.a11_1 = -1;
2141
+ this.b11_1 = discriminatorHolder;
2142
+ this.c11_1 = this.w10_1.n10_1;
2143
+ this.d11_1 = this.c11_1.o11_1 ? null : new JsonElementMarker(descriptor);
2144
+ }
2145
+ protoOf(StreamingJsonDecoder).a12 = function () {
2146
+ return this.w10_1;
2147
+ };
2148
+ protoOf(StreamingJsonDecoder).cl = function () {
2149
+ return this.z10_1;
2150
+ };
2151
+ protoOf(StreamingJsonDecoder).b12 = function () {
2152
+ return (new JsonTreeReader(this.w10_1.n10_1, this.y10_1)).u15();
2153
+ };
2154
+ protoOf(StreamingJsonDecoder).mk = function (deserializer) {
2155
+ try {
2156
+ var tmp;
2157
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
2158
+ tmp = true;
2159
+ } else {
2160
+ tmp = this.w10_1.n10_1.r11_1;
2161
+ }
2162
+ if (tmp) {
2163
+ return deserializer.sh(this);
2164
+ }
2165
+ var discriminator = classDiscriminator(deserializer.qh(), this.w10_1);
2166
+ var tmp0_elvis_lhs = this.y10_1.k17(discriminator, this.c11_1.l11_1);
2167
+ var tmp_0;
2168
+ if (tmp0_elvis_lhs == null) {
2169
+ var tmp2 = isInterface(deserializer, DeserializationStrategy) ? deserializer : THROW_CCE();
2170
+ var tmp$ret$0;
2171
+ $l$block: {
2172
+ // Inline function 'kotlinx.serialization.json.internal.decodeSerializableValuePolymorphic' call
2173
+ var tmp_1;
2174
+ if (!(tmp2 instanceof AbstractPolymorphicSerializer)) {
2175
+ tmp_1 = true;
2176
+ } else {
2177
+ tmp_1 = this.a12().n10_1.r11_1;
2178
+ }
2179
+ if (tmp_1) {
2180
+ tmp$ret$0 = tmp2.sh(this);
2181
+ break $l$block;
2182
+ }
2183
+ var discriminator_0 = classDiscriminator(tmp2.qh(), this.a12());
2184
+ var tmp0 = this.b12();
2185
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
2186
+ var serialName = tmp2.qh().ui();
2187
+ if (!(tmp0 instanceof JsonObject)) {
2188
+ var tmp_2 = getKClass(JsonObject).c8();
2189
+ var tmp_3 = getKClassFromExpression(tmp0).c8();
2190
+ var tmp$ret$1 = this.y10_1.f11_1.b15();
2191
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString_0(tmp0));
2192
+ }
2193
+ var jsonTree = tmp0;
2194
+ var tmp0_safe_receiver = jsonTree.e12(discriminator_0);
2195
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
2196
+ var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
2197
+ var tmp_4;
2198
+ try {
2199
+ tmp_4 = findPolymorphicSerializer(tmp2, this, type);
2200
+ } catch ($p) {
2201
+ var tmp_5;
2202
+ if ($p instanceof SerializationException) {
2203
+ var it = $p;
2204
+ throw JsonDecodingException_0(-1, ensureNotNull(it.message), jsonTree.toString());
2205
+ } else {
2206
+ throw $p;
2207
+ }
2208
+ }
2209
+ var tmp_6 = tmp_4;
2210
+ var actualSerializer = isInterface(tmp_6, DeserializationStrategy) ? tmp_6 : THROW_CCE();
2211
+ tmp$ret$0 = readPolymorphicJson(this.a12(), discriminator_0, jsonTree, actualSerializer);
2212
+ }
2213
+ return tmp$ret$0;
2214
+ } else {
2215
+ tmp_0 = tmp0_elvis_lhs;
2216
+ }
2217
+ var type_0 = tmp_0;
2218
+ var tmp_7;
2219
+ try {
2220
+ tmp_7 = findPolymorphicSerializer(deserializer, this, type_0);
2221
+ } catch ($p) {
2222
+ var tmp_8;
2223
+ if ($p instanceof SerializationException) {
2224
+ var it_0 = $p;
2225
+ var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
2226
+ var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
2227
+ this.y10_1.o14(message, VOID, hint);
2228
+ } else {
2229
+ throw $p;
2230
+ }
2231
+ tmp_7 = tmp_8;
2232
+ }
2233
+ var tmp_9 = tmp_7;
2234
+ var actualSerializer_0 = isInterface(tmp_9, DeserializationStrategy) ? tmp_9 : THROW_CCE();
2235
+ this.b11_1 = new DiscriminatorHolder(discriminator);
2236
+ return actualSerializer_0.sh(this);
2237
+ } catch ($p) {
2238
+ if ($p instanceof MissingFieldException) {
2239
+ var e = $p;
2240
+ if (contains(ensureNotNull(e.message), 'at path'))
2241
+ throw e;
2242
+ throw new MissingFieldException(e.ki_1, plus(e.message, ' at path: ') + this.y10_1.f11_1.b15(), e);
2243
+ } else {
2244
+ throw $p;
2245
+ }
2246
+ }
2247
+ };
2248
+ protoOf(StreamingJsonDecoder).nk = function (descriptor) {
2249
+ var newMode = switchMode(this.w10_1, descriptor);
2250
+ this.y10_1.f11_1.w14(descriptor);
2251
+ this.y10_1.c17(newMode.n17_1);
2252
+ checkLeadingComma(this);
2253
+ var tmp;
2254
+ switch (newMode.y1_1) {
2255
+ case 1:
2256
+ case 2:
2257
+ case 3:
2258
+ tmp = new StreamingJsonDecoder(this.w10_1, newMode, this.y10_1, descriptor, this.b11_1);
2259
+ break;
2260
+ default:
2261
+ var tmp_0;
2262
+ if (this.x10_1.equals(newMode) && this.w10_1.n10_1.o11_1) {
2263
+ tmp_0 = this;
2264
+ } else {
2265
+ tmp_0 = new StreamingJsonDecoder(this.w10_1, newMode, this.y10_1, descriptor, this.b11_1);
2266
+ }
2267
+
2268
+ tmp = tmp_0;
2269
+ break;
2270
+ }
2271
+ return tmp;
2272
+ };
2273
+ protoOf(StreamingJsonDecoder).ok = function (descriptor) {
2274
+ if (descriptor.xi() === 0 && ignoreUnknownKeys(descriptor, this.w10_1)) {
2275
+ skipLeftoverElements(this, descriptor);
2276
+ }
2277
+ if (this.y10_1.d17() && !this.w10_1.n10_1.x11_1) {
2278
+ invalidTrailingComma(this.y10_1, '');
2279
+ }
2280
+ this.y10_1.c17(this.x10_1.o17_1);
2281
+ this.y10_1.f11_1.a15();
2282
+ };
2283
+ protoOf(StreamingJsonDecoder).zj = function () {
2284
+ var tmp;
2285
+ var tmp0_safe_receiver = this.d11_1;
2286
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k14_1;
2287
+ if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
2288
+ tmp = !this.y10_1.p17();
2289
+ } else {
2290
+ tmp = false;
2291
+ }
2292
+ return tmp;
2293
+ };
2294
+ protoOf(StreamingJsonDecoder).ak = function () {
2295
+ return null;
2296
+ };
2297
+ protoOf(StreamingJsonDecoder).zk = function (descriptor, index, deserializer, previousValue) {
2298
+ var isMapKey = this.x10_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
2299
+ if (isMapKey) {
2300
+ this.y10_1.f11_1.z14();
2301
+ }
2302
+ var value = protoOf(AbstractDecoder).zk.call(this, descriptor, index, deserializer, previousValue);
2303
+ if (isMapKey) {
2304
+ this.y10_1.f11_1.y14(value);
2305
+ }
2306
+ return value;
2307
+ };
2308
+ protoOf(StreamingJsonDecoder).el = function (descriptor) {
2309
+ var index;
2310
+ switch (this.x10_1.y1_1) {
2311
+ case 0:
2312
+ index = decodeObjectIndex(this, descriptor);
2313
+ break;
2314
+ case 2:
2315
+ index = decodeMapIndex(this);
2316
+ break;
2317
+ default:
2318
+ index = decodeListIndex(this);
2319
+ break;
2320
+ }
2321
+ if (!this.x10_1.equals(WriteMode_MAP_getInstance())) {
2322
+ this.y10_1.f11_1.x14(index);
2323
+ }
2324
+ return index;
2325
+ };
2326
+ protoOf(StreamingJsonDecoder).bk = function () {
2327
+ return this.y10_1.q17();
2328
+ };
2329
+ protoOf(StreamingJsonDecoder).ck = function () {
2330
+ var value = this.y10_1.r17();
2331
+ if (!equalsLong(value, fromInt(convertToByte(value)))) {
2332
+ this.y10_1.o14("Failed to parse byte for input '" + value.toString() + "'");
2333
+ }
2334
+ return convertToByte(value);
2335
+ };
2336
+ protoOf(StreamingJsonDecoder).dk = function () {
2337
+ var value = this.y10_1.r17();
2338
+ if (!equalsLong(value, fromInt(convertToShort(value)))) {
2339
+ this.y10_1.o14("Failed to parse short for input '" + value.toString() + "'");
2340
+ }
2341
+ return convertToShort(value);
2342
+ };
2343
+ protoOf(StreamingJsonDecoder).ek = function () {
2344
+ var value = this.y10_1.r17();
2345
+ if (!equalsLong(value, fromInt(convertToInt(value)))) {
2346
+ this.y10_1.o14("Failed to parse int for input '" + value.toString() + "'");
2347
+ }
2348
+ return convertToInt(value);
2349
+ };
2350
+ protoOf(StreamingJsonDecoder).fk = function () {
2351
+ return this.y10_1.r17();
2352
+ };
2353
+ protoOf(StreamingJsonDecoder).gk = function () {
2354
+ var tmp0 = this.y10_1;
2355
+ var tmp$ret$4;
2356
+ $l$block: {
2357
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2358
+ var input = tmp0.t15();
2359
+ try {
2360
+ // Inline function 'kotlin.text.toFloat' call
2361
+ // Inline function 'kotlin.js.unsafeCast' call
2362
+ // Inline function 'kotlin.js.asDynamic' call
2363
+ tmp$ret$4 = toDouble(input);
2364
+ break $l$block;
2365
+ } catch ($p) {
2366
+ if ($p instanceof IllegalArgumentException) {
2367
+ var e = $p;
2368
+ tmp0.o14("Failed to parse type '" + 'float' + "' for input '" + input + "'");
2369
+ } else {
2370
+ throw $p;
2371
+ }
2372
+ }
2373
+ }
2374
+ var result = tmp$ret$4;
2375
+ var specialFp = this.w10_1.n10_1.t11_1;
2376
+ if (specialFp || isFinite(result))
2377
+ return result;
2378
+ throwInvalidFloatingPointDecoded(this.y10_1, result);
2379
+ };
2380
+ protoOf(StreamingJsonDecoder).hk = function () {
2381
+ var tmp0 = this.y10_1;
2382
+ var tmp$ret$1;
2383
+ $l$block: {
2384
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2385
+ var input = tmp0.t15();
2386
+ try {
2387
+ tmp$ret$1 = toDouble(input);
2388
+ break $l$block;
2389
+ } catch ($p) {
2390
+ if ($p instanceof IllegalArgumentException) {
2391
+ var e = $p;
2392
+ tmp0.o14("Failed to parse type '" + 'double' + "' for input '" + input + "'");
2393
+ } else {
2394
+ throw $p;
2395
+ }
2396
+ }
2397
+ }
2398
+ var result = tmp$ret$1;
2399
+ var specialFp = this.w10_1.n10_1.t11_1;
2400
+ if (specialFp || isFinite_0(result))
2401
+ return result;
2402
+ throwInvalidFloatingPointDecoded(this.y10_1, result);
2403
+ };
2404
+ protoOf(StreamingJsonDecoder).ik = function () {
2405
+ var string = this.y10_1.t15();
2406
+ if (!(string.length === 1)) {
2407
+ this.y10_1.o14("Expected single char, but got '" + string + "'");
2408
+ }
2409
+ return charCodeAt(string, 0);
2410
+ };
2411
+ protoOf(StreamingJsonDecoder).jk = function () {
2412
+ var tmp;
2413
+ if (this.c11_1.l11_1) {
2414
+ tmp = this.y10_1.j17();
2415
+ } else {
2416
+ tmp = this.y10_1.s15();
2417
+ }
2418
+ return tmp;
2419
+ };
2420
+ protoOf(StreamingJsonDecoder).kk = function (descriptor) {
2421
+ return get_isUnsignedNumber(descriptor) ? new JsonDecoderForUnsignedTypes(this.y10_1, this.w10_1) : protoOf(AbstractDecoder).kk.call(this, descriptor);
2422
+ };
2423
+ function JsonDecoderForUnsignedTypes(lexer, json) {
2424
+ AbstractDecoder.call(this);
2425
+ this.s17_1 = lexer;
2426
+ this.t17_1 = json.cl();
2427
+ }
2428
+ protoOf(JsonDecoderForUnsignedTypes).cl = function () {
2429
+ return this.t17_1;
2430
+ };
2431
+ protoOf(JsonDecoderForUnsignedTypes).el = function (descriptor) {
2432
+ var message = 'unsupported';
2433
+ throw IllegalStateException_init_$Create$(toString_0(message));
2434
+ };
2435
+ protoOf(JsonDecoderForUnsignedTypes).ek = function () {
2436
+ var tmp0 = this.s17_1;
2437
+ var tmp$ret$2;
2438
+ $l$block: {
2439
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2440
+ var input = tmp0.t15();
2441
+ try {
2442
+ // Inline function 'kotlin.UInt.toInt' call
2443
+ var this_0 = toUInt(input);
2444
+ tmp$ret$2 = _UInt___get_data__impl__f0vqqw(this_0);
2445
+ break $l$block;
2446
+ } catch ($p) {
2447
+ if ($p instanceof IllegalArgumentException) {
2448
+ var e = $p;
2449
+ tmp0.o14("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
2450
+ } else {
2451
+ throw $p;
2452
+ }
2453
+ }
2454
+ }
2455
+ return tmp$ret$2;
2456
+ };
2457
+ protoOf(JsonDecoderForUnsignedTypes).fk = function () {
2458
+ var tmp0 = this.s17_1;
2459
+ var tmp$ret$2;
2460
+ $l$block: {
2461
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2462
+ var input = tmp0.t15();
2463
+ try {
2464
+ // Inline function 'kotlin.ULong.toLong' call
2465
+ var this_0 = toULong(input);
2466
+ tmp$ret$2 = _ULong___get_data__impl__fggpzb(this_0);
2467
+ break $l$block;
2468
+ } catch ($p) {
2469
+ if ($p instanceof IllegalArgumentException) {
2470
+ var e = $p;
2471
+ tmp0.o14("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
2472
+ } else {
2473
+ throw $p;
2474
+ }
2475
+ }
2476
+ }
2477
+ return tmp$ret$2;
2478
+ };
2479
+ protoOf(JsonDecoderForUnsignedTypes).ck = function () {
2480
+ var tmp0 = this.s17_1;
2481
+ var tmp$ret$2;
2482
+ $l$block: {
2483
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2484
+ var input = tmp0.t15();
2485
+ try {
2486
+ // Inline function 'kotlin.UByte.toByte' call
2487
+ var this_0 = toUByte(input);
2488
+ tmp$ret$2 = _UByte___get_data__impl__jof9qr(this_0);
2489
+ break $l$block;
2490
+ } catch ($p) {
2491
+ if ($p instanceof IllegalArgumentException) {
2492
+ var e = $p;
2493
+ tmp0.o14("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
2494
+ } else {
2495
+ throw $p;
2496
+ }
2497
+ }
2498
+ }
2499
+ return tmp$ret$2;
2500
+ };
2501
+ protoOf(JsonDecoderForUnsignedTypes).dk = function () {
2502
+ var tmp0 = this.s17_1;
2503
+ var tmp$ret$2;
2504
+ $l$block: {
2505
+ // Inline function 'kotlinx.serialization.json.internal.parseString' call
2506
+ var input = tmp0.t15();
2507
+ try {
2508
+ // Inline function 'kotlin.UShort.toShort' call
2509
+ var this_0 = toUShort(input);
2510
+ tmp$ret$2 = _UShort___get_data__impl__g0245(this_0);
2511
+ break $l$block;
2512
+ } catch ($p) {
2513
+ if ($p instanceof IllegalArgumentException) {
2514
+ var e = $p;
2515
+ tmp0.o14("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
2516
+ } else {
2517
+ throw $p;
2518
+ }
2519
+ }
2520
+ }
2521
+ return tmp$ret$2;
2522
+ };
2523
+ function get_unsignedNumberDescriptors() {
2524
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2525
+ return unsignedNumberDescriptors;
2526
+ }
2527
+ var unsignedNumberDescriptors;
2528
+ function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
2529
+ StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache);
2530
+ return $this;
2531
+ }
2532
+ function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
2533
+ return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
2534
+ }
2535
+ function encodeTypeInfo($this, discriminator, serialName) {
2536
+ $this.c15_1.i13();
2537
+ $this.rl(discriminator);
2538
+ $this.c15_1.l13(_Char___init__impl__6a9atx(58));
2539
+ $this.c15_1.k13();
2540
+ $this.rl(serialName);
2541
+ }
2542
+ function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
2543
+ AbstractEncoder.call(this);
2544
+ this.c15_1 = composer;
2545
+ this.d15_1 = json;
2546
+ this.e15_1 = mode;
2547
+ this.f15_1 = modeReuseCache;
2548
+ this.g15_1 = this.d15_1.cl();
2549
+ this.h15_1 = this.d15_1.n10_1;
2550
+ this.i15_1 = false;
2551
+ this.j15_1 = null;
2552
+ this.k15_1 = null;
2553
+ var i = this.e15_1.y1_1;
2554
+ if (!(this.f15_1 == null)) {
2555
+ if (!(this.f15_1[i] === null) || !(this.f15_1[i] === this)) {
2556
+ this.f15_1[i] = this;
2557
+ }
2558
+ }
2559
+ }
2560
+ protoOf(StreamingJsonEncoder).a12 = function () {
2561
+ return this.d15_1;
2562
+ };
2563
+ protoOf(StreamingJsonEncoder).cl = function () {
2564
+ return this.g15_1;
2565
+ };
2566
+ protoOf(StreamingJsonEncoder).jm = function (descriptor, index) {
2567
+ return this.h15_1.j11_1;
2568
+ };
2569
+ protoOf(StreamingJsonEncoder).em = function (serializer, value) {
2570
+ $l$block: {
2571
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
2572
+ if (this.a12().n10_1.r11_1) {
2573
+ serializer.rh(this, value);
2574
+ break $l$block;
2575
+ }
2576
+ var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
2577
+ var tmp;
2578
+ if (isPolymorphicSerializer) {
2579
+ tmp = !this.a12().n10_1.z11_1.equals(ClassDiscriminatorMode_NONE_getInstance());
2580
+ } else {
2581
+ var tmp_0;
2582
+ switch (this.a12().n10_1.z11_1.y1_1) {
2583
+ case 0:
2584
+ case 2:
2585
+ tmp_0 = false;
2586
+ break;
2587
+ case 1:
2588
+ // Inline function 'kotlin.let' call
2589
+
2590
+ var it = serializer.qh().vi();
2591
+ tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
2592
+ break;
2593
+ default:
2594
+ noWhenBranchMatchedException();
2595
+ break;
2596
+ }
2597
+ tmp = tmp_0;
2598
+ }
2599
+ var needDiscriminator = tmp;
2600
+ var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.qh(), this.a12()) : null;
2601
+ var tmp_1;
2602
+ if (isPolymorphicSerializer) {
2603
+ var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
2604
+ $l$block_0: {
2605
+ // Inline function 'kotlin.requireNotNull' call
2606
+ if (value == null) {
2607
+ var message = 'Value for serializer ' + toString_0(serializer.qh()) + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
2608
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
2609
+ } else {
2610
+ break $l$block_0;
2611
+ }
2612
+ }
2613
+ var actual = findPolymorphicSerializer_0(casted, this, value);
2614
+ if (!(baseClassDiscriminator == null)) {
2615
+ access$validateIfSealed$tPolymorphicKt(serializer, actual, baseClassDiscriminator);
2616
+ checkKind(actual.qh().vi());
2617
+ }
2618
+ tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
2619
+ } else {
2620
+ tmp_1 = serializer;
2621
+ }
2622
+ var actualSerializer = tmp_1;
2623
+ if (!(baseClassDiscriminator == null)) {
2624
+ var serialName = actualSerializer.qh().ui();
2625
+ this.j15_1 = baseClassDiscriminator;
2626
+ this.k15_1 = serialName;
2627
+ }
2628
+ actualSerializer.rh(this, value);
2629
+ }
2630
+ };
2631
+ protoOf(StreamingJsonEncoder).nk = function (descriptor) {
2632
+ var newMode = switchMode(this.d15_1, descriptor);
2633
+ if (!(newMode.n17_1 === _Char___init__impl__6a9atx(0))) {
2634
+ this.c15_1.l13(newMode.n17_1);
2635
+ this.c15_1.g13();
2636
+ }
2637
+ var discriminator = this.j15_1;
2638
+ if (!(discriminator == null)) {
2639
+ var tmp0_elvis_lhs = this.k15_1;
2640
+ encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.ui() : tmp0_elvis_lhs);
2641
+ this.j15_1 = null;
2642
+ this.k15_1 = null;
2643
+ }
2644
+ if (this.e15_1.equals(newMode)) {
2645
+ return this;
2646
+ }
2647
+ var tmp1_safe_receiver = this.f15_1;
2648
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.y1_1];
2649
+ return tmp2_elvis_lhs == null ? new StreamingJsonEncoder(this.c15_1, this.d15_1, newMode, this.f15_1) : tmp2_elvis_lhs;
2650
+ };
2651
+ protoOf(StreamingJsonEncoder).ok = function (descriptor) {
2652
+ if (!(this.e15_1.o17_1 === _Char___init__impl__6a9atx(0))) {
2653
+ this.c15_1.h13();
2654
+ this.c15_1.j13();
2655
+ this.c15_1.l13(this.e15_1.o17_1);
2656
+ }
2657
+ };
2658
+ protoOf(StreamingJsonEncoder).gl = function (descriptor, index) {
2659
+ switch (this.e15_1.y1_1) {
2660
+ case 1:
2661
+ if (!this.c15_1.f13_1) {
2662
+ this.c15_1.l13(_Char___init__impl__6a9atx(44));
2663
+ }
2664
+
2665
+ this.c15_1.i13();
2666
+ break;
2667
+ case 2:
2668
+ if (!this.c15_1.f13_1) {
2669
+ var tmp = this;
2670
+ var tmp_0;
2671
+ if ((index % 2 | 0) === 0) {
2672
+ this.c15_1.l13(_Char___init__impl__6a9atx(44));
2673
+ this.c15_1.i13();
2674
+ tmp_0 = true;
2675
+ } else {
2676
+ this.c15_1.l13(_Char___init__impl__6a9atx(58));
2677
+ this.c15_1.k13();
2678
+ tmp_0 = false;
2679
+ }
2680
+ tmp.i15_1 = tmp_0;
2681
+ } else {
2682
+ this.i15_1 = true;
2683
+ this.c15_1.i13();
2684
+ }
2685
+
2686
+ break;
2687
+ case 3:
2688
+ if (index === 0)
2689
+ this.i15_1 = true;
2690
+ if (index === 1) {
2691
+ this.c15_1.l13(_Char___init__impl__6a9atx(44));
2692
+ this.c15_1.k13();
2693
+ this.i15_1 = false;
2694
+ }
2695
+
2696
+ break;
2697
+ default:
2698
+ if (!this.c15_1.f13_1) {
2699
+ this.c15_1.l13(_Char___init__impl__6a9atx(44));
2700
+ }
2701
+
2702
+ this.c15_1.i13();
2703
+ this.rl(getJsonElementName(descriptor, this.d15_1, index));
2704
+ this.c15_1.l13(_Char___init__impl__6a9atx(58));
2705
+ this.c15_1.k13();
2706
+ break;
2707
+ }
2708
+ return true;
2709
+ };
2710
+ protoOf(StreamingJsonEncoder).fm = function (descriptor, index, serializer, value) {
2711
+ if (!(value == null) || this.h15_1.o11_1) {
2712
+ protoOf(AbstractEncoder).fm.call(this, descriptor, index, serializer, value);
2713
+ }
2714
+ };
2715
+ protoOf(StreamingJsonEncoder).sl = function (descriptor) {
2716
+ var tmp;
2717
+ if (get_isUnsignedNumber(descriptor)) {
2718
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
2719
+ var tmp_0;
2720
+ var tmp_1 = this.c15_1;
2721
+ if (tmp_1 instanceof ComposerForUnsignedNumbers) {
2722
+ tmp_0 = this.c15_1;
2723
+ } else {
2724
+ var tmp0 = this.c15_1.e13_1;
2725
+ var p1 = this.i15_1;
2726
+ tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
2727
+ }
2728
+ var tmp$ret$1 = tmp_0;
2729
+ tmp = new StreamingJsonEncoder(tmp$ret$1, this.d15_1, this.e15_1, null);
2730
+ } else if (get_isUnquotedLiteral(descriptor)) {
2731
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
2732
+ var tmp_2;
2733
+ var tmp_3 = this.c15_1;
2734
+ if (tmp_3 instanceof ComposerForUnquotedLiterals) {
2735
+ tmp_2 = this.c15_1;
2736
+ } else {
2737
+ var tmp0_0 = this.c15_1.e13_1;
2738
+ var p1_0 = this.i15_1;
2739
+ tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
2740
+ }
2741
+ var tmp$ret$3 = tmp_2;
2742
+ tmp = new StreamingJsonEncoder(tmp$ret$3, this.d15_1, this.e15_1, null);
2743
+ } else if (!(this.j15_1 == null)) {
2744
+ // Inline function 'kotlin.apply' call
2745
+ this.k15_1 = descriptor.ui();
2746
+ tmp = this;
2747
+ } else {
2748
+ tmp = protoOf(AbstractEncoder).sl.call(this, descriptor);
2749
+ }
2750
+ return tmp;
2751
+ };
2752
+ protoOf(StreamingJsonEncoder).il = function () {
2753
+ this.c15_1.n13('null');
2754
+ };
2755
+ protoOf(StreamingJsonEncoder).jl = function (value) {
2756
+ if (this.i15_1) {
2757
+ this.rl(value.toString());
2758
+ } else {
2759
+ this.c15_1.w13(value);
2760
+ }
2761
+ };
2762
+ protoOf(StreamingJsonEncoder).kl = function (value) {
2763
+ if (this.i15_1) {
2764
+ this.rl(value.toString());
2765
+ } else {
2766
+ this.c15_1.r13(value);
2767
+ }
2768
+ };
2769
+ protoOf(StreamingJsonEncoder).ll = function (value) {
2770
+ if (this.i15_1) {
2771
+ this.rl(value.toString());
2772
+ } else {
2773
+ this.c15_1.t13(value);
2774
+ }
2775
+ };
2776
+ protoOf(StreamingJsonEncoder).ml = function (value) {
2777
+ if (this.i15_1) {
2778
+ this.rl(value.toString());
2779
+ } else {
2780
+ this.c15_1.u13(value);
2781
+ }
2782
+ };
2783
+ protoOf(StreamingJsonEncoder).nl = function (value) {
2784
+ if (this.i15_1) {
2785
+ this.rl(value.toString());
2786
+ } else {
2787
+ this.c15_1.v13(value);
2788
+ }
2789
+ };
2790
+ protoOf(StreamingJsonEncoder).ol = function (value) {
2791
+ if (this.i15_1) {
2792
+ this.rl(value.toString());
2793
+ } else {
2794
+ this.c15_1.p13(value);
2795
+ }
2796
+ if (!this.h15_1.t11_1 && !isFinite(value)) {
2797
+ throw InvalidFloatingPointEncoded(value, toString_0(this.c15_1.e13_1));
2798
+ }
2799
+ };
2800
+ protoOf(StreamingJsonEncoder).pl = function (value) {
2801
+ if (this.i15_1) {
2802
+ this.rl(value.toString());
2803
+ } else {
2804
+ this.c15_1.q13(value);
2805
+ }
2806
+ if (!this.h15_1.t11_1 && !isFinite_0(value)) {
2807
+ throw InvalidFloatingPointEncoded(value, toString_0(this.c15_1.e13_1));
2808
+ }
2809
+ };
2810
+ protoOf(StreamingJsonEncoder).ql = function (value) {
2811
+ this.rl(toString_1(value));
2812
+ };
2813
+ protoOf(StreamingJsonEncoder).rl = function (value) {
2814
+ return this.c15_1.x13(value);
2815
+ };
2816
+ function get_isUnsignedNumber(_this__u8e3s4) {
2817
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2818
+ return _this__u8e3s4.wi() && get_unsignedNumberDescriptors().l1(_this__u8e3s4);
2819
+ }
2820
+ function get_isUnquotedLiteral(_this__u8e3s4) {
2821
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
2822
+ return _this__u8e3s4.wi() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
2823
+ }
2824
+ var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
2825
+ function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
2826
+ if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
2827
+ properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
2828
+ unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).qh(), serializer_0(Companion_getInstance()).qh(), serializer_2(Companion_getInstance_1()).qh(), serializer_3(Companion_getInstance_2()).qh()]);
2829
+ }
2830
+ }
2831
+ function get_ESCAPE_STRINGS() {
2832
+ _init_properties_StringOps_kt__fcy1db();
2833
+ return ESCAPE_STRINGS;
2834
+ }
2835
+ var ESCAPE_STRINGS;
2836
+ var ESCAPE_MARKERS;
2837
+ function toHexChar(i) {
2838
+ _init_properties_StringOps_kt__fcy1db();
2839
+ var d = i & 15;
2840
+ var tmp;
2841
+ if (d < 10) {
2842
+ // Inline function 'kotlin.code' call
2843
+ var this_0 = _Char___init__impl__6a9atx(48);
2844
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
2845
+ tmp = numberToChar(d + tmp$ret$0 | 0);
2846
+ } else {
2847
+ var tmp_0 = d - 10 | 0;
2848
+ // Inline function 'kotlin.code' call
2849
+ var this_1 = _Char___init__impl__6a9atx(97);
2850
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
2851
+ tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
2852
+ }
2853
+ return tmp;
2854
+ }
2855
+ function printQuoted(_this__u8e3s4, value) {
2856
+ _init_properties_StringOps_kt__fcy1db();
2857
+ _this__u8e3s4.o6(_Char___init__impl__6a9atx(34));
2858
+ var lastPos = 0;
2859
+ var inductionVariable = 0;
2860
+ var last = charSequenceLength(value) - 1 | 0;
2861
+ if (inductionVariable <= last)
2862
+ do {
2863
+ var i = inductionVariable;
2864
+ inductionVariable = inductionVariable + 1 | 0;
2865
+ // Inline function 'kotlin.code' call
2866
+ var this_0 = charCodeAt(value, i);
2867
+ var c = Char__toInt_impl_vasixd(this_0);
2868
+ if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
2869
+ _this__u8e3s4.l9(value, lastPos, i);
2870
+ _this__u8e3s4.n6(get_ESCAPE_STRINGS()[c]);
2871
+ lastPos = i + 1 | 0;
2872
+ }
2873
+ }
2874
+ while (inductionVariable <= last);
2875
+ if (!(lastPos === 0))
2876
+ _this__u8e3s4.l9(value, lastPos, value.length);
2877
+ else
2878
+ _this__u8e3s4.n6(value);
2879
+ _this__u8e3s4.o6(_Char___init__impl__6a9atx(34));
2880
+ }
2881
+ function toBooleanStrictOrNull_0(_this__u8e3s4) {
2882
+ _init_properties_StringOps_kt__fcy1db();
2883
+ return equals_0(_this__u8e3s4, 'true', true) ? true : equals_0(_this__u8e3s4, 'false', true) ? false : null;
2884
+ }
2885
+ var properties_initialized_StringOps_kt_wzaea7;
2886
+ function _init_properties_StringOps_kt__fcy1db() {
2887
+ if (!properties_initialized_StringOps_kt_wzaea7) {
2888
+ properties_initialized_StringOps_kt_wzaea7 = true;
2889
+ // Inline function 'kotlin.arrayOfNulls' call
2890
+ // Inline function 'kotlin.apply' call
2891
+ var this_0 = Array(93);
2892
+ var inductionVariable = 0;
2893
+ if (inductionVariable <= 31)
2894
+ do {
2895
+ var c = inductionVariable;
2896
+ inductionVariable = inductionVariable + 1 | 0;
2897
+ var c1 = toHexChar(c >> 12);
2898
+ var c2 = toHexChar(c >> 8);
2899
+ var c3 = toHexChar(c >> 4);
2900
+ var c4 = toHexChar(c);
2901
+ this_0[c] = '\\u' + toString_1(c1) + toString_1(c2) + toString_1(c3) + toString_1(c4);
2902
+ }
2903
+ while (inductionVariable <= 31);
2904
+ // Inline function 'kotlin.code' call
2905
+ var this_1 = _Char___init__impl__6a9atx(34);
2906
+ this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
2907
+ // Inline function 'kotlin.code' call
2908
+ var this_2 = _Char___init__impl__6a9atx(92);
2909
+ this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
2910
+ // Inline function 'kotlin.code' call
2911
+ var this_3 = _Char___init__impl__6a9atx(9);
2912
+ this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
2913
+ // Inline function 'kotlin.code' call
2914
+ var this_4 = _Char___init__impl__6a9atx(8);
2915
+ this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
2916
+ // Inline function 'kotlin.code' call
2917
+ var this_5 = _Char___init__impl__6a9atx(10);
2918
+ this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
2919
+ // Inline function 'kotlin.code' call
2920
+ var this_6 = _Char___init__impl__6a9atx(13);
2921
+ this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
2922
+ this_0[12] = '\\f';
2923
+ ESCAPE_STRINGS = this_0;
2924
+ // Inline function 'kotlin.apply' call
2925
+ var this_7 = new Int8Array(93);
2926
+ var inductionVariable_0 = 0;
2927
+ if (inductionVariable_0 <= 31)
2928
+ do {
2929
+ var c_0 = inductionVariable_0;
2930
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
2931
+ this_7[c_0] = 1;
2932
+ }
2933
+ while (inductionVariable_0 <= 31);
2934
+ // Inline function 'kotlin.code' call
2935
+ var this_8 = _Char___init__impl__6a9atx(34);
2936
+ var tmp = Char__toInt_impl_vasixd(this_8);
2937
+ // Inline function 'kotlin.code' call
2938
+ var this_9 = _Char___init__impl__6a9atx(34);
2939
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_9);
2940
+ this_7[tmp] = toByte(tmp$ret$1);
2941
+ // Inline function 'kotlin.code' call
2942
+ var this_10 = _Char___init__impl__6a9atx(92);
2943
+ var tmp_0 = Char__toInt_impl_vasixd(this_10);
2944
+ // Inline function 'kotlin.code' call
2945
+ var this_11 = _Char___init__impl__6a9atx(92);
2946
+ var tmp$ret$3 = Char__toInt_impl_vasixd(this_11);
2947
+ this_7[tmp_0] = toByte(tmp$ret$3);
2948
+ // Inline function 'kotlin.code' call
2949
+ var this_12 = _Char___init__impl__6a9atx(9);
2950
+ var tmp_1 = Char__toInt_impl_vasixd(this_12);
2951
+ // Inline function 'kotlin.code' call
2952
+ var this_13 = _Char___init__impl__6a9atx(116);
2953
+ var tmp$ret$5 = Char__toInt_impl_vasixd(this_13);
2954
+ this_7[tmp_1] = toByte(tmp$ret$5);
2955
+ // Inline function 'kotlin.code' call
2956
+ var this_14 = _Char___init__impl__6a9atx(8);
2957
+ var tmp_2 = Char__toInt_impl_vasixd(this_14);
2958
+ // Inline function 'kotlin.code' call
2959
+ var this_15 = _Char___init__impl__6a9atx(98);
2960
+ var tmp$ret$7 = Char__toInt_impl_vasixd(this_15);
2961
+ this_7[tmp_2] = toByte(tmp$ret$7);
2962
+ // Inline function 'kotlin.code' call
2963
+ var this_16 = _Char___init__impl__6a9atx(10);
2964
+ var tmp_3 = Char__toInt_impl_vasixd(this_16);
2965
+ // Inline function 'kotlin.code' call
2966
+ var this_17 = _Char___init__impl__6a9atx(110);
2967
+ var tmp$ret$9 = Char__toInt_impl_vasixd(this_17);
2968
+ this_7[tmp_3] = toByte(tmp$ret$9);
2969
+ // Inline function 'kotlin.code' call
2970
+ var this_18 = _Char___init__impl__6a9atx(13);
2971
+ var tmp_4 = Char__toInt_impl_vasixd(this_18);
2972
+ // Inline function 'kotlin.code' call
2973
+ var this_19 = _Char___init__impl__6a9atx(114);
2974
+ var tmp$ret$11 = Char__toInt_impl_vasixd(this_19);
2975
+ this_7[tmp_4] = toByte(tmp$ret$11);
2976
+ // Inline function 'kotlin.code' call
2977
+ var this_20 = _Char___init__impl__6a9atx(102);
2978
+ var tmp$ret$12 = Char__toInt_impl_vasixd(this_20);
2979
+ this_7[12] = toByte(tmp$ret$12);
2980
+ ESCAPE_MARKERS = this_7;
2981
+ }
2982
+ }
2983
+ function readJson(json, element, deserializer) {
2984
+ var tmp;
2985
+ if (element instanceof JsonObject) {
2986
+ tmp = new JsonTreeDecoder(json, element);
2987
+ } else {
2988
+ if (element instanceof JsonArray) {
2989
+ tmp = new JsonTreeListDecoder(json, element);
2990
+ } else {
2991
+ var tmp_0;
2992
+ if (element instanceof JsonLiteral) {
2993
+ tmp_0 = true;
2994
+ } else {
2995
+ tmp_0 = equals(element, JsonNull_getInstance());
2996
+ }
2997
+ if (tmp_0) {
2998
+ tmp = new JsonPrimitiveDecoder(json, element instanceof JsonPrimitive ? element : THROW_CCE());
2999
+ } else {
3000
+ noWhenBranchMatchedException();
3001
+ }
3002
+ }
3003
+ }
3004
+ var input = tmp;
3005
+ return input.mk(deserializer);
3006
+ }
3007
+ function unparsedPrimitive($this, literal, primitive, tag) {
3008
+ var type = startsWith(primitive, 'i') ? 'an ' + primitive : 'a ' + primitive;
3009
+ throw JsonDecodingException_0(-1, "Failed to parse literal '" + literal.toString() + "' as " + type + ' value at element: ' + $this.a18(tag), toString_0($this.b18()));
3010
+ }
3011
+ function AbstractJsonTreeDecoder(json, value, polymorphicDiscriminator) {
3012
+ polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
3013
+ NamedValueDecoder.call(this);
3014
+ this.w17_1 = json;
3015
+ this.x17_1 = value;
3016
+ this.y17_1 = polymorphicDiscriminator;
3017
+ this.z17_1 = this.a12().n10_1;
3018
+ }
3019
+ protoOf(AbstractJsonTreeDecoder).a12 = function () {
3020
+ return this.w17_1;
3021
+ };
3022
+ protoOf(AbstractJsonTreeDecoder).o1 = function () {
3023
+ return this.x17_1;
3024
+ };
3025
+ protoOf(AbstractJsonTreeDecoder).cl = function () {
3026
+ return this.a12().cl();
3027
+ };
3028
+ protoOf(AbstractJsonTreeDecoder).b18 = function () {
3029
+ var tmp0_safe_receiver = this.dy();
3030
+ var tmp;
3031
+ if (tmp0_safe_receiver == null) {
3032
+ tmp = null;
3033
+ } else {
3034
+ // Inline function 'kotlin.let' call
3035
+ tmp = this.c18(tmp0_safe_receiver);
3036
+ }
3037
+ var tmp1_elvis_lhs = tmp;
3038
+ return tmp1_elvis_lhs == null ? this.o1() : tmp1_elvis_lhs;
3039
+ };
3040
+ protoOf(AbstractJsonTreeDecoder).a18 = function (currentTag) {
3041
+ return this.fy() + ('.' + currentTag);
3042
+ };
3043
+ protoOf(AbstractJsonTreeDecoder).b12 = function () {
3044
+ return this.b18();
3045
+ };
3046
+ protoOf(AbstractJsonTreeDecoder).mk = function (deserializer) {
3047
+ var tmp$ret$0;
3048
+ $l$block: {
3049
+ // Inline function 'kotlinx.serialization.json.internal.decodeSerializableValuePolymorphic' call
3050
+ var tmp;
3051
+ if (!(deserializer instanceof AbstractPolymorphicSerializer)) {
3052
+ tmp = true;
3053
+ } else {
3054
+ tmp = this.a12().n10_1.r11_1;
3055
+ }
3056
+ if (tmp) {
3057
+ tmp$ret$0 = deserializer.sh(this);
3058
+ break $l$block;
3059
+ }
3060
+ var discriminator = classDiscriminator(deserializer.qh(), this.a12());
3061
+ var tmp0 = this.b12();
3062
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3063
+ var serialName = deserializer.qh().ui();
3064
+ if (!(tmp0 instanceof JsonObject)) {
3065
+ var tmp_0 = getKClass(JsonObject).c8();
3066
+ var tmp_1 = getKClassFromExpression(tmp0).c8();
3067
+ var tmp$ret$1 = this.fy();
3068
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString_0(tmp0));
3069
+ }
3070
+ var jsonTree = tmp0;
3071
+ var tmp0_safe_receiver = jsonTree.e12(discriminator);
3072
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
3073
+ var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
3074
+ var tmp_2;
3075
+ try {
3076
+ tmp_2 = findPolymorphicSerializer(deserializer, this, type);
3077
+ } catch ($p) {
3078
+ var tmp_3;
3079
+ if ($p instanceof SerializationException) {
3080
+ var it = $p;
3081
+ throw JsonDecodingException_0(-1, ensureNotNull(it.message), jsonTree.toString());
3082
+ } else {
3083
+ throw $p;
3084
+ }
3085
+ }
3086
+ var tmp_4 = tmp_2;
3087
+ var actualSerializer = isInterface(tmp_4, DeserializationStrategy) ? tmp_4 : THROW_CCE();
3088
+ tmp$ret$0 = readPolymorphicJson(this.a12(), discriminator, jsonTree, actualSerializer);
3089
+ }
3090
+ return tmp$ret$0;
3091
+ };
3092
+ protoOf(AbstractJsonTreeDecoder).ey = function (parentName, childName) {
3093
+ return childName;
3094
+ };
3095
+ protoOf(AbstractJsonTreeDecoder).nk = function (descriptor) {
3096
+ var currentObject = this.b18();
3097
+ var tmp0_subject = descriptor.vi();
3098
+ var tmp;
3099
+ var tmp_0;
3100
+ if (equals(tmp0_subject, LIST_getInstance())) {
3101
+ tmp_0 = true;
3102
+ } else {
3103
+ tmp_0 = tmp0_subject instanceof PolymorphicKind;
3104
+ }
3105
+ if (tmp_0) {
3106
+ var tmp_1 = this.a12();
3107
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3108
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3109
+ var serialName = descriptor.ui();
3110
+ if (!(currentObject instanceof JsonArray)) {
3111
+ var tmp_2 = getKClass(JsonArray).c8();
3112
+ var tmp_3 = getKClassFromExpression(currentObject).c8();
3113
+ var tmp$ret$0 = this.fy();
3114
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString_0(currentObject));
3115
+ }
3116
+ tmp = new JsonTreeListDecoder(tmp_1, currentObject);
3117
+ } else {
3118
+ if (equals(tmp0_subject, MAP_getInstance())) {
3119
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
3120
+ var this_0 = this.a12();
3121
+ var keyDescriptor = carrierDescriptor(descriptor.cj(0), this_0.cl());
3122
+ var keyKind = keyDescriptor.vi();
3123
+ var tmp_4;
3124
+ var tmp_5;
3125
+ if (keyKind instanceof PrimitiveKind) {
3126
+ tmp_5 = true;
3127
+ } else {
3128
+ tmp_5 = equals(keyKind, ENUM_getInstance());
3129
+ }
3130
+ if (tmp_5) {
3131
+ var tmp_6 = this.a12();
3132
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3133
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3134
+ var serialName_0 = descriptor.ui();
3135
+ if (!(currentObject instanceof JsonObject)) {
3136
+ var tmp_7 = getKClass(JsonObject).c8();
3137
+ var tmp_8 = getKClassFromExpression(currentObject).c8();
3138
+ var tmp$ret$3 = this.fy();
3139
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_7 + ', but had ' + tmp_8 + ' as the serialized body of ' + serialName_0 + ' at element: ' + tmp$ret$3, toString_0(currentObject));
3140
+ }
3141
+ tmp_4 = new JsonTreeMapDecoder(tmp_6, currentObject);
3142
+ } else {
3143
+ if (this_0.n10_1.m11_1) {
3144
+ var tmp_9 = this.a12();
3145
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3146
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3147
+ var serialName_1 = descriptor.ui();
3148
+ if (!(currentObject instanceof JsonArray)) {
3149
+ var tmp_10 = getKClass(JsonArray).c8();
3150
+ var tmp_11 = getKClassFromExpression(currentObject).c8();
3151
+ var tmp$ret$7 = this.fy();
3152
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_10 + ', but had ' + tmp_11 + ' as the serialized body of ' + serialName_1 + ' at element: ' + tmp$ret$7, toString_0(currentObject));
3153
+ }
3154
+ tmp_4 = new JsonTreeListDecoder(tmp_9, currentObject);
3155
+ } else {
3156
+ throw InvalidKeyKindException(keyDescriptor);
3157
+ }
3158
+ }
3159
+ tmp = tmp_4;
3160
+ } else {
3161
+ var tmp_12 = this.a12();
3162
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3163
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3164
+ var serialName_2 = descriptor.ui();
3165
+ if (!(currentObject instanceof JsonObject)) {
3166
+ var tmp_13 = getKClass(JsonObject).c8();
3167
+ var tmp_14 = getKClassFromExpression(currentObject).c8();
3168
+ var tmp$ret$12 = this.fy();
3169
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_13 + ', but had ' + tmp_14 + ' as the serialized body of ' + serialName_2 + ' at element: ' + tmp$ret$12, toString_0(currentObject));
3170
+ }
3171
+ tmp = new JsonTreeDecoder(tmp_12, currentObject, this.y17_1);
3172
+ }
3173
+ }
3174
+ return tmp;
3175
+ };
3176
+ protoOf(AbstractJsonTreeDecoder).ok = function (descriptor) {
3177
+ };
3178
+ protoOf(AbstractJsonTreeDecoder).zj = function () {
3179
+ var tmp = this.b18();
3180
+ return !(tmp instanceof JsonNull);
3181
+ };
3182
+ protoOf(AbstractJsonTreeDecoder).d18 = function (tag) {
3183
+ return !(this.c18(tag) === JsonNull_getInstance());
3184
+ };
3185
+ protoOf(AbstractJsonTreeDecoder).hy = function (tag) {
3186
+ return this.d18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3187
+ };
3188
+ protoOf(AbstractJsonTreeDecoder).e18 = function (tag) {
3189
+ var tmp$ret$4;
3190
+ $l$block: {
3191
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3192
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3193
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3194
+ var value = this.c18(tag);
3195
+ if (!(value instanceof JsonPrimitive)) {
3196
+ var tmp = getKClass(JsonPrimitive).c8();
3197
+ var tmp_0 = getKClassFromExpression(value).c8();
3198
+ var tmp$ret$0 = this.a18(tag);
3199
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'boolean' + ' at element: ' + tmp$ret$0, toString_0(value));
3200
+ }
3201
+ var literal = value;
3202
+ try {
3203
+ var tmp0_elvis_lhs = get_booleanOrNull(literal);
3204
+ var tmp_1;
3205
+ if (tmp0_elvis_lhs == null) {
3206
+ unparsedPrimitive(this, literal, 'boolean', tag);
3207
+ } else {
3208
+ tmp_1 = tmp0_elvis_lhs;
3209
+ }
3210
+ tmp$ret$4 = tmp_1;
3211
+ break $l$block;
3212
+ } catch ($p) {
3213
+ if ($p instanceof IllegalArgumentException) {
3214
+ var e = $p;
3215
+ unparsedPrimitive(this, literal, 'boolean', tag);
3216
+ } else {
3217
+ throw $p;
3218
+ }
3219
+ }
3220
+ }
3221
+ return tmp$ret$4;
3222
+ };
3223
+ protoOf(AbstractJsonTreeDecoder).iy = function (tag) {
3224
+ return this.e18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3225
+ };
3226
+ protoOf(AbstractJsonTreeDecoder).f18 = function (tag) {
3227
+ var tmp$ret$5;
3228
+ $l$block: {
3229
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3230
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3231
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3232
+ var value = this.c18(tag);
3233
+ if (!(value instanceof JsonPrimitive)) {
3234
+ var tmp = getKClass(JsonPrimitive).c8();
3235
+ var tmp_0 = getKClassFromExpression(value).c8();
3236
+ var tmp$ret$0 = this.a18(tag);
3237
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'byte' + ' at element: ' + tmp$ret$0, toString_0(value));
3238
+ }
3239
+ var literal = value;
3240
+ try {
3241
+ var result = parseLongImpl(literal);
3242
+ var tmp_1;
3243
+ // Inline function 'kotlin.ranges.contains' call
3244
+ var this_0 = numberRangeToNumber(-128, 127);
3245
+ if (contains_0(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result)) {
3246
+ tmp_1 = convertToByte(result);
3247
+ } else {
3248
+ tmp_1 = null;
3249
+ }
3250
+ var tmp0_elvis_lhs = tmp_1;
3251
+ var tmp_2;
3252
+ if (tmp0_elvis_lhs == null) {
3253
+ unparsedPrimitive(this, literal, 'byte', tag);
3254
+ } else {
3255
+ tmp_2 = tmp0_elvis_lhs;
3256
+ }
3257
+ tmp$ret$5 = tmp_2;
3258
+ break $l$block;
3259
+ } catch ($p) {
3260
+ if ($p instanceof IllegalArgumentException) {
3261
+ var e = $p;
3262
+ unparsedPrimitive(this, literal, 'byte', tag);
3263
+ } else {
3264
+ throw $p;
3265
+ }
3266
+ }
3267
+ }
3268
+ return tmp$ret$5;
3269
+ };
3270
+ protoOf(AbstractJsonTreeDecoder).jy = function (tag) {
3271
+ return this.f18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3272
+ };
3273
+ protoOf(AbstractJsonTreeDecoder).g18 = function (tag) {
3274
+ var tmp$ret$5;
3275
+ $l$block: {
3276
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3277
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3278
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3279
+ var value = this.c18(tag);
3280
+ if (!(value instanceof JsonPrimitive)) {
3281
+ var tmp = getKClass(JsonPrimitive).c8();
3282
+ var tmp_0 = getKClassFromExpression(value).c8();
3283
+ var tmp$ret$0 = this.a18(tag);
3284
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'short' + ' at element: ' + tmp$ret$0, toString_0(value));
3285
+ }
3286
+ var literal = value;
3287
+ try {
3288
+ var result = parseLongImpl(literal);
3289
+ var tmp_1;
3290
+ // Inline function 'kotlin.ranges.contains' call
3291
+ var this_0 = numberRangeToNumber(-32768, 32767);
3292
+ if (contains_0(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result)) {
3293
+ tmp_1 = convertToShort(result);
3294
+ } else {
3295
+ tmp_1 = null;
3296
+ }
3297
+ var tmp0_elvis_lhs = tmp_1;
3298
+ var tmp_2;
3299
+ if (tmp0_elvis_lhs == null) {
3300
+ unparsedPrimitive(this, literal, 'short', tag);
3301
+ } else {
3302
+ tmp_2 = tmp0_elvis_lhs;
3303
+ }
3304
+ tmp$ret$5 = tmp_2;
3305
+ break $l$block;
3306
+ } catch ($p) {
3307
+ if ($p instanceof IllegalArgumentException) {
3308
+ var e = $p;
3309
+ unparsedPrimitive(this, literal, 'short', tag);
3310
+ } else {
3311
+ throw $p;
3312
+ }
3313
+ }
3314
+ }
3315
+ return tmp$ret$5;
3316
+ };
3317
+ protoOf(AbstractJsonTreeDecoder).ky = function (tag) {
3318
+ return this.g18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3319
+ };
3320
+ protoOf(AbstractJsonTreeDecoder).h18 = function (tag) {
3321
+ var tmp$ret$5;
3322
+ $l$block: {
3323
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3324
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3325
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3326
+ var value = this.c18(tag);
3327
+ if (!(value instanceof JsonPrimitive)) {
3328
+ var tmp = getKClass(JsonPrimitive).c8();
3329
+ var tmp_0 = getKClassFromExpression(value).c8();
3330
+ var tmp$ret$0 = this.a18(tag);
3331
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'int' + ' at element: ' + tmp$ret$0, toString_0(value));
3332
+ }
3333
+ var literal = value;
3334
+ try {
3335
+ var result = parseLongImpl(literal);
3336
+ var tmp_1;
3337
+ // Inline function 'kotlin.ranges.contains' call
3338
+ var this_0 = numberRangeToNumber(-2147483648, 2147483647);
3339
+ if (contains_0(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), result)) {
3340
+ tmp_1 = convertToInt(result);
3341
+ } else {
3342
+ tmp_1 = null;
3343
+ }
3344
+ var tmp0_elvis_lhs = tmp_1;
3345
+ var tmp_2;
3346
+ if (tmp0_elvis_lhs == null) {
3347
+ unparsedPrimitive(this, literal, 'int', tag);
3348
+ } else {
3349
+ tmp_2 = tmp0_elvis_lhs;
3350
+ }
3351
+ tmp$ret$5 = tmp_2;
3352
+ break $l$block;
3353
+ } catch ($p) {
3354
+ if ($p instanceof IllegalArgumentException) {
3355
+ var e = $p;
3356
+ unparsedPrimitive(this, literal, 'int', tag);
3357
+ } else {
3358
+ throw $p;
3359
+ }
3360
+ }
3361
+ }
3362
+ return tmp$ret$5;
3363
+ };
3364
+ protoOf(AbstractJsonTreeDecoder).ly = function (tag) {
3365
+ return this.h18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3366
+ };
3367
+ protoOf(AbstractJsonTreeDecoder).i18 = function (tag) {
3368
+ var tmp$ret$4;
3369
+ $l$block: {
3370
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3371
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3372
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3373
+ var value = this.c18(tag);
3374
+ if (!(value instanceof JsonPrimitive)) {
3375
+ var tmp = getKClass(JsonPrimitive).c8();
3376
+ var tmp_0 = getKClassFromExpression(value).c8();
3377
+ var tmp$ret$0 = this.a18(tag);
3378
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'long' + ' at element: ' + tmp$ret$0, toString_0(value));
3379
+ }
3380
+ var literal = value;
3381
+ try {
3382
+ var tmp0_elvis_lhs = parseLongImpl(literal);
3383
+ var tmp_1;
3384
+ if (tmp0_elvis_lhs == null) {
3385
+ unparsedPrimitive(this, literal, 'long', tag);
3386
+ } else {
3387
+ tmp_1 = tmp0_elvis_lhs;
3388
+ }
3389
+ tmp$ret$4 = tmp_1;
3390
+ break $l$block;
3391
+ } catch ($p) {
3392
+ if ($p instanceof IllegalArgumentException) {
3393
+ var e = $p;
3394
+ unparsedPrimitive(this, literal, 'long', tag);
3395
+ } else {
3396
+ throw $p;
3397
+ }
3398
+ }
3399
+ }
3400
+ return tmp$ret$4;
3401
+ };
3402
+ protoOf(AbstractJsonTreeDecoder).my = function (tag) {
3403
+ return this.i18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3404
+ };
3405
+ protoOf(AbstractJsonTreeDecoder).j18 = function (tag) {
3406
+ var tmp$ret$4;
3407
+ $l$block: {
3408
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3409
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3410
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3411
+ var value = this.c18(tag);
3412
+ if (!(value instanceof JsonPrimitive)) {
3413
+ var tmp = getKClass(JsonPrimitive).c8();
3414
+ var tmp_0 = getKClassFromExpression(value).c8();
3415
+ var tmp$ret$0 = this.a18(tag);
3416
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'float' + ' at element: ' + tmp$ret$0, toString_0(value));
3417
+ }
3418
+ var literal = value;
3419
+ try {
3420
+ var tmp0_elvis_lhs = get_float(literal);
3421
+ var tmp_1;
3422
+ if (tmp0_elvis_lhs == null) {
3423
+ unparsedPrimitive(this, literal, 'float', tag);
3424
+ } else {
3425
+ tmp_1 = tmp0_elvis_lhs;
3426
+ }
3427
+ tmp$ret$4 = tmp_1;
3428
+ break $l$block;
3429
+ } catch ($p) {
3430
+ if ($p instanceof IllegalArgumentException) {
3431
+ var e = $p;
3432
+ unparsedPrimitive(this, literal, 'float', tag);
3433
+ } else {
3434
+ throw $p;
3435
+ }
3436
+ }
3437
+ }
3438
+ var result = tmp$ret$4;
3439
+ var specialFp = this.a12().n10_1.t11_1;
3440
+ if (specialFp || isFinite(result))
3441
+ return result;
3442
+ throw InvalidFloatingPointDecoded(result, tag, toString_0(this.b18()));
3443
+ };
3444
+ protoOf(AbstractJsonTreeDecoder).ny = function (tag) {
3445
+ return this.j18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3446
+ };
3447
+ protoOf(AbstractJsonTreeDecoder).k18 = function (tag) {
3448
+ var tmp$ret$4;
3449
+ $l$block: {
3450
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3451
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3452
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3453
+ var value = this.c18(tag);
3454
+ if (!(value instanceof JsonPrimitive)) {
3455
+ var tmp = getKClass(JsonPrimitive).c8();
3456
+ var tmp_0 = getKClassFromExpression(value).c8();
3457
+ var tmp$ret$0 = this.a18(tag);
3458
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'double' + ' at element: ' + tmp$ret$0, toString_0(value));
3459
+ }
3460
+ var literal = value;
3461
+ try {
3462
+ var tmp0_elvis_lhs = get_double(literal);
3463
+ var tmp_1;
3464
+ if (tmp0_elvis_lhs == null) {
3465
+ unparsedPrimitive(this, literal, 'double', tag);
3466
+ } else {
3467
+ tmp_1 = tmp0_elvis_lhs;
3468
+ }
3469
+ tmp$ret$4 = tmp_1;
3470
+ break $l$block;
3471
+ } catch ($p) {
3472
+ if ($p instanceof IllegalArgumentException) {
3473
+ var e = $p;
3474
+ unparsedPrimitive(this, literal, 'double', tag);
3475
+ } else {
3476
+ throw $p;
3477
+ }
3478
+ }
3479
+ }
3480
+ var result = tmp$ret$4;
3481
+ var specialFp = this.a12().n10_1.t11_1;
3482
+ if (specialFp || isFinite_0(result))
3483
+ return result;
3484
+ throw InvalidFloatingPointDecoded(result, tag, toString_0(this.b18()));
3485
+ };
3486
+ protoOf(AbstractJsonTreeDecoder).oy = function (tag) {
3487
+ return this.k18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3488
+ };
3489
+ protoOf(AbstractJsonTreeDecoder).l18 = function (tag) {
3490
+ var tmp$ret$4;
3491
+ $l$block: {
3492
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3493
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3494
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3495
+ var value = this.c18(tag);
3496
+ if (!(value instanceof JsonPrimitive)) {
3497
+ var tmp = getKClass(JsonPrimitive).c8();
3498
+ var tmp_0 = getKClassFromExpression(value).c8();
3499
+ var tmp$ret$0 = this.a18(tag);
3500
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'char' + ' at element: ' + tmp$ret$0, toString_0(value));
3501
+ }
3502
+ var literal = value;
3503
+ try {
3504
+ var tmp0_elvis_lhs = new Char(single(literal.f12()));
3505
+ var tmp_1;
3506
+ if (tmp0_elvis_lhs == null) {
3507
+ unparsedPrimitive(this, literal, 'char', tag);
3508
+ } else {
3509
+ tmp_1 = tmp0_elvis_lhs;
3510
+ }
3511
+ tmp$ret$4 = tmp_1.y_1;
3512
+ break $l$block;
3513
+ } catch ($p) {
3514
+ if ($p instanceof IllegalArgumentException) {
3515
+ var e = $p;
3516
+ unparsedPrimitive(this, literal, 'char', tag);
3517
+ } else {
3518
+ throw $p;
3519
+ }
3520
+ }
3521
+ }
3522
+ return tmp$ret$4;
3523
+ };
3524
+ protoOf(AbstractJsonTreeDecoder).py = function (tag) {
3525
+ return this.l18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3526
+ };
3527
+ protoOf(AbstractJsonTreeDecoder).m18 = function (tag) {
3528
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3529
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3530
+ var value = this.c18(tag);
3531
+ if (!(value instanceof JsonPrimitive)) {
3532
+ var tmp = getKClass(JsonPrimitive).c8();
3533
+ var tmp_0 = getKClassFromExpression(value).c8();
3534
+ var tmp$ret$0 = this.a18(tag);
3535
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp + ', but had ' + tmp_0 + ' as the serialized body of ' + 'string' + ' at element: ' + tmp$ret$0, toString_0(value));
3536
+ }
3537
+ var value_0 = value;
3538
+ if (!(value_0 instanceof JsonLiteral))
3539
+ throw JsonDecodingException_0(-1, "Expected string value for a non-null key '" + tag + "', got null literal instead at element: " + this.a18(tag), toString_0(this.b18()));
3540
+ if (!value_0.j12_1 && !this.a12().n10_1.l11_1) {
3541
+ throw JsonDecodingException_0(-1, "String literal for key '" + tag + "' should be quoted at element: " + this.a18(tag) + ".\nUse 'isLenient = true' in 'Json {}' builder to accept non-compliant JSON.", toString_0(this.b18()));
3542
+ }
3543
+ return value_0.l12_1;
3544
+ };
3545
+ protoOf(AbstractJsonTreeDecoder).qy = function (tag) {
3546
+ return this.m18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE());
3547
+ };
3548
+ protoOf(AbstractJsonTreeDecoder).n18 = function (tag, inlineDescriptor) {
3549
+ var tmp;
3550
+ if (get_isUnsignedNumber(inlineDescriptor)) {
3551
+ var tmp_0 = this.a12();
3552
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.getPrimitiveValue' call
3553
+ var tmp2 = this.c18(tag);
3554
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3555
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3556
+ var serialName = inlineDescriptor.ui();
3557
+ if (!(tmp2 instanceof JsonPrimitive)) {
3558
+ var tmp_1 = getKClass(JsonPrimitive).c8();
3559
+ var tmp_2 = getKClassFromExpression(tmp2).c8();
3560
+ var tmp$ret$0 = this.a18(tag);
3561
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_1 + ', but had ' + tmp_2 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString_0(tmp2));
3562
+ }
3563
+ var lexer = StringJsonLexer_0(tmp_0, tmp2.f12());
3564
+ tmp = new JsonDecoderForUnsignedTypes(lexer, this.a12());
3565
+ } else {
3566
+ tmp = protoOf(NamedValueDecoder).ry.call(this, tag, inlineDescriptor);
3567
+ }
3568
+ return tmp;
3569
+ };
3570
+ protoOf(AbstractJsonTreeDecoder).ry = function (tag, inlineDescriptor) {
3571
+ return this.n18((!(tag == null) ? typeof tag === 'string' : false) ? tag : THROW_CCE(), inlineDescriptor);
3572
+ };
3573
+ protoOf(AbstractJsonTreeDecoder).kk = function (descriptor) {
3574
+ return !(this.dy() == null) ? protoOf(NamedValueDecoder).kk.call(this, descriptor) : (new JsonPrimitiveDecoder(this.a12(), this.o1(), this.y17_1)).kk(descriptor);
3575
+ };
3576
+ function setForceNull($this, descriptor, index) {
3577
+ $this.x18_1 = (!$this.a12().n10_1.o11_1 && !descriptor.dj(index) && descriptor.cj(index).qi());
3578
+ return $this.x18_1;
3579
+ }
3580
+ function JsonTreeDecoder(json, value, polymorphicDiscriminator, polyDescriptor) {
3581
+ polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
3582
+ polyDescriptor = polyDescriptor === VOID ? null : polyDescriptor;
3583
+ AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
3584
+ this.u18_1 = value;
3585
+ this.v18_1 = polyDescriptor;
3586
+ this.w18_1 = 0;
3587
+ this.x18_1 = false;
3588
+ }
3589
+ protoOf(JsonTreeDecoder).o1 = function () {
3590
+ return this.u18_1;
3591
+ };
3592
+ protoOf(JsonTreeDecoder).el = function (descriptor) {
3593
+ $l$loop: while (this.w18_1 < descriptor.xi()) {
3594
+ var _unary__edvuaz = this.w18_1;
3595
+ this.w18_1 = _unary__edvuaz + 1 | 0;
3596
+ var name = this.yx(descriptor, _unary__edvuaz);
3597
+ var index = this.w18_1 - 1 | 0;
3598
+ this.x18_1 = false;
3599
+ var tmp;
3600
+ // Inline function 'kotlin.collections.contains' call
3601
+ // Inline function 'kotlin.collections.containsKey' call
3602
+ var this_0 = this.o1();
3603
+ if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).p1(name)) {
3604
+ tmp = true;
3605
+ } else {
3606
+ tmp = setForceNull(this, descriptor, index);
3607
+ }
3608
+ if (tmp) {
3609
+ if (!this.z17_1.q11_1)
3610
+ return index;
3611
+ var tmp0 = this.a12();
3612
+ var tmp$ret$3;
3613
+ $l$block_2: {
3614
+ // Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
3615
+ var isOptional = descriptor.dj(index);
3616
+ var elementDescriptor = descriptor.cj(index);
3617
+ var tmp_0;
3618
+ if (isOptional && !elementDescriptor.qi()) {
3619
+ var tmp_1 = this.y18(name);
3620
+ tmp_0 = tmp_1 instanceof JsonNull;
3621
+ } else {
3622
+ tmp_0 = false;
3623
+ }
3624
+ if (tmp_0) {
3625
+ tmp$ret$3 = true;
3626
+ break $l$block_2;
3627
+ }
3628
+ if (equals(elementDescriptor.vi(), ENUM_getInstance())) {
3629
+ var tmp_2;
3630
+ if (elementDescriptor.qi()) {
3631
+ var tmp_3 = this.y18(name);
3632
+ tmp_2 = tmp_3 instanceof JsonNull;
3633
+ } else {
3634
+ tmp_2 = false;
3635
+ }
3636
+ if (tmp_2) {
3637
+ tmp$ret$3 = false;
3638
+ break $l$block_2;
3639
+ }
3640
+ var tmp_4 = this.y18(name);
3641
+ var tmp0_safe_receiver = tmp_4 instanceof JsonPrimitive ? tmp_4 : null;
3642
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : get_contentOrNull(tmp0_safe_receiver);
3643
+ var tmp_5;
3644
+ if (tmp0_elvis_lhs == null) {
3645
+ tmp$ret$3 = false;
3646
+ break $l$block_2;
3647
+ } else {
3648
+ tmp_5 = tmp0_elvis_lhs;
3649
+ }
3650
+ var enumValue = tmp_5;
3651
+ var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
3652
+ var coerceToNull = !tmp0.n10_1.o11_1 && elementDescriptor.qi();
3653
+ if (enumIndex === -3 && (isOptional || coerceToNull)) {
3654
+ if (setForceNull(this, descriptor, index))
3655
+ return index;
3656
+ tmp$ret$3 = true;
3657
+ break $l$block_2;
3658
+ }
3659
+ }
3660
+ tmp$ret$3 = false;
3661
+ }
3662
+ if (tmp$ret$3)
3663
+ continue $l$loop;
3664
+ return index;
3665
+ }
3666
+ }
3667
+ return -1;
3668
+ };
3669
+ protoOf(JsonTreeDecoder).zj = function () {
3670
+ return !this.x18_1 && protoOf(AbstractJsonTreeDecoder).zj.call(this);
3671
+ };
3672
+ protoOf(JsonTreeDecoder).zx = function (descriptor, index) {
3673
+ var strategy = namingStrategy(descriptor, this.a12());
3674
+ var baseName = descriptor.zi(index);
3675
+ if (strategy == null) {
3676
+ if (!this.z17_1.u11_1)
3677
+ return baseName;
3678
+ if (this.o1().s1().l1(baseName))
3679
+ return baseName;
3680
+ }
3681
+ var deserializationNamesMap_0 = deserializationNamesMap(this.a12(), descriptor);
3682
+ // Inline function 'kotlin.collections.find' call
3683
+ var tmp0 = this.o1().s1();
3684
+ var tmp$ret$1;
3685
+ $l$block: {
3686
+ // Inline function 'kotlin.collections.firstOrNull' call
3687
+ var _iterator__ex2g4s = tmp0.h();
3688
+ while (_iterator__ex2g4s.i()) {
3689
+ var element = _iterator__ex2g4s.j();
3690
+ if (deserializationNamesMap_0.r1(element) === index) {
3691
+ tmp$ret$1 = element;
3692
+ break $l$block;
3693
+ }
3694
+ }
3695
+ tmp$ret$1 = null;
3696
+ }
3697
+ var tmp0_safe_receiver = tmp$ret$1;
3698
+ if (tmp0_safe_receiver == null)
3699
+ null;
3700
+ else {
3701
+ // Inline function 'kotlin.let' call
3702
+ return tmp0_safe_receiver;
3703
+ }
3704
+ var fallbackName = strategy == null ? null : strategy.s14(descriptor, index, baseName);
3705
+ return fallbackName == null ? baseName : fallbackName;
3706
+ };
3707
+ protoOf(JsonTreeDecoder).c18 = function (tag) {
3708
+ return getValue(this.o1(), tag);
3709
+ };
3710
+ protoOf(JsonTreeDecoder).y18 = function (tag) {
3711
+ return this.o1().e12(tag);
3712
+ };
3713
+ protoOf(JsonTreeDecoder).nk = function (descriptor) {
3714
+ if (descriptor === this.v18_1) {
3715
+ var tmp = this.a12();
3716
+ var tmp2 = this.b18();
3717
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonTreeDecoder.cast' call
3718
+ // Inline function 'kotlinx.serialization.json.internal.cast' call
3719
+ var serialName = this.v18_1.ui();
3720
+ if (!(tmp2 instanceof JsonObject)) {
3721
+ var tmp_0 = getKClass(JsonObject).c8();
3722
+ var tmp_1 = getKClassFromExpression(tmp2).c8();
3723
+ var tmp$ret$0 = this.fy();
3724
+ throw JsonDecodingException_0(-1, 'Expected ' + tmp_0 + ', but had ' + tmp_1 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$0, toString_0(tmp2));
3725
+ }
3726
+ return new JsonTreeDecoder(tmp, tmp2, this.y17_1, this.v18_1);
3727
+ }
3728
+ return protoOf(AbstractJsonTreeDecoder).nk.call(this, descriptor);
3729
+ };
3730
+ protoOf(JsonTreeDecoder).ok = function (descriptor) {
3731
+ var tmp;
3732
+ if (ignoreUnknownKeys(descriptor, this.a12())) {
3733
+ tmp = true;
3734
+ } else {
3735
+ var tmp_0 = descriptor.vi();
3736
+ tmp = tmp_0 instanceof PolymorphicKind;
3737
+ }
3738
+ if (tmp)
3739
+ return Unit_instance;
3740
+ var strategy = namingStrategy(descriptor, this.a12());
3741
+ var tmp_1;
3742
+ if (strategy == null && !this.z17_1.u11_1) {
3743
+ tmp_1 = jsonCachedSerialNames(descriptor);
3744
+ } else if (!(strategy == null)) {
3745
+ tmp_1 = deserializationNamesMap(this.a12(), descriptor).s1();
3746
+ } else {
3747
+ var tmp_2 = jsonCachedSerialNames(descriptor);
3748
+ var tmp0_safe_receiver = get_schemaCache(this.a12()).a17(descriptor, get_JsonDeserializationNamesKey());
3749
+ // Inline function 'kotlin.collections.orEmpty' call
3750
+ var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s1();
3751
+ var tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
3752
+ tmp_1 = plus_0(tmp_2, tmp$ret$0);
3753
+ }
3754
+ var names = tmp_1;
3755
+ var _iterator__ex2g4s = this.o1().s1().h();
3756
+ while (_iterator__ex2g4s.i()) {
3757
+ var key = _iterator__ex2g4s.j();
3758
+ if (!names.l1(key) && !(key === this.y17_1)) {
3759
+ throw JsonDecodingException_1(-1, "Encountered an unknown key '" + key + "' at element: " + this.fy() + '\n' + "Use 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString_0(minify(this.o1().toString()))));
3760
+ }
3761
+ }
3762
+ };
3763
+ function JsonTreeListDecoder(json, value) {
3764
+ AbstractJsonTreeDecoder.call(this, json, value);
3765
+ this.f19_1 = value;
3766
+ this.g19_1 = this.f19_1.k();
3767
+ this.h19_1 = -1;
3768
+ }
3769
+ protoOf(JsonTreeListDecoder).o1 = function () {
3770
+ return this.f19_1;
3771
+ };
3772
+ protoOf(JsonTreeListDecoder).zx = function (descriptor, index) {
3773
+ return index.toString();
3774
+ };
3775
+ protoOf(JsonTreeListDecoder).c18 = function (tag) {
3776
+ return this.f19_1.l(toInt(tag));
3777
+ };
3778
+ protoOf(JsonTreeListDecoder).el = function (descriptor) {
3779
+ while (this.h19_1 < (this.g19_1 - 1 | 0)) {
3780
+ this.h19_1 = this.h19_1 + 1 | 0;
3781
+ return this.h19_1;
3782
+ }
3783
+ return -1;
3784
+ };
3785
+ function JsonPrimitiveDecoder(json, value, polymorphicDiscriminator) {
3786
+ polymorphicDiscriminator = polymorphicDiscriminator === VOID ? null : polymorphicDiscriminator;
3787
+ AbstractJsonTreeDecoder.call(this, json, value, polymorphicDiscriminator);
3788
+ this.o19_1 = value;
3789
+ this.sy('primitive');
3790
+ }
3791
+ protoOf(JsonPrimitiveDecoder).o1 = function () {
3792
+ return this.o19_1;
3793
+ };
3794
+ protoOf(JsonPrimitiveDecoder).el = function (descriptor) {
3795
+ return 0;
3796
+ };
3797
+ protoOf(JsonPrimitiveDecoder).c18 = function (tag) {
3798
+ // Inline function 'kotlin.require' call
3799
+ if (!(tag === 'primitive')) {
3800
+ var message = "This input can only handle primitives with 'primitive' tag";
3801
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
3802
+ }
3803
+ return this.o19_1;
3804
+ };
3805
+ function JsonTreeMapDecoder(json, value) {
3806
+ JsonTreeDecoder.call(this, json, value);
3807
+ this.z19_1 = value;
3808
+ this.a1a_1 = toList(this.z19_1.s1());
3809
+ this.b1a_1 = imul(this.a1a_1.k(), 2);
3810
+ this.c1a_1 = -1;
3811
+ }
3812
+ protoOf(JsonTreeMapDecoder).o1 = function () {
3813
+ return this.z19_1;
3814
+ };
3815
+ protoOf(JsonTreeMapDecoder).zx = function (descriptor, index) {
3816
+ var i = index / 2 | 0;
3817
+ return this.a1a_1.l(i);
3818
+ };
3819
+ protoOf(JsonTreeMapDecoder).el = function (descriptor) {
3820
+ while (this.c1a_1 < (this.b1a_1 - 1 | 0)) {
3821
+ this.c1a_1 = this.c1a_1 + 1 | 0;
3822
+ return this.c1a_1;
3823
+ }
3824
+ return -1;
3825
+ };
3826
+ protoOf(JsonTreeMapDecoder).c18 = function (tag) {
3827
+ return (this.c1a_1 % 2 | 0) === 0 ? JsonPrimitive_0(tag) : getValue(this.z19_1, tag);
3828
+ };
3829
+ protoOf(JsonTreeMapDecoder).ok = function (descriptor) {
3830
+ };
3831
+ function readPolymorphicJson(_this__u8e3s4, discriminator, element, deserializer) {
3832
+ return (new JsonTreeDecoder(_this__u8e3s4, element, discriminator, deserializer.qh())).mk(deserializer);
3833
+ }
3834
+ var WriteMode_OBJ_instance;
3835
+ var WriteMode_LIST_instance;
3836
+ var WriteMode_MAP_instance;
3837
+ var WriteMode_POLY_OBJ_instance;
3838
+ function values() {
3839
+ return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
3840
+ }
3841
+ function get_entries() {
3842
+ if ($ENTRIES == null)
3843
+ $ENTRIES = enumEntries(values());
3844
+ return $ENTRIES;
3845
+ }
3846
+ var WriteMode_entriesInitialized;
3847
+ function WriteMode_initEntries() {
3848
+ if (WriteMode_entriesInitialized)
3849
+ return Unit_instance;
3850
+ WriteMode_entriesInitialized = true;
3851
+ WriteMode_OBJ_instance = new WriteMode('OBJ', 0, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
3852
+ WriteMode_LIST_instance = new WriteMode('LIST', 1, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
3853
+ WriteMode_MAP_instance = new WriteMode('MAP', 2, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
3854
+ WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
3855
+ }
3856
+ var $ENTRIES;
3857
+ function WriteMode(name, ordinal, begin, end) {
3858
+ Enum.call(this, name, ordinal);
3859
+ this.n17_1 = begin;
3860
+ this.o17_1 = end;
3861
+ }
3862
+ function switchMode(_this__u8e3s4, desc) {
3863
+ var tmp0_subject = desc.vi();
3864
+ var tmp;
3865
+ if (tmp0_subject instanceof PolymorphicKind) {
3866
+ tmp = WriteMode_POLY_OBJ_getInstance();
3867
+ } else {
3868
+ if (equals(tmp0_subject, LIST_getInstance())) {
3869
+ tmp = WriteMode_LIST_getInstance();
3870
+ } else {
3871
+ if (equals(tmp0_subject, MAP_getInstance())) {
3872
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
3873
+ var keyDescriptor = carrierDescriptor(desc.cj(0), _this__u8e3s4.cl());
3874
+ var keyKind = keyDescriptor.vi();
3875
+ var tmp_0;
3876
+ var tmp_1;
3877
+ if (keyKind instanceof PrimitiveKind) {
3878
+ tmp_1 = true;
3879
+ } else {
3880
+ tmp_1 = equals(keyKind, ENUM_getInstance());
3881
+ }
3882
+ if (tmp_1) {
3883
+ tmp_0 = WriteMode_MAP_getInstance();
3884
+ } else {
3885
+ if (_this__u8e3s4.n10_1.m11_1) {
3886
+ tmp_0 = WriteMode_LIST_getInstance();
3887
+ } else {
3888
+ throw InvalidKeyKindException(keyDescriptor);
3889
+ }
3890
+ }
3891
+ tmp = tmp_0;
3892
+ } else {
3893
+ tmp = WriteMode_OBJ_getInstance();
3894
+ }
3895
+ }
3896
+ }
3897
+ return tmp;
3898
+ }
3899
+ function carrierDescriptor(_this__u8e3s4, module_0) {
3900
+ var tmp;
3901
+ if (equals(_this__u8e3s4.vi(), CONTEXTUAL_getInstance())) {
3902
+ var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
3903
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
3904
+ tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
3905
+ } else if (_this__u8e3s4.wi()) {
3906
+ tmp = carrierDescriptor(_this__u8e3s4.cj(0), module_0);
3907
+ } else {
3908
+ tmp = _this__u8e3s4;
3909
+ }
3910
+ return tmp;
3911
+ }
3912
+ function WriteMode_OBJ_getInstance() {
3913
+ WriteMode_initEntries();
3914
+ return WriteMode_OBJ_instance;
3915
+ }
3916
+ function WriteMode_LIST_getInstance() {
3917
+ WriteMode_initEntries();
3918
+ return WriteMode_LIST_instance;
3919
+ }
3920
+ function WriteMode_MAP_getInstance() {
3921
+ WriteMode_initEntries();
3922
+ return WriteMode_MAP_instance;
3923
+ }
3924
+ function WriteMode_POLY_OBJ_getInstance() {
3925
+ WriteMode_initEntries();
3926
+ return WriteMode_POLY_OBJ_instance;
3927
+ }
3928
+ function appendEscape($this, lastPosition, current) {
3929
+ $this.d1a(lastPosition, current);
3930
+ return appendEsc($this, current + 1 | 0);
3931
+ }
3932
+ function decodedString($this, lastPosition, currentPosition) {
3933
+ $this.d1a(lastPosition, currentPosition);
3934
+ var result = $this.h11_1.toString();
3935
+ $this.h11_1.r9(0);
3936
+ return result;
3937
+ }
3938
+ function takePeeked($this) {
3939
+ // Inline function 'kotlin.also' call
3940
+ var this_0 = ensureNotNull($this.g11_1);
3941
+ $this.g11_1 = null;
3942
+ return this_0;
3943
+ }
3944
+ function wasUnquotedString($this) {
3945
+ return !(charSequenceGet($this.e1a(), $this.e11_1 - 1 | 0) === _Char___init__impl__6a9atx(34));
3946
+ }
3947
+ function appendEsc($this, startPosition) {
3948
+ var currentPosition = startPosition;
3949
+ currentPosition = $this.f1a(currentPosition);
3950
+ if (currentPosition === -1) {
3951
+ $this.o14('Expected escape sequence to continue, got EOF');
3952
+ }
3953
+ var tmp = $this.e1a();
3954
+ var _unary__edvuaz = currentPosition;
3955
+ currentPosition = _unary__edvuaz + 1 | 0;
3956
+ var currentChar = charSequenceGet(tmp, _unary__edvuaz);
3957
+ if (currentChar === _Char___init__impl__6a9atx(117)) {
3958
+ return appendHex($this, $this.e1a(), currentPosition);
3959
+ }
3960
+ // Inline function 'kotlin.code' call
3961
+ var tmp$ret$0 = Char__toInt_impl_vasixd(currentChar);
3962
+ var c = escapeToChar(tmp$ret$0);
3963
+ if (c === _Char___init__impl__6a9atx(0)) {
3964
+ $this.o14("Invalid escaped char '" + toString_1(currentChar) + "'");
3965
+ }
3966
+ $this.h11_1.o6(c);
3967
+ return currentPosition;
3968
+ }
3969
+ function appendHex($this, source, startPos) {
3970
+ if ((startPos + 4 | 0) >= charSequenceLength(source)) {
3971
+ $this.e11_1 = startPos;
3972
+ $this.g1a();
3973
+ if (($this.e11_1 + 4 | 0) >= charSequenceLength(source)) {
3974
+ $this.o14('Unexpected EOF during unicode escape');
3975
+ }
3976
+ return appendHex($this, source, $this.e11_1);
3977
+ }
3978
+ $this.h11_1.o6(numberToChar((((fromHexChar($this, source, startPos) << 12) + (fromHexChar($this, source, startPos + 1 | 0) << 8) | 0) + (fromHexChar($this, source, startPos + 2 | 0) << 4) | 0) + fromHexChar($this, source, startPos + 3 | 0) | 0));
3979
+ return startPos + 4 | 0;
3980
+ }
3981
+ function fromHexChar($this, source, currentPosition) {
3982
+ var character = charSequenceGet(source, currentPosition);
3983
+ var tmp;
3984
+ if (_Char___init__impl__6a9atx(48) <= character ? character <= _Char___init__impl__6a9atx(57) : false) {
3985
+ // Inline function 'kotlin.code' call
3986
+ var tmp_0 = Char__toInt_impl_vasixd(character);
3987
+ // Inline function 'kotlin.code' call
3988
+ var this_0 = _Char___init__impl__6a9atx(48);
3989
+ tmp = tmp_0 - Char__toInt_impl_vasixd(this_0) | 0;
3990
+ } else if (_Char___init__impl__6a9atx(97) <= character ? character <= _Char___init__impl__6a9atx(102) : false) {
3991
+ // Inline function 'kotlin.code' call
3992
+ var tmp_1 = Char__toInt_impl_vasixd(character);
3993
+ // Inline function 'kotlin.code' call
3994
+ var this_1 = _Char___init__impl__6a9atx(97);
3995
+ tmp = (tmp_1 - Char__toInt_impl_vasixd(this_1) | 0) + 10 | 0;
3996
+ } else if (_Char___init__impl__6a9atx(65) <= character ? character <= _Char___init__impl__6a9atx(70) : false) {
3997
+ // Inline function 'kotlin.code' call
3998
+ var tmp_2 = Char__toInt_impl_vasixd(character);
3999
+ // Inline function 'kotlin.code' call
4000
+ var this_2 = _Char___init__impl__6a9atx(65);
4001
+ tmp = (tmp_2 - Char__toInt_impl_vasixd(this_2) | 0) + 10 | 0;
4002
+ } else {
4003
+ $this.o14("Invalid toHexChar char '" + toString_1(character) + "' in unicode escape");
4004
+ }
4005
+ return tmp;
4006
+ }
4007
+ function consumeBoolean2($this, start) {
4008
+ var current = $this.f1a(start);
4009
+ if (current >= charSequenceLength($this.e1a()) || current === -1) {
4010
+ $this.o14('EOF');
4011
+ }
4012
+ var tmp = $this.e1a();
4013
+ var _unary__edvuaz = current;
4014
+ current = _unary__edvuaz + 1 | 0;
4015
+ // Inline function 'kotlin.code' call
4016
+ var this_0 = charSequenceGet(tmp, _unary__edvuaz);
4017
+ var tmp0_subject = Char__toInt_impl_vasixd(this_0) | 32;
4018
+ var tmp_0;
4019
+ // Inline function 'kotlin.code' call
4020
+ var this_1 = _Char___init__impl__6a9atx(116);
4021
+ if (tmp0_subject === Char__toInt_impl_vasixd(this_1)) {
4022
+ consumeBooleanLiteral($this, 'rue', current);
4023
+ tmp_0 = true;
4024
+ } else {
4025
+ // Inline function 'kotlin.code' call
4026
+ var this_2 = _Char___init__impl__6a9atx(102);
4027
+ if (tmp0_subject === Char__toInt_impl_vasixd(this_2)) {
4028
+ consumeBooleanLiteral($this, 'alse', current);
4029
+ tmp_0 = false;
4030
+ } else {
4031
+ $this.o14("Expected valid boolean literal prefix, but had '" + $this.t15() + "'");
4032
+ }
4033
+ }
4034
+ return tmp_0;
4035
+ }
4036
+ function consumeBooleanLiteral($this, literalSuffix, current) {
4037
+ if ((charSequenceLength($this.e1a()) - current | 0) < literalSuffix.length) {
4038
+ $this.o14('Unexpected end of boolean literal');
4039
+ }
4040
+ var inductionVariable = 0;
4041
+ var last = charSequenceLength(literalSuffix) - 1 | 0;
4042
+ if (inductionVariable <= last)
4043
+ do {
4044
+ var i = inductionVariable;
4045
+ inductionVariable = inductionVariable + 1 | 0;
4046
+ var expected = charCodeAt(literalSuffix, i);
4047
+ var actual = charSequenceGet($this.e1a(), current + i | 0);
4048
+ // Inline function 'kotlin.code' call
4049
+ var tmp = Char__toInt_impl_vasixd(expected);
4050
+ // Inline function 'kotlin.code' call
4051
+ if (!(tmp === (Char__toInt_impl_vasixd(actual) | 32))) {
4052
+ $this.o14("Expected valid boolean literal prefix, but had '" + $this.t15() + "'");
4053
+ }
4054
+ }
4055
+ while (inductionVariable <= last);
4056
+ $this.e11_1 = current + literalSuffix.length | 0;
4057
+ }
4058
+ function consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive) {
4059
+ var tmp;
4060
+ switch (isExponentPositive) {
4061
+ case false:
4062
+ // Inline function 'kotlin.math.pow' call
4063
+
4064
+ var x = -toNumber(exponentAccumulator);
4065
+ tmp = Math.pow(10.0, x);
4066
+ break;
4067
+ case true:
4068
+ // Inline function 'kotlin.math.pow' call
4069
+
4070
+ var x_0 = toNumber(exponentAccumulator);
4071
+ tmp = Math.pow(10.0, x_0);
4072
+ break;
4073
+ default:
4074
+ noWhenBranchMatchedException();
4075
+ break;
4076
+ }
4077
+ return tmp;
4078
+ }
4079
+ function AbstractJsonLexer() {
4080
+ this.e11_1 = 0;
4081
+ this.f11_1 = new JsonPath();
4082
+ this.g11_1 = null;
4083
+ this.h11_1 = StringBuilder_init_$Create$();
4084
+ }
4085
+ protoOf(AbstractJsonLexer).g1a = function () {
4086
+ };
4087
+ protoOf(AbstractJsonLexer).d17 = function () {
4088
+ var current = this.h1a();
4089
+ var source = this.e1a();
4090
+ if (current >= charSequenceLength(source) || current === -1)
4091
+ return false;
4092
+ if (charSequenceGet(source, current) === _Char___init__impl__6a9atx(44)) {
4093
+ this.e11_1 = this.e11_1 + 1 | 0;
4094
+ return true;
4095
+ }
4096
+ return false;
4097
+ };
4098
+ protoOf(AbstractJsonLexer).i1a = function (c) {
4099
+ return c === _Char___init__impl__6a9atx(125) || c === _Char___init__impl__6a9atx(93) || (c === _Char___init__impl__6a9atx(58) || c === _Char___init__impl__6a9atx(44)) ? false : true;
4100
+ };
4101
+ protoOf(AbstractJsonLexer).i11 = function () {
4102
+ var nextToken = this.v15();
4103
+ if (!(nextToken === 10)) {
4104
+ this.o14('Expected EOF after parsing, but had ' + toString_1(charSequenceGet(this.e1a(), this.e11_1 - 1 | 0)) + ' instead');
4105
+ }
4106
+ };
4107
+ protoOf(AbstractJsonLexer).p15 = function (expected) {
4108
+ var token = this.v15();
4109
+ if (!(token === expected)) {
4110
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
4111
+ var expected_0 = tokenDescription(expected);
4112
+ var position = true ? this.e11_1 - 1 | 0 : this.e11_1;
4113
+ var s = this.e11_1 === charSequenceLength(this.e1a()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.e1a(), position));
4114
+ var tmp$ret$0 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
4115
+ this.o14(tmp$ret$0, position);
4116
+ }
4117
+ return token;
4118
+ };
4119
+ protoOf(AbstractJsonLexer).j1a = function (expected) {
4120
+ if (this.e11_1 > 0 && expected === _Char___init__impl__6a9atx(34)) {
4121
+ var tmp$ret$1;
4122
+ $l$block: {
4123
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.withPositionRollback' call
4124
+ var snapshot = this.e11_1;
4125
+ try {
4126
+ this.e11_1 = this.e11_1 - 1 | 0;
4127
+ tmp$ret$1 = this.t15();
4128
+ break $l$block;
4129
+ }finally {
4130
+ this.e11_1 = snapshot;
4131
+ }
4132
+ }
4133
+ var inputLiteral = tmp$ret$1;
4134
+ if (inputLiteral === 'null') {
4135
+ this.n14("Expected string literal but 'null' literal was found", this.e11_1 - 1 | 0, "Use 'coerceInputValues = true' in 'Json {}' builder to coerce nulls if property has a default value.");
4136
+ }
4137
+ }
4138
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
4139
+ var expectedToken = charToTokenClass(expected);
4140
+ var expected_0 = tokenDescription(expectedToken);
4141
+ var position = true ? this.e11_1 - 1 | 0 : this.e11_1;
4142
+ var s = this.e11_1 === charSequenceLength(this.e1a()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.e1a(), position));
4143
+ var tmp$ret$2 = 'Expected ' + expected_0 + ", but had '" + s + "' instead";
4144
+ this.o14(tmp$ret$2, position);
4145
+ };
4146
+ protoOf(AbstractJsonLexer).q15 = function () {
4147
+ var source = this.e1a();
4148
+ var cpos = this.e11_1;
4149
+ $l$loop_0: while (true) {
4150
+ cpos = this.f1a(cpos);
4151
+ if (cpos === -1)
4152
+ break $l$loop_0;
4153
+ var ch = charSequenceGet(source, cpos);
4154
+ if (ch === _Char___init__impl__6a9atx(32) || ch === _Char___init__impl__6a9atx(10) || ch === _Char___init__impl__6a9atx(13) || ch === _Char___init__impl__6a9atx(9)) {
4155
+ cpos = cpos + 1 | 0;
4156
+ continue $l$loop_0;
4157
+ }
4158
+ this.e11_1 = cpos;
4159
+ return charToTokenClass(ch);
4160
+ }
4161
+ this.e11_1 = cpos;
4162
+ return 10;
4163
+ };
4164
+ protoOf(AbstractJsonLexer).e17 = function (doConsume) {
4165
+ var current = this.h1a();
4166
+ current = this.f1a(current);
4167
+ var len = charSequenceLength(this.e1a()) - current | 0;
4168
+ if (len < 4 || current === -1)
4169
+ return false;
4170
+ var inductionVariable = 0;
4171
+ if (inductionVariable <= 3)
4172
+ do {
4173
+ var i = inductionVariable;
4174
+ inductionVariable = inductionVariable + 1 | 0;
4175
+ if (!(charCodeAt('null', i) === charSequenceGet(this.e1a(), current + i | 0)))
4176
+ return false;
4177
+ }
4178
+ while (inductionVariable <= 3);
4179
+ if (len > 4 && charToTokenClass(charSequenceGet(this.e1a(), current + 4 | 0)) === 0)
4180
+ return false;
4181
+ if (doConsume) {
4182
+ this.e11_1 = current + 4 | 0;
4183
+ }
4184
+ return true;
4185
+ };
4186
+ protoOf(AbstractJsonLexer).p17 = function (doConsume, $super) {
4187
+ doConsume = doConsume === VOID ? true : doConsume;
4188
+ return $super === VOID ? this.e17(doConsume) : $super.e17.call(this, doConsume);
4189
+ };
4190
+ protoOf(AbstractJsonLexer).f17 = function (isLenient) {
4191
+ var token = this.q15();
4192
+ var tmp;
4193
+ if (isLenient) {
4194
+ if (!(token === 1) && !(token === 0))
4195
+ return null;
4196
+ tmp = this.t15();
4197
+ } else {
4198
+ if (!(token === 1))
4199
+ return null;
4200
+ tmp = this.s15();
4201
+ }
4202
+ var string = tmp;
4203
+ this.g11_1 = string;
4204
+ return string;
4205
+ };
4206
+ protoOf(AbstractJsonLexer).k1a = function () {
4207
+ this.g11_1 = null;
4208
+ };
4209
+ protoOf(AbstractJsonLexer).l1a = function (startPos, endPos) {
4210
+ // Inline function 'kotlin.text.substring' call
4211
+ var this_0 = this.e1a();
4212
+ return toString_0(charSequenceSubSequence(this_0, startPos, endPos));
4213
+ };
4214
+ protoOf(AbstractJsonLexer).s15 = function () {
4215
+ if (!(this.g11_1 == null)) {
4216
+ return takePeeked(this);
4217
+ }
4218
+ return this.i17();
4219
+ };
4220
+ protoOf(AbstractJsonLexer).consumeString2 = function (source, startPosition, current) {
4221
+ var currentPosition = current;
4222
+ var lastPosition = startPosition;
4223
+ var char = charSequenceGet(source, currentPosition);
4224
+ var usedAppend = false;
4225
+ while (!(char === _Char___init__impl__6a9atx(34))) {
4226
+ if (char === _Char___init__impl__6a9atx(92)) {
4227
+ usedAppend = true;
4228
+ currentPosition = this.f1a(appendEscape(this, lastPosition, currentPosition));
4229
+ if (currentPosition === -1) {
4230
+ this.o14('Unexpected EOF', currentPosition);
4231
+ }
4232
+ lastPosition = currentPosition;
4233
+ } else {
4234
+ currentPosition = currentPosition + 1 | 0;
4235
+ if (currentPosition >= charSequenceLength(source)) {
4236
+ usedAppend = true;
4237
+ this.d1a(lastPosition, currentPosition);
4238
+ currentPosition = this.f1a(currentPosition);
4239
+ if (currentPosition === -1) {
4240
+ this.o14('Unexpected EOF', currentPosition);
4241
+ }
4242
+ lastPosition = currentPosition;
4243
+ }
4244
+ }
4245
+ char = charSequenceGet(source, currentPosition);
4246
+ }
4247
+ var tmp;
4248
+ if (!usedAppend) {
4249
+ tmp = this.l1a(lastPosition, currentPosition);
4250
+ } else {
4251
+ tmp = decodedString(this, lastPosition, currentPosition);
4252
+ }
4253
+ var string = tmp;
4254
+ this.e11_1 = currentPosition + 1 | 0;
4255
+ return string;
4256
+ };
4257
+ protoOf(AbstractJsonLexer).j17 = function () {
4258
+ var result = this.t15();
4259
+ if (result === 'null' && wasUnquotedString(this)) {
4260
+ this.o14("Unexpected 'null' value instead of string literal");
4261
+ }
4262
+ return result;
4263
+ };
4264
+ protoOf(AbstractJsonLexer).t15 = function () {
4265
+ if (!(this.g11_1 == null)) {
4266
+ return takePeeked(this);
4267
+ }
4268
+ var current = this.h1a();
4269
+ if (current >= charSequenceLength(this.e1a()) || current === -1) {
4270
+ this.o14('EOF', current);
4271
+ }
4272
+ var token = charToTokenClass(charSequenceGet(this.e1a(), current));
4273
+ if (token === 1) {
4274
+ return this.s15();
4275
+ }
4276
+ if (!(token === 0)) {
4277
+ this.o14('Expected beginning of the string, but got ' + toString_1(charSequenceGet(this.e1a(), current)));
4278
+ }
4279
+ var usedAppend = false;
4280
+ while (charToTokenClass(charSequenceGet(this.e1a(), current)) === 0) {
4281
+ current = current + 1 | 0;
4282
+ if (current >= charSequenceLength(this.e1a())) {
4283
+ usedAppend = true;
4284
+ this.d1a(this.e11_1, current);
4285
+ var eof = this.f1a(current);
4286
+ if (eof === -1) {
4287
+ this.e11_1 = current;
4288
+ return decodedString(this, 0, 0);
4289
+ } else {
4290
+ current = eof;
4291
+ }
4292
+ }
4293
+ }
4294
+ var tmp;
4295
+ if (!usedAppend) {
4296
+ tmp = this.l1a(this.e11_1, current);
4297
+ } else {
4298
+ tmp = decodedString(this, this.e11_1, current);
4299
+ }
4300
+ var result = tmp;
4301
+ this.e11_1 = current;
4302
+ return result;
4303
+ };
4304
+ protoOf(AbstractJsonLexer).d1a = function (fromIndex, toIndex) {
4305
+ this.h11_1.l9(this.e1a(), fromIndex, toIndex);
4306
+ };
4307
+ protoOf(AbstractJsonLexer).h17 = function (allowLenientStrings) {
4308
+ // Inline function 'kotlin.collections.mutableListOf' call
4309
+ var tokenStack = ArrayList_init_$Create$();
4310
+ var lastToken = this.q15();
4311
+ if (!(lastToken === 8) && !(lastToken === 6)) {
4312
+ this.t15();
4313
+ return Unit_instance;
4314
+ }
4315
+ $l$loop: while (true) {
4316
+ lastToken = this.q15();
4317
+ if (lastToken === 1) {
4318
+ if (allowLenientStrings)
4319
+ this.t15();
4320
+ else
4321
+ this.i17();
4322
+ continue $l$loop;
4323
+ }
4324
+ var tmp0_subject = lastToken;
4325
+ if (tmp0_subject === 8 || tmp0_subject === 6) {
4326
+ tokenStack.f(lastToken);
4327
+ } else if (tmp0_subject === 9) {
4328
+ if (!(last(tokenStack) === 8))
4329
+ throw JsonDecodingException_0(this.e11_1, 'found ] instead of } at path: ' + this.f11_1.toString(), this.e1a());
4330
+ removeLast(tokenStack);
4331
+ } else if (tmp0_subject === 7) {
4332
+ if (!(last(tokenStack) === 6))
4333
+ throw JsonDecodingException_0(this.e11_1, 'found } instead of ] at path: ' + this.f11_1.toString(), this.e1a());
4334
+ removeLast(tokenStack);
4335
+ } else if (tmp0_subject === 10) {
4336
+ this.o14('Unexpected end of input due to malformed JSON during ignoring unknown keys');
4337
+ }
4338
+ this.v15();
4339
+ if (tokenStack.k() === 0)
4340
+ return Unit_instance;
4341
+ }
4342
+ };
4343
+ protoOf(AbstractJsonLexer).toString = function () {
4344
+ return "JsonReader(source='" + toString_0(this.e1a()) + "', currentPosition=" + this.e11_1 + ')';
4345
+ };
4346
+ protoOf(AbstractJsonLexer).g17 = function (key) {
4347
+ var processed = this.l1a(0, this.e11_1);
4348
+ var lastIndexOf_0 = lastIndexOf(processed, key);
4349
+ throw new JsonDecodingException("Encountered an unknown key '" + key + "' at offset " + lastIndexOf_0 + ' at path: ' + this.f11_1.b15() + "\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder or '@JsonIgnoreUnknownKeys' annotation to ignore unknown keys.\n" + ('JSON input: ' + toString_0(minify(this.e1a(), lastIndexOf_0))));
4350
+ };
4351
+ protoOf(AbstractJsonLexer).n14 = function (message, position, hint) {
4352
+ var tmp;
4353
+ // Inline function 'kotlin.text.isEmpty' call
4354
+ if (charSequenceLength(hint) === 0) {
4355
+ tmp = '';
4356
+ } else {
4357
+ tmp = '\n' + hint;
4358
+ }
4359
+ var hintMessage = tmp;
4360
+ throw JsonDecodingException_0(position, message + ' at path: ' + this.f11_1.b15() + hintMessage, this.e1a());
4361
+ };
4362
+ protoOf(AbstractJsonLexer).o14 = function (message, position, hint, $super) {
4363
+ position = position === VOID ? this.e11_1 : position;
4364
+ hint = hint === VOID ? '' : hint;
4365
+ return $super === VOID ? this.n14(message, position, hint) : $super.n14.call(this, message, position, hint);
4366
+ };
4367
+ protoOf(AbstractJsonLexer).r17 = function () {
4368
+ var current = this.h1a();
4369
+ current = this.f1a(current);
4370
+ if (current >= charSequenceLength(this.e1a()) || current === -1) {
4371
+ this.o14('EOF');
4372
+ }
4373
+ var tmp;
4374
+ if (charSequenceGet(this.e1a(), current) === _Char___init__impl__6a9atx(34)) {
4375
+ current = current + 1 | 0;
4376
+ if (current === charSequenceLength(this.e1a())) {
4377
+ this.o14('EOF');
4378
+ }
4379
+ tmp = true;
4380
+ } else {
4381
+ tmp = false;
4382
+ }
4383
+ var hasQuotation = tmp;
4384
+ var accumulator = new Long(0, 0);
4385
+ var exponentAccumulator = new Long(0, 0);
4386
+ var isNegative = false;
4387
+ var isExponentPositive = false;
4388
+ var hasExponent = false;
4389
+ var start = current;
4390
+ $l$loop_4: while (!(current === charSequenceLength(this.e1a()))) {
4391
+ var ch = charSequenceGet(this.e1a(), current);
4392
+ if ((ch === _Char___init__impl__6a9atx(101) || ch === _Char___init__impl__6a9atx(69)) && !hasExponent) {
4393
+ if (current === start) {
4394
+ this.o14('Unexpected symbol ' + toString_1(ch) + ' in numeric literal');
4395
+ }
4396
+ isExponentPositive = true;
4397
+ hasExponent = true;
4398
+ current = current + 1 | 0;
4399
+ continue $l$loop_4;
4400
+ }
4401
+ if (ch === _Char___init__impl__6a9atx(45) && hasExponent) {
4402
+ if (current === start) {
4403
+ this.o14("Unexpected symbol '-' in numeric literal");
4404
+ }
4405
+ isExponentPositive = false;
4406
+ current = current + 1 | 0;
4407
+ continue $l$loop_4;
4408
+ }
4409
+ if (ch === _Char___init__impl__6a9atx(43) && hasExponent) {
4410
+ if (current === start) {
4411
+ this.o14("Unexpected symbol '+' in numeric literal");
4412
+ }
4413
+ isExponentPositive = true;
4414
+ current = current + 1 | 0;
4415
+ continue $l$loop_4;
4416
+ }
4417
+ if (ch === _Char___init__impl__6a9atx(45)) {
4418
+ if (!(current === start)) {
4419
+ this.o14("Unexpected symbol '-' in numeric literal");
4420
+ }
4421
+ isNegative = true;
4422
+ current = current + 1 | 0;
4423
+ continue $l$loop_4;
4424
+ }
4425
+ var token = charToTokenClass(ch);
4426
+ if (!(token === 0))
4427
+ break $l$loop_4;
4428
+ current = current + 1 | 0;
4429
+ var digit = Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48));
4430
+ if (!(0 <= digit ? digit <= 9 : false)) {
4431
+ this.o14("Unexpected symbol '" + toString_1(ch) + "' in numeric literal");
4432
+ }
4433
+ if (hasExponent) {
4434
+ // Inline function 'kotlin.Long.times' call
4435
+ var this_0 = exponentAccumulator;
4436
+ // Inline function 'kotlin.Long.plus' call
4437
+ var this_1 = multiply(this_0, fromInt(10));
4438
+ exponentAccumulator = add(this_1, fromInt(digit));
4439
+ continue $l$loop_4;
4440
+ }
4441
+ // Inline function 'kotlin.Long.times' call
4442
+ var this_2 = accumulator;
4443
+ // Inline function 'kotlin.Long.minus' call
4444
+ var this_3 = multiply(this_2, fromInt(10));
4445
+ accumulator = subtract(this_3, fromInt(digit));
4446
+ if (compare(accumulator, new Long(0, 0)) > 0) {
4447
+ this.o14('Numeric value overflow');
4448
+ }
4449
+ }
4450
+ var hasChars = !(current === start);
4451
+ if (start === current || (isNegative && start === (current - 1 | 0))) {
4452
+ this.o14('Expected numeric literal');
4453
+ }
4454
+ if (hasQuotation) {
4455
+ if (!hasChars) {
4456
+ this.o14('EOF');
4457
+ }
4458
+ if (!(charSequenceGet(this.e1a(), current) === _Char___init__impl__6a9atx(34))) {
4459
+ this.o14('Expected closing quotation mark');
4460
+ }
4461
+ current = current + 1 | 0;
4462
+ }
4463
+ this.e11_1 = current;
4464
+ if (hasExponent) {
4465
+ var doubleAccumulator = toNumber(accumulator) * consumeNumericLiteral$calculateExponent(exponentAccumulator, isExponentPositive);
4466
+ if (doubleAccumulator > toNumber(new Long(-1, 2147483647)) || doubleAccumulator < toNumber(new Long(0, -2147483648))) {
4467
+ this.o14('Numeric value overflow');
4468
+ }
4469
+ // Inline function 'kotlin.math.floor' call
4470
+ if (!(Math.floor(doubleAccumulator) === doubleAccumulator)) {
4471
+ this.o14("Can't convert " + doubleAccumulator + ' to Long');
4472
+ }
4473
+ accumulator = numberToLong(doubleAccumulator);
4474
+ }
4475
+ var tmp_0;
4476
+ if (isNegative) {
4477
+ tmp_0 = accumulator;
4478
+ } else if (!equalsLong(accumulator, new Long(0, -2147483648))) {
4479
+ tmp_0 = negate(accumulator);
4480
+ } else {
4481
+ this.o14('Numeric value overflow');
4482
+ }
4483
+ return tmp_0;
4484
+ };
4485
+ protoOf(AbstractJsonLexer).m12 = function () {
4486
+ var result = this.r17();
4487
+ var next = this.v15();
4488
+ if (!(next === 10)) {
4489
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
4490
+ var expected = tokenDescription(10);
4491
+ var position = true ? this.e11_1 - 1 | 0 : this.e11_1;
4492
+ var s = this.e11_1 === charSequenceLength(this.e1a()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.e1a(), position));
4493
+ var tmp$ret$0 = "Expected input to contain a single valid number, but got '" + s + "' after it";
4494
+ this.o14(tmp$ret$0, position);
4495
+ }
4496
+ return result;
4497
+ };
4498
+ protoOf(AbstractJsonLexer).q17 = function () {
4499
+ var current = this.h1a();
4500
+ if (current === charSequenceLength(this.e1a())) {
4501
+ this.o14('EOF');
4502
+ }
4503
+ var tmp;
4504
+ if (charSequenceGet(this.e1a(), current) === _Char___init__impl__6a9atx(34)) {
4505
+ current = current + 1 | 0;
4506
+ tmp = true;
4507
+ } else {
4508
+ tmp = false;
4509
+ }
4510
+ var hasQuotation = tmp;
4511
+ var result = consumeBoolean2(this, current);
4512
+ if (hasQuotation) {
4513
+ if (this.e11_1 === charSequenceLength(this.e1a())) {
4514
+ this.o14('EOF');
4515
+ }
4516
+ if (!(charSequenceGet(this.e1a(), this.e11_1) === _Char___init__impl__6a9atx(34))) {
4517
+ this.o14('Expected closing quotation mark');
4518
+ }
4519
+ this.e11_1 = this.e11_1 + 1 | 0;
4520
+ }
4521
+ return result;
4522
+ };
4523
+ function charToTokenClass(c) {
4524
+ var tmp;
4525
+ // Inline function 'kotlin.code' call
4526
+ if (Char__toInt_impl_vasixd(c) < 126) {
4527
+ var tmp_0 = CharMappings_getInstance().n1a_1;
4528
+ // Inline function 'kotlin.code' call
4529
+ tmp = tmp_0[Char__toInt_impl_vasixd(c)];
4530
+ } else {
4531
+ tmp = 0;
4532
+ }
4533
+ return tmp;
4534
+ }
4535
+ function tokenDescription(token) {
4536
+ return token === 1 ? "quotation mark '\"'" : token === 2 ? "string escape sequence '\\'" : token === 4 ? "comma ','" : token === 5 ? "colon ':'" : token === 6 ? "start of the object '{'" : token === 7 ? "end of the object '}'" : token === 8 ? "start of the array '['" : token === 9 ? "end of the array ']'" : token === 10 ? 'end of the input' : token === 127 ? 'invalid token' : 'valid token';
4537
+ }
4538
+ function escapeToChar(c) {
4539
+ return c < 117 ? CharMappings_getInstance().m1a_1[c] : _Char___init__impl__6a9atx(0);
4540
+ }
4541
+ function initEscape($this) {
4542
+ var inductionVariable = 0;
4543
+ if (inductionVariable <= 31)
4544
+ do {
4545
+ var i = inductionVariable;
4546
+ inductionVariable = inductionVariable + 1 | 0;
4547
+ initC2ESC($this, i, _Char___init__impl__6a9atx(117));
4548
+ }
4549
+ while (inductionVariable <= 31);
4550
+ initC2ESC($this, 8, _Char___init__impl__6a9atx(98));
4551
+ initC2ESC($this, 9, _Char___init__impl__6a9atx(116));
4552
+ initC2ESC($this, 10, _Char___init__impl__6a9atx(110));
4553
+ initC2ESC($this, 12, _Char___init__impl__6a9atx(102));
4554
+ initC2ESC($this, 13, _Char___init__impl__6a9atx(114));
4555
+ initC2ESC_0($this, _Char___init__impl__6a9atx(47), _Char___init__impl__6a9atx(47));
4556
+ initC2ESC_0($this, _Char___init__impl__6a9atx(34), _Char___init__impl__6a9atx(34));
4557
+ initC2ESC_0($this, _Char___init__impl__6a9atx(92), _Char___init__impl__6a9atx(92));
4558
+ }
4559
+ function initCharToToken($this) {
4560
+ var inductionVariable = 0;
4561
+ if (inductionVariable <= 32)
4562
+ do {
4563
+ var i = inductionVariable;
4564
+ inductionVariable = inductionVariable + 1 | 0;
4565
+ initC2TC($this, i, 127);
4566
+ }
4567
+ while (inductionVariable <= 32);
4568
+ initC2TC($this, 9, 3);
4569
+ initC2TC($this, 10, 3);
4570
+ initC2TC($this, 13, 3);
4571
+ initC2TC($this, 32, 3);
4572
+ initC2TC_0($this, _Char___init__impl__6a9atx(44), 4);
4573
+ initC2TC_0($this, _Char___init__impl__6a9atx(58), 5);
4574
+ initC2TC_0($this, _Char___init__impl__6a9atx(123), 6);
4575
+ initC2TC_0($this, _Char___init__impl__6a9atx(125), 7);
4576
+ initC2TC_0($this, _Char___init__impl__6a9atx(91), 8);
4577
+ initC2TC_0($this, _Char___init__impl__6a9atx(93), 9);
4578
+ initC2TC_0($this, _Char___init__impl__6a9atx(34), 1);
4579
+ initC2TC_0($this, _Char___init__impl__6a9atx(92), 2);
4580
+ }
4581
+ function initC2ESC($this, c, esc) {
4582
+ if (!(esc === _Char___init__impl__6a9atx(117))) {
4583
+ // Inline function 'kotlin.code' call
4584
+ var tmp$ret$0 = Char__toInt_impl_vasixd(esc);
4585
+ $this.m1a_1[tmp$ret$0] = numberToChar(c);
4586
+ }
4587
+ }
4588
+ function initC2ESC_0($this, c, esc) {
4589
+ // Inline function 'kotlin.code' call
4590
+ var tmp$ret$0 = Char__toInt_impl_vasixd(c);
4591
+ return initC2ESC($this, tmp$ret$0, esc);
4592
+ }
4593
+ function initC2TC($this, c, cl) {
4594
+ $this.n1a_1[c] = cl;
4595
+ }
4596
+ function initC2TC_0($this, c, cl) {
4597
+ // Inline function 'kotlin.code' call
4598
+ var tmp$ret$0 = Char__toInt_impl_vasixd(c);
4599
+ return initC2TC($this, tmp$ret$0, cl);
4600
+ }
4601
+ function CharMappings() {
4602
+ CharMappings_instance = this;
4603
+ this.m1a_1 = charArray(117);
4604
+ this.n1a_1 = new Int8Array(126);
4605
+ initEscape(this);
4606
+ initCharToToken(this);
4607
+ }
4608
+ var CharMappings_instance;
4609
+ function CharMappings_getInstance() {
4610
+ if (CharMappings_instance == null)
4611
+ new CharMappings();
4612
+ return CharMappings_instance;
4613
+ }
4614
+ function StringJsonLexerWithComments(source) {
4615
+ StringJsonLexer.call(this, source);
4616
+ }
4617
+ protoOf(StringJsonLexerWithComments).v15 = function () {
4618
+ var source = this.e1a();
4619
+ var cpos = this.h1a();
4620
+ if (cpos >= source.length || cpos === -1)
4621
+ return 10;
4622
+ this.e11_1 = cpos + 1 | 0;
4623
+ return charToTokenClass(charCodeAt(source, cpos));
4624
+ };
4625
+ protoOf(StringJsonLexerWithComments).r15 = function () {
4626
+ var current = this.h1a();
4627
+ if (current >= this.e1a().length || current === -1)
4628
+ return false;
4629
+ return this.i1a(charCodeAt(this.e1a(), current));
4630
+ };
4631
+ protoOf(StringJsonLexerWithComments).c17 = function (expected) {
4632
+ var source = this.e1a();
4633
+ var current = this.h1a();
4634
+ if (current >= source.length || current === -1) {
4635
+ this.e11_1 = -1;
4636
+ this.j1a(expected);
4637
+ }
4638
+ var c = charCodeAt(source, current);
4639
+ this.e11_1 = current + 1 | 0;
4640
+ if (c === expected)
4641
+ return Unit_instance;
4642
+ else {
4643
+ this.j1a(expected);
4644
+ }
4645
+ };
4646
+ protoOf(StringJsonLexerWithComments).q15 = function () {
4647
+ var source = this.e1a();
4648
+ var cpos = this.h1a();
4649
+ if (cpos >= source.length || cpos === -1)
4650
+ return 10;
4651
+ this.e11_1 = cpos;
4652
+ return charToTokenClass(charCodeAt(source, cpos));
4653
+ };
4654
+ protoOf(StringJsonLexerWithComments).h1a = function () {
4655
+ var current = this.e11_1;
4656
+ if (current === -1)
4657
+ return current;
4658
+ var source = this.e1a();
4659
+ $l$loop_1: while (current < source.length) {
4660
+ var c = charCodeAt(source, current);
4661
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
4662
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4663
+ current = current + 1 | 0;
4664
+ continue $l$loop_1;
4665
+ }
4666
+ if (c === _Char___init__impl__6a9atx(47) && (current + 1 | 0) < source.length) {
4667
+ var tmp0_subject = charCodeAt(source, current + 1 | 0);
4668
+ if (tmp0_subject === _Char___init__impl__6a9atx(47)) {
4669
+ current = indexOf_0(source, _Char___init__impl__6a9atx(10), current + 2 | 0);
4670
+ if (current === -1) {
4671
+ current = source.length;
4672
+ } else {
4673
+ current = current + 1 | 0;
4674
+ }
4675
+ continue $l$loop_1;
4676
+ } else if (tmp0_subject === _Char___init__impl__6a9atx(42)) {
4677
+ current = indexOf(source, '*/', current + 2 | 0);
4678
+ if (current === -1) {
4679
+ this.e11_1 = source.length;
4680
+ this.o14('Expected end of the block comment: "*/", but had EOF instead');
4681
+ } else {
4682
+ current = current + 2 | 0;
4683
+ }
4684
+ continue $l$loop_1;
4685
+ }
4686
+ }
4687
+ break $l$loop_1;
4688
+ }
4689
+ this.e11_1 = current;
4690
+ return current;
4691
+ };
4692
+ function StringJsonLexer(source) {
4693
+ AbstractJsonLexer.call(this);
4694
+ this.x1a_1 = source;
4695
+ }
4696
+ protoOf(StringJsonLexer).e1a = function () {
4697
+ return this.x1a_1;
4698
+ };
4699
+ protoOf(StringJsonLexer).f1a = function (position) {
4700
+ return position < this.e1a().length ? position : -1;
4701
+ };
4702
+ protoOf(StringJsonLexer).v15 = function () {
4703
+ var source = this.e1a();
4704
+ var cpos = this.e11_1;
4705
+ $l$loop: while (!(cpos === -1) && cpos < source.length) {
4706
+ var _unary__edvuaz = cpos;
4707
+ cpos = _unary__edvuaz + 1 | 0;
4708
+ var c = charCodeAt(source, _unary__edvuaz);
4709
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
4710
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
4711
+ continue $l$loop;
4712
+ this.e11_1 = cpos;
4713
+ return charToTokenClass(c);
4714
+ }
4715
+ this.e11_1 = source.length;
4716
+ return 10;
4717
+ };
4718
+ protoOf(StringJsonLexer).r15 = function () {
4719
+ var current = this.e11_1;
4720
+ if (current === -1)
4721
+ return false;
4722
+ var source = this.e1a();
4723
+ $l$loop: while (current < source.length) {
4724
+ var c = charCodeAt(source, current);
4725
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
4726
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4727
+ current = current + 1 | 0;
4728
+ continue $l$loop;
4729
+ }
4730
+ this.e11_1 = current;
4731
+ return this.i1a(c);
4732
+ }
4733
+ this.e11_1 = current;
4734
+ return false;
4735
+ };
4736
+ protoOf(StringJsonLexer).h1a = function () {
4737
+ var current = this.e11_1;
4738
+ if (current === -1)
4739
+ return current;
4740
+ var source = this.e1a();
4741
+ $l$loop: while (current < source.length) {
4742
+ var c = charCodeAt(source, current);
4743
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
4744
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9)) {
4745
+ current = current + 1 | 0;
4746
+ } else {
4747
+ break $l$loop;
4748
+ }
4749
+ }
4750
+ this.e11_1 = current;
4751
+ return current;
4752
+ };
4753
+ protoOf(StringJsonLexer).c17 = function (expected) {
4754
+ if (this.e11_1 === -1) {
4755
+ this.j1a(expected);
4756
+ }
4757
+ var source = this.e1a();
4758
+ var cpos = this.e11_1;
4759
+ $l$loop: while (cpos < source.length) {
4760
+ var _unary__edvuaz = cpos;
4761
+ cpos = _unary__edvuaz + 1 | 0;
4762
+ var c = charCodeAt(source, _unary__edvuaz);
4763
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
4764
+ if (c === _Char___init__impl__6a9atx(32) || c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13) || c === _Char___init__impl__6a9atx(9))
4765
+ continue $l$loop;
4766
+ this.e11_1 = cpos;
4767
+ if (c === expected)
4768
+ return Unit_instance;
4769
+ this.j1a(expected);
4770
+ }
4771
+ this.e11_1 = -1;
4772
+ this.j1a(expected);
4773
+ };
4774
+ protoOf(StringJsonLexer).i17 = function () {
4775
+ this.c17(_Char___init__impl__6a9atx(34));
4776
+ var current = this.e11_1;
4777
+ var closingQuote = indexOf_0(this.e1a(), _Char___init__impl__6a9atx(34), current);
4778
+ if (closingQuote === -1) {
4779
+ this.t15();
4780
+ // Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.fail' call
4781
+ var expected = tokenDescription(1);
4782
+ var position = false ? this.e11_1 - 1 | 0 : this.e11_1;
4783
+ var s = this.e11_1 === charSequenceLength(this.e1a()) || position < 0 ? 'EOF' : toString_1(charSequenceGet(this.e1a(), position));
4784
+ var tmp$ret$0 = 'Expected ' + expected + ", but had '" + s + "' instead";
4785
+ this.o14(tmp$ret$0, position);
4786
+ }
4787
+ var inductionVariable = current;
4788
+ if (inductionVariable < closingQuote)
4789
+ do {
4790
+ var i = inductionVariable;
4791
+ inductionVariable = inductionVariable + 1 | 0;
4792
+ if (charCodeAt(this.e1a(), i) === _Char___init__impl__6a9atx(92)) {
4793
+ return this.consumeString2(this.e1a(), this.e11_1, i);
4794
+ }
4795
+ }
4796
+ while (inductionVariable < closingQuote);
4797
+ this.e11_1 = closingQuote + 1 | 0;
4798
+ return substring(this.e1a(), current, closingQuote);
4799
+ };
4800
+ protoOf(StringJsonLexer).k17 = function (keyToMatch, isLenient) {
4801
+ var positionSnapshot = this.e11_1;
4802
+ try {
4803
+ if (!(this.v15() === 6))
4804
+ return null;
4805
+ var firstKey = this.f17(isLenient);
4806
+ if (!(firstKey === keyToMatch))
4807
+ return null;
4808
+ this.k1a();
4809
+ if (!(this.v15() === 5))
4810
+ return null;
4811
+ return this.f17(isLenient);
4812
+ }finally {
4813
+ this.e11_1 = positionSnapshot;
4814
+ this.k1a();
4815
+ }
4816
+ };
4817
+ function StringJsonLexer_0(json, source) {
4818
+ return !json.n10_1.y11_1 ? new StringJsonLexer(source) : new StringJsonLexerWithComments(source);
4819
+ }
4820
+ function get_schemaCache(_this__u8e3s4) {
4821
+ return _this__u8e3s4.p10_1;
4822
+ }
4823
+ function JsonToStringWriter() {
4824
+ this.u10_1 = StringBuilder_init_$Create$_0(128);
4825
+ }
4826
+ protoOf(JsonToStringWriter).s13 = function (value) {
4827
+ this.u10_1.p9(value);
4828
+ };
4829
+ protoOf(JsonToStringWriter).m13 = function (char) {
4830
+ this.u10_1.o6(char);
4831
+ };
4832
+ protoOf(JsonToStringWriter).o13 = function (text) {
4833
+ this.u10_1.n6(text);
4834
+ };
4835
+ protoOf(JsonToStringWriter).y13 = function (text) {
4836
+ printQuoted(this.u10_1, text);
4837
+ };
4838
+ protoOf(JsonToStringWriter).v10 = function () {
4839
+ this.u10_1.s9();
4840
+ };
4841
+ protoOf(JsonToStringWriter).toString = function () {
4842
+ return this.u10_1.toString();
4843
+ };
4844
+ function createMapForCache(initialCapacity) {
4845
+ return HashMap_init_$Create$(initialCapacity);
4846
+ }
4847
+ //region block: post-declaration
4848
+ protoOf(defer$1).qi = get_isNullable;
4849
+ protoOf(defer$1).wi = get_isInline;
4850
+ protoOf(defer$1).yi = get_annotations;
4851
+ //endregion
4852
+ //region block: init
4853
+ Companion_instance = new Companion();
4854
+ Companion_instance_0 = new Companion_0();
4855
+ Companion_instance_1 = new Companion_1();
4856
+ Companion_instance_2 = new Companion_2();
4857
+ Tombstone_instance = new Tombstone();
4858
+ //endregion
4859
+ //region block: exports
4860
+ _.$_$ = _.$_$ || {};
4861
+ _.$_$.a = Default_getInstance;
4862
+ _.$_$.b = get_jsonObject;
4863
+ //endregion
4864
+ return _;
4865
+ }(module.exports, require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlin-kotlin-stdlib.js')));
4866
+
4867
+ //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.js.map